"use strict";
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __knownSymbol = (name, symbol) => (symbol = Symbol[name]) ? symbol : Symbol.for("Symbol." + name);
var __typeError = (msg) => {
  throw TypeError(msg);
};
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
var __esm = (fn, res) => function __init() {
  return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
};
var __commonJS = (cb, mod) => function __require() {
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
};
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
  // If the importer is in node compatibility mode or this is not an ESM
  // file that has been converted to a CommonJS file using a Babel-
  // compatible transform (i.e. "__esModule" has not been set), then set
  // "default" to the CommonJS "module.exports" for node compatibility.
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
  mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var __decorateClass = (decorators, target, key, kind) => {
  var result2 = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
  for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
    if (decorator = decorators[i3])
      result2 = (kind ? decorator(target, key, result2) : decorator(result2)) || result2;
  if (kind && result2) __defProp(target, key, result2);
  return result2;
};
var __using = (stack, value, async) => {
  if (value != null) {
    if (typeof value !== "object" && typeof value !== "function") __typeError("Object expected");
    var dispose, inner;
    if (async) dispose = value[__knownSymbol("asyncDispose")];
    if (dispose === void 0) {
      dispose = value[__knownSymbol("dispose")];
      if (async) inner = dispose;
    }
    if (typeof dispose !== "function") __typeError("Object not disposable");
    if (inner) dispose = function() {
      try {
        inner.call(this);
      } catch (e3) {
        return Promise.reject(e3);
      }
    };
    stack.push([async, dispose, value]);
  } else if (async) {
    stack.push([async]);
  }
  return value;
};
var __callDispose = (stack, error5, hasError) => {
  var E2 = typeof SuppressedError === "function" ? SuppressedError : function(e3, s3, m3, _3) {
    return _3 = Error(m3), _3.name = "SuppressedError", _3.error = e3, _3.suppressed = s3, _3;
  };
  var fail = (e3) => error5 = hasError ? new E2(e3, error5, "An error was suppressed during disposal") : (hasError = true, e3);
  var next = (it) => {
    while (it = stack.pop()) {
      try {
        var result2 = it[1] && it[1].call(it[2]);
        if (it[0]) return Promise.resolve(result2).then(next, (e3) => (fail(e3), next()));
      } catch (e3) {
        fail(e3);
      }
    }
    if (hasError) throw error5;
  };
  return next();
};

// ../@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/schema.ts
var ArtifactType;
var init_schema = __esm({
  "../@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/schema.ts"() {
    "use strict";
    ArtifactType = /* @__PURE__ */ ((ArtifactType5) => {
      ArtifactType5["NONE"] = "none";
      ArtifactType5["AWS_CLOUDFORMATION_STACK"] = "aws:cloudformation:stack";
      ArtifactType5["CDK_TREE"] = "cdk:tree";
      ArtifactType5["ASSET_MANIFEST"] = "cdk:asset-manifest";
      ArtifactType5["NESTED_CLOUD_ASSEMBLY"] = "cdk:cloud-assembly";
      ArtifactType5["FEATURE_FLAG_REPORT"] = "cdk:feature-flag-report";
      return ArtifactType5;
    })(ArtifactType || {});
  }
});

// ../@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/metadata-schema.ts
var ArtifactMetadataEntryType;
var init_metadata_schema = __esm({
  "../@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/metadata-schema.ts"() {
    "use strict";
    ArtifactMetadataEntryType = /* @__PURE__ */ ((ArtifactMetadataEntryType6) => {
      ArtifactMetadataEntryType6["ASSET"] = "aws:cdk:asset";
      ArtifactMetadataEntryType6["INFO"] = "aws:cdk:info";
      ArtifactMetadataEntryType6["WARN"] = "aws:cdk:warning";
      ArtifactMetadataEntryType6["ERROR"] = "aws:cdk:error";
      ArtifactMetadataEntryType6["LOGICAL_ID"] = "aws:cdk:logicalId";
      ArtifactMetadataEntryType6["STACK_TAGS"] = "aws:cdk:stack-tags";
      ArtifactMetadataEntryType6["DO_NOT_REFACTOR"] = "aws:cdk:do-not-refactor";
      return ArtifactMetadataEntryType6;
    })(ArtifactMetadataEntryType || {});
  }
});

// ../@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/artifact-schema.ts
var init_artifact_schema = __esm({
  "../@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/artifact-schema.ts"() {
    "use strict";
  }
});

// ../@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/context-queries.ts
var ContextProvider, LoadBalancerType, LoadBalancerListenerProtocol;
var init_context_queries = __esm({
  "../@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/context-queries.ts"() {
    "use strict";
    ContextProvider = /* @__PURE__ */ ((ContextProvider3) => {
      ContextProvider3["AMI_PROVIDER"] = "ami";
      ContextProvider3["AVAILABILITY_ZONE_PROVIDER"] = "availability-zones";
      ContextProvider3["HOSTED_ZONE_PROVIDER"] = "hosted-zone";
      ContextProvider3["SSM_PARAMETER_PROVIDER"] = "ssm";
      ContextProvider3["VPC_PROVIDER"] = "vpc-provider";
      ContextProvider3["ENDPOINT_SERVICE_AVAILABILITY_ZONE_PROVIDER"] = "endpoint-service-availability-zones";
      ContextProvider3["LOAD_BALANCER_PROVIDER"] = "load-balancer";
      ContextProvider3["LOAD_BALANCER_LISTENER_PROVIDER"] = "load-balancer-listener";
      ContextProvider3["SECURITY_GROUP_PROVIDER"] = "security-group";
      ContextProvider3["KEY_PROVIDER"] = "key-provider";
      ContextProvider3["CC_API_PROVIDER"] = "cc-api-provider";
      ContextProvider3["PLUGIN"] = "plugin";
      return ContextProvider3;
    })(ContextProvider || {});
    LoadBalancerType = /* @__PURE__ */ ((LoadBalancerType2) => {
      LoadBalancerType2["NETWORK"] = "network";
      LoadBalancerType2["APPLICATION"] = "application";
      return LoadBalancerType2;
    })(LoadBalancerType || {});
    LoadBalancerListenerProtocol = /* @__PURE__ */ ((LoadBalancerListenerProtocol2) => {
      LoadBalancerListenerProtocol2["HTTP"] = "HTTP";
      LoadBalancerListenerProtocol2["HTTPS"] = "HTTPS";
      LoadBalancerListenerProtocol2["TCP"] = "TCP";
      LoadBalancerListenerProtocol2["TLS"] = "TLS";
      LoadBalancerListenerProtocol2["UDP"] = "UDP";
      LoadBalancerListenerProtocol2["TCP_UDP"] = "TCP_UDP";
      return LoadBalancerListenerProtocol2;
    })(LoadBalancerListenerProtocol || {});
  }
});

// ../@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/interfaces.ts
var init_interfaces = __esm({
  "../@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/interfaces.ts"() {
    "use strict";
  }
});

// ../@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/index.ts
var cloud_assembly_exports = {};
__export(cloud_assembly_exports, {
  ArtifactMetadataEntryType: () => ArtifactMetadataEntryType,
  ArtifactType: () => ArtifactType,
  ContextProvider: () => ContextProvider,
  LoadBalancerListenerProtocol: () => LoadBalancerListenerProtocol,
  LoadBalancerType: () => LoadBalancerType
});
var init_cloud_assembly = __esm({
  "../@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/index.ts"() {
    "use strict";
    init_schema();
    init_metadata_schema();
    init_artifact_schema();
    init_context_queries();
    init_interfaces();
  }
});

// ../@aws-cdk/cloud-assembly-schema/lib/assets/schema.ts
var init_schema2 = __esm({
  "../@aws-cdk/cloud-assembly-schema/lib/assets/schema.ts"() {
    "use strict";
  }
});

// ../@aws-cdk/cloud-assembly-schema/lib/assets/docker-image-asset.ts
var init_docker_image_asset = __esm({
  "../@aws-cdk/cloud-assembly-schema/lib/assets/docker-image-asset.ts"() {
    "use strict";
  }
});

// ../@aws-cdk/cloud-assembly-schema/lib/assets/file-asset.ts
var FileAssetPackaging;
var init_file_asset = __esm({
  "../@aws-cdk/cloud-assembly-schema/lib/assets/file-asset.ts"() {
    "use strict";
    FileAssetPackaging = /* @__PURE__ */ ((FileAssetPackaging4) => {
      FileAssetPackaging4["FILE"] = "file";
      FileAssetPackaging4["ZIP_DIRECTORY"] = "zip";
      return FileAssetPackaging4;
    })(FileAssetPackaging || {});
  }
});

// ../@aws-cdk/cloud-assembly-schema/lib/assets/aws-destination.ts
var init_aws_destination = __esm({
  "../@aws-cdk/cloud-assembly-schema/lib/assets/aws-destination.ts"() {
    "use strict";
  }
});

// ../@aws-cdk/cloud-assembly-schema/lib/assets/index.ts
var assets_exports = {};
__export(assets_exports, {
  FileAssetPackaging: () => FileAssetPackaging
});
var init_assets = __esm({
  "../@aws-cdk/cloud-assembly-schema/lib/assets/index.ts"() {
    "use strict";
    init_schema2();
    init_docker_image_asset();
    init_file_asset();
    init_aws_destination();
  }
});

// ../@aws-cdk/cloud-assembly-schema/node_modules/jsonschema/lib/helpers.js
var require_helpers = __commonJS({
  "../@aws-cdk/cloud-assembly-schema/node_modules/jsonschema/lib/helpers.js"(exports2, module2) {
    "use strict";
    var uri = require("url");
    var ValidationError = exports2.ValidationError = /* @__PURE__ */ __name(function ValidationError2(message2, instance, schema, path38, name, argument) {
      if (Array.isArray(path38)) {
        this.path = path38;
        this.property = path38.reduce(function(sum3, item) {
          return sum3 + makeSuffix(item);
        }, "instance");
      } else if (path38 !== void 0) {
        this.property = path38;
      }
      if (message2) {
        this.message = message2;
      }
      if (schema) {
        var id = schema.$id || schema.id;
        this.schema = id || schema;
      }
      if (instance !== void 0) {
        this.instance = instance;
      }
      this.name = name;
      this.argument = argument;
      this.stack = this.toString();
    }, "ValidationError");
    ValidationError.prototype.toString = /* @__PURE__ */ __name(function toString() {
      return this.property + " " + this.message;
    }, "toString");
    var ValidatorResult = exports2.ValidatorResult = /* @__PURE__ */ __name(function ValidatorResult2(instance, schema, options, ctx) {
      this.instance = instance;
      this.schema = schema;
      this.options = options;
      this.path = ctx.path;
      this.propertyPath = ctx.propertyPath;
      this.errors = [];
      this.throwError = options && options.throwError;
      this.throwFirst = options && options.throwFirst;
      this.throwAll = options && options.throwAll;
      this.disableFormat = options && options.disableFormat === true;
    }, "ValidatorResult");
    ValidatorResult.prototype.addError = /* @__PURE__ */ __name(function addError(detail) {
      var err;
      if (typeof detail == "string") {
        err = new ValidationError(detail, this.instance, this.schema, this.path);
      } else {
        if (!detail) throw new Error("Missing error detail");
        if (!detail.message) throw new Error("Missing error message");
        if (!detail.name) throw new Error("Missing validator type");
        err = new ValidationError(detail.message, this.instance, this.schema, this.path, detail.name, detail.argument);
      }
      this.errors.push(err);
      if (this.throwFirst) {
        throw new ValidatorResultError(this);
      } else if (this.throwError) {
        throw err;
      }
      return err;
    }, "addError");
    ValidatorResult.prototype.importErrors = /* @__PURE__ */ __name(function importErrors(res) {
      if (typeof res == "string" || res && res.validatorType) {
        this.addError(res);
      } else if (res && res.errors) {
        this.errors = this.errors.concat(res.errors);
      }
    }, "importErrors");
    function stringizer(v6, i3) {
      return i3 + ": " + v6.toString() + "\n";
    }
    __name(stringizer, "stringizer");
    ValidatorResult.prototype.toString = /* @__PURE__ */ __name(function toString(res) {
      return this.errors.map(stringizer).join("");
    }, "toString");
    Object.defineProperty(ValidatorResult.prototype, "valid", { get: /* @__PURE__ */ __name(function() {
      return !this.errors.length;
    }, "get") });
    module2.exports.ValidatorResultError = ValidatorResultError;
    function ValidatorResultError(result2) {
      if (Error.captureStackTrace) {
        Error.captureStackTrace(this, ValidatorResultError);
      }
      this.instance = result2.instance;
      this.schema = result2.schema;
      this.options = result2.options;
      this.errors = result2.errors;
    }
    __name(ValidatorResultError, "ValidatorResultError");
    ValidatorResultError.prototype = new Error();
    ValidatorResultError.prototype.constructor = ValidatorResultError;
    ValidatorResultError.prototype.name = "Validation Error";
    var SchemaError = exports2.SchemaError = /* @__PURE__ */ __name(function SchemaError2(msg, schema) {
      this.message = msg;
      this.schema = schema;
      Error.call(this, msg);
      Error.captureStackTrace(this, SchemaError2);
    }, "SchemaError");
    SchemaError.prototype = Object.create(
      Error.prototype,
      {
        constructor: { value: SchemaError, enumerable: false },
        name: { value: "SchemaError", enumerable: false }
      }
    );
    var SchemaContext = exports2.SchemaContext = /* @__PURE__ */ __name(function SchemaContext2(schema, options, path38, base, schemas) {
      this.schema = schema;
      this.options = options;
      if (Array.isArray(path38)) {
        this.path = path38;
        this.propertyPath = path38.reduce(function(sum3, item) {
          return sum3 + makeSuffix(item);
        }, "instance");
      } else {
        this.propertyPath = path38;
      }
      this.base = base;
      this.schemas = schemas;
    }, "SchemaContext");
    SchemaContext.prototype.resolve = /* @__PURE__ */ __name(function resolve13(target) {
      return uri.resolve(this.base, target);
    }, "resolve");
    SchemaContext.prototype.makeChild = /* @__PURE__ */ __name(function makeChild(schema, propertyName) {
      var path38 = propertyName === void 0 ? this.path : this.path.concat([propertyName]);
      var id = schema.$id || schema.id;
      var base = uri.resolve(this.base, id || "");
      var ctx = new SchemaContext(schema, this.options, path38, base, Object.create(this.schemas));
      if (id && !ctx.schemas[base]) {
        ctx.schemas[base] = schema;
      }
      return ctx;
    }, "makeChild");
    var FORMAT_REGEXPS = exports2.FORMAT_REGEXPS = {
      // 7.3.1. Dates, Times, and Duration
      "date-time": /^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])[tT ](2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])(\.\d+)?([zZ]|[+-]([0-5][0-9]):(60|[0-5][0-9]))$/,
      "date": /^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])$/,
      "time": /^(2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])$/,
      "duration": /P(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S)|\d+(D|M(\d+D)?|Y(\d+M(\d+D)?)?)(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S))?|\d+W)/i,
      // 7.3.2. Email Addresses
      // TODO: fix the email production
      "email": /^(?:[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+\.)*[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+@(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!\.)){0,61}[a-zA-Z0-9]?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!$)){0,61}[a-zA-Z0-9]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\]))$/,
      "idn-email": /^("(?:[!#-\[\]-\u{10FFFF}]|\\[\t -\u{10FFFF}])*"|[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*)@([!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*|\[[!-Z\^-\u{10FFFF}]*\])$/u,
      // 7.3.3. Hostnames
      // 7.3.4. IP Addresses
      "ip-address": /^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,
      // FIXME whitespace is invalid
      "ipv6": /^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,
      // 7.3.5. Resource Identifiers
      // TODO: A more accurate regular expression for "uri" goes:
      // [A-Za-z][+\-.0-9A-Za-z]*:((/(/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?)?#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(/(/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])|/?%[0-9A-Fa-f]{2}|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*(#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?|/(/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)?)?
      "uri": /^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,
      "uri-reference": /^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/,
      "iri": /^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,
      "iri-reference": /^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~-\u{10FFFF}]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~-\u{10FFFF}]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~-\u{10FFFF}])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~-\u{10FFFF}]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/u,
      "uuid": /^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i,
      // 7.3.6. uri-template
      "uri-template": /(%[0-9a-f]{2}|[!#$&(-;=?@\[\]_a-z~]|\{[!#&+,./;=?@|]?(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?(,(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?)*\})*/iu,
      // 7.3.7. JSON Pointers
      "json-pointer": /^(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*$/iu,
      "relative-json-pointer": /^\d+(#|(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*)$/iu,
      // hostname regex from: http://stackoverflow.com/a/1420225/5628
      "hostname": /^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,
      "host-name": /^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,
      "utc-millisec": /* @__PURE__ */ __name(function(input) {
        return typeof input === "string" && parseFloat(input) === parseInt(input, 10) && !isNaN(input);
      }, "utc-millisec"),
      // 7.3.8. regex
      "regex": /* @__PURE__ */ __name(function(input) {
        var result2 = true;
        try {
          new RegExp(input);
        } catch (e3) {
          result2 = false;
        }
        return result2;
      }, "regex"),
      // Other definitions
      // "style" was removed from JSON Schema in draft-4 and is deprecated
      "style": /[\r\n\t ]*[^\r\n\t ][^:]*:[\r\n\t ]*[^\r\n\t ;]*[\r\n\t ]*;?/,
      // "color" was removed from JSON Schema in draft-4 and is deprecated
      "color": /^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,
      "phone": /^\+(?:[0-9] ?){6,14}[0-9]$/,
      "alpha": /^[a-zA-Z]+$/,
      "alphanumeric": /^[a-zA-Z0-9]+$/
    };
    FORMAT_REGEXPS.regexp = FORMAT_REGEXPS.regex;
    FORMAT_REGEXPS.pattern = FORMAT_REGEXPS.regex;
    FORMAT_REGEXPS.ipv4 = FORMAT_REGEXPS["ip-address"];
    exports2.isFormat = /* @__PURE__ */ __name(function isFormat(input, format26, validator) {
      if (typeof input === "string" && FORMAT_REGEXPS[format26] !== void 0) {
        if (FORMAT_REGEXPS[format26] instanceof RegExp) {
          return FORMAT_REGEXPS[format26].test(input);
        }
        if (typeof FORMAT_REGEXPS[format26] === "function") {
          return FORMAT_REGEXPS[format26](input);
        }
      } else if (validator && validator.customFormats && typeof validator.customFormats[format26] === "function") {
        return validator.customFormats[format26](input);
      }
      return true;
    }, "isFormat");
    var makeSuffix = exports2.makeSuffix = /* @__PURE__ */ __name(function makeSuffix2(key) {
      key = key.toString();
      if (!key.match(/[.\s\[\]]/) && !key.match(/^[\d]/)) {
        return "." + key;
      }
      if (key.match(/^\d+$/)) {
        return "[" + key + "]";
      }
      return "[" + JSON.stringify(key) + "]";
    }, "makeSuffix");
    exports2.deepCompareStrict = /* @__PURE__ */ __name(function deepCompareStrict(a3, b3) {
      if (typeof a3 !== typeof b3) {
        return false;
      }
      if (Array.isArray(a3)) {
        if (!Array.isArray(b3)) {
          return false;
        }
        if (a3.length !== b3.length) {
          return false;
        }
        return a3.every(function(v6, i3) {
          return deepCompareStrict(a3[i3], b3[i3]);
        });
      }
      if (typeof a3 === "object") {
        if (!a3 || !b3) {
          return a3 === b3;
        }
        var aKeys = Object.keys(a3);
        var bKeys = Object.keys(b3);
        if (aKeys.length !== bKeys.length) {
          return false;
        }
        return aKeys.every(function(v6) {
          return deepCompareStrict(a3[v6], b3[v6]);
        });
      }
      return a3 === b3;
    }, "deepCompareStrict");
    function deepMerger(target, dst, e3, i3) {
      if (typeof e3 === "object") {
        dst[i3] = deepMerge2(target[i3], e3);
      } else {
        if (target.indexOf(e3) === -1) {
          dst.push(e3);
        }
      }
    }
    __name(deepMerger, "deepMerger");
    function copyist(src, dst, key) {
      dst[key] = src[key];
    }
    __name(copyist, "copyist");
    function copyistWithDeepMerge(target, src, dst, key) {
      if (typeof src[key] !== "object" || !src[key]) {
        dst[key] = src[key];
      } else {
        if (!target[key]) {
          dst[key] = src[key];
        } else {
          dst[key] = deepMerge2(target[key], src[key]);
        }
      }
    }
    __name(copyistWithDeepMerge, "copyistWithDeepMerge");
    function deepMerge2(target, src) {
      var array = Array.isArray(src);
      var dst = array && [] || {};
      if (array) {
        target = target || [];
        dst = dst.concat(target);
        src.forEach(deepMerger.bind(null, target, dst));
      } else {
        if (target && typeof target === "object") {
          Object.keys(target).forEach(copyist.bind(null, target, dst));
        }
        Object.keys(src).forEach(copyistWithDeepMerge.bind(null, target, src, dst));
      }
      return dst;
    }
    __name(deepMerge2, "deepMerge");
    module2.exports.deepMerge = deepMerge2;
    exports2.objectGetPath = /* @__PURE__ */ __name(function objectGetPath(o3, s3) {
      var parts = s3.split("/").slice(1);
      var k3;
      while (typeof (k3 = parts.shift()) == "string") {
        var n3 = decodeURIComponent(k3.replace(/~0/, "~").replace(/~1/g, "/"));
        if (!(n3 in o3)) return;
        o3 = o3[n3];
      }
      return o3;
    }, "objectGetPath");
    function pathEncoder(v6) {
      return "/" + encodeURIComponent(v6).replace(/~/g, "%7E");
    }
    __name(pathEncoder, "pathEncoder");
    exports2.encodePath = /* @__PURE__ */ __name(function encodePointer(a3) {
      return a3.map(pathEncoder).join("");
    }, "encodePointer");
    exports2.getDecimalPlaces = /* @__PURE__ */ __name(function getDecimalPlaces(number) {
      var decimalPlaces = 0;
      if (isNaN(number)) return decimalPlaces;
      if (typeof number !== "number") {
        number = Number(number);
      }
      var parts = number.toString().split("e");
      if (parts.length === 2) {
        if (parts[1][0] !== "-") {
          return decimalPlaces;
        } else {
          decimalPlaces = Number(parts[1].slice(1));
        }
      }
      var decimalParts = parts[0].split(".");
      if (decimalParts.length === 2) {
        decimalPlaces += decimalParts[1].length;
      }
      return decimalPlaces;
    }, "getDecimalPlaces");
    exports2.isSchema = /* @__PURE__ */ __name(function isSchema(val) {
      return typeof val === "object" && val || typeof val === "boolean";
    }, "isSchema");
  }
});

// ../@aws-cdk/cloud-assembly-schema/node_modules/jsonschema/lib/attribute.js
var require_attribute = __commonJS({
  "../@aws-cdk/cloud-assembly-schema/node_modules/jsonschema/lib/attribute.js"(exports2, module2) {
    "use strict";
    var helpers = require_helpers();
    var ValidatorResult = helpers.ValidatorResult;
    var SchemaError = helpers.SchemaError;
    var attribute = {};
    attribute.ignoreProperties = {
      // informative properties
      "id": true,
      "default": true,
      "description": true,
      "title": true,
      // arguments to other properties
      "additionalItems": true,
      "then": true,
      "else": true,
      // special-handled properties
      "$schema": true,
      "$ref": true,
      "extends": true
    };
    var validators = attribute.validators = {};
    validators.type = /* @__PURE__ */ __name(function validateType(instance, schema, options, ctx) {
      if (instance === void 0) {
        return null;
      }
      var result2 = new ValidatorResult(instance, schema, options, ctx);
      var types5 = Array.isArray(schema.type) ? schema.type : [schema.type];
      if (!types5.some(this.testType.bind(this, instance, schema, options, ctx))) {
        var list2 = types5.map(function(v6) {
          if (!v6) return;
          var id = v6.$id || v6.id;
          return id ? "<" + id + ">" : v6 + "";
        });
        result2.addError({
          name: "type",
          argument: list2,
          message: "is not of a type(s) " + list2
        });
      }
      return result2;
    }, "validateType");
    function testSchemaNoThrow(instance, options, ctx, callback, schema) {
      var throwError = options.throwError;
      var throwAll = options.throwAll;
      options.throwError = false;
      options.throwAll = false;
      var res = this.validateSchema(instance, schema, options, ctx);
      options.throwError = throwError;
      options.throwAll = throwAll;
      if (!res.valid && callback instanceof Function) {
        callback(res);
      }
      return res.valid;
    }
    __name(testSchemaNoThrow, "testSchemaNoThrow");
    validators.anyOf = /* @__PURE__ */ __name(function validateAnyOf(instance, schema, options, ctx) {
      if (instance === void 0) {
        return null;
      }
      var result2 = new ValidatorResult(instance, schema, options, ctx);
      var inner = new ValidatorResult(instance, schema, options, ctx);
      if (!Array.isArray(schema.anyOf)) {
        throw new SchemaError("anyOf must be an array");
      }
      if (!schema.anyOf.some(
        testSchemaNoThrow.bind(
          this,
          instance,
          options,
          ctx,
          function(res) {
            inner.importErrors(res);
          }
        )
      )) {
        var list2 = schema.anyOf.map(function(v6, i3) {
          var id = v6.$id || v6.id;
          if (id) return "<" + id + ">";
          return v6.title && JSON.stringify(v6.title) || v6["$ref"] && "<" + v6["$ref"] + ">" || "[subschema " + i3 + "]";
        });
        if (options.nestedErrors) {
          result2.importErrors(inner);
        }
        result2.addError({
          name: "anyOf",
          argument: list2,
          message: "is not any of " + list2.join(",")
        });
      }
      return result2;
    }, "validateAnyOf");
    validators.allOf = /* @__PURE__ */ __name(function validateAllOf(instance, schema, options, ctx) {
      if (instance === void 0) {
        return null;
      }
      if (!Array.isArray(schema.allOf)) {
        throw new SchemaError("allOf must be an array");
      }
      var result2 = new ValidatorResult(instance, schema, options, ctx);
      var self2 = this;
      schema.allOf.forEach(function(v6, i3) {
        var valid3 = self2.validateSchema(instance, v6, options, ctx);
        if (!valid3.valid) {
          var id = v6.$id || v6.id;
          var msg = id || v6.title && JSON.stringify(v6.title) || v6["$ref"] && "<" + v6["$ref"] + ">" || "[subschema " + i3 + "]";
          result2.addError({
            name: "allOf",
            argument: { id: msg, length: valid3.errors.length, valid: valid3 },
            message: "does not match allOf schema " + msg + " with " + valid3.errors.length + " error[s]:"
          });
          result2.importErrors(valid3);
        }
      });
      return result2;
    }, "validateAllOf");
    validators.oneOf = /* @__PURE__ */ __name(function validateOneOf(instance, schema, options, ctx) {
      if (instance === void 0) {
        return null;
      }
      if (!Array.isArray(schema.oneOf)) {
        throw new SchemaError("oneOf must be an array");
      }
      var result2 = new ValidatorResult(instance, schema, options, ctx);
      var inner = new ValidatorResult(instance, schema, options, ctx);
      var count = schema.oneOf.filter(
        testSchemaNoThrow.bind(
          this,
          instance,
          options,
          ctx,
          function(res) {
            inner.importErrors(res);
          }
        )
      ).length;
      var list2 = schema.oneOf.map(function(v6, i3) {
        var id = v6.$id || v6.id;
        return id || v6.title && JSON.stringify(v6.title) || v6["$ref"] && "<" + v6["$ref"] + ">" || "[subschema " + i3 + "]";
      });
      if (count !== 1) {
        if (options.nestedErrors) {
          result2.importErrors(inner);
        }
        result2.addError({
          name: "oneOf",
          argument: list2,
          message: "is not exactly one from " + list2.join(",")
        });
      }
      return result2;
    }, "validateOneOf");
    validators.if = /* @__PURE__ */ __name(function validateIf(instance, schema, options, ctx) {
      if (instance === void 0) return null;
      if (!helpers.isSchema(schema.if)) throw new Error('Expected "if" keyword to be a schema');
      var ifValid = testSchemaNoThrow.call(this, instance, options, ctx, null, schema.if);
      var result2 = new ValidatorResult(instance, schema, options, ctx);
      var res;
      if (ifValid) {
        if (schema.then === void 0) return;
        if (!helpers.isSchema(schema.then)) throw new Error('Expected "then" keyword to be a schema');
        res = this.validateSchema(instance, schema.then, options, ctx.makeChild(schema.then));
        result2.importErrors(res);
      } else {
        if (schema.else === void 0) return;
        if (!helpers.isSchema(schema.else)) throw new Error('Expected "else" keyword to be a schema');
        res = this.validateSchema(instance, schema.else, options, ctx.makeChild(schema.else));
        result2.importErrors(res);
      }
      return result2;
    }, "validateIf");
    function getEnumerableProperty(object, key) {
      if (Object.hasOwnProperty.call(object, key)) return object[key];
      if (!(key in object)) return;
      while (object = Object.getPrototypeOf(object)) {
        if (Object.propertyIsEnumerable.call(object, key)) return object[key];
      }
    }
    __name(getEnumerableProperty, "getEnumerableProperty");
    validators.propertyNames = /* @__PURE__ */ __name(function validatePropertyNames(instance, schema, options, ctx) {
      if (!this.types.object(instance)) return;
      var result2 = new ValidatorResult(instance, schema, options, ctx);
      var subschema = schema.propertyNames !== void 0 ? schema.propertyNames : {};
      if (!helpers.isSchema(subschema)) throw new SchemaError('Expected "propertyNames" to be a schema (object or boolean)');
      for (var property in instance) {
        if (getEnumerableProperty(instance, property) !== void 0) {
          var res = this.validateSchema(property, subschema, options, ctx.makeChild(subschema));
          result2.importErrors(res);
        }
      }
      return result2;
    }, "validatePropertyNames");
    validators.properties = /* @__PURE__ */ __name(function validateProperties(instance, schema, options, ctx) {
      if (!this.types.object(instance)) return;
      var result2 = new ValidatorResult(instance, schema, options, ctx);
      var properties = schema.properties || {};
      for (var property in properties) {
        var subschema = properties[property];
        if (subschema === void 0) {
          continue;
        } else if (subschema === null) {
          throw new SchemaError('Unexpected null, expected schema in "properties"');
        }
        if (typeof options.preValidateProperty == "function") {
          options.preValidateProperty(instance, property, subschema, options, ctx);
        }
        var prop = getEnumerableProperty(instance, property);
        var res = this.validateSchema(prop, subschema, options, ctx.makeChild(subschema, property));
        if (res.instance !== result2.instance[property]) result2.instance[property] = res.instance;
        result2.importErrors(res);
      }
      return result2;
    }, "validateProperties");
    function testAdditionalProperty(instance, schema, options, ctx, property, result2) {
      if (!this.types.object(instance)) return;
      if (schema.properties && schema.properties[property] !== void 0) {
        return;
      }
      if (schema.additionalProperties === false) {
        result2.addError({
          name: "additionalProperties",
          argument: property,
          message: "is not allowed to have the additional property " + JSON.stringify(property)
        });
      } else {
        var additionalProperties = schema.additionalProperties || {};
        if (typeof options.preValidateProperty == "function") {
          options.preValidateProperty(instance, property, additionalProperties, options, ctx);
        }
        var res = this.validateSchema(instance[property], additionalProperties, options, ctx.makeChild(additionalProperties, property));
        if (res.instance !== result2.instance[property]) result2.instance[property] = res.instance;
        result2.importErrors(res);
      }
    }
    __name(testAdditionalProperty, "testAdditionalProperty");
    validators.patternProperties = /* @__PURE__ */ __name(function validatePatternProperties(instance, schema, options, ctx) {
      if (!this.types.object(instance)) return;
      var result2 = new ValidatorResult(instance, schema, options, ctx);
      var patternProperties = schema.patternProperties || {};
      for (var property in instance) {
        var test = true;
        for (var pattern in patternProperties) {
          var subschema = patternProperties[pattern];
          if (subschema === void 0) {
            continue;
          } else if (subschema === null) {
            throw new SchemaError('Unexpected null, expected schema in "patternProperties"');
          }
          try {
            var regexp = new RegExp(pattern, "u");
          } catch (_e) {
            regexp = new RegExp(pattern);
          }
          if (!regexp.test(property)) {
            continue;
          }
          test = false;
          if (typeof options.preValidateProperty == "function") {
            options.preValidateProperty(instance, property, subschema, options, ctx);
          }
          var res = this.validateSchema(instance[property], subschema, options, ctx.makeChild(subschema, property));
          if (res.instance !== result2.instance[property]) result2.instance[property] = res.instance;
          result2.importErrors(res);
        }
        if (test) {
          testAdditionalProperty.call(this, instance, schema, options, ctx, property, result2);
        }
      }
      return result2;
    }, "validatePatternProperties");
    validators.additionalProperties = /* @__PURE__ */ __name(function validateAdditionalProperties(instance, schema, options, ctx) {
      if (!this.types.object(instance)) return;
      if (schema.patternProperties) {
        return null;
      }
      var result2 = new ValidatorResult(instance, schema, options, ctx);
      for (var property in instance) {
        testAdditionalProperty.call(this, instance, schema, options, ctx, property, result2);
      }
      return result2;
    }, "validateAdditionalProperties");
    validators.minProperties = /* @__PURE__ */ __name(function validateMinProperties(instance, schema, options, ctx) {
      if (!this.types.object(instance)) return;
      var result2 = new ValidatorResult(instance, schema, options, ctx);
      var keys = Object.keys(instance);
      if (!(keys.length >= schema.minProperties)) {
        result2.addError({
          name: "minProperties",
          argument: schema.minProperties,
          message: "does not meet minimum property length of " + schema.minProperties
        });
      }
      return result2;
    }, "validateMinProperties");
    validators.maxProperties = /* @__PURE__ */ __name(function validateMaxProperties(instance, schema, options, ctx) {
      if (!this.types.object(instance)) return;
      var result2 = new ValidatorResult(instance, schema, options, ctx);
      var keys = Object.keys(instance);
      if (!(keys.length <= schema.maxProperties)) {
        result2.addError({
          name: "maxProperties",
          argument: schema.maxProperties,
          message: "does not meet maximum property length of " + schema.maxProperties
        });
      }
      return result2;
    }, "validateMaxProperties");
    validators.items = /* @__PURE__ */ __name(function validateItems(instance, schema, options, ctx) {
      var self2 = this;
      if (!this.types.array(instance)) return;
      if (schema.items === void 0) return;
      var result2 = new ValidatorResult(instance, schema, options, ctx);
      instance.every(function(value, i3) {
        if (Array.isArray(schema.items)) {
          var items = schema.items[i3] === void 0 ? schema.additionalItems : schema.items[i3];
        } else {
          var items = schema.items;
        }
        if (items === void 0) {
          return true;
        }
        if (items === false) {
          result2.addError({
            name: "items",
            message: "additionalItems not permitted"
          });
          return false;
        }
        var res = self2.validateSchema(value, items, options, ctx.makeChild(items, i3));
        if (res.instance !== result2.instance[i3]) result2.instance[i3] = res.instance;
        result2.importErrors(res);
        return true;
      });
      return result2;
    }, "validateItems");
    validators.contains = /* @__PURE__ */ __name(function validateContains(instance, schema, options, ctx) {
      var self2 = this;
      if (!this.types.array(instance)) return;
      if (schema.contains === void 0) return;
      if (!helpers.isSchema(schema.contains)) throw new Error('Expected "contains" keyword to be a schema');
      var result2 = new ValidatorResult(instance, schema, options, ctx);
      var count = instance.some(function(value, i3) {
        var res = self2.validateSchema(value, schema.contains, options, ctx.makeChild(schema.contains, i3));
        return res.errors.length === 0;
      });
      if (count === false) {
        result2.addError({
          name: "contains",
          argument: schema.contains,
          message: "must contain an item matching given schema"
        });
      }
      return result2;
    }, "validateContains");
    validators.minimum = /* @__PURE__ */ __name(function validateMinimum(instance, schema, options, ctx) {
      if (!this.types.number(instance)) return;
      var result2 = new ValidatorResult(instance, schema, options, ctx);
      if (schema.exclusiveMinimum && schema.exclusiveMinimum === true) {
        if (!(instance > schema.minimum)) {
          result2.addError({
            name: "minimum",
            argument: schema.minimum,
            message: "must be greater than " + schema.minimum
          });
        }
      } else {
        if (!(instance >= schema.minimum)) {
          result2.addError({
            name: "minimum",
            argument: schema.minimum,
            message: "must be greater than or equal to " + schema.minimum
          });
        }
      }
      return result2;
    }, "validateMinimum");
    validators.maximum = /* @__PURE__ */ __name(function validateMaximum(instance, schema, options, ctx) {
      if (!this.types.number(instance)) return;
      var result2 = new ValidatorResult(instance, schema, options, ctx);
      if (schema.exclusiveMaximum && schema.exclusiveMaximum === true) {
        if (!(instance < schema.maximum)) {
          result2.addError({
            name: "maximum",
            argument: schema.maximum,
            message: "must be less than " + schema.maximum
          });
        }
      } else {
        if (!(instance <= schema.maximum)) {
          result2.addError({
            name: "maximum",
            argument: schema.maximum,
            message: "must be less than or equal to " + schema.maximum
          });
        }
      }
      return result2;
    }, "validateMaximum");
    validators.exclusiveMinimum = /* @__PURE__ */ __name(function validateExclusiveMinimum(instance, schema, options, ctx) {
      if (typeof schema.exclusiveMinimum === "boolean") return;
      if (!this.types.number(instance)) return;
      var result2 = new ValidatorResult(instance, schema, options, ctx);
      var valid3 = instance > schema.exclusiveMinimum;
      if (!valid3) {
        result2.addError({
          name: "exclusiveMinimum",
          argument: schema.exclusiveMinimum,
          message: "must be strictly greater than " + schema.exclusiveMinimum
        });
      }
      return result2;
    }, "validateExclusiveMinimum");
    validators.exclusiveMaximum = /* @__PURE__ */ __name(function validateExclusiveMaximum(instance, schema, options, ctx) {
      if (typeof schema.exclusiveMaximum === "boolean") return;
      if (!this.types.number(instance)) return;
      var result2 = new ValidatorResult(instance, schema, options, ctx);
      var valid3 = instance < schema.exclusiveMaximum;
      if (!valid3) {
        result2.addError({
          name: "exclusiveMaximum",
          argument: schema.exclusiveMaximum,
          message: "must be strictly less than " + schema.exclusiveMaximum
        });
      }
      return result2;
    }, "validateExclusiveMaximum");
    var validateMultipleOfOrDivisbleBy = /* @__PURE__ */ __name(function validateMultipleOfOrDivisbleBy2(instance, schema, options, ctx, validationType, errorMessage) {
      if (!this.types.number(instance)) return;
      var validationArgument = schema[validationType];
      if (validationArgument == 0) {
        throw new SchemaError(validationType + " cannot be zero");
      }
      var result2 = new ValidatorResult(instance, schema, options, ctx);
      var instanceDecimals = helpers.getDecimalPlaces(instance);
      var divisorDecimals = helpers.getDecimalPlaces(validationArgument);
      var maxDecimals = Math.max(instanceDecimals, divisorDecimals);
      var multiplier = Math.pow(10, maxDecimals);
      if (Math.round(instance * multiplier) % Math.round(validationArgument * multiplier) !== 0) {
        result2.addError({
          name: validationType,
          argument: validationArgument,
          message: errorMessage + JSON.stringify(validationArgument)
        });
      }
      return result2;
    }, "validateMultipleOfOrDivisbleBy");
    validators.multipleOf = /* @__PURE__ */ __name(function validateMultipleOf(instance, schema, options, ctx) {
      return validateMultipleOfOrDivisbleBy.call(this, instance, schema, options, ctx, "multipleOf", "is not a multiple of (divisible by) ");
    }, "validateMultipleOf");
    validators.divisibleBy = /* @__PURE__ */ __name(function validateDivisibleBy(instance, schema, options, ctx) {
      return validateMultipleOfOrDivisbleBy.call(this, instance, schema, options, ctx, "divisibleBy", "is not divisible by (multiple of) ");
    }, "validateDivisibleBy");
    validators.required = /* @__PURE__ */ __name(function validateRequired(instance, schema, options, ctx) {
      var result2 = new ValidatorResult(instance, schema, options, ctx);
      if (instance === void 0 && schema.required === true) {
        result2.addError({
          name: "required",
          message: "is required"
        });
      } else if (this.types.object(instance) && Array.isArray(schema.required)) {
        schema.required.forEach(function(n3) {
          if (getEnumerableProperty(instance, n3) === void 0) {
            result2.addError({
              name: "required",
              argument: n3,
              message: "requires property " + JSON.stringify(n3)
            });
          }
        });
      }
      return result2;
    }, "validateRequired");
    validators.pattern = /* @__PURE__ */ __name(function validatePattern(instance, schema, options, ctx) {
      if (!this.types.string(instance)) return;
      var result2 = new ValidatorResult(instance, schema, options, ctx);
      var pattern = schema.pattern;
      try {
        var regexp = new RegExp(pattern, "u");
      } catch (_e) {
        regexp = new RegExp(pattern);
      }
      if (!instance.match(regexp)) {
        result2.addError({
          name: "pattern",
          argument: schema.pattern,
          message: "does not match pattern " + JSON.stringify(schema.pattern.toString())
        });
      }
      return result2;
    }, "validatePattern");
    validators.format = /* @__PURE__ */ __name(function validateFormat(instance, schema, options, ctx) {
      if (instance === void 0) return;
      var result2 = new ValidatorResult(instance, schema, options, ctx);
      if (!result2.disableFormat && !helpers.isFormat(instance, schema.format, this)) {
        result2.addError({
          name: "format",
          argument: schema.format,
          message: "does not conform to the " + JSON.stringify(schema.format) + " format"
        });
      }
      return result2;
    }, "validateFormat");
    validators.minLength = /* @__PURE__ */ __name(function validateMinLength(instance, schema, options, ctx) {
      if (!this.types.string(instance)) return;
      var result2 = new ValidatorResult(instance, schema, options, ctx);
      var hsp = instance.match(/[\uDC00-\uDFFF]/g);
      var length = instance.length - (hsp ? hsp.length : 0);
      if (!(length >= schema.minLength)) {
        result2.addError({
          name: "minLength",
          argument: schema.minLength,
          message: "does not meet minimum length of " + schema.minLength
        });
      }
      return result2;
    }, "validateMinLength");
    validators.maxLength = /* @__PURE__ */ __name(function validateMaxLength(instance, schema, options, ctx) {
      if (!this.types.string(instance)) return;
      var result2 = new ValidatorResult(instance, schema, options, ctx);
      var hsp = instance.match(/[\uDC00-\uDFFF]/g);
      var length = instance.length - (hsp ? hsp.length : 0);
      if (!(length <= schema.maxLength)) {
        result2.addError({
          name: "maxLength",
          argument: schema.maxLength,
          message: "does not meet maximum length of " + schema.maxLength
        });
      }
      return result2;
    }, "validateMaxLength");
    validators.minItems = /* @__PURE__ */ __name(function validateMinItems(instance, schema, options, ctx) {
      if (!this.types.array(instance)) return;
      var result2 = new ValidatorResult(instance, schema, options, ctx);
      if (!(instance.length >= schema.minItems)) {
        result2.addError({
          name: "minItems",
          argument: schema.minItems,
          message: "does not meet minimum length of " + schema.minItems
        });
      }
      return result2;
    }, "validateMinItems");
    validators.maxItems = /* @__PURE__ */ __name(function validateMaxItems(instance, schema, options, ctx) {
      if (!this.types.array(instance)) return;
      var result2 = new ValidatorResult(instance, schema, options, ctx);
      if (!(instance.length <= schema.maxItems)) {
        result2.addError({
          name: "maxItems",
          argument: schema.maxItems,
          message: "does not meet maximum length of " + schema.maxItems
        });
      }
      return result2;
    }, "validateMaxItems");
    function testArrays(v6, i3, a3) {
      var j3, len = a3.length;
      for (j3 = i3 + 1, len; j3 < len; j3++) {
        if (helpers.deepCompareStrict(v6, a3[j3])) {
          return false;
        }
      }
      return true;
    }
    __name(testArrays, "testArrays");
    validators.uniqueItems = /* @__PURE__ */ __name(function validateUniqueItems(instance, schema, options, ctx) {
      if (schema.uniqueItems !== true) return;
      if (!this.types.array(instance)) return;
      var result2 = new ValidatorResult(instance, schema, options, ctx);
      if (!instance.every(testArrays)) {
        result2.addError({
          name: "uniqueItems",
          message: "contains duplicate item"
        });
      }
      return result2;
    }, "validateUniqueItems");
    validators.dependencies = /* @__PURE__ */ __name(function validateDependencies(instance, schema, options, ctx) {
      if (!this.types.object(instance)) return;
      var result2 = new ValidatorResult(instance, schema, options, ctx);
      for (var property in schema.dependencies) {
        if (instance[property] === void 0) {
          continue;
        }
        var dep = schema.dependencies[property];
        var childContext = ctx.makeChild(dep, property);
        if (typeof dep == "string") {
          dep = [dep];
        }
        if (Array.isArray(dep)) {
          dep.forEach(function(prop) {
            if (instance[prop] === void 0) {
              result2.addError({
                // FIXME there's two different "dependencies" errors here with slightly different outputs
                // Can we make these the same? Or should we create different error types?
                name: "dependencies",
                argument: childContext.propertyPath,
                message: "property " + prop + " not found, required by " + childContext.propertyPath
              });
            }
          });
        } else {
          var res = this.validateSchema(instance, dep, options, childContext);
          if (result2.instance !== res.instance) result2.instance = res.instance;
          if (res && res.errors.length) {
            result2.addError({
              name: "dependencies",
              argument: childContext.propertyPath,
              message: "does not meet dependency required by " + childContext.propertyPath
            });
            result2.importErrors(res);
          }
        }
      }
      return result2;
    }, "validateDependencies");
    validators["enum"] = /* @__PURE__ */ __name(function validateEnum(instance, schema, options, ctx) {
      if (instance === void 0) {
        return null;
      }
      if (!Array.isArray(schema["enum"])) {
        throw new SchemaError("enum expects an array", schema);
      }
      var result2 = new ValidatorResult(instance, schema, options, ctx);
      if (!schema["enum"].some(helpers.deepCompareStrict.bind(null, instance))) {
        result2.addError({
          name: "enum",
          argument: schema["enum"],
          message: "is not one of enum values: " + schema["enum"].map(String).join(",")
        });
      }
      return result2;
    }, "validateEnum");
    validators["const"] = /* @__PURE__ */ __name(function validateEnum(instance, schema, options, ctx) {
      if (instance === void 0) {
        return null;
      }
      var result2 = new ValidatorResult(instance, schema, options, ctx);
      if (!helpers.deepCompareStrict(schema["const"], instance)) {
        result2.addError({
          name: "const",
          argument: schema["const"],
          message: "does not exactly match expected constant: " + schema["const"]
        });
      }
      return result2;
    }, "validateEnum");
    validators.not = validators.disallow = /* @__PURE__ */ __name(function validateNot(instance, schema, options, ctx) {
      var self2 = this;
      if (instance === void 0) return null;
      var result2 = new ValidatorResult(instance, schema, options, ctx);
      var notTypes = schema.not || schema.disallow;
      if (!notTypes) return null;
      if (!Array.isArray(notTypes)) notTypes = [notTypes];
      notTypes.forEach(function(type) {
        if (self2.testType(instance, schema, options, ctx, type)) {
          var id = type && (type.$id || type.id);
          var schemaId = id || type;
          result2.addError({
            name: "not",
            argument: schemaId,
            message: "is of prohibited type " + schemaId
          });
        }
      });
      return result2;
    }, "validateNot");
    module2.exports = attribute;
  }
});

// ../@aws-cdk/cloud-assembly-schema/node_modules/jsonschema/lib/scan.js
var require_scan = __commonJS({
  "../@aws-cdk/cloud-assembly-schema/node_modules/jsonschema/lib/scan.js"(exports2, module2) {
    "use strict";
    var urilib = require("url");
    var helpers = require_helpers();
    module2.exports.SchemaScanResult = SchemaScanResult;
    function SchemaScanResult(found, ref) {
      this.id = found;
      this.ref = ref;
    }
    __name(SchemaScanResult, "SchemaScanResult");
    module2.exports.scan = /* @__PURE__ */ __name(function scan(base, schema) {
      function scanSchema(baseuri, schema2) {
        if (!schema2 || typeof schema2 != "object") return;
        if (schema2.$ref) {
          var resolvedUri = urilib.resolve(baseuri, schema2.$ref);
          ref[resolvedUri] = ref[resolvedUri] ? ref[resolvedUri] + 1 : 0;
          return;
        }
        var id = schema2.$id || schema2.id;
        var ourBase = id ? urilib.resolve(baseuri, id) : baseuri;
        if (ourBase) {
          if (ourBase.indexOf("#") < 0) ourBase += "#";
          if (found[ourBase]) {
            if (!helpers.deepCompareStrict(found[ourBase], schema2)) {
              throw new Error("Schema <" + ourBase + "> already exists with different definition");
            }
            return found[ourBase];
          }
          found[ourBase] = schema2;
          if (ourBase[ourBase.length - 1] == "#") {
            found[ourBase.substring(0, ourBase.length - 1)] = schema2;
          }
        }
        scanArray(ourBase + "/items", Array.isArray(schema2.items) ? schema2.items : [schema2.items]);
        scanArray(ourBase + "/extends", Array.isArray(schema2.extends) ? schema2.extends : [schema2.extends]);
        scanSchema(ourBase + "/additionalItems", schema2.additionalItems);
        scanObject(ourBase + "/properties", schema2.properties);
        scanSchema(ourBase + "/additionalProperties", schema2.additionalProperties);
        scanObject(ourBase + "/definitions", schema2.definitions);
        scanObject(ourBase + "/patternProperties", schema2.patternProperties);
        scanObject(ourBase + "/dependencies", schema2.dependencies);
        scanArray(ourBase + "/disallow", schema2.disallow);
        scanArray(ourBase + "/allOf", schema2.allOf);
        scanArray(ourBase + "/anyOf", schema2.anyOf);
        scanArray(ourBase + "/oneOf", schema2.oneOf);
        scanSchema(ourBase + "/not", schema2.not);
      }
      __name(scanSchema, "scanSchema");
      function scanArray(baseuri, schemas) {
        if (!Array.isArray(schemas)) return;
        for (var i3 = 0; i3 < schemas.length; i3++) {
          scanSchema(baseuri + "/" + i3, schemas[i3]);
        }
      }
      __name(scanArray, "scanArray");
      function scanObject(baseuri, schemas) {
        if (!schemas || typeof schemas != "object") return;
        for (var p3 in schemas) {
          scanSchema(baseuri + "/" + p3, schemas[p3]);
        }
      }
      __name(scanObject, "scanObject");
      var found = {};
      var ref = {};
      scanSchema(base, schema);
      return new SchemaScanResult(found, ref);
    }, "scan");
  }
});

// ../@aws-cdk/cloud-assembly-schema/node_modules/jsonschema/lib/validator.js
var require_validator = __commonJS({
  "../@aws-cdk/cloud-assembly-schema/node_modules/jsonschema/lib/validator.js"(exports2, module2) {
    "use strict";
    var urilib = require("url");
    var attribute = require_attribute();
    var helpers = require_helpers();
    var scanSchema = require_scan().scan;
    var ValidatorResult = helpers.ValidatorResult;
    var ValidatorResultError = helpers.ValidatorResultError;
    var SchemaError = helpers.SchemaError;
    var SchemaContext = helpers.SchemaContext;
    var anonymousBase = "/";
    var Validator2 = /* @__PURE__ */ __name(function Validator3() {
      this.customFormats = Object.create(Validator3.prototype.customFormats);
      this.schemas = {};
      this.unresolvedRefs = [];
      this.types = Object.create(types5);
      this.attributes = Object.create(attribute.validators);
    }, "Validator");
    Validator2.prototype.customFormats = {};
    Validator2.prototype.schemas = null;
    Validator2.prototype.types = null;
    Validator2.prototype.attributes = null;
    Validator2.prototype.unresolvedRefs = null;
    Validator2.prototype.addSchema = /* @__PURE__ */ __name(function addSchema(schema, base) {
      var self2 = this;
      if (!schema) {
        return null;
      }
      var scan = scanSchema(base || anonymousBase, schema);
      var ourUri = base || schema.$id || schema.id;
      for (var uri in scan.id) {
        this.schemas[uri] = scan.id[uri];
      }
      for (var uri in scan.ref) {
        this.unresolvedRefs.push(uri);
      }
      this.unresolvedRefs = this.unresolvedRefs.filter(function(uri2) {
        return typeof self2.schemas[uri2] === "undefined";
      });
      return this.schemas[ourUri];
    }, "addSchema");
    Validator2.prototype.addSubSchemaArray = /* @__PURE__ */ __name(function addSubSchemaArray(baseuri, schemas) {
      if (!Array.isArray(schemas)) return;
      for (var i3 = 0; i3 < schemas.length; i3++) {
        this.addSubSchema(baseuri, schemas[i3]);
      }
    }, "addSubSchemaArray");
    Validator2.prototype.addSubSchemaObject = /* @__PURE__ */ __name(function addSubSchemaArray(baseuri, schemas) {
      if (!schemas || typeof schemas != "object") return;
      for (var p3 in schemas) {
        this.addSubSchema(baseuri, schemas[p3]);
      }
    }, "addSubSchemaArray");
    Validator2.prototype.setSchemas = /* @__PURE__ */ __name(function setSchemas(schemas) {
      this.schemas = schemas;
    }, "setSchemas");
    Validator2.prototype.getSchema = /* @__PURE__ */ __name(function getSchema(urn) {
      return this.schemas[urn];
    }, "getSchema");
    Validator2.prototype.validate = /* @__PURE__ */ __name(function validate3(instance, schema, options, ctx) {
      if (typeof schema !== "boolean" && typeof schema !== "object" || schema === null) {
        throw new SchemaError("Expected `schema` to be an object or boolean");
      }
      if (!options) {
        options = {};
      }
      var id = schema.$id || schema.id;
      var base = urilib.resolve(options.base || anonymousBase, id || "");
      if (!ctx) {
        ctx = new SchemaContext(schema, options, [], base, Object.create(this.schemas));
        if (!ctx.schemas[base]) {
          ctx.schemas[base] = schema;
        }
        var found = scanSchema(base, schema);
        for (var n3 in found.id) {
          var sch = found.id[n3];
          ctx.schemas[n3] = sch;
        }
      }
      if (options.required && instance === void 0) {
        var result2 = new ValidatorResult(instance, schema, options, ctx);
        result2.addError("is required, but is undefined");
        return result2;
      }
      var result2 = this.validateSchema(instance, schema, options, ctx);
      if (!result2) {
        throw new Error("Result undefined");
      } else if (options.throwAll && result2.errors.length) {
        throw new ValidatorResultError(result2);
      }
      return result2;
    }, "validate");
    function shouldResolve(schema) {
      var ref = typeof schema === "string" ? schema : schema.$ref;
      if (typeof ref == "string") return ref;
      return false;
    }
    __name(shouldResolve, "shouldResolve");
    Validator2.prototype.validateSchema = /* @__PURE__ */ __name(function validateSchema(instance, schema, options, ctx) {
      var result2 = new ValidatorResult(instance, schema, options, ctx);
      if (typeof schema === "boolean") {
        if (schema === true) {
          schema = {};
        } else if (schema === false) {
          schema = { type: [] };
        }
      } else if (!schema) {
        throw new Error("schema is undefined");
      }
      if (schema["extends"]) {
        if (Array.isArray(schema["extends"])) {
          var schemaobj = { schema, ctx };
          schema["extends"].forEach(this.schemaTraverser.bind(this, schemaobj));
          schema = schemaobj.schema;
          schemaobj.schema = null;
          schemaobj.ctx = null;
          schemaobj = null;
        } else {
          schema = helpers.deepMerge(schema, this.superResolve(schema["extends"], ctx));
        }
      }
      var switchSchema = shouldResolve(schema);
      if (switchSchema) {
        var resolved = this.resolve(schema, switchSchema, ctx);
        var subctx = new SchemaContext(resolved.subschema, options, ctx.path, resolved.switchSchema, ctx.schemas);
        return this.validateSchema(instance, resolved.subschema, options, subctx);
      }
      var skipAttributes = options && options.skipAttributes || [];
      for (var key in schema) {
        if (!attribute.ignoreProperties[key] && skipAttributes.indexOf(key) < 0) {
          var validatorErr = null;
          var validator = this.attributes[key];
          if (validator) {
            validatorErr = validator.call(this, instance, schema, options, ctx);
          } else if (options.allowUnknownAttributes === false) {
            throw new SchemaError("Unsupported attribute: " + key, schema);
          }
          if (validatorErr) {
            result2.importErrors(validatorErr);
          }
        }
      }
      if (typeof options.rewrite == "function") {
        var value = options.rewrite.call(this, instance, schema, options, ctx);
        result2.instance = value;
      }
      return result2;
    }, "validateSchema");
    Validator2.prototype.schemaTraverser = /* @__PURE__ */ __name(function schemaTraverser(schemaobj, s3) {
      schemaobj.schema = helpers.deepMerge(schemaobj.schema, this.superResolve(s3, schemaobj.ctx));
    }, "schemaTraverser");
    Validator2.prototype.superResolve = /* @__PURE__ */ __name(function superResolve(schema, ctx) {
      var ref = shouldResolve(schema);
      if (ref) {
        return this.resolve(schema, ref, ctx).subschema;
      }
      return schema;
    }, "superResolve");
    Validator2.prototype.resolve = /* @__PURE__ */ __name(function resolve13(schema, switchSchema, ctx) {
      switchSchema = ctx.resolve(switchSchema);
      if (ctx.schemas[switchSchema]) {
        return { subschema: ctx.schemas[switchSchema], switchSchema };
      }
      var parsed = urilib.parse(switchSchema);
      var fragment = parsed && parsed.hash;
      var document2 = fragment && fragment.length && switchSchema.substr(0, switchSchema.length - fragment.length);
      if (!document2 || !ctx.schemas[document2]) {
        throw new SchemaError("no such schema <" + switchSchema + ">", schema);
      }
      var subschema = helpers.objectGetPath(ctx.schemas[document2], fragment.substr(1));
      if (subschema === void 0) {
        throw new SchemaError("no such schema " + fragment + " located in <" + document2 + ">", schema);
      }
      return { subschema, switchSchema };
    }, "resolve");
    Validator2.prototype.testType = /* @__PURE__ */ __name(function validateType(instance, schema, options, ctx, type) {
      if (type === void 0) {
        return;
      } else if (type === null) {
        throw new SchemaError('Unexpected null in "type" keyword');
      }
      if (typeof this.types[type] == "function") {
        return this.types[type].call(this, instance);
      }
      if (type && typeof type == "object") {
        var res = this.validateSchema(instance, type, options, ctx);
        return res === void 0 || !(res && res.errors.length);
      }
      return true;
    }, "validateType");
    var types5 = Validator2.prototype.types = {};
    types5.string = /* @__PURE__ */ __name(function testString(instance) {
      return typeof instance == "string";
    }, "testString");
    types5.number = /* @__PURE__ */ __name(function testNumber(instance) {
      return typeof instance == "number" && isFinite(instance);
    }, "testNumber");
    types5.integer = /* @__PURE__ */ __name(function testInteger(instance) {
      return typeof instance == "number" && instance % 1 === 0;
    }, "testInteger");
    types5.boolean = /* @__PURE__ */ __name(function testBoolean(instance) {
      return typeof instance == "boolean";
    }, "testBoolean");
    types5.array = /* @__PURE__ */ __name(function testArray(instance) {
      return Array.isArray(instance);
    }, "testArray");
    types5["null"] = /* @__PURE__ */ __name(function testNull(instance) {
      return instance === null;
    }, "testNull");
    types5.date = /* @__PURE__ */ __name(function testDate(instance) {
      return instance instanceof Date;
    }, "testDate");
    types5.any = /* @__PURE__ */ __name(function testAny(instance) {
      return true;
    }, "testAny");
    types5.object = /* @__PURE__ */ __name(function testObject(instance) {
      return instance && typeof instance === "object" && !Array.isArray(instance) && !(instance instanceof Date);
    }, "testObject");
    module2.exports = Validator2;
  }
});

// ../@aws-cdk/cloud-assembly-schema/node_modules/jsonschema/lib/index.js
var require_lib = __commonJS({
  "../@aws-cdk/cloud-assembly-schema/node_modules/jsonschema/lib/index.js"(exports2, module2) {
    "use strict";
    var Validator2 = module2.exports.Validator = require_validator();
    module2.exports.ValidatorResult = require_helpers().ValidatorResult;
    module2.exports.ValidatorResultError = require_helpers().ValidatorResultError;
    module2.exports.ValidationError = require_helpers().ValidationError;
    module2.exports.SchemaError = require_helpers().SchemaError;
    module2.exports.SchemaScanResult = require_scan().SchemaScanResult;
    module2.exports.scan = require_scan().scan;
    module2.exports.validate = function(instance, schema, options) {
      var v6 = new Validator2();
      return v6.validate(instance, schema, options);
    };
  }
});

// ../@aws-cdk/cloud-assembly-schema/node_modules/semver/internal/constants.js
var require_constants = __commonJS({
  "../@aws-cdk/cloud-assembly-schema/node_modules/semver/internal/constants.js"(exports2, module2) {
    "use strict";
    var SEMVER_SPEC_VERSION = "2.0.0";
    var MAX_LENGTH = 256;
    var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
    9007199254740991;
    var MAX_SAFE_COMPONENT_LENGTH = 16;
    var MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6;
    var RELEASE_TYPES = [
      "major",
      "premajor",
      "minor",
      "preminor",
      "patch",
      "prepatch",
      "prerelease"
    ];
    module2.exports = {
      MAX_LENGTH,
      MAX_SAFE_COMPONENT_LENGTH,
      MAX_SAFE_BUILD_LENGTH,
      MAX_SAFE_INTEGER,
      RELEASE_TYPES,
      SEMVER_SPEC_VERSION,
      FLAG_INCLUDE_PRERELEASE: 1,
      FLAG_LOOSE: 2
    };
  }
});

// ../@aws-cdk/cloud-assembly-schema/node_modules/semver/internal/debug.js
var require_debug = __commonJS({
  "../@aws-cdk/cloud-assembly-schema/node_modules/semver/internal/debug.js"(exports2, module2) {
    "use strict";
    var debug3 = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
    };
    module2.exports = debug3;
  }
});

// ../@aws-cdk/cloud-assembly-schema/node_modules/semver/internal/re.js
var require_re = __commonJS({
  "../@aws-cdk/cloud-assembly-schema/node_modules/semver/internal/re.js"(exports2, module2) {
    "use strict";
    var {
      MAX_SAFE_COMPONENT_LENGTH,
      MAX_SAFE_BUILD_LENGTH,
      MAX_LENGTH
    } = require_constants();
    var debug3 = require_debug();
    exports2 = module2.exports = {};
    var re = exports2.re = [];
    var safeRe = exports2.safeRe = [];
    var src = exports2.src = [];
    var safeSrc = exports2.safeSrc = [];
    var t3 = exports2.t = {};
    var R = 0;
    var LETTERDASHNUMBER = "[a-zA-Z0-9-]";
    var safeRegexReplacements = [
      ["\\s", 1],
      ["\\d", MAX_LENGTH],
      [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
    ];
    var makeSafeRegex = /* @__PURE__ */ __name((value) => {
      for (const [token, max] of safeRegexReplacements) {
        value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
      }
      return value;
    }, "makeSafeRegex");
    var createToken = /* @__PURE__ */ __name((name, value, isGlobal) => {
      const safe = makeSafeRegex(value);
      const index = R++;
      debug3(name, index, value);
      t3[name] = index;
      src[index] = value;
      safeSrc[index] = safe;
      re[index] = new RegExp(value, isGlobal ? "g" : void 0);
      safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
    }, "createToken");
    createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
    createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
    createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
    createToken("MAINVERSION", `(${src[t3.NUMERICIDENTIFIER]})\\.(${src[t3.NUMERICIDENTIFIER]})\\.(${src[t3.NUMERICIDENTIFIER]})`);
    createToken("MAINVERSIONLOOSE", `(${src[t3.NUMERICIDENTIFIERLOOSE]})\\.(${src[t3.NUMERICIDENTIFIERLOOSE]})\\.(${src[t3.NUMERICIDENTIFIERLOOSE]})`);
    createToken("PRERELEASEIDENTIFIER", `(?:${src[t3.NONNUMERICIDENTIFIER]}|${src[t3.NUMERICIDENTIFIER]})`);
    createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t3.NONNUMERICIDENTIFIER]}|${src[t3.NUMERICIDENTIFIERLOOSE]})`);
    createToken("PRERELEASE", `(?:-(${src[t3.PRERELEASEIDENTIFIER]}(?:\\.${src[t3.PRERELEASEIDENTIFIER]})*))`);
    createToken("PRERELEASELOOSE", `(?:-?(${src[t3.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t3.PRERELEASEIDENTIFIERLOOSE]})*))`);
    createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
    createToken("BUILD", `(?:\\+(${src[t3.BUILDIDENTIFIER]}(?:\\.${src[t3.BUILDIDENTIFIER]})*))`);
    createToken("FULLPLAIN", `v?${src[t3.MAINVERSION]}${src[t3.PRERELEASE]}?${src[t3.BUILD]}?`);
    createToken("FULL", `^${src[t3.FULLPLAIN]}$`);
    createToken("LOOSEPLAIN", `[v=\\s]*${src[t3.MAINVERSIONLOOSE]}${src[t3.PRERELEASELOOSE]}?${src[t3.BUILD]}?`);
    createToken("LOOSE", `^${src[t3.LOOSEPLAIN]}$`);
    createToken("GTLT", "((?:<|>)?=?)");
    createToken("XRANGEIDENTIFIERLOOSE", `${src[t3.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
    createToken("XRANGEIDENTIFIER", `${src[t3.NUMERICIDENTIFIER]}|x|X|\\*`);
    createToken("XRANGEPLAIN", `[v=\\s]*(${src[t3.XRANGEIDENTIFIER]})(?:\\.(${src[t3.XRANGEIDENTIFIER]})(?:\\.(${src[t3.XRANGEIDENTIFIER]})(?:${src[t3.PRERELEASE]})?${src[t3.BUILD]}?)?)?`);
    createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t3.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t3.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t3.XRANGEIDENTIFIERLOOSE]})(?:${src[t3.PRERELEASELOOSE]})?${src[t3.BUILD]}?)?)?`);
    createToken("XRANGE", `^${src[t3.GTLT]}\\s*${src[t3.XRANGEPLAIN]}$`);
    createToken("XRANGELOOSE", `^${src[t3.GTLT]}\\s*${src[t3.XRANGEPLAINLOOSE]}$`);
    createToken("COERCEPLAIN", `${"(^|[^\\d])(\\d{1,"}${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
    createToken("COERCE", `${src[t3.COERCEPLAIN]}(?:$|[^\\d])`);
    createToken("COERCEFULL", src[t3.COERCEPLAIN] + `(?:${src[t3.PRERELEASE]})?(?:${src[t3.BUILD]})?(?:$|[^\\d])`);
    createToken("COERCERTL", src[t3.COERCE], true);
    createToken("COERCERTLFULL", src[t3.COERCEFULL], true);
    createToken("LONETILDE", "(?:~>?)");
    createToken("TILDETRIM", `(\\s*)${src[t3.LONETILDE]}\\s+`, true);
    exports2.tildeTrimReplace = "$1~";
    createToken("TILDE", `^${src[t3.LONETILDE]}${src[t3.XRANGEPLAIN]}$`);
    createToken("TILDELOOSE", `^${src[t3.LONETILDE]}${src[t3.XRANGEPLAINLOOSE]}$`);
    createToken("LONECARET", "(?:\\^)");
    createToken("CARETTRIM", `(\\s*)${src[t3.LONECARET]}\\s+`, true);
    exports2.caretTrimReplace = "$1^";
    createToken("CARET", `^${src[t3.LONECARET]}${src[t3.XRANGEPLAIN]}$`);
    createToken("CARETLOOSE", `^${src[t3.LONECARET]}${src[t3.XRANGEPLAINLOOSE]}$`);
    createToken("COMPARATORLOOSE", `^${src[t3.GTLT]}\\s*(${src[t3.LOOSEPLAIN]})$|^$`);
    createToken("COMPARATOR", `^${src[t3.GTLT]}\\s*(${src[t3.FULLPLAIN]})$|^$`);
    createToken("COMPARATORTRIM", `(\\s*)${src[t3.GTLT]}\\s*(${src[t3.LOOSEPLAIN]}|${src[t3.XRANGEPLAIN]})`, true);
    exports2.comparatorTrimReplace = "$1$2$3";
    createToken("HYPHENRANGE", `^\\s*(${src[t3.XRANGEPLAIN]})\\s+-\\s+(${src[t3.XRANGEPLAIN]})\\s*$`);
    createToken("HYPHENRANGELOOSE", `^\\s*(${src[t3.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t3.XRANGEPLAINLOOSE]})\\s*$`);
    createToken("STAR", "(<|>)?=?\\s*\\*");
    createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
    createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
  }
});

// ../@aws-cdk/cloud-assembly-schema/node_modules/semver/internal/parse-options.js
var require_parse_options = __commonJS({
  "../@aws-cdk/cloud-assembly-schema/node_modules/semver/internal/parse-options.js"(exports2, module2) {
    "use strict";
    var looseOption = Object.freeze({ loose: true });
    var emptyOpts = Object.freeze({});
    var parseOptions = /* @__PURE__ */ __name((options) => {
      if (!options) {
        return emptyOpts;
      }
      if (typeof options !== "object") {
        return looseOption;
      }
      return options;
    }, "parseOptions");
    module2.exports = parseOptions;
  }
});

// ../@aws-cdk/cloud-assembly-schema/node_modules/semver/internal/identifiers.js
var require_identifiers = __commonJS({
  "../@aws-cdk/cloud-assembly-schema/node_modules/semver/internal/identifiers.js"(exports2, module2) {
    "use strict";
    var numeric2 = /^[0-9]+$/;
    var compareIdentifiers = /* @__PURE__ */ __name((a3, b3) => {
      const anum = numeric2.test(a3);
      const bnum = numeric2.test(b3);
      if (anum && bnum) {
        a3 = +a3;
        b3 = +b3;
      }
      return a3 === b3 ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a3 < b3 ? -1 : 1;
    }, "compareIdentifiers");
    var rcompareIdentifiers = /* @__PURE__ */ __name((a3, b3) => compareIdentifiers(b3, a3), "rcompareIdentifiers");
    module2.exports = {
      compareIdentifiers,
      rcompareIdentifiers
    };
  }
});

// ../@aws-cdk/cloud-assembly-schema/node_modules/semver/classes/semver.js
var require_semver = __commonJS({
  "../@aws-cdk/cloud-assembly-schema/node_modules/semver/classes/semver.js"(exports2, module2) {
    "use strict";
    var debug3 = require_debug();
    var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
    var { safeRe: re, t: t3 } = require_re();
    var parseOptions = require_parse_options();
    var { compareIdentifiers } = require_identifiers();
    var SemVer = class _SemVer {
      static {
        __name(this, "SemVer");
      }
      constructor(version2, options) {
        options = parseOptions(options);
        if (version2 instanceof _SemVer) {
          if (version2.loose === !!options.loose && version2.includePrerelease === !!options.includePrerelease) {
            return version2;
          } else {
            version2 = version2.version;
          }
        } else if (typeof version2 !== "string") {
          throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version2}".`);
        }
        if (version2.length > MAX_LENGTH) {
          throw new TypeError(
            `version is longer than ${MAX_LENGTH} characters`
          );
        }
        debug3("SemVer", version2, options);
        this.options = options;
        this.loose = !!options.loose;
        this.includePrerelease = !!options.includePrerelease;
        const m3 = version2.trim().match(options.loose ? re[t3.LOOSE] : re[t3.FULL]);
        if (!m3) {
          throw new TypeError(`Invalid Version: ${version2}`);
        }
        this.raw = version2;
        this.major = +m3[1];
        this.minor = +m3[2];
        this.patch = +m3[3];
        if (this.major > MAX_SAFE_INTEGER || this.major < 0) {
          throw new TypeError("Invalid major version");
        }
        if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {
          throw new TypeError("Invalid minor version");
        }
        if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {
          throw new TypeError("Invalid patch version");
        }
        if (!m3[4]) {
          this.prerelease = [];
        } else {
          this.prerelease = m3[4].split(".").map((id) => {
            if (/^[0-9]+$/.test(id)) {
              const num = +id;
              if (num >= 0 && num < MAX_SAFE_INTEGER) {
                return num;
              }
            }
            return id;
          });
        }
        this.build = m3[5] ? m3[5].split(".") : [];
        this.format();
      }
      format() {
        this.version = `${this.major}.${this.minor}.${this.patch}`;
        if (this.prerelease.length) {
          this.version += `-${this.prerelease.join(".")}`;
        }
        return this.version;
      }
      toString() {
        return this.version;
      }
      compare(other) {
        debug3("SemVer.compare", this.version, this.options, other);
        if (!(other instanceof _SemVer)) {
          if (typeof other === "string" && other === this.version) {
            return 0;
          }
          other = new _SemVer(other, this.options);
        }
        if (other.version === this.version) {
          return 0;
        }
        return this.compareMain(other) || this.comparePre(other);
      }
      compareMain(other) {
        if (!(other instanceof _SemVer)) {
          other = new _SemVer(other, this.options);
        }
        return compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch);
      }
      comparePre(other) {
        if (!(other instanceof _SemVer)) {
          other = new _SemVer(other, this.options);
        }
        if (this.prerelease.length && !other.prerelease.length) {
          return -1;
        } else if (!this.prerelease.length && other.prerelease.length) {
          return 1;
        } else if (!this.prerelease.length && !other.prerelease.length) {
          return 0;
        }
        let i3 = 0;
        do {
          const a3 = this.prerelease[i3];
          const b3 = other.prerelease[i3];
          debug3("prerelease compare", i3, a3, b3);
          if (a3 === void 0 && b3 === void 0) {
            return 0;
          } else if (b3 === void 0) {
            return 1;
          } else if (a3 === void 0) {
            return -1;
          } else if (a3 === b3) {
            continue;
          } else {
            return compareIdentifiers(a3, b3);
          }
        } while (++i3);
      }
      compareBuild(other) {
        if (!(other instanceof _SemVer)) {
          other = new _SemVer(other, this.options);
        }
        let i3 = 0;
        do {
          const a3 = this.build[i3];
          const b3 = other.build[i3];
          debug3("build compare", i3, a3, b3);
          if (a3 === void 0 && b3 === void 0) {
            return 0;
          } else if (b3 === void 0) {
            return 1;
          } else if (a3 === void 0) {
            return -1;
          } else if (a3 === b3) {
            continue;
          } else {
            return compareIdentifiers(a3, b3);
          }
        } while (++i3);
      }
      // preminor will bump the version up to the next minor release, and immediately
      // down to pre-release. premajor and prepatch work the same way.
      inc(release2, identifier, identifierBase) {
        if (release2.startsWith("pre")) {
          if (!identifier && identifierBase === false) {
            throw new Error("invalid increment argument: identifier is empty");
          }
          if (identifier) {
            const match4 = `-${identifier}`.match(this.options.loose ? re[t3.PRERELEASELOOSE] : re[t3.PRERELEASE]);
            if (!match4 || match4[1] !== identifier) {
              throw new Error(`invalid identifier: ${identifier}`);
            }
          }
        }
        switch (release2) {
          case "premajor":
            this.prerelease.length = 0;
            this.patch = 0;
            this.minor = 0;
            this.major++;
            this.inc("pre", identifier, identifierBase);
            break;
          case "preminor":
            this.prerelease.length = 0;
            this.patch = 0;
            this.minor++;
            this.inc("pre", identifier, identifierBase);
            break;
          case "prepatch":
            this.prerelease.length = 0;
            this.inc("patch", identifier, identifierBase);
            this.inc("pre", identifier, identifierBase);
            break;
          // If the input is a non-prerelease version, this acts the same as
          // prepatch.
          case "prerelease":
            if (this.prerelease.length === 0) {
              this.inc("patch", identifier, identifierBase);
            }
            this.inc("pre", identifier, identifierBase);
            break;
          case "release":
            if (this.prerelease.length === 0) {
              throw new Error(`version ${this.raw} is not a prerelease`);
            }
            this.prerelease.length = 0;
            break;
          case "major":
            if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) {
              this.major++;
            }
            this.minor = 0;
            this.patch = 0;
            this.prerelease = [];
            break;
          case "minor":
            if (this.patch !== 0 || this.prerelease.length === 0) {
              this.minor++;
            }
            this.patch = 0;
            this.prerelease = [];
            break;
          case "patch":
            if (this.prerelease.length === 0) {
              this.patch++;
            }
            this.prerelease = [];
            break;
          // This probably shouldn't be used publicly.
          // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
          case "pre": {
            const base = Number(identifierBase) ? 1 : 0;
            if (this.prerelease.length === 0) {
              this.prerelease = [base];
            } else {
              let i3 = this.prerelease.length;
              while (--i3 >= 0) {
                if (typeof this.prerelease[i3] === "number") {
                  this.prerelease[i3]++;
                  i3 = -2;
                }
              }
              if (i3 === -1) {
                if (identifier === this.prerelease.join(".") && identifierBase === false) {
                  throw new Error("invalid increment argument: identifier already exists");
                }
                this.prerelease.push(base);
              }
            }
            if (identifier) {
              let prerelease = [identifier, base];
              if (identifierBase === false) {
                prerelease = [identifier];
              }
              if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
                if (isNaN(this.prerelease[1])) {
                  this.prerelease = prerelease;
                }
              } else {
                this.prerelease = prerelease;
              }
            }
            break;
          }
          default:
            throw new Error(`invalid increment argument: ${release2}`);
        }
        this.raw = this.format();
        if (this.build.length) {
          this.raw += `+${this.build.join(".")}`;
        }
        return this;
      }
    };
    module2.exports = SemVer;
  }
});

// ../@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/parse.js
var require_parse = __commonJS({
  "../@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/parse.js"(exports2, module2) {
    "use strict";
    var SemVer = require_semver();
    var parse3 = /* @__PURE__ */ __name((version2, options, throwErrors = false) => {
      if (version2 instanceof SemVer) {
        return version2;
      }
      try {
        return new SemVer(version2, options);
      } catch (er) {
        if (!throwErrors) {
          return null;
        }
        throw er;
      }
    }, "parse");
    module2.exports = parse3;
  }
});

// ../@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/valid.js
var require_valid = __commonJS({
  "../@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/valid.js"(exports2, module2) {
    "use strict";
    var parse3 = require_parse();
    var valid3 = /* @__PURE__ */ __name((version2, options) => {
      const v6 = parse3(version2, options);
      return v6 ? v6.version : null;
    }, "valid");
    module2.exports = valid3;
  }
});

// ../@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/clean.js
var require_clean = __commonJS({
  "../@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/clean.js"(exports2, module2) {
    "use strict";
    var parse3 = require_parse();
    var clean = /* @__PURE__ */ __name((version2, options) => {
      const s3 = parse3(version2.trim().replace(/^[=v]+/, ""), options);
      return s3 ? s3.version : null;
    }, "clean");
    module2.exports = clean;
  }
});

// ../@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/inc.js
var require_inc = __commonJS({
  "../@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/inc.js"(exports2, module2) {
    "use strict";
    var SemVer = require_semver();
    var inc = /* @__PURE__ */ __name((version2, release2, options, identifier, identifierBase) => {
      if (typeof options === "string") {
        identifierBase = identifier;
        identifier = options;
        options = void 0;
      }
      try {
        return new SemVer(
          version2 instanceof SemVer ? version2.version : version2,
          options
        ).inc(release2, identifier, identifierBase).version;
      } catch (er) {
        return null;
      }
    }, "inc");
    module2.exports = inc;
  }
});

// ../@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/diff.js
var require_diff = __commonJS({
  "../@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/diff.js"(exports2, module2) {
    "use strict";
    var parse3 = require_parse();
    var diff = /* @__PURE__ */ __name((version1, version2) => {
      const v12 = parse3(version1, null, true);
      const v22 = parse3(version2, null, true);
      const comparison = v12.compare(v22);
      if (comparison === 0) {
        return null;
      }
      const v1Higher = comparison > 0;
      const highVersion = v1Higher ? v12 : v22;
      const lowVersion = v1Higher ? v22 : v12;
      const highHasPre = !!highVersion.prerelease.length;
      const lowHasPre = !!lowVersion.prerelease.length;
      if (lowHasPre && !highHasPre) {
        if (!lowVersion.patch && !lowVersion.minor) {
          return "major";
        }
        if (lowVersion.compareMain(highVersion) === 0) {
          if (lowVersion.minor && !lowVersion.patch) {
            return "minor";
          }
          return "patch";
        }
      }
      const prefix2 = highHasPre ? "pre" : "";
      if (v12.major !== v22.major) {
        return prefix2 + "major";
      }
      if (v12.minor !== v22.minor) {
        return prefix2 + "minor";
      }
      if (v12.patch !== v22.patch) {
        return prefix2 + "patch";
      }
      return "prerelease";
    }, "diff");
    module2.exports = diff;
  }
});

// ../@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/major.js
var require_major = __commonJS({
  "../@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/major.js"(exports2, module2) {
    "use strict";
    var SemVer = require_semver();
    var major6 = /* @__PURE__ */ __name((a3, loose) => new SemVer(a3, loose).major, "major");
    module2.exports = major6;
  }
});

// ../@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/minor.js
var require_minor = __commonJS({
  "../@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/minor.js"(exports2, module2) {
    "use strict";
    var SemVer = require_semver();
    var minor = /* @__PURE__ */ __name((a3, loose) => new SemVer(a3, loose).minor, "minor");
    module2.exports = minor;
  }
});

// ../@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/patch.js
var require_patch = __commonJS({
  "../@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/patch.js"(exports2, module2) {
    "use strict";
    var SemVer = require_semver();
    var patch = /* @__PURE__ */ __name((a3, loose) => new SemVer(a3, loose).patch, "patch");
    module2.exports = patch;
  }
});

// ../@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/prerelease.js
var require_prerelease = __commonJS({
  "../@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/prerelease.js"(exports2, module2) {
    "use strict";
    var parse3 = require_parse();
    var prerelease = /* @__PURE__ */ __name((version2, options) => {
      const parsed = parse3(version2, options);
      return parsed && parsed.prerelease.length ? parsed.prerelease : null;
    }, "prerelease");
    module2.exports = prerelease;
  }
});

// ../@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/compare.js
var require_compare = __commonJS({
  "../@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/compare.js"(exports2, module2) {
    "use strict";
    var SemVer = require_semver();
    var compare2 = /* @__PURE__ */ __name((a3, b3, loose) => new SemVer(a3, loose).compare(new SemVer(b3, loose)), "compare");
    module2.exports = compare2;
  }
});

// ../@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/rcompare.js
var require_rcompare = __commonJS({
  "../@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/rcompare.js"(exports2, module2) {
    "use strict";
    var compare2 = require_compare();
    var rcompare = /* @__PURE__ */ __name((a3, b3, loose) => compare2(b3, a3, loose), "rcompare");
    module2.exports = rcompare;
  }
});

// ../@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/compare-loose.js
var require_compare_loose = __commonJS({
  "../@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/compare-loose.js"(exports2, module2) {
    "use strict";
    var compare2 = require_compare();
    var compareLoose = /* @__PURE__ */ __name((a3, b3) => compare2(a3, b3, true), "compareLoose");
    module2.exports = compareLoose;
  }
});

// ../@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/compare-build.js
var require_compare_build = __commonJS({
  "../@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/compare-build.js"(exports2, module2) {
    "use strict";
    var SemVer = require_semver();
    var compareBuild = /* @__PURE__ */ __name((a3, b3, loose) => {
      const versionA = new SemVer(a3, loose);
      const versionB = new SemVer(b3, loose);
      return versionA.compare(versionB) || versionA.compareBuild(versionB);
    }, "compareBuild");
    module2.exports = compareBuild;
  }
});

// ../@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/sort.js
var require_sort = __commonJS({
  "../@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/sort.js"(exports2, module2) {
    "use strict";
    var compareBuild = require_compare_build();
    var sort = /* @__PURE__ */ __name((list2, loose) => list2.sort((a3, b3) => compareBuild(a3, b3, loose)), "sort");
    module2.exports = sort;
  }
});

// ../@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/rsort.js
var require_rsort = __commonJS({
  "../@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/rsort.js"(exports2, module2) {
    "use strict";
    var compareBuild = require_compare_build();
    var rsort = /* @__PURE__ */ __name((list2, loose) => list2.sort((a3, b3) => compareBuild(b3, a3, loose)), "rsort");
    module2.exports = rsort;
  }
});

// ../@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/gt.js
var require_gt = __commonJS({
  "../@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/gt.js"(exports2, module2) {
    "use strict";
    var compare2 = require_compare();
    var gt = /* @__PURE__ */ __name((a3, b3, loose) => compare2(a3, b3, loose) > 0, "gt");
    module2.exports = gt;
  }
});

// ../@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/lt.js
var require_lt = __commonJS({
  "../@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/lt.js"(exports2, module2) {
    "use strict";
    var compare2 = require_compare();
    var lt = /* @__PURE__ */ __name((a3, b3, loose) => compare2(a3, b3, loose) < 0, "lt");
    module2.exports = lt;
  }
});

// ../@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/eq.js
var require_eq = __commonJS({
  "../@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/eq.js"(exports2, module2) {
    "use strict";
    var compare2 = require_compare();
    var eq2 = /* @__PURE__ */ __name((a3, b3, loose) => compare2(a3, b3, loose) === 0, "eq");
    module2.exports = eq2;
  }
});

// ../@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/neq.js
var require_neq = __commonJS({
  "../@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/neq.js"(exports2, module2) {
    "use strict";
    var compare2 = require_compare();
    var neq = /* @__PURE__ */ __name((a3, b3, loose) => compare2(a3, b3, loose) !== 0, "neq");
    module2.exports = neq;
  }
});

// ../@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/gte.js
var require_gte = __commonJS({
  "../@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/gte.js"(exports2, module2) {
    "use strict";
    var compare2 = require_compare();
    var gte2 = /* @__PURE__ */ __name((a3, b3, loose) => compare2(a3, b3, loose) >= 0, "gte");
    module2.exports = gte2;
  }
});

// ../@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/lte.js
var require_lte = __commonJS({
  "../@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/lte.js"(exports2, module2) {
    "use strict";
    var compare2 = require_compare();
    var lte3 = /* @__PURE__ */ __name((a3, b3, loose) => compare2(a3, b3, loose) <= 0, "lte");
    module2.exports = lte3;
  }
});

// ../@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/cmp.js
var require_cmp = __commonJS({
  "../@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/cmp.js"(exports2, module2) {
    "use strict";
    var eq2 = require_eq();
    var neq = require_neq();
    var gt = require_gt();
    var gte2 = require_gte();
    var lt = require_lt();
    var lte3 = require_lte();
    var cmp = /* @__PURE__ */ __name((a3, op2, b3, loose) => {
      switch (op2) {
        case "===":
          if (typeof a3 === "object") {
            a3 = a3.version;
          }
          if (typeof b3 === "object") {
            b3 = b3.version;
          }
          return a3 === b3;
        case "!==":
          if (typeof a3 === "object") {
            a3 = a3.version;
          }
          if (typeof b3 === "object") {
            b3 = b3.version;
          }
          return a3 !== b3;
        case "":
        case "=":
        case "==":
          return eq2(a3, b3, loose);
        case "!=":
          return neq(a3, b3, loose);
        case ">":
          return gt(a3, b3, loose);
        case ">=":
          return gte2(a3, b3, loose);
        case "<":
          return lt(a3, b3, loose);
        case "<=":
          return lte3(a3, b3, loose);
        default:
          throw new TypeError(`Invalid operator: ${op2}`);
      }
    }, "cmp");
    module2.exports = cmp;
  }
});

// ../@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/coerce.js
var require_coerce = __commonJS({
  "../@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/coerce.js"(exports2, module2) {
    "use strict";
    var SemVer = require_semver();
    var parse3 = require_parse();
    var { safeRe: re, t: t3 } = require_re();
    var coerce2 = /* @__PURE__ */ __name((version2, options) => {
      if (version2 instanceof SemVer) {
        return version2;
      }
      if (typeof version2 === "number") {
        version2 = String(version2);
      }
      if (typeof version2 !== "string") {
        return null;
      }
      options = options || {};
      let match4 = null;
      if (!options.rtl) {
        match4 = version2.match(options.includePrerelease ? re[t3.COERCEFULL] : re[t3.COERCE]);
      } else {
        const coerceRtlRegex = options.includePrerelease ? re[t3.COERCERTLFULL] : re[t3.COERCERTL];
        let next;
        while ((next = coerceRtlRegex.exec(version2)) && (!match4 || match4.index + match4[0].length !== version2.length)) {
          if (!match4 || next.index + next[0].length !== match4.index + match4[0].length) {
            match4 = next;
          }
          coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
        }
        coerceRtlRegex.lastIndex = -1;
      }
      if (match4 === null) {
        return null;
      }
      const major6 = match4[2];
      const minor = match4[3] || "0";
      const patch = match4[4] || "0";
      const prerelease = options.includePrerelease && match4[5] ? `-${match4[5]}` : "";
      const build = options.includePrerelease && match4[6] ? `+${match4[6]}` : "";
      return parse3(`${major6}.${minor}.${patch}${prerelease}${build}`, options);
    }, "coerce");
    module2.exports = coerce2;
  }
});

// ../@aws-cdk/cloud-assembly-schema/node_modules/semver/internal/lrucache.js
var require_lrucache = __commonJS({
  "../@aws-cdk/cloud-assembly-schema/node_modules/semver/internal/lrucache.js"(exports2, module2) {
    "use strict";
    var LRUCache2 = class {
      static {
        __name(this, "LRUCache");
      }
      constructor() {
        this.max = 1e3;
        this.map = /* @__PURE__ */ new Map();
      }
      get(key) {
        const value = this.map.get(key);
        if (value === void 0) {
          return void 0;
        } else {
          this.map.delete(key);
          this.map.set(key, value);
          return value;
        }
      }
      delete(key) {
        return this.map.delete(key);
      }
      set(key, value) {
        const deleted = this.delete(key);
        if (!deleted && value !== void 0) {
          if (this.map.size >= this.max) {
            const firstKey = this.map.keys().next().value;
            this.delete(firstKey);
          }
          this.map.set(key, value);
        }
        return this;
      }
    };
    module2.exports = LRUCache2;
  }
});

// ../@aws-cdk/cloud-assembly-schema/node_modules/semver/classes/range.js
var require_range = __commonJS({
  "../@aws-cdk/cloud-assembly-schema/node_modules/semver/classes/range.js"(exports2, module2) {
    "use strict";
    var SPACE_CHARACTERS = /\s+/g;
    var Range = class _Range {
      static {
        __name(this, "Range");
      }
      constructor(range2, options) {
        options = parseOptions(options);
        if (range2 instanceof _Range) {
          if (range2.loose === !!options.loose && range2.includePrerelease === !!options.includePrerelease) {
            return range2;
          } else {
            return new _Range(range2.raw, options);
          }
        }
        if (range2 instanceof Comparator) {
          this.raw = range2.value;
          this.set = [[range2]];
          this.formatted = void 0;
          return this;
        }
        this.options = options;
        this.loose = !!options.loose;
        this.includePrerelease = !!options.includePrerelease;
        this.raw = range2.trim().replace(SPACE_CHARACTERS, " ");
        this.set = this.raw.split("||").map((r3) => this.parseRange(r3.trim())).filter((c3) => c3.length);
        if (!this.set.length) {
          throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
        }
        if (this.set.length > 1) {
          const first = this.set[0];
          this.set = this.set.filter((c3) => !isNullSet(c3[0]));
          if (this.set.length === 0) {
            this.set = [first];
          } else if (this.set.length > 1) {
            for (const c3 of this.set) {
              if (c3.length === 1 && isAny(c3[0])) {
                this.set = [c3];
                break;
              }
            }
          }
        }
        this.formatted = void 0;
      }
      get range() {
        if (this.formatted === void 0) {
          this.formatted = "";
          for (let i3 = 0; i3 < this.set.length; i3++) {
            if (i3 > 0) {
              this.formatted += "||";
            }
            const comps = this.set[i3];
            for (let k3 = 0; k3 < comps.length; k3++) {
              if (k3 > 0) {
                this.formatted += " ";
              }
              this.formatted += comps[k3].toString().trim();
            }
          }
        }
        return this.formatted;
      }
      format() {
        return this.range;
      }
      toString() {
        return this.range;
      }
      parseRange(range2) {
        const memoOpts = (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE);
        const memoKey = memoOpts + ":" + range2;
        const cached4 = cache3.get(memoKey);
        if (cached4) {
          return cached4;
        }
        const loose = this.options.loose;
        const hr = loose ? re[t3.HYPHENRANGELOOSE] : re[t3.HYPHENRANGE];
        range2 = range2.replace(hr, hyphenReplace(this.options.includePrerelease));
        debug3("hyphen replace", range2);
        range2 = range2.replace(re[t3.COMPARATORTRIM], comparatorTrimReplace);
        debug3("comparator trim", range2);
        range2 = range2.replace(re[t3.TILDETRIM], tildeTrimReplace);
        debug3("tilde trim", range2);
        range2 = range2.replace(re[t3.CARETTRIM], caretTrimReplace);
        debug3("caret trim", range2);
        let rangeList = range2.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
        if (loose) {
          rangeList = rangeList.filter((comp) => {
            debug3("loose invalid filter", comp, this.options);
            return !!comp.match(re[t3.COMPARATORLOOSE]);
          });
        }
        debug3("range list", rangeList);
        const rangeMap = /* @__PURE__ */ new Map();
        const comparators = rangeList.map((comp) => new Comparator(comp, this.options));
        for (const comp of comparators) {
          if (isNullSet(comp)) {
            return [comp];
          }
          rangeMap.set(comp.value, comp);
        }
        if (rangeMap.size > 1 && rangeMap.has("")) {
          rangeMap.delete("");
        }
        const result2 = [...rangeMap.values()];
        cache3.set(memoKey, result2);
        return result2;
      }
      intersects(range2, options) {
        if (!(range2 instanceof _Range)) {
          throw new TypeError("a Range is required");
        }
        return this.set.some((thisComparators) => {
          return isSatisfiable(thisComparators, options) && range2.set.some((rangeComparators) => {
            return isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => {
              return rangeComparators.every((rangeComparator) => {
                return thisComparator.intersects(rangeComparator, options);
              });
            });
          });
        });
      }
      // if ANY of the sets match ALL of its comparators, then pass
      test(version2) {
        if (!version2) {
          return false;
        }
        if (typeof version2 === "string") {
          try {
            version2 = new SemVer(version2, this.options);
          } catch (er) {
            return false;
          }
        }
        for (let i3 = 0; i3 < this.set.length; i3++) {
          if (testSet(this.set[i3], version2, this.options)) {
            return true;
          }
        }
        return false;
      }
    };
    module2.exports = Range;
    var LRU = require_lrucache();
    var cache3 = new LRU();
    var parseOptions = require_parse_options();
    var Comparator = require_comparator();
    var debug3 = require_debug();
    var SemVer = require_semver();
    var {
      safeRe: re,
      t: t3,
      comparatorTrimReplace,
      tildeTrimReplace,
      caretTrimReplace
    } = require_re();
    var { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants();
    var isNullSet = /* @__PURE__ */ __name((c3) => c3.value === "<0.0.0-0", "isNullSet");
    var isAny = /* @__PURE__ */ __name((c3) => c3.value === "", "isAny");
    var isSatisfiable = /* @__PURE__ */ __name((comparators, options) => {
      let result2 = true;
      const remainingComparators = comparators.slice();
      let testComparator = remainingComparators.pop();
      while (result2 && remainingComparators.length) {
        result2 = remainingComparators.every((otherComparator) => {
          return testComparator.intersects(otherComparator, options);
        });
        testComparator = remainingComparators.pop();
      }
      return result2;
    }, "isSatisfiable");
    var parseComparator = /* @__PURE__ */ __name((comp, options) => {
      debug3("comp", comp, options);
      comp = replaceCarets(comp, options);
      debug3("caret", comp);
      comp = replaceTildes(comp, options);
      debug3("tildes", comp);
      comp = replaceXRanges(comp, options);
      debug3("xrange", comp);
      comp = replaceStars(comp, options);
      debug3("stars", comp);
      return comp;
    }, "parseComparator");
    var isX = /* @__PURE__ */ __name((id) => !id || id.toLowerCase() === "x" || id === "*", "isX");
    var replaceTildes = /* @__PURE__ */ __name((comp, options) => {
      return comp.trim().split(/\s+/).map((c3) => replaceTilde(c3, options)).join(" ");
    }, "replaceTildes");
    var replaceTilde = /* @__PURE__ */ __name((comp, options) => {
      const r3 = options.loose ? re[t3.TILDELOOSE] : re[t3.TILDE];
      return comp.replace(r3, (_3, M, m3, p3, pr) => {
        debug3("tilde", comp, _3, M, m3, p3, pr);
        let ret;
        if (isX(M)) {
          ret = "";
        } else if (isX(m3)) {
          ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
        } else if (isX(p3)) {
          ret = `>=${M}.${m3}.0 <${M}.${+m3 + 1}.0-0`;
        } else if (pr) {
          debug3("replaceTilde pr", pr);
          ret = `>=${M}.${m3}.${p3}-${pr} <${M}.${+m3 + 1}.0-0`;
        } else {
          ret = `>=${M}.${m3}.${p3} <${M}.${+m3 + 1}.0-0`;
        }
        debug3("tilde return", ret);
        return ret;
      });
    }, "replaceTilde");
    var replaceCarets = /* @__PURE__ */ __name((comp, options) => {
      return comp.trim().split(/\s+/).map((c3) => replaceCaret(c3, options)).join(" ");
    }, "replaceCarets");
    var replaceCaret = /* @__PURE__ */ __name((comp, options) => {
      debug3("caret", comp, options);
      const r3 = options.loose ? re[t3.CARETLOOSE] : re[t3.CARET];
      const z2 = options.includePrerelease ? "-0" : "";
      return comp.replace(r3, (_3, M, m3, p3, pr) => {
        debug3("caret", comp, _3, M, m3, p3, pr);
        let ret;
        if (isX(M)) {
          ret = "";
        } else if (isX(m3)) {
          ret = `>=${M}.0.0${z2} <${+M + 1}.0.0-0`;
        } else if (isX(p3)) {
          if (M === "0") {
            ret = `>=${M}.${m3}.0${z2} <${M}.${+m3 + 1}.0-0`;
          } else {
            ret = `>=${M}.${m3}.0${z2} <${+M + 1}.0.0-0`;
          }
        } else if (pr) {
          debug3("replaceCaret pr", pr);
          if (M === "0") {
            if (m3 === "0") {
              ret = `>=${M}.${m3}.${p3}-${pr} <${M}.${m3}.${+p3 + 1}-0`;
            } else {
              ret = `>=${M}.${m3}.${p3}-${pr} <${M}.${+m3 + 1}.0-0`;
            }
          } else {
            ret = `>=${M}.${m3}.${p3}-${pr} <${+M + 1}.0.0-0`;
          }
        } else {
          debug3("no pr");
          if (M === "0") {
            if (m3 === "0") {
              ret = `>=${M}.${m3}.${p3}${z2} <${M}.${m3}.${+p3 + 1}-0`;
            } else {
              ret = `>=${M}.${m3}.${p3}${z2} <${M}.${+m3 + 1}.0-0`;
            }
          } else {
            ret = `>=${M}.${m3}.${p3} <${+M + 1}.0.0-0`;
          }
        }
        debug3("caret return", ret);
        return ret;
      });
    }, "replaceCaret");
    var replaceXRanges = /* @__PURE__ */ __name((comp, options) => {
      debug3("replaceXRanges", comp, options);
      return comp.split(/\s+/).map((c3) => replaceXRange(c3, options)).join(" ");
    }, "replaceXRanges");
    var replaceXRange = /* @__PURE__ */ __name((comp, options) => {
      comp = comp.trim();
      const r3 = options.loose ? re[t3.XRANGELOOSE] : re[t3.XRANGE];
      return comp.replace(r3, (ret, gtlt, M, m3, p3, pr) => {
        debug3("xRange", comp, ret, gtlt, M, m3, p3, pr);
        const xM = isX(M);
        const xm = xM || isX(m3);
        const xp = xm || isX(p3);
        const anyX = xp;
        if (gtlt === "=" && anyX) {
          gtlt = "";
        }
        pr = options.includePrerelease ? "-0" : "";
        if (xM) {
          if (gtlt === ">" || gtlt === "<") {
            ret = "<0.0.0-0";
          } else {
            ret = "*";
          }
        } else if (gtlt && anyX) {
          if (xm) {
            m3 = 0;
          }
          p3 = 0;
          if (gtlt === ">") {
            gtlt = ">=";
            if (xm) {
              M = +M + 1;
              m3 = 0;
              p3 = 0;
            } else {
              m3 = +m3 + 1;
              p3 = 0;
            }
          } else if (gtlt === "<=") {
            gtlt = "<";
            if (xm) {
              M = +M + 1;
            } else {
              m3 = +m3 + 1;
            }
          }
          if (gtlt === "<") {
            pr = "-0";
          }
          ret = `${gtlt + M}.${m3}.${p3}${pr}`;
        } else if (xm) {
          ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
        } else if (xp) {
          ret = `>=${M}.${m3}.0${pr} <${M}.${+m3 + 1}.0-0`;
        }
        debug3("xRange return", ret);
        return ret;
      });
    }, "replaceXRange");
    var replaceStars = /* @__PURE__ */ __name((comp, options) => {
      debug3("replaceStars", comp, options);
      return comp.trim().replace(re[t3.STAR], "");
    }, "replaceStars");
    var replaceGTE0 = /* @__PURE__ */ __name((comp, options) => {
      debug3("replaceGTE0", comp, options);
      return comp.trim().replace(re[options.includePrerelease ? t3.GTE0PRE : t3.GTE0], "");
    }, "replaceGTE0");
    var hyphenReplace = /* @__PURE__ */ __name((incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => {
      if (isX(fM)) {
        from = "";
      } else if (isX(fm)) {
        from = `>=${fM}.0.0${incPr ? "-0" : ""}`;
      } else if (isX(fp)) {
        from = `>=${fM}.${fm}.0${incPr ? "-0" : ""}`;
      } else if (fpr) {
        from = `>=${from}`;
      } else {
        from = `>=${from}${incPr ? "-0" : ""}`;
      }
      if (isX(tM)) {
        to = "";
      } else if (isX(tm)) {
        to = `<${+tM + 1}.0.0-0`;
      } else if (isX(tp)) {
        to = `<${tM}.${+tm + 1}.0-0`;
      } else if (tpr) {
        to = `<=${tM}.${tm}.${tp}-${tpr}`;
      } else if (incPr) {
        to = `<${tM}.${tm}.${+tp + 1}-0`;
      } else {
        to = `<=${to}`;
      }
      return `${from} ${to}`.trim();
    }, "hyphenReplace");
    var testSet = /* @__PURE__ */ __name((set, version2, options) => {
      for (let i3 = 0; i3 < set.length; i3++) {
        if (!set[i3].test(version2)) {
          return false;
        }
      }
      if (version2.prerelease.length && !options.includePrerelease) {
        for (let i3 = 0; i3 < set.length; i3++) {
          debug3(set[i3].semver);
          if (set[i3].semver === Comparator.ANY) {
            continue;
          }
          if (set[i3].semver.prerelease.length > 0) {
            const allowed = set[i3].semver;
            if (allowed.major === version2.major && allowed.minor === version2.minor && allowed.patch === version2.patch) {
              return true;
            }
          }
        }
        return false;
      }
      return true;
    }, "testSet");
  }
});

// ../@aws-cdk/cloud-assembly-schema/node_modules/semver/classes/comparator.js
var require_comparator = __commonJS({
  "../@aws-cdk/cloud-assembly-schema/node_modules/semver/classes/comparator.js"(exports2, module2) {
    "use strict";
    var ANY = Symbol("SemVer ANY");
    var Comparator = class _Comparator {
      static {
        __name(this, "Comparator");
      }
      static get ANY() {
        return ANY;
      }
      constructor(comp, options) {
        options = parseOptions(options);
        if (comp instanceof _Comparator) {
          if (comp.loose === !!options.loose) {
            return comp;
          } else {
            comp = comp.value;
          }
        }
        comp = comp.trim().split(/\s+/).join(" ");
        debug3("comparator", comp, options);
        this.options = options;
        this.loose = !!options.loose;
        this.parse(comp);
        if (this.semver === ANY) {
          this.value = "";
        } else {
          this.value = this.operator + this.semver.version;
        }
        debug3("comp", this);
      }
      parse(comp) {
        const r3 = this.options.loose ? re[t3.COMPARATORLOOSE] : re[t3.COMPARATOR];
        const m3 = comp.match(r3);
        if (!m3) {
          throw new TypeError(`Invalid comparator: ${comp}`);
        }
        this.operator = m3[1] !== void 0 ? m3[1] : "";
        if (this.operator === "=") {
          this.operator = "";
        }
        if (!m3[2]) {
          this.semver = ANY;
        } else {
          this.semver = new SemVer(m3[2], this.options.loose);
        }
      }
      toString() {
        return this.value;
      }
      test(version2) {
        debug3("Comparator.test", version2, this.options.loose);
        if (this.semver === ANY || version2 === ANY) {
          return true;
        }
        if (typeof version2 === "string") {
          try {
            version2 = new SemVer(version2, this.options);
          } catch (er) {
            return false;
          }
        }
        return cmp(version2, this.operator, this.semver, this.options);
      }
      intersects(comp, options) {
        if (!(comp instanceof _Comparator)) {
          throw new TypeError("a Comparator is required");
        }
        if (this.operator === "") {
          if (this.value === "") {
            return true;
          }
          return new Range(comp.value, options).test(this.value);
        } else if (comp.operator === "") {
          if (comp.value === "") {
            return true;
          }
          return new Range(this.value, options).test(comp.semver);
        }
        options = parseOptions(options);
        if (options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0")) {
          return false;
        }
        if (!options.includePrerelease && (this.value.startsWith("<0.0.0") || comp.value.startsWith("<0.0.0"))) {
          return false;
        }
        if (this.operator.startsWith(">") && comp.operator.startsWith(">")) {
          return true;
        }
        if (this.operator.startsWith("<") && comp.operator.startsWith("<")) {
          return true;
        }
        if (this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=")) {
          return true;
        }
        if (cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<")) {
          return true;
        }
        if (cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")) {
          return true;
        }
        return false;
      }
    };
    module2.exports = Comparator;
    var parseOptions = require_parse_options();
    var { safeRe: re, t: t3 } = require_re();
    var cmp = require_cmp();
    var debug3 = require_debug();
    var SemVer = require_semver();
    var Range = require_range();
  }
});

// ../@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/satisfies.js
var require_satisfies = __commonJS({
  "../@aws-cdk/cloud-assembly-schema/node_modules/semver/functions/satisfies.js"(exports2, module2) {
    "use strict";
    var Range = require_range();
    var satisfies2 = /* @__PURE__ */ __name((version2, range2, options) => {
      try {
        range2 = new Range(range2, options);
      } catch (er) {
        return false;
      }
      return range2.test(version2);
    }, "satisfies");
    module2.exports = satisfies2;
  }
});

// ../@aws-cdk/cloud-assembly-schema/node_modules/semver/ranges/to-comparators.js
var require_to_comparators = __commonJS({
  "../@aws-cdk/cloud-assembly-schema/node_modules/semver/ranges/to-comparators.js"(exports2, module2) {
    "use strict";
    var Range = require_range();
    var toComparators = /* @__PURE__ */ __name((range2, options) => new Range(range2, options).set.map((comp) => comp.map((c3) => c3.value).join(" ").trim().split(" ")), "toComparators");
    module2.exports = toComparators;
  }
});

// ../@aws-cdk/cloud-assembly-schema/node_modules/semver/ranges/max-satisfying.js
var require_max_satisfying = __commonJS({
  "../@aws-cdk/cloud-assembly-schema/node_modules/semver/ranges/max-satisfying.js"(exports2, module2) {
    "use strict";
    var SemVer = require_semver();
    var Range = require_range();
    var maxSatisfying = /* @__PURE__ */ __name((versions, range2, options) => {
      let max = null;
      let maxSV = null;
      let rangeObj = null;
      try {
        rangeObj = new Range(range2, options);
      } catch (er) {
        return null;
      }
      versions.forEach((v6) => {
        if (rangeObj.test(v6)) {
          if (!max || maxSV.compare(v6) === -1) {
            max = v6;
            maxSV = new SemVer(max, options);
          }
        }
      });
      return max;
    }, "maxSatisfying");
    module2.exports = maxSatisfying;
  }
});

// ../@aws-cdk/cloud-assembly-schema/node_modules/semver/ranges/min-satisfying.js
var require_min_satisfying = __commonJS({
  "../@aws-cdk/cloud-assembly-schema/node_modules/semver/ranges/min-satisfying.js"(exports2, module2) {
    "use strict";
    var SemVer = require_semver();
    var Range = require_range();
    var minSatisfying = /* @__PURE__ */ __name((versions, range2, options) => {
      let min = null;
      let minSV = null;
      let rangeObj = null;
      try {
        rangeObj = new Range(range2, options);
      } catch (er) {
        return null;
      }
      versions.forEach((v6) => {
        if (rangeObj.test(v6)) {
          if (!min || minSV.compare(v6) === 1) {
            min = v6;
            minSV = new SemVer(min, options);
          }
        }
      });
      return min;
    }, "minSatisfying");
    module2.exports = minSatisfying;
  }
});

// ../@aws-cdk/cloud-assembly-schema/node_modules/semver/ranges/min-version.js
var require_min_version = __commonJS({
  "../@aws-cdk/cloud-assembly-schema/node_modules/semver/ranges/min-version.js"(exports2, module2) {
    "use strict";
    var SemVer = require_semver();
    var Range = require_range();
    var gt = require_gt();
    var minVersion = /* @__PURE__ */ __name((range2, loose) => {
      range2 = new Range(range2, loose);
      let minver = new SemVer("0.0.0");
      if (range2.test(minver)) {
        return minver;
      }
      minver = new SemVer("0.0.0-0");
      if (range2.test(minver)) {
        return minver;
      }
      minver = null;
      for (let i3 = 0; i3 < range2.set.length; ++i3) {
        const comparators = range2.set[i3];
        let setMin = null;
        comparators.forEach((comparator) => {
          const compver = new SemVer(comparator.semver.version);
          switch (comparator.operator) {
            case ">":
              if (compver.prerelease.length === 0) {
                compver.patch++;
              } else {
                compver.prerelease.push(0);
              }
              compver.raw = compver.format();
            /* fallthrough */
            case "":
            case ">=":
              if (!setMin || gt(compver, setMin)) {
                setMin = compver;
              }
              break;
            case "<":
            case "<=":
              break;
            /* istanbul ignore next */
            default:
              throw new Error(`Unexpected operation: ${comparator.operator}`);
          }
        });
        if (setMin && (!minver || gt(minver, setMin))) {
          minver = setMin;
        }
      }
      if (minver && range2.test(minver)) {
        return minver;
      }
      return null;
    }, "minVersion");
    module2.exports = minVersion;
  }
});

// ../@aws-cdk/cloud-assembly-schema/node_modules/semver/ranges/valid.js
var require_valid2 = __commonJS({
  "../@aws-cdk/cloud-assembly-schema/node_modules/semver/ranges/valid.js"(exports2, module2) {
    "use strict";
    var Range = require_range();
    var validRange = /* @__PURE__ */ __name((range2, options) => {
      try {
        return new Range(range2, options).range || "*";
      } catch (er) {
        return null;
      }
    }, "validRange");
    module2.exports = validRange;
  }
});

// ../@aws-cdk/cloud-assembly-schema/node_modules/semver/ranges/outside.js
var require_outside = __commonJS({
  "../@aws-cdk/cloud-assembly-schema/node_modules/semver/ranges/outside.js"(exports2, module2) {
    "use strict";
    var SemVer = require_semver();
    var Comparator = require_comparator();
    var { ANY } = Comparator;
    var Range = require_range();
    var satisfies2 = require_satisfies();
    var gt = require_gt();
    var lt = require_lt();
    var lte3 = require_lte();
    var gte2 = require_gte();
    var outside = /* @__PURE__ */ __name((version2, range2, hilo, options) => {
      version2 = new SemVer(version2, options);
      range2 = new Range(range2, options);
      let gtfn, ltefn, ltfn, comp, ecomp;
      switch (hilo) {
        case ">":
          gtfn = gt;
          ltefn = lte3;
          ltfn = lt;
          comp = ">";
          ecomp = ">=";
          break;
        case "<":
          gtfn = lt;
          ltefn = gte2;
          ltfn = gt;
          comp = "<";
          ecomp = "<=";
          break;
        default:
          throw new TypeError('Must provide a hilo val of "<" or ">"');
      }
      if (satisfies2(version2, range2, options)) {
        return false;
      }
      for (let i3 = 0; i3 < range2.set.length; ++i3) {
        const comparators = range2.set[i3];
        let high = null;
        let low = null;
        comparators.forEach((comparator) => {
          if (comparator.semver === ANY) {
            comparator = new Comparator(">=0.0.0");
          }
          high = high || comparator;
          low = low || comparator;
          if (gtfn(comparator.semver, high.semver, options)) {
            high = comparator;
          } else if (ltfn(comparator.semver, low.semver, options)) {
            low = comparator;
          }
        });
        if (high.operator === comp || high.operator === ecomp) {
          return false;
        }
        if ((!low.operator || low.operator === comp) && ltefn(version2, low.semver)) {
          return false;
        } else if (low.operator === ecomp && ltfn(version2, low.semver)) {
          return false;
        }
      }
      return true;
    }, "outside");
    module2.exports = outside;
  }
});

// ../@aws-cdk/cloud-assembly-schema/node_modules/semver/ranges/gtr.js
var require_gtr = __commonJS({
  "../@aws-cdk/cloud-assembly-schema/node_modules/semver/ranges/gtr.js"(exports2, module2) {
    "use strict";
    var outside = require_outside();
    var gtr = /* @__PURE__ */ __name((version2, range2, options) => outside(version2, range2, ">", options), "gtr");
    module2.exports = gtr;
  }
});

// ../@aws-cdk/cloud-assembly-schema/node_modules/semver/ranges/ltr.js
var require_ltr = __commonJS({
  "../@aws-cdk/cloud-assembly-schema/node_modules/semver/ranges/ltr.js"(exports2, module2) {
    "use strict";
    var outside = require_outside();
    var ltr = /* @__PURE__ */ __name((version2, range2, options) => outside(version2, range2, "<", options), "ltr");
    module2.exports = ltr;
  }
});

// ../@aws-cdk/cloud-assembly-schema/node_modules/semver/ranges/intersects.js
var require_intersects = __commonJS({
  "../@aws-cdk/cloud-assembly-schema/node_modules/semver/ranges/intersects.js"(exports2, module2) {
    "use strict";
    var Range = require_range();
    var intersects = /* @__PURE__ */ __name((r1, r22, options) => {
      r1 = new Range(r1, options);
      r22 = new Range(r22, options);
      return r1.intersects(r22, options);
    }, "intersects");
    module2.exports = intersects;
  }
});

// ../@aws-cdk/cloud-assembly-schema/node_modules/semver/ranges/simplify.js
var require_simplify = __commonJS({
  "../@aws-cdk/cloud-assembly-schema/node_modules/semver/ranges/simplify.js"(exports2, module2) {
    "use strict";
    var satisfies2 = require_satisfies();
    var compare2 = require_compare();
    module2.exports = (versions, range2, options) => {
      const set = [];
      let first = null;
      let prev = null;
      const v6 = versions.sort((a3, b3) => compare2(a3, b3, options));
      for (const version2 of v6) {
        const included = satisfies2(version2, range2, options);
        if (included) {
          prev = version2;
          if (!first) {
            first = version2;
          }
        } else {
          if (prev) {
            set.push([first, prev]);
          }
          prev = null;
          first = null;
        }
      }
      if (first) {
        set.push([first, null]);
      }
      const ranges = [];
      for (const [min, max] of set) {
        if (min === max) {
          ranges.push(min);
        } else if (!max && min === v6[0]) {
          ranges.push("*");
        } else if (!max) {
          ranges.push(`>=${min}`);
        } else if (min === v6[0]) {
          ranges.push(`<=${max}`);
        } else {
          ranges.push(`${min} - ${max}`);
        }
      }
      const simplified = ranges.join(" || ");
      const original = typeof range2.raw === "string" ? range2.raw : String(range2);
      return simplified.length < original.length ? simplified : range2;
    };
  }
});

// ../@aws-cdk/cloud-assembly-schema/node_modules/semver/ranges/subset.js
var require_subset = __commonJS({
  "../@aws-cdk/cloud-assembly-schema/node_modules/semver/ranges/subset.js"(exports2, module2) {
    "use strict";
    var Range = require_range();
    var Comparator = require_comparator();
    var { ANY } = Comparator;
    var satisfies2 = require_satisfies();
    var compare2 = require_compare();
    var subset = /* @__PURE__ */ __name((sub, dom, options = {}) => {
      if (sub === dom) {
        return true;
      }
      sub = new Range(sub, options);
      dom = new Range(dom, options);
      let sawNonNull = false;
      OUTER: for (const simpleSub of sub.set) {
        for (const simpleDom of dom.set) {
          const isSub = simpleSubset(simpleSub, simpleDom, options);
          sawNonNull = sawNonNull || isSub !== null;
          if (isSub) {
            continue OUTER;
          }
        }
        if (sawNonNull) {
          return false;
        }
      }
      return true;
    }, "subset");
    var minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")];
    var minimumVersion = [new Comparator(">=0.0.0")];
    var simpleSubset = /* @__PURE__ */ __name((sub, dom, options) => {
      if (sub === dom) {
        return true;
      }
      if (sub.length === 1 && sub[0].semver === ANY) {
        if (dom.length === 1 && dom[0].semver === ANY) {
          return true;
        } else if (options.includePrerelease) {
          sub = minimumVersionWithPreRelease;
        } else {
          sub = minimumVersion;
        }
      }
      if (dom.length === 1 && dom[0].semver === ANY) {
        if (options.includePrerelease) {
          return true;
        } else {
          dom = minimumVersion;
        }
      }
      const eqSet = /* @__PURE__ */ new Set();
      let gt, lt;
      for (const c3 of sub) {
        if (c3.operator === ">" || c3.operator === ">=") {
          gt = higherGT(gt, c3, options);
        } else if (c3.operator === "<" || c3.operator === "<=") {
          lt = lowerLT(lt, c3, options);
        } else {
          eqSet.add(c3.semver);
        }
      }
      if (eqSet.size > 1) {
        return null;
      }
      let gtltComp;
      if (gt && lt) {
        gtltComp = compare2(gt.semver, lt.semver, options);
        if (gtltComp > 0) {
          return null;
        } else if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<=")) {
          return null;
        }
      }
      for (const eq2 of eqSet) {
        if (gt && !satisfies2(eq2, String(gt), options)) {
          return null;
        }
        if (lt && !satisfies2(eq2, String(lt), options)) {
          return null;
        }
        for (const c3 of dom) {
          if (!satisfies2(eq2, String(c3), options)) {
            return false;
          }
        }
        return true;
      }
      let higher, lower;
      let hasDomLT, hasDomGT;
      let needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : false;
      let needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : false;
      if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0) {
        needDomLTPre = false;
      }
      for (const c3 of dom) {
        hasDomGT = hasDomGT || c3.operator === ">" || c3.operator === ">=";
        hasDomLT = hasDomLT || c3.operator === "<" || c3.operator === "<=";
        if (gt) {
          if (needDomGTPre) {
            if (c3.semver.prerelease && c3.semver.prerelease.length && c3.semver.major === needDomGTPre.major && c3.semver.minor === needDomGTPre.minor && c3.semver.patch === needDomGTPre.patch) {
              needDomGTPre = false;
            }
          }
          if (c3.operator === ">" || c3.operator === ">=") {
            higher = higherGT(gt, c3, options);
            if (higher === c3 && higher !== gt) {
              return false;
            }
          } else if (gt.operator === ">=" && !satisfies2(gt.semver, String(c3), options)) {
            return false;
          }
        }
        if (lt) {
          if (needDomLTPre) {
            if (c3.semver.prerelease && c3.semver.prerelease.length && c3.semver.major === needDomLTPre.major && c3.semver.minor === needDomLTPre.minor && c3.semver.patch === needDomLTPre.patch) {
              needDomLTPre = false;
            }
          }
          if (c3.operator === "<" || c3.operator === "<=") {
            lower = lowerLT(lt, c3, options);
            if (lower === c3 && lower !== lt) {
              return false;
            }
          } else if (lt.operator === "<=" && !satisfies2(lt.semver, String(c3), options)) {
            return false;
          }
        }
        if (!c3.operator && (lt || gt) && gtltComp !== 0) {
          return false;
        }
      }
      if (gt && hasDomLT && !lt && gtltComp !== 0) {
        return false;
      }
      if (lt && hasDomGT && !gt && gtltComp !== 0) {
        return false;
      }
      if (needDomGTPre || needDomLTPre) {
        return false;
      }
      return true;
    }, "simpleSubset");
    var higherGT = /* @__PURE__ */ __name((a3, b3, options) => {
      if (!a3) {
        return b3;
      }
      const comp = compare2(a3.semver, b3.semver, options);
      return comp > 0 ? a3 : comp < 0 ? b3 : b3.operator === ">" && a3.operator === ">=" ? b3 : a3;
    }, "higherGT");
    var lowerLT = /* @__PURE__ */ __name((a3, b3, options) => {
      if (!a3) {
        return b3;
      }
      const comp = compare2(a3.semver, b3.semver, options);
      return comp < 0 ? a3 : comp > 0 ? b3 : b3.operator === "<" && a3.operator === "<=" ? b3 : a3;
    }, "lowerLT");
    module2.exports = subset;
  }
});

// ../@aws-cdk/cloud-assembly-schema/node_modules/semver/index.js
var require_semver2 = __commonJS({
  "../@aws-cdk/cloud-assembly-schema/node_modules/semver/index.js"(exports2, module2) {
    "use strict";
    var internalRe = require_re();
    var constants3 = require_constants();
    var SemVer = require_semver();
    var identifiers = require_identifiers();
    var parse3 = require_parse();
    var valid3 = require_valid();
    var clean = require_clean();
    var inc = require_inc();
    var diff = require_diff();
    var major6 = require_major();
    var minor = require_minor();
    var patch = require_patch();
    var prerelease = require_prerelease();
    var compare2 = require_compare();
    var rcompare = require_rcompare();
    var compareLoose = require_compare_loose();
    var compareBuild = require_compare_build();
    var sort = require_sort();
    var rsort = require_rsort();
    var gt = require_gt();
    var lt = require_lt();
    var eq2 = require_eq();
    var neq = require_neq();
    var gte2 = require_gte();
    var lte3 = require_lte();
    var cmp = require_cmp();
    var coerce2 = require_coerce();
    var Comparator = require_comparator();
    var Range = require_range();
    var satisfies2 = require_satisfies();
    var toComparators = require_to_comparators();
    var maxSatisfying = require_max_satisfying();
    var minSatisfying = require_min_satisfying();
    var minVersion = require_min_version();
    var validRange = require_valid2();
    var outside = require_outside();
    var gtr = require_gtr();
    var ltr = require_ltr();
    var intersects = require_intersects();
    var simplifyRange = require_simplify();
    var subset = require_subset();
    module2.exports = {
      parse: parse3,
      valid: valid3,
      clean,
      inc,
      diff,
      major: major6,
      minor,
      patch,
      prerelease,
      compare: compare2,
      rcompare,
      compareLoose,
      compareBuild,
      sort,
      rsort,
      gt,
      lt,
      eq: eq2,
      neq,
      gte: gte2,
      lte: lte3,
      cmp,
      coerce: coerce2,
      Comparator,
      Range,
      satisfies: satisfies2,
      toComparators,
      maxSatisfying,
      minSatisfying,
      minVersion,
      validRange,
      outside,
      gtr,
      ltr,
      intersects,
      simplifyRange,
      subset,
      SemVer,
      re: internalRe.re,
      src: internalRe.src,
      tokens: internalRe.t,
      SEMVER_SPEC_VERSION: constants3.SEMVER_SPEC_VERSION,
      RELEASE_TYPES: constants3.RELEASE_TYPES,
      compareIdentifiers: identifiers.compareIdentifiers,
      rcompareIdentifiers: identifiers.rcompareIdentifiers
    };
  }
});

// ../@aws-cdk/cloud-assembly-schema/cli-version.json
var require_cli_version = __commonJS({
  "../@aws-cdk/cloud-assembly-schema/cli-version.json"(exports2, module2) {
    module2.exports = { version: "2.1029.0" };
  }
});

// ../@aws-cdk/cloud-assembly-schema/schema/assets.schema.json
var require_assets_schema = __commonJS({
  "../@aws-cdk/cloud-assembly-schema/schema/assets.schema.json"(exports2, module2) {
    module2.exports = {
      $ref: "#/definitions/AssetManifest",
      definitions: {
        AssetManifest: {
          description: "Definitions for the asset manifest",
          type: "object",
          properties: {
            version: {
              description: "Version of the manifest",
              type: "string"
            },
            files: {
              description: "The file assets in this manifest (Default - No files)",
              type: "object",
              additionalProperties: {
                $ref: "#/definitions/FileAsset"
              }
            },
            dockerImages: {
              description: "The Docker image assets in this manifest (Default - No Docker images)",
              type: "object",
              additionalProperties: {
                $ref: "#/definitions/DockerImageAsset"
              }
            }
          },
          required: [
            "version"
          ]
        },
        FileAsset: {
          description: "A file asset",
          type: "object",
          properties: {
            displayName: {
              description: "A display name for this asset (Default - The identifier will be used as the display name)",
              type: "string"
            },
            source: {
              $ref: "#/definitions/FileSource",
              description: "Source description for file assets"
            },
            destinations: {
              description: "Destinations for this file asset",
              type: "object",
              additionalProperties: {
                $ref: "#/definitions/FileDestination"
              }
            }
          },
          required: [
            "destinations",
            "source"
          ]
        },
        FileSource: {
          description: "Describe the source of a file asset",
          type: "object",
          properties: {
            executable: {
              description: "External command which will produce the file asset to upload. (Default - Exactly one of `executable` and `path` is required.)",
              type: "array",
              items: {
                type: "string"
              }
            },
            path: {
              description: "The filesystem object to upload\n\nThis path is relative to the asset manifest location. (Default - Exactly one of `executable` and `path` is required.)",
              type: "string"
            },
            packaging: {
              description: "Packaging method\n\nOnly allowed when `path` is specified. (Default FILE)",
              enum: [
                "file",
                "zip"
              ],
              type: "string"
            }
          }
        },
        FileDestination: {
          description: "Where in S3 a file asset needs to be published",
          type: "object",
          properties: {
            bucketName: {
              description: "The name of the bucket",
              type: "string"
            },
            objectKey: {
              description: "The destination object key",
              type: "string"
            },
            region: {
              description: "The region where this asset will need to be published (Default - Current region)",
              type: "string"
            },
            assumeRoleArn: {
              description: "The role that needs to be assumed while publishing this asset (Default - No role will be assumed)",
              type: "string"
            },
            assumeRoleExternalId: {
              description: "The ExternalId that needs to be supplied while assuming this role (Default - No ExternalId will be supplied)",
              type: "string"
            },
            assumeRoleAdditionalOptions: {
              description: "Additional options to pass to STS when assuming the role.\n\n- `RoleArn` should not be used. Use the dedicated `assumeRoleArn` property instead.\n- `ExternalId` should not be used. Use the dedicated `assumeRoleExternalId` instead. (Default - No additional options.)",
              type: "object",
              additionalProperties: {}
            }
          },
          required: [
            "bucketName",
            "objectKey"
          ]
        },
        DockerImageAsset: {
          description: "A file asset",
          type: "object",
          properties: {
            displayName: {
              description: "A display name for this asset (Default - The identifier will be used as the display name)",
              type: "string"
            },
            source: {
              $ref: "#/definitions/DockerImageSource",
              description: "Source description for container assets"
            },
            destinations: {
              description: "Destinations for this container asset",
              type: "object",
              additionalProperties: {
                $ref: "#/definitions/DockerImageDestination"
              }
            }
          },
          required: [
            "destinations",
            "source"
          ]
        },
        DockerImageSource: {
          description: "Properties for how to produce a Docker image from a source",
          type: "object",
          properties: {
            directory: {
              description: "The directory containing the Docker image build instructions.\n\nThis path is relative to the asset manifest location. (Default - Exactly one of `directory` and `executable` is required)",
              type: "string"
            },
            executable: {
              description: "A command-line executable that returns the name of a local\nDocker image on stdout after being run. (Default - Exactly one of `directory` and `executable` is required)",
              type: "array",
              items: {
                type: "string"
              }
            },
            dockerFile: {
              description: "The name of the file with build instructions\n\nOnly allowed when `directory` is set. (Default Dockerfile)",
              type: "string"
            },
            dockerBuildTarget: {
              description: "Target build stage in a Dockerfile with multiple build stages\n\nOnly allowed when `directory` is set. (Default - The last stage in the Dockerfile)",
              type: "string"
            },
            dockerBuildArgs: {
              description: "Additional build arguments\n\nOnly allowed when `directory` is set. (Default - No additional build arguments)",
              type: "object",
              additionalProperties: {
                type: "string"
              }
            },
            dockerBuildSsh: {
              description: "SSH agent socket or keys\n\nRequires building with docker buildkit. (Default - No ssh flag is set)",
              type: "string"
            },
            dockerBuildSecrets: {
              description: "Additional build secrets\n\nOnly allowed when `directory` is set. (Default - No additional build secrets)",
              type: "object",
              additionalProperties: {
                type: "string"
              }
            },
            networkMode: {
              description: "Networking mode for the RUN commands during build. _Requires Docker Engine API v1.25+_.\n\nSpecify this property to build images on a specific networking mode. (Default - no networking mode specified)",
              type: "string"
            },
            platform: {
              description: "Platform to build for. _Requires Docker Buildx_.\n\nSpecify this property to build images on a specific platform/architecture. (Default - current machine platform)",
              type: "string"
            },
            dockerOutputs: {
              description: "Outputs (Default - no outputs are passed to the build command (default outputs are used))",
              type: "array",
              items: {
                type: "string"
              }
            },
            cacheFrom: {
              description: "Cache from options to pass to the `docker build` command. (Default - no cache from options are passed to the build command)",
              type: "array",
              items: {
                $ref: "#/definitions/DockerCacheOption"
              }
            },
            cacheTo: {
              description: "Cache to options to pass to the `docker build` command. (Default - no cache to options are passed to the build command)",
              $ref: "#/definitions/DockerCacheOption"
            },
            cacheDisabled: {
              description: "Disable the cache and pass `--no-cache` to the `docker build` command. (Default - cache is used)",
              type: "boolean"
            }
          }
        },
        DockerCacheOption: {
          description: "Options for configuring the Docker cache backend",
          type: "object",
          properties: {
            type: {
              description: "The type of cache to use.\nRefer to https://docs.docker.com/build/cache/backends/ for full list of backends. (Default - unspecified)",
              type: "string"
            },
            params: {
              description: "Any parameters to pass into the docker cache backend configuration.\nRefer to https://docs.docker.com/build/cache/backends/ for cache backend configuration. (Default {} No options provided)",
              type: "object",
              additionalProperties: {
                type: "string"
              }
            }
          },
          required: [
            "type"
          ]
        },
        DockerImageDestination: {
          description: "Where to publish docker images",
          type: "object",
          properties: {
            repositoryName: {
              description: "Name of the ECR repository to publish to",
              type: "string"
            },
            imageTag: {
              description: "Tag of the image to publish",
              type: "string"
            },
            region: {
              description: "The region where this asset will need to be published (Default - Current region)",
              type: "string"
            },
            assumeRoleArn: {
              description: "The role that needs to be assumed while publishing this asset (Default - No role will be assumed)",
              type: "string"
            },
            assumeRoleExternalId: {
              description: "The ExternalId that needs to be supplied while assuming this role (Default - No ExternalId will be supplied)",
              type: "string"
            },
            assumeRoleAdditionalOptions: {
              description: "Additional options to pass to STS when assuming the role.\n\n- `RoleArn` should not be used. Use the dedicated `assumeRoleArn` property instead.\n- `ExternalId` should not be used. Use the dedicated `assumeRoleExternalId` instead. (Default - No additional options.)",
              type: "object",
              additionalProperties: {}
            }
          },
          required: [
            "imageTag",
            "repositoryName"
          ]
        }
      },
      $schema: "http://json-schema.org/draft-07/schema#"
    };
  }
});

// ../@aws-cdk/cloud-assembly-schema/schema/cloud-assembly.schema.json
var require_cloud_assembly_schema = __commonJS({
  "../@aws-cdk/cloud-assembly-schema/schema/cloud-assembly.schema.json"(exports2, module2) {
    module2.exports = {
      $ref: "#/definitions/AssemblyManifest",
      definitions: {
        AssemblyManifest: {
          description: "A manifest which describes the cloud assembly.",
          type: "object",
          properties: {
            version: {
              description: "Protocol version",
              type: "string"
            },
            minimumCliVersion: {
              description: "Required CLI version, if available\n\nIf the manifest producer knows, it can put the minimum version of the CLI\nhere that supports reading this assembly.\n\nIf set, it can be used to show a more informative error message to users. (Default - Minimum CLI version unknown)",
              type: "string"
            },
            artifacts: {
              description: "The set of artifacts in this assembly. (Default - no artifacts.)",
              type: "object",
              additionalProperties: {
                $ref: "#/definitions/ArtifactManifest"
              }
            },
            missing: {
              description: "Missing context information. If this field has values, it means that the\ncloud assembly is not complete and should not be deployed. (Default - no missing context.)",
              type: "array",
              items: {
                $ref: "#/definitions/MissingContext"
              }
            },
            runtime: {
              description: "Runtime information. (Default - no info.)",
              $ref: "#/definitions/RuntimeInfo"
            }
          },
          required: [
            "version"
          ]
        },
        ArtifactManifest: {
          description: "A manifest for a single artifact within the cloud assembly.",
          type: "object",
          properties: {
            type: {
              $ref: "#/definitions/ArtifactType",
              description: "The type of artifact."
            },
            environment: {
              description: "The environment into which this artifact is deployed. (Default - no envrionment.)",
              type: "string"
            },
            metadata: {
              description: "Associated metadata. (Default - no metadata.)",
              type: "object",
              additionalProperties: {
                type: "array",
                items: {
                  $ref: "#/definitions/MetadataEntry"
                }
              }
            },
            dependencies: {
              description: "IDs of artifacts that must be deployed before this artifact. (Default - no dependencies.)",
              type: "array",
              items: {
                type: "string"
              }
            },
            properties: {
              description: "The set of properties for this artifact (depends on type) (Default - no properties.)",
              anyOf: [
                {
                  $ref: "#/definitions/AwsCloudFormationStackProperties"
                },
                {
                  $ref: "#/definitions/AssetManifestProperties"
                },
                {
                  $ref: "#/definitions/TreeArtifactProperties"
                },
                {
                  $ref: "#/definitions/NestedCloudAssemblyProperties"
                },
                {
                  $ref: "#/definitions/FeatureFlagReportProperties"
                }
              ]
            },
            displayName: {
              description: `A string that can be shown to a user to uniquely identify this artifact inside a cloud assembly tree

Is used by the CLI to present a list of stacks to the user in a way that
makes sense to them. Even though the property name "display name" doesn't
imply it, this field is used to select stacks as well, so all stacks should
have a unique display name. (Default - no display name)`,
              type: "string"
            }
          },
          required: [
            "type"
          ]
        },
        ArtifactType: {
          description: "Type of cloud artifact.",
          type: "string",
          enum: [
            "none",
            "aws:cloudformation:stack",
            "cdk:tree",
            "cdk:asset-manifest",
            "cdk:cloud-assembly",
            "cdk:feature-flag-report"
          ]
        },
        MetadataEntry: {
          description: "A metadata entry in a cloud assembly artifact.",
          type: "object",
          properties: {
            type: {
              description: "The type of the metadata entry.",
              type: "string"
            },
            data: {
              description: "The data. (Default - no data.)",
              anyOf: [
                {
                  $ref: "#/definitions/FileAssetMetadataEntry"
                },
                {
                  $ref: "#/definitions/ContainerImageAssetMetadataEntry"
                },
                {
                  type: "array",
                  items: {
                    $ref: "#/definitions/Tag"
                  }
                },
                {
                  type: [
                    "string",
                    "number",
                    "boolean"
                  ]
                },
                {
                  description: "Free form data."
                }
              ]
            },
            trace: {
              description: "A stack trace for when the entry was created. (Default - no trace.)",
              type: "array",
              items: {
                type: "string"
              }
            }
          },
          required: [
            "type"
          ]
        },
        FileAssetMetadataEntry: {
          description: "Metadata Entry spec for files.",
          type: "object",
          properties: {
            packaging: {
              description: "Requested packaging style",
              enum: [
                "file",
                "zip"
              ],
              type: "string"
            },
            s3BucketParameter: {
              description: "Name of parameter where S3 bucket should be passed in",
              type: "string"
            },
            s3KeyParameter: {
              description: "Name of parameter where S3 key should be passed in",
              type: "string"
            },
            artifactHashParameter: {
              description: "The name of the parameter where the hash of the bundled asset should be passed in.",
              type: "string"
            },
            id: {
              description: "Logical identifier for the asset",
              type: "string"
            },
            sourceHash: {
              description: "The hash of the asset source.",
              type: "string"
            },
            path: {
              description: "Path on disk to the asset",
              type: "string"
            }
          },
          required: [
            "artifactHashParameter",
            "id",
            "packaging",
            "path",
            "s3BucketParameter",
            "s3KeyParameter",
            "sourceHash"
          ]
        },
        ContainerImageAssetMetadataEntry: {
          description: "Metadata Entry spec for container images.",
          type: "object",
          properties: {
            packaging: {
              description: "Type of asset",
              type: "string",
              const: "container-image"
            },
            imageNameParameter: {
              description: 'ECR Repository name and repo digest (separated by "@sha256:") where this\nimage is stored. (Default undefined If not specified, `repositoryName` and `imageTag` are\nrequired because otherwise how will the stack know where to find the asset,\nha?)',
              type: "string"
            },
            repositoryName: {
              description: "ECR repository name, if omitted a default name based on the asset's ID is\nused instead. Specify this property if you need to statically address the\nimage, e.g. from a Kubernetes Pod. Note, this is only the repository name,\nwithout the registry and the tag parts. (Default - this parameter is REQUIRED after 1.21.0)",
              type: "string"
            },
            imageTag: {
              description: "The docker image tag to use for tagging pushed images. This field is\nrequired if `imageParameterName` is ommited (otherwise, the app won't be\nable to find the image). (Default - this parameter is REQUIRED after 1.21.0)",
              type: "string"
            },
            buildArgs: {
              description: "Build args to pass to the `docker build` command (Default no build args are passed)",
              type: "object",
              additionalProperties: {
                type: "string"
              }
            },
            buildSsh: {
              description: "SSH agent socket or keys to pass to the `docker build` command (Default no ssh arg is passed)",
              type: "string"
            },
            buildSecrets: {
              description: "Build secrets to pass to the `docker build` command (Default no build secrets are passed)",
              type: "object",
              additionalProperties: {
                type: "string"
              }
            },
            target: {
              description: "Docker target to build to (Default no build target)",
              type: "string"
            },
            file: {
              description: "Path to the Dockerfile (relative to the directory). (Default - no file is passed)",
              type: "string"
            },
            networkMode: {
              description: "Networking mode for the RUN commands during build. (Default - no networking mode specified)",
              type: "string"
            },
            platform: {
              description: "Platform to build for. _Requires Docker Buildx_. (Default - current machine platform)",
              type: "string"
            },
            outputs: {
              description: "Outputs to pass to the `docker build` command. (Default - no outputs are passed to the build command (default outputs are used))",
              type: "array",
              items: {
                type: "string"
              }
            },
            cacheFrom: {
              description: "Cache from options to pass to the `docker build` command. (Default - no cache from options are passed to the build command)",
              type: "array",
              items: {
                $ref: "#/definitions/ContainerImageAssetCacheOption"
              }
            },
            cacheTo: {
              description: "Cache to options to pass to the `docker build` command. (Default - no cache to options are passed to the build command)",
              $ref: "#/definitions/ContainerImageAssetCacheOption"
            },
            cacheDisabled: {
              description: "Disable the cache and pass `--no-cache` to the `docker build` command. (Default - cache is used)",
              type: "boolean"
            },
            id: {
              description: "Logical identifier for the asset",
              type: "string"
            },
            sourceHash: {
              description: "The hash of the asset source.",
              type: "string"
            },
            path: {
              description: "Path on disk to the asset",
              type: "string"
            }
          },
          required: [
            "id",
            "packaging",
            "path",
            "sourceHash"
          ]
        },
        ContainerImageAssetCacheOption: {
          description: "Options for configuring the Docker cache backend",
          type: "object",
          properties: {
            type: {
              description: "The type of cache to use.\nRefer to https://docs.docker.com/build/cache/backends/ for full list of backends. (Default - unspecified)",
              type: "string"
            },
            params: {
              description: "Any parameters to pass into the docker cache backend configuration.\nRefer to https://docs.docker.com/build/cache/backends/ for cache backend configuration. (Default {} No options provided)",
              type: "object",
              additionalProperties: {
                type: "string"
              }
            }
          },
          required: [
            "type"
          ]
        },
        Tag: {
          description: "Metadata Entry spec for stack tag.",
          type: "object",
          properties: {
            key: {
              description: 'Tag key.\n\n(In the actual file on disk this will be cased as "Key", and the structure is\npatched to match this structure upon loading:\nhttps://github.com/aws/aws-cdk/blob/4aadaa779b48f35838cccd4e25107b2338f05547/packages/%40aws-cdk/cloud-assembly-schema/lib/manifest.ts#L137)',
              type: "string"
            },
            value: {
              description: 'Tag value.\n\n(In the actual file on disk this will be cased as "Value", and the structure is\npatched to match this structure upon loading:\nhttps://github.com/aws/aws-cdk/blob/4aadaa779b48f35838cccd4e25107b2338f05547/packages/%40aws-cdk/cloud-assembly-schema/lib/manifest.ts#L137)',
              type: "string"
            }
          },
          required: [
            "key",
            "value"
          ]
        },
        AwsCloudFormationStackProperties: {
          description: "Artifact properties for CloudFormation stacks.",
          type: "object",
          properties: {
            templateFile: {
              description: "A file relative to the assembly root which contains the CloudFormation template for this stack.",
              type: "string"
            },
            parameters: {
              description: "Values for CloudFormation stack parameters that should be passed when the stack is deployed. (Default - No parameters)",
              type: "object",
              additionalProperties: {
                type: "string"
              }
            },
            tags: {
              description: "Values for CloudFormation stack tags that should be passed when the stack is deployed. (Default - No tags)",
              type: "object",
              additionalProperties: {
                type: "string"
              }
            },
            notificationArns: {
              description: "SNS Notification ARNs that should receive CloudFormation Stack Events. (Default - No notification arns)",
              type: "array",
              items: {
                type: "string"
              }
            },
            stackName: {
              description: "The name to use for the CloudFormation stack. (Default - name derived from artifact ID)",
              type: "string"
            },
            terminationProtection: {
              description: "Whether to enable termination protection for this stack.",
              default: false,
              type: "boolean"
            },
            assumeRoleArn: {
              description: "The role that needs to be assumed to deploy the stack (Default - No role is assumed (current credentials are used))",
              type: "string"
            },
            assumeRoleExternalId: {
              description: "External ID to use when assuming role for cloudformation deployments (Default - No external ID)",
              type: "string"
            },
            assumeRoleAdditionalOptions: {
              description: "Additional options to pass to STS when assuming the role.\n\n- `RoleArn` should not be used. Use the dedicated `assumeRoleArn` property instead.\n- `ExternalId` should not be used. Use the dedicated `assumeRoleExternalId` instead. (Default - No additional options.)",
              type: "object",
              additionalProperties: {}
            },
            cloudFormationExecutionRoleArn: {
              description: "The role that is passed to CloudFormation to execute the change set (Default - No role is passed (currently assumed role/credentials are used))",
              type: "string"
            },
            lookupRole: {
              description: "The role to use to look up values from the target AWS account (Default - No role is assumed (current credentials are used))",
              $ref: "#/definitions/BootstrapRole"
            },
            stackTemplateAssetObjectUrl: {
              description: "If the stack template has already been included in the asset manifest, its asset URL (Default - Not uploaded yet, upload just before deploying)",
              type: "string"
            },
            requiresBootstrapStackVersion: {
              description: "Version of bootstrap stack required to deploy this stack (Default - No bootstrap stack required)",
              type: "number"
            },
            bootstrapStackVersionSsmParameter: {
              description: "SSM parameter where the bootstrap stack version number can be found\n\nOnly used if `requiresBootstrapStackVersion` is set.\n\n- If this value is not set, the bootstrap stack name must be known at\n  deployment time so the stack version can be looked up from the stack\n  outputs.\n- If this value is set, the bootstrap stack can have any name because\n  we won't need to look it up. (Default - Bootstrap stack version number looked up)",
              type: "string"
            },
            validateOnSynth: {
              description: "Whether this stack should be validated by the CLI after synthesis (Default - false)",
              type: "boolean"
            }
          },
          required: [
            "templateFile"
          ]
        },
        BootstrapRole: {
          description: "Information needed to access an IAM role created\nas part of the bootstrap process",
          type: "object",
          properties: {
            arn: {
              description: "The ARN of the IAM role created as part of bootrapping\ne.g. lookupRoleArn",
              type: "string"
            },
            assumeRoleExternalId: {
              description: "External ID to use when assuming the bootstrap role (Default - No external ID)",
              type: "string"
            },
            assumeRoleAdditionalOptions: {
              description: "Additional options to pass to STS when assuming the role.\n\n- `RoleArn` should not be used. Use the dedicated `arn` property instead.\n- `ExternalId` should not be used. Use the dedicated `assumeRoleExternalId` instead. (Default - No additional options.)",
              type: "object",
              additionalProperties: {}
            },
            requiresBootstrapStackVersion: {
              description: "Version of bootstrap stack required to use this role (Default - No bootstrap stack required)",
              type: "number"
            },
            bootstrapStackVersionSsmParameter: {
              description: "Name of SSM parameter with bootstrap stack version (Default - Discover SSM parameter by reading stack)",
              type: "string"
            }
          },
          required: [
            "arn"
          ]
        },
        AssetManifestProperties: {
          description: "Artifact properties for the Asset Manifest",
          type: "object",
          properties: {
            file: {
              description: "Filename of the asset manifest",
              type: "string"
            },
            requiresBootstrapStackVersion: {
              description: "Version of bootstrap stack required to deploy this stack (Default - Version 1 (basic modern bootstrap stack))",
              type: "number"
            },
            bootstrapStackVersionSsmParameter: {
              description: "SSM parameter where the bootstrap stack version number can be found\n\n- If this value is not set, the bootstrap stack name must be known at\n  deployment time so the stack version can be looked up from the stack\n  outputs.\n- If this value is set, the bootstrap stack can have any name because\n  we won't need to look it up. (Default - Bootstrap stack version number looked up)",
              type: "string"
            }
          },
          required: [
            "file"
          ]
        },
        TreeArtifactProperties: {
          description: "Artifact properties for the Construct Tree Artifact",
          type: "object",
          properties: {
            file: {
              description: "Filename of the tree artifact",
              type: "string"
            }
          },
          required: [
            "file"
          ]
        },
        NestedCloudAssemblyProperties: {
          description: "Artifact properties for nested cloud assemblies",
          type: "object",
          properties: {
            directoryName: {
              description: "Relative path to the nested cloud assembly",
              type: "string"
            },
            displayName: {
              description: "Display name for the cloud assembly (Default - The artifact ID)",
              type: "string"
            }
          },
          required: [
            "directoryName"
          ]
        },
        FeatureFlagReportProperties: {
          description: "Artifact properties for a feature flag report\n\nA feature flag report is small enough that all the properties can be inlined\nhere, and doesn't need an additional file.",
          type: "object",
          properties: {
            module: {
              description: "The library that this feature flag report applies to.",
              type: "string"
            },
            flags: {
              $ref: "#/definitions/Record<string,FeatureFlag>",
              description: "Information about every feature flag supported by this library."
            }
          },
          required: [
            "flags",
            "module"
          ]
        },
        "Record<string,FeatureFlag>": {
          type: "object"
        },
        MissingContext: {
          description: "Represents a missing piece of context.",
          type: "object",
          properties: {
            key: {
              description: "The missing context key.",
              type: "string"
            },
            provider: {
              $ref: "#/definitions/ContextProvider",
              description: "The provider from which we expect this context key to be obtained."
            },
            props: {
              $ref: "#/definitions/ContextQueryProperties",
              description: "A set of provider-specific options."
            }
          },
          required: [
            "key",
            "props",
            "provider"
          ]
        },
        ContextProvider: {
          description: "Identifier for the context provider",
          type: "string",
          enum: [
            "ami",
            "availability-zones",
            "hosted-zone",
            "ssm",
            "vpc-provider",
            "endpoint-service-availability-zones",
            "load-balancer",
            "load-balancer-listener",
            "security-group",
            "key-provider",
            "cc-api-provider",
            "plugin"
          ]
        },
        ContextQueryProperties: {
          anyOf: [
            {
              $ref: "#/definitions/AmiContextQuery"
            },
            {
              $ref: "#/definitions/AvailabilityZonesContextQuery"
            },
            {
              $ref: "#/definitions/HostedZoneContextQuery"
            },
            {
              $ref: "#/definitions/SSMParameterContextQuery"
            },
            {
              $ref: "#/definitions/VpcContextQuery"
            },
            {
              $ref: "#/definitions/EndpointServiceAvailabilityZonesContextQuery"
            },
            {
              $ref: "#/definitions/LoadBalancerContextQuery"
            },
            {
              $ref: "#/definitions/LoadBalancerListenerContextQuery"
            },
            {
              $ref: "#/definitions/SecurityGroupContextQuery"
            },
            {
              $ref: "#/definitions/KeyContextQuery"
            },
            {
              $ref: "#/definitions/CcApiContextQuery"
            },
            {
              $ref: "#/definitions/PluginContextQuery"
            }
          ]
        },
        AmiContextQuery: {
          description: "Query to AMI context provider",
          type: "object",
          properties: {
            owners: {
              description: "Owners to DescribeImages call (Default - All owners)",
              type: "array",
              items: {
                type: "string"
              }
            },
            filters: {
              description: "Filters to DescribeImages call",
              type: "object",
              additionalProperties: {
                type: "array",
                items: {
                  type: "string"
                }
              }
            },
            account: {
              description: "Query account",
              type: "string"
            },
            region: {
              description: "Query region",
              type: "string"
            },
            lookupRoleArn: {
              description: "The ARN of the role that should be used to look up the missing values (Default - None)",
              type: "string"
            },
            lookupRoleExternalId: {
              description: "The ExternalId that needs to be supplied while assuming this role (Default - No ExternalId will be supplied)",
              type: "string"
            },
            assumeRoleAdditionalOptions: {
              description: "Additional options to pass to STS when assuming the lookup role.\n\n- `RoleArn` should not be used. Use the dedicated `lookupRoleArn` property instead.\n- `ExternalId` should not be used. Use the dedicated `lookupRoleExternalId` instead. (Default - No additional options.)",
              type: "object",
              additionalProperties: {}
            }
          },
          required: [
            "account",
            "filters",
            "region"
          ]
        },
        AvailabilityZonesContextQuery: {
          description: "Query to availability zone context provider",
          type: "object",
          properties: {
            account: {
              description: "Query account",
              type: "string"
            },
            region: {
              description: "Query region",
              type: "string"
            },
            lookupRoleArn: {
              description: "The ARN of the role that should be used to look up the missing values (Default - None)",
              type: "string"
            },
            lookupRoleExternalId: {
              description: "The ExternalId that needs to be supplied while assuming this role (Default - No ExternalId will be supplied)",
              type: "string"
            },
            assumeRoleAdditionalOptions: {
              description: "Additional options to pass to STS when assuming the lookup role.\n\n- `RoleArn` should not be used. Use the dedicated `lookupRoleArn` property instead.\n- `ExternalId` should not be used. Use the dedicated `lookupRoleExternalId` instead. (Default - No additional options.)",
              type: "object",
              additionalProperties: {}
            }
          },
          required: [
            "account",
            "region"
          ]
        },
        HostedZoneContextQuery: {
          description: "Query to hosted zone context provider",
          type: "object",
          properties: {
            domainName: {
              description: "The domain name e.g. example.com to lookup",
              type: "string"
            },
            privateZone: {
              description: "True if the zone you want to find is a private hosted zone",
              default: false,
              type: "boolean"
            },
            vpcId: {
              description: "The VPC ID to that the private zone must be associated with\n\nIf you provide VPC ID and privateZone is false, this will return no results\nand raise an error. (Default - Required if privateZone=true)",
              type: "string"
            },
            account: {
              description: "Query account",
              type: "string"
            },
            region: {
              description: "Query region",
              type: "string"
            },
            lookupRoleArn: {
              description: "The ARN of the role that should be used to look up the missing values (Default - None)",
              type: "string"
            },
            lookupRoleExternalId: {
              description: "The ExternalId that needs to be supplied while assuming this role (Default - No ExternalId will be supplied)",
              type: "string"
            },
            assumeRoleAdditionalOptions: {
              description: "Additional options to pass to STS when assuming the lookup role.\n\n- `RoleArn` should not be used. Use the dedicated `lookupRoleArn` property instead.\n- `ExternalId` should not be used. Use the dedicated `lookupRoleExternalId` instead. (Default - No additional options.)",
              type: "object",
              additionalProperties: {}
            }
          },
          required: [
            "account",
            "domainName",
            "region"
          ]
        },
        SSMParameterContextQuery: {
          description: "Query to SSM Parameter Context Provider",
          type: "object",
          properties: {
            parameterName: {
              description: "Parameter name to query",
              type: "string"
            },
            account: {
              description: "Query account",
              type: "string"
            },
            region: {
              description: "Query region",
              type: "string"
            },
            lookupRoleArn: {
              description: "The ARN of the role that should be used to look up the missing values (Default - None)",
              type: "string"
            },
            lookupRoleExternalId: {
              description: "The ExternalId that needs to be supplied while assuming this role (Default - No ExternalId will be supplied)",
              type: "string"
            },
            assumeRoleAdditionalOptions: {
              description: "Additional options to pass to STS when assuming the lookup role.\n\n- `RoleArn` should not be used. Use the dedicated `lookupRoleArn` property instead.\n- `ExternalId` should not be used. Use the dedicated `lookupRoleExternalId` instead. (Default - No additional options.)",
              type: "object",
              additionalProperties: {}
            }
          },
          required: [
            "account",
            "parameterName",
            "region"
          ]
        },
        VpcContextQuery: {
          description: "Query input for looking up a VPC",
          type: "object",
          properties: {
            filter: {
              description: "Filters to apply to the VPC\n\nFilter parameters are the same as passed to DescribeVpcs.",
              type: "object",
              additionalProperties: {
                type: "string"
              }
            },
            returnAsymmetricSubnets: {
              description: "Whether to populate the subnetGroups field of the `VpcContextResponse`,\nwhich contains potentially asymmetric subnet groups.",
              default: false,
              type: "boolean"
            },
            subnetGroupNameTag: {
              description: "Optional tag for subnet group name.\nIf not provided, we'll look at the aws-cdk:subnet-name tag.\nIf the subnet does not have the specified tag,\nwe'll use its type as the name. (Default 'aws-cdk:subnet-name')",
              type: "string"
            },
            returnVpnGateways: {
              description: "Whether to populate the `vpnGatewayId` field of the `VpcContextResponse`,\nwhich contains the VPN Gateway ID, if one exists. You can explicitly\ndisable this in order to avoid the lookup if you know the VPC does not have\na VPN Gatway attached. (Default true)",
              type: "boolean"
            },
            account: {
              description: "Query account",
              type: "string"
            },
            region: {
              description: "Query region",
              type: "string"
            },
            lookupRoleArn: {
              description: "The ARN of the role that should be used to look up the missing values (Default - None)",
              type: "string"
            },
            lookupRoleExternalId: {
              description: "The ExternalId that needs to be supplied while assuming this role (Default - No ExternalId will be supplied)",
              type: "string"
            },
            assumeRoleAdditionalOptions: {
              description: "Additional options to pass to STS when assuming the lookup role.\n\n- `RoleArn` should not be used. Use the dedicated `lookupRoleArn` property instead.\n- `ExternalId` should not be used. Use the dedicated `lookupRoleExternalId` instead. (Default - No additional options.)",
              type: "object",
              additionalProperties: {}
            }
          },
          required: [
            "account",
            "filter",
            "region"
          ]
        },
        EndpointServiceAvailabilityZonesContextQuery: {
          description: "Query to endpoint service context provider",
          type: "object",
          properties: {
            serviceName: {
              description: "Query service name",
              type: "string"
            },
            account: {
              description: "Query account",
              type: "string"
            },
            region: {
              description: "Query region",
              type: "string"
            },
            lookupRoleArn: {
              description: "The ARN of the role that should be used to look up the missing values (Default - None)",
              type: "string"
            },
            lookupRoleExternalId: {
              description: "The ExternalId that needs to be supplied while assuming this role (Default - No ExternalId will be supplied)",
              type: "string"
            },
            assumeRoleAdditionalOptions: {
              description: "Additional options to pass to STS when assuming the lookup role.\n\n- `RoleArn` should not be used. Use the dedicated `lookupRoleArn` property instead.\n- `ExternalId` should not be used. Use the dedicated `lookupRoleExternalId` instead. (Default - No additional options.)",
              type: "object",
              additionalProperties: {}
            }
          },
          required: [
            "account",
            "region",
            "serviceName"
          ]
        },
        LoadBalancerContextQuery: {
          description: "Query input for looking up a load balancer",
          type: "object",
          properties: {
            loadBalancerType: {
              $ref: "#/definitions/LoadBalancerType",
              description: "Filter load balancers by their type"
            },
            loadBalancerArn: {
              description: "Find by load balancer's ARN (Default - does not search by load balancer arn)",
              type: "string"
            },
            loadBalancerTags: {
              description: "Match load balancer tags (Default - does not match load balancers by tags)",
              type: "array",
              items: {
                $ref: "#/definitions/Tag"
              }
            },
            account: {
              description: "Query account",
              type: "string"
            },
            region: {
              description: "Query region",
              type: "string"
            },
            lookupRoleArn: {
              description: "The ARN of the role that should be used to look up the missing values (Default - None)",
              type: "string"
            },
            lookupRoleExternalId: {
              description: "The ExternalId that needs to be supplied while assuming this role (Default - No ExternalId will be supplied)",
              type: "string"
            },
            assumeRoleAdditionalOptions: {
              description: "Additional options to pass to STS when assuming the lookup role.\n\n- `RoleArn` should not be used. Use the dedicated `lookupRoleArn` property instead.\n- `ExternalId` should not be used. Use the dedicated `lookupRoleExternalId` instead. (Default - No additional options.)",
              type: "object",
              additionalProperties: {}
            }
          },
          required: [
            "account",
            "loadBalancerType",
            "region"
          ]
        },
        LoadBalancerType: {
          description: "Type of load balancer",
          type: "string",
          enum: [
            "network",
            "application"
          ]
        },
        LoadBalancerListenerContextQuery: {
          description: "Query input for looking up a load balancer listener",
          type: "object",
          properties: {
            listenerArn: {
              description: "Find by listener's arn (Default - does not find by listener arn)",
              type: "string"
            },
            listenerProtocol: {
              description: "Filter by listener protocol (Default - does not filter by listener protocol)",
              enum: [
                "HTTP",
                "HTTPS",
                "TCP",
                "TCP_UDP",
                "TLS",
                "UDP"
              ],
              type: "string"
            },
            listenerPort: {
              description: "Filter listeners by listener port (Default - does not filter by a listener port)",
              type: "number"
            },
            loadBalancerType: {
              $ref: "#/definitions/LoadBalancerType",
              description: "Filter load balancers by their type"
            },
            loadBalancerArn: {
              description: "Find by load balancer's ARN (Default - does not search by load balancer arn)",
              type: "string"
            },
            loadBalancerTags: {
              description: "Match load balancer tags (Default - does not match load balancers by tags)",
              type: "array",
              items: {
                $ref: "#/definitions/Tag"
              }
            },
            account: {
              description: "Query account",
              type: "string"
            },
            region: {
              description: "Query region",
              type: "string"
            },
            lookupRoleArn: {
              description: "The ARN of the role that should be used to look up the missing values (Default - None)",
              type: "string"
            },
            lookupRoleExternalId: {
              description: "The ExternalId that needs to be supplied while assuming this role (Default - No ExternalId will be supplied)",
              type: "string"
            },
            assumeRoleAdditionalOptions: {
              description: "Additional options to pass to STS when assuming the lookup role.\n\n- `RoleArn` should not be used. Use the dedicated `lookupRoleArn` property instead.\n- `ExternalId` should not be used. Use the dedicated `lookupRoleExternalId` instead. (Default - No additional options.)",
              type: "object",
              additionalProperties: {}
            }
          },
          required: [
            "account",
            "loadBalancerType",
            "region"
          ]
        },
        SecurityGroupContextQuery: {
          description: "Query input for looking up a security group",
          type: "object",
          properties: {
            securityGroupId: {
              description: "Security group id (Default - None)",
              type: "string"
            },
            securityGroupName: {
              description: "Security group name (Default - None)",
              type: "string"
            },
            vpcId: {
              description: "VPC ID (Default - None)",
              type: "string"
            },
            account: {
              description: "Query account",
              type: "string"
            },
            region: {
              description: "Query region",
              type: "string"
            },
            lookupRoleArn: {
              description: "The ARN of the role that should be used to look up the missing values (Default - None)",
              type: "string"
            },
            lookupRoleExternalId: {
              description: "The ExternalId that needs to be supplied while assuming this role (Default - No ExternalId will be supplied)",
              type: "string"
            },
            assumeRoleAdditionalOptions: {
              description: "Additional options to pass to STS when assuming the lookup role.\n\n- `RoleArn` should not be used. Use the dedicated `lookupRoleArn` property instead.\n- `ExternalId` should not be used. Use the dedicated `lookupRoleExternalId` instead. (Default - No additional options.)",
              type: "object",
              additionalProperties: {}
            }
          },
          required: [
            "account",
            "region"
          ]
        },
        KeyContextQuery: {
          description: "Query input for looking up a KMS Key",
          type: "object",
          properties: {
            aliasName: {
              description: "Alias name used to search the Key",
              type: "string"
            },
            account: {
              description: "Query account",
              type: "string"
            },
            region: {
              description: "Query region",
              type: "string"
            },
            lookupRoleArn: {
              description: "The ARN of the role that should be used to look up the missing values (Default - None)",
              type: "string"
            },
            lookupRoleExternalId: {
              description: "The ExternalId that needs to be supplied while assuming this role (Default - No ExternalId will be supplied)",
              type: "string"
            },
            assumeRoleAdditionalOptions: {
              description: "Additional options to pass to STS when assuming the lookup role.\n\n- `RoleArn` should not be used. Use the dedicated `lookupRoleArn` property instead.\n- `ExternalId` should not be used. Use the dedicated `lookupRoleExternalId` instead. (Default - No additional options.)",
              type: "object",
              additionalProperties: {}
            }
          },
          required: [
            "account",
            "aliasName",
            "region"
          ]
        },
        CcApiContextQuery: {
          description: "Query input for lookup up CloudFormation resources using CC API\n\nThe example below is required to successfully compile CDK (otherwise,\nthe CDK build will generate a synthetic example for the below, but it\ndoesn't have enough type information about the literal string union\nto generate a validly compiling example).",
          type: "object",
          properties: {
            typeName: {
              description: "The CloudFormation resource type.\nSee https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/supported-resources.html",
              type: "string"
            },
            exactIdentifier: {
              description: "Identifier of the resource to look up using `GetResource`.\n\nSpecifying exactIdentifier will return exactly one result, or throw an error\nunless `ignoreErrorOnMissingContext` is set. (Default - Either exactIdentifier or propertyMatch should be specified.)",
              type: "string"
            },
            propertyMatch: {
              description: "Returns any resources matching these properties, using `ListResources`.\n\nBy default, specifying propertyMatch will successfully return 0 or more\nresults. To throw an error if the number of results is unexpected (and\nprevent the query results from being committed to context), specify\n`expectedMatchCount`.\n\n## Notes on property completeness\n\nCloudControl API's `ListResources` may return fewer properties than\n`GetResource` would, depending on the resource implementation.\n\nThe resources that `propertyMatch` matches against will *only ever* be the\nproperties returned by the `ListResources` call. (Default - Either exactIdentifier or propertyMatch should be specified.)",
              $ref: "#/definitions/Record<string,unknown>"
            },
            propertiesToReturn: {
              description: "This is a set of properties returned from CC API that we want to return from ContextQuery.\n\nIf any properties listed here are absent from the target resource, an error will be thrown.\n\nThe returned object will always include the key `Identifier` with the CC-API returned\nfield `Identifier`.\n\n## Notes on property completeness\n\nCloudControl API's `ListResources` may return fewer properties than\n`GetResource` would, depending on the resource implementation.\n\nThe returned properties here are *currently* selected from the response\nobject that CloudControl API returns to the CDK CLI.\n\nHowever, if we find there is need to do so, we may decide to change this\nbehavior in the future: we might change it to perform an additional\n`GetResource` call for resources matched by `propertyMatch`.",
              type: "array",
              items: {
                type: "string"
              }
            },
            expectedMatchCount: {
              description: "Expected count of results if `propertyMatch` is specified.\n\nIf the expected result count does not match the actual count,\nby default an error is produced and the result is not committed to cached\ncontext, and the user can correct the situation and try again without\nhaving to manually clear out the context key using `cdk context --remove`\n\nIf the value of * `ignoreErrorOnMissingContext` is `true`, the value of\n`expectedMatchCount` is `at-least-one | exactly-one` and the number\nof found resources is 0, `dummyValue` is returned and committed to context\ninstead. (Default 'any')",
              enum: [
                "any",
                "at-least-one",
                "at-most-one",
                "exactly-one"
              ],
              type: "string"
            },
            dummyValue: {
              description: "The value to return if the resource was not found and `ignoreErrorOnMissingContext` is true.\n\nIf supplied, `dummyValue` should be an array of objects.\n\n`dummyValue` does not have to have elements, and it may have objects with\ndifferent properties than the properties in `propertiesToReturn`, but it\nwill be easiest for downstream code if the `dummyValue` conforms to\nthe expected response shape. (Default - No dummy value available)"
            },
            ignoreErrorOnMissingContext: {
              description: "Ignore an error and return the `dummyValue` instead if the resource was not found.\n\n- In case of an `exactIdentifier` lookup, return the `dummyValue` if the resource with\n  that identifier was not found.\n- In case of a `propertyMatch` lookup, return the `dummyValue` if `expectedMatchCount`\n  is `at-least-one | exactly-one` and the number of resources found was 0.\n\nif `ignoreErrorOnMissingContext` is set, `dummyValue` should be set and be an array.",
              default: false,
              type: "boolean"
            },
            account: {
              description: "Query account",
              type: "string"
            },
            region: {
              description: "Query region",
              type: "string"
            },
            lookupRoleArn: {
              description: "The ARN of the role that should be used to look up the missing values (Default - None)",
              type: "string"
            },
            lookupRoleExternalId: {
              description: "The ExternalId that needs to be supplied while assuming this role (Default - No ExternalId will be supplied)",
              type: "string"
            },
            assumeRoleAdditionalOptions: {
              description: "Additional options to pass to STS when assuming the lookup role.\n\n- `RoleArn` should not be used. Use the dedicated `lookupRoleArn` property instead.\n- `ExternalId` should not be used. Use the dedicated `lookupRoleExternalId` instead. (Default - No additional options.)",
              type: "object",
              additionalProperties: {}
            }
          },
          required: [
            "account",
            "propertiesToReturn",
            "region",
            "typeName"
          ]
        },
        "Record<string,unknown>": {
          type: "object"
        },
        PluginContextQuery: {
          description: "Query input for plugins\n\nThis alternate branch is necessary because it needs to be able to escape all type checking\nwe do on on the cloud assembly -- we cannot know the properties that will be used a priori.",
          type: "object",
          additionalProperties: {},
          properties: {
            pluginName: {
              description: "The name of the plugin",
              type: "string"
            }
          },
          required: [
            "pluginName"
          ]
        },
        RuntimeInfo: {
          description: "Information about the application's runtime components.",
          type: "object",
          properties: {
            libraries: {
              description: "The list of libraries loaded in the application, associated with their versions.",
              type: "object",
              additionalProperties: {
                type: "string"
              }
            }
          },
          required: [
            "libraries"
          ]
        }
      },
      $schema: "http://json-schema.org/draft-07/schema#"
    };
  }
});

// ../@aws-cdk/cloud-assembly-schema/schema/integ.schema.json
var require_integ_schema = __commonJS({
  "../@aws-cdk/cloud-assembly-schema/schema/integ.schema.json"(exports2, module2) {
    module2.exports = {
      $ref: "#/definitions/IntegManifest",
      definitions: {
        IntegManifest: {
          description: "Definitions for the integration testing manifest",
          type: "object",
          properties: {
            version: {
              description: "Version of the manifest",
              type: "string"
            },
            enableLookups: {
              description: "Enable lookups for this test. If lookups are enabled\nthen `stackUpdateWorkflow` must be set to false.\nLookups should only be enabled when you are explicitly testing\nlookups.",
              default: false,
              type: "boolean"
            },
            synthContext: {
              description: "Additional context to use when performing\na synth. Any context provided here will override\nany default context (Default - no additional context)",
              type: "object",
              additionalProperties: {
                type: "string"
              }
            },
            testCases: {
              description: "test cases",
              type: "object",
              additionalProperties: {
                $ref: "#/definitions/TestCase"
              }
            }
          },
          required: [
            "testCases",
            "version"
          ]
        },
        TestCase: {
          description: "Represents an integration test case",
          type: "object",
          properties: {
            stacks: {
              description: "Stacks that should be tested as part of this test case\nThe stackNames will be passed as args to the cdk commands\nso dependent stacks will be automatically deployed unless\n`exclusively` is passed",
              type: "array",
              items: {
                type: "string"
              }
            },
            assertionStack: {
              description: "The node id of the stack that contains assertions.\nThis is the value that can be used to deploy the stack with the CDK CLI (Default - no assertion stack)",
              type: "string"
            },
            assertionStackName: {
              description: "The name of the stack that contains assertions (Default - no assertion stack)",
              type: "string"
            },
            stackUpdateWorkflow: {
              description: "Run update workflow on this test case\nThis should only be set to false to test scenarios\nthat are not possible to test as part of the update workflow (Default true)",
              type: "boolean"
            },
            cdkCommandOptions: {
              description: "Additional options to use for each CDK command (Default - runner default options)",
              $ref: "#/definitions/CdkCommands"
            },
            hooks: {
              description: "Additional commands to run at predefined points in the test workflow\n\ne.g. { postDeploy: ['yarn', 'test'] } (Default - no hooks)",
              $ref: "#/definitions/Hooks"
            },
            diffAssets: {
              description: "Whether or not to include asset hashes in the diff\nAsset hashes can introduces a lot of unneccessary noise into tests,\nbut there are some cases where asset hashes _should_ be included. For example\nany tests involving custom resources or bundling",
              default: false,
              type: "boolean"
            },
            allowDestroy: {
              description: "List of CloudFormation resource types in this stack that can\nbe destroyed as part of an update without failing the test.\n\nThis list should only include resources that for this specific\nintegration test we are sure will not cause errors or an outage if\ndestroyed. For example, maybe we know that a new resource will be created\nfirst before the old resource is destroyed which prevents any outage.\n\ne.g. ['AWS::IAM::Role'] (Default - do not allow destruction of any resources on update)",
              type: "array",
              items: {
                type: "string"
              }
            },
            regions: {
              description: "Limit deployment to these regions (Default - can run in any region)",
              type: "array",
              items: {
                type: "string"
              }
            }
          },
          required: [
            "stacks"
          ]
        },
        CdkCommands: {
          description: "Options for specific cdk commands that are run\nas part of the integration test workflow",
          type: "object",
          properties: {
            deploy: {
              description: "Options to for the cdk deploy command (Default - default deploy options)",
              $ref: "#/definitions/DeployCommand"
            },
            destroy: {
              description: "Options to for the cdk destroy command (Default - default destroy options)",
              $ref: "#/definitions/DestroyCommand"
            }
          }
        },
        DeployCommand: {
          description: "Represents a cdk deploy command",
          type: "object",
          properties: {
            args: {
              description: "Additional arguments to pass to the command\nThis can be used to test specific CLI functionality (Default - only default args are used)",
              $ref: "#/definitions/DeployOptions"
            },
            enabled: {
              description: "Whether or not to run this command as part of the workflow\nThis can be used if you only want to test some of the workflow\nfor example enable `synth` and disable `deploy` & `destroy` in order\nto limit the test to synthesis (Default true)",
              type: "boolean"
            },
            expectError: {
              description: "If the runner should expect this command to fail",
              default: false,
              type: "boolean"
            },
            expectedMessage: {
              description: "This can be used in combination with `expectedError`\nto validate that a specific message is returned. (Default - do not validate message)",
              type: "string"
            }
          }
        },
        DeployOptions: {
          description: "Options to use with cdk deploy",
          type: "object",
          properties: {
            exclusively: {
              description: "Only perform action on the given stack",
              default: false,
              type: "boolean"
            },
            toolkitStackName: {
              description: "Name of the toolkit stack to use/deploy (Default CDKToolkit)",
              type: "string"
            },
            reuseAssets: {
              description: "Reuse the assets with the given asset IDs (Default - do not reuse assets)",
              type: "array",
              items: {
                type: "string"
              }
            },
            changeSetName: {
              description: "Optional name to use for the CloudFormation change set.\nIf not provided, a name will be generated automatically. (Default - auto generate a name)",
              type: "string"
            },
            force: {
              description: "Always deploy, even if templates are identical.",
              default: false,
              type: "boolean"
            },
            rollback: {
              description: "Rollback failed deployments (Default true)",
              type: "boolean"
            },
            notificationArns: {
              description: "ARNs of SNS topics that CloudFormation will notify with stack related events (Default - no notifications)",
              type: "array",
              items: {
                type: "string"
              }
            },
            requireApproval: {
              description: "What kind of security changes require approval (Default RequireApproval.NEVER)",
              enum: [
                "any-change",
                "broadening",
                "never"
              ],
              type: "string"
            },
            execute: {
              description: "Whether to execute the ChangeSet\nNot providing `execute` parameter will result in execution of ChangeSet (Default true)",
              type: "boolean"
            },
            parameters: {
              description: "Additional parameters for CloudFormation at deploy time (Default [object Object])",
              type: "object",
              additionalProperties: {
                type: "string"
              }
            },
            usePreviousParameters: {
              description: "Use previous values for unspecified parameters\n\nIf not set, all parameters must be specified for every deployment. (Default true)",
              type: "boolean"
            },
            outputsFile: {
              description: "Path to file where stack outputs will be written after a successful deploy as JSON (Default - Outputs are not written to any file)",
              type: "string"
            },
            ci: {
              description: "Whether we are on a CI system",
              default: false,
              type: "boolean"
            },
            concurrency: {
              description: "Deploy multiple stacks in parallel (Default 1)",
              type: "number"
            },
            stacks: {
              description: "List of stacks to deploy\n\nRequried if `all` is not set (Default - [])",
              type: "array",
              items: {
                type: "string"
              }
            },
            all: {
              description: "Deploy all stacks\n\nRequried if `stacks` is not set (Default - false)",
              type: "boolean"
            },
            app: {
              description: 'command-line for executing your app or a cloud assembly directory\ne.g. "node bin/my-app.js"\nor\n"cdk.out" (Default - read from cdk.json)',
              type: "string"
            },
            roleArn: {
              description: "Role to pass to CloudFormation for deployment (Default - use the bootstrap cfn-exec role)",
              type: "string"
            },
            context: {
              description: "Additional context (Default - no additional context)",
              type: "object",
              additionalProperties: {
                type: "string"
              }
            },
            trace: {
              description: "Print trace for stack warnings",
              default: false,
              type: "boolean"
            },
            strict: {
              description: "Do not construct stacks with warnings",
              default: false,
              type: "boolean"
            },
            lookups: {
              description: "Perform context lookups.\n\nSynthesis fails if this is disabled and context lookups need\nto be performed (Default true)",
              type: "boolean"
            },
            ignoreErrors: {
              description: "Ignores synthesis errors, which will likely produce an invalid output",
              default: false,
              type: "boolean"
            },
            json: {
              description: "Use JSON output instead of YAML when templates are printed\nto STDOUT",
              default: false,
              type: "boolean"
            },
            verbose: {
              description: "show debug logs",
              default: false,
              type: "boolean"
            },
            debug: {
              description: "enable emission of additional debugging information, such as creation stack\ntraces of tokens",
              default: false,
              type: "boolean"
            },
            profile: {
              description: "Use the indicated AWS profile as the default environment (Default - no profile is used)",
              type: "string"
            },
            proxy: {
              description: "Use the indicated proxy. Will read from\nHTTPS_PROXY environment if specified (Default - no proxy)",
              type: "string"
            },
            caBundlePath: {
              description: "Path to CA certificate to use when validating HTTPS\nrequests. (Default - read from AWS_CA_BUNDLE environment variable)",
              type: "string"
            },
            ec2Creds: {
              description: "Force trying to fetch EC2 instance credentials (Default - guess EC2 instance status)",
              type: "boolean"
            },
            versionReporting: {
              description: 'Include "AWS::CDK::Metadata" resource in synthesized templates (Default true)',
              type: "boolean"
            },
            pathMetadata: {
              description: 'Include "aws:cdk:path" CloudFormation metadata for each resource (Default true)',
              type: "boolean"
            },
            assetMetadata: {
              description: 'Include "aws:asset:*" CloudFormation metadata for resources that use assets (Default true)',
              type: "boolean"
            },
            staging: {
              description: "Copy assets to the output directory\n\nNeeded for local debugging the source files with SAM CLI",
              default: false,
              type: "boolean"
            },
            output: {
              description: "Emits the synthesized cloud assembly into a directory (Default cdk.out)",
              type: "string"
            },
            notices: {
              description: "Show relevant notices (Default true)",
              type: "boolean"
            },
            color: {
              description: "Show colors and other style from console output (Default true)",
              type: "boolean"
            }
          }
        },
        DestroyCommand: {
          description: "Represents a cdk destroy command",
          type: "object",
          properties: {
            args: {
              description: "Additional arguments to pass to the command\nThis can be used to test specific CLI functionality (Default - only default args are used)",
              $ref: "#/definitions/DestroyOptions"
            },
            enabled: {
              description: "Whether or not to run this command as part of the workflow\nThis can be used if you only want to test some of the workflow\nfor example enable `synth` and disable `deploy` & `destroy` in order\nto limit the test to synthesis (Default true)",
              type: "boolean"
            },
            expectError: {
              description: "If the runner should expect this command to fail",
              default: false,
              type: "boolean"
            },
            expectedMessage: {
              description: "This can be used in combination with `expectedError`\nto validate that a specific message is returned. (Default - do not validate message)",
              type: "string"
            }
          }
        },
        DestroyOptions: {
          description: "Options to use with cdk destroy",
          type: "object",
          properties: {
            force: {
              description: "Do not ask for permission before destroying stacks",
              default: false,
              type: "boolean"
            },
            exclusively: {
              description: "Only destroy the given stack",
              default: false,
              type: "boolean"
            },
            stacks: {
              description: "List of stacks to deploy\n\nRequried if `all` is not set (Default - [])",
              type: "array",
              items: {
                type: "string"
              }
            },
            all: {
              description: "Deploy all stacks\n\nRequried if `stacks` is not set (Default - false)",
              type: "boolean"
            },
            app: {
              description: 'command-line for executing your app or a cloud assembly directory\ne.g. "node bin/my-app.js"\nor\n"cdk.out" (Default - read from cdk.json)',
              type: "string"
            },
            roleArn: {
              description: "Role to pass to CloudFormation for deployment (Default - use the bootstrap cfn-exec role)",
              type: "string"
            },
            context: {
              description: "Additional context (Default - no additional context)",
              type: "object",
              additionalProperties: {
                type: "string"
              }
            },
            trace: {
              description: "Print trace for stack warnings",
              default: false,
              type: "boolean"
            },
            strict: {
              description: "Do not construct stacks with warnings",
              default: false,
              type: "boolean"
            },
            lookups: {
              description: "Perform context lookups.\n\nSynthesis fails if this is disabled and context lookups need\nto be performed (Default true)",
              type: "boolean"
            },
            ignoreErrors: {
              description: "Ignores synthesis errors, which will likely produce an invalid output",
              default: false,
              type: "boolean"
            },
            json: {
              description: "Use JSON output instead of YAML when templates are printed\nto STDOUT",
              default: false,
              type: "boolean"
            },
            verbose: {
              description: "show debug logs",
              default: false,
              type: "boolean"
            },
            debug: {
              description: "enable emission of additional debugging information, such as creation stack\ntraces of tokens",
              default: false,
              type: "boolean"
            },
            profile: {
              description: "Use the indicated AWS profile as the default environment (Default - no profile is used)",
              type: "string"
            },
            proxy: {
              description: "Use the indicated proxy. Will read from\nHTTPS_PROXY environment if specified (Default - no proxy)",
              type: "string"
            },
            caBundlePath: {
              description: "Path to CA certificate to use when validating HTTPS\nrequests. (Default - read from AWS_CA_BUNDLE environment variable)",
              type: "string"
            },
            ec2Creds: {
              description: "Force trying to fetch EC2 instance credentials (Default - guess EC2 instance status)",
              type: "boolean"
            },
            versionReporting: {
              description: 'Include "AWS::CDK::Metadata" resource in synthesized templates (Default true)',
              type: "boolean"
            },
            pathMetadata: {
              description: 'Include "aws:cdk:path" CloudFormation metadata for each resource (Default true)',
              type: "boolean"
            },
            assetMetadata: {
              description: 'Include "aws:asset:*" CloudFormation metadata for resources that use assets (Default true)',
              type: "boolean"
            },
            staging: {
              description: "Copy assets to the output directory\n\nNeeded for local debugging the source files with SAM CLI",
              default: false,
              type: "boolean"
            },
            output: {
              description: "Emits the synthesized cloud assembly into a directory (Default cdk.out)",
              type: "string"
            },
            notices: {
              description: "Show relevant notices (Default true)",
              type: "boolean"
            },
            color: {
              description: "Show colors and other style from console output (Default true)",
              type: "boolean"
            }
          }
        },
        Hooks: {
          description: "Commands to run at predefined points during the\nintegration test workflow",
          type: "object",
          properties: {
            preDeploy: {
              description: "Commands to run prior to deploying the cdk stacks\nin the integration test (Default - no commands)",
              type: "array",
              items: {
                type: "string"
              }
            },
            postDeploy: {
              description: "Commands to run prior after deploying the cdk stacks\nin the integration test (Default - no commands)",
              type: "array",
              items: {
                type: "string"
              }
            },
            preDestroy: {
              description: "Commands to run prior to destroying the cdk stacks\nin the integration test (Default - no commands)",
              type: "array",
              items: {
                type: "string"
              }
            },
            postDestroy: {
              description: "Commands to run after destroying the cdk stacks\nin the integration test (Default - no commands)",
              type: "array",
              items: {
                type: "string"
              }
            }
          }
        }
      },
      $schema: "http://json-schema.org/draft-07/schema#"
    };
  }
});

// ../@aws-cdk/cloud-assembly-schema/schema/version.json
var require_version = __commonJS({
  "../@aws-cdk/cloud-assembly-schema/schema/version.json"(exports2, module2) {
    module2.exports = {
      schemaHash: "0807b42f8220bdafddeb4dad246a696721ed86e99ac6b13aa83359bab834d60d",
      $comment: "Do not hold back the version on additions: jsonschema validation of the manifest by the consumer will trigger errors on unexpected fields.",
      revision: 48
    };
  }
});

// ../@aws-cdk/cloud-assembly-schema/lib/manifest.ts
var manifest_exports = {};
__export(manifest_exports, {
  Manifest: () => Manifest,
  VERSION_MISMATCH: () => VERSION_MISMATCH
});
function mapValues(xs, fn) {
  if (!xs) {
    return void 0;
  }
  const ret = {};
  for (const [k3, v6] of Object.entries(xs)) {
    ret[k3] = fn(v6);
  }
  return ret;
}
function noUndefined(xs) {
  const ret = {};
  for (const [k3, v6] of Object.entries(xs)) {
    if (v6 !== void 0) {
      ret[k3] = v6;
    }
  }
  return ret;
}
function stripEnumErrors(errors) {
  return errors.filter((e3) => typeof e3.schema === "string" || !("enum" in e3.schema));
}
var fs, jsonschema, semver, VERSION_MISMATCH, CLI_VERSION, ASSETS_SCHEMA, ASSEMBLY_SCHEMA, INTEG_SCHEMA, SCHEMA_VERSION, Manifest;
var init_manifest = __esm({
  "../@aws-cdk/cloud-assembly-schema/lib/manifest.ts"() {
    "use strict";
    fs = __toESM(require("fs"));
    jsonschema = __toESM(require_lib());
    semver = __toESM(require_semver2());
    init_cloud_assembly();
    VERSION_MISMATCH = "Cloud assembly schema version mismatch";
    CLI_VERSION = require_cli_version();
    ASSETS_SCHEMA = require_assets_schema();
    ASSEMBLY_SCHEMA = require_cloud_assembly_schema();
    INTEG_SCHEMA = require_integ_schema();
    SCHEMA_VERSION = require_version();
    Manifest = class _Manifest {
      static {
        __name(this, "Manifest");
      }
      /**
       * Validates and saves the cloud assembly manifest to file.
       *
       * @param manifest - manifest.
       * @param filePath - output file path.
       */
      static saveAssemblyManifest(manifest, filePath) {
        _Manifest.saveManifest(manifest, filePath, ASSEMBLY_SCHEMA, _Manifest.patchStackTagsOnWrite);
      }
      /**
       * Load and validates the cloud assembly manifest from file.
       *
       * @param filePath - path to the manifest file.
       */
      static loadAssemblyManifest(filePath, options) {
        return _Manifest.loadManifest(filePath, ASSEMBLY_SCHEMA, _Manifest.patchStackTagsOnRead, options);
      }
      /**
       * Validates and saves the asset manifest to file.
       *
       * @param manifest - manifest.
       * @param filePath - output file path.
       */
      static saveAssetManifest(manifest, filePath) {
        _Manifest.saveManifest(manifest, filePath, ASSETS_SCHEMA, _Manifest.patchStackTagsOnRead);
      }
      /**
       * Load and validates the asset manifest from file.
       *
       * @param filePath - path to the manifest file.
       */
      static loadAssetManifest(filePath) {
        return this.loadManifest(filePath, ASSETS_SCHEMA);
      }
      /**
       * Validates and saves the integ manifest to file.
       *
       * @param manifest - manifest.
       * @param filePath - output file path.
       */
      static saveIntegManifest(manifest, filePath) {
        _Manifest.saveManifest(manifest, filePath, INTEG_SCHEMA);
      }
      /**
       * Load and validates the integ manifest from file.
       *
       * @param filePath - path to the manifest file.
       */
      static loadIntegManifest(filePath) {
        const manifest = this.loadManifest(filePath, INTEG_SCHEMA);
        return {
          ...manifest,
          testCases: manifest.testCases ?? []
        };
      }
      /**
       * Fetch the current schema version number.
       */
      static version() {
        return `${SCHEMA_VERSION.revision}.0.0`;
      }
      /**
       * Return the CLI version that supports this Cloud Assembly Schema version
       */
      static cliVersion() {
        const version2 = CLI_VERSION.version;
        return version2 ? version2 : void 0;
      }
      /**
       * Deprecated
       * @deprecated use `saveAssemblyManifest()`
       */
      static save(manifest, filePath) {
        return this.saveAssemblyManifest(manifest, filePath);
      }
      /**
       * Deprecated
       * @deprecated use `loadAssemblyManifest()`
       */
      static load(filePath) {
        return this.loadAssemblyManifest(filePath);
      }
      static validate(manifest, schema, options) {
        function parseVersion(version2) {
          const ver = semver.valid(version2);
          if (!ver) {
            throw new Error(`Invalid semver string: "${version2}"`);
          }
          return ver;
        }
        __name(parseVersion, "parseVersion");
        const maxSupported = semver.major(parseVersion(_Manifest.version()));
        const actual = parseVersion(manifest.version);
        if (maxSupported < semver.major(actual) && !options?.skipVersionCheck) {
          const cliVersion2 = manifest.minimumCliVersion;
          let cliWarning = "";
          if (cliVersion2) {
            cliWarning = `. You need at least CLI version ${cliVersion2} to read this manifest.`;
          }
          throw new Error(
            `${VERSION_MISMATCH}: Maximum schema version supported is ${maxSupported}.x.x, but found ${actual}${cliWarning}`
          );
        }
        const validator = new jsonschema.Validator();
        const result2 = validator.validate(manifest, schema, {
          // does exist but is not in the TypeScript definitions
          nestedErrors: true,
          allowUnknownAttributes: false,
          preValidateProperty: _Manifest.validateAssumeRoleAdditionalOptions
        });
        let errors = result2.errors;
        if (options?.skipEnumCheck) {
          errors = stripEnumErrors(errors);
        }
        if (errors.length > 0) {
          throw new Error(`Invalid assembly manifest:
${errors.map((e3) => e3.stack).join("\n")}`);
        }
      }
      static saveManifest(manifest, filePath, schema, preprocess) {
        let withVersion = {
          ...manifest,
          version: _Manifest.version(),
          minimumCliVersion: _Manifest.cliVersion()
        };
        _Manifest.validate(withVersion, schema);
        if (preprocess) {
          withVersion = preprocess(withVersion);
        }
        fs.writeFileSync(filePath, JSON.stringify(withVersion, void 0, 2));
      }
      static loadManifest(filePath, schema, preprocess, options) {
        const contents = fs.readFileSync(filePath, { encoding: "utf-8" });
        let obj;
        try {
          obj = JSON.parse(contents);
        } catch (e3) {
          throw new Error(`${e3.message}, while parsing ${JSON.stringify(contents)}`);
        }
        if (preprocess) {
          obj = preprocess(obj);
        }
        _Manifest.validate(obj, schema, options);
        return obj;
      }
      /**
       * This requires some explaining...
       *
       * We previously used `{ Key, Value }` for the object that represents a stack tag. (Notice the casing)
       * @link https://github.com/aws/aws-cdk/blob/v1.27.0/packages/aws-cdk/lib/api/cxapp/stacks.ts#L427.
       *
       * When that object moved to this package, it had to be JSII compliant, which meant the property
       * names must be `camelCased`, and not `PascalCased`. This meant it no longer matches the structure in the `manifest.json` file.
       * In order to support current manifest files, we have to translate the `PascalCased` representation to the new `camelCased` one.
       *
       * Note that the serialization itself still writes `PascalCased` because it relates to how CloudFormation expects it.
       *
       * Ideally, we would start writing the `camelCased` and translate to how CloudFormation expects it when needed. But this requires nasty
       * backwards-compatibility code and it just doesn't seem to be worth the effort.
       */
      static patchStackTagsOnRead(manifest) {
        return _Manifest.replaceStackTags(
          manifest,
          (tags) => tags.map((diskTag) => ({
            key: diskTag.Key,
            value: diskTag.Value
          }))
        );
      }
      /**
       * Validates that `assumeRoleAdditionalOptions` doesn't contain nor `ExternalId` neither `RoleArn`, as they
       * should have dedicated properties preceding this (e.g `assumeRoleArn` and `assumeRoleExternalId`).
       */
      static validateAssumeRoleAdditionalOptions(instance, key, _schema, _options, _ctx) {
        if (key !== "assumeRoleAdditionalOptions") {
          return;
        }
        const assumeRoleOptions = instance[key];
        if (assumeRoleOptions?.RoleArn) {
          throw new Error(`RoleArn is not allowed inside '${key}'`);
        }
        if (assumeRoleOptions?.ExternalId) {
          throw new Error(`ExternalId is not allowed inside '${key}'`);
        }
      }
      /**
       * See explanation on `patchStackTagsOnRead`
       *
       * Translate stack tags metadata if it has the "right" casing.
       */
      static patchStackTagsOnWrite(manifest) {
        return _Manifest.replaceStackTags(
          manifest,
          (tags) => tags.map(
            (memTag) => (
              // Might already be uppercased (because stack synthesis generates it in final form yet)
              "Key" in memTag ? memTag : { Key: memTag.key, Value: memTag.value }
            )
          )
        );
      }
      /**
       * Recursively replace stack tags in the stack metadata
       */
      static replaceStackTags(manifest, fn) {
        return noUndefined({
          ...manifest,
          artifacts: mapValues(manifest.artifacts, (artifact) => {
            if (artifact.type !== "aws:cloudformation:stack" /* AWS_CLOUDFORMATION_STACK */) {
              return artifact;
            }
            return noUndefined({
              ...artifact,
              metadata: mapValues(
                artifact.metadata,
                (metadataEntries) => metadataEntries.map((metadataEntry) => {
                  if (metadataEntry.type !== "aws:cdk:stack-tags" /* STACK_TAGS */ || !metadataEntry.data) {
                    return metadataEntry;
                  }
                  return {
                    ...metadataEntry,
                    data: fn(metadataEntry.data)
                  };
                })
              )
            });
          })
        });
      }
      constructor() {
      }
    };
    __name(mapValues, "mapValues");
    __name(noUndefined, "noUndefined");
    __name(stripEnumErrors, "stripEnumErrors");
  }
});

// ../@aws-cdk/cloud-assembly-schema/lib/integ-tests/schema.ts
var init_schema3 = __esm({
  "../@aws-cdk/cloud-assembly-schema/lib/integ-tests/schema.ts"() {
    "use strict";
  }
});

// ../@aws-cdk/cloud-assembly-schema/lib/integ-tests/commands/common.ts
var RequireApproval;
var init_common = __esm({
  "../@aws-cdk/cloud-assembly-schema/lib/integ-tests/commands/common.ts"() {
    "use strict";
    RequireApproval = /* @__PURE__ */ ((RequireApproval5) => {
      RequireApproval5["NEVER"] = "never";
      RequireApproval5["ANYCHANGE"] = "any-change";
      RequireApproval5["BROADENING"] = "broadening";
      return RequireApproval5;
    })(RequireApproval || {});
  }
});

// ../@aws-cdk/cloud-assembly-schema/lib/integ-tests/commands/deploy.ts
var init_deploy = __esm({
  "../@aws-cdk/cloud-assembly-schema/lib/integ-tests/commands/deploy.ts"() {
    "use strict";
  }
});

// ../@aws-cdk/cloud-assembly-schema/lib/integ-tests/commands/destroy.ts
var init_destroy = __esm({
  "../@aws-cdk/cloud-assembly-schema/lib/integ-tests/commands/destroy.ts"() {
    "use strict";
  }
});

// ../@aws-cdk/cloud-assembly-schema/lib/integ-tests/commands/index.ts
var init_commands = __esm({
  "../@aws-cdk/cloud-assembly-schema/lib/integ-tests/commands/index.ts"() {
    "use strict";
    init_common();
    init_deploy();
    init_destroy();
  }
});

// ../@aws-cdk/cloud-assembly-schema/lib/integ-tests/test-case.ts
var init_test_case = __esm({
  "../@aws-cdk/cloud-assembly-schema/lib/integ-tests/test-case.ts"() {
    "use strict";
  }
});

// ../@aws-cdk/cloud-assembly-schema/lib/integ-tests/index.ts
var integ_tests_exports = {};
__export(integ_tests_exports, {
  RequireApproval: () => RequireApproval
});
var init_integ_tests = __esm({
  "../@aws-cdk/cloud-assembly-schema/lib/integ-tests/index.ts"() {
    "use strict";
    init_schema3();
    init_commands();
    init_test_case();
  }
});

// ../@aws-cdk/cloud-assembly-schema/lib/index.js
var require_lib2 = __commonJS({
  "../@aws-cdk/cloud-assembly-schema/lib/index.js"(exports2) {
    "use strict";
    var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      var desc = Object.getOwnPropertyDescriptor(m3, k3);
      if (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) {
        desc = { enumerable: true, get: /* @__PURE__ */ __name(function() {
          return m3[k3];
        }, "get") };
      }
      Object.defineProperty(o3, k22, desc);
    }) : (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      o3[k22] = m3[k3];
    }));
    var __exportStar3 = exports2 && exports2.__exportStar || function(m3, exports3) {
      for (var p3 in m3) if (p3 !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p3)) __createBinding3(exports3, m3, p3);
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    __exportStar3((init_cloud_assembly(), __toCommonJS(cloud_assembly_exports)), exports2);
    __exportStar3((init_assets(), __toCommonJS(assets_exports)), exports2);
    __exportStar3((init_manifest(), __toCommonJS(manifest_exports)), exports2);
    __exportStar3((init_integ_tests(), __toCommonJS(integ_tests_exports)), exports2);
  }
});

// ../../node_modules/@aws-cdk/cx-api/lib/cxapi.js
var require_cxapi = __commonJS({
  "../../node_modules/@aws-cdk/cx-api/lib/cxapi.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.SSMPARAM_NO_INVALIDATE = exports2.PROVIDER_ERROR_KEY = exports2.TOOLKIT_VERSION_ENV = exports2.CLI_VERSION_ENV = exports2.CLI_ASM_VERSION_ENV = exports2.DEFAULT_REGION_ENV = exports2.DEFAULT_ACCOUNT_ENV = exports2.CONTEXT_OVERFLOW_LOCATION_ENV = exports2.CONTEXT_ENV = exports2.OUTDIR_ENV = void 0;
    exports2.OUTDIR_ENV = "CDK_OUTDIR";
    exports2.CONTEXT_ENV = "CDK_CONTEXT_JSON";
    exports2.CONTEXT_OVERFLOW_LOCATION_ENV = "CONTEXT_OVERFLOW_LOCATION_ENV";
    exports2.DEFAULT_ACCOUNT_ENV = "CDK_DEFAULT_ACCOUNT";
    exports2.DEFAULT_REGION_ENV = "CDK_DEFAULT_REGION";
    exports2.CLI_ASM_VERSION_ENV = "CDK_CLI_ASM_VERSION";
    exports2.CLI_VERSION_ENV = "CDK_CLI_VERSION";
    exports2.TOOLKIT_VERSION_ENV = "CDK_TOOLKIT_VERSION";
    exports2.PROVIDER_ERROR_KEY = "$providerError";
    exports2.SSMPARAM_NO_INVALIDATE = "[cdk:skip]";
  }
});

// ../../node_modules/@aws-cdk/cx-api/lib/context/vpc.js
var require_vpc = __commonJS({
  "../../node_modules/@aws-cdk/cx-api/lib/context/vpc.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.VpcSubnetGroupType = void 0;
    var VpcSubnetGroupType2;
    (function(VpcSubnetGroupType3) {
      VpcSubnetGroupType3["PUBLIC"] = "Public";
      VpcSubnetGroupType3["PRIVATE"] = "Private";
      VpcSubnetGroupType3["ISOLATED"] = "Isolated";
    })(VpcSubnetGroupType2 || (exports2.VpcSubnetGroupType = VpcSubnetGroupType2 = {}));
  }
});

// ../../node_modules/@aws-cdk/cx-api/lib/context/ami.js
var require_ami = __commonJS({
  "../../node_modules/@aws-cdk/cx-api/lib/context/ami.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
  }
});

// ../../node_modules/@aws-cdk/cx-api/lib/context/load-balancer.js
var require_load_balancer = __commonJS({
  "../../node_modules/@aws-cdk/cx-api/lib/context/load-balancer.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.LoadBalancerIpAddressType = void 0;
    var LoadBalancerIpAddressType2;
    (function(LoadBalancerIpAddressType3) {
      LoadBalancerIpAddressType3["IPV4"] = "ipv4";
      LoadBalancerIpAddressType3["DUAL_STACK"] = "dualstack";
      LoadBalancerIpAddressType3["DUAL_STACK_WITHOUT_PUBLIC_IPV4"] = "dualstack-without-public-ipv4";
    })(LoadBalancerIpAddressType2 || (exports2.LoadBalancerIpAddressType = LoadBalancerIpAddressType2 = {}));
  }
});

// ../../node_modules/@aws-cdk/cx-api/lib/context/availability-zones.js
var require_availability_zones = __commonJS({
  "../../node_modules/@aws-cdk/cx-api/lib/context/availability-zones.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.AVAILABILITY_ZONE_FALLBACK_CONTEXT_KEY = void 0;
    exports2.AVAILABILITY_ZONE_FALLBACK_CONTEXT_KEY = "aws:cdk:availability-zones:fallback";
  }
});

// ../../node_modules/@aws-cdk/cx-api/lib/context/endpoint-service-availability-zones.js
var require_endpoint_service_availability_zones = __commonJS({
  "../../node_modules/@aws-cdk/cx-api/lib/context/endpoint-service-availability-zones.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.ENDPOINT_SERVICE_AVAILABILITY_ZONE_PROVIDER = void 0;
    exports2.ENDPOINT_SERVICE_AVAILABILITY_ZONE_PROVIDER = "endpoint-service-availability-zones";
  }
});

// ../../node_modules/@aws-cdk/cx-api/lib/context/security-group.js
var require_security_group = __commonJS({
  "../../node_modules/@aws-cdk/cx-api/lib/context/security-group.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
  }
});

// ../../node_modules/@aws-cdk/cx-api/lib/context/key.js
var require_key = __commonJS({
  "../../node_modules/@aws-cdk/cx-api/lib/context/key.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
  }
});

// ../../node_modules/@aws-cdk/cx-api/.warnings.jsii.js
var require_warnings_jsii = __commonJS({
  "../../node_modules/@aws-cdk/cx-api/.warnings.jsii.js"(exports2, module2) {
    function _aws_cdk_cx_api_VpcSubnetGroupType(p3) {
    }
    __name(_aws_cdk_cx_api_VpcSubnetGroupType, "_aws_cdk_cx_api_VpcSubnetGroupType");
    function _aws_cdk_cx_api_VpcSubnet(p3) {
    }
    __name(_aws_cdk_cx_api_VpcSubnet, "_aws_cdk_cx_api_VpcSubnet");
    function _aws_cdk_cx_api_VpcSubnetGroup(p3) {
      if (p3 == null)
        return;
      visitedObjects.add(p3);
      try {
        if (p3.subnets != null) {
          for (const o3 of p3.subnets)
            if (!visitedObjects.has(o3))
              _aws_cdk_cx_api_VpcSubnet(o3);
        }
        if (!visitedObjects.has(p3.type))
          _aws_cdk_cx_api_VpcSubnetGroupType(p3.type);
      } finally {
        visitedObjects.delete(p3);
      }
    }
    __name(_aws_cdk_cx_api_VpcSubnetGroup, "_aws_cdk_cx_api_VpcSubnetGroup");
    function _aws_cdk_cx_api_VpcContextResponse(p3) {
      if (p3 == null)
        return;
      visitedObjects.add(p3);
      try {
        if (p3.subnetGroups != null) {
          for (const o3 of p3.subnetGroups)
            if (!visitedObjects.has(o3))
              _aws_cdk_cx_api_VpcSubnetGroup(o3);
        }
      } finally {
        visitedObjects.delete(p3);
      }
    }
    __name(_aws_cdk_cx_api_VpcContextResponse, "_aws_cdk_cx_api_VpcContextResponse");
    function _aws_cdk_cx_api_LoadBalancerIpAddressType(p3) {
    }
    __name(_aws_cdk_cx_api_LoadBalancerIpAddressType, "_aws_cdk_cx_api_LoadBalancerIpAddressType");
    function _aws_cdk_cx_api_LoadBalancerContextResponse(p3) {
      if (p3 == null)
        return;
      visitedObjects.add(p3);
      try {
        if (!visitedObjects.has(p3.ipAddressType))
          _aws_cdk_cx_api_LoadBalancerIpAddressType(p3.ipAddressType);
      } finally {
        visitedObjects.delete(p3);
      }
    }
    __name(_aws_cdk_cx_api_LoadBalancerContextResponse, "_aws_cdk_cx_api_LoadBalancerContextResponse");
    function _aws_cdk_cx_api_LoadBalancerListenerContextResponse(p3) {
    }
    __name(_aws_cdk_cx_api_LoadBalancerListenerContextResponse, "_aws_cdk_cx_api_LoadBalancerListenerContextResponse");
    function _aws_cdk_cx_api_EndpointServiceAvailabilityZonesContextQuery(p3) {
    }
    __name(_aws_cdk_cx_api_EndpointServiceAvailabilityZonesContextQuery, "_aws_cdk_cx_api_EndpointServiceAvailabilityZonesContextQuery");
    function _aws_cdk_cx_api_SecurityGroupContextResponse(p3) {
    }
    __name(_aws_cdk_cx_api_SecurityGroupContextResponse, "_aws_cdk_cx_api_SecurityGroupContextResponse");
    function _aws_cdk_cx_api_KeyContextResponse(p3) {
    }
    __name(_aws_cdk_cx_api_KeyContextResponse, "_aws_cdk_cx_api_KeyContextResponse");
    function _aws_cdk_cx_api_AwsCloudFormationStackProperties(p3) {
    }
    __name(_aws_cdk_cx_api_AwsCloudFormationStackProperties, "_aws_cdk_cx_api_AwsCloudFormationStackProperties");
    function _aws_cdk_cx_api_CloudArtifact(p3) {
    }
    __name(_aws_cdk_cx_api_CloudArtifact, "_aws_cdk_cx_api_CloudArtifact");
    function _aws_cdk_cx_api_AssetManifestArtifact(p3) {
    }
    __name(_aws_cdk_cx_api_AssetManifestArtifact, "_aws_cdk_cx_api_AssetManifestArtifact");
    function _aws_cdk_cx_api_CloudFormationStackArtifact(p3) {
    }
    __name(_aws_cdk_cx_api_CloudFormationStackArtifact, "_aws_cdk_cx_api_CloudFormationStackArtifact");
    function _aws_cdk_cx_api_TreeCloudArtifact(p3) {
    }
    __name(_aws_cdk_cx_api_TreeCloudArtifact, "_aws_cdk_cx_api_TreeCloudArtifact");
    function _aws_cdk_cx_api_NestedCloudAssemblyArtifact(p3) {
    }
    __name(_aws_cdk_cx_api_NestedCloudAssemblyArtifact, "_aws_cdk_cx_api_NestedCloudAssemblyArtifact");
    function _aws_cdk_cx_api_CloudAssembly(p3) {
    }
    __name(_aws_cdk_cx_api_CloudAssembly, "_aws_cdk_cx_api_CloudAssembly");
    function _aws_cdk_cx_api_CloudAssemblyBuilderProps(p3) {
      if (p3 == null)
        return;
      visitedObjects.add(p3);
      try {
        if (!visitedObjects.has(p3.parentBuilder))
          _aws_cdk_cx_api_CloudAssemblyBuilder(p3.parentBuilder);
      } finally {
        visitedObjects.delete(p3);
      }
    }
    __name(_aws_cdk_cx_api_CloudAssemblyBuilderProps, "_aws_cdk_cx_api_CloudAssemblyBuilderProps");
    function _aws_cdk_cx_api_CloudAssemblyBuilder(p3) {
    }
    __name(_aws_cdk_cx_api_CloudAssemblyBuilder, "_aws_cdk_cx_api_CloudAssemblyBuilder");
    function _aws_cdk_cx_api_RuntimeInfo(p3) {
    }
    __name(_aws_cdk_cx_api_RuntimeInfo, "_aws_cdk_cx_api_RuntimeInfo");
    function _aws_cdk_cx_api_MetadataEntry(p3) {
    }
    __name(_aws_cdk_cx_api_MetadataEntry, "_aws_cdk_cx_api_MetadataEntry");
    function _aws_cdk_cx_api_MissingContext(p3) {
      if (p3 == null)
        return;
      visitedObjects.add(p3);
      try {
        if ("key" in p3)
          print2("@aws-cdk/cx-api.MissingContext#key", "moved to package 'cloud-assembly-schema'");
        if ("props" in p3)
          print2("@aws-cdk/cx-api.MissingContext#props", "moved to package 'cloud-assembly-schema'");
        if ("provider" in p3)
          print2("@aws-cdk/cx-api.MissingContext#provider", "moved to package 'cloud-assembly-schema'");
      } finally {
        visitedObjects.delete(p3);
      }
    }
    __name(_aws_cdk_cx_api_MissingContext, "_aws_cdk_cx_api_MissingContext");
    function _aws_cdk_cx_api_AssemblyBuildOptions(p3) {
      if (p3 == null)
        return;
      visitedObjects.add(p3);
      try {
        if ("runtimeInfo" in p3)
          print2("@aws-cdk/cx-api.AssemblyBuildOptions#runtimeInfo", "All template modifications that should result from this should\nhave already been inserted into the template.");
        if (!visitedObjects.has(p3.runtimeInfo))
          _aws_cdk_cx_api_RuntimeInfo(p3.runtimeInfo);
      } finally {
        visitedObjects.delete(p3);
      }
    }
    __name(_aws_cdk_cx_api_AssemblyBuildOptions, "_aws_cdk_cx_api_AssemblyBuildOptions");
    function _aws_cdk_cx_api_Environment(p3) {
    }
    __name(_aws_cdk_cx_api_Environment, "_aws_cdk_cx_api_Environment");
    function _aws_cdk_cx_api_EnvironmentUtils(p3) {
    }
    __name(_aws_cdk_cx_api_EnvironmentUtils, "_aws_cdk_cx_api_EnvironmentUtils");
    function _aws_cdk_cx_api_SynthesisMessageLevel(p3) {
    }
    __name(_aws_cdk_cx_api_SynthesisMessageLevel, "_aws_cdk_cx_api_SynthesisMessageLevel");
    function _aws_cdk_cx_api_MetadataEntryResult(p3) {
    }
    __name(_aws_cdk_cx_api_MetadataEntryResult, "_aws_cdk_cx_api_MetadataEntryResult");
    function _aws_cdk_cx_api_SynthesisMessage(p3) {
      if (p3 == null)
        return;
      visitedObjects.add(p3);
      try {
        if (!visitedObjects.has(p3.level))
          _aws_cdk_cx_api_SynthesisMessageLevel(p3.level);
      } finally {
        visitedObjects.delete(p3);
      }
    }
    __name(_aws_cdk_cx_api_SynthesisMessage, "_aws_cdk_cx_api_SynthesisMessage");
    function _aws_cdk_cx_api_EnvironmentPlaceholders(p3) {
    }
    __name(_aws_cdk_cx_api_EnvironmentPlaceholders, "_aws_cdk_cx_api_EnvironmentPlaceholders");
    function _aws_cdk_cx_api_EnvironmentPlaceholderValues(p3) {
    }
    __name(_aws_cdk_cx_api_EnvironmentPlaceholderValues, "_aws_cdk_cx_api_EnvironmentPlaceholderValues");
    function _aws_cdk_cx_api_IEnvironmentPlaceholderProvider(p3) {
    }
    __name(_aws_cdk_cx_api_IEnvironmentPlaceholderProvider, "_aws_cdk_cx_api_IEnvironmentPlaceholderProvider");
    function print2(name, deprecationMessage) {
      const deprecated = process.env.JSII_DEPRECATED;
      const deprecationMode = ["warn", "fail", "quiet"].includes(deprecated) ? deprecated : "warn";
      const message2 = `${name} is deprecated.
  ${deprecationMessage.trim()}
  This API will be removed in the next major release.`;
      switch (deprecationMode) {
        case "fail":
          throw new DeprecationError(message2);
        case "warn":
          console.warn("[WARNING]", message2);
          break;
      }
    }
    __name(print2, "print");
    function getPropertyDescriptor(obj, prop) {
      const descriptor = Object.getOwnPropertyDescriptor(obj, prop);
      if (descriptor) {
        return descriptor;
      }
      const proto = Object.getPrototypeOf(obj);
      const prototypeDescriptor = proto && getPropertyDescriptor(proto, prop);
      if (prototypeDescriptor) {
        return prototypeDescriptor;
      }
      return {};
    }
    __name(getPropertyDescriptor, "getPropertyDescriptor");
    var visitedObjects = /* @__PURE__ */ new Set();
    var DeprecationError = class extends Error {
      static {
        __name(this, "DeprecationError");
      }
      constructor(...args) {
        super(...args);
        Object.defineProperty(this, "name", {
          configurable: false,
          enumerable: true,
          value: "DeprecationError",
          writable: false
        });
      }
    };
    module2.exports = { print: print2, getPropertyDescriptor, DeprecationError, _aws_cdk_cx_api_VpcSubnetGroupType, _aws_cdk_cx_api_VpcSubnet, _aws_cdk_cx_api_VpcSubnetGroup, _aws_cdk_cx_api_VpcContextResponse, _aws_cdk_cx_api_LoadBalancerIpAddressType, _aws_cdk_cx_api_LoadBalancerContextResponse, _aws_cdk_cx_api_LoadBalancerListenerContextResponse, _aws_cdk_cx_api_EndpointServiceAvailabilityZonesContextQuery, _aws_cdk_cx_api_SecurityGroupContextResponse, _aws_cdk_cx_api_KeyContextResponse, _aws_cdk_cx_api_AwsCloudFormationStackProperties, _aws_cdk_cx_api_CloudArtifact, _aws_cdk_cx_api_AssetManifestArtifact, _aws_cdk_cx_api_CloudFormationStackArtifact, _aws_cdk_cx_api_TreeCloudArtifact, _aws_cdk_cx_api_NestedCloudAssemblyArtifact, _aws_cdk_cx_api_CloudAssembly, _aws_cdk_cx_api_CloudAssemblyBuilderProps, _aws_cdk_cx_api_CloudAssemblyBuilder, _aws_cdk_cx_api_RuntimeInfo, _aws_cdk_cx_api_MetadataEntry, _aws_cdk_cx_api_MissingContext, _aws_cdk_cx_api_AssemblyBuildOptions, _aws_cdk_cx_api_Environment, _aws_cdk_cx_api_EnvironmentUtils, _aws_cdk_cx_api_SynthesisMessageLevel, _aws_cdk_cx_api_MetadataEntryResult, _aws_cdk_cx_api_SynthesisMessage, _aws_cdk_cx_api_EnvironmentPlaceholders, _aws_cdk_cx_api_EnvironmentPlaceholderValues, _aws_cdk_cx_api_IEnvironmentPlaceholderProvider };
  }
});

// ../../node_modules/@aws-cdk/cx-api/lib/metadata.js
var require_metadata = __commonJS({
  "../../node_modules/@aws-cdk/cx-api/lib/metadata.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.SynthesisMessageLevel = exports2.PATH_METADATA_KEY = void 0;
    exports2.PATH_METADATA_KEY = "aws:cdk:path";
    var SynthesisMessageLevel2;
    (function(SynthesisMessageLevel3) {
      SynthesisMessageLevel3["INFO"] = "info";
      SynthesisMessageLevel3["WARNING"] = "warning";
      SynthesisMessageLevel3["ERROR"] = "error";
    })(SynthesisMessageLevel2 || (exports2.SynthesisMessageLevel = SynthesisMessageLevel2 = {}));
  }
});

// ../../node_modules/@aws-cdk/cx-api/lib/private/error.js
var require_error = __commonJS({
  "../../node_modules/@aws-cdk/cx-api/lib/private/error.js"(exports2) {
    "use strict";
    var __classPrivateFieldGet2 = exports2 && exports2.__classPrivateFieldGet || function(receiver, state2, kind, f3) {
      if (kind === "a" && !f3) throw new TypeError("Private accessor was defined without a getter");
      if (typeof state2 === "function" ? receiver !== state2 || !f3 : !state2.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
      return kind === "m" ? f3 : kind === "a" ? f3.call(receiver) : f3 ? f3.value : state2.get(receiver);
    };
    var __classPrivateFieldSet2 = exports2 && exports2.__classPrivateFieldSet || function(receiver, state2, value, kind, f3) {
      if (kind === "m") throw new TypeError("Private method is not writable");
      if (kind === "a" && !f3) throw new TypeError("Private accessor was defined without a setter");
      if (typeof state2 === "function" ? receiver !== state2 || !f3 : !state2.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
      return kind === "a" ? f3.call(receiver, value) : f3 ? f3.value = value : state2.set(receiver, value), value;
    };
    var _CloudAssemblyError_time;
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.CloudAssemblyError = void 0;
    var ASSEMBLY_ERROR_SYMBOL2 = Symbol.for("@aws-cdk/cx-api.CloudAssemblyError");
    var CloudAssemblyError = class _CloudAssemblyError extends Error {
      static {
        __name(this, "CloudAssemblyError");
      }
      /**
       * The time the error was thrown.
       */
      get time() {
        return __classPrivateFieldGet2(this, _CloudAssemblyError_time, "f");
      }
      get type() {
        return "assembly";
      }
      constructor(msg) {
        super(msg);
        _CloudAssemblyError_time.set(this, void 0);
        Object.setPrototypeOf(this, _CloudAssemblyError.prototype);
        Object.defineProperty(this, ASSEMBLY_ERROR_SYMBOL2, { value: true });
        this.name = new.target.name;
        __classPrivateFieldSet2(this, _CloudAssemblyError_time, (/* @__PURE__ */ new Date()).toISOString(), "f");
      }
    };
    exports2.CloudAssemblyError = CloudAssemblyError;
    _CloudAssemblyError_time = /* @__PURE__ */ new WeakMap();
  }
});

// ../../node_modules/@aws-cdk/cx-api/lib/cloud-artifact.js
var require_cloud_artifact = __commonJS({
  "../../node_modules/@aws-cdk/cx-api/lib/cloud-artifact.js"(exports2) {
    "use strict";
    var _a2;
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.CloudArtifact = void 0;
    var jsiiDeprecationWarnings = require_warnings_jsii();
    var JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
    var metadata_1 = require_metadata();
    var cxschema8 = require_lib2();
    var error_1 = require_error();
    var CloudArtifact = class _CloudArtifact {
      static {
        __name(this, "CloudArtifact");
      }
      /**
       * Returns a subclass of `CloudArtifact` based on the artifact type defined in the artifact manifest.
       *
       * @param assembly The cloud assembly from which to load the artifact
       * @param id The artifact ID
       * @param artifact The artifact manifest
       * @returns the `CloudArtifact` that matches the artifact type or `undefined` if it's an artifact type that is unrecognized by this module.
       */
      static fromManifest(assembly, id, artifact) {
        try {
          jsiiDeprecationWarnings._aws_cdk_cx_api_CloudAssembly(assembly);
        } catch (error5) {
          if (process.env.JSII_DEBUG !== "1" && error5.name === "DeprecationError") {
            Error.captureStackTrace(error5, this.fromManifest);
          }
          throw error5;
        }
        void assembly, void id, void artifact;
        throw new error_1.CloudAssemblyError("Implementation not overridden yet");
      }
      constructor(assembly, id, manifest) {
        this.assembly = assembly;
        this.id = id;
        try {
          jsiiDeprecationWarnings._aws_cdk_cx_api_CloudAssembly(assembly);
        } catch (error5) {
          if (process.env.JSII_DEBUG !== "1" && error5.name === "DeprecationError") {
            Error.captureStackTrace(error5, _CloudArtifact);
          }
          throw error5;
        }
        this.manifest = manifest;
        this.messages = this.renderMessages();
        this._dependencyIDs = manifest.dependencies || [];
      }
      /**
       * Returns all the artifacts that this artifact depends on.
       */
      get dependencies() {
        if (this._deps) {
          return this._deps;
        }
        this._deps = this._dependencyIDs.map((id) => {
          const dep = this.assembly.tryGetArtifact(id);
          if (!dep) {
            throw new error_1.CloudAssemblyError(`Artifact ${this.id} depends on non-existing artifact ${id}`);
          }
          return dep;
        });
        return this._deps;
      }
      /**
       * @returns all the metadata entries of a specific type in this artifact.
       */
      findMetadataByType(type) {
        const result2 = new Array();
        for (const path38 of Object.keys(this.manifest.metadata || {})) {
          for (const entry of (this.manifest.metadata || {})[path38]) {
            if (entry.type === type) {
              result2.push({ path: path38, ...entry });
            }
          }
        }
        return result2;
      }
      renderMessages() {
        const messages = new Array();
        for (const [id, metadata] of Object.entries(this.manifest.metadata || {})) {
          for (const entry of metadata) {
            let level;
            switch (entry.type) {
              case cxschema8.ArtifactMetadataEntryType.WARN:
                level = metadata_1.SynthesisMessageLevel.WARNING;
                break;
              case cxschema8.ArtifactMetadataEntryType.ERROR:
                level = metadata_1.SynthesisMessageLevel.ERROR;
                break;
              case cxschema8.ArtifactMetadataEntryType.INFO:
                level = metadata_1.SynthesisMessageLevel.INFO;
                break;
              default:
                continue;
            }
            messages.push({ level, entry, id });
          }
        }
        return messages;
      }
      /**
       * An identifier that shows where this artifact is located in the tree
       * of nested assemblies, based on their manifests. Defaults to the normal
       * id. Should only be used in user interfaces.
       */
      get hierarchicalId() {
        return this.manifest.displayName ?? this.id;
      }
    };
    exports2.CloudArtifact = CloudArtifact;
    _a2 = JSII_RTTI_SYMBOL_1;
    CloudArtifact[_a2] = { fqn: "@aws-cdk/cx-api.CloudArtifact", version: "2.213.0" };
  }
});

// ../../node_modules/@aws-cdk/cx-api/lib/artifacts/asset-manifest-artifact.js
var require_asset_manifest_artifact = __commonJS({
  "../../node_modules/@aws-cdk/cx-api/lib/artifacts/asset-manifest-artifact.js"(exports2) {
    "use strict";
    var _a2;
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.AssetManifestArtifact = void 0;
    var jsiiDeprecationWarnings = require_warnings_jsii();
    var JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
    var fs43 = require("fs");
    var path38 = require("path");
    var cloud_artifact_1 = require_cloud_artifact();
    var error_1 = require_error();
    var ASSET_MANIFEST_ARTIFACT_SYM = Symbol.for("@aws-cdk/cx-api.AssetManifestArtifact");
    var AssetManifestArtifact5 = class _AssetManifestArtifact extends cloud_artifact_1.CloudArtifact {
      static {
        __name(this, "AssetManifestArtifact");
      }
      /**
       * Checks if `art` is an instance of this class.
       *
       * Use this method instead of `instanceof` to properly detect `AssetManifestArtifact`
       * instances, even when the construct library is symlinked.
       *
       * Explanation: in JavaScript, multiple copies of the `cx-api` library on
       * disk are seen as independent, completely different libraries. As a
       * consequence, the class `AssetManifestArtifact` in each copy of the `cx-api` library
       * is seen as a different class, and an instance of one class will not test as
       * `instanceof` the other class. `npm install` will not create installations
       * like this, but users may manually symlink construct libraries together or
       * use a monorepo tool: in those cases, multiple copies of the `cx-api`
       * library can be accidentally installed, and `instanceof` will behave
       * unpredictably. It is safest to avoid using `instanceof`, and using
       * this type-testing method instead.
       */
      static isAssetManifestArtifact(art) {
        return art && typeof art === "object" && art[ASSET_MANIFEST_ARTIFACT_SYM];
      }
      constructor(assembly, name, artifact) {
        super(assembly, name, artifact);
        try {
          jsiiDeprecationWarnings._aws_cdk_cx_api_CloudAssembly(assembly);
        } catch (error5) {
          if (process.env.JSII_DEBUG !== "1" && error5.name === "DeprecationError") {
            Error.captureStackTrace(error5, _AssetManifestArtifact);
          }
          throw error5;
        }
        const properties = this.manifest.properties || {};
        if (!properties.file) {
          throw new error_1.CloudAssemblyError('Invalid AssetManifestArtifact. Missing "file" property');
        }
        this.file = path38.resolve(this.assembly.directory, properties.file);
        this.requiresBootstrapStackVersion = properties.requiresBootstrapStackVersion;
        this.bootstrapStackVersionSsmParameter = properties.bootstrapStackVersionSsmParameter;
      }
      /**
       * The Asset Manifest contents
       */
      get contents() {
        if (this._contents !== void 0) {
          return this._contents;
        }
        const contents = this._contents = JSON.parse(fs43.readFileSync(this.file, "utf-8"));
        return contents;
      }
    };
    exports2.AssetManifestArtifact = AssetManifestArtifact5;
    _a2 = JSII_RTTI_SYMBOL_1;
    AssetManifestArtifact5[_a2] = { fqn: "@aws-cdk/cx-api.AssetManifestArtifact", version: "2.213.0" };
    Object.defineProperty(AssetManifestArtifact5.prototype, ASSET_MANIFEST_ARTIFACT_SYM, {
      value: true,
      enumerable: false,
      writable: false
    });
  }
});

// ../../node_modules/@aws-cdk/cx-api/lib/environment.js
var require_environment = __commonJS({
  "../../node_modules/@aws-cdk/cx-api/lib/environment.js"(exports2) {
    "use strict";
    var _a2;
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.EnvironmentUtils = exports2.UNKNOWN_REGION = exports2.UNKNOWN_ACCOUNT = void 0;
    var JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
    var error_1 = require_error();
    var AWS_ENV_REGEX = /aws\:\/\/([a-z0-9A-Z\-\@\.\_]+)\/([a-z\-0-9]+)/;
    exports2.UNKNOWN_ACCOUNT = "unknown-account";
    exports2.UNKNOWN_REGION = "unknown-region";
    var EnvironmentUtils4 = class {
      static {
        __name(this, "EnvironmentUtils");
      }
      static parse(environment) {
        const env2 = AWS_ENV_REGEX.exec(environment);
        if (!env2) {
          throw new error_1.CloudAssemblyError(`Unable to parse environment specification "${environment}". Expected format: aws://account/region`);
        }
        const [, account, region] = env2;
        if (!account || !region) {
          throw new error_1.CloudAssemblyError(`Invalid environment specification: ${environment}`);
        }
        return { account, region, name: environment };
      }
      /**
       * Build an environment object from an account and region
       */
      static make(account, region) {
        return { account, region, name: this.format(account, region) };
      }
      /**
       * Format an environment string from an account and region
       */
      static format(account, region) {
        return `aws://${account}/${region}`;
      }
    };
    exports2.EnvironmentUtils = EnvironmentUtils4;
    _a2 = JSII_RTTI_SYMBOL_1;
    EnvironmentUtils4[_a2] = { fqn: "@aws-cdk/cx-api.EnvironmentUtils", version: "2.213.0" };
  }
});

// ../../node_modules/@aws-cdk/cx-api/lib/artifacts/cloudformation-artifact.js
var require_cloudformation_artifact = __commonJS({
  "../../node_modules/@aws-cdk/cx-api/lib/artifacts/cloudformation-artifact.js"(exports2) {
    "use strict";
    var _a2;
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.CloudFormationStackArtifact = void 0;
    var jsiiDeprecationWarnings = require_warnings_jsii();
    var JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
    var fs43 = require("fs");
    var path38 = require("path");
    var cxschema8 = require_lib2();
    var cloud_artifact_1 = require_cloud_artifact();
    var environment_1 = require_environment();
    var error_1 = require_error();
    var CLOUDFORMATION_STACK_ARTIFACT_SYM = Symbol.for("@aws-cdk/cx-api.CloudFormationStackArtifact");
    var CloudFormationStackArtifact2 = class _CloudFormationStackArtifact extends cloud_artifact_1.CloudArtifact {
      static {
        __name(this, "CloudFormationStackArtifact");
      }
      /**
       * Checks if `art` is an instance of this class.
       *
       * Use this method instead of `instanceof` to properly detect `CloudFormationStackArtifact`
       * instances, even when the construct library is symlinked.
       *
       * Explanation: in JavaScript, multiple copies of the `cx-api` library on
       * disk are seen as independent, completely different libraries. As a
       * consequence, the class `CloudFormationStackArtifact` in each copy of the `cx-api` library
       * is seen as a different class, and an instance of one class will not test as
       * `instanceof` the other class. `npm install` will not create installations
       * like this, but users may manually symlink construct libraries together or
       * use a monorepo tool: in those cases, multiple copies of the `cx-api`
       * library can be accidentally installed, and `instanceof` will behave
       * unpredictably. It is safest to avoid using `instanceof`, and using
       * this type-testing method instead.
       */
      static isCloudFormationStackArtifact(art) {
        return art && typeof art === "object" && art[CLOUDFORMATION_STACK_ARTIFACT_SYM];
      }
      constructor(assembly, artifactId, artifact) {
        super(assembly, artifactId, artifact);
        try {
          jsiiDeprecationWarnings._aws_cdk_cx_api_CloudAssembly(assembly);
        } catch (error5) {
          if (process.env.JSII_DEBUG !== "1" && error5.name === "DeprecationError") {
            Error.captureStackTrace(error5, _CloudFormationStackArtifact);
          }
          throw error5;
        }
        const properties = this.manifest.properties || {};
        if (!properties.templateFile) {
          throw new error_1.CloudAssemblyError('Invalid CloudFormation stack artifact. Missing "templateFile" property in cloud assembly manifest');
        }
        if (!artifact.environment) {
          throw new error_1.CloudAssemblyError("Invalid CloudFormation stack artifact. Missing environment");
        }
        this.environment = environment_1.EnvironmentUtils.parse(artifact.environment);
        this.templateFile = properties.templateFile;
        this.parameters = properties.parameters ?? {};
        this.tags = properties.tags ?? this.tagsFromMetadata();
        this.notificationArns = properties.notificationArns;
        this.assumeRoleArn = properties.assumeRoleArn;
        this.assumeRoleExternalId = properties.assumeRoleExternalId;
        this.assumeRoleAdditionalOptions = properties.assumeRoleAdditionalOptions;
        this.cloudFormationExecutionRoleArn = properties.cloudFormationExecutionRoleArn;
        this.stackTemplateAssetObjectUrl = properties.stackTemplateAssetObjectUrl;
        this.requiresBootstrapStackVersion = properties.requiresBootstrapStackVersion;
        this.bootstrapStackVersionSsmParameter = properties.bootstrapStackVersionSsmParameter;
        this.terminationProtection = properties.terminationProtection;
        this.validateOnSynth = properties.validateOnSynth;
        this.lookupRole = properties.lookupRole;
        this.stackName = properties.stackName || artifactId;
        this.assets = this.findMetadataByType(cxschema8.ArtifactMetadataEntryType.ASSET).map((e3) => e3.data);
        this.displayName = this.stackName === artifactId ? this.hierarchicalId : `${this.hierarchicalId} (${this.stackName})`;
        this.name = this.stackName;
        this.originalName = this.stackName;
      }
      /**
       * Full path to the template file
       */
      get templateFullPath() {
        return path38.join(this.assembly.directory, this.templateFile);
      }
      /**
       * The CloudFormation template for this stack.
       */
      get template() {
        if (this._template === void 0) {
          this._template = JSON.parse(fs43.readFileSync(this.templateFullPath, "utf-8"));
        }
        return this._template;
      }
      tagsFromMetadata() {
        const ret = {};
        for (const metadataEntry of this.findMetadataByType(cxschema8.ArtifactMetadataEntryType.STACK_TAGS)) {
          for (const tag2 of metadataEntry.data ?? []) {
            ret[tag2.key] = tag2.value;
          }
        }
        return ret;
      }
    };
    exports2.CloudFormationStackArtifact = CloudFormationStackArtifact2;
    _a2 = JSII_RTTI_SYMBOL_1;
    CloudFormationStackArtifact2[_a2] = { fqn: "@aws-cdk/cx-api.CloudFormationStackArtifact", version: "2.213.0" };
    Object.defineProperty(CloudFormationStackArtifact2.prototype, CLOUDFORMATION_STACK_ARTIFACT_SYM, {
      value: true,
      enumerable: false,
      writable: false
    });
  }
});

// ../../node_modules/@aws-cdk/cx-api/lib/artifacts/nested-cloud-assembly-artifact.js
var require_nested_cloud_assembly_artifact = __commonJS({
  "../../node_modules/@aws-cdk/cx-api/lib/artifacts/nested-cloud-assembly-artifact.js"(exports2) {
    "use strict";
    var _a2;
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.NestedCloudAssemblyArtifact = void 0;
    var jsiiDeprecationWarnings = require_warnings_jsii();
    var JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
    var path38 = require("path");
    var cloud_artifact_1 = require_cloud_artifact();
    var NESTED_CLOUD_ASSEMBLY_SYM = Symbol.for("@aws-cdk/cx-api.NestedCloudAssemblyArtifact");
    var NestedCloudAssemblyArtifact2 = class _NestedCloudAssemblyArtifact extends cloud_artifact_1.CloudArtifact {
      static {
        __name(this, "NestedCloudAssemblyArtifact");
      }
      /**
       * Checks if `art` is an instance of this class.
       *
       * Use this method instead of `instanceof` to properly detect `NestedCloudAssemblyArtifact`
       * instances, even when the construct library is symlinked.
       *
       * Explanation: in JavaScript, multiple copies of the `cx-api` library on
       * disk are seen as independent, completely different libraries. As a
       * consequence, the class `NestedCloudAssemblyArtifact` in each copy of the `cx-api` library
       * is seen as a different class, and an instance of one class will not test as
       * `instanceof` the other class. `npm install` will not create installations
       * like this, but users may manually symlink construct libraries together or
       * use a monorepo tool: in those cases, multiple copies of the `cx-api`
       * library can be accidentally installed, and `instanceof` will behave
       * unpredictably. It is safest to avoid using `instanceof`, and using
       * this type-testing method instead.
       */
      static isNestedCloudAssemblyArtifact(art) {
        return art && typeof art === "object" && art[NESTED_CLOUD_ASSEMBLY_SYM];
      }
      constructor(assembly, name, artifact) {
        super(assembly, name, artifact);
        try {
          jsiiDeprecationWarnings._aws_cdk_cx_api_CloudAssembly(assembly);
        } catch (error5) {
          if (process.env.JSII_DEBUG !== "1" && error5.name === "DeprecationError") {
            Error.captureStackTrace(error5, _NestedCloudAssemblyArtifact);
          }
          throw error5;
        }
        const properties = this.manifest.properties || {};
        this.directoryName = properties.directoryName;
        this.displayName = properties.displayName ?? name;
      }
      /**
       * Full path to the nested assembly directory
       */
      get fullPath() {
        return path38.join(this.assembly.directory, this.directoryName);
      }
    };
    exports2.NestedCloudAssemblyArtifact = NestedCloudAssemblyArtifact2;
    _a2 = JSII_RTTI_SYMBOL_1;
    NestedCloudAssemblyArtifact2[_a2] = { fqn: "@aws-cdk/cx-api.NestedCloudAssemblyArtifact", version: "2.213.0" };
    Object.defineProperty(NestedCloudAssemblyArtifact2.prototype, NESTED_CLOUD_ASSEMBLY_SYM, {
      value: true,
      enumerable: false,
      writable: false
    });
  }
});

// ../../node_modules/@aws-cdk/cx-api/lib/artifacts/tree-cloud-artifact.js
var require_tree_cloud_artifact = __commonJS({
  "../../node_modules/@aws-cdk/cx-api/lib/artifacts/tree-cloud-artifact.js"(exports2) {
    "use strict";
    var _a2;
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.TreeCloudArtifact = void 0;
    var jsiiDeprecationWarnings = require_warnings_jsii();
    var JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
    var cloud_artifact_1 = require_cloud_artifact();
    var error_1 = require_error();
    var TREE_CLOUD_ARTIFACT_SYM = Symbol.for("@aws-cdk/cx-api.TreeCloudArtifact");
    var TreeCloudArtifact = class _TreeCloudArtifact extends cloud_artifact_1.CloudArtifact {
      static {
        __name(this, "TreeCloudArtifact");
      }
      /**
       * Checks if `art` is an instance of this class.
       *
       * Use this method instead of `instanceof` to properly detect `TreeCloudArtifact`
       * instances, even when the construct library is symlinked.
       *
       * Explanation: in JavaScript, multiple copies of the `cx-api` library on
       * disk are seen as independent, completely different libraries. As a
       * consequence, the class `TreeCloudArtifact` in each copy of the `cx-api` library
       * is seen as a different class, and an instance of one class will not test as
       * `instanceof` the other class. `npm install` will not create installations
       * like this, but users may manually symlink construct libraries together or
       * use a monorepo tool: in those cases, multiple copies of the `cx-api`
       * library can be accidentally installed, and `instanceof` will behave
       * unpredictably. It is safest to avoid using `instanceof`, and using
       * this type-testing method instead.
       */
      static isTreeCloudArtifact(art) {
        return art && typeof art === "object" && art[TREE_CLOUD_ARTIFACT_SYM];
      }
      constructor(assembly, name, artifact) {
        super(assembly, name, artifact);
        try {
          jsiiDeprecationWarnings._aws_cdk_cx_api_CloudAssembly(assembly);
        } catch (error5) {
          if (process.env.JSII_DEBUG !== "1" && error5.name === "DeprecationError") {
            Error.captureStackTrace(error5, _TreeCloudArtifact);
          }
          throw error5;
        }
        const properties = this.manifest.properties || {};
        if (!properties.file) {
          throw new error_1.CloudAssemblyError('Invalid TreeCloudArtifact. Missing "file" property');
        }
        this.file = properties.file;
      }
    };
    exports2.TreeCloudArtifact = TreeCloudArtifact;
    _a2 = JSII_RTTI_SYMBOL_1;
    TreeCloudArtifact[_a2] = { fqn: "@aws-cdk/cx-api.TreeCloudArtifact", version: "2.213.0" };
    Object.defineProperty(TreeCloudArtifact.prototype, TREE_CLOUD_ARTIFACT_SYM, {
      value: true,
      enumerable: false,
      writable: false
    });
  }
});

// ../../node_modules/@aws-cdk/cx-api/lib/cloud-artifact-aug.js
var require_cloud_artifact_aug = __commonJS({
  "../../node_modules/@aws-cdk/cx-api/lib/cloud-artifact-aug.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    var asset_manifest_artifact_1 = require_asset_manifest_artifact();
    var cloudformation_artifact_1 = require_cloudformation_artifact();
    var nested_cloud_assembly_artifact_1 = require_nested_cloud_assembly_artifact();
    var tree_cloud_artifact_1 = require_tree_cloud_artifact();
    var cloud_artifact_1 = require_cloud_artifact();
    var cxschema8 = require_lib2();
    cloud_artifact_1.CloudArtifact.fromManifest = /* @__PURE__ */ __name(function fromManifest(assembly, id, artifact) {
      switch (artifact.type) {
        case cxschema8.ArtifactType.AWS_CLOUDFORMATION_STACK:
          return new cloudformation_artifact_1.CloudFormationStackArtifact(assembly, id, artifact);
        case cxschema8.ArtifactType.CDK_TREE:
          return new tree_cloud_artifact_1.TreeCloudArtifact(assembly, id, artifact);
        case cxschema8.ArtifactType.ASSET_MANIFEST:
          return new asset_manifest_artifact_1.AssetManifestArtifact(assembly, id, artifact);
        case cxschema8.ArtifactType.NESTED_CLOUD_ASSEMBLY:
          return new nested_cloud_assembly_artifact_1.NestedCloudAssemblyArtifact(assembly, id, artifact);
        default:
          return void 0;
      }
    }, "fromManifest");
  }
});

// ../../node_modules/@aws-cdk/cx-api/lib/toposort.js
var require_toposort = __commonJS({
  "../../node_modules/@aws-cdk/cx-api/lib/toposort.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.topologicalSort = topologicalSort;
    var error_1 = require_error();
    function topologicalSort(xs, keyFn, depFn) {
      const remaining = /* @__PURE__ */ new Map();
      for (const element of xs) {
        const key = keyFn(element);
        remaining.set(key, { key, element, dependencies: depFn(element) });
      }
      const ret = new Array();
      while (remaining.size > 0) {
        const selectable = Array.from(remaining.values()).filter((e3) => e3.dependencies.every((d3) => !remaining.has(d3)));
        selectable.sort((a3, b3) => a3.key < b3.key ? -1 : b3.key < a3.key ? 1 : 0);
        for (const selected of selectable) {
          ret.push(selected.element);
          remaining.delete(selected.key);
        }
        if (selectable.length === 0) {
          throw new error_1.CloudAssemblyError(`Could not determine ordering between: ${Array.from(remaining.keys()).join(", ")}`);
        }
      }
      return ret;
    }
    __name(topologicalSort, "topologicalSort");
  }
});

// ../../node_modules/@aws-cdk/cx-api/lib/cloud-assembly.js
var require_cloud_assembly = __commonJS({
  "../../node_modules/@aws-cdk/cx-api/lib/cloud-assembly.js"(exports2) {
    "use strict";
    var _a2;
    var _b;
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.CloudAssemblyBuilder = exports2.CloudAssembly = void 0;
    var jsiiDeprecationWarnings = require_warnings_jsii();
    var JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
    var fs43 = require("fs");
    var os13 = require("os");
    var path38 = require("path");
    var cloudformation_artifact_1 = require_cloudformation_artifact();
    var nested_cloud_assembly_artifact_1 = require_nested_cloud_assembly_artifact();
    var tree_cloud_artifact_1 = require_tree_cloud_artifact();
    var cloud_artifact_1 = require_cloud_artifact();
    var toposort_1 = require_toposort();
    var cxschema8 = require_lib2();
    var error_1 = require_error();
    var CLOUD_ASSEMBLY_SYMBOL = Symbol.for("@aws-cdk/cx-api.CloudAssembly");
    var MANIFEST_FILE = "manifest.json";
    var CloudAssembly6 = class {
      static {
        __name(this, "CloudAssembly");
      }
      /**
       * Return whether the given object is a CloudAssembly.
       *
       * We do attribute detection since we can't reliably use 'instanceof'.
       */
      static isCloudAssembly(x3) {
        return x3 !== null && typeof x3 === "object" && CLOUD_ASSEMBLY_SYMBOL in x3;
      }
      /**
       * Reads a cloud assembly from the specified directory.
       * @param directory The root directory of the assembly.
       */
      constructor(directory, loadOptions) {
        this.directory = directory;
        this.manifest = cxschema8.Manifest.loadAssemblyManifest(path38.join(directory, MANIFEST_FILE), loadOptions);
        this.version = this.manifest.version;
        this.artifacts = this.renderArtifacts(loadOptions?.topoSort ?? true);
        this.runtime = this.manifest.runtime || { libraries: {} };
        Object.defineProperty(this, CLOUD_ASSEMBLY_SYMBOL, { value: true });
        this.validateDeps();
      }
      /**
       * Attempts to find an artifact with a specific identity.
       * @returns A `CloudArtifact` object or `undefined` if the artifact does not exist in this assembly.
       * @param id The artifact ID
       */
      tryGetArtifact(id) {
        return this.artifacts.find((a3) => a3.id === id);
      }
      /**
       * Returns a CloudFormation stack artifact from this assembly.
       *
       * Will only search the current assembly.
       *
       * @param stackName the name of the CloudFormation stack.
       * @throws if there is no stack artifact by that name
       * @throws if there is more than one stack with the same stack name. You can
       * use `getStackArtifact(stack.artifactId)` instead.
       * @returns a `CloudFormationStackArtifact` object.
       */
      getStackByName(stackName) {
        const artifacts = this.artifacts.filter((a3) => a3 instanceof cloudformation_artifact_1.CloudFormationStackArtifact && a3.stackName === stackName);
        if (!artifacts || artifacts.length === 0) {
          throw new error_1.CloudAssemblyError(`Unable to find stack with stack name "${stackName}"`);
        }
        if (artifacts.length > 1) {
          throw new error_1.CloudAssemblyError(`There are multiple stacks with the stack name "${stackName}" (${artifacts.map((a3) => a3.id).join(",")}). Use "getStackArtifact(id)" instead`);
        }
        return artifacts[0];
      }
      /**
       * Returns a CloudFormation stack artifact by name from this assembly.
       * @deprecated renamed to `getStackByName` (or `getStackArtifact(id)`)
       */
      getStack(stackName) {
        try {
          jsiiDeprecationWarnings.print("@aws-cdk/cx-api.CloudAssembly#getStack", "renamed to `getStackByName` (or `getStackArtifact(id)`)");
        } catch (error5) {
          if (process.env.JSII_DEBUG !== "1" && error5.name === "DeprecationError") {
            Error.captureStackTrace(error5, this.getStack);
          }
          throw error5;
        }
        return this.getStackByName(stackName);
      }
      /**
       * Returns a CloudFormation stack artifact from this assembly.
       *
       * @param artifactId the artifact id of the stack (can be obtained through `stack.artifactId`).
       * @throws if there is no stack artifact with that id
       * @returns a `CloudFormationStackArtifact` object.
       */
      getStackArtifact(artifactId) {
        const artifact = this.tryGetArtifactRecursively(artifactId);
        if (!artifact) {
          throw new error_1.CloudAssemblyError(`Unable to find artifact with id "${artifactId}"`);
        }
        if (!(artifact instanceof cloudformation_artifact_1.CloudFormationStackArtifact)) {
          throw new error_1.CloudAssemblyError(`Artifact ${artifactId} is not a CloudFormation stack`);
        }
        return artifact;
      }
      tryGetArtifactRecursively(artifactId) {
        return this.stacksRecursively.find((a3) => a3.id === artifactId);
      }
      /**
       * Returns all the stacks, including the ones in nested assemblies
       */
      get stacksRecursively() {
        function search(stackArtifacts, assemblies) {
          if (assemblies.length === 0) {
            return stackArtifacts;
          }
          const [head, ...tail] = assemblies;
          const nestedAssemblies = head.nestedAssemblies.map((asm) => asm.nestedAssembly);
          return search(stackArtifacts.concat(head.stacks), tail.concat(nestedAssemblies));
        }
        __name(search, "search");
        return search([], [this]);
      }
      /**
       * Returns a nested assembly artifact.
       *
       * @param artifactId The artifact ID of the nested assembly
       */
      getNestedAssemblyArtifact(artifactId) {
        const artifact = this.tryGetArtifact(artifactId);
        if (!artifact) {
          throw new error_1.CloudAssemblyError(`Unable to find artifact with id "${artifactId}"`);
        }
        if (!(artifact instanceof nested_cloud_assembly_artifact_1.NestedCloudAssemblyArtifact)) {
          throw new error_1.CloudAssemblyError(`Found artifact '${artifactId}' but it's not a nested cloud assembly`);
        }
        return artifact;
      }
      /**
       * Returns a nested assembly.
       *
       * @param artifactId The artifact ID of the nested assembly
       */
      getNestedAssembly(artifactId) {
        return this.getNestedAssemblyArtifact(artifactId).nestedAssembly;
      }
      /**
       * Returns the tree metadata artifact from this assembly.
       * @throws if there is no metadata artifact by that name
       * @returns a `TreeCloudArtifact` object if there is one defined in the manifest, `undefined` otherwise.
       */
      tree() {
        const trees = this.artifacts.filter((a3) => a3.manifest.type === cxschema8.ArtifactType.CDK_TREE);
        if (trees.length === 0) {
          return void 0;
        } else if (trees.length > 1) {
          throw new error_1.CloudAssemblyError(`Multiple artifacts of type ${cxschema8.ArtifactType.CDK_TREE} found in manifest`);
        }
        const tree = trees[0];
        if (!(tree instanceof tree_cloud_artifact_1.TreeCloudArtifact)) {
          throw new error_1.CloudAssemblyError('"Tree" artifact is not of expected type');
        }
        return tree;
      }
      /**
       * @returns all the CloudFormation stack artifacts that are included in this assembly.
       */
      get stacks() {
        return this.artifacts.filter(isCloudFormationStackArtifact);
        function isCloudFormationStackArtifact(x3) {
          return x3 instanceof cloudformation_artifact_1.CloudFormationStackArtifact;
        }
        __name(isCloudFormationStackArtifact, "isCloudFormationStackArtifact");
      }
      /**
       * The nested assembly artifacts in this assembly
       */
      get nestedAssemblies() {
        return this.artifacts.filter(isNestedCloudAssemblyArtifact);
        function isNestedCloudAssemblyArtifact(x3) {
          return x3 instanceof nested_cloud_assembly_artifact_1.NestedCloudAssemblyArtifact;
        }
        __name(isNestedCloudAssemblyArtifact, "isNestedCloudAssemblyArtifact");
      }
      validateDeps() {
        for (const artifact of this.artifacts) {
          ignore(artifact.dependencies);
        }
      }
      renderArtifacts(topoSort) {
        const result2 = new Array();
        for (const [name, artifact] of Object.entries(this.manifest.artifacts || {})) {
          const cloudartifact = cloud_artifact_1.CloudArtifact.fromManifest(this, name, artifact);
          if (cloudartifact) {
            result2.push(cloudartifact);
          }
        }
        return topoSort ? (0, toposort_1.topologicalSort)(result2, (x3) => x3.id, (x3) => x3._dependencyIDs) : result2;
      }
    };
    exports2.CloudAssembly = CloudAssembly6;
    _a2 = JSII_RTTI_SYMBOL_1;
    CloudAssembly6[_a2] = { fqn: "@aws-cdk/cx-api.CloudAssembly", version: "2.213.0" };
    var CloudAssemblyBuilder2 = class _CloudAssemblyBuilder {
      static {
        __name(this, "CloudAssemblyBuilder");
      }
      /**
       * Initializes a cloud assembly builder.
       * @param outdir The output directory, uses temporary directory if undefined
       */
      constructor(outdir, props = {}) {
        this.artifacts = {};
        this.missing = new Array();
        try {
          jsiiDeprecationWarnings._aws_cdk_cx_api_CloudAssemblyBuilderProps(props);
        } catch (error5) {
          if (process.env.JSII_DEBUG !== "1" && error5.name === "DeprecationError") {
            Error.captureStackTrace(error5, _CloudAssemblyBuilder);
          }
          throw error5;
        }
        this.outdir = determineOutputDirectory(outdir);
        this.assetOutdir = props.assetOutdir ?? this.outdir;
        this.parentBuilder = props.parentBuilder;
        ensureDirSync(this.outdir);
      }
      /**
       * Adds an artifact into the cloud assembly.
       * @param id The ID of the artifact.
       * @param manifest The artifact manifest
       */
      addArtifact(id, manifest) {
        this.artifacts[id] = filterUndefined(manifest);
      }
      /**
       * Reports that some context is missing in order for this cloud assembly to be fully synthesized.
       * @param missing Missing context information.
       */
      addMissing(missing) {
        if (this.missing.every((m3) => m3.key !== missing.key)) {
          this.missing.push(missing);
        }
        this.parentBuilder?.addMissing(missing);
      }
      /**
       * Finalizes the cloud assembly into the output directory returns a
       * `CloudAssembly` object that can be used to inspect the assembly.
       */
      buildAssembly(options = {}) {
        try {
          jsiiDeprecationWarnings._aws_cdk_cx_api_AssemblyBuildOptions(options);
        } catch (error5) {
          if (process.env.JSII_DEBUG !== "1" && error5.name === "DeprecationError") {
            Error.captureStackTrace(error5, this.buildAssembly);
          }
          throw error5;
        }
        let manifest = {
          version: cxschema8.Manifest.version(),
          artifacts: this.artifacts,
          runtime: options.runtimeInfo,
          missing: this.missing.length > 0 ? this.missing : void 0
        };
        manifest = filterUndefined(manifest);
        const manifestFilePath = path38.join(this.outdir, MANIFEST_FILE);
        cxschema8.Manifest.saveAssemblyManifest(manifest, manifestFilePath);
        fs43.writeFileSync(path38.join(this.outdir, "cdk.out"), JSON.stringify({ version: manifest.version }));
        return new CloudAssembly6(this.outdir);
      }
      /**
       * Creates a nested cloud assembly
       */
      createNestedAssembly(artifactId, displayName) {
        const directoryName = artifactId;
        const innerAsmDir = path38.join(this.outdir, directoryName);
        this.addArtifact(artifactId, {
          type: cxschema8.ArtifactType.NESTED_CLOUD_ASSEMBLY,
          properties: {
            directoryName,
            displayName
          }
        });
        return new _CloudAssemblyBuilder(innerAsmDir, {
          // Reuse the same asset output directory as the current Casm builder
          assetOutdir: this.assetOutdir,
          parentBuilder: this
        });
      }
      /**
       * Delete the cloud assembly directory
       */
      delete() {
        fs43.rmSync(this.outdir, { recursive: true, force: true });
      }
    };
    exports2.CloudAssemblyBuilder = CloudAssemblyBuilder2;
    _b = JSII_RTTI_SYMBOL_1;
    CloudAssemblyBuilder2[_b] = { fqn: "@aws-cdk/cx-api.CloudAssemblyBuilder", version: "2.213.0" };
    function filterUndefined(obj) {
      if (Array.isArray(obj)) {
        return obj.filter((x3) => x3 !== void 0).map((x3) => filterUndefined(x3));
      }
      if (typeof obj === "object") {
        const ret = {};
        for (const [key, value] of Object.entries(obj)) {
          if (value === void 0) {
            continue;
          }
          ret[key] = filterUndefined(value);
        }
        return ret;
      }
      return obj;
    }
    __name(filterUndefined, "filterUndefined");
    function ignore(_x) {
      return;
    }
    __name(ignore, "ignore");
    function determineOutputDirectory(outdir) {
      return outdir ?? fs43.mkdtempSync(path38.join(fs43.realpathSync(os13.tmpdir()), "cdk.out"));
    }
    __name(determineOutputDirectory, "determineOutputDirectory");
    function ensureDirSync(dir) {
      if (fs43.existsSync(dir)) {
        if (!fs43.statSync(dir).isDirectory()) {
          throw new error_1.CloudAssemblyError(`${dir} must be a directory`);
        }
      } else {
        fs43.mkdirSync(dir, { recursive: true });
      }
    }
    __name(ensureDirSync, "ensureDirSync");
  }
});

// ../../node_modules/@aws-cdk/cx-api/lib/artifacts/nested-cloud-assembly-artifact-aug.js
var require_nested_cloud_assembly_artifact_aug = __commonJS({
  "../../node_modules/@aws-cdk/cx-api/lib/artifacts/nested-cloud-assembly-artifact-aug.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    var nested_cloud_assembly_artifact_1 = require_nested_cloud_assembly_artifact();
    var cloud_assembly_1 = require_cloud_assembly();
    var cacheSym = Symbol();
    Object.defineProperty(nested_cloud_assembly_artifact_1.NestedCloudAssemblyArtifact.prototype, "nestedAssembly", {
      get() {
        if (!this[cacheSym]) {
          this[cacheSym] = new cloud_assembly_1.CloudAssembly(this.fullPath);
        }
        return this[cacheSym];
      }
    });
  }
});

// ../../node_modules/@aws-cdk/cx-api/lib/assets.js
var require_assets = __commonJS({
  "../../node_modules/@aws-cdk/cx-api/lib/assets.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.ASSET_PREFIX_SEPARATOR = exports2.ASSET_RESOURCE_METADATA_DOCKER_CACHE_DISABLED_KEY = exports2.ASSET_RESOURCE_METADATA_DOCKER_CACHE_TO_KEY = exports2.ASSET_RESOURCE_METADATA_DOCKER_CACHE_FROM_KEY = exports2.ASSET_RESOURCE_METADATA_DOCKER_OUTPUTS_KEY = exports2.ASSET_RESOURCE_METADATA_IS_BUNDLED_KEY = exports2.ASSET_RESOURCE_METADATA_PROPERTY_KEY = exports2.ASSET_RESOURCE_METADATA_DOCKER_BUILD_TARGET_KEY = exports2.ASSET_RESOURCE_METADATA_DOCKER_BUILD_SSH_KEY = exports2.ASSET_RESOURCE_METADATA_DOCKER_BUILD_SECRETS_KEY = exports2.ASSET_RESOURCE_METADATA_DOCKER_BUILD_ARGS_KEY = exports2.ASSET_RESOURCE_METADATA_DOCKERFILE_PATH_KEY = exports2.ASSET_RESOURCE_METADATA_PATH_KEY = exports2.ASSET_RESOURCE_METADATA_ENABLED_CONTEXT = void 0;
    exports2.ASSET_RESOURCE_METADATA_ENABLED_CONTEXT = "aws:cdk:enable-asset-metadata";
    exports2.ASSET_RESOURCE_METADATA_PATH_KEY = "aws:asset:path";
    exports2.ASSET_RESOURCE_METADATA_DOCKERFILE_PATH_KEY = "aws:asset:dockerfile-path";
    exports2.ASSET_RESOURCE_METADATA_DOCKER_BUILD_ARGS_KEY = "aws:asset:docker-build-args";
    exports2.ASSET_RESOURCE_METADATA_DOCKER_BUILD_SECRETS_KEY = "aws:asset:docker-build-secrets";
    exports2.ASSET_RESOURCE_METADATA_DOCKER_BUILD_SSH_KEY = "aws:asset:docker-build-ssh";
    exports2.ASSET_RESOURCE_METADATA_DOCKER_BUILD_TARGET_KEY = "aws:asset:docker-build-target";
    exports2.ASSET_RESOURCE_METADATA_PROPERTY_KEY = "aws:asset:property";
    exports2.ASSET_RESOURCE_METADATA_IS_BUNDLED_KEY = "aws:asset:is-bundled";
    exports2.ASSET_RESOURCE_METADATA_DOCKER_OUTPUTS_KEY = "aws:asset:docker-outputs";
    exports2.ASSET_RESOURCE_METADATA_DOCKER_CACHE_FROM_KEY = "aws:asset:docker-cache-from";
    exports2.ASSET_RESOURCE_METADATA_DOCKER_CACHE_TO_KEY = "aws:asset:docker-cache-to";
    exports2.ASSET_RESOURCE_METADATA_DOCKER_CACHE_DISABLED_KEY = "aws:asset:docker-cache-disabled";
    exports2.ASSET_PREFIX_SEPARATOR = "||";
  }
});

// ../../node_modules/@aws-cdk/cx-api/lib/private/flag-modeling.js
var require_flag_modeling = __commonJS({
  "../../node_modules/@aws-cdk/cx-api/lib/private/flag-modeling.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.MAGIC_V2NEXT = exports2.FlagType = void 0;
    exports2.compareVersions = compareVersions;
    var FlagType;
    (function(FlagType2) {
      FlagType2[FlagType2["ApiDefault"] = 0] = "ApiDefault";
      FlagType2[FlagType2["BugFix"] = 1] = "BugFix";
      FlagType2[FlagType2["VisibleContext"] = 2] = "VisibleContext";
      FlagType2[FlagType2["Temporary"] = 3] = "Temporary";
    })(FlagType || (exports2.FlagType = FlagType = {}));
    exports2.MAGIC_V2NEXT = "V2NEXT";
    function compareVersions(a3, b3) {
      if (a3 === b3) {
        return 0;
      }
      if (a3 === void 0) {
        return -1;
      }
      if (b3 === void 0) {
        return 1;
      }
      const as = a3.split(".").map((x3) => parseInt(x3, 10));
      const bs = b3.split(".").map((x3) => parseInt(x3, 10));
      if (a3 === exports2.MAGIC_V2NEXT) {
        return bs[0] <= 2 ? 1 : -1;
      }
      if (b3 === exports2.MAGIC_V2NEXT) {
        return as[0] <= 2 ? -1 : 1;
      }
      for (let i3 = 0; i3 < Math.min(as.length, bs.length); i3++) {
        if (as[i3] < bs[i3]) {
          return -1;
        }
        if (as[i3] > bs[i3]) {
          return 1;
        }
      }
      return as.length - bs.length;
    }
    __name(compareVersions, "compareVersions");
  }
});

// ../../node_modules/@aws-cdk/cx-api/lib/features.js
var require_features = __commonJS({
  "../../node_modules/@aws-cdk/cx-api/lib/features.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.ENABLE_OPENSEARCH_MULTIAZ_WITH_STANDBY = exports2.AUTOSCALING_GENERATE_LAUNCH_TEMPLATE = exports2.EFS_MOUNTTARGET_ORDERINSENSITIVE_LOGICAL_ID = exports2.EFS_DENY_ANONYMOUS_ACCESS = exports2.KMS_APPLY_IMPORTED_ALIAS_PERMISSIONS_TO_PRINCIPAL = exports2.KMS_ALIAS_NAME_REF = exports2.INCLUDE_PREFIX_IN_UNIQUE_NAME_GENERATION = exports2.APIGATEWAY_REQUEST_VALIDATOR_UNIQUE_ID = exports2.EC2_RESTRICT_DEFAULT_SECURITY_GROUP = exports2.ENABLE_EMR_SERVICE_POLICY_V2 = exports2.REDSHIFT_COLUMN_ID = exports2.SECRETS_MANAGER_TARGET_ATTACHMENT_RESOURCE_POLICY = exports2.EC2_LAUNCH_TEMPLATE_DEFAULT_USER_DATA = exports2.APIGATEWAY_AUTHORIZER_CHANGE_DEPLOYMENT_LOGICAL_ID = exports2.CODEDEPLOY_REMOVE_ALARMS_FROM_DEPLOYMENT_GROUP = exports2.DATABASE_PROXY_UNIQUE_RESOURCE_NAME = exports2.AWS_CUSTOM_RESOURCE_LATEST_SDK_DEFAULT = exports2.ROUTE53_PATTERNS_USE_CERTIFICATE = exports2.S3_SERVER_ACCESS_LOGS_USE_BUCKET_POLICY = exports2.ECS_DISABLE_EXPLICIT_DEPLOYMENT_CONTROLLER_FOR_CIRCUIT_BREAKER = exports2.EVENTS_TARGET_QUEUE_SAME_ACCOUNT = exports2.ENABLE_PARTITION_LITERALS = exports2.APIGATEWAY_DISABLE_CLOUDWATCH_ROLE = exports2.SNS_SUBSCRIPTIONS_SQS_DECRYPTION_POLICY = exports2.S3_CREATE_DEFAULT_LOGGING_POLICY = exports2.CODEPIPELINE_CROSS_ACCOUNT_KEY_ALIAS_STACK_SAFE_RESOURCE_NAME = exports2.VALIDATE_SNAPSHOT_REMOVAL_POLICY = exports2.IAM_IMPORTED_ROLE_STACK_SAFE_DEFAULT_POLICY_NAME = exports2.IAM_MINIMIZE_POLICIES = exports2.ECS_ARN_FORMAT_INCLUDES_CLUSTER_NAME = exports2.EC2_UNIQUE_IMDSV2_LAUNCH_TEMPLATE_NAME = exports2.ECS_SERVICE_EXTENSIONS_ENABLE_DEFAULT_LOG_DRIVER = exports2.TARGET_PARTITIONS = exports2.CHECK_SECRET_USAGE = exports2.CLOUDFRONT_DEFAULT_SECURITY_POLICY_TLS_V1_2_2021 = exports2.LAMBDA_RECOGNIZE_LAYER_VERSION = exports2.LAMBDA_RECOGNIZE_VERSION_PROPS = exports2.EFS_DEFAULT_ENCRYPTION_AT_REST = exports2.APIGATEWAY_USAGEPLANKEY_ORDERINSENSITIVE_ID = exports2.RDS_LOWERCASE_DB_IDENTIFIER = exports2.ECS_REMOVE_DEFAULT_DESIRED_COUNT = exports2.S3_GRANT_WRITE_WITHOUT_ACL = exports2.KMS_DEFAULT_KEY_POLICIES = exports2.SECRETS_MANAGER_PARSE_OWNED_SECRET_NAME = exports2.DOCKER_IGNORE_SUPPORT = exports2.STACK_RELATIVE_EXPORTS_CONTEXT = exports2.NEW_STYLE_STACK_SYNTHESIS_CONTEXT = exports2.ENABLE_DIFF_NO_FAIL = exports2.ENABLE_DIFF_NO_FAIL_CONTEXT = exports2.ENABLE_STACK_NAME_DUPLICATES_CONTEXT = void 0;
    exports2.CURRENT_MV = exports2.FLAGS = exports2.USE_CDK_MANAGED_LAMBDA_LOGGROUP = exports2.S3_PUBLIC_ACCESS_BLOCKED_BY_DEFAULT = exports2.USE_RESOURCEID_FOR_VPCV2_MIGRATION = exports2.EC2_REQUIRE_PRIVATE_SUBNETS_FOR_EGRESSONLYINTERNETGATEWAY = exports2.S3_TRUST_KEY_POLICY_FOR_SNS_SUBSCRIPTIONS = exports2.PIPELINE_REDUCE_CROSS_ACCOUNT_ACTION_ROLE_TRUST_SCOPE = exports2.LOG_USER_POOL_CLIENT_SECRET_VALUE = exports2.DYNAMODB_TABLE_RETAIN_TABLE_REPLICA = exports2.ASPECT_PRIORITIES_MUTATING = exports2.EVENTBUS_POLICY_SID_REQUIRED = exports2.PIPELINE_REDUCE_STAGE_ROLE_TRUST_SCOPE = exports2.SET_UNIQUE_REPLICATION_ROLE_NAME = exports2.LAMBDA_CREATE_NEW_POLICIES_WITH_ADDTOROLEPOLICY = exports2.ENABLE_ADDITIONAL_METADATA_COLLECTION = exports2.IAM_OIDC_REJECT_UNAUTHORIZED_CONNECTIONS = exports2.ALB_DUALSTACK_WITHOUT_PUBLIC_IPV4_SECURITY_GROUP_RULES_DEFAULT = exports2.Disable_ECS_IMDS_Blocking = exports2.Enable_IMDS_Blocking_Deprecated_Feature = exports2.USER_POOL_DOMAIN_NAME_METHOD_WITHOUT_CUSTOM_RESOURCE = exports2.SIGNER_PROFILE_NAME_PASSED_TO_CFN = exports2.ASPECT_STABILIZATION = exports2.BASTION_HOST_USE_AMAZON_LINUX_2023_BY_DEFAULT = exports2.STEPFUNCTIONS_USE_DISTRIBUTED_MAP_RESULT_WRITER_V2 = exports2.STEPFUNCTIONS_TASKS_FIX_RUN_ECS_TASK_POLICY = exports2.LAMBDA_NODEJS_SDK_V3_EXCLUDE_SMITHY_PACKAGES = exports2.CFN_INCLUDE_REJECT_COMPLEX_RESOURCE_UPDATE_CREATE_POLICY_INTRINSICS = exports2.USE_CORRECT_VALUE_FOR_INSTANCE_RESOURCE_ID_PROPERTY = exports2.APPSYNC_GRAPHQLAPI_SCOPE_LAMBDA_FUNCTION_PERMISSION = exports2.EC2_SUM_TIMEOUT_ENABLED = exports2.DYNAMODB_TABLEV2_RESOURCE_POLICY_PER_REPLICA = exports2.REDUCE_EC2_FARGATE_CLOUDWATCH_PERMISSIONS = exports2.EXPLICIT_STACK_TAGS = exports2.USE_NEW_S3URI_PARAMETERS_FOR_BEDROCK_INVOKE_MODEL_TASK = exports2.S3_KEEP_NOTIFICATION_IN_IMPORTED_BUCKET = exports2.LOG_API_RESPONSE_DATA_PROPERTY_TRUE_DEFAULT = exports2.ECS_REMOVE_DEFAULT_DEPLOYMENT_ALARM = exports2.EBS_DEFAULT_GP3 = exports2.EKS_NODEGROUP_NAME = exports2.PIPELINE_REDUCE_ASSET_ROLE_TRUST_SCOPE = exports2.KMS_REDUCE_CROSS_ACCOUNT_REGION_POLICY_SCOPE = exports2.CODEPIPELINE_DEFAULT_PIPELINE_TYPE_TO_V2 = exports2.CODEPIPELINE_CROSS_ACCOUNT_KEYS_DEFAULT_VALUE_TO_FALSE = exports2.LAMBDA_PERMISSION_LOGICAL_ID_FOR_LAMBDA_ACTION = exports2.CODECOMMIT_SOURCE_ACTION_DEFAULT_BRANCH_NAME = exports2.APPSYNC_ENABLE_USE_ARN_IDENTIFIER_SOURCE_API_ASSOCIATION = exports2.AURORA_CLUSTER_CHANGE_SCOPE_OF_INSTANCE_PARAMETER_GROUP_WITH_EACH_PARAMETERS = exports2.RDS_PREVENT_RENDERING_DEPRECATED_CREDENTIALS = exports2.LAMBDA_NODEJS_USE_LATEST_RUNTIME = void 0;
    exports2.NEW_PROJECT_DEFAULT_CONTEXT = exports2.FUTURE_FLAGS = exports2.FUTURE_FLAGS_EXPIRED = exports2.CURRENT_VERSION_FLAG_DEFAULTS = exports2.CURRENTLY_RECOMMENDED_FLAGS = exports2.CURRENT_VERSION_EXPIRED_FLAGS = void 0;
    exports2.futureFlagDefault = futureFlagDefault2;
    var flag_modeling_1 = require_flag_modeling();
    exports2.ENABLE_STACK_NAME_DUPLICATES_CONTEXT = "@aws-cdk/core:enableStackNameDuplicates";
    exports2.ENABLE_DIFF_NO_FAIL_CONTEXT = "aws-cdk:enableDiffNoFail";
    exports2.ENABLE_DIFF_NO_FAIL = exports2.ENABLE_DIFF_NO_FAIL_CONTEXT;
    exports2.NEW_STYLE_STACK_SYNTHESIS_CONTEXT = "@aws-cdk/core:newStyleStackSynthesis";
    exports2.STACK_RELATIVE_EXPORTS_CONTEXT = "@aws-cdk/core:stackRelativeExports";
    exports2.DOCKER_IGNORE_SUPPORT = "@aws-cdk/aws-ecr-assets:dockerIgnoreSupport";
    exports2.SECRETS_MANAGER_PARSE_OWNED_SECRET_NAME = "@aws-cdk/aws-secretsmanager:parseOwnedSecretName";
    exports2.KMS_DEFAULT_KEY_POLICIES = "@aws-cdk/aws-kms:defaultKeyPolicies";
    exports2.S3_GRANT_WRITE_WITHOUT_ACL = "@aws-cdk/aws-s3:grantWriteWithoutAcl";
    exports2.ECS_REMOVE_DEFAULT_DESIRED_COUNT = "@aws-cdk/aws-ecs-patterns:removeDefaultDesiredCount";
    exports2.RDS_LOWERCASE_DB_IDENTIFIER = "@aws-cdk/aws-rds:lowercaseDbIdentifier";
    exports2.APIGATEWAY_USAGEPLANKEY_ORDERINSENSITIVE_ID = "@aws-cdk/aws-apigateway:usagePlanKeyOrderInsensitiveId";
    exports2.EFS_DEFAULT_ENCRYPTION_AT_REST = "@aws-cdk/aws-efs:defaultEncryptionAtRest";
    exports2.LAMBDA_RECOGNIZE_VERSION_PROPS = "@aws-cdk/aws-lambda:recognizeVersionProps";
    exports2.LAMBDA_RECOGNIZE_LAYER_VERSION = "@aws-cdk/aws-lambda:recognizeLayerVersion";
    exports2.CLOUDFRONT_DEFAULT_SECURITY_POLICY_TLS_V1_2_2021 = "@aws-cdk/aws-cloudfront:defaultSecurityPolicyTLSv1.2_2021";
    exports2.CHECK_SECRET_USAGE = "@aws-cdk/core:checkSecretUsage";
    exports2.TARGET_PARTITIONS = "@aws-cdk/core:target-partitions";
    exports2.ECS_SERVICE_EXTENSIONS_ENABLE_DEFAULT_LOG_DRIVER = "@aws-cdk-containers/ecs-service-extensions:enableDefaultLogDriver";
    exports2.EC2_UNIQUE_IMDSV2_LAUNCH_TEMPLATE_NAME = "@aws-cdk/aws-ec2:uniqueImdsv2TemplateName";
    exports2.ECS_ARN_FORMAT_INCLUDES_CLUSTER_NAME = "@aws-cdk/aws-ecs:arnFormatIncludesClusterName";
    exports2.IAM_MINIMIZE_POLICIES = "@aws-cdk/aws-iam:minimizePolicies";
    exports2.IAM_IMPORTED_ROLE_STACK_SAFE_DEFAULT_POLICY_NAME = "@aws-cdk/aws-iam:importedRoleStackSafeDefaultPolicyName";
    exports2.VALIDATE_SNAPSHOT_REMOVAL_POLICY = "@aws-cdk/core:validateSnapshotRemovalPolicy";
    exports2.CODEPIPELINE_CROSS_ACCOUNT_KEY_ALIAS_STACK_SAFE_RESOURCE_NAME = "@aws-cdk/aws-codepipeline:crossAccountKeyAliasStackSafeResourceName";
    exports2.S3_CREATE_DEFAULT_LOGGING_POLICY = "@aws-cdk/aws-s3:createDefaultLoggingPolicy";
    exports2.SNS_SUBSCRIPTIONS_SQS_DECRYPTION_POLICY = "@aws-cdk/aws-sns-subscriptions:restrictSqsDescryption";
    exports2.APIGATEWAY_DISABLE_CLOUDWATCH_ROLE = "@aws-cdk/aws-apigateway:disableCloudWatchRole";
    exports2.ENABLE_PARTITION_LITERALS = "@aws-cdk/core:enablePartitionLiterals";
    exports2.EVENTS_TARGET_QUEUE_SAME_ACCOUNT = "@aws-cdk/aws-events:eventsTargetQueueSameAccount";
    exports2.ECS_DISABLE_EXPLICIT_DEPLOYMENT_CONTROLLER_FOR_CIRCUIT_BREAKER = "@aws-cdk/aws-ecs:disableExplicitDeploymentControllerForCircuitBreaker";
    exports2.S3_SERVER_ACCESS_LOGS_USE_BUCKET_POLICY = "@aws-cdk/aws-s3:serverAccessLogsUseBucketPolicy";
    exports2.ROUTE53_PATTERNS_USE_CERTIFICATE = "@aws-cdk/aws-route53-patters:useCertificate";
    exports2.AWS_CUSTOM_RESOURCE_LATEST_SDK_DEFAULT = "@aws-cdk/customresources:installLatestAwsSdkDefault";
    exports2.DATABASE_PROXY_UNIQUE_RESOURCE_NAME = "@aws-cdk/aws-rds:databaseProxyUniqueResourceName";
    exports2.CODEDEPLOY_REMOVE_ALARMS_FROM_DEPLOYMENT_GROUP = "@aws-cdk/aws-codedeploy:removeAlarmsFromDeploymentGroup";
    exports2.APIGATEWAY_AUTHORIZER_CHANGE_DEPLOYMENT_LOGICAL_ID = "@aws-cdk/aws-apigateway:authorizerChangeDeploymentLogicalId";
    exports2.EC2_LAUNCH_TEMPLATE_DEFAULT_USER_DATA = "@aws-cdk/aws-ec2:launchTemplateDefaultUserData";
    exports2.SECRETS_MANAGER_TARGET_ATTACHMENT_RESOURCE_POLICY = "@aws-cdk/aws-secretsmanager:useAttachedSecretResourcePolicyForSecretTargetAttachments";
    exports2.REDSHIFT_COLUMN_ID = "@aws-cdk/aws-redshift:columnId";
    exports2.ENABLE_EMR_SERVICE_POLICY_V2 = "@aws-cdk/aws-stepfunctions-tasks:enableEmrServicePolicyV2";
    exports2.EC2_RESTRICT_DEFAULT_SECURITY_GROUP = "@aws-cdk/aws-ec2:restrictDefaultSecurityGroup";
    exports2.APIGATEWAY_REQUEST_VALIDATOR_UNIQUE_ID = "@aws-cdk/aws-apigateway:requestValidatorUniqueId";
    exports2.INCLUDE_PREFIX_IN_UNIQUE_NAME_GENERATION = "@aws-cdk/core:includePrefixInUniqueNameGeneration";
    exports2.KMS_ALIAS_NAME_REF = "@aws-cdk/aws-kms:aliasNameRef";
    exports2.KMS_APPLY_IMPORTED_ALIAS_PERMISSIONS_TO_PRINCIPAL = "@aws-cdk/aws-kms:applyImportedAliasPermissionsToPrincipal";
    exports2.EFS_DENY_ANONYMOUS_ACCESS = "@aws-cdk/aws-efs:denyAnonymousAccess";
    exports2.EFS_MOUNTTARGET_ORDERINSENSITIVE_LOGICAL_ID = "@aws-cdk/aws-efs:mountTargetOrderInsensitiveLogicalId";
    exports2.AUTOSCALING_GENERATE_LAUNCH_TEMPLATE = "@aws-cdk/aws-autoscaling:generateLaunchTemplateInsteadOfLaunchConfig";
    exports2.ENABLE_OPENSEARCH_MULTIAZ_WITH_STANDBY = "@aws-cdk/aws-opensearchservice:enableOpensearchMultiAzWithStandby";
    exports2.LAMBDA_NODEJS_USE_LATEST_RUNTIME = "@aws-cdk/aws-lambda-nodejs:useLatestRuntimeVersion";
    exports2.RDS_PREVENT_RENDERING_DEPRECATED_CREDENTIALS = "@aws-cdk/aws-rds:preventRenderingDeprecatedCredentials";
    exports2.AURORA_CLUSTER_CHANGE_SCOPE_OF_INSTANCE_PARAMETER_GROUP_WITH_EACH_PARAMETERS = "@aws-cdk/aws-rds:auroraClusterChangeScopeOfInstanceParameterGroupWithEachParameters";
    exports2.APPSYNC_ENABLE_USE_ARN_IDENTIFIER_SOURCE_API_ASSOCIATION = "@aws-cdk/aws-appsync:useArnForSourceApiAssociationIdentifier";
    exports2.CODECOMMIT_SOURCE_ACTION_DEFAULT_BRANCH_NAME = "@aws-cdk/aws-codepipeline-actions:useNewDefaultBranchForCodeCommitSource";
    exports2.LAMBDA_PERMISSION_LOGICAL_ID_FOR_LAMBDA_ACTION = "@aws-cdk/aws-cloudwatch-actions:changeLambdaPermissionLogicalIdForLambdaAction";
    exports2.CODEPIPELINE_CROSS_ACCOUNT_KEYS_DEFAULT_VALUE_TO_FALSE = "@aws-cdk/aws-codepipeline:crossAccountKeysDefaultValueToFalse";
    exports2.CODEPIPELINE_DEFAULT_PIPELINE_TYPE_TO_V2 = "@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2";
    exports2.KMS_REDUCE_CROSS_ACCOUNT_REGION_POLICY_SCOPE = "@aws-cdk/aws-kms:reduceCrossAccountRegionPolicyScope";
    exports2.PIPELINE_REDUCE_ASSET_ROLE_TRUST_SCOPE = "@aws-cdk/pipelines:reduceAssetRoleTrustScope";
    exports2.EKS_NODEGROUP_NAME = "@aws-cdk/aws-eks:nodegroupNameAttribute";
    exports2.EBS_DEFAULT_GP3 = "@aws-cdk/aws-ec2:ebsDefaultGp3Volume";
    exports2.ECS_REMOVE_DEFAULT_DEPLOYMENT_ALARM = "@aws-cdk/aws-ecs:removeDefaultDeploymentAlarm";
    exports2.LOG_API_RESPONSE_DATA_PROPERTY_TRUE_DEFAULT = "@aws-cdk/custom-resources:logApiResponseDataPropertyTrueDefault";
    exports2.S3_KEEP_NOTIFICATION_IN_IMPORTED_BUCKET = "@aws-cdk/aws-s3:keepNotificationInImportedBucket";
    exports2.USE_NEW_S3URI_PARAMETERS_FOR_BEDROCK_INVOKE_MODEL_TASK = "@aws-cdk/aws-stepfunctions-tasks:useNewS3UriParametersForBedrockInvokeModelTask";
    exports2.EXPLICIT_STACK_TAGS = "@aws-cdk/core:explicitStackTags";
    exports2.REDUCE_EC2_FARGATE_CLOUDWATCH_PERMISSIONS = "@aws-cdk/aws-ecs:reduceEc2FargateCloudWatchPermissions";
    exports2.DYNAMODB_TABLEV2_RESOURCE_POLICY_PER_REPLICA = "@aws-cdk/aws-dynamodb:resourcePolicyPerReplica";
    exports2.EC2_SUM_TIMEOUT_ENABLED = "@aws-cdk/aws-ec2:ec2SumTImeoutEnabled";
    exports2.APPSYNC_GRAPHQLAPI_SCOPE_LAMBDA_FUNCTION_PERMISSION = "@aws-cdk/aws-appsync:appSyncGraphQLAPIScopeLambdaPermission";
    exports2.USE_CORRECT_VALUE_FOR_INSTANCE_RESOURCE_ID_PROPERTY = "@aws-cdk/aws-rds:setCorrectValueForDatabaseInstanceReadReplicaInstanceResourceId";
    exports2.CFN_INCLUDE_REJECT_COMPLEX_RESOURCE_UPDATE_CREATE_POLICY_INTRINSICS = "@aws-cdk/core:cfnIncludeRejectComplexResourceUpdateCreatePolicyIntrinsics";
    exports2.LAMBDA_NODEJS_SDK_V3_EXCLUDE_SMITHY_PACKAGES = "@aws-cdk/aws-lambda-nodejs:sdkV3ExcludeSmithyPackages";
    exports2.STEPFUNCTIONS_TASKS_FIX_RUN_ECS_TASK_POLICY = "@aws-cdk/aws-stepfunctions-tasks:fixRunEcsTaskPolicy";
    exports2.STEPFUNCTIONS_USE_DISTRIBUTED_MAP_RESULT_WRITER_V2 = "@aws-cdk/aws-stepfunctions:useDistributedMapResultWriterV2";
    exports2.BASTION_HOST_USE_AMAZON_LINUX_2023_BY_DEFAULT = "@aws-cdk/aws-ec2:bastionHostUseAmazonLinux2023ByDefault";
    exports2.ASPECT_STABILIZATION = "@aws-cdk/core:aspectStabilization";
    exports2.SIGNER_PROFILE_NAME_PASSED_TO_CFN = "@aws-cdk/aws-signer:signingProfileNamePassedToCfn";
    exports2.USER_POOL_DOMAIN_NAME_METHOD_WITHOUT_CUSTOM_RESOURCE = "@aws-cdk/aws-route53-targets:userPoolDomainNameMethodWithoutCustomResource";
    exports2.Enable_IMDS_Blocking_Deprecated_Feature = "@aws-cdk/aws-ecs:enableImdsBlockingDeprecatedFeature";
    exports2.Disable_ECS_IMDS_Blocking = "@aws-cdk/aws-ecs:disableEcsImdsBlocking";
    exports2.ALB_DUALSTACK_WITHOUT_PUBLIC_IPV4_SECURITY_GROUP_RULES_DEFAULT = "@aws-cdk/aws-elasticloadbalancingV2:albDualstackWithoutPublicIpv4SecurityGroupRulesDefault";
    exports2.IAM_OIDC_REJECT_UNAUTHORIZED_CONNECTIONS = "@aws-cdk/aws-iam:oidcRejectUnauthorizedConnections";
    exports2.ENABLE_ADDITIONAL_METADATA_COLLECTION = "@aws-cdk/core:enableAdditionalMetadataCollection";
    exports2.LAMBDA_CREATE_NEW_POLICIES_WITH_ADDTOROLEPOLICY = "@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy";
    exports2.SET_UNIQUE_REPLICATION_ROLE_NAME = "@aws-cdk/aws-s3:setUniqueReplicationRoleName";
    exports2.PIPELINE_REDUCE_STAGE_ROLE_TRUST_SCOPE = "@aws-cdk/pipelines:reduceStageRoleTrustScope";
    exports2.EVENTBUS_POLICY_SID_REQUIRED = "@aws-cdk/aws-events:requireEventBusPolicySid";
    exports2.ASPECT_PRIORITIES_MUTATING = "@aws-cdk/core:aspectPrioritiesMutating";
    exports2.DYNAMODB_TABLE_RETAIN_TABLE_REPLICA = "@aws-cdk/aws-dynamodb:retainTableReplica";
    exports2.LOG_USER_POOL_CLIENT_SECRET_VALUE = "@aws-cdk/cognito:logUserPoolClientSecretValue";
    exports2.PIPELINE_REDUCE_CROSS_ACCOUNT_ACTION_ROLE_TRUST_SCOPE = "@aws-cdk/pipelines:reduceCrossAccountActionRoleTrustScope";
    exports2.S3_TRUST_KEY_POLICY_FOR_SNS_SUBSCRIPTIONS = "@aws-cdk/s3-notifications:addS3TrustKeyPolicyForSnsSubscriptions";
    exports2.EC2_REQUIRE_PRIVATE_SUBNETS_FOR_EGRESSONLYINTERNETGATEWAY = "@aws-cdk/aws-ec2:requirePrivateSubnetsForEgressOnlyInternetGateway";
    exports2.USE_RESOURCEID_FOR_VPCV2_MIGRATION = "@aws-cdk/aws-ec2-alpha:useResourceIdForVpcV2Migration";
    exports2.S3_PUBLIC_ACCESS_BLOCKED_BY_DEFAULT = "@aws-cdk/aws-s3:publicAccessBlockedByDefault";
    exports2.USE_CDK_MANAGED_LAMBDA_LOGGROUP = "@aws-cdk/aws-lambda:useCdkManagedLogGroup";
    exports2.FLAGS = {
      //////////////////////////////////////////////////////////////////////
      [exports2.SIGNER_PROFILE_NAME_PASSED_TO_CFN]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "Pass signingProfileName to CfnSigningProfile",
        detailsMd: `
      When enabled, the \`signingProfileName\` property is passed to the L1 \`CfnSigningProfile\` construct,
      which ensures that the AWS Signer profile is created with the specified name.
      
      When disabled, the \`signingProfileName\` is not passed to CloudFormation, maintaining backward
      compatibility with existing deployments where CloudFormation auto-generated profile names.
      
      This feature flag is needed because enabling it can cause existing signing profiles to be
      replaced during deployment if a \`signingProfileName\` was specified but not previously used
      in the CloudFormation template.`,
        introducedIn: { v2: "2.212.0" },
        recommendedValue: true,
        unconfiguredBehavesLike: { v2: false }
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.ENABLE_STACK_NAME_DUPLICATES_CONTEXT]: {
        type: flag_modeling_1.FlagType.ApiDefault,
        summary: "Allow multiple stacks with the same name",
        detailsMd: `
      If this is set, multiple stacks can use the same stack name (e.g. deployed to
      different environments). This means that the name of the synthesized template
      file will be based on the construct path and not on the defined \`stackName\`
      of the stack.`,
        recommendedValue: true,
        introducedIn: { v1: "1.16.0" },
        unconfiguredBehavesLike: { v2: true },
        compatibilityWithOldBehaviorMd: "Pass stack identifiers to the CLI instead of stack names."
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.ENABLE_DIFF_NO_FAIL_CONTEXT]: {
        type: flag_modeling_1.FlagType.ApiDefault,
        summary: "Make `cdk diff` not fail when there are differences",
        detailsMd: `
      Determines what status code \`cdk diff\` should return when the specified stack
      differs from the deployed stack or the local CloudFormation template:

      * \`aws-cdk:enableDiffNoFail=true\` => status code == 0
      * \`aws-cdk:enableDiffNoFail=false\` => status code == 1

      You can override this behavior with the --fail flag:

      * \`--fail\` => status code == 1
      * \`--no-fail\` => status code == 0`,
        introducedIn: { v1: "1.19.0" },
        unconfiguredBehavesLike: { v2: true },
        recommendedValue: true,
        compatibilityWithOldBehaviorMd: "Specify `--fail` to the CLI."
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.NEW_STYLE_STACK_SYNTHESIS_CONTEXT]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "Switch to new stack synthesis method which enables CI/CD",
        detailsMd: `
      If this flag is specified, all \`Stack\`s will use the \`DefaultStackSynthesizer\` by
      default. If it is not set, they will use the \`LegacyStackSynthesizer\`.`,
        introducedIn: { v1: "1.39.0", v2: "2.0.0" },
        unconfiguredBehavesLike: { v2: true },
        recommendedValue: true
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.STACK_RELATIVE_EXPORTS_CONTEXT]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "Name exports based on the construct paths relative to the stack, rather than the global construct path",
        detailsMd: `
      Combined with the stack name this relative construct path is good enough to
      ensure uniqueness, and makes the export names robust against refactoring
      the location of the stack in the construct tree (specifically, moving the Stack
      into a Stage).`,
        introducedIn: { v1: "1.58.0", v2: "2.0.0" },
        unconfiguredBehavesLike: { v2: true },
        recommendedValue: true
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.DOCKER_IGNORE_SUPPORT]: {
        type: flag_modeling_1.FlagType.ApiDefault,
        summary: "DockerImageAsset properly supports `.dockerignore` files by default",
        detailsMd: `
      If this flag is not set, the default behavior for \`DockerImageAsset\` is to use
      glob semantics for \`.dockerignore\` files. If this flag is set, the default behavior
      is standard Docker ignore semantics.

      This is a feature flag as the old behavior was technically incorrect but
      users may have come to depend on it.`,
        introducedIn: { v1: "1.73.0" },
        unconfiguredBehavesLike: { v2: true },
        recommendedValue: true,
        compatibilityWithOldBehaviorMd: "Update your `.dockerignore` file to match standard Docker ignore rules, if necessary."
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.SECRETS_MANAGER_PARSE_OWNED_SECRET_NAME]: {
        type: flag_modeling_1.FlagType.ApiDefault,
        summary: "Fix the referencing of SecretsManager names from ARNs",
        detailsMd: `
      Secret.secretName for an "owned" secret will attempt to parse the secretName from the ARN,
      rather than the default full resource name, which includes the SecretsManager suffix.

      If this flag is not set, Secret.secretName will include the SecretsManager suffix, which cannot be directly
      used by SecretsManager.DescribeSecret, and must be parsed by the user first (e.g., Fn:Join, Fn:Select, Fn:Split).`,
        introducedIn: { v1: "1.77.0" },
        unconfiguredBehavesLike: { v2: true },
        recommendedValue: true,
        compatibilityWithOldBehaviorMd: "Use `parseArn(secret.secretName).resourceName` to emulate the incorrect old parsing."
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.KMS_DEFAULT_KEY_POLICIES]: {
        type: flag_modeling_1.FlagType.ApiDefault,
        summary: "Tighten default KMS key policies",
        detailsMd: `
      KMS Keys start with a default key policy that grants the account access to administer the key,
      mirroring the behavior of the KMS SDK/CLI/Console experience. Users may override the default key
      policy by specifying their own.

      If this flag is not set, the default key policy depends on the setting of the \`trustAccountIdentities\`
      flag. If false (the default, for backwards-compatibility reasons), the default key policy somewhat
      resembles the default admin key policy, but with the addition of 'GenerateDataKey' permissions. If
      true, the policy matches what happens when this feature flag is set.

      Additionally, if this flag is not set and the user supplies a custom key policy, this will be appended
      to the key's default policy (rather than replacing it).`,
        introducedIn: { v1: "1.78.0" },
        unconfiguredBehavesLike: { v2: true },
        recommendedValue: true,
        compatibilityWithOldBehaviorMd: "Pass `trustAccountIdentities: false` to `Key` construct to restore the old behavior."
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.S3_GRANT_WRITE_WITHOUT_ACL]: {
        type: flag_modeling_1.FlagType.ApiDefault,
        summary: "Remove `PutObjectAcl` from Bucket.grantWrite",
        detailsMd: `
      Change the old 's3:PutObject*' permission to 's3:PutObject' on Bucket,
      as the former includes 's3:PutObjectAcl',
      which could be used to grant read/write object access to IAM principals in other accounts.
      Use a feature flag to make sure existing customers who might be relying
      on the overly-broad permissions are not broken.`,
        introducedIn: { v1: "1.85.0" },
        unconfiguredBehavesLike: { v2: true },
        recommendedValue: true,
        compatibilityWithOldBehaviorMd: "Call `bucket.grantPutAcl()` in addition to `bucket.grantWrite()` to grant ACL permissions."
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.ECS_REMOVE_DEFAULT_DESIRED_COUNT]: {
        type: flag_modeling_1.FlagType.ApiDefault,
        summary: "Do not specify a default DesiredCount for ECS services",
        detailsMd: `
      ApplicationLoadBalancedServiceBase, ApplicationMultipleTargetGroupServiceBase,
      NetworkLoadBalancedServiceBase, NetworkMultipleTargetGroupServiceBase, and
      QueueProcessingServiceBase currently determine a default value for the desired count of
      a CfnService if a desiredCount is not provided. The result of this is that on every
      deployment, the service count is reset to the fixed value, even if it was autoscaled.

      If this flag is not set, the default behaviour for CfnService.desiredCount is to set a
      desiredCount of 1, if one is not provided. If true, a default will not be defined for
      CfnService.desiredCount and as such desiredCount will be undefined, if one is not provided.`,
        introducedIn: { v1: "1.92.0" },
        unconfiguredBehavesLike: { v2: true },
        recommendedValue: true,
        compatibilityWithOldBehaviorMd: "You can pass `desiredCount: 1` explicitly, but you should never need this."
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.RDS_LOWERCASE_DB_IDENTIFIER]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "Force lowercasing of RDS Cluster names in CDK",
        detailsMd: `
      Cluster names must be lowercase, and the service will lowercase the name when the cluster
      is created. However, CDK did not use to know about this, and would use the user-provided name
      referencing the cluster, which would fail if it happened to be mixed-case.

      With this flag, lowercase the name in CDK so we can reference it properly.

      Must be behind a permanent flag because changing a name from mixed case to lowercase between deployments
      would lead CloudFormation to think the name was changed and would trigger a cluster replacement
      (losing data!).`,
        introducedIn: { v1: "1.97.0", v2: "2.0.0" },
        unconfiguredBehavesLike: { v2: true },
        recommendedValue: true
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.APIGATEWAY_USAGEPLANKEY_ORDERINSENSITIVE_ID]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "Allow adding/removing multiple UsagePlanKeys independently",
        detailsMd: `
      The UsagePlanKey resource connects an ApiKey with a UsagePlan. API Gateway does not allow more than one UsagePlanKey
      for any given UsagePlan and ApiKey combination. For this reason, CloudFormation cannot replace this resource without
      either the UsagePlan or ApiKey changing.

      The feature addition to support multiple UsagePlanKey resources - 142bd0e2 - recognized this and attempted to keep
      existing UsagePlanKey logical ids unchanged.
      However, this intentionally caused the logical id of the UsagePlanKey to be sensitive to order. That is, when
      the 'first' UsagePlanKey resource is removed, the logical id of the 'second' assumes what was originally the 'first',
      which again is disallowed.

      In effect, there is no way to get out of this mess in a backwards compatible way, while supporting existing stacks.
      This flag changes the logical id layout of UsagePlanKey to not be sensitive to order.`,
        introducedIn: { v1: "1.98.0", v2: "2.0.0" },
        unconfiguredBehavesLike: { v2: true },
        recommendedValue: true
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.EFS_DEFAULT_ENCRYPTION_AT_REST]: {
        type: flag_modeling_1.FlagType.ApiDefault,
        summary: "Enable this feature flag to have elastic file systems encrypted at rest by default.",
        detailsMd: `
      Encryption can also be configured explicitly using the \`encrypted\` property.
      `,
        introducedIn: { v1: "1.98.0" },
        unconfiguredBehavesLike: { v2: true },
        recommendedValue: true,
        compatibilityWithOldBehaviorMd: "Pass the `encrypted: false` property to the `FileSystem` construct to disable encryption."
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.LAMBDA_RECOGNIZE_VERSION_PROPS]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "Enable this feature flag to opt in to the updated logical id calculation for Lambda Version created using the  `fn.currentVersion`.",
        detailsMd: `
      The previous calculation incorrectly considered properties of the \`AWS::Lambda::Function\` resource that did
      not constitute creating a new Version.

      See 'currentVersion' section in the aws-lambda module's README for more details.`,
        introducedIn: { v1: "1.106.0", v2: "2.0.0" },
        unconfiguredBehavesLike: { v2: true },
        recommendedValue: true
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.LAMBDA_RECOGNIZE_LAYER_VERSION]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "Enable this feature flag to opt in to the updated logical id calculation for Lambda Version created using the `fn.currentVersion`.",
        detailsMd: `
      This flag correct incorporates Lambda Layer properties into the Lambda Function Version.

      See 'currentVersion' section in the aws-lambda module's README for more details.`,
        introducedIn: { v1: "1.159.0", v2: "2.27.0" },
        recommendedValue: true
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.CLOUDFRONT_DEFAULT_SECURITY_POLICY_TLS_V1_2_2021]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "Enable this feature flag to have cloudfront distributions use the security policy TLSv1.2_2021 by default.",
        detailsMd: `
      The security policy can also be configured explicitly using the \`minimumProtocolVersion\` property.`,
        introducedIn: { v1: "1.117.0", v2: "2.0.0" },
        unconfiguredBehavesLike: { v2: true },
        recommendedValue: true
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.CHECK_SECRET_USAGE]: {
        type: flag_modeling_1.FlagType.VisibleContext,
        summary: "Enable this flag to make it impossible to accidentally use SecretValues in unsafe locations",
        detailsMd: `
      With this flag enabled, \`SecretValue\` instances can only be passed to
      constructs that accept \`SecretValue\`s; otherwise, \`unsafeUnwrap()\` must be
      called to use it as a regular string.`,
        introducedIn: { v1: "1.153.0", v2: "2.21.0" },
        recommendedValue: true
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.TARGET_PARTITIONS]: {
        type: flag_modeling_1.FlagType.VisibleContext,
        summary: "What regions to include in lookup tables of environment agnostic stacks",
        detailsMd: `
      Has no effect on stacks that have a defined region, but will limit the amount
      of unnecessary regions included in stacks without a known region.

      The type of this value should be a list of strings.`,
        introducedIn: { v1: "1.137.0", v2: "2.4.0" },
        recommendedValue: ["aws", "aws-cn"]
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.ECS_SERVICE_EXTENSIONS_ENABLE_DEFAULT_LOG_DRIVER]: {
        type: flag_modeling_1.FlagType.ApiDefault,
        summary: "ECS extensions will automatically add an `awslogs` driver if no logging is specified",
        detailsMd: `
      Enable this feature flag to configure default logging behavior for the ECS Service Extensions. This will enable the
      \`awslogs\` log driver for the application container of the service to send the container logs to CloudWatch Logs.

      This is a feature flag as the new behavior provides a better default experience for the users.`,
        introducedIn: { v1: "1.140.0", v2: "2.8.0" },
        recommendedValue: true,
        compatibilityWithOldBehaviorMd: "Specify a log driver explicitly."
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.EC2_UNIQUE_IMDSV2_LAUNCH_TEMPLATE_NAME]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "Enable this feature flag to have Launch Templates generated by the `InstanceRequireImdsv2Aspect` use unique names.",
        detailsMd: `
      Previously, the generated Launch Template names were only unique within a stack because they were based only on the
      \`Instance\` construct ID. If another stack that has an \`Instance\` with the same construct ID is deployed in the same
      account and region, the deployments would always fail as the generated Launch Template names were the same.

      The new implementation addresses this issue by generating the Launch Template name with the \`Names.uniqueId\` method.`,
        introducedIn: { v1: "1.140.0", v2: "2.8.0" },
        recommendedValue: true
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.ECS_ARN_FORMAT_INCLUDES_CLUSTER_NAME]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "ARN format used by ECS. In the new ARN format, the cluster name is part of the resource ID.",
        detailsMd: `
      If this flag is not set, the old ARN format (without cluster name) for ECS is used.
      If this flag is set, the new ARN format (with cluster name) for ECS is used.

      This is a feature flag as the old format is still valid for existing ECS clusters.

      See https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#ecs-resource-ids
      `,
        introducedIn: { v2: "2.35.0" },
        recommendedValue: true
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.IAM_MINIMIZE_POLICIES]: {
        type: flag_modeling_1.FlagType.VisibleContext,
        summary: "Minimize IAM policies by combining Statements",
        detailsMd: `
      Minimize IAM policies by combining Principals, Actions and Resources of two
      Statements in the policies, as long as it doesn't change the meaning of the
      policy.`,
        introducedIn: { v1: "1.150.0", v2: "2.18.0" },
        recommendedValue: true
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.VALIDATE_SNAPSHOT_REMOVAL_POLICY]: {
        type: flag_modeling_1.FlagType.ApiDefault,
        summary: "Error on snapshot removal policies on resources that do not support it.",
        detailsMd: `
      Makes sure we do not allow snapshot removal policy on resources that do not support it.
      If supplied on an unsupported resource, CloudFormation ignores the policy altogether.
      This flag will reduce confusion and unexpected loss of data when erroneously supplying
      the snapshot removal policy.`,
        introducedIn: { v2: "2.28.0" },
        recommendedValue: true,
        compatibilityWithOldBehaviorMd: "The old behavior was incorrect. Update your source to not specify SNAPSHOT policies on resources that do not support it."
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.CODEPIPELINE_CROSS_ACCOUNT_KEY_ALIAS_STACK_SAFE_RESOURCE_NAME]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "Generate key aliases that include the stack name",
        detailsMd: `
      Enable this feature flag to have CodePipeline generate a unique cross account key alias name using the stack name.

      Previously, when creating multiple pipelines with similar naming conventions and when crossAccountKeys is true,
      the KMS key alias name created for these pipelines may be the same due to how the uniqueId is generated.

      This new implementation creates a stack safe resource name for the alias using the stack name instead of the stack ID.
      `,
        introducedIn: { v2: "2.29.0" },
        recommendedValue: true
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.S3_CREATE_DEFAULT_LOGGING_POLICY]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "Enable this feature flag to create an S3 bucket policy by default in cases where an AWS service would automatically create the Policy if one does not exist.",
        detailsMd: `
      For example, in order to send VPC flow logs to an S3 bucket, there is a specific Bucket Policy
      that needs to be attached to the bucket. If you create the bucket without a policy and then add the
      bucket as the flow log destination, the service will automatically create the bucket policy with the
      necessary permissions. If you were to then try and add your own bucket policy CloudFormation will throw
      and error indicating that a bucket policy already exists.

      In cases where we know what the required policy is we can go ahead and create the policy so we can
      remain in control of it.

      @see https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html#AWS-logs-infrastructure-S3
      `,
        introducedIn: { v2: "2.31.0" },
        recommendedValue: true
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.SNS_SUBSCRIPTIONS_SQS_DECRYPTION_POLICY]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "Restrict KMS key policy for encrypted Queues a bit more",
        detailsMd: `
      Enable this feature flag to restrict the decryption of a SQS queue, which is subscribed to a SNS topic, to
      only the topic which it is subscribed to and not the whole SNS service of an account.

      Previously the decryption was only restricted to the SNS service principal. To make the SQS subscription more
      secure, it is a good practice to restrict the decryption further and only allow the connected SNS topic to decryption
      the subscribed queue.`,
        introducedIn: { v2: "2.32.0" },
        recommendedValue: true
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.APIGATEWAY_DISABLE_CLOUDWATCH_ROLE]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "Make default CloudWatch Role behavior safe for multiple API Gateways in one environment",
        detailsMd: `
      Enable this feature flag to change the default behavior for aws-apigateway.RestApi and aws-apigateway.SpecRestApi
      to _not_ create a CloudWatch role and Account. There is only a single ApiGateway account per AWS
      environment which means that each time you create a RestApi in your account the ApiGateway account
      is overwritten. If at some point the newest RestApi is deleted, the ApiGateway Account and CloudWatch
      role will also be deleted, breaking any existing ApiGateways that were depending on them.

      When this flag is enabled you should either create the ApiGateway account and CloudWatch role
      separately _or_ only enable the cloudWatchRole on a single RestApi.
      `,
        introducedIn: { v2: "2.38.0" },
        recommendedValue: true
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.ENABLE_PARTITION_LITERALS]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "Make ARNs concrete if AWS partition is known",
        // eslint-disable-next-line @cdklabs/no-literal-partition
        detailsMd: `
      Enable this feature flag to get partition names as string literals in Stacks with known regions defined in
      their environment, such as "aws" or "aws-cn".  Previously the CloudFormation intrinsic function
      "Ref: AWS::Partition" was used.  For example:

      \`\`\`yaml
      Principal:
        AWS:
          Fn::Join:
            - ""
            - - "arn:"
              - Ref: AWS::Partition
              - :iam::123456789876:root
      \`\`\`

      becomes:

      \`\`\`yaml
      Principal:
        AWS: "arn:aws:iam::123456789876:root"
      \`\`\`

      The intrinsic function will still be used in Stacks where no region is defined or the region's partition
      is unknown.
      `,
        introducedIn: { v2: "2.38.0" },
        recommendedValue: true
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.EVENTS_TARGET_QUEUE_SAME_ACCOUNT]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "Event Rules may only push to encrypted SQS queues in the same account",
        detailsMd: `
      This flag applies to SQS Queues that are used as the target of event Rules. When enabled, only principals
      from the same account as the Rule can send messages. If a queue is unencrypted, this restriction will
      always apply, regardless of the value of this flag.
      `,
        introducedIn: { v2: "2.51.0" },
        recommendedValue: true
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.ECS_DISABLE_EXPLICIT_DEPLOYMENT_CONTROLLER_FOR_CIRCUIT_BREAKER]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: 'Avoid setting the "ECS" deployment controller when adding a circuit breaker',
        detailsMd: `
      Enable this feature flag to avoid setting the "ECS" deployment controller when adding a circuit breaker to an
      ECS Service, as this will trigger a full replacement which fails to deploy when using set service names.
      This does not change any behaviour as the default deployment controller when it is not defined is ECS.

      This is a feature flag as the new behavior provides a better default experience for the users.
      `,
        introducedIn: { v2: "2.51.0" },
        recommendedValue: true
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.IAM_IMPORTED_ROLE_STACK_SAFE_DEFAULT_POLICY_NAME]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "Enable this feature to by default create default policy names for imported roles that depend on the stack the role is in.",
        detailsMd: `
      Without this, importing the same role in multiple places could lead to the permissions given for one version of the imported role
      to overwrite permissions given to the role at a different place where it was imported. This was due to all imported instances
      of a role using the same default policy name.

      This new implementation creates default policy names based on the constructs node path in their stack.
      `,
        introducedIn: { v2: "2.60.0" },
        recommendedValue: true
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.S3_SERVER_ACCESS_LOGS_USE_BUCKET_POLICY]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "Use S3 Bucket Policy instead of ACLs for Server Access Logging",
        detailsMd: `
      Enable this feature flag to use S3 Bucket Policy for granting permission fo Server Access Logging
      rather than using the canned \`LogDeliveryWrite\` ACL. ACLs do not work when Object Ownership is
      enabled on the bucket.

      This flag uses a Bucket Policy statement to allow Server Access Log delivery, following best
      practices for S3.

      @see https://docs.aws.amazon.com/AmazonS3/latest/userguide/enable-server-access-logging.html
    `,
        introducedIn: { v2: "2.60.0" },
        recommendedValue: true
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.ROUTE53_PATTERNS_USE_CERTIFICATE]: {
        type: flag_modeling_1.FlagType.ApiDefault,
        summary: "Use the official `Certificate` resource instead of `DnsValidatedCertificate`",
        detailsMd: `
      Enable this feature flag to use the official CloudFormation supported \`Certificate\` resource instead
      of the deprecated \`DnsValidatedCertificate\` construct. If this flag is enabled and you are creating
      the stack in a region other than us-east-1 then you must also set \`crossRegionReferences=true\` on the
      stack.
      `,
        introducedIn: { v2: "2.61.0" },
        recommendedValue: true,
        compatibilityWithOldBehaviorMd: "Define a `DnsValidatedCertificate` explicitly and pass in the `certificate` property"
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.AWS_CUSTOM_RESOURCE_LATEST_SDK_DEFAULT]: {
        type: flag_modeling_1.FlagType.ApiDefault,
        summary: "Whether to install the latest SDK by default in AwsCustomResource",
        detailsMd: `
      This was originally introduced and enabled by default to not be limited by the SDK version
      that's installed on AWS Lambda. However, it creates issues for Lambdas bound to VPCs that
      do not have internet access, or in environments where 'npmjs.com' is not available.

      The recommended setting is to disable the default installation behavior, and pass the
      flag on a resource-by-resource basis to enable it if necessary.
    `,
        compatibilityWithOldBehaviorMd: "Set installLatestAwsSdk: true on all resources that need it.",
        introducedIn: { v2: "2.60.0" },
        recommendedValue: false
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.DATABASE_PROXY_UNIQUE_RESOURCE_NAME]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "Use unique resource name for Database Proxy",
        detailsMd: `
      If this flag is not set, the default behavior for \`DatabaseProxy\` is
      to use \`id\` of the constructor for \`dbProxyName\` when it's not specified in the argument.
      In this case, users can't deploy \`DatabaseProxy\`s that have the same \`id\` in the same region.

      If this flag is set, the default behavior is to use unique resource names for each \`DatabaseProxy\`.

      This is a feature flag as the old behavior was technically incorrect, but users may have come to depend on it.
    `,
        introducedIn: { v2: "2.65.0" },
        recommendedValue: true
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.CODEDEPLOY_REMOVE_ALARMS_FROM_DEPLOYMENT_GROUP]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "Remove CloudWatch alarms from deployment group",
        detailsMd: `
      Enable this flag to be able to remove all CloudWatch alarms from a deployment group by removing
      the alarms from the construct. If this flag is not set, removing all alarms from the construct
      will still leave the alarms configured for the deployment group.
    `,
        introducedIn: { v2: "2.65.0" },
        recommendedValue: true
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.APIGATEWAY_AUTHORIZER_CHANGE_DEPLOYMENT_LOGICAL_ID]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "Include authorizer configuration in the calculation of the API deployment logical ID.",
        detailsMd: `
      The logical ID of the AWS::ApiGateway::Deployment resource is calculated by hashing
      the API configuration, including methods, and resources, etc. Enable this feature flag
      to also include the configuration of any authorizer attached to the API in the
      calculation, so any changes made to an authorizer will create a new deployment.
      `,
        introducedIn: { v2: "2.66.0" },
        recommendedValue: true
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.EC2_LAUNCH_TEMPLATE_DEFAULT_USER_DATA]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "Define user data for a launch template by default when a machine image is provided.",
        detailsMd: `
      The ec2.LaunchTemplate construct did not define user data when a machine image is
      provided despite the document. If this is set, a user data is automatically defined
      according to the OS of the machine image.
      `,
        recommendedValue: true,
        introducedIn: { v2: "2.67.0" }
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.SECRETS_MANAGER_TARGET_ATTACHMENT_RESOURCE_POLICY]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "SecretTargetAttachments uses the ResourcePolicy of the attached Secret.",
        detailsMd: `
      Enable this feature flag to make SecretTargetAttachments use the ResourcePolicy of the attached Secret.
      SecretTargetAttachments are created to connect a Secret to a target resource.
      In CDK code, they behave like regular Secret and can be used as a stand-in in most situations.
      Previously, adding to the ResourcePolicy of a SecretTargetAttachment did attempt to create a separate ResourcePolicy for the same Secret.
      However Secrets can only have a single ResourcePolicy, causing the CloudFormation deployment to fail.

      When enabling this feature flag for an existing Stack, ResourcePolicies created via a SecretTargetAttachment will need replacement.
      This won't be possible without intervention due to limitation outlined above.
      First remove all permissions granted to the Secret and deploy without the ResourcePolicies.
      Then you can re-add the permissions and deploy again.
      `,
        recommendedValue: true,
        introducedIn: { v2: "2.67.0" }
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.REDSHIFT_COLUMN_ID]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "Whether to use an ID to track Redshift column changes",
        detailsMd: `
      Redshift columns are identified by their \`name\`. If a column is renamed, the old column
      will be dropped and a new column will be created. This can cause data loss.

      This flag enables the use of an \`id\` attribute for Redshift columns. If this flag is enabled, the
      internal CDK architecture will track changes of Redshift columns through their \`id\`, rather
      than their \`name\`. This will prevent data loss when columns are renamed.

      **NOTE** - Enabling this flag comes at a **risk**. When enabled, update the \`id\`s of all columns,
      **however** do not change the \`names\`s of the columns. If the \`name\`s of the columns are changed during
      initial deployment, the columns will be dropped and recreated, causing data loss. After the initial deployment
      of the \`id\`s, the \`name\`s of the columns can be changed without data loss.
      `,
        introducedIn: { v2: "2.68.0" },
        recommendedValue: true
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.ENABLE_EMR_SERVICE_POLICY_V2]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "Enable AmazonEMRServicePolicy_v2 managed policies",
        detailsMd: `
      If this flag is not set, the default behavior for \`EmrCreateCluster\` is
      to use \`AmazonElasticMapReduceRole\` managed policies.

      If this flag is set, the default behavior is to use the new \`AmazonEMRServicePolicy_v2\`
      managed policies.

      This is a feature flag as the old behavior will be deprecated, but some resources may require manual
      intervention since they might not have the appropriate tags propagated automatically.
      `,
        introducedIn: { v2: "2.72.0" },
        recommendedValue: true
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.EC2_RESTRICT_DEFAULT_SECURITY_GROUP]: {
        type: flag_modeling_1.FlagType.ApiDefault,
        summary: "Restrict access to the VPC default security group",
        detailsMd: `
      Enable this feature flag to remove the default ingress/egress rules from the
      VPC default security group.

      When a VPC is created, a default security group is created as well and this cannot
      be deleted. The default security group is created with ingress/egress rules that allow
      _all_ traffic. [AWS Security best practices recommend](https://docs.aws.amazon.com/securityhub/latest/userguide/ec2-controls.html#ec2-2)
      removing these ingress/egress rules in order to restrict access to the default security group.
    `,
        introducedIn: { v2: "2.78.0" },
        recommendedValue: true,
        compatibilityWithOldBehaviorMd: `
      To allow all ingress/egress traffic to the VPC default security group you
      can set the \`restrictDefaultSecurityGroup: false\`.
    `
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.APIGATEWAY_REQUEST_VALIDATOR_UNIQUE_ID]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "Generate a unique id for each RequestValidator added to a method",
        detailsMd: `
      This flag allows multiple RequestValidators to be added to a RestApi when
      providing the \`RequestValidatorOptions\` in the \`addMethod()\` method.

      If the flag is not set then only a single RequestValidator can be added in this way.
      Any additional RequestValidators have to be created directly with \`new RequestValidator\`.
    `,
        introducedIn: { v2: "2.78.0" },
        recommendedValue: true
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.KMS_ALIAS_NAME_REF]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "KMS Alias name and keyArn will have implicit reference to KMS Key",
        detailsMd: `
      This flag allows an implicit dependency to be created between KMS Alias and KMS Key
      when referencing key.aliasName or key.keyArn.

      If the flag is not set then a raw string is passed as the Alias name and no
      implicit dependencies will be set.
    `,
        introducedIn: { v2: "2.83.0" },
        recommendedValue: true
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.KMS_APPLY_IMPORTED_ALIAS_PERMISSIONS_TO_PRINCIPAL]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "Enable grant methods on Aliases imported by name to use kms:ResourceAliases condition",
        detailsMd: `
      This flag enables the grant methods (grant, grantDecrypt, grantEncrypt, etc.) on Aliases imported
      by name to grant permissions based on the 'kms:ResourceAliases' condition rather than no-op grants.
      When disabled, grant calls on imported aliases will be dropped (no-op) to maintain compatibility.
    `,
        introducedIn: { v2: "2.202.0" },
        recommendedValue: true,
        compatibilityWithOldBehaviorMd: "Remove calls to the grant* methods on the aliases referenced by name"
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.AUTOSCALING_GENERATE_LAUNCH_TEMPLATE]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "Generate a launch template when creating an AutoScalingGroup",
        detailsMd: `
      Enable this flag to allow AutoScalingGroups to generate a launch template when being created.
      Launch configurations have been deprecated and cannot be created in AWS Accounts created after
      December 31, 2023. Existing 'AutoScalingGroup' properties used for creating a launch configuration
      will now create an equivalent 'launchTemplate'. Alternatively, users can provide an explicit
      'launchTemplate' or 'mixedInstancesPolicy'. When this flag is enabled a 'launchTemplate' will
      attempt to set user data according to the OS of the machine image if explicit user data is not
      provided.
    `,
        introducedIn: { v2: "2.88.0" },
        compatibilityWithOldBehaviorMd: `
      If backwards compatibility needs to be maintained due to an existing autoscaling group
      using a launch config, set this flag to false.
    `,
        recommendedValue: true
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.INCLUDE_PREFIX_IN_UNIQUE_NAME_GENERATION]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "Include the stack prefix in the stack name generation process",
        detailsMd: `
      This flag prevents the prefix of a stack from making the stack's name longer than the 128 character limit.

      If the flag is set, the prefix is included in the stack name generation process.
      If the flag is not set, then the prefix of the stack is prepended to the generated stack name.

      **NOTE** - Enabling this flag comes at a **risk**. If you have already deployed stacks, changing the status of this
      feature flag can lead to a change in stacks' name. Changing a stack name mean recreating the whole stack, which
      is not viable in some productive setups.
    `,
        introducedIn: { v2: "2.84.0" },
        recommendedValue: true
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.EFS_DENY_ANONYMOUS_ACCESS]: {
        type: flag_modeling_1.FlagType.ApiDefault,
        summary: "EFS denies anonymous clients accesses",
        detailsMd: `
      This flag adds the file system policy that denies anonymous clients
      access to \`efs.FileSystem\`.

      If this flag is not set, \`efs.FileSystem\` will allow all anonymous clients
      that can access over the network.`,
        introducedIn: { v2: "2.93.0" },
        recommendedValue: true,
        compatibilityWithOldBehaviorMd: "You can pass `allowAnonymousAccess: true` so allow anonymous clients access."
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.ENABLE_OPENSEARCH_MULTIAZ_WITH_STANDBY]: {
        type: flag_modeling_1.FlagType.ApiDefault,
        summary: "Enables support for Multi-AZ with Standby deployment for opensearch domains",
        detailsMd: `
      If this is set, an opensearch domain will automatically be created with
      multi-az with standby enabled.
    `,
        introducedIn: { v2: "2.88.0" },
        recommendedValue: true,
        compatibilityWithOldBehaviorMd: "Pass `capacity.multiAzWithStandbyEnabled: false` to `Domain` construct to restore the old behavior."
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.LAMBDA_NODEJS_USE_LATEST_RUNTIME]: {
        type: flag_modeling_1.FlagType.ApiDefault,
        summary: "Enables aws-lambda-nodejs.Function to use the latest available NodeJs runtime as the default",
        detailsMd: `
      If this is set, and a \`runtime\` prop is not passed to, Lambda NodeJs
      functions will us the latest version of the runtime provided by the Lambda
      service. Do not use this if you your lambda function is reliant on dependencies
      shipped as part of the runtime environment.
    `,
        introducedIn: { v2: "2.93.0" },
        recommendedValue: true,
        compatibilityWithOldBehaviorMd: "Pass `runtime: lambda.Runtime.NODEJS_16_X` to `Function` construct to restore the previous behavior."
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.EFS_MOUNTTARGET_ORDERINSENSITIVE_LOGICAL_ID]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "When enabled, mount targets will have a stable logicalId that is linked to the associated subnet.",
        detailsMd: `
      When this feature flag is enabled, each mount target will have a stable
      logicalId that is linked to the associated subnet. If the flag is set to
      false then the logicalIds of the mount targets can change if the number of
      subnets changes.

      Set this flag to false for existing mount targets.
    `,
        introducedIn: { v2: "2.93.0" },
        recommendedValue: true
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.AURORA_CLUSTER_CHANGE_SCOPE_OF_INSTANCE_PARAMETER_GROUP_WITH_EACH_PARAMETERS]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "When enabled, a scope of InstanceParameterGroup for AuroraClusterInstance with each parameters will change.",
        detailsMd: `
      When this feature flag is enabled, a scope of \`InstanceParameterGroup\` for
      \`AuroraClusterInstance\` with each parameters will change to AuroraClusterInstance
      from AuroraCluster.

      If the flag is set to false then it can only make one \`AuroraClusterInstance\`
      with each \`InstanceParameterGroup\` in the AuroraCluster.
    `,
        introducedIn: { v2: "2.97.0" },
        recommendedValue: true
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.APPSYNC_ENABLE_USE_ARN_IDENTIFIER_SOURCE_API_ASSOCIATION]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "When enabled, will always use the arn for identifiers for CfnSourceApiAssociation in the GraphqlApi construct rather than id.",
        detailsMd: `
      When this feature flag is enabled, we use the IGraphqlApi ARN rather than ID when creating or updating CfnSourceApiAssociation in
      the GraphqlApi construct. Using the ARN allows the association to support an association with a source api or merged api in another account.
      Note that for existing source api associations created with this flag disabled, enabling the flag will lead to a resource replacement.
    `,
        introducedIn: { v2: "2.97.0" },
        recommendedValue: true
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.RDS_PREVENT_RENDERING_DEPRECATED_CREDENTIALS]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "When enabled, creating an RDS database cluster from a snapshot will only render credentials for snapshot credentials.",
        detailsMd: `
      The \`credentials\` property on the \`DatabaseClusterFromSnapshotProps\`
      interface was deprecated with the new \`snapshotCredentials\` property being
      recommended. Before deprecating \`credentials\`, a secret would be generated
      while rendering credentials if the \`credentials\` property was undefined or
      if a secret wasn't provided via the \`credentials\` property. This behavior
      is replicated with the new \`snapshotCredentials\` property, but the original
      \`credentials\` secret can still be created resulting in an extra database
      secret.

      Set this flag to prevent rendering deprecated \`credentials\` and creating an
      extra database secret when only using \`snapshotCredentials\` to create an RDS
      database cluster from a snapshot.
    `,
        introducedIn: { v2: "2.98.0" },
        recommendedValue: true
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.CODECOMMIT_SOURCE_ACTION_DEFAULT_BRANCH_NAME]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "When enabled, the CodeCommit source action is using the default branch name 'main'.",
        detailsMd: `
      When setting up a CodeCommit source action for the source stage of a pipeline, please note that the
      default branch is 'master'.
      However, with the activation of this feature flag, the default branch is updated to 'main'.
    `,
        introducedIn: { v2: "2.103.1" },
        recommendedValue: true
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.LAMBDA_PERMISSION_LOGICAL_ID_FOR_LAMBDA_ACTION]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "When enabled, the logical ID of a Lambda permission for a Lambda action includes an alarm ID.",
        detailsMd: `
      When this feature flag is enabled, a logical ID of \`LambdaPermission\` for a
      \`LambdaAction\` will include an alarm ID. Therefore multiple alarms for the same Lambda
      can be created with \`LambdaAction\`.

      If the flag is set to false then it can only make one alarm for the Lambda with
      \`LambdaAction\`.
    `,
        introducedIn: { v2: "2.124.0" },
        recommendedValue: true
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.CODEPIPELINE_CROSS_ACCOUNT_KEYS_DEFAULT_VALUE_TO_FALSE]: {
        type: flag_modeling_1.FlagType.ApiDefault,
        summary: "Enables Pipeline to set the default value for crossAccountKeys to false.",
        detailsMd: `
      When this feature flag is enabled, and the \`crossAccountKeys\` property is not provided in a \`Pipeline\`
      construct, the construct automatically defaults the value of this property to false.
    `,
        introducedIn: { v2: "2.127.0" },
        recommendedValue: true,
        compatibilityWithOldBehaviorMd: "Pass `crossAccountKeys: true` to `Pipeline` construct to restore the previous behavior."
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.CODEPIPELINE_DEFAULT_PIPELINE_TYPE_TO_V2]: {
        type: flag_modeling_1.FlagType.ApiDefault,
        summary: "Enables Pipeline to set the default pipeline type to V2.",
        detailsMd: `
      When this feature flag is enabled, and the \`pipelineType\` property is not provided in a \`Pipeline\`
      construct, the construct automatically defaults the value of this property to \`PipelineType.V2\`.
    `,
        introducedIn: { v2: "2.133.0" },
        recommendedValue: true,
        compatibilityWithOldBehaviorMd: "Pass `pipelineType: PipelineType.V1` to `Pipeline` construct to restore the previous behavior."
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.KMS_REDUCE_CROSS_ACCOUNT_REGION_POLICY_SCOPE]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "When enabled, IAM Policy created from KMS key grant will reduce the resource scope to this key only.",
        detailsMd: `
      When this feature flag is enabled and calling KMS key grant method, the created IAM policy will reduce the resource scope from
      '*' to this specific granting KMS key.
    `,
        introducedIn: { v2: "2.134.0" },
        recommendedValue: true
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.PIPELINE_REDUCE_ASSET_ROLE_TRUST_SCOPE]: {
        type: flag_modeling_1.FlagType.ApiDefault,
        summary: "Remove the root account principal from PipelineAssetsFileRole trust policy",
        detailsMd: `
      When this feature flag is enabled, the root account principal will not be added to the trust policy of asset role.
      When this feature flag is disabled, it will keep the root account principal in the trust policy.
    `,
        introducedIn: { v2: "2.141.0" },
        unconfiguredBehavesLike: { v2: true },
        recommendedValue: true,
        compatibilityWithOldBehaviorMd: "Disable the feature flag to add the root account principal back"
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.EKS_NODEGROUP_NAME]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "When enabled, nodegroupName attribute of the provisioned EKS NodeGroup will not have the cluster name prefix.",
        detailsMd: `
      When this feature flag is enabled, the nodegroupName attribute will be exactly the name of the nodegroup without
      any prefix.
    `,
        introducedIn: { v2: "2.139.0" },
        recommendedValue: true
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.EBS_DEFAULT_GP3]: {
        type: flag_modeling_1.FlagType.ApiDefault,
        summary: "When enabled, the default volume type of the EBS volume will be GP3",
        detailsMd: `
      When this featuer flag is enabled, the default volume type of the EBS volume will be \`EbsDeviceVolumeType.GENERAL_PURPOSE_SSD_GP3\`.
    `,
        introducedIn: { v2: "2.140.0" },
        recommendedValue: true,
        compatibilityWithOldBehaviorMd: "Pass `volumeType: EbsDeviceVolumeType.GENERAL_PURPOSE_SSD` to `Volume` construct to restore the previous behavior."
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.ECS_REMOVE_DEFAULT_DEPLOYMENT_ALARM]: {
        type: flag_modeling_1.FlagType.ApiDefault,
        summary: "When enabled, remove default deployment alarm settings",
        detailsMd: `
      When this featuer flag is enabled, remove the default deployment alarm settings when creating a AWS ECS service.
    `,
        introducedIn: { v2: "2.143.0" },
        recommendedValue: true,
        compatibilityWithOldBehaviorMd: "Set AWS::ECS::Service 'DeploymentAlarms' manually to restore the previous behavior."
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.LOG_API_RESPONSE_DATA_PROPERTY_TRUE_DEFAULT]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "When enabled, the custom resource used for `AwsCustomResource` will configure the `logApiResponseData` property as true by default",
        detailsMd: `
      This results in 'logApiResponseData' being passed as true to the custom resource provider. This will cause the custom resource handler to receive an 'Update' event. If you don't
      have an SDK call configured for the 'Update' event and you're dependent on specific SDK call response data, you will see this error from CFN:

      CustomResource attribute error: Vendor response doesn't contain <attribute-name> attribute in object. See https://github.com/aws/aws-cdk/issues/29949) for more details.

      Unlike most feature flags, we don't recommend setting this feature flag to true. However, if you're using the 'AwsCustomResource' construct with 'logApiResponseData' as true in
      the event object, then setting this feature flag will keep this behavior. Otherwise, setting this feature flag to false will trigger an 'Update' event by removing the 'logApiResponseData'
      property from the event object.
    `,
        introducedIn: { v2: "2.145.0" },
        recommendedValue: false
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.S3_KEEP_NOTIFICATION_IN_IMPORTED_BUCKET]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "When enabled, Adding notifications to a bucket in the current stack will not remove notification from imported stack.",
        detailsMd: `
      Currently, adding notifications to a bucket where it was created by ourselves will override notification added where it is imported.

      When this feature flag is enabled, adding notifications to a bucket in the current stack will only update notification defined in this stack.
      Other notifications that are not managed by this stack will be kept.
    `,
        introducedIn: { v2: "2.155.0" },
        recommendedValue: false
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.USE_NEW_S3URI_PARAMETERS_FOR_BEDROCK_INVOKE_MODEL_TASK]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "When enabled, use new props for S3 URI field in task definition of state machine for bedrock invoke model.",
        detailsMd: `
    Currently, 'inputPath' and 'outputPath' from the TaskStateBase Props is being used under BedrockInvokeModelProps to define S3URI under 'input' and 'output' fields
    of State Machine Task definition.

    When this feature flag is enabled, specify newly introduced props 's3InputUri' and
    's3OutputUri' to populate S3 uri under input and output fields in state machine task definition for Bedrock invoke model.

    `,
        introducedIn: { v2: "2.156.0" },
        unconfiguredBehavesLike: { v2: true },
        recommendedValue: true,
        compatibilityWithOldBehaviorMd: "Disable the feature flag to use input and output path fields for s3 URI"
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.EXPLICIT_STACK_TAGS]: {
        type: flag_modeling_1.FlagType.ApiDefault,
        summary: "When enabled, stack tags need to be assigned explicitly on a Stack.",
        detailsMd: `
    Without this feature flag enabled, if tags are added to a Stack using
    \`Tags.of(scope).add(...)\`, they will be added to both the stack and all resources
    in the stack template.

    That leads to the tags being applied twice: once in the template, and once
    again automatically by CloudFormation, which will apply all stack tags to
    all resources in the stack. This leads to loss of control, as the
    \`excludeResourceTypes\` option of the Tags API will not have any effect.

    With this flag enabled, tags added to a stack using \`Tags.of(...)\` are ignored,
    and Stack tags must be configured explicitly on the Stack object.
    `,
        introducedIn: { v2: "2.205.0" },
        recommendedValue: true,
        compatibilityWithOldBehaviorMd: "Configure stack-level tags using `new Stack(..., { tags: { ... } })`."
      },
      [exports2.Enable_IMDS_Blocking_Deprecated_Feature]: {
        type: flag_modeling_1.FlagType.Temporary,
        summary: "When set to true along with canContainersAccessInstanceRole=false in ECS cluster, new updated commands will be added to UserData to block container accessing IMDS. **Applicable to Linux only. IMPORTANT: See [details.](#aws-cdkaws-ecsenableImdsBlockingDeprecatedFeature)**",
        detailsMd: `
    In an ECS Cluster with \`MachineImageType.AMAZON_LINUX_2\`, the canContainersAccessInstanceRole=false option attempts to add commands to block containers from
    accessing IMDS. Set this flag to true in order to use new and updated commands. Please note that this
    feature alone with this feature flag will be deprecated by <ins>**end of 2025**</ins> as CDK cannot
    guarantee the correct execution of the feature in all platforms. See [Github discussion](https://github.com/aws/aws-cdk/discussions/32609) for more information.
    It is recommended to follow ECS documentation to block IMDS for your specific platform and cluster configuration.
    `,
        introducedIn: { v2: "2.175.0" },
        recommendedValue: false,
        compatibilityWithOldBehaviorMd: "Set this flag to false in order to continue using old and outdated commands. However, it is **not** recommended."
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.Disable_ECS_IMDS_Blocking]: {
        type: flag_modeling_1.FlagType.Temporary,
        summary: "When set to true, CDK synth will throw exception if canContainersAccessInstanceRole is false. **IMPORTANT: See [details.](#aws-cdkaws-ecsdisableEcsImdsBlocking)**",
        detailsMd: `
    In an ECS Cluster with \`MachineImageType.AMAZON_LINUX_2\`, the canContainersAccessInstanceRole=false option attempts to add commands to block containers from
    accessing IMDS. CDK cannot guarantee the correct execution of the feature in all platforms. Setting this feature flag
    to true will ensure CDK does not attempt to implement IMDS blocking. By <ins>**end of 2025**</ins>, CDK will remove the
    IMDS blocking feature. See [Github discussion](https://github.com/aws/aws-cdk/discussions/32609) for more information.

    It is recommended to follow ECS documentation to block IMDS for your specific platform and cluster configuration.
    `,
        introducedIn: { v2: "2.175.0" },
        recommendedValue: true,
        compatibilityWithOldBehaviorMd: "It is strongly recommended to set this flag to true. However, if necessary, set this flag to false to continue using the old implementation."
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.REDUCE_EC2_FARGATE_CLOUDWATCH_PERMISSIONS]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "When enabled, we will only grant the necessary permissions when users specify cloudwatch log group through logConfiguration",
        detailsMd: `
    Currently, we automatically add a number of cloudwatch permissions to the task role when no cloudwatch log group is
    specified as logConfiguration and it will grant 'Resources': ['*'] to the task role.

    When this feature flag is enabled, we will only grant the necessary permissions when users specify cloudwatch log group.
    `,
        introducedIn: { v2: "2.159.0" },
        recommendedValue: true,
        compatibilityWithOldBehaviorMd: "Disable the feature flag to continue grant permissions to log group when no log group is specified"
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.DYNAMODB_TABLEV2_RESOURCE_POLICY_PER_REPLICA]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "When enabled will allow you to specify a resource policy per replica, and not copy the source table policy to all replicas",
        detailsMd: `
      If this flag is not set, the default behavior for \`TableV2\` is to use a different \`resourcePolicy\` for each replica.

      If this flag is set to false, the behavior is that each replica shares the same \`resourcePolicy\` as the source table.
      This will prevent you from creating a new table which has an additional replica and a resource policy.

      This is a feature flag as the old behavior was technically incorrect but users may have come to depend on it.`,
        introducedIn: { v2: "2.164.0" },
        recommendedValue: true
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.EC2_SUM_TIMEOUT_ENABLED]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "When enabled, initOptions.timeout and resourceSignalTimeout values will be summed together.",
        detailsMd: `
      Currently is both initOptions.timeout and resourceSignalTimeout are both specified in the options for creating an EC2 Instance,
      only the value from 'resourceSignalTimeout' will be used.

      When this feature flag is enabled, if both initOptions.timeout and resourceSignalTimeout are specified, the values will to be summed together.
      `,
        recommendedValue: true,
        introducedIn: { v2: "2.160.0" }
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.APPSYNC_GRAPHQLAPI_SCOPE_LAMBDA_FUNCTION_PERMISSION]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "When enabled, a Lambda authorizer Permission created when using GraphqlApi will be properly scoped with a SourceArn.",
        detailsMd: `
        Currently, when using a Lambda authorizer with an AppSync GraphQL API, the AWS CDK automatically generates the necessary AWS::Lambda::Permission
        to allow the AppSync API to invoke the Lambda authorizer. This permission is overly permissive because it lacks a SourceArn, meaning
        it allows invocations from any source.

        When this feature flag is enabled, the AWS::Lambda::Permission will be properly scoped with the SourceArn corresponding to the
        specific AppSync GraphQL API.
        `,
        recommendedValue: true,
        introducedIn: { v2: "2.161.0" }
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.USE_CORRECT_VALUE_FOR_INSTANCE_RESOURCE_ID_PROPERTY]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "When enabled, the value of property `instanceResourceId` in construct `DatabaseInstanceReadReplica` will be set to the correct value which is `DbiResourceId` instead of currently `DbInstanceArn`",
        detailsMd: `
      Currently, the value of the property 'instanceResourceId' in construct 'DatabaseInstanceReadReplica' is not correct, and set to 'DbInstanceArn' which is not correct when it is used to create the IAM Policy in the grantConnect method.

      When this feature flag is enabled, the value of that property will be as expected set to 'DbiResourceId' attribute, and that will fix the grantConnect method.
    `,
        introducedIn: { v2: "2.161.0" },
        recommendedValue: true,
        compatibilityWithOldBehaviorMd: "Disable the feature flag to use `DbInstanceArn` as value for property `instanceResourceId`"
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.CFN_INCLUDE_REJECT_COMPLEX_RESOURCE_UPDATE_CREATE_POLICY_INTRINSICS]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "When enabled, CFN templates added with `cfn-include` will error if the template contains Resource Update or Create policies with CFN Intrinsics that include non-primitive values.",
        detailsMd: `
    Without enabling this feature flag, \`cfn-include\` will silently drop resource update or create policies that contain CFN Intrinsics if they include non-primitive values.

    Enabling this feature flag will make \`cfn-include\` throw on these templates, unless you specify the logical ID of the resource in the 'unhydratedResources' property.
    `,
        recommendedValue: true,
        introducedIn: { v2: "2.161.0" }
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.LAMBDA_NODEJS_SDK_V3_EXCLUDE_SMITHY_PACKAGES]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "When enabled, both `@aws-sdk` and `@smithy` packages will be excluded from the Lambda Node.js 18.x runtime to prevent version mismatches in bundled applications.",
        detailsMd: `
      Currently, when bundling Lambda functions with the non-latest runtime that supports AWS SDK JavaScript (v3), only the '@aws-sdk/*' packages are excluded by default.
      However, this can cause version mismatches between the '@aws-sdk/*' and '@smithy/*' packages, as they are tightly coupled dependencies in AWS SDK v3.

      When this feature flag is enabled, both '@aws-sdk/*' and '@smithy/*' packages will be excluded during the bundling process. This ensures that no mismatches
      occur between these tightly coupled dependencies when using the AWS SDK v3 in Lambda functions.
    `,
        introducedIn: { v2: "2.161.0" },
        recommendedValue: true
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.STEPFUNCTIONS_TASKS_FIX_RUN_ECS_TASK_POLICY]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "When enabled, the resource of IAM Run Ecs policy generated by SFN EcsRunTask will reference the definition, instead of constructing ARN.",
        detailsMd: `
      Currently, in the IAM Run Ecs policy generated by SFN EcsRunTask(), CDK will construct the ARN with wildcard attached at the end.
      The revision number at the end will be replaced with a wildcard which it shouldn't.

      When this feature flag is enabled, if the task definition is created in the stack, the 'Resource' section will 'Ref' the taskDefinition.
    `,
        introducedIn: { v2: "2.163.0" },
        recommendedValue: true
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.BASTION_HOST_USE_AMAZON_LINUX_2023_BY_DEFAULT]: {
        type: flag_modeling_1.FlagType.ApiDefault,
        summary: "When enabled, the BastionHost construct will use the latest Amazon Linux 2023 AMI, instead of Amazon Linux 2.",
        detailsMd: `
      Currently, if the machineImage property of the BastionHost construct defaults to using the latest Amazon Linux 2
      AMI. Amazon Linux 2 hits end-of-life in June 2025, so using Amazon Linux 2023 by default is a more future-proof
      and secure option.

      When this feature flag is enabled, if you do not pass the machineImage property to the BastionHost construct,
      the latest Amazon Linux 2023 version will be used instead of Amazon Linux 2.
    `,
        introducedIn: { v2: "2.172.0" },
        recommendedValue: true,
        compatibilityWithOldBehaviorMd: "Disable the feature flag or explicitly pass an Amazon Linux 2 machine image to the BastionHost construct."
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.ASPECT_STABILIZATION]: {
        type: flag_modeling_1.FlagType.VisibleContext,
        summary: "When enabled, a stabilization loop will be run when invoking Aspects during synthesis.",
        detailsMd: `
      Currently, when Aspects are invoked in one single pass of the construct tree.
      This means that the Aspects that create other Aspects are not run and Aspects that create new nodes of the tree sometimes do not inherit their parent Aspects.

      When this feature flag is enabled, a stabilization loop is run to recurse the construct tree multiple times when invoking Aspects.
    `,
        unconfiguredBehavesLike: { v2: true },
        introducedIn: { v2: "2.172.0" },
        recommendedValue: true
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.USER_POOL_DOMAIN_NAME_METHOD_WITHOUT_CUSTOM_RESOURCE]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "When enabled, use a new method for DNS Name of user pool domain target without creating a custom resource.",
        detailsMd: `
    When this feature flag is enabled, a new method will be used to get the DNS Name of the user pool domain target. The old method
    creates a custom resource internally, but the new method doesn't need a custom resource.

    If the flag is set to false then a custom resource will be created when using \`UserPoolDomainTarget\`.
    `,
        introducedIn: { v2: "2.174.0" },
        recommendedValue: true
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.ALB_DUALSTACK_WITHOUT_PUBLIC_IPV4_SECURITY_GROUP_RULES_DEFAULT]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "When enabled, the default security group ingress rules will allow IPv6 ingress from anywhere",
        detailsMd: `
      For internet facing ALBs with 'dualstack-without-public-ipv4' IP address type, the default security group rules
      will allow IPv6 ingress from anywhere (::/0). Previously, the default security group rules would only allow IPv4 ingress.

      Using a feature flag to make sure existing customers who might be relying
      on the overly restrictive permissions are not broken.`,
        introducedIn: { v2: "2.176.0" },
        recommendedValue: true,
        compatibilityWithOldBehaviorMd: "Disable the feature flag to only allow IPv4 ingress in the default security group rules."
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.IAM_OIDC_REJECT_UNAUTHORIZED_CONNECTIONS]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "When enabled, the default behaviour of OIDC provider will reject unauthorized connections",
        detailsMd: `
      When this feature flag is enabled, the default behaviour of OIDC Provider's custom resource handler will
      default to reject unauthorized connections when downloading CA Certificates.

      When this feature flag is disabled, the behaviour will be the same as current and will allow downloading
      thumbprints from unsecure connections.`,
        introducedIn: { v2: "2.177.0" },
        recommendedValue: true,
        compatibilityWithOldBehaviorMd: "Disable the feature flag to allow unsecure OIDC connection."
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.ENABLE_ADDITIONAL_METADATA_COLLECTION]: {
        type: flag_modeling_1.FlagType.VisibleContext,
        summary: "When enabled, CDK will expand the scope of usage data collected to better inform CDK development and improve communication for security concerns and emerging issues.",
        detailsMd: `
    When this feature flag is enabled, CDK expands the scope of usage data collection to include the following:
      * L2 construct property keys - Collect which property keys you use from the L2 constructs in your app. This includes property keys nested in dictionary objects.
      * L2 construct property values of BOOL and ENUM types - Collect property key values of only BOOL and ENUM types. All other types, such as string values or construct references will be redacted.
      * L2 construct method usage - Collection method name, parameter keys and parameter values of BOOL and ENUM type.
    `,
        introducedIn: { v2: "2.178.0" },
        recommendedValue: true
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.LAMBDA_CREATE_NEW_POLICIES_WITH_ADDTOROLEPOLICY]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "[Deprecated] When enabled, Lambda will create new inline policies with AddToRolePolicy instead of adding to the Default Policy Statement",
        detailsMd: `
      [Deprecated default feature] When this feature flag is enabled, Lambda will create new inline policies with AddToRolePolicy.
      The purpose of this is to prevent lambda from creating a dependency on the Default Policy Statement.
      This solves an issue where a circular dependency could occur if adding lambda to something like a Cognito Trigger, then adding the User Pool to the lambda execution role permissions.
      However in the current implementation, we have removed a dependency of the lambda function on the policy. In addition to this, a Role will be attached to the Policy instead of an inline policy being attached to the role.
      This will create a data race condition in the CloudFormation template because the creation of the Lambda function no longer waits for the policy to be created. Having said that, we are not deprecating the feature (we are defaulting the feature flag to false for new stacks) since this feature can still be used to get around the circular dependency issue (issue-7016) particularly in cases where the lambda resource creation doesnt need to depend on the policy resource creation.
      We recommend to unset the feature flag if already set which will restore the original behavior.
    `,
        introducedIn: { v2: "2.180.0" },
        recommendedValue: false
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.SET_UNIQUE_REPLICATION_ROLE_NAME]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "When enabled, CDK will automatically generate a unique role name that is used for s3 object replication.",
        detailsMd: `
      When performing cross-account S3 replication, we need to explicitly specify a role name for the replication execution role.
      When this feature flag is enabled, a unique role name is specified only when performing cross-account replication.
      When disabled, 'CDKReplicationRole' is always specified.
    `,
        introducedIn: { v2: "2.182.0" },
        recommendedValue: true
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.PIPELINE_REDUCE_STAGE_ROLE_TRUST_SCOPE]: {
        type: flag_modeling_1.FlagType.ApiDefault,
        summary: "Remove the root account principal from Stage addActions trust policy",
        detailsMd: `
      When this feature flag is enabled, the root account principal will not be added to the trust policy of stage role.
      When this feature flag is disabled, it will keep the root account principal in the trust policy.

      For cross-account cases, when this feature flag is enabled the trust policy will be scoped to the role only.
      If you are providing a custom role, you will need to ensure 'roleName' is specified or set to PhysicalName.GENERATE_IF_NEEDED.
    `,
        introducedIn: { v2: "2.184.0" },
        unconfiguredBehavesLike: { v2: true },
        recommendedValue: true,
        compatibilityWithOldBehaviorMd: "Disable the feature flag to add the root account principal back"
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.EVENTBUS_POLICY_SID_REQUIRED]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "When enabled, grantPutEventsTo() will use resource policies with Statement IDs for service principals.",
        detailsMd: `
      Currently, when granting permissions to service principals using grantPutEventsTo(), the operation silently fails
      because service principals require resource policies with Statement IDs.

      When this flag is enabled:
      - Resource policies will be created with Statement IDs for service principals
      - The operation will succeed as expected

      When this flag is disabled:
      - A warning will be emitted
      - The grant operation will be dropped
      - No permissions will be added

      This fixes the issue where permissions were silently not being added for service principals.
    `,
        introducedIn: { v2: "2.186.0" },
        recommendedValue: true
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.ASPECT_PRIORITIES_MUTATING]: {
        type: flag_modeling_1.FlagType.ApiDefault,
        summary: "When set to true, Aspects added by the construct library on your behalf will be given a priority of MUTATING.",
        detailsMd: `
      Custom Aspects you add have a priority of DEFAULT (500) if you don't
      assign a more specific priority, which is higher than MUTATING (200). This
      is relevant if a custom Aspect you add and an Aspect added by CDK try to
      configure the same value.

      If this flag is set to false (old behavior), Aspects added by CDK are also
      added with a priority of DEFAULT; because their priorities are equal, the
      Aspects that is closest to the target construct executes last (either
      yours or the Aspect added by the CDK).

      If this flag is set to true (recommended behavior), Aspects added by CDK are added
      with a priority of MUTATING, and custom Aspects you add with DEFAULT
      priority will always execute last and "win" the write. If you need Aspects
      added by CDK to run after yours, your Aspect needs to have a priority of
      MUTATING or lower.

      This setting only applies to Aspects that were already being added for you
      before version 2.172.0. Aspects introduced since that version will always
      be added with a priority of MUTATING, independent of this feature flag.
    `,
        introducedIn: { v2: "2.189.1" },
        recommendedValue: true,
        compatibilityWithOldBehaviorMd: `
      To add mutating Aspects controlling construct values that can be overridden
      by Aspects added by CDK, give them MUTATING priority:

      \`\`\`
      Aspects.of(stack).add(new MyCustomAspect(), {
        priority: AspectPriority.MUTATING,
      });
      \`\`\`
    `
      },
      [exports2.DYNAMODB_TABLE_RETAIN_TABLE_REPLICA]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "When enabled, table replica will be default to the removal policy of source table unless specified otherwise.",
        detailsMd: `
      Currently, table replica will always be deleted when stack deletes regardless of source table's deletion policy.
      When enabled, table replica will be default to the removal policy of source table unless specified otherwise.
    `,
        introducedIn: { v2: "2.187.0" },
        recommendedValue: true
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.LOG_USER_POOL_CLIENT_SECRET_VALUE]: {
        type: flag_modeling_1.FlagType.ApiDefault,
        summary: "When disabled, the value of the user pool client secret will not be logged in the custom resource lambda function logs.",
        detailsMd: `
      When this feature flag is enabled, the SDK API call response to desribe user pool client values will be logged in the custom
      resource lambda function logs.

      When this feature flag is disabled, the SDK API call response to describe user pool client values will not be logged in the custom
      resource lambda function logs.
    `,
        introducedIn: { v2: "2.187.0" },
        unconfiguredBehavesLike: { v2: false },
        recommendedValue: false,
        compatibilityWithOldBehaviorMd: "Enable the feature flag to keep the old behavior and log the client secret values"
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.PIPELINE_REDUCE_CROSS_ACCOUNT_ACTION_ROLE_TRUST_SCOPE]: {
        type: flag_modeling_1.FlagType.ApiDefault,
        summary: "When enabled, scopes down the trust policy for the cross-account action role",
        detailsMd: `
        When this feature flag is enabled, the trust policy of the cross-account action role will be scoped to the pipeline role.
        If you are providing a custom role, you will need to ensure 'roleName' is specified or set to PhysicalName.GENERATE_IF_NEEDED.
        When this feature flag is disabled, it will keep the root account principal in the trust policy.
      `,
        introducedIn: { v2: "2.189.0" },
        unconfiguredBehavesLike: { v2: true },
        recommendedValue: true,
        compatibilityWithOldBehaviorMd: "Disable the feature flag to add the root account principal back"
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.STEPFUNCTIONS_USE_DISTRIBUTED_MAP_RESULT_WRITER_V2]: {
        type: flag_modeling_1.FlagType.ApiDefault,
        summary: "When enabled, the resultWriterV2 property of DistributedMap will be used insted of resultWriter",
        detailsMd: `
      When this feature flag is enabled, the resultWriterV2 property is used instead of resultWriter in DistributedMap class.
      resultWriterV2 uses ResultWriterV2 class in StepFunctions ASL and can have either Bucket/Prefix or WriterConfig or both.
    `,
        introducedIn: { v2: "2.188.0" },
        recommendedValue: true,
        compatibilityWithOldBehaviorMd: "Disable the feature flag and set resultWriter in DistributedMap"
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.S3_TRUST_KEY_POLICY_FOR_SNS_SUBSCRIPTIONS]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "Add an S3 trust policy to a KMS key resource policy for SNS subscriptions.",
        detailsMd: `
      When this feature flag is enabled, a S3 trust policy will be added to the KMS key resource policy for encrypted SNS subscriptions.
          `,
        introducedIn: { v2: "2.195.0" },
        recommendedValue: true
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.EC2_REQUIRE_PRIVATE_SUBNETS_FOR_EGRESSONLYINTERNETGATEWAY]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "When enabled, the EgressOnlyGateway resource is only created if private subnets are defined in the dual-stack VPC.",
        detailsMd: `
      When this feature flag is enabled, EgressOnlyGateway resource will not be created when you create a vpc with only public subnets.
          `,
        introducedIn: { v2: "2.196.0" },
        recommendedValue: true
      },
      /// ///////////////////////////////////////////////////////////////////
      [exports2.USE_RESOURCEID_FOR_VPCV2_MIGRATION]: {
        type: flag_modeling_1.FlagType.ApiDefault,
        summary: "When enabled, use resource IDs for VPC V2 migration",
        detailsMd: `
        When this feature flag is enabled, the VPC V2 migration will use resource IDs instead of getAtt references
        for migrating resources from VPC V1 to VPC V2. This helps ensure a smoother migration path between
        the two versions.
      `,
        introducedIn: { v2: "2.196.0" },
        recommendedValue: false,
        unconfiguredBehavesLike: { v2: false },
        compatibilityWithOldBehaviorMd: "Disable the feature flag to use getAtt references for VPC V2 migration"
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.S3_PUBLIC_ACCESS_BLOCKED_BY_DEFAULT]: {
        type: flag_modeling_1.FlagType.BugFix,
        summary: "When enabled, setting any combination of options for BlockPublicAccess will automatically set true for any options not defined.",
        detailsMd: `
      When BlockPublicAccess is not set at all, s3's default behavior will be to set all options to true in aws console.
      The previous behavior in cdk before this feature was; if only some of the BlockPublicAccessOptions were set (not all 4), then the ones undefined would default to false.
      This is counter intuitive to the console behavior where the options would start in true state and a user would uncheck the boxes as needed.
      The new behavior from this feature will allow a user, for example, to set 1 of the 4 BlockPublicAccessOpsions to false, and on deployment the other 3 will remain true.
    `,
        introducedIn: { v2: "2.196.0" },
        recommendedValue: true
      },
      //////////////////////////////////////////////////////////////////////
      [exports2.USE_CDK_MANAGED_LAMBDA_LOGGROUP]: {
        type: flag_modeling_1.FlagType.ApiDefault,
        summary: "When enabled, CDK creates and manages loggroup for the lambda function",
        detailsMd: `
        When this feature flag is enabled, CDK will create a loggroup for lambda function with default properties
        which supports CDK features Tag propagation, Property Injectors, Aspects
        if the cdk app doesnt pass a 'logRetention' or 'logGroup' explicitly.
        LogGroups created via 'logRetention' do not support Tag propagation, Property Injectors, Aspects.
        LogGroups created via 'logGroup' created in CDK support Tag propagation, Property Injectors, Aspects.

        When this feature flag is disabled, a loggroup is created by Lambda service on first invocation
        of the function (existing behavior).
        LogGroups created in this way do not support Tag propagation, Property Injectors, Aspects.

        DO NOT ENABLE: If you have and existing app defining a lambda function and
        have not supplied a logGroup or logRetention prop and your lambda function has
        executed at least once, the logGroup has been already created with the same name
        so your deployment will start failing.
        Refer aws-lambda/README.md for more details on Customizing Log Group creation.
      `,
        introducedIn: { v2: "2.200.0" },
        unconfiguredBehavesLike: { v2: false },
        recommendedValue: true,
        compatibilityWithOldBehaviorMd: "Disable the feature flag to let lambda service create logGroup or specify logGroup or logRetention"
      }
    };
    exports2.CURRENT_MV = "v2";
    exports2.CURRENT_VERSION_EXPIRED_FLAGS = Object.entries(exports2.FLAGS).filter(([_3, flag]) => flag.introducedIn[exports2.CURRENT_MV] === void 0).map(([name, _3]) => name).sort();
    exports2.CURRENTLY_RECOMMENDED_FLAGS = Object.fromEntries(Object.entries(exports2.FLAGS).filter(([_3, flag]) => flag.introducedIn[exports2.CURRENT_MV] !== void 0).filter(([_3, flag]) => flag.recommendedValue !== flag.unconfiguredBehavesLike?.[exports2.CURRENT_MV]).map(([name, flag]) => [name, flag.recommendedValue]));
    exports2.CURRENT_VERSION_FLAG_DEFAULTS = Object.fromEntries(Object.entries(exports2.FLAGS).filter(([_3, flag]) => flag.unconfiguredBehavesLike?.[exports2.CURRENT_MV] !== void 0).map(([name, flag]) => [name, flag.unconfiguredBehavesLike?.[exports2.CURRENT_MV]]));
    function futureFlagDefault2(flag) {
      const value = exports2.CURRENT_VERSION_FLAG_DEFAULTS[flag] ?? false;
      if (typeof value !== "boolean") {
        throw new Error(`futureFlagDefault: default type of flag '${flag}' should be boolean, got '${typeof value}'`);
      }
      return value;
    }
    __name(futureFlagDefault2, "futureFlagDefault");
    exports2.FUTURE_FLAGS_EXPIRED = exports2.CURRENT_VERSION_EXPIRED_FLAGS;
    exports2.FUTURE_FLAGS = Object.fromEntries(Object.entries(exports2.CURRENTLY_RECOMMENDED_FLAGS).filter(([_3, v6]) => typeof v6 === "boolean"));
    exports2.NEW_PROJECT_DEFAULT_CONTEXT = Object.fromEntries(Object.entries(exports2.CURRENTLY_RECOMMENDED_FLAGS).filter(([_3, v6]) => typeof v6 !== "boolean"));
  }
});

// ../../node_modules/@aws-cdk/cx-api/lib/placeholders.js
var require_placeholders = __commonJS({
  "../../node_modules/@aws-cdk/cx-api/lib/placeholders.js"(exports2) {
    "use strict";
    var _a2;
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.EnvironmentPlaceholders = void 0;
    var jsiiDeprecationWarnings = require_warnings_jsii();
    var JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
    var EnvironmentPlaceholders5 = class _EnvironmentPlaceholders {
      static {
        __name(this, "EnvironmentPlaceholders");
      }
      /**
       * Replace the environment placeholders in all strings found in a complex object.
       *
       * Duplicated between cdk-assets and aws-cdk CLI because we don't have a good single place to put it
       * (they're nominally independent tools).
       */
      static replace(object, values) {
        try {
          jsiiDeprecationWarnings._aws_cdk_cx_api_EnvironmentPlaceholderValues(values);
        } catch (error5) {
          if (process.env.JSII_DEBUG !== "1" && error5.name === "DeprecationError") {
            Error.captureStackTrace(error5, this.replace);
          }
          throw error5;
        }
        return this.recurse(object, (value) => {
          value = replaceAll(value, _EnvironmentPlaceholders.CURRENT_REGION, values.region);
          value = replaceAll(value, _EnvironmentPlaceholders.CURRENT_ACCOUNT, values.accountId);
          value = replaceAll(value, _EnvironmentPlaceholders.CURRENT_PARTITION, values.partition);
          return value;
        });
      }
      /**
       * Like 'replace', but asynchronous
       */
      static async replaceAsync(object, provider) {
        try {
          jsiiDeprecationWarnings._aws_cdk_cx_api_IEnvironmentPlaceholderProvider(provider);
        } catch (error5) {
          if (process.env.JSII_DEBUG !== "1" && error5.name === "DeprecationError") {
            Error.captureStackTrace(error5, this.replaceAsync);
          }
          throw error5;
        }
        let needRegion = false;
        let needAccountId = false;
        let needPartition = false;
        this.recurse(object, (value) => {
          if (value.indexOf(_EnvironmentPlaceholders.CURRENT_REGION) > 1) {
            needRegion = true;
          }
          if (value.indexOf(_EnvironmentPlaceholders.CURRENT_ACCOUNT) > 1) {
            needAccountId = true;
          }
          if (value.indexOf(_EnvironmentPlaceholders.CURRENT_PARTITION) > 1) {
            needPartition = true;
          }
          return value;
        });
        const region = needRegion ? await provider.region() : void 0;
        const accountId = needAccountId ? await provider.accountId() : void 0;
        const partition3 = needPartition ? await provider.partition() : void 0;
        return this.recurse(object, (value) => {
          value = replaceAll(value, _EnvironmentPlaceholders.CURRENT_REGION, region ?? "WONTHAPPEN");
          value = replaceAll(value, _EnvironmentPlaceholders.CURRENT_ACCOUNT, accountId ?? "WONTHAPPEN");
          value = replaceAll(value, _EnvironmentPlaceholders.CURRENT_PARTITION, partition3 ?? "WONTHAPPEN");
          return value;
        });
      }
      static recurse(value, cb) {
        if (typeof value === "string") {
          return cb(value);
        }
        if (typeof value !== "object" || value === null) {
          return value;
        }
        if (Array.isArray(value)) {
          return value.map((x3) => this.recurse(x3, cb));
        }
        const ret = {};
        for (const [key, inner] of Object.entries(value)) {
          ret[key] = this.recurse(inner, cb);
        }
        return ret;
      }
    };
    exports2.EnvironmentPlaceholders = EnvironmentPlaceholders5;
    _a2 = JSII_RTTI_SYMBOL_1;
    EnvironmentPlaceholders5[_a2] = { fqn: "@aws-cdk/cx-api.EnvironmentPlaceholders", version: "2.213.0" };
    EnvironmentPlaceholders5.CURRENT_REGION = "${AWS::Region}";
    EnvironmentPlaceholders5.CURRENT_ACCOUNT = "${AWS::AccountId}";
    EnvironmentPlaceholders5.CURRENT_PARTITION = "${AWS::Partition}";
    function replaceAll(s3, search, replace) {
      return s3.split(search).join(replace);
    }
    __name(replaceAll, "replaceAll");
  }
});

// ../../node_modules/@aws-cdk/cx-api/lib/app.js
var require_app = __commonJS({
  "../../node_modules/@aws-cdk/cx-api/lib/app.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.BUNDLING_STACKS = exports2.DISABLE_LOGICAL_ID_METADATA = exports2.DISABLE_METADATA_STACK_TRACE = exports2.DISABLE_ASSET_STAGING_CONTEXT = exports2.ANALYTICS_REPORTING_ENABLED_CONTEXT = exports2.PATH_METADATA_ENABLE_CONTEXT = void 0;
    exports2.PATH_METADATA_ENABLE_CONTEXT = "aws:cdk:enable-path-metadata";
    exports2.ANALYTICS_REPORTING_ENABLED_CONTEXT = "aws:cdk:version-reporting";
    exports2.DISABLE_ASSET_STAGING_CONTEXT = "aws:cdk:disable-asset-staging";
    exports2.DISABLE_METADATA_STACK_TRACE = "aws:cdk:disable-stack-trace";
    exports2.DISABLE_LOGICAL_ID_METADATA = "aws:cdk:disable-logicalId-metadata";
    exports2.BUNDLING_STACKS = "aws:cdk:bundling-stacks";
  }
});

// ../../node_modules/@aws-cdk/cx-api/lib/index.js
var require_lib3 = __commonJS({
  "../../node_modules/@aws-cdk/cx-api/lib/index.js"(exports2) {
    "use strict";
    var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      var desc = Object.getOwnPropertyDescriptor(m3, k3);
      if (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) {
        desc = { enumerable: true, get: /* @__PURE__ */ __name(function() {
          return m3[k3];
        }, "get") };
      }
      Object.defineProperty(o3, k22, desc);
    }) : (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      o3[k22] = m3[k3];
    }));
    var __exportStar3 = exports2 && exports2.__exportStar || function(m3, exports3) {
      for (var p3 in m3) if (p3 !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p3)) __createBinding3(exports3, m3, p3);
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    __exportStar3(require_cxapi(), exports2);
    __exportStar3(require_vpc(), exports2);
    __exportStar3(require_ami(), exports2);
    __exportStar3(require_load_balancer(), exports2);
    __exportStar3(require_availability_zones(), exports2);
    __exportStar3(require_endpoint_service_availability_zones(), exports2);
    __exportStar3(require_security_group(), exports2);
    __exportStar3(require_key(), exports2);
    __exportStar3(require_cloud_artifact(), exports2);
    require_cloud_artifact_aug();
    __exportStar3(require_asset_manifest_artifact(), exports2);
    __exportStar3(require_cloudformation_artifact(), exports2);
    __exportStar3(require_tree_cloud_artifact(), exports2);
    __exportStar3(require_nested_cloud_assembly_artifact(), exports2);
    require_nested_cloud_assembly_artifact_aug();
    __exportStar3(require_cloud_assembly(), exports2);
    __exportStar3(require_assets(), exports2);
    __exportStar3(require_environment(), exports2);
    __exportStar3(require_metadata(), exports2);
    __exportStar3(require_features(), exports2);
    __exportStar3(require_placeholders(), exports2);
    __exportStar3(require_app(), exports2);
  }
});

// ../../node_modules/universalify/index.js
var require_universalify = __commonJS({
  "../../node_modules/universalify/index.js"(exports2) {
    "use strict";
    exports2.fromCallback = function(fn) {
      return Object.defineProperty(function(...args) {
        if (typeof args[args.length - 1] === "function") fn.apply(this, args);
        else {
          return new Promise((resolve13, reject) => {
            args.push((err, res) => err != null ? reject(err) : resolve13(res));
            fn.apply(this, args);
          });
        }
      }, "name", { value: fn.name });
    };
    exports2.fromPromise = function(fn) {
      return Object.defineProperty(function(...args) {
        const cb = args[args.length - 1];
        if (typeof cb !== "function") return fn.apply(this, args);
        else {
          args.pop();
          fn.apply(this, args).then((r3) => cb(null, r3), cb);
        }
      }, "name", { value: fn.name });
    };
  }
});

// ../../node_modules/graceful-fs/polyfills.js
var require_polyfills = __commonJS({
  "../../node_modules/graceful-fs/polyfills.js"(exports2, module2) {
    var constants3 = require("constants");
    var origCwd = process.cwd;
    var cwd = null;
    var platform3 = process.env.GRACEFUL_FS_PLATFORM || process.platform;
    process.cwd = function() {
      if (!cwd)
        cwd = origCwd.call(process);
      return cwd;
    };
    try {
      process.cwd();
    } catch (er) {
    }
    if (typeof process.chdir === "function") {
      chdir = process.chdir;
      process.chdir = function(d3) {
        cwd = null;
        chdir.call(process, d3);
      };
      if (Object.setPrototypeOf) Object.setPrototypeOf(process.chdir, chdir);
    }
    var chdir;
    module2.exports = patch;
    function patch(fs43) {
      if (constants3.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
        patchLchmod(fs43);
      }
      if (!fs43.lutimes) {
        patchLutimes(fs43);
      }
      fs43.chown = chownFix(fs43.chown);
      fs43.fchown = chownFix(fs43.fchown);
      fs43.lchown = chownFix(fs43.lchown);
      fs43.chmod = chmodFix(fs43.chmod);
      fs43.fchmod = chmodFix(fs43.fchmod);
      fs43.lchmod = chmodFix(fs43.lchmod);
      fs43.chownSync = chownFixSync(fs43.chownSync);
      fs43.fchownSync = chownFixSync(fs43.fchownSync);
      fs43.lchownSync = chownFixSync(fs43.lchownSync);
      fs43.chmodSync = chmodFixSync(fs43.chmodSync);
      fs43.fchmodSync = chmodFixSync(fs43.fchmodSync);
      fs43.lchmodSync = chmodFixSync(fs43.lchmodSync);
      fs43.stat = statFix(fs43.stat);
      fs43.fstat = statFix(fs43.fstat);
      fs43.lstat = statFix(fs43.lstat);
      fs43.statSync = statFixSync(fs43.statSync);
      fs43.fstatSync = statFixSync(fs43.fstatSync);
      fs43.lstatSync = statFixSync(fs43.lstatSync);
      if (fs43.chmod && !fs43.lchmod) {
        fs43.lchmod = function(path38, mode, cb) {
          if (cb) process.nextTick(cb);
        };
        fs43.lchmodSync = function() {
        };
      }
      if (fs43.chown && !fs43.lchown) {
        fs43.lchown = function(path38, uid, gid, cb) {
          if (cb) process.nextTick(cb);
        };
        fs43.lchownSync = function() {
        };
      }
      if (platform3 === "win32") {
        fs43.rename = typeof fs43.rename !== "function" ? fs43.rename : (function(fs$rename) {
          function rename(from, to, cb) {
            var start = Date.now();
            var backoff = 0;
            fs$rename(from, to, /* @__PURE__ */ __name(function CB(er) {
              if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 6e4) {
                setTimeout(function() {
                  fs43.stat(to, function(stater, st) {
                    if (stater && stater.code === "ENOENT")
                      fs$rename(from, to, CB);
                    else
                      cb(er);
                  });
                }, backoff);
                if (backoff < 100)
                  backoff += 10;
                return;
              }
              if (cb) cb(er);
            }, "CB"));
          }
          __name(rename, "rename");
          if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename);
          return rename;
        })(fs43.rename);
      }
      fs43.read = typeof fs43.read !== "function" ? fs43.read : (function(fs$read) {
        function read(fd, buffer, offset, length, position, callback_) {
          var callback;
          if (callback_ && typeof callback_ === "function") {
            var eagCounter = 0;
            callback = /* @__PURE__ */ __name(function(er, _3, __) {
              if (er && er.code === "EAGAIN" && eagCounter < 10) {
                eagCounter++;
                return fs$read.call(fs43, fd, buffer, offset, length, position, callback);
              }
              callback_.apply(this, arguments);
            }, "callback");
          }
          return fs$read.call(fs43, fd, buffer, offset, length, position, callback);
        }
        __name(read, "read");
        if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read);
        return read;
      })(fs43.read);
      fs43.readSync = typeof fs43.readSync !== "function" ? fs43.readSync : /* @__PURE__ */ (function(fs$readSync) {
        return function(fd, buffer, offset, length, position) {
          var eagCounter = 0;
          while (true) {
            try {
              return fs$readSync.call(fs43, fd, buffer, offset, length, position);
            } catch (er) {
              if (er.code === "EAGAIN" && eagCounter < 10) {
                eagCounter++;
                continue;
              }
              throw er;
            }
          }
        };
      })(fs43.readSync);
      function patchLchmod(fs44) {
        fs44.lchmod = function(path38, mode, callback) {
          fs44.open(
            path38,
            constants3.O_WRONLY | constants3.O_SYMLINK,
            mode,
            function(err, fd) {
              if (err) {
                if (callback) callback(err);
                return;
              }
              fs44.fchmod(fd, mode, function(err2) {
                fs44.close(fd, function(err22) {
                  if (callback) callback(err2 || err22);
                });
              });
            }
          );
        };
        fs44.lchmodSync = function(path38, mode) {
          var fd = fs44.openSync(path38, constants3.O_WRONLY | constants3.O_SYMLINK, mode);
          var threw = true;
          var ret;
          try {
            ret = fs44.fchmodSync(fd, mode);
            threw = false;
          } finally {
            if (threw) {
              try {
                fs44.closeSync(fd);
              } catch (er) {
              }
            } else {
              fs44.closeSync(fd);
            }
          }
          return ret;
        };
      }
      __name(patchLchmod, "patchLchmod");
      function patchLutimes(fs44) {
        if (constants3.hasOwnProperty("O_SYMLINK") && fs44.futimes) {
          fs44.lutimes = function(path38, at, mt, cb) {
            fs44.open(path38, constants3.O_SYMLINK, function(er, fd) {
              if (er) {
                if (cb) cb(er);
                return;
              }
              fs44.futimes(fd, at, mt, function(er2) {
                fs44.close(fd, function(er22) {
                  if (cb) cb(er2 || er22);
                });
              });
            });
          };
          fs44.lutimesSync = function(path38, at, mt) {
            var fd = fs44.openSync(path38, constants3.O_SYMLINK);
            var ret;
            var threw = true;
            try {
              ret = fs44.futimesSync(fd, at, mt);
              threw = false;
            } finally {
              if (threw) {
                try {
                  fs44.closeSync(fd);
                } catch (er) {
                }
              } else {
                fs44.closeSync(fd);
              }
            }
            return ret;
          };
        } else if (fs44.futimes) {
          fs44.lutimes = function(_a2, _b, _c, cb) {
            if (cb) process.nextTick(cb);
          };
          fs44.lutimesSync = function() {
          };
        }
      }
      __name(patchLutimes, "patchLutimes");
      function chmodFix(orig) {
        if (!orig) return orig;
        return function(target, mode, cb) {
          return orig.call(fs43, target, mode, function(er) {
            if (chownErOk(er)) er = null;
            if (cb) cb.apply(this, arguments);
          });
        };
      }
      __name(chmodFix, "chmodFix");
      function chmodFixSync(orig) {
        if (!orig) return orig;
        return function(target, mode) {
          try {
            return orig.call(fs43, target, mode);
          } catch (er) {
            if (!chownErOk(er)) throw er;
          }
        };
      }
      __name(chmodFixSync, "chmodFixSync");
      function chownFix(orig) {
        if (!orig) return orig;
        return function(target, uid, gid, cb) {
          return orig.call(fs43, target, uid, gid, function(er) {
            if (chownErOk(er)) er = null;
            if (cb) cb.apply(this, arguments);
          });
        };
      }
      __name(chownFix, "chownFix");
      function chownFixSync(orig) {
        if (!orig) return orig;
        return function(target, uid, gid) {
          try {
            return orig.call(fs43, target, uid, gid);
          } catch (er) {
            if (!chownErOk(er)) throw er;
          }
        };
      }
      __name(chownFixSync, "chownFixSync");
      function statFix(orig) {
        if (!orig) return orig;
        return function(target, options, cb) {
          if (typeof options === "function") {
            cb = options;
            options = null;
          }
          function callback(er, stats) {
            if (stats) {
              if (stats.uid < 0) stats.uid += 4294967296;
              if (stats.gid < 0) stats.gid += 4294967296;
            }
            if (cb) cb.apply(this, arguments);
          }
          __name(callback, "callback");
          return options ? orig.call(fs43, target, options, callback) : orig.call(fs43, target, callback);
        };
      }
      __name(statFix, "statFix");
      function statFixSync(orig) {
        if (!orig) return orig;
        return function(target, options) {
          var stats = options ? orig.call(fs43, target, options) : orig.call(fs43, target);
          if (stats) {
            if (stats.uid < 0) stats.uid += 4294967296;
            if (stats.gid < 0) stats.gid += 4294967296;
          }
          return stats;
        };
      }
      __name(statFixSync, "statFixSync");
      function chownErOk(er) {
        if (!er)
          return true;
        if (er.code === "ENOSYS")
          return true;
        var nonroot = !process.getuid || process.getuid() !== 0;
        if (nonroot) {
          if (er.code === "EINVAL" || er.code === "EPERM")
            return true;
        }
        return false;
      }
      __name(chownErOk, "chownErOk");
    }
    __name(patch, "patch");
  }
});

// ../../node_modules/graceful-fs/legacy-streams.js
var require_legacy_streams = __commonJS({
  "../../node_modules/graceful-fs/legacy-streams.js"(exports2, module2) {
    var Stream2 = require("stream").Stream;
    module2.exports = legacy;
    function legacy(fs43) {
      return {
        ReadStream,
        WriteStream
      };
      function ReadStream(path38, options) {
        if (!(this instanceof ReadStream)) return new ReadStream(path38, options);
        Stream2.call(this);
        var self2 = this;
        this.path = path38;
        this.fd = null;
        this.readable = true;
        this.paused = false;
        this.flags = "r";
        this.mode = 438;
        this.bufferSize = 64 * 1024;
        options = options || {};
        var keys = Object.keys(options);
        for (var index = 0, length = keys.length; index < length; index++) {
          var key = keys[index];
          this[key] = options[key];
        }
        if (this.encoding) this.setEncoding(this.encoding);
        if (this.start !== void 0) {
          if ("number" !== typeof this.start) {
            throw TypeError("start must be a Number");
          }
          if (this.end === void 0) {
            this.end = Infinity;
          } else if ("number" !== typeof this.end) {
            throw TypeError("end must be a Number");
          }
          if (this.start > this.end) {
            throw new Error("start must be <= end");
          }
          this.pos = this.start;
        }
        if (this.fd !== null) {
          process.nextTick(function() {
            self2._read();
          });
          return;
        }
        fs43.open(this.path, this.flags, this.mode, function(err, fd) {
          if (err) {
            self2.emit("error", err);
            self2.readable = false;
            return;
          }
          self2.fd = fd;
          self2.emit("open", fd);
          self2._read();
        });
      }
      __name(ReadStream, "ReadStream");
      function WriteStream(path38, options) {
        if (!(this instanceof WriteStream)) return new WriteStream(path38, options);
        Stream2.call(this);
        this.path = path38;
        this.fd = null;
        this.writable = true;
        this.flags = "w";
        this.encoding = "binary";
        this.mode = 438;
        this.bytesWritten = 0;
        options = options || {};
        var keys = Object.keys(options);
        for (var index = 0, length = keys.length; index < length; index++) {
          var key = keys[index];
          this[key] = options[key];
        }
        if (this.start !== void 0) {
          if ("number" !== typeof this.start) {
            throw TypeError("start must be a Number");
          }
          if (this.start < 0) {
            throw new Error("start must be >= zero");
          }
          this.pos = this.start;
        }
        this.busy = false;
        this._queue = [];
        if (this.fd === null) {
          this._open = fs43.open;
          this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
          this.flush();
        }
      }
      __name(WriteStream, "WriteStream");
    }
    __name(legacy, "legacy");
  }
});

// ../../node_modules/graceful-fs/clone.js
var require_clone = __commonJS({
  "../../node_modules/graceful-fs/clone.js"(exports2, module2) {
    "use strict";
    module2.exports = clone;
    var getPrototypeOf = Object.getPrototypeOf || function(obj) {
      return obj.__proto__;
    };
    function clone(obj) {
      if (obj === null || typeof obj !== "object")
        return obj;
      if (obj instanceof Object)
        var copy2 = { __proto__: getPrototypeOf(obj) };
      else
        var copy2 = /* @__PURE__ */ Object.create(null);
      Object.getOwnPropertyNames(obj).forEach(function(key) {
        Object.defineProperty(copy2, key, Object.getOwnPropertyDescriptor(obj, key));
      });
      return copy2;
    }
    __name(clone, "clone");
  }
});

// ../../node_modules/graceful-fs/graceful-fs.js
var require_graceful_fs = __commonJS({
  "../../node_modules/graceful-fs/graceful-fs.js"(exports2, module2) {
    var fs43 = require("fs");
    var polyfills = require_polyfills();
    var legacy = require_legacy_streams();
    var clone = require_clone();
    var util11 = require("util");
    var gracefulQueue;
    var previousSymbol;
    if (typeof Symbol === "function" && typeof Symbol.for === "function") {
      gracefulQueue = Symbol.for("graceful-fs.queue");
      previousSymbol = Symbol.for("graceful-fs.previous");
    } else {
      gracefulQueue = "___graceful-fs.queue";
      previousSymbol = "___graceful-fs.previous";
    }
    function noop() {
    }
    __name(noop, "noop");
    function publishQueue(context, queue2) {
      Object.defineProperty(context, gracefulQueue, {
        get: /* @__PURE__ */ __name(function() {
          return queue2;
        }, "get")
      });
    }
    __name(publishQueue, "publishQueue");
    var debug3 = noop;
    if (util11.debuglog)
      debug3 = util11.debuglog("gfs4");
    else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || ""))
      debug3 = /* @__PURE__ */ __name(function() {
        var m3 = util11.format.apply(util11, arguments);
        m3 = "GFS4: " + m3.split(/\n/).join("\nGFS4: ");
        console.error(m3);
      }, "debug");
    if (!fs43[gracefulQueue]) {
      queue = global[gracefulQueue] || [];
      publishQueue(fs43, queue);
      fs43.close = (function(fs$close) {
        function close(fd, cb) {
          return fs$close.call(fs43, fd, function(err) {
            if (!err) {
              resetQueue();
            }
            if (typeof cb === "function")
              cb.apply(this, arguments);
          });
        }
        __name(close, "close");
        Object.defineProperty(close, previousSymbol, {
          value: fs$close
        });
        return close;
      })(fs43.close);
      fs43.closeSync = (function(fs$closeSync) {
        function closeSync(fd) {
          fs$closeSync.apply(fs43, arguments);
          resetQueue();
        }
        __name(closeSync, "closeSync");
        Object.defineProperty(closeSync, previousSymbol, {
          value: fs$closeSync
        });
        return closeSync;
      })(fs43.closeSync);
      if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
        process.on("exit", function() {
          debug3(fs43[gracefulQueue]);
          require("assert").equal(fs43[gracefulQueue].length, 0);
        });
      }
    }
    var queue;
    if (!global[gracefulQueue]) {
      publishQueue(global, fs43[gracefulQueue]);
    }
    module2.exports = patch(clone(fs43));
    if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs43.__patched) {
      module2.exports = patch(fs43);
      fs43.__patched = true;
    }
    function patch(fs44) {
      polyfills(fs44);
      fs44.gracefulify = patch;
      fs44.createReadStream = createReadStream2;
      fs44.createWriteStream = createWriteStream3;
      var fs$readFile = fs44.readFile;
      fs44.readFile = readFile5;
      function readFile5(path38, options, cb) {
        if (typeof options === "function")
          cb = options, options = null;
        return go$readFile(path38, options, cb);
        function go$readFile(path39, options2, cb2, startTime) {
          return fs$readFile(path39, options2, function(err) {
            if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
              enqueue([go$readFile, [path39, options2, cb2], err, startTime || Date.now(), Date.now()]);
            else {
              if (typeof cb2 === "function")
                cb2.apply(this, arguments);
            }
          });
        }
        __name(go$readFile, "go$readFile");
      }
      __name(readFile5, "readFile");
      var fs$writeFile = fs44.writeFile;
      fs44.writeFile = writeFile5;
      function writeFile5(path38, data3, options, cb) {
        if (typeof options === "function")
          cb = options, options = null;
        return go$writeFile(path38, data3, options, cb);
        function go$writeFile(path39, data4, options2, cb2, startTime) {
          return fs$writeFile(path39, data4, options2, function(err) {
            if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
              enqueue([go$writeFile, [path39, data4, options2, cb2], err, startTime || Date.now(), Date.now()]);
            else {
              if (typeof cb2 === "function")
                cb2.apply(this, arguments);
            }
          });
        }
        __name(go$writeFile, "go$writeFile");
      }
      __name(writeFile5, "writeFile");
      var fs$appendFile = fs44.appendFile;
      if (fs$appendFile)
        fs44.appendFile = appendFile;
      function appendFile(path38, data3, options, cb) {
        if (typeof options === "function")
          cb = options, options = null;
        return go$appendFile(path38, data3, options, cb);
        function go$appendFile(path39, data4, options2, cb2, startTime) {
          return fs$appendFile(path39, data4, options2, function(err) {
            if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
              enqueue([go$appendFile, [path39, data4, options2, cb2], err, startTime || Date.now(), Date.now()]);
            else {
              if (typeof cb2 === "function")
                cb2.apply(this, arguments);
            }
          });
        }
        __name(go$appendFile, "go$appendFile");
      }
      __name(appendFile, "appendFile");
      var fs$copyFile = fs44.copyFile;
      if (fs$copyFile)
        fs44.copyFile = copyFile;
      function copyFile(src, dest, flags, cb) {
        if (typeof flags === "function") {
          cb = flags;
          flags = 0;
        }
        return go$copyFile(src, dest, flags, cb);
        function go$copyFile(src2, dest2, flags2, cb2, startTime) {
          return fs$copyFile(src2, dest2, flags2, function(err) {
            if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
              enqueue([go$copyFile, [src2, dest2, flags2, cb2], err, startTime || Date.now(), Date.now()]);
            else {
              if (typeof cb2 === "function")
                cb2.apply(this, arguments);
            }
          });
        }
        __name(go$copyFile, "go$copyFile");
      }
      __name(copyFile, "copyFile");
      var fs$readdir = fs44.readdir;
      fs44.readdir = readdir3;
      var noReaddirOptionVersions = /^v[0-5]\./;
      function readdir3(path38, options, cb) {
        if (typeof options === "function")
          cb = options, options = null;
        var go$readdir = noReaddirOptionVersions.test(process.version) ? /* @__PURE__ */ __name(function go$readdir2(path39, options2, cb2, startTime) {
          return fs$readdir(path39, fs$readdirCallback(
            path39,
            options2,
            cb2,
            startTime
          ));
        }, "go$readdir") : /* @__PURE__ */ __name(function go$readdir2(path39, options2, cb2, startTime) {
          return fs$readdir(path39, options2, fs$readdirCallback(
            path39,
            options2,
            cb2,
            startTime
          ));
        }, "go$readdir");
        return go$readdir(path38, options, cb);
        function fs$readdirCallback(path39, options2, cb2, startTime) {
          return function(err, files) {
            if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
              enqueue([
                go$readdir,
                [path39, options2, cb2],
                err,
                startTime || Date.now(),
                Date.now()
              ]);
            else {
              if (files && files.sort)
                files.sort();
              if (typeof cb2 === "function")
                cb2.call(this, err, files);
            }
          };
        }
        __name(fs$readdirCallback, "fs$readdirCallback");
      }
      __name(readdir3, "readdir");
      if (process.version.substr(0, 4) === "v0.8") {
        var legStreams = legacy(fs44);
        ReadStream = legStreams.ReadStream;
        WriteStream = legStreams.WriteStream;
      }
      var fs$ReadStream = fs44.ReadStream;
      if (fs$ReadStream) {
        ReadStream.prototype = Object.create(fs$ReadStream.prototype);
        ReadStream.prototype.open = ReadStream$open;
      }
      var fs$WriteStream = fs44.WriteStream;
      if (fs$WriteStream) {
        WriteStream.prototype = Object.create(fs$WriteStream.prototype);
        WriteStream.prototype.open = WriteStream$open;
      }
      Object.defineProperty(fs44, "ReadStream", {
        get: /* @__PURE__ */ __name(function() {
          return ReadStream;
        }, "get"),
        set: /* @__PURE__ */ __name(function(val) {
          ReadStream = val;
        }, "set"),
        enumerable: true,
        configurable: true
      });
      Object.defineProperty(fs44, "WriteStream", {
        get: /* @__PURE__ */ __name(function() {
          return WriteStream;
        }, "get"),
        set: /* @__PURE__ */ __name(function(val) {
          WriteStream = val;
        }, "set"),
        enumerable: true,
        configurable: true
      });
      var FileReadStream = ReadStream;
      Object.defineProperty(fs44, "FileReadStream", {
        get: /* @__PURE__ */ __name(function() {
          return FileReadStream;
        }, "get"),
        set: /* @__PURE__ */ __name(function(val) {
          FileReadStream = val;
        }, "set"),
        enumerable: true,
        configurable: true
      });
      var FileWriteStream = WriteStream;
      Object.defineProperty(fs44, "FileWriteStream", {
        get: /* @__PURE__ */ __name(function() {
          return FileWriteStream;
        }, "get"),
        set: /* @__PURE__ */ __name(function(val) {
          FileWriteStream = val;
        }, "set"),
        enumerable: true,
        configurable: true
      });
      function ReadStream(path38, options) {
        if (this instanceof ReadStream)
          return fs$ReadStream.apply(this, arguments), this;
        else
          return ReadStream.apply(Object.create(ReadStream.prototype), arguments);
      }
      __name(ReadStream, "ReadStream");
      function ReadStream$open() {
        var that = this;
        open(that.path, that.flags, that.mode, function(err, fd) {
          if (err) {
            if (that.autoClose)
              that.destroy();
            that.emit("error", err);
          } else {
            that.fd = fd;
            that.emit("open", fd);
            that.read();
          }
        });
      }
      __name(ReadStream$open, "ReadStream$open");
      function WriteStream(path38, options) {
        if (this instanceof WriteStream)
          return fs$WriteStream.apply(this, arguments), this;
        else
          return WriteStream.apply(Object.create(WriteStream.prototype), arguments);
      }
      __name(WriteStream, "WriteStream");
      function WriteStream$open() {
        var that = this;
        open(that.path, that.flags, that.mode, function(err, fd) {
          if (err) {
            that.destroy();
            that.emit("error", err);
          } else {
            that.fd = fd;
            that.emit("open", fd);
          }
        });
      }
      __name(WriteStream$open, "WriteStream$open");
      function createReadStream2(path38, options) {
        return new fs44.ReadStream(path38, options);
      }
      __name(createReadStream2, "createReadStream");
      function createWriteStream3(path38, options) {
        return new fs44.WriteStream(path38, options);
      }
      __name(createWriteStream3, "createWriteStream");
      var fs$open = fs44.open;
      fs44.open = open;
      function open(path38, flags, mode, cb) {
        if (typeof mode === "function")
          cb = mode, mode = null;
        return go$open(path38, flags, mode, cb);
        function go$open(path39, flags2, mode2, cb2, startTime) {
          return fs$open(path39, flags2, mode2, function(err, fd) {
            if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
              enqueue([go$open, [path39, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
            else {
              if (typeof cb2 === "function")
                cb2.apply(this, arguments);
            }
          });
        }
        __name(go$open, "go$open");
      }
      __name(open, "open");
      return fs44;
    }
    __name(patch, "patch");
    function enqueue(elem) {
      debug3("ENQUEUE", elem[0].name, elem[1]);
      fs43[gracefulQueue].push(elem);
      retry();
    }
    __name(enqueue, "enqueue");
    var retryTimer;
    function resetQueue() {
      var now = Date.now();
      for (var i3 = 0; i3 < fs43[gracefulQueue].length; ++i3) {
        if (fs43[gracefulQueue][i3].length > 2) {
          fs43[gracefulQueue][i3][3] = now;
          fs43[gracefulQueue][i3][4] = now;
        }
      }
      retry();
    }
    __name(resetQueue, "resetQueue");
    function retry() {
      clearTimeout(retryTimer);
      retryTimer = void 0;
      if (fs43[gracefulQueue].length === 0)
        return;
      var elem = fs43[gracefulQueue].shift();
      var fn = elem[0];
      var args = elem[1];
      var err = elem[2];
      var startTime = elem[3];
      var lastTime = elem[4];
      if (startTime === void 0) {
        debug3("RETRY", fn.name, args);
        fn.apply(null, args);
      } else if (Date.now() - startTime >= 6e4) {
        debug3("TIMEOUT", fn.name, args);
        var cb = args.pop();
        if (typeof cb === "function")
          cb.call(null, err);
      } else {
        var sinceAttempt = Date.now() - lastTime;
        var sinceStart = Math.max(lastTime - startTime, 1);
        var desiredDelay = Math.min(sinceStart * 1.2, 100);
        if (sinceAttempt >= desiredDelay) {
          debug3("RETRY", fn.name, args);
          fn.apply(null, args.concat([startTime]));
        } else {
          fs43[gracefulQueue].push(elem);
        }
      }
      if (retryTimer === void 0) {
        retryTimer = setTimeout(retry, 0);
      }
    }
    __name(retry, "retry");
  }
});

// ../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/fs/index.js
var require_fs = __commonJS({
  "../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/fs/index.js"(exports2) {
    "use strict";
    var u3 = require_universalify().fromCallback;
    var fs43 = require_graceful_fs();
    var api = [
      "access",
      "appendFile",
      "chmod",
      "chown",
      "close",
      "copyFile",
      "fchmod",
      "fchown",
      "fdatasync",
      "fstat",
      "fsync",
      "ftruncate",
      "futimes",
      "lchmod",
      "lchown",
      "link",
      "lstat",
      "mkdir",
      "mkdtemp",
      "open",
      "opendir",
      "readdir",
      "readFile",
      "readlink",
      "realpath",
      "rename",
      "rm",
      "rmdir",
      "stat",
      "symlink",
      "truncate",
      "unlink",
      "utimes",
      "writeFile"
    ].filter((key) => {
      return typeof fs43[key] === "function";
    });
    Object.keys(fs43).forEach((key) => {
      if (key === "promises") {
        return;
      }
      exports2[key] = fs43[key];
    });
    api.forEach((method) => {
      exports2[method] = u3(fs43[method]);
    });
    exports2.exists = function(filename, callback) {
      if (typeof callback === "function") {
        return fs43.exists(filename, callback);
      }
      return new Promise((resolve13) => {
        return fs43.exists(filename, resolve13);
      });
    };
    exports2.read = function(fd, buffer, offset, length, position, callback) {
      if (typeof callback === "function") {
        return fs43.read(fd, buffer, offset, length, position, callback);
      }
      return new Promise((resolve13, reject) => {
        fs43.read(fd, buffer, offset, length, position, (err, bytesRead, buffer2) => {
          if (err) return reject(err);
          resolve13({ bytesRead, buffer: buffer2 });
        });
      });
    };
    exports2.write = function(fd, buffer, ...args) {
      if (typeof args[args.length - 1] === "function") {
        return fs43.write(fd, buffer, ...args);
      }
      return new Promise((resolve13, reject) => {
        fs43.write(fd, buffer, ...args, (err, bytesWritten, buffer2) => {
          if (err) return reject(err);
          resolve13({ bytesWritten, buffer: buffer2 });
        });
      });
    };
    if (typeof fs43.writev === "function") {
      exports2.writev = function(fd, buffers, ...args) {
        if (typeof args[args.length - 1] === "function") {
          return fs43.writev(fd, buffers, ...args);
        }
        return new Promise((resolve13, reject) => {
          fs43.writev(fd, buffers, ...args, (err, bytesWritten, buffers2) => {
            if (err) return reject(err);
            resolve13({ bytesWritten, buffers: buffers2 });
          });
        });
      };
    }
    if (typeof fs43.realpath.native === "function") {
      exports2.realpath.native = u3(fs43.realpath.native);
    }
  }
});

// ../../node_modules/at-least-node/index.js
var require_at_least_node = __commonJS({
  "../../node_modules/at-least-node/index.js"(exports2, module2) {
    module2.exports = (r3) => {
      const n3 = process.versions.node.split(".").map((x3) => parseInt(x3, 10));
      r3 = r3.split(".").map((x3) => parseInt(x3, 10));
      return n3[0] > r3[0] || n3[0] === r3[0] && (n3[1] > r3[1] || n3[1] === r3[1] && n3[2] >= r3[2]);
    };
  }
});

// ../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/mkdirs/make-dir.js
var require_make_dir = __commonJS({
  "../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/mkdirs/make-dir.js"(exports2, module2) {
    "use strict";
    var fs43 = require_fs();
    var path38 = require("path");
    var atLeastNode = require_at_least_node();
    var useNativeRecursiveOption = atLeastNode("10.12.0");
    var checkPath = /* @__PURE__ */ __name((pth) => {
      if (process.platform === "win32") {
        const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path38.parse(pth).root, ""));
        if (pathHasInvalidWinCharacters) {
          const error5 = new Error(`Path contains invalid characters: ${pth}`);
          error5.code = "EINVAL";
          throw error5;
        }
      }
    }, "checkPath");
    var processOptions = /* @__PURE__ */ __name((options) => {
      const defaults4 = { mode: 511 };
      if (typeof options === "number") options = { mode: options };
      return { ...defaults4, ...options };
    }, "processOptions");
    var permissionError = /* @__PURE__ */ __name((pth) => {
      const error5 = new Error(`operation not permitted, mkdir '${pth}'`);
      error5.code = "EPERM";
      error5.errno = -4048;
      error5.path = pth;
      error5.syscall = "mkdir";
      return error5;
    }, "permissionError");
    module2.exports.makeDir = async (input, options) => {
      checkPath(input);
      options = processOptions(options);
      if (useNativeRecursiveOption) {
        const pth = path38.resolve(input);
        return fs43.mkdir(pth, {
          mode: options.mode,
          recursive: true
        });
      }
      const make = /* @__PURE__ */ __name(async (pth) => {
        try {
          await fs43.mkdir(pth, options.mode);
        } catch (error5) {
          if (error5.code === "EPERM") {
            throw error5;
          }
          if (error5.code === "ENOENT") {
            if (path38.dirname(pth) === pth) {
              throw permissionError(pth);
            }
            if (error5.message.includes("null bytes")) {
              throw error5;
            }
            await make(path38.dirname(pth));
            return make(pth);
          }
          try {
            const stats = await fs43.stat(pth);
            if (!stats.isDirectory()) {
              throw new Error("The path is not a directory");
            }
          } catch {
            throw error5;
          }
        }
      }, "make");
      return make(path38.resolve(input));
    };
    module2.exports.makeDirSync = (input, options) => {
      checkPath(input);
      options = processOptions(options);
      if (useNativeRecursiveOption) {
        const pth = path38.resolve(input);
        return fs43.mkdirSync(pth, {
          mode: options.mode,
          recursive: true
        });
      }
      const make = /* @__PURE__ */ __name((pth) => {
        try {
          fs43.mkdirSync(pth, options.mode);
        } catch (error5) {
          if (error5.code === "EPERM") {
            throw error5;
          }
          if (error5.code === "ENOENT") {
            if (path38.dirname(pth) === pth) {
              throw permissionError(pth);
            }
            if (error5.message.includes("null bytes")) {
              throw error5;
            }
            make(path38.dirname(pth));
            return make(pth);
          }
          try {
            if (!fs43.statSync(pth).isDirectory()) {
              throw new Error("The path is not a directory");
            }
          } catch {
            throw error5;
          }
        }
      }, "make");
      return make(path38.resolve(input));
    };
  }
});

// ../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/mkdirs/index.js
var require_mkdirs = __commonJS({
  "../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/mkdirs/index.js"(exports2, module2) {
    "use strict";
    var u3 = require_universalify().fromPromise;
    var { makeDir: _makeDir, makeDirSync } = require_make_dir();
    var makeDir = u3(_makeDir);
    module2.exports = {
      mkdirs: makeDir,
      mkdirsSync: makeDirSync,
      // alias
      mkdirp: makeDir,
      mkdirpSync: makeDirSync,
      ensureDir: makeDir,
      ensureDirSync: makeDirSync
    };
  }
});

// ../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/util/utimes.js
var require_utimes = __commonJS({
  "../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/util/utimes.js"(exports2, module2) {
    "use strict";
    var fs43 = require_graceful_fs();
    function utimesMillis(path38, atime, mtime, callback) {
      fs43.open(path38, "r+", (err, fd) => {
        if (err) return callback(err);
        fs43.futimes(fd, atime, mtime, (futimesErr) => {
          fs43.close(fd, (closeErr) => {
            if (callback) callback(futimesErr || closeErr);
          });
        });
      });
    }
    __name(utimesMillis, "utimesMillis");
    function utimesMillisSync(path38, atime, mtime) {
      const fd = fs43.openSync(path38, "r+");
      fs43.futimesSync(fd, atime, mtime);
      return fs43.closeSync(fd);
    }
    __name(utimesMillisSync, "utimesMillisSync");
    module2.exports = {
      utimesMillis,
      utimesMillisSync
    };
  }
});

// ../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/util/stat.js
var require_stat = __commonJS({
  "../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/util/stat.js"(exports2, module2) {
    "use strict";
    var fs43 = require_fs();
    var path38 = require("path");
    var util11 = require("util");
    var atLeastNode = require_at_least_node();
    var nodeSupportsBigInt = atLeastNode("10.5.0");
    var stat5 = /* @__PURE__ */ __name((file) => nodeSupportsBigInt ? fs43.stat(file, { bigint: true }) : fs43.stat(file), "stat");
    var statSync2 = /* @__PURE__ */ __name((file) => nodeSupportsBigInt ? fs43.statSync(file, { bigint: true }) : fs43.statSync(file), "statSync");
    function getStats(src, dest) {
      return Promise.all([
        stat5(src),
        stat5(dest).catch((err) => {
          if (err.code === "ENOENT") return null;
          throw err;
        })
      ]).then(([srcStat, destStat]) => ({ srcStat, destStat }));
    }
    __name(getStats, "getStats");
    function getStatsSync(src, dest) {
      let destStat;
      const srcStat = statSync2(src);
      try {
        destStat = statSync2(dest);
      } catch (err) {
        if (err.code === "ENOENT") return { srcStat, destStat: null };
        throw err;
      }
      return { srcStat, destStat };
    }
    __name(getStatsSync, "getStatsSync");
    function checkPaths(src, dest, funcName, cb) {
      util11.callbackify(getStats)(src, dest, (err, stats) => {
        if (err) return cb(err);
        const { srcStat, destStat } = stats;
        if (destStat && areIdentical(srcStat, destStat)) {
          return cb(new Error("Source and destination must not be the same."));
        }
        if (srcStat.isDirectory() && isSrcSubdir(src, dest)) {
          return cb(new Error(errMsg(src, dest, funcName)));
        }
        return cb(null, { srcStat, destStat });
      });
    }
    __name(checkPaths, "checkPaths");
    function checkPathsSync(src, dest, funcName) {
      const { srcStat, destStat } = getStatsSync(src, dest);
      if (destStat && areIdentical(srcStat, destStat)) {
        throw new Error("Source and destination must not be the same.");
      }
      if (srcStat.isDirectory() && isSrcSubdir(src, dest)) {
        throw new Error(errMsg(src, dest, funcName));
      }
      return { srcStat, destStat };
    }
    __name(checkPathsSync, "checkPathsSync");
    function checkParentPaths(src, srcStat, dest, funcName, cb) {
      const srcParent = path38.resolve(path38.dirname(src));
      const destParent = path38.resolve(path38.dirname(dest));
      if (destParent === srcParent || destParent === path38.parse(destParent).root) return cb();
      const callback = /* @__PURE__ */ __name((err, destStat) => {
        if (err) {
          if (err.code === "ENOENT") return cb();
          return cb(err);
        }
        if (areIdentical(srcStat, destStat)) {
          return cb(new Error(errMsg(src, dest, funcName)));
        }
        return checkParentPaths(src, srcStat, destParent, funcName, cb);
      }, "callback");
      if (nodeSupportsBigInt) fs43.stat(destParent, { bigint: true }, callback);
      else fs43.stat(destParent, callback);
    }
    __name(checkParentPaths, "checkParentPaths");
    function checkParentPathsSync(src, srcStat, dest, funcName) {
      const srcParent = path38.resolve(path38.dirname(src));
      const destParent = path38.resolve(path38.dirname(dest));
      if (destParent === srcParent || destParent === path38.parse(destParent).root) return;
      let destStat;
      try {
        destStat = statSync2(destParent);
      } catch (err) {
        if (err.code === "ENOENT") return;
        throw err;
      }
      if (areIdentical(srcStat, destStat)) {
        throw new Error(errMsg(src, dest, funcName));
      }
      return checkParentPathsSync(src, srcStat, destParent, funcName);
    }
    __name(checkParentPathsSync, "checkParentPathsSync");
    function areIdentical(srcStat, destStat) {
      if (destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev) {
        if (nodeSupportsBigInt || destStat.ino < Number.MAX_SAFE_INTEGER) {
          return true;
        }
        if (destStat.size === srcStat.size && destStat.mode === srcStat.mode && destStat.nlink === srcStat.nlink && destStat.atimeMs === srcStat.atimeMs && destStat.mtimeMs === srcStat.mtimeMs && destStat.ctimeMs === srcStat.ctimeMs && destStat.birthtimeMs === srcStat.birthtimeMs) {
          return true;
        }
      }
      return false;
    }
    __name(areIdentical, "areIdentical");
    function isSrcSubdir(src, dest) {
      const srcArr = path38.resolve(src).split(path38.sep).filter((i3) => i3);
      const destArr = path38.resolve(dest).split(path38.sep).filter((i3) => i3);
      return srcArr.reduce((acc, cur, i3) => acc && destArr[i3] === cur, true);
    }
    __name(isSrcSubdir, "isSrcSubdir");
    function errMsg(src, dest, funcName) {
      return `Cannot ${funcName} '${src}' to a subdirectory of itself, '${dest}'.`;
    }
    __name(errMsg, "errMsg");
    module2.exports = {
      checkPaths,
      checkPathsSync,
      checkParentPaths,
      checkParentPathsSync,
      isSrcSubdir
    };
  }
});

// ../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/copy-sync/copy-sync.js
var require_copy_sync = __commonJS({
  "../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/copy-sync/copy-sync.js"(exports2, module2) {
    "use strict";
    var fs43 = require_graceful_fs();
    var path38 = require("path");
    var mkdirsSync2 = require_mkdirs().mkdirsSync;
    var utimesMillisSync = require_utimes().utimesMillisSync;
    var stat5 = require_stat();
    function copySync(src, dest, opts) {
      if (typeof opts === "function") {
        opts = { filter: opts };
      }
      opts = opts || {};
      opts.clobber = "clobber" in opts ? !!opts.clobber : true;
      opts.overwrite = "overwrite" in opts ? !!opts.overwrite : opts.clobber;
      if (opts.preserveTimestamps && process.arch === "ia32") {
        console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;

    see https://github.com/jprichardson/node-fs-extra/issues/269`);
      }
      const { srcStat, destStat } = stat5.checkPathsSync(src, dest, "copy");
      stat5.checkParentPathsSync(src, srcStat, dest, "copy");
      return handleFilterAndCopy(destStat, src, dest, opts);
    }
    __name(copySync, "copySync");
    function handleFilterAndCopy(destStat, src, dest, opts) {
      if (opts.filter && !opts.filter(src, dest)) return;
      const destParent = path38.dirname(dest);
      if (!fs43.existsSync(destParent)) mkdirsSync2(destParent);
      return startCopy(destStat, src, dest, opts);
    }
    __name(handleFilterAndCopy, "handleFilterAndCopy");
    function startCopy(destStat, src, dest, opts) {
      if (opts.filter && !opts.filter(src, dest)) return;
      return getStats(destStat, src, dest, opts);
    }
    __name(startCopy, "startCopy");
    function getStats(destStat, src, dest, opts) {
      const statSync2 = opts.dereference ? fs43.statSync : fs43.lstatSync;
      const srcStat = statSync2(src);
      if (srcStat.isDirectory()) return onDir(srcStat, destStat, src, dest, opts);
      else if (srcStat.isFile() || srcStat.isCharacterDevice() || srcStat.isBlockDevice()) return onFile(srcStat, destStat, src, dest, opts);
      else if (srcStat.isSymbolicLink()) return onLink(destStat, src, dest, opts);
    }
    __name(getStats, "getStats");
    function onFile(srcStat, destStat, src, dest, opts) {
      if (!destStat) return copyFile(srcStat, src, dest, opts);
      return mayCopyFile(srcStat, src, dest, opts);
    }
    __name(onFile, "onFile");
    function mayCopyFile(srcStat, src, dest, opts) {
      if (opts.overwrite) {
        fs43.unlinkSync(dest);
        return copyFile(srcStat, src, dest, opts);
      } else if (opts.errorOnExist) {
        throw new Error(`'${dest}' already exists`);
      }
    }
    __name(mayCopyFile, "mayCopyFile");
    function copyFile(srcStat, src, dest, opts) {
      fs43.copyFileSync(src, dest);
      if (opts.preserveTimestamps) handleTimestamps(srcStat.mode, src, dest);
      return setDestMode(dest, srcStat.mode);
    }
    __name(copyFile, "copyFile");
    function handleTimestamps(srcMode, src, dest) {
      if (fileIsNotWritable(srcMode)) makeFileWritable(dest, srcMode);
      return setDestTimestamps(src, dest);
    }
    __name(handleTimestamps, "handleTimestamps");
    function fileIsNotWritable(srcMode) {
      return (srcMode & 128) === 0;
    }
    __name(fileIsNotWritable, "fileIsNotWritable");
    function makeFileWritable(dest, srcMode) {
      return setDestMode(dest, srcMode | 128);
    }
    __name(makeFileWritable, "makeFileWritable");
    function setDestMode(dest, srcMode) {
      return fs43.chmodSync(dest, srcMode);
    }
    __name(setDestMode, "setDestMode");
    function setDestTimestamps(src, dest) {
      const updatedSrcStat = fs43.statSync(src);
      return utimesMillisSync(dest, updatedSrcStat.atime, updatedSrcStat.mtime);
    }
    __name(setDestTimestamps, "setDestTimestamps");
    function onDir(srcStat, destStat, src, dest, opts) {
      if (!destStat) return mkDirAndCopy(srcStat.mode, src, dest, opts);
      if (destStat && !destStat.isDirectory()) {
        throw new Error(`Cannot overwrite non-directory '${dest}' with directory '${src}'.`);
      }
      return copyDir(src, dest, opts);
    }
    __name(onDir, "onDir");
    function mkDirAndCopy(srcMode, src, dest, opts) {
      fs43.mkdirSync(dest);
      copyDir(src, dest, opts);
      return setDestMode(dest, srcMode);
    }
    __name(mkDirAndCopy, "mkDirAndCopy");
    function copyDir(src, dest, opts) {
      fs43.readdirSync(src).forEach((item) => copyDirItem(item, src, dest, opts));
    }
    __name(copyDir, "copyDir");
    function copyDirItem(item, src, dest, opts) {
      const srcItem = path38.join(src, item);
      const destItem = path38.join(dest, item);
      const { destStat } = stat5.checkPathsSync(srcItem, destItem, "copy");
      return startCopy(destStat, srcItem, destItem, opts);
    }
    __name(copyDirItem, "copyDirItem");
    function onLink(destStat, src, dest, opts) {
      let resolvedSrc = fs43.readlinkSync(src);
      if (opts.dereference) {
        resolvedSrc = path38.resolve(process.cwd(), resolvedSrc);
      }
      if (!destStat) {
        return fs43.symlinkSync(resolvedSrc, dest);
      } else {
        let resolvedDest;
        try {
          resolvedDest = fs43.readlinkSync(dest);
        } catch (err) {
          if (err.code === "EINVAL" || err.code === "UNKNOWN") return fs43.symlinkSync(resolvedSrc, dest);
          throw err;
        }
        if (opts.dereference) {
          resolvedDest = path38.resolve(process.cwd(), resolvedDest);
        }
        if (stat5.isSrcSubdir(resolvedSrc, resolvedDest)) {
          throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
        }
        if (fs43.statSync(dest).isDirectory() && stat5.isSrcSubdir(resolvedDest, resolvedSrc)) {
          throw new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`);
        }
        return copyLink(resolvedSrc, dest);
      }
    }
    __name(onLink, "onLink");
    function copyLink(resolvedSrc, dest) {
      fs43.unlinkSync(dest);
      return fs43.symlinkSync(resolvedSrc, dest);
    }
    __name(copyLink, "copyLink");
    module2.exports = copySync;
  }
});

// ../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/copy-sync/index.js
var require_copy_sync2 = __commonJS({
  "../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/copy-sync/index.js"(exports2, module2) {
    "use strict";
    module2.exports = {
      copySync: require_copy_sync()
    };
  }
});

// ../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/path-exists/index.js
var require_path_exists = __commonJS({
  "../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/path-exists/index.js"(exports2, module2) {
    "use strict";
    var u3 = require_universalify().fromPromise;
    var fs43 = require_fs();
    function pathExists9(path38) {
      return fs43.access(path38).then(() => true).catch(() => false);
    }
    __name(pathExists9, "pathExists");
    module2.exports = {
      pathExists: u3(pathExists9),
      pathExistsSync: fs43.existsSync
    };
  }
});

// ../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/copy/copy.js
var require_copy = __commonJS({
  "../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/copy/copy.js"(exports2, module2) {
    "use strict";
    var fs43 = require_graceful_fs();
    var path38 = require("path");
    var mkdirs = require_mkdirs().mkdirs;
    var pathExists9 = require_path_exists().pathExists;
    var utimesMillis = require_utimes().utimesMillis;
    var stat5 = require_stat();
    function copy2(src, dest, opts, cb) {
      if (typeof opts === "function" && !cb) {
        cb = opts;
        opts = {};
      } else if (typeof opts === "function") {
        opts = { filter: opts };
      }
      cb = cb || function() {
      };
      opts = opts || {};
      opts.clobber = "clobber" in opts ? !!opts.clobber : true;
      opts.overwrite = "overwrite" in opts ? !!opts.overwrite : opts.clobber;
      if (opts.preserveTimestamps && process.arch === "ia32") {
        console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;

    see https://github.com/jprichardson/node-fs-extra/issues/269`);
      }
      stat5.checkPaths(src, dest, "copy", (err, stats) => {
        if (err) return cb(err);
        const { srcStat, destStat } = stats;
        stat5.checkParentPaths(src, srcStat, dest, "copy", (err2) => {
          if (err2) return cb(err2);
          if (opts.filter) return handleFilter(checkParentDir, destStat, src, dest, opts, cb);
          return checkParentDir(destStat, src, dest, opts, cb);
        });
      });
    }
    __name(copy2, "copy");
    function checkParentDir(destStat, src, dest, opts, cb) {
      const destParent = path38.dirname(dest);
      pathExists9(destParent, (err, dirExists) => {
        if (err) return cb(err);
        if (dirExists) return startCopy(destStat, src, dest, opts, cb);
        mkdirs(destParent, (err2) => {
          if (err2) return cb(err2);
          return startCopy(destStat, src, dest, opts, cb);
        });
      });
    }
    __name(checkParentDir, "checkParentDir");
    function handleFilter(onInclude, destStat, src, dest, opts, cb) {
      Promise.resolve(opts.filter(src, dest)).then((include) => {
        if (include) return onInclude(destStat, src, dest, opts, cb);
        return cb();
      }, (error5) => cb(error5));
    }
    __name(handleFilter, "handleFilter");
    function startCopy(destStat, src, dest, opts, cb) {
      if (opts.filter) return handleFilter(getStats, destStat, src, dest, opts, cb);
      return getStats(destStat, src, dest, opts, cb);
    }
    __name(startCopy, "startCopy");
    function getStats(destStat, src, dest, opts, cb) {
      const stat6 = opts.dereference ? fs43.stat : fs43.lstat;
      stat6(src, (err, srcStat) => {
        if (err) return cb(err);
        if (srcStat.isDirectory()) return onDir(srcStat, destStat, src, dest, opts, cb);
        else if (srcStat.isFile() || srcStat.isCharacterDevice() || srcStat.isBlockDevice()) return onFile(srcStat, destStat, src, dest, opts, cb);
        else if (srcStat.isSymbolicLink()) return onLink(destStat, src, dest, opts, cb);
      });
    }
    __name(getStats, "getStats");
    function onFile(srcStat, destStat, src, dest, opts, cb) {
      if (!destStat) return copyFile(srcStat, src, dest, opts, cb);
      return mayCopyFile(srcStat, src, dest, opts, cb);
    }
    __name(onFile, "onFile");
    function mayCopyFile(srcStat, src, dest, opts, cb) {
      if (opts.overwrite) {
        fs43.unlink(dest, (err) => {
          if (err) return cb(err);
          return copyFile(srcStat, src, dest, opts, cb);
        });
      } else if (opts.errorOnExist) {
        return cb(new Error(`'${dest}' already exists`));
      } else return cb();
    }
    __name(mayCopyFile, "mayCopyFile");
    function copyFile(srcStat, src, dest, opts, cb) {
      fs43.copyFile(src, dest, (err) => {
        if (err) return cb(err);
        if (opts.preserveTimestamps) return handleTimestampsAndMode(srcStat.mode, src, dest, cb);
        return setDestMode(dest, srcStat.mode, cb);
      });
    }
    __name(copyFile, "copyFile");
    function handleTimestampsAndMode(srcMode, src, dest, cb) {
      if (fileIsNotWritable(srcMode)) {
        return makeFileWritable(dest, srcMode, (err) => {
          if (err) return cb(err);
          return setDestTimestampsAndMode(srcMode, src, dest, cb);
        });
      }
      return setDestTimestampsAndMode(srcMode, src, dest, cb);
    }
    __name(handleTimestampsAndMode, "handleTimestampsAndMode");
    function fileIsNotWritable(srcMode) {
      return (srcMode & 128) === 0;
    }
    __name(fileIsNotWritable, "fileIsNotWritable");
    function makeFileWritable(dest, srcMode, cb) {
      return setDestMode(dest, srcMode | 128, cb);
    }
    __name(makeFileWritable, "makeFileWritable");
    function setDestTimestampsAndMode(srcMode, src, dest, cb) {
      setDestTimestamps(src, dest, (err) => {
        if (err) return cb(err);
        return setDestMode(dest, srcMode, cb);
      });
    }
    __name(setDestTimestampsAndMode, "setDestTimestampsAndMode");
    function setDestMode(dest, srcMode, cb) {
      return fs43.chmod(dest, srcMode, cb);
    }
    __name(setDestMode, "setDestMode");
    function setDestTimestamps(src, dest, cb) {
      fs43.stat(src, (err, updatedSrcStat) => {
        if (err) return cb(err);
        return utimesMillis(dest, updatedSrcStat.atime, updatedSrcStat.mtime, cb);
      });
    }
    __name(setDestTimestamps, "setDestTimestamps");
    function onDir(srcStat, destStat, src, dest, opts, cb) {
      if (!destStat) return mkDirAndCopy(srcStat.mode, src, dest, opts, cb);
      if (destStat && !destStat.isDirectory()) {
        return cb(new Error(`Cannot overwrite non-directory '${dest}' with directory '${src}'.`));
      }
      return copyDir(src, dest, opts, cb);
    }
    __name(onDir, "onDir");
    function mkDirAndCopy(srcMode, src, dest, opts, cb) {
      fs43.mkdir(dest, (err) => {
        if (err) return cb(err);
        copyDir(src, dest, opts, (err2) => {
          if (err2) return cb(err2);
          return setDestMode(dest, srcMode, cb);
        });
      });
    }
    __name(mkDirAndCopy, "mkDirAndCopy");
    function copyDir(src, dest, opts, cb) {
      fs43.readdir(src, (err, items) => {
        if (err) return cb(err);
        return copyDirItems(items, src, dest, opts, cb);
      });
    }
    __name(copyDir, "copyDir");
    function copyDirItems(items, src, dest, opts, cb) {
      const item = items.pop();
      if (!item) return cb();
      return copyDirItem(items, item, src, dest, opts, cb);
    }
    __name(copyDirItems, "copyDirItems");
    function copyDirItem(items, item, src, dest, opts, cb) {
      const srcItem = path38.join(src, item);
      const destItem = path38.join(dest, item);
      stat5.checkPaths(srcItem, destItem, "copy", (err, stats) => {
        if (err) return cb(err);
        const { destStat } = stats;
        startCopy(destStat, srcItem, destItem, opts, (err2) => {
          if (err2) return cb(err2);
          return copyDirItems(items, src, dest, opts, cb);
        });
      });
    }
    __name(copyDirItem, "copyDirItem");
    function onLink(destStat, src, dest, opts, cb) {
      fs43.readlink(src, (err, resolvedSrc) => {
        if (err) return cb(err);
        if (opts.dereference) {
          resolvedSrc = path38.resolve(process.cwd(), resolvedSrc);
        }
        if (!destStat) {
          return fs43.symlink(resolvedSrc, dest, cb);
        } else {
          fs43.readlink(dest, (err2, resolvedDest) => {
            if (err2) {
              if (err2.code === "EINVAL" || err2.code === "UNKNOWN") return fs43.symlink(resolvedSrc, dest, cb);
              return cb(err2);
            }
            if (opts.dereference) {
              resolvedDest = path38.resolve(process.cwd(), resolvedDest);
            }
            if (stat5.isSrcSubdir(resolvedSrc, resolvedDest)) {
              return cb(new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`));
            }
            if (destStat.isDirectory() && stat5.isSrcSubdir(resolvedDest, resolvedSrc)) {
              return cb(new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`));
            }
            return copyLink(resolvedSrc, dest, cb);
          });
        }
      });
    }
    __name(onLink, "onLink");
    function copyLink(resolvedSrc, dest, cb) {
      fs43.unlink(dest, (err) => {
        if (err) return cb(err);
        return fs43.symlink(resolvedSrc, dest, cb);
      });
    }
    __name(copyLink, "copyLink");
    module2.exports = copy2;
  }
});

// ../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/copy/index.js
var require_copy2 = __commonJS({
  "../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/copy/index.js"(exports2, module2) {
    "use strict";
    var u3 = require_universalify().fromCallback;
    module2.exports = {
      copy: u3(require_copy())
    };
  }
});

// ../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/remove/rimraf.js
var require_rimraf = __commonJS({
  "../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/remove/rimraf.js"(exports2, module2) {
    "use strict";
    var fs43 = require_graceful_fs();
    var path38 = require("path");
    var assert = require("assert");
    var isWindows = process.platform === "win32";
    function defaults4(options) {
      const methods = [
        "unlink",
        "chmod",
        "stat",
        "lstat",
        "rmdir",
        "readdir"
      ];
      methods.forEach((m3) => {
        options[m3] = options[m3] || fs43[m3];
        m3 = m3 + "Sync";
        options[m3] = options[m3] || fs43[m3];
      });
      options.maxBusyTries = options.maxBusyTries || 3;
    }
    __name(defaults4, "defaults");
    function rimraf(p3, options, cb) {
      let busyTries = 0;
      if (typeof options === "function") {
        cb = options;
        options = {};
      }
      assert(p3, "rimraf: missing path");
      assert.strictEqual(typeof p3, "string", "rimraf: path should be a string");
      assert.strictEqual(typeof cb, "function", "rimraf: callback function required");
      assert(options, "rimraf: invalid options argument provided");
      assert.strictEqual(typeof options, "object", "rimraf: options should be object");
      defaults4(options);
      rimraf_(p3, options, /* @__PURE__ */ __name(function CB(er) {
        if (er) {
          if ((er.code === "EBUSY" || er.code === "ENOTEMPTY" || er.code === "EPERM") && busyTries < options.maxBusyTries) {
            busyTries++;
            const time = busyTries * 100;
            return setTimeout(() => rimraf_(p3, options, CB), time);
          }
          if (er.code === "ENOENT") er = null;
        }
        cb(er);
      }, "CB"));
    }
    __name(rimraf, "rimraf");
    function rimraf_(p3, options, cb) {
      assert(p3);
      assert(options);
      assert(typeof cb === "function");
      options.lstat(p3, (er, st) => {
        if (er && er.code === "ENOENT") {
          return cb(null);
        }
        if (er && er.code === "EPERM" && isWindows) {
          return fixWinEPERM(p3, options, er, cb);
        }
        if (st && st.isDirectory()) {
          return rmdir(p3, options, er, cb);
        }
        options.unlink(p3, (er2) => {
          if (er2) {
            if (er2.code === "ENOENT") {
              return cb(null);
            }
            if (er2.code === "EPERM") {
              return isWindows ? fixWinEPERM(p3, options, er2, cb) : rmdir(p3, options, er2, cb);
            }
            if (er2.code === "EISDIR") {
              return rmdir(p3, options, er2, cb);
            }
          }
          return cb(er2);
        });
      });
    }
    __name(rimraf_, "rimraf_");
    function fixWinEPERM(p3, options, er, cb) {
      assert(p3);
      assert(options);
      assert(typeof cb === "function");
      options.chmod(p3, 438, (er2) => {
        if (er2) {
          cb(er2.code === "ENOENT" ? null : er);
        } else {
          options.stat(p3, (er3, stats) => {
            if (er3) {
              cb(er3.code === "ENOENT" ? null : er);
            } else if (stats.isDirectory()) {
              rmdir(p3, options, er, cb);
            } else {
              options.unlink(p3, cb);
            }
          });
        }
      });
    }
    __name(fixWinEPERM, "fixWinEPERM");
    function fixWinEPERMSync(p3, options, er) {
      let stats;
      assert(p3);
      assert(options);
      try {
        options.chmodSync(p3, 438);
      } catch (er2) {
        if (er2.code === "ENOENT") {
          return;
        } else {
          throw er;
        }
      }
      try {
        stats = options.statSync(p3);
      } catch (er3) {
        if (er3.code === "ENOENT") {
          return;
        } else {
          throw er;
        }
      }
      if (stats.isDirectory()) {
        rmdirSync2(p3, options, er);
      } else {
        options.unlinkSync(p3);
      }
    }
    __name(fixWinEPERMSync, "fixWinEPERMSync");
    function rmdir(p3, options, originalEr, cb) {
      assert(p3);
      assert(options);
      assert(typeof cb === "function");
      options.rmdir(p3, (er) => {
        if (er && (er.code === "ENOTEMPTY" || er.code === "EEXIST" || er.code === "EPERM")) {
          rmkids(p3, options, cb);
        } else if (er && er.code === "ENOTDIR") {
          cb(originalEr);
        } else {
          cb(er);
        }
      });
    }
    __name(rmdir, "rmdir");
    function rmkids(p3, options, cb) {
      assert(p3);
      assert(options);
      assert(typeof cb === "function");
      options.readdir(p3, (er, files) => {
        if (er) return cb(er);
        let n3 = files.length;
        let errState;
        if (n3 === 0) return options.rmdir(p3, cb);
        files.forEach((f3) => {
          rimraf(path38.join(p3, f3), options, (er2) => {
            if (errState) {
              return;
            }
            if (er2) return cb(errState = er2);
            if (--n3 === 0) {
              options.rmdir(p3, cb);
            }
          });
        });
      });
    }
    __name(rmkids, "rmkids");
    function rimrafSync(p3, options) {
      let st;
      options = options || {};
      defaults4(options);
      assert(p3, "rimraf: missing path");
      assert.strictEqual(typeof p3, "string", "rimraf: path should be a string");
      assert(options, "rimraf: missing options");
      assert.strictEqual(typeof options, "object", "rimraf: options should be object");
      try {
        st = options.lstatSync(p3);
      } catch (er) {
        if (er.code === "ENOENT") {
          return;
        }
        if (er.code === "EPERM" && isWindows) {
          fixWinEPERMSync(p3, options, er);
        }
      }
      try {
        if (st && st.isDirectory()) {
          rmdirSync2(p3, options, null);
        } else {
          options.unlinkSync(p3);
        }
      } catch (er) {
        if (er.code === "ENOENT") {
          return;
        } else if (er.code === "EPERM") {
          return isWindows ? fixWinEPERMSync(p3, options, er) : rmdirSync2(p3, options, er);
        } else if (er.code !== "EISDIR") {
          throw er;
        }
        rmdirSync2(p3, options, er);
      }
    }
    __name(rimrafSync, "rimrafSync");
    function rmdirSync2(p3, options, originalEr) {
      assert(p3);
      assert(options);
      try {
        options.rmdirSync(p3);
      } catch (er) {
        if (er.code === "ENOTDIR") {
          throw originalEr;
        } else if (er.code === "ENOTEMPTY" || er.code === "EEXIST" || er.code === "EPERM") {
          rmkidsSync(p3, options);
        } else if (er.code !== "ENOENT") {
          throw er;
        }
      }
    }
    __name(rmdirSync2, "rmdirSync");
    function rmkidsSync(p3, options) {
      assert(p3);
      assert(options);
      options.readdirSync(p3).forEach((f3) => rimrafSync(path38.join(p3, f3), options));
      if (isWindows) {
        const startTime = Date.now();
        do {
          try {
            const ret = options.rmdirSync(p3, options);
            return ret;
          } catch {
          }
        } while (Date.now() - startTime < 500);
      } else {
        const ret = options.rmdirSync(p3, options);
        return ret;
      }
    }
    __name(rmkidsSync, "rmkidsSync");
    module2.exports = rimraf;
    rimraf.sync = rimrafSync;
  }
});

// ../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/remove/index.js
var require_remove = __commonJS({
  "../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/remove/index.js"(exports2, module2) {
    "use strict";
    var u3 = require_universalify().fromCallback;
    var rimraf = require_rimraf();
    module2.exports = {
      remove: u3(rimraf),
      removeSync: rimraf.sync
    };
  }
});

// ../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/empty/index.js
var require_empty = __commonJS({
  "../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/empty/index.js"(exports2, module2) {
    "use strict";
    var u3 = require_universalify().fromCallback;
    var fs43 = require_graceful_fs();
    var path38 = require("path");
    var mkdir2 = require_mkdirs();
    var remove2 = require_remove();
    var emptyDir = u3(/* @__PURE__ */ __name(function emptyDir2(dir, callback) {
      callback = callback || function() {
      };
      fs43.readdir(dir, (err, items) => {
        if (err) return mkdir2.mkdirs(dir, callback);
        items = items.map((item) => path38.join(dir, item));
        deleteItem();
        function deleteItem() {
          const item = items.pop();
          if (!item) return callback();
          remove2.remove(item, (err2) => {
            if (err2) return callback(err2);
            deleteItem();
          });
        }
        __name(deleteItem, "deleteItem");
      });
    }, "emptyDir"));
    function emptyDirSync(dir) {
      let items;
      try {
        items = fs43.readdirSync(dir);
      } catch {
        return mkdir2.mkdirsSync(dir);
      }
      items.forEach((item) => {
        item = path38.join(dir, item);
        remove2.removeSync(item);
      });
    }
    __name(emptyDirSync, "emptyDirSync");
    module2.exports = {
      emptyDirSync,
      emptydirSync: emptyDirSync,
      emptyDir,
      emptydir: emptyDir
    };
  }
});

// ../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/ensure/file.js
var require_file = __commonJS({
  "../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/ensure/file.js"(exports2, module2) {
    "use strict";
    var u3 = require_universalify().fromCallback;
    var path38 = require("path");
    var fs43 = require_graceful_fs();
    var mkdir2 = require_mkdirs();
    function createFile(file, callback) {
      function makeFile() {
        fs43.writeFile(file, "", (err) => {
          if (err) return callback(err);
          callback();
        });
      }
      __name(makeFile, "makeFile");
      fs43.stat(file, (err, stats) => {
        if (!err && stats.isFile()) return callback();
        const dir = path38.dirname(file);
        fs43.stat(dir, (err2, stats2) => {
          if (err2) {
            if (err2.code === "ENOENT") {
              return mkdir2.mkdirs(dir, (err3) => {
                if (err3) return callback(err3);
                makeFile();
              });
            }
            return callback(err2);
          }
          if (stats2.isDirectory()) makeFile();
          else {
            fs43.readdir(dir, (err3) => {
              if (err3) return callback(err3);
            });
          }
        });
      });
    }
    __name(createFile, "createFile");
    function createFileSync(file) {
      let stats;
      try {
        stats = fs43.statSync(file);
      } catch {
      }
      if (stats && stats.isFile()) return;
      const dir = path38.dirname(file);
      try {
        if (!fs43.statSync(dir).isDirectory()) {
          fs43.readdirSync(dir);
        }
      } catch (err) {
        if (err && err.code === "ENOENT") mkdir2.mkdirsSync(dir);
        else throw err;
      }
      fs43.writeFileSync(file, "");
    }
    __name(createFileSync, "createFileSync");
    module2.exports = {
      createFile: u3(createFile),
      createFileSync
    };
  }
});

// ../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/ensure/link.js
var require_link = __commonJS({
  "../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/ensure/link.js"(exports2, module2) {
    "use strict";
    var u3 = require_universalify().fromCallback;
    var path38 = require("path");
    var fs43 = require_graceful_fs();
    var mkdir2 = require_mkdirs();
    var pathExists9 = require_path_exists().pathExists;
    function createLink(srcpath, dstpath, callback) {
      function makeLink(srcpath2, dstpath2) {
        fs43.link(srcpath2, dstpath2, (err) => {
          if (err) return callback(err);
          callback(null);
        });
      }
      __name(makeLink, "makeLink");
      pathExists9(dstpath, (err, destinationExists) => {
        if (err) return callback(err);
        if (destinationExists) return callback(null);
        fs43.lstat(srcpath, (err2) => {
          if (err2) {
            err2.message = err2.message.replace("lstat", "ensureLink");
            return callback(err2);
          }
          const dir = path38.dirname(dstpath);
          pathExists9(dir, (err3, dirExists) => {
            if (err3) return callback(err3);
            if (dirExists) return makeLink(srcpath, dstpath);
            mkdir2.mkdirs(dir, (err4) => {
              if (err4) return callback(err4);
              makeLink(srcpath, dstpath);
            });
          });
        });
      });
    }
    __name(createLink, "createLink");
    function createLinkSync(srcpath, dstpath) {
      const destinationExists = fs43.existsSync(dstpath);
      if (destinationExists) return void 0;
      try {
        fs43.lstatSync(srcpath);
      } catch (err) {
        err.message = err.message.replace("lstat", "ensureLink");
        throw err;
      }
      const dir = path38.dirname(dstpath);
      const dirExists = fs43.existsSync(dir);
      if (dirExists) return fs43.linkSync(srcpath, dstpath);
      mkdir2.mkdirsSync(dir);
      return fs43.linkSync(srcpath, dstpath);
    }
    __name(createLinkSync, "createLinkSync");
    module2.exports = {
      createLink: u3(createLink),
      createLinkSync
    };
  }
});

// ../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/ensure/symlink-paths.js
var require_symlink_paths = __commonJS({
  "../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports2, module2) {
    "use strict";
    var path38 = require("path");
    var fs43 = require_graceful_fs();
    var pathExists9 = require_path_exists().pathExists;
    function symlinkPaths(srcpath, dstpath, callback) {
      if (path38.isAbsolute(srcpath)) {
        return fs43.lstat(srcpath, (err) => {
          if (err) {
            err.message = err.message.replace("lstat", "ensureSymlink");
            return callback(err);
          }
          return callback(null, {
            toCwd: srcpath,
            toDst: srcpath
          });
        });
      } else {
        const dstdir = path38.dirname(dstpath);
        const relativeToDst = path38.join(dstdir, srcpath);
        return pathExists9(relativeToDst, (err, exists) => {
          if (err) return callback(err);
          if (exists) {
            return callback(null, {
              toCwd: relativeToDst,
              toDst: srcpath
            });
          } else {
            return fs43.lstat(srcpath, (err2) => {
              if (err2) {
                err2.message = err2.message.replace("lstat", "ensureSymlink");
                return callback(err2);
              }
              return callback(null, {
                toCwd: srcpath,
                toDst: path38.relative(dstdir, srcpath)
              });
            });
          }
        });
      }
    }
    __name(symlinkPaths, "symlinkPaths");
    function symlinkPathsSync(srcpath, dstpath) {
      let exists;
      if (path38.isAbsolute(srcpath)) {
        exists = fs43.existsSync(srcpath);
        if (!exists) throw new Error("absolute srcpath does not exist");
        return {
          toCwd: srcpath,
          toDst: srcpath
        };
      } else {
        const dstdir = path38.dirname(dstpath);
        const relativeToDst = path38.join(dstdir, srcpath);
        exists = fs43.existsSync(relativeToDst);
        if (exists) {
          return {
            toCwd: relativeToDst,
            toDst: srcpath
          };
        } else {
          exists = fs43.existsSync(srcpath);
          if (!exists) throw new Error("relative srcpath does not exist");
          return {
            toCwd: srcpath,
            toDst: path38.relative(dstdir, srcpath)
          };
        }
      }
    }
    __name(symlinkPathsSync, "symlinkPathsSync");
    module2.exports = {
      symlinkPaths,
      symlinkPathsSync
    };
  }
});

// ../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/ensure/symlink-type.js
var require_symlink_type = __commonJS({
  "../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/ensure/symlink-type.js"(exports2, module2) {
    "use strict";
    var fs43 = require_graceful_fs();
    function symlinkType(srcpath, type, callback) {
      callback = typeof type === "function" ? type : callback;
      type = typeof type === "function" ? false : type;
      if (type) return callback(null, type);
      fs43.lstat(srcpath, (err, stats) => {
        if (err) return callback(null, "file");
        type = stats && stats.isDirectory() ? "dir" : "file";
        callback(null, type);
      });
    }
    __name(symlinkType, "symlinkType");
    function symlinkTypeSync(srcpath, type) {
      let stats;
      if (type) return type;
      try {
        stats = fs43.lstatSync(srcpath);
      } catch {
        return "file";
      }
      return stats && stats.isDirectory() ? "dir" : "file";
    }
    __name(symlinkTypeSync, "symlinkTypeSync");
    module2.exports = {
      symlinkType,
      symlinkTypeSync
    };
  }
});

// ../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/ensure/symlink.js
var require_symlink = __commonJS({
  "../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/ensure/symlink.js"(exports2, module2) {
    "use strict";
    var u3 = require_universalify().fromCallback;
    var path38 = require("path");
    var fs43 = require_graceful_fs();
    var _mkdirs = require_mkdirs();
    var mkdirs = _mkdirs.mkdirs;
    var mkdirsSync2 = _mkdirs.mkdirsSync;
    var _symlinkPaths = require_symlink_paths();
    var symlinkPaths = _symlinkPaths.symlinkPaths;
    var symlinkPathsSync = _symlinkPaths.symlinkPathsSync;
    var _symlinkType = require_symlink_type();
    var symlinkType = _symlinkType.symlinkType;
    var symlinkTypeSync = _symlinkType.symlinkTypeSync;
    var pathExists9 = require_path_exists().pathExists;
    function createSymlink(srcpath, dstpath, type, callback) {
      callback = typeof type === "function" ? type : callback;
      type = typeof type === "function" ? false : type;
      pathExists9(dstpath, (err, destinationExists) => {
        if (err) return callback(err);
        if (destinationExists) return callback(null);
        symlinkPaths(srcpath, dstpath, (err2, relative2) => {
          if (err2) return callback(err2);
          srcpath = relative2.toDst;
          symlinkType(relative2.toCwd, type, (err3, type2) => {
            if (err3) return callback(err3);
            const dir = path38.dirname(dstpath);
            pathExists9(dir, (err4, dirExists) => {
              if (err4) return callback(err4);
              if (dirExists) return fs43.symlink(srcpath, dstpath, type2, callback);
              mkdirs(dir, (err5) => {
                if (err5) return callback(err5);
                fs43.symlink(srcpath, dstpath, type2, callback);
              });
            });
          });
        });
      });
    }
    __name(createSymlink, "createSymlink");
    function createSymlinkSync(srcpath, dstpath, type) {
      const destinationExists = fs43.existsSync(dstpath);
      if (destinationExists) return void 0;
      const relative2 = symlinkPathsSync(srcpath, dstpath);
      srcpath = relative2.toDst;
      type = symlinkTypeSync(relative2.toCwd, type);
      const dir = path38.dirname(dstpath);
      const exists = fs43.existsSync(dir);
      if (exists) return fs43.symlinkSync(srcpath, dstpath, type);
      mkdirsSync2(dir);
      return fs43.symlinkSync(srcpath, dstpath, type);
    }
    __name(createSymlinkSync, "createSymlinkSync");
    module2.exports = {
      createSymlink: u3(createSymlink),
      createSymlinkSync
    };
  }
});

// ../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/ensure/index.js
var require_ensure = __commonJS({
  "../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/ensure/index.js"(exports2, module2) {
    "use strict";
    var file = require_file();
    var link = require_link();
    var symlink = require_symlink();
    module2.exports = {
      // file
      createFile: file.createFile,
      createFileSync: file.createFileSync,
      ensureFile: file.createFile,
      ensureFileSync: file.createFileSync,
      // link
      createLink: link.createLink,
      createLinkSync: link.createLinkSync,
      ensureLink: link.createLink,
      ensureLinkSync: link.createLinkSync,
      // symlink
      createSymlink: symlink.createSymlink,
      createSymlinkSync: symlink.createSymlinkSync,
      ensureSymlink: symlink.createSymlink,
      ensureSymlinkSync: symlink.createSymlinkSync
    };
  }
});

// ../../node_modules/jsonfile/utils.js
var require_utils = __commonJS({
  "../../node_modules/jsonfile/utils.js"(exports2, module2) {
    function stringify3(obj, { EOL = "\n", finalEOL = true, replacer = null, spaces } = {}) {
      const EOF2 = finalEOL ? EOL : "";
      const str = JSON.stringify(obj, replacer, spaces);
      return str.replace(/\n/g, EOL) + EOF2;
    }
    __name(stringify3, "stringify");
    function stripBom(content) {
      if (Buffer.isBuffer(content)) content = content.toString("utf8");
      return content.replace(/^\uFEFF/, "");
    }
    __name(stripBom, "stripBom");
    module2.exports = { stringify: stringify3, stripBom };
  }
});

// ../../node_modules/jsonfile/index.js
var require_jsonfile = __commonJS({
  "../../node_modules/jsonfile/index.js"(exports2, module2) {
    var _fs;
    try {
      _fs = require_graceful_fs();
    } catch (_3) {
      _fs = require("fs");
    }
    var universalify = require_universalify();
    var { stringify: stringify3, stripBom } = require_utils();
    async function _readFile(file, options = {}) {
      if (typeof options === "string") {
        options = { encoding: options };
      }
      const fs43 = options.fs || _fs;
      const shouldThrow = "throws" in options ? options.throws : true;
      let data3 = await universalify.fromCallback(fs43.readFile)(file, options);
      data3 = stripBom(data3);
      let obj;
      try {
        obj = JSON.parse(data3, options ? options.reviver : null);
      } catch (err) {
        if (shouldThrow) {
          err.message = `${file}: ${err.message}`;
          throw err;
        } else {
          return null;
        }
      }
      return obj;
    }
    __name(_readFile, "_readFile");
    var readFile5 = universalify.fromPromise(_readFile);
    function readFileSync10(file, options = {}) {
      if (typeof options === "string") {
        options = { encoding: options };
      }
      const fs43 = options.fs || _fs;
      const shouldThrow = "throws" in options ? options.throws : true;
      try {
        let content = fs43.readFileSync(file, options);
        content = stripBom(content);
        return JSON.parse(content, options.reviver);
      } catch (err) {
        if (shouldThrow) {
          err.message = `${file}: ${err.message}`;
          throw err;
        } else {
          return null;
        }
      }
    }
    __name(readFileSync10, "readFileSync");
    async function _writeFile(file, obj, options = {}) {
      const fs43 = options.fs || _fs;
      const str = stringify3(obj, options);
      await universalify.fromCallback(fs43.writeFile)(file, str, options);
    }
    __name(_writeFile, "_writeFile");
    var writeFile5 = universalify.fromPromise(_writeFile);
    function writeFileSync5(file, obj, options = {}) {
      const fs43 = options.fs || _fs;
      const str = stringify3(obj, options);
      return fs43.writeFileSync(file, str, options);
    }
    __name(writeFileSync5, "writeFileSync");
    module2.exports = {
      readFile: readFile5,
      readFileSync: readFileSync10,
      writeFile: writeFile5,
      writeFileSync: writeFileSync5
    };
  }
});

// ../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/json/jsonfile.js
var require_jsonfile2 = __commonJS({
  "../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/json/jsonfile.js"(exports2, module2) {
    "use strict";
    var jsonFile = require_jsonfile();
    module2.exports = {
      // jsonfile exports
      readJson: jsonFile.readFile,
      readJsonSync: jsonFile.readFileSync,
      writeJson: jsonFile.writeFile,
      writeJsonSync: jsonFile.writeFileSync
    };
  }
});

// ../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/output/index.js
var require_output = __commonJS({
  "../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/output/index.js"(exports2, module2) {
    "use strict";
    var u3 = require_universalify().fromCallback;
    var fs43 = require_graceful_fs();
    var path38 = require("path");
    var mkdir2 = require_mkdirs();
    var pathExists9 = require_path_exists().pathExists;
    function outputFile(file, data3, encoding, callback) {
      if (typeof encoding === "function") {
        callback = encoding;
        encoding = "utf8";
      }
      const dir = path38.dirname(file);
      pathExists9(dir, (err, itDoes) => {
        if (err) return callback(err);
        if (itDoes) return fs43.writeFile(file, data3, encoding, callback);
        mkdir2.mkdirs(dir, (err2) => {
          if (err2) return callback(err2);
          fs43.writeFile(file, data3, encoding, callback);
        });
      });
    }
    __name(outputFile, "outputFile");
    function outputFileSync(file, ...args) {
      const dir = path38.dirname(file);
      if (fs43.existsSync(dir)) {
        return fs43.writeFileSync(file, ...args);
      }
      mkdir2.mkdirsSync(dir);
      fs43.writeFileSync(file, ...args);
    }
    __name(outputFileSync, "outputFileSync");
    module2.exports = {
      outputFile: u3(outputFile),
      outputFileSync
    };
  }
});

// ../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/json/output-json.js
var require_output_json = __commonJS({
  "../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/json/output-json.js"(exports2, module2) {
    "use strict";
    var { stringify: stringify3 } = require_utils();
    var { outputFile } = require_output();
    async function outputJson(file, data3, options = {}) {
      const str = stringify3(data3, options);
      await outputFile(file, str, options);
    }
    __name(outputJson, "outputJson");
    module2.exports = outputJson;
  }
});

// ../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/json/output-json-sync.js
var require_output_json_sync = __commonJS({
  "../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/json/output-json-sync.js"(exports2, module2) {
    "use strict";
    var { stringify: stringify3 } = require_utils();
    var { outputFileSync } = require_output();
    function outputJsonSync(file, data3, options) {
      const str = stringify3(data3, options);
      outputFileSync(file, str, options);
    }
    __name(outputJsonSync, "outputJsonSync");
    module2.exports = outputJsonSync;
  }
});

// ../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/json/index.js
var require_json = __commonJS({
  "../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/json/index.js"(exports2, module2) {
    "use strict";
    var u3 = require_universalify().fromPromise;
    var jsonFile = require_jsonfile2();
    jsonFile.outputJson = u3(require_output_json());
    jsonFile.outputJsonSync = require_output_json_sync();
    jsonFile.outputJSON = jsonFile.outputJson;
    jsonFile.outputJSONSync = jsonFile.outputJsonSync;
    jsonFile.writeJSON = jsonFile.writeJson;
    jsonFile.writeJSONSync = jsonFile.writeJsonSync;
    jsonFile.readJSON = jsonFile.readJson;
    jsonFile.readJSONSync = jsonFile.readJsonSync;
    module2.exports = jsonFile;
  }
});

// ../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/move-sync/move-sync.js
var require_move_sync = __commonJS({
  "../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/move-sync/move-sync.js"(exports2, module2) {
    "use strict";
    var fs43 = require_graceful_fs();
    var path38 = require("path");
    var copySync = require_copy_sync2().copySync;
    var removeSync = require_remove().removeSync;
    var mkdirpSync2 = require_mkdirs().mkdirpSync;
    var stat5 = require_stat();
    function moveSync(src, dest, opts) {
      opts = opts || {};
      const overwrite = opts.overwrite || opts.clobber || false;
      const { srcStat } = stat5.checkPathsSync(src, dest, "move");
      stat5.checkParentPathsSync(src, srcStat, dest, "move");
      mkdirpSync2(path38.dirname(dest));
      return doRename(src, dest, overwrite);
    }
    __name(moveSync, "moveSync");
    function doRename(src, dest, overwrite) {
      if (overwrite) {
        removeSync(dest);
        return rename(src, dest, overwrite);
      }
      if (fs43.existsSync(dest)) throw new Error("dest already exists.");
      return rename(src, dest, overwrite);
    }
    __name(doRename, "doRename");
    function rename(src, dest, overwrite) {
      try {
        fs43.renameSync(src, dest);
      } catch (err) {
        if (err.code !== "EXDEV") throw err;
        return moveAcrossDevice(src, dest, overwrite);
      }
    }
    __name(rename, "rename");
    function moveAcrossDevice(src, dest, overwrite) {
      const opts = {
        overwrite,
        errorOnExist: true
      };
      copySync(src, dest, opts);
      return removeSync(src);
    }
    __name(moveAcrossDevice, "moveAcrossDevice");
    module2.exports = moveSync;
  }
});

// ../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/move-sync/index.js
var require_move_sync2 = __commonJS({
  "../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/move-sync/index.js"(exports2, module2) {
    "use strict";
    module2.exports = {
      moveSync: require_move_sync()
    };
  }
});

// ../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/move/move.js
var require_move = __commonJS({
  "../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/move/move.js"(exports2, module2) {
    "use strict";
    var fs43 = require_graceful_fs();
    var path38 = require("path");
    var copy2 = require_copy2().copy;
    var remove2 = require_remove().remove;
    var mkdirp2 = require_mkdirs().mkdirp;
    var pathExists9 = require_path_exists().pathExists;
    var stat5 = require_stat();
    function move(src, dest, opts, cb) {
      if (typeof opts === "function") {
        cb = opts;
        opts = {};
      }
      const overwrite = opts.overwrite || opts.clobber || false;
      stat5.checkPaths(src, dest, "move", (err, stats) => {
        if (err) return cb(err);
        const { srcStat } = stats;
        stat5.checkParentPaths(src, srcStat, dest, "move", (err2) => {
          if (err2) return cb(err2);
          mkdirp2(path38.dirname(dest), (err3) => {
            if (err3) return cb(err3);
            return doRename(src, dest, overwrite, cb);
          });
        });
      });
    }
    __name(move, "move");
    function doRename(src, dest, overwrite, cb) {
      if (overwrite) {
        return remove2(dest, (err) => {
          if (err) return cb(err);
          return rename(src, dest, overwrite, cb);
        });
      }
      pathExists9(dest, (err, destExists) => {
        if (err) return cb(err);
        if (destExists) return cb(new Error("dest already exists."));
        return rename(src, dest, overwrite, cb);
      });
    }
    __name(doRename, "doRename");
    function rename(src, dest, overwrite, cb) {
      fs43.rename(src, dest, (err) => {
        if (!err) return cb();
        if (err.code !== "EXDEV") return cb(err);
        return moveAcrossDevice(src, dest, overwrite, cb);
      });
    }
    __name(rename, "rename");
    function moveAcrossDevice(src, dest, overwrite, cb) {
      const opts = {
        overwrite,
        errorOnExist: true
      };
      copy2(src, dest, opts, (err) => {
        if (err) return cb(err);
        return remove2(src, cb);
      });
    }
    __name(moveAcrossDevice, "moveAcrossDevice");
    module2.exports = move;
  }
});

// ../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/move/index.js
var require_move2 = __commonJS({
  "../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/move/index.js"(exports2, module2) {
    "use strict";
    var u3 = require_universalify().fromCallback;
    module2.exports = {
      move: u3(require_move())
    };
  }
});

// ../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/index.js
var require_lib4 = __commonJS({
  "../@aws-cdk/toolkit-lib/node_modules/fs-extra/lib/index.js"(exports2, module2) {
    "use strict";
    module2.exports = {
      // Export promiseified graceful-fs:
      ...require_fs(),
      // Export extra methods:
      ...require_copy_sync2(),
      ...require_copy2(),
      ...require_empty(),
      ...require_ensure(),
      ...require_json(),
      ...require_mkdirs(),
      ...require_move_sync2(),
      ...require_move2(),
      ...require_output(),
      ...require_path_exists(),
      ...require_remove()
    };
    var fs43 = require("fs");
    if (Object.getOwnPropertyDescriptor(fs43, "promises")) {
      Object.defineProperty(module2.exports, "promises", {
        get() {
          return fs43.promises;
        }
      });
    }
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/bootstrap/bootstrap-props.ts
var BUCKET_NAME_OUTPUT, REPOSITORY_NAME_OUTPUT, BUCKET_DOMAIN_NAME_OUTPUT, BOOTSTRAP_VERSION_OUTPUT, BOOTSTRAP_VERSION_RESOURCE, BOOTSTRAP_VARIANT_PARAMETER, DEFAULT_BOOTSTRAP_VARIANT;
var init_bootstrap_props = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/bootstrap/bootstrap-props.ts"() {
    "use strict";
    BUCKET_NAME_OUTPUT = "BucketName";
    REPOSITORY_NAME_OUTPUT = "ImageRepositoryName";
    BUCKET_DOMAIN_NAME_OUTPUT = "BucketDomainName";
    BOOTSTRAP_VERSION_OUTPUT = "BootstrapVersion";
    BOOTSTRAP_VERSION_RESOURCE = "CdkBootstrapVersion";
    BOOTSTRAP_VARIANT_PARAMETER = "BootstrapVariant";
    DEFAULT_BOOTSTRAP_VARIANT = "AWS CDK: Default Resources";
  }
});

// ../@aws-cdk/cdk-assets-lib/lib/progress.ts
var progress_exports = {};
__export(progress_exports, {
  EventType: () => EventType,
  shellEventPublisherFromEventEmitter: () => shellEventPublisherFromEventEmitter,
  shellEventToEventType: () => shellEventToEventType
});
function shellEventToEventType(event) {
  switch (event) {
    case "open":
      return "shell_open" /* SHELL_OPEN */;
    case "close":
      return "shell_close" /* SHELL_CLOSE */;
    case "data_stdout":
      return "shell_stdout" /* SHELL_STDOUT */;
    case "data_stderr":
      return "shell_stderr" /* SHELL_STDERR */;
  }
}
function shellEventPublisherFromEventEmitter(eventEmitter) {
  return (event, message2) => {
    const eventType = shellEventToEventType(event);
    eventEmitter(eventType, message2);
  };
}
var EventType;
var init_progress = __esm({
  "../@aws-cdk/cdk-assets-lib/lib/progress.ts"() {
    "use strict";
    EventType = /* @__PURE__ */ ((EventType2) => {
      EventType2["START"] = "start";
      EventType2["SUCCESS"] = "success";
      EventType2["FAIL"] = "fail";
      EventType2["CHECK"] = "check";
      EventType2["FOUND"] = "found";
      EventType2["CACHED"] = "cached";
      EventType2["BUILD"] = "build";
      EventType2["UPLOAD"] = "upload";
      EventType2["DEBUG"] = "debug";
      EventType2["SHELL_OPEN"] = "shell_open";
      EventType2["SHELL_STDOUT"] = "shell_stdout";
      EventType2["SHELL_STDERR"] = "shell_stderr";
      EventType2["SHELL_CLOSE"] = "shell_close";
      return EventType2;
    })(EventType || {});
    __name(shellEventToEventType, "shellEventToEventType");
    __name(shellEventPublisherFromEventEmitter, "shellEventPublisherFromEventEmitter");
  }
});

// ../@aws-cdk/cdk-assets-lib/lib/private/docker-credentials.ts
function cdkCredentialsConfigFile() {
  return process.env.CDK_DOCKER_CREDS_FILE ?? path.join(
    (os.userInfo().homedir ?? os.homedir()).trim() || "/",
    ".cdk",
    "cdk-docker-creds.json"
  );
}
function cdkCredentialsConfig() {
  if (!_cdkCredentials) {
    try {
      _cdkCredentials = JSON.parse(
        fs2.readFileSync(cdkCredentialsConfigFile(), { encoding: "utf-8" })
      );
    } catch {
    }
  }
  return _cdkCredentials;
}
async function obtainEcrCredentials(ecr, eventEmitter) {
  if (eventEmitter) {
    eventEmitter("debug" /* DEBUG */, "Fetching ECR authorization token");
  }
  const authData = (await ecr.getAuthorizationToken()).authorizationData || [];
  if (authData.length === 0) {
    throw new Error("No authorization data received from ECR");
  }
  const token = Buffer.from(authData[0].authorizationToken, "base64").toString("ascii");
  const [username, password] = token.split(":");
  if (!username || !password) {
    throw new Error("unexpected ECR authData format");
  }
  return {
    username,
    password,
    endpoint: authData[0].proxyEndpoint
  };
}
var fs2, os, path, _cdkCredentials;
var init_docker_credentials = __esm({
  "../@aws-cdk/cdk-assets-lib/lib/private/docker-credentials.ts"() {
    "use strict";
    fs2 = __toESM(require("fs"));
    os = __toESM(require("os"));
    path = __toESM(require("path"));
    init_progress();
    __name(cdkCredentialsConfigFile, "cdkCredentialsConfigFile");
    __name(cdkCredentialsConfig, "cdkCredentialsConfig");
    __name(obtainEcrCredentials, "obtainEcrCredentials");
  }
});

// ../@aws-cdk/cdk-assets-lib/lib/private/shell.ts
async function shell(command2, options) {
  handleShellOutput(renderCommandLine(command2), options, "open");
  const child = child_process.spawn(command2[0], command2.slice(1), {
    ...options,
    stdio: [options.input ? "pipe" : "ignore", "pipe", "pipe"]
  });
  return new Promise((resolve13, reject) => {
    if (options.input) {
      child.stdin.write(options.input);
      child.stdin.end();
    }
    const stdout2 = new Array();
    const stderr2 = new Array();
    child.stdout.on("data", (chunk) => {
      handleShellOutput(chunk, options, "data_stdout");
      stdout2.push(chunk);
    });
    child.stderr.on("data", (chunk) => {
      handleShellOutput(chunk, options, "data_stderr");
      stderr2.push(chunk);
    });
    child.once("error", reject);
    child.once("close", (code, signal) => {
      handleShellOutput(renderCommandLine(command2), options, "close");
      if (code === 0) {
        resolve13(Buffer.concat(stdout2).toString("utf-8"));
      } else {
        const out = Buffer.concat(stderr2).toString("utf-8").trim();
        reject(
          new ProcessFailed(
            code,
            signal,
            `${renderCommandLine(command2)} exited with ${code != null ? "error code" : "signal"} ${code ?? signal}: ${out}`
          )
        );
      }
    });
  });
}
function handleShellOutput(chunk, options, shellEventType) {
  switch (options.subprocessOutputDestination) {
    case "ignore":
      return;
    case "publish":
      options.shellEventPublisher(shellEventType, chunk.toString("utf-8"));
      break;
    case "stdio":
    default:
      switch (shellEventType) {
        case "data_stdout":
          process.stdout.write(chunk);
          break;
        case "data_stderr":
          process.stderr.write(chunk);
          break;
        case "open":
          options.shellEventPublisher(shellEventType, chunk.toString("utf-8"));
          break;
      }
      break;
  }
}
function renderCommandLine(cmd) {
  if (process.platform !== "win32") {
    return doRender(cmd, hasAnyChars(" ", "\\", "!", '"', "'", "&", "$"), posixEscape);
  } else {
    return doRender(cmd, hasAnyChars(" ", '"', "&", "^", "%"), windowsEscape);
  }
}
function doRender(cmd, needsEscaping, doEscape) {
  return cmd.map((x3) => needsEscaping(x3) ? doEscape(x3) : x3).join(" ");
}
function hasAnyChars(...chars) {
  return (str) => {
    return chars.some((c3) => str.indexOf(c3) !== -1);
  };
}
function posixEscape(x3) {
  x3 = x3.replace(/'/g, `'"'"'`);
  return `'${x3}'`;
}
function windowsEscape(x3) {
  x3 = `"${x3}"`;
  const shellMeta = /* @__PURE__ */ new Set(['"', "&", "^", "%"]);
  return x3.split("").map((c3) => shellMeta.has(x3) ? "^" + c3 : c3).join("");
}
var child_process, ProcessFailed;
var init_shell = __esm({
  "../@aws-cdk/cdk-assets-lib/lib/private/shell.ts"() {
    "use strict";
    child_process = __toESM(require("child_process"));
    __name(shell, "shell");
    __name(handleShellOutput, "handleShellOutput");
    ProcessFailed = class extends Error {
      constructor(exitCode, signal, message2) {
        super(message2);
        this.exitCode = exitCode;
        this.signal = signal;
        this.code = "PROCESS_FAILED";
      }
      static {
        __name(this, "ProcessFailed");
      }
    };
    __name(renderCommandLine, "renderCommandLine");
    __name(doRender, "doRender");
    __name(hasAnyChars, "hasAnyChars");
    __name(posixEscape, "posixEscape");
    __name(windowsEscape, "windowsEscape");
  }
});

// ../@aws-cdk/cdk-assets-lib/lib/private/util.ts
function createCriticalSection() {
  let lock = Promise.resolve();
  return async (criticalFunction) => {
    const res = lock.then(() => criticalFunction());
    lock = res.catch((e3) => e3);
    return res;
  };
}
var init_util = __esm({
  "../@aws-cdk/cdk-assets-lib/lib/private/util.ts"() {
    "use strict";
    __name(createCriticalSection, "createCriticalSection");
  }
});

// ../@aws-cdk/cdk-assets-lib/lib/private/docker.ts
function getDockerCmd() {
  return process.env.CDK_DOCKER ?? "docker";
}
function flatten(x3) {
  return Array.prototype.concat([], ...x3);
}
var fs3, os2, path2, Docker, DockerFactory;
var init_docker = __esm({
  "../@aws-cdk/cdk-assets-lib/lib/private/docker.ts"() {
    "use strict";
    fs3 = __toESM(require("fs"));
    os2 = __toESM(require("os"));
    path2 = __toESM(require("path"));
    init_docker_credentials();
    init_shell();
    init_util();
    init_progress();
    Docker = class {
      constructor(eventEmitter, subprocessOutputDestination) {
        this.eventEmitter = eventEmitter;
        this.subprocessOutputDestination = subprocessOutputDestination;
        this.configDir = void 0;
      }
      static {
        __name(this, "Docker");
      }
      /**
       * Whether an image with the given tag exists
       */
      async exists(tag2) {
        try {
          await this.execute(["inspect", tag2], {
            subprocessOutputDestination: "ignore"
          });
          return true;
        } catch (e3) {
          const error5 = e3;
          if (error5.code !== "PROCESS_FAILED") {
            throw error5;
          }
          switch (error5.exitCode) {
            case 1 /* Docker */:
            case 125 /* Podman */:
              return false;
            default:
              throw error5;
          }
        }
      }
      async build(options) {
        const buildCommand = [
          "build",
          ...flatten(
            Object.entries(options.buildArgs || {}).map(([k3, v6]) => ["--build-arg", `${k3}=${v6}`])
          ),
          ...flatten(
            Object.entries(options.buildSecrets || {}).map(([k3, v6]) => ["--secret", `id=${k3},${v6}`])
          ),
          ...options.buildSsh ? ["--ssh", options.buildSsh] : [],
          "--tag",
          options.tag,
          ...options.target ? ["--target", options.target] : [],
          ...options.file ? ["--file", options.file] : [],
          ...options.networkMode ? ["--network", options.networkMode] : [],
          ...options.platform ? ["--platform", options.platform] : [],
          ...options.outputs ? options.outputs.map((output) => [`--output=${output}`]) : [],
          ...options.cacheFrom ? [
            ...options.cacheFrom.map((cacheFrom) => ["--cache-from", this.cacheOptionToFlag(cacheFrom)]).flat()
          ] : [],
          ...options.cacheTo ? ["--cache-to", this.cacheOptionToFlag(options.cacheTo)] : [],
          ...options.cacheDisabled ? ["--no-cache"] : [],
          "."
        ];
        await this.execute(buildCommand, {
          cwd: options.directory,
          subprocessOutputDestination: this.subprocessOutputDestination,
          env: {
            BUILDX_NO_DEFAULT_ATTESTATIONS: "1"
            // Docker Build adds provenance attestations by default that confuse cdk-assets
          }
        });
      }
      /**
       * Get credentials from ECR and run docker login
       */
      async login(ecr) {
        const credentials = await obtainEcrCredentials(ecr, this.eventEmitter);
        await this.execute(
          ["login", "--username", credentials.username, "--password-stdin", credentials.endpoint.replace(/^https?:\/\/|\/$/g, "")],
          {
            input: credentials.password,
            // Need to ignore otherwise Docker will complain
            // 'WARNING! Your password will be stored unencrypted'
            // doesn't really matter since it's a token.
            subprocessOutputDestination: "ignore"
          }
        );
      }
      async tag(sourceTag, targetTag) {
        await this.execute(["tag", sourceTag, targetTag]);
      }
      async push(options) {
        await this.execute(["push", options.tag], {
          subprocessOutputDestination: this.subprocessOutputDestination
        });
      }
      /**
       * If a CDK Docker Credentials file exists, creates a new Docker config directory.
       * Sets up `docker-credential-cdk-assets` to be the credential helper for each domain in the CDK config.
       * All future commands (e.g., `build`, `push`) will use this config.
       *
       * See https://docs.docker.com/engine/reference/commandline/login/#credential-helpers for more details on cred helpers.
       *
       * @returns true if CDK config was found and configured, false otherwise
       */
      configureCdkCredentials() {
        const config = cdkCredentialsConfig();
        if (!config) {
          return false;
        }
        this.configDir = fs3.mkdtempSync(path2.join(os2.tmpdir(), "cdkDockerConfig"));
        const domains = Object.keys(config.domainCredentials);
        const credHelpers = domains.reduce((map3, domain) => {
          map3[domain] = "cdk-assets";
          return map3;
        }, {});
        fs3.writeFileSync(path2.join(this.configDir, "config.json"), JSON.stringify({ credHelpers }), {
          encoding: "utf-8"
        });
        return true;
      }
      /**
       * Removes any configured Docker config directory.
       * All future commands (e.g., `build`, `push`) will use the default config.
       *
       * This is useful after calling `configureCdkCredentials` to reset to default credentials.
       */
      resetAuthPlugins() {
        this.configDir = void 0;
      }
      async execute(args, options = {}) {
        const configArgs = this.configDir ? ["--config", this.configDir] : [];
        const pathToCdkAssets = path2.resolve(__dirname, "..", "..", "bin");
        const shellEventPublisher = shellEventPublisherFromEventEmitter(this.eventEmitter);
        try {
          await shell([getDockerCmd(), ...configArgs, ...args], {
            ...options,
            shellEventPublisher,
            env: {
              ...process.env,
              ...options.env,
              PATH: `${pathToCdkAssets}${path2.delimiter}${options.env?.PATH ?? process.env.PATH}`
            }
          });
        } catch (e3) {
          if (e3.code === "ENOENT") {
            throw new Error(
              `Failed to find and execute '${getDockerCmd()}' while attempting to build a container asset. Please install '${getDockerCmd()}' and try again. (Or set the 'CDK_DOCKER ' environment variable to choose a different compatible container client.)`
            );
          }
          throw e3;
        }
      }
      cacheOptionToFlag(option) {
        let flag = `type=${option.type}`;
        if (option.params) {
          flag += "," + Object.entries(option.params).map(([k3, v6]) => `${k3}=${v6}`).join(",");
        }
        return flag;
      }
    };
    DockerFactory = class {
      constructor() {
        this.enterLoggedInDestinationsCriticalSection = createCriticalSection();
        this.loggedInDestinations = /* @__PURE__ */ new Set();
      }
      static {
        __name(this, "DockerFactory");
      }
      /**
       * Gets a Docker instance for building images.
       */
      async forBuild(options) {
        const docker = new Docker(options.eventEmitter, options.subprocessOutputDestination);
        let cdkDockerCredentialsConfigured = docker.configureCdkCredentials();
        if (!cdkDockerCredentialsConfigured) {
          await this.loginOncePerDestination(docker, options);
        }
        return docker;
      }
      /**
       * Gets a Docker instance for pushing images to ECR.
       */
      async forEcrPush(options) {
        const docker = new Docker(options.eventEmitter, options.subprocessOutputDestination);
        await this.loginOncePerDestination(docker, options);
        return docker;
      }
      async loginOncePerDestination(docker, options) {
        const repositoryDomain = options.repoUri.split("/")[0];
        await this.enterLoggedInDestinationsCriticalSection(async () => {
          if (this.loggedInDestinations.has(repositoryDomain)) {
            return;
          }
          await docker.login(options.ecr);
          this.loggedInDestinations.add(repositoryDomain);
        });
      }
    };
    __name(getDockerCmd, "getDockerCmd");
    __name(flatten, "flatten");
  }
});

// ../@aws-cdk/cdk-assets-lib/lib/private/handlers/client-options.ts
function destinationToClientOptions(destination) {
  return {
    assumeRoleArn: destination.assumeRoleArn,
    assumeRoleExternalId: destination.assumeRoleExternalId,
    assumeRoleAdditionalOptions: destination.assumeRoleAdditionalOptions,
    region: destination.region
  };
}
var init_client_options = __esm({
  "../@aws-cdk/cdk-assets-lib/lib/private/handlers/client-options.ts"() {
    "use strict";
    __name(destinationToClientOptions, "destinationToClientOptions");
  }
});

// ../@aws-cdk/cdk-assets-lib/lib/private/placeholders.ts
async function replaceAwsPlaceholders(object, aws) {
  let partition3 = /* @__PURE__ */ __name(async () => {
    const p3 = await aws.discoverPartition();
    partition3 = /* @__PURE__ */ __name(() => Promise.resolve(p3), "partition");
    return p3;
  }, "partition");
  let account = /* @__PURE__ */ __name(async () => {
    const a3 = await aws.discoverCurrentAccount();
    account = /* @__PURE__ */ __name(() => Promise.resolve(a3), "account");
    return a3;
  }, "account");
  return import_cx_api.EnvironmentPlaceholders.replaceAsync(object, {
    async region() {
      return object.region ?? aws.discoverDefaultRegion();
    },
    async accountId() {
      return (await account()).accountId;
    },
    async partition() {
      return partition3();
    }
  });
}
var import_cx_api;
var init_placeholders = __esm({
  "../@aws-cdk/cdk-assets-lib/lib/private/placeholders.ts"() {
    "use strict";
    import_cx_api = __toESM(require_lib3());
    __name(replaceAwsPlaceholders, "replaceAwsPlaceholders");
  }
});

// ../@aws-cdk/cdk-assets-lib/lib/private/handlers/container-images.ts
async function imageExists(ecr, repositoryName, imageTag) {
  try {
    await ecr.describeImages({
      repositoryName,
      imageIds: [{ imageTag }]
    });
    return true;
  } catch (e3) {
    if (e3.name !== "ImageNotFoundException") {
      throw e3;
    }
    return false;
  }
}
async function repositoryUri(ecr, repositoryName) {
  try {
    const response = await ecr.describeRepositories({
      repositoryNames: [repositoryName]
    });
    return (response.repositories || [])[0]?.repositoryUri;
  } catch (e3) {
    if (e3.name !== "RepositoryNotFoundException") {
      throw e3;
    }
    return void 0;
  }
}
var path3, ContainerImageAssetHandler, ContainerImageBuilder;
var init_container_images = __esm({
  "../@aws-cdk/cdk-assets-lib/lib/private/handlers/container-images.ts"() {
    "use strict";
    path3 = __toESM(require("path"));
    init_client_options();
    init_progress();
    init_placeholders();
    init_shell();
    ContainerImageAssetHandler = class {
      constructor(workDir, asset, host, options) {
        this.workDir = workDir;
        this.asset = asset;
        this.host = host;
        this.options = options;
      }
      static {
        __name(this, "ContainerImageAssetHandler");
      }
      async build() {
        const initOnce = await this.initOnce();
        if (initOnce.destinationAlreadyExists) {
          return;
        }
        if (this.host.aborted) {
          return;
        }
        const dockerForBuilding = await this.host.dockerFactory.forBuild({
          repoUri: initOnce.repoUri,
          eventEmitter: /* @__PURE__ */ __name((m3) => this.host.emitMessage("debug" /* DEBUG */, m3), "eventEmitter"),
          ecr: initOnce.ecr,
          subprocessOutputDestination: this.options.subprocessOutputDestination
        });
        const builder = new ContainerImageBuilder(
          dockerForBuilding,
          this.workDir,
          this.asset,
          this.host
        );
        const localTagName = await builder.build();
        if (localTagName === void 0 || this.host.aborted) {
          return;
        }
        if (this.host.aborted) {
          return;
        }
        await dockerForBuilding.tag(localTagName, initOnce.imageUri);
      }
      async isPublished() {
        try {
          const initOnce = await this.initOnce({ quiet: true });
          return initOnce.destinationAlreadyExists;
        } catch (e3) {
          this.host.emitMessage("debug" /* DEBUG */, `${e3.message}`);
        }
        return false;
      }
      async publish() {
        const initOnce = await this.initOnce();
        if (initOnce.destinationAlreadyExists) {
          return;
        }
        if (this.host.aborted) {
          return;
        }
        const dockerForPushing = await this.host.dockerFactory.forEcrPush({
          repoUri: initOnce.repoUri,
          eventEmitter: this.host.emitMessage,
          ecr: initOnce.ecr,
          subprocessOutputDestination: this.options.subprocessOutputDestination
        });
        if (this.host.aborted) {
          return;
        }
        this.host.emitMessage("upload" /* UPLOAD */, `Push ${initOnce.imageUri}`);
        await dockerForPushing.push({
          tag: initOnce.imageUri
        });
      }
      async initOnce(options = {}) {
        if (this.init) {
          return this.init;
        }
        const destination = await replaceAwsPlaceholders(this.asset.destination, this.host.aws);
        const ecr = await this.host.aws.ecrClient({
          ...destinationToClientOptions(destination),
          quiet: options.quiet
        });
        const account = /* @__PURE__ */ __name(async () => (await this.host.aws.discoverCurrentAccount())?.accountId, "account");
        const repoUri = await repositoryUri(ecr, destination.repositoryName);
        if (!repoUri) {
          throw new Error(
            `No ECR repository named '${destination.repositoryName}' in account ${await account()}. Is this account bootstrapped?`
          );
        }
        const imageUri = `${repoUri}:${destination.imageTag}`;
        this.init = {
          imageUri,
          ecr,
          repoUri,
          destinationAlreadyExists: await this.destinationAlreadyExists(ecr, destination, imageUri)
        };
        return this.init;
      }
      /**
       * Check whether the image already exists in the ECR repo
       *
       * Use the fields from the destination to do the actual check. The imageUri
       * should correspond to that, but is only used to print Docker image location
       * for user benefit (the format is slightly different).
       */
      async destinationAlreadyExists(ecr, destination, imageUri) {
        this.host.emitMessage("check" /* CHECK */, `Check ${imageUri}`);
        if (await imageExists(ecr, destination.repositoryName, destination.imageTag)) {
          this.host.emitMessage("found" /* FOUND */, `Found ${imageUri}`);
          return true;
        }
        return false;
      }
    };
    ContainerImageBuilder = class {
      constructor(docker, workDir, asset, host) {
        this.docker = docker;
        this.workDir = workDir;
        this.asset = asset;
        this.host = host;
      }
      static {
        __name(this, "ContainerImageBuilder");
      }
      async build() {
        return this.asset.source.executable ? this.buildExternalAsset(this.asset.source.executable) : this.buildDirectoryAsset();
      }
      /**
       * Build a (local) Docker asset from a directory with a Dockerfile
       *
       * Tags under a deterministic, unique, local identifier wich will skip
       * the build if it already exists.
       */
      async buildDirectoryAsset() {
        const localTagName = `cdkasset-${this.asset.id.assetId.toLowerCase()}`;
        if (!await this.isImageCached(localTagName)) {
          if (this.host.aborted) {
            return void 0;
          }
          await this.buildImage(localTagName);
        }
        return localTagName;
      }
      /**
       * Build a (local) Docker asset by running an external command
       *
       * External command is responsible for deduplicating the build if possible,
       * and is expected to return the generated image identifier on stdout.
       */
      async buildExternalAsset(executable, cwd) {
        const assetPath = cwd ?? this.workDir;
        this.host.emitMessage("build" /* BUILD */, `Building Docker image using command '${executable}'`);
        if (this.host.aborted) {
          return void 0;
        }
        const shellEventPublisher = shellEventPublisherFromEventEmitter(this.host.emitMessage);
        return (await shell(executable, {
          cwd: assetPath,
          shellEventPublisher,
          subprocessOutputDestination: "ignore"
        })).trim();
      }
      async buildImage(localTagName) {
        const source = this.asset.source;
        if (!source.directory) {
          throw new Error(
            `'directory' is expected in the DockerImage asset source, got: ${JSON.stringify(source)}`
          );
        }
        const fullPath = path3.resolve(this.workDir, source.directory);
        this.host.emitMessage("build" /* BUILD */, `Building Docker image at ${fullPath}`);
        await this.docker.build({
          directory: fullPath,
          tag: localTagName,
          buildArgs: source.dockerBuildArgs,
          buildSecrets: source.dockerBuildSecrets,
          buildSsh: source.dockerBuildSsh,
          target: source.dockerBuildTarget,
          file: source.dockerFile,
          networkMode: source.networkMode,
          platform: source.platform,
          outputs: source.dockerOutputs,
          cacheFrom: source.cacheFrom,
          cacheTo: source.cacheTo,
          cacheDisabled: source.cacheDisabled
        });
      }
      async isImageCached(localTagName) {
        if (await this.docker.exists(localTagName)) {
          this.host.emitMessage("cached" /* CACHED */, `Cached ${localTagName}`);
          return true;
        }
        return false;
      }
    };
    __name(imageExists, "imageExists");
    __name(repositoryUri, "repositoryUri");
  }
});

// ../../node_modules/mime/Mime.js
var require_Mime = __commonJS({
  "../../node_modules/mime/Mime.js"(exports2, module2) {
    "use strict";
    function Mime() {
      this._types = /* @__PURE__ */ Object.create(null);
      this._extensions = /* @__PURE__ */ Object.create(null);
      for (let i3 = 0; i3 < arguments.length; i3++) {
        this.define(arguments[i3]);
      }
      this.define = this.define.bind(this);
      this.getType = this.getType.bind(this);
      this.getExtension = this.getExtension.bind(this);
    }
    __name(Mime, "Mime");
    Mime.prototype.define = function(typeMap, force) {
      for (let type in typeMap) {
        let extensions = typeMap[type].map(function(t3) {
          return t3.toLowerCase();
        });
        type = type.toLowerCase();
        for (let i3 = 0; i3 < extensions.length; i3++) {
          const ext4 = extensions[i3];
          if (ext4[0] === "*") {
            continue;
          }
          if (!force && ext4 in this._types) {
            throw new Error(
              'Attempt to change mapping for "' + ext4 + '" extension from "' + this._types[ext4] + '" to "' + type + '". Pass `force=true` to allow this, otherwise remove "' + ext4 + '" from the list of extensions for "' + type + '".'
            );
          }
          this._types[ext4] = type;
        }
        if (force || !this._extensions[type]) {
          const ext4 = extensions[0];
          this._extensions[type] = ext4[0] !== "*" ? ext4 : ext4.substr(1);
        }
      }
    };
    Mime.prototype.getType = function(path38) {
      path38 = String(path38);
      let last = path38.replace(/^.*[/\\]/, "").toLowerCase();
      let ext4 = last.replace(/^.*\./, "").toLowerCase();
      let hasPath = last.length < path38.length;
      let hasDot = ext4.length < last.length - 1;
      return (hasDot || !hasPath) && this._types[ext4] || null;
    };
    Mime.prototype.getExtension = function(type) {
      type = /^\s*([^;\s]*)/.test(type) && RegExp.$1;
      return type && this._extensions[type.toLowerCase()] || null;
    };
    module2.exports = Mime;
  }
});

// ../../node_modules/mime/types/standard.js
var require_standard = __commonJS({
  "../../node_modules/mime/types/standard.js"(exports2, module2) {
    module2.exports = { "application/andrew-inset": ["ez"], "application/applixware": ["aw"], "application/atom+xml": ["atom"], "application/atomcat+xml": ["atomcat"], "application/atomdeleted+xml": ["atomdeleted"], "application/atomsvc+xml": ["atomsvc"], "application/atsc-dwd+xml": ["dwd"], "application/atsc-held+xml": ["held"], "application/atsc-rsat+xml": ["rsat"], "application/bdoc": ["bdoc"], "application/calendar+xml": ["xcs"], "application/ccxml+xml": ["ccxml"], "application/cdfx+xml": ["cdfx"], "application/cdmi-capability": ["cdmia"], "application/cdmi-container": ["cdmic"], "application/cdmi-domain": ["cdmid"], "application/cdmi-object": ["cdmio"], "application/cdmi-queue": ["cdmiq"], "application/cu-seeme": ["cu"], "application/dash+xml": ["mpd"], "application/davmount+xml": ["davmount"], "application/docbook+xml": ["dbk"], "application/dssc+der": ["dssc"], "application/dssc+xml": ["xdssc"], "application/ecmascript": ["es", "ecma"], "application/emma+xml": ["emma"], "application/emotionml+xml": ["emotionml"], "application/epub+zip": ["epub"], "application/exi": ["exi"], "application/express": ["exp"], "application/fdt+xml": ["fdt"], "application/font-tdpfr": ["pfr"], "application/geo+json": ["geojson"], "application/gml+xml": ["gml"], "application/gpx+xml": ["gpx"], "application/gxf": ["gxf"], "application/gzip": ["gz"], "application/hjson": ["hjson"], "application/hyperstudio": ["stk"], "application/inkml+xml": ["ink", "inkml"], "application/ipfix": ["ipfix"], "application/its+xml": ["its"], "application/java-archive": ["jar", "war", "ear"], "application/java-serialized-object": ["ser"], "application/java-vm": ["class"], "application/javascript": ["js", "mjs"], "application/json": ["json", "map"], "application/json5": ["json5"], "application/jsonml+json": ["jsonml"], "application/ld+json": ["jsonld"], "application/lgr+xml": ["lgr"], "application/lost+xml": ["lostxml"], "application/mac-binhex40": ["hqx"], "application/mac-compactpro": ["cpt"], "application/mads+xml": ["mads"], "application/manifest+json": ["webmanifest"], "application/marc": ["mrc"], "application/marcxml+xml": ["mrcx"], "application/mathematica": ["ma", "nb", "mb"], "application/mathml+xml": ["mathml"], "application/mbox": ["mbox"], "application/mediaservercontrol+xml": ["mscml"], "application/metalink+xml": ["metalink"], "application/metalink4+xml": ["meta4"], "application/mets+xml": ["mets"], "application/mmt-aei+xml": ["maei"], "application/mmt-usd+xml": ["musd"], "application/mods+xml": ["mods"], "application/mp21": ["m21", "mp21"], "application/mp4": ["mp4s", "m4p"], "application/msword": ["doc", "dot"], "application/mxf": ["mxf"], "application/n-quads": ["nq"], "application/n-triples": ["nt"], "application/node": ["cjs"], "application/octet-stream": ["bin", "dms", "lrf", "mar", "so", "dist", "distz", "pkg", "bpk", "dump", "elc", "deploy", "exe", "dll", "deb", "dmg", "iso", "img", "msi", "msp", "msm", "buffer"], "application/oda": ["oda"], "application/oebps-package+xml": ["opf"], "application/ogg": ["ogx"], "application/omdoc+xml": ["omdoc"], "application/onenote": ["onetoc", "onetoc2", "onetmp", "onepkg"], "application/oxps": ["oxps"], "application/p2p-overlay+xml": ["relo"], "application/patch-ops-error+xml": ["xer"], "application/pdf": ["pdf"], "application/pgp-encrypted": ["pgp"], "application/pgp-signature": ["asc", "sig"], "application/pics-rules": ["prf"], "application/pkcs10": ["p10"], "application/pkcs7-mime": ["p7m", "p7c"], "application/pkcs7-signature": ["p7s"], "application/pkcs8": ["p8"], "application/pkix-attr-cert": ["ac"], "application/pkix-cert": ["cer"], "application/pkix-crl": ["crl"], "application/pkix-pkipath": ["pkipath"], "application/pkixcmp": ["pki"], "application/pls+xml": ["pls"], "application/postscript": ["ai", "eps", "ps"], "application/provenance+xml": ["provx"], "application/pskc+xml": ["pskcxml"], "application/raml+yaml": ["raml"], "application/rdf+xml": ["rdf", "owl"], "application/reginfo+xml": ["rif"], "application/relax-ng-compact-syntax": ["rnc"], "application/resource-lists+xml": ["rl"], "application/resource-lists-diff+xml": ["rld"], "application/rls-services+xml": ["rs"], "application/route-apd+xml": ["rapd"], "application/route-s-tsid+xml": ["sls"], "application/route-usd+xml": ["rusd"], "application/rpki-ghostbusters": ["gbr"], "application/rpki-manifest": ["mft"], "application/rpki-roa": ["roa"], "application/rsd+xml": ["rsd"], "application/rss+xml": ["rss"], "application/rtf": ["rtf"], "application/sbml+xml": ["sbml"], "application/scvp-cv-request": ["scq"], "application/scvp-cv-response": ["scs"], "application/scvp-vp-request": ["spq"], "application/scvp-vp-response": ["spp"], "application/sdp": ["sdp"], "application/senml+xml": ["senmlx"], "application/sensml+xml": ["sensmlx"], "application/set-payment-initiation": ["setpay"], "application/set-registration-initiation": ["setreg"], "application/shf+xml": ["shf"], "application/sieve": ["siv", "sieve"], "application/smil+xml": ["smi", "smil"], "application/sparql-query": ["rq"], "application/sparql-results+xml": ["srx"], "application/srgs": ["gram"], "application/srgs+xml": ["grxml"], "application/sru+xml": ["sru"], "application/ssdl+xml": ["ssdl"], "application/ssml+xml": ["ssml"], "application/swid+xml": ["swidtag"], "application/tei+xml": ["tei", "teicorpus"], "application/thraud+xml": ["tfi"], "application/timestamped-data": ["tsd"], "application/toml": ["toml"], "application/trig": ["trig"], "application/ttml+xml": ["ttml"], "application/ubjson": ["ubj"], "application/urc-ressheet+xml": ["rsheet"], "application/urc-targetdesc+xml": ["td"], "application/voicexml+xml": ["vxml"], "application/wasm": ["wasm"], "application/widget": ["wgt"], "application/winhlp": ["hlp"], "application/wsdl+xml": ["wsdl"], "application/wspolicy+xml": ["wspolicy"], "application/xaml+xml": ["xaml"], "application/xcap-att+xml": ["xav"], "application/xcap-caps+xml": ["xca"], "application/xcap-diff+xml": ["xdf"], "application/xcap-el+xml": ["xel"], "application/xcap-ns+xml": ["xns"], "application/xenc+xml": ["xenc"], "application/xhtml+xml": ["xhtml", "xht"], "application/xliff+xml": ["xlf"], "application/xml": ["xml", "xsl", "xsd", "rng"], "application/xml-dtd": ["dtd"], "application/xop+xml": ["xop"], "application/xproc+xml": ["xpl"], "application/xslt+xml": ["*xsl", "xslt"], "application/xspf+xml": ["xspf"], "application/xv+xml": ["mxml", "xhvml", "xvml", "xvm"], "application/yang": ["yang"], "application/yin+xml": ["yin"], "application/zip": ["zip"], "audio/3gpp": ["*3gpp"], "audio/adpcm": ["adp"], "audio/amr": ["amr"], "audio/basic": ["au", "snd"], "audio/midi": ["mid", "midi", "kar", "rmi"], "audio/mobile-xmf": ["mxmf"], "audio/mp3": ["*mp3"], "audio/mp4": ["m4a", "mp4a"], "audio/mpeg": ["mpga", "mp2", "mp2a", "mp3", "m2a", "m3a"], "audio/ogg": ["oga", "ogg", "spx", "opus"], "audio/s3m": ["s3m"], "audio/silk": ["sil"], "audio/wav": ["wav"], "audio/wave": ["*wav"], "audio/webm": ["weba"], "audio/xm": ["xm"], "font/collection": ["ttc"], "font/otf": ["otf"], "font/ttf": ["ttf"], "font/woff": ["woff"], "font/woff2": ["woff2"], "image/aces": ["exr"], "image/apng": ["apng"], "image/avif": ["avif"], "image/bmp": ["bmp"], "image/cgm": ["cgm"], "image/dicom-rle": ["drle"], "image/emf": ["emf"], "image/fits": ["fits"], "image/g3fax": ["g3"], "image/gif": ["gif"], "image/heic": ["heic"], "image/heic-sequence": ["heics"], "image/heif": ["heif"], "image/heif-sequence": ["heifs"], "image/hej2k": ["hej2"], "image/hsj2": ["hsj2"], "image/ief": ["ief"], "image/jls": ["jls"], "image/jp2": ["jp2", "jpg2"], "image/jpeg": ["jpeg", "jpg", "jpe"], "image/jph": ["jph"], "image/jphc": ["jhc"], "image/jpm": ["jpm"], "image/jpx": ["jpx", "jpf"], "image/jxr": ["jxr"], "image/jxra": ["jxra"], "image/jxrs": ["jxrs"], "image/jxs": ["jxs"], "image/jxsc": ["jxsc"], "image/jxsi": ["jxsi"], "image/jxss": ["jxss"], "image/ktx": ["ktx"], "image/ktx2": ["ktx2"], "image/png": ["png"], "image/sgi": ["sgi"], "image/svg+xml": ["svg", "svgz"], "image/t38": ["t38"], "image/tiff": ["tif", "tiff"], "image/tiff-fx": ["tfx"], "image/webp": ["webp"], "image/wmf": ["wmf"], "message/disposition-notification": ["disposition-notification"], "message/global": ["u8msg"], "message/global-delivery-status": ["u8dsn"], "message/global-disposition-notification": ["u8mdn"], "message/global-headers": ["u8hdr"], "message/rfc822": ["eml", "mime"], "model/3mf": ["3mf"], "model/gltf+json": ["gltf"], "model/gltf-binary": ["glb"], "model/iges": ["igs", "iges"], "model/mesh": ["msh", "mesh", "silo"], "model/mtl": ["mtl"], "model/obj": ["obj"], "model/step+xml": ["stpx"], "model/step+zip": ["stpz"], "model/step-xml+zip": ["stpxz"], "model/stl": ["stl"], "model/vrml": ["wrl", "vrml"], "model/x3d+binary": ["*x3db", "x3dbz"], "model/x3d+fastinfoset": ["x3db"], "model/x3d+vrml": ["*x3dv", "x3dvz"], "model/x3d+xml": ["x3d", "x3dz"], "model/x3d-vrml": ["x3dv"], "text/cache-manifest": ["appcache", "manifest"], "text/calendar": ["ics", "ifb"], "text/coffeescript": ["coffee", "litcoffee"], "text/css": ["css"], "text/csv": ["csv"], "text/html": ["html", "htm", "shtml"], "text/jade": ["jade"], "text/jsx": ["jsx"], "text/less": ["less"], "text/markdown": ["markdown", "md"], "text/mathml": ["mml"], "text/mdx": ["mdx"], "text/n3": ["n3"], "text/plain": ["txt", "text", "conf", "def", "list", "log", "in", "ini"], "text/richtext": ["rtx"], "text/rtf": ["*rtf"], "text/sgml": ["sgml", "sgm"], "text/shex": ["shex"], "text/slim": ["slim", "slm"], "text/spdx": ["spdx"], "text/stylus": ["stylus", "styl"], "text/tab-separated-values": ["tsv"], "text/troff": ["t", "tr", "roff", "man", "me", "ms"], "text/turtle": ["ttl"], "text/uri-list": ["uri", "uris", "urls"], "text/vcard": ["vcard"], "text/vtt": ["vtt"], "text/xml": ["*xml"], "text/yaml": ["yaml", "yml"], "video/3gpp": ["3gp", "3gpp"], "video/3gpp2": ["3g2"], "video/h261": ["h261"], "video/h263": ["h263"], "video/h264": ["h264"], "video/iso.segment": ["m4s"], "video/jpeg": ["jpgv"], "video/jpm": ["*jpm", "jpgm"], "video/mj2": ["mj2", "mjp2"], "video/mp2t": ["ts"], "video/mp4": ["mp4", "mp4v", "mpg4"], "video/mpeg": ["mpeg", "mpg", "mpe", "m1v", "m2v"], "video/ogg": ["ogv"], "video/quicktime": ["qt", "mov"], "video/webm": ["webm"] };
  }
});

// ../../node_modules/mime/types/other.js
var require_other = __commonJS({
  "../../node_modules/mime/types/other.js"(exports2, module2) {
    module2.exports = { "application/prs.cww": ["cww"], "application/vnd.1000minds.decision-model+xml": ["1km"], "application/vnd.3gpp.pic-bw-large": ["plb"], "application/vnd.3gpp.pic-bw-small": ["psb"], "application/vnd.3gpp.pic-bw-var": ["pvb"], "application/vnd.3gpp2.tcap": ["tcap"], "application/vnd.3m.post-it-notes": ["pwn"], "application/vnd.accpac.simply.aso": ["aso"], "application/vnd.accpac.simply.imp": ["imp"], "application/vnd.acucobol": ["acu"], "application/vnd.acucorp": ["atc", "acutc"], "application/vnd.adobe.air-application-installer-package+zip": ["air"], "application/vnd.adobe.formscentral.fcdt": ["fcdt"], "application/vnd.adobe.fxp": ["fxp", "fxpl"], "application/vnd.adobe.xdp+xml": ["xdp"], "application/vnd.adobe.xfdf": ["xfdf"], "application/vnd.ahead.space": ["ahead"], "application/vnd.airzip.filesecure.azf": ["azf"], "application/vnd.airzip.filesecure.azs": ["azs"], "application/vnd.amazon.ebook": ["azw"], "application/vnd.americandynamics.acc": ["acc"], "application/vnd.amiga.ami": ["ami"], "application/vnd.android.package-archive": ["apk"], "application/vnd.anser-web-certificate-issue-initiation": ["cii"], "application/vnd.anser-web-funds-transfer-initiation": ["fti"], "application/vnd.antix.game-component": ["atx"], "application/vnd.apple.installer+xml": ["mpkg"], "application/vnd.apple.keynote": ["key"], "application/vnd.apple.mpegurl": ["m3u8"], "application/vnd.apple.numbers": ["numbers"], "application/vnd.apple.pages": ["pages"], "application/vnd.apple.pkpass": ["pkpass"], "application/vnd.aristanetworks.swi": ["swi"], "application/vnd.astraea-software.iota": ["iota"], "application/vnd.audiograph": ["aep"], "application/vnd.balsamiq.bmml+xml": ["bmml"], "application/vnd.blueice.multipass": ["mpm"], "application/vnd.bmi": ["bmi"], "application/vnd.businessobjects": ["rep"], "application/vnd.chemdraw+xml": ["cdxml"], "application/vnd.chipnuts.karaoke-mmd": ["mmd"], "application/vnd.cinderella": ["cdy"], "application/vnd.citationstyles.style+xml": ["csl"], "application/vnd.claymore": ["cla"], "application/vnd.cloanto.rp9": ["rp9"], "application/vnd.clonk.c4group": ["c4g", "c4d", "c4f", "c4p", "c4u"], "application/vnd.cluetrust.cartomobile-config": ["c11amc"], "application/vnd.cluetrust.cartomobile-config-pkg": ["c11amz"], "application/vnd.commonspace": ["csp"], "application/vnd.contact.cmsg": ["cdbcmsg"], "application/vnd.cosmocaller": ["cmc"], "application/vnd.crick.clicker": ["clkx"], "application/vnd.crick.clicker.keyboard": ["clkk"], "application/vnd.crick.clicker.palette": ["clkp"], "application/vnd.crick.clicker.template": ["clkt"], "application/vnd.crick.clicker.wordbank": ["clkw"], "application/vnd.criticaltools.wbs+xml": ["wbs"], "application/vnd.ctc-posml": ["pml"], "application/vnd.cups-ppd": ["ppd"], "application/vnd.curl.car": ["car"], "application/vnd.curl.pcurl": ["pcurl"], "application/vnd.dart": ["dart"], "application/vnd.data-vision.rdz": ["rdz"], "application/vnd.dbf": ["dbf"], "application/vnd.dece.data": ["uvf", "uvvf", "uvd", "uvvd"], "application/vnd.dece.ttml+xml": ["uvt", "uvvt"], "application/vnd.dece.unspecified": ["uvx", "uvvx"], "application/vnd.dece.zip": ["uvz", "uvvz"], "application/vnd.denovo.fcselayout-link": ["fe_launch"], "application/vnd.dna": ["dna"], "application/vnd.dolby.mlp": ["mlp"], "application/vnd.dpgraph": ["dpg"], "application/vnd.dreamfactory": ["dfac"], "application/vnd.ds-keypoint": ["kpxx"], "application/vnd.dvb.ait": ["ait"], "application/vnd.dvb.service": ["svc"], "application/vnd.dynageo": ["geo"], "application/vnd.ecowin.chart": ["mag"], "application/vnd.enliven": ["nml"], "application/vnd.epson.esf": ["esf"], "application/vnd.epson.msf": ["msf"], "application/vnd.epson.quickanime": ["qam"], "application/vnd.epson.salt": ["slt"], "application/vnd.epson.ssf": ["ssf"], "application/vnd.eszigno3+xml": ["es3", "et3"], "application/vnd.ezpix-album": ["ez2"], "application/vnd.ezpix-package": ["ez3"], "application/vnd.fdf": ["fdf"], "application/vnd.fdsn.mseed": ["mseed"], "application/vnd.fdsn.seed": ["seed", "dataless"], "application/vnd.flographit": ["gph"], "application/vnd.fluxtime.clip": ["ftc"], "application/vnd.framemaker": ["fm", "frame", "maker", "book"], "application/vnd.frogans.fnc": ["fnc"], "application/vnd.frogans.ltf": ["ltf"], "application/vnd.fsc.weblaunch": ["fsc"], "application/vnd.fujitsu.oasys": ["oas"], "application/vnd.fujitsu.oasys2": ["oa2"], "application/vnd.fujitsu.oasys3": ["oa3"], "application/vnd.fujitsu.oasysgp": ["fg5"], "application/vnd.fujitsu.oasysprs": ["bh2"], "application/vnd.fujixerox.ddd": ["ddd"], "application/vnd.fujixerox.docuworks": ["xdw"], "application/vnd.fujixerox.docuworks.binder": ["xbd"], "application/vnd.fuzzysheet": ["fzs"], "application/vnd.genomatix.tuxedo": ["txd"], "application/vnd.geogebra.file": ["ggb"], "application/vnd.geogebra.tool": ["ggt"], "application/vnd.geometry-explorer": ["gex", "gre"], "application/vnd.geonext": ["gxt"], "application/vnd.geoplan": ["g2w"], "application/vnd.geospace": ["g3w"], "application/vnd.gmx": ["gmx"], "application/vnd.google-apps.document": ["gdoc"], "application/vnd.google-apps.presentation": ["gslides"], "application/vnd.google-apps.spreadsheet": ["gsheet"], "application/vnd.google-earth.kml+xml": ["kml"], "application/vnd.google-earth.kmz": ["kmz"], "application/vnd.grafeq": ["gqf", "gqs"], "application/vnd.groove-account": ["gac"], "application/vnd.groove-help": ["ghf"], "application/vnd.groove-identity-message": ["gim"], "application/vnd.groove-injector": ["grv"], "application/vnd.groove-tool-message": ["gtm"], "application/vnd.groove-tool-template": ["tpl"], "application/vnd.groove-vcard": ["vcg"], "application/vnd.hal+xml": ["hal"], "application/vnd.handheld-entertainment+xml": ["zmm"], "application/vnd.hbci": ["hbci"], "application/vnd.hhe.lesson-player": ["les"], "application/vnd.hp-hpgl": ["hpgl"], "application/vnd.hp-hpid": ["hpid"], "application/vnd.hp-hps": ["hps"], "application/vnd.hp-jlyt": ["jlt"], "application/vnd.hp-pcl": ["pcl"], "application/vnd.hp-pclxl": ["pclxl"], "application/vnd.hydrostatix.sof-data": ["sfd-hdstx"], "application/vnd.ibm.minipay": ["mpy"], "application/vnd.ibm.modcap": ["afp", "listafp", "list3820"], "application/vnd.ibm.rights-management": ["irm"], "application/vnd.ibm.secure-container": ["sc"], "application/vnd.iccprofile": ["icc", "icm"], "application/vnd.igloader": ["igl"], "application/vnd.immervision-ivp": ["ivp"], "application/vnd.immervision-ivu": ["ivu"], "application/vnd.insors.igm": ["igm"], "application/vnd.intercon.formnet": ["xpw", "xpx"], "application/vnd.intergeo": ["i2g"], "application/vnd.intu.qbo": ["qbo"], "application/vnd.intu.qfx": ["qfx"], "application/vnd.ipunplugged.rcprofile": ["rcprofile"], "application/vnd.irepository.package+xml": ["irp"], "application/vnd.is-xpr": ["xpr"], "application/vnd.isac.fcs": ["fcs"], "application/vnd.jam": ["jam"], "application/vnd.jcp.javame.midlet-rms": ["rms"], "application/vnd.jisp": ["jisp"], "application/vnd.joost.joda-archive": ["joda"], "application/vnd.kahootz": ["ktz", "ktr"], "application/vnd.kde.karbon": ["karbon"], "application/vnd.kde.kchart": ["chrt"], "application/vnd.kde.kformula": ["kfo"], "application/vnd.kde.kivio": ["flw"], "application/vnd.kde.kontour": ["kon"], "application/vnd.kde.kpresenter": ["kpr", "kpt"], "application/vnd.kde.kspread": ["ksp"], "application/vnd.kde.kword": ["kwd", "kwt"], "application/vnd.kenameaapp": ["htke"], "application/vnd.kidspiration": ["kia"], "application/vnd.kinar": ["kne", "knp"], "application/vnd.koan": ["skp", "skd", "skt", "skm"], "application/vnd.kodak-descriptor": ["sse"], "application/vnd.las.las+xml": ["lasxml"], "application/vnd.llamagraphics.life-balance.desktop": ["lbd"], "application/vnd.llamagraphics.life-balance.exchange+xml": ["lbe"], "application/vnd.lotus-1-2-3": ["123"], "application/vnd.lotus-approach": ["apr"], "application/vnd.lotus-freelance": ["pre"], "application/vnd.lotus-notes": ["nsf"], "application/vnd.lotus-organizer": ["org"], "application/vnd.lotus-screencam": ["scm"], "application/vnd.lotus-wordpro": ["lwp"], "application/vnd.macports.portpkg": ["portpkg"], "application/vnd.mapbox-vector-tile": ["mvt"], "application/vnd.mcd": ["mcd"], "application/vnd.medcalcdata": ["mc1"], "application/vnd.mediastation.cdkey": ["cdkey"], "application/vnd.mfer": ["mwf"], "application/vnd.mfmp": ["mfm"], "application/vnd.micrografx.flo": ["flo"], "application/vnd.micrografx.igx": ["igx"], "application/vnd.mif": ["mif"], "application/vnd.mobius.daf": ["daf"], "application/vnd.mobius.dis": ["dis"], "application/vnd.mobius.mbk": ["mbk"], "application/vnd.mobius.mqy": ["mqy"], "application/vnd.mobius.msl": ["msl"], "application/vnd.mobius.plc": ["plc"], "application/vnd.mobius.txf": ["txf"], "application/vnd.mophun.application": ["mpn"], "application/vnd.mophun.certificate": ["mpc"], "application/vnd.mozilla.xul+xml": ["xul"], "application/vnd.ms-artgalry": ["cil"], "application/vnd.ms-cab-compressed": ["cab"], "application/vnd.ms-excel": ["xls", "xlm", "xla", "xlc", "xlt", "xlw"], "application/vnd.ms-excel.addin.macroenabled.12": ["xlam"], "application/vnd.ms-excel.sheet.binary.macroenabled.12": ["xlsb"], "application/vnd.ms-excel.sheet.macroenabled.12": ["xlsm"], "application/vnd.ms-excel.template.macroenabled.12": ["xltm"], "application/vnd.ms-fontobject": ["eot"], "application/vnd.ms-htmlhelp": ["chm"], "application/vnd.ms-ims": ["ims"], "application/vnd.ms-lrm": ["lrm"], "application/vnd.ms-officetheme": ["thmx"], "application/vnd.ms-outlook": ["msg"], "application/vnd.ms-pki.seccat": ["cat"], "application/vnd.ms-pki.stl": ["*stl"], "application/vnd.ms-powerpoint": ["ppt", "pps", "pot"], "application/vnd.ms-powerpoint.addin.macroenabled.12": ["ppam"], "application/vnd.ms-powerpoint.presentation.macroenabled.12": ["pptm"], "application/vnd.ms-powerpoint.slide.macroenabled.12": ["sldm"], "application/vnd.ms-powerpoint.slideshow.macroenabled.12": ["ppsm"], "application/vnd.ms-powerpoint.template.macroenabled.12": ["potm"], "application/vnd.ms-project": ["mpp", "mpt"], "application/vnd.ms-word.document.macroenabled.12": ["docm"], "application/vnd.ms-word.template.macroenabled.12": ["dotm"], "application/vnd.ms-works": ["wps", "wks", "wcm", "wdb"], "application/vnd.ms-wpl": ["wpl"], "application/vnd.ms-xpsdocument": ["xps"], "application/vnd.mseq": ["mseq"], "application/vnd.musician": ["mus"], "application/vnd.muvee.style": ["msty"], "application/vnd.mynfc": ["taglet"], "application/vnd.neurolanguage.nlu": ["nlu"], "application/vnd.nitf": ["ntf", "nitf"], "application/vnd.noblenet-directory": ["nnd"], "application/vnd.noblenet-sealer": ["nns"], "application/vnd.noblenet-web": ["nnw"], "application/vnd.nokia.n-gage.ac+xml": ["*ac"], "application/vnd.nokia.n-gage.data": ["ngdat"], "application/vnd.nokia.n-gage.symbian.install": ["n-gage"], "application/vnd.nokia.radio-preset": ["rpst"], "application/vnd.nokia.radio-presets": ["rpss"], "application/vnd.novadigm.edm": ["edm"], "application/vnd.novadigm.edx": ["edx"], "application/vnd.novadigm.ext": ["ext"], "application/vnd.oasis.opendocument.chart": ["odc"], "application/vnd.oasis.opendocument.chart-template": ["otc"], "application/vnd.oasis.opendocument.database": ["odb"], "application/vnd.oasis.opendocument.formula": ["odf"], "application/vnd.oasis.opendocument.formula-template": ["odft"], "application/vnd.oasis.opendocument.graphics": ["odg"], "application/vnd.oasis.opendocument.graphics-template": ["otg"], "application/vnd.oasis.opendocument.image": ["odi"], "application/vnd.oasis.opendocument.image-template": ["oti"], "application/vnd.oasis.opendocument.presentation": ["odp"], "application/vnd.oasis.opendocument.presentation-template": ["otp"], "application/vnd.oasis.opendocument.spreadsheet": ["ods"], "application/vnd.oasis.opendocument.spreadsheet-template": ["ots"], "application/vnd.oasis.opendocument.text": ["odt"], "application/vnd.oasis.opendocument.text-master": ["odm"], "application/vnd.oasis.opendocument.text-template": ["ott"], "application/vnd.oasis.opendocument.text-web": ["oth"], "application/vnd.olpc-sugar": ["xo"], "application/vnd.oma.dd2+xml": ["dd2"], "application/vnd.openblox.game+xml": ["obgx"], "application/vnd.openofficeorg.extension": ["oxt"], "application/vnd.openstreetmap.data+xml": ["osm"], "application/vnd.openxmlformats-officedocument.presentationml.presentation": ["pptx"], "application/vnd.openxmlformats-officedocument.presentationml.slide": ["sldx"], "application/vnd.openxmlformats-officedocument.presentationml.slideshow": ["ppsx"], "application/vnd.openxmlformats-officedocument.presentationml.template": ["potx"], "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": ["xlsx"], "application/vnd.openxmlformats-officedocument.spreadsheetml.template": ["xltx"], "application/vnd.openxmlformats-officedocument.wordprocessingml.document": ["docx"], "application/vnd.openxmlformats-officedocument.wordprocessingml.template": ["dotx"], "application/vnd.osgeo.mapguide.package": ["mgp"], "application/vnd.osgi.dp": ["dp"], "application/vnd.osgi.subsystem": ["esa"], "application/vnd.palm": ["pdb", "pqa", "oprc"], "application/vnd.pawaafile": ["paw"], "application/vnd.pg.format": ["str"], "application/vnd.pg.osasli": ["ei6"], "application/vnd.picsel": ["efif"], "application/vnd.pmi.widget": ["wg"], "application/vnd.pocketlearn": ["plf"], "application/vnd.powerbuilder6": ["pbd"], "application/vnd.previewsystems.box": ["box"], "application/vnd.proteus.magazine": ["mgz"], "application/vnd.publishare-delta-tree": ["qps"], "application/vnd.pvi.ptid1": ["ptid"], "application/vnd.quark.quarkxpress": ["qxd", "qxt", "qwd", "qwt", "qxl", "qxb"], "application/vnd.rar": ["rar"], "application/vnd.realvnc.bed": ["bed"], "application/vnd.recordare.musicxml": ["mxl"], "application/vnd.recordare.musicxml+xml": ["musicxml"], "application/vnd.rig.cryptonote": ["cryptonote"], "application/vnd.rim.cod": ["cod"], "application/vnd.rn-realmedia": ["rm"], "application/vnd.rn-realmedia-vbr": ["rmvb"], "application/vnd.route66.link66+xml": ["link66"], "application/vnd.sailingtracker.track": ["st"], "application/vnd.seemail": ["see"], "application/vnd.sema": ["sema"], "application/vnd.semd": ["semd"], "application/vnd.semf": ["semf"], "application/vnd.shana.informed.formdata": ["ifm"], "application/vnd.shana.informed.formtemplate": ["itp"], "application/vnd.shana.informed.interchange": ["iif"], "application/vnd.shana.informed.package": ["ipk"], "application/vnd.simtech-mindmapper": ["twd", "twds"], "application/vnd.smaf": ["mmf"], "application/vnd.smart.teacher": ["teacher"], "application/vnd.software602.filler.form+xml": ["fo"], "application/vnd.solent.sdkm+xml": ["sdkm", "sdkd"], "application/vnd.spotfire.dxp": ["dxp"], "application/vnd.spotfire.sfs": ["sfs"], "application/vnd.stardivision.calc": ["sdc"], "application/vnd.stardivision.draw": ["sda"], "application/vnd.stardivision.impress": ["sdd"], "application/vnd.stardivision.math": ["smf"], "application/vnd.stardivision.writer": ["sdw", "vor"], "application/vnd.stardivision.writer-global": ["sgl"], "application/vnd.stepmania.package": ["smzip"], "application/vnd.stepmania.stepchart": ["sm"], "application/vnd.sun.wadl+xml": ["wadl"], "application/vnd.sun.xml.calc": ["sxc"], "application/vnd.sun.xml.calc.template": ["stc"], "application/vnd.sun.xml.draw": ["sxd"], "application/vnd.sun.xml.draw.template": ["std"], "application/vnd.sun.xml.impress": ["sxi"], "application/vnd.sun.xml.impress.template": ["sti"], "application/vnd.sun.xml.math": ["sxm"], "application/vnd.sun.xml.writer": ["sxw"], "application/vnd.sun.xml.writer.global": ["sxg"], "application/vnd.sun.xml.writer.template": ["stw"], "application/vnd.sus-calendar": ["sus", "susp"], "application/vnd.svd": ["svd"], "application/vnd.symbian.install": ["sis", "sisx"], "application/vnd.syncml+xml": ["xsm"], "application/vnd.syncml.dm+wbxml": ["bdm"], "application/vnd.syncml.dm+xml": ["xdm"], "application/vnd.syncml.dmddf+xml": ["ddf"], "application/vnd.tao.intent-module-archive": ["tao"], "application/vnd.tcpdump.pcap": ["pcap", "cap", "dmp"], "application/vnd.tmobile-livetv": ["tmo"], "application/vnd.trid.tpt": ["tpt"], "application/vnd.triscape.mxs": ["mxs"], "application/vnd.trueapp": ["tra"], "application/vnd.ufdl": ["ufd", "ufdl"], "application/vnd.uiq.theme": ["utz"], "application/vnd.umajin": ["umj"], "application/vnd.unity": ["unityweb"], "application/vnd.uoml+xml": ["uoml"], "application/vnd.vcx": ["vcx"], "application/vnd.visio": ["vsd", "vst", "vss", "vsw"], "application/vnd.visionary": ["vis"], "application/vnd.vsf": ["vsf"], "application/vnd.wap.wbxml": ["wbxml"], "application/vnd.wap.wmlc": ["wmlc"], "application/vnd.wap.wmlscriptc": ["wmlsc"], "application/vnd.webturbo": ["wtb"], "application/vnd.wolfram.player": ["nbp"], "application/vnd.wordperfect": ["wpd"], "application/vnd.wqd": ["wqd"], "application/vnd.wt.stf": ["stf"], "application/vnd.xara": ["xar"], "application/vnd.xfdl": ["xfdl"], "application/vnd.yamaha.hv-dic": ["hvd"], "application/vnd.yamaha.hv-script": ["hvs"], "application/vnd.yamaha.hv-voice": ["hvp"], "application/vnd.yamaha.openscoreformat": ["osf"], "application/vnd.yamaha.openscoreformat.osfpvg+xml": ["osfpvg"], "application/vnd.yamaha.smaf-audio": ["saf"], "application/vnd.yamaha.smaf-phrase": ["spf"], "application/vnd.yellowriver-custom-menu": ["cmp"], "application/vnd.zul": ["zir", "zirz"], "application/vnd.zzazz.deck+xml": ["zaz"], "application/x-7z-compressed": ["7z"], "application/x-abiword": ["abw"], "application/x-ace-compressed": ["ace"], "application/x-apple-diskimage": ["*dmg"], "application/x-arj": ["arj"], "application/x-authorware-bin": ["aab", "x32", "u32", "vox"], "application/x-authorware-map": ["aam"], "application/x-authorware-seg": ["aas"], "application/x-bcpio": ["bcpio"], "application/x-bdoc": ["*bdoc"], "application/x-bittorrent": ["torrent"], "application/x-blorb": ["blb", "blorb"], "application/x-bzip": ["bz"], "application/x-bzip2": ["bz2", "boz"], "application/x-cbr": ["cbr", "cba", "cbt", "cbz", "cb7"], "application/x-cdlink": ["vcd"], "application/x-cfs-compressed": ["cfs"], "application/x-chat": ["chat"], "application/x-chess-pgn": ["pgn"], "application/x-chrome-extension": ["crx"], "application/x-cocoa": ["cco"], "application/x-conference": ["nsc"], "application/x-cpio": ["cpio"], "application/x-csh": ["csh"], "application/x-debian-package": ["*deb", "udeb"], "application/x-dgc-compressed": ["dgc"], "application/x-director": ["dir", "dcr", "dxr", "cst", "cct", "cxt", "w3d", "fgd", "swa"], "application/x-doom": ["wad"], "application/x-dtbncx+xml": ["ncx"], "application/x-dtbook+xml": ["dtb"], "application/x-dtbresource+xml": ["res"], "application/x-dvi": ["dvi"], "application/x-envoy": ["evy"], "application/x-eva": ["eva"], "application/x-font-bdf": ["bdf"], "application/x-font-ghostscript": ["gsf"], "application/x-font-linux-psf": ["psf"], "application/x-font-pcf": ["pcf"], "application/x-font-snf": ["snf"], "application/x-font-type1": ["pfa", "pfb", "pfm", "afm"], "application/x-freearc": ["arc"], "application/x-futuresplash": ["spl"], "application/x-gca-compressed": ["gca"], "application/x-glulx": ["ulx"], "application/x-gnumeric": ["gnumeric"], "application/x-gramps-xml": ["gramps"], "application/x-gtar": ["gtar"], "application/x-hdf": ["hdf"], "application/x-httpd-php": ["php"], "application/x-install-instructions": ["install"], "application/x-iso9660-image": ["*iso"], "application/x-iwork-keynote-sffkey": ["*key"], "application/x-iwork-numbers-sffnumbers": ["*numbers"], "application/x-iwork-pages-sffpages": ["*pages"], "application/x-java-archive-diff": ["jardiff"], "application/x-java-jnlp-file": ["jnlp"], "application/x-keepass2": ["kdbx"], "application/x-latex": ["latex"], "application/x-lua-bytecode": ["luac"], "application/x-lzh-compressed": ["lzh", "lha"], "application/x-makeself": ["run"], "application/x-mie": ["mie"], "application/x-mobipocket-ebook": ["prc", "mobi"], "application/x-ms-application": ["application"], "application/x-ms-shortcut": ["lnk"], "application/x-ms-wmd": ["wmd"], "application/x-ms-wmz": ["wmz"], "application/x-ms-xbap": ["xbap"], "application/x-msaccess": ["mdb"], "application/x-msbinder": ["obd"], "application/x-mscardfile": ["crd"], "application/x-msclip": ["clp"], "application/x-msdos-program": ["*exe"], "application/x-msdownload": ["*exe", "*dll", "com", "bat", "*msi"], "application/x-msmediaview": ["mvb", "m13", "m14"], "application/x-msmetafile": ["*wmf", "*wmz", "*emf", "emz"], "application/x-msmoney": ["mny"], "application/x-mspublisher": ["pub"], "application/x-msschedule": ["scd"], "application/x-msterminal": ["trm"], "application/x-mswrite": ["wri"], "application/x-netcdf": ["nc", "cdf"], "application/x-ns-proxy-autoconfig": ["pac"], "application/x-nzb": ["nzb"], "application/x-perl": ["pl", "pm"], "application/x-pilot": ["*prc", "*pdb"], "application/x-pkcs12": ["p12", "pfx"], "application/x-pkcs7-certificates": ["p7b", "spc"], "application/x-pkcs7-certreqresp": ["p7r"], "application/x-rar-compressed": ["*rar"], "application/x-redhat-package-manager": ["rpm"], "application/x-research-info-systems": ["ris"], "application/x-sea": ["sea"], "application/x-sh": ["sh"], "application/x-shar": ["shar"], "application/x-shockwave-flash": ["swf"], "application/x-silverlight-app": ["xap"], "application/x-sql": ["sql"], "application/x-stuffit": ["sit"], "application/x-stuffitx": ["sitx"], "application/x-subrip": ["srt"], "application/x-sv4cpio": ["sv4cpio"], "application/x-sv4crc": ["sv4crc"], "application/x-t3vm-image": ["t3"], "application/x-tads": ["gam"], "application/x-tar": ["tar"], "application/x-tcl": ["tcl", "tk"], "application/x-tex": ["tex"], "application/x-tex-tfm": ["tfm"], "application/x-texinfo": ["texinfo", "texi"], "application/x-tgif": ["*obj"], "application/x-ustar": ["ustar"], "application/x-virtualbox-hdd": ["hdd"], "application/x-virtualbox-ova": ["ova"], "application/x-virtualbox-ovf": ["ovf"], "application/x-virtualbox-vbox": ["vbox"], "application/x-virtualbox-vbox-extpack": ["vbox-extpack"], "application/x-virtualbox-vdi": ["vdi"], "application/x-virtualbox-vhd": ["vhd"], "application/x-virtualbox-vmdk": ["vmdk"], "application/x-wais-source": ["src"], "application/x-web-app-manifest+json": ["webapp"], "application/x-x509-ca-cert": ["der", "crt", "pem"], "application/x-xfig": ["fig"], "application/x-xliff+xml": ["*xlf"], "application/x-xpinstall": ["xpi"], "application/x-xz": ["xz"], "application/x-zmachine": ["z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8"], "audio/vnd.dece.audio": ["uva", "uvva"], "audio/vnd.digital-winds": ["eol"], "audio/vnd.dra": ["dra"], "audio/vnd.dts": ["dts"], "audio/vnd.dts.hd": ["dtshd"], "audio/vnd.lucent.voice": ["lvp"], "audio/vnd.ms-playready.media.pya": ["pya"], "audio/vnd.nuera.ecelp4800": ["ecelp4800"], "audio/vnd.nuera.ecelp7470": ["ecelp7470"], "audio/vnd.nuera.ecelp9600": ["ecelp9600"], "audio/vnd.rip": ["rip"], "audio/x-aac": ["aac"], "audio/x-aiff": ["aif", "aiff", "aifc"], "audio/x-caf": ["caf"], "audio/x-flac": ["flac"], "audio/x-m4a": ["*m4a"], "audio/x-matroska": ["mka"], "audio/x-mpegurl": ["m3u"], "audio/x-ms-wax": ["wax"], "audio/x-ms-wma": ["wma"], "audio/x-pn-realaudio": ["ram", "ra"], "audio/x-pn-realaudio-plugin": ["rmp"], "audio/x-realaudio": ["*ra"], "audio/x-wav": ["*wav"], "chemical/x-cdx": ["cdx"], "chemical/x-cif": ["cif"], "chemical/x-cmdf": ["cmdf"], "chemical/x-cml": ["cml"], "chemical/x-csml": ["csml"], "chemical/x-xyz": ["xyz"], "image/prs.btif": ["btif"], "image/prs.pti": ["pti"], "image/vnd.adobe.photoshop": ["psd"], "image/vnd.airzip.accelerator.azv": ["azv"], "image/vnd.dece.graphic": ["uvi", "uvvi", "uvg", "uvvg"], "image/vnd.djvu": ["djvu", "djv"], "image/vnd.dvb.subtitle": ["*sub"], "image/vnd.dwg": ["dwg"], "image/vnd.dxf": ["dxf"], "image/vnd.fastbidsheet": ["fbs"], "image/vnd.fpx": ["fpx"], "image/vnd.fst": ["fst"], "image/vnd.fujixerox.edmics-mmr": ["mmr"], "image/vnd.fujixerox.edmics-rlc": ["rlc"], "image/vnd.microsoft.icon": ["ico"], "image/vnd.ms-dds": ["dds"], "image/vnd.ms-modi": ["mdi"], "image/vnd.ms-photo": ["wdp"], "image/vnd.net-fpx": ["npx"], "image/vnd.pco.b16": ["b16"], "image/vnd.tencent.tap": ["tap"], "image/vnd.valve.source.texture": ["vtf"], "image/vnd.wap.wbmp": ["wbmp"], "image/vnd.xiff": ["xif"], "image/vnd.zbrush.pcx": ["pcx"], "image/x-3ds": ["3ds"], "image/x-cmu-raster": ["ras"], "image/x-cmx": ["cmx"], "image/x-freehand": ["fh", "fhc", "fh4", "fh5", "fh7"], "image/x-icon": ["*ico"], "image/x-jng": ["jng"], "image/x-mrsid-image": ["sid"], "image/x-ms-bmp": ["*bmp"], "image/x-pcx": ["*pcx"], "image/x-pict": ["pic", "pct"], "image/x-portable-anymap": ["pnm"], "image/x-portable-bitmap": ["pbm"], "image/x-portable-graymap": ["pgm"], "image/x-portable-pixmap": ["ppm"], "image/x-rgb": ["rgb"], "image/x-tga": ["tga"], "image/x-xbitmap": ["xbm"], "image/x-xpixmap": ["xpm"], "image/x-xwindowdump": ["xwd"], "message/vnd.wfa.wsc": ["wsc"], "model/vnd.collada+xml": ["dae"], "model/vnd.dwf": ["dwf"], "model/vnd.gdl": ["gdl"], "model/vnd.gtw": ["gtw"], "model/vnd.mts": ["mts"], "model/vnd.opengex": ["ogex"], "model/vnd.parasolid.transmit.binary": ["x_b"], "model/vnd.parasolid.transmit.text": ["x_t"], "model/vnd.sap.vds": ["vds"], "model/vnd.usdz+zip": ["usdz"], "model/vnd.valve.source.compiled-map": ["bsp"], "model/vnd.vtu": ["vtu"], "text/prs.lines.tag": ["dsc"], "text/vnd.curl": ["curl"], "text/vnd.curl.dcurl": ["dcurl"], "text/vnd.curl.mcurl": ["mcurl"], "text/vnd.curl.scurl": ["scurl"], "text/vnd.dvb.subtitle": ["sub"], "text/vnd.fly": ["fly"], "text/vnd.fmi.flexstor": ["flx"], "text/vnd.graphviz": ["gv"], "text/vnd.in3d.3dml": ["3dml"], "text/vnd.in3d.spot": ["spot"], "text/vnd.sun.j2me.app-descriptor": ["jad"], "text/vnd.wap.wml": ["wml"], "text/vnd.wap.wmlscript": ["wmls"], "text/x-asm": ["s", "asm"], "text/x-c": ["c", "cc", "cxx", "cpp", "h", "hh", "dic"], "text/x-component": ["htc"], "text/x-fortran": ["f", "for", "f77", "f90"], "text/x-handlebars-template": ["hbs"], "text/x-java-source": ["java"], "text/x-lua": ["lua"], "text/x-markdown": ["mkd"], "text/x-nfo": ["nfo"], "text/x-opml": ["opml"], "text/x-org": ["*org"], "text/x-pascal": ["p", "pas"], "text/x-processing": ["pde"], "text/x-sass": ["sass"], "text/x-scss": ["scss"], "text/x-setext": ["etx"], "text/x-sfv": ["sfv"], "text/x-suse-ymp": ["ymp"], "text/x-uuencode": ["uu"], "text/x-vcalendar": ["vcs"], "text/x-vcard": ["vcf"], "video/vnd.dece.hd": ["uvh", "uvvh"], "video/vnd.dece.mobile": ["uvm", "uvvm"], "video/vnd.dece.pd": ["uvp", "uvvp"], "video/vnd.dece.sd": ["uvs", "uvvs"], "video/vnd.dece.video": ["uvv", "uvvv"], "video/vnd.dvb.file": ["dvb"], "video/vnd.fvt": ["fvt"], "video/vnd.mpegurl": ["mxu", "m4u"], "video/vnd.ms-playready.media.pyv": ["pyv"], "video/vnd.uvvu.mp4": ["uvu", "uvvu"], "video/vnd.vivo": ["viv"], "video/x-f4v": ["f4v"], "video/x-fli": ["fli"], "video/x-flv": ["flv"], "video/x-m4v": ["m4v"], "video/x-matroska": ["mkv", "mk3d", "mks"], "video/x-mng": ["mng"], "video/x-ms-asf": ["asf", "asx"], "video/x-ms-vob": ["vob"], "video/x-ms-wm": ["wm"], "video/x-ms-wmv": ["wmv"], "video/x-ms-wmx": ["wmx"], "video/x-ms-wvx": ["wvx"], "video/x-msvideo": ["avi"], "video/x-sgi-movie": ["movie"], "video/x-smv": ["smv"], "x-conference/x-cooltalk": ["ice"] };
  }
});

// ../../node_modules/mime/index.js
var require_mime = __commonJS({
  "../../node_modules/mime/index.js"(exports2, module2) {
    "use strict";
    var Mime = require_Mime();
    module2.exports = new Mime(require_standard(), require_other());
  }
});

// ../../node_modules/@isaacs/balanced-match/dist/esm/index.js
var balanced, maybeMatch, range;
var init_esm = __esm({
  "../../node_modules/@isaacs/balanced-match/dist/esm/index.js"() {
    balanced = /* @__PURE__ */ __name((a3, b3, str) => {
      const ma = a3 instanceof RegExp ? maybeMatch(a3, str) : a3;
      const mb = b3 instanceof RegExp ? maybeMatch(b3, str) : b3;
      const r3 = ma !== null && mb != null && range(ma, mb, str);
      return r3 && {
        start: r3[0],
        end: r3[1],
        pre: str.slice(0, r3[0]),
        body: str.slice(r3[0] + ma.length, r3[1]),
        post: str.slice(r3[1] + mb.length)
      };
    }, "balanced");
    maybeMatch = /* @__PURE__ */ __name((reg, str) => {
      const m3 = str.match(reg);
      return m3 ? m3[0] : null;
    }, "maybeMatch");
    range = /* @__PURE__ */ __name((a3, b3, str) => {
      let begs, beg, left, right = void 0, result2;
      let ai = str.indexOf(a3);
      let bi = str.indexOf(b3, ai + 1);
      let i3 = ai;
      if (ai >= 0 && bi > 0) {
        if (a3 === b3) {
          return [ai, bi];
        }
        begs = [];
        left = str.length;
        while (i3 >= 0 && !result2) {
          if (i3 === ai) {
            begs.push(i3);
            ai = str.indexOf(a3, i3 + 1);
          } else if (begs.length === 1) {
            const r3 = begs.pop();
            if (r3 !== void 0)
              result2 = [r3, bi];
          } else {
            beg = begs.pop();
            if (beg !== void 0 && beg < left) {
              left = beg;
              right = bi;
            }
            bi = str.indexOf(b3, i3 + 1);
          }
          i3 = ai < bi && ai >= 0 ? ai : bi;
        }
        if (begs.length && right !== void 0) {
          result2 = [left, right];
        }
      }
      return result2;
    }, "range");
  }
});

// ../../node_modules/@isaacs/brace-expansion/dist/esm/index.js
function numeric(str) {
  return !isNaN(str) ? parseInt(str, 10) : str.charCodeAt(0);
}
function escapeBraces(str) {
  return str.replace(slashPattern, escSlash).replace(openPattern, escOpen).replace(closePattern, escClose).replace(commaPattern, escComma).replace(periodPattern, escPeriod);
}
function unescapeBraces(str) {
  return str.replace(escSlashPattern, "\\").replace(escOpenPattern, "{").replace(escClosePattern, "}").replace(escCommaPattern, ",").replace(escPeriodPattern, ".");
}
function parseCommaParts(str) {
  if (!str) {
    return [""];
  }
  const parts = [];
  const m3 = balanced("{", "}", str);
  if (!m3) {
    return str.split(",");
  }
  const { pre, body, post } = m3;
  const p3 = pre.split(",");
  p3[p3.length - 1] += "{" + body + "}";
  const postParts = parseCommaParts(post);
  if (post.length) {
    ;
    p3[p3.length - 1] += postParts.shift();
    p3.push.apply(p3, postParts);
  }
  parts.push.apply(parts, p3);
  return parts;
}
function expand(str) {
  if (!str) {
    return [];
  }
  if (str.slice(0, 2) === "{}") {
    str = "\\{\\}" + str.slice(2);
  }
  return expand_(escapeBraces(str), true).map(unescapeBraces);
}
function embrace(str) {
  return "{" + str + "}";
}
function isPadded(el) {
  return /^-?0\d/.test(el);
}
function lte(i3, y2) {
  return i3 <= y2;
}
function gte(i3, y2) {
  return i3 >= y2;
}
function expand_(str, isTop) {
  const expansions = [];
  const m3 = balanced("{", "}", str);
  if (!m3)
    return [str];
  const pre = m3.pre;
  const post = m3.post.length ? expand_(m3.post, false) : [""];
  if (/\$$/.test(m3.pre)) {
    for (let k3 = 0; k3 < post.length; k3++) {
      const expansion = pre + "{" + m3.body + "}" + post[k3];
      expansions.push(expansion);
    }
  } else {
    const isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m3.body);
    const isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m3.body);
    const isSequence = isNumericSequence || isAlphaSequence;
    const isOptions = m3.body.indexOf(",") >= 0;
    if (!isSequence && !isOptions) {
      if (m3.post.match(/,(?!,).*\}/)) {
        str = m3.pre + "{" + m3.body + escClose + m3.post;
        return expand_(str);
      }
      return [str];
    }
    let n3;
    if (isSequence) {
      n3 = m3.body.split(/\.\./);
    } else {
      n3 = parseCommaParts(m3.body);
      if (n3.length === 1 && n3[0] !== void 0) {
        n3 = expand_(n3[0], false).map(embrace);
        if (n3.length === 1) {
          return post.map((p3) => m3.pre + n3[0] + p3);
        }
      }
    }
    let N;
    if (isSequence && n3[0] !== void 0 && n3[1] !== void 0) {
      const x3 = numeric(n3[0]);
      const y2 = numeric(n3[1]);
      const width = Math.max(n3[0].length, n3[1].length);
      let incr = n3.length === 3 && n3[2] !== void 0 ? Math.abs(numeric(n3[2])) : 1;
      let test = lte;
      const reverse = y2 < x3;
      if (reverse) {
        incr *= -1;
        test = gte;
      }
      const pad = n3.some(isPadded);
      N = [];
      for (let i3 = x3; test(i3, y2); i3 += incr) {
        let c3;
        if (isAlphaSequence) {
          c3 = String.fromCharCode(i3);
          if (c3 === "\\") {
            c3 = "";
          }
        } else {
          c3 = String(i3);
          if (pad) {
            const need = width - c3.length;
            if (need > 0) {
              const z2 = new Array(need + 1).join("0");
              if (i3 < 0) {
                c3 = "-" + z2 + c3.slice(1);
              } else {
                c3 = z2 + c3;
              }
            }
          }
        }
        N.push(c3);
      }
    } else {
      N = [];
      for (let j3 = 0; j3 < n3.length; j3++) {
        N.push.apply(N, expand_(n3[j3], false));
      }
    }
    for (let j3 = 0; j3 < N.length; j3++) {
      for (let k3 = 0; k3 < post.length; k3++) {
        const expansion = pre + N[j3] + post[k3];
        if (!isTop || isSequence || expansion) {
          expansions.push(expansion);
        }
      }
    }
  }
  return expansions;
}
var escSlash, escOpen, escClose, escComma, escPeriod, escSlashPattern, escOpenPattern, escClosePattern, escCommaPattern, escPeriodPattern, slashPattern, openPattern, closePattern, commaPattern, periodPattern;
var init_esm2 = __esm({
  "../../node_modules/@isaacs/brace-expansion/dist/esm/index.js"() {
    init_esm();
    escSlash = "\0SLASH" + Math.random() + "\0";
    escOpen = "\0OPEN" + Math.random() + "\0";
    escClose = "\0CLOSE" + Math.random() + "\0";
    escComma = "\0COMMA" + Math.random() + "\0";
    escPeriod = "\0PERIOD" + Math.random() + "\0";
    escSlashPattern = new RegExp(escSlash, "g");
    escOpenPattern = new RegExp(escOpen, "g");
    escClosePattern = new RegExp(escClose, "g");
    escCommaPattern = new RegExp(escComma, "g");
    escPeriodPattern = new RegExp(escPeriod, "g");
    slashPattern = /\\\\/g;
    openPattern = /\\{/g;
    closePattern = /\\}/g;
    commaPattern = /\\,/g;
    periodPattern = /\\./g;
    __name(numeric, "numeric");
    __name(escapeBraces, "escapeBraces");
    __name(unescapeBraces, "unescapeBraces");
    __name(parseCommaParts, "parseCommaParts");
    __name(expand, "expand");
    __name(embrace, "embrace");
    __name(isPadded, "isPadded");
    __name(lte, "lte");
    __name(gte, "gte");
    __name(expand_, "expand_");
  }
});

// ../../node_modules/glob/node_modules/minimatch/dist/esm/assert-valid-pattern.js
var MAX_PATTERN_LENGTH, assertValidPattern;
var init_assert_valid_pattern = __esm({
  "../../node_modules/glob/node_modules/minimatch/dist/esm/assert-valid-pattern.js"() {
    MAX_PATTERN_LENGTH = 1024 * 64;
    assertValidPattern = /* @__PURE__ */ __name((pattern) => {
      if (typeof pattern !== "string") {
        throw new TypeError("invalid pattern");
      }
      if (pattern.length > MAX_PATTERN_LENGTH) {
        throw new TypeError("pattern is too long");
      }
    }, "assertValidPattern");
  }
});

// ../../node_modules/glob/node_modules/minimatch/dist/esm/brace-expressions.js
var posixClasses, braceEscape, regexpEscape, rangesToString, parseClass;
var init_brace_expressions = __esm({
  "../../node_modules/glob/node_modules/minimatch/dist/esm/brace-expressions.js"() {
    posixClasses = {
      "[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
      "[:alpha:]": ["\\p{L}\\p{Nl}", true],
      "[:ascii:]": ["\\x00-\\x7f", false],
      "[:blank:]": ["\\p{Zs}\\t", true],
      "[:cntrl:]": ["\\p{Cc}", true],
      "[:digit:]": ["\\p{Nd}", true],
      "[:graph:]": ["\\p{Z}\\p{C}", true, true],
      "[:lower:]": ["\\p{Ll}", true],
      "[:print:]": ["\\p{C}", true],
      "[:punct:]": ["\\p{P}", true],
      "[:space:]": ["\\p{Z}\\t\\r\\n\\v\\f", true],
      "[:upper:]": ["\\p{Lu}", true],
      "[:word:]": ["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}", true],
      "[:xdigit:]": ["A-Fa-f0-9", false]
    };
    braceEscape = /* @__PURE__ */ __name((s3) => s3.replace(/[[\]\\-]/g, "\\$&"), "braceEscape");
    regexpEscape = /* @__PURE__ */ __name((s3) => s3.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), "regexpEscape");
    rangesToString = /* @__PURE__ */ __name((ranges) => ranges.join(""), "rangesToString");
    parseClass = /* @__PURE__ */ __name((glob2, position) => {
      const pos = position;
      if (glob2.charAt(pos) !== "[") {
        throw new Error("not in a brace expression");
      }
      const ranges = [];
      const negs = [];
      let i3 = pos + 1;
      let sawStart = false;
      let uflag = false;
      let escaping = false;
      let negate = false;
      let endPos = pos;
      let rangeStart = "";
      WHILE: while (i3 < glob2.length) {
        const c3 = glob2.charAt(i3);
        if ((c3 === "!" || c3 === "^") && i3 === pos + 1) {
          negate = true;
          i3++;
          continue;
        }
        if (c3 === "]" && sawStart && !escaping) {
          endPos = i3 + 1;
          break;
        }
        sawStart = true;
        if (c3 === "\\") {
          if (!escaping) {
            escaping = true;
            i3++;
            continue;
          }
        }
        if (c3 === "[" && !escaping) {
          for (const [cls, [unip, u3, neg]] of Object.entries(posixClasses)) {
            if (glob2.startsWith(cls, i3)) {
              if (rangeStart) {
                return ["$.", false, glob2.length - pos, true];
              }
              i3 += cls.length;
              if (neg)
                negs.push(unip);
              else
                ranges.push(unip);
              uflag = uflag || u3;
              continue WHILE;
            }
          }
        }
        escaping = false;
        if (rangeStart) {
          if (c3 > rangeStart) {
            ranges.push(braceEscape(rangeStart) + "-" + braceEscape(c3));
          } else if (c3 === rangeStart) {
            ranges.push(braceEscape(c3));
          }
          rangeStart = "";
          i3++;
          continue;
        }
        if (glob2.startsWith("-]", i3 + 1)) {
          ranges.push(braceEscape(c3 + "-"));
          i3 += 2;
          continue;
        }
        if (glob2.startsWith("-", i3 + 1)) {
          rangeStart = c3;
          i3 += 2;
          continue;
        }
        ranges.push(braceEscape(c3));
        i3++;
      }
      if (endPos < i3) {
        return ["", false, 0, false];
      }
      if (!ranges.length && !negs.length) {
        return ["$.", false, glob2.length - pos, true];
      }
      if (negs.length === 0 && ranges.length === 1 && /^\\?.$/.test(ranges[0]) && !negate) {
        const r3 = ranges[0].length === 2 ? ranges[0].slice(-1) : ranges[0];
        return [regexpEscape(r3), false, endPos - pos, false];
      }
      const sranges = "[" + (negate ? "^" : "") + rangesToString(ranges) + "]";
      const snegs = "[" + (negate ? "" : "^") + rangesToString(negs) + "]";
      const comb = ranges.length && negs.length ? "(" + sranges + "|" + snegs + ")" : ranges.length ? sranges : snegs;
      return [comb, uflag, endPos - pos, true];
    }, "parseClass");
  }
});

// ../../node_modules/glob/node_modules/minimatch/dist/esm/unescape.js
var unescape2;
var init_unescape = __esm({
  "../../node_modules/glob/node_modules/minimatch/dist/esm/unescape.js"() {
    unescape2 = /* @__PURE__ */ __name((s3, { windowsPathsNoEscape = false } = {}) => {
      return windowsPathsNoEscape ? s3.replace(/\[([^\/\\])\]/g, "$1") : s3.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
    }, "unescape");
  }
});

// ../../node_modules/glob/node_modules/minimatch/dist/esm/ast.js
var types, isExtglobType, startNoTraversal, startNoDot, addPatternStart, justDots, reSpecials, regExpEscape, qmark, star, starNoEmpty, AST;
var init_ast = __esm({
  "../../node_modules/glob/node_modules/minimatch/dist/esm/ast.js"() {
    init_brace_expressions();
    init_unescape();
    types = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]);
    isExtglobType = /* @__PURE__ */ __name((c3) => types.has(c3), "isExtglobType");
    startNoTraversal = "(?!(?:^|/)\\.\\.?(?:$|/))";
    startNoDot = "(?!\\.)";
    addPatternStart = /* @__PURE__ */ new Set(["[", "."]);
    justDots = /* @__PURE__ */ new Set(["..", "."]);
    reSpecials = new Set("().*{}+?[]^$\\!");
    regExpEscape = /* @__PURE__ */ __name((s3) => s3.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), "regExpEscape");
    qmark = "[^/]";
    star = qmark + "*?";
    starNoEmpty = qmark + "+?";
    AST = class _AST {
      static {
        __name(this, "AST");
      }
      type;
      #root;
      #hasMagic;
      #uflag = false;
      #parts = [];
      #parent;
      #parentIndex;
      #negs;
      #filledNegs = false;
      #options;
      #toString;
      // set to true if it's an extglob with no children
      // (which really means one child of '')
      #emptyExt = false;
      constructor(type, parent, options = {}) {
        this.type = type;
        if (type)
          this.#hasMagic = true;
        this.#parent = parent;
        this.#root = this.#parent ? this.#parent.#root : this;
        this.#options = this.#root === this ? options : this.#root.#options;
        this.#negs = this.#root === this ? [] : this.#root.#negs;
        if (type === "!" && !this.#root.#filledNegs)
          this.#negs.push(this);
        this.#parentIndex = this.#parent ? this.#parent.#parts.length : 0;
      }
      get hasMagic() {
        if (this.#hasMagic !== void 0)
          return this.#hasMagic;
        for (const p3 of this.#parts) {
          if (typeof p3 === "string")
            continue;
          if (p3.type || p3.hasMagic)
            return this.#hasMagic = true;
        }
        return this.#hasMagic;
      }
      // reconstructs the pattern
      toString() {
        if (this.#toString !== void 0)
          return this.#toString;
        if (!this.type) {
          return this.#toString = this.#parts.map((p3) => String(p3)).join("");
        } else {
          return this.#toString = this.type + "(" + this.#parts.map((p3) => String(p3)).join("|") + ")";
        }
      }
      #fillNegs() {
        if (this !== this.#root)
          throw new Error("should only call on root");
        if (this.#filledNegs)
          return this;
        this.toString();
        this.#filledNegs = true;
        let n3;
        while (n3 = this.#negs.pop()) {
          if (n3.type !== "!")
            continue;
          let p3 = n3;
          let pp = p3.#parent;
          while (pp) {
            for (let i3 = p3.#parentIndex + 1; !pp.type && i3 < pp.#parts.length; i3++) {
              for (const part of n3.#parts) {
                if (typeof part === "string") {
                  throw new Error("string part in extglob AST??");
                }
                part.copyIn(pp.#parts[i3]);
              }
            }
            p3 = pp;
            pp = p3.#parent;
          }
        }
        return this;
      }
      push(...parts) {
        for (const p3 of parts) {
          if (p3 === "")
            continue;
          if (typeof p3 !== "string" && !(p3 instanceof _AST && p3.#parent === this)) {
            throw new Error("invalid part: " + p3);
          }
          this.#parts.push(p3);
        }
      }
      toJSON() {
        const ret = this.type === null ? this.#parts.slice().map((p3) => typeof p3 === "string" ? p3 : p3.toJSON()) : [this.type, ...this.#parts.map((p3) => p3.toJSON())];
        if (this.isStart() && !this.type)
          ret.unshift([]);
        if (this.isEnd() && (this === this.#root || this.#root.#filledNegs && this.#parent?.type === "!")) {
          ret.push({});
        }
        return ret;
      }
      isStart() {
        if (this.#root === this)
          return true;
        if (!this.#parent?.isStart())
          return false;
        if (this.#parentIndex === 0)
          return true;
        const p3 = this.#parent;
        for (let i3 = 0; i3 < this.#parentIndex; i3++) {
          const pp = p3.#parts[i3];
          if (!(pp instanceof _AST && pp.type === "!")) {
            return false;
          }
        }
        return true;
      }
      isEnd() {
        if (this.#root === this)
          return true;
        if (this.#parent?.type === "!")
          return true;
        if (!this.#parent?.isEnd())
          return false;
        if (!this.type)
          return this.#parent?.isEnd();
        const pl = this.#parent ? this.#parent.#parts.length : 0;
        return this.#parentIndex === pl - 1;
      }
      copyIn(part) {
        if (typeof part === "string")
          this.push(part);
        else
          this.push(part.clone(this));
      }
      clone(parent) {
        const c3 = new _AST(this.type, parent);
        for (const p3 of this.#parts) {
          c3.copyIn(p3);
        }
        return c3;
      }
      static #parseAST(str, ast, pos, opt) {
        let escaping = false;
        let inBrace = false;
        let braceStart = -1;
        let braceNeg = false;
        if (ast.type === null) {
          let i4 = pos;
          let acc2 = "";
          while (i4 < str.length) {
            const c3 = str.charAt(i4++);
            if (escaping || c3 === "\\") {
              escaping = !escaping;
              acc2 += c3;
              continue;
            }
            if (inBrace) {
              if (i4 === braceStart + 1) {
                if (c3 === "^" || c3 === "!") {
                  braceNeg = true;
                }
              } else if (c3 === "]" && !(i4 === braceStart + 2 && braceNeg)) {
                inBrace = false;
              }
              acc2 += c3;
              continue;
            } else if (c3 === "[") {
              inBrace = true;
              braceStart = i4;
              braceNeg = false;
              acc2 += c3;
              continue;
            }
            if (!opt.noext && isExtglobType(c3) && str.charAt(i4) === "(") {
              ast.push(acc2);
              acc2 = "";
              const ext4 = new _AST(c3, ast);
              i4 = _AST.#parseAST(str, ext4, i4, opt);
              ast.push(ext4);
              continue;
            }
            acc2 += c3;
          }
          ast.push(acc2);
          return i4;
        }
        let i3 = pos + 1;
        let part = new _AST(null, ast);
        const parts = [];
        let acc = "";
        while (i3 < str.length) {
          const c3 = str.charAt(i3++);
          if (escaping || c3 === "\\") {
            escaping = !escaping;
            acc += c3;
            continue;
          }
          if (inBrace) {
            if (i3 === braceStart + 1) {
              if (c3 === "^" || c3 === "!") {
                braceNeg = true;
              }
            } else if (c3 === "]" && !(i3 === braceStart + 2 && braceNeg)) {
              inBrace = false;
            }
            acc += c3;
            continue;
          } else if (c3 === "[") {
            inBrace = true;
            braceStart = i3;
            braceNeg = false;
            acc += c3;
            continue;
          }
          if (isExtglobType(c3) && str.charAt(i3) === "(") {
            part.push(acc);
            acc = "";
            const ext4 = new _AST(c3, part);
            part.push(ext4);
            i3 = _AST.#parseAST(str, ext4, i3, opt);
            continue;
          }
          if (c3 === "|") {
            part.push(acc);
            acc = "";
            parts.push(part);
            part = new _AST(null, ast);
            continue;
          }
          if (c3 === ")") {
            if (acc === "" && ast.#parts.length === 0) {
              ast.#emptyExt = true;
            }
            part.push(acc);
            acc = "";
            ast.push(...parts, part);
            return i3;
          }
          acc += c3;
        }
        ast.type = null;
        ast.#hasMagic = void 0;
        ast.#parts = [str.substring(pos - 1)];
        return i3;
      }
      static fromGlob(pattern, options = {}) {
        const ast = new _AST(null, void 0, options);
        _AST.#parseAST(pattern, ast, 0, options);
        return ast;
      }
      // returns the regular expression if there's magic, or the unescaped
      // string if not.
      toMMPattern() {
        if (this !== this.#root)
          return this.#root.toMMPattern();
        const glob2 = this.toString();
        const [re, body, hasMagic2, uflag] = this.toRegExpSource();
        const anyMagic = hasMagic2 || this.#hasMagic || this.#options.nocase && !this.#options.nocaseMagicOnly && glob2.toUpperCase() !== glob2.toLowerCase();
        if (!anyMagic) {
          return body;
        }
        const flags = (this.#options.nocase ? "i" : "") + (uflag ? "u" : "");
        return Object.assign(new RegExp(`^${re}$`, flags), {
          _src: re,
          _glob: glob2
        });
      }
      get options() {
        return this.#options;
      }
      // returns the string match, the regexp source, whether there's magic
      // in the regexp (so a regular expression is required) and whether or
      // not the uflag is needed for the regular expression (for posix classes)
      // TODO: instead of injecting the start/end at this point, just return
      // the BODY of the regexp, along with the start/end portions suitable
      // for binding the start/end in either a joined full-path makeRe context
      // (where we bind to (^|/), or a standalone matchPart context (where
      // we bind to ^, and not /).  Otherwise slashes get duped!
      //
      // In part-matching mode, the start is:
      // - if not isStart: nothing
      // - if traversal possible, but not allowed: ^(?!\.\.?$)
      // - if dots allowed or not possible: ^
      // - if dots possible and not allowed: ^(?!\.)
      // end is:
      // - if not isEnd(): nothing
      // - else: $
      //
      // In full-path matching mode, we put the slash at the START of the
      // pattern, so start is:
      // - if first pattern: same as part-matching mode
      // - if not isStart(): nothing
      // - if traversal possible, but not allowed: /(?!\.\.?(?:$|/))
      // - if dots allowed or not possible: /
      // - if dots possible and not allowed: /(?!\.)
      // end is:
      // - if last pattern, same as part-matching mode
      // - else nothing
      //
      // Always put the (?:$|/) on negated tails, though, because that has to be
      // there to bind the end of the negated pattern portion, and it's easier to
      // just stick it in now rather than try to inject it later in the middle of
      // the pattern.
      //
      // We can just always return the same end, and leave it up to the caller
      // to know whether it's going to be used joined or in parts.
      // And, if the start is adjusted slightly, can do the same there:
      // - if not isStart: nothing
      // - if traversal possible, but not allowed: (?:/|^)(?!\.\.?$)
      // - if dots allowed or not possible: (?:/|^)
      // - if dots possible and not allowed: (?:/|^)(?!\.)
      //
      // But it's better to have a simpler binding without a conditional, for
      // performance, so probably better to return both start options.
      //
      // Then the caller just ignores the end if it's not the first pattern,
      // and the start always gets applied.
      //
      // But that's always going to be $ if it's the ending pattern, or nothing,
      // so the caller can just attach $ at the end of the pattern when building.
      //
      // So the todo is:
      // - better detect what kind of start is needed
      // - return both flavors of starting pattern
      // - attach $ at the end of the pattern when creating the actual RegExp
      //
      // Ah, but wait, no, that all only applies to the root when the first pattern
      // is not an extglob. If the first pattern IS an extglob, then we need all
      // that dot prevention biz to live in the extglob portions, because eg
      // +(*|.x*) can match .xy but not .yx.
      //
      // So, return the two flavors if it's #root and the first child is not an
      // AST, otherwise leave it to the child AST to handle it, and there,
      // use the (?:^|/) style of start binding.
      //
      // Even simplified further:
      // - Since the start for a join is eg /(?!\.) and the start for a part
      // is ^(?!\.), we can just prepend (?!\.) to the pattern (either root
      // or start or whatever) and prepend ^ or / at the Regexp construction.
      toRegExpSource(allowDot) {
        const dot = allowDot ?? !!this.#options.dot;
        if (this.#root === this)
          this.#fillNegs();
        if (!this.type) {
          const noEmpty = this.isStart() && this.isEnd();
          const src = this.#parts.map((p3) => {
            const [re, _3, hasMagic2, uflag] = typeof p3 === "string" ? _AST.#parseGlob(p3, this.#hasMagic, noEmpty) : p3.toRegExpSource(allowDot);
            this.#hasMagic = this.#hasMagic || hasMagic2;
            this.#uflag = this.#uflag || uflag;
            return re;
          }).join("");
          let start2 = "";
          if (this.isStart()) {
            if (typeof this.#parts[0] === "string") {
              const dotTravAllowed = this.#parts.length === 1 && justDots.has(this.#parts[0]);
              if (!dotTravAllowed) {
                const aps = addPatternStart;
                const needNoTrav = (
                  // dots are allowed, and the pattern starts with [ or .
                  dot && aps.has(src.charAt(0)) || // the pattern starts with \., and then [ or .
                  src.startsWith("\\.") && aps.has(src.charAt(2)) || // the pattern starts with \.\., and then [ or .
                  src.startsWith("\\.\\.") && aps.has(src.charAt(4))
                );
                const needNoDot = !dot && !allowDot && aps.has(src.charAt(0));
                start2 = needNoTrav ? startNoTraversal : needNoDot ? startNoDot : "";
              }
            }
          }
          let end = "";
          if (this.isEnd() && this.#root.#filledNegs && this.#parent?.type === "!") {
            end = "(?:$|\\/)";
          }
          const final2 = start2 + src + end;
          return [
            final2,
            unescape2(src),
            this.#hasMagic = !!this.#hasMagic,
            this.#uflag
          ];
        }
        const repeated = this.type === "*" || this.type === "+";
        const start = this.type === "!" ? "(?:(?!(?:" : "(?:";
        let body = this.#partsToRegExp(dot);
        if (this.isStart() && this.isEnd() && !body && this.type !== "!") {
          const s3 = this.toString();
          this.#parts = [s3];
          this.type = null;
          this.#hasMagic = void 0;
          return [s3, unescape2(this.toString()), false, false];
        }
        let bodyDotAllowed = !repeated || allowDot || dot || !startNoDot ? "" : this.#partsToRegExp(true);
        if (bodyDotAllowed === body) {
          bodyDotAllowed = "";
        }
        if (bodyDotAllowed) {
          body = `(?:${body})(?:${bodyDotAllowed})*?`;
        }
        let final = "";
        if (this.type === "!" && this.#emptyExt) {
          final = (this.isStart() && !dot ? startNoDot : "") + starNoEmpty;
        } else {
          const close = this.type === "!" ? (
            // !() must match something,but !(x) can match ''
            "))" + (this.isStart() && !dot && !allowDot ? startNoDot : "") + star + ")"
          ) : this.type === "@" ? ")" : this.type === "?" ? ")?" : this.type === "+" && bodyDotAllowed ? ")" : this.type === "*" && bodyDotAllowed ? `)?` : `)${this.type}`;
          final = start + body + close;
        }
        return [
          final,
          unescape2(body),
          this.#hasMagic = !!this.#hasMagic,
          this.#uflag
        ];
      }
      #partsToRegExp(dot) {
        return this.#parts.map((p3) => {
          if (typeof p3 === "string") {
            throw new Error("string type in extglob ast??");
          }
          const [re, _3, _hasMagic, uflag] = p3.toRegExpSource(dot);
          this.#uflag = this.#uflag || uflag;
          return re;
        }).filter((p3) => !(this.isStart() && this.isEnd()) || !!p3).join("|");
      }
      static #parseGlob(glob2, hasMagic2, noEmpty = false) {
        let escaping = false;
        let re = "";
        let uflag = false;
        for (let i3 = 0; i3 < glob2.length; i3++) {
          const c3 = glob2.charAt(i3);
          if (escaping) {
            escaping = false;
            re += (reSpecials.has(c3) ? "\\" : "") + c3;
            continue;
          }
          if (c3 === "\\") {
            if (i3 === glob2.length - 1) {
              re += "\\\\";
            } else {
              escaping = true;
            }
            continue;
          }
          if (c3 === "[") {
            const [src, needUflag, consumed, magic] = parseClass(glob2, i3);
            if (consumed) {
              re += src;
              uflag = uflag || needUflag;
              i3 += consumed - 1;
              hasMagic2 = hasMagic2 || magic;
              continue;
            }
          }
          if (c3 === "*") {
            if (noEmpty && glob2 === "*")
              re += starNoEmpty;
            else
              re += star;
            hasMagic2 = true;
            continue;
          }
          if (c3 === "?") {
            re += qmark;
            hasMagic2 = true;
            continue;
          }
          re += regExpEscape(c3);
        }
        return [re, unescape2(glob2), !!hasMagic2, uflag];
      }
    };
  }
});

// ../../node_modules/glob/node_modules/minimatch/dist/esm/escape.js
var escape;
var init_escape = __esm({
  "../../node_modules/glob/node_modules/minimatch/dist/esm/escape.js"() {
    escape = /* @__PURE__ */ __name((s3, { windowsPathsNoEscape = false } = {}) => {
      return windowsPathsNoEscape ? s3.replace(/[?*()[\]]/g, "[$&]") : s3.replace(/[?*()[\]\\]/g, "\\$&");
    }, "escape");
  }
});

// ../../node_modules/glob/node_modules/minimatch/dist/esm/index.js
var minimatch, starDotExtRE, starDotExtTest, starDotExtTestDot, starDotExtTestNocase, starDotExtTestNocaseDot, starDotStarRE, starDotStarTest, starDotStarTestDot, dotStarRE, dotStarTest, starRE, starTest, starTestDot, qmarksRE, qmarksTestNocase, qmarksTestNocaseDot, qmarksTestDot, qmarksTest, qmarksTestNoExt, qmarksTestNoExtDot, defaultPlatform, path4, sep, GLOBSTAR, qmark2, star2, twoStarDot, twoStarNoDot, filter, ext, defaults, braceExpand, makeRe, match, globMagic, regExpEscape2, Minimatch;
var init_esm3 = __esm({
  "../../node_modules/glob/node_modules/minimatch/dist/esm/index.js"() {
    init_esm2();
    init_assert_valid_pattern();
    init_ast();
    init_escape();
    init_unescape();
    init_ast();
    init_escape();
    init_unescape();
    minimatch = /* @__PURE__ */ __name((p3, pattern, options = {}) => {
      assertValidPattern(pattern);
      if (!options.nocomment && pattern.charAt(0) === "#") {
        return false;
      }
      return new Minimatch(pattern, options).match(p3);
    }, "minimatch");
    starDotExtRE = /^\*+([^+@!?\*\[\(]*)$/;
    starDotExtTest = /* @__PURE__ */ __name((ext4) => (f3) => !f3.startsWith(".") && f3.endsWith(ext4), "starDotExtTest");
    starDotExtTestDot = /* @__PURE__ */ __name((ext4) => (f3) => f3.endsWith(ext4), "starDotExtTestDot");
    starDotExtTestNocase = /* @__PURE__ */ __name((ext4) => {
      ext4 = ext4.toLowerCase();
      return (f3) => !f3.startsWith(".") && f3.toLowerCase().endsWith(ext4);
    }, "starDotExtTestNocase");
    starDotExtTestNocaseDot = /* @__PURE__ */ __name((ext4) => {
      ext4 = ext4.toLowerCase();
      return (f3) => f3.toLowerCase().endsWith(ext4);
    }, "starDotExtTestNocaseDot");
    starDotStarRE = /^\*+\.\*+$/;
    starDotStarTest = /* @__PURE__ */ __name((f3) => !f3.startsWith(".") && f3.includes("."), "starDotStarTest");
    starDotStarTestDot = /* @__PURE__ */ __name((f3) => f3 !== "." && f3 !== ".." && f3.includes("."), "starDotStarTestDot");
    dotStarRE = /^\.\*+$/;
    dotStarTest = /* @__PURE__ */ __name((f3) => f3 !== "." && f3 !== ".." && f3.startsWith("."), "dotStarTest");
    starRE = /^\*+$/;
    starTest = /* @__PURE__ */ __name((f3) => f3.length !== 0 && !f3.startsWith("."), "starTest");
    starTestDot = /* @__PURE__ */ __name((f3) => f3.length !== 0 && f3 !== "." && f3 !== "..", "starTestDot");
    qmarksRE = /^\?+([^+@!?\*\[\(]*)?$/;
    qmarksTestNocase = /* @__PURE__ */ __name(([$0, ext4 = ""]) => {
      const noext = qmarksTestNoExt([$0]);
      if (!ext4)
        return noext;
      ext4 = ext4.toLowerCase();
      return (f3) => noext(f3) && f3.toLowerCase().endsWith(ext4);
    }, "qmarksTestNocase");
    qmarksTestNocaseDot = /* @__PURE__ */ __name(([$0, ext4 = ""]) => {
      const noext = qmarksTestNoExtDot([$0]);
      if (!ext4)
        return noext;
      ext4 = ext4.toLowerCase();
      return (f3) => noext(f3) && f3.toLowerCase().endsWith(ext4);
    }, "qmarksTestNocaseDot");
    qmarksTestDot = /* @__PURE__ */ __name(([$0, ext4 = ""]) => {
      const noext = qmarksTestNoExtDot([$0]);
      return !ext4 ? noext : (f3) => noext(f3) && f3.endsWith(ext4);
    }, "qmarksTestDot");
    qmarksTest = /* @__PURE__ */ __name(([$0, ext4 = ""]) => {
      const noext = qmarksTestNoExt([$0]);
      return !ext4 ? noext : (f3) => noext(f3) && f3.endsWith(ext4);
    }, "qmarksTest");
    qmarksTestNoExt = /* @__PURE__ */ __name(([$0]) => {
      const len = $0.length;
      return (f3) => f3.length === len && !f3.startsWith(".");
    }, "qmarksTestNoExt");
    qmarksTestNoExtDot = /* @__PURE__ */ __name(([$0]) => {
      const len = $0.length;
      return (f3) => f3.length === len && f3 !== "." && f3 !== "..";
    }, "qmarksTestNoExtDot");
    defaultPlatform = typeof process === "object" && process ? typeof process.env === "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";
    path4 = {
      win32: { sep: "\\" },
      posix: { sep: "/" }
    };
    sep = defaultPlatform === "win32" ? path4.win32.sep : path4.posix.sep;
    minimatch.sep = sep;
    GLOBSTAR = Symbol("globstar **");
    minimatch.GLOBSTAR = GLOBSTAR;
    qmark2 = "[^/]";
    star2 = qmark2 + "*?";
    twoStarDot = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";
    twoStarNoDot = "(?:(?!(?:\\/|^)\\.).)*?";
    filter = /* @__PURE__ */ __name((pattern, options = {}) => (p3) => minimatch(p3, pattern, options), "filter");
    minimatch.filter = filter;
    ext = /* @__PURE__ */ __name((a3, b3 = {}) => Object.assign({}, a3, b3), "ext");
    defaults = /* @__PURE__ */ __name((def) => {
      if (!def || typeof def !== "object" || !Object.keys(def).length) {
        return minimatch;
      }
      const orig = minimatch;
      const m3 = /* @__PURE__ */ __name((p3, pattern, options = {}) => orig(p3, pattern, ext(def, options)), "m");
      return Object.assign(m3, {
        Minimatch: class Minimatch extends orig.Minimatch {
          static {
            __name(this, "Minimatch");
          }
          constructor(pattern, options = {}) {
            super(pattern, ext(def, options));
          }
          static defaults(options) {
            return orig.defaults(ext(def, options)).Minimatch;
          }
        },
        AST: class AST extends orig.AST {
          static {
            __name(this, "AST");
          }
          /* c8 ignore start */
          constructor(type, parent, options = {}) {
            super(type, parent, ext(def, options));
          }
          /* c8 ignore stop */
          static fromGlob(pattern, options = {}) {
            return orig.AST.fromGlob(pattern, ext(def, options));
          }
        },
        unescape: /* @__PURE__ */ __name((s3, options = {}) => orig.unescape(s3, ext(def, options)), "unescape"),
        escape: /* @__PURE__ */ __name((s3, options = {}) => orig.escape(s3, ext(def, options)), "escape"),
        filter: /* @__PURE__ */ __name((pattern, options = {}) => orig.filter(pattern, ext(def, options)), "filter"),
        defaults: /* @__PURE__ */ __name((options) => orig.defaults(ext(def, options)), "defaults"),
        makeRe: /* @__PURE__ */ __name((pattern, options = {}) => orig.makeRe(pattern, ext(def, options)), "makeRe"),
        braceExpand: /* @__PURE__ */ __name((pattern, options = {}) => orig.braceExpand(pattern, ext(def, options)), "braceExpand"),
        match: /* @__PURE__ */ __name((list2, pattern, options = {}) => orig.match(list2, pattern, ext(def, options)), "match"),
        sep: orig.sep,
        GLOBSTAR
      });
    }, "defaults");
    minimatch.defaults = defaults;
    braceExpand = /* @__PURE__ */ __name((pattern, options = {}) => {
      assertValidPattern(pattern);
      if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) {
        return [pattern];
      }
      return expand(pattern);
    }, "braceExpand");
    minimatch.braceExpand = braceExpand;
    makeRe = /* @__PURE__ */ __name((pattern, options = {}) => new Minimatch(pattern, options).makeRe(), "makeRe");
    minimatch.makeRe = makeRe;
    match = /* @__PURE__ */ __name((list2, pattern, options = {}) => {
      const mm = new Minimatch(pattern, options);
      list2 = list2.filter((f3) => mm.match(f3));
      if (mm.options.nonull && !list2.length) {
        list2.push(pattern);
      }
      return list2;
    }, "match");
    minimatch.match = match;
    globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/;
    regExpEscape2 = /* @__PURE__ */ __name((s3) => s3.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), "regExpEscape");
    Minimatch = class {
      static {
        __name(this, "Minimatch");
      }
      options;
      set;
      pattern;
      windowsPathsNoEscape;
      nonegate;
      negate;
      comment;
      empty;
      preserveMultipleSlashes;
      partial;
      globSet;
      globParts;
      nocase;
      isWindows;
      platform;
      windowsNoMagicRoot;
      regexp;
      constructor(pattern, options = {}) {
        assertValidPattern(pattern);
        options = options || {};
        this.options = options;
        this.pattern = pattern;
        this.platform = options.platform || defaultPlatform;
        this.isWindows = this.platform === "win32";
        this.windowsPathsNoEscape = !!options.windowsPathsNoEscape || options.allowWindowsEscape === false;
        if (this.windowsPathsNoEscape) {
          this.pattern = this.pattern.replace(/\\/g, "/");
        }
        this.preserveMultipleSlashes = !!options.preserveMultipleSlashes;
        this.regexp = null;
        this.negate = false;
        this.nonegate = !!options.nonegate;
        this.comment = false;
        this.empty = false;
        this.partial = !!options.partial;
        this.nocase = !!this.options.nocase;
        this.windowsNoMagicRoot = options.windowsNoMagicRoot !== void 0 ? options.windowsNoMagicRoot : !!(this.isWindows && this.nocase);
        this.globSet = [];
        this.globParts = [];
        this.set = [];
        this.make();
      }
      hasMagic() {
        if (this.options.magicalBraces && this.set.length > 1) {
          return true;
        }
        for (const pattern of this.set) {
          for (const part of pattern) {
            if (typeof part !== "string")
              return true;
          }
        }
        return false;
      }
      debug(..._3) {
      }
      make() {
        const pattern = this.pattern;
        const options = this.options;
        if (!options.nocomment && pattern.charAt(0) === "#") {
          this.comment = true;
          return;
        }
        if (!pattern) {
          this.empty = true;
          return;
        }
        this.parseNegate();
        this.globSet = [...new Set(this.braceExpand())];
        if (options.debug) {
          this.debug = (...args) => console.error(...args);
        }
        this.debug(this.pattern, this.globSet);
        const rawGlobParts = this.globSet.map((s3) => this.slashSplit(s3));
        this.globParts = this.preprocess(rawGlobParts);
        this.debug(this.pattern, this.globParts);
        let set = this.globParts.map((s3, _3, __) => {
          if (this.isWindows && this.windowsNoMagicRoot) {
            const isUNC = s3[0] === "" && s3[1] === "" && (s3[2] === "?" || !globMagic.test(s3[2])) && !globMagic.test(s3[3]);
            const isDrive = /^[a-z]:/i.test(s3[0]);
            if (isUNC) {
              return [...s3.slice(0, 4), ...s3.slice(4).map((ss) => this.parse(ss))];
            } else if (isDrive) {
              return [s3[0], ...s3.slice(1).map((ss) => this.parse(ss))];
            }
          }
          return s3.map((ss) => this.parse(ss));
        });
        this.debug(this.pattern, set);
        this.set = set.filter((s3) => s3.indexOf(false) === -1);
        if (this.isWindows) {
          for (let i3 = 0; i3 < this.set.length; i3++) {
            const p3 = this.set[i3];
            if (p3[0] === "" && p3[1] === "" && this.globParts[i3][2] === "?" && typeof p3[3] === "string" && /^[a-z]:$/i.test(p3[3])) {
              p3[2] = "?";
            }
          }
        }
        this.debug(this.pattern, this.set);
      }
      // various transforms to equivalent pattern sets that are
      // faster to process in a filesystem walk.  The goal is to
      // eliminate what we can, and push all ** patterns as far
      // to the right as possible, even if it increases the number
      // of patterns that we have to process.
      preprocess(globParts) {
        if (this.options.noglobstar) {
          for (let i3 = 0; i3 < globParts.length; i3++) {
            for (let j3 = 0; j3 < globParts[i3].length; j3++) {
              if (globParts[i3][j3] === "**") {
                globParts[i3][j3] = "*";
              }
            }
          }
        }
        const { optimizationLevel = 1 } = this.options;
        if (optimizationLevel >= 2) {
          globParts = this.firstPhasePreProcess(globParts);
          globParts = this.secondPhasePreProcess(globParts);
        } else if (optimizationLevel >= 1) {
          globParts = this.levelOneOptimize(globParts);
        } else {
          globParts = this.adjascentGlobstarOptimize(globParts);
        }
        return globParts;
      }
      // just get rid of adjascent ** portions
      adjascentGlobstarOptimize(globParts) {
        return globParts.map((parts) => {
          let gs = -1;
          while (-1 !== (gs = parts.indexOf("**", gs + 1))) {
            let i3 = gs;
            while (parts[i3 + 1] === "**") {
              i3++;
            }
            if (i3 !== gs) {
              parts.splice(gs, i3 - gs);
            }
          }
          return parts;
        });
      }
      // get rid of adjascent ** and resolve .. portions
      levelOneOptimize(globParts) {
        return globParts.map((parts) => {
          parts = parts.reduce((set, part) => {
            const prev = set[set.length - 1];
            if (part === "**" && prev === "**") {
              return set;
            }
            if (part === "..") {
              if (prev && prev !== ".." && prev !== "." && prev !== "**") {
                set.pop();
                return set;
              }
            }
            set.push(part);
            return set;
          }, []);
          return parts.length === 0 ? [""] : parts;
        });
      }
      levelTwoFileOptimize(parts) {
        if (!Array.isArray(parts)) {
          parts = this.slashSplit(parts);
        }
        let didSomething = false;
        do {
          didSomething = false;
          if (!this.preserveMultipleSlashes) {
            for (let i3 = 1; i3 < parts.length - 1; i3++) {
              const p3 = parts[i3];
              if (i3 === 1 && p3 === "" && parts[0] === "")
                continue;
              if (p3 === "." || p3 === "") {
                didSomething = true;
                parts.splice(i3, 1);
                i3--;
              }
            }
            if (parts[0] === "." && parts.length === 2 && (parts[1] === "." || parts[1] === "")) {
              didSomething = true;
              parts.pop();
            }
          }
          let dd = 0;
          while (-1 !== (dd = parts.indexOf("..", dd + 1))) {
            const p3 = parts[dd - 1];
            if (p3 && p3 !== "." && p3 !== ".." && p3 !== "**") {
              didSomething = true;
              parts.splice(dd - 1, 2);
              dd -= 2;
            }
          }
        } while (didSomething);
        return parts.length === 0 ? [""] : parts;
      }
      // First phase: single-pattern processing
      // <pre> is 1 or more portions
      // <rest> is 1 or more portions
      // <p> is any portion other than ., .., '', or **
      // <e> is . or ''
      //
      // **/.. is *brutal* for filesystem walking performance, because
      // it effectively resets the recursive walk each time it occurs,
      // and ** cannot be reduced out by a .. pattern part like a regexp
      // or most strings (other than .., ., and '') can be.
      //
      // <pre>/**/../<p>/<p>/<rest> -> {<pre>/../<p>/<p>/<rest>,<pre>/**/<p>/<p>/<rest>}
      // <pre>/<e>/<rest> -> <pre>/<rest>
      // <pre>/<p>/../<rest> -> <pre>/<rest>
      // **/**/<rest> -> **/<rest>
      //
      // **/*/<rest> -> */**/<rest> <== not valid because ** doesn't follow
      // this WOULD be allowed if ** did follow symlinks, or * didn't
      firstPhasePreProcess(globParts) {
        let didSomething = false;
        do {
          didSomething = false;
          for (let parts of globParts) {
            let gs = -1;
            while (-1 !== (gs = parts.indexOf("**", gs + 1))) {
              let gss = gs;
              while (parts[gss + 1] === "**") {
                gss++;
              }
              if (gss > gs) {
                parts.splice(gs + 1, gss - gs);
              }
              let next = parts[gs + 1];
              const p3 = parts[gs + 2];
              const p22 = parts[gs + 3];
              if (next !== "..")
                continue;
              if (!p3 || p3 === "." || p3 === ".." || !p22 || p22 === "." || p22 === "..") {
                continue;
              }
              didSomething = true;
              parts.splice(gs, 1);
              const other = parts.slice(0);
              other[gs] = "**";
              globParts.push(other);
              gs--;
            }
            if (!this.preserveMultipleSlashes) {
              for (let i3 = 1; i3 < parts.length - 1; i3++) {
                const p3 = parts[i3];
                if (i3 === 1 && p3 === "" && parts[0] === "")
                  continue;
                if (p3 === "." || p3 === "") {
                  didSomething = true;
                  parts.splice(i3, 1);
                  i3--;
                }
              }
              if (parts[0] === "." && parts.length === 2 && (parts[1] === "." || parts[1] === "")) {
                didSomething = true;
                parts.pop();
              }
            }
            let dd = 0;
            while (-1 !== (dd = parts.indexOf("..", dd + 1))) {
              const p3 = parts[dd - 1];
              if (p3 && p3 !== "." && p3 !== ".." && p3 !== "**") {
                didSomething = true;
                const needDot = dd === 1 && parts[dd + 1] === "**";
                const splin = needDot ? ["."] : [];
                parts.splice(dd - 1, 2, ...splin);
                if (parts.length === 0)
                  parts.push("");
                dd -= 2;
              }
            }
          }
        } while (didSomething);
        return globParts;
      }
      // second phase: multi-pattern dedupes
      // {<pre>/*/<rest>,<pre>/<p>/<rest>} -> <pre>/*/<rest>
      // {<pre>/<rest>,<pre>/<rest>} -> <pre>/<rest>
      // {<pre>/**/<rest>,<pre>/<rest>} -> <pre>/**/<rest>
      //
      // {<pre>/**/<rest>,<pre>/**/<p>/<rest>} -> <pre>/**/<rest>
      // ^-- not valid because ** doens't follow symlinks
      secondPhasePreProcess(globParts) {
        for (let i3 = 0; i3 < globParts.length - 1; i3++) {
          for (let j3 = i3 + 1; j3 < globParts.length; j3++) {
            const matched = this.partsMatch(globParts[i3], globParts[j3], !this.preserveMultipleSlashes);
            if (matched) {
              globParts[i3] = [];
              globParts[j3] = matched;
              break;
            }
          }
        }
        return globParts.filter((gs) => gs.length);
      }
      partsMatch(a3, b3, emptyGSMatch = false) {
        let ai = 0;
        let bi = 0;
        let result2 = [];
        let which = "";
        while (ai < a3.length && bi < b3.length) {
          if (a3[ai] === b3[bi]) {
            result2.push(which === "b" ? b3[bi] : a3[ai]);
            ai++;
            bi++;
          } else if (emptyGSMatch && a3[ai] === "**" && b3[bi] === a3[ai + 1]) {
            result2.push(a3[ai]);
            ai++;
          } else if (emptyGSMatch && b3[bi] === "**" && a3[ai] === b3[bi + 1]) {
            result2.push(b3[bi]);
            bi++;
          } else if (a3[ai] === "*" && b3[bi] && (this.options.dot || !b3[bi].startsWith(".")) && b3[bi] !== "**") {
            if (which === "b")
              return false;
            which = "a";
            result2.push(a3[ai]);
            ai++;
            bi++;
          } else if (b3[bi] === "*" && a3[ai] && (this.options.dot || !a3[ai].startsWith(".")) && a3[ai] !== "**") {
            if (which === "a")
              return false;
            which = "b";
            result2.push(b3[bi]);
            ai++;
            bi++;
          } else {
            return false;
          }
        }
        return a3.length === b3.length && result2;
      }
      parseNegate() {
        if (this.nonegate)
          return;
        const pattern = this.pattern;
        let negate = false;
        let negateOffset = 0;
        for (let i3 = 0; i3 < pattern.length && pattern.charAt(i3) === "!"; i3++) {
          negate = !negate;
          negateOffset++;
        }
        if (negateOffset)
          this.pattern = pattern.slice(negateOffset);
        this.negate = negate;
      }
      // set partial to true to test if, for example,
      // "/a/b" matches the start of "/*/b/*/d"
      // Partial means, if you run out of file before you run
      // out of pattern, then that's fine, as long as all
      // the parts match.
      matchOne(file, pattern, partial = false) {
        const options = this.options;
        if (this.isWindows) {
          const fileDrive = typeof file[0] === "string" && /^[a-z]:$/i.test(file[0]);
          const fileUNC = !fileDrive && file[0] === "" && file[1] === "" && file[2] === "?" && /^[a-z]:$/i.test(file[3]);
          const patternDrive = typeof pattern[0] === "string" && /^[a-z]:$/i.test(pattern[0]);
          const patternUNC = !patternDrive && pattern[0] === "" && pattern[1] === "" && pattern[2] === "?" && typeof pattern[3] === "string" && /^[a-z]:$/i.test(pattern[3]);
          const fdi = fileUNC ? 3 : fileDrive ? 0 : void 0;
          const pdi = patternUNC ? 3 : patternDrive ? 0 : void 0;
          if (typeof fdi === "number" && typeof pdi === "number") {
            const [fd, pd] = [file[fdi], pattern[pdi]];
            if (fd.toLowerCase() === pd.toLowerCase()) {
              pattern[pdi] = fd;
              if (pdi > fdi) {
                pattern = pattern.slice(pdi);
              } else if (fdi > pdi) {
                file = file.slice(fdi);
              }
            }
          }
        }
        const { optimizationLevel = 1 } = this.options;
        if (optimizationLevel >= 2) {
          file = this.levelTwoFileOptimize(file);
        }
        this.debug("matchOne", this, { file, pattern });
        this.debug("matchOne", file.length, pattern.length);
        for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
          this.debug("matchOne loop");
          var p3 = pattern[pi];
          var f3 = file[fi];
          this.debug(pattern, p3, f3);
          if (p3 === false) {
            return false;
          }
          if (p3 === GLOBSTAR) {
            this.debug("GLOBSTAR", [pattern, p3, f3]);
            var fr = fi;
            var pr = pi + 1;
            if (pr === pl) {
              this.debug("** at the end");
              for (; fi < fl; fi++) {
                if (file[fi] === "." || file[fi] === ".." || !options.dot && file[fi].charAt(0) === ".")
                  return false;
              }
              return true;
            }
            while (fr < fl) {
              var swallowee = file[fr];
              this.debug("\nglobstar while", file, fr, pattern, pr, swallowee);
              if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {
                this.debug("globstar found match!", fr, fl, swallowee);
                return true;
              } else {
                if (swallowee === "." || swallowee === ".." || !options.dot && swallowee.charAt(0) === ".") {
                  this.debug("dot detected!", file, fr, pattern, pr);
                  break;
                }
                this.debug("globstar swallow a segment, and continue");
                fr++;
              }
            }
            if (partial) {
              this.debug("\n>>> no match, partial?", file, fr, pattern, pr);
              if (fr === fl) {
                return true;
              }
            }
            return false;
          }
          let hit;
          if (typeof p3 === "string") {
            hit = f3 === p3;
            this.debug("string match", p3, f3, hit);
          } else {
            hit = p3.test(f3);
            this.debug("pattern match", p3, f3, hit);
          }
          if (!hit)
            return false;
        }
        if (fi === fl && pi === pl) {
          return true;
        } else if (fi === fl) {
          return partial;
        } else if (pi === pl) {
          return fi === fl - 1 && file[fi] === "";
        } else {
          throw new Error("wtf?");
        }
      }
      braceExpand() {
        return braceExpand(this.pattern, this.options);
      }
      parse(pattern) {
        assertValidPattern(pattern);
        const options = this.options;
        if (pattern === "**")
          return GLOBSTAR;
        if (pattern === "")
          return "";
        let m3;
        let fastTest = null;
        if (m3 = pattern.match(starRE)) {
          fastTest = options.dot ? starTestDot : starTest;
        } else if (m3 = pattern.match(starDotExtRE)) {
          fastTest = (options.nocase ? options.dot ? starDotExtTestNocaseDot : starDotExtTestNocase : options.dot ? starDotExtTestDot : starDotExtTest)(m3[1]);
        } else if (m3 = pattern.match(qmarksRE)) {
          fastTest = (options.nocase ? options.dot ? qmarksTestNocaseDot : qmarksTestNocase : options.dot ? qmarksTestDot : qmarksTest)(m3);
        } else if (m3 = pattern.match(starDotStarRE)) {
          fastTest = options.dot ? starDotStarTestDot : starDotStarTest;
        } else if (m3 = pattern.match(dotStarRE)) {
          fastTest = dotStarTest;
        }
        const re = AST.fromGlob(pattern, this.options).toMMPattern();
        if (fastTest && typeof re === "object") {
          Reflect.defineProperty(re, "test", { value: fastTest });
        }
        return re;
      }
      makeRe() {
        if (this.regexp || this.regexp === false)
          return this.regexp;
        const set = this.set;
        if (!set.length) {
          this.regexp = false;
          return this.regexp;
        }
        const options = this.options;
        const twoStar = options.noglobstar ? star2 : options.dot ? twoStarDot : twoStarNoDot;
        const flags = new Set(options.nocase ? ["i"] : []);
        let re = set.map((pattern) => {
          const pp = pattern.map((p3) => {
            if (p3 instanceof RegExp) {
              for (const f3 of p3.flags.split(""))
                flags.add(f3);
            }
            return typeof p3 === "string" ? regExpEscape2(p3) : p3 === GLOBSTAR ? GLOBSTAR : p3._src;
          });
          pp.forEach((p3, i3) => {
            const next = pp[i3 + 1];
            const prev = pp[i3 - 1];
            if (p3 !== GLOBSTAR || prev === GLOBSTAR) {
              return;
            }
            if (prev === void 0) {
              if (next !== void 0 && next !== GLOBSTAR) {
                pp[i3 + 1] = "(?:\\/|" + twoStar + "\\/)?" + next;
              } else {
                pp[i3] = twoStar;
              }
            } else if (next === void 0) {
              pp[i3 - 1] = prev + "(?:\\/|" + twoStar + ")?";
            } else if (next !== GLOBSTAR) {
              pp[i3 - 1] = prev + "(?:\\/|\\/" + twoStar + "\\/)" + next;
              pp[i3 + 1] = GLOBSTAR;
            }
          });
          return pp.filter((p3) => p3 !== GLOBSTAR).join("/");
        }).join("|");
        const [open, close] = set.length > 1 ? ["(?:", ")"] : ["", ""];
        re = "^" + open + re + close + "$";
        if (this.negate)
          re = "^(?!" + re + ").+$";
        try {
          this.regexp = new RegExp(re, [...flags].join(""));
        } catch (ex) {
          this.regexp = false;
        }
        return this.regexp;
      }
      slashSplit(p3) {
        if (this.preserveMultipleSlashes) {
          return p3.split("/");
        } else if (this.isWindows && /^\/\/[^\/]+/.test(p3)) {
          return ["", ...p3.split(/\/+/)];
        } else {
          return p3.split(/\/+/);
        }
      }
      match(f3, partial = this.partial) {
        this.debug("match", f3, this.pattern);
        if (this.comment) {
          return false;
        }
        if (this.empty) {
          return f3 === "";
        }
        if (f3 === "/" && partial) {
          return true;
        }
        const options = this.options;
        if (this.isWindows) {
          f3 = f3.split("\\").join("/");
        }
        const ff = this.slashSplit(f3);
        this.debug(this.pattern, "split", ff);
        const set = this.set;
        this.debug(this.pattern, "set", set);
        let filename = ff[ff.length - 1];
        if (!filename) {
          for (let i3 = ff.length - 2; !filename && i3 >= 0; i3--) {
            filename = ff[i3];
          }
        }
        for (let i3 = 0; i3 < set.length; i3++) {
          const pattern = set[i3];
          let file = ff;
          if (options.matchBase && pattern.length === 1) {
            file = [filename];
          }
          const hit = this.matchOne(file, pattern, partial);
          if (hit) {
            if (options.flipNegate) {
              return true;
            }
            return !this.negate;
          }
        }
        if (options.flipNegate) {
          return false;
        }
        return this.negate;
      }
      static defaults(def) {
        return minimatch.defaults(def).Minimatch;
      }
    };
    minimatch.AST = AST;
    minimatch.Minimatch = Minimatch;
    minimatch.escape = escape;
    minimatch.unescape = unescape2;
  }
});

// ../../node_modules/glob/node_modules/lru-cache/dist/esm/index.js
var perf, warned, PROCESS, emitWarning, AC, AS, shouldWarn, TYPE, isPosInt, getUintArray, ZeroArray, Stack, LRUCache;
var init_esm4 = __esm({
  "../../node_modules/glob/node_modules/lru-cache/dist/esm/index.js"() {
    perf = typeof performance === "object" && performance && typeof performance.now === "function" ? performance : Date;
    warned = /* @__PURE__ */ new Set();
    PROCESS = typeof process === "object" && !!process ? process : {};
    emitWarning = /* @__PURE__ */ __name((msg, type, code, fn) => {
      typeof PROCESS.emitWarning === "function" ? PROCESS.emitWarning(msg, type, code, fn) : console.error(`[${code}] ${type}: ${msg}`);
    }, "emitWarning");
    AC = globalThis.AbortController;
    AS = globalThis.AbortSignal;
    if (typeof AC === "undefined") {
      AS = class AbortSignal {
        static {
          __name(this, "AbortSignal");
        }
        onabort;
        _onabort = [];
        reason;
        aborted = false;
        addEventListener(_3, fn) {
          this._onabort.push(fn);
        }
      };
      AC = class AbortController {
        static {
          __name(this, "AbortController");
        }
        constructor() {
          warnACPolyfill();
        }
        signal = new AS();
        abort(reason) {
          if (this.signal.aborted)
            return;
          this.signal.reason = reason;
          this.signal.aborted = true;
          for (const fn of this.signal._onabort) {
            fn(reason);
          }
          this.signal.onabort?.(reason);
        }
      };
      let printACPolyfillWarning = PROCESS.env?.LRU_CACHE_IGNORE_AC_WARNING !== "1";
      const warnACPolyfill = /* @__PURE__ */ __name(() => {
        if (!printACPolyfillWarning)
          return;
        printACPolyfillWarning = false;
        emitWarning("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.", "NO_ABORT_CONTROLLER", "ENOTSUP", warnACPolyfill);
      }, "warnACPolyfill");
    }
    shouldWarn = /* @__PURE__ */ __name((code) => !warned.has(code), "shouldWarn");
    TYPE = Symbol("type");
    isPosInt = /* @__PURE__ */ __name((n3) => n3 && n3 === Math.floor(n3) && n3 > 0 && isFinite(n3), "isPosInt");
    getUintArray = /* @__PURE__ */ __name((max) => !isPosInt(max) ? null : max <= Math.pow(2, 8) ? Uint8Array : max <= Math.pow(2, 16) ? Uint16Array : max <= Math.pow(2, 32) ? Uint32Array : max <= Number.MAX_SAFE_INTEGER ? ZeroArray : null, "getUintArray");
    ZeroArray = class extends Array {
      static {
        __name(this, "ZeroArray");
      }
      constructor(size) {
        super(size);
        this.fill(0);
      }
    };
    Stack = class _Stack {
      static {
        __name(this, "Stack");
      }
      heap;
      length;
      // private constructor
      static #constructing = false;
      static create(max) {
        const HeapCls = getUintArray(max);
        if (!HeapCls)
          return [];
        _Stack.#constructing = true;
        const s3 = new _Stack(max, HeapCls);
        _Stack.#constructing = false;
        return s3;
      }
      constructor(max, HeapCls) {
        if (!_Stack.#constructing) {
          throw new TypeError("instantiate Stack using Stack.create(n)");
        }
        this.heap = new HeapCls(max);
        this.length = 0;
      }
      push(n3) {
        this.heap[this.length++] = n3;
      }
      pop() {
        return this.heap[--this.length];
      }
    };
    LRUCache = class _LRUCache {
      static {
        __name(this, "LRUCache");
      }
      // options that cannot be changed without disaster
      #max;
      #maxSize;
      #dispose;
      #onInsert;
      #disposeAfter;
      #fetchMethod;
      #memoMethod;
      /**
       * {@link LRUCache.OptionsBase.ttl}
       */
      ttl;
      /**
       * {@link LRUCache.OptionsBase.ttlResolution}
       */
      ttlResolution;
      /**
       * {@link LRUCache.OptionsBase.ttlAutopurge}
       */
      ttlAutopurge;
      /**
       * {@link LRUCache.OptionsBase.updateAgeOnGet}
       */
      updateAgeOnGet;
      /**
       * {@link LRUCache.OptionsBase.updateAgeOnHas}
       */
      updateAgeOnHas;
      /**
       * {@link LRUCache.OptionsBase.allowStale}
       */
      allowStale;
      /**
       * {@link LRUCache.OptionsBase.noDisposeOnSet}
       */
      noDisposeOnSet;
      /**
       * {@link LRUCache.OptionsBase.noUpdateTTL}
       */
      noUpdateTTL;
      /**
       * {@link LRUCache.OptionsBase.maxEntrySize}
       */
      maxEntrySize;
      /**
       * {@link LRUCache.OptionsBase.sizeCalculation}
       */
      sizeCalculation;
      /**
       * {@link LRUCache.OptionsBase.noDeleteOnFetchRejection}
       */
      noDeleteOnFetchRejection;
      /**
       * {@link LRUCache.OptionsBase.noDeleteOnStaleGet}
       */
      noDeleteOnStaleGet;
      /**
       * {@link LRUCache.OptionsBase.allowStaleOnFetchAbort}
       */
      allowStaleOnFetchAbort;
      /**
       * {@link LRUCache.OptionsBase.allowStaleOnFetchRejection}
       */
      allowStaleOnFetchRejection;
      /**
       * {@link LRUCache.OptionsBase.ignoreFetchAbort}
       */
      ignoreFetchAbort;
      // computed properties
      #size;
      #calculatedSize;
      #keyMap;
      #keyList;
      #valList;
      #next;
      #prev;
      #head;
      #tail;
      #free;
      #disposed;
      #sizes;
      #starts;
      #ttls;
      #hasDispose;
      #hasFetchMethod;
      #hasDisposeAfter;
      #hasOnInsert;
      /**
       * Do not call this method unless you need to inspect the
       * inner workings of the cache.  If anything returned by this
       * object is modified in any way, strange breakage may occur.
       *
       * These fields are private for a reason!
       *
       * @internal
       */
      static unsafeExposeInternals(c3) {
        return {
          // properties
          starts: c3.#starts,
          ttls: c3.#ttls,
          sizes: c3.#sizes,
          keyMap: c3.#keyMap,
          keyList: c3.#keyList,
          valList: c3.#valList,
          next: c3.#next,
          prev: c3.#prev,
          get head() {
            return c3.#head;
          },
          get tail() {
            return c3.#tail;
          },
          free: c3.#free,
          // methods
          isBackgroundFetch: /* @__PURE__ */ __name((p3) => c3.#isBackgroundFetch(p3), "isBackgroundFetch"),
          backgroundFetch: /* @__PURE__ */ __name((k3, index, options, context) => c3.#backgroundFetch(k3, index, options, context), "backgroundFetch"),
          moveToTail: /* @__PURE__ */ __name((index) => c3.#moveToTail(index), "moveToTail"),
          indexes: /* @__PURE__ */ __name((options) => c3.#indexes(options), "indexes"),
          rindexes: /* @__PURE__ */ __name((options) => c3.#rindexes(options), "rindexes"),
          isStale: /* @__PURE__ */ __name((index) => c3.#isStale(index), "isStale")
        };
      }
      // Protected read-only members
      /**
       * {@link LRUCache.OptionsBase.max} (read-only)
       */
      get max() {
        return this.#max;
      }
      /**
       * {@link LRUCache.OptionsBase.maxSize} (read-only)
       */
      get maxSize() {
        return this.#maxSize;
      }
      /**
       * The total computed size of items in the cache (read-only)
       */
      get calculatedSize() {
        return this.#calculatedSize;
      }
      /**
       * The number of items stored in the cache (read-only)
       */
      get size() {
        return this.#size;
      }
      /**
       * {@link LRUCache.OptionsBase.fetchMethod} (read-only)
       */
      get fetchMethod() {
        return this.#fetchMethod;
      }
      get memoMethod() {
        return this.#memoMethod;
      }
      /**
       * {@link LRUCache.OptionsBase.dispose} (read-only)
       */
      get dispose() {
        return this.#dispose;
      }
      /**
       * {@link LRUCache.OptionsBase.onInsert} (read-only)
       */
      get onInsert() {
        return this.#onInsert;
      }
      /**
       * {@link LRUCache.OptionsBase.disposeAfter} (read-only)
       */
      get disposeAfter() {
        return this.#disposeAfter;
      }
      constructor(options) {
        const { max = 0, ttl, ttlResolution = 1, ttlAutopurge, updateAgeOnGet, updateAgeOnHas, allowStale, dispose, onInsert, disposeAfter, noDisposeOnSet, noUpdateTTL, maxSize = 0, maxEntrySize = 0, sizeCalculation, fetchMethod, memoMethod, noDeleteOnFetchRejection, noDeleteOnStaleGet, allowStaleOnFetchRejection, allowStaleOnFetchAbort, ignoreFetchAbort } = options;
        if (max !== 0 && !isPosInt(max)) {
          throw new TypeError("max option must be a nonnegative integer");
        }
        const UintArray = max ? getUintArray(max) : Array;
        if (!UintArray) {
          throw new Error("invalid max value: " + max);
        }
        this.#max = max;
        this.#maxSize = maxSize;
        this.maxEntrySize = maxEntrySize || this.#maxSize;
        this.sizeCalculation = sizeCalculation;
        if (this.sizeCalculation) {
          if (!this.#maxSize && !this.maxEntrySize) {
            throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");
          }
          if (typeof this.sizeCalculation !== "function") {
            throw new TypeError("sizeCalculation set to non-function");
          }
        }
        if (memoMethod !== void 0 && typeof memoMethod !== "function") {
          throw new TypeError("memoMethod must be a function if defined");
        }
        this.#memoMethod = memoMethod;
        if (fetchMethod !== void 0 && typeof fetchMethod !== "function") {
          throw new TypeError("fetchMethod must be a function if specified");
        }
        this.#fetchMethod = fetchMethod;
        this.#hasFetchMethod = !!fetchMethod;
        this.#keyMap = /* @__PURE__ */ new Map();
        this.#keyList = new Array(max).fill(void 0);
        this.#valList = new Array(max).fill(void 0);
        this.#next = new UintArray(max);
        this.#prev = new UintArray(max);
        this.#head = 0;
        this.#tail = 0;
        this.#free = Stack.create(max);
        this.#size = 0;
        this.#calculatedSize = 0;
        if (typeof dispose === "function") {
          this.#dispose = dispose;
        }
        if (typeof onInsert === "function") {
          this.#onInsert = onInsert;
        }
        if (typeof disposeAfter === "function") {
          this.#disposeAfter = disposeAfter;
          this.#disposed = [];
        } else {
          this.#disposeAfter = void 0;
          this.#disposed = void 0;
        }
        this.#hasDispose = !!this.#dispose;
        this.#hasOnInsert = !!this.#onInsert;
        this.#hasDisposeAfter = !!this.#disposeAfter;
        this.noDisposeOnSet = !!noDisposeOnSet;
        this.noUpdateTTL = !!noUpdateTTL;
        this.noDeleteOnFetchRejection = !!noDeleteOnFetchRejection;
        this.allowStaleOnFetchRejection = !!allowStaleOnFetchRejection;
        this.allowStaleOnFetchAbort = !!allowStaleOnFetchAbort;
        this.ignoreFetchAbort = !!ignoreFetchAbort;
        if (this.maxEntrySize !== 0) {
          if (this.#maxSize !== 0) {
            if (!isPosInt(this.#maxSize)) {
              throw new TypeError("maxSize must be a positive integer if specified");
            }
          }
          if (!isPosInt(this.maxEntrySize)) {
            throw new TypeError("maxEntrySize must be a positive integer if specified");
          }
          this.#initializeSizeTracking();
        }
        this.allowStale = !!allowStale;
        this.noDeleteOnStaleGet = !!noDeleteOnStaleGet;
        this.updateAgeOnGet = !!updateAgeOnGet;
        this.updateAgeOnHas = !!updateAgeOnHas;
        this.ttlResolution = isPosInt(ttlResolution) || ttlResolution === 0 ? ttlResolution : 1;
        this.ttlAutopurge = !!ttlAutopurge;
        this.ttl = ttl || 0;
        if (this.ttl) {
          if (!isPosInt(this.ttl)) {
            throw new TypeError("ttl must be a positive integer if specified");
          }
          this.#initializeTTLTracking();
        }
        if (this.#max === 0 && this.ttl === 0 && this.#maxSize === 0) {
          throw new TypeError("At least one of max, maxSize, or ttl is required");
        }
        if (!this.ttlAutopurge && !this.#max && !this.#maxSize) {
          const code = "LRU_CACHE_UNBOUNDED";
          if (shouldWarn(code)) {
            warned.add(code);
            const msg = "TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.";
            emitWarning(msg, "UnboundedCacheWarning", code, _LRUCache);
          }
        }
      }
      /**
       * Return the number of ms left in the item's TTL. If item is not in cache,
       * returns `0`. Returns `Infinity` if item is in cache without a defined TTL.
       */
      getRemainingTTL(key) {
        return this.#keyMap.has(key) ? Infinity : 0;
      }
      #initializeTTLTracking() {
        const ttls = new ZeroArray(this.#max);
        const starts = new ZeroArray(this.#max);
        this.#ttls = ttls;
        this.#starts = starts;
        this.#setItemTTL = (index, ttl, start = perf.now()) => {
          starts[index] = ttl !== 0 ? start : 0;
          ttls[index] = ttl;
          if (ttl !== 0 && this.ttlAutopurge) {
            const t3 = setTimeout(() => {
              if (this.#isStale(index)) {
                this.#delete(this.#keyList[index], "expire");
              }
            }, ttl + 1);
            if (t3.unref) {
              t3.unref();
            }
          }
        };
        this.#updateItemAge = (index) => {
          starts[index] = ttls[index] !== 0 ? perf.now() : 0;
        };
        this.#statusTTL = (status, index) => {
          if (ttls[index]) {
            const ttl = ttls[index];
            const start = starts[index];
            if (!ttl || !start)
              return;
            status.ttl = ttl;
            status.start = start;
            status.now = cachedNow || getNow();
            const age = status.now - start;
            status.remainingTTL = ttl - age;
          }
        };
        let cachedNow = 0;
        const getNow = /* @__PURE__ */ __name(() => {
          const n3 = perf.now();
          if (this.ttlResolution > 0) {
            cachedNow = n3;
            const t3 = setTimeout(() => cachedNow = 0, this.ttlResolution);
            if (t3.unref) {
              t3.unref();
            }
          }
          return n3;
        }, "getNow");
        this.getRemainingTTL = (key) => {
          const index = this.#keyMap.get(key);
          if (index === void 0) {
            return 0;
          }
          const ttl = ttls[index];
          const start = starts[index];
          if (!ttl || !start) {
            return Infinity;
          }
          const age = (cachedNow || getNow()) - start;
          return ttl - age;
        };
        this.#isStale = (index) => {
          const s3 = starts[index];
          const t3 = ttls[index];
          return !!t3 && !!s3 && (cachedNow || getNow()) - s3 > t3;
        };
      }
      // conditionally set private methods related to TTL
      #updateItemAge = /* @__PURE__ */ __name(() => {
      }, "#updateItemAge");
      #statusTTL = /* @__PURE__ */ __name(() => {
      }, "#statusTTL");
      #setItemTTL = /* @__PURE__ */ __name(() => {
      }, "#setItemTTL");
      /* c8 ignore stop */
      #isStale = /* @__PURE__ */ __name(() => false, "#isStale");
      #initializeSizeTracking() {
        const sizes = new ZeroArray(this.#max);
        this.#calculatedSize = 0;
        this.#sizes = sizes;
        this.#removeItemSize = (index) => {
          this.#calculatedSize -= sizes[index];
          sizes[index] = 0;
        };
        this.#requireSize = (k3, v6, size, sizeCalculation) => {
          if (this.#isBackgroundFetch(v6)) {
            return 0;
          }
          if (!isPosInt(size)) {
            if (sizeCalculation) {
              if (typeof sizeCalculation !== "function") {
                throw new TypeError("sizeCalculation must be a function");
              }
              size = sizeCalculation(v6, k3);
              if (!isPosInt(size)) {
                throw new TypeError("sizeCalculation return invalid (expect positive integer)");
              }
            } else {
              throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");
            }
          }
          return size;
        };
        this.#addItemSize = (index, size, status) => {
          sizes[index] = size;
          if (this.#maxSize) {
            const maxSize = this.#maxSize - sizes[index];
            while (this.#calculatedSize > maxSize) {
              this.#evict(true);
            }
          }
          this.#calculatedSize += sizes[index];
          if (status) {
            status.entrySize = size;
            status.totalCalculatedSize = this.#calculatedSize;
          }
        };
      }
      #removeItemSize = /* @__PURE__ */ __name((_i) => {
      }, "#removeItemSize");
      #addItemSize = /* @__PURE__ */ __name((_i, _s, _st) => {
      }, "#addItemSize");
      #requireSize = /* @__PURE__ */ __name((_k, _v, size, sizeCalculation) => {
        if (size || sizeCalculation) {
          throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");
        }
        return 0;
      }, "#requireSize");
      *#indexes({ allowStale = this.allowStale } = {}) {
        if (this.#size) {
          for (let i3 = this.#tail; true; ) {
            if (!this.#isValidIndex(i3)) {
              break;
            }
            if (allowStale || !this.#isStale(i3)) {
              yield i3;
            }
            if (i3 === this.#head) {
              break;
            } else {
              i3 = this.#prev[i3];
            }
          }
        }
      }
      *#rindexes({ allowStale = this.allowStale } = {}) {
        if (this.#size) {
          for (let i3 = this.#head; true; ) {
            if (!this.#isValidIndex(i3)) {
              break;
            }
            if (allowStale || !this.#isStale(i3)) {
              yield i3;
            }
            if (i3 === this.#tail) {
              break;
            } else {
              i3 = this.#next[i3];
            }
          }
        }
      }
      #isValidIndex(index) {
        return index !== void 0 && this.#keyMap.get(this.#keyList[index]) === index;
      }
      /**
       * Return a generator yielding `[key, value]` pairs,
       * in order from most recently used to least recently used.
       */
      *entries() {
        for (const i3 of this.#indexes()) {
          if (this.#valList[i3] !== void 0 && this.#keyList[i3] !== void 0 && !this.#isBackgroundFetch(this.#valList[i3])) {
            yield [this.#keyList[i3], this.#valList[i3]];
          }
        }
      }
      /**
       * Inverse order version of {@link LRUCache.entries}
       *
       * Return a generator yielding `[key, value]` pairs,
       * in order from least recently used to most recently used.
       */
      *rentries() {
        for (const i3 of this.#rindexes()) {
          if (this.#valList[i3] !== void 0 && this.#keyList[i3] !== void 0 && !this.#isBackgroundFetch(this.#valList[i3])) {
            yield [this.#keyList[i3], this.#valList[i3]];
          }
        }
      }
      /**
       * Return a generator yielding the keys in the cache,
       * in order from most recently used to least recently used.
       */
      *keys() {
        for (const i3 of this.#indexes()) {
          const k3 = this.#keyList[i3];
          if (k3 !== void 0 && !this.#isBackgroundFetch(this.#valList[i3])) {
            yield k3;
          }
        }
      }
      /**
       * Inverse order version of {@link LRUCache.keys}
       *
       * Return a generator yielding the keys in the cache,
       * in order from least recently used to most recently used.
       */
      *rkeys() {
        for (const i3 of this.#rindexes()) {
          const k3 = this.#keyList[i3];
          if (k3 !== void 0 && !this.#isBackgroundFetch(this.#valList[i3])) {
            yield k3;
          }
        }
      }
      /**
       * Return a generator yielding the values in the cache,
       * in order from most recently used to least recently used.
       */
      *values() {
        for (const i3 of this.#indexes()) {
          const v6 = this.#valList[i3];
          if (v6 !== void 0 && !this.#isBackgroundFetch(this.#valList[i3])) {
            yield this.#valList[i3];
          }
        }
      }
      /**
       * Inverse order version of {@link LRUCache.values}
       *
       * Return a generator yielding the values in the cache,
       * in order from least recently used to most recently used.
       */
      *rvalues() {
        for (const i3 of this.#rindexes()) {
          const v6 = this.#valList[i3];
          if (v6 !== void 0 && !this.#isBackgroundFetch(this.#valList[i3])) {
            yield this.#valList[i3];
          }
        }
      }
      /**
       * Iterating over the cache itself yields the same results as
       * {@link LRUCache.entries}
       */
      [Symbol.iterator]() {
        return this.entries();
      }
      /**
       * A String value that is used in the creation of the default string
       * description of an object. Called by the built-in method
       * `Object.prototype.toString`.
       */
      [Symbol.toStringTag] = "LRUCache";
      /**
       * Find a value for which the supplied fn method returns a truthy value,
       * similar to `Array.find()`. fn is called as `fn(value, key, cache)`.
       */
      find(fn, getOptions = {}) {
        for (const i3 of this.#indexes()) {
          const v6 = this.#valList[i3];
          const value = this.#isBackgroundFetch(v6) ? v6.__staleWhileFetching : v6;
          if (value === void 0)
            continue;
          if (fn(value, this.#keyList[i3], this)) {
            return this.get(this.#keyList[i3], getOptions);
          }
        }
      }
      /**
       * Call the supplied function on each item in the cache, in order from most
       * recently used to least recently used.
       *
       * `fn` is called as `fn(value, key, cache)`.
       *
       * If `thisp` is provided, function will be called in the `this`-context of
       * the provided object, or the cache if no `thisp` object is provided.
       *
       * Does not update age or recenty of use, or iterate over stale values.
       */
      forEach(fn, thisp = this) {
        for (const i3 of this.#indexes()) {
          const v6 = this.#valList[i3];
          const value = this.#isBackgroundFetch(v6) ? v6.__staleWhileFetching : v6;
          if (value === void 0)
            continue;
          fn.call(thisp, value, this.#keyList[i3], this);
        }
      }
      /**
       * The same as {@link LRUCache.forEach} but items are iterated over in
       * reverse order.  (ie, less recently used items are iterated over first.)
       */
      rforEach(fn, thisp = this) {
        for (const i3 of this.#rindexes()) {
          const v6 = this.#valList[i3];
          const value = this.#isBackgroundFetch(v6) ? v6.__staleWhileFetching : v6;
          if (value === void 0)
            continue;
          fn.call(thisp, value, this.#keyList[i3], this);
        }
      }
      /**
       * Delete any stale entries. Returns true if anything was removed,
       * false otherwise.
       */
      purgeStale() {
        let deleted = false;
        for (const i3 of this.#rindexes({ allowStale: true })) {
          if (this.#isStale(i3)) {
            this.#delete(this.#keyList[i3], "expire");
            deleted = true;
          }
        }
        return deleted;
      }
      /**
       * Get the extended info about a given entry, to get its value, size, and
       * TTL info simultaneously. Returns `undefined` if the key is not present.
       *
       * Unlike {@link LRUCache#dump}, which is designed to be portable and survive
       * serialization, the `start` value is always the current timestamp, and the
       * `ttl` is a calculated remaining time to live (negative if expired).
       *
       * Always returns stale values, if their info is found in the cache, so be
       * sure to check for expirations (ie, a negative {@link LRUCache.Entry#ttl})
       * if relevant.
       */
      info(key) {
        const i3 = this.#keyMap.get(key);
        if (i3 === void 0)
          return void 0;
        const v6 = this.#valList[i3];
        const value = this.#isBackgroundFetch(v6) ? v6.__staleWhileFetching : v6;
        if (value === void 0)
          return void 0;
        const entry = { value };
        if (this.#ttls && this.#starts) {
          const ttl = this.#ttls[i3];
          const start = this.#starts[i3];
          if (ttl && start) {
            const remain = ttl - (perf.now() - start);
            entry.ttl = remain;
            entry.start = Date.now();
          }
        }
        if (this.#sizes) {
          entry.size = this.#sizes[i3];
        }
        return entry;
      }
      /**
       * Return an array of [key, {@link LRUCache.Entry}] tuples which can be
       * passed to {@link LRUCache#load}.
       *
       * The `start` fields are calculated relative to a portable `Date.now()`
       * timestamp, even if `performance.now()` is available.
       *
       * Stale entries are always included in the `dump`, even if
       * {@link LRUCache.OptionsBase.allowStale} is false.
       *
       * Note: this returns an actual array, not a generator, so it can be more
       * easily passed around.
       */
      dump() {
        const arr = [];
        for (const i3 of this.#indexes({ allowStale: true })) {
          const key = this.#keyList[i3];
          const v6 = this.#valList[i3];
          const value = this.#isBackgroundFetch(v6) ? v6.__staleWhileFetching : v6;
          if (value === void 0 || key === void 0)
            continue;
          const entry = { value };
          if (this.#ttls && this.#starts) {
            entry.ttl = this.#ttls[i3];
            const age = perf.now() - this.#starts[i3];
            entry.start = Math.floor(Date.now() - age);
          }
          if (this.#sizes) {
            entry.size = this.#sizes[i3];
          }
          arr.unshift([key, entry]);
        }
        return arr;
      }
      /**
       * Reset the cache and load in the items in entries in the order listed.
       *
       * The shape of the resulting cache may be different if the same options are
       * not used in both caches.
       *
       * The `start` fields are assumed to be calculated relative to a portable
       * `Date.now()` timestamp, even if `performance.now()` is available.
       */
      load(arr) {
        this.clear();
        for (const [key, entry] of arr) {
          if (entry.start) {
            const age = Date.now() - entry.start;
            entry.start = perf.now() - age;
          }
          this.set(key, entry.value, entry);
        }
      }
      /**
       * Add a value to the cache.
       *
       * Note: if `undefined` is specified as a value, this is an alias for
       * {@link LRUCache#delete}
       *
       * Fields on the {@link LRUCache.SetOptions} options param will override
       * their corresponding values in the constructor options for the scope
       * of this single `set()` operation.
       *
       * If `start` is provided, then that will set the effective start
       * time for the TTL calculation. Note that this must be a previous
       * value of `performance.now()` if supported, or a previous value of
       * `Date.now()` if not.
       *
       * Options object may also include `size`, which will prevent
       * calling the `sizeCalculation` function and just use the specified
       * number if it is a positive integer, and `noDisposeOnSet` which
       * will prevent calling a `dispose` function in the case of
       * overwrites.
       *
       * If the `size` (or return value of `sizeCalculation`) for a given
       * entry is greater than `maxEntrySize`, then the item will not be
       * added to the cache.
       *
       * Will update the recency of the entry.
       *
       * If the value is `undefined`, then this is an alias for
       * `cache.delete(key)`. `undefined` is never stored in the cache.
       */
      set(k3, v6, setOptions = {}) {
        if (v6 === void 0) {
          this.delete(k3);
          return this;
        }
        const { ttl = this.ttl, start, noDisposeOnSet = this.noDisposeOnSet, sizeCalculation = this.sizeCalculation, status } = setOptions;
        let { noUpdateTTL = this.noUpdateTTL } = setOptions;
        const size = this.#requireSize(k3, v6, setOptions.size || 0, sizeCalculation);
        if (this.maxEntrySize && size > this.maxEntrySize) {
          if (status) {
            status.set = "miss";
            status.maxEntrySizeExceeded = true;
          }
          this.#delete(k3, "set");
          return this;
        }
        let index = this.#size === 0 ? void 0 : this.#keyMap.get(k3);
        if (index === void 0) {
          index = this.#size === 0 ? this.#tail : this.#free.length !== 0 ? this.#free.pop() : this.#size === this.#max ? this.#evict(false) : this.#size;
          this.#keyList[index] = k3;
          this.#valList[index] = v6;
          this.#keyMap.set(k3, index);
          this.#next[this.#tail] = index;
          this.#prev[index] = this.#tail;
          this.#tail = index;
          this.#size++;
          this.#addItemSize(index, size, status);
          if (status)
            status.set = "add";
          noUpdateTTL = false;
          if (this.#hasOnInsert) {
            this.#onInsert?.(v6, k3, "add");
          }
        } else {
          this.#moveToTail(index);
          const oldVal = this.#valList[index];
          if (v6 !== oldVal) {
            if (this.#hasFetchMethod && this.#isBackgroundFetch(oldVal)) {
              oldVal.__abortController.abort(new Error("replaced"));
              const { __staleWhileFetching: s3 } = oldVal;
              if (s3 !== void 0 && !noDisposeOnSet) {
                if (this.#hasDispose) {
                  this.#dispose?.(s3, k3, "set");
                }
                if (this.#hasDisposeAfter) {
                  this.#disposed?.push([s3, k3, "set"]);
                }
              }
            } else if (!noDisposeOnSet) {
              if (this.#hasDispose) {
                this.#dispose?.(oldVal, k3, "set");
              }
              if (this.#hasDisposeAfter) {
                this.#disposed?.push([oldVal, k3, "set"]);
              }
            }
            this.#removeItemSize(index);
            this.#addItemSize(index, size, status);
            this.#valList[index] = v6;
            if (status) {
              status.set = "replace";
              const oldValue = oldVal && this.#isBackgroundFetch(oldVal) ? oldVal.__staleWhileFetching : oldVal;
              if (oldValue !== void 0)
                status.oldValue = oldValue;
            }
          } else if (status) {
            status.set = "update";
          }
          if (this.#hasOnInsert) {
            this.onInsert?.(v6, k3, v6 === oldVal ? "update" : "replace");
          }
        }
        if (ttl !== 0 && !this.#ttls) {
          this.#initializeTTLTracking();
        }
        if (this.#ttls) {
          if (!noUpdateTTL) {
            this.#setItemTTL(index, ttl, start);
          }
          if (status)
            this.#statusTTL(status, index);
        }
        if (!noDisposeOnSet && this.#hasDisposeAfter && this.#disposed) {
          const dt = this.#disposed;
          let task;
          while (task = dt?.shift()) {
            this.#disposeAfter?.(...task);
          }
        }
        return this;
      }
      /**
       * Evict the least recently used item, returning its value or
       * `undefined` if cache is empty.
       */
      pop() {
        try {
          while (this.#size) {
            const val = this.#valList[this.#head];
            this.#evict(true);
            if (this.#isBackgroundFetch(val)) {
              if (val.__staleWhileFetching) {
                return val.__staleWhileFetching;
              }
            } else if (val !== void 0) {
              return val;
            }
          }
        } finally {
          if (this.#hasDisposeAfter && this.#disposed) {
            const dt = this.#disposed;
            let task;
            while (task = dt?.shift()) {
              this.#disposeAfter?.(...task);
            }
          }
        }
      }
      #evict(free) {
        const head = this.#head;
        const k3 = this.#keyList[head];
        const v6 = this.#valList[head];
        if (this.#hasFetchMethod && this.#isBackgroundFetch(v6)) {
          v6.__abortController.abort(new Error("evicted"));
        } else if (this.#hasDispose || this.#hasDisposeAfter) {
          if (this.#hasDispose) {
            this.#dispose?.(v6, k3, "evict");
          }
          if (this.#hasDisposeAfter) {
            this.#disposed?.push([v6, k3, "evict"]);
          }
        }
        this.#removeItemSize(head);
        if (free) {
          this.#keyList[head] = void 0;
          this.#valList[head] = void 0;
          this.#free.push(head);
        }
        if (this.#size === 1) {
          this.#head = this.#tail = 0;
          this.#free.length = 0;
        } else {
          this.#head = this.#next[head];
        }
        this.#keyMap.delete(k3);
        this.#size--;
        return head;
      }
      /**
       * Check if a key is in the cache, without updating the recency of use.
       * Will return false if the item is stale, even though it is technically
       * in the cache.
       *
       * Check if a key is in the cache, without updating the recency of
       * use. Age is updated if {@link LRUCache.OptionsBase.updateAgeOnHas} is set
       * to `true` in either the options or the constructor.
       *
       * Will return `false` if the item is stale, even though it is technically in
       * the cache. The difference can be determined (if it matters) by using a
       * `status` argument, and inspecting the `has` field.
       *
       * Will not update item age unless
       * {@link LRUCache.OptionsBase.updateAgeOnHas} is set.
       */
      has(k3, hasOptions = {}) {
        const { updateAgeOnHas = this.updateAgeOnHas, status } = hasOptions;
        const index = this.#keyMap.get(k3);
        if (index !== void 0) {
          const v6 = this.#valList[index];
          if (this.#isBackgroundFetch(v6) && v6.__staleWhileFetching === void 0) {
            return false;
          }
          if (!this.#isStale(index)) {
            if (updateAgeOnHas) {
              this.#updateItemAge(index);
            }
            if (status) {
              status.has = "hit";
              this.#statusTTL(status, index);
            }
            return true;
          } else if (status) {
            status.has = "stale";
            this.#statusTTL(status, index);
          }
        } else if (status) {
          status.has = "miss";
        }
        return false;
      }
      /**
       * Like {@link LRUCache#get} but doesn't update recency or delete stale
       * items.
       *
       * Returns `undefined` if the item is stale, unless
       * {@link LRUCache.OptionsBase.allowStale} is set.
       */
      peek(k3, peekOptions = {}) {
        const { allowStale = this.allowStale } = peekOptions;
        const index = this.#keyMap.get(k3);
        if (index === void 0 || !allowStale && this.#isStale(index)) {
          return;
        }
        const v6 = this.#valList[index];
        return this.#isBackgroundFetch(v6) ? v6.__staleWhileFetching : v6;
      }
      #backgroundFetch(k3, index, options, context) {
        const v6 = index === void 0 ? void 0 : this.#valList[index];
        if (this.#isBackgroundFetch(v6)) {
          return v6;
        }
        const ac = new AC();
        const { signal } = options;
        signal?.addEventListener("abort", () => ac.abort(signal.reason), {
          signal: ac.signal
        });
        const fetchOpts = {
          signal: ac.signal,
          options,
          context
        };
        const cb = /* @__PURE__ */ __name((v7, updateCache = false) => {
          const { aborted } = ac.signal;
          const ignoreAbort = options.ignoreFetchAbort && v7 !== void 0;
          if (options.status) {
            if (aborted && !updateCache) {
              options.status.fetchAborted = true;
              options.status.fetchError = ac.signal.reason;
              if (ignoreAbort)
                options.status.fetchAbortIgnored = true;
            } else {
              options.status.fetchResolved = true;
            }
          }
          if (aborted && !ignoreAbort && !updateCache) {
            return fetchFail(ac.signal.reason);
          }
          const bf2 = p3;
          if (this.#valList[index] === p3) {
            if (v7 === void 0) {
              if (bf2.__staleWhileFetching) {
                this.#valList[index] = bf2.__staleWhileFetching;
              } else {
                this.#delete(k3, "fetch");
              }
            } else {
              if (options.status)
                options.status.fetchUpdated = true;
              this.set(k3, v7, fetchOpts.options);
            }
          }
          return v7;
        }, "cb");
        const eb = /* @__PURE__ */ __name((er) => {
          if (options.status) {
            options.status.fetchRejected = true;
            options.status.fetchError = er;
          }
          return fetchFail(er);
        }, "eb");
        const fetchFail = /* @__PURE__ */ __name((er) => {
          const { aborted } = ac.signal;
          const allowStaleAborted = aborted && options.allowStaleOnFetchAbort;
          const allowStale = allowStaleAborted || options.allowStaleOnFetchRejection;
          const noDelete = allowStale || options.noDeleteOnFetchRejection;
          const bf2 = p3;
          if (this.#valList[index] === p3) {
            const del = !noDelete || bf2.__staleWhileFetching === void 0;
            if (del) {
              this.#delete(k3, "fetch");
            } else if (!allowStaleAborted) {
              this.#valList[index] = bf2.__staleWhileFetching;
            }
          }
          if (allowStale) {
            if (options.status && bf2.__staleWhileFetching !== void 0) {
              options.status.returnedStale = true;
            }
            return bf2.__staleWhileFetching;
          } else if (bf2.__returned === bf2) {
            throw er;
          }
        }, "fetchFail");
        const pcall = /* @__PURE__ */ __name((res, rej) => {
          const fmp = this.#fetchMethod?.(k3, v6, fetchOpts);
          if (fmp && fmp instanceof Promise) {
            fmp.then((v7) => res(v7 === void 0 ? void 0 : v7), rej);
          }
          ac.signal.addEventListener("abort", () => {
            if (!options.ignoreFetchAbort || options.allowStaleOnFetchAbort) {
              res(void 0);
              if (options.allowStaleOnFetchAbort) {
                res = /* @__PURE__ */ __name((v7) => cb(v7, true), "res");
              }
            }
          });
        }, "pcall");
        if (options.status)
          options.status.fetchDispatched = true;
        const p3 = new Promise(pcall).then(cb, eb);
        const bf = Object.assign(p3, {
          __abortController: ac,
          __staleWhileFetching: v6,
          __returned: void 0
        });
        if (index === void 0) {
          this.set(k3, bf, { ...fetchOpts.options, status: void 0 });
          index = this.#keyMap.get(k3);
        } else {
          this.#valList[index] = bf;
        }
        return bf;
      }
      #isBackgroundFetch(p3) {
        if (!this.#hasFetchMethod)
          return false;
        const b3 = p3;
        return !!b3 && b3 instanceof Promise && b3.hasOwnProperty("__staleWhileFetching") && b3.__abortController instanceof AC;
      }
      async fetch(k3, fetchOptions = {}) {
        const {
          // get options
          allowStale = this.allowStale,
          updateAgeOnGet = this.updateAgeOnGet,
          noDeleteOnStaleGet = this.noDeleteOnStaleGet,
          // set options
          ttl = this.ttl,
          noDisposeOnSet = this.noDisposeOnSet,
          size = 0,
          sizeCalculation = this.sizeCalculation,
          noUpdateTTL = this.noUpdateTTL,
          // fetch exclusive options
          noDeleteOnFetchRejection = this.noDeleteOnFetchRejection,
          allowStaleOnFetchRejection = this.allowStaleOnFetchRejection,
          ignoreFetchAbort = this.ignoreFetchAbort,
          allowStaleOnFetchAbort = this.allowStaleOnFetchAbort,
          context,
          forceRefresh = false,
          status,
          signal
        } = fetchOptions;
        if (!this.#hasFetchMethod) {
          if (status)
            status.fetch = "get";
          return this.get(k3, {
            allowStale,
            updateAgeOnGet,
            noDeleteOnStaleGet,
            status
          });
        }
        const options = {
          allowStale,
          updateAgeOnGet,
          noDeleteOnStaleGet,
          ttl,
          noDisposeOnSet,
          size,
          sizeCalculation,
          noUpdateTTL,
          noDeleteOnFetchRejection,
          allowStaleOnFetchRejection,
          allowStaleOnFetchAbort,
          ignoreFetchAbort,
          status,
          signal
        };
        let index = this.#keyMap.get(k3);
        if (index === void 0) {
          if (status)
            status.fetch = "miss";
          const p3 = this.#backgroundFetch(k3, index, options, context);
          return p3.__returned = p3;
        } else {
          const v6 = this.#valList[index];
          if (this.#isBackgroundFetch(v6)) {
            const stale = allowStale && v6.__staleWhileFetching !== void 0;
            if (status) {
              status.fetch = "inflight";
              if (stale)
                status.returnedStale = true;
            }
            return stale ? v6.__staleWhileFetching : v6.__returned = v6;
          }
          const isStale = this.#isStale(index);
          if (!forceRefresh && !isStale) {
            if (status)
              status.fetch = "hit";
            this.#moveToTail(index);
            if (updateAgeOnGet) {
              this.#updateItemAge(index);
            }
            if (status)
              this.#statusTTL(status, index);
            return v6;
          }
          const p3 = this.#backgroundFetch(k3, index, options, context);
          const hasStale = p3.__staleWhileFetching !== void 0;
          const staleVal = hasStale && allowStale;
          if (status) {
            status.fetch = isStale ? "stale" : "refresh";
            if (staleVal && isStale)
              status.returnedStale = true;
          }
          return staleVal ? p3.__staleWhileFetching : p3.__returned = p3;
        }
      }
      async forceFetch(k3, fetchOptions = {}) {
        const v6 = await this.fetch(k3, fetchOptions);
        if (v6 === void 0)
          throw new Error("fetch() returned undefined");
        return v6;
      }
      memo(k3, memoOptions = {}) {
        const memoMethod = this.#memoMethod;
        if (!memoMethod) {
          throw new Error("no memoMethod provided to constructor");
        }
        const { context, forceRefresh, ...options } = memoOptions;
        const v6 = this.get(k3, options);
        if (!forceRefresh && v6 !== void 0)
          return v6;
        const vv = memoMethod(k3, v6, {
          options,
          context
        });
        this.set(k3, vv, options);
        return vv;
      }
      /**
       * Return a value from the cache. Will update the recency of the cache
       * entry found.
       *
       * If the key is not found, get() will return `undefined`.
       */
      get(k3, getOptions = {}) {
        const { allowStale = this.allowStale, updateAgeOnGet = this.updateAgeOnGet, noDeleteOnStaleGet = this.noDeleteOnStaleGet, status } = getOptions;
        const index = this.#keyMap.get(k3);
        if (index !== void 0) {
          const value = this.#valList[index];
          const fetching = this.#isBackgroundFetch(value);
          if (status)
            this.#statusTTL(status, index);
          if (this.#isStale(index)) {
            if (status)
              status.get = "stale";
            if (!fetching) {
              if (!noDeleteOnStaleGet) {
                this.#delete(k3, "expire");
              }
              if (status && allowStale)
                status.returnedStale = true;
              return allowStale ? value : void 0;
            } else {
              if (status && allowStale && value.__staleWhileFetching !== void 0) {
                status.returnedStale = true;
              }
              return allowStale ? value.__staleWhileFetching : void 0;
            }
          } else {
            if (status)
              status.get = "hit";
            if (fetching) {
              return value.__staleWhileFetching;
            }
            this.#moveToTail(index);
            if (updateAgeOnGet) {
              this.#updateItemAge(index);
            }
            return value;
          }
        } else if (status) {
          status.get = "miss";
        }
      }
      #connect(p3, n3) {
        this.#prev[n3] = p3;
        this.#next[p3] = n3;
      }
      #moveToTail(index) {
        if (index !== this.#tail) {
          if (index === this.#head) {
            this.#head = this.#next[index];
          } else {
            this.#connect(this.#prev[index], this.#next[index]);
          }
          this.#connect(this.#tail, index);
          this.#tail = index;
        }
      }
      /**
       * Deletes a key out of the cache.
       *
       * Returns true if the key was deleted, false otherwise.
       */
      delete(k3) {
        return this.#delete(k3, "delete");
      }
      #delete(k3, reason) {
        let deleted = false;
        if (this.#size !== 0) {
          const index = this.#keyMap.get(k3);
          if (index !== void 0) {
            deleted = true;
            if (this.#size === 1) {
              this.#clear(reason);
            } else {
              this.#removeItemSize(index);
              const v6 = this.#valList[index];
              if (this.#isBackgroundFetch(v6)) {
                v6.__abortController.abort(new Error("deleted"));
              } else if (this.#hasDispose || this.#hasDisposeAfter) {
                if (this.#hasDispose) {
                  this.#dispose?.(v6, k3, reason);
                }
                if (this.#hasDisposeAfter) {
                  this.#disposed?.push([v6, k3, reason]);
                }
              }
              this.#keyMap.delete(k3);
              this.#keyList[index] = void 0;
              this.#valList[index] = void 0;
              if (index === this.#tail) {
                this.#tail = this.#prev[index];
              } else if (index === this.#head) {
                this.#head = this.#next[index];
              } else {
                const pi = this.#prev[index];
                this.#next[pi] = this.#next[index];
                const ni = this.#next[index];
                this.#prev[ni] = this.#prev[index];
              }
              this.#size--;
              this.#free.push(index);
            }
          }
        }
        if (this.#hasDisposeAfter && this.#disposed?.length) {
          const dt = this.#disposed;
          let task;
          while (task = dt?.shift()) {
            this.#disposeAfter?.(...task);
          }
        }
        return deleted;
      }
      /**
       * Clear the cache entirely, throwing away all values.
       */
      clear() {
        return this.#clear("delete");
      }
      #clear(reason) {
        for (const index of this.#rindexes({ allowStale: true })) {
          const v6 = this.#valList[index];
          if (this.#isBackgroundFetch(v6)) {
            v6.__abortController.abort(new Error("deleted"));
          } else {
            const k3 = this.#keyList[index];
            if (this.#hasDispose) {
              this.#dispose?.(v6, k3, reason);
            }
            if (this.#hasDisposeAfter) {
              this.#disposed?.push([v6, k3, reason]);
            }
          }
        }
        this.#keyMap.clear();
        this.#valList.fill(void 0);
        this.#keyList.fill(void 0);
        if (this.#ttls && this.#starts) {
          this.#ttls.fill(0);
          this.#starts.fill(0);
        }
        if (this.#sizes) {
          this.#sizes.fill(0);
        }
        this.#head = 0;
        this.#tail = 0;
        this.#free.length = 0;
        this.#calculatedSize = 0;
        this.#size = 0;
        if (this.#hasDisposeAfter && this.#disposed) {
          const dt = this.#disposed;
          let task;
          while (task = dt?.shift()) {
            this.#disposeAfter?.(...task);
          }
        }
      }
    };
  }
});

// ../../node_modules/minipass/dist/esm/index.js
var import_node_events, import_node_stream, import_node_string_decoder, proc, isStream, isReadable, isWritable, EOF, MAYBE_EMIT_END, EMITTED_END, EMITTING_END, EMITTED_ERROR, CLOSED, READ, FLUSH, FLUSHCHUNK, ENCODING, DECODER, FLOWING, PAUSED, RESUME, BUFFER, PIPES, BUFFERLENGTH, BUFFERPUSH, BUFFERSHIFT, OBJECTMODE, DESTROYED, ERROR, EMITDATA, EMITEND, EMITEND2, ASYNC, ABORT, ABORTED, SIGNAL, DATALISTENERS, DISCARDED, defer, nodefer, isEndish, isArrayBufferLike, isArrayBufferView, Pipe, PipeProxyErrors, isObjectModeOptions, isEncodingOptions, Minipass;
var init_esm5 = __esm({
  "../../node_modules/minipass/dist/esm/index.js"() {
    import_node_events = require("node:events");
    import_node_stream = __toESM(require("node:stream"), 1);
    import_node_string_decoder = require("node:string_decoder");
    proc = typeof process === "object" && process ? process : {
      stdout: null,
      stderr: null
    };
    isStream = /* @__PURE__ */ __name((s3) => !!s3 && typeof s3 === "object" && (s3 instanceof Minipass || s3 instanceof import_node_stream.default || isReadable(s3) || isWritable(s3)), "isStream");
    isReadable = /* @__PURE__ */ __name((s3) => !!s3 && typeof s3 === "object" && s3 instanceof import_node_events.EventEmitter && typeof s3.pipe === "function" && // node core Writable streams have a pipe() method, but it throws
    s3.pipe !== import_node_stream.default.Writable.prototype.pipe, "isReadable");
    isWritable = /* @__PURE__ */ __name((s3) => !!s3 && typeof s3 === "object" && s3 instanceof import_node_events.EventEmitter && typeof s3.write === "function" && typeof s3.end === "function", "isWritable");
    EOF = Symbol("EOF");
    MAYBE_EMIT_END = Symbol("maybeEmitEnd");
    EMITTED_END = Symbol("emittedEnd");
    EMITTING_END = Symbol("emittingEnd");
    EMITTED_ERROR = Symbol("emittedError");
    CLOSED = Symbol("closed");
    READ = Symbol("read");
    FLUSH = Symbol("flush");
    FLUSHCHUNK = Symbol("flushChunk");
    ENCODING = Symbol("encoding");
    DECODER = Symbol("decoder");
    FLOWING = Symbol("flowing");
    PAUSED = Symbol("paused");
    RESUME = Symbol("resume");
    BUFFER = Symbol("buffer");
    PIPES = Symbol("pipes");
    BUFFERLENGTH = Symbol("bufferLength");
    BUFFERPUSH = Symbol("bufferPush");
    BUFFERSHIFT = Symbol("bufferShift");
    OBJECTMODE = Symbol("objectMode");
    DESTROYED = Symbol("destroyed");
    ERROR = Symbol("error");
    EMITDATA = Symbol("emitData");
    EMITEND = Symbol("emitEnd");
    EMITEND2 = Symbol("emitEnd2");
    ASYNC = Symbol("async");
    ABORT = Symbol("abort");
    ABORTED = Symbol("aborted");
    SIGNAL = Symbol("signal");
    DATALISTENERS = Symbol("dataListeners");
    DISCARDED = Symbol("discarded");
    defer = /* @__PURE__ */ __name((fn) => Promise.resolve().then(fn), "defer");
    nodefer = /* @__PURE__ */ __name((fn) => fn(), "nodefer");
    isEndish = /* @__PURE__ */ __name((ev) => ev === "end" || ev === "finish" || ev === "prefinish", "isEndish");
    isArrayBufferLike = /* @__PURE__ */ __name((b3) => b3 instanceof ArrayBuffer || !!b3 && typeof b3 === "object" && b3.constructor && b3.constructor.name === "ArrayBuffer" && b3.byteLength >= 0, "isArrayBufferLike");
    isArrayBufferView = /* @__PURE__ */ __name((b3) => !Buffer.isBuffer(b3) && ArrayBuffer.isView(b3), "isArrayBufferView");
    Pipe = class {
      static {
        __name(this, "Pipe");
      }
      src;
      dest;
      opts;
      ondrain;
      constructor(src, dest, opts) {
        this.src = src;
        this.dest = dest;
        this.opts = opts;
        this.ondrain = () => src[RESUME]();
        this.dest.on("drain", this.ondrain);
      }
      unpipe() {
        this.dest.removeListener("drain", this.ondrain);
      }
      // only here for the prototype
      /* c8 ignore start */
      proxyErrors(_er) {
      }
      /* c8 ignore stop */
      end() {
        this.unpipe();
        if (this.opts.end)
          this.dest.end();
      }
    };
    PipeProxyErrors = class extends Pipe {
      static {
        __name(this, "PipeProxyErrors");
      }
      unpipe() {
        this.src.removeListener("error", this.proxyErrors);
        super.unpipe();
      }
      constructor(src, dest, opts) {
        super(src, dest, opts);
        this.proxyErrors = (er) => dest.emit("error", er);
        src.on("error", this.proxyErrors);
      }
    };
    isObjectModeOptions = /* @__PURE__ */ __name((o3) => !!o3.objectMode, "isObjectModeOptions");
    isEncodingOptions = /* @__PURE__ */ __name((o3) => !o3.objectMode && !!o3.encoding && o3.encoding !== "buffer", "isEncodingOptions");
    Minipass = class extends import_node_events.EventEmitter {
      static {
        __name(this, "Minipass");
      }
      [FLOWING] = false;
      [PAUSED] = false;
      [PIPES] = [];
      [BUFFER] = [];
      [OBJECTMODE];
      [ENCODING];
      [ASYNC];
      [DECODER];
      [EOF] = false;
      [EMITTED_END] = false;
      [EMITTING_END] = false;
      [CLOSED] = false;
      [EMITTED_ERROR] = null;
      [BUFFERLENGTH] = 0;
      [DESTROYED] = false;
      [SIGNAL];
      [ABORTED] = false;
      [DATALISTENERS] = 0;
      [DISCARDED] = false;
      /**
       * true if the stream can be written
       */
      writable = true;
      /**
       * true if the stream can be read
       */
      readable = true;
      /**
       * If `RType` is Buffer, then options do not need to be provided.
       * Otherwise, an options object must be provided to specify either
       * {@link Minipass.SharedOptions.objectMode} or
       * {@link Minipass.SharedOptions.encoding}, as appropriate.
       */
      constructor(...args) {
        const options = args[0] || {};
        super();
        if (options.objectMode && typeof options.encoding === "string") {
          throw new TypeError("Encoding and objectMode may not be used together");
        }
        if (isObjectModeOptions(options)) {
          this[OBJECTMODE] = true;
          this[ENCODING] = null;
        } else if (isEncodingOptions(options)) {
          this[ENCODING] = options.encoding;
          this[OBJECTMODE] = false;
        } else {
          this[OBJECTMODE] = false;
          this[ENCODING] = null;
        }
        this[ASYNC] = !!options.async;
        this[DECODER] = this[ENCODING] ? new import_node_string_decoder.StringDecoder(this[ENCODING]) : null;
        if (options && options.debugExposeBuffer === true) {
          Object.defineProperty(this, "buffer", { get: /* @__PURE__ */ __name(() => this[BUFFER], "get") });
        }
        if (options && options.debugExposePipes === true) {
          Object.defineProperty(this, "pipes", { get: /* @__PURE__ */ __name(() => this[PIPES], "get") });
        }
        const { signal } = options;
        if (signal) {
          this[SIGNAL] = signal;
          if (signal.aborted) {
            this[ABORT]();
          } else {
            signal.addEventListener("abort", () => this[ABORT]());
          }
        }
      }
      /**
       * The amount of data stored in the buffer waiting to be read.
       *
       * For Buffer strings, this will be the total byte length.
       * For string encoding streams, this will be the string character length,
       * according to JavaScript's `string.length` logic.
       * For objectMode streams, this is a count of the items waiting to be
       * emitted.
       */
      get bufferLength() {
        return this[BUFFERLENGTH];
      }
      /**
       * The `BufferEncoding` currently in use, or `null`
       */
      get encoding() {
        return this[ENCODING];
      }
      /**
       * @deprecated - This is a read only property
       */
      set encoding(_enc) {
        throw new Error("Encoding must be set at instantiation time");
      }
      /**
       * @deprecated - Encoding may only be set at instantiation time
       */
      setEncoding(_enc) {
        throw new Error("Encoding must be set at instantiation time");
      }
      /**
       * True if this is an objectMode stream
       */
      get objectMode() {
        return this[OBJECTMODE];
      }
      /**
       * @deprecated - This is a read-only property
       */
      set objectMode(_om) {
        throw new Error("objectMode must be set at instantiation time");
      }
      /**
       * true if this is an async stream
       */
      get ["async"]() {
        return this[ASYNC];
      }
      /**
       * Set to true to make this stream async.
       *
       * Once set, it cannot be unset, as this would potentially cause incorrect
       * behavior.  Ie, a sync stream can be made async, but an async stream
       * cannot be safely made sync.
       */
      set ["async"](a3) {
        this[ASYNC] = this[ASYNC] || !!a3;
      }
      // drop everything and get out of the flow completely
      [ABORT]() {
        this[ABORTED] = true;
        this.emit("abort", this[SIGNAL]?.reason);
        this.destroy(this[SIGNAL]?.reason);
      }
      /**
       * True if the stream has been aborted.
       */
      get aborted() {
        return this[ABORTED];
      }
      /**
       * No-op setter. Stream aborted status is set via the AbortSignal provided
       * in the constructor options.
       */
      set aborted(_3) {
      }
      write(chunk, encoding, cb) {
        if (this[ABORTED])
          return false;
        if (this[EOF])
          throw new Error("write after end");
        if (this[DESTROYED]) {
          this.emit("error", Object.assign(new Error("Cannot call write after a stream was destroyed"), { code: "ERR_STREAM_DESTROYED" }));
          return true;
        }
        if (typeof encoding === "function") {
          cb = encoding;
          encoding = "utf8";
        }
        if (!encoding)
          encoding = "utf8";
        const fn = this[ASYNC] ? defer : nodefer;
        if (!this[OBJECTMODE] && !Buffer.isBuffer(chunk)) {
          if (isArrayBufferView(chunk)) {
            chunk = Buffer.from(chunk.buffer, chunk.byteOffset, chunk.byteLength);
          } else if (isArrayBufferLike(chunk)) {
            chunk = Buffer.from(chunk);
          } else if (typeof chunk !== "string") {
            throw new Error("Non-contiguous data written to non-objectMode stream");
          }
        }
        if (this[OBJECTMODE]) {
          if (this[FLOWING] && this[BUFFERLENGTH] !== 0)
            this[FLUSH](true);
          if (this[FLOWING])
            this.emit("data", chunk);
          else
            this[BUFFERPUSH](chunk);
          if (this[BUFFERLENGTH] !== 0)
            this.emit("readable");
          if (cb)
            fn(cb);
          return this[FLOWING];
        }
        if (!chunk.length) {
          if (this[BUFFERLENGTH] !== 0)
            this.emit("readable");
          if (cb)
            fn(cb);
          return this[FLOWING];
        }
        if (typeof chunk === "string" && // unless it is a string already ready for us to use
        !(encoding === this[ENCODING] && !this[DECODER]?.lastNeed)) {
          chunk = Buffer.from(chunk, encoding);
        }
        if (Buffer.isBuffer(chunk) && this[ENCODING]) {
          chunk = this[DECODER].write(chunk);
        }
        if (this[FLOWING] && this[BUFFERLENGTH] !== 0)
          this[FLUSH](true);
        if (this[FLOWING])
          this.emit("data", chunk);
        else
          this[BUFFERPUSH](chunk);
        if (this[BUFFERLENGTH] !== 0)
          this.emit("readable");
        if (cb)
          fn(cb);
        return this[FLOWING];
      }
      /**
       * Low-level explicit read method.
       *
       * In objectMode, the argument is ignored, and one item is returned if
       * available.
       *
       * `n` is the number of bytes (or in the case of encoding streams,
       * characters) to consume. If `n` is not provided, then the entire buffer
       * is returned, or `null` is returned if no data is available.
       *
       * If `n` is greater that the amount of data in the internal buffer,
       * then `null` is returned.
       */
      read(n3) {
        if (this[DESTROYED])
          return null;
        this[DISCARDED] = false;
        if (this[BUFFERLENGTH] === 0 || n3 === 0 || n3 && n3 > this[BUFFERLENGTH]) {
          this[MAYBE_EMIT_END]();
          return null;
        }
        if (this[OBJECTMODE])
          n3 = null;
        if (this[BUFFER].length > 1 && !this[OBJECTMODE]) {
          this[BUFFER] = [
            this[ENCODING] ? this[BUFFER].join("") : Buffer.concat(this[BUFFER], this[BUFFERLENGTH])
          ];
        }
        const ret = this[READ](n3 || null, this[BUFFER][0]);
        this[MAYBE_EMIT_END]();
        return ret;
      }
      [READ](n3, chunk) {
        if (this[OBJECTMODE])
          this[BUFFERSHIFT]();
        else {
          const c3 = chunk;
          if (n3 === c3.length || n3 === null)
            this[BUFFERSHIFT]();
          else if (typeof c3 === "string") {
            this[BUFFER][0] = c3.slice(n3);
            chunk = c3.slice(0, n3);
            this[BUFFERLENGTH] -= n3;
          } else {
            this[BUFFER][0] = c3.subarray(n3);
            chunk = c3.subarray(0, n3);
            this[BUFFERLENGTH] -= n3;
          }
        }
        this.emit("data", chunk);
        if (!this[BUFFER].length && !this[EOF])
          this.emit("drain");
        return chunk;
      }
      end(chunk, encoding, cb) {
        if (typeof chunk === "function") {
          cb = chunk;
          chunk = void 0;
        }
        if (typeof encoding === "function") {
          cb = encoding;
          encoding = "utf8";
        }
        if (chunk !== void 0)
          this.write(chunk, encoding);
        if (cb)
          this.once("end", cb);
        this[EOF] = true;
        this.writable = false;
        if (this[FLOWING] || !this[PAUSED])
          this[MAYBE_EMIT_END]();
        return this;
      }
      // don't let the internal resume be overwritten
      [RESUME]() {
        if (this[DESTROYED])
          return;
        if (!this[DATALISTENERS] && !this[PIPES].length) {
          this[DISCARDED] = true;
        }
        this[PAUSED] = false;
        this[FLOWING] = true;
        this.emit("resume");
        if (this[BUFFER].length)
          this[FLUSH]();
        else if (this[EOF])
          this[MAYBE_EMIT_END]();
        else
          this.emit("drain");
      }
      /**
       * Resume the stream if it is currently in a paused state
       *
       * If called when there are no pipe destinations or `data` event listeners,
       * this will place the stream in a "discarded" state, where all data will
       * be thrown away. The discarded state is removed if a pipe destination or
       * data handler is added, if pause() is called, or if any synchronous or
       * asynchronous iteration is started.
       */
      resume() {
        return this[RESUME]();
      }
      /**
       * Pause the stream
       */
      pause() {
        this[FLOWING] = false;
        this[PAUSED] = true;
        this[DISCARDED] = false;
      }
      /**
       * true if the stream has been forcibly destroyed
       */
      get destroyed() {
        return this[DESTROYED];
      }
      /**
       * true if the stream is currently in a flowing state, meaning that
       * any writes will be immediately emitted.
       */
      get flowing() {
        return this[FLOWING];
      }
      /**
       * true if the stream is currently in a paused state
       */
      get paused() {
        return this[PAUSED];
      }
      [BUFFERPUSH](chunk) {
        if (this[OBJECTMODE])
          this[BUFFERLENGTH] += 1;
        else
          this[BUFFERLENGTH] += chunk.length;
        this[BUFFER].push(chunk);
      }
      [BUFFERSHIFT]() {
        if (this[OBJECTMODE])
          this[BUFFERLENGTH] -= 1;
        else
          this[BUFFERLENGTH] -= this[BUFFER][0].length;
        return this[BUFFER].shift();
      }
      [FLUSH](noDrain = false) {
        do {
        } while (this[FLUSHCHUNK](this[BUFFERSHIFT]()) && this[BUFFER].length);
        if (!noDrain && !this[BUFFER].length && !this[EOF])
          this.emit("drain");
      }
      [FLUSHCHUNK](chunk) {
        this.emit("data", chunk);
        return this[FLOWING];
      }
      /**
       * Pipe all data emitted by this stream into the destination provided.
       *
       * Triggers the flow of data.
       */
      pipe(dest, opts) {
        if (this[DESTROYED])
          return dest;
        this[DISCARDED] = false;
        const ended = this[EMITTED_END];
        opts = opts || {};
        if (dest === proc.stdout || dest === proc.stderr)
          opts.end = false;
        else
          opts.end = opts.end !== false;
        opts.proxyErrors = !!opts.proxyErrors;
        if (ended) {
          if (opts.end)
            dest.end();
        } else {
          this[PIPES].push(!opts.proxyErrors ? new Pipe(this, dest, opts) : new PipeProxyErrors(this, dest, opts));
          if (this[ASYNC])
            defer(() => this[RESUME]());
          else
            this[RESUME]();
        }
        return dest;
      }
      /**
       * Fully unhook a piped destination stream.
       *
       * If the destination stream was the only consumer of this stream (ie,
       * there are no other piped destinations or `'data'` event listeners)
       * then the flow of data will stop until there is another consumer or
       * {@link Minipass#resume} is explicitly called.
       */
      unpipe(dest) {
        const p3 = this[PIPES].find((p4) => p4.dest === dest);
        if (p3) {
          if (this[PIPES].length === 1) {
            if (this[FLOWING] && this[DATALISTENERS] === 0) {
              this[FLOWING] = false;
            }
            this[PIPES] = [];
          } else
            this[PIPES].splice(this[PIPES].indexOf(p3), 1);
          p3.unpipe();
        }
      }
      /**
       * Alias for {@link Minipass#on}
       */
      addListener(ev, handler) {
        return this.on(ev, handler);
      }
      /**
       * Mostly identical to `EventEmitter.on`, with the following
       * behavior differences to prevent data loss and unnecessary hangs:
       *
       * - Adding a 'data' event handler will trigger the flow of data
       *
       * - Adding a 'readable' event handler when there is data waiting to be read
       *   will cause 'readable' to be emitted immediately.
       *
       * - Adding an 'endish' event handler ('end', 'finish', etc.) which has
       *   already passed will cause the event to be emitted immediately and all
       *   handlers removed.
       *
       * - Adding an 'error' event handler after an error has been emitted will
       *   cause the event to be re-emitted immediately with the error previously
       *   raised.
       */
      on(ev, handler) {
        const ret = super.on(ev, handler);
        if (ev === "data") {
          this[DISCARDED] = false;
          this[DATALISTENERS]++;
          if (!this[PIPES].length && !this[FLOWING]) {
            this[RESUME]();
          }
        } else if (ev === "readable" && this[BUFFERLENGTH] !== 0) {
          super.emit("readable");
        } else if (isEndish(ev) && this[EMITTED_END]) {
          super.emit(ev);
          this.removeAllListeners(ev);
        } else if (ev === "error" && this[EMITTED_ERROR]) {
          const h3 = handler;
          if (this[ASYNC])
            defer(() => h3.call(this, this[EMITTED_ERROR]));
          else
            h3.call(this, this[EMITTED_ERROR]);
        }
        return ret;
      }
      /**
       * Alias for {@link Minipass#off}
       */
      removeListener(ev, handler) {
        return this.off(ev, handler);
      }
      /**
       * Mostly identical to `EventEmitter.off`
       *
       * If a 'data' event handler is removed, and it was the last consumer
       * (ie, there are no pipe destinations or other 'data' event listeners),
       * then the flow of data will stop until there is another consumer or
       * {@link Minipass#resume} is explicitly called.
       */
      off(ev, handler) {
        const ret = super.off(ev, handler);
        if (ev === "data") {
          this[DATALISTENERS] = this.listeners("data").length;
          if (this[DATALISTENERS] === 0 && !this[DISCARDED] && !this[PIPES].length) {
            this[FLOWING] = false;
          }
        }
        return ret;
      }
      /**
       * Mostly identical to `EventEmitter.removeAllListeners`
       *
       * If all 'data' event handlers are removed, and they were the last consumer
       * (ie, there are no pipe destinations), then the flow of data will stop
       * until there is another consumer or {@link Minipass#resume} is explicitly
       * called.
       */
      removeAllListeners(ev) {
        const ret = super.removeAllListeners(ev);
        if (ev === "data" || ev === void 0) {
          this[DATALISTENERS] = 0;
          if (!this[DISCARDED] && !this[PIPES].length) {
            this[FLOWING] = false;
          }
        }
        return ret;
      }
      /**
       * true if the 'end' event has been emitted
       */
      get emittedEnd() {
        return this[EMITTED_END];
      }
      [MAYBE_EMIT_END]() {
        if (!this[EMITTING_END] && !this[EMITTED_END] && !this[DESTROYED] && this[BUFFER].length === 0 && this[EOF]) {
          this[EMITTING_END] = true;
          this.emit("end");
          this.emit("prefinish");
          this.emit("finish");
          if (this[CLOSED])
            this.emit("close");
          this[EMITTING_END] = false;
        }
      }
      /**
       * Mostly identical to `EventEmitter.emit`, with the following
       * behavior differences to prevent data loss and unnecessary hangs:
       *
       * If the stream has been destroyed, and the event is something other
       * than 'close' or 'error', then `false` is returned and no handlers
       * are called.
       *
       * If the event is 'end', and has already been emitted, then the event
       * is ignored. If the stream is in a paused or non-flowing state, then
       * the event will be deferred until data flow resumes. If the stream is
       * async, then handlers will be called on the next tick rather than
       * immediately.
       *
       * If the event is 'close', and 'end' has not yet been emitted, then
       * the event will be deferred until after 'end' is emitted.
       *
       * If the event is 'error', and an AbortSignal was provided for the stream,
       * and there are no listeners, then the event is ignored, matching the
       * behavior of node core streams in the presense of an AbortSignal.
       *
       * If the event is 'finish' or 'prefinish', then all listeners will be
       * removed after emitting the event, to prevent double-firing.
       */
      emit(ev, ...args) {
        const data3 = args[0];
        if (ev !== "error" && ev !== "close" && ev !== DESTROYED && this[DESTROYED]) {
          return false;
        } else if (ev === "data") {
          return !this[OBJECTMODE] && !data3 ? false : this[ASYNC] ? (defer(() => this[EMITDATA](data3)), true) : this[EMITDATA](data3);
        } else if (ev === "end") {
          return this[EMITEND]();
        } else if (ev === "close") {
          this[CLOSED] = true;
          if (!this[EMITTED_END] && !this[DESTROYED])
            return false;
          const ret2 = super.emit("close");
          this.removeAllListeners("close");
          return ret2;
        } else if (ev === "error") {
          this[EMITTED_ERROR] = data3;
          super.emit(ERROR, data3);
          const ret2 = !this[SIGNAL] || this.listeners("error").length ? super.emit("error", data3) : false;
          this[MAYBE_EMIT_END]();
          return ret2;
        } else if (ev === "resume") {
          const ret2 = super.emit("resume");
          this[MAYBE_EMIT_END]();
          return ret2;
        } else if (ev === "finish" || ev === "prefinish") {
          const ret2 = super.emit(ev);
          this.removeAllListeners(ev);
          return ret2;
        }
        const ret = super.emit(ev, ...args);
        this[MAYBE_EMIT_END]();
        return ret;
      }
      [EMITDATA](data3) {
        for (const p3 of this[PIPES]) {
          if (p3.dest.write(data3) === false)
            this.pause();
        }
        const ret = this[DISCARDED] ? false : super.emit("data", data3);
        this[MAYBE_EMIT_END]();
        return ret;
      }
      [EMITEND]() {
        if (this[EMITTED_END])
          return false;
        this[EMITTED_END] = true;
        this.readable = false;
        return this[ASYNC] ? (defer(() => this[EMITEND2]()), true) : this[EMITEND2]();
      }
      [EMITEND2]() {
        if (this[DECODER]) {
          const data3 = this[DECODER].end();
          if (data3) {
            for (const p3 of this[PIPES]) {
              p3.dest.write(data3);
            }
            if (!this[DISCARDED])
              super.emit("data", data3);
          }
        }
        for (const p3 of this[PIPES]) {
          p3.end();
        }
        const ret = super.emit("end");
        this.removeAllListeners("end");
        return ret;
      }
      /**
       * Return a Promise that resolves to an array of all emitted data once
       * the stream ends.
       */
      async collect() {
        const buf = Object.assign([], {
          dataLength: 0
        });
        if (!this[OBJECTMODE])
          buf.dataLength = 0;
        const p3 = this.promise();
        this.on("data", (c3) => {
          buf.push(c3);
          if (!this[OBJECTMODE])
            buf.dataLength += c3.length;
        });
        await p3;
        return buf;
      }
      /**
       * Return a Promise that resolves to the concatenation of all emitted data
       * once the stream ends.
       *
       * Not allowed on objectMode streams.
       */
      async concat() {
        if (this[OBJECTMODE]) {
          throw new Error("cannot concat in objectMode");
        }
        const buf = await this.collect();
        return this[ENCODING] ? buf.join("") : Buffer.concat(buf, buf.dataLength);
      }
      /**
       * Return a void Promise that resolves once the stream ends.
       */
      async promise() {
        return new Promise((resolve13, reject) => {
          this.on(DESTROYED, () => reject(new Error("stream destroyed")));
          this.on("error", (er) => reject(er));
          this.on("end", () => resolve13());
        });
      }
      /**
       * Asynchronous `for await of` iteration.
       *
       * This will continue emitting all chunks until the stream terminates.
       */
      [Symbol.asyncIterator]() {
        this[DISCARDED] = false;
        let stopped = false;
        const stop = /* @__PURE__ */ __name(async () => {
          this.pause();
          stopped = true;
          return { value: void 0, done: true };
        }, "stop");
        const next = /* @__PURE__ */ __name(() => {
          if (stopped)
            return stop();
          const res = this.read();
          if (res !== null)
            return Promise.resolve({ done: false, value: res });
          if (this[EOF])
            return stop();
          let resolve13;
          let reject;
          const onerr = /* @__PURE__ */ __name((er) => {
            this.off("data", ondata);
            this.off("end", onend);
            this.off(DESTROYED, ondestroy);
            stop();
            reject(er);
          }, "onerr");
          const ondata = /* @__PURE__ */ __name((value) => {
            this.off("error", onerr);
            this.off("end", onend);
            this.off(DESTROYED, ondestroy);
            this.pause();
            resolve13({ value, done: !!this[EOF] });
          }, "ondata");
          const onend = /* @__PURE__ */ __name(() => {
            this.off("error", onerr);
            this.off("data", ondata);
            this.off(DESTROYED, ondestroy);
            stop();
            resolve13({ done: true, value: void 0 });
          }, "onend");
          const ondestroy = /* @__PURE__ */ __name(() => onerr(new Error("stream destroyed")), "ondestroy");
          return new Promise((res2, rej) => {
            reject = rej;
            resolve13 = res2;
            this.once(DESTROYED, ondestroy);
            this.once("error", onerr);
            this.once("end", onend);
            this.once("data", ondata);
          });
        }, "next");
        return {
          next,
          throw: stop,
          return: stop,
          [Symbol.asyncIterator]() {
            return this;
          }
        };
      }
      /**
       * Synchronous `for of` iteration.
       *
       * The iteration will terminate when the internal buffer runs out, even
       * if the stream has not yet terminated.
       */
      [Symbol.iterator]() {
        this[DISCARDED] = false;
        let stopped = false;
        const stop = /* @__PURE__ */ __name(() => {
          this.pause();
          this.off(ERROR, stop);
          this.off(DESTROYED, stop);
          this.off("end", stop);
          stopped = true;
          return { done: true, value: void 0 };
        }, "stop");
        const next = /* @__PURE__ */ __name(() => {
          if (stopped)
            return stop();
          const value = this.read();
          return value === null ? stop() : { done: false, value };
        }, "next");
        this.once("end", stop);
        this.once(ERROR, stop);
        this.once(DESTROYED, stop);
        return {
          next,
          throw: stop,
          return: stop,
          [Symbol.iterator]() {
            return this;
          }
        };
      }
      /**
       * Destroy a stream, preventing it from being used for any further purpose.
       *
       * If the stream has a `close()` method, then it will be called on
       * destruction.
       *
       * After destruction, any attempt to write data, read data, or emit most
       * events will be ignored.
       *
       * If an error argument is provided, then it will be emitted in an
       * 'error' event.
       */
      destroy(er) {
        if (this[DESTROYED]) {
          if (er)
            this.emit("error", er);
          else
            this.emit(DESTROYED);
          return this;
        }
        this[DESTROYED] = true;
        this[DISCARDED] = true;
        this[BUFFER].length = 0;
        this[BUFFERLENGTH] = 0;
        const wc = this;
        if (typeof wc.close === "function" && !this[CLOSED])
          wc.close();
        if (er)
          this.emit("error", er);
        else
          this.emit(DESTROYED);
        return this;
      }
      /**
       * Alias for {@link isStream}
       *
       * Former export location, maintained for backwards compatibility.
       *
       * @deprecated
       */
      static get isStream() {
        return isStream;
      }
    };
  }
});

// ../../node_modules/glob/node_modules/path-scurry/dist/esm/index.js
var import_node_path, import_node_url, import_fs, actualFS, import_promises, realpathSync, defaultFS, fsFromOption, uncDriveRegexp, uncToDrive, eitherSep, UNKNOWN, IFIFO, IFCHR, IFDIR, IFBLK, IFREG, IFLNK, IFSOCK, IFMT, IFMT_UNKNOWN, READDIR_CALLED, LSTAT_CALLED, ENOTDIR, ENOENT, ENOREADLINK, ENOREALPATH, ENOCHILD, TYPEMASK, entToType, normalizeCache, normalize, normalizeNocaseCache, normalizeNocase, ResolveCache, ChildrenCache, setAsCwd, PathBase, PathWin32, PathPosix, PathScurryBase, PathScurryWin32, PathScurryPosix, PathScurryDarwin, Path, PathScurry;
var init_esm6 = __esm({
  "../../node_modules/glob/node_modules/path-scurry/dist/esm/index.js"() {
    init_esm4();
    import_node_path = require("node:path");
    import_node_url = require("node:url");
    import_fs = require("fs");
    actualFS = __toESM(require("node:fs"), 1);
    import_promises = require("node:fs/promises");
    init_esm5();
    realpathSync = import_fs.realpathSync.native;
    defaultFS = {
      lstatSync: import_fs.lstatSync,
      readdir: import_fs.readdir,
      readdirSync: import_fs.readdirSync,
      readlinkSync: import_fs.readlinkSync,
      realpathSync,
      promises: {
        lstat: import_promises.lstat,
        readdir: import_promises.readdir,
        readlink: import_promises.readlink,
        realpath: import_promises.realpath
      }
    };
    fsFromOption = /* @__PURE__ */ __name((fsOption) => !fsOption || fsOption === defaultFS || fsOption === actualFS ? defaultFS : {
      ...defaultFS,
      ...fsOption,
      promises: {
        ...defaultFS.promises,
        ...fsOption.promises || {}
      }
    }, "fsFromOption");
    uncDriveRegexp = /^\\\\\?\\([a-z]:)\\?$/i;
    uncToDrive = /* @__PURE__ */ __name((rootPath) => rootPath.replace(/\//g, "\\").replace(uncDriveRegexp, "$1\\"), "uncToDrive");
    eitherSep = /[\\\/]/;
    UNKNOWN = 0;
    IFIFO = 1;
    IFCHR = 2;
    IFDIR = 4;
    IFBLK = 6;
    IFREG = 8;
    IFLNK = 10;
    IFSOCK = 12;
    IFMT = 15;
    IFMT_UNKNOWN = ~IFMT;
    READDIR_CALLED = 16;
    LSTAT_CALLED = 32;
    ENOTDIR = 64;
    ENOENT = 128;
    ENOREADLINK = 256;
    ENOREALPATH = 512;
    ENOCHILD = ENOTDIR | ENOENT | ENOREALPATH;
    TYPEMASK = 1023;
    entToType = /* @__PURE__ */ __name((s3) => s3.isFile() ? IFREG : s3.isDirectory() ? IFDIR : s3.isSymbolicLink() ? IFLNK : s3.isCharacterDevice() ? IFCHR : s3.isBlockDevice() ? IFBLK : s3.isSocket() ? IFSOCK : s3.isFIFO() ? IFIFO : UNKNOWN, "entToType");
    normalizeCache = /* @__PURE__ */ new Map();
    normalize = /* @__PURE__ */ __name((s3) => {
      const c3 = normalizeCache.get(s3);
      if (c3)
        return c3;
      const n3 = s3.normalize("NFKD");
      normalizeCache.set(s3, n3);
      return n3;
    }, "normalize");
    normalizeNocaseCache = /* @__PURE__ */ new Map();
    normalizeNocase = /* @__PURE__ */ __name((s3) => {
      const c3 = normalizeNocaseCache.get(s3);
      if (c3)
        return c3;
      const n3 = normalize(s3.toLowerCase());
      normalizeNocaseCache.set(s3, n3);
      return n3;
    }, "normalizeNocase");
    ResolveCache = class extends LRUCache {
      static {
        __name(this, "ResolveCache");
      }
      constructor() {
        super({ max: 256 });
      }
    };
    ChildrenCache = class extends LRUCache {
      static {
        __name(this, "ChildrenCache");
      }
      constructor(maxSize = 16 * 1024) {
        super({
          maxSize,
          // parent + children
          sizeCalculation: /* @__PURE__ */ __name((a3) => a3.length + 1, "sizeCalculation")
        });
      }
    };
    setAsCwd = Symbol("PathScurry setAsCwd");
    PathBase = class {
      static {
        __name(this, "PathBase");
      }
      /**
       * the basename of this path
       *
       * **Important**: *always* test the path name against any test string
       * usingthe {@link isNamed} method, and not by directly comparing this
       * string. Otherwise, unicode path strings that the system sees as identical
       * will not be properly treated as the same path, leading to incorrect
       * behavior and possible security issues.
       */
      name;
      /**
       * the Path entry corresponding to the path root.
       *
       * @internal
       */
      root;
      /**
       * All roots found within the current PathScurry family
       *
       * @internal
       */
      roots;
      /**
       * a reference to the parent path, or undefined in the case of root entries
       *
       * @internal
       */
      parent;
      /**
       * boolean indicating whether paths are compared case-insensitively
       * @internal
       */
      nocase;
      /**
       * boolean indicating that this path is the current working directory
       * of the PathScurry collection that contains it.
       */
      isCWD = false;
      // potential default fs override
      #fs;
      // Stats fields
      #dev;
      get dev() {
        return this.#dev;
      }
      #mode;
      get mode() {
        return this.#mode;
      }
      #nlink;
      get nlink() {
        return this.#nlink;
      }
      #uid;
      get uid() {
        return this.#uid;
      }
      #gid;
      get gid() {
        return this.#gid;
      }
      #rdev;
      get rdev() {
        return this.#rdev;
      }
      #blksize;
      get blksize() {
        return this.#blksize;
      }
      #ino;
      get ino() {
        return this.#ino;
      }
      #size;
      get size() {
        return this.#size;
      }
      #blocks;
      get blocks() {
        return this.#blocks;
      }
      #atimeMs;
      get atimeMs() {
        return this.#atimeMs;
      }
      #mtimeMs;
      get mtimeMs() {
        return this.#mtimeMs;
      }
      #ctimeMs;
      get ctimeMs() {
        return this.#ctimeMs;
      }
      #birthtimeMs;
      get birthtimeMs() {
        return this.#birthtimeMs;
      }
      #atime;
      get atime() {
        return this.#atime;
      }
      #mtime;
      get mtime() {
        return this.#mtime;
      }
      #ctime;
      get ctime() {
        return this.#ctime;
      }
      #birthtime;
      get birthtime() {
        return this.#birthtime;
      }
      #matchName;
      #depth;
      #fullpath;
      #fullpathPosix;
      #relative;
      #relativePosix;
      #type;
      #children;
      #linkTarget;
      #realpath;
      /**
       * This property is for compatibility with the Dirent class as of
       * Node v20, where Dirent['parentPath'] refers to the path of the
       * directory that was passed to readdir. For root entries, it's the path
       * to the entry itself.
       */
      get parentPath() {
        return (this.parent || this).fullpath();
      }
      /**
       * Deprecated alias for Dirent['parentPath'] Somewhat counterintuitively,
       * this property refers to the *parent* path, not the path object itself.
       *
       * @deprecated
       */
      get path() {
        return this.parentPath;
      }
      /**
       * Do not create new Path objects directly.  They should always be accessed
       * via the PathScurry class or other methods on the Path class.
       *
       * @internal
       */
      constructor(name, type = UNKNOWN, root, roots, nocase, children, opts) {
        this.name = name;
        this.#matchName = nocase ? normalizeNocase(name) : normalize(name);
        this.#type = type & TYPEMASK;
        this.nocase = nocase;
        this.roots = roots;
        this.root = root || this;
        this.#children = children;
        this.#fullpath = opts.fullpath;
        this.#relative = opts.relative;
        this.#relativePosix = opts.relativePosix;
        this.parent = opts.parent;
        if (this.parent) {
          this.#fs = this.parent.#fs;
        } else {
          this.#fs = fsFromOption(opts.fs);
        }
      }
      /**
       * Returns the depth of the Path object from its root.
       *
       * For example, a path at `/foo/bar` would have a depth of 2.
       */
      depth() {
        if (this.#depth !== void 0)
          return this.#depth;
        if (!this.parent)
          return this.#depth = 0;
        return this.#depth = this.parent.depth() + 1;
      }
      /**
       * @internal
       */
      childrenCache() {
        return this.#children;
      }
      /**
       * Get the Path object referenced by the string path, resolved from this Path
       */
      resolve(path38) {
        if (!path38) {
          return this;
        }
        const rootPath = this.getRootString(path38);
        const dir = path38.substring(rootPath.length);
        const dirParts = dir.split(this.splitSep);
        const result2 = rootPath ? this.getRoot(rootPath).#resolveParts(dirParts) : this.#resolveParts(dirParts);
        return result2;
      }
      #resolveParts(dirParts) {
        let p3 = this;
        for (const part of dirParts) {
          p3 = p3.child(part);
        }
        return p3;
      }
      /**
       * Returns the cached children Path objects, if still available.  If they
       * have fallen out of the cache, then returns an empty array, and resets the
       * READDIR_CALLED bit, so that future calls to readdir() will require an fs
       * lookup.
       *
       * @internal
       */
      children() {
        const cached4 = this.#children.get(this);
        if (cached4) {
          return cached4;
        }
        const children = Object.assign([], { provisional: 0 });
        this.#children.set(this, children);
        this.#type &= ~READDIR_CALLED;
        return children;
      }
      /**
       * Resolves a path portion and returns or creates the child Path.
       *
       * Returns `this` if pathPart is `''` or `'.'`, or `parent` if pathPart is
       * `'..'`.
       *
       * This should not be called directly.  If `pathPart` contains any path
       * separators, it will lead to unsafe undefined behavior.
       *
       * Use `Path.resolve()` instead.
       *
       * @internal
       */
      child(pathPart, opts) {
        if (pathPart === "" || pathPart === ".") {
          return this;
        }
        if (pathPart === "..") {
          return this.parent || this;
        }
        const children = this.children();
        const name = this.nocase ? normalizeNocase(pathPart) : normalize(pathPart);
        for (const p3 of children) {
          if (p3.#matchName === name) {
            return p3;
          }
        }
        const s3 = this.parent ? this.sep : "";
        const fullpath = this.#fullpath ? this.#fullpath + s3 + pathPart : void 0;
        const pchild = this.newChild(pathPart, UNKNOWN, {
          ...opts,
          parent: this,
          fullpath
        });
        if (!this.canReaddir()) {
          pchild.#type |= ENOENT;
        }
        children.push(pchild);
        return pchild;
      }
      /**
       * The relative path from the cwd. If it does not share an ancestor with
       * the cwd, then this ends up being equivalent to the fullpath()
       */
      relative() {
        if (this.isCWD)
          return "";
        if (this.#relative !== void 0) {
          return this.#relative;
        }
        const name = this.name;
        const p3 = this.parent;
        if (!p3) {
          return this.#relative = this.name;
        }
        const pv = p3.relative();
        return pv + (!pv || !p3.parent ? "" : this.sep) + name;
      }
      /**
       * The relative path from the cwd, using / as the path separator.
       * If it does not share an ancestor with
       * the cwd, then this ends up being equivalent to the fullpathPosix()
       * On posix systems, this is identical to relative().
       */
      relativePosix() {
        if (this.sep === "/")
          return this.relative();
        if (this.isCWD)
          return "";
        if (this.#relativePosix !== void 0)
          return this.#relativePosix;
        const name = this.name;
        const p3 = this.parent;
        if (!p3) {
          return this.#relativePosix = this.fullpathPosix();
        }
        const pv = p3.relativePosix();
        return pv + (!pv || !p3.parent ? "" : "/") + name;
      }
      /**
       * The fully resolved path string for this Path entry
       */
      fullpath() {
        if (this.#fullpath !== void 0) {
          return this.#fullpath;
        }
        const name = this.name;
        const p3 = this.parent;
        if (!p3) {
          return this.#fullpath = this.name;
        }
        const pv = p3.fullpath();
        const fp = pv + (!p3.parent ? "" : this.sep) + name;
        return this.#fullpath = fp;
      }
      /**
       * On platforms other than windows, this is identical to fullpath.
       *
       * On windows, this is overridden to return the forward-slash form of the
       * full UNC path.
       */
      fullpathPosix() {
        if (this.#fullpathPosix !== void 0)
          return this.#fullpathPosix;
        if (this.sep === "/")
          return this.#fullpathPosix = this.fullpath();
        if (!this.parent) {
          const p4 = this.fullpath().replace(/\\/g, "/");
          if (/^[a-z]:\//i.test(p4)) {
            return this.#fullpathPosix = `//?/${p4}`;
          } else {
            return this.#fullpathPosix = p4;
          }
        }
        const p3 = this.parent;
        const pfpp = p3.fullpathPosix();
        const fpp = pfpp + (!pfpp || !p3.parent ? "" : "/") + this.name;
        return this.#fullpathPosix = fpp;
      }
      /**
       * Is the Path of an unknown type?
       *
       * Note that we might know *something* about it if there has been a previous
       * filesystem operation, for example that it does not exist, or is not a
       * link, or whether it has child entries.
       */
      isUnknown() {
        return (this.#type & IFMT) === UNKNOWN;
      }
      isType(type) {
        return this[`is${type}`]();
      }
      getType() {
        return this.isUnknown() ? "Unknown" : this.isDirectory() ? "Directory" : this.isFile() ? "File" : this.isSymbolicLink() ? "SymbolicLink" : this.isFIFO() ? "FIFO" : this.isCharacterDevice() ? "CharacterDevice" : this.isBlockDevice() ? "BlockDevice" : (
          /* c8 ignore start */
          this.isSocket() ? "Socket" : "Unknown"
        );
      }
      /**
       * Is the Path a regular file?
       */
      isFile() {
        return (this.#type & IFMT) === IFREG;
      }
      /**
       * Is the Path a directory?
       */
      isDirectory() {
        return (this.#type & IFMT) === IFDIR;
      }
      /**
       * Is the path a character device?
       */
      isCharacterDevice() {
        return (this.#type & IFMT) === IFCHR;
      }
      /**
       * Is the path a block device?
       */
      isBlockDevice() {
        return (this.#type & IFMT) === IFBLK;
      }
      /**
       * Is the path a FIFO pipe?
       */
      isFIFO() {
        return (this.#type & IFMT) === IFIFO;
      }
      /**
       * Is the path a socket?
       */
      isSocket() {
        return (this.#type & IFMT) === IFSOCK;
      }
      /**
       * Is the path a symbolic link?
       */
      isSymbolicLink() {
        return (this.#type & IFLNK) === IFLNK;
      }
      /**
       * Return the entry if it has been subject of a successful lstat, or
       * undefined otherwise.
       *
       * Does not read the filesystem, so an undefined result *could* simply
       * mean that we haven't called lstat on it.
       */
      lstatCached() {
        return this.#type & LSTAT_CALLED ? this : void 0;
      }
      /**
       * Return the cached link target if the entry has been the subject of a
       * successful readlink, or undefined otherwise.
       *
       * Does not read the filesystem, so an undefined result *could* just mean we
       * don't have any cached data. Only use it if you are very sure that a
       * readlink() has been called at some point.
       */
      readlinkCached() {
        return this.#linkTarget;
      }
      /**
       * Returns the cached realpath target if the entry has been the subject
       * of a successful realpath, or undefined otherwise.
       *
       * Does not read the filesystem, so an undefined result *could* just mean we
       * don't have any cached data. Only use it if you are very sure that a
       * realpath() has been called at some point.
       */
      realpathCached() {
        return this.#realpath;
      }
      /**
       * Returns the cached child Path entries array if the entry has been the
       * subject of a successful readdir(), or [] otherwise.
       *
       * Does not read the filesystem, so an empty array *could* just mean we
       * don't have any cached data. Only use it if you are very sure that a
       * readdir() has been called recently enough to still be valid.
       */
      readdirCached() {
        const children = this.children();
        return children.slice(0, children.provisional);
      }
      /**
       * Return true if it's worth trying to readlink.  Ie, we don't (yet) have
       * any indication that readlink will definitely fail.
       *
       * Returns false if the path is known to not be a symlink, if a previous
       * readlink failed, or if the entry does not exist.
       */
      canReadlink() {
        if (this.#linkTarget)
          return true;
        if (!this.parent)
          return false;
        const ifmt = this.#type & IFMT;
        return !(ifmt !== UNKNOWN && ifmt !== IFLNK || this.#type & ENOREADLINK || this.#type & ENOENT);
      }
      /**
       * Return true if readdir has previously been successfully called on this
       * path, indicating that cachedReaddir() is likely valid.
       */
      calledReaddir() {
        return !!(this.#type & READDIR_CALLED);
      }
      /**
       * Returns true if the path is known to not exist. That is, a previous lstat
       * or readdir failed to verify its existence when that would have been
       * expected, or a parent entry was marked either enoent or enotdir.
       */
      isENOENT() {
        return !!(this.#type & ENOENT);
      }
      /**
       * Return true if the path is a match for the given path name.  This handles
       * case sensitivity and unicode normalization.
       *
       * Note: even on case-sensitive systems, it is **not** safe to test the
       * equality of the `.name` property to determine whether a given pathname
       * matches, due to unicode normalization mismatches.
       *
       * Always use this method instead of testing the `path.name` property
       * directly.
       */
      isNamed(n3) {
        return !this.nocase ? this.#matchName === normalize(n3) : this.#matchName === normalizeNocase(n3);
      }
      /**
       * Return the Path object corresponding to the target of a symbolic link.
       *
       * If the Path is not a symbolic link, or if the readlink call fails for any
       * reason, `undefined` is returned.
       *
       * Result is cached, and thus may be outdated if the filesystem is mutated.
       */
      async readlink() {
        const target = this.#linkTarget;
        if (target) {
          return target;
        }
        if (!this.canReadlink()) {
          return void 0;
        }
        if (!this.parent) {
          return void 0;
        }
        try {
          const read = await this.#fs.promises.readlink(this.fullpath());
          const linkTarget = (await this.parent.realpath())?.resolve(read);
          if (linkTarget) {
            return this.#linkTarget = linkTarget;
          }
        } catch (er) {
          this.#readlinkFail(er.code);
          return void 0;
        }
      }
      /**
       * Synchronous {@link PathBase.readlink}
       */
      readlinkSync() {
        const target = this.#linkTarget;
        if (target) {
          return target;
        }
        if (!this.canReadlink()) {
          return void 0;
        }
        if (!this.parent) {
          return void 0;
        }
        try {
          const read = this.#fs.readlinkSync(this.fullpath());
          const linkTarget = this.parent.realpathSync()?.resolve(read);
          if (linkTarget) {
            return this.#linkTarget = linkTarget;
          }
        } catch (er) {
          this.#readlinkFail(er.code);
          return void 0;
        }
      }
      #readdirSuccess(children) {
        this.#type |= READDIR_CALLED;
        for (let p3 = children.provisional; p3 < children.length; p3++) {
          const c3 = children[p3];
          if (c3)
            c3.#markENOENT();
        }
      }
      #markENOENT() {
        if (this.#type & ENOENT)
          return;
        this.#type = (this.#type | ENOENT) & IFMT_UNKNOWN;
        this.#markChildrenENOENT();
      }
      #markChildrenENOENT() {
        const children = this.children();
        children.provisional = 0;
        for (const p3 of children) {
          p3.#markENOENT();
        }
      }
      #markENOREALPATH() {
        this.#type |= ENOREALPATH;
        this.#markENOTDIR();
      }
      // save the information when we know the entry is not a dir
      #markENOTDIR() {
        if (this.#type & ENOTDIR)
          return;
        let t3 = this.#type;
        if ((t3 & IFMT) === IFDIR)
          t3 &= IFMT_UNKNOWN;
        this.#type = t3 | ENOTDIR;
        this.#markChildrenENOENT();
      }
      #readdirFail(code = "") {
        if (code === "ENOTDIR" || code === "EPERM") {
          this.#markENOTDIR();
        } else if (code === "ENOENT") {
          this.#markENOENT();
        } else {
          this.children().provisional = 0;
        }
      }
      #lstatFail(code = "") {
        if (code === "ENOTDIR") {
          const p3 = this.parent;
          p3.#markENOTDIR();
        } else if (code === "ENOENT") {
          this.#markENOENT();
        }
      }
      #readlinkFail(code = "") {
        let ter = this.#type;
        ter |= ENOREADLINK;
        if (code === "ENOENT")
          ter |= ENOENT;
        if (code === "EINVAL" || code === "UNKNOWN") {
          ter &= IFMT_UNKNOWN;
        }
        this.#type = ter;
        if (code === "ENOTDIR" && this.parent) {
          this.parent.#markENOTDIR();
        }
      }
      #readdirAddChild(e3, c3) {
        return this.#readdirMaybePromoteChild(e3, c3) || this.#readdirAddNewChild(e3, c3);
      }
      #readdirAddNewChild(e3, c3) {
        const type = entToType(e3);
        const child = this.newChild(e3.name, type, { parent: this });
        const ifmt = child.#type & IFMT;
        if (ifmt !== IFDIR && ifmt !== IFLNK && ifmt !== UNKNOWN) {
          child.#type |= ENOTDIR;
        }
        c3.unshift(child);
        c3.provisional++;
        return child;
      }
      #readdirMaybePromoteChild(e3, c3) {
        for (let p3 = c3.provisional; p3 < c3.length; p3++) {
          const pchild = c3[p3];
          const name = this.nocase ? normalizeNocase(e3.name) : normalize(e3.name);
          if (name !== pchild.#matchName) {
            continue;
          }
          return this.#readdirPromoteChild(e3, pchild, p3, c3);
        }
      }
      #readdirPromoteChild(e3, p3, index, c3) {
        const v6 = p3.name;
        p3.#type = p3.#type & IFMT_UNKNOWN | entToType(e3);
        if (v6 !== e3.name)
          p3.name = e3.name;
        if (index !== c3.provisional) {
          if (index === c3.length - 1)
            c3.pop();
          else
            c3.splice(index, 1);
          c3.unshift(p3);
        }
        c3.provisional++;
        return p3;
      }
      /**
       * Call lstat() on this Path, and update all known information that can be
       * determined.
       *
       * Note that unlike `fs.lstat()`, the returned value does not contain some
       * information, such as `mode`, `dev`, `nlink`, and `ino`.  If that
       * information is required, you will need to call `fs.lstat` yourself.
       *
       * If the Path refers to a nonexistent file, or if the lstat call fails for
       * any reason, `undefined` is returned.  Otherwise the updated Path object is
       * returned.
       *
       * Results are cached, and thus may be out of date if the filesystem is
       * mutated.
       */
      async lstat() {
        if ((this.#type & ENOENT) === 0) {
          try {
            this.#applyStat(await this.#fs.promises.lstat(this.fullpath()));
            return this;
          } catch (er) {
            this.#lstatFail(er.code);
          }
        }
      }
      /**
       * synchronous {@link PathBase.lstat}
       */
      lstatSync() {
        if ((this.#type & ENOENT) === 0) {
          try {
            this.#applyStat(this.#fs.lstatSync(this.fullpath()));
            return this;
          } catch (er) {
            this.#lstatFail(er.code);
          }
        }
      }
      #applyStat(st) {
        const { atime, atimeMs, birthtime, birthtimeMs, blksize, blocks, ctime, ctimeMs, dev, gid, ino, mode, mtime, mtimeMs, nlink, rdev, size, uid } = st;
        this.#atime = atime;
        this.#atimeMs = atimeMs;
        this.#birthtime = birthtime;
        this.#birthtimeMs = birthtimeMs;
        this.#blksize = blksize;
        this.#blocks = blocks;
        this.#ctime = ctime;
        this.#ctimeMs = ctimeMs;
        this.#dev = dev;
        this.#gid = gid;
        this.#ino = ino;
        this.#mode = mode;
        this.#mtime = mtime;
        this.#mtimeMs = mtimeMs;
        this.#nlink = nlink;
        this.#rdev = rdev;
        this.#size = size;
        this.#uid = uid;
        const ifmt = entToType(st);
        this.#type = this.#type & IFMT_UNKNOWN | ifmt | LSTAT_CALLED;
        if (ifmt !== UNKNOWN && ifmt !== IFDIR && ifmt !== IFLNK) {
          this.#type |= ENOTDIR;
        }
      }
      #onReaddirCB = [];
      #readdirCBInFlight = false;
      #callOnReaddirCB(children) {
        this.#readdirCBInFlight = false;
        const cbs = this.#onReaddirCB.slice();
        this.#onReaddirCB.length = 0;
        cbs.forEach((cb) => cb(null, children));
      }
      /**
       * Standard node-style callback interface to get list of directory entries.
       *
       * If the Path cannot or does not contain any children, then an empty array
       * is returned.
       *
       * Results are cached, and thus may be out of date if the filesystem is
       * mutated.
       *
       * @param cb The callback called with (er, entries).  Note that the `er`
       * param is somewhat extraneous, as all readdir() errors are handled and
       * simply result in an empty set of entries being returned.
       * @param allowZalgo Boolean indicating that immediately known results should
       * *not* be deferred with `queueMicrotask`. Defaults to `false`. Release
       * zalgo at your peril, the dark pony lord is devious and unforgiving.
       */
      readdirCB(cb, allowZalgo = false) {
        if (!this.canReaddir()) {
          if (allowZalgo)
            cb(null, []);
          else
            queueMicrotask(() => cb(null, []));
          return;
        }
        const children = this.children();
        if (this.calledReaddir()) {
          const c3 = children.slice(0, children.provisional);
          if (allowZalgo)
            cb(null, c3);
          else
            queueMicrotask(() => cb(null, c3));
          return;
        }
        this.#onReaddirCB.push(cb);
        if (this.#readdirCBInFlight) {
          return;
        }
        this.#readdirCBInFlight = true;
        const fullpath = this.fullpath();
        this.#fs.readdir(fullpath, { withFileTypes: true }, (er, entries) => {
          if (er) {
            this.#readdirFail(er.code);
            children.provisional = 0;
          } else {
            for (const e3 of entries) {
              this.#readdirAddChild(e3, children);
            }
            this.#readdirSuccess(children);
          }
          this.#callOnReaddirCB(children.slice(0, children.provisional));
          return;
        });
      }
      #asyncReaddirInFlight;
      /**
       * Return an array of known child entries.
       *
       * If the Path cannot or does not contain any children, then an empty array
       * is returned.
       *
       * Results are cached, and thus may be out of date if the filesystem is
       * mutated.
       */
      async readdir() {
        if (!this.canReaddir()) {
          return [];
        }
        const children = this.children();
        if (this.calledReaddir()) {
          return children.slice(0, children.provisional);
        }
        const fullpath = this.fullpath();
        if (this.#asyncReaddirInFlight) {
          await this.#asyncReaddirInFlight;
        } else {
          let resolve13 = /* @__PURE__ */ __name(() => {
          }, "resolve");
          this.#asyncReaddirInFlight = new Promise((res) => resolve13 = res);
          try {
            for (const e3 of await this.#fs.promises.readdir(fullpath, {
              withFileTypes: true
            })) {
              this.#readdirAddChild(e3, children);
            }
            this.#readdirSuccess(children);
          } catch (er) {
            this.#readdirFail(er.code);
            children.provisional = 0;
          }
          this.#asyncReaddirInFlight = void 0;
          resolve13();
        }
        return children.slice(0, children.provisional);
      }
      /**
       * synchronous {@link PathBase.readdir}
       */
      readdirSync() {
        if (!this.canReaddir()) {
          return [];
        }
        const children = this.children();
        if (this.calledReaddir()) {
          return children.slice(0, children.provisional);
        }
        const fullpath = this.fullpath();
        try {
          for (const e3 of this.#fs.readdirSync(fullpath, {
            withFileTypes: true
          })) {
            this.#readdirAddChild(e3, children);
          }
          this.#readdirSuccess(children);
        } catch (er) {
          this.#readdirFail(er.code);
          children.provisional = 0;
        }
        return children.slice(0, children.provisional);
      }
      canReaddir() {
        if (this.#type & ENOCHILD)
          return false;
        const ifmt = IFMT & this.#type;
        if (!(ifmt === UNKNOWN || ifmt === IFDIR || ifmt === IFLNK)) {
          return false;
        }
        return true;
      }
      shouldWalk(dirs, walkFilter) {
        return (this.#type & IFDIR) === IFDIR && !(this.#type & ENOCHILD) && !dirs.has(this) && (!walkFilter || walkFilter(this));
      }
      /**
       * Return the Path object corresponding to path as resolved
       * by realpath(3).
       *
       * If the realpath call fails for any reason, `undefined` is returned.
       *
       * Result is cached, and thus may be outdated if the filesystem is mutated.
       * On success, returns a Path object.
       */
      async realpath() {
        if (this.#realpath)
          return this.#realpath;
        if ((ENOREALPATH | ENOREADLINK | ENOENT) & this.#type)
          return void 0;
        try {
          const rp = await this.#fs.promises.realpath(this.fullpath());
          return this.#realpath = this.resolve(rp);
        } catch (_3) {
          this.#markENOREALPATH();
        }
      }
      /**
       * Synchronous {@link realpath}
       */
      realpathSync() {
        if (this.#realpath)
          return this.#realpath;
        if ((ENOREALPATH | ENOREADLINK | ENOENT) & this.#type)
          return void 0;
        try {
          const rp = this.#fs.realpathSync(this.fullpath());
          return this.#realpath = this.resolve(rp);
        } catch (_3) {
          this.#markENOREALPATH();
        }
      }
      /**
       * Internal method to mark this Path object as the scurry cwd,
       * called by {@link PathScurry#chdir}
       *
       * @internal
       */
      [setAsCwd](oldCwd) {
        if (oldCwd === this)
          return;
        oldCwd.isCWD = false;
        this.isCWD = true;
        const changed = /* @__PURE__ */ new Set([]);
        let rp = [];
        let p3 = this;
        while (p3 && p3.parent) {
          changed.add(p3);
          p3.#relative = rp.join(this.sep);
          p3.#relativePosix = rp.join("/");
          p3 = p3.parent;
          rp.push("..");
        }
        p3 = oldCwd;
        while (p3 && p3.parent && !changed.has(p3)) {
          p3.#relative = void 0;
          p3.#relativePosix = void 0;
          p3 = p3.parent;
        }
      }
    };
    PathWin32 = class _PathWin32 extends PathBase {
      static {
        __name(this, "PathWin32");
      }
      /**
       * Separator for generating path strings.
       */
      sep = "\\";
      /**
       * Separator for parsing path strings.
       */
      splitSep = eitherSep;
      /**
       * Do not create new Path objects directly.  They should always be accessed
       * via the PathScurry class or other methods on the Path class.
       *
       * @internal
       */
      constructor(name, type = UNKNOWN, root, roots, nocase, children, opts) {
        super(name, type, root, roots, nocase, children, opts);
      }
      /**
       * @internal
       */
      newChild(name, type = UNKNOWN, opts = {}) {
        return new _PathWin32(name, type, this.root, this.roots, this.nocase, this.childrenCache(), opts);
      }
      /**
       * @internal
       */
      getRootString(path38) {
        return import_node_path.win32.parse(path38).root;
      }
      /**
       * @internal
       */
      getRoot(rootPath) {
        rootPath = uncToDrive(rootPath.toUpperCase());
        if (rootPath === this.root.name) {
          return this.root;
        }
        for (const [compare2, root] of Object.entries(this.roots)) {
          if (this.sameRoot(rootPath, compare2)) {
            return this.roots[rootPath] = root;
          }
        }
        return this.roots[rootPath] = new PathScurryWin32(rootPath, this).root;
      }
      /**
       * @internal
       */
      sameRoot(rootPath, compare2 = this.root.name) {
        rootPath = rootPath.toUpperCase().replace(/\//g, "\\").replace(uncDriveRegexp, "$1\\");
        return rootPath === compare2;
      }
    };
    PathPosix = class _PathPosix extends PathBase {
      static {
        __name(this, "PathPosix");
      }
      /**
       * separator for parsing path strings
       */
      splitSep = "/";
      /**
       * separator for generating path strings
       */
      sep = "/";
      /**
       * Do not create new Path objects directly.  They should always be accessed
       * via the PathScurry class or other methods on the Path class.
       *
       * @internal
       */
      constructor(name, type = UNKNOWN, root, roots, nocase, children, opts) {
        super(name, type, root, roots, nocase, children, opts);
      }
      /**
       * @internal
       */
      getRootString(path38) {
        return path38.startsWith("/") ? "/" : "";
      }
      /**
       * @internal
       */
      getRoot(_rootPath) {
        return this.root;
      }
      /**
       * @internal
       */
      newChild(name, type = UNKNOWN, opts = {}) {
        return new _PathPosix(name, type, this.root, this.roots, this.nocase, this.childrenCache(), opts);
      }
    };
    PathScurryBase = class {
      static {
        __name(this, "PathScurryBase");
      }
      /**
       * The root Path entry for the current working directory of this Scurry
       */
      root;
      /**
       * The string path for the root of this Scurry's current working directory
       */
      rootPath;
      /**
       * A collection of all roots encountered, referenced by rootPath
       */
      roots;
      /**
       * The Path entry corresponding to this PathScurry's current working directory.
       */
      cwd;
      #resolveCache;
      #resolvePosixCache;
      #children;
      /**
       * Perform path comparisons case-insensitively.
       *
       * Defaults true on Darwin and Windows systems, false elsewhere.
       */
      nocase;
      #fs;
      /**
       * This class should not be instantiated directly.
       *
       * Use PathScurryWin32, PathScurryDarwin, PathScurryPosix, or PathScurry
       *
       * @internal
       */
      constructor(cwd = process.cwd(), pathImpl, sep5, { nocase, childrenCacheSize = 16 * 1024, fs: fs43 = defaultFS } = {}) {
        this.#fs = fsFromOption(fs43);
        if (cwd instanceof URL || cwd.startsWith("file://")) {
          cwd = (0, import_node_url.fileURLToPath)(cwd);
        }
        const cwdPath = pathImpl.resolve(cwd);
        this.roots = /* @__PURE__ */ Object.create(null);
        this.rootPath = this.parseRootPath(cwdPath);
        this.#resolveCache = new ResolveCache();
        this.#resolvePosixCache = new ResolveCache();
        this.#children = new ChildrenCache(childrenCacheSize);
        const split2 = cwdPath.substring(this.rootPath.length).split(sep5);
        if (split2.length === 1 && !split2[0]) {
          split2.pop();
        }
        if (nocase === void 0) {
          throw new TypeError("must provide nocase setting to PathScurryBase ctor");
        }
        this.nocase = nocase;
        this.root = this.newRoot(this.#fs);
        this.roots[this.rootPath] = this.root;
        let prev = this.root;
        let len = split2.length - 1;
        const joinSep = pathImpl.sep;
        let abs = this.rootPath;
        let sawFirst = false;
        for (const part of split2) {
          const l3 = len--;
          prev = prev.child(part, {
            relative: new Array(l3).fill("..").join(joinSep),
            relativePosix: new Array(l3).fill("..").join("/"),
            fullpath: abs += (sawFirst ? "" : joinSep) + part
          });
          sawFirst = true;
        }
        this.cwd = prev;
      }
      /**
       * Get the depth of a provided path, string, or the cwd
       */
      depth(path38 = this.cwd) {
        if (typeof path38 === "string") {
          path38 = this.cwd.resolve(path38);
        }
        return path38.depth();
      }
      /**
       * Return the cache of child entries.  Exposed so subclasses can create
       * child Path objects in a platform-specific way.
       *
       * @internal
       */
      childrenCache() {
        return this.#children;
      }
      /**
       * Resolve one or more path strings to a resolved string
       *
       * Same interface as require('path').resolve.
       *
       * Much faster than path.resolve() when called multiple times for the same
       * path, because the resolved Path objects are cached.  Much slower
       * otherwise.
       */
      resolve(...paths) {
        let r3 = "";
        for (let i3 = paths.length - 1; i3 >= 0; i3--) {
          const p3 = paths[i3];
          if (!p3 || p3 === ".")
            continue;
          r3 = r3 ? `${p3}/${r3}` : p3;
          if (this.isAbsolute(p3)) {
            break;
          }
        }
        const cached4 = this.#resolveCache.get(r3);
        if (cached4 !== void 0) {
          return cached4;
        }
        const result2 = this.cwd.resolve(r3).fullpath();
        this.#resolveCache.set(r3, result2);
        return result2;
      }
      /**
       * Resolve one or more path strings to a resolved string, returning
       * the posix path.  Identical to .resolve() on posix systems, but on
       * windows will return a forward-slash separated UNC path.
       *
       * Same interface as require('path').resolve.
       *
       * Much faster than path.resolve() when called multiple times for the same
       * path, because the resolved Path objects are cached.  Much slower
       * otherwise.
       */
      resolvePosix(...paths) {
        let r3 = "";
        for (let i3 = paths.length - 1; i3 >= 0; i3--) {
          const p3 = paths[i3];
          if (!p3 || p3 === ".")
            continue;
          r3 = r3 ? `${p3}/${r3}` : p3;
          if (this.isAbsolute(p3)) {
            break;
          }
        }
        const cached4 = this.#resolvePosixCache.get(r3);
        if (cached4 !== void 0) {
          return cached4;
        }
        const result2 = this.cwd.resolve(r3).fullpathPosix();
        this.#resolvePosixCache.set(r3, result2);
        return result2;
      }
      /**
       * find the relative path from the cwd to the supplied path string or entry
       */
      relative(entry = this.cwd) {
        if (typeof entry === "string") {
          entry = this.cwd.resolve(entry);
        }
        return entry.relative();
      }
      /**
       * find the relative path from the cwd to the supplied path string or
       * entry, using / as the path delimiter, even on Windows.
       */
      relativePosix(entry = this.cwd) {
        if (typeof entry === "string") {
          entry = this.cwd.resolve(entry);
        }
        return entry.relativePosix();
      }
      /**
       * Return the basename for the provided string or Path object
       */
      basename(entry = this.cwd) {
        if (typeof entry === "string") {
          entry = this.cwd.resolve(entry);
        }
        return entry.name;
      }
      /**
       * Return the dirname for the provided string or Path object
       */
      dirname(entry = this.cwd) {
        if (typeof entry === "string") {
          entry = this.cwd.resolve(entry);
        }
        return (entry.parent || entry).fullpath();
      }
      async readdir(entry = this.cwd, opts = {
        withFileTypes: true
      }) {
        if (typeof entry === "string") {
          entry = this.cwd.resolve(entry);
        } else if (!(entry instanceof PathBase)) {
          opts = entry;
          entry = this.cwd;
        }
        const { withFileTypes } = opts;
        if (!entry.canReaddir()) {
          return [];
        } else {
          const p3 = await entry.readdir();
          return withFileTypes ? p3 : p3.map((e3) => e3.name);
        }
      }
      readdirSync(entry = this.cwd, opts = {
        withFileTypes: true
      }) {
        if (typeof entry === "string") {
          entry = this.cwd.resolve(entry);
        } else if (!(entry instanceof PathBase)) {
          opts = entry;
          entry = this.cwd;
        }
        const { withFileTypes = true } = opts;
        if (!entry.canReaddir()) {
          return [];
        } else if (withFileTypes) {
          return entry.readdirSync();
        } else {
          return entry.readdirSync().map((e3) => e3.name);
        }
      }
      /**
       * Call lstat() on the string or Path object, and update all known
       * information that can be determined.
       *
       * Note that unlike `fs.lstat()`, the returned value does not contain some
       * information, such as `mode`, `dev`, `nlink`, and `ino`.  If that
       * information is required, you will need to call `fs.lstat` yourself.
       *
       * If the Path refers to a nonexistent file, or if the lstat call fails for
       * any reason, `undefined` is returned.  Otherwise the updated Path object is
       * returned.
       *
       * Results are cached, and thus may be out of date if the filesystem is
       * mutated.
       */
      async lstat(entry = this.cwd) {
        if (typeof entry === "string") {
          entry = this.cwd.resolve(entry);
        }
        return entry.lstat();
      }
      /**
       * synchronous {@link PathScurryBase.lstat}
       */
      lstatSync(entry = this.cwd) {
        if (typeof entry === "string") {
          entry = this.cwd.resolve(entry);
        }
        return entry.lstatSync();
      }
      async readlink(entry = this.cwd, { withFileTypes } = {
        withFileTypes: false
      }) {
        if (typeof entry === "string") {
          entry = this.cwd.resolve(entry);
        } else if (!(entry instanceof PathBase)) {
          withFileTypes = entry.withFileTypes;
          entry = this.cwd;
        }
        const e3 = await entry.readlink();
        return withFileTypes ? e3 : e3?.fullpath();
      }
      readlinkSync(entry = this.cwd, { withFileTypes } = {
        withFileTypes: false
      }) {
        if (typeof entry === "string") {
          entry = this.cwd.resolve(entry);
        } else if (!(entry instanceof PathBase)) {
          withFileTypes = entry.withFileTypes;
          entry = this.cwd;
        }
        const e3 = entry.readlinkSync();
        return withFileTypes ? e3 : e3?.fullpath();
      }
      async realpath(entry = this.cwd, { withFileTypes } = {
        withFileTypes: false
      }) {
        if (typeof entry === "string") {
          entry = this.cwd.resolve(entry);
        } else if (!(entry instanceof PathBase)) {
          withFileTypes = entry.withFileTypes;
          entry = this.cwd;
        }
        const e3 = await entry.realpath();
        return withFileTypes ? e3 : e3?.fullpath();
      }
      realpathSync(entry = this.cwd, { withFileTypes } = {
        withFileTypes: false
      }) {
        if (typeof entry === "string") {
          entry = this.cwd.resolve(entry);
        } else if (!(entry instanceof PathBase)) {
          withFileTypes = entry.withFileTypes;
          entry = this.cwd;
        }
        const e3 = entry.realpathSync();
        return withFileTypes ? e3 : e3?.fullpath();
      }
      async walk(entry = this.cwd, opts = {}) {
        if (typeof entry === "string") {
          entry = this.cwd.resolve(entry);
        } else if (!(entry instanceof PathBase)) {
          opts = entry;
          entry = this.cwd;
        }
        const { withFileTypes = true, follow = false, filter: filter4, walkFilter } = opts;
        const results = [];
        if (!filter4 || filter4(entry)) {
          results.push(withFileTypes ? entry : entry.fullpath());
        }
        const dirs = /* @__PURE__ */ new Set();
        const walk = /* @__PURE__ */ __name((dir, cb) => {
          dirs.add(dir);
          dir.readdirCB((er, entries) => {
            if (er) {
              return cb(er);
            }
            let len = entries.length;
            if (!len)
              return cb();
            const next = /* @__PURE__ */ __name(() => {
              if (--len === 0) {
                cb();
              }
            }, "next");
            for (const e3 of entries) {
              if (!filter4 || filter4(e3)) {
                results.push(withFileTypes ? e3 : e3.fullpath());
              }
              if (follow && e3.isSymbolicLink()) {
                e3.realpath().then((r3) => r3?.isUnknown() ? r3.lstat() : r3).then((r3) => r3?.shouldWalk(dirs, walkFilter) ? walk(r3, next) : next());
              } else {
                if (e3.shouldWalk(dirs, walkFilter)) {
                  walk(e3, next);
                } else {
                  next();
                }
              }
            }
          }, true);
        }, "walk");
        const start = entry;
        return new Promise((res, rej) => {
          walk(start, (er) => {
            if (er)
              return rej(er);
            res(results);
          });
        });
      }
      walkSync(entry = this.cwd, opts = {}) {
        if (typeof entry === "string") {
          entry = this.cwd.resolve(entry);
        } else if (!(entry instanceof PathBase)) {
          opts = entry;
          entry = this.cwd;
        }
        const { withFileTypes = true, follow = false, filter: filter4, walkFilter } = opts;
        const results = [];
        if (!filter4 || filter4(entry)) {
          results.push(withFileTypes ? entry : entry.fullpath());
        }
        const dirs = /* @__PURE__ */ new Set([entry]);
        for (const dir of dirs) {
          const entries = dir.readdirSync();
          for (const e3 of entries) {
            if (!filter4 || filter4(e3)) {
              results.push(withFileTypes ? e3 : e3.fullpath());
            }
            let r3 = e3;
            if (e3.isSymbolicLink()) {
              if (!(follow && (r3 = e3.realpathSync())))
                continue;
              if (r3.isUnknown())
                r3.lstatSync();
            }
            if (r3.shouldWalk(dirs, walkFilter)) {
              dirs.add(r3);
            }
          }
        }
        return results;
      }
      /**
       * Support for `for await`
       *
       * Alias for {@link PathScurryBase.iterate}
       *
       * Note: As of Node 19, this is very slow, compared to other methods of
       * walking.  Consider using {@link PathScurryBase.stream} if memory overhead
       * and backpressure are concerns, or {@link PathScurryBase.walk} if not.
       */
      [Symbol.asyncIterator]() {
        return this.iterate();
      }
      iterate(entry = this.cwd, options = {}) {
        if (typeof entry === "string") {
          entry = this.cwd.resolve(entry);
        } else if (!(entry instanceof PathBase)) {
          options = entry;
          entry = this.cwd;
        }
        return this.stream(entry, options)[Symbol.asyncIterator]();
      }
      /**
       * Iterating over a PathScurry performs a synchronous walk.
       *
       * Alias for {@link PathScurryBase.iterateSync}
       */
      [Symbol.iterator]() {
        return this.iterateSync();
      }
      *iterateSync(entry = this.cwd, opts = {}) {
        if (typeof entry === "string") {
          entry = this.cwd.resolve(entry);
        } else if (!(entry instanceof PathBase)) {
          opts = entry;
          entry = this.cwd;
        }
        const { withFileTypes = true, follow = false, filter: filter4, walkFilter } = opts;
        if (!filter4 || filter4(entry)) {
          yield withFileTypes ? entry : entry.fullpath();
        }
        const dirs = /* @__PURE__ */ new Set([entry]);
        for (const dir of dirs) {
          const entries = dir.readdirSync();
          for (const e3 of entries) {
            if (!filter4 || filter4(e3)) {
              yield withFileTypes ? e3 : e3.fullpath();
            }
            let r3 = e3;
            if (e3.isSymbolicLink()) {
              if (!(follow && (r3 = e3.realpathSync())))
                continue;
              if (r3.isUnknown())
                r3.lstatSync();
            }
            if (r3.shouldWalk(dirs, walkFilter)) {
              dirs.add(r3);
            }
          }
        }
      }
      stream(entry = this.cwd, opts = {}) {
        if (typeof entry === "string") {
          entry = this.cwd.resolve(entry);
        } else if (!(entry instanceof PathBase)) {
          opts = entry;
          entry = this.cwd;
        }
        const { withFileTypes = true, follow = false, filter: filter4, walkFilter } = opts;
        const results = new Minipass({ objectMode: true });
        if (!filter4 || filter4(entry)) {
          results.write(withFileTypes ? entry : entry.fullpath());
        }
        const dirs = /* @__PURE__ */ new Set();
        const queue = [entry];
        let processing = 0;
        const process3 = /* @__PURE__ */ __name(() => {
          let paused = false;
          while (!paused) {
            const dir = queue.shift();
            if (!dir) {
              if (processing === 0)
                results.end();
              return;
            }
            processing++;
            dirs.add(dir);
            const onReaddir = /* @__PURE__ */ __name((er, entries, didRealpaths = false) => {
              if (er)
                return results.emit("error", er);
              if (follow && !didRealpaths) {
                const promises3 = [];
                for (const e3 of entries) {
                  if (e3.isSymbolicLink()) {
                    promises3.push(e3.realpath().then((r3) => r3?.isUnknown() ? r3.lstat() : r3));
                  }
                }
                if (promises3.length) {
                  Promise.all(promises3).then(() => onReaddir(null, entries, true));
                  return;
                }
              }
              for (const e3 of entries) {
                if (e3 && (!filter4 || filter4(e3))) {
                  if (!results.write(withFileTypes ? e3 : e3.fullpath())) {
                    paused = true;
                  }
                }
              }
              processing--;
              for (const e3 of entries) {
                const r3 = e3.realpathCached() || e3;
                if (r3.shouldWalk(dirs, walkFilter)) {
                  queue.push(r3);
                }
              }
              if (paused && !results.flowing) {
                results.once("drain", process3);
              } else if (!sync2) {
                process3();
              }
            }, "onReaddir");
            let sync2 = true;
            dir.readdirCB(onReaddir, true);
            sync2 = false;
          }
        }, "process");
        process3();
        return results;
      }
      streamSync(entry = this.cwd, opts = {}) {
        if (typeof entry === "string") {
          entry = this.cwd.resolve(entry);
        } else if (!(entry instanceof PathBase)) {
          opts = entry;
          entry = this.cwd;
        }
        const { withFileTypes = true, follow = false, filter: filter4, walkFilter } = opts;
        const results = new Minipass({ objectMode: true });
        const dirs = /* @__PURE__ */ new Set();
        if (!filter4 || filter4(entry)) {
          results.write(withFileTypes ? entry : entry.fullpath());
        }
        const queue = [entry];
        let processing = 0;
        const process3 = /* @__PURE__ */ __name(() => {
          let paused = false;
          while (!paused) {
            const dir = queue.shift();
            if (!dir) {
              if (processing === 0)
                results.end();
              return;
            }
            processing++;
            dirs.add(dir);
            const entries = dir.readdirSync();
            for (const e3 of entries) {
              if (!filter4 || filter4(e3)) {
                if (!results.write(withFileTypes ? e3 : e3.fullpath())) {
                  paused = true;
                }
              }
            }
            processing--;
            for (const e3 of entries) {
              let r3 = e3;
              if (e3.isSymbolicLink()) {
                if (!(follow && (r3 = e3.realpathSync())))
                  continue;
                if (r3.isUnknown())
                  r3.lstatSync();
              }
              if (r3.shouldWalk(dirs, walkFilter)) {
                queue.push(r3);
              }
            }
          }
          if (paused && !results.flowing)
            results.once("drain", process3);
        }, "process");
        process3();
        return results;
      }
      chdir(path38 = this.cwd) {
        const oldCwd = this.cwd;
        this.cwd = typeof path38 === "string" ? this.cwd.resolve(path38) : path38;
        this.cwd[setAsCwd](oldCwd);
      }
    };
    PathScurryWin32 = class extends PathScurryBase {
      static {
        __name(this, "PathScurryWin32");
      }
      /**
       * separator for generating path strings
       */
      sep = "\\";
      constructor(cwd = process.cwd(), opts = {}) {
        const { nocase = true } = opts;
        super(cwd, import_node_path.win32, "\\", { ...opts, nocase });
        this.nocase = nocase;
        for (let p3 = this.cwd; p3; p3 = p3.parent) {
          p3.nocase = this.nocase;
        }
      }
      /**
       * @internal
       */
      parseRootPath(dir) {
        return import_node_path.win32.parse(dir).root.toUpperCase();
      }
      /**
       * @internal
       */
      newRoot(fs43) {
        return new PathWin32(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs43 });
      }
      /**
       * Return true if the provided path string is an absolute path
       */
      isAbsolute(p3) {
        return p3.startsWith("/") || p3.startsWith("\\") || /^[a-z]:(\/|\\)/i.test(p3);
      }
    };
    PathScurryPosix = class extends PathScurryBase {
      static {
        __name(this, "PathScurryPosix");
      }
      /**
       * separator for generating path strings
       */
      sep = "/";
      constructor(cwd = process.cwd(), opts = {}) {
        const { nocase = false } = opts;
        super(cwd, import_node_path.posix, "/", { ...opts, nocase });
        this.nocase = nocase;
      }
      /**
       * @internal
       */
      parseRootPath(_dir) {
        return "/";
      }
      /**
       * @internal
       */
      newRoot(fs43) {
        return new PathPosix(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs43 });
      }
      /**
       * Return true if the provided path string is an absolute path
       */
      isAbsolute(p3) {
        return p3.startsWith("/");
      }
    };
    PathScurryDarwin = class extends PathScurryPosix {
      static {
        __name(this, "PathScurryDarwin");
      }
      constructor(cwd = process.cwd(), opts = {}) {
        const { nocase = true } = opts;
        super(cwd, { ...opts, nocase });
      }
    };
    Path = process.platform === "win32" ? PathWin32 : PathPosix;
    PathScurry = process.platform === "win32" ? PathScurryWin32 : process.platform === "darwin" ? PathScurryDarwin : PathScurryPosix;
  }
});

// ../../node_modules/glob/dist/esm/pattern.js
var isPatternList, isGlobList, Pattern;
var init_pattern = __esm({
  "../../node_modules/glob/dist/esm/pattern.js"() {
    init_esm3();
    isPatternList = /* @__PURE__ */ __name((pl) => pl.length >= 1, "isPatternList");
    isGlobList = /* @__PURE__ */ __name((gl) => gl.length >= 1, "isGlobList");
    Pattern = class _Pattern {
      static {
        __name(this, "Pattern");
      }
      #patternList;
      #globList;
      #index;
      length;
      #platform;
      #rest;
      #globString;
      #isDrive;
      #isUNC;
      #isAbsolute;
      #followGlobstar = true;
      constructor(patternList, globList, index, platform3) {
        if (!isPatternList(patternList)) {
          throw new TypeError("empty pattern list");
        }
        if (!isGlobList(globList)) {
          throw new TypeError("empty glob list");
        }
        if (globList.length !== patternList.length) {
          throw new TypeError("mismatched pattern list and glob list lengths");
        }
        this.length = patternList.length;
        if (index < 0 || index >= this.length) {
          throw new TypeError("index out of range");
        }
        this.#patternList = patternList;
        this.#globList = globList;
        this.#index = index;
        this.#platform = platform3;
        if (this.#index === 0) {
          if (this.isUNC()) {
            const [p0, p1, p22, p3, ...prest] = this.#patternList;
            const [g0, g1, g22, g3, ...grest] = this.#globList;
            if (prest[0] === "") {
              prest.shift();
              grest.shift();
            }
            const p4 = [p0, p1, p22, p3, ""].join("/");
            const g4 = [g0, g1, g22, g3, ""].join("/");
            this.#patternList = [p4, ...prest];
            this.#globList = [g4, ...grest];
            this.length = this.#patternList.length;
          } else if (this.isDrive() || this.isAbsolute()) {
            const [p1, ...prest] = this.#patternList;
            const [g1, ...grest] = this.#globList;
            if (prest[0] === "") {
              prest.shift();
              grest.shift();
            }
            const p3 = p1 + "/";
            const g3 = g1 + "/";
            this.#patternList = [p3, ...prest];
            this.#globList = [g3, ...grest];
            this.length = this.#patternList.length;
          }
        }
      }
      /**
       * The first entry in the parsed list of patterns
       */
      pattern() {
        return this.#patternList[this.#index];
      }
      /**
       * true of if pattern() returns a string
       */
      isString() {
        return typeof this.#patternList[this.#index] === "string";
      }
      /**
       * true of if pattern() returns GLOBSTAR
       */
      isGlobstar() {
        return this.#patternList[this.#index] === GLOBSTAR;
      }
      /**
       * true if pattern() returns a regexp
       */
      isRegExp() {
        return this.#patternList[this.#index] instanceof RegExp;
      }
      /**
       * The /-joined set of glob parts that make up this pattern
       */
      globString() {
        return this.#globString = this.#globString || (this.#index === 0 ? this.isAbsolute() ? this.#globList[0] + this.#globList.slice(1).join("/") : this.#globList.join("/") : this.#globList.slice(this.#index).join("/"));
      }
      /**
       * true if there are more pattern parts after this one
       */
      hasMore() {
        return this.length > this.#index + 1;
      }
      /**
       * The rest of the pattern after this part, or null if this is the end
       */
      rest() {
        if (this.#rest !== void 0)
          return this.#rest;
        if (!this.hasMore())
          return this.#rest = null;
        this.#rest = new _Pattern(this.#patternList, this.#globList, this.#index + 1, this.#platform);
        this.#rest.#isAbsolute = this.#isAbsolute;
        this.#rest.#isUNC = this.#isUNC;
        this.#rest.#isDrive = this.#isDrive;
        return this.#rest;
      }
      /**
       * true if the pattern represents a //unc/path/ on windows
       */
      isUNC() {
        const pl = this.#patternList;
        return this.#isUNC !== void 0 ? this.#isUNC : this.#isUNC = this.#platform === "win32" && this.#index === 0 && pl[0] === "" && pl[1] === "" && typeof pl[2] === "string" && !!pl[2] && typeof pl[3] === "string" && !!pl[3];
      }
      // pattern like C:/...
      // split = ['C:', ...]
      // XXX: would be nice to handle patterns like `c:*` to test the cwd
      // in c: for *, but I don't know of a way to even figure out what that
      // cwd is without actually chdir'ing into it?
      /**
       * True if the pattern starts with a drive letter on Windows
       */
      isDrive() {
        const pl = this.#patternList;
        return this.#isDrive !== void 0 ? this.#isDrive : this.#isDrive = this.#platform === "win32" && this.#index === 0 && this.length > 1 && typeof pl[0] === "string" && /^[a-z]:$/i.test(pl[0]);
      }
      // pattern = '/' or '/...' or '/x/...'
      // split = ['', ''] or ['', ...] or ['', 'x', ...]
      // Drive and UNC both considered absolute on windows
      /**
       * True if the pattern is rooted on an absolute path
       */
      isAbsolute() {
        const pl = this.#patternList;
        return this.#isAbsolute !== void 0 ? this.#isAbsolute : this.#isAbsolute = pl[0] === "" && pl.length > 1 || this.isDrive() || this.isUNC();
      }
      /**
       * consume the root of the pattern, and return it
       */
      root() {
        const p3 = this.#patternList[0];
        return typeof p3 === "string" && this.isAbsolute() && this.#index === 0 ? p3 : "";
      }
      /**
       * Check to see if the current globstar pattern is allowed to follow
       * a symbolic link.
       */
      checkFollowGlobstar() {
        return !(this.#index === 0 || !this.isGlobstar() || !this.#followGlobstar);
      }
      /**
       * Mark that the current globstar pattern is following a symbolic link
       */
      markFollowGlobstar() {
        if (this.#index === 0 || !this.isGlobstar() || !this.#followGlobstar)
          return false;
        this.#followGlobstar = false;
        return true;
      }
    };
  }
});

// ../../node_modules/glob/dist/esm/ignore.js
var defaultPlatform2, Ignore;
var init_ignore = __esm({
  "../../node_modules/glob/dist/esm/ignore.js"() {
    init_esm3();
    init_pattern();
    defaultPlatform2 = typeof process === "object" && process && typeof process.platform === "string" ? process.platform : "linux";
    Ignore = class {
      static {
        __name(this, "Ignore");
      }
      relative;
      relativeChildren;
      absolute;
      absoluteChildren;
      platform;
      mmopts;
      constructor(ignored, { nobrace, nocase, noext, noglobstar, platform: platform3 = defaultPlatform2 }) {
        this.relative = [];
        this.absolute = [];
        this.relativeChildren = [];
        this.absoluteChildren = [];
        this.platform = platform3;
        this.mmopts = {
          dot: true,
          nobrace,
          nocase,
          noext,
          noglobstar,
          optimizationLevel: 2,
          platform: platform3,
          nocomment: true,
          nonegate: true
        };
        for (const ign of ignored)
          this.add(ign);
      }
      add(ign) {
        const mm = new Minimatch(ign, this.mmopts);
        for (let i3 = 0; i3 < mm.set.length; i3++) {
          const parsed = mm.set[i3];
          const globParts = mm.globParts[i3];
          if (!parsed || !globParts) {
            throw new Error("invalid pattern object");
          }
          while (parsed[0] === "." && globParts[0] === ".") {
            parsed.shift();
            globParts.shift();
          }
          const p3 = new Pattern(parsed, globParts, 0, this.platform);
          const m3 = new Minimatch(p3.globString(), this.mmopts);
          const children = globParts[globParts.length - 1] === "**";
          const absolute = p3.isAbsolute();
          if (absolute)
            this.absolute.push(m3);
          else
            this.relative.push(m3);
          if (children) {
            if (absolute)
              this.absoluteChildren.push(m3);
            else
              this.relativeChildren.push(m3);
          }
        }
      }
      ignored(p3) {
        const fullpath = p3.fullpath();
        const fullpaths = `${fullpath}/`;
        const relative2 = p3.relative() || ".";
        const relatives = `${relative2}/`;
        for (const m3 of this.relative) {
          if (m3.match(relative2) || m3.match(relatives))
            return true;
        }
        for (const m3 of this.absolute) {
          if (m3.match(fullpath) || m3.match(fullpaths))
            return true;
        }
        return false;
      }
      childrenIgnored(p3) {
        const fullpath = p3.fullpath() + "/";
        const relative2 = (p3.relative() || ".") + "/";
        for (const m3 of this.relativeChildren) {
          if (m3.match(relative2))
            return true;
        }
        for (const m3 of this.absoluteChildren) {
          if (m3.match(fullpath))
            return true;
        }
        return false;
      }
    };
  }
});

// ../../node_modules/glob/dist/esm/processor.js
var HasWalkedCache, MatchRecord, SubWalks, Processor;
var init_processor = __esm({
  "../../node_modules/glob/dist/esm/processor.js"() {
    init_esm3();
    HasWalkedCache = class _HasWalkedCache {
      static {
        __name(this, "HasWalkedCache");
      }
      store;
      constructor(store = /* @__PURE__ */ new Map()) {
        this.store = store;
      }
      copy() {
        return new _HasWalkedCache(new Map(this.store));
      }
      hasWalked(target, pattern) {
        return this.store.get(target.fullpath())?.has(pattern.globString());
      }
      storeWalked(target, pattern) {
        const fullpath = target.fullpath();
        const cached4 = this.store.get(fullpath);
        if (cached4)
          cached4.add(pattern.globString());
        else
          this.store.set(fullpath, /* @__PURE__ */ new Set([pattern.globString()]));
      }
    };
    MatchRecord = class {
      static {
        __name(this, "MatchRecord");
      }
      store = /* @__PURE__ */ new Map();
      add(target, absolute, ifDir) {
        const n3 = (absolute ? 2 : 0) | (ifDir ? 1 : 0);
        const current = this.store.get(target);
        this.store.set(target, current === void 0 ? n3 : n3 & current);
      }
      // match, absolute, ifdir
      entries() {
        return [...this.store.entries()].map(([path38, n3]) => [
          path38,
          !!(n3 & 2),
          !!(n3 & 1)
        ]);
      }
    };
    SubWalks = class {
      static {
        __name(this, "SubWalks");
      }
      store = /* @__PURE__ */ new Map();
      add(target, pattern) {
        if (!target.canReaddir()) {
          return;
        }
        const subs = this.store.get(target);
        if (subs) {
          if (!subs.find((p3) => p3.globString() === pattern.globString())) {
            subs.push(pattern);
          }
        } else
          this.store.set(target, [pattern]);
      }
      get(target) {
        const subs = this.store.get(target);
        if (!subs) {
          throw new Error("attempting to walk unknown path");
        }
        return subs;
      }
      entries() {
        return this.keys().map((k3) => [k3, this.store.get(k3)]);
      }
      keys() {
        return [...this.store.keys()].filter((t3) => t3.canReaddir());
      }
    };
    Processor = class _Processor {
      static {
        __name(this, "Processor");
      }
      hasWalkedCache;
      matches = new MatchRecord();
      subwalks = new SubWalks();
      patterns;
      follow;
      dot;
      opts;
      constructor(opts, hasWalkedCache) {
        this.opts = opts;
        this.follow = !!opts.follow;
        this.dot = !!opts.dot;
        this.hasWalkedCache = hasWalkedCache ? hasWalkedCache.copy() : new HasWalkedCache();
      }
      processPatterns(target, patterns) {
        this.patterns = patterns;
        const processingSet = patterns.map((p3) => [target, p3]);
        for (let [t3, pattern] of processingSet) {
          this.hasWalkedCache.storeWalked(t3, pattern);
          const root = pattern.root();
          const absolute = pattern.isAbsolute() && this.opts.absolute !== false;
          if (root) {
            t3 = t3.resolve(root === "/" && this.opts.root !== void 0 ? this.opts.root : root);
            const rest2 = pattern.rest();
            if (!rest2) {
              this.matches.add(t3, true, false);
              continue;
            } else {
              pattern = rest2;
            }
          }
          if (t3.isENOENT())
            continue;
          let p3;
          let rest;
          let changed = false;
          while (typeof (p3 = pattern.pattern()) === "string" && (rest = pattern.rest())) {
            const c3 = t3.resolve(p3);
            t3 = c3;
            pattern = rest;
            changed = true;
          }
          p3 = pattern.pattern();
          rest = pattern.rest();
          if (changed) {
            if (this.hasWalkedCache.hasWalked(t3, pattern))
              continue;
            this.hasWalkedCache.storeWalked(t3, pattern);
          }
          if (typeof p3 === "string") {
            const ifDir = p3 === ".." || p3 === "" || p3 === ".";
            this.matches.add(t3.resolve(p3), absolute, ifDir);
            continue;
          } else if (p3 === GLOBSTAR) {
            if (!t3.isSymbolicLink() || this.follow || pattern.checkFollowGlobstar()) {
              this.subwalks.add(t3, pattern);
            }
            const rp = rest?.pattern();
            const rrest = rest?.rest();
            if (!rest || (rp === "" || rp === ".") && !rrest) {
              this.matches.add(t3, absolute, rp === "" || rp === ".");
            } else {
              if (rp === "..") {
                const tp = t3.parent || t3;
                if (!rrest)
                  this.matches.add(tp, absolute, true);
                else if (!this.hasWalkedCache.hasWalked(tp, rrest)) {
                  this.subwalks.add(tp, rrest);
                }
              }
            }
          } else if (p3 instanceof RegExp) {
            this.subwalks.add(t3, pattern);
          }
        }
        return this;
      }
      subwalkTargets() {
        return this.subwalks.keys();
      }
      child() {
        return new _Processor(this.opts, this.hasWalkedCache);
      }
      // return a new Processor containing the subwalks for each
      // child entry, and a set of matches, and
      // a hasWalkedCache that's a copy of this one
      // then we're going to call
      filterEntries(parent, entries) {
        const patterns = this.subwalks.get(parent);
        const results = this.child();
        for (const e3 of entries) {
          for (const pattern of patterns) {
            const absolute = pattern.isAbsolute();
            const p3 = pattern.pattern();
            const rest = pattern.rest();
            if (p3 === GLOBSTAR) {
              results.testGlobstar(e3, pattern, rest, absolute);
            } else if (p3 instanceof RegExp) {
              results.testRegExp(e3, p3, rest, absolute);
            } else {
              results.testString(e3, p3, rest, absolute);
            }
          }
        }
        return results;
      }
      testGlobstar(e3, pattern, rest, absolute) {
        if (this.dot || !e3.name.startsWith(".")) {
          if (!pattern.hasMore()) {
            this.matches.add(e3, absolute, false);
          }
          if (e3.canReaddir()) {
            if (this.follow || !e3.isSymbolicLink()) {
              this.subwalks.add(e3, pattern);
            } else if (e3.isSymbolicLink()) {
              if (rest && pattern.checkFollowGlobstar()) {
                this.subwalks.add(e3, rest);
              } else if (pattern.markFollowGlobstar()) {
                this.subwalks.add(e3, pattern);
              }
            }
          }
        }
        if (rest) {
          const rp = rest.pattern();
          if (typeof rp === "string" && // dots and empty were handled already
          rp !== ".." && rp !== "" && rp !== ".") {
            this.testString(e3, rp, rest.rest(), absolute);
          } else if (rp === "..") {
            const ep = e3.parent || e3;
            this.subwalks.add(ep, rest);
          } else if (rp instanceof RegExp) {
            this.testRegExp(e3, rp, rest.rest(), absolute);
          }
        }
      }
      testRegExp(e3, p3, rest, absolute) {
        if (!p3.test(e3.name))
          return;
        if (!rest) {
          this.matches.add(e3, absolute, false);
        } else {
          this.subwalks.add(e3, rest);
        }
      }
      testString(e3, p3, rest, absolute) {
        if (!e3.isNamed(p3))
          return;
        if (!rest) {
          this.matches.add(e3, absolute, false);
        } else {
          this.subwalks.add(e3, rest);
        }
      }
    };
  }
});

// ../../node_modules/glob/dist/esm/walker.js
var makeIgnore, GlobUtil, GlobWalker, GlobStream;
var init_walker = __esm({
  "../../node_modules/glob/dist/esm/walker.js"() {
    init_esm5();
    init_ignore();
    init_processor();
    makeIgnore = /* @__PURE__ */ __name((ignore, opts) => typeof ignore === "string" ? new Ignore([ignore], opts) : Array.isArray(ignore) ? new Ignore(ignore, opts) : ignore, "makeIgnore");
    GlobUtil = class {
      static {
        __name(this, "GlobUtil");
      }
      path;
      patterns;
      opts;
      seen = /* @__PURE__ */ new Set();
      paused = false;
      aborted = false;
      #onResume = [];
      #ignore;
      #sep;
      signal;
      maxDepth;
      includeChildMatches;
      constructor(patterns, path38, opts) {
        this.patterns = patterns;
        this.path = path38;
        this.opts = opts;
        this.#sep = !opts.posix && opts.platform === "win32" ? "\\" : "/";
        this.includeChildMatches = opts.includeChildMatches !== false;
        if (opts.ignore || !this.includeChildMatches) {
          this.#ignore = makeIgnore(opts.ignore ?? [], opts);
          if (!this.includeChildMatches && typeof this.#ignore.add !== "function") {
            const m3 = "cannot ignore child matches, ignore lacks add() method.";
            throw new Error(m3);
          }
        }
        this.maxDepth = opts.maxDepth || Infinity;
        if (opts.signal) {
          this.signal = opts.signal;
          this.signal.addEventListener("abort", () => {
            this.#onResume.length = 0;
          });
        }
      }
      #ignored(path38) {
        return this.seen.has(path38) || !!this.#ignore?.ignored?.(path38);
      }
      #childrenIgnored(path38) {
        return !!this.#ignore?.childrenIgnored?.(path38);
      }
      // backpressure mechanism
      pause() {
        this.paused = true;
      }
      resume() {
        if (this.signal?.aborted)
          return;
        this.paused = false;
        let fn = void 0;
        while (!this.paused && (fn = this.#onResume.shift())) {
          fn();
        }
      }
      onResume(fn) {
        if (this.signal?.aborted)
          return;
        if (!this.paused) {
          fn();
        } else {
          this.#onResume.push(fn);
        }
      }
      // do the requisite realpath/stat checking, and return the path
      // to add or undefined to filter it out.
      async matchCheck(e3, ifDir) {
        if (ifDir && this.opts.nodir)
          return void 0;
        let rpc;
        if (this.opts.realpath) {
          rpc = e3.realpathCached() || await e3.realpath();
          if (!rpc)
            return void 0;
          e3 = rpc;
        }
        const needStat = e3.isUnknown() || this.opts.stat;
        const s3 = needStat ? await e3.lstat() : e3;
        if (this.opts.follow && this.opts.nodir && s3?.isSymbolicLink()) {
          const target = await s3.realpath();
          if (target && (target.isUnknown() || this.opts.stat)) {
            await target.lstat();
          }
        }
        return this.matchCheckTest(s3, ifDir);
      }
      matchCheckTest(e3, ifDir) {
        return e3 && (this.maxDepth === Infinity || e3.depth() <= this.maxDepth) && (!ifDir || e3.canReaddir()) && (!this.opts.nodir || !e3.isDirectory()) && (!this.opts.nodir || !this.opts.follow || !e3.isSymbolicLink() || !e3.realpathCached()?.isDirectory()) && !this.#ignored(e3) ? e3 : void 0;
      }
      matchCheckSync(e3, ifDir) {
        if (ifDir && this.opts.nodir)
          return void 0;
        let rpc;
        if (this.opts.realpath) {
          rpc = e3.realpathCached() || e3.realpathSync();
          if (!rpc)
            return void 0;
          e3 = rpc;
        }
        const needStat = e3.isUnknown() || this.opts.stat;
        const s3 = needStat ? e3.lstatSync() : e3;
        if (this.opts.follow && this.opts.nodir && s3?.isSymbolicLink()) {
          const target = s3.realpathSync();
          if (target && (target?.isUnknown() || this.opts.stat)) {
            target.lstatSync();
          }
        }
        return this.matchCheckTest(s3, ifDir);
      }
      matchFinish(e3, absolute) {
        if (this.#ignored(e3))
          return;
        if (!this.includeChildMatches && this.#ignore?.add) {
          const ign = `${e3.relativePosix()}/**`;
          this.#ignore.add(ign);
        }
        const abs = this.opts.absolute === void 0 ? absolute : this.opts.absolute;
        this.seen.add(e3);
        const mark = this.opts.mark && e3.isDirectory() ? this.#sep : "";
        if (this.opts.withFileTypes) {
          this.matchEmit(e3);
        } else if (abs) {
          const abs2 = this.opts.posix ? e3.fullpathPosix() : e3.fullpath();
          this.matchEmit(abs2 + mark);
        } else {
          const rel = this.opts.posix ? e3.relativePosix() : e3.relative();
          const pre = this.opts.dotRelative && !rel.startsWith(".." + this.#sep) ? "." + this.#sep : "";
          this.matchEmit(!rel ? "." + mark : pre + rel + mark);
        }
      }
      async match(e3, absolute, ifDir) {
        const p3 = await this.matchCheck(e3, ifDir);
        if (p3)
          this.matchFinish(p3, absolute);
      }
      matchSync(e3, absolute, ifDir) {
        const p3 = this.matchCheckSync(e3, ifDir);
        if (p3)
          this.matchFinish(p3, absolute);
      }
      walkCB(target, patterns, cb) {
        if (this.signal?.aborted)
          cb();
        this.walkCB2(target, patterns, new Processor(this.opts), cb);
      }
      walkCB2(target, patterns, processor, cb) {
        if (this.#childrenIgnored(target))
          return cb();
        if (this.signal?.aborted)
          cb();
        if (this.paused) {
          this.onResume(() => this.walkCB2(target, patterns, processor, cb));
          return;
        }
        processor.processPatterns(target, patterns);
        let tasks = 1;
        const next = /* @__PURE__ */ __name(() => {
          if (--tasks === 0)
            cb();
        }, "next");
        for (const [m3, absolute, ifDir] of processor.matches.entries()) {
          if (this.#ignored(m3))
            continue;
          tasks++;
          this.match(m3, absolute, ifDir).then(() => next());
        }
        for (const t3 of processor.subwalkTargets()) {
          if (this.maxDepth !== Infinity && t3.depth() >= this.maxDepth) {
            continue;
          }
          tasks++;
          const childrenCached = t3.readdirCached();
          if (t3.calledReaddir())
            this.walkCB3(t3, childrenCached, processor, next);
          else {
            t3.readdirCB((_3, entries) => this.walkCB3(t3, entries, processor, next), true);
          }
        }
        next();
      }
      walkCB3(target, entries, processor, cb) {
        processor = processor.filterEntries(target, entries);
        let tasks = 1;
        const next = /* @__PURE__ */ __name(() => {
          if (--tasks === 0)
            cb();
        }, "next");
        for (const [m3, absolute, ifDir] of processor.matches.entries()) {
          if (this.#ignored(m3))
            continue;
          tasks++;
          this.match(m3, absolute, ifDir).then(() => next());
        }
        for (const [target2, patterns] of processor.subwalks.entries()) {
          tasks++;
          this.walkCB2(target2, patterns, processor.child(), next);
        }
        next();
      }
      walkCBSync(target, patterns, cb) {
        if (this.signal?.aborted)
          cb();
        this.walkCB2Sync(target, patterns, new Processor(this.opts), cb);
      }
      walkCB2Sync(target, patterns, processor, cb) {
        if (this.#childrenIgnored(target))
          return cb();
        if (this.signal?.aborted)
          cb();
        if (this.paused) {
          this.onResume(() => this.walkCB2Sync(target, patterns, processor, cb));
          return;
        }
        processor.processPatterns(target, patterns);
        let tasks = 1;
        const next = /* @__PURE__ */ __name(() => {
          if (--tasks === 0)
            cb();
        }, "next");
        for (const [m3, absolute, ifDir] of processor.matches.entries()) {
          if (this.#ignored(m3))
            continue;
          this.matchSync(m3, absolute, ifDir);
        }
        for (const t3 of processor.subwalkTargets()) {
          if (this.maxDepth !== Infinity && t3.depth() >= this.maxDepth) {
            continue;
          }
          tasks++;
          const children = t3.readdirSync();
          this.walkCB3Sync(t3, children, processor, next);
        }
        next();
      }
      walkCB3Sync(target, entries, processor, cb) {
        processor = processor.filterEntries(target, entries);
        let tasks = 1;
        const next = /* @__PURE__ */ __name(() => {
          if (--tasks === 0)
            cb();
        }, "next");
        for (const [m3, absolute, ifDir] of processor.matches.entries()) {
          if (this.#ignored(m3))
            continue;
          this.matchSync(m3, absolute, ifDir);
        }
        for (const [target2, patterns] of processor.subwalks.entries()) {
          tasks++;
          this.walkCB2Sync(target2, patterns, processor.child(), next);
        }
        next();
      }
    };
    GlobWalker = class extends GlobUtil {
      static {
        __name(this, "GlobWalker");
      }
      matches = /* @__PURE__ */ new Set();
      constructor(patterns, path38, opts) {
        super(patterns, path38, opts);
      }
      matchEmit(e3) {
        this.matches.add(e3);
      }
      async walk() {
        if (this.signal?.aborted)
          throw this.signal.reason;
        if (this.path.isUnknown()) {
          await this.path.lstat();
        }
        await new Promise((res, rej) => {
          this.walkCB(this.path, this.patterns, () => {
            if (this.signal?.aborted) {
              rej(this.signal.reason);
            } else {
              res(this.matches);
            }
          });
        });
        return this.matches;
      }
      walkSync() {
        if (this.signal?.aborted)
          throw this.signal.reason;
        if (this.path.isUnknown()) {
          this.path.lstatSync();
        }
        this.walkCBSync(this.path, this.patterns, () => {
          if (this.signal?.aborted)
            throw this.signal.reason;
        });
        return this.matches;
      }
    };
    GlobStream = class extends GlobUtil {
      static {
        __name(this, "GlobStream");
      }
      results;
      constructor(patterns, path38, opts) {
        super(patterns, path38, opts);
        this.results = new Minipass({
          signal: this.signal,
          objectMode: true
        });
        this.results.on("drain", () => this.resume());
        this.results.on("resume", () => this.resume());
      }
      matchEmit(e3) {
        this.results.write(e3);
        if (!this.results.flowing)
          this.pause();
      }
      stream() {
        const target = this.path;
        if (target.isUnknown()) {
          target.lstat().then(() => {
            this.walkCB(target, this.patterns, () => this.results.end());
          });
        } else {
          this.walkCB(target, this.patterns, () => this.results.end());
        }
        return this.results;
      }
      streamSync() {
        if (this.path.isUnknown()) {
          this.path.lstatSync();
        }
        this.walkCBSync(this.path, this.patterns, () => this.results.end());
        return this.results;
      }
    };
  }
});

// ../../node_modules/glob/dist/esm/glob.js
var import_node_url2, defaultPlatform3, Glob;
var init_glob = __esm({
  "../../node_modules/glob/dist/esm/glob.js"() {
    init_esm3();
    import_node_url2 = require("node:url");
    init_esm6();
    init_pattern();
    init_walker();
    defaultPlatform3 = typeof process === "object" && process && typeof process.platform === "string" ? process.platform : "linux";
    Glob = class {
      static {
        __name(this, "Glob");
      }
      absolute;
      cwd;
      root;
      dot;
      dotRelative;
      follow;
      ignore;
      magicalBraces;
      mark;
      matchBase;
      maxDepth;
      nobrace;
      nocase;
      nodir;
      noext;
      noglobstar;
      pattern;
      platform;
      realpath;
      scurry;
      stat;
      signal;
      windowsPathsNoEscape;
      withFileTypes;
      includeChildMatches;
      /**
       * The options provided to the constructor.
       */
      opts;
      /**
       * An array of parsed immutable {@link Pattern} objects.
       */
      patterns;
      /**
       * All options are stored as properties on the `Glob` object.
       *
       * See {@link GlobOptions} for full options descriptions.
       *
       * Note that a previous `Glob` object can be passed as the
       * `GlobOptions` to another `Glob` instantiation to re-use settings
       * and caches with a new pattern.
       *
       * Traversal functions can be called multiple times to run the walk
       * again.
       */
      constructor(pattern, opts) {
        if (!opts)
          throw new TypeError("glob options required");
        this.withFileTypes = !!opts.withFileTypes;
        this.signal = opts.signal;
        this.follow = !!opts.follow;
        this.dot = !!opts.dot;
        this.dotRelative = !!opts.dotRelative;
        this.nodir = !!opts.nodir;
        this.mark = !!opts.mark;
        if (!opts.cwd) {
          this.cwd = "";
        } else if (opts.cwd instanceof URL || opts.cwd.startsWith("file://")) {
          opts.cwd = (0, import_node_url2.fileURLToPath)(opts.cwd);
        }
        this.cwd = opts.cwd || "";
        this.root = opts.root;
        this.magicalBraces = !!opts.magicalBraces;
        this.nobrace = !!opts.nobrace;
        this.noext = !!opts.noext;
        this.realpath = !!opts.realpath;
        this.absolute = opts.absolute;
        this.includeChildMatches = opts.includeChildMatches !== false;
        this.noglobstar = !!opts.noglobstar;
        this.matchBase = !!opts.matchBase;
        this.maxDepth = typeof opts.maxDepth === "number" ? opts.maxDepth : Infinity;
        this.stat = !!opts.stat;
        this.ignore = opts.ignore;
        if (this.withFileTypes && this.absolute !== void 0) {
          throw new Error("cannot set absolute and withFileTypes:true");
        }
        if (typeof pattern === "string") {
          pattern = [pattern];
        }
        this.windowsPathsNoEscape = !!opts.windowsPathsNoEscape || opts.allowWindowsEscape === false;
        if (this.windowsPathsNoEscape) {
          pattern = pattern.map((p3) => p3.replace(/\\/g, "/"));
        }
        if (this.matchBase) {
          if (opts.noglobstar) {
            throw new TypeError("base matching requires globstar");
          }
          pattern = pattern.map((p3) => p3.includes("/") ? p3 : `./**/${p3}`);
        }
        this.pattern = pattern;
        this.platform = opts.platform || defaultPlatform3;
        this.opts = { ...opts, platform: this.platform };
        if (opts.scurry) {
          this.scurry = opts.scurry;
          if (opts.nocase !== void 0 && opts.nocase !== opts.scurry.nocase) {
            throw new Error("nocase option contradicts provided scurry option");
          }
        } else {
          const Scurry = opts.platform === "win32" ? PathScurryWin32 : opts.platform === "darwin" ? PathScurryDarwin : opts.platform ? PathScurryPosix : PathScurry;
          this.scurry = new Scurry(this.cwd, {
            nocase: opts.nocase,
            fs: opts.fs
          });
        }
        this.nocase = this.scurry.nocase;
        const nocaseMagicOnly = this.platform === "darwin" || this.platform === "win32";
        const mmo = {
          // default nocase based on platform
          ...opts,
          dot: this.dot,
          matchBase: this.matchBase,
          nobrace: this.nobrace,
          nocase: this.nocase,
          nocaseMagicOnly,
          nocomment: true,
          noext: this.noext,
          nonegate: true,
          optimizationLevel: 2,
          platform: this.platform,
          windowsPathsNoEscape: this.windowsPathsNoEscape,
          debug: !!this.opts.debug
        };
        const mms = this.pattern.map((p3) => new Minimatch(p3, mmo));
        const [matchSet, globParts] = mms.reduce((set, m3) => {
          set[0].push(...m3.set);
          set[1].push(...m3.globParts);
          return set;
        }, [[], []]);
        this.patterns = matchSet.map((set, i3) => {
          const g3 = globParts[i3];
          if (!g3)
            throw new Error("invalid pattern object");
          return new Pattern(set, g3, 0, this.platform);
        });
      }
      async walk() {
        return [
          ...await new GlobWalker(this.patterns, this.scurry.cwd, {
            ...this.opts,
            maxDepth: this.maxDepth !== Infinity ? this.maxDepth + this.scurry.cwd.depth() : Infinity,
            platform: this.platform,
            nocase: this.nocase,
            includeChildMatches: this.includeChildMatches
          }).walk()
        ];
      }
      walkSync() {
        return [
          ...new GlobWalker(this.patterns, this.scurry.cwd, {
            ...this.opts,
            maxDepth: this.maxDepth !== Infinity ? this.maxDepth + this.scurry.cwd.depth() : Infinity,
            platform: this.platform,
            nocase: this.nocase,
            includeChildMatches: this.includeChildMatches
          }).walkSync()
        ];
      }
      stream() {
        return new GlobStream(this.patterns, this.scurry.cwd, {
          ...this.opts,
          maxDepth: this.maxDepth !== Infinity ? this.maxDepth + this.scurry.cwd.depth() : Infinity,
          platform: this.platform,
          nocase: this.nocase,
          includeChildMatches: this.includeChildMatches
        }).stream();
      }
      streamSync() {
        return new GlobStream(this.patterns, this.scurry.cwd, {
          ...this.opts,
          maxDepth: this.maxDepth !== Infinity ? this.maxDepth + this.scurry.cwd.depth() : Infinity,
          platform: this.platform,
          nocase: this.nocase,
          includeChildMatches: this.includeChildMatches
        }).streamSync();
      }
      /**
       * Default sync iteration function. Returns a Generator that
       * iterates over the results.
       */
      iterateSync() {
        return this.streamSync()[Symbol.iterator]();
      }
      [Symbol.iterator]() {
        return this.iterateSync();
      }
      /**
       * Default async iteration function. Returns an AsyncGenerator that
       * iterates over the results.
       */
      iterate() {
        return this.stream()[Symbol.asyncIterator]();
      }
      [Symbol.asyncIterator]() {
        return this.iterate();
      }
    };
  }
});

// ../../node_modules/glob/dist/esm/has-magic.js
var hasMagic;
var init_has_magic = __esm({
  "../../node_modules/glob/dist/esm/has-magic.js"() {
    init_esm3();
    hasMagic = /* @__PURE__ */ __name((pattern, options = {}) => {
      if (!Array.isArray(pattern)) {
        pattern = [pattern];
      }
      for (const p3 of pattern) {
        if (new Minimatch(p3, options).hasMagic())
          return true;
      }
      return false;
    }, "hasMagic");
  }
});

// ../../node_modules/glob/dist/esm/index.js
function globStreamSync(pattern, options = {}) {
  return new Glob(pattern, options).streamSync();
}
function globStream(pattern, options = {}) {
  return new Glob(pattern, options).stream();
}
function globSync(pattern, options = {}) {
  return new Glob(pattern, options).walkSync();
}
async function glob_(pattern, options = {}) {
  return new Glob(pattern, options).walk();
}
function globIterateSync(pattern, options = {}) {
  return new Glob(pattern, options).iterateSync();
}
function globIterate(pattern, options = {}) {
  return new Glob(pattern, options).iterate();
}
var streamSync, stream, iterateSync, iterate, sync, glob;
var init_esm7 = __esm({
  "../../node_modules/glob/dist/esm/index.js"() {
    init_esm3();
    init_glob();
    init_has_magic();
    init_esm3();
    init_glob();
    init_has_magic();
    init_ignore();
    __name(globStreamSync, "globStreamSync");
    __name(globStream, "globStream");
    __name(globSync, "globSync");
    __name(glob_, "glob_");
    __name(globIterateSync, "globIterateSync");
    __name(globIterate, "globIterate");
    streamSync = globStreamSync;
    stream = Object.assign(globStream, { sync: globStreamSync });
    iterateSync = globIterateSync;
    iterate = Object.assign(globIterate, {
      sync: globIterateSync
    });
    sync = Object.assign(globSync, {
      stream: globStreamSync,
      iterate: globIterateSync
    });
    glob = Object.assign(glob_, {
      glob: glob_,
      globSync,
      sync,
      globStream,
      stream,
      globStreamSync,
      streamSync,
      globIterate,
      iterate,
      globIterateSync,
      iterateSync,
      Glob,
      hasMagic,
      escape,
      unescape: unescape2
    });
    glob.glob = glob;
  }
});

// ../../node_modules/readdir-glob/node_modules/minimatch/lib/path.js
var require_path = __commonJS({
  "../../node_modules/readdir-glob/node_modules/minimatch/lib/path.js"(exports2, module2) {
    var isWindows = typeof process === "object" && process && process.platform === "win32";
    module2.exports = isWindows ? { sep: "\\" } : { sep: "/" };
  }
});

// ../../node_modules/balanced-match/index.js
var require_balanced_match = __commonJS({
  "../../node_modules/balanced-match/index.js"(exports2, module2) {
    "use strict";
    module2.exports = balanced2;
    function balanced2(a3, b3, str) {
      if (a3 instanceof RegExp) a3 = maybeMatch2(a3, str);
      if (b3 instanceof RegExp) b3 = maybeMatch2(b3, str);
      var r3 = range2(a3, b3, str);
      return r3 && {
        start: r3[0],
        end: r3[1],
        pre: str.slice(0, r3[0]),
        body: str.slice(r3[0] + a3.length, r3[1]),
        post: str.slice(r3[1] + b3.length)
      };
    }
    __name(balanced2, "balanced");
    function maybeMatch2(reg, str) {
      var m3 = str.match(reg);
      return m3 ? m3[0] : null;
    }
    __name(maybeMatch2, "maybeMatch");
    balanced2.range = range2;
    function range2(a3, b3, str) {
      var begs, beg, left, right, result2;
      var ai = str.indexOf(a3);
      var bi = str.indexOf(b3, ai + 1);
      var i3 = ai;
      if (ai >= 0 && bi > 0) {
        if (a3 === b3) {
          return [ai, bi];
        }
        begs = [];
        left = str.length;
        while (i3 >= 0 && !result2) {
          if (i3 == ai) {
            begs.push(i3);
            ai = str.indexOf(a3, i3 + 1);
          } else if (begs.length == 1) {
            result2 = [begs.pop(), bi];
          } else {
            beg = begs.pop();
            if (beg < left) {
              left = beg;
              right = bi;
            }
            bi = str.indexOf(b3, i3 + 1);
          }
          i3 = ai < bi && ai >= 0 ? ai : bi;
        }
        if (begs.length) {
          result2 = [left, right];
        }
      }
      return result2;
    }
    __name(range2, "range");
  }
});

// ../../node_modules/brace-expansion/index.js
var require_brace_expansion = __commonJS({
  "../../node_modules/brace-expansion/index.js"(exports2, module2) {
    var balanced2 = require_balanced_match();
    module2.exports = expandTop;
    var escSlash2 = "\0SLASH" + Math.random() + "\0";
    var escOpen2 = "\0OPEN" + Math.random() + "\0";
    var escClose2 = "\0CLOSE" + Math.random() + "\0";
    var escComma2 = "\0COMMA" + Math.random() + "\0";
    var escPeriod2 = "\0PERIOD" + Math.random() + "\0";
    function numeric2(str) {
      return parseInt(str, 10) == str ? parseInt(str, 10) : str.charCodeAt(0);
    }
    __name(numeric2, "numeric");
    function escapeBraces2(str) {
      return str.split("\\\\").join(escSlash2).split("\\{").join(escOpen2).split("\\}").join(escClose2).split("\\,").join(escComma2).split("\\.").join(escPeriod2);
    }
    __name(escapeBraces2, "escapeBraces");
    function unescapeBraces2(str) {
      return str.split(escSlash2).join("\\").split(escOpen2).join("{").split(escClose2).join("}").split(escComma2).join(",").split(escPeriod2).join(".");
    }
    __name(unescapeBraces2, "unescapeBraces");
    function parseCommaParts2(str) {
      if (!str)
        return [""];
      var parts = [];
      var m3 = balanced2("{", "}", str);
      if (!m3)
        return str.split(",");
      var pre = m3.pre;
      var body = m3.body;
      var post = m3.post;
      var p3 = pre.split(",");
      p3[p3.length - 1] += "{" + body + "}";
      var postParts = parseCommaParts2(post);
      if (post.length) {
        p3[p3.length - 1] += postParts.shift();
        p3.push.apply(p3, postParts);
      }
      parts.push.apply(parts, p3);
      return parts;
    }
    __name(parseCommaParts2, "parseCommaParts");
    function expandTop(str) {
      if (!str)
        return [];
      if (str.substr(0, 2) === "{}") {
        str = "\\{\\}" + str.substr(2);
      }
      return expand2(escapeBraces2(str), true).map(unescapeBraces2);
    }
    __name(expandTop, "expandTop");
    function embrace2(str) {
      return "{" + str + "}";
    }
    __name(embrace2, "embrace");
    function isPadded2(el) {
      return /^-?0\d/.test(el);
    }
    __name(isPadded2, "isPadded");
    function lte3(i3, y2) {
      return i3 <= y2;
    }
    __name(lte3, "lte");
    function gte2(i3, y2) {
      return i3 >= y2;
    }
    __name(gte2, "gte");
    function expand2(str, isTop) {
      var expansions = [];
      var m3 = balanced2("{", "}", str);
      if (!m3) return [str];
      var pre = m3.pre;
      var post = m3.post.length ? expand2(m3.post, false) : [""];
      if (/\$$/.test(m3.pre)) {
        for (var k3 = 0; k3 < post.length; k3++) {
          var expansion = pre + "{" + m3.body + "}" + post[k3];
          expansions.push(expansion);
        }
      } else {
        var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m3.body);
        var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m3.body);
        var isSequence = isNumericSequence || isAlphaSequence;
        var isOptions = m3.body.indexOf(",") >= 0;
        if (!isSequence && !isOptions) {
          if (m3.post.match(/,(?!,).*\}/)) {
            str = m3.pre + "{" + m3.body + escClose2 + m3.post;
            return expand2(str);
          }
          return [str];
        }
        var n3;
        if (isSequence) {
          n3 = m3.body.split(/\.\./);
        } else {
          n3 = parseCommaParts2(m3.body);
          if (n3.length === 1) {
            n3 = expand2(n3[0], false).map(embrace2);
            if (n3.length === 1) {
              return post.map(function(p3) {
                return m3.pre + n3[0] + p3;
              });
            }
          }
        }
        var N;
        if (isSequence) {
          var x3 = numeric2(n3[0]);
          var y2 = numeric2(n3[1]);
          var width = Math.max(n3[0].length, n3[1].length);
          var incr = n3.length == 3 ? Math.abs(numeric2(n3[2])) : 1;
          var test = lte3;
          var reverse = y2 < x3;
          if (reverse) {
            incr *= -1;
            test = gte2;
          }
          var pad = n3.some(isPadded2);
          N = [];
          for (var i3 = x3; test(i3, y2); i3 += incr) {
            var c3;
            if (isAlphaSequence) {
              c3 = String.fromCharCode(i3);
              if (c3 === "\\")
                c3 = "";
            } else {
              c3 = String(i3);
              if (pad) {
                var need = width - c3.length;
                if (need > 0) {
                  var z2 = new Array(need + 1).join("0");
                  if (i3 < 0)
                    c3 = "-" + z2 + c3.slice(1);
                  else
                    c3 = z2 + c3;
                }
              }
            }
            N.push(c3);
          }
        } else {
          N = [];
          for (var j3 = 0; j3 < n3.length; j3++) {
            N.push.apply(N, expand2(n3[j3], false));
          }
        }
        for (var j3 = 0; j3 < N.length; j3++) {
          for (var k3 = 0; k3 < post.length; k3++) {
            var expansion = pre + N[j3] + post[k3];
            if (!isTop || isSequence || expansion)
              expansions.push(expansion);
          }
        }
      }
      return expansions;
    }
    __name(expand2, "expand");
  }
});

// ../../node_modules/readdir-glob/node_modules/minimatch/minimatch.js
var require_minimatch = __commonJS({
  "../../node_modules/readdir-glob/node_modules/minimatch/minimatch.js"(exports2, module2) {
    var minimatch4 = module2.exports = (p3, pattern, options = {}) => {
      assertValidPattern4(pattern);
      if (!options.nocomment && pattern.charAt(0) === "#") {
        return false;
      }
      return new Minimatch4(pattern, options).match(p3);
    };
    module2.exports = minimatch4;
    var path38 = require_path();
    minimatch4.sep = path38.sep;
    var GLOBSTAR4 = Symbol("globstar **");
    minimatch4.GLOBSTAR = GLOBSTAR4;
    var expand2 = require_brace_expansion();
    var plTypes = {
      "!": { open: "(?:(?!(?:", close: "))[^/]*?)" },
      "?": { open: "(?:", close: ")?" },
      "+": { open: "(?:", close: ")+" },
      "*": { open: "(?:", close: ")*" },
      "@": { open: "(?:", close: ")" }
    };
    var qmark7 = "[^/]";
    var star7 = qmark7 + "*?";
    var twoStarDot4 = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";
    var twoStarNoDot4 = "(?:(?!(?:\\/|^)\\.).)*?";
    var charSet = /* @__PURE__ */ __name((s3) => s3.split("").reduce((set, c3) => {
      set[c3] = true;
      return set;
    }, {}), "charSet");
    var reSpecials4 = charSet("().*{}+?[]^$\\!");
    var addPatternStartSet = charSet("[.(");
    var slashSplit = /\/+/;
    minimatch4.filter = (pattern, options = {}) => (p3, i3, list2) => minimatch4(p3, pattern, options);
    var ext4 = /* @__PURE__ */ __name((a3, b3 = {}) => {
      const t3 = {};
      Object.keys(a3).forEach((k3) => t3[k3] = a3[k3]);
      Object.keys(b3).forEach((k3) => t3[k3] = b3[k3]);
      return t3;
    }, "ext");
    minimatch4.defaults = (def) => {
      if (!def || typeof def !== "object" || !Object.keys(def).length) {
        return minimatch4;
      }
      const orig = minimatch4;
      const m3 = /* @__PURE__ */ __name((p3, pattern, options) => orig(p3, pattern, ext4(def, options)), "m");
      m3.Minimatch = class Minimatch extends orig.Minimatch {
        static {
          __name(this, "Minimatch");
        }
        constructor(pattern, options) {
          super(pattern, ext4(def, options));
        }
      };
      m3.Minimatch.defaults = (options) => orig.defaults(ext4(def, options)).Minimatch;
      m3.filter = (pattern, options) => orig.filter(pattern, ext4(def, options));
      m3.defaults = (options) => orig.defaults(ext4(def, options));
      m3.makeRe = (pattern, options) => orig.makeRe(pattern, ext4(def, options));
      m3.braceExpand = (pattern, options) => orig.braceExpand(pattern, ext4(def, options));
      m3.match = (list2, pattern, options) => orig.match(list2, pattern, ext4(def, options));
      return m3;
    };
    minimatch4.braceExpand = (pattern, options) => braceExpand4(pattern, options);
    var braceExpand4 = /* @__PURE__ */ __name((pattern, options = {}) => {
      assertValidPattern4(pattern);
      if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) {
        return [pattern];
      }
      return expand2(pattern);
    }, "braceExpand");
    var MAX_PATTERN_LENGTH4 = 1024 * 64;
    var assertValidPattern4 = /* @__PURE__ */ __name((pattern) => {
      if (typeof pattern !== "string") {
        throw new TypeError("invalid pattern");
      }
      if (pattern.length > MAX_PATTERN_LENGTH4) {
        throw new TypeError("pattern is too long");
      }
    }, "assertValidPattern");
    var SUBPARSE = Symbol("subparse");
    minimatch4.makeRe = (pattern, options) => new Minimatch4(pattern, options || {}).makeRe();
    minimatch4.match = (list2, pattern, options = {}) => {
      const mm = new Minimatch4(pattern, options);
      list2 = list2.filter((f3) => mm.match(f3));
      if (mm.options.nonull && !list2.length) {
        list2.push(pattern);
      }
      return list2;
    };
    var globUnescape = /* @__PURE__ */ __name((s3) => s3.replace(/\\(.)/g, "$1"), "globUnescape");
    var charUnescape = /* @__PURE__ */ __name((s3) => s3.replace(/\\([^-\]])/g, "$1"), "charUnescape");
    var regExpEscape7 = /* @__PURE__ */ __name((s3) => s3.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), "regExpEscape");
    var braExpEscape = /* @__PURE__ */ __name((s3) => s3.replace(/[[\]\\]/g, "\\$&"), "braExpEscape");
    var Minimatch4 = class {
      static {
        __name(this, "Minimatch");
      }
      constructor(pattern, options) {
        assertValidPattern4(pattern);
        if (!options) options = {};
        this.options = options;
        this.set = [];
        this.pattern = pattern;
        this.windowsPathsNoEscape = !!options.windowsPathsNoEscape || options.allowWindowsEscape === false;
        if (this.windowsPathsNoEscape) {
          this.pattern = this.pattern.replace(/\\/g, "/");
        }
        this.regexp = null;
        this.negate = false;
        this.comment = false;
        this.empty = false;
        this.partial = !!options.partial;
        this.make();
      }
      debug() {
      }
      make() {
        const pattern = this.pattern;
        const options = this.options;
        if (!options.nocomment && pattern.charAt(0) === "#") {
          this.comment = true;
          return;
        }
        if (!pattern) {
          this.empty = true;
          return;
        }
        this.parseNegate();
        let set = this.globSet = this.braceExpand();
        if (options.debug) this.debug = (...args) => console.error(...args);
        this.debug(this.pattern, set);
        set = this.globParts = set.map((s3) => s3.split(slashSplit));
        this.debug(this.pattern, set);
        set = set.map((s3, si, set2) => s3.map(this.parse, this));
        this.debug(this.pattern, set);
        set = set.filter((s3) => s3.indexOf(false) === -1);
        this.debug(this.pattern, set);
        this.set = set;
      }
      parseNegate() {
        if (this.options.nonegate) return;
        const pattern = this.pattern;
        let negate = false;
        let negateOffset = 0;
        for (let i3 = 0; i3 < pattern.length && pattern.charAt(i3) === "!"; i3++) {
          negate = !negate;
          negateOffset++;
        }
        if (negateOffset) this.pattern = pattern.slice(negateOffset);
        this.negate = negate;
      }
      // set partial to true to test if, for example,
      // "/a/b" matches the start of "/*/b/*/d"
      // Partial means, if you run out of file before you run
      // out of pattern, then that's fine, as long as all
      // the parts match.
      matchOne(file, pattern, partial) {
        var options = this.options;
        this.debug(
          "matchOne",
          { "this": this, file, pattern }
        );
        this.debug("matchOne", file.length, pattern.length);
        for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
          this.debug("matchOne loop");
          var p3 = pattern[pi];
          var f3 = file[fi];
          this.debug(pattern, p3, f3);
          if (p3 === false) return false;
          if (p3 === GLOBSTAR4) {
            this.debug("GLOBSTAR", [pattern, p3, f3]);
            var fr = fi;
            var pr = pi + 1;
            if (pr === pl) {
              this.debug("** at the end");
              for (; fi < fl; fi++) {
                if (file[fi] === "." || file[fi] === ".." || !options.dot && file[fi].charAt(0) === ".") return false;
              }
              return true;
            }
            while (fr < fl) {
              var swallowee = file[fr];
              this.debug("\nglobstar while", file, fr, pattern, pr, swallowee);
              if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {
                this.debug("globstar found match!", fr, fl, swallowee);
                return true;
              } else {
                if (swallowee === "." || swallowee === ".." || !options.dot && swallowee.charAt(0) === ".") {
                  this.debug("dot detected!", file, fr, pattern, pr);
                  break;
                }
                this.debug("globstar swallow a segment, and continue");
                fr++;
              }
            }
            if (partial) {
              this.debug("\n>>> no match, partial?", file, fr, pattern, pr);
              if (fr === fl) return true;
            }
            return false;
          }
          var hit;
          if (typeof p3 === "string") {
            hit = f3 === p3;
            this.debug("string match", p3, f3, hit);
          } else {
            hit = f3.match(p3);
            this.debug("pattern match", p3, f3, hit);
          }
          if (!hit) return false;
        }
        if (fi === fl && pi === pl) {
          return true;
        } else if (fi === fl) {
          return partial;
        } else if (pi === pl) {
          return fi === fl - 1 && file[fi] === "";
        }
        throw new Error("wtf?");
      }
      braceExpand() {
        return braceExpand4(this.pattern, this.options);
      }
      parse(pattern, isSub) {
        assertValidPattern4(pattern);
        const options = this.options;
        if (pattern === "**") {
          if (!options.noglobstar)
            return GLOBSTAR4;
          else
            pattern = "*";
        }
        if (pattern === "") return "";
        let re = "";
        let hasMagic2 = false;
        let escaping = false;
        const patternListStack = [];
        const negativeLists = [];
        let stateChar;
        let inClass = false;
        let reClassStart = -1;
        let classStart = -1;
        let cs;
        let pl;
        let sp;
        let dotTravAllowed = pattern.charAt(0) === ".";
        let dotFileAllowed = options.dot || dotTravAllowed;
        const patternStart = /* @__PURE__ */ __name(() => dotTravAllowed ? "" : dotFileAllowed ? "(?!(?:^|\\/)\\.{1,2}(?:$|\\/))" : "(?!\\.)", "patternStart");
        const subPatternStart = /* @__PURE__ */ __name((p3) => p3.charAt(0) === "." ? "" : options.dot ? "(?!(?:^|\\/)\\.{1,2}(?:$|\\/))" : "(?!\\.)", "subPatternStart");
        const clearStateChar = /* @__PURE__ */ __name(() => {
          if (stateChar) {
            switch (stateChar) {
              case "*":
                re += star7;
                hasMagic2 = true;
                break;
              case "?":
                re += qmark7;
                hasMagic2 = true;
                break;
              default:
                re += "\\" + stateChar;
                break;
            }
            this.debug("clearStateChar %j %j", stateChar, re);
            stateChar = false;
          }
        }, "clearStateChar");
        for (let i3 = 0, c3; i3 < pattern.length && (c3 = pattern.charAt(i3)); i3++) {
          this.debug("%s	%s %s %j", pattern, i3, re, c3);
          if (escaping) {
            if (c3 === "/") {
              return false;
            }
            if (reSpecials4[c3]) {
              re += "\\";
            }
            re += c3;
            escaping = false;
            continue;
          }
          switch (c3) {
            /* istanbul ignore next */
            case "/": {
              return false;
            }
            case "\\":
              if (inClass && pattern.charAt(i3 + 1) === "-") {
                re += c3;
                continue;
              }
              clearStateChar();
              escaping = true;
              continue;
            // the various stateChar values
            // for the "extglob" stuff.
            case "?":
            case "*":
            case "+":
            case "@":
            case "!":
              this.debug("%s	%s %s %j <-- stateChar", pattern, i3, re, c3);
              if (inClass) {
                this.debug("  in class");
                if (c3 === "!" && i3 === classStart + 1) c3 = "^";
                re += c3;
                continue;
              }
              this.debug("call clearStateChar %j", stateChar);
              clearStateChar();
              stateChar = c3;
              if (options.noext) clearStateChar();
              continue;
            case "(": {
              if (inClass) {
                re += "(";
                continue;
              }
              if (!stateChar) {
                re += "\\(";
                continue;
              }
              const plEntry = {
                type: stateChar,
                start: i3 - 1,
                reStart: re.length,
                open: plTypes[stateChar].open,
                close: plTypes[stateChar].close
              };
              this.debug(this.pattern, "	", plEntry);
              patternListStack.push(plEntry);
              re += plEntry.open;
              if (plEntry.start === 0 && plEntry.type !== "!") {
                dotTravAllowed = true;
                re += subPatternStart(pattern.slice(i3 + 1));
              }
              this.debug("plType %j %j", stateChar, re);
              stateChar = false;
              continue;
            }
            case ")": {
              const plEntry = patternListStack[patternListStack.length - 1];
              if (inClass || !plEntry) {
                re += "\\)";
                continue;
              }
              patternListStack.pop();
              clearStateChar();
              hasMagic2 = true;
              pl = plEntry;
              re += pl.close;
              if (pl.type === "!") {
                negativeLists.push(Object.assign(pl, { reEnd: re.length }));
              }
              continue;
            }
            case "|": {
              const plEntry = patternListStack[patternListStack.length - 1];
              if (inClass || !plEntry) {
                re += "\\|";
                continue;
              }
              clearStateChar();
              re += "|";
              if (plEntry.start === 0 && plEntry.type !== "!") {
                dotTravAllowed = true;
                re += subPatternStart(pattern.slice(i3 + 1));
              }
              continue;
            }
            // these are mostly the same in regexp and glob
            case "[":
              clearStateChar();
              if (inClass) {
                re += "\\" + c3;
                continue;
              }
              inClass = true;
              classStart = i3;
              reClassStart = re.length;
              re += c3;
              continue;
            case "]":
              if (i3 === classStart + 1 || !inClass) {
                re += "\\" + c3;
                continue;
              }
              cs = pattern.substring(classStart + 1, i3);
              try {
                RegExp("[" + braExpEscape(charUnescape(cs)) + "]");
                re += c3;
              } catch (er) {
                re = re.substring(0, reClassStart) + "(?:$.)";
              }
              hasMagic2 = true;
              inClass = false;
              continue;
            default:
              clearStateChar();
              if (reSpecials4[c3] && !(c3 === "^" && inClass)) {
                re += "\\";
              }
              re += c3;
              break;
          }
        }
        if (inClass) {
          cs = pattern.slice(classStart + 1);
          sp = this.parse(cs, SUBPARSE);
          re = re.substring(0, reClassStart) + "\\[" + sp[0];
          hasMagic2 = hasMagic2 || sp[1];
        }
        for (pl = patternListStack.pop(); pl; pl = patternListStack.pop()) {
          let tail;
          tail = re.slice(pl.reStart + pl.open.length);
          this.debug("setting tail", re, pl);
          tail = tail.replace(/((?:\\{2}){0,64})(\\?)\|/g, (_3, $1, $2) => {
            if (!$2) {
              $2 = "\\";
            }
            return $1 + $1 + $2 + "|";
          });
          this.debug("tail=%j\n   %s", tail, tail, pl, re);
          const t3 = pl.type === "*" ? star7 : pl.type === "?" ? qmark7 : "\\" + pl.type;
          hasMagic2 = true;
          re = re.slice(0, pl.reStart) + t3 + "\\(" + tail;
        }
        clearStateChar();
        if (escaping) {
          re += "\\\\";
        }
        const addPatternStart4 = addPatternStartSet[re.charAt(0)];
        for (let n3 = negativeLists.length - 1; n3 > -1; n3--) {
          const nl = negativeLists[n3];
          const nlBefore = re.slice(0, nl.reStart);
          const nlFirst = re.slice(nl.reStart, nl.reEnd - 8);
          let nlAfter = re.slice(nl.reEnd);
          const nlLast = re.slice(nl.reEnd - 8, nl.reEnd) + nlAfter;
          const closeParensBefore = nlBefore.split(")").length;
          const openParensBefore = nlBefore.split("(").length - closeParensBefore;
          let cleanAfter = nlAfter;
          for (let i3 = 0; i3 < openParensBefore; i3++) {
            cleanAfter = cleanAfter.replace(/\)[+*?]?/, "");
          }
          nlAfter = cleanAfter;
          const dollar = nlAfter === "" && isSub !== SUBPARSE ? "(?:$|\\/)" : "";
          re = nlBefore + nlFirst + nlAfter + dollar + nlLast;
        }
        if (re !== "" && hasMagic2) {
          re = "(?=.)" + re;
        }
        if (addPatternStart4) {
          re = patternStart() + re;
        }
        if (isSub === SUBPARSE) {
          return [re, hasMagic2];
        }
        if (options.nocase && !hasMagic2) {
          hasMagic2 = pattern.toUpperCase() !== pattern.toLowerCase();
        }
        if (!hasMagic2) {
          return globUnescape(pattern);
        }
        const flags = options.nocase ? "i" : "";
        try {
          return Object.assign(new RegExp("^" + re + "$", flags), {
            _glob: pattern,
            _src: re
          });
        } catch (er) {
          return new RegExp("$.");
        }
      }
      makeRe() {
        if (this.regexp || this.regexp === false) return this.regexp;
        const set = this.set;
        if (!set.length) {
          this.regexp = false;
          return this.regexp;
        }
        const options = this.options;
        const twoStar = options.noglobstar ? star7 : options.dot ? twoStarDot4 : twoStarNoDot4;
        const flags = options.nocase ? "i" : "";
        let re = set.map((pattern) => {
          pattern = pattern.map(
            (p3) => typeof p3 === "string" ? regExpEscape7(p3) : p3 === GLOBSTAR4 ? GLOBSTAR4 : p3._src
          ).reduce((set2, p3) => {
            if (!(set2[set2.length - 1] === GLOBSTAR4 && p3 === GLOBSTAR4)) {
              set2.push(p3);
            }
            return set2;
          }, []);
          pattern.forEach((p3, i3) => {
            if (p3 !== GLOBSTAR4 || pattern[i3 - 1] === GLOBSTAR4) {
              return;
            }
            if (i3 === 0) {
              if (pattern.length > 1) {
                pattern[i3 + 1] = "(?:\\/|" + twoStar + "\\/)?" + pattern[i3 + 1];
              } else {
                pattern[i3] = twoStar;
              }
            } else if (i3 === pattern.length - 1) {
              pattern[i3 - 1] += "(?:\\/|" + twoStar + ")?";
            } else {
              pattern[i3 - 1] += "(?:\\/|\\/" + twoStar + "\\/)" + pattern[i3 + 1];
              pattern[i3 + 1] = GLOBSTAR4;
            }
          });
          return pattern.filter((p3) => p3 !== GLOBSTAR4).join("/");
        }).join("|");
        re = "^(?:" + re + ")$";
        if (this.negate) re = "^(?!" + re + ").*$";
        try {
          this.regexp = new RegExp(re, flags);
        } catch (ex) {
          this.regexp = false;
        }
        return this.regexp;
      }
      match(f3, partial = this.partial) {
        this.debug("match", f3, this.pattern);
        if (this.comment) return false;
        if (this.empty) return f3 === "";
        if (f3 === "/" && partial) return true;
        const options = this.options;
        if (path38.sep !== "/") {
          f3 = f3.split(path38.sep).join("/");
        }
        f3 = f3.split(slashSplit);
        this.debug(this.pattern, "split", f3);
        const set = this.set;
        this.debug(this.pattern, "set", set);
        let filename;
        for (let i3 = f3.length - 1; i3 >= 0; i3--) {
          filename = f3[i3];
          if (filename) break;
        }
        for (let i3 = 0; i3 < set.length; i3++) {
          const pattern = set[i3];
          let file = f3;
          if (options.matchBase && pattern.length === 1) {
            file = [filename];
          }
          const hit = this.matchOne(file, pattern, partial);
          if (hit) {
            if (options.flipNegate) return true;
            return !this.negate;
          }
        }
        if (options.flipNegate) return false;
        return this.negate;
      }
      static defaults(def) {
        return minimatch4.defaults(def).Minimatch;
      }
    };
    minimatch4.Minimatch = Minimatch4;
  }
});

// ../../node_modules/readdir-glob/index.js
var require_readdir_glob = __commonJS({
  "../../node_modules/readdir-glob/index.js"(exports2, module2) {
    module2.exports = readdirGlob;
    var fs43 = require("fs");
    var { EventEmitter: EventEmitter2 } = require("events");
    var { Minimatch: Minimatch4 } = require_minimatch();
    var { resolve: resolve13 } = require("path");
    function readdir3(dir, strict) {
      return new Promise((resolve14, reject) => {
        fs43.readdir(dir, { withFileTypes: true }, (err, files) => {
          if (err) {
            switch (err.code) {
              case "ENOTDIR":
                if (strict) {
                  reject(err);
                } else {
                  resolve14([]);
                }
                break;
              case "ENOTSUP":
              // Operation not supported
              case "ENOENT":
              // No such file or directory
              case "ENAMETOOLONG":
              // Filename too long
              case "UNKNOWN":
                resolve14([]);
                break;
              case "ELOOP":
              // Too many levels of symbolic links
              default:
                reject(err);
                break;
            }
          } else {
            resolve14(files);
          }
        });
      });
    }
    __name(readdir3, "readdir");
    function stat5(file, followSymlinks) {
      return new Promise((resolve14, reject) => {
        const statFunc = followSymlinks ? fs43.stat : fs43.lstat;
        statFunc(file, (err, stats) => {
          if (err) {
            switch (err.code) {
              case "ENOENT":
                if (followSymlinks) {
                  resolve14(stat5(file, false));
                } else {
                  resolve14(null);
                }
                break;
              default:
                resolve14(null);
                break;
            }
          } else {
            resolve14(stats);
          }
        });
      });
    }
    __name(stat5, "stat");
    async function* exploreWalkAsync(dir, path38, followSymlinks, useStat, shouldSkip, strict) {
      let files = await readdir3(path38 + dir, strict);
      for (const file of files) {
        let name = file.name;
        if (name === void 0) {
          name = file;
          useStat = true;
        }
        const filename = dir + "/" + name;
        const relative2 = filename.slice(1);
        const absolute = path38 + "/" + relative2;
        let stats = null;
        if (useStat || followSymlinks) {
          stats = await stat5(absolute, followSymlinks);
        }
        if (!stats && file.name !== void 0) {
          stats = file;
        }
        if (stats === null) {
          stats = { isDirectory: /* @__PURE__ */ __name(() => false, "isDirectory") };
        }
        if (stats.isDirectory()) {
          if (!shouldSkip(relative2)) {
            yield { relative: relative2, absolute, stats };
            yield* exploreWalkAsync(filename, path38, followSymlinks, useStat, shouldSkip, false);
          }
        } else {
          yield { relative: relative2, absolute, stats };
        }
      }
    }
    __name(exploreWalkAsync, "exploreWalkAsync");
    async function* explore(path38, followSymlinks, useStat, shouldSkip) {
      yield* exploreWalkAsync("", path38, followSymlinks, useStat, shouldSkip, true);
    }
    __name(explore, "explore");
    function readOptions(options) {
      return {
        pattern: options.pattern,
        dot: !!options.dot,
        noglobstar: !!options.noglobstar,
        matchBase: !!options.matchBase,
        nocase: !!options.nocase,
        ignore: options.ignore,
        skip: options.skip,
        follow: !!options.follow,
        stat: !!options.stat,
        nodir: !!options.nodir,
        mark: !!options.mark,
        silent: !!options.silent,
        absolute: !!options.absolute
      };
    }
    __name(readOptions, "readOptions");
    var ReaddirGlob = class extends EventEmitter2 {
      static {
        __name(this, "ReaddirGlob");
      }
      constructor(cwd, options, cb) {
        super();
        if (typeof options === "function") {
          cb = options;
          options = null;
        }
        this.options = readOptions(options || {});
        this.matchers = [];
        if (this.options.pattern) {
          const matchers = Array.isArray(this.options.pattern) ? this.options.pattern : [this.options.pattern];
          this.matchers = matchers.map(
            (m3) => new Minimatch4(m3, {
              dot: this.options.dot,
              noglobstar: this.options.noglobstar,
              matchBase: this.options.matchBase,
              nocase: this.options.nocase
            })
          );
        }
        this.ignoreMatchers = [];
        if (this.options.ignore) {
          const ignorePatterns = Array.isArray(this.options.ignore) ? this.options.ignore : [this.options.ignore];
          this.ignoreMatchers = ignorePatterns.map(
            (ignore) => new Minimatch4(ignore, { dot: true })
          );
        }
        this.skipMatchers = [];
        if (this.options.skip) {
          const skipPatterns = Array.isArray(this.options.skip) ? this.options.skip : [this.options.skip];
          this.skipMatchers = skipPatterns.map(
            (skip) => new Minimatch4(skip, { dot: true })
          );
        }
        this.iterator = explore(resolve13(cwd || "."), this.options.follow, this.options.stat, this._shouldSkipDirectory.bind(this));
        this.paused = false;
        this.inactive = false;
        this.aborted = false;
        if (cb) {
          this._matches = [];
          this.on("match", (match4) => this._matches.push(this.options.absolute ? match4.absolute : match4.relative));
          this.on("error", (err) => cb(err));
          this.on("end", () => cb(null, this._matches));
        }
        setTimeout(() => this._next(), 0);
      }
      _shouldSkipDirectory(relative2) {
        return this.skipMatchers.some((m3) => m3.match(relative2));
      }
      _fileMatches(relative2, isDirectory) {
        const file = relative2 + (isDirectory ? "/" : "");
        return (this.matchers.length === 0 || this.matchers.some((m3) => m3.match(file))) && !this.ignoreMatchers.some((m3) => m3.match(file)) && (!this.options.nodir || !isDirectory);
      }
      _next() {
        if (!this.paused && !this.aborted) {
          this.iterator.next().then((obj) => {
            if (!obj.done) {
              const isDirectory = obj.value.stats.isDirectory();
              if (this._fileMatches(obj.value.relative, isDirectory)) {
                let relative2 = obj.value.relative;
                let absolute = obj.value.absolute;
                if (this.options.mark && isDirectory) {
                  relative2 += "/";
                  absolute += "/";
                }
                if (this.options.stat) {
                  this.emit("match", { relative: relative2, absolute, stat: obj.value.stats });
                } else {
                  this.emit("match", { relative: relative2, absolute });
                }
              }
              this._next(this.iterator);
            } else {
              this.emit("end");
            }
          }).catch((err) => {
            this.abort();
            this.emit("error", err);
            if (!err.code && !this.options.silent) {
              console.error(err);
            }
          });
        } else {
          this.inactive = true;
        }
      }
      abort() {
        this.aborted = true;
      }
      pause() {
        this.paused = true;
      }
      resume() {
        this.paused = false;
        if (this.inactive) {
          this.inactive = false;
          this._next();
        }
      }
    };
    function readdirGlob(pattern, options, cb) {
      return new ReaddirGlob(pattern, options, cb);
    }
    __name(readdirGlob, "readdirGlob");
    readdirGlob.ReaddirGlob = ReaddirGlob;
  }
});

// ../../node_modules/async/dist/async.js
var require_async = __commonJS({
  "../../node_modules/async/dist/async.js"(exports2, module2) {
    (function(global2, factory) {
      typeof exports2 === "object" && typeof module2 !== "undefined" ? factory(exports2) : typeof define === "function" && define.amd ? define(["exports"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2.async = {}));
    })(exports2, (function(exports3) {
      "use strict";
      function apply(fn, ...args) {
        return (...callArgs) => fn(...args, ...callArgs);
      }
      __name(apply, "apply");
      function initialParams(fn) {
        return function(...args) {
          var callback = args.pop();
          return fn.call(this, args, callback);
        };
      }
      __name(initialParams, "initialParams");
      var hasQueueMicrotask = typeof queueMicrotask === "function" && queueMicrotask;
      var hasSetImmediate = typeof setImmediate === "function" && setImmediate;
      var hasNextTick = typeof process === "object" && typeof process.nextTick === "function";
      function fallback(fn) {
        setTimeout(fn, 0);
      }
      __name(fallback, "fallback");
      function wrap(defer2) {
        return (fn, ...args) => defer2(() => fn(...args));
      }
      __name(wrap, "wrap");
      var _defer$1;
      if (hasQueueMicrotask) {
        _defer$1 = queueMicrotask;
      } else if (hasSetImmediate) {
        _defer$1 = setImmediate;
      } else if (hasNextTick) {
        _defer$1 = process.nextTick;
      } else {
        _defer$1 = fallback;
      }
      var setImmediate$1 = wrap(_defer$1);
      function asyncify(func) {
        if (isAsync(func)) {
          return function(...args) {
            const callback = args.pop();
            const promise = func.apply(this, args);
            return handlePromise(promise, callback);
          };
        }
        return initialParams(function(args, callback) {
          var result2;
          try {
            result2 = func.apply(this, args);
          } catch (e3) {
            return callback(e3);
          }
          if (result2 && typeof result2.then === "function") {
            return handlePromise(result2, callback);
          } else {
            callback(null, result2);
          }
        });
      }
      __name(asyncify, "asyncify");
      function handlePromise(promise, callback) {
        return promise.then((value) => {
          invokeCallback(callback, null, value);
        }, (err) => {
          invokeCallback(callback, err && (err instanceof Error || err.message) ? err : new Error(err));
        });
      }
      __name(handlePromise, "handlePromise");
      function invokeCallback(callback, error5, value) {
        try {
          callback(error5, value);
        } catch (err) {
          setImmediate$1((e3) => {
            throw e3;
          }, err);
        }
      }
      __name(invokeCallback, "invokeCallback");
      function isAsync(fn) {
        return fn[Symbol.toStringTag] === "AsyncFunction";
      }
      __name(isAsync, "isAsync");
      function isAsyncGenerator(fn) {
        return fn[Symbol.toStringTag] === "AsyncGenerator";
      }
      __name(isAsyncGenerator, "isAsyncGenerator");
      function isAsyncIterable(obj) {
        return typeof obj[Symbol.asyncIterator] === "function";
      }
      __name(isAsyncIterable, "isAsyncIterable");
      function wrapAsync(asyncFn) {
        if (typeof asyncFn !== "function") throw new Error("expected a function");
        return isAsync(asyncFn) ? asyncify(asyncFn) : asyncFn;
      }
      __name(wrapAsync, "wrapAsync");
      function awaitify(asyncFn, arity) {
        if (!arity) arity = asyncFn.length;
        if (!arity) throw new Error("arity is undefined");
        function awaitable(...args) {
          if (typeof args[arity - 1] === "function") {
            return asyncFn.apply(this, args);
          }
          return new Promise((resolve13, reject2) => {
            args[arity - 1] = (err, ...cbArgs) => {
              if (err) return reject2(err);
              resolve13(cbArgs.length > 1 ? cbArgs : cbArgs[0]);
            };
            asyncFn.apply(this, args);
          });
        }
        __name(awaitable, "awaitable");
        return awaitable;
      }
      __name(awaitify, "awaitify");
      function applyEach$1(eachfn) {
        return /* @__PURE__ */ __name(function applyEach2(fns, ...callArgs) {
          const go = awaitify(function(callback) {
            var that = this;
            return eachfn(fns, (fn, cb) => {
              wrapAsync(fn).apply(that, callArgs.concat(cb));
            }, callback);
          });
          return go;
        }, "applyEach");
      }
      __name(applyEach$1, "applyEach$1");
      function _asyncMap(eachfn, arr, iteratee, callback) {
        arr = arr || [];
        var results = [];
        var counter = 0;
        var _iteratee = wrapAsync(iteratee);
        return eachfn(arr, (value, _3, iterCb) => {
          var index2 = counter++;
          _iteratee(value, (err, v6) => {
            results[index2] = v6;
            iterCb(err);
          });
        }, (err) => {
          callback(err, results);
        });
      }
      __name(_asyncMap, "_asyncMap");
      function isArrayLike(value) {
        return value && typeof value.length === "number" && value.length >= 0 && value.length % 1 === 0;
      }
      __name(isArrayLike, "isArrayLike");
      const breakLoop = {};
      function once(fn) {
        function wrapper(...args) {
          if (fn === null) return;
          var callFn = fn;
          fn = null;
          callFn.apply(this, args);
        }
        __name(wrapper, "wrapper");
        Object.assign(wrapper, fn);
        return wrapper;
      }
      __name(once, "once");
      function getIterator(coll) {
        return coll[Symbol.iterator] && coll[Symbol.iterator]();
      }
      __name(getIterator, "getIterator");
      function createArrayIterator(coll) {
        var i3 = -1;
        var len = coll.length;
        return /* @__PURE__ */ __name(function next() {
          return ++i3 < len ? { value: coll[i3], key: i3 } : null;
        }, "next");
      }
      __name(createArrayIterator, "createArrayIterator");
      function createES2015Iterator(iterator) {
        var i3 = -1;
        return /* @__PURE__ */ __name(function next() {
          var item = iterator.next();
          if (item.done)
            return null;
          i3++;
          return { value: item.value, key: i3 };
        }, "next");
      }
      __name(createES2015Iterator, "createES2015Iterator");
      function createObjectIterator(obj) {
        var okeys = obj ? Object.keys(obj) : [];
        var i3 = -1;
        var len = okeys.length;
        return /* @__PURE__ */ __name(function next() {
          var key = okeys[++i3];
          if (key === "__proto__") {
            return next();
          }
          return i3 < len ? { value: obj[key], key } : null;
        }, "next");
      }
      __name(createObjectIterator, "createObjectIterator");
      function createIterator(coll) {
        if (isArrayLike(coll)) {
          return createArrayIterator(coll);
        }
        var iterator = getIterator(coll);
        return iterator ? createES2015Iterator(iterator) : createObjectIterator(coll);
      }
      __name(createIterator, "createIterator");
      function onlyOnce(fn) {
        return function(...args) {
          if (fn === null) throw new Error("Callback was already called.");
          var callFn = fn;
          fn = null;
          callFn.apply(this, args);
        };
      }
      __name(onlyOnce, "onlyOnce");
      function asyncEachOfLimit(generator, limit, iteratee, callback) {
        let done = false;
        let canceled = false;
        let awaiting = false;
        let running = 0;
        let idx = 0;
        function replenish() {
          if (running >= limit || awaiting || done) return;
          awaiting = true;
          generator.next().then(({ value, done: iterDone }) => {
            if (canceled || done) return;
            awaiting = false;
            if (iterDone) {
              done = true;
              if (running <= 0) {
                callback(null);
              }
              return;
            }
            running++;
            iteratee(value, idx, iterateeCallback);
            idx++;
            replenish();
          }).catch(handleError);
        }
        __name(replenish, "replenish");
        function iterateeCallback(err, result2) {
          running -= 1;
          if (canceled) return;
          if (err) return handleError(err);
          if (err === false) {
            done = true;
            canceled = true;
            return;
          }
          if (result2 === breakLoop || done && running <= 0) {
            done = true;
            return callback(null);
          }
          replenish();
        }
        __name(iterateeCallback, "iterateeCallback");
        function handleError(err) {
          if (canceled) return;
          awaiting = false;
          done = true;
          callback(err);
        }
        __name(handleError, "handleError");
        replenish();
      }
      __name(asyncEachOfLimit, "asyncEachOfLimit");
      var eachOfLimit$2 = /* @__PURE__ */ __name((limit) => {
        return (obj, iteratee, callback) => {
          callback = once(callback);
          if (limit <= 0) {
            throw new RangeError("concurrency limit cannot be less than 1");
          }
          if (!obj) {
            return callback(null);
          }
          if (isAsyncGenerator(obj)) {
            return asyncEachOfLimit(obj, limit, iteratee, callback);
          }
          if (isAsyncIterable(obj)) {
            return asyncEachOfLimit(obj[Symbol.asyncIterator](), limit, iteratee, callback);
          }
          var nextElem = createIterator(obj);
          var done = false;
          var canceled = false;
          var running = 0;
          var looping = false;
          function iterateeCallback(err, value) {
            if (canceled) return;
            running -= 1;
            if (err) {
              done = true;
              callback(err);
            } else if (err === false) {
              done = true;
              canceled = true;
            } else if (value === breakLoop || done && running <= 0) {
              done = true;
              return callback(null);
            } else if (!looping) {
              replenish();
            }
          }
          __name(iterateeCallback, "iterateeCallback");
          function replenish() {
            looping = true;
            while (running < limit && !done) {
              var elem = nextElem();
              if (elem === null) {
                done = true;
                if (running <= 0) {
                  callback(null);
                }
                return;
              }
              running += 1;
              iteratee(elem.value, elem.key, onlyOnce(iterateeCallback));
            }
            looping = false;
          }
          __name(replenish, "replenish");
          replenish();
        };
      }, "eachOfLimit$2");
      function eachOfLimit(coll, limit, iteratee, callback) {
        return eachOfLimit$2(limit)(coll, wrapAsync(iteratee), callback);
      }
      __name(eachOfLimit, "eachOfLimit");
      var eachOfLimit$1 = awaitify(eachOfLimit, 4);
      function eachOfArrayLike(coll, iteratee, callback) {
        callback = once(callback);
        var index2 = 0, completed = 0, { length } = coll, canceled = false;
        if (length === 0) {
          callback(null);
        }
        function iteratorCallback(err, value) {
          if (err === false) {
            canceled = true;
          }
          if (canceled === true) return;
          if (err) {
            callback(err);
          } else if (++completed === length || value === breakLoop) {
            callback(null);
          }
        }
        __name(iteratorCallback, "iteratorCallback");
        for (; index2 < length; index2++) {
          iteratee(coll[index2], index2, onlyOnce(iteratorCallback));
        }
      }
      __name(eachOfArrayLike, "eachOfArrayLike");
      function eachOfGeneric(coll, iteratee, callback) {
        return eachOfLimit$1(coll, Infinity, iteratee, callback);
      }
      __name(eachOfGeneric, "eachOfGeneric");
      function eachOf(coll, iteratee, callback) {
        var eachOfImplementation = isArrayLike(coll) ? eachOfArrayLike : eachOfGeneric;
        return eachOfImplementation(coll, wrapAsync(iteratee), callback);
      }
      __name(eachOf, "eachOf");
      var eachOf$1 = awaitify(eachOf, 3);
      function map3(coll, iteratee, callback) {
        return _asyncMap(eachOf$1, coll, iteratee, callback);
      }
      __name(map3, "map");
      var map$1 = awaitify(map3, 3);
      var applyEach = applyEach$1(map$1);
      function eachOfSeries(coll, iteratee, callback) {
        return eachOfLimit$1(coll, 1, iteratee, callback);
      }
      __name(eachOfSeries, "eachOfSeries");
      var eachOfSeries$1 = awaitify(eachOfSeries, 3);
      function mapSeries(coll, iteratee, callback) {
        return _asyncMap(eachOfSeries$1, coll, iteratee, callback);
      }
      __name(mapSeries, "mapSeries");
      var mapSeries$1 = awaitify(mapSeries, 3);
      var applyEachSeries = applyEach$1(mapSeries$1);
      const PROMISE_SYMBOL = Symbol("promiseCallback");
      function promiseCallback() {
        let resolve13, reject2;
        function callback(err, ...args) {
          if (err) return reject2(err);
          resolve13(args.length > 1 ? args : args[0]);
        }
        __name(callback, "callback");
        callback[PROMISE_SYMBOL] = new Promise((res, rej) => {
          resolve13 = res, reject2 = rej;
        });
        return callback;
      }
      __name(promiseCallback, "promiseCallback");
      function auto(tasks, concurrency, callback) {
        if (typeof concurrency !== "number") {
          callback = concurrency;
          concurrency = null;
        }
        callback = once(callback || promiseCallback());
        var numTasks = Object.keys(tasks).length;
        if (!numTasks) {
          return callback(null);
        }
        if (!concurrency) {
          concurrency = numTasks;
        }
        var results = {};
        var runningTasks = 0;
        var canceled = false;
        var hasError = false;
        var listeners = /* @__PURE__ */ Object.create(null);
        var readyTasks = [];
        var readyToCheck = [];
        var uncheckedDependencies = {};
        Object.keys(tasks).forEach((key) => {
          var task = tasks[key];
          if (!Array.isArray(task)) {
            enqueueTask(key, [task]);
            readyToCheck.push(key);
            return;
          }
          var dependencies = task.slice(0, task.length - 1);
          var remainingDependencies = dependencies.length;
          if (remainingDependencies === 0) {
            enqueueTask(key, task);
            readyToCheck.push(key);
            return;
          }
          uncheckedDependencies[key] = remainingDependencies;
          dependencies.forEach((dependencyName) => {
            if (!tasks[dependencyName]) {
              throw new Error("async.auto task `" + key + "` has a non-existent dependency `" + dependencyName + "` in " + dependencies.join(", "));
            }
            addListener(dependencyName, () => {
              remainingDependencies--;
              if (remainingDependencies === 0) {
                enqueueTask(key, task);
              }
            });
          });
        });
        checkForDeadlocks();
        processQueue();
        function enqueueTask(key, task) {
          readyTasks.push(() => runTask(key, task));
        }
        __name(enqueueTask, "enqueueTask");
        function processQueue() {
          if (canceled) return;
          if (readyTasks.length === 0 && runningTasks === 0) {
            return callback(null, results);
          }
          while (readyTasks.length && runningTasks < concurrency) {
            var run = readyTasks.shift();
            run();
          }
        }
        __name(processQueue, "processQueue");
        function addListener(taskName, fn) {
          var taskListeners = listeners[taskName];
          if (!taskListeners) {
            taskListeners = listeners[taskName] = [];
          }
          taskListeners.push(fn);
        }
        __name(addListener, "addListener");
        function taskComplete(taskName) {
          var taskListeners = listeners[taskName] || [];
          taskListeners.forEach((fn) => fn());
          processQueue();
        }
        __name(taskComplete, "taskComplete");
        function runTask(key, task) {
          if (hasError) return;
          var taskCallback = onlyOnce((err, ...result2) => {
            runningTasks--;
            if (err === false) {
              canceled = true;
              return;
            }
            if (result2.length < 2) {
              [result2] = result2;
            }
            if (err) {
              var safeResults = {};
              Object.keys(results).forEach((rkey) => {
                safeResults[rkey] = results[rkey];
              });
              safeResults[key] = result2;
              hasError = true;
              listeners = /* @__PURE__ */ Object.create(null);
              if (canceled) return;
              callback(err, safeResults);
            } else {
              results[key] = result2;
              taskComplete(key);
            }
          });
          runningTasks++;
          var taskFn = wrapAsync(task[task.length - 1]);
          if (task.length > 1) {
            taskFn(results, taskCallback);
          } else {
            taskFn(taskCallback);
          }
        }
        __name(runTask, "runTask");
        function checkForDeadlocks() {
          var currentTask;
          var counter = 0;
          while (readyToCheck.length) {
            currentTask = readyToCheck.pop();
            counter++;
            getDependents(currentTask).forEach((dependent) => {
              if (--uncheckedDependencies[dependent] === 0) {
                readyToCheck.push(dependent);
              }
            });
          }
          if (counter !== numTasks) {
            throw new Error(
              "async.auto cannot execute tasks due to a recursive dependency"
            );
          }
        }
        __name(checkForDeadlocks, "checkForDeadlocks");
        function getDependents(taskName) {
          var result2 = [];
          Object.keys(tasks).forEach((key) => {
            const task = tasks[key];
            if (Array.isArray(task) && task.indexOf(taskName) >= 0) {
              result2.push(key);
            }
          });
          return result2;
        }
        __name(getDependents, "getDependents");
        return callback[PROMISE_SYMBOL];
      }
      __name(auto, "auto");
      var FN_ARGS = /^(?:async\s)?(?:function)?\s*(?:\w+\s*)?\(([^)]+)\)(?:\s*{)/;
      var ARROW_FN_ARGS = /^(?:async\s)?\s*(?:\(\s*)?((?:[^)=\s]\s*)*)(?:\)\s*)?=>/;
      var FN_ARG_SPLIT = /,/;
      var FN_ARG = /(=.+)?(\s*)$/;
      function stripComments(string) {
        let stripped = "";
        let index2 = 0;
        let endBlockComment = string.indexOf("*/");
        while (index2 < string.length) {
          if (string[index2] === "/" && string[index2 + 1] === "/") {
            let endIndex = string.indexOf("\n", index2);
            index2 = endIndex === -1 ? string.length : endIndex;
          } else if (endBlockComment !== -1 && string[index2] === "/" && string[index2 + 1] === "*") {
            let endIndex = string.indexOf("*/", index2);
            if (endIndex !== -1) {
              index2 = endIndex + 2;
              endBlockComment = string.indexOf("*/", index2);
            } else {
              stripped += string[index2];
              index2++;
            }
          } else {
            stripped += string[index2];
            index2++;
          }
        }
        return stripped;
      }
      __name(stripComments, "stripComments");
      function parseParams(func) {
        const src = stripComments(func.toString());
        let match4 = src.match(FN_ARGS);
        if (!match4) {
          match4 = src.match(ARROW_FN_ARGS);
        }
        if (!match4) throw new Error("could not parse args in autoInject\nSource:\n" + src);
        let [, args] = match4;
        return args.replace(/\s/g, "").split(FN_ARG_SPLIT).map((arg) => arg.replace(FN_ARG, "").trim());
      }
      __name(parseParams, "parseParams");
      function autoInject(tasks, callback) {
        var newTasks = {};
        Object.keys(tasks).forEach((key) => {
          var taskFn = tasks[key];
          var params;
          var fnIsAsync = isAsync(taskFn);
          var hasNoDeps = !fnIsAsync && taskFn.length === 1 || fnIsAsync && taskFn.length === 0;
          if (Array.isArray(taskFn)) {
            params = [...taskFn];
            taskFn = params.pop();
            newTasks[key] = params.concat(params.length > 0 ? newTask : taskFn);
          } else if (hasNoDeps) {
            newTasks[key] = taskFn;
          } else {
            params = parseParams(taskFn);
            if (taskFn.length === 0 && !fnIsAsync && params.length === 0) {
              throw new Error("autoInject task functions require explicit parameters.");
            }
            if (!fnIsAsync) params.pop();
            newTasks[key] = params.concat(newTask);
          }
          function newTask(results, taskCb) {
            var newArgs = params.map((name) => results[name]);
            newArgs.push(taskCb);
            wrapAsync(taskFn)(...newArgs);
          }
          __name(newTask, "newTask");
        });
        return auto(newTasks, callback);
      }
      __name(autoInject, "autoInject");
      class DLL {
        static {
          __name(this, "DLL");
        }
        constructor() {
          this.head = this.tail = null;
          this.length = 0;
        }
        removeLink(node) {
          if (node.prev) node.prev.next = node.next;
          else this.head = node.next;
          if (node.next) node.next.prev = node.prev;
          else this.tail = node.prev;
          node.prev = node.next = null;
          this.length -= 1;
          return node;
        }
        empty() {
          while (this.head) this.shift();
          return this;
        }
        insertAfter(node, newNode) {
          newNode.prev = node;
          newNode.next = node.next;
          if (node.next) node.next.prev = newNode;
          else this.tail = newNode;
          node.next = newNode;
          this.length += 1;
        }
        insertBefore(node, newNode) {
          newNode.prev = node.prev;
          newNode.next = node;
          if (node.prev) node.prev.next = newNode;
          else this.head = newNode;
          node.prev = newNode;
          this.length += 1;
        }
        unshift(node) {
          if (this.head) this.insertBefore(this.head, node);
          else setInitial(this, node);
        }
        push(node) {
          if (this.tail) this.insertAfter(this.tail, node);
          else setInitial(this, node);
        }
        shift() {
          return this.head && this.removeLink(this.head);
        }
        pop() {
          return this.tail && this.removeLink(this.tail);
        }
        toArray() {
          return [...this];
        }
        *[Symbol.iterator]() {
          var cur = this.head;
          while (cur) {
            yield cur.data;
            cur = cur.next;
          }
        }
        remove(testFn) {
          var curr = this.head;
          while (curr) {
            var { next } = curr;
            if (testFn(curr)) {
              this.removeLink(curr);
            }
            curr = next;
          }
          return this;
        }
      }
      function setInitial(dll, node) {
        dll.length = 1;
        dll.head = dll.tail = node;
      }
      __name(setInitial, "setInitial");
      function queue$1(worker, concurrency, payload2) {
        if (concurrency == null) {
          concurrency = 1;
        } else if (concurrency === 0) {
          throw new RangeError("Concurrency must not be zero");
        }
        var _worker = wrapAsync(worker);
        var numRunning = 0;
        var workersList = [];
        const events = {
          error: [],
          drain: [],
          saturated: [],
          unsaturated: [],
          empty: []
        };
        function on(event, handler) {
          events[event].push(handler);
        }
        __name(on, "on");
        function once2(event, handler) {
          const handleAndRemove = /* @__PURE__ */ __name((...args) => {
            off(event, handleAndRemove);
            handler(...args);
          }, "handleAndRemove");
          events[event].push(handleAndRemove);
        }
        __name(once2, "once");
        function off(event, handler) {
          if (!event) return Object.keys(events).forEach((ev) => events[ev] = []);
          if (!handler) return events[event] = [];
          events[event] = events[event].filter((ev) => ev !== handler);
        }
        __name(off, "off");
        function trigger(event, ...args) {
          events[event].forEach((handler) => handler(...args));
        }
        __name(trigger, "trigger");
        var processingScheduled = false;
        function _insert(data3, insertAtFront, rejectOnError, callback) {
          if (callback != null && typeof callback !== "function") {
            throw new Error("task callback must be a function");
          }
          q3.started = true;
          var res, rej;
          function promiseCallback2(err, ...args) {
            if (err) return rejectOnError ? rej(err) : res();
            if (args.length <= 1) return res(args[0]);
            res(args);
          }
          __name(promiseCallback2, "promiseCallback");
          var item = q3._createTaskItem(
            data3,
            rejectOnError ? promiseCallback2 : callback || promiseCallback2
          );
          if (insertAtFront) {
            q3._tasks.unshift(item);
          } else {
            q3._tasks.push(item);
          }
          if (!processingScheduled) {
            processingScheduled = true;
            setImmediate$1(() => {
              processingScheduled = false;
              q3.process();
            });
          }
          if (rejectOnError || !callback) {
            return new Promise((resolve13, reject2) => {
              res = resolve13;
              rej = reject2;
            });
          }
        }
        __name(_insert, "_insert");
        function _createCB(tasks) {
          return function(err, ...args) {
            numRunning -= 1;
            for (var i3 = 0, l3 = tasks.length; i3 < l3; i3++) {
              var task = tasks[i3];
              var index2 = workersList.indexOf(task);
              if (index2 === 0) {
                workersList.shift();
              } else if (index2 > 0) {
                workersList.splice(index2, 1);
              }
              task.callback(err, ...args);
              if (err != null) {
                trigger("error", err, task.data);
              }
            }
            if (numRunning <= q3.concurrency - q3.buffer) {
              trigger("unsaturated");
            }
            if (q3.idle()) {
              trigger("drain");
            }
            q3.process();
          };
        }
        __name(_createCB, "_createCB");
        function _maybeDrain(data3) {
          if (data3.length === 0 && q3.idle()) {
            setImmediate$1(() => trigger("drain"));
            return true;
          }
          return false;
        }
        __name(_maybeDrain, "_maybeDrain");
        const eventMethod = /* @__PURE__ */ __name((name) => (handler) => {
          if (!handler) {
            return new Promise((resolve13, reject2) => {
              once2(name, (err, data3) => {
                if (err) return reject2(err);
                resolve13(data3);
              });
            });
          }
          off(name);
          on(name, handler);
        }, "eventMethod");
        var isProcessing = false;
        var q3 = {
          _tasks: new DLL(),
          _createTaskItem(data3, callback) {
            return {
              data: data3,
              callback
            };
          },
          *[Symbol.iterator]() {
            yield* q3._tasks[Symbol.iterator]();
          },
          concurrency,
          payload: payload2,
          buffer: concurrency / 4,
          started: false,
          paused: false,
          push(data3, callback) {
            if (Array.isArray(data3)) {
              if (_maybeDrain(data3)) return;
              return data3.map((datum) => _insert(datum, false, false, callback));
            }
            return _insert(data3, false, false, callback);
          },
          pushAsync(data3, callback) {
            if (Array.isArray(data3)) {
              if (_maybeDrain(data3)) return;
              return data3.map((datum) => _insert(datum, false, true, callback));
            }
            return _insert(data3, false, true, callback);
          },
          kill() {
            off();
            q3._tasks.empty();
          },
          unshift(data3, callback) {
            if (Array.isArray(data3)) {
              if (_maybeDrain(data3)) return;
              return data3.map((datum) => _insert(datum, true, false, callback));
            }
            return _insert(data3, true, false, callback);
          },
          unshiftAsync(data3, callback) {
            if (Array.isArray(data3)) {
              if (_maybeDrain(data3)) return;
              return data3.map((datum) => _insert(datum, true, true, callback));
            }
            return _insert(data3, true, true, callback);
          },
          remove(testFn) {
            q3._tasks.remove(testFn);
          },
          process() {
            if (isProcessing) {
              return;
            }
            isProcessing = true;
            while (!q3.paused && numRunning < q3.concurrency && q3._tasks.length) {
              var tasks = [], data3 = [];
              var l3 = q3._tasks.length;
              if (q3.payload) l3 = Math.min(l3, q3.payload);
              for (var i3 = 0; i3 < l3; i3++) {
                var node = q3._tasks.shift();
                tasks.push(node);
                workersList.push(node);
                data3.push(node.data);
              }
              numRunning += 1;
              if (q3._tasks.length === 0) {
                trigger("empty");
              }
              if (numRunning === q3.concurrency) {
                trigger("saturated");
              }
              var cb = onlyOnce(_createCB(tasks));
              _worker(data3, cb);
            }
            isProcessing = false;
          },
          length() {
            return q3._tasks.length;
          },
          running() {
            return numRunning;
          },
          workersList() {
            return workersList;
          },
          idle() {
            return q3._tasks.length + numRunning === 0;
          },
          pause() {
            q3.paused = true;
          },
          resume() {
            if (q3.paused === false) {
              return;
            }
            q3.paused = false;
            setImmediate$1(q3.process);
          }
        };
        Object.defineProperties(q3, {
          saturated: {
            writable: false,
            value: eventMethod("saturated")
          },
          unsaturated: {
            writable: false,
            value: eventMethod("unsaturated")
          },
          empty: {
            writable: false,
            value: eventMethod("empty")
          },
          drain: {
            writable: false,
            value: eventMethod("drain")
          },
          error: {
            writable: false,
            value: eventMethod("error")
          }
        });
        return q3;
      }
      __name(queue$1, "queue$1");
      function cargo$1(worker, payload2) {
        return queue$1(worker, 1, payload2);
      }
      __name(cargo$1, "cargo$1");
      function cargo(worker, concurrency, payload2) {
        return queue$1(worker, concurrency, payload2);
      }
      __name(cargo, "cargo");
      function reduce(coll, memo, iteratee, callback) {
        callback = once(callback);
        var _iteratee = wrapAsync(iteratee);
        return eachOfSeries$1(coll, (x3, i3, iterCb) => {
          _iteratee(memo, x3, (err, v6) => {
            memo = v6;
            iterCb(err);
          });
        }, (err) => callback(err, memo));
      }
      __name(reduce, "reduce");
      var reduce$1 = awaitify(reduce, 4);
      function seq(...functions) {
        var _functions = functions.map(wrapAsync);
        return function(...args) {
          var that = this;
          var cb = args[args.length - 1];
          if (typeof cb == "function") {
            args.pop();
          } else {
            cb = promiseCallback();
          }
          reduce$1(
            _functions,
            args,
            (newargs, fn, iterCb) => {
              fn.apply(that, newargs.concat((err, ...nextargs) => {
                iterCb(err, nextargs);
              }));
            },
            (err, results) => cb(err, ...results)
          );
          return cb[PROMISE_SYMBOL];
        };
      }
      __name(seq, "seq");
      function compose(...args) {
        return seq(...args.reverse());
      }
      __name(compose, "compose");
      function mapLimit(coll, limit, iteratee, callback) {
        return _asyncMap(eachOfLimit$2(limit), coll, iteratee, callback);
      }
      __name(mapLimit, "mapLimit");
      var mapLimit$1 = awaitify(mapLimit, 4);
      function concatLimit(coll, limit, iteratee, callback) {
        var _iteratee = wrapAsync(iteratee);
        return mapLimit$1(coll, limit, (val, iterCb) => {
          _iteratee(val, (err, ...args) => {
            if (err) return iterCb(err);
            return iterCb(err, args);
          });
        }, (err, mapResults) => {
          var result2 = [];
          for (var i3 = 0; i3 < mapResults.length; i3++) {
            if (mapResults[i3]) {
              result2 = result2.concat(...mapResults[i3]);
            }
          }
          return callback(err, result2);
        });
      }
      __name(concatLimit, "concatLimit");
      var concatLimit$1 = awaitify(concatLimit, 4);
      function concat(coll, iteratee, callback) {
        return concatLimit$1(coll, Infinity, iteratee, callback);
      }
      __name(concat, "concat");
      var concat$1 = awaitify(concat, 3);
      function concatSeries(coll, iteratee, callback) {
        return concatLimit$1(coll, 1, iteratee, callback);
      }
      __name(concatSeries, "concatSeries");
      var concatSeries$1 = awaitify(concatSeries, 3);
      function constant$1(...args) {
        return function(...ignoredArgs) {
          var callback = ignoredArgs.pop();
          return callback(null, ...args);
        };
      }
      __name(constant$1, "constant$1");
      function _createTester(check, getResult) {
        return (eachfn, arr, _iteratee, cb) => {
          var testPassed = false;
          var testResult;
          const iteratee = wrapAsync(_iteratee);
          eachfn(arr, (value, _3, callback) => {
            iteratee(value, (err, result2) => {
              if (err || err === false) return callback(err);
              if (check(result2) && !testResult) {
                testPassed = true;
                testResult = getResult(true, value);
                return callback(null, breakLoop);
              }
              callback();
            });
          }, (err) => {
            if (err) return cb(err);
            cb(null, testPassed ? testResult : getResult(false));
          });
        };
      }
      __name(_createTester, "_createTester");
      function detect(coll, iteratee, callback) {
        return _createTester((bool) => bool, (res, item) => item)(eachOf$1, coll, iteratee, callback);
      }
      __name(detect, "detect");
      var detect$1 = awaitify(detect, 3);
      function detectLimit(coll, limit, iteratee, callback) {
        return _createTester((bool) => bool, (res, item) => item)(eachOfLimit$2(limit), coll, iteratee, callback);
      }
      __name(detectLimit, "detectLimit");
      var detectLimit$1 = awaitify(detectLimit, 4);
      function detectSeries(coll, iteratee, callback) {
        return _createTester((bool) => bool, (res, item) => item)(eachOfLimit$2(1), coll, iteratee, callback);
      }
      __name(detectSeries, "detectSeries");
      var detectSeries$1 = awaitify(detectSeries, 3);
      function consoleFunc(name) {
        return (fn, ...args) => wrapAsync(fn)(...args, (err, ...resultArgs) => {
          if (typeof console === "object") {
            if (err) {
              if (console.error) {
                console.error(err);
              }
            } else if (console[name]) {
              resultArgs.forEach((x3) => console[name](x3));
            }
          }
        });
      }
      __name(consoleFunc, "consoleFunc");
      var dir = consoleFunc("dir");
      function doWhilst(iteratee, test, callback) {
        callback = onlyOnce(callback);
        var _fn = wrapAsync(iteratee);
        var _test = wrapAsync(test);
        var results;
        function next(err, ...args) {
          if (err) return callback(err);
          if (err === false) return;
          results = args;
          _test(...args, check);
        }
        __name(next, "next");
        function check(err, truth) {
          if (err) return callback(err);
          if (err === false) return;
          if (!truth) return callback(null, ...results);
          _fn(next);
        }
        __name(check, "check");
        return check(null, true);
      }
      __name(doWhilst, "doWhilst");
      var doWhilst$1 = awaitify(doWhilst, 3);
      function doUntil(iteratee, test, callback) {
        const _test = wrapAsync(test);
        return doWhilst$1(iteratee, (...args) => {
          const cb = args.pop();
          _test(...args, (err, truth) => cb(err, !truth));
        }, callback);
      }
      __name(doUntil, "doUntil");
      function _withoutIndex(iteratee) {
        return (value, index2, callback) => iteratee(value, callback);
      }
      __name(_withoutIndex, "_withoutIndex");
      function eachLimit$2(coll, iteratee, callback) {
        return eachOf$1(coll, _withoutIndex(wrapAsync(iteratee)), callback);
      }
      __name(eachLimit$2, "eachLimit$2");
      var each = awaitify(eachLimit$2, 3);
      function eachLimit(coll, limit, iteratee, callback) {
        return eachOfLimit$2(limit)(coll, _withoutIndex(wrapAsync(iteratee)), callback);
      }
      __name(eachLimit, "eachLimit");
      var eachLimit$1 = awaitify(eachLimit, 4);
      function eachSeries(coll, iteratee, callback) {
        return eachLimit$1(coll, 1, iteratee, callback);
      }
      __name(eachSeries, "eachSeries");
      var eachSeries$1 = awaitify(eachSeries, 3);
      function ensureAsync(fn) {
        if (isAsync(fn)) return fn;
        return function(...args) {
          var callback = args.pop();
          var sync2 = true;
          args.push((...innerArgs) => {
            if (sync2) {
              setImmediate$1(() => callback(...innerArgs));
            } else {
              callback(...innerArgs);
            }
          });
          fn.apply(this, args);
          sync2 = false;
        };
      }
      __name(ensureAsync, "ensureAsync");
      function every(coll, iteratee, callback) {
        return _createTester((bool) => !bool, (res) => !res)(eachOf$1, coll, iteratee, callback);
      }
      __name(every, "every");
      var every$1 = awaitify(every, 3);
      function everyLimit(coll, limit, iteratee, callback) {
        return _createTester((bool) => !bool, (res) => !res)(eachOfLimit$2(limit), coll, iteratee, callback);
      }
      __name(everyLimit, "everyLimit");
      var everyLimit$1 = awaitify(everyLimit, 4);
      function everySeries(coll, iteratee, callback) {
        return _createTester((bool) => !bool, (res) => !res)(eachOfSeries$1, coll, iteratee, callback);
      }
      __name(everySeries, "everySeries");
      var everySeries$1 = awaitify(everySeries, 3);
      function filterArray(eachfn, arr, iteratee, callback) {
        var truthValues = new Array(arr.length);
        eachfn(arr, (x3, index2, iterCb) => {
          iteratee(x3, (err, v6) => {
            truthValues[index2] = !!v6;
            iterCb(err);
          });
        }, (err) => {
          if (err) return callback(err);
          var results = [];
          for (var i3 = 0; i3 < arr.length; i3++) {
            if (truthValues[i3]) results.push(arr[i3]);
          }
          callback(null, results);
        });
      }
      __name(filterArray, "filterArray");
      function filterGeneric(eachfn, coll, iteratee, callback) {
        var results = [];
        eachfn(coll, (x3, index2, iterCb) => {
          iteratee(x3, (err, v6) => {
            if (err) return iterCb(err);
            if (v6) {
              results.push({ index: index2, value: x3 });
            }
            iterCb(err);
          });
        }, (err) => {
          if (err) return callback(err);
          callback(null, results.sort((a3, b3) => a3.index - b3.index).map((v6) => v6.value));
        });
      }
      __name(filterGeneric, "filterGeneric");
      function _filter(eachfn, coll, iteratee, callback) {
        var filter5 = isArrayLike(coll) ? filterArray : filterGeneric;
        return filter5(eachfn, coll, wrapAsync(iteratee), callback);
      }
      __name(_filter, "_filter");
      function filter4(coll, iteratee, callback) {
        return _filter(eachOf$1, coll, iteratee, callback);
      }
      __name(filter4, "filter");
      var filter$1 = awaitify(filter4, 3);
      function filterLimit(coll, limit, iteratee, callback) {
        return _filter(eachOfLimit$2(limit), coll, iteratee, callback);
      }
      __name(filterLimit, "filterLimit");
      var filterLimit$1 = awaitify(filterLimit, 4);
      function filterSeries(coll, iteratee, callback) {
        return _filter(eachOfSeries$1, coll, iteratee, callback);
      }
      __name(filterSeries, "filterSeries");
      var filterSeries$1 = awaitify(filterSeries, 3);
      function forever(fn, errback) {
        var done = onlyOnce(errback);
        var task = wrapAsync(ensureAsync(fn));
        function next(err) {
          if (err) return done(err);
          if (err === false) return;
          task(next);
        }
        __name(next, "next");
        return next();
      }
      __name(forever, "forever");
      var forever$1 = awaitify(forever, 2);
      function groupByLimit(coll, limit, iteratee, callback) {
        var _iteratee = wrapAsync(iteratee);
        return mapLimit$1(coll, limit, (val, iterCb) => {
          _iteratee(val, (err, key) => {
            if (err) return iterCb(err);
            return iterCb(err, { key, val });
          });
        }, (err, mapResults) => {
          var result2 = {};
          var { hasOwnProperty: hasOwnProperty2 } = Object.prototype;
          for (var i3 = 0; i3 < mapResults.length; i3++) {
            if (mapResults[i3]) {
              var { key } = mapResults[i3];
              var { val } = mapResults[i3];
              if (hasOwnProperty2.call(result2, key)) {
                result2[key].push(val);
              } else {
                result2[key] = [val];
              }
            }
          }
          return callback(err, result2);
        });
      }
      __name(groupByLimit, "groupByLimit");
      var groupByLimit$1 = awaitify(groupByLimit, 4);
      function groupBy(coll, iteratee, callback) {
        return groupByLimit$1(coll, Infinity, iteratee, callback);
      }
      __name(groupBy, "groupBy");
      function groupBySeries(coll, iteratee, callback) {
        return groupByLimit$1(coll, 1, iteratee, callback);
      }
      __name(groupBySeries, "groupBySeries");
      var log = consoleFunc("log");
      function mapValuesLimit(obj, limit, iteratee, callback) {
        callback = once(callback);
        var newObj = {};
        var _iteratee = wrapAsync(iteratee);
        return eachOfLimit$2(limit)(obj, (val, key, next) => {
          _iteratee(val, key, (err, result2) => {
            if (err) return next(err);
            newObj[key] = result2;
            next(err);
          });
        }, (err) => callback(err, newObj));
      }
      __name(mapValuesLimit, "mapValuesLimit");
      var mapValuesLimit$1 = awaitify(mapValuesLimit, 4);
      function mapValues2(obj, iteratee, callback) {
        return mapValuesLimit$1(obj, Infinity, iteratee, callback);
      }
      __name(mapValues2, "mapValues");
      function mapValuesSeries(obj, iteratee, callback) {
        return mapValuesLimit$1(obj, 1, iteratee, callback);
      }
      __name(mapValuesSeries, "mapValuesSeries");
      function memoize2(fn, hasher = (v6) => v6) {
        var memo = /* @__PURE__ */ Object.create(null);
        var queues = /* @__PURE__ */ Object.create(null);
        var _fn = wrapAsync(fn);
        var memoized = initialParams((args, callback) => {
          var key = hasher(...args);
          if (key in memo) {
            setImmediate$1(() => callback(null, ...memo[key]));
          } else if (key in queues) {
            queues[key].push(callback);
          } else {
            queues[key] = [callback];
            _fn(...args, (err, ...resultArgs) => {
              if (!err) {
                memo[key] = resultArgs;
              }
              var q3 = queues[key];
              delete queues[key];
              for (var i3 = 0, l3 = q3.length; i3 < l3; i3++) {
                q3[i3](err, ...resultArgs);
              }
            });
          }
        });
        memoized.memo = memo;
        memoized.unmemoized = fn;
        return memoized;
      }
      __name(memoize2, "memoize");
      var _defer;
      if (hasNextTick) {
        _defer = process.nextTick;
      } else if (hasSetImmediate) {
        _defer = setImmediate;
      } else {
        _defer = fallback;
      }
      var nextTick = wrap(_defer);
      var _parallel = awaitify((eachfn, tasks, callback) => {
        var results = isArrayLike(tasks) ? [] : {};
        eachfn(tasks, (task, key, taskCb) => {
          wrapAsync(task)((err, ...result2) => {
            if (result2.length < 2) {
              [result2] = result2;
            }
            results[key] = result2;
            taskCb(err);
          });
        }, (err) => callback(err, results));
      }, 3);
      function parallel(tasks, callback) {
        return _parallel(eachOf$1, tasks, callback);
      }
      __name(parallel, "parallel");
      function parallelLimit(tasks, limit, callback) {
        return _parallel(eachOfLimit$2(limit), tasks, callback);
      }
      __name(parallelLimit, "parallelLimit");
      function queue(worker, concurrency) {
        var _worker = wrapAsync(worker);
        return queue$1((items, cb) => {
          _worker(items[0], cb);
        }, concurrency, 1);
      }
      __name(queue, "queue");
      class Heap {
        static {
          __name(this, "Heap");
        }
        constructor() {
          this.heap = [];
          this.pushCount = Number.MIN_SAFE_INTEGER;
        }
        get length() {
          return this.heap.length;
        }
        empty() {
          this.heap = [];
          return this;
        }
        percUp(index2) {
          let p3;
          while (index2 > 0 && smaller(this.heap[index2], this.heap[p3 = parent(index2)])) {
            let t3 = this.heap[index2];
            this.heap[index2] = this.heap[p3];
            this.heap[p3] = t3;
            index2 = p3;
          }
        }
        percDown(index2) {
          let l3;
          while ((l3 = leftChi(index2)) < this.heap.length) {
            if (l3 + 1 < this.heap.length && smaller(this.heap[l3 + 1], this.heap[l3])) {
              l3 = l3 + 1;
            }
            if (smaller(this.heap[index2], this.heap[l3])) {
              break;
            }
            let t3 = this.heap[index2];
            this.heap[index2] = this.heap[l3];
            this.heap[l3] = t3;
            index2 = l3;
          }
        }
        push(node) {
          node.pushCount = ++this.pushCount;
          this.heap.push(node);
          this.percUp(this.heap.length - 1);
        }
        unshift(node) {
          return this.heap.push(node);
        }
        shift() {
          let [top] = this.heap;
          this.heap[0] = this.heap[this.heap.length - 1];
          this.heap.pop();
          this.percDown(0);
          return top;
        }
        toArray() {
          return [...this];
        }
        *[Symbol.iterator]() {
          for (let i3 = 0; i3 < this.heap.length; i3++) {
            yield this.heap[i3].data;
          }
        }
        remove(testFn) {
          let j3 = 0;
          for (let i3 = 0; i3 < this.heap.length; i3++) {
            if (!testFn(this.heap[i3])) {
              this.heap[j3] = this.heap[i3];
              j3++;
            }
          }
          this.heap.splice(j3);
          for (let i3 = parent(this.heap.length - 1); i3 >= 0; i3--) {
            this.percDown(i3);
          }
          return this;
        }
      }
      function leftChi(i3) {
        return (i3 << 1) + 1;
      }
      __name(leftChi, "leftChi");
      function parent(i3) {
        return (i3 + 1 >> 1) - 1;
      }
      __name(parent, "parent");
      function smaller(x3, y2) {
        if (x3.priority !== y2.priority) {
          return x3.priority < y2.priority;
        } else {
          return x3.pushCount < y2.pushCount;
        }
      }
      __name(smaller, "smaller");
      function priorityQueue(worker, concurrency) {
        var q3 = queue(worker, concurrency);
        var {
          push,
          pushAsync
        } = q3;
        q3._tasks = new Heap();
        q3._createTaskItem = ({ data: data3, priority }, callback) => {
          return {
            data: data3,
            priority,
            callback
          };
        };
        function createDataItems(tasks, priority) {
          if (!Array.isArray(tasks)) {
            return { data: tasks, priority };
          }
          return tasks.map((data3) => {
            return { data: data3, priority };
          });
        }
        __name(createDataItems, "createDataItems");
        q3.push = function(data3, priority = 0, callback) {
          return push(createDataItems(data3, priority), callback);
        };
        q3.pushAsync = function(data3, priority = 0, callback) {
          return pushAsync(createDataItems(data3, priority), callback);
        };
        delete q3.unshift;
        delete q3.unshiftAsync;
        return q3;
      }
      __name(priorityQueue, "priorityQueue");
      function race(tasks, callback) {
        callback = once(callback);
        if (!Array.isArray(tasks)) return callback(new TypeError("First argument to race must be an array of functions"));
        if (!tasks.length) return callback();
        for (var i3 = 0, l3 = tasks.length; i3 < l3; i3++) {
          wrapAsync(tasks[i3])(callback);
        }
      }
      __name(race, "race");
      var race$1 = awaitify(race, 2);
      function reduceRight(array, memo, iteratee, callback) {
        var reversed = [...array].reverse();
        return reduce$1(reversed, memo, iteratee, callback);
      }
      __name(reduceRight, "reduceRight");
      function reflect(fn) {
        var _fn = wrapAsync(fn);
        return initialParams(/* @__PURE__ */ __name(function reflectOn(args, reflectCallback) {
          args.push((error5, ...cbArgs) => {
            let retVal = {};
            if (error5) {
              retVal.error = error5;
            }
            if (cbArgs.length > 0) {
              var value = cbArgs;
              if (cbArgs.length <= 1) {
                [value] = cbArgs;
              }
              retVal.value = value;
            }
            reflectCallback(null, retVal);
          });
          return _fn.apply(this, args);
        }, "reflectOn"));
      }
      __name(reflect, "reflect");
      function reflectAll(tasks) {
        var results;
        if (Array.isArray(tasks)) {
          results = tasks.map(reflect);
        } else {
          results = {};
          Object.keys(tasks).forEach((key) => {
            results[key] = reflect.call(this, tasks[key]);
          });
        }
        return results;
      }
      __name(reflectAll, "reflectAll");
      function reject$2(eachfn, arr, _iteratee, callback) {
        const iteratee = wrapAsync(_iteratee);
        return _filter(eachfn, arr, (value, cb) => {
          iteratee(value, (err, v6) => {
            cb(err, !v6);
          });
        }, callback);
      }
      __name(reject$2, "reject$2");
      function reject(coll, iteratee, callback) {
        return reject$2(eachOf$1, coll, iteratee, callback);
      }
      __name(reject, "reject");
      var reject$1 = awaitify(reject, 3);
      function rejectLimit(coll, limit, iteratee, callback) {
        return reject$2(eachOfLimit$2(limit), coll, iteratee, callback);
      }
      __name(rejectLimit, "rejectLimit");
      var rejectLimit$1 = awaitify(rejectLimit, 4);
      function rejectSeries(coll, iteratee, callback) {
        return reject$2(eachOfSeries$1, coll, iteratee, callback);
      }
      __name(rejectSeries, "rejectSeries");
      var rejectSeries$1 = awaitify(rejectSeries, 3);
      function constant(value) {
        return function() {
          return value;
        };
      }
      __name(constant, "constant");
      const DEFAULT_TIMES = 5;
      const DEFAULT_INTERVAL = 0;
      function retry(opts, task, callback) {
        var options = {
          times: DEFAULT_TIMES,
          intervalFunc: constant(DEFAULT_INTERVAL)
        };
        if (arguments.length < 3 && typeof opts === "function") {
          callback = task || promiseCallback();
          task = opts;
        } else {
          parseTimes(options, opts);
          callback = callback || promiseCallback();
        }
        if (typeof task !== "function") {
          throw new Error("Invalid arguments for async.retry");
        }
        var _task = wrapAsync(task);
        var attempt = 1;
        function retryAttempt() {
          _task((err, ...args) => {
            if (err === false) return;
            if (err && attempt++ < options.times && (typeof options.errorFilter != "function" || options.errorFilter(err))) {
              setTimeout(retryAttempt, options.intervalFunc(attempt - 1));
            } else {
              callback(err, ...args);
            }
          });
        }
        __name(retryAttempt, "retryAttempt");
        retryAttempt();
        return callback[PROMISE_SYMBOL];
      }
      __name(retry, "retry");
      function parseTimes(acc, t3) {
        if (typeof t3 === "object") {
          acc.times = +t3.times || DEFAULT_TIMES;
          acc.intervalFunc = typeof t3.interval === "function" ? t3.interval : constant(+t3.interval || DEFAULT_INTERVAL);
          acc.errorFilter = t3.errorFilter;
        } else if (typeof t3 === "number" || typeof t3 === "string") {
          acc.times = +t3 || DEFAULT_TIMES;
        } else {
          throw new Error("Invalid arguments for async.retry");
        }
      }
      __name(parseTimes, "parseTimes");
      function retryable(opts, task) {
        if (!task) {
          task = opts;
          opts = null;
        }
        let arity = opts && opts.arity || task.length;
        if (isAsync(task)) {
          arity += 1;
        }
        var _task = wrapAsync(task);
        return initialParams((args, callback) => {
          if (args.length < arity - 1 || callback == null) {
            args.push(callback);
            callback = promiseCallback();
          }
          function taskFn(cb) {
            _task(...args, cb);
          }
          __name(taskFn, "taskFn");
          if (opts) retry(opts, taskFn, callback);
          else retry(taskFn, callback);
          return callback[PROMISE_SYMBOL];
        });
      }
      __name(retryable, "retryable");
      function series(tasks, callback) {
        return _parallel(eachOfSeries$1, tasks, callback);
      }
      __name(series, "series");
      function some2(coll, iteratee, callback) {
        return _createTester(Boolean, (res) => res)(eachOf$1, coll, iteratee, callback);
      }
      __name(some2, "some");
      var some$1 = awaitify(some2, 3);
      function someLimit(coll, limit, iteratee, callback) {
        return _createTester(Boolean, (res) => res)(eachOfLimit$2(limit), coll, iteratee, callback);
      }
      __name(someLimit, "someLimit");
      var someLimit$1 = awaitify(someLimit, 4);
      function someSeries(coll, iteratee, callback) {
        return _createTester(Boolean, (res) => res)(eachOfSeries$1, coll, iteratee, callback);
      }
      __name(someSeries, "someSeries");
      var someSeries$1 = awaitify(someSeries, 3);
      function sortBy(coll, iteratee, callback) {
        var _iteratee = wrapAsync(iteratee);
        return map$1(coll, (x3, iterCb) => {
          _iteratee(x3, (err, criteria) => {
            if (err) return iterCb(err);
            iterCb(err, { value: x3, criteria });
          });
        }, (err, results) => {
          if (err) return callback(err);
          callback(null, results.sort(comparator).map((v6) => v6.value));
        });
        function comparator(left, right) {
          var a3 = left.criteria, b3 = right.criteria;
          return a3 < b3 ? -1 : a3 > b3 ? 1 : 0;
        }
        __name(comparator, "comparator");
      }
      __name(sortBy, "sortBy");
      var sortBy$1 = awaitify(sortBy, 3);
      function timeout(asyncFn, milliseconds, info2) {
        var fn = wrapAsync(asyncFn);
        return initialParams((args, callback) => {
          var timedOut = false;
          var timer;
          function timeoutCallback() {
            var name = asyncFn.name || "anonymous";
            var error5 = new Error('Callback function "' + name + '" timed out.');
            error5.code = "ETIMEDOUT";
            if (info2) {
              error5.info = info2;
            }
            timedOut = true;
            callback(error5);
          }
          __name(timeoutCallback, "timeoutCallback");
          args.push((...cbArgs) => {
            if (!timedOut) {
              callback(...cbArgs);
              clearTimeout(timer);
            }
          });
          timer = setTimeout(timeoutCallback, milliseconds);
          fn(...args);
        });
      }
      __name(timeout, "timeout");
      function range2(size) {
        var result2 = Array(size);
        while (size--) {
          result2[size] = size;
        }
        return result2;
      }
      __name(range2, "range");
      function timesLimit(count, limit, iteratee, callback) {
        var _iteratee = wrapAsync(iteratee);
        return mapLimit$1(range2(count), limit, _iteratee, callback);
      }
      __name(timesLimit, "timesLimit");
      function times(n3, iteratee, callback) {
        return timesLimit(n3, Infinity, iteratee, callback);
      }
      __name(times, "times");
      function timesSeries(n3, iteratee, callback) {
        return timesLimit(n3, 1, iteratee, callback);
      }
      __name(timesSeries, "timesSeries");
      function transform(coll, accumulator, iteratee, callback) {
        if (arguments.length <= 3 && typeof accumulator === "function") {
          callback = iteratee;
          iteratee = accumulator;
          accumulator = Array.isArray(coll) ? [] : {};
        }
        callback = once(callback || promiseCallback());
        var _iteratee = wrapAsync(iteratee);
        eachOf$1(coll, (v6, k3, cb) => {
          _iteratee(accumulator, v6, k3, cb);
        }, (err) => callback(err, accumulator));
        return callback[PROMISE_SYMBOL];
      }
      __name(transform, "transform");
      function tryEach(tasks, callback) {
        var error5 = null;
        var result2;
        return eachSeries$1(tasks, (task, taskCb) => {
          wrapAsync(task)((err, ...args) => {
            if (err === false) return taskCb(err);
            if (args.length < 2) {
              [result2] = args;
            } else {
              result2 = args;
            }
            error5 = err;
            taskCb(err ? null : {});
          });
        }, () => callback(error5, result2));
      }
      __name(tryEach, "tryEach");
      var tryEach$1 = awaitify(tryEach);
      function unmemoize(fn) {
        return (...args) => {
          return (fn.unmemoized || fn)(...args);
        };
      }
      __name(unmemoize, "unmemoize");
      function whilst(test, iteratee, callback) {
        callback = onlyOnce(callback);
        var _fn = wrapAsync(iteratee);
        var _test = wrapAsync(test);
        var results = [];
        function next(err, ...rest) {
          if (err) return callback(err);
          results = rest;
          if (err === false) return;
          _test(check);
        }
        __name(next, "next");
        function check(err, truth) {
          if (err) return callback(err);
          if (err === false) return;
          if (!truth) return callback(null, ...results);
          _fn(next);
        }
        __name(check, "check");
        return _test(check);
      }
      __name(whilst, "whilst");
      var whilst$1 = awaitify(whilst, 3);
      function until(test, iteratee, callback) {
        const _test = wrapAsync(test);
        return whilst$1((cb) => _test((err, truth) => cb(err, !truth)), iteratee, callback);
      }
      __name(until, "until");
      function waterfall(tasks, callback) {
        callback = once(callback);
        if (!Array.isArray(tasks)) return callback(new Error("First argument to waterfall must be an array of functions"));
        if (!tasks.length) return callback();
        var taskIndex = 0;
        function nextTask(args) {
          var task = wrapAsync(tasks[taskIndex++]);
          task(...args, onlyOnce(next));
        }
        __name(nextTask, "nextTask");
        function next(err, ...args) {
          if (err === false) return;
          if (err || taskIndex === tasks.length) {
            return callback(err, ...args);
          }
          nextTask(args);
        }
        __name(next, "next");
        nextTask([]);
      }
      __name(waterfall, "waterfall");
      var waterfall$1 = awaitify(waterfall);
      var index = {
        apply,
        applyEach,
        applyEachSeries,
        asyncify,
        auto,
        autoInject,
        cargo: cargo$1,
        cargoQueue: cargo,
        compose,
        concat: concat$1,
        concatLimit: concatLimit$1,
        concatSeries: concatSeries$1,
        constant: constant$1,
        detect: detect$1,
        detectLimit: detectLimit$1,
        detectSeries: detectSeries$1,
        dir,
        doUntil,
        doWhilst: doWhilst$1,
        each,
        eachLimit: eachLimit$1,
        eachOf: eachOf$1,
        eachOfLimit: eachOfLimit$1,
        eachOfSeries: eachOfSeries$1,
        eachSeries: eachSeries$1,
        ensureAsync,
        every: every$1,
        everyLimit: everyLimit$1,
        everySeries: everySeries$1,
        filter: filter$1,
        filterLimit: filterLimit$1,
        filterSeries: filterSeries$1,
        forever: forever$1,
        groupBy,
        groupByLimit: groupByLimit$1,
        groupBySeries,
        log,
        map: map$1,
        mapLimit: mapLimit$1,
        mapSeries: mapSeries$1,
        mapValues: mapValues2,
        mapValuesLimit: mapValuesLimit$1,
        mapValuesSeries,
        memoize: memoize2,
        nextTick,
        parallel,
        parallelLimit,
        priorityQueue,
        queue,
        race: race$1,
        reduce: reduce$1,
        reduceRight,
        reflect,
        reflectAll,
        reject: reject$1,
        rejectLimit: rejectLimit$1,
        rejectSeries: rejectSeries$1,
        retry,
        retryable,
        seq,
        series,
        setImmediate: setImmediate$1,
        some: some$1,
        someLimit: someLimit$1,
        someSeries: someSeries$1,
        sortBy: sortBy$1,
        timeout,
        times,
        timesLimit,
        timesSeries,
        transform,
        tryEach: tryEach$1,
        unmemoize,
        until,
        waterfall: waterfall$1,
        whilst: whilst$1,
        // aliases
        all: every$1,
        allLimit: everyLimit$1,
        allSeries: everySeries$1,
        any: some$1,
        anyLimit: someLimit$1,
        anySeries: someSeries$1,
        find: detect$1,
        findLimit: detectLimit$1,
        findSeries: detectSeries$1,
        flatMap: concat$1,
        flatMapLimit: concatLimit$1,
        flatMapSeries: concatSeries$1,
        forEach: each,
        forEachSeries: eachSeries$1,
        forEachLimit: eachLimit$1,
        forEachOf: eachOf$1,
        forEachOfSeries: eachOfSeries$1,
        forEachOfLimit: eachOfLimit$1,
        inject: reduce$1,
        foldl: reduce$1,
        foldr: reduceRight,
        select: filter$1,
        selectLimit: filterLimit$1,
        selectSeries: filterSeries$1,
        wrapSync: asyncify,
        during: whilst$1,
        doDuring: doWhilst$1
      };
      exports3.all = every$1;
      exports3.allLimit = everyLimit$1;
      exports3.allSeries = everySeries$1;
      exports3.any = some$1;
      exports3.anyLimit = someLimit$1;
      exports3.anySeries = someSeries$1;
      exports3.apply = apply;
      exports3.applyEach = applyEach;
      exports3.applyEachSeries = applyEachSeries;
      exports3.asyncify = asyncify;
      exports3.auto = auto;
      exports3.autoInject = autoInject;
      exports3.cargo = cargo$1;
      exports3.cargoQueue = cargo;
      exports3.compose = compose;
      exports3.concat = concat$1;
      exports3.concatLimit = concatLimit$1;
      exports3.concatSeries = concatSeries$1;
      exports3.constant = constant$1;
      exports3.default = index;
      exports3.detect = detect$1;
      exports3.detectLimit = detectLimit$1;
      exports3.detectSeries = detectSeries$1;
      exports3.dir = dir;
      exports3.doDuring = doWhilst$1;
      exports3.doUntil = doUntil;
      exports3.doWhilst = doWhilst$1;
      exports3.during = whilst$1;
      exports3.each = each;
      exports3.eachLimit = eachLimit$1;
      exports3.eachOf = eachOf$1;
      exports3.eachOfLimit = eachOfLimit$1;
      exports3.eachOfSeries = eachOfSeries$1;
      exports3.eachSeries = eachSeries$1;
      exports3.ensureAsync = ensureAsync;
      exports3.every = every$1;
      exports3.everyLimit = everyLimit$1;
      exports3.everySeries = everySeries$1;
      exports3.filter = filter$1;
      exports3.filterLimit = filterLimit$1;
      exports3.filterSeries = filterSeries$1;
      exports3.find = detect$1;
      exports3.findLimit = detectLimit$1;
      exports3.findSeries = detectSeries$1;
      exports3.flatMap = concat$1;
      exports3.flatMapLimit = concatLimit$1;
      exports3.flatMapSeries = concatSeries$1;
      exports3.foldl = reduce$1;
      exports3.foldr = reduceRight;
      exports3.forEach = each;
      exports3.forEachLimit = eachLimit$1;
      exports3.forEachOf = eachOf$1;
      exports3.forEachOfLimit = eachOfLimit$1;
      exports3.forEachOfSeries = eachOfSeries$1;
      exports3.forEachSeries = eachSeries$1;
      exports3.forever = forever$1;
      exports3.groupBy = groupBy;
      exports3.groupByLimit = groupByLimit$1;
      exports3.groupBySeries = groupBySeries;
      exports3.inject = reduce$1;
      exports3.log = log;
      exports3.map = map$1;
      exports3.mapLimit = mapLimit$1;
      exports3.mapSeries = mapSeries$1;
      exports3.mapValues = mapValues2;
      exports3.mapValuesLimit = mapValuesLimit$1;
      exports3.mapValuesSeries = mapValuesSeries;
      exports3.memoize = memoize2;
      exports3.nextTick = nextTick;
      exports3.parallel = parallel;
      exports3.parallelLimit = parallelLimit;
      exports3.priorityQueue = priorityQueue;
      exports3.queue = queue;
      exports3.race = race$1;
      exports3.reduce = reduce$1;
      exports3.reduceRight = reduceRight;
      exports3.reflect = reflect;
      exports3.reflectAll = reflectAll;
      exports3.reject = reject$1;
      exports3.rejectLimit = rejectLimit$1;
      exports3.rejectSeries = rejectSeries$1;
      exports3.retry = retry;
      exports3.retryable = retryable;
      exports3.select = filter$1;
      exports3.selectLimit = filterLimit$1;
      exports3.selectSeries = filterSeries$1;
      exports3.seq = seq;
      exports3.series = series;
      exports3.setImmediate = setImmediate$1;
      exports3.some = some$1;
      exports3.someLimit = someLimit$1;
      exports3.someSeries = someSeries$1;
      exports3.sortBy = sortBy$1;
      exports3.timeout = timeout;
      exports3.times = times;
      exports3.timesLimit = timesLimit;
      exports3.timesSeries = timesSeries;
      exports3.transform = transform;
      exports3.tryEach = tryEach$1;
      exports3.unmemoize = unmemoize;
      exports3.until = until;
      exports3.waterfall = waterfall$1;
      exports3.whilst = whilst$1;
      exports3.wrapSync = asyncify;
      Object.defineProperty(exports3, "__esModule", { value: true });
    }));
  }
});

// ../../node_modules/is-stream/index.js
var require_is_stream = __commonJS({
  "../../node_modules/is-stream/index.js"(exports2, module2) {
    "use strict";
    var isStream2 = /* @__PURE__ */ __name((stream3) => stream3 !== null && typeof stream3 === "object" && typeof stream3.pipe === "function", "isStream");
    isStream2.writable = (stream3) => isStream2(stream3) && stream3.writable !== false && typeof stream3._write === "function" && typeof stream3._writableState === "object";
    isStream2.readable = (stream3) => isStream2(stream3) && stream3.readable !== false && typeof stream3._read === "function" && typeof stream3._readableState === "object";
    isStream2.duplex = (stream3) => isStream2.writable(stream3) && isStream2.readable(stream3);
    isStream2.transform = (stream3) => isStream2.duplex(stream3) && typeof stream3._transform === "function";
    module2.exports = isStream2;
  }
});

// ../../node_modules/process-nextick-args/index.js
var require_process_nextick_args = __commonJS({
  "../../node_modules/process-nextick-args/index.js"(exports2, module2) {
    "use strict";
    if (typeof process === "undefined" || !process.version || process.version.indexOf("v0.") === 0 || process.version.indexOf("v1.") === 0 && process.version.indexOf("v1.8.") !== 0) {
      module2.exports = { nextTick };
    } else {
      module2.exports = process;
    }
    function nextTick(fn, arg1, arg2, arg3) {
      if (typeof fn !== "function") {
        throw new TypeError('"callback" argument must be a function');
      }
      var len = arguments.length;
      var args, i3;
      switch (len) {
        case 0:
        case 1:
          return process.nextTick(fn);
        case 2:
          return process.nextTick(/* @__PURE__ */ __name(function afterTickOne() {
            fn.call(null, arg1);
          }, "afterTickOne"));
        case 3:
          return process.nextTick(/* @__PURE__ */ __name(function afterTickTwo() {
            fn.call(null, arg1, arg2);
          }, "afterTickTwo"));
        case 4:
          return process.nextTick(/* @__PURE__ */ __name(function afterTickThree() {
            fn.call(null, arg1, arg2, arg3);
          }, "afterTickThree"));
        default:
          args = new Array(len - 1);
          i3 = 0;
          while (i3 < args.length) {
            args[i3++] = arguments[i3];
          }
          return process.nextTick(/* @__PURE__ */ __name(function afterTick() {
            fn.apply(null, args);
          }, "afterTick"));
      }
    }
    __name(nextTick, "nextTick");
  }
});

// ../../node_modules/readable-stream/node_modules/isarray/index.js
var require_isarray = __commonJS({
  "../../node_modules/readable-stream/node_modules/isarray/index.js"(exports2, module2) {
    var toString = {}.toString;
    module2.exports = Array.isArray || function(arr) {
      return toString.call(arr) == "[object Array]";
    };
  }
});

// ../../node_modules/readable-stream/lib/internal/streams/stream.js
var require_stream = __commonJS({
  "../../node_modules/readable-stream/lib/internal/streams/stream.js"(exports2, module2) {
    module2.exports = require("stream");
  }
});

// ../../node_modules/readable-stream/node_modules/safe-buffer/index.js
var require_safe_buffer = __commonJS({
  "../../node_modules/readable-stream/node_modules/safe-buffer/index.js"(exports2, module2) {
    var buffer = require("buffer");
    var Buffer2 = buffer.Buffer;
    function copyProps(src, dst) {
      for (var key in src) {
        dst[key] = src[key];
      }
    }
    __name(copyProps, "copyProps");
    if (Buffer2.from && Buffer2.alloc && Buffer2.allocUnsafe && Buffer2.allocUnsafeSlow) {
      module2.exports = buffer;
    } else {
      copyProps(buffer, exports2);
      exports2.Buffer = SafeBuffer;
    }
    function SafeBuffer(arg, encodingOrOffset, length) {
      return Buffer2(arg, encodingOrOffset, length);
    }
    __name(SafeBuffer, "SafeBuffer");
    copyProps(Buffer2, SafeBuffer);
    SafeBuffer.from = function(arg, encodingOrOffset, length) {
      if (typeof arg === "number") {
        throw new TypeError("Argument must not be a number");
      }
      return Buffer2(arg, encodingOrOffset, length);
    };
    SafeBuffer.alloc = function(size, fill, encoding) {
      if (typeof size !== "number") {
        throw new TypeError("Argument must be a number");
      }
      var buf = Buffer2(size);
      if (fill !== void 0) {
        if (typeof encoding === "string") {
          buf.fill(fill, encoding);
        } else {
          buf.fill(fill);
        }
      } else {
        buf.fill(0);
      }
      return buf;
    };
    SafeBuffer.allocUnsafe = function(size) {
      if (typeof size !== "number") {
        throw new TypeError("Argument must be a number");
      }
      return Buffer2(size);
    };
    SafeBuffer.allocUnsafeSlow = function(size) {
      if (typeof size !== "number") {
        throw new TypeError("Argument must be a number");
      }
      return buffer.SlowBuffer(size);
    };
  }
});

// ../../node_modules/core-util-is/lib/util.js
var require_util = __commonJS({
  "../../node_modules/core-util-is/lib/util.js"(exports2) {
    function isArray2(arg) {
      if (Array.isArray) {
        return Array.isArray(arg);
      }
      return objectToString(arg) === "[object Array]";
    }
    __name(isArray2, "isArray");
    exports2.isArray = isArray2;
    function isBoolean2(arg) {
      return typeof arg === "boolean";
    }
    __name(isBoolean2, "isBoolean");
    exports2.isBoolean = isBoolean2;
    function isNull(arg) {
      return arg === null;
    }
    __name(isNull, "isNull");
    exports2.isNull = isNull;
    function isNullOrUndefined(arg) {
      return arg == null;
    }
    __name(isNullOrUndefined, "isNullOrUndefined");
    exports2.isNullOrUndefined = isNullOrUndefined;
    function isNumber(arg) {
      return typeof arg === "number";
    }
    __name(isNumber, "isNumber");
    exports2.isNumber = isNumber;
    function isString(arg) {
      return typeof arg === "string";
    }
    __name(isString, "isString");
    exports2.isString = isString;
    function isSymbol(arg) {
      return typeof arg === "symbol";
    }
    __name(isSymbol, "isSymbol");
    exports2.isSymbol = isSymbol;
    function isUndefined(arg) {
      return arg === void 0;
    }
    __name(isUndefined, "isUndefined");
    exports2.isUndefined = isUndefined;
    function isRegExp(re) {
      return objectToString(re) === "[object RegExp]";
    }
    __name(isRegExp, "isRegExp");
    exports2.isRegExp = isRegExp;
    function isObject3(arg) {
      return typeof arg === "object" && arg !== null;
    }
    __name(isObject3, "isObject");
    exports2.isObject = isObject3;
    function isDate(d3) {
      return objectToString(d3) === "[object Date]";
    }
    __name(isDate, "isDate");
    exports2.isDate = isDate;
    function isError(e3) {
      return objectToString(e3) === "[object Error]" || e3 instanceof Error;
    }
    __name(isError, "isError");
    exports2.isError = isError;
    function isFunction(arg) {
      return typeof arg === "function";
    }
    __name(isFunction, "isFunction");
    exports2.isFunction = isFunction;
    function isPrimitive(arg) {
      return arg === null || typeof arg === "boolean" || typeof arg === "number" || typeof arg === "string" || typeof arg === "symbol" || // ES6 symbol
      typeof arg === "undefined";
    }
    __name(isPrimitive, "isPrimitive");
    exports2.isPrimitive = isPrimitive;
    exports2.isBuffer = require("buffer").Buffer.isBuffer;
    function objectToString(o3) {
      return Object.prototype.toString.call(o3);
    }
    __name(objectToString, "objectToString");
  }
});

// ../../node_modules/inherits/inherits_browser.js
var require_inherits_browser = __commonJS({
  "../../node_modules/inherits/inherits_browser.js"(exports2, module2) {
    if (typeof Object.create === "function") {
      module2.exports = /* @__PURE__ */ __name(function inherits(ctor, superCtor) {
        if (superCtor) {
          ctor.super_ = superCtor;
          ctor.prototype = Object.create(superCtor.prototype, {
            constructor: {
              value: ctor,
              enumerable: false,
              writable: true,
              configurable: true
            }
          });
        }
      }, "inherits");
    } else {
      module2.exports = /* @__PURE__ */ __name(function inherits(ctor, superCtor) {
        if (superCtor) {
          ctor.super_ = superCtor;
          var TempCtor = /* @__PURE__ */ __name(function() {
          }, "TempCtor");
          TempCtor.prototype = superCtor.prototype;
          ctor.prototype = new TempCtor();
          ctor.prototype.constructor = ctor;
        }
      }, "inherits");
    }
  }
});

// ../../node_modules/inherits/inherits.js
var require_inherits = __commonJS({
  "../../node_modules/inherits/inherits.js"(exports2, module2) {
    try {
      util11 = require("util");
      if (typeof util11.inherits !== "function") throw "";
      module2.exports = util11.inherits;
    } catch (e3) {
      module2.exports = require_inherits_browser();
    }
    var util11;
  }
});

// ../../node_modules/readable-stream/lib/internal/streams/BufferList.js
var require_BufferList = __commonJS({
  "../../node_modules/readable-stream/lib/internal/streams/BufferList.js"(exports2, module2) {
    "use strict";
    function _classCallCheck(instance, Constructor) {
      if (!(instance instanceof Constructor)) {
        throw new TypeError("Cannot call a class as a function");
      }
    }
    __name(_classCallCheck, "_classCallCheck");
    var Buffer2 = require_safe_buffer().Buffer;
    var util11 = require("util");
    function copyBuffer(src, target, offset) {
      src.copy(target, offset);
    }
    __name(copyBuffer, "copyBuffer");
    module2.exports = (function() {
      function BufferList() {
        _classCallCheck(this, BufferList);
        this.head = null;
        this.tail = null;
        this.length = 0;
      }
      __name(BufferList, "BufferList");
      BufferList.prototype.push = /* @__PURE__ */ __name(function push(v6) {
        var entry = { data: v6, next: null };
        if (this.length > 0) this.tail.next = entry;
        else this.head = entry;
        this.tail = entry;
        ++this.length;
      }, "push");
      BufferList.prototype.unshift = /* @__PURE__ */ __name(function unshift(v6) {
        var entry = { data: v6, next: this.head };
        if (this.length === 0) this.tail = entry;
        this.head = entry;
        ++this.length;
      }, "unshift");
      BufferList.prototype.shift = /* @__PURE__ */ __name(function shift() {
        if (this.length === 0) return;
        var ret = this.head.data;
        if (this.length === 1) this.head = this.tail = null;
        else this.head = this.head.next;
        --this.length;
        return ret;
      }, "shift");
      BufferList.prototype.clear = /* @__PURE__ */ __name(function clear() {
        this.head = this.tail = null;
        this.length = 0;
      }, "clear");
      BufferList.prototype.join = /* @__PURE__ */ __name(function join31(s3) {
        if (this.length === 0) return "";
        var p3 = this.head;
        var ret = "" + p3.data;
        while (p3 = p3.next) {
          ret += s3 + p3.data;
        }
        return ret;
      }, "join");
      BufferList.prototype.concat = /* @__PURE__ */ __name(function concat(n3) {
        if (this.length === 0) return Buffer2.alloc(0);
        var ret = Buffer2.allocUnsafe(n3 >>> 0);
        var p3 = this.head;
        var i3 = 0;
        while (p3) {
          copyBuffer(p3.data, ret, i3);
          i3 += p3.data.length;
          p3 = p3.next;
        }
        return ret;
      }, "concat");
      return BufferList;
    })();
    if (util11 && util11.inspect && util11.inspect.custom) {
      module2.exports.prototype[util11.inspect.custom] = function() {
        var obj = util11.inspect({ length: this.length });
        return this.constructor.name + " " + obj;
      };
    }
  }
});

// ../../node_modules/readable-stream/lib/internal/streams/destroy.js
var require_destroy = __commonJS({
  "../../node_modules/readable-stream/lib/internal/streams/destroy.js"(exports2, module2) {
    "use strict";
    var pna = require_process_nextick_args();
    function destroy(err, cb) {
      var _this = this;
      var readableDestroyed = this._readableState && this._readableState.destroyed;
      var writableDestroyed = this._writableState && this._writableState.destroyed;
      if (readableDestroyed || writableDestroyed) {
        if (cb) {
          cb(err);
        } else if (err) {
          if (!this._writableState) {
            pna.nextTick(emitErrorNT, this, err);
          } else if (!this._writableState.errorEmitted) {
            this._writableState.errorEmitted = true;
            pna.nextTick(emitErrorNT, this, err);
          }
        }
        return this;
      }
      if (this._readableState) {
        this._readableState.destroyed = true;
      }
      if (this._writableState) {
        this._writableState.destroyed = true;
      }
      this._destroy(err || null, function(err2) {
        if (!cb && err2) {
          if (!_this._writableState) {
            pna.nextTick(emitErrorNT, _this, err2);
          } else if (!_this._writableState.errorEmitted) {
            _this._writableState.errorEmitted = true;
            pna.nextTick(emitErrorNT, _this, err2);
          }
        } else if (cb) {
          cb(err2);
        }
      });
      return this;
    }
    __name(destroy, "destroy");
    function undestroy() {
      if (this._readableState) {
        this._readableState.destroyed = false;
        this._readableState.reading = false;
        this._readableState.ended = false;
        this._readableState.endEmitted = false;
      }
      if (this._writableState) {
        this._writableState.destroyed = false;
        this._writableState.ended = false;
        this._writableState.ending = false;
        this._writableState.finalCalled = false;
        this._writableState.prefinished = false;
        this._writableState.finished = false;
        this._writableState.errorEmitted = false;
      }
    }
    __name(undestroy, "undestroy");
    function emitErrorNT(self2, err) {
      self2.emit("error", err);
    }
    __name(emitErrorNT, "emitErrorNT");
    module2.exports = {
      destroy,
      undestroy
    };
  }
});

// ../../node_modules/util-deprecate/node.js
var require_node = __commonJS({
  "../../node_modules/util-deprecate/node.js"(exports2, module2) {
    module2.exports = require("util").deprecate;
  }
});

// ../../node_modules/readable-stream/lib/_stream_writable.js
var require_stream_writable = __commonJS({
  "../../node_modules/readable-stream/lib/_stream_writable.js"(exports2, module2) {
    "use strict";
    var pna = require_process_nextick_args();
    module2.exports = Writable3;
    function CorkedRequest(state2) {
      var _this = this;
      this.next = null;
      this.entry = null;
      this.finish = function() {
        onCorkedFinish(_this, state2);
      };
    }
    __name(CorkedRequest, "CorkedRequest");
    var asyncWrite = !process.browser && ["v0.10", "v0.9."].indexOf(process.version.slice(0, 5)) > -1 ? setImmediate : pna.nextTick;
    var Duplex;
    Writable3.WritableState = WritableState;
    var util11 = Object.create(require_util());
    util11.inherits = require_inherits();
    var internalUtil = {
      deprecate: require_node()
    };
    var Stream2 = require_stream();
    var Buffer2 = require_safe_buffer().Buffer;
    var OurUint8Array = (typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : typeof self !== "undefined" ? self : {}).Uint8Array || function() {
    };
    function _uint8ArrayToBuffer(chunk) {
      return Buffer2.from(chunk);
    }
    __name(_uint8ArrayToBuffer, "_uint8ArrayToBuffer");
    function _isUint8Array(obj) {
      return Buffer2.isBuffer(obj) || obj instanceof OurUint8Array;
    }
    __name(_isUint8Array, "_isUint8Array");
    var destroyImpl = require_destroy();
    util11.inherits(Writable3, Stream2);
    function nop() {
    }
    __name(nop, "nop");
    function WritableState(options, stream3) {
      Duplex = Duplex || require_stream_duplex();
      options = options || {};
      var isDuplex = stream3 instanceof Duplex;
      this.objectMode = !!options.objectMode;
      if (isDuplex) this.objectMode = this.objectMode || !!options.writableObjectMode;
      var hwm = options.highWaterMark;
      var writableHwm = options.writableHighWaterMark;
      var defaultHwm = this.objectMode ? 16 : 16 * 1024;
      if (hwm || hwm === 0) this.highWaterMark = hwm;
      else if (isDuplex && (writableHwm || writableHwm === 0)) this.highWaterMark = writableHwm;
      else this.highWaterMark = defaultHwm;
      this.highWaterMark = Math.floor(this.highWaterMark);
      this.finalCalled = false;
      this.needDrain = false;
      this.ending = false;
      this.ended = false;
      this.finished = false;
      this.destroyed = false;
      var noDecode = options.decodeStrings === false;
      this.decodeStrings = !noDecode;
      this.defaultEncoding = options.defaultEncoding || "utf8";
      this.length = 0;
      this.writing = false;
      this.corked = 0;
      this.sync = true;
      this.bufferProcessing = false;
      this.onwrite = function(er) {
        onwrite(stream3, er);
      };
      this.writecb = null;
      this.writelen = 0;
      this.bufferedRequest = null;
      this.lastBufferedRequest = null;
      this.pendingcb = 0;
      this.prefinished = false;
      this.errorEmitted = false;
      this.bufferedRequestCount = 0;
      this.corkedRequestsFree = new CorkedRequest(this);
    }
    __name(WritableState, "WritableState");
    WritableState.prototype.getBuffer = /* @__PURE__ */ __name(function getBuffer() {
      var current = this.bufferedRequest;
      var out = [];
      while (current) {
        out.push(current);
        current = current.next;
      }
      return out;
    }, "getBuffer");
    (function() {
      try {
        Object.defineProperty(WritableState.prototype, "buffer", {
          get: internalUtil.deprecate(function() {
            return this.getBuffer();
          }, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003")
        });
      } catch (_3) {
      }
    })();
    var realHasInstance;
    if (typeof Symbol === "function" && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] === "function") {
      realHasInstance = Function.prototype[Symbol.hasInstance];
      Object.defineProperty(Writable3, Symbol.hasInstance, {
        value: /* @__PURE__ */ __name(function(object) {
          if (realHasInstance.call(this, object)) return true;
          if (this !== Writable3) return false;
          return object && object._writableState instanceof WritableState;
        }, "value")
      });
    } else {
      realHasInstance = /* @__PURE__ */ __name(function(object) {
        return object instanceof this;
      }, "realHasInstance");
    }
    function Writable3(options) {
      Duplex = Duplex || require_stream_duplex();
      if (!realHasInstance.call(Writable3, this) && !(this instanceof Duplex)) {
        return new Writable3(options);
      }
      this._writableState = new WritableState(options, this);
      this.writable = true;
      if (options) {
        if (typeof options.write === "function") this._write = options.write;
        if (typeof options.writev === "function") this._writev = options.writev;
        if (typeof options.destroy === "function") this._destroy = options.destroy;
        if (typeof options.final === "function") this._final = options.final;
      }
      Stream2.call(this);
    }
    __name(Writable3, "Writable");
    Writable3.prototype.pipe = function() {
      this.emit("error", new Error("Cannot pipe, not readable"));
    };
    function writeAfterEnd(stream3, cb) {
      var er = new Error("write after end");
      stream3.emit("error", er);
      pna.nextTick(cb, er);
    }
    __name(writeAfterEnd, "writeAfterEnd");
    function validChunk(stream3, state2, chunk, cb) {
      var valid3 = true;
      var er = false;
      if (chunk === null) {
        er = new TypeError("May not write null values to stream");
      } else if (typeof chunk !== "string" && chunk !== void 0 && !state2.objectMode) {
        er = new TypeError("Invalid non-string/buffer chunk");
      }
      if (er) {
        stream3.emit("error", er);
        pna.nextTick(cb, er);
        valid3 = false;
      }
      return valid3;
    }
    __name(validChunk, "validChunk");
    Writable3.prototype.write = function(chunk, encoding, cb) {
      var state2 = this._writableState;
      var ret = false;
      var isBuf = !state2.objectMode && _isUint8Array(chunk);
      if (isBuf && !Buffer2.isBuffer(chunk)) {
        chunk = _uint8ArrayToBuffer(chunk);
      }
      if (typeof encoding === "function") {
        cb = encoding;
        encoding = null;
      }
      if (isBuf) encoding = "buffer";
      else if (!encoding) encoding = state2.defaultEncoding;
      if (typeof cb !== "function") cb = nop;
      if (state2.ended) writeAfterEnd(this, cb);
      else if (isBuf || validChunk(this, state2, chunk, cb)) {
        state2.pendingcb++;
        ret = writeOrBuffer(this, state2, isBuf, chunk, encoding, cb);
      }
      return ret;
    };
    Writable3.prototype.cork = function() {
      var state2 = this._writableState;
      state2.corked++;
    };
    Writable3.prototype.uncork = function() {
      var state2 = this._writableState;
      if (state2.corked) {
        state2.corked--;
        if (!state2.writing && !state2.corked && !state2.bufferProcessing && state2.bufferedRequest) clearBuffer(this, state2);
      }
    };
    Writable3.prototype.setDefaultEncoding = /* @__PURE__ */ __name(function setDefaultEncoding(encoding) {
      if (typeof encoding === "string") encoding = encoding.toLowerCase();
      if (!(["hex", "utf8", "utf-8", "ascii", "binary", "base64", "ucs2", "ucs-2", "utf16le", "utf-16le", "raw"].indexOf((encoding + "").toLowerCase()) > -1)) throw new TypeError("Unknown encoding: " + encoding);
      this._writableState.defaultEncoding = encoding;
      return this;
    }, "setDefaultEncoding");
    function decodeChunk(state2, chunk, encoding) {
      if (!state2.objectMode && state2.decodeStrings !== false && typeof chunk === "string") {
        chunk = Buffer2.from(chunk, encoding);
      }
      return chunk;
    }
    __name(decodeChunk, "decodeChunk");
    Object.defineProperty(Writable3.prototype, "writableHighWaterMark", {
      // making it explicit this property is not enumerable
      // because otherwise some prototype manipulation in
      // userland will fail
      enumerable: false,
      get: /* @__PURE__ */ __name(function() {
        return this._writableState.highWaterMark;
      }, "get")
    });
    function writeOrBuffer(stream3, state2, isBuf, chunk, encoding, cb) {
      if (!isBuf) {
        var newChunk = decodeChunk(state2, chunk, encoding);
        if (chunk !== newChunk) {
          isBuf = true;
          encoding = "buffer";
          chunk = newChunk;
        }
      }
      var len = state2.objectMode ? 1 : chunk.length;
      state2.length += len;
      var ret = state2.length < state2.highWaterMark;
      if (!ret) state2.needDrain = true;
      if (state2.writing || state2.corked) {
        var last = state2.lastBufferedRequest;
        state2.lastBufferedRequest = {
          chunk,
          encoding,
          isBuf,
          callback: cb,
          next: null
        };
        if (last) {
          last.next = state2.lastBufferedRequest;
        } else {
          state2.bufferedRequest = state2.lastBufferedRequest;
        }
        state2.bufferedRequestCount += 1;
      } else {
        doWrite(stream3, state2, false, len, chunk, encoding, cb);
      }
      return ret;
    }
    __name(writeOrBuffer, "writeOrBuffer");
    function doWrite(stream3, state2, writev, len, chunk, encoding, cb) {
      state2.writelen = len;
      state2.writecb = cb;
      state2.writing = true;
      state2.sync = true;
      if (writev) stream3._writev(chunk, state2.onwrite);
      else stream3._write(chunk, encoding, state2.onwrite);
      state2.sync = false;
    }
    __name(doWrite, "doWrite");
    function onwriteError(stream3, state2, sync2, er, cb) {
      --state2.pendingcb;
      if (sync2) {
        pna.nextTick(cb, er);
        pna.nextTick(finishMaybe, stream3, state2);
        stream3._writableState.errorEmitted = true;
        stream3.emit("error", er);
      } else {
        cb(er);
        stream3._writableState.errorEmitted = true;
        stream3.emit("error", er);
        finishMaybe(stream3, state2);
      }
    }
    __name(onwriteError, "onwriteError");
    function onwriteStateUpdate(state2) {
      state2.writing = false;
      state2.writecb = null;
      state2.length -= state2.writelen;
      state2.writelen = 0;
    }
    __name(onwriteStateUpdate, "onwriteStateUpdate");
    function onwrite(stream3, er) {
      var state2 = stream3._writableState;
      var sync2 = state2.sync;
      var cb = state2.writecb;
      onwriteStateUpdate(state2);
      if (er) onwriteError(stream3, state2, sync2, er, cb);
      else {
        var finished = needFinish(state2);
        if (!finished && !state2.corked && !state2.bufferProcessing && state2.bufferedRequest) {
          clearBuffer(stream3, state2);
        }
        if (sync2) {
          asyncWrite(afterWrite, stream3, state2, finished, cb);
        } else {
          afterWrite(stream3, state2, finished, cb);
        }
      }
    }
    __name(onwrite, "onwrite");
    function afterWrite(stream3, state2, finished, cb) {
      if (!finished) onwriteDrain(stream3, state2);
      state2.pendingcb--;
      cb();
      finishMaybe(stream3, state2);
    }
    __name(afterWrite, "afterWrite");
    function onwriteDrain(stream3, state2) {
      if (state2.length === 0 && state2.needDrain) {
        state2.needDrain = false;
        stream3.emit("drain");
      }
    }
    __name(onwriteDrain, "onwriteDrain");
    function clearBuffer(stream3, state2) {
      state2.bufferProcessing = true;
      var entry = state2.bufferedRequest;
      if (stream3._writev && entry && entry.next) {
        var l3 = state2.bufferedRequestCount;
        var buffer = new Array(l3);
        var holder = state2.corkedRequestsFree;
        holder.entry = entry;
        var count = 0;
        var allBuffers = true;
        while (entry) {
          buffer[count] = entry;
          if (!entry.isBuf) allBuffers = false;
          entry = entry.next;
          count += 1;
        }
        buffer.allBuffers = allBuffers;
        doWrite(stream3, state2, true, state2.length, buffer, "", holder.finish);
        state2.pendingcb++;
        state2.lastBufferedRequest = null;
        if (holder.next) {
          state2.corkedRequestsFree = holder.next;
          holder.next = null;
        } else {
          state2.corkedRequestsFree = new CorkedRequest(state2);
        }
        state2.bufferedRequestCount = 0;
      } else {
        while (entry) {
          var chunk = entry.chunk;
          var encoding = entry.encoding;
          var cb = entry.callback;
          var len = state2.objectMode ? 1 : chunk.length;
          doWrite(stream3, state2, false, len, chunk, encoding, cb);
          entry = entry.next;
          state2.bufferedRequestCount--;
          if (state2.writing) {
            break;
          }
        }
        if (entry === null) state2.lastBufferedRequest = null;
      }
      state2.bufferedRequest = entry;
      state2.bufferProcessing = false;
    }
    __name(clearBuffer, "clearBuffer");
    Writable3.prototype._write = function(chunk, encoding, cb) {
      cb(new Error("_write() is not implemented"));
    };
    Writable3.prototype._writev = null;
    Writable3.prototype.end = function(chunk, encoding, cb) {
      var state2 = this._writableState;
      if (typeof chunk === "function") {
        cb = chunk;
        chunk = null;
        encoding = null;
      } else if (typeof encoding === "function") {
        cb = encoding;
        encoding = null;
      }
      if (chunk !== null && chunk !== void 0) this.write(chunk, encoding);
      if (state2.corked) {
        state2.corked = 1;
        this.uncork();
      }
      if (!state2.ending) endWritable(this, state2, cb);
    };
    function needFinish(state2) {
      return state2.ending && state2.length === 0 && state2.bufferedRequest === null && !state2.finished && !state2.writing;
    }
    __name(needFinish, "needFinish");
    function callFinal(stream3, state2) {
      stream3._final(function(err) {
        state2.pendingcb--;
        if (err) {
          stream3.emit("error", err);
        }
        state2.prefinished = true;
        stream3.emit("prefinish");
        finishMaybe(stream3, state2);
      });
    }
    __name(callFinal, "callFinal");
    function prefinish(stream3, state2) {
      if (!state2.prefinished && !state2.finalCalled) {
        if (typeof stream3._final === "function") {
          state2.pendingcb++;
          state2.finalCalled = true;
          pna.nextTick(callFinal, stream3, state2);
        } else {
          state2.prefinished = true;
          stream3.emit("prefinish");
        }
      }
    }
    __name(prefinish, "prefinish");
    function finishMaybe(stream3, state2) {
      var need = needFinish(state2);
      if (need) {
        prefinish(stream3, state2);
        if (state2.pendingcb === 0) {
          state2.finished = true;
          stream3.emit("finish");
        }
      }
      return need;
    }
    __name(finishMaybe, "finishMaybe");
    function endWritable(stream3, state2, cb) {
      state2.ending = true;
      finishMaybe(stream3, state2);
      if (cb) {
        if (state2.finished) pna.nextTick(cb);
        else stream3.once("finish", cb);
      }
      state2.ended = true;
      stream3.writable = false;
    }
    __name(endWritable, "endWritable");
    function onCorkedFinish(corkReq, state2, err) {
      var entry = corkReq.entry;
      corkReq.entry = null;
      while (entry) {
        var cb = entry.callback;
        state2.pendingcb--;
        cb(err);
        entry = entry.next;
      }
      state2.corkedRequestsFree.next = corkReq;
    }
    __name(onCorkedFinish, "onCorkedFinish");
    Object.defineProperty(Writable3.prototype, "destroyed", {
      get: /* @__PURE__ */ __name(function() {
        if (this._writableState === void 0) {
          return false;
        }
        return this._writableState.destroyed;
      }, "get"),
      set: /* @__PURE__ */ __name(function(value) {
        if (!this._writableState) {
          return;
        }
        this._writableState.destroyed = value;
      }, "set")
    });
    Writable3.prototype.destroy = destroyImpl.destroy;
    Writable3.prototype._undestroy = destroyImpl.undestroy;
    Writable3.prototype._destroy = function(err, cb) {
      this.end();
      cb(err);
    };
  }
});

// ../../node_modules/readable-stream/lib/_stream_duplex.js
var require_stream_duplex = __commonJS({
  "../../node_modules/readable-stream/lib/_stream_duplex.js"(exports2, module2) {
    "use strict";
    var pna = require_process_nextick_args();
    var objectKeys = Object.keys || function(obj) {
      var keys2 = [];
      for (var key in obj) {
        keys2.push(key);
      }
      return keys2;
    };
    module2.exports = Duplex;
    var util11 = Object.create(require_util());
    util11.inherits = require_inherits();
    var Readable = require_stream_readable();
    var Writable3 = require_stream_writable();
    util11.inherits(Duplex, Readable);
    {
      keys = objectKeys(Writable3.prototype);
      for (v6 = 0; v6 < keys.length; v6++) {
        method = keys[v6];
        if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable3.prototype[method];
      }
    }
    var keys;
    var method;
    var v6;
    function Duplex(options) {
      if (!(this instanceof Duplex)) return new Duplex(options);
      Readable.call(this, options);
      Writable3.call(this, options);
      if (options && options.readable === false) this.readable = false;
      if (options && options.writable === false) this.writable = false;
      this.allowHalfOpen = true;
      if (options && options.allowHalfOpen === false) this.allowHalfOpen = false;
      this.once("end", onend);
    }
    __name(Duplex, "Duplex");
    Object.defineProperty(Duplex.prototype, "writableHighWaterMark", {
      // making it explicit this property is not enumerable
      // because otherwise some prototype manipulation in
      // userland will fail
      enumerable: false,
      get: /* @__PURE__ */ __name(function() {
        return this._writableState.highWaterMark;
      }, "get")
    });
    function onend() {
      if (this.allowHalfOpen || this._writableState.ended) return;
      pna.nextTick(onEndNT, this);
    }
    __name(onend, "onend");
    function onEndNT(self2) {
      self2.end();
    }
    __name(onEndNT, "onEndNT");
    Object.defineProperty(Duplex.prototype, "destroyed", {
      get: /* @__PURE__ */ __name(function() {
        if (this._readableState === void 0 || this._writableState === void 0) {
          return false;
        }
        return this._readableState.destroyed && this._writableState.destroyed;
      }, "get"),
      set: /* @__PURE__ */ __name(function(value) {
        if (this._readableState === void 0 || this._writableState === void 0) {
          return;
        }
        this._readableState.destroyed = value;
        this._writableState.destroyed = value;
      }, "set")
    });
    Duplex.prototype._destroy = function(err, cb) {
      this.push(null);
      this.end();
      pna.nextTick(cb, err);
    };
  }
});

// ../../node_modules/readable-stream/node_modules/string_decoder/lib/string_decoder.js
var require_string_decoder = __commonJS({
  "../../node_modules/readable-stream/node_modules/string_decoder/lib/string_decoder.js"(exports2) {
    "use strict";
    var Buffer2 = require_safe_buffer().Buffer;
    var isEncoding = Buffer2.isEncoding || function(encoding) {
      encoding = "" + encoding;
      switch (encoding && encoding.toLowerCase()) {
        case "hex":
        case "utf8":
        case "utf-8":
        case "ascii":
        case "binary":
        case "base64":
        case "ucs2":
        case "ucs-2":
        case "utf16le":
        case "utf-16le":
        case "raw":
          return true;
        default:
          return false;
      }
    };
    function _normalizeEncoding(enc) {
      if (!enc) return "utf8";
      var retried;
      while (true) {
        switch (enc) {
          case "utf8":
          case "utf-8":
            return "utf8";
          case "ucs2":
          case "ucs-2":
          case "utf16le":
          case "utf-16le":
            return "utf16le";
          case "latin1":
          case "binary":
            return "latin1";
          case "base64":
          case "ascii":
          case "hex":
            return enc;
          default:
            if (retried) return;
            enc = ("" + enc).toLowerCase();
            retried = true;
        }
      }
    }
    __name(_normalizeEncoding, "_normalizeEncoding");
    function normalizeEncoding(enc) {
      var nenc = _normalizeEncoding(enc);
      if (typeof nenc !== "string" && (Buffer2.isEncoding === isEncoding || !isEncoding(enc))) throw new Error("Unknown encoding: " + enc);
      return nenc || enc;
    }
    __name(normalizeEncoding, "normalizeEncoding");
    exports2.StringDecoder = StringDecoder2;
    function StringDecoder2(encoding) {
      this.encoding = normalizeEncoding(encoding);
      var nb;
      switch (this.encoding) {
        case "utf16le":
          this.text = utf16Text;
          this.end = utf16End;
          nb = 4;
          break;
        case "utf8":
          this.fillLast = utf8FillLast;
          nb = 4;
          break;
        case "base64":
          this.text = base64Text;
          this.end = base64End;
          nb = 3;
          break;
        default:
          this.write = simpleWrite;
          this.end = simpleEnd;
          return;
      }
      this.lastNeed = 0;
      this.lastTotal = 0;
      this.lastChar = Buffer2.allocUnsafe(nb);
    }
    __name(StringDecoder2, "StringDecoder");
    StringDecoder2.prototype.write = function(buf) {
      if (buf.length === 0) return "";
      var r3;
      var i3;
      if (this.lastNeed) {
        r3 = this.fillLast(buf);
        if (r3 === void 0) return "";
        i3 = this.lastNeed;
        this.lastNeed = 0;
      } else {
        i3 = 0;
      }
      if (i3 < buf.length) return r3 ? r3 + this.text(buf, i3) : this.text(buf, i3);
      return r3 || "";
    };
    StringDecoder2.prototype.end = utf8End;
    StringDecoder2.prototype.text = utf8Text;
    StringDecoder2.prototype.fillLast = function(buf) {
      if (this.lastNeed <= buf.length) {
        buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed);
        return this.lastChar.toString(this.encoding, 0, this.lastTotal);
      }
      buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, buf.length);
      this.lastNeed -= buf.length;
    };
    function utf8CheckByte(byte) {
      if (byte <= 127) return 0;
      else if (byte >> 5 === 6) return 2;
      else if (byte >> 4 === 14) return 3;
      else if (byte >> 3 === 30) return 4;
      return byte >> 6 === 2 ? -1 : -2;
    }
    __name(utf8CheckByte, "utf8CheckByte");
    function utf8CheckIncomplete(self2, buf, i3) {
      var j3 = buf.length - 1;
      if (j3 < i3) return 0;
      var nb = utf8CheckByte(buf[j3]);
      if (nb >= 0) {
        if (nb > 0) self2.lastNeed = nb - 1;
        return nb;
      }
      if (--j3 < i3 || nb === -2) return 0;
      nb = utf8CheckByte(buf[j3]);
      if (nb >= 0) {
        if (nb > 0) self2.lastNeed = nb - 2;
        return nb;
      }
      if (--j3 < i3 || nb === -2) return 0;
      nb = utf8CheckByte(buf[j3]);
      if (nb >= 0) {
        if (nb > 0) {
          if (nb === 2) nb = 0;
          else self2.lastNeed = nb - 3;
        }
        return nb;
      }
      return 0;
    }
    __name(utf8CheckIncomplete, "utf8CheckIncomplete");
    function utf8CheckExtraBytes(self2, buf, p3) {
      if ((buf[0] & 192) !== 128) {
        self2.lastNeed = 0;
        return "\uFFFD";
      }
      if (self2.lastNeed > 1 && buf.length > 1) {
        if ((buf[1] & 192) !== 128) {
          self2.lastNeed = 1;
          return "\uFFFD";
        }
        if (self2.lastNeed > 2 && buf.length > 2) {
          if ((buf[2] & 192) !== 128) {
            self2.lastNeed = 2;
            return "\uFFFD";
          }
        }
      }
    }
    __name(utf8CheckExtraBytes, "utf8CheckExtraBytes");
    function utf8FillLast(buf) {
      var p3 = this.lastTotal - this.lastNeed;
      var r3 = utf8CheckExtraBytes(this, buf, p3);
      if (r3 !== void 0) return r3;
      if (this.lastNeed <= buf.length) {
        buf.copy(this.lastChar, p3, 0, this.lastNeed);
        return this.lastChar.toString(this.encoding, 0, this.lastTotal);
      }
      buf.copy(this.lastChar, p3, 0, buf.length);
      this.lastNeed -= buf.length;
    }
    __name(utf8FillLast, "utf8FillLast");
    function utf8Text(buf, i3) {
      var total = utf8CheckIncomplete(this, buf, i3);
      if (!this.lastNeed) return buf.toString("utf8", i3);
      this.lastTotal = total;
      var end = buf.length - (total - this.lastNeed);
      buf.copy(this.lastChar, 0, end);
      return buf.toString("utf8", i3, end);
    }
    __name(utf8Text, "utf8Text");
    function utf8End(buf) {
      var r3 = buf && buf.length ? this.write(buf) : "";
      if (this.lastNeed) return r3 + "\uFFFD";
      return r3;
    }
    __name(utf8End, "utf8End");
    function utf16Text(buf, i3) {
      if ((buf.length - i3) % 2 === 0) {
        var r3 = buf.toString("utf16le", i3);
        if (r3) {
          var c3 = r3.charCodeAt(r3.length - 1);
          if (c3 >= 55296 && c3 <= 56319) {
            this.lastNeed = 2;
            this.lastTotal = 4;
            this.lastChar[0] = buf[buf.length - 2];
            this.lastChar[1] = buf[buf.length - 1];
            return r3.slice(0, -1);
          }
        }
        return r3;
      }
      this.lastNeed = 1;
      this.lastTotal = 2;
      this.lastChar[0] = buf[buf.length - 1];
      return buf.toString("utf16le", i3, buf.length - 1);
    }
    __name(utf16Text, "utf16Text");
    function utf16End(buf) {
      var r3 = buf && buf.length ? this.write(buf) : "";
      if (this.lastNeed) {
        var end = this.lastTotal - this.lastNeed;
        return r3 + this.lastChar.toString("utf16le", 0, end);
      }
      return r3;
    }
    __name(utf16End, "utf16End");
    function base64Text(buf, i3) {
      var n3 = (buf.length - i3) % 3;
      if (n3 === 0) return buf.toString("base64", i3);
      this.lastNeed = 3 - n3;
      this.lastTotal = 3;
      if (n3 === 1) {
        this.lastChar[0] = buf[buf.length - 1];
      } else {
        this.lastChar[0] = buf[buf.length - 2];
        this.lastChar[1] = buf[buf.length - 1];
      }
      return buf.toString("base64", i3, buf.length - n3);
    }
    __name(base64Text, "base64Text");
    function base64End(buf) {
      var r3 = buf && buf.length ? this.write(buf) : "";
      if (this.lastNeed) return r3 + this.lastChar.toString("base64", 0, 3 - this.lastNeed);
      return r3;
    }
    __name(base64End, "base64End");
    function simpleWrite(buf) {
      return buf.toString(this.encoding);
    }
    __name(simpleWrite, "simpleWrite");
    function simpleEnd(buf) {
      return buf && buf.length ? this.write(buf) : "";
    }
    __name(simpleEnd, "simpleEnd");
  }
});

// ../../node_modules/readable-stream/lib/_stream_readable.js
var require_stream_readable = __commonJS({
  "../../node_modules/readable-stream/lib/_stream_readable.js"(exports2, module2) {
    "use strict";
    var pna = require_process_nextick_args();
    module2.exports = Readable;
    var isArray2 = require_isarray();
    var Duplex;
    Readable.ReadableState = ReadableState;
    var EE = require("events").EventEmitter;
    var EElistenerCount = /* @__PURE__ */ __name(function(emitter, type) {
      return emitter.listeners(type).length;
    }, "EElistenerCount");
    var Stream2 = require_stream();
    var Buffer2 = require_safe_buffer().Buffer;
    var OurUint8Array = (typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : typeof self !== "undefined" ? self : {}).Uint8Array || function() {
    };
    function _uint8ArrayToBuffer(chunk) {
      return Buffer2.from(chunk);
    }
    __name(_uint8ArrayToBuffer, "_uint8ArrayToBuffer");
    function _isUint8Array(obj) {
      return Buffer2.isBuffer(obj) || obj instanceof OurUint8Array;
    }
    __name(_isUint8Array, "_isUint8Array");
    var util11 = Object.create(require_util());
    util11.inherits = require_inherits();
    var debugUtil = require("util");
    var debug3 = void 0;
    if (debugUtil && debugUtil.debuglog) {
      debug3 = debugUtil.debuglog("stream");
    } else {
      debug3 = /* @__PURE__ */ __name(function() {
      }, "debug");
    }
    var BufferList = require_BufferList();
    var destroyImpl = require_destroy();
    var StringDecoder2;
    util11.inherits(Readable, Stream2);
    var kProxyEvents = ["error", "close", "destroy", "pause", "resume"];
    function prependListener(emitter, event, fn) {
      if (typeof emitter.prependListener === "function") return emitter.prependListener(event, fn);
      if (!emitter._events || !emitter._events[event]) emitter.on(event, fn);
      else if (isArray2(emitter._events[event])) emitter._events[event].unshift(fn);
      else emitter._events[event] = [fn, emitter._events[event]];
    }
    __name(prependListener, "prependListener");
    function ReadableState(options, stream3) {
      Duplex = Duplex || require_stream_duplex();
      options = options || {};
      var isDuplex = stream3 instanceof Duplex;
      this.objectMode = !!options.objectMode;
      if (isDuplex) this.objectMode = this.objectMode || !!options.readableObjectMode;
      var hwm = options.highWaterMark;
      var readableHwm = options.readableHighWaterMark;
      var defaultHwm = this.objectMode ? 16 : 16 * 1024;
      if (hwm || hwm === 0) this.highWaterMark = hwm;
      else if (isDuplex && (readableHwm || readableHwm === 0)) this.highWaterMark = readableHwm;
      else this.highWaterMark = defaultHwm;
      this.highWaterMark = Math.floor(this.highWaterMark);
      this.buffer = new BufferList();
      this.length = 0;
      this.pipes = null;
      this.pipesCount = 0;
      this.flowing = null;
      this.ended = false;
      this.endEmitted = false;
      this.reading = false;
      this.sync = true;
      this.needReadable = false;
      this.emittedReadable = false;
      this.readableListening = false;
      this.resumeScheduled = false;
      this.destroyed = false;
      this.defaultEncoding = options.defaultEncoding || "utf8";
      this.awaitDrain = 0;
      this.readingMore = false;
      this.decoder = null;
      this.encoding = null;
      if (options.encoding) {
        if (!StringDecoder2) StringDecoder2 = require_string_decoder().StringDecoder;
        this.decoder = new StringDecoder2(options.encoding);
        this.encoding = options.encoding;
      }
    }
    __name(ReadableState, "ReadableState");
    function Readable(options) {
      Duplex = Duplex || require_stream_duplex();
      if (!(this instanceof Readable)) return new Readable(options);
      this._readableState = new ReadableState(options, this);
      this.readable = true;
      if (options) {
        if (typeof options.read === "function") this._read = options.read;
        if (typeof options.destroy === "function") this._destroy = options.destroy;
      }
      Stream2.call(this);
    }
    __name(Readable, "Readable");
    Object.defineProperty(Readable.prototype, "destroyed", {
      get: /* @__PURE__ */ __name(function() {
        if (this._readableState === void 0) {
          return false;
        }
        return this._readableState.destroyed;
      }, "get"),
      set: /* @__PURE__ */ __name(function(value) {
        if (!this._readableState) {
          return;
        }
        this._readableState.destroyed = value;
      }, "set")
    });
    Readable.prototype.destroy = destroyImpl.destroy;
    Readable.prototype._undestroy = destroyImpl.undestroy;
    Readable.prototype._destroy = function(err, cb) {
      this.push(null);
      cb(err);
    };
    Readable.prototype.push = function(chunk, encoding) {
      var state2 = this._readableState;
      var skipChunkCheck;
      if (!state2.objectMode) {
        if (typeof chunk === "string") {
          encoding = encoding || state2.defaultEncoding;
          if (encoding !== state2.encoding) {
            chunk = Buffer2.from(chunk, encoding);
            encoding = "";
          }
          skipChunkCheck = true;
        }
      } else {
        skipChunkCheck = true;
      }
      return readableAddChunk(this, chunk, encoding, false, skipChunkCheck);
    };
    Readable.prototype.unshift = function(chunk) {
      return readableAddChunk(this, chunk, null, true, false);
    };
    function readableAddChunk(stream3, chunk, encoding, addToFront, skipChunkCheck) {
      var state2 = stream3._readableState;
      if (chunk === null) {
        state2.reading = false;
        onEofChunk(stream3, state2);
      } else {
        var er;
        if (!skipChunkCheck) er = chunkInvalid(state2, chunk);
        if (er) {
          stream3.emit("error", er);
        } else if (state2.objectMode || chunk && chunk.length > 0) {
          if (typeof chunk !== "string" && !state2.objectMode && Object.getPrototypeOf(chunk) !== Buffer2.prototype) {
            chunk = _uint8ArrayToBuffer(chunk);
          }
          if (addToFront) {
            if (state2.endEmitted) stream3.emit("error", new Error("stream.unshift() after end event"));
            else addChunk(stream3, state2, chunk, true);
          } else if (state2.ended) {
            stream3.emit("error", new Error("stream.push() after EOF"));
          } else {
            state2.reading = false;
            if (state2.decoder && !encoding) {
              chunk = state2.decoder.write(chunk);
              if (state2.objectMode || chunk.length !== 0) addChunk(stream3, state2, chunk, false);
              else maybeReadMore(stream3, state2);
            } else {
              addChunk(stream3, state2, chunk, false);
            }
          }
        } else if (!addToFront) {
          state2.reading = false;
        }
      }
      return needMoreData(state2);
    }
    __name(readableAddChunk, "readableAddChunk");
    function addChunk(stream3, state2, chunk, addToFront) {
      if (state2.flowing && state2.length === 0 && !state2.sync) {
        stream3.emit("data", chunk);
        stream3.read(0);
      } else {
        state2.length += state2.objectMode ? 1 : chunk.length;
        if (addToFront) state2.buffer.unshift(chunk);
        else state2.buffer.push(chunk);
        if (state2.needReadable) emitReadable(stream3);
      }
      maybeReadMore(stream3, state2);
    }
    __name(addChunk, "addChunk");
    function chunkInvalid(state2, chunk) {
      var er;
      if (!_isUint8Array(chunk) && typeof chunk !== "string" && chunk !== void 0 && !state2.objectMode) {
        er = new TypeError("Invalid non-string/buffer chunk");
      }
      return er;
    }
    __name(chunkInvalid, "chunkInvalid");
    function needMoreData(state2) {
      return !state2.ended && (state2.needReadable || state2.length < state2.highWaterMark || state2.length === 0);
    }
    __name(needMoreData, "needMoreData");
    Readable.prototype.isPaused = function() {
      return this._readableState.flowing === false;
    };
    Readable.prototype.setEncoding = function(enc) {
      if (!StringDecoder2) StringDecoder2 = require_string_decoder().StringDecoder;
      this._readableState.decoder = new StringDecoder2(enc);
      this._readableState.encoding = enc;
      return this;
    };
    var MAX_HWM = 8388608;
    function computeNewHighWaterMark(n3) {
      if (n3 >= MAX_HWM) {
        n3 = MAX_HWM;
      } else {
        n3--;
        n3 |= n3 >>> 1;
        n3 |= n3 >>> 2;
        n3 |= n3 >>> 4;
        n3 |= n3 >>> 8;
        n3 |= n3 >>> 16;
        n3++;
      }
      return n3;
    }
    __name(computeNewHighWaterMark, "computeNewHighWaterMark");
    function howMuchToRead(n3, state2) {
      if (n3 <= 0 || state2.length === 0 && state2.ended) return 0;
      if (state2.objectMode) return 1;
      if (n3 !== n3) {
        if (state2.flowing && state2.length) return state2.buffer.head.data.length;
        else return state2.length;
      }
      if (n3 > state2.highWaterMark) state2.highWaterMark = computeNewHighWaterMark(n3);
      if (n3 <= state2.length) return n3;
      if (!state2.ended) {
        state2.needReadable = true;
        return 0;
      }
      return state2.length;
    }
    __name(howMuchToRead, "howMuchToRead");
    Readable.prototype.read = function(n3) {
      debug3("read", n3);
      n3 = parseInt(n3, 10);
      var state2 = this._readableState;
      var nOrig = n3;
      if (n3 !== 0) state2.emittedReadable = false;
      if (n3 === 0 && state2.needReadable && (state2.length >= state2.highWaterMark || state2.ended)) {
        debug3("read: emitReadable", state2.length, state2.ended);
        if (state2.length === 0 && state2.ended) endReadable(this);
        else emitReadable(this);
        return null;
      }
      n3 = howMuchToRead(n3, state2);
      if (n3 === 0 && state2.ended) {
        if (state2.length === 0) endReadable(this);
        return null;
      }
      var doRead = state2.needReadable;
      debug3("need readable", doRead);
      if (state2.length === 0 || state2.length - n3 < state2.highWaterMark) {
        doRead = true;
        debug3("length less than watermark", doRead);
      }
      if (state2.ended || state2.reading) {
        doRead = false;
        debug3("reading or ended", doRead);
      } else if (doRead) {
        debug3("do read");
        state2.reading = true;
        state2.sync = true;
        if (state2.length === 0) state2.needReadable = true;
        this._read(state2.highWaterMark);
        state2.sync = false;
        if (!state2.reading) n3 = howMuchToRead(nOrig, state2);
      }
      var ret;
      if (n3 > 0) ret = fromList(n3, state2);
      else ret = null;
      if (ret === null) {
        state2.needReadable = true;
        n3 = 0;
      } else {
        state2.length -= n3;
      }
      if (state2.length === 0) {
        if (!state2.ended) state2.needReadable = true;
        if (nOrig !== n3 && state2.ended) endReadable(this);
      }
      if (ret !== null) this.emit("data", ret);
      return ret;
    };
    function onEofChunk(stream3, state2) {
      if (state2.ended) return;
      if (state2.decoder) {
        var chunk = state2.decoder.end();
        if (chunk && chunk.length) {
          state2.buffer.push(chunk);
          state2.length += state2.objectMode ? 1 : chunk.length;
        }
      }
      state2.ended = true;
      emitReadable(stream3);
    }
    __name(onEofChunk, "onEofChunk");
    function emitReadable(stream3) {
      var state2 = stream3._readableState;
      state2.needReadable = false;
      if (!state2.emittedReadable) {
        debug3("emitReadable", state2.flowing);
        state2.emittedReadable = true;
        if (state2.sync) pna.nextTick(emitReadable_, stream3);
        else emitReadable_(stream3);
      }
    }
    __name(emitReadable, "emitReadable");
    function emitReadable_(stream3) {
      debug3("emit readable");
      stream3.emit("readable");
      flow(stream3);
    }
    __name(emitReadable_, "emitReadable_");
    function maybeReadMore(stream3, state2) {
      if (!state2.readingMore) {
        state2.readingMore = true;
        pna.nextTick(maybeReadMore_, stream3, state2);
      }
    }
    __name(maybeReadMore, "maybeReadMore");
    function maybeReadMore_(stream3, state2) {
      var len = state2.length;
      while (!state2.reading && !state2.flowing && !state2.ended && state2.length < state2.highWaterMark) {
        debug3("maybeReadMore read 0");
        stream3.read(0);
        if (len === state2.length)
          break;
        else len = state2.length;
      }
      state2.readingMore = false;
    }
    __name(maybeReadMore_, "maybeReadMore_");
    Readable.prototype._read = function(n3) {
      this.emit("error", new Error("_read() is not implemented"));
    };
    Readable.prototype.pipe = function(dest, pipeOpts) {
      var src = this;
      var state2 = this._readableState;
      switch (state2.pipesCount) {
        case 0:
          state2.pipes = dest;
          break;
        case 1:
          state2.pipes = [state2.pipes, dest];
          break;
        default:
          state2.pipes.push(dest);
          break;
      }
      state2.pipesCount += 1;
      debug3("pipe count=%d opts=%j", state2.pipesCount, pipeOpts);
      var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr;
      var endFn = doEnd ? onend : unpipe;
      if (state2.endEmitted) pna.nextTick(endFn);
      else src.once("end", endFn);
      dest.on("unpipe", onunpipe);
      function onunpipe(readable, unpipeInfo) {
        debug3("onunpipe");
        if (readable === src) {
          if (unpipeInfo && unpipeInfo.hasUnpiped === false) {
            unpipeInfo.hasUnpiped = true;
            cleanup();
          }
        }
      }
      __name(onunpipe, "onunpipe");
      function onend() {
        debug3("onend");
        dest.end();
      }
      __name(onend, "onend");
      var ondrain = pipeOnDrain(src);
      dest.on("drain", ondrain);
      var cleanedUp = false;
      function cleanup() {
        debug3("cleanup");
        dest.removeListener("close", onclose);
        dest.removeListener("finish", onfinish);
        dest.removeListener("drain", ondrain);
        dest.removeListener("error", onerror);
        dest.removeListener("unpipe", onunpipe);
        src.removeListener("end", onend);
        src.removeListener("end", unpipe);
        src.removeListener("data", ondata);
        cleanedUp = true;
        if (state2.awaitDrain && (!dest._writableState || dest._writableState.needDrain)) ondrain();
      }
      __name(cleanup, "cleanup");
      var increasedAwaitDrain = false;
      src.on("data", ondata);
      function ondata(chunk) {
        debug3("ondata");
        increasedAwaitDrain = false;
        var ret = dest.write(chunk);
        if (false === ret && !increasedAwaitDrain) {
          if ((state2.pipesCount === 1 && state2.pipes === dest || state2.pipesCount > 1 && indexOf(state2.pipes, dest) !== -1) && !cleanedUp) {
            debug3("false write response, pause", state2.awaitDrain);
            state2.awaitDrain++;
            increasedAwaitDrain = true;
          }
          src.pause();
        }
      }
      __name(ondata, "ondata");
      function onerror(er) {
        debug3("onerror", er);
        unpipe();
        dest.removeListener("error", onerror);
        if (EElistenerCount(dest, "error") === 0) dest.emit("error", er);
      }
      __name(onerror, "onerror");
      prependListener(dest, "error", onerror);
      function onclose() {
        dest.removeListener("finish", onfinish);
        unpipe();
      }
      __name(onclose, "onclose");
      dest.once("close", onclose);
      function onfinish() {
        debug3("onfinish");
        dest.removeListener("close", onclose);
        unpipe();
      }
      __name(onfinish, "onfinish");
      dest.once("finish", onfinish);
      function unpipe() {
        debug3("unpipe");
        src.unpipe(dest);
      }
      __name(unpipe, "unpipe");
      dest.emit("pipe", src);
      if (!state2.flowing) {
        debug3("pipe resume");
        src.resume();
      }
      return dest;
    };
    function pipeOnDrain(src) {
      return function() {
        var state2 = src._readableState;
        debug3("pipeOnDrain", state2.awaitDrain);
        if (state2.awaitDrain) state2.awaitDrain--;
        if (state2.awaitDrain === 0 && EElistenerCount(src, "data")) {
          state2.flowing = true;
          flow(src);
        }
      };
    }
    __name(pipeOnDrain, "pipeOnDrain");
    Readable.prototype.unpipe = function(dest) {
      var state2 = this._readableState;
      var unpipeInfo = { hasUnpiped: false };
      if (state2.pipesCount === 0) return this;
      if (state2.pipesCount === 1) {
        if (dest && dest !== state2.pipes) return this;
        if (!dest) dest = state2.pipes;
        state2.pipes = null;
        state2.pipesCount = 0;
        state2.flowing = false;
        if (dest) dest.emit("unpipe", this, unpipeInfo);
        return this;
      }
      if (!dest) {
        var dests = state2.pipes;
        var len = state2.pipesCount;
        state2.pipes = null;
        state2.pipesCount = 0;
        state2.flowing = false;
        for (var i3 = 0; i3 < len; i3++) {
          dests[i3].emit("unpipe", this, { hasUnpiped: false });
        }
        return this;
      }
      var index = indexOf(state2.pipes, dest);
      if (index === -1) return this;
      state2.pipes.splice(index, 1);
      state2.pipesCount -= 1;
      if (state2.pipesCount === 1) state2.pipes = state2.pipes[0];
      dest.emit("unpipe", this, unpipeInfo);
      return this;
    };
    Readable.prototype.on = function(ev, fn) {
      var res = Stream2.prototype.on.call(this, ev, fn);
      if (ev === "data") {
        if (this._readableState.flowing !== false) this.resume();
      } else if (ev === "readable") {
        var state2 = this._readableState;
        if (!state2.endEmitted && !state2.readableListening) {
          state2.readableListening = state2.needReadable = true;
          state2.emittedReadable = false;
          if (!state2.reading) {
            pna.nextTick(nReadingNextTick, this);
          } else if (state2.length) {
            emitReadable(this);
          }
        }
      }
      return res;
    };
    Readable.prototype.addListener = Readable.prototype.on;
    function nReadingNextTick(self2) {
      debug3("readable nexttick read 0");
      self2.read(0);
    }
    __name(nReadingNextTick, "nReadingNextTick");
    Readable.prototype.resume = function() {
      var state2 = this._readableState;
      if (!state2.flowing) {
        debug3("resume");
        state2.flowing = true;
        resume(this, state2);
      }
      return this;
    };
    function resume(stream3, state2) {
      if (!state2.resumeScheduled) {
        state2.resumeScheduled = true;
        pna.nextTick(resume_, stream3, state2);
      }
    }
    __name(resume, "resume");
    function resume_(stream3, state2) {
      if (!state2.reading) {
        debug3("resume read 0");
        stream3.read(0);
      }
      state2.resumeScheduled = false;
      state2.awaitDrain = 0;
      stream3.emit("resume");
      flow(stream3);
      if (state2.flowing && !state2.reading) stream3.read(0);
    }
    __name(resume_, "resume_");
    Readable.prototype.pause = function() {
      debug3("call pause flowing=%j", this._readableState.flowing);
      if (false !== this._readableState.flowing) {
        debug3("pause");
        this._readableState.flowing = false;
        this.emit("pause");
      }
      return this;
    };
    function flow(stream3) {
      var state2 = stream3._readableState;
      debug3("flow", state2.flowing);
      while (state2.flowing && stream3.read() !== null) {
      }
    }
    __name(flow, "flow");
    Readable.prototype.wrap = function(stream3) {
      var _this = this;
      var state2 = this._readableState;
      var paused = false;
      stream3.on("end", function() {
        debug3("wrapped end");
        if (state2.decoder && !state2.ended) {
          var chunk = state2.decoder.end();
          if (chunk && chunk.length) _this.push(chunk);
        }
        _this.push(null);
      });
      stream3.on("data", function(chunk) {
        debug3("wrapped data");
        if (state2.decoder) chunk = state2.decoder.write(chunk);
        if (state2.objectMode && (chunk === null || chunk === void 0)) return;
        else if (!state2.objectMode && (!chunk || !chunk.length)) return;
        var ret = _this.push(chunk);
        if (!ret) {
          paused = true;
          stream3.pause();
        }
      });
      for (var i3 in stream3) {
        if (this[i3] === void 0 && typeof stream3[i3] === "function") {
          this[i3] = /* @__PURE__ */ (function(method) {
            return function() {
              return stream3[method].apply(stream3, arguments);
            };
          })(i3);
        }
      }
      for (var n3 = 0; n3 < kProxyEvents.length; n3++) {
        stream3.on(kProxyEvents[n3], this.emit.bind(this, kProxyEvents[n3]));
      }
      this._read = function(n4) {
        debug3("wrapped _read", n4);
        if (paused) {
          paused = false;
          stream3.resume();
        }
      };
      return this;
    };
    Object.defineProperty(Readable.prototype, "readableHighWaterMark", {
      // making it explicit this property is not enumerable
      // because otherwise some prototype manipulation in
      // userland will fail
      enumerable: false,
      get: /* @__PURE__ */ __name(function() {
        return this._readableState.highWaterMark;
      }, "get")
    });
    Readable._fromList = fromList;
    function fromList(n3, state2) {
      if (state2.length === 0) return null;
      var ret;
      if (state2.objectMode) ret = state2.buffer.shift();
      else if (!n3 || n3 >= state2.length) {
        if (state2.decoder) ret = state2.buffer.join("");
        else if (state2.buffer.length === 1) ret = state2.buffer.head.data;
        else ret = state2.buffer.concat(state2.length);
        state2.buffer.clear();
      } else {
        ret = fromListPartial(n3, state2.buffer, state2.decoder);
      }
      return ret;
    }
    __name(fromList, "fromList");
    function fromListPartial(n3, list2, hasStrings) {
      var ret;
      if (n3 < list2.head.data.length) {
        ret = list2.head.data.slice(0, n3);
        list2.head.data = list2.head.data.slice(n3);
      } else if (n3 === list2.head.data.length) {
        ret = list2.shift();
      } else {
        ret = hasStrings ? copyFromBufferString(n3, list2) : copyFromBuffer(n3, list2);
      }
      return ret;
    }
    __name(fromListPartial, "fromListPartial");
    function copyFromBufferString(n3, list2) {
      var p3 = list2.head;
      var c3 = 1;
      var ret = p3.data;
      n3 -= ret.length;
      while (p3 = p3.next) {
        var str = p3.data;
        var nb = n3 > str.length ? str.length : n3;
        if (nb === str.length) ret += str;
        else ret += str.slice(0, n3);
        n3 -= nb;
        if (n3 === 0) {
          if (nb === str.length) {
            ++c3;
            if (p3.next) list2.head = p3.next;
            else list2.head = list2.tail = null;
          } else {
            list2.head = p3;
            p3.data = str.slice(nb);
          }
          break;
        }
        ++c3;
      }
      list2.length -= c3;
      return ret;
    }
    __name(copyFromBufferString, "copyFromBufferString");
    function copyFromBuffer(n3, list2) {
      var ret = Buffer2.allocUnsafe(n3);
      var p3 = list2.head;
      var c3 = 1;
      p3.data.copy(ret);
      n3 -= p3.data.length;
      while (p3 = p3.next) {
        var buf = p3.data;
        var nb = n3 > buf.length ? buf.length : n3;
        buf.copy(ret, ret.length - n3, 0, nb);
        n3 -= nb;
        if (n3 === 0) {
          if (nb === buf.length) {
            ++c3;
            if (p3.next) list2.head = p3.next;
            else list2.head = list2.tail = null;
          } else {
            list2.head = p3;
            p3.data = buf.slice(nb);
          }
          break;
        }
        ++c3;
      }
      list2.length -= c3;
      return ret;
    }
    __name(copyFromBuffer, "copyFromBuffer");
    function endReadable(stream3) {
      var state2 = stream3._readableState;
      if (state2.length > 0) throw new Error('"endReadable()" called on non-empty stream');
      if (!state2.endEmitted) {
        state2.ended = true;
        pna.nextTick(endReadableNT, state2, stream3);
      }
    }
    __name(endReadable, "endReadable");
    function endReadableNT(state2, stream3) {
      if (!state2.endEmitted && state2.length === 0) {
        state2.endEmitted = true;
        stream3.readable = false;
        stream3.emit("end");
      }
    }
    __name(endReadableNT, "endReadableNT");
    function indexOf(xs, x3) {
      for (var i3 = 0, l3 = xs.length; i3 < l3; i3++) {
        if (xs[i3] === x3) return i3;
      }
      return -1;
    }
    __name(indexOf, "indexOf");
  }
});

// ../../node_modules/readable-stream/lib/_stream_transform.js
var require_stream_transform = __commonJS({
  "../../node_modules/readable-stream/lib/_stream_transform.js"(exports2, module2) {
    "use strict";
    module2.exports = Transform;
    var Duplex = require_stream_duplex();
    var util11 = Object.create(require_util());
    util11.inherits = require_inherits();
    util11.inherits(Transform, Duplex);
    function afterTransform(er, data3) {
      var ts = this._transformState;
      ts.transforming = false;
      var cb = ts.writecb;
      if (!cb) {
        return this.emit("error", new Error("write callback called multiple times"));
      }
      ts.writechunk = null;
      ts.writecb = null;
      if (data3 != null)
        this.push(data3);
      cb(er);
      var rs = this._readableState;
      rs.reading = false;
      if (rs.needReadable || rs.length < rs.highWaterMark) {
        this._read(rs.highWaterMark);
      }
    }
    __name(afterTransform, "afterTransform");
    function Transform(options) {
      if (!(this instanceof Transform)) return new Transform(options);
      Duplex.call(this, options);
      this._transformState = {
        afterTransform: afterTransform.bind(this),
        needTransform: false,
        transforming: false,
        writecb: null,
        writechunk: null,
        writeencoding: null
      };
      this._readableState.needReadable = true;
      this._readableState.sync = false;
      if (options) {
        if (typeof options.transform === "function") this._transform = options.transform;
        if (typeof options.flush === "function") this._flush = options.flush;
      }
      this.on("prefinish", prefinish);
    }
    __name(Transform, "Transform");
    function prefinish() {
      var _this = this;
      if (typeof this._flush === "function") {
        this._flush(function(er, data3) {
          done(_this, er, data3);
        });
      } else {
        done(this, null, null);
      }
    }
    __name(prefinish, "prefinish");
    Transform.prototype.push = function(chunk, encoding) {
      this._transformState.needTransform = false;
      return Duplex.prototype.push.call(this, chunk, encoding);
    };
    Transform.prototype._transform = function(chunk, encoding, cb) {
      throw new Error("_transform() is not implemented");
    };
    Transform.prototype._write = function(chunk, encoding, cb) {
      var ts = this._transformState;
      ts.writecb = cb;
      ts.writechunk = chunk;
      ts.writeencoding = encoding;
      if (!ts.transforming) {
        var rs = this._readableState;
        if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark) this._read(rs.highWaterMark);
      }
    };
    Transform.prototype._read = function(n3) {
      var ts = this._transformState;
      if (ts.writechunk !== null && ts.writecb && !ts.transforming) {
        ts.transforming = true;
        this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform);
      } else {
        ts.needTransform = true;
      }
    };
    Transform.prototype._destroy = function(err, cb) {
      var _this2 = this;
      Duplex.prototype._destroy.call(this, err, function(err2) {
        cb(err2);
        _this2.emit("close");
      });
    };
    function done(stream3, er, data3) {
      if (er) return stream3.emit("error", er);
      if (data3 != null)
        stream3.push(data3);
      if (stream3._writableState.length) throw new Error("Calling transform done when ws.length != 0");
      if (stream3._transformState.transforming) throw new Error("Calling transform done when still transforming");
      return stream3.push(null);
    }
    __name(done, "done");
  }
});

// ../../node_modules/readable-stream/lib/_stream_passthrough.js
var require_stream_passthrough = __commonJS({
  "../../node_modules/readable-stream/lib/_stream_passthrough.js"(exports2, module2) {
    "use strict";
    module2.exports = PassThrough;
    var Transform = require_stream_transform();
    var util11 = Object.create(require_util());
    util11.inherits = require_inherits();
    util11.inherits(PassThrough, Transform);
    function PassThrough(options) {
      if (!(this instanceof PassThrough)) return new PassThrough(options);
      Transform.call(this, options);
    }
    __name(PassThrough, "PassThrough");
    PassThrough.prototype._transform = function(chunk, encoding, cb) {
      cb(null, chunk);
    };
  }
});

// ../../node_modules/readable-stream/readable.js
var require_readable = __commonJS({
  "../../node_modules/readable-stream/readable.js"(exports2, module2) {
    var Stream2 = require("stream");
    if (process.env.READABLE_STREAM === "disable" && Stream2) {
      module2.exports = Stream2;
      exports2 = module2.exports = Stream2.Readable;
      exports2.Readable = Stream2.Readable;
      exports2.Writable = Stream2.Writable;
      exports2.Duplex = Stream2.Duplex;
      exports2.Transform = Stream2.Transform;
      exports2.PassThrough = Stream2.PassThrough;
      exports2.Stream = Stream2;
    } else {
      exports2 = module2.exports = require_stream_readable();
      exports2.Stream = Stream2 || exports2;
      exports2.Readable = exports2;
      exports2.Writable = require_stream_writable();
      exports2.Duplex = require_stream_duplex();
      exports2.Transform = require_stream_transform();
      exports2.PassThrough = require_stream_passthrough();
    }
  }
});

// ../../node_modules/readable-stream/passthrough.js
var require_passthrough = __commonJS({
  "../../node_modules/readable-stream/passthrough.js"(exports2, module2) {
    module2.exports = require_readable().PassThrough;
  }
});

// ../../node_modules/lazystream/lib/lazystream.js
var require_lazystream = __commonJS({
  "../../node_modules/lazystream/lib/lazystream.js"(exports2, module2) {
    var util11 = require("util");
    var PassThrough = require_passthrough();
    module2.exports = {
      Readable,
      Writable: Writable3
    };
    util11.inherits(Readable, PassThrough);
    util11.inherits(Writable3, PassThrough);
    function beforeFirstCall(instance, method, callback) {
      instance[method] = function() {
        delete instance[method];
        callback.apply(this, arguments);
        return this[method].apply(this, arguments);
      };
    }
    __name(beforeFirstCall, "beforeFirstCall");
    function Readable(fn, options) {
      if (!(this instanceof Readable))
        return new Readable(fn, options);
      PassThrough.call(this, options);
      beforeFirstCall(this, "_read", function() {
        var source = fn.call(this, options);
        var emit = this.emit.bind(this, "error");
        source.on("error", emit);
        source.pipe(this);
      });
      this.emit("readable");
    }
    __name(Readable, "Readable");
    function Writable3(fn, options) {
      if (!(this instanceof Writable3))
        return new Writable3(fn, options);
      PassThrough.call(this, options);
      beforeFirstCall(this, "_write", function() {
        var destination = fn.call(this, options);
        var emit = this.emit.bind(this, "error");
        destination.on("error", emit);
        this.pipe(destination);
      });
      this.emit("writable");
    }
    __name(Writable3, "Writable");
  }
});

// ../../node_modules/normalize-path/index.js
var require_normalize_path = __commonJS({
  "../../node_modules/normalize-path/index.js"(exports2, module2) {
    module2.exports = function(path38, stripTrailing) {
      if (typeof path38 !== "string") {
        throw new TypeError("expected path to be a string");
      }
      if (path38 === "\\" || path38 === "/") return "/";
      var len = path38.length;
      if (len <= 1) return path38;
      var prefix2 = "";
      if (len > 4 && path38[3] === "\\") {
        var ch = path38[2];
        if ((ch === "?" || ch === ".") && path38.slice(0, 2) === "\\\\") {
          path38 = path38.slice(2);
          prefix2 = "//";
        }
      }
      var segs = path38.split(/[/\\]+/);
      if (stripTrailing !== false && segs[segs.length - 1] === "") {
        segs.pop();
      }
      return prefix2 + segs.join("/");
    };
  }
});

// ../../node_modules/lodash/identity.js
var require_identity = __commonJS({
  "../../node_modules/lodash/identity.js"(exports2, module2) {
    function identity(value) {
      return value;
    }
    __name(identity, "identity");
    module2.exports = identity;
  }
});

// ../../node_modules/lodash/_apply.js
var require_apply = __commonJS({
  "../../node_modules/lodash/_apply.js"(exports2, module2) {
    function apply(func, thisArg, args) {
      switch (args.length) {
        case 0:
          return func.call(thisArg);
        case 1:
          return func.call(thisArg, args[0]);
        case 2:
          return func.call(thisArg, args[0], args[1]);
        case 3:
          return func.call(thisArg, args[0], args[1], args[2]);
      }
      return func.apply(thisArg, args);
    }
    __name(apply, "apply");
    module2.exports = apply;
  }
});

// ../../node_modules/lodash/_overRest.js
var require_overRest = __commonJS({
  "../../node_modules/lodash/_overRest.js"(exports2, module2) {
    var apply = require_apply();
    var nativeMax = Math.max;
    function overRest(func, start, transform) {
      start = nativeMax(start === void 0 ? func.length - 1 : start, 0);
      return function() {
        var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length);
        while (++index < length) {
          array[index] = args[start + index];
        }
        index = -1;
        var otherArgs = Array(start + 1);
        while (++index < start) {
          otherArgs[index] = args[index];
        }
        otherArgs[start] = transform(array);
        return apply(func, this, otherArgs);
      };
    }
    __name(overRest, "overRest");
    module2.exports = overRest;
  }
});

// ../../node_modules/lodash/constant.js
var require_constant = __commonJS({
  "../../node_modules/lodash/constant.js"(exports2, module2) {
    function constant(value) {
      return function() {
        return value;
      };
    }
    __name(constant, "constant");
    module2.exports = constant;
  }
});

// ../../node_modules/lodash/_freeGlobal.js
var require_freeGlobal = __commonJS({
  "../../node_modules/lodash/_freeGlobal.js"(exports2, module2) {
    var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
    module2.exports = freeGlobal;
  }
});

// ../../node_modules/lodash/_root.js
var require_root = __commonJS({
  "../../node_modules/lodash/_root.js"(exports2, module2) {
    var freeGlobal = require_freeGlobal();
    var freeSelf = typeof self == "object" && self && self.Object === Object && self;
    var root = freeGlobal || freeSelf || Function("return this")();
    module2.exports = root;
  }
});

// ../../node_modules/lodash/_Symbol.js
var require_Symbol = __commonJS({
  "../../node_modules/lodash/_Symbol.js"(exports2, module2) {
    var root = require_root();
    var Symbol2 = root.Symbol;
    module2.exports = Symbol2;
  }
});

// ../../node_modules/lodash/_getRawTag.js
var require_getRawTag = __commonJS({
  "../../node_modules/lodash/_getRawTag.js"(exports2, module2) {
    var Symbol2 = require_Symbol();
    var objectProto = Object.prototype;
    var hasOwnProperty2 = objectProto.hasOwnProperty;
    var nativeObjectToString = objectProto.toString;
    var symToStringTag = Symbol2 ? Symbol2.toStringTag : void 0;
    function getRawTag(value) {
      var isOwn = hasOwnProperty2.call(value, symToStringTag), tag2 = value[symToStringTag];
      try {
        value[symToStringTag] = void 0;
        var unmasked = true;
      } catch (e3) {
      }
      var result2 = nativeObjectToString.call(value);
      if (unmasked) {
        if (isOwn) {
          value[symToStringTag] = tag2;
        } else {
          delete value[symToStringTag];
        }
      }
      return result2;
    }
    __name(getRawTag, "getRawTag");
    module2.exports = getRawTag;
  }
});

// ../../node_modules/lodash/_objectToString.js
var require_objectToString = __commonJS({
  "../../node_modules/lodash/_objectToString.js"(exports2, module2) {
    var objectProto = Object.prototype;
    var nativeObjectToString = objectProto.toString;
    function objectToString(value) {
      return nativeObjectToString.call(value);
    }
    __name(objectToString, "objectToString");
    module2.exports = objectToString;
  }
});

// ../../node_modules/lodash/_baseGetTag.js
var require_baseGetTag = __commonJS({
  "../../node_modules/lodash/_baseGetTag.js"(exports2, module2) {
    var Symbol2 = require_Symbol();
    var getRawTag = require_getRawTag();
    var objectToString = require_objectToString();
    var nullTag = "[object Null]";
    var undefinedTag = "[object Undefined]";
    var symToStringTag = Symbol2 ? Symbol2.toStringTag : void 0;
    function baseGetTag(value) {
      if (value == null) {
        return value === void 0 ? undefinedTag : nullTag;
      }
      return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
    }
    __name(baseGetTag, "baseGetTag");
    module2.exports = baseGetTag;
  }
});

// ../../node_modules/lodash/isObject.js
var require_isObject = __commonJS({
  "../../node_modules/lodash/isObject.js"(exports2, module2) {
    function isObject3(value) {
      var type = typeof value;
      return value != null && (type == "object" || type == "function");
    }
    __name(isObject3, "isObject");
    module2.exports = isObject3;
  }
});

// ../../node_modules/lodash/isFunction.js
var require_isFunction = __commonJS({
  "../../node_modules/lodash/isFunction.js"(exports2, module2) {
    var baseGetTag = require_baseGetTag();
    var isObject3 = require_isObject();
    var asyncTag = "[object AsyncFunction]";
    var funcTag = "[object Function]";
    var genTag = "[object GeneratorFunction]";
    var proxyTag = "[object Proxy]";
    function isFunction(value) {
      if (!isObject3(value)) {
        return false;
      }
      var tag2 = baseGetTag(value);
      return tag2 == funcTag || tag2 == genTag || tag2 == asyncTag || tag2 == proxyTag;
    }
    __name(isFunction, "isFunction");
    module2.exports = isFunction;
  }
});

// ../../node_modules/lodash/_coreJsData.js
var require_coreJsData = __commonJS({
  "../../node_modules/lodash/_coreJsData.js"(exports2, module2) {
    var root = require_root();
    var coreJsData = root["__core-js_shared__"];
    module2.exports = coreJsData;
  }
});

// ../../node_modules/lodash/_isMasked.js
var require_isMasked = __commonJS({
  "../../node_modules/lodash/_isMasked.js"(exports2, module2) {
    var coreJsData = require_coreJsData();
    var maskSrcKey = (function() {
      var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
      return uid ? "Symbol(src)_1." + uid : "";
    })();
    function isMasked(func) {
      return !!maskSrcKey && maskSrcKey in func;
    }
    __name(isMasked, "isMasked");
    module2.exports = isMasked;
  }
});

// ../../node_modules/lodash/_toSource.js
var require_toSource = __commonJS({
  "../../node_modules/lodash/_toSource.js"(exports2, module2) {
    var funcProto = Function.prototype;
    var funcToString = funcProto.toString;
    function toSource(func) {
      if (func != null) {
        try {
          return funcToString.call(func);
        } catch (e3) {
        }
        try {
          return func + "";
        } catch (e3) {
        }
      }
      return "";
    }
    __name(toSource, "toSource");
    module2.exports = toSource;
  }
});

// ../../node_modules/lodash/_baseIsNative.js
var require_baseIsNative = __commonJS({
  "../../node_modules/lodash/_baseIsNative.js"(exports2, module2) {
    var isFunction = require_isFunction();
    var isMasked = require_isMasked();
    var isObject3 = require_isObject();
    var toSource = require_toSource();
    var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
    var reIsHostCtor = /^\[object .+?Constructor\]$/;
    var funcProto = Function.prototype;
    var objectProto = Object.prototype;
    var funcToString = funcProto.toString;
    var hasOwnProperty2 = objectProto.hasOwnProperty;
    var reIsNative = RegExp(
      "^" + funcToString.call(hasOwnProperty2).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
    );
    function baseIsNative(value) {
      if (!isObject3(value) || isMasked(value)) {
        return false;
      }
      var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
      return pattern.test(toSource(value));
    }
    __name(baseIsNative, "baseIsNative");
    module2.exports = baseIsNative;
  }
});

// ../../node_modules/lodash/_getValue.js
var require_getValue = __commonJS({
  "../../node_modules/lodash/_getValue.js"(exports2, module2) {
    function getValue(object, key) {
      return object == null ? void 0 : object[key];
    }
    __name(getValue, "getValue");
    module2.exports = getValue;
  }
});

// ../../node_modules/lodash/_getNative.js
var require_getNative = __commonJS({
  "../../node_modules/lodash/_getNative.js"(exports2, module2) {
    var baseIsNative = require_baseIsNative();
    var getValue = require_getValue();
    function getNative(object, key) {
      var value = getValue(object, key);
      return baseIsNative(value) ? value : void 0;
    }
    __name(getNative, "getNative");
    module2.exports = getNative;
  }
});

// ../../node_modules/lodash/_defineProperty.js
var require_defineProperty = __commonJS({
  "../../node_modules/lodash/_defineProperty.js"(exports2, module2) {
    var getNative = require_getNative();
    var defineProperty = (function() {
      try {
        var func = getNative(Object, "defineProperty");
        func({}, "", {});
        return func;
      } catch (e3) {
      }
    })();
    module2.exports = defineProperty;
  }
});

// ../../node_modules/lodash/_baseSetToString.js
var require_baseSetToString = __commonJS({
  "../../node_modules/lodash/_baseSetToString.js"(exports2, module2) {
    var constant = require_constant();
    var defineProperty = require_defineProperty();
    var identity = require_identity();
    var baseSetToString = !defineProperty ? identity : function(func, string) {
      return defineProperty(func, "toString", {
        "configurable": true,
        "enumerable": false,
        "value": constant(string),
        "writable": true
      });
    };
    module2.exports = baseSetToString;
  }
});

// ../../node_modules/lodash/_shortOut.js
var require_shortOut = __commonJS({
  "../../node_modules/lodash/_shortOut.js"(exports2, module2) {
    var HOT_COUNT = 800;
    var HOT_SPAN = 16;
    var nativeNow = Date.now;
    function shortOut(func) {
      var count = 0, lastCalled = 0;
      return function() {
        var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled);
        lastCalled = stamp;
        if (remaining > 0) {
          if (++count >= HOT_COUNT) {
            return arguments[0];
          }
        } else {
          count = 0;
        }
        return func.apply(void 0, arguments);
      };
    }
    __name(shortOut, "shortOut");
    module2.exports = shortOut;
  }
});

// ../../node_modules/lodash/_setToString.js
var require_setToString = __commonJS({
  "../../node_modules/lodash/_setToString.js"(exports2, module2) {
    var baseSetToString = require_baseSetToString();
    var shortOut = require_shortOut();
    var setToString = shortOut(baseSetToString);
    module2.exports = setToString;
  }
});

// ../../node_modules/lodash/_baseRest.js
var require_baseRest = __commonJS({
  "../../node_modules/lodash/_baseRest.js"(exports2, module2) {
    var identity = require_identity();
    var overRest = require_overRest();
    var setToString = require_setToString();
    function baseRest(func, start) {
      return setToString(overRest(func, start, identity), func + "");
    }
    __name(baseRest, "baseRest");
    module2.exports = baseRest;
  }
});

// ../../node_modules/lodash/eq.js
var require_eq2 = __commonJS({
  "../../node_modules/lodash/eq.js"(exports2, module2) {
    function eq2(value, other) {
      return value === other || value !== value && other !== other;
    }
    __name(eq2, "eq");
    module2.exports = eq2;
  }
});

// ../../node_modules/lodash/isLength.js
var require_isLength = __commonJS({
  "../../node_modules/lodash/isLength.js"(exports2, module2) {
    var MAX_SAFE_INTEGER = 9007199254740991;
    function isLength(value) {
      return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
    }
    __name(isLength, "isLength");
    module2.exports = isLength;
  }
});

// ../../node_modules/lodash/isArrayLike.js
var require_isArrayLike = __commonJS({
  "../../node_modules/lodash/isArrayLike.js"(exports2, module2) {
    var isFunction = require_isFunction();
    var isLength = require_isLength();
    function isArrayLike(value) {
      return value != null && isLength(value.length) && !isFunction(value);
    }
    __name(isArrayLike, "isArrayLike");
    module2.exports = isArrayLike;
  }
});

// ../../node_modules/lodash/_isIndex.js
var require_isIndex = __commonJS({
  "../../node_modules/lodash/_isIndex.js"(exports2, module2) {
    var MAX_SAFE_INTEGER = 9007199254740991;
    var reIsUint = /^(?:0|[1-9]\d*)$/;
    function isIndex(value, length) {
      var type = typeof value;
      length = length == null ? MAX_SAFE_INTEGER : length;
      return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
    }
    __name(isIndex, "isIndex");
    module2.exports = isIndex;
  }
});

// ../../node_modules/lodash/_isIterateeCall.js
var require_isIterateeCall = __commonJS({
  "../../node_modules/lodash/_isIterateeCall.js"(exports2, module2) {
    var eq2 = require_eq2();
    var isArrayLike = require_isArrayLike();
    var isIndex = require_isIndex();
    var isObject3 = require_isObject();
    function isIterateeCall(value, index, object) {
      if (!isObject3(object)) {
        return false;
      }
      var type = typeof index;
      if (type == "number" ? isArrayLike(object) && isIndex(index, object.length) : type == "string" && index in object) {
        return eq2(object[index], value);
      }
      return false;
    }
    __name(isIterateeCall, "isIterateeCall");
    module2.exports = isIterateeCall;
  }
});

// ../../node_modules/lodash/_baseTimes.js
var require_baseTimes = __commonJS({
  "../../node_modules/lodash/_baseTimes.js"(exports2, module2) {
    function baseTimes(n3, iteratee) {
      var index = -1, result2 = Array(n3);
      while (++index < n3) {
        result2[index] = iteratee(index);
      }
      return result2;
    }
    __name(baseTimes, "baseTimes");
    module2.exports = baseTimes;
  }
});

// ../../node_modules/lodash/isObjectLike.js
var require_isObjectLike = __commonJS({
  "../../node_modules/lodash/isObjectLike.js"(exports2, module2) {
    function isObjectLike(value) {
      return value != null && typeof value == "object";
    }
    __name(isObjectLike, "isObjectLike");
    module2.exports = isObjectLike;
  }
});

// ../../node_modules/lodash/_baseIsArguments.js
var require_baseIsArguments = __commonJS({
  "../../node_modules/lodash/_baseIsArguments.js"(exports2, module2) {
    var baseGetTag = require_baseGetTag();
    var isObjectLike = require_isObjectLike();
    var argsTag = "[object Arguments]";
    function baseIsArguments(value) {
      return isObjectLike(value) && baseGetTag(value) == argsTag;
    }
    __name(baseIsArguments, "baseIsArguments");
    module2.exports = baseIsArguments;
  }
});

// ../../node_modules/lodash/isArguments.js
var require_isArguments = __commonJS({
  "../../node_modules/lodash/isArguments.js"(exports2, module2) {
    var baseIsArguments = require_baseIsArguments();
    var isObjectLike = require_isObjectLike();
    var objectProto = Object.prototype;
    var hasOwnProperty2 = objectProto.hasOwnProperty;
    var propertyIsEnumerable = objectProto.propertyIsEnumerable;
    var isArguments = baseIsArguments(/* @__PURE__ */ (function() {
      return arguments;
    })()) ? baseIsArguments : function(value) {
      return isObjectLike(value) && hasOwnProperty2.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
    };
    module2.exports = isArguments;
  }
});

// ../../node_modules/lodash/isArray.js
var require_isArray = __commonJS({
  "../../node_modules/lodash/isArray.js"(exports2, module2) {
    var isArray2 = Array.isArray;
    module2.exports = isArray2;
  }
});

// ../../node_modules/lodash/stubFalse.js
var require_stubFalse = __commonJS({
  "../../node_modules/lodash/stubFalse.js"(exports2, module2) {
    function stubFalse() {
      return false;
    }
    __name(stubFalse, "stubFalse");
    module2.exports = stubFalse;
  }
});

// ../../node_modules/lodash/isBuffer.js
var require_isBuffer = __commonJS({
  "../../node_modules/lodash/isBuffer.js"(exports2, module2) {
    var root = require_root();
    var stubFalse = require_stubFalse();
    var freeExports = typeof exports2 == "object" && exports2 && !exports2.nodeType && exports2;
    var freeModule = freeExports && typeof module2 == "object" && module2 && !module2.nodeType && module2;
    var moduleExports = freeModule && freeModule.exports === freeExports;
    var Buffer2 = moduleExports ? root.Buffer : void 0;
    var nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : void 0;
    var isBuffer = nativeIsBuffer || stubFalse;
    module2.exports = isBuffer;
  }
});

// ../../node_modules/lodash/_baseIsTypedArray.js
var require_baseIsTypedArray = __commonJS({
  "../../node_modules/lodash/_baseIsTypedArray.js"(exports2, module2) {
    var baseGetTag = require_baseGetTag();
    var isLength = require_isLength();
    var isObjectLike = require_isObjectLike();
    var argsTag = "[object Arguments]";
    var arrayTag = "[object Array]";
    var boolTag = "[object Boolean]";
    var dateTag = "[object Date]";
    var errorTag = "[object Error]";
    var funcTag = "[object Function]";
    var mapTag = "[object Map]";
    var numberTag = "[object Number]";
    var objectTag = "[object Object]";
    var regexpTag = "[object RegExp]";
    var setTag = "[object Set]";
    var stringTag = "[object String]";
    var weakMapTag = "[object WeakMap]";
    var arrayBufferTag = "[object ArrayBuffer]";
    var dataViewTag = "[object DataView]";
    var float32Tag = "[object Float32Array]";
    var float64Tag = "[object Float64Array]";
    var int8Tag = "[object Int8Array]";
    var int16Tag = "[object Int16Array]";
    var int32Tag = "[object Int32Array]";
    var uint8Tag = "[object Uint8Array]";
    var uint8ClampedTag = "[object Uint8ClampedArray]";
    var uint16Tag = "[object Uint16Array]";
    var uint32Tag = "[object Uint32Array]";
    var typedArrayTags = {};
    typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
    typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;
    function baseIsTypedArray(value) {
      return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
    }
    __name(baseIsTypedArray, "baseIsTypedArray");
    module2.exports = baseIsTypedArray;
  }
});

// ../../node_modules/lodash/_baseUnary.js
var require_baseUnary = __commonJS({
  "../../node_modules/lodash/_baseUnary.js"(exports2, module2) {
    function baseUnary(func) {
      return function(value) {
        return func(value);
      };
    }
    __name(baseUnary, "baseUnary");
    module2.exports = baseUnary;
  }
});

// ../../node_modules/lodash/_nodeUtil.js
var require_nodeUtil = __commonJS({
  "../../node_modules/lodash/_nodeUtil.js"(exports2, module2) {
    var freeGlobal = require_freeGlobal();
    var freeExports = typeof exports2 == "object" && exports2 && !exports2.nodeType && exports2;
    var freeModule = freeExports && typeof module2 == "object" && module2 && !module2.nodeType && module2;
    var moduleExports = freeModule && freeModule.exports === freeExports;
    var freeProcess = moduleExports && freeGlobal.process;
    var nodeUtil = (function() {
      try {
        var types5 = freeModule && freeModule.require && freeModule.require("util").types;
        if (types5) {
          return types5;
        }
        return freeProcess && freeProcess.binding && freeProcess.binding("util");
      } catch (e3) {
      }
    })();
    module2.exports = nodeUtil;
  }
});

// ../../node_modules/lodash/isTypedArray.js
var require_isTypedArray = __commonJS({
  "../../node_modules/lodash/isTypedArray.js"(exports2, module2) {
    var baseIsTypedArray = require_baseIsTypedArray();
    var baseUnary = require_baseUnary();
    var nodeUtil = require_nodeUtil();
    var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
    var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
    module2.exports = isTypedArray;
  }
});

// ../../node_modules/lodash/_arrayLikeKeys.js
var require_arrayLikeKeys = __commonJS({
  "../../node_modules/lodash/_arrayLikeKeys.js"(exports2, module2) {
    var baseTimes = require_baseTimes();
    var isArguments = require_isArguments();
    var isArray2 = require_isArray();
    var isBuffer = require_isBuffer();
    var isIndex = require_isIndex();
    var isTypedArray = require_isTypedArray();
    var objectProto = Object.prototype;
    var hasOwnProperty2 = objectProto.hasOwnProperty;
    function arrayLikeKeys(value, inherited) {
      var isArr = isArray2(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result2 = skipIndexes ? baseTimes(value.length, String) : [], length = result2.length;
      for (var key in value) {
        if ((inherited || hasOwnProperty2.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
        (key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
        isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
        isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
        isIndex(key, length)))) {
          result2.push(key);
        }
      }
      return result2;
    }
    __name(arrayLikeKeys, "arrayLikeKeys");
    module2.exports = arrayLikeKeys;
  }
});

// ../../node_modules/lodash/_isPrototype.js
var require_isPrototype = __commonJS({
  "../../node_modules/lodash/_isPrototype.js"(exports2, module2) {
    var objectProto = Object.prototype;
    function isPrototype(value) {
      var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto;
      return value === proto;
    }
    __name(isPrototype, "isPrototype");
    module2.exports = isPrototype;
  }
});

// ../../node_modules/lodash/_nativeKeysIn.js
var require_nativeKeysIn = __commonJS({
  "../../node_modules/lodash/_nativeKeysIn.js"(exports2, module2) {
    function nativeKeysIn(object) {
      var result2 = [];
      if (object != null) {
        for (var key in Object(object)) {
          result2.push(key);
        }
      }
      return result2;
    }
    __name(nativeKeysIn, "nativeKeysIn");
    module2.exports = nativeKeysIn;
  }
});

// ../../node_modules/lodash/_baseKeysIn.js
var require_baseKeysIn = __commonJS({
  "../../node_modules/lodash/_baseKeysIn.js"(exports2, module2) {
    var isObject3 = require_isObject();
    var isPrototype = require_isPrototype();
    var nativeKeysIn = require_nativeKeysIn();
    var objectProto = Object.prototype;
    var hasOwnProperty2 = objectProto.hasOwnProperty;
    function baseKeysIn(object) {
      if (!isObject3(object)) {
        return nativeKeysIn(object);
      }
      var isProto = isPrototype(object), result2 = [];
      for (var key in object) {
        if (!(key == "constructor" && (isProto || !hasOwnProperty2.call(object, key)))) {
          result2.push(key);
        }
      }
      return result2;
    }
    __name(baseKeysIn, "baseKeysIn");
    module2.exports = baseKeysIn;
  }
});

// ../../node_modules/lodash/keysIn.js
var require_keysIn = __commonJS({
  "../../node_modules/lodash/keysIn.js"(exports2, module2) {
    var arrayLikeKeys = require_arrayLikeKeys();
    var baseKeysIn = require_baseKeysIn();
    var isArrayLike = require_isArrayLike();
    function keysIn(object) {
      return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
    }
    __name(keysIn, "keysIn");
    module2.exports = keysIn;
  }
});

// ../../node_modules/lodash/defaults.js
var require_defaults = __commonJS({
  "../../node_modules/lodash/defaults.js"(exports2, module2) {
    var baseRest = require_baseRest();
    var eq2 = require_eq2();
    var isIterateeCall = require_isIterateeCall();
    var keysIn = require_keysIn();
    var objectProto = Object.prototype;
    var hasOwnProperty2 = objectProto.hasOwnProperty;
    var defaults4 = baseRest(function(object, sources) {
      object = Object(object);
      var index = -1;
      var length = sources.length;
      var guard = length > 2 ? sources[2] : void 0;
      if (guard && isIterateeCall(sources[0], sources[1], guard)) {
        length = 1;
      }
      while (++index < length) {
        var source = sources[index];
        var props = keysIn(source);
        var propsIndex = -1;
        var propsLength = props.length;
        while (++propsIndex < propsLength) {
          var key = props[propsIndex];
          var value = object[key];
          if (value === void 0 || eq2(value, objectProto[key]) && !hasOwnProperty2.call(object, key)) {
            object[key] = source[key];
          }
        }
      }
      return object;
    });
    module2.exports = defaults4;
  }
});

// ../../node_modules/archiver-utils/node_modules/readable-stream/lib/ours/primordials.js
var require_primordials = __commonJS({
  "../../node_modules/archiver-utils/node_modules/readable-stream/lib/ours/primordials.js"(exports2, module2) {
    "use strict";
    var AggregateError = class extends Error {
      static {
        __name(this, "AggregateError");
      }
      constructor(errors) {
        if (!Array.isArray(errors)) {
          throw new TypeError(`Expected input to be an Array, got ${typeof errors}`);
        }
        let message2 = "";
        for (let i3 = 0; i3 < errors.length; i3++) {
          message2 += `    ${errors[i3].stack}
`;
        }
        super(message2);
        this.name = "AggregateError";
        this.errors = errors;
      }
    };
    module2.exports = {
      AggregateError,
      ArrayIsArray(self2) {
        return Array.isArray(self2);
      },
      ArrayPrototypeIncludes(self2, el) {
        return self2.includes(el);
      },
      ArrayPrototypeIndexOf(self2, el) {
        return self2.indexOf(el);
      },
      ArrayPrototypeJoin(self2, sep5) {
        return self2.join(sep5);
      },
      ArrayPrototypeMap(self2, fn) {
        return self2.map(fn);
      },
      ArrayPrototypePop(self2, el) {
        return self2.pop(el);
      },
      ArrayPrototypePush(self2, el) {
        return self2.push(el);
      },
      ArrayPrototypeSlice(self2, start, end) {
        return self2.slice(start, end);
      },
      Error,
      FunctionPrototypeCall(fn, thisArgs, ...args) {
        return fn.call(thisArgs, ...args);
      },
      FunctionPrototypeSymbolHasInstance(self2, instance) {
        return Function.prototype[Symbol.hasInstance].call(self2, instance);
      },
      MathFloor: Math.floor,
      Number,
      NumberIsInteger: Number.isInteger,
      NumberIsNaN: Number.isNaN,
      NumberMAX_SAFE_INTEGER: Number.MAX_SAFE_INTEGER,
      NumberMIN_SAFE_INTEGER: Number.MIN_SAFE_INTEGER,
      NumberParseInt: Number.parseInt,
      ObjectDefineProperties(self2, props) {
        return Object.defineProperties(self2, props);
      },
      ObjectDefineProperty(self2, name, prop) {
        return Object.defineProperty(self2, name, prop);
      },
      ObjectGetOwnPropertyDescriptor(self2, name) {
        return Object.getOwnPropertyDescriptor(self2, name);
      },
      ObjectKeys(obj) {
        return Object.keys(obj);
      },
      ObjectSetPrototypeOf(target, proto) {
        return Object.setPrototypeOf(target, proto);
      },
      Promise,
      PromisePrototypeCatch(self2, fn) {
        return self2.catch(fn);
      },
      PromisePrototypeThen(self2, thenFn, catchFn) {
        return self2.then(thenFn, catchFn);
      },
      PromiseReject(err) {
        return Promise.reject(err);
      },
      PromiseResolve(val) {
        return Promise.resolve(val);
      },
      ReflectApply: Reflect.apply,
      RegExpPrototypeTest(self2, value) {
        return self2.test(value);
      },
      SafeSet: Set,
      String,
      StringPrototypeSlice(self2, start, end) {
        return self2.slice(start, end);
      },
      StringPrototypeToLowerCase(self2) {
        return self2.toLowerCase();
      },
      StringPrototypeToUpperCase(self2) {
        return self2.toUpperCase();
      },
      StringPrototypeTrim(self2) {
        return self2.trim();
      },
      Symbol,
      SymbolFor: Symbol.for,
      SymbolAsyncIterator: Symbol.asyncIterator,
      SymbolHasInstance: Symbol.hasInstance,
      SymbolIterator: Symbol.iterator,
      SymbolDispose: Symbol.dispose || Symbol("Symbol.dispose"),
      SymbolAsyncDispose: Symbol.asyncDispose || Symbol("Symbol.asyncDispose"),
      TypedArrayPrototypeSet(self2, buf, len) {
        return self2.set(buf, len);
      },
      Boolean,
      Uint8Array
    };
  }
});

// ../../node_modules/archiver-utils/node_modules/readable-stream/lib/ours/util/inspect.js
var require_inspect = __commonJS({
  "../../node_modules/archiver-utils/node_modules/readable-stream/lib/ours/util/inspect.js"(exports2, module2) {
    "use strict";
    module2.exports = {
      format(format26, ...args) {
        return format26.replace(/%([sdifj])/g, function(...[_unused, type]) {
          const replacement = args.shift();
          if (type === "f") {
            return replacement.toFixed(6);
          } else if (type === "j") {
            return JSON.stringify(replacement);
          } else if (type === "s" && typeof replacement === "object") {
            const ctor = replacement.constructor !== Object ? replacement.constructor.name : "";
            return `${ctor} {}`.trim();
          } else {
            return replacement.toString();
          }
        });
      },
      inspect(value) {
        switch (typeof value) {
          case "string":
            if (value.includes("'")) {
              if (!value.includes('"')) {
                return `"${value}"`;
              } else if (!value.includes("`") && !value.includes("${")) {
                return `\`${value}\``;
              }
            }
            return `'${value}'`;
          case "number":
            if (isNaN(value)) {
              return "NaN";
            } else if (Object.is(value, -0)) {
              return String(value);
            }
            return value;
          case "bigint":
            return `${String(value)}n`;
          case "boolean":
          case "undefined":
            return String(value);
          case "object":
            return "{}";
        }
      }
    };
  }
});

// ../../node_modules/archiver-utils/node_modules/readable-stream/lib/ours/errors.js
var require_errors = __commonJS({
  "../../node_modules/archiver-utils/node_modules/readable-stream/lib/ours/errors.js"(exports2, module2) {
    "use strict";
    var { format: format26, inspect: inspect4 } = require_inspect();
    var { AggregateError: CustomAggregateError } = require_primordials();
    var AggregateError = globalThis.AggregateError || CustomAggregateError;
    var kIsNodeError = Symbol("kIsNodeError");
    var kTypes = [
      "string",
      "function",
      "number",
      "object",
      // Accept 'Function' and 'Object' as alternative to the lower cased version.
      "Function",
      "Object",
      "boolean",
      "bigint",
      "symbol"
    ];
    var classRegExp = /^([A-Z][a-z0-9]*)+$/;
    var nodeInternalPrefix = "__node_internal_";
    var codes = {};
    function assert(value, message2) {
      if (!value) {
        throw new codes.ERR_INTERNAL_ASSERTION(message2);
      }
    }
    __name(assert, "assert");
    function addNumericalSeparator(val) {
      let res = "";
      let i3 = val.length;
      const start = val[0] === "-" ? 1 : 0;
      for (; i3 >= start + 4; i3 -= 3) {
        res = `_${val.slice(i3 - 3, i3)}${res}`;
      }
      return `${val.slice(0, i3)}${res}`;
    }
    __name(addNumericalSeparator, "addNumericalSeparator");
    function getMessage(key, msg, args) {
      if (typeof msg === "function") {
        assert(
          msg.length <= args.length,
          // Default options do not count.
          `Code: ${key}; The provided arguments length (${args.length}) does not match the required ones (${msg.length}).`
        );
        return msg(...args);
      }
      const expectedLength = (msg.match(/%[dfijoOs]/g) || []).length;
      assert(
        expectedLength === args.length,
        `Code: ${key}; The provided arguments length (${args.length}) does not match the required ones (${expectedLength}).`
      );
      if (args.length === 0) {
        return msg;
      }
      return format26(msg, ...args);
    }
    __name(getMessage, "getMessage");
    function E2(code, message2, Base) {
      if (!Base) {
        Base = Error;
      }
      class NodeError extends Base {
        static {
          __name(this, "NodeError");
        }
        constructor(...args) {
          super(getMessage(code, message2, args));
        }
        toString() {
          return `${this.name} [${code}]: ${this.message}`;
        }
      }
      Object.defineProperties(NodeError.prototype, {
        name: {
          value: Base.name,
          writable: true,
          enumerable: false,
          configurable: true
        },
        toString: {
          value() {
            return `${this.name} [${code}]: ${this.message}`;
          },
          writable: true,
          enumerable: false,
          configurable: true
        }
      });
      NodeError.prototype.code = code;
      NodeError.prototype[kIsNodeError] = true;
      codes[code] = NodeError;
    }
    __name(E2, "E");
    function hideStackFrames(fn) {
      const hidden = nodeInternalPrefix + fn.name;
      Object.defineProperty(fn, "name", {
        value: hidden
      });
      return fn;
    }
    __name(hideStackFrames, "hideStackFrames");
    function aggregateTwoErrors(innerError, outerError) {
      if (innerError && outerError && innerError !== outerError) {
        if (Array.isArray(outerError.errors)) {
          outerError.errors.push(innerError);
          return outerError;
        }
        const err = new AggregateError([outerError, innerError], outerError.message);
        err.code = outerError.code;
        return err;
      }
      return innerError || outerError;
    }
    __name(aggregateTwoErrors, "aggregateTwoErrors");
    var AbortError = class extends Error {
      static {
        __name(this, "AbortError");
      }
      constructor(message2 = "The operation was aborted", options = void 0) {
        if (options !== void 0 && typeof options !== "object") {
          throw new codes.ERR_INVALID_ARG_TYPE("options", "Object", options);
        }
        super(message2, options);
        this.code = "ABORT_ERR";
        this.name = "AbortError";
      }
    };
    E2("ERR_ASSERTION", "%s", Error);
    E2(
      "ERR_INVALID_ARG_TYPE",
      (name, expected, actual) => {
        assert(typeof name === "string", "'name' must be a string");
        if (!Array.isArray(expected)) {
          expected = [expected];
        }
        let msg = "The ";
        if (name.endsWith(" argument")) {
          msg += `${name} `;
        } else {
          msg += `"${name}" ${name.includes(".") ? "property" : "argument"} `;
        }
        msg += "must be ";
        const types5 = [];
        const instances = [];
        const other = [];
        for (const value of expected) {
          assert(typeof value === "string", "All expected entries have to be of type string");
          if (kTypes.includes(value)) {
            types5.push(value.toLowerCase());
          } else if (classRegExp.test(value)) {
            instances.push(value);
          } else {
            assert(value !== "object", 'The value "object" should be written as "Object"');
            other.push(value);
          }
        }
        if (instances.length > 0) {
          const pos = types5.indexOf("object");
          if (pos !== -1) {
            types5.splice(types5, pos, 1);
            instances.push("Object");
          }
        }
        if (types5.length > 0) {
          switch (types5.length) {
            case 1:
              msg += `of type ${types5[0]}`;
              break;
            case 2:
              msg += `one of type ${types5[0]} or ${types5[1]}`;
              break;
            default: {
              const last = types5.pop();
              msg += `one of type ${types5.join(", ")}, or ${last}`;
            }
          }
          if (instances.length > 0 || other.length > 0) {
            msg += " or ";
          }
        }
        if (instances.length > 0) {
          switch (instances.length) {
            case 1:
              msg += `an instance of ${instances[0]}`;
              break;
            case 2:
              msg += `an instance of ${instances[0]} or ${instances[1]}`;
              break;
            default: {
              const last = instances.pop();
              msg += `an instance of ${instances.join(", ")}, or ${last}`;
            }
          }
          if (other.length > 0) {
            msg += " or ";
          }
        }
        switch (other.length) {
          case 0:
            break;
          case 1:
            if (other[0].toLowerCase() !== other[0]) {
              msg += "an ";
            }
            msg += `${other[0]}`;
            break;
          case 2:
            msg += `one of ${other[0]} or ${other[1]}`;
            break;
          default: {
            const last = other.pop();
            msg += `one of ${other.join(", ")}, or ${last}`;
          }
        }
        if (actual == null) {
          msg += `. Received ${actual}`;
        } else if (typeof actual === "function" && actual.name) {
          msg += `. Received function ${actual.name}`;
        } else if (typeof actual === "object") {
          var _actual$constructor;
          if ((_actual$constructor = actual.constructor) !== null && _actual$constructor !== void 0 && _actual$constructor.name) {
            msg += `. Received an instance of ${actual.constructor.name}`;
          } else {
            const inspected = inspect4(actual, {
              depth: -1
            });
            msg += `. Received ${inspected}`;
          }
        } else {
          let inspected = inspect4(actual, {
            colors: false
          });
          if (inspected.length > 25) {
            inspected = `${inspected.slice(0, 25)}...`;
          }
          msg += `. Received type ${typeof actual} (${inspected})`;
        }
        return msg;
      },
      TypeError
    );
    E2(
      "ERR_INVALID_ARG_VALUE",
      (name, value, reason = "is invalid") => {
        let inspected = inspect4(value);
        if (inspected.length > 128) {
          inspected = inspected.slice(0, 128) + "...";
        }
        const type = name.includes(".") ? "property" : "argument";
        return `The ${type} '${name}' ${reason}. Received ${inspected}`;
      },
      TypeError
    );
    E2(
      "ERR_INVALID_RETURN_VALUE",
      (input, name, value) => {
        var _value$constructor;
        const type = value !== null && value !== void 0 && (_value$constructor = value.constructor) !== null && _value$constructor !== void 0 && _value$constructor.name ? `instance of ${value.constructor.name}` : `type ${typeof value}`;
        return `Expected ${input} to be returned from the "${name}" function but got ${type}.`;
      },
      TypeError
    );
    E2(
      "ERR_MISSING_ARGS",
      (...args) => {
        assert(args.length > 0, "At least one arg needs to be specified");
        let msg;
        const len = args.length;
        args = (Array.isArray(args) ? args : [args]).map((a3) => `"${a3}"`).join(" or ");
        switch (len) {
          case 1:
            msg += `The ${args[0]} argument`;
            break;
          case 2:
            msg += `The ${args[0]} and ${args[1]} arguments`;
            break;
          default:
            {
              const last = args.pop();
              msg += `The ${args.join(", ")}, and ${last} arguments`;
            }
            break;
        }
        return `${msg} must be specified`;
      },
      TypeError
    );
    E2(
      "ERR_OUT_OF_RANGE",
      (str, range2, input) => {
        assert(range2, 'Missing "range" argument');
        let received;
        if (Number.isInteger(input) && Math.abs(input) > 2 ** 32) {
          received = addNumericalSeparator(String(input));
        } else if (typeof input === "bigint") {
          received = String(input);
          const limit = BigInt(2) ** BigInt(32);
          if (input > limit || input < -limit) {
            received = addNumericalSeparator(received);
          }
          received += "n";
        } else {
          received = inspect4(input);
        }
        return `The value of "${str}" is out of range. It must be ${range2}. Received ${received}`;
      },
      RangeError
    );
    E2("ERR_MULTIPLE_CALLBACK", "Callback called multiple times", Error);
    E2("ERR_METHOD_NOT_IMPLEMENTED", "The %s method is not implemented", Error);
    E2("ERR_STREAM_ALREADY_FINISHED", "Cannot call %s after a stream was finished", Error);
    E2("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable", Error);
    E2("ERR_STREAM_DESTROYED", "Cannot call %s after a stream was destroyed", Error);
    E2("ERR_STREAM_NULL_VALUES", "May not write null values to stream", TypeError);
    E2("ERR_STREAM_PREMATURE_CLOSE", "Premature close", Error);
    E2("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF", Error);
    E2("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event", Error);
    E2("ERR_STREAM_WRITE_AFTER_END", "write after end", Error);
    E2("ERR_UNKNOWN_ENCODING", "Unknown encoding: %s", TypeError);
    module2.exports = {
      AbortError,
      aggregateTwoErrors: hideStackFrames(aggregateTwoErrors),
      hideStackFrames,
      codes
    };
  }
});

// ../../node_modules/event-target-shim/dist/event-target-shim.js
var require_event_target_shim = __commonJS({
  "../../node_modules/event-target-shim/dist/event-target-shim.js"(exports2, module2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    var privateData = /* @__PURE__ */ new WeakMap();
    var wrappers = /* @__PURE__ */ new WeakMap();
    function pd(event) {
      const retv = privateData.get(event);
      console.assert(
        retv != null,
        "'this' is expected an Event object, but got",
        event
      );
      return retv;
    }
    __name(pd, "pd");
    function setCancelFlag(data3) {
      if (data3.passiveListener != null) {
        if (typeof console !== "undefined" && typeof console.error === "function") {
          console.error(
            "Unable to preventDefault inside passive event listener invocation.",
            data3.passiveListener
          );
        }
        return;
      }
      if (!data3.event.cancelable) {
        return;
      }
      data3.canceled = true;
      if (typeof data3.event.preventDefault === "function") {
        data3.event.preventDefault();
      }
    }
    __name(setCancelFlag, "setCancelFlag");
    function Event(eventTarget, event) {
      privateData.set(this, {
        eventTarget,
        event,
        eventPhase: 2,
        currentTarget: eventTarget,
        canceled: false,
        stopped: false,
        immediateStopped: false,
        passiveListener: null,
        timeStamp: event.timeStamp || Date.now()
      });
      Object.defineProperty(this, "isTrusted", { value: false, enumerable: true });
      const keys = Object.keys(event);
      for (let i3 = 0; i3 < keys.length; ++i3) {
        const key = keys[i3];
        if (!(key in this)) {
          Object.defineProperty(this, key, defineRedirectDescriptor(key));
        }
      }
    }
    __name(Event, "Event");
    Event.prototype = {
      /**
       * The type of this event.
       * @type {string}
       */
      get type() {
        return pd(this).event.type;
      },
      /**
       * The target of this event.
       * @type {EventTarget}
       */
      get target() {
        return pd(this).eventTarget;
      },
      /**
       * The target of this event.
       * @type {EventTarget}
       */
      get currentTarget() {
        return pd(this).currentTarget;
      },
      /**
       * @returns {EventTarget[]} The composed path of this event.
       */
      composedPath() {
        const currentTarget = pd(this).currentTarget;
        if (currentTarget == null) {
          return [];
        }
        return [currentTarget];
      },
      /**
       * Constant of NONE.
       * @type {number}
       */
      get NONE() {
        return 0;
      },
      /**
       * Constant of CAPTURING_PHASE.
       * @type {number}
       */
      get CAPTURING_PHASE() {
        return 1;
      },
      /**
       * Constant of AT_TARGET.
       * @type {number}
       */
      get AT_TARGET() {
        return 2;
      },
      /**
       * Constant of BUBBLING_PHASE.
       * @type {number}
       */
      get BUBBLING_PHASE() {
        return 3;
      },
      /**
       * The target of this event.
       * @type {number}
       */
      get eventPhase() {
        return pd(this).eventPhase;
      },
      /**
       * Stop event bubbling.
       * @returns {void}
       */
      stopPropagation() {
        const data3 = pd(this);
        data3.stopped = true;
        if (typeof data3.event.stopPropagation === "function") {
          data3.event.stopPropagation();
        }
      },
      /**
       * Stop event bubbling.
       * @returns {void}
       */
      stopImmediatePropagation() {
        const data3 = pd(this);
        data3.stopped = true;
        data3.immediateStopped = true;
        if (typeof data3.event.stopImmediatePropagation === "function") {
          data3.event.stopImmediatePropagation();
        }
      },
      /**
       * The flag to be bubbling.
       * @type {boolean}
       */
      get bubbles() {
        return Boolean(pd(this).event.bubbles);
      },
      /**
       * The flag to be cancelable.
       * @type {boolean}
       */
      get cancelable() {
        return Boolean(pd(this).event.cancelable);
      },
      /**
       * Cancel this event.
       * @returns {void}
       */
      preventDefault() {
        setCancelFlag(pd(this));
      },
      /**
       * The flag to indicate cancellation state.
       * @type {boolean}
       */
      get defaultPrevented() {
        return pd(this).canceled;
      },
      /**
       * The flag to be composed.
       * @type {boolean}
       */
      get composed() {
        return Boolean(pd(this).event.composed);
      },
      /**
       * The unix time of this event.
       * @type {number}
       */
      get timeStamp() {
        return pd(this).timeStamp;
      },
      /**
       * The target of this event.
       * @type {EventTarget}
       * @deprecated
       */
      get srcElement() {
        return pd(this).eventTarget;
      },
      /**
       * The flag to stop event bubbling.
       * @type {boolean}
       * @deprecated
       */
      get cancelBubble() {
        return pd(this).stopped;
      },
      set cancelBubble(value) {
        if (!value) {
          return;
        }
        const data3 = pd(this);
        data3.stopped = true;
        if (typeof data3.event.cancelBubble === "boolean") {
          data3.event.cancelBubble = true;
        }
      },
      /**
       * The flag to indicate cancellation state.
       * @type {boolean}
       * @deprecated
       */
      get returnValue() {
        return !pd(this).canceled;
      },
      set returnValue(value) {
        if (!value) {
          setCancelFlag(pd(this));
        }
      },
      /**
       * Initialize this event object. But do nothing under event dispatching.
       * @param {string} type The event type.
       * @param {boolean} [bubbles=false] The flag to be possible to bubble up.
       * @param {boolean} [cancelable=false] The flag to be possible to cancel.
       * @deprecated
       */
      initEvent() {
      }
    };
    Object.defineProperty(Event.prototype, "constructor", {
      value: Event,
      configurable: true,
      writable: true
    });
    if (typeof window !== "undefined" && typeof window.Event !== "undefined") {
      Object.setPrototypeOf(Event.prototype, window.Event.prototype);
      wrappers.set(window.Event.prototype, Event);
    }
    function defineRedirectDescriptor(key) {
      return {
        get() {
          return pd(this).event[key];
        },
        set(value) {
          pd(this).event[key] = value;
        },
        configurable: true,
        enumerable: true
      };
    }
    __name(defineRedirectDescriptor, "defineRedirectDescriptor");
    function defineCallDescriptor(key) {
      return {
        value() {
          const event = pd(this).event;
          return event[key].apply(event, arguments);
        },
        configurable: true,
        enumerable: true
      };
    }
    __name(defineCallDescriptor, "defineCallDescriptor");
    function defineWrapper(BaseEvent, proto) {
      const keys = Object.keys(proto);
      if (keys.length === 0) {
        return BaseEvent;
      }
      function CustomEvent(eventTarget, event) {
        BaseEvent.call(this, eventTarget, event);
      }
      __name(CustomEvent, "CustomEvent");
      CustomEvent.prototype = Object.create(BaseEvent.prototype, {
        constructor: { value: CustomEvent, configurable: true, writable: true }
      });
      for (let i3 = 0; i3 < keys.length; ++i3) {
        const key = keys[i3];
        if (!(key in BaseEvent.prototype)) {
          const descriptor = Object.getOwnPropertyDescriptor(proto, key);
          const isFunc = typeof descriptor.value === "function";
          Object.defineProperty(
            CustomEvent.prototype,
            key,
            isFunc ? defineCallDescriptor(key) : defineRedirectDescriptor(key)
          );
        }
      }
      return CustomEvent;
    }
    __name(defineWrapper, "defineWrapper");
    function getWrapper(proto) {
      if (proto == null || proto === Object.prototype) {
        return Event;
      }
      let wrapper = wrappers.get(proto);
      if (wrapper == null) {
        wrapper = defineWrapper(getWrapper(Object.getPrototypeOf(proto)), proto);
        wrappers.set(proto, wrapper);
      }
      return wrapper;
    }
    __name(getWrapper, "getWrapper");
    function wrapEvent(eventTarget, event) {
      const Wrapper = getWrapper(Object.getPrototypeOf(event));
      return new Wrapper(eventTarget, event);
    }
    __name(wrapEvent, "wrapEvent");
    function isStopped(event) {
      return pd(event).immediateStopped;
    }
    __name(isStopped, "isStopped");
    function setEventPhase(event, eventPhase) {
      pd(event).eventPhase = eventPhase;
    }
    __name(setEventPhase, "setEventPhase");
    function setCurrentTarget(event, currentTarget) {
      pd(event).currentTarget = currentTarget;
    }
    __name(setCurrentTarget, "setCurrentTarget");
    function setPassiveListener(event, passiveListener) {
      pd(event).passiveListener = passiveListener;
    }
    __name(setPassiveListener, "setPassiveListener");
    var listenersMap = /* @__PURE__ */ new WeakMap();
    var CAPTURE = 1;
    var BUBBLE = 2;
    var ATTRIBUTE = 3;
    function isObject3(x3) {
      return x3 !== null && typeof x3 === "object";
    }
    __name(isObject3, "isObject");
    function getListeners(eventTarget) {
      const listeners = listenersMap.get(eventTarget);
      if (listeners == null) {
        throw new TypeError(
          "'this' is expected an EventTarget object, but got another value."
        );
      }
      return listeners;
    }
    __name(getListeners, "getListeners");
    function defineEventAttributeDescriptor(eventName) {
      return {
        get() {
          const listeners = getListeners(this);
          let node = listeners.get(eventName);
          while (node != null) {
            if (node.listenerType === ATTRIBUTE) {
              return node.listener;
            }
            node = node.next;
          }
          return null;
        },
        set(listener) {
          if (typeof listener !== "function" && !isObject3(listener)) {
            listener = null;
          }
          const listeners = getListeners(this);
          let prev = null;
          let node = listeners.get(eventName);
          while (node != null) {
            if (node.listenerType === ATTRIBUTE) {
              if (prev !== null) {
                prev.next = node.next;
              } else if (node.next !== null) {
                listeners.set(eventName, node.next);
              } else {
                listeners.delete(eventName);
              }
            } else {
              prev = node;
            }
            node = node.next;
          }
          if (listener !== null) {
            const newNode = {
              listener,
              listenerType: ATTRIBUTE,
              passive: false,
              once: false,
              next: null
            };
            if (prev === null) {
              listeners.set(eventName, newNode);
            } else {
              prev.next = newNode;
            }
          }
        },
        configurable: true,
        enumerable: true
      };
    }
    __name(defineEventAttributeDescriptor, "defineEventAttributeDescriptor");
    function defineEventAttribute(eventTargetPrototype, eventName) {
      Object.defineProperty(
        eventTargetPrototype,
        `on${eventName}`,
        defineEventAttributeDescriptor(eventName)
      );
    }
    __name(defineEventAttribute, "defineEventAttribute");
    function defineCustomEventTarget(eventNames) {
      function CustomEventTarget() {
        EventTarget.call(this);
      }
      __name(CustomEventTarget, "CustomEventTarget");
      CustomEventTarget.prototype = Object.create(EventTarget.prototype, {
        constructor: {
          value: CustomEventTarget,
          configurable: true,
          writable: true
        }
      });
      for (let i3 = 0; i3 < eventNames.length; ++i3) {
        defineEventAttribute(CustomEventTarget.prototype, eventNames[i3]);
      }
      return CustomEventTarget;
    }
    __name(defineCustomEventTarget, "defineCustomEventTarget");
    function EventTarget() {
      if (this instanceof EventTarget) {
        listenersMap.set(this, /* @__PURE__ */ new Map());
        return;
      }
      if (arguments.length === 1 && Array.isArray(arguments[0])) {
        return defineCustomEventTarget(arguments[0]);
      }
      if (arguments.length > 0) {
        const types5 = new Array(arguments.length);
        for (let i3 = 0; i3 < arguments.length; ++i3) {
          types5[i3] = arguments[i3];
        }
        return defineCustomEventTarget(types5);
      }
      throw new TypeError("Cannot call a class as a function");
    }
    __name(EventTarget, "EventTarget");
    EventTarget.prototype = {
      /**
       * Add a given listener to this event target.
       * @param {string} eventName The event name to add.
       * @param {Function} listener The listener to add.
       * @param {boolean|{capture?:boolean,passive?:boolean,once?:boolean}} [options] The options for this listener.
       * @returns {void}
       */
      addEventListener(eventName, listener, options) {
        if (listener == null) {
          return;
        }
        if (typeof listener !== "function" && !isObject3(listener)) {
          throw new TypeError("'listener' should be a function or an object.");
        }
        const listeners = getListeners(this);
        const optionsIsObj = isObject3(options);
        const capture = optionsIsObj ? Boolean(options.capture) : Boolean(options);
        const listenerType = capture ? CAPTURE : BUBBLE;
        const newNode = {
          listener,
          listenerType,
          passive: optionsIsObj && Boolean(options.passive),
          once: optionsIsObj && Boolean(options.once),
          next: null
        };
        let node = listeners.get(eventName);
        if (node === void 0) {
          listeners.set(eventName, newNode);
          return;
        }
        let prev = null;
        while (node != null) {
          if (node.listener === listener && node.listenerType === listenerType) {
            return;
          }
          prev = node;
          node = node.next;
        }
        prev.next = newNode;
      },
      /**
       * Remove a given listener from this event target.
       * @param {string} eventName The event name to remove.
       * @param {Function} listener The listener to remove.
       * @param {boolean|{capture?:boolean,passive?:boolean,once?:boolean}} [options] The options for this listener.
       * @returns {void}
       */
      removeEventListener(eventName, listener, options) {
        if (listener == null) {
          return;
        }
        const listeners = getListeners(this);
        const capture = isObject3(options) ? Boolean(options.capture) : Boolean(options);
        const listenerType = capture ? CAPTURE : BUBBLE;
        let prev = null;
        let node = listeners.get(eventName);
        while (node != null) {
          if (node.listener === listener && node.listenerType === listenerType) {
            if (prev !== null) {
              prev.next = node.next;
            } else if (node.next !== null) {
              listeners.set(eventName, node.next);
            } else {
              listeners.delete(eventName);
            }
            return;
          }
          prev = node;
          node = node.next;
        }
      },
      /**
       * Dispatch a given event.
       * @param {Event|{type:string}} event The event to dispatch.
       * @returns {boolean} `false` if canceled.
       */
      dispatchEvent(event) {
        if (event == null || typeof event.type !== "string") {
          throw new TypeError('"event.type" should be a string.');
        }
        const listeners = getListeners(this);
        const eventName = event.type;
        let node = listeners.get(eventName);
        if (node == null) {
          return true;
        }
        const wrappedEvent = wrapEvent(this, event);
        let prev = null;
        while (node != null) {
          if (node.once) {
            if (prev !== null) {
              prev.next = node.next;
            } else if (node.next !== null) {
              listeners.set(eventName, node.next);
            } else {
              listeners.delete(eventName);
            }
          } else {
            prev = node;
          }
          setPassiveListener(
            wrappedEvent,
            node.passive ? node.listener : null
          );
          if (typeof node.listener === "function") {
            try {
              node.listener.call(this, wrappedEvent);
            } catch (err) {
              if (typeof console !== "undefined" && typeof console.error === "function") {
                console.error(err);
              }
            }
          } else if (node.listenerType !== ATTRIBUTE && typeof node.listener.handleEvent === "function") {
            node.listener.handleEvent(wrappedEvent);
          }
          if (isStopped(wrappedEvent)) {
            break;
          }
          node = node.next;
        }
        setPassiveListener(wrappedEvent, null);
        setEventPhase(wrappedEvent, 0);
        setCurrentTarget(wrappedEvent, null);
        return !wrappedEvent.defaultPrevented;
      }
    };
    Object.defineProperty(EventTarget.prototype, "constructor", {
      value: EventTarget,
      configurable: true,
      writable: true
    });
    if (typeof window !== "undefined" && typeof window.EventTarget !== "undefined") {
      Object.setPrototypeOf(EventTarget.prototype, window.EventTarget.prototype);
    }
    exports2.defineEventAttribute = defineEventAttribute;
    exports2.EventTarget = EventTarget;
    exports2.default = EventTarget;
    module2.exports = EventTarget;
    module2.exports.EventTarget = module2.exports["default"] = EventTarget;
    module2.exports.defineEventAttribute = defineEventAttribute;
  }
});

// ../../node_modules/abort-controller/dist/abort-controller.js
var require_abort_controller = __commonJS({
  "../../node_modules/abort-controller/dist/abort-controller.js"(exports2, module2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    var eventTargetShim = require_event_target_shim();
    var AbortSignal2 = class extends eventTargetShim.EventTarget {
      static {
        __name(this, "AbortSignal");
      }
      /**
       * AbortSignal cannot be constructed directly.
       */
      constructor() {
        super();
        throw new TypeError("AbortSignal cannot be constructed directly");
      }
      /**
       * Returns `true` if this `AbortSignal`'s `AbortController` has signaled to abort, and `false` otherwise.
       */
      get aborted() {
        const aborted = abortedFlags.get(this);
        if (typeof aborted !== "boolean") {
          throw new TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this === null ? "null" : typeof this}`);
        }
        return aborted;
      }
    };
    eventTargetShim.defineEventAttribute(AbortSignal2.prototype, "abort");
    function createAbortSignal() {
      const signal = Object.create(AbortSignal2.prototype);
      eventTargetShim.EventTarget.call(signal);
      abortedFlags.set(signal, false);
      return signal;
    }
    __name(createAbortSignal, "createAbortSignal");
    function abortSignal(signal) {
      if (abortedFlags.get(signal) !== false) {
        return;
      }
      abortedFlags.set(signal, true);
      signal.dispatchEvent({ type: "abort" });
    }
    __name(abortSignal, "abortSignal");
    var abortedFlags = /* @__PURE__ */ new WeakMap();
    Object.defineProperties(AbortSignal2.prototype, {
      aborted: { enumerable: true }
    });
    if (typeof Symbol === "function" && typeof Symbol.toStringTag === "symbol") {
      Object.defineProperty(AbortSignal2.prototype, Symbol.toStringTag, {
        configurable: true,
        value: "AbortSignal"
      });
    }
    var AbortController2 = class {
      static {
        __name(this, "AbortController");
      }
      /**
       * Initialize this controller.
       */
      constructor() {
        signals.set(this, createAbortSignal());
      }
      /**
       * Returns the `AbortSignal` object associated with this object.
       */
      get signal() {
        return getSignal(this);
      }
      /**
       * Abort and signal to any observers that the associated activity is to be aborted.
       */
      abort() {
        abortSignal(getSignal(this));
      }
    };
    var signals = /* @__PURE__ */ new WeakMap();
    function getSignal(controller) {
      const signal = signals.get(controller);
      if (signal == null) {
        throw new TypeError(`Expected 'this' to be an 'AbortController' object, but got ${controller === null ? "null" : typeof controller}`);
      }
      return signal;
    }
    __name(getSignal, "getSignal");
    Object.defineProperties(AbortController2.prototype, {
      signal: { enumerable: true },
      abort: { enumerable: true }
    });
    if (typeof Symbol === "function" && typeof Symbol.toStringTag === "symbol") {
      Object.defineProperty(AbortController2.prototype, Symbol.toStringTag, {
        configurable: true,
        value: "AbortController"
      });
    }
    exports2.AbortController = AbortController2;
    exports2.AbortSignal = AbortSignal2;
    exports2.default = AbortController2;
    module2.exports = AbortController2;
    module2.exports.AbortController = module2.exports["default"] = AbortController2;
    module2.exports.AbortSignal = AbortSignal2;
  }
});

// ../../node_modules/archiver-utils/node_modules/readable-stream/lib/ours/util.js
var require_util2 = __commonJS({
  "../../node_modules/archiver-utils/node_modules/readable-stream/lib/ours/util.js"(exports2, module2) {
    "use strict";
    var bufferModule = require("buffer");
    var { format: format26, inspect: inspect4 } = require_inspect();
    var {
      codes: { ERR_INVALID_ARG_TYPE }
    } = require_errors();
    var { kResistStopPropagation, AggregateError, SymbolDispose } = require_primordials();
    var AbortSignal2 = globalThis.AbortSignal || require_abort_controller().AbortSignal;
    var AbortController2 = globalThis.AbortController || require_abort_controller().AbortController;
    var AsyncFunction = Object.getPrototypeOf(async function() {
    }).constructor;
    var Blob2 = globalThis.Blob || bufferModule.Blob;
    var isBlob2 = typeof Blob2 !== "undefined" ? /* @__PURE__ */ __name(function isBlob3(b3) {
      return b3 instanceof Blob2;
    }, "isBlob") : /* @__PURE__ */ __name(function isBlob3(b3) {
      return false;
    }, "isBlob");
    var validateAbortSignal = /* @__PURE__ */ __name((signal, name) => {
      if (signal !== void 0 && (signal === null || typeof signal !== "object" || !("aborted" in signal))) {
        throw new ERR_INVALID_ARG_TYPE(name, "AbortSignal", signal);
      }
    }, "validateAbortSignal");
    var validateFunction = /* @__PURE__ */ __name((value, name) => {
      if (typeof value !== "function") {
        throw new ERR_INVALID_ARG_TYPE(name, "Function", value);
      }
    }, "validateFunction");
    module2.exports = {
      AggregateError,
      kEmptyObject: Object.freeze({}),
      once(callback) {
        let called = false;
        return function(...args) {
          if (called) {
            return;
          }
          called = true;
          callback.apply(this, args);
        };
      },
      createDeferredPromise: /* @__PURE__ */ __name(function() {
        let resolve13;
        let reject;
        const promise = new Promise((res, rej) => {
          resolve13 = res;
          reject = rej;
        });
        return {
          promise,
          resolve: resolve13,
          reject
        };
      }, "createDeferredPromise"),
      promisify(fn) {
        return new Promise((resolve13, reject) => {
          fn((err, ...args) => {
            if (err) {
              return reject(err);
            }
            return resolve13(...args);
          });
        });
      },
      debuglog() {
        return function() {
        };
      },
      format: format26,
      inspect: inspect4,
      types: {
        isAsyncFunction(fn) {
          return fn instanceof AsyncFunction;
        },
        isArrayBufferView(arr) {
          return ArrayBuffer.isView(arr);
        }
      },
      isBlob: isBlob2,
      deprecate(fn, message2) {
        return fn;
      },
      addAbortListener: require("events").addAbortListener || /* @__PURE__ */ __name(function addAbortListener(signal, listener) {
        if (signal === void 0) {
          throw new ERR_INVALID_ARG_TYPE("signal", "AbortSignal", signal);
        }
        validateAbortSignal(signal, "signal");
        validateFunction(listener, "listener");
        let removeEventListener;
        if (signal.aborted) {
          queueMicrotask(() => listener());
        } else {
          signal.addEventListener("abort", listener, {
            __proto__: null,
            once: true,
            [kResistStopPropagation]: true
          });
          removeEventListener = /* @__PURE__ */ __name(() => {
            signal.removeEventListener("abort", listener);
          }, "removeEventListener");
        }
        return {
          __proto__: null,
          [SymbolDispose]() {
            var _removeEventListener;
            (_removeEventListener = removeEventListener) === null || _removeEventListener === void 0 ? void 0 : _removeEventListener();
          }
        };
      }, "addAbortListener"),
      AbortSignalAny: AbortSignal2.any || /* @__PURE__ */ __name(function AbortSignalAny(signals) {
        if (signals.length === 1) {
          return signals[0];
        }
        const ac = new AbortController2();
        const abort = /* @__PURE__ */ __name(() => ac.abort(), "abort");
        signals.forEach((signal) => {
          validateAbortSignal(signal, "signals");
          signal.addEventListener("abort", abort, {
            once: true
          });
        });
        ac.signal.addEventListener(
          "abort",
          () => {
            signals.forEach((signal) => signal.removeEventListener("abort", abort));
          },
          {
            once: true
          }
        );
        return ac.signal;
      }, "AbortSignalAny")
    };
    module2.exports.promisify.custom = Symbol.for("nodejs.util.promisify.custom");
  }
});

// ../../node_modules/archiver-utils/node_modules/readable-stream/lib/internal/validators.js
var require_validators = __commonJS({
  "../../node_modules/archiver-utils/node_modules/readable-stream/lib/internal/validators.js"(exports2, module2) {
    "use strict";
    var {
      ArrayIsArray,
      ArrayPrototypeIncludes,
      ArrayPrototypeJoin,
      ArrayPrototypeMap,
      NumberIsInteger,
      NumberIsNaN,
      NumberMAX_SAFE_INTEGER,
      NumberMIN_SAFE_INTEGER,
      NumberParseInt,
      ObjectPrototypeHasOwnProperty,
      RegExpPrototypeExec,
      String: String2,
      StringPrototypeToUpperCase,
      StringPrototypeTrim
    } = require_primordials();
    var {
      hideStackFrames,
      codes: { ERR_SOCKET_BAD_PORT, ERR_INVALID_ARG_TYPE, ERR_INVALID_ARG_VALUE, ERR_OUT_OF_RANGE, ERR_UNKNOWN_SIGNAL }
    } = require_errors();
    var { normalizeEncoding } = require_util2();
    var { isAsyncFunction, isArrayBufferView: isArrayBufferView2 } = require_util2().types;
    var signals = {};
    function isInt32(value) {
      return value === (value | 0);
    }
    __name(isInt32, "isInt32");
    function isUint32(value) {
      return value === value >>> 0;
    }
    __name(isUint32, "isUint32");
    var octalReg = /^[0-7]+$/;
    var modeDesc = "must be a 32-bit unsigned integer or an octal string";
    function parseFileMode(value, name, def) {
      if (typeof value === "undefined") {
        value = def;
      }
      if (typeof value === "string") {
        if (RegExpPrototypeExec(octalReg, value) === null) {
          throw new ERR_INVALID_ARG_VALUE(name, value, modeDesc);
        }
        value = NumberParseInt(value, 8);
      }
      validateUint32(value, name);
      return value;
    }
    __name(parseFileMode, "parseFileMode");
    var validateInteger = hideStackFrames((value, name, min = NumberMIN_SAFE_INTEGER, max = NumberMAX_SAFE_INTEGER) => {
      if (typeof value !== "number") throw new ERR_INVALID_ARG_TYPE(name, "number", value);
      if (!NumberIsInteger(value)) throw new ERR_OUT_OF_RANGE(name, "an integer", value);
      if (value < min || value > max) throw new ERR_OUT_OF_RANGE(name, `>= ${min} && <= ${max}`, value);
    });
    var validateInt32 = hideStackFrames((value, name, min = -2147483648, max = 2147483647) => {
      if (typeof value !== "number") {
        throw new ERR_INVALID_ARG_TYPE(name, "number", value);
      }
      if (!NumberIsInteger(value)) {
        throw new ERR_OUT_OF_RANGE(name, "an integer", value);
      }
      if (value < min || value > max) {
        throw new ERR_OUT_OF_RANGE(name, `>= ${min} && <= ${max}`, value);
      }
    });
    var validateUint32 = hideStackFrames((value, name, positive = false) => {
      if (typeof value !== "number") {
        throw new ERR_INVALID_ARG_TYPE(name, "number", value);
      }
      if (!NumberIsInteger(value)) {
        throw new ERR_OUT_OF_RANGE(name, "an integer", value);
      }
      const min = positive ? 1 : 0;
      const max = 4294967295;
      if (value < min || value > max) {
        throw new ERR_OUT_OF_RANGE(name, `>= ${min} && <= ${max}`, value);
      }
    });
    function validateString(value, name) {
      if (typeof value !== "string") throw new ERR_INVALID_ARG_TYPE(name, "string", value);
    }
    __name(validateString, "validateString");
    function validateNumber(value, name, min = void 0, max) {
      if (typeof value !== "number") throw new ERR_INVALID_ARG_TYPE(name, "number", value);
      if (min != null && value < min || max != null && value > max || (min != null || max != null) && NumberIsNaN(value)) {
        throw new ERR_OUT_OF_RANGE(
          name,
          `${min != null ? `>= ${min}` : ""}${min != null && max != null ? " && " : ""}${max != null ? `<= ${max}` : ""}`,
          value
        );
      }
    }
    __name(validateNumber, "validateNumber");
    var validateOneOf = hideStackFrames((value, name, oneOf) => {
      if (!ArrayPrototypeIncludes(oneOf, value)) {
        const allowed = ArrayPrototypeJoin(
          ArrayPrototypeMap(oneOf, (v6) => typeof v6 === "string" ? `'${v6}'` : String2(v6)),
          ", "
        );
        const reason = "must be one of: " + allowed;
        throw new ERR_INVALID_ARG_VALUE(name, value, reason);
      }
    });
    function validateBoolean(value, name) {
      if (typeof value !== "boolean") throw new ERR_INVALID_ARG_TYPE(name, "boolean", value);
    }
    __name(validateBoolean, "validateBoolean");
    function getOwnPropertyValueOrDefault(options, key, defaultValue) {
      return options == null || !ObjectPrototypeHasOwnProperty(options, key) ? defaultValue : options[key];
    }
    __name(getOwnPropertyValueOrDefault, "getOwnPropertyValueOrDefault");
    var validateObject = hideStackFrames((value, name, options = null) => {
      const allowArray = getOwnPropertyValueOrDefault(options, "allowArray", false);
      const allowFunction = getOwnPropertyValueOrDefault(options, "allowFunction", false);
      const nullable = getOwnPropertyValueOrDefault(options, "nullable", false);
      if (!nullable && value === null || !allowArray && ArrayIsArray(value) || typeof value !== "object" && (!allowFunction || typeof value !== "function")) {
        throw new ERR_INVALID_ARG_TYPE(name, "Object", value);
      }
    });
    var validateDictionary = hideStackFrames((value, name) => {
      if (value != null && typeof value !== "object" && typeof value !== "function") {
        throw new ERR_INVALID_ARG_TYPE(name, "a dictionary", value);
      }
    });
    var validateArray = hideStackFrames((value, name, minLength = 0) => {
      if (!ArrayIsArray(value)) {
        throw new ERR_INVALID_ARG_TYPE(name, "Array", value);
      }
      if (value.length < minLength) {
        const reason = `must be longer than ${minLength}`;
        throw new ERR_INVALID_ARG_VALUE(name, value, reason);
      }
    });
    function validateStringArray(value, name) {
      validateArray(value, name);
      for (let i3 = 0; i3 < value.length; i3++) {
        validateString(value[i3], `${name}[${i3}]`);
      }
    }
    __name(validateStringArray, "validateStringArray");
    function validateBooleanArray(value, name) {
      validateArray(value, name);
      for (let i3 = 0; i3 < value.length; i3++) {
        validateBoolean(value[i3], `${name}[${i3}]`);
      }
    }
    __name(validateBooleanArray, "validateBooleanArray");
    function validateAbortSignalArray(value, name) {
      validateArray(value, name);
      for (let i3 = 0; i3 < value.length; i3++) {
        const signal = value[i3];
        const indexedName = `${name}[${i3}]`;
        if (signal == null) {
          throw new ERR_INVALID_ARG_TYPE(indexedName, "AbortSignal", signal);
        }
        validateAbortSignal(signal, indexedName);
      }
    }
    __name(validateAbortSignalArray, "validateAbortSignalArray");
    function validateSignalName(signal, name = "signal") {
      validateString(signal, name);
      if (signals[signal] === void 0) {
        if (signals[StringPrototypeToUpperCase(signal)] !== void 0) {
          throw new ERR_UNKNOWN_SIGNAL(signal + " (signals must use all capital letters)");
        }
        throw new ERR_UNKNOWN_SIGNAL(signal);
      }
    }
    __name(validateSignalName, "validateSignalName");
    var validateBuffer = hideStackFrames((buffer, name = "buffer") => {
      if (!isArrayBufferView2(buffer)) {
        throw new ERR_INVALID_ARG_TYPE(name, ["Buffer", "TypedArray", "DataView"], buffer);
      }
    });
    function validateEncoding(data3, encoding) {
      const normalizedEncoding = normalizeEncoding(encoding);
      const length = data3.length;
      if (normalizedEncoding === "hex" && length % 2 !== 0) {
        throw new ERR_INVALID_ARG_VALUE("encoding", encoding, `is invalid for data of length ${length}`);
      }
    }
    __name(validateEncoding, "validateEncoding");
    function validatePort(port, name = "Port", allowZero = true) {
      if (typeof port !== "number" && typeof port !== "string" || typeof port === "string" && StringPrototypeTrim(port).length === 0 || +port !== +port >>> 0 || port > 65535 || port === 0 && !allowZero) {
        throw new ERR_SOCKET_BAD_PORT(name, port, allowZero);
      }
      return port | 0;
    }
    __name(validatePort, "validatePort");
    var validateAbortSignal = hideStackFrames((signal, name) => {
      if (signal !== void 0 && (signal === null || typeof signal !== "object" || !("aborted" in signal))) {
        throw new ERR_INVALID_ARG_TYPE(name, "AbortSignal", signal);
      }
    });
    var validateFunction = hideStackFrames((value, name) => {
      if (typeof value !== "function") throw new ERR_INVALID_ARG_TYPE(name, "Function", value);
    });
    var validatePlainFunction = hideStackFrames((value, name) => {
      if (typeof value !== "function" || isAsyncFunction(value)) throw new ERR_INVALID_ARG_TYPE(name, "Function", value);
    });
    var validateUndefined = hideStackFrames((value, name) => {
      if (value !== void 0) throw new ERR_INVALID_ARG_TYPE(name, "undefined", value);
    });
    function validateUnion(value, name, union) {
      if (!ArrayPrototypeIncludes(union, value)) {
        throw new ERR_INVALID_ARG_TYPE(name, `('${ArrayPrototypeJoin(union, "|")}')`, value);
      }
    }
    __name(validateUnion, "validateUnion");
    var linkValueRegExp = /^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;
    function validateLinkHeaderFormat(value, name) {
      if (typeof value === "undefined" || !RegExpPrototypeExec(linkValueRegExp, value)) {
        throw new ERR_INVALID_ARG_VALUE(
          name,
          value,
          'must be an array or string of format "</styles.css>; rel=preload; as=style"'
        );
      }
    }
    __name(validateLinkHeaderFormat, "validateLinkHeaderFormat");
    function validateLinkHeaderValue(hints) {
      if (typeof hints === "string") {
        validateLinkHeaderFormat(hints, "hints");
        return hints;
      } else if (ArrayIsArray(hints)) {
        const hintsLength = hints.length;
        let result2 = "";
        if (hintsLength === 0) {
          return result2;
        }
        for (let i3 = 0; i3 < hintsLength; i3++) {
          const link = hints[i3];
          validateLinkHeaderFormat(link, "hints");
          result2 += link;
          if (i3 !== hintsLength - 1) {
            result2 += ", ";
          }
        }
        return result2;
      }
      throw new ERR_INVALID_ARG_VALUE(
        "hints",
        hints,
        'must be an array or string of format "</styles.css>; rel=preload; as=style"'
      );
    }
    __name(validateLinkHeaderValue, "validateLinkHeaderValue");
    module2.exports = {
      isInt32,
      isUint32,
      parseFileMode,
      validateArray,
      validateStringArray,
      validateBooleanArray,
      validateAbortSignalArray,
      validateBoolean,
      validateBuffer,
      validateDictionary,
      validateEncoding,
      validateFunction,
      validateInt32,
      validateInteger,
      validateNumber,
      validateObject,
      validateOneOf,
      validatePlainFunction,
      validatePort,
      validateSignalName,
      validateString,
      validateUint32,
      validateUndefined,
      validateUnion,
      validateAbortSignal,
      validateLinkHeaderValue
    };
  }
});

// ../../node_modules/process/index.js
var require_process = __commonJS({
  "../../node_modules/process/index.js"(exports2, module2) {
    module2.exports = global.process;
  }
});

// ../../node_modules/archiver-utils/node_modules/readable-stream/lib/internal/streams/utils.js
var require_utils2 = __commonJS({
  "../../node_modules/archiver-utils/node_modules/readable-stream/lib/internal/streams/utils.js"(exports2, module2) {
    "use strict";
    var { SymbolAsyncIterator, SymbolIterator, SymbolFor } = require_primordials();
    var kIsDestroyed = SymbolFor("nodejs.stream.destroyed");
    var kIsErrored = SymbolFor("nodejs.stream.errored");
    var kIsReadable = SymbolFor("nodejs.stream.readable");
    var kIsWritable = SymbolFor("nodejs.stream.writable");
    var kIsDisturbed = SymbolFor("nodejs.stream.disturbed");
    var kIsClosedPromise = SymbolFor("nodejs.webstream.isClosedPromise");
    var kControllerErrorFunction = SymbolFor("nodejs.webstream.controllerErrorFunction");
    function isReadableNodeStream(obj, strict = false) {
      var _obj$_readableState;
      return !!(obj && typeof obj.pipe === "function" && typeof obj.on === "function" && (!strict || typeof obj.pause === "function" && typeof obj.resume === "function") && (!obj._writableState || ((_obj$_readableState = obj._readableState) === null || _obj$_readableState === void 0 ? void 0 : _obj$_readableState.readable) !== false) && // Duplex
      (!obj._writableState || obj._readableState));
    }
    __name(isReadableNodeStream, "isReadableNodeStream");
    function isWritableNodeStream(obj) {
      var _obj$_writableState;
      return !!(obj && typeof obj.write === "function" && typeof obj.on === "function" && (!obj._readableState || ((_obj$_writableState = obj._writableState) === null || _obj$_writableState === void 0 ? void 0 : _obj$_writableState.writable) !== false));
    }
    __name(isWritableNodeStream, "isWritableNodeStream");
    function isDuplexNodeStream(obj) {
      return !!(obj && typeof obj.pipe === "function" && obj._readableState && typeof obj.on === "function" && typeof obj.write === "function");
    }
    __name(isDuplexNodeStream, "isDuplexNodeStream");
    function isNodeStream(obj) {
      return obj && (obj._readableState || obj._writableState || typeof obj.write === "function" && typeof obj.on === "function" || typeof obj.pipe === "function" && typeof obj.on === "function");
    }
    __name(isNodeStream, "isNodeStream");
    function isReadableStream2(obj) {
      return !!(obj && !isNodeStream(obj) && typeof obj.pipeThrough === "function" && typeof obj.getReader === "function" && typeof obj.cancel === "function");
    }
    __name(isReadableStream2, "isReadableStream");
    function isWritableStream(obj) {
      return !!(obj && !isNodeStream(obj) && typeof obj.getWriter === "function" && typeof obj.abort === "function");
    }
    __name(isWritableStream, "isWritableStream");
    function isTransformStream(obj) {
      return !!(obj && !isNodeStream(obj) && typeof obj.readable === "object" && typeof obj.writable === "object");
    }
    __name(isTransformStream, "isTransformStream");
    function isWebStream(obj) {
      return isReadableStream2(obj) || isWritableStream(obj) || isTransformStream(obj);
    }
    __name(isWebStream, "isWebStream");
    function isIterable(obj, isAsync) {
      if (obj == null) return false;
      if (isAsync === true) return typeof obj[SymbolAsyncIterator] === "function";
      if (isAsync === false) return typeof obj[SymbolIterator] === "function";
      return typeof obj[SymbolAsyncIterator] === "function" || typeof obj[SymbolIterator] === "function";
    }
    __name(isIterable, "isIterable");
    function isDestroyed(stream3) {
      if (!isNodeStream(stream3)) return null;
      const wState = stream3._writableState;
      const rState = stream3._readableState;
      const state2 = wState || rState;
      return !!(stream3.destroyed || stream3[kIsDestroyed] || state2 !== null && state2 !== void 0 && state2.destroyed);
    }
    __name(isDestroyed, "isDestroyed");
    function isWritableEnded(stream3) {
      if (!isWritableNodeStream(stream3)) return null;
      if (stream3.writableEnded === true) return true;
      const wState = stream3._writableState;
      if (wState !== null && wState !== void 0 && wState.errored) return false;
      if (typeof (wState === null || wState === void 0 ? void 0 : wState.ended) !== "boolean") return null;
      return wState.ended;
    }
    __name(isWritableEnded, "isWritableEnded");
    function isWritableFinished(stream3, strict) {
      if (!isWritableNodeStream(stream3)) return null;
      if (stream3.writableFinished === true) return true;
      const wState = stream3._writableState;
      if (wState !== null && wState !== void 0 && wState.errored) return false;
      if (typeof (wState === null || wState === void 0 ? void 0 : wState.finished) !== "boolean") return null;
      return !!(wState.finished || strict === false && wState.ended === true && wState.length === 0);
    }
    __name(isWritableFinished, "isWritableFinished");
    function isReadableEnded(stream3) {
      if (!isReadableNodeStream(stream3)) return null;
      if (stream3.readableEnded === true) return true;
      const rState = stream3._readableState;
      if (!rState || rState.errored) return false;
      if (typeof (rState === null || rState === void 0 ? void 0 : rState.ended) !== "boolean") return null;
      return rState.ended;
    }
    __name(isReadableEnded, "isReadableEnded");
    function isReadableFinished(stream3, strict) {
      if (!isReadableNodeStream(stream3)) return null;
      const rState = stream3._readableState;
      if (rState !== null && rState !== void 0 && rState.errored) return false;
      if (typeof (rState === null || rState === void 0 ? void 0 : rState.endEmitted) !== "boolean") return null;
      return !!(rState.endEmitted || strict === false && rState.ended === true && rState.length === 0);
    }
    __name(isReadableFinished, "isReadableFinished");
    function isReadable2(stream3) {
      if (stream3 && stream3[kIsReadable] != null) return stream3[kIsReadable];
      if (typeof (stream3 === null || stream3 === void 0 ? void 0 : stream3.readable) !== "boolean") return null;
      if (isDestroyed(stream3)) return false;
      return isReadableNodeStream(stream3) && stream3.readable && !isReadableFinished(stream3);
    }
    __name(isReadable2, "isReadable");
    function isWritable2(stream3) {
      if (stream3 && stream3[kIsWritable] != null) return stream3[kIsWritable];
      if (typeof (stream3 === null || stream3 === void 0 ? void 0 : stream3.writable) !== "boolean") return null;
      if (isDestroyed(stream3)) return false;
      return isWritableNodeStream(stream3) && stream3.writable && !isWritableEnded(stream3);
    }
    __name(isWritable2, "isWritable");
    function isFinished(stream3, opts) {
      if (!isNodeStream(stream3)) {
        return null;
      }
      if (isDestroyed(stream3)) {
        return true;
      }
      if ((opts === null || opts === void 0 ? void 0 : opts.readable) !== false && isReadable2(stream3)) {
        return false;
      }
      if ((opts === null || opts === void 0 ? void 0 : opts.writable) !== false && isWritable2(stream3)) {
        return false;
      }
      return true;
    }
    __name(isFinished, "isFinished");
    function isWritableErrored(stream3) {
      var _stream$_writableStat, _stream$_writableStat2;
      if (!isNodeStream(stream3)) {
        return null;
      }
      if (stream3.writableErrored) {
        return stream3.writableErrored;
      }
      return (_stream$_writableStat = (_stream$_writableStat2 = stream3._writableState) === null || _stream$_writableStat2 === void 0 ? void 0 : _stream$_writableStat2.errored) !== null && _stream$_writableStat !== void 0 ? _stream$_writableStat : null;
    }
    __name(isWritableErrored, "isWritableErrored");
    function isReadableErrored(stream3) {
      var _stream$_readableStat, _stream$_readableStat2;
      if (!isNodeStream(stream3)) {
        return null;
      }
      if (stream3.readableErrored) {
        return stream3.readableErrored;
      }
      return (_stream$_readableStat = (_stream$_readableStat2 = stream3._readableState) === null || _stream$_readableStat2 === void 0 ? void 0 : _stream$_readableStat2.errored) !== null && _stream$_readableStat !== void 0 ? _stream$_readableStat : null;
    }
    __name(isReadableErrored, "isReadableErrored");
    function isClosed(stream3) {
      if (!isNodeStream(stream3)) {
        return null;
      }
      if (typeof stream3.closed === "boolean") {
        return stream3.closed;
      }
      const wState = stream3._writableState;
      const rState = stream3._readableState;
      if (typeof (wState === null || wState === void 0 ? void 0 : wState.closed) === "boolean" || typeof (rState === null || rState === void 0 ? void 0 : rState.closed) === "boolean") {
        return (wState === null || wState === void 0 ? void 0 : wState.closed) || (rState === null || rState === void 0 ? void 0 : rState.closed);
      }
      if (typeof stream3._closed === "boolean" && isOutgoingMessage(stream3)) {
        return stream3._closed;
      }
      return null;
    }
    __name(isClosed, "isClosed");
    function isOutgoingMessage(stream3) {
      return typeof stream3._closed === "boolean" && typeof stream3._defaultKeepAlive === "boolean" && typeof stream3._removedConnection === "boolean" && typeof stream3._removedContLen === "boolean";
    }
    __name(isOutgoingMessage, "isOutgoingMessage");
    function isServerResponse(stream3) {
      return typeof stream3._sent100 === "boolean" && isOutgoingMessage(stream3);
    }
    __name(isServerResponse, "isServerResponse");
    function isServerRequest(stream3) {
      var _stream$req;
      return typeof stream3._consuming === "boolean" && typeof stream3._dumped === "boolean" && ((_stream$req = stream3.req) === null || _stream$req === void 0 ? void 0 : _stream$req.upgradeOrConnect) === void 0;
    }
    __name(isServerRequest, "isServerRequest");
    function willEmitClose(stream3) {
      if (!isNodeStream(stream3)) return null;
      const wState = stream3._writableState;
      const rState = stream3._readableState;
      const state2 = wState || rState;
      return !state2 && isServerResponse(stream3) || !!(state2 && state2.autoDestroy && state2.emitClose && state2.closed === false);
    }
    __name(willEmitClose, "willEmitClose");
    function isDisturbed(stream3) {
      var _stream$kIsDisturbed;
      return !!(stream3 && ((_stream$kIsDisturbed = stream3[kIsDisturbed]) !== null && _stream$kIsDisturbed !== void 0 ? _stream$kIsDisturbed : stream3.readableDidRead || stream3.readableAborted));
    }
    __name(isDisturbed, "isDisturbed");
    function isErrored(stream3) {
      var _ref, _ref2, _ref3, _ref4, _ref5, _stream$kIsErrored, _stream$_readableStat3, _stream$_writableStat3, _stream$_readableStat4, _stream$_writableStat4;
      return !!(stream3 && ((_ref = (_ref2 = (_ref3 = (_ref4 = (_ref5 = (_stream$kIsErrored = stream3[kIsErrored]) !== null && _stream$kIsErrored !== void 0 ? _stream$kIsErrored : stream3.readableErrored) !== null && _ref5 !== void 0 ? _ref5 : stream3.writableErrored) !== null && _ref4 !== void 0 ? _ref4 : (_stream$_readableStat3 = stream3._readableState) === null || _stream$_readableStat3 === void 0 ? void 0 : _stream$_readableStat3.errorEmitted) !== null && _ref3 !== void 0 ? _ref3 : (_stream$_writableStat3 = stream3._writableState) === null || _stream$_writableStat3 === void 0 ? void 0 : _stream$_writableStat3.errorEmitted) !== null && _ref2 !== void 0 ? _ref2 : (_stream$_readableStat4 = stream3._readableState) === null || _stream$_readableStat4 === void 0 ? void 0 : _stream$_readableStat4.errored) !== null && _ref !== void 0 ? _ref : (_stream$_writableStat4 = stream3._writableState) === null || _stream$_writableStat4 === void 0 ? void 0 : _stream$_writableStat4.errored));
    }
    __name(isErrored, "isErrored");
    module2.exports = {
      isDestroyed,
      kIsDestroyed,
      isDisturbed,
      kIsDisturbed,
      isErrored,
      kIsErrored,
      isReadable: isReadable2,
      kIsReadable,
      kIsClosedPromise,
      kControllerErrorFunction,
      kIsWritable,
      isClosed,
      isDuplexNodeStream,
      isFinished,
      isIterable,
      isReadableNodeStream,
      isReadableStream: isReadableStream2,
      isReadableEnded,
      isReadableFinished,
      isReadableErrored,
      isNodeStream,
      isWebStream,
      isWritable: isWritable2,
      isWritableNodeStream,
      isWritableStream,
      isWritableEnded,
      isWritableFinished,
      isWritableErrored,
      isServerRequest,
      isServerResponse,
      willEmitClose,
      isTransformStream
    };
  }
});

// ../../node_modules/archiver-utils/node_modules/readable-stream/lib/internal/streams/end-of-stream.js
var require_end_of_stream = __commonJS({
  "../../node_modules/archiver-utils/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"(exports2, module2) {
    "use strict";
    var process3 = require_process();
    var { AbortError, codes } = require_errors();
    var { ERR_INVALID_ARG_TYPE, ERR_STREAM_PREMATURE_CLOSE } = codes;
    var { kEmptyObject, once } = require_util2();
    var { validateAbortSignal, validateFunction, validateObject, validateBoolean } = require_validators();
    var { Promise: Promise2, PromisePrototypeThen, SymbolDispose } = require_primordials();
    var {
      isClosed,
      isReadable: isReadable2,
      isReadableNodeStream,
      isReadableStream: isReadableStream2,
      isReadableFinished,
      isReadableErrored,
      isWritable: isWritable2,
      isWritableNodeStream,
      isWritableStream,
      isWritableFinished,
      isWritableErrored,
      isNodeStream,
      willEmitClose: _willEmitClose,
      kIsClosedPromise
    } = require_utils2();
    var addAbortListener;
    function isRequest(stream3) {
      return stream3.setHeader && typeof stream3.abort === "function";
    }
    __name(isRequest, "isRequest");
    var nop = /* @__PURE__ */ __name(() => {
    }, "nop");
    function eos(stream3, options, callback) {
      var _options$readable, _options$writable;
      if (arguments.length === 2) {
        callback = options;
        options = kEmptyObject;
      } else if (options == null) {
        options = kEmptyObject;
      } else {
        validateObject(options, "options");
      }
      validateFunction(callback, "callback");
      validateAbortSignal(options.signal, "options.signal");
      callback = once(callback);
      if (isReadableStream2(stream3) || isWritableStream(stream3)) {
        return eosWeb(stream3, options, callback);
      }
      if (!isNodeStream(stream3)) {
        throw new ERR_INVALID_ARG_TYPE("stream", ["ReadableStream", "WritableStream", "Stream"], stream3);
      }
      const readable = (_options$readable = options.readable) !== null && _options$readable !== void 0 ? _options$readable : isReadableNodeStream(stream3);
      const writable = (_options$writable = options.writable) !== null && _options$writable !== void 0 ? _options$writable : isWritableNodeStream(stream3);
      const wState = stream3._writableState;
      const rState = stream3._readableState;
      const onlegacyfinish = /* @__PURE__ */ __name(() => {
        if (!stream3.writable) {
          onfinish();
        }
      }, "onlegacyfinish");
      let willEmitClose = _willEmitClose(stream3) && isReadableNodeStream(stream3) === readable && isWritableNodeStream(stream3) === writable;
      let writableFinished = isWritableFinished(stream3, false);
      const onfinish = /* @__PURE__ */ __name(() => {
        writableFinished = true;
        if (stream3.destroyed) {
          willEmitClose = false;
        }
        if (willEmitClose && (!stream3.readable || readable)) {
          return;
        }
        if (!readable || readableFinished) {
          callback.call(stream3);
        }
      }, "onfinish");
      let readableFinished = isReadableFinished(stream3, false);
      const onend = /* @__PURE__ */ __name(() => {
        readableFinished = true;
        if (stream3.destroyed) {
          willEmitClose = false;
        }
        if (willEmitClose && (!stream3.writable || writable)) {
          return;
        }
        if (!writable || writableFinished) {
          callback.call(stream3);
        }
      }, "onend");
      const onerror = /* @__PURE__ */ __name((err) => {
        callback.call(stream3, err);
      }, "onerror");
      let closed = isClosed(stream3);
      const onclose = /* @__PURE__ */ __name(() => {
        closed = true;
        const errored = isWritableErrored(stream3) || isReadableErrored(stream3);
        if (errored && typeof errored !== "boolean") {
          return callback.call(stream3, errored);
        }
        if (readable && !readableFinished && isReadableNodeStream(stream3, true)) {
          if (!isReadableFinished(stream3, false)) return callback.call(stream3, new ERR_STREAM_PREMATURE_CLOSE());
        }
        if (writable && !writableFinished) {
          if (!isWritableFinished(stream3, false)) return callback.call(stream3, new ERR_STREAM_PREMATURE_CLOSE());
        }
        callback.call(stream3);
      }, "onclose");
      const onclosed = /* @__PURE__ */ __name(() => {
        closed = true;
        const errored = isWritableErrored(stream3) || isReadableErrored(stream3);
        if (errored && typeof errored !== "boolean") {
          return callback.call(stream3, errored);
        }
        callback.call(stream3);
      }, "onclosed");
      const onrequest = /* @__PURE__ */ __name(() => {
        stream3.req.on("finish", onfinish);
      }, "onrequest");
      if (isRequest(stream3)) {
        stream3.on("complete", onfinish);
        if (!willEmitClose) {
          stream3.on("abort", onclose);
        }
        if (stream3.req) {
          onrequest();
        } else {
          stream3.on("request", onrequest);
        }
      } else if (writable && !wState) {
        stream3.on("end", onlegacyfinish);
        stream3.on("close", onlegacyfinish);
      }
      if (!willEmitClose && typeof stream3.aborted === "boolean") {
        stream3.on("aborted", onclose);
      }
      stream3.on("end", onend);
      stream3.on("finish", onfinish);
      if (options.error !== false) {
        stream3.on("error", onerror);
      }
      stream3.on("close", onclose);
      if (closed) {
        process3.nextTick(onclose);
      } else if (wState !== null && wState !== void 0 && wState.errorEmitted || rState !== null && rState !== void 0 && rState.errorEmitted) {
        if (!willEmitClose) {
          process3.nextTick(onclosed);
        }
      } else if (!readable && (!willEmitClose || isReadable2(stream3)) && (writableFinished || isWritable2(stream3) === false)) {
        process3.nextTick(onclosed);
      } else if (!writable && (!willEmitClose || isWritable2(stream3)) && (readableFinished || isReadable2(stream3) === false)) {
        process3.nextTick(onclosed);
      } else if (rState && stream3.req && stream3.aborted) {
        process3.nextTick(onclosed);
      }
      const cleanup = /* @__PURE__ */ __name(() => {
        callback = nop;
        stream3.removeListener("aborted", onclose);
        stream3.removeListener("complete", onfinish);
        stream3.removeListener("abort", onclose);
        stream3.removeListener("request", onrequest);
        if (stream3.req) stream3.req.removeListener("finish", onfinish);
        stream3.removeListener("end", onlegacyfinish);
        stream3.removeListener("close", onlegacyfinish);
        stream3.removeListener("finish", onfinish);
        stream3.removeListener("end", onend);
        stream3.removeListener("error", onerror);
        stream3.removeListener("close", onclose);
      }, "cleanup");
      if (options.signal && !closed) {
        const abort = /* @__PURE__ */ __name(() => {
          const endCallback = callback;
          cleanup();
          endCallback.call(
            stream3,
            new AbortError(void 0, {
              cause: options.signal.reason
            })
          );
        }, "abort");
        if (options.signal.aborted) {
          process3.nextTick(abort);
        } else {
          addAbortListener = addAbortListener || require_util2().addAbortListener;
          const disposable = addAbortListener(options.signal, abort);
          const originalCallback = callback;
          callback = once((...args) => {
            disposable[SymbolDispose]();
            originalCallback.apply(stream3, args);
          });
        }
      }
      return cleanup;
    }
    __name(eos, "eos");
    function eosWeb(stream3, options, callback) {
      let isAborted = false;
      let abort = nop;
      if (options.signal) {
        abort = /* @__PURE__ */ __name(() => {
          isAborted = true;
          callback.call(
            stream3,
            new AbortError(void 0, {
              cause: options.signal.reason
            })
          );
        }, "abort");
        if (options.signal.aborted) {
          process3.nextTick(abort);
        } else {
          addAbortListener = addAbortListener || require_util2().addAbortListener;
          const disposable = addAbortListener(options.signal, abort);
          const originalCallback = callback;
          callback = once((...args) => {
            disposable[SymbolDispose]();
            originalCallback.apply(stream3, args);
          });
        }
      }
      const resolverFn = /* @__PURE__ */ __name((...args) => {
        if (!isAborted) {
          process3.nextTick(() => callback.apply(stream3, args));
        }
      }, "resolverFn");
      PromisePrototypeThen(stream3[kIsClosedPromise].promise, resolverFn, resolverFn);
      return nop;
    }
    __name(eosWeb, "eosWeb");
    function finished(stream3, opts) {
      var _opts;
      let autoCleanup = false;
      if (opts === null) {
        opts = kEmptyObject;
      }
      if ((_opts = opts) !== null && _opts !== void 0 && _opts.cleanup) {
        validateBoolean(opts.cleanup, "cleanup");
        autoCleanup = opts.cleanup;
      }
      return new Promise2((resolve13, reject) => {
        const cleanup = eos(stream3, opts, (err) => {
          if (autoCleanup) {
            cleanup();
          }
          if (err) {
            reject(err);
          } else {
            resolve13();
          }
        });
      });
    }
    __name(finished, "finished");
    module2.exports = eos;
    module2.exports.finished = finished;
  }
});

// ../../node_modules/archiver-utils/node_modules/readable-stream/lib/internal/streams/destroy.js
var require_destroy2 = __commonJS({
  "../../node_modules/archiver-utils/node_modules/readable-stream/lib/internal/streams/destroy.js"(exports2, module2) {
    "use strict";
    var process3 = require_process();
    var {
      aggregateTwoErrors,
      codes: { ERR_MULTIPLE_CALLBACK },
      AbortError
    } = require_errors();
    var { Symbol: Symbol2 } = require_primordials();
    var { kIsDestroyed, isDestroyed, isFinished, isServerRequest } = require_utils2();
    var kDestroy = Symbol2("kDestroy");
    var kConstruct = Symbol2("kConstruct");
    function checkError(err, w3, r3) {
      if (err) {
        err.stack;
        if (w3 && !w3.errored) {
          w3.errored = err;
        }
        if (r3 && !r3.errored) {
          r3.errored = err;
        }
      }
    }
    __name(checkError, "checkError");
    function destroy(err, cb) {
      const r3 = this._readableState;
      const w3 = this._writableState;
      const s3 = w3 || r3;
      if (w3 !== null && w3 !== void 0 && w3.destroyed || r3 !== null && r3 !== void 0 && r3.destroyed) {
        if (typeof cb === "function") {
          cb();
        }
        return this;
      }
      checkError(err, w3, r3);
      if (w3) {
        w3.destroyed = true;
      }
      if (r3) {
        r3.destroyed = true;
      }
      if (!s3.constructed) {
        this.once(kDestroy, function(er) {
          _destroy(this, aggregateTwoErrors(er, err), cb);
        });
      } else {
        _destroy(this, err, cb);
      }
      return this;
    }
    __name(destroy, "destroy");
    function _destroy(self2, err, cb) {
      let called = false;
      function onDestroy(err2) {
        if (called) {
          return;
        }
        called = true;
        const r3 = self2._readableState;
        const w3 = self2._writableState;
        checkError(err2, w3, r3);
        if (w3) {
          w3.closed = true;
        }
        if (r3) {
          r3.closed = true;
        }
        if (typeof cb === "function") {
          cb(err2);
        }
        if (err2) {
          process3.nextTick(emitErrorCloseNT, self2, err2);
        } else {
          process3.nextTick(emitCloseNT, self2);
        }
      }
      __name(onDestroy, "onDestroy");
      try {
        self2._destroy(err || null, onDestroy);
      } catch (err2) {
        onDestroy(err2);
      }
    }
    __name(_destroy, "_destroy");
    function emitErrorCloseNT(self2, err) {
      emitErrorNT(self2, err);
      emitCloseNT(self2);
    }
    __name(emitErrorCloseNT, "emitErrorCloseNT");
    function emitCloseNT(self2) {
      const r3 = self2._readableState;
      const w3 = self2._writableState;
      if (w3) {
        w3.closeEmitted = true;
      }
      if (r3) {
        r3.closeEmitted = true;
      }
      if (w3 !== null && w3 !== void 0 && w3.emitClose || r3 !== null && r3 !== void 0 && r3.emitClose) {
        self2.emit("close");
      }
    }
    __name(emitCloseNT, "emitCloseNT");
    function emitErrorNT(self2, err) {
      const r3 = self2._readableState;
      const w3 = self2._writableState;
      if (w3 !== null && w3 !== void 0 && w3.errorEmitted || r3 !== null && r3 !== void 0 && r3.errorEmitted) {
        return;
      }
      if (w3) {
        w3.errorEmitted = true;
      }
      if (r3) {
        r3.errorEmitted = true;
      }
      self2.emit("error", err);
    }
    __name(emitErrorNT, "emitErrorNT");
    function undestroy() {
      const r3 = this._readableState;
      const w3 = this._writableState;
      if (r3) {
        r3.constructed = true;
        r3.closed = false;
        r3.closeEmitted = false;
        r3.destroyed = false;
        r3.errored = null;
        r3.errorEmitted = false;
        r3.reading = false;
        r3.ended = r3.readable === false;
        r3.endEmitted = r3.readable === false;
      }
      if (w3) {
        w3.constructed = true;
        w3.destroyed = false;
        w3.closed = false;
        w3.closeEmitted = false;
        w3.errored = null;
        w3.errorEmitted = false;
        w3.finalCalled = false;
        w3.prefinished = false;
        w3.ended = w3.writable === false;
        w3.ending = w3.writable === false;
        w3.finished = w3.writable === false;
      }
    }
    __name(undestroy, "undestroy");
    function errorOrDestroy(stream3, err, sync2) {
      const r3 = stream3._readableState;
      const w3 = stream3._writableState;
      if (w3 !== null && w3 !== void 0 && w3.destroyed || r3 !== null && r3 !== void 0 && r3.destroyed) {
        return this;
      }
      if (r3 !== null && r3 !== void 0 && r3.autoDestroy || w3 !== null && w3 !== void 0 && w3.autoDestroy)
        stream3.destroy(err);
      else if (err) {
        err.stack;
        if (w3 && !w3.errored) {
          w3.errored = err;
        }
        if (r3 && !r3.errored) {
          r3.errored = err;
        }
        if (sync2) {
          process3.nextTick(emitErrorNT, stream3, err);
        } else {
          emitErrorNT(stream3, err);
        }
      }
    }
    __name(errorOrDestroy, "errorOrDestroy");
    function construct(stream3, cb) {
      if (typeof stream3._construct !== "function") {
        return;
      }
      const r3 = stream3._readableState;
      const w3 = stream3._writableState;
      if (r3) {
        r3.constructed = false;
      }
      if (w3) {
        w3.constructed = false;
      }
      stream3.once(kConstruct, cb);
      if (stream3.listenerCount(kConstruct) > 1) {
        return;
      }
      process3.nextTick(constructNT, stream3);
    }
    __name(construct, "construct");
    function constructNT(stream3) {
      let called = false;
      function onConstruct(err) {
        if (called) {
          errorOrDestroy(stream3, err !== null && err !== void 0 ? err : new ERR_MULTIPLE_CALLBACK());
          return;
        }
        called = true;
        const r3 = stream3._readableState;
        const w3 = stream3._writableState;
        const s3 = w3 || r3;
        if (r3) {
          r3.constructed = true;
        }
        if (w3) {
          w3.constructed = true;
        }
        if (s3.destroyed) {
          stream3.emit(kDestroy, err);
        } else if (err) {
          errorOrDestroy(stream3, err, true);
        } else {
          process3.nextTick(emitConstructNT, stream3);
        }
      }
      __name(onConstruct, "onConstruct");
      try {
        stream3._construct((err) => {
          process3.nextTick(onConstruct, err);
        });
      } catch (err) {
        process3.nextTick(onConstruct, err);
      }
    }
    __name(constructNT, "constructNT");
    function emitConstructNT(stream3) {
      stream3.emit(kConstruct);
    }
    __name(emitConstructNT, "emitConstructNT");
    function isRequest(stream3) {
      return (stream3 === null || stream3 === void 0 ? void 0 : stream3.setHeader) && typeof stream3.abort === "function";
    }
    __name(isRequest, "isRequest");
    function emitCloseLegacy(stream3) {
      stream3.emit("close");
    }
    __name(emitCloseLegacy, "emitCloseLegacy");
    function emitErrorCloseLegacy(stream3, err) {
      stream3.emit("error", err);
      process3.nextTick(emitCloseLegacy, stream3);
    }
    __name(emitErrorCloseLegacy, "emitErrorCloseLegacy");
    function destroyer(stream3, err) {
      if (!stream3 || isDestroyed(stream3)) {
        return;
      }
      if (!err && !isFinished(stream3)) {
        err = new AbortError();
      }
      if (isServerRequest(stream3)) {
        stream3.socket = null;
        stream3.destroy(err);
      } else if (isRequest(stream3)) {
        stream3.abort();
      } else if (isRequest(stream3.req)) {
        stream3.req.abort();
      } else if (typeof stream3.destroy === "function") {
        stream3.destroy(err);
      } else if (typeof stream3.close === "function") {
        stream3.close();
      } else if (err) {
        process3.nextTick(emitErrorCloseLegacy, stream3, err);
      } else {
        process3.nextTick(emitCloseLegacy, stream3);
      }
      if (!stream3.destroyed) {
        stream3[kIsDestroyed] = true;
      }
    }
    __name(destroyer, "destroyer");
    module2.exports = {
      construct,
      destroyer,
      destroy,
      undestroy,
      errorOrDestroy
    };
  }
});

// ../../node_modules/archiver-utils/node_modules/readable-stream/lib/internal/streams/legacy.js
var require_legacy = __commonJS({
  "../../node_modules/archiver-utils/node_modules/readable-stream/lib/internal/streams/legacy.js"(exports2, module2) {
    "use strict";
    var { ArrayIsArray, ObjectSetPrototypeOf } = require_primordials();
    var { EventEmitter: EE } = require("events");
    function Stream2(opts) {
      EE.call(this, opts);
    }
    __name(Stream2, "Stream");
    ObjectSetPrototypeOf(Stream2.prototype, EE.prototype);
    ObjectSetPrototypeOf(Stream2, EE);
    Stream2.prototype.pipe = function(dest, options) {
      const source = this;
      function ondata(chunk) {
        if (dest.writable && dest.write(chunk) === false && source.pause) {
          source.pause();
        }
      }
      __name(ondata, "ondata");
      source.on("data", ondata);
      function ondrain() {
        if (source.readable && source.resume) {
          source.resume();
        }
      }
      __name(ondrain, "ondrain");
      dest.on("drain", ondrain);
      if (!dest._isStdio && (!options || options.end !== false)) {
        source.on("end", onend);
        source.on("close", onclose);
      }
      let didOnEnd = false;
      function onend() {
        if (didOnEnd) return;
        didOnEnd = true;
        dest.end();
      }
      __name(onend, "onend");
      function onclose() {
        if (didOnEnd) return;
        didOnEnd = true;
        if (typeof dest.destroy === "function") dest.destroy();
      }
      __name(onclose, "onclose");
      function onerror(er) {
        cleanup();
        if (EE.listenerCount(this, "error") === 0) {
          this.emit("error", er);
        }
      }
      __name(onerror, "onerror");
      prependListener(source, "error", onerror);
      prependListener(dest, "error", onerror);
      function cleanup() {
        source.removeListener("data", ondata);
        dest.removeListener("drain", ondrain);
        source.removeListener("end", onend);
        source.removeListener("close", onclose);
        source.removeListener("error", onerror);
        dest.removeListener("error", onerror);
        source.removeListener("end", cleanup);
        source.removeListener("close", cleanup);
        dest.removeListener("close", cleanup);
      }
      __name(cleanup, "cleanup");
      source.on("end", cleanup);
      source.on("close", cleanup);
      dest.on("close", cleanup);
      dest.emit("pipe", source);
      return dest;
    };
    function prependListener(emitter, event, fn) {
      if (typeof emitter.prependListener === "function") return emitter.prependListener(event, fn);
      if (!emitter._events || !emitter._events[event]) emitter.on(event, fn);
      else if (ArrayIsArray(emitter._events[event])) emitter._events[event].unshift(fn);
      else emitter._events[event] = [fn, emitter._events[event]];
    }
    __name(prependListener, "prependListener");
    module2.exports = {
      Stream: Stream2,
      prependListener
    };
  }
});

// ../../node_modules/archiver-utils/node_modules/readable-stream/lib/internal/streams/add-abort-signal.js
var require_add_abort_signal = __commonJS({
  "../../node_modules/archiver-utils/node_modules/readable-stream/lib/internal/streams/add-abort-signal.js"(exports2, module2) {
    "use strict";
    var { SymbolDispose } = require_primordials();
    var { AbortError, codes } = require_errors();
    var { isNodeStream, isWebStream, kControllerErrorFunction } = require_utils2();
    var eos = require_end_of_stream();
    var { ERR_INVALID_ARG_TYPE } = codes;
    var addAbortListener;
    var validateAbortSignal = /* @__PURE__ */ __name((signal, name) => {
      if (typeof signal !== "object" || !("aborted" in signal)) {
        throw new ERR_INVALID_ARG_TYPE(name, "AbortSignal", signal);
      }
    }, "validateAbortSignal");
    module2.exports.addAbortSignal = /* @__PURE__ */ __name(function addAbortSignal(signal, stream3) {
      validateAbortSignal(signal, "signal");
      if (!isNodeStream(stream3) && !isWebStream(stream3)) {
        throw new ERR_INVALID_ARG_TYPE("stream", ["ReadableStream", "WritableStream", "Stream"], stream3);
      }
      return module2.exports.addAbortSignalNoValidate(signal, stream3);
    }, "addAbortSignal");
    module2.exports.addAbortSignalNoValidate = function(signal, stream3) {
      if (typeof signal !== "object" || !("aborted" in signal)) {
        return stream3;
      }
      const onAbort = isNodeStream(stream3) ? () => {
        stream3.destroy(
          new AbortError(void 0, {
            cause: signal.reason
          })
        );
      } : () => {
        stream3[kControllerErrorFunction](
          new AbortError(void 0, {
            cause: signal.reason
          })
        );
      };
      if (signal.aborted) {
        onAbort();
      } else {
        addAbortListener = addAbortListener || require_util2().addAbortListener;
        const disposable = addAbortListener(signal, onAbort);
        eos(stream3, disposable[SymbolDispose]);
      }
      return stream3;
    };
  }
});

// ../../node_modules/archiver-utils/node_modules/readable-stream/lib/internal/streams/buffer_list.js
var require_buffer_list = __commonJS({
  "../../node_modules/archiver-utils/node_modules/readable-stream/lib/internal/streams/buffer_list.js"(exports2, module2) {
    "use strict";
    var { StringPrototypeSlice, SymbolIterator, TypedArrayPrototypeSet, Uint8Array: Uint8Array2 } = require_primordials();
    var { Buffer: Buffer2 } = require("buffer");
    var { inspect: inspect4 } = require_util2();
    module2.exports = class BufferList {
      static {
        __name(this, "BufferList");
      }
      constructor() {
        this.head = null;
        this.tail = null;
        this.length = 0;
      }
      push(v6) {
        const entry = {
          data: v6,
          next: null
        };
        if (this.length > 0) this.tail.next = entry;
        else this.head = entry;
        this.tail = entry;
        ++this.length;
      }
      unshift(v6) {
        const entry = {
          data: v6,
          next: this.head
        };
        if (this.length === 0) this.tail = entry;
        this.head = entry;
        ++this.length;
      }
      shift() {
        if (this.length === 0) return;
        const ret = this.head.data;
        if (this.length === 1) this.head = this.tail = null;
        else this.head = this.head.next;
        --this.length;
        return ret;
      }
      clear() {
        this.head = this.tail = null;
        this.length = 0;
      }
      join(s3) {
        if (this.length === 0) return "";
        let p3 = this.head;
        let ret = "" + p3.data;
        while ((p3 = p3.next) !== null) ret += s3 + p3.data;
        return ret;
      }
      concat(n3) {
        if (this.length === 0) return Buffer2.alloc(0);
        const ret = Buffer2.allocUnsafe(n3 >>> 0);
        let p3 = this.head;
        let i3 = 0;
        while (p3) {
          TypedArrayPrototypeSet(ret, p3.data, i3);
          i3 += p3.data.length;
          p3 = p3.next;
        }
        return ret;
      }
      // Consumes a specified amount of bytes or characters from the buffered data.
      consume(n3, hasStrings) {
        const data3 = this.head.data;
        if (n3 < data3.length) {
          const slice = data3.slice(0, n3);
          this.head.data = data3.slice(n3);
          return slice;
        }
        if (n3 === data3.length) {
          return this.shift();
        }
        return hasStrings ? this._getString(n3) : this._getBuffer(n3);
      }
      first() {
        return this.head.data;
      }
      *[SymbolIterator]() {
        for (let p3 = this.head; p3; p3 = p3.next) {
          yield p3.data;
        }
      }
      // Consumes a specified amount of characters from the buffered data.
      _getString(n3) {
        let ret = "";
        let p3 = this.head;
        let c3 = 0;
        do {
          const str = p3.data;
          if (n3 > str.length) {
            ret += str;
            n3 -= str.length;
          } else {
            if (n3 === str.length) {
              ret += str;
              ++c3;
              if (p3.next) this.head = p3.next;
              else this.head = this.tail = null;
            } else {
              ret += StringPrototypeSlice(str, 0, n3);
              this.head = p3;
              p3.data = StringPrototypeSlice(str, n3);
            }
            break;
          }
          ++c3;
        } while ((p3 = p3.next) !== null);
        this.length -= c3;
        return ret;
      }
      // Consumes a specified amount of bytes from the buffered data.
      _getBuffer(n3) {
        const ret = Buffer2.allocUnsafe(n3);
        const retLen = n3;
        let p3 = this.head;
        let c3 = 0;
        do {
          const buf = p3.data;
          if (n3 > buf.length) {
            TypedArrayPrototypeSet(ret, buf, retLen - n3);
            n3 -= buf.length;
          } else {
            if (n3 === buf.length) {
              TypedArrayPrototypeSet(ret, buf, retLen - n3);
              ++c3;
              if (p3.next) this.head = p3.next;
              else this.head = this.tail = null;
            } else {
              TypedArrayPrototypeSet(ret, new Uint8Array2(buf.buffer, buf.byteOffset, n3), retLen - n3);
              this.head = p3;
              p3.data = buf.slice(n3);
            }
            break;
          }
          ++c3;
        } while ((p3 = p3.next) !== null);
        this.length -= c3;
        return ret;
      }
      // Make sure the linked list only shows the minimal necessary information.
      [Symbol.for("nodejs.util.inspect.custom")](_3, options) {
        return inspect4(this, {
          ...options,
          // Only inspect one level.
          depth: 0,
          // It should not recurse.
          customInspect: false
        });
      }
    };
  }
});

// ../../node_modules/archiver-utils/node_modules/readable-stream/lib/internal/streams/state.js
var require_state = __commonJS({
  "../../node_modules/archiver-utils/node_modules/readable-stream/lib/internal/streams/state.js"(exports2, module2) {
    "use strict";
    var { MathFloor, NumberIsInteger } = require_primordials();
    var { validateInteger } = require_validators();
    var { ERR_INVALID_ARG_VALUE } = require_errors().codes;
    var defaultHighWaterMarkBytes = 16 * 1024;
    var defaultHighWaterMarkObjectMode = 16;
    function highWaterMarkFrom(options, isDuplex, duplexKey) {
      return options.highWaterMark != null ? options.highWaterMark : isDuplex ? options[duplexKey] : null;
    }
    __name(highWaterMarkFrom, "highWaterMarkFrom");
    function getDefaultHighWaterMark(objectMode) {
      return objectMode ? defaultHighWaterMarkObjectMode : defaultHighWaterMarkBytes;
    }
    __name(getDefaultHighWaterMark, "getDefaultHighWaterMark");
    function setDefaultHighWaterMark(objectMode, value) {
      validateInteger(value, "value", 0);
      if (objectMode) {
        defaultHighWaterMarkObjectMode = value;
      } else {
        defaultHighWaterMarkBytes = value;
      }
    }
    __name(setDefaultHighWaterMark, "setDefaultHighWaterMark");
    function getHighWaterMark(state2, options, duplexKey, isDuplex) {
      const hwm = highWaterMarkFrom(options, isDuplex, duplexKey);
      if (hwm != null) {
        if (!NumberIsInteger(hwm) || hwm < 0) {
          const name = isDuplex ? `options.${duplexKey}` : "options.highWaterMark";
          throw new ERR_INVALID_ARG_VALUE(name, hwm);
        }
        return MathFloor(hwm);
      }
      return getDefaultHighWaterMark(state2.objectMode);
    }
    __name(getHighWaterMark, "getHighWaterMark");
    module2.exports = {
      getHighWaterMark,
      getDefaultHighWaterMark,
      setDefaultHighWaterMark
    };
  }
});

// ../../node_modules/safe-buffer/index.js
var require_safe_buffer2 = __commonJS({
  "../../node_modules/safe-buffer/index.js"(exports2, module2) {
    var buffer = require("buffer");
    var Buffer2 = buffer.Buffer;
    function copyProps(src, dst) {
      for (var key in src) {
        dst[key] = src[key];
      }
    }
    __name(copyProps, "copyProps");
    if (Buffer2.from && Buffer2.alloc && Buffer2.allocUnsafe && Buffer2.allocUnsafeSlow) {
      module2.exports = buffer;
    } else {
      copyProps(buffer, exports2);
      exports2.Buffer = SafeBuffer;
    }
    function SafeBuffer(arg, encodingOrOffset, length) {
      return Buffer2(arg, encodingOrOffset, length);
    }
    __name(SafeBuffer, "SafeBuffer");
    SafeBuffer.prototype = Object.create(Buffer2.prototype);
    copyProps(Buffer2, SafeBuffer);
    SafeBuffer.from = function(arg, encodingOrOffset, length) {
      if (typeof arg === "number") {
        throw new TypeError("Argument must not be a number");
      }
      return Buffer2(arg, encodingOrOffset, length);
    };
    SafeBuffer.alloc = function(size, fill, encoding) {
      if (typeof size !== "number") {
        throw new TypeError("Argument must be a number");
      }
      var buf = Buffer2(size);
      if (fill !== void 0) {
        if (typeof encoding === "string") {
          buf.fill(fill, encoding);
        } else {
          buf.fill(fill);
        }
      } else {
        buf.fill(0);
      }
      return buf;
    };
    SafeBuffer.allocUnsafe = function(size) {
      if (typeof size !== "number") {
        throw new TypeError("Argument must be a number");
      }
      return Buffer2(size);
    };
    SafeBuffer.allocUnsafeSlow = function(size) {
      if (typeof size !== "number") {
        throw new TypeError("Argument must be a number");
      }
      return buffer.SlowBuffer(size);
    };
  }
});

// ../../node_modules/string_decoder/lib/string_decoder.js
var require_string_decoder2 = __commonJS({
  "../../node_modules/string_decoder/lib/string_decoder.js"(exports2) {
    "use strict";
    var Buffer2 = require_safe_buffer2().Buffer;
    var isEncoding = Buffer2.isEncoding || function(encoding) {
      encoding = "" + encoding;
      switch (encoding && encoding.toLowerCase()) {
        case "hex":
        case "utf8":
        case "utf-8":
        case "ascii":
        case "binary":
        case "base64":
        case "ucs2":
        case "ucs-2":
        case "utf16le":
        case "utf-16le":
        case "raw":
          return true;
        default:
          return false;
      }
    };
    function _normalizeEncoding(enc) {
      if (!enc) return "utf8";
      var retried;
      while (true) {
        switch (enc) {
          case "utf8":
          case "utf-8":
            return "utf8";
          case "ucs2":
          case "ucs-2":
          case "utf16le":
          case "utf-16le":
            return "utf16le";
          case "latin1":
          case "binary":
            return "latin1";
          case "base64":
          case "ascii":
          case "hex":
            return enc;
          default:
            if (retried) return;
            enc = ("" + enc).toLowerCase();
            retried = true;
        }
      }
    }
    __name(_normalizeEncoding, "_normalizeEncoding");
    function normalizeEncoding(enc) {
      var nenc = _normalizeEncoding(enc);
      if (typeof nenc !== "string" && (Buffer2.isEncoding === isEncoding || !isEncoding(enc))) throw new Error("Unknown encoding: " + enc);
      return nenc || enc;
    }
    __name(normalizeEncoding, "normalizeEncoding");
    exports2.StringDecoder = StringDecoder2;
    function StringDecoder2(encoding) {
      this.encoding = normalizeEncoding(encoding);
      var nb;
      switch (this.encoding) {
        case "utf16le":
          this.text = utf16Text;
          this.end = utf16End;
          nb = 4;
          break;
        case "utf8":
          this.fillLast = utf8FillLast;
          nb = 4;
          break;
        case "base64":
          this.text = base64Text;
          this.end = base64End;
          nb = 3;
          break;
        default:
          this.write = simpleWrite;
          this.end = simpleEnd;
          return;
      }
      this.lastNeed = 0;
      this.lastTotal = 0;
      this.lastChar = Buffer2.allocUnsafe(nb);
    }
    __name(StringDecoder2, "StringDecoder");
    StringDecoder2.prototype.write = function(buf) {
      if (buf.length === 0) return "";
      var r3;
      var i3;
      if (this.lastNeed) {
        r3 = this.fillLast(buf);
        if (r3 === void 0) return "";
        i3 = this.lastNeed;
        this.lastNeed = 0;
      } else {
        i3 = 0;
      }
      if (i3 < buf.length) return r3 ? r3 + this.text(buf, i3) : this.text(buf, i3);
      return r3 || "";
    };
    StringDecoder2.prototype.end = utf8End;
    StringDecoder2.prototype.text = utf8Text;
    StringDecoder2.prototype.fillLast = function(buf) {
      if (this.lastNeed <= buf.length) {
        buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed);
        return this.lastChar.toString(this.encoding, 0, this.lastTotal);
      }
      buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, buf.length);
      this.lastNeed -= buf.length;
    };
    function utf8CheckByte(byte) {
      if (byte <= 127) return 0;
      else if (byte >> 5 === 6) return 2;
      else if (byte >> 4 === 14) return 3;
      else if (byte >> 3 === 30) return 4;
      return byte >> 6 === 2 ? -1 : -2;
    }
    __name(utf8CheckByte, "utf8CheckByte");
    function utf8CheckIncomplete(self2, buf, i3) {
      var j3 = buf.length - 1;
      if (j3 < i3) return 0;
      var nb = utf8CheckByte(buf[j3]);
      if (nb >= 0) {
        if (nb > 0) self2.lastNeed = nb - 1;
        return nb;
      }
      if (--j3 < i3 || nb === -2) return 0;
      nb = utf8CheckByte(buf[j3]);
      if (nb >= 0) {
        if (nb > 0) self2.lastNeed = nb - 2;
        return nb;
      }
      if (--j3 < i3 || nb === -2) return 0;
      nb = utf8CheckByte(buf[j3]);
      if (nb >= 0) {
        if (nb > 0) {
          if (nb === 2) nb = 0;
          else self2.lastNeed = nb - 3;
        }
        return nb;
      }
      return 0;
    }
    __name(utf8CheckIncomplete, "utf8CheckIncomplete");
    function utf8CheckExtraBytes(self2, buf, p3) {
      if ((buf[0] & 192) !== 128) {
        self2.lastNeed = 0;
        return "\uFFFD";
      }
      if (self2.lastNeed > 1 && buf.length > 1) {
        if ((buf[1] & 192) !== 128) {
          self2.lastNeed = 1;
          return "\uFFFD";
        }
        if (self2.lastNeed > 2 && buf.length > 2) {
          if ((buf[2] & 192) !== 128) {
            self2.lastNeed = 2;
            return "\uFFFD";
          }
        }
      }
    }
    __name(utf8CheckExtraBytes, "utf8CheckExtraBytes");
    function utf8FillLast(buf) {
      var p3 = this.lastTotal - this.lastNeed;
      var r3 = utf8CheckExtraBytes(this, buf, p3);
      if (r3 !== void 0) return r3;
      if (this.lastNeed <= buf.length) {
        buf.copy(this.lastChar, p3, 0, this.lastNeed);
        return this.lastChar.toString(this.encoding, 0, this.lastTotal);
      }
      buf.copy(this.lastChar, p3, 0, buf.length);
      this.lastNeed -= buf.length;
    }
    __name(utf8FillLast, "utf8FillLast");
    function utf8Text(buf, i3) {
      var total = utf8CheckIncomplete(this, buf, i3);
      if (!this.lastNeed) return buf.toString("utf8", i3);
      this.lastTotal = total;
      var end = buf.length - (total - this.lastNeed);
      buf.copy(this.lastChar, 0, end);
      return buf.toString("utf8", i3, end);
    }
    __name(utf8Text, "utf8Text");
    function utf8End(buf) {
      var r3 = buf && buf.length ? this.write(buf) : "";
      if (this.lastNeed) return r3 + "\uFFFD";
      return r3;
    }
    __name(utf8End, "utf8End");
    function utf16Text(buf, i3) {
      if ((buf.length - i3) % 2 === 0) {
        var r3 = buf.toString("utf16le", i3);
        if (r3) {
          var c3 = r3.charCodeAt(r3.length - 1);
          if (c3 >= 55296 && c3 <= 56319) {
            this.lastNeed = 2;
            this.lastTotal = 4;
            this.lastChar[0] = buf[buf.length - 2];
            this.lastChar[1] = buf[buf.length - 1];
            return r3.slice(0, -1);
          }
        }
        return r3;
      }
      this.lastNeed = 1;
      this.lastTotal = 2;
      this.lastChar[0] = buf[buf.length - 1];
      return buf.toString("utf16le", i3, buf.length - 1);
    }
    __name(utf16Text, "utf16Text");
    function utf16End(buf) {
      var r3 = buf && buf.length ? this.write(buf) : "";
      if (this.lastNeed) {
        var end = this.lastTotal - this.lastNeed;
        return r3 + this.lastChar.toString("utf16le", 0, end);
      }
      return r3;
    }
    __name(utf16End, "utf16End");
    function base64Text(buf, i3) {
      var n3 = (buf.length - i3) % 3;
      if (n3 === 0) return buf.toString("base64", i3);
      this.lastNeed = 3 - n3;
      this.lastTotal = 3;
      if (n3 === 1) {
        this.lastChar[0] = buf[buf.length - 1];
      } else {
        this.lastChar[0] = buf[buf.length - 2];
        this.lastChar[1] = buf[buf.length - 1];
      }
      return buf.toString("base64", i3, buf.length - n3);
    }
    __name(base64Text, "base64Text");
    function base64End(buf) {
      var r3 = buf && buf.length ? this.write(buf) : "";
      if (this.lastNeed) return r3 + this.lastChar.toString("base64", 0, 3 - this.lastNeed);
      return r3;
    }
    __name(base64End, "base64End");
    function simpleWrite(buf) {
      return buf.toString(this.encoding);
    }
    __name(simpleWrite, "simpleWrite");
    function simpleEnd(buf) {
      return buf && buf.length ? this.write(buf) : "";
    }
    __name(simpleEnd, "simpleEnd");
  }
});

// ../../node_modules/archiver-utils/node_modules/readable-stream/lib/internal/streams/from.js
var require_from = __commonJS({
  "../../node_modules/archiver-utils/node_modules/readable-stream/lib/internal/streams/from.js"(exports2, module2) {
    "use strict";
    var process3 = require_process();
    var { PromisePrototypeThen, SymbolAsyncIterator, SymbolIterator } = require_primordials();
    var { Buffer: Buffer2 } = require("buffer");
    var { ERR_INVALID_ARG_TYPE, ERR_STREAM_NULL_VALUES } = require_errors().codes;
    function from(Readable, iterable, opts) {
      let iterator;
      if (typeof iterable === "string" || iterable instanceof Buffer2) {
        return new Readable({
          objectMode: true,
          ...opts,
          read() {
            this.push(iterable);
            this.push(null);
          }
        });
      }
      let isAsync;
      if (iterable && iterable[SymbolAsyncIterator]) {
        isAsync = true;
        iterator = iterable[SymbolAsyncIterator]();
      } else if (iterable && iterable[SymbolIterator]) {
        isAsync = false;
        iterator = iterable[SymbolIterator]();
      } else {
        throw new ERR_INVALID_ARG_TYPE("iterable", ["Iterable"], iterable);
      }
      const readable = new Readable({
        objectMode: true,
        highWaterMark: 1,
        // TODO(ronag): What options should be allowed?
        ...opts
      });
      let reading = false;
      readable._read = function() {
        if (!reading) {
          reading = true;
          next();
        }
      };
      readable._destroy = function(error5, cb) {
        PromisePrototypeThen(
          close(error5),
          () => process3.nextTick(cb, error5),
          // nextTick is here in case cb throws
          (e3) => process3.nextTick(cb, e3 || error5)
        );
      };
      async function close(error5) {
        const hadError = error5 !== void 0 && error5 !== null;
        const hasThrow = typeof iterator.throw === "function";
        if (hadError && hasThrow) {
          const { value, done } = await iterator.throw(error5);
          await value;
          if (done) {
            return;
          }
        }
        if (typeof iterator.return === "function") {
          const { value } = await iterator.return();
          await value;
        }
      }
      __name(close, "close");
      async function next() {
        for (; ; ) {
          try {
            const { value, done } = isAsync ? await iterator.next() : iterator.next();
            if (done) {
              readable.push(null);
            } else {
              const res = value && typeof value.then === "function" ? await value : value;
              if (res === null) {
                reading = false;
                throw new ERR_STREAM_NULL_VALUES();
              } else if (readable.push(res)) {
                continue;
              } else {
                reading = false;
              }
            }
          } catch (err) {
            readable.destroy(err);
          }
          break;
        }
      }
      __name(next, "next");
      return readable;
    }
    __name(from, "from");
    module2.exports = from;
  }
});

// ../../node_modules/archiver-utils/node_modules/readable-stream/lib/internal/streams/readable.js
var require_readable2 = __commonJS({
  "../../node_modules/archiver-utils/node_modules/readable-stream/lib/internal/streams/readable.js"(exports2, module2) {
    "use strict";
    var process3 = require_process();
    var {
      ArrayPrototypeIndexOf,
      NumberIsInteger,
      NumberIsNaN,
      NumberParseInt,
      ObjectDefineProperties,
      ObjectKeys,
      ObjectSetPrototypeOf,
      Promise: Promise2,
      SafeSet,
      SymbolAsyncDispose,
      SymbolAsyncIterator,
      Symbol: Symbol2
    } = require_primordials();
    module2.exports = Readable;
    Readable.ReadableState = ReadableState;
    var { EventEmitter: EE } = require("events");
    var { Stream: Stream2, prependListener } = require_legacy();
    var { Buffer: Buffer2 } = require("buffer");
    var { addAbortSignal } = require_add_abort_signal();
    var eos = require_end_of_stream();
    var debug3 = require_util2().debuglog("stream", (fn) => {
      debug3 = fn;
    });
    var BufferList = require_buffer_list();
    var destroyImpl = require_destroy2();
    var { getHighWaterMark, getDefaultHighWaterMark } = require_state();
    var {
      aggregateTwoErrors,
      codes: {
        ERR_INVALID_ARG_TYPE,
        ERR_METHOD_NOT_IMPLEMENTED,
        ERR_OUT_OF_RANGE,
        ERR_STREAM_PUSH_AFTER_EOF,
        ERR_STREAM_UNSHIFT_AFTER_END_EVENT
      },
      AbortError
    } = require_errors();
    var { validateObject } = require_validators();
    var kPaused = Symbol2("kPaused");
    var { StringDecoder: StringDecoder2 } = require_string_decoder2();
    var from = require_from();
    ObjectSetPrototypeOf(Readable.prototype, Stream2.prototype);
    ObjectSetPrototypeOf(Readable, Stream2);
    var nop = /* @__PURE__ */ __name(() => {
    }, "nop");
    var { errorOrDestroy } = destroyImpl;
    var kObjectMode = 1 << 0;
    var kEnded = 1 << 1;
    var kEndEmitted = 1 << 2;
    var kReading = 1 << 3;
    var kConstructed = 1 << 4;
    var kSync = 1 << 5;
    var kNeedReadable = 1 << 6;
    var kEmittedReadable = 1 << 7;
    var kReadableListening = 1 << 8;
    var kResumeScheduled = 1 << 9;
    var kErrorEmitted = 1 << 10;
    var kEmitClose = 1 << 11;
    var kAutoDestroy = 1 << 12;
    var kDestroyed = 1 << 13;
    var kClosed = 1 << 14;
    var kCloseEmitted = 1 << 15;
    var kMultiAwaitDrain = 1 << 16;
    var kReadingMore = 1 << 17;
    var kDataEmitted = 1 << 18;
    function makeBitMapDescriptor(bit) {
      return {
        enumerable: false,
        get() {
          return (this.state & bit) !== 0;
        },
        set(value) {
          if (value) this.state |= bit;
          else this.state &= ~bit;
        }
      };
    }
    __name(makeBitMapDescriptor, "makeBitMapDescriptor");
    ObjectDefineProperties(ReadableState.prototype, {
      objectMode: makeBitMapDescriptor(kObjectMode),
      ended: makeBitMapDescriptor(kEnded),
      endEmitted: makeBitMapDescriptor(kEndEmitted),
      reading: makeBitMapDescriptor(kReading),
      // Stream is still being constructed and cannot be
      // destroyed until construction finished or failed.
      // Async construction is opt in, therefore we start as
      // constructed.
      constructed: makeBitMapDescriptor(kConstructed),
      // A flag to be able to tell if the event 'readable'/'data' is emitted
      // immediately, or on a later tick.  We set this to true at first, because
      // any actions that shouldn't happen until "later" should generally also
      // not happen before the first read call.
      sync: makeBitMapDescriptor(kSync),
      // Whenever we return null, then we set a flag to say
      // that we're awaiting a 'readable' event emission.
      needReadable: makeBitMapDescriptor(kNeedReadable),
      emittedReadable: makeBitMapDescriptor(kEmittedReadable),
      readableListening: makeBitMapDescriptor(kReadableListening),
      resumeScheduled: makeBitMapDescriptor(kResumeScheduled),
      // True if the error was already emitted and should not be thrown again.
      errorEmitted: makeBitMapDescriptor(kErrorEmitted),
      emitClose: makeBitMapDescriptor(kEmitClose),
      autoDestroy: makeBitMapDescriptor(kAutoDestroy),
      // Has it been destroyed.
      destroyed: makeBitMapDescriptor(kDestroyed),
      // Indicates whether the stream has finished destroying.
      closed: makeBitMapDescriptor(kClosed),
      // True if close has been emitted or would have been emitted
      // depending on emitClose.
      closeEmitted: makeBitMapDescriptor(kCloseEmitted),
      multiAwaitDrain: makeBitMapDescriptor(kMultiAwaitDrain),
      // If true, a maybeReadMore has been scheduled.
      readingMore: makeBitMapDescriptor(kReadingMore),
      dataEmitted: makeBitMapDescriptor(kDataEmitted)
    });
    function ReadableState(options, stream3, isDuplex) {
      if (typeof isDuplex !== "boolean") isDuplex = stream3 instanceof require_duplex();
      this.state = kEmitClose | kAutoDestroy | kConstructed | kSync;
      if (options && options.objectMode) this.state |= kObjectMode;
      if (isDuplex && options && options.readableObjectMode) this.state |= kObjectMode;
      this.highWaterMark = options ? getHighWaterMark(this, options, "readableHighWaterMark", isDuplex) : getDefaultHighWaterMark(false);
      this.buffer = new BufferList();
      this.length = 0;
      this.pipes = [];
      this.flowing = null;
      this[kPaused] = null;
      if (options && options.emitClose === false) this.state &= ~kEmitClose;
      if (options && options.autoDestroy === false) this.state &= ~kAutoDestroy;
      this.errored = null;
      this.defaultEncoding = options && options.defaultEncoding || "utf8";
      this.awaitDrainWriters = null;
      this.decoder = null;
      this.encoding = null;
      if (options && options.encoding) {
        this.decoder = new StringDecoder2(options.encoding);
        this.encoding = options.encoding;
      }
    }
    __name(ReadableState, "ReadableState");
    function Readable(options) {
      if (!(this instanceof Readable)) return new Readable(options);
      const isDuplex = this instanceof require_duplex();
      this._readableState = new ReadableState(options, this, isDuplex);
      if (options) {
        if (typeof options.read === "function") this._read = options.read;
        if (typeof options.destroy === "function") this._destroy = options.destroy;
        if (typeof options.construct === "function") this._construct = options.construct;
        if (options.signal && !isDuplex) addAbortSignal(options.signal, this);
      }
      Stream2.call(this, options);
      destroyImpl.construct(this, () => {
        if (this._readableState.needReadable) {
          maybeReadMore(this, this._readableState);
        }
      });
    }
    __name(Readable, "Readable");
    Readable.prototype.destroy = destroyImpl.destroy;
    Readable.prototype._undestroy = destroyImpl.undestroy;
    Readable.prototype._destroy = function(err, cb) {
      cb(err);
    };
    Readable.prototype[EE.captureRejectionSymbol] = function(err) {
      this.destroy(err);
    };
    Readable.prototype[SymbolAsyncDispose] = function() {
      let error5;
      if (!this.destroyed) {
        error5 = this.readableEnded ? null : new AbortError();
        this.destroy(error5);
      }
      return new Promise2((resolve13, reject) => eos(this, (err) => err && err !== error5 ? reject(err) : resolve13(null)));
    };
    Readable.prototype.push = function(chunk, encoding) {
      return readableAddChunk(this, chunk, encoding, false);
    };
    Readable.prototype.unshift = function(chunk, encoding) {
      return readableAddChunk(this, chunk, encoding, true);
    };
    function readableAddChunk(stream3, chunk, encoding, addToFront) {
      debug3("readableAddChunk", chunk);
      const state2 = stream3._readableState;
      let err;
      if ((state2.state & kObjectMode) === 0) {
        if (typeof chunk === "string") {
          encoding = encoding || state2.defaultEncoding;
          if (state2.encoding !== encoding) {
            if (addToFront && state2.encoding) {
              chunk = Buffer2.from(chunk, encoding).toString(state2.encoding);
            } else {
              chunk = Buffer2.from(chunk, encoding);
              encoding = "";
            }
          }
        } else if (chunk instanceof Buffer2) {
          encoding = "";
        } else if (Stream2._isUint8Array(chunk)) {
          chunk = Stream2._uint8ArrayToBuffer(chunk);
          encoding = "";
        } else if (chunk != null) {
          err = new ERR_INVALID_ARG_TYPE("chunk", ["string", "Buffer", "Uint8Array"], chunk);
        }
      }
      if (err) {
        errorOrDestroy(stream3, err);
      } else if (chunk === null) {
        state2.state &= ~kReading;
        onEofChunk(stream3, state2);
      } else if ((state2.state & kObjectMode) !== 0 || chunk && chunk.length > 0) {
        if (addToFront) {
          if ((state2.state & kEndEmitted) !== 0) errorOrDestroy(stream3, new ERR_STREAM_UNSHIFT_AFTER_END_EVENT());
          else if (state2.destroyed || state2.errored) return false;
          else addChunk(stream3, state2, chunk, true);
        } else if (state2.ended) {
          errorOrDestroy(stream3, new ERR_STREAM_PUSH_AFTER_EOF());
        } else if (state2.destroyed || state2.errored) {
          return false;
        } else {
          state2.state &= ~kReading;
          if (state2.decoder && !encoding) {
            chunk = state2.decoder.write(chunk);
            if (state2.objectMode || chunk.length !== 0) addChunk(stream3, state2, chunk, false);
            else maybeReadMore(stream3, state2);
          } else {
            addChunk(stream3, state2, chunk, false);
          }
        }
      } else if (!addToFront) {
        state2.state &= ~kReading;
        maybeReadMore(stream3, state2);
      }
      return !state2.ended && (state2.length < state2.highWaterMark || state2.length === 0);
    }
    __name(readableAddChunk, "readableAddChunk");
    function addChunk(stream3, state2, chunk, addToFront) {
      if (state2.flowing && state2.length === 0 && !state2.sync && stream3.listenerCount("data") > 0) {
        if ((state2.state & kMultiAwaitDrain) !== 0) {
          state2.awaitDrainWriters.clear();
        } else {
          state2.awaitDrainWriters = null;
        }
        state2.dataEmitted = true;
        stream3.emit("data", chunk);
      } else {
        state2.length += state2.objectMode ? 1 : chunk.length;
        if (addToFront) state2.buffer.unshift(chunk);
        else state2.buffer.push(chunk);
        if ((state2.state & kNeedReadable) !== 0) emitReadable(stream3);
      }
      maybeReadMore(stream3, state2);
    }
    __name(addChunk, "addChunk");
    Readable.prototype.isPaused = function() {
      const state2 = this._readableState;
      return state2[kPaused] === true || state2.flowing === false;
    };
    Readable.prototype.setEncoding = function(enc) {
      const decoder = new StringDecoder2(enc);
      this._readableState.decoder = decoder;
      this._readableState.encoding = this._readableState.decoder.encoding;
      const buffer = this._readableState.buffer;
      let content = "";
      for (const data3 of buffer) {
        content += decoder.write(data3);
      }
      buffer.clear();
      if (content !== "") buffer.push(content);
      this._readableState.length = content.length;
      return this;
    };
    var MAX_HWM = 1073741824;
    function computeNewHighWaterMark(n3) {
      if (n3 > MAX_HWM) {
        throw new ERR_OUT_OF_RANGE("size", "<= 1GiB", n3);
      } else {
        n3--;
        n3 |= n3 >>> 1;
        n3 |= n3 >>> 2;
        n3 |= n3 >>> 4;
        n3 |= n3 >>> 8;
        n3 |= n3 >>> 16;
        n3++;
      }
      return n3;
    }
    __name(computeNewHighWaterMark, "computeNewHighWaterMark");
    function howMuchToRead(n3, state2) {
      if (n3 <= 0 || state2.length === 0 && state2.ended) return 0;
      if ((state2.state & kObjectMode) !== 0) return 1;
      if (NumberIsNaN(n3)) {
        if (state2.flowing && state2.length) return state2.buffer.first().length;
        return state2.length;
      }
      if (n3 <= state2.length) return n3;
      return state2.ended ? state2.length : 0;
    }
    __name(howMuchToRead, "howMuchToRead");
    Readable.prototype.read = function(n3) {
      debug3("read", n3);
      if (n3 === void 0) {
        n3 = NaN;
      } else if (!NumberIsInteger(n3)) {
        n3 = NumberParseInt(n3, 10);
      }
      const state2 = this._readableState;
      const nOrig = n3;
      if (n3 > state2.highWaterMark) state2.highWaterMark = computeNewHighWaterMark(n3);
      if (n3 !== 0) state2.state &= ~kEmittedReadable;
      if (n3 === 0 && state2.needReadable && ((state2.highWaterMark !== 0 ? state2.length >= state2.highWaterMark : state2.length > 0) || state2.ended)) {
        debug3("read: emitReadable", state2.length, state2.ended);
        if (state2.length === 0 && state2.ended) endReadable(this);
        else emitReadable(this);
        return null;
      }
      n3 = howMuchToRead(n3, state2);
      if (n3 === 0 && state2.ended) {
        if (state2.length === 0) endReadable(this);
        return null;
      }
      let doRead = (state2.state & kNeedReadable) !== 0;
      debug3("need readable", doRead);
      if (state2.length === 0 || state2.length - n3 < state2.highWaterMark) {
        doRead = true;
        debug3("length less than watermark", doRead);
      }
      if (state2.ended || state2.reading || state2.destroyed || state2.errored || !state2.constructed) {
        doRead = false;
        debug3("reading, ended or constructing", doRead);
      } else if (doRead) {
        debug3("do read");
        state2.state |= kReading | kSync;
        if (state2.length === 0) state2.state |= kNeedReadable;
        try {
          this._read(state2.highWaterMark);
        } catch (err) {
          errorOrDestroy(this, err);
        }
        state2.state &= ~kSync;
        if (!state2.reading) n3 = howMuchToRead(nOrig, state2);
      }
      let ret;
      if (n3 > 0) ret = fromList(n3, state2);
      else ret = null;
      if (ret === null) {
        state2.needReadable = state2.length <= state2.highWaterMark;
        n3 = 0;
      } else {
        state2.length -= n3;
        if (state2.multiAwaitDrain) {
          state2.awaitDrainWriters.clear();
        } else {
          state2.awaitDrainWriters = null;
        }
      }
      if (state2.length === 0) {
        if (!state2.ended) state2.needReadable = true;
        if (nOrig !== n3 && state2.ended) endReadable(this);
      }
      if (ret !== null && !state2.errorEmitted && !state2.closeEmitted) {
        state2.dataEmitted = true;
        this.emit("data", ret);
      }
      return ret;
    };
    function onEofChunk(stream3, state2) {
      debug3("onEofChunk");
      if (state2.ended) return;
      if (state2.decoder) {
        const chunk = state2.decoder.end();
        if (chunk && chunk.length) {
          state2.buffer.push(chunk);
          state2.length += state2.objectMode ? 1 : chunk.length;
        }
      }
      state2.ended = true;
      if (state2.sync) {
        emitReadable(stream3);
      } else {
        state2.needReadable = false;
        state2.emittedReadable = true;
        emitReadable_(stream3);
      }
    }
    __name(onEofChunk, "onEofChunk");
    function emitReadable(stream3) {
      const state2 = stream3._readableState;
      debug3("emitReadable", state2.needReadable, state2.emittedReadable);
      state2.needReadable = false;
      if (!state2.emittedReadable) {
        debug3("emitReadable", state2.flowing);
        state2.emittedReadable = true;
        process3.nextTick(emitReadable_, stream3);
      }
    }
    __name(emitReadable, "emitReadable");
    function emitReadable_(stream3) {
      const state2 = stream3._readableState;
      debug3("emitReadable_", state2.destroyed, state2.length, state2.ended);
      if (!state2.destroyed && !state2.errored && (state2.length || state2.ended)) {
        stream3.emit("readable");
        state2.emittedReadable = false;
      }
      state2.needReadable = !state2.flowing && !state2.ended && state2.length <= state2.highWaterMark;
      flow(stream3);
    }
    __name(emitReadable_, "emitReadable_");
    function maybeReadMore(stream3, state2) {
      if (!state2.readingMore && state2.constructed) {
        state2.readingMore = true;
        process3.nextTick(maybeReadMore_, stream3, state2);
      }
    }
    __name(maybeReadMore, "maybeReadMore");
    function maybeReadMore_(stream3, state2) {
      while (!state2.reading && !state2.ended && (state2.length < state2.highWaterMark || state2.flowing && state2.length === 0)) {
        const len = state2.length;
        debug3("maybeReadMore read 0");
        stream3.read(0);
        if (len === state2.length)
          break;
      }
      state2.readingMore = false;
    }
    __name(maybeReadMore_, "maybeReadMore_");
    Readable.prototype._read = function(n3) {
      throw new ERR_METHOD_NOT_IMPLEMENTED("_read()");
    };
    Readable.prototype.pipe = function(dest, pipeOpts) {
      const src = this;
      const state2 = this._readableState;
      if (state2.pipes.length === 1) {
        if (!state2.multiAwaitDrain) {
          state2.multiAwaitDrain = true;
          state2.awaitDrainWriters = new SafeSet(state2.awaitDrainWriters ? [state2.awaitDrainWriters] : []);
        }
      }
      state2.pipes.push(dest);
      debug3("pipe count=%d opts=%j", state2.pipes.length, pipeOpts);
      const doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process3.stdout && dest !== process3.stderr;
      const endFn = doEnd ? onend : unpipe;
      if (state2.endEmitted) process3.nextTick(endFn);
      else src.once("end", endFn);
      dest.on("unpipe", onunpipe);
      function onunpipe(readable, unpipeInfo) {
        debug3("onunpipe");
        if (readable === src) {
          if (unpipeInfo && unpipeInfo.hasUnpiped === false) {
            unpipeInfo.hasUnpiped = true;
            cleanup();
          }
        }
      }
      __name(onunpipe, "onunpipe");
      function onend() {
        debug3("onend");
        dest.end();
      }
      __name(onend, "onend");
      let ondrain;
      let cleanedUp = false;
      function cleanup() {
        debug3("cleanup");
        dest.removeListener("close", onclose);
        dest.removeListener("finish", onfinish);
        if (ondrain) {
          dest.removeListener("drain", ondrain);
        }
        dest.removeListener("error", onerror);
        dest.removeListener("unpipe", onunpipe);
        src.removeListener("end", onend);
        src.removeListener("end", unpipe);
        src.removeListener("data", ondata);
        cleanedUp = true;
        if (ondrain && state2.awaitDrainWriters && (!dest._writableState || dest._writableState.needDrain)) ondrain();
      }
      __name(cleanup, "cleanup");
      function pause() {
        if (!cleanedUp) {
          if (state2.pipes.length === 1 && state2.pipes[0] === dest) {
            debug3("false write response, pause", 0);
            state2.awaitDrainWriters = dest;
            state2.multiAwaitDrain = false;
          } else if (state2.pipes.length > 1 && state2.pipes.includes(dest)) {
            debug3("false write response, pause", state2.awaitDrainWriters.size);
            state2.awaitDrainWriters.add(dest);
          }
          src.pause();
        }
        if (!ondrain) {
          ondrain = pipeOnDrain(src, dest);
          dest.on("drain", ondrain);
        }
      }
      __name(pause, "pause");
      src.on("data", ondata);
      function ondata(chunk) {
        debug3("ondata");
        const ret = dest.write(chunk);
        debug3("dest.write", ret);
        if (ret === false) {
          pause();
        }
      }
      __name(ondata, "ondata");
      function onerror(er) {
        debug3("onerror", er);
        unpipe();
        dest.removeListener("error", onerror);
        if (dest.listenerCount("error") === 0) {
          const s3 = dest._writableState || dest._readableState;
          if (s3 && !s3.errorEmitted) {
            errorOrDestroy(dest, er);
          } else {
            dest.emit("error", er);
          }
        }
      }
      __name(onerror, "onerror");
      prependListener(dest, "error", onerror);
      function onclose() {
        dest.removeListener("finish", onfinish);
        unpipe();
      }
      __name(onclose, "onclose");
      dest.once("close", onclose);
      function onfinish() {
        debug3("onfinish");
        dest.removeListener("close", onclose);
        unpipe();
      }
      __name(onfinish, "onfinish");
      dest.once("finish", onfinish);
      function unpipe() {
        debug3("unpipe");
        src.unpipe(dest);
      }
      __name(unpipe, "unpipe");
      dest.emit("pipe", src);
      if (dest.writableNeedDrain === true) {
        pause();
      } else if (!state2.flowing) {
        debug3("pipe resume");
        src.resume();
      }
      return dest;
    };
    function pipeOnDrain(src, dest) {
      return /* @__PURE__ */ __name(function pipeOnDrainFunctionResult() {
        const state2 = src._readableState;
        if (state2.awaitDrainWriters === dest) {
          debug3("pipeOnDrain", 1);
          state2.awaitDrainWriters = null;
        } else if (state2.multiAwaitDrain) {
          debug3("pipeOnDrain", state2.awaitDrainWriters.size);
          state2.awaitDrainWriters.delete(dest);
        }
        if ((!state2.awaitDrainWriters || state2.awaitDrainWriters.size === 0) && src.listenerCount("data")) {
          src.resume();
        }
      }, "pipeOnDrainFunctionResult");
    }
    __name(pipeOnDrain, "pipeOnDrain");
    Readable.prototype.unpipe = function(dest) {
      const state2 = this._readableState;
      const unpipeInfo = {
        hasUnpiped: false
      };
      if (state2.pipes.length === 0) return this;
      if (!dest) {
        const dests = state2.pipes;
        state2.pipes = [];
        this.pause();
        for (let i3 = 0; i3 < dests.length; i3++)
          dests[i3].emit("unpipe", this, {
            hasUnpiped: false
          });
        return this;
      }
      const index = ArrayPrototypeIndexOf(state2.pipes, dest);
      if (index === -1) return this;
      state2.pipes.splice(index, 1);
      if (state2.pipes.length === 0) this.pause();
      dest.emit("unpipe", this, unpipeInfo);
      return this;
    };
    Readable.prototype.on = function(ev, fn) {
      const res = Stream2.prototype.on.call(this, ev, fn);
      const state2 = this._readableState;
      if (ev === "data") {
        state2.readableListening = this.listenerCount("readable") > 0;
        if (state2.flowing !== false) this.resume();
      } else if (ev === "readable") {
        if (!state2.endEmitted && !state2.readableListening) {
          state2.readableListening = state2.needReadable = true;
          state2.flowing = false;
          state2.emittedReadable = false;
          debug3("on readable", state2.length, state2.reading);
          if (state2.length) {
            emitReadable(this);
          } else if (!state2.reading) {
            process3.nextTick(nReadingNextTick, this);
          }
        }
      }
      return res;
    };
    Readable.prototype.addListener = Readable.prototype.on;
    Readable.prototype.removeListener = function(ev, fn) {
      const res = Stream2.prototype.removeListener.call(this, ev, fn);
      if (ev === "readable") {
        process3.nextTick(updateReadableListening, this);
      }
      return res;
    };
    Readable.prototype.off = Readable.prototype.removeListener;
    Readable.prototype.removeAllListeners = function(ev) {
      const res = Stream2.prototype.removeAllListeners.apply(this, arguments);
      if (ev === "readable" || ev === void 0) {
        process3.nextTick(updateReadableListening, this);
      }
      return res;
    };
    function updateReadableListening(self2) {
      const state2 = self2._readableState;
      state2.readableListening = self2.listenerCount("readable") > 0;
      if (state2.resumeScheduled && state2[kPaused] === false) {
        state2.flowing = true;
      } else if (self2.listenerCount("data") > 0) {
        self2.resume();
      } else if (!state2.readableListening) {
        state2.flowing = null;
      }
    }
    __name(updateReadableListening, "updateReadableListening");
    function nReadingNextTick(self2) {
      debug3("readable nexttick read 0");
      self2.read(0);
    }
    __name(nReadingNextTick, "nReadingNextTick");
    Readable.prototype.resume = function() {
      const state2 = this._readableState;
      if (!state2.flowing) {
        debug3("resume");
        state2.flowing = !state2.readableListening;
        resume(this, state2);
      }
      state2[kPaused] = false;
      return this;
    };
    function resume(stream3, state2) {
      if (!state2.resumeScheduled) {
        state2.resumeScheduled = true;
        process3.nextTick(resume_, stream3, state2);
      }
    }
    __name(resume, "resume");
    function resume_(stream3, state2) {
      debug3("resume", state2.reading);
      if (!state2.reading) {
        stream3.read(0);
      }
      state2.resumeScheduled = false;
      stream3.emit("resume");
      flow(stream3);
      if (state2.flowing && !state2.reading) stream3.read(0);
    }
    __name(resume_, "resume_");
    Readable.prototype.pause = function() {
      debug3("call pause flowing=%j", this._readableState.flowing);
      if (this._readableState.flowing !== false) {
        debug3("pause");
        this._readableState.flowing = false;
        this.emit("pause");
      }
      this._readableState[kPaused] = true;
      return this;
    };
    function flow(stream3) {
      const state2 = stream3._readableState;
      debug3("flow", state2.flowing);
      while (state2.flowing && stream3.read() !== null) ;
    }
    __name(flow, "flow");
    Readable.prototype.wrap = function(stream3) {
      let paused = false;
      stream3.on("data", (chunk) => {
        if (!this.push(chunk) && stream3.pause) {
          paused = true;
          stream3.pause();
        }
      });
      stream3.on("end", () => {
        this.push(null);
      });
      stream3.on("error", (err) => {
        errorOrDestroy(this, err);
      });
      stream3.on("close", () => {
        this.destroy();
      });
      stream3.on("destroy", () => {
        this.destroy();
      });
      this._read = () => {
        if (paused && stream3.resume) {
          paused = false;
          stream3.resume();
        }
      };
      const streamKeys = ObjectKeys(stream3);
      for (let j3 = 1; j3 < streamKeys.length; j3++) {
        const i3 = streamKeys[j3];
        if (this[i3] === void 0 && typeof stream3[i3] === "function") {
          this[i3] = stream3[i3].bind(stream3);
        }
      }
      return this;
    };
    Readable.prototype[SymbolAsyncIterator] = function() {
      return streamToAsyncIterator(this);
    };
    Readable.prototype.iterator = function(options) {
      if (options !== void 0) {
        validateObject(options, "options");
      }
      return streamToAsyncIterator(this, options);
    };
    function streamToAsyncIterator(stream3, options) {
      if (typeof stream3.read !== "function") {
        stream3 = Readable.wrap(stream3, {
          objectMode: true
        });
      }
      const iter = createAsyncIterator(stream3, options);
      iter.stream = stream3;
      return iter;
    }
    __name(streamToAsyncIterator, "streamToAsyncIterator");
    async function* createAsyncIterator(stream3, options) {
      let callback = nop;
      function next(resolve13) {
        if (this === stream3) {
          callback();
          callback = nop;
        } else {
          callback = resolve13;
        }
      }
      __name(next, "next");
      stream3.on("readable", next);
      let error5;
      const cleanup = eos(
        stream3,
        {
          writable: false
        },
        (err) => {
          error5 = err ? aggregateTwoErrors(error5, err) : null;
          callback();
          callback = nop;
        }
      );
      try {
        while (true) {
          const chunk = stream3.destroyed ? null : stream3.read();
          if (chunk !== null) {
            yield chunk;
          } else if (error5) {
            throw error5;
          } else if (error5 === null) {
            return;
          } else {
            await new Promise2(next);
          }
        }
      } catch (err) {
        error5 = aggregateTwoErrors(error5, err);
        throw error5;
      } finally {
        if ((error5 || (options === null || options === void 0 ? void 0 : options.destroyOnReturn) !== false) && (error5 === void 0 || stream3._readableState.autoDestroy)) {
          destroyImpl.destroyer(stream3, null);
        } else {
          stream3.off("readable", next);
          cleanup();
        }
      }
    }
    __name(createAsyncIterator, "createAsyncIterator");
    ObjectDefineProperties(Readable.prototype, {
      readable: {
        __proto__: null,
        get() {
          const r3 = this._readableState;
          return !!r3 && r3.readable !== false && !r3.destroyed && !r3.errorEmitted && !r3.endEmitted;
        },
        set(val) {
          if (this._readableState) {
            this._readableState.readable = !!val;
          }
        }
      },
      readableDidRead: {
        __proto__: null,
        enumerable: false,
        get: /* @__PURE__ */ __name(function() {
          return this._readableState.dataEmitted;
        }, "get")
      },
      readableAborted: {
        __proto__: null,
        enumerable: false,
        get: /* @__PURE__ */ __name(function() {
          return !!(this._readableState.readable !== false && (this._readableState.destroyed || this._readableState.errored) && !this._readableState.endEmitted);
        }, "get")
      },
      readableHighWaterMark: {
        __proto__: null,
        enumerable: false,
        get: /* @__PURE__ */ __name(function() {
          return this._readableState.highWaterMark;
        }, "get")
      },
      readableBuffer: {
        __proto__: null,
        enumerable: false,
        get: /* @__PURE__ */ __name(function() {
          return this._readableState && this._readableState.buffer;
        }, "get")
      },
      readableFlowing: {
        __proto__: null,
        enumerable: false,
        get: /* @__PURE__ */ __name(function() {
          return this._readableState.flowing;
        }, "get"),
        set: /* @__PURE__ */ __name(function(state2) {
          if (this._readableState) {
            this._readableState.flowing = state2;
          }
        }, "set")
      },
      readableLength: {
        __proto__: null,
        enumerable: false,
        get() {
          return this._readableState.length;
        }
      },
      readableObjectMode: {
        __proto__: null,
        enumerable: false,
        get() {
          return this._readableState ? this._readableState.objectMode : false;
        }
      },
      readableEncoding: {
        __proto__: null,
        enumerable: false,
        get() {
          return this._readableState ? this._readableState.encoding : null;
        }
      },
      errored: {
        __proto__: null,
        enumerable: false,
        get() {
          return this._readableState ? this._readableState.errored : null;
        }
      },
      closed: {
        __proto__: null,
        get() {
          return this._readableState ? this._readableState.closed : false;
        }
      },
      destroyed: {
        __proto__: null,
        enumerable: false,
        get() {
          return this._readableState ? this._readableState.destroyed : false;
        },
        set(value) {
          if (!this._readableState) {
            return;
          }
          this._readableState.destroyed = value;
        }
      },
      readableEnded: {
        __proto__: null,
        enumerable: false,
        get() {
          return this._readableState ? this._readableState.endEmitted : false;
        }
      }
    });
    ObjectDefineProperties(ReadableState.prototype, {
      // Legacy getter for `pipesCount`.
      pipesCount: {
        __proto__: null,
        get() {
          return this.pipes.length;
        }
      },
      // Legacy property for `paused`.
      paused: {
        __proto__: null,
        get() {
          return this[kPaused] !== false;
        },
        set(value) {
          this[kPaused] = !!value;
        }
      }
    });
    Readable._fromList = fromList;
    function fromList(n3, state2) {
      if (state2.length === 0) return null;
      let ret;
      if (state2.objectMode) ret = state2.buffer.shift();
      else if (!n3 || n3 >= state2.length) {
        if (state2.decoder) ret = state2.buffer.join("");
        else if (state2.buffer.length === 1) ret = state2.buffer.first();
        else ret = state2.buffer.concat(state2.length);
        state2.buffer.clear();
      } else {
        ret = state2.buffer.consume(n3, state2.decoder);
      }
      return ret;
    }
    __name(fromList, "fromList");
    function endReadable(stream3) {
      const state2 = stream3._readableState;
      debug3("endReadable", state2.endEmitted);
      if (!state2.endEmitted) {
        state2.ended = true;
        process3.nextTick(endReadableNT, state2, stream3);
      }
    }
    __name(endReadable, "endReadable");
    function endReadableNT(state2, stream3) {
      debug3("endReadableNT", state2.endEmitted, state2.length);
      if (!state2.errored && !state2.closeEmitted && !state2.endEmitted && state2.length === 0) {
        state2.endEmitted = true;
        stream3.emit("end");
        if (stream3.writable && stream3.allowHalfOpen === false) {
          process3.nextTick(endWritableNT, stream3);
        } else if (state2.autoDestroy) {
          const wState = stream3._writableState;
          const autoDestroy = !wState || wState.autoDestroy && // We don't expect the writable to ever 'finish'
          // if writable is explicitly set to false.
          (wState.finished || wState.writable === false);
          if (autoDestroy) {
            stream3.destroy();
          }
        }
      }
    }
    __name(endReadableNT, "endReadableNT");
    function endWritableNT(stream3) {
      const writable = stream3.writable && !stream3.writableEnded && !stream3.destroyed;
      if (writable) {
        stream3.end();
      }
    }
    __name(endWritableNT, "endWritableNT");
    Readable.from = function(iterable, opts) {
      return from(Readable, iterable, opts);
    };
    var webStreamsAdapters;
    function lazyWebStreams() {
      if (webStreamsAdapters === void 0) webStreamsAdapters = {};
      return webStreamsAdapters;
    }
    __name(lazyWebStreams, "lazyWebStreams");
    Readable.fromWeb = function(readableStream, options) {
      return lazyWebStreams().newStreamReadableFromReadableStream(readableStream, options);
    };
    Readable.toWeb = function(streamReadable, options) {
      return lazyWebStreams().newReadableStreamFromStreamReadable(streamReadable, options);
    };
    Readable.wrap = function(src, options) {
      var _ref, _src$readableObjectMo;
      return new Readable({
        objectMode: (_ref = (_src$readableObjectMo = src.readableObjectMode) !== null && _src$readableObjectMo !== void 0 ? _src$readableObjectMo : src.objectMode) !== null && _ref !== void 0 ? _ref : true,
        ...options,
        destroy(err, callback) {
          destroyImpl.destroyer(src, err);
          callback(err);
        }
      }).wrap(src);
    };
  }
});

// ../../node_modules/archiver-utils/node_modules/readable-stream/lib/internal/streams/writable.js
var require_writable = __commonJS({
  "../../node_modules/archiver-utils/node_modules/readable-stream/lib/internal/streams/writable.js"(exports2, module2) {
    "use strict";
    var process3 = require_process();
    var {
      ArrayPrototypeSlice,
      Error: Error2,
      FunctionPrototypeSymbolHasInstance,
      ObjectDefineProperty,
      ObjectDefineProperties,
      ObjectSetPrototypeOf,
      StringPrototypeToLowerCase,
      Symbol: Symbol2,
      SymbolHasInstance
    } = require_primordials();
    module2.exports = Writable3;
    Writable3.WritableState = WritableState;
    var { EventEmitter: EE } = require("events");
    var Stream2 = require_legacy().Stream;
    var { Buffer: Buffer2 } = require("buffer");
    var destroyImpl = require_destroy2();
    var { addAbortSignal } = require_add_abort_signal();
    var { getHighWaterMark, getDefaultHighWaterMark } = require_state();
    var {
      ERR_INVALID_ARG_TYPE,
      ERR_METHOD_NOT_IMPLEMENTED,
      ERR_MULTIPLE_CALLBACK,
      ERR_STREAM_CANNOT_PIPE,
      ERR_STREAM_DESTROYED,
      ERR_STREAM_ALREADY_FINISHED,
      ERR_STREAM_NULL_VALUES,
      ERR_STREAM_WRITE_AFTER_END,
      ERR_UNKNOWN_ENCODING
    } = require_errors().codes;
    var { errorOrDestroy } = destroyImpl;
    ObjectSetPrototypeOf(Writable3.prototype, Stream2.prototype);
    ObjectSetPrototypeOf(Writable3, Stream2);
    function nop() {
    }
    __name(nop, "nop");
    var kOnFinished = Symbol2("kOnFinished");
    function WritableState(options, stream3, isDuplex) {
      if (typeof isDuplex !== "boolean") isDuplex = stream3 instanceof require_duplex();
      this.objectMode = !!(options && options.objectMode);
      if (isDuplex) this.objectMode = this.objectMode || !!(options && options.writableObjectMode);
      this.highWaterMark = options ? getHighWaterMark(this, options, "writableHighWaterMark", isDuplex) : getDefaultHighWaterMark(false);
      this.finalCalled = false;
      this.needDrain = false;
      this.ending = false;
      this.ended = false;
      this.finished = false;
      this.destroyed = false;
      const noDecode = !!(options && options.decodeStrings === false);
      this.decodeStrings = !noDecode;
      this.defaultEncoding = options && options.defaultEncoding || "utf8";
      this.length = 0;
      this.writing = false;
      this.corked = 0;
      this.sync = true;
      this.bufferProcessing = false;
      this.onwrite = onwrite.bind(void 0, stream3);
      this.writecb = null;
      this.writelen = 0;
      this.afterWriteTickInfo = null;
      resetBuffer(this);
      this.pendingcb = 0;
      this.constructed = true;
      this.prefinished = false;
      this.errorEmitted = false;
      this.emitClose = !options || options.emitClose !== false;
      this.autoDestroy = !options || options.autoDestroy !== false;
      this.errored = null;
      this.closed = false;
      this.closeEmitted = false;
      this[kOnFinished] = [];
    }
    __name(WritableState, "WritableState");
    function resetBuffer(state2) {
      state2.buffered = [];
      state2.bufferedIndex = 0;
      state2.allBuffers = true;
      state2.allNoop = true;
    }
    __name(resetBuffer, "resetBuffer");
    WritableState.prototype.getBuffer = /* @__PURE__ */ __name(function getBuffer() {
      return ArrayPrototypeSlice(this.buffered, this.bufferedIndex);
    }, "getBuffer");
    ObjectDefineProperty(WritableState.prototype, "bufferedRequestCount", {
      __proto__: null,
      get() {
        return this.buffered.length - this.bufferedIndex;
      }
    });
    function Writable3(options) {
      const isDuplex = this instanceof require_duplex();
      if (!isDuplex && !FunctionPrototypeSymbolHasInstance(Writable3, this)) return new Writable3(options);
      this._writableState = new WritableState(options, this, isDuplex);
      if (options) {
        if (typeof options.write === "function") this._write = options.write;
        if (typeof options.writev === "function") this._writev = options.writev;
        if (typeof options.destroy === "function") this._destroy = options.destroy;
        if (typeof options.final === "function") this._final = options.final;
        if (typeof options.construct === "function") this._construct = options.construct;
        if (options.signal) addAbortSignal(options.signal, this);
      }
      Stream2.call(this, options);
      destroyImpl.construct(this, () => {
        const state2 = this._writableState;
        if (!state2.writing) {
          clearBuffer(this, state2);
        }
        finishMaybe(this, state2);
      });
    }
    __name(Writable3, "Writable");
    ObjectDefineProperty(Writable3, SymbolHasInstance, {
      __proto__: null,
      value: /* @__PURE__ */ __name(function(object) {
        if (FunctionPrototypeSymbolHasInstance(this, object)) return true;
        if (this !== Writable3) return false;
        return object && object._writableState instanceof WritableState;
      }, "value")
    });
    Writable3.prototype.pipe = function() {
      errorOrDestroy(this, new ERR_STREAM_CANNOT_PIPE());
    };
    function _write(stream3, chunk, encoding, cb) {
      const state2 = stream3._writableState;
      if (typeof encoding === "function") {
        cb = encoding;
        encoding = state2.defaultEncoding;
      } else {
        if (!encoding) encoding = state2.defaultEncoding;
        else if (encoding !== "buffer" && !Buffer2.isEncoding(encoding)) throw new ERR_UNKNOWN_ENCODING(encoding);
        if (typeof cb !== "function") cb = nop;
      }
      if (chunk === null) {
        throw new ERR_STREAM_NULL_VALUES();
      } else if (!state2.objectMode) {
        if (typeof chunk === "string") {
          if (state2.decodeStrings !== false) {
            chunk = Buffer2.from(chunk, encoding);
            encoding = "buffer";
          }
        } else if (chunk instanceof Buffer2) {
          encoding = "buffer";
        } else if (Stream2._isUint8Array(chunk)) {
          chunk = Stream2._uint8ArrayToBuffer(chunk);
          encoding = "buffer";
        } else {
          throw new ERR_INVALID_ARG_TYPE("chunk", ["string", "Buffer", "Uint8Array"], chunk);
        }
      }
      let err;
      if (state2.ending) {
        err = new ERR_STREAM_WRITE_AFTER_END();
      } else if (state2.destroyed) {
        err = new ERR_STREAM_DESTROYED("write");
      }
      if (err) {
        process3.nextTick(cb, err);
        errorOrDestroy(stream3, err, true);
        return err;
      }
      state2.pendingcb++;
      return writeOrBuffer(stream3, state2, chunk, encoding, cb);
    }
    __name(_write, "_write");
    Writable3.prototype.write = function(chunk, encoding, cb) {
      return _write(this, chunk, encoding, cb) === true;
    };
    Writable3.prototype.cork = function() {
      this._writableState.corked++;
    };
    Writable3.prototype.uncork = function() {
      const state2 = this._writableState;
      if (state2.corked) {
        state2.corked--;
        if (!state2.writing) clearBuffer(this, state2);
      }
    };
    Writable3.prototype.setDefaultEncoding = /* @__PURE__ */ __name(function setDefaultEncoding(encoding) {
      if (typeof encoding === "string") encoding = StringPrototypeToLowerCase(encoding);
      if (!Buffer2.isEncoding(encoding)) throw new ERR_UNKNOWN_ENCODING(encoding);
      this._writableState.defaultEncoding = encoding;
      return this;
    }, "setDefaultEncoding");
    function writeOrBuffer(stream3, state2, chunk, encoding, callback) {
      const len = state2.objectMode ? 1 : chunk.length;
      state2.length += len;
      const ret = state2.length < state2.highWaterMark;
      if (!ret) state2.needDrain = true;
      if (state2.writing || state2.corked || state2.errored || !state2.constructed) {
        state2.buffered.push({
          chunk,
          encoding,
          callback
        });
        if (state2.allBuffers && encoding !== "buffer") {
          state2.allBuffers = false;
        }
        if (state2.allNoop && callback !== nop) {
          state2.allNoop = false;
        }
      } else {
        state2.writelen = len;
        state2.writecb = callback;
        state2.writing = true;
        state2.sync = true;
        stream3._write(chunk, encoding, state2.onwrite);
        state2.sync = false;
      }
      return ret && !state2.errored && !state2.destroyed;
    }
    __name(writeOrBuffer, "writeOrBuffer");
    function doWrite(stream3, state2, writev, len, chunk, encoding, cb) {
      state2.writelen = len;
      state2.writecb = cb;
      state2.writing = true;
      state2.sync = true;
      if (state2.destroyed) state2.onwrite(new ERR_STREAM_DESTROYED("write"));
      else if (writev) stream3._writev(chunk, state2.onwrite);
      else stream3._write(chunk, encoding, state2.onwrite);
      state2.sync = false;
    }
    __name(doWrite, "doWrite");
    function onwriteError(stream3, state2, er, cb) {
      --state2.pendingcb;
      cb(er);
      errorBuffer(state2);
      errorOrDestroy(stream3, er);
    }
    __name(onwriteError, "onwriteError");
    function onwrite(stream3, er) {
      const state2 = stream3._writableState;
      const sync2 = state2.sync;
      const cb = state2.writecb;
      if (typeof cb !== "function") {
        errorOrDestroy(stream3, new ERR_MULTIPLE_CALLBACK());
        return;
      }
      state2.writing = false;
      state2.writecb = null;
      state2.length -= state2.writelen;
      state2.writelen = 0;
      if (er) {
        er.stack;
        if (!state2.errored) {
          state2.errored = er;
        }
        if (stream3._readableState && !stream3._readableState.errored) {
          stream3._readableState.errored = er;
        }
        if (sync2) {
          process3.nextTick(onwriteError, stream3, state2, er, cb);
        } else {
          onwriteError(stream3, state2, er, cb);
        }
      } else {
        if (state2.buffered.length > state2.bufferedIndex) {
          clearBuffer(stream3, state2);
        }
        if (sync2) {
          if (state2.afterWriteTickInfo !== null && state2.afterWriteTickInfo.cb === cb) {
            state2.afterWriteTickInfo.count++;
          } else {
            state2.afterWriteTickInfo = {
              count: 1,
              cb,
              stream: stream3,
              state: state2
            };
            process3.nextTick(afterWriteTick, state2.afterWriteTickInfo);
          }
        } else {
          afterWrite(stream3, state2, 1, cb);
        }
      }
    }
    __name(onwrite, "onwrite");
    function afterWriteTick({ stream: stream3, state: state2, count, cb }) {
      state2.afterWriteTickInfo = null;
      return afterWrite(stream3, state2, count, cb);
    }
    __name(afterWriteTick, "afterWriteTick");
    function afterWrite(stream3, state2, count, cb) {
      const needDrain = !state2.ending && !stream3.destroyed && state2.length === 0 && state2.needDrain;
      if (needDrain) {
        state2.needDrain = false;
        stream3.emit("drain");
      }
      while (count-- > 0) {
        state2.pendingcb--;
        cb();
      }
      if (state2.destroyed) {
        errorBuffer(state2);
      }
      finishMaybe(stream3, state2);
    }
    __name(afterWrite, "afterWrite");
    function errorBuffer(state2) {
      if (state2.writing) {
        return;
      }
      for (let n3 = state2.bufferedIndex; n3 < state2.buffered.length; ++n3) {
        var _state$errored;
        const { chunk, callback } = state2.buffered[n3];
        const len = state2.objectMode ? 1 : chunk.length;
        state2.length -= len;
        callback(
          (_state$errored = state2.errored) !== null && _state$errored !== void 0 ? _state$errored : new ERR_STREAM_DESTROYED("write")
        );
      }
      const onfinishCallbacks = state2[kOnFinished].splice(0);
      for (let i3 = 0; i3 < onfinishCallbacks.length; i3++) {
        var _state$errored2;
        onfinishCallbacks[i3](
          (_state$errored2 = state2.errored) !== null && _state$errored2 !== void 0 ? _state$errored2 : new ERR_STREAM_DESTROYED("end")
        );
      }
      resetBuffer(state2);
    }
    __name(errorBuffer, "errorBuffer");
    function clearBuffer(stream3, state2) {
      if (state2.corked || state2.bufferProcessing || state2.destroyed || !state2.constructed) {
        return;
      }
      const { buffered, bufferedIndex, objectMode } = state2;
      const bufferedLength = buffered.length - bufferedIndex;
      if (!bufferedLength) {
        return;
      }
      let i3 = bufferedIndex;
      state2.bufferProcessing = true;
      if (bufferedLength > 1 && stream3._writev) {
        state2.pendingcb -= bufferedLength - 1;
        const callback = state2.allNoop ? nop : (err) => {
          for (let n3 = i3; n3 < buffered.length; ++n3) {
            buffered[n3].callback(err);
          }
        };
        const chunks2 = state2.allNoop && i3 === 0 ? buffered : ArrayPrototypeSlice(buffered, i3);
        chunks2.allBuffers = state2.allBuffers;
        doWrite(stream3, state2, true, state2.length, chunks2, "", callback);
        resetBuffer(state2);
      } else {
        do {
          const { chunk, encoding, callback } = buffered[i3];
          buffered[i3++] = null;
          const len = objectMode ? 1 : chunk.length;
          doWrite(stream3, state2, false, len, chunk, encoding, callback);
        } while (i3 < buffered.length && !state2.writing);
        if (i3 === buffered.length) {
          resetBuffer(state2);
        } else if (i3 > 256) {
          buffered.splice(0, i3);
          state2.bufferedIndex = 0;
        } else {
          state2.bufferedIndex = i3;
        }
      }
      state2.bufferProcessing = false;
    }
    __name(clearBuffer, "clearBuffer");
    Writable3.prototype._write = function(chunk, encoding, cb) {
      if (this._writev) {
        this._writev(
          [
            {
              chunk,
              encoding
            }
          ],
          cb
        );
      } else {
        throw new ERR_METHOD_NOT_IMPLEMENTED("_write()");
      }
    };
    Writable3.prototype._writev = null;
    Writable3.prototype.end = function(chunk, encoding, cb) {
      const state2 = this._writableState;
      if (typeof chunk === "function") {
        cb = chunk;
        chunk = null;
        encoding = null;
      } else if (typeof encoding === "function") {
        cb = encoding;
        encoding = null;
      }
      let err;
      if (chunk !== null && chunk !== void 0) {
        const ret = _write(this, chunk, encoding);
        if (ret instanceof Error2) {
          err = ret;
        }
      }
      if (state2.corked) {
        state2.corked = 1;
        this.uncork();
      }
      if (err) {
      } else if (!state2.errored && !state2.ending) {
        state2.ending = true;
        finishMaybe(this, state2, true);
        state2.ended = true;
      } else if (state2.finished) {
        err = new ERR_STREAM_ALREADY_FINISHED("end");
      } else if (state2.destroyed) {
        err = new ERR_STREAM_DESTROYED("end");
      }
      if (typeof cb === "function") {
        if (err || state2.finished) {
          process3.nextTick(cb, err);
        } else {
          state2[kOnFinished].push(cb);
        }
      }
      return this;
    };
    function needFinish(state2) {
      return state2.ending && !state2.destroyed && state2.constructed && state2.length === 0 && !state2.errored && state2.buffered.length === 0 && !state2.finished && !state2.writing && !state2.errorEmitted && !state2.closeEmitted;
    }
    __name(needFinish, "needFinish");
    function callFinal(stream3, state2) {
      let called = false;
      function onFinish(err) {
        if (called) {
          errorOrDestroy(stream3, err !== null && err !== void 0 ? err : ERR_MULTIPLE_CALLBACK());
          return;
        }
        called = true;
        state2.pendingcb--;
        if (err) {
          const onfinishCallbacks = state2[kOnFinished].splice(0);
          for (let i3 = 0; i3 < onfinishCallbacks.length; i3++) {
            onfinishCallbacks[i3](err);
          }
          errorOrDestroy(stream3, err, state2.sync);
        } else if (needFinish(state2)) {
          state2.prefinished = true;
          stream3.emit("prefinish");
          state2.pendingcb++;
          process3.nextTick(finish, stream3, state2);
        }
      }
      __name(onFinish, "onFinish");
      state2.sync = true;
      state2.pendingcb++;
      try {
        stream3._final(onFinish);
      } catch (err) {
        onFinish(err);
      }
      state2.sync = false;
    }
    __name(callFinal, "callFinal");
    function prefinish(stream3, state2) {
      if (!state2.prefinished && !state2.finalCalled) {
        if (typeof stream3._final === "function" && !state2.destroyed) {
          state2.finalCalled = true;
          callFinal(stream3, state2);
        } else {
          state2.prefinished = true;
          stream3.emit("prefinish");
        }
      }
    }
    __name(prefinish, "prefinish");
    function finishMaybe(stream3, state2, sync2) {
      if (needFinish(state2)) {
        prefinish(stream3, state2);
        if (state2.pendingcb === 0) {
          if (sync2) {
            state2.pendingcb++;
            process3.nextTick(
              (stream4, state3) => {
                if (needFinish(state3)) {
                  finish(stream4, state3);
                } else {
                  state3.pendingcb--;
                }
              },
              stream3,
              state2
            );
          } else if (needFinish(state2)) {
            state2.pendingcb++;
            finish(stream3, state2);
          }
        }
      }
    }
    __name(finishMaybe, "finishMaybe");
    function finish(stream3, state2) {
      state2.pendingcb--;
      state2.finished = true;
      const onfinishCallbacks = state2[kOnFinished].splice(0);
      for (let i3 = 0; i3 < onfinishCallbacks.length; i3++) {
        onfinishCallbacks[i3]();
      }
      stream3.emit("finish");
      if (state2.autoDestroy) {
        const rState = stream3._readableState;
        const autoDestroy = !rState || rState.autoDestroy && // We don't expect the readable to ever 'end'
        // if readable is explicitly set to false.
        (rState.endEmitted || rState.readable === false);
        if (autoDestroy) {
          stream3.destroy();
        }
      }
    }
    __name(finish, "finish");
    ObjectDefineProperties(Writable3.prototype, {
      closed: {
        __proto__: null,
        get() {
          return this._writableState ? this._writableState.closed : false;
        }
      },
      destroyed: {
        __proto__: null,
        get() {
          return this._writableState ? this._writableState.destroyed : false;
        },
        set(value) {
          if (this._writableState) {
            this._writableState.destroyed = value;
          }
        }
      },
      writable: {
        __proto__: null,
        get() {
          const w3 = this._writableState;
          return !!w3 && w3.writable !== false && !w3.destroyed && !w3.errored && !w3.ending && !w3.ended;
        },
        set(val) {
          if (this._writableState) {
            this._writableState.writable = !!val;
          }
        }
      },
      writableFinished: {
        __proto__: null,
        get() {
          return this._writableState ? this._writableState.finished : false;
        }
      },
      writableObjectMode: {
        __proto__: null,
        get() {
          return this._writableState ? this._writableState.objectMode : false;
        }
      },
      writableBuffer: {
        __proto__: null,
        get() {
          return this._writableState && this._writableState.getBuffer();
        }
      },
      writableEnded: {
        __proto__: null,
        get() {
          return this._writableState ? this._writableState.ending : false;
        }
      },
      writableNeedDrain: {
        __proto__: null,
        get() {
          const wState = this._writableState;
          if (!wState) return false;
          return !wState.destroyed && !wState.ending && wState.needDrain;
        }
      },
      writableHighWaterMark: {
        __proto__: null,
        get() {
          return this._writableState && this._writableState.highWaterMark;
        }
      },
      writableCorked: {
        __proto__: null,
        get() {
          return this._writableState ? this._writableState.corked : 0;
        }
      },
      writableLength: {
        __proto__: null,
        get() {
          return this._writableState && this._writableState.length;
        }
      },
      errored: {
        __proto__: null,
        enumerable: false,
        get() {
          return this._writableState ? this._writableState.errored : null;
        }
      },
      writableAborted: {
        __proto__: null,
        enumerable: false,
        get: /* @__PURE__ */ __name(function() {
          return !!(this._writableState.writable !== false && (this._writableState.destroyed || this._writableState.errored) && !this._writableState.finished);
        }, "get")
      }
    });
    var destroy = destroyImpl.destroy;
    Writable3.prototype.destroy = function(err, cb) {
      const state2 = this._writableState;
      if (!state2.destroyed && (state2.bufferedIndex < state2.buffered.length || state2[kOnFinished].length)) {
        process3.nextTick(errorBuffer, state2);
      }
      destroy.call(this, err, cb);
      return this;
    };
    Writable3.prototype._undestroy = destroyImpl.undestroy;
    Writable3.prototype._destroy = function(err, cb) {
      cb(err);
    };
    Writable3.prototype[EE.captureRejectionSymbol] = function(err) {
      this.destroy(err);
    };
    var webStreamsAdapters;
    function lazyWebStreams() {
      if (webStreamsAdapters === void 0) webStreamsAdapters = {};
      return webStreamsAdapters;
    }
    __name(lazyWebStreams, "lazyWebStreams");
    Writable3.fromWeb = function(writableStream, options) {
      return lazyWebStreams().newStreamWritableFromWritableStream(writableStream, options);
    };
    Writable3.toWeb = function(streamWritable) {
      return lazyWebStreams().newWritableStreamFromStreamWritable(streamWritable);
    };
  }
});

// ../../node_modules/archiver-utils/node_modules/readable-stream/lib/internal/streams/duplexify.js
var require_duplexify = __commonJS({
  "../../node_modules/archiver-utils/node_modules/readable-stream/lib/internal/streams/duplexify.js"(exports2, module2) {
    var process3 = require_process();
    var bufferModule = require("buffer");
    var {
      isReadable: isReadable2,
      isWritable: isWritable2,
      isIterable,
      isNodeStream,
      isReadableNodeStream,
      isWritableNodeStream,
      isDuplexNodeStream,
      isReadableStream: isReadableStream2,
      isWritableStream
    } = require_utils2();
    var eos = require_end_of_stream();
    var {
      AbortError,
      codes: { ERR_INVALID_ARG_TYPE, ERR_INVALID_RETURN_VALUE }
    } = require_errors();
    var { destroyer } = require_destroy2();
    var Duplex = require_duplex();
    var Readable = require_readable2();
    var Writable3 = require_writable();
    var { createDeferredPromise } = require_util2();
    var from = require_from();
    var Blob2 = globalThis.Blob || bufferModule.Blob;
    var isBlob2 = typeof Blob2 !== "undefined" ? /* @__PURE__ */ __name(function isBlob3(b3) {
      return b3 instanceof Blob2;
    }, "isBlob") : /* @__PURE__ */ __name(function isBlob3(b3) {
      return false;
    }, "isBlob");
    var AbortController2 = globalThis.AbortController || require_abort_controller().AbortController;
    var { FunctionPrototypeCall } = require_primordials();
    var Duplexify = class extends Duplex {
      static {
        __name(this, "Duplexify");
      }
      constructor(options) {
        super(options);
        if ((options === null || options === void 0 ? void 0 : options.readable) === false) {
          this._readableState.readable = false;
          this._readableState.ended = true;
          this._readableState.endEmitted = true;
        }
        if ((options === null || options === void 0 ? void 0 : options.writable) === false) {
          this._writableState.writable = false;
          this._writableState.ending = true;
          this._writableState.ended = true;
          this._writableState.finished = true;
        }
      }
    };
    module2.exports = /* @__PURE__ */ __name(function duplexify(body, name) {
      if (isDuplexNodeStream(body)) {
        return body;
      }
      if (isReadableNodeStream(body)) {
        return _duplexify({
          readable: body
        });
      }
      if (isWritableNodeStream(body)) {
        return _duplexify({
          writable: body
        });
      }
      if (isNodeStream(body)) {
        return _duplexify({
          writable: false,
          readable: false
        });
      }
      if (isReadableStream2(body)) {
        return _duplexify({
          readable: Readable.fromWeb(body)
        });
      }
      if (isWritableStream(body)) {
        return _duplexify({
          writable: Writable3.fromWeb(body)
        });
      }
      if (typeof body === "function") {
        const { value, write, final, destroy } = fromAsyncGen(body);
        if (isIterable(value)) {
          return from(Duplexify, value, {
            // TODO (ronag): highWaterMark?
            objectMode: true,
            write,
            final,
            destroy
          });
        }
        const then2 = value === null || value === void 0 ? void 0 : value.then;
        if (typeof then2 === "function") {
          let d3;
          const promise = FunctionPrototypeCall(
            then2,
            value,
            (val) => {
              if (val != null) {
                throw new ERR_INVALID_RETURN_VALUE("nully", "body", val);
              }
            },
            (err) => {
              destroyer(d3, err);
            }
          );
          return d3 = new Duplexify({
            // TODO (ronag): highWaterMark?
            objectMode: true,
            readable: false,
            write,
            final(cb) {
              final(async () => {
                try {
                  await promise;
                  process3.nextTick(cb, null);
                } catch (err) {
                  process3.nextTick(cb, err);
                }
              });
            },
            destroy
          });
        }
        throw new ERR_INVALID_RETURN_VALUE("Iterable, AsyncIterable or AsyncFunction", name, value);
      }
      if (isBlob2(body)) {
        return duplexify(body.arrayBuffer());
      }
      if (isIterable(body)) {
        return from(Duplexify, body, {
          // TODO (ronag): highWaterMark?
          objectMode: true,
          writable: false
        });
      }
      if (isReadableStream2(body === null || body === void 0 ? void 0 : body.readable) && isWritableStream(body === null || body === void 0 ? void 0 : body.writable)) {
        return Duplexify.fromWeb(body);
      }
      if (typeof (body === null || body === void 0 ? void 0 : body.writable) === "object" || typeof (body === null || body === void 0 ? void 0 : body.readable) === "object") {
        const readable = body !== null && body !== void 0 && body.readable ? isReadableNodeStream(body === null || body === void 0 ? void 0 : body.readable) ? body === null || body === void 0 ? void 0 : body.readable : duplexify(body.readable) : void 0;
        const writable = body !== null && body !== void 0 && body.writable ? isWritableNodeStream(body === null || body === void 0 ? void 0 : body.writable) ? body === null || body === void 0 ? void 0 : body.writable : duplexify(body.writable) : void 0;
        return _duplexify({
          readable,
          writable
        });
      }
      const then = body === null || body === void 0 ? void 0 : body.then;
      if (typeof then === "function") {
        let d3;
        FunctionPrototypeCall(
          then,
          body,
          (val) => {
            if (val != null) {
              d3.push(val);
            }
            d3.push(null);
          },
          (err) => {
            destroyer(d3, err);
          }
        );
        return d3 = new Duplexify({
          objectMode: true,
          writable: false,
          read() {
          }
        });
      }
      throw new ERR_INVALID_ARG_TYPE(
        name,
        [
          "Blob",
          "ReadableStream",
          "WritableStream",
          "Stream",
          "Iterable",
          "AsyncIterable",
          "Function",
          "{ readable, writable } pair",
          "Promise"
        ],
        body
      );
    }, "duplexify");
    function fromAsyncGen(fn) {
      let { promise, resolve: resolve13 } = createDeferredPromise();
      const ac = new AbortController2();
      const signal = ac.signal;
      const value = fn(
        (async function* () {
          while (true) {
            const _promise = promise;
            promise = null;
            const { chunk, done, cb } = await _promise;
            process3.nextTick(cb);
            if (done) return;
            if (signal.aborted)
              throw new AbortError(void 0, {
                cause: signal.reason
              });
            ({ promise, resolve: resolve13 } = createDeferredPromise());
            yield chunk;
          }
        })(),
        {
          signal
        }
      );
      return {
        value,
        write(chunk, encoding, cb) {
          const _resolve = resolve13;
          resolve13 = null;
          _resolve({
            chunk,
            done: false,
            cb
          });
        },
        final(cb) {
          const _resolve = resolve13;
          resolve13 = null;
          _resolve({
            done: true,
            cb
          });
        },
        destroy(err, cb) {
          ac.abort();
          cb(err);
        }
      };
    }
    __name(fromAsyncGen, "fromAsyncGen");
    function _duplexify(pair) {
      const r3 = pair.readable && typeof pair.readable.read !== "function" ? Readable.wrap(pair.readable) : pair.readable;
      const w3 = pair.writable;
      let readable = !!isReadable2(r3);
      let writable = !!isWritable2(w3);
      let ondrain;
      let onfinish;
      let onreadable;
      let onclose;
      let d3;
      function onfinished(err) {
        const cb = onclose;
        onclose = null;
        if (cb) {
          cb(err);
        } else if (err) {
          d3.destroy(err);
        }
      }
      __name(onfinished, "onfinished");
      d3 = new Duplexify({
        // TODO (ronag): highWaterMark?
        readableObjectMode: !!(r3 !== null && r3 !== void 0 && r3.readableObjectMode),
        writableObjectMode: !!(w3 !== null && w3 !== void 0 && w3.writableObjectMode),
        readable,
        writable
      });
      if (writable) {
        eos(w3, (err) => {
          writable = false;
          if (err) {
            destroyer(r3, err);
          }
          onfinished(err);
        });
        d3._write = function(chunk, encoding, callback) {
          if (w3.write(chunk, encoding)) {
            callback();
          } else {
            ondrain = callback;
          }
        };
        d3._final = function(callback) {
          w3.end();
          onfinish = callback;
        };
        w3.on("drain", function() {
          if (ondrain) {
            const cb = ondrain;
            ondrain = null;
            cb();
          }
        });
        w3.on("finish", function() {
          if (onfinish) {
            const cb = onfinish;
            onfinish = null;
            cb();
          }
        });
      }
      if (readable) {
        eos(r3, (err) => {
          readable = false;
          if (err) {
            destroyer(r3, err);
          }
          onfinished(err);
        });
        r3.on("readable", function() {
          if (onreadable) {
            const cb = onreadable;
            onreadable = null;
            cb();
          }
        });
        r3.on("end", function() {
          d3.push(null);
        });
        d3._read = function() {
          while (true) {
            const buf = r3.read();
            if (buf === null) {
              onreadable = d3._read;
              return;
            }
            if (!d3.push(buf)) {
              return;
            }
          }
        };
      }
      d3._destroy = function(err, callback) {
        if (!err && onclose !== null) {
          err = new AbortError();
        }
        onreadable = null;
        ondrain = null;
        onfinish = null;
        if (onclose === null) {
          callback(err);
        } else {
          onclose = callback;
          destroyer(w3, err);
          destroyer(r3, err);
        }
      };
      return d3;
    }
    __name(_duplexify, "_duplexify");
  }
});

// ../../node_modules/archiver-utils/node_modules/readable-stream/lib/internal/streams/duplex.js
var require_duplex = __commonJS({
  "../../node_modules/archiver-utils/node_modules/readable-stream/lib/internal/streams/duplex.js"(exports2, module2) {
    "use strict";
    var {
      ObjectDefineProperties,
      ObjectGetOwnPropertyDescriptor,
      ObjectKeys,
      ObjectSetPrototypeOf
    } = require_primordials();
    module2.exports = Duplex;
    var Readable = require_readable2();
    var Writable3 = require_writable();
    ObjectSetPrototypeOf(Duplex.prototype, Readable.prototype);
    ObjectSetPrototypeOf(Duplex, Readable);
    {
      const keys = ObjectKeys(Writable3.prototype);
      for (let i3 = 0; i3 < keys.length; i3++) {
        const method = keys[i3];
        if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable3.prototype[method];
      }
    }
    function Duplex(options) {
      if (!(this instanceof Duplex)) return new Duplex(options);
      Readable.call(this, options);
      Writable3.call(this, options);
      if (options) {
        this.allowHalfOpen = options.allowHalfOpen !== false;
        if (options.readable === false) {
          this._readableState.readable = false;
          this._readableState.ended = true;
          this._readableState.endEmitted = true;
        }
        if (options.writable === false) {
          this._writableState.writable = false;
          this._writableState.ending = true;
          this._writableState.ended = true;
          this._writableState.finished = true;
        }
      } else {
        this.allowHalfOpen = true;
      }
    }
    __name(Duplex, "Duplex");
    ObjectDefineProperties(Duplex.prototype, {
      writable: {
        __proto__: null,
        ...ObjectGetOwnPropertyDescriptor(Writable3.prototype, "writable")
      },
      writableHighWaterMark: {
        __proto__: null,
        ...ObjectGetOwnPropertyDescriptor(Writable3.prototype, "writableHighWaterMark")
      },
      writableObjectMode: {
        __proto__: null,
        ...ObjectGetOwnPropertyDescriptor(Writable3.prototype, "writableObjectMode")
      },
      writableBuffer: {
        __proto__: null,
        ...ObjectGetOwnPropertyDescriptor(Writable3.prototype, "writableBuffer")
      },
      writableLength: {
        __proto__: null,
        ...ObjectGetOwnPropertyDescriptor(Writable3.prototype, "writableLength")
      },
      writableFinished: {
        __proto__: null,
        ...ObjectGetOwnPropertyDescriptor(Writable3.prototype, "writableFinished")
      },
      writableCorked: {
        __proto__: null,
        ...ObjectGetOwnPropertyDescriptor(Writable3.prototype, "writableCorked")
      },
      writableEnded: {
        __proto__: null,
        ...ObjectGetOwnPropertyDescriptor(Writable3.prototype, "writableEnded")
      },
      writableNeedDrain: {
        __proto__: null,
        ...ObjectGetOwnPropertyDescriptor(Writable3.prototype, "writableNeedDrain")
      },
      destroyed: {
        __proto__: null,
        get() {
          if (this._readableState === void 0 || this._writableState === void 0) {
            return false;
          }
          return this._readableState.destroyed && this._writableState.destroyed;
        },
        set(value) {
          if (this._readableState && this._writableState) {
            this._readableState.destroyed = value;
            this._writableState.destroyed = value;
          }
        }
      }
    });
    var webStreamsAdapters;
    function lazyWebStreams() {
      if (webStreamsAdapters === void 0) webStreamsAdapters = {};
      return webStreamsAdapters;
    }
    __name(lazyWebStreams, "lazyWebStreams");
    Duplex.fromWeb = function(pair, options) {
      return lazyWebStreams().newStreamDuplexFromReadableWritablePair(pair, options);
    };
    Duplex.toWeb = function(duplex) {
      return lazyWebStreams().newReadableWritablePairFromDuplex(duplex);
    };
    var duplexify;
    Duplex.from = function(body) {
      if (!duplexify) {
        duplexify = require_duplexify();
      }
      return duplexify(body, "body");
    };
  }
});

// ../../node_modules/archiver-utils/node_modules/readable-stream/lib/internal/streams/transform.js
var require_transform = __commonJS({
  "../../node_modules/archiver-utils/node_modules/readable-stream/lib/internal/streams/transform.js"(exports2, module2) {
    "use strict";
    var { ObjectSetPrototypeOf, Symbol: Symbol2 } = require_primordials();
    module2.exports = Transform;
    var { ERR_METHOD_NOT_IMPLEMENTED } = require_errors().codes;
    var Duplex = require_duplex();
    var { getHighWaterMark } = require_state();
    ObjectSetPrototypeOf(Transform.prototype, Duplex.prototype);
    ObjectSetPrototypeOf(Transform, Duplex);
    var kCallback = Symbol2("kCallback");
    function Transform(options) {
      if (!(this instanceof Transform)) return new Transform(options);
      const readableHighWaterMark = options ? getHighWaterMark(this, options, "readableHighWaterMark", true) : null;
      if (readableHighWaterMark === 0) {
        options = {
          ...options,
          highWaterMark: null,
          readableHighWaterMark,
          // TODO (ronag): 0 is not optimal since we have
          // a "bug" where we check needDrain before calling _write and not after.
          // Refs: https://github.com/nodejs/node/pull/32887
          // Refs: https://github.com/nodejs/node/pull/35941
          writableHighWaterMark: options.writableHighWaterMark || 0
        };
      }
      Duplex.call(this, options);
      this._readableState.sync = false;
      this[kCallback] = null;
      if (options) {
        if (typeof options.transform === "function") this._transform = options.transform;
        if (typeof options.flush === "function") this._flush = options.flush;
      }
      this.on("prefinish", prefinish);
    }
    __name(Transform, "Transform");
    function final(cb) {
      if (typeof this._flush === "function" && !this.destroyed) {
        this._flush((er, data3) => {
          if (er) {
            if (cb) {
              cb(er);
            } else {
              this.destroy(er);
            }
            return;
          }
          if (data3 != null) {
            this.push(data3);
          }
          this.push(null);
          if (cb) {
            cb();
          }
        });
      } else {
        this.push(null);
        if (cb) {
          cb();
        }
      }
    }
    __name(final, "final");
    function prefinish() {
      if (this._final !== final) {
        final.call(this);
      }
    }
    __name(prefinish, "prefinish");
    Transform.prototype._final = final;
    Transform.prototype._transform = function(chunk, encoding, callback) {
      throw new ERR_METHOD_NOT_IMPLEMENTED("_transform()");
    };
    Transform.prototype._write = function(chunk, encoding, callback) {
      const rState = this._readableState;
      const wState = this._writableState;
      const length = rState.length;
      this._transform(chunk, encoding, (err, val) => {
        if (err) {
          callback(err);
          return;
        }
        if (val != null) {
          this.push(val);
        }
        if (wState.ended || // Backwards compat.
        length === rState.length || // Backwards compat.
        rState.length < rState.highWaterMark) {
          callback();
        } else {
          this[kCallback] = callback;
        }
      });
    };
    Transform.prototype._read = function() {
      if (this[kCallback]) {
        const callback = this[kCallback];
        this[kCallback] = null;
        callback();
      }
    };
  }
});

// ../../node_modules/archiver-utils/node_modules/readable-stream/lib/internal/streams/passthrough.js
var require_passthrough2 = __commonJS({
  "../../node_modules/archiver-utils/node_modules/readable-stream/lib/internal/streams/passthrough.js"(exports2, module2) {
    "use strict";
    var { ObjectSetPrototypeOf } = require_primordials();
    module2.exports = PassThrough;
    var Transform = require_transform();
    ObjectSetPrototypeOf(PassThrough.prototype, Transform.prototype);
    ObjectSetPrototypeOf(PassThrough, Transform);
    function PassThrough(options) {
      if (!(this instanceof PassThrough)) return new PassThrough(options);
      Transform.call(this, options);
    }
    __name(PassThrough, "PassThrough");
    PassThrough.prototype._transform = function(chunk, encoding, cb) {
      cb(null, chunk);
    };
  }
});

// ../../node_modules/archiver-utils/node_modules/readable-stream/lib/internal/streams/pipeline.js
var require_pipeline = __commonJS({
  "../../node_modules/archiver-utils/node_modules/readable-stream/lib/internal/streams/pipeline.js"(exports2, module2) {
    var process3 = require_process();
    var { ArrayIsArray, Promise: Promise2, SymbolAsyncIterator, SymbolDispose } = require_primordials();
    var eos = require_end_of_stream();
    var { once } = require_util2();
    var destroyImpl = require_destroy2();
    var Duplex = require_duplex();
    var {
      aggregateTwoErrors,
      codes: {
        ERR_INVALID_ARG_TYPE,
        ERR_INVALID_RETURN_VALUE,
        ERR_MISSING_ARGS,
        ERR_STREAM_DESTROYED,
        ERR_STREAM_PREMATURE_CLOSE
      },
      AbortError
    } = require_errors();
    var { validateFunction, validateAbortSignal } = require_validators();
    var {
      isIterable,
      isReadable: isReadable2,
      isReadableNodeStream,
      isNodeStream,
      isTransformStream,
      isWebStream,
      isReadableStream: isReadableStream2,
      isReadableFinished
    } = require_utils2();
    var AbortController2 = globalThis.AbortController || require_abort_controller().AbortController;
    var PassThrough;
    var Readable;
    var addAbortListener;
    function destroyer(stream3, reading, writing) {
      let finished = false;
      stream3.on("close", () => {
        finished = true;
      });
      const cleanup = eos(
        stream3,
        {
          readable: reading,
          writable: writing
        },
        (err) => {
          finished = !err;
        }
      );
      return {
        destroy: /* @__PURE__ */ __name((err) => {
          if (finished) return;
          finished = true;
          destroyImpl.destroyer(stream3, err || new ERR_STREAM_DESTROYED("pipe"));
        }, "destroy"),
        cleanup
      };
    }
    __name(destroyer, "destroyer");
    function popCallback(streams) {
      validateFunction(streams[streams.length - 1], "streams[stream.length - 1]");
      return streams.pop();
    }
    __name(popCallback, "popCallback");
    function makeAsyncIterable(val) {
      if (isIterable(val)) {
        return val;
      } else if (isReadableNodeStream(val)) {
        return fromReadable(val);
      }
      throw new ERR_INVALID_ARG_TYPE("val", ["Readable", "Iterable", "AsyncIterable"], val);
    }
    __name(makeAsyncIterable, "makeAsyncIterable");
    async function* fromReadable(val) {
      if (!Readable) {
        Readable = require_readable2();
      }
      yield* Readable.prototype[SymbolAsyncIterator].call(val);
    }
    __name(fromReadable, "fromReadable");
    async function pumpToNode(iterable, writable, finish, { end }) {
      let error5;
      let onresolve = null;
      const resume = /* @__PURE__ */ __name((err) => {
        if (err) {
          error5 = err;
        }
        if (onresolve) {
          const callback = onresolve;
          onresolve = null;
          callback();
        }
      }, "resume");
      const wait = /* @__PURE__ */ __name(() => new Promise2((resolve13, reject) => {
        if (error5) {
          reject(error5);
        } else {
          onresolve = /* @__PURE__ */ __name(() => {
            if (error5) {
              reject(error5);
            } else {
              resolve13();
            }
          }, "onresolve");
        }
      }), "wait");
      writable.on("drain", resume);
      const cleanup = eos(
        writable,
        {
          readable: false
        },
        resume
      );
      try {
        if (writable.writableNeedDrain) {
          await wait();
        }
        for await (const chunk of iterable) {
          if (!writable.write(chunk)) {
            await wait();
          }
        }
        if (end) {
          writable.end();
          await wait();
        }
        finish();
      } catch (err) {
        finish(error5 !== err ? aggregateTwoErrors(error5, err) : err);
      } finally {
        cleanup();
        writable.off("drain", resume);
      }
    }
    __name(pumpToNode, "pumpToNode");
    async function pumpToWeb(readable, writable, finish, { end }) {
      if (isTransformStream(writable)) {
        writable = writable.writable;
      }
      const writer = writable.getWriter();
      try {
        for await (const chunk of readable) {
          await writer.ready;
          writer.write(chunk).catch(() => {
          });
        }
        await writer.ready;
        if (end) {
          await writer.close();
        }
        finish();
      } catch (err) {
        try {
          await writer.abort(err);
          finish(err);
        } catch (err2) {
          finish(err2);
        }
      }
    }
    __name(pumpToWeb, "pumpToWeb");
    function pipeline(...streams) {
      return pipelineImpl(streams, once(popCallback(streams)));
    }
    __name(pipeline, "pipeline");
    function pipelineImpl(streams, callback, opts) {
      if (streams.length === 1 && ArrayIsArray(streams[0])) {
        streams = streams[0];
      }
      if (streams.length < 2) {
        throw new ERR_MISSING_ARGS("streams");
      }
      const ac = new AbortController2();
      const signal = ac.signal;
      const outerSignal = opts === null || opts === void 0 ? void 0 : opts.signal;
      const lastStreamCleanup = [];
      validateAbortSignal(outerSignal, "options.signal");
      function abort() {
        finishImpl(new AbortError());
      }
      __name(abort, "abort");
      addAbortListener = addAbortListener || require_util2().addAbortListener;
      let disposable;
      if (outerSignal) {
        disposable = addAbortListener(outerSignal, abort);
      }
      let error5;
      let value;
      const destroys = [];
      let finishCount = 0;
      function finish(err) {
        finishImpl(err, --finishCount === 0);
      }
      __name(finish, "finish");
      function finishImpl(err, final) {
        var _disposable;
        if (err && (!error5 || error5.code === "ERR_STREAM_PREMATURE_CLOSE")) {
          error5 = err;
        }
        if (!error5 && !final) {
          return;
        }
        while (destroys.length) {
          destroys.shift()(error5);
        }
        ;
        (_disposable = disposable) === null || _disposable === void 0 ? void 0 : _disposable[SymbolDispose]();
        ac.abort();
        if (final) {
          if (!error5) {
            lastStreamCleanup.forEach((fn) => fn());
          }
          process3.nextTick(callback, error5, value);
        }
      }
      __name(finishImpl, "finishImpl");
      let ret;
      for (let i3 = 0; i3 < streams.length; i3++) {
        const stream3 = streams[i3];
        const reading = i3 < streams.length - 1;
        const writing = i3 > 0;
        const end = reading || (opts === null || opts === void 0 ? void 0 : opts.end) !== false;
        const isLastStream = i3 === streams.length - 1;
        if (isNodeStream(stream3)) {
          let onError2 = function(err) {
            if (err && err.name !== "AbortError" && err.code !== "ERR_STREAM_PREMATURE_CLOSE") {
              finish(err);
            }
          };
          var onError = onError2;
          __name(onError2, "onError");
          if (end) {
            const { destroy, cleanup } = destroyer(stream3, reading, writing);
            destroys.push(destroy);
            if (isReadable2(stream3) && isLastStream) {
              lastStreamCleanup.push(cleanup);
            }
          }
          stream3.on("error", onError2);
          if (isReadable2(stream3) && isLastStream) {
            lastStreamCleanup.push(() => {
              stream3.removeListener("error", onError2);
            });
          }
        }
        if (i3 === 0) {
          if (typeof stream3 === "function") {
            ret = stream3({
              signal
            });
            if (!isIterable(ret)) {
              throw new ERR_INVALID_RETURN_VALUE("Iterable, AsyncIterable or Stream", "source", ret);
            }
          } else if (isIterable(stream3) || isReadableNodeStream(stream3) || isTransformStream(stream3)) {
            ret = stream3;
          } else {
            ret = Duplex.from(stream3);
          }
        } else if (typeof stream3 === "function") {
          if (isTransformStream(ret)) {
            var _ret;
            ret = makeAsyncIterable((_ret = ret) === null || _ret === void 0 ? void 0 : _ret.readable);
          } else {
            ret = makeAsyncIterable(ret);
          }
          ret = stream3(ret, {
            signal
          });
          if (reading) {
            if (!isIterable(ret, true)) {
              throw new ERR_INVALID_RETURN_VALUE("AsyncIterable", `transform[${i3 - 1}]`, ret);
            }
          } else {
            var _ret2;
            if (!PassThrough) {
              PassThrough = require_passthrough2();
            }
            const pt = new PassThrough({
              objectMode: true
            });
            const then = (_ret2 = ret) === null || _ret2 === void 0 ? void 0 : _ret2.then;
            if (typeof then === "function") {
              finishCount++;
              then.call(
                ret,
                (val) => {
                  value = val;
                  if (val != null) {
                    pt.write(val);
                  }
                  if (end) {
                    pt.end();
                  }
                  process3.nextTick(finish);
                },
                (err) => {
                  pt.destroy(err);
                  process3.nextTick(finish, err);
                }
              );
            } else if (isIterable(ret, true)) {
              finishCount++;
              pumpToNode(ret, pt, finish, {
                end
              });
            } else if (isReadableStream2(ret) || isTransformStream(ret)) {
              const toRead = ret.readable || ret;
              finishCount++;
              pumpToNode(toRead, pt, finish, {
                end
              });
            } else {
              throw new ERR_INVALID_RETURN_VALUE("AsyncIterable or Promise", "destination", ret);
            }
            ret = pt;
            const { destroy, cleanup } = destroyer(ret, false, true);
            destroys.push(destroy);
            if (isLastStream) {
              lastStreamCleanup.push(cleanup);
            }
          }
        } else if (isNodeStream(stream3)) {
          if (isReadableNodeStream(ret)) {
            finishCount += 2;
            const cleanup = pipe(ret, stream3, finish, {
              end
            });
            if (isReadable2(stream3) && isLastStream) {
              lastStreamCleanup.push(cleanup);
            }
          } else if (isTransformStream(ret) || isReadableStream2(ret)) {
            const toRead = ret.readable || ret;
            finishCount++;
            pumpToNode(toRead, stream3, finish, {
              end
            });
          } else if (isIterable(ret)) {
            finishCount++;
            pumpToNode(ret, stream3, finish, {
              end
            });
          } else {
            throw new ERR_INVALID_ARG_TYPE(
              "val",
              ["Readable", "Iterable", "AsyncIterable", "ReadableStream", "TransformStream"],
              ret
            );
          }
          ret = stream3;
        } else if (isWebStream(stream3)) {
          if (isReadableNodeStream(ret)) {
            finishCount++;
            pumpToWeb(makeAsyncIterable(ret), stream3, finish, {
              end
            });
          } else if (isReadableStream2(ret) || isIterable(ret)) {
            finishCount++;
            pumpToWeb(ret, stream3, finish, {
              end
            });
          } else if (isTransformStream(ret)) {
            finishCount++;
            pumpToWeb(ret.readable, stream3, finish, {
              end
            });
          } else {
            throw new ERR_INVALID_ARG_TYPE(
              "val",
              ["Readable", "Iterable", "AsyncIterable", "ReadableStream", "TransformStream"],
              ret
            );
          }
          ret = stream3;
        } else {
          ret = Duplex.from(stream3);
        }
      }
      if (signal !== null && signal !== void 0 && signal.aborted || outerSignal !== null && outerSignal !== void 0 && outerSignal.aborted) {
        process3.nextTick(abort);
      }
      return ret;
    }
    __name(pipelineImpl, "pipelineImpl");
    function pipe(src, dst, finish, { end }) {
      let ended = false;
      dst.on("close", () => {
        if (!ended) {
          finish(new ERR_STREAM_PREMATURE_CLOSE());
        }
      });
      src.pipe(dst, {
        end: false
      });
      if (end) {
        let endFn2 = function() {
          ended = true;
          dst.end();
        };
        var endFn = endFn2;
        __name(endFn2, "endFn");
        if (isReadableFinished(src)) {
          process3.nextTick(endFn2);
        } else {
          src.once("end", endFn2);
        }
      } else {
        finish();
      }
      eos(
        src,
        {
          readable: true,
          writable: false
        },
        (err) => {
          const rState = src._readableState;
          if (err && err.code === "ERR_STREAM_PREMATURE_CLOSE" && rState && rState.ended && !rState.errored && !rState.errorEmitted) {
            src.once("end", finish).once("error", finish);
          } else {
            finish(err);
          }
        }
      );
      return eos(
        dst,
        {
          readable: false,
          writable: true
        },
        finish
      );
    }
    __name(pipe, "pipe");
    module2.exports = {
      pipelineImpl,
      pipeline
    };
  }
});

// ../../node_modules/archiver-utils/node_modules/readable-stream/lib/internal/streams/compose.js
var require_compose = __commonJS({
  "../../node_modules/archiver-utils/node_modules/readable-stream/lib/internal/streams/compose.js"(exports2, module2) {
    "use strict";
    var { pipeline } = require_pipeline();
    var Duplex = require_duplex();
    var { destroyer } = require_destroy2();
    var {
      isNodeStream,
      isReadable: isReadable2,
      isWritable: isWritable2,
      isWebStream,
      isTransformStream,
      isWritableStream,
      isReadableStream: isReadableStream2
    } = require_utils2();
    var {
      AbortError,
      codes: { ERR_INVALID_ARG_VALUE, ERR_MISSING_ARGS }
    } = require_errors();
    var eos = require_end_of_stream();
    module2.exports = /* @__PURE__ */ __name(function compose(...streams) {
      if (streams.length === 0) {
        throw new ERR_MISSING_ARGS("streams");
      }
      if (streams.length === 1) {
        return Duplex.from(streams[0]);
      }
      const orgStreams = [...streams];
      if (typeof streams[0] === "function") {
        streams[0] = Duplex.from(streams[0]);
      }
      if (typeof streams[streams.length - 1] === "function") {
        const idx = streams.length - 1;
        streams[idx] = Duplex.from(streams[idx]);
      }
      for (let n3 = 0; n3 < streams.length; ++n3) {
        if (!isNodeStream(streams[n3]) && !isWebStream(streams[n3])) {
          continue;
        }
        if (n3 < streams.length - 1 && !(isReadable2(streams[n3]) || isReadableStream2(streams[n3]) || isTransformStream(streams[n3]))) {
          throw new ERR_INVALID_ARG_VALUE(`streams[${n3}]`, orgStreams[n3], "must be readable");
        }
        if (n3 > 0 && !(isWritable2(streams[n3]) || isWritableStream(streams[n3]) || isTransformStream(streams[n3]))) {
          throw new ERR_INVALID_ARG_VALUE(`streams[${n3}]`, orgStreams[n3], "must be writable");
        }
      }
      let ondrain;
      let onfinish;
      let onreadable;
      let onclose;
      let d3;
      function onfinished(err) {
        const cb = onclose;
        onclose = null;
        if (cb) {
          cb(err);
        } else if (err) {
          d3.destroy(err);
        } else if (!readable && !writable) {
          d3.destroy();
        }
      }
      __name(onfinished, "onfinished");
      const head = streams[0];
      const tail = pipeline(streams, onfinished);
      const writable = !!(isWritable2(head) || isWritableStream(head) || isTransformStream(head));
      const readable = !!(isReadable2(tail) || isReadableStream2(tail) || isTransformStream(tail));
      d3 = new Duplex({
        // TODO (ronag): highWaterMark?
        writableObjectMode: !!(head !== null && head !== void 0 && head.writableObjectMode),
        readableObjectMode: !!(tail !== null && tail !== void 0 && tail.readableObjectMode),
        writable,
        readable
      });
      if (writable) {
        if (isNodeStream(head)) {
          d3._write = function(chunk, encoding, callback) {
            if (head.write(chunk, encoding)) {
              callback();
            } else {
              ondrain = callback;
            }
          };
          d3._final = function(callback) {
            head.end();
            onfinish = callback;
          };
          head.on("drain", function() {
            if (ondrain) {
              const cb = ondrain;
              ondrain = null;
              cb();
            }
          });
        } else if (isWebStream(head)) {
          const writable2 = isTransformStream(head) ? head.writable : head;
          const writer = writable2.getWriter();
          d3._write = async function(chunk, encoding, callback) {
            try {
              await writer.ready;
              writer.write(chunk).catch(() => {
              });
              callback();
            } catch (err) {
              callback(err);
            }
          };
          d3._final = async function(callback) {
            try {
              await writer.ready;
              writer.close().catch(() => {
              });
              onfinish = callback;
            } catch (err) {
              callback(err);
            }
          };
        }
        const toRead = isTransformStream(tail) ? tail.readable : tail;
        eos(toRead, () => {
          if (onfinish) {
            const cb = onfinish;
            onfinish = null;
            cb();
          }
        });
      }
      if (readable) {
        if (isNodeStream(tail)) {
          tail.on("readable", function() {
            if (onreadable) {
              const cb = onreadable;
              onreadable = null;
              cb();
            }
          });
          tail.on("end", function() {
            d3.push(null);
          });
          d3._read = function() {
            while (true) {
              const buf = tail.read();
              if (buf === null) {
                onreadable = d3._read;
                return;
              }
              if (!d3.push(buf)) {
                return;
              }
            }
          };
        } else if (isWebStream(tail)) {
          const readable2 = isTransformStream(tail) ? tail.readable : tail;
          const reader = readable2.getReader();
          d3._read = async function() {
            while (true) {
              try {
                const { value, done } = await reader.read();
                if (!d3.push(value)) {
                  return;
                }
                if (done) {
                  d3.push(null);
                  return;
                }
              } catch {
                return;
              }
            }
          };
        }
      }
      d3._destroy = function(err, callback) {
        if (!err && onclose !== null) {
          err = new AbortError();
        }
        onreadable = null;
        ondrain = null;
        onfinish = null;
        if (onclose === null) {
          callback(err);
        } else {
          onclose = callback;
          if (isNodeStream(tail)) {
            destroyer(tail, err);
          }
        }
      };
      return d3;
    }, "compose");
  }
});

// ../../node_modules/archiver-utils/node_modules/readable-stream/lib/internal/streams/operators.js
var require_operators = __commonJS({
  "../../node_modules/archiver-utils/node_modules/readable-stream/lib/internal/streams/operators.js"(exports2, module2) {
    "use strict";
    var AbortController2 = globalThis.AbortController || require_abort_controller().AbortController;
    var {
      codes: { ERR_INVALID_ARG_VALUE, ERR_INVALID_ARG_TYPE, ERR_MISSING_ARGS, ERR_OUT_OF_RANGE },
      AbortError
    } = require_errors();
    var { validateAbortSignal, validateInteger, validateObject } = require_validators();
    var kWeakHandler = require_primordials().Symbol("kWeak");
    var kResistStopPropagation = require_primordials().Symbol("kResistStopPropagation");
    var { finished } = require_end_of_stream();
    var staticCompose = require_compose();
    var { addAbortSignalNoValidate } = require_add_abort_signal();
    var { isWritable: isWritable2, isNodeStream } = require_utils2();
    var { deprecate } = require_util2();
    var {
      ArrayPrototypePush,
      Boolean: Boolean2,
      MathFloor,
      Number: Number2,
      NumberIsNaN,
      Promise: Promise2,
      PromiseReject,
      PromiseResolve,
      PromisePrototypeThen,
      Symbol: Symbol2
    } = require_primordials();
    var kEmpty = Symbol2("kEmpty");
    var kEof = Symbol2("kEof");
    function compose(stream3, options) {
      if (options != null) {
        validateObject(options, "options");
      }
      if ((options === null || options === void 0 ? void 0 : options.signal) != null) {
        validateAbortSignal(options.signal, "options.signal");
      }
      if (isNodeStream(stream3) && !isWritable2(stream3)) {
        throw new ERR_INVALID_ARG_VALUE("stream", stream3, "must be writable");
      }
      const composedStream = staticCompose(this, stream3);
      if (options !== null && options !== void 0 && options.signal) {
        addAbortSignalNoValidate(options.signal, composedStream);
      }
      return composedStream;
    }
    __name(compose, "compose");
    function map3(fn, options) {
      if (typeof fn !== "function") {
        throw new ERR_INVALID_ARG_TYPE("fn", ["Function", "AsyncFunction"], fn);
      }
      if (options != null) {
        validateObject(options, "options");
      }
      if ((options === null || options === void 0 ? void 0 : options.signal) != null) {
        validateAbortSignal(options.signal, "options.signal");
      }
      let concurrency = 1;
      if ((options === null || options === void 0 ? void 0 : options.concurrency) != null) {
        concurrency = MathFloor(options.concurrency);
      }
      let highWaterMark = concurrency - 1;
      if ((options === null || options === void 0 ? void 0 : options.highWaterMark) != null) {
        highWaterMark = MathFloor(options.highWaterMark);
      }
      validateInteger(concurrency, "options.concurrency", 1);
      validateInteger(highWaterMark, "options.highWaterMark", 0);
      highWaterMark += concurrency;
      return (/* @__PURE__ */ __name(async function* map4() {
        const signal = require_util2().AbortSignalAny(
          [options === null || options === void 0 ? void 0 : options.signal].filter(Boolean2)
        );
        const stream3 = this;
        const queue = [];
        const signalOpt = {
          signal
        };
        let next;
        let resume;
        let done = false;
        let cnt = 0;
        function onCatch() {
          done = true;
          afterItemProcessed();
        }
        __name(onCatch, "onCatch");
        function afterItemProcessed() {
          cnt -= 1;
          maybeResume();
        }
        __name(afterItemProcessed, "afterItemProcessed");
        function maybeResume() {
          if (resume && !done && cnt < concurrency && queue.length < highWaterMark) {
            resume();
            resume = null;
          }
        }
        __name(maybeResume, "maybeResume");
        async function pump() {
          try {
            for await (let val of stream3) {
              if (done) {
                return;
              }
              if (signal.aborted) {
                throw new AbortError();
              }
              try {
                val = fn(val, signalOpt);
                if (val === kEmpty) {
                  continue;
                }
                val = PromiseResolve(val);
              } catch (err) {
                val = PromiseReject(err);
              }
              cnt += 1;
              PromisePrototypeThen(val, afterItemProcessed, onCatch);
              queue.push(val);
              if (next) {
                next();
                next = null;
              }
              if (!done && (queue.length >= highWaterMark || cnt >= concurrency)) {
                await new Promise2((resolve13) => {
                  resume = resolve13;
                });
              }
            }
            queue.push(kEof);
          } catch (err) {
            const val = PromiseReject(err);
            PromisePrototypeThen(val, afterItemProcessed, onCatch);
            queue.push(val);
          } finally {
            done = true;
            if (next) {
              next();
              next = null;
            }
          }
        }
        __name(pump, "pump");
        pump();
        try {
          while (true) {
            while (queue.length > 0) {
              const val = await queue[0];
              if (val === kEof) {
                return;
              }
              if (signal.aborted) {
                throw new AbortError();
              }
              if (val !== kEmpty) {
                yield val;
              }
              queue.shift();
              maybeResume();
            }
            await new Promise2((resolve13) => {
              next = resolve13;
            });
          }
        } finally {
          done = true;
          if (resume) {
            resume();
            resume = null;
          }
        }
      }, "map")).call(this);
    }
    __name(map3, "map");
    function asIndexedPairs(options = void 0) {
      if (options != null) {
        validateObject(options, "options");
      }
      if ((options === null || options === void 0 ? void 0 : options.signal) != null) {
        validateAbortSignal(options.signal, "options.signal");
      }
      return (/* @__PURE__ */ __name(async function* asIndexedPairs2() {
        let index = 0;
        for await (const val of this) {
          var _options$signal;
          if (options !== null && options !== void 0 && (_options$signal = options.signal) !== null && _options$signal !== void 0 && _options$signal.aborted) {
            throw new AbortError({
              cause: options.signal.reason
            });
          }
          yield [index++, val];
        }
      }, "asIndexedPairs")).call(this);
    }
    __name(asIndexedPairs, "asIndexedPairs");
    async function some2(fn, options = void 0) {
      for await (const unused of filter4.call(this, fn, options)) {
        return true;
      }
      return false;
    }
    __name(some2, "some");
    async function every(fn, options = void 0) {
      if (typeof fn !== "function") {
        throw new ERR_INVALID_ARG_TYPE("fn", ["Function", "AsyncFunction"], fn);
      }
      return !await some2.call(
        this,
        async (...args) => {
          return !await fn(...args);
        },
        options
      );
    }
    __name(every, "every");
    async function find(fn, options) {
      for await (const result2 of filter4.call(this, fn, options)) {
        return result2;
      }
      return void 0;
    }
    __name(find, "find");
    async function forEach(fn, options) {
      if (typeof fn !== "function") {
        throw new ERR_INVALID_ARG_TYPE("fn", ["Function", "AsyncFunction"], fn);
      }
      async function forEachFn(value, options2) {
        await fn(value, options2);
        return kEmpty;
      }
      __name(forEachFn, "forEachFn");
      for await (const unused of map3.call(this, forEachFn, options)) ;
    }
    __name(forEach, "forEach");
    function filter4(fn, options) {
      if (typeof fn !== "function") {
        throw new ERR_INVALID_ARG_TYPE("fn", ["Function", "AsyncFunction"], fn);
      }
      async function filterFn(value, options2) {
        if (await fn(value, options2)) {
          return value;
        }
        return kEmpty;
      }
      __name(filterFn, "filterFn");
      return map3.call(this, filterFn, options);
    }
    __name(filter4, "filter");
    var ReduceAwareErrMissingArgs = class extends ERR_MISSING_ARGS {
      static {
        __name(this, "ReduceAwareErrMissingArgs");
      }
      constructor() {
        super("reduce");
        this.message = "Reduce of an empty stream requires an initial value";
      }
    };
    async function reduce(reducer, initialValue, options) {
      var _options$signal2;
      if (typeof reducer !== "function") {
        throw new ERR_INVALID_ARG_TYPE("reducer", ["Function", "AsyncFunction"], reducer);
      }
      if (options != null) {
        validateObject(options, "options");
      }
      if ((options === null || options === void 0 ? void 0 : options.signal) != null) {
        validateAbortSignal(options.signal, "options.signal");
      }
      let hasInitialValue = arguments.length > 1;
      if (options !== null && options !== void 0 && (_options$signal2 = options.signal) !== null && _options$signal2 !== void 0 && _options$signal2.aborted) {
        const err = new AbortError(void 0, {
          cause: options.signal.reason
        });
        this.once("error", () => {
        });
        await finished(this.destroy(err));
        throw err;
      }
      const ac = new AbortController2();
      const signal = ac.signal;
      if (options !== null && options !== void 0 && options.signal) {
        const opts = {
          once: true,
          [kWeakHandler]: this,
          [kResistStopPropagation]: true
        };
        options.signal.addEventListener("abort", () => ac.abort(), opts);
      }
      let gotAnyItemFromStream = false;
      try {
        for await (const value of this) {
          var _options$signal3;
          gotAnyItemFromStream = true;
          if (options !== null && options !== void 0 && (_options$signal3 = options.signal) !== null && _options$signal3 !== void 0 && _options$signal3.aborted) {
            throw new AbortError();
          }
          if (!hasInitialValue) {
            initialValue = value;
            hasInitialValue = true;
          } else {
            initialValue = await reducer(initialValue, value, {
              signal
            });
          }
        }
        if (!gotAnyItemFromStream && !hasInitialValue) {
          throw new ReduceAwareErrMissingArgs();
        }
      } finally {
        ac.abort();
      }
      return initialValue;
    }
    __name(reduce, "reduce");
    async function toArray(options) {
      if (options != null) {
        validateObject(options, "options");
      }
      if ((options === null || options === void 0 ? void 0 : options.signal) != null) {
        validateAbortSignal(options.signal, "options.signal");
      }
      const result2 = [];
      for await (const val of this) {
        var _options$signal4;
        if (options !== null && options !== void 0 && (_options$signal4 = options.signal) !== null && _options$signal4 !== void 0 && _options$signal4.aborted) {
          throw new AbortError(void 0, {
            cause: options.signal.reason
          });
        }
        ArrayPrototypePush(result2, val);
      }
      return result2;
    }
    __name(toArray, "toArray");
    function flatMap4(fn, options) {
      const values = map3.call(this, fn, options);
      return (/* @__PURE__ */ __name(async function* flatMap5() {
        for await (const val of values) {
          yield* val;
        }
      }, "flatMap")).call(this);
    }
    __name(flatMap4, "flatMap");
    function toIntegerOrInfinity(number) {
      number = Number2(number);
      if (NumberIsNaN(number)) {
        return 0;
      }
      if (number < 0) {
        throw new ERR_OUT_OF_RANGE("number", ">= 0", number);
      }
      return number;
    }
    __name(toIntegerOrInfinity, "toIntegerOrInfinity");
    function drop(number, options = void 0) {
      if (options != null) {
        validateObject(options, "options");
      }
      if ((options === null || options === void 0 ? void 0 : options.signal) != null) {
        validateAbortSignal(options.signal, "options.signal");
      }
      number = toIntegerOrInfinity(number);
      return (/* @__PURE__ */ __name(async function* drop2() {
        var _options$signal5;
        if (options !== null && options !== void 0 && (_options$signal5 = options.signal) !== null && _options$signal5 !== void 0 && _options$signal5.aborted) {
          throw new AbortError();
        }
        for await (const val of this) {
          var _options$signal6;
          if (options !== null && options !== void 0 && (_options$signal6 = options.signal) !== null && _options$signal6 !== void 0 && _options$signal6.aborted) {
            throw new AbortError();
          }
          if (number-- <= 0) {
            yield val;
          }
        }
      }, "drop")).call(this);
    }
    __name(drop, "drop");
    function take2(number, options = void 0) {
      if (options != null) {
        validateObject(options, "options");
      }
      if ((options === null || options === void 0 ? void 0 : options.signal) != null) {
        validateAbortSignal(options.signal, "options.signal");
      }
      number = toIntegerOrInfinity(number);
      return (/* @__PURE__ */ __name(async function* take3() {
        var _options$signal7;
        if (options !== null && options !== void 0 && (_options$signal7 = options.signal) !== null && _options$signal7 !== void 0 && _options$signal7.aborted) {
          throw new AbortError();
        }
        for await (const val of this) {
          var _options$signal8;
          if (options !== null && options !== void 0 && (_options$signal8 = options.signal) !== null && _options$signal8 !== void 0 && _options$signal8.aborted) {
            throw new AbortError();
          }
          if (number-- > 0) {
            yield val;
          }
          if (number <= 0) {
            return;
          }
        }
      }, "take")).call(this);
    }
    __name(take2, "take");
    module2.exports.streamReturningOperators = {
      asIndexedPairs: deprecate(asIndexedPairs, "readable.asIndexedPairs will be removed in a future version."),
      drop,
      filter: filter4,
      flatMap: flatMap4,
      map: map3,
      take: take2,
      compose
    };
    module2.exports.promiseReturningOperators = {
      every,
      forEach,
      reduce,
      toArray,
      some: some2,
      find
    };
  }
});

// ../../node_modules/archiver-utils/node_modules/readable-stream/lib/stream/promises.js
var require_promises = __commonJS({
  "../../node_modules/archiver-utils/node_modules/readable-stream/lib/stream/promises.js"(exports2, module2) {
    "use strict";
    var { ArrayPrototypePop, Promise: Promise2 } = require_primordials();
    var { isIterable, isNodeStream, isWebStream } = require_utils2();
    var { pipelineImpl: pl } = require_pipeline();
    var { finished } = require_end_of_stream();
    require_stream2();
    function pipeline(...streams) {
      return new Promise2((resolve13, reject) => {
        let signal;
        let end;
        const lastArg = streams[streams.length - 1];
        if (lastArg && typeof lastArg === "object" && !isNodeStream(lastArg) && !isIterable(lastArg) && !isWebStream(lastArg)) {
          const options = ArrayPrototypePop(streams);
          signal = options.signal;
          end = options.end;
        }
        pl(
          streams,
          (err, value) => {
            if (err) {
              reject(err);
            } else {
              resolve13(value);
            }
          },
          {
            signal,
            end
          }
        );
      });
    }
    __name(pipeline, "pipeline");
    module2.exports = {
      finished,
      pipeline
    };
  }
});

// ../../node_modules/archiver-utils/node_modules/readable-stream/lib/stream.js
var require_stream2 = __commonJS({
  "../../node_modules/archiver-utils/node_modules/readable-stream/lib/stream.js"(exports2, module2) {
    "use strict";
    var { Buffer: Buffer2 } = require("buffer");
    var { ObjectDefineProperty, ObjectKeys, ReflectApply } = require_primordials();
    var {
      promisify: { custom: customPromisify }
    } = require_util2();
    var { streamReturningOperators, promiseReturningOperators } = require_operators();
    var {
      codes: { ERR_ILLEGAL_CONSTRUCTOR }
    } = require_errors();
    var compose = require_compose();
    var { setDefaultHighWaterMark, getDefaultHighWaterMark } = require_state();
    var { pipeline } = require_pipeline();
    var { destroyer } = require_destroy2();
    var eos = require_end_of_stream();
    var promises3 = require_promises();
    var utils = require_utils2();
    var Stream2 = module2.exports = require_legacy().Stream;
    Stream2.isDestroyed = utils.isDestroyed;
    Stream2.isDisturbed = utils.isDisturbed;
    Stream2.isErrored = utils.isErrored;
    Stream2.isReadable = utils.isReadable;
    Stream2.isWritable = utils.isWritable;
    Stream2.Readable = require_readable2();
    for (const key of ObjectKeys(streamReturningOperators)) {
      let fn = function(...args) {
        if (new.target) {
          throw ERR_ILLEGAL_CONSTRUCTOR();
        }
        return Stream2.Readable.from(ReflectApply(op2, this, args));
      };
      __name(fn, "fn");
      const op2 = streamReturningOperators[key];
      ObjectDefineProperty(fn, "name", {
        __proto__: null,
        value: op2.name
      });
      ObjectDefineProperty(fn, "length", {
        __proto__: null,
        value: op2.length
      });
      ObjectDefineProperty(Stream2.Readable.prototype, key, {
        __proto__: null,
        value: fn,
        enumerable: false,
        configurable: true,
        writable: true
      });
    }
    for (const key of ObjectKeys(promiseReturningOperators)) {
      let fn = function(...args) {
        if (new.target) {
          throw ERR_ILLEGAL_CONSTRUCTOR();
        }
        return ReflectApply(op2, this, args);
      };
      __name(fn, "fn");
      const op2 = promiseReturningOperators[key];
      ObjectDefineProperty(fn, "name", {
        __proto__: null,
        value: op2.name
      });
      ObjectDefineProperty(fn, "length", {
        __proto__: null,
        value: op2.length
      });
      ObjectDefineProperty(Stream2.Readable.prototype, key, {
        __proto__: null,
        value: fn,
        enumerable: false,
        configurable: true,
        writable: true
      });
    }
    Stream2.Writable = require_writable();
    Stream2.Duplex = require_duplex();
    Stream2.Transform = require_transform();
    Stream2.PassThrough = require_passthrough2();
    Stream2.pipeline = pipeline;
    var { addAbortSignal } = require_add_abort_signal();
    Stream2.addAbortSignal = addAbortSignal;
    Stream2.finished = eos;
    Stream2.destroy = destroyer;
    Stream2.compose = compose;
    Stream2.setDefaultHighWaterMark = setDefaultHighWaterMark;
    Stream2.getDefaultHighWaterMark = getDefaultHighWaterMark;
    ObjectDefineProperty(Stream2, "promises", {
      __proto__: null,
      configurable: true,
      enumerable: true,
      get() {
        return promises3;
      }
    });
    ObjectDefineProperty(pipeline, customPromisify, {
      __proto__: null,
      enumerable: true,
      get() {
        return promises3.pipeline;
      }
    });
    ObjectDefineProperty(eos, customPromisify, {
      __proto__: null,
      enumerable: true,
      get() {
        return promises3.finished;
      }
    });
    Stream2.Stream = Stream2;
    Stream2._isUint8Array = /* @__PURE__ */ __name(function isUint8Array(value) {
      return value instanceof Uint8Array;
    }, "isUint8Array");
    Stream2._uint8ArrayToBuffer = /* @__PURE__ */ __name(function _uint8ArrayToBuffer(chunk) {
      return Buffer2.from(chunk.buffer, chunk.byteOffset, chunk.byteLength);
    }, "_uint8ArrayToBuffer");
  }
});

// ../../node_modules/archiver-utils/node_modules/readable-stream/lib/ours/index.js
var require_ours = __commonJS({
  "../../node_modules/archiver-utils/node_modules/readable-stream/lib/ours/index.js"(exports2, module2) {
    "use strict";
    var Stream2 = require("stream");
    if (Stream2 && process.env.READABLE_STREAM === "disable") {
      const promises3 = Stream2.promises;
      module2.exports._uint8ArrayToBuffer = Stream2._uint8ArrayToBuffer;
      module2.exports._isUint8Array = Stream2._isUint8Array;
      module2.exports.isDisturbed = Stream2.isDisturbed;
      module2.exports.isErrored = Stream2.isErrored;
      module2.exports.isReadable = Stream2.isReadable;
      module2.exports.Readable = Stream2.Readable;
      module2.exports.Writable = Stream2.Writable;
      module2.exports.Duplex = Stream2.Duplex;
      module2.exports.Transform = Stream2.Transform;
      module2.exports.PassThrough = Stream2.PassThrough;
      module2.exports.addAbortSignal = Stream2.addAbortSignal;
      module2.exports.finished = Stream2.finished;
      module2.exports.destroy = Stream2.destroy;
      module2.exports.pipeline = Stream2.pipeline;
      module2.exports.compose = Stream2.compose;
      Object.defineProperty(Stream2, "promises", {
        configurable: true,
        enumerable: true,
        get() {
          return promises3;
        }
      });
      module2.exports.Stream = Stream2.Stream;
    } else {
      const CustomStream = require_stream2();
      const promises3 = require_promises();
      const originalDestroy = CustomStream.Readable.destroy;
      module2.exports = CustomStream.Readable;
      module2.exports._uint8ArrayToBuffer = CustomStream._uint8ArrayToBuffer;
      module2.exports._isUint8Array = CustomStream._isUint8Array;
      module2.exports.isDisturbed = CustomStream.isDisturbed;
      module2.exports.isErrored = CustomStream.isErrored;
      module2.exports.isReadable = CustomStream.isReadable;
      module2.exports.Readable = CustomStream.Readable;
      module2.exports.Writable = CustomStream.Writable;
      module2.exports.Duplex = CustomStream.Duplex;
      module2.exports.Transform = CustomStream.Transform;
      module2.exports.PassThrough = CustomStream.PassThrough;
      module2.exports.addAbortSignal = CustomStream.addAbortSignal;
      module2.exports.finished = CustomStream.finished;
      module2.exports.destroy = CustomStream.destroy;
      module2.exports.destroy = originalDestroy;
      module2.exports.pipeline = CustomStream.pipeline;
      module2.exports.compose = CustomStream.compose;
      Object.defineProperty(CustomStream, "promises", {
        configurable: true,
        enumerable: true,
        get() {
          return promises3;
        }
      });
      module2.exports.Stream = CustomStream.Stream;
    }
    module2.exports.default = module2.exports;
  }
});

// ../../node_modules/lodash/_arrayPush.js
var require_arrayPush = __commonJS({
  "../../node_modules/lodash/_arrayPush.js"(exports2, module2) {
    function arrayPush(array, values) {
      var index = -1, length = values.length, offset = array.length;
      while (++index < length) {
        array[offset + index] = values[index];
      }
      return array;
    }
    __name(arrayPush, "arrayPush");
    module2.exports = arrayPush;
  }
});

// ../../node_modules/lodash/_isFlattenable.js
var require_isFlattenable = __commonJS({
  "../../node_modules/lodash/_isFlattenable.js"(exports2, module2) {
    var Symbol2 = require_Symbol();
    var isArguments = require_isArguments();
    var isArray2 = require_isArray();
    var spreadableSymbol = Symbol2 ? Symbol2.isConcatSpreadable : void 0;
    function isFlattenable(value) {
      return isArray2(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
    }
    __name(isFlattenable, "isFlattenable");
    module2.exports = isFlattenable;
  }
});

// ../../node_modules/lodash/_baseFlatten.js
var require_baseFlatten = __commonJS({
  "../../node_modules/lodash/_baseFlatten.js"(exports2, module2) {
    var arrayPush = require_arrayPush();
    var isFlattenable = require_isFlattenable();
    function baseFlatten(array, depth, predicate, isStrict, result2) {
      var index = -1, length = array.length;
      predicate || (predicate = isFlattenable);
      result2 || (result2 = []);
      while (++index < length) {
        var value = array[index];
        if (depth > 0 && predicate(value)) {
          if (depth > 1) {
            baseFlatten(value, depth - 1, predicate, isStrict, result2);
          } else {
            arrayPush(result2, value);
          }
        } else if (!isStrict) {
          result2[result2.length] = value;
        }
      }
      return result2;
    }
    __name(baseFlatten, "baseFlatten");
    module2.exports = baseFlatten;
  }
});

// ../../node_modules/lodash/flatten.js
var require_flatten = __commonJS({
  "../../node_modules/lodash/flatten.js"(exports2, module2) {
    var baseFlatten = require_baseFlatten();
    function flatten3(array) {
      var length = array == null ? 0 : array.length;
      return length ? baseFlatten(array, 1) : [];
    }
    __name(flatten3, "flatten");
    module2.exports = flatten3;
  }
});

// ../../node_modules/lodash/_nativeCreate.js
var require_nativeCreate = __commonJS({
  "../../node_modules/lodash/_nativeCreate.js"(exports2, module2) {
    var getNative = require_getNative();
    var nativeCreate = getNative(Object, "create");
    module2.exports = nativeCreate;
  }
});

// ../../node_modules/lodash/_hashClear.js
var require_hashClear = __commonJS({
  "../../node_modules/lodash/_hashClear.js"(exports2, module2) {
    var nativeCreate = require_nativeCreate();
    function hashClear() {
      this.__data__ = nativeCreate ? nativeCreate(null) : {};
      this.size = 0;
    }
    __name(hashClear, "hashClear");
    module2.exports = hashClear;
  }
});

// ../../node_modules/lodash/_hashDelete.js
var require_hashDelete = __commonJS({
  "../../node_modules/lodash/_hashDelete.js"(exports2, module2) {
    function hashDelete(key) {
      var result2 = this.has(key) && delete this.__data__[key];
      this.size -= result2 ? 1 : 0;
      return result2;
    }
    __name(hashDelete, "hashDelete");
    module2.exports = hashDelete;
  }
});

// ../../node_modules/lodash/_hashGet.js
var require_hashGet = __commonJS({
  "../../node_modules/lodash/_hashGet.js"(exports2, module2) {
    var nativeCreate = require_nativeCreate();
    var HASH_UNDEFINED = "__lodash_hash_undefined__";
    var objectProto = Object.prototype;
    var hasOwnProperty2 = objectProto.hasOwnProperty;
    function hashGet(key) {
      var data3 = this.__data__;
      if (nativeCreate) {
        var result2 = data3[key];
        return result2 === HASH_UNDEFINED ? void 0 : result2;
      }
      return hasOwnProperty2.call(data3, key) ? data3[key] : void 0;
    }
    __name(hashGet, "hashGet");
    module2.exports = hashGet;
  }
});

// ../../node_modules/lodash/_hashHas.js
var require_hashHas = __commonJS({
  "../../node_modules/lodash/_hashHas.js"(exports2, module2) {
    var nativeCreate = require_nativeCreate();
    var objectProto = Object.prototype;
    var hasOwnProperty2 = objectProto.hasOwnProperty;
    function hashHas(key) {
      var data3 = this.__data__;
      return nativeCreate ? data3[key] !== void 0 : hasOwnProperty2.call(data3, key);
    }
    __name(hashHas, "hashHas");
    module2.exports = hashHas;
  }
});

// ../../node_modules/lodash/_hashSet.js
var require_hashSet = __commonJS({
  "../../node_modules/lodash/_hashSet.js"(exports2, module2) {
    var nativeCreate = require_nativeCreate();
    var HASH_UNDEFINED = "__lodash_hash_undefined__";
    function hashSet(key, value) {
      var data3 = this.__data__;
      this.size += this.has(key) ? 0 : 1;
      data3[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value;
      return this;
    }
    __name(hashSet, "hashSet");
    module2.exports = hashSet;
  }
});

// ../../node_modules/lodash/_Hash.js
var require_Hash = __commonJS({
  "../../node_modules/lodash/_Hash.js"(exports2, module2) {
    var hashClear = require_hashClear();
    var hashDelete = require_hashDelete();
    var hashGet = require_hashGet();
    var hashHas = require_hashHas();
    var hashSet = require_hashSet();
    function Hash3(entries) {
      var index = -1, length = entries == null ? 0 : entries.length;
      this.clear();
      while (++index < length) {
        var entry = entries[index];
        this.set(entry[0], entry[1]);
      }
    }
    __name(Hash3, "Hash");
    Hash3.prototype.clear = hashClear;
    Hash3.prototype["delete"] = hashDelete;
    Hash3.prototype.get = hashGet;
    Hash3.prototype.has = hashHas;
    Hash3.prototype.set = hashSet;
    module2.exports = Hash3;
  }
});

// ../../node_modules/lodash/_listCacheClear.js
var require_listCacheClear = __commonJS({
  "../../node_modules/lodash/_listCacheClear.js"(exports2, module2) {
    function listCacheClear() {
      this.__data__ = [];
      this.size = 0;
    }
    __name(listCacheClear, "listCacheClear");
    module2.exports = listCacheClear;
  }
});

// ../../node_modules/lodash/_assocIndexOf.js
var require_assocIndexOf = __commonJS({
  "../../node_modules/lodash/_assocIndexOf.js"(exports2, module2) {
    var eq2 = require_eq2();
    function assocIndexOf(array, key) {
      var length = array.length;
      while (length--) {
        if (eq2(array[length][0], key)) {
          return length;
        }
      }
      return -1;
    }
    __name(assocIndexOf, "assocIndexOf");
    module2.exports = assocIndexOf;
  }
});

// ../../node_modules/lodash/_listCacheDelete.js
var require_listCacheDelete = __commonJS({
  "../../node_modules/lodash/_listCacheDelete.js"(exports2, module2) {
    var assocIndexOf = require_assocIndexOf();
    var arrayProto = Array.prototype;
    var splice = arrayProto.splice;
    function listCacheDelete(key) {
      var data3 = this.__data__, index = assocIndexOf(data3, key);
      if (index < 0) {
        return false;
      }
      var lastIndex = data3.length - 1;
      if (index == lastIndex) {
        data3.pop();
      } else {
        splice.call(data3, index, 1);
      }
      --this.size;
      return true;
    }
    __name(listCacheDelete, "listCacheDelete");
    module2.exports = listCacheDelete;
  }
});

// ../../node_modules/lodash/_listCacheGet.js
var require_listCacheGet = __commonJS({
  "../../node_modules/lodash/_listCacheGet.js"(exports2, module2) {
    var assocIndexOf = require_assocIndexOf();
    function listCacheGet(key) {
      var data3 = this.__data__, index = assocIndexOf(data3, key);
      return index < 0 ? void 0 : data3[index][1];
    }
    __name(listCacheGet, "listCacheGet");
    module2.exports = listCacheGet;
  }
});

// ../../node_modules/lodash/_listCacheHas.js
var require_listCacheHas = __commonJS({
  "../../node_modules/lodash/_listCacheHas.js"(exports2, module2) {
    var assocIndexOf = require_assocIndexOf();
    function listCacheHas(key) {
      return assocIndexOf(this.__data__, key) > -1;
    }
    __name(listCacheHas, "listCacheHas");
    module2.exports = listCacheHas;
  }
});

// ../../node_modules/lodash/_listCacheSet.js
var require_listCacheSet = __commonJS({
  "../../node_modules/lodash/_listCacheSet.js"(exports2, module2) {
    var assocIndexOf = require_assocIndexOf();
    function listCacheSet(key, value) {
      var data3 = this.__data__, index = assocIndexOf(data3, key);
      if (index < 0) {
        ++this.size;
        data3.push([key, value]);
      } else {
        data3[index][1] = value;
      }
      return this;
    }
    __name(listCacheSet, "listCacheSet");
    module2.exports = listCacheSet;
  }
});

// ../../node_modules/lodash/_ListCache.js
var require_ListCache = __commonJS({
  "../../node_modules/lodash/_ListCache.js"(exports2, module2) {
    var listCacheClear = require_listCacheClear();
    var listCacheDelete = require_listCacheDelete();
    var listCacheGet = require_listCacheGet();
    var listCacheHas = require_listCacheHas();
    var listCacheSet = require_listCacheSet();
    function ListCache(entries) {
      var index = -1, length = entries == null ? 0 : entries.length;
      this.clear();
      while (++index < length) {
        var entry = entries[index];
        this.set(entry[0], entry[1]);
      }
    }
    __name(ListCache, "ListCache");
    ListCache.prototype.clear = listCacheClear;
    ListCache.prototype["delete"] = listCacheDelete;
    ListCache.prototype.get = listCacheGet;
    ListCache.prototype.has = listCacheHas;
    ListCache.prototype.set = listCacheSet;
    module2.exports = ListCache;
  }
});

// ../../node_modules/lodash/_Map.js
var require_Map = __commonJS({
  "../../node_modules/lodash/_Map.js"(exports2, module2) {
    var getNative = require_getNative();
    var root = require_root();
    var Map2 = getNative(root, "Map");
    module2.exports = Map2;
  }
});

// ../../node_modules/lodash/_mapCacheClear.js
var require_mapCacheClear = __commonJS({
  "../../node_modules/lodash/_mapCacheClear.js"(exports2, module2) {
    var Hash3 = require_Hash();
    var ListCache = require_ListCache();
    var Map2 = require_Map();
    function mapCacheClear() {
      this.size = 0;
      this.__data__ = {
        "hash": new Hash3(),
        "map": new (Map2 || ListCache)(),
        "string": new Hash3()
      };
    }
    __name(mapCacheClear, "mapCacheClear");
    module2.exports = mapCacheClear;
  }
});

// ../../node_modules/lodash/_isKeyable.js
var require_isKeyable = __commonJS({
  "../../node_modules/lodash/_isKeyable.js"(exports2, module2) {
    function isKeyable(value) {
      var type = typeof value;
      return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
    }
    __name(isKeyable, "isKeyable");
    module2.exports = isKeyable;
  }
});

// ../../node_modules/lodash/_getMapData.js
var require_getMapData = __commonJS({
  "../../node_modules/lodash/_getMapData.js"(exports2, module2) {
    var isKeyable = require_isKeyable();
    function getMapData(map3, key) {
      var data3 = map3.__data__;
      return isKeyable(key) ? data3[typeof key == "string" ? "string" : "hash"] : data3.map;
    }
    __name(getMapData, "getMapData");
    module2.exports = getMapData;
  }
});

// ../../node_modules/lodash/_mapCacheDelete.js
var require_mapCacheDelete = __commonJS({
  "../../node_modules/lodash/_mapCacheDelete.js"(exports2, module2) {
    var getMapData = require_getMapData();
    function mapCacheDelete(key) {
      var result2 = getMapData(this, key)["delete"](key);
      this.size -= result2 ? 1 : 0;
      return result2;
    }
    __name(mapCacheDelete, "mapCacheDelete");
    module2.exports = mapCacheDelete;
  }
});

// ../../node_modules/lodash/_mapCacheGet.js
var require_mapCacheGet = __commonJS({
  "../../node_modules/lodash/_mapCacheGet.js"(exports2, module2) {
    var getMapData = require_getMapData();
    function mapCacheGet(key) {
      return getMapData(this, key).get(key);
    }
    __name(mapCacheGet, "mapCacheGet");
    module2.exports = mapCacheGet;
  }
});

// ../../node_modules/lodash/_mapCacheHas.js
var require_mapCacheHas = __commonJS({
  "../../node_modules/lodash/_mapCacheHas.js"(exports2, module2) {
    var getMapData = require_getMapData();
    function mapCacheHas(key) {
      return getMapData(this, key).has(key);
    }
    __name(mapCacheHas, "mapCacheHas");
    module2.exports = mapCacheHas;
  }
});

// ../../node_modules/lodash/_mapCacheSet.js
var require_mapCacheSet = __commonJS({
  "../../node_modules/lodash/_mapCacheSet.js"(exports2, module2) {
    var getMapData = require_getMapData();
    function mapCacheSet(key, value) {
      var data3 = getMapData(this, key), size = data3.size;
      data3.set(key, value);
      this.size += data3.size == size ? 0 : 1;
      return this;
    }
    __name(mapCacheSet, "mapCacheSet");
    module2.exports = mapCacheSet;
  }
});

// ../../node_modules/lodash/_MapCache.js
var require_MapCache = __commonJS({
  "../../node_modules/lodash/_MapCache.js"(exports2, module2) {
    var mapCacheClear = require_mapCacheClear();
    var mapCacheDelete = require_mapCacheDelete();
    var mapCacheGet = require_mapCacheGet();
    var mapCacheHas = require_mapCacheHas();
    var mapCacheSet = require_mapCacheSet();
    function MapCache(entries) {
      var index = -1, length = entries == null ? 0 : entries.length;
      this.clear();
      while (++index < length) {
        var entry = entries[index];
        this.set(entry[0], entry[1]);
      }
    }
    __name(MapCache, "MapCache");
    MapCache.prototype.clear = mapCacheClear;
    MapCache.prototype["delete"] = mapCacheDelete;
    MapCache.prototype.get = mapCacheGet;
    MapCache.prototype.has = mapCacheHas;
    MapCache.prototype.set = mapCacheSet;
    module2.exports = MapCache;
  }
});

// ../../node_modules/lodash/_setCacheAdd.js
var require_setCacheAdd = __commonJS({
  "../../node_modules/lodash/_setCacheAdd.js"(exports2, module2) {
    var HASH_UNDEFINED = "__lodash_hash_undefined__";
    function setCacheAdd(value) {
      this.__data__.set(value, HASH_UNDEFINED);
      return this;
    }
    __name(setCacheAdd, "setCacheAdd");
    module2.exports = setCacheAdd;
  }
});

// ../../node_modules/lodash/_setCacheHas.js
var require_setCacheHas = __commonJS({
  "../../node_modules/lodash/_setCacheHas.js"(exports2, module2) {
    function setCacheHas(value) {
      return this.__data__.has(value);
    }
    __name(setCacheHas, "setCacheHas");
    module2.exports = setCacheHas;
  }
});

// ../../node_modules/lodash/_SetCache.js
var require_SetCache = __commonJS({
  "../../node_modules/lodash/_SetCache.js"(exports2, module2) {
    var MapCache = require_MapCache();
    var setCacheAdd = require_setCacheAdd();
    var setCacheHas = require_setCacheHas();
    function SetCache(values) {
      var index = -1, length = values == null ? 0 : values.length;
      this.__data__ = new MapCache();
      while (++index < length) {
        this.add(values[index]);
      }
    }
    __name(SetCache, "SetCache");
    SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
    SetCache.prototype.has = setCacheHas;
    module2.exports = SetCache;
  }
});

// ../../node_modules/lodash/_baseFindIndex.js
var require_baseFindIndex = __commonJS({
  "../../node_modules/lodash/_baseFindIndex.js"(exports2, module2) {
    function baseFindIndex(array, predicate, fromIndex, fromRight) {
      var length = array.length, index = fromIndex + (fromRight ? 1 : -1);
      while (fromRight ? index-- : ++index < length) {
        if (predicate(array[index], index, array)) {
          return index;
        }
      }
      return -1;
    }
    __name(baseFindIndex, "baseFindIndex");
    module2.exports = baseFindIndex;
  }
});

// ../../node_modules/lodash/_baseIsNaN.js
var require_baseIsNaN = __commonJS({
  "../../node_modules/lodash/_baseIsNaN.js"(exports2, module2) {
    function baseIsNaN(value) {
      return value !== value;
    }
    __name(baseIsNaN, "baseIsNaN");
    module2.exports = baseIsNaN;
  }
});

// ../../node_modules/lodash/_strictIndexOf.js
var require_strictIndexOf = __commonJS({
  "../../node_modules/lodash/_strictIndexOf.js"(exports2, module2) {
    function strictIndexOf(array, value, fromIndex) {
      var index = fromIndex - 1, length = array.length;
      while (++index < length) {
        if (array[index] === value) {
          return index;
        }
      }
      return -1;
    }
    __name(strictIndexOf, "strictIndexOf");
    module2.exports = strictIndexOf;
  }
});

// ../../node_modules/lodash/_baseIndexOf.js
var require_baseIndexOf = __commonJS({
  "../../node_modules/lodash/_baseIndexOf.js"(exports2, module2) {
    var baseFindIndex = require_baseFindIndex();
    var baseIsNaN = require_baseIsNaN();
    var strictIndexOf = require_strictIndexOf();
    function baseIndexOf(array, value, fromIndex) {
      return value === value ? strictIndexOf(array, value, fromIndex) : baseFindIndex(array, baseIsNaN, fromIndex);
    }
    __name(baseIndexOf, "baseIndexOf");
    module2.exports = baseIndexOf;
  }
});

// ../../node_modules/lodash/_arrayIncludes.js
var require_arrayIncludes = __commonJS({
  "../../node_modules/lodash/_arrayIncludes.js"(exports2, module2) {
    var baseIndexOf = require_baseIndexOf();
    function arrayIncludes(array, value) {
      var length = array == null ? 0 : array.length;
      return !!length && baseIndexOf(array, value, 0) > -1;
    }
    __name(arrayIncludes, "arrayIncludes");
    module2.exports = arrayIncludes;
  }
});

// ../../node_modules/lodash/_arrayIncludesWith.js
var require_arrayIncludesWith = __commonJS({
  "../../node_modules/lodash/_arrayIncludesWith.js"(exports2, module2) {
    function arrayIncludesWith(array, value, comparator) {
      var index = -1, length = array == null ? 0 : array.length;
      while (++index < length) {
        if (comparator(value, array[index])) {
          return true;
        }
      }
      return false;
    }
    __name(arrayIncludesWith, "arrayIncludesWith");
    module2.exports = arrayIncludesWith;
  }
});

// ../../node_modules/lodash/_arrayMap.js
var require_arrayMap = __commonJS({
  "../../node_modules/lodash/_arrayMap.js"(exports2, module2) {
    function arrayMap(array, iteratee) {
      var index = -1, length = array == null ? 0 : array.length, result2 = Array(length);
      while (++index < length) {
        result2[index] = iteratee(array[index], index, array);
      }
      return result2;
    }
    __name(arrayMap, "arrayMap");
    module2.exports = arrayMap;
  }
});

// ../../node_modules/lodash/_cacheHas.js
var require_cacheHas = __commonJS({
  "../../node_modules/lodash/_cacheHas.js"(exports2, module2) {
    function cacheHas(cache3, key) {
      return cache3.has(key);
    }
    __name(cacheHas, "cacheHas");
    module2.exports = cacheHas;
  }
});

// ../../node_modules/lodash/_baseDifference.js
var require_baseDifference = __commonJS({
  "../../node_modules/lodash/_baseDifference.js"(exports2, module2) {
    var SetCache = require_SetCache();
    var arrayIncludes = require_arrayIncludes();
    var arrayIncludesWith = require_arrayIncludesWith();
    var arrayMap = require_arrayMap();
    var baseUnary = require_baseUnary();
    var cacheHas = require_cacheHas();
    var LARGE_ARRAY_SIZE = 200;
    function baseDifference(array, values, iteratee, comparator) {
      var index = -1, includes = arrayIncludes, isCommon = true, length = array.length, result2 = [], valuesLength = values.length;
      if (!length) {
        return result2;
      }
      if (iteratee) {
        values = arrayMap(values, baseUnary(iteratee));
      }
      if (comparator) {
        includes = arrayIncludesWith;
        isCommon = false;
      } else if (values.length >= LARGE_ARRAY_SIZE) {
        includes = cacheHas;
        isCommon = false;
        values = new SetCache(values);
      }
      outer:
        while (++index < length) {
          var value = array[index], computed = iteratee == null ? value : iteratee(value);
          value = comparator || value !== 0 ? value : 0;
          if (isCommon && computed === computed) {
            var valuesIndex = valuesLength;
            while (valuesIndex--) {
              if (values[valuesIndex] === computed) {
                continue outer;
              }
            }
            result2.push(value);
          } else if (!includes(values, computed, comparator)) {
            result2.push(value);
          }
        }
      return result2;
    }
    __name(baseDifference, "baseDifference");
    module2.exports = baseDifference;
  }
});

// ../../node_modules/lodash/isArrayLikeObject.js
var require_isArrayLikeObject = __commonJS({
  "../../node_modules/lodash/isArrayLikeObject.js"(exports2, module2) {
    var isArrayLike = require_isArrayLike();
    var isObjectLike = require_isObjectLike();
    function isArrayLikeObject(value) {
      return isObjectLike(value) && isArrayLike(value);
    }
    __name(isArrayLikeObject, "isArrayLikeObject");
    module2.exports = isArrayLikeObject;
  }
});

// ../../node_modules/lodash/difference.js
var require_difference = __commonJS({
  "../../node_modules/lodash/difference.js"(exports2, module2) {
    var baseDifference = require_baseDifference();
    var baseFlatten = require_baseFlatten();
    var baseRest = require_baseRest();
    var isArrayLikeObject = require_isArrayLikeObject();
    var difference2 = baseRest(function(array, values) {
      return isArrayLikeObject(array) ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true)) : [];
    });
    module2.exports = difference2;
  }
});

// ../../node_modules/lodash/_Set.js
var require_Set = __commonJS({
  "../../node_modules/lodash/_Set.js"(exports2, module2) {
    var getNative = require_getNative();
    var root = require_root();
    var Set2 = getNative(root, "Set");
    module2.exports = Set2;
  }
});

// ../../node_modules/lodash/noop.js
var require_noop = __commonJS({
  "../../node_modules/lodash/noop.js"(exports2, module2) {
    function noop() {
    }
    __name(noop, "noop");
    module2.exports = noop;
  }
});

// ../../node_modules/lodash/_setToArray.js
var require_setToArray = __commonJS({
  "../../node_modules/lodash/_setToArray.js"(exports2, module2) {
    function setToArray(set) {
      var index = -1, result2 = Array(set.size);
      set.forEach(function(value) {
        result2[++index] = value;
      });
      return result2;
    }
    __name(setToArray, "setToArray");
    module2.exports = setToArray;
  }
});

// ../../node_modules/lodash/_createSet.js
var require_createSet = __commonJS({
  "../../node_modules/lodash/_createSet.js"(exports2, module2) {
    var Set2 = require_Set();
    var noop = require_noop();
    var setToArray = require_setToArray();
    var INFINITY = 1 / 0;
    var createSet = !(Set2 && 1 / setToArray(new Set2([, -0]))[1] == INFINITY) ? noop : function(values) {
      return new Set2(values);
    };
    module2.exports = createSet;
  }
});

// ../../node_modules/lodash/_baseUniq.js
var require_baseUniq = __commonJS({
  "../../node_modules/lodash/_baseUniq.js"(exports2, module2) {
    var SetCache = require_SetCache();
    var arrayIncludes = require_arrayIncludes();
    var arrayIncludesWith = require_arrayIncludesWith();
    var cacheHas = require_cacheHas();
    var createSet = require_createSet();
    var setToArray = require_setToArray();
    var LARGE_ARRAY_SIZE = 200;
    function baseUniq(array, iteratee, comparator) {
      var index = -1, includes = arrayIncludes, length = array.length, isCommon = true, result2 = [], seen = result2;
      if (comparator) {
        isCommon = false;
        includes = arrayIncludesWith;
      } else if (length >= LARGE_ARRAY_SIZE) {
        var set = iteratee ? null : createSet(array);
        if (set) {
          return setToArray(set);
        }
        isCommon = false;
        includes = cacheHas;
        seen = new SetCache();
      } else {
        seen = iteratee ? [] : result2;
      }
      outer:
        while (++index < length) {
          var value = array[index], computed = iteratee ? iteratee(value) : value;
          value = comparator || value !== 0 ? value : 0;
          if (isCommon && computed === computed) {
            var seenIndex = seen.length;
            while (seenIndex--) {
              if (seen[seenIndex] === computed) {
                continue outer;
              }
            }
            if (iteratee) {
              seen.push(computed);
            }
            result2.push(value);
          } else if (!includes(seen, computed, comparator)) {
            if (seen !== result2) {
              seen.push(computed);
            }
            result2.push(value);
          }
        }
      return result2;
    }
    __name(baseUniq, "baseUniq");
    module2.exports = baseUniq;
  }
});

// ../../node_modules/lodash/union.js
var require_union = __commonJS({
  "../../node_modules/lodash/union.js"(exports2, module2) {
    var baseFlatten = require_baseFlatten();
    var baseRest = require_baseRest();
    var baseUniq = require_baseUniq();
    var isArrayLikeObject = require_isArrayLikeObject();
    var union = baseRest(function(arrays) {
      return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));
    });
    module2.exports = union;
  }
});

// ../../node_modules/lodash/_overArg.js
var require_overArg = __commonJS({
  "../../node_modules/lodash/_overArg.js"(exports2, module2) {
    function overArg(func, transform) {
      return function(arg) {
        return func(transform(arg));
      };
    }
    __name(overArg, "overArg");
    module2.exports = overArg;
  }
});

// ../../node_modules/lodash/_getPrototype.js
var require_getPrototype = __commonJS({
  "../../node_modules/lodash/_getPrototype.js"(exports2, module2) {
    var overArg = require_overArg();
    var getPrototype = overArg(Object.getPrototypeOf, Object);
    module2.exports = getPrototype;
  }
});

// ../../node_modules/lodash/isPlainObject.js
var require_isPlainObject = __commonJS({
  "../../node_modules/lodash/isPlainObject.js"(exports2, module2) {
    var baseGetTag = require_baseGetTag();
    var getPrototype = require_getPrototype();
    var isObjectLike = require_isObjectLike();
    var objectTag = "[object Object]";
    var funcProto = Function.prototype;
    var objectProto = Object.prototype;
    var funcToString = funcProto.toString;
    var hasOwnProperty2 = objectProto.hasOwnProperty;
    var objectCtorString = funcToString.call(Object);
    function isPlainObject(value) {
      if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
        return false;
      }
      var proto = getPrototype(value);
      if (proto === null) {
        return true;
      }
      var Ctor = hasOwnProperty2.call(proto, "constructor") && proto.constructor;
      return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
    }
    __name(isPlainObject, "isPlainObject");
    module2.exports = isPlainObject;
  }
});

// ../../node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js
var require_assert_valid_pattern = __commonJS({
  "../../node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.assertValidPattern = void 0;
    var MAX_PATTERN_LENGTH4 = 1024 * 64;
    var assertValidPattern4 = /* @__PURE__ */ __name((pattern) => {
      if (typeof pattern !== "string") {
        throw new TypeError("invalid pattern");
      }
      if (pattern.length > MAX_PATTERN_LENGTH4) {
        throw new TypeError("pattern is too long");
      }
    }, "assertValidPattern");
    exports2.assertValidPattern = assertValidPattern4;
  }
});

// ../../node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/brace-expressions.js
var require_brace_expressions = __commonJS({
  "../../node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/brace-expressions.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.parseClass = void 0;
    var posixClasses4 = {
      "[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
      "[:alpha:]": ["\\p{L}\\p{Nl}", true],
      "[:ascii:]": ["\\x00-\\x7f", false],
      "[:blank:]": ["\\p{Zs}\\t", true],
      "[:cntrl:]": ["\\p{Cc}", true],
      "[:digit:]": ["\\p{Nd}", true],
      "[:graph:]": ["\\p{Z}\\p{C}", true, true],
      "[:lower:]": ["\\p{Ll}", true],
      "[:print:]": ["\\p{C}", true],
      "[:punct:]": ["\\p{P}", true],
      "[:space:]": ["\\p{Z}\\t\\r\\n\\v\\f", true],
      "[:upper:]": ["\\p{Lu}", true],
      "[:word:]": ["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}", true],
      "[:xdigit:]": ["A-Fa-f0-9", false]
    };
    var braceEscape4 = /* @__PURE__ */ __name((s3) => s3.replace(/[[\]\\-]/g, "\\$&"), "braceEscape");
    var regexpEscape4 = /* @__PURE__ */ __name((s3) => s3.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), "regexpEscape");
    var rangesToString4 = /* @__PURE__ */ __name((ranges) => ranges.join(""), "rangesToString");
    var parseClass4 = /* @__PURE__ */ __name((glob2, position) => {
      const pos = position;
      if (glob2.charAt(pos) !== "[") {
        throw new Error("not in a brace expression");
      }
      const ranges = [];
      const negs = [];
      let i3 = pos + 1;
      let sawStart = false;
      let uflag = false;
      let escaping = false;
      let negate = false;
      let endPos = pos;
      let rangeStart = "";
      WHILE: while (i3 < glob2.length) {
        const c3 = glob2.charAt(i3);
        if ((c3 === "!" || c3 === "^") && i3 === pos + 1) {
          negate = true;
          i3++;
          continue;
        }
        if (c3 === "]" && sawStart && !escaping) {
          endPos = i3 + 1;
          break;
        }
        sawStart = true;
        if (c3 === "\\") {
          if (!escaping) {
            escaping = true;
            i3++;
            continue;
          }
        }
        if (c3 === "[" && !escaping) {
          for (const [cls, [unip, u3, neg]] of Object.entries(posixClasses4)) {
            if (glob2.startsWith(cls, i3)) {
              if (rangeStart) {
                return ["$.", false, glob2.length - pos, true];
              }
              i3 += cls.length;
              if (neg)
                negs.push(unip);
              else
                ranges.push(unip);
              uflag = uflag || u3;
              continue WHILE;
            }
          }
        }
        escaping = false;
        if (rangeStart) {
          if (c3 > rangeStart) {
            ranges.push(braceEscape4(rangeStart) + "-" + braceEscape4(c3));
          } else if (c3 === rangeStart) {
            ranges.push(braceEscape4(c3));
          }
          rangeStart = "";
          i3++;
          continue;
        }
        if (glob2.startsWith("-]", i3 + 1)) {
          ranges.push(braceEscape4(c3 + "-"));
          i3 += 2;
          continue;
        }
        if (glob2.startsWith("-", i3 + 1)) {
          rangeStart = c3;
          i3 += 2;
          continue;
        }
        ranges.push(braceEscape4(c3));
        i3++;
      }
      if (endPos < i3) {
        return ["", false, 0, false];
      }
      if (!ranges.length && !negs.length) {
        return ["$.", false, glob2.length - pos, true];
      }
      if (negs.length === 0 && ranges.length === 1 && /^\\?.$/.test(ranges[0]) && !negate) {
        const r3 = ranges[0].length === 2 ? ranges[0].slice(-1) : ranges[0];
        return [regexpEscape4(r3), false, endPos - pos, false];
      }
      const sranges = "[" + (negate ? "^" : "") + rangesToString4(ranges) + "]";
      const snegs = "[" + (negate ? "" : "^") + rangesToString4(negs) + "]";
      const comb = ranges.length && negs.length ? "(" + sranges + "|" + snegs + ")" : ranges.length ? sranges : snegs;
      return [comb, uflag, endPos - pos, true];
    }, "parseClass");
    exports2.parseClass = parseClass4;
  }
});

// ../../node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/unescape.js
var require_unescape = __commonJS({
  "../../node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/unescape.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.unescape = void 0;
    var unescape5 = /* @__PURE__ */ __name((s3, { windowsPathsNoEscape = false } = {}) => {
      return windowsPathsNoEscape ? s3.replace(/\[([^\/\\])\]/g, "$1") : s3.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
    }, "unescape");
    exports2.unescape = unescape5;
  }
});

// ../../node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/ast.js
var require_ast = __commonJS({
  "../../node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/ast.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.AST = void 0;
    var brace_expressions_js_1 = require_brace_expressions();
    var unescape_js_1 = require_unescape();
    var types5 = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]);
    var isExtglobType4 = /* @__PURE__ */ __name((c3) => types5.has(c3), "isExtglobType");
    var startNoTraversal4 = "(?!(?:^|/)\\.\\.?(?:$|/))";
    var startNoDot4 = "(?!\\.)";
    var addPatternStart4 = /* @__PURE__ */ new Set(["[", "."]);
    var justDots4 = /* @__PURE__ */ new Set(["..", "."]);
    var reSpecials4 = new Set("().*{}+?[]^$\\!");
    var regExpEscape7 = /* @__PURE__ */ __name((s3) => s3.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), "regExpEscape");
    var qmark7 = "[^/]";
    var star7 = qmark7 + "*?";
    var starNoEmpty4 = qmark7 + "+?";
    var AST4 = class _AST {
      static {
        __name(this, "AST");
      }
      type;
      #root;
      #hasMagic;
      #uflag = false;
      #parts = [];
      #parent;
      #parentIndex;
      #negs;
      #filledNegs = false;
      #options;
      #toString;
      // set to true if it's an extglob with no children
      // (which really means one child of '')
      #emptyExt = false;
      constructor(type, parent, options = {}) {
        this.type = type;
        if (type)
          this.#hasMagic = true;
        this.#parent = parent;
        this.#root = this.#parent ? this.#parent.#root : this;
        this.#options = this.#root === this ? options : this.#root.#options;
        this.#negs = this.#root === this ? [] : this.#root.#negs;
        if (type === "!" && !this.#root.#filledNegs)
          this.#negs.push(this);
        this.#parentIndex = this.#parent ? this.#parent.#parts.length : 0;
      }
      get hasMagic() {
        if (this.#hasMagic !== void 0)
          return this.#hasMagic;
        for (const p3 of this.#parts) {
          if (typeof p3 === "string")
            continue;
          if (p3.type || p3.hasMagic)
            return this.#hasMagic = true;
        }
        return this.#hasMagic;
      }
      // reconstructs the pattern
      toString() {
        if (this.#toString !== void 0)
          return this.#toString;
        if (!this.type) {
          return this.#toString = this.#parts.map((p3) => String(p3)).join("");
        } else {
          return this.#toString = this.type + "(" + this.#parts.map((p3) => String(p3)).join("|") + ")";
        }
      }
      #fillNegs() {
        if (this !== this.#root)
          throw new Error("should only call on root");
        if (this.#filledNegs)
          return this;
        this.toString();
        this.#filledNegs = true;
        let n3;
        while (n3 = this.#negs.pop()) {
          if (n3.type !== "!")
            continue;
          let p3 = n3;
          let pp = p3.#parent;
          while (pp) {
            for (let i3 = p3.#parentIndex + 1; !pp.type && i3 < pp.#parts.length; i3++) {
              for (const part of n3.#parts) {
                if (typeof part === "string") {
                  throw new Error("string part in extglob AST??");
                }
                part.copyIn(pp.#parts[i3]);
              }
            }
            p3 = pp;
            pp = p3.#parent;
          }
        }
        return this;
      }
      push(...parts) {
        for (const p3 of parts) {
          if (p3 === "")
            continue;
          if (typeof p3 !== "string" && !(p3 instanceof _AST && p3.#parent === this)) {
            throw new Error("invalid part: " + p3);
          }
          this.#parts.push(p3);
        }
      }
      toJSON() {
        const ret = this.type === null ? this.#parts.slice().map((p3) => typeof p3 === "string" ? p3 : p3.toJSON()) : [this.type, ...this.#parts.map((p3) => p3.toJSON())];
        if (this.isStart() && !this.type)
          ret.unshift([]);
        if (this.isEnd() && (this === this.#root || this.#root.#filledNegs && this.#parent?.type === "!")) {
          ret.push({});
        }
        return ret;
      }
      isStart() {
        if (this.#root === this)
          return true;
        if (!this.#parent?.isStart())
          return false;
        if (this.#parentIndex === 0)
          return true;
        const p3 = this.#parent;
        for (let i3 = 0; i3 < this.#parentIndex; i3++) {
          const pp = p3.#parts[i3];
          if (!(pp instanceof _AST && pp.type === "!")) {
            return false;
          }
        }
        return true;
      }
      isEnd() {
        if (this.#root === this)
          return true;
        if (this.#parent?.type === "!")
          return true;
        if (!this.#parent?.isEnd())
          return false;
        if (!this.type)
          return this.#parent?.isEnd();
        const pl = this.#parent ? this.#parent.#parts.length : 0;
        return this.#parentIndex === pl - 1;
      }
      copyIn(part) {
        if (typeof part === "string")
          this.push(part);
        else
          this.push(part.clone(this));
      }
      clone(parent) {
        const c3 = new _AST(this.type, parent);
        for (const p3 of this.#parts) {
          c3.copyIn(p3);
        }
        return c3;
      }
      static #parseAST(str, ast, pos, opt) {
        let escaping = false;
        let inBrace = false;
        let braceStart = -1;
        let braceNeg = false;
        if (ast.type === null) {
          let i4 = pos;
          let acc2 = "";
          while (i4 < str.length) {
            const c3 = str.charAt(i4++);
            if (escaping || c3 === "\\") {
              escaping = !escaping;
              acc2 += c3;
              continue;
            }
            if (inBrace) {
              if (i4 === braceStart + 1) {
                if (c3 === "^" || c3 === "!") {
                  braceNeg = true;
                }
              } else if (c3 === "]" && !(i4 === braceStart + 2 && braceNeg)) {
                inBrace = false;
              }
              acc2 += c3;
              continue;
            } else if (c3 === "[") {
              inBrace = true;
              braceStart = i4;
              braceNeg = false;
              acc2 += c3;
              continue;
            }
            if (!opt.noext && isExtglobType4(c3) && str.charAt(i4) === "(") {
              ast.push(acc2);
              acc2 = "";
              const ext4 = new _AST(c3, ast);
              i4 = _AST.#parseAST(str, ext4, i4, opt);
              ast.push(ext4);
              continue;
            }
            acc2 += c3;
          }
          ast.push(acc2);
          return i4;
        }
        let i3 = pos + 1;
        let part = new _AST(null, ast);
        const parts = [];
        let acc = "";
        while (i3 < str.length) {
          const c3 = str.charAt(i3++);
          if (escaping || c3 === "\\") {
            escaping = !escaping;
            acc += c3;
            continue;
          }
          if (inBrace) {
            if (i3 === braceStart + 1) {
              if (c3 === "^" || c3 === "!") {
                braceNeg = true;
              }
            } else if (c3 === "]" && !(i3 === braceStart + 2 && braceNeg)) {
              inBrace = false;
            }
            acc += c3;
            continue;
          } else if (c3 === "[") {
            inBrace = true;
            braceStart = i3;
            braceNeg = false;
            acc += c3;
            continue;
          }
          if (isExtglobType4(c3) && str.charAt(i3) === "(") {
            part.push(acc);
            acc = "";
            const ext4 = new _AST(c3, part);
            part.push(ext4);
            i3 = _AST.#parseAST(str, ext4, i3, opt);
            continue;
          }
          if (c3 === "|") {
            part.push(acc);
            acc = "";
            parts.push(part);
            part = new _AST(null, ast);
            continue;
          }
          if (c3 === ")") {
            if (acc === "" && ast.#parts.length === 0) {
              ast.#emptyExt = true;
            }
            part.push(acc);
            acc = "";
            ast.push(...parts, part);
            return i3;
          }
          acc += c3;
        }
        ast.type = null;
        ast.#hasMagic = void 0;
        ast.#parts = [str.substring(pos - 1)];
        return i3;
      }
      static fromGlob(pattern, options = {}) {
        const ast = new _AST(null, void 0, options);
        _AST.#parseAST(pattern, ast, 0, options);
        return ast;
      }
      // returns the regular expression if there's magic, or the unescaped
      // string if not.
      toMMPattern() {
        if (this !== this.#root)
          return this.#root.toMMPattern();
        const glob2 = this.toString();
        const [re, body, hasMagic2, uflag] = this.toRegExpSource();
        const anyMagic = hasMagic2 || this.#hasMagic || this.#options.nocase && !this.#options.nocaseMagicOnly && glob2.toUpperCase() !== glob2.toLowerCase();
        if (!anyMagic) {
          return body;
        }
        const flags = (this.#options.nocase ? "i" : "") + (uflag ? "u" : "");
        return Object.assign(new RegExp(`^${re}$`, flags), {
          _src: re,
          _glob: glob2
        });
      }
      get options() {
        return this.#options;
      }
      // returns the string match, the regexp source, whether there's magic
      // in the regexp (so a regular expression is required) and whether or
      // not the uflag is needed for the regular expression (for posix classes)
      // TODO: instead of injecting the start/end at this point, just return
      // the BODY of the regexp, along with the start/end portions suitable
      // for binding the start/end in either a joined full-path makeRe context
      // (where we bind to (^|/), or a standalone matchPart context (where
      // we bind to ^, and not /).  Otherwise slashes get duped!
      //
      // In part-matching mode, the start is:
      // - if not isStart: nothing
      // - if traversal possible, but not allowed: ^(?!\.\.?$)
      // - if dots allowed or not possible: ^
      // - if dots possible and not allowed: ^(?!\.)
      // end is:
      // - if not isEnd(): nothing
      // - else: $
      //
      // In full-path matching mode, we put the slash at the START of the
      // pattern, so start is:
      // - if first pattern: same as part-matching mode
      // - if not isStart(): nothing
      // - if traversal possible, but not allowed: /(?!\.\.?(?:$|/))
      // - if dots allowed or not possible: /
      // - if dots possible and not allowed: /(?!\.)
      // end is:
      // - if last pattern, same as part-matching mode
      // - else nothing
      //
      // Always put the (?:$|/) on negated tails, though, because that has to be
      // there to bind the end of the negated pattern portion, and it's easier to
      // just stick it in now rather than try to inject it later in the middle of
      // the pattern.
      //
      // We can just always return the same end, and leave it up to the caller
      // to know whether it's going to be used joined or in parts.
      // And, if the start is adjusted slightly, can do the same there:
      // - if not isStart: nothing
      // - if traversal possible, but not allowed: (?:/|^)(?!\.\.?$)
      // - if dots allowed or not possible: (?:/|^)
      // - if dots possible and not allowed: (?:/|^)(?!\.)
      //
      // But it's better to have a simpler binding without a conditional, for
      // performance, so probably better to return both start options.
      //
      // Then the caller just ignores the end if it's not the first pattern,
      // and the start always gets applied.
      //
      // But that's always going to be $ if it's the ending pattern, or nothing,
      // so the caller can just attach $ at the end of the pattern when building.
      //
      // So the todo is:
      // - better detect what kind of start is needed
      // - return both flavors of starting pattern
      // - attach $ at the end of the pattern when creating the actual RegExp
      //
      // Ah, but wait, no, that all only applies to the root when the first pattern
      // is not an extglob. If the first pattern IS an extglob, then we need all
      // that dot prevention biz to live in the extglob portions, because eg
      // +(*|.x*) can match .xy but not .yx.
      //
      // So, return the two flavors if it's #root and the first child is not an
      // AST, otherwise leave it to the child AST to handle it, and there,
      // use the (?:^|/) style of start binding.
      //
      // Even simplified further:
      // - Since the start for a join is eg /(?!\.) and the start for a part
      // is ^(?!\.), we can just prepend (?!\.) to the pattern (either root
      // or start or whatever) and prepend ^ or / at the Regexp construction.
      toRegExpSource(allowDot) {
        const dot = allowDot ?? !!this.#options.dot;
        if (this.#root === this)
          this.#fillNegs();
        if (!this.type) {
          const noEmpty = this.isStart() && this.isEnd();
          const src = this.#parts.map((p3) => {
            const [re, _3, hasMagic2, uflag] = typeof p3 === "string" ? _AST.#parseGlob(p3, this.#hasMagic, noEmpty) : p3.toRegExpSource(allowDot);
            this.#hasMagic = this.#hasMagic || hasMagic2;
            this.#uflag = this.#uflag || uflag;
            return re;
          }).join("");
          let start2 = "";
          if (this.isStart()) {
            if (typeof this.#parts[0] === "string") {
              const dotTravAllowed = this.#parts.length === 1 && justDots4.has(this.#parts[0]);
              if (!dotTravAllowed) {
                const aps = addPatternStart4;
                const needNoTrav = (
                  // dots are allowed, and the pattern starts with [ or .
                  dot && aps.has(src.charAt(0)) || // the pattern starts with \., and then [ or .
                  src.startsWith("\\.") && aps.has(src.charAt(2)) || // the pattern starts with \.\., and then [ or .
                  src.startsWith("\\.\\.") && aps.has(src.charAt(4))
                );
                const needNoDot = !dot && !allowDot && aps.has(src.charAt(0));
                start2 = needNoTrav ? startNoTraversal4 : needNoDot ? startNoDot4 : "";
              }
            }
          }
          let end = "";
          if (this.isEnd() && this.#root.#filledNegs && this.#parent?.type === "!") {
            end = "(?:$|\\/)";
          }
          const final2 = start2 + src + end;
          return [
            final2,
            (0, unescape_js_1.unescape)(src),
            this.#hasMagic = !!this.#hasMagic,
            this.#uflag
          ];
        }
        const repeated = this.type === "*" || this.type === "+";
        const start = this.type === "!" ? "(?:(?!(?:" : "(?:";
        let body = this.#partsToRegExp(dot);
        if (this.isStart() && this.isEnd() && !body && this.type !== "!") {
          const s3 = this.toString();
          this.#parts = [s3];
          this.type = null;
          this.#hasMagic = void 0;
          return [s3, (0, unescape_js_1.unescape)(this.toString()), false, false];
        }
        let bodyDotAllowed = !repeated || allowDot || dot || !startNoDot4 ? "" : this.#partsToRegExp(true);
        if (bodyDotAllowed === body) {
          bodyDotAllowed = "";
        }
        if (bodyDotAllowed) {
          body = `(?:${body})(?:${bodyDotAllowed})*?`;
        }
        let final = "";
        if (this.type === "!" && this.#emptyExt) {
          final = (this.isStart() && !dot ? startNoDot4 : "") + starNoEmpty4;
        } else {
          const close = this.type === "!" ? (
            // !() must match something,but !(x) can match ''
            "))" + (this.isStart() && !dot && !allowDot ? startNoDot4 : "") + star7 + ")"
          ) : this.type === "@" ? ")" : this.type === "?" ? ")?" : this.type === "+" && bodyDotAllowed ? ")" : this.type === "*" && bodyDotAllowed ? `)?` : `)${this.type}`;
          final = start + body + close;
        }
        return [
          final,
          (0, unescape_js_1.unescape)(body),
          this.#hasMagic = !!this.#hasMagic,
          this.#uflag
        ];
      }
      #partsToRegExp(dot) {
        return this.#parts.map((p3) => {
          if (typeof p3 === "string") {
            throw new Error("string type in extglob ast??");
          }
          const [re, _3, _hasMagic, uflag] = p3.toRegExpSource(dot);
          this.#uflag = this.#uflag || uflag;
          return re;
        }).filter((p3) => !(this.isStart() && this.isEnd()) || !!p3).join("|");
      }
      static #parseGlob(glob2, hasMagic2, noEmpty = false) {
        let escaping = false;
        let re = "";
        let uflag = false;
        for (let i3 = 0; i3 < glob2.length; i3++) {
          const c3 = glob2.charAt(i3);
          if (escaping) {
            escaping = false;
            re += (reSpecials4.has(c3) ? "\\" : "") + c3;
            continue;
          }
          if (c3 === "\\") {
            if (i3 === glob2.length - 1) {
              re += "\\\\";
            } else {
              escaping = true;
            }
            continue;
          }
          if (c3 === "[") {
            const [src, needUflag, consumed, magic] = (0, brace_expressions_js_1.parseClass)(glob2, i3);
            if (consumed) {
              re += src;
              uflag = uflag || needUflag;
              i3 += consumed - 1;
              hasMagic2 = hasMagic2 || magic;
              continue;
            }
          }
          if (c3 === "*") {
            if (noEmpty && glob2 === "*")
              re += starNoEmpty4;
            else
              re += star7;
            hasMagic2 = true;
            continue;
          }
          if (c3 === "?") {
            re += qmark7;
            hasMagic2 = true;
            continue;
          }
          re += regExpEscape7(c3);
        }
        return [re, (0, unescape_js_1.unescape)(glob2), !!hasMagic2, uflag];
      }
    };
    exports2.AST = AST4;
  }
});

// ../../node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/escape.js
var require_escape = __commonJS({
  "../../node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/escape.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.escape = void 0;
    var escape4 = /* @__PURE__ */ __name((s3, { windowsPathsNoEscape = false } = {}) => {
      return windowsPathsNoEscape ? s3.replace(/[?*()[\]]/g, "[$&]") : s3.replace(/[?*()[\]\\]/g, "\\$&");
    }, "escape");
    exports2.escape = escape4;
  }
});

// ../../node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/index.js
var require_commonjs = __commonJS({
  "../../node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/index.js"(exports2) {
    "use strict";
    var __importDefault2 = exports2 && exports2.__importDefault || function(mod) {
      return mod && mod.__esModule ? mod : { "default": mod };
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.unescape = exports2.escape = exports2.AST = exports2.Minimatch = exports2.match = exports2.makeRe = exports2.braceExpand = exports2.defaults = exports2.filter = exports2.GLOBSTAR = exports2.sep = exports2.minimatch = void 0;
    var brace_expansion_1 = __importDefault2(require_brace_expansion());
    var assert_valid_pattern_js_1 = require_assert_valid_pattern();
    var ast_js_1 = require_ast();
    var escape_js_1 = require_escape();
    var unescape_js_1 = require_unescape();
    var minimatch4 = /* @__PURE__ */ __name((p3, pattern, options = {}) => {
      (0, assert_valid_pattern_js_1.assertValidPattern)(pattern);
      if (!options.nocomment && pattern.charAt(0) === "#") {
        return false;
      }
      return new Minimatch4(pattern, options).match(p3);
    }, "minimatch");
    exports2.minimatch = minimatch4;
    var starDotExtRE4 = /^\*+([^+@!?\*\[\(]*)$/;
    var starDotExtTest4 = /* @__PURE__ */ __name((ext5) => (f3) => !f3.startsWith(".") && f3.endsWith(ext5), "starDotExtTest");
    var starDotExtTestDot4 = /* @__PURE__ */ __name((ext5) => (f3) => f3.endsWith(ext5), "starDotExtTestDot");
    var starDotExtTestNocase4 = /* @__PURE__ */ __name((ext5) => {
      ext5 = ext5.toLowerCase();
      return (f3) => !f3.startsWith(".") && f3.toLowerCase().endsWith(ext5);
    }, "starDotExtTestNocase");
    var starDotExtTestNocaseDot4 = /* @__PURE__ */ __name((ext5) => {
      ext5 = ext5.toLowerCase();
      return (f3) => f3.toLowerCase().endsWith(ext5);
    }, "starDotExtTestNocaseDot");
    var starDotStarRE4 = /^\*+\.\*+$/;
    var starDotStarTest4 = /* @__PURE__ */ __name((f3) => !f3.startsWith(".") && f3.includes("."), "starDotStarTest");
    var starDotStarTestDot4 = /* @__PURE__ */ __name((f3) => f3 !== "." && f3 !== ".." && f3.includes("."), "starDotStarTestDot");
    var dotStarRE4 = /^\.\*+$/;
    var dotStarTest4 = /* @__PURE__ */ __name((f3) => f3 !== "." && f3 !== ".." && f3.startsWith("."), "dotStarTest");
    var starRE4 = /^\*+$/;
    var starTest4 = /* @__PURE__ */ __name((f3) => f3.length !== 0 && !f3.startsWith("."), "starTest");
    var starTestDot4 = /* @__PURE__ */ __name((f3) => f3.length !== 0 && f3 !== "." && f3 !== "..", "starTestDot");
    var qmarksRE4 = /^\?+([^+@!?\*\[\(]*)?$/;
    var qmarksTestNocase4 = /* @__PURE__ */ __name(([$0, ext5 = ""]) => {
      const noext = qmarksTestNoExt4([$0]);
      if (!ext5)
        return noext;
      ext5 = ext5.toLowerCase();
      return (f3) => noext(f3) && f3.toLowerCase().endsWith(ext5);
    }, "qmarksTestNocase");
    var qmarksTestNocaseDot4 = /* @__PURE__ */ __name(([$0, ext5 = ""]) => {
      const noext = qmarksTestNoExtDot4([$0]);
      if (!ext5)
        return noext;
      ext5 = ext5.toLowerCase();
      return (f3) => noext(f3) && f3.toLowerCase().endsWith(ext5);
    }, "qmarksTestNocaseDot");
    var qmarksTestDot4 = /* @__PURE__ */ __name(([$0, ext5 = ""]) => {
      const noext = qmarksTestNoExtDot4([$0]);
      return !ext5 ? noext : (f3) => noext(f3) && f3.endsWith(ext5);
    }, "qmarksTestDot");
    var qmarksTest4 = /* @__PURE__ */ __name(([$0, ext5 = ""]) => {
      const noext = qmarksTestNoExt4([$0]);
      return !ext5 ? noext : (f3) => noext(f3) && f3.endsWith(ext5);
    }, "qmarksTest");
    var qmarksTestNoExt4 = /* @__PURE__ */ __name(([$0]) => {
      const len = $0.length;
      return (f3) => f3.length === len && !f3.startsWith(".");
    }, "qmarksTestNoExt");
    var qmarksTestNoExtDot4 = /* @__PURE__ */ __name(([$0]) => {
      const len = $0.length;
      return (f3) => f3.length === len && f3 !== "." && f3 !== "..";
    }, "qmarksTestNoExtDot");
    var defaultPlatform6 = typeof process === "object" && process ? typeof process.env === "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";
    var path38 = {
      win32: { sep: "\\" },
      posix: { sep: "/" }
    };
    exports2.sep = defaultPlatform6 === "win32" ? path38.win32.sep : path38.posix.sep;
    exports2.minimatch.sep = exports2.sep;
    exports2.GLOBSTAR = Symbol("globstar **");
    exports2.minimatch.GLOBSTAR = exports2.GLOBSTAR;
    var qmark7 = "[^/]";
    var star7 = qmark7 + "*?";
    var twoStarDot4 = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";
    var twoStarNoDot4 = "(?:(?!(?:\\/|^)\\.).)*?";
    var filter4 = /* @__PURE__ */ __name((pattern, options = {}) => (p3) => (0, exports2.minimatch)(p3, pattern, options), "filter");
    exports2.filter = filter4;
    exports2.minimatch.filter = exports2.filter;
    var ext4 = /* @__PURE__ */ __name((a3, b3 = {}) => Object.assign({}, a3, b3), "ext");
    var defaults4 = /* @__PURE__ */ __name((def) => {
      if (!def || typeof def !== "object" || !Object.keys(def).length) {
        return exports2.minimatch;
      }
      const orig = exports2.minimatch;
      const m3 = /* @__PURE__ */ __name((p3, pattern, options = {}) => orig(p3, pattern, ext4(def, options)), "m");
      return Object.assign(m3, {
        Minimatch: class Minimatch extends orig.Minimatch {
          static {
            __name(this, "Minimatch");
          }
          constructor(pattern, options = {}) {
            super(pattern, ext4(def, options));
          }
          static defaults(options) {
            return orig.defaults(ext4(def, options)).Minimatch;
          }
        },
        AST: class AST extends orig.AST {
          static {
            __name(this, "AST");
          }
          /* c8 ignore start */
          constructor(type, parent, options = {}) {
            super(type, parent, ext4(def, options));
          }
          /* c8 ignore stop */
          static fromGlob(pattern, options = {}) {
            return orig.AST.fromGlob(pattern, ext4(def, options));
          }
        },
        unescape: /* @__PURE__ */ __name((s3, options = {}) => orig.unescape(s3, ext4(def, options)), "unescape"),
        escape: /* @__PURE__ */ __name((s3, options = {}) => orig.escape(s3, ext4(def, options)), "escape"),
        filter: /* @__PURE__ */ __name((pattern, options = {}) => orig.filter(pattern, ext4(def, options)), "filter"),
        defaults: /* @__PURE__ */ __name((options) => orig.defaults(ext4(def, options)), "defaults"),
        makeRe: /* @__PURE__ */ __name((pattern, options = {}) => orig.makeRe(pattern, ext4(def, options)), "makeRe"),
        braceExpand: /* @__PURE__ */ __name((pattern, options = {}) => orig.braceExpand(pattern, ext4(def, options)), "braceExpand"),
        match: /* @__PURE__ */ __name((list2, pattern, options = {}) => orig.match(list2, pattern, ext4(def, options)), "match"),
        sep: orig.sep,
        GLOBSTAR: exports2.GLOBSTAR
      });
    }, "defaults");
    exports2.defaults = defaults4;
    exports2.minimatch.defaults = exports2.defaults;
    var braceExpand4 = /* @__PURE__ */ __name((pattern, options = {}) => {
      (0, assert_valid_pattern_js_1.assertValidPattern)(pattern);
      if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) {
        return [pattern];
      }
      return (0, brace_expansion_1.default)(pattern);
    }, "braceExpand");
    exports2.braceExpand = braceExpand4;
    exports2.minimatch.braceExpand = exports2.braceExpand;
    var makeRe4 = /* @__PURE__ */ __name((pattern, options = {}) => new Minimatch4(pattern, options).makeRe(), "makeRe");
    exports2.makeRe = makeRe4;
    exports2.minimatch.makeRe = exports2.makeRe;
    var match4 = /* @__PURE__ */ __name((list2, pattern, options = {}) => {
      const mm = new Minimatch4(pattern, options);
      list2 = list2.filter((f3) => mm.match(f3));
      if (mm.options.nonull && !list2.length) {
        list2.push(pattern);
      }
      return list2;
    }, "match");
    exports2.match = match4;
    exports2.minimatch.match = exports2.match;
    var globMagic4 = /[?*]|[+@!]\(.*?\)|\[|\]/;
    var regExpEscape7 = /* @__PURE__ */ __name((s3) => s3.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), "regExpEscape");
    var Minimatch4 = class {
      static {
        __name(this, "Minimatch");
      }
      options;
      set;
      pattern;
      windowsPathsNoEscape;
      nonegate;
      negate;
      comment;
      empty;
      preserveMultipleSlashes;
      partial;
      globSet;
      globParts;
      nocase;
      isWindows;
      platform;
      windowsNoMagicRoot;
      regexp;
      constructor(pattern, options = {}) {
        (0, assert_valid_pattern_js_1.assertValidPattern)(pattern);
        options = options || {};
        this.options = options;
        this.pattern = pattern;
        this.platform = options.platform || defaultPlatform6;
        this.isWindows = this.platform === "win32";
        this.windowsPathsNoEscape = !!options.windowsPathsNoEscape || options.allowWindowsEscape === false;
        if (this.windowsPathsNoEscape) {
          this.pattern = this.pattern.replace(/\\/g, "/");
        }
        this.preserveMultipleSlashes = !!options.preserveMultipleSlashes;
        this.regexp = null;
        this.negate = false;
        this.nonegate = !!options.nonegate;
        this.comment = false;
        this.empty = false;
        this.partial = !!options.partial;
        this.nocase = !!this.options.nocase;
        this.windowsNoMagicRoot = options.windowsNoMagicRoot !== void 0 ? options.windowsNoMagicRoot : !!(this.isWindows && this.nocase);
        this.globSet = [];
        this.globParts = [];
        this.set = [];
        this.make();
      }
      hasMagic() {
        if (this.options.magicalBraces && this.set.length > 1) {
          return true;
        }
        for (const pattern of this.set) {
          for (const part of pattern) {
            if (typeof part !== "string")
              return true;
          }
        }
        return false;
      }
      debug(..._3) {
      }
      make() {
        const pattern = this.pattern;
        const options = this.options;
        if (!options.nocomment && pattern.charAt(0) === "#") {
          this.comment = true;
          return;
        }
        if (!pattern) {
          this.empty = true;
          return;
        }
        this.parseNegate();
        this.globSet = [...new Set(this.braceExpand())];
        if (options.debug) {
          this.debug = (...args) => console.error(...args);
        }
        this.debug(this.pattern, this.globSet);
        const rawGlobParts = this.globSet.map((s3) => this.slashSplit(s3));
        this.globParts = this.preprocess(rawGlobParts);
        this.debug(this.pattern, this.globParts);
        let set = this.globParts.map((s3, _3, __) => {
          if (this.isWindows && this.windowsNoMagicRoot) {
            const isUNC = s3[0] === "" && s3[1] === "" && (s3[2] === "?" || !globMagic4.test(s3[2])) && !globMagic4.test(s3[3]);
            const isDrive = /^[a-z]:/i.test(s3[0]);
            if (isUNC) {
              return [...s3.slice(0, 4), ...s3.slice(4).map((ss) => this.parse(ss))];
            } else if (isDrive) {
              return [s3[0], ...s3.slice(1).map((ss) => this.parse(ss))];
            }
          }
          return s3.map((ss) => this.parse(ss));
        });
        this.debug(this.pattern, set);
        this.set = set.filter((s3) => s3.indexOf(false) === -1);
        if (this.isWindows) {
          for (let i3 = 0; i3 < this.set.length; i3++) {
            const p3 = this.set[i3];
            if (p3[0] === "" && p3[1] === "" && this.globParts[i3][2] === "?" && typeof p3[3] === "string" && /^[a-z]:$/i.test(p3[3])) {
              p3[2] = "?";
            }
          }
        }
        this.debug(this.pattern, this.set);
      }
      // various transforms to equivalent pattern sets that are
      // faster to process in a filesystem walk.  The goal is to
      // eliminate what we can, and push all ** patterns as far
      // to the right as possible, even if it increases the number
      // of patterns that we have to process.
      preprocess(globParts) {
        if (this.options.noglobstar) {
          for (let i3 = 0; i3 < globParts.length; i3++) {
            for (let j3 = 0; j3 < globParts[i3].length; j3++) {
              if (globParts[i3][j3] === "**") {
                globParts[i3][j3] = "*";
              }
            }
          }
        }
        const { optimizationLevel = 1 } = this.options;
        if (optimizationLevel >= 2) {
          globParts = this.firstPhasePreProcess(globParts);
          globParts = this.secondPhasePreProcess(globParts);
        } else if (optimizationLevel >= 1) {
          globParts = this.levelOneOptimize(globParts);
        } else {
          globParts = this.adjascentGlobstarOptimize(globParts);
        }
        return globParts;
      }
      // just get rid of adjascent ** portions
      adjascentGlobstarOptimize(globParts) {
        return globParts.map((parts) => {
          let gs = -1;
          while (-1 !== (gs = parts.indexOf("**", gs + 1))) {
            let i3 = gs;
            while (parts[i3 + 1] === "**") {
              i3++;
            }
            if (i3 !== gs) {
              parts.splice(gs, i3 - gs);
            }
          }
          return parts;
        });
      }
      // get rid of adjascent ** and resolve .. portions
      levelOneOptimize(globParts) {
        return globParts.map((parts) => {
          parts = parts.reduce((set, part) => {
            const prev = set[set.length - 1];
            if (part === "**" && prev === "**") {
              return set;
            }
            if (part === "..") {
              if (prev && prev !== ".." && prev !== "." && prev !== "**") {
                set.pop();
                return set;
              }
            }
            set.push(part);
            return set;
          }, []);
          return parts.length === 0 ? [""] : parts;
        });
      }
      levelTwoFileOptimize(parts) {
        if (!Array.isArray(parts)) {
          parts = this.slashSplit(parts);
        }
        let didSomething = false;
        do {
          didSomething = false;
          if (!this.preserveMultipleSlashes) {
            for (let i3 = 1; i3 < parts.length - 1; i3++) {
              const p3 = parts[i3];
              if (i3 === 1 && p3 === "" && parts[0] === "")
                continue;
              if (p3 === "." || p3 === "") {
                didSomething = true;
                parts.splice(i3, 1);
                i3--;
              }
            }
            if (parts[0] === "." && parts.length === 2 && (parts[1] === "." || parts[1] === "")) {
              didSomething = true;
              parts.pop();
            }
          }
          let dd = 0;
          while (-1 !== (dd = parts.indexOf("..", dd + 1))) {
            const p3 = parts[dd - 1];
            if (p3 && p3 !== "." && p3 !== ".." && p3 !== "**") {
              didSomething = true;
              parts.splice(dd - 1, 2);
              dd -= 2;
            }
          }
        } while (didSomething);
        return parts.length === 0 ? [""] : parts;
      }
      // First phase: single-pattern processing
      // <pre> is 1 or more portions
      // <rest> is 1 or more portions
      // <p> is any portion other than ., .., '', or **
      // <e> is . or ''
      //
      // **/.. is *brutal* for filesystem walking performance, because
      // it effectively resets the recursive walk each time it occurs,
      // and ** cannot be reduced out by a .. pattern part like a regexp
      // or most strings (other than .., ., and '') can be.
      //
      // <pre>/**/../<p>/<p>/<rest> -> {<pre>/../<p>/<p>/<rest>,<pre>/**/<p>/<p>/<rest>}
      // <pre>/<e>/<rest> -> <pre>/<rest>
      // <pre>/<p>/../<rest> -> <pre>/<rest>
      // **/**/<rest> -> **/<rest>
      //
      // **/*/<rest> -> */**/<rest> <== not valid because ** doesn't follow
      // this WOULD be allowed if ** did follow symlinks, or * didn't
      firstPhasePreProcess(globParts) {
        let didSomething = false;
        do {
          didSomething = false;
          for (let parts of globParts) {
            let gs = -1;
            while (-1 !== (gs = parts.indexOf("**", gs + 1))) {
              let gss = gs;
              while (parts[gss + 1] === "**") {
                gss++;
              }
              if (gss > gs) {
                parts.splice(gs + 1, gss - gs);
              }
              let next = parts[gs + 1];
              const p3 = parts[gs + 2];
              const p22 = parts[gs + 3];
              if (next !== "..")
                continue;
              if (!p3 || p3 === "." || p3 === ".." || !p22 || p22 === "." || p22 === "..") {
                continue;
              }
              didSomething = true;
              parts.splice(gs, 1);
              const other = parts.slice(0);
              other[gs] = "**";
              globParts.push(other);
              gs--;
            }
            if (!this.preserveMultipleSlashes) {
              for (let i3 = 1; i3 < parts.length - 1; i3++) {
                const p3 = parts[i3];
                if (i3 === 1 && p3 === "" && parts[0] === "")
                  continue;
                if (p3 === "." || p3 === "") {
                  didSomething = true;
                  parts.splice(i3, 1);
                  i3--;
                }
              }
              if (parts[0] === "." && parts.length === 2 && (parts[1] === "." || parts[1] === "")) {
                didSomething = true;
                parts.pop();
              }
            }
            let dd = 0;
            while (-1 !== (dd = parts.indexOf("..", dd + 1))) {
              const p3 = parts[dd - 1];
              if (p3 && p3 !== "." && p3 !== ".." && p3 !== "**") {
                didSomething = true;
                const needDot = dd === 1 && parts[dd + 1] === "**";
                const splin = needDot ? ["."] : [];
                parts.splice(dd - 1, 2, ...splin);
                if (parts.length === 0)
                  parts.push("");
                dd -= 2;
              }
            }
          }
        } while (didSomething);
        return globParts;
      }
      // second phase: multi-pattern dedupes
      // {<pre>/*/<rest>,<pre>/<p>/<rest>} -> <pre>/*/<rest>
      // {<pre>/<rest>,<pre>/<rest>} -> <pre>/<rest>
      // {<pre>/**/<rest>,<pre>/<rest>} -> <pre>/**/<rest>
      //
      // {<pre>/**/<rest>,<pre>/**/<p>/<rest>} -> <pre>/**/<rest>
      // ^-- not valid because ** doens't follow symlinks
      secondPhasePreProcess(globParts) {
        for (let i3 = 0; i3 < globParts.length - 1; i3++) {
          for (let j3 = i3 + 1; j3 < globParts.length; j3++) {
            const matched = this.partsMatch(globParts[i3], globParts[j3], !this.preserveMultipleSlashes);
            if (matched) {
              globParts[i3] = [];
              globParts[j3] = matched;
              break;
            }
          }
        }
        return globParts.filter((gs) => gs.length);
      }
      partsMatch(a3, b3, emptyGSMatch = false) {
        let ai = 0;
        let bi = 0;
        let result2 = [];
        let which = "";
        while (ai < a3.length && bi < b3.length) {
          if (a3[ai] === b3[bi]) {
            result2.push(which === "b" ? b3[bi] : a3[ai]);
            ai++;
            bi++;
          } else if (emptyGSMatch && a3[ai] === "**" && b3[bi] === a3[ai + 1]) {
            result2.push(a3[ai]);
            ai++;
          } else if (emptyGSMatch && b3[bi] === "**" && a3[ai] === b3[bi + 1]) {
            result2.push(b3[bi]);
            bi++;
          } else if (a3[ai] === "*" && b3[bi] && (this.options.dot || !b3[bi].startsWith(".")) && b3[bi] !== "**") {
            if (which === "b")
              return false;
            which = "a";
            result2.push(a3[ai]);
            ai++;
            bi++;
          } else if (b3[bi] === "*" && a3[ai] && (this.options.dot || !a3[ai].startsWith(".")) && a3[ai] !== "**") {
            if (which === "a")
              return false;
            which = "b";
            result2.push(b3[bi]);
            ai++;
            bi++;
          } else {
            return false;
          }
        }
        return a3.length === b3.length && result2;
      }
      parseNegate() {
        if (this.nonegate)
          return;
        const pattern = this.pattern;
        let negate = false;
        let negateOffset = 0;
        for (let i3 = 0; i3 < pattern.length && pattern.charAt(i3) === "!"; i3++) {
          negate = !negate;
          negateOffset++;
        }
        if (negateOffset)
          this.pattern = pattern.slice(negateOffset);
        this.negate = negate;
      }
      // set partial to true to test if, for example,
      // "/a/b" matches the start of "/*/b/*/d"
      // Partial means, if you run out of file before you run
      // out of pattern, then that's fine, as long as all
      // the parts match.
      matchOne(file, pattern, partial = false) {
        const options = this.options;
        if (this.isWindows) {
          const fileDrive = typeof file[0] === "string" && /^[a-z]:$/i.test(file[0]);
          const fileUNC = !fileDrive && file[0] === "" && file[1] === "" && file[2] === "?" && /^[a-z]:$/i.test(file[3]);
          const patternDrive = typeof pattern[0] === "string" && /^[a-z]:$/i.test(pattern[0]);
          const patternUNC = !patternDrive && pattern[0] === "" && pattern[1] === "" && pattern[2] === "?" && typeof pattern[3] === "string" && /^[a-z]:$/i.test(pattern[3]);
          const fdi = fileUNC ? 3 : fileDrive ? 0 : void 0;
          const pdi = patternUNC ? 3 : patternDrive ? 0 : void 0;
          if (typeof fdi === "number" && typeof pdi === "number") {
            const [fd, pd] = [file[fdi], pattern[pdi]];
            if (fd.toLowerCase() === pd.toLowerCase()) {
              pattern[pdi] = fd;
              if (pdi > fdi) {
                pattern = pattern.slice(pdi);
              } else if (fdi > pdi) {
                file = file.slice(fdi);
              }
            }
          }
        }
        const { optimizationLevel = 1 } = this.options;
        if (optimizationLevel >= 2) {
          file = this.levelTwoFileOptimize(file);
        }
        this.debug("matchOne", this, { file, pattern });
        this.debug("matchOne", file.length, pattern.length);
        for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
          this.debug("matchOne loop");
          var p3 = pattern[pi];
          var f3 = file[fi];
          this.debug(pattern, p3, f3);
          if (p3 === false) {
            return false;
          }
          if (p3 === exports2.GLOBSTAR) {
            this.debug("GLOBSTAR", [pattern, p3, f3]);
            var fr = fi;
            var pr = pi + 1;
            if (pr === pl) {
              this.debug("** at the end");
              for (; fi < fl; fi++) {
                if (file[fi] === "." || file[fi] === ".." || !options.dot && file[fi].charAt(0) === ".")
                  return false;
              }
              return true;
            }
            while (fr < fl) {
              var swallowee = file[fr];
              this.debug("\nglobstar while", file, fr, pattern, pr, swallowee);
              if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {
                this.debug("globstar found match!", fr, fl, swallowee);
                return true;
              } else {
                if (swallowee === "." || swallowee === ".." || !options.dot && swallowee.charAt(0) === ".") {
                  this.debug("dot detected!", file, fr, pattern, pr);
                  break;
                }
                this.debug("globstar swallow a segment, and continue");
                fr++;
              }
            }
            if (partial) {
              this.debug("\n>>> no match, partial?", file, fr, pattern, pr);
              if (fr === fl) {
                return true;
              }
            }
            return false;
          }
          let hit;
          if (typeof p3 === "string") {
            hit = f3 === p3;
            this.debug("string match", p3, f3, hit);
          } else {
            hit = p3.test(f3);
            this.debug("pattern match", p3, f3, hit);
          }
          if (!hit)
            return false;
        }
        if (fi === fl && pi === pl) {
          return true;
        } else if (fi === fl) {
          return partial;
        } else if (pi === pl) {
          return fi === fl - 1 && file[fi] === "";
        } else {
          throw new Error("wtf?");
        }
      }
      braceExpand() {
        return (0, exports2.braceExpand)(this.pattern, this.options);
      }
      parse(pattern) {
        (0, assert_valid_pattern_js_1.assertValidPattern)(pattern);
        const options = this.options;
        if (pattern === "**")
          return exports2.GLOBSTAR;
        if (pattern === "")
          return "";
        let m3;
        let fastTest = null;
        if (m3 = pattern.match(starRE4)) {
          fastTest = options.dot ? starTestDot4 : starTest4;
        } else if (m3 = pattern.match(starDotExtRE4)) {
          fastTest = (options.nocase ? options.dot ? starDotExtTestNocaseDot4 : starDotExtTestNocase4 : options.dot ? starDotExtTestDot4 : starDotExtTest4)(m3[1]);
        } else if (m3 = pattern.match(qmarksRE4)) {
          fastTest = (options.nocase ? options.dot ? qmarksTestNocaseDot4 : qmarksTestNocase4 : options.dot ? qmarksTestDot4 : qmarksTest4)(m3);
        } else if (m3 = pattern.match(starDotStarRE4)) {
          fastTest = options.dot ? starDotStarTestDot4 : starDotStarTest4;
        } else if (m3 = pattern.match(dotStarRE4)) {
          fastTest = dotStarTest4;
        }
        const re = ast_js_1.AST.fromGlob(pattern, this.options).toMMPattern();
        if (fastTest && typeof re === "object") {
          Reflect.defineProperty(re, "test", { value: fastTest });
        }
        return re;
      }
      makeRe() {
        if (this.regexp || this.regexp === false)
          return this.regexp;
        const set = this.set;
        if (!set.length) {
          this.regexp = false;
          return this.regexp;
        }
        const options = this.options;
        const twoStar = options.noglobstar ? star7 : options.dot ? twoStarDot4 : twoStarNoDot4;
        const flags = new Set(options.nocase ? ["i"] : []);
        let re = set.map((pattern) => {
          const pp = pattern.map((p3) => {
            if (p3 instanceof RegExp) {
              for (const f3 of p3.flags.split(""))
                flags.add(f3);
            }
            return typeof p3 === "string" ? regExpEscape7(p3) : p3 === exports2.GLOBSTAR ? exports2.GLOBSTAR : p3._src;
          });
          pp.forEach((p3, i3) => {
            const next = pp[i3 + 1];
            const prev = pp[i3 - 1];
            if (p3 !== exports2.GLOBSTAR || prev === exports2.GLOBSTAR) {
              return;
            }
            if (prev === void 0) {
              if (next !== void 0 && next !== exports2.GLOBSTAR) {
                pp[i3 + 1] = "(?:\\/|" + twoStar + "\\/)?" + next;
              } else {
                pp[i3] = twoStar;
              }
            } else if (next === void 0) {
              pp[i3 - 1] = prev + "(?:\\/|" + twoStar + ")?";
            } else if (next !== exports2.GLOBSTAR) {
              pp[i3 - 1] = prev + "(?:\\/|\\/" + twoStar + "\\/)" + next;
              pp[i3 + 1] = exports2.GLOBSTAR;
            }
          });
          return pp.filter((p3) => p3 !== exports2.GLOBSTAR).join("/");
        }).join("|");
        const [open, close] = set.length > 1 ? ["(?:", ")"] : ["", ""];
        re = "^" + open + re + close + "$";
        if (this.negate)
          re = "^(?!" + re + ").+$";
        try {
          this.regexp = new RegExp(re, [...flags].join(""));
        } catch (ex) {
          this.regexp = false;
        }
        return this.regexp;
      }
      slashSplit(p3) {
        if (this.preserveMultipleSlashes) {
          return p3.split("/");
        } else if (this.isWindows && /^\/\/[^\/]+/.test(p3)) {
          return ["", ...p3.split(/\/+/)];
        } else {
          return p3.split(/\/+/);
        }
      }
      match(f3, partial = this.partial) {
        this.debug("match", f3, this.pattern);
        if (this.comment) {
          return false;
        }
        if (this.empty) {
          return f3 === "";
        }
        if (f3 === "/" && partial) {
          return true;
        }
        const options = this.options;
        if (this.isWindows) {
          f3 = f3.split("\\").join("/");
        }
        const ff = this.slashSplit(f3);
        this.debug(this.pattern, "split", ff);
        const set = this.set;
        this.debug(this.pattern, "set", set);
        let filename = ff[ff.length - 1];
        if (!filename) {
          for (let i3 = ff.length - 2; !filename && i3 >= 0; i3--) {
            filename = ff[i3];
          }
        }
        for (let i3 = 0; i3 < set.length; i3++) {
          const pattern = set[i3];
          let file = ff;
          if (options.matchBase && pattern.length === 1) {
            file = [filename];
          }
          const hit = this.matchOne(file, pattern, partial);
          if (hit) {
            if (options.flipNegate) {
              return true;
            }
            return !this.negate;
          }
        }
        if (options.flipNegate) {
          return false;
        }
        return this.negate;
      }
      static defaults(def) {
        return exports2.minimatch.defaults(def).Minimatch;
      }
    };
    exports2.Minimatch = Minimatch4;
    var ast_js_2 = require_ast();
    Object.defineProperty(exports2, "AST", { enumerable: true, get: /* @__PURE__ */ __name(function() {
      return ast_js_2.AST;
    }, "get") });
    var escape_js_2 = require_escape();
    Object.defineProperty(exports2, "escape", { enumerable: true, get: /* @__PURE__ */ __name(function() {
      return escape_js_2.escape;
    }, "get") });
    var unescape_js_2 = require_unescape();
    Object.defineProperty(exports2, "unescape", { enumerable: true, get: /* @__PURE__ */ __name(function() {
      return unescape_js_2.unescape;
    }, "get") });
    exports2.minimatch.AST = ast_js_1.AST;
    exports2.minimatch.Minimatch = Minimatch4;
    exports2.minimatch.escape = escape_js_1.escape;
    exports2.minimatch.unescape = unescape_js_1.unescape;
  }
});

// ../../node_modules/lru-cache/dist/commonjs/index.js
var require_commonjs2 = __commonJS({
  "../../node_modules/lru-cache/dist/commonjs/index.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.LRUCache = void 0;
    var perf2 = typeof performance === "object" && performance && typeof performance.now === "function" ? performance : Date;
    var warned2 = /* @__PURE__ */ new Set();
    var PROCESS2 = typeof process === "object" && !!process ? process : {};
    var emitWarning2 = /* @__PURE__ */ __name((msg, type, code, fn) => {
      typeof PROCESS2.emitWarning === "function" ? PROCESS2.emitWarning(msg, type, code, fn) : console.error(`[${code}] ${type}: ${msg}`);
    }, "emitWarning");
    var AC2 = globalThis.AbortController;
    var AS2 = globalThis.AbortSignal;
    if (typeof AC2 === "undefined") {
      AS2 = class AbortSignal {
        static {
          __name(this, "AbortSignal");
        }
        onabort;
        _onabort = [];
        reason;
        aborted = false;
        addEventListener(_3, fn) {
          this._onabort.push(fn);
        }
      };
      AC2 = class AbortController {
        static {
          __name(this, "AbortController");
        }
        constructor() {
          warnACPolyfill();
        }
        signal = new AS2();
        abort(reason) {
          if (this.signal.aborted)
            return;
          this.signal.reason = reason;
          this.signal.aborted = true;
          for (const fn of this.signal._onabort) {
            fn(reason);
          }
          this.signal.onabort?.(reason);
        }
      };
      let printACPolyfillWarning = PROCESS2.env?.LRU_CACHE_IGNORE_AC_WARNING !== "1";
      const warnACPolyfill = /* @__PURE__ */ __name(() => {
        if (!printACPolyfillWarning)
          return;
        printACPolyfillWarning = false;
        emitWarning2("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.", "NO_ABORT_CONTROLLER", "ENOTSUP", warnACPolyfill);
      }, "warnACPolyfill");
    }
    var shouldWarn2 = /* @__PURE__ */ __name((code) => !warned2.has(code), "shouldWarn");
    var TYPE2 = Symbol("type");
    var isPosInt2 = /* @__PURE__ */ __name((n3) => n3 && n3 === Math.floor(n3) && n3 > 0 && isFinite(n3), "isPosInt");
    var getUintArray2 = /* @__PURE__ */ __name((max) => !isPosInt2(max) ? null : max <= Math.pow(2, 8) ? Uint8Array : max <= Math.pow(2, 16) ? Uint16Array : max <= Math.pow(2, 32) ? Uint32Array : max <= Number.MAX_SAFE_INTEGER ? ZeroArray2 : null, "getUintArray");
    var ZeroArray2 = class extends Array {
      static {
        __name(this, "ZeroArray");
      }
      constructor(size) {
        super(size);
        this.fill(0);
      }
    };
    var Stack2 = class _Stack {
      static {
        __name(this, "Stack");
      }
      heap;
      length;
      // private constructor
      static #constructing = false;
      static create(max) {
        const HeapCls = getUintArray2(max);
        if (!HeapCls)
          return [];
        _Stack.#constructing = true;
        const s3 = new _Stack(max, HeapCls);
        _Stack.#constructing = false;
        return s3;
      }
      constructor(max, HeapCls) {
        if (!_Stack.#constructing) {
          throw new TypeError("instantiate Stack using Stack.create(n)");
        }
        this.heap = new HeapCls(max);
        this.length = 0;
      }
      push(n3) {
        this.heap[this.length++] = n3;
      }
      pop() {
        return this.heap[--this.length];
      }
    };
    var LRUCache2 = class _LRUCache {
      static {
        __name(this, "LRUCache");
      }
      // options that cannot be changed without disaster
      #max;
      #maxSize;
      #dispose;
      #disposeAfter;
      #fetchMethod;
      #memoMethod;
      /**
       * {@link LRUCache.OptionsBase.ttl}
       */
      ttl;
      /**
       * {@link LRUCache.OptionsBase.ttlResolution}
       */
      ttlResolution;
      /**
       * {@link LRUCache.OptionsBase.ttlAutopurge}
       */
      ttlAutopurge;
      /**
       * {@link LRUCache.OptionsBase.updateAgeOnGet}
       */
      updateAgeOnGet;
      /**
       * {@link LRUCache.OptionsBase.updateAgeOnHas}
       */
      updateAgeOnHas;
      /**
       * {@link LRUCache.OptionsBase.allowStale}
       */
      allowStale;
      /**
       * {@link LRUCache.OptionsBase.noDisposeOnSet}
       */
      noDisposeOnSet;
      /**
       * {@link LRUCache.OptionsBase.noUpdateTTL}
       */
      noUpdateTTL;
      /**
       * {@link LRUCache.OptionsBase.maxEntrySize}
       */
      maxEntrySize;
      /**
       * {@link LRUCache.OptionsBase.sizeCalculation}
       */
      sizeCalculation;
      /**
       * {@link LRUCache.OptionsBase.noDeleteOnFetchRejection}
       */
      noDeleteOnFetchRejection;
      /**
       * {@link LRUCache.OptionsBase.noDeleteOnStaleGet}
       */
      noDeleteOnStaleGet;
      /**
       * {@link LRUCache.OptionsBase.allowStaleOnFetchAbort}
       */
      allowStaleOnFetchAbort;
      /**
       * {@link LRUCache.OptionsBase.allowStaleOnFetchRejection}
       */
      allowStaleOnFetchRejection;
      /**
       * {@link LRUCache.OptionsBase.ignoreFetchAbort}
       */
      ignoreFetchAbort;
      // computed properties
      #size;
      #calculatedSize;
      #keyMap;
      #keyList;
      #valList;
      #next;
      #prev;
      #head;
      #tail;
      #free;
      #disposed;
      #sizes;
      #starts;
      #ttls;
      #hasDispose;
      #hasFetchMethod;
      #hasDisposeAfter;
      /**
       * Do not call this method unless you need to inspect the
       * inner workings of the cache.  If anything returned by this
       * object is modified in any way, strange breakage may occur.
       *
       * These fields are private for a reason!
       *
       * @internal
       */
      static unsafeExposeInternals(c3) {
        return {
          // properties
          starts: c3.#starts,
          ttls: c3.#ttls,
          sizes: c3.#sizes,
          keyMap: c3.#keyMap,
          keyList: c3.#keyList,
          valList: c3.#valList,
          next: c3.#next,
          prev: c3.#prev,
          get head() {
            return c3.#head;
          },
          get tail() {
            return c3.#tail;
          },
          free: c3.#free,
          // methods
          isBackgroundFetch: /* @__PURE__ */ __name((p3) => c3.#isBackgroundFetch(p3), "isBackgroundFetch"),
          backgroundFetch: /* @__PURE__ */ __name((k3, index, options, context) => c3.#backgroundFetch(k3, index, options, context), "backgroundFetch"),
          moveToTail: /* @__PURE__ */ __name((index) => c3.#moveToTail(index), "moveToTail"),
          indexes: /* @__PURE__ */ __name((options) => c3.#indexes(options), "indexes"),
          rindexes: /* @__PURE__ */ __name((options) => c3.#rindexes(options), "rindexes"),
          isStale: /* @__PURE__ */ __name((index) => c3.#isStale(index), "isStale")
        };
      }
      // Protected read-only members
      /**
       * {@link LRUCache.OptionsBase.max} (read-only)
       */
      get max() {
        return this.#max;
      }
      /**
       * {@link LRUCache.OptionsBase.maxSize} (read-only)
       */
      get maxSize() {
        return this.#maxSize;
      }
      /**
       * The total computed size of items in the cache (read-only)
       */
      get calculatedSize() {
        return this.#calculatedSize;
      }
      /**
       * The number of items stored in the cache (read-only)
       */
      get size() {
        return this.#size;
      }
      /**
       * {@link LRUCache.OptionsBase.fetchMethod} (read-only)
       */
      get fetchMethod() {
        return this.#fetchMethod;
      }
      get memoMethod() {
        return this.#memoMethod;
      }
      /**
       * {@link LRUCache.OptionsBase.dispose} (read-only)
       */
      get dispose() {
        return this.#dispose;
      }
      /**
       * {@link LRUCache.OptionsBase.disposeAfter} (read-only)
       */
      get disposeAfter() {
        return this.#disposeAfter;
      }
      constructor(options) {
        const { max = 0, ttl, ttlResolution = 1, ttlAutopurge, updateAgeOnGet, updateAgeOnHas, allowStale, dispose, disposeAfter, noDisposeOnSet, noUpdateTTL, maxSize = 0, maxEntrySize = 0, sizeCalculation, fetchMethod, memoMethod, noDeleteOnFetchRejection, noDeleteOnStaleGet, allowStaleOnFetchRejection, allowStaleOnFetchAbort, ignoreFetchAbort } = options;
        if (max !== 0 && !isPosInt2(max)) {
          throw new TypeError("max option must be a nonnegative integer");
        }
        const UintArray = max ? getUintArray2(max) : Array;
        if (!UintArray) {
          throw new Error("invalid max value: " + max);
        }
        this.#max = max;
        this.#maxSize = maxSize;
        this.maxEntrySize = maxEntrySize || this.#maxSize;
        this.sizeCalculation = sizeCalculation;
        if (this.sizeCalculation) {
          if (!this.#maxSize && !this.maxEntrySize) {
            throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");
          }
          if (typeof this.sizeCalculation !== "function") {
            throw new TypeError("sizeCalculation set to non-function");
          }
        }
        if (memoMethod !== void 0 && typeof memoMethod !== "function") {
          throw new TypeError("memoMethod must be a function if defined");
        }
        this.#memoMethod = memoMethod;
        if (fetchMethod !== void 0 && typeof fetchMethod !== "function") {
          throw new TypeError("fetchMethod must be a function if specified");
        }
        this.#fetchMethod = fetchMethod;
        this.#hasFetchMethod = !!fetchMethod;
        this.#keyMap = /* @__PURE__ */ new Map();
        this.#keyList = new Array(max).fill(void 0);
        this.#valList = new Array(max).fill(void 0);
        this.#next = new UintArray(max);
        this.#prev = new UintArray(max);
        this.#head = 0;
        this.#tail = 0;
        this.#free = Stack2.create(max);
        this.#size = 0;
        this.#calculatedSize = 0;
        if (typeof dispose === "function") {
          this.#dispose = dispose;
        }
        if (typeof disposeAfter === "function") {
          this.#disposeAfter = disposeAfter;
          this.#disposed = [];
        } else {
          this.#disposeAfter = void 0;
          this.#disposed = void 0;
        }
        this.#hasDispose = !!this.#dispose;
        this.#hasDisposeAfter = !!this.#disposeAfter;
        this.noDisposeOnSet = !!noDisposeOnSet;
        this.noUpdateTTL = !!noUpdateTTL;
        this.noDeleteOnFetchRejection = !!noDeleteOnFetchRejection;
        this.allowStaleOnFetchRejection = !!allowStaleOnFetchRejection;
        this.allowStaleOnFetchAbort = !!allowStaleOnFetchAbort;
        this.ignoreFetchAbort = !!ignoreFetchAbort;
        if (this.maxEntrySize !== 0) {
          if (this.#maxSize !== 0) {
            if (!isPosInt2(this.#maxSize)) {
              throw new TypeError("maxSize must be a positive integer if specified");
            }
          }
          if (!isPosInt2(this.maxEntrySize)) {
            throw new TypeError("maxEntrySize must be a positive integer if specified");
          }
          this.#initializeSizeTracking();
        }
        this.allowStale = !!allowStale;
        this.noDeleteOnStaleGet = !!noDeleteOnStaleGet;
        this.updateAgeOnGet = !!updateAgeOnGet;
        this.updateAgeOnHas = !!updateAgeOnHas;
        this.ttlResolution = isPosInt2(ttlResolution) || ttlResolution === 0 ? ttlResolution : 1;
        this.ttlAutopurge = !!ttlAutopurge;
        this.ttl = ttl || 0;
        if (this.ttl) {
          if (!isPosInt2(this.ttl)) {
            throw new TypeError("ttl must be a positive integer if specified");
          }
          this.#initializeTTLTracking();
        }
        if (this.#max === 0 && this.ttl === 0 && this.#maxSize === 0) {
          throw new TypeError("At least one of max, maxSize, or ttl is required");
        }
        if (!this.ttlAutopurge && !this.#max && !this.#maxSize) {
          const code = "LRU_CACHE_UNBOUNDED";
          if (shouldWarn2(code)) {
            warned2.add(code);
            const msg = "TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.";
            emitWarning2(msg, "UnboundedCacheWarning", code, _LRUCache);
          }
        }
      }
      /**
       * Return the number of ms left in the item's TTL. If item is not in cache,
       * returns `0`. Returns `Infinity` if item is in cache without a defined TTL.
       */
      getRemainingTTL(key) {
        return this.#keyMap.has(key) ? Infinity : 0;
      }
      #initializeTTLTracking() {
        const ttls = new ZeroArray2(this.#max);
        const starts = new ZeroArray2(this.#max);
        this.#ttls = ttls;
        this.#starts = starts;
        this.#setItemTTL = (index, ttl, start = perf2.now()) => {
          starts[index] = ttl !== 0 ? start : 0;
          ttls[index] = ttl;
          if (ttl !== 0 && this.ttlAutopurge) {
            const t3 = setTimeout(() => {
              if (this.#isStale(index)) {
                this.#delete(this.#keyList[index], "expire");
              }
            }, ttl + 1);
            if (t3.unref) {
              t3.unref();
            }
          }
        };
        this.#updateItemAge = (index) => {
          starts[index] = ttls[index] !== 0 ? perf2.now() : 0;
        };
        this.#statusTTL = (status, index) => {
          if (ttls[index]) {
            const ttl = ttls[index];
            const start = starts[index];
            if (!ttl || !start)
              return;
            status.ttl = ttl;
            status.start = start;
            status.now = cachedNow || getNow();
            const age = status.now - start;
            status.remainingTTL = ttl - age;
          }
        };
        let cachedNow = 0;
        const getNow = /* @__PURE__ */ __name(() => {
          const n3 = perf2.now();
          if (this.ttlResolution > 0) {
            cachedNow = n3;
            const t3 = setTimeout(() => cachedNow = 0, this.ttlResolution);
            if (t3.unref) {
              t3.unref();
            }
          }
          return n3;
        }, "getNow");
        this.getRemainingTTL = (key) => {
          const index = this.#keyMap.get(key);
          if (index === void 0) {
            return 0;
          }
          const ttl = ttls[index];
          const start = starts[index];
          if (!ttl || !start) {
            return Infinity;
          }
          const age = (cachedNow || getNow()) - start;
          return ttl - age;
        };
        this.#isStale = (index) => {
          const s3 = starts[index];
          const t3 = ttls[index];
          return !!t3 && !!s3 && (cachedNow || getNow()) - s3 > t3;
        };
      }
      // conditionally set private methods related to TTL
      #updateItemAge = /* @__PURE__ */ __name(() => {
      }, "#updateItemAge");
      #statusTTL = /* @__PURE__ */ __name(() => {
      }, "#statusTTL");
      #setItemTTL = /* @__PURE__ */ __name(() => {
      }, "#setItemTTL");
      /* c8 ignore stop */
      #isStale = /* @__PURE__ */ __name(() => false, "#isStale");
      #initializeSizeTracking() {
        const sizes = new ZeroArray2(this.#max);
        this.#calculatedSize = 0;
        this.#sizes = sizes;
        this.#removeItemSize = (index) => {
          this.#calculatedSize -= sizes[index];
          sizes[index] = 0;
        };
        this.#requireSize = (k3, v6, size, sizeCalculation) => {
          if (this.#isBackgroundFetch(v6)) {
            return 0;
          }
          if (!isPosInt2(size)) {
            if (sizeCalculation) {
              if (typeof sizeCalculation !== "function") {
                throw new TypeError("sizeCalculation must be a function");
              }
              size = sizeCalculation(v6, k3);
              if (!isPosInt2(size)) {
                throw new TypeError("sizeCalculation return invalid (expect positive integer)");
              }
            } else {
              throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");
            }
          }
          return size;
        };
        this.#addItemSize = (index, size, status) => {
          sizes[index] = size;
          if (this.#maxSize) {
            const maxSize = this.#maxSize - sizes[index];
            while (this.#calculatedSize > maxSize) {
              this.#evict(true);
            }
          }
          this.#calculatedSize += sizes[index];
          if (status) {
            status.entrySize = size;
            status.totalCalculatedSize = this.#calculatedSize;
          }
        };
      }
      #removeItemSize = /* @__PURE__ */ __name((_i) => {
      }, "#removeItemSize");
      #addItemSize = /* @__PURE__ */ __name((_i, _s, _st) => {
      }, "#addItemSize");
      #requireSize = /* @__PURE__ */ __name((_k, _v, size, sizeCalculation) => {
        if (size || sizeCalculation) {
          throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");
        }
        return 0;
      }, "#requireSize");
      *#indexes({ allowStale = this.allowStale } = {}) {
        if (this.#size) {
          for (let i3 = this.#tail; true; ) {
            if (!this.#isValidIndex(i3)) {
              break;
            }
            if (allowStale || !this.#isStale(i3)) {
              yield i3;
            }
            if (i3 === this.#head) {
              break;
            } else {
              i3 = this.#prev[i3];
            }
          }
        }
      }
      *#rindexes({ allowStale = this.allowStale } = {}) {
        if (this.#size) {
          for (let i3 = this.#head; true; ) {
            if (!this.#isValidIndex(i3)) {
              break;
            }
            if (allowStale || !this.#isStale(i3)) {
              yield i3;
            }
            if (i3 === this.#tail) {
              break;
            } else {
              i3 = this.#next[i3];
            }
          }
        }
      }
      #isValidIndex(index) {
        return index !== void 0 && this.#keyMap.get(this.#keyList[index]) === index;
      }
      /**
       * Return a generator yielding `[key, value]` pairs,
       * in order from most recently used to least recently used.
       */
      *entries() {
        for (const i3 of this.#indexes()) {
          if (this.#valList[i3] !== void 0 && this.#keyList[i3] !== void 0 && !this.#isBackgroundFetch(this.#valList[i3])) {
            yield [this.#keyList[i3], this.#valList[i3]];
          }
        }
      }
      /**
       * Inverse order version of {@link LRUCache.entries}
       *
       * Return a generator yielding `[key, value]` pairs,
       * in order from least recently used to most recently used.
       */
      *rentries() {
        for (const i3 of this.#rindexes()) {
          if (this.#valList[i3] !== void 0 && this.#keyList[i3] !== void 0 && !this.#isBackgroundFetch(this.#valList[i3])) {
            yield [this.#keyList[i3], this.#valList[i3]];
          }
        }
      }
      /**
       * Return a generator yielding the keys in the cache,
       * in order from most recently used to least recently used.
       */
      *keys() {
        for (const i3 of this.#indexes()) {
          const k3 = this.#keyList[i3];
          if (k3 !== void 0 && !this.#isBackgroundFetch(this.#valList[i3])) {
            yield k3;
          }
        }
      }
      /**
       * Inverse order version of {@link LRUCache.keys}
       *
       * Return a generator yielding the keys in the cache,
       * in order from least recently used to most recently used.
       */
      *rkeys() {
        for (const i3 of this.#rindexes()) {
          const k3 = this.#keyList[i3];
          if (k3 !== void 0 && !this.#isBackgroundFetch(this.#valList[i3])) {
            yield k3;
          }
        }
      }
      /**
       * Return a generator yielding the values in the cache,
       * in order from most recently used to least recently used.
       */
      *values() {
        for (const i3 of this.#indexes()) {
          const v6 = this.#valList[i3];
          if (v6 !== void 0 && !this.#isBackgroundFetch(this.#valList[i3])) {
            yield this.#valList[i3];
          }
        }
      }
      /**
       * Inverse order version of {@link LRUCache.values}
       *
       * Return a generator yielding the values in the cache,
       * in order from least recently used to most recently used.
       */
      *rvalues() {
        for (const i3 of this.#rindexes()) {
          const v6 = this.#valList[i3];
          if (v6 !== void 0 && !this.#isBackgroundFetch(this.#valList[i3])) {
            yield this.#valList[i3];
          }
        }
      }
      /**
       * Iterating over the cache itself yields the same results as
       * {@link LRUCache.entries}
       */
      [Symbol.iterator]() {
        return this.entries();
      }
      /**
       * A String value that is used in the creation of the default string
       * description of an object. Called by the built-in method
       * `Object.prototype.toString`.
       */
      [Symbol.toStringTag] = "LRUCache";
      /**
       * Find a value for which the supplied fn method returns a truthy value,
       * similar to `Array.find()`. fn is called as `fn(value, key, cache)`.
       */
      find(fn, getOptions = {}) {
        for (const i3 of this.#indexes()) {
          const v6 = this.#valList[i3];
          const value = this.#isBackgroundFetch(v6) ? v6.__staleWhileFetching : v6;
          if (value === void 0)
            continue;
          if (fn(value, this.#keyList[i3], this)) {
            return this.get(this.#keyList[i3], getOptions);
          }
        }
      }
      /**
       * Call the supplied function on each item in the cache, in order from most
       * recently used to least recently used.
       *
       * `fn` is called as `fn(value, key, cache)`.
       *
       * If `thisp` is provided, function will be called in the `this`-context of
       * the provided object, or the cache if no `thisp` object is provided.
       *
       * Does not update age or recenty of use, or iterate over stale values.
       */
      forEach(fn, thisp = this) {
        for (const i3 of this.#indexes()) {
          const v6 = this.#valList[i3];
          const value = this.#isBackgroundFetch(v6) ? v6.__staleWhileFetching : v6;
          if (value === void 0)
            continue;
          fn.call(thisp, value, this.#keyList[i3], this);
        }
      }
      /**
       * The same as {@link LRUCache.forEach} but items are iterated over in
       * reverse order.  (ie, less recently used items are iterated over first.)
       */
      rforEach(fn, thisp = this) {
        for (const i3 of this.#rindexes()) {
          const v6 = this.#valList[i3];
          const value = this.#isBackgroundFetch(v6) ? v6.__staleWhileFetching : v6;
          if (value === void 0)
            continue;
          fn.call(thisp, value, this.#keyList[i3], this);
        }
      }
      /**
       * Delete any stale entries. Returns true if anything was removed,
       * false otherwise.
       */
      purgeStale() {
        let deleted = false;
        for (const i3 of this.#rindexes({ allowStale: true })) {
          if (this.#isStale(i3)) {
            this.#delete(this.#keyList[i3], "expire");
            deleted = true;
          }
        }
        return deleted;
      }
      /**
       * Get the extended info about a given entry, to get its value, size, and
       * TTL info simultaneously. Returns `undefined` if the key is not present.
       *
       * Unlike {@link LRUCache#dump}, which is designed to be portable and survive
       * serialization, the `start` value is always the current timestamp, and the
       * `ttl` is a calculated remaining time to live (negative if expired).
       *
       * Always returns stale values, if their info is found in the cache, so be
       * sure to check for expirations (ie, a negative {@link LRUCache.Entry#ttl})
       * if relevant.
       */
      info(key) {
        const i3 = this.#keyMap.get(key);
        if (i3 === void 0)
          return void 0;
        const v6 = this.#valList[i3];
        const value = this.#isBackgroundFetch(v6) ? v6.__staleWhileFetching : v6;
        if (value === void 0)
          return void 0;
        const entry = { value };
        if (this.#ttls && this.#starts) {
          const ttl = this.#ttls[i3];
          const start = this.#starts[i3];
          if (ttl && start) {
            const remain = ttl - (perf2.now() - start);
            entry.ttl = remain;
            entry.start = Date.now();
          }
        }
        if (this.#sizes) {
          entry.size = this.#sizes[i3];
        }
        return entry;
      }
      /**
       * Return an array of [key, {@link LRUCache.Entry}] tuples which can be
       * passed to {@link LRLUCache#load}.
       *
       * The `start` fields are calculated relative to a portable `Date.now()`
       * timestamp, even if `performance.now()` is available.
       *
       * Stale entries are always included in the `dump`, even if
       * {@link LRUCache.OptionsBase.allowStale} is false.
       *
       * Note: this returns an actual array, not a generator, so it can be more
       * easily passed around.
       */
      dump() {
        const arr = [];
        for (const i3 of this.#indexes({ allowStale: true })) {
          const key = this.#keyList[i3];
          const v6 = this.#valList[i3];
          const value = this.#isBackgroundFetch(v6) ? v6.__staleWhileFetching : v6;
          if (value === void 0 || key === void 0)
            continue;
          const entry = { value };
          if (this.#ttls && this.#starts) {
            entry.ttl = this.#ttls[i3];
            const age = perf2.now() - this.#starts[i3];
            entry.start = Math.floor(Date.now() - age);
          }
          if (this.#sizes) {
            entry.size = this.#sizes[i3];
          }
          arr.unshift([key, entry]);
        }
        return arr;
      }
      /**
       * Reset the cache and load in the items in entries in the order listed.
       *
       * The shape of the resulting cache may be different if the same options are
       * not used in both caches.
       *
       * The `start` fields are assumed to be calculated relative to a portable
       * `Date.now()` timestamp, even if `performance.now()` is available.
       */
      load(arr) {
        this.clear();
        for (const [key, entry] of arr) {
          if (entry.start) {
            const age = Date.now() - entry.start;
            entry.start = perf2.now() - age;
          }
          this.set(key, entry.value, entry);
        }
      }
      /**
       * Add a value to the cache.
       *
       * Note: if `undefined` is specified as a value, this is an alias for
       * {@link LRUCache#delete}
       *
       * Fields on the {@link LRUCache.SetOptions} options param will override
       * their corresponding values in the constructor options for the scope
       * of this single `set()` operation.
       *
       * If `start` is provided, then that will set the effective start
       * time for the TTL calculation. Note that this must be a previous
       * value of `performance.now()` if supported, or a previous value of
       * `Date.now()` if not.
       *
       * Options object may also include `size`, which will prevent
       * calling the `sizeCalculation` function and just use the specified
       * number if it is a positive integer, and `noDisposeOnSet` which
       * will prevent calling a `dispose` function in the case of
       * overwrites.
       *
       * If the `size` (or return value of `sizeCalculation`) for a given
       * entry is greater than `maxEntrySize`, then the item will not be
       * added to the cache.
       *
       * Will update the recency of the entry.
       *
       * If the value is `undefined`, then this is an alias for
       * `cache.delete(key)`. `undefined` is never stored in the cache.
       */
      set(k3, v6, setOptions = {}) {
        if (v6 === void 0) {
          this.delete(k3);
          return this;
        }
        const { ttl = this.ttl, start, noDisposeOnSet = this.noDisposeOnSet, sizeCalculation = this.sizeCalculation, status } = setOptions;
        let { noUpdateTTL = this.noUpdateTTL } = setOptions;
        const size = this.#requireSize(k3, v6, setOptions.size || 0, sizeCalculation);
        if (this.maxEntrySize && size > this.maxEntrySize) {
          if (status) {
            status.set = "miss";
            status.maxEntrySizeExceeded = true;
          }
          this.#delete(k3, "set");
          return this;
        }
        let index = this.#size === 0 ? void 0 : this.#keyMap.get(k3);
        if (index === void 0) {
          index = this.#size === 0 ? this.#tail : this.#free.length !== 0 ? this.#free.pop() : this.#size === this.#max ? this.#evict(false) : this.#size;
          this.#keyList[index] = k3;
          this.#valList[index] = v6;
          this.#keyMap.set(k3, index);
          this.#next[this.#tail] = index;
          this.#prev[index] = this.#tail;
          this.#tail = index;
          this.#size++;
          this.#addItemSize(index, size, status);
          if (status)
            status.set = "add";
          noUpdateTTL = false;
        } else {
          this.#moveToTail(index);
          const oldVal = this.#valList[index];
          if (v6 !== oldVal) {
            if (this.#hasFetchMethod && this.#isBackgroundFetch(oldVal)) {
              oldVal.__abortController.abort(new Error("replaced"));
              const { __staleWhileFetching: s3 } = oldVal;
              if (s3 !== void 0 && !noDisposeOnSet) {
                if (this.#hasDispose) {
                  this.#dispose?.(s3, k3, "set");
                }
                if (this.#hasDisposeAfter) {
                  this.#disposed?.push([s3, k3, "set"]);
                }
              }
            } else if (!noDisposeOnSet) {
              if (this.#hasDispose) {
                this.#dispose?.(oldVal, k3, "set");
              }
              if (this.#hasDisposeAfter) {
                this.#disposed?.push([oldVal, k3, "set"]);
              }
            }
            this.#removeItemSize(index);
            this.#addItemSize(index, size, status);
            this.#valList[index] = v6;
            if (status) {
              status.set = "replace";
              const oldValue = oldVal && this.#isBackgroundFetch(oldVal) ? oldVal.__staleWhileFetching : oldVal;
              if (oldValue !== void 0)
                status.oldValue = oldValue;
            }
          } else if (status) {
            status.set = "update";
          }
        }
        if (ttl !== 0 && !this.#ttls) {
          this.#initializeTTLTracking();
        }
        if (this.#ttls) {
          if (!noUpdateTTL) {
            this.#setItemTTL(index, ttl, start);
          }
          if (status)
            this.#statusTTL(status, index);
        }
        if (!noDisposeOnSet && this.#hasDisposeAfter && this.#disposed) {
          const dt = this.#disposed;
          let task;
          while (task = dt?.shift()) {
            this.#disposeAfter?.(...task);
          }
        }
        return this;
      }
      /**
       * Evict the least recently used item, returning its value or
       * `undefined` if cache is empty.
       */
      pop() {
        try {
          while (this.#size) {
            const val = this.#valList[this.#head];
            this.#evict(true);
            if (this.#isBackgroundFetch(val)) {
              if (val.__staleWhileFetching) {
                return val.__staleWhileFetching;
              }
            } else if (val !== void 0) {
              return val;
            }
          }
        } finally {
          if (this.#hasDisposeAfter && this.#disposed) {
            const dt = this.#disposed;
            let task;
            while (task = dt?.shift()) {
              this.#disposeAfter?.(...task);
            }
          }
        }
      }
      #evict(free) {
        const head = this.#head;
        const k3 = this.#keyList[head];
        const v6 = this.#valList[head];
        if (this.#hasFetchMethod && this.#isBackgroundFetch(v6)) {
          v6.__abortController.abort(new Error("evicted"));
        } else if (this.#hasDispose || this.#hasDisposeAfter) {
          if (this.#hasDispose) {
            this.#dispose?.(v6, k3, "evict");
          }
          if (this.#hasDisposeAfter) {
            this.#disposed?.push([v6, k3, "evict"]);
          }
        }
        this.#removeItemSize(head);
        if (free) {
          this.#keyList[head] = void 0;
          this.#valList[head] = void 0;
          this.#free.push(head);
        }
        if (this.#size === 1) {
          this.#head = this.#tail = 0;
          this.#free.length = 0;
        } else {
          this.#head = this.#next[head];
        }
        this.#keyMap.delete(k3);
        this.#size--;
        return head;
      }
      /**
       * Check if a key is in the cache, without updating the recency of use.
       * Will return false if the item is stale, even though it is technically
       * in the cache.
       *
       * Check if a key is in the cache, without updating the recency of
       * use. Age is updated if {@link LRUCache.OptionsBase.updateAgeOnHas} is set
       * to `true` in either the options or the constructor.
       *
       * Will return `false` if the item is stale, even though it is technically in
       * the cache. The difference can be determined (if it matters) by using a
       * `status` argument, and inspecting the `has` field.
       *
       * Will not update item age unless
       * {@link LRUCache.OptionsBase.updateAgeOnHas} is set.
       */
      has(k3, hasOptions = {}) {
        const { updateAgeOnHas = this.updateAgeOnHas, status } = hasOptions;
        const index = this.#keyMap.get(k3);
        if (index !== void 0) {
          const v6 = this.#valList[index];
          if (this.#isBackgroundFetch(v6) && v6.__staleWhileFetching === void 0) {
            return false;
          }
          if (!this.#isStale(index)) {
            if (updateAgeOnHas) {
              this.#updateItemAge(index);
            }
            if (status) {
              status.has = "hit";
              this.#statusTTL(status, index);
            }
            return true;
          } else if (status) {
            status.has = "stale";
            this.#statusTTL(status, index);
          }
        } else if (status) {
          status.has = "miss";
        }
        return false;
      }
      /**
       * Like {@link LRUCache#get} but doesn't update recency or delete stale
       * items.
       *
       * Returns `undefined` if the item is stale, unless
       * {@link LRUCache.OptionsBase.allowStale} is set.
       */
      peek(k3, peekOptions = {}) {
        const { allowStale = this.allowStale } = peekOptions;
        const index = this.#keyMap.get(k3);
        if (index === void 0 || !allowStale && this.#isStale(index)) {
          return;
        }
        const v6 = this.#valList[index];
        return this.#isBackgroundFetch(v6) ? v6.__staleWhileFetching : v6;
      }
      #backgroundFetch(k3, index, options, context) {
        const v6 = index === void 0 ? void 0 : this.#valList[index];
        if (this.#isBackgroundFetch(v6)) {
          return v6;
        }
        const ac = new AC2();
        const { signal } = options;
        signal?.addEventListener("abort", () => ac.abort(signal.reason), {
          signal: ac.signal
        });
        const fetchOpts = {
          signal: ac.signal,
          options,
          context
        };
        const cb = /* @__PURE__ */ __name((v7, updateCache = false) => {
          const { aborted } = ac.signal;
          const ignoreAbort = options.ignoreFetchAbort && v7 !== void 0;
          if (options.status) {
            if (aborted && !updateCache) {
              options.status.fetchAborted = true;
              options.status.fetchError = ac.signal.reason;
              if (ignoreAbort)
                options.status.fetchAbortIgnored = true;
            } else {
              options.status.fetchResolved = true;
            }
          }
          if (aborted && !ignoreAbort && !updateCache) {
            return fetchFail(ac.signal.reason);
          }
          const bf2 = p3;
          if (this.#valList[index] === p3) {
            if (v7 === void 0) {
              if (bf2.__staleWhileFetching) {
                this.#valList[index] = bf2.__staleWhileFetching;
              } else {
                this.#delete(k3, "fetch");
              }
            } else {
              if (options.status)
                options.status.fetchUpdated = true;
              this.set(k3, v7, fetchOpts.options);
            }
          }
          return v7;
        }, "cb");
        const eb = /* @__PURE__ */ __name((er) => {
          if (options.status) {
            options.status.fetchRejected = true;
            options.status.fetchError = er;
          }
          return fetchFail(er);
        }, "eb");
        const fetchFail = /* @__PURE__ */ __name((er) => {
          const { aborted } = ac.signal;
          const allowStaleAborted = aborted && options.allowStaleOnFetchAbort;
          const allowStale = allowStaleAborted || options.allowStaleOnFetchRejection;
          const noDelete = allowStale || options.noDeleteOnFetchRejection;
          const bf2 = p3;
          if (this.#valList[index] === p3) {
            const del = !noDelete || bf2.__staleWhileFetching === void 0;
            if (del) {
              this.#delete(k3, "fetch");
            } else if (!allowStaleAborted) {
              this.#valList[index] = bf2.__staleWhileFetching;
            }
          }
          if (allowStale) {
            if (options.status && bf2.__staleWhileFetching !== void 0) {
              options.status.returnedStale = true;
            }
            return bf2.__staleWhileFetching;
          } else if (bf2.__returned === bf2) {
            throw er;
          }
        }, "fetchFail");
        const pcall = /* @__PURE__ */ __name((res, rej) => {
          const fmp = this.#fetchMethod?.(k3, v6, fetchOpts);
          if (fmp && fmp instanceof Promise) {
            fmp.then((v7) => res(v7 === void 0 ? void 0 : v7), rej);
          }
          ac.signal.addEventListener("abort", () => {
            if (!options.ignoreFetchAbort || options.allowStaleOnFetchAbort) {
              res(void 0);
              if (options.allowStaleOnFetchAbort) {
                res = /* @__PURE__ */ __name((v7) => cb(v7, true), "res");
              }
            }
          });
        }, "pcall");
        if (options.status)
          options.status.fetchDispatched = true;
        const p3 = new Promise(pcall).then(cb, eb);
        const bf = Object.assign(p3, {
          __abortController: ac,
          __staleWhileFetching: v6,
          __returned: void 0
        });
        if (index === void 0) {
          this.set(k3, bf, { ...fetchOpts.options, status: void 0 });
          index = this.#keyMap.get(k3);
        } else {
          this.#valList[index] = bf;
        }
        return bf;
      }
      #isBackgroundFetch(p3) {
        if (!this.#hasFetchMethod)
          return false;
        const b3 = p3;
        return !!b3 && b3 instanceof Promise && b3.hasOwnProperty("__staleWhileFetching") && b3.__abortController instanceof AC2;
      }
      async fetch(k3, fetchOptions = {}) {
        const {
          // get options
          allowStale = this.allowStale,
          updateAgeOnGet = this.updateAgeOnGet,
          noDeleteOnStaleGet = this.noDeleteOnStaleGet,
          // set options
          ttl = this.ttl,
          noDisposeOnSet = this.noDisposeOnSet,
          size = 0,
          sizeCalculation = this.sizeCalculation,
          noUpdateTTL = this.noUpdateTTL,
          // fetch exclusive options
          noDeleteOnFetchRejection = this.noDeleteOnFetchRejection,
          allowStaleOnFetchRejection = this.allowStaleOnFetchRejection,
          ignoreFetchAbort = this.ignoreFetchAbort,
          allowStaleOnFetchAbort = this.allowStaleOnFetchAbort,
          context,
          forceRefresh = false,
          status,
          signal
        } = fetchOptions;
        if (!this.#hasFetchMethod) {
          if (status)
            status.fetch = "get";
          return this.get(k3, {
            allowStale,
            updateAgeOnGet,
            noDeleteOnStaleGet,
            status
          });
        }
        const options = {
          allowStale,
          updateAgeOnGet,
          noDeleteOnStaleGet,
          ttl,
          noDisposeOnSet,
          size,
          sizeCalculation,
          noUpdateTTL,
          noDeleteOnFetchRejection,
          allowStaleOnFetchRejection,
          allowStaleOnFetchAbort,
          ignoreFetchAbort,
          status,
          signal
        };
        let index = this.#keyMap.get(k3);
        if (index === void 0) {
          if (status)
            status.fetch = "miss";
          const p3 = this.#backgroundFetch(k3, index, options, context);
          return p3.__returned = p3;
        } else {
          const v6 = this.#valList[index];
          if (this.#isBackgroundFetch(v6)) {
            const stale = allowStale && v6.__staleWhileFetching !== void 0;
            if (status) {
              status.fetch = "inflight";
              if (stale)
                status.returnedStale = true;
            }
            return stale ? v6.__staleWhileFetching : v6.__returned = v6;
          }
          const isStale = this.#isStale(index);
          if (!forceRefresh && !isStale) {
            if (status)
              status.fetch = "hit";
            this.#moveToTail(index);
            if (updateAgeOnGet) {
              this.#updateItemAge(index);
            }
            if (status)
              this.#statusTTL(status, index);
            return v6;
          }
          const p3 = this.#backgroundFetch(k3, index, options, context);
          const hasStale = p3.__staleWhileFetching !== void 0;
          const staleVal = hasStale && allowStale;
          if (status) {
            status.fetch = isStale ? "stale" : "refresh";
            if (staleVal && isStale)
              status.returnedStale = true;
          }
          return staleVal ? p3.__staleWhileFetching : p3.__returned = p3;
        }
      }
      async forceFetch(k3, fetchOptions = {}) {
        const v6 = await this.fetch(k3, fetchOptions);
        if (v6 === void 0)
          throw new Error("fetch() returned undefined");
        return v6;
      }
      memo(k3, memoOptions = {}) {
        const memoMethod = this.#memoMethod;
        if (!memoMethod) {
          throw new Error("no memoMethod provided to constructor");
        }
        const { context, forceRefresh, ...options } = memoOptions;
        const v6 = this.get(k3, options);
        if (!forceRefresh && v6 !== void 0)
          return v6;
        const vv = memoMethod(k3, v6, {
          options,
          context
        });
        this.set(k3, vv, options);
        return vv;
      }
      /**
       * Return a value from the cache. Will update the recency of the cache
       * entry found.
       *
       * If the key is not found, get() will return `undefined`.
       */
      get(k3, getOptions = {}) {
        const { allowStale = this.allowStale, updateAgeOnGet = this.updateAgeOnGet, noDeleteOnStaleGet = this.noDeleteOnStaleGet, status } = getOptions;
        const index = this.#keyMap.get(k3);
        if (index !== void 0) {
          const value = this.#valList[index];
          const fetching = this.#isBackgroundFetch(value);
          if (status)
            this.#statusTTL(status, index);
          if (this.#isStale(index)) {
            if (status)
              status.get = "stale";
            if (!fetching) {
              if (!noDeleteOnStaleGet) {
                this.#delete(k3, "expire");
              }
              if (status && allowStale)
                status.returnedStale = true;
              return allowStale ? value : void 0;
            } else {
              if (status && allowStale && value.__staleWhileFetching !== void 0) {
                status.returnedStale = true;
              }
              return allowStale ? value.__staleWhileFetching : void 0;
            }
          } else {
            if (status)
              status.get = "hit";
            if (fetching) {
              return value.__staleWhileFetching;
            }
            this.#moveToTail(index);
            if (updateAgeOnGet) {
              this.#updateItemAge(index);
            }
            return value;
          }
        } else if (status) {
          status.get = "miss";
        }
      }
      #connect(p3, n3) {
        this.#prev[n3] = p3;
        this.#next[p3] = n3;
      }
      #moveToTail(index) {
        if (index !== this.#tail) {
          if (index === this.#head) {
            this.#head = this.#next[index];
          } else {
            this.#connect(this.#prev[index], this.#next[index]);
          }
          this.#connect(this.#tail, index);
          this.#tail = index;
        }
      }
      /**
       * Deletes a key out of the cache.
       *
       * Returns true if the key was deleted, false otherwise.
       */
      delete(k3) {
        return this.#delete(k3, "delete");
      }
      #delete(k3, reason) {
        let deleted = false;
        if (this.#size !== 0) {
          const index = this.#keyMap.get(k3);
          if (index !== void 0) {
            deleted = true;
            if (this.#size === 1) {
              this.#clear(reason);
            } else {
              this.#removeItemSize(index);
              const v6 = this.#valList[index];
              if (this.#isBackgroundFetch(v6)) {
                v6.__abortController.abort(new Error("deleted"));
              } else if (this.#hasDispose || this.#hasDisposeAfter) {
                if (this.#hasDispose) {
                  this.#dispose?.(v6, k3, reason);
                }
                if (this.#hasDisposeAfter) {
                  this.#disposed?.push([v6, k3, reason]);
                }
              }
              this.#keyMap.delete(k3);
              this.#keyList[index] = void 0;
              this.#valList[index] = void 0;
              if (index === this.#tail) {
                this.#tail = this.#prev[index];
              } else if (index === this.#head) {
                this.#head = this.#next[index];
              } else {
                const pi = this.#prev[index];
                this.#next[pi] = this.#next[index];
                const ni = this.#next[index];
                this.#prev[ni] = this.#prev[index];
              }
              this.#size--;
              this.#free.push(index);
            }
          }
        }
        if (this.#hasDisposeAfter && this.#disposed?.length) {
          const dt = this.#disposed;
          let task;
          while (task = dt?.shift()) {
            this.#disposeAfter?.(...task);
          }
        }
        return deleted;
      }
      /**
       * Clear the cache entirely, throwing away all values.
       */
      clear() {
        return this.#clear("delete");
      }
      #clear(reason) {
        for (const index of this.#rindexes({ allowStale: true })) {
          const v6 = this.#valList[index];
          if (this.#isBackgroundFetch(v6)) {
            v6.__abortController.abort(new Error("deleted"));
          } else {
            const k3 = this.#keyList[index];
            if (this.#hasDispose) {
              this.#dispose?.(v6, k3, reason);
            }
            if (this.#hasDisposeAfter) {
              this.#disposed?.push([v6, k3, reason]);
            }
          }
        }
        this.#keyMap.clear();
        this.#valList.fill(void 0);
        this.#keyList.fill(void 0);
        if (this.#ttls && this.#starts) {
          this.#ttls.fill(0);
          this.#starts.fill(0);
        }
        if (this.#sizes) {
          this.#sizes.fill(0);
        }
        this.#head = 0;
        this.#tail = 0;
        this.#free.length = 0;
        this.#calculatedSize = 0;
        this.#size = 0;
        if (this.#hasDisposeAfter && this.#disposed) {
          const dt = this.#disposed;
          let task;
          while (task = dt?.shift()) {
            this.#disposeAfter?.(...task);
          }
        }
      }
    };
    exports2.LRUCache = LRUCache2;
  }
});

// ../../node_modules/minipass/dist/commonjs/index.js
var require_commonjs3 = __commonJS({
  "../../node_modules/minipass/dist/commonjs/index.js"(exports2) {
    "use strict";
    var __importDefault2 = exports2 && exports2.__importDefault || function(mod) {
      return mod && mod.__esModule ? mod : { "default": mod };
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.Minipass = exports2.isWritable = exports2.isReadable = exports2.isStream = void 0;
    var proc2 = typeof process === "object" && process ? process : {
      stdout: null,
      stderr: null
    };
    var node_events_1 = require("node:events");
    var node_stream_1 = __importDefault2(require("node:stream"));
    var node_string_decoder_1 = require("node:string_decoder");
    var isStream2 = /* @__PURE__ */ __name((s3) => !!s3 && typeof s3 === "object" && (s3 instanceof Minipass2 || s3 instanceof node_stream_1.default || (0, exports2.isReadable)(s3) || (0, exports2.isWritable)(s3)), "isStream");
    exports2.isStream = isStream2;
    var isReadable2 = /* @__PURE__ */ __name((s3) => !!s3 && typeof s3 === "object" && s3 instanceof node_events_1.EventEmitter && typeof s3.pipe === "function" && // node core Writable streams have a pipe() method, but it throws
    s3.pipe !== node_stream_1.default.Writable.prototype.pipe, "isReadable");
    exports2.isReadable = isReadable2;
    var isWritable2 = /* @__PURE__ */ __name((s3) => !!s3 && typeof s3 === "object" && s3 instanceof node_events_1.EventEmitter && typeof s3.write === "function" && typeof s3.end === "function", "isWritable");
    exports2.isWritable = isWritable2;
    var EOF2 = Symbol("EOF");
    var MAYBE_EMIT_END2 = Symbol("maybeEmitEnd");
    var EMITTED_END2 = Symbol("emittedEnd");
    var EMITTING_END2 = Symbol("emittingEnd");
    var EMITTED_ERROR2 = Symbol("emittedError");
    var CLOSED2 = Symbol("closed");
    var READ2 = Symbol("read");
    var FLUSH2 = Symbol("flush");
    var FLUSHCHUNK2 = Symbol("flushChunk");
    var ENCODING2 = Symbol("encoding");
    var DECODER2 = Symbol("decoder");
    var FLOWING2 = Symbol("flowing");
    var PAUSED2 = Symbol("paused");
    var RESUME2 = Symbol("resume");
    var BUFFER2 = Symbol("buffer");
    var PIPES2 = Symbol("pipes");
    var BUFFERLENGTH2 = Symbol("bufferLength");
    var BUFFERPUSH2 = Symbol("bufferPush");
    var BUFFERSHIFT2 = Symbol("bufferShift");
    var OBJECTMODE2 = Symbol("objectMode");
    var DESTROYED2 = Symbol("destroyed");
    var ERROR2 = Symbol("error");
    var EMITDATA2 = Symbol("emitData");
    var EMITEND3 = Symbol("emitEnd");
    var EMITEND22 = Symbol("emitEnd2");
    var ASYNC2 = Symbol("async");
    var ABORT2 = Symbol("abort");
    var ABORTED2 = Symbol("aborted");
    var SIGNAL2 = Symbol("signal");
    var DATALISTENERS2 = Symbol("dataListeners");
    var DISCARDED2 = Symbol("discarded");
    var defer2 = /* @__PURE__ */ __name((fn) => Promise.resolve().then(fn), "defer");
    var nodefer2 = /* @__PURE__ */ __name((fn) => fn(), "nodefer");
    var isEndish2 = /* @__PURE__ */ __name((ev) => ev === "end" || ev === "finish" || ev === "prefinish", "isEndish");
    var isArrayBufferLike2 = /* @__PURE__ */ __name((b3) => b3 instanceof ArrayBuffer || !!b3 && typeof b3 === "object" && b3.constructor && b3.constructor.name === "ArrayBuffer" && b3.byteLength >= 0, "isArrayBufferLike");
    var isArrayBufferView2 = /* @__PURE__ */ __name((b3) => !Buffer.isBuffer(b3) && ArrayBuffer.isView(b3), "isArrayBufferView");
    var Pipe2 = class {
      static {
        __name(this, "Pipe");
      }
      src;
      dest;
      opts;
      ondrain;
      constructor(src, dest, opts) {
        this.src = src;
        this.dest = dest;
        this.opts = opts;
        this.ondrain = () => src[RESUME2]();
        this.dest.on("drain", this.ondrain);
      }
      unpipe() {
        this.dest.removeListener("drain", this.ondrain);
      }
      // only here for the prototype
      /* c8 ignore start */
      proxyErrors(_er) {
      }
      /* c8 ignore stop */
      end() {
        this.unpipe();
        if (this.opts.end)
          this.dest.end();
      }
    };
    var PipeProxyErrors2 = class extends Pipe2 {
      static {
        __name(this, "PipeProxyErrors");
      }
      unpipe() {
        this.src.removeListener("error", this.proxyErrors);
        super.unpipe();
      }
      constructor(src, dest, opts) {
        super(src, dest, opts);
        this.proxyErrors = (er) => dest.emit("error", er);
        src.on("error", this.proxyErrors);
      }
    };
    var isObjectModeOptions2 = /* @__PURE__ */ __name((o3) => !!o3.objectMode, "isObjectModeOptions");
    var isEncodingOptions2 = /* @__PURE__ */ __name((o3) => !o3.objectMode && !!o3.encoding && o3.encoding !== "buffer", "isEncodingOptions");
    var Minipass2 = class extends node_events_1.EventEmitter {
      static {
        __name(this, "Minipass");
      }
      [FLOWING2] = false;
      [PAUSED2] = false;
      [PIPES2] = [];
      [BUFFER2] = [];
      [OBJECTMODE2];
      [ENCODING2];
      [ASYNC2];
      [DECODER2];
      [EOF2] = false;
      [EMITTED_END2] = false;
      [EMITTING_END2] = false;
      [CLOSED2] = false;
      [EMITTED_ERROR2] = null;
      [BUFFERLENGTH2] = 0;
      [DESTROYED2] = false;
      [SIGNAL2];
      [ABORTED2] = false;
      [DATALISTENERS2] = 0;
      [DISCARDED2] = false;
      /**
       * true if the stream can be written
       */
      writable = true;
      /**
       * true if the stream can be read
       */
      readable = true;
      /**
       * If `RType` is Buffer, then options do not need to be provided.
       * Otherwise, an options object must be provided to specify either
       * {@link Minipass.SharedOptions.objectMode} or
       * {@link Minipass.SharedOptions.encoding}, as appropriate.
       */
      constructor(...args) {
        const options = args[0] || {};
        super();
        if (options.objectMode && typeof options.encoding === "string") {
          throw new TypeError("Encoding and objectMode may not be used together");
        }
        if (isObjectModeOptions2(options)) {
          this[OBJECTMODE2] = true;
          this[ENCODING2] = null;
        } else if (isEncodingOptions2(options)) {
          this[ENCODING2] = options.encoding;
          this[OBJECTMODE2] = false;
        } else {
          this[OBJECTMODE2] = false;
          this[ENCODING2] = null;
        }
        this[ASYNC2] = !!options.async;
        this[DECODER2] = this[ENCODING2] ? new node_string_decoder_1.StringDecoder(this[ENCODING2]) : null;
        if (options && options.debugExposeBuffer === true) {
          Object.defineProperty(this, "buffer", { get: /* @__PURE__ */ __name(() => this[BUFFER2], "get") });
        }
        if (options && options.debugExposePipes === true) {
          Object.defineProperty(this, "pipes", { get: /* @__PURE__ */ __name(() => this[PIPES2], "get") });
        }
        const { signal } = options;
        if (signal) {
          this[SIGNAL2] = signal;
          if (signal.aborted) {
            this[ABORT2]();
          } else {
            signal.addEventListener("abort", () => this[ABORT2]());
          }
        }
      }
      /**
       * The amount of data stored in the buffer waiting to be read.
       *
       * For Buffer strings, this will be the total byte length.
       * For string encoding streams, this will be the string character length,
       * according to JavaScript's `string.length` logic.
       * For objectMode streams, this is a count of the items waiting to be
       * emitted.
       */
      get bufferLength() {
        return this[BUFFERLENGTH2];
      }
      /**
       * The `BufferEncoding` currently in use, or `null`
       */
      get encoding() {
        return this[ENCODING2];
      }
      /**
       * @deprecated - This is a read only property
       */
      set encoding(_enc) {
        throw new Error("Encoding must be set at instantiation time");
      }
      /**
       * @deprecated - Encoding may only be set at instantiation time
       */
      setEncoding(_enc) {
        throw new Error("Encoding must be set at instantiation time");
      }
      /**
       * True if this is an objectMode stream
       */
      get objectMode() {
        return this[OBJECTMODE2];
      }
      /**
       * @deprecated - This is a read-only property
       */
      set objectMode(_om) {
        throw new Error("objectMode must be set at instantiation time");
      }
      /**
       * true if this is an async stream
       */
      get ["async"]() {
        return this[ASYNC2];
      }
      /**
       * Set to true to make this stream async.
       *
       * Once set, it cannot be unset, as this would potentially cause incorrect
       * behavior.  Ie, a sync stream can be made async, but an async stream
       * cannot be safely made sync.
       */
      set ["async"](a3) {
        this[ASYNC2] = this[ASYNC2] || !!a3;
      }
      // drop everything and get out of the flow completely
      [ABORT2]() {
        this[ABORTED2] = true;
        this.emit("abort", this[SIGNAL2]?.reason);
        this.destroy(this[SIGNAL2]?.reason);
      }
      /**
       * True if the stream has been aborted.
       */
      get aborted() {
        return this[ABORTED2];
      }
      /**
       * No-op setter. Stream aborted status is set via the AbortSignal provided
       * in the constructor options.
       */
      set aborted(_3) {
      }
      write(chunk, encoding, cb) {
        if (this[ABORTED2])
          return false;
        if (this[EOF2])
          throw new Error("write after end");
        if (this[DESTROYED2]) {
          this.emit("error", Object.assign(new Error("Cannot call write after a stream was destroyed"), { code: "ERR_STREAM_DESTROYED" }));
          return true;
        }
        if (typeof encoding === "function") {
          cb = encoding;
          encoding = "utf8";
        }
        if (!encoding)
          encoding = "utf8";
        const fn = this[ASYNC2] ? defer2 : nodefer2;
        if (!this[OBJECTMODE2] && !Buffer.isBuffer(chunk)) {
          if (isArrayBufferView2(chunk)) {
            chunk = Buffer.from(chunk.buffer, chunk.byteOffset, chunk.byteLength);
          } else if (isArrayBufferLike2(chunk)) {
            chunk = Buffer.from(chunk);
          } else if (typeof chunk !== "string") {
            throw new Error("Non-contiguous data written to non-objectMode stream");
          }
        }
        if (this[OBJECTMODE2]) {
          if (this[FLOWING2] && this[BUFFERLENGTH2] !== 0)
            this[FLUSH2](true);
          if (this[FLOWING2])
            this.emit("data", chunk);
          else
            this[BUFFERPUSH2](chunk);
          if (this[BUFFERLENGTH2] !== 0)
            this.emit("readable");
          if (cb)
            fn(cb);
          return this[FLOWING2];
        }
        if (!chunk.length) {
          if (this[BUFFERLENGTH2] !== 0)
            this.emit("readable");
          if (cb)
            fn(cb);
          return this[FLOWING2];
        }
        if (typeof chunk === "string" && // unless it is a string already ready for us to use
        !(encoding === this[ENCODING2] && !this[DECODER2]?.lastNeed)) {
          chunk = Buffer.from(chunk, encoding);
        }
        if (Buffer.isBuffer(chunk) && this[ENCODING2]) {
          chunk = this[DECODER2].write(chunk);
        }
        if (this[FLOWING2] && this[BUFFERLENGTH2] !== 0)
          this[FLUSH2](true);
        if (this[FLOWING2])
          this.emit("data", chunk);
        else
          this[BUFFERPUSH2](chunk);
        if (this[BUFFERLENGTH2] !== 0)
          this.emit("readable");
        if (cb)
          fn(cb);
        return this[FLOWING2];
      }
      /**
       * Low-level explicit read method.
       *
       * In objectMode, the argument is ignored, and one item is returned if
       * available.
       *
       * `n` is the number of bytes (or in the case of encoding streams,
       * characters) to consume. If `n` is not provided, then the entire buffer
       * is returned, or `null` is returned if no data is available.
       *
       * If `n` is greater that the amount of data in the internal buffer,
       * then `null` is returned.
       */
      read(n3) {
        if (this[DESTROYED2])
          return null;
        this[DISCARDED2] = false;
        if (this[BUFFERLENGTH2] === 0 || n3 === 0 || n3 && n3 > this[BUFFERLENGTH2]) {
          this[MAYBE_EMIT_END2]();
          return null;
        }
        if (this[OBJECTMODE2])
          n3 = null;
        if (this[BUFFER2].length > 1 && !this[OBJECTMODE2]) {
          this[BUFFER2] = [
            this[ENCODING2] ? this[BUFFER2].join("") : Buffer.concat(this[BUFFER2], this[BUFFERLENGTH2])
          ];
        }
        const ret = this[READ2](n3 || null, this[BUFFER2][0]);
        this[MAYBE_EMIT_END2]();
        return ret;
      }
      [READ2](n3, chunk) {
        if (this[OBJECTMODE2])
          this[BUFFERSHIFT2]();
        else {
          const c3 = chunk;
          if (n3 === c3.length || n3 === null)
            this[BUFFERSHIFT2]();
          else if (typeof c3 === "string") {
            this[BUFFER2][0] = c3.slice(n3);
            chunk = c3.slice(0, n3);
            this[BUFFERLENGTH2] -= n3;
          } else {
            this[BUFFER2][0] = c3.subarray(n3);
            chunk = c3.subarray(0, n3);
            this[BUFFERLENGTH2] -= n3;
          }
        }
        this.emit("data", chunk);
        if (!this[BUFFER2].length && !this[EOF2])
          this.emit("drain");
        return chunk;
      }
      end(chunk, encoding, cb) {
        if (typeof chunk === "function") {
          cb = chunk;
          chunk = void 0;
        }
        if (typeof encoding === "function") {
          cb = encoding;
          encoding = "utf8";
        }
        if (chunk !== void 0)
          this.write(chunk, encoding);
        if (cb)
          this.once("end", cb);
        this[EOF2] = true;
        this.writable = false;
        if (this[FLOWING2] || !this[PAUSED2])
          this[MAYBE_EMIT_END2]();
        return this;
      }
      // don't let the internal resume be overwritten
      [RESUME2]() {
        if (this[DESTROYED2])
          return;
        if (!this[DATALISTENERS2] && !this[PIPES2].length) {
          this[DISCARDED2] = true;
        }
        this[PAUSED2] = false;
        this[FLOWING2] = true;
        this.emit("resume");
        if (this[BUFFER2].length)
          this[FLUSH2]();
        else if (this[EOF2])
          this[MAYBE_EMIT_END2]();
        else
          this.emit("drain");
      }
      /**
       * Resume the stream if it is currently in a paused state
       *
       * If called when there are no pipe destinations or `data` event listeners,
       * this will place the stream in a "discarded" state, where all data will
       * be thrown away. The discarded state is removed if a pipe destination or
       * data handler is added, if pause() is called, or if any synchronous or
       * asynchronous iteration is started.
       */
      resume() {
        return this[RESUME2]();
      }
      /**
       * Pause the stream
       */
      pause() {
        this[FLOWING2] = false;
        this[PAUSED2] = true;
        this[DISCARDED2] = false;
      }
      /**
       * true if the stream has been forcibly destroyed
       */
      get destroyed() {
        return this[DESTROYED2];
      }
      /**
       * true if the stream is currently in a flowing state, meaning that
       * any writes will be immediately emitted.
       */
      get flowing() {
        return this[FLOWING2];
      }
      /**
       * true if the stream is currently in a paused state
       */
      get paused() {
        return this[PAUSED2];
      }
      [BUFFERPUSH2](chunk) {
        if (this[OBJECTMODE2])
          this[BUFFERLENGTH2] += 1;
        else
          this[BUFFERLENGTH2] += chunk.length;
        this[BUFFER2].push(chunk);
      }
      [BUFFERSHIFT2]() {
        if (this[OBJECTMODE2])
          this[BUFFERLENGTH2] -= 1;
        else
          this[BUFFERLENGTH2] -= this[BUFFER2][0].length;
        return this[BUFFER2].shift();
      }
      [FLUSH2](noDrain = false) {
        do {
        } while (this[FLUSHCHUNK2](this[BUFFERSHIFT2]()) && this[BUFFER2].length);
        if (!noDrain && !this[BUFFER2].length && !this[EOF2])
          this.emit("drain");
      }
      [FLUSHCHUNK2](chunk) {
        this.emit("data", chunk);
        return this[FLOWING2];
      }
      /**
       * Pipe all data emitted by this stream into the destination provided.
       *
       * Triggers the flow of data.
       */
      pipe(dest, opts) {
        if (this[DESTROYED2])
          return dest;
        this[DISCARDED2] = false;
        const ended = this[EMITTED_END2];
        opts = opts || {};
        if (dest === proc2.stdout || dest === proc2.stderr)
          opts.end = false;
        else
          opts.end = opts.end !== false;
        opts.proxyErrors = !!opts.proxyErrors;
        if (ended) {
          if (opts.end)
            dest.end();
        } else {
          this[PIPES2].push(!opts.proxyErrors ? new Pipe2(this, dest, opts) : new PipeProxyErrors2(this, dest, opts));
          if (this[ASYNC2])
            defer2(() => this[RESUME2]());
          else
            this[RESUME2]();
        }
        return dest;
      }
      /**
       * Fully unhook a piped destination stream.
       *
       * If the destination stream was the only consumer of this stream (ie,
       * there are no other piped destinations or `'data'` event listeners)
       * then the flow of data will stop until there is another consumer or
       * {@link Minipass#resume} is explicitly called.
       */
      unpipe(dest) {
        const p3 = this[PIPES2].find((p4) => p4.dest === dest);
        if (p3) {
          if (this[PIPES2].length === 1) {
            if (this[FLOWING2] && this[DATALISTENERS2] === 0) {
              this[FLOWING2] = false;
            }
            this[PIPES2] = [];
          } else
            this[PIPES2].splice(this[PIPES2].indexOf(p3), 1);
          p3.unpipe();
        }
      }
      /**
       * Alias for {@link Minipass#on}
       */
      addListener(ev, handler) {
        return this.on(ev, handler);
      }
      /**
       * Mostly identical to `EventEmitter.on`, with the following
       * behavior differences to prevent data loss and unnecessary hangs:
       *
       * - Adding a 'data' event handler will trigger the flow of data
       *
       * - Adding a 'readable' event handler when there is data waiting to be read
       *   will cause 'readable' to be emitted immediately.
       *
       * - Adding an 'endish' event handler ('end', 'finish', etc.) which has
       *   already passed will cause the event to be emitted immediately and all
       *   handlers removed.
       *
       * - Adding an 'error' event handler after an error has been emitted will
       *   cause the event to be re-emitted immediately with the error previously
       *   raised.
       */
      on(ev, handler) {
        const ret = super.on(ev, handler);
        if (ev === "data") {
          this[DISCARDED2] = false;
          this[DATALISTENERS2]++;
          if (!this[PIPES2].length && !this[FLOWING2]) {
            this[RESUME2]();
          }
        } else if (ev === "readable" && this[BUFFERLENGTH2] !== 0) {
          super.emit("readable");
        } else if (isEndish2(ev) && this[EMITTED_END2]) {
          super.emit(ev);
          this.removeAllListeners(ev);
        } else if (ev === "error" && this[EMITTED_ERROR2]) {
          const h3 = handler;
          if (this[ASYNC2])
            defer2(() => h3.call(this, this[EMITTED_ERROR2]));
          else
            h3.call(this, this[EMITTED_ERROR2]);
        }
        return ret;
      }
      /**
       * Alias for {@link Minipass#off}
       */
      removeListener(ev, handler) {
        return this.off(ev, handler);
      }
      /**
       * Mostly identical to `EventEmitter.off`
       *
       * If a 'data' event handler is removed, and it was the last consumer
       * (ie, there are no pipe destinations or other 'data' event listeners),
       * then the flow of data will stop until there is another consumer or
       * {@link Minipass#resume} is explicitly called.
       */
      off(ev, handler) {
        const ret = super.off(ev, handler);
        if (ev === "data") {
          this[DATALISTENERS2] = this.listeners("data").length;
          if (this[DATALISTENERS2] === 0 && !this[DISCARDED2] && !this[PIPES2].length) {
            this[FLOWING2] = false;
          }
        }
        return ret;
      }
      /**
       * Mostly identical to `EventEmitter.removeAllListeners`
       *
       * If all 'data' event handlers are removed, and they were the last consumer
       * (ie, there are no pipe destinations), then the flow of data will stop
       * until there is another consumer or {@link Minipass#resume} is explicitly
       * called.
       */
      removeAllListeners(ev) {
        const ret = super.removeAllListeners(ev);
        if (ev === "data" || ev === void 0) {
          this[DATALISTENERS2] = 0;
          if (!this[DISCARDED2] && !this[PIPES2].length) {
            this[FLOWING2] = false;
          }
        }
        return ret;
      }
      /**
       * true if the 'end' event has been emitted
       */
      get emittedEnd() {
        return this[EMITTED_END2];
      }
      [MAYBE_EMIT_END2]() {
        if (!this[EMITTING_END2] && !this[EMITTED_END2] && !this[DESTROYED2] && this[BUFFER2].length === 0 && this[EOF2]) {
          this[EMITTING_END2] = true;
          this.emit("end");
          this.emit("prefinish");
          this.emit("finish");
          if (this[CLOSED2])
            this.emit("close");
          this[EMITTING_END2] = false;
        }
      }
      /**
       * Mostly identical to `EventEmitter.emit`, with the following
       * behavior differences to prevent data loss and unnecessary hangs:
       *
       * If the stream has been destroyed, and the event is something other
       * than 'close' or 'error', then `false` is returned and no handlers
       * are called.
       *
       * If the event is 'end', and has already been emitted, then the event
       * is ignored. If the stream is in a paused or non-flowing state, then
       * the event will be deferred until data flow resumes. If the stream is
       * async, then handlers will be called on the next tick rather than
       * immediately.
       *
       * If the event is 'close', and 'end' has not yet been emitted, then
       * the event will be deferred until after 'end' is emitted.
       *
       * If the event is 'error', and an AbortSignal was provided for the stream,
       * and there are no listeners, then the event is ignored, matching the
       * behavior of node core streams in the presense of an AbortSignal.
       *
       * If the event is 'finish' or 'prefinish', then all listeners will be
       * removed after emitting the event, to prevent double-firing.
       */
      emit(ev, ...args) {
        const data3 = args[0];
        if (ev !== "error" && ev !== "close" && ev !== DESTROYED2 && this[DESTROYED2]) {
          return false;
        } else if (ev === "data") {
          return !this[OBJECTMODE2] && !data3 ? false : this[ASYNC2] ? (defer2(() => this[EMITDATA2](data3)), true) : this[EMITDATA2](data3);
        } else if (ev === "end") {
          return this[EMITEND3]();
        } else if (ev === "close") {
          this[CLOSED2] = true;
          if (!this[EMITTED_END2] && !this[DESTROYED2])
            return false;
          const ret2 = super.emit("close");
          this.removeAllListeners("close");
          return ret2;
        } else if (ev === "error") {
          this[EMITTED_ERROR2] = data3;
          super.emit(ERROR2, data3);
          const ret2 = !this[SIGNAL2] || this.listeners("error").length ? super.emit("error", data3) : false;
          this[MAYBE_EMIT_END2]();
          return ret2;
        } else if (ev === "resume") {
          const ret2 = super.emit("resume");
          this[MAYBE_EMIT_END2]();
          return ret2;
        } else if (ev === "finish" || ev === "prefinish") {
          const ret2 = super.emit(ev);
          this.removeAllListeners(ev);
          return ret2;
        }
        const ret = super.emit(ev, ...args);
        this[MAYBE_EMIT_END2]();
        return ret;
      }
      [EMITDATA2](data3) {
        for (const p3 of this[PIPES2]) {
          if (p3.dest.write(data3) === false)
            this.pause();
        }
        const ret = this[DISCARDED2] ? false : super.emit("data", data3);
        this[MAYBE_EMIT_END2]();
        return ret;
      }
      [EMITEND3]() {
        if (this[EMITTED_END2])
          return false;
        this[EMITTED_END2] = true;
        this.readable = false;
        return this[ASYNC2] ? (defer2(() => this[EMITEND22]()), true) : this[EMITEND22]();
      }
      [EMITEND22]() {
        if (this[DECODER2]) {
          const data3 = this[DECODER2].end();
          if (data3) {
            for (const p3 of this[PIPES2]) {
              p3.dest.write(data3);
            }
            if (!this[DISCARDED2])
              super.emit("data", data3);
          }
        }
        for (const p3 of this[PIPES2]) {
          p3.end();
        }
        const ret = super.emit("end");
        this.removeAllListeners("end");
        return ret;
      }
      /**
       * Return a Promise that resolves to an array of all emitted data once
       * the stream ends.
       */
      async collect() {
        const buf = Object.assign([], {
          dataLength: 0
        });
        if (!this[OBJECTMODE2])
          buf.dataLength = 0;
        const p3 = this.promise();
        this.on("data", (c3) => {
          buf.push(c3);
          if (!this[OBJECTMODE2])
            buf.dataLength += c3.length;
        });
        await p3;
        return buf;
      }
      /**
       * Return a Promise that resolves to the concatenation of all emitted data
       * once the stream ends.
       *
       * Not allowed on objectMode streams.
       */
      async concat() {
        if (this[OBJECTMODE2]) {
          throw new Error("cannot concat in objectMode");
        }
        const buf = await this.collect();
        return this[ENCODING2] ? buf.join("") : Buffer.concat(buf, buf.dataLength);
      }
      /**
       * Return a void Promise that resolves once the stream ends.
       */
      async promise() {
        return new Promise((resolve13, reject) => {
          this.on(DESTROYED2, () => reject(new Error("stream destroyed")));
          this.on("error", (er) => reject(er));
          this.on("end", () => resolve13());
        });
      }
      /**
       * Asynchronous `for await of` iteration.
       *
       * This will continue emitting all chunks until the stream terminates.
       */
      [Symbol.asyncIterator]() {
        this[DISCARDED2] = false;
        let stopped = false;
        const stop = /* @__PURE__ */ __name(async () => {
          this.pause();
          stopped = true;
          return { value: void 0, done: true };
        }, "stop");
        const next = /* @__PURE__ */ __name(() => {
          if (stopped)
            return stop();
          const res = this.read();
          if (res !== null)
            return Promise.resolve({ done: false, value: res });
          if (this[EOF2])
            return stop();
          let resolve13;
          let reject;
          const onerr = /* @__PURE__ */ __name((er) => {
            this.off("data", ondata);
            this.off("end", onend);
            this.off(DESTROYED2, ondestroy);
            stop();
            reject(er);
          }, "onerr");
          const ondata = /* @__PURE__ */ __name((value) => {
            this.off("error", onerr);
            this.off("end", onend);
            this.off(DESTROYED2, ondestroy);
            this.pause();
            resolve13({ value, done: !!this[EOF2] });
          }, "ondata");
          const onend = /* @__PURE__ */ __name(() => {
            this.off("error", onerr);
            this.off("data", ondata);
            this.off(DESTROYED2, ondestroy);
            stop();
            resolve13({ done: true, value: void 0 });
          }, "onend");
          const ondestroy = /* @__PURE__ */ __name(() => onerr(new Error("stream destroyed")), "ondestroy");
          return new Promise((res2, rej) => {
            reject = rej;
            resolve13 = res2;
            this.once(DESTROYED2, ondestroy);
            this.once("error", onerr);
            this.once("end", onend);
            this.once("data", ondata);
          });
        }, "next");
        return {
          next,
          throw: stop,
          return: stop,
          [Symbol.asyncIterator]() {
            return this;
          }
        };
      }
      /**
       * Synchronous `for of` iteration.
       *
       * The iteration will terminate when the internal buffer runs out, even
       * if the stream has not yet terminated.
       */
      [Symbol.iterator]() {
        this[DISCARDED2] = false;
        let stopped = false;
        const stop = /* @__PURE__ */ __name(() => {
          this.pause();
          this.off(ERROR2, stop);
          this.off(DESTROYED2, stop);
          this.off("end", stop);
          stopped = true;
          return { done: true, value: void 0 };
        }, "stop");
        const next = /* @__PURE__ */ __name(() => {
          if (stopped)
            return stop();
          const value = this.read();
          return value === null ? stop() : { done: false, value };
        }, "next");
        this.once("end", stop);
        this.once(ERROR2, stop);
        this.once(DESTROYED2, stop);
        return {
          next,
          throw: stop,
          return: stop,
          [Symbol.iterator]() {
            return this;
          }
        };
      }
      /**
       * Destroy a stream, preventing it from being used for any further purpose.
       *
       * If the stream has a `close()` method, then it will be called on
       * destruction.
       *
       * After destruction, any attempt to write data, read data, or emit most
       * events will be ignored.
       *
       * If an error argument is provided, then it will be emitted in an
       * 'error' event.
       */
      destroy(er) {
        if (this[DESTROYED2]) {
          if (er)
            this.emit("error", er);
          else
            this.emit(DESTROYED2);
          return this;
        }
        this[DESTROYED2] = true;
        this[DISCARDED2] = true;
        this[BUFFER2].length = 0;
        this[BUFFERLENGTH2] = 0;
        const wc = this;
        if (typeof wc.close === "function" && !this[CLOSED2])
          wc.close();
        if (er)
          this.emit("error", er);
        else
          this.emit(DESTROYED2);
        return this;
      }
      /**
       * Alias for {@link isStream}
       *
       * Former export location, maintained for backwards compatibility.
       *
       * @deprecated
       */
      static get isStream() {
        return exports2.isStream;
      }
    };
    exports2.Minipass = Minipass2;
  }
});

// ../../node_modules/path-scurry/dist/commonjs/index.js
var require_commonjs4 = __commonJS({
  "../../node_modules/path-scurry/dist/commonjs/index.js"(exports2) {
    "use strict";
    var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      var desc = Object.getOwnPropertyDescriptor(m3, k3);
      if (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) {
        desc = { enumerable: true, get: /* @__PURE__ */ __name(function() {
          return m3[k3];
        }, "get") };
      }
      Object.defineProperty(o3, k22, desc);
    }) : (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      o3[k22] = m3[k3];
    }));
    var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? (function(o3, v6) {
      Object.defineProperty(o3, "default", { enumerable: true, value: v6 });
    }) : function(o3, v6) {
      o3["default"] = v6;
    });
    var __importStar2 = exports2 && exports2.__importStar || function(mod) {
      if (mod && mod.__esModule) return mod;
      var result2 = {};
      if (mod != null) {
        for (var k3 in mod) if (k3 !== "default" && Object.prototype.hasOwnProperty.call(mod, k3)) __createBinding3(result2, mod, k3);
      }
      __setModuleDefault2(result2, mod);
      return result2;
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.PathScurry = exports2.Path = exports2.PathScurryDarwin = exports2.PathScurryPosix = exports2.PathScurryWin32 = exports2.PathScurryBase = exports2.PathPosix = exports2.PathWin32 = exports2.PathBase = exports2.ChildrenCache = exports2.ResolveCache = void 0;
    var lru_cache_1 = require_commonjs2();
    var node_path_1 = require("node:path");
    var node_url_1 = require("node:url");
    var fs_1 = require("fs");
    var actualFS2 = __importStar2(require("node:fs"));
    var realpathSync4 = fs_1.realpathSync.native;
    var promises_1 = require("node:fs/promises");
    var minipass_1 = require_commonjs3();
    var defaultFS2 = {
      lstatSync: fs_1.lstatSync,
      readdir: fs_1.readdir,
      readdirSync: fs_1.readdirSync,
      readlinkSync: fs_1.readlinkSync,
      realpathSync: realpathSync4,
      promises: {
        lstat: promises_1.lstat,
        readdir: promises_1.readdir,
        readlink: promises_1.readlink,
        realpath: promises_1.realpath
      }
    };
    var fsFromOption2 = /* @__PURE__ */ __name((fsOption) => !fsOption || fsOption === defaultFS2 || fsOption === actualFS2 ? defaultFS2 : {
      ...defaultFS2,
      ...fsOption,
      promises: {
        ...defaultFS2.promises,
        ...fsOption.promises || {}
      }
    }, "fsFromOption");
    var uncDriveRegexp2 = /^\\\\\?\\([a-z]:)\\?$/i;
    var uncToDrive2 = /* @__PURE__ */ __name((rootPath) => rootPath.replace(/\//g, "\\").replace(uncDriveRegexp2, "$1\\"), "uncToDrive");
    var eitherSep2 = /[\\\/]/;
    var UNKNOWN2 = 0;
    var IFIFO2 = 1;
    var IFCHR2 = 2;
    var IFDIR2 = 4;
    var IFBLK2 = 6;
    var IFREG2 = 8;
    var IFLNK2 = 10;
    var IFSOCK2 = 12;
    var IFMT2 = 15;
    var IFMT_UNKNOWN2 = ~IFMT2;
    var READDIR_CALLED2 = 16;
    var LSTAT_CALLED2 = 32;
    var ENOTDIR2 = 64;
    var ENOENT2 = 128;
    var ENOREADLINK2 = 256;
    var ENOREALPATH2 = 512;
    var ENOCHILD2 = ENOTDIR2 | ENOENT2 | ENOREALPATH2;
    var TYPEMASK2 = 1023;
    var entToType2 = /* @__PURE__ */ __name((s3) => s3.isFile() ? IFREG2 : s3.isDirectory() ? IFDIR2 : s3.isSymbolicLink() ? IFLNK2 : s3.isCharacterDevice() ? IFCHR2 : s3.isBlockDevice() ? IFBLK2 : s3.isSocket() ? IFSOCK2 : s3.isFIFO() ? IFIFO2 : UNKNOWN2, "entToType");
    var normalizeCache2 = /* @__PURE__ */ new Map();
    var normalize3 = /* @__PURE__ */ __name((s3) => {
      const c3 = normalizeCache2.get(s3);
      if (c3)
        return c3;
      const n3 = s3.normalize("NFKD");
      normalizeCache2.set(s3, n3);
      return n3;
    }, "normalize");
    var normalizeNocaseCache2 = /* @__PURE__ */ new Map();
    var normalizeNocase2 = /* @__PURE__ */ __name((s3) => {
      const c3 = normalizeNocaseCache2.get(s3);
      if (c3)
        return c3;
      const n3 = normalize3(s3.toLowerCase());
      normalizeNocaseCache2.set(s3, n3);
      return n3;
    }, "normalizeNocase");
    var ResolveCache2 = class extends lru_cache_1.LRUCache {
      static {
        __name(this, "ResolveCache");
      }
      constructor() {
        super({ max: 256 });
      }
    };
    exports2.ResolveCache = ResolveCache2;
    var ChildrenCache2 = class extends lru_cache_1.LRUCache {
      static {
        __name(this, "ChildrenCache");
      }
      constructor(maxSize = 16 * 1024) {
        super({
          maxSize,
          // parent + children
          sizeCalculation: /* @__PURE__ */ __name((a3) => a3.length + 1, "sizeCalculation")
        });
      }
    };
    exports2.ChildrenCache = ChildrenCache2;
    var setAsCwd2 = Symbol("PathScurry setAsCwd");
    var PathBase2 = class {
      static {
        __name(this, "PathBase");
      }
      /**
       * the basename of this path
       *
       * **Important**: *always* test the path name against any test string
       * usingthe {@link isNamed} method, and not by directly comparing this
       * string. Otherwise, unicode path strings that the system sees as identical
       * will not be properly treated as the same path, leading to incorrect
       * behavior and possible security issues.
       */
      name;
      /**
       * the Path entry corresponding to the path root.
       *
       * @internal
       */
      root;
      /**
       * All roots found within the current PathScurry family
       *
       * @internal
       */
      roots;
      /**
       * a reference to the parent path, or undefined in the case of root entries
       *
       * @internal
       */
      parent;
      /**
       * boolean indicating whether paths are compared case-insensitively
       * @internal
       */
      nocase;
      /**
       * boolean indicating that this path is the current working directory
       * of the PathScurry collection that contains it.
       */
      isCWD = false;
      // potential default fs override
      #fs;
      // Stats fields
      #dev;
      get dev() {
        return this.#dev;
      }
      #mode;
      get mode() {
        return this.#mode;
      }
      #nlink;
      get nlink() {
        return this.#nlink;
      }
      #uid;
      get uid() {
        return this.#uid;
      }
      #gid;
      get gid() {
        return this.#gid;
      }
      #rdev;
      get rdev() {
        return this.#rdev;
      }
      #blksize;
      get blksize() {
        return this.#blksize;
      }
      #ino;
      get ino() {
        return this.#ino;
      }
      #size;
      get size() {
        return this.#size;
      }
      #blocks;
      get blocks() {
        return this.#blocks;
      }
      #atimeMs;
      get atimeMs() {
        return this.#atimeMs;
      }
      #mtimeMs;
      get mtimeMs() {
        return this.#mtimeMs;
      }
      #ctimeMs;
      get ctimeMs() {
        return this.#ctimeMs;
      }
      #birthtimeMs;
      get birthtimeMs() {
        return this.#birthtimeMs;
      }
      #atime;
      get atime() {
        return this.#atime;
      }
      #mtime;
      get mtime() {
        return this.#mtime;
      }
      #ctime;
      get ctime() {
        return this.#ctime;
      }
      #birthtime;
      get birthtime() {
        return this.#birthtime;
      }
      #matchName;
      #depth;
      #fullpath;
      #fullpathPosix;
      #relative;
      #relativePosix;
      #type;
      #children;
      #linkTarget;
      #realpath;
      /**
       * This property is for compatibility with the Dirent class as of
       * Node v20, where Dirent['parentPath'] refers to the path of the
       * directory that was passed to readdir. For root entries, it's the path
       * to the entry itself.
       */
      get parentPath() {
        return (this.parent || this).fullpath();
      }
      /**
       * Deprecated alias for Dirent['parentPath'] Somewhat counterintuitively,
       * this property refers to the *parent* path, not the path object itself.
       */
      get path() {
        return this.parentPath;
      }
      /**
       * Do not create new Path objects directly.  They should always be accessed
       * via the PathScurry class or other methods on the Path class.
       *
       * @internal
       */
      constructor(name, type = UNKNOWN2, root, roots, nocase, children, opts) {
        this.name = name;
        this.#matchName = nocase ? normalizeNocase2(name) : normalize3(name);
        this.#type = type & TYPEMASK2;
        this.nocase = nocase;
        this.roots = roots;
        this.root = root || this;
        this.#children = children;
        this.#fullpath = opts.fullpath;
        this.#relative = opts.relative;
        this.#relativePosix = opts.relativePosix;
        this.parent = opts.parent;
        if (this.parent) {
          this.#fs = this.parent.#fs;
        } else {
          this.#fs = fsFromOption2(opts.fs);
        }
      }
      /**
       * Returns the depth of the Path object from its root.
       *
       * For example, a path at `/foo/bar` would have a depth of 2.
       */
      depth() {
        if (this.#depth !== void 0)
          return this.#depth;
        if (!this.parent)
          return this.#depth = 0;
        return this.#depth = this.parent.depth() + 1;
      }
      /**
       * @internal
       */
      childrenCache() {
        return this.#children;
      }
      /**
       * Get the Path object referenced by the string path, resolved from this Path
       */
      resolve(path38) {
        if (!path38) {
          return this;
        }
        const rootPath = this.getRootString(path38);
        const dir = path38.substring(rootPath.length);
        const dirParts = dir.split(this.splitSep);
        const result2 = rootPath ? this.getRoot(rootPath).#resolveParts(dirParts) : this.#resolveParts(dirParts);
        return result2;
      }
      #resolveParts(dirParts) {
        let p3 = this;
        for (const part of dirParts) {
          p3 = p3.child(part);
        }
        return p3;
      }
      /**
       * Returns the cached children Path objects, if still available.  If they
       * have fallen out of the cache, then returns an empty array, and resets the
       * READDIR_CALLED bit, so that future calls to readdir() will require an fs
       * lookup.
       *
       * @internal
       */
      children() {
        const cached4 = this.#children.get(this);
        if (cached4) {
          return cached4;
        }
        const children = Object.assign([], { provisional: 0 });
        this.#children.set(this, children);
        this.#type &= ~READDIR_CALLED2;
        return children;
      }
      /**
       * Resolves a path portion and returns or creates the child Path.
       *
       * Returns `this` if pathPart is `''` or `'.'`, or `parent` if pathPart is
       * `'..'`.
       *
       * This should not be called directly.  If `pathPart` contains any path
       * separators, it will lead to unsafe undefined behavior.
       *
       * Use `Path.resolve()` instead.
       *
       * @internal
       */
      child(pathPart, opts) {
        if (pathPart === "" || pathPart === ".") {
          return this;
        }
        if (pathPart === "..") {
          return this.parent || this;
        }
        const children = this.children();
        const name = this.nocase ? normalizeNocase2(pathPart) : normalize3(pathPart);
        for (const p3 of children) {
          if (p3.#matchName === name) {
            return p3;
          }
        }
        const s3 = this.parent ? this.sep : "";
        const fullpath = this.#fullpath ? this.#fullpath + s3 + pathPart : void 0;
        const pchild = this.newChild(pathPart, UNKNOWN2, {
          ...opts,
          parent: this,
          fullpath
        });
        if (!this.canReaddir()) {
          pchild.#type |= ENOENT2;
        }
        children.push(pchild);
        return pchild;
      }
      /**
       * The relative path from the cwd. If it does not share an ancestor with
       * the cwd, then this ends up being equivalent to the fullpath()
       */
      relative() {
        if (this.isCWD)
          return "";
        if (this.#relative !== void 0) {
          return this.#relative;
        }
        const name = this.name;
        const p3 = this.parent;
        if (!p3) {
          return this.#relative = this.name;
        }
        const pv = p3.relative();
        return pv + (!pv || !p3.parent ? "" : this.sep) + name;
      }
      /**
       * The relative path from the cwd, using / as the path separator.
       * If it does not share an ancestor with
       * the cwd, then this ends up being equivalent to the fullpathPosix()
       * On posix systems, this is identical to relative().
       */
      relativePosix() {
        if (this.sep === "/")
          return this.relative();
        if (this.isCWD)
          return "";
        if (this.#relativePosix !== void 0)
          return this.#relativePosix;
        const name = this.name;
        const p3 = this.parent;
        if (!p3) {
          return this.#relativePosix = this.fullpathPosix();
        }
        const pv = p3.relativePosix();
        return pv + (!pv || !p3.parent ? "" : "/") + name;
      }
      /**
       * The fully resolved path string for this Path entry
       */
      fullpath() {
        if (this.#fullpath !== void 0) {
          return this.#fullpath;
        }
        const name = this.name;
        const p3 = this.parent;
        if (!p3) {
          return this.#fullpath = this.name;
        }
        const pv = p3.fullpath();
        const fp = pv + (!p3.parent ? "" : this.sep) + name;
        return this.#fullpath = fp;
      }
      /**
       * On platforms other than windows, this is identical to fullpath.
       *
       * On windows, this is overridden to return the forward-slash form of the
       * full UNC path.
       */
      fullpathPosix() {
        if (this.#fullpathPosix !== void 0)
          return this.#fullpathPosix;
        if (this.sep === "/")
          return this.#fullpathPosix = this.fullpath();
        if (!this.parent) {
          const p4 = this.fullpath().replace(/\\/g, "/");
          if (/^[a-z]:\//i.test(p4)) {
            return this.#fullpathPosix = `//?/${p4}`;
          } else {
            return this.#fullpathPosix = p4;
          }
        }
        const p3 = this.parent;
        const pfpp = p3.fullpathPosix();
        const fpp = pfpp + (!pfpp || !p3.parent ? "" : "/") + this.name;
        return this.#fullpathPosix = fpp;
      }
      /**
       * Is the Path of an unknown type?
       *
       * Note that we might know *something* about it if there has been a previous
       * filesystem operation, for example that it does not exist, or is not a
       * link, or whether it has child entries.
       */
      isUnknown() {
        return (this.#type & IFMT2) === UNKNOWN2;
      }
      isType(type) {
        return this[`is${type}`]();
      }
      getType() {
        return this.isUnknown() ? "Unknown" : this.isDirectory() ? "Directory" : this.isFile() ? "File" : this.isSymbolicLink() ? "SymbolicLink" : this.isFIFO() ? "FIFO" : this.isCharacterDevice() ? "CharacterDevice" : this.isBlockDevice() ? "BlockDevice" : (
          /* c8 ignore start */
          this.isSocket() ? "Socket" : "Unknown"
        );
      }
      /**
       * Is the Path a regular file?
       */
      isFile() {
        return (this.#type & IFMT2) === IFREG2;
      }
      /**
       * Is the Path a directory?
       */
      isDirectory() {
        return (this.#type & IFMT2) === IFDIR2;
      }
      /**
       * Is the path a character device?
       */
      isCharacterDevice() {
        return (this.#type & IFMT2) === IFCHR2;
      }
      /**
       * Is the path a block device?
       */
      isBlockDevice() {
        return (this.#type & IFMT2) === IFBLK2;
      }
      /**
       * Is the path a FIFO pipe?
       */
      isFIFO() {
        return (this.#type & IFMT2) === IFIFO2;
      }
      /**
       * Is the path a socket?
       */
      isSocket() {
        return (this.#type & IFMT2) === IFSOCK2;
      }
      /**
       * Is the path a symbolic link?
       */
      isSymbolicLink() {
        return (this.#type & IFLNK2) === IFLNK2;
      }
      /**
       * Return the entry if it has been subject of a successful lstat, or
       * undefined otherwise.
       *
       * Does not read the filesystem, so an undefined result *could* simply
       * mean that we haven't called lstat on it.
       */
      lstatCached() {
        return this.#type & LSTAT_CALLED2 ? this : void 0;
      }
      /**
       * Return the cached link target if the entry has been the subject of a
       * successful readlink, or undefined otherwise.
       *
       * Does not read the filesystem, so an undefined result *could* just mean we
       * don't have any cached data. Only use it if you are very sure that a
       * readlink() has been called at some point.
       */
      readlinkCached() {
        return this.#linkTarget;
      }
      /**
       * Returns the cached realpath target if the entry has been the subject
       * of a successful realpath, or undefined otherwise.
       *
       * Does not read the filesystem, so an undefined result *could* just mean we
       * don't have any cached data. Only use it if you are very sure that a
       * realpath() has been called at some point.
       */
      realpathCached() {
        return this.#realpath;
      }
      /**
       * Returns the cached child Path entries array if the entry has been the
       * subject of a successful readdir(), or [] otherwise.
       *
       * Does not read the filesystem, so an empty array *could* just mean we
       * don't have any cached data. Only use it if you are very sure that a
       * readdir() has been called recently enough to still be valid.
       */
      readdirCached() {
        const children = this.children();
        return children.slice(0, children.provisional);
      }
      /**
       * Return true if it's worth trying to readlink.  Ie, we don't (yet) have
       * any indication that readlink will definitely fail.
       *
       * Returns false if the path is known to not be a symlink, if a previous
       * readlink failed, or if the entry does not exist.
       */
      canReadlink() {
        if (this.#linkTarget)
          return true;
        if (!this.parent)
          return false;
        const ifmt = this.#type & IFMT2;
        return !(ifmt !== UNKNOWN2 && ifmt !== IFLNK2 || this.#type & ENOREADLINK2 || this.#type & ENOENT2);
      }
      /**
       * Return true if readdir has previously been successfully called on this
       * path, indicating that cachedReaddir() is likely valid.
       */
      calledReaddir() {
        return !!(this.#type & READDIR_CALLED2);
      }
      /**
       * Returns true if the path is known to not exist. That is, a previous lstat
       * or readdir failed to verify its existence when that would have been
       * expected, or a parent entry was marked either enoent or enotdir.
       */
      isENOENT() {
        return !!(this.#type & ENOENT2);
      }
      /**
       * Return true if the path is a match for the given path name.  This handles
       * case sensitivity and unicode normalization.
       *
       * Note: even on case-sensitive systems, it is **not** safe to test the
       * equality of the `.name` property to determine whether a given pathname
       * matches, due to unicode normalization mismatches.
       *
       * Always use this method instead of testing the `path.name` property
       * directly.
       */
      isNamed(n3) {
        return !this.nocase ? this.#matchName === normalize3(n3) : this.#matchName === normalizeNocase2(n3);
      }
      /**
       * Return the Path object corresponding to the target of a symbolic link.
       *
       * If the Path is not a symbolic link, or if the readlink call fails for any
       * reason, `undefined` is returned.
       *
       * Result is cached, and thus may be outdated if the filesystem is mutated.
       */
      async readlink() {
        const target = this.#linkTarget;
        if (target) {
          return target;
        }
        if (!this.canReadlink()) {
          return void 0;
        }
        if (!this.parent) {
          return void 0;
        }
        try {
          const read = await this.#fs.promises.readlink(this.fullpath());
          const linkTarget = (await this.parent.realpath())?.resolve(read);
          if (linkTarget) {
            return this.#linkTarget = linkTarget;
          }
        } catch (er) {
          this.#readlinkFail(er.code);
          return void 0;
        }
      }
      /**
       * Synchronous {@link PathBase.readlink}
       */
      readlinkSync() {
        const target = this.#linkTarget;
        if (target) {
          return target;
        }
        if (!this.canReadlink()) {
          return void 0;
        }
        if (!this.parent) {
          return void 0;
        }
        try {
          const read = this.#fs.readlinkSync(this.fullpath());
          const linkTarget = this.parent.realpathSync()?.resolve(read);
          if (linkTarget) {
            return this.#linkTarget = linkTarget;
          }
        } catch (er) {
          this.#readlinkFail(er.code);
          return void 0;
        }
      }
      #readdirSuccess(children) {
        this.#type |= READDIR_CALLED2;
        for (let p3 = children.provisional; p3 < children.length; p3++) {
          const c3 = children[p3];
          if (c3)
            c3.#markENOENT();
        }
      }
      #markENOENT() {
        if (this.#type & ENOENT2)
          return;
        this.#type = (this.#type | ENOENT2) & IFMT_UNKNOWN2;
        this.#markChildrenENOENT();
      }
      #markChildrenENOENT() {
        const children = this.children();
        children.provisional = 0;
        for (const p3 of children) {
          p3.#markENOENT();
        }
      }
      #markENOREALPATH() {
        this.#type |= ENOREALPATH2;
        this.#markENOTDIR();
      }
      // save the information when we know the entry is not a dir
      #markENOTDIR() {
        if (this.#type & ENOTDIR2)
          return;
        let t3 = this.#type;
        if ((t3 & IFMT2) === IFDIR2)
          t3 &= IFMT_UNKNOWN2;
        this.#type = t3 | ENOTDIR2;
        this.#markChildrenENOENT();
      }
      #readdirFail(code = "") {
        if (code === "ENOTDIR" || code === "EPERM") {
          this.#markENOTDIR();
        } else if (code === "ENOENT") {
          this.#markENOENT();
        } else {
          this.children().provisional = 0;
        }
      }
      #lstatFail(code = "") {
        if (code === "ENOTDIR") {
          const p3 = this.parent;
          p3.#markENOTDIR();
        } else if (code === "ENOENT") {
          this.#markENOENT();
        }
      }
      #readlinkFail(code = "") {
        let ter = this.#type;
        ter |= ENOREADLINK2;
        if (code === "ENOENT")
          ter |= ENOENT2;
        if (code === "EINVAL" || code === "UNKNOWN") {
          ter &= IFMT_UNKNOWN2;
        }
        this.#type = ter;
        if (code === "ENOTDIR" && this.parent) {
          this.parent.#markENOTDIR();
        }
      }
      #readdirAddChild(e3, c3) {
        return this.#readdirMaybePromoteChild(e3, c3) || this.#readdirAddNewChild(e3, c3);
      }
      #readdirAddNewChild(e3, c3) {
        const type = entToType2(e3);
        const child = this.newChild(e3.name, type, { parent: this });
        const ifmt = child.#type & IFMT2;
        if (ifmt !== IFDIR2 && ifmt !== IFLNK2 && ifmt !== UNKNOWN2) {
          child.#type |= ENOTDIR2;
        }
        c3.unshift(child);
        c3.provisional++;
        return child;
      }
      #readdirMaybePromoteChild(e3, c3) {
        for (let p3 = c3.provisional; p3 < c3.length; p3++) {
          const pchild = c3[p3];
          const name = this.nocase ? normalizeNocase2(e3.name) : normalize3(e3.name);
          if (name !== pchild.#matchName) {
            continue;
          }
          return this.#readdirPromoteChild(e3, pchild, p3, c3);
        }
      }
      #readdirPromoteChild(e3, p3, index, c3) {
        const v6 = p3.name;
        p3.#type = p3.#type & IFMT_UNKNOWN2 | entToType2(e3);
        if (v6 !== e3.name)
          p3.name = e3.name;
        if (index !== c3.provisional) {
          if (index === c3.length - 1)
            c3.pop();
          else
            c3.splice(index, 1);
          c3.unshift(p3);
        }
        c3.provisional++;
        return p3;
      }
      /**
       * Call lstat() on this Path, and update all known information that can be
       * determined.
       *
       * Note that unlike `fs.lstat()`, the returned value does not contain some
       * information, such as `mode`, `dev`, `nlink`, and `ino`.  If that
       * information is required, you will need to call `fs.lstat` yourself.
       *
       * If the Path refers to a nonexistent file, or if the lstat call fails for
       * any reason, `undefined` is returned.  Otherwise the updated Path object is
       * returned.
       *
       * Results are cached, and thus may be out of date if the filesystem is
       * mutated.
       */
      async lstat() {
        if ((this.#type & ENOENT2) === 0) {
          try {
            this.#applyStat(await this.#fs.promises.lstat(this.fullpath()));
            return this;
          } catch (er) {
            this.#lstatFail(er.code);
          }
        }
      }
      /**
       * synchronous {@link PathBase.lstat}
       */
      lstatSync() {
        if ((this.#type & ENOENT2) === 0) {
          try {
            this.#applyStat(this.#fs.lstatSync(this.fullpath()));
            return this;
          } catch (er) {
            this.#lstatFail(er.code);
          }
        }
      }
      #applyStat(st) {
        const { atime, atimeMs, birthtime, birthtimeMs, blksize, blocks, ctime, ctimeMs, dev, gid, ino, mode, mtime, mtimeMs, nlink, rdev, size, uid } = st;
        this.#atime = atime;
        this.#atimeMs = atimeMs;
        this.#birthtime = birthtime;
        this.#birthtimeMs = birthtimeMs;
        this.#blksize = blksize;
        this.#blocks = blocks;
        this.#ctime = ctime;
        this.#ctimeMs = ctimeMs;
        this.#dev = dev;
        this.#gid = gid;
        this.#ino = ino;
        this.#mode = mode;
        this.#mtime = mtime;
        this.#mtimeMs = mtimeMs;
        this.#nlink = nlink;
        this.#rdev = rdev;
        this.#size = size;
        this.#uid = uid;
        const ifmt = entToType2(st);
        this.#type = this.#type & IFMT_UNKNOWN2 | ifmt | LSTAT_CALLED2;
        if (ifmt !== UNKNOWN2 && ifmt !== IFDIR2 && ifmt !== IFLNK2) {
          this.#type |= ENOTDIR2;
        }
      }
      #onReaddirCB = [];
      #readdirCBInFlight = false;
      #callOnReaddirCB(children) {
        this.#readdirCBInFlight = false;
        const cbs = this.#onReaddirCB.slice();
        this.#onReaddirCB.length = 0;
        cbs.forEach((cb) => cb(null, children));
      }
      /**
       * Standard node-style callback interface to get list of directory entries.
       *
       * If the Path cannot or does not contain any children, then an empty array
       * is returned.
       *
       * Results are cached, and thus may be out of date if the filesystem is
       * mutated.
       *
       * @param cb The callback called with (er, entries).  Note that the `er`
       * param is somewhat extraneous, as all readdir() errors are handled and
       * simply result in an empty set of entries being returned.
       * @param allowZalgo Boolean indicating that immediately known results should
       * *not* be deferred with `queueMicrotask`. Defaults to `false`. Release
       * zalgo at your peril, the dark pony lord is devious and unforgiving.
       */
      readdirCB(cb, allowZalgo = false) {
        if (!this.canReaddir()) {
          if (allowZalgo)
            cb(null, []);
          else
            queueMicrotask(() => cb(null, []));
          return;
        }
        const children = this.children();
        if (this.calledReaddir()) {
          const c3 = children.slice(0, children.provisional);
          if (allowZalgo)
            cb(null, c3);
          else
            queueMicrotask(() => cb(null, c3));
          return;
        }
        this.#onReaddirCB.push(cb);
        if (this.#readdirCBInFlight) {
          return;
        }
        this.#readdirCBInFlight = true;
        const fullpath = this.fullpath();
        this.#fs.readdir(fullpath, { withFileTypes: true }, (er, entries) => {
          if (er) {
            this.#readdirFail(er.code);
            children.provisional = 0;
          } else {
            for (const e3 of entries) {
              this.#readdirAddChild(e3, children);
            }
            this.#readdirSuccess(children);
          }
          this.#callOnReaddirCB(children.slice(0, children.provisional));
          return;
        });
      }
      #asyncReaddirInFlight;
      /**
       * Return an array of known child entries.
       *
       * If the Path cannot or does not contain any children, then an empty array
       * is returned.
       *
       * Results are cached, and thus may be out of date if the filesystem is
       * mutated.
       */
      async readdir() {
        if (!this.canReaddir()) {
          return [];
        }
        const children = this.children();
        if (this.calledReaddir()) {
          return children.slice(0, children.provisional);
        }
        const fullpath = this.fullpath();
        if (this.#asyncReaddirInFlight) {
          await this.#asyncReaddirInFlight;
        } else {
          let resolve13 = /* @__PURE__ */ __name(() => {
          }, "resolve");
          this.#asyncReaddirInFlight = new Promise((res) => resolve13 = res);
          try {
            for (const e3 of await this.#fs.promises.readdir(fullpath, {
              withFileTypes: true
            })) {
              this.#readdirAddChild(e3, children);
            }
            this.#readdirSuccess(children);
          } catch (er) {
            this.#readdirFail(er.code);
            children.provisional = 0;
          }
          this.#asyncReaddirInFlight = void 0;
          resolve13();
        }
        return children.slice(0, children.provisional);
      }
      /**
       * synchronous {@link PathBase.readdir}
       */
      readdirSync() {
        if (!this.canReaddir()) {
          return [];
        }
        const children = this.children();
        if (this.calledReaddir()) {
          return children.slice(0, children.provisional);
        }
        const fullpath = this.fullpath();
        try {
          for (const e3 of this.#fs.readdirSync(fullpath, {
            withFileTypes: true
          })) {
            this.#readdirAddChild(e3, children);
          }
          this.#readdirSuccess(children);
        } catch (er) {
          this.#readdirFail(er.code);
          children.provisional = 0;
        }
        return children.slice(0, children.provisional);
      }
      canReaddir() {
        if (this.#type & ENOCHILD2)
          return false;
        const ifmt = IFMT2 & this.#type;
        if (!(ifmt === UNKNOWN2 || ifmt === IFDIR2 || ifmt === IFLNK2)) {
          return false;
        }
        return true;
      }
      shouldWalk(dirs, walkFilter) {
        return (this.#type & IFDIR2) === IFDIR2 && !(this.#type & ENOCHILD2) && !dirs.has(this) && (!walkFilter || walkFilter(this));
      }
      /**
       * Return the Path object corresponding to path as resolved
       * by realpath(3).
       *
       * If the realpath call fails for any reason, `undefined` is returned.
       *
       * Result is cached, and thus may be outdated if the filesystem is mutated.
       * On success, returns a Path object.
       */
      async realpath() {
        if (this.#realpath)
          return this.#realpath;
        if ((ENOREALPATH2 | ENOREADLINK2 | ENOENT2) & this.#type)
          return void 0;
        try {
          const rp = await this.#fs.promises.realpath(this.fullpath());
          return this.#realpath = this.resolve(rp);
        } catch (_3) {
          this.#markENOREALPATH();
        }
      }
      /**
       * Synchronous {@link realpath}
       */
      realpathSync() {
        if (this.#realpath)
          return this.#realpath;
        if ((ENOREALPATH2 | ENOREADLINK2 | ENOENT2) & this.#type)
          return void 0;
        try {
          const rp = this.#fs.realpathSync(this.fullpath());
          return this.#realpath = this.resolve(rp);
        } catch (_3) {
          this.#markENOREALPATH();
        }
      }
      /**
       * Internal method to mark this Path object as the scurry cwd,
       * called by {@link PathScurry#chdir}
       *
       * @internal
       */
      [setAsCwd2](oldCwd) {
        if (oldCwd === this)
          return;
        oldCwd.isCWD = false;
        this.isCWD = true;
        const changed = /* @__PURE__ */ new Set([]);
        let rp = [];
        let p3 = this;
        while (p3 && p3.parent) {
          changed.add(p3);
          p3.#relative = rp.join(this.sep);
          p3.#relativePosix = rp.join("/");
          p3 = p3.parent;
          rp.push("..");
        }
        p3 = oldCwd;
        while (p3 && p3.parent && !changed.has(p3)) {
          p3.#relative = void 0;
          p3.#relativePosix = void 0;
          p3 = p3.parent;
        }
      }
    };
    exports2.PathBase = PathBase2;
    var PathWin322 = class _PathWin32 extends PathBase2 {
      static {
        __name(this, "PathWin32");
      }
      /**
       * Separator for generating path strings.
       */
      sep = "\\";
      /**
       * Separator for parsing path strings.
       */
      splitSep = eitherSep2;
      /**
       * Do not create new Path objects directly.  They should always be accessed
       * via the PathScurry class or other methods on the Path class.
       *
       * @internal
       */
      constructor(name, type = UNKNOWN2, root, roots, nocase, children, opts) {
        super(name, type, root, roots, nocase, children, opts);
      }
      /**
       * @internal
       */
      newChild(name, type = UNKNOWN2, opts = {}) {
        return new _PathWin32(name, type, this.root, this.roots, this.nocase, this.childrenCache(), opts);
      }
      /**
       * @internal
       */
      getRootString(path38) {
        return node_path_1.win32.parse(path38).root;
      }
      /**
       * @internal
       */
      getRoot(rootPath) {
        rootPath = uncToDrive2(rootPath.toUpperCase());
        if (rootPath === this.root.name) {
          return this.root;
        }
        for (const [compare2, root] of Object.entries(this.roots)) {
          if (this.sameRoot(rootPath, compare2)) {
            return this.roots[rootPath] = root;
          }
        }
        return this.roots[rootPath] = new PathScurryWin322(rootPath, this).root;
      }
      /**
       * @internal
       */
      sameRoot(rootPath, compare2 = this.root.name) {
        rootPath = rootPath.toUpperCase().replace(/\//g, "\\").replace(uncDriveRegexp2, "$1\\");
        return rootPath === compare2;
      }
    };
    exports2.PathWin32 = PathWin322;
    var PathPosix2 = class _PathPosix extends PathBase2 {
      static {
        __name(this, "PathPosix");
      }
      /**
       * separator for parsing path strings
       */
      splitSep = "/";
      /**
       * separator for generating path strings
       */
      sep = "/";
      /**
       * Do not create new Path objects directly.  They should always be accessed
       * via the PathScurry class or other methods on the Path class.
       *
       * @internal
       */
      constructor(name, type = UNKNOWN2, root, roots, nocase, children, opts) {
        super(name, type, root, roots, nocase, children, opts);
      }
      /**
       * @internal
       */
      getRootString(path38) {
        return path38.startsWith("/") ? "/" : "";
      }
      /**
       * @internal
       */
      getRoot(_rootPath) {
        return this.root;
      }
      /**
       * @internal
       */
      newChild(name, type = UNKNOWN2, opts = {}) {
        return new _PathPosix(name, type, this.root, this.roots, this.nocase, this.childrenCache(), opts);
      }
    };
    exports2.PathPosix = PathPosix2;
    var PathScurryBase2 = class {
      static {
        __name(this, "PathScurryBase");
      }
      /**
       * The root Path entry for the current working directory of this Scurry
       */
      root;
      /**
       * The string path for the root of this Scurry's current working directory
       */
      rootPath;
      /**
       * A collection of all roots encountered, referenced by rootPath
       */
      roots;
      /**
       * The Path entry corresponding to this PathScurry's current working directory.
       */
      cwd;
      #resolveCache;
      #resolvePosixCache;
      #children;
      /**
       * Perform path comparisons case-insensitively.
       *
       * Defaults true on Darwin and Windows systems, false elsewhere.
       */
      nocase;
      #fs;
      /**
       * This class should not be instantiated directly.
       *
       * Use PathScurryWin32, PathScurryDarwin, PathScurryPosix, or PathScurry
       *
       * @internal
       */
      constructor(cwd = process.cwd(), pathImpl, sep5, { nocase, childrenCacheSize = 16 * 1024, fs: fs43 = defaultFS2 } = {}) {
        this.#fs = fsFromOption2(fs43);
        if (cwd instanceof URL || cwd.startsWith("file://")) {
          cwd = (0, node_url_1.fileURLToPath)(cwd);
        }
        const cwdPath = pathImpl.resolve(cwd);
        this.roots = /* @__PURE__ */ Object.create(null);
        this.rootPath = this.parseRootPath(cwdPath);
        this.#resolveCache = new ResolveCache2();
        this.#resolvePosixCache = new ResolveCache2();
        this.#children = new ChildrenCache2(childrenCacheSize);
        const split2 = cwdPath.substring(this.rootPath.length).split(sep5);
        if (split2.length === 1 && !split2[0]) {
          split2.pop();
        }
        if (nocase === void 0) {
          throw new TypeError("must provide nocase setting to PathScurryBase ctor");
        }
        this.nocase = nocase;
        this.root = this.newRoot(this.#fs);
        this.roots[this.rootPath] = this.root;
        let prev = this.root;
        let len = split2.length - 1;
        const joinSep = pathImpl.sep;
        let abs = this.rootPath;
        let sawFirst = false;
        for (const part of split2) {
          const l3 = len--;
          prev = prev.child(part, {
            relative: new Array(l3).fill("..").join(joinSep),
            relativePosix: new Array(l3).fill("..").join("/"),
            fullpath: abs += (sawFirst ? "" : joinSep) + part
          });
          sawFirst = true;
        }
        this.cwd = prev;
      }
      /**
       * Get the depth of a provided path, string, or the cwd
       */
      depth(path38 = this.cwd) {
        if (typeof path38 === "string") {
          path38 = this.cwd.resolve(path38);
        }
        return path38.depth();
      }
      /**
       * Return the cache of child entries.  Exposed so subclasses can create
       * child Path objects in a platform-specific way.
       *
       * @internal
       */
      childrenCache() {
        return this.#children;
      }
      /**
       * Resolve one or more path strings to a resolved string
       *
       * Same interface as require('path').resolve.
       *
       * Much faster than path.resolve() when called multiple times for the same
       * path, because the resolved Path objects are cached.  Much slower
       * otherwise.
       */
      resolve(...paths) {
        let r3 = "";
        for (let i3 = paths.length - 1; i3 >= 0; i3--) {
          const p3 = paths[i3];
          if (!p3 || p3 === ".")
            continue;
          r3 = r3 ? `${p3}/${r3}` : p3;
          if (this.isAbsolute(p3)) {
            break;
          }
        }
        const cached4 = this.#resolveCache.get(r3);
        if (cached4 !== void 0) {
          return cached4;
        }
        const result2 = this.cwd.resolve(r3).fullpath();
        this.#resolveCache.set(r3, result2);
        return result2;
      }
      /**
       * Resolve one or more path strings to a resolved string, returning
       * the posix path.  Identical to .resolve() on posix systems, but on
       * windows will return a forward-slash separated UNC path.
       *
       * Same interface as require('path').resolve.
       *
       * Much faster than path.resolve() when called multiple times for the same
       * path, because the resolved Path objects are cached.  Much slower
       * otherwise.
       */
      resolvePosix(...paths) {
        let r3 = "";
        for (let i3 = paths.length - 1; i3 >= 0; i3--) {
          const p3 = paths[i3];
          if (!p3 || p3 === ".")
            continue;
          r3 = r3 ? `${p3}/${r3}` : p3;
          if (this.isAbsolute(p3)) {
            break;
          }
        }
        const cached4 = this.#resolvePosixCache.get(r3);
        if (cached4 !== void 0) {
          return cached4;
        }
        const result2 = this.cwd.resolve(r3).fullpathPosix();
        this.#resolvePosixCache.set(r3, result2);
        return result2;
      }
      /**
       * find the relative path from the cwd to the supplied path string or entry
       */
      relative(entry = this.cwd) {
        if (typeof entry === "string") {
          entry = this.cwd.resolve(entry);
        }
        return entry.relative();
      }
      /**
       * find the relative path from the cwd to the supplied path string or
       * entry, using / as the path delimiter, even on Windows.
       */
      relativePosix(entry = this.cwd) {
        if (typeof entry === "string") {
          entry = this.cwd.resolve(entry);
        }
        return entry.relativePosix();
      }
      /**
       * Return the basename for the provided string or Path object
       */
      basename(entry = this.cwd) {
        if (typeof entry === "string") {
          entry = this.cwd.resolve(entry);
        }
        return entry.name;
      }
      /**
       * Return the dirname for the provided string or Path object
       */
      dirname(entry = this.cwd) {
        if (typeof entry === "string") {
          entry = this.cwd.resolve(entry);
        }
        return (entry.parent || entry).fullpath();
      }
      async readdir(entry = this.cwd, opts = {
        withFileTypes: true
      }) {
        if (typeof entry === "string") {
          entry = this.cwd.resolve(entry);
        } else if (!(entry instanceof PathBase2)) {
          opts = entry;
          entry = this.cwd;
        }
        const { withFileTypes } = opts;
        if (!entry.canReaddir()) {
          return [];
        } else {
          const p3 = await entry.readdir();
          return withFileTypes ? p3 : p3.map((e3) => e3.name);
        }
      }
      readdirSync(entry = this.cwd, opts = {
        withFileTypes: true
      }) {
        if (typeof entry === "string") {
          entry = this.cwd.resolve(entry);
        } else if (!(entry instanceof PathBase2)) {
          opts = entry;
          entry = this.cwd;
        }
        const { withFileTypes = true } = opts;
        if (!entry.canReaddir()) {
          return [];
        } else if (withFileTypes) {
          return entry.readdirSync();
        } else {
          return entry.readdirSync().map((e3) => e3.name);
        }
      }
      /**
       * Call lstat() on the string or Path object, and update all known
       * information that can be determined.
       *
       * Note that unlike `fs.lstat()`, the returned value does not contain some
       * information, such as `mode`, `dev`, `nlink`, and `ino`.  If that
       * information is required, you will need to call `fs.lstat` yourself.
       *
       * If the Path refers to a nonexistent file, or if the lstat call fails for
       * any reason, `undefined` is returned.  Otherwise the updated Path object is
       * returned.
       *
       * Results are cached, and thus may be out of date if the filesystem is
       * mutated.
       */
      async lstat(entry = this.cwd) {
        if (typeof entry === "string") {
          entry = this.cwd.resolve(entry);
        }
        return entry.lstat();
      }
      /**
       * synchronous {@link PathScurryBase.lstat}
       */
      lstatSync(entry = this.cwd) {
        if (typeof entry === "string") {
          entry = this.cwd.resolve(entry);
        }
        return entry.lstatSync();
      }
      async readlink(entry = this.cwd, { withFileTypes } = {
        withFileTypes: false
      }) {
        if (typeof entry === "string") {
          entry = this.cwd.resolve(entry);
        } else if (!(entry instanceof PathBase2)) {
          withFileTypes = entry.withFileTypes;
          entry = this.cwd;
        }
        const e3 = await entry.readlink();
        return withFileTypes ? e3 : e3?.fullpath();
      }
      readlinkSync(entry = this.cwd, { withFileTypes } = {
        withFileTypes: false
      }) {
        if (typeof entry === "string") {
          entry = this.cwd.resolve(entry);
        } else if (!(entry instanceof PathBase2)) {
          withFileTypes = entry.withFileTypes;
          entry = this.cwd;
        }
        const e3 = entry.readlinkSync();
        return withFileTypes ? e3 : e3?.fullpath();
      }
      async realpath(entry = this.cwd, { withFileTypes } = {
        withFileTypes: false
      }) {
        if (typeof entry === "string") {
          entry = this.cwd.resolve(entry);
        } else if (!(entry instanceof PathBase2)) {
          withFileTypes = entry.withFileTypes;
          entry = this.cwd;
        }
        const e3 = await entry.realpath();
        return withFileTypes ? e3 : e3?.fullpath();
      }
      realpathSync(entry = this.cwd, { withFileTypes } = {
        withFileTypes: false
      }) {
        if (typeof entry === "string") {
          entry = this.cwd.resolve(entry);
        } else if (!(entry instanceof PathBase2)) {
          withFileTypes = entry.withFileTypes;
          entry = this.cwd;
        }
        const e3 = entry.realpathSync();
        return withFileTypes ? e3 : e3?.fullpath();
      }
      async walk(entry = this.cwd, opts = {}) {
        if (typeof entry === "string") {
          entry = this.cwd.resolve(entry);
        } else if (!(entry instanceof PathBase2)) {
          opts = entry;
          entry = this.cwd;
        }
        const { withFileTypes = true, follow = false, filter: filter4, walkFilter } = opts;
        const results = [];
        if (!filter4 || filter4(entry)) {
          results.push(withFileTypes ? entry : entry.fullpath());
        }
        const dirs = /* @__PURE__ */ new Set();
        const walk = /* @__PURE__ */ __name((dir, cb) => {
          dirs.add(dir);
          dir.readdirCB((er, entries) => {
            if (er) {
              return cb(er);
            }
            let len = entries.length;
            if (!len)
              return cb();
            const next = /* @__PURE__ */ __name(() => {
              if (--len === 0) {
                cb();
              }
            }, "next");
            for (const e3 of entries) {
              if (!filter4 || filter4(e3)) {
                results.push(withFileTypes ? e3 : e3.fullpath());
              }
              if (follow && e3.isSymbolicLink()) {
                e3.realpath().then((r3) => r3?.isUnknown() ? r3.lstat() : r3).then((r3) => r3?.shouldWalk(dirs, walkFilter) ? walk(r3, next) : next());
              } else {
                if (e3.shouldWalk(dirs, walkFilter)) {
                  walk(e3, next);
                } else {
                  next();
                }
              }
            }
          }, true);
        }, "walk");
        const start = entry;
        return new Promise((res, rej) => {
          walk(start, (er) => {
            if (er)
              return rej(er);
            res(results);
          });
        });
      }
      walkSync(entry = this.cwd, opts = {}) {
        if (typeof entry === "string") {
          entry = this.cwd.resolve(entry);
        } else if (!(entry instanceof PathBase2)) {
          opts = entry;
          entry = this.cwd;
        }
        const { withFileTypes = true, follow = false, filter: filter4, walkFilter } = opts;
        const results = [];
        if (!filter4 || filter4(entry)) {
          results.push(withFileTypes ? entry : entry.fullpath());
        }
        const dirs = /* @__PURE__ */ new Set([entry]);
        for (const dir of dirs) {
          const entries = dir.readdirSync();
          for (const e3 of entries) {
            if (!filter4 || filter4(e3)) {
              results.push(withFileTypes ? e3 : e3.fullpath());
            }
            let r3 = e3;
            if (e3.isSymbolicLink()) {
              if (!(follow && (r3 = e3.realpathSync())))
                continue;
              if (r3.isUnknown())
                r3.lstatSync();
            }
            if (r3.shouldWalk(dirs, walkFilter)) {
              dirs.add(r3);
            }
          }
        }
        return results;
      }
      /**
       * Support for `for await`
       *
       * Alias for {@link PathScurryBase.iterate}
       *
       * Note: As of Node 19, this is very slow, compared to other methods of
       * walking.  Consider using {@link PathScurryBase.stream} if memory overhead
       * and backpressure are concerns, or {@link PathScurryBase.walk} if not.
       */
      [Symbol.asyncIterator]() {
        return this.iterate();
      }
      iterate(entry = this.cwd, options = {}) {
        if (typeof entry === "string") {
          entry = this.cwd.resolve(entry);
        } else if (!(entry instanceof PathBase2)) {
          options = entry;
          entry = this.cwd;
        }
        return this.stream(entry, options)[Symbol.asyncIterator]();
      }
      /**
       * Iterating over a PathScurry performs a synchronous walk.
       *
       * Alias for {@link PathScurryBase.iterateSync}
       */
      [Symbol.iterator]() {
        return this.iterateSync();
      }
      *iterateSync(entry = this.cwd, opts = {}) {
        if (typeof entry === "string") {
          entry = this.cwd.resolve(entry);
        } else if (!(entry instanceof PathBase2)) {
          opts = entry;
          entry = this.cwd;
        }
        const { withFileTypes = true, follow = false, filter: filter4, walkFilter } = opts;
        if (!filter4 || filter4(entry)) {
          yield withFileTypes ? entry : entry.fullpath();
        }
        const dirs = /* @__PURE__ */ new Set([entry]);
        for (const dir of dirs) {
          const entries = dir.readdirSync();
          for (const e3 of entries) {
            if (!filter4 || filter4(e3)) {
              yield withFileTypes ? e3 : e3.fullpath();
            }
            let r3 = e3;
            if (e3.isSymbolicLink()) {
              if (!(follow && (r3 = e3.realpathSync())))
                continue;
              if (r3.isUnknown())
                r3.lstatSync();
            }
            if (r3.shouldWalk(dirs, walkFilter)) {
              dirs.add(r3);
            }
          }
        }
      }
      stream(entry = this.cwd, opts = {}) {
        if (typeof entry === "string") {
          entry = this.cwd.resolve(entry);
        } else if (!(entry instanceof PathBase2)) {
          opts = entry;
          entry = this.cwd;
        }
        const { withFileTypes = true, follow = false, filter: filter4, walkFilter } = opts;
        const results = new minipass_1.Minipass({ objectMode: true });
        if (!filter4 || filter4(entry)) {
          results.write(withFileTypes ? entry : entry.fullpath());
        }
        const dirs = /* @__PURE__ */ new Set();
        const queue = [entry];
        let processing = 0;
        const process3 = /* @__PURE__ */ __name(() => {
          let paused = false;
          while (!paused) {
            const dir = queue.shift();
            if (!dir) {
              if (processing === 0)
                results.end();
              return;
            }
            processing++;
            dirs.add(dir);
            const onReaddir = /* @__PURE__ */ __name((er, entries, didRealpaths = false) => {
              if (er)
                return results.emit("error", er);
              if (follow && !didRealpaths) {
                const promises3 = [];
                for (const e3 of entries) {
                  if (e3.isSymbolicLink()) {
                    promises3.push(e3.realpath().then((r3) => r3?.isUnknown() ? r3.lstat() : r3));
                  }
                }
                if (promises3.length) {
                  Promise.all(promises3).then(() => onReaddir(null, entries, true));
                  return;
                }
              }
              for (const e3 of entries) {
                if (e3 && (!filter4 || filter4(e3))) {
                  if (!results.write(withFileTypes ? e3 : e3.fullpath())) {
                    paused = true;
                  }
                }
              }
              processing--;
              for (const e3 of entries) {
                const r3 = e3.realpathCached() || e3;
                if (r3.shouldWalk(dirs, walkFilter)) {
                  queue.push(r3);
                }
              }
              if (paused && !results.flowing) {
                results.once("drain", process3);
              } else if (!sync2) {
                process3();
              }
            }, "onReaddir");
            let sync2 = true;
            dir.readdirCB(onReaddir, true);
            sync2 = false;
          }
        }, "process");
        process3();
        return results;
      }
      streamSync(entry = this.cwd, opts = {}) {
        if (typeof entry === "string") {
          entry = this.cwd.resolve(entry);
        } else if (!(entry instanceof PathBase2)) {
          opts = entry;
          entry = this.cwd;
        }
        const { withFileTypes = true, follow = false, filter: filter4, walkFilter } = opts;
        const results = new minipass_1.Minipass({ objectMode: true });
        const dirs = /* @__PURE__ */ new Set();
        if (!filter4 || filter4(entry)) {
          results.write(withFileTypes ? entry : entry.fullpath());
        }
        const queue = [entry];
        let processing = 0;
        const process3 = /* @__PURE__ */ __name(() => {
          let paused = false;
          while (!paused) {
            const dir = queue.shift();
            if (!dir) {
              if (processing === 0)
                results.end();
              return;
            }
            processing++;
            dirs.add(dir);
            const entries = dir.readdirSync();
            for (const e3 of entries) {
              if (!filter4 || filter4(e3)) {
                if (!results.write(withFileTypes ? e3 : e3.fullpath())) {
                  paused = true;
                }
              }
            }
            processing--;
            for (const e3 of entries) {
              let r3 = e3;
              if (e3.isSymbolicLink()) {
                if (!(follow && (r3 = e3.realpathSync())))
                  continue;
                if (r3.isUnknown())
                  r3.lstatSync();
              }
              if (r3.shouldWalk(dirs, walkFilter)) {
                queue.push(r3);
              }
            }
          }
          if (paused && !results.flowing)
            results.once("drain", process3);
        }, "process");
        process3();
        return results;
      }
      chdir(path38 = this.cwd) {
        const oldCwd = this.cwd;
        this.cwd = typeof path38 === "string" ? this.cwd.resolve(path38) : path38;
        this.cwd[setAsCwd2](oldCwd);
      }
    };
    exports2.PathScurryBase = PathScurryBase2;
    var PathScurryWin322 = class extends PathScurryBase2 {
      static {
        __name(this, "PathScurryWin32");
      }
      /**
       * separator for generating path strings
       */
      sep = "\\";
      constructor(cwd = process.cwd(), opts = {}) {
        const { nocase = true } = opts;
        super(cwd, node_path_1.win32, "\\", { ...opts, nocase });
        this.nocase = nocase;
        for (let p3 = this.cwd; p3; p3 = p3.parent) {
          p3.nocase = this.nocase;
        }
      }
      /**
       * @internal
       */
      parseRootPath(dir) {
        return node_path_1.win32.parse(dir).root.toUpperCase();
      }
      /**
       * @internal
       */
      newRoot(fs43) {
        return new PathWin322(this.rootPath, IFDIR2, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs43 });
      }
      /**
       * Return true if the provided path string is an absolute path
       */
      isAbsolute(p3) {
        return p3.startsWith("/") || p3.startsWith("\\") || /^[a-z]:(\/|\\)/i.test(p3);
      }
    };
    exports2.PathScurryWin32 = PathScurryWin322;
    var PathScurryPosix2 = class extends PathScurryBase2 {
      static {
        __name(this, "PathScurryPosix");
      }
      /**
       * separator for generating path strings
       */
      sep = "/";
      constructor(cwd = process.cwd(), opts = {}) {
        const { nocase = false } = opts;
        super(cwd, node_path_1.posix, "/", { ...opts, nocase });
        this.nocase = nocase;
      }
      /**
       * @internal
       */
      parseRootPath(_dir) {
        return "/";
      }
      /**
       * @internal
       */
      newRoot(fs43) {
        return new PathPosix2(this.rootPath, IFDIR2, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs43 });
      }
      /**
       * Return true if the provided path string is an absolute path
       */
      isAbsolute(p3) {
        return p3.startsWith("/");
      }
    };
    exports2.PathScurryPosix = PathScurryPosix2;
    var PathScurryDarwin2 = class extends PathScurryPosix2 {
      static {
        __name(this, "PathScurryDarwin");
      }
      constructor(cwd = process.cwd(), opts = {}) {
        const { nocase = true } = opts;
        super(cwd, { ...opts, nocase });
      }
    };
    exports2.PathScurryDarwin = PathScurryDarwin2;
    exports2.Path = process.platform === "win32" ? PathWin322 : PathPosix2;
    exports2.PathScurry = process.platform === "win32" ? PathScurryWin322 : process.platform === "darwin" ? PathScurryDarwin2 : PathScurryPosix2;
  }
});

// ../../node_modules/archiver-utils/node_modules/glob/dist/commonjs/pattern.js
var require_pattern = __commonJS({
  "../../node_modules/archiver-utils/node_modules/glob/dist/commonjs/pattern.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.Pattern = void 0;
    var minimatch_1 = require_commonjs();
    var isPatternList2 = /* @__PURE__ */ __name((pl) => pl.length >= 1, "isPatternList");
    var isGlobList2 = /* @__PURE__ */ __name((gl) => gl.length >= 1, "isGlobList");
    var Pattern2 = class _Pattern {
      static {
        __name(this, "Pattern");
      }
      #patternList;
      #globList;
      #index;
      length;
      #platform;
      #rest;
      #globString;
      #isDrive;
      #isUNC;
      #isAbsolute;
      #followGlobstar = true;
      constructor(patternList, globList, index, platform3) {
        if (!isPatternList2(patternList)) {
          throw new TypeError("empty pattern list");
        }
        if (!isGlobList2(globList)) {
          throw new TypeError("empty glob list");
        }
        if (globList.length !== patternList.length) {
          throw new TypeError("mismatched pattern list and glob list lengths");
        }
        this.length = patternList.length;
        if (index < 0 || index >= this.length) {
          throw new TypeError("index out of range");
        }
        this.#patternList = patternList;
        this.#globList = globList;
        this.#index = index;
        this.#platform = platform3;
        if (this.#index === 0) {
          if (this.isUNC()) {
            const [p0, p1, p22, p3, ...prest] = this.#patternList;
            const [g0, g1, g22, g3, ...grest] = this.#globList;
            if (prest[0] === "") {
              prest.shift();
              grest.shift();
            }
            const p4 = [p0, p1, p22, p3, ""].join("/");
            const g4 = [g0, g1, g22, g3, ""].join("/");
            this.#patternList = [p4, ...prest];
            this.#globList = [g4, ...grest];
            this.length = this.#patternList.length;
          } else if (this.isDrive() || this.isAbsolute()) {
            const [p1, ...prest] = this.#patternList;
            const [g1, ...grest] = this.#globList;
            if (prest[0] === "") {
              prest.shift();
              grest.shift();
            }
            const p3 = p1 + "/";
            const g3 = g1 + "/";
            this.#patternList = [p3, ...prest];
            this.#globList = [g3, ...grest];
            this.length = this.#patternList.length;
          }
        }
      }
      /**
       * The first entry in the parsed list of patterns
       */
      pattern() {
        return this.#patternList[this.#index];
      }
      /**
       * true of if pattern() returns a string
       */
      isString() {
        return typeof this.#patternList[this.#index] === "string";
      }
      /**
       * true of if pattern() returns GLOBSTAR
       */
      isGlobstar() {
        return this.#patternList[this.#index] === minimatch_1.GLOBSTAR;
      }
      /**
       * true if pattern() returns a regexp
       */
      isRegExp() {
        return this.#patternList[this.#index] instanceof RegExp;
      }
      /**
       * The /-joined set of glob parts that make up this pattern
       */
      globString() {
        return this.#globString = this.#globString || (this.#index === 0 ? this.isAbsolute() ? this.#globList[0] + this.#globList.slice(1).join("/") : this.#globList.join("/") : this.#globList.slice(this.#index).join("/"));
      }
      /**
       * true if there are more pattern parts after this one
       */
      hasMore() {
        return this.length > this.#index + 1;
      }
      /**
       * The rest of the pattern after this part, or null if this is the end
       */
      rest() {
        if (this.#rest !== void 0)
          return this.#rest;
        if (!this.hasMore())
          return this.#rest = null;
        this.#rest = new _Pattern(this.#patternList, this.#globList, this.#index + 1, this.#platform);
        this.#rest.#isAbsolute = this.#isAbsolute;
        this.#rest.#isUNC = this.#isUNC;
        this.#rest.#isDrive = this.#isDrive;
        return this.#rest;
      }
      /**
       * true if the pattern represents a //unc/path/ on windows
       */
      isUNC() {
        const pl = this.#patternList;
        return this.#isUNC !== void 0 ? this.#isUNC : this.#isUNC = this.#platform === "win32" && this.#index === 0 && pl[0] === "" && pl[1] === "" && typeof pl[2] === "string" && !!pl[2] && typeof pl[3] === "string" && !!pl[3];
      }
      // pattern like C:/...
      // split = ['C:', ...]
      // XXX: would be nice to handle patterns like `c:*` to test the cwd
      // in c: for *, but I don't know of a way to even figure out what that
      // cwd is without actually chdir'ing into it?
      /**
       * True if the pattern starts with a drive letter on Windows
       */
      isDrive() {
        const pl = this.#patternList;
        return this.#isDrive !== void 0 ? this.#isDrive : this.#isDrive = this.#platform === "win32" && this.#index === 0 && this.length > 1 && typeof pl[0] === "string" && /^[a-z]:$/i.test(pl[0]);
      }
      // pattern = '/' or '/...' or '/x/...'
      // split = ['', ''] or ['', ...] or ['', 'x', ...]
      // Drive and UNC both considered absolute on windows
      /**
       * True if the pattern is rooted on an absolute path
       */
      isAbsolute() {
        const pl = this.#patternList;
        return this.#isAbsolute !== void 0 ? this.#isAbsolute : this.#isAbsolute = pl[0] === "" && pl.length > 1 || this.isDrive() || this.isUNC();
      }
      /**
       * consume the root of the pattern, and return it
       */
      root() {
        const p3 = this.#patternList[0];
        return typeof p3 === "string" && this.isAbsolute() && this.#index === 0 ? p3 : "";
      }
      /**
       * Check to see if the current globstar pattern is allowed to follow
       * a symbolic link.
       */
      checkFollowGlobstar() {
        return !(this.#index === 0 || !this.isGlobstar() || !this.#followGlobstar);
      }
      /**
       * Mark that the current globstar pattern is following a symbolic link
       */
      markFollowGlobstar() {
        if (this.#index === 0 || !this.isGlobstar() || !this.#followGlobstar)
          return false;
        this.#followGlobstar = false;
        return true;
      }
    };
    exports2.Pattern = Pattern2;
  }
});

// ../../node_modules/archiver-utils/node_modules/glob/dist/commonjs/ignore.js
var require_ignore = __commonJS({
  "../../node_modules/archiver-utils/node_modules/glob/dist/commonjs/ignore.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.Ignore = void 0;
    var minimatch_1 = require_commonjs();
    var pattern_js_1 = require_pattern();
    var defaultPlatform6 = typeof process === "object" && process && typeof process.platform === "string" ? process.platform : "linux";
    var Ignore2 = class {
      static {
        __name(this, "Ignore");
      }
      relative;
      relativeChildren;
      absolute;
      absoluteChildren;
      platform;
      mmopts;
      constructor(ignored, { nobrace, nocase, noext, noglobstar, platform: platform3 = defaultPlatform6 }) {
        this.relative = [];
        this.absolute = [];
        this.relativeChildren = [];
        this.absoluteChildren = [];
        this.platform = platform3;
        this.mmopts = {
          dot: true,
          nobrace,
          nocase,
          noext,
          noglobstar,
          optimizationLevel: 2,
          platform: platform3,
          nocomment: true,
          nonegate: true
        };
        for (const ign of ignored)
          this.add(ign);
      }
      add(ign) {
        const mm = new minimatch_1.Minimatch(ign, this.mmopts);
        for (let i3 = 0; i3 < mm.set.length; i3++) {
          const parsed = mm.set[i3];
          const globParts = mm.globParts[i3];
          if (!parsed || !globParts) {
            throw new Error("invalid pattern object");
          }
          while (parsed[0] === "." && globParts[0] === ".") {
            parsed.shift();
            globParts.shift();
          }
          const p3 = new pattern_js_1.Pattern(parsed, globParts, 0, this.platform);
          const m3 = new minimatch_1.Minimatch(p3.globString(), this.mmopts);
          const children = globParts[globParts.length - 1] === "**";
          const absolute = p3.isAbsolute();
          if (absolute)
            this.absolute.push(m3);
          else
            this.relative.push(m3);
          if (children) {
            if (absolute)
              this.absoluteChildren.push(m3);
            else
              this.relativeChildren.push(m3);
          }
        }
      }
      ignored(p3) {
        const fullpath = p3.fullpath();
        const fullpaths = `${fullpath}/`;
        const relative2 = p3.relative() || ".";
        const relatives = `${relative2}/`;
        for (const m3 of this.relative) {
          if (m3.match(relative2) || m3.match(relatives))
            return true;
        }
        for (const m3 of this.absolute) {
          if (m3.match(fullpath) || m3.match(fullpaths))
            return true;
        }
        return false;
      }
      childrenIgnored(p3) {
        const fullpath = p3.fullpath() + "/";
        const relative2 = (p3.relative() || ".") + "/";
        for (const m3 of this.relativeChildren) {
          if (m3.match(relative2))
            return true;
        }
        for (const m3 of this.absoluteChildren) {
          if (m3.match(fullpath))
            return true;
        }
        return false;
      }
    };
    exports2.Ignore = Ignore2;
  }
});

// ../../node_modules/archiver-utils/node_modules/glob/dist/commonjs/processor.js
var require_processor = __commonJS({
  "../../node_modules/archiver-utils/node_modules/glob/dist/commonjs/processor.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.Processor = exports2.SubWalks = exports2.MatchRecord = exports2.HasWalkedCache = void 0;
    var minimatch_1 = require_commonjs();
    var HasWalkedCache2 = class _HasWalkedCache {
      static {
        __name(this, "HasWalkedCache");
      }
      store;
      constructor(store = /* @__PURE__ */ new Map()) {
        this.store = store;
      }
      copy() {
        return new _HasWalkedCache(new Map(this.store));
      }
      hasWalked(target, pattern) {
        return this.store.get(target.fullpath())?.has(pattern.globString());
      }
      storeWalked(target, pattern) {
        const fullpath = target.fullpath();
        const cached4 = this.store.get(fullpath);
        if (cached4)
          cached4.add(pattern.globString());
        else
          this.store.set(fullpath, /* @__PURE__ */ new Set([pattern.globString()]));
      }
    };
    exports2.HasWalkedCache = HasWalkedCache2;
    var MatchRecord2 = class {
      static {
        __name(this, "MatchRecord");
      }
      store = /* @__PURE__ */ new Map();
      add(target, absolute, ifDir) {
        const n3 = (absolute ? 2 : 0) | (ifDir ? 1 : 0);
        const current = this.store.get(target);
        this.store.set(target, current === void 0 ? n3 : n3 & current);
      }
      // match, absolute, ifdir
      entries() {
        return [...this.store.entries()].map(([path38, n3]) => [
          path38,
          !!(n3 & 2),
          !!(n3 & 1)
        ]);
      }
    };
    exports2.MatchRecord = MatchRecord2;
    var SubWalks2 = class {
      static {
        __name(this, "SubWalks");
      }
      store = /* @__PURE__ */ new Map();
      add(target, pattern) {
        if (!target.canReaddir()) {
          return;
        }
        const subs = this.store.get(target);
        if (subs) {
          if (!subs.find((p3) => p3.globString() === pattern.globString())) {
            subs.push(pattern);
          }
        } else
          this.store.set(target, [pattern]);
      }
      get(target) {
        const subs = this.store.get(target);
        if (!subs) {
          throw new Error("attempting to walk unknown path");
        }
        return subs;
      }
      entries() {
        return this.keys().map((k3) => [k3, this.store.get(k3)]);
      }
      keys() {
        return [...this.store.keys()].filter((t3) => t3.canReaddir());
      }
    };
    exports2.SubWalks = SubWalks2;
    var Processor2 = class _Processor {
      static {
        __name(this, "Processor");
      }
      hasWalkedCache;
      matches = new MatchRecord2();
      subwalks = new SubWalks2();
      patterns;
      follow;
      dot;
      opts;
      constructor(opts, hasWalkedCache) {
        this.opts = opts;
        this.follow = !!opts.follow;
        this.dot = !!opts.dot;
        this.hasWalkedCache = hasWalkedCache ? hasWalkedCache.copy() : new HasWalkedCache2();
      }
      processPatterns(target, patterns) {
        this.patterns = patterns;
        const processingSet = patterns.map((p3) => [target, p3]);
        for (let [t3, pattern] of processingSet) {
          this.hasWalkedCache.storeWalked(t3, pattern);
          const root = pattern.root();
          const absolute = pattern.isAbsolute() && this.opts.absolute !== false;
          if (root) {
            t3 = t3.resolve(root === "/" && this.opts.root !== void 0 ? this.opts.root : root);
            const rest2 = pattern.rest();
            if (!rest2) {
              this.matches.add(t3, true, false);
              continue;
            } else {
              pattern = rest2;
            }
          }
          if (t3.isENOENT())
            continue;
          let p3;
          let rest;
          let changed = false;
          while (typeof (p3 = pattern.pattern()) === "string" && (rest = pattern.rest())) {
            const c3 = t3.resolve(p3);
            t3 = c3;
            pattern = rest;
            changed = true;
          }
          p3 = pattern.pattern();
          rest = pattern.rest();
          if (changed) {
            if (this.hasWalkedCache.hasWalked(t3, pattern))
              continue;
            this.hasWalkedCache.storeWalked(t3, pattern);
          }
          if (typeof p3 === "string") {
            const ifDir = p3 === ".." || p3 === "" || p3 === ".";
            this.matches.add(t3.resolve(p3), absolute, ifDir);
            continue;
          } else if (p3 === minimatch_1.GLOBSTAR) {
            if (!t3.isSymbolicLink() || this.follow || pattern.checkFollowGlobstar()) {
              this.subwalks.add(t3, pattern);
            }
            const rp = rest?.pattern();
            const rrest = rest?.rest();
            if (!rest || (rp === "" || rp === ".") && !rrest) {
              this.matches.add(t3, absolute, rp === "" || rp === ".");
            } else {
              if (rp === "..") {
                const tp = t3.parent || t3;
                if (!rrest)
                  this.matches.add(tp, absolute, true);
                else if (!this.hasWalkedCache.hasWalked(tp, rrest)) {
                  this.subwalks.add(tp, rrest);
                }
              }
            }
          } else if (p3 instanceof RegExp) {
            this.subwalks.add(t3, pattern);
          }
        }
        return this;
      }
      subwalkTargets() {
        return this.subwalks.keys();
      }
      child() {
        return new _Processor(this.opts, this.hasWalkedCache);
      }
      // return a new Processor containing the subwalks for each
      // child entry, and a set of matches, and
      // a hasWalkedCache that's a copy of this one
      // then we're going to call
      filterEntries(parent, entries) {
        const patterns = this.subwalks.get(parent);
        const results = this.child();
        for (const e3 of entries) {
          for (const pattern of patterns) {
            const absolute = pattern.isAbsolute();
            const p3 = pattern.pattern();
            const rest = pattern.rest();
            if (p3 === minimatch_1.GLOBSTAR) {
              results.testGlobstar(e3, pattern, rest, absolute);
            } else if (p3 instanceof RegExp) {
              results.testRegExp(e3, p3, rest, absolute);
            } else {
              results.testString(e3, p3, rest, absolute);
            }
          }
        }
        return results;
      }
      testGlobstar(e3, pattern, rest, absolute) {
        if (this.dot || !e3.name.startsWith(".")) {
          if (!pattern.hasMore()) {
            this.matches.add(e3, absolute, false);
          }
          if (e3.canReaddir()) {
            if (this.follow || !e3.isSymbolicLink()) {
              this.subwalks.add(e3, pattern);
            } else if (e3.isSymbolicLink()) {
              if (rest && pattern.checkFollowGlobstar()) {
                this.subwalks.add(e3, rest);
              } else if (pattern.markFollowGlobstar()) {
                this.subwalks.add(e3, pattern);
              }
            }
          }
        }
        if (rest) {
          const rp = rest.pattern();
          if (typeof rp === "string" && // dots and empty were handled already
          rp !== ".." && rp !== "" && rp !== ".") {
            this.testString(e3, rp, rest.rest(), absolute);
          } else if (rp === "..") {
            const ep = e3.parent || e3;
            this.subwalks.add(ep, rest);
          } else if (rp instanceof RegExp) {
            this.testRegExp(e3, rp, rest.rest(), absolute);
          }
        }
      }
      testRegExp(e3, p3, rest, absolute) {
        if (!p3.test(e3.name))
          return;
        if (!rest) {
          this.matches.add(e3, absolute, false);
        } else {
          this.subwalks.add(e3, rest);
        }
      }
      testString(e3, p3, rest, absolute) {
        if (!e3.isNamed(p3))
          return;
        if (!rest) {
          this.matches.add(e3, absolute, false);
        } else {
          this.subwalks.add(e3, rest);
        }
      }
    };
    exports2.Processor = Processor2;
  }
});

// ../../node_modules/archiver-utils/node_modules/glob/dist/commonjs/walker.js
var require_walker = __commonJS({
  "../../node_modules/archiver-utils/node_modules/glob/dist/commonjs/walker.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.GlobStream = exports2.GlobWalker = exports2.GlobUtil = void 0;
    var minipass_1 = require_commonjs3();
    var ignore_js_1 = require_ignore();
    var processor_js_1 = require_processor();
    var makeIgnore2 = /* @__PURE__ */ __name((ignore, opts) => typeof ignore === "string" ? new ignore_js_1.Ignore([ignore], opts) : Array.isArray(ignore) ? new ignore_js_1.Ignore(ignore, opts) : ignore, "makeIgnore");
    var GlobUtil2 = class {
      static {
        __name(this, "GlobUtil");
      }
      path;
      patterns;
      opts;
      seen = /* @__PURE__ */ new Set();
      paused = false;
      aborted = false;
      #onResume = [];
      #ignore;
      #sep;
      signal;
      maxDepth;
      includeChildMatches;
      constructor(patterns, path38, opts) {
        this.patterns = patterns;
        this.path = path38;
        this.opts = opts;
        this.#sep = !opts.posix && opts.platform === "win32" ? "\\" : "/";
        this.includeChildMatches = opts.includeChildMatches !== false;
        if (opts.ignore || !this.includeChildMatches) {
          this.#ignore = makeIgnore2(opts.ignore ?? [], opts);
          if (!this.includeChildMatches && typeof this.#ignore.add !== "function") {
            const m3 = "cannot ignore child matches, ignore lacks add() method.";
            throw new Error(m3);
          }
        }
        this.maxDepth = opts.maxDepth || Infinity;
        if (opts.signal) {
          this.signal = opts.signal;
          this.signal.addEventListener("abort", () => {
            this.#onResume.length = 0;
          });
        }
      }
      #ignored(path38) {
        return this.seen.has(path38) || !!this.#ignore?.ignored?.(path38);
      }
      #childrenIgnored(path38) {
        return !!this.#ignore?.childrenIgnored?.(path38);
      }
      // backpressure mechanism
      pause() {
        this.paused = true;
      }
      resume() {
        if (this.signal?.aborted)
          return;
        this.paused = false;
        let fn = void 0;
        while (!this.paused && (fn = this.#onResume.shift())) {
          fn();
        }
      }
      onResume(fn) {
        if (this.signal?.aborted)
          return;
        if (!this.paused) {
          fn();
        } else {
          this.#onResume.push(fn);
        }
      }
      // do the requisite realpath/stat checking, and return the path
      // to add or undefined to filter it out.
      async matchCheck(e3, ifDir) {
        if (ifDir && this.opts.nodir)
          return void 0;
        let rpc;
        if (this.opts.realpath) {
          rpc = e3.realpathCached() || await e3.realpath();
          if (!rpc)
            return void 0;
          e3 = rpc;
        }
        const needStat = e3.isUnknown() || this.opts.stat;
        const s3 = needStat ? await e3.lstat() : e3;
        if (this.opts.follow && this.opts.nodir && s3?.isSymbolicLink()) {
          const target = await s3.realpath();
          if (target && (target.isUnknown() || this.opts.stat)) {
            await target.lstat();
          }
        }
        return this.matchCheckTest(s3, ifDir);
      }
      matchCheckTest(e3, ifDir) {
        return e3 && (this.maxDepth === Infinity || e3.depth() <= this.maxDepth) && (!ifDir || e3.canReaddir()) && (!this.opts.nodir || !e3.isDirectory()) && (!this.opts.nodir || !this.opts.follow || !e3.isSymbolicLink() || !e3.realpathCached()?.isDirectory()) && !this.#ignored(e3) ? e3 : void 0;
      }
      matchCheckSync(e3, ifDir) {
        if (ifDir && this.opts.nodir)
          return void 0;
        let rpc;
        if (this.opts.realpath) {
          rpc = e3.realpathCached() || e3.realpathSync();
          if (!rpc)
            return void 0;
          e3 = rpc;
        }
        const needStat = e3.isUnknown() || this.opts.stat;
        const s3 = needStat ? e3.lstatSync() : e3;
        if (this.opts.follow && this.opts.nodir && s3?.isSymbolicLink()) {
          const target = s3.realpathSync();
          if (target && (target?.isUnknown() || this.opts.stat)) {
            target.lstatSync();
          }
        }
        return this.matchCheckTest(s3, ifDir);
      }
      matchFinish(e3, absolute) {
        if (this.#ignored(e3))
          return;
        if (!this.includeChildMatches && this.#ignore?.add) {
          const ign = `${e3.relativePosix()}/**`;
          this.#ignore.add(ign);
        }
        const abs = this.opts.absolute === void 0 ? absolute : this.opts.absolute;
        this.seen.add(e3);
        const mark = this.opts.mark && e3.isDirectory() ? this.#sep : "";
        if (this.opts.withFileTypes) {
          this.matchEmit(e3);
        } else if (abs) {
          const abs2 = this.opts.posix ? e3.fullpathPosix() : e3.fullpath();
          this.matchEmit(abs2 + mark);
        } else {
          const rel = this.opts.posix ? e3.relativePosix() : e3.relative();
          const pre = this.opts.dotRelative && !rel.startsWith(".." + this.#sep) ? "." + this.#sep : "";
          this.matchEmit(!rel ? "." + mark : pre + rel + mark);
        }
      }
      async match(e3, absolute, ifDir) {
        const p3 = await this.matchCheck(e3, ifDir);
        if (p3)
          this.matchFinish(p3, absolute);
      }
      matchSync(e3, absolute, ifDir) {
        const p3 = this.matchCheckSync(e3, ifDir);
        if (p3)
          this.matchFinish(p3, absolute);
      }
      walkCB(target, patterns, cb) {
        if (this.signal?.aborted)
          cb();
        this.walkCB2(target, patterns, new processor_js_1.Processor(this.opts), cb);
      }
      walkCB2(target, patterns, processor, cb) {
        if (this.#childrenIgnored(target))
          return cb();
        if (this.signal?.aborted)
          cb();
        if (this.paused) {
          this.onResume(() => this.walkCB2(target, patterns, processor, cb));
          return;
        }
        processor.processPatterns(target, patterns);
        let tasks = 1;
        const next = /* @__PURE__ */ __name(() => {
          if (--tasks === 0)
            cb();
        }, "next");
        for (const [m3, absolute, ifDir] of processor.matches.entries()) {
          if (this.#ignored(m3))
            continue;
          tasks++;
          this.match(m3, absolute, ifDir).then(() => next());
        }
        for (const t3 of processor.subwalkTargets()) {
          if (this.maxDepth !== Infinity && t3.depth() >= this.maxDepth) {
            continue;
          }
          tasks++;
          const childrenCached = t3.readdirCached();
          if (t3.calledReaddir())
            this.walkCB3(t3, childrenCached, processor, next);
          else {
            t3.readdirCB((_3, entries) => this.walkCB3(t3, entries, processor, next), true);
          }
        }
        next();
      }
      walkCB3(target, entries, processor, cb) {
        processor = processor.filterEntries(target, entries);
        let tasks = 1;
        const next = /* @__PURE__ */ __name(() => {
          if (--tasks === 0)
            cb();
        }, "next");
        for (const [m3, absolute, ifDir] of processor.matches.entries()) {
          if (this.#ignored(m3))
            continue;
          tasks++;
          this.match(m3, absolute, ifDir).then(() => next());
        }
        for (const [target2, patterns] of processor.subwalks.entries()) {
          tasks++;
          this.walkCB2(target2, patterns, processor.child(), next);
        }
        next();
      }
      walkCBSync(target, patterns, cb) {
        if (this.signal?.aborted)
          cb();
        this.walkCB2Sync(target, patterns, new processor_js_1.Processor(this.opts), cb);
      }
      walkCB2Sync(target, patterns, processor, cb) {
        if (this.#childrenIgnored(target))
          return cb();
        if (this.signal?.aborted)
          cb();
        if (this.paused) {
          this.onResume(() => this.walkCB2Sync(target, patterns, processor, cb));
          return;
        }
        processor.processPatterns(target, patterns);
        let tasks = 1;
        const next = /* @__PURE__ */ __name(() => {
          if (--tasks === 0)
            cb();
        }, "next");
        for (const [m3, absolute, ifDir] of processor.matches.entries()) {
          if (this.#ignored(m3))
            continue;
          this.matchSync(m3, absolute, ifDir);
        }
        for (const t3 of processor.subwalkTargets()) {
          if (this.maxDepth !== Infinity && t3.depth() >= this.maxDepth) {
            continue;
          }
          tasks++;
          const children = t3.readdirSync();
          this.walkCB3Sync(t3, children, processor, next);
        }
        next();
      }
      walkCB3Sync(target, entries, processor, cb) {
        processor = processor.filterEntries(target, entries);
        let tasks = 1;
        const next = /* @__PURE__ */ __name(() => {
          if (--tasks === 0)
            cb();
        }, "next");
        for (const [m3, absolute, ifDir] of processor.matches.entries()) {
          if (this.#ignored(m3))
            continue;
          this.matchSync(m3, absolute, ifDir);
        }
        for (const [target2, patterns] of processor.subwalks.entries()) {
          tasks++;
          this.walkCB2Sync(target2, patterns, processor.child(), next);
        }
        next();
      }
    };
    exports2.GlobUtil = GlobUtil2;
    var GlobWalker2 = class extends GlobUtil2 {
      static {
        __name(this, "GlobWalker");
      }
      matches = /* @__PURE__ */ new Set();
      constructor(patterns, path38, opts) {
        super(patterns, path38, opts);
      }
      matchEmit(e3) {
        this.matches.add(e3);
      }
      async walk() {
        if (this.signal?.aborted)
          throw this.signal.reason;
        if (this.path.isUnknown()) {
          await this.path.lstat();
        }
        await new Promise((res, rej) => {
          this.walkCB(this.path, this.patterns, () => {
            if (this.signal?.aborted) {
              rej(this.signal.reason);
            } else {
              res(this.matches);
            }
          });
        });
        return this.matches;
      }
      walkSync() {
        if (this.signal?.aborted)
          throw this.signal.reason;
        if (this.path.isUnknown()) {
          this.path.lstatSync();
        }
        this.walkCBSync(this.path, this.patterns, () => {
          if (this.signal?.aborted)
            throw this.signal.reason;
        });
        return this.matches;
      }
    };
    exports2.GlobWalker = GlobWalker2;
    var GlobStream2 = class extends GlobUtil2 {
      static {
        __name(this, "GlobStream");
      }
      results;
      constructor(patterns, path38, opts) {
        super(patterns, path38, opts);
        this.results = new minipass_1.Minipass({
          signal: this.signal,
          objectMode: true
        });
        this.results.on("drain", () => this.resume());
        this.results.on("resume", () => this.resume());
      }
      matchEmit(e3) {
        this.results.write(e3);
        if (!this.results.flowing)
          this.pause();
      }
      stream() {
        const target = this.path;
        if (target.isUnknown()) {
          target.lstat().then(() => {
            this.walkCB(target, this.patterns, () => this.results.end());
          });
        } else {
          this.walkCB(target, this.patterns, () => this.results.end());
        }
        return this.results;
      }
      streamSync() {
        if (this.path.isUnknown()) {
          this.path.lstatSync();
        }
        this.walkCBSync(this.path, this.patterns, () => this.results.end());
        return this.results;
      }
    };
    exports2.GlobStream = GlobStream2;
  }
});

// ../../node_modules/archiver-utils/node_modules/glob/dist/commonjs/glob.js
var require_glob = __commonJS({
  "../../node_modules/archiver-utils/node_modules/glob/dist/commonjs/glob.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.Glob = void 0;
    var minimatch_1 = require_commonjs();
    var node_url_1 = require("node:url");
    var path_scurry_1 = require_commonjs4();
    var pattern_js_1 = require_pattern();
    var walker_js_1 = require_walker();
    var defaultPlatform6 = typeof process === "object" && process && typeof process.platform === "string" ? process.platform : "linux";
    var Glob2 = class {
      static {
        __name(this, "Glob");
      }
      absolute;
      cwd;
      root;
      dot;
      dotRelative;
      follow;
      ignore;
      magicalBraces;
      mark;
      matchBase;
      maxDepth;
      nobrace;
      nocase;
      nodir;
      noext;
      noglobstar;
      pattern;
      platform;
      realpath;
      scurry;
      stat;
      signal;
      windowsPathsNoEscape;
      withFileTypes;
      includeChildMatches;
      /**
       * The options provided to the constructor.
       */
      opts;
      /**
       * An array of parsed immutable {@link Pattern} objects.
       */
      patterns;
      /**
       * All options are stored as properties on the `Glob` object.
       *
       * See {@link GlobOptions} for full options descriptions.
       *
       * Note that a previous `Glob` object can be passed as the
       * `GlobOptions` to another `Glob` instantiation to re-use settings
       * and caches with a new pattern.
       *
       * Traversal functions can be called multiple times to run the walk
       * again.
       */
      constructor(pattern, opts) {
        if (!opts)
          throw new TypeError("glob options required");
        this.withFileTypes = !!opts.withFileTypes;
        this.signal = opts.signal;
        this.follow = !!opts.follow;
        this.dot = !!opts.dot;
        this.dotRelative = !!opts.dotRelative;
        this.nodir = !!opts.nodir;
        this.mark = !!opts.mark;
        if (!opts.cwd) {
          this.cwd = "";
        } else if (opts.cwd instanceof URL || opts.cwd.startsWith("file://")) {
          opts.cwd = (0, node_url_1.fileURLToPath)(opts.cwd);
        }
        this.cwd = opts.cwd || "";
        this.root = opts.root;
        this.magicalBraces = !!opts.magicalBraces;
        this.nobrace = !!opts.nobrace;
        this.noext = !!opts.noext;
        this.realpath = !!opts.realpath;
        this.absolute = opts.absolute;
        this.includeChildMatches = opts.includeChildMatches !== false;
        this.noglobstar = !!opts.noglobstar;
        this.matchBase = !!opts.matchBase;
        this.maxDepth = typeof opts.maxDepth === "number" ? opts.maxDepth : Infinity;
        this.stat = !!opts.stat;
        this.ignore = opts.ignore;
        if (this.withFileTypes && this.absolute !== void 0) {
          throw new Error("cannot set absolute and withFileTypes:true");
        }
        if (typeof pattern === "string") {
          pattern = [pattern];
        }
        this.windowsPathsNoEscape = !!opts.windowsPathsNoEscape || opts.allowWindowsEscape === false;
        if (this.windowsPathsNoEscape) {
          pattern = pattern.map((p3) => p3.replace(/\\/g, "/"));
        }
        if (this.matchBase) {
          if (opts.noglobstar) {
            throw new TypeError("base matching requires globstar");
          }
          pattern = pattern.map((p3) => p3.includes("/") ? p3 : `./**/${p3}`);
        }
        this.pattern = pattern;
        this.platform = opts.platform || defaultPlatform6;
        this.opts = { ...opts, platform: this.platform };
        if (opts.scurry) {
          this.scurry = opts.scurry;
          if (opts.nocase !== void 0 && opts.nocase !== opts.scurry.nocase) {
            throw new Error("nocase option contradicts provided scurry option");
          }
        } else {
          const Scurry = opts.platform === "win32" ? path_scurry_1.PathScurryWin32 : opts.platform === "darwin" ? path_scurry_1.PathScurryDarwin : opts.platform ? path_scurry_1.PathScurryPosix : path_scurry_1.PathScurry;
          this.scurry = new Scurry(this.cwd, {
            nocase: opts.nocase,
            fs: opts.fs
          });
        }
        this.nocase = this.scurry.nocase;
        const nocaseMagicOnly = this.platform === "darwin" || this.platform === "win32";
        const mmo = {
          // default nocase based on platform
          ...opts,
          dot: this.dot,
          matchBase: this.matchBase,
          nobrace: this.nobrace,
          nocase: this.nocase,
          nocaseMagicOnly,
          nocomment: true,
          noext: this.noext,
          nonegate: true,
          optimizationLevel: 2,
          platform: this.platform,
          windowsPathsNoEscape: this.windowsPathsNoEscape,
          debug: !!this.opts.debug
        };
        const mms = this.pattern.map((p3) => new minimatch_1.Minimatch(p3, mmo));
        const [matchSet, globParts] = mms.reduce((set, m3) => {
          set[0].push(...m3.set);
          set[1].push(...m3.globParts);
          return set;
        }, [[], []]);
        this.patterns = matchSet.map((set, i3) => {
          const g3 = globParts[i3];
          if (!g3)
            throw new Error("invalid pattern object");
          return new pattern_js_1.Pattern(set, g3, 0, this.platform);
        });
      }
      async walk() {
        return [
          ...await new walker_js_1.GlobWalker(this.patterns, this.scurry.cwd, {
            ...this.opts,
            maxDepth: this.maxDepth !== Infinity ? this.maxDepth + this.scurry.cwd.depth() : Infinity,
            platform: this.platform,
            nocase: this.nocase,
            includeChildMatches: this.includeChildMatches
          }).walk()
        ];
      }
      walkSync() {
        return [
          ...new walker_js_1.GlobWalker(this.patterns, this.scurry.cwd, {
            ...this.opts,
            maxDepth: this.maxDepth !== Infinity ? this.maxDepth + this.scurry.cwd.depth() : Infinity,
            platform: this.platform,
            nocase: this.nocase,
            includeChildMatches: this.includeChildMatches
          }).walkSync()
        ];
      }
      stream() {
        return new walker_js_1.GlobStream(this.patterns, this.scurry.cwd, {
          ...this.opts,
          maxDepth: this.maxDepth !== Infinity ? this.maxDepth + this.scurry.cwd.depth() : Infinity,
          platform: this.platform,
          nocase: this.nocase,
          includeChildMatches: this.includeChildMatches
        }).stream();
      }
      streamSync() {
        return new walker_js_1.GlobStream(this.patterns, this.scurry.cwd, {
          ...this.opts,
          maxDepth: this.maxDepth !== Infinity ? this.maxDepth + this.scurry.cwd.depth() : Infinity,
          platform: this.platform,
          nocase: this.nocase,
          includeChildMatches: this.includeChildMatches
        }).streamSync();
      }
      /**
       * Default sync iteration function. Returns a Generator that
       * iterates over the results.
       */
      iterateSync() {
        return this.streamSync()[Symbol.iterator]();
      }
      [Symbol.iterator]() {
        return this.iterateSync();
      }
      /**
       * Default async iteration function. Returns an AsyncGenerator that
       * iterates over the results.
       */
      iterate() {
        return this.stream()[Symbol.asyncIterator]();
      }
      [Symbol.asyncIterator]() {
        return this.iterate();
      }
    };
    exports2.Glob = Glob2;
  }
});

// ../../node_modules/archiver-utils/node_modules/glob/dist/commonjs/has-magic.js
var require_has_magic = __commonJS({
  "../../node_modules/archiver-utils/node_modules/glob/dist/commonjs/has-magic.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.hasMagic = void 0;
    var minimatch_1 = require_commonjs();
    var hasMagic2 = /* @__PURE__ */ __name((pattern, options = {}) => {
      if (!Array.isArray(pattern)) {
        pattern = [pattern];
      }
      for (const p3 of pattern) {
        if (new minimatch_1.Minimatch(p3, options).hasMagic())
          return true;
      }
      return false;
    }, "hasMagic");
    exports2.hasMagic = hasMagic2;
  }
});

// ../../node_modules/archiver-utils/node_modules/glob/dist/commonjs/index.js
var require_commonjs5 = __commonJS({
  "../../node_modules/archiver-utils/node_modules/glob/dist/commonjs/index.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.glob = exports2.sync = exports2.iterate = exports2.iterateSync = exports2.stream = exports2.streamSync = exports2.Ignore = exports2.hasMagic = exports2.Glob = exports2.unescape = exports2.escape = void 0;
    exports2.globStreamSync = globStreamSync2;
    exports2.globStream = globStream2;
    exports2.globSync = globSync2;
    exports2.globIterateSync = globIterateSync2;
    exports2.globIterate = globIterate2;
    var minimatch_1 = require_commonjs();
    var glob_js_1 = require_glob();
    var has_magic_js_1 = require_has_magic();
    var minimatch_2 = require_commonjs();
    Object.defineProperty(exports2, "escape", { enumerable: true, get: /* @__PURE__ */ __name(function() {
      return minimatch_2.escape;
    }, "get") });
    Object.defineProperty(exports2, "unescape", { enumerable: true, get: /* @__PURE__ */ __name(function() {
      return minimatch_2.unescape;
    }, "get") });
    var glob_js_2 = require_glob();
    Object.defineProperty(exports2, "Glob", { enumerable: true, get: /* @__PURE__ */ __name(function() {
      return glob_js_2.Glob;
    }, "get") });
    var has_magic_js_2 = require_has_magic();
    Object.defineProperty(exports2, "hasMagic", { enumerable: true, get: /* @__PURE__ */ __name(function() {
      return has_magic_js_2.hasMagic;
    }, "get") });
    var ignore_js_1 = require_ignore();
    Object.defineProperty(exports2, "Ignore", { enumerable: true, get: /* @__PURE__ */ __name(function() {
      return ignore_js_1.Ignore;
    }, "get") });
    function globStreamSync2(pattern, options = {}) {
      return new glob_js_1.Glob(pattern, options).streamSync();
    }
    __name(globStreamSync2, "globStreamSync");
    function globStream2(pattern, options = {}) {
      return new glob_js_1.Glob(pattern, options).stream();
    }
    __name(globStream2, "globStream");
    function globSync2(pattern, options = {}) {
      return new glob_js_1.Glob(pattern, options).walkSync();
    }
    __name(globSync2, "globSync");
    async function glob_2(pattern, options = {}) {
      return new glob_js_1.Glob(pattern, options).walk();
    }
    __name(glob_2, "glob_");
    function globIterateSync2(pattern, options = {}) {
      return new glob_js_1.Glob(pattern, options).iterateSync();
    }
    __name(globIterateSync2, "globIterateSync");
    function globIterate2(pattern, options = {}) {
      return new glob_js_1.Glob(pattern, options).iterate();
    }
    __name(globIterate2, "globIterate");
    exports2.streamSync = globStreamSync2;
    exports2.stream = Object.assign(globStream2, { sync: globStreamSync2 });
    exports2.iterateSync = globIterateSync2;
    exports2.iterate = Object.assign(globIterate2, {
      sync: globIterateSync2
    });
    exports2.sync = Object.assign(globSync2, {
      stream: globStreamSync2,
      iterate: globIterateSync2
    });
    exports2.glob = Object.assign(glob_2, {
      glob: glob_2,
      globSync: globSync2,
      sync: exports2.sync,
      globStream: globStream2,
      stream: exports2.stream,
      globStreamSync: globStreamSync2,
      streamSync: exports2.streamSync,
      globIterate: globIterate2,
      iterate: exports2.iterate,
      globIterateSync: globIterateSync2,
      iterateSync: exports2.iterateSync,
      Glob: glob_js_1.Glob,
      hasMagic: has_magic_js_1.hasMagic,
      escape: minimatch_1.escape,
      unescape: minimatch_1.unescape
    });
    exports2.glob.glob = exports2.glob;
  }
});

// ../../node_modules/archiver-utils/file.js
var require_file2 = __commonJS({
  "../../node_modules/archiver-utils/file.js"(exports2, module2) {
    var fs43 = require_graceful_fs();
    var path38 = require("path");
    var flatten3 = require_flatten();
    var difference2 = require_difference();
    var union = require_union();
    var isPlainObject = require_isPlainObject();
    var glob2 = require_commonjs5();
    var file = module2.exports = {};
    var pathSeparatorRe = /[\/\\]/g;
    var processPatterns = /* @__PURE__ */ __name(function(patterns, fn) {
      var result2 = [];
      flatten3(patterns).forEach(function(pattern) {
        var exclusion = pattern.indexOf("!") === 0;
        if (exclusion) {
          pattern = pattern.slice(1);
        }
        var matches = fn(pattern);
        if (exclusion) {
          result2 = difference2(result2, matches);
        } else {
          result2 = union(result2, matches);
        }
      });
      return result2;
    }, "processPatterns");
    file.exists = function() {
      var filepath = path38.join.apply(path38, arguments);
      return fs43.existsSync(filepath);
    };
    file.expand = function(...args) {
      var options = isPlainObject(args[0]) ? args.shift() : {};
      var patterns = Array.isArray(args[0]) ? args[0] : args;
      if (patterns.length === 0) {
        return [];
      }
      var matches = processPatterns(patterns, function(pattern) {
        return glob2.sync(pattern, options);
      });
      if (options.filter) {
        matches = matches.filter(function(filepath) {
          filepath = path38.join(options.cwd || "", filepath);
          try {
            if (typeof options.filter === "function") {
              return options.filter(filepath);
            } else {
              return fs43.statSync(filepath)[options.filter]();
            }
          } catch (e3) {
            return false;
          }
        });
      }
      return matches;
    };
    file.expandMapping = function(patterns, destBase, options) {
      options = Object.assign({
        rename: /* @__PURE__ */ __name(function(destBase2, destPath) {
          return path38.join(destBase2 || "", destPath);
        }, "rename")
      }, options);
      var files = [];
      var fileByDest = {};
      file.expand(options, patterns).forEach(function(src) {
        var destPath = src;
        if (options.flatten) {
          destPath = path38.basename(destPath);
        }
        if (options.ext) {
          destPath = destPath.replace(/(\.[^\/]*)?$/, options.ext);
        }
        var dest = options.rename(destBase, destPath, options);
        if (options.cwd) {
          src = path38.join(options.cwd, src);
        }
        dest = dest.replace(pathSeparatorRe, "/");
        src = src.replace(pathSeparatorRe, "/");
        if (fileByDest[dest]) {
          fileByDest[dest].src.push(src);
        } else {
          files.push({
            src: [src],
            dest
          });
          fileByDest[dest] = files[files.length - 1];
        }
      });
      return files;
    };
    file.normalizeFilesArray = function(data3) {
      var files = [];
      data3.forEach(function(obj) {
        var prop;
        if ("src" in obj || "dest" in obj) {
          files.push(obj);
        }
      });
      if (files.length === 0) {
        return [];
      }
      files = _(files).chain().forEach(function(obj) {
        if (!("src" in obj) || !obj.src) {
          return;
        }
        if (Array.isArray(obj.src)) {
          obj.src = flatten3(obj.src);
        } else {
          obj.src = [obj.src];
        }
      }).map(function(obj) {
        var expandOptions = Object.assign({}, obj);
        delete expandOptions.src;
        delete expandOptions.dest;
        if (obj.expand) {
          return file.expandMapping(obj.src, obj.dest, expandOptions).map(function(mapObj) {
            var result3 = Object.assign({}, obj);
            result3.orig = Object.assign({}, obj);
            result3.src = mapObj.src;
            result3.dest = mapObj.dest;
            ["expand", "cwd", "flatten", "rename", "ext"].forEach(function(prop) {
              delete result3[prop];
            });
            return result3;
          });
        }
        var result2 = Object.assign({}, obj);
        result2.orig = Object.assign({}, obj);
        if ("src" in result2) {
          Object.defineProperty(result2, "src", {
            enumerable: true,
            get: /* @__PURE__ */ __name(function fn() {
              var src;
              if (!("result" in fn)) {
                src = obj.src;
                src = Array.isArray(src) ? flatten3(src) : [src];
                fn.result = file.expand(expandOptions, src);
              }
              return fn.result;
            }, "fn")
          });
        }
        if ("dest" in result2) {
          result2.dest = obj.dest;
        }
        return result2;
      }).flatten().value();
      return files;
    };
  }
});

// ../../node_modules/archiver-utils/index.js
var require_archiver_utils = __commonJS({
  "../../node_modules/archiver-utils/index.js"(exports2, module2) {
    var fs43 = require_graceful_fs();
    var path38 = require("path");
    var isStream2 = require_is_stream();
    var lazystream = require_lazystream();
    var normalizePath = require_normalize_path();
    var defaults4 = require_defaults();
    var Stream2 = require("stream").Stream;
    var PassThrough = require_ours().PassThrough;
    var utils = module2.exports = {};
    utils.file = require_file2();
    utils.collectStream = function(source, callback) {
      var collection = [];
      var size = 0;
      source.on("error", callback);
      source.on("data", function(chunk) {
        collection.push(chunk);
        size += chunk.length;
      });
      source.on("end", function() {
        var buf = Buffer.alloc(size);
        var offset = 0;
        collection.forEach(function(data3) {
          data3.copy(buf, offset);
          offset += data3.length;
        });
        callback(null, buf);
      });
    };
    utils.dateify = function(dateish) {
      dateish = dateish || /* @__PURE__ */ new Date();
      if (dateish instanceof Date) {
        dateish = dateish;
      } else if (typeof dateish === "string") {
        dateish = new Date(dateish);
      } else {
        dateish = /* @__PURE__ */ new Date();
      }
      return dateish;
    };
    utils.defaults = function(object, source, guard) {
      var args = arguments;
      args[0] = args[0] || {};
      return defaults4(...args);
    };
    utils.isStream = function(source) {
      return isStream2(source);
    };
    utils.lazyReadStream = function(filepath) {
      return new lazystream.Readable(function() {
        return fs43.createReadStream(filepath);
      });
    };
    utils.normalizeInputSource = function(source) {
      if (source === null) {
        return Buffer.alloc(0);
      } else if (typeof source === "string") {
        return Buffer.from(source);
      } else if (utils.isStream(source)) {
        return source.pipe(new PassThrough());
      }
      return source;
    };
    utils.sanitizePath = function(filepath) {
      return normalizePath(filepath, false).replace(/^\w+:/, "").replace(/^(\.\.\/|\/)+/, "");
    };
    utils.trailingSlashIt = function(str) {
      return str.slice(-1) !== "/" ? str + "/" : str;
    };
    utils.unixifyPath = function(filepath) {
      return normalizePath(filepath, false).replace(/^\w+:/, "");
    };
    utils.walkdir = function(dirpath, base, callback) {
      var results = [];
      if (typeof base === "function") {
        callback = base;
        base = dirpath;
      }
      fs43.readdir(dirpath, function(err, list2) {
        var i3 = 0;
        var file;
        var filepath;
        if (err) {
          return callback(err);
        }
        (/* @__PURE__ */ __name((function next() {
          file = list2[i3++];
          if (!file) {
            return callback(null, results);
          }
          filepath = path38.join(dirpath, file);
          fs43.stat(filepath, function(err2, stats) {
            results.push({
              path: filepath,
              relative: path38.relative(base, filepath).replace(/\\/g, "/"),
              stats
            });
            if (stats && stats.isDirectory()) {
              utils.walkdir(filepath, base, function(err3, res) {
                if (err3) {
                  return callback(err3);
                }
                res.forEach(function(dirEntry) {
                  results.push(dirEntry);
                });
                next();
              });
            } else {
              next();
            }
          });
        }), "next"))();
      });
    };
  }
});

// ../../node_modules/archiver/lib/error.js
var require_error2 = __commonJS({
  "../../node_modules/archiver/lib/error.js"(exports2, module2) {
    var util11 = require("util");
    var ERROR_CODES = {
      "ABORTED": "archive was aborted",
      "DIRECTORYDIRPATHREQUIRED": "diretory dirpath argument must be a non-empty string value",
      "DIRECTORYFUNCTIONINVALIDDATA": "invalid data returned by directory custom data function",
      "ENTRYNAMEREQUIRED": "entry name must be a non-empty string value",
      "FILEFILEPATHREQUIRED": "file filepath argument must be a non-empty string value",
      "FINALIZING": "archive already finalizing",
      "QUEUECLOSED": "queue closed",
      "NOENDMETHOD": "no suitable finalize/end method defined by module",
      "DIRECTORYNOTSUPPORTED": "support for directory entries not defined by module",
      "FORMATSET": "archive format already set",
      "INPUTSTEAMBUFFERREQUIRED": "input source must be valid Stream or Buffer instance",
      "MODULESET": "module already set",
      "SYMLINKNOTSUPPORTED": "support for symlink entries not defined by module",
      "SYMLINKFILEPATHREQUIRED": "symlink filepath argument must be a non-empty string value",
      "SYMLINKTARGETREQUIRED": "symlink target argument must be a non-empty string value",
      "ENTRYNOTSUPPORTED": "entry not supported"
    };
    function ArchiverError(code, data3) {
      Error.captureStackTrace(this, this.constructor);
      this.message = ERROR_CODES[code] || code;
      this.code = code;
      this.data = data3;
    }
    __name(ArchiverError, "ArchiverError");
    util11.inherits(ArchiverError, Error);
    exports2 = module2.exports = ArchiverError;
  }
});

// ../../node_modules/archiver/node_modules/readable-stream/lib/ours/primordials.js
var require_primordials2 = __commonJS({
  "../../node_modules/archiver/node_modules/readable-stream/lib/ours/primordials.js"(exports2, module2) {
    "use strict";
    var AggregateError = class extends Error {
      static {
        __name(this, "AggregateError");
      }
      constructor(errors) {
        if (!Array.isArray(errors)) {
          throw new TypeError(`Expected input to be an Array, got ${typeof errors}`);
        }
        let message2 = "";
        for (let i3 = 0; i3 < errors.length; i3++) {
          message2 += `    ${errors[i3].stack}
`;
        }
        super(message2);
        this.name = "AggregateError";
        this.errors = errors;
      }
    };
    module2.exports = {
      AggregateError,
      ArrayIsArray(self2) {
        return Array.isArray(self2);
      },
      ArrayPrototypeIncludes(self2, el) {
        return self2.includes(el);
      },
      ArrayPrototypeIndexOf(self2, el) {
        return self2.indexOf(el);
      },
      ArrayPrototypeJoin(self2, sep5) {
        return self2.join(sep5);
      },
      ArrayPrototypeMap(self2, fn) {
        return self2.map(fn);
      },
      ArrayPrototypePop(self2, el) {
        return self2.pop(el);
      },
      ArrayPrototypePush(self2, el) {
        return self2.push(el);
      },
      ArrayPrototypeSlice(self2, start, end) {
        return self2.slice(start, end);
      },
      Error,
      FunctionPrototypeCall(fn, thisArgs, ...args) {
        return fn.call(thisArgs, ...args);
      },
      FunctionPrototypeSymbolHasInstance(self2, instance) {
        return Function.prototype[Symbol.hasInstance].call(self2, instance);
      },
      MathFloor: Math.floor,
      Number,
      NumberIsInteger: Number.isInteger,
      NumberIsNaN: Number.isNaN,
      NumberMAX_SAFE_INTEGER: Number.MAX_SAFE_INTEGER,
      NumberMIN_SAFE_INTEGER: Number.MIN_SAFE_INTEGER,
      NumberParseInt: Number.parseInt,
      ObjectDefineProperties(self2, props) {
        return Object.defineProperties(self2, props);
      },
      ObjectDefineProperty(self2, name, prop) {
        return Object.defineProperty(self2, name, prop);
      },
      ObjectGetOwnPropertyDescriptor(self2, name) {
        return Object.getOwnPropertyDescriptor(self2, name);
      },
      ObjectKeys(obj) {
        return Object.keys(obj);
      },
      ObjectSetPrototypeOf(target, proto) {
        return Object.setPrototypeOf(target, proto);
      },
      Promise,
      PromisePrototypeCatch(self2, fn) {
        return self2.catch(fn);
      },
      PromisePrototypeThen(self2, thenFn, catchFn) {
        return self2.then(thenFn, catchFn);
      },
      PromiseReject(err) {
        return Promise.reject(err);
      },
      PromiseResolve(val) {
        return Promise.resolve(val);
      },
      ReflectApply: Reflect.apply,
      RegExpPrototypeTest(self2, value) {
        return self2.test(value);
      },
      SafeSet: Set,
      String,
      StringPrototypeSlice(self2, start, end) {
        return self2.slice(start, end);
      },
      StringPrototypeToLowerCase(self2) {
        return self2.toLowerCase();
      },
      StringPrototypeToUpperCase(self2) {
        return self2.toUpperCase();
      },
      StringPrototypeTrim(self2) {
        return self2.trim();
      },
      Symbol,
      SymbolFor: Symbol.for,
      SymbolAsyncIterator: Symbol.asyncIterator,
      SymbolHasInstance: Symbol.hasInstance,
      SymbolIterator: Symbol.iterator,
      SymbolDispose: Symbol.dispose || Symbol("Symbol.dispose"),
      SymbolAsyncDispose: Symbol.asyncDispose || Symbol("Symbol.asyncDispose"),
      TypedArrayPrototypeSet(self2, buf, len) {
        return self2.set(buf, len);
      },
      Boolean,
      Uint8Array
    };
  }
});

// ../../node_modules/archiver/node_modules/readable-stream/lib/ours/util/inspect.js
var require_inspect2 = __commonJS({
  "../../node_modules/archiver/node_modules/readable-stream/lib/ours/util/inspect.js"(exports2, module2) {
    "use strict";
    module2.exports = {
      format(format26, ...args) {
        return format26.replace(/%([sdifj])/g, function(...[_unused, type]) {
          const replacement = args.shift();
          if (type === "f") {
            return replacement.toFixed(6);
          } else if (type === "j") {
            return JSON.stringify(replacement);
          } else if (type === "s" && typeof replacement === "object") {
            const ctor = replacement.constructor !== Object ? replacement.constructor.name : "";
            return `${ctor} {}`.trim();
          } else {
            return replacement.toString();
          }
        });
      },
      inspect(value) {
        switch (typeof value) {
          case "string":
            if (value.includes("'")) {
              if (!value.includes('"')) {
                return `"${value}"`;
              } else if (!value.includes("`") && !value.includes("${")) {
                return `\`${value}\``;
              }
            }
            return `'${value}'`;
          case "number":
            if (isNaN(value)) {
              return "NaN";
            } else if (Object.is(value, -0)) {
              return String(value);
            }
            return value;
          case "bigint":
            return `${String(value)}n`;
          case "boolean":
          case "undefined":
            return String(value);
          case "object":
            return "{}";
        }
      }
    };
  }
});

// ../../node_modules/archiver/node_modules/readable-stream/lib/ours/errors.js
var require_errors2 = __commonJS({
  "../../node_modules/archiver/node_modules/readable-stream/lib/ours/errors.js"(exports2, module2) {
    "use strict";
    var { format: format26, inspect: inspect4 } = require_inspect2();
    var { AggregateError: CustomAggregateError } = require_primordials2();
    var AggregateError = globalThis.AggregateError || CustomAggregateError;
    var kIsNodeError = Symbol("kIsNodeError");
    var kTypes = [
      "string",
      "function",
      "number",
      "object",
      // Accept 'Function' and 'Object' as alternative to the lower cased version.
      "Function",
      "Object",
      "boolean",
      "bigint",
      "symbol"
    ];
    var classRegExp = /^([A-Z][a-z0-9]*)+$/;
    var nodeInternalPrefix = "__node_internal_";
    var codes = {};
    function assert(value, message2) {
      if (!value) {
        throw new codes.ERR_INTERNAL_ASSERTION(message2);
      }
    }
    __name(assert, "assert");
    function addNumericalSeparator(val) {
      let res = "";
      let i3 = val.length;
      const start = val[0] === "-" ? 1 : 0;
      for (; i3 >= start + 4; i3 -= 3) {
        res = `_${val.slice(i3 - 3, i3)}${res}`;
      }
      return `${val.slice(0, i3)}${res}`;
    }
    __name(addNumericalSeparator, "addNumericalSeparator");
    function getMessage(key, msg, args) {
      if (typeof msg === "function") {
        assert(
          msg.length <= args.length,
          // Default options do not count.
          `Code: ${key}; The provided arguments length (${args.length}) does not match the required ones (${msg.length}).`
        );
        return msg(...args);
      }
      const expectedLength = (msg.match(/%[dfijoOs]/g) || []).length;
      assert(
        expectedLength === args.length,
        `Code: ${key}; The provided arguments length (${args.length}) does not match the required ones (${expectedLength}).`
      );
      if (args.length === 0) {
        return msg;
      }
      return format26(msg, ...args);
    }
    __name(getMessage, "getMessage");
    function E2(code, message2, Base) {
      if (!Base) {
        Base = Error;
      }
      class NodeError extends Base {
        static {
          __name(this, "NodeError");
        }
        constructor(...args) {
          super(getMessage(code, message2, args));
        }
        toString() {
          return `${this.name} [${code}]: ${this.message}`;
        }
      }
      Object.defineProperties(NodeError.prototype, {
        name: {
          value: Base.name,
          writable: true,
          enumerable: false,
          configurable: true
        },
        toString: {
          value() {
            return `${this.name} [${code}]: ${this.message}`;
          },
          writable: true,
          enumerable: false,
          configurable: true
        }
      });
      NodeError.prototype.code = code;
      NodeError.prototype[kIsNodeError] = true;
      codes[code] = NodeError;
    }
    __name(E2, "E");
    function hideStackFrames(fn) {
      const hidden = nodeInternalPrefix + fn.name;
      Object.defineProperty(fn, "name", {
        value: hidden
      });
      return fn;
    }
    __name(hideStackFrames, "hideStackFrames");
    function aggregateTwoErrors(innerError, outerError) {
      if (innerError && outerError && innerError !== outerError) {
        if (Array.isArray(outerError.errors)) {
          outerError.errors.push(innerError);
          return outerError;
        }
        const err = new AggregateError([outerError, innerError], outerError.message);
        err.code = outerError.code;
        return err;
      }
      return innerError || outerError;
    }
    __name(aggregateTwoErrors, "aggregateTwoErrors");
    var AbortError = class extends Error {
      static {
        __name(this, "AbortError");
      }
      constructor(message2 = "The operation was aborted", options = void 0) {
        if (options !== void 0 && typeof options !== "object") {
          throw new codes.ERR_INVALID_ARG_TYPE("options", "Object", options);
        }
        super(message2, options);
        this.code = "ABORT_ERR";
        this.name = "AbortError";
      }
    };
    E2("ERR_ASSERTION", "%s", Error);
    E2(
      "ERR_INVALID_ARG_TYPE",
      (name, expected, actual) => {
        assert(typeof name === "string", "'name' must be a string");
        if (!Array.isArray(expected)) {
          expected = [expected];
        }
        let msg = "The ";
        if (name.endsWith(" argument")) {
          msg += `${name} `;
        } else {
          msg += `"${name}" ${name.includes(".") ? "property" : "argument"} `;
        }
        msg += "must be ";
        const types5 = [];
        const instances = [];
        const other = [];
        for (const value of expected) {
          assert(typeof value === "string", "All expected entries have to be of type string");
          if (kTypes.includes(value)) {
            types5.push(value.toLowerCase());
          } else if (classRegExp.test(value)) {
            instances.push(value);
          } else {
            assert(value !== "object", 'The value "object" should be written as "Object"');
            other.push(value);
          }
        }
        if (instances.length > 0) {
          const pos = types5.indexOf("object");
          if (pos !== -1) {
            types5.splice(types5, pos, 1);
            instances.push("Object");
          }
        }
        if (types5.length > 0) {
          switch (types5.length) {
            case 1:
              msg += `of type ${types5[0]}`;
              break;
            case 2:
              msg += `one of type ${types5[0]} or ${types5[1]}`;
              break;
            default: {
              const last = types5.pop();
              msg += `one of type ${types5.join(", ")}, or ${last}`;
            }
          }
          if (instances.length > 0 || other.length > 0) {
            msg += " or ";
          }
        }
        if (instances.length > 0) {
          switch (instances.length) {
            case 1:
              msg += `an instance of ${instances[0]}`;
              break;
            case 2:
              msg += `an instance of ${instances[0]} or ${instances[1]}`;
              break;
            default: {
              const last = instances.pop();
              msg += `an instance of ${instances.join(", ")}, or ${last}`;
            }
          }
          if (other.length > 0) {
            msg += " or ";
          }
        }
        switch (other.length) {
          case 0:
            break;
          case 1:
            if (other[0].toLowerCase() !== other[0]) {
              msg += "an ";
            }
            msg += `${other[0]}`;
            break;
          case 2:
            msg += `one of ${other[0]} or ${other[1]}`;
            break;
          default: {
            const last = other.pop();
            msg += `one of ${other.join(", ")}, or ${last}`;
          }
        }
        if (actual == null) {
          msg += `. Received ${actual}`;
        } else if (typeof actual === "function" && actual.name) {
          msg += `. Received function ${actual.name}`;
        } else if (typeof actual === "object") {
          var _actual$constructor;
          if ((_actual$constructor = actual.constructor) !== null && _actual$constructor !== void 0 && _actual$constructor.name) {
            msg += `. Received an instance of ${actual.constructor.name}`;
          } else {
            const inspected = inspect4(actual, {
              depth: -1
            });
            msg += `. Received ${inspected}`;
          }
        } else {
          let inspected = inspect4(actual, {
            colors: false
          });
          if (inspected.length > 25) {
            inspected = `${inspected.slice(0, 25)}...`;
          }
          msg += `. Received type ${typeof actual} (${inspected})`;
        }
        return msg;
      },
      TypeError
    );
    E2(
      "ERR_INVALID_ARG_VALUE",
      (name, value, reason = "is invalid") => {
        let inspected = inspect4(value);
        if (inspected.length > 128) {
          inspected = inspected.slice(0, 128) + "...";
        }
        const type = name.includes(".") ? "property" : "argument";
        return `The ${type} '${name}' ${reason}. Received ${inspected}`;
      },
      TypeError
    );
    E2(
      "ERR_INVALID_RETURN_VALUE",
      (input, name, value) => {
        var _value$constructor;
        const type = value !== null && value !== void 0 && (_value$constructor = value.constructor) !== null && _value$constructor !== void 0 && _value$constructor.name ? `instance of ${value.constructor.name}` : `type ${typeof value}`;
        return `Expected ${input} to be returned from the "${name}" function but got ${type}.`;
      },
      TypeError
    );
    E2(
      "ERR_MISSING_ARGS",
      (...args) => {
        assert(args.length > 0, "At least one arg needs to be specified");
        let msg;
        const len = args.length;
        args = (Array.isArray(args) ? args : [args]).map((a3) => `"${a3}"`).join(" or ");
        switch (len) {
          case 1:
            msg += `The ${args[0]} argument`;
            break;
          case 2:
            msg += `The ${args[0]} and ${args[1]} arguments`;
            break;
          default:
            {
              const last = args.pop();
              msg += `The ${args.join(", ")}, and ${last} arguments`;
            }
            break;
        }
        return `${msg} must be specified`;
      },
      TypeError
    );
    E2(
      "ERR_OUT_OF_RANGE",
      (str, range2, input) => {
        assert(range2, 'Missing "range" argument');
        let received;
        if (Number.isInteger(input) && Math.abs(input) > 2 ** 32) {
          received = addNumericalSeparator(String(input));
        } else if (typeof input === "bigint") {
          received = String(input);
          const limit = BigInt(2) ** BigInt(32);
          if (input > limit || input < -limit) {
            received = addNumericalSeparator(received);
          }
          received += "n";
        } else {
          received = inspect4(input);
        }
        return `The value of "${str}" is out of range. It must be ${range2}. Received ${received}`;
      },
      RangeError
    );
    E2("ERR_MULTIPLE_CALLBACK", "Callback called multiple times", Error);
    E2("ERR_METHOD_NOT_IMPLEMENTED", "The %s method is not implemented", Error);
    E2("ERR_STREAM_ALREADY_FINISHED", "Cannot call %s after a stream was finished", Error);
    E2("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable", Error);
    E2("ERR_STREAM_DESTROYED", "Cannot call %s after a stream was destroyed", Error);
    E2("ERR_STREAM_NULL_VALUES", "May not write null values to stream", TypeError);
    E2("ERR_STREAM_PREMATURE_CLOSE", "Premature close", Error);
    E2("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF", Error);
    E2("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event", Error);
    E2("ERR_STREAM_WRITE_AFTER_END", "write after end", Error);
    E2("ERR_UNKNOWN_ENCODING", "Unknown encoding: %s", TypeError);
    module2.exports = {
      AbortError,
      aggregateTwoErrors: hideStackFrames(aggregateTwoErrors),
      hideStackFrames,
      codes
    };
  }
});

// ../../node_modules/archiver/node_modules/readable-stream/lib/ours/util.js
var require_util3 = __commonJS({
  "../../node_modules/archiver/node_modules/readable-stream/lib/ours/util.js"(exports2, module2) {
    "use strict";
    var bufferModule = require("buffer");
    var { format: format26, inspect: inspect4 } = require_inspect2();
    var {
      codes: { ERR_INVALID_ARG_TYPE }
    } = require_errors2();
    var { kResistStopPropagation, AggregateError, SymbolDispose } = require_primordials2();
    var AbortSignal2 = globalThis.AbortSignal || require_abort_controller().AbortSignal;
    var AbortController2 = globalThis.AbortController || require_abort_controller().AbortController;
    var AsyncFunction = Object.getPrototypeOf(async function() {
    }).constructor;
    var Blob2 = globalThis.Blob || bufferModule.Blob;
    var isBlob2 = typeof Blob2 !== "undefined" ? /* @__PURE__ */ __name(function isBlob3(b3) {
      return b3 instanceof Blob2;
    }, "isBlob") : /* @__PURE__ */ __name(function isBlob3(b3) {
      return false;
    }, "isBlob");
    var validateAbortSignal = /* @__PURE__ */ __name((signal, name) => {
      if (signal !== void 0 && (signal === null || typeof signal !== "object" || !("aborted" in signal))) {
        throw new ERR_INVALID_ARG_TYPE(name, "AbortSignal", signal);
      }
    }, "validateAbortSignal");
    var validateFunction = /* @__PURE__ */ __name((value, name) => {
      if (typeof value !== "function") {
        throw new ERR_INVALID_ARG_TYPE(name, "Function", value);
      }
    }, "validateFunction");
    module2.exports = {
      AggregateError,
      kEmptyObject: Object.freeze({}),
      once(callback) {
        let called = false;
        return function(...args) {
          if (called) {
            return;
          }
          called = true;
          callback.apply(this, args);
        };
      },
      createDeferredPromise: /* @__PURE__ */ __name(function() {
        let resolve13;
        let reject;
        const promise = new Promise((res, rej) => {
          resolve13 = res;
          reject = rej;
        });
        return {
          promise,
          resolve: resolve13,
          reject
        };
      }, "createDeferredPromise"),
      promisify(fn) {
        return new Promise((resolve13, reject) => {
          fn((err, ...args) => {
            if (err) {
              return reject(err);
            }
            return resolve13(...args);
          });
        });
      },
      debuglog() {
        return function() {
        };
      },
      format: format26,
      inspect: inspect4,
      types: {
        isAsyncFunction(fn) {
          return fn instanceof AsyncFunction;
        },
        isArrayBufferView(arr) {
          return ArrayBuffer.isView(arr);
        }
      },
      isBlob: isBlob2,
      deprecate(fn, message2) {
        return fn;
      },
      addAbortListener: require("events").addAbortListener || /* @__PURE__ */ __name(function addAbortListener(signal, listener) {
        if (signal === void 0) {
          throw new ERR_INVALID_ARG_TYPE("signal", "AbortSignal", signal);
        }
        validateAbortSignal(signal, "signal");
        validateFunction(listener, "listener");
        let removeEventListener;
        if (signal.aborted) {
          queueMicrotask(() => listener());
        } else {
          signal.addEventListener("abort", listener, {
            __proto__: null,
            once: true,
            [kResistStopPropagation]: true
          });
          removeEventListener = /* @__PURE__ */ __name(() => {
            signal.removeEventListener("abort", listener);
          }, "removeEventListener");
        }
        return {
          __proto__: null,
          [SymbolDispose]() {
            var _removeEventListener;
            (_removeEventListener = removeEventListener) === null || _removeEventListener === void 0 ? void 0 : _removeEventListener();
          }
        };
      }, "addAbortListener"),
      AbortSignalAny: AbortSignal2.any || /* @__PURE__ */ __name(function AbortSignalAny(signals) {
        if (signals.length === 1) {
          return signals[0];
        }
        const ac = new AbortController2();
        const abort = /* @__PURE__ */ __name(() => ac.abort(), "abort");
        signals.forEach((signal) => {
          validateAbortSignal(signal, "signals");
          signal.addEventListener("abort", abort, {
            once: true
          });
        });
        ac.signal.addEventListener(
          "abort",
          () => {
            signals.forEach((signal) => signal.removeEventListener("abort", abort));
          },
          {
            once: true
          }
        );
        return ac.signal;
      }, "AbortSignalAny")
    };
    module2.exports.promisify.custom = Symbol.for("nodejs.util.promisify.custom");
  }
});

// ../../node_modules/archiver/node_modules/readable-stream/lib/internal/validators.js
var require_validators2 = __commonJS({
  "../../node_modules/archiver/node_modules/readable-stream/lib/internal/validators.js"(exports2, module2) {
    "use strict";
    var {
      ArrayIsArray,
      ArrayPrototypeIncludes,
      ArrayPrototypeJoin,
      ArrayPrototypeMap,
      NumberIsInteger,
      NumberIsNaN,
      NumberMAX_SAFE_INTEGER,
      NumberMIN_SAFE_INTEGER,
      NumberParseInt,
      ObjectPrototypeHasOwnProperty,
      RegExpPrototypeExec,
      String: String2,
      StringPrototypeToUpperCase,
      StringPrototypeTrim
    } = require_primordials2();
    var {
      hideStackFrames,
      codes: { ERR_SOCKET_BAD_PORT, ERR_INVALID_ARG_TYPE, ERR_INVALID_ARG_VALUE, ERR_OUT_OF_RANGE, ERR_UNKNOWN_SIGNAL }
    } = require_errors2();
    var { normalizeEncoding } = require_util3();
    var { isAsyncFunction, isArrayBufferView: isArrayBufferView2 } = require_util3().types;
    var signals = {};
    function isInt32(value) {
      return value === (value | 0);
    }
    __name(isInt32, "isInt32");
    function isUint32(value) {
      return value === value >>> 0;
    }
    __name(isUint32, "isUint32");
    var octalReg = /^[0-7]+$/;
    var modeDesc = "must be a 32-bit unsigned integer or an octal string";
    function parseFileMode(value, name, def) {
      if (typeof value === "undefined") {
        value = def;
      }
      if (typeof value === "string") {
        if (RegExpPrototypeExec(octalReg, value) === null) {
          throw new ERR_INVALID_ARG_VALUE(name, value, modeDesc);
        }
        value = NumberParseInt(value, 8);
      }
      validateUint32(value, name);
      return value;
    }
    __name(parseFileMode, "parseFileMode");
    var validateInteger = hideStackFrames((value, name, min = NumberMIN_SAFE_INTEGER, max = NumberMAX_SAFE_INTEGER) => {
      if (typeof value !== "number") throw new ERR_INVALID_ARG_TYPE(name, "number", value);
      if (!NumberIsInteger(value)) throw new ERR_OUT_OF_RANGE(name, "an integer", value);
      if (value < min || value > max) throw new ERR_OUT_OF_RANGE(name, `>= ${min} && <= ${max}`, value);
    });
    var validateInt32 = hideStackFrames((value, name, min = -2147483648, max = 2147483647) => {
      if (typeof value !== "number") {
        throw new ERR_INVALID_ARG_TYPE(name, "number", value);
      }
      if (!NumberIsInteger(value)) {
        throw new ERR_OUT_OF_RANGE(name, "an integer", value);
      }
      if (value < min || value > max) {
        throw new ERR_OUT_OF_RANGE(name, `>= ${min} && <= ${max}`, value);
      }
    });
    var validateUint32 = hideStackFrames((value, name, positive = false) => {
      if (typeof value !== "number") {
        throw new ERR_INVALID_ARG_TYPE(name, "number", value);
      }
      if (!NumberIsInteger(value)) {
        throw new ERR_OUT_OF_RANGE(name, "an integer", value);
      }
      const min = positive ? 1 : 0;
      const max = 4294967295;
      if (value < min || value > max) {
        throw new ERR_OUT_OF_RANGE(name, `>= ${min} && <= ${max}`, value);
      }
    });
    function validateString(value, name) {
      if (typeof value !== "string") throw new ERR_INVALID_ARG_TYPE(name, "string", value);
    }
    __name(validateString, "validateString");
    function validateNumber(value, name, min = void 0, max) {
      if (typeof value !== "number") throw new ERR_INVALID_ARG_TYPE(name, "number", value);
      if (min != null && value < min || max != null && value > max || (min != null || max != null) && NumberIsNaN(value)) {
        throw new ERR_OUT_OF_RANGE(
          name,
          `${min != null ? `>= ${min}` : ""}${min != null && max != null ? " && " : ""}${max != null ? `<= ${max}` : ""}`,
          value
        );
      }
    }
    __name(validateNumber, "validateNumber");
    var validateOneOf = hideStackFrames((value, name, oneOf) => {
      if (!ArrayPrototypeIncludes(oneOf, value)) {
        const allowed = ArrayPrototypeJoin(
          ArrayPrototypeMap(oneOf, (v6) => typeof v6 === "string" ? `'${v6}'` : String2(v6)),
          ", "
        );
        const reason = "must be one of: " + allowed;
        throw new ERR_INVALID_ARG_VALUE(name, value, reason);
      }
    });
    function validateBoolean(value, name) {
      if (typeof value !== "boolean") throw new ERR_INVALID_ARG_TYPE(name, "boolean", value);
    }
    __name(validateBoolean, "validateBoolean");
    function getOwnPropertyValueOrDefault(options, key, defaultValue) {
      return options == null || !ObjectPrototypeHasOwnProperty(options, key) ? defaultValue : options[key];
    }
    __name(getOwnPropertyValueOrDefault, "getOwnPropertyValueOrDefault");
    var validateObject = hideStackFrames((value, name, options = null) => {
      const allowArray = getOwnPropertyValueOrDefault(options, "allowArray", false);
      const allowFunction = getOwnPropertyValueOrDefault(options, "allowFunction", false);
      const nullable = getOwnPropertyValueOrDefault(options, "nullable", false);
      if (!nullable && value === null || !allowArray && ArrayIsArray(value) || typeof value !== "object" && (!allowFunction || typeof value !== "function")) {
        throw new ERR_INVALID_ARG_TYPE(name, "Object", value);
      }
    });
    var validateDictionary = hideStackFrames((value, name) => {
      if (value != null && typeof value !== "object" && typeof value !== "function") {
        throw new ERR_INVALID_ARG_TYPE(name, "a dictionary", value);
      }
    });
    var validateArray = hideStackFrames((value, name, minLength = 0) => {
      if (!ArrayIsArray(value)) {
        throw new ERR_INVALID_ARG_TYPE(name, "Array", value);
      }
      if (value.length < minLength) {
        const reason = `must be longer than ${minLength}`;
        throw new ERR_INVALID_ARG_VALUE(name, value, reason);
      }
    });
    function validateStringArray(value, name) {
      validateArray(value, name);
      for (let i3 = 0; i3 < value.length; i3++) {
        validateString(value[i3], `${name}[${i3}]`);
      }
    }
    __name(validateStringArray, "validateStringArray");
    function validateBooleanArray(value, name) {
      validateArray(value, name);
      for (let i3 = 0; i3 < value.length; i3++) {
        validateBoolean(value[i3], `${name}[${i3}]`);
      }
    }
    __name(validateBooleanArray, "validateBooleanArray");
    function validateAbortSignalArray(value, name) {
      validateArray(value, name);
      for (let i3 = 0; i3 < value.length; i3++) {
        const signal = value[i3];
        const indexedName = `${name}[${i3}]`;
        if (signal == null) {
          throw new ERR_INVALID_ARG_TYPE(indexedName, "AbortSignal", signal);
        }
        validateAbortSignal(signal, indexedName);
      }
    }
    __name(validateAbortSignalArray, "validateAbortSignalArray");
    function validateSignalName(signal, name = "signal") {
      validateString(signal, name);
      if (signals[signal] === void 0) {
        if (signals[StringPrototypeToUpperCase(signal)] !== void 0) {
          throw new ERR_UNKNOWN_SIGNAL(signal + " (signals must use all capital letters)");
        }
        throw new ERR_UNKNOWN_SIGNAL(signal);
      }
    }
    __name(validateSignalName, "validateSignalName");
    var validateBuffer = hideStackFrames((buffer, name = "buffer") => {
      if (!isArrayBufferView2(buffer)) {
        throw new ERR_INVALID_ARG_TYPE(name, ["Buffer", "TypedArray", "DataView"], buffer);
      }
    });
    function validateEncoding(data3, encoding) {
      const normalizedEncoding = normalizeEncoding(encoding);
      const length = data3.length;
      if (normalizedEncoding === "hex" && length % 2 !== 0) {
        throw new ERR_INVALID_ARG_VALUE("encoding", encoding, `is invalid for data of length ${length}`);
      }
    }
    __name(validateEncoding, "validateEncoding");
    function validatePort(port, name = "Port", allowZero = true) {
      if (typeof port !== "number" && typeof port !== "string" || typeof port === "string" && StringPrototypeTrim(port).length === 0 || +port !== +port >>> 0 || port > 65535 || port === 0 && !allowZero) {
        throw new ERR_SOCKET_BAD_PORT(name, port, allowZero);
      }
      return port | 0;
    }
    __name(validatePort, "validatePort");
    var validateAbortSignal = hideStackFrames((signal, name) => {
      if (signal !== void 0 && (signal === null || typeof signal !== "object" || !("aborted" in signal))) {
        throw new ERR_INVALID_ARG_TYPE(name, "AbortSignal", signal);
      }
    });
    var validateFunction = hideStackFrames((value, name) => {
      if (typeof value !== "function") throw new ERR_INVALID_ARG_TYPE(name, "Function", value);
    });
    var validatePlainFunction = hideStackFrames((value, name) => {
      if (typeof value !== "function" || isAsyncFunction(value)) throw new ERR_INVALID_ARG_TYPE(name, "Function", value);
    });
    var validateUndefined = hideStackFrames((value, name) => {
      if (value !== void 0) throw new ERR_INVALID_ARG_TYPE(name, "undefined", value);
    });
    function validateUnion(value, name, union) {
      if (!ArrayPrototypeIncludes(union, value)) {
        throw new ERR_INVALID_ARG_TYPE(name, `('${ArrayPrototypeJoin(union, "|")}')`, value);
      }
    }
    __name(validateUnion, "validateUnion");
    var linkValueRegExp = /^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;
    function validateLinkHeaderFormat(value, name) {
      if (typeof value === "undefined" || !RegExpPrototypeExec(linkValueRegExp, value)) {
        throw new ERR_INVALID_ARG_VALUE(
          name,
          value,
          'must be an array or string of format "</styles.css>; rel=preload; as=style"'
        );
      }
    }
    __name(validateLinkHeaderFormat, "validateLinkHeaderFormat");
    function validateLinkHeaderValue(hints) {
      if (typeof hints === "string") {
        validateLinkHeaderFormat(hints, "hints");
        return hints;
      } else if (ArrayIsArray(hints)) {
        const hintsLength = hints.length;
        let result2 = "";
        if (hintsLength === 0) {
          return result2;
        }
        for (let i3 = 0; i3 < hintsLength; i3++) {
          const link = hints[i3];
          validateLinkHeaderFormat(link, "hints");
          result2 += link;
          if (i3 !== hintsLength - 1) {
            result2 += ", ";
          }
        }
        return result2;
      }
      throw new ERR_INVALID_ARG_VALUE(
        "hints",
        hints,
        'must be an array or string of format "</styles.css>; rel=preload; as=style"'
      );
    }
    __name(validateLinkHeaderValue, "validateLinkHeaderValue");
    module2.exports = {
      isInt32,
      isUint32,
      parseFileMode,
      validateArray,
      validateStringArray,
      validateBooleanArray,
      validateAbortSignalArray,
      validateBoolean,
      validateBuffer,
      validateDictionary,
      validateEncoding,
      validateFunction,
      validateInt32,
      validateInteger,
      validateNumber,
      validateObject,
      validateOneOf,
      validatePlainFunction,
      validatePort,
      validateSignalName,
      validateString,
      validateUint32,
      validateUndefined,
      validateUnion,
      validateAbortSignal,
      validateLinkHeaderValue
    };
  }
});

// ../../node_modules/archiver/node_modules/readable-stream/lib/internal/streams/utils.js
var require_utils3 = __commonJS({
  "../../node_modules/archiver/node_modules/readable-stream/lib/internal/streams/utils.js"(exports2, module2) {
    "use strict";
    var { SymbolAsyncIterator, SymbolIterator, SymbolFor } = require_primordials2();
    var kIsDestroyed = SymbolFor("nodejs.stream.destroyed");
    var kIsErrored = SymbolFor("nodejs.stream.errored");
    var kIsReadable = SymbolFor("nodejs.stream.readable");
    var kIsWritable = SymbolFor("nodejs.stream.writable");
    var kIsDisturbed = SymbolFor("nodejs.stream.disturbed");
    var kIsClosedPromise = SymbolFor("nodejs.webstream.isClosedPromise");
    var kControllerErrorFunction = SymbolFor("nodejs.webstream.controllerErrorFunction");
    function isReadableNodeStream(obj, strict = false) {
      var _obj$_readableState;
      return !!(obj && typeof obj.pipe === "function" && typeof obj.on === "function" && (!strict || typeof obj.pause === "function" && typeof obj.resume === "function") && (!obj._writableState || ((_obj$_readableState = obj._readableState) === null || _obj$_readableState === void 0 ? void 0 : _obj$_readableState.readable) !== false) && // Duplex
      (!obj._writableState || obj._readableState));
    }
    __name(isReadableNodeStream, "isReadableNodeStream");
    function isWritableNodeStream(obj) {
      var _obj$_writableState;
      return !!(obj && typeof obj.write === "function" && typeof obj.on === "function" && (!obj._readableState || ((_obj$_writableState = obj._writableState) === null || _obj$_writableState === void 0 ? void 0 : _obj$_writableState.writable) !== false));
    }
    __name(isWritableNodeStream, "isWritableNodeStream");
    function isDuplexNodeStream(obj) {
      return !!(obj && typeof obj.pipe === "function" && obj._readableState && typeof obj.on === "function" && typeof obj.write === "function");
    }
    __name(isDuplexNodeStream, "isDuplexNodeStream");
    function isNodeStream(obj) {
      return obj && (obj._readableState || obj._writableState || typeof obj.write === "function" && typeof obj.on === "function" || typeof obj.pipe === "function" && typeof obj.on === "function");
    }
    __name(isNodeStream, "isNodeStream");
    function isReadableStream2(obj) {
      return !!(obj && !isNodeStream(obj) && typeof obj.pipeThrough === "function" && typeof obj.getReader === "function" && typeof obj.cancel === "function");
    }
    __name(isReadableStream2, "isReadableStream");
    function isWritableStream(obj) {
      return !!(obj && !isNodeStream(obj) && typeof obj.getWriter === "function" && typeof obj.abort === "function");
    }
    __name(isWritableStream, "isWritableStream");
    function isTransformStream(obj) {
      return !!(obj && !isNodeStream(obj) && typeof obj.readable === "object" && typeof obj.writable === "object");
    }
    __name(isTransformStream, "isTransformStream");
    function isWebStream(obj) {
      return isReadableStream2(obj) || isWritableStream(obj) || isTransformStream(obj);
    }
    __name(isWebStream, "isWebStream");
    function isIterable(obj, isAsync) {
      if (obj == null) return false;
      if (isAsync === true) return typeof obj[SymbolAsyncIterator] === "function";
      if (isAsync === false) return typeof obj[SymbolIterator] === "function";
      return typeof obj[SymbolAsyncIterator] === "function" || typeof obj[SymbolIterator] === "function";
    }
    __name(isIterable, "isIterable");
    function isDestroyed(stream3) {
      if (!isNodeStream(stream3)) return null;
      const wState = stream3._writableState;
      const rState = stream3._readableState;
      const state2 = wState || rState;
      return !!(stream3.destroyed || stream3[kIsDestroyed] || state2 !== null && state2 !== void 0 && state2.destroyed);
    }
    __name(isDestroyed, "isDestroyed");
    function isWritableEnded(stream3) {
      if (!isWritableNodeStream(stream3)) return null;
      if (stream3.writableEnded === true) return true;
      const wState = stream3._writableState;
      if (wState !== null && wState !== void 0 && wState.errored) return false;
      if (typeof (wState === null || wState === void 0 ? void 0 : wState.ended) !== "boolean") return null;
      return wState.ended;
    }
    __name(isWritableEnded, "isWritableEnded");
    function isWritableFinished(stream3, strict) {
      if (!isWritableNodeStream(stream3)) return null;
      if (stream3.writableFinished === true) return true;
      const wState = stream3._writableState;
      if (wState !== null && wState !== void 0 && wState.errored) return false;
      if (typeof (wState === null || wState === void 0 ? void 0 : wState.finished) !== "boolean") return null;
      return !!(wState.finished || strict === false && wState.ended === true && wState.length === 0);
    }
    __name(isWritableFinished, "isWritableFinished");
    function isReadableEnded(stream3) {
      if (!isReadableNodeStream(stream3)) return null;
      if (stream3.readableEnded === true) return true;
      const rState = stream3._readableState;
      if (!rState || rState.errored) return false;
      if (typeof (rState === null || rState === void 0 ? void 0 : rState.ended) !== "boolean") return null;
      return rState.ended;
    }
    __name(isReadableEnded, "isReadableEnded");
    function isReadableFinished(stream3, strict) {
      if (!isReadableNodeStream(stream3)) return null;
      const rState = stream3._readableState;
      if (rState !== null && rState !== void 0 && rState.errored) return false;
      if (typeof (rState === null || rState === void 0 ? void 0 : rState.endEmitted) !== "boolean") return null;
      return !!(rState.endEmitted || strict === false && rState.ended === true && rState.length === 0);
    }
    __name(isReadableFinished, "isReadableFinished");
    function isReadable2(stream3) {
      if (stream3 && stream3[kIsReadable] != null) return stream3[kIsReadable];
      if (typeof (stream3 === null || stream3 === void 0 ? void 0 : stream3.readable) !== "boolean") return null;
      if (isDestroyed(stream3)) return false;
      return isReadableNodeStream(stream3) && stream3.readable && !isReadableFinished(stream3);
    }
    __name(isReadable2, "isReadable");
    function isWritable2(stream3) {
      if (stream3 && stream3[kIsWritable] != null) return stream3[kIsWritable];
      if (typeof (stream3 === null || stream3 === void 0 ? void 0 : stream3.writable) !== "boolean") return null;
      if (isDestroyed(stream3)) return false;
      return isWritableNodeStream(stream3) && stream3.writable && !isWritableEnded(stream3);
    }
    __name(isWritable2, "isWritable");
    function isFinished(stream3, opts) {
      if (!isNodeStream(stream3)) {
        return null;
      }
      if (isDestroyed(stream3)) {
        return true;
      }
      if ((opts === null || opts === void 0 ? void 0 : opts.readable) !== false && isReadable2(stream3)) {
        return false;
      }
      if ((opts === null || opts === void 0 ? void 0 : opts.writable) !== false && isWritable2(stream3)) {
        return false;
      }
      return true;
    }
    __name(isFinished, "isFinished");
    function isWritableErrored(stream3) {
      var _stream$_writableStat, _stream$_writableStat2;
      if (!isNodeStream(stream3)) {
        return null;
      }
      if (stream3.writableErrored) {
        return stream3.writableErrored;
      }
      return (_stream$_writableStat = (_stream$_writableStat2 = stream3._writableState) === null || _stream$_writableStat2 === void 0 ? void 0 : _stream$_writableStat2.errored) !== null && _stream$_writableStat !== void 0 ? _stream$_writableStat : null;
    }
    __name(isWritableErrored, "isWritableErrored");
    function isReadableErrored(stream3) {
      var _stream$_readableStat, _stream$_readableStat2;
      if (!isNodeStream(stream3)) {
        return null;
      }
      if (stream3.readableErrored) {
        return stream3.readableErrored;
      }
      return (_stream$_readableStat = (_stream$_readableStat2 = stream3._readableState) === null || _stream$_readableStat2 === void 0 ? void 0 : _stream$_readableStat2.errored) !== null && _stream$_readableStat !== void 0 ? _stream$_readableStat : null;
    }
    __name(isReadableErrored, "isReadableErrored");
    function isClosed(stream3) {
      if (!isNodeStream(stream3)) {
        return null;
      }
      if (typeof stream3.closed === "boolean") {
        return stream3.closed;
      }
      const wState = stream3._writableState;
      const rState = stream3._readableState;
      if (typeof (wState === null || wState === void 0 ? void 0 : wState.closed) === "boolean" || typeof (rState === null || rState === void 0 ? void 0 : rState.closed) === "boolean") {
        return (wState === null || wState === void 0 ? void 0 : wState.closed) || (rState === null || rState === void 0 ? void 0 : rState.closed);
      }
      if (typeof stream3._closed === "boolean" && isOutgoingMessage(stream3)) {
        return stream3._closed;
      }
      return null;
    }
    __name(isClosed, "isClosed");
    function isOutgoingMessage(stream3) {
      return typeof stream3._closed === "boolean" && typeof stream3._defaultKeepAlive === "boolean" && typeof stream3._removedConnection === "boolean" && typeof stream3._removedContLen === "boolean";
    }
    __name(isOutgoingMessage, "isOutgoingMessage");
    function isServerResponse(stream3) {
      return typeof stream3._sent100 === "boolean" && isOutgoingMessage(stream3);
    }
    __name(isServerResponse, "isServerResponse");
    function isServerRequest(stream3) {
      var _stream$req;
      return typeof stream3._consuming === "boolean" && typeof stream3._dumped === "boolean" && ((_stream$req = stream3.req) === null || _stream$req === void 0 ? void 0 : _stream$req.upgradeOrConnect) === void 0;
    }
    __name(isServerRequest, "isServerRequest");
    function willEmitClose(stream3) {
      if (!isNodeStream(stream3)) return null;
      const wState = stream3._writableState;
      const rState = stream3._readableState;
      const state2 = wState || rState;
      return !state2 && isServerResponse(stream3) || !!(state2 && state2.autoDestroy && state2.emitClose && state2.closed === false);
    }
    __name(willEmitClose, "willEmitClose");
    function isDisturbed(stream3) {
      var _stream$kIsDisturbed;
      return !!(stream3 && ((_stream$kIsDisturbed = stream3[kIsDisturbed]) !== null && _stream$kIsDisturbed !== void 0 ? _stream$kIsDisturbed : stream3.readableDidRead || stream3.readableAborted));
    }
    __name(isDisturbed, "isDisturbed");
    function isErrored(stream3) {
      var _ref, _ref2, _ref3, _ref4, _ref5, _stream$kIsErrored, _stream$_readableStat3, _stream$_writableStat3, _stream$_readableStat4, _stream$_writableStat4;
      return !!(stream3 && ((_ref = (_ref2 = (_ref3 = (_ref4 = (_ref5 = (_stream$kIsErrored = stream3[kIsErrored]) !== null && _stream$kIsErrored !== void 0 ? _stream$kIsErrored : stream3.readableErrored) !== null && _ref5 !== void 0 ? _ref5 : stream3.writableErrored) !== null && _ref4 !== void 0 ? _ref4 : (_stream$_readableStat3 = stream3._readableState) === null || _stream$_readableStat3 === void 0 ? void 0 : _stream$_readableStat3.errorEmitted) !== null && _ref3 !== void 0 ? _ref3 : (_stream$_writableStat3 = stream3._writableState) === null || _stream$_writableStat3 === void 0 ? void 0 : _stream$_writableStat3.errorEmitted) !== null && _ref2 !== void 0 ? _ref2 : (_stream$_readableStat4 = stream3._readableState) === null || _stream$_readableStat4 === void 0 ? void 0 : _stream$_readableStat4.errored) !== null && _ref !== void 0 ? _ref : (_stream$_writableStat4 = stream3._writableState) === null || _stream$_writableStat4 === void 0 ? void 0 : _stream$_writableStat4.errored));
    }
    __name(isErrored, "isErrored");
    module2.exports = {
      isDestroyed,
      kIsDestroyed,
      isDisturbed,
      kIsDisturbed,
      isErrored,
      kIsErrored,
      isReadable: isReadable2,
      kIsReadable,
      kIsClosedPromise,
      kControllerErrorFunction,
      kIsWritable,
      isClosed,
      isDuplexNodeStream,
      isFinished,
      isIterable,
      isReadableNodeStream,
      isReadableStream: isReadableStream2,
      isReadableEnded,
      isReadableFinished,
      isReadableErrored,
      isNodeStream,
      isWebStream,
      isWritable: isWritable2,
      isWritableNodeStream,
      isWritableStream,
      isWritableEnded,
      isWritableFinished,
      isWritableErrored,
      isServerRequest,
      isServerResponse,
      willEmitClose,
      isTransformStream
    };
  }
});

// ../../node_modules/archiver/node_modules/readable-stream/lib/internal/streams/end-of-stream.js
var require_end_of_stream2 = __commonJS({
  "../../node_modules/archiver/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"(exports2, module2) {
    "use strict";
    var process3 = require_process();
    var { AbortError, codes } = require_errors2();
    var { ERR_INVALID_ARG_TYPE, ERR_STREAM_PREMATURE_CLOSE } = codes;
    var { kEmptyObject, once } = require_util3();
    var { validateAbortSignal, validateFunction, validateObject, validateBoolean } = require_validators2();
    var { Promise: Promise2, PromisePrototypeThen, SymbolDispose } = require_primordials2();
    var {
      isClosed,
      isReadable: isReadable2,
      isReadableNodeStream,
      isReadableStream: isReadableStream2,
      isReadableFinished,
      isReadableErrored,
      isWritable: isWritable2,
      isWritableNodeStream,
      isWritableStream,
      isWritableFinished,
      isWritableErrored,
      isNodeStream,
      willEmitClose: _willEmitClose,
      kIsClosedPromise
    } = require_utils3();
    var addAbortListener;
    function isRequest(stream3) {
      return stream3.setHeader && typeof stream3.abort === "function";
    }
    __name(isRequest, "isRequest");
    var nop = /* @__PURE__ */ __name(() => {
    }, "nop");
    function eos(stream3, options, callback) {
      var _options$readable, _options$writable;
      if (arguments.length === 2) {
        callback = options;
        options = kEmptyObject;
      } else if (options == null) {
        options = kEmptyObject;
      } else {
        validateObject(options, "options");
      }
      validateFunction(callback, "callback");
      validateAbortSignal(options.signal, "options.signal");
      callback = once(callback);
      if (isReadableStream2(stream3) || isWritableStream(stream3)) {
        return eosWeb(stream3, options, callback);
      }
      if (!isNodeStream(stream3)) {
        throw new ERR_INVALID_ARG_TYPE("stream", ["ReadableStream", "WritableStream", "Stream"], stream3);
      }
      const readable = (_options$readable = options.readable) !== null && _options$readable !== void 0 ? _options$readable : isReadableNodeStream(stream3);
      const writable = (_options$writable = options.writable) !== null && _options$writable !== void 0 ? _options$writable : isWritableNodeStream(stream3);
      const wState = stream3._writableState;
      const rState = stream3._readableState;
      const onlegacyfinish = /* @__PURE__ */ __name(() => {
        if (!stream3.writable) {
          onfinish();
        }
      }, "onlegacyfinish");
      let willEmitClose = _willEmitClose(stream3) && isReadableNodeStream(stream3) === readable && isWritableNodeStream(stream3) === writable;
      let writableFinished = isWritableFinished(stream3, false);
      const onfinish = /* @__PURE__ */ __name(() => {
        writableFinished = true;
        if (stream3.destroyed) {
          willEmitClose = false;
        }
        if (willEmitClose && (!stream3.readable || readable)) {
          return;
        }
        if (!readable || readableFinished) {
          callback.call(stream3);
        }
      }, "onfinish");
      let readableFinished = isReadableFinished(stream3, false);
      const onend = /* @__PURE__ */ __name(() => {
        readableFinished = true;
        if (stream3.destroyed) {
          willEmitClose = false;
        }
        if (willEmitClose && (!stream3.writable || writable)) {
          return;
        }
        if (!writable || writableFinished) {
          callback.call(stream3);
        }
      }, "onend");
      const onerror = /* @__PURE__ */ __name((err) => {
        callback.call(stream3, err);
      }, "onerror");
      let closed = isClosed(stream3);
      const onclose = /* @__PURE__ */ __name(() => {
        closed = true;
        const errored = isWritableErrored(stream3) || isReadableErrored(stream3);
        if (errored && typeof errored !== "boolean") {
          return callback.call(stream3, errored);
        }
        if (readable && !readableFinished && isReadableNodeStream(stream3, true)) {
          if (!isReadableFinished(stream3, false)) return callback.call(stream3, new ERR_STREAM_PREMATURE_CLOSE());
        }
        if (writable && !writableFinished) {
          if (!isWritableFinished(stream3, false)) return callback.call(stream3, new ERR_STREAM_PREMATURE_CLOSE());
        }
        callback.call(stream3);
      }, "onclose");
      const onclosed = /* @__PURE__ */ __name(() => {
        closed = true;
        const errored = isWritableErrored(stream3) || isReadableErrored(stream3);
        if (errored && typeof errored !== "boolean") {
          return callback.call(stream3, errored);
        }
        callback.call(stream3);
      }, "onclosed");
      const onrequest = /* @__PURE__ */ __name(() => {
        stream3.req.on("finish", onfinish);
      }, "onrequest");
      if (isRequest(stream3)) {
        stream3.on("complete", onfinish);
        if (!willEmitClose) {
          stream3.on("abort", onclose);
        }
        if (stream3.req) {
          onrequest();
        } else {
          stream3.on("request", onrequest);
        }
      } else if (writable && !wState) {
        stream3.on("end", onlegacyfinish);
        stream3.on("close", onlegacyfinish);
      }
      if (!willEmitClose && typeof stream3.aborted === "boolean") {
        stream3.on("aborted", onclose);
      }
      stream3.on("end", onend);
      stream3.on("finish", onfinish);
      if (options.error !== false) {
        stream3.on("error", onerror);
      }
      stream3.on("close", onclose);
      if (closed) {
        process3.nextTick(onclose);
      } else if (wState !== null && wState !== void 0 && wState.errorEmitted || rState !== null && rState !== void 0 && rState.errorEmitted) {
        if (!willEmitClose) {
          process3.nextTick(onclosed);
        }
      } else if (!readable && (!willEmitClose || isReadable2(stream3)) && (writableFinished || isWritable2(stream3) === false)) {
        process3.nextTick(onclosed);
      } else if (!writable && (!willEmitClose || isWritable2(stream3)) && (readableFinished || isReadable2(stream3) === false)) {
        process3.nextTick(onclosed);
      } else if (rState && stream3.req && stream3.aborted) {
        process3.nextTick(onclosed);
      }
      const cleanup = /* @__PURE__ */ __name(() => {
        callback = nop;
        stream3.removeListener("aborted", onclose);
        stream3.removeListener("complete", onfinish);
        stream3.removeListener("abort", onclose);
        stream3.removeListener("request", onrequest);
        if (stream3.req) stream3.req.removeListener("finish", onfinish);
        stream3.removeListener("end", onlegacyfinish);
        stream3.removeListener("close", onlegacyfinish);
        stream3.removeListener("finish", onfinish);
        stream3.removeListener("end", onend);
        stream3.removeListener("error", onerror);
        stream3.removeListener("close", onclose);
      }, "cleanup");
      if (options.signal && !closed) {
        const abort = /* @__PURE__ */ __name(() => {
          const endCallback = callback;
          cleanup();
          endCallback.call(
            stream3,
            new AbortError(void 0, {
              cause: options.signal.reason
            })
          );
        }, "abort");
        if (options.signal.aborted) {
          process3.nextTick(abort);
        } else {
          addAbortListener = addAbortListener || require_util3().addAbortListener;
          const disposable = addAbortListener(options.signal, abort);
          const originalCallback = callback;
          callback = once((...args) => {
            disposable[SymbolDispose]();
            originalCallback.apply(stream3, args);
          });
        }
      }
      return cleanup;
    }
    __name(eos, "eos");
    function eosWeb(stream3, options, callback) {
      let isAborted = false;
      let abort = nop;
      if (options.signal) {
        abort = /* @__PURE__ */ __name(() => {
          isAborted = true;
          callback.call(
            stream3,
            new AbortError(void 0, {
              cause: options.signal.reason
            })
          );
        }, "abort");
        if (options.signal.aborted) {
          process3.nextTick(abort);
        } else {
          addAbortListener = addAbortListener || require_util3().addAbortListener;
          const disposable = addAbortListener(options.signal, abort);
          const originalCallback = callback;
          callback = once((...args) => {
            disposable[SymbolDispose]();
            originalCallback.apply(stream3, args);
          });
        }
      }
      const resolverFn = /* @__PURE__ */ __name((...args) => {
        if (!isAborted) {
          process3.nextTick(() => callback.apply(stream3, args));
        }
      }, "resolverFn");
      PromisePrototypeThen(stream3[kIsClosedPromise].promise, resolverFn, resolverFn);
      return nop;
    }
    __name(eosWeb, "eosWeb");
    function finished(stream3, opts) {
      var _opts;
      let autoCleanup = false;
      if (opts === null) {
        opts = kEmptyObject;
      }
      if ((_opts = opts) !== null && _opts !== void 0 && _opts.cleanup) {
        validateBoolean(opts.cleanup, "cleanup");
        autoCleanup = opts.cleanup;
      }
      return new Promise2((resolve13, reject) => {
        const cleanup = eos(stream3, opts, (err) => {
          if (autoCleanup) {
            cleanup();
          }
          if (err) {
            reject(err);
          } else {
            resolve13();
          }
        });
      });
    }
    __name(finished, "finished");
    module2.exports = eos;
    module2.exports.finished = finished;
  }
});

// ../../node_modules/archiver/node_modules/readable-stream/lib/internal/streams/destroy.js
var require_destroy3 = __commonJS({
  "../../node_modules/archiver/node_modules/readable-stream/lib/internal/streams/destroy.js"(exports2, module2) {
    "use strict";
    var process3 = require_process();
    var {
      aggregateTwoErrors,
      codes: { ERR_MULTIPLE_CALLBACK },
      AbortError
    } = require_errors2();
    var { Symbol: Symbol2 } = require_primordials2();
    var { kIsDestroyed, isDestroyed, isFinished, isServerRequest } = require_utils3();
    var kDestroy = Symbol2("kDestroy");
    var kConstruct = Symbol2("kConstruct");
    function checkError(err, w3, r3) {
      if (err) {
        err.stack;
        if (w3 && !w3.errored) {
          w3.errored = err;
        }
        if (r3 && !r3.errored) {
          r3.errored = err;
        }
      }
    }
    __name(checkError, "checkError");
    function destroy(err, cb) {
      const r3 = this._readableState;
      const w3 = this._writableState;
      const s3 = w3 || r3;
      if (w3 !== null && w3 !== void 0 && w3.destroyed || r3 !== null && r3 !== void 0 && r3.destroyed) {
        if (typeof cb === "function") {
          cb();
        }
        return this;
      }
      checkError(err, w3, r3);
      if (w3) {
        w3.destroyed = true;
      }
      if (r3) {
        r3.destroyed = true;
      }
      if (!s3.constructed) {
        this.once(kDestroy, function(er) {
          _destroy(this, aggregateTwoErrors(er, err), cb);
        });
      } else {
        _destroy(this, err, cb);
      }
      return this;
    }
    __name(destroy, "destroy");
    function _destroy(self2, err, cb) {
      let called = false;
      function onDestroy(err2) {
        if (called) {
          return;
        }
        called = true;
        const r3 = self2._readableState;
        const w3 = self2._writableState;
        checkError(err2, w3, r3);
        if (w3) {
          w3.closed = true;
        }
        if (r3) {
          r3.closed = true;
        }
        if (typeof cb === "function") {
          cb(err2);
        }
        if (err2) {
          process3.nextTick(emitErrorCloseNT, self2, err2);
        } else {
          process3.nextTick(emitCloseNT, self2);
        }
      }
      __name(onDestroy, "onDestroy");
      try {
        self2._destroy(err || null, onDestroy);
      } catch (err2) {
        onDestroy(err2);
      }
    }
    __name(_destroy, "_destroy");
    function emitErrorCloseNT(self2, err) {
      emitErrorNT(self2, err);
      emitCloseNT(self2);
    }
    __name(emitErrorCloseNT, "emitErrorCloseNT");
    function emitCloseNT(self2) {
      const r3 = self2._readableState;
      const w3 = self2._writableState;
      if (w3) {
        w3.closeEmitted = true;
      }
      if (r3) {
        r3.closeEmitted = true;
      }
      if (w3 !== null && w3 !== void 0 && w3.emitClose || r3 !== null && r3 !== void 0 && r3.emitClose) {
        self2.emit("close");
      }
    }
    __name(emitCloseNT, "emitCloseNT");
    function emitErrorNT(self2, err) {
      const r3 = self2._readableState;
      const w3 = self2._writableState;
      if (w3 !== null && w3 !== void 0 && w3.errorEmitted || r3 !== null && r3 !== void 0 && r3.errorEmitted) {
        return;
      }
      if (w3) {
        w3.errorEmitted = true;
      }
      if (r3) {
        r3.errorEmitted = true;
      }
      self2.emit("error", err);
    }
    __name(emitErrorNT, "emitErrorNT");
    function undestroy() {
      const r3 = this._readableState;
      const w3 = this._writableState;
      if (r3) {
        r3.constructed = true;
        r3.closed = false;
        r3.closeEmitted = false;
        r3.destroyed = false;
        r3.errored = null;
        r3.errorEmitted = false;
        r3.reading = false;
        r3.ended = r3.readable === false;
        r3.endEmitted = r3.readable === false;
      }
      if (w3) {
        w3.constructed = true;
        w3.destroyed = false;
        w3.closed = false;
        w3.closeEmitted = false;
        w3.errored = null;
        w3.errorEmitted = false;
        w3.finalCalled = false;
        w3.prefinished = false;
        w3.ended = w3.writable === false;
        w3.ending = w3.writable === false;
        w3.finished = w3.writable === false;
      }
    }
    __name(undestroy, "undestroy");
    function errorOrDestroy(stream3, err, sync2) {
      const r3 = stream3._readableState;
      const w3 = stream3._writableState;
      if (w3 !== null && w3 !== void 0 && w3.destroyed || r3 !== null && r3 !== void 0 && r3.destroyed) {
        return this;
      }
      if (r3 !== null && r3 !== void 0 && r3.autoDestroy || w3 !== null && w3 !== void 0 && w3.autoDestroy)
        stream3.destroy(err);
      else if (err) {
        err.stack;
        if (w3 && !w3.errored) {
          w3.errored = err;
        }
        if (r3 && !r3.errored) {
          r3.errored = err;
        }
        if (sync2) {
          process3.nextTick(emitErrorNT, stream3, err);
        } else {
          emitErrorNT(stream3, err);
        }
      }
    }
    __name(errorOrDestroy, "errorOrDestroy");
    function construct(stream3, cb) {
      if (typeof stream3._construct !== "function") {
        return;
      }
      const r3 = stream3._readableState;
      const w3 = stream3._writableState;
      if (r3) {
        r3.constructed = false;
      }
      if (w3) {
        w3.constructed = false;
      }
      stream3.once(kConstruct, cb);
      if (stream3.listenerCount(kConstruct) > 1) {
        return;
      }
      process3.nextTick(constructNT, stream3);
    }
    __name(construct, "construct");
    function constructNT(stream3) {
      let called = false;
      function onConstruct(err) {
        if (called) {
          errorOrDestroy(stream3, err !== null && err !== void 0 ? err : new ERR_MULTIPLE_CALLBACK());
          return;
        }
        called = true;
        const r3 = stream3._readableState;
        const w3 = stream3._writableState;
        const s3 = w3 || r3;
        if (r3) {
          r3.constructed = true;
        }
        if (w3) {
          w3.constructed = true;
        }
        if (s3.destroyed) {
          stream3.emit(kDestroy, err);
        } else if (err) {
          errorOrDestroy(stream3, err, true);
        } else {
          process3.nextTick(emitConstructNT, stream3);
        }
      }
      __name(onConstruct, "onConstruct");
      try {
        stream3._construct((err) => {
          process3.nextTick(onConstruct, err);
        });
      } catch (err) {
        process3.nextTick(onConstruct, err);
      }
    }
    __name(constructNT, "constructNT");
    function emitConstructNT(stream3) {
      stream3.emit(kConstruct);
    }
    __name(emitConstructNT, "emitConstructNT");
    function isRequest(stream3) {
      return (stream3 === null || stream3 === void 0 ? void 0 : stream3.setHeader) && typeof stream3.abort === "function";
    }
    __name(isRequest, "isRequest");
    function emitCloseLegacy(stream3) {
      stream3.emit("close");
    }
    __name(emitCloseLegacy, "emitCloseLegacy");
    function emitErrorCloseLegacy(stream3, err) {
      stream3.emit("error", err);
      process3.nextTick(emitCloseLegacy, stream3);
    }
    __name(emitErrorCloseLegacy, "emitErrorCloseLegacy");
    function destroyer(stream3, err) {
      if (!stream3 || isDestroyed(stream3)) {
        return;
      }
      if (!err && !isFinished(stream3)) {
        err = new AbortError();
      }
      if (isServerRequest(stream3)) {
        stream3.socket = null;
        stream3.destroy(err);
      } else if (isRequest(stream3)) {
        stream3.abort();
      } else if (isRequest(stream3.req)) {
        stream3.req.abort();
      } else if (typeof stream3.destroy === "function") {
        stream3.destroy(err);
      } else if (typeof stream3.close === "function") {
        stream3.close();
      } else if (err) {
        process3.nextTick(emitErrorCloseLegacy, stream3, err);
      } else {
        process3.nextTick(emitCloseLegacy, stream3);
      }
      if (!stream3.destroyed) {
        stream3[kIsDestroyed] = true;
      }
    }
    __name(destroyer, "destroyer");
    module2.exports = {
      construct,
      destroyer,
      destroy,
      undestroy,
      errorOrDestroy
    };
  }
});

// ../../node_modules/archiver/node_modules/readable-stream/lib/internal/streams/legacy.js
var require_legacy2 = __commonJS({
  "../../node_modules/archiver/node_modules/readable-stream/lib/internal/streams/legacy.js"(exports2, module2) {
    "use strict";
    var { ArrayIsArray, ObjectSetPrototypeOf } = require_primordials2();
    var { EventEmitter: EE } = require("events");
    function Stream2(opts) {
      EE.call(this, opts);
    }
    __name(Stream2, "Stream");
    ObjectSetPrototypeOf(Stream2.prototype, EE.prototype);
    ObjectSetPrototypeOf(Stream2, EE);
    Stream2.prototype.pipe = function(dest, options) {
      const source = this;
      function ondata(chunk) {
        if (dest.writable && dest.write(chunk) === false && source.pause) {
          source.pause();
        }
      }
      __name(ondata, "ondata");
      source.on("data", ondata);
      function ondrain() {
        if (source.readable && source.resume) {
          source.resume();
        }
      }
      __name(ondrain, "ondrain");
      dest.on("drain", ondrain);
      if (!dest._isStdio && (!options || options.end !== false)) {
        source.on("end", onend);
        source.on("close", onclose);
      }
      let didOnEnd = false;
      function onend() {
        if (didOnEnd) return;
        didOnEnd = true;
        dest.end();
      }
      __name(onend, "onend");
      function onclose() {
        if (didOnEnd) return;
        didOnEnd = true;
        if (typeof dest.destroy === "function") dest.destroy();
      }
      __name(onclose, "onclose");
      function onerror(er) {
        cleanup();
        if (EE.listenerCount(this, "error") === 0) {
          this.emit("error", er);
        }
      }
      __name(onerror, "onerror");
      prependListener(source, "error", onerror);
      prependListener(dest, "error", onerror);
      function cleanup() {
        source.removeListener("data", ondata);
        dest.removeListener("drain", ondrain);
        source.removeListener("end", onend);
        source.removeListener("close", onclose);
        source.removeListener("error", onerror);
        dest.removeListener("error", onerror);
        source.removeListener("end", cleanup);
        source.removeListener("close", cleanup);
        dest.removeListener("close", cleanup);
      }
      __name(cleanup, "cleanup");
      source.on("end", cleanup);
      source.on("close", cleanup);
      dest.on("close", cleanup);
      dest.emit("pipe", source);
      return dest;
    };
    function prependListener(emitter, event, fn) {
      if (typeof emitter.prependListener === "function") return emitter.prependListener(event, fn);
      if (!emitter._events || !emitter._events[event]) emitter.on(event, fn);
      else if (ArrayIsArray(emitter._events[event])) emitter._events[event].unshift(fn);
      else emitter._events[event] = [fn, emitter._events[event]];
    }
    __name(prependListener, "prependListener");
    module2.exports = {
      Stream: Stream2,
      prependListener
    };
  }
});

// ../../node_modules/archiver/node_modules/readable-stream/lib/internal/streams/add-abort-signal.js
var require_add_abort_signal2 = __commonJS({
  "../../node_modules/archiver/node_modules/readable-stream/lib/internal/streams/add-abort-signal.js"(exports2, module2) {
    "use strict";
    var { SymbolDispose } = require_primordials2();
    var { AbortError, codes } = require_errors2();
    var { isNodeStream, isWebStream, kControllerErrorFunction } = require_utils3();
    var eos = require_end_of_stream2();
    var { ERR_INVALID_ARG_TYPE } = codes;
    var addAbortListener;
    var validateAbortSignal = /* @__PURE__ */ __name((signal, name) => {
      if (typeof signal !== "object" || !("aborted" in signal)) {
        throw new ERR_INVALID_ARG_TYPE(name, "AbortSignal", signal);
      }
    }, "validateAbortSignal");
    module2.exports.addAbortSignal = /* @__PURE__ */ __name(function addAbortSignal(signal, stream3) {
      validateAbortSignal(signal, "signal");
      if (!isNodeStream(stream3) && !isWebStream(stream3)) {
        throw new ERR_INVALID_ARG_TYPE("stream", ["ReadableStream", "WritableStream", "Stream"], stream3);
      }
      return module2.exports.addAbortSignalNoValidate(signal, stream3);
    }, "addAbortSignal");
    module2.exports.addAbortSignalNoValidate = function(signal, stream3) {
      if (typeof signal !== "object" || !("aborted" in signal)) {
        return stream3;
      }
      const onAbort = isNodeStream(stream3) ? () => {
        stream3.destroy(
          new AbortError(void 0, {
            cause: signal.reason
          })
        );
      } : () => {
        stream3[kControllerErrorFunction](
          new AbortError(void 0, {
            cause: signal.reason
          })
        );
      };
      if (signal.aborted) {
        onAbort();
      } else {
        addAbortListener = addAbortListener || require_util3().addAbortListener;
        const disposable = addAbortListener(signal, onAbort);
        eos(stream3, disposable[SymbolDispose]);
      }
      return stream3;
    };
  }
});

// ../../node_modules/archiver/node_modules/readable-stream/lib/internal/streams/buffer_list.js
var require_buffer_list2 = __commonJS({
  "../../node_modules/archiver/node_modules/readable-stream/lib/internal/streams/buffer_list.js"(exports2, module2) {
    "use strict";
    var { StringPrototypeSlice, SymbolIterator, TypedArrayPrototypeSet, Uint8Array: Uint8Array2 } = require_primordials2();
    var { Buffer: Buffer2 } = require("buffer");
    var { inspect: inspect4 } = require_util3();
    module2.exports = class BufferList {
      static {
        __name(this, "BufferList");
      }
      constructor() {
        this.head = null;
        this.tail = null;
        this.length = 0;
      }
      push(v6) {
        const entry = {
          data: v6,
          next: null
        };
        if (this.length > 0) this.tail.next = entry;
        else this.head = entry;
        this.tail = entry;
        ++this.length;
      }
      unshift(v6) {
        const entry = {
          data: v6,
          next: this.head
        };
        if (this.length === 0) this.tail = entry;
        this.head = entry;
        ++this.length;
      }
      shift() {
        if (this.length === 0) return;
        const ret = this.head.data;
        if (this.length === 1) this.head = this.tail = null;
        else this.head = this.head.next;
        --this.length;
        return ret;
      }
      clear() {
        this.head = this.tail = null;
        this.length = 0;
      }
      join(s3) {
        if (this.length === 0) return "";
        let p3 = this.head;
        let ret = "" + p3.data;
        while ((p3 = p3.next) !== null) ret += s3 + p3.data;
        return ret;
      }
      concat(n3) {
        if (this.length === 0) return Buffer2.alloc(0);
        const ret = Buffer2.allocUnsafe(n3 >>> 0);
        let p3 = this.head;
        let i3 = 0;
        while (p3) {
          TypedArrayPrototypeSet(ret, p3.data, i3);
          i3 += p3.data.length;
          p3 = p3.next;
        }
        return ret;
      }
      // Consumes a specified amount of bytes or characters from the buffered data.
      consume(n3, hasStrings) {
        const data3 = this.head.data;
        if (n3 < data3.length) {
          const slice = data3.slice(0, n3);
          this.head.data = data3.slice(n3);
          return slice;
        }
        if (n3 === data3.length) {
          return this.shift();
        }
        return hasStrings ? this._getString(n3) : this._getBuffer(n3);
      }
      first() {
        return this.head.data;
      }
      *[SymbolIterator]() {
        for (let p3 = this.head; p3; p3 = p3.next) {
          yield p3.data;
        }
      }
      // Consumes a specified amount of characters from the buffered data.
      _getString(n3) {
        let ret = "";
        let p3 = this.head;
        let c3 = 0;
        do {
          const str = p3.data;
          if (n3 > str.length) {
            ret += str;
            n3 -= str.length;
          } else {
            if (n3 === str.length) {
              ret += str;
              ++c3;
              if (p3.next) this.head = p3.next;
              else this.head = this.tail = null;
            } else {
              ret += StringPrototypeSlice(str, 0, n3);
              this.head = p3;
              p3.data = StringPrototypeSlice(str, n3);
            }
            break;
          }
          ++c3;
        } while ((p3 = p3.next) !== null);
        this.length -= c3;
        return ret;
      }
      // Consumes a specified amount of bytes from the buffered data.
      _getBuffer(n3) {
        const ret = Buffer2.allocUnsafe(n3);
        const retLen = n3;
        let p3 = this.head;
        let c3 = 0;
        do {
          const buf = p3.data;
          if (n3 > buf.length) {
            TypedArrayPrototypeSet(ret, buf, retLen - n3);
            n3 -= buf.length;
          } else {
            if (n3 === buf.length) {
              TypedArrayPrototypeSet(ret, buf, retLen - n3);
              ++c3;
              if (p3.next) this.head = p3.next;
              else this.head = this.tail = null;
            } else {
              TypedArrayPrototypeSet(ret, new Uint8Array2(buf.buffer, buf.byteOffset, n3), retLen - n3);
              this.head = p3;
              p3.data = buf.slice(n3);
            }
            break;
          }
          ++c3;
        } while ((p3 = p3.next) !== null);
        this.length -= c3;
        return ret;
      }
      // Make sure the linked list only shows the minimal necessary information.
      [Symbol.for("nodejs.util.inspect.custom")](_3, options) {
        return inspect4(this, {
          ...options,
          // Only inspect one level.
          depth: 0,
          // It should not recurse.
          customInspect: false
        });
      }
    };
  }
});

// ../../node_modules/archiver/node_modules/readable-stream/lib/internal/streams/state.js
var require_state2 = __commonJS({
  "../../node_modules/archiver/node_modules/readable-stream/lib/internal/streams/state.js"(exports2, module2) {
    "use strict";
    var { MathFloor, NumberIsInteger } = require_primordials2();
    var { validateInteger } = require_validators2();
    var { ERR_INVALID_ARG_VALUE } = require_errors2().codes;
    var defaultHighWaterMarkBytes = 16 * 1024;
    var defaultHighWaterMarkObjectMode = 16;
    function highWaterMarkFrom(options, isDuplex, duplexKey) {
      return options.highWaterMark != null ? options.highWaterMark : isDuplex ? options[duplexKey] : null;
    }
    __name(highWaterMarkFrom, "highWaterMarkFrom");
    function getDefaultHighWaterMark(objectMode) {
      return objectMode ? defaultHighWaterMarkObjectMode : defaultHighWaterMarkBytes;
    }
    __name(getDefaultHighWaterMark, "getDefaultHighWaterMark");
    function setDefaultHighWaterMark(objectMode, value) {
      validateInteger(value, "value", 0);
      if (objectMode) {
        defaultHighWaterMarkObjectMode = value;
      } else {
        defaultHighWaterMarkBytes = value;
      }
    }
    __name(setDefaultHighWaterMark, "setDefaultHighWaterMark");
    function getHighWaterMark(state2, options, duplexKey, isDuplex) {
      const hwm = highWaterMarkFrom(options, isDuplex, duplexKey);
      if (hwm != null) {
        if (!NumberIsInteger(hwm) || hwm < 0) {
          const name = isDuplex ? `options.${duplexKey}` : "options.highWaterMark";
          throw new ERR_INVALID_ARG_VALUE(name, hwm);
        }
        return MathFloor(hwm);
      }
      return getDefaultHighWaterMark(state2.objectMode);
    }
    __name(getHighWaterMark, "getHighWaterMark");
    module2.exports = {
      getHighWaterMark,
      getDefaultHighWaterMark,
      setDefaultHighWaterMark
    };
  }
});

// ../../node_modules/archiver/node_modules/readable-stream/lib/internal/streams/from.js
var require_from2 = __commonJS({
  "../../node_modules/archiver/node_modules/readable-stream/lib/internal/streams/from.js"(exports2, module2) {
    "use strict";
    var process3 = require_process();
    var { PromisePrototypeThen, SymbolAsyncIterator, SymbolIterator } = require_primordials2();
    var { Buffer: Buffer2 } = require("buffer");
    var { ERR_INVALID_ARG_TYPE, ERR_STREAM_NULL_VALUES } = require_errors2().codes;
    function from(Readable, iterable, opts) {
      let iterator;
      if (typeof iterable === "string" || iterable instanceof Buffer2) {
        return new Readable({
          objectMode: true,
          ...opts,
          read() {
            this.push(iterable);
            this.push(null);
          }
        });
      }
      let isAsync;
      if (iterable && iterable[SymbolAsyncIterator]) {
        isAsync = true;
        iterator = iterable[SymbolAsyncIterator]();
      } else if (iterable && iterable[SymbolIterator]) {
        isAsync = false;
        iterator = iterable[SymbolIterator]();
      } else {
        throw new ERR_INVALID_ARG_TYPE("iterable", ["Iterable"], iterable);
      }
      const readable = new Readable({
        objectMode: true,
        highWaterMark: 1,
        // TODO(ronag): What options should be allowed?
        ...opts
      });
      let reading = false;
      readable._read = function() {
        if (!reading) {
          reading = true;
          next();
        }
      };
      readable._destroy = function(error5, cb) {
        PromisePrototypeThen(
          close(error5),
          () => process3.nextTick(cb, error5),
          // nextTick is here in case cb throws
          (e3) => process3.nextTick(cb, e3 || error5)
        );
      };
      async function close(error5) {
        const hadError = error5 !== void 0 && error5 !== null;
        const hasThrow = typeof iterator.throw === "function";
        if (hadError && hasThrow) {
          const { value, done } = await iterator.throw(error5);
          await value;
          if (done) {
            return;
          }
        }
        if (typeof iterator.return === "function") {
          const { value } = await iterator.return();
          await value;
        }
      }
      __name(close, "close");
      async function next() {
        for (; ; ) {
          try {
            const { value, done } = isAsync ? await iterator.next() : iterator.next();
            if (done) {
              readable.push(null);
            } else {
              const res = value && typeof value.then === "function" ? await value : value;
              if (res === null) {
                reading = false;
                throw new ERR_STREAM_NULL_VALUES();
              } else if (readable.push(res)) {
                continue;
              } else {
                reading = false;
              }
            }
          } catch (err) {
            readable.destroy(err);
          }
          break;
        }
      }
      __name(next, "next");
      return readable;
    }
    __name(from, "from");
    module2.exports = from;
  }
});

// ../../node_modules/archiver/node_modules/readable-stream/lib/internal/streams/readable.js
var require_readable3 = __commonJS({
  "../../node_modules/archiver/node_modules/readable-stream/lib/internal/streams/readable.js"(exports2, module2) {
    "use strict";
    var process3 = require_process();
    var {
      ArrayPrototypeIndexOf,
      NumberIsInteger,
      NumberIsNaN,
      NumberParseInt,
      ObjectDefineProperties,
      ObjectKeys,
      ObjectSetPrototypeOf,
      Promise: Promise2,
      SafeSet,
      SymbolAsyncDispose,
      SymbolAsyncIterator,
      Symbol: Symbol2
    } = require_primordials2();
    module2.exports = Readable;
    Readable.ReadableState = ReadableState;
    var { EventEmitter: EE } = require("events");
    var { Stream: Stream2, prependListener } = require_legacy2();
    var { Buffer: Buffer2 } = require("buffer");
    var { addAbortSignal } = require_add_abort_signal2();
    var eos = require_end_of_stream2();
    var debug3 = require_util3().debuglog("stream", (fn) => {
      debug3 = fn;
    });
    var BufferList = require_buffer_list2();
    var destroyImpl = require_destroy3();
    var { getHighWaterMark, getDefaultHighWaterMark } = require_state2();
    var {
      aggregateTwoErrors,
      codes: {
        ERR_INVALID_ARG_TYPE,
        ERR_METHOD_NOT_IMPLEMENTED,
        ERR_OUT_OF_RANGE,
        ERR_STREAM_PUSH_AFTER_EOF,
        ERR_STREAM_UNSHIFT_AFTER_END_EVENT
      },
      AbortError
    } = require_errors2();
    var { validateObject } = require_validators2();
    var kPaused = Symbol2("kPaused");
    var { StringDecoder: StringDecoder2 } = require_string_decoder2();
    var from = require_from2();
    ObjectSetPrototypeOf(Readable.prototype, Stream2.prototype);
    ObjectSetPrototypeOf(Readable, Stream2);
    var nop = /* @__PURE__ */ __name(() => {
    }, "nop");
    var { errorOrDestroy } = destroyImpl;
    var kObjectMode = 1 << 0;
    var kEnded = 1 << 1;
    var kEndEmitted = 1 << 2;
    var kReading = 1 << 3;
    var kConstructed = 1 << 4;
    var kSync = 1 << 5;
    var kNeedReadable = 1 << 6;
    var kEmittedReadable = 1 << 7;
    var kReadableListening = 1 << 8;
    var kResumeScheduled = 1 << 9;
    var kErrorEmitted = 1 << 10;
    var kEmitClose = 1 << 11;
    var kAutoDestroy = 1 << 12;
    var kDestroyed = 1 << 13;
    var kClosed = 1 << 14;
    var kCloseEmitted = 1 << 15;
    var kMultiAwaitDrain = 1 << 16;
    var kReadingMore = 1 << 17;
    var kDataEmitted = 1 << 18;
    function makeBitMapDescriptor(bit) {
      return {
        enumerable: false,
        get() {
          return (this.state & bit) !== 0;
        },
        set(value) {
          if (value) this.state |= bit;
          else this.state &= ~bit;
        }
      };
    }
    __name(makeBitMapDescriptor, "makeBitMapDescriptor");
    ObjectDefineProperties(ReadableState.prototype, {
      objectMode: makeBitMapDescriptor(kObjectMode),
      ended: makeBitMapDescriptor(kEnded),
      endEmitted: makeBitMapDescriptor(kEndEmitted),
      reading: makeBitMapDescriptor(kReading),
      // Stream is still being constructed and cannot be
      // destroyed until construction finished or failed.
      // Async construction is opt in, therefore we start as
      // constructed.
      constructed: makeBitMapDescriptor(kConstructed),
      // A flag to be able to tell if the event 'readable'/'data' is emitted
      // immediately, or on a later tick.  We set this to true at first, because
      // any actions that shouldn't happen until "later" should generally also
      // not happen before the first read call.
      sync: makeBitMapDescriptor(kSync),
      // Whenever we return null, then we set a flag to say
      // that we're awaiting a 'readable' event emission.
      needReadable: makeBitMapDescriptor(kNeedReadable),
      emittedReadable: makeBitMapDescriptor(kEmittedReadable),
      readableListening: makeBitMapDescriptor(kReadableListening),
      resumeScheduled: makeBitMapDescriptor(kResumeScheduled),
      // True if the error was already emitted and should not be thrown again.
      errorEmitted: makeBitMapDescriptor(kErrorEmitted),
      emitClose: makeBitMapDescriptor(kEmitClose),
      autoDestroy: makeBitMapDescriptor(kAutoDestroy),
      // Has it been destroyed.
      destroyed: makeBitMapDescriptor(kDestroyed),
      // Indicates whether the stream has finished destroying.
      closed: makeBitMapDescriptor(kClosed),
      // True if close has been emitted or would have been emitted
      // depending on emitClose.
      closeEmitted: makeBitMapDescriptor(kCloseEmitted),
      multiAwaitDrain: makeBitMapDescriptor(kMultiAwaitDrain),
      // If true, a maybeReadMore has been scheduled.
      readingMore: makeBitMapDescriptor(kReadingMore),
      dataEmitted: makeBitMapDescriptor(kDataEmitted)
    });
    function ReadableState(options, stream3, isDuplex) {
      if (typeof isDuplex !== "boolean") isDuplex = stream3 instanceof require_duplex2();
      this.state = kEmitClose | kAutoDestroy | kConstructed | kSync;
      if (options && options.objectMode) this.state |= kObjectMode;
      if (isDuplex && options && options.readableObjectMode) this.state |= kObjectMode;
      this.highWaterMark = options ? getHighWaterMark(this, options, "readableHighWaterMark", isDuplex) : getDefaultHighWaterMark(false);
      this.buffer = new BufferList();
      this.length = 0;
      this.pipes = [];
      this.flowing = null;
      this[kPaused] = null;
      if (options && options.emitClose === false) this.state &= ~kEmitClose;
      if (options && options.autoDestroy === false) this.state &= ~kAutoDestroy;
      this.errored = null;
      this.defaultEncoding = options && options.defaultEncoding || "utf8";
      this.awaitDrainWriters = null;
      this.decoder = null;
      this.encoding = null;
      if (options && options.encoding) {
        this.decoder = new StringDecoder2(options.encoding);
        this.encoding = options.encoding;
      }
    }
    __name(ReadableState, "ReadableState");
    function Readable(options) {
      if (!(this instanceof Readable)) return new Readable(options);
      const isDuplex = this instanceof require_duplex2();
      this._readableState = new ReadableState(options, this, isDuplex);
      if (options) {
        if (typeof options.read === "function") this._read = options.read;
        if (typeof options.destroy === "function") this._destroy = options.destroy;
        if (typeof options.construct === "function") this._construct = options.construct;
        if (options.signal && !isDuplex) addAbortSignal(options.signal, this);
      }
      Stream2.call(this, options);
      destroyImpl.construct(this, () => {
        if (this._readableState.needReadable) {
          maybeReadMore(this, this._readableState);
        }
      });
    }
    __name(Readable, "Readable");
    Readable.prototype.destroy = destroyImpl.destroy;
    Readable.prototype._undestroy = destroyImpl.undestroy;
    Readable.prototype._destroy = function(err, cb) {
      cb(err);
    };
    Readable.prototype[EE.captureRejectionSymbol] = function(err) {
      this.destroy(err);
    };
    Readable.prototype[SymbolAsyncDispose] = function() {
      let error5;
      if (!this.destroyed) {
        error5 = this.readableEnded ? null : new AbortError();
        this.destroy(error5);
      }
      return new Promise2((resolve13, reject) => eos(this, (err) => err && err !== error5 ? reject(err) : resolve13(null)));
    };
    Readable.prototype.push = function(chunk, encoding) {
      return readableAddChunk(this, chunk, encoding, false);
    };
    Readable.prototype.unshift = function(chunk, encoding) {
      return readableAddChunk(this, chunk, encoding, true);
    };
    function readableAddChunk(stream3, chunk, encoding, addToFront) {
      debug3("readableAddChunk", chunk);
      const state2 = stream3._readableState;
      let err;
      if ((state2.state & kObjectMode) === 0) {
        if (typeof chunk === "string") {
          encoding = encoding || state2.defaultEncoding;
          if (state2.encoding !== encoding) {
            if (addToFront && state2.encoding) {
              chunk = Buffer2.from(chunk, encoding).toString(state2.encoding);
            } else {
              chunk = Buffer2.from(chunk, encoding);
              encoding = "";
            }
          }
        } else if (chunk instanceof Buffer2) {
          encoding = "";
        } else if (Stream2._isUint8Array(chunk)) {
          chunk = Stream2._uint8ArrayToBuffer(chunk);
          encoding = "";
        } else if (chunk != null) {
          err = new ERR_INVALID_ARG_TYPE("chunk", ["string", "Buffer", "Uint8Array"], chunk);
        }
      }
      if (err) {
        errorOrDestroy(stream3, err);
      } else if (chunk === null) {
        state2.state &= ~kReading;
        onEofChunk(stream3, state2);
      } else if ((state2.state & kObjectMode) !== 0 || chunk && chunk.length > 0) {
        if (addToFront) {
          if ((state2.state & kEndEmitted) !== 0) errorOrDestroy(stream3, new ERR_STREAM_UNSHIFT_AFTER_END_EVENT());
          else if (state2.destroyed || state2.errored) return false;
          else addChunk(stream3, state2, chunk, true);
        } else if (state2.ended) {
          errorOrDestroy(stream3, new ERR_STREAM_PUSH_AFTER_EOF());
        } else if (state2.destroyed || state2.errored) {
          return false;
        } else {
          state2.state &= ~kReading;
          if (state2.decoder && !encoding) {
            chunk = state2.decoder.write(chunk);
            if (state2.objectMode || chunk.length !== 0) addChunk(stream3, state2, chunk, false);
            else maybeReadMore(stream3, state2);
          } else {
            addChunk(stream3, state2, chunk, false);
          }
        }
      } else if (!addToFront) {
        state2.state &= ~kReading;
        maybeReadMore(stream3, state2);
      }
      return !state2.ended && (state2.length < state2.highWaterMark || state2.length === 0);
    }
    __name(readableAddChunk, "readableAddChunk");
    function addChunk(stream3, state2, chunk, addToFront) {
      if (state2.flowing && state2.length === 0 && !state2.sync && stream3.listenerCount("data") > 0) {
        if ((state2.state & kMultiAwaitDrain) !== 0) {
          state2.awaitDrainWriters.clear();
        } else {
          state2.awaitDrainWriters = null;
        }
        state2.dataEmitted = true;
        stream3.emit("data", chunk);
      } else {
        state2.length += state2.objectMode ? 1 : chunk.length;
        if (addToFront) state2.buffer.unshift(chunk);
        else state2.buffer.push(chunk);
        if ((state2.state & kNeedReadable) !== 0) emitReadable(stream3);
      }
      maybeReadMore(stream3, state2);
    }
    __name(addChunk, "addChunk");
    Readable.prototype.isPaused = function() {
      const state2 = this._readableState;
      return state2[kPaused] === true || state2.flowing === false;
    };
    Readable.prototype.setEncoding = function(enc) {
      const decoder = new StringDecoder2(enc);
      this._readableState.decoder = decoder;
      this._readableState.encoding = this._readableState.decoder.encoding;
      const buffer = this._readableState.buffer;
      let content = "";
      for (const data3 of buffer) {
        content += decoder.write(data3);
      }
      buffer.clear();
      if (content !== "") buffer.push(content);
      this._readableState.length = content.length;
      return this;
    };
    var MAX_HWM = 1073741824;
    function computeNewHighWaterMark(n3) {
      if (n3 > MAX_HWM) {
        throw new ERR_OUT_OF_RANGE("size", "<= 1GiB", n3);
      } else {
        n3--;
        n3 |= n3 >>> 1;
        n3 |= n3 >>> 2;
        n3 |= n3 >>> 4;
        n3 |= n3 >>> 8;
        n3 |= n3 >>> 16;
        n3++;
      }
      return n3;
    }
    __name(computeNewHighWaterMark, "computeNewHighWaterMark");
    function howMuchToRead(n3, state2) {
      if (n3 <= 0 || state2.length === 0 && state2.ended) return 0;
      if ((state2.state & kObjectMode) !== 0) return 1;
      if (NumberIsNaN(n3)) {
        if (state2.flowing && state2.length) return state2.buffer.first().length;
        return state2.length;
      }
      if (n3 <= state2.length) return n3;
      return state2.ended ? state2.length : 0;
    }
    __name(howMuchToRead, "howMuchToRead");
    Readable.prototype.read = function(n3) {
      debug3("read", n3);
      if (n3 === void 0) {
        n3 = NaN;
      } else if (!NumberIsInteger(n3)) {
        n3 = NumberParseInt(n3, 10);
      }
      const state2 = this._readableState;
      const nOrig = n3;
      if (n3 > state2.highWaterMark) state2.highWaterMark = computeNewHighWaterMark(n3);
      if (n3 !== 0) state2.state &= ~kEmittedReadable;
      if (n3 === 0 && state2.needReadable && ((state2.highWaterMark !== 0 ? state2.length >= state2.highWaterMark : state2.length > 0) || state2.ended)) {
        debug3("read: emitReadable", state2.length, state2.ended);
        if (state2.length === 0 && state2.ended) endReadable(this);
        else emitReadable(this);
        return null;
      }
      n3 = howMuchToRead(n3, state2);
      if (n3 === 0 && state2.ended) {
        if (state2.length === 0) endReadable(this);
        return null;
      }
      let doRead = (state2.state & kNeedReadable) !== 0;
      debug3("need readable", doRead);
      if (state2.length === 0 || state2.length - n3 < state2.highWaterMark) {
        doRead = true;
        debug3("length less than watermark", doRead);
      }
      if (state2.ended || state2.reading || state2.destroyed || state2.errored || !state2.constructed) {
        doRead = false;
        debug3("reading, ended or constructing", doRead);
      } else if (doRead) {
        debug3("do read");
        state2.state |= kReading | kSync;
        if (state2.length === 0) state2.state |= kNeedReadable;
        try {
          this._read(state2.highWaterMark);
        } catch (err) {
          errorOrDestroy(this, err);
        }
        state2.state &= ~kSync;
        if (!state2.reading) n3 = howMuchToRead(nOrig, state2);
      }
      let ret;
      if (n3 > 0) ret = fromList(n3, state2);
      else ret = null;
      if (ret === null) {
        state2.needReadable = state2.length <= state2.highWaterMark;
        n3 = 0;
      } else {
        state2.length -= n3;
        if (state2.multiAwaitDrain) {
          state2.awaitDrainWriters.clear();
        } else {
          state2.awaitDrainWriters = null;
        }
      }
      if (state2.length === 0) {
        if (!state2.ended) state2.needReadable = true;
        if (nOrig !== n3 && state2.ended) endReadable(this);
      }
      if (ret !== null && !state2.errorEmitted && !state2.closeEmitted) {
        state2.dataEmitted = true;
        this.emit("data", ret);
      }
      return ret;
    };
    function onEofChunk(stream3, state2) {
      debug3("onEofChunk");
      if (state2.ended) return;
      if (state2.decoder) {
        const chunk = state2.decoder.end();
        if (chunk && chunk.length) {
          state2.buffer.push(chunk);
          state2.length += state2.objectMode ? 1 : chunk.length;
        }
      }
      state2.ended = true;
      if (state2.sync) {
        emitReadable(stream3);
      } else {
        state2.needReadable = false;
        state2.emittedReadable = true;
        emitReadable_(stream3);
      }
    }
    __name(onEofChunk, "onEofChunk");
    function emitReadable(stream3) {
      const state2 = stream3._readableState;
      debug3("emitReadable", state2.needReadable, state2.emittedReadable);
      state2.needReadable = false;
      if (!state2.emittedReadable) {
        debug3("emitReadable", state2.flowing);
        state2.emittedReadable = true;
        process3.nextTick(emitReadable_, stream3);
      }
    }
    __name(emitReadable, "emitReadable");
    function emitReadable_(stream3) {
      const state2 = stream3._readableState;
      debug3("emitReadable_", state2.destroyed, state2.length, state2.ended);
      if (!state2.destroyed && !state2.errored && (state2.length || state2.ended)) {
        stream3.emit("readable");
        state2.emittedReadable = false;
      }
      state2.needReadable = !state2.flowing && !state2.ended && state2.length <= state2.highWaterMark;
      flow(stream3);
    }
    __name(emitReadable_, "emitReadable_");
    function maybeReadMore(stream3, state2) {
      if (!state2.readingMore && state2.constructed) {
        state2.readingMore = true;
        process3.nextTick(maybeReadMore_, stream3, state2);
      }
    }
    __name(maybeReadMore, "maybeReadMore");
    function maybeReadMore_(stream3, state2) {
      while (!state2.reading && !state2.ended && (state2.length < state2.highWaterMark || state2.flowing && state2.length === 0)) {
        const len = state2.length;
        debug3("maybeReadMore read 0");
        stream3.read(0);
        if (len === state2.length)
          break;
      }
      state2.readingMore = false;
    }
    __name(maybeReadMore_, "maybeReadMore_");
    Readable.prototype._read = function(n3) {
      throw new ERR_METHOD_NOT_IMPLEMENTED("_read()");
    };
    Readable.prototype.pipe = function(dest, pipeOpts) {
      const src = this;
      const state2 = this._readableState;
      if (state2.pipes.length === 1) {
        if (!state2.multiAwaitDrain) {
          state2.multiAwaitDrain = true;
          state2.awaitDrainWriters = new SafeSet(state2.awaitDrainWriters ? [state2.awaitDrainWriters] : []);
        }
      }
      state2.pipes.push(dest);
      debug3("pipe count=%d opts=%j", state2.pipes.length, pipeOpts);
      const doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process3.stdout && dest !== process3.stderr;
      const endFn = doEnd ? onend : unpipe;
      if (state2.endEmitted) process3.nextTick(endFn);
      else src.once("end", endFn);
      dest.on("unpipe", onunpipe);
      function onunpipe(readable, unpipeInfo) {
        debug3("onunpipe");
        if (readable === src) {
          if (unpipeInfo && unpipeInfo.hasUnpiped === false) {
            unpipeInfo.hasUnpiped = true;
            cleanup();
          }
        }
      }
      __name(onunpipe, "onunpipe");
      function onend() {
        debug3("onend");
        dest.end();
      }
      __name(onend, "onend");
      let ondrain;
      let cleanedUp = false;
      function cleanup() {
        debug3("cleanup");
        dest.removeListener("close", onclose);
        dest.removeListener("finish", onfinish);
        if (ondrain) {
          dest.removeListener("drain", ondrain);
        }
        dest.removeListener("error", onerror);
        dest.removeListener("unpipe", onunpipe);
        src.removeListener("end", onend);
        src.removeListener("end", unpipe);
        src.removeListener("data", ondata);
        cleanedUp = true;
        if (ondrain && state2.awaitDrainWriters && (!dest._writableState || dest._writableState.needDrain)) ondrain();
      }
      __name(cleanup, "cleanup");
      function pause() {
        if (!cleanedUp) {
          if (state2.pipes.length === 1 && state2.pipes[0] === dest) {
            debug3("false write response, pause", 0);
            state2.awaitDrainWriters = dest;
            state2.multiAwaitDrain = false;
          } else if (state2.pipes.length > 1 && state2.pipes.includes(dest)) {
            debug3("false write response, pause", state2.awaitDrainWriters.size);
            state2.awaitDrainWriters.add(dest);
          }
          src.pause();
        }
        if (!ondrain) {
          ondrain = pipeOnDrain(src, dest);
          dest.on("drain", ondrain);
        }
      }
      __name(pause, "pause");
      src.on("data", ondata);
      function ondata(chunk) {
        debug3("ondata");
        const ret = dest.write(chunk);
        debug3("dest.write", ret);
        if (ret === false) {
          pause();
        }
      }
      __name(ondata, "ondata");
      function onerror(er) {
        debug3("onerror", er);
        unpipe();
        dest.removeListener("error", onerror);
        if (dest.listenerCount("error") === 0) {
          const s3 = dest._writableState || dest._readableState;
          if (s3 && !s3.errorEmitted) {
            errorOrDestroy(dest, er);
          } else {
            dest.emit("error", er);
          }
        }
      }
      __name(onerror, "onerror");
      prependListener(dest, "error", onerror);
      function onclose() {
        dest.removeListener("finish", onfinish);
        unpipe();
      }
      __name(onclose, "onclose");
      dest.once("close", onclose);
      function onfinish() {
        debug3("onfinish");
        dest.removeListener("close", onclose);
        unpipe();
      }
      __name(onfinish, "onfinish");
      dest.once("finish", onfinish);
      function unpipe() {
        debug3("unpipe");
        src.unpipe(dest);
      }
      __name(unpipe, "unpipe");
      dest.emit("pipe", src);
      if (dest.writableNeedDrain === true) {
        pause();
      } else if (!state2.flowing) {
        debug3("pipe resume");
        src.resume();
      }
      return dest;
    };
    function pipeOnDrain(src, dest) {
      return /* @__PURE__ */ __name(function pipeOnDrainFunctionResult() {
        const state2 = src._readableState;
        if (state2.awaitDrainWriters === dest) {
          debug3("pipeOnDrain", 1);
          state2.awaitDrainWriters = null;
        } else if (state2.multiAwaitDrain) {
          debug3("pipeOnDrain", state2.awaitDrainWriters.size);
          state2.awaitDrainWriters.delete(dest);
        }
        if ((!state2.awaitDrainWriters || state2.awaitDrainWriters.size === 0) && src.listenerCount("data")) {
          src.resume();
        }
      }, "pipeOnDrainFunctionResult");
    }
    __name(pipeOnDrain, "pipeOnDrain");
    Readable.prototype.unpipe = function(dest) {
      const state2 = this._readableState;
      const unpipeInfo = {
        hasUnpiped: false
      };
      if (state2.pipes.length === 0) return this;
      if (!dest) {
        const dests = state2.pipes;
        state2.pipes = [];
        this.pause();
        for (let i3 = 0; i3 < dests.length; i3++)
          dests[i3].emit("unpipe", this, {
            hasUnpiped: false
          });
        return this;
      }
      const index = ArrayPrototypeIndexOf(state2.pipes, dest);
      if (index === -1) return this;
      state2.pipes.splice(index, 1);
      if (state2.pipes.length === 0) this.pause();
      dest.emit("unpipe", this, unpipeInfo);
      return this;
    };
    Readable.prototype.on = function(ev, fn) {
      const res = Stream2.prototype.on.call(this, ev, fn);
      const state2 = this._readableState;
      if (ev === "data") {
        state2.readableListening = this.listenerCount("readable") > 0;
        if (state2.flowing !== false) this.resume();
      } else if (ev === "readable") {
        if (!state2.endEmitted && !state2.readableListening) {
          state2.readableListening = state2.needReadable = true;
          state2.flowing = false;
          state2.emittedReadable = false;
          debug3("on readable", state2.length, state2.reading);
          if (state2.length) {
            emitReadable(this);
          } else if (!state2.reading) {
            process3.nextTick(nReadingNextTick, this);
          }
        }
      }
      return res;
    };
    Readable.prototype.addListener = Readable.prototype.on;
    Readable.prototype.removeListener = function(ev, fn) {
      const res = Stream2.prototype.removeListener.call(this, ev, fn);
      if (ev === "readable") {
        process3.nextTick(updateReadableListening, this);
      }
      return res;
    };
    Readable.prototype.off = Readable.prototype.removeListener;
    Readable.prototype.removeAllListeners = function(ev) {
      const res = Stream2.prototype.removeAllListeners.apply(this, arguments);
      if (ev === "readable" || ev === void 0) {
        process3.nextTick(updateReadableListening, this);
      }
      return res;
    };
    function updateReadableListening(self2) {
      const state2 = self2._readableState;
      state2.readableListening = self2.listenerCount("readable") > 0;
      if (state2.resumeScheduled && state2[kPaused] === false) {
        state2.flowing = true;
      } else if (self2.listenerCount("data") > 0) {
        self2.resume();
      } else if (!state2.readableListening) {
        state2.flowing = null;
      }
    }
    __name(updateReadableListening, "updateReadableListening");
    function nReadingNextTick(self2) {
      debug3("readable nexttick read 0");
      self2.read(0);
    }
    __name(nReadingNextTick, "nReadingNextTick");
    Readable.prototype.resume = function() {
      const state2 = this._readableState;
      if (!state2.flowing) {
        debug3("resume");
        state2.flowing = !state2.readableListening;
        resume(this, state2);
      }
      state2[kPaused] = false;
      return this;
    };
    function resume(stream3, state2) {
      if (!state2.resumeScheduled) {
        state2.resumeScheduled = true;
        process3.nextTick(resume_, stream3, state2);
      }
    }
    __name(resume, "resume");
    function resume_(stream3, state2) {
      debug3("resume", state2.reading);
      if (!state2.reading) {
        stream3.read(0);
      }
      state2.resumeScheduled = false;
      stream3.emit("resume");
      flow(stream3);
      if (state2.flowing && !state2.reading) stream3.read(0);
    }
    __name(resume_, "resume_");
    Readable.prototype.pause = function() {
      debug3("call pause flowing=%j", this._readableState.flowing);
      if (this._readableState.flowing !== false) {
        debug3("pause");
        this._readableState.flowing = false;
        this.emit("pause");
      }
      this._readableState[kPaused] = true;
      return this;
    };
    function flow(stream3) {
      const state2 = stream3._readableState;
      debug3("flow", state2.flowing);
      while (state2.flowing && stream3.read() !== null) ;
    }
    __name(flow, "flow");
    Readable.prototype.wrap = function(stream3) {
      let paused = false;
      stream3.on("data", (chunk) => {
        if (!this.push(chunk) && stream3.pause) {
          paused = true;
          stream3.pause();
        }
      });
      stream3.on("end", () => {
        this.push(null);
      });
      stream3.on("error", (err) => {
        errorOrDestroy(this, err);
      });
      stream3.on("close", () => {
        this.destroy();
      });
      stream3.on("destroy", () => {
        this.destroy();
      });
      this._read = () => {
        if (paused && stream3.resume) {
          paused = false;
          stream3.resume();
        }
      };
      const streamKeys = ObjectKeys(stream3);
      for (let j3 = 1; j3 < streamKeys.length; j3++) {
        const i3 = streamKeys[j3];
        if (this[i3] === void 0 && typeof stream3[i3] === "function") {
          this[i3] = stream3[i3].bind(stream3);
        }
      }
      return this;
    };
    Readable.prototype[SymbolAsyncIterator] = function() {
      return streamToAsyncIterator(this);
    };
    Readable.prototype.iterator = function(options) {
      if (options !== void 0) {
        validateObject(options, "options");
      }
      return streamToAsyncIterator(this, options);
    };
    function streamToAsyncIterator(stream3, options) {
      if (typeof stream3.read !== "function") {
        stream3 = Readable.wrap(stream3, {
          objectMode: true
        });
      }
      const iter = createAsyncIterator(stream3, options);
      iter.stream = stream3;
      return iter;
    }
    __name(streamToAsyncIterator, "streamToAsyncIterator");
    async function* createAsyncIterator(stream3, options) {
      let callback = nop;
      function next(resolve13) {
        if (this === stream3) {
          callback();
          callback = nop;
        } else {
          callback = resolve13;
        }
      }
      __name(next, "next");
      stream3.on("readable", next);
      let error5;
      const cleanup = eos(
        stream3,
        {
          writable: false
        },
        (err) => {
          error5 = err ? aggregateTwoErrors(error5, err) : null;
          callback();
          callback = nop;
        }
      );
      try {
        while (true) {
          const chunk = stream3.destroyed ? null : stream3.read();
          if (chunk !== null) {
            yield chunk;
          } else if (error5) {
            throw error5;
          } else if (error5 === null) {
            return;
          } else {
            await new Promise2(next);
          }
        }
      } catch (err) {
        error5 = aggregateTwoErrors(error5, err);
        throw error5;
      } finally {
        if ((error5 || (options === null || options === void 0 ? void 0 : options.destroyOnReturn) !== false) && (error5 === void 0 || stream3._readableState.autoDestroy)) {
          destroyImpl.destroyer(stream3, null);
        } else {
          stream3.off("readable", next);
          cleanup();
        }
      }
    }
    __name(createAsyncIterator, "createAsyncIterator");
    ObjectDefineProperties(Readable.prototype, {
      readable: {
        __proto__: null,
        get() {
          const r3 = this._readableState;
          return !!r3 && r3.readable !== false && !r3.destroyed && !r3.errorEmitted && !r3.endEmitted;
        },
        set(val) {
          if (this._readableState) {
            this._readableState.readable = !!val;
          }
        }
      },
      readableDidRead: {
        __proto__: null,
        enumerable: false,
        get: /* @__PURE__ */ __name(function() {
          return this._readableState.dataEmitted;
        }, "get")
      },
      readableAborted: {
        __proto__: null,
        enumerable: false,
        get: /* @__PURE__ */ __name(function() {
          return !!(this._readableState.readable !== false && (this._readableState.destroyed || this._readableState.errored) && !this._readableState.endEmitted);
        }, "get")
      },
      readableHighWaterMark: {
        __proto__: null,
        enumerable: false,
        get: /* @__PURE__ */ __name(function() {
          return this._readableState.highWaterMark;
        }, "get")
      },
      readableBuffer: {
        __proto__: null,
        enumerable: false,
        get: /* @__PURE__ */ __name(function() {
          return this._readableState && this._readableState.buffer;
        }, "get")
      },
      readableFlowing: {
        __proto__: null,
        enumerable: false,
        get: /* @__PURE__ */ __name(function() {
          return this._readableState.flowing;
        }, "get"),
        set: /* @__PURE__ */ __name(function(state2) {
          if (this._readableState) {
            this._readableState.flowing = state2;
          }
        }, "set")
      },
      readableLength: {
        __proto__: null,
        enumerable: false,
        get() {
          return this._readableState.length;
        }
      },
      readableObjectMode: {
        __proto__: null,
        enumerable: false,
        get() {
          return this._readableState ? this._readableState.objectMode : false;
        }
      },
      readableEncoding: {
        __proto__: null,
        enumerable: false,
        get() {
          return this._readableState ? this._readableState.encoding : null;
        }
      },
      errored: {
        __proto__: null,
        enumerable: false,
        get() {
          return this._readableState ? this._readableState.errored : null;
        }
      },
      closed: {
        __proto__: null,
        get() {
          return this._readableState ? this._readableState.closed : false;
        }
      },
      destroyed: {
        __proto__: null,
        enumerable: false,
        get() {
          return this._readableState ? this._readableState.destroyed : false;
        },
        set(value) {
          if (!this._readableState) {
            return;
          }
          this._readableState.destroyed = value;
        }
      },
      readableEnded: {
        __proto__: null,
        enumerable: false,
        get() {
          return this._readableState ? this._readableState.endEmitted : false;
        }
      }
    });
    ObjectDefineProperties(ReadableState.prototype, {
      // Legacy getter for `pipesCount`.
      pipesCount: {
        __proto__: null,
        get() {
          return this.pipes.length;
        }
      },
      // Legacy property for `paused`.
      paused: {
        __proto__: null,
        get() {
          return this[kPaused] !== false;
        },
        set(value) {
          this[kPaused] = !!value;
        }
      }
    });
    Readable._fromList = fromList;
    function fromList(n3, state2) {
      if (state2.length === 0) return null;
      let ret;
      if (state2.objectMode) ret = state2.buffer.shift();
      else if (!n3 || n3 >= state2.length) {
        if (state2.decoder) ret = state2.buffer.join("");
        else if (state2.buffer.length === 1) ret = state2.buffer.first();
        else ret = state2.buffer.concat(state2.length);
        state2.buffer.clear();
      } else {
        ret = state2.buffer.consume(n3, state2.decoder);
      }
      return ret;
    }
    __name(fromList, "fromList");
    function endReadable(stream3) {
      const state2 = stream3._readableState;
      debug3("endReadable", state2.endEmitted);
      if (!state2.endEmitted) {
        state2.ended = true;
        process3.nextTick(endReadableNT, state2, stream3);
      }
    }
    __name(endReadable, "endReadable");
    function endReadableNT(state2, stream3) {
      debug3("endReadableNT", state2.endEmitted, state2.length);
      if (!state2.errored && !state2.closeEmitted && !state2.endEmitted && state2.length === 0) {
        state2.endEmitted = true;
        stream3.emit("end");
        if (stream3.writable && stream3.allowHalfOpen === false) {
          process3.nextTick(endWritableNT, stream3);
        } else if (state2.autoDestroy) {
          const wState = stream3._writableState;
          const autoDestroy = !wState || wState.autoDestroy && // We don't expect the writable to ever 'finish'
          // if writable is explicitly set to false.
          (wState.finished || wState.writable === false);
          if (autoDestroy) {
            stream3.destroy();
          }
        }
      }
    }
    __name(endReadableNT, "endReadableNT");
    function endWritableNT(stream3) {
      const writable = stream3.writable && !stream3.writableEnded && !stream3.destroyed;
      if (writable) {
        stream3.end();
      }
    }
    __name(endWritableNT, "endWritableNT");
    Readable.from = function(iterable, opts) {
      return from(Readable, iterable, opts);
    };
    var webStreamsAdapters;
    function lazyWebStreams() {
      if (webStreamsAdapters === void 0) webStreamsAdapters = {};
      return webStreamsAdapters;
    }
    __name(lazyWebStreams, "lazyWebStreams");
    Readable.fromWeb = function(readableStream, options) {
      return lazyWebStreams().newStreamReadableFromReadableStream(readableStream, options);
    };
    Readable.toWeb = function(streamReadable, options) {
      return lazyWebStreams().newReadableStreamFromStreamReadable(streamReadable, options);
    };
    Readable.wrap = function(src, options) {
      var _ref, _src$readableObjectMo;
      return new Readable({
        objectMode: (_ref = (_src$readableObjectMo = src.readableObjectMode) !== null && _src$readableObjectMo !== void 0 ? _src$readableObjectMo : src.objectMode) !== null && _ref !== void 0 ? _ref : true,
        ...options,
        destroy(err, callback) {
          destroyImpl.destroyer(src, err);
          callback(err);
        }
      }).wrap(src);
    };
  }
});

// ../../node_modules/archiver/node_modules/readable-stream/lib/internal/streams/writable.js
var require_writable2 = __commonJS({
  "../../node_modules/archiver/node_modules/readable-stream/lib/internal/streams/writable.js"(exports2, module2) {
    "use strict";
    var process3 = require_process();
    var {
      ArrayPrototypeSlice,
      Error: Error2,
      FunctionPrototypeSymbolHasInstance,
      ObjectDefineProperty,
      ObjectDefineProperties,
      ObjectSetPrototypeOf,
      StringPrototypeToLowerCase,
      Symbol: Symbol2,
      SymbolHasInstance
    } = require_primordials2();
    module2.exports = Writable3;
    Writable3.WritableState = WritableState;
    var { EventEmitter: EE } = require("events");
    var Stream2 = require_legacy2().Stream;
    var { Buffer: Buffer2 } = require("buffer");
    var destroyImpl = require_destroy3();
    var { addAbortSignal } = require_add_abort_signal2();
    var { getHighWaterMark, getDefaultHighWaterMark } = require_state2();
    var {
      ERR_INVALID_ARG_TYPE,
      ERR_METHOD_NOT_IMPLEMENTED,
      ERR_MULTIPLE_CALLBACK,
      ERR_STREAM_CANNOT_PIPE,
      ERR_STREAM_DESTROYED,
      ERR_STREAM_ALREADY_FINISHED,
      ERR_STREAM_NULL_VALUES,
      ERR_STREAM_WRITE_AFTER_END,
      ERR_UNKNOWN_ENCODING
    } = require_errors2().codes;
    var { errorOrDestroy } = destroyImpl;
    ObjectSetPrototypeOf(Writable3.prototype, Stream2.prototype);
    ObjectSetPrototypeOf(Writable3, Stream2);
    function nop() {
    }
    __name(nop, "nop");
    var kOnFinished = Symbol2("kOnFinished");
    function WritableState(options, stream3, isDuplex) {
      if (typeof isDuplex !== "boolean") isDuplex = stream3 instanceof require_duplex2();
      this.objectMode = !!(options && options.objectMode);
      if (isDuplex) this.objectMode = this.objectMode || !!(options && options.writableObjectMode);
      this.highWaterMark = options ? getHighWaterMark(this, options, "writableHighWaterMark", isDuplex) : getDefaultHighWaterMark(false);
      this.finalCalled = false;
      this.needDrain = false;
      this.ending = false;
      this.ended = false;
      this.finished = false;
      this.destroyed = false;
      const noDecode = !!(options && options.decodeStrings === false);
      this.decodeStrings = !noDecode;
      this.defaultEncoding = options && options.defaultEncoding || "utf8";
      this.length = 0;
      this.writing = false;
      this.corked = 0;
      this.sync = true;
      this.bufferProcessing = false;
      this.onwrite = onwrite.bind(void 0, stream3);
      this.writecb = null;
      this.writelen = 0;
      this.afterWriteTickInfo = null;
      resetBuffer(this);
      this.pendingcb = 0;
      this.constructed = true;
      this.prefinished = false;
      this.errorEmitted = false;
      this.emitClose = !options || options.emitClose !== false;
      this.autoDestroy = !options || options.autoDestroy !== false;
      this.errored = null;
      this.closed = false;
      this.closeEmitted = false;
      this[kOnFinished] = [];
    }
    __name(WritableState, "WritableState");
    function resetBuffer(state2) {
      state2.buffered = [];
      state2.bufferedIndex = 0;
      state2.allBuffers = true;
      state2.allNoop = true;
    }
    __name(resetBuffer, "resetBuffer");
    WritableState.prototype.getBuffer = /* @__PURE__ */ __name(function getBuffer() {
      return ArrayPrototypeSlice(this.buffered, this.bufferedIndex);
    }, "getBuffer");
    ObjectDefineProperty(WritableState.prototype, "bufferedRequestCount", {
      __proto__: null,
      get() {
        return this.buffered.length - this.bufferedIndex;
      }
    });
    function Writable3(options) {
      const isDuplex = this instanceof require_duplex2();
      if (!isDuplex && !FunctionPrototypeSymbolHasInstance(Writable3, this)) return new Writable3(options);
      this._writableState = new WritableState(options, this, isDuplex);
      if (options) {
        if (typeof options.write === "function") this._write = options.write;
        if (typeof options.writev === "function") this._writev = options.writev;
        if (typeof options.destroy === "function") this._destroy = options.destroy;
        if (typeof options.final === "function") this._final = options.final;
        if (typeof options.construct === "function") this._construct = options.construct;
        if (options.signal) addAbortSignal(options.signal, this);
      }
      Stream2.call(this, options);
      destroyImpl.construct(this, () => {
        const state2 = this._writableState;
        if (!state2.writing) {
          clearBuffer(this, state2);
        }
        finishMaybe(this, state2);
      });
    }
    __name(Writable3, "Writable");
    ObjectDefineProperty(Writable3, SymbolHasInstance, {
      __proto__: null,
      value: /* @__PURE__ */ __name(function(object) {
        if (FunctionPrototypeSymbolHasInstance(this, object)) return true;
        if (this !== Writable3) return false;
        return object && object._writableState instanceof WritableState;
      }, "value")
    });
    Writable3.prototype.pipe = function() {
      errorOrDestroy(this, new ERR_STREAM_CANNOT_PIPE());
    };
    function _write(stream3, chunk, encoding, cb) {
      const state2 = stream3._writableState;
      if (typeof encoding === "function") {
        cb = encoding;
        encoding = state2.defaultEncoding;
      } else {
        if (!encoding) encoding = state2.defaultEncoding;
        else if (encoding !== "buffer" && !Buffer2.isEncoding(encoding)) throw new ERR_UNKNOWN_ENCODING(encoding);
        if (typeof cb !== "function") cb = nop;
      }
      if (chunk === null) {
        throw new ERR_STREAM_NULL_VALUES();
      } else if (!state2.objectMode) {
        if (typeof chunk === "string") {
          if (state2.decodeStrings !== false) {
            chunk = Buffer2.from(chunk, encoding);
            encoding = "buffer";
          }
        } else if (chunk instanceof Buffer2) {
          encoding = "buffer";
        } else if (Stream2._isUint8Array(chunk)) {
          chunk = Stream2._uint8ArrayToBuffer(chunk);
          encoding = "buffer";
        } else {
          throw new ERR_INVALID_ARG_TYPE("chunk", ["string", "Buffer", "Uint8Array"], chunk);
        }
      }
      let err;
      if (state2.ending) {
        err = new ERR_STREAM_WRITE_AFTER_END();
      } else if (state2.destroyed) {
        err = new ERR_STREAM_DESTROYED("write");
      }
      if (err) {
        process3.nextTick(cb, err);
        errorOrDestroy(stream3, err, true);
        return err;
      }
      state2.pendingcb++;
      return writeOrBuffer(stream3, state2, chunk, encoding, cb);
    }
    __name(_write, "_write");
    Writable3.prototype.write = function(chunk, encoding, cb) {
      return _write(this, chunk, encoding, cb) === true;
    };
    Writable3.prototype.cork = function() {
      this._writableState.corked++;
    };
    Writable3.prototype.uncork = function() {
      const state2 = this._writableState;
      if (state2.corked) {
        state2.corked--;
        if (!state2.writing) clearBuffer(this, state2);
      }
    };
    Writable3.prototype.setDefaultEncoding = /* @__PURE__ */ __name(function setDefaultEncoding(encoding) {
      if (typeof encoding === "string") encoding = StringPrototypeToLowerCase(encoding);
      if (!Buffer2.isEncoding(encoding)) throw new ERR_UNKNOWN_ENCODING(encoding);
      this._writableState.defaultEncoding = encoding;
      return this;
    }, "setDefaultEncoding");
    function writeOrBuffer(stream3, state2, chunk, encoding, callback) {
      const len = state2.objectMode ? 1 : chunk.length;
      state2.length += len;
      const ret = state2.length < state2.highWaterMark;
      if (!ret) state2.needDrain = true;
      if (state2.writing || state2.corked || state2.errored || !state2.constructed) {
        state2.buffered.push({
          chunk,
          encoding,
          callback
        });
        if (state2.allBuffers && encoding !== "buffer") {
          state2.allBuffers = false;
        }
        if (state2.allNoop && callback !== nop) {
          state2.allNoop = false;
        }
      } else {
        state2.writelen = len;
        state2.writecb = callback;
        state2.writing = true;
        state2.sync = true;
        stream3._write(chunk, encoding, state2.onwrite);
        state2.sync = false;
      }
      return ret && !state2.errored && !state2.destroyed;
    }
    __name(writeOrBuffer, "writeOrBuffer");
    function doWrite(stream3, state2, writev, len, chunk, encoding, cb) {
      state2.writelen = len;
      state2.writecb = cb;
      state2.writing = true;
      state2.sync = true;
      if (state2.destroyed) state2.onwrite(new ERR_STREAM_DESTROYED("write"));
      else if (writev) stream3._writev(chunk, state2.onwrite);
      else stream3._write(chunk, encoding, state2.onwrite);
      state2.sync = false;
    }
    __name(doWrite, "doWrite");
    function onwriteError(stream3, state2, er, cb) {
      --state2.pendingcb;
      cb(er);
      errorBuffer(state2);
      errorOrDestroy(stream3, er);
    }
    __name(onwriteError, "onwriteError");
    function onwrite(stream3, er) {
      const state2 = stream3._writableState;
      const sync2 = state2.sync;
      const cb = state2.writecb;
      if (typeof cb !== "function") {
        errorOrDestroy(stream3, new ERR_MULTIPLE_CALLBACK());
        return;
      }
      state2.writing = false;
      state2.writecb = null;
      state2.length -= state2.writelen;
      state2.writelen = 0;
      if (er) {
        er.stack;
        if (!state2.errored) {
          state2.errored = er;
        }
        if (stream3._readableState && !stream3._readableState.errored) {
          stream3._readableState.errored = er;
        }
        if (sync2) {
          process3.nextTick(onwriteError, stream3, state2, er, cb);
        } else {
          onwriteError(stream3, state2, er, cb);
        }
      } else {
        if (state2.buffered.length > state2.bufferedIndex) {
          clearBuffer(stream3, state2);
        }
        if (sync2) {
          if (state2.afterWriteTickInfo !== null && state2.afterWriteTickInfo.cb === cb) {
            state2.afterWriteTickInfo.count++;
          } else {
            state2.afterWriteTickInfo = {
              count: 1,
              cb,
              stream: stream3,
              state: state2
            };
            process3.nextTick(afterWriteTick, state2.afterWriteTickInfo);
          }
        } else {
          afterWrite(stream3, state2, 1, cb);
        }
      }
    }
    __name(onwrite, "onwrite");
    function afterWriteTick({ stream: stream3, state: state2, count, cb }) {
      state2.afterWriteTickInfo = null;
      return afterWrite(stream3, state2, count, cb);
    }
    __name(afterWriteTick, "afterWriteTick");
    function afterWrite(stream3, state2, count, cb) {
      const needDrain = !state2.ending && !stream3.destroyed && state2.length === 0 && state2.needDrain;
      if (needDrain) {
        state2.needDrain = false;
        stream3.emit("drain");
      }
      while (count-- > 0) {
        state2.pendingcb--;
        cb();
      }
      if (state2.destroyed) {
        errorBuffer(state2);
      }
      finishMaybe(stream3, state2);
    }
    __name(afterWrite, "afterWrite");
    function errorBuffer(state2) {
      if (state2.writing) {
        return;
      }
      for (let n3 = state2.bufferedIndex; n3 < state2.buffered.length; ++n3) {
        var _state$errored;
        const { chunk, callback } = state2.buffered[n3];
        const len = state2.objectMode ? 1 : chunk.length;
        state2.length -= len;
        callback(
          (_state$errored = state2.errored) !== null && _state$errored !== void 0 ? _state$errored : new ERR_STREAM_DESTROYED("write")
        );
      }
      const onfinishCallbacks = state2[kOnFinished].splice(0);
      for (let i3 = 0; i3 < onfinishCallbacks.length; i3++) {
        var _state$errored2;
        onfinishCallbacks[i3](
          (_state$errored2 = state2.errored) !== null && _state$errored2 !== void 0 ? _state$errored2 : new ERR_STREAM_DESTROYED("end")
        );
      }
      resetBuffer(state2);
    }
    __name(errorBuffer, "errorBuffer");
    function clearBuffer(stream3, state2) {
      if (state2.corked || state2.bufferProcessing || state2.destroyed || !state2.constructed) {
        return;
      }
      const { buffered, bufferedIndex, objectMode } = state2;
      const bufferedLength = buffered.length - bufferedIndex;
      if (!bufferedLength) {
        return;
      }
      let i3 = bufferedIndex;
      state2.bufferProcessing = true;
      if (bufferedLength > 1 && stream3._writev) {
        state2.pendingcb -= bufferedLength - 1;
        const callback = state2.allNoop ? nop : (err) => {
          for (let n3 = i3; n3 < buffered.length; ++n3) {
            buffered[n3].callback(err);
          }
        };
        const chunks2 = state2.allNoop && i3 === 0 ? buffered : ArrayPrototypeSlice(buffered, i3);
        chunks2.allBuffers = state2.allBuffers;
        doWrite(stream3, state2, true, state2.length, chunks2, "", callback);
        resetBuffer(state2);
      } else {
        do {
          const { chunk, encoding, callback } = buffered[i3];
          buffered[i3++] = null;
          const len = objectMode ? 1 : chunk.length;
          doWrite(stream3, state2, false, len, chunk, encoding, callback);
        } while (i3 < buffered.length && !state2.writing);
        if (i3 === buffered.length) {
          resetBuffer(state2);
        } else if (i3 > 256) {
          buffered.splice(0, i3);
          state2.bufferedIndex = 0;
        } else {
          state2.bufferedIndex = i3;
        }
      }
      state2.bufferProcessing = false;
    }
    __name(clearBuffer, "clearBuffer");
    Writable3.prototype._write = function(chunk, encoding, cb) {
      if (this._writev) {
        this._writev(
          [
            {
              chunk,
              encoding
            }
          ],
          cb
        );
      } else {
        throw new ERR_METHOD_NOT_IMPLEMENTED("_write()");
      }
    };
    Writable3.prototype._writev = null;
    Writable3.prototype.end = function(chunk, encoding, cb) {
      const state2 = this._writableState;
      if (typeof chunk === "function") {
        cb = chunk;
        chunk = null;
        encoding = null;
      } else if (typeof encoding === "function") {
        cb = encoding;
        encoding = null;
      }
      let err;
      if (chunk !== null && chunk !== void 0) {
        const ret = _write(this, chunk, encoding);
        if (ret instanceof Error2) {
          err = ret;
        }
      }
      if (state2.corked) {
        state2.corked = 1;
        this.uncork();
      }
      if (err) {
      } else if (!state2.errored && !state2.ending) {
        state2.ending = true;
        finishMaybe(this, state2, true);
        state2.ended = true;
      } else if (state2.finished) {
        err = new ERR_STREAM_ALREADY_FINISHED("end");
      } else if (state2.destroyed) {
        err = new ERR_STREAM_DESTROYED("end");
      }
      if (typeof cb === "function") {
        if (err || state2.finished) {
          process3.nextTick(cb, err);
        } else {
          state2[kOnFinished].push(cb);
        }
      }
      return this;
    };
    function needFinish(state2) {
      return state2.ending && !state2.destroyed && state2.constructed && state2.length === 0 && !state2.errored && state2.buffered.length === 0 && !state2.finished && !state2.writing && !state2.errorEmitted && !state2.closeEmitted;
    }
    __name(needFinish, "needFinish");
    function callFinal(stream3, state2) {
      let called = false;
      function onFinish(err) {
        if (called) {
          errorOrDestroy(stream3, err !== null && err !== void 0 ? err : ERR_MULTIPLE_CALLBACK());
          return;
        }
        called = true;
        state2.pendingcb--;
        if (err) {
          const onfinishCallbacks = state2[kOnFinished].splice(0);
          for (let i3 = 0; i3 < onfinishCallbacks.length; i3++) {
            onfinishCallbacks[i3](err);
          }
          errorOrDestroy(stream3, err, state2.sync);
        } else if (needFinish(state2)) {
          state2.prefinished = true;
          stream3.emit("prefinish");
          state2.pendingcb++;
          process3.nextTick(finish, stream3, state2);
        }
      }
      __name(onFinish, "onFinish");
      state2.sync = true;
      state2.pendingcb++;
      try {
        stream3._final(onFinish);
      } catch (err) {
        onFinish(err);
      }
      state2.sync = false;
    }
    __name(callFinal, "callFinal");
    function prefinish(stream3, state2) {
      if (!state2.prefinished && !state2.finalCalled) {
        if (typeof stream3._final === "function" && !state2.destroyed) {
          state2.finalCalled = true;
          callFinal(stream3, state2);
        } else {
          state2.prefinished = true;
          stream3.emit("prefinish");
        }
      }
    }
    __name(prefinish, "prefinish");
    function finishMaybe(stream3, state2, sync2) {
      if (needFinish(state2)) {
        prefinish(stream3, state2);
        if (state2.pendingcb === 0) {
          if (sync2) {
            state2.pendingcb++;
            process3.nextTick(
              (stream4, state3) => {
                if (needFinish(state3)) {
                  finish(stream4, state3);
                } else {
                  state3.pendingcb--;
                }
              },
              stream3,
              state2
            );
          } else if (needFinish(state2)) {
            state2.pendingcb++;
            finish(stream3, state2);
          }
        }
      }
    }
    __name(finishMaybe, "finishMaybe");
    function finish(stream3, state2) {
      state2.pendingcb--;
      state2.finished = true;
      const onfinishCallbacks = state2[kOnFinished].splice(0);
      for (let i3 = 0; i3 < onfinishCallbacks.length; i3++) {
        onfinishCallbacks[i3]();
      }
      stream3.emit("finish");
      if (state2.autoDestroy) {
        const rState = stream3._readableState;
        const autoDestroy = !rState || rState.autoDestroy && // We don't expect the readable to ever 'end'
        // if readable is explicitly set to false.
        (rState.endEmitted || rState.readable === false);
        if (autoDestroy) {
          stream3.destroy();
        }
      }
    }
    __name(finish, "finish");
    ObjectDefineProperties(Writable3.prototype, {
      closed: {
        __proto__: null,
        get() {
          return this._writableState ? this._writableState.closed : false;
        }
      },
      destroyed: {
        __proto__: null,
        get() {
          return this._writableState ? this._writableState.destroyed : false;
        },
        set(value) {
          if (this._writableState) {
            this._writableState.destroyed = value;
          }
        }
      },
      writable: {
        __proto__: null,
        get() {
          const w3 = this._writableState;
          return !!w3 && w3.writable !== false && !w3.destroyed && !w3.errored && !w3.ending && !w3.ended;
        },
        set(val) {
          if (this._writableState) {
            this._writableState.writable = !!val;
          }
        }
      },
      writableFinished: {
        __proto__: null,
        get() {
          return this._writableState ? this._writableState.finished : false;
        }
      },
      writableObjectMode: {
        __proto__: null,
        get() {
          return this._writableState ? this._writableState.objectMode : false;
        }
      },
      writableBuffer: {
        __proto__: null,
        get() {
          return this._writableState && this._writableState.getBuffer();
        }
      },
      writableEnded: {
        __proto__: null,
        get() {
          return this._writableState ? this._writableState.ending : false;
        }
      },
      writableNeedDrain: {
        __proto__: null,
        get() {
          const wState = this._writableState;
          if (!wState) return false;
          return !wState.destroyed && !wState.ending && wState.needDrain;
        }
      },
      writableHighWaterMark: {
        __proto__: null,
        get() {
          return this._writableState && this._writableState.highWaterMark;
        }
      },
      writableCorked: {
        __proto__: null,
        get() {
          return this._writableState ? this._writableState.corked : 0;
        }
      },
      writableLength: {
        __proto__: null,
        get() {
          return this._writableState && this._writableState.length;
        }
      },
      errored: {
        __proto__: null,
        enumerable: false,
        get() {
          return this._writableState ? this._writableState.errored : null;
        }
      },
      writableAborted: {
        __proto__: null,
        enumerable: false,
        get: /* @__PURE__ */ __name(function() {
          return !!(this._writableState.writable !== false && (this._writableState.destroyed || this._writableState.errored) && !this._writableState.finished);
        }, "get")
      }
    });
    var destroy = destroyImpl.destroy;
    Writable3.prototype.destroy = function(err, cb) {
      const state2 = this._writableState;
      if (!state2.destroyed && (state2.bufferedIndex < state2.buffered.length || state2[kOnFinished].length)) {
        process3.nextTick(errorBuffer, state2);
      }
      destroy.call(this, err, cb);
      return this;
    };
    Writable3.prototype._undestroy = destroyImpl.undestroy;
    Writable3.prototype._destroy = function(err, cb) {
      cb(err);
    };
    Writable3.prototype[EE.captureRejectionSymbol] = function(err) {
      this.destroy(err);
    };
    var webStreamsAdapters;
    function lazyWebStreams() {
      if (webStreamsAdapters === void 0) webStreamsAdapters = {};
      return webStreamsAdapters;
    }
    __name(lazyWebStreams, "lazyWebStreams");
    Writable3.fromWeb = function(writableStream, options) {
      return lazyWebStreams().newStreamWritableFromWritableStream(writableStream, options);
    };
    Writable3.toWeb = function(streamWritable) {
      return lazyWebStreams().newWritableStreamFromStreamWritable(streamWritable);
    };
  }
});

// ../../node_modules/archiver/node_modules/readable-stream/lib/internal/streams/duplexify.js
var require_duplexify2 = __commonJS({
  "../../node_modules/archiver/node_modules/readable-stream/lib/internal/streams/duplexify.js"(exports2, module2) {
    var process3 = require_process();
    var bufferModule = require("buffer");
    var {
      isReadable: isReadable2,
      isWritable: isWritable2,
      isIterable,
      isNodeStream,
      isReadableNodeStream,
      isWritableNodeStream,
      isDuplexNodeStream,
      isReadableStream: isReadableStream2,
      isWritableStream
    } = require_utils3();
    var eos = require_end_of_stream2();
    var {
      AbortError,
      codes: { ERR_INVALID_ARG_TYPE, ERR_INVALID_RETURN_VALUE }
    } = require_errors2();
    var { destroyer } = require_destroy3();
    var Duplex = require_duplex2();
    var Readable = require_readable3();
    var Writable3 = require_writable2();
    var { createDeferredPromise } = require_util3();
    var from = require_from2();
    var Blob2 = globalThis.Blob || bufferModule.Blob;
    var isBlob2 = typeof Blob2 !== "undefined" ? /* @__PURE__ */ __name(function isBlob3(b3) {
      return b3 instanceof Blob2;
    }, "isBlob") : /* @__PURE__ */ __name(function isBlob3(b3) {
      return false;
    }, "isBlob");
    var AbortController2 = globalThis.AbortController || require_abort_controller().AbortController;
    var { FunctionPrototypeCall } = require_primordials2();
    var Duplexify = class extends Duplex {
      static {
        __name(this, "Duplexify");
      }
      constructor(options) {
        super(options);
        if ((options === null || options === void 0 ? void 0 : options.readable) === false) {
          this._readableState.readable = false;
          this._readableState.ended = true;
          this._readableState.endEmitted = true;
        }
        if ((options === null || options === void 0 ? void 0 : options.writable) === false) {
          this._writableState.writable = false;
          this._writableState.ending = true;
          this._writableState.ended = true;
          this._writableState.finished = true;
        }
      }
    };
    module2.exports = /* @__PURE__ */ __name(function duplexify(body, name) {
      if (isDuplexNodeStream(body)) {
        return body;
      }
      if (isReadableNodeStream(body)) {
        return _duplexify({
          readable: body
        });
      }
      if (isWritableNodeStream(body)) {
        return _duplexify({
          writable: body
        });
      }
      if (isNodeStream(body)) {
        return _duplexify({
          writable: false,
          readable: false
        });
      }
      if (isReadableStream2(body)) {
        return _duplexify({
          readable: Readable.fromWeb(body)
        });
      }
      if (isWritableStream(body)) {
        return _duplexify({
          writable: Writable3.fromWeb(body)
        });
      }
      if (typeof body === "function") {
        const { value, write, final, destroy } = fromAsyncGen(body);
        if (isIterable(value)) {
          return from(Duplexify, value, {
            // TODO (ronag): highWaterMark?
            objectMode: true,
            write,
            final,
            destroy
          });
        }
        const then2 = value === null || value === void 0 ? void 0 : value.then;
        if (typeof then2 === "function") {
          let d3;
          const promise = FunctionPrototypeCall(
            then2,
            value,
            (val) => {
              if (val != null) {
                throw new ERR_INVALID_RETURN_VALUE("nully", "body", val);
              }
            },
            (err) => {
              destroyer(d3, err);
            }
          );
          return d3 = new Duplexify({
            // TODO (ronag): highWaterMark?
            objectMode: true,
            readable: false,
            write,
            final(cb) {
              final(async () => {
                try {
                  await promise;
                  process3.nextTick(cb, null);
                } catch (err) {
                  process3.nextTick(cb, err);
                }
              });
            },
            destroy
          });
        }
        throw new ERR_INVALID_RETURN_VALUE("Iterable, AsyncIterable or AsyncFunction", name, value);
      }
      if (isBlob2(body)) {
        return duplexify(body.arrayBuffer());
      }
      if (isIterable(body)) {
        return from(Duplexify, body, {
          // TODO (ronag): highWaterMark?
          objectMode: true,
          writable: false
        });
      }
      if (isReadableStream2(body === null || body === void 0 ? void 0 : body.readable) && isWritableStream(body === null || body === void 0 ? void 0 : body.writable)) {
        return Duplexify.fromWeb(body);
      }
      if (typeof (body === null || body === void 0 ? void 0 : body.writable) === "object" || typeof (body === null || body === void 0 ? void 0 : body.readable) === "object") {
        const readable = body !== null && body !== void 0 && body.readable ? isReadableNodeStream(body === null || body === void 0 ? void 0 : body.readable) ? body === null || body === void 0 ? void 0 : body.readable : duplexify(body.readable) : void 0;
        const writable = body !== null && body !== void 0 && body.writable ? isWritableNodeStream(body === null || body === void 0 ? void 0 : body.writable) ? body === null || body === void 0 ? void 0 : body.writable : duplexify(body.writable) : void 0;
        return _duplexify({
          readable,
          writable
        });
      }
      const then = body === null || body === void 0 ? void 0 : body.then;
      if (typeof then === "function") {
        let d3;
        FunctionPrototypeCall(
          then,
          body,
          (val) => {
            if (val != null) {
              d3.push(val);
            }
            d3.push(null);
          },
          (err) => {
            destroyer(d3, err);
          }
        );
        return d3 = new Duplexify({
          objectMode: true,
          writable: false,
          read() {
          }
        });
      }
      throw new ERR_INVALID_ARG_TYPE(
        name,
        [
          "Blob",
          "ReadableStream",
          "WritableStream",
          "Stream",
          "Iterable",
          "AsyncIterable",
          "Function",
          "{ readable, writable } pair",
          "Promise"
        ],
        body
      );
    }, "duplexify");
    function fromAsyncGen(fn) {
      let { promise, resolve: resolve13 } = createDeferredPromise();
      const ac = new AbortController2();
      const signal = ac.signal;
      const value = fn(
        (async function* () {
          while (true) {
            const _promise = promise;
            promise = null;
            const { chunk, done, cb } = await _promise;
            process3.nextTick(cb);
            if (done) return;
            if (signal.aborted)
              throw new AbortError(void 0, {
                cause: signal.reason
              });
            ({ promise, resolve: resolve13 } = createDeferredPromise());
            yield chunk;
          }
        })(),
        {
          signal
        }
      );
      return {
        value,
        write(chunk, encoding, cb) {
          const _resolve = resolve13;
          resolve13 = null;
          _resolve({
            chunk,
            done: false,
            cb
          });
        },
        final(cb) {
          const _resolve = resolve13;
          resolve13 = null;
          _resolve({
            done: true,
            cb
          });
        },
        destroy(err, cb) {
          ac.abort();
          cb(err);
        }
      };
    }
    __name(fromAsyncGen, "fromAsyncGen");
    function _duplexify(pair) {
      const r3 = pair.readable && typeof pair.readable.read !== "function" ? Readable.wrap(pair.readable) : pair.readable;
      const w3 = pair.writable;
      let readable = !!isReadable2(r3);
      let writable = !!isWritable2(w3);
      let ondrain;
      let onfinish;
      let onreadable;
      let onclose;
      let d3;
      function onfinished(err) {
        const cb = onclose;
        onclose = null;
        if (cb) {
          cb(err);
        } else if (err) {
          d3.destroy(err);
        }
      }
      __name(onfinished, "onfinished");
      d3 = new Duplexify({
        // TODO (ronag): highWaterMark?
        readableObjectMode: !!(r3 !== null && r3 !== void 0 && r3.readableObjectMode),
        writableObjectMode: !!(w3 !== null && w3 !== void 0 && w3.writableObjectMode),
        readable,
        writable
      });
      if (writable) {
        eos(w3, (err) => {
          writable = false;
          if (err) {
            destroyer(r3, err);
          }
          onfinished(err);
        });
        d3._write = function(chunk, encoding, callback) {
          if (w3.write(chunk, encoding)) {
            callback();
          } else {
            ondrain = callback;
          }
        };
        d3._final = function(callback) {
          w3.end();
          onfinish = callback;
        };
        w3.on("drain", function() {
          if (ondrain) {
            const cb = ondrain;
            ondrain = null;
            cb();
          }
        });
        w3.on("finish", function() {
          if (onfinish) {
            const cb = onfinish;
            onfinish = null;
            cb();
          }
        });
      }
      if (readable) {
        eos(r3, (err) => {
          readable = false;
          if (err) {
            destroyer(r3, err);
          }
          onfinished(err);
        });
        r3.on("readable", function() {
          if (onreadable) {
            const cb = onreadable;
            onreadable = null;
            cb();
          }
        });
        r3.on("end", function() {
          d3.push(null);
        });
        d3._read = function() {
          while (true) {
            const buf = r3.read();
            if (buf === null) {
              onreadable = d3._read;
              return;
            }
            if (!d3.push(buf)) {
              return;
            }
          }
        };
      }
      d3._destroy = function(err, callback) {
        if (!err && onclose !== null) {
          err = new AbortError();
        }
        onreadable = null;
        ondrain = null;
        onfinish = null;
        if (onclose === null) {
          callback(err);
        } else {
          onclose = callback;
          destroyer(w3, err);
          destroyer(r3, err);
        }
      };
      return d3;
    }
    __name(_duplexify, "_duplexify");
  }
});

// ../../node_modules/archiver/node_modules/readable-stream/lib/internal/streams/duplex.js
var require_duplex2 = __commonJS({
  "../../node_modules/archiver/node_modules/readable-stream/lib/internal/streams/duplex.js"(exports2, module2) {
    "use strict";
    var {
      ObjectDefineProperties,
      ObjectGetOwnPropertyDescriptor,
      ObjectKeys,
      ObjectSetPrototypeOf
    } = require_primordials2();
    module2.exports = Duplex;
    var Readable = require_readable3();
    var Writable3 = require_writable2();
    ObjectSetPrototypeOf(Duplex.prototype, Readable.prototype);
    ObjectSetPrototypeOf(Duplex, Readable);
    {
      const keys = ObjectKeys(Writable3.prototype);
      for (let i3 = 0; i3 < keys.length; i3++) {
        const method = keys[i3];
        if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable3.prototype[method];
      }
    }
    function Duplex(options) {
      if (!(this instanceof Duplex)) return new Duplex(options);
      Readable.call(this, options);
      Writable3.call(this, options);
      if (options) {
        this.allowHalfOpen = options.allowHalfOpen !== false;
        if (options.readable === false) {
          this._readableState.readable = false;
          this._readableState.ended = true;
          this._readableState.endEmitted = true;
        }
        if (options.writable === false) {
          this._writableState.writable = false;
          this._writableState.ending = true;
          this._writableState.ended = true;
          this._writableState.finished = true;
        }
      } else {
        this.allowHalfOpen = true;
      }
    }
    __name(Duplex, "Duplex");
    ObjectDefineProperties(Duplex.prototype, {
      writable: {
        __proto__: null,
        ...ObjectGetOwnPropertyDescriptor(Writable3.prototype, "writable")
      },
      writableHighWaterMark: {
        __proto__: null,
        ...ObjectGetOwnPropertyDescriptor(Writable3.prototype, "writableHighWaterMark")
      },
      writableObjectMode: {
        __proto__: null,
        ...ObjectGetOwnPropertyDescriptor(Writable3.prototype, "writableObjectMode")
      },
      writableBuffer: {
        __proto__: null,
        ...ObjectGetOwnPropertyDescriptor(Writable3.prototype, "writableBuffer")
      },
      writableLength: {
        __proto__: null,
        ...ObjectGetOwnPropertyDescriptor(Writable3.prototype, "writableLength")
      },
      writableFinished: {
        __proto__: null,
        ...ObjectGetOwnPropertyDescriptor(Writable3.prototype, "writableFinished")
      },
      writableCorked: {
        __proto__: null,
        ...ObjectGetOwnPropertyDescriptor(Writable3.prototype, "writableCorked")
      },
      writableEnded: {
        __proto__: null,
        ...ObjectGetOwnPropertyDescriptor(Writable3.prototype, "writableEnded")
      },
      writableNeedDrain: {
        __proto__: null,
        ...ObjectGetOwnPropertyDescriptor(Writable3.prototype, "writableNeedDrain")
      },
      destroyed: {
        __proto__: null,
        get() {
          if (this._readableState === void 0 || this._writableState === void 0) {
            return false;
          }
          return this._readableState.destroyed && this._writableState.destroyed;
        },
        set(value) {
          if (this._readableState && this._writableState) {
            this._readableState.destroyed = value;
            this._writableState.destroyed = value;
          }
        }
      }
    });
    var webStreamsAdapters;
    function lazyWebStreams() {
      if (webStreamsAdapters === void 0) webStreamsAdapters = {};
      return webStreamsAdapters;
    }
    __name(lazyWebStreams, "lazyWebStreams");
    Duplex.fromWeb = function(pair, options) {
      return lazyWebStreams().newStreamDuplexFromReadableWritablePair(pair, options);
    };
    Duplex.toWeb = function(duplex) {
      return lazyWebStreams().newReadableWritablePairFromDuplex(duplex);
    };
    var duplexify;
    Duplex.from = function(body) {
      if (!duplexify) {
        duplexify = require_duplexify2();
      }
      return duplexify(body, "body");
    };
  }
});

// ../../node_modules/archiver/node_modules/readable-stream/lib/internal/streams/transform.js
var require_transform2 = __commonJS({
  "../../node_modules/archiver/node_modules/readable-stream/lib/internal/streams/transform.js"(exports2, module2) {
    "use strict";
    var { ObjectSetPrototypeOf, Symbol: Symbol2 } = require_primordials2();
    module2.exports = Transform;
    var { ERR_METHOD_NOT_IMPLEMENTED } = require_errors2().codes;
    var Duplex = require_duplex2();
    var { getHighWaterMark } = require_state2();
    ObjectSetPrototypeOf(Transform.prototype, Duplex.prototype);
    ObjectSetPrototypeOf(Transform, Duplex);
    var kCallback = Symbol2("kCallback");
    function Transform(options) {
      if (!(this instanceof Transform)) return new Transform(options);
      const readableHighWaterMark = options ? getHighWaterMark(this, options, "readableHighWaterMark", true) : null;
      if (readableHighWaterMark === 0) {
        options = {
          ...options,
          highWaterMark: null,
          readableHighWaterMark,
          // TODO (ronag): 0 is not optimal since we have
          // a "bug" where we check needDrain before calling _write and not after.
          // Refs: https://github.com/nodejs/node/pull/32887
          // Refs: https://github.com/nodejs/node/pull/35941
          writableHighWaterMark: options.writableHighWaterMark || 0
        };
      }
      Duplex.call(this, options);
      this._readableState.sync = false;
      this[kCallback] = null;
      if (options) {
        if (typeof options.transform === "function") this._transform = options.transform;
        if (typeof options.flush === "function") this._flush = options.flush;
      }
      this.on("prefinish", prefinish);
    }
    __name(Transform, "Transform");
    function final(cb) {
      if (typeof this._flush === "function" && !this.destroyed) {
        this._flush((er, data3) => {
          if (er) {
            if (cb) {
              cb(er);
            } else {
              this.destroy(er);
            }
            return;
          }
          if (data3 != null) {
            this.push(data3);
          }
          this.push(null);
          if (cb) {
            cb();
          }
        });
      } else {
        this.push(null);
        if (cb) {
          cb();
        }
      }
    }
    __name(final, "final");
    function prefinish() {
      if (this._final !== final) {
        final.call(this);
      }
    }
    __name(prefinish, "prefinish");
    Transform.prototype._final = final;
    Transform.prototype._transform = function(chunk, encoding, callback) {
      throw new ERR_METHOD_NOT_IMPLEMENTED("_transform()");
    };
    Transform.prototype._write = function(chunk, encoding, callback) {
      const rState = this._readableState;
      const wState = this._writableState;
      const length = rState.length;
      this._transform(chunk, encoding, (err, val) => {
        if (err) {
          callback(err);
          return;
        }
        if (val != null) {
          this.push(val);
        }
        if (wState.ended || // Backwards compat.
        length === rState.length || // Backwards compat.
        rState.length < rState.highWaterMark) {
          callback();
        } else {
          this[kCallback] = callback;
        }
      });
    };
    Transform.prototype._read = function() {
      if (this[kCallback]) {
        const callback = this[kCallback];
        this[kCallback] = null;
        callback();
      }
    };
  }
});

// ../../node_modules/archiver/node_modules/readable-stream/lib/internal/streams/passthrough.js
var require_passthrough3 = __commonJS({
  "../../node_modules/archiver/node_modules/readable-stream/lib/internal/streams/passthrough.js"(exports2, module2) {
    "use strict";
    var { ObjectSetPrototypeOf } = require_primordials2();
    module2.exports = PassThrough;
    var Transform = require_transform2();
    ObjectSetPrototypeOf(PassThrough.prototype, Transform.prototype);
    ObjectSetPrototypeOf(PassThrough, Transform);
    function PassThrough(options) {
      if (!(this instanceof PassThrough)) return new PassThrough(options);
      Transform.call(this, options);
    }
    __name(PassThrough, "PassThrough");
    PassThrough.prototype._transform = function(chunk, encoding, cb) {
      cb(null, chunk);
    };
  }
});

// ../../node_modules/archiver/node_modules/readable-stream/lib/internal/streams/pipeline.js
var require_pipeline2 = __commonJS({
  "../../node_modules/archiver/node_modules/readable-stream/lib/internal/streams/pipeline.js"(exports2, module2) {
    var process3 = require_process();
    var { ArrayIsArray, Promise: Promise2, SymbolAsyncIterator, SymbolDispose } = require_primordials2();
    var eos = require_end_of_stream2();
    var { once } = require_util3();
    var destroyImpl = require_destroy3();
    var Duplex = require_duplex2();
    var {
      aggregateTwoErrors,
      codes: {
        ERR_INVALID_ARG_TYPE,
        ERR_INVALID_RETURN_VALUE,
        ERR_MISSING_ARGS,
        ERR_STREAM_DESTROYED,
        ERR_STREAM_PREMATURE_CLOSE
      },
      AbortError
    } = require_errors2();
    var { validateFunction, validateAbortSignal } = require_validators2();
    var {
      isIterable,
      isReadable: isReadable2,
      isReadableNodeStream,
      isNodeStream,
      isTransformStream,
      isWebStream,
      isReadableStream: isReadableStream2,
      isReadableFinished
    } = require_utils3();
    var AbortController2 = globalThis.AbortController || require_abort_controller().AbortController;
    var PassThrough;
    var Readable;
    var addAbortListener;
    function destroyer(stream3, reading, writing) {
      let finished = false;
      stream3.on("close", () => {
        finished = true;
      });
      const cleanup = eos(
        stream3,
        {
          readable: reading,
          writable: writing
        },
        (err) => {
          finished = !err;
        }
      );
      return {
        destroy: /* @__PURE__ */ __name((err) => {
          if (finished) return;
          finished = true;
          destroyImpl.destroyer(stream3, err || new ERR_STREAM_DESTROYED("pipe"));
        }, "destroy"),
        cleanup
      };
    }
    __name(destroyer, "destroyer");
    function popCallback(streams) {
      validateFunction(streams[streams.length - 1], "streams[stream.length - 1]");
      return streams.pop();
    }
    __name(popCallback, "popCallback");
    function makeAsyncIterable(val) {
      if (isIterable(val)) {
        return val;
      } else if (isReadableNodeStream(val)) {
        return fromReadable(val);
      }
      throw new ERR_INVALID_ARG_TYPE("val", ["Readable", "Iterable", "AsyncIterable"], val);
    }
    __name(makeAsyncIterable, "makeAsyncIterable");
    async function* fromReadable(val) {
      if (!Readable) {
        Readable = require_readable3();
      }
      yield* Readable.prototype[SymbolAsyncIterator].call(val);
    }
    __name(fromReadable, "fromReadable");
    async function pumpToNode(iterable, writable, finish, { end }) {
      let error5;
      let onresolve = null;
      const resume = /* @__PURE__ */ __name((err) => {
        if (err) {
          error5 = err;
        }
        if (onresolve) {
          const callback = onresolve;
          onresolve = null;
          callback();
        }
      }, "resume");
      const wait = /* @__PURE__ */ __name(() => new Promise2((resolve13, reject) => {
        if (error5) {
          reject(error5);
        } else {
          onresolve = /* @__PURE__ */ __name(() => {
            if (error5) {
              reject(error5);
            } else {
              resolve13();
            }
          }, "onresolve");
        }
      }), "wait");
      writable.on("drain", resume);
      const cleanup = eos(
        writable,
        {
          readable: false
        },
        resume
      );
      try {
        if (writable.writableNeedDrain) {
          await wait();
        }
        for await (const chunk of iterable) {
          if (!writable.write(chunk)) {
            await wait();
          }
        }
        if (end) {
          writable.end();
          await wait();
        }
        finish();
      } catch (err) {
        finish(error5 !== err ? aggregateTwoErrors(error5, err) : err);
      } finally {
        cleanup();
        writable.off("drain", resume);
      }
    }
    __name(pumpToNode, "pumpToNode");
    async function pumpToWeb(readable, writable, finish, { end }) {
      if (isTransformStream(writable)) {
        writable = writable.writable;
      }
      const writer = writable.getWriter();
      try {
        for await (const chunk of readable) {
          await writer.ready;
          writer.write(chunk).catch(() => {
          });
        }
        await writer.ready;
        if (end) {
          await writer.close();
        }
        finish();
      } catch (err) {
        try {
          await writer.abort(err);
          finish(err);
        } catch (err2) {
          finish(err2);
        }
      }
    }
    __name(pumpToWeb, "pumpToWeb");
    function pipeline(...streams) {
      return pipelineImpl(streams, once(popCallback(streams)));
    }
    __name(pipeline, "pipeline");
    function pipelineImpl(streams, callback, opts) {
      if (streams.length === 1 && ArrayIsArray(streams[0])) {
        streams = streams[0];
      }
      if (streams.length < 2) {
        throw new ERR_MISSING_ARGS("streams");
      }
      const ac = new AbortController2();
      const signal = ac.signal;
      const outerSignal = opts === null || opts === void 0 ? void 0 : opts.signal;
      const lastStreamCleanup = [];
      validateAbortSignal(outerSignal, "options.signal");
      function abort() {
        finishImpl(new AbortError());
      }
      __name(abort, "abort");
      addAbortListener = addAbortListener || require_util3().addAbortListener;
      let disposable;
      if (outerSignal) {
        disposable = addAbortListener(outerSignal, abort);
      }
      let error5;
      let value;
      const destroys = [];
      let finishCount = 0;
      function finish(err) {
        finishImpl(err, --finishCount === 0);
      }
      __name(finish, "finish");
      function finishImpl(err, final) {
        var _disposable;
        if (err && (!error5 || error5.code === "ERR_STREAM_PREMATURE_CLOSE")) {
          error5 = err;
        }
        if (!error5 && !final) {
          return;
        }
        while (destroys.length) {
          destroys.shift()(error5);
        }
        ;
        (_disposable = disposable) === null || _disposable === void 0 ? void 0 : _disposable[SymbolDispose]();
        ac.abort();
        if (final) {
          if (!error5) {
            lastStreamCleanup.forEach((fn) => fn());
          }
          process3.nextTick(callback, error5, value);
        }
      }
      __name(finishImpl, "finishImpl");
      let ret;
      for (let i3 = 0; i3 < streams.length; i3++) {
        const stream3 = streams[i3];
        const reading = i3 < streams.length - 1;
        const writing = i3 > 0;
        const end = reading || (opts === null || opts === void 0 ? void 0 : opts.end) !== false;
        const isLastStream = i3 === streams.length - 1;
        if (isNodeStream(stream3)) {
          let onError2 = function(err) {
            if (err && err.name !== "AbortError" && err.code !== "ERR_STREAM_PREMATURE_CLOSE") {
              finish(err);
            }
          };
          var onError = onError2;
          __name(onError2, "onError");
          if (end) {
            const { destroy, cleanup } = destroyer(stream3, reading, writing);
            destroys.push(destroy);
            if (isReadable2(stream3) && isLastStream) {
              lastStreamCleanup.push(cleanup);
            }
          }
          stream3.on("error", onError2);
          if (isReadable2(stream3) && isLastStream) {
            lastStreamCleanup.push(() => {
              stream3.removeListener("error", onError2);
            });
          }
        }
        if (i3 === 0) {
          if (typeof stream3 === "function") {
            ret = stream3({
              signal
            });
            if (!isIterable(ret)) {
              throw new ERR_INVALID_RETURN_VALUE("Iterable, AsyncIterable or Stream", "source", ret);
            }
          } else if (isIterable(stream3) || isReadableNodeStream(stream3) || isTransformStream(stream3)) {
            ret = stream3;
          } else {
            ret = Duplex.from(stream3);
          }
        } else if (typeof stream3 === "function") {
          if (isTransformStream(ret)) {
            var _ret;
            ret = makeAsyncIterable((_ret = ret) === null || _ret === void 0 ? void 0 : _ret.readable);
          } else {
            ret = makeAsyncIterable(ret);
          }
          ret = stream3(ret, {
            signal
          });
          if (reading) {
            if (!isIterable(ret, true)) {
              throw new ERR_INVALID_RETURN_VALUE("AsyncIterable", `transform[${i3 - 1}]`, ret);
            }
          } else {
            var _ret2;
            if (!PassThrough) {
              PassThrough = require_passthrough3();
            }
            const pt = new PassThrough({
              objectMode: true
            });
            const then = (_ret2 = ret) === null || _ret2 === void 0 ? void 0 : _ret2.then;
            if (typeof then === "function") {
              finishCount++;
              then.call(
                ret,
                (val) => {
                  value = val;
                  if (val != null) {
                    pt.write(val);
                  }
                  if (end) {
                    pt.end();
                  }
                  process3.nextTick(finish);
                },
                (err) => {
                  pt.destroy(err);
                  process3.nextTick(finish, err);
                }
              );
            } else if (isIterable(ret, true)) {
              finishCount++;
              pumpToNode(ret, pt, finish, {
                end
              });
            } else if (isReadableStream2(ret) || isTransformStream(ret)) {
              const toRead = ret.readable || ret;
              finishCount++;
              pumpToNode(toRead, pt, finish, {
                end
              });
            } else {
              throw new ERR_INVALID_RETURN_VALUE("AsyncIterable or Promise", "destination", ret);
            }
            ret = pt;
            const { destroy, cleanup } = destroyer(ret, false, true);
            destroys.push(destroy);
            if (isLastStream) {
              lastStreamCleanup.push(cleanup);
            }
          }
        } else if (isNodeStream(stream3)) {
          if (isReadableNodeStream(ret)) {
            finishCount += 2;
            const cleanup = pipe(ret, stream3, finish, {
              end
            });
            if (isReadable2(stream3) && isLastStream) {
              lastStreamCleanup.push(cleanup);
            }
          } else if (isTransformStream(ret) || isReadableStream2(ret)) {
            const toRead = ret.readable || ret;
            finishCount++;
            pumpToNode(toRead, stream3, finish, {
              end
            });
          } else if (isIterable(ret)) {
            finishCount++;
            pumpToNode(ret, stream3, finish, {
              end
            });
          } else {
            throw new ERR_INVALID_ARG_TYPE(
              "val",
              ["Readable", "Iterable", "AsyncIterable", "ReadableStream", "TransformStream"],
              ret
            );
          }
          ret = stream3;
        } else if (isWebStream(stream3)) {
          if (isReadableNodeStream(ret)) {
            finishCount++;
            pumpToWeb(makeAsyncIterable(ret), stream3, finish, {
              end
            });
          } else if (isReadableStream2(ret) || isIterable(ret)) {
            finishCount++;
            pumpToWeb(ret, stream3, finish, {
              end
            });
          } else if (isTransformStream(ret)) {
            finishCount++;
            pumpToWeb(ret.readable, stream3, finish, {
              end
            });
          } else {
            throw new ERR_INVALID_ARG_TYPE(
              "val",
              ["Readable", "Iterable", "AsyncIterable", "ReadableStream", "TransformStream"],
              ret
            );
          }
          ret = stream3;
        } else {
          ret = Duplex.from(stream3);
        }
      }
      if (signal !== null && signal !== void 0 && signal.aborted || outerSignal !== null && outerSignal !== void 0 && outerSignal.aborted) {
        process3.nextTick(abort);
      }
      return ret;
    }
    __name(pipelineImpl, "pipelineImpl");
    function pipe(src, dst, finish, { end }) {
      let ended = false;
      dst.on("close", () => {
        if (!ended) {
          finish(new ERR_STREAM_PREMATURE_CLOSE());
        }
      });
      src.pipe(dst, {
        end: false
      });
      if (end) {
        let endFn2 = function() {
          ended = true;
          dst.end();
        };
        var endFn = endFn2;
        __name(endFn2, "endFn");
        if (isReadableFinished(src)) {
          process3.nextTick(endFn2);
        } else {
          src.once("end", endFn2);
        }
      } else {
        finish();
      }
      eos(
        src,
        {
          readable: true,
          writable: false
        },
        (err) => {
          const rState = src._readableState;
          if (err && err.code === "ERR_STREAM_PREMATURE_CLOSE" && rState && rState.ended && !rState.errored && !rState.errorEmitted) {
            src.once("end", finish).once("error", finish);
          } else {
            finish(err);
          }
        }
      );
      return eos(
        dst,
        {
          readable: false,
          writable: true
        },
        finish
      );
    }
    __name(pipe, "pipe");
    module2.exports = {
      pipelineImpl,
      pipeline
    };
  }
});

// ../../node_modules/archiver/node_modules/readable-stream/lib/internal/streams/compose.js
var require_compose2 = __commonJS({
  "../../node_modules/archiver/node_modules/readable-stream/lib/internal/streams/compose.js"(exports2, module2) {
    "use strict";
    var { pipeline } = require_pipeline2();
    var Duplex = require_duplex2();
    var { destroyer } = require_destroy3();
    var {
      isNodeStream,
      isReadable: isReadable2,
      isWritable: isWritable2,
      isWebStream,
      isTransformStream,
      isWritableStream,
      isReadableStream: isReadableStream2
    } = require_utils3();
    var {
      AbortError,
      codes: { ERR_INVALID_ARG_VALUE, ERR_MISSING_ARGS }
    } = require_errors2();
    var eos = require_end_of_stream2();
    module2.exports = /* @__PURE__ */ __name(function compose(...streams) {
      if (streams.length === 0) {
        throw new ERR_MISSING_ARGS("streams");
      }
      if (streams.length === 1) {
        return Duplex.from(streams[0]);
      }
      const orgStreams = [...streams];
      if (typeof streams[0] === "function") {
        streams[0] = Duplex.from(streams[0]);
      }
      if (typeof streams[streams.length - 1] === "function") {
        const idx = streams.length - 1;
        streams[idx] = Duplex.from(streams[idx]);
      }
      for (let n3 = 0; n3 < streams.length; ++n3) {
        if (!isNodeStream(streams[n3]) && !isWebStream(streams[n3])) {
          continue;
        }
        if (n3 < streams.length - 1 && !(isReadable2(streams[n3]) || isReadableStream2(streams[n3]) || isTransformStream(streams[n3]))) {
          throw new ERR_INVALID_ARG_VALUE(`streams[${n3}]`, orgStreams[n3], "must be readable");
        }
        if (n3 > 0 && !(isWritable2(streams[n3]) || isWritableStream(streams[n3]) || isTransformStream(streams[n3]))) {
          throw new ERR_INVALID_ARG_VALUE(`streams[${n3}]`, orgStreams[n3], "must be writable");
        }
      }
      let ondrain;
      let onfinish;
      let onreadable;
      let onclose;
      let d3;
      function onfinished(err) {
        const cb = onclose;
        onclose = null;
        if (cb) {
          cb(err);
        } else if (err) {
          d3.destroy(err);
        } else if (!readable && !writable) {
          d3.destroy();
        }
      }
      __name(onfinished, "onfinished");
      const head = streams[0];
      const tail = pipeline(streams, onfinished);
      const writable = !!(isWritable2(head) || isWritableStream(head) || isTransformStream(head));
      const readable = !!(isReadable2(tail) || isReadableStream2(tail) || isTransformStream(tail));
      d3 = new Duplex({
        // TODO (ronag): highWaterMark?
        writableObjectMode: !!(head !== null && head !== void 0 && head.writableObjectMode),
        readableObjectMode: !!(tail !== null && tail !== void 0 && tail.readableObjectMode),
        writable,
        readable
      });
      if (writable) {
        if (isNodeStream(head)) {
          d3._write = function(chunk, encoding, callback) {
            if (head.write(chunk, encoding)) {
              callback();
            } else {
              ondrain = callback;
            }
          };
          d3._final = function(callback) {
            head.end();
            onfinish = callback;
          };
          head.on("drain", function() {
            if (ondrain) {
              const cb = ondrain;
              ondrain = null;
              cb();
            }
          });
        } else if (isWebStream(head)) {
          const writable2 = isTransformStream(head) ? head.writable : head;
          const writer = writable2.getWriter();
          d3._write = async function(chunk, encoding, callback) {
            try {
              await writer.ready;
              writer.write(chunk).catch(() => {
              });
              callback();
            } catch (err) {
              callback(err);
            }
          };
          d3._final = async function(callback) {
            try {
              await writer.ready;
              writer.close().catch(() => {
              });
              onfinish = callback;
            } catch (err) {
              callback(err);
            }
          };
        }
        const toRead = isTransformStream(tail) ? tail.readable : tail;
        eos(toRead, () => {
          if (onfinish) {
            const cb = onfinish;
            onfinish = null;
            cb();
          }
        });
      }
      if (readable) {
        if (isNodeStream(tail)) {
          tail.on("readable", function() {
            if (onreadable) {
              const cb = onreadable;
              onreadable = null;
              cb();
            }
          });
          tail.on("end", function() {
            d3.push(null);
          });
          d3._read = function() {
            while (true) {
              const buf = tail.read();
              if (buf === null) {
                onreadable = d3._read;
                return;
              }
              if (!d3.push(buf)) {
                return;
              }
            }
          };
        } else if (isWebStream(tail)) {
          const readable2 = isTransformStream(tail) ? tail.readable : tail;
          const reader = readable2.getReader();
          d3._read = async function() {
            while (true) {
              try {
                const { value, done } = await reader.read();
                if (!d3.push(value)) {
                  return;
                }
                if (done) {
                  d3.push(null);
                  return;
                }
              } catch {
                return;
              }
            }
          };
        }
      }
      d3._destroy = function(err, callback) {
        if (!err && onclose !== null) {
          err = new AbortError();
        }
        onreadable = null;
        ondrain = null;
        onfinish = null;
        if (onclose === null) {
          callback(err);
        } else {
          onclose = callback;
          if (isNodeStream(tail)) {
            destroyer(tail, err);
          }
        }
      };
      return d3;
    }, "compose");
  }
});

// ../../node_modules/archiver/node_modules/readable-stream/lib/internal/streams/operators.js
var require_operators2 = __commonJS({
  "../../node_modules/archiver/node_modules/readable-stream/lib/internal/streams/operators.js"(exports2, module2) {
    "use strict";
    var AbortController2 = globalThis.AbortController || require_abort_controller().AbortController;
    var {
      codes: { ERR_INVALID_ARG_VALUE, ERR_INVALID_ARG_TYPE, ERR_MISSING_ARGS, ERR_OUT_OF_RANGE },
      AbortError
    } = require_errors2();
    var { validateAbortSignal, validateInteger, validateObject } = require_validators2();
    var kWeakHandler = require_primordials2().Symbol("kWeak");
    var kResistStopPropagation = require_primordials2().Symbol("kResistStopPropagation");
    var { finished } = require_end_of_stream2();
    var staticCompose = require_compose2();
    var { addAbortSignalNoValidate } = require_add_abort_signal2();
    var { isWritable: isWritable2, isNodeStream } = require_utils3();
    var { deprecate } = require_util3();
    var {
      ArrayPrototypePush,
      Boolean: Boolean2,
      MathFloor,
      Number: Number2,
      NumberIsNaN,
      Promise: Promise2,
      PromiseReject,
      PromiseResolve,
      PromisePrototypeThen,
      Symbol: Symbol2
    } = require_primordials2();
    var kEmpty = Symbol2("kEmpty");
    var kEof = Symbol2("kEof");
    function compose(stream3, options) {
      if (options != null) {
        validateObject(options, "options");
      }
      if ((options === null || options === void 0 ? void 0 : options.signal) != null) {
        validateAbortSignal(options.signal, "options.signal");
      }
      if (isNodeStream(stream3) && !isWritable2(stream3)) {
        throw new ERR_INVALID_ARG_VALUE("stream", stream3, "must be writable");
      }
      const composedStream = staticCompose(this, stream3);
      if (options !== null && options !== void 0 && options.signal) {
        addAbortSignalNoValidate(options.signal, composedStream);
      }
      return composedStream;
    }
    __name(compose, "compose");
    function map3(fn, options) {
      if (typeof fn !== "function") {
        throw new ERR_INVALID_ARG_TYPE("fn", ["Function", "AsyncFunction"], fn);
      }
      if (options != null) {
        validateObject(options, "options");
      }
      if ((options === null || options === void 0 ? void 0 : options.signal) != null) {
        validateAbortSignal(options.signal, "options.signal");
      }
      let concurrency = 1;
      if ((options === null || options === void 0 ? void 0 : options.concurrency) != null) {
        concurrency = MathFloor(options.concurrency);
      }
      let highWaterMark = concurrency - 1;
      if ((options === null || options === void 0 ? void 0 : options.highWaterMark) != null) {
        highWaterMark = MathFloor(options.highWaterMark);
      }
      validateInteger(concurrency, "options.concurrency", 1);
      validateInteger(highWaterMark, "options.highWaterMark", 0);
      highWaterMark += concurrency;
      return (/* @__PURE__ */ __name(async function* map4() {
        const signal = require_util3().AbortSignalAny(
          [options === null || options === void 0 ? void 0 : options.signal].filter(Boolean2)
        );
        const stream3 = this;
        const queue = [];
        const signalOpt = {
          signal
        };
        let next;
        let resume;
        let done = false;
        let cnt = 0;
        function onCatch() {
          done = true;
          afterItemProcessed();
        }
        __name(onCatch, "onCatch");
        function afterItemProcessed() {
          cnt -= 1;
          maybeResume();
        }
        __name(afterItemProcessed, "afterItemProcessed");
        function maybeResume() {
          if (resume && !done && cnt < concurrency && queue.length < highWaterMark) {
            resume();
            resume = null;
          }
        }
        __name(maybeResume, "maybeResume");
        async function pump() {
          try {
            for await (let val of stream3) {
              if (done) {
                return;
              }
              if (signal.aborted) {
                throw new AbortError();
              }
              try {
                val = fn(val, signalOpt);
                if (val === kEmpty) {
                  continue;
                }
                val = PromiseResolve(val);
              } catch (err) {
                val = PromiseReject(err);
              }
              cnt += 1;
              PromisePrototypeThen(val, afterItemProcessed, onCatch);
              queue.push(val);
              if (next) {
                next();
                next = null;
              }
              if (!done && (queue.length >= highWaterMark || cnt >= concurrency)) {
                await new Promise2((resolve13) => {
                  resume = resolve13;
                });
              }
            }
            queue.push(kEof);
          } catch (err) {
            const val = PromiseReject(err);
            PromisePrototypeThen(val, afterItemProcessed, onCatch);
            queue.push(val);
          } finally {
            done = true;
            if (next) {
              next();
              next = null;
            }
          }
        }
        __name(pump, "pump");
        pump();
        try {
          while (true) {
            while (queue.length > 0) {
              const val = await queue[0];
              if (val === kEof) {
                return;
              }
              if (signal.aborted) {
                throw new AbortError();
              }
              if (val !== kEmpty) {
                yield val;
              }
              queue.shift();
              maybeResume();
            }
            await new Promise2((resolve13) => {
              next = resolve13;
            });
          }
        } finally {
          done = true;
          if (resume) {
            resume();
            resume = null;
          }
        }
      }, "map")).call(this);
    }
    __name(map3, "map");
    function asIndexedPairs(options = void 0) {
      if (options != null) {
        validateObject(options, "options");
      }
      if ((options === null || options === void 0 ? void 0 : options.signal) != null) {
        validateAbortSignal(options.signal, "options.signal");
      }
      return (/* @__PURE__ */ __name(async function* asIndexedPairs2() {
        let index = 0;
        for await (const val of this) {
          var _options$signal;
          if (options !== null && options !== void 0 && (_options$signal = options.signal) !== null && _options$signal !== void 0 && _options$signal.aborted) {
            throw new AbortError({
              cause: options.signal.reason
            });
          }
          yield [index++, val];
        }
      }, "asIndexedPairs")).call(this);
    }
    __name(asIndexedPairs, "asIndexedPairs");
    async function some2(fn, options = void 0) {
      for await (const unused of filter4.call(this, fn, options)) {
        return true;
      }
      return false;
    }
    __name(some2, "some");
    async function every(fn, options = void 0) {
      if (typeof fn !== "function") {
        throw new ERR_INVALID_ARG_TYPE("fn", ["Function", "AsyncFunction"], fn);
      }
      return !await some2.call(
        this,
        async (...args) => {
          return !await fn(...args);
        },
        options
      );
    }
    __name(every, "every");
    async function find(fn, options) {
      for await (const result2 of filter4.call(this, fn, options)) {
        return result2;
      }
      return void 0;
    }
    __name(find, "find");
    async function forEach(fn, options) {
      if (typeof fn !== "function") {
        throw new ERR_INVALID_ARG_TYPE("fn", ["Function", "AsyncFunction"], fn);
      }
      async function forEachFn(value, options2) {
        await fn(value, options2);
        return kEmpty;
      }
      __name(forEachFn, "forEachFn");
      for await (const unused of map3.call(this, forEachFn, options)) ;
    }
    __name(forEach, "forEach");
    function filter4(fn, options) {
      if (typeof fn !== "function") {
        throw new ERR_INVALID_ARG_TYPE("fn", ["Function", "AsyncFunction"], fn);
      }
      async function filterFn(value, options2) {
        if (await fn(value, options2)) {
          return value;
        }
        return kEmpty;
      }
      __name(filterFn, "filterFn");
      return map3.call(this, filterFn, options);
    }
    __name(filter4, "filter");
    var ReduceAwareErrMissingArgs = class extends ERR_MISSING_ARGS {
      static {
        __name(this, "ReduceAwareErrMissingArgs");
      }
      constructor() {
        super("reduce");
        this.message = "Reduce of an empty stream requires an initial value";
      }
    };
    async function reduce(reducer, initialValue, options) {
      var _options$signal2;
      if (typeof reducer !== "function") {
        throw new ERR_INVALID_ARG_TYPE("reducer", ["Function", "AsyncFunction"], reducer);
      }
      if (options != null) {
        validateObject(options, "options");
      }
      if ((options === null || options === void 0 ? void 0 : options.signal) != null) {
        validateAbortSignal(options.signal, "options.signal");
      }
      let hasInitialValue = arguments.length > 1;
      if (options !== null && options !== void 0 && (_options$signal2 = options.signal) !== null && _options$signal2 !== void 0 && _options$signal2.aborted) {
        const err = new AbortError(void 0, {
          cause: options.signal.reason
        });
        this.once("error", () => {
        });
        await finished(this.destroy(err));
        throw err;
      }
      const ac = new AbortController2();
      const signal = ac.signal;
      if (options !== null && options !== void 0 && options.signal) {
        const opts = {
          once: true,
          [kWeakHandler]: this,
          [kResistStopPropagation]: true
        };
        options.signal.addEventListener("abort", () => ac.abort(), opts);
      }
      let gotAnyItemFromStream = false;
      try {
        for await (const value of this) {
          var _options$signal3;
          gotAnyItemFromStream = true;
          if (options !== null && options !== void 0 && (_options$signal3 = options.signal) !== null && _options$signal3 !== void 0 && _options$signal3.aborted) {
            throw new AbortError();
          }
          if (!hasInitialValue) {
            initialValue = value;
            hasInitialValue = true;
          } else {
            initialValue = await reducer(initialValue, value, {
              signal
            });
          }
        }
        if (!gotAnyItemFromStream && !hasInitialValue) {
          throw new ReduceAwareErrMissingArgs();
        }
      } finally {
        ac.abort();
      }
      return initialValue;
    }
    __name(reduce, "reduce");
    async function toArray(options) {
      if (options != null) {
        validateObject(options, "options");
      }
      if ((options === null || options === void 0 ? void 0 : options.signal) != null) {
        validateAbortSignal(options.signal, "options.signal");
      }
      const result2 = [];
      for await (const val of this) {
        var _options$signal4;
        if (options !== null && options !== void 0 && (_options$signal4 = options.signal) !== null && _options$signal4 !== void 0 && _options$signal4.aborted) {
          throw new AbortError(void 0, {
            cause: options.signal.reason
          });
        }
        ArrayPrototypePush(result2, val);
      }
      return result2;
    }
    __name(toArray, "toArray");
    function flatMap4(fn, options) {
      const values = map3.call(this, fn, options);
      return (/* @__PURE__ */ __name(async function* flatMap5() {
        for await (const val of values) {
          yield* val;
        }
      }, "flatMap")).call(this);
    }
    __name(flatMap4, "flatMap");
    function toIntegerOrInfinity(number) {
      number = Number2(number);
      if (NumberIsNaN(number)) {
        return 0;
      }
      if (number < 0) {
        throw new ERR_OUT_OF_RANGE("number", ">= 0", number);
      }
      return number;
    }
    __name(toIntegerOrInfinity, "toIntegerOrInfinity");
    function drop(number, options = void 0) {
      if (options != null) {
        validateObject(options, "options");
      }
      if ((options === null || options === void 0 ? void 0 : options.signal) != null) {
        validateAbortSignal(options.signal, "options.signal");
      }
      number = toIntegerOrInfinity(number);
      return (/* @__PURE__ */ __name(async function* drop2() {
        var _options$signal5;
        if (options !== null && options !== void 0 && (_options$signal5 = options.signal) !== null && _options$signal5 !== void 0 && _options$signal5.aborted) {
          throw new AbortError();
        }
        for await (const val of this) {
          var _options$signal6;
          if (options !== null && options !== void 0 && (_options$signal6 = options.signal) !== null && _options$signal6 !== void 0 && _options$signal6.aborted) {
            throw new AbortError();
          }
          if (number-- <= 0) {
            yield val;
          }
        }
      }, "drop")).call(this);
    }
    __name(drop, "drop");
    function take2(number, options = void 0) {
      if (options != null) {
        validateObject(options, "options");
      }
      if ((options === null || options === void 0 ? void 0 : options.signal) != null) {
        validateAbortSignal(options.signal, "options.signal");
      }
      number = toIntegerOrInfinity(number);
      return (/* @__PURE__ */ __name(async function* take3() {
        var _options$signal7;
        if (options !== null && options !== void 0 && (_options$signal7 = options.signal) !== null && _options$signal7 !== void 0 && _options$signal7.aborted) {
          throw new AbortError();
        }
        for await (const val of this) {
          var _options$signal8;
          if (options !== null && options !== void 0 && (_options$signal8 = options.signal) !== null && _options$signal8 !== void 0 && _options$signal8.aborted) {
            throw new AbortError();
          }
          if (number-- > 0) {
            yield val;
          }
          if (number <= 0) {
            return;
          }
        }
      }, "take")).call(this);
    }
    __name(take2, "take");
    module2.exports.streamReturningOperators = {
      asIndexedPairs: deprecate(asIndexedPairs, "readable.asIndexedPairs will be removed in a future version."),
      drop,
      filter: filter4,
      flatMap: flatMap4,
      map: map3,
      take: take2,
      compose
    };
    module2.exports.promiseReturningOperators = {
      every,
      forEach,
      reduce,
      toArray,
      some: some2,
      find
    };
  }
});

// ../../node_modules/archiver/node_modules/readable-stream/lib/stream/promises.js
var require_promises2 = __commonJS({
  "../../node_modules/archiver/node_modules/readable-stream/lib/stream/promises.js"(exports2, module2) {
    "use strict";
    var { ArrayPrototypePop, Promise: Promise2 } = require_primordials2();
    var { isIterable, isNodeStream, isWebStream } = require_utils3();
    var { pipelineImpl: pl } = require_pipeline2();
    var { finished } = require_end_of_stream2();
    require_stream3();
    function pipeline(...streams) {
      return new Promise2((resolve13, reject) => {
        let signal;
        let end;
        const lastArg = streams[streams.length - 1];
        if (lastArg && typeof lastArg === "object" && !isNodeStream(lastArg) && !isIterable(lastArg) && !isWebStream(lastArg)) {
          const options = ArrayPrototypePop(streams);
          signal = options.signal;
          end = options.end;
        }
        pl(
          streams,
          (err, value) => {
            if (err) {
              reject(err);
            } else {
              resolve13(value);
            }
          },
          {
            signal,
            end
          }
        );
      });
    }
    __name(pipeline, "pipeline");
    module2.exports = {
      finished,
      pipeline
    };
  }
});

// ../../node_modules/archiver/node_modules/readable-stream/lib/stream.js
var require_stream3 = __commonJS({
  "../../node_modules/archiver/node_modules/readable-stream/lib/stream.js"(exports2, module2) {
    "use strict";
    var { Buffer: Buffer2 } = require("buffer");
    var { ObjectDefineProperty, ObjectKeys, ReflectApply } = require_primordials2();
    var {
      promisify: { custom: customPromisify }
    } = require_util3();
    var { streamReturningOperators, promiseReturningOperators } = require_operators2();
    var {
      codes: { ERR_ILLEGAL_CONSTRUCTOR }
    } = require_errors2();
    var compose = require_compose2();
    var { setDefaultHighWaterMark, getDefaultHighWaterMark } = require_state2();
    var { pipeline } = require_pipeline2();
    var { destroyer } = require_destroy3();
    var eos = require_end_of_stream2();
    var promises3 = require_promises2();
    var utils = require_utils3();
    var Stream2 = module2.exports = require_legacy2().Stream;
    Stream2.isDestroyed = utils.isDestroyed;
    Stream2.isDisturbed = utils.isDisturbed;
    Stream2.isErrored = utils.isErrored;
    Stream2.isReadable = utils.isReadable;
    Stream2.isWritable = utils.isWritable;
    Stream2.Readable = require_readable3();
    for (const key of ObjectKeys(streamReturningOperators)) {
      let fn = function(...args) {
        if (new.target) {
          throw ERR_ILLEGAL_CONSTRUCTOR();
        }
        return Stream2.Readable.from(ReflectApply(op2, this, args));
      };
      __name(fn, "fn");
      const op2 = streamReturningOperators[key];
      ObjectDefineProperty(fn, "name", {
        __proto__: null,
        value: op2.name
      });
      ObjectDefineProperty(fn, "length", {
        __proto__: null,
        value: op2.length
      });
      ObjectDefineProperty(Stream2.Readable.prototype, key, {
        __proto__: null,
        value: fn,
        enumerable: false,
        configurable: true,
        writable: true
      });
    }
    for (const key of ObjectKeys(promiseReturningOperators)) {
      let fn = function(...args) {
        if (new.target) {
          throw ERR_ILLEGAL_CONSTRUCTOR();
        }
        return ReflectApply(op2, this, args);
      };
      __name(fn, "fn");
      const op2 = promiseReturningOperators[key];
      ObjectDefineProperty(fn, "name", {
        __proto__: null,
        value: op2.name
      });
      ObjectDefineProperty(fn, "length", {
        __proto__: null,
        value: op2.length
      });
      ObjectDefineProperty(Stream2.Readable.prototype, key, {
        __proto__: null,
        value: fn,
        enumerable: false,
        configurable: true,
        writable: true
      });
    }
    Stream2.Writable = require_writable2();
    Stream2.Duplex = require_duplex2();
    Stream2.Transform = require_transform2();
    Stream2.PassThrough = require_passthrough3();
    Stream2.pipeline = pipeline;
    var { addAbortSignal } = require_add_abort_signal2();
    Stream2.addAbortSignal = addAbortSignal;
    Stream2.finished = eos;
    Stream2.destroy = destroyer;
    Stream2.compose = compose;
    Stream2.setDefaultHighWaterMark = setDefaultHighWaterMark;
    Stream2.getDefaultHighWaterMark = getDefaultHighWaterMark;
    ObjectDefineProperty(Stream2, "promises", {
      __proto__: null,
      configurable: true,
      enumerable: true,
      get() {
        return promises3;
      }
    });
    ObjectDefineProperty(pipeline, customPromisify, {
      __proto__: null,
      enumerable: true,
      get() {
        return promises3.pipeline;
      }
    });
    ObjectDefineProperty(eos, customPromisify, {
      __proto__: null,
      enumerable: true,
      get() {
        return promises3.finished;
      }
    });
    Stream2.Stream = Stream2;
    Stream2._isUint8Array = /* @__PURE__ */ __name(function isUint8Array(value) {
      return value instanceof Uint8Array;
    }, "isUint8Array");
    Stream2._uint8ArrayToBuffer = /* @__PURE__ */ __name(function _uint8ArrayToBuffer(chunk) {
      return Buffer2.from(chunk.buffer, chunk.byteOffset, chunk.byteLength);
    }, "_uint8ArrayToBuffer");
  }
});

// ../../node_modules/archiver/node_modules/readable-stream/lib/ours/index.js
var require_ours2 = __commonJS({
  "../../node_modules/archiver/node_modules/readable-stream/lib/ours/index.js"(exports2, module2) {
    "use strict";
    var Stream2 = require("stream");
    if (Stream2 && process.env.READABLE_STREAM === "disable") {
      const promises3 = Stream2.promises;
      module2.exports._uint8ArrayToBuffer = Stream2._uint8ArrayToBuffer;
      module2.exports._isUint8Array = Stream2._isUint8Array;
      module2.exports.isDisturbed = Stream2.isDisturbed;
      module2.exports.isErrored = Stream2.isErrored;
      module2.exports.isReadable = Stream2.isReadable;
      module2.exports.Readable = Stream2.Readable;
      module2.exports.Writable = Stream2.Writable;
      module2.exports.Duplex = Stream2.Duplex;
      module2.exports.Transform = Stream2.Transform;
      module2.exports.PassThrough = Stream2.PassThrough;
      module2.exports.addAbortSignal = Stream2.addAbortSignal;
      module2.exports.finished = Stream2.finished;
      module2.exports.destroy = Stream2.destroy;
      module2.exports.pipeline = Stream2.pipeline;
      module2.exports.compose = Stream2.compose;
      Object.defineProperty(Stream2, "promises", {
        configurable: true,
        enumerable: true,
        get() {
          return promises3;
        }
      });
      module2.exports.Stream = Stream2.Stream;
    } else {
      const CustomStream = require_stream3();
      const promises3 = require_promises2();
      const originalDestroy = CustomStream.Readable.destroy;
      module2.exports = CustomStream.Readable;
      module2.exports._uint8ArrayToBuffer = CustomStream._uint8ArrayToBuffer;
      module2.exports._isUint8Array = CustomStream._isUint8Array;
      module2.exports.isDisturbed = CustomStream.isDisturbed;
      module2.exports.isErrored = CustomStream.isErrored;
      module2.exports.isReadable = CustomStream.isReadable;
      module2.exports.Readable = CustomStream.Readable;
      module2.exports.Writable = CustomStream.Writable;
      module2.exports.Duplex = CustomStream.Duplex;
      module2.exports.Transform = CustomStream.Transform;
      module2.exports.PassThrough = CustomStream.PassThrough;
      module2.exports.addAbortSignal = CustomStream.addAbortSignal;
      module2.exports.finished = CustomStream.finished;
      module2.exports.destroy = CustomStream.destroy;
      module2.exports.destroy = originalDestroy;
      module2.exports.pipeline = CustomStream.pipeline;
      module2.exports.compose = CustomStream.compose;
      Object.defineProperty(CustomStream, "promises", {
        configurable: true,
        enumerable: true,
        get() {
          return promises3;
        }
      });
      module2.exports.Stream = CustomStream.Stream;
    }
    module2.exports.default = module2.exports;
  }
});

// ../../node_modules/archiver/lib/core.js
var require_core = __commonJS({
  "../../node_modules/archiver/lib/core.js"(exports2, module2) {
    var fs43 = require("fs");
    var glob2 = require_readdir_glob();
    var async = require_async();
    var path38 = require("path");
    var util11 = require_archiver_utils();
    var inherits = require("util").inherits;
    var ArchiverError = require_error2();
    var Transform = require_ours2().Transform;
    var win322 = process.platform === "win32";
    var Archiver = /* @__PURE__ */ __name(function(format26, options) {
      if (!(this instanceof Archiver)) {
        return new Archiver(format26, options);
      }
      if (typeof format26 !== "string") {
        options = format26;
        format26 = "zip";
      }
      options = this.options = util11.defaults(options, {
        highWaterMark: 1024 * 1024,
        statConcurrency: 4
      });
      Transform.call(this, options);
      this._format = false;
      this._module = false;
      this._pending = 0;
      this._pointer = 0;
      this._entriesCount = 0;
      this._entriesProcessedCount = 0;
      this._fsEntriesTotalBytes = 0;
      this._fsEntriesProcessedBytes = 0;
      this._queue = async.queue(this._onQueueTask.bind(this), 1);
      this._queue.drain(this._onQueueDrain.bind(this));
      this._statQueue = async.queue(this._onStatQueueTask.bind(this), options.statConcurrency);
      this._statQueue.drain(this._onQueueDrain.bind(this));
      this._state = {
        aborted: false,
        finalize: false,
        finalizing: false,
        finalized: false,
        modulePiped: false
      };
      this._streams = [];
    }, "Archiver");
    inherits(Archiver, Transform);
    Archiver.prototype._abort = function() {
      this._state.aborted = true;
      this._queue.kill();
      this._statQueue.kill();
      if (this._queue.idle()) {
        this._shutdown();
      }
    };
    Archiver.prototype._append = function(filepath, data3) {
      data3 = data3 || {};
      var task = {
        source: null,
        filepath
      };
      if (!data3.name) {
        data3.name = filepath;
      }
      data3.sourcePath = filepath;
      task.data = data3;
      this._entriesCount++;
      if (data3.stats && data3.stats instanceof fs43.Stats) {
        task = this._updateQueueTaskWithStats(task, data3.stats);
        if (task) {
          if (data3.stats.size) {
            this._fsEntriesTotalBytes += data3.stats.size;
          }
          this._queue.push(task);
        }
      } else {
        this._statQueue.push(task);
      }
    };
    Archiver.prototype._finalize = function() {
      if (this._state.finalizing || this._state.finalized || this._state.aborted) {
        return;
      }
      this._state.finalizing = true;
      this._moduleFinalize();
      this._state.finalizing = false;
      this._state.finalized = true;
    };
    Archiver.prototype._maybeFinalize = function() {
      if (this._state.finalizing || this._state.finalized || this._state.aborted) {
        return false;
      }
      if (this._state.finalize && this._pending === 0 && this._queue.idle() && this._statQueue.idle()) {
        this._finalize();
        return true;
      }
      return false;
    };
    Archiver.prototype._moduleAppend = function(source, data3, callback) {
      if (this._state.aborted) {
        callback();
        return;
      }
      this._module.append(source, data3, function(err) {
        this._task = null;
        if (this._state.aborted) {
          this._shutdown();
          return;
        }
        if (err) {
          this.emit("error", err);
          setImmediate(callback);
          return;
        }
        this.emit("entry", data3);
        this._entriesProcessedCount++;
        if (data3.stats && data3.stats.size) {
          this._fsEntriesProcessedBytes += data3.stats.size;
        }
        this.emit("progress", {
          entries: {
            total: this._entriesCount,
            processed: this._entriesProcessedCount
          },
          fs: {
            totalBytes: this._fsEntriesTotalBytes,
            processedBytes: this._fsEntriesProcessedBytes
          }
        });
        setImmediate(callback);
      }.bind(this));
    };
    Archiver.prototype._moduleFinalize = function() {
      if (typeof this._module.finalize === "function") {
        this._module.finalize();
      } else if (typeof this._module.end === "function") {
        this._module.end();
      } else {
        this.emit("error", new ArchiverError("NOENDMETHOD"));
      }
    };
    Archiver.prototype._modulePipe = function() {
      this._module.on("error", this._onModuleError.bind(this));
      this._module.pipe(this);
      this._state.modulePiped = true;
    };
    Archiver.prototype._moduleSupports = function(key) {
      if (!this._module.supports || !this._module.supports[key]) {
        return false;
      }
      return this._module.supports[key];
    };
    Archiver.prototype._moduleUnpipe = function() {
      this._module.unpipe(this);
      this._state.modulePiped = false;
    };
    Archiver.prototype._normalizeEntryData = function(data3, stats) {
      data3 = util11.defaults(data3, {
        type: "file",
        name: null,
        date: null,
        mode: null,
        prefix: null,
        sourcePath: null,
        stats: false
      });
      if (stats && data3.stats === false) {
        data3.stats = stats;
      }
      var isDir = data3.type === "directory";
      if (data3.name) {
        if (typeof data3.prefix === "string" && "" !== data3.prefix) {
          data3.name = data3.prefix + "/" + data3.name;
          data3.prefix = null;
        }
        data3.name = util11.sanitizePath(data3.name);
        if (data3.type !== "symlink" && data3.name.slice(-1) === "/") {
          isDir = true;
          data3.type = "directory";
        } else if (isDir) {
          data3.name += "/";
        }
      }
      if (typeof data3.mode === "number") {
        if (win322) {
          data3.mode &= 511;
        } else {
          data3.mode &= 4095;
        }
      } else if (data3.stats && data3.mode === null) {
        if (win322) {
          data3.mode = data3.stats.mode & 511;
        } else {
          data3.mode = data3.stats.mode & 4095;
        }
        if (win322 && isDir) {
          data3.mode = 493;
        }
      } else if (data3.mode === null) {
        data3.mode = isDir ? 493 : 420;
      }
      if (data3.stats && data3.date === null) {
        data3.date = data3.stats.mtime;
      } else {
        data3.date = util11.dateify(data3.date);
      }
      return data3;
    };
    Archiver.prototype._onModuleError = function(err) {
      this.emit("error", err);
    };
    Archiver.prototype._onQueueDrain = function() {
      if (this._state.finalizing || this._state.finalized || this._state.aborted) {
        return;
      }
      if (this._state.finalize && this._pending === 0 && this._queue.idle() && this._statQueue.idle()) {
        this._finalize();
      }
    };
    Archiver.prototype._onQueueTask = function(task, callback) {
      var fullCallback = /* @__PURE__ */ __name(() => {
        if (task.data.callback) {
          task.data.callback();
        }
        callback();
      }, "fullCallback");
      if (this._state.finalizing || this._state.finalized || this._state.aborted) {
        fullCallback();
        return;
      }
      this._task = task;
      this._moduleAppend(task.source, task.data, fullCallback);
    };
    Archiver.prototype._onStatQueueTask = function(task, callback) {
      if (this._state.finalizing || this._state.finalized || this._state.aborted) {
        callback();
        return;
      }
      fs43.lstat(task.filepath, function(err, stats) {
        if (this._state.aborted) {
          setImmediate(callback);
          return;
        }
        if (err) {
          this._entriesCount--;
          this.emit("warning", err);
          setImmediate(callback);
          return;
        }
        task = this._updateQueueTaskWithStats(task, stats);
        if (task) {
          if (stats.size) {
            this._fsEntriesTotalBytes += stats.size;
          }
          this._queue.push(task);
        }
        setImmediate(callback);
      }.bind(this));
    };
    Archiver.prototype._shutdown = function() {
      this._moduleUnpipe();
      this.end();
    };
    Archiver.prototype._transform = function(chunk, encoding, callback) {
      if (chunk) {
        this._pointer += chunk.length;
      }
      callback(null, chunk);
    };
    Archiver.prototype._updateQueueTaskWithStats = function(task, stats) {
      if (stats.isFile()) {
        task.data.type = "file";
        task.data.sourceType = "stream";
        task.source = util11.lazyReadStream(task.filepath);
      } else if (stats.isDirectory() && this._moduleSupports("directory")) {
        task.data.name = util11.trailingSlashIt(task.data.name);
        task.data.type = "directory";
        task.data.sourcePath = util11.trailingSlashIt(task.filepath);
        task.data.sourceType = "buffer";
        task.source = Buffer.concat([]);
      } else if (stats.isSymbolicLink() && this._moduleSupports("symlink")) {
        var linkPath = fs43.readlinkSync(task.filepath);
        var dirName = path38.dirname(task.filepath);
        task.data.type = "symlink";
        task.data.linkname = path38.relative(dirName, path38.resolve(dirName, linkPath));
        task.data.sourceType = "buffer";
        task.source = Buffer.concat([]);
      } else {
        if (stats.isDirectory()) {
          this.emit("warning", new ArchiverError("DIRECTORYNOTSUPPORTED", task.data));
        } else if (stats.isSymbolicLink()) {
          this.emit("warning", new ArchiverError("SYMLINKNOTSUPPORTED", task.data));
        } else {
          this.emit("warning", new ArchiverError("ENTRYNOTSUPPORTED", task.data));
        }
        return null;
      }
      task.data = this._normalizeEntryData(task.data, stats);
      return task;
    };
    Archiver.prototype.abort = function() {
      if (this._state.aborted || this._state.finalized) {
        return this;
      }
      this._abort();
      return this;
    };
    Archiver.prototype.append = function(source, data3) {
      if (this._state.finalize || this._state.aborted) {
        this.emit("error", new ArchiverError("QUEUECLOSED"));
        return this;
      }
      data3 = this._normalizeEntryData(data3);
      if (typeof data3.name !== "string" || data3.name.length === 0) {
        this.emit("error", new ArchiverError("ENTRYNAMEREQUIRED"));
        return this;
      }
      if (data3.type === "directory" && !this._moduleSupports("directory")) {
        this.emit("error", new ArchiverError("DIRECTORYNOTSUPPORTED", { name: data3.name }));
        return this;
      }
      source = util11.normalizeInputSource(source);
      if (Buffer.isBuffer(source)) {
        data3.sourceType = "buffer";
      } else if (util11.isStream(source)) {
        data3.sourceType = "stream";
      } else {
        this.emit("error", new ArchiverError("INPUTSTEAMBUFFERREQUIRED", { name: data3.name }));
        return this;
      }
      this._entriesCount++;
      this._queue.push({
        data: data3,
        source
      });
      return this;
    };
    Archiver.prototype.directory = function(dirpath, destpath, data3) {
      if (this._state.finalize || this._state.aborted) {
        this.emit("error", new ArchiverError("QUEUECLOSED"));
        return this;
      }
      if (typeof dirpath !== "string" || dirpath.length === 0) {
        this.emit("error", new ArchiverError("DIRECTORYDIRPATHREQUIRED"));
        return this;
      }
      this._pending++;
      if (destpath === false) {
        destpath = "";
      } else if (typeof destpath !== "string") {
        destpath = dirpath;
      }
      var dataFunction = false;
      if (typeof data3 === "function") {
        dataFunction = data3;
        data3 = {};
      } else if (typeof data3 !== "object") {
        data3 = {};
      }
      var globOptions = {
        stat: true,
        dot: true
      };
      function onGlobEnd() {
        this._pending--;
        this._maybeFinalize();
      }
      __name(onGlobEnd, "onGlobEnd");
      function onGlobError(err) {
        this.emit("error", err);
      }
      __name(onGlobError, "onGlobError");
      function onGlobMatch(match4) {
        globber.pause();
        var ignoreMatch = false;
        var entryData = Object.assign({}, data3);
        entryData.name = match4.relative;
        entryData.prefix = destpath;
        entryData.stats = match4.stat;
        entryData.callback = globber.resume.bind(globber);
        try {
          if (dataFunction) {
            entryData = dataFunction(entryData);
            if (entryData === false) {
              ignoreMatch = true;
            } else if (typeof entryData !== "object") {
              throw new ArchiverError("DIRECTORYFUNCTIONINVALIDDATA", { dirpath });
            }
          }
        } catch (e3) {
          this.emit("error", e3);
          return;
        }
        if (ignoreMatch) {
          globber.resume();
          return;
        }
        this._append(match4.absolute, entryData);
      }
      __name(onGlobMatch, "onGlobMatch");
      var globber = glob2(dirpath, globOptions);
      globber.on("error", onGlobError.bind(this));
      globber.on("match", onGlobMatch.bind(this));
      globber.on("end", onGlobEnd.bind(this));
      return this;
    };
    Archiver.prototype.file = function(filepath, data3) {
      if (this._state.finalize || this._state.aborted) {
        this.emit("error", new ArchiverError("QUEUECLOSED"));
        return this;
      }
      if (typeof filepath !== "string" || filepath.length === 0) {
        this.emit("error", new ArchiverError("FILEFILEPATHREQUIRED"));
        return this;
      }
      this._append(filepath, data3);
      return this;
    };
    Archiver.prototype.glob = function(pattern, options, data3) {
      this._pending++;
      options = util11.defaults(options, {
        stat: true,
        pattern
      });
      function onGlobEnd() {
        this._pending--;
        this._maybeFinalize();
      }
      __name(onGlobEnd, "onGlobEnd");
      function onGlobError(err) {
        this.emit("error", err);
      }
      __name(onGlobError, "onGlobError");
      function onGlobMatch(match4) {
        globber.pause();
        var entryData = Object.assign({}, data3);
        entryData.callback = globber.resume.bind(globber);
        entryData.stats = match4.stat;
        entryData.name = match4.relative;
        this._append(match4.absolute, entryData);
      }
      __name(onGlobMatch, "onGlobMatch");
      var globber = glob2(options.cwd || ".", options);
      globber.on("error", onGlobError.bind(this));
      globber.on("match", onGlobMatch.bind(this));
      globber.on("end", onGlobEnd.bind(this));
      return this;
    };
    Archiver.prototype.finalize = function() {
      if (this._state.aborted) {
        var abortedError = new ArchiverError("ABORTED");
        this.emit("error", abortedError);
        return Promise.reject(abortedError);
      }
      if (this._state.finalize) {
        var finalizingError = new ArchiverError("FINALIZING");
        this.emit("error", finalizingError);
        return Promise.reject(finalizingError);
      }
      this._state.finalize = true;
      if (this._pending === 0 && this._queue.idle() && this._statQueue.idle()) {
        this._finalize();
      }
      var self2 = this;
      return new Promise(function(resolve13, reject) {
        var errored;
        self2._module.on("end", function() {
          if (!errored) {
            resolve13();
          }
        });
        self2._module.on("error", function(err) {
          errored = true;
          reject(err);
        });
      });
    };
    Archiver.prototype.setFormat = function(format26) {
      if (this._format) {
        this.emit("error", new ArchiverError("FORMATSET"));
        return this;
      }
      this._format = format26;
      return this;
    };
    Archiver.prototype.setModule = function(module3) {
      if (this._state.aborted) {
        this.emit("error", new ArchiverError("ABORTED"));
        return this;
      }
      if (this._state.module) {
        this.emit("error", new ArchiverError("MODULESET"));
        return this;
      }
      this._module = module3;
      this._modulePipe();
      return this;
    };
    Archiver.prototype.symlink = function(filepath, target, mode) {
      if (this._state.finalize || this._state.aborted) {
        this.emit("error", new ArchiverError("QUEUECLOSED"));
        return this;
      }
      if (typeof filepath !== "string" || filepath.length === 0) {
        this.emit("error", new ArchiverError("SYMLINKFILEPATHREQUIRED"));
        return this;
      }
      if (typeof target !== "string" || target.length === 0) {
        this.emit("error", new ArchiverError("SYMLINKTARGETREQUIRED", { filepath }));
        return this;
      }
      if (!this._moduleSupports("symlink")) {
        this.emit("error", new ArchiverError("SYMLINKNOTSUPPORTED", { filepath }));
        return this;
      }
      var data3 = {};
      data3.type = "symlink";
      data3.name = filepath.replace(/\\/g, "/");
      data3.linkname = target.replace(/\\/g, "/");
      data3.sourceType = "buffer";
      if (typeof mode === "number") {
        data3.mode = mode;
      }
      this._entriesCount++;
      this._queue.push({
        data: data3,
        source: Buffer.concat([])
      });
      return this;
    };
    Archiver.prototype.pointer = function() {
      return this._pointer;
    };
    Archiver.prototype.use = function(plugin) {
      this._streams.push(plugin);
      return this;
    };
    module2.exports = Archiver;
  }
});

// ../../node_modules/compress-commons/lib/archivers/archive-entry.js
var require_archive_entry = __commonJS({
  "../../node_modules/compress-commons/lib/archivers/archive-entry.js"(exports2, module2) {
    var ArchiveEntry = module2.exports = function() {
    };
    ArchiveEntry.prototype.getName = function() {
    };
    ArchiveEntry.prototype.getSize = function() {
    };
    ArchiveEntry.prototype.getLastModifiedDate = function() {
    };
    ArchiveEntry.prototype.isDirectory = function() {
    };
  }
});

// ../../node_modules/compress-commons/lib/archivers/zip/util.js
var require_util4 = __commonJS({
  "../../node_modules/compress-commons/lib/archivers/zip/util.js"(exports2, module2) {
    var util11 = module2.exports = {};
    util11.dateToDos = function(d3, forceLocalTime) {
      forceLocalTime = forceLocalTime || false;
      var year = forceLocalTime ? d3.getFullYear() : d3.getUTCFullYear();
      if (year < 1980) {
        return 2162688;
      } else if (year >= 2044) {
        return 2141175677;
      }
      var val = {
        year,
        month: forceLocalTime ? d3.getMonth() : d3.getUTCMonth(),
        date: forceLocalTime ? d3.getDate() : d3.getUTCDate(),
        hours: forceLocalTime ? d3.getHours() : d3.getUTCHours(),
        minutes: forceLocalTime ? d3.getMinutes() : d3.getUTCMinutes(),
        seconds: forceLocalTime ? d3.getSeconds() : d3.getUTCSeconds()
      };
      return val.year - 1980 << 25 | val.month + 1 << 21 | val.date << 16 | val.hours << 11 | val.minutes << 5 | val.seconds / 2;
    };
    util11.dosToDate = function(dos) {
      return new Date((dos >> 25 & 127) + 1980, (dos >> 21 & 15) - 1, dos >> 16 & 31, dos >> 11 & 31, dos >> 5 & 63, (dos & 31) << 1);
    };
    util11.fromDosTime = function(buf) {
      return util11.dosToDate(buf.readUInt32LE(0));
    };
    util11.getEightBytes = function(v6) {
      var buf = Buffer.alloc(8);
      buf.writeUInt32LE(v6 % 4294967296, 0);
      buf.writeUInt32LE(v6 / 4294967296 | 0, 4);
      return buf;
    };
    util11.getShortBytes = function(v6) {
      var buf = Buffer.alloc(2);
      buf.writeUInt16LE((v6 & 65535) >>> 0, 0);
      return buf;
    };
    util11.getShortBytesValue = function(buf, offset) {
      return buf.readUInt16LE(offset);
    };
    util11.getLongBytes = function(v6) {
      var buf = Buffer.alloc(4);
      buf.writeUInt32LE((v6 & 4294967295) >>> 0, 0);
      return buf;
    };
    util11.getLongBytesValue = function(buf, offset) {
      return buf.readUInt32LE(offset);
    };
    util11.toDosTime = function(d3) {
      return util11.getLongBytes(util11.dateToDos(d3));
    };
  }
});

// ../../node_modules/compress-commons/lib/archivers/zip/general-purpose-bit.js
var require_general_purpose_bit = __commonJS({
  "../../node_modules/compress-commons/lib/archivers/zip/general-purpose-bit.js"(exports2, module2) {
    var zipUtil = require_util4();
    var DATA_DESCRIPTOR_FLAG = 1 << 3;
    var ENCRYPTION_FLAG = 1 << 0;
    var NUMBER_OF_SHANNON_FANO_TREES_FLAG = 1 << 2;
    var SLIDING_DICTIONARY_SIZE_FLAG = 1 << 1;
    var STRONG_ENCRYPTION_FLAG = 1 << 6;
    var UFT8_NAMES_FLAG = 1 << 11;
    var GeneralPurposeBit = module2.exports = function() {
      if (!(this instanceof GeneralPurposeBit)) {
        return new GeneralPurposeBit();
      }
      this.descriptor = false;
      this.encryption = false;
      this.utf8 = false;
      this.numberOfShannonFanoTrees = 0;
      this.strongEncryption = false;
      this.slidingDictionarySize = 0;
      return this;
    };
    GeneralPurposeBit.prototype.encode = function() {
      return zipUtil.getShortBytes(
        (this.descriptor ? DATA_DESCRIPTOR_FLAG : 0) | (this.utf8 ? UFT8_NAMES_FLAG : 0) | (this.encryption ? ENCRYPTION_FLAG : 0) | (this.strongEncryption ? STRONG_ENCRYPTION_FLAG : 0)
      );
    };
    GeneralPurposeBit.prototype.parse = function(buf, offset) {
      var flag = zipUtil.getShortBytesValue(buf, offset);
      var gbp = new GeneralPurposeBit();
      gbp.useDataDescriptor((flag & DATA_DESCRIPTOR_FLAG) !== 0);
      gbp.useUTF8ForNames((flag & UFT8_NAMES_FLAG) !== 0);
      gbp.useStrongEncryption((flag & STRONG_ENCRYPTION_FLAG) !== 0);
      gbp.useEncryption((flag & ENCRYPTION_FLAG) !== 0);
      gbp.setSlidingDictionarySize((flag & SLIDING_DICTIONARY_SIZE_FLAG) !== 0 ? 8192 : 4096);
      gbp.setNumberOfShannonFanoTrees((flag & NUMBER_OF_SHANNON_FANO_TREES_FLAG) !== 0 ? 3 : 2);
      return gbp;
    };
    GeneralPurposeBit.prototype.setNumberOfShannonFanoTrees = function(n3) {
      this.numberOfShannonFanoTrees = n3;
    };
    GeneralPurposeBit.prototype.getNumberOfShannonFanoTrees = function() {
      return this.numberOfShannonFanoTrees;
    };
    GeneralPurposeBit.prototype.setSlidingDictionarySize = function(n3) {
      this.slidingDictionarySize = n3;
    };
    GeneralPurposeBit.prototype.getSlidingDictionarySize = function() {
      return this.slidingDictionarySize;
    };
    GeneralPurposeBit.prototype.useDataDescriptor = function(b3) {
      this.descriptor = b3;
    };
    GeneralPurposeBit.prototype.usesDataDescriptor = function() {
      return this.descriptor;
    };
    GeneralPurposeBit.prototype.useEncryption = function(b3) {
      this.encryption = b3;
    };
    GeneralPurposeBit.prototype.usesEncryption = function() {
      return this.encryption;
    };
    GeneralPurposeBit.prototype.useStrongEncryption = function(b3) {
      this.strongEncryption = b3;
    };
    GeneralPurposeBit.prototype.usesStrongEncryption = function() {
      return this.strongEncryption;
    };
    GeneralPurposeBit.prototype.useUTF8ForNames = function(b3) {
      this.utf8 = b3;
    };
    GeneralPurposeBit.prototype.usesUTF8ForNames = function() {
      return this.utf8;
    };
  }
});

// ../../node_modules/compress-commons/lib/archivers/zip/unix-stat.js
var require_unix_stat = __commonJS({
  "../../node_modules/compress-commons/lib/archivers/zip/unix-stat.js"(exports2, module2) {
    module2.exports = {
      /**
       * Bits used for permissions (and sticky bit)
       */
      PERM_MASK: 4095,
      // 07777
      /**
       * Bits used to indicate the filesystem object type.
       */
      FILE_TYPE_FLAG: 61440,
      // 0170000
      /**
       * Indicates symbolic links.
       */
      LINK_FLAG: 40960,
      // 0120000
      /**
       * Indicates plain files.
       */
      FILE_FLAG: 32768,
      // 0100000
      /**
       * Indicates directories.
       */
      DIR_FLAG: 16384,
      // 040000
      // ----------------------------------------------------------
      // somewhat arbitrary choices that are quite common for shared
      // installations
      // -----------------------------------------------------------
      /**
       * Default permissions for symbolic links.
       */
      DEFAULT_LINK_PERM: 511,
      // 0777
      /**
       * Default permissions for directories.
       */
      DEFAULT_DIR_PERM: 493,
      // 0755
      /**
       * Default permissions for plain files.
       */
      DEFAULT_FILE_PERM: 420
      // 0644
    };
  }
});

// ../../node_modules/compress-commons/lib/archivers/zip/constants.js
var require_constants2 = __commonJS({
  "../../node_modules/compress-commons/lib/archivers/zip/constants.js"(exports2, module2) {
    module2.exports = {
      WORD: 4,
      DWORD: 8,
      EMPTY: Buffer.alloc(0),
      SHORT: 2,
      SHORT_MASK: 65535,
      SHORT_SHIFT: 16,
      SHORT_ZERO: Buffer.from(Array(2)),
      LONG: 4,
      LONG_ZERO: Buffer.from(Array(4)),
      MIN_VERSION_INITIAL: 10,
      MIN_VERSION_DATA_DESCRIPTOR: 20,
      MIN_VERSION_ZIP64: 45,
      VERSION_MADEBY: 45,
      METHOD_STORED: 0,
      METHOD_DEFLATED: 8,
      PLATFORM_UNIX: 3,
      PLATFORM_FAT: 0,
      SIG_LFH: 67324752,
      SIG_DD: 134695760,
      SIG_CFH: 33639248,
      SIG_EOCD: 101010256,
      SIG_ZIP64_EOCD: 101075792,
      SIG_ZIP64_EOCD_LOC: 117853008,
      ZIP64_MAGIC_SHORT: 65535,
      ZIP64_MAGIC: 4294967295,
      ZIP64_EXTRA_ID: 1,
      ZLIB_NO_COMPRESSION: 0,
      ZLIB_BEST_SPEED: 1,
      ZLIB_BEST_COMPRESSION: 9,
      ZLIB_DEFAULT_COMPRESSION: -1,
      MODE_MASK: 4095,
      DEFAULT_FILE_MODE: 33188,
      // 010644 = -rw-r--r-- = S_IFREG | S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH
      DEFAULT_DIR_MODE: 16877,
      // 040755 = drwxr-xr-x = S_IFDIR | S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH
      EXT_FILE_ATTR_DIR: 1106051088,
      // 010173200020 = drwxr-xr-x = (((S_IFDIR | 0755) << 16) | S_DOS_D)
      EXT_FILE_ATTR_FILE: 2175008800,
      // 020151000040 = -rw-r--r-- = (((S_IFREG | 0644) << 16) | S_DOS_A) >>> 0
      // Unix file types
      S_IFMT: 61440,
      // 0170000 type of file mask
      S_IFIFO: 4096,
      // 010000 named pipe (fifo)
      S_IFCHR: 8192,
      // 020000 character special
      S_IFDIR: 16384,
      // 040000 directory
      S_IFBLK: 24576,
      // 060000 block special
      S_IFREG: 32768,
      // 0100000 regular
      S_IFLNK: 40960,
      // 0120000 symbolic link
      S_IFSOCK: 49152,
      // 0140000 socket
      // DOS file type flags
      S_DOS_A: 32,
      // 040 Archive
      S_DOS_D: 16,
      // 020 Directory
      S_DOS_V: 8,
      // 010 Volume
      S_DOS_S: 4,
      // 04 System
      S_DOS_H: 2,
      // 02 Hidden
      S_DOS_R: 1
      // 01 Read Only
    };
  }
});

// ../../node_modules/compress-commons/lib/archivers/zip/zip-archive-entry.js
var require_zip_archive_entry = __commonJS({
  "../../node_modules/compress-commons/lib/archivers/zip/zip-archive-entry.js"(exports2, module2) {
    var inherits = require("util").inherits;
    var normalizePath = require_normalize_path();
    var ArchiveEntry = require_archive_entry();
    var GeneralPurposeBit = require_general_purpose_bit();
    var UnixStat = require_unix_stat();
    var constants3 = require_constants2();
    var zipUtil = require_util4();
    var ZipArchiveEntry = module2.exports = function(name) {
      if (!(this instanceof ZipArchiveEntry)) {
        return new ZipArchiveEntry(name);
      }
      ArchiveEntry.call(this);
      this.platform = constants3.PLATFORM_FAT;
      this.method = -1;
      this.name = null;
      this.size = 0;
      this.csize = 0;
      this.gpb = new GeneralPurposeBit();
      this.crc = 0;
      this.time = -1;
      this.minver = constants3.MIN_VERSION_INITIAL;
      this.mode = -1;
      this.extra = null;
      this.exattr = 0;
      this.inattr = 0;
      this.comment = null;
      if (name) {
        this.setName(name);
      }
    };
    inherits(ZipArchiveEntry, ArchiveEntry);
    ZipArchiveEntry.prototype.getCentralDirectoryExtra = function() {
      return this.getExtra();
    };
    ZipArchiveEntry.prototype.getComment = function() {
      return this.comment !== null ? this.comment : "";
    };
    ZipArchiveEntry.prototype.getCompressedSize = function() {
      return this.csize;
    };
    ZipArchiveEntry.prototype.getCrc = function() {
      return this.crc;
    };
    ZipArchiveEntry.prototype.getExternalAttributes = function() {
      return this.exattr;
    };
    ZipArchiveEntry.prototype.getExtra = function() {
      return this.extra !== null ? this.extra : constants3.EMPTY;
    };
    ZipArchiveEntry.prototype.getGeneralPurposeBit = function() {
      return this.gpb;
    };
    ZipArchiveEntry.prototype.getInternalAttributes = function() {
      return this.inattr;
    };
    ZipArchiveEntry.prototype.getLastModifiedDate = function() {
      return this.getTime();
    };
    ZipArchiveEntry.prototype.getLocalFileDataExtra = function() {
      return this.getExtra();
    };
    ZipArchiveEntry.prototype.getMethod = function() {
      return this.method;
    };
    ZipArchiveEntry.prototype.getName = function() {
      return this.name;
    };
    ZipArchiveEntry.prototype.getPlatform = function() {
      return this.platform;
    };
    ZipArchiveEntry.prototype.getSize = function() {
      return this.size;
    };
    ZipArchiveEntry.prototype.getTime = function() {
      return this.time !== -1 ? zipUtil.dosToDate(this.time) : -1;
    };
    ZipArchiveEntry.prototype.getTimeDos = function() {
      return this.time !== -1 ? this.time : 0;
    };
    ZipArchiveEntry.prototype.getUnixMode = function() {
      return this.platform !== constants3.PLATFORM_UNIX ? 0 : this.getExternalAttributes() >> constants3.SHORT_SHIFT & constants3.SHORT_MASK;
    };
    ZipArchiveEntry.prototype.getVersionNeededToExtract = function() {
      return this.minver;
    };
    ZipArchiveEntry.prototype.setComment = function(comment) {
      if (Buffer.byteLength(comment) !== comment.length) {
        this.getGeneralPurposeBit().useUTF8ForNames(true);
      }
      this.comment = comment;
    };
    ZipArchiveEntry.prototype.setCompressedSize = function(size) {
      if (size < 0) {
        throw new Error("invalid entry compressed size");
      }
      this.csize = size;
    };
    ZipArchiveEntry.prototype.setCrc = function(crc) {
      if (crc < 0) {
        throw new Error("invalid entry crc32");
      }
      this.crc = crc;
    };
    ZipArchiveEntry.prototype.setExternalAttributes = function(attr) {
      this.exattr = attr >>> 0;
    };
    ZipArchiveEntry.prototype.setExtra = function(extra) {
      this.extra = extra;
    };
    ZipArchiveEntry.prototype.setGeneralPurposeBit = function(gpb) {
      if (!(gpb instanceof GeneralPurposeBit)) {
        throw new Error("invalid entry GeneralPurposeBit");
      }
      this.gpb = gpb;
    };
    ZipArchiveEntry.prototype.setInternalAttributes = function(attr) {
      this.inattr = attr;
    };
    ZipArchiveEntry.prototype.setMethod = function(method) {
      if (method < 0) {
        throw new Error("invalid entry compression method");
      }
      this.method = method;
    };
    ZipArchiveEntry.prototype.setName = function(name, prependSlash = false) {
      name = normalizePath(name, false).replace(/^\w+:/, "").replace(/^(\.\.\/|\/)+/, "");
      if (prependSlash) {
        name = `/${name}`;
      }
      if (Buffer.byteLength(name) !== name.length) {
        this.getGeneralPurposeBit().useUTF8ForNames(true);
      }
      this.name = name;
    };
    ZipArchiveEntry.prototype.setPlatform = function(platform3) {
      this.platform = platform3;
    };
    ZipArchiveEntry.prototype.setSize = function(size) {
      if (size < 0) {
        throw new Error("invalid entry size");
      }
      this.size = size;
    };
    ZipArchiveEntry.prototype.setTime = function(time, forceLocalTime) {
      if (!(time instanceof Date)) {
        throw new Error("invalid entry time");
      }
      this.time = zipUtil.dateToDos(time, forceLocalTime);
    };
    ZipArchiveEntry.prototype.setUnixMode = function(mode) {
      mode |= this.isDirectory() ? constants3.S_IFDIR : constants3.S_IFREG;
      var extattr = 0;
      extattr |= mode << constants3.SHORT_SHIFT | (this.isDirectory() ? constants3.S_DOS_D : constants3.S_DOS_A);
      this.setExternalAttributes(extattr);
      this.mode = mode & constants3.MODE_MASK;
      this.platform = constants3.PLATFORM_UNIX;
    };
    ZipArchiveEntry.prototype.setVersionNeededToExtract = function(minver) {
      this.minver = minver;
    };
    ZipArchiveEntry.prototype.isDirectory = function() {
      return this.getName().slice(-1) === "/";
    };
    ZipArchiveEntry.prototype.isUnixSymlink = function() {
      return (this.getUnixMode() & UnixStat.FILE_TYPE_FLAG) === UnixStat.LINK_FLAG;
    };
    ZipArchiveEntry.prototype.isZip64 = function() {
      return this.csize > constants3.ZIP64_MAGIC || this.size > constants3.ZIP64_MAGIC;
    };
  }
});

// ../../node_modules/compress-commons/node_modules/readable-stream/lib/ours/primordials.js
var require_primordials3 = __commonJS({
  "../../node_modules/compress-commons/node_modules/readable-stream/lib/ours/primordials.js"(exports2, module2) {
    "use strict";
    var AggregateError = class extends Error {
      static {
        __name(this, "AggregateError");
      }
      constructor(errors) {
        if (!Array.isArray(errors)) {
          throw new TypeError(`Expected input to be an Array, got ${typeof errors}`);
        }
        let message2 = "";
        for (let i3 = 0; i3 < errors.length; i3++) {
          message2 += `    ${errors[i3].stack}
`;
        }
        super(message2);
        this.name = "AggregateError";
        this.errors = errors;
      }
    };
    module2.exports = {
      AggregateError,
      ArrayIsArray(self2) {
        return Array.isArray(self2);
      },
      ArrayPrototypeIncludes(self2, el) {
        return self2.includes(el);
      },
      ArrayPrototypeIndexOf(self2, el) {
        return self2.indexOf(el);
      },
      ArrayPrototypeJoin(self2, sep5) {
        return self2.join(sep5);
      },
      ArrayPrototypeMap(self2, fn) {
        return self2.map(fn);
      },
      ArrayPrototypePop(self2, el) {
        return self2.pop(el);
      },
      ArrayPrototypePush(self2, el) {
        return self2.push(el);
      },
      ArrayPrototypeSlice(self2, start, end) {
        return self2.slice(start, end);
      },
      Error,
      FunctionPrototypeCall(fn, thisArgs, ...args) {
        return fn.call(thisArgs, ...args);
      },
      FunctionPrototypeSymbolHasInstance(self2, instance) {
        return Function.prototype[Symbol.hasInstance].call(self2, instance);
      },
      MathFloor: Math.floor,
      Number,
      NumberIsInteger: Number.isInteger,
      NumberIsNaN: Number.isNaN,
      NumberMAX_SAFE_INTEGER: Number.MAX_SAFE_INTEGER,
      NumberMIN_SAFE_INTEGER: Number.MIN_SAFE_INTEGER,
      NumberParseInt: Number.parseInt,
      ObjectDefineProperties(self2, props) {
        return Object.defineProperties(self2, props);
      },
      ObjectDefineProperty(self2, name, prop) {
        return Object.defineProperty(self2, name, prop);
      },
      ObjectGetOwnPropertyDescriptor(self2, name) {
        return Object.getOwnPropertyDescriptor(self2, name);
      },
      ObjectKeys(obj) {
        return Object.keys(obj);
      },
      ObjectSetPrototypeOf(target, proto) {
        return Object.setPrototypeOf(target, proto);
      },
      Promise,
      PromisePrototypeCatch(self2, fn) {
        return self2.catch(fn);
      },
      PromisePrototypeThen(self2, thenFn, catchFn) {
        return self2.then(thenFn, catchFn);
      },
      PromiseReject(err) {
        return Promise.reject(err);
      },
      PromiseResolve(val) {
        return Promise.resolve(val);
      },
      ReflectApply: Reflect.apply,
      RegExpPrototypeTest(self2, value) {
        return self2.test(value);
      },
      SafeSet: Set,
      String,
      StringPrototypeSlice(self2, start, end) {
        return self2.slice(start, end);
      },
      StringPrototypeToLowerCase(self2) {
        return self2.toLowerCase();
      },
      StringPrototypeToUpperCase(self2) {
        return self2.toUpperCase();
      },
      StringPrototypeTrim(self2) {
        return self2.trim();
      },
      Symbol,
      SymbolFor: Symbol.for,
      SymbolAsyncIterator: Symbol.asyncIterator,
      SymbolHasInstance: Symbol.hasInstance,
      SymbolIterator: Symbol.iterator,
      SymbolDispose: Symbol.dispose || Symbol("Symbol.dispose"),
      SymbolAsyncDispose: Symbol.asyncDispose || Symbol("Symbol.asyncDispose"),
      TypedArrayPrototypeSet(self2, buf, len) {
        return self2.set(buf, len);
      },
      Boolean,
      Uint8Array
    };
  }
});

// ../../node_modules/compress-commons/node_modules/readable-stream/lib/ours/util/inspect.js
var require_inspect3 = __commonJS({
  "../../node_modules/compress-commons/node_modules/readable-stream/lib/ours/util/inspect.js"(exports2, module2) {
    "use strict";
    module2.exports = {
      format(format26, ...args) {
        return format26.replace(/%([sdifj])/g, function(...[_unused, type]) {
          const replacement = args.shift();
          if (type === "f") {
            return replacement.toFixed(6);
          } else if (type === "j") {
            return JSON.stringify(replacement);
          } else if (type === "s" && typeof replacement === "object") {
            const ctor = replacement.constructor !== Object ? replacement.constructor.name : "";
            return `${ctor} {}`.trim();
          } else {
            return replacement.toString();
          }
        });
      },
      inspect(value) {
        switch (typeof value) {
          case "string":
            if (value.includes("'")) {
              if (!value.includes('"')) {
                return `"${value}"`;
              } else if (!value.includes("`") && !value.includes("${")) {
                return `\`${value}\``;
              }
            }
            return `'${value}'`;
          case "number":
            if (isNaN(value)) {
              return "NaN";
            } else if (Object.is(value, -0)) {
              return String(value);
            }
            return value;
          case "bigint":
            return `${String(value)}n`;
          case "boolean":
          case "undefined":
            return String(value);
          case "object":
            return "{}";
        }
      }
    };
  }
});

// ../../node_modules/compress-commons/node_modules/readable-stream/lib/ours/errors.js
var require_errors3 = __commonJS({
  "../../node_modules/compress-commons/node_modules/readable-stream/lib/ours/errors.js"(exports2, module2) {
    "use strict";
    var { format: format26, inspect: inspect4 } = require_inspect3();
    var { AggregateError: CustomAggregateError } = require_primordials3();
    var AggregateError = globalThis.AggregateError || CustomAggregateError;
    var kIsNodeError = Symbol("kIsNodeError");
    var kTypes = [
      "string",
      "function",
      "number",
      "object",
      // Accept 'Function' and 'Object' as alternative to the lower cased version.
      "Function",
      "Object",
      "boolean",
      "bigint",
      "symbol"
    ];
    var classRegExp = /^([A-Z][a-z0-9]*)+$/;
    var nodeInternalPrefix = "__node_internal_";
    var codes = {};
    function assert(value, message2) {
      if (!value) {
        throw new codes.ERR_INTERNAL_ASSERTION(message2);
      }
    }
    __name(assert, "assert");
    function addNumericalSeparator(val) {
      let res = "";
      let i3 = val.length;
      const start = val[0] === "-" ? 1 : 0;
      for (; i3 >= start + 4; i3 -= 3) {
        res = `_${val.slice(i3 - 3, i3)}${res}`;
      }
      return `${val.slice(0, i3)}${res}`;
    }
    __name(addNumericalSeparator, "addNumericalSeparator");
    function getMessage(key, msg, args) {
      if (typeof msg === "function") {
        assert(
          msg.length <= args.length,
          // Default options do not count.
          `Code: ${key}; The provided arguments length (${args.length}) does not match the required ones (${msg.length}).`
        );
        return msg(...args);
      }
      const expectedLength = (msg.match(/%[dfijoOs]/g) || []).length;
      assert(
        expectedLength === args.length,
        `Code: ${key}; The provided arguments length (${args.length}) does not match the required ones (${expectedLength}).`
      );
      if (args.length === 0) {
        return msg;
      }
      return format26(msg, ...args);
    }
    __name(getMessage, "getMessage");
    function E2(code, message2, Base) {
      if (!Base) {
        Base = Error;
      }
      class NodeError extends Base {
        static {
          __name(this, "NodeError");
        }
        constructor(...args) {
          super(getMessage(code, message2, args));
        }
        toString() {
          return `${this.name} [${code}]: ${this.message}`;
        }
      }
      Object.defineProperties(NodeError.prototype, {
        name: {
          value: Base.name,
          writable: true,
          enumerable: false,
          configurable: true
        },
        toString: {
          value() {
            return `${this.name} [${code}]: ${this.message}`;
          },
          writable: true,
          enumerable: false,
          configurable: true
        }
      });
      NodeError.prototype.code = code;
      NodeError.prototype[kIsNodeError] = true;
      codes[code] = NodeError;
    }
    __name(E2, "E");
    function hideStackFrames(fn) {
      const hidden = nodeInternalPrefix + fn.name;
      Object.defineProperty(fn, "name", {
        value: hidden
      });
      return fn;
    }
    __name(hideStackFrames, "hideStackFrames");
    function aggregateTwoErrors(innerError, outerError) {
      if (innerError && outerError && innerError !== outerError) {
        if (Array.isArray(outerError.errors)) {
          outerError.errors.push(innerError);
          return outerError;
        }
        const err = new AggregateError([outerError, innerError], outerError.message);
        err.code = outerError.code;
        return err;
      }
      return innerError || outerError;
    }
    __name(aggregateTwoErrors, "aggregateTwoErrors");
    var AbortError = class extends Error {
      static {
        __name(this, "AbortError");
      }
      constructor(message2 = "The operation was aborted", options = void 0) {
        if (options !== void 0 && typeof options !== "object") {
          throw new codes.ERR_INVALID_ARG_TYPE("options", "Object", options);
        }
        super(message2, options);
        this.code = "ABORT_ERR";
        this.name = "AbortError";
      }
    };
    E2("ERR_ASSERTION", "%s", Error);
    E2(
      "ERR_INVALID_ARG_TYPE",
      (name, expected, actual) => {
        assert(typeof name === "string", "'name' must be a string");
        if (!Array.isArray(expected)) {
          expected = [expected];
        }
        let msg = "The ";
        if (name.endsWith(" argument")) {
          msg += `${name} `;
        } else {
          msg += `"${name}" ${name.includes(".") ? "property" : "argument"} `;
        }
        msg += "must be ";
        const types5 = [];
        const instances = [];
        const other = [];
        for (const value of expected) {
          assert(typeof value === "string", "All expected entries have to be of type string");
          if (kTypes.includes(value)) {
            types5.push(value.toLowerCase());
          } else if (classRegExp.test(value)) {
            instances.push(value);
          } else {
            assert(value !== "object", 'The value "object" should be written as "Object"');
            other.push(value);
          }
        }
        if (instances.length > 0) {
          const pos = types5.indexOf("object");
          if (pos !== -1) {
            types5.splice(types5, pos, 1);
            instances.push("Object");
          }
        }
        if (types5.length > 0) {
          switch (types5.length) {
            case 1:
              msg += `of type ${types5[0]}`;
              break;
            case 2:
              msg += `one of type ${types5[0]} or ${types5[1]}`;
              break;
            default: {
              const last = types5.pop();
              msg += `one of type ${types5.join(", ")}, or ${last}`;
            }
          }
          if (instances.length > 0 || other.length > 0) {
            msg += " or ";
          }
        }
        if (instances.length > 0) {
          switch (instances.length) {
            case 1:
              msg += `an instance of ${instances[0]}`;
              break;
            case 2:
              msg += `an instance of ${instances[0]} or ${instances[1]}`;
              break;
            default: {
              const last = instances.pop();
              msg += `an instance of ${instances.join(", ")}, or ${last}`;
            }
          }
          if (other.length > 0) {
            msg += " or ";
          }
        }
        switch (other.length) {
          case 0:
            break;
          case 1:
            if (other[0].toLowerCase() !== other[0]) {
              msg += "an ";
            }
            msg += `${other[0]}`;
            break;
          case 2:
            msg += `one of ${other[0]} or ${other[1]}`;
            break;
          default: {
            const last = other.pop();
            msg += `one of ${other.join(", ")}, or ${last}`;
          }
        }
        if (actual == null) {
          msg += `. Received ${actual}`;
        } else if (typeof actual === "function" && actual.name) {
          msg += `. Received function ${actual.name}`;
        } else if (typeof actual === "object") {
          var _actual$constructor;
          if ((_actual$constructor = actual.constructor) !== null && _actual$constructor !== void 0 && _actual$constructor.name) {
            msg += `. Received an instance of ${actual.constructor.name}`;
          } else {
            const inspected = inspect4(actual, {
              depth: -1
            });
            msg += `. Received ${inspected}`;
          }
        } else {
          let inspected = inspect4(actual, {
            colors: false
          });
          if (inspected.length > 25) {
            inspected = `${inspected.slice(0, 25)}...`;
          }
          msg += `. Received type ${typeof actual} (${inspected})`;
        }
        return msg;
      },
      TypeError
    );
    E2(
      "ERR_INVALID_ARG_VALUE",
      (name, value, reason = "is invalid") => {
        let inspected = inspect4(value);
        if (inspected.length > 128) {
          inspected = inspected.slice(0, 128) + "...";
        }
        const type = name.includes(".") ? "property" : "argument";
        return `The ${type} '${name}' ${reason}. Received ${inspected}`;
      },
      TypeError
    );
    E2(
      "ERR_INVALID_RETURN_VALUE",
      (input, name, value) => {
        var _value$constructor;
        const type = value !== null && value !== void 0 && (_value$constructor = value.constructor) !== null && _value$constructor !== void 0 && _value$constructor.name ? `instance of ${value.constructor.name}` : `type ${typeof value}`;
        return `Expected ${input} to be returned from the "${name}" function but got ${type}.`;
      },
      TypeError
    );
    E2(
      "ERR_MISSING_ARGS",
      (...args) => {
        assert(args.length > 0, "At least one arg needs to be specified");
        let msg;
        const len = args.length;
        args = (Array.isArray(args) ? args : [args]).map((a3) => `"${a3}"`).join(" or ");
        switch (len) {
          case 1:
            msg += `The ${args[0]} argument`;
            break;
          case 2:
            msg += `The ${args[0]} and ${args[1]} arguments`;
            break;
          default:
            {
              const last = args.pop();
              msg += `The ${args.join(", ")}, and ${last} arguments`;
            }
            break;
        }
        return `${msg} must be specified`;
      },
      TypeError
    );
    E2(
      "ERR_OUT_OF_RANGE",
      (str, range2, input) => {
        assert(range2, 'Missing "range" argument');
        let received;
        if (Number.isInteger(input) && Math.abs(input) > 2 ** 32) {
          received = addNumericalSeparator(String(input));
        } else if (typeof input === "bigint") {
          received = String(input);
          const limit = BigInt(2) ** BigInt(32);
          if (input > limit || input < -limit) {
            received = addNumericalSeparator(received);
          }
          received += "n";
        } else {
          received = inspect4(input);
        }
        return `The value of "${str}" is out of range. It must be ${range2}. Received ${received}`;
      },
      RangeError
    );
    E2("ERR_MULTIPLE_CALLBACK", "Callback called multiple times", Error);
    E2("ERR_METHOD_NOT_IMPLEMENTED", "The %s method is not implemented", Error);
    E2("ERR_STREAM_ALREADY_FINISHED", "Cannot call %s after a stream was finished", Error);
    E2("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable", Error);
    E2("ERR_STREAM_DESTROYED", "Cannot call %s after a stream was destroyed", Error);
    E2("ERR_STREAM_NULL_VALUES", "May not write null values to stream", TypeError);
    E2("ERR_STREAM_PREMATURE_CLOSE", "Premature close", Error);
    E2("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF", Error);
    E2("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event", Error);
    E2("ERR_STREAM_WRITE_AFTER_END", "write after end", Error);
    E2("ERR_UNKNOWN_ENCODING", "Unknown encoding: %s", TypeError);
    module2.exports = {
      AbortError,
      aggregateTwoErrors: hideStackFrames(aggregateTwoErrors),
      hideStackFrames,
      codes
    };
  }
});

// ../../node_modules/compress-commons/node_modules/readable-stream/lib/ours/util.js
var require_util5 = __commonJS({
  "../../node_modules/compress-commons/node_modules/readable-stream/lib/ours/util.js"(exports2, module2) {
    "use strict";
    var bufferModule = require("buffer");
    var { format: format26, inspect: inspect4 } = require_inspect3();
    var {
      codes: { ERR_INVALID_ARG_TYPE }
    } = require_errors3();
    var { kResistStopPropagation, AggregateError, SymbolDispose } = require_primordials3();
    var AbortSignal2 = globalThis.AbortSignal || require_abort_controller().AbortSignal;
    var AbortController2 = globalThis.AbortController || require_abort_controller().AbortController;
    var AsyncFunction = Object.getPrototypeOf(async function() {
    }).constructor;
    var Blob2 = globalThis.Blob || bufferModule.Blob;
    var isBlob2 = typeof Blob2 !== "undefined" ? /* @__PURE__ */ __name(function isBlob3(b3) {
      return b3 instanceof Blob2;
    }, "isBlob") : /* @__PURE__ */ __name(function isBlob3(b3) {
      return false;
    }, "isBlob");
    var validateAbortSignal = /* @__PURE__ */ __name((signal, name) => {
      if (signal !== void 0 && (signal === null || typeof signal !== "object" || !("aborted" in signal))) {
        throw new ERR_INVALID_ARG_TYPE(name, "AbortSignal", signal);
      }
    }, "validateAbortSignal");
    var validateFunction = /* @__PURE__ */ __name((value, name) => {
      if (typeof value !== "function") {
        throw new ERR_INVALID_ARG_TYPE(name, "Function", value);
      }
    }, "validateFunction");
    module2.exports = {
      AggregateError,
      kEmptyObject: Object.freeze({}),
      once(callback) {
        let called = false;
        return function(...args) {
          if (called) {
            return;
          }
          called = true;
          callback.apply(this, args);
        };
      },
      createDeferredPromise: /* @__PURE__ */ __name(function() {
        let resolve13;
        let reject;
        const promise = new Promise((res, rej) => {
          resolve13 = res;
          reject = rej;
        });
        return {
          promise,
          resolve: resolve13,
          reject
        };
      }, "createDeferredPromise"),
      promisify(fn) {
        return new Promise((resolve13, reject) => {
          fn((err, ...args) => {
            if (err) {
              return reject(err);
            }
            return resolve13(...args);
          });
        });
      },
      debuglog() {
        return function() {
        };
      },
      format: format26,
      inspect: inspect4,
      types: {
        isAsyncFunction(fn) {
          return fn instanceof AsyncFunction;
        },
        isArrayBufferView(arr) {
          return ArrayBuffer.isView(arr);
        }
      },
      isBlob: isBlob2,
      deprecate(fn, message2) {
        return fn;
      },
      addAbortListener: require("events").addAbortListener || /* @__PURE__ */ __name(function addAbortListener(signal, listener) {
        if (signal === void 0) {
          throw new ERR_INVALID_ARG_TYPE("signal", "AbortSignal", signal);
        }
        validateAbortSignal(signal, "signal");
        validateFunction(listener, "listener");
        let removeEventListener;
        if (signal.aborted) {
          queueMicrotask(() => listener());
        } else {
          signal.addEventListener("abort", listener, {
            __proto__: null,
            once: true,
            [kResistStopPropagation]: true
          });
          removeEventListener = /* @__PURE__ */ __name(() => {
            signal.removeEventListener("abort", listener);
          }, "removeEventListener");
        }
        return {
          __proto__: null,
          [SymbolDispose]() {
            var _removeEventListener;
            (_removeEventListener = removeEventListener) === null || _removeEventListener === void 0 ? void 0 : _removeEventListener();
          }
        };
      }, "addAbortListener"),
      AbortSignalAny: AbortSignal2.any || /* @__PURE__ */ __name(function AbortSignalAny(signals) {
        if (signals.length === 1) {
          return signals[0];
        }
        const ac = new AbortController2();
        const abort = /* @__PURE__ */ __name(() => ac.abort(), "abort");
        signals.forEach((signal) => {
          validateAbortSignal(signal, "signals");
          signal.addEventListener("abort", abort, {
            once: true
          });
        });
        ac.signal.addEventListener(
          "abort",
          () => {
            signals.forEach((signal) => signal.removeEventListener("abort", abort));
          },
          {
            once: true
          }
        );
        return ac.signal;
      }, "AbortSignalAny")
    };
    module2.exports.promisify.custom = Symbol.for("nodejs.util.promisify.custom");
  }
});

// ../../node_modules/compress-commons/node_modules/readable-stream/lib/internal/validators.js
var require_validators3 = __commonJS({
  "../../node_modules/compress-commons/node_modules/readable-stream/lib/internal/validators.js"(exports2, module2) {
    "use strict";
    var {
      ArrayIsArray,
      ArrayPrototypeIncludes,
      ArrayPrototypeJoin,
      ArrayPrototypeMap,
      NumberIsInteger,
      NumberIsNaN,
      NumberMAX_SAFE_INTEGER,
      NumberMIN_SAFE_INTEGER,
      NumberParseInt,
      ObjectPrototypeHasOwnProperty,
      RegExpPrototypeExec,
      String: String2,
      StringPrototypeToUpperCase,
      StringPrototypeTrim
    } = require_primordials3();
    var {
      hideStackFrames,
      codes: { ERR_SOCKET_BAD_PORT, ERR_INVALID_ARG_TYPE, ERR_INVALID_ARG_VALUE, ERR_OUT_OF_RANGE, ERR_UNKNOWN_SIGNAL }
    } = require_errors3();
    var { normalizeEncoding } = require_util5();
    var { isAsyncFunction, isArrayBufferView: isArrayBufferView2 } = require_util5().types;
    var signals = {};
    function isInt32(value) {
      return value === (value | 0);
    }
    __name(isInt32, "isInt32");
    function isUint32(value) {
      return value === value >>> 0;
    }
    __name(isUint32, "isUint32");
    var octalReg = /^[0-7]+$/;
    var modeDesc = "must be a 32-bit unsigned integer or an octal string";
    function parseFileMode(value, name, def) {
      if (typeof value === "undefined") {
        value = def;
      }
      if (typeof value === "string") {
        if (RegExpPrototypeExec(octalReg, value) === null) {
          throw new ERR_INVALID_ARG_VALUE(name, value, modeDesc);
        }
        value = NumberParseInt(value, 8);
      }
      validateUint32(value, name);
      return value;
    }
    __name(parseFileMode, "parseFileMode");
    var validateInteger = hideStackFrames((value, name, min = NumberMIN_SAFE_INTEGER, max = NumberMAX_SAFE_INTEGER) => {
      if (typeof value !== "number") throw new ERR_INVALID_ARG_TYPE(name, "number", value);
      if (!NumberIsInteger(value)) throw new ERR_OUT_OF_RANGE(name, "an integer", value);
      if (value < min || value > max) throw new ERR_OUT_OF_RANGE(name, `>= ${min} && <= ${max}`, value);
    });
    var validateInt32 = hideStackFrames((value, name, min = -2147483648, max = 2147483647) => {
      if (typeof value !== "number") {
        throw new ERR_INVALID_ARG_TYPE(name, "number", value);
      }
      if (!NumberIsInteger(value)) {
        throw new ERR_OUT_OF_RANGE(name, "an integer", value);
      }
      if (value < min || value > max) {
        throw new ERR_OUT_OF_RANGE(name, `>= ${min} && <= ${max}`, value);
      }
    });
    var validateUint32 = hideStackFrames((value, name, positive = false) => {
      if (typeof value !== "number") {
        throw new ERR_INVALID_ARG_TYPE(name, "number", value);
      }
      if (!NumberIsInteger(value)) {
        throw new ERR_OUT_OF_RANGE(name, "an integer", value);
      }
      const min = positive ? 1 : 0;
      const max = 4294967295;
      if (value < min || value > max) {
        throw new ERR_OUT_OF_RANGE(name, `>= ${min} && <= ${max}`, value);
      }
    });
    function validateString(value, name) {
      if (typeof value !== "string") throw new ERR_INVALID_ARG_TYPE(name, "string", value);
    }
    __name(validateString, "validateString");
    function validateNumber(value, name, min = void 0, max) {
      if (typeof value !== "number") throw new ERR_INVALID_ARG_TYPE(name, "number", value);
      if (min != null && value < min || max != null && value > max || (min != null || max != null) && NumberIsNaN(value)) {
        throw new ERR_OUT_OF_RANGE(
          name,
          `${min != null ? `>= ${min}` : ""}${min != null && max != null ? " && " : ""}${max != null ? `<= ${max}` : ""}`,
          value
        );
      }
    }
    __name(validateNumber, "validateNumber");
    var validateOneOf = hideStackFrames((value, name, oneOf) => {
      if (!ArrayPrototypeIncludes(oneOf, value)) {
        const allowed = ArrayPrototypeJoin(
          ArrayPrototypeMap(oneOf, (v6) => typeof v6 === "string" ? `'${v6}'` : String2(v6)),
          ", "
        );
        const reason = "must be one of: " + allowed;
        throw new ERR_INVALID_ARG_VALUE(name, value, reason);
      }
    });
    function validateBoolean(value, name) {
      if (typeof value !== "boolean") throw new ERR_INVALID_ARG_TYPE(name, "boolean", value);
    }
    __name(validateBoolean, "validateBoolean");
    function getOwnPropertyValueOrDefault(options, key, defaultValue) {
      return options == null || !ObjectPrototypeHasOwnProperty(options, key) ? defaultValue : options[key];
    }
    __name(getOwnPropertyValueOrDefault, "getOwnPropertyValueOrDefault");
    var validateObject = hideStackFrames((value, name, options = null) => {
      const allowArray = getOwnPropertyValueOrDefault(options, "allowArray", false);
      const allowFunction = getOwnPropertyValueOrDefault(options, "allowFunction", false);
      const nullable = getOwnPropertyValueOrDefault(options, "nullable", false);
      if (!nullable && value === null || !allowArray && ArrayIsArray(value) || typeof value !== "object" && (!allowFunction || typeof value !== "function")) {
        throw new ERR_INVALID_ARG_TYPE(name, "Object", value);
      }
    });
    var validateDictionary = hideStackFrames((value, name) => {
      if (value != null && typeof value !== "object" && typeof value !== "function") {
        throw new ERR_INVALID_ARG_TYPE(name, "a dictionary", value);
      }
    });
    var validateArray = hideStackFrames((value, name, minLength = 0) => {
      if (!ArrayIsArray(value)) {
        throw new ERR_INVALID_ARG_TYPE(name, "Array", value);
      }
      if (value.length < minLength) {
        const reason = `must be longer than ${minLength}`;
        throw new ERR_INVALID_ARG_VALUE(name, value, reason);
      }
    });
    function validateStringArray(value, name) {
      validateArray(value, name);
      for (let i3 = 0; i3 < value.length; i3++) {
        validateString(value[i3], `${name}[${i3}]`);
      }
    }
    __name(validateStringArray, "validateStringArray");
    function validateBooleanArray(value, name) {
      validateArray(value, name);
      for (let i3 = 0; i3 < value.length; i3++) {
        validateBoolean(value[i3], `${name}[${i3}]`);
      }
    }
    __name(validateBooleanArray, "validateBooleanArray");
    function validateAbortSignalArray(value, name) {
      validateArray(value, name);
      for (let i3 = 0; i3 < value.length; i3++) {
        const signal = value[i3];
        const indexedName = `${name}[${i3}]`;
        if (signal == null) {
          throw new ERR_INVALID_ARG_TYPE(indexedName, "AbortSignal", signal);
        }
        validateAbortSignal(signal, indexedName);
      }
    }
    __name(validateAbortSignalArray, "validateAbortSignalArray");
    function validateSignalName(signal, name = "signal") {
      validateString(signal, name);
      if (signals[signal] === void 0) {
        if (signals[StringPrototypeToUpperCase(signal)] !== void 0) {
          throw new ERR_UNKNOWN_SIGNAL(signal + " (signals must use all capital letters)");
        }
        throw new ERR_UNKNOWN_SIGNAL(signal);
      }
    }
    __name(validateSignalName, "validateSignalName");
    var validateBuffer = hideStackFrames((buffer, name = "buffer") => {
      if (!isArrayBufferView2(buffer)) {
        throw new ERR_INVALID_ARG_TYPE(name, ["Buffer", "TypedArray", "DataView"], buffer);
      }
    });
    function validateEncoding(data3, encoding) {
      const normalizedEncoding = normalizeEncoding(encoding);
      const length = data3.length;
      if (normalizedEncoding === "hex" && length % 2 !== 0) {
        throw new ERR_INVALID_ARG_VALUE("encoding", encoding, `is invalid for data of length ${length}`);
      }
    }
    __name(validateEncoding, "validateEncoding");
    function validatePort(port, name = "Port", allowZero = true) {
      if (typeof port !== "number" && typeof port !== "string" || typeof port === "string" && StringPrototypeTrim(port).length === 0 || +port !== +port >>> 0 || port > 65535 || port === 0 && !allowZero) {
        throw new ERR_SOCKET_BAD_PORT(name, port, allowZero);
      }
      return port | 0;
    }
    __name(validatePort, "validatePort");
    var validateAbortSignal = hideStackFrames((signal, name) => {
      if (signal !== void 0 && (signal === null || typeof signal !== "object" || !("aborted" in signal))) {
        throw new ERR_INVALID_ARG_TYPE(name, "AbortSignal", signal);
      }
    });
    var validateFunction = hideStackFrames((value, name) => {
      if (typeof value !== "function") throw new ERR_INVALID_ARG_TYPE(name, "Function", value);
    });
    var validatePlainFunction = hideStackFrames((value, name) => {
      if (typeof value !== "function" || isAsyncFunction(value)) throw new ERR_INVALID_ARG_TYPE(name, "Function", value);
    });
    var validateUndefined = hideStackFrames((value, name) => {
      if (value !== void 0) throw new ERR_INVALID_ARG_TYPE(name, "undefined", value);
    });
    function validateUnion(value, name, union) {
      if (!ArrayPrototypeIncludes(union, value)) {
        throw new ERR_INVALID_ARG_TYPE(name, `('${ArrayPrototypeJoin(union, "|")}')`, value);
      }
    }
    __name(validateUnion, "validateUnion");
    var linkValueRegExp = /^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;
    function validateLinkHeaderFormat(value, name) {
      if (typeof value === "undefined" || !RegExpPrototypeExec(linkValueRegExp, value)) {
        throw new ERR_INVALID_ARG_VALUE(
          name,
          value,
          'must be an array or string of format "</styles.css>; rel=preload; as=style"'
        );
      }
    }
    __name(validateLinkHeaderFormat, "validateLinkHeaderFormat");
    function validateLinkHeaderValue(hints) {
      if (typeof hints === "string") {
        validateLinkHeaderFormat(hints, "hints");
        return hints;
      } else if (ArrayIsArray(hints)) {
        const hintsLength = hints.length;
        let result2 = "";
        if (hintsLength === 0) {
          return result2;
        }
        for (let i3 = 0; i3 < hintsLength; i3++) {
          const link = hints[i3];
          validateLinkHeaderFormat(link, "hints");
          result2 += link;
          if (i3 !== hintsLength - 1) {
            result2 += ", ";
          }
        }
        return result2;
      }
      throw new ERR_INVALID_ARG_VALUE(
        "hints",
        hints,
        'must be an array or string of format "</styles.css>; rel=preload; as=style"'
      );
    }
    __name(validateLinkHeaderValue, "validateLinkHeaderValue");
    module2.exports = {
      isInt32,
      isUint32,
      parseFileMode,
      validateArray,
      validateStringArray,
      validateBooleanArray,
      validateAbortSignalArray,
      validateBoolean,
      validateBuffer,
      validateDictionary,
      validateEncoding,
      validateFunction,
      validateInt32,
      validateInteger,
      validateNumber,
      validateObject,
      validateOneOf,
      validatePlainFunction,
      validatePort,
      validateSignalName,
      validateString,
      validateUint32,
      validateUndefined,
      validateUnion,
      validateAbortSignal,
      validateLinkHeaderValue
    };
  }
});

// ../../node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/utils.js
var require_utils4 = __commonJS({
  "../../node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/utils.js"(exports2, module2) {
    "use strict";
    var { SymbolAsyncIterator, SymbolIterator, SymbolFor } = require_primordials3();
    var kIsDestroyed = SymbolFor("nodejs.stream.destroyed");
    var kIsErrored = SymbolFor("nodejs.stream.errored");
    var kIsReadable = SymbolFor("nodejs.stream.readable");
    var kIsWritable = SymbolFor("nodejs.stream.writable");
    var kIsDisturbed = SymbolFor("nodejs.stream.disturbed");
    var kIsClosedPromise = SymbolFor("nodejs.webstream.isClosedPromise");
    var kControllerErrorFunction = SymbolFor("nodejs.webstream.controllerErrorFunction");
    function isReadableNodeStream(obj, strict = false) {
      var _obj$_readableState;
      return !!(obj && typeof obj.pipe === "function" && typeof obj.on === "function" && (!strict || typeof obj.pause === "function" && typeof obj.resume === "function") && (!obj._writableState || ((_obj$_readableState = obj._readableState) === null || _obj$_readableState === void 0 ? void 0 : _obj$_readableState.readable) !== false) && // Duplex
      (!obj._writableState || obj._readableState));
    }
    __name(isReadableNodeStream, "isReadableNodeStream");
    function isWritableNodeStream(obj) {
      var _obj$_writableState;
      return !!(obj && typeof obj.write === "function" && typeof obj.on === "function" && (!obj._readableState || ((_obj$_writableState = obj._writableState) === null || _obj$_writableState === void 0 ? void 0 : _obj$_writableState.writable) !== false));
    }
    __name(isWritableNodeStream, "isWritableNodeStream");
    function isDuplexNodeStream(obj) {
      return !!(obj && typeof obj.pipe === "function" && obj._readableState && typeof obj.on === "function" && typeof obj.write === "function");
    }
    __name(isDuplexNodeStream, "isDuplexNodeStream");
    function isNodeStream(obj) {
      return obj && (obj._readableState || obj._writableState || typeof obj.write === "function" && typeof obj.on === "function" || typeof obj.pipe === "function" && typeof obj.on === "function");
    }
    __name(isNodeStream, "isNodeStream");
    function isReadableStream2(obj) {
      return !!(obj && !isNodeStream(obj) && typeof obj.pipeThrough === "function" && typeof obj.getReader === "function" && typeof obj.cancel === "function");
    }
    __name(isReadableStream2, "isReadableStream");
    function isWritableStream(obj) {
      return !!(obj && !isNodeStream(obj) && typeof obj.getWriter === "function" && typeof obj.abort === "function");
    }
    __name(isWritableStream, "isWritableStream");
    function isTransformStream(obj) {
      return !!(obj && !isNodeStream(obj) && typeof obj.readable === "object" && typeof obj.writable === "object");
    }
    __name(isTransformStream, "isTransformStream");
    function isWebStream(obj) {
      return isReadableStream2(obj) || isWritableStream(obj) || isTransformStream(obj);
    }
    __name(isWebStream, "isWebStream");
    function isIterable(obj, isAsync) {
      if (obj == null) return false;
      if (isAsync === true) return typeof obj[SymbolAsyncIterator] === "function";
      if (isAsync === false) return typeof obj[SymbolIterator] === "function";
      return typeof obj[SymbolAsyncIterator] === "function" || typeof obj[SymbolIterator] === "function";
    }
    __name(isIterable, "isIterable");
    function isDestroyed(stream3) {
      if (!isNodeStream(stream3)) return null;
      const wState = stream3._writableState;
      const rState = stream3._readableState;
      const state2 = wState || rState;
      return !!(stream3.destroyed || stream3[kIsDestroyed] || state2 !== null && state2 !== void 0 && state2.destroyed);
    }
    __name(isDestroyed, "isDestroyed");
    function isWritableEnded(stream3) {
      if (!isWritableNodeStream(stream3)) return null;
      if (stream3.writableEnded === true) return true;
      const wState = stream3._writableState;
      if (wState !== null && wState !== void 0 && wState.errored) return false;
      if (typeof (wState === null || wState === void 0 ? void 0 : wState.ended) !== "boolean") return null;
      return wState.ended;
    }
    __name(isWritableEnded, "isWritableEnded");
    function isWritableFinished(stream3, strict) {
      if (!isWritableNodeStream(stream3)) return null;
      if (stream3.writableFinished === true) return true;
      const wState = stream3._writableState;
      if (wState !== null && wState !== void 0 && wState.errored) return false;
      if (typeof (wState === null || wState === void 0 ? void 0 : wState.finished) !== "boolean") return null;
      return !!(wState.finished || strict === false && wState.ended === true && wState.length === 0);
    }
    __name(isWritableFinished, "isWritableFinished");
    function isReadableEnded(stream3) {
      if (!isReadableNodeStream(stream3)) return null;
      if (stream3.readableEnded === true) return true;
      const rState = stream3._readableState;
      if (!rState || rState.errored) return false;
      if (typeof (rState === null || rState === void 0 ? void 0 : rState.ended) !== "boolean") return null;
      return rState.ended;
    }
    __name(isReadableEnded, "isReadableEnded");
    function isReadableFinished(stream3, strict) {
      if (!isReadableNodeStream(stream3)) return null;
      const rState = stream3._readableState;
      if (rState !== null && rState !== void 0 && rState.errored) return false;
      if (typeof (rState === null || rState === void 0 ? void 0 : rState.endEmitted) !== "boolean") return null;
      return !!(rState.endEmitted || strict === false && rState.ended === true && rState.length === 0);
    }
    __name(isReadableFinished, "isReadableFinished");
    function isReadable2(stream3) {
      if (stream3 && stream3[kIsReadable] != null) return stream3[kIsReadable];
      if (typeof (stream3 === null || stream3 === void 0 ? void 0 : stream3.readable) !== "boolean") return null;
      if (isDestroyed(stream3)) return false;
      return isReadableNodeStream(stream3) && stream3.readable && !isReadableFinished(stream3);
    }
    __name(isReadable2, "isReadable");
    function isWritable2(stream3) {
      if (stream3 && stream3[kIsWritable] != null) return stream3[kIsWritable];
      if (typeof (stream3 === null || stream3 === void 0 ? void 0 : stream3.writable) !== "boolean") return null;
      if (isDestroyed(stream3)) return false;
      return isWritableNodeStream(stream3) && stream3.writable && !isWritableEnded(stream3);
    }
    __name(isWritable2, "isWritable");
    function isFinished(stream3, opts) {
      if (!isNodeStream(stream3)) {
        return null;
      }
      if (isDestroyed(stream3)) {
        return true;
      }
      if ((opts === null || opts === void 0 ? void 0 : opts.readable) !== false && isReadable2(stream3)) {
        return false;
      }
      if ((opts === null || opts === void 0 ? void 0 : opts.writable) !== false && isWritable2(stream3)) {
        return false;
      }
      return true;
    }
    __name(isFinished, "isFinished");
    function isWritableErrored(stream3) {
      var _stream$_writableStat, _stream$_writableStat2;
      if (!isNodeStream(stream3)) {
        return null;
      }
      if (stream3.writableErrored) {
        return stream3.writableErrored;
      }
      return (_stream$_writableStat = (_stream$_writableStat2 = stream3._writableState) === null || _stream$_writableStat2 === void 0 ? void 0 : _stream$_writableStat2.errored) !== null && _stream$_writableStat !== void 0 ? _stream$_writableStat : null;
    }
    __name(isWritableErrored, "isWritableErrored");
    function isReadableErrored(stream3) {
      var _stream$_readableStat, _stream$_readableStat2;
      if (!isNodeStream(stream3)) {
        return null;
      }
      if (stream3.readableErrored) {
        return stream3.readableErrored;
      }
      return (_stream$_readableStat = (_stream$_readableStat2 = stream3._readableState) === null || _stream$_readableStat2 === void 0 ? void 0 : _stream$_readableStat2.errored) !== null && _stream$_readableStat !== void 0 ? _stream$_readableStat : null;
    }
    __name(isReadableErrored, "isReadableErrored");
    function isClosed(stream3) {
      if (!isNodeStream(stream3)) {
        return null;
      }
      if (typeof stream3.closed === "boolean") {
        return stream3.closed;
      }
      const wState = stream3._writableState;
      const rState = stream3._readableState;
      if (typeof (wState === null || wState === void 0 ? void 0 : wState.closed) === "boolean" || typeof (rState === null || rState === void 0 ? void 0 : rState.closed) === "boolean") {
        return (wState === null || wState === void 0 ? void 0 : wState.closed) || (rState === null || rState === void 0 ? void 0 : rState.closed);
      }
      if (typeof stream3._closed === "boolean" && isOutgoingMessage(stream3)) {
        return stream3._closed;
      }
      return null;
    }
    __name(isClosed, "isClosed");
    function isOutgoingMessage(stream3) {
      return typeof stream3._closed === "boolean" && typeof stream3._defaultKeepAlive === "boolean" && typeof stream3._removedConnection === "boolean" && typeof stream3._removedContLen === "boolean";
    }
    __name(isOutgoingMessage, "isOutgoingMessage");
    function isServerResponse(stream3) {
      return typeof stream3._sent100 === "boolean" && isOutgoingMessage(stream3);
    }
    __name(isServerResponse, "isServerResponse");
    function isServerRequest(stream3) {
      var _stream$req;
      return typeof stream3._consuming === "boolean" && typeof stream3._dumped === "boolean" && ((_stream$req = stream3.req) === null || _stream$req === void 0 ? void 0 : _stream$req.upgradeOrConnect) === void 0;
    }
    __name(isServerRequest, "isServerRequest");
    function willEmitClose(stream3) {
      if (!isNodeStream(stream3)) return null;
      const wState = stream3._writableState;
      const rState = stream3._readableState;
      const state2 = wState || rState;
      return !state2 && isServerResponse(stream3) || !!(state2 && state2.autoDestroy && state2.emitClose && state2.closed === false);
    }
    __name(willEmitClose, "willEmitClose");
    function isDisturbed(stream3) {
      var _stream$kIsDisturbed;
      return !!(stream3 && ((_stream$kIsDisturbed = stream3[kIsDisturbed]) !== null && _stream$kIsDisturbed !== void 0 ? _stream$kIsDisturbed : stream3.readableDidRead || stream3.readableAborted));
    }
    __name(isDisturbed, "isDisturbed");
    function isErrored(stream3) {
      var _ref, _ref2, _ref3, _ref4, _ref5, _stream$kIsErrored, _stream$_readableStat3, _stream$_writableStat3, _stream$_readableStat4, _stream$_writableStat4;
      return !!(stream3 && ((_ref = (_ref2 = (_ref3 = (_ref4 = (_ref5 = (_stream$kIsErrored = stream3[kIsErrored]) !== null && _stream$kIsErrored !== void 0 ? _stream$kIsErrored : stream3.readableErrored) !== null && _ref5 !== void 0 ? _ref5 : stream3.writableErrored) !== null && _ref4 !== void 0 ? _ref4 : (_stream$_readableStat3 = stream3._readableState) === null || _stream$_readableStat3 === void 0 ? void 0 : _stream$_readableStat3.errorEmitted) !== null && _ref3 !== void 0 ? _ref3 : (_stream$_writableStat3 = stream3._writableState) === null || _stream$_writableStat3 === void 0 ? void 0 : _stream$_writableStat3.errorEmitted) !== null && _ref2 !== void 0 ? _ref2 : (_stream$_readableStat4 = stream3._readableState) === null || _stream$_readableStat4 === void 0 ? void 0 : _stream$_readableStat4.errored) !== null && _ref !== void 0 ? _ref : (_stream$_writableStat4 = stream3._writableState) === null || _stream$_writableStat4 === void 0 ? void 0 : _stream$_writableStat4.errored));
    }
    __name(isErrored, "isErrored");
    module2.exports = {
      isDestroyed,
      kIsDestroyed,
      isDisturbed,
      kIsDisturbed,
      isErrored,
      kIsErrored,
      isReadable: isReadable2,
      kIsReadable,
      kIsClosedPromise,
      kControllerErrorFunction,
      kIsWritable,
      isClosed,
      isDuplexNodeStream,
      isFinished,
      isIterable,
      isReadableNodeStream,
      isReadableStream: isReadableStream2,
      isReadableEnded,
      isReadableFinished,
      isReadableErrored,
      isNodeStream,
      isWebStream,
      isWritable: isWritable2,
      isWritableNodeStream,
      isWritableStream,
      isWritableEnded,
      isWritableFinished,
      isWritableErrored,
      isServerRequest,
      isServerResponse,
      willEmitClose,
      isTransformStream
    };
  }
});

// ../../node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/end-of-stream.js
var require_end_of_stream3 = __commonJS({
  "../../node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"(exports2, module2) {
    "use strict";
    var process3 = require_process();
    var { AbortError, codes } = require_errors3();
    var { ERR_INVALID_ARG_TYPE, ERR_STREAM_PREMATURE_CLOSE } = codes;
    var { kEmptyObject, once } = require_util5();
    var { validateAbortSignal, validateFunction, validateObject, validateBoolean } = require_validators3();
    var { Promise: Promise2, PromisePrototypeThen, SymbolDispose } = require_primordials3();
    var {
      isClosed,
      isReadable: isReadable2,
      isReadableNodeStream,
      isReadableStream: isReadableStream2,
      isReadableFinished,
      isReadableErrored,
      isWritable: isWritable2,
      isWritableNodeStream,
      isWritableStream,
      isWritableFinished,
      isWritableErrored,
      isNodeStream,
      willEmitClose: _willEmitClose,
      kIsClosedPromise
    } = require_utils4();
    var addAbortListener;
    function isRequest(stream3) {
      return stream3.setHeader && typeof stream3.abort === "function";
    }
    __name(isRequest, "isRequest");
    var nop = /* @__PURE__ */ __name(() => {
    }, "nop");
    function eos(stream3, options, callback) {
      var _options$readable, _options$writable;
      if (arguments.length === 2) {
        callback = options;
        options = kEmptyObject;
      } else if (options == null) {
        options = kEmptyObject;
      } else {
        validateObject(options, "options");
      }
      validateFunction(callback, "callback");
      validateAbortSignal(options.signal, "options.signal");
      callback = once(callback);
      if (isReadableStream2(stream3) || isWritableStream(stream3)) {
        return eosWeb(stream3, options, callback);
      }
      if (!isNodeStream(stream3)) {
        throw new ERR_INVALID_ARG_TYPE("stream", ["ReadableStream", "WritableStream", "Stream"], stream3);
      }
      const readable = (_options$readable = options.readable) !== null && _options$readable !== void 0 ? _options$readable : isReadableNodeStream(stream3);
      const writable = (_options$writable = options.writable) !== null && _options$writable !== void 0 ? _options$writable : isWritableNodeStream(stream3);
      const wState = stream3._writableState;
      const rState = stream3._readableState;
      const onlegacyfinish = /* @__PURE__ */ __name(() => {
        if (!stream3.writable) {
          onfinish();
        }
      }, "onlegacyfinish");
      let willEmitClose = _willEmitClose(stream3) && isReadableNodeStream(stream3) === readable && isWritableNodeStream(stream3) === writable;
      let writableFinished = isWritableFinished(stream3, false);
      const onfinish = /* @__PURE__ */ __name(() => {
        writableFinished = true;
        if (stream3.destroyed) {
          willEmitClose = false;
        }
        if (willEmitClose && (!stream3.readable || readable)) {
          return;
        }
        if (!readable || readableFinished) {
          callback.call(stream3);
        }
      }, "onfinish");
      let readableFinished = isReadableFinished(stream3, false);
      const onend = /* @__PURE__ */ __name(() => {
        readableFinished = true;
        if (stream3.destroyed) {
          willEmitClose = false;
        }
        if (willEmitClose && (!stream3.writable || writable)) {
          return;
        }
        if (!writable || writableFinished) {
          callback.call(stream3);
        }
      }, "onend");
      const onerror = /* @__PURE__ */ __name((err) => {
        callback.call(stream3, err);
      }, "onerror");
      let closed = isClosed(stream3);
      const onclose = /* @__PURE__ */ __name(() => {
        closed = true;
        const errored = isWritableErrored(stream3) || isReadableErrored(stream3);
        if (errored && typeof errored !== "boolean") {
          return callback.call(stream3, errored);
        }
        if (readable && !readableFinished && isReadableNodeStream(stream3, true)) {
          if (!isReadableFinished(stream3, false)) return callback.call(stream3, new ERR_STREAM_PREMATURE_CLOSE());
        }
        if (writable && !writableFinished) {
          if (!isWritableFinished(stream3, false)) return callback.call(stream3, new ERR_STREAM_PREMATURE_CLOSE());
        }
        callback.call(stream3);
      }, "onclose");
      const onclosed = /* @__PURE__ */ __name(() => {
        closed = true;
        const errored = isWritableErrored(stream3) || isReadableErrored(stream3);
        if (errored && typeof errored !== "boolean") {
          return callback.call(stream3, errored);
        }
        callback.call(stream3);
      }, "onclosed");
      const onrequest = /* @__PURE__ */ __name(() => {
        stream3.req.on("finish", onfinish);
      }, "onrequest");
      if (isRequest(stream3)) {
        stream3.on("complete", onfinish);
        if (!willEmitClose) {
          stream3.on("abort", onclose);
        }
        if (stream3.req) {
          onrequest();
        } else {
          stream3.on("request", onrequest);
        }
      } else if (writable && !wState) {
        stream3.on("end", onlegacyfinish);
        stream3.on("close", onlegacyfinish);
      }
      if (!willEmitClose && typeof stream3.aborted === "boolean") {
        stream3.on("aborted", onclose);
      }
      stream3.on("end", onend);
      stream3.on("finish", onfinish);
      if (options.error !== false) {
        stream3.on("error", onerror);
      }
      stream3.on("close", onclose);
      if (closed) {
        process3.nextTick(onclose);
      } else if (wState !== null && wState !== void 0 && wState.errorEmitted || rState !== null && rState !== void 0 && rState.errorEmitted) {
        if (!willEmitClose) {
          process3.nextTick(onclosed);
        }
      } else if (!readable && (!willEmitClose || isReadable2(stream3)) && (writableFinished || isWritable2(stream3) === false)) {
        process3.nextTick(onclosed);
      } else if (!writable && (!willEmitClose || isWritable2(stream3)) && (readableFinished || isReadable2(stream3) === false)) {
        process3.nextTick(onclosed);
      } else if (rState && stream3.req && stream3.aborted) {
        process3.nextTick(onclosed);
      }
      const cleanup = /* @__PURE__ */ __name(() => {
        callback = nop;
        stream3.removeListener("aborted", onclose);
        stream3.removeListener("complete", onfinish);
        stream3.removeListener("abort", onclose);
        stream3.removeListener("request", onrequest);
        if (stream3.req) stream3.req.removeListener("finish", onfinish);
        stream3.removeListener("end", onlegacyfinish);
        stream3.removeListener("close", onlegacyfinish);
        stream3.removeListener("finish", onfinish);
        stream3.removeListener("end", onend);
        stream3.removeListener("error", onerror);
        stream3.removeListener("close", onclose);
      }, "cleanup");
      if (options.signal && !closed) {
        const abort = /* @__PURE__ */ __name(() => {
          const endCallback = callback;
          cleanup();
          endCallback.call(
            stream3,
            new AbortError(void 0, {
              cause: options.signal.reason
            })
          );
        }, "abort");
        if (options.signal.aborted) {
          process3.nextTick(abort);
        } else {
          addAbortListener = addAbortListener || require_util5().addAbortListener;
          const disposable = addAbortListener(options.signal, abort);
          const originalCallback = callback;
          callback = once((...args) => {
            disposable[SymbolDispose]();
            originalCallback.apply(stream3, args);
          });
        }
      }
      return cleanup;
    }
    __name(eos, "eos");
    function eosWeb(stream3, options, callback) {
      let isAborted = false;
      let abort = nop;
      if (options.signal) {
        abort = /* @__PURE__ */ __name(() => {
          isAborted = true;
          callback.call(
            stream3,
            new AbortError(void 0, {
              cause: options.signal.reason
            })
          );
        }, "abort");
        if (options.signal.aborted) {
          process3.nextTick(abort);
        } else {
          addAbortListener = addAbortListener || require_util5().addAbortListener;
          const disposable = addAbortListener(options.signal, abort);
          const originalCallback = callback;
          callback = once((...args) => {
            disposable[SymbolDispose]();
            originalCallback.apply(stream3, args);
          });
        }
      }
      const resolverFn = /* @__PURE__ */ __name((...args) => {
        if (!isAborted) {
          process3.nextTick(() => callback.apply(stream3, args));
        }
      }, "resolverFn");
      PromisePrototypeThen(stream3[kIsClosedPromise].promise, resolverFn, resolverFn);
      return nop;
    }
    __name(eosWeb, "eosWeb");
    function finished(stream3, opts) {
      var _opts;
      let autoCleanup = false;
      if (opts === null) {
        opts = kEmptyObject;
      }
      if ((_opts = opts) !== null && _opts !== void 0 && _opts.cleanup) {
        validateBoolean(opts.cleanup, "cleanup");
        autoCleanup = opts.cleanup;
      }
      return new Promise2((resolve13, reject) => {
        const cleanup = eos(stream3, opts, (err) => {
          if (autoCleanup) {
            cleanup();
          }
          if (err) {
            reject(err);
          } else {
            resolve13();
          }
        });
      });
    }
    __name(finished, "finished");
    module2.exports = eos;
    module2.exports.finished = finished;
  }
});

// ../../node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/destroy.js
var require_destroy4 = __commonJS({
  "../../node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/destroy.js"(exports2, module2) {
    "use strict";
    var process3 = require_process();
    var {
      aggregateTwoErrors,
      codes: { ERR_MULTIPLE_CALLBACK },
      AbortError
    } = require_errors3();
    var { Symbol: Symbol2 } = require_primordials3();
    var { kIsDestroyed, isDestroyed, isFinished, isServerRequest } = require_utils4();
    var kDestroy = Symbol2("kDestroy");
    var kConstruct = Symbol2("kConstruct");
    function checkError(err, w3, r3) {
      if (err) {
        err.stack;
        if (w3 && !w3.errored) {
          w3.errored = err;
        }
        if (r3 && !r3.errored) {
          r3.errored = err;
        }
      }
    }
    __name(checkError, "checkError");
    function destroy(err, cb) {
      const r3 = this._readableState;
      const w3 = this._writableState;
      const s3 = w3 || r3;
      if (w3 !== null && w3 !== void 0 && w3.destroyed || r3 !== null && r3 !== void 0 && r3.destroyed) {
        if (typeof cb === "function") {
          cb();
        }
        return this;
      }
      checkError(err, w3, r3);
      if (w3) {
        w3.destroyed = true;
      }
      if (r3) {
        r3.destroyed = true;
      }
      if (!s3.constructed) {
        this.once(kDestroy, function(er) {
          _destroy(this, aggregateTwoErrors(er, err), cb);
        });
      } else {
        _destroy(this, err, cb);
      }
      return this;
    }
    __name(destroy, "destroy");
    function _destroy(self2, err, cb) {
      let called = false;
      function onDestroy(err2) {
        if (called) {
          return;
        }
        called = true;
        const r3 = self2._readableState;
        const w3 = self2._writableState;
        checkError(err2, w3, r3);
        if (w3) {
          w3.closed = true;
        }
        if (r3) {
          r3.closed = true;
        }
        if (typeof cb === "function") {
          cb(err2);
        }
        if (err2) {
          process3.nextTick(emitErrorCloseNT, self2, err2);
        } else {
          process3.nextTick(emitCloseNT, self2);
        }
      }
      __name(onDestroy, "onDestroy");
      try {
        self2._destroy(err || null, onDestroy);
      } catch (err2) {
        onDestroy(err2);
      }
    }
    __name(_destroy, "_destroy");
    function emitErrorCloseNT(self2, err) {
      emitErrorNT(self2, err);
      emitCloseNT(self2);
    }
    __name(emitErrorCloseNT, "emitErrorCloseNT");
    function emitCloseNT(self2) {
      const r3 = self2._readableState;
      const w3 = self2._writableState;
      if (w3) {
        w3.closeEmitted = true;
      }
      if (r3) {
        r3.closeEmitted = true;
      }
      if (w3 !== null && w3 !== void 0 && w3.emitClose || r3 !== null && r3 !== void 0 && r3.emitClose) {
        self2.emit("close");
      }
    }
    __name(emitCloseNT, "emitCloseNT");
    function emitErrorNT(self2, err) {
      const r3 = self2._readableState;
      const w3 = self2._writableState;
      if (w3 !== null && w3 !== void 0 && w3.errorEmitted || r3 !== null && r3 !== void 0 && r3.errorEmitted) {
        return;
      }
      if (w3) {
        w3.errorEmitted = true;
      }
      if (r3) {
        r3.errorEmitted = true;
      }
      self2.emit("error", err);
    }
    __name(emitErrorNT, "emitErrorNT");
    function undestroy() {
      const r3 = this._readableState;
      const w3 = this._writableState;
      if (r3) {
        r3.constructed = true;
        r3.closed = false;
        r3.closeEmitted = false;
        r3.destroyed = false;
        r3.errored = null;
        r3.errorEmitted = false;
        r3.reading = false;
        r3.ended = r3.readable === false;
        r3.endEmitted = r3.readable === false;
      }
      if (w3) {
        w3.constructed = true;
        w3.destroyed = false;
        w3.closed = false;
        w3.closeEmitted = false;
        w3.errored = null;
        w3.errorEmitted = false;
        w3.finalCalled = false;
        w3.prefinished = false;
        w3.ended = w3.writable === false;
        w3.ending = w3.writable === false;
        w3.finished = w3.writable === false;
      }
    }
    __name(undestroy, "undestroy");
    function errorOrDestroy(stream3, err, sync2) {
      const r3 = stream3._readableState;
      const w3 = stream3._writableState;
      if (w3 !== null && w3 !== void 0 && w3.destroyed || r3 !== null && r3 !== void 0 && r3.destroyed) {
        return this;
      }
      if (r3 !== null && r3 !== void 0 && r3.autoDestroy || w3 !== null && w3 !== void 0 && w3.autoDestroy)
        stream3.destroy(err);
      else if (err) {
        err.stack;
        if (w3 && !w3.errored) {
          w3.errored = err;
        }
        if (r3 && !r3.errored) {
          r3.errored = err;
        }
        if (sync2) {
          process3.nextTick(emitErrorNT, stream3, err);
        } else {
          emitErrorNT(stream3, err);
        }
      }
    }
    __name(errorOrDestroy, "errorOrDestroy");
    function construct(stream3, cb) {
      if (typeof stream3._construct !== "function") {
        return;
      }
      const r3 = stream3._readableState;
      const w3 = stream3._writableState;
      if (r3) {
        r3.constructed = false;
      }
      if (w3) {
        w3.constructed = false;
      }
      stream3.once(kConstruct, cb);
      if (stream3.listenerCount(kConstruct) > 1) {
        return;
      }
      process3.nextTick(constructNT, stream3);
    }
    __name(construct, "construct");
    function constructNT(stream3) {
      let called = false;
      function onConstruct(err) {
        if (called) {
          errorOrDestroy(stream3, err !== null && err !== void 0 ? err : new ERR_MULTIPLE_CALLBACK());
          return;
        }
        called = true;
        const r3 = stream3._readableState;
        const w3 = stream3._writableState;
        const s3 = w3 || r3;
        if (r3) {
          r3.constructed = true;
        }
        if (w3) {
          w3.constructed = true;
        }
        if (s3.destroyed) {
          stream3.emit(kDestroy, err);
        } else if (err) {
          errorOrDestroy(stream3, err, true);
        } else {
          process3.nextTick(emitConstructNT, stream3);
        }
      }
      __name(onConstruct, "onConstruct");
      try {
        stream3._construct((err) => {
          process3.nextTick(onConstruct, err);
        });
      } catch (err) {
        process3.nextTick(onConstruct, err);
      }
    }
    __name(constructNT, "constructNT");
    function emitConstructNT(stream3) {
      stream3.emit(kConstruct);
    }
    __name(emitConstructNT, "emitConstructNT");
    function isRequest(stream3) {
      return (stream3 === null || stream3 === void 0 ? void 0 : stream3.setHeader) && typeof stream3.abort === "function";
    }
    __name(isRequest, "isRequest");
    function emitCloseLegacy(stream3) {
      stream3.emit("close");
    }
    __name(emitCloseLegacy, "emitCloseLegacy");
    function emitErrorCloseLegacy(stream3, err) {
      stream3.emit("error", err);
      process3.nextTick(emitCloseLegacy, stream3);
    }
    __name(emitErrorCloseLegacy, "emitErrorCloseLegacy");
    function destroyer(stream3, err) {
      if (!stream3 || isDestroyed(stream3)) {
        return;
      }
      if (!err && !isFinished(stream3)) {
        err = new AbortError();
      }
      if (isServerRequest(stream3)) {
        stream3.socket = null;
        stream3.destroy(err);
      } else if (isRequest(stream3)) {
        stream3.abort();
      } else if (isRequest(stream3.req)) {
        stream3.req.abort();
      } else if (typeof stream3.destroy === "function") {
        stream3.destroy(err);
      } else if (typeof stream3.close === "function") {
        stream3.close();
      } else if (err) {
        process3.nextTick(emitErrorCloseLegacy, stream3, err);
      } else {
        process3.nextTick(emitCloseLegacy, stream3);
      }
      if (!stream3.destroyed) {
        stream3[kIsDestroyed] = true;
      }
    }
    __name(destroyer, "destroyer");
    module2.exports = {
      construct,
      destroyer,
      destroy,
      undestroy,
      errorOrDestroy
    };
  }
});

// ../../node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/legacy.js
var require_legacy3 = __commonJS({
  "../../node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/legacy.js"(exports2, module2) {
    "use strict";
    var { ArrayIsArray, ObjectSetPrototypeOf } = require_primordials3();
    var { EventEmitter: EE } = require("events");
    function Stream2(opts) {
      EE.call(this, opts);
    }
    __name(Stream2, "Stream");
    ObjectSetPrototypeOf(Stream2.prototype, EE.prototype);
    ObjectSetPrototypeOf(Stream2, EE);
    Stream2.prototype.pipe = function(dest, options) {
      const source = this;
      function ondata(chunk) {
        if (dest.writable && dest.write(chunk) === false && source.pause) {
          source.pause();
        }
      }
      __name(ondata, "ondata");
      source.on("data", ondata);
      function ondrain() {
        if (source.readable && source.resume) {
          source.resume();
        }
      }
      __name(ondrain, "ondrain");
      dest.on("drain", ondrain);
      if (!dest._isStdio && (!options || options.end !== false)) {
        source.on("end", onend);
        source.on("close", onclose);
      }
      let didOnEnd = false;
      function onend() {
        if (didOnEnd) return;
        didOnEnd = true;
        dest.end();
      }
      __name(onend, "onend");
      function onclose() {
        if (didOnEnd) return;
        didOnEnd = true;
        if (typeof dest.destroy === "function") dest.destroy();
      }
      __name(onclose, "onclose");
      function onerror(er) {
        cleanup();
        if (EE.listenerCount(this, "error") === 0) {
          this.emit("error", er);
        }
      }
      __name(onerror, "onerror");
      prependListener(source, "error", onerror);
      prependListener(dest, "error", onerror);
      function cleanup() {
        source.removeListener("data", ondata);
        dest.removeListener("drain", ondrain);
        source.removeListener("end", onend);
        source.removeListener("close", onclose);
        source.removeListener("error", onerror);
        dest.removeListener("error", onerror);
        source.removeListener("end", cleanup);
        source.removeListener("close", cleanup);
        dest.removeListener("close", cleanup);
      }
      __name(cleanup, "cleanup");
      source.on("end", cleanup);
      source.on("close", cleanup);
      dest.on("close", cleanup);
      dest.emit("pipe", source);
      return dest;
    };
    function prependListener(emitter, event, fn) {
      if (typeof emitter.prependListener === "function") return emitter.prependListener(event, fn);
      if (!emitter._events || !emitter._events[event]) emitter.on(event, fn);
      else if (ArrayIsArray(emitter._events[event])) emitter._events[event].unshift(fn);
      else emitter._events[event] = [fn, emitter._events[event]];
    }
    __name(prependListener, "prependListener");
    module2.exports = {
      Stream: Stream2,
      prependListener
    };
  }
});

// ../../node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/add-abort-signal.js
var require_add_abort_signal3 = __commonJS({
  "../../node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/add-abort-signal.js"(exports2, module2) {
    "use strict";
    var { SymbolDispose } = require_primordials3();
    var { AbortError, codes } = require_errors3();
    var { isNodeStream, isWebStream, kControllerErrorFunction } = require_utils4();
    var eos = require_end_of_stream3();
    var { ERR_INVALID_ARG_TYPE } = codes;
    var addAbortListener;
    var validateAbortSignal = /* @__PURE__ */ __name((signal, name) => {
      if (typeof signal !== "object" || !("aborted" in signal)) {
        throw new ERR_INVALID_ARG_TYPE(name, "AbortSignal", signal);
      }
    }, "validateAbortSignal");
    module2.exports.addAbortSignal = /* @__PURE__ */ __name(function addAbortSignal(signal, stream3) {
      validateAbortSignal(signal, "signal");
      if (!isNodeStream(stream3) && !isWebStream(stream3)) {
        throw new ERR_INVALID_ARG_TYPE("stream", ["ReadableStream", "WritableStream", "Stream"], stream3);
      }
      return module2.exports.addAbortSignalNoValidate(signal, stream3);
    }, "addAbortSignal");
    module2.exports.addAbortSignalNoValidate = function(signal, stream3) {
      if (typeof signal !== "object" || !("aborted" in signal)) {
        return stream3;
      }
      const onAbort = isNodeStream(stream3) ? () => {
        stream3.destroy(
          new AbortError(void 0, {
            cause: signal.reason
          })
        );
      } : () => {
        stream3[kControllerErrorFunction](
          new AbortError(void 0, {
            cause: signal.reason
          })
        );
      };
      if (signal.aborted) {
        onAbort();
      } else {
        addAbortListener = addAbortListener || require_util5().addAbortListener;
        const disposable = addAbortListener(signal, onAbort);
        eos(stream3, disposable[SymbolDispose]);
      }
      return stream3;
    };
  }
});

// ../../node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/buffer_list.js
var require_buffer_list3 = __commonJS({
  "../../node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/buffer_list.js"(exports2, module2) {
    "use strict";
    var { StringPrototypeSlice, SymbolIterator, TypedArrayPrototypeSet, Uint8Array: Uint8Array2 } = require_primordials3();
    var { Buffer: Buffer2 } = require("buffer");
    var { inspect: inspect4 } = require_util5();
    module2.exports = class BufferList {
      static {
        __name(this, "BufferList");
      }
      constructor() {
        this.head = null;
        this.tail = null;
        this.length = 0;
      }
      push(v6) {
        const entry = {
          data: v6,
          next: null
        };
        if (this.length > 0) this.tail.next = entry;
        else this.head = entry;
        this.tail = entry;
        ++this.length;
      }
      unshift(v6) {
        const entry = {
          data: v6,
          next: this.head
        };
        if (this.length === 0) this.tail = entry;
        this.head = entry;
        ++this.length;
      }
      shift() {
        if (this.length === 0) return;
        const ret = this.head.data;
        if (this.length === 1) this.head = this.tail = null;
        else this.head = this.head.next;
        --this.length;
        return ret;
      }
      clear() {
        this.head = this.tail = null;
        this.length = 0;
      }
      join(s3) {
        if (this.length === 0) return "";
        let p3 = this.head;
        let ret = "" + p3.data;
        while ((p3 = p3.next) !== null) ret += s3 + p3.data;
        return ret;
      }
      concat(n3) {
        if (this.length === 0) return Buffer2.alloc(0);
        const ret = Buffer2.allocUnsafe(n3 >>> 0);
        let p3 = this.head;
        let i3 = 0;
        while (p3) {
          TypedArrayPrototypeSet(ret, p3.data, i3);
          i3 += p3.data.length;
          p3 = p3.next;
        }
        return ret;
      }
      // Consumes a specified amount of bytes or characters from the buffered data.
      consume(n3, hasStrings) {
        const data3 = this.head.data;
        if (n3 < data3.length) {
          const slice = data3.slice(0, n3);
          this.head.data = data3.slice(n3);
          return slice;
        }
        if (n3 === data3.length) {
          return this.shift();
        }
        return hasStrings ? this._getString(n3) : this._getBuffer(n3);
      }
      first() {
        return this.head.data;
      }
      *[SymbolIterator]() {
        for (let p3 = this.head; p3; p3 = p3.next) {
          yield p3.data;
        }
      }
      // Consumes a specified amount of characters from the buffered data.
      _getString(n3) {
        let ret = "";
        let p3 = this.head;
        let c3 = 0;
        do {
          const str = p3.data;
          if (n3 > str.length) {
            ret += str;
            n3 -= str.length;
          } else {
            if (n3 === str.length) {
              ret += str;
              ++c3;
              if (p3.next) this.head = p3.next;
              else this.head = this.tail = null;
            } else {
              ret += StringPrototypeSlice(str, 0, n3);
              this.head = p3;
              p3.data = StringPrototypeSlice(str, n3);
            }
            break;
          }
          ++c3;
        } while ((p3 = p3.next) !== null);
        this.length -= c3;
        return ret;
      }
      // Consumes a specified amount of bytes from the buffered data.
      _getBuffer(n3) {
        const ret = Buffer2.allocUnsafe(n3);
        const retLen = n3;
        let p3 = this.head;
        let c3 = 0;
        do {
          const buf = p3.data;
          if (n3 > buf.length) {
            TypedArrayPrototypeSet(ret, buf, retLen - n3);
            n3 -= buf.length;
          } else {
            if (n3 === buf.length) {
              TypedArrayPrototypeSet(ret, buf, retLen - n3);
              ++c3;
              if (p3.next) this.head = p3.next;
              else this.head = this.tail = null;
            } else {
              TypedArrayPrototypeSet(ret, new Uint8Array2(buf.buffer, buf.byteOffset, n3), retLen - n3);
              this.head = p3;
              p3.data = buf.slice(n3);
            }
            break;
          }
          ++c3;
        } while ((p3 = p3.next) !== null);
        this.length -= c3;
        return ret;
      }
      // Make sure the linked list only shows the minimal necessary information.
      [Symbol.for("nodejs.util.inspect.custom")](_3, options) {
        return inspect4(this, {
          ...options,
          // Only inspect one level.
          depth: 0,
          // It should not recurse.
          customInspect: false
        });
      }
    };
  }
});

// ../../node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/state.js
var require_state3 = __commonJS({
  "../../node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/state.js"(exports2, module2) {
    "use strict";
    var { MathFloor, NumberIsInteger } = require_primordials3();
    var { validateInteger } = require_validators3();
    var { ERR_INVALID_ARG_VALUE } = require_errors3().codes;
    var defaultHighWaterMarkBytes = 16 * 1024;
    var defaultHighWaterMarkObjectMode = 16;
    function highWaterMarkFrom(options, isDuplex, duplexKey) {
      return options.highWaterMark != null ? options.highWaterMark : isDuplex ? options[duplexKey] : null;
    }
    __name(highWaterMarkFrom, "highWaterMarkFrom");
    function getDefaultHighWaterMark(objectMode) {
      return objectMode ? defaultHighWaterMarkObjectMode : defaultHighWaterMarkBytes;
    }
    __name(getDefaultHighWaterMark, "getDefaultHighWaterMark");
    function setDefaultHighWaterMark(objectMode, value) {
      validateInteger(value, "value", 0);
      if (objectMode) {
        defaultHighWaterMarkObjectMode = value;
      } else {
        defaultHighWaterMarkBytes = value;
      }
    }
    __name(setDefaultHighWaterMark, "setDefaultHighWaterMark");
    function getHighWaterMark(state2, options, duplexKey, isDuplex) {
      const hwm = highWaterMarkFrom(options, isDuplex, duplexKey);
      if (hwm != null) {
        if (!NumberIsInteger(hwm) || hwm < 0) {
          const name = isDuplex ? `options.${duplexKey}` : "options.highWaterMark";
          throw new ERR_INVALID_ARG_VALUE(name, hwm);
        }
        return MathFloor(hwm);
      }
      return getDefaultHighWaterMark(state2.objectMode);
    }
    __name(getHighWaterMark, "getHighWaterMark");
    module2.exports = {
      getHighWaterMark,
      getDefaultHighWaterMark,
      setDefaultHighWaterMark
    };
  }
});

// ../../node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/from.js
var require_from3 = __commonJS({
  "../../node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/from.js"(exports2, module2) {
    "use strict";
    var process3 = require_process();
    var { PromisePrototypeThen, SymbolAsyncIterator, SymbolIterator } = require_primordials3();
    var { Buffer: Buffer2 } = require("buffer");
    var { ERR_INVALID_ARG_TYPE, ERR_STREAM_NULL_VALUES } = require_errors3().codes;
    function from(Readable, iterable, opts) {
      let iterator;
      if (typeof iterable === "string" || iterable instanceof Buffer2) {
        return new Readable({
          objectMode: true,
          ...opts,
          read() {
            this.push(iterable);
            this.push(null);
          }
        });
      }
      let isAsync;
      if (iterable && iterable[SymbolAsyncIterator]) {
        isAsync = true;
        iterator = iterable[SymbolAsyncIterator]();
      } else if (iterable && iterable[SymbolIterator]) {
        isAsync = false;
        iterator = iterable[SymbolIterator]();
      } else {
        throw new ERR_INVALID_ARG_TYPE("iterable", ["Iterable"], iterable);
      }
      const readable = new Readable({
        objectMode: true,
        highWaterMark: 1,
        // TODO(ronag): What options should be allowed?
        ...opts
      });
      let reading = false;
      readable._read = function() {
        if (!reading) {
          reading = true;
          next();
        }
      };
      readable._destroy = function(error5, cb) {
        PromisePrototypeThen(
          close(error5),
          () => process3.nextTick(cb, error5),
          // nextTick is here in case cb throws
          (e3) => process3.nextTick(cb, e3 || error5)
        );
      };
      async function close(error5) {
        const hadError = error5 !== void 0 && error5 !== null;
        const hasThrow = typeof iterator.throw === "function";
        if (hadError && hasThrow) {
          const { value, done } = await iterator.throw(error5);
          await value;
          if (done) {
            return;
          }
        }
        if (typeof iterator.return === "function") {
          const { value } = await iterator.return();
          await value;
        }
      }
      __name(close, "close");
      async function next() {
        for (; ; ) {
          try {
            const { value, done } = isAsync ? await iterator.next() : iterator.next();
            if (done) {
              readable.push(null);
            } else {
              const res = value && typeof value.then === "function" ? await value : value;
              if (res === null) {
                reading = false;
                throw new ERR_STREAM_NULL_VALUES();
              } else if (readable.push(res)) {
                continue;
              } else {
                reading = false;
              }
            }
          } catch (err) {
            readable.destroy(err);
          }
          break;
        }
      }
      __name(next, "next");
      return readable;
    }
    __name(from, "from");
    module2.exports = from;
  }
});

// ../../node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/readable.js
var require_readable4 = __commonJS({
  "../../node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/readable.js"(exports2, module2) {
    "use strict";
    var process3 = require_process();
    var {
      ArrayPrototypeIndexOf,
      NumberIsInteger,
      NumberIsNaN,
      NumberParseInt,
      ObjectDefineProperties,
      ObjectKeys,
      ObjectSetPrototypeOf,
      Promise: Promise2,
      SafeSet,
      SymbolAsyncDispose,
      SymbolAsyncIterator,
      Symbol: Symbol2
    } = require_primordials3();
    module2.exports = Readable;
    Readable.ReadableState = ReadableState;
    var { EventEmitter: EE } = require("events");
    var { Stream: Stream2, prependListener } = require_legacy3();
    var { Buffer: Buffer2 } = require("buffer");
    var { addAbortSignal } = require_add_abort_signal3();
    var eos = require_end_of_stream3();
    var debug3 = require_util5().debuglog("stream", (fn) => {
      debug3 = fn;
    });
    var BufferList = require_buffer_list3();
    var destroyImpl = require_destroy4();
    var { getHighWaterMark, getDefaultHighWaterMark } = require_state3();
    var {
      aggregateTwoErrors,
      codes: {
        ERR_INVALID_ARG_TYPE,
        ERR_METHOD_NOT_IMPLEMENTED,
        ERR_OUT_OF_RANGE,
        ERR_STREAM_PUSH_AFTER_EOF,
        ERR_STREAM_UNSHIFT_AFTER_END_EVENT
      },
      AbortError
    } = require_errors3();
    var { validateObject } = require_validators3();
    var kPaused = Symbol2("kPaused");
    var { StringDecoder: StringDecoder2 } = require_string_decoder2();
    var from = require_from3();
    ObjectSetPrototypeOf(Readable.prototype, Stream2.prototype);
    ObjectSetPrototypeOf(Readable, Stream2);
    var nop = /* @__PURE__ */ __name(() => {
    }, "nop");
    var { errorOrDestroy } = destroyImpl;
    var kObjectMode = 1 << 0;
    var kEnded = 1 << 1;
    var kEndEmitted = 1 << 2;
    var kReading = 1 << 3;
    var kConstructed = 1 << 4;
    var kSync = 1 << 5;
    var kNeedReadable = 1 << 6;
    var kEmittedReadable = 1 << 7;
    var kReadableListening = 1 << 8;
    var kResumeScheduled = 1 << 9;
    var kErrorEmitted = 1 << 10;
    var kEmitClose = 1 << 11;
    var kAutoDestroy = 1 << 12;
    var kDestroyed = 1 << 13;
    var kClosed = 1 << 14;
    var kCloseEmitted = 1 << 15;
    var kMultiAwaitDrain = 1 << 16;
    var kReadingMore = 1 << 17;
    var kDataEmitted = 1 << 18;
    function makeBitMapDescriptor(bit) {
      return {
        enumerable: false,
        get() {
          return (this.state & bit) !== 0;
        },
        set(value) {
          if (value) this.state |= bit;
          else this.state &= ~bit;
        }
      };
    }
    __name(makeBitMapDescriptor, "makeBitMapDescriptor");
    ObjectDefineProperties(ReadableState.prototype, {
      objectMode: makeBitMapDescriptor(kObjectMode),
      ended: makeBitMapDescriptor(kEnded),
      endEmitted: makeBitMapDescriptor(kEndEmitted),
      reading: makeBitMapDescriptor(kReading),
      // Stream is still being constructed and cannot be
      // destroyed until construction finished or failed.
      // Async construction is opt in, therefore we start as
      // constructed.
      constructed: makeBitMapDescriptor(kConstructed),
      // A flag to be able to tell if the event 'readable'/'data' is emitted
      // immediately, or on a later tick.  We set this to true at first, because
      // any actions that shouldn't happen until "later" should generally also
      // not happen before the first read call.
      sync: makeBitMapDescriptor(kSync),
      // Whenever we return null, then we set a flag to say
      // that we're awaiting a 'readable' event emission.
      needReadable: makeBitMapDescriptor(kNeedReadable),
      emittedReadable: makeBitMapDescriptor(kEmittedReadable),
      readableListening: makeBitMapDescriptor(kReadableListening),
      resumeScheduled: makeBitMapDescriptor(kResumeScheduled),
      // True if the error was already emitted and should not be thrown again.
      errorEmitted: makeBitMapDescriptor(kErrorEmitted),
      emitClose: makeBitMapDescriptor(kEmitClose),
      autoDestroy: makeBitMapDescriptor(kAutoDestroy),
      // Has it been destroyed.
      destroyed: makeBitMapDescriptor(kDestroyed),
      // Indicates whether the stream has finished destroying.
      closed: makeBitMapDescriptor(kClosed),
      // True if close has been emitted or would have been emitted
      // depending on emitClose.
      closeEmitted: makeBitMapDescriptor(kCloseEmitted),
      multiAwaitDrain: makeBitMapDescriptor(kMultiAwaitDrain),
      // If true, a maybeReadMore has been scheduled.
      readingMore: makeBitMapDescriptor(kReadingMore),
      dataEmitted: makeBitMapDescriptor(kDataEmitted)
    });
    function ReadableState(options, stream3, isDuplex) {
      if (typeof isDuplex !== "boolean") isDuplex = stream3 instanceof require_duplex3();
      this.state = kEmitClose | kAutoDestroy | kConstructed | kSync;
      if (options && options.objectMode) this.state |= kObjectMode;
      if (isDuplex && options && options.readableObjectMode) this.state |= kObjectMode;
      this.highWaterMark = options ? getHighWaterMark(this, options, "readableHighWaterMark", isDuplex) : getDefaultHighWaterMark(false);
      this.buffer = new BufferList();
      this.length = 0;
      this.pipes = [];
      this.flowing = null;
      this[kPaused] = null;
      if (options && options.emitClose === false) this.state &= ~kEmitClose;
      if (options && options.autoDestroy === false) this.state &= ~kAutoDestroy;
      this.errored = null;
      this.defaultEncoding = options && options.defaultEncoding || "utf8";
      this.awaitDrainWriters = null;
      this.decoder = null;
      this.encoding = null;
      if (options && options.encoding) {
        this.decoder = new StringDecoder2(options.encoding);
        this.encoding = options.encoding;
      }
    }
    __name(ReadableState, "ReadableState");
    function Readable(options) {
      if (!(this instanceof Readable)) return new Readable(options);
      const isDuplex = this instanceof require_duplex3();
      this._readableState = new ReadableState(options, this, isDuplex);
      if (options) {
        if (typeof options.read === "function") this._read = options.read;
        if (typeof options.destroy === "function") this._destroy = options.destroy;
        if (typeof options.construct === "function") this._construct = options.construct;
        if (options.signal && !isDuplex) addAbortSignal(options.signal, this);
      }
      Stream2.call(this, options);
      destroyImpl.construct(this, () => {
        if (this._readableState.needReadable) {
          maybeReadMore(this, this._readableState);
        }
      });
    }
    __name(Readable, "Readable");
    Readable.prototype.destroy = destroyImpl.destroy;
    Readable.prototype._undestroy = destroyImpl.undestroy;
    Readable.prototype._destroy = function(err, cb) {
      cb(err);
    };
    Readable.prototype[EE.captureRejectionSymbol] = function(err) {
      this.destroy(err);
    };
    Readable.prototype[SymbolAsyncDispose] = function() {
      let error5;
      if (!this.destroyed) {
        error5 = this.readableEnded ? null : new AbortError();
        this.destroy(error5);
      }
      return new Promise2((resolve13, reject) => eos(this, (err) => err && err !== error5 ? reject(err) : resolve13(null)));
    };
    Readable.prototype.push = function(chunk, encoding) {
      return readableAddChunk(this, chunk, encoding, false);
    };
    Readable.prototype.unshift = function(chunk, encoding) {
      return readableAddChunk(this, chunk, encoding, true);
    };
    function readableAddChunk(stream3, chunk, encoding, addToFront) {
      debug3("readableAddChunk", chunk);
      const state2 = stream3._readableState;
      let err;
      if ((state2.state & kObjectMode) === 0) {
        if (typeof chunk === "string") {
          encoding = encoding || state2.defaultEncoding;
          if (state2.encoding !== encoding) {
            if (addToFront && state2.encoding) {
              chunk = Buffer2.from(chunk, encoding).toString(state2.encoding);
            } else {
              chunk = Buffer2.from(chunk, encoding);
              encoding = "";
            }
          }
        } else if (chunk instanceof Buffer2) {
          encoding = "";
        } else if (Stream2._isUint8Array(chunk)) {
          chunk = Stream2._uint8ArrayToBuffer(chunk);
          encoding = "";
        } else if (chunk != null) {
          err = new ERR_INVALID_ARG_TYPE("chunk", ["string", "Buffer", "Uint8Array"], chunk);
        }
      }
      if (err) {
        errorOrDestroy(stream3, err);
      } else if (chunk === null) {
        state2.state &= ~kReading;
        onEofChunk(stream3, state2);
      } else if ((state2.state & kObjectMode) !== 0 || chunk && chunk.length > 0) {
        if (addToFront) {
          if ((state2.state & kEndEmitted) !== 0) errorOrDestroy(stream3, new ERR_STREAM_UNSHIFT_AFTER_END_EVENT());
          else if (state2.destroyed || state2.errored) return false;
          else addChunk(stream3, state2, chunk, true);
        } else if (state2.ended) {
          errorOrDestroy(stream3, new ERR_STREAM_PUSH_AFTER_EOF());
        } else if (state2.destroyed || state2.errored) {
          return false;
        } else {
          state2.state &= ~kReading;
          if (state2.decoder && !encoding) {
            chunk = state2.decoder.write(chunk);
            if (state2.objectMode || chunk.length !== 0) addChunk(stream3, state2, chunk, false);
            else maybeReadMore(stream3, state2);
          } else {
            addChunk(stream3, state2, chunk, false);
          }
        }
      } else if (!addToFront) {
        state2.state &= ~kReading;
        maybeReadMore(stream3, state2);
      }
      return !state2.ended && (state2.length < state2.highWaterMark || state2.length === 0);
    }
    __name(readableAddChunk, "readableAddChunk");
    function addChunk(stream3, state2, chunk, addToFront) {
      if (state2.flowing && state2.length === 0 && !state2.sync && stream3.listenerCount("data") > 0) {
        if ((state2.state & kMultiAwaitDrain) !== 0) {
          state2.awaitDrainWriters.clear();
        } else {
          state2.awaitDrainWriters = null;
        }
        state2.dataEmitted = true;
        stream3.emit("data", chunk);
      } else {
        state2.length += state2.objectMode ? 1 : chunk.length;
        if (addToFront) state2.buffer.unshift(chunk);
        else state2.buffer.push(chunk);
        if ((state2.state & kNeedReadable) !== 0) emitReadable(stream3);
      }
      maybeReadMore(stream3, state2);
    }
    __name(addChunk, "addChunk");
    Readable.prototype.isPaused = function() {
      const state2 = this._readableState;
      return state2[kPaused] === true || state2.flowing === false;
    };
    Readable.prototype.setEncoding = function(enc) {
      const decoder = new StringDecoder2(enc);
      this._readableState.decoder = decoder;
      this._readableState.encoding = this._readableState.decoder.encoding;
      const buffer = this._readableState.buffer;
      let content = "";
      for (const data3 of buffer) {
        content += decoder.write(data3);
      }
      buffer.clear();
      if (content !== "") buffer.push(content);
      this._readableState.length = content.length;
      return this;
    };
    var MAX_HWM = 1073741824;
    function computeNewHighWaterMark(n3) {
      if (n3 > MAX_HWM) {
        throw new ERR_OUT_OF_RANGE("size", "<= 1GiB", n3);
      } else {
        n3--;
        n3 |= n3 >>> 1;
        n3 |= n3 >>> 2;
        n3 |= n3 >>> 4;
        n3 |= n3 >>> 8;
        n3 |= n3 >>> 16;
        n3++;
      }
      return n3;
    }
    __name(computeNewHighWaterMark, "computeNewHighWaterMark");
    function howMuchToRead(n3, state2) {
      if (n3 <= 0 || state2.length === 0 && state2.ended) return 0;
      if ((state2.state & kObjectMode) !== 0) return 1;
      if (NumberIsNaN(n3)) {
        if (state2.flowing && state2.length) return state2.buffer.first().length;
        return state2.length;
      }
      if (n3 <= state2.length) return n3;
      return state2.ended ? state2.length : 0;
    }
    __name(howMuchToRead, "howMuchToRead");
    Readable.prototype.read = function(n3) {
      debug3("read", n3);
      if (n3 === void 0) {
        n3 = NaN;
      } else if (!NumberIsInteger(n3)) {
        n3 = NumberParseInt(n3, 10);
      }
      const state2 = this._readableState;
      const nOrig = n3;
      if (n3 > state2.highWaterMark) state2.highWaterMark = computeNewHighWaterMark(n3);
      if (n3 !== 0) state2.state &= ~kEmittedReadable;
      if (n3 === 0 && state2.needReadable && ((state2.highWaterMark !== 0 ? state2.length >= state2.highWaterMark : state2.length > 0) || state2.ended)) {
        debug3("read: emitReadable", state2.length, state2.ended);
        if (state2.length === 0 && state2.ended) endReadable(this);
        else emitReadable(this);
        return null;
      }
      n3 = howMuchToRead(n3, state2);
      if (n3 === 0 && state2.ended) {
        if (state2.length === 0) endReadable(this);
        return null;
      }
      let doRead = (state2.state & kNeedReadable) !== 0;
      debug3("need readable", doRead);
      if (state2.length === 0 || state2.length - n3 < state2.highWaterMark) {
        doRead = true;
        debug3("length less than watermark", doRead);
      }
      if (state2.ended || state2.reading || state2.destroyed || state2.errored || !state2.constructed) {
        doRead = false;
        debug3("reading, ended or constructing", doRead);
      } else if (doRead) {
        debug3("do read");
        state2.state |= kReading | kSync;
        if (state2.length === 0) state2.state |= kNeedReadable;
        try {
          this._read(state2.highWaterMark);
        } catch (err) {
          errorOrDestroy(this, err);
        }
        state2.state &= ~kSync;
        if (!state2.reading) n3 = howMuchToRead(nOrig, state2);
      }
      let ret;
      if (n3 > 0) ret = fromList(n3, state2);
      else ret = null;
      if (ret === null) {
        state2.needReadable = state2.length <= state2.highWaterMark;
        n3 = 0;
      } else {
        state2.length -= n3;
        if (state2.multiAwaitDrain) {
          state2.awaitDrainWriters.clear();
        } else {
          state2.awaitDrainWriters = null;
        }
      }
      if (state2.length === 0) {
        if (!state2.ended) state2.needReadable = true;
        if (nOrig !== n3 && state2.ended) endReadable(this);
      }
      if (ret !== null && !state2.errorEmitted && !state2.closeEmitted) {
        state2.dataEmitted = true;
        this.emit("data", ret);
      }
      return ret;
    };
    function onEofChunk(stream3, state2) {
      debug3("onEofChunk");
      if (state2.ended) return;
      if (state2.decoder) {
        const chunk = state2.decoder.end();
        if (chunk && chunk.length) {
          state2.buffer.push(chunk);
          state2.length += state2.objectMode ? 1 : chunk.length;
        }
      }
      state2.ended = true;
      if (state2.sync) {
        emitReadable(stream3);
      } else {
        state2.needReadable = false;
        state2.emittedReadable = true;
        emitReadable_(stream3);
      }
    }
    __name(onEofChunk, "onEofChunk");
    function emitReadable(stream3) {
      const state2 = stream3._readableState;
      debug3("emitReadable", state2.needReadable, state2.emittedReadable);
      state2.needReadable = false;
      if (!state2.emittedReadable) {
        debug3("emitReadable", state2.flowing);
        state2.emittedReadable = true;
        process3.nextTick(emitReadable_, stream3);
      }
    }
    __name(emitReadable, "emitReadable");
    function emitReadable_(stream3) {
      const state2 = stream3._readableState;
      debug3("emitReadable_", state2.destroyed, state2.length, state2.ended);
      if (!state2.destroyed && !state2.errored && (state2.length || state2.ended)) {
        stream3.emit("readable");
        state2.emittedReadable = false;
      }
      state2.needReadable = !state2.flowing && !state2.ended && state2.length <= state2.highWaterMark;
      flow(stream3);
    }
    __name(emitReadable_, "emitReadable_");
    function maybeReadMore(stream3, state2) {
      if (!state2.readingMore && state2.constructed) {
        state2.readingMore = true;
        process3.nextTick(maybeReadMore_, stream3, state2);
      }
    }
    __name(maybeReadMore, "maybeReadMore");
    function maybeReadMore_(stream3, state2) {
      while (!state2.reading && !state2.ended && (state2.length < state2.highWaterMark || state2.flowing && state2.length === 0)) {
        const len = state2.length;
        debug3("maybeReadMore read 0");
        stream3.read(0);
        if (len === state2.length)
          break;
      }
      state2.readingMore = false;
    }
    __name(maybeReadMore_, "maybeReadMore_");
    Readable.prototype._read = function(n3) {
      throw new ERR_METHOD_NOT_IMPLEMENTED("_read()");
    };
    Readable.prototype.pipe = function(dest, pipeOpts) {
      const src = this;
      const state2 = this._readableState;
      if (state2.pipes.length === 1) {
        if (!state2.multiAwaitDrain) {
          state2.multiAwaitDrain = true;
          state2.awaitDrainWriters = new SafeSet(state2.awaitDrainWriters ? [state2.awaitDrainWriters] : []);
        }
      }
      state2.pipes.push(dest);
      debug3("pipe count=%d opts=%j", state2.pipes.length, pipeOpts);
      const doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process3.stdout && dest !== process3.stderr;
      const endFn = doEnd ? onend : unpipe;
      if (state2.endEmitted) process3.nextTick(endFn);
      else src.once("end", endFn);
      dest.on("unpipe", onunpipe);
      function onunpipe(readable, unpipeInfo) {
        debug3("onunpipe");
        if (readable === src) {
          if (unpipeInfo && unpipeInfo.hasUnpiped === false) {
            unpipeInfo.hasUnpiped = true;
            cleanup();
          }
        }
      }
      __name(onunpipe, "onunpipe");
      function onend() {
        debug3("onend");
        dest.end();
      }
      __name(onend, "onend");
      let ondrain;
      let cleanedUp = false;
      function cleanup() {
        debug3("cleanup");
        dest.removeListener("close", onclose);
        dest.removeListener("finish", onfinish);
        if (ondrain) {
          dest.removeListener("drain", ondrain);
        }
        dest.removeListener("error", onerror);
        dest.removeListener("unpipe", onunpipe);
        src.removeListener("end", onend);
        src.removeListener("end", unpipe);
        src.removeListener("data", ondata);
        cleanedUp = true;
        if (ondrain && state2.awaitDrainWriters && (!dest._writableState || dest._writableState.needDrain)) ondrain();
      }
      __name(cleanup, "cleanup");
      function pause() {
        if (!cleanedUp) {
          if (state2.pipes.length === 1 && state2.pipes[0] === dest) {
            debug3("false write response, pause", 0);
            state2.awaitDrainWriters = dest;
            state2.multiAwaitDrain = false;
          } else if (state2.pipes.length > 1 && state2.pipes.includes(dest)) {
            debug3("false write response, pause", state2.awaitDrainWriters.size);
            state2.awaitDrainWriters.add(dest);
          }
          src.pause();
        }
        if (!ondrain) {
          ondrain = pipeOnDrain(src, dest);
          dest.on("drain", ondrain);
        }
      }
      __name(pause, "pause");
      src.on("data", ondata);
      function ondata(chunk) {
        debug3("ondata");
        const ret = dest.write(chunk);
        debug3("dest.write", ret);
        if (ret === false) {
          pause();
        }
      }
      __name(ondata, "ondata");
      function onerror(er) {
        debug3("onerror", er);
        unpipe();
        dest.removeListener("error", onerror);
        if (dest.listenerCount("error") === 0) {
          const s3 = dest._writableState || dest._readableState;
          if (s3 && !s3.errorEmitted) {
            errorOrDestroy(dest, er);
          } else {
            dest.emit("error", er);
          }
        }
      }
      __name(onerror, "onerror");
      prependListener(dest, "error", onerror);
      function onclose() {
        dest.removeListener("finish", onfinish);
        unpipe();
      }
      __name(onclose, "onclose");
      dest.once("close", onclose);
      function onfinish() {
        debug3("onfinish");
        dest.removeListener("close", onclose);
        unpipe();
      }
      __name(onfinish, "onfinish");
      dest.once("finish", onfinish);
      function unpipe() {
        debug3("unpipe");
        src.unpipe(dest);
      }
      __name(unpipe, "unpipe");
      dest.emit("pipe", src);
      if (dest.writableNeedDrain === true) {
        pause();
      } else if (!state2.flowing) {
        debug3("pipe resume");
        src.resume();
      }
      return dest;
    };
    function pipeOnDrain(src, dest) {
      return /* @__PURE__ */ __name(function pipeOnDrainFunctionResult() {
        const state2 = src._readableState;
        if (state2.awaitDrainWriters === dest) {
          debug3("pipeOnDrain", 1);
          state2.awaitDrainWriters = null;
        } else if (state2.multiAwaitDrain) {
          debug3("pipeOnDrain", state2.awaitDrainWriters.size);
          state2.awaitDrainWriters.delete(dest);
        }
        if ((!state2.awaitDrainWriters || state2.awaitDrainWriters.size === 0) && src.listenerCount("data")) {
          src.resume();
        }
      }, "pipeOnDrainFunctionResult");
    }
    __name(pipeOnDrain, "pipeOnDrain");
    Readable.prototype.unpipe = function(dest) {
      const state2 = this._readableState;
      const unpipeInfo = {
        hasUnpiped: false
      };
      if (state2.pipes.length === 0) return this;
      if (!dest) {
        const dests = state2.pipes;
        state2.pipes = [];
        this.pause();
        for (let i3 = 0; i3 < dests.length; i3++)
          dests[i3].emit("unpipe", this, {
            hasUnpiped: false
          });
        return this;
      }
      const index = ArrayPrototypeIndexOf(state2.pipes, dest);
      if (index === -1) return this;
      state2.pipes.splice(index, 1);
      if (state2.pipes.length === 0) this.pause();
      dest.emit("unpipe", this, unpipeInfo);
      return this;
    };
    Readable.prototype.on = function(ev, fn) {
      const res = Stream2.prototype.on.call(this, ev, fn);
      const state2 = this._readableState;
      if (ev === "data") {
        state2.readableListening = this.listenerCount("readable") > 0;
        if (state2.flowing !== false) this.resume();
      } else if (ev === "readable") {
        if (!state2.endEmitted && !state2.readableListening) {
          state2.readableListening = state2.needReadable = true;
          state2.flowing = false;
          state2.emittedReadable = false;
          debug3("on readable", state2.length, state2.reading);
          if (state2.length) {
            emitReadable(this);
          } else if (!state2.reading) {
            process3.nextTick(nReadingNextTick, this);
          }
        }
      }
      return res;
    };
    Readable.prototype.addListener = Readable.prototype.on;
    Readable.prototype.removeListener = function(ev, fn) {
      const res = Stream2.prototype.removeListener.call(this, ev, fn);
      if (ev === "readable") {
        process3.nextTick(updateReadableListening, this);
      }
      return res;
    };
    Readable.prototype.off = Readable.prototype.removeListener;
    Readable.prototype.removeAllListeners = function(ev) {
      const res = Stream2.prototype.removeAllListeners.apply(this, arguments);
      if (ev === "readable" || ev === void 0) {
        process3.nextTick(updateReadableListening, this);
      }
      return res;
    };
    function updateReadableListening(self2) {
      const state2 = self2._readableState;
      state2.readableListening = self2.listenerCount("readable") > 0;
      if (state2.resumeScheduled && state2[kPaused] === false) {
        state2.flowing = true;
      } else if (self2.listenerCount("data") > 0) {
        self2.resume();
      } else if (!state2.readableListening) {
        state2.flowing = null;
      }
    }
    __name(updateReadableListening, "updateReadableListening");
    function nReadingNextTick(self2) {
      debug3("readable nexttick read 0");
      self2.read(0);
    }
    __name(nReadingNextTick, "nReadingNextTick");
    Readable.prototype.resume = function() {
      const state2 = this._readableState;
      if (!state2.flowing) {
        debug3("resume");
        state2.flowing = !state2.readableListening;
        resume(this, state2);
      }
      state2[kPaused] = false;
      return this;
    };
    function resume(stream3, state2) {
      if (!state2.resumeScheduled) {
        state2.resumeScheduled = true;
        process3.nextTick(resume_, stream3, state2);
      }
    }
    __name(resume, "resume");
    function resume_(stream3, state2) {
      debug3("resume", state2.reading);
      if (!state2.reading) {
        stream3.read(0);
      }
      state2.resumeScheduled = false;
      stream3.emit("resume");
      flow(stream3);
      if (state2.flowing && !state2.reading) stream3.read(0);
    }
    __name(resume_, "resume_");
    Readable.prototype.pause = function() {
      debug3("call pause flowing=%j", this._readableState.flowing);
      if (this._readableState.flowing !== false) {
        debug3("pause");
        this._readableState.flowing = false;
        this.emit("pause");
      }
      this._readableState[kPaused] = true;
      return this;
    };
    function flow(stream3) {
      const state2 = stream3._readableState;
      debug3("flow", state2.flowing);
      while (state2.flowing && stream3.read() !== null) ;
    }
    __name(flow, "flow");
    Readable.prototype.wrap = function(stream3) {
      let paused = false;
      stream3.on("data", (chunk) => {
        if (!this.push(chunk) && stream3.pause) {
          paused = true;
          stream3.pause();
        }
      });
      stream3.on("end", () => {
        this.push(null);
      });
      stream3.on("error", (err) => {
        errorOrDestroy(this, err);
      });
      stream3.on("close", () => {
        this.destroy();
      });
      stream3.on("destroy", () => {
        this.destroy();
      });
      this._read = () => {
        if (paused && stream3.resume) {
          paused = false;
          stream3.resume();
        }
      };
      const streamKeys = ObjectKeys(stream3);
      for (let j3 = 1; j3 < streamKeys.length; j3++) {
        const i3 = streamKeys[j3];
        if (this[i3] === void 0 && typeof stream3[i3] === "function") {
          this[i3] = stream3[i3].bind(stream3);
        }
      }
      return this;
    };
    Readable.prototype[SymbolAsyncIterator] = function() {
      return streamToAsyncIterator(this);
    };
    Readable.prototype.iterator = function(options) {
      if (options !== void 0) {
        validateObject(options, "options");
      }
      return streamToAsyncIterator(this, options);
    };
    function streamToAsyncIterator(stream3, options) {
      if (typeof stream3.read !== "function") {
        stream3 = Readable.wrap(stream3, {
          objectMode: true
        });
      }
      const iter = createAsyncIterator(stream3, options);
      iter.stream = stream3;
      return iter;
    }
    __name(streamToAsyncIterator, "streamToAsyncIterator");
    async function* createAsyncIterator(stream3, options) {
      let callback = nop;
      function next(resolve13) {
        if (this === stream3) {
          callback();
          callback = nop;
        } else {
          callback = resolve13;
        }
      }
      __name(next, "next");
      stream3.on("readable", next);
      let error5;
      const cleanup = eos(
        stream3,
        {
          writable: false
        },
        (err) => {
          error5 = err ? aggregateTwoErrors(error5, err) : null;
          callback();
          callback = nop;
        }
      );
      try {
        while (true) {
          const chunk = stream3.destroyed ? null : stream3.read();
          if (chunk !== null) {
            yield chunk;
          } else if (error5) {
            throw error5;
          } else if (error5 === null) {
            return;
          } else {
            await new Promise2(next);
          }
        }
      } catch (err) {
        error5 = aggregateTwoErrors(error5, err);
        throw error5;
      } finally {
        if ((error5 || (options === null || options === void 0 ? void 0 : options.destroyOnReturn) !== false) && (error5 === void 0 || stream3._readableState.autoDestroy)) {
          destroyImpl.destroyer(stream3, null);
        } else {
          stream3.off("readable", next);
          cleanup();
        }
      }
    }
    __name(createAsyncIterator, "createAsyncIterator");
    ObjectDefineProperties(Readable.prototype, {
      readable: {
        __proto__: null,
        get() {
          const r3 = this._readableState;
          return !!r3 && r3.readable !== false && !r3.destroyed && !r3.errorEmitted && !r3.endEmitted;
        },
        set(val) {
          if (this._readableState) {
            this._readableState.readable = !!val;
          }
        }
      },
      readableDidRead: {
        __proto__: null,
        enumerable: false,
        get: /* @__PURE__ */ __name(function() {
          return this._readableState.dataEmitted;
        }, "get")
      },
      readableAborted: {
        __proto__: null,
        enumerable: false,
        get: /* @__PURE__ */ __name(function() {
          return !!(this._readableState.readable !== false && (this._readableState.destroyed || this._readableState.errored) && !this._readableState.endEmitted);
        }, "get")
      },
      readableHighWaterMark: {
        __proto__: null,
        enumerable: false,
        get: /* @__PURE__ */ __name(function() {
          return this._readableState.highWaterMark;
        }, "get")
      },
      readableBuffer: {
        __proto__: null,
        enumerable: false,
        get: /* @__PURE__ */ __name(function() {
          return this._readableState && this._readableState.buffer;
        }, "get")
      },
      readableFlowing: {
        __proto__: null,
        enumerable: false,
        get: /* @__PURE__ */ __name(function() {
          return this._readableState.flowing;
        }, "get"),
        set: /* @__PURE__ */ __name(function(state2) {
          if (this._readableState) {
            this._readableState.flowing = state2;
          }
        }, "set")
      },
      readableLength: {
        __proto__: null,
        enumerable: false,
        get() {
          return this._readableState.length;
        }
      },
      readableObjectMode: {
        __proto__: null,
        enumerable: false,
        get() {
          return this._readableState ? this._readableState.objectMode : false;
        }
      },
      readableEncoding: {
        __proto__: null,
        enumerable: false,
        get() {
          return this._readableState ? this._readableState.encoding : null;
        }
      },
      errored: {
        __proto__: null,
        enumerable: false,
        get() {
          return this._readableState ? this._readableState.errored : null;
        }
      },
      closed: {
        __proto__: null,
        get() {
          return this._readableState ? this._readableState.closed : false;
        }
      },
      destroyed: {
        __proto__: null,
        enumerable: false,
        get() {
          return this._readableState ? this._readableState.destroyed : false;
        },
        set(value) {
          if (!this._readableState) {
            return;
          }
          this._readableState.destroyed = value;
        }
      },
      readableEnded: {
        __proto__: null,
        enumerable: false,
        get() {
          return this._readableState ? this._readableState.endEmitted : false;
        }
      }
    });
    ObjectDefineProperties(ReadableState.prototype, {
      // Legacy getter for `pipesCount`.
      pipesCount: {
        __proto__: null,
        get() {
          return this.pipes.length;
        }
      },
      // Legacy property for `paused`.
      paused: {
        __proto__: null,
        get() {
          return this[kPaused] !== false;
        },
        set(value) {
          this[kPaused] = !!value;
        }
      }
    });
    Readable._fromList = fromList;
    function fromList(n3, state2) {
      if (state2.length === 0) return null;
      let ret;
      if (state2.objectMode) ret = state2.buffer.shift();
      else if (!n3 || n3 >= state2.length) {
        if (state2.decoder) ret = state2.buffer.join("");
        else if (state2.buffer.length === 1) ret = state2.buffer.first();
        else ret = state2.buffer.concat(state2.length);
        state2.buffer.clear();
      } else {
        ret = state2.buffer.consume(n3, state2.decoder);
      }
      return ret;
    }
    __name(fromList, "fromList");
    function endReadable(stream3) {
      const state2 = stream3._readableState;
      debug3("endReadable", state2.endEmitted);
      if (!state2.endEmitted) {
        state2.ended = true;
        process3.nextTick(endReadableNT, state2, stream3);
      }
    }
    __name(endReadable, "endReadable");
    function endReadableNT(state2, stream3) {
      debug3("endReadableNT", state2.endEmitted, state2.length);
      if (!state2.errored && !state2.closeEmitted && !state2.endEmitted && state2.length === 0) {
        state2.endEmitted = true;
        stream3.emit("end");
        if (stream3.writable && stream3.allowHalfOpen === false) {
          process3.nextTick(endWritableNT, stream3);
        } else if (state2.autoDestroy) {
          const wState = stream3._writableState;
          const autoDestroy = !wState || wState.autoDestroy && // We don't expect the writable to ever 'finish'
          // if writable is explicitly set to false.
          (wState.finished || wState.writable === false);
          if (autoDestroy) {
            stream3.destroy();
          }
        }
      }
    }
    __name(endReadableNT, "endReadableNT");
    function endWritableNT(stream3) {
      const writable = stream3.writable && !stream3.writableEnded && !stream3.destroyed;
      if (writable) {
        stream3.end();
      }
    }
    __name(endWritableNT, "endWritableNT");
    Readable.from = function(iterable, opts) {
      return from(Readable, iterable, opts);
    };
    var webStreamsAdapters;
    function lazyWebStreams() {
      if (webStreamsAdapters === void 0) webStreamsAdapters = {};
      return webStreamsAdapters;
    }
    __name(lazyWebStreams, "lazyWebStreams");
    Readable.fromWeb = function(readableStream, options) {
      return lazyWebStreams().newStreamReadableFromReadableStream(readableStream, options);
    };
    Readable.toWeb = function(streamReadable, options) {
      return lazyWebStreams().newReadableStreamFromStreamReadable(streamReadable, options);
    };
    Readable.wrap = function(src, options) {
      var _ref, _src$readableObjectMo;
      return new Readable({
        objectMode: (_ref = (_src$readableObjectMo = src.readableObjectMode) !== null && _src$readableObjectMo !== void 0 ? _src$readableObjectMo : src.objectMode) !== null && _ref !== void 0 ? _ref : true,
        ...options,
        destroy(err, callback) {
          destroyImpl.destroyer(src, err);
          callback(err);
        }
      }).wrap(src);
    };
  }
});

// ../../node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/writable.js
var require_writable3 = __commonJS({
  "../../node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/writable.js"(exports2, module2) {
    "use strict";
    var process3 = require_process();
    var {
      ArrayPrototypeSlice,
      Error: Error2,
      FunctionPrototypeSymbolHasInstance,
      ObjectDefineProperty,
      ObjectDefineProperties,
      ObjectSetPrototypeOf,
      StringPrototypeToLowerCase,
      Symbol: Symbol2,
      SymbolHasInstance
    } = require_primordials3();
    module2.exports = Writable3;
    Writable3.WritableState = WritableState;
    var { EventEmitter: EE } = require("events");
    var Stream2 = require_legacy3().Stream;
    var { Buffer: Buffer2 } = require("buffer");
    var destroyImpl = require_destroy4();
    var { addAbortSignal } = require_add_abort_signal3();
    var { getHighWaterMark, getDefaultHighWaterMark } = require_state3();
    var {
      ERR_INVALID_ARG_TYPE,
      ERR_METHOD_NOT_IMPLEMENTED,
      ERR_MULTIPLE_CALLBACK,
      ERR_STREAM_CANNOT_PIPE,
      ERR_STREAM_DESTROYED,
      ERR_STREAM_ALREADY_FINISHED,
      ERR_STREAM_NULL_VALUES,
      ERR_STREAM_WRITE_AFTER_END,
      ERR_UNKNOWN_ENCODING
    } = require_errors3().codes;
    var { errorOrDestroy } = destroyImpl;
    ObjectSetPrototypeOf(Writable3.prototype, Stream2.prototype);
    ObjectSetPrototypeOf(Writable3, Stream2);
    function nop() {
    }
    __name(nop, "nop");
    var kOnFinished = Symbol2("kOnFinished");
    function WritableState(options, stream3, isDuplex) {
      if (typeof isDuplex !== "boolean") isDuplex = stream3 instanceof require_duplex3();
      this.objectMode = !!(options && options.objectMode);
      if (isDuplex) this.objectMode = this.objectMode || !!(options && options.writableObjectMode);
      this.highWaterMark = options ? getHighWaterMark(this, options, "writableHighWaterMark", isDuplex) : getDefaultHighWaterMark(false);
      this.finalCalled = false;
      this.needDrain = false;
      this.ending = false;
      this.ended = false;
      this.finished = false;
      this.destroyed = false;
      const noDecode = !!(options && options.decodeStrings === false);
      this.decodeStrings = !noDecode;
      this.defaultEncoding = options && options.defaultEncoding || "utf8";
      this.length = 0;
      this.writing = false;
      this.corked = 0;
      this.sync = true;
      this.bufferProcessing = false;
      this.onwrite = onwrite.bind(void 0, stream3);
      this.writecb = null;
      this.writelen = 0;
      this.afterWriteTickInfo = null;
      resetBuffer(this);
      this.pendingcb = 0;
      this.constructed = true;
      this.prefinished = false;
      this.errorEmitted = false;
      this.emitClose = !options || options.emitClose !== false;
      this.autoDestroy = !options || options.autoDestroy !== false;
      this.errored = null;
      this.closed = false;
      this.closeEmitted = false;
      this[kOnFinished] = [];
    }
    __name(WritableState, "WritableState");
    function resetBuffer(state2) {
      state2.buffered = [];
      state2.bufferedIndex = 0;
      state2.allBuffers = true;
      state2.allNoop = true;
    }
    __name(resetBuffer, "resetBuffer");
    WritableState.prototype.getBuffer = /* @__PURE__ */ __name(function getBuffer() {
      return ArrayPrototypeSlice(this.buffered, this.bufferedIndex);
    }, "getBuffer");
    ObjectDefineProperty(WritableState.prototype, "bufferedRequestCount", {
      __proto__: null,
      get() {
        return this.buffered.length - this.bufferedIndex;
      }
    });
    function Writable3(options) {
      const isDuplex = this instanceof require_duplex3();
      if (!isDuplex && !FunctionPrototypeSymbolHasInstance(Writable3, this)) return new Writable3(options);
      this._writableState = new WritableState(options, this, isDuplex);
      if (options) {
        if (typeof options.write === "function") this._write = options.write;
        if (typeof options.writev === "function") this._writev = options.writev;
        if (typeof options.destroy === "function") this._destroy = options.destroy;
        if (typeof options.final === "function") this._final = options.final;
        if (typeof options.construct === "function") this._construct = options.construct;
        if (options.signal) addAbortSignal(options.signal, this);
      }
      Stream2.call(this, options);
      destroyImpl.construct(this, () => {
        const state2 = this._writableState;
        if (!state2.writing) {
          clearBuffer(this, state2);
        }
        finishMaybe(this, state2);
      });
    }
    __name(Writable3, "Writable");
    ObjectDefineProperty(Writable3, SymbolHasInstance, {
      __proto__: null,
      value: /* @__PURE__ */ __name(function(object) {
        if (FunctionPrototypeSymbolHasInstance(this, object)) return true;
        if (this !== Writable3) return false;
        return object && object._writableState instanceof WritableState;
      }, "value")
    });
    Writable3.prototype.pipe = function() {
      errorOrDestroy(this, new ERR_STREAM_CANNOT_PIPE());
    };
    function _write(stream3, chunk, encoding, cb) {
      const state2 = stream3._writableState;
      if (typeof encoding === "function") {
        cb = encoding;
        encoding = state2.defaultEncoding;
      } else {
        if (!encoding) encoding = state2.defaultEncoding;
        else if (encoding !== "buffer" && !Buffer2.isEncoding(encoding)) throw new ERR_UNKNOWN_ENCODING(encoding);
        if (typeof cb !== "function") cb = nop;
      }
      if (chunk === null) {
        throw new ERR_STREAM_NULL_VALUES();
      } else if (!state2.objectMode) {
        if (typeof chunk === "string") {
          if (state2.decodeStrings !== false) {
            chunk = Buffer2.from(chunk, encoding);
            encoding = "buffer";
          }
        } else if (chunk instanceof Buffer2) {
          encoding = "buffer";
        } else if (Stream2._isUint8Array(chunk)) {
          chunk = Stream2._uint8ArrayToBuffer(chunk);
          encoding = "buffer";
        } else {
          throw new ERR_INVALID_ARG_TYPE("chunk", ["string", "Buffer", "Uint8Array"], chunk);
        }
      }
      let err;
      if (state2.ending) {
        err = new ERR_STREAM_WRITE_AFTER_END();
      } else if (state2.destroyed) {
        err = new ERR_STREAM_DESTROYED("write");
      }
      if (err) {
        process3.nextTick(cb, err);
        errorOrDestroy(stream3, err, true);
        return err;
      }
      state2.pendingcb++;
      return writeOrBuffer(stream3, state2, chunk, encoding, cb);
    }
    __name(_write, "_write");
    Writable3.prototype.write = function(chunk, encoding, cb) {
      return _write(this, chunk, encoding, cb) === true;
    };
    Writable3.prototype.cork = function() {
      this._writableState.corked++;
    };
    Writable3.prototype.uncork = function() {
      const state2 = this._writableState;
      if (state2.corked) {
        state2.corked--;
        if (!state2.writing) clearBuffer(this, state2);
      }
    };
    Writable3.prototype.setDefaultEncoding = /* @__PURE__ */ __name(function setDefaultEncoding(encoding) {
      if (typeof encoding === "string") encoding = StringPrototypeToLowerCase(encoding);
      if (!Buffer2.isEncoding(encoding)) throw new ERR_UNKNOWN_ENCODING(encoding);
      this._writableState.defaultEncoding = encoding;
      return this;
    }, "setDefaultEncoding");
    function writeOrBuffer(stream3, state2, chunk, encoding, callback) {
      const len = state2.objectMode ? 1 : chunk.length;
      state2.length += len;
      const ret = state2.length < state2.highWaterMark;
      if (!ret) state2.needDrain = true;
      if (state2.writing || state2.corked || state2.errored || !state2.constructed) {
        state2.buffered.push({
          chunk,
          encoding,
          callback
        });
        if (state2.allBuffers && encoding !== "buffer") {
          state2.allBuffers = false;
        }
        if (state2.allNoop && callback !== nop) {
          state2.allNoop = false;
        }
      } else {
        state2.writelen = len;
        state2.writecb = callback;
        state2.writing = true;
        state2.sync = true;
        stream3._write(chunk, encoding, state2.onwrite);
        state2.sync = false;
      }
      return ret && !state2.errored && !state2.destroyed;
    }
    __name(writeOrBuffer, "writeOrBuffer");
    function doWrite(stream3, state2, writev, len, chunk, encoding, cb) {
      state2.writelen = len;
      state2.writecb = cb;
      state2.writing = true;
      state2.sync = true;
      if (state2.destroyed) state2.onwrite(new ERR_STREAM_DESTROYED("write"));
      else if (writev) stream3._writev(chunk, state2.onwrite);
      else stream3._write(chunk, encoding, state2.onwrite);
      state2.sync = false;
    }
    __name(doWrite, "doWrite");
    function onwriteError(stream3, state2, er, cb) {
      --state2.pendingcb;
      cb(er);
      errorBuffer(state2);
      errorOrDestroy(stream3, er);
    }
    __name(onwriteError, "onwriteError");
    function onwrite(stream3, er) {
      const state2 = stream3._writableState;
      const sync2 = state2.sync;
      const cb = state2.writecb;
      if (typeof cb !== "function") {
        errorOrDestroy(stream3, new ERR_MULTIPLE_CALLBACK());
        return;
      }
      state2.writing = false;
      state2.writecb = null;
      state2.length -= state2.writelen;
      state2.writelen = 0;
      if (er) {
        er.stack;
        if (!state2.errored) {
          state2.errored = er;
        }
        if (stream3._readableState && !stream3._readableState.errored) {
          stream3._readableState.errored = er;
        }
        if (sync2) {
          process3.nextTick(onwriteError, stream3, state2, er, cb);
        } else {
          onwriteError(stream3, state2, er, cb);
        }
      } else {
        if (state2.buffered.length > state2.bufferedIndex) {
          clearBuffer(stream3, state2);
        }
        if (sync2) {
          if (state2.afterWriteTickInfo !== null && state2.afterWriteTickInfo.cb === cb) {
            state2.afterWriteTickInfo.count++;
          } else {
            state2.afterWriteTickInfo = {
              count: 1,
              cb,
              stream: stream3,
              state: state2
            };
            process3.nextTick(afterWriteTick, state2.afterWriteTickInfo);
          }
        } else {
          afterWrite(stream3, state2, 1, cb);
        }
      }
    }
    __name(onwrite, "onwrite");
    function afterWriteTick({ stream: stream3, state: state2, count, cb }) {
      state2.afterWriteTickInfo = null;
      return afterWrite(stream3, state2, count, cb);
    }
    __name(afterWriteTick, "afterWriteTick");
    function afterWrite(stream3, state2, count, cb) {
      const needDrain = !state2.ending && !stream3.destroyed && state2.length === 0 && state2.needDrain;
      if (needDrain) {
        state2.needDrain = false;
        stream3.emit("drain");
      }
      while (count-- > 0) {
        state2.pendingcb--;
        cb();
      }
      if (state2.destroyed) {
        errorBuffer(state2);
      }
      finishMaybe(stream3, state2);
    }
    __name(afterWrite, "afterWrite");
    function errorBuffer(state2) {
      if (state2.writing) {
        return;
      }
      for (let n3 = state2.bufferedIndex; n3 < state2.buffered.length; ++n3) {
        var _state$errored;
        const { chunk, callback } = state2.buffered[n3];
        const len = state2.objectMode ? 1 : chunk.length;
        state2.length -= len;
        callback(
          (_state$errored = state2.errored) !== null && _state$errored !== void 0 ? _state$errored : new ERR_STREAM_DESTROYED("write")
        );
      }
      const onfinishCallbacks = state2[kOnFinished].splice(0);
      for (let i3 = 0; i3 < onfinishCallbacks.length; i3++) {
        var _state$errored2;
        onfinishCallbacks[i3](
          (_state$errored2 = state2.errored) !== null && _state$errored2 !== void 0 ? _state$errored2 : new ERR_STREAM_DESTROYED("end")
        );
      }
      resetBuffer(state2);
    }
    __name(errorBuffer, "errorBuffer");
    function clearBuffer(stream3, state2) {
      if (state2.corked || state2.bufferProcessing || state2.destroyed || !state2.constructed) {
        return;
      }
      const { buffered, bufferedIndex, objectMode } = state2;
      const bufferedLength = buffered.length - bufferedIndex;
      if (!bufferedLength) {
        return;
      }
      let i3 = bufferedIndex;
      state2.bufferProcessing = true;
      if (bufferedLength > 1 && stream3._writev) {
        state2.pendingcb -= bufferedLength - 1;
        const callback = state2.allNoop ? nop : (err) => {
          for (let n3 = i3; n3 < buffered.length; ++n3) {
            buffered[n3].callback(err);
          }
        };
        const chunks2 = state2.allNoop && i3 === 0 ? buffered : ArrayPrototypeSlice(buffered, i3);
        chunks2.allBuffers = state2.allBuffers;
        doWrite(stream3, state2, true, state2.length, chunks2, "", callback);
        resetBuffer(state2);
      } else {
        do {
          const { chunk, encoding, callback } = buffered[i3];
          buffered[i3++] = null;
          const len = objectMode ? 1 : chunk.length;
          doWrite(stream3, state2, false, len, chunk, encoding, callback);
        } while (i3 < buffered.length && !state2.writing);
        if (i3 === buffered.length) {
          resetBuffer(state2);
        } else if (i3 > 256) {
          buffered.splice(0, i3);
          state2.bufferedIndex = 0;
        } else {
          state2.bufferedIndex = i3;
        }
      }
      state2.bufferProcessing = false;
    }
    __name(clearBuffer, "clearBuffer");
    Writable3.prototype._write = function(chunk, encoding, cb) {
      if (this._writev) {
        this._writev(
          [
            {
              chunk,
              encoding
            }
          ],
          cb
        );
      } else {
        throw new ERR_METHOD_NOT_IMPLEMENTED("_write()");
      }
    };
    Writable3.prototype._writev = null;
    Writable3.prototype.end = function(chunk, encoding, cb) {
      const state2 = this._writableState;
      if (typeof chunk === "function") {
        cb = chunk;
        chunk = null;
        encoding = null;
      } else if (typeof encoding === "function") {
        cb = encoding;
        encoding = null;
      }
      let err;
      if (chunk !== null && chunk !== void 0) {
        const ret = _write(this, chunk, encoding);
        if (ret instanceof Error2) {
          err = ret;
        }
      }
      if (state2.corked) {
        state2.corked = 1;
        this.uncork();
      }
      if (err) {
      } else if (!state2.errored && !state2.ending) {
        state2.ending = true;
        finishMaybe(this, state2, true);
        state2.ended = true;
      } else if (state2.finished) {
        err = new ERR_STREAM_ALREADY_FINISHED("end");
      } else if (state2.destroyed) {
        err = new ERR_STREAM_DESTROYED("end");
      }
      if (typeof cb === "function") {
        if (err || state2.finished) {
          process3.nextTick(cb, err);
        } else {
          state2[kOnFinished].push(cb);
        }
      }
      return this;
    };
    function needFinish(state2) {
      return state2.ending && !state2.destroyed && state2.constructed && state2.length === 0 && !state2.errored && state2.buffered.length === 0 && !state2.finished && !state2.writing && !state2.errorEmitted && !state2.closeEmitted;
    }
    __name(needFinish, "needFinish");
    function callFinal(stream3, state2) {
      let called = false;
      function onFinish(err) {
        if (called) {
          errorOrDestroy(stream3, err !== null && err !== void 0 ? err : ERR_MULTIPLE_CALLBACK());
          return;
        }
        called = true;
        state2.pendingcb--;
        if (err) {
          const onfinishCallbacks = state2[kOnFinished].splice(0);
          for (let i3 = 0; i3 < onfinishCallbacks.length; i3++) {
            onfinishCallbacks[i3](err);
          }
          errorOrDestroy(stream3, err, state2.sync);
        } else if (needFinish(state2)) {
          state2.prefinished = true;
          stream3.emit("prefinish");
          state2.pendingcb++;
          process3.nextTick(finish, stream3, state2);
        }
      }
      __name(onFinish, "onFinish");
      state2.sync = true;
      state2.pendingcb++;
      try {
        stream3._final(onFinish);
      } catch (err) {
        onFinish(err);
      }
      state2.sync = false;
    }
    __name(callFinal, "callFinal");
    function prefinish(stream3, state2) {
      if (!state2.prefinished && !state2.finalCalled) {
        if (typeof stream3._final === "function" && !state2.destroyed) {
          state2.finalCalled = true;
          callFinal(stream3, state2);
        } else {
          state2.prefinished = true;
          stream3.emit("prefinish");
        }
      }
    }
    __name(prefinish, "prefinish");
    function finishMaybe(stream3, state2, sync2) {
      if (needFinish(state2)) {
        prefinish(stream3, state2);
        if (state2.pendingcb === 0) {
          if (sync2) {
            state2.pendingcb++;
            process3.nextTick(
              (stream4, state3) => {
                if (needFinish(state3)) {
                  finish(stream4, state3);
                } else {
                  state3.pendingcb--;
                }
              },
              stream3,
              state2
            );
          } else if (needFinish(state2)) {
            state2.pendingcb++;
            finish(stream3, state2);
          }
        }
      }
    }
    __name(finishMaybe, "finishMaybe");
    function finish(stream3, state2) {
      state2.pendingcb--;
      state2.finished = true;
      const onfinishCallbacks = state2[kOnFinished].splice(0);
      for (let i3 = 0; i3 < onfinishCallbacks.length; i3++) {
        onfinishCallbacks[i3]();
      }
      stream3.emit("finish");
      if (state2.autoDestroy) {
        const rState = stream3._readableState;
        const autoDestroy = !rState || rState.autoDestroy && // We don't expect the readable to ever 'end'
        // if readable is explicitly set to false.
        (rState.endEmitted || rState.readable === false);
        if (autoDestroy) {
          stream3.destroy();
        }
      }
    }
    __name(finish, "finish");
    ObjectDefineProperties(Writable3.prototype, {
      closed: {
        __proto__: null,
        get() {
          return this._writableState ? this._writableState.closed : false;
        }
      },
      destroyed: {
        __proto__: null,
        get() {
          return this._writableState ? this._writableState.destroyed : false;
        },
        set(value) {
          if (this._writableState) {
            this._writableState.destroyed = value;
          }
        }
      },
      writable: {
        __proto__: null,
        get() {
          const w3 = this._writableState;
          return !!w3 && w3.writable !== false && !w3.destroyed && !w3.errored && !w3.ending && !w3.ended;
        },
        set(val) {
          if (this._writableState) {
            this._writableState.writable = !!val;
          }
        }
      },
      writableFinished: {
        __proto__: null,
        get() {
          return this._writableState ? this._writableState.finished : false;
        }
      },
      writableObjectMode: {
        __proto__: null,
        get() {
          return this._writableState ? this._writableState.objectMode : false;
        }
      },
      writableBuffer: {
        __proto__: null,
        get() {
          return this._writableState && this._writableState.getBuffer();
        }
      },
      writableEnded: {
        __proto__: null,
        get() {
          return this._writableState ? this._writableState.ending : false;
        }
      },
      writableNeedDrain: {
        __proto__: null,
        get() {
          const wState = this._writableState;
          if (!wState) return false;
          return !wState.destroyed && !wState.ending && wState.needDrain;
        }
      },
      writableHighWaterMark: {
        __proto__: null,
        get() {
          return this._writableState && this._writableState.highWaterMark;
        }
      },
      writableCorked: {
        __proto__: null,
        get() {
          return this._writableState ? this._writableState.corked : 0;
        }
      },
      writableLength: {
        __proto__: null,
        get() {
          return this._writableState && this._writableState.length;
        }
      },
      errored: {
        __proto__: null,
        enumerable: false,
        get() {
          return this._writableState ? this._writableState.errored : null;
        }
      },
      writableAborted: {
        __proto__: null,
        enumerable: false,
        get: /* @__PURE__ */ __name(function() {
          return !!(this._writableState.writable !== false && (this._writableState.destroyed || this._writableState.errored) && !this._writableState.finished);
        }, "get")
      }
    });
    var destroy = destroyImpl.destroy;
    Writable3.prototype.destroy = function(err, cb) {
      const state2 = this._writableState;
      if (!state2.destroyed && (state2.bufferedIndex < state2.buffered.length || state2[kOnFinished].length)) {
        process3.nextTick(errorBuffer, state2);
      }
      destroy.call(this, err, cb);
      return this;
    };
    Writable3.prototype._undestroy = destroyImpl.undestroy;
    Writable3.prototype._destroy = function(err, cb) {
      cb(err);
    };
    Writable3.prototype[EE.captureRejectionSymbol] = function(err) {
      this.destroy(err);
    };
    var webStreamsAdapters;
    function lazyWebStreams() {
      if (webStreamsAdapters === void 0) webStreamsAdapters = {};
      return webStreamsAdapters;
    }
    __name(lazyWebStreams, "lazyWebStreams");
    Writable3.fromWeb = function(writableStream, options) {
      return lazyWebStreams().newStreamWritableFromWritableStream(writableStream, options);
    };
    Writable3.toWeb = function(streamWritable) {
      return lazyWebStreams().newWritableStreamFromStreamWritable(streamWritable);
    };
  }
});

// ../../node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/duplexify.js
var require_duplexify3 = __commonJS({
  "../../node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/duplexify.js"(exports2, module2) {
    var process3 = require_process();
    var bufferModule = require("buffer");
    var {
      isReadable: isReadable2,
      isWritable: isWritable2,
      isIterable,
      isNodeStream,
      isReadableNodeStream,
      isWritableNodeStream,
      isDuplexNodeStream,
      isReadableStream: isReadableStream2,
      isWritableStream
    } = require_utils4();
    var eos = require_end_of_stream3();
    var {
      AbortError,
      codes: { ERR_INVALID_ARG_TYPE, ERR_INVALID_RETURN_VALUE }
    } = require_errors3();
    var { destroyer } = require_destroy4();
    var Duplex = require_duplex3();
    var Readable = require_readable4();
    var Writable3 = require_writable3();
    var { createDeferredPromise } = require_util5();
    var from = require_from3();
    var Blob2 = globalThis.Blob || bufferModule.Blob;
    var isBlob2 = typeof Blob2 !== "undefined" ? /* @__PURE__ */ __name(function isBlob3(b3) {
      return b3 instanceof Blob2;
    }, "isBlob") : /* @__PURE__ */ __name(function isBlob3(b3) {
      return false;
    }, "isBlob");
    var AbortController2 = globalThis.AbortController || require_abort_controller().AbortController;
    var { FunctionPrototypeCall } = require_primordials3();
    var Duplexify = class extends Duplex {
      static {
        __name(this, "Duplexify");
      }
      constructor(options) {
        super(options);
        if ((options === null || options === void 0 ? void 0 : options.readable) === false) {
          this._readableState.readable = false;
          this._readableState.ended = true;
          this._readableState.endEmitted = true;
        }
        if ((options === null || options === void 0 ? void 0 : options.writable) === false) {
          this._writableState.writable = false;
          this._writableState.ending = true;
          this._writableState.ended = true;
          this._writableState.finished = true;
        }
      }
    };
    module2.exports = /* @__PURE__ */ __name(function duplexify(body, name) {
      if (isDuplexNodeStream(body)) {
        return body;
      }
      if (isReadableNodeStream(body)) {
        return _duplexify({
          readable: body
        });
      }
      if (isWritableNodeStream(body)) {
        return _duplexify({
          writable: body
        });
      }
      if (isNodeStream(body)) {
        return _duplexify({
          writable: false,
          readable: false
        });
      }
      if (isReadableStream2(body)) {
        return _duplexify({
          readable: Readable.fromWeb(body)
        });
      }
      if (isWritableStream(body)) {
        return _duplexify({
          writable: Writable3.fromWeb(body)
        });
      }
      if (typeof body === "function") {
        const { value, write, final, destroy } = fromAsyncGen(body);
        if (isIterable(value)) {
          return from(Duplexify, value, {
            // TODO (ronag): highWaterMark?
            objectMode: true,
            write,
            final,
            destroy
          });
        }
        const then2 = value === null || value === void 0 ? void 0 : value.then;
        if (typeof then2 === "function") {
          let d3;
          const promise = FunctionPrototypeCall(
            then2,
            value,
            (val) => {
              if (val != null) {
                throw new ERR_INVALID_RETURN_VALUE("nully", "body", val);
              }
            },
            (err) => {
              destroyer(d3, err);
            }
          );
          return d3 = new Duplexify({
            // TODO (ronag): highWaterMark?
            objectMode: true,
            readable: false,
            write,
            final(cb) {
              final(async () => {
                try {
                  await promise;
                  process3.nextTick(cb, null);
                } catch (err) {
                  process3.nextTick(cb, err);
                }
              });
            },
            destroy
          });
        }
        throw new ERR_INVALID_RETURN_VALUE("Iterable, AsyncIterable or AsyncFunction", name, value);
      }
      if (isBlob2(body)) {
        return duplexify(body.arrayBuffer());
      }
      if (isIterable(body)) {
        return from(Duplexify, body, {
          // TODO (ronag): highWaterMark?
          objectMode: true,
          writable: false
        });
      }
      if (isReadableStream2(body === null || body === void 0 ? void 0 : body.readable) && isWritableStream(body === null || body === void 0 ? void 0 : body.writable)) {
        return Duplexify.fromWeb(body);
      }
      if (typeof (body === null || body === void 0 ? void 0 : body.writable) === "object" || typeof (body === null || body === void 0 ? void 0 : body.readable) === "object") {
        const readable = body !== null && body !== void 0 && body.readable ? isReadableNodeStream(body === null || body === void 0 ? void 0 : body.readable) ? body === null || body === void 0 ? void 0 : body.readable : duplexify(body.readable) : void 0;
        const writable = body !== null && body !== void 0 && body.writable ? isWritableNodeStream(body === null || body === void 0 ? void 0 : body.writable) ? body === null || body === void 0 ? void 0 : body.writable : duplexify(body.writable) : void 0;
        return _duplexify({
          readable,
          writable
        });
      }
      const then = body === null || body === void 0 ? void 0 : body.then;
      if (typeof then === "function") {
        let d3;
        FunctionPrototypeCall(
          then,
          body,
          (val) => {
            if (val != null) {
              d3.push(val);
            }
            d3.push(null);
          },
          (err) => {
            destroyer(d3, err);
          }
        );
        return d3 = new Duplexify({
          objectMode: true,
          writable: false,
          read() {
          }
        });
      }
      throw new ERR_INVALID_ARG_TYPE(
        name,
        [
          "Blob",
          "ReadableStream",
          "WritableStream",
          "Stream",
          "Iterable",
          "AsyncIterable",
          "Function",
          "{ readable, writable } pair",
          "Promise"
        ],
        body
      );
    }, "duplexify");
    function fromAsyncGen(fn) {
      let { promise, resolve: resolve13 } = createDeferredPromise();
      const ac = new AbortController2();
      const signal = ac.signal;
      const value = fn(
        (async function* () {
          while (true) {
            const _promise = promise;
            promise = null;
            const { chunk, done, cb } = await _promise;
            process3.nextTick(cb);
            if (done) return;
            if (signal.aborted)
              throw new AbortError(void 0, {
                cause: signal.reason
              });
            ({ promise, resolve: resolve13 } = createDeferredPromise());
            yield chunk;
          }
        })(),
        {
          signal
        }
      );
      return {
        value,
        write(chunk, encoding, cb) {
          const _resolve = resolve13;
          resolve13 = null;
          _resolve({
            chunk,
            done: false,
            cb
          });
        },
        final(cb) {
          const _resolve = resolve13;
          resolve13 = null;
          _resolve({
            done: true,
            cb
          });
        },
        destroy(err, cb) {
          ac.abort();
          cb(err);
        }
      };
    }
    __name(fromAsyncGen, "fromAsyncGen");
    function _duplexify(pair) {
      const r3 = pair.readable && typeof pair.readable.read !== "function" ? Readable.wrap(pair.readable) : pair.readable;
      const w3 = pair.writable;
      let readable = !!isReadable2(r3);
      let writable = !!isWritable2(w3);
      let ondrain;
      let onfinish;
      let onreadable;
      let onclose;
      let d3;
      function onfinished(err) {
        const cb = onclose;
        onclose = null;
        if (cb) {
          cb(err);
        } else if (err) {
          d3.destroy(err);
        }
      }
      __name(onfinished, "onfinished");
      d3 = new Duplexify({
        // TODO (ronag): highWaterMark?
        readableObjectMode: !!(r3 !== null && r3 !== void 0 && r3.readableObjectMode),
        writableObjectMode: !!(w3 !== null && w3 !== void 0 && w3.writableObjectMode),
        readable,
        writable
      });
      if (writable) {
        eos(w3, (err) => {
          writable = false;
          if (err) {
            destroyer(r3, err);
          }
          onfinished(err);
        });
        d3._write = function(chunk, encoding, callback) {
          if (w3.write(chunk, encoding)) {
            callback();
          } else {
            ondrain = callback;
          }
        };
        d3._final = function(callback) {
          w3.end();
          onfinish = callback;
        };
        w3.on("drain", function() {
          if (ondrain) {
            const cb = ondrain;
            ondrain = null;
            cb();
          }
        });
        w3.on("finish", function() {
          if (onfinish) {
            const cb = onfinish;
            onfinish = null;
            cb();
          }
        });
      }
      if (readable) {
        eos(r3, (err) => {
          readable = false;
          if (err) {
            destroyer(r3, err);
          }
          onfinished(err);
        });
        r3.on("readable", function() {
          if (onreadable) {
            const cb = onreadable;
            onreadable = null;
            cb();
          }
        });
        r3.on("end", function() {
          d3.push(null);
        });
        d3._read = function() {
          while (true) {
            const buf = r3.read();
            if (buf === null) {
              onreadable = d3._read;
              return;
            }
            if (!d3.push(buf)) {
              return;
            }
          }
        };
      }
      d3._destroy = function(err, callback) {
        if (!err && onclose !== null) {
          err = new AbortError();
        }
        onreadable = null;
        ondrain = null;
        onfinish = null;
        if (onclose === null) {
          callback(err);
        } else {
          onclose = callback;
          destroyer(w3, err);
          destroyer(r3, err);
        }
      };
      return d3;
    }
    __name(_duplexify, "_duplexify");
  }
});

// ../../node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/duplex.js
var require_duplex3 = __commonJS({
  "../../node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/duplex.js"(exports2, module2) {
    "use strict";
    var {
      ObjectDefineProperties,
      ObjectGetOwnPropertyDescriptor,
      ObjectKeys,
      ObjectSetPrototypeOf
    } = require_primordials3();
    module2.exports = Duplex;
    var Readable = require_readable4();
    var Writable3 = require_writable3();
    ObjectSetPrototypeOf(Duplex.prototype, Readable.prototype);
    ObjectSetPrototypeOf(Duplex, Readable);
    {
      const keys = ObjectKeys(Writable3.prototype);
      for (let i3 = 0; i3 < keys.length; i3++) {
        const method = keys[i3];
        if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable3.prototype[method];
      }
    }
    function Duplex(options) {
      if (!(this instanceof Duplex)) return new Duplex(options);
      Readable.call(this, options);
      Writable3.call(this, options);
      if (options) {
        this.allowHalfOpen = options.allowHalfOpen !== false;
        if (options.readable === false) {
          this._readableState.readable = false;
          this._readableState.ended = true;
          this._readableState.endEmitted = true;
        }
        if (options.writable === false) {
          this._writableState.writable = false;
          this._writableState.ending = true;
          this._writableState.ended = true;
          this._writableState.finished = true;
        }
      } else {
        this.allowHalfOpen = true;
      }
    }
    __name(Duplex, "Duplex");
    ObjectDefineProperties(Duplex.prototype, {
      writable: {
        __proto__: null,
        ...ObjectGetOwnPropertyDescriptor(Writable3.prototype, "writable")
      },
      writableHighWaterMark: {
        __proto__: null,
        ...ObjectGetOwnPropertyDescriptor(Writable3.prototype, "writableHighWaterMark")
      },
      writableObjectMode: {
        __proto__: null,
        ...ObjectGetOwnPropertyDescriptor(Writable3.prototype, "writableObjectMode")
      },
      writableBuffer: {
        __proto__: null,
        ...ObjectGetOwnPropertyDescriptor(Writable3.prototype, "writableBuffer")
      },
      writableLength: {
        __proto__: null,
        ...ObjectGetOwnPropertyDescriptor(Writable3.prototype, "writableLength")
      },
      writableFinished: {
        __proto__: null,
        ...ObjectGetOwnPropertyDescriptor(Writable3.prototype, "writableFinished")
      },
      writableCorked: {
        __proto__: null,
        ...ObjectGetOwnPropertyDescriptor(Writable3.prototype, "writableCorked")
      },
      writableEnded: {
        __proto__: null,
        ...ObjectGetOwnPropertyDescriptor(Writable3.prototype, "writableEnded")
      },
      writableNeedDrain: {
        __proto__: null,
        ...ObjectGetOwnPropertyDescriptor(Writable3.prototype, "writableNeedDrain")
      },
      destroyed: {
        __proto__: null,
        get() {
          if (this._readableState === void 0 || this._writableState === void 0) {
            return false;
          }
          return this._readableState.destroyed && this._writableState.destroyed;
        },
        set(value) {
          if (this._readableState && this._writableState) {
            this._readableState.destroyed = value;
            this._writableState.destroyed = value;
          }
        }
      }
    });
    var webStreamsAdapters;
    function lazyWebStreams() {
      if (webStreamsAdapters === void 0) webStreamsAdapters = {};
      return webStreamsAdapters;
    }
    __name(lazyWebStreams, "lazyWebStreams");
    Duplex.fromWeb = function(pair, options) {
      return lazyWebStreams().newStreamDuplexFromReadableWritablePair(pair, options);
    };
    Duplex.toWeb = function(duplex) {
      return lazyWebStreams().newReadableWritablePairFromDuplex(duplex);
    };
    var duplexify;
    Duplex.from = function(body) {
      if (!duplexify) {
        duplexify = require_duplexify3();
      }
      return duplexify(body, "body");
    };
  }
});

// ../../node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/transform.js
var require_transform3 = __commonJS({
  "../../node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/transform.js"(exports2, module2) {
    "use strict";
    var { ObjectSetPrototypeOf, Symbol: Symbol2 } = require_primordials3();
    module2.exports = Transform;
    var { ERR_METHOD_NOT_IMPLEMENTED } = require_errors3().codes;
    var Duplex = require_duplex3();
    var { getHighWaterMark } = require_state3();
    ObjectSetPrototypeOf(Transform.prototype, Duplex.prototype);
    ObjectSetPrototypeOf(Transform, Duplex);
    var kCallback = Symbol2("kCallback");
    function Transform(options) {
      if (!(this instanceof Transform)) return new Transform(options);
      const readableHighWaterMark = options ? getHighWaterMark(this, options, "readableHighWaterMark", true) : null;
      if (readableHighWaterMark === 0) {
        options = {
          ...options,
          highWaterMark: null,
          readableHighWaterMark,
          // TODO (ronag): 0 is not optimal since we have
          // a "bug" where we check needDrain before calling _write and not after.
          // Refs: https://github.com/nodejs/node/pull/32887
          // Refs: https://github.com/nodejs/node/pull/35941
          writableHighWaterMark: options.writableHighWaterMark || 0
        };
      }
      Duplex.call(this, options);
      this._readableState.sync = false;
      this[kCallback] = null;
      if (options) {
        if (typeof options.transform === "function") this._transform = options.transform;
        if (typeof options.flush === "function") this._flush = options.flush;
      }
      this.on("prefinish", prefinish);
    }
    __name(Transform, "Transform");
    function final(cb) {
      if (typeof this._flush === "function" && !this.destroyed) {
        this._flush((er, data3) => {
          if (er) {
            if (cb) {
              cb(er);
            } else {
              this.destroy(er);
            }
            return;
          }
          if (data3 != null) {
            this.push(data3);
          }
          this.push(null);
          if (cb) {
            cb();
          }
        });
      } else {
        this.push(null);
        if (cb) {
          cb();
        }
      }
    }
    __name(final, "final");
    function prefinish() {
      if (this._final !== final) {
        final.call(this);
      }
    }
    __name(prefinish, "prefinish");
    Transform.prototype._final = final;
    Transform.prototype._transform = function(chunk, encoding, callback) {
      throw new ERR_METHOD_NOT_IMPLEMENTED("_transform()");
    };
    Transform.prototype._write = function(chunk, encoding, callback) {
      const rState = this._readableState;
      const wState = this._writableState;
      const length = rState.length;
      this._transform(chunk, encoding, (err, val) => {
        if (err) {
          callback(err);
          return;
        }
        if (val != null) {
          this.push(val);
        }
        if (wState.ended || // Backwards compat.
        length === rState.length || // Backwards compat.
        rState.length < rState.highWaterMark) {
          callback();
        } else {
          this[kCallback] = callback;
        }
      });
    };
    Transform.prototype._read = function() {
      if (this[kCallback]) {
        const callback = this[kCallback];
        this[kCallback] = null;
        callback();
      }
    };
  }
});

// ../../node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/passthrough.js
var require_passthrough4 = __commonJS({
  "../../node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/passthrough.js"(exports2, module2) {
    "use strict";
    var { ObjectSetPrototypeOf } = require_primordials3();
    module2.exports = PassThrough;
    var Transform = require_transform3();
    ObjectSetPrototypeOf(PassThrough.prototype, Transform.prototype);
    ObjectSetPrototypeOf(PassThrough, Transform);
    function PassThrough(options) {
      if (!(this instanceof PassThrough)) return new PassThrough(options);
      Transform.call(this, options);
    }
    __name(PassThrough, "PassThrough");
    PassThrough.prototype._transform = function(chunk, encoding, cb) {
      cb(null, chunk);
    };
  }
});

// ../../node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/pipeline.js
var require_pipeline3 = __commonJS({
  "../../node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/pipeline.js"(exports2, module2) {
    var process3 = require_process();
    var { ArrayIsArray, Promise: Promise2, SymbolAsyncIterator, SymbolDispose } = require_primordials3();
    var eos = require_end_of_stream3();
    var { once } = require_util5();
    var destroyImpl = require_destroy4();
    var Duplex = require_duplex3();
    var {
      aggregateTwoErrors,
      codes: {
        ERR_INVALID_ARG_TYPE,
        ERR_INVALID_RETURN_VALUE,
        ERR_MISSING_ARGS,
        ERR_STREAM_DESTROYED,
        ERR_STREAM_PREMATURE_CLOSE
      },
      AbortError
    } = require_errors3();
    var { validateFunction, validateAbortSignal } = require_validators3();
    var {
      isIterable,
      isReadable: isReadable2,
      isReadableNodeStream,
      isNodeStream,
      isTransformStream,
      isWebStream,
      isReadableStream: isReadableStream2,
      isReadableFinished
    } = require_utils4();
    var AbortController2 = globalThis.AbortController || require_abort_controller().AbortController;
    var PassThrough;
    var Readable;
    var addAbortListener;
    function destroyer(stream3, reading, writing) {
      let finished = false;
      stream3.on("close", () => {
        finished = true;
      });
      const cleanup = eos(
        stream3,
        {
          readable: reading,
          writable: writing
        },
        (err) => {
          finished = !err;
        }
      );
      return {
        destroy: /* @__PURE__ */ __name((err) => {
          if (finished) return;
          finished = true;
          destroyImpl.destroyer(stream3, err || new ERR_STREAM_DESTROYED("pipe"));
        }, "destroy"),
        cleanup
      };
    }
    __name(destroyer, "destroyer");
    function popCallback(streams) {
      validateFunction(streams[streams.length - 1], "streams[stream.length - 1]");
      return streams.pop();
    }
    __name(popCallback, "popCallback");
    function makeAsyncIterable(val) {
      if (isIterable(val)) {
        return val;
      } else if (isReadableNodeStream(val)) {
        return fromReadable(val);
      }
      throw new ERR_INVALID_ARG_TYPE("val", ["Readable", "Iterable", "AsyncIterable"], val);
    }
    __name(makeAsyncIterable, "makeAsyncIterable");
    async function* fromReadable(val) {
      if (!Readable) {
        Readable = require_readable4();
      }
      yield* Readable.prototype[SymbolAsyncIterator].call(val);
    }
    __name(fromReadable, "fromReadable");
    async function pumpToNode(iterable, writable, finish, { end }) {
      let error5;
      let onresolve = null;
      const resume = /* @__PURE__ */ __name((err) => {
        if (err) {
          error5 = err;
        }
        if (onresolve) {
          const callback = onresolve;
          onresolve = null;
          callback();
        }
      }, "resume");
      const wait = /* @__PURE__ */ __name(() => new Promise2((resolve13, reject) => {
        if (error5) {
          reject(error5);
        } else {
          onresolve = /* @__PURE__ */ __name(() => {
            if (error5) {
              reject(error5);
            } else {
              resolve13();
            }
          }, "onresolve");
        }
      }), "wait");
      writable.on("drain", resume);
      const cleanup = eos(
        writable,
        {
          readable: false
        },
        resume
      );
      try {
        if (writable.writableNeedDrain) {
          await wait();
        }
        for await (const chunk of iterable) {
          if (!writable.write(chunk)) {
            await wait();
          }
        }
        if (end) {
          writable.end();
          await wait();
        }
        finish();
      } catch (err) {
        finish(error5 !== err ? aggregateTwoErrors(error5, err) : err);
      } finally {
        cleanup();
        writable.off("drain", resume);
      }
    }
    __name(pumpToNode, "pumpToNode");
    async function pumpToWeb(readable, writable, finish, { end }) {
      if (isTransformStream(writable)) {
        writable = writable.writable;
      }
      const writer = writable.getWriter();
      try {
        for await (const chunk of readable) {
          await writer.ready;
          writer.write(chunk).catch(() => {
          });
        }
        await writer.ready;
        if (end) {
          await writer.close();
        }
        finish();
      } catch (err) {
        try {
          await writer.abort(err);
          finish(err);
        } catch (err2) {
          finish(err2);
        }
      }
    }
    __name(pumpToWeb, "pumpToWeb");
    function pipeline(...streams) {
      return pipelineImpl(streams, once(popCallback(streams)));
    }
    __name(pipeline, "pipeline");
    function pipelineImpl(streams, callback, opts) {
      if (streams.length === 1 && ArrayIsArray(streams[0])) {
        streams = streams[0];
      }
      if (streams.length < 2) {
        throw new ERR_MISSING_ARGS("streams");
      }
      const ac = new AbortController2();
      const signal = ac.signal;
      const outerSignal = opts === null || opts === void 0 ? void 0 : opts.signal;
      const lastStreamCleanup = [];
      validateAbortSignal(outerSignal, "options.signal");
      function abort() {
        finishImpl(new AbortError());
      }
      __name(abort, "abort");
      addAbortListener = addAbortListener || require_util5().addAbortListener;
      let disposable;
      if (outerSignal) {
        disposable = addAbortListener(outerSignal, abort);
      }
      let error5;
      let value;
      const destroys = [];
      let finishCount = 0;
      function finish(err) {
        finishImpl(err, --finishCount === 0);
      }
      __name(finish, "finish");
      function finishImpl(err, final) {
        var _disposable;
        if (err && (!error5 || error5.code === "ERR_STREAM_PREMATURE_CLOSE")) {
          error5 = err;
        }
        if (!error5 && !final) {
          return;
        }
        while (destroys.length) {
          destroys.shift()(error5);
        }
        ;
        (_disposable = disposable) === null || _disposable === void 0 ? void 0 : _disposable[SymbolDispose]();
        ac.abort();
        if (final) {
          if (!error5) {
            lastStreamCleanup.forEach((fn) => fn());
          }
          process3.nextTick(callback, error5, value);
        }
      }
      __name(finishImpl, "finishImpl");
      let ret;
      for (let i3 = 0; i3 < streams.length; i3++) {
        const stream3 = streams[i3];
        const reading = i3 < streams.length - 1;
        const writing = i3 > 0;
        const end = reading || (opts === null || opts === void 0 ? void 0 : opts.end) !== false;
        const isLastStream = i3 === streams.length - 1;
        if (isNodeStream(stream3)) {
          let onError2 = function(err) {
            if (err && err.name !== "AbortError" && err.code !== "ERR_STREAM_PREMATURE_CLOSE") {
              finish(err);
            }
          };
          var onError = onError2;
          __name(onError2, "onError");
          if (end) {
            const { destroy, cleanup } = destroyer(stream3, reading, writing);
            destroys.push(destroy);
            if (isReadable2(stream3) && isLastStream) {
              lastStreamCleanup.push(cleanup);
            }
          }
          stream3.on("error", onError2);
          if (isReadable2(stream3) && isLastStream) {
            lastStreamCleanup.push(() => {
              stream3.removeListener("error", onError2);
            });
          }
        }
        if (i3 === 0) {
          if (typeof stream3 === "function") {
            ret = stream3({
              signal
            });
            if (!isIterable(ret)) {
              throw new ERR_INVALID_RETURN_VALUE("Iterable, AsyncIterable or Stream", "source", ret);
            }
          } else if (isIterable(stream3) || isReadableNodeStream(stream3) || isTransformStream(stream3)) {
            ret = stream3;
          } else {
            ret = Duplex.from(stream3);
          }
        } else if (typeof stream3 === "function") {
          if (isTransformStream(ret)) {
            var _ret;
            ret = makeAsyncIterable((_ret = ret) === null || _ret === void 0 ? void 0 : _ret.readable);
          } else {
            ret = makeAsyncIterable(ret);
          }
          ret = stream3(ret, {
            signal
          });
          if (reading) {
            if (!isIterable(ret, true)) {
              throw new ERR_INVALID_RETURN_VALUE("AsyncIterable", `transform[${i3 - 1}]`, ret);
            }
          } else {
            var _ret2;
            if (!PassThrough) {
              PassThrough = require_passthrough4();
            }
            const pt = new PassThrough({
              objectMode: true
            });
            const then = (_ret2 = ret) === null || _ret2 === void 0 ? void 0 : _ret2.then;
            if (typeof then === "function") {
              finishCount++;
              then.call(
                ret,
                (val) => {
                  value = val;
                  if (val != null) {
                    pt.write(val);
                  }
                  if (end) {
                    pt.end();
                  }
                  process3.nextTick(finish);
                },
                (err) => {
                  pt.destroy(err);
                  process3.nextTick(finish, err);
                }
              );
            } else if (isIterable(ret, true)) {
              finishCount++;
              pumpToNode(ret, pt, finish, {
                end
              });
            } else if (isReadableStream2(ret) || isTransformStream(ret)) {
              const toRead = ret.readable || ret;
              finishCount++;
              pumpToNode(toRead, pt, finish, {
                end
              });
            } else {
              throw new ERR_INVALID_RETURN_VALUE("AsyncIterable or Promise", "destination", ret);
            }
            ret = pt;
            const { destroy, cleanup } = destroyer(ret, false, true);
            destroys.push(destroy);
            if (isLastStream) {
              lastStreamCleanup.push(cleanup);
            }
          }
        } else if (isNodeStream(stream3)) {
          if (isReadableNodeStream(ret)) {
            finishCount += 2;
            const cleanup = pipe(ret, stream3, finish, {
              end
            });
            if (isReadable2(stream3) && isLastStream) {
              lastStreamCleanup.push(cleanup);
            }
          } else if (isTransformStream(ret) || isReadableStream2(ret)) {
            const toRead = ret.readable || ret;
            finishCount++;
            pumpToNode(toRead, stream3, finish, {
              end
            });
          } else if (isIterable(ret)) {
            finishCount++;
            pumpToNode(ret, stream3, finish, {
              end
            });
          } else {
            throw new ERR_INVALID_ARG_TYPE(
              "val",
              ["Readable", "Iterable", "AsyncIterable", "ReadableStream", "TransformStream"],
              ret
            );
          }
          ret = stream3;
        } else if (isWebStream(stream3)) {
          if (isReadableNodeStream(ret)) {
            finishCount++;
            pumpToWeb(makeAsyncIterable(ret), stream3, finish, {
              end
            });
          } else if (isReadableStream2(ret) || isIterable(ret)) {
            finishCount++;
            pumpToWeb(ret, stream3, finish, {
              end
            });
          } else if (isTransformStream(ret)) {
            finishCount++;
            pumpToWeb(ret.readable, stream3, finish, {
              end
            });
          } else {
            throw new ERR_INVALID_ARG_TYPE(
              "val",
              ["Readable", "Iterable", "AsyncIterable", "ReadableStream", "TransformStream"],
              ret
            );
          }
          ret = stream3;
        } else {
          ret = Duplex.from(stream3);
        }
      }
      if (signal !== null && signal !== void 0 && signal.aborted || outerSignal !== null && outerSignal !== void 0 && outerSignal.aborted) {
        process3.nextTick(abort);
      }
      return ret;
    }
    __name(pipelineImpl, "pipelineImpl");
    function pipe(src, dst, finish, { end }) {
      let ended = false;
      dst.on("close", () => {
        if (!ended) {
          finish(new ERR_STREAM_PREMATURE_CLOSE());
        }
      });
      src.pipe(dst, {
        end: false
      });
      if (end) {
        let endFn2 = function() {
          ended = true;
          dst.end();
        };
        var endFn = endFn2;
        __name(endFn2, "endFn");
        if (isReadableFinished(src)) {
          process3.nextTick(endFn2);
        } else {
          src.once("end", endFn2);
        }
      } else {
        finish();
      }
      eos(
        src,
        {
          readable: true,
          writable: false
        },
        (err) => {
          const rState = src._readableState;
          if (err && err.code === "ERR_STREAM_PREMATURE_CLOSE" && rState && rState.ended && !rState.errored && !rState.errorEmitted) {
            src.once("end", finish).once("error", finish);
          } else {
            finish(err);
          }
        }
      );
      return eos(
        dst,
        {
          readable: false,
          writable: true
        },
        finish
      );
    }
    __name(pipe, "pipe");
    module2.exports = {
      pipelineImpl,
      pipeline
    };
  }
});

// ../../node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/compose.js
var require_compose3 = __commonJS({
  "../../node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/compose.js"(exports2, module2) {
    "use strict";
    var { pipeline } = require_pipeline3();
    var Duplex = require_duplex3();
    var { destroyer } = require_destroy4();
    var {
      isNodeStream,
      isReadable: isReadable2,
      isWritable: isWritable2,
      isWebStream,
      isTransformStream,
      isWritableStream,
      isReadableStream: isReadableStream2
    } = require_utils4();
    var {
      AbortError,
      codes: { ERR_INVALID_ARG_VALUE, ERR_MISSING_ARGS }
    } = require_errors3();
    var eos = require_end_of_stream3();
    module2.exports = /* @__PURE__ */ __name(function compose(...streams) {
      if (streams.length === 0) {
        throw new ERR_MISSING_ARGS("streams");
      }
      if (streams.length === 1) {
        return Duplex.from(streams[0]);
      }
      const orgStreams = [...streams];
      if (typeof streams[0] === "function") {
        streams[0] = Duplex.from(streams[0]);
      }
      if (typeof streams[streams.length - 1] === "function") {
        const idx = streams.length - 1;
        streams[idx] = Duplex.from(streams[idx]);
      }
      for (let n3 = 0; n3 < streams.length; ++n3) {
        if (!isNodeStream(streams[n3]) && !isWebStream(streams[n3])) {
          continue;
        }
        if (n3 < streams.length - 1 && !(isReadable2(streams[n3]) || isReadableStream2(streams[n3]) || isTransformStream(streams[n3]))) {
          throw new ERR_INVALID_ARG_VALUE(`streams[${n3}]`, orgStreams[n3], "must be readable");
        }
        if (n3 > 0 && !(isWritable2(streams[n3]) || isWritableStream(streams[n3]) || isTransformStream(streams[n3]))) {
          throw new ERR_INVALID_ARG_VALUE(`streams[${n3}]`, orgStreams[n3], "must be writable");
        }
      }
      let ondrain;
      let onfinish;
      let onreadable;
      let onclose;
      let d3;
      function onfinished(err) {
        const cb = onclose;
        onclose = null;
        if (cb) {
          cb(err);
        } else if (err) {
          d3.destroy(err);
        } else if (!readable && !writable) {
          d3.destroy();
        }
      }
      __name(onfinished, "onfinished");
      const head = streams[0];
      const tail = pipeline(streams, onfinished);
      const writable = !!(isWritable2(head) || isWritableStream(head) || isTransformStream(head));
      const readable = !!(isReadable2(tail) || isReadableStream2(tail) || isTransformStream(tail));
      d3 = new Duplex({
        // TODO (ronag): highWaterMark?
        writableObjectMode: !!(head !== null && head !== void 0 && head.writableObjectMode),
        readableObjectMode: !!(tail !== null && tail !== void 0 && tail.readableObjectMode),
        writable,
        readable
      });
      if (writable) {
        if (isNodeStream(head)) {
          d3._write = function(chunk, encoding, callback) {
            if (head.write(chunk, encoding)) {
              callback();
            } else {
              ondrain = callback;
            }
          };
          d3._final = function(callback) {
            head.end();
            onfinish = callback;
          };
          head.on("drain", function() {
            if (ondrain) {
              const cb = ondrain;
              ondrain = null;
              cb();
            }
          });
        } else if (isWebStream(head)) {
          const writable2 = isTransformStream(head) ? head.writable : head;
          const writer = writable2.getWriter();
          d3._write = async function(chunk, encoding, callback) {
            try {
              await writer.ready;
              writer.write(chunk).catch(() => {
              });
              callback();
            } catch (err) {
              callback(err);
            }
          };
          d3._final = async function(callback) {
            try {
              await writer.ready;
              writer.close().catch(() => {
              });
              onfinish = callback;
            } catch (err) {
              callback(err);
            }
          };
        }
        const toRead = isTransformStream(tail) ? tail.readable : tail;
        eos(toRead, () => {
          if (onfinish) {
            const cb = onfinish;
            onfinish = null;
            cb();
          }
        });
      }
      if (readable) {
        if (isNodeStream(tail)) {
          tail.on("readable", function() {
            if (onreadable) {
              const cb = onreadable;
              onreadable = null;
              cb();
            }
          });
          tail.on("end", function() {
            d3.push(null);
          });
          d3._read = function() {
            while (true) {
              const buf = tail.read();
              if (buf === null) {
                onreadable = d3._read;
                return;
              }
              if (!d3.push(buf)) {
                return;
              }
            }
          };
        } else if (isWebStream(tail)) {
          const readable2 = isTransformStream(tail) ? tail.readable : tail;
          const reader = readable2.getReader();
          d3._read = async function() {
            while (true) {
              try {
                const { value, done } = await reader.read();
                if (!d3.push(value)) {
                  return;
                }
                if (done) {
                  d3.push(null);
                  return;
                }
              } catch {
                return;
              }
            }
          };
        }
      }
      d3._destroy = function(err, callback) {
        if (!err && onclose !== null) {
          err = new AbortError();
        }
        onreadable = null;
        ondrain = null;
        onfinish = null;
        if (onclose === null) {
          callback(err);
        } else {
          onclose = callback;
          if (isNodeStream(tail)) {
            destroyer(tail, err);
          }
        }
      };
      return d3;
    }, "compose");
  }
});

// ../../node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/operators.js
var require_operators3 = __commonJS({
  "../../node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/operators.js"(exports2, module2) {
    "use strict";
    var AbortController2 = globalThis.AbortController || require_abort_controller().AbortController;
    var {
      codes: { ERR_INVALID_ARG_VALUE, ERR_INVALID_ARG_TYPE, ERR_MISSING_ARGS, ERR_OUT_OF_RANGE },
      AbortError
    } = require_errors3();
    var { validateAbortSignal, validateInteger, validateObject } = require_validators3();
    var kWeakHandler = require_primordials3().Symbol("kWeak");
    var kResistStopPropagation = require_primordials3().Symbol("kResistStopPropagation");
    var { finished } = require_end_of_stream3();
    var staticCompose = require_compose3();
    var { addAbortSignalNoValidate } = require_add_abort_signal3();
    var { isWritable: isWritable2, isNodeStream } = require_utils4();
    var { deprecate } = require_util5();
    var {
      ArrayPrototypePush,
      Boolean: Boolean2,
      MathFloor,
      Number: Number2,
      NumberIsNaN,
      Promise: Promise2,
      PromiseReject,
      PromiseResolve,
      PromisePrototypeThen,
      Symbol: Symbol2
    } = require_primordials3();
    var kEmpty = Symbol2("kEmpty");
    var kEof = Symbol2("kEof");
    function compose(stream3, options) {
      if (options != null) {
        validateObject(options, "options");
      }
      if ((options === null || options === void 0 ? void 0 : options.signal) != null) {
        validateAbortSignal(options.signal, "options.signal");
      }
      if (isNodeStream(stream3) && !isWritable2(stream3)) {
        throw new ERR_INVALID_ARG_VALUE("stream", stream3, "must be writable");
      }
      const composedStream = staticCompose(this, stream3);
      if (options !== null && options !== void 0 && options.signal) {
        addAbortSignalNoValidate(options.signal, composedStream);
      }
      return composedStream;
    }
    __name(compose, "compose");
    function map3(fn, options) {
      if (typeof fn !== "function") {
        throw new ERR_INVALID_ARG_TYPE("fn", ["Function", "AsyncFunction"], fn);
      }
      if (options != null) {
        validateObject(options, "options");
      }
      if ((options === null || options === void 0 ? void 0 : options.signal) != null) {
        validateAbortSignal(options.signal, "options.signal");
      }
      let concurrency = 1;
      if ((options === null || options === void 0 ? void 0 : options.concurrency) != null) {
        concurrency = MathFloor(options.concurrency);
      }
      let highWaterMark = concurrency - 1;
      if ((options === null || options === void 0 ? void 0 : options.highWaterMark) != null) {
        highWaterMark = MathFloor(options.highWaterMark);
      }
      validateInteger(concurrency, "options.concurrency", 1);
      validateInteger(highWaterMark, "options.highWaterMark", 0);
      highWaterMark += concurrency;
      return (/* @__PURE__ */ __name(async function* map4() {
        const signal = require_util5().AbortSignalAny(
          [options === null || options === void 0 ? void 0 : options.signal].filter(Boolean2)
        );
        const stream3 = this;
        const queue = [];
        const signalOpt = {
          signal
        };
        let next;
        let resume;
        let done = false;
        let cnt = 0;
        function onCatch() {
          done = true;
          afterItemProcessed();
        }
        __name(onCatch, "onCatch");
        function afterItemProcessed() {
          cnt -= 1;
          maybeResume();
        }
        __name(afterItemProcessed, "afterItemProcessed");
        function maybeResume() {
          if (resume && !done && cnt < concurrency && queue.length < highWaterMark) {
            resume();
            resume = null;
          }
        }
        __name(maybeResume, "maybeResume");
        async function pump() {
          try {
            for await (let val of stream3) {
              if (done) {
                return;
              }
              if (signal.aborted) {
                throw new AbortError();
              }
              try {
                val = fn(val, signalOpt);
                if (val === kEmpty) {
                  continue;
                }
                val = PromiseResolve(val);
              } catch (err) {
                val = PromiseReject(err);
              }
              cnt += 1;
              PromisePrototypeThen(val, afterItemProcessed, onCatch);
              queue.push(val);
              if (next) {
                next();
                next = null;
              }
              if (!done && (queue.length >= highWaterMark || cnt >= concurrency)) {
                await new Promise2((resolve13) => {
                  resume = resolve13;
                });
              }
            }
            queue.push(kEof);
          } catch (err) {
            const val = PromiseReject(err);
            PromisePrototypeThen(val, afterItemProcessed, onCatch);
            queue.push(val);
          } finally {
            done = true;
            if (next) {
              next();
              next = null;
            }
          }
        }
        __name(pump, "pump");
        pump();
        try {
          while (true) {
            while (queue.length > 0) {
              const val = await queue[0];
              if (val === kEof) {
                return;
              }
              if (signal.aborted) {
                throw new AbortError();
              }
              if (val !== kEmpty) {
                yield val;
              }
              queue.shift();
              maybeResume();
            }
            await new Promise2((resolve13) => {
              next = resolve13;
            });
          }
        } finally {
          done = true;
          if (resume) {
            resume();
            resume = null;
          }
        }
      }, "map")).call(this);
    }
    __name(map3, "map");
    function asIndexedPairs(options = void 0) {
      if (options != null) {
        validateObject(options, "options");
      }
      if ((options === null || options === void 0 ? void 0 : options.signal) != null) {
        validateAbortSignal(options.signal, "options.signal");
      }
      return (/* @__PURE__ */ __name(async function* asIndexedPairs2() {
        let index = 0;
        for await (const val of this) {
          var _options$signal;
          if (options !== null && options !== void 0 && (_options$signal = options.signal) !== null && _options$signal !== void 0 && _options$signal.aborted) {
            throw new AbortError({
              cause: options.signal.reason
            });
          }
          yield [index++, val];
        }
      }, "asIndexedPairs")).call(this);
    }
    __name(asIndexedPairs, "asIndexedPairs");
    async function some2(fn, options = void 0) {
      for await (const unused of filter4.call(this, fn, options)) {
        return true;
      }
      return false;
    }
    __name(some2, "some");
    async function every(fn, options = void 0) {
      if (typeof fn !== "function") {
        throw new ERR_INVALID_ARG_TYPE("fn", ["Function", "AsyncFunction"], fn);
      }
      return !await some2.call(
        this,
        async (...args) => {
          return !await fn(...args);
        },
        options
      );
    }
    __name(every, "every");
    async function find(fn, options) {
      for await (const result2 of filter4.call(this, fn, options)) {
        return result2;
      }
      return void 0;
    }
    __name(find, "find");
    async function forEach(fn, options) {
      if (typeof fn !== "function") {
        throw new ERR_INVALID_ARG_TYPE("fn", ["Function", "AsyncFunction"], fn);
      }
      async function forEachFn(value, options2) {
        await fn(value, options2);
        return kEmpty;
      }
      __name(forEachFn, "forEachFn");
      for await (const unused of map3.call(this, forEachFn, options)) ;
    }
    __name(forEach, "forEach");
    function filter4(fn, options) {
      if (typeof fn !== "function") {
        throw new ERR_INVALID_ARG_TYPE("fn", ["Function", "AsyncFunction"], fn);
      }
      async function filterFn(value, options2) {
        if (await fn(value, options2)) {
          return value;
        }
        return kEmpty;
      }
      __name(filterFn, "filterFn");
      return map3.call(this, filterFn, options);
    }
    __name(filter4, "filter");
    var ReduceAwareErrMissingArgs = class extends ERR_MISSING_ARGS {
      static {
        __name(this, "ReduceAwareErrMissingArgs");
      }
      constructor() {
        super("reduce");
        this.message = "Reduce of an empty stream requires an initial value";
      }
    };
    async function reduce(reducer, initialValue, options) {
      var _options$signal2;
      if (typeof reducer !== "function") {
        throw new ERR_INVALID_ARG_TYPE("reducer", ["Function", "AsyncFunction"], reducer);
      }
      if (options != null) {
        validateObject(options, "options");
      }
      if ((options === null || options === void 0 ? void 0 : options.signal) != null) {
        validateAbortSignal(options.signal, "options.signal");
      }
      let hasInitialValue = arguments.length > 1;
      if (options !== null && options !== void 0 && (_options$signal2 = options.signal) !== null && _options$signal2 !== void 0 && _options$signal2.aborted) {
        const err = new AbortError(void 0, {
          cause: options.signal.reason
        });
        this.once("error", () => {
        });
        await finished(this.destroy(err));
        throw err;
      }
      const ac = new AbortController2();
      const signal = ac.signal;
      if (options !== null && options !== void 0 && options.signal) {
        const opts = {
          once: true,
          [kWeakHandler]: this,
          [kResistStopPropagation]: true
        };
        options.signal.addEventListener("abort", () => ac.abort(), opts);
      }
      let gotAnyItemFromStream = false;
      try {
        for await (const value of this) {
          var _options$signal3;
          gotAnyItemFromStream = true;
          if (options !== null && options !== void 0 && (_options$signal3 = options.signal) !== null && _options$signal3 !== void 0 && _options$signal3.aborted) {
            throw new AbortError();
          }
          if (!hasInitialValue) {
            initialValue = value;
            hasInitialValue = true;
          } else {
            initialValue = await reducer(initialValue, value, {
              signal
            });
          }
        }
        if (!gotAnyItemFromStream && !hasInitialValue) {
          throw new ReduceAwareErrMissingArgs();
        }
      } finally {
        ac.abort();
      }
      return initialValue;
    }
    __name(reduce, "reduce");
    async function toArray(options) {
      if (options != null) {
        validateObject(options, "options");
      }
      if ((options === null || options === void 0 ? void 0 : options.signal) != null) {
        validateAbortSignal(options.signal, "options.signal");
      }
      const result2 = [];
      for await (const val of this) {
        var _options$signal4;
        if (options !== null && options !== void 0 && (_options$signal4 = options.signal) !== null && _options$signal4 !== void 0 && _options$signal4.aborted) {
          throw new AbortError(void 0, {
            cause: options.signal.reason
          });
        }
        ArrayPrototypePush(result2, val);
      }
      return result2;
    }
    __name(toArray, "toArray");
    function flatMap4(fn, options) {
      const values = map3.call(this, fn, options);
      return (/* @__PURE__ */ __name(async function* flatMap5() {
        for await (const val of values) {
          yield* val;
        }
      }, "flatMap")).call(this);
    }
    __name(flatMap4, "flatMap");
    function toIntegerOrInfinity(number) {
      number = Number2(number);
      if (NumberIsNaN(number)) {
        return 0;
      }
      if (number < 0) {
        throw new ERR_OUT_OF_RANGE("number", ">= 0", number);
      }
      return number;
    }
    __name(toIntegerOrInfinity, "toIntegerOrInfinity");
    function drop(number, options = void 0) {
      if (options != null) {
        validateObject(options, "options");
      }
      if ((options === null || options === void 0 ? void 0 : options.signal) != null) {
        validateAbortSignal(options.signal, "options.signal");
      }
      number = toIntegerOrInfinity(number);
      return (/* @__PURE__ */ __name(async function* drop2() {
        var _options$signal5;
        if (options !== null && options !== void 0 && (_options$signal5 = options.signal) !== null && _options$signal5 !== void 0 && _options$signal5.aborted) {
          throw new AbortError();
        }
        for await (const val of this) {
          var _options$signal6;
          if (options !== null && options !== void 0 && (_options$signal6 = options.signal) !== null && _options$signal6 !== void 0 && _options$signal6.aborted) {
            throw new AbortError();
          }
          if (number-- <= 0) {
            yield val;
          }
        }
      }, "drop")).call(this);
    }
    __name(drop, "drop");
    function take2(number, options = void 0) {
      if (options != null) {
        validateObject(options, "options");
      }
      if ((options === null || options === void 0 ? void 0 : options.signal) != null) {
        validateAbortSignal(options.signal, "options.signal");
      }
      number = toIntegerOrInfinity(number);
      return (/* @__PURE__ */ __name(async function* take3() {
        var _options$signal7;
        if (options !== null && options !== void 0 && (_options$signal7 = options.signal) !== null && _options$signal7 !== void 0 && _options$signal7.aborted) {
          throw new AbortError();
        }
        for await (const val of this) {
          var _options$signal8;
          if (options !== null && options !== void 0 && (_options$signal8 = options.signal) !== null && _options$signal8 !== void 0 && _options$signal8.aborted) {
            throw new AbortError();
          }
          if (number-- > 0) {
            yield val;
          }
          if (number <= 0) {
            return;
          }
        }
      }, "take")).call(this);
    }
    __name(take2, "take");
    module2.exports.streamReturningOperators = {
      asIndexedPairs: deprecate(asIndexedPairs, "readable.asIndexedPairs will be removed in a future version."),
      drop,
      filter: filter4,
      flatMap: flatMap4,
      map: map3,
      take: take2,
      compose
    };
    module2.exports.promiseReturningOperators = {
      every,
      forEach,
      reduce,
      toArray,
      some: some2,
      find
    };
  }
});

// ../../node_modules/compress-commons/node_modules/readable-stream/lib/stream/promises.js
var require_promises3 = __commonJS({
  "../../node_modules/compress-commons/node_modules/readable-stream/lib/stream/promises.js"(exports2, module2) {
    "use strict";
    var { ArrayPrototypePop, Promise: Promise2 } = require_primordials3();
    var { isIterable, isNodeStream, isWebStream } = require_utils4();
    var { pipelineImpl: pl } = require_pipeline3();
    var { finished } = require_end_of_stream3();
    require_stream4();
    function pipeline(...streams) {
      return new Promise2((resolve13, reject) => {
        let signal;
        let end;
        const lastArg = streams[streams.length - 1];
        if (lastArg && typeof lastArg === "object" && !isNodeStream(lastArg) && !isIterable(lastArg) && !isWebStream(lastArg)) {
          const options = ArrayPrototypePop(streams);
          signal = options.signal;
          end = options.end;
        }
        pl(
          streams,
          (err, value) => {
            if (err) {
              reject(err);
            } else {
              resolve13(value);
            }
          },
          {
            signal,
            end
          }
        );
      });
    }
    __name(pipeline, "pipeline");
    module2.exports = {
      finished,
      pipeline
    };
  }
});

// ../../node_modules/compress-commons/node_modules/readable-stream/lib/stream.js
var require_stream4 = __commonJS({
  "../../node_modules/compress-commons/node_modules/readable-stream/lib/stream.js"(exports2, module2) {
    "use strict";
    var { Buffer: Buffer2 } = require("buffer");
    var { ObjectDefineProperty, ObjectKeys, ReflectApply } = require_primordials3();
    var {
      promisify: { custom: customPromisify }
    } = require_util5();
    var { streamReturningOperators, promiseReturningOperators } = require_operators3();
    var {
      codes: { ERR_ILLEGAL_CONSTRUCTOR }
    } = require_errors3();
    var compose = require_compose3();
    var { setDefaultHighWaterMark, getDefaultHighWaterMark } = require_state3();
    var { pipeline } = require_pipeline3();
    var { destroyer } = require_destroy4();
    var eos = require_end_of_stream3();
    var promises3 = require_promises3();
    var utils = require_utils4();
    var Stream2 = module2.exports = require_legacy3().Stream;
    Stream2.isDestroyed = utils.isDestroyed;
    Stream2.isDisturbed = utils.isDisturbed;
    Stream2.isErrored = utils.isErrored;
    Stream2.isReadable = utils.isReadable;
    Stream2.isWritable = utils.isWritable;
    Stream2.Readable = require_readable4();
    for (const key of ObjectKeys(streamReturningOperators)) {
      let fn = function(...args) {
        if (new.target) {
          throw ERR_ILLEGAL_CONSTRUCTOR();
        }
        return Stream2.Readable.from(ReflectApply(op2, this, args));
      };
      __name(fn, "fn");
      const op2 = streamReturningOperators[key];
      ObjectDefineProperty(fn, "name", {
        __proto__: null,
        value: op2.name
      });
      ObjectDefineProperty(fn, "length", {
        __proto__: null,
        value: op2.length
      });
      ObjectDefineProperty(Stream2.Readable.prototype, key, {
        __proto__: null,
        value: fn,
        enumerable: false,
        configurable: true,
        writable: true
      });
    }
    for (const key of ObjectKeys(promiseReturningOperators)) {
      let fn = function(...args) {
        if (new.target) {
          throw ERR_ILLEGAL_CONSTRUCTOR();
        }
        return ReflectApply(op2, this, args);
      };
      __name(fn, "fn");
      const op2 = promiseReturningOperators[key];
      ObjectDefineProperty(fn, "name", {
        __proto__: null,
        value: op2.name
      });
      ObjectDefineProperty(fn, "length", {
        __proto__: null,
        value: op2.length
      });
      ObjectDefineProperty(Stream2.Readable.prototype, key, {
        __proto__: null,
        value: fn,
        enumerable: false,
        configurable: true,
        writable: true
      });
    }
    Stream2.Writable = require_writable3();
    Stream2.Duplex = require_duplex3();
    Stream2.Transform = require_transform3();
    Stream2.PassThrough = require_passthrough4();
    Stream2.pipeline = pipeline;
    var { addAbortSignal } = require_add_abort_signal3();
    Stream2.addAbortSignal = addAbortSignal;
    Stream2.finished = eos;
    Stream2.destroy = destroyer;
    Stream2.compose = compose;
    Stream2.setDefaultHighWaterMark = setDefaultHighWaterMark;
    Stream2.getDefaultHighWaterMark = getDefaultHighWaterMark;
    ObjectDefineProperty(Stream2, "promises", {
      __proto__: null,
      configurable: true,
      enumerable: true,
      get() {
        return promises3;
      }
    });
    ObjectDefineProperty(pipeline, customPromisify, {
      __proto__: null,
      enumerable: true,
      get() {
        return promises3.pipeline;
      }
    });
    ObjectDefineProperty(eos, customPromisify, {
      __proto__: null,
      enumerable: true,
      get() {
        return promises3.finished;
      }
    });
    Stream2.Stream = Stream2;
    Stream2._isUint8Array = /* @__PURE__ */ __name(function isUint8Array(value) {
      return value instanceof Uint8Array;
    }, "isUint8Array");
    Stream2._uint8ArrayToBuffer = /* @__PURE__ */ __name(function _uint8ArrayToBuffer(chunk) {
      return Buffer2.from(chunk.buffer, chunk.byteOffset, chunk.byteLength);
    }, "_uint8ArrayToBuffer");
  }
});

// ../../node_modules/compress-commons/node_modules/readable-stream/lib/ours/index.js
var require_ours3 = __commonJS({
  "../../node_modules/compress-commons/node_modules/readable-stream/lib/ours/index.js"(exports2, module2) {
    "use strict";
    var Stream2 = require("stream");
    if (Stream2 && process.env.READABLE_STREAM === "disable") {
      const promises3 = Stream2.promises;
      module2.exports._uint8ArrayToBuffer = Stream2._uint8ArrayToBuffer;
      module2.exports._isUint8Array = Stream2._isUint8Array;
      module2.exports.isDisturbed = Stream2.isDisturbed;
      module2.exports.isErrored = Stream2.isErrored;
      module2.exports.isReadable = Stream2.isReadable;
      module2.exports.Readable = Stream2.Readable;
      module2.exports.Writable = Stream2.Writable;
      module2.exports.Duplex = Stream2.Duplex;
      module2.exports.Transform = Stream2.Transform;
      module2.exports.PassThrough = Stream2.PassThrough;
      module2.exports.addAbortSignal = Stream2.addAbortSignal;
      module2.exports.finished = Stream2.finished;
      module2.exports.destroy = Stream2.destroy;
      module2.exports.pipeline = Stream2.pipeline;
      module2.exports.compose = Stream2.compose;
      Object.defineProperty(Stream2, "promises", {
        configurable: true,
        enumerable: true,
        get() {
          return promises3;
        }
      });
      module2.exports.Stream = Stream2.Stream;
    } else {
      const CustomStream = require_stream4();
      const promises3 = require_promises3();
      const originalDestroy = CustomStream.Readable.destroy;
      module2.exports = CustomStream.Readable;
      module2.exports._uint8ArrayToBuffer = CustomStream._uint8ArrayToBuffer;
      module2.exports._isUint8Array = CustomStream._isUint8Array;
      module2.exports.isDisturbed = CustomStream.isDisturbed;
      module2.exports.isErrored = CustomStream.isErrored;
      module2.exports.isReadable = CustomStream.isReadable;
      module2.exports.Readable = CustomStream.Readable;
      module2.exports.Writable = CustomStream.Writable;
      module2.exports.Duplex = CustomStream.Duplex;
      module2.exports.Transform = CustomStream.Transform;
      module2.exports.PassThrough = CustomStream.PassThrough;
      module2.exports.addAbortSignal = CustomStream.addAbortSignal;
      module2.exports.finished = CustomStream.finished;
      module2.exports.destroy = CustomStream.destroy;
      module2.exports.destroy = originalDestroy;
      module2.exports.pipeline = CustomStream.pipeline;
      module2.exports.compose = CustomStream.compose;
      Object.defineProperty(CustomStream, "promises", {
        configurable: true,
        enumerable: true,
        get() {
          return promises3;
        }
      });
      module2.exports.Stream = CustomStream.Stream;
    }
    module2.exports.default = module2.exports;
  }
});

// ../../node_modules/compress-commons/lib/util/index.js
var require_util6 = __commonJS({
  "../../node_modules/compress-commons/lib/util/index.js"(exports2, module2) {
    var Stream2 = require("stream").Stream;
    var PassThrough = require_ours3().PassThrough;
    var isStream2 = require_is_stream();
    var util11 = module2.exports = {};
    util11.normalizeInputSource = function(source) {
      if (source === null) {
        return Buffer.alloc(0);
      } else if (typeof source === "string") {
        return Buffer.from(source);
      } else if (isStream2(source) && !source._readableState) {
        var normalized = new PassThrough();
        source.pipe(normalized);
        return normalized;
      }
      return source;
    };
  }
});

// ../../node_modules/compress-commons/lib/archivers/archive-output-stream.js
var require_archive_output_stream = __commonJS({
  "../../node_modules/compress-commons/lib/archivers/archive-output-stream.js"(exports2, module2) {
    var inherits = require("util").inherits;
    var isStream2 = require_is_stream();
    var Transform = require_ours3().Transform;
    var ArchiveEntry = require_archive_entry();
    var util11 = require_util6();
    var ArchiveOutputStream = module2.exports = function(options) {
      if (!(this instanceof ArchiveOutputStream)) {
        return new ArchiveOutputStream(options);
      }
      Transform.call(this, options);
      this.offset = 0;
      this._archive = {
        finish: false,
        finished: false,
        processing: false
      };
    };
    inherits(ArchiveOutputStream, Transform);
    ArchiveOutputStream.prototype._appendBuffer = function(zae, source, callback) {
    };
    ArchiveOutputStream.prototype._appendStream = function(zae, source, callback) {
    };
    ArchiveOutputStream.prototype._emitErrorCallback = function(err) {
      if (err) {
        this.emit("error", err);
      }
    };
    ArchiveOutputStream.prototype._finish = function(ae) {
    };
    ArchiveOutputStream.prototype._normalizeEntry = function(ae) {
    };
    ArchiveOutputStream.prototype._transform = function(chunk, encoding, callback) {
      callback(null, chunk);
    };
    ArchiveOutputStream.prototype.entry = function(ae, source, callback) {
      source = source || null;
      if (typeof callback !== "function") {
        callback = this._emitErrorCallback.bind(this);
      }
      if (!(ae instanceof ArchiveEntry)) {
        callback(new Error("not a valid instance of ArchiveEntry"));
        return;
      }
      if (this._archive.finish || this._archive.finished) {
        callback(new Error("unacceptable entry after finish"));
        return;
      }
      if (this._archive.processing) {
        callback(new Error("already processing an entry"));
        return;
      }
      this._archive.processing = true;
      this._normalizeEntry(ae);
      this._entry = ae;
      source = util11.normalizeInputSource(source);
      if (Buffer.isBuffer(source)) {
        this._appendBuffer(ae, source, callback);
      } else if (isStream2(source)) {
        this._appendStream(ae, source, callback);
      } else {
        this._archive.processing = false;
        callback(new Error("input source must be valid Stream or Buffer instance"));
        return;
      }
      return this;
    };
    ArchiveOutputStream.prototype.finish = function() {
      if (this._archive.processing) {
        this._archive.finish = true;
        return;
      }
      this._finish();
    };
    ArchiveOutputStream.prototype.getBytesWritten = function() {
      return this.offset;
    };
    ArchiveOutputStream.prototype.write = function(chunk, cb) {
      if (chunk) {
        this.offset += chunk.length;
      }
      return Transform.prototype.write.call(this, chunk, cb);
    };
  }
});

// ../../node_modules/crc-32/crc32.js
var require_crc32 = __commonJS({
  "../../node_modules/crc-32/crc32.js"(exports2) {
    var CRC32;
    (function(factory) {
      if (typeof DO_NOT_EXPORT_CRC === "undefined") {
        if ("object" === typeof exports2) {
          factory(exports2);
        } else if ("function" === typeof define && define.amd) {
          define(function() {
            var module3 = {};
            factory(module3);
            return module3;
          });
        } else {
          factory(CRC32 = {});
        }
      } else {
        factory(CRC32 = {});
      }
    })(function(CRC322) {
      CRC322.version = "1.2.2";
      function signed_crc_table() {
        var c3 = 0, table3 = new Array(256);
        for (var n3 = 0; n3 != 256; ++n3) {
          c3 = n3;
          c3 = c3 & 1 ? -306674912 ^ c3 >>> 1 : c3 >>> 1;
          c3 = c3 & 1 ? -306674912 ^ c3 >>> 1 : c3 >>> 1;
          c3 = c3 & 1 ? -306674912 ^ c3 >>> 1 : c3 >>> 1;
          c3 = c3 & 1 ? -306674912 ^ c3 >>> 1 : c3 >>> 1;
          c3 = c3 & 1 ? -306674912 ^ c3 >>> 1 : c3 >>> 1;
          c3 = c3 & 1 ? -306674912 ^ c3 >>> 1 : c3 >>> 1;
          c3 = c3 & 1 ? -306674912 ^ c3 >>> 1 : c3 >>> 1;
          c3 = c3 & 1 ? -306674912 ^ c3 >>> 1 : c3 >>> 1;
          table3[n3] = c3;
        }
        return typeof Int32Array !== "undefined" ? new Int32Array(table3) : table3;
      }
      __name(signed_crc_table, "signed_crc_table");
      var T0 = signed_crc_table();
      function slice_by_16_tables(T) {
        var c3 = 0, v6 = 0, n3 = 0, table3 = typeof Int32Array !== "undefined" ? new Int32Array(4096) : new Array(4096);
        for (n3 = 0; n3 != 256; ++n3) table3[n3] = T[n3];
        for (n3 = 0; n3 != 256; ++n3) {
          v6 = T[n3];
          for (c3 = 256 + n3; c3 < 4096; c3 += 256) v6 = table3[c3] = v6 >>> 8 ^ T[v6 & 255];
        }
        var out = [];
        for (n3 = 1; n3 != 16; ++n3) out[n3 - 1] = typeof Int32Array !== "undefined" ? table3.subarray(n3 * 256, n3 * 256 + 256) : table3.slice(n3 * 256, n3 * 256 + 256);
        return out;
      }
      __name(slice_by_16_tables, "slice_by_16_tables");
      var TT = slice_by_16_tables(T0);
      var T1 = TT[0], T2 = TT[1], T3 = TT[2], T4 = TT[3], T5 = TT[4];
      var T6 = TT[5], T7 = TT[6], T8 = TT[7], T9 = TT[8], Ta = TT[9];
      var Tb = TT[10], Tc = TT[11], Td = TT[12], Te = TT[13], Tf = TT[14];
      function crc32_bstr(bstr, seed) {
        var C2 = seed ^ -1;
        for (var i3 = 0, L = bstr.length; i3 < L; ) C2 = C2 >>> 8 ^ T0[(C2 ^ bstr.charCodeAt(i3++)) & 255];
        return ~C2;
      }
      __name(crc32_bstr, "crc32_bstr");
      function crc32_buf(B2, seed) {
        var C2 = seed ^ -1, L = B2.length - 15, i3 = 0;
        for (; i3 < L; ) C2 = Tf[B2[i3++] ^ C2 & 255] ^ Te[B2[i3++] ^ C2 >> 8 & 255] ^ Td[B2[i3++] ^ C2 >> 16 & 255] ^ Tc[B2[i3++] ^ C2 >>> 24] ^ Tb[B2[i3++]] ^ Ta[B2[i3++]] ^ T9[B2[i3++]] ^ T8[B2[i3++]] ^ T7[B2[i3++]] ^ T6[B2[i3++]] ^ T5[B2[i3++]] ^ T4[B2[i3++]] ^ T3[B2[i3++]] ^ T2[B2[i3++]] ^ T1[B2[i3++]] ^ T0[B2[i3++]];
        L += 15;
        while (i3 < L) C2 = C2 >>> 8 ^ T0[(C2 ^ B2[i3++]) & 255];
        return ~C2;
      }
      __name(crc32_buf, "crc32_buf");
      function crc32_str(str, seed) {
        var C2 = seed ^ -1;
        for (var i3 = 0, L = str.length, c3 = 0, d3 = 0; i3 < L; ) {
          c3 = str.charCodeAt(i3++);
          if (c3 < 128) {
            C2 = C2 >>> 8 ^ T0[(C2 ^ c3) & 255];
          } else if (c3 < 2048) {
            C2 = C2 >>> 8 ^ T0[(C2 ^ (192 | c3 >> 6 & 31)) & 255];
            C2 = C2 >>> 8 ^ T0[(C2 ^ (128 | c3 & 63)) & 255];
          } else if (c3 >= 55296 && c3 < 57344) {
            c3 = (c3 & 1023) + 64;
            d3 = str.charCodeAt(i3++) & 1023;
            C2 = C2 >>> 8 ^ T0[(C2 ^ (240 | c3 >> 8 & 7)) & 255];
            C2 = C2 >>> 8 ^ T0[(C2 ^ (128 | c3 >> 2 & 63)) & 255];
            C2 = C2 >>> 8 ^ T0[(C2 ^ (128 | d3 >> 6 & 15 | (c3 & 3) << 4)) & 255];
            C2 = C2 >>> 8 ^ T0[(C2 ^ (128 | d3 & 63)) & 255];
          } else {
            C2 = C2 >>> 8 ^ T0[(C2 ^ (224 | c3 >> 12 & 15)) & 255];
            C2 = C2 >>> 8 ^ T0[(C2 ^ (128 | c3 >> 6 & 63)) & 255];
            C2 = C2 >>> 8 ^ T0[(C2 ^ (128 | c3 & 63)) & 255];
          }
        }
        return ~C2;
      }
      __name(crc32_str, "crc32_str");
      CRC322.table = T0;
      CRC322.bstr = crc32_bstr;
      CRC322.buf = crc32_buf;
      CRC322.str = crc32_str;
    });
  }
});

// ../../node_modules/crc32-stream/node_modules/readable-stream/lib/ours/primordials.js
var require_primordials4 = __commonJS({
  "../../node_modules/crc32-stream/node_modules/readable-stream/lib/ours/primordials.js"(exports2, module2) {
    "use strict";
    var AggregateError = class extends Error {
      static {
        __name(this, "AggregateError");
      }
      constructor(errors) {
        if (!Array.isArray(errors)) {
          throw new TypeError(`Expected input to be an Array, got ${typeof errors}`);
        }
        let message2 = "";
        for (let i3 = 0; i3 < errors.length; i3++) {
          message2 += `    ${errors[i3].stack}
`;
        }
        super(message2);
        this.name = "AggregateError";
        this.errors = errors;
      }
    };
    module2.exports = {
      AggregateError,
      ArrayIsArray(self2) {
        return Array.isArray(self2);
      },
      ArrayPrototypeIncludes(self2, el) {
        return self2.includes(el);
      },
      ArrayPrototypeIndexOf(self2, el) {
        return self2.indexOf(el);
      },
      ArrayPrototypeJoin(self2, sep5) {
        return self2.join(sep5);
      },
      ArrayPrototypeMap(self2, fn) {
        return self2.map(fn);
      },
      ArrayPrototypePop(self2, el) {
        return self2.pop(el);
      },
      ArrayPrototypePush(self2, el) {
        return self2.push(el);
      },
      ArrayPrototypeSlice(self2, start, end) {
        return self2.slice(start, end);
      },
      Error,
      FunctionPrototypeCall(fn, thisArgs, ...args) {
        return fn.call(thisArgs, ...args);
      },
      FunctionPrototypeSymbolHasInstance(self2, instance) {
        return Function.prototype[Symbol.hasInstance].call(self2, instance);
      },
      MathFloor: Math.floor,
      Number,
      NumberIsInteger: Number.isInteger,
      NumberIsNaN: Number.isNaN,
      NumberMAX_SAFE_INTEGER: Number.MAX_SAFE_INTEGER,
      NumberMIN_SAFE_INTEGER: Number.MIN_SAFE_INTEGER,
      NumberParseInt: Number.parseInt,
      ObjectDefineProperties(self2, props) {
        return Object.defineProperties(self2, props);
      },
      ObjectDefineProperty(self2, name, prop) {
        return Object.defineProperty(self2, name, prop);
      },
      ObjectGetOwnPropertyDescriptor(self2, name) {
        return Object.getOwnPropertyDescriptor(self2, name);
      },
      ObjectKeys(obj) {
        return Object.keys(obj);
      },
      ObjectSetPrototypeOf(target, proto) {
        return Object.setPrototypeOf(target, proto);
      },
      Promise,
      PromisePrototypeCatch(self2, fn) {
        return self2.catch(fn);
      },
      PromisePrototypeThen(self2, thenFn, catchFn) {
        return self2.then(thenFn, catchFn);
      },
      PromiseReject(err) {
        return Promise.reject(err);
      },
      PromiseResolve(val) {
        return Promise.resolve(val);
      },
      ReflectApply: Reflect.apply,
      RegExpPrototypeTest(self2, value) {
        return self2.test(value);
      },
      SafeSet: Set,
      String,
      StringPrototypeSlice(self2, start, end) {
        return self2.slice(start, end);
      },
      StringPrototypeToLowerCase(self2) {
        return self2.toLowerCase();
      },
      StringPrototypeToUpperCase(self2) {
        return self2.toUpperCase();
      },
      StringPrototypeTrim(self2) {
        return self2.trim();
      },
      Symbol,
      SymbolFor: Symbol.for,
      SymbolAsyncIterator: Symbol.asyncIterator,
      SymbolHasInstance: Symbol.hasInstance,
      SymbolIterator: Symbol.iterator,
      SymbolDispose: Symbol.dispose || Symbol("Symbol.dispose"),
      SymbolAsyncDispose: Symbol.asyncDispose || Symbol("Symbol.asyncDispose"),
      TypedArrayPrototypeSet(self2, buf, len) {
        return self2.set(buf, len);
      },
      Boolean,
      Uint8Array
    };
  }
});

// ../../node_modules/crc32-stream/node_modules/readable-stream/lib/ours/util/inspect.js
var require_inspect4 = __commonJS({
  "../../node_modules/crc32-stream/node_modules/readable-stream/lib/ours/util/inspect.js"(exports2, module2) {
    "use strict";
    module2.exports = {
      format(format26, ...args) {
        return format26.replace(/%([sdifj])/g, function(...[_unused, type]) {
          const replacement = args.shift();
          if (type === "f") {
            return replacement.toFixed(6);
          } else if (type === "j") {
            return JSON.stringify(replacement);
          } else if (type === "s" && typeof replacement === "object") {
            const ctor = replacement.constructor !== Object ? replacement.constructor.name : "";
            return `${ctor} {}`.trim();
          } else {
            return replacement.toString();
          }
        });
      },
      inspect(value) {
        switch (typeof value) {
          case "string":
            if (value.includes("'")) {
              if (!value.includes('"')) {
                return `"${value}"`;
              } else if (!value.includes("`") && !value.includes("${")) {
                return `\`${value}\``;
              }
            }
            return `'${value}'`;
          case "number":
            if (isNaN(value)) {
              return "NaN";
            } else if (Object.is(value, -0)) {
              return String(value);
            }
            return value;
          case "bigint":
            return `${String(value)}n`;
          case "boolean":
          case "undefined":
            return String(value);
          case "object":
            return "{}";
        }
      }
    };
  }
});

// ../../node_modules/crc32-stream/node_modules/readable-stream/lib/ours/errors.js
var require_errors4 = __commonJS({
  "../../node_modules/crc32-stream/node_modules/readable-stream/lib/ours/errors.js"(exports2, module2) {
    "use strict";
    var { format: format26, inspect: inspect4 } = require_inspect4();
    var { AggregateError: CustomAggregateError } = require_primordials4();
    var AggregateError = globalThis.AggregateError || CustomAggregateError;
    var kIsNodeError = Symbol("kIsNodeError");
    var kTypes = [
      "string",
      "function",
      "number",
      "object",
      // Accept 'Function' and 'Object' as alternative to the lower cased version.
      "Function",
      "Object",
      "boolean",
      "bigint",
      "symbol"
    ];
    var classRegExp = /^([A-Z][a-z0-9]*)+$/;
    var nodeInternalPrefix = "__node_internal_";
    var codes = {};
    function assert(value, message2) {
      if (!value) {
        throw new codes.ERR_INTERNAL_ASSERTION(message2);
      }
    }
    __name(assert, "assert");
    function addNumericalSeparator(val) {
      let res = "";
      let i3 = val.length;
      const start = val[0] === "-" ? 1 : 0;
      for (; i3 >= start + 4; i3 -= 3) {
        res = `_${val.slice(i3 - 3, i3)}${res}`;
      }
      return `${val.slice(0, i3)}${res}`;
    }
    __name(addNumericalSeparator, "addNumericalSeparator");
    function getMessage(key, msg, args) {
      if (typeof msg === "function") {
        assert(
          msg.length <= args.length,
          // Default options do not count.
          `Code: ${key}; The provided arguments length (${args.length}) does not match the required ones (${msg.length}).`
        );
        return msg(...args);
      }
      const expectedLength = (msg.match(/%[dfijoOs]/g) || []).length;
      assert(
        expectedLength === args.length,
        `Code: ${key}; The provided arguments length (${args.length}) does not match the required ones (${expectedLength}).`
      );
      if (args.length === 0) {
        return msg;
      }
      return format26(msg, ...args);
    }
    __name(getMessage, "getMessage");
    function E2(code, message2, Base) {
      if (!Base) {
        Base = Error;
      }
      class NodeError extends Base {
        static {
          __name(this, "NodeError");
        }
        constructor(...args) {
          super(getMessage(code, message2, args));
        }
        toString() {
          return `${this.name} [${code}]: ${this.message}`;
        }
      }
      Object.defineProperties(NodeError.prototype, {
        name: {
          value: Base.name,
          writable: true,
          enumerable: false,
          configurable: true
        },
        toString: {
          value() {
            return `${this.name} [${code}]: ${this.message}`;
          },
          writable: true,
          enumerable: false,
          configurable: true
        }
      });
      NodeError.prototype.code = code;
      NodeError.prototype[kIsNodeError] = true;
      codes[code] = NodeError;
    }
    __name(E2, "E");
    function hideStackFrames(fn) {
      const hidden = nodeInternalPrefix + fn.name;
      Object.defineProperty(fn, "name", {
        value: hidden
      });
      return fn;
    }
    __name(hideStackFrames, "hideStackFrames");
    function aggregateTwoErrors(innerError, outerError) {
      if (innerError && outerError && innerError !== outerError) {
        if (Array.isArray(outerError.errors)) {
          outerError.errors.push(innerError);
          return outerError;
        }
        const err = new AggregateError([outerError, innerError], outerError.message);
        err.code = outerError.code;
        return err;
      }
      return innerError || outerError;
    }
    __name(aggregateTwoErrors, "aggregateTwoErrors");
    var AbortError = class extends Error {
      static {
        __name(this, "AbortError");
      }
      constructor(message2 = "The operation was aborted", options = void 0) {
        if (options !== void 0 && typeof options !== "object") {
          throw new codes.ERR_INVALID_ARG_TYPE("options", "Object", options);
        }
        super(message2, options);
        this.code = "ABORT_ERR";
        this.name = "AbortError";
      }
    };
    E2("ERR_ASSERTION", "%s", Error);
    E2(
      "ERR_INVALID_ARG_TYPE",
      (name, expected, actual) => {
        assert(typeof name === "string", "'name' must be a string");
        if (!Array.isArray(expected)) {
          expected = [expected];
        }
        let msg = "The ";
        if (name.endsWith(" argument")) {
          msg += `${name} `;
        } else {
          msg += `"${name}" ${name.includes(".") ? "property" : "argument"} `;
        }
        msg += "must be ";
        const types5 = [];
        const instances = [];
        const other = [];
        for (const value of expected) {
          assert(typeof value === "string", "All expected entries have to be of type string");
          if (kTypes.includes(value)) {
            types5.push(value.toLowerCase());
          } else if (classRegExp.test(value)) {
            instances.push(value);
          } else {
            assert(value !== "object", 'The value "object" should be written as "Object"');
            other.push(value);
          }
        }
        if (instances.length > 0) {
          const pos = types5.indexOf("object");
          if (pos !== -1) {
            types5.splice(types5, pos, 1);
            instances.push("Object");
          }
        }
        if (types5.length > 0) {
          switch (types5.length) {
            case 1:
              msg += `of type ${types5[0]}`;
              break;
            case 2:
              msg += `one of type ${types5[0]} or ${types5[1]}`;
              break;
            default: {
              const last = types5.pop();
              msg += `one of type ${types5.join(", ")}, or ${last}`;
            }
          }
          if (instances.length > 0 || other.length > 0) {
            msg += " or ";
          }
        }
        if (instances.length > 0) {
          switch (instances.length) {
            case 1:
              msg += `an instance of ${instances[0]}`;
              break;
            case 2:
              msg += `an instance of ${instances[0]} or ${instances[1]}`;
              break;
            default: {
              const last = instances.pop();
              msg += `an instance of ${instances.join(", ")}, or ${last}`;
            }
          }
          if (other.length > 0) {
            msg += " or ";
          }
        }
        switch (other.length) {
          case 0:
            break;
          case 1:
            if (other[0].toLowerCase() !== other[0]) {
              msg += "an ";
            }
            msg += `${other[0]}`;
            break;
          case 2:
            msg += `one of ${other[0]} or ${other[1]}`;
            break;
          default: {
            const last = other.pop();
            msg += `one of ${other.join(", ")}, or ${last}`;
          }
        }
        if (actual == null) {
          msg += `. Received ${actual}`;
        } else if (typeof actual === "function" && actual.name) {
          msg += `. Received function ${actual.name}`;
        } else if (typeof actual === "object") {
          var _actual$constructor;
          if ((_actual$constructor = actual.constructor) !== null && _actual$constructor !== void 0 && _actual$constructor.name) {
            msg += `. Received an instance of ${actual.constructor.name}`;
          } else {
            const inspected = inspect4(actual, {
              depth: -1
            });
            msg += `. Received ${inspected}`;
          }
        } else {
          let inspected = inspect4(actual, {
            colors: false
          });
          if (inspected.length > 25) {
            inspected = `${inspected.slice(0, 25)}...`;
          }
          msg += `. Received type ${typeof actual} (${inspected})`;
        }
        return msg;
      },
      TypeError
    );
    E2(
      "ERR_INVALID_ARG_VALUE",
      (name, value, reason = "is invalid") => {
        let inspected = inspect4(value);
        if (inspected.length > 128) {
          inspected = inspected.slice(0, 128) + "...";
        }
        const type = name.includes(".") ? "property" : "argument";
        return `The ${type} '${name}' ${reason}. Received ${inspected}`;
      },
      TypeError
    );
    E2(
      "ERR_INVALID_RETURN_VALUE",
      (input, name, value) => {
        var _value$constructor;
        const type = value !== null && value !== void 0 && (_value$constructor = value.constructor) !== null && _value$constructor !== void 0 && _value$constructor.name ? `instance of ${value.constructor.name}` : `type ${typeof value}`;
        return `Expected ${input} to be returned from the "${name}" function but got ${type}.`;
      },
      TypeError
    );
    E2(
      "ERR_MISSING_ARGS",
      (...args) => {
        assert(args.length > 0, "At least one arg needs to be specified");
        let msg;
        const len = args.length;
        args = (Array.isArray(args) ? args : [args]).map((a3) => `"${a3}"`).join(" or ");
        switch (len) {
          case 1:
            msg += `The ${args[0]} argument`;
            break;
          case 2:
            msg += `The ${args[0]} and ${args[1]} arguments`;
            break;
          default:
            {
              const last = args.pop();
              msg += `The ${args.join(", ")}, and ${last} arguments`;
            }
            break;
        }
        return `${msg} must be specified`;
      },
      TypeError
    );
    E2(
      "ERR_OUT_OF_RANGE",
      (str, range2, input) => {
        assert(range2, 'Missing "range" argument');
        let received;
        if (Number.isInteger(input) && Math.abs(input) > 2 ** 32) {
          received = addNumericalSeparator(String(input));
        } else if (typeof input === "bigint") {
          received = String(input);
          const limit = BigInt(2) ** BigInt(32);
          if (input > limit || input < -limit) {
            received = addNumericalSeparator(received);
          }
          received += "n";
        } else {
          received = inspect4(input);
        }
        return `The value of "${str}" is out of range. It must be ${range2}. Received ${received}`;
      },
      RangeError
    );
    E2("ERR_MULTIPLE_CALLBACK", "Callback called multiple times", Error);
    E2("ERR_METHOD_NOT_IMPLEMENTED", "The %s method is not implemented", Error);
    E2("ERR_STREAM_ALREADY_FINISHED", "Cannot call %s after a stream was finished", Error);
    E2("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable", Error);
    E2("ERR_STREAM_DESTROYED", "Cannot call %s after a stream was destroyed", Error);
    E2("ERR_STREAM_NULL_VALUES", "May not write null values to stream", TypeError);
    E2("ERR_STREAM_PREMATURE_CLOSE", "Premature close", Error);
    E2("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF", Error);
    E2("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event", Error);
    E2("ERR_STREAM_WRITE_AFTER_END", "write after end", Error);
    E2("ERR_UNKNOWN_ENCODING", "Unknown encoding: %s", TypeError);
    module2.exports = {
      AbortError,
      aggregateTwoErrors: hideStackFrames(aggregateTwoErrors),
      hideStackFrames,
      codes
    };
  }
});

// ../../node_modules/crc32-stream/node_modules/readable-stream/lib/ours/util.js
var require_util7 = __commonJS({
  "../../node_modules/crc32-stream/node_modules/readable-stream/lib/ours/util.js"(exports2, module2) {
    "use strict";
    var bufferModule = require("buffer");
    var { format: format26, inspect: inspect4 } = require_inspect4();
    var {
      codes: { ERR_INVALID_ARG_TYPE }
    } = require_errors4();
    var { kResistStopPropagation, AggregateError, SymbolDispose } = require_primordials4();
    var AbortSignal2 = globalThis.AbortSignal || require_abort_controller().AbortSignal;
    var AbortController2 = globalThis.AbortController || require_abort_controller().AbortController;
    var AsyncFunction = Object.getPrototypeOf(async function() {
    }).constructor;
    var Blob2 = globalThis.Blob || bufferModule.Blob;
    var isBlob2 = typeof Blob2 !== "undefined" ? /* @__PURE__ */ __name(function isBlob3(b3) {
      return b3 instanceof Blob2;
    }, "isBlob") : /* @__PURE__ */ __name(function isBlob3(b3) {
      return false;
    }, "isBlob");
    var validateAbortSignal = /* @__PURE__ */ __name((signal, name) => {
      if (signal !== void 0 && (signal === null || typeof signal !== "object" || !("aborted" in signal))) {
        throw new ERR_INVALID_ARG_TYPE(name, "AbortSignal", signal);
      }
    }, "validateAbortSignal");
    var validateFunction = /* @__PURE__ */ __name((value, name) => {
      if (typeof value !== "function") {
        throw new ERR_INVALID_ARG_TYPE(name, "Function", value);
      }
    }, "validateFunction");
    module2.exports = {
      AggregateError,
      kEmptyObject: Object.freeze({}),
      once(callback) {
        let called = false;
        return function(...args) {
          if (called) {
            return;
          }
          called = true;
          callback.apply(this, args);
        };
      },
      createDeferredPromise: /* @__PURE__ */ __name(function() {
        let resolve13;
        let reject;
        const promise = new Promise((res, rej) => {
          resolve13 = res;
          reject = rej;
        });
        return {
          promise,
          resolve: resolve13,
          reject
        };
      }, "createDeferredPromise"),
      promisify(fn) {
        return new Promise((resolve13, reject) => {
          fn((err, ...args) => {
            if (err) {
              return reject(err);
            }
            return resolve13(...args);
          });
        });
      },
      debuglog() {
        return function() {
        };
      },
      format: format26,
      inspect: inspect4,
      types: {
        isAsyncFunction(fn) {
          return fn instanceof AsyncFunction;
        },
        isArrayBufferView(arr) {
          return ArrayBuffer.isView(arr);
        }
      },
      isBlob: isBlob2,
      deprecate(fn, message2) {
        return fn;
      },
      addAbortListener: require("events").addAbortListener || /* @__PURE__ */ __name(function addAbortListener(signal, listener) {
        if (signal === void 0) {
          throw new ERR_INVALID_ARG_TYPE("signal", "AbortSignal", signal);
        }
        validateAbortSignal(signal, "signal");
        validateFunction(listener, "listener");
        let removeEventListener;
        if (signal.aborted) {
          queueMicrotask(() => listener());
        } else {
          signal.addEventListener("abort", listener, {
            __proto__: null,
            once: true,
            [kResistStopPropagation]: true
          });
          removeEventListener = /* @__PURE__ */ __name(() => {
            signal.removeEventListener("abort", listener);
          }, "removeEventListener");
        }
        return {
          __proto__: null,
          [SymbolDispose]() {
            var _removeEventListener;
            (_removeEventListener = removeEventListener) === null || _removeEventListener === void 0 ? void 0 : _removeEventListener();
          }
        };
      }, "addAbortListener"),
      AbortSignalAny: AbortSignal2.any || /* @__PURE__ */ __name(function AbortSignalAny(signals) {
        if (signals.length === 1) {
          return signals[0];
        }
        const ac = new AbortController2();
        const abort = /* @__PURE__ */ __name(() => ac.abort(), "abort");
        signals.forEach((signal) => {
          validateAbortSignal(signal, "signals");
          signal.addEventListener("abort", abort, {
            once: true
          });
        });
        ac.signal.addEventListener(
          "abort",
          () => {
            signals.forEach((signal) => signal.removeEventListener("abort", abort));
          },
          {
            once: true
          }
        );
        return ac.signal;
      }, "AbortSignalAny")
    };
    module2.exports.promisify.custom = Symbol.for("nodejs.util.promisify.custom");
  }
});

// ../../node_modules/crc32-stream/node_modules/readable-stream/lib/internal/validators.js
var require_validators4 = __commonJS({
  "../../node_modules/crc32-stream/node_modules/readable-stream/lib/internal/validators.js"(exports2, module2) {
    "use strict";
    var {
      ArrayIsArray,
      ArrayPrototypeIncludes,
      ArrayPrototypeJoin,
      ArrayPrototypeMap,
      NumberIsInteger,
      NumberIsNaN,
      NumberMAX_SAFE_INTEGER,
      NumberMIN_SAFE_INTEGER,
      NumberParseInt,
      ObjectPrototypeHasOwnProperty,
      RegExpPrototypeExec,
      String: String2,
      StringPrototypeToUpperCase,
      StringPrototypeTrim
    } = require_primordials4();
    var {
      hideStackFrames,
      codes: { ERR_SOCKET_BAD_PORT, ERR_INVALID_ARG_TYPE, ERR_INVALID_ARG_VALUE, ERR_OUT_OF_RANGE, ERR_UNKNOWN_SIGNAL }
    } = require_errors4();
    var { normalizeEncoding } = require_util7();
    var { isAsyncFunction, isArrayBufferView: isArrayBufferView2 } = require_util7().types;
    var signals = {};
    function isInt32(value) {
      return value === (value | 0);
    }
    __name(isInt32, "isInt32");
    function isUint32(value) {
      return value === value >>> 0;
    }
    __name(isUint32, "isUint32");
    var octalReg = /^[0-7]+$/;
    var modeDesc = "must be a 32-bit unsigned integer or an octal string";
    function parseFileMode(value, name, def) {
      if (typeof value === "undefined") {
        value = def;
      }
      if (typeof value === "string") {
        if (RegExpPrototypeExec(octalReg, value) === null) {
          throw new ERR_INVALID_ARG_VALUE(name, value, modeDesc);
        }
        value = NumberParseInt(value, 8);
      }
      validateUint32(value, name);
      return value;
    }
    __name(parseFileMode, "parseFileMode");
    var validateInteger = hideStackFrames((value, name, min = NumberMIN_SAFE_INTEGER, max = NumberMAX_SAFE_INTEGER) => {
      if (typeof value !== "number") throw new ERR_INVALID_ARG_TYPE(name, "number", value);
      if (!NumberIsInteger(value)) throw new ERR_OUT_OF_RANGE(name, "an integer", value);
      if (value < min || value > max) throw new ERR_OUT_OF_RANGE(name, `>= ${min} && <= ${max}`, value);
    });
    var validateInt32 = hideStackFrames((value, name, min = -2147483648, max = 2147483647) => {
      if (typeof value !== "number") {
        throw new ERR_INVALID_ARG_TYPE(name, "number", value);
      }
      if (!NumberIsInteger(value)) {
        throw new ERR_OUT_OF_RANGE(name, "an integer", value);
      }
      if (value < min || value > max) {
        throw new ERR_OUT_OF_RANGE(name, `>= ${min} && <= ${max}`, value);
      }
    });
    var validateUint32 = hideStackFrames((value, name, positive = false) => {
      if (typeof value !== "number") {
        throw new ERR_INVALID_ARG_TYPE(name, "number", value);
      }
      if (!NumberIsInteger(value)) {
        throw new ERR_OUT_OF_RANGE(name, "an integer", value);
      }
      const min = positive ? 1 : 0;
      const max = 4294967295;
      if (value < min || value > max) {
        throw new ERR_OUT_OF_RANGE(name, `>= ${min} && <= ${max}`, value);
      }
    });
    function validateString(value, name) {
      if (typeof value !== "string") throw new ERR_INVALID_ARG_TYPE(name, "string", value);
    }
    __name(validateString, "validateString");
    function validateNumber(value, name, min = void 0, max) {
      if (typeof value !== "number") throw new ERR_INVALID_ARG_TYPE(name, "number", value);
      if (min != null && value < min || max != null && value > max || (min != null || max != null) && NumberIsNaN(value)) {
        throw new ERR_OUT_OF_RANGE(
          name,
          `${min != null ? `>= ${min}` : ""}${min != null && max != null ? " && " : ""}${max != null ? `<= ${max}` : ""}`,
          value
        );
      }
    }
    __name(validateNumber, "validateNumber");
    var validateOneOf = hideStackFrames((value, name, oneOf) => {
      if (!ArrayPrototypeIncludes(oneOf, value)) {
        const allowed = ArrayPrototypeJoin(
          ArrayPrototypeMap(oneOf, (v6) => typeof v6 === "string" ? `'${v6}'` : String2(v6)),
          ", "
        );
        const reason = "must be one of: " + allowed;
        throw new ERR_INVALID_ARG_VALUE(name, value, reason);
      }
    });
    function validateBoolean(value, name) {
      if (typeof value !== "boolean") throw new ERR_INVALID_ARG_TYPE(name, "boolean", value);
    }
    __name(validateBoolean, "validateBoolean");
    function getOwnPropertyValueOrDefault(options, key, defaultValue) {
      return options == null || !ObjectPrototypeHasOwnProperty(options, key) ? defaultValue : options[key];
    }
    __name(getOwnPropertyValueOrDefault, "getOwnPropertyValueOrDefault");
    var validateObject = hideStackFrames((value, name, options = null) => {
      const allowArray = getOwnPropertyValueOrDefault(options, "allowArray", false);
      const allowFunction = getOwnPropertyValueOrDefault(options, "allowFunction", false);
      const nullable = getOwnPropertyValueOrDefault(options, "nullable", false);
      if (!nullable && value === null || !allowArray && ArrayIsArray(value) || typeof value !== "object" && (!allowFunction || typeof value !== "function")) {
        throw new ERR_INVALID_ARG_TYPE(name, "Object", value);
      }
    });
    var validateDictionary = hideStackFrames((value, name) => {
      if (value != null && typeof value !== "object" && typeof value !== "function") {
        throw new ERR_INVALID_ARG_TYPE(name, "a dictionary", value);
      }
    });
    var validateArray = hideStackFrames((value, name, minLength = 0) => {
      if (!ArrayIsArray(value)) {
        throw new ERR_INVALID_ARG_TYPE(name, "Array", value);
      }
      if (value.length < minLength) {
        const reason = `must be longer than ${minLength}`;
        throw new ERR_INVALID_ARG_VALUE(name, value, reason);
      }
    });
    function validateStringArray(value, name) {
      validateArray(value, name);
      for (let i3 = 0; i3 < value.length; i3++) {
        validateString(value[i3], `${name}[${i3}]`);
      }
    }
    __name(validateStringArray, "validateStringArray");
    function validateBooleanArray(value, name) {
      validateArray(value, name);
      for (let i3 = 0; i3 < value.length; i3++) {
        validateBoolean(value[i3], `${name}[${i3}]`);
      }
    }
    __name(validateBooleanArray, "validateBooleanArray");
    function validateAbortSignalArray(value, name) {
      validateArray(value, name);
      for (let i3 = 0; i3 < value.length; i3++) {
        const signal = value[i3];
        const indexedName = `${name}[${i3}]`;
        if (signal == null) {
          throw new ERR_INVALID_ARG_TYPE(indexedName, "AbortSignal", signal);
        }
        validateAbortSignal(signal, indexedName);
      }
    }
    __name(validateAbortSignalArray, "validateAbortSignalArray");
    function validateSignalName(signal, name = "signal") {
      validateString(signal, name);
      if (signals[signal] === void 0) {
        if (signals[StringPrototypeToUpperCase(signal)] !== void 0) {
          throw new ERR_UNKNOWN_SIGNAL(signal + " (signals must use all capital letters)");
        }
        throw new ERR_UNKNOWN_SIGNAL(signal);
      }
    }
    __name(validateSignalName, "validateSignalName");
    var validateBuffer = hideStackFrames((buffer, name = "buffer") => {
      if (!isArrayBufferView2(buffer)) {
        throw new ERR_INVALID_ARG_TYPE(name, ["Buffer", "TypedArray", "DataView"], buffer);
      }
    });
    function validateEncoding(data3, encoding) {
      const normalizedEncoding = normalizeEncoding(encoding);
      const length = data3.length;
      if (normalizedEncoding === "hex" && length % 2 !== 0) {
        throw new ERR_INVALID_ARG_VALUE("encoding", encoding, `is invalid for data of length ${length}`);
      }
    }
    __name(validateEncoding, "validateEncoding");
    function validatePort(port, name = "Port", allowZero = true) {
      if (typeof port !== "number" && typeof port !== "string" || typeof port === "string" && StringPrototypeTrim(port).length === 0 || +port !== +port >>> 0 || port > 65535 || port === 0 && !allowZero) {
        throw new ERR_SOCKET_BAD_PORT(name, port, allowZero);
      }
      return port | 0;
    }
    __name(validatePort, "validatePort");
    var validateAbortSignal = hideStackFrames((signal, name) => {
      if (signal !== void 0 && (signal === null || typeof signal !== "object" || !("aborted" in signal))) {
        throw new ERR_INVALID_ARG_TYPE(name, "AbortSignal", signal);
      }
    });
    var validateFunction = hideStackFrames((value, name) => {
      if (typeof value !== "function") throw new ERR_INVALID_ARG_TYPE(name, "Function", value);
    });
    var validatePlainFunction = hideStackFrames((value, name) => {
      if (typeof value !== "function" || isAsyncFunction(value)) throw new ERR_INVALID_ARG_TYPE(name, "Function", value);
    });
    var validateUndefined = hideStackFrames((value, name) => {
      if (value !== void 0) throw new ERR_INVALID_ARG_TYPE(name, "undefined", value);
    });
    function validateUnion(value, name, union) {
      if (!ArrayPrototypeIncludes(union, value)) {
        throw new ERR_INVALID_ARG_TYPE(name, `('${ArrayPrototypeJoin(union, "|")}')`, value);
      }
    }
    __name(validateUnion, "validateUnion");
    var linkValueRegExp = /^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;
    function validateLinkHeaderFormat(value, name) {
      if (typeof value === "undefined" || !RegExpPrototypeExec(linkValueRegExp, value)) {
        throw new ERR_INVALID_ARG_VALUE(
          name,
          value,
          'must be an array or string of format "</styles.css>; rel=preload; as=style"'
        );
      }
    }
    __name(validateLinkHeaderFormat, "validateLinkHeaderFormat");
    function validateLinkHeaderValue(hints) {
      if (typeof hints === "string") {
        validateLinkHeaderFormat(hints, "hints");
        return hints;
      } else if (ArrayIsArray(hints)) {
        const hintsLength = hints.length;
        let result2 = "";
        if (hintsLength === 0) {
          return result2;
        }
        for (let i3 = 0; i3 < hintsLength; i3++) {
          const link = hints[i3];
          validateLinkHeaderFormat(link, "hints");
          result2 += link;
          if (i3 !== hintsLength - 1) {
            result2 += ", ";
          }
        }
        return result2;
      }
      throw new ERR_INVALID_ARG_VALUE(
        "hints",
        hints,
        'must be an array or string of format "</styles.css>; rel=preload; as=style"'
      );
    }
    __name(validateLinkHeaderValue, "validateLinkHeaderValue");
    module2.exports = {
      isInt32,
      isUint32,
      parseFileMode,
      validateArray,
      validateStringArray,
      validateBooleanArray,
      validateAbortSignalArray,
      validateBoolean,
      validateBuffer,
      validateDictionary,
      validateEncoding,
      validateFunction,
      validateInt32,
      validateInteger,
      validateNumber,
      validateObject,
      validateOneOf,
      validatePlainFunction,
      validatePort,
      validateSignalName,
      validateString,
      validateUint32,
      validateUndefined,
      validateUnion,
      validateAbortSignal,
      validateLinkHeaderValue
    };
  }
});

// ../../node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/utils.js
var require_utils5 = __commonJS({
  "../../node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/utils.js"(exports2, module2) {
    "use strict";
    var { SymbolAsyncIterator, SymbolIterator, SymbolFor } = require_primordials4();
    var kIsDestroyed = SymbolFor("nodejs.stream.destroyed");
    var kIsErrored = SymbolFor("nodejs.stream.errored");
    var kIsReadable = SymbolFor("nodejs.stream.readable");
    var kIsWritable = SymbolFor("nodejs.stream.writable");
    var kIsDisturbed = SymbolFor("nodejs.stream.disturbed");
    var kIsClosedPromise = SymbolFor("nodejs.webstream.isClosedPromise");
    var kControllerErrorFunction = SymbolFor("nodejs.webstream.controllerErrorFunction");
    function isReadableNodeStream(obj, strict = false) {
      var _obj$_readableState;
      return !!(obj && typeof obj.pipe === "function" && typeof obj.on === "function" && (!strict || typeof obj.pause === "function" && typeof obj.resume === "function") && (!obj._writableState || ((_obj$_readableState = obj._readableState) === null || _obj$_readableState === void 0 ? void 0 : _obj$_readableState.readable) !== false) && // Duplex
      (!obj._writableState || obj._readableState));
    }
    __name(isReadableNodeStream, "isReadableNodeStream");
    function isWritableNodeStream(obj) {
      var _obj$_writableState;
      return !!(obj && typeof obj.write === "function" && typeof obj.on === "function" && (!obj._readableState || ((_obj$_writableState = obj._writableState) === null || _obj$_writableState === void 0 ? void 0 : _obj$_writableState.writable) !== false));
    }
    __name(isWritableNodeStream, "isWritableNodeStream");
    function isDuplexNodeStream(obj) {
      return !!(obj && typeof obj.pipe === "function" && obj._readableState && typeof obj.on === "function" && typeof obj.write === "function");
    }
    __name(isDuplexNodeStream, "isDuplexNodeStream");
    function isNodeStream(obj) {
      return obj && (obj._readableState || obj._writableState || typeof obj.write === "function" && typeof obj.on === "function" || typeof obj.pipe === "function" && typeof obj.on === "function");
    }
    __name(isNodeStream, "isNodeStream");
    function isReadableStream2(obj) {
      return !!(obj && !isNodeStream(obj) && typeof obj.pipeThrough === "function" && typeof obj.getReader === "function" && typeof obj.cancel === "function");
    }
    __name(isReadableStream2, "isReadableStream");
    function isWritableStream(obj) {
      return !!(obj && !isNodeStream(obj) && typeof obj.getWriter === "function" && typeof obj.abort === "function");
    }
    __name(isWritableStream, "isWritableStream");
    function isTransformStream(obj) {
      return !!(obj && !isNodeStream(obj) && typeof obj.readable === "object" && typeof obj.writable === "object");
    }
    __name(isTransformStream, "isTransformStream");
    function isWebStream(obj) {
      return isReadableStream2(obj) || isWritableStream(obj) || isTransformStream(obj);
    }
    __name(isWebStream, "isWebStream");
    function isIterable(obj, isAsync) {
      if (obj == null) return false;
      if (isAsync === true) return typeof obj[SymbolAsyncIterator] === "function";
      if (isAsync === false) return typeof obj[SymbolIterator] === "function";
      return typeof obj[SymbolAsyncIterator] === "function" || typeof obj[SymbolIterator] === "function";
    }
    __name(isIterable, "isIterable");
    function isDestroyed(stream3) {
      if (!isNodeStream(stream3)) return null;
      const wState = stream3._writableState;
      const rState = stream3._readableState;
      const state2 = wState || rState;
      return !!(stream3.destroyed || stream3[kIsDestroyed] || state2 !== null && state2 !== void 0 && state2.destroyed);
    }
    __name(isDestroyed, "isDestroyed");
    function isWritableEnded(stream3) {
      if (!isWritableNodeStream(stream3)) return null;
      if (stream3.writableEnded === true) return true;
      const wState = stream3._writableState;
      if (wState !== null && wState !== void 0 && wState.errored) return false;
      if (typeof (wState === null || wState === void 0 ? void 0 : wState.ended) !== "boolean") return null;
      return wState.ended;
    }
    __name(isWritableEnded, "isWritableEnded");
    function isWritableFinished(stream3, strict) {
      if (!isWritableNodeStream(stream3)) return null;
      if (stream3.writableFinished === true) return true;
      const wState = stream3._writableState;
      if (wState !== null && wState !== void 0 && wState.errored) return false;
      if (typeof (wState === null || wState === void 0 ? void 0 : wState.finished) !== "boolean") return null;
      return !!(wState.finished || strict === false && wState.ended === true && wState.length === 0);
    }
    __name(isWritableFinished, "isWritableFinished");
    function isReadableEnded(stream3) {
      if (!isReadableNodeStream(stream3)) return null;
      if (stream3.readableEnded === true) return true;
      const rState = stream3._readableState;
      if (!rState || rState.errored) return false;
      if (typeof (rState === null || rState === void 0 ? void 0 : rState.ended) !== "boolean") return null;
      return rState.ended;
    }
    __name(isReadableEnded, "isReadableEnded");
    function isReadableFinished(stream3, strict) {
      if (!isReadableNodeStream(stream3)) return null;
      const rState = stream3._readableState;
      if (rState !== null && rState !== void 0 && rState.errored) return false;
      if (typeof (rState === null || rState === void 0 ? void 0 : rState.endEmitted) !== "boolean") return null;
      return !!(rState.endEmitted || strict === false && rState.ended === true && rState.length === 0);
    }
    __name(isReadableFinished, "isReadableFinished");
    function isReadable2(stream3) {
      if (stream3 && stream3[kIsReadable] != null) return stream3[kIsReadable];
      if (typeof (stream3 === null || stream3 === void 0 ? void 0 : stream3.readable) !== "boolean") return null;
      if (isDestroyed(stream3)) return false;
      return isReadableNodeStream(stream3) && stream3.readable && !isReadableFinished(stream3);
    }
    __name(isReadable2, "isReadable");
    function isWritable2(stream3) {
      if (stream3 && stream3[kIsWritable] != null) return stream3[kIsWritable];
      if (typeof (stream3 === null || stream3 === void 0 ? void 0 : stream3.writable) !== "boolean") return null;
      if (isDestroyed(stream3)) return false;
      return isWritableNodeStream(stream3) && stream3.writable && !isWritableEnded(stream3);
    }
    __name(isWritable2, "isWritable");
    function isFinished(stream3, opts) {
      if (!isNodeStream(stream3)) {
        return null;
      }
      if (isDestroyed(stream3)) {
        return true;
      }
      if ((opts === null || opts === void 0 ? void 0 : opts.readable) !== false && isReadable2(stream3)) {
        return false;
      }
      if ((opts === null || opts === void 0 ? void 0 : opts.writable) !== false && isWritable2(stream3)) {
        return false;
      }
      return true;
    }
    __name(isFinished, "isFinished");
    function isWritableErrored(stream3) {
      var _stream$_writableStat, _stream$_writableStat2;
      if (!isNodeStream(stream3)) {
        return null;
      }
      if (stream3.writableErrored) {
        return stream3.writableErrored;
      }
      return (_stream$_writableStat = (_stream$_writableStat2 = stream3._writableState) === null || _stream$_writableStat2 === void 0 ? void 0 : _stream$_writableStat2.errored) !== null && _stream$_writableStat !== void 0 ? _stream$_writableStat : null;
    }
    __name(isWritableErrored, "isWritableErrored");
    function isReadableErrored(stream3) {
      var _stream$_readableStat, _stream$_readableStat2;
      if (!isNodeStream(stream3)) {
        return null;
      }
      if (stream3.readableErrored) {
        return stream3.readableErrored;
      }
      return (_stream$_readableStat = (_stream$_readableStat2 = stream3._readableState) === null || _stream$_readableStat2 === void 0 ? void 0 : _stream$_readableStat2.errored) !== null && _stream$_readableStat !== void 0 ? _stream$_readableStat : null;
    }
    __name(isReadableErrored, "isReadableErrored");
    function isClosed(stream3) {
      if (!isNodeStream(stream3)) {
        return null;
      }
      if (typeof stream3.closed === "boolean") {
        return stream3.closed;
      }
      const wState = stream3._writableState;
      const rState = stream3._readableState;
      if (typeof (wState === null || wState === void 0 ? void 0 : wState.closed) === "boolean" || typeof (rState === null || rState === void 0 ? void 0 : rState.closed) === "boolean") {
        return (wState === null || wState === void 0 ? void 0 : wState.closed) || (rState === null || rState === void 0 ? void 0 : rState.closed);
      }
      if (typeof stream3._closed === "boolean" && isOutgoingMessage(stream3)) {
        return stream3._closed;
      }
      return null;
    }
    __name(isClosed, "isClosed");
    function isOutgoingMessage(stream3) {
      return typeof stream3._closed === "boolean" && typeof stream3._defaultKeepAlive === "boolean" && typeof stream3._removedConnection === "boolean" && typeof stream3._removedContLen === "boolean";
    }
    __name(isOutgoingMessage, "isOutgoingMessage");
    function isServerResponse(stream3) {
      return typeof stream3._sent100 === "boolean" && isOutgoingMessage(stream3);
    }
    __name(isServerResponse, "isServerResponse");
    function isServerRequest(stream3) {
      var _stream$req;
      return typeof stream3._consuming === "boolean" && typeof stream3._dumped === "boolean" && ((_stream$req = stream3.req) === null || _stream$req === void 0 ? void 0 : _stream$req.upgradeOrConnect) === void 0;
    }
    __name(isServerRequest, "isServerRequest");
    function willEmitClose(stream3) {
      if (!isNodeStream(stream3)) return null;
      const wState = stream3._writableState;
      const rState = stream3._readableState;
      const state2 = wState || rState;
      return !state2 && isServerResponse(stream3) || !!(state2 && state2.autoDestroy && state2.emitClose && state2.closed === false);
    }
    __name(willEmitClose, "willEmitClose");
    function isDisturbed(stream3) {
      var _stream$kIsDisturbed;
      return !!(stream3 && ((_stream$kIsDisturbed = stream3[kIsDisturbed]) !== null && _stream$kIsDisturbed !== void 0 ? _stream$kIsDisturbed : stream3.readableDidRead || stream3.readableAborted));
    }
    __name(isDisturbed, "isDisturbed");
    function isErrored(stream3) {
      var _ref, _ref2, _ref3, _ref4, _ref5, _stream$kIsErrored, _stream$_readableStat3, _stream$_writableStat3, _stream$_readableStat4, _stream$_writableStat4;
      return !!(stream3 && ((_ref = (_ref2 = (_ref3 = (_ref4 = (_ref5 = (_stream$kIsErrored = stream3[kIsErrored]) !== null && _stream$kIsErrored !== void 0 ? _stream$kIsErrored : stream3.readableErrored) !== null && _ref5 !== void 0 ? _ref5 : stream3.writableErrored) !== null && _ref4 !== void 0 ? _ref4 : (_stream$_readableStat3 = stream3._readableState) === null || _stream$_readableStat3 === void 0 ? void 0 : _stream$_readableStat3.errorEmitted) !== null && _ref3 !== void 0 ? _ref3 : (_stream$_writableStat3 = stream3._writableState) === null || _stream$_writableStat3 === void 0 ? void 0 : _stream$_writableStat3.errorEmitted) !== null && _ref2 !== void 0 ? _ref2 : (_stream$_readableStat4 = stream3._readableState) === null || _stream$_readableStat4 === void 0 ? void 0 : _stream$_readableStat4.errored) !== null && _ref !== void 0 ? _ref : (_stream$_writableStat4 = stream3._writableState) === null || _stream$_writableStat4 === void 0 ? void 0 : _stream$_writableStat4.errored));
    }
    __name(isErrored, "isErrored");
    module2.exports = {
      isDestroyed,
      kIsDestroyed,
      isDisturbed,
      kIsDisturbed,
      isErrored,
      kIsErrored,
      isReadable: isReadable2,
      kIsReadable,
      kIsClosedPromise,
      kControllerErrorFunction,
      kIsWritable,
      isClosed,
      isDuplexNodeStream,
      isFinished,
      isIterable,
      isReadableNodeStream,
      isReadableStream: isReadableStream2,
      isReadableEnded,
      isReadableFinished,
      isReadableErrored,
      isNodeStream,
      isWebStream,
      isWritable: isWritable2,
      isWritableNodeStream,
      isWritableStream,
      isWritableEnded,
      isWritableFinished,
      isWritableErrored,
      isServerRequest,
      isServerResponse,
      willEmitClose,
      isTransformStream
    };
  }
});

// ../../node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/end-of-stream.js
var require_end_of_stream4 = __commonJS({
  "../../node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"(exports2, module2) {
    "use strict";
    var process3 = require_process();
    var { AbortError, codes } = require_errors4();
    var { ERR_INVALID_ARG_TYPE, ERR_STREAM_PREMATURE_CLOSE } = codes;
    var { kEmptyObject, once } = require_util7();
    var { validateAbortSignal, validateFunction, validateObject, validateBoolean } = require_validators4();
    var { Promise: Promise2, PromisePrototypeThen, SymbolDispose } = require_primordials4();
    var {
      isClosed,
      isReadable: isReadable2,
      isReadableNodeStream,
      isReadableStream: isReadableStream2,
      isReadableFinished,
      isReadableErrored,
      isWritable: isWritable2,
      isWritableNodeStream,
      isWritableStream,
      isWritableFinished,
      isWritableErrored,
      isNodeStream,
      willEmitClose: _willEmitClose,
      kIsClosedPromise
    } = require_utils5();
    var addAbortListener;
    function isRequest(stream3) {
      return stream3.setHeader && typeof stream3.abort === "function";
    }
    __name(isRequest, "isRequest");
    var nop = /* @__PURE__ */ __name(() => {
    }, "nop");
    function eos(stream3, options, callback) {
      var _options$readable, _options$writable;
      if (arguments.length === 2) {
        callback = options;
        options = kEmptyObject;
      } else if (options == null) {
        options = kEmptyObject;
      } else {
        validateObject(options, "options");
      }
      validateFunction(callback, "callback");
      validateAbortSignal(options.signal, "options.signal");
      callback = once(callback);
      if (isReadableStream2(stream3) || isWritableStream(stream3)) {
        return eosWeb(stream3, options, callback);
      }
      if (!isNodeStream(stream3)) {
        throw new ERR_INVALID_ARG_TYPE("stream", ["ReadableStream", "WritableStream", "Stream"], stream3);
      }
      const readable = (_options$readable = options.readable) !== null && _options$readable !== void 0 ? _options$readable : isReadableNodeStream(stream3);
      const writable = (_options$writable = options.writable) !== null && _options$writable !== void 0 ? _options$writable : isWritableNodeStream(stream3);
      const wState = stream3._writableState;
      const rState = stream3._readableState;
      const onlegacyfinish = /* @__PURE__ */ __name(() => {
        if (!stream3.writable) {
          onfinish();
        }
      }, "onlegacyfinish");
      let willEmitClose = _willEmitClose(stream3) && isReadableNodeStream(stream3) === readable && isWritableNodeStream(stream3) === writable;
      let writableFinished = isWritableFinished(stream3, false);
      const onfinish = /* @__PURE__ */ __name(() => {
        writableFinished = true;
        if (stream3.destroyed) {
          willEmitClose = false;
        }
        if (willEmitClose && (!stream3.readable || readable)) {
          return;
        }
        if (!readable || readableFinished) {
          callback.call(stream3);
        }
      }, "onfinish");
      let readableFinished = isReadableFinished(stream3, false);
      const onend = /* @__PURE__ */ __name(() => {
        readableFinished = true;
        if (stream3.destroyed) {
          willEmitClose = false;
        }
        if (willEmitClose && (!stream3.writable || writable)) {
          return;
        }
        if (!writable || writableFinished) {
          callback.call(stream3);
        }
      }, "onend");
      const onerror = /* @__PURE__ */ __name((err) => {
        callback.call(stream3, err);
      }, "onerror");
      let closed = isClosed(stream3);
      const onclose = /* @__PURE__ */ __name(() => {
        closed = true;
        const errored = isWritableErrored(stream3) || isReadableErrored(stream3);
        if (errored && typeof errored !== "boolean") {
          return callback.call(stream3, errored);
        }
        if (readable && !readableFinished && isReadableNodeStream(stream3, true)) {
          if (!isReadableFinished(stream3, false)) return callback.call(stream3, new ERR_STREAM_PREMATURE_CLOSE());
        }
        if (writable && !writableFinished) {
          if (!isWritableFinished(stream3, false)) return callback.call(stream3, new ERR_STREAM_PREMATURE_CLOSE());
        }
        callback.call(stream3);
      }, "onclose");
      const onclosed = /* @__PURE__ */ __name(() => {
        closed = true;
        const errored = isWritableErrored(stream3) || isReadableErrored(stream3);
        if (errored && typeof errored !== "boolean") {
          return callback.call(stream3, errored);
        }
        callback.call(stream3);
      }, "onclosed");
      const onrequest = /* @__PURE__ */ __name(() => {
        stream3.req.on("finish", onfinish);
      }, "onrequest");
      if (isRequest(stream3)) {
        stream3.on("complete", onfinish);
        if (!willEmitClose) {
          stream3.on("abort", onclose);
        }
        if (stream3.req) {
          onrequest();
        } else {
          stream3.on("request", onrequest);
        }
      } else if (writable && !wState) {
        stream3.on("end", onlegacyfinish);
        stream3.on("close", onlegacyfinish);
      }
      if (!willEmitClose && typeof stream3.aborted === "boolean") {
        stream3.on("aborted", onclose);
      }
      stream3.on("end", onend);
      stream3.on("finish", onfinish);
      if (options.error !== false) {
        stream3.on("error", onerror);
      }
      stream3.on("close", onclose);
      if (closed) {
        process3.nextTick(onclose);
      } else if (wState !== null && wState !== void 0 && wState.errorEmitted || rState !== null && rState !== void 0 && rState.errorEmitted) {
        if (!willEmitClose) {
          process3.nextTick(onclosed);
        }
      } else if (!readable && (!willEmitClose || isReadable2(stream3)) && (writableFinished || isWritable2(stream3) === false)) {
        process3.nextTick(onclosed);
      } else if (!writable && (!willEmitClose || isWritable2(stream3)) && (readableFinished || isReadable2(stream3) === false)) {
        process3.nextTick(onclosed);
      } else if (rState && stream3.req && stream3.aborted) {
        process3.nextTick(onclosed);
      }
      const cleanup = /* @__PURE__ */ __name(() => {
        callback = nop;
        stream3.removeListener("aborted", onclose);
        stream3.removeListener("complete", onfinish);
        stream3.removeListener("abort", onclose);
        stream3.removeListener("request", onrequest);
        if (stream3.req) stream3.req.removeListener("finish", onfinish);
        stream3.removeListener("end", onlegacyfinish);
        stream3.removeListener("close", onlegacyfinish);
        stream3.removeListener("finish", onfinish);
        stream3.removeListener("end", onend);
        stream3.removeListener("error", onerror);
        stream3.removeListener("close", onclose);
      }, "cleanup");
      if (options.signal && !closed) {
        const abort = /* @__PURE__ */ __name(() => {
          const endCallback = callback;
          cleanup();
          endCallback.call(
            stream3,
            new AbortError(void 0, {
              cause: options.signal.reason
            })
          );
        }, "abort");
        if (options.signal.aborted) {
          process3.nextTick(abort);
        } else {
          addAbortListener = addAbortListener || require_util7().addAbortListener;
          const disposable = addAbortListener(options.signal, abort);
          const originalCallback = callback;
          callback = once((...args) => {
            disposable[SymbolDispose]();
            originalCallback.apply(stream3, args);
          });
        }
      }
      return cleanup;
    }
    __name(eos, "eos");
    function eosWeb(stream3, options, callback) {
      let isAborted = false;
      let abort = nop;
      if (options.signal) {
        abort = /* @__PURE__ */ __name(() => {
          isAborted = true;
          callback.call(
            stream3,
            new AbortError(void 0, {
              cause: options.signal.reason
            })
          );
        }, "abort");
        if (options.signal.aborted) {
          process3.nextTick(abort);
        } else {
          addAbortListener = addAbortListener || require_util7().addAbortListener;
          const disposable = addAbortListener(options.signal, abort);
          const originalCallback = callback;
          callback = once((...args) => {
            disposable[SymbolDispose]();
            originalCallback.apply(stream3, args);
          });
        }
      }
      const resolverFn = /* @__PURE__ */ __name((...args) => {
        if (!isAborted) {
          process3.nextTick(() => callback.apply(stream3, args));
        }
      }, "resolverFn");
      PromisePrototypeThen(stream3[kIsClosedPromise].promise, resolverFn, resolverFn);
      return nop;
    }
    __name(eosWeb, "eosWeb");
    function finished(stream3, opts) {
      var _opts;
      let autoCleanup = false;
      if (opts === null) {
        opts = kEmptyObject;
      }
      if ((_opts = opts) !== null && _opts !== void 0 && _opts.cleanup) {
        validateBoolean(opts.cleanup, "cleanup");
        autoCleanup = opts.cleanup;
      }
      return new Promise2((resolve13, reject) => {
        const cleanup = eos(stream3, opts, (err) => {
          if (autoCleanup) {
            cleanup();
          }
          if (err) {
            reject(err);
          } else {
            resolve13();
          }
        });
      });
    }
    __name(finished, "finished");
    module2.exports = eos;
    module2.exports.finished = finished;
  }
});

// ../../node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/destroy.js
var require_destroy5 = __commonJS({
  "../../node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/destroy.js"(exports2, module2) {
    "use strict";
    var process3 = require_process();
    var {
      aggregateTwoErrors,
      codes: { ERR_MULTIPLE_CALLBACK },
      AbortError
    } = require_errors4();
    var { Symbol: Symbol2 } = require_primordials4();
    var { kIsDestroyed, isDestroyed, isFinished, isServerRequest } = require_utils5();
    var kDestroy = Symbol2("kDestroy");
    var kConstruct = Symbol2("kConstruct");
    function checkError(err, w3, r3) {
      if (err) {
        err.stack;
        if (w3 && !w3.errored) {
          w3.errored = err;
        }
        if (r3 && !r3.errored) {
          r3.errored = err;
        }
      }
    }
    __name(checkError, "checkError");
    function destroy(err, cb) {
      const r3 = this._readableState;
      const w3 = this._writableState;
      const s3 = w3 || r3;
      if (w3 !== null && w3 !== void 0 && w3.destroyed || r3 !== null && r3 !== void 0 && r3.destroyed) {
        if (typeof cb === "function") {
          cb();
        }
        return this;
      }
      checkError(err, w3, r3);
      if (w3) {
        w3.destroyed = true;
      }
      if (r3) {
        r3.destroyed = true;
      }
      if (!s3.constructed) {
        this.once(kDestroy, function(er) {
          _destroy(this, aggregateTwoErrors(er, err), cb);
        });
      } else {
        _destroy(this, err, cb);
      }
      return this;
    }
    __name(destroy, "destroy");
    function _destroy(self2, err, cb) {
      let called = false;
      function onDestroy(err2) {
        if (called) {
          return;
        }
        called = true;
        const r3 = self2._readableState;
        const w3 = self2._writableState;
        checkError(err2, w3, r3);
        if (w3) {
          w3.closed = true;
        }
        if (r3) {
          r3.closed = true;
        }
        if (typeof cb === "function") {
          cb(err2);
        }
        if (err2) {
          process3.nextTick(emitErrorCloseNT, self2, err2);
        } else {
          process3.nextTick(emitCloseNT, self2);
        }
      }
      __name(onDestroy, "onDestroy");
      try {
        self2._destroy(err || null, onDestroy);
      } catch (err2) {
        onDestroy(err2);
      }
    }
    __name(_destroy, "_destroy");
    function emitErrorCloseNT(self2, err) {
      emitErrorNT(self2, err);
      emitCloseNT(self2);
    }
    __name(emitErrorCloseNT, "emitErrorCloseNT");
    function emitCloseNT(self2) {
      const r3 = self2._readableState;
      const w3 = self2._writableState;
      if (w3) {
        w3.closeEmitted = true;
      }
      if (r3) {
        r3.closeEmitted = true;
      }
      if (w3 !== null && w3 !== void 0 && w3.emitClose || r3 !== null && r3 !== void 0 && r3.emitClose) {
        self2.emit("close");
      }
    }
    __name(emitCloseNT, "emitCloseNT");
    function emitErrorNT(self2, err) {
      const r3 = self2._readableState;
      const w3 = self2._writableState;
      if (w3 !== null && w3 !== void 0 && w3.errorEmitted || r3 !== null && r3 !== void 0 && r3.errorEmitted) {
        return;
      }
      if (w3) {
        w3.errorEmitted = true;
      }
      if (r3) {
        r3.errorEmitted = true;
      }
      self2.emit("error", err);
    }
    __name(emitErrorNT, "emitErrorNT");
    function undestroy() {
      const r3 = this._readableState;
      const w3 = this._writableState;
      if (r3) {
        r3.constructed = true;
        r3.closed = false;
        r3.closeEmitted = false;
        r3.destroyed = false;
        r3.errored = null;
        r3.errorEmitted = false;
        r3.reading = false;
        r3.ended = r3.readable === false;
        r3.endEmitted = r3.readable === false;
      }
      if (w3) {
        w3.constructed = true;
        w3.destroyed = false;
        w3.closed = false;
        w3.closeEmitted = false;
        w3.errored = null;
        w3.errorEmitted = false;
        w3.finalCalled = false;
        w3.prefinished = false;
        w3.ended = w3.writable === false;
        w3.ending = w3.writable === false;
        w3.finished = w3.writable === false;
      }
    }
    __name(undestroy, "undestroy");
    function errorOrDestroy(stream3, err, sync2) {
      const r3 = stream3._readableState;
      const w3 = stream3._writableState;
      if (w3 !== null && w3 !== void 0 && w3.destroyed || r3 !== null && r3 !== void 0 && r3.destroyed) {
        return this;
      }
      if (r3 !== null && r3 !== void 0 && r3.autoDestroy || w3 !== null && w3 !== void 0 && w3.autoDestroy)
        stream3.destroy(err);
      else if (err) {
        err.stack;
        if (w3 && !w3.errored) {
          w3.errored = err;
        }
        if (r3 && !r3.errored) {
          r3.errored = err;
        }
        if (sync2) {
          process3.nextTick(emitErrorNT, stream3, err);
        } else {
          emitErrorNT(stream3, err);
        }
      }
    }
    __name(errorOrDestroy, "errorOrDestroy");
    function construct(stream3, cb) {
      if (typeof stream3._construct !== "function") {
        return;
      }
      const r3 = stream3._readableState;
      const w3 = stream3._writableState;
      if (r3) {
        r3.constructed = false;
      }
      if (w3) {
        w3.constructed = false;
      }
      stream3.once(kConstruct, cb);
      if (stream3.listenerCount(kConstruct) > 1) {
        return;
      }
      process3.nextTick(constructNT, stream3);
    }
    __name(construct, "construct");
    function constructNT(stream3) {
      let called = false;
      function onConstruct(err) {
        if (called) {
          errorOrDestroy(stream3, err !== null && err !== void 0 ? err : new ERR_MULTIPLE_CALLBACK());
          return;
        }
        called = true;
        const r3 = stream3._readableState;
        const w3 = stream3._writableState;
        const s3 = w3 || r3;
        if (r3) {
          r3.constructed = true;
        }
        if (w3) {
          w3.constructed = true;
        }
        if (s3.destroyed) {
          stream3.emit(kDestroy, err);
        } else if (err) {
          errorOrDestroy(stream3, err, true);
        } else {
          process3.nextTick(emitConstructNT, stream3);
        }
      }
      __name(onConstruct, "onConstruct");
      try {
        stream3._construct((err) => {
          process3.nextTick(onConstruct, err);
        });
      } catch (err) {
        process3.nextTick(onConstruct, err);
      }
    }
    __name(constructNT, "constructNT");
    function emitConstructNT(stream3) {
      stream3.emit(kConstruct);
    }
    __name(emitConstructNT, "emitConstructNT");
    function isRequest(stream3) {
      return (stream3 === null || stream3 === void 0 ? void 0 : stream3.setHeader) && typeof stream3.abort === "function";
    }
    __name(isRequest, "isRequest");
    function emitCloseLegacy(stream3) {
      stream3.emit("close");
    }
    __name(emitCloseLegacy, "emitCloseLegacy");
    function emitErrorCloseLegacy(stream3, err) {
      stream3.emit("error", err);
      process3.nextTick(emitCloseLegacy, stream3);
    }
    __name(emitErrorCloseLegacy, "emitErrorCloseLegacy");
    function destroyer(stream3, err) {
      if (!stream3 || isDestroyed(stream3)) {
        return;
      }
      if (!err && !isFinished(stream3)) {
        err = new AbortError();
      }
      if (isServerRequest(stream3)) {
        stream3.socket = null;
        stream3.destroy(err);
      } else if (isRequest(stream3)) {
        stream3.abort();
      } else if (isRequest(stream3.req)) {
        stream3.req.abort();
      } else if (typeof stream3.destroy === "function") {
        stream3.destroy(err);
      } else if (typeof stream3.close === "function") {
        stream3.close();
      } else if (err) {
        process3.nextTick(emitErrorCloseLegacy, stream3, err);
      } else {
        process3.nextTick(emitCloseLegacy, stream3);
      }
      if (!stream3.destroyed) {
        stream3[kIsDestroyed] = true;
      }
    }
    __name(destroyer, "destroyer");
    module2.exports = {
      construct,
      destroyer,
      destroy,
      undestroy,
      errorOrDestroy
    };
  }
});

// ../../node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/legacy.js
var require_legacy4 = __commonJS({
  "../../node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/legacy.js"(exports2, module2) {
    "use strict";
    var { ArrayIsArray, ObjectSetPrototypeOf } = require_primordials4();
    var { EventEmitter: EE } = require("events");
    function Stream2(opts) {
      EE.call(this, opts);
    }
    __name(Stream2, "Stream");
    ObjectSetPrototypeOf(Stream2.prototype, EE.prototype);
    ObjectSetPrototypeOf(Stream2, EE);
    Stream2.prototype.pipe = function(dest, options) {
      const source = this;
      function ondata(chunk) {
        if (dest.writable && dest.write(chunk) === false && source.pause) {
          source.pause();
        }
      }
      __name(ondata, "ondata");
      source.on("data", ondata);
      function ondrain() {
        if (source.readable && source.resume) {
          source.resume();
        }
      }
      __name(ondrain, "ondrain");
      dest.on("drain", ondrain);
      if (!dest._isStdio && (!options || options.end !== false)) {
        source.on("end", onend);
        source.on("close", onclose);
      }
      let didOnEnd = false;
      function onend() {
        if (didOnEnd) return;
        didOnEnd = true;
        dest.end();
      }
      __name(onend, "onend");
      function onclose() {
        if (didOnEnd) return;
        didOnEnd = true;
        if (typeof dest.destroy === "function") dest.destroy();
      }
      __name(onclose, "onclose");
      function onerror(er) {
        cleanup();
        if (EE.listenerCount(this, "error") === 0) {
          this.emit("error", er);
        }
      }
      __name(onerror, "onerror");
      prependListener(source, "error", onerror);
      prependListener(dest, "error", onerror);
      function cleanup() {
        source.removeListener("data", ondata);
        dest.removeListener("drain", ondrain);
        source.removeListener("end", onend);
        source.removeListener("close", onclose);
        source.removeListener("error", onerror);
        dest.removeListener("error", onerror);
        source.removeListener("end", cleanup);
        source.removeListener("close", cleanup);
        dest.removeListener("close", cleanup);
      }
      __name(cleanup, "cleanup");
      source.on("end", cleanup);
      source.on("close", cleanup);
      dest.on("close", cleanup);
      dest.emit("pipe", source);
      return dest;
    };
    function prependListener(emitter, event, fn) {
      if (typeof emitter.prependListener === "function") return emitter.prependListener(event, fn);
      if (!emitter._events || !emitter._events[event]) emitter.on(event, fn);
      else if (ArrayIsArray(emitter._events[event])) emitter._events[event].unshift(fn);
      else emitter._events[event] = [fn, emitter._events[event]];
    }
    __name(prependListener, "prependListener");
    module2.exports = {
      Stream: Stream2,
      prependListener
    };
  }
});

// ../../node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/add-abort-signal.js
var require_add_abort_signal4 = __commonJS({
  "../../node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/add-abort-signal.js"(exports2, module2) {
    "use strict";
    var { SymbolDispose } = require_primordials4();
    var { AbortError, codes } = require_errors4();
    var { isNodeStream, isWebStream, kControllerErrorFunction } = require_utils5();
    var eos = require_end_of_stream4();
    var { ERR_INVALID_ARG_TYPE } = codes;
    var addAbortListener;
    var validateAbortSignal = /* @__PURE__ */ __name((signal, name) => {
      if (typeof signal !== "object" || !("aborted" in signal)) {
        throw new ERR_INVALID_ARG_TYPE(name, "AbortSignal", signal);
      }
    }, "validateAbortSignal");
    module2.exports.addAbortSignal = /* @__PURE__ */ __name(function addAbortSignal(signal, stream3) {
      validateAbortSignal(signal, "signal");
      if (!isNodeStream(stream3) && !isWebStream(stream3)) {
        throw new ERR_INVALID_ARG_TYPE("stream", ["ReadableStream", "WritableStream", "Stream"], stream3);
      }
      return module2.exports.addAbortSignalNoValidate(signal, stream3);
    }, "addAbortSignal");
    module2.exports.addAbortSignalNoValidate = function(signal, stream3) {
      if (typeof signal !== "object" || !("aborted" in signal)) {
        return stream3;
      }
      const onAbort = isNodeStream(stream3) ? () => {
        stream3.destroy(
          new AbortError(void 0, {
            cause: signal.reason
          })
        );
      } : () => {
        stream3[kControllerErrorFunction](
          new AbortError(void 0, {
            cause: signal.reason
          })
        );
      };
      if (signal.aborted) {
        onAbort();
      } else {
        addAbortListener = addAbortListener || require_util7().addAbortListener;
        const disposable = addAbortListener(signal, onAbort);
        eos(stream3, disposable[SymbolDispose]);
      }
      return stream3;
    };
  }
});

// ../../node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/buffer_list.js
var require_buffer_list4 = __commonJS({
  "../../node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/buffer_list.js"(exports2, module2) {
    "use strict";
    var { StringPrototypeSlice, SymbolIterator, TypedArrayPrototypeSet, Uint8Array: Uint8Array2 } = require_primordials4();
    var { Buffer: Buffer2 } = require("buffer");
    var { inspect: inspect4 } = require_util7();
    module2.exports = class BufferList {
      static {
        __name(this, "BufferList");
      }
      constructor() {
        this.head = null;
        this.tail = null;
        this.length = 0;
      }
      push(v6) {
        const entry = {
          data: v6,
          next: null
        };
        if (this.length > 0) this.tail.next = entry;
        else this.head = entry;
        this.tail = entry;
        ++this.length;
      }
      unshift(v6) {
        const entry = {
          data: v6,
          next: this.head
        };
        if (this.length === 0) this.tail = entry;
        this.head = entry;
        ++this.length;
      }
      shift() {
        if (this.length === 0) return;
        const ret = this.head.data;
        if (this.length === 1) this.head = this.tail = null;
        else this.head = this.head.next;
        --this.length;
        return ret;
      }
      clear() {
        this.head = this.tail = null;
        this.length = 0;
      }
      join(s3) {
        if (this.length === 0) return "";
        let p3 = this.head;
        let ret = "" + p3.data;
        while ((p3 = p3.next) !== null) ret += s3 + p3.data;
        return ret;
      }
      concat(n3) {
        if (this.length === 0) return Buffer2.alloc(0);
        const ret = Buffer2.allocUnsafe(n3 >>> 0);
        let p3 = this.head;
        let i3 = 0;
        while (p3) {
          TypedArrayPrototypeSet(ret, p3.data, i3);
          i3 += p3.data.length;
          p3 = p3.next;
        }
        return ret;
      }
      // Consumes a specified amount of bytes or characters from the buffered data.
      consume(n3, hasStrings) {
        const data3 = this.head.data;
        if (n3 < data3.length) {
          const slice = data3.slice(0, n3);
          this.head.data = data3.slice(n3);
          return slice;
        }
        if (n3 === data3.length) {
          return this.shift();
        }
        return hasStrings ? this._getString(n3) : this._getBuffer(n3);
      }
      first() {
        return this.head.data;
      }
      *[SymbolIterator]() {
        for (let p3 = this.head; p3; p3 = p3.next) {
          yield p3.data;
        }
      }
      // Consumes a specified amount of characters from the buffered data.
      _getString(n3) {
        let ret = "";
        let p3 = this.head;
        let c3 = 0;
        do {
          const str = p3.data;
          if (n3 > str.length) {
            ret += str;
            n3 -= str.length;
          } else {
            if (n3 === str.length) {
              ret += str;
              ++c3;
              if (p3.next) this.head = p3.next;
              else this.head = this.tail = null;
            } else {
              ret += StringPrototypeSlice(str, 0, n3);
              this.head = p3;
              p3.data = StringPrototypeSlice(str, n3);
            }
            break;
          }
          ++c3;
        } while ((p3 = p3.next) !== null);
        this.length -= c3;
        return ret;
      }
      // Consumes a specified amount of bytes from the buffered data.
      _getBuffer(n3) {
        const ret = Buffer2.allocUnsafe(n3);
        const retLen = n3;
        let p3 = this.head;
        let c3 = 0;
        do {
          const buf = p3.data;
          if (n3 > buf.length) {
            TypedArrayPrototypeSet(ret, buf, retLen - n3);
            n3 -= buf.length;
          } else {
            if (n3 === buf.length) {
              TypedArrayPrototypeSet(ret, buf, retLen - n3);
              ++c3;
              if (p3.next) this.head = p3.next;
              else this.head = this.tail = null;
            } else {
              TypedArrayPrototypeSet(ret, new Uint8Array2(buf.buffer, buf.byteOffset, n3), retLen - n3);
              this.head = p3;
              p3.data = buf.slice(n3);
            }
            break;
          }
          ++c3;
        } while ((p3 = p3.next) !== null);
        this.length -= c3;
        return ret;
      }
      // Make sure the linked list only shows the minimal necessary information.
      [Symbol.for("nodejs.util.inspect.custom")](_3, options) {
        return inspect4(this, {
          ...options,
          // Only inspect one level.
          depth: 0,
          // It should not recurse.
          customInspect: false
        });
      }
    };
  }
});

// ../../node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/state.js
var require_state4 = __commonJS({
  "../../node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/state.js"(exports2, module2) {
    "use strict";
    var { MathFloor, NumberIsInteger } = require_primordials4();
    var { validateInteger } = require_validators4();
    var { ERR_INVALID_ARG_VALUE } = require_errors4().codes;
    var defaultHighWaterMarkBytes = 16 * 1024;
    var defaultHighWaterMarkObjectMode = 16;
    function highWaterMarkFrom(options, isDuplex, duplexKey) {
      return options.highWaterMark != null ? options.highWaterMark : isDuplex ? options[duplexKey] : null;
    }
    __name(highWaterMarkFrom, "highWaterMarkFrom");
    function getDefaultHighWaterMark(objectMode) {
      return objectMode ? defaultHighWaterMarkObjectMode : defaultHighWaterMarkBytes;
    }
    __name(getDefaultHighWaterMark, "getDefaultHighWaterMark");
    function setDefaultHighWaterMark(objectMode, value) {
      validateInteger(value, "value", 0);
      if (objectMode) {
        defaultHighWaterMarkObjectMode = value;
      } else {
        defaultHighWaterMarkBytes = value;
      }
    }
    __name(setDefaultHighWaterMark, "setDefaultHighWaterMark");
    function getHighWaterMark(state2, options, duplexKey, isDuplex) {
      const hwm = highWaterMarkFrom(options, isDuplex, duplexKey);
      if (hwm != null) {
        if (!NumberIsInteger(hwm) || hwm < 0) {
          const name = isDuplex ? `options.${duplexKey}` : "options.highWaterMark";
          throw new ERR_INVALID_ARG_VALUE(name, hwm);
        }
        return MathFloor(hwm);
      }
      return getDefaultHighWaterMark(state2.objectMode);
    }
    __name(getHighWaterMark, "getHighWaterMark");
    module2.exports = {
      getHighWaterMark,
      getDefaultHighWaterMark,
      setDefaultHighWaterMark
    };
  }
});

// ../../node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/from.js
var require_from4 = __commonJS({
  "../../node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/from.js"(exports2, module2) {
    "use strict";
    var process3 = require_process();
    var { PromisePrototypeThen, SymbolAsyncIterator, SymbolIterator } = require_primordials4();
    var { Buffer: Buffer2 } = require("buffer");
    var { ERR_INVALID_ARG_TYPE, ERR_STREAM_NULL_VALUES } = require_errors4().codes;
    function from(Readable, iterable, opts) {
      let iterator;
      if (typeof iterable === "string" || iterable instanceof Buffer2) {
        return new Readable({
          objectMode: true,
          ...opts,
          read() {
            this.push(iterable);
            this.push(null);
          }
        });
      }
      let isAsync;
      if (iterable && iterable[SymbolAsyncIterator]) {
        isAsync = true;
        iterator = iterable[SymbolAsyncIterator]();
      } else if (iterable && iterable[SymbolIterator]) {
        isAsync = false;
        iterator = iterable[SymbolIterator]();
      } else {
        throw new ERR_INVALID_ARG_TYPE("iterable", ["Iterable"], iterable);
      }
      const readable = new Readable({
        objectMode: true,
        highWaterMark: 1,
        // TODO(ronag): What options should be allowed?
        ...opts
      });
      let reading = false;
      readable._read = function() {
        if (!reading) {
          reading = true;
          next();
        }
      };
      readable._destroy = function(error5, cb) {
        PromisePrototypeThen(
          close(error5),
          () => process3.nextTick(cb, error5),
          // nextTick is here in case cb throws
          (e3) => process3.nextTick(cb, e3 || error5)
        );
      };
      async function close(error5) {
        const hadError = error5 !== void 0 && error5 !== null;
        const hasThrow = typeof iterator.throw === "function";
        if (hadError && hasThrow) {
          const { value, done } = await iterator.throw(error5);
          await value;
          if (done) {
            return;
          }
        }
        if (typeof iterator.return === "function") {
          const { value } = await iterator.return();
          await value;
        }
      }
      __name(close, "close");
      async function next() {
        for (; ; ) {
          try {
            const { value, done } = isAsync ? await iterator.next() : iterator.next();
            if (done) {
              readable.push(null);
            } else {
              const res = value && typeof value.then === "function" ? await value : value;
              if (res === null) {
                reading = false;
                throw new ERR_STREAM_NULL_VALUES();
              } else if (readable.push(res)) {
                continue;
              } else {
                reading = false;
              }
            }
          } catch (err) {
            readable.destroy(err);
          }
          break;
        }
      }
      __name(next, "next");
      return readable;
    }
    __name(from, "from");
    module2.exports = from;
  }
});

// ../../node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/readable.js
var require_readable5 = __commonJS({
  "../../node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/readable.js"(exports2, module2) {
    "use strict";
    var process3 = require_process();
    var {
      ArrayPrototypeIndexOf,
      NumberIsInteger,
      NumberIsNaN,
      NumberParseInt,
      ObjectDefineProperties,
      ObjectKeys,
      ObjectSetPrototypeOf,
      Promise: Promise2,
      SafeSet,
      SymbolAsyncDispose,
      SymbolAsyncIterator,
      Symbol: Symbol2
    } = require_primordials4();
    module2.exports = Readable;
    Readable.ReadableState = ReadableState;
    var { EventEmitter: EE } = require("events");
    var { Stream: Stream2, prependListener } = require_legacy4();
    var { Buffer: Buffer2 } = require("buffer");
    var { addAbortSignal } = require_add_abort_signal4();
    var eos = require_end_of_stream4();
    var debug3 = require_util7().debuglog("stream", (fn) => {
      debug3 = fn;
    });
    var BufferList = require_buffer_list4();
    var destroyImpl = require_destroy5();
    var { getHighWaterMark, getDefaultHighWaterMark } = require_state4();
    var {
      aggregateTwoErrors,
      codes: {
        ERR_INVALID_ARG_TYPE,
        ERR_METHOD_NOT_IMPLEMENTED,
        ERR_OUT_OF_RANGE,
        ERR_STREAM_PUSH_AFTER_EOF,
        ERR_STREAM_UNSHIFT_AFTER_END_EVENT
      },
      AbortError
    } = require_errors4();
    var { validateObject } = require_validators4();
    var kPaused = Symbol2("kPaused");
    var { StringDecoder: StringDecoder2 } = require_string_decoder2();
    var from = require_from4();
    ObjectSetPrototypeOf(Readable.prototype, Stream2.prototype);
    ObjectSetPrototypeOf(Readable, Stream2);
    var nop = /* @__PURE__ */ __name(() => {
    }, "nop");
    var { errorOrDestroy } = destroyImpl;
    var kObjectMode = 1 << 0;
    var kEnded = 1 << 1;
    var kEndEmitted = 1 << 2;
    var kReading = 1 << 3;
    var kConstructed = 1 << 4;
    var kSync = 1 << 5;
    var kNeedReadable = 1 << 6;
    var kEmittedReadable = 1 << 7;
    var kReadableListening = 1 << 8;
    var kResumeScheduled = 1 << 9;
    var kErrorEmitted = 1 << 10;
    var kEmitClose = 1 << 11;
    var kAutoDestroy = 1 << 12;
    var kDestroyed = 1 << 13;
    var kClosed = 1 << 14;
    var kCloseEmitted = 1 << 15;
    var kMultiAwaitDrain = 1 << 16;
    var kReadingMore = 1 << 17;
    var kDataEmitted = 1 << 18;
    function makeBitMapDescriptor(bit) {
      return {
        enumerable: false,
        get() {
          return (this.state & bit) !== 0;
        },
        set(value) {
          if (value) this.state |= bit;
          else this.state &= ~bit;
        }
      };
    }
    __name(makeBitMapDescriptor, "makeBitMapDescriptor");
    ObjectDefineProperties(ReadableState.prototype, {
      objectMode: makeBitMapDescriptor(kObjectMode),
      ended: makeBitMapDescriptor(kEnded),
      endEmitted: makeBitMapDescriptor(kEndEmitted),
      reading: makeBitMapDescriptor(kReading),
      // Stream is still being constructed and cannot be
      // destroyed until construction finished or failed.
      // Async construction is opt in, therefore we start as
      // constructed.
      constructed: makeBitMapDescriptor(kConstructed),
      // A flag to be able to tell if the event 'readable'/'data' is emitted
      // immediately, or on a later tick.  We set this to true at first, because
      // any actions that shouldn't happen until "later" should generally also
      // not happen before the first read call.
      sync: makeBitMapDescriptor(kSync),
      // Whenever we return null, then we set a flag to say
      // that we're awaiting a 'readable' event emission.
      needReadable: makeBitMapDescriptor(kNeedReadable),
      emittedReadable: makeBitMapDescriptor(kEmittedReadable),
      readableListening: makeBitMapDescriptor(kReadableListening),
      resumeScheduled: makeBitMapDescriptor(kResumeScheduled),
      // True if the error was already emitted and should not be thrown again.
      errorEmitted: makeBitMapDescriptor(kErrorEmitted),
      emitClose: makeBitMapDescriptor(kEmitClose),
      autoDestroy: makeBitMapDescriptor(kAutoDestroy),
      // Has it been destroyed.
      destroyed: makeBitMapDescriptor(kDestroyed),
      // Indicates whether the stream has finished destroying.
      closed: makeBitMapDescriptor(kClosed),
      // True if close has been emitted or would have been emitted
      // depending on emitClose.
      closeEmitted: makeBitMapDescriptor(kCloseEmitted),
      multiAwaitDrain: makeBitMapDescriptor(kMultiAwaitDrain),
      // If true, a maybeReadMore has been scheduled.
      readingMore: makeBitMapDescriptor(kReadingMore),
      dataEmitted: makeBitMapDescriptor(kDataEmitted)
    });
    function ReadableState(options, stream3, isDuplex) {
      if (typeof isDuplex !== "boolean") isDuplex = stream3 instanceof require_duplex4();
      this.state = kEmitClose | kAutoDestroy | kConstructed | kSync;
      if (options && options.objectMode) this.state |= kObjectMode;
      if (isDuplex && options && options.readableObjectMode) this.state |= kObjectMode;
      this.highWaterMark = options ? getHighWaterMark(this, options, "readableHighWaterMark", isDuplex) : getDefaultHighWaterMark(false);
      this.buffer = new BufferList();
      this.length = 0;
      this.pipes = [];
      this.flowing = null;
      this[kPaused] = null;
      if (options && options.emitClose === false) this.state &= ~kEmitClose;
      if (options && options.autoDestroy === false) this.state &= ~kAutoDestroy;
      this.errored = null;
      this.defaultEncoding = options && options.defaultEncoding || "utf8";
      this.awaitDrainWriters = null;
      this.decoder = null;
      this.encoding = null;
      if (options && options.encoding) {
        this.decoder = new StringDecoder2(options.encoding);
        this.encoding = options.encoding;
      }
    }
    __name(ReadableState, "ReadableState");
    function Readable(options) {
      if (!(this instanceof Readable)) return new Readable(options);
      const isDuplex = this instanceof require_duplex4();
      this._readableState = new ReadableState(options, this, isDuplex);
      if (options) {
        if (typeof options.read === "function") this._read = options.read;
        if (typeof options.destroy === "function") this._destroy = options.destroy;
        if (typeof options.construct === "function") this._construct = options.construct;
        if (options.signal && !isDuplex) addAbortSignal(options.signal, this);
      }
      Stream2.call(this, options);
      destroyImpl.construct(this, () => {
        if (this._readableState.needReadable) {
          maybeReadMore(this, this._readableState);
        }
      });
    }
    __name(Readable, "Readable");
    Readable.prototype.destroy = destroyImpl.destroy;
    Readable.prototype._undestroy = destroyImpl.undestroy;
    Readable.prototype._destroy = function(err, cb) {
      cb(err);
    };
    Readable.prototype[EE.captureRejectionSymbol] = function(err) {
      this.destroy(err);
    };
    Readable.prototype[SymbolAsyncDispose] = function() {
      let error5;
      if (!this.destroyed) {
        error5 = this.readableEnded ? null : new AbortError();
        this.destroy(error5);
      }
      return new Promise2((resolve13, reject) => eos(this, (err) => err && err !== error5 ? reject(err) : resolve13(null)));
    };
    Readable.prototype.push = function(chunk, encoding) {
      return readableAddChunk(this, chunk, encoding, false);
    };
    Readable.prototype.unshift = function(chunk, encoding) {
      return readableAddChunk(this, chunk, encoding, true);
    };
    function readableAddChunk(stream3, chunk, encoding, addToFront) {
      debug3("readableAddChunk", chunk);
      const state2 = stream3._readableState;
      let err;
      if ((state2.state & kObjectMode) === 0) {
        if (typeof chunk === "string") {
          encoding = encoding || state2.defaultEncoding;
          if (state2.encoding !== encoding) {
            if (addToFront && state2.encoding) {
              chunk = Buffer2.from(chunk, encoding).toString(state2.encoding);
            } else {
              chunk = Buffer2.from(chunk, encoding);
              encoding = "";
            }
          }
        } else if (chunk instanceof Buffer2) {
          encoding = "";
        } else if (Stream2._isUint8Array(chunk)) {
          chunk = Stream2._uint8ArrayToBuffer(chunk);
          encoding = "";
        } else if (chunk != null) {
          err = new ERR_INVALID_ARG_TYPE("chunk", ["string", "Buffer", "Uint8Array"], chunk);
        }
      }
      if (err) {
        errorOrDestroy(stream3, err);
      } else if (chunk === null) {
        state2.state &= ~kReading;
        onEofChunk(stream3, state2);
      } else if ((state2.state & kObjectMode) !== 0 || chunk && chunk.length > 0) {
        if (addToFront) {
          if ((state2.state & kEndEmitted) !== 0) errorOrDestroy(stream3, new ERR_STREAM_UNSHIFT_AFTER_END_EVENT());
          else if (state2.destroyed || state2.errored) return false;
          else addChunk(stream3, state2, chunk, true);
        } else if (state2.ended) {
          errorOrDestroy(stream3, new ERR_STREAM_PUSH_AFTER_EOF());
        } else if (state2.destroyed || state2.errored) {
          return false;
        } else {
          state2.state &= ~kReading;
          if (state2.decoder && !encoding) {
            chunk = state2.decoder.write(chunk);
            if (state2.objectMode || chunk.length !== 0) addChunk(stream3, state2, chunk, false);
            else maybeReadMore(stream3, state2);
          } else {
            addChunk(stream3, state2, chunk, false);
          }
        }
      } else if (!addToFront) {
        state2.state &= ~kReading;
        maybeReadMore(stream3, state2);
      }
      return !state2.ended && (state2.length < state2.highWaterMark || state2.length === 0);
    }
    __name(readableAddChunk, "readableAddChunk");
    function addChunk(stream3, state2, chunk, addToFront) {
      if (state2.flowing && state2.length === 0 && !state2.sync && stream3.listenerCount("data") > 0) {
        if ((state2.state & kMultiAwaitDrain) !== 0) {
          state2.awaitDrainWriters.clear();
        } else {
          state2.awaitDrainWriters = null;
        }
        state2.dataEmitted = true;
        stream3.emit("data", chunk);
      } else {
        state2.length += state2.objectMode ? 1 : chunk.length;
        if (addToFront) state2.buffer.unshift(chunk);
        else state2.buffer.push(chunk);
        if ((state2.state & kNeedReadable) !== 0) emitReadable(stream3);
      }
      maybeReadMore(stream3, state2);
    }
    __name(addChunk, "addChunk");
    Readable.prototype.isPaused = function() {
      const state2 = this._readableState;
      return state2[kPaused] === true || state2.flowing === false;
    };
    Readable.prototype.setEncoding = function(enc) {
      const decoder = new StringDecoder2(enc);
      this._readableState.decoder = decoder;
      this._readableState.encoding = this._readableState.decoder.encoding;
      const buffer = this._readableState.buffer;
      let content = "";
      for (const data3 of buffer) {
        content += decoder.write(data3);
      }
      buffer.clear();
      if (content !== "") buffer.push(content);
      this._readableState.length = content.length;
      return this;
    };
    var MAX_HWM = 1073741824;
    function computeNewHighWaterMark(n3) {
      if (n3 > MAX_HWM) {
        throw new ERR_OUT_OF_RANGE("size", "<= 1GiB", n3);
      } else {
        n3--;
        n3 |= n3 >>> 1;
        n3 |= n3 >>> 2;
        n3 |= n3 >>> 4;
        n3 |= n3 >>> 8;
        n3 |= n3 >>> 16;
        n3++;
      }
      return n3;
    }
    __name(computeNewHighWaterMark, "computeNewHighWaterMark");
    function howMuchToRead(n3, state2) {
      if (n3 <= 0 || state2.length === 0 && state2.ended) return 0;
      if ((state2.state & kObjectMode) !== 0) return 1;
      if (NumberIsNaN(n3)) {
        if (state2.flowing && state2.length) return state2.buffer.first().length;
        return state2.length;
      }
      if (n3 <= state2.length) return n3;
      return state2.ended ? state2.length : 0;
    }
    __name(howMuchToRead, "howMuchToRead");
    Readable.prototype.read = function(n3) {
      debug3("read", n3);
      if (n3 === void 0) {
        n3 = NaN;
      } else if (!NumberIsInteger(n3)) {
        n3 = NumberParseInt(n3, 10);
      }
      const state2 = this._readableState;
      const nOrig = n3;
      if (n3 > state2.highWaterMark) state2.highWaterMark = computeNewHighWaterMark(n3);
      if (n3 !== 0) state2.state &= ~kEmittedReadable;
      if (n3 === 0 && state2.needReadable && ((state2.highWaterMark !== 0 ? state2.length >= state2.highWaterMark : state2.length > 0) || state2.ended)) {
        debug3("read: emitReadable", state2.length, state2.ended);
        if (state2.length === 0 && state2.ended) endReadable(this);
        else emitReadable(this);
        return null;
      }
      n3 = howMuchToRead(n3, state2);
      if (n3 === 0 && state2.ended) {
        if (state2.length === 0) endReadable(this);
        return null;
      }
      let doRead = (state2.state & kNeedReadable) !== 0;
      debug3("need readable", doRead);
      if (state2.length === 0 || state2.length - n3 < state2.highWaterMark) {
        doRead = true;
        debug3("length less than watermark", doRead);
      }
      if (state2.ended || state2.reading || state2.destroyed || state2.errored || !state2.constructed) {
        doRead = false;
        debug3("reading, ended or constructing", doRead);
      } else if (doRead) {
        debug3("do read");
        state2.state |= kReading | kSync;
        if (state2.length === 0) state2.state |= kNeedReadable;
        try {
          this._read(state2.highWaterMark);
        } catch (err) {
          errorOrDestroy(this, err);
        }
        state2.state &= ~kSync;
        if (!state2.reading) n3 = howMuchToRead(nOrig, state2);
      }
      let ret;
      if (n3 > 0) ret = fromList(n3, state2);
      else ret = null;
      if (ret === null) {
        state2.needReadable = state2.length <= state2.highWaterMark;
        n3 = 0;
      } else {
        state2.length -= n3;
        if (state2.multiAwaitDrain) {
          state2.awaitDrainWriters.clear();
        } else {
          state2.awaitDrainWriters = null;
        }
      }
      if (state2.length === 0) {
        if (!state2.ended) state2.needReadable = true;
        if (nOrig !== n3 && state2.ended) endReadable(this);
      }
      if (ret !== null && !state2.errorEmitted && !state2.closeEmitted) {
        state2.dataEmitted = true;
        this.emit("data", ret);
      }
      return ret;
    };
    function onEofChunk(stream3, state2) {
      debug3("onEofChunk");
      if (state2.ended) return;
      if (state2.decoder) {
        const chunk = state2.decoder.end();
        if (chunk && chunk.length) {
          state2.buffer.push(chunk);
          state2.length += state2.objectMode ? 1 : chunk.length;
        }
      }
      state2.ended = true;
      if (state2.sync) {
        emitReadable(stream3);
      } else {
        state2.needReadable = false;
        state2.emittedReadable = true;
        emitReadable_(stream3);
      }
    }
    __name(onEofChunk, "onEofChunk");
    function emitReadable(stream3) {
      const state2 = stream3._readableState;
      debug3("emitReadable", state2.needReadable, state2.emittedReadable);
      state2.needReadable = false;
      if (!state2.emittedReadable) {
        debug3("emitReadable", state2.flowing);
        state2.emittedReadable = true;
        process3.nextTick(emitReadable_, stream3);
      }
    }
    __name(emitReadable, "emitReadable");
    function emitReadable_(stream3) {
      const state2 = stream3._readableState;
      debug3("emitReadable_", state2.destroyed, state2.length, state2.ended);
      if (!state2.destroyed && !state2.errored && (state2.length || state2.ended)) {
        stream3.emit("readable");
        state2.emittedReadable = false;
      }
      state2.needReadable = !state2.flowing && !state2.ended && state2.length <= state2.highWaterMark;
      flow(stream3);
    }
    __name(emitReadable_, "emitReadable_");
    function maybeReadMore(stream3, state2) {
      if (!state2.readingMore && state2.constructed) {
        state2.readingMore = true;
        process3.nextTick(maybeReadMore_, stream3, state2);
      }
    }
    __name(maybeReadMore, "maybeReadMore");
    function maybeReadMore_(stream3, state2) {
      while (!state2.reading && !state2.ended && (state2.length < state2.highWaterMark || state2.flowing && state2.length === 0)) {
        const len = state2.length;
        debug3("maybeReadMore read 0");
        stream3.read(0);
        if (len === state2.length)
          break;
      }
      state2.readingMore = false;
    }
    __name(maybeReadMore_, "maybeReadMore_");
    Readable.prototype._read = function(n3) {
      throw new ERR_METHOD_NOT_IMPLEMENTED("_read()");
    };
    Readable.prototype.pipe = function(dest, pipeOpts) {
      const src = this;
      const state2 = this._readableState;
      if (state2.pipes.length === 1) {
        if (!state2.multiAwaitDrain) {
          state2.multiAwaitDrain = true;
          state2.awaitDrainWriters = new SafeSet(state2.awaitDrainWriters ? [state2.awaitDrainWriters] : []);
        }
      }
      state2.pipes.push(dest);
      debug3("pipe count=%d opts=%j", state2.pipes.length, pipeOpts);
      const doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process3.stdout && dest !== process3.stderr;
      const endFn = doEnd ? onend : unpipe;
      if (state2.endEmitted) process3.nextTick(endFn);
      else src.once("end", endFn);
      dest.on("unpipe", onunpipe);
      function onunpipe(readable, unpipeInfo) {
        debug3("onunpipe");
        if (readable === src) {
          if (unpipeInfo && unpipeInfo.hasUnpiped === false) {
            unpipeInfo.hasUnpiped = true;
            cleanup();
          }
        }
      }
      __name(onunpipe, "onunpipe");
      function onend() {
        debug3("onend");
        dest.end();
      }
      __name(onend, "onend");
      let ondrain;
      let cleanedUp = false;
      function cleanup() {
        debug3("cleanup");
        dest.removeListener("close", onclose);
        dest.removeListener("finish", onfinish);
        if (ondrain) {
          dest.removeListener("drain", ondrain);
        }
        dest.removeListener("error", onerror);
        dest.removeListener("unpipe", onunpipe);
        src.removeListener("end", onend);
        src.removeListener("end", unpipe);
        src.removeListener("data", ondata);
        cleanedUp = true;
        if (ondrain && state2.awaitDrainWriters && (!dest._writableState || dest._writableState.needDrain)) ondrain();
      }
      __name(cleanup, "cleanup");
      function pause() {
        if (!cleanedUp) {
          if (state2.pipes.length === 1 && state2.pipes[0] === dest) {
            debug3("false write response, pause", 0);
            state2.awaitDrainWriters = dest;
            state2.multiAwaitDrain = false;
          } else if (state2.pipes.length > 1 && state2.pipes.includes(dest)) {
            debug3("false write response, pause", state2.awaitDrainWriters.size);
            state2.awaitDrainWriters.add(dest);
          }
          src.pause();
        }
        if (!ondrain) {
          ondrain = pipeOnDrain(src, dest);
          dest.on("drain", ondrain);
        }
      }
      __name(pause, "pause");
      src.on("data", ondata);
      function ondata(chunk) {
        debug3("ondata");
        const ret = dest.write(chunk);
        debug3("dest.write", ret);
        if (ret === false) {
          pause();
        }
      }
      __name(ondata, "ondata");
      function onerror(er) {
        debug3("onerror", er);
        unpipe();
        dest.removeListener("error", onerror);
        if (dest.listenerCount("error") === 0) {
          const s3 = dest._writableState || dest._readableState;
          if (s3 && !s3.errorEmitted) {
            errorOrDestroy(dest, er);
          } else {
            dest.emit("error", er);
          }
        }
      }
      __name(onerror, "onerror");
      prependListener(dest, "error", onerror);
      function onclose() {
        dest.removeListener("finish", onfinish);
        unpipe();
      }
      __name(onclose, "onclose");
      dest.once("close", onclose);
      function onfinish() {
        debug3("onfinish");
        dest.removeListener("close", onclose);
        unpipe();
      }
      __name(onfinish, "onfinish");
      dest.once("finish", onfinish);
      function unpipe() {
        debug3("unpipe");
        src.unpipe(dest);
      }
      __name(unpipe, "unpipe");
      dest.emit("pipe", src);
      if (dest.writableNeedDrain === true) {
        pause();
      } else if (!state2.flowing) {
        debug3("pipe resume");
        src.resume();
      }
      return dest;
    };
    function pipeOnDrain(src, dest) {
      return /* @__PURE__ */ __name(function pipeOnDrainFunctionResult() {
        const state2 = src._readableState;
        if (state2.awaitDrainWriters === dest) {
          debug3("pipeOnDrain", 1);
          state2.awaitDrainWriters = null;
        } else if (state2.multiAwaitDrain) {
          debug3("pipeOnDrain", state2.awaitDrainWriters.size);
          state2.awaitDrainWriters.delete(dest);
        }
        if ((!state2.awaitDrainWriters || state2.awaitDrainWriters.size === 0) && src.listenerCount("data")) {
          src.resume();
        }
      }, "pipeOnDrainFunctionResult");
    }
    __name(pipeOnDrain, "pipeOnDrain");
    Readable.prototype.unpipe = function(dest) {
      const state2 = this._readableState;
      const unpipeInfo = {
        hasUnpiped: false
      };
      if (state2.pipes.length === 0) return this;
      if (!dest) {
        const dests = state2.pipes;
        state2.pipes = [];
        this.pause();
        for (let i3 = 0; i3 < dests.length; i3++)
          dests[i3].emit("unpipe", this, {
            hasUnpiped: false
          });
        return this;
      }
      const index = ArrayPrototypeIndexOf(state2.pipes, dest);
      if (index === -1) return this;
      state2.pipes.splice(index, 1);
      if (state2.pipes.length === 0) this.pause();
      dest.emit("unpipe", this, unpipeInfo);
      return this;
    };
    Readable.prototype.on = function(ev, fn) {
      const res = Stream2.prototype.on.call(this, ev, fn);
      const state2 = this._readableState;
      if (ev === "data") {
        state2.readableListening = this.listenerCount("readable") > 0;
        if (state2.flowing !== false) this.resume();
      } else if (ev === "readable") {
        if (!state2.endEmitted && !state2.readableListening) {
          state2.readableListening = state2.needReadable = true;
          state2.flowing = false;
          state2.emittedReadable = false;
          debug3("on readable", state2.length, state2.reading);
          if (state2.length) {
            emitReadable(this);
          } else if (!state2.reading) {
            process3.nextTick(nReadingNextTick, this);
          }
        }
      }
      return res;
    };
    Readable.prototype.addListener = Readable.prototype.on;
    Readable.prototype.removeListener = function(ev, fn) {
      const res = Stream2.prototype.removeListener.call(this, ev, fn);
      if (ev === "readable") {
        process3.nextTick(updateReadableListening, this);
      }
      return res;
    };
    Readable.prototype.off = Readable.prototype.removeListener;
    Readable.prototype.removeAllListeners = function(ev) {
      const res = Stream2.prototype.removeAllListeners.apply(this, arguments);
      if (ev === "readable" || ev === void 0) {
        process3.nextTick(updateReadableListening, this);
      }
      return res;
    };
    function updateReadableListening(self2) {
      const state2 = self2._readableState;
      state2.readableListening = self2.listenerCount("readable") > 0;
      if (state2.resumeScheduled && state2[kPaused] === false) {
        state2.flowing = true;
      } else if (self2.listenerCount("data") > 0) {
        self2.resume();
      } else if (!state2.readableListening) {
        state2.flowing = null;
      }
    }
    __name(updateReadableListening, "updateReadableListening");
    function nReadingNextTick(self2) {
      debug3("readable nexttick read 0");
      self2.read(0);
    }
    __name(nReadingNextTick, "nReadingNextTick");
    Readable.prototype.resume = function() {
      const state2 = this._readableState;
      if (!state2.flowing) {
        debug3("resume");
        state2.flowing = !state2.readableListening;
        resume(this, state2);
      }
      state2[kPaused] = false;
      return this;
    };
    function resume(stream3, state2) {
      if (!state2.resumeScheduled) {
        state2.resumeScheduled = true;
        process3.nextTick(resume_, stream3, state2);
      }
    }
    __name(resume, "resume");
    function resume_(stream3, state2) {
      debug3("resume", state2.reading);
      if (!state2.reading) {
        stream3.read(0);
      }
      state2.resumeScheduled = false;
      stream3.emit("resume");
      flow(stream3);
      if (state2.flowing && !state2.reading) stream3.read(0);
    }
    __name(resume_, "resume_");
    Readable.prototype.pause = function() {
      debug3("call pause flowing=%j", this._readableState.flowing);
      if (this._readableState.flowing !== false) {
        debug3("pause");
        this._readableState.flowing = false;
        this.emit("pause");
      }
      this._readableState[kPaused] = true;
      return this;
    };
    function flow(stream3) {
      const state2 = stream3._readableState;
      debug3("flow", state2.flowing);
      while (state2.flowing && stream3.read() !== null) ;
    }
    __name(flow, "flow");
    Readable.prototype.wrap = function(stream3) {
      let paused = false;
      stream3.on("data", (chunk) => {
        if (!this.push(chunk) && stream3.pause) {
          paused = true;
          stream3.pause();
        }
      });
      stream3.on("end", () => {
        this.push(null);
      });
      stream3.on("error", (err) => {
        errorOrDestroy(this, err);
      });
      stream3.on("close", () => {
        this.destroy();
      });
      stream3.on("destroy", () => {
        this.destroy();
      });
      this._read = () => {
        if (paused && stream3.resume) {
          paused = false;
          stream3.resume();
        }
      };
      const streamKeys = ObjectKeys(stream3);
      for (let j3 = 1; j3 < streamKeys.length; j3++) {
        const i3 = streamKeys[j3];
        if (this[i3] === void 0 && typeof stream3[i3] === "function") {
          this[i3] = stream3[i3].bind(stream3);
        }
      }
      return this;
    };
    Readable.prototype[SymbolAsyncIterator] = function() {
      return streamToAsyncIterator(this);
    };
    Readable.prototype.iterator = function(options) {
      if (options !== void 0) {
        validateObject(options, "options");
      }
      return streamToAsyncIterator(this, options);
    };
    function streamToAsyncIterator(stream3, options) {
      if (typeof stream3.read !== "function") {
        stream3 = Readable.wrap(stream3, {
          objectMode: true
        });
      }
      const iter = createAsyncIterator(stream3, options);
      iter.stream = stream3;
      return iter;
    }
    __name(streamToAsyncIterator, "streamToAsyncIterator");
    async function* createAsyncIterator(stream3, options) {
      let callback = nop;
      function next(resolve13) {
        if (this === stream3) {
          callback();
          callback = nop;
        } else {
          callback = resolve13;
        }
      }
      __name(next, "next");
      stream3.on("readable", next);
      let error5;
      const cleanup = eos(
        stream3,
        {
          writable: false
        },
        (err) => {
          error5 = err ? aggregateTwoErrors(error5, err) : null;
          callback();
          callback = nop;
        }
      );
      try {
        while (true) {
          const chunk = stream3.destroyed ? null : stream3.read();
          if (chunk !== null) {
            yield chunk;
          } else if (error5) {
            throw error5;
          } else if (error5 === null) {
            return;
          } else {
            await new Promise2(next);
          }
        }
      } catch (err) {
        error5 = aggregateTwoErrors(error5, err);
        throw error5;
      } finally {
        if ((error5 || (options === null || options === void 0 ? void 0 : options.destroyOnReturn) !== false) && (error5 === void 0 || stream3._readableState.autoDestroy)) {
          destroyImpl.destroyer(stream3, null);
        } else {
          stream3.off("readable", next);
          cleanup();
        }
      }
    }
    __name(createAsyncIterator, "createAsyncIterator");
    ObjectDefineProperties(Readable.prototype, {
      readable: {
        __proto__: null,
        get() {
          const r3 = this._readableState;
          return !!r3 && r3.readable !== false && !r3.destroyed && !r3.errorEmitted && !r3.endEmitted;
        },
        set(val) {
          if (this._readableState) {
            this._readableState.readable = !!val;
          }
        }
      },
      readableDidRead: {
        __proto__: null,
        enumerable: false,
        get: /* @__PURE__ */ __name(function() {
          return this._readableState.dataEmitted;
        }, "get")
      },
      readableAborted: {
        __proto__: null,
        enumerable: false,
        get: /* @__PURE__ */ __name(function() {
          return !!(this._readableState.readable !== false && (this._readableState.destroyed || this._readableState.errored) && !this._readableState.endEmitted);
        }, "get")
      },
      readableHighWaterMark: {
        __proto__: null,
        enumerable: false,
        get: /* @__PURE__ */ __name(function() {
          return this._readableState.highWaterMark;
        }, "get")
      },
      readableBuffer: {
        __proto__: null,
        enumerable: false,
        get: /* @__PURE__ */ __name(function() {
          return this._readableState && this._readableState.buffer;
        }, "get")
      },
      readableFlowing: {
        __proto__: null,
        enumerable: false,
        get: /* @__PURE__ */ __name(function() {
          return this._readableState.flowing;
        }, "get"),
        set: /* @__PURE__ */ __name(function(state2) {
          if (this._readableState) {
            this._readableState.flowing = state2;
          }
        }, "set")
      },
      readableLength: {
        __proto__: null,
        enumerable: false,
        get() {
          return this._readableState.length;
        }
      },
      readableObjectMode: {
        __proto__: null,
        enumerable: false,
        get() {
          return this._readableState ? this._readableState.objectMode : false;
        }
      },
      readableEncoding: {
        __proto__: null,
        enumerable: false,
        get() {
          return this._readableState ? this._readableState.encoding : null;
        }
      },
      errored: {
        __proto__: null,
        enumerable: false,
        get() {
          return this._readableState ? this._readableState.errored : null;
        }
      },
      closed: {
        __proto__: null,
        get() {
          return this._readableState ? this._readableState.closed : false;
        }
      },
      destroyed: {
        __proto__: null,
        enumerable: false,
        get() {
          return this._readableState ? this._readableState.destroyed : false;
        },
        set(value) {
          if (!this._readableState) {
            return;
          }
          this._readableState.destroyed = value;
        }
      },
      readableEnded: {
        __proto__: null,
        enumerable: false,
        get() {
          return this._readableState ? this._readableState.endEmitted : false;
        }
      }
    });
    ObjectDefineProperties(ReadableState.prototype, {
      // Legacy getter for `pipesCount`.
      pipesCount: {
        __proto__: null,
        get() {
          return this.pipes.length;
        }
      },
      // Legacy property for `paused`.
      paused: {
        __proto__: null,
        get() {
          return this[kPaused] !== false;
        },
        set(value) {
          this[kPaused] = !!value;
        }
      }
    });
    Readable._fromList = fromList;
    function fromList(n3, state2) {
      if (state2.length === 0) return null;
      let ret;
      if (state2.objectMode) ret = state2.buffer.shift();
      else if (!n3 || n3 >= state2.length) {
        if (state2.decoder) ret = state2.buffer.join("");
        else if (state2.buffer.length === 1) ret = state2.buffer.first();
        else ret = state2.buffer.concat(state2.length);
        state2.buffer.clear();
      } else {
        ret = state2.buffer.consume(n3, state2.decoder);
      }
      return ret;
    }
    __name(fromList, "fromList");
    function endReadable(stream3) {
      const state2 = stream3._readableState;
      debug3("endReadable", state2.endEmitted);
      if (!state2.endEmitted) {
        state2.ended = true;
        process3.nextTick(endReadableNT, state2, stream3);
      }
    }
    __name(endReadable, "endReadable");
    function endReadableNT(state2, stream3) {
      debug3("endReadableNT", state2.endEmitted, state2.length);
      if (!state2.errored && !state2.closeEmitted && !state2.endEmitted && state2.length === 0) {
        state2.endEmitted = true;
        stream3.emit("end");
        if (stream3.writable && stream3.allowHalfOpen === false) {
          process3.nextTick(endWritableNT, stream3);
        } else if (state2.autoDestroy) {
          const wState = stream3._writableState;
          const autoDestroy = !wState || wState.autoDestroy && // We don't expect the writable to ever 'finish'
          // if writable is explicitly set to false.
          (wState.finished || wState.writable === false);
          if (autoDestroy) {
            stream3.destroy();
          }
        }
      }
    }
    __name(endReadableNT, "endReadableNT");
    function endWritableNT(stream3) {
      const writable = stream3.writable && !stream3.writableEnded && !stream3.destroyed;
      if (writable) {
        stream3.end();
      }
    }
    __name(endWritableNT, "endWritableNT");
    Readable.from = function(iterable, opts) {
      return from(Readable, iterable, opts);
    };
    var webStreamsAdapters;
    function lazyWebStreams() {
      if (webStreamsAdapters === void 0) webStreamsAdapters = {};
      return webStreamsAdapters;
    }
    __name(lazyWebStreams, "lazyWebStreams");
    Readable.fromWeb = function(readableStream, options) {
      return lazyWebStreams().newStreamReadableFromReadableStream(readableStream, options);
    };
    Readable.toWeb = function(streamReadable, options) {
      return lazyWebStreams().newReadableStreamFromStreamReadable(streamReadable, options);
    };
    Readable.wrap = function(src, options) {
      var _ref, _src$readableObjectMo;
      return new Readable({
        objectMode: (_ref = (_src$readableObjectMo = src.readableObjectMode) !== null && _src$readableObjectMo !== void 0 ? _src$readableObjectMo : src.objectMode) !== null && _ref !== void 0 ? _ref : true,
        ...options,
        destroy(err, callback) {
          destroyImpl.destroyer(src, err);
          callback(err);
        }
      }).wrap(src);
    };
  }
});

// ../../node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/writable.js
var require_writable4 = __commonJS({
  "../../node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/writable.js"(exports2, module2) {
    "use strict";
    var process3 = require_process();
    var {
      ArrayPrototypeSlice,
      Error: Error2,
      FunctionPrototypeSymbolHasInstance,
      ObjectDefineProperty,
      ObjectDefineProperties,
      ObjectSetPrototypeOf,
      StringPrototypeToLowerCase,
      Symbol: Symbol2,
      SymbolHasInstance
    } = require_primordials4();
    module2.exports = Writable3;
    Writable3.WritableState = WritableState;
    var { EventEmitter: EE } = require("events");
    var Stream2 = require_legacy4().Stream;
    var { Buffer: Buffer2 } = require("buffer");
    var destroyImpl = require_destroy5();
    var { addAbortSignal } = require_add_abort_signal4();
    var { getHighWaterMark, getDefaultHighWaterMark } = require_state4();
    var {
      ERR_INVALID_ARG_TYPE,
      ERR_METHOD_NOT_IMPLEMENTED,
      ERR_MULTIPLE_CALLBACK,
      ERR_STREAM_CANNOT_PIPE,
      ERR_STREAM_DESTROYED,
      ERR_STREAM_ALREADY_FINISHED,
      ERR_STREAM_NULL_VALUES,
      ERR_STREAM_WRITE_AFTER_END,
      ERR_UNKNOWN_ENCODING
    } = require_errors4().codes;
    var { errorOrDestroy } = destroyImpl;
    ObjectSetPrototypeOf(Writable3.prototype, Stream2.prototype);
    ObjectSetPrototypeOf(Writable3, Stream2);
    function nop() {
    }
    __name(nop, "nop");
    var kOnFinished = Symbol2("kOnFinished");
    function WritableState(options, stream3, isDuplex) {
      if (typeof isDuplex !== "boolean") isDuplex = stream3 instanceof require_duplex4();
      this.objectMode = !!(options && options.objectMode);
      if (isDuplex) this.objectMode = this.objectMode || !!(options && options.writableObjectMode);
      this.highWaterMark = options ? getHighWaterMark(this, options, "writableHighWaterMark", isDuplex) : getDefaultHighWaterMark(false);
      this.finalCalled = false;
      this.needDrain = false;
      this.ending = false;
      this.ended = false;
      this.finished = false;
      this.destroyed = false;
      const noDecode = !!(options && options.decodeStrings === false);
      this.decodeStrings = !noDecode;
      this.defaultEncoding = options && options.defaultEncoding || "utf8";
      this.length = 0;
      this.writing = false;
      this.corked = 0;
      this.sync = true;
      this.bufferProcessing = false;
      this.onwrite = onwrite.bind(void 0, stream3);
      this.writecb = null;
      this.writelen = 0;
      this.afterWriteTickInfo = null;
      resetBuffer(this);
      this.pendingcb = 0;
      this.constructed = true;
      this.prefinished = false;
      this.errorEmitted = false;
      this.emitClose = !options || options.emitClose !== false;
      this.autoDestroy = !options || options.autoDestroy !== false;
      this.errored = null;
      this.closed = false;
      this.closeEmitted = false;
      this[kOnFinished] = [];
    }
    __name(WritableState, "WritableState");
    function resetBuffer(state2) {
      state2.buffered = [];
      state2.bufferedIndex = 0;
      state2.allBuffers = true;
      state2.allNoop = true;
    }
    __name(resetBuffer, "resetBuffer");
    WritableState.prototype.getBuffer = /* @__PURE__ */ __name(function getBuffer() {
      return ArrayPrototypeSlice(this.buffered, this.bufferedIndex);
    }, "getBuffer");
    ObjectDefineProperty(WritableState.prototype, "bufferedRequestCount", {
      __proto__: null,
      get() {
        return this.buffered.length - this.bufferedIndex;
      }
    });
    function Writable3(options) {
      const isDuplex = this instanceof require_duplex4();
      if (!isDuplex && !FunctionPrototypeSymbolHasInstance(Writable3, this)) return new Writable3(options);
      this._writableState = new WritableState(options, this, isDuplex);
      if (options) {
        if (typeof options.write === "function") this._write = options.write;
        if (typeof options.writev === "function") this._writev = options.writev;
        if (typeof options.destroy === "function") this._destroy = options.destroy;
        if (typeof options.final === "function") this._final = options.final;
        if (typeof options.construct === "function") this._construct = options.construct;
        if (options.signal) addAbortSignal(options.signal, this);
      }
      Stream2.call(this, options);
      destroyImpl.construct(this, () => {
        const state2 = this._writableState;
        if (!state2.writing) {
          clearBuffer(this, state2);
        }
        finishMaybe(this, state2);
      });
    }
    __name(Writable3, "Writable");
    ObjectDefineProperty(Writable3, SymbolHasInstance, {
      __proto__: null,
      value: /* @__PURE__ */ __name(function(object) {
        if (FunctionPrototypeSymbolHasInstance(this, object)) return true;
        if (this !== Writable3) return false;
        return object && object._writableState instanceof WritableState;
      }, "value")
    });
    Writable3.prototype.pipe = function() {
      errorOrDestroy(this, new ERR_STREAM_CANNOT_PIPE());
    };
    function _write(stream3, chunk, encoding, cb) {
      const state2 = stream3._writableState;
      if (typeof encoding === "function") {
        cb = encoding;
        encoding = state2.defaultEncoding;
      } else {
        if (!encoding) encoding = state2.defaultEncoding;
        else if (encoding !== "buffer" && !Buffer2.isEncoding(encoding)) throw new ERR_UNKNOWN_ENCODING(encoding);
        if (typeof cb !== "function") cb = nop;
      }
      if (chunk === null) {
        throw new ERR_STREAM_NULL_VALUES();
      } else if (!state2.objectMode) {
        if (typeof chunk === "string") {
          if (state2.decodeStrings !== false) {
            chunk = Buffer2.from(chunk, encoding);
            encoding = "buffer";
          }
        } else if (chunk instanceof Buffer2) {
          encoding = "buffer";
        } else if (Stream2._isUint8Array(chunk)) {
          chunk = Stream2._uint8ArrayToBuffer(chunk);
          encoding = "buffer";
        } else {
          throw new ERR_INVALID_ARG_TYPE("chunk", ["string", "Buffer", "Uint8Array"], chunk);
        }
      }
      let err;
      if (state2.ending) {
        err = new ERR_STREAM_WRITE_AFTER_END();
      } else if (state2.destroyed) {
        err = new ERR_STREAM_DESTROYED("write");
      }
      if (err) {
        process3.nextTick(cb, err);
        errorOrDestroy(stream3, err, true);
        return err;
      }
      state2.pendingcb++;
      return writeOrBuffer(stream3, state2, chunk, encoding, cb);
    }
    __name(_write, "_write");
    Writable3.prototype.write = function(chunk, encoding, cb) {
      return _write(this, chunk, encoding, cb) === true;
    };
    Writable3.prototype.cork = function() {
      this._writableState.corked++;
    };
    Writable3.prototype.uncork = function() {
      const state2 = this._writableState;
      if (state2.corked) {
        state2.corked--;
        if (!state2.writing) clearBuffer(this, state2);
      }
    };
    Writable3.prototype.setDefaultEncoding = /* @__PURE__ */ __name(function setDefaultEncoding(encoding) {
      if (typeof encoding === "string") encoding = StringPrototypeToLowerCase(encoding);
      if (!Buffer2.isEncoding(encoding)) throw new ERR_UNKNOWN_ENCODING(encoding);
      this._writableState.defaultEncoding = encoding;
      return this;
    }, "setDefaultEncoding");
    function writeOrBuffer(stream3, state2, chunk, encoding, callback) {
      const len = state2.objectMode ? 1 : chunk.length;
      state2.length += len;
      const ret = state2.length < state2.highWaterMark;
      if (!ret) state2.needDrain = true;
      if (state2.writing || state2.corked || state2.errored || !state2.constructed) {
        state2.buffered.push({
          chunk,
          encoding,
          callback
        });
        if (state2.allBuffers && encoding !== "buffer") {
          state2.allBuffers = false;
        }
        if (state2.allNoop && callback !== nop) {
          state2.allNoop = false;
        }
      } else {
        state2.writelen = len;
        state2.writecb = callback;
        state2.writing = true;
        state2.sync = true;
        stream3._write(chunk, encoding, state2.onwrite);
        state2.sync = false;
      }
      return ret && !state2.errored && !state2.destroyed;
    }
    __name(writeOrBuffer, "writeOrBuffer");
    function doWrite(stream3, state2, writev, len, chunk, encoding, cb) {
      state2.writelen = len;
      state2.writecb = cb;
      state2.writing = true;
      state2.sync = true;
      if (state2.destroyed) state2.onwrite(new ERR_STREAM_DESTROYED("write"));
      else if (writev) stream3._writev(chunk, state2.onwrite);
      else stream3._write(chunk, encoding, state2.onwrite);
      state2.sync = false;
    }
    __name(doWrite, "doWrite");
    function onwriteError(stream3, state2, er, cb) {
      --state2.pendingcb;
      cb(er);
      errorBuffer(state2);
      errorOrDestroy(stream3, er);
    }
    __name(onwriteError, "onwriteError");
    function onwrite(stream3, er) {
      const state2 = stream3._writableState;
      const sync2 = state2.sync;
      const cb = state2.writecb;
      if (typeof cb !== "function") {
        errorOrDestroy(stream3, new ERR_MULTIPLE_CALLBACK());
        return;
      }
      state2.writing = false;
      state2.writecb = null;
      state2.length -= state2.writelen;
      state2.writelen = 0;
      if (er) {
        er.stack;
        if (!state2.errored) {
          state2.errored = er;
        }
        if (stream3._readableState && !stream3._readableState.errored) {
          stream3._readableState.errored = er;
        }
        if (sync2) {
          process3.nextTick(onwriteError, stream3, state2, er, cb);
        } else {
          onwriteError(stream3, state2, er, cb);
        }
      } else {
        if (state2.buffered.length > state2.bufferedIndex) {
          clearBuffer(stream3, state2);
        }
        if (sync2) {
          if (state2.afterWriteTickInfo !== null && state2.afterWriteTickInfo.cb === cb) {
            state2.afterWriteTickInfo.count++;
          } else {
            state2.afterWriteTickInfo = {
              count: 1,
              cb,
              stream: stream3,
              state: state2
            };
            process3.nextTick(afterWriteTick, state2.afterWriteTickInfo);
          }
        } else {
          afterWrite(stream3, state2, 1, cb);
        }
      }
    }
    __name(onwrite, "onwrite");
    function afterWriteTick({ stream: stream3, state: state2, count, cb }) {
      state2.afterWriteTickInfo = null;
      return afterWrite(stream3, state2, count, cb);
    }
    __name(afterWriteTick, "afterWriteTick");
    function afterWrite(stream3, state2, count, cb) {
      const needDrain = !state2.ending && !stream3.destroyed && state2.length === 0 && state2.needDrain;
      if (needDrain) {
        state2.needDrain = false;
        stream3.emit("drain");
      }
      while (count-- > 0) {
        state2.pendingcb--;
        cb();
      }
      if (state2.destroyed) {
        errorBuffer(state2);
      }
      finishMaybe(stream3, state2);
    }
    __name(afterWrite, "afterWrite");
    function errorBuffer(state2) {
      if (state2.writing) {
        return;
      }
      for (let n3 = state2.bufferedIndex; n3 < state2.buffered.length; ++n3) {
        var _state$errored;
        const { chunk, callback } = state2.buffered[n3];
        const len = state2.objectMode ? 1 : chunk.length;
        state2.length -= len;
        callback(
          (_state$errored = state2.errored) !== null && _state$errored !== void 0 ? _state$errored : new ERR_STREAM_DESTROYED("write")
        );
      }
      const onfinishCallbacks = state2[kOnFinished].splice(0);
      for (let i3 = 0; i3 < onfinishCallbacks.length; i3++) {
        var _state$errored2;
        onfinishCallbacks[i3](
          (_state$errored2 = state2.errored) !== null && _state$errored2 !== void 0 ? _state$errored2 : new ERR_STREAM_DESTROYED("end")
        );
      }
      resetBuffer(state2);
    }
    __name(errorBuffer, "errorBuffer");
    function clearBuffer(stream3, state2) {
      if (state2.corked || state2.bufferProcessing || state2.destroyed || !state2.constructed) {
        return;
      }
      const { buffered, bufferedIndex, objectMode } = state2;
      const bufferedLength = buffered.length - bufferedIndex;
      if (!bufferedLength) {
        return;
      }
      let i3 = bufferedIndex;
      state2.bufferProcessing = true;
      if (bufferedLength > 1 && stream3._writev) {
        state2.pendingcb -= bufferedLength - 1;
        const callback = state2.allNoop ? nop : (err) => {
          for (let n3 = i3; n3 < buffered.length; ++n3) {
            buffered[n3].callback(err);
          }
        };
        const chunks2 = state2.allNoop && i3 === 0 ? buffered : ArrayPrototypeSlice(buffered, i3);
        chunks2.allBuffers = state2.allBuffers;
        doWrite(stream3, state2, true, state2.length, chunks2, "", callback);
        resetBuffer(state2);
      } else {
        do {
          const { chunk, encoding, callback } = buffered[i3];
          buffered[i3++] = null;
          const len = objectMode ? 1 : chunk.length;
          doWrite(stream3, state2, false, len, chunk, encoding, callback);
        } while (i3 < buffered.length && !state2.writing);
        if (i3 === buffered.length) {
          resetBuffer(state2);
        } else if (i3 > 256) {
          buffered.splice(0, i3);
          state2.bufferedIndex = 0;
        } else {
          state2.bufferedIndex = i3;
        }
      }
      state2.bufferProcessing = false;
    }
    __name(clearBuffer, "clearBuffer");
    Writable3.prototype._write = function(chunk, encoding, cb) {
      if (this._writev) {
        this._writev(
          [
            {
              chunk,
              encoding
            }
          ],
          cb
        );
      } else {
        throw new ERR_METHOD_NOT_IMPLEMENTED("_write()");
      }
    };
    Writable3.prototype._writev = null;
    Writable3.prototype.end = function(chunk, encoding, cb) {
      const state2 = this._writableState;
      if (typeof chunk === "function") {
        cb = chunk;
        chunk = null;
        encoding = null;
      } else if (typeof encoding === "function") {
        cb = encoding;
        encoding = null;
      }
      let err;
      if (chunk !== null && chunk !== void 0) {
        const ret = _write(this, chunk, encoding);
        if (ret instanceof Error2) {
          err = ret;
        }
      }
      if (state2.corked) {
        state2.corked = 1;
        this.uncork();
      }
      if (err) {
      } else if (!state2.errored && !state2.ending) {
        state2.ending = true;
        finishMaybe(this, state2, true);
        state2.ended = true;
      } else if (state2.finished) {
        err = new ERR_STREAM_ALREADY_FINISHED("end");
      } else if (state2.destroyed) {
        err = new ERR_STREAM_DESTROYED("end");
      }
      if (typeof cb === "function") {
        if (err || state2.finished) {
          process3.nextTick(cb, err);
        } else {
          state2[kOnFinished].push(cb);
        }
      }
      return this;
    };
    function needFinish(state2) {
      return state2.ending && !state2.destroyed && state2.constructed && state2.length === 0 && !state2.errored && state2.buffered.length === 0 && !state2.finished && !state2.writing && !state2.errorEmitted && !state2.closeEmitted;
    }
    __name(needFinish, "needFinish");
    function callFinal(stream3, state2) {
      let called = false;
      function onFinish(err) {
        if (called) {
          errorOrDestroy(stream3, err !== null && err !== void 0 ? err : ERR_MULTIPLE_CALLBACK());
          return;
        }
        called = true;
        state2.pendingcb--;
        if (err) {
          const onfinishCallbacks = state2[kOnFinished].splice(0);
          for (let i3 = 0; i3 < onfinishCallbacks.length; i3++) {
            onfinishCallbacks[i3](err);
          }
          errorOrDestroy(stream3, err, state2.sync);
        } else if (needFinish(state2)) {
          state2.prefinished = true;
          stream3.emit("prefinish");
          state2.pendingcb++;
          process3.nextTick(finish, stream3, state2);
        }
      }
      __name(onFinish, "onFinish");
      state2.sync = true;
      state2.pendingcb++;
      try {
        stream3._final(onFinish);
      } catch (err) {
        onFinish(err);
      }
      state2.sync = false;
    }
    __name(callFinal, "callFinal");
    function prefinish(stream3, state2) {
      if (!state2.prefinished && !state2.finalCalled) {
        if (typeof stream3._final === "function" && !state2.destroyed) {
          state2.finalCalled = true;
          callFinal(stream3, state2);
        } else {
          state2.prefinished = true;
          stream3.emit("prefinish");
        }
      }
    }
    __name(prefinish, "prefinish");
    function finishMaybe(stream3, state2, sync2) {
      if (needFinish(state2)) {
        prefinish(stream3, state2);
        if (state2.pendingcb === 0) {
          if (sync2) {
            state2.pendingcb++;
            process3.nextTick(
              (stream4, state3) => {
                if (needFinish(state3)) {
                  finish(stream4, state3);
                } else {
                  state3.pendingcb--;
                }
              },
              stream3,
              state2
            );
          } else if (needFinish(state2)) {
            state2.pendingcb++;
            finish(stream3, state2);
          }
        }
      }
    }
    __name(finishMaybe, "finishMaybe");
    function finish(stream3, state2) {
      state2.pendingcb--;
      state2.finished = true;
      const onfinishCallbacks = state2[kOnFinished].splice(0);
      for (let i3 = 0; i3 < onfinishCallbacks.length; i3++) {
        onfinishCallbacks[i3]();
      }
      stream3.emit("finish");
      if (state2.autoDestroy) {
        const rState = stream3._readableState;
        const autoDestroy = !rState || rState.autoDestroy && // We don't expect the readable to ever 'end'
        // if readable is explicitly set to false.
        (rState.endEmitted || rState.readable === false);
        if (autoDestroy) {
          stream3.destroy();
        }
      }
    }
    __name(finish, "finish");
    ObjectDefineProperties(Writable3.prototype, {
      closed: {
        __proto__: null,
        get() {
          return this._writableState ? this._writableState.closed : false;
        }
      },
      destroyed: {
        __proto__: null,
        get() {
          return this._writableState ? this._writableState.destroyed : false;
        },
        set(value) {
          if (this._writableState) {
            this._writableState.destroyed = value;
          }
        }
      },
      writable: {
        __proto__: null,
        get() {
          const w3 = this._writableState;
          return !!w3 && w3.writable !== false && !w3.destroyed && !w3.errored && !w3.ending && !w3.ended;
        },
        set(val) {
          if (this._writableState) {
            this._writableState.writable = !!val;
          }
        }
      },
      writableFinished: {
        __proto__: null,
        get() {
          return this._writableState ? this._writableState.finished : false;
        }
      },
      writableObjectMode: {
        __proto__: null,
        get() {
          return this._writableState ? this._writableState.objectMode : false;
        }
      },
      writableBuffer: {
        __proto__: null,
        get() {
          return this._writableState && this._writableState.getBuffer();
        }
      },
      writableEnded: {
        __proto__: null,
        get() {
          return this._writableState ? this._writableState.ending : false;
        }
      },
      writableNeedDrain: {
        __proto__: null,
        get() {
          const wState = this._writableState;
          if (!wState) return false;
          return !wState.destroyed && !wState.ending && wState.needDrain;
        }
      },
      writableHighWaterMark: {
        __proto__: null,
        get() {
          return this._writableState && this._writableState.highWaterMark;
        }
      },
      writableCorked: {
        __proto__: null,
        get() {
          return this._writableState ? this._writableState.corked : 0;
        }
      },
      writableLength: {
        __proto__: null,
        get() {
          return this._writableState && this._writableState.length;
        }
      },
      errored: {
        __proto__: null,
        enumerable: false,
        get() {
          return this._writableState ? this._writableState.errored : null;
        }
      },
      writableAborted: {
        __proto__: null,
        enumerable: false,
        get: /* @__PURE__ */ __name(function() {
          return !!(this._writableState.writable !== false && (this._writableState.destroyed || this._writableState.errored) && !this._writableState.finished);
        }, "get")
      }
    });
    var destroy = destroyImpl.destroy;
    Writable3.prototype.destroy = function(err, cb) {
      const state2 = this._writableState;
      if (!state2.destroyed && (state2.bufferedIndex < state2.buffered.length || state2[kOnFinished].length)) {
        process3.nextTick(errorBuffer, state2);
      }
      destroy.call(this, err, cb);
      return this;
    };
    Writable3.prototype._undestroy = destroyImpl.undestroy;
    Writable3.prototype._destroy = function(err, cb) {
      cb(err);
    };
    Writable3.prototype[EE.captureRejectionSymbol] = function(err) {
      this.destroy(err);
    };
    var webStreamsAdapters;
    function lazyWebStreams() {
      if (webStreamsAdapters === void 0) webStreamsAdapters = {};
      return webStreamsAdapters;
    }
    __name(lazyWebStreams, "lazyWebStreams");
    Writable3.fromWeb = function(writableStream, options) {
      return lazyWebStreams().newStreamWritableFromWritableStream(writableStream, options);
    };
    Writable3.toWeb = function(streamWritable) {
      return lazyWebStreams().newWritableStreamFromStreamWritable(streamWritable);
    };
  }
});

// ../../node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/duplexify.js
var require_duplexify4 = __commonJS({
  "../../node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/duplexify.js"(exports2, module2) {
    var process3 = require_process();
    var bufferModule = require("buffer");
    var {
      isReadable: isReadable2,
      isWritable: isWritable2,
      isIterable,
      isNodeStream,
      isReadableNodeStream,
      isWritableNodeStream,
      isDuplexNodeStream,
      isReadableStream: isReadableStream2,
      isWritableStream
    } = require_utils5();
    var eos = require_end_of_stream4();
    var {
      AbortError,
      codes: { ERR_INVALID_ARG_TYPE, ERR_INVALID_RETURN_VALUE }
    } = require_errors4();
    var { destroyer } = require_destroy5();
    var Duplex = require_duplex4();
    var Readable = require_readable5();
    var Writable3 = require_writable4();
    var { createDeferredPromise } = require_util7();
    var from = require_from4();
    var Blob2 = globalThis.Blob || bufferModule.Blob;
    var isBlob2 = typeof Blob2 !== "undefined" ? /* @__PURE__ */ __name(function isBlob3(b3) {
      return b3 instanceof Blob2;
    }, "isBlob") : /* @__PURE__ */ __name(function isBlob3(b3) {
      return false;
    }, "isBlob");
    var AbortController2 = globalThis.AbortController || require_abort_controller().AbortController;
    var { FunctionPrototypeCall } = require_primordials4();
    var Duplexify = class extends Duplex {
      static {
        __name(this, "Duplexify");
      }
      constructor(options) {
        super(options);
        if ((options === null || options === void 0 ? void 0 : options.readable) === false) {
          this._readableState.readable = false;
          this._readableState.ended = true;
          this._readableState.endEmitted = true;
        }
        if ((options === null || options === void 0 ? void 0 : options.writable) === false) {
          this._writableState.writable = false;
          this._writableState.ending = true;
          this._writableState.ended = true;
          this._writableState.finished = true;
        }
      }
    };
    module2.exports = /* @__PURE__ */ __name(function duplexify(body, name) {
      if (isDuplexNodeStream(body)) {
        return body;
      }
      if (isReadableNodeStream(body)) {
        return _duplexify({
          readable: body
        });
      }
      if (isWritableNodeStream(body)) {
        return _duplexify({
          writable: body
        });
      }
      if (isNodeStream(body)) {
        return _duplexify({
          writable: false,
          readable: false
        });
      }
      if (isReadableStream2(body)) {
        return _duplexify({
          readable: Readable.fromWeb(body)
        });
      }
      if (isWritableStream(body)) {
        return _duplexify({
          writable: Writable3.fromWeb(body)
        });
      }
      if (typeof body === "function") {
        const { value, write, final, destroy } = fromAsyncGen(body);
        if (isIterable(value)) {
          return from(Duplexify, value, {
            // TODO (ronag): highWaterMark?
            objectMode: true,
            write,
            final,
            destroy
          });
        }
        const then2 = value === null || value === void 0 ? void 0 : value.then;
        if (typeof then2 === "function") {
          let d3;
          const promise = FunctionPrototypeCall(
            then2,
            value,
            (val) => {
              if (val != null) {
                throw new ERR_INVALID_RETURN_VALUE("nully", "body", val);
              }
            },
            (err) => {
              destroyer(d3, err);
            }
          );
          return d3 = new Duplexify({
            // TODO (ronag): highWaterMark?
            objectMode: true,
            readable: false,
            write,
            final(cb) {
              final(async () => {
                try {
                  await promise;
                  process3.nextTick(cb, null);
                } catch (err) {
                  process3.nextTick(cb, err);
                }
              });
            },
            destroy
          });
        }
        throw new ERR_INVALID_RETURN_VALUE("Iterable, AsyncIterable or AsyncFunction", name, value);
      }
      if (isBlob2(body)) {
        return duplexify(body.arrayBuffer());
      }
      if (isIterable(body)) {
        return from(Duplexify, body, {
          // TODO (ronag): highWaterMark?
          objectMode: true,
          writable: false
        });
      }
      if (isReadableStream2(body === null || body === void 0 ? void 0 : body.readable) && isWritableStream(body === null || body === void 0 ? void 0 : body.writable)) {
        return Duplexify.fromWeb(body);
      }
      if (typeof (body === null || body === void 0 ? void 0 : body.writable) === "object" || typeof (body === null || body === void 0 ? void 0 : body.readable) === "object") {
        const readable = body !== null && body !== void 0 && body.readable ? isReadableNodeStream(body === null || body === void 0 ? void 0 : body.readable) ? body === null || body === void 0 ? void 0 : body.readable : duplexify(body.readable) : void 0;
        const writable = body !== null && body !== void 0 && body.writable ? isWritableNodeStream(body === null || body === void 0 ? void 0 : body.writable) ? body === null || body === void 0 ? void 0 : body.writable : duplexify(body.writable) : void 0;
        return _duplexify({
          readable,
          writable
        });
      }
      const then = body === null || body === void 0 ? void 0 : body.then;
      if (typeof then === "function") {
        let d3;
        FunctionPrototypeCall(
          then,
          body,
          (val) => {
            if (val != null) {
              d3.push(val);
            }
            d3.push(null);
          },
          (err) => {
            destroyer(d3, err);
          }
        );
        return d3 = new Duplexify({
          objectMode: true,
          writable: false,
          read() {
          }
        });
      }
      throw new ERR_INVALID_ARG_TYPE(
        name,
        [
          "Blob",
          "ReadableStream",
          "WritableStream",
          "Stream",
          "Iterable",
          "AsyncIterable",
          "Function",
          "{ readable, writable } pair",
          "Promise"
        ],
        body
      );
    }, "duplexify");
    function fromAsyncGen(fn) {
      let { promise, resolve: resolve13 } = createDeferredPromise();
      const ac = new AbortController2();
      const signal = ac.signal;
      const value = fn(
        (async function* () {
          while (true) {
            const _promise = promise;
            promise = null;
            const { chunk, done, cb } = await _promise;
            process3.nextTick(cb);
            if (done) return;
            if (signal.aborted)
              throw new AbortError(void 0, {
                cause: signal.reason
              });
            ({ promise, resolve: resolve13 } = createDeferredPromise());
            yield chunk;
          }
        })(),
        {
          signal
        }
      );
      return {
        value,
        write(chunk, encoding, cb) {
          const _resolve = resolve13;
          resolve13 = null;
          _resolve({
            chunk,
            done: false,
            cb
          });
        },
        final(cb) {
          const _resolve = resolve13;
          resolve13 = null;
          _resolve({
            done: true,
            cb
          });
        },
        destroy(err, cb) {
          ac.abort();
          cb(err);
        }
      };
    }
    __name(fromAsyncGen, "fromAsyncGen");
    function _duplexify(pair) {
      const r3 = pair.readable && typeof pair.readable.read !== "function" ? Readable.wrap(pair.readable) : pair.readable;
      const w3 = pair.writable;
      let readable = !!isReadable2(r3);
      let writable = !!isWritable2(w3);
      let ondrain;
      let onfinish;
      let onreadable;
      let onclose;
      let d3;
      function onfinished(err) {
        const cb = onclose;
        onclose = null;
        if (cb) {
          cb(err);
        } else if (err) {
          d3.destroy(err);
        }
      }
      __name(onfinished, "onfinished");
      d3 = new Duplexify({
        // TODO (ronag): highWaterMark?
        readableObjectMode: !!(r3 !== null && r3 !== void 0 && r3.readableObjectMode),
        writableObjectMode: !!(w3 !== null && w3 !== void 0 && w3.writableObjectMode),
        readable,
        writable
      });
      if (writable) {
        eos(w3, (err) => {
          writable = false;
          if (err) {
            destroyer(r3, err);
          }
          onfinished(err);
        });
        d3._write = function(chunk, encoding, callback) {
          if (w3.write(chunk, encoding)) {
            callback();
          } else {
            ondrain = callback;
          }
        };
        d3._final = function(callback) {
          w3.end();
          onfinish = callback;
        };
        w3.on("drain", function() {
          if (ondrain) {
            const cb = ondrain;
            ondrain = null;
            cb();
          }
        });
        w3.on("finish", function() {
          if (onfinish) {
            const cb = onfinish;
            onfinish = null;
            cb();
          }
        });
      }
      if (readable) {
        eos(r3, (err) => {
          readable = false;
          if (err) {
            destroyer(r3, err);
          }
          onfinished(err);
        });
        r3.on("readable", function() {
          if (onreadable) {
            const cb = onreadable;
            onreadable = null;
            cb();
          }
        });
        r3.on("end", function() {
          d3.push(null);
        });
        d3._read = function() {
          while (true) {
            const buf = r3.read();
            if (buf === null) {
              onreadable = d3._read;
              return;
            }
            if (!d3.push(buf)) {
              return;
            }
          }
        };
      }
      d3._destroy = function(err, callback) {
        if (!err && onclose !== null) {
          err = new AbortError();
        }
        onreadable = null;
        ondrain = null;
        onfinish = null;
        if (onclose === null) {
          callback(err);
        } else {
          onclose = callback;
          destroyer(w3, err);
          destroyer(r3, err);
        }
      };
      return d3;
    }
    __name(_duplexify, "_duplexify");
  }
});

// ../../node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/duplex.js
var require_duplex4 = __commonJS({
  "../../node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/duplex.js"(exports2, module2) {
    "use strict";
    var {
      ObjectDefineProperties,
      ObjectGetOwnPropertyDescriptor,
      ObjectKeys,
      ObjectSetPrototypeOf
    } = require_primordials4();
    module2.exports = Duplex;
    var Readable = require_readable5();
    var Writable3 = require_writable4();
    ObjectSetPrototypeOf(Duplex.prototype, Readable.prototype);
    ObjectSetPrototypeOf(Duplex, Readable);
    {
      const keys = ObjectKeys(Writable3.prototype);
      for (let i3 = 0; i3 < keys.length; i3++) {
        const method = keys[i3];
        if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable3.prototype[method];
      }
    }
    function Duplex(options) {
      if (!(this instanceof Duplex)) return new Duplex(options);
      Readable.call(this, options);
      Writable3.call(this, options);
      if (options) {
        this.allowHalfOpen = options.allowHalfOpen !== false;
        if (options.readable === false) {
          this._readableState.readable = false;
          this._readableState.ended = true;
          this._readableState.endEmitted = true;
        }
        if (options.writable === false) {
          this._writableState.writable = false;
          this._writableState.ending = true;
          this._writableState.ended = true;
          this._writableState.finished = true;
        }
      } else {
        this.allowHalfOpen = true;
      }
    }
    __name(Duplex, "Duplex");
    ObjectDefineProperties(Duplex.prototype, {
      writable: {
        __proto__: null,
        ...ObjectGetOwnPropertyDescriptor(Writable3.prototype, "writable")
      },
      writableHighWaterMark: {
        __proto__: null,
        ...ObjectGetOwnPropertyDescriptor(Writable3.prototype, "writableHighWaterMark")
      },
      writableObjectMode: {
        __proto__: null,
        ...ObjectGetOwnPropertyDescriptor(Writable3.prototype, "writableObjectMode")
      },
      writableBuffer: {
        __proto__: null,
        ...ObjectGetOwnPropertyDescriptor(Writable3.prototype, "writableBuffer")
      },
      writableLength: {
        __proto__: null,
        ...ObjectGetOwnPropertyDescriptor(Writable3.prototype, "writableLength")
      },
      writableFinished: {
        __proto__: null,
        ...ObjectGetOwnPropertyDescriptor(Writable3.prototype, "writableFinished")
      },
      writableCorked: {
        __proto__: null,
        ...ObjectGetOwnPropertyDescriptor(Writable3.prototype, "writableCorked")
      },
      writableEnded: {
        __proto__: null,
        ...ObjectGetOwnPropertyDescriptor(Writable3.prototype, "writableEnded")
      },
      writableNeedDrain: {
        __proto__: null,
        ...ObjectGetOwnPropertyDescriptor(Writable3.prototype, "writableNeedDrain")
      },
      destroyed: {
        __proto__: null,
        get() {
          if (this._readableState === void 0 || this._writableState === void 0) {
            return false;
          }
          return this._readableState.destroyed && this._writableState.destroyed;
        },
        set(value) {
          if (this._readableState && this._writableState) {
            this._readableState.destroyed = value;
            this._writableState.destroyed = value;
          }
        }
      }
    });
    var webStreamsAdapters;
    function lazyWebStreams() {
      if (webStreamsAdapters === void 0) webStreamsAdapters = {};
      return webStreamsAdapters;
    }
    __name(lazyWebStreams, "lazyWebStreams");
    Duplex.fromWeb = function(pair, options) {
      return lazyWebStreams().newStreamDuplexFromReadableWritablePair(pair, options);
    };
    Duplex.toWeb = function(duplex) {
      return lazyWebStreams().newReadableWritablePairFromDuplex(duplex);
    };
    var duplexify;
    Duplex.from = function(body) {
      if (!duplexify) {
        duplexify = require_duplexify4();
      }
      return duplexify(body, "body");
    };
  }
});

// ../../node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/transform.js
var require_transform4 = __commonJS({
  "../../node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/transform.js"(exports2, module2) {
    "use strict";
    var { ObjectSetPrototypeOf, Symbol: Symbol2 } = require_primordials4();
    module2.exports = Transform;
    var { ERR_METHOD_NOT_IMPLEMENTED } = require_errors4().codes;
    var Duplex = require_duplex4();
    var { getHighWaterMark } = require_state4();
    ObjectSetPrototypeOf(Transform.prototype, Duplex.prototype);
    ObjectSetPrototypeOf(Transform, Duplex);
    var kCallback = Symbol2("kCallback");
    function Transform(options) {
      if (!(this instanceof Transform)) return new Transform(options);
      const readableHighWaterMark = options ? getHighWaterMark(this, options, "readableHighWaterMark", true) : null;
      if (readableHighWaterMark === 0) {
        options = {
          ...options,
          highWaterMark: null,
          readableHighWaterMark,
          // TODO (ronag): 0 is not optimal since we have
          // a "bug" where we check needDrain before calling _write and not after.
          // Refs: https://github.com/nodejs/node/pull/32887
          // Refs: https://github.com/nodejs/node/pull/35941
          writableHighWaterMark: options.writableHighWaterMark || 0
        };
      }
      Duplex.call(this, options);
      this._readableState.sync = false;
      this[kCallback] = null;
      if (options) {
        if (typeof options.transform === "function") this._transform = options.transform;
        if (typeof options.flush === "function") this._flush = options.flush;
      }
      this.on("prefinish", prefinish);
    }
    __name(Transform, "Transform");
    function final(cb) {
      if (typeof this._flush === "function" && !this.destroyed) {
        this._flush((er, data3) => {
          if (er) {
            if (cb) {
              cb(er);
            } else {
              this.destroy(er);
            }
            return;
          }
          if (data3 != null) {
            this.push(data3);
          }
          this.push(null);
          if (cb) {
            cb();
          }
        });
      } else {
        this.push(null);
        if (cb) {
          cb();
        }
      }
    }
    __name(final, "final");
    function prefinish() {
      if (this._final !== final) {
        final.call(this);
      }
    }
    __name(prefinish, "prefinish");
    Transform.prototype._final = final;
    Transform.prototype._transform = function(chunk, encoding, callback) {
      throw new ERR_METHOD_NOT_IMPLEMENTED("_transform()");
    };
    Transform.prototype._write = function(chunk, encoding, callback) {
      const rState = this._readableState;
      const wState = this._writableState;
      const length = rState.length;
      this._transform(chunk, encoding, (err, val) => {
        if (err) {
          callback(err);
          return;
        }
        if (val != null) {
          this.push(val);
        }
        if (wState.ended || // Backwards compat.
        length === rState.length || // Backwards compat.
        rState.length < rState.highWaterMark) {
          callback();
        } else {
          this[kCallback] = callback;
        }
      });
    };
    Transform.prototype._read = function() {
      if (this[kCallback]) {
        const callback = this[kCallback];
        this[kCallback] = null;
        callback();
      }
    };
  }
});

// ../../node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/passthrough.js
var require_passthrough5 = __commonJS({
  "../../node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/passthrough.js"(exports2, module2) {
    "use strict";
    var { ObjectSetPrototypeOf } = require_primordials4();
    module2.exports = PassThrough;
    var Transform = require_transform4();
    ObjectSetPrototypeOf(PassThrough.prototype, Transform.prototype);
    ObjectSetPrototypeOf(PassThrough, Transform);
    function PassThrough(options) {
      if (!(this instanceof PassThrough)) return new PassThrough(options);
      Transform.call(this, options);
    }
    __name(PassThrough, "PassThrough");
    PassThrough.prototype._transform = function(chunk, encoding, cb) {
      cb(null, chunk);
    };
  }
});

// ../../node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/pipeline.js
var require_pipeline4 = __commonJS({
  "../../node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/pipeline.js"(exports2, module2) {
    var process3 = require_process();
    var { ArrayIsArray, Promise: Promise2, SymbolAsyncIterator, SymbolDispose } = require_primordials4();
    var eos = require_end_of_stream4();
    var { once } = require_util7();
    var destroyImpl = require_destroy5();
    var Duplex = require_duplex4();
    var {
      aggregateTwoErrors,
      codes: {
        ERR_INVALID_ARG_TYPE,
        ERR_INVALID_RETURN_VALUE,
        ERR_MISSING_ARGS,
        ERR_STREAM_DESTROYED,
        ERR_STREAM_PREMATURE_CLOSE
      },
      AbortError
    } = require_errors4();
    var { validateFunction, validateAbortSignal } = require_validators4();
    var {
      isIterable,
      isReadable: isReadable2,
      isReadableNodeStream,
      isNodeStream,
      isTransformStream,
      isWebStream,
      isReadableStream: isReadableStream2,
      isReadableFinished
    } = require_utils5();
    var AbortController2 = globalThis.AbortController || require_abort_controller().AbortController;
    var PassThrough;
    var Readable;
    var addAbortListener;
    function destroyer(stream3, reading, writing) {
      let finished = false;
      stream3.on("close", () => {
        finished = true;
      });
      const cleanup = eos(
        stream3,
        {
          readable: reading,
          writable: writing
        },
        (err) => {
          finished = !err;
        }
      );
      return {
        destroy: /* @__PURE__ */ __name((err) => {
          if (finished) return;
          finished = true;
          destroyImpl.destroyer(stream3, err || new ERR_STREAM_DESTROYED("pipe"));
        }, "destroy"),
        cleanup
      };
    }
    __name(destroyer, "destroyer");
    function popCallback(streams) {
      validateFunction(streams[streams.length - 1], "streams[stream.length - 1]");
      return streams.pop();
    }
    __name(popCallback, "popCallback");
    function makeAsyncIterable(val) {
      if (isIterable(val)) {
        return val;
      } else if (isReadableNodeStream(val)) {
        return fromReadable(val);
      }
      throw new ERR_INVALID_ARG_TYPE("val", ["Readable", "Iterable", "AsyncIterable"], val);
    }
    __name(makeAsyncIterable, "makeAsyncIterable");
    async function* fromReadable(val) {
      if (!Readable) {
        Readable = require_readable5();
      }
      yield* Readable.prototype[SymbolAsyncIterator].call(val);
    }
    __name(fromReadable, "fromReadable");
    async function pumpToNode(iterable, writable, finish, { end }) {
      let error5;
      let onresolve = null;
      const resume = /* @__PURE__ */ __name((err) => {
        if (err) {
          error5 = err;
        }
        if (onresolve) {
          const callback = onresolve;
          onresolve = null;
          callback();
        }
      }, "resume");
      const wait = /* @__PURE__ */ __name(() => new Promise2((resolve13, reject) => {
        if (error5) {
          reject(error5);
        } else {
          onresolve = /* @__PURE__ */ __name(() => {
            if (error5) {
              reject(error5);
            } else {
              resolve13();
            }
          }, "onresolve");
        }
      }), "wait");
      writable.on("drain", resume);
      const cleanup = eos(
        writable,
        {
          readable: false
        },
        resume
      );
      try {
        if (writable.writableNeedDrain) {
          await wait();
        }
        for await (const chunk of iterable) {
          if (!writable.write(chunk)) {
            await wait();
          }
        }
        if (end) {
          writable.end();
          await wait();
        }
        finish();
      } catch (err) {
        finish(error5 !== err ? aggregateTwoErrors(error5, err) : err);
      } finally {
        cleanup();
        writable.off("drain", resume);
      }
    }
    __name(pumpToNode, "pumpToNode");
    async function pumpToWeb(readable, writable, finish, { end }) {
      if (isTransformStream(writable)) {
        writable = writable.writable;
      }
      const writer = writable.getWriter();
      try {
        for await (const chunk of readable) {
          await writer.ready;
          writer.write(chunk).catch(() => {
          });
        }
        await writer.ready;
        if (end) {
          await writer.close();
        }
        finish();
      } catch (err) {
        try {
          await writer.abort(err);
          finish(err);
        } catch (err2) {
          finish(err2);
        }
      }
    }
    __name(pumpToWeb, "pumpToWeb");
    function pipeline(...streams) {
      return pipelineImpl(streams, once(popCallback(streams)));
    }
    __name(pipeline, "pipeline");
    function pipelineImpl(streams, callback, opts) {
      if (streams.length === 1 && ArrayIsArray(streams[0])) {
        streams = streams[0];
      }
      if (streams.length < 2) {
        throw new ERR_MISSING_ARGS("streams");
      }
      const ac = new AbortController2();
      const signal = ac.signal;
      const outerSignal = opts === null || opts === void 0 ? void 0 : opts.signal;
      const lastStreamCleanup = [];
      validateAbortSignal(outerSignal, "options.signal");
      function abort() {
        finishImpl(new AbortError());
      }
      __name(abort, "abort");
      addAbortListener = addAbortListener || require_util7().addAbortListener;
      let disposable;
      if (outerSignal) {
        disposable = addAbortListener(outerSignal, abort);
      }
      let error5;
      let value;
      const destroys = [];
      let finishCount = 0;
      function finish(err) {
        finishImpl(err, --finishCount === 0);
      }
      __name(finish, "finish");
      function finishImpl(err, final) {
        var _disposable;
        if (err && (!error5 || error5.code === "ERR_STREAM_PREMATURE_CLOSE")) {
          error5 = err;
        }
        if (!error5 && !final) {
          return;
        }
        while (destroys.length) {
          destroys.shift()(error5);
        }
        ;
        (_disposable = disposable) === null || _disposable === void 0 ? void 0 : _disposable[SymbolDispose]();
        ac.abort();
        if (final) {
          if (!error5) {
            lastStreamCleanup.forEach((fn) => fn());
          }
          process3.nextTick(callback, error5, value);
        }
      }
      __name(finishImpl, "finishImpl");
      let ret;
      for (let i3 = 0; i3 < streams.length; i3++) {
        const stream3 = streams[i3];
        const reading = i3 < streams.length - 1;
        const writing = i3 > 0;
        const end = reading || (opts === null || opts === void 0 ? void 0 : opts.end) !== false;
        const isLastStream = i3 === streams.length - 1;
        if (isNodeStream(stream3)) {
          let onError2 = function(err) {
            if (err && err.name !== "AbortError" && err.code !== "ERR_STREAM_PREMATURE_CLOSE") {
              finish(err);
            }
          };
          var onError = onError2;
          __name(onError2, "onError");
          if (end) {
            const { destroy, cleanup } = destroyer(stream3, reading, writing);
            destroys.push(destroy);
            if (isReadable2(stream3) && isLastStream) {
              lastStreamCleanup.push(cleanup);
            }
          }
          stream3.on("error", onError2);
          if (isReadable2(stream3) && isLastStream) {
            lastStreamCleanup.push(() => {
              stream3.removeListener("error", onError2);
            });
          }
        }
        if (i3 === 0) {
          if (typeof stream3 === "function") {
            ret = stream3({
              signal
            });
            if (!isIterable(ret)) {
              throw new ERR_INVALID_RETURN_VALUE("Iterable, AsyncIterable or Stream", "source", ret);
            }
          } else if (isIterable(stream3) || isReadableNodeStream(stream3) || isTransformStream(stream3)) {
            ret = stream3;
          } else {
            ret = Duplex.from(stream3);
          }
        } else if (typeof stream3 === "function") {
          if (isTransformStream(ret)) {
            var _ret;
            ret = makeAsyncIterable((_ret = ret) === null || _ret === void 0 ? void 0 : _ret.readable);
          } else {
            ret = makeAsyncIterable(ret);
          }
          ret = stream3(ret, {
            signal
          });
          if (reading) {
            if (!isIterable(ret, true)) {
              throw new ERR_INVALID_RETURN_VALUE("AsyncIterable", `transform[${i3 - 1}]`, ret);
            }
          } else {
            var _ret2;
            if (!PassThrough) {
              PassThrough = require_passthrough5();
            }
            const pt = new PassThrough({
              objectMode: true
            });
            const then = (_ret2 = ret) === null || _ret2 === void 0 ? void 0 : _ret2.then;
            if (typeof then === "function") {
              finishCount++;
              then.call(
                ret,
                (val) => {
                  value = val;
                  if (val != null) {
                    pt.write(val);
                  }
                  if (end) {
                    pt.end();
                  }
                  process3.nextTick(finish);
                },
                (err) => {
                  pt.destroy(err);
                  process3.nextTick(finish, err);
                }
              );
            } else if (isIterable(ret, true)) {
              finishCount++;
              pumpToNode(ret, pt, finish, {
                end
              });
            } else if (isReadableStream2(ret) || isTransformStream(ret)) {
              const toRead = ret.readable || ret;
              finishCount++;
              pumpToNode(toRead, pt, finish, {
                end
              });
            } else {
              throw new ERR_INVALID_RETURN_VALUE("AsyncIterable or Promise", "destination", ret);
            }
            ret = pt;
            const { destroy, cleanup } = destroyer(ret, false, true);
            destroys.push(destroy);
            if (isLastStream) {
              lastStreamCleanup.push(cleanup);
            }
          }
        } else if (isNodeStream(stream3)) {
          if (isReadableNodeStream(ret)) {
            finishCount += 2;
            const cleanup = pipe(ret, stream3, finish, {
              end
            });
            if (isReadable2(stream3) && isLastStream) {
              lastStreamCleanup.push(cleanup);
            }
          } else if (isTransformStream(ret) || isReadableStream2(ret)) {
            const toRead = ret.readable || ret;
            finishCount++;
            pumpToNode(toRead, stream3, finish, {
              end
            });
          } else if (isIterable(ret)) {
            finishCount++;
            pumpToNode(ret, stream3, finish, {
              end
            });
          } else {
            throw new ERR_INVALID_ARG_TYPE(
              "val",
              ["Readable", "Iterable", "AsyncIterable", "ReadableStream", "TransformStream"],
              ret
            );
          }
          ret = stream3;
        } else if (isWebStream(stream3)) {
          if (isReadableNodeStream(ret)) {
            finishCount++;
            pumpToWeb(makeAsyncIterable(ret), stream3, finish, {
              end
            });
          } else if (isReadableStream2(ret) || isIterable(ret)) {
            finishCount++;
            pumpToWeb(ret, stream3, finish, {
              end
            });
          } else if (isTransformStream(ret)) {
            finishCount++;
            pumpToWeb(ret.readable, stream3, finish, {
              end
            });
          } else {
            throw new ERR_INVALID_ARG_TYPE(
              "val",
              ["Readable", "Iterable", "AsyncIterable", "ReadableStream", "TransformStream"],
              ret
            );
          }
          ret = stream3;
        } else {
          ret = Duplex.from(stream3);
        }
      }
      if (signal !== null && signal !== void 0 && signal.aborted || outerSignal !== null && outerSignal !== void 0 && outerSignal.aborted) {
        process3.nextTick(abort);
      }
      return ret;
    }
    __name(pipelineImpl, "pipelineImpl");
    function pipe(src, dst, finish, { end }) {
      let ended = false;
      dst.on("close", () => {
        if (!ended) {
          finish(new ERR_STREAM_PREMATURE_CLOSE());
        }
      });
      src.pipe(dst, {
        end: false
      });
      if (end) {
        let endFn2 = function() {
          ended = true;
          dst.end();
        };
        var endFn = endFn2;
        __name(endFn2, "endFn");
        if (isReadableFinished(src)) {
          process3.nextTick(endFn2);
        } else {
          src.once("end", endFn2);
        }
      } else {
        finish();
      }
      eos(
        src,
        {
          readable: true,
          writable: false
        },
        (err) => {
          const rState = src._readableState;
          if (err && err.code === "ERR_STREAM_PREMATURE_CLOSE" && rState && rState.ended && !rState.errored && !rState.errorEmitted) {
            src.once("end", finish).once("error", finish);
          } else {
            finish(err);
          }
        }
      );
      return eos(
        dst,
        {
          readable: false,
          writable: true
        },
        finish
      );
    }
    __name(pipe, "pipe");
    module2.exports = {
      pipelineImpl,
      pipeline
    };
  }
});

// ../../node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/compose.js
var require_compose4 = __commonJS({
  "../../node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/compose.js"(exports2, module2) {
    "use strict";
    var { pipeline } = require_pipeline4();
    var Duplex = require_duplex4();
    var { destroyer } = require_destroy5();
    var {
      isNodeStream,
      isReadable: isReadable2,
      isWritable: isWritable2,
      isWebStream,
      isTransformStream,
      isWritableStream,
      isReadableStream: isReadableStream2
    } = require_utils5();
    var {
      AbortError,
      codes: { ERR_INVALID_ARG_VALUE, ERR_MISSING_ARGS }
    } = require_errors4();
    var eos = require_end_of_stream4();
    module2.exports = /* @__PURE__ */ __name(function compose(...streams) {
      if (streams.length === 0) {
        throw new ERR_MISSING_ARGS("streams");
      }
      if (streams.length === 1) {
        return Duplex.from(streams[0]);
      }
      const orgStreams = [...streams];
      if (typeof streams[0] === "function") {
        streams[0] = Duplex.from(streams[0]);
      }
      if (typeof streams[streams.length - 1] === "function") {
        const idx = streams.length - 1;
        streams[idx] = Duplex.from(streams[idx]);
      }
      for (let n3 = 0; n3 < streams.length; ++n3) {
        if (!isNodeStream(streams[n3]) && !isWebStream(streams[n3])) {
          continue;
        }
        if (n3 < streams.length - 1 && !(isReadable2(streams[n3]) || isReadableStream2(streams[n3]) || isTransformStream(streams[n3]))) {
          throw new ERR_INVALID_ARG_VALUE(`streams[${n3}]`, orgStreams[n3], "must be readable");
        }
        if (n3 > 0 && !(isWritable2(streams[n3]) || isWritableStream(streams[n3]) || isTransformStream(streams[n3]))) {
          throw new ERR_INVALID_ARG_VALUE(`streams[${n3}]`, orgStreams[n3], "must be writable");
        }
      }
      let ondrain;
      let onfinish;
      let onreadable;
      let onclose;
      let d3;
      function onfinished(err) {
        const cb = onclose;
        onclose = null;
        if (cb) {
          cb(err);
        } else if (err) {
          d3.destroy(err);
        } else if (!readable && !writable) {
          d3.destroy();
        }
      }
      __name(onfinished, "onfinished");
      const head = streams[0];
      const tail = pipeline(streams, onfinished);
      const writable = !!(isWritable2(head) || isWritableStream(head) || isTransformStream(head));
      const readable = !!(isReadable2(tail) || isReadableStream2(tail) || isTransformStream(tail));
      d3 = new Duplex({
        // TODO (ronag): highWaterMark?
        writableObjectMode: !!(head !== null && head !== void 0 && head.writableObjectMode),
        readableObjectMode: !!(tail !== null && tail !== void 0 && tail.readableObjectMode),
        writable,
        readable
      });
      if (writable) {
        if (isNodeStream(head)) {
          d3._write = function(chunk, encoding, callback) {
            if (head.write(chunk, encoding)) {
              callback();
            } else {
              ondrain = callback;
            }
          };
          d3._final = function(callback) {
            head.end();
            onfinish = callback;
          };
          head.on("drain", function() {
            if (ondrain) {
              const cb = ondrain;
              ondrain = null;
              cb();
            }
          });
        } else if (isWebStream(head)) {
          const writable2 = isTransformStream(head) ? head.writable : head;
          const writer = writable2.getWriter();
          d3._write = async function(chunk, encoding, callback) {
            try {
              await writer.ready;
              writer.write(chunk).catch(() => {
              });
              callback();
            } catch (err) {
              callback(err);
            }
          };
          d3._final = async function(callback) {
            try {
              await writer.ready;
              writer.close().catch(() => {
              });
              onfinish = callback;
            } catch (err) {
              callback(err);
            }
          };
        }
        const toRead = isTransformStream(tail) ? tail.readable : tail;
        eos(toRead, () => {
          if (onfinish) {
            const cb = onfinish;
            onfinish = null;
            cb();
          }
        });
      }
      if (readable) {
        if (isNodeStream(tail)) {
          tail.on("readable", function() {
            if (onreadable) {
              const cb = onreadable;
              onreadable = null;
              cb();
            }
          });
          tail.on("end", function() {
            d3.push(null);
          });
          d3._read = function() {
            while (true) {
              const buf = tail.read();
              if (buf === null) {
                onreadable = d3._read;
                return;
              }
              if (!d3.push(buf)) {
                return;
              }
            }
          };
        } else if (isWebStream(tail)) {
          const readable2 = isTransformStream(tail) ? tail.readable : tail;
          const reader = readable2.getReader();
          d3._read = async function() {
            while (true) {
              try {
                const { value, done } = await reader.read();
                if (!d3.push(value)) {
                  return;
                }
                if (done) {
                  d3.push(null);
                  return;
                }
              } catch {
                return;
              }
            }
          };
        }
      }
      d3._destroy = function(err, callback) {
        if (!err && onclose !== null) {
          err = new AbortError();
        }
        onreadable = null;
        ondrain = null;
        onfinish = null;
        if (onclose === null) {
          callback(err);
        } else {
          onclose = callback;
          if (isNodeStream(tail)) {
            destroyer(tail, err);
          }
        }
      };
      return d3;
    }, "compose");
  }
});

// ../../node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/operators.js
var require_operators4 = __commonJS({
  "../../node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/operators.js"(exports2, module2) {
    "use strict";
    var AbortController2 = globalThis.AbortController || require_abort_controller().AbortController;
    var {
      codes: { ERR_INVALID_ARG_VALUE, ERR_INVALID_ARG_TYPE, ERR_MISSING_ARGS, ERR_OUT_OF_RANGE },
      AbortError
    } = require_errors4();
    var { validateAbortSignal, validateInteger, validateObject } = require_validators4();
    var kWeakHandler = require_primordials4().Symbol("kWeak");
    var kResistStopPropagation = require_primordials4().Symbol("kResistStopPropagation");
    var { finished } = require_end_of_stream4();
    var staticCompose = require_compose4();
    var { addAbortSignalNoValidate } = require_add_abort_signal4();
    var { isWritable: isWritable2, isNodeStream } = require_utils5();
    var { deprecate } = require_util7();
    var {
      ArrayPrototypePush,
      Boolean: Boolean2,
      MathFloor,
      Number: Number2,
      NumberIsNaN,
      Promise: Promise2,
      PromiseReject,
      PromiseResolve,
      PromisePrototypeThen,
      Symbol: Symbol2
    } = require_primordials4();
    var kEmpty = Symbol2("kEmpty");
    var kEof = Symbol2("kEof");
    function compose(stream3, options) {
      if (options != null) {
        validateObject(options, "options");
      }
      if ((options === null || options === void 0 ? void 0 : options.signal) != null) {
        validateAbortSignal(options.signal, "options.signal");
      }
      if (isNodeStream(stream3) && !isWritable2(stream3)) {
        throw new ERR_INVALID_ARG_VALUE("stream", stream3, "must be writable");
      }
      const composedStream = staticCompose(this, stream3);
      if (options !== null && options !== void 0 && options.signal) {
        addAbortSignalNoValidate(options.signal, composedStream);
      }
      return composedStream;
    }
    __name(compose, "compose");
    function map3(fn, options) {
      if (typeof fn !== "function") {
        throw new ERR_INVALID_ARG_TYPE("fn", ["Function", "AsyncFunction"], fn);
      }
      if (options != null) {
        validateObject(options, "options");
      }
      if ((options === null || options === void 0 ? void 0 : options.signal) != null) {
        validateAbortSignal(options.signal, "options.signal");
      }
      let concurrency = 1;
      if ((options === null || options === void 0 ? void 0 : options.concurrency) != null) {
        concurrency = MathFloor(options.concurrency);
      }
      let highWaterMark = concurrency - 1;
      if ((options === null || options === void 0 ? void 0 : options.highWaterMark) != null) {
        highWaterMark = MathFloor(options.highWaterMark);
      }
      validateInteger(concurrency, "options.concurrency", 1);
      validateInteger(highWaterMark, "options.highWaterMark", 0);
      highWaterMark += concurrency;
      return (/* @__PURE__ */ __name(async function* map4() {
        const signal = require_util7().AbortSignalAny(
          [options === null || options === void 0 ? void 0 : options.signal].filter(Boolean2)
        );
        const stream3 = this;
        const queue = [];
        const signalOpt = {
          signal
        };
        let next;
        let resume;
        let done = false;
        let cnt = 0;
        function onCatch() {
          done = true;
          afterItemProcessed();
        }
        __name(onCatch, "onCatch");
        function afterItemProcessed() {
          cnt -= 1;
          maybeResume();
        }
        __name(afterItemProcessed, "afterItemProcessed");
        function maybeResume() {
          if (resume && !done && cnt < concurrency && queue.length < highWaterMark) {
            resume();
            resume = null;
          }
        }
        __name(maybeResume, "maybeResume");
        async function pump() {
          try {
            for await (let val of stream3) {
              if (done) {
                return;
              }
              if (signal.aborted) {
                throw new AbortError();
              }
              try {
                val = fn(val, signalOpt);
                if (val === kEmpty) {
                  continue;
                }
                val = PromiseResolve(val);
              } catch (err) {
                val = PromiseReject(err);
              }
              cnt += 1;
              PromisePrototypeThen(val, afterItemProcessed, onCatch);
              queue.push(val);
              if (next) {
                next();
                next = null;
              }
              if (!done && (queue.length >= highWaterMark || cnt >= concurrency)) {
                await new Promise2((resolve13) => {
                  resume = resolve13;
                });
              }
            }
            queue.push(kEof);
          } catch (err) {
            const val = PromiseReject(err);
            PromisePrototypeThen(val, afterItemProcessed, onCatch);
            queue.push(val);
          } finally {
            done = true;
            if (next) {
              next();
              next = null;
            }
          }
        }
        __name(pump, "pump");
        pump();
        try {
          while (true) {
            while (queue.length > 0) {
              const val = await queue[0];
              if (val === kEof) {
                return;
              }
              if (signal.aborted) {
                throw new AbortError();
              }
              if (val !== kEmpty) {
                yield val;
              }
              queue.shift();
              maybeResume();
            }
            await new Promise2((resolve13) => {
              next = resolve13;
            });
          }
        } finally {
          done = true;
          if (resume) {
            resume();
            resume = null;
          }
        }
      }, "map")).call(this);
    }
    __name(map3, "map");
    function asIndexedPairs(options = void 0) {
      if (options != null) {
        validateObject(options, "options");
      }
      if ((options === null || options === void 0 ? void 0 : options.signal) != null) {
        validateAbortSignal(options.signal, "options.signal");
      }
      return (/* @__PURE__ */ __name(async function* asIndexedPairs2() {
        let index = 0;
        for await (const val of this) {
          var _options$signal;
          if (options !== null && options !== void 0 && (_options$signal = options.signal) !== null && _options$signal !== void 0 && _options$signal.aborted) {
            throw new AbortError({
              cause: options.signal.reason
            });
          }
          yield [index++, val];
        }
      }, "asIndexedPairs")).call(this);
    }
    __name(asIndexedPairs, "asIndexedPairs");
    async function some2(fn, options = void 0) {
      for await (const unused of filter4.call(this, fn, options)) {
        return true;
      }
      return false;
    }
    __name(some2, "some");
    async function every(fn, options = void 0) {
      if (typeof fn !== "function") {
        throw new ERR_INVALID_ARG_TYPE("fn", ["Function", "AsyncFunction"], fn);
      }
      return !await some2.call(
        this,
        async (...args) => {
          return !await fn(...args);
        },
        options
      );
    }
    __name(every, "every");
    async function find(fn, options) {
      for await (const result2 of filter4.call(this, fn, options)) {
        return result2;
      }
      return void 0;
    }
    __name(find, "find");
    async function forEach(fn, options) {
      if (typeof fn !== "function") {
        throw new ERR_INVALID_ARG_TYPE("fn", ["Function", "AsyncFunction"], fn);
      }
      async function forEachFn(value, options2) {
        await fn(value, options2);
        return kEmpty;
      }
      __name(forEachFn, "forEachFn");
      for await (const unused of map3.call(this, forEachFn, options)) ;
    }
    __name(forEach, "forEach");
    function filter4(fn, options) {
      if (typeof fn !== "function") {
        throw new ERR_INVALID_ARG_TYPE("fn", ["Function", "AsyncFunction"], fn);
      }
      async function filterFn(value, options2) {
        if (await fn(value, options2)) {
          return value;
        }
        return kEmpty;
      }
      __name(filterFn, "filterFn");
      return map3.call(this, filterFn, options);
    }
    __name(filter4, "filter");
    var ReduceAwareErrMissingArgs = class extends ERR_MISSING_ARGS {
      static {
        __name(this, "ReduceAwareErrMissingArgs");
      }
      constructor() {
        super("reduce");
        this.message = "Reduce of an empty stream requires an initial value";
      }
    };
    async function reduce(reducer, initialValue, options) {
      var _options$signal2;
      if (typeof reducer !== "function") {
        throw new ERR_INVALID_ARG_TYPE("reducer", ["Function", "AsyncFunction"], reducer);
      }
      if (options != null) {
        validateObject(options, "options");
      }
      if ((options === null || options === void 0 ? void 0 : options.signal) != null) {
        validateAbortSignal(options.signal, "options.signal");
      }
      let hasInitialValue = arguments.length > 1;
      if (options !== null && options !== void 0 && (_options$signal2 = options.signal) !== null && _options$signal2 !== void 0 && _options$signal2.aborted) {
        const err = new AbortError(void 0, {
          cause: options.signal.reason
        });
        this.once("error", () => {
        });
        await finished(this.destroy(err));
        throw err;
      }
      const ac = new AbortController2();
      const signal = ac.signal;
      if (options !== null && options !== void 0 && options.signal) {
        const opts = {
          once: true,
          [kWeakHandler]: this,
          [kResistStopPropagation]: true
        };
        options.signal.addEventListener("abort", () => ac.abort(), opts);
      }
      let gotAnyItemFromStream = false;
      try {
        for await (const value of this) {
          var _options$signal3;
          gotAnyItemFromStream = true;
          if (options !== null && options !== void 0 && (_options$signal3 = options.signal) !== null && _options$signal3 !== void 0 && _options$signal3.aborted) {
            throw new AbortError();
          }
          if (!hasInitialValue) {
            initialValue = value;
            hasInitialValue = true;
          } else {
            initialValue = await reducer(initialValue, value, {
              signal
            });
          }
        }
        if (!gotAnyItemFromStream && !hasInitialValue) {
          throw new ReduceAwareErrMissingArgs();
        }
      } finally {
        ac.abort();
      }
      return initialValue;
    }
    __name(reduce, "reduce");
    async function toArray(options) {
      if (options != null) {
        validateObject(options, "options");
      }
      if ((options === null || options === void 0 ? void 0 : options.signal) != null) {
        validateAbortSignal(options.signal, "options.signal");
      }
      const result2 = [];
      for await (const val of this) {
        var _options$signal4;
        if (options !== null && options !== void 0 && (_options$signal4 = options.signal) !== null && _options$signal4 !== void 0 && _options$signal4.aborted) {
          throw new AbortError(void 0, {
            cause: options.signal.reason
          });
        }
        ArrayPrototypePush(result2, val);
      }
      return result2;
    }
    __name(toArray, "toArray");
    function flatMap4(fn, options) {
      const values = map3.call(this, fn, options);
      return (/* @__PURE__ */ __name(async function* flatMap5() {
        for await (const val of values) {
          yield* val;
        }
      }, "flatMap")).call(this);
    }
    __name(flatMap4, "flatMap");
    function toIntegerOrInfinity(number) {
      number = Number2(number);
      if (NumberIsNaN(number)) {
        return 0;
      }
      if (number < 0) {
        throw new ERR_OUT_OF_RANGE("number", ">= 0", number);
      }
      return number;
    }
    __name(toIntegerOrInfinity, "toIntegerOrInfinity");
    function drop(number, options = void 0) {
      if (options != null) {
        validateObject(options, "options");
      }
      if ((options === null || options === void 0 ? void 0 : options.signal) != null) {
        validateAbortSignal(options.signal, "options.signal");
      }
      number = toIntegerOrInfinity(number);
      return (/* @__PURE__ */ __name(async function* drop2() {
        var _options$signal5;
        if (options !== null && options !== void 0 && (_options$signal5 = options.signal) !== null && _options$signal5 !== void 0 && _options$signal5.aborted) {
          throw new AbortError();
        }
        for await (const val of this) {
          var _options$signal6;
          if (options !== null && options !== void 0 && (_options$signal6 = options.signal) !== null && _options$signal6 !== void 0 && _options$signal6.aborted) {
            throw new AbortError();
          }
          if (number-- <= 0) {
            yield val;
          }
        }
      }, "drop")).call(this);
    }
    __name(drop, "drop");
    function take2(number, options = void 0) {
      if (options != null) {
        validateObject(options, "options");
      }
      if ((options === null || options === void 0 ? void 0 : options.signal) != null) {
        validateAbortSignal(options.signal, "options.signal");
      }
      number = toIntegerOrInfinity(number);
      return (/* @__PURE__ */ __name(async function* take3() {
        var _options$signal7;
        if (options !== null && options !== void 0 && (_options$signal7 = options.signal) !== null && _options$signal7 !== void 0 && _options$signal7.aborted) {
          throw new AbortError();
        }
        for await (const val of this) {
          var _options$signal8;
          if (options !== null && options !== void 0 && (_options$signal8 = options.signal) !== null && _options$signal8 !== void 0 && _options$signal8.aborted) {
            throw new AbortError();
          }
          if (number-- > 0) {
            yield val;
          }
          if (number <= 0) {
            return;
          }
        }
      }, "take")).call(this);
    }
    __name(take2, "take");
    module2.exports.streamReturningOperators = {
      asIndexedPairs: deprecate(asIndexedPairs, "readable.asIndexedPairs will be removed in a future version."),
      drop,
      filter: filter4,
      flatMap: flatMap4,
      map: map3,
      take: take2,
      compose
    };
    module2.exports.promiseReturningOperators = {
      every,
      forEach,
      reduce,
      toArray,
      some: some2,
      find
    };
  }
});

// ../../node_modules/crc32-stream/node_modules/readable-stream/lib/stream/promises.js
var require_promises4 = __commonJS({
  "../../node_modules/crc32-stream/node_modules/readable-stream/lib/stream/promises.js"(exports2, module2) {
    "use strict";
    var { ArrayPrototypePop, Promise: Promise2 } = require_primordials4();
    var { isIterable, isNodeStream, isWebStream } = require_utils5();
    var { pipelineImpl: pl } = require_pipeline4();
    var { finished } = require_end_of_stream4();
    require_stream5();
    function pipeline(...streams) {
      return new Promise2((resolve13, reject) => {
        let signal;
        let end;
        const lastArg = streams[streams.length - 1];
        if (lastArg && typeof lastArg === "object" && !isNodeStream(lastArg) && !isIterable(lastArg) && !isWebStream(lastArg)) {
          const options = ArrayPrototypePop(streams);
          signal = options.signal;
          end = options.end;
        }
        pl(
          streams,
          (err, value) => {
            if (err) {
              reject(err);
            } else {
              resolve13(value);
            }
          },
          {
            signal,
            end
          }
        );
      });
    }
    __name(pipeline, "pipeline");
    module2.exports = {
      finished,
      pipeline
    };
  }
});

// ../../node_modules/crc32-stream/node_modules/readable-stream/lib/stream.js
var require_stream5 = __commonJS({
  "../../node_modules/crc32-stream/node_modules/readable-stream/lib/stream.js"(exports2, module2) {
    "use strict";
    var { Buffer: Buffer2 } = require("buffer");
    var { ObjectDefineProperty, ObjectKeys, ReflectApply } = require_primordials4();
    var {
      promisify: { custom: customPromisify }
    } = require_util7();
    var { streamReturningOperators, promiseReturningOperators } = require_operators4();
    var {
      codes: { ERR_ILLEGAL_CONSTRUCTOR }
    } = require_errors4();
    var compose = require_compose4();
    var { setDefaultHighWaterMark, getDefaultHighWaterMark } = require_state4();
    var { pipeline } = require_pipeline4();
    var { destroyer } = require_destroy5();
    var eos = require_end_of_stream4();
    var promises3 = require_promises4();
    var utils = require_utils5();
    var Stream2 = module2.exports = require_legacy4().Stream;
    Stream2.isDestroyed = utils.isDestroyed;
    Stream2.isDisturbed = utils.isDisturbed;
    Stream2.isErrored = utils.isErrored;
    Stream2.isReadable = utils.isReadable;
    Stream2.isWritable = utils.isWritable;
    Stream2.Readable = require_readable5();
    for (const key of ObjectKeys(streamReturningOperators)) {
      let fn = function(...args) {
        if (new.target) {
          throw ERR_ILLEGAL_CONSTRUCTOR();
        }
        return Stream2.Readable.from(ReflectApply(op2, this, args));
      };
      __name(fn, "fn");
      const op2 = streamReturningOperators[key];
      ObjectDefineProperty(fn, "name", {
        __proto__: null,
        value: op2.name
      });
      ObjectDefineProperty(fn, "length", {
        __proto__: null,
        value: op2.length
      });
      ObjectDefineProperty(Stream2.Readable.prototype, key, {
        __proto__: null,
        value: fn,
        enumerable: false,
        configurable: true,
        writable: true
      });
    }
    for (const key of ObjectKeys(promiseReturningOperators)) {
      let fn = function(...args) {
        if (new.target) {
          throw ERR_ILLEGAL_CONSTRUCTOR();
        }
        return ReflectApply(op2, this, args);
      };
      __name(fn, "fn");
      const op2 = promiseReturningOperators[key];
      ObjectDefineProperty(fn, "name", {
        __proto__: null,
        value: op2.name
      });
      ObjectDefineProperty(fn, "length", {
        __proto__: null,
        value: op2.length
      });
      ObjectDefineProperty(Stream2.Readable.prototype, key, {
        __proto__: null,
        value: fn,
        enumerable: false,
        configurable: true,
        writable: true
      });
    }
    Stream2.Writable = require_writable4();
    Stream2.Duplex = require_duplex4();
    Stream2.Transform = require_transform4();
    Stream2.PassThrough = require_passthrough5();
    Stream2.pipeline = pipeline;
    var { addAbortSignal } = require_add_abort_signal4();
    Stream2.addAbortSignal = addAbortSignal;
    Stream2.finished = eos;
    Stream2.destroy = destroyer;
    Stream2.compose = compose;
    Stream2.setDefaultHighWaterMark = setDefaultHighWaterMark;
    Stream2.getDefaultHighWaterMark = getDefaultHighWaterMark;
    ObjectDefineProperty(Stream2, "promises", {
      __proto__: null,
      configurable: true,
      enumerable: true,
      get() {
        return promises3;
      }
    });
    ObjectDefineProperty(pipeline, customPromisify, {
      __proto__: null,
      enumerable: true,
      get() {
        return promises3.pipeline;
      }
    });
    ObjectDefineProperty(eos, customPromisify, {
      __proto__: null,
      enumerable: true,
      get() {
        return promises3.finished;
      }
    });
    Stream2.Stream = Stream2;
    Stream2._isUint8Array = /* @__PURE__ */ __name(function isUint8Array(value) {
      return value instanceof Uint8Array;
    }, "isUint8Array");
    Stream2._uint8ArrayToBuffer = /* @__PURE__ */ __name(function _uint8ArrayToBuffer(chunk) {
      return Buffer2.from(chunk.buffer, chunk.byteOffset, chunk.byteLength);
    }, "_uint8ArrayToBuffer");
  }
});

// ../../node_modules/crc32-stream/node_modules/readable-stream/lib/ours/index.js
var require_ours4 = __commonJS({
  "../../node_modules/crc32-stream/node_modules/readable-stream/lib/ours/index.js"(exports2, module2) {
    "use strict";
    var Stream2 = require("stream");
    if (Stream2 && process.env.READABLE_STREAM === "disable") {
      const promises3 = Stream2.promises;
      module2.exports._uint8ArrayToBuffer = Stream2._uint8ArrayToBuffer;
      module2.exports._isUint8Array = Stream2._isUint8Array;
      module2.exports.isDisturbed = Stream2.isDisturbed;
      module2.exports.isErrored = Stream2.isErrored;
      module2.exports.isReadable = Stream2.isReadable;
      module2.exports.Readable = Stream2.Readable;
      module2.exports.Writable = Stream2.Writable;
      module2.exports.Duplex = Stream2.Duplex;
      module2.exports.Transform = Stream2.Transform;
      module2.exports.PassThrough = Stream2.PassThrough;
      module2.exports.addAbortSignal = Stream2.addAbortSignal;
      module2.exports.finished = Stream2.finished;
      module2.exports.destroy = Stream2.destroy;
      module2.exports.pipeline = Stream2.pipeline;
      module2.exports.compose = Stream2.compose;
      Object.defineProperty(Stream2, "promises", {
        configurable: true,
        enumerable: true,
        get() {
          return promises3;
        }
      });
      module2.exports.Stream = Stream2.Stream;
    } else {
      const CustomStream = require_stream5();
      const promises3 = require_promises4();
      const originalDestroy = CustomStream.Readable.destroy;
      module2.exports = CustomStream.Readable;
      module2.exports._uint8ArrayToBuffer = CustomStream._uint8ArrayToBuffer;
      module2.exports._isUint8Array = CustomStream._isUint8Array;
      module2.exports.isDisturbed = CustomStream.isDisturbed;
      module2.exports.isErrored = CustomStream.isErrored;
      module2.exports.isReadable = CustomStream.isReadable;
      module2.exports.Readable = CustomStream.Readable;
      module2.exports.Writable = CustomStream.Writable;
      module2.exports.Duplex = CustomStream.Duplex;
      module2.exports.Transform = CustomStream.Transform;
      module2.exports.PassThrough = CustomStream.PassThrough;
      module2.exports.addAbortSignal = CustomStream.addAbortSignal;
      module2.exports.finished = CustomStream.finished;
      module2.exports.destroy = CustomStream.destroy;
      module2.exports.destroy = originalDestroy;
      module2.exports.pipeline = CustomStream.pipeline;
      module2.exports.compose = CustomStream.compose;
      Object.defineProperty(CustomStream, "promises", {
        configurable: true,
        enumerable: true,
        get() {
          return promises3;
        }
      });
      module2.exports.Stream = CustomStream.Stream;
    }
    module2.exports.default = module2.exports;
  }
});

// ../../node_modules/crc32-stream/lib/crc32-stream.js
var require_crc32_stream = __commonJS({
  "../../node_modules/crc32-stream/lib/crc32-stream.js"(exports2, module2) {
    "use strict";
    var { Transform } = require_ours4();
    var crc32 = require_crc32();
    var CRC32Stream = class extends Transform {
      static {
        __name(this, "CRC32Stream");
      }
      constructor(options) {
        super(options);
        this.checksum = Buffer.allocUnsafe(4);
        this.checksum.writeInt32BE(0, 0);
        this.rawSize = 0;
      }
      _transform(chunk, encoding, callback) {
        if (chunk) {
          this.checksum = crc32.buf(chunk, this.checksum) >>> 0;
          this.rawSize += chunk.length;
        }
        callback(null, chunk);
      }
      digest(encoding) {
        const checksum = Buffer.allocUnsafe(4);
        checksum.writeUInt32BE(this.checksum >>> 0, 0);
        return encoding ? checksum.toString(encoding) : checksum;
      }
      hex() {
        return this.digest("hex").toUpperCase();
      }
      size() {
        return this.rawSize;
      }
    };
    module2.exports = CRC32Stream;
  }
});

// ../../node_modules/crc32-stream/lib/deflate-crc32-stream.js
var require_deflate_crc32_stream = __commonJS({
  "../../node_modules/crc32-stream/lib/deflate-crc32-stream.js"(exports2, module2) {
    "use strict";
    var { DeflateRaw } = require("zlib");
    var crc32 = require_crc32();
    var DeflateCRC32Stream = class extends DeflateRaw {
      static {
        __name(this, "DeflateCRC32Stream");
      }
      constructor(options) {
        super(options);
        this.checksum = Buffer.allocUnsafe(4);
        this.checksum.writeInt32BE(0, 0);
        this.rawSize = 0;
        this.compressedSize = 0;
      }
      push(chunk, encoding) {
        if (chunk) {
          this.compressedSize += chunk.length;
        }
        return super.push(chunk, encoding);
      }
      _transform(chunk, encoding, callback) {
        if (chunk) {
          this.checksum = crc32.buf(chunk, this.checksum) >>> 0;
          this.rawSize += chunk.length;
        }
        super._transform(chunk, encoding, callback);
      }
      digest(encoding) {
        const checksum = Buffer.allocUnsafe(4);
        checksum.writeUInt32BE(this.checksum >>> 0, 0);
        return encoding ? checksum.toString(encoding) : checksum;
      }
      hex() {
        return this.digest("hex").toUpperCase();
      }
      size(compressed = false) {
        if (compressed) {
          return this.compressedSize;
        } else {
          return this.rawSize;
        }
      }
    };
    module2.exports = DeflateCRC32Stream;
  }
});

// ../../node_modules/crc32-stream/lib/index.js
var require_lib5 = __commonJS({
  "../../node_modules/crc32-stream/lib/index.js"(exports2, module2) {
    "use strict";
    module2.exports = {
      CRC32Stream: require_crc32_stream(),
      DeflateCRC32Stream: require_deflate_crc32_stream()
    };
  }
});

// ../../node_modules/compress-commons/lib/archivers/zip/zip-archive-output-stream.js
var require_zip_archive_output_stream = __commonJS({
  "../../node_modules/compress-commons/lib/archivers/zip/zip-archive-output-stream.js"(exports2, module2) {
    var inherits = require("util").inherits;
    var crc32 = require_crc32();
    var { CRC32Stream } = require_lib5();
    var { DeflateCRC32Stream } = require_lib5();
    var ArchiveOutputStream = require_archive_output_stream();
    var ZipArchiveEntry = require_zip_archive_entry();
    var GeneralPurposeBit = require_general_purpose_bit();
    var constants3 = require_constants2();
    var util11 = require_util6();
    var zipUtil = require_util4();
    var ZipArchiveOutputStream = module2.exports = function(options) {
      if (!(this instanceof ZipArchiveOutputStream)) {
        return new ZipArchiveOutputStream(options);
      }
      options = this.options = this._defaults(options);
      ArchiveOutputStream.call(this, options);
      this._entry = null;
      this._entries = [];
      this._archive = {
        centralLength: 0,
        centralOffset: 0,
        comment: "",
        finish: false,
        finished: false,
        processing: false,
        forceZip64: options.forceZip64,
        forceLocalTime: options.forceLocalTime
      };
    };
    inherits(ZipArchiveOutputStream, ArchiveOutputStream);
    ZipArchiveOutputStream.prototype._afterAppend = function(ae) {
      this._entries.push(ae);
      if (ae.getGeneralPurposeBit().usesDataDescriptor()) {
        this._writeDataDescriptor(ae);
      }
      this._archive.processing = false;
      this._entry = null;
      if (this._archive.finish && !this._archive.finished) {
        this._finish();
      }
    };
    ZipArchiveOutputStream.prototype._appendBuffer = function(ae, source, callback) {
      if (source.length === 0) {
        ae.setMethod(constants3.METHOD_STORED);
      }
      var method = ae.getMethod();
      if (method === constants3.METHOD_STORED) {
        ae.setSize(source.length);
        ae.setCompressedSize(source.length);
        ae.setCrc(crc32.buf(source) >>> 0);
      }
      this._writeLocalFileHeader(ae);
      if (method === constants3.METHOD_STORED) {
        this.write(source);
        this._afterAppend(ae);
        callback(null, ae);
        return;
      } else if (method === constants3.METHOD_DEFLATED) {
        this._smartStream(ae, callback).end(source);
        return;
      } else {
        callback(new Error("compression method " + method + " not implemented"));
        return;
      }
    };
    ZipArchiveOutputStream.prototype._appendStream = function(ae, source, callback) {
      ae.getGeneralPurposeBit().useDataDescriptor(true);
      ae.setVersionNeededToExtract(constants3.MIN_VERSION_DATA_DESCRIPTOR);
      this._writeLocalFileHeader(ae);
      var smart = this._smartStream(ae, callback);
      source.once("error", function(err) {
        smart.emit("error", err);
        smart.end();
      });
      source.pipe(smart);
    };
    ZipArchiveOutputStream.prototype._defaults = function(o3) {
      if (typeof o3 !== "object") {
        o3 = {};
      }
      if (typeof o3.zlib !== "object") {
        o3.zlib = {};
      }
      if (typeof o3.zlib.level !== "number") {
        o3.zlib.level = constants3.ZLIB_BEST_SPEED;
      }
      o3.forceZip64 = !!o3.forceZip64;
      o3.forceLocalTime = !!o3.forceLocalTime;
      return o3;
    };
    ZipArchiveOutputStream.prototype._finish = function() {
      this._archive.centralOffset = this.offset;
      this._entries.forEach(function(ae) {
        this._writeCentralFileHeader(ae);
      }.bind(this));
      this._archive.centralLength = this.offset - this._archive.centralOffset;
      if (this.isZip64()) {
        this._writeCentralDirectoryZip64();
      }
      this._writeCentralDirectoryEnd();
      this._archive.processing = false;
      this._archive.finish = true;
      this._archive.finished = true;
      this.end();
    };
    ZipArchiveOutputStream.prototype._normalizeEntry = function(ae) {
      if (ae.getMethod() === -1) {
        ae.setMethod(constants3.METHOD_DEFLATED);
      }
      if (ae.getMethod() === constants3.METHOD_DEFLATED) {
        ae.getGeneralPurposeBit().useDataDescriptor(true);
        ae.setVersionNeededToExtract(constants3.MIN_VERSION_DATA_DESCRIPTOR);
      }
      if (ae.getTime() === -1) {
        ae.setTime(/* @__PURE__ */ new Date(), this._archive.forceLocalTime);
      }
      ae._offsets = {
        file: 0,
        data: 0,
        contents: 0
      };
    };
    ZipArchiveOutputStream.prototype._smartStream = function(ae, callback) {
      var deflate = ae.getMethod() === constants3.METHOD_DEFLATED;
      var process3 = deflate ? new DeflateCRC32Stream(this.options.zlib) : new CRC32Stream();
      var error5 = null;
      function handleStuff() {
        var digest = process3.digest().readUInt32BE(0);
        ae.setCrc(digest);
        ae.setSize(process3.size());
        ae.setCompressedSize(process3.size(true));
        this._afterAppend(ae);
        callback(error5, ae);
      }
      __name(handleStuff, "handleStuff");
      process3.once("end", handleStuff.bind(this));
      process3.once("error", function(err) {
        error5 = err;
      });
      process3.pipe(this, { end: false });
      return process3;
    };
    ZipArchiveOutputStream.prototype._writeCentralDirectoryEnd = function() {
      var records = this._entries.length;
      var size = this._archive.centralLength;
      var offset = this._archive.centralOffset;
      if (this.isZip64()) {
        records = constants3.ZIP64_MAGIC_SHORT;
        size = constants3.ZIP64_MAGIC;
        offset = constants3.ZIP64_MAGIC;
      }
      this.write(zipUtil.getLongBytes(constants3.SIG_EOCD));
      this.write(constants3.SHORT_ZERO);
      this.write(constants3.SHORT_ZERO);
      this.write(zipUtil.getShortBytes(records));
      this.write(zipUtil.getShortBytes(records));
      this.write(zipUtil.getLongBytes(size));
      this.write(zipUtil.getLongBytes(offset));
      var comment = this.getComment();
      var commentLength = Buffer.byteLength(comment);
      this.write(zipUtil.getShortBytes(commentLength));
      this.write(comment);
    };
    ZipArchiveOutputStream.prototype._writeCentralDirectoryZip64 = function() {
      this.write(zipUtil.getLongBytes(constants3.SIG_ZIP64_EOCD));
      this.write(zipUtil.getEightBytes(44));
      this.write(zipUtil.getShortBytes(constants3.MIN_VERSION_ZIP64));
      this.write(zipUtil.getShortBytes(constants3.MIN_VERSION_ZIP64));
      this.write(constants3.LONG_ZERO);
      this.write(constants3.LONG_ZERO);
      this.write(zipUtil.getEightBytes(this._entries.length));
      this.write(zipUtil.getEightBytes(this._entries.length));
      this.write(zipUtil.getEightBytes(this._archive.centralLength));
      this.write(zipUtil.getEightBytes(this._archive.centralOffset));
      this.write(zipUtil.getLongBytes(constants3.SIG_ZIP64_EOCD_LOC));
      this.write(constants3.LONG_ZERO);
      this.write(zipUtil.getEightBytes(this._archive.centralOffset + this._archive.centralLength));
      this.write(zipUtil.getLongBytes(1));
    };
    ZipArchiveOutputStream.prototype._writeCentralFileHeader = function(ae) {
      var gpb = ae.getGeneralPurposeBit();
      var method = ae.getMethod();
      var fileOffset = ae._offsets.file;
      var size = ae.getSize();
      var compressedSize = ae.getCompressedSize();
      if (ae.isZip64() || fileOffset > constants3.ZIP64_MAGIC) {
        size = constants3.ZIP64_MAGIC;
        compressedSize = constants3.ZIP64_MAGIC;
        fileOffset = constants3.ZIP64_MAGIC;
        ae.setVersionNeededToExtract(constants3.MIN_VERSION_ZIP64);
        var extraBuf = Buffer.concat([
          zipUtil.getShortBytes(constants3.ZIP64_EXTRA_ID),
          zipUtil.getShortBytes(24),
          zipUtil.getEightBytes(ae.getSize()),
          zipUtil.getEightBytes(ae.getCompressedSize()),
          zipUtil.getEightBytes(ae._offsets.file)
        ], 28);
        ae.setExtra(extraBuf);
      }
      this.write(zipUtil.getLongBytes(constants3.SIG_CFH));
      this.write(zipUtil.getShortBytes(ae.getPlatform() << 8 | constants3.VERSION_MADEBY));
      this.write(zipUtil.getShortBytes(ae.getVersionNeededToExtract()));
      this.write(gpb.encode());
      this.write(zipUtil.getShortBytes(method));
      this.write(zipUtil.getLongBytes(ae.getTimeDos()));
      this.write(zipUtil.getLongBytes(ae.getCrc()));
      this.write(zipUtil.getLongBytes(compressedSize));
      this.write(zipUtil.getLongBytes(size));
      var name = ae.getName();
      var comment = ae.getComment();
      var extra = ae.getCentralDirectoryExtra();
      if (gpb.usesUTF8ForNames()) {
        name = Buffer.from(name);
        comment = Buffer.from(comment);
      }
      this.write(zipUtil.getShortBytes(name.length));
      this.write(zipUtil.getShortBytes(extra.length));
      this.write(zipUtil.getShortBytes(comment.length));
      this.write(constants3.SHORT_ZERO);
      this.write(zipUtil.getShortBytes(ae.getInternalAttributes()));
      this.write(zipUtil.getLongBytes(ae.getExternalAttributes()));
      this.write(zipUtil.getLongBytes(fileOffset));
      this.write(name);
      this.write(extra);
      this.write(comment);
    };
    ZipArchiveOutputStream.prototype._writeDataDescriptor = function(ae) {
      this.write(zipUtil.getLongBytes(constants3.SIG_DD));
      this.write(zipUtil.getLongBytes(ae.getCrc()));
      if (ae.isZip64()) {
        this.write(zipUtil.getEightBytes(ae.getCompressedSize()));
        this.write(zipUtil.getEightBytes(ae.getSize()));
      } else {
        this.write(zipUtil.getLongBytes(ae.getCompressedSize()));
        this.write(zipUtil.getLongBytes(ae.getSize()));
      }
    };
    ZipArchiveOutputStream.prototype._writeLocalFileHeader = function(ae) {
      var gpb = ae.getGeneralPurposeBit();
      var method = ae.getMethod();
      var name = ae.getName();
      var extra = ae.getLocalFileDataExtra();
      if (ae.isZip64()) {
        gpb.useDataDescriptor(true);
        ae.setVersionNeededToExtract(constants3.MIN_VERSION_ZIP64);
      }
      if (gpb.usesUTF8ForNames()) {
        name = Buffer.from(name);
      }
      ae._offsets.file = this.offset;
      this.write(zipUtil.getLongBytes(constants3.SIG_LFH));
      this.write(zipUtil.getShortBytes(ae.getVersionNeededToExtract()));
      this.write(gpb.encode());
      this.write(zipUtil.getShortBytes(method));
      this.write(zipUtil.getLongBytes(ae.getTimeDos()));
      ae._offsets.data = this.offset;
      if (gpb.usesDataDescriptor()) {
        this.write(constants3.LONG_ZERO);
        this.write(constants3.LONG_ZERO);
        this.write(constants3.LONG_ZERO);
      } else {
        this.write(zipUtil.getLongBytes(ae.getCrc()));
        this.write(zipUtil.getLongBytes(ae.getCompressedSize()));
        this.write(zipUtil.getLongBytes(ae.getSize()));
      }
      this.write(zipUtil.getShortBytes(name.length));
      this.write(zipUtil.getShortBytes(extra.length));
      this.write(name);
      this.write(extra);
      ae._offsets.contents = this.offset;
    };
    ZipArchiveOutputStream.prototype.getComment = function(comment) {
      return this._archive.comment !== null ? this._archive.comment : "";
    };
    ZipArchiveOutputStream.prototype.isZip64 = function() {
      return this._archive.forceZip64 || this._entries.length > constants3.ZIP64_MAGIC_SHORT || this._archive.centralLength > constants3.ZIP64_MAGIC || this._archive.centralOffset > constants3.ZIP64_MAGIC;
    };
    ZipArchiveOutputStream.prototype.setComment = function(comment) {
      this._archive.comment = comment;
    };
  }
});

// ../../node_modules/compress-commons/lib/compress-commons.js
var require_compress_commons = __commonJS({
  "../../node_modules/compress-commons/lib/compress-commons.js"(exports2, module2) {
    module2.exports = {
      ArchiveEntry: require_archive_entry(),
      ZipArchiveEntry: require_zip_archive_entry(),
      ArchiveOutputStream: require_archive_output_stream(),
      ZipArchiveOutputStream: require_zip_archive_output_stream()
    };
  }
});

// ../../node_modules/zip-stream/index.js
var require_zip_stream = __commonJS({
  "../../node_modules/zip-stream/index.js"(exports2, module2) {
    var inherits = require("util").inherits;
    var ZipArchiveOutputStream = require_compress_commons().ZipArchiveOutputStream;
    var ZipArchiveEntry = require_compress_commons().ZipArchiveEntry;
    var util11 = require_archiver_utils();
    var ZipStream = module2.exports = function(options) {
      if (!(this instanceof ZipStream)) {
        return new ZipStream(options);
      }
      options = this.options = options || {};
      options.zlib = options.zlib || {};
      ZipArchiveOutputStream.call(this, options);
      if (typeof options.level === "number" && options.level >= 0) {
        options.zlib.level = options.level;
        delete options.level;
      }
      if (!options.forceZip64 && typeof options.zlib.level === "number" && options.zlib.level === 0) {
        options.store = true;
      }
      options.namePrependSlash = options.namePrependSlash || false;
      if (options.comment && options.comment.length > 0) {
        this.setComment(options.comment);
      }
    };
    inherits(ZipStream, ZipArchiveOutputStream);
    ZipStream.prototype._normalizeFileData = function(data3) {
      data3 = util11.defaults(data3, {
        type: "file",
        name: null,
        namePrependSlash: this.options.namePrependSlash,
        linkname: null,
        date: null,
        mode: null,
        store: this.options.store,
        comment: ""
      });
      var isDir = data3.type === "directory";
      var isSymlink = data3.type === "symlink";
      if (data3.name) {
        data3.name = util11.sanitizePath(data3.name);
        if (!isSymlink && data3.name.slice(-1) === "/") {
          isDir = true;
          data3.type = "directory";
        } else if (isDir) {
          data3.name += "/";
        }
      }
      if (isDir || isSymlink) {
        data3.store = true;
      }
      data3.date = util11.dateify(data3.date);
      return data3;
    };
    ZipStream.prototype.entry = function(source, data3, callback) {
      if (typeof callback !== "function") {
        callback = this._emitErrorCallback.bind(this);
      }
      data3 = this._normalizeFileData(data3);
      if (data3.type !== "file" && data3.type !== "directory" && data3.type !== "symlink") {
        callback(new Error(data3.type + " entries not currently supported"));
        return;
      }
      if (typeof data3.name !== "string" || data3.name.length === 0) {
        callback(new Error("entry name must be a non-empty string value"));
        return;
      }
      if (data3.type === "symlink" && typeof data3.linkname !== "string") {
        callback(new Error("entry linkname must be a non-empty string value when type equals symlink"));
        return;
      }
      var entry = new ZipArchiveEntry(data3.name);
      entry.setTime(data3.date, this.options.forceLocalTime);
      if (data3.namePrependSlash) {
        entry.setName(data3.name, true);
      }
      if (data3.store) {
        entry.setMethod(0);
      }
      if (data3.comment.length > 0) {
        entry.setComment(data3.comment);
      }
      if (data3.type === "symlink" && typeof data3.mode !== "number") {
        data3.mode = 40960;
      }
      if (typeof data3.mode === "number") {
        if (data3.type === "symlink") {
          data3.mode |= 40960;
        }
        entry.setUnixMode(data3.mode);
      }
      if (data3.type === "symlink" && typeof data3.linkname === "string") {
        source = Buffer.from(data3.linkname);
      }
      return ZipArchiveOutputStream.prototype.entry.call(this, entry, source, callback);
    };
    ZipStream.prototype.finalize = function() {
      this.finish();
    };
  }
});

// ../../node_modules/archiver/lib/plugins/zip.js
var require_zip = __commonJS({
  "../../node_modules/archiver/lib/plugins/zip.js"(exports2, module2) {
    var engine = require_zip_stream();
    var util11 = require_archiver_utils();
    var Zip = /* @__PURE__ */ __name(function(options) {
      if (!(this instanceof Zip)) {
        return new Zip(options);
      }
      options = this.options = util11.defaults(options, {
        comment: "",
        forceUTC: false,
        namePrependSlash: false,
        store: false
      });
      this.supports = {
        directory: true,
        symlink: true
      };
      this.engine = new engine(options);
    }, "Zip");
    Zip.prototype.append = function(source, data3, callback) {
      this.engine.entry(source, data3, callback);
    };
    Zip.prototype.finalize = function() {
      this.engine.finalize();
    };
    Zip.prototype.on = function() {
      return this.engine.on.apply(this.engine, arguments);
    };
    Zip.prototype.pipe = function() {
      return this.engine.pipe.apply(this.engine, arguments);
    };
    Zip.prototype.unpipe = function() {
      return this.engine.unpipe.apply(this.engine, arguments);
    };
    module2.exports = Zip;
  }
});

// ../../node_modules/fast-fifo/fixed-size.js
var require_fixed_size = __commonJS({
  "../../node_modules/fast-fifo/fixed-size.js"(exports2, module2) {
    module2.exports = class FixedFIFO {
      static {
        __name(this, "FixedFIFO");
      }
      constructor(hwm) {
        if (!(hwm > 0) || (hwm - 1 & hwm) !== 0) throw new Error("Max size for a FixedFIFO should be a power of two");
        this.buffer = new Array(hwm);
        this.mask = hwm - 1;
        this.top = 0;
        this.btm = 0;
        this.next = null;
      }
      clear() {
        this.top = this.btm = 0;
        this.next = null;
        this.buffer.fill(void 0);
      }
      push(data3) {
        if (this.buffer[this.top] !== void 0) return false;
        this.buffer[this.top] = data3;
        this.top = this.top + 1 & this.mask;
        return true;
      }
      shift() {
        const last = this.buffer[this.btm];
        if (last === void 0) return void 0;
        this.buffer[this.btm] = void 0;
        this.btm = this.btm + 1 & this.mask;
        return last;
      }
      peek() {
        return this.buffer[this.btm];
      }
      isEmpty() {
        return this.buffer[this.btm] === void 0;
      }
    };
  }
});

// ../../node_modules/fast-fifo/index.js
var require_fast_fifo = __commonJS({
  "../../node_modules/fast-fifo/index.js"(exports2, module2) {
    var FixedFIFO = require_fixed_size();
    module2.exports = class FastFIFO {
      static {
        __name(this, "FastFIFO");
      }
      constructor(hwm) {
        this.hwm = hwm || 16;
        this.head = new FixedFIFO(this.hwm);
        this.tail = this.head;
        this.length = 0;
      }
      clear() {
        this.head = this.tail;
        this.head.clear();
        this.length = 0;
      }
      push(val) {
        this.length++;
        if (!this.head.push(val)) {
          const prev = this.head;
          this.head = prev.next = new FixedFIFO(2 * this.head.buffer.length);
          this.head.push(val);
        }
      }
      shift() {
        if (this.length !== 0) this.length--;
        const val = this.tail.shift();
        if (val === void 0 && this.tail.next) {
          const next = this.tail.next;
          this.tail.next = null;
          this.tail = next;
          return this.tail.shift();
        }
        return val;
      }
      peek() {
        const val = this.tail.peek();
        if (val === void 0 && this.tail.next) return this.tail.next.peek();
        return val;
      }
      isEmpty() {
        return this.length === 0;
      }
    };
  }
});

// ../../node_modules/b4a/index.js
var require_b4a = __commonJS({
  "../../node_modules/b4a/index.js"(exports2, module2) {
    function isBuffer(value) {
      return Buffer.isBuffer(value) || value instanceof Uint8Array;
    }
    __name(isBuffer, "isBuffer");
    function isEncoding(encoding) {
      return Buffer.isEncoding(encoding);
    }
    __name(isEncoding, "isEncoding");
    function alloc2(size, fill2, encoding) {
      return Buffer.alloc(size, fill2, encoding);
    }
    __name(alloc2, "alloc");
    function allocUnsafe(size) {
      return Buffer.allocUnsafe(size);
    }
    __name(allocUnsafe, "allocUnsafe");
    function allocUnsafeSlow(size) {
      return Buffer.allocUnsafeSlow(size);
    }
    __name(allocUnsafeSlow, "allocUnsafeSlow");
    function byteLength(string, encoding) {
      return Buffer.byteLength(string, encoding);
    }
    __name(byteLength, "byteLength");
    function compare2(a3, b3) {
      return Buffer.compare(a3, b3);
    }
    __name(compare2, "compare");
    function concat(buffers, totalLength) {
      return Buffer.concat(buffers, totalLength);
    }
    __name(concat, "concat");
    function copy2(source, target, targetStart, start, end) {
      return toBuffer(source).copy(target, targetStart, start, end);
    }
    __name(copy2, "copy");
    function equals(a3, b3) {
      return toBuffer(a3).equals(b3);
    }
    __name(equals, "equals");
    function fill(buffer, value, offset, end, encoding) {
      return toBuffer(buffer).fill(value, offset, end, encoding);
    }
    __name(fill, "fill");
    function from(value, encodingOrOffset, length) {
      return Buffer.from(value, encodingOrOffset, length);
    }
    __name(from, "from");
    function includes(buffer, value, byteOffset, encoding) {
      return toBuffer(buffer).includes(value, byteOffset, encoding);
    }
    __name(includes, "includes");
    function indexOf(buffer, value, byfeOffset, encoding) {
      return toBuffer(buffer).indexOf(value, byfeOffset, encoding);
    }
    __name(indexOf, "indexOf");
    function lastIndexOf(buffer, value, byteOffset, encoding) {
      return toBuffer(buffer).lastIndexOf(value, byteOffset, encoding);
    }
    __name(lastIndexOf, "lastIndexOf");
    function swap16(buffer) {
      return toBuffer(buffer).swap16();
    }
    __name(swap16, "swap16");
    function swap32(buffer) {
      return toBuffer(buffer).swap32();
    }
    __name(swap32, "swap32");
    function swap64(buffer) {
      return toBuffer(buffer).swap64();
    }
    __name(swap64, "swap64");
    function toBuffer(buffer) {
      if (Buffer.isBuffer(buffer)) return buffer;
      return Buffer.from(buffer.buffer, buffer.byteOffset, buffer.byteLength);
    }
    __name(toBuffer, "toBuffer");
    function toString(buffer, encoding, start, end) {
      return toBuffer(buffer).toString(encoding, start, end);
    }
    __name(toString, "toString");
    function write(buffer, string, offset, length, encoding) {
      return toBuffer(buffer).write(string, offset, length, encoding);
    }
    __name(write, "write");
    function writeDoubleLE(buffer, value, offset) {
      return toBuffer(buffer).writeDoubleLE(value, offset);
    }
    __name(writeDoubleLE, "writeDoubleLE");
    function writeFloatLE(buffer, value, offset) {
      return toBuffer(buffer).writeFloatLE(value, offset);
    }
    __name(writeFloatLE, "writeFloatLE");
    function writeUInt32LE(buffer, value, offset) {
      return toBuffer(buffer).writeUInt32LE(value, offset);
    }
    __name(writeUInt32LE, "writeUInt32LE");
    function writeInt32LE(buffer, value, offset) {
      return toBuffer(buffer).writeInt32LE(value, offset);
    }
    __name(writeInt32LE, "writeInt32LE");
    function readDoubleLE(buffer, offset) {
      return toBuffer(buffer).readDoubleLE(offset);
    }
    __name(readDoubleLE, "readDoubleLE");
    function readFloatLE(buffer, offset) {
      return toBuffer(buffer).readFloatLE(offset);
    }
    __name(readFloatLE, "readFloatLE");
    function readUInt32LE(buffer, offset) {
      return toBuffer(buffer).readUInt32LE(offset);
    }
    __name(readUInt32LE, "readUInt32LE");
    function readInt32LE(buffer, offset) {
      return toBuffer(buffer).readInt32LE(offset);
    }
    __name(readInt32LE, "readInt32LE");
    function writeDoubleBE(buffer, value, offset) {
      return toBuffer(buffer).writeDoubleBE(value, offset);
    }
    __name(writeDoubleBE, "writeDoubleBE");
    function writeFloatBE(buffer, value, offset) {
      return toBuffer(buffer).writeFloatBE(value, offset);
    }
    __name(writeFloatBE, "writeFloatBE");
    function writeUInt32BE(buffer, value, offset) {
      return toBuffer(buffer).writeUInt32BE(value, offset);
    }
    __name(writeUInt32BE, "writeUInt32BE");
    function writeInt32BE(buffer, value, offset) {
      return toBuffer(buffer).writeInt32BE(value, offset);
    }
    __name(writeInt32BE, "writeInt32BE");
    function readDoubleBE(buffer, offset) {
      return toBuffer(buffer).readDoubleBE(offset);
    }
    __name(readDoubleBE, "readDoubleBE");
    function readFloatBE(buffer, offset) {
      return toBuffer(buffer).readFloatBE(offset);
    }
    __name(readFloatBE, "readFloatBE");
    function readUInt32BE(buffer, offset) {
      return toBuffer(buffer).readUInt32BE(offset);
    }
    __name(readUInt32BE, "readUInt32BE");
    function readInt32BE(buffer, offset) {
      return toBuffer(buffer).readInt32BE(offset);
    }
    __name(readInt32BE, "readInt32BE");
    module2.exports = {
      isBuffer,
      isEncoding,
      alloc: alloc2,
      allocUnsafe,
      allocUnsafeSlow,
      byteLength,
      compare: compare2,
      concat,
      copy: copy2,
      equals,
      fill,
      from,
      includes,
      indexOf,
      lastIndexOf,
      swap16,
      swap32,
      swap64,
      toBuffer,
      toString,
      write,
      writeDoubleLE,
      writeFloatLE,
      writeUInt32LE,
      writeInt32LE,
      readDoubleLE,
      readFloatLE,
      readUInt32LE,
      readInt32LE,
      writeDoubleBE,
      writeFloatBE,
      writeUInt32BE,
      writeInt32BE,
      readDoubleBE,
      readFloatBE,
      readUInt32BE,
      readInt32BE
    };
  }
});

// ../../node_modules/text-decoder/lib/pass-through-decoder.js
var require_pass_through_decoder = __commonJS({
  "../../node_modules/text-decoder/lib/pass-through-decoder.js"(exports2, module2) {
    var b4a = require_b4a();
    module2.exports = class PassThroughDecoder {
      static {
        __name(this, "PassThroughDecoder");
      }
      constructor(encoding) {
        this.encoding = encoding;
      }
      get remaining() {
        return 0;
      }
      decode(tail) {
        return b4a.toString(tail, this.encoding);
      }
      flush() {
        return "";
      }
    };
  }
});

// ../../node_modules/text-decoder/lib/utf8-decoder.js
var require_utf8_decoder = __commonJS({
  "../../node_modules/text-decoder/lib/utf8-decoder.js"(exports2, module2) {
    var b4a = require_b4a();
    module2.exports = class UTF8Decoder {
      static {
        __name(this, "UTF8Decoder");
      }
      constructor() {
        this.codePoint = 0;
        this.bytesSeen = 0;
        this.bytesNeeded = 0;
        this.lowerBoundary = 128;
        this.upperBoundary = 191;
      }
      get remaining() {
        return this.bytesSeen;
      }
      decode(data3) {
        if (this.bytesNeeded === 0) {
          let isBoundary = true;
          for (let i3 = Math.max(0, data3.byteLength - 4), n3 = data3.byteLength; i3 < n3 && isBoundary; i3++) {
            isBoundary = data3[i3] <= 127;
          }
          if (isBoundary) return b4a.toString(data3, "utf8");
        }
        let result2 = "";
        for (let i3 = 0, n3 = data3.byteLength; i3 < n3; i3++) {
          const byte = data3[i3];
          if (this.bytesNeeded === 0) {
            if (byte <= 127) {
              result2 += String.fromCharCode(byte);
            } else {
              this.bytesSeen = 1;
              if (byte >= 194 && byte <= 223) {
                this.bytesNeeded = 2;
                this.codePoint = byte & 31;
              } else if (byte >= 224 && byte <= 239) {
                if (byte === 224) this.lowerBoundary = 160;
                else if (byte === 237) this.upperBoundary = 159;
                this.bytesNeeded = 3;
                this.codePoint = byte & 15;
              } else if (byte >= 240 && byte <= 244) {
                if (byte === 240) this.lowerBoundary = 144;
                if (byte === 244) this.upperBoundary = 143;
                this.bytesNeeded = 4;
                this.codePoint = byte & 7;
              } else {
                result2 += "\uFFFD";
              }
            }
            continue;
          }
          if (byte < this.lowerBoundary || byte > this.upperBoundary) {
            this.codePoint = 0;
            this.bytesNeeded = 0;
            this.bytesSeen = 0;
            this.lowerBoundary = 128;
            this.upperBoundary = 191;
            result2 += "\uFFFD";
            continue;
          }
          this.lowerBoundary = 128;
          this.upperBoundary = 191;
          this.codePoint = this.codePoint << 6 | byte & 63;
          this.bytesSeen++;
          if (this.bytesSeen !== this.bytesNeeded) continue;
          result2 += String.fromCodePoint(this.codePoint);
          this.codePoint = 0;
          this.bytesNeeded = 0;
          this.bytesSeen = 0;
        }
        return result2;
      }
      flush() {
        const result2 = this.bytesNeeded > 0 ? "\uFFFD" : "";
        this.codePoint = 0;
        this.bytesNeeded = 0;
        this.bytesSeen = 0;
        this.lowerBoundary = 128;
        this.upperBoundary = 191;
        return result2;
      }
    };
  }
});

// ../../node_modules/text-decoder/index.js
var require_text_decoder = __commonJS({
  "../../node_modules/text-decoder/index.js"(exports2, module2) {
    var PassThroughDecoder = require_pass_through_decoder();
    var UTF8Decoder = require_utf8_decoder();
    module2.exports = class TextDecoder {
      static {
        __name(this, "TextDecoder");
      }
      constructor(encoding = "utf8") {
        this.encoding = normalizeEncoding(encoding);
        switch (this.encoding) {
          case "utf8":
            this.decoder = new UTF8Decoder();
            break;
          case "utf16le":
          case "base64":
            throw new Error("Unsupported encoding: " + this.encoding);
          default:
            this.decoder = new PassThroughDecoder(this.encoding);
        }
      }
      get remaining() {
        return this.decoder.remaining;
      }
      push(data3) {
        if (typeof data3 === "string") return data3;
        return this.decoder.decode(data3);
      }
      // For Node.js compatibility
      write(data3) {
        return this.push(data3);
      }
      end(data3) {
        let result2 = "";
        if (data3) result2 = this.push(data3);
        result2 += this.decoder.flush();
        return result2;
      }
    };
    function normalizeEncoding(encoding) {
      encoding = encoding.toLowerCase();
      switch (encoding) {
        case "utf8":
        case "utf-8":
          return "utf8";
        case "ucs2":
        case "ucs-2":
        case "utf16le":
        case "utf-16le":
          return "utf16le";
        case "latin1":
        case "binary":
          return "latin1";
        case "base64":
        case "ascii":
        case "hex":
          return encoding;
        default:
          throw new Error("Unknown encoding: " + encoding);
      }
    }
    __name(normalizeEncoding, "normalizeEncoding");
  }
});

// ../../node_modules/streamx/index.js
var require_streamx = __commonJS({
  "../../node_modules/streamx/index.js"(exports2, module2) {
    var { EventEmitter: EventEmitter2 } = require("events");
    var STREAM_DESTROYED = new Error("Stream was destroyed");
    var PREMATURE_CLOSE = new Error("Premature close");
    var FIFO = require_fast_fifo();
    var TextDecoder2 = require_text_decoder();
    var qmt = typeof queueMicrotask === "undefined" ? (fn) => global.process.nextTick(fn) : queueMicrotask;
    var MAX = (1 << 29) - 1;
    var OPENING = 1;
    var PREDESTROYING = 2;
    var DESTROYING = 4;
    var DESTROYED2 = 8;
    var NOT_OPENING = MAX ^ OPENING;
    var NOT_PREDESTROYING = MAX ^ PREDESTROYING;
    var READ_ACTIVE = 1 << 4;
    var READ_UPDATING = 2 << 4;
    var READ_PRIMARY = 4 << 4;
    var READ_QUEUED = 8 << 4;
    var READ_RESUMED = 16 << 4;
    var READ_PIPE_DRAINED = 32 << 4;
    var READ_ENDING = 64 << 4;
    var READ_EMIT_DATA = 128 << 4;
    var READ_EMIT_READABLE = 256 << 4;
    var READ_EMITTED_READABLE = 512 << 4;
    var READ_DONE = 1024 << 4;
    var READ_NEXT_TICK = 2048 << 4;
    var READ_NEEDS_PUSH = 4096 << 4;
    var READ_READ_AHEAD = 8192 << 4;
    var READ_FLOWING = READ_RESUMED | READ_PIPE_DRAINED;
    var READ_ACTIVE_AND_NEEDS_PUSH = READ_ACTIVE | READ_NEEDS_PUSH;
    var READ_PRIMARY_AND_ACTIVE = READ_PRIMARY | READ_ACTIVE;
    var READ_EMIT_READABLE_AND_QUEUED = READ_EMIT_READABLE | READ_QUEUED;
    var READ_RESUMED_READ_AHEAD = READ_RESUMED | READ_READ_AHEAD;
    var READ_NOT_ACTIVE = MAX ^ READ_ACTIVE;
    var READ_NON_PRIMARY = MAX ^ READ_PRIMARY;
    var READ_NON_PRIMARY_AND_PUSHED = MAX ^ (READ_PRIMARY | READ_NEEDS_PUSH);
    var READ_PUSHED = MAX ^ READ_NEEDS_PUSH;
    var READ_PAUSED = MAX ^ READ_RESUMED;
    var READ_NOT_QUEUED = MAX ^ (READ_QUEUED | READ_EMITTED_READABLE);
    var READ_NOT_ENDING = MAX ^ READ_ENDING;
    var READ_PIPE_NOT_DRAINED = MAX ^ READ_FLOWING;
    var READ_NOT_NEXT_TICK = MAX ^ READ_NEXT_TICK;
    var READ_NOT_UPDATING = MAX ^ READ_UPDATING;
    var READ_NO_READ_AHEAD = MAX ^ READ_READ_AHEAD;
    var READ_PAUSED_NO_READ_AHEAD = MAX ^ READ_RESUMED_READ_AHEAD;
    var WRITE_ACTIVE = 1 << 18;
    var WRITE_UPDATING = 2 << 18;
    var WRITE_PRIMARY = 4 << 18;
    var WRITE_QUEUED = 8 << 18;
    var WRITE_UNDRAINED = 16 << 18;
    var WRITE_DONE = 32 << 18;
    var WRITE_EMIT_DRAIN = 64 << 18;
    var WRITE_NEXT_TICK = 128 << 18;
    var WRITE_WRITING = 256 << 18;
    var WRITE_FINISHING = 512 << 18;
    var WRITE_CORKED = 1024 << 18;
    var WRITE_NOT_ACTIVE = MAX ^ (WRITE_ACTIVE | WRITE_WRITING);
    var WRITE_NON_PRIMARY = MAX ^ WRITE_PRIMARY;
    var WRITE_NOT_FINISHING = MAX ^ (WRITE_ACTIVE | WRITE_FINISHING);
    var WRITE_DRAINED = MAX ^ WRITE_UNDRAINED;
    var WRITE_NOT_QUEUED = MAX ^ WRITE_QUEUED;
    var WRITE_NOT_NEXT_TICK = MAX ^ WRITE_NEXT_TICK;
    var WRITE_NOT_UPDATING = MAX ^ WRITE_UPDATING;
    var WRITE_NOT_CORKED = MAX ^ WRITE_CORKED;
    var ACTIVE = READ_ACTIVE | WRITE_ACTIVE;
    var NOT_ACTIVE = MAX ^ ACTIVE;
    var DONE = READ_DONE | WRITE_DONE;
    var DESTROY_STATUS = DESTROYING | DESTROYED2 | PREDESTROYING;
    var OPEN_STATUS = DESTROY_STATUS | OPENING;
    var AUTO_DESTROY = DESTROY_STATUS | DONE;
    var NON_PRIMARY = WRITE_NON_PRIMARY & READ_NON_PRIMARY;
    var ACTIVE_OR_TICKING = WRITE_NEXT_TICK | READ_NEXT_TICK;
    var TICKING = ACTIVE_OR_TICKING & NOT_ACTIVE;
    var IS_OPENING = OPEN_STATUS | TICKING;
    var READ_PRIMARY_STATUS = OPEN_STATUS | READ_ENDING | READ_DONE;
    var READ_STATUS = OPEN_STATUS | READ_DONE | READ_QUEUED;
    var READ_ENDING_STATUS = OPEN_STATUS | READ_ENDING | READ_QUEUED;
    var READ_READABLE_STATUS = OPEN_STATUS | READ_EMIT_READABLE | READ_QUEUED | READ_EMITTED_READABLE;
    var SHOULD_NOT_READ = OPEN_STATUS | READ_ACTIVE | READ_ENDING | READ_DONE | READ_NEEDS_PUSH | READ_READ_AHEAD;
    var READ_BACKPRESSURE_STATUS = DESTROY_STATUS | READ_ENDING | READ_DONE;
    var READ_UPDATE_SYNC_STATUS = READ_UPDATING | OPEN_STATUS | READ_NEXT_TICK | READ_PRIMARY;
    var READ_NEXT_TICK_OR_OPENING = READ_NEXT_TICK | OPENING;
    var WRITE_PRIMARY_STATUS = OPEN_STATUS | WRITE_FINISHING | WRITE_DONE;
    var WRITE_QUEUED_AND_UNDRAINED = WRITE_QUEUED | WRITE_UNDRAINED;
    var WRITE_QUEUED_AND_ACTIVE = WRITE_QUEUED | WRITE_ACTIVE;
    var WRITE_DRAIN_STATUS = WRITE_QUEUED | WRITE_UNDRAINED | OPEN_STATUS | WRITE_ACTIVE;
    var WRITE_STATUS = OPEN_STATUS | WRITE_ACTIVE | WRITE_QUEUED | WRITE_CORKED;
    var WRITE_PRIMARY_AND_ACTIVE = WRITE_PRIMARY | WRITE_ACTIVE;
    var WRITE_ACTIVE_AND_WRITING = WRITE_ACTIVE | WRITE_WRITING;
    var WRITE_FINISHING_STATUS = OPEN_STATUS | WRITE_FINISHING | WRITE_QUEUED_AND_ACTIVE | WRITE_DONE;
    var WRITE_BACKPRESSURE_STATUS = WRITE_UNDRAINED | DESTROY_STATUS | WRITE_FINISHING | WRITE_DONE;
    var WRITE_UPDATE_SYNC_STATUS = WRITE_UPDATING | OPEN_STATUS | WRITE_NEXT_TICK | WRITE_PRIMARY;
    var WRITE_DROP_DATA = WRITE_FINISHING | WRITE_DONE | DESTROY_STATUS;
    var asyncIterator = Symbol.asyncIterator || Symbol("asyncIterator");
    var WritableState = class {
      static {
        __name(this, "WritableState");
      }
      constructor(stream3, { highWaterMark = 16384, map: map3 = null, mapWritable, byteLength, byteLengthWritable } = {}) {
        this.stream = stream3;
        this.queue = new FIFO();
        this.highWaterMark = highWaterMark;
        this.buffered = 0;
        this.error = null;
        this.pipeline = null;
        this.drains = null;
        this.byteLength = byteLengthWritable || byteLength || defaultByteLength;
        this.map = mapWritable || map3;
        this.afterWrite = afterWrite.bind(this);
        this.afterUpdateNextTick = updateWriteNT.bind(this);
      }
      get ended() {
        return (this.stream._duplexState & WRITE_DONE) !== 0;
      }
      push(data3) {
        if ((this.stream._duplexState & WRITE_DROP_DATA) !== 0) return false;
        if (this.map !== null) data3 = this.map(data3);
        this.buffered += this.byteLength(data3);
        this.queue.push(data3);
        if (this.buffered < this.highWaterMark) {
          this.stream._duplexState |= WRITE_QUEUED;
          return true;
        }
        this.stream._duplexState |= WRITE_QUEUED_AND_UNDRAINED;
        return false;
      }
      shift() {
        const data3 = this.queue.shift();
        this.buffered -= this.byteLength(data3);
        if (this.buffered === 0) this.stream._duplexState &= WRITE_NOT_QUEUED;
        return data3;
      }
      end(data3) {
        if (typeof data3 === "function") this.stream.once("finish", data3);
        else if (data3 !== void 0 && data3 !== null) this.push(data3);
        this.stream._duplexState = (this.stream._duplexState | WRITE_FINISHING) & WRITE_NON_PRIMARY;
      }
      autoBatch(data3, cb) {
        const buffer = [];
        const stream3 = this.stream;
        buffer.push(data3);
        while ((stream3._duplexState & WRITE_STATUS) === WRITE_QUEUED_AND_ACTIVE) {
          buffer.push(stream3._writableState.shift());
        }
        if ((stream3._duplexState & OPEN_STATUS) !== 0) return cb(null);
        stream3._writev(buffer, cb);
      }
      update() {
        const stream3 = this.stream;
        stream3._duplexState |= WRITE_UPDATING;
        do {
          while ((stream3._duplexState & WRITE_STATUS) === WRITE_QUEUED) {
            const data3 = this.shift();
            stream3._duplexState |= WRITE_ACTIVE_AND_WRITING;
            stream3._write(data3, this.afterWrite);
          }
          if ((stream3._duplexState & WRITE_PRIMARY_AND_ACTIVE) === 0) this.updateNonPrimary();
        } while (this.continueUpdate() === true);
        stream3._duplexState &= WRITE_NOT_UPDATING;
      }
      updateNonPrimary() {
        const stream3 = this.stream;
        if ((stream3._duplexState & WRITE_FINISHING_STATUS) === WRITE_FINISHING) {
          stream3._duplexState = stream3._duplexState | WRITE_ACTIVE;
          stream3._final(afterFinal.bind(this));
          return;
        }
        if ((stream3._duplexState & DESTROY_STATUS) === DESTROYING) {
          if ((stream3._duplexState & ACTIVE_OR_TICKING) === 0) {
            stream3._duplexState |= ACTIVE;
            stream3._destroy(afterDestroy.bind(this));
          }
          return;
        }
        if ((stream3._duplexState & IS_OPENING) === OPENING) {
          stream3._duplexState = (stream3._duplexState | ACTIVE) & NOT_OPENING;
          stream3._open(afterOpen.bind(this));
        }
      }
      continueUpdate() {
        if ((this.stream._duplexState & WRITE_NEXT_TICK) === 0) return false;
        this.stream._duplexState &= WRITE_NOT_NEXT_TICK;
        return true;
      }
      updateCallback() {
        if ((this.stream._duplexState & WRITE_UPDATE_SYNC_STATUS) === WRITE_PRIMARY) this.update();
        else this.updateNextTick();
      }
      updateNextTick() {
        if ((this.stream._duplexState & WRITE_NEXT_TICK) !== 0) return;
        this.stream._duplexState |= WRITE_NEXT_TICK;
        if ((this.stream._duplexState & WRITE_UPDATING) === 0) qmt(this.afterUpdateNextTick);
      }
    };
    var ReadableState = class {
      static {
        __name(this, "ReadableState");
      }
      constructor(stream3, { highWaterMark = 16384, map: map3 = null, mapReadable, byteLength, byteLengthReadable } = {}) {
        this.stream = stream3;
        this.queue = new FIFO();
        this.highWaterMark = highWaterMark === 0 ? 1 : highWaterMark;
        this.buffered = 0;
        this.readAhead = highWaterMark > 0;
        this.error = null;
        this.pipeline = null;
        this.byteLength = byteLengthReadable || byteLength || defaultByteLength;
        this.map = mapReadable || map3;
        this.pipeTo = null;
        this.afterRead = afterRead.bind(this);
        this.afterUpdateNextTick = updateReadNT.bind(this);
      }
      get ended() {
        return (this.stream._duplexState & READ_DONE) !== 0;
      }
      pipe(pipeTo, cb) {
        if (this.pipeTo !== null) throw new Error("Can only pipe to one destination");
        if (typeof cb !== "function") cb = null;
        this.stream._duplexState |= READ_PIPE_DRAINED;
        this.pipeTo = pipeTo;
        this.pipeline = new Pipeline(this.stream, pipeTo, cb);
        if (cb) this.stream.on("error", noop);
        if (isStreamx(pipeTo)) {
          pipeTo._writableState.pipeline = this.pipeline;
          if (cb) pipeTo.on("error", noop);
          pipeTo.on("finish", this.pipeline.finished.bind(this.pipeline));
        } else {
          const onerror = this.pipeline.done.bind(this.pipeline, pipeTo);
          const onclose = this.pipeline.done.bind(this.pipeline, pipeTo, null);
          pipeTo.on("error", onerror);
          pipeTo.on("close", onclose);
          pipeTo.on("finish", this.pipeline.finished.bind(this.pipeline));
        }
        pipeTo.on("drain", afterDrain.bind(this));
        this.stream.emit("piping", pipeTo);
        pipeTo.emit("pipe", this.stream);
      }
      push(data3) {
        const stream3 = this.stream;
        if (data3 === null) {
          this.highWaterMark = 0;
          stream3._duplexState = (stream3._duplexState | READ_ENDING) & READ_NON_PRIMARY_AND_PUSHED;
          return false;
        }
        if (this.map !== null) {
          data3 = this.map(data3);
          if (data3 === null) {
            stream3._duplexState &= READ_PUSHED;
            return this.buffered < this.highWaterMark;
          }
        }
        this.buffered += this.byteLength(data3);
        this.queue.push(data3);
        stream3._duplexState = (stream3._duplexState | READ_QUEUED) & READ_PUSHED;
        return this.buffered < this.highWaterMark;
      }
      shift() {
        const data3 = this.queue.shift();
        this.buffered -= this.byteLength(data3);
        if (this.buffered === 0) this.stream._duplexState &= READ_NOT_QUEUED;
        return data3;
      }
      unshift(data3) {
        const pending = [this.map !== null ? this.map(data3) : data3];
        while (this.buffered > 0) pending.push(this.shift());
        for (let i3 = 0; i3 < pending.length - 1; i3++) {
          const data4 = pending[i3];
          this.buffered += this.byteLength(data4);
          this.queue.push(data4);
        }
        this.push(pending[pending.length - 1]);
      }
      read() {
        const stream3 = this.stream;
        if ((stream3._duplexState & READ_STATUS) === READ_QUEUED) {
          const data3 = this.shift();
          if (this.pipeTo !== null && this.pipeTo.write(data3) === false) stream3._duplexState &= READ_PIPE_NOT_DRAINED;
          if ((stream3._duplexState & READ_EMIT_DATA) !== 0) stream3.emit("data", data3);
          return data3;
        }
        if (this.readAhead === false) {
          stream3._duplexState |= READ_READ_AHEAD;
          this.updateNextTick();
        }
        return null;
      }
      drain() {
        const stream3 = this.stream;
        while ((stream3._duplexState & READ_STATUS) === READ_QUEUED && (stream3._duplexState & READ_FLOWING) !== 0) {
          const data3 = this.shift();
          if (this.pipeTo !== null && this.pipeTo.write(data3) === false) stream3._duplexState &= READ_PIPE_NOT_DRAINED;
          if ((stream3._duplexState & READ_EMIT_DATA) !== 0) stream3.emit("data", data3);
        }
      }
      update() {
        const stream3 = this.stream;
        stream3._duplexState |= READ_UPDATING;
        do {
          this.drain();
          while (this.buffered < this.highWaterMark && (stream3._duplexState & SHOULD_NOT_READ) === READ_READ_AHEAD) {
            stream3._duplexState |= READ_ACTIVE_AND_NEEDS_PUSH;
            stream3._read(this.afterRead);
            this.drain();
          }
          if ((stream3._duplexState & READ_READABLE_STATUS) === READ_EMIT_READABLE_AND_QUEUED) {
            stream3._duplexState |= READ_EMITTED_READABLE;
            stream3.emit("readable");
          }
          if ((stream3._duplexState & READ_PRIMARY_AND_ACTIVE) === 0) this.updateNonPrimary();
        } while (this.continueUpdate() === true);
        stream3._duplexState &= READ_NOT_UPDATING;
      }
      updateNonPrimary() {
        const stream3 = this.stream;
        if ((stream3._duplexState & READ_ENDING_STATUS) === READ_ENDING) {
          stream3._duplexState = (stream3._duplexState | READ_DONE) & READ_NOT_ENDING;
          stream3.emit("end");
          if ((stream3._duplexState & AUTO_DESTROY) === DONE) stream3._duplexState |= DESTROYING;
          if (this.pipeTo !== null) this.pipeTo.end();
        }
        if ((stream3._duplexState & DESTROY_STATUS) === DESTROYING) {
          if ((stream3._duplexState & ACTIVE_OR_TICKING) === 0) {
            stream3._duplexState |= ACTIVE;
            stream3._destroy(afterDestroy.bind(this));
          }
          return;
        }
        if ((stream3._duplexState & IS_OPENING) === OPENING) {
          stream3._duplexState = (stream3._duplexState | ACTIVE) & NOT_OPENING;
          stream3._open(afterOpen.bind(this));
        }
      }
      continueUpdate() {
        if ((this.stream._duplexState & READ_NEXT_TICK) === 0) return false;
        this.stream._duplexState &= READ_NOT_NEXT_TICK;
        return true;
      }
      updateCallback() {
        if ((this.stream._duplexState & READ_UPDATE_SYNC_STATUS) === READ_PRIMARY) this.update();
        else this.updateNextTick();
      }
      updateNextTickIfOpen() {
        if ((this.stream._duplexState & READ_NEXT_TICK_OR_OPENING) !== 0) return;
        this.stream._duplexState |= READ_NEXT_TICK;
        if ((this.stream._duplexState & READ_UPDATING) === 0) qmt(this.afterUpdateNextTick);
      }
      updateNextTick() {
        if ((this.stream._duplexState & READ_NEXT_TICK) !== 0) return;
        this.stream._duplexState |= READ_NEXT_TICK;
        if ((this.stream._duplexState & READ_UPDATING) === 0) qmt(this.afterUpdateNextTick);
      }
    };
    var TransformState = class {
      static {
        __name(this, "TransformState");
      }
      constructor(stream3) {
        this.data = null;
        this.afterTransform = afterTransform.bind(stream3);
        this.afterFinal = null;
      }
    };
    var Pipeline = class {
      static {
        __name(this, "Pipeline");
      }
      constructor(src, dst, cb) {
        this.from = src;
        this.to = dst;
        this.afterPipe = cb;
        this.error = null;
        this.pipeToFinished = false;
      }
      finished() {
        this.pipeToFinished = true;
      }
      done(stream3, err) {
        if (err) this.error = err;
        if (stream3 === this.to) {
          this.to = null;
          if (this.from !== null) {
            if ((this.from._duplexState & READ_DONE) === 0 || !this.pipeToFinished) {
              this.from.destroy(this.error || new Error("Writable stream closed prematurely"));
            }
            return;
          }
        }
        if (stream3 === this.from) {
          this.from = null;
          if (this.to !== null) {
            if ((stream3._duplexState & READ_DONE) === 0) {
              this.to.destroy(this.error || new Error("Readable stream closed before ending"));
            }
            return;
          }
        }
        if (this.afterPipe !== null) this.afterPipe(this.error);
        this.to = this.from = this.afterPipe = null;
      }
    };
    function afterDrain() {
      this.stream._duplexState |= READ_PIPE_DRAINED;
      this.updateCallback();
    }
    __name(afterDrain, "afterDrain");
    function afterFinal(err) {
      const stream3 = this.stream;
      if (err) stream3.destroy(err);
      if ((stream3._duplexState & DESTROY_STATUS) === 0) {
        stream3._duplexState |= WRITE_DONE;
        stream3.emit("finish");
      }
      if ((stream3._duplexState & AUTO_DESTROY) === DONE) {
        stream3._duplexState |= DESTROYING;
      }
      stream3._duplexState &= WRITE_NOT_FINISHING;
      if ((stream3._duplexState & WRITE_UPDATING) === 0) this.update();
      else this.updateNextTick();
    }
    __name(afterFinal, "afterFinal");
    function afterDestroy(err) {
      const stream3 = this.stream;
      if (!err && this.error !== STREAM_DESTROYED) err = this.error;
      if (err) stream3.emit("error", err);
      stream3._duplexState |= DESTROYED2;
      stream3.emit("close");
      const rs = stream3._readableState;
      const ws = stream3._writableState;
      if (rs !== null && rs.pipeline !== null) rs.pipeline.done(stream3, err);
      if (ws !== null) {
        while (ws.drains !== null && ws.drains.length > 0) ws.drains.shift().resolve(false);
        if (ws.pipeline !== null) ws.pipeline.done(stream3, err);
      }
    }
    __name(afterDestroy, "afterDestroy");
    function afterWrite(err) {
      const stream3 = this.stream;
      if (err) stream3.destroy(err);
      stream3._duplexState &= WRITE_NOT_ACTIVE;
      if (this.drains !== null) tickDrains(this.drains);
      if ((stream3._duplexState & WRITE_DRAIN_STATUS) === WRITE_UNDRAINED) {
        stream3._duplexState &= WRITE_DRAINED;
        if ((stream3._duplexState & WRITE_EMIT_DRAIN) === WRITE_EMIT_DRAIN) {
          stream3.emit("drain");
        }
      }
      this.updateCallback();
    }
    __name(afterWrite, "afterWrite");
    function afterRead(err) {
      if (err) this.stream.destroy(err);
      this.stream._duplexState &= READ_NOT_ACTIVE;
      if (this.readAhead === false && (this.stream._duplexState & READ_RESUMED) === 0) this.stream._duplexState &= READ_NO_READ_AHEAD;
      this.updateCallback();
    }
    __name(afterRead, "afterRead");
    function updateReadNT() {
      if ((this.stream._duplexState & READ_UPDATING) === 0) {
        this.stream._duplexState &= READ_NOT_NEXT_TICK;
        this.update();
      }
    }
    __name(updateReadNT, "updateReadNT");
    function updateWriteNT() {
      if ((this.stream._duplexState & WRITE_UPDATING) === 0) {
        this.stream._duplexState &= WRITE_NOT_NEXT_TICK;
        this.update();
      }
    }
    __name(updateWriteNT, "updateWriteNT");
    function tickDrains(drains) {
      for (let i3 = 0; i3 < drains.length; i3++) {
        if (--drains[i3].writes === 0) {
          drains.shift().resolve(true);
          i3--;
        }
      }
    }
    __name(tickDrains, "tickDrains");
    function afterOpen(err) {
      const stream3 = this.stream;
      if (err) stream3.destroy(err);
      if ((stream3._duplexState & DESTROYING) === 0) {
        if ((stream3._duplexState & READ_PRIMARY_STATUS) === 0) stream3._duplexState |= READ_PRIMARY;
        if ((stream3._duplexState & WRITE_PRIMARY_STATUS) === 0) stream3._duplexState |= WRITE_PRIMARY;
        stream3.emit("open");
      }
      stream3._duplexState &= NOT_ACTIVE;
      if (stream3._writableState !== null) {
        stream3._writableState.updateCallback();
      }
      if (stream3._readableState !== null) {
        stream3._readableState.updateCallback();
      }
    }
    __name(afterOpen, "afterOpen");
    function afterTransform(err, data3) {
      if (data3 !== void 0 && data3 !== null) this.push(data3);
      this._writableState.afterWrite(err);
    }
    __name(afterTransform, "afterTransform");
    function newListener(name) {
      if (this._readableState !== null) {
        if (name === "data") {
          this._duplexState |= READ_EMIT_DATA | READ_RESUMED_READ_AHEAD;
          this._readableState.updateNextTick();
        }
        if (name === "readable") {
          this._duplexState |= READ_EMIT_READABLE;
          this._readableState.updateNextTick();
        }
      }
      if (this._writableState !== null) {
        if (name === "drain") {
          this._duplexState |= WRITE_EMIT_DRAIN;
          this._writableState.updateNextTick();
        }
      }
    }
    __name(newListener, "newListener");
    var Stream2 = class extends EventEmitter2 {
      static {
        __name(this, "Stream");
      }
      constructor(opts) {
        super();
        this._duplexState = 0;
        this._readableState = null;
        this._writableState = null;
        if (opts) {
          if (opts.open) this._open = opts.open;
          if (opts.destroy) this._destroy = opts.destroy;
          if (opts.predestroy) this._predestroy = opts.predestroy;
          if (opts.signal) {
            opts.signal.addEventListener("abort", abort.bind(this));
          }
        }
        this.on("newListener", newListener);
      }
      _open(cb) {
        cb(null);
      }
      _destroy(cb) {
        cb(null);
      }
      _predestroy() {
      }
      get readable() {
        return this._readableState !== null ? true : void 0;
      }
      get writable() {
        return this._writableState !== null ? true : void 0;
      }
      get destroyed() {
        return (this._duplexState & DESTROYED2) !== 0;
      }
      get destroying() {
        return (this._duplexState & DESTROY_STATUS) !== 0;
      }
      destroy(err) {
        if ((this._duplexState & DESTROY_STATUS) === 0) {
          if (!err) err = STREAM_DESTROYED;
          this._duplexState = (this._duplexState | DESTROYING) & NON_PRIMARY;
          if (this._readableState !== null) {
            this._readableState.highWaterMark = 0;
            this._readableState.error = err;
          }
          if (this._writableState !== null) {
            this._writableState.highWaterMark = 0;
            this._writableState.error = err;
          }
          this._duplexState |= PREDESTROYING;
          this._predestroy();
          this._duplexState &= NOT_PREDESTROYING;
          if (this._readableState !== null) this._readableState.updateNextTick();
          if (this._writableState !== null) this._writableState.updateNextTick();
        }
      }
    };
    var Readable = class _Readable extends Stream2 {
      static {
        __name(this, "Readable");
      }
      constructor(opts) {
        super(opts);
        this._duplexState |= OPENING | WRITE_DONE | READ_READ_AHEAD;
        this._readableState = new ReadableState(this, opts);
        if (opts) {
          if (this._readableState.readAhead === false) this._duplexState &= READ_NO_READ_AHEAD;
          if (opts.read) this._read = opts.read;
          if (opts.eagerOpen) this._readableState.updateNextTick();
          if (opts.encoding) this.setEncoding(opts.encoding);
        }
      }
      setEncoding(encoding) {
        const dec = new TextDecoder2(encoding);
        const map3 = this._readableState.map || echo;
        this._readableState.map = mapOrSkip;
        return this;
        function mapOrSkip(data3) {
          const next = dec.push(data3);
          return next === "" && (data3.byteLength !== 0 || dec.remaining > 0) ? null : map3(next);
        }
        __name(mapOrSkip, "mapOrSkip");
      }
      _read(cb) {
        cb(null);
      }
      pipe(dest, cb) {
        this._readableState.updateNextTick();
        this._readableState.pipe(dest, cb);
        return dest;
      }
      read() {
        this._readableState.updateNextTick();
        return this._readableState.read();
      }
      push(data3) {
        this._readableState.updateNextTickIfOpen();
        return this._readableState.push(data3);
      }
      unshift(data3) {
        this._readableState.updateNextTickIfOpen();
        return this._readableState.unshift(data3);
      }
      resume() {
        this._duplexState |= READ_RESUMED_READ_AHEAD;
        this._readableState.updateNextTick();
        return this;
      }
      pause() {
        this._duplexState &= this._readableState.readAhead === false ? READ_PAUSED_NO_READ_AHEAD : READ_PAUSED;
        return this;
      }
      static _fromAsyncIterator(ite, opts) {
        let destroy;
        const rs = new _Readable({
          ...opts,
          read(cb) {
            ite.next().then(push).then(cb.bind(null, null)).catch(cb);
          },
          predestroy() {
            destroy = ite.return();
          },
          destroy(cb) {
            if (!destroy) return cb(null);
            destroy.then(cb.bind(null, null)).catch(cb);
          }
        });
        return rs;
        function push(data3) {
          if (data3.done) rs.push(null);
          else rs.push(data3.value);
        }
        __name(push, "push");
      }
      static from(data3, opts) {
        if (isReadStreamx(data3)) return data3;
        if (data3[asyncIterator]) return this._fromAsyncIterator(data3[asyncIterator](), opts);
        if (!Array.isArray(data3)) data3 = data3 === void 0 ? [] : [data3];
        let i3 = 0;
        return new _Readable({
          ...opts,
          read(cb) {
            this.push(i3 === data3.length ? null : data3[i3++]);
            cb(null);
          }
        });
      }
      static isBackpressured(rs) {
        return (rs._duplexState & READ_BACKPRESSURE_STATUS) !== 0 || rs._readableState.buffered >= rs._readableState.highWaterMark;
      }
      static isPaused(rs) {
        return (rs._duplexState & READ_RESUMED) === 0;
      }
      [asyncIterator]() {
        const stream3 = this;
        let error5 = null;
        let promiseResolve = null;
        let promiseReject = null;
        this.on("error", (err) => {
          error5 = err;
        });
        this.on("readable", onreadable);
        this.on("close", onclose);
        return {
          [asyncIterator]() {
            return this;
          },
          next() {
            return new Promise(function(resolve13, reject) {
              promiseResolve = resolve13;
              promiseReject = reject;
              const data3 = stream3.read();
              if (data3 !== null) ondata(data3);
              else if ((stream3._duplexState & DESTROYED2) !== 0) ondata(null);
            });
          },
          return() {
            return destroy(null);
          },
          throw(err) {
            return destroy(err);
          }
        };
        function onreadable() {
          if (promiseResolve !== null) ondata(stream3.read());
        }
        __name(onreadable, "onreadable");
        function onclose() {
          if (promiseResolve !== null) ondata(null);
        }
        __name(onclose, "onclose");
        function ondata(data3) {
          if (promiseReject === null) return;
          if (error5) promiseReject(error5);
          else if (data3 === null && (stream3._duplexState & READ_DONE) === 0) promiseReject(STREAM_DESTROYED);
          else promiseResolve({ value: data3, done: data3 === null });
          promiseReject = promiseResolve = null;
        }
        __name(ondata, "ondata");
        function destroy(err) {
          stream3.destroy(err);
          return new Promise((resolve13, reject) => {
            if (stream3._duplexState & DESTROYED2) return resolve13({ value: void 0, done: true });
            stream3.once("close", function() {
              if (err) reject(err);
              else resolve13({ value: void 0, done: true });
            });
          });
        }
        __name(destroy, "destroy");
      }
    };
    var Writable3 = class extends Stream2 {
      static {
        __name(this, "Writable");
      }
      constructor(opts) {
        super(opts);
        this._duplexState |= OPENING | READ_DONE;
        this._writableState = new WritableState(this, opts);
        if (opts) {
          if (opts.writev) this._writev = opts.writev;
          if (opts.write) this._write = opts.write;
          if (opts.final) this._final = opts.final;
          if (opts.eagerOpen) this._writableState.updateNextTick();
        }
      }
      cork() {
        this._duplexState |= WRITE_CORKED;
      }
      uncork() {
        this._duplexState &= WRITE_NOT_CORKED;
        this._writableState.updateNextTick();
      }
      _writev(batch, cb) {
        cb(null);
      }
      _write(data3, cb) {
        this._writableState.autoBatch(data3, cb);
      }
      _final(cb) {
        cb(null);
      }
      static isBackpressured(ws) {
        return (ws._duplexState & WRITE_BACKPRESSURE_STATUS) !== 0;
      }
      static drained(ws) {
        if (ws.destroyed) return Promise.resolve(false);
        const state2 = ws._writableState;
        const pending = isWritev(ws) ? Math.min(1, state2.queue.length) : state2.queue.length;
        const writes = pending + (ws._duplexState & WRITE_WRITING ? 1 : 0);
        if (writes === 0) return Promise.resolve(true);
        if (state2.drains === null) state2.drains = [];
        return new Promise((resolve13) => {
          state2.drains.push({ writes, resolve: resolve13 });
        });
      }
      write(data3) {
        this._writableState.updateNextTick();
        return this._writableState.push(data3);
      }
      end(data3) {
        this._writableState.updateNextTick();
        this._writableState.end(data3);
        return this;
      }
    };
    var Duplex = class extends Readable {
      static {
        __name(this, "Duplex");
      }
      // and Writable
      constructor(opts) {
        super(opts);
        this._duplexState = OPENING | this._duplexState & READ_READ_AHEAD;
        this._writableState = new WritableState(this, opts);
        if (opts) {
          if (opts.writev) this._writev = opts.writev;
          if (opts.write) this._write = opts.write;
          if (opts.final) this._final = opts.final;
        }
      }
      cork() {
        this._duplexState |= WRITE_CORKED;
      }
      uncork() {
        this._duplexState &= WRITE_NOT_CORKED;
        this._writableState.updateNextTick();
      }
      _writev(batch, cb) {
        cb(null);
      }
      _write(data3, cb) {
        this._writableState.autoBatch(data3, cb);
      }
      _final(cb) {
        cb(null);
      }
      write(data3) {
        this._writableState.updateNextTick();
        return this._writableState.push(data3);
      }
      end(data3) {
        this._writableState.updateNextTick();
        this._writableState.end(data3);
        return this;
      }
    };
    var Transform = class extends Duplex {
      static {
        __name(this, "Transform");
      }
      constructor(opts) {
        super(opts);
        this._transformState = new TransformState(this);
        if (opts) {
          if (opts.transform) this._transform = opts.transform;
          if (opts.flush) this._flush = opts.flush;
        }
      }
      _write(data3, cb) {
        if (this._readableState.buffered >= this._readableState.highWaterMark) {
          this._transformState.data = data3;
        } else {
          this._transform(data3, this._transformState.afterTransform);
        }
      }
      _read(cb) {
        if (this._transformState.data !== null) {
          const data3 = this._transformState.data;
          this._transformState.data = null;
          cb(null);
          this._transform(data3, this._transformState.afterTransform);
        } else {
          cb(null);
        }
      }
      destroy(err) {
        super.destroy(err);
        if (this._transformState.data !== null) {
          this._transformState.data = null;
          this._transformState.afterTransform();
        }
      }
      _transform(data3, cb) {
        cb(null, data3);
      }
      _flush(cb) {
        cb(null);
      }
      _final(cb) {
        this._transformState.afterFinal = cb;
        this._flush(transformAfterFlush.bind(this));
      }
    };
    var PassThrough = class extends Transform {
      static {
        __name(this, "PassThrough");
      }
    };
    function transformAfterFlush(err, data3) {
      const cb = this._transformState.afterFinal;
      if (err) return cb(err);
      if (data3 !== null && data3 !== void 0) this.push(data3);
      this.push(null);
      cb(null);
    }
    __name(transformAfterFlush, "transformAfterFlush");
    function pipelinePromise(...streams) {
      return new Promise((resolve13, reject) => {
        return pipeline(...streams, (err) => {
          if (err) return reject(err);
          resolve13();
        });
      });
    }
    __name(pipelinePromise, "pipelinePromise");
    function pipeline(stream3, ...streams) {
      const all = Array.isArray(stream3) ? [...stream3, ...streams] : [stream3, ...streams];
      const done = all.length && typeof all[all.length - 1] === "function" ? all.pop() : null;
      if (all.length < 2) throw new Error("Pipeline requires at least 2 streams");
      let src = all[0];
      let dest = null;
      let error5 = null;
      for (let i3 = 1; i3 < all.length; i3++) {
        dest = all[i3];
        if (isStreamx(src)) {
          src.pipe(dest, onerror);
        } else {
          errorHandle(src, true, i3 > 1, onerror);
          src.pipe(dest);
        }
        src = dest;
      }
      if (done) {
        let fin = false;
        const autoDestroy = isStreamx(dest) || !!(dest._writableState && dest._writableState.autoDestroy);
        dest.on("error", (err) => {
          if (error5 === null) error5 = err;
        });
        dest.on("finish", () => {
          fin = true;
          if (!autoDestroy) done(error5);
        });
        if (autoDestroy) {
          dest.on("close", () => done(error5 || (fin ? null : PREMATURE_CLOSE)));
        }
      }
      return dest;
      function errorHandle(s3, rd, wr, onerror2) {
        s3.on("error", onerror2);
        s3.on("close", onclose);
        function onclose() {
          if (rd && s3._readableState && !s3._readableState.ended) return onerror2(PREMATURE_CLOSE);
          if (wr && s3._writableState && !s3._writableState.ended) return onerror2(PREMATURE_CLOSE);
        }
        __name(onclose, "onclose");
      }
      __name(errorHandle, "errorHandle");
      function onerror(err) {
        if (!err || error5) return;
        error5 = err;
        for (const s3 of all) {
          s3.destroy(err);
        }
      }
      __name(onerror, "onerror");
    }
    __name(pipeline, "pipeline");
    function echo(s3) {
      return s3;
    }
    __name(echo, "echo");
    function isStream2(stream3) {
      return !!stream3._readableState || !!stream3._writableState;
    }
    __name(isStream2, "isStream");
    function isStreamx(stream3) {
      return typeof stream3._duplexState === "number" && isStream2(stream3);
    }
    __name(isStreamx, "isStreamx");
    function isEnded(stream3) {
      return !!stream3._readableState && stream3._readableState.ended;
    }
    __name(isEnded, "isEnded");
    function isFinished(stream3) {
      return !!stream3._writableState && stream3._writableState.ended;
    }
    __name(isFinished, "isFinished");
    function getStreamError(stream3, opts = {}) {
      const err = stream3._readableState && stream3._readableState.error || stream3._writableState && stream3._writableState.error;
      return !opts.all && err === STREAM_DESTROYED ? null : err;
    }
    __name(getStreamError, "getStreamError");
    function isReadStreamx(stream3) {
      return isStreamx(stream3) && stream3.readable;
    }
    __name(isReadStreamx, "isReadStreamx");
    function isDisturbed(stream3) {
      return (stream3._duplexState & OPENING) !== OPENING || (stream3._duplexState & ACTIVE_OR_TICKING) !== 0;
    }
    __name(isDisturbed, "isDisturbed");
    function isTypedArray(data3) {
      return typeof data3 === "object" && data3 !== null && typeof data3.byteLength === "number";
    }
    __name(isTypedArray, "isTypedArray");
    function defaultByteLength(data3) {
      return isTypedArray(data3) ? data3.byteLength : 1024;
    }
    __name(defaultByteLength, "defaultByteLength");
    function noop() {
    }
    __name(noop, "noop");
    function abort() {
      this.destroy(new Error("Stream aborted."));
    }
    __name(abort, "abort");
    function isWritev(s3) {
      return s3._writev !== Writable3.prototype._writev && s3._writev !== Duplex.prototype._writev;
    }
    __name(isWritev, "isWritev");
    module2.exports = {
      pipeline,
      pipelinePromise,
      isStream: isStream2,
      isStreamx,
      isEnded,
      isFinished,
      isDisturbed,
      getStreamError,
      Stream: Stream2,
      Writable: Writable3,
      Readable,
      Duplex,
      Transform,
      // Export PassThrough for compatibility with Node.js core's stream module
      PassThrough
    };
  }
});

// ../../node_modules/archiver/node_modules/tar-stream/headers.js
var require_headers = __commonJS({
  "../../node_modules/archiver/node_modules/tar-stream/headers.js"(exports2) {
    var b4a = require_b4a();
    var ZEROS = "0000000000000000000";
    var SEVENS = "7777777777777777777";
    var ZERO_OFFSET = "0".charCodeAt(0);
    var USTAR_MAGIC = b4a.from([117, 115, 116, 97, 114, 0]);
    var USTAR_VER = b4a.from([ZERO_OFFSET, ZERO_OFFSET]);
    var GNU_MAGIC = b4a.from([117, 115, 116, 97, 114, 32]);
    var GNU_VER = b4a.from([32, 0]);
    var MASK = 4095;
    var MAGIC_OFFSET = 257;
    var VERSION_OFFSET = 263;
    exports2.decodeLongPath = /* @__PURE__ */ __name(function decodeLongPath(buf, encoding) {
      return decodeStr(buf, 0, buf.length, encoding);
    }, "decodeLongPath");
    exports2.encodePax = /* @__PURE__ */ __name(function encodePax(opts) {
      let result2 = "";
      if (opts.name) result2 += addLength(" path=" + opts.name + "\n");
      if (opts.linkname) result2 += addLength(" linkpath=" + opts.linkname + "\n");
      const pax = opts.pax;
      if (pax) {
        for (const key in pax) {
          result2 += addLength(" " + key + "=" + pax[key] + "\n");
        }
      }
      return b4a.from(result2);
    }, "encodePax");
    exports2.decodePax = /* @__PURE__ */ __name(function decodePax(buf) {
      const result2 = {};
      while (buf.length) {
        let i3 = 0;
        while (i3 < buf.length && buf[i3] !== 32) i3++;
        const len = parseInt(b4a.toString(buf.subarray(0, i3)), 10);
        if (!len) return result2;
        const b3 = b4a.toString(buf.subarray(i3 + 1, len - 1));
        const keyIndex = b3.indexOf("=");
        if (keyIndex === -1) return result2;
        result2[b3.slice(0, keyIndex)] = b3.slice(keyIndex + 1);
        buf = buf.subarray(len);
      }
      return result2;
    }, "decodePax");
    exports2.encode = /* @__PURE__ */ __name(function encode2(opts) {
      const buf = b4a.alloc(512);
      let name = opts.name;
      let prefix2 = "";
      if (opts.typeflag === 5 && name[name.length - 1] !== "/") name += "/";
      if (b4a.byteLength(name) !== name.length) return null;
      while (b4a.byteLength(name) > 100) {
        const i3 = name.indexOf("/");
        if (i3 === -1) return null;
        prefix2 += prefix2 ? "/" + name.slice(0, i3) : name.slice(0, i3);
        name = name.slice(i3 + 1);
      }
      if (b4a.byteLength(name) > 100 || b4a.byteLength(prefix2) > 155) return null;
      if (opts.linkname && b4a.byteLength(opts.linkname) > 100) return null;
      b4a.write(buf, name);
      b4a.write(buf, encodeOct(opts.mode & MASK, 6), 100);
      b4a.write(buf, encodeOct(opts.uid, 6), 108);
      b4a.write(buf, encodeOct(opts.gid, 6), 116);
      encodeSize(opts.size, buf, 124);
      b4a.write(buf, encodeOct(opts.mtime.getTime() / 1e3 | 0, 11), 136);
      buf[156] = ZERO_OFFSET + toTypeflag(opts.type);
      if (opts.linkname) b4a.write(buf, opts.linkname, 157);
      b4a.copy(USTAR_MAGIC, buf, MAGIC_OFFSET);
      b4a.copy(USTAR_VER, buf, VERSION_OFFSET);
      if (opts.uname) b4a.write(buf, opts.uname, 265);
      if (opts.gname) b4a.write(buf, opts.gname, 297);
      b4a.write(buf, encodeOct(opts.devmajor || 0, 6), 329);
      b4a.write(buf, encodeOct(opts.devminor || 0, 6), 337);
      if (prefix2) b4a.write(buf, prefix2, 345);
      b4a.write(buf, encodeOct(cksum(buf), 6), 148);
      return buf;
    }, "encode");
    exports2.decode = /* @__PURE__ */ __name(function decode2(buf, filenameEncoding, allowUnknownFormat) {
      let typeflag = buf[156] === 0 ? 0 : buf[156] - ZERO_OFFSET;
      let name = decodeStr(buf, 0, 100, filenameEncoding);
      const mode = decodeOct(buf, 100, 8);
      const uid = decodeOct(buf, 108, 8);
      const gid = decodeOct(buf, 116, 8);
      const size = decodeOct(buf, 124, 12);
      const mtime = decodeOct(buf, 136, 12);
      const type = toType(typeflag);
      const linkname = buf[157] === 0 ? null : decodeStr(buf, 157, 100, filenameEncoding);
      const uname = decodeStr(buf, 265, 32);
      const gname = decodeStr(buf, 297, 32);
      const devmajor = decodeOct(buf, 329, 8);
      const devminor = decodeOct(buf, 337, 8);
      const c3 = cksum(buf);
      if (c3 === 8 * 32) return null;
      if (c3 !== decodeOct(buf, 148, 8)) throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");
      if (isUSTAR(buf)) {
        if (buf[345]) name = decodeStr(buf, 345, 155, filenameEncoding) + "/" + name;
      } else if (isGNU(buf)) {
      } else {
        if (!allowUnknownFormat) {
          throw new Error("Invalid tar header: unknown format.");
        }
      }
      if (typeflag === 0 && name && name[name.length - 1] === "/") typeflag = 5;
      return {
        name,
        mode,
        uid,
        gid,
        size,
        mtime: new Date(1e3 * mtime),
        type,
        linkname,
        uname,
        gname,
        devmajor,
        devminor,
        pax: null
      };
    }, "decode");
    function isUSTAR(buf) {
      return b4a.equals(USTAR_MAGIC, buf.subarray(MAGIC_OFFSET, MAGIC_OFFSET + 6));
    }
    __name(isUSTAR, "isUSTAR");
    function isGNU(buf) {
      return b4a.equals(GNU_MAGIC, buf.subarray(MAGIC_OFFSET, MAGIC_OFFSET + 6)) && b4a.equals(GNU_VER, buf.subarray(VERSION_OFFSET, VERSION_OFFSET + 2));
    }
    __name(isGNU, "isGNU");
    function clamp(index, len, defaultValue) {
      if (typeof index !== "number") return defaultValue;
      index = ~~index;
      if (index >= len) return len;
      if (index >= 0) return index;
      index += len;
      if (index >= 0) return index;
      return 0;
    }
    __name(clamp, "clamp");
    function toType(flag) {
      switch (flag) {
        case 0:
          return "file";
        case 1:
          return "link";
        case 2:
          return "symlink";
        case 3:
          return "character-device";
        case 4:
          return "block-device";
        case 5:
          return "directory";
        case 6:
          return "fifo";
        case 7:
          return "contiguous-file";
        case 72:
          return "pax-header";
        case 55:
          return "pax-global-header";
        case 27:
          return "gnu-long-link-path";
        case 28:
        case 30:
          return "gnu-long-path";
      }
      return null;
    }
    __name(toType, "toType");
    function toTypeflag(flag) {
      switch (flag) {
        case "file":
          return 0;
        case "link":
          return 1;
        case "symlink":
          return 2;
        case "character-device":
          return 3;
        case "block-device":
          return 4;
        case "directory":
          return 5;
        case "fifo":
          return 6;
        case "contiguous-file":
          return 7;
        case "pax-header":
          return 72;
      }
      return 0;
    }
    __name(toTypeflag, "toTypeflag");
    function indexOf(block, num, offset, end) {
      for (; offset < end; offset++) {
        if (block[offset] === num) return offset;
      }
      return end;
    }
    __name(indexOf, "indexOf");
    function cksum(block) {
      let sum3 = 8 * 32;
      for (let i3 = 0; i3 < 148; i3++) sum3 += block[i3];
      for (let j3 = 156; j3 < 512; j3++) sum3 += block[j3];
      return sum3;
    }
    __name(cksum, "cksum");
    function encodeOct(val, n3) {
      val = val.toString(8);
      if (val.length > n3) return SEVENS.slice(0, n3) + " ";
      return ZEROS.slice(0, n3 - val.length) + val + " ";
    }
    __name(encodeOct, "encodeOct");
    function encodeSizeBin(num, buf, off) {
      buf[off] = 128;
      for (let i3 = 11; i3 > 0; i3--) {
        buf[off + i3] = num & 255;
        num = Math.floor(num / 256);
      }
    }
    __name(encodeSizeBin, "encodeSizeBin");
    function encodeSize(num, buf, off) {
      if (num.toString(8).length > 11) {
        encodeSizeBin(num, buf, off);
      } else {
        b4a.write(buf, encodeOct(num, 11), off);
      }
    }
    __name(encodeSize, "encodeSize");
    function parse256(buf) {
      let positive;
      if (buf[0] === 128) positive = true;
      else if (buf[0] === 255) positive = false;
      else return null;
      const tuple = [];
      let i3;
      for (i3 = buf.length - 1; i3 > 0; i3--) {
        const byte = buf[i3];
        if (positive) tuple.push(byte);
        else tuple.push(255 - byte);
      }
      let sum3 = 0;
      const l3 = tuple.length;
      for (i3 = 0; i3 < l3; i3++) {
        sum3 += tuple[i3] * Math.pow(256, i3);
      }
      return positive ? sum3 : -1 * sum3;
    }
    __name(parse256, "parse256");
    function decodeOct(val, offset, length) {
      val = val.subarray(offset, offset + length);
      offset = 0;
      if (val[offset] & 128) {
        return parse256(val);
      } else {
        while (offset < val.length && val[offset] === 32) offset++;
        const end = clamp(indexOf(val, 32, offset, val.length), val.length, val.length);
        while (offset < end && val[offset] === 0) offset++;
        if (end === offset) return 0;
        return parseInt(b4a.toString(val.subarray(offset, end)), 8);
      }
    }
    __name(decodeOct, "decodeOct");
    function decodeStr(val, offset, length, encoding) {
      return b4a.toString(val.subarray(offset, indexOf(val, 0, offset, offset + length)), encoding);
    }
    __name(decodeStr, "decodeStr");
    function addLength(str) {
      const len = b4a.byteLength(str);
      let digits = Math.floor(Math.log(len) / Math.log(10)) + 1;
      if (len + digits >= Math.pow(10, digits)) digits++;
      return len + digits + str;
    }
    __name(addLength, "addLength");
  }
});

// ../../node_modules/archiver/node_modules/tar-stream/extract.js
var require_extract = __commonJS({
  "../../node_modules/archiver/node_modules/tar-stream/extract.js"(exports2, module2) {
    var { Writable: Writable3, Readable, getStreamError } = require_streamx();
    var FIFO = require_fast_fifo();
    var b4a = require_b4a();
    var headers = require_headers();
    var EMPTY = b4a.alloc(0);
    var BufferList = class {
      static {
        __name(this, "BufferList");
      }
      constructor() {
        this.buffered = 0;
        this.shifted = 0;
        this.queue = new FIFO();
        this._offset = 0;
      }
      push(buffer) {
        this.buffered += buffer.byteLength;
        this.queue.push(buffer);
      }
      shiftFirst(size) {
        return this._buffered === 0 ? null : this._next(size);
      }
      shift(size) {
        if (size > this.buffered) return null;
        if (size === 0) return EMPTY;
        let chunk = this._next(size);
        if (size === chunk.byteLength) return chunk;
        const chunks2 = [chunk];
        while ((size -= chunk.byteLength) > 0) {
          chunk = this._next(size);
          chunks2.push(chunk);
        }
        return b4a.concat(chunks2);
      }
      _next(size) {
        const buf = this.queue.peek();
        const rem = buf.byteLength - this._offset;
        if (size >= rem) {
          const sub = this._offset ? buf.subarray(this._offset, buf.byteLength) : buf;
          this.queue.shift();
          this._offset = 0;
          this.buffered -= rem;
          this.shifted += rem;
          return sub;
        }
        this.buffered -= size;
        this.shifted += size;
        return buf.subarray(this._offset, this._offset += size);
      }
    };
    var Source = class extends Readable {
      static {
        __name(this, "Source");
      }
      constructor(self2, header, offset) {
        super();
        this.header = header;
        this.offset = offset;
        this._parent = self2;
      }
      _read(cb) {
        if (this.header.size === 0) {
          this.push(null);
        }
        if (this._parent._stream === this) {
          this._parent._update();
        }
        cb(null);
      }
      _predestroy() {
        this._parent.destroy(getStreamError(this));
      }
      _detach() {
        if (this._parent._stream === this) {
          this._parent._stream = null;
          this._parent._missing = overflow(this.header.size);
          this._parent._update();
        }
      }
      _destroy(cb) {
        this._detach();
        cb(null);
      }
    };
    var Extract = class extends Writable3 {
      static {
        __name(this, "Extract");
      }
      constructor(opts) {
        super(opts);
        if (!opts) opts = {};
        this._buffer = new BufferList();
        this._offset = 0;
        this._header = null;
        this._stream = null;
        this._missing = 0;
        this._longHeader = false;
        this._callback = noop;
        this._locked = false;
        this._finished = false;
        this._pax = null;
        this._paxGlobal = null;
        this._gnuLongPath = null;
        this._gnuLongLinkPath = null;
        this._filenameEncoding = opts.filenameEncoding || "utf-8";
        this._allowUnknownFormat = !!opts.allowUnknownFormat;
        this._unlockBound = this._unlock.bind(this);
      }
      _unlock(err) {
        this._locked = false;
        if (err) {
          this.destroy(err);
          this._continueWrite(err);
          return;
        }
        this._update();
      }
      _consumeHeader() {
        if (this._locked) return false;
        this._offset = this._buffer.shifted;
        try {
          this._header = headers.decode(this._buffer.shift(512), this._filenameEncoding, this._allowUnknownFormat);
        } catch (err) {
          this._continueWrite(err);
          return false;
        }
        if (!this._header) return true;
        switch (this._header.type) {
          case "gnu-long-path":
          case "gnu-long-link-path":
          case "pax-global-header":
          case "pax-header":
            this._longHeader = true;
            this._missing = this._header.size;
            return true;
        }
        this._locked = true;
        this._applyLongHeaders();
        if (this._header.size === 0 || this._header.type === "directory") {
          this.emit("entry", this._header, this._createStream(), this._unlockBound);
          return true;
        }
        this._stream = this._createStream();
        this._missing = this._header.size;
        this.emit("entry", this._header, this._stream, this._unlockBound);
        return true;
      }
      _applyLongHeaders() {
        if (this._gnuLongPath) {
          this._header.name = this._gnuLongPath;
          this._gnuLongPath = null;
        }
        if (this._gnuLongLinkPath) {
          this._header.linkname = this._gnuLongLinkPath;
          this._gnuLongLinkPath = null;
        }
        if (this._pax) {
          if (this._pax.path) this._header.name = this._pax.path;
          if (this._pax.linkpath) this._header.linkname = this._pax.linkpath;
          if (this._pax.size) this._header.size = parseInt(this._pax.size, 10);
          this._header.pax = this._pax;
          this._pax = null;
        }
      }
      _decodeLongHeader(buf) {
        switch (this._header.type) {
          case "gnu-long-path":
            this._gnuLongPath = headers.decodeLongPath(buf, this._filenameEncoding);
            break;
          case "gnu-long-link-path":
            this._gnuLongLinkPath = headers.decodeLongPath(buf, this._filenameEncoding);
            break;
          case "pax-global-header":
            this._paxGlobal = headers.decodePax(buf);
            break;
          case "pax-header":
            this._pax = this._paxGlobal === null ? headers.decodePax(buf) : Object.assign({}, this._paxGlobal, headers.decodePax(buf));
            break;
        }
      }
      _consumeLongHeader() {
        this._longHeader = false;
        this._missing = overflow(this._header.size);
        const buf = this._buffer.shift(this._header.size);
        try {
          this._decodeLongHeader(buf);
        } catch (err) {
          this._continueWrite(err);
          return false;
        }
        return true;
      }
      _consumeStream() {
        const buf = this._buffer.shiftFirst(this._missing);
        if (buf === null) return false;
        this._missing -= buf.byteLength;
        const drained = this._stream.push(buf);
        if (this._missing === 0) {
          this._stream.push(null);
          if (drained) this._stream._detach();
          return drained && this._locked === false;
        }
        return drained;
      }
      _createStream() {
        return new Source(this, this._header, this._offset);
      }
      _update() {
        while (this._buffer.buffered > 0 && !this.destroying) {
          if (this._missing > 0) {
            if (this._stream !== null) {
              if (this._consumeStream() === false) return;
              continue;
            }
            if (this._longHeader === true) {
              if (this._missing > this._buffer.buffered) break;
              if (this._consumeLongHeader() === false) return false;
              continue;
            }
            const ignore = this._buffer.shiftFirst(this._missing);
            if (ignore !== null) this._missing -= ignore.byteLength;
            continue;
          }
          if (this._buffer.buffered < 512) break;
          if (this._stream !== null || this._consumeHeader() === false) return;
        }
        this._continueWrite(null);
      }
      _continueWrite(err) {
        const cb = this._callback;
        this._callback = noop;
        cb(err);
      }
      _write(data3, cb) {
        this._callback = cb;
        this._buffer.push(data3);
        this._update();
      }
      _final(cb) {
        this._finished = this._missing === 0 && this._buffer.buffered === 0;
        cb(this._finished ? null : new Error("Unexpected end of data"));
      }
      _predestroy() {
        this._continueWrite(null);
      }
      _destroy(cb) {
        if (this._stream) this._stream.destroy(getStreamError(this));
        cb(null);
      }
      [Symbol.asyncIterator]() {
        let error5 = null;
        let promiseResolve = null;
        let promiseReject = null;
        let entryStream = null;
        let entryCallback = null;
        const extract = this;
        this.on("entry", onentry);
        this.on("error", (err) => {
          error5 = err;
        });
        this.on("close", onclose);
        return {
          [Symbol.asyncIterator]() {
            return this;
          },
          next() {
            return new Promise(onnext);
          },
          return() {
            return destroy(null);
          },
          throw(err) {
            return destroy(err);
          }
        };
        function consumeCallback(err) {
          if (!entryCallback) return;
          const cb = entryCallback;
          entryCallback = null;
          cb(err);
        }
        __name(consumeCallback, "consumeCallback");
        function onnext(resolve13, reject) {
          if (error5) {
            return reject(error5);
          }
          if (entryStream) {
            resolve13({ value: entryStream, done: false });
            entryStream = null;
            return;
          }
          promiseResolve = resolve13;
          promiseReject = reject;
          consumeCallback(null);
          if (extract._finished && promiseResolve) {
            promiseResolve({ value: void 0, done: true });
            promiseResolve = promiseReject = null;
          }
        }
        __name(onnext, "onnext");
        function onentry(header, stream3, callback) {
          entryCallback = callback;
          stream3.on("error", noop);
          if (promiseResolve) {
            promiseResolve({ value: stream3, done: false });
            promiseResolve = promiseReject = null;
          } else {
            entryStream = stream3;
          }
        }
        __name(onentry, "onentry");
        function onclose() {
          consumeCallback(error5);
          if (!promiseResolve) return;
          if (error5) promiseReject(error5);
          else promiseResolve({ value: void 0, done: true });
          promiseResolve = promiseReject = null;
        }
        __name(onclose, "onclose");
        function destroy(err) {
          extract.destroy(err);
          consumeCallback(err);
          return new Promise((resolve13, reject) => {
            if (extract.destroyed) return resolve13({ value: void 0, done: true });
            extract.once("close", function() {
              if (err) reject(err);
              else resolve13({ value: void 0, done: true });
            });
          });
        }
        __name(destroy, "destroy");
      }
    };
    module2.exports = /* @__PURE__ */ __name(function extract(opts) {
      return new Extract(opts);
    }, "extract");
    function noop() {
    }
    __name(noop, "noop");
    function overflow(size) {
      size &= 511;
      return size && 512 - size;
    }
    __name(overflow, "overflow");
  }
});

// ../../node_modules/archiver/node_modules/tar-stream/constants.js
var require_constants3 = __commonJS({
  "../../node_modules/archiver/node_modules/tar-stream/constants.js"(exports2, module2) {
    var constants3 = {
      // just for envs without fs
      S_IFMT: 61440,
      S_IFDIR: 16384,
      S_IFCHR: 8192,
      S_IFBLK: 24576,
      S_IFIFO: 4096,
      S_IFLNK: 40960
    };
    try {
      module2.exports = require("fs").constants || constants3;
    } catch {
      module2.exports = constants3;
    }
  }
});

// ../../node_modules/archiver/node_modules/tar-stream/pack.js
var require_pack = __commonJS({
  "../../node_modules/archiver/node_modules/tar-stream/pack.js"(exports2, module2) {
    var { Readable, Writable: Writable3, getStreamError } = require_streamx();
    var b4a = require_b4a();
    var constants3 = require_constants3();
    var headers = require_headers();
    var DMODE = 493;
    var FMODE = 420;
    var END_OF_TAR = b4a.alloc(1024);
    var Sink = class extends Writable3 {
      static {
        __name(this, "Sink");
      }
      constructor(pack, header, callback) {
        super({ mapWritable, eagerOpen: true });
        this.written = 0;
        this.header = header;
        this._callback = callback;
        this._linkname = null;
        this._isLinkname = header.type === "symlink" && !header.linkname;
        this._isVoid = header.type !== "file" && header.type !== "contiguous-file";
        this._finished = false;
        this._pack = pack;
        this._openCallback = null;
        if (this._pack._stream === null) this._pack._stream = this;
        else this._pack._pending.push(this);
      }
      _open(cb) {
        this._openCallback = cb;
        if (this._pack._stream === this) this._continueOpen();
      }
      _continuePack(err) {
        if (this._callback === null) return;
        const callback = this._callback;
        this._callback = null;
        callback(err);
      }
      _continueOpen() {
        if (this._pack._stream === null) this._pack._stream = this;
        const cb = this._openCallback;
        this._openCallback = null;
        if (cb === null) return;
        if (this._pack.destroying) return cb(new Error("pack stream destroyed"));
        if (this._pack._finalized) return cb(new Error("pack stream is already finalized"));
        this._pack._stream = this;
        if (!this._isLinkname) {
          this._pack._encode(this.header);
        }
        if (this._isVoid) {
          this._finish();
          this._continuePack(null);
        }
        cb(null);
      }
      _write(data3, cb) {
        if (this._isLinkname) {
          this._linkname = this._linkname ? b4a.concat([this._linkname, data3]) : data3;
          return cb(null);
        }
        if (this._isVoid) {
          if (data3.byteLength > 0) {
            return cb(new Error("No body allowed for this entry"));
          }
          return cb();
        }
        this.written += data3.byteLength;
        if (this._pack.push(data3)) return cb();
        this._pack._drain = cb;
      }
      _finish() {
        if (this._finished) return;
        this._finished = true;
        if (this._isLinkname) {
          this.header.linkname = this._linkname ? b4a.toString(this._linkname, "utf-8") : "";
          this._pack._encode(this.header);
        }
        overflow(this._pack, this.header.size);
        this._pack._done(this);
      }
      _final(cb) {
        if (this.written !== this.header.size) {
          return cb(new Error("Size mismatch"));
        }
        this._finish();
        cb(null);
      }
      _getError() {
        return getStreamError(this) || new Error("tar entry destroyed");
      }
      _predestroy() {
        this._pack.destroy(this._getError());
      }
      _destroy(cb) {
        this._pack._done(this);
        this._continuePack(this._finished ? null : this._getError());
        cb();
      }
    };
    var Pack = class extends Readable {
      static {
        __name(this, "Pack");
      }
      constructor(opts) {
        super(opts);
        this._drain = noop;
        this._finalized = false;
        this._finalizing = false;
        this._pending = [];
        this._stream = null;
      }
      entry(header, buffer, callback) {
        if (this._finalized || this.destroying) throw new Error("already finalized or destroyed");
        if (typeof buffer === "function") {
          callback = buffer;
          buffer = null;
        }
        if (!callback) callback = noop;
        if (!header.size || header.type === "symlink") header.size = 0;
        if (!header.type) header.type = modeToType(header.mode);
        if (!header.mode) header.mode = header.type === "directory" ? DMODE : FMODE;
        if (!header.uid) header.uid = 0;
        if (!header.gid) header.gid = 0;
        if (!header.mtime) header.mtime = /* @__PURE__ */ new Date();
        if (typeof buffer === "string") buffer = b4a.from(buffer);
        const sink = new Sink(this, header, callback);
        if (b4a.isBuffer(buffer)) {
          header.size = buffer.byteLength;
          sink.write(buffer);
          sink.end();
          return sink;
        }
        if (sink._isVoid) {
          return sink;
        }
        return sink;
      }
      finalize() {
        if (this._stream || this._pending.length > 0) {
          this._finalizing = true;
          return;
        }
        if (this._finalized) return;
        this._finalized = true;
        this.push(END_OF_TAR);
        this.push(null);
      }
      _done(stream3) {
        if (stream3 !== this._stream) return;
        this._stream = null;
        if (this._finalizing) this.finalize();
        if (this._pending.length) this._pending.shift()._continueOpen();
      }
      _encode(header) {
        if (!header.pax) {
          const buf = headers.encode(header);
          if (buf) {
            this.push(buf);
            return;
          }
        }
        this._encodePax(header);
      }
      _encodePax(header) {
        const paxHeader = headers.encodePax({
          name: header.name,
          linkname: header.linkname,
          pax: header.pax
        });
        const newHeader = {
          name: "PaxHeader",
          mode: header.mode,
          uid: header.uid,
          gid: header.gid,
          size: paxHeader.byteLength,
          mtime: header.mtime,
          type: "pax-header",
          linkname: header.linkname && "PaxHeader",
          uname: header.uname,
          gname: header.gname,
          devmajor: header.devmajor,
          devminor: header.devminor
        };
        this.push(headers.encode(newHeader));
        this.push(paxHeader);
        overflow(this, paxHeader.byteLength);
        newHeader.size = header.size;
        newHeader.type = header.type;
        this.push(headers.encode(newHeader));
      }
      _doDrain() {
        const drain = this._drain;
        this._drain = noop;
        drain();
      }
      _predestroy() {
        const err = getStreamError(this);
        if (this._stream) this._stream.destroy(err);
        while (this._pending.length) {
          const stream3 = this._pending.shift();
          stream3.destroy(err);
          stream3._continueOpen();
        }
        this._doDrain();
      }
      _read(cb) {
        this._doDrain();
        cb();
      }
    };
    module2.exports = /* @__PURE__ */ __name(function pack(opts) {
      return new Pack(opts);
    }, "pack");
    function modeToType(mode) {
      switch (mode & constants3.S_IFMT) {
        case constants3.S_IFBLK:
          return "block-device";
        case constants3.S_IFCHR:
          return "character-device";
        case constants3.S_IFDIR:
          return "directory";
        case constants3.S_IFIFO:
          return "fifo";
        case constants3.S_IFLNK:
          return "symlink";
      }
      return "file";
    }
    __name(modeToType, "modeToType");
    function noop() {
    }
    __name(noop, "noop");
    function overflow(self2, size) {
      size &= 511;
      if (size) self2.push(END_OF_TAR.subarray(0, 512 - size));
    }
    __name(overflow, "overflow");
    function mapWritable(buf) {
      return b4a.isBuffer(buf) ? buf : b4a.from(buf);
    }
    __name(mapWritable, "mapWritable");
  }
});

// ../../node_modules/archiver/node_modules/tar-stream/index.js
var require_tar_stream = __commonJS({
  "../../node_modules/archiver/node_modules/tar-stream/index.js"(exports2) {
    exports2.extract = require_extract();
    exports2.pack = require_pack();
  }
});

// ../../node_modules/archiver/lib/plugins/tar.js
var require_tar = __commonJS({
  "../../node_modules/archiver/lib/plugins/tar.js"(exports2, module2) {
    var zlib = require("zlib");
    var engine = require_tar_stream();
    var util11 = require_archiver_utils();
    var Tar = /* @__PURE__ */ __name(function(options) {
      if (!(this instanceof Tar)) {
        return new Tar(options);
      }
      options = this.options = util11.defaults(options, {
        gzip: false
      });
      if (typeof options.gzipOptions !== "object") {
        options.gzipOptions = {};
      }
      this.supports = {
        directory: true,
        symlink: true
      };
      this.engine = engine.pack(options);
      this.compressor = false;
      if (options.gzip) {
        this.compressor = zlib.createGzip(options.gzipOptions);
        this.compressor.on("error", this._onCompressorError.bind(this));
      }
    }, "Tar");
    Tar.prototype._onCompressorError = function(err) {
      this.engine.emit("error", err);
    };
    Tar.prototype.append = function(source, data3, callback) {
      var self2 = this;
      data3.mtime = data3.date;
      function append(err, sourceBuffer) {
        if (err) {
          callback(err);
          return;
        }
        self2.engine.entry(data3, sourceBuffer, function(err2) {
          callback(err2, data3);
        });
      }
      __name(append, "append");
      if (data3.sourceType === "buffer") {
        append(null, source);
      } else if (data3.sourceType === "stream" && data3.stats) {
        data3.size = data3.stats.size;
        var entry = self2.engine.entry(data3, function(err) {
          callback(err, data3);
        });
        source.pipe(entry);
      } else if (data3.sourceType === "stream") {
        util11.collectStream(source, append);
      }
    };
    Tar.prototype.finalize = function() {
      this.engine.finalize();
    };
    Tar.prototype.on = function() {
      return this.engine.on.apply(this.engine, arguments);
    };
    Tar.prototype.pipe = function(destination, options) {
      if (this.compressor) {
        return this.engine.pipe.apply(this.engine, [this.compressor]).pipe(destination, options);
      } else {
        return this.engine.pipe.apply(this.engine, arguments);
      }
    };
    Tar.prototype.unpipe = function() {
      if (this.compressor) {
        return this.compressor.unpipe.apply(this.compressor, arguments);
      } else {
        return this.engine.unpipe.apply(this.engine, arguments);
      }
    };
    module2.exports = Tar;
  }
});

// ../../node_modules/buffer-crc32/dist/index.cjs
var require_dist = __commonJS({
  "../../node_modules/buffer-crc32/dist/index.cjs"(exports2, module2) {
    "use strict";
    function getDefaultExportFromCjs(x3) {
      return x3 && x3.__esModule && Object.prototype.hasOwnProperty.call(x3, "default") ? x3["default"] : x3;
    }
    __name(getDefaultExportFromCjs, "getDefaultExportFromCjs");
    var CRC_TABLE = new Int32Array([
      0,
      1996959894,
      3993919788,
      2567524794,
      124634137,
      1886057615,
      3915621685,
      2657392035,
      249268274,
      2044508324,
      3772115230,
      2547177864,
      162941995,
      2125561021,
      3887607047,
      2428444049,
      498536548,
      1789927666,
      4089016648,
      2227061214,
      450548861,
      1843258603,
      4107580753,
      2211677639,
      325883990,
      1684777152,
      4251122042,
      2321926636,
      335633487,
      1661365465,
      4195302755,
      2366115317,
      997073096,
      1281953886,
      3579855332,
      2724688242,
      1006888145,
      1258607687,
      3524101629,
      2768942443,
      901097722,
      1119000684,
      3686517206,
      2898065728,
      853044451,
      1172266101,
      3705015759,
      2882616665,
      651767980,
      1373503546,
      3369554304,
      3218104598,
      565507253,
      1454621731,
      3485111705,
      3099436303,
      671266974,
      1594198024,
      3322730930,
      2970347812,
      795835527,
      1483230225,
      3244367275,
      3060149565,
      1994146192,
      31158534,
      2563907772,
      4023717930,
      1907459465,
      112637215,
      2680153253,
      3904427059,
      2013776290,
      251722036,
      2517215374,
      3775830040,
      2137656763,
      141376813,
      2439277719,
      3865271297,
      1802195444,
      476864866,
      2238001368,
      4066508878,
      1812370925,
      453092731,
      2181625025,
      4111451223,
      1706088902,
      314042704,
      2344532202,
      4240017532,
      1658658271,
      366619977,
      2362670323,
      4224994405,
      1303535960,
      984961486,
      2747007092,
      3569037538,
      1256170817,
      1037604311,
      2765210733,
      3554079995,
      1131014506,
      879679996,
      2909243462,
      3663771856,
      1141124467,
      855842277,
      2852801631,
      3708648649,
      1342533948,
      654459306,
      3188396048,
      3373015174,
      1466479909,
      544179635,
      3110523913,
      3462522015,
      1591671054,
      702138776,
      2966460450,
      3352799412,
      1504918807,
      783551873,
      3082640443,
      3233442989,
      3988292384,
      2596254646,
      62317068,
      1957810842,
      3939845945,
      2647816111,
      81470997,
      1943803523,
      3814918930,
      2489596804,
      225274430,
      2053790376,
      3826175755,
      2466906013,
      167816743,
      2097651377,
      4027552580,
      2265490386,
      503444072,
      1762050814,
      4150417245,
      2154129355,
      426522225,
      1852507879,
      4275313526,
      2312317920,
      282753626,
      1742555852,
      4189708143,
      2394877945,
      397917763,
      1622183637,
      3604390888,
      2714866558,
      953729732,
      1340076626,
      3518719985,
      2797360999,
      1068828381,
      1219638859,
      3624741850,
      2936675148,
      906185462,
      1090812512,
      3747672003,
      2825379669,
      829329135,
      1181335161,
      3412177804,
      3160834842,
      628085408,
      1382605366,
      3423369109,
      3138078467,
      570562233,
      1426400815,
      3317316542,
      2998733608,
      733239954,
      1555261956,
      3268935591,
      3050360625,
      752459403,
      1541320221,
      2607071920,
      3965973030,
      1969922972,
      40735498,
      2617837225,
      3943577151,
      1913087877,
      83908371,
      2512341634,
      3803740692,
      2075208622,
      213261112,
      2463272603,
      3855990285,
      2094854071,
      198958881,
      2262029012,
      4057260610,
      1759359992,
      534414190,
      2176718541,
      4139329115,
      1873836001,
      414664567,
      2282248934,
      4279200368,
      1711684554,
      285281116,
      2405801727,
      4167216745,
      1634467795,
      376229701,
      2685067896,
      3608007406,
      1308918612,
      956543938,
      2808555105,
      3495958263,
      1231636301,
      1047427035,
      2932959818,
      3654703836,
      1088359270,
      936918e3,
      2847714899,
      3736837829,
      1202900863,
      817233897,
      3183342108,
      3401237130,
      1404277552,
      615818150,
      3134207493,
      3453421203,
      1423857449,
      601450431,
      3009837614,
      3294710456,
      1567103746,
      711928724,
      3020668471,
      3272380065,
      1510334235,
      755167117
    ]);
    function ensureBuffer(input) {
      if (Buffer.isBuffer(input)) {
        return input;
      }
      if (typeof input === "number") {
        return Buffer.alloc(input);
      } else if (typeof input === "string") {
        return Buffer.from(input);
      } else {
        throw new Error("input must be buffer, number, or string, received " + typeof input);
      }
    }
    __name(ensureBuffer, "ensureBuffer");
    function bufferizeInt(num) {
      const tmp = ensureBuffer(4);
      tmp.writeInt32BE(num, 0);
      return tmp;
    }
    __name(bufferizeInt, "bufferizeInt");
    function _crc32(buf, previous) {
      buf = ensureBuffer(buf);
      if (Buffer.isBuffer(previous)) {
        previous = previous.readUInt32BE(0);
      }
      let crc = ~~previous ^ -1;
      for (var n3 = 0; n3 < buf.length; n3++) {
        crc = CRC_TABLE[(crc ^ buf[n3]) & 255] ^ crc >>> 8;
      }
      return crc ^ -1;
    }
    __name(_crc32, "_crc32");
    function crc32() {
      return bufferizeInt(_crc32.apply(null, arguments));
    }
    __name(crc32, "crc32");
    crc32.signed = function() {
      return _crc32.apply(null, arguments);
    };
    crc32.unsigned = function() {
      return _crc32.apply(null, arguments) >>> 0;
    };
    var bufferCrc32 = crc32;
    var index = /* @__PURE__ */ getDefaultExportFromCjs(bufferCrc32);
    module2.exports = index;
  }
});

// ../../node_modules/archiver/lib/plugins/json.js
var require_json2 = __commonJS({
  "../../node_modules/archiver/lib/plugins/json.js"(exports2, module2) {
    var inherits = require("util").inherits;
    var Transform = require_ours2().Transform;
    var crc32 = require_dist();
    var util11 = require_archiver_utils();
    var Json = /* @__PURE__ */ __name(function(options) {
      if (!(this instanceof Json)) {
        return new Json(options);
      }
      options = this.options = util11.defaults(options, {});
      Transform.call(this, options);
      this.supports = {
        directory: true,
        symlink: true
      };
      this.files = [];
    }, "Json");
    inherits(Json, Transform);
    Json.prototype._transform = function(chunk, encoding, callback) {
      callback(null, chunk);
    };
    Json.prototype._writeStringified = function() {
      var fileString = JSON.stringify(this.files);
      this.write(fileString);
    };
    Json.prototype.append = function(source, data3, callback) {
      var self2 = this;
      data3.crc32 = 0;
      function onend(err, sourceBuffer) {
        if (err) {
          callback(err);
          return;
        }
        data3.size = sourceBuffer.length || 0;
        data3.crc32 = crc32.unsigned(sourceBuffer);
        self2.files.push(data3);
        callback(null, data3);
      }
      __name(onend, "onend");
      if (data3.sourceType === "buffer") {
        onend(null, source);
      } else if (data3.sourceType === "stream") {
        util11.collectStream(source, onend);
      }
    };
    Json.prototype.finalize = function() {
      this._writeStringified();
      this.end();
    };
    module2.exports = Json;
  }
});

// ../../node_modules/archiver/index.js
var require_archiver = __commonJS({
  "../../node_modules/archiver/index.js"(exports2, module2) {
    var Archiver = require_core();
    var formats = {};
    var vending = /* @__PURE__ */ __name(function(format26, options) {
      return vending.create(format26, options);
    }, "vending");
    vending.create = function(format26, options) {
      if (formats[format26]) {
        var instance = new Archiver(format26, options);
        instance.setFormat(format26);
        instance.setModule(new formats[format26](options));
        return instance;
      } else {
        throw new Error("create(" + format26 + "): format not registered");
      }
    };
    vending.registerFormat = function(format26, module3) {
      if (formats[format26]) {
        throw new Error("register(" + format26 + "): format already registered");
      }
      if (typeof module3 !== "function") {
        throw new Error("register(" + format26 + "): format module invalid");
      }
      if (typeof module3.prototype.append !== "function" || typeof module3.prototype.finalize !== "function") {
        throw new Error("register(" + format26 + "): format module missing methods");
      }
      formats[format26] = module3;
    };
    vending.isRegisteredFormat = function(format26) {
      if (formats[format26]) {
        return true;
      }
      return false;
    };
    vending.registerFormat("zip", require_zip());
    vending.registerFormat("tar", require_tar());
    vending.registerFormat("json", require_json2());
    module2.exports = vending;
  }
});

// ../@aws-cdk/cdk-assets-lib/lib/private/archive.ts
async function zipDirectory(directory, outputFile, eventEmitter) {
  const temporaryOutputFile = `${outputFile}.${randomString()}._tmp`;
  await writeZipFile(directory, temporaryOutputFile);
  await moveIntoPlace(temporaryOutputFile, outputFile, eventEmitter);
}
function writeZipFile(directory, outputFile) {
  return new Promise(async (ok, fail) => {
    const globOptions = {
      dot: true,
      nodir: true,
      follow: true,
      cwd: directory
    };
    const files = sync("**", globOptions);
    const output = (0, import_fs2.createWriteStream)(outputFile);
    const archive = archiver("zip");
    archive.on("warning", fail);
    archive.on("error", fail);
    output.once("close", ok);
    archive.pipe(output);
    for (const file of files) {
      const fullPath = path5.resolve(directory, file);
      const [data3, stat5] = await Promise.all([import_fs2.promises.readFile(fullPath), import_fs2.promises.stat(fullPath)]);
      archive.append(data3, {
        name: file,
        date: /* @__PURE__ */ new Date("1980-01-01T00:00:00.000Z"),
        // reset dates to get the same hash for the same content
        mode: stat5.mode
      });
    }
    await archive.finalize();
  });
}
async function moveIntoPlace(source, target, eventEmitter) {
  let delay = 100;
  let attempts = 5;
  while (true) {
    try {
      await import_fs2.promises.rename(source, target);
      return;
    } catch (e3) {
      if (e3.code !== "EPERM" || attempts-- <= 0) {
        throw e3;
      }
      eventEmitter(e3.message);
      await sleep(Math.floor(Math.random() * delay));
      delay *= 2;
    }
  }
}
function sleep(ms) {
  return new Promise((ok) => setTimeout(ok, ms));
}
function randomString() {
  return Math.random().toString(36).replace(/[^a-z0-9]+/g, "");
}
var import_fs2, path5, archiver;
var init_archive = __esm({
  "../@aws-cdk/cdk-assets-lib/lib/private/archive.ts"() {
    "use strict";
    import_fs2 = require("fs");
    path5 = __toESM(require("path"));
    init_esm7();
    archiver = require_archiver();
    __name(zipDirectory, "zipDirectory");
    __name(writeZipFile, "writeZipFile");
    __name(moveIntoPlace, "moveIntoPlace");
    __name(sleep, "sleep");
    __name(randomString, "randomString");
  }
});

// ../@aws-cdk/cdk-assets-lib/lib/private/fs-extra.ts
async function pathExists(pathName) {
  try {
    await pfs.stat(pathName);
    return true;
  } catch (e3) {
    if (e3.code !== "ENOENT") {
      throw e3;
    }
    return false;
  }
}
var fs5, pfs;
var init_fs_extra = __esm({
  "../@aws-cdk/cdk-assets-lib/lib/private/fs-extra.ts"() {
    "use strict";
    fs5 = __toESM(require("fs"));
    pfs = fs5.promises;
    __name(pathExists, "pathExists");
  }
});

// ../@aws-cdk/cdk-assets-lib/lib/private/handlers/files.ts
async function objectExists(s3, bucket, key) {
  const response = await s3.listObjectsV2({
    Bucket: bucket,
    Prefix: key,
    MaxKeys: 1
  });
  return response.Contents != null && response.Contents.some(
    (object) => object.Key === key && (object.Size == null || object.Size > EMPTY_ZIP_FILE_SIZE)
  );
}
async function cached(cache3, key, factory) {
  if (cache3.has(key)) {
    return cache3.get(key);
  }
  const fresh = await factory(key);
  cache3.set(key, fresh);
  return fresh;
}
var import_fs3, path6, import_cloud_assembly_schema, mime, EMPTY_ZIP_FILE_SIZE, FileAssetHandler, BucketInformation;
var init_files = __esm({
  "../@aws-cdk/cdk-assets-lib/lib/private/handlers/files.ts"() {
    "use strict";
    import_fs3 = require("fs");
    path6 = __toESM(require("path"));
    import_cloud_assembly_schema = __toESM(require_lib2());
    mime = __toESM(require_mime());
    init_client_options();
    init_progress();
    init_archive();
    init_fs_extra();
    init_placeholders();
    init_shell();
    EMPTY_ZIP_FILE_SIZE = 22;
    FileAssetHandler = class {
      constructor(workDir, asset, host) {
        this.workDir = workDir;
        this.asset = asset;
        this.host = host;
        this.fileCacheRoot = path6.join(workDir, ".cache");
      }
      static {
        __name(this, "FileAssetHandler");
      }
      async build() {
      }
      async isPublished() {
        const destination = await replaceAwsPlaceholders(this.asset.destination, this.host.aws);
        const s3Url = `s3://${destination.bucketName}/${destination.objectKey}`;
        try {
          const s3 = await this.host.aws.s3Client({
            ...destinationToClientOptions(destination),
            quiet: true
          });
          this.host.emitMessage("check" /* CHECK */, `Check ${s3Url}`);
          if (await objectExists(s3, destination.bucketName, destination.objectKey)) {
            this.host.emitMessage("found" /* FOUND */, `Found ${s3Url}`);
            return true;
          }
        } catch (e3) {
          this.host.emitMessage("debug" /* DEBUG */, `${e3.message}`);
        }
        return false;
      }
      async publish(options = {}) {
        const destination = await replaceAwsPlaceholders(this.asset.destination, this.host.aws);
        const s3Url = `s3://${destination.bucketName}/${destination.objectKey}`;
        const clientOptions = destinationToClientOptions(destination);
        const s3 = await this.host.aws.s3Client(clientOptions);
        this.host.emitMessage("check" /* CHECK */, `Check ${s3Url}`);
        const bucketInfo = BucketInformation.for(this.host);
        const account = /* @__PURE__ */ __name(async () => (await this.host.aws.discoverTargetAccount(clientOptions)).accountId, "account");
        const allowCrossAccount = options.allowCrossAccount ?? true;
        switch (await bucketInfo.bucketOwnership(
          s3,
          destination.bucketName,
          allowCrossAccount ? void 0 : await account()
        )) {
          case 1 /* MINE */:
            break;
          case 0 /* DOES_NOT_EXIST */:
            throw new Error(
              `No bucket named '${destination.bucketName}'. Is account ${await account()} bootstrapped?`
            );
          case 2 /* NO_ACCESS */:
            throw new Error(
              `Bucket named '${destination.bucketName}' exists, but we dont have access to it.`
            );
          case 3 /* SOMEONE_ELSES_AND_HAVE_ACCESS */:
            if (!allowCrossAccount) {
              throw new Error(
                `\u2757\u2757 UNEXPECTED BUCKET OWNER DETECTED \u2757\u2757

              We've detected that the S3 bucket ${destination.bucketName} was
              originally created in account ${await account()} as part of the CloudFormation stack CDKToolkit,
              but now resides in a different AWS account. To prevent cross-account asset bucket access of your
              deployments, CDK will stop now.

              If this situation is intentional and you own the AWS account that the bucket has moved to, remove the
              resource named StagingBucket from the template of CloudFormation stack CDKToolkit and try again.

              If this situation is not intentional, we strongly recommend auditing your account to make sure all
              resources are configured the way you expect them [1]. For questions or concerns, please contact
              AWS Support [2].

              [1] https://repost.aws/knowledge-center/potential-account-compromise

              [2] https://aws.amazon.com/support`
              );
            }
            break;
        }
        if (!options.force && await objectExists(s3, destination.bucketName, destination.objectKey)) {
          this.host.emitMessage("found" /* FOUND */, `Found ${s3Url}`);
          return;
        }
        let paramsEncryption = {};
        const encryption2 = await bucketInfo.bucketEncryption(s3, destination.bucketName);
        switch (encryption2.type) {
          case "no_encryption":
            break;
          case "aes256":
            paramsEncryption = { ServerSideEncryption: "AES256" };
            break;
          case "kms":
            paramsEncryption = {
              ServerSideEncryption: "aws:kms",
              SSEKMSKeyId: encryption2.kmsKeyId
            };
            break;
          case "does_not_exist":
            this.host.emitMessage(
              "debug" /* DEBUG */,
              `No bucket named '${destination.bucketName}'. Is account ${await account()} bootstrapped?`
            );
            break;
          case "access_denied":
            this.host.emitMessage(
              "debug" /* DEBUG */,
              `Could not read encryption settings of bucket '${destination.bucketName}': uploading with default settings ("cdk bootstrap" to version 9 if your organization's policies prevent a successful upload or to get rid of this message).`
            );
            break;
        }
        if (this.host.aborted) {
          return;
        }
        const publishFile = this.asset.source.executable ? await this.externalPackageFile(this.asset.source.executable) : await this.packageFile(this.asset.source);
        this.host.emitMessage("upload" /* UPLOAD */, `Upload ${s3Url}`);
        const params = Object.assign(
          {},
          {
            Bucket: destination.bucketName,
            Key: destination.objectKey,
            Body: (0, import_fs3.createReadStream)(publishFile.packagedPath),
            ContentType: publishFile.contentType,
            ChecksumAlgorithm: "SHA256"
          },
          paramsEncryption
        );
        await s3.upload(params);
      }
      async packageFile(source) {
        if (!source.path) {
          throw new Error(
            `'path' is expected in the File asset source, got: ${JSON.stringify(source)}`
          );
        }
        const fullPath = path6.resolve(this.workDir, source.path);
        if (source.packaging === import_cloud_assembly_schema.FileAssetPackaging.ZIP_DIRECTORY) {
          const contentType = "application/zip";
          await import_fs3.promises.mkdir(this.fileCacheRoot, { recursive: true });
          const packagedPath = path6.join(this.fileCacheRoot, `${this.asset.id.assetId}.zip`);
          if (await pathExists(packagedPath)) {
            this.host.emitMessage("cached" /* CACHED */, `From cache ${packagedPath}`);
            return { packagedPath, contentType };
          }
          this.host.emitMessage("build" /* BUILD */, `Zip ${fullPath} -> ${packagedPath}`);
          await zipDirectory(fullPath, packagedPath, (m3) => this.host.emitMessage("debug" /* DEBUG */, m3));
          return { packagedPath, contentType };
        } else {
          const contentType = mime.getType(fullPath) ?? "application/octet-stream";
          return { packagedPath: fullPath, contentType };
        }
      }
      async externalPackageFile(executable) {
        this.host.emitMessage("build" /* BUILD */, `Building asset source using command: '${executable}'`);
        const shellEventPublisher = shellEventPublisherFromEventEmitter(this.host.emitMessage);
        return {
          packagedPath: (await shell(executable, { subprocessOutputDestination: "ignore", shellEventPublisher })).trim(),
          contentType: "application/zip"
        };
      }
    };
    __name(objectExists, "objectExists");
    BucketInformation = class _BucketInformation {
      constructor() {
        this.ownerships = /* @__PURE__ */ new Map();
        this.encryptions = /* @__PURE__ */ new Map();
      }
      static {
        __name(this, "BucketInformation");
      }
      static for(host) {
        const existing = _BucketInformation.caches.get(host);
        if (existing) {
          return existing;
        }
        const fresh = new _BucketInformation();
        _BucketInformation.caches.set(host, fresh);
        return fresh;
      }
      static {
        this.caches = /* @__PURE__ */ new WeakMap();
      }
      async bucketOwnership(s3, bucket, expectedAccount) {
        return cached(this.ownerships, bucket, async () => {
          const anyAccount = await this._bucketOwnership(s3, bucket);
          switch (anyAccount) {
            case 1 /* MINE */:
              if (expectedAccount && await this._bucketOwnership(s3, bucket, expectedAccount) === 2 /* NO_ACCESS */) {
                return 3 /* SOMEONE_ELSES_AND_HAVE_ACCESS */;
              }
              return 1 /* MINE */;
            default:
              return anyAccount;
          }
        });
      }
      async bucketEncryption(s3, bucket) {
        return cached(this.encryptions, bucket, () => this._bucketEncryption(s3, bucket));
      }
      async _bucketOwnership(s3, bucket, account) {
        try {
          await s3.getBucketLocation({ Bucket: bucket, ExpectedBucketOwner: account });
          return 1 /* MINE */;
        } catch (e3) {
          if (e3.name === "NoSuchBucket") {
            return 0 /* DOES_NOT_EXIST */;
          }
          if (["AccessDenied", "AllAccessDisabled"].includes(e3.name)) {
            return 2 /* NO_ACCESS */;
          }
          throw e3;
        }
      }
      async _bucketEncryption(s3, bucket) {
        try {
          const encryption = await s3.getBucketEncryption({ Bucket: bucket });
          const l3 = encryption?.ServerSideEncryptionConfiguration?.Rules?.length ?? 0;
          if (l3 > 0) {
            const apply = encryption?.ServerSideEncryptionConfiguration?.Rules?.at(
              0
            )?.ApplyServerSideEncryptionByDefault;
            let ssealgo = apply?.SSEAlgorithm;
            if (ssealgo === "AES256") return { type: "aes256" };
            if (ssealgo === "aws:kms") return { type: "kms", kmsKeyId: apply?.KMSMasterKeyID };
          }
          return { type: "no_encryption" };
        } catch (e3) {
          if (e3.name === "NoSuchBucket") {
            return { type: "does_not_exist" };
          }
          if (e3.name === "ServerSideEncryptionConfigurationNotFoundError") {
            return { type: "no_encryption" };
          }
          if (["AccessDenied", "AllAccessDisabled"].includes(e3.name)) {
            return { type: "access_denied" };
          }
          return { type: "no_encryption" };
        }
      }
    };
    __name(cached, "cached");
  }
});

// ../@aws-cdk/cdk-assets-lib/lib/asset-manifest.ts
var asset_manifest_exports = {};
__export(asset_manifest_exports, {
  AssetManifest: () => AssetManifest,
  DestinationIdentifier: () => DestinationIdentifier,
  DestinationPattern: () => DestinationPattern,
  DockerImageManifestEntry: () => DockerImageManifestEntry,
  FileManifestEntry: () => FileManifestEntry
});
function makeEntries(assets, ctor) {
  const ret = new Array();
  for (const [assetId, asset] of Object.entries(assets)) {
    for (const [destId, destination] of Object.entries(asset.destinations)) {
      ret.push(new ctor(new DestinationIdentifier(assetId, destId), asset.displayName, asset.source, destination));
    }
  }
  return ret;
}
function filterDict(xs, pred) {
  const ret = {};
  for (const [key, value] of Object.entries(xs)) {
    if (pred(value, key)) {
      ret[key] = value;
    }
  }
  return ret;
}
function prefixTreeChars(xs, prefix2 = "") {
  const ret = new Array();
  for (let i3 = 0; i3 < xs.length; i3++) {
    const isLast = i3 === xs.length - 1;
    const boxChar = isLast ? "\u2514" : "\u251C";
    ret.push(`${prefix2}${boxChar}${xs[i3]}`);
  }
  return ret;
}
var fs7, path7, import_cloud_assembly_schema2, AssetManifest, ASSET_TYPES, FileManifestEntry, DockerImageManifestEntry, DestinationIdentifier, DestinationPattern;
var init_asset_manifest = __esm({
  "../@aws-cdk/cdk-assets-lib/lib/asset-manifest.ts"() {
    "use strict";
    fs7 = __toESM(require("fs"));
    path7 = __toESM(require("path"));
    import_cloud_assembly_schema2 = __toESM(require_lib2());
    AssetManifest = class _AssetManifest {
      constructor(directory, manifest) {
        this.manifest = manifest;
        this.directory = directory;
      }
      static {
        __name(this, "AssetManifest");
      }
      static {
        /**
         * The default name of the asset manifest in a cdk.out directory
         */
        this.DEFAULT_FILENAME = "assets.json";
      }
      /**
       * Load an asset manifest from the given file
       */
      static fromFile(fileName) {
        try {
          const obj = import_cloud_assembly_schema2.Manifest.loadAssetManifest(fileName);
          return new _AssetManifest(path7.dirname(fileName), obj);
        } catch (e3) {
          throw new Error(`Cannot read asset manifest '${fileName}': ${e3.message}`);
        }
      }
      /**
       * Load an asset manifest from the given file or directory
       *
       * If the argument given is a directoy, the default asset file name will be used.
       */
      static fromPath(filePath) {
        let st;
        try {
          st = fs7.statSync(filePath);
        } catch (e3) {
          throw new Error(`Cannot read asset manifest at '${filePath}': ${e3.message}`);
        }
        if (st.isDirectory()) {
          return _AssetManifest.fromFile(path7.join(filePath, _AssetManifest.DEFAULT_FILENAME));
        }
        return _AssetManifest.fromFile(filePath);
      }
      /**
       * Select a subset of assets and destinations from this manifest.
       *
       * Only assets with at least 1 selected destination are retained.
       *
       * If selection is not given, everything is returned.
       */
      select(selection) {
        if (selection === void 0) {
          return this;
        }
        const ret = {
          version: this.manifest.version,
          dockerImages: {},
          files: {}
        };
        for (const assetType of ASSET_TYPES) {
          for (const [assetId, asset] of Object.entries(this.manifest[assetType] || {})) {
            const filteredDestinations = filterDict(
              asset.destinations,
              (_3, destId) => selection.some((sel) => sel.matches(new DestinationIdentifier(assetId, destId)))
            );
            if (Object.keys(filteredDestinations).length > 0) {
              ret[assetType][assetId] = {
                ...asset,
                destinations: filteredDestinations
              };
            }
          }
        }
        return new _AssetManifest(this.directory, ret);
      }
      /**
       * Describe the asset manifest as a list of strings
       */
      list() {
        return [
          ...describeAssets("file", this.manifest.files || {}),
          ...describeAssets("docker-image", this.manifest.dockerImages || {})
        ];
        function describeAssets(type, assets) {
          const ret = new Array();
          for (const [assetId, asset] of Object.entries(assets || {})) {
            ret.push(`${assetId} ${type} ${JSON.stringify(asset.source)}`);
            const destStrings = Object.entries(asset.destinations).map(
              ([destId, dest]) => ` ${assetId}:${destId} ${JSON.stringify(dest)}`
            );
            ret.push(...prefixTreeChars(destStrings, "  "));
          }
          return ret;
        }
        __name(describeAssets, "describeAssets");
      }
      /**
       * List of assets per destination
       *
       * Returns one asset for every publishable destination. Multiple asset
       * destinations may share the same asset source.
       */
      get entries() {
        return [
          ...makeEntries(this.manifest.files || {}, FileManifestEntry),
          ...makeEntries(this.manifest.dockerImages || {}, DockerImageManifestEntry)
        ];
      }
      /**
       * List of file assets, splat out to destinations
       */
      get files() {
        return makeEntries(this.manifest.files || {}, FileManifestEntry);
      }
    };
    __name(makeEntries, "makeEntries");
    ASSET_TYPES = ["files", "dockerImages"];
    FileManifestEntry = class {
      constructor(id, _displayName, source, destination) {
        this.id = id;
        this._displayName = _displayName;
        this.source = source;
        this.destination = destination;
        this.type = "file";
        this.genericSource = source;
        this.genericDestination = destination;
      }
      static {
        __name(this, "FileManifestEntry");
      }
      displayName(includeDestination) {
        if (includeDestination) {
          return this._displayName ? `${this._displayName} (${this.id.destinationId})` : `${this.id}`;
        } else {
          return this._displayName ? this._displayName : this.id.assetId;
        }
      }
    };
    DockerImageManifestEntry = class {
      constructor(id, _displayName, source, destination) {
        this.id = id;
        this._displayName = _displayName;
        this.source = source;
        this.destination = destination;
        this.type = "docker-image";
        this.genericSource = source;
        this.genericDestination = destination;
      }
      static {
        __name(this, "DockerImageManifestEntry");
      }
      displayName(includeDestination) {
        if (includeDestination) {
          return this._displayName ? `${this._displayName} (${this.id.destinationId})` : `${this.id}`;
        } else {
          return this._displayName ? this._displayName : this.id.assetId;
        }
      }
    };
    DestinationIdentifier = class {
      static {
        __name(this, "DestinationIdentifier");
      }
      constructor(assetId, destinationId) {
        this.assetId = assetId;
        this.destinationId = destinationId;
      }
      /**
       * Return a string representation for this asset identifier
       */
      toString() {
        return this.destinationId ? `${this.assetId}:${this.destinationId}` : this.assetId;
      }
    };
    __name(filterDict, "filterDict");
    DestinationPattern = class _DestinationPattern {
      static {
        __name(this, "DestinationPattern");
      }
      /**
       * Parse a ':'-separated string into an asset/destination identifier
       */
      static parse(s3) {
        if (!s3) {
          throw new Error("Empty string is not a valid destination identifier");
        }
        const parts = s3.split(":").map((x3) => x3 !== "*" ? x3 : void 0);
        if (parts.length === 1) {
          return new _DestinationPattern(parts[0]);
        }
        if (parts.length === 2) {
          return new _DestinationPattern(parts[0] || void 0, parts[1] || void 0);
        }
        throw new Error(`Asset identifier must contain at most 2 ':'-separated parts, got '${s3}'`);
      }
      constructor(assetId, destinationId) {
        this.assetId = assetId;
        this.destinationId = destinationId;
      }
      /**
       * Whether or not this pattern matches the given identifier
       */
      matches(id) {
        return (this.assetId === void 0 || this.assetId === id.assetId) && (this.destinationId === void 0 || this.destinationId === id.destinationId);
      }
      /**
       * Return a string representation for this asset identifier
       */
      toString() {
        return `${this.assetId ?? "*"}:${this.destinationId ?? "*"}`;
      }
    };
    __name(prefixTreeChars, "prefixTreeChars");
  }
});

// ../@aws-cdk/cdk-assets-lib/lib/private/handlers/index.ts
function makeAssetHandler(manifest, asset, host, options) {
  if (asset instanceof FileManifestEntry) {
    return new FileAssetHandler(manifest.directory, asset, host);
  }
  if (asset instanceof DockerImageManifestEntry) {
    return new ContainerImageAssetHandler(manifest.directory, asset, host, options);
  }
  throw new Error(`Unrecognized asset type: '${asset}'`);
}
var init_handlers = __esm({
  "../@aws-cdk/cdk-assets-lib/lib/private/handlers/index.ts"() {
    "use strict";
    init_container_images();
    init_files();
    init_asset_manifest();
    __name(makeAssetHandler, "makeAssetHandler");
  }
});

// ../@aws-cdk/cdk-assets-lib/lib/private/p-limit.ts
function pLimit(concurrency) {
  const queue = [];
  let activeCount = 0;
  let stopped = false;
  function dispatch() {
    if (activeCount < concurrency && queue.length > 0) {
      const [fac, resolve13, reject] = queue.shift();
      activeCount++;
      fac().then(
        (r3) => {
          resumeNext();
          resolve13(r3);
        },
        (e3) => {
          resumeNext();
          reject(e3);
        }
      );
    }
  }
  __name(dispatch, "dispatch");
  function resumeNext() {
    activeCount--;
    if (stopped) {
      for (const [_3, __, reject] of queue) {
        reject(new Error("Task has been cancelled"));
      }
      queue.splice(0, queue.length);
    }
    dispatch();
  }
  __name(resumeNext, "resumeNext");
  const ret = /* @__PURE__ */ __name((promiseFactory) => {
    return new Promise((resolve13, reject) => {
      queue.push([promiseFactory, resolve13, reject]);
      dispatch();
    });
  }, "ret");
  Object.defineProperties(ret, {
    dispose: {
      value: /* @__PURE__ */ __name(() => {
        stopped = true;
      }, "value")
    }
  });
  return ret;
}
var init_p_limit = __esm({
  "../@aws-cdk/cdk-assets-lib/lib/private/p-limit.ts"() {
    "use strict";
    __name(pLimit, "pLimit");
  }
});

// ../@aws-cdk/cdk-assets-lib/lib/publishing.ts
var publishing_exports = {};
__export(publishing_exports, {
  AssetPublishing: () => AssetPublishing
});
var AssetPublishing;
var init_publishing = __esm({
  "../@aws-cdk/cdk-assets-lib/lib/publishing.ts"() {
    "use strict";
    init_docker();
    init_handlers();
    init_p_limit();
    init_progress();
    AssetPublishing = class {
      constructor(manifest, options) {
        this.manifest = manifest;
        this.options = options;
        /**
         * The message for the IPublishProgress interface
         */
        this.message = "Starting";
        this.failures = new Array();
        this.completedOperations = 0;
        this.aborted = false;
        this.handlerCache = /* @__PURE__ */ new Map();
        this.assets = manifest.entries;
        this.totalOperations = this.assets.length;
        this.publishInParallel = options.publishInParallel ?? false;
        this.buildAssets = options.buildAssets ?? true;
        this.publishAssets = options.publishAssets ?? true;
        const self2 = this;
        this.handlerHost = {
          aws: this.options.aws,
          get aborted() {
            return self2.aborted;
          },
          emitMessage(t3, m3) {
            self2.progressEvent(t3, m3);
          },
          dockerFactory: new DockerFactory()
        };
      }
      static {
        __name(this, "AssetPublishing");
      }
      /**
       * Publish all assets from the manifest
       */
      async publish(options = {}) {
        if (this.publishInParallel) {
          const limit = pLimit(20);
          await Promise.all(
            this.assets.map((asset) => limit(async () => this.publishAsset(asset, options)))
          );
        } else {
          for (const asset of this.assets) {
            if (!await this.publishAsset(asset, options)) {
              break;
            }
          }
        }
        if ((this.options.throwOnError ?? true) && this.failures.length > 0) {
          throw new Error(`Error publishing: ${this.failures.map((e3) => e3.error.message)}`);
        }
      }
      /**
       * Build a single asset from the manifest
       */
      async buildEntry(asset) {
        try {
          if (this.progressEvent("start" /* START */, `Building ${asset.displayName(false)}`)) {
            return false;
          }
          const handler = this.assetHandler(asset);
          await handler.build();
          if (this.aborted) {
            throw new Error("Aborted");
          }
          this.completedOperations++;
          if (this.progressEvent("success" /* SUCCESS */, `Built ${asset.displayName(false)}`)) {
            return false;
          }
        } catch (e3) {
          this.failures.push({ asset, error: e3 });
          this.completedOperations++;
          if (this.progressEvent("fail" /* FAIL */, e3.message)) {
            return false;
          }
        }
        return true;
      }
      /**
       * Publish a single asset from the manifest
       */
      async publishEntry(asset, options = {}) {
        try {
          if (this.progressEvent("start" /* START */, `Publishing ${asset.displayName(true)}`)) {
            return false;
          }
          const handler = this.assetHandler(asset);
          await handler.publish(options);
          if (this.aborted) {
            throw new Error("Aborted");
          }
          this.completedOperations++;
          if (this.progressEvent("success" /* SUCCESS */, `Published ${asset.displayName(true)}`)) {
            return false;
          }
        } catch (e3) {
          this.failures.push({ asset, error: e3 });
          this.completedOperations++;
          if (this.progressEvent("fail" /* FAIL */, e3.message)) {
            return false;
          }
        }
        return true;
      }
      /**
       * Return whether a single asset is published
       */
      isEntryPublished(asset) {
        const handler = this.assetHandler(asset);
        return handler.isPublished();
      }
      /**
       * publish an asset (used by 'publish()')
       * @param asset - The asset to publish
       * @returns false when publishing should stop
       */
      async publishAsset(asset, options = {}) {
        try {
          if (this.progressEvent("start" /* START */, `Publishing ${asset.displayName(true)}`)) {
            return false;
          }
          const handler = this.assetHandler(asset);
          if (this.buildAssets) {
            await handler.build();
          }
          if (this.publishAssets) {
            await handler.publish(options);
          }
          if (this.aborted) {
            throw new Error("Aborted");
          }
          this.completedOperations++;
          if (this.progressEvent("success" /* SUCCESS */, `Published ${asset.displayName(true)}`)) {
            return false;
          }
        } catch (e3) {
          this.failures.push({ asset, error: e3 });
          this.completedOperations++;
          if (this.progressEvent("fail" /* FAIL */, e3.message)) {
            return false;
          }
        }
        return true;
      }
      get percentComplete() {
        if (this.totalOperations === 0) {
          return 100;
        }
        return Math.floor(this.completedOperations / this.totalOperations * 100);
      }
      abort() {
        this.aborted = true;
      }
      get hasFailures() {
        return this.failures.length > 0;
      }
      /**
       * Publish a progress event to the listener, if present.
       *
       * Returns whether an abort is requested. Helper to get rid of repetitive code in publish().
       */
      progressEvent(event, message2) {
        this.message = message2;
        if (this.options.progressListener) {
          this.options.progressListener.onPublishEvent(event, this);
        }
        return this.aborted;
      }
      assetHandler(asset) {
        const existing = this.handlerCache.get(asset);
        if (existing) {
          return existing;
        }
        if (this.options.quiet !== void 0 && this.options.subprocessOutputDestination) {
          throw new Error(
            "Cannot set both quiet and subprocessOutputDestination. Please use only subprocessOutputDestination"
          );
        }
        const subprocessOutputDestination = this.options.subprocessOutputDestination ?? (this.options.quiet ? "ignore" : "stdio");
        const ret = makeAssetHandler(this.manifest, asset, this.handlerHost, {
          subprocessOutputDestination
        });
        this.handlerCache.set(asset, ret);
        return ret;
      }
    };
  }
});

// ../../node_modules/@smithy/types/dist-cjs/index.js
var require_dist_cjs = __commonJS({
  "../../node_modules/@smithy/types/dist-cjs/index.js"(exports2, module2) {
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var src_exports = {};
    __export2(src_exports, {
      AlgorithmId: /* @__PURE__ */ __name(() => AlgorithmId, "AlgorithmId"),
      EndpointURLScheme: /* @__PURE__ */ __name(() => EndpointURLScheme, "EndpointURLScheme"),
      FieldPosition: /* @__PURE__ */ __name(() => FieldPosition, "FieldPosition"),
      HttpApiKeyAuthLocation: /* @__PURE__ */ __name(() => HttpApiKeyAuthLocation2, "HttpApiKeyAuthLocation"),
      HttpAuthLocation: /* @__PURE__ */ __name(() => HttpAuthLocation, "HttpAuthLocation"),
      IniSectionType: /* @__PURE__ */ __name(() => IniSectionType, "IniSectionType"),
      RequestHandlerProtocol: /* @__PURE__ */ __name(() => RequestHandlerProtocol, "RequestHandlerProtocol"),
      SMITHY_CONTEXT_KEY: /* @__PURE__ */ __name(() => SMITHY_CONTEXT_KEY4, "SMITHY_CONTEXT_KEY"),
      getDefaultClientConfiguration: /* @__PURE__ */ __name(() => getDefaultClientConfiguration, "getDefaultClientConfiguration"),
      resolveDefaultRuntimeConfig: /* @__PURE__ */ __name(() => resolveDefaultRuntimeConfig3, "resolveDefaultRuntimeConfig")
    });
    module2.exports = __toCommonJS2(src_exports);
    var HttpAuthLocation = /* @__PURE__ */ ((HttpAuthLocation2) => {
      HttpAuthLocation2["HEADER"] = "header";
      HttpAuthLocation2["QUERY"] = "query";
      return HttpAuthLocation2;
    })(HttpAuthLocation || {});
    var HttpApiKeyAuthLocation2 = /* @__PURE__ */ ((HttpApiKeyAuthLocation22) => {
      HttpApiKeyAuthLocation22["HEADER"] = "header";
      HttpApiKeyAuthLocation22["QUERY"] = "query";
      return HttpApiKeyAuthLocation22;
    })(HttpApiKeyAuthLocation2 || {});
    var EndpointURLScheme = /* @__PURE__ */ ((EndpointURLScheme2) => {
      EndpointURLScheme2["HTTP"] = "http";
      EndpointURLScheme2["HTTPS"] = "https";
      return EndpointURLScheme2;
    })(EndpointURLScheme || {});
    var AlgorithmId = /* @__PURE__ */ ((AlgorithmId2) => {
      AlgorithmId2["MD5"] = "md5";
      AlgorithmId2["CRC32"] = "crc32";
      AlgorithmId2["CRC32C"] = "crc32c";
      AlgorithmId2["SHA1"] = "sha1";
      AlgorithmId2["SHA256"] = "sha256";
      return AlgorithmId2;
    })(AlgorithmId || {});
    var getChecksumConfiguration = /* @__PURE__ */ __name2((runtimeConfig) => {
      const checksumAlgorithms = [];
      if (runtimeConfig.sha256 !== void 0) {
        checksumAlgorithms.push({
          algorithmId: /* @__PURE__ */ __name(() => "sha256", "algorithmId"),
          checksumConstructor: /* @__PURE__ */ __name(() => runtimeConfig.sha256, "checksumConstructor")
        });
      }
      if (runtimeConfig.md5 != void 0) {
        checksumAlgorithms.push({
          algorithmId: /* @__PURE__ */ __name(() => "md5", "algorithmId"),
          checksumConstructor: /* @__PURE__ */ __name(() => runtimeConfig.md5, "checksumConstructor")
        });
      }
      return {
        addChecksumAlgorithm(algo) {
          checksumAlgorithms.push(algo);
        },
        checksumAlgorithms() {
          return checksumAlgorithms;
        }
      };
    }, "getChecksumConfiguration");
    var resolveChecksumRuntimeConfig = /* @__PURE__ */ __name2((clientConfig) => {
      const runtimeConfig = {};
      clientConfig.checksumAlgorithms().forEach((checksumAlgorithm) => {
        runtimeConfig[checksumAlgorithm.algorithmId()] = checksumAlgorithm.checksumConstructor();
      });
      return runtimeConfig;
    }, "resolveChecksumRuntimeConfig");
    var getDefaultClientConfiguration = /* @__PURE__ */ __name2((runtimeConfig) => {
      return getChecksumConfiguration(runtimeConfig);
    }, "getDefaultClientConfiguration");
    var resolveDefaultRuntimeConfig3 = /* @__PURE__ */ __name2((config) => {
      return resolveChecksumRuntimeConfig(config);
    }, "resolveDefaultRuntimeConfig");
    var FieldPosition = /* @__PURE__ */ ((FieldPosition2) => {
      FieldPosition2[FieldPosition2["HEADER"] = 0] = "HEADER";
      FieldPosition2[FieldPosition2["TRAILER"] = 1] = "TRAILER";
      return FieldPosition2;
    })(FieldPosition || {});
    var SMITHY_CONTEXT_KEY4 = "__smithy_context";
    var IniSectionType = /* @__PURE__ */ ((IniSectionType2) => {
      IniSectionType2["PROFILE"] = "profile";
      IniSectionType2["SSO_SESSION"] = "sso-session";
      IniSectionType2["SERVICES"] = "services";
      return IniSectionType2;
    })(IniSectionType || {});
    var RequestHandlerProtocol = /* @__PURE__ */ ((RequestHandlerProtocol2) => {
      RequestHandlerProtocol2["HTTP_0_9"] = "http/0.9";
      RequestHandlerProtocol2["HTTP_1_0"] = "http/1.0";
      RequestHandlerProtocol2["TDS_8_0"] = "tds/8.0";
      return RequestHandlerProtocol2;
    })(RequestHandlerProtocol || {});
  }
});

// ../../node_modules/@smithy/protocol-http/dist-cjs/index.js
var require_dist_cjs2 = __commonJS({
  "../../node_modules/@smithy/protocol-http/dist-cjs/index.js"(exports2, module2) {
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var src_exports = {};
    __export2(src_exports, {
      Field: /* @__PURE__ */ __name(() => Field, "Field"),
      Fields: /* @__PURE__ */ __name(() => Fields, "Fields"),
      HttpRequest: /* @__PURE__ */ __name(() => HttpRequest10, "HttpRequest"),
      HttpResponse: /* @__PURE__ */ __name(() => HttpResponse4, "HttpResponse"),
      IHttpRequest: /* @__PURE__ */ __name(() => import_types7.HttpRequest, "IHttpRequest"),
      getHttpHandlerExtensionConfiguration: /* @__PURE__ */ __name(() => getHttpHandlerExtensionConfiguration3, "getHttpHandlerExtensionConfiguration"),
      isValidHostname: /* @__PURE__ */ __name(() => isValidHostname, "isValidHostname"),
      resolveHttpHandlerRuntimeConfig: /* @__PURE__ */ __name(() => resolveHttpHandlerRuntimeConfig3, "resolveHttpHandlerRuntimeConfig")
    });
    module2.exports = __toCommonJS2(src_exports);
    var getHttpHandlerExtensionConfiguration3 = /* @__PURE__ */ __name2((runtimeConfig) => {
      return {
        setHttpHandler(handler) {
          runtimeConfig.httpHandler = handler;
        },
        httpHandler() {
          return runtimeConfig.httpHandler;
        },
        updateHttpClientConfig(key, value) {
          runtimeConfig.httpHandler?.updateHttpClientConfig(key, value);
        },
        httpHandlerConfigs() {
          return runtimeConfig.httpHandler.httpHandlerConfigs();
        }
      };
    }, "getHttpHandlerExtensionConfiguration");
    var resolveHttpHandlerRuntimeConfig3 = /* @__PURE__ */ __name2((httpHandlerExtensionConfiguration) => {
      return {
        httpHandler: httpHandlerExtensionConfiguration.httpHandler()
      };
    }, "resolveHttpHandlerRuntimeConfig");
    var import_types7 = require_dist_cjs();
    var Field = class {
      static {
        __name(this, "Field");
      }
      static {
        __name2(this, "Field");
      }
      constructor({ name, kind = import_types7.FieldPosition.HEADER, values = [] }) {
        this.name = name;
        this.kind = kind;
        this.values = values;
      }
      /**
       * Appends a value to the field.
       *
       * @param value The value to append.
       */
      add(value) {
        this.values.push(value);
      }
      /**
       * Overwrite existing field values.
       *
       * @param values The new field values.
       */
      set(values) {
        this.values = values;
      }
      /**
       * Remove all matching entries from list.
       *
       * @param value Value to remove.
       */
      remove(value) {
        this.values = this.values.filter((v6) => v6 !== value);
      }
      /**
       * Get comma-delimited string.
       *
       * @returns String representation of {@link Field}.
       */
      toString() {
        return this.values.map((v6) => v6.includes(",") || v6.includes(" ") ? `"${v6}"` : v6).join(", ");
      }
      /**
       * Get string values as a list
       *
       * @returns Values in {@link Field} as a list.
       */
      get() {
        return this.values;
      }
    };
    var Fields = class {
      static {
        __name(this, "Fields");
      }
      constructor({ fields = [], encoding = "utf-8" }) {
        this.entries = {};
        fields.forEach(this.setField.bind(this));
        this.encoding = encoding;
      }
      static {
        __name2(this, "Fields");
      }
      /**
       * Set entry for a {@link Field} name. The `name`
       * attribute will be used to key the collection.
       *
       * @param field The {@link Field} to set.
       */
      setField(field) {
        this.entries[field.name.toLowerCase()] = field;
      }
      /**
       *  Retrieve {@link Field} entry by name.
       *
       * @param name The name of the {@link Field} entry
       *  to retrieve
       * @returns The {@link Field} if it exists.
       */
      getField(name) {
        return this.entries[name.toLowerCase()];
      }
      /**
       * Delete entry from collection.
       *
       * @param name Name of the entry to delete.
       */
      removeField(name) {
        delete this.entries[name.toLowerCase()];
      }
      /**
       * Helper function for retrieving specific types of fields.
       * Used to grab all headers or all trailers.
       *
       * @param kind {@link FieldPosition} of entries to retrieve.
       * @returns The {@link Field} entries with the specified
       *  {@link FieldPosition}.
       */
      getByType(kind) {
        return Object.values(this.entries).filter((field) => field.kind === kind);
      }
    };
    var HttpRequest10 = class _HttpRequest {
      static {
        __name(this, "_HttpRequest");
      }
      static {
        __name2(this, "HttpRequest");
      }
      constructor(options) {
        this.method = options.method || "GET";
        this.hostname = options.hostname || "localhost";
        this.port = options.port;
        this.query = options.query || {};
        this.headers = options.headers || {};
        this.body = options.body;
        this.protocol = options.protocol ? options.protocol.slice(-1) !== ":" ? `${options.protocol}:` : options.protocol : "https:";
        this.path = options.path ? options.path.charAt(0) !== "/" ? `/${options.path}` : options.path : "/";
        this.username = options.username;
        this.password = options.password;
        this.fragment = options.fragment;
      }
      /**
       * Note: this does not deep-clone the body.
       */
      static clone(request2) {
        const cloned = new _HttpRequest({
          ...request2,
          headers: { ...request2.headers }
        });
        if (cloned.query) {
          cloned.query = cloneQuery(cloned.query);
        }
        return cloned;
      }
      /**
       * This method only actually asserts that request is the interface {@link IHttpRequest},
       * and not necessarily this concrete class. Left in place for API stability.
       *
       * Do not call instance methods on the input of this function, and
       * do not assume it has the HttpRequest prototype.
       */
      static isInstance(request2) {
        if (!request2) {
          return false;
        }
        const req = request2;
        return "method" in req && "protocol" in req && "hostname" in req && "path" in req && typeof req["query"] === "object" && typeof req["headers"] === "object";
      }
      /**
       * @deprecated use static HttpRequest.clone(request) instead. It's not safe to call
       * this method because {@link HttpRequest.isInstance} incorrectly
       * asserts that IHttpRequest (interface) objects are of type HttpRequest (class).
       */
      clone() {
        return _HttpRequest.clone(this);
      }
    };
    function cloneQuery(query) {
      return Object.keys(query).reduce((carry, paramName) => {
        const param = query[paramName];
        return {
          ...carry,
          [paramName]: Array.isArray(param) ? [...param] : param
        };
      }, {});
    }
    __name(cloneQuery, "cloneQuery");
    __name2(cloneQuery, "cloneQuery");
    var HttpResponse4 = class {
      static {
        __name(this, "HttpResponse");
      }
      static {
        __name2(this, "HttpResponse");
      }
      constructor(options) {
        this.statusCode = options.statusCode;
        this.reason = options.reason;
        this.headers = options.headers || {};
        this.body = options.body;
      }
      static isInstance(response) {
        if (!response)
          return false;
        const resp = response;
        return typeof resp.statusCode === "number" && typeof resp.headers === "object";
      }
    };
    function isValidHostname(hostname) {
      const hostPattern = /^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/;
      return hostPattern.test(hostname);
    }
    __name(isValidHostname, "isValidHostname");
    __name2(isValidHostname, "isValidHostname");
  }
});

// ../../node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js
var require_dist_cjs3 = __commonJS({
  "../../node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js"(exports2, module2) {
    "use strict";
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var index_exports = {};
    __export2(index_exports, {
      getHostHeaderPlugin: /* @__PURE__ */ __name(() => getHostHeaderPlugin3, "getHostHeaderPlugin"),
      hostHeaderMiddleware: /* @__PURE__ */ __name(() => hostHeaderMiddleware, "hostHeaderMiddleware"),
      hostHeaderMiddlewareOptions: /* @__PURE__ */ __name(() => hostHeaderMiddlewareOptions, "hostHeaderMiddlewareOptions"),
      resolveHostHeaderConfig: /* @__PURE__ */ __name(() => resolveHostHeaderConfig3, "resolveHostHeaderConfig")
    });
    module2.exports = __toCommonJS2(index_exports);
    var import_protocol_http16 = require_dist_cjs2();
    function resolveHostHeaderConfig3(input) {
      return input;
    }
    __name(resolveHostHeaderConfig3, "resolveHostHeaderConfig");
    __name2(resolveHostHeaderConfig3, "resolveHostHeaderConfig");
    var hostHeaderMiddleware = /* @__PURE__ */ __name2((options) => (next) => async (args) => {
      if (!import_protocol_http16.HttpRequest.isInstance(args.request)) return next(args);
      const { request: request2 } = args;
      const { handlerProtocol = "" } = options.requestHandler.metadata || {};
      if (handlerProtocol.indexOf("h2") >= 0 && !request2.headers[":authority"]) {
        delete request2.headers["host"];
        request2.headers[":authority"] = request2.hostname + (request2.port ? ":" + request2.port : "");
      } else if (!request2.headers["host"]) {
        let host = request2.hostname;
        if (request2.port != null) host += `:${request2.port}`;
        request2.headers["host"] = host;
      }
      return next(args);
    }, "hostHeaderMiddleware");
    var hostHeaderMiddlewareOptions = {
      name: "hostHeaderMiddleware",
      step: "build",
      priority: "low",
      tags: ["HOST"],
      override: true
    };
    var getHostHeaderPlugin3 = /* @__PURE__ */ __name2((options) => ({
      applyToStack: /* @__PURE__ */ __name2((clientStack) => {
        clientStack.add(hostHeaderMiddleware(options), hostHeaderMiddlewareOptions);
      }, "applyToStack")
    }), "getHostHeaderPlugin");
  }
});

// ../../node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js
var require_dist_cjs4 = __commonJS({
  "../../node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js"(exports2, module2) {
    "use strict";
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var index_exports = {};
    __export2(index_exports, {
      getLoggerPlugin: /* @__PURE__ */ __name(() => getLoggerPlugin3, "getLoggerPlugin"),
      loggerMiddleware: /* @__PURE__ */ __name(() => loggerMiddleware, "loggerMiddleware"),
      loggerMiddlewareOptions: /* @__PURE__ */ __name(() => loggerMiddlewareOptions, "loggerMiddlewareOptions")
    });
    module2.exports = __toCommonJS2(index_exports);
    var loggerMiddleware = /* @__PURE__ */ __name2(() => (next, context) => async (args) => {
      try {
        const response = await next(args);
        const { clientName, commandName, logger: logger4, dynamoDbDocumentClientOptions = {} } = context;
        const { overrideInputFilterSensitiveLog, overrideOutputFilterSensitiveLog } = dynamoDbDocumentClientOptions;
        const inputFilterSensitiveLog = overrideInputFilterSensitiveLog ?? context.inputFilterSensitiveLog;
        const outputFilterSensitiveLog = overrideOutputFilterSensitiveLog ?? context.outputFilterSensitiveLog;
        const { $metadata, ...outputWithoutMetadata } = response.output;
        logger4?.info?.({
          clientName,
          commandName,
          input: inputFilterSensitiveLog(args.input),
          output: outputFilterSensitiveLog(outputWithoutMetadata),
          metadata: $metadata
        });
        return response;
      } catch (error5) {
        const { clientName, commandName, logger: logger4, dynamoDbDocumentClientOptions = {} } = context;
        const { overrideInputFilterSensitiveLog } = dynamoDbDocumentClientOptions;
        const inputFilterSensitiveLog = overrideInputFilterSensitiveLog ?? context.inputFilterSensitiveLog;
        logger4?.error?.({
          clientName,
          commandName,
          input: inputFilterSensitiveLog(args.input),
          error: error5,
          metadata: error5.$metadata
        });
        throw error5;
      }
    }, "loggerMiddleware");
    var loggerMiddlewareOptions = {
      name: "loggerMiddleware",
      tags: ["LOGGER"],
      step: "initialize",
      override: true
    };
    var getLoggerPlugin3 = /* @__PURE__ */ __name2((options) => ({
      applyToStack: /* @__PURE__ */ __name2((clientStack) => {
        clientStack.add(loggerMiddleware(), loggerMiddlewareOptions);
      }, "applyToStack")
    }), "getLoggerPlugin");
  }
});

// ../../node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js
var require_dist_cjs5 = __commonJS({
  "../../node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js"(exports2, module2) {
    "use strict";
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var index_exports = {};
    __export2(index_exports, {
      addRecursionDetectionMiddlewareOptions: /* @__PURE__ */ __name(() => addRecursionDetectionMiddlewareOptions, "addRecursionDetectionMiddlewareOptions"),
      getRecursionDetectionPlugin: /* @__PURE__ */ __name(() => getRecursionDetectionPlugin3, "getRecursionDetectionPlugin"),
      recursionDetectionMiddleware: /* @__PURE__ */ __name(() => recursionDetectionMiddleware, "recursionDetectionMiddleware")
    });
    module2.exports = __toCommonJS2(index_exports);
    var import_protocol_http16 = require_dist_cjs2();
    var TRACE_ID_HEADER_NAME = "X-Amzn-Trace-Id";
    var ENV_LAMBDA_FUNCTION_NAME = "AWS_LAMBDA_FUNCTION_NAME";
    var ENV_TRACE_ID = "_X_AMZN_TRACE_ID";
    var recursionDetectionMiddleware = /* @__PURE__ */ __name2((options) => (next) => async (args) => {
      const { request: request2 } = args;
      if (!import_protocol_http16.HttpRequest.isInstance(request2) || options.runtime !== "node") {
        return next(args);
      }
      const traceIdHeader = Object.keys(request2.headers ?? {}).find((h3) => h3.toLowerCase() === TRACE_ID_HEADER_NAME.toLowerCase()) ?? TRACE_ID_HEADER_NAME;
      if (request2.headers.hasOwnProperty(traceIdHeader)) {
        return next(args);
      }
      const functionName = process.env[ENV_LAMBDA_FUNCTION_NAME];
      const traceId = process.env[ENV_TRACE_ID];
      const nonEmptyString = /* @__PURE__ */ __name2((str) => typeof str === "string" && str.length > 0, "nonEmptyString");
      if (nonEmptyString(functionName) && nonEmptyString(traceId)) {
        request2.headers[TRACE_ID_HEADER_NAME] = traceId;
      }
      return next({
        ...args,
        request: request2
      });
    }, "recursionDetectionMiddleware");
    var addRecursionDetectionMiddlewareOptions = {
      step: "build",
      tags: ["RECURSION_DETECTION"],
      name: "recursionDetectionMiddleware",
      override: true,
      priority: "low"
    };
    var getRecursionDetectionPlugin3 = /* @__PURE__ */ __name2((options) => ({
      applyToStack: /* @__PURE__ */ __name2((clientStack) => {
        clientStack.add(recursionDetectionMiddleware(options), addRecursionDetectionMiddlewareOptions);
      }, "applyToStack")
    }), "getRecursionDetectionPlugin");
  }
});

// ../../node_modules/@smithy/core/dist-es/getSmithyContext.js
var import_types, getSmithyContext;
var init_getSmithyContext = __esm({
  "../../node_modules/@smithy/core/dist-es/getSmithyContext.js"() {
    import_types = __toESM(require_dist_cjs());
    getSmithyContext = /* @__PURE__ */ __name((context) => context[import_types.SMITHY_CONTEXT_KEY] || (context[import_types.SMITHY_CONTEXT_KEY] = {}), "getSmithyContext");
  }
});

// ../../node_modules/@smithy/util-middleware/dist-cjs/index.js
var require_dist_cjs6 = __commonJS({
  "../../node_modules/@smithy/util-middleware/dist-cjs/index.js"(exports2, module2) {
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var src_exports = {};
    __export2(src_exports, {
      getSmithyContext: /* @__PURE__ */ __name(() => getSmithyContext9, "getSmithyContext"),
      normalizeProvider: /* @__PURE__ */ __name(() => normalizeProvider4, "normalizeProvider")
    });
    module2.exports = __toCommonJS2(src_exports);
    var import_types7 = require_dist_cjs();
    var getSmithyContext9 = /* @__PURE__ */ __name2((context) => context[import_types7.SMITHY_CONTEXT_KEY] || (context[import_types7.SMITHY_CONTEXT_KEY] = {}), "getSmithyContext");
    var normalizeProvider4 = /* @__PURE__ */ __name2((input) => {
      if (typeof input === "function")
        return input;
      const promisified = Promise.resolve(input);
      return () => promisified;
    }, "normalizeProvider");
  }
});

// ../../node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/resolveAuthOptions.js
var resolveAuthOptions;
var init_resolveAuthOptions = __esm({
  "../../node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/resolveAuthOptions.js"() {
    resolveAuthOptions = /* @__PURE__ */ __name((candidateAuthOptions, authSchemePreference) => {
      if (!authSchemePreference || authSchemePreference.length === 0) {
        return candidateAuthOptions;
      }
      const preferredAuthOptions = [];
      for (const preferredSchemeName of authSchemePreference) {
        for (const candidateAuthOption of candidateAuthOptions) {
          const candidateAuthSchemeName = candidateAuthOption.schemeId.split("#")[1];
          if (candidateAuthSchemeName === preferredSchemeName) {
            preferredAuthOptions.push(candidateAuthOption);
          }
        }
      }
      for (const candidateAuthOption of candidateAuthOptions) {
        if (!preferredAuthOptions.find(({ schemeId }) => schemeId === candidateAuthOption.schemeId)) {
          preferredAuthOptions.push(candidateAuthOption);
        }
      }
      return preferredAuthOptions;
    }, "resolveAuthOptions");
  }
});

// ../../node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js
function convertHttpAuthSchemesToMap(httpAuthSchemes) {
  const map3 = /* @__PURE__ */ new Map();
  for (const scheme of httpAuthSchemes) {
    map3.set(scheme.schemeId, scheme);
  }
  return map3;
}
var import_types2, import_util_middleware, httpAuthSchemeMiddleware;
var init_httpAuthSchemeMiddleware = __esm({
  "../../node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js"() {
    import_types2 = __toESM(require_dist_cjs());
    import_util_middleware = __toESM(require_dist_cjs6());
    init_resolveAuthOptions();
    __name(convertHttpAuthSchemesToMap, "convertHttpAuthSchemesToMap");
    httpAuthSchemeMiddleware = /* @__PURE__ */ __name((config, mwOptions) => (next, context) => async (args) => {
      const options = config.httpAuthSchemeProvider(await mwOptions.httpAuthSchemeParametersProvider(config, context, args.input));
      const authSchemePreference = config.authSchemePreference ? await config.authSchemePreference() : [];
      const resolvedOptions = resolveAuthOptions(options, authSchemePreference);
      const authSchemes = convertHttpAuthSchemesToMap(config.httpAuthSchemes);
      const smithyContext = (0, import_util_middleware.getSmithyContext)(context);
      const failureReasons = [];
      for (const option of resolvedOptions) {
        const scheme = authSchemes.get(option.schemeId);
        if (!scheme) {
          failureReasons.push(`HttpAuthScheme \`${option.schemeId}\` was not enabled for this service.`);
          continue;
        }
        const identityProvider = scheme.identityProvider(await mwOptions.identityProviderConfigProvider(config));
        if (!identityProvider) {
          failureReasons.push(`HttpAuthScheme \`${option.schemeId}\` did not have an IdentityProvider configured.`);
          continue;
        }
        const { identityProperties = {}, signingProperties = {} } = option.propertiesExtractor?.(config, context) || {};
        option.identityProperties = Object.assign(option.identityProperties || {}, identityProperties);
        option.signingProperties = Object.assign(option.signingProperties || {}, signingProperties);
        smithyContext.selectedHttpAuthScheme = {
          httpAuthOption: option,
          identity: await identityProvider(option.identityProperties),
          signer: scheme.signer
        };
        break;
      }
      if (!smithyContext.selectedHttpAuthScheme) {
        throw new Error(failureReasons.join("\n"));
      }
      return next(args);
    }, "httpAuthSchemeMiddleware");
  }
});

// ../../node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/getHttpAuthSchemeEndpointRuleSetPlugin.js
var httpAuthSchemeEndpointRuleSetMiddlewareOptions, getHttpAuthSchemeEndpointRuleSetPlugin;
var init_getHttpAuthSchemeEndpointRuleSetPlugin = __esm({
  "../../node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/getHttpAuthSchemeEndpointRuleSetPlugin.js"() {
    init_httpAuthSchemeMiddleware();
    httpAuthSchemeEndpointRuleSetMiddlewareOptions = {
      step: "serialize",
      tags: ["HTTP_AUTH_SCHEME"],
      name: "httpAuthSchemeMiddleware",
      override: true,
      relation: "before",
      toMiddleware: "endpointV2Middleware"
    };
    getHttpAuthSchemeEndpointRuleSetPlugin = /* @__PURE__ */ __name((config, { httpAuthSchemeParametersProvider, identityProviderConfigProvider }) => ({
      applyToStack: /* @__PURE__ */ __name((clientStack) => {
        clientStack.addRelativeTo(httpAuthSchemeMiddleware(config, {
          httpAuthSchemeParametersProvider,
          identityProviderConfigProvider
        }), httpAuthSchemeEndpointRuleSetMiddlewareOptions);
      }, "applyToStack")
    }), "getHttpAuthSchemeEndpointRuleSetPlugin");
  }
});

// ../../node_modules/@smithy/middleware-serde/dist-cjs/index.js
var require_dist_cjs7 = __commonJS({
  "../../node_modules/@smithy/middleware-serde/dist-cjs/index.js"(exports2, module2) {
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var src_exports = {};
    __export2(src_exports, {
      deserializerMiddleware: /* @__PURE__ */ __name(() => deserializerMiddleware, "deserializerMiddleware"),
      deserializerMiddlewareOption: /* @__PURE__ */ __name(() => deserializerMiddlewareOption2, "deserializerMiddlewareOption"),
      getSerdePlugin: /* @__PURE__ */ __name(() => getSerdePlugin4, "getSerdePlugin"),
      serializerMiddleware: /* @__PURE__ */ __name(() => serializerMiddleware, "serializerMiddleware"),
      serializerMiddlewareOption: /* @__PURE__ */ __name(() => serializerMiddlewareOption3, "serializerMiddlewareOption")
    });
    module2.exports = __toCommonJS2(src_exports);
    var import_protocol_http16 = require_dist_cjs2();
    var deserializerMiddleware = /* @__PURE__ */ __name2((options, deserializer) => (next, context) => async (args) => {
      const { response } = await next(args);
      try {
        const parsed = await deserializer(response, options);
        return {
          response,
          output: parsed
        };
      } catch (error5) {
        Object.defineProperty(error5, "$response", {
          value: response
        });
        if (!("$metadata" in error5)) {
          const hint = `Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;
          try {
            error5.message += "\n  " + hint;
          } catch (e3) {
            if (!context.logger || context.logger?.constructor?.name === "NoOpLogger") {
              console.warn(hint);
            } else {
              context.logger?.warn?.(hint);
            }
          }
          if (typeof error5.$responseBodyText !== "undefined") {
            if (error5.$response) {
              error5.$response.body = error5.$responseBodyText;
            }
          }
          try {
            if (import_protocol_http16.HttpResponse.isInstance(response)) {
              const { headers = {} } = response;
              const headerEntries = Object.entries(headers);
              error5.$metadata = {
                httpStatusCode: response.statusCode,
                requestId: findHeader2(/^x-[\w-]+-request-?id$/, headerEntries),
                extendedRequestId: findHeader2(/^x-[\w-]+-id-2$/, headerEntries),
                cfId: findHeader2(/^x-[\w-]+-cf-id$/, headerEntries)
              };
            }
          } catch (e3) {
          }
        }
        throw error5;
      }
    }, "deserializerMiddleware");
    var findHeader2 = /* @__PURE__ */ __name2((pattern, headers) => {
      return (headers.find(([k3]) => {
        return k3.match(pattern);
      }) || [void 0, void 0])[1];
    }, "findHeader");
    var serializerMiddleware = /* @__PURE__ */ __name2((options, serializer) => (next, context) => async (args) => {
      const endpointConfig = options;
      const endpoint = context.endpointV2?.url && endpointConfig.urlParser ? async () => endpointConfig.urlParser(context.endpointV2.url) : endpointConfig.endpoint;
      if (!endpoint) {
        throw new Error("No valid endpoint provider available.");
      }
      const request2 = await serializer(args.input, { ...options, endpoint });
      return next({
        ...args,
        request: request2
      });
    }, "serializerMiddleware");
    var deserializerMiddlewareOption2 = {
      name: "deserializerMiddleware",
      step: "deserialize",
      tags: ["DESERIALIZER"],
      override: true
    };
    var serializerMiddlewareOption3 = {
      name: "serializerMiddleware",
      step: "serialize",
      tags: ["SERIALIZER"],
      override: true
    };
    function getSerdePlugin4(config, serializer, deserializer) {
      return {
        applyToStack: /* @__PURE__ */ __name((commandStack) => {
          commandStack.add(deserializerMiddleware(config, deserializer), deserializerMiddlewareOption2);
          commandStack.add(serializerMiddleware(config, serializer), serializerMiddlewareOption3);
        }, "applyToStack")
      };
    }
    __name(getSerdePlugin4, "getSerdePlugin");
    __name2(getSerdePlugin4, "getSerdePlugin");
  }
});

// ../../node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/getHttpAuthSchemePlugin.js
var import_middleware_serde, httpAuthSchemeMiddlewareOptions, getHttpAuthSchemePlugin;
var init_getHttpAuthSchemePlugin = __esm({
  "../../node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/getHttpAuthSchemePlugin.js"() {
    import_middleware_serde = __toESM(require_dist_cjs7());
    init_httpAuthSchemeMiddleware();
    httpAuthSchemeMiddlewareOptions = {
      step: "serialize",
      tags: ["HTTP_AUTH_SCHEME"],
      name: "httpAuthSchemeMiddleware",
      override: true,
      relation: "before",
      toMiddleware: import_middleware_serde.serializerMiddlewareOption.name
    };
    getHttpAuthSchemePlugin = /* @__PURE__ */ __name((config, { httpAuthSchemeParametersProvider, identityProviderConfigProvider }) => ({
      applyToStack: /* @__PURE__ */ __name((clientStack) => {
        clientStack.addRelativeTo(httpAuthSchemeMiddleware(config, {
          httpAuthSchemeParametersProvider,
          identityProviderConfigProvider
        }), httpAuthSchemeMiddlewareOptions);
      }, "applyToStack")
    }), "getHttpAuthSchemePlugin");
  }
});

// ../../node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/index.js
var init_middleware_http_auth_scheme = __esm({
  "../../node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/index.js"() {
    init_httpAuthSchemeMiddleware();
    init_getHttpAuthSchemeEndpointRuleSetPlugin();
    init_getHttpAuthSchemePlugin();
  }
});

// ../../node_modules/@smithy/core/dist-es/middleware-http-signing/httpSigningMiddleware.js
var import_protocol_http, import_types3, import_util_middleware2, defaultErrorHandler, defaultSuccessHandler, httpSigningMiddleware;
var init_httpSigningMiddleware = __esm({
  "../../node_modules/@smithy/core/dist-es/middleware-http-signing/httpSigningMiddleware.js"() {
    import_protocol_http = __toESM(require_dist_cjs2());
    import_types3 = __toESM(require_dist_cjs());
    import_util_middleware2 = __toESM(require_dist_cjs6());
    defaultErrorHandler = /* @__PURE__ */ __name((signingProperties) => (error5) => {
      throw error5;
    }, "defaultErrorHandler");
    defaultSuccessHandler = /* @__PURE__ */ __name((httpResponse, signingProperties) => {
    }, "defaultSuccessHandler");
    httpSigningMiddleware = /* @__PURE__ */ __name((config) => (next, context) => async (args) => {
      if (!import_protocol_http.HttpRequest.isInstance(args.request)) {
        return next(args);
      }
      const smithyContext = (0, import_util_middleware2.getSmithyContext)(context);
      const scheme = smithyContext.selectedHttpAuthScheme;
      if (!scheme) {
        throw new Error(`No HttpAuthScheme was selected: unable to sign request`);
      }
      const { httpAuthOption: { signingProperties = {} }, identity, signer } = scheme;
      const output = await next({
        ...args,
        request: await signer.sign(args.request, identity, signingProperties)
      }).catch((signer.errorHandler || defaultErrorHandler)(signingProperties));
      (signer.successHandler || defaultSuccessHandler)(output.response, signingProperties);
      return output;
    }, "httpSigningMiddleware");
  }
});

// ../../node_modules/@smithy/core/dist-es/middleware-http-signing/getHttpSigningMiddleware.js
var httpSigningMiddlewareOptions, getHttpSigningPlugin;
var init_getHttpSigningMiddleware = __esm({
  "../../node_modules/@smithy/core/dist-es/middleware-http-signing/getHttpSigningMiddleware.js"() {
    init_httpSigningMiddleware();
    httpSigningMiddlewareOptions = {
      step: "finalizeRequest",
      tags: ["HTTP_SIGNING"],
      name: "httpSigningMiddleware",
      aliases: ["apiKeyMiddleware", "tokenMiddleware", "awsAuthMiddleware"],
      override: true,
      relation: "after",
      toMiddleware: "retryMiddleware"
    };
    getHttpSigningPlugin = /* @__PURE__ */ __name((config) => ({
      applyToStack: /* @__PURE__ */ __name((clientStack) => {
        clientStack.addRelativeTo(httpSigningMiddleware(config), httpSigningMiddlewareOptions);
      }, "applyToStack")
    }), "getHttpSigningPlugin");
  }
});

// ../../node_modules/@smithy/core/dist-es/middleware-http-signing/index.js
var init_middleware_http_signing = __esm({
  "../../node_modules/@smithy/core/dist-es/middleware-http-signing/index.js"() {
    init_httpSigningMiddleware();
    init_getHttpSigningMiddleware();
  }
});

// ../../node_modules/@smithy/core/dist-es/normalizeProvider.js
var normalizeProvider;
var init_normalizeProvider = __esm({
  "../../node_modules/@smithy/core/dist-es/normalizeProvider.js"() {
    normalizeProvider = /* @__PURE__ */ __name((input) => {
      if (typeof input === "function")
        return input;
      const promisified = Promise.resolve(input);
      return () => promisified;
    }, "normalizeProvider");
  }
});

// ../../node_modules/@smithy/core/dist-es/pagination/createPaginator.js
function createPaginator(ClientCtor, CommandCtor, inputTokenName, outputTokenName, pageSizeTokenName) {
  return /* @__PURE__ */ __name(async function* paginateOperation(config, input, ...additionalArguments) {
    const _input = input;
    let token = config.startingToken ?? _input[inputTokenName];
    let hasNext = true;
    let page;
    while (hasNext) {
      _input[inputTokenName] = token;
      if (pageSizeTokenName) {
        _input[pageSizeTokenName] = _input[pageSizeTokenName] ?? config.pageSize;
      }
      if (config.client instanceof ClientCtor) {
        page = await makePagedClientRequest(CommandCtor, config.client, input, config.withCommand, ...additionalArguments);
      } else {
        throw new Error(`Invalid client, expected instance of ${ClientCtor.name}`);
      }
      yield page;
      const prevToken = token;
      token = get(page, outputTokenName);
      hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
    }
    return void 0;
  }, "paginateOperation");
}
var makePagedClientRequest, get;
var init_createPaginator = __esm({
  "../../node_modules/@smithy/core/dist-es/pagination/createPaginator.js"() {
    makePagedClientRequest = /* @__PURE__ */ __name(async (CommandCtor, client, input, withCommand = (_3) => _3, ...args) => {
      let command2 = new CommandCtor(input);
      command2 = withCommand(command2) ?? command2;
      return await client.send(command2, ...args);
    }, "makePagedClientRequest");
    __name(createPaginator, "createPaginator");
    get = /* @__PURE__ */ __name((fromObject, path38) => {
      let cursor2 = fromObject;
      const pathComponents = path38.split(".");
      for (const step of pathComponents) {
        if (!cursor2 || typeof cursor2 !== "object") {
          return void 0;
        }
        cursor2 = cursor2[step];
      }
      return cursor2;
    }, "get");
  }
});

// ../../node_modules/@smithy/is-array-buffer/dist-cjs/index.js
var require_dist_cjs8 = __commonJS({
  "../../node_modules/@smithy/is-array-buffer/dist-cjs/index.js"(exports2, module2) {
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var src_exports = {};
    __export2(src_exports, {
      isArrayBuffer: /* @__PURE__ */ __name(() => isArrayBuffer, "isArrayBuffer")
    });
    module2.exports = __toCommonJS2(src_exports);
    var isArrayBuffer = /* @__PURE__ */ __name2((arg) => typeof ArrayBuffer === "function" && arg instanceof ArrayBuffer || Object.prototype.toString.call(arg) === "[object ArrayBuffer]", "isArrayBuffer");
  }
});

// ../../node_modules/@smithy/util-buffer-from/dist-cjs/index.js
var require_dist_cjs9 = __commonJS({
  "../../node_modules/@smithy/util-buffer-from/dist-cjs/index.js"(exports2, module2) {
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var src_exports = {};
    __export2(src_exports, {
      fromArrayBuffer: /* @__PURE__ */ __name(() => fromArrayBuffer, "fromArrayBuffer"),
      fromString: /* @__PURE__ */ __name(() => fromString, "fromString")
    });
    module2.exports = __toCommonJS2(src_exports);
    var import_is_array_buffer = require_dist_cjs8();
    var import_buffer = require("buffer");
    var fromArrayBuffer = /* @__PURE__ */ __name2((input, offset = 0, length = input.byteLength - offset) => {
      if (!(0, import_is_array_buffer.isArrayBuffer)(input)) {
        throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof input} (${input})`);
      }
      return import_buffer.Buffer.from(input, offset, length);
    }, "fromArrayBuffer");
    var fromString = /* @__PURE__ */ __name2((input, encoding) => {
      if (typeof input !== "string") {
        throw new TypeError(`The "input" argument must be of type string. Received type ${typeof input} (${input})`);
      }
      return encoding ? import_buffer.Buffer.from(input, encoding) : import_buffer.Buffer.from(input);
    }, "fromString");
  }
});

// ../../node_modules/@smithy/util-base64/dist-cjs/fromBase64.js
var require_fromBase64 = __commonJS({
  "../../node_modules/@smithy/util-base64/dist-cjs/fromBase64.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.fromBase64 = void 0;
    var util_buffer_from_1 = require_dist_cjs9();
    var BASE64_REGEX = /^[A-Za-z0-9+/]*={0,2}$/;
    var fromBase648 = /* @__PURE__ */ __name((input) => {
      if (input.length * 3 % 4 !== 0) {
        throw new TypeError(`Incorrect padding on base64 string.`);
      }
      if (!BASE64_REGEX.exec(input)) {
        throw new TypeError(`Invalid base64 string.`);
      }
      const buffer = (0, util_buffer_from_1.fromString)(input, "base64");
      return new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.byteLength);
    }, "fromBase64");
    exports2.fromBase64 = fromBase648;
  }
});

// ../../node_modules/@smithy/util-utf8/dist-cjs/index.js
var require_dist_cjs10 = __commonJS({
  "../../node_modules/@smithy/util-utf8/dist-cjs/index.js"(exports2, module2) {
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var src_exports = {};
    __export2(src_exports, {
      fromUtf8: /* @__PURE__ */ __name(() => fromUtf86, "fromUtf8"),
      toUint8Array: /* @__PURE__ */ __name(() => toUint8Array2, "toUint8Array"),
      toUtf8: /* @__PURE__ */ __name(() => toUtf88, "toUtf8")
    });
    module2.exports = __toCommonJS2(src_exports);
    var import_util_buffer_from = require_dist_cjs9();
    var fromUtf86 = /* @__PURE__ */ __name2((input) => {
      const buf = (0, import_util_buffer_from.fromString)(input, "utf8");
      return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength / Uint8Array.BYTES_PER_ELEMENT);
    }, "fromUtf8");
    var toUint8Array2 = /* @__PURE__ */ __name2((data3) => {
      if (typeof data3 === "string") {
        return fromUtf86(data3);
      }
      if (ArrayBuffer.isView(data3)) {
        return new Uint8Array(data3.buffer, data3.byteOffset, data3.byteLength / Uint8Array.BYTES_PER_ELEMENT);
      }
      return new Uint8Array(data3);
    }, "toUint8Array");
    var toUtf88 = /* @__PURE__ */ __name2((input) => {
      if (typeof input === "string") {
        return input;
      }
      if (typeof input !== "object" || typeof input.byteOffset !== "number" || typeof input.byteLength !== "number") {
        throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");
      }
      return (0, import_util_buffer_from.fromArrayBuffer)(input.buffer, input.byteOffset, input.byteLength).toString("utf8");
    }, "toUtf8");
  }
});

// ../../node_modules/@smithy/util-base64/dist-cjs/toBase64.js
var require_toBase64 = __commonJS({
  "../../node_modules/@smithy/util-base64/dist-cjs/toBase64.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.toBase64 = void 0;
    var util_buffer_from_1 = require_dist_cjs9();
    var util_utf8_1 = require_dist_cjs10();
    var toBase647 = /* @__PURE__ */ __name((_input) => {
      let input;
      if (typeof _input === "string") {
        input = (0, util_utf8_1.fromUtf8)(_input);
      } else {
        input = _input;
      }
      if (typeof input !== "object" || typeof input.byteOffset !== "number" || typeof input.byteLength !== "number") {
        throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");
      }
      return (0, util_buffer_from_1.fromArrayBuffer)(input.buffer, input.byteOffset, input.byteLength).toString("base64");
    }, "toBase64");
    exports2.toBase64 = toBase647;
  }
});

// ../../node_modules/@smithy/util-base64/dist-cjs/index.js
var require_dist_cjs11 = __commonJS({
  "../../node_modules/@smithy/util-base64/dist-cjs/index.js"(exports2, module2) {
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __reExport = /* @__PURE__ */ __name((target, mod, secondTarget) => (__copyProps2(target, mod, "default"), secondTarget && __copyProps2(secondTarget, mod, "default")), "__reExport");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var src_exports = {};
    module2.exports = __toCommonJS2(src_exports);
    __reExport(src_exports, require_fromBase64(), module2.exports);
    __reExport(src_exports, require_toBase64(), module2.exports);
  }
});

// ../../node_modules/@smithy/util-stream/dist-cjs/checksum/ChecksumStream.js
var require_ChecksumStream = __commonJS({
  "../../node_modules/@smithy/util-stream/dist-cjs/checksum/ChecksumStream.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.ChecksumStream = void 0;
    var util_base64_1 = require_dist_cjs11();
    var stream_1 = require("stream");
    var ChecksumStream2 = class extends stream_1.Duplex {
      static {
        __name(this, "ChecksumStream");
      }
      constructor({ expectedChecksum, checksum, source, checksumSourceLocation, base64Encoder }) {
        var _a2, _b;
        super();
        if (typeof source.pipe === "function") {
          this.source = source;
        } else {
          throw new Error(`@smithy/util-stream: unsupported source type ${(_b = (_a2 = source === null || source === void 0 ? void 0 : source.constructor) === null || _a2 === void 0 ? void 0 : _a2.name) !== null && _b !== void 0 ? _b : source} in ChecksumStream.`);
        }
        this.base64Encoder = base64Encoder !== null && base64Encoder !== void 0 ? base64Encoder : util_base64_1.toBase64;
        this.expectedChecksum = expectedChecksum;
        this.checksum = checksum;
        this.checksumSourceLocation = checksumSourceLocation;
        this.source.pipe(this);
      }
      _read(size) {
      }
      _write(chunk, encoding, callback) {
        try {
          this.checksum.update(chunk);
          this.push(chunk);
        } catch (e3) {
          return callback(e3);
        }
        return callback();
      }
      async _final(callback) {
        try {
          const digest = await this.checksum.digest();
          const received = this.base64Encoder(digest);
          if (this.expectedChecksum !== received) {
            return callback(new Error(`Checksum mismatch: expected "${this.expectedChecksum}" but received "${received}" in response header "${this.checksumSourceLocation}".`));
          }
        } catch (e3) {
          return callback(e3);
        }
        this.push(null);
        return callback();
      }
    };
    exports2.ChecksumStream = ChecksumStream2;
  }
});

// ../../node_modules/@smithy/util-stream/dist-cjs/stream-type-check.js
var require_stream_type_check = __commonJS({
  "../../node_modules/@smithy/util-stream/dist-cjs/stream-type-check.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.isBlob = exports2.isReadableStream = void 0;
    var isReadableStream2 = /* @__PURE__ */ __name((stream3) => {
      var _a2;
      return typeof ReadableStream === "function" && (((_a2 = stream3 === null || stream3 === void 0 ? void 0 : stream3.constructor) === null || _a2 === void 0 ? void 0 : _a2.name) === ReadableStream.name || stream3 instanceof ReadableStream);
    }, "isReadableStream");
    exports2.isReadableStream = isReadableStream2;
    var isBlob2 = /* @__PURE__ */ __name((blob) => {
      var _a2;
      return typeof Blob === "function" && (((_a2 = blob === null || blob === void 0 ? void 0 : blob.constructor) === null || _a2 === void 0 ? void 0 : _a2.name) === Blob.name || blob instanceof Blob);
    }, "isBlob");
    exports2.isBlob = isBlob2;
  }
});

// ../../node_modules/@smithy/util-stream/dist-cjs/checksum/ChecksumStream.browser.js
var require_ChecksumStream_browser = __commonJS({
  "../../node_modules/@smithy/util-stream/dist-cjs/checksum/ChecksumStream.browser.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.ChecksumStream = void 0;
    var ReadableStreamRef = typeof ReadableStream === "function" ? ReadableStream : function() {
    };
    var ChecksumStream2 = class extends ReadableStreamRef {
      static {
        __name(this, "ChecksumStream");
      }
    };
    exports2.ChecksumStream = ChecksumStream2;
  }
});

// ../../node_modules/@smithy/util-stream/dist-cjs/checksum/createChecksumStream.browser.js
var require_createChecksumStream_browser = __commonJS({
  "../../node_modules/@smithy/util-stream/dist-cjs/checksum/createChecksumStream.browser.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.createChecksumStream = void 0;
    var util_base64_1 = require_dist_cjs11();
    var stream_type_check_1 = require_stream_type_check();
    var ChecksumStream_browser_1 = require_ChecksumStream_browser();
    var createChecksumStream2 = /* @__PURE__ */ __name(({ expectedChecksum, checksum, source, checksumSourceLocation, base64Encoder }) => {
      var _a2, _b;
      if (!(0, stream_type_check_1.isReadableStream)(source)) {
        throw new Error(`@smithy/util-stream: unsupported source type ${(_b = (_a2 = source === null || source === void 0 ? void 0 : source.constructor) === null || _a2 === void 0 ? void 0 : _a2.name) !== null && _b !== void 0 ? _b : source} in ChecksumStream.`);
      }
      const encoder = base64Encoder !== null && base64Encoder !== void 0 ? base64Encoder : util_base64_1.toBase64;
      if (typeof TransformStream !== "function") {
        throw new Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.");
      }
      const transform = new TransformStream({
        start() {
        },
        async transform(chunk, controller) {
          checksum.update(chunk);
          controller.enqueue(chunk);
        },
        async flush(controller) {
          const digest = await checksum.digest();
          const received = encoder(digest);
          if (expectedChecksum !== received) {
            const error5 = new Error(`Checksum mismatch: expected "${expectedChecksum}" but received "${received}" in response header "${checksumSourceLocation}".`);
            controller.error(error5);
          } else {
            controller.terminate();
          }
        }
      });
      source.pipeThrough(transform);
      const readable = transform.readable;
      Object.setPrototypeOf(readable, ChecksumStream_browser_1.ChecksumStream.prototype);
      return readable;
    }, "createChecksumStream");
    exports2.createChecksumStream = createChecksumStream2;
  }
});

// ../../node_modules/@smithy/util-stream/dist-cjs/checksum/createChecksumStream.js
var require_createChecksumStream = __commonJS({
  "../../node_modules/@smithy/util-stream/dist-cjs/checksum/createChecksumStream.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.createChecksumStream = createChecksumStream2;
    var stream_type_check_1 = require_stream_type_check();
    var ChecksumStream_1 = require_ChecksumStream();
    var createChecksumStream_browser_1 = require_createChecksumStream_browser();
    function createChecksumStream2(init) {
      if (typeof ReadableStream === "function" && (0, stream_type_check_1.isReadableStream)(init.source)) {
        return (0, createChecksumStream_browser_1.createChecksumStream)(init);
      }
      return new ChecksumStream_1.ChecksumStream(init);
    }
    __name(createChecksumStream2, "createChecksumStream");
  }
});

// ../../node_modules/@smithy/util-stream/dist-cjs/ByteArrayCollector.js
var require_ByteArrayCollector = __commonJS({
  "../../node_modules/@smithy/util-stream/dist-cjs/ByteArrayCollector.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.ByteArrayCollector = void 0;
    var ByteArrayCollector = class {
      static {
        __name(this, "ByteArrayCollector");
      }
      constructor(allocByteArray) {
        this.allocByteArray = allocByteArray;
        this.byteLength = 0;
        this.byteArrays = [];
      }
      push(byteArray) {
        this.byteArrays.push(byteArray);
        this.byteLength += byteArray.byteLength;
      }
      flush() {
        if (this.byteArrays.length === 1) {
          const bytes = this.byteArrays[0];
          this.reset();
          return bytes;
        }
        const aggregation = this.allocByteArray(this.byteLength);
        let cursor2 = 0;
        for (let i3 = 0; i3 < this.byteArrays.length; ++i3) {
          const bytes = this.byteArrays[i3];
          aggregation.set(bytes, cursor2);
          cursor2 += bytes.byteLength;
        }
        this.reset();
        return aggregation;
      }
      reset() {
        this.byteArrays = [];
        this.byteLength = 0;
      }
    };
    exports2.ByteArrayCollector = ByteArrayCollector;
  }
});

// ../../node_modules/@smithy/util-stream/dist-cjs/createBufferedReadableStream.js
var require_createBufferedReadableStream = __commonJS({
  "../../node_modules/@smithy/util-stream/dist-cjs/createBufferedReadableStream.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.createBufferedReadable = void 0;
    exports2.createBufferedReadableStream = createBufferedReadableStream;
    exports2.merge = merge;
    exports2.flush = flush;
    exports2.sizeOf = sizeOf;
    exports2.modeOf = modeOf;
    var ByteArrayCollector_1 = require_ByteArrayCollector();
    function createBufferedReadableStream(upstream, size, logger4) {
      const reader = upstream.getReader();
      let streamBufferingLoggedWarning = false;
      let bytesSeen = 0;
      const buffers = ["", new ByteArrayCollector_1.ByteArrayCollector((size2) => new Uint8Array(size2))];
      let mode = -1;
      const pull = /* @__PURE__ */ __name(async (controller) => {
        const { value, done } = await reader.read();
        const chunk = value;
        if (done) {
          if (mode !== -1) {
            const remainder = flush(buffers, mode);
            if (sizeOf(remainder) > 0) {
              controller.enqueue(remainder);
            }
          }
          controller.close();
        } else {
          const chunkMode = modeOf(chunk, false);
          if (mode !== chunkMode) {
            if (mode >= 0) {
              controller.enqueue(flush(buffers, mode));
            }
            mode = chunkMode;
          }
          if (mode === -1) {
            controller.enqueue(chunk);
            return;
          }
          const chunkSize = sizeOf(chunk);
          bytesSeen += chunkSize;
          const bufferSize = sizeOf(buffers[mode]);
          if (chunkSize >= size && bufferSize === 0) {
            controller.enqueue(chunk);
          } else {
            const newSize = merge(buffers, mode, chunk);
            if (!streamBufferingLoggedWarning && bytesSeen > size * 2) {
              streamBufferingLoggedWarning = true;
              logger4 === null || logger4 === void 0 ? void 0 : logger4.warn(`@smithy/util-stream - stream chunk size ${chunkSize} is below threshold of ${size}, automatically buffering.`);
            }
            if (newSize >= size) {
              controller.enqueue(flush(buffers, mode));
            } else {
              await pull(controller);
            }
          }
        }
      }, "pull");
      return new ReadableStream({
        pull
      });
    }
    __name(createBufferedReadableStream, "createBufferedReadableStream");
    exports2.createBufferedReadable = createBufferedReadableStream;
    function merge(buffers, mode, chunk) {
      switch (mode) {
        case 0:
          buffers[0] += chunk;
          return sizeOf(buffers[0]);
        case 1:
        case 2:
          buffers[mode].push(chunk);
          return sizeOf(buffers[mode]);
      }
    }
    __name(merge, "merge");
    function flush(buffers, mode) {
      switch (mode) {
        case 0:
          const s3 = buffers[0];
          buffers[0] = "";
          return s3;
        case 1:
        case 2:
          return buffers[mode].flush();
      }
      throw new Error(`@smithy/util-stream - invalid index ${mode} given to flush()`);
    }
    __name(flush, "flush");
    function sizeOf(chunk) {
      var _a2, _b;
      return (_b = (_a2 = chunk === null || chunk === void 0 ? void 0 : chunk.byteLength) !== null && _a2 !== void 0 ? _a2 : chunk === null || chunk === void 0 ? void 0 : chunk.length) !== null && _b !== void 0 ? _b : 0;
    }
    __name(sizeOf, "sizeOf");
    function modeOf(chunk, allowBuffer = true) {
      if (allowBuffer && typeof Buffer !== "undefined" && chunk instanceof Buffer) {
        return 2;
      }
      if (chunk instanceof Uint8Array) {
        return 1;
      }
      if (typeof chunk === "string") {
        return 0;
      }
      return -1;
    }
    __name(modeOf, "modeOf");
  }
});

// ../../node_modules/@smithy/util-stream/dist-cjs/createBufferedReadable.js
var require_createBufferedReadable = __commonJS({
  "../../node_modules/@smithy/util-stream/dist-cjs/createBufferedReadable.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.createBufferedReadable = createBufferedReadable2;
    var node_stream_1 = require("node:stream");
    var ByteArrayCollector_1 = require_ByteArrayCollector();
    var createBufferedReadableStream_1 = require_createBufferedReadableStream();
    var stream_type_check_1 = require_stream_type_check();
    function createBufferedReadable2(upstream, size, logger4) {
      if ((0, stream_type_check_1.isReadableStream)(upstream)) {
        return (0, createBufferedReadableStream_1.createBufferedReadableStream)(upstream, size, logger4);
      }
      const downstream = new node_stream_1.Readable({ read() {
      } });
      let streamBufferingLoggedWarning = false;
      let bytesSeen = 0;
      const buffers = [
        "",
        new ByteArrayCollector_1.ByteArrayCollector((size2) => new Uint8Array(size2)),
        new ByteArrayCollector_1.ByteArrayCollector((size2) => Buffer.from(new Uint8Array(size2)))
      ];
      let mode = -1;
      upstream.on("data", (chunk) => {
        const chunkMode = (0, createBufferedReadableStream_1.modeOf)(chunk, true);
        if (mode !== chunkMode) {
          if (mode >= 0) {
            downstream.push((0, createBufferedReadableStream_1.flush)(buffers, mode));
          }
          mode = chunkMode;
        }
        if (mode === -1) {
          downstream.push(chunk);
          return;
        }
        const chunkSize = (0, createBufferedReadableStream_1.sizeOf)(chunk);
        bytesSeen += chunkSize;
        const bufferSize = (0, createBufferedReadableStream_1.sizeOf)(buffers[mode]);
        if (chunkSize >= size && bufferSize === 0) {
          downstream.push(chunk);
        } else {
          const newSize = (0, createBufferedReadableStream_1.merge)(buffers, mode, chunk);
          if (!streamBufferingLoggedWarning && bytesSeen > size * 2) {
            streamBufferingLoggedWarning = true;
            logger4 === null || logger4 === void 0 ? void 0 : logger4.warn(`@smithy/util-stream - stream chunk size ${chunkSize} is below threshold of ${size}, automatically buffering.`);
          }
          if (newSize >= size) {
            downstream.push((0, createBufferedReadableStream_1.flush)(buffers, mode));
          }
        }
      });
      upstream.on("end", () => {
        if (mode !== -1) {
          const remainder = (0, createBufferedReadableStream_1.flush)(buffers, mode);
          if ((0, createBufferedReadableStream_1.sizeOf)(remainder) > 0) {
            downstream.push(remainder);
          }
        }
        downstream.push(null);
      });
      return downstream;
    }
    __name(createBufferedReadable2, "createBufferedReadable");
  }
});

// ../../node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.js
var require_getAwsChunkedEncodingStream = __commonJS({
  "../../node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.getAwsChunkedEncodingStream = void 0;
    var stream_1 = require("stream");
    var getAwsChunkedEncodingStream2 = /* @__PURE__ */ __name((readableStream, options) => {
      const { base64Encoder, bodyLengthChecker, checksumAlgorithmFn, checksumLocationName, streamHasher } = options;
      const checksumRequired = base64Encoder !== void 0 && checksumAlgorithmFn !== void 0 && checksumLocationName !== void 0 && streamHasher !== void 0;
      const digest = checksumRequired ? streamHasher(checksumAlgorithmFn, readableStream) : void 0;
      const awsChunkedEncodingStream = new stream_1.Readable({ read: /* @__PURE__ */ __name(() => {
      }, "read") });
      readableStream.on("data", (data3) => {
        const length = bodyLengthChecker(data3) || 0;
        awsChunkedEncodingStream.push(`${length.toString(16)}\r
`);
        awsChunkedEncodingStream.push(data3);
        awsChunkedEncodingStream.push("\r\n");
      });
      readableStream.on("end", async () => {
        awsChunkedEncodingStream.push(`0\r
`);
        if (checksumRequired) {
          const checksum = base64Encoder(await digest);
          awsChunkedEncodingStream.push(`${checksumLocationName}:${checksum}\r
`);
          awsChunkedEncodingStream.push(`\r
`);
        }
        awsChunkedEncodingStream.push(null);
      });
      return awsChunkedEncodingStream;
    }, "getAwsChunkedEncodingStream");
    exports2.getAwsChunkedEncodingStream = getAwsChunkedEncodingStream2;
  }
});

// ../../node_modules/@smithy/util-stream/dist-cjs/headStream.browser.js
var require_headStream_browser = __commonJS({
  "../../node_modules/@smithy/util-stream/dist-cjs/headStream.browser.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.headStream = headStream2;
    async function headStream2(stream3, bytes) {
      var _a2;
      let byteLengthCounter = 0;
      const chunks2 = [];
      const reader = stream3.getReader();
      let isDone = false;
      while (!isDone) {
        const { done, value } = await reader.read();
        if (value) {
          chunks2.push(value);
          byteLengthCounter += (_a2 = value === null || value === void 0 ? void 0 : value.byteLength) !== null && _a2 !== void 0 ? _a2 : 0;
        }
        if (byteLengthCounter >= bytes) {
          break;
        }
        isDone = done;
      }
      reader.releaseLock();
      const collected = new Uint8Array(Math.min(bytes, byteLengthCounter));
      let offset = 0;
      for (const chunk of chunks2) {
        if (chunk.byteLength > collected.byteLength - offset) {
          collected.set(chunk.subarray(0, collected.byteLength - offset), offset);
          break;
        } else {
          collected.set(chunk, offset);
        }
        offset += chunk.length;
      }
      return collected;
    }
    __name(headStream2, "headStream");
  }
});

// ../../node_modules/@smithy/util-stream/dist-cjs/headStream.js
var require_headStream = __commonJS({
  "../../node_modules/@smithy/util-stream/dist-cjs/headStream.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.headStream = void 0;
    var stream_1 = require("stream");
    var headStream_browser_1 = require_headStream_browser();
    var stream_type_check_1 = require_stream_type_check();
    var headStream2 = /* @__PURE__ */ __name((stream3, bytes) => {
      if ((0, stream_type_check_1.isReadableStream)(stream3)) {
        return (0, headStream_browser_1.headStream)(stream3, bytes);
      }
      return new Promise((resolve13, reject) => {
        const collector = new Collector();
        collector.limit = bytes;
        stream3.pipe(collector);
        stream3.on("error", (err) => {
          collector.end();
          reject(err);
        });
        collector.on("error", reject);
        collector.on("finish", function() {
          const bytes2 = new Uint8Array(Buffer.concat(this.buffers));
          resolve13(bytes2);
        });
      });
    }, "headStream");
    exports2.headStream = headStream2;
    var Collector = class extends stream_1.Writable {
      static {
        __name(this, "Collector");
      }
      constructor() {
        super(...arguments);
        this.buffers = [];
        this.limit = Infinity;
        this.bytesBuffered = 0;
      }
      _write(chunk, encoding, callback) {
        var _a2;
        this.buffers.push(chunk);
        this.bytesBuffered += (_a2 = chunk.byteLength) !== null && _a2 !== void 0 ? _a2 : 0;
        if (this.bytesBuffered >= this.limit) {
          const excess = this.bytesBuffered - this.limit;
          const tailBuffer = this.buffers[this.buffers.length - 1];
          this.buffers[this.buffers.length - 1] = tailBuffer.subarray(0, tailBuffer.byteLength - excess);
          this.emit("finish");
        }
        callback();
      }
    };
  }
});

// ../../node_modules/@smithy/util-uri-escape/dist-cjs/index.js
var require_dist_cjs12 = __commonJS({
  "../../node_modules/@smithy/util-uri-escape/dist-cjs/index.js"(exports2, module2) {
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var src_exports = {};
    __export2(src_exports, {
      escapeUri: /* @__PURE__ */ __name(() => escapeUri, "escapeUri"),
      escapeUriPath: /* @__PURE__ */ __name(() => escapeUriPath, "escapeUriPath")
    });
    module2.exports = __toCommonJS2(src_exports);
    var escapeUri = /* @__PURE__ */ __name2((uri) => (
      // AWS percent-encodes some extra non-standard characters in a URI
      encodeURIComponent(uri).replace(/[!'()*]/g, hexEncode)
    ), "escapeUri");
    var hexEncode = /* @__PURE__ */ __name2((c3) => `%${c3.charCodeAt(0).toString(16).toUpperCase()}`, "hexEncode");
    var escapeUriPath = /* @__PURE__ */ __name2((uri) => uri.split("/").map(escapeUri).join("/"), "escapeUriPath");
  }
});

// ../../node_modules/@smithy/querystring-builder/dist-cjs/index.js
var require_dist_cjs13 = __commonJS({
  "../../node_modules/@smithy/querystring-builder/dist-cjs/index.js"(exports2, module2) {
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var src_exports = {};
    __export2(src_exports, {
      buildQueryString: /* @__PURE__ */ __name(() => buildQueryString, "buildQueryString")
    });
    module2.exports = __toCommonJS2(src_exports);
    var import_util_uri_escape = require_dist_cjs12();
    function buildQueryString(query) {
      const parts = [];
      for (let key of Object.keys(query).sort()) {
        const value = query[key];
        key = (0, import_util_uri_escape.escapeUri)(key);
        if (Array.isArray(value)) {
          for (let i3 = 0, iLen = value.length; i3 < iLen; i3++) {
            parts.push(`${key}=${(0, import_util_uri_escape.escapeUri)(value[i3])}`);
          }
        } else {
          let qsEntry = key;
          if (value || typeof value === "string") {
            qsEntry += `=${(0, import_util_uri_escape.escapeUri)(value)}`;
          }
          parts.push(qsEntry);
        }
      }
      return parts.join("&");
    }
    __name(buildQueryString, "buildQueryString");
    __name2(buildQueryString, "buildQueryString");
  }
});

// ../../node_modules/@smithy/node-http-handler/dist-cjs/index.js
var require_dist_cjs14 = __commonJS({
  "../../node_modules/@smithy/node-http-handler/dist-cjs/index.js"(exports2, module2) {
    var __create2 = Object.create;
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __getProtoOf2 = Object.getPrototypeOf;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toESM2 = /* @__PURE__ */ __name((mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
      // If the importer is in node compatibility mode or this is not an ESM
      // file that has been converted to a CommonJS file using a Babel-
      // compatible transform (i.e. "__esModule" has not been set), then set
      // "default" to the CommonJS "module.exports" for node compatibility.
      isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
      mod
    )), "__toESM");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var src_exports = {};
    __export2(src_exports, {
      DEFAULT_REQUEST_TIMEOUT: /* @__PURE__ */ __name(() => DEFAULT_REQUEST_TIMEOUT, "DEFAULT_REQUEST_TIMEOUT"),
      NodeHttp2Handler: /* @__PURE__ */ __name(() => NodeHttp2Handler, "NodeHttp2Handler"),
      NodeHttpHandler: /* @__PURE__ */ __name(() => NodeHttpHandler, "NodeHttpHandler"),
      streamCollector: /* @__PURE__ */ __name(() => streamCollector3, "streamCollector")
    });
    module2.exports = __toCommonJS2(src_exports);
    var import_protocol_http16 = require_dist_cjs2();
    var import_querystring_builder = require_dist_cjs13();
    var import_http = require("http");
    var import_https = require("https");
    var NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "EPIPE", "ETIMEDOUT"];
    var getTransformedHeaders = /* @__PURE__ */ __name2((headers) => {
      const transformedHeaders = {};
      for (const name of Object.keys(headers)) {
        const headerValues = headers[name];
        transformedHeaders[name] = Array.isArray(headerValues) ? headerValues.join(",") : headerValues;
      }
      return transformedHeaders;
    }, "getTransformedHeaders");
    var timing = {
      setTimeout: /* @__PURE__ */ __name((cb, ms) => setTimeout(cb, ms), "setTimeout"),
      clearTimeout: /* @__PURE__ */ __name((timeoutId) => clearTimeout(timeoutId), "clearTimeout")
    };
    var DEFER_EVENT_LISTENER_TIME = 1e3;
    var setConnectionTimeout = /* @__PURE__ */ __name2((request2, reject, timeoutInMs = 0) => {
      if (!timeoutInMs) {
        return -1;
      }
      const registerTimeout = /* @__PURE__ */ __name2((offset) => {
        const timeoutId = timing.setTimeout(() => {
          request2.destroy();
          reject(
            Object.assign(new Error(`Socket timed out without establishing a connection within ${timeoutInMs} ms`), {
              name: "TimeoutError"
            })
          );
        }, timeoutInMs - offset);
        const doWithSocket = /* @__PURE__ */ __name2((socket) => {
          if (socket?.connecting) {
            socket.on("connect", () => {
              timing.clearTimeout(timeoutId);
            });
          } else {
            timing.clearTimeout(timeoutId);
          }
        }, "doWithSocket");
        if (request2.socket) {
          doWithSocket(request2.socket);
        } else {
          request2.on("socket", doWithSocket);
        }
      }, "registerTimeout");
      if (timeoutInMs < 2e3) {
        registerTimeout(0);
        return 0;
      }
      return timing.setTimeout(registerTimeout.bind(null, DEFER_EVENT_LISTENER_TIME), DEFER_EVENT_LISTENER_TIME);
    }, "setConnectionTimeout");
    var DEFER_EVENT_LISTENER_TIME2 = 3e3;
    var setSocketKeepAlive = /* @__PURE__ */ __name2((request2, { keepAlive, keepAliveMsecs }, deferTimeMs = DEFER_EVENT_LISTENER_TIME2) => {
      if (keepAlive !== true) {
        return -1;
      }
      const registerListener = /* @__PURE__ */ __name2(() => {
        if (request2.socket) {
          request2.socket.setKeepAlive(keepAlive, keepAliveMsecs || 0);
        } else {
          request2.on("socket", (socket) => {
            socket.setKeepAlive(keepAlive, keepAliveMsecs || 0);
          });
        }
      }, "registerListener");
      if (deferTimeMs === 0) {
        registerListener();
        return 0;
      }
      return timing.setTimeout(registerListener, deferTimeMs);
    }, "setSocketKeepAlive");
    var DEFER_EVENT_LISTENER_TIME3 = 3e3;
    var setSocketTimeout = /* @__PURE__ */ __name2((request2, reject, timeoutInMs = DEFAULT_REQUEST_TIMEOUT) => {
      const registerTimeout = /* @__PURE__ */ __name2((offset) => {
        const timeout = timeoutInMs - offset;
        const onTimeout = /* @__PURE__ */ __name2(() => {
          request2.destroy();
          reject(Object.assign(new Error(`Connection timed out after ${timeoutInMs} ms`), { name: "TimeoutError" }));
        }, "onTimeout");
        if (request2.socket) {
          request2.socket.setTimeout(timeout, onTimeout);
          request2.on("close", () => request2.socket?.removeListener("timeout", onTimeout));
        } else {
          request2.setTimeout(timeout, onTimeout);
        }
      }, "registerTimeout");
      if (0 < timeoutInMs && timeoutInMs < 6e3) {
        registerTimeout(0);
        return 0;
      }
      return timing.setTimeout(
        registerTimeout.bind(null, timeoutInMs === 0 ? 0 : DEFER_EVENT_LISTENER_TIME3),
        DEFER_EVENT_LISTENER_TIME3
      );
    }, "setSocketTimeout");
    var import_stream2 = require("stream");
    var MIN_WAIT_TIME = 6e3;
    async function writeRequestBody(httpRequest, request2, maxContinueTimeoutMs = MIN_WAIT_TIME) {
      const headers = request2.headers ?? {};
      const expect = headers["Expect"] || headers["expect"];
      let timeoutId = -1;
      let sendBody = true;
      if (expect === "100-continue") {
        sendBody = await Promise.race([
          new Promise((resolve13) => {
            timeoutId = Number(timing.setTimeout(() => resolve13(true), Math.max(MIN_WAIT_TIME, maxContinueTimeoutMs)));
          }),
          new Promise((resolve13) => {
            httpRequest.on("continue", () => {
              timing.clearTimeout(timeoutId);
              resolve13(true);
            });
            httpRequest.on("response", () => {
              timing.clearTimeout(timeoutId);
              resolve13(false);
            });
            httpRequest.on("error", () => {
              timing.clearTimeout(timeoutId);
              resolve13(false);
            });
          })
        ]);
      }
      if (sendBody) {
        writeBody(httpRequest, request2.body);
      }
    }
    __name(writeRequestBody, "writeRequestBody");
    __name2(writeRequestBody, "writeRequestBody");
    function writeBody(httpRequest, body) {
      if (body instanceof import_stream2.Readable) {
        body.pipe(httpRequest);
        return;
      }
      if (body) {
        if (Buffer.isBuffer(body) || typeof body === "string") {
          httpRequest.end(body);
          return;
        }
        const uint8 = body;
        if (typeof uint8 === "object" && uint8.buffer && typeof uint8.byteOffset === "number" && typeof uint8.byteLength === "number") {
          httpRequest.end(Buffer.from(uint8.buffer, uint8.byteOffset, uint8.byteLength));
          return;
        }
        httpRequest.end(Buffer.from(body));
        return;
      }
      httpRequest.end();
    }
    __name(writeBody, "writeBody");
    __name2(writeBody, "writeBody");
    var DEFAULT_REQUEST_TIMEOUT = 0;
    var NodeHttpHandler = class _NodeHttpHandler {
      static {
        __name(this, "_NodeHttpHandler");
      }
      constructor(options) {
        this.socketWarningTimestamp = 0;
        this.metadata = { handlerProtocol: "http/1.1" };
        this.configProvider = new Promise((resolve13, reject) => {
          if (typeof options === "function") {
            options().then((_options) => {
              resolve13(this.resolveDefaultConfig(_options));
            }).catch(reject);
          } else {
            resolve13(this.resolveDefaultConfig(options));
          }
        });
      }
      static {
        __name2(this, "NodeHttpHandler");
      }
      /**
       * @returns the input if it is an HttpHandler of any class,
       * or instantiates a new instance of this handler.
       */
      static create(instanceOrOptions) {
        if (typeof instanceOrOptions?.handle === "function") {
          return instanceOrOptions;
        }
        return new _NodeHttpHandler(instanceOrOptions);
      }
      /**
       * @internal
       *
       * @param agent - http(s) agent in use by the NodeHttpHandler instance.
       * @param socketWarningTimestamp - last socket usage check timestamp.
       * @param logger - channel for the warning.
       * @returns timestamp of last emitted warning.
       */
      static checkSocketUsage(agent, socketWarningTimestamp, logger4 = console) {
        const { sockets, requests, maxSockets } = agent;
        if (typeof maxSockets !== "number" || maxSockets === Infinity) {
          return socketWarningTimestamp;
        }
        const interval = 15e3;
        if (Date.now() - interval < socketWarningTimestamp) {
          return socketWarningTimestamp;
        }
        if (sockets && requests) {
          for (const origin in sockets) {
            const socketsInUse = sockets[origin]?.length ?? 0;
            const requestsEnqueued = requests[origin]?.length ?? 0;
            if (socketsInUse >= maxSockets && requestsEnqueued >= 2 * maxSockets) {
              logger4?.warn?.(
                `@smithy/node-http-handler:WARN - socket usage at capacity=${socketsInUse} and ${requestsEnqueued} additional requests are enqueued.
See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`
              );
              return Date.now();
            }
          }
        }
        return socketWarningTimestamp;
      }
      resolveDefaultConfig(options) {
        const { requestTimeout, connectionTimeout, socketTimeout, socketAcquisitionWarningTimeout, httpAgent, httpsAgent } = options || {};
        const keepAlive = true;
        const maxSockets = 50;
        return {
          connectionTimeout,
          requestTimeout: requestTimeout ?? socketTimeout,
          socketAcquisitionWarningTimeout,
          httpAgent: (() => {
            if (httpAgent instanceof import_http.Agent || typeof httpAgent?.destroy === "function") {
              return httpAgent;
            }
            return new import_http.Agent({ keepAlive, maxSockets, ...httpAgent });
          })(),
          httpsAgent: (() => {
            if (httpsAgent instanceof import_https.Agent || typeof httpsAgent?.destroy === "function") {
              return httpsAgent;
            }
            return new import_https.Agent({ keepAlive, maxSockets, ...httpsAgent });
          })(),
          logger: console
        };
      }
      destroy() {
        this.config?.httpAgent?.destroy();
        this.config?.httpsAgent?.destroy();
      }
      async handle(request2, { abortSignal, requestTimeout } = {}) {
        if (!this.config) {
          this.config = await this.configProvider;
        }
        return new Promise((_resolve, _reject) => {
          let writeRequestBodyPromise = void 0;
          const timeouts = [];
          const resolve13 = /* @__PURE__ */ __name2(async (arg) => {
            await writeRequestBodyPromise;
            timeouts.forEach(timing.clearTimeout);
            _resolve(arg);
          }, "resolve");
          const reject = /* @__PURE__ */ __name2(async (arg) => {
            await writeRequestBodyPromise;
            timeouts.forEach(timing.clearTimeout);
            _reject(arg);
          }, "reject");
          if (!this.config) {
            throw new Error("Node HTTP request handler config is not resolved");
          }
          if (abortSignal?.aborted) {
            const abortError = new Error("Request aborted");
            abortError.name = "AbortError";
            reject(abortError);
            return;
          }
          const isSSL = request2.protocol === "https:";
          const agent = isSSL ? this.config.httpsAgent : this.config.httpAgent;
          timeouts.push(
            timing.setTimeout(
              () => {
                this.socketWarningTimestamp = _NodeHttpHandler.checkSocketUsage(
                  agent,
                  this.socketWarningTimestamp,
                  this.config.logger
                );
              },
              this.config.socketAcquisitionWarningTimeout ?? (this.config.requestTimeout ?? 2e3) + (this.config.connectionTimeout ?? 1e3)
            )
          );
          const queryString = (0, import_querystring_builder.buildQueryString)(request2.query || {});
          let auth = void 0;
          if (request2.username != null || request2.password != null) {
            const username = request2.username ?? "";
            const password = request2.password ?? "";
            auth = `${username}:${password}`;
          }
          let path38 = request2.path;
          if (queryString) {
            path38 += `?${queryString}`;
          }
          if (request2.fragment) {
            path38 += `#${request2.fragment}`;
          }
          let hostname = request2.hostname ?? "";
          if (hostname[0] === "[" && hostname.endsWith("]")) {
            hostname = request2.hostname.slice(1, -1);
          } else {
            hostname = request2.hostname;
          }
          const nodeHttpsOptions = {
            headers: request2.headers,
            host: hostname,
            method: request2.method,
            path: path38,
            port: request2.port,
            agent,
            auth
          };
          const requestFunc = isSSL ? import_https.request : import_http.request;
          const req = requestFunc(nodeHttpsOptions, (res) => {
            const httpResponse = new import_protocol_http16.HttpResponse({
              statusCode: res.statusCode || -1,
              reason: res.statusMessage,
              headers: getTransformedHeaders(res.headers),
              body: res
            });
            resolve13({ response: httpResponse });
          });
          req.on("error", (err) => {
            if (NODEJS_TIMEOUT_ERROR_CODES.includes(err.code)) {
              reject(Object.assign(err, { name: "TimeoutError" }));
            } else {
              reject(err);
            }
          });
          if (abortSignal) {
            const onAbort = /* @__PURE__ */ __name2(() => {
              req.destroy();
              const abortError = new Error("Request aborted");
              abortError.name = "AbortError";
              reject(abortError);
            }, "onAbort");
            if (typeof abortSignal.addEventListener === "function") {
              const signal = abortSignal;
              signal.addEventListener("abort", onAbort, { once: true });
              req.once("close", () => signal.removeEventListener("abort", onAbort));
            } else {
              abortSignal.onabort = onAbort;
            }
          }
          const effectiveRequestTimeout = requestTimeout ?? this.config.requestTimeout;
          timeouts.push(setConnectionTimeout(req, reject, this.config.connectionTimeout));
          timeouts.push(setSocketTimeout(req, reject, effectiveRequestTimeout));
          const httpAgent = nodeHttpsOptions.agent;
          if (typeof httpAgent === "object" && "keepAlive" in httpAgent) {
            timeouts.push(
              setSocketKeepAlive(req, {
                // @ts-expect-error keepAlive is not public on httpAgent.
                keepAlive: httpAgent.keepAlive,
                // @ts-expect-error keepAliveMsecs is not public on httpAgent.
                keepAliveMsecs: httpAgent.keepAliveMsecs
              })
            );
          }
          writeRequestBodyPromise = writeRequestBody(req, request2, effectiveRequestTimeout).catch((e3) => {
            timeouts.forEach(timing.clearTimeout);
            return _reject(e3);
          });
        });
      }
      updateHttpClientConfig(key, value) {
        this.config = void 0;
        this.configProvider = this.configProvider.then((config) => {
          return {
            ...config,
            [key]: value
          };
        });
      }
      httpHandlerConfigs() {
        return this.config ?? {};
      }
    };
    var import_http22 = require("http2");
    var import_http2 = __toESM2(require("http2"));
    var NodeHttp2ConnectionPool = class {
      static {
        __name(this, "NodeHttp2ConnectionPool");
      }
      constructor(sessions) {
        this.sessions = [];
        this.sessions = sessions ?? [];
      }
      static {
        __name2(this, "NodeHttp2ConnectionPool");
      }
      poll() {
        if (this.sessions.length > 0) {
          return this.sessions.shift();
        }
      }
      offerLast(session) {
        this.sessions.push(session);
      }
      contains(session) {
        return this.sessions.includes(session);
      }
      remove(session) {
        this.sessions = this.sessions.filter((s3) => s3 !== session);
      }
      [Symbol.iterator]() {
        return this.sessions[Symbol.iterator]();
      }
      destroy(connection) {
        for (const session of this.sessions) {
          if (session === connection) {
            if (!session.destroyed) {
              session.destroy();
            }
          }
        }
      }
    };
    var NodeHttp2ConnectionManager = class {
      static {
        __name(this, "NodeHttp2ConnectionManager");
      }
      constructor(config) {
        this.sessionCache = /* @__PURE__ */ new Map();
        this.config = config;
        if (this.config.maxConcurrency && this.config.maxConcurrency <= 0) {
          throw new RangeError("maxConcurrency must be greater than zero.");
        }
      }
      static {
        __name2(this, "NodeHttp2ConnectionManager");
      }
      lease(requestContext, connectionConfiguration) {
        const url = this.getUrlString(requestContext);
        const existingPool = this.sessionCache.get(url);
        if (existingPool) {
          const existingSession = existingPool.poll();
          if (existingSession && !this.config.disableConcurrency) {
            return existingSession;
          }
        }
        const session = import_http2.default.connect(url);
        if (this.config.maxConcurrency) {
          session.settings({ maxConcurrentStreams: this.config.maxConcurrency }, (err) => {
            if (err) {
              throw new Error(
                "Fail to set maxConcurrentStreams to " + this.config.maxConcurrency + "when creating new session for " + requestContext.destination.toString()
              );
            }
          });
        }
        session.unref();
        const destroySessionCb = /* @__PURE__ */ __name2(() => {
          session.destroy();
          this.deleteSession(url, session);
        }, "destroySessionCb");
        session.on("goaway", destroySessionCb);
        session.on("error", destroySessionCb);
        session.on("frameError", destroySessionCb);
        session.on("close", () => this.deleteSession(url, session));
        if (connectionConfiguration.requestTimeout) {
          session.setTimeout(connectionConfiguration.requestTimeout, destroySessionCb);
        }
        const connectionPool = this.sessionCache.get(url) || new NodeHttp2ConnectionPool();
        connectionPool.offerLast(session);
        this.sessionCache.set(url, connectionPool);
        return session;
      }
      /**
       * Delete a session from the connection pool.
       * @param authority The authority of the session to delete.
       * @param session The session to delete.
       */
      deleteSession(authority, session) {
        const existingConnectionPool = this.sessionCache.get(authority);
        if (!existingConnectionPool) {
          return;
        }
        if (!existingConnectionPool.contains(session)) {
          return;
        }
        existingConnectionPool.remove(session);
        this.sessionCache.set(authority, existingConnectionPool);
      }
      release(requestContext, session) {
        const cacheKey = this.getUrlString(requestContext);
        this.sessionCache.get(cacheKey)?.offerLast(session);
      }
      destroy() {
        for (const [key, connectionPool] of this.sessionCache) {
          for (const session of connectionPool) {
            if (!session.destroyed) {
              session.destroy();
            }
            connectionPool.remove(session);
          }
          this.sessionCache.delete(key);
        }
      }
      setMaxConcurrentStreams(maxConcurrentStreams) {
        if (maxConcurrentStreams && maxConcurrentStreams <= 0) {
          throw new RangeError("maxConcurrentStreams must be greater than zero.");
        }
        this.config.maxConcurrency = maxConcurrentStreams;
      }
      setDisableConcurrentStreams(disableConcurrentStreams) {
        this.config.disableConcurrency = disableConcurrentStreams;
      }
      getUrlString(request2) {
        return request2.destination.toString();
      }
    };
    var NodeHttp2Handler = class _NodeHttp2Handler {
      static {
        __name(this, "_NodeHttp2Handler");
      }
      constructor(options) {
        this.metadata = { handlerProtocol: "h2" };
        this.connectionManager = new NodeHttp2ConnectionManager({});
        this.configProvider = new Promise((resolve13, reject) => {
          if (typeof options === "function") {
            options().then((opts) => {
              resolve13(opts || {});
            }).catch(reject);
          } else {
            resolve13(options || {});
          }
        });
      }
      static {
        __name2(this, "NodeHttp2Handler");
      }
      /**
       * @returns the input if it is an HttpHandler of any class,
       * or instantiates a new instance of this handler.
       */
      static create(instanceOrOptions) {
        if (typeof instanceOrOptions?.handle === "function") {
          return instanceOrOptions;
        }
        return new _NodeHttp2Handler(instanceOrOptions);
      }
      destroy() {
        this.connectionManager.destroy();
      }
      async handle(request2, { abortSignal, requestTimeout } = {}) {
        if (!this.config) {
          this.config = await this.configProvider;
          this.connectionManager.setDisableConcurrentStreams(this.config.disableConcurrentStreams || false);
          if (this.config.maxConcurrentStreams) {
            this.connectionManager.setMaxConcurrentStreams(this.config.maxConcurrentStreams);
          }
        }
        const { requestTimeout: configRequestTimeout, disableConcurrentStreams } = this.config;
        const effectiveRequestTimeout = requestTimeout ?? configRequestTimeout;
        return new Promise((_resolve, _reject) => {
          let fulfilled = false;
          let writeRequestBodyPromise = void 0;
          const resolve13 = /* @__PURE__ */ __name2(async (arg) => {
            await writeRequestBodyPromise;
            _resolve(arg);
          }, "resolve");
          const reject = /* @__PURE__ */ __name2(async (arg) => {
            await writeRequestBodyPromise;
            _reject(arg);
          }, "reject");
          if (abortSignal?.aborted) {
            fulfilled = true;
            const abortError = new Error("Request aborted");
            abortError.name = "AbortError";
            reject(abortError);
            return;
          }
          const { hostname, method, port, protocol, query } = request2;
          let auth = "";
          if (request2.username != null || request2.password != null) {
            const username = request2.username ?? "";
            const password = request2.password ?? "";
            auth = `${username}:${password}@`;
          }
          const authority = `${protocol}//${auth}${hostname}${port ? `:${port}` : ""}`;
          const requestContext = { destination: new URL(authority) };
          const session = this.connectionManager.lease(requestContext, {
            requestTimeout: this.config?.sessionTimeout,
            disableConcurrentStreams: disableConcurrentStreams || false
          });
          const rejectWithDestroy = /* @__PURE__ */ __name2((err) => {
            if (disableConcurrentStreams) {
              this.destroySession(session);
            }
            fulfilled = true;
            reject(err);
          }, "rejectWithDestroy");
          const queryString = (0, import_querystring_builder.buildQueryString)(query || {});
          let path38 = request2.path;
          if (queryString) {
            path38 += `?${queryString}`;
          }
          if (request2.fragment) {
            path38 += `#${request2.fragment}`;
          }
          const req = session.request({
            ...request2.headers,
            [import_http22.constants.HTTP2_HEADER_PATH]: path38,
            [import_http22.constants.HTTP2_HEADER_METHOD]: method
          });
          session.ref();
          req.on("response", (headers) => {
            const httpResponse = new import_protocol_http16.HttpResponse({
              statusCode: headers[":status"] || -1,
              headers: getTransformedHeaders(headers),
              body: req
            });
            fulfilled = true;
            resolve13({ response: httpResponse });
            if (disableConcurrentStreams) {
              session.close();
              this.connectionManager.deleteSession(authority, session);
            }
          });
          if (effectiveRequestTimeout) {
            req.setTimeout(effectiveRequestTimeout, () => {
              req.close();
              const timeoutError = new Error(`Stream timed out because of no activity for ${effectiveRequestTimeout} ms`);
              timeoutError.name = "TimeoutError";
              rejectWithDestroy(timeoutError);
            });
          }
          if (abortSignal) {
            const onAbort = /* @__PURE__ */ __name2(() => {
              req.close();
              const abortError = new Error("Request aborted");
              abortError.name = "AbortError";
              rejectWithDestroy(abortError);
            }, "onAbort");
            if (typeof abortSignal.addEventListener === "function") {
              const signal = abortSignal;
              signal.addEventListener("abort", onAbort, { once: true });
              req.once("close", () => signal.removeEventListener("abort", onAbort));
            } else {
              abortSignal.onabort = onAbort;
            }
          }
          req.on("frameError", (type, code, id) => {
            rejectWithDestroy(new Error(`Frame type id ${type} in stream id ${id} has failed with code ${code}.`));
          });
          req.on("error", rejectWithDestroy);
          req.on("aborted", () => {
            rejectWithDestroy(
              new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${req.rstCode}.`)
            );
          });
          req.on("close", () => {
            session.unref();
            if (disableConcurrentStreams) {
              session.destroy();
            }
            if (!fulfilled) {
              rejectWithDestroy(new Error("Unexpected error: http2 request did not get a response"));
            }
          });
          writeRequestBodyPromise = writeRequestBody(req, request2, effectiveRequestTimeout);
        });
      }
      updateHttpClientConfig(key, value) {
        this.config = void 0;
        this.configProvider = this.configProvider.then((config) => {
          return {
            ...config,
            [key]: value
          };
        });
      }
      httpHandlerConfigs() {
        return this.config ?? {};
      }
      /**
       * Destroys a session.
       * @param session - the session to destroy.
       */
      destroySession(session) {
        if (!session.destroyed) {
          session.destroy();
        }
      }
    };
    var Collector = class extends import_stream2.Writable {
      static {
        __name(this, "Collector");
      }
      constructor() {
        super(...arguments);
        this.bufferedBytes = [];
      }
      static {
        __name2(this, "Collector");
      }
      _write(chunk, encoding, callback) {
        this.bufferedBytes.push(chunk);
        callback();
      }
    };
    var streamCollector3 = /* @__PURE__ */ __name2((stream3) => {
      if (isReadableStreamInstance(stream3)) {
        return collectReadableStream(stream3);
      }
      return new Promise((resolve13, reject) => {
        const collector = new Collector();
        stream3.pipe(collector);
        stream3.on("error", (err) => {
          collector.end();
          reject(err);
        });
        collector.on("error", reject);
        collector.on("finish", function() {
          const bytes = new Uint8Array(Buffer.concat(this.bufferedBytes));
          resolve13(bytes);
        });
      });
    }, "streamCollector");
    var isReadableStreamInstance = /* @__PURE__ */ __name2((stream3) => typeof ReadableStream === "function" && stream3 instanceof ReadableStream, "isReadableStreamInstance");
    async function collectReadableStream(stream3) {
      const chunks2 = [];
      const reader = stream3.getReader();
      let isDone = false;
      let length = 0;
      while (!isDone) {
        const { done, value } = await reader.read();
        if (value) {
          chunks2.push(value);
          length += value.length;
        }
        isDone = done;
      }
      const collected = new Uint8Array(length);
      let offset = 0;
      for (const chunk of chunks2) {
        collected.set(chunk, offset);
        offset += chunk.length;
      }
      return collected;
    }
    __name(collectReadableStream, "collectReadableStream");
    __name2(collectReadableStream, "collectReadableStream");
  }
});

// ../../node_modules/@smithy/fetch-http-handler/dist-cjs/index.js
var require_dist_cjs15 = __commonJS({
  "../../node_modules/@smithy/fetch-http-handler/dist-cjs/index.js"(exports2, module2) {
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var src_exports = {};
    __export2(src_exports, {
      FetchHttpHandler: /* @__PURE__ */ __name(() => FetchHttpHandler, "FetchHttpHandler"),
      keepAliveSupport: /* @__PURE__ */ __name(() => keepAliveSupport, "keepAliveSupport"),
      streamCollector: /* @__PURE__ */ __name(() => streamCollector3, "streamCollector")
    });
    module2.exports = __toCommonJS2(src_exports);
    var import_protocol_http16 = require_dist_cjs2();
    var import_querystring_builder = require_dist_cjs13();
    function createRequest(url, requestOptions) {
      return new Request(url, requestOptions);
    }
    __name(createRequest, "createRequest");
    __name2(createRequest, "createRequest");
    function requestTimeout(timeoutInMs = 0) {
      return new Promise((resolve13, reject) => {
        if (timeoutInMs) {
          setTimeout(() => {
            const timeoutError = new Error(`Request did not complete within ${timeoutInMs} ms`);
            timeoutError.name = "TimeoutError";
            reject(timeoutError);
          }, timeoutInMs);
        }
      });
    }
    __name(requestTimeout, "requestTimeout");
    __name2(requestTimeout, "requestTimeout");
    var keepAliveSupport = {
      supported: void 0
    };
    var FetchHttpHandler = class _FetchHttpHandler {
      static {
        __name(this, "_FetchHttpHandler");
      }
      static {
        __name2(this, "FetchHttpHandler");
      }
      /**
       * @returns the input if it is an HttpHandler of any class,
       * or instantiates a new instance of this handler.
       */
      static create(instanceOrOptions) {
        if (typeof instanceOrOptions?.handle === "function") {
          return instanceOrOptions;
        }
        return new _FetchHttpHandler(instanceOrOptions);
      }
      constructor(options) {
        if (typeof options === "function") {
          this.configProvider = options().then((opts) => opts || {});
        } else {
          this.config = options ?? {};
          this.configProvider = Promise.resolve(this.config);
        }
        if (keepAliveSupport.supported === void 0) {
          keepAliveSupport.supported = Boolean(
            typeof Request !== "undefined" && "keepalive" in createRequest("https://[::1]")
          );
        }
      }
      destroy() {
      }
      async handle(request2, { abortSignal, requestTimeout: requestTimeout2 } = {}) {
        if (!this.config) {
          this.config = await this.configProvider;
        }
        const requestTimeoutInMs = requestTimeout2 ?? this.config.requestTimeout;
        const keepAlive = this.config.keepAlive === true;
        const credentials = this.config.credentials;
        if (abortSignal?.aborted) {
          const abortError = new Error("Request aborted");
          abortError.name = "AbortError";
          return Promise.reject(abortError);
        }
        let path38 = request2.path;
        const queryString = (0, import_querystring_builder.buildQueryString)(request2.query || {});
        if (queryString) {
          path38 += `?${queryString}`;
        }
        if (request2.fragment) {
          path38 += `#${request2.fragment}`;
        }
        let auth = "";
        if (request2.username != null || request2.password != null) {
          const username = request2.username ?? "";
          const password = request2.password ?? "";
          auth = `${username}:${password}@`;
        }
        const { port, method } = request2;
        const url = `${request2.protocol}//${auth}${request2.hostname}${port ? `:${port}` : ""}${path38}`;
        const body = method === "GET" || method === "HEAD" ? void 0 : request2.body;
        const requestOptions = {
          body,
          headers: new Headers(request2.headers),
          method,
          credentials
        };
        if (this.config?.cache) {
          requestOptions.cache = this.config.cache;
        }
        if (body) {
          requestOptions.duplex = "half";
        }
        if (typeof AbortController !== "undefined") {
          requestOptions.signal = abortSignal;
        }
        if (keepAliveSupport.supported) {
          requestOptions.keepalive = keepAlive;
        }
        if (typeof this.config.requestInit === "function") {
          Object.assign(requestOptions, this.config.requestInit(request2));
        }
        let removeSignalEventListener = /* @__PURE__ */ __name2(() => {
        }, "removeSignalEventListener");
        const fetchRequest = createRequest(url, requestOptions);
        const raceOfPromises = [
          fetch(fetchRequest).then((response) => {
            const fetchHeaders = response.headers;
            const transformedHeaders = {};
            for (const pair of fetchHeaders.entries()) {
              transformedHeaders[pair[0]] = pair[1];
            }
            const hasReadableStream = response.body != void 0;
            if (!hasReadableStream) {
              return response.blob().then((body2) => ({
                response: new import_protocol_http16.HttpResponse({
                  headers: transformedHeaders,
                  reason: response.statusText,
                  statusCode: response.status,
                  body: body2
                })
              }));
            }
            return {
              response: new import_protocol_http16.HttpResponse({
                headers: transformedHeaders,
                reason: response.statusText,
                statusCode: response.status,
                body: response.body
              })
            };
          }),
          requestTimeout(requestTimeoutInMs)
        ];
        if (abortSignal) {
          raceOfPromises.push(
            new Promise((resolve13, reject) => {
              const onAbort = /* @__PURE__ */ __name2(() => {
                const abortError = new Error("Request aborted");
                abortError.name = "AbortError";
                reject(abortError);
              }, "onAbort");
              if (typeof abortSignal.addEventListener === "function") {
                const signal = abortSignal;
                signal.addEventListener("abort", onAbort, { once: true });
                removeSignalEventListener = /* @__PURE__ */ __name2(() => signal.removeEventListener("abort", onAbort), "removeSignalEventListener");
              } else {
                abortSignal.onabort = onAbort;
              }
            })
          );
        }
        return Promise.race(raceOfPromises).finally(removeSignalEventListener);
      }
      updateHttpClientConfig(key, value) {
        this.config = void 0;
        this.configProvider = this.configProvider.then((config) => {
          config[key] = value;
          return config;
        });
      }
      httpHandlerConfigs() {
        return this.config ?? {};
      }
    };
    var import_util_base649 = require_dist_cjs11();
    var streamCollector3 = /* @__PURE__ */ __name2(async (stream3) => {
      if (typeof Blob === "function" && stream3 instanceof Blob || stream3.constructor?.name === "Blob") {
        if (Blob.prototype.arrayBuffer !== void 0) {
          return new Uint8Array(await stream3.arrayBuffer());
        }
        return collectBlob(stream3);
      }
      return collectStream(stream3);
    }, "streamCollector");
    async function collectBlob(blob) {
      const base64 = await readToBase64(blob);
      const arrayBuffer = (0, import_util_base649.fromBase64)(base64);
      return new Uint8Array(arrayBuffer);
    }
    __name(collectBlob, "collectBlob");
    __name2(collectBlob, "collectBlob");
    async function collectStream(stream3) {
      const chunks2 = [];
      const reader = stream3.getReader();
      let isDone = false;
      let length = 0;
      while (!isDone) {
        const { done, value } = await reader.read();
        if (value) {
          chunks2.push(value);
          length += value.length;
        }
        isDone = done;
      }
      const collected = new Uint8Array(length);
      let offset = 0;
      for (const chunk of chunks2) {
        collected.set(chunk, offset);
        offset += chunk.length;
      }
      return collected;
    }
    __name(collectStream, "collectStream");
    __name2(collectStream, "collectStream");
    function readToBase64(blob) {
      return new Promise((resolve13, reject) => {
        const reader = new FileReader();
        reader.onloadend = () => {
          if (reader.readyState !== 2) {
            return reject(new Error("Reader aborted too early"));
          }
          const result2 = reader.result ?? "";
          const commaIndex = result2.indexOf(",");
          const dataOffset = commaIndex > -1 ? commaIndex + 1 : result2.length;
          resolve13(result2.substring(dataOffset));
        };
        reader.onabort = () => reject(new Error("Read aborted"));
        reader.onerror = () => reject(reader.error);
        reader.readAsDataURL(blob);
      });
    }
    __name(readToBase64, "readToBase64");
    __name2(readToBase64, "readToBase64");
  }
});

// ../../node_modules/@smithy/util-hex-encoding/dist-cjs/index.js
var require_dist_cjs16 = __commonJS({
  "../../node_modules/@smithy/util-hex-encoding/dist-cjs/index.js"(exports2, module2) {
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var src_exports = {};
    __export2(src_exports, {
      fromHex: /* @__PURE__ */ __name(() => fromHex, "fromHex"),
      toHex: /* @__PURE__ */ __name(() => toHex, "toHex")
    });
    module2.exports = __toCommonJS2(src_exports);
    var SHORT_TO_HEX = {};
    var HEX_TO_SHORT = {};
    for (let i3 = 0; i3 < 256; i3++) {
      let encodedByte = i3.toString(16).toLowerCase();
      if (encodedByte.length === 1) {
        encodedByte = `0${encodedByte}`;
      }
      SHORT_TO_HEX[i3] = encodedByte;
      HEX_TO_SHORT[encodedByte] = i3;
    }
    function fromHex(encoded) {
      if (encoded.length % 2 !== 0) {
        throw new Error("Hex encoded strings must have an even number length");
      }
      const out = new Uint8Array(encoded.length / 2);
      for (let i3 = 0; i3 < encoded.length; i3 += 2) {
        const encodedByte = encoded.slice(i3, i3 + 2).toLowerCase();
        if (encodedByte in HEX_TO_SHORT) {
          out[i3 / 2] = HEX_TO_SHORT[encodedByte];
        } else {
          throw new Error(`Cannot decode unrecognized sequence ${encodedByte} as hexadecimal`);
        }
      }
      return out;
    }
    __name(fromHex, "fromHex");
    __name2(fromHex, "fromHex");
    function toHex(bytes) {
      let out = "";
      for (let i3 = 0; i3 < bytes.byteLength; i3++) {
        out += SHORT_TO_HEX[bytes[i3]];
      }
      return out;
    }
    __name(toHex, "toHex");
    __name2(toHex, "toHex");
  }
});

// ../../node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.browser.js
var require_sdk_stream_mixin_browser = __commonJS({
  "../../node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.browser.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.sdkStreamMixin = void 0;
    var fetch_http_handler_1 = require_dist_cjs15();
    var util_base64_1 = require_dist_cjs11();
    var util_hex_encoding_1 = require_dist_cjs16();
    var util_utf8_1 = require_dist_cjs10();
    var stream_type_check_1 = require_stream_type_check();
    var ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED = "The stream has already been transformed.";
    var sdkStreamMixin3 = /* @__PURE__ */ __name((stream3) => {
      var _a2, _b;
      if (!isBlobInstance(stream3) && !(0, stream_type_check_1.isReadableStream)(stream3)) {
        const name = ((_b = (_a2 = stream3 === null || stream3 === void 0 ? void 0 : stream3.__proto__) === null || _a2 === void 0 ? void 0 : _a2.constructor) === null || _b === void 0 ? void 0 : _b.name) || stream3;
        throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${name}`);
      }
      let transformed = false;
      const transformToByteArray = /* @__PURE__ */ __name(async () => {
        if (transformed) {
          throw new Error(ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED);
        }
        transformed = true;
        return await (0, fetch_http_handler_1.streamCollector)(stream3);
      }, "transformToByteArray");
      const blobToWebStream = /* @__PURE__ */ __name((blob) => {
        if (typeof blob.stream !== "function") {
          throw new Error("Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.\nIf you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body");
        }
        return blob.stream();
      }, "blobToWebStream");
      return Object.assign(stream3, {
        transformToByteArray,
        transformToString: /* @__PURE__ */ __name(async (encoding) => {
          const buf = await transformToByteArray();
          if (encoding === "base64") {
            return (0, util_base64_1.toBase64)(buf);
          } else if (encoding === "hex") {
            return (0, util_hex_encoding_1.toHex)(buf);
          } else if (encoding === void 0 || encoding === "utf8" || encoding === "utf-8") {
            return (0, util_utf8_1.toUtf8)(buf);
          } else if (typeof TextDecoder === "function") {
            return new TextDecoder(encoding).decode(buf);
          } else {
            throw new Error("TextDecoder is not available, please make sure polyfill is provided.");
          }
        }, "transformToString"),
        transformToWebStream: /* @__PURE__ */ __name(() => {
          if (transformed) {
            throw new Error(ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED);
          }
          transformed = true;
          if (isBlobInstance(stream3)) {
            return blobToWebStream(stream3);
          } else if ((0, stream_type_check_1.isReadableStream)(stream3)) {
            return stream3;
          } else {
            throw new Error(`Cannot transform payload to web stream, got ${stream3}`);
          }
        }, "transformToWebStream")
      });
    }, "sdkStreamMixin");
    exports2.sdkStreamMixin = sdkStreamMixin3;
    var isBlobInstance = /* @__PURE__ */ __name((stream3) => typeof Blob === "function" && stream3 instanceof Blob, "isBlobInstance");
  }
});

// ../../node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.js
var require_sdk_stream_mixin = __commonJS({
  "../../node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.sdkStreamMixin = void 0;
    var node_http_handler_1 = require_dist_cjs14();
    var util_buffer_from_1 = require_dist_cjs9();
    var stream_1 = require("stream");
    var sdk_stream_mixin_browser_1 = require_sdk_stream_mixin_browser();
    var ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED = "The stream has already been transformed.";
    var sdkStreamMixin3 = /* @__PURE__ */ __name((stream3) => {
      var _a2, _b;
      if (!(stream3 instanceof stream_1.Readable)) {
        try {
          return (0, sdk_stream_mixin_browser_1.sdkStreamMixin)(stream3);
        } catch (e3) {
          const name = ((_b = (_a2 = stream3 === null || stream3 === void 0 ? void 0 : stream3.__proto__) === null || _a2 === void 0 ? void 0 : _a2.constructor) === null || _b === void 0 ? void 0 : _b.name) || stream3;
          throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${name}`);
        }
      }
      let transformed = false;
      const transformToByteArray = /* @__PURE__ */ __name(async () => {
        if (transformed) {
          throw new Error(ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED);
        }
        transformed = true;
        return await (0, node_http_handler_1.streamCollector)(stream3);
      }, "transformToByteArray");
      return Object.assign(stream3, {
        transformToByteArray,
        transformToString: /* @__PURE__ */ __name(async (encoding) => {
          const buf = await transformToByteArray();
          if (encoding === void 0 || Buffer.isEncoding(encoding)) {
            return (0, util_buffer_from_1.fromArrayBuffer)(buf.buffer, buf.byteOffset, buf.byteLength).toString(encoding);
          } else {
            const decoder = new TextDecoder(encoding);
            return decoder.decode(buf);
          }
        }, "transformToString"),
        transformToWebStream: /* @__PURE__ */ __name(() => {
          if (transformed) {
            throw new Error(ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED);
          }
          if (stream3.readableFlowing !== null) {
            throw new Error("The stream has been consumed by other callbacks.");
          }
          if (typeof stream_1.Readable.toWeb !== "function") {
            throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");
          }
          transformed = true;
          return stream_1.Readable.toWeb(stream3);
        }, "transformToWebStream")
      });
    }, "sdkStreamMixin");
    exports2.sdkStreamMixin = sdkStreamMixin3;
  }
});

// ../../node_modules/@smithy/util-stream/dist-cjs/splitStream.browser.js
var require_splitStream_browser = __commonJS({
  "../../node_modules/@smithy/util-stream/dist-cjs/splitStream.browser.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.splitStream = splitStream2;
    async function splitStream2(stream3) {
      if (typeof stream3.stream === "function") {
        stream3 = stream3.stream();
      }
      const readableStream = stream3;
      return readableStream.tee();
    }
    __name(splitStream2, "splitStream");
  }
});

// ../../node_modules/@smithy/util-stream/dist-cjs/splitStream.js
var require_splitStream = __commonJS({
  "../../node_modules/@smithy/util-stream/dist-cjs/splitStream.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.splitStream = splitStream2;
    var stream_1 = require("stream");
    var splitStream_browser_1 = require_splitStream_browser();
    var stream_type_check_1 = require_stream_type_check();
    async function splitStream2(stream3) {
      if ((0, stream_type_check_1.isReadableStream)(stream3) || (0, stream_type_check_1.isBlob)(stream3)) {
        return (0, splitStream_browser_1.splitStream)(stream3);
      }
      const stream1 = new stream_1.PassThrough();
      const stream22 = new stream_1.PassThrough();
      stream3.pipe(stream1);
      stream3.pipe(stream22);
      return [stream1, stream22];
    }
    __name(splitStream2, "splitStream");
  }
});

// ../../node_modules/@smithy/util-stream/dist-cjs/index.js
var require_dist_cjs17 = __commonJS({
  "../../node_modules/@smithy/util-stream/dist-cjs/index.js"(exports2, module2) {
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __reExport = /* @__PURE__ */ __name((target, mod, secondTarget) => (__copyProps2(target, mod, "default"), secondTarget && __copyProps2(secondTarget, mod, "default")), "__reExport");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var src_exports = {};
    __export2(src_exports, {
      Uint8ArrayBlobAdapter: /* @__PURE__ */ __name(() => Uint8ArrayBlobAdapter2, "Uint8ArrayBlobAdapter")
    });
    module2.exports = __toCommonJS2(src_exports);
    var import_util_base649 = require_dist_cjs11();
    var import_util_utf810 = require_dist_cjs10();
    function transformToString(payload2, encoding = "utf-8") {
      if (encoding === "base64") {
        return (0, import_util_base649.toBase64)(payload2);
      }
      return (0, import_util_utf810.toUtf8)(payload2);
    }
    __name(transformToString, "transformToString");
    __name2(transformToString, "transformToString");
    function transformFromString(str, encoding) {
      if (encoding === "base64") {
        return Uint8ArrayBlobAdapter2.mutate((0, import_util_base649.fromBase64)(str));
      }
      return Uint8ArrayBlobAdapter2.mutate((0, import_util_utf810.fromUtf8)(str));
    }
    __name(transformFromString, "transformFromString");
    __name2(transformFromString, "transformFromString");
    var Uint8ArrayBlobAdapter2 = class _Uint8ArrayBlobAdapter extends Uint8Array {
      static {
        __name(this, "_Uint8ArrayBlobAdapter");
      }
      static {
        __name2(this, "Uint8ArrayBlobAdapter");
      }
      /**
       * @param source - such as a string or Stream.
       * @returns a new Uint8ArrayBlobAdapter extending Uint8Array.
       */
      static fromString(source, encoding = "utf-8") {
        switch (typeof source) {
          case "string":
            return transformFromString(source, encoding);
          default:
            throw new Error(`Unsupported conversion from ${typeof source} to Uint8ArrayBlobAdapter.`);
        }
      }
      /**
       * @param source - Uint8Array to be mutated.
       * @returns the same Uint8Array but with prototype switched to Uint8ArrayBlobAdapter.
       */
      static mutate(source) {
        Object.setPrototypeOf(source, _Uint8ArrayBlobAdapter.prototype);
        return source;
      }
      /**
       * @param encoding - default 'utf-8'.
       * @returns the blob as string.
       */
      transformToString(encoding = "utf-8") {
        return transformToString(this, encoding);
      }
    };
    __reExport(src_exports, require_ChecksumStream(), module2.exports);
    __reExport(src_exports, require_createChecksumStream(), module2.exports);
    __reExport(src_exports, require_createBufferedReadable(), module2.exports);
    __reExport(src_exports, require_getAwsChunkedEncodingStream(), module2.exports);
    __reExport(src_exports, require_headStream(), module2.exports);
    __reExport(src_exports, require_sdk_stream_mixin(), module2.exports);
    __reExport(src_exports, require_splitStream(), module2.exports);
    __reExport(src_exports, require_stream_type_check(), module2.exports);
  }
});

// ../../node_modules/@smithy/core/dist-es/submodules/protocols/collect-stream-body.js
var import_util_stream, collectBody2;
var init_collect_stream_body = __esm({
  "../../node_modules/@smithy/core/dist-es/submodules/protocols/collect-stream-body.js"() {
    import_util_stream = __toESM(require_dist_cjs17());
    collectBody2 = /* @__PURE__ */ __name(async (streamBody = new Uint8Array(), context) => {
      if (streamBody instanceof Uint8Array) {
        return import_util_stream.Uint8ArrayBlobAdapter.mutate(streamBody);
      }
      if (!streamBody) {
        return import_util_stream.Uint8ArrayBlobAdapter.mutate(new Uint8Array());
      }
      const fromContext = context.streamCollector(streamBody);
      return import_util_stream.Uint8ArrayBlobAdapter.mutate(await fromContext);
    }, "collectBody");
  }
});

// ../../node_modules/@smithy/core/dist-es/submodules/protocols/extended-encode-uri-component.js
function extendedEncodeURIComponent2(str) {
  return encodeURIComponent(str).replace(/[!'()*]/g, function(c3) {
    return "%" + c3.charCodeAt(0).toString(16).toUpperCase();
  });
}
var init_extended_encode_uri_component = __esm({
  "../../node_modules/@smithy/core/dist-es/submodules/protocols/extended-encode-uri-component.js"() {
    __name(extendedEncodeURIComponent2, "extendedEncodeURIComponent");
  }
});

// ../../node_modules/@smithy/core/dist-es/submodules/schema/deref.js
var deref;
var init_deref = __esm({
  "../../node_modules/@smithy/core/dist-es/submodules/schema/deref.js"() {
    deref = /* @__PURE__ */ __name((schemaRef) => {
      if (typeof schemaRef === "function") {
        return schemaRef();
      }
      return schemaRef;
    }, "deref");
  }
});

// ../../node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaDeserializationMiddleware.js
var import_protocol_http2, import_util_middleware3, schemaDeserializationMiddleware, findHeader;
var init_schemaDeserializationMiddleware = __esm({
  "../../node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaDeserializationMiddleware.js"() {
    import_protocol_http2 = __toESM(require_dist_cjs2());
    import_util_middleware3 = __toESM(require_dist_cjs6());
    schemaDeserializationMiddleware = /* @__PURE__ */ __name((config) => (next, context) => async (args) => {
      const { response } = await next(args);
      const { operationSchema } = (0, import_util_middleware3.getSmithyContext)(context);
      try {
        const parsed = await config.protocol.deserializeResponse(operationSchema, {
          ...config,
          ...context
        }, response);
        return {
          response,
          output: parsed
        };
      } catch (error5) {
        Object.defineProperty(error5, "$response", {
          value: response
        });
        if (!("$metadata" in error5)) {
          const hint = `Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;
          try {
            error5.message += "\n  " + hint;
          } catch (e3) {
            if (!context.logger || context.logger?.constructor?.name === "NoOpLogger") {
              console.warn(hint);
            } else {
              context.logger?.warn?.(hint);
            }
          }
          if (typeof error5.$responseBodyText !== "undefined") {
            if (error5.$response) {
              error5.$response.body = error5.$responseBodyText;
            }
          }
          try {
            if (import_protocol_http2.HttpResponse.isInstance(response)) {
              const { headers = {} } = response;
              const headerEntries = Object.entries(headers);
              error5.$metadata = {
                httpStatusCode: response.statusCode,
                requestId: findHeader(/^x-[\w-]+-request-?id$/, headerEntries),
                extendedRequestId: findHeader(/^x-[\w-]+-id-2$/, headerEntries),
                cfId: findHeader(/^x-[\w-]+-cf-id$/, headerEntries)
              };
            }
          } catch (e3) {
          }
        }
        throw error5;
      }
    }, "schemaDeserializationMiddleware");
    findHeader = /* @__PURE__ */ __name((pattern, headers) => {
      return (headers.find(([k3]) => {
        return k3.match(pattern);
      }) || [void 0, void 0])[1];
    }, "findHeader");
  }
});

// ../../node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaSerializationMiddleware.js
var import_util_middleware4, schemaSerializationMiddleware;
var init_schemaSerializationMiddleware = __esm({
  "../../node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaSerializationMiddleware.js"() {
    import_util_middleware4 = __toESM(require_dist_cjs6());
    schemaSerializationMiddleware = /* @__PURE__ */ __name((config) => (next, context) => async (args) => {
      const { operationSchema } = (0, import_util_middleware4.getSmithyContext)(context);
      const endpoint = context.endpointV2?.url && config.urlParser ? async () => config.urlParser(context.endpointV2.url) : config.endpoint;
      const request2 = await config.protocol.serializeRequest(operationSchema, args.input, {
        ...config,
        ...context,
        endpoint
      });
      return next({
        ...args,
        request: request2
      });
    }, "schemaSerializationMiddleware");
  }
});

// ../../node_modules/@smithy/core/dist-es/submodules/schema/middleware/getSchemaSerdePlugin.js
function getSchemaSerdePlugin(config) {
  return {
    applyToStack: /* @__PURE__ */ __name((commandStack) => {
      commandStack.add(schemaSerializationMiddleware(config), serializerMiddlewareOption2);
      commandStack.add(schemaDeserializationMiddleware(config), deserializerMiddlewareOption);
      config.protocol.setSerdeContext(config);
    }, "applyToStack")
  };
}
var deserializerMiddlewareOption, serializerMiddlewareOption2;
var init_getSchemaSerdePlugin = __esm({
  "../../node_modules/@smithy/core/dist-es/submodules/schema/middleware/getSchemaSerdePlugin.js"() {
    init_schemaDeserializationMiddleware();
    init_schemaSerializationMiddleware();
    deserializerMiddlewareOption = {
      name: "deserializerMiddleware",
      step: "deserialize",
      tags: ["DESERIALIZER"],
      override: true
    };
    serializerMiddlewareOption2 = {
      name: "serializerMiddleware",
      step: "serialize",
      tags: ["SERIALIZER"],
      override: true
    };
    __name(getSchemaSerdePlugin, "getSchemaSerdePlugin");
  }
});

// ../../node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js
var TypeRegistry;
var init_TypeRegistry = __esm({
  "../../node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js"() {
    TypeRegistry = class _TypeRegistry {
      static {
        __name(this, "TypeRegistry");
      }
      constructor(namespace, schemas = /* @__PURE__ */ new Map()) {
        this.namespace = namespace;
        this.schemas = schemas;
      }
      static for(namespace) {
        if (!_TypeRegistry.registries.has(namespace)) {
          _TypeRegistry.registries.set(namespace, new _TypeRegistry(namespace));
        }
        return _TypeRegistry.registries.get(namespace);
      }
      register(shapeId, schema) {
        const qualifiedName = this.normalizeShapeId(shapeId);
        const registry = _TypeRegistry.for(this.getNamespace(shapeId));
        registry.schemas.set(qualifiedName, schema);
      }
      getSchema(shapeId) {
        const id = this.normalizeShapeId(shapeId);
        if (!this.schemas.has(id)) {
          throw new Error(`@smithy/core/schema - schema not found for ${id}`);
        }
        return this.schemas.get(id);
      }
      getBaseException() {
        for (const [id, schema] of this.schemas.entries()) {
          if (id.startsWith("smithy.ts.sdk.synthetic.") && id.endsWith("ServiceException")) {
            return schema;
          }
        }
        return void 0;
      }
      find(predicate) {
        return [...this.schemas.values()].find(predicate);
      }
      destroy() {
        _TypeRegistry.registries.delete(this.namespace);
        this.schemas.clear();
      }
      normalizeShapeId(shapeId) {
        if (shapeId.includes("#")) {
          return shapeId;
        }
        return this.namespace + "#" + shapeId;
      }
      getNamespace(shapeId) {
        return this.normalizeShapeId(shapeId).split("#")[0];
      }
    };
    TypeRegistry.registries = /* @__PURE__ */ new Map();
  }
});

// ../../node_modules/@smithy/core/dist-es/submodules/schema/schemas/Schema.js
var Schema;
var init_Schema = __esm({
  "../../node_modules/@smithy/core/dist-es/submodules/schema/schemas/Schema.js"() {
    Schema = class {
      static {
        __name(this, "Schema");
      }
      constructor(name, traits) {
        this.name = name;
        this.traits = traits;
      }
    };
  }
});

// ../../node_modules/@smithy/core/dist-es/submodules/schema/schemas/ListSchema.js
function list(namespace, name, traits = {}, valueSchema) {
  const schema = new ListSchema(namespace + "#" + name, traits, typeof valueSchema === "function" ? valueSchema() : valueSchema);
  TypeRegistry.for(namespace).register(name, schema);
  return schema;
}
var ListSchema;
var init_ListSchema = __esm({
  "../../node_modules/@smithy/core/dist-es/submodules/schema/schemas/ListSchema.js"() {
    init_TypeRegistry();
    init_Schema();
    ListSchema = class _ListSchema extends Schema {
      static {
        __name(this, "ListSchema");
      }
      constructor(name, traits, valueSchema) {
        super(name, traits);
        this.name = name;
        this.traits = traits;
        this.valueSchema = valueSchema;
        this.symbol = _ListSchema.symbol;
      }
      static [Symbol.hasInstance](lhs) {
        const isPrototype = _ListSchema.prototype.isPrototypeOf(lhs);
        if (!isPrototype && typeof lhs === "object" && lhs !== null) {
          const list2 = lhs;
          return list2.symbol === _ListSchema.symbol;
        }
        return isPrototype;
      }
    };
    ListSchema.symbol = Symbol.for("@smithy/core/schema::ListSchema");
    __name(list, "list");
  }
});

// ../../node_modules/@smithy/core/dist-es/submodules/schema/schemas/MapSchema.js
function map(namespace, name, traits = {}, keySchema, valueSchema) {
  const schema = new MapSchema(namespace + "#" + name, traits, keySchema, typeof valueSchema === "function" ? valueSchema() : valueSchema);
  TypeRegistry.for(namespace).register(name, schema);
  return schema;
}
var MapSchema;
var init_MapSchema = __esm({
  "../../node_modules/@smithy/core/dist-es/submodules/schema/schemas/MapSchema.js"() {
    init_TypeRegistry();
    init_Schema();
    MapSchema = class _MapSchema extends Schema {
      static {
        __name(this, "MapSchema");
      }
      constructor(name, traits, keySchema, valueSchema) {
        super(name, traits);
        this.name = name;
        this.traits = traits;
        this.keySchema = keySchema;
        this.valueSchema = valueSchema;
        this.symbol = _MapSchema.symbol;
      }
      static [Symbol.hasInstance](lhs) {
        const isPrototype = _MapSchema.prototype.isPrototypeOf(lhs);
        if (!isPrototype && typeof lhs === "object" && lhs !== null) {
          const map3 = lhs;
          return map3.symbol === _MapSchema.symbol;
        }
        return isPrototype;
      }
    };
    MapSchema.symbol = Symbol.for("@smithy/core/schema::MapSchema");
    __name(map, "map");
  }
});

// ../../node_modules/@smithy/core/dist-es/submodules/schema/schemas/OperationSchema.js
function op(namespace, name, traits = {}, input, output) {
  const schema = new OperationSchema(namespace + "#" + name, traits, input, output);
  TypeRegistry.for(namespace).register(name, schema);
  return schema;
}
var OperationSchema;
var init_OperationSchema = __esm({
  "../../node_modules/@smithy/core/dist-es/submodules/schema/schemas/OperationSchema.js"() {
    init_TypeRegistry();
    init_Schema();
    OperationSchema = class extends Schema {
      static {
        __name(this, "OperationSchema");
      }
      constructor(name, traits, input, output) {
        super(name, traits);
        this.name = name;
        this.traits = traits;
        this.input = input;
        this.output = output;
      }
    };
    __name(op, "op");
  }
});

// ../../node_modules/@smithy/core/dist-es/submodules/schema/schemas/StructureSchema.js
function struct(namespace, name, traits, memberNames, memberList) {
  const schema = new StructureSchema(namespace + "#" + name, traits, memberNames, memberList);
  TypeRegistry.for(namespace).register(name, schema);
  return schema;
}
var StructureSchema;
var init_StructureSchema = __esm({
  "../../node_modules/@smithy/core/dist-es/submodules/schema/schemas/StructureSchema.js"() {
    init_TypeRegistry();
    init_Schema();
    StructureSchema = class _StructureSchema extends Schema {
      static {
        __name(this, "StructureSchema");
      }
      constructor(name, traits, memberNames, memberList) {
        super(name, traits);
        this.name = name;
        this.traits = traits;
        this.memberNames = memberNames;
        this.memberList = memberList;
        this.symbol = _StructureSchema.symbol;
        this.members = {};
        for (let i3 = 0; i3 < memberNames.length; ++i3) {
          this.members[memberNames[i3]] = Array.isArray(memberList[i3]) ? memberList[i3] : [memberList[i3], 0];
        }
      }
      static [Symbol.hasInstance](lhs) {
        const isPrototype = _StructureSchema.prototype.isPrototypeOf(lhs);
        if (!isPrototype && typeof lhs === "object" && lhs !== null) {
          const struct2 = lhs;
          return struct2.symbol === _StructureSchema.symbol;
        }
        return isPrototype;
      }
    };
    StructureSchema.symbol = Symbol.for("@smithy/core/schema::StructureSchema");
    __name(struct, "struct");
  }
});

// ../../node_modules/@smithy/core/dist-es/submodules/schema/schemas/ErrorSchema.js
function error(namespace, name, traits = {}, memberNames, memberList, ctor) {
  const schema = new ErrorSchema(namespace + "#" + name, traits, memberNames, memberList, ctor);
  TypeRegistry.for(namespace).register(name, schema);
  return schema;
}
var ErrorSchema;
var init_ErrorSchema = __esm({
  "../../node_modules/@smithy/core/dist-es/submodules/schema/schemas/ErrorSchema.js"() {
    init_TypeRegistry();
    init_StructureSchema();
    ErrorSchema = class _ErrorSchema extends StructureSchema {
      static {
        __name(this, "ErrorSchema");
      }
      constructor(name, traits, memberNames, memberList, ctor) {
        super(name, traits, memberNames, memberList);
        this.name = name;
        this.traits = traits;
        this.memberNames = memberNames;
        this.memberList = memberList;
        this.ctor = ctor;
        this.symbol = _ErrorSchema.symbol;
      }
      static [Symbol.hasInstance](lhs) {
        const isPrototype = _ErrorSchema.prototype.isPrototypeOf(lhs);
        if (!isPrototype && typeof lhs === "object" && lhs !== null) {
          const err = lhs;
          return err.symbol === _ErrorSchema.symbol;
        }
        return isPrototype;
      }
    };
    ErrorSchema.symbol = Symbol.for("@smithy/core/schema::ErrorSchema");
    __name(error, "error");
  }
});

// ../../node_modules/@smithy/core/dist-es/submodules/schema/schemas/sentinels.js
var SCHEMA;
var init_sentinels = __esm({
  "../../node_modules/@smithy/core/dist-es/submodules/schema/schemas/sentinels.js"() {
    SCHEMA = {
      BLOB: 21,
      STREAMING_BLOB: 42,
      BOOLEAN: 2,
      STRING: 0,
      NUMERIC: 1,
      BIG_INTEGER: 17,
      BIG_DECIMAL: 19,
      DOCUMENT: 15,
      TIMESTAMP_DEFAULT: 4,
      TIMESTAMP_DATE_TIME: 5,
      TIMESTAMP_HTTP_DATE: 6,
      TIMESTAMP_EPOCH_SECONDS: 7,
      LIST_MODIFIER: 64,
      MAP_MODIFIER: 128
    };
  }
});

// ../../node_modules/@smithy/core/dist-es/submodules/schema/schemas/SimpleSchema.js
function sim(namespace, name, schemaRef, traits) {
  const schema = new SimpleSchema(namespace + "#" + name, schemaRef, traits);
  TypeRegistry.for(namespace).register(name, schema);
  return schema;
}
var SimpleSchema;
var init_SimpleSchema = __esm({
  "../../node_modules/@smithy/core/dist-es/submodules/schema/schemas/SimpleSchema.js"() {
    init_TypeRegistry();
    init_Schema();
    SimpleSchema = class _SimpleSchema extends Schema {
      static {
        __name(this, "SimpleSchema");
      }
      constructor(name, schemaRef, traits) {
        super(name, traits);
        this.name = name;
        this.schemaRef = schemaRef;
        this.traits = traits;
        this.symbol = _SimpleSchema.symbol;
      }
      static [Symbol.hasInstance](lhs) {
        const isPrototype = _SimpleSchema.prototype.isPrototypeOf(lhs);
        if (!isPrototype && typeof lhs === "object" && lhs !== null) {
          const sim2 = lhs;
          return sim2.symbol === _SimpleSchema.symbol;
        }
        return isPrototype;
      }
    };
    SimpleSchema.symbol = Symbol.for("@smithy/core/schema::SimpleSchema");
    __name(sim, "sim");
  }
});

// ../../node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js
var NormalizedSchema;
var init_NormalizedSchema = __esm({
  "../../node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js"() {
    init_deref();
    init_ListSchema();
    init_MapSchema();
    init_sentinels();
    init_SimpleSchema();
    init_StructureSchema();
    NormalizedSchema = class _NormalizedSchema {
      static {
        __name(this, "NormalizedSchema");
      }
      constructor(ref, memberName) {
        this.ref = ref;
        this.memberName = memberName;
        this.symbol = _NormalizedSchema.symbol;
        const traitStack = [];
        let _ref = ref;
        let schema = ref;
        this._isMemberSchema = false;
        while (Array.isArray(_ref)) {
          traitStack.push(_ref[1]);
          _ref = _ref[0];
          schema = deref(_ref);
          this._isMemberSchema = true;
        }
        if (traitStack.length > 0) {
          this.memberTraits = {};
          for (let i3 = traitStack.length - 1; i3 >= 0; --i3) {
            const traitSet = traitStack[i3];
            Object.assign(this.memberTraits, _NormalizedSchema.translateTraits(traitSet));
          }
        } else {
          this.memberTraits = 0;
        }
        if (schema instanceof _NormalizedSchema) {
          this.name = schema.name;
          this.traits = schema.traits;
          this._isMemberSchema = schema._isMemberSchema;
          this.schema = schema.schema;
          this.memberTraits = Object.assign({}, schema.getMemberTraits(), this.getMemberTraits());
          this.normalizedTraits = void 0;
          this.ref = schema.ref;
          this.memberName = memberName ?? schema.memberName;
          return;
        }
        this.schema = deref(schema);
        if (this.schema && typeof this.schema === "object") {
          this.traits = this.schema?.traits ?? {};
        } else {
          this.traits = 0;
        }
        this.name = (typeof this.schema === "object" ? this.schema?.name : void 0) ?? this.memberName ?? this.getSchemaName();
        if (this._isMemberSchema && !memberName) {
          throw new Error(`@smithy/core/schema - NormalizedSchema member schema ${this.getName(true)} must initialize with memberName argument.`);
        }
      }
      static [Symbol.hasInstance](lhs) {
        const isPrototype = _NormalizedSchema.prototype.isPrototypeOf(lhs);
        if (!isPrototype && typeof lhs === "object" && lhs !== null) {
          const ns = lhs;
          return ns.symbol === _NormalizedSchema.symbol;
        }
        return isPrototype;
      }
      static of(ref, memberName) {
        if (ref instanceof _NormalizedSchema) {
          return ref;
        }
        return new _NormalizedSchema(ref, memberName);
      }
      static translateTraits(indicator) {
        if (typeof indicator === "object") {
          return indicator;
        }
        indicator = indicator | 0;
        const traits = {};
        if ((indicator & 1) === 1) {
          traits.httpLabel = 1;
        }
        if ((indicator >> 1 & 1) === 1) {
          traits.idempotent = 1;
        }
        if ((indicator >> 2 & 1) === 1) {
          traits.idempotencyToken = 1;
        }
        if ((indicator >> 3 & 1) === 1) {
          traits.sensitive = 1;
        }
        if ((indicator >> 4 & 1) === 1) {
          traits.httpPayload = 1;
        }
        if ((indicator >> 5 & 1) === 1) {
          traits.httpResponseCode = 1;
        }
        if ((indicator >> 6 & 1) === 1) {
          traits.httpQueryParams = 1;
        }
        return traits;
      }
      static memberFrom(memberSchema, memberName) {
        if (memberSchema instanceof _NormalizedSchema) {
          memberSchema.memberName = memberName;
          memberSchema._isMemberSchema = true;
          return memberSchema;
        }
        return new _NormalizedSchema(memberSchema, memberName);
      }
      getSchema() {
        if (this.schema instanceof _NormalizedSchema) {
          return this.schema = this.schema.getSchema();
        }
        if (this.schema instanceof SimpleSchema) {
          return deref(this.schema.schemaRef);
        }
        return deref(this.schema);
      }
      getName(withNamespace = false) {
        if (!withNamespace) {
          if (this.name && this.name.includes("#")) {
            return this.name.split("#")[1];
          }
        }
        return this.name || void 0;
      }
      getMemberName() {
        if (!this.isMemberSchema()) {
          throw new Error(`@smithy/core/schema - cannot get member name on non-member schema: ${this.getName(true)}`);
        }
        return this.memberName;
      }
      isMemberSchema() {
        return this._isMemberSchema;
      }
      isUnitSchema() {
        return this.getSchema() === "unit";
      }
      isListSchema() {
        const inner = this.getSchema();
        if (typeof inner === "number") {
          return inner >= SCHEMA.LIST_MODIFIER && inner < SCHEMA.MAP_MODIFIER;
        }
        return inner instanceof ListSchema;
      }
      isMapSchema() {
        const inner = this.getSchema();
        if (typeof inner === "number") {
          return inner >= SCHEMA.MAP_MODIFIER && inner <= 255;
        }
        return inner instanceof MapSchema;
      }
      isDocumentSchema() {
        return this.getSchema() === SCHEMA.DOCUMENT;
      }
      isStructSchema() {
        const inner = this.getSchema();
        return inner !== null && typeof inner === "object" && "members" in inner || inner instanceof StructureSchema;
      }
      isBlobSchema() {
        return this.getSchema() === SCHEMA.BLOB || this.getSchema() === SCHEMA.STREAMING_BLOB;
      }
      isTimestampSchema() {
        const schema = this.getSchema();
        return typeof schema === "number" && schema >= SCHEMA.TIMESTAMP_DEFAULT && schema <= SCHEMA.TIMESTAMP_EPOCH_SECONDS;
      }
      isStringSchema() {
        return this.getSchema() === SCHEMA.STRING;
      }
      isBooleanSchema() {
        return this.getSchema() === SCHEMA.BOOLEAN;
      }
      isNumericSchema() {
        return this.getSchema() === SCHEMA.NUMERIC;
      }
      isBigIntegerSchema() {
        return this.getSchema() === SCHEMA.BIG_INTEGER;
      }
      isBigDecimalSchema() {
        return this.getSchema() === SCHEMA.BIG_DECIMAL;
      }
      isStreaming() {
        const streaming = !!this.getMergedTraits().streaming;
        if (streaming) {
          return true;
        }
        return this.getSchema() === SCHEMA.STREAMING_BLOB;
      }
      isIdempotencyToken() {
        if (typeof this.traits === "number") {
          return (this.traits & 4) === 4;
        } else if (typeof this.traits === "object") {
          return !!this.traits.idempotencyToken;
        }
        return false;
      }
      getMergedTraits() {
        if (this.normalizedTraits) {
          return this.normalizedTraits;
        }
        this.normalizedTraits = {
          ...this.getOwnTraits(),
          ...this.getMemberTraits()
        };
        return this.normalizedTraits;
      }
      getMemberTraits() {
        return _NormalizedSchema.translateTraits(this.memberTraits);
      }
      getOwnTraits() {
        return _NormalizedSchema.translateTraits(this.traits);
      }
      getKeySchema() {
        if (this.isDocumentSchema()) {
          return _NormalizedSchema.memberFrom([SCHEMA.DOCUMENT, 0], "key");
        }
        if (!this.isMapSchema()) {
          throw new Error(`@smithy/core/schema - cannot get key schema for non-map schema: ${this.getName(true)}`);
        }
        const schema = this.getSchema();
        if (typeof schema === "number") {
          return _NormalizedSchema.memberFrom([63 & schema, 0], "key");
        }
        return _NormalizedSchema.memberFrom([schema.keySchema, 0], "key");
      }
      getValueSchema() {
        const schema = this.getSchema();
        if (typeof schema === "number") {
          if (this.isMapSchema()) {
            return _NormalizedSchema.memberFrom([63 & schema, 0], "value");
          } else if (this.isListSchema()) {
            return _NormalizedSchema.memberFrom([63 & schema, 0], "member");
          }
        }
        if (schema && typeof schema === "object") {
          if (this.isStructSchema()) {
            throw new Error(`cannot call getValueSchema() with StructureSchema ${this.getName(true)}`);
          }
          const collection = schema;
          if ("valueSchema" in collection) {
            if (this.isMapSchema()) {
              return _NormalizedSchema.memberFrom([collection.valueSchema, 0], "value");
            } else if (this.isListSchema()) {
              return _NormalizedSchema.memberFrom([collection.valueSchema, 0], "member");
            }
          }
        }
        if (this.isDocumentSchema()) {
          return _NormalizedSchema.memberFrom([SCHEMA.DOCUMENT, 0], "value");
        }
        throw new Error(`@smithy/core/schema - the schema ${this.getName(true)} does not have a value member.`);
      }
      hasMemberSchema(member) {
        if (this.isStructSchema()) {
          const struct2 = this.getSchema();
          return member in struct2.members;
        }
        return false;
      }
      getMemberSchema(member) {
        if (this.isStructSchema()) {
          const struct2 = this.getSchema();
          if (!(member in struct2.members)) {
            throw new Error(`@smithy/core/schema - the schema ${this.getName(true)} does not have a member with name=${member}.`);
          }
          return _NormalizedSchema.memberFrom(struct2.members[member], member);
        }
        if (this.isDocumentSchema()) {
          return _NormalizedSchema.memberFrom([SCHEMA.DOCUMENT, 0], member);
        }
        throw new Error(`@smithy/core/schema - the schema ${this.getName(true)} does not have members.`);
      }
      getMemberSchemas() {
        const { schema } = this;
        const struct2 = schema;
        if (!struct2 || typeof struct2 !== "object") {
          return {};
        }
        if ("members" in struct2) {
          const buffer = {};
          for (const member of struct2.memberNames) {
            buffer[member] = this.getMemberSchema(member);
          }
          return buffer;
        }
        return {};
      }
      getEventStreamMember() {
        if (this.isStructSchema()) {
          for (const [memberName, memberSchema] of this.structIterator()) {
            if (memberSchema.isStreaming() && memberSchema.isStructSchema()) {
              return memberName;
            }
          }
        }
        return "";
      }
      *structIterator() {
        if (this.isUnitSchema()) {
          return;
        }
        if (!this.isStructSchema()) {
          throw new Error("@smithy/core/schema - cannot acquire structIterator on non-struct schema.");
        }
        const struct2 = this.getSchema();
        for (let i3 = 0; i3 < struct2.memberNames.length; ++i3) {
          yield [struct2.memberNames[i3], _NormalizedSchema.memberFrom([struct2.memberList[i3], 0], struct2.memberNames[i3])];
        }
      }
      getSchemaName() {
        const schema = this.getSchema();
        if (typeof schema === "number") {
          const _schema = 63 & schema;
          const container = 192 & schema;
          const type = Object.entries(SCHEMA).find(([, value]) => {
            return value === _schema;
          })?.[0] ?? "Unknown";
          switch (container) {
            case SCHEMA.MAP_MODIFIER:
              return `${type}Map`;
            case SCHEMA.LIST_MODIFIER:
              return `${type}List`;
            case 0:
              return type;
          }
        }
        return "Unknown";
      }
    };
    NormalizedSchema.symbol = Symbol.for("@smithy/core/schema::NormalizedSchema");
  }
});

// ../../node_modules/@smithy/core/dist-es/submodules/schema/index.js
var schema_exports = {};
__export(schema_exports, {
  ErrorSchema: () => ErrorSchema,
  ListSchema: () => ListSchema,
  MapSchema: () => MapSchema,
  NormalizedSchema: () => NormalizedSchema,
  OperationSchema: () => OperationSchema,
  SCHEMA: () => SCHEMA,
  Schema: () => Schema,
  SimpleSchema: () => SimpleSchema,
  StructureSchema: () => StructureSchema,
  TypeRegistry: () => TypeRegistry,
  deref: () => deref,
  deserializerMiddlewareOption: () => deserializerMiddlewareOption,
  error: () => error,
  getSchemaSerdePlugin: () => getSchemaSerdePlugin,
  list: () => list,
  map: () => map,
  op: () => op,
  serializerMiddlewareOption: () => serializerMiddlewareOption2,
  sim: () => sim,
  struct: () => struct
});
var init_schema4 = __esm({
  "../../node_modules/@smithy/core/dist-es/submodules/schema/index.js"() {
    init_deref();
    init_getSchemaSerdePlugin();
    init_ListSchema();
    init_MapSchema();
    init_OperationSchema();
    init_ErrorSchema();
    init_NormalizedSchema();
    init_Schema();
    init_SimpleSchema();
    init_StructureSchema();
    init_sentinels();
    init_TypeRegistry();
  }
});

// ../../node_modules/@smithy/core/dist-es/submodules/serde/copyDocumentWithTransform.js
var copyDocumentWithTransform2;
var init_copyDocumentWithTransform = __esm({
  "../../node_modules/@smithy/core/dist-es/submodules/serde/copyDocumentWithTransform.js"() {
    copyDocumentWithTransform2 = /* @__PURE__ */ __name((source, schemaRef, transform = (_3) => _3) => source, "copyDocumentWithTransform");
  }
});

// ../../node_modules/@smithy/core/dist-es/submodules/serde/parse-utils.js
var parseBoolean2, expectBoolean2, expectNumber2, MAX_FLOAT, expectFloat322, expectLong2, expectInt2, expectInt322, expectShort2, expectByte2, expectSizedInt, castInt, expectNonNull2, expectObject2, expectString2, expectUnion2, strictParseDouble2, strictParseFloat2, strictParseFloat322, NUMBER_REGEX, parseNumber, limitedParseDouble2, handleFloat2, limitedParseFloat2, limitedParseFloat322, parseFloatString, strictParseLong2, strictParseInt2, strictParseInt322, strictParseShort2, strictParseByte2, stackTraceWarning, logger2;
var init_parse_utils = __esm({
  "../../node_modules/@smithy/core/dist-es/submodules/serde/parse-utils.js"() {
    parseBoolean2 = /* @__PURE__ */ __name((value) => {
      switch (value) {
        case "true":
          return true;
        case "false":
          return false;
        default:
          throw new Error(`Unable to parse boolean value "${value}"`);
      }
    }, "parseBoolean");
    expectBoolean2 = /* @__PURE__ */ __name((value) => {
      if (value === null || value === void 0) {
        return void 0;
      }
      if (typeof value === "number") {
        if (value === 0 || value === 1) {
          logger2.warn(stackTraceWarning(`Expected boolean, got ${typeof value}: ${value}`));
        }
        if (value === 0) {
          return false;
        }
        if (value === 1) {
          return true;
        }
      }
      if (typeof value === "string") {
        const lower = value.toLowerCase();
        if (lower === "false" || lower === "true") {
          logger2.warn(stackTraceWarning(`Expected boolean, got ${typeof value}: ${value}`));
        }
        if (lower === "false") {
          return false;
        }
        if (lower === "true") {
          return true;
        }
      }
      if (typeof value === "boolean") {
        return value;
      }
      throw new TypeError(`Expected boolean, got ${typeof value}: ${value}`);
    }, "expectBoolean");
    expectNumber2 = /* @__PURE__ */ __name((value) => {
      if (value === null || value === void 0) {
        return void 0;
      }
      if (typeof value === "string") {
        const parsed = parseFloat(value);
        if (!Number.isNaN(parsed)) {
          if (String(parsed) !== String(value)) {
            logger2.warn(stackTraceWarning(`Expected number but observed string: ${value}`));
          }
          return parsed;
        }
      }
      if (typeof value === "number") {
        return value;
      }
      throw new TypeError(`Expected number, got ${typeof value}: ${value}`);
    }, "expectNumber");
    MAX_FLOAT = Math.ceil(2 ** 127 * (2 - 2 ** -23));
    expectFloat322 = /* @__PURE__ */ __name((value) => {
      const expected = expectNumber2(value);
      if (expected !== void 0 && !Number.isNaN(expected) && expected !== Infinity && expected !== -Infinity) {
        if (Math.abs(expected) > MAX_FLOAT) {
          throw new TypeError(`Expected 32-bit float, got ${value}`);
        }
      }
      return expected;
    }, "expectFloat32");
    expectLong2 = /* @__PURE__ */ __name((value) => {
      if (value === null || value === void 0) {
        return void 0;
      }
      if (Number.isInteger(value) && !Number.isNaN(value)) {
        return value;
      }
      throw new TypeError(`Expected integer, got ${typeof value}: ${value}`);
    }, "expectLong");
    expectInt2 = expectLong2;
    expectInt322 = /* @__PURE__ */ __name((value) => expectSizedInt(value, 32), "expectInt32");
    expectShort2 = /* @__PURE__ */ __name((value) => expectSizedInt(value, 16), "expectShort");
    expectByte2 = /* @__PURE__ */ __name((value) => expectSizedInt(value, 8), "expectByte");
    expectSizedInt = /* @__PURE__ */ __name((value, size) => {
      const expected = expectLong2(value);
      if (expected !== void 0 && castInt(expected, size) !== expected) {
        throw new TypeError(`Expected ${size}-bit integer, got ${value}`);
      }
      return expected;
    }, "expectSizedInt");
    castInt = /* @__PURE__ */ __name((value, size) => {
      switch (size) {
        case 32:
          return Int32Array.of(value)[0];
        case 16:
          return Int16Array.of(value)[0];
        case 8:
          return Int8Array.of(value)[0];
      }
    }, "castInt");
    expectNonNull2 = /* @__PURE__ */ __name((value, location) => {
      if (value === null || value === void 0) {
        if (location) {
          throw new TypeError(`Expected a non-null value for ${location}`);
        }
        throw new TypeError("Expected a non-null value");
      }
      return value;
    }, "expectNonNull");
    expectObject2 = /* @__PURE__ */ __name((value) => {
      if (value === null || value === void 0) {
        return void 0;
      }
      if (typeof value === "object" && !Array.isArray(value)) {
        return value;
      }
      const receivedType = Array.isArray(value) ? "array" : typeof value;
      throw new TypeError(`Expected object, got ${receivedType}: ${value}`);
    }, "expectObject");
    expectString2 = /* @__PURE__ */ __name((value) => {
      if (value === null || value === void 0) {
        return void 0;
      }
      if (typeof value === "string") {
        return value;
      }
      if (["boolean", "number", "bigint"].includes(typeof value)) {
        logger2.warn(stackTraceWarning(`Expected string, got ${typeof value}: ${value}`));
        return String(value);
      }
      throw new TypeError(`Expected string, got ${typeof value}: ${value}`);
    }, "expectString");
    expectUnion2 = /* @__PURE__ */ __name((value) => {
      if (value === null || value === void 0) {
        return void 0;
      }
      const asObject = expectObject2(value);
      const setKeys = Object.entries(asObject).filter(([, v6]) => v6 != null).map(([k3]) => k3);
      if (setKeys.length === 0) {
        throw new TypeError(`Unions must have exactly one non-null member. None were found.`);
      }
      if (setKeys.length > 1) {
        throw new TypeError(`Unions must have exactly one non-null member. Keys ${setKeys} were not null.`);
      }
      return asObject;
    }, "expectUnion");
    strictParseDouble2 = /* @__PURE__ */ __name((value) => {
      if (typeof value == "string") {
        return expectNumber2(parseNumber(value));
      }
      return expectNumber2(value);
    }, "strictParseDouble");
    strictParseFloat2 = strictParseDouble2;
    strictParseFloat322 = /* @__PURE__ */ __name((value) => {
      if (typeof value == "string") {
        return expectFloat322(parseNumber(value));
      }
      return expectFloat322(value);
    }, "strictParseFloat32");
    NUMBER_REGEX = /(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g;
    parseNumber = /* @__PURE__ */ __name((value) => {
      const matches = value.match(NUMBER_REGEX);
      if (matches === null || matches[0].length !== value.length) {
        throw new TypeError(`Expected real number, got implicit NaN`);
      }
      return parseFloat(value);
    }, "parseNumber");
    limitedParseDouble2 = /* @__PURE__ */ __name((value) => {
      if (typeof value == "string") {
        return parseFloatString(value);
      }
      return expectNumber2(value);
    }, "limitedParseDouble");
    handleFloat2 = limitedParseDouble2;
    limitedParseFloat2 = limitedParseDouble2;
    limitedParseFloat322 = /* @__PURE__ */ __name((value) => {
      if (typeof value == "string") {
        return parseFloatString(value);
      }
      return expectFloat322(value);
    }, "limitedParseFloat32");
    parseFloatString = /* @__PURE__ */ __name((value) => {
      switch (value) {
        case "NaN":
          return NaN;
        case "Infinity":
          return Infinity;
        case "-Infinity":
          return -Infinity;
        default:
          throw new Error(`Unable to parse float value: ${value}`);
      }
    }, "parseFloatString");
    strictParseLong2 = /* @__PURE__ */ __name((value) => {
      if (typeof value === "string") {
        return expectLong2(parseNumber(value));
      }
      return expectLong2(value);
    }, "strictParseLong");
    strictParseInt2 = strictParseLong2;
    strictParseInt322 = /* @__PURE__ */ __name((value) => {
      if (typeof value === "string") {
        return expectInt322(parseNumber(value));
      }
      return expectInt322(value);
    }, "strictParseInt32");
    strictParseShort2 = /* @__PURE__ */ __name((value) => {
      if (typeof value === "string") {
        return expectShort2(parseNumber(value));
      }
      return expectShort2(value);
    }, "strictParseShort");
    strictParseByte2 = /* @__PURE__ */ __name((value) => {
      if (typeof value === "string") {
        return expectByte2(parseNumber(value));
      }
      return expectByte2(value);
    }, "strictParseByte");
    stackTraceWarning = /* @__PURE__ */ __name((message2) => {
      return String(new TypeError(message2).stack || message2).split("\n").slice(0, 5).filter((s3) => !s3.includes("stackTraceWarning")).join("\n");
    }, "stackTraceWarning");
    logger2 = {
      warn: console.warn
    };
  }
});

// ../../node_modules/@smithy/core/dist-es/submodules/serde/date-utils.js
function dateToUtcString2(date) {
  const year = date.getUTCFullYear();
  const month = date.getUTCMonth();
  const dayOfWeek = date.getUTCDay();
  const dayOfMonthInt = date.getUTCDate();
  const hoursInt = date.getUTCHours();
  const minutesInt = date.getUTCMinutes();
  const secondsInt = date.getUTCSeconds();
  const dayOfMonthString = dayOfMonthInt < 10 ? `0${dayOfMonthInt}` : `${dayOfMonthInt}`;
  const hoursString = hoursInt < 10 ? `0${hoursInt}` : `${hoursInt}`;
  const minutesString = minutesInt < 10 ? `0${minutesInt}` : `${minutesInt}`;
  const secondsString = secondsInt < 10 ? `0${secondsInt}` : `${secondsInt}`;
  return `${DAYS[dayOfWeek]}, ${dayOfMonthString} ${MONTHS[month]} ${year} ${hoursString}:${minutesString}:${secondsString} GMT`;
}
var DAYS, MONTHS, RFC3339, parseRfc3339DateTime2, RFC3339_WITH_OFFSET, parseRfc3339DateTimeWithOffset2, IMF_FIXDATE, RFC_850_DATE, ASC_TIME, parseRfc7231DateTime2, parseEpochTimestamp2, buildDate, parseTwoDigitYear, FIFTY_YEARS_IN_MILLIS, adjustRfc850Year, parseMonthByShortName, DAYS_IN_MONTH, validateDayOfMonth, isLeapYear, parseDateValue, parseMilliseconds, parseOffsetToMilliseconds, stripLeadingZeroes;
var init_date_utils = __esm({
  "../../node_modules/@smithy/core/dist-es/submodules/serde/date-utils.js"() {
    init_parse_utils();
    DAYS = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
    MONTHS = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
    __name(dateToUtcString2, "dateToUtcString");
    RFC3339 = new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/);
    parseRfc3339DateTime2 = /* @__PURE__ */ __name((value) => {
      if (value === null || value === void 0) {
        return void 0;
      }
      if (typeof value !== "string") {
        throw new TypeError("RFC-3339 date-times must be expressed as strings");
      }
      const match4 = RFC3339.exec(value);
      if (!match4) {
        throw new TypeError("Invalid RFC-3339 date-time value");
      }
      const [_3, yearStr, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds] = match4;
      const year = strictParseShort2(stripLeadingZeroes(yearStr));
      const month = parseDateValue(monthStr, "month", 1, 12);
      const day = parseDateValue(dayStr, "day", 1, 31);
      return buildDate(year, month, day, { hours, minutes, seconds, fractionalMilliseconds });
    }, "parseRfc3339DateTime");
    RFC3339_WITH_OFFSET = new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/);
    parseRfc3339DateTimeWithOffset2 = /* @__PURE__ */ __name((value) => {
      if (value === null || value === void 0) {
        return void 0;
      }
      if (typeof value !== "string") {
        throw new TypeError("RFC-3339 date-times must be expressed as strings");
      }
      const match4 = RFC3339_WITH_OFFSET.exec(value);
      if (!match4) {
        throw new TypeError("Invalid RFC-3339 date-time value");
      }
      const [_3, yearStr, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds, offsetStr] = match4;
      const year = strictParseShort2(stripLeadingZeroes(yearStr));
      const month = parseDateValue(monthStr, "month", 1, 12);
      const day = parseDateValue(dayStr, "day", 1, 31);
      const date = buildDate(year, month, day, { hours, minutes, seconds, fractionalMilliseconds });
      if (offsetStr.toUpperCase() != "Z") {
        date.setTime(date.getTime() - parseOffsetToMilliseconds(offsetStr));
      }
      return date;
    }, "parseRfc3339DateTimeWithOffset");
    IMF_FIXDATE = new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/);
    RFC_850_DATE = new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/);
    ASC_TIME = new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/);
    parseRfc7231DateTime2 = /* @__PURE__ */ __name((value) => {
      if (value === null || value === void 0) {
        return void 0;
      }
      if (typeof value !== "string") {
        throw new TypeError("RFC-7231 date-times must be expressed as strings");
      }
      let match4 = IMF_FIXDATE.exec(value);
      if (match4) {
        const [_3, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match4;
        return buildDate(strictParseShort2(stripLeadingZeroes(yearStr)), parseMonthByShortName(monthStr), parseDateValue(dayStr, "day", 1, 31), { hours, minutes, seconds, fractionalMilliseconds });
      }
      match4 = RFC_850_DATE.exec(value);
      if (match4) {
        const [_3, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match4;
        return adjustRfc850Year(buildDate(parseTwoDigitYear(yearStr), parseMonthByShortName(monthStr), parseDateValue(dayStr, "day", 1, 31), {
          hours,
          minutes,
          seconds,
          fractionalMilliseconds
        }));
      }
      match4 = ASC_TIME.exec(value);
      if (match4) {
        const [_3, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds, yearStr] = match4;
        return buildDate(strictParseShort2(stripLeadingZeroes(yearStr)), parseMonthByShortName(monthStr), parseDateValue(dayStr.trimLeft(), "day", 1, 31), { hours, minutes, seconds, fractionalMilliseconds });
      }
      throw new TypeError("Invalid RFC-7231 date-time value");
    }, "parseRfc7231DateTime");
    parseEpochTimestamp2 = /* @__PURE__ */ __name((value) => {
      if (value === null || value === void 0) {
        return void 0;
      }
      let valueAsDouble;
      if (typeof value === "number") {
        valueAsDouble = value;
      } else if (typeof value === "string") {
        valueAsDouble = strictParseDouble2(value);
      } else if (typeof value === "object" && value.tag === 1) {
        valueAsDouble = value.value;
      } else {
        throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");
      }
      if (Number.isNaN(valueAsDouble) || valueAsDouble === Infinity || valueAsDouble === -Infinity) {
        throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");
      }
      return new Date(Math.round(valueAsDouble * 1e3));
    }, "parseEpochTimestamp");
    buildDate = /* @__PURE__ */ __name((year, month, day, time) => {
      const adjustedMonth = month - 1;
      validateDayOfMonth(year, adjustedMonth, day);
      return new Date(Date.UTC(year, adjustedMonth, day, parseDateValue(time.hours, "hour", 0, 23), parseDateValue(time.minutes, "minute", 0, 59), parseDateValue(time.seconds, "seconds", 0, 60), parseMilliseconds(time.fractionalMilliseconds)));
    }, "buildDate");
    parseTwoDigitYear = /* @__PURE__ */ __name((value) => {
      const thisYear = (/* @__PURE__ */ new Date()).getUTCFullYear();
      const valueInThisCentury = Math.floor(thisYear / 100) * 100 + strictParseShort2(stripLeadingZeroes(value));
      if (valueInThisCentury < thisYear) {
        return valueInThisCentury + 100;
      }
      return valueInThisCentury;
    }, "parseTwoDigitYear");
    FIFTY_YEARS_IN_MILLIS = 50 * 365 * 24 * 60 * 60 * 1e3;
    adjustRfc850Year = /* @__PURE__ */ __name((input) => {
      if (input.getTime() - (/* @__PURE__ */ new Date()).getTime() > FIFTY_YEARS_IN_MILLIS) {
        return new Date(Date.UTC(input.getUTCFullYear() - 100, input.getUTCMonth(), input.getUTCDate(), input.getUTCHours(), input.getUTCMinutes(), input.getUTCSeconds(), input.getUTCMilliseconds()));
      }
      return input;
    }, "adjustRfc850Year");
    parseMonthByShortName = /* @__PURE__ */ __name((value) => {
      const monthIdx = MONTHS.indexOf(value);
      if (monthIdx < 0) {
        throw new TypeError(`Invalid month: ${value}`);
      }
      return monthIdx + 1;
    }, "parseMonthByShortName");
    DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
    validateDayOfMonth = /* @__PURE__ */ __name((year, month, day) => {
      let maxDays = DAYS_IN_MONTH[month];
      if (month === 1 && isLeapYear(year)) {
        maxDays = 29;
      }
      if (day > maxDays) {
        throw new TypeError(`Invalid day for ${MONTHS[month]} in ${year}: ${day}`);
      }
    }, "validateDayOfMonth");
    isLeapYear = /* @__PURE__ */ __name((year) => {
      return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
    }, "isLeapYear");
    parseDateValue = /* @__PURE__ */ __name((value, type, lower, upper) => {
      const dateVal = strictParseByte2(stripLeadingZeroes(value));
      if (dateVal < lower || dateVal > upper) {
        throw new TypeError(`${type} must be between ${lower} and ${upper}, inclusive`);
      }
      return dateVal;
    }, "parseDateValue");
    parseMilliseconds = /* @__PURE__ */ __name((value) => {
      if (value === null || value === void 0) {
        return 0;
      }
      return strictParseFloat322("0." + value) * 1e3;
    }, "parseMilliseconds");
    parseOffsetToMilliseconds = /* @__PURE__ */ __name((value) => {
      const directionStr = value[0];
      let direction = 1;
      if (directionStr == "+") {
        direction = 1;
      } else if (directionStr == "-") {
        direction = -1;
      } else {
        throw new TypeError(`Offset direction, ${directionStr}, must be "+" or "-"`);
      }
      const hour = Number(value.substring(1, 3));
      const minute = Number(value.substring(4, 6));
      return direction * (hour * 60 + minute) * 60 * 1e3;
    }, "parseOffsetToMilliseconds");
    stripLeadingZeroes = /* @__PURE__ */ __name((value) => {
      let idx = 0;
      while (idx < value.length - 1 && value.charAt(idx) === "0") {
        idx++;
      }
      if (idx === 0) {
        return value;
      }
      return value.slice(idx);
    }, "stripLeadingZeroes");
  }
});

// ../../node_modules/uuid/dist/esm-node/rng.js
function rng() {
  if (poolPtr > rnds8Pool.length - 16) {
    import_crypto.default.randomFillSync(rnds8Pool);
    poolPtr = 0;
  }
  return rnds8Pool.slice(poolPtr, poolPtr += 16);
}
var import_crypto, rnds8Pool, poolPtr;
var init_rng = __esm({
  "../../node_modules/uuid/dist/esm-node/rng.js"() {
    import_crypto = __toESM(require("crypto"));
    rnds8Pool = new Uint8Array(256);
    poolPtr = rnds8Pool.length;
    __name(rng, "rng");
  }
});

// ../../node_modules/uuid/dist/esm-node/regex.js
var regex_default;
var init_regex = __esm({
  "../../node_modules/uuid/dist/esm-node/regex.js"() {
    regex_default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
  }
});

// ../../node_modules/uuid/dist/esm-node/validate.js
function validate(uuid) {
  return typeof uuid === "string" && regex_default.test(uuid);
}
var validate_default;
var init_validate = __esm({
  "../../node_modules/uuid/dist/esm-node/validate.js"() {
    init_regex();
    __name(validate, "validate");
    validate_default = validate;
  }
});

// ../../node_modules/uuid/dist/esm-node/stringify.js
function unsafeStringify(arr, offset = 0) {
  return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
}
function stringify(arr, offset = 0) {
  const uuid = unsafeStringify(arr, offset);
  if (!validate_default(uuid)) {
    throw TypeError("Stringified UUID is invalid");
  }
  return uuid;
}
var byteToHex, stringify_default;
var init_stringify = __esm({
  "../../node_modules/uuid/dist/esm-node/stringify.js"() {
    init_validate();
    byteToHex = [];
    for (let i3 = 0; i3 < 256; ++i3) {
      byteToHex.push((i3 + 256).toString(16).slice(1));
    }
    __name(unsafeStringify, "unsafeStringify");
    __name(stringify, "stringify");
    stringify_default = stringify;
  }
});

// ../../node_modules/uuid/dist/esm-node/v1.js
function v1(options, buf, offset) {
  let i3 = buf && offset || 0;
  const b3 = buf || new Array(16);
  options = options || {};
  let node = options.node || _nodeId;
  let clockseq = options.clockseq !== void 0 ? options.clockseq : _clockseq;
  if (node == null || clockseq == null) {
    const seedBytes = options.random || (options.rng || rng)();
    if (node == null) {
      node = _nodeId = [seedBytes[0] | 1, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]];
    }
    if (clockseq == null) {
      clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 16383;
    }
  }
  let msecs = options.msecs !== void 0 ? options.msecs : Date.now();
  let nsecs = options.nsecs !== void 0 ? options.nsecs : _lastNSecs + 1;
  const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 1e4;
  if (dt < 0 && options.clockseq === void 0) {
    clockseq = clockseq + 1 & 16383;
  }
  if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === void 0) {
    nsecs = 0;
  }
  if (nsecs >= 1e4) {
    throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");
  }
  _lastMSecs = msecs;
  _lastNSecs = nsecs;
  _clockseq = clockseq;
  msecs += 122192928e5;
  const tl = ((msecs & 268435455) * 1e4 + nsecs) % 4294967296;
  b3[i3++] = tl >>> 24 & 255;
  b3[i3++] = tl >>> 16 & 255;
  b3[i3++] = tl >>> 8 & 255;
  b3[i3++] = tl & 255;
  const tmh = msecs / 4294967296 * 1e4 & 268435455;
  b3[i3++] = tmh >>> 8 & 255;
  b3[i3++] = tmh & 255;
  b3[i3++] = tmh >>> 24 & 15 | 16;
  b3[i3++] = tmh >>> 16 & 255;
  b3[i3++] = clockseq >>> 8 | 128;
  b3[i3++] = clockseq & 255;
  for (let n3 = 0; n3 < 6; ++n3) {
    b3[i3 + n3] = node[n3];
  }
  return buf || unsafeStringify(b3);
}
var _nodeId, _clockseq, _lastMSecs, _lastNSecs, v1_default;
var init_v1 = __esm({
  "../../node_modules/uuid/dist/esm-node/v1.js"() {
    init_rng();
    init_stringify();
    _lastMSecs = 0;
    _lastNSecs = 0;
    __name(v1, "v1");
    v1_default = v1;
  }
});

// ../../node_modules/uuid/dist/esm-node/parse.js
function parse(uuid) {
  if (!validate_default(uuid)) {
    throw TypeError("Invalid UUID");
  }
  let v6;
  const arr = new Uint8Array(16);
  arr[0] = (v6 = parseInt(uuid.slice(0, 8), 16)) >>> 24;
  arr[1] = v6 >>> 16 & 255;
  arr[2] = v6 >>> 8 & 255;
  arr[3] = v6 & 255;
  arr[4] = (v6 = parseInt(uuid.slice(9, 13), 16)) >>> 8;
  arr[5] = v6 & 255;
  arr[6] = (v6 = parseInt(uuid.slice(14, 18), 16)) >>> 8;
  arr[7] = v6 & 255;
  arr[8] = (v6 = parseInt(uuid.slice(19, 23), 16)) >>> 8;
  arr[9] = v6 & 255;
  arr[10] = (v6 = parseInt(uuid.slice(24, 36), 16)) / 1099511627776 & 255;
  arr[11] = v6 / 4294967296 & 255;
  arr[12] = v6 >>> 24 & 255;
  arr[13] = v6 >>> 16 & 255;
  arr[14] = v6 >>> 8 & 255;
  arr[15] = v6 & 255;
  return arr;
}
var parse_default;
var init_parse = __esm({
  "../../node_modules/uuid/dist/esm-node/parse.js"() {
    init_validate();
    __name(parse, "parse");
    parse_default = parse;
  }
});

// ../../node_modules/uuid/dist/esm-node/v35.js
function stringToBytes(str) {
  str = unescape(encodeURIComponent(str));
  const bytes = [];
  for (let i3 = 0; i3 < str.length; ++i3) {
    bytes.push(str.charCodeAt(i3));
  }
  return bytes;
}
function v35(name, version2, hashfunc) {
  function generateUUID(value, namespace, buf, offset) {
    var _namespace;
    if (typeof value === "string") {
      value = stringToBytes(value);
    }
    if (typeof namespace === "string") {
      namespace = parse_default(namespace);
    }
    if (((_namespace = namespace) === null || _namespace === void 0 ? void 0 : _namespace.length) !== 16) {
      throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");
    }
    let bytes = new Uint8Array(16 + value.length);
    bytes.set(namespace);
    bytes.set(value, namespace.length);
    bytes = hashfunc(bytes);
    bytes[6] = bytes[6] & 15 | version2;
    bytes[8] = bytes[8] & 63 | 128;
    if (buf) {
      offset = offset || 0;
      for (let i3 = 0; i3 < 16; ++i3) {
        buf[offset + i3] = bytes[i3];
      }
      return buf;
    }
    return unsafeStringify(bytes);
  }
  __name(generateUUID, "generateUUID");
  try {
    generateUUID.name = name;
  } catch (err) {
  }
  generateUUID.DNS = DNS;
  generateUUID.URL = URL2;
  return generateUUID;
}
var DNS, URL2;
var init_v35 = __esm({
  "../../node_modules/uuid/dist/esm-node/v35.js"() {
    init_stringify();
    init_parse();
    __name(stringToBytes, "stringToBytes");
    DNS = "6ba7b810-9dad-11d1-80b4-00c04fd430c8";
    URL2 = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
    __name(v35, "v35");
  }
});

// ../../node_modules/uuid/dist/esm-node/md5.js
function md5(bytes) {
  if (Array.isArray(bytes)) {
    bytes = Buffer.from(bytes);
  } else if (typeof bytes === "string") {
    bytes = Buffer.from(bytes, "utf8");
  }
  return import_crypto2.default.createHash("md5").update(bytes).digest();
}
var import_crypto2, md5_default;
var init_md5 = __esm({
  "../../node_modules/uuid/dist/esm-node/md5.js"() {
    import_crypto2 = __toESM(require("crypto"));
    __name(md5, "md5");
    md5_default = md5;
  }
});

// ../../node_modules/uuid/dist/esm-node/v3.js
var v3, v3_default;
var init_v3 = __esm({
  "../../node_modules/uuid/dist/esm-node/v3.js"() {
    init_v35();
    init_md5();
    v3 = v35("v3", 48, md5_default);
    v3_default = v3;
  }
});

// ../../node_modules/uuid/dist/esm-node/native.js
var import_crypto3, native_default;
var init_native = __esm({
  "../../node_modules/uuid/dist/esm-node/native.js"() {
    import_crypto3 = __toESM(require("crypto"));
    native_default = {
      randomUUID: import_crypto3.default.randomUUID
    };
  }
});

// ../../node_modules/uuid/dist/esm-node/v4.js
function v4(options, buf, offset) {
  if (native_default.randomUUID && !buf && !options) {
    return native_default.randomUUID();
  }
  options = options || {};
  const rnds = options.random || (options.rng || rng)();
  rnds[6] = rnds[6] & 15 | 64;
  rnds[8] = rnds[8] & 63 | 128;
  if (buf) {
    offset = offset || 0;
    for (let i3 = 0; i3 < 16; ++i3) {
      buf[offset + i3] = rnds[i3];
    }
    return buf;
  }
  return unsafeStringify(rnds);
}
var v4_default;
var init_v4 = __esm({
  "../../node_modules/uuid/dist/esm-node/v4.js"() {
    init_native();
    init_rng();
    init_stringify();
    __name(v4, "v4");
    v4_default = v4;
  }
});

// ../../node_modules/uuid/dist/esm-node/sha1.js
function sha1(bytes) {
  if (Array.isArray(bytes)) {
    bytes = Buffer.from(bytes);
  } else if (typeof bytes === "string") {
    bytes = Buffer.from(bytes, "utf8");
  }
  return import_crypto4.default.createHash("sha1").update(bytes).digest();
}
var import_crypto4, sha1_default;
var init_sha1 = __esm({
  "../../node_modules/uuid/dist/esm-node/sha1.js"() {
    import_crypto4 = __toESM(require("crypto"));
    __name(sha1, "sha1");
    sha1_default = sha1;
  }
});

// ../../node_modules/uuid/dist/esm-node/v5.js
var v5, v5_default;
var init_v5 = __esm({
  "../../node_modules/uuid/dist/esm-node/v5.js"() {
    init_v35();
    init_sha1();
    v5 = v35("v5", 80, sha1_default);
    v5_default = v5;
  }
});

// ../../node_modules/uuid/dist/esm-node/nil.js
var nil_default;
var init_nil = __esm({
  "../../node_modules/uuid/dist/esm-node/nil.js"() {
    nil_default = "00000000-0000-0000-0000-000000000000";
  }
});

// ../../node_modules/uuid/dist/esm-node/version.js
function version(uuid) {
  if (!validate_default(uuid)) {
    throw TypeError("Invalid UUID");
  }
  return parseInt(uuid.slice(14, 15), 16);
}
var version_default;
var init_version = __esm({
  "../../node_modules/uuid/dist/esm-node/version.js"() {
    init_validate();
    __name(version, "version");
    version_default = version;
  }
});

// ../../node_modules/uuid/dist/esm-node/index.js
var esm_node_exports = {};
__export(esm_node_exports, {
  NIL: () => nil_default,
  parse: () => parse_default,
  stringify: () => stringify_default,
  v1: () => v1_default,
  v3: () => v3_default,
  v4: () => v4_default,
  v5: () => v5_default,
  validate: () => validate_default,
  version: () => version_default
});
var init_esm_node = __esm({
  "../../node_modules/uuid/dist/esm-node/index.js"() {
    init_v1();
    init_v3();
    init_v4();
    init_v5();
    init_nil();
    init_version();
    init_validate();
    init_stringify();
    init_parse();
  }
});

// ../../node_modules/@smithy/core/dist-es/submodules/serde/generateIdempotencyToken.js
var init_generateIdempotencyToken = __esm({
  "../../node_modules/@smithy/core/dist-es/submodules/serde/generateIdempotencyToken.js"() {
    init_esm_node();
  }
});

// ../../node_modules/@smithy/core/dist-es/submodules/serde/lazy-json.js
var LazyJsonString2;
var init_lazy_json = __esm({
  "../../node_modules/@smithy/core/dist-es/submodules/serde/lazy-json.js"() {
    LazyJsonString2 = /* @__PURE__ */ __name(function LazyJsonString3(val) {
      const str = Object.assign(new String(val), {
        deserializeJSON() {
          return JSON.parse(String(val));
        },
        toString() {
          return String(val);
        },
        toJSON() {
          return String(val);
        }
      });
      return str;
    }, "LazyJsonString");
    LazyJsonString2.from = (object) => {
      if (object && typeof object === "object" && (object instanceof LazyJsonString2 || "deserializeJSON" in object)) {
        return object;
      } else if (typeof object === "string" || Object.getPrototypeOf(object) === String.prototype) {
        return LazyJsonString2(String(object));
      }
      return LazyJsonString2(JSON.stringify(object));
    };
    LazyJsonString2.fromObject = LazyJsonString2.from;
  }
});

// ../../node_modules/@smithy/core/dist-es/submodules/serde/quote-header.js
function quoteHeader2(part) {
  if (part.includes(",") || part.includes('"')) {
    part = `"${part.replace(/"/g, '\\"')}"`;
  }
  return part;
}
var init_quote_header = __esm({
  "../../node_modules/@smithy/core/dist-es/submodules/serde/quote-header.js"() {
    __name(quoteHeader2, "quoteHeader");
  }
});

// ../../node_modules/@smithy/core/dist-es/submodules/serde/split-every.js
function splitEvery2(value, delimiter2, numDelimiters) {
  if (numDelimiters <= 0 || !Number.isInteger(numDelimiters)) {
    throw new Error("Invalid number of delimiters (" + numDelimiters + ") for splitEvery.");
  }
  const segments = value.split(delimiter2);
  if (numDelimiters === 1) {
    return segments;
  }
  const compoundSegments = [];
  let currentSegment = "";
  for (let i3 = 0; i3 < segments.length; i3++) {
    if (currentSegment === "") {
      currentSegment = segments[i3];
    } else {
      currentSegment += delimiter2 + segments[i3];
    }
    if ((i3 + 1) % numDelimiters === 0) {
      compoundSegments.push(currentSegment);
      currentSegment = "";
    }
  }
  if (currentSegment !== "") {
    compoundSegments.push(currentSegment);
  }
  return compoundSegments;
}
var init_split_every = __esm({
  "../../node_modules/@smithy/core/dist-es/submodules/serde/split-every.js"() {
    __name(splitEvery2, "splitEvery");
  }
});

// ../../node_modules/@smithy/core/dist-es/submodules/serde/split-header.js
var splitHeader2;
var init_split_header = __esm({
  "../../node_modules/@smithy/core/dist-es/submodules/serde/split-header.js"() {
    splitHeader2 = /* @__PURE__ */ __name((value) => {
      const z2 = value.length;
      const values = [];
      let withinQuotes = false;
      let prevChar = void 0;
      let anchor = 0;
      for (let i3 = 0; i3 < z2; ++i3) {
        const char = value[i3];
        switch (char) {
          case `"`:
            if (prevChar !== "\\") {
              withinQuotes = !withinQuotes;
            }
            break;
          case ",":
            if (!withinQuotes) {
              values.push(value.slice(anchor, i3));
              anchor = i3 + 1;
            }
            break;
          default:
        }
        prevChar = char;
      }
      values.push(value.slice(anchor));
      return values.map((v6) => {
        v6 = v6.trim();
        const z3 = v6.length;
        if (z3 < 2) {
          return v6;
        }
        if (v6[0] === `"` && v6[z3 - 1] === `"`) {
          v6 = v6.slice(1, z3 - 1);
        }
        return v6.replace(/\\"/g, '"');
      });
    }, "splitHeader");
  }
});

// ../../node_modules/@smithy/core/dist-es/submodules/serde/value/NumericValue.js
function nv2(input) {
  return new NumericValue2(String(input), "bigDecimal");
}
var NumericValue2;
var init_NumericValue = __esm({
  "../../node_modules/@smithy/core/dist-es/submodules/serde/value/NumericValue.js"() {
    NumericValue2 = class _NumericValue {
      static {
        __name(this, "NumericValue");
      }
      constructor(string, type) {
        this.string = string;
        this.type = type;
        let dot = 0;
        for (let i3 = 0; i3 < string.length; ++i3) {
          const char = string.charCodeAt(i3);
          if (i3 === 0 && char === 45) {
            continue;
          }
          if (char === 46) {
            if (dot) {
              throw new Error("@smithy/core/serde - NumericValue must contain at most one decimal point.");
            }
            dot = 1;
            continue;
          }
          if (char < 48 || char > 57) {
            throw new Error(`@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".`);
          }
        }
      }
      toString() {
        return this.string;
      }
      static [Symbol.hasInstance](object) {
        if (!object || typeof object !== "object") {
          return false;
        }
        const _nv = object;
        const prototypeMatch = _NumericValue.prototype.isPrototypeOf(object.constructor?.prototype);
        if (prototypeMatch) {
          return prototypeMatch;
        }
        if (typeof _nv.string === "string" && typeof _nv.type === "string" && _nv.constructor?.name === "NumericValue") {
          return true;
        }
        return prototypeMatch;
      }
    };
    __name(nv2, "nv");
  }
});

// ../../node_modules/@smithy/core/dist-es/submodules/serde/index.js
var serde_exports = {};
__export(serde_exports, {
  LazyJsonString: () => LazyJsonString2,
  NumericValue: () => NumericValue2,
  copyDocumentWithTransform: () => copyDocumentWithTransform2,
  dateToUtcString: () => dateToUtcString2,
  expectBoolean: () => expectBoolean2,
  expectByte: () => expectByte2,
  expectFloat32: () => expectFloat322,
  expectInt: () => expectInt2,
  expectInt32: () => expectInt322,
  expectLong: () => expectLong2,
  expectNonNull: () => expectNonNull2,
  expectNumber: () => expectNumber2,
  expectObject: () => expectObject2,
  expectShort: () => expectShort2,
  expectString: () => expectString2,
  expectUnion: () => expectUnion2,
  generateIdempotencyToken: () => v4_default,
  handleFloat: () => handleFloat2,
  limitedParseDouble: () => limitedParseDouble2,
  limitedParseFloat: () => limitedParseFloat2,
  limitedParseFloat32: () => limitedParseFloat322,
  logger: () => logger2,
  nv: () => nv2,
  parseBoolean: () => parseBoolean2,
  parseEpochTimestamp: () => parseEpochTimestamp2,
  parseRfc3339DateTime: () => parseRfc3339DateTime2,
  parseRfc3339DateTimeWithOffset: () => parseRfc3339DateTimeWithOffset2,
  parseRfc7231DateTime: () => parseRfc7231DateTime2,
  quoteHeader: () => quoteHeader2,
  splitEvery: () => splitEvery2,
  splitHeader: () => splitHeader2,
  strictParseByte: () => strictParseByte2,
  strictParseDouble: () => strictParseDouble2,
  strictParseFloat: () => strictParseFloat2,
  strictParseFloat32: () => strictParseFloat322,
  strictParseInt: () => strictParseInt2,
  strictParseInt32: () => strictParseInt322,
  strictParseLong: () => strictParseLong2,
  strictParseShort: () => strictParseShort2
});
var init_serde = __esm({
  "../../node_modules/@smithy/core/dist-es/submodules/serde/index.js"() {
    init_copyDocumentWithTransform();
    init_date_utils();
    init_generateIdempotencyToken();
    init_lazy_json();
    init_parse_utils();
    init_quote_header();
    init_split_every();
    init_split_header();
    init_NumericValue();
  }
});

// ../../node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js
var import_util_utf8, EventStreamSerde;
var init_EventStreamSerde = __esm({
  "../../node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js"() {
    init_schema4();
    import_util_utf8 = __toESM(require_dist_cjs10());
    EventStreamSerde = class {
      static {
        __name(this, "EventStreamSerde");
      }
      constructor({ marshaller, serializer, deserializer, serdeContext, defaultContentType }) {
        this.marshaller = marshaller;
        this.serializer = serializer;
        this.deserializer = deserializer;
        this.serdeContext = serdeContext;
        this.defaultContentType = defaultContentType;
      }
      async serializeEventStream({ eventStream, requestSchema, initialRequest }) {
        const marshaller = this.marshaller;
        const eventStreamMember = requestSchema.getEventStreamMember();
        const unionSchema = requestSchema.getMemberSchema(eventStreamMember);
        const memberSchemas = unionSchema.getMemberSchemas();
        const serializer = this.serializer;
        const defaultContentType = this.defaultContentType;
        const initialRequestMarker = Symbol("initialRequestMarker");
        const eventStreamIterable = {
          async *[Symbol.asyncIterator]() {
            if (initialRequest) {
              const headers = {
                ":event-type": { type: "string", value: "initial-request" },
                ":message-type": { type: "string", value: "event" },
                ":content-type": { type: "string", value: defaultContentType }
              };
              serializer.write(requestSchema, initialRequest);
              const body = serializer.flush();
              yield {
                [initialRequestMarker]: true,
                headers,
                body
              };
            }
            for await (const page of eventStream) {
              yield page;
            }
          }
        };
        return marshaller.serialize(eventStreamIterable, (event) => {
          if (event[initialRequestMarker]) {
            return {
              headers: event.headers,
              body: event.body
            };
          }
          const unionMember = Object.keys(event).find((key) => {
            return key !== "__type";
          }) ?? "";
          const { additionalHeaders, body, eventType, explicitPayloadContentType } = this.writeEventBody(unionMember, unionSchema, event);
          const headers = {
            ":event-type": { type: "string", value: eventType },
            ":message-type": { type: "string", value: "event" },
            ":content-type": { type: "string", value: explicitPayloadContentType ?? defaultContentType },
            ...additionalHeaders
          };
          return {
            headers,
            body
          };
        });
      }
      async deserializeEventStream({ response, responseSchema, initialResponseContainer }) {
        const marshaller = this.marshaller;
        const eventStreamMember = responseSchema.getEventStreamMember();
        const unionSchema = responseSchema.getMemberSchema(eventStreamMember);
        const memberSchemas = unionSchema.getMemberSchemas();
        const initialResponseMarker = Symbol("initialResponseMarker");
        const asyncIterable = marshaller.deserialize(response.body, async (event) => {
          const unionMember = Object.keys(event).find((key) => {
            return key !== "__type";
          }) ?? "";
          if (unionMember === "initial-response") {
            const dataObject = await this.deserializer.read(responseSchema, event[unionMember].body);
            delete dataObject[eventStreamMember];
            return {
              [initialResponseMarker]: true,
              ...dataObject
            };
          } else if (unionMember in memberSchemas) {
            const eventStreamSchema = memberSchemas[unionMember];
            return {
              [unionMember]: await this.deserializer.read(eventStreamSchema, event[unionMember].body)
            };
          } else {
            return {
              $unknown: event
            };
          }
        });
        const asyncIterator = asyncIterable[Symbol.asyncIterator]();
        const firstEvent = await asyncIterator.next();
        if (firstEvent.done) {
          return asyncIterable;
        }
        if (firstEvent.value?.[initialResponseMarker]) {
          if (!responseSchema) {
            throw new Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.");
          }
          for (const [key, value] of Object.entries(firstEvent.value)) {
            initialResponseContainer[key] = value;
          }
        }
        return {
          async *[Symbol.asyncIterator]() {
            if (!firstEvent?.value?.[initialResponseMarker]) {
              yield firstEvent.value;
            }
            while (true) {
              const { done, value } = await asyncIterator.next();
              if (done) {
                break;
              }
              yield value;
            }
          }
        };
      }
      writeEventBody(unionMember, unionSchema, event) {
        const serializer = this.serializer;
        let eventType = unionMember;
        let explicitPayloadMember = null;
        let explicitPayloadContentType;
        const isKnownSchema = unionSchema.hasMemberSchema(unionMember);
        const additionalHeaders = {};
        if (!isKnownSchema) {
          const [type, value] = event[unionMember];
          eventType = type;
          serializer.write(SCHEMA.DOCUMENT, value);
        } else {
          const eventSchema = unionSchema.getMemberSchema(unionMember);
          if (eventSchema.isStructSchema()) {
            for (const [memberName, memberSchema] of eventSchema.structIterator()) {
              const { eventHeader, eventPayload } = memberSchema.getMergedTraits();
              if (eventPayload) {
                explicitPayloadMember = memberName;
                break;
              } else if (eventHeader) {
                const value = event[unionMember][memberName];
                let type = "binary";
                if (memberSchema.isNumericSchema()) {
                  if ((-2) ** 31 <= value && value <= 2 ** 31 - 1) {
                    type = "integer";
                  } else {
                    type = "long";
                  }
                } else if (memberSchema.isTimestampSchema()) {
                  type = "timestamp";
                } else if (memberSchema.isStringSchema()) {
                  type = "string";
                } else if (memberSchema.isBooleanSchema()) {
                  type = "boolean";
                }
                if (value != null) {
                  additionalHeaders[memberName] = {
                    type,
                    value
                  };
                  delete event[unionMember][memberName];
                }
              }
            }
            if (explicitPayloadMember !== null) {
              const payloadSchema = eventSchema.getMemberSchema(explicitPayloadMember);
              if (payloadSchema.isBlobSchema()) {
                explicitPayloadContentType = "application/octet-stream";
              } else if (payloadSchema.isStringSchema()) {
                explicitPayloadContentType = "text/plain";
              }
              serializer.write(payloadSchema, event[unionMember][explicitPayloadMember]);
            } else {
              serializer.write(eventSchema, event[unionMember]);
            }
          } else {
            throw new Error("@smithy/core/event-streams - non-struct member not supported in event stream union.");
          }
        }
        const messageSerialization = serializer.flush();
        const body = typeof messageSerialization === "string" ? (this.serdeContext?.utf8Decoder ?? import_util_utf8.fromUtf8)(messageSerialization) : messageSerialization;
        return {
          body,
          eventType,
          explicitPayloadContentType,
          additionalHeaders
        };
      }
    };
  }
});

// ../../node_modules/@smithy/core/dist-es/submodules/event-streams/index.js
var event_streams_exports = {};
__export(event_streams_exports, {
  EventStreamSerde: () => EventStreamSerde
});
var init_event_streams = __esm({
  "../../node_modules/@smithy/core/dist-es/submodules/event-streams/index.js"() {
    init_EventStreamSerde();
  }
});

// ../../node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js
var import_protocol_http3, HttpProtocol;
var init_HttpProtocol = __esm({
  "../../node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js"() {
    init_schema4();
    import_protocol_http3 = __toESM(require_dist_cjs2());
    HttpProtocol = class {
      static {
        __name(this, "HttpProtocol");
      }
      constructor(options) {
        this.options = options;
      }
      getRequestType() {
        return import_protocol_http3.HttpRequest;
      }
      getResponseType() {
        return import_protocol_http3.HttpResponse;
      }
      setSerdeContext(serdeContext) {
        this.serdeContext = serdeContext;
        this.serializer.setSerdeContext(serdeContext);
        this.deserializer.setSerdeContext(serdeContext);
        if (this.getPayloadCodec()) {
          this.getPayloadCodec().setSerdeContext(serdeContext);
        }
      }
      updateServiceEndpoint(request2, endpoint) {
        if ("url" in endpoint) {
          request2.protocol = endpoint.url.protocol;
          request2.hostname = endpoint.url.hostname;
          request2.port = endpoint.url.port ? Number(endpoint.url.port) : void 0;
          request2.path = endpoint.url.pathname;
          request2.fragment = endpoint.url.hash || void 0;
          request2.username = endpoint.url.username || void 0;
          request2.password = endpoint.url.password || void 0;
          for (const [k3, v6] of endpoint.url.searchParams.entries()) {
            if (!request2.query) {
              request2.query = {};
            }
            request2.query[k3] = v6;
          }
          return request2;
        } else {
          request2.protocol = endpoint.protocol;
          request2.hostname = endpoint.hostname;
          request2.port = endpoint.port ? Number(endpoint.port) : void 0;
          request2.path = endpoint.path;
          request2.query = {
            ...endpoint.query
          };
          return request2;
        }
      }
      setHostPrefix(request2, operationSchema, input) {
        const operationNs = NormalizedSchema.of(operationSchema);
        const inputNs = NormalizedSchema.of(operationSchema.input);
        if (operationNs.getMergedTraits().endpoint) {
          let hostPrefix = operationNs.getMergedTraits().endpoint?.[0];
          if (typeof hostPrefix === "string") {
            const hostLabelInputs = [...inputNs.structIterator()].filter(([, member]) => member.getMergedTraits().hostLabel);
            for (const [name] of hostLabelInputs) {
              const replacement = input[name];
              if (typeof replacement !== "string") {
                throw new Error(`@smithy/core/schema - ${name} in input must be a string as hostLabel.`);
              }
              hostPrefix = hostPrefix.replace(`{${name}}`, replacement);
            }
            request2.hostname = hostPrefix + request2.hostname;
          }
        }
      }
      deserializeMetadata(output) {
        return {
          httpStatusCode: output.statusCode,
          requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
          extendedRequestId: output.headers["x-amz-id-2"],
          cfId: output.headers["x-amz-cf-id"]
        };
      }
      async serializeEventStream({ eventStream, requestSchema, initialRequest }) {
        const eventStreamSerde = await this.loadEventStreamCapability();
        return eventStreamSerde.serializeEventStream({
          eventStream,
          requestSchema,
          initialRequest
        });
      }
      async deserializeEventStream({ response, responseSchema, initialResponseContainer }) {
        const eventStreamSerde = await this.loadEventStreamCapability();
        return eventStreamSerde.deserializeEventStream({
          response,
          responseSchema,
          initialResponseContainer
        });
      }
      async loadEventStreamCapability() {
        const { EventStreamSerde: EventStreamSerde2 } = await Promise.resolve().then(() => (init_event_streams(), event_streams_exports));
        return new EventStreamSerde2({
          marshaller: this.getEventStreamMarshaller(),
          serializer: this.serializer,
          deserializer: this.deserializer,
          serdeContext: this.serdeContext,
          defaultContentType: this.getDefaultContentType()
        });
      }
      getDefaultContentType() {
        throw new Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`);
      }
      async deserializeHttpMessage(schema, context, response, arg4, arg5) {
        void schema;
        void context;
        void response;
        void arg4;
        void arg5;
        return [];
      }
      getEventStreamMarshaller() {
        const context = this.serdeContext;
        if (!context.eventStreamMarshaller) {
          throw new Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.");
        }
        return context.eventStreamMarshaller;
      }
    };
  }
});

// ../../node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js
var import_protocol_http4, import_util_stream2, HttpBindingProtocol;
var init_HttpBindingProtocol = __esm({
  "../../node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js"() {
    init_schema4();
    init_serde();
    import_protocol_http4 = __toESM(require_dist_cjs2());
    import_util_stream2 = __toESM(require_dist_cjs17());
    init_collect_stream_body();
    init_extended_encode_uri_component();
    init_HttpProtocol();
    HttpBindingProtocol = class extends HttpProtocol {
      static {
        __name(this, "HttpBindingProtocol");
      }
      async serializeRequest(operationSchema, _input, context) {
        const input = {
          ..._input ?? {}
        };
        const serializer = this.serializer;
        const query = {};
        const headers = {};
        const endpoint = await context.endpoint();
        const ns = NormalizedSchema.of(operationSchema?.input);
        const schema = ns.getSchema();
        let hasNonHttpBindingMember = false;
        let payload2;
        const request2 = new import_protocol_http4.HttpRequest({
          protocol: "",
          hostname: "",
          port: void 0,
          path: "",
          fragment: void 0,
          query,
          headers,
          body: void 0
        });
        if (endpoint) {
          this.updateServiceEndpoint(request2, endpoint);
          this.setHostPrefix(request2, operationSchema, input);
          const opTraits = NormalizedSchema.translateTraits(operationSchema.traits);
          if (opTraits.http) {
            request2.method = opTraits.http[0];
            const [path38, search] = opTraits.http[1].split("?");
            if (request2.path == "/") {
              request2.path = path38;
            } else {
              request2.path += path38;
            }
            const traitSearchParams = new URLSearchParams(search ?? "");
            Object.assign(query, Object.fromEntries(traitSearchParams));
          }
        }
        for (const [memberName, memberNs] of ns.structIterator()) {
          const memberTraits = memberNs.getMergedTraits() ?? {};
          const inputMemberValue = input[memberName];
          if (inputMemberValue == null) {
            continue;
          }
          if (memberTraits.httpPayload) {
            const isStreaming = memberNs.isStreaming();
            if (isStreaming) {
              const isEventStream = memberNs.isStructSchema();
              if (isEventStream) {
                if (input[memberName]) {
                  payload2 = await this.serializeEventStream({
                    eventStream: input[memberName],
                    requestSchema: ns
                  });
                }
              } else {
                payload2 = inputMemberValue;
              }
            } else {
              serializer.write(memberNs, inputMemberValue);
              payload2 = serializer.flush();
            }
            delete input[memberName];
          } else if (memberTraits.httpLabel) {
            serializer.write(memberNs, inputMemberValue);
            const replacement = serializer.flush();
            if (request2.path.includes(`{${memberName}+}`)) {
              request2.path = request2.path.replace(`{${memberName}+}`, replacement.split("/").map(extendedEncodeURIComponent2).join("/"));
            } else if (request2.path.includes(`{${memberName}}`)) {
              request2.path = request2.path.replace(`{${memberName}}`, extendedEncodeURIComponent2(replacement));
            }
            delete input[memberName];
          } else if (memberTraits.httpHeader) {
            serializer.write(memberNs, inputMemberValue);
            headers[memberTraits.httpHeader.toLowerCase()] = String(serializer.flush());
            delete input[memberName];
          } else if (typeof memberTraits.httpPrefixHeaders === "string") {
            for (const [key, val] of Object.entries(inputMemberValue)) {
              const amalgam = memberTraits.httpPrefixHeaders + key;
              serializer.write([memberNs.getValueSchema(), { httpHeader: amalgam }], val);
              headers[amalgam.toLowerCase()] = serializer.flush();
            }
            delete input[memberName];
          } else if (memberTraits.httpQuery || memberTraits.httpQueryParams) {
            this.serializeQuery(memberNs, inputMemberValue, query);
            delete input[memberName];
          } else {
            hasNonHttpBindingMember = true;
          }
        }
        if (hasNonHttpBindingMember && input) {
          serializer.write(schema, input);
          payload2 = serializer.flush();
        }
        request2.headers = headers;
        request2.query = query;
        request2.body = payload2;
        return request2;
      }
      serializeQuery(ns, data3, query) {
        const serializer = this.serializer;
        const traits = ns.getMergedTraits();
        if (traits.httpQueryParams) {
          for (const [key, val] of Object.entries(data3)) {
            if (!(key in query)) {
              this.serializeQuery(NormalizedSchema.of([
                ns.getValueSchema(),
                {
                  ...traits,
                  httpQuery: key,
                  httpQueryParams: void 0
                }
              ]), val, query);
            }
          }
          return;
        }
        if (ns.isListSchema()) {
          const sparse = !!ns.getMergedTraits().sparse;
          const buffer = [];
          for (const item of data3) {
            serializer.write([ns.getValueSchema(), traits], item);
            const serializable = serializer.flush();
            if (sparse || serializable !== void 0) {
              buffer.push(serializable);
            }
          }
          query[traits.httpQuery] = buffer;
        } else {
          serializer.write([ns, traits], data3);
          query[traits.httpQuery] = serializer.flush();
        }
      }
      async deserializeResponse(operationSchema, context, response) {
        const deserializer = this.deserializer;
        const ns = NormalizedSchema.of(operationSchema.output);
        const dataObject = {};
        if (response.statusCode >= 300) {
          const bytes = await collectBody2(response.body, context);
          if (bytes.byteLength > 0) {
            Object.assign(dataObject, await deserializer.read(SCHEMA.DOCUMENT, bytes));
          }
          await this.handleError(operationSchema, context, response, dataObject, this.deserializeMetadata(response));
          throw new Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.");
        }
        for (const header in response.headers) {
          const value = response.headers[header];
          delete response.headers[header];
          response.headers[header.toLowerCase()] = value;
        }
        const nonHttpBindingMembers = await this.deserializeHttpMessage(ns, context, response, dataObject);
        if (nonHttpBindingMembers.length) {
          const bytes = await collectBody2(response.body, context);
          if (bytes.byteLength > 0) {
            const dataFromBody = await deserializer.read(ns, bytes);
            for (const member of nonHttpBindingMembers) {
              dataObject[member] = dataFromBody[member];
            }
          }
        }
        dataObject.$metadata = this.deserializeMetadata(response);
        return dataObject;
      }
      async deserializeHttpMessage(schema, context, response, arg4, arg5) {
        let dataObject;
        if (arg4 instanceof Set) {
          dataObject = arg5;
        } else {
          dataObject = arg4;
        }
        const deserializer = this.deserializer;
        const ns = NormalizedSchema.of(schema);
        const nonHttpBindingMembers = [];
        for (const [memberName, memberSchema] of ns.structIterator()) {
          const memberTraits = memberSchema.getMemberTraits();
          if (memberTraits.httpPayload) {
            const isStreaming = memberSchema.isStreaming();
            if (isStreaming) {
              const isEventStream = memberSchema.isStructSchema();
              if (isEventStream) {
                dataObject[memberName] = await this.deserializeEventStream({
                  response,
                  responseSchema: ns
                });
              } else {
                dataObject[memberName] = (0, import_util_stream2.sdkStreamMixin)(response.body);
              }
            } else if (response.body) {
              const bytes = await collectBody2(response.body, context);
              if (bytes.byteLength > 0) {
                dataObject[memberName] = await deserializer.read(memberSchema, bytes);
              }
            }
          } else if (memberTraits.httpHeader) {
            const key = String(memberTraits.httpHeader).toLowerCase();
            const value = response.headers[key];
            if (null != value) {
              if (memberSchema.isListSchema()) {
                const headerListValueSchema = memberSchema.getValueSchema();
                let sections;
                if (headerListValueSchema.isTimestampSchema() && headerListValueSchema.getSchema() === SCHEMA.TIMESTAMP_DEFAULT) {
                  sections = splitEvery2(value, ",", 2);
                } else {
                  sections = splitHeader2(value);
                }
                const list2 = [];
                for (const section of sections) {
                  list2.push(await deserializer.read([headerListValueSchema, { httpHeader: key }], section.trim()));
                }
                dataObject[memberName] = list2;
              } else {
                dataObject[memberName] = await deserializer.read(memberSchema, value);
              }
            }
          } else if (memberTraits.httpPrefixHeaders !== void 0) {
            dataObject[memberName] = {};
            for (const [header, value] of Object.entries(response.headers)) {
              if (header.startsWith(memberTraits.httpPrefixHeaders)) {
                dataObject[memberName][header.slice(memberTraits.httpPrefixHeaders.length)] = await deserializer.read([memberSchema.getValueSchema(), { httpHeader: header }], value);
              }
            }
          } else if (memberTraits.httpResponseCode) {
            dataObject[memberName] = response.statusCode;
          } else {
            nonHttpBindingMembers.push(memberName);
          }
        }
        return nonHttpBindingMembers;
      }
    };
  }
});

// ../../node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js
var import_protocol_http5, RpcProtocol;
var init_RpcProtocol = __esm({
  "../../node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js"() {
    init_schema4();
    import_protocol_http5 = __toESM(require_dist_cjs2());
    init_collect_stream_body();
    init_HttpProtocol();
    RpcProtocol = class extends HttpProtocol {
      static {
        __name(this, "RpcProtocol");
      }
      async serializeRequest(operationSchema, input, context) {
        const serializer = this.serializer;
        const query = {};
        const headers = {};
        const endpoint = await context.endpoint();
        const ns = NormalizedSchema.of(operationSchema?.input);
        const schema = ns.getSchema();
        let payload2;
        const request2 = new import_protocol_http5.HttpRequest({
          protocol: "",
          hostname: "",
          port: void 0,
          path: "/",
          fragment: void 0,
          query,
          headers,
          body: void 0
        });
        if (endpoint) {
          this.updateServiceEndpoint(request2, endpoint);
          this.setHostPrefix(request2, operationSchema, input);
        }
        const _input = {
          ...input
        };
        if (input) {
          const eventStreamMember = ns.getEventStreamMember();
          if (eventStreamMember) {
            if (_input[eventStreamMember]) {
              const initialRequest = {};
              for (const [memberName, memberSchema] of ns.structIterator()) {
                if (memberName !== eventStreamMember && _input[memberName]) {
                  serializer.write(memberSchema, _input[memberName]);
                  initialRequest[memberName] = serializer.flush();
                }
              }
              payload2 = await this.serializeEventStream({
                eventStream: _input[eventStreamMember],
                requestSchema: ns,
                initialRequest
              });
            }
          } else {
            serializer.write(schema, _input);
            payload2 = serializer.flush();
          }
        }
        request2.headers = headers;
        request2.query = query;
        request2.body = payload2;
        request2.method = "POST";
        return request2;
      }
      async deserializeResponse(operationSchema, context, response) {
        const deserializer = this.deserializer;
        const ns = NormalizedSchema.of(operationSchema.output);
        const dataObject = {};
        if (response.statusCode >= 300) {
          const bytes = await collectBody2(response.body, context);
          if (bytes.byteLength > 0) {
            Object.assign(dataObject, await deserializer.read(SCHEMA.DOCUMENT, bytes));
          }
          await this.handleError(operationSchema, context, response, dataObject, this.deserializeMetadata(response));
          throw new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.");
        }
        for (const header in response.headers) {
          const value = response.headers[header];
          delete response.headers[header];
          response.headers[header.toLowerCase()] = value;
        }
        const eventStreamMember = ns.getEventStreamMember();
        if (eventStreamMember) {
          dataObject[eventStreamMember] = await this.deserializeEventStream({
            response,
            responseSchema: ns,
            initialResponseContainer: dataObject
          });
        } else {
          const bytes = await collectBody2(response.body, context);
          if (bytes.byteLength > 0) {
            Object.assign(dataObject, await deserializer.read(ns, bytes));
          }
        }
        dataObject.$metadata = this.deserializeMetadata(response);
        return dataObject;
      }
    };
  }
});

// ../../node_modules/@smithy/core/dist-es/submodules/protocols/resolve-path.js
var resolvedPath2;
var init_resolve_path = __esm({
  "../../node_modules/@smithy/core/dist-es/submodules/protocols/resolve-path.js"() {
    init_extended_encode_uri_component();
    resolvedPath2 = /* @__PURE__ */ __name((resolvedPath3, input, memberName, labelValueProvider, uriLabel, isGreedyLabel) => {
      if (input != null && input[memberName] !== void 0) {
        const labelValue = labelValueProvider();
        if (labelValue.length <= 0) {
          throw new Error("Empty value provided for input HTTP label: " + memberName + ".");
        }
        resolvedPath3 = resolvedPath3.replace(uriLabel, isGreedyLabel ? labelValue.split("/").map((segment) => extendedEncodeURIComponent2(segment)).join("/") : extendedEncodeURIComponent2(labelValue));
      } else {
        throw new Error("No value provided for input HTTP label: " + memberName + ".");
      }
      return resolvedPath3;
    }, "resolvedPath");
  }
});

// ../../node_modules/@smithy/core/dist-es/submodules/protocols/requestBuilder.js
function requestBuilder(input, context) {
  return new RequestBuilder(input, context);
}
var import_protocol_http6, RequestBuilder;
var init_requestBuilder = __esm({
  "../../node_modules/@smithy/core/dist-es/submodules/protocols/requestBuilder.js"() {
    import_protocol_http6 = __toESM(require_dist_cjs2());
    init_resolve_path();
    __name(requestBuilder, "requestBuilder");
    RequestBuilder = class {
      static {
        __name(this, "RequestBuilder");
      }
      constructor(input, context) {
        this.input = input;
        this.context = context;
        this.query = {};
        this.method = "";
        this.headers = {};
        this.path = "";
        this.body = null;
        this.hostname = "";
        this.resolvePathStack = [];
      }
      async build() {
        const { hostname, protocol = "https", port, path: basePath } = await this.context.endpoint();
        this.path = basePath;
        for (const resolvePath of this.resolvePathStack) {
          resolvePath(this.path);
        }
        return new import_protocol_http6.HttpRequest({
          protocol,
          hostname: this.hostname || hostname,
          port,
          method: this.method,
          path: this.path,
          query: this.query,
          body: this.body,
          headers: this.headers
        });
      }
      hn(hostname) {
        this.hostname = hostname;
        return this;
      }
      bp(uriLabel) {
        this.resolvePathStack.push((basePath) => {
          this.path = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + uriLabel;
        });
        return this;
      }
      p(memberName, labelValueProvider, uriLabel, isGreedyLabel) {
        this.resolvePathStack.push((path38) => {
          this.path = resolvedPath2(path38, this.input, memberName, labelValueProvider, uriLabel, isGreedyLabel);
        });
        return this;
      }
      h(headers) {
        this.headers = headers;
        return this;
      }
      q(query) {
        this.query = query;
        return this;
      }
      b(body) {
        this.body = body;
        return this;
      }
      m(method) {
        this.method = method;
        return this;
      }
    };
  }
});

// ../../node_modules/@smithy/core/dist-es/submodules/protocols/serde/determineTimestampFormat.js
function determineTimestampFormat(ns, settings) {
  if (settings.timestampFormat.useTrait) {
    if (ns.isTimestampSchema() && (ns.getSchema() === SCHEMA.TIMESTAMP_DATE_TIME || ns.getSchema() === SCHEMA.TIMESTAMP_HTTP_DATE || ns.getSchema() === SCHEMA.TIMESTAMP_EPOCH_SECONDS)) {
      return ns.getSchema();
    }
  }
  const { httpLabel, httpPrefixHeaders, httpHeader, httpQuery } = ns.getMergedTraits();
  const bindingFormat = settings.httpBindings ? typeof httpPrefixHeaders === "string" || Boolean(httpHeader) ? SCHEMA.TIMESTAMP_HTTP_DATE : Boolean(httpQuery) || Boolean(httpLabel) ? SCHEMA.TIMESTAMP_DATE_TIME : void 0 : void 0;
  return bindingFormat ?? settings.timestampFormat.default;
}
var init_determineTimestampFormat = __esm({
  "../../node_modules/@smithy/core/dist-es/submodules/protocols/serde/determineTimestampFormat.js"() {
    init_schema4();
    __name(determineTimestampFormat, "determineTimestampFormat");
  }
});

// ../../node_modules/@smithy/core/dist-es/submodules/protocols/serde/FromStringShapeDeserializer.js
var import_util_base64, import_util_utf82, FromStringShapeDeserializer;
var init_FromStringShapeDeserializer = __esm({
  "../../node_modules/@smithy/core/dist-es/submodules/protocols/serde/FromStringShapeDeserializer.js"() {
    init_schema4();
    init_serde();
    import_util_base64 = __toESM(require_dist_cjs11());
    import_util_utf82 = __toESM(require_dist_cjs10());
    init_determineTimestampFormat();
    FromStringShapeDeserializer = class {
      static {
        __name(this, "FromStringShapeDeserializer");
      }
      constructor(settings) {
        this.settings = settings;
      }
      setSerdeContext(serdeContext) {
        this.serdeContext = serdeContext;
      }
      read(_schema, data3) {
        const ns = NormalizedSchema.of(_schema);
        if (ns.isListSchema()) {
          return splitHeader2(data3).map((item) => this.read(ns.getValueSchema(), item));
        }
        if (ns.isBlobSchema()) {
          return (this.serdeContext?.base64Decoder ?? import_util_base64.fromBase64)(data3);
        }
        if (ns.isTimestampSchema()) {
          const format26 = determineTimestampFormat(ns, this.settings);
          switch (format26) {
            case SCHEMA.TIMESTAMP_DATE_TIME:
              return parseRfc3339DateTimeWithOffset2(data3);
            case SCHEMA.TIMESTAMP_HTTP_DATE:
              return parseRfc7231DateTime2(data3);
            case SCHEMA.TIMESTAMP_EPOCH_SECONDS:
              return parseEpochTimestamp2(data3);
            default:
              console.warn("Missing timestamp format, parsing value with Date constructor:", data3);
              return new Date(data3);
          }
        }
        if (ns.isStringSchema()) {
          const mediaType = ns.getMergedTraits().mediaType;
          let intermediateValue = data3;
          if (mediaType) {
            if (ns.getMergedTraits().httpHeader) {
              intermediateValue = this.base64ToUtf8(intermediateValue);
            }
            const isJson = mediaType === "application/json" || mediaType.endsWith("+json");
            if (isJson) {
              intermediateValue = LazyJsonString2.from(intermediateValue);
            }
            return intermediateValue;
          }
        }
        switch (true) {
          case ns.isNumericSchema():
            return Number(data3);
          case ns.isBigIntegerSchema():
            return BigInt(data3);
          case ns.isBigDecimalSchema():
            return new NumericValue2(data3, "bigDecimal");
          case ns.isBooleanSchema():
            return String(data3).toLowerCase() === "true";
        }
        return data3;
      }
      base64ToUtf8(base64String) {
        return (this.serdeContext?.utf8Encoder ?? import_util_utf82.toUtf8)((this.serdeContext?.base64Decoder ?? import_util_base64.fromBase64)(base64String));
      }
    };
  }
});

// ../../node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeDeserializer.js
var import_util_utf83, HttpInterceptingShapeDeserializer;
var init_HttpInterceptingShapeDeserializer = __esm({
  "../../node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeDeserializer.js"() {
    init_schema4();
    import_util_utf83 = __toESM(require_dist_cjs10());
    init_FromStringShapeDeserializer();
    HttpInterceptingShapeDeserializer = class {
      static {
        __name(this, "HttpInterceptingShapeDeserializer");
      }
      constructor(codecDeserializer, codecSettings) {
        this.codecDeserializer = codecDeserializer;
        this.stringDeserializer = new FromStringShapeDeserializer(codecSettings);
      }
      setSerdeContext(serdeContext) {
        this.stringDeserializer.setSerdeContext(serdeContext);
        this.codecDeserializer.setSerdeContext(serdeContext);
        this.serdeContext = serdeContext;
      }
      read(schema, data3) {
        const ns = NormalizedSchema.of(schema);
        const traits = ns.getMergedTraits();
        const toString = this.serdeContext?.utf8Encoder ?? import_util_utf83.toUtf8;
        if (traits.httpHeader || traits.httpResponseCode) {
          return this.stringDeserializer.read(ns, toString(data3));
        }
        if (traits.httpPayload) {
          if (ns.isBlobSchema()) {
            const toBytes = this.serdeContext?.utf8Decoder ?? import_util_utf83.fromUtf8;
            if (typeof data3 === "string") {
              return toBytes(data3);
            }
            return data3;
          } else if (ns.isStringSchema()) {
            if ("byteLength" in data3) {
              return toString(data3);
            }
            return data3;
          }
        }
        return this.codecDeserializer.read(ns, data3);
      }
    };
  }
});

// ../../node_modules/@smithy/core/dist-es/submodules/protocols/serde/ToStringShapeSerializer.js
var import_util_base642, ToStringShapeSerializer;
var init_ToStringShapeSerializer = __esm({
  "../../node_modules/@smithy/core/dist-es/submodules/protocols/serde/ToStringShapeSerializer.js"() {
    init_schema4();
    init_serde();
    import_util_base642 = __toESM(require_dist_cjs11());
    init_determineTimestampFormat();
    ToStringShapeSerializer = class {
      static {
        __name(this, "ToStringShapeSerializer");
      }
      constructor(settings) {
        this.settings = settings;
        this.stringBuffer = "";
        this.serdeContext = void 0;
      }
      setSerdeContext(serdeContext) {
        this.serdeContext = serdeContext;
      }
      write(schema, value) {
        const ns = NormalizedSchema.of(schema);
        switch (typeof value) {
          case "object":
            if (value === null) {
              this.stringBuffer = "null";
              return;
            }
            if (ns.isTimestampSchema()) {
              if (!(value instanceof Date)) {
                throw new Error(`@smithy/core/protocols - received non-Date value ${value} when schema expected Date in ${ns.getName(true)}`);
              }
              const format26 = determineTimestampFormat(ns, this.settings);
              switch (format26) {
                case SCHEMA.TIMESTAMP_DATE_TIME:
                  this.stringBuffer = value.toISOString().replace(".000Z", "Z");
                  break;
                case SCHEMA.TIMESTAMP_HTTP_DATE:
                  this.stringBuffer = dateToUtcString2(value);
                  break;
                case SCHEMA.TIMESTAMP_EPOCH_SECONDS:
                  this.stringBuffer = String(value.getTime() / 1e3);
                  break;
                default:
                  console.warn("Missing timestamp format, using epoch seconds", value);
                  this.stringBuffer = String(value.getTime() / 1e3);
              }
              return;
            }
            if (ns.isBlobSchema() && "byteLength" in value) {
              this.stringBuffer = (this.serdeContext?.base64Encoder ?? import_util_base642.toBase64)(value);
              return;
            }
            if (ns.isListSchema() && Array.isArray(value)) {
              let buffer = "";
              for (const item of value) {
                this.write([ns.getValueSchema(), ns.getMergedTraits()], item);
                const headerItem = this.flush();
                const serialized = ns.getValueSchema().isTimestampSchema() ? headerItem : quoteHeader2(headerItem);
                if (buffer !== "") {
                  buffer += ", ";
                }
                buffer += serialized;
              }
              this.stringBuffer = buffer;
              return;
            }
            this.stringBuffer = JSON.stringify(value, null, 2);
            break;
          case "string":
            const mediaType = ns.getMergedTraits().mediaType;
            let intermediateValue = value;
            if (mediaType) {
              const isJson = mediaType === "application/json" || mediaType.endsWith("+json");
              if (isJson) {
                intermediateValue = LazyJsonString2.from(intermediateValue);
              }
              if (ns.getMergedTraits().httpHeader) {
                this.stringBuffer = (this.serdeContext?.base64Encoder ?? import_util_base642.toBase64)(intermediateValue.toString());
                return;
              }
            }
            this.stringBuffer = value;
            break;
          default:
            this.stringBuffer = String(value);
        }
      }
      flush() {
        const buffer = this.stringBuffer;
        this.stringBuffer = "";
        return buffer;
      }
    };
  }
});

// ../../node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeSerializer.js
var HttpInterceptingShapeSerializer;
var init_HttpInterceptingShapeSerializer = __esm({
  "../../node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeSerializer.js"() {
    init_schema4();
    init_ToStringShapeSerializer();
    HttpInterceptingShapeSerializer = class {
      static {
        __name(this, "HttpInterceptingShapeSerializer");
      }
      constructor(codecSerializer, codecSettings, stringSerializer = new ToStringShapeSerializer(codecSettings)) {
        this.codecSerializer = codecSerializer;
        this.stringSerializer = stringSerializer;
      }
      setSerdeContext(serdeContext) {
        this.codecSerializer.setSerdeContext(serdeContext);
        this.stringSerializer.setSerdeContext(serdeContext);
      }
      write(schema, value) {
        const ns = NormalizedSchema.of(schema);
        const traits = ns.getMergedTraits();
        if (traits.httpHeader || traits.httpLabel || traits.httpQuery) {
          this.stringSerializer.write(ns, value);
          this.buffer = this.stringSerializer.flush();
          return;
        }
        return this.codecSerializer.write(ns, value);
      }
      flush() {
        if (this.buffer !== void 0) {
          const buffer = this.buffer;
          this.buffer = void 0;
          return buffer;
        }
        return this.codecSerializer.flush();
      }
    };
  }
});

// ../../node_modules/@smithy/core/dist-es/submodules/protocols/index.js
var protocols_exports = {};
__export(protocols_exports, {
  FromStringShapeDeserializer: () => FromStringShapeDeserializer,
  HttpBindingProtocol: () => HttpBindingProtocol,
  HttpInterceptingShapeDeserializer: () => HttpInterceptingShapeDeserializer,
  HttpInterceptingShapeSerializer: () => HttpInterceptingShapeSerializer,
  HttpProtocol: () => HttpProtocol,
  RequestBuilder: () => RequestBuilder,
  RpcProtocol: () => RpcProtocol,
  ToStringShapeSerializer: () => ToStringShapeSerializer,
  collectBody: () => collectBody2,
  determineTimestampFormat: () => determineTimestampFormat,
  extendedEncodeURIComponent: () => extendedEncodeURIComponent2,
  requestBuilder: () => requestBuilder,
  resolvedPath: () => resolvedPath2
});
var init_protocols = __esm({
  "../../node_modules/@smithy/core/dist-es/submodules/protocols/index.js"() {
    init_collect_stream_body();
    init_extended_encode_uri_component();
    init_HttpBindingProtocol();
    init_HttpProtocol();
    init_RpcProtocol();
    init_requestBuilder();
    init_resolve_path();
    init_FromStringShapeDeserializer();
    init_HttpInterceptingShapeDeserializer();
    init_HttpInterceptingShapeSerializer();
    init_ToStringShapeSerializer();
    init_determineTimestampFormat();
  }
});

// ../../node_modules/@smithy/core/dist-es/protocols/requestBuilder.js
var init_requestBuilder2 = __esm({
  "../../node_modules/@smithy/core/dist-es/protocols/requestBuilder.js"() {
    init_protocols();
  }
});

// ../../node_modules/@smithy/core/dist-es/setFeature.js
function setFeature(context, feature, value) {
  if (!context.__smithy_context) {
    context.__smithy_context = {
      features: {}
    };
  } else if (!context.__smithy_context.features) {
    context.__smithy_context.features = {};
  }
  context.__smithy_context.features[feature] = value;
}
var init_setFeature = __esm({
  "../../node_modules/@smithy/core/dist-es/setFeature.js"() {
    __name(setFeature, "setFeature");
  }
});

// ../../node_modules/@smithy/core/dist-es/util-identity-and-auth/DefaultIdentityProviderConfig.js
var DefaultIdentityProviderConfig;
var init_DefaultIdentityProviderConfig = __esm({
  "../../node_modules/@smithy/core/dist-es/util-identity-and-auth/DefaultIdentityProviderConfig.js"() {
    DefaultIdentityProviderConfig = class {
      static {
        __name(this, "DefaultIdentityProviderConfig");
      }
      constructor(config) {
        this.authSchemes = /* @__PURE__ */ new Map();
        for (const [key, value] of Object.entries(config)) {
          if (value !== void 0) {
            this.authSchemes.set(key, value);
          }
        }
      }
      getIdentityProvider(schemeId) {
        return this.authSchemes.get(schemeId);
      }
    };
  }
});

// ../../node_modules/@smithy/core/dist-es/util-identity-and-auth/httpAuthSchemes/httpApiKeyAuth.js
var import_protocol_http7, import_types4, HttpApiKeyAuthSigner;
var init_httpApiKeyAuth = __esm({
  "../../node_modules/@smithy/core/dist-es/util-identity-and-auth/httpAuthSchemes/httpApiKeyAuth.js"() {
    import_protocol_http7 = __toESM(require_dist_cjs2());
    import_types4 = __toESM(require_dist_cjs());
    HttpApiKeyAuthSigner = class {
      static {
        __name(this, "HttpApiKeyAuthSigner");
      }
      async sign(httpRequest, identity, signingProperties) {
        if (!signingProperties) {
          throw new Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");
        }
        if (!signingProperties.name) {
          throw new Error("request could not be signed with `apiKey` since the `name` signer property is missing");
        }
        if (!signingProperties.in) {
          throw new Error("request could not be signed with `apiKey` since the `in` signer property is missing");
        }
        if (!identity.apiKey) {
          throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined");
        }
        const clonedRequest = import_protocol_http7.HttpRequest.clone(httpRequest);
        if (signingProperties.in === import_types4.HttpApiKeyAuthLocation.QUERY) {
          clonedRequest.query[signingProperties.name] = identity.apiKey;
        } else if (signingProperties.in === import_types4.HttpApiKeyAuthLocation.HEADER) {
          clonedRequest.headers[signingProperties.name] = signingProperties.scheme ? `${signingProperties.scheme} ${identity.apiKey}` : identity.apiKey;
        } else {
          throw new Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `" + signingProperties.in + "`");
        }
        return clonedRequest;
      }
    };
  }
});

// ../../node_modules/@smithy/core/dist-es/util-identity-and-auth/httpAuthSchemes/httpBearerAuth.js
var import_protocol_http8, HttpBearerAuthSigner;
var init_httpBearerAuth = __esm({
  "../../node_modules/@smithy/core/dist-es/util-identity-and-auth/httpAuthSchemes/httpBearerAuth.js"() {
    import_protocol_http8 = __toESM(require_dist_cjs2());
    HttpBearerAuthSigner = class {
      static {
        __name(this, "HttpBearerAuthSigner");
      }
      async sign(httpRequest, identity, signingProperties) {
        const clonedRequest = import_protocol_http8.HttpRequest.clone(httpRequest);
        if (!identity.token) {
          throw new Error("request could not be signed with `token` since the `token` is not defined");
        }
        clonedRequest.headers["Authorization"] = `Bearer ${identity.token}`;
        return clonedRequest;
      }
    };
  }
});

// ../../node_modules/@smithy/core/dist-es/util-identity-and-auth/httpAuthSchemes/noAuth.js
var NoAuthSigner;
var init_noAuth = __esm({
  "../../node_modules/@smithy/core/dist-es/util-identity-and-auth/httpAuthSchemes/noAuth.js"() {
    NoAuthSigner = class {
      static {
        __name(this, "NoAuthSigner");
      }
      async sign(httpRequest, identity, signingProperties) {
        return httpRequest;
      }
    };
  }
});

// ../../node_modules/@smithy/core/dist-es/util-identity-and-auth/httpAuthSchemes/index.js
var init_httpAuthSchemes = __esm({
  "../../node_modules/@smithy/core/dist-es/util-identity-and-auth/httpAuthSchemes/index.js"() {
    init_httpApiKeyAuth();
    init_httpBearerAuth();
    init_noAuth();
  }
});

// ../../node_modules/@smithy/core/dist-es/util-identity-and-auth/memoizeIdentityProvider.js
var createIsIdentityExpiredFunction, EXPIRATION_MS, isIdentityExpired, doesIdentityRequireRefresh, memoizeIdentityProvider;
var init_memoizeIdentityProvider = __esm({
  "../../node_modules/@smithy/core/dist-es/util-identity-and-auth/memoizeIdentityProvider.js"() {
    createIsIdentityExpiredFunction = /* @__PURE__ */ __name((expirationMs) => (identity) => doesIdentityRequireRefresh(identity) && identity.expiration.getTime() - Date.now() < expirationMs, "createIsIdentityExpiredFunction");
    EXPIRATION_MS = 3e5;
    isIdentityExpired = createIsIdentityExpiredFunction(EXPIRATION_MS);
    doesIdentityRequireRefresh = /* @__PURE__ */ __name((identity) => identity.expiration !== void 0, "doesIdentityRequireRefresh");
    memoizeIdentityProvider = /* @__PURE__ */ __name((provider, isExpired, requiresRefresh) => {
      if (provider === void 0) {
        return void 0;
      }
      const normalizedProvider = typeof provider !== "function" ? async () => Promise.resolve(provider) : provider;
      let resolved;
      let pending;
      let hasResult;
      let isConstant = false;
      const coalesceProvider = /* @__PURE__ */ __name(async (options) => {
        if (!pending) {
          pending = normalizedProvider(options);
        }
        try {
          resolved = await pending;
          hasResult = true;
          isConstant = false;
        } finally {
          pending = void 0;
        }
        return resolved;
      }, "coalesceProvider");
      if (isExpired === void 0) {
        return async (options) => {
          if (!hasResult || options?.forceRefresh) {
            resolved = await coalesceProvider(options);
          }
          return resolved;
        };
      }
      return async (options) => {
        if (!hasResult || options?.forceRefresh) {
          resolved = await coalesceProvider(options);
        }
        if (isConstant) {
          return resolved;
        }
        if (!requiresRefresh(resolved)) {
          isConstant = true;
          return resolved;
        }
        if (isExpired(resolved)) {
          await coalesceProvider(options);
          return resolved;
        }
        return resolved;
      };
    }, "memoizeIdentityProvider");
  }
});

// ../../node_modules/@smithy/core/dist-es/util-identity-and-auth/index.js
var init_util_identity_and_auth = __esm({
  "../../node_modules/@smithy/core/dist-es/util-identity-and-auth/index.js"() {
    init_DefaultIdentityProviderConfig();
    init_httpAuthSchemes();
    init_memoizeIdentityProvider();
  }
});

// ../../node_modules/@smithy/core/dist-es/index.js
var dist_es_exports = {};
__export(dist_es_exports, {
  DefaultIdentityProviderConfig: () => DefaultIdentityProviderConfig,
  EXPIRATION_MS: () => EXPIRATION_MS,
  HttpApiKeyAuthSigner: () => HttpApiKeyAuthSigner,
  HttpBearerAuthSigner: () => HttpBearerAuthSigner,
  NoAuthSigner: () => NoAuthSigner,
  createIsIdentityExpiredFunction: () => createIsIdentityExpiredFunction,
  createPaginator: () => createPaginator,
  doesIdentityRequireRefresh: () => doesIdentityRequireRefresh,
  getHttpAuthSchemeEndpointRuleSetPlugin: () => getHttpAuthSchemeEndpointRuleSetPlugin,
  getHttpAuthSchemePlugin: () => getHttpAuthSchemePlugin,
  getHttpSigningPlugin: () => getHttpSigningPlugin,
  getSmithyContext: () => getSmithyContext,
  httpAuthSchemeEndpointRuleSetMiddlewareOptions: () => httpAuthSchemeEndpointRuleSetMiddlewareOptions,
  httpAuthSchemeMiddleware: () => httpAuthSchemeMiddleware,
  httpAuthSchemeMiddlewareOptions: () => httpAuthSchemeMiddlewareOptions,
  httpSigningMiddleware: () => httpSigningMiddleware,
  httpSigningMiddlewareOptions: () => httpSigningMiddlewareOptions,
  isIdentityExpired: () => isIdentityExpired,
  memoizeIdentityProvider: () => memoizeIdentityProvider,
  normalizeProvider: () => normalizeProvider,
  requestBuilder: () => requestBuilder,
  setFeature: () => setFeature
});
var init_dist_es = __esm({
  "../../node_modules/@smithy/core/dist-es/index.js"() {
    init_getSmithyContext();
    init_middleware_http_auth_scheme();
    init_middleware_http_signing();
    init_normalizeProvider();
    init_createPaginator();
    init_requestBuilder2();
    init_setFeature();
    init_util_identity_and_auth();
  }
});

// ../../node_modules/@smithy/util-endpoints/dist-cjs/index.js
var require_dist_cjs18 = __commonJS({
  "../../node_modules/@smithy/util-endpoints/dist-cjs/index.js"(exports2, module2) {
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var src_exports = {};
    __export2(src_exports, {
      EndpointCache: /* @__PURE__ */ __name(() => EndpointCache3, "EndpointCache"),
      EndpointError: /* @__PURE__ */ __name(() => EndpointError2, "EndpointError"),
      customEndpointFunctions: /* @__PURE__ */ __name(() => customEndpointFunctions3, "customEndpointFunctions"),
      isIpAddress: /* @__PURE__ */ __name(() => isIpAddress2, "isIpAddress"),
      isValidHostLabel: /* @__PURE__ */ __name(() => isValidHostLabel, "isValidHostLabel"),
      resolveEndpoint: /* @__PURE__ */ __name(() => resolveEndpoint4, "resolveEndpoint")
    });
    module2.exports = __toCommonJS2(src_exports);
    var EndpointCache3 = class {
      static {
        __name(this, "EndpointCache");
      }
      /**
       * @param [size] - desired average maximum capacity. A buffer of 10 additional keys will be allowed
       *                 before keys are dropped.
       * @param [params] - list of params to consider as part of the cache key.
       *
       * If the params list is not populated, no caching will happen.
       * This may be out of order depending on how the object is created and arrives to this class.
       */
      constructor({ size, params }) {
        this.data = /* @__PURE__ */ new Map();
        this.parameters = [];
        this.capacity = size ?? 50;
        if (params) {
          this.parameters = params;
        }
      }
      static {
        __name2(this, "EndpointCache");
      }
      /**
       * @param endpointParams - query for endpoint.
       * @param resolver - provider of the value if not present.
       * @returns endpoint corresponding to the query.
       */
      get(endpointParams, resolver) {
        const key = this.hash(endpointParams);
        if (key === false) {
          return resolver();
        }
        if (!this.data.has(key)) {
          if (this.data.size > this.capacity + 10) {
            const keys = this.data.keys();
            let i3 = 0;
            while (true) {
              const { value, done } = keys.next();
              this.data.delete(value);
              if (done || ++i3 > 10) {
                break;
              }
            }
          }
          this.data.set(key, resolver());
        }
        return this.data.get(key);
      }
      size() {
        return this.data.size;
      }
      /**
       * @returns cache key or false if not cachable.
       */
      hash(endpointParams) {
        let buffer = "";
        const { parameters } = this;
        if (parameters.length === 0) {
          return false;
        }
        for (const param of parameters) {
          const val = String(endpointParams[param] ?? "");
          if (val.includes("|;")) {
            return false;
          }
          buffer += val + "|;";
        }
        return buffer;
      }
    };
    var IP_V4_REGEX = new RegExp(
      `^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$`
    );
    var isIpAddress2 = /* @__PURE__ */ __name2((value) => IP_V4_REGEX.test(value) || value.startsWith("[") && value.endsWith("]"), "isIpAddress");
    var VALID_HOST_LABEL_REGEX = new RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`);
    var isValidHostLabel = /* @__PURE__ */ __name2((value, allowSubDomains = false) => {
      if (!allowSubDomains) {
        return VALID_HOST_LABEL_REGEX.test(value);
      }
      const labels = value.split(".");
      for (const label of labels) {
        if (!isValidHostLabel(label)) {
          return false;
        }
      }
      return true;
    }, "isValidHostLabel");
    var customEndpointFunctions3 = {};
    var debugId = "endpoints";
    function toDebugString(input) {
      if (typeof input !== "object" || input == null) {
        return input;
      }
      if ("ref" in input) {
        return `$${toDebugString(input.ref)}`;
      }
      if ("fn" in input) {
        return `${input.fn}(${(input.argv || []).map(toDebugString).join(", ")})`;
      }
      return JSON.stringify(input, null, 2);
    }
    __name(toDebugString, "toDebugString");
    __name2(toDebugString, "toDebugString");
    var EndpointError2 = class extends Error {
      static {
        __name(this, "EndpointError");
      }
      static {
        __name2(this, "EndpointError");
      }
      constructor(message2) {
        super(message2);
        this.name = "EndpointError";
      }
    };
    var booleanEquals = /* @__PURE__ */ __name2((value1, value2) => value1 === value2, "booleanEquals");
    var getAttrPathList = /* @__PURE__ */ __name2((path38) => {
      const parts = path38.split(".");
      const pathList = [];
      for (const part of parts) {
        const squareBracketIndex = part.indexOf("[");
        if (squareBracketIndex !== -1) {
          if (part.indexOf("]") !== part.length - 1) {
            throw new EndpointError2(`Path: '${path38}' does not end with ']'`);
          }
          const arrayIndex = part.slice(squareBracketIndex + 1, -1);
          if (Number.isNaN(parseInt(arrayIndex))) {
            throw new EndpointError2(`Invalid array index: '${arrayIndex}' in path: '${path38}'`);
          }
          if (squareBracketIndex !== 0) {
            pathList.push(part.slice(0, squareBracketIndex));
          }
          pathList.push(arrayIndex);
        } else {
          pathList.push(part);
        }
      }
      return pathList;
    }, "getAttrPathList");
    var getAttr = /* @__PURE__ */ __name2((value, path38) => getAttrPathList(path38).reduce((acc, index) => {
      if (typeof acc !== "object") {
        throw new EndpointError2(`Index '${index}' in '${path38}' not found in '${JSON.stringify(value)}'`);
      } else if (Array.isArray(acc)) {
        return acc[parseInt(index)];
      }
      return acc[index];
    }, value), "getAttr");
    var isSet = /* @__PURE__ */ __name2((value) => value != null, "isSet");
    var not = /* @__PURE__ */ __name2((value) => !value, "not");
    var import_types32 = require_dist_cjs();
    var DEFAULT_PORTS = {
      [import_types32.EndpointURLScheme.HTTP]: 80,
      [import_types32.EndpointURLScheme.HTTPS]: 443
    };
    var parseURL = /* @__PURE__ */ __name2((value) => {
      const whatwgURL = (() => {
        try {
          if (value instanceof URL) {
            return value;
          }
          if (typeof value === "object" && "hostname" in value) {
            const { hostname: hostname2, port, protocol: protocol2 = "", path: path38 = "", query = {} } = value;
            const url = new URL(`${protocol2}//${hostname2}${port ? `:${port}` : ""}${path38}`);
            url.search = Object.entries(query).map(([k3, v6]) => `${k3}=${v6}`).join("&");
            return url;
          }
          return new URL(value);
        } catch (error5) {
          return null;
        }
      })();
      if (!whatwgURL) {
        console.error(`Unable to parse ${JSON.stringify(value)} as a whatwg URL.`);
        return null;
      }
      const urlString = whatwgURL.href;
      const { host, hostname, pathname, protocol, search } = whatwgURL;
      if (search) {
        return null;
      }
      const scheme = protocol.slice(0, -1);
      if (!Object.values(import_types32.EndpointURLScheme).includes(scheme)) {
        return null;
      }
      const isIp = isIpAddress2(hostname);
      const inputContainsDefaultPort = urlString.includes(`${host}:${DEFAULT_PORTS[scheme]}`) || typeof value === "string" && value.includes(`${host}:${DEFAULT_PORTS[scheme]}`);
      const authority = `${host}${inputContainsDefaultPort ? `:${DEFAULT_PORTS[scheme]}` : ``}`;
      return {
        scheme,
        authority,
        path: pathname,
        normalizedPath: pathname.endsWith("/") ? pathname : `${pathname}/`,
        isIp
      };
    }, "parseURL");
    var stringEquals = /* @__PURE__ */ __name2((value1, value2) => value1 === value2, "stringEquals");
    var substring = /* @__PURE__ */ __name2((input, start, stop, reverse) => {
      if (start >= stop || input.length < stop) {
        return null;
      }
      if (!reverse) {
        return input.substring(start, stop);
      }
      return input.substring(input.length - stop, input.length - start);
    }, "substring");
    var uriEncode = /* @__PURE__ */ __name2((value) => encodeURIComponent(value).replace(/[!*'()]/g, (c3) => `%${c3.charCodeAt(0).toString(16).toUpperCase()}`), "uriEncode");
    var endpointFunctions = {
      booleanEquals,
      getAttr,
      isSet,
      isValidHostLabel,
      not,
      parseURL,
      stringEquals,
      substring,
      uriEncode
    };
    var evaluateTemplate = /* @__PURE__ */ __name2((template, options) => {
      const evaluatedTemplateArr = [];
      const templateContext = {
        ...options.endpointParams,
        ...options.referenceRecord
      };
      let currentIndex = 0;
      while (currentIndex < template.length) {
        const openingBraceIndex = template.indexOf("{", currentIndex);
        if (openingBraceIndex === -1) {
          evaluatedTemplateArr.push(template.slice(currentIndex));
          break;
        }
        evaluatedTemplateArr.push(template.slice(currentIndex, openingBraceIndex));
        const closingBraceIndex = template.indexOf("}", openingBraceIndex);
        if (closingBraceIndex === -1) {
          evaluatedTemplateArr.push(template.slice(openingBraceIndex));
          break;
        }
        if (template[openingBraceIndex + 1] === "{" && template[closingBraceIndex + 1] === "}") {
          evaluatedTemplateArr.push(template.slice(openingBraceIndex + 1, closingBraceIndex));
          currentIndex = closingBraceIndex + 2;
        }
        const parameterName = template.substring(openingBraceIndex + 1, closingBraceIndex);
        if (parameterName.includes("#")) {
          const [refName, attrName] = parameterName.split("#");
          evaluatedTemplateArr.push(getAttr(templateContext[refName], attrName));
        } else {
          evaluatedTemplateArr.push(templateContext[parameterName]);
        }
        currentIndex = closingBraceIndex + 1;
      }
      return evaluatedTemplateArr.join("");
    }, "evaluateTemplate");
    var getReferenceValue = /* @__PURE__ */ __name2(({ ref }, options) => {
      const referenceRecord = {
        ...options.endpointParams,
        ...options.referenceRecord
      };
      return referenceRecord[ref];
    }, "getReferenceValue");
    var evaluateExpression = /* @__PURE__ */ __name2((obj, keyName, options) => {
      if (typeof obj === "string") {
        return evaluateTemplate(obj, options);
      } else if (obj["fn"]) {
        return callFunction(obj, options);
      } else if (obj["ref"]) {
        return getReferenceValue(obj, options);
      }
      throw new EndpointError2(`'${keyName}': ${String(obj)} is not a string, function or reference.`);
    }, "evaluateExpression");
    var callFunction = /* @__PURE__ */ __name2(({ fn, argv }, options) => {
      const evaluatedArgs = argv.map(
        (arg) => ["boolean", "number"].includes(typeof arg) ? arg : evaluateExpression(arg, "arg", options)
      );
      const fnSegments = fn.split(".");
      if (fnSegments[0] in customEndpointFunctions3 && fnSegments[1] != null) {
        return customEndpointFunctions3[fnSegments[0]][fnSegments[1]](...evaluatedArgs);
      }
      return endpointFunctions[fn](...evaluatedArgs);
    }, "callFunction");
    var evaluateCondition = /* @__PURE__ */ __name2(({ assign, ...fnArgs }, options) => {
      if (assign && assign in options.referenceRecord) {
        throw new EndpointError2(`'${assign}' is already defined in Reference Record.`);
      }
      const value = callFunction(fnArgs, options);
      options.logger?.debug?.(`${debugId} evaluateCondition: ${toDebugString(fnArgs)} = ${toDebugString(value)}`);
      return {
        result: value === "" ? true : !!value,
        ...assign != null && { toAssign: { name: assign, value } }
      };
    }, "evaluateCondition");
    var evaluateConditions = /* @__PURE__ */ __name2((conditions = [], options) => {
      const conditionsReferenceRecord = {};
      for (const condition of conditions) {
        const { result: result2, toAssign } = evaluateCondition(condition, {
          ...options,
          referenceRecord: {
            ...options.referenceRecord,
            ...conditionsReferenceRecord
          }
        });
        if (!result2) {
          return { result: result2 };
        }
        if (toAssign) {
          conditionsReferenceRecord[toAssign.name] = toAssign.value;
          options.logger?.debug?.(`${debugId} assign: ${toAssign.name} := ${toDebugString(toAssign.value)}`);
        }
      }
      return { result: true, referenceRecord: conditionsReferenceRecord };
    }, "evaluateConditions");
    var getEndpointHeaders = /* @__PURE__ */ __name2((headers, options) => Object.entries(headers).reduce(
      (acc, [headerKey, headerVal]) => ({
        ...acc,
        [headerKey]: headerVal.map((headerValEntry) => {
          const processedExpr = evaluateExpression(headerValEntry, "Header value entry", options);
          if (typeof processedExpr !== "string") {
            throw new EndpointError2(`Header '${headerKey}' value '${processedExpr}' is not a string`);
          }
          return processedExpr;
        })
      }),
      {}
    ), "getEndpointHeaders");
    var getEndpointProperty = /* @__PURE__ */ __name2((property, options) => {
      if (Array.isArray(property)) {
        return property.map((propertyEntry) => getEndpointProperty(propertyEntry, options));
      }
      switch (typeof property) {
        case "string":
          return evaluateTemplate(property, options);
        case "object":
          if (property === null) {
            throw new EndpointError2(`Unexpected endpoint property: ${property}`);
          }
          return getEndpointProperties(property, options);
        case "boolean":
          return property;
        default:
          throw new EndpointError2(`Unexpected endpoint property type: ${typeof property}`);
      }
    }, "getEndpointProperty");
    var getEndpointProperties = /* @__PURE__ */ __name2((properties, options) => Object.entries(properties).reduce(
      (acc, [propertyKey, propertyVal]) => ({
        ...acc,
        [propertyKey]: getEndpointProperty(propertyVal, options)
      }),
      {}
    ), "getEndpointProperties");
    var getEndpointUrl = /* @__PURE__ */ __name2((endpointUrl, options) => {
      const expression = evaluateExpression(endpointUrl, "Endpoint URL", options);
      if (typeof expression === "string") {
        try {
          return new URL(expression);
        } catch (error5) {
          console.error(`Failed to construct URL with ${expression}`, error5);
          throw error5;
        }
      }
      throw new EndpointError2(`Endpoint URL must be a string, got ${typeof expression}`);
    }, "getEndpointUrl");
    var evaluateEndpointRule = /* @__PURE__ */ __name2((endpointRule, options) => {
      const { conditions, endpoint } = endpointRule;
      const { result: result2, referenceRecord } = evaluateConditions(conditions, options);
      if (!result2) {
        return;
      }
      const endpointRuleOptions = {
        ...options,
        referenceRecord: { ...options.referenceRecord, ...referenceRecord }
      };
      const { url, properties, headers } = endpoint;
      options.logger?.debug?.(`${debugId} Resolving endpoint from template: ${toDebugString(endpoint)}`);
      return {
        ...headers != void 0 && {
          headers: getEndpointHeaders(headers, endpointRuleOptions)
        },
        ...properties != void 0 && {
          properties: getEndpointProperties(properties, endpointRuleOptions)
        },
        url: getEndpointUrl(url, endpointRuleOptions)
      };
    }, "evaluateEndpointRule");
    var evaluateErrorRule = /* @__PURE__ */ __name2((errorRule, options) => {
      const { conditions, error: error5 } = errorRule;
      const { result: result2, referenceRecord } = evaluateConditions(conditions, options);
      if (!result2) {
        return;
      }
      throw new EndpointError2(
        evaluateExpression(error5, "Error", {
          ...options,
          referenceRecord: { ...options.referenceRecord, ...referenceRecord }
        })
      );
    }, "evaluateErrorRule");
    var evaluateTreeRule = /* @__PURE__ */ __name2((treeRule, options) => {
      const { conditions, rules } = treeRule;
      const { result: result2, referenceRecord } = evaluateConditions(conditions, options);
      if (!result2) {
        return;
      }
      return evaluateRules(rules, {
        ...options,
        referenceRecord: { ...options.referenceRecord, ...referenceRecord }
      });
    }, "evaluateTreeRule");
    var evaluateRules = /* @__PURE__ */ __name2((rules, options) => {
      for (const rule of rules) {
        if (rule.type === "endpoint") {
          const endpointOrUndefined = evaluateEndpointRule(rule, options);
          if (endpointOrUndefined) {
            return endpointOrUndefined;
          }
        } else if (rule.type === "error") {
          evaluateErrorRule(rule, options);
        } else if (rule.type === "tree") {
          const endpointOrUndefined = evaluateTreeRule(rule, options);
          if (endpointOrUndefined) {
            return endpointOrUndefined;
          }
        } else {
          throw new EndpointError2(`Unknown endpoint rule: ${rule}`);
        }
      }
      throw new EndpointError2(`Rules evaluation failed`);
    }, "evaluateRules");
    var resolveEndpoint4 = /* @__PURE__ */ __name2((ruleSetObject, options) => {
      const { endpointParams, logger: logger4 } = options;
      const { parameters, rules } = ruleSetObject;
      options.logger?.debug?.(`${debugId} Initial EndpointParams: ${toDebugString(endpointParams)}`);
      const paramsWithDefault = Object.entries(parameters).filter(([, v6]) => v6.default != null).map(([k3, v6]) => [k3, v6.default]);
      if (paramsWithDefault.length > 0) {
        for (const [paramKey, paramDefaultValue] of paramsWithDefault) {
          endpointParams[paramKey] = endpointParams[paramKey] ?? paramDefaultValue;
        }
      }
      const requiredParams = Object.entries(parameters).filter(([, v6]) => v6.required).map(([k3]) => k3);
      for (const requiredParam of requiredParams) {
        if (endpointParams[requiredParam] == null) {
          throw new EndpointError2(`Missing required parameter: '${requiredParam}'`);
        }
      }
      const endpoint = evaluateRules(rules, { endpointParams, logger: logger4, referenceRecord: {} });
      options.logger?.debug?.(`${debugId} Resolved endpoint: ${toDebugString(endpoint)}`);
      return endpoint;
    }, "resolveEndpoint");
  }
});

// ../../node_modules/@smithy/querystring-parser/dist-cjs/index.js
var require_dist_cjs19 = __commonJS({
  "../../node_modules/@smithy/querystring-parser/dist-cjs/index.js"(exports2, module2) {
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var src_exports = {};
    __export2(src_exports, {
      parseQueryString: /* @__PURE__ */ __name(() => parseQueryString, "parseQueryString")
    });
    module2.exports = __toCommonJS2(src_exports);
    function parseQueryString(querystring) {
      const query = {};
      querystring = querystring.replace(/^\?/, "");
      if (querystring) {
        for (const pair of querystring.split("&")) {
          let [key, value = null] = pair.split("=");
          key = decodeURIComponent(key);
          if (value) {
            value = decodeURIComponent(value);
          }
          if (!(key in query)) {
            query[key] = value;
          } else if (Array.isArray(query[key])) {
            query[key].push(value);
          } else {
            query[key] = [query[key], value];
          }
        }
      }
      return query;
    }
    __name(parseQueryString, "parseQueryString");
    __name2(parseQueryString, "parseQueryString");
  }
});

// ../../node_modules/@smithy/url-parser/dist-cjs/index.js
var require_dist_cjs20 = __commonJS({
  "../../node_modules/@smithy/url-parser/dist-cjs/index.js"(exports2, module2) {
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var src_exports = {};
    __export2(src_exports, {
      parseUrl: /* @__PURE__ */ __name(() => parseUrl3, "parseUrl")
    });
    module2.exports = __toCommonJS2(src_exports);
    var import_querystring_parser = require_dist_cjs19();
    var parseUrl3 = /* @__PURE__ */ __name2((url) => {
      if (typeof url === "string") {
        return parseUrl3(new URL(url));
      }
      const { hostname, pathname, port, protocol, search } = url;
      let query;
      if (search) {
        query = (0, import_querystring_parser.parseQueryString)(search);
      }
      return {
        hostname,
        port: port ? parseInt(port) : void 0,
        protocol,
        path: pathname,
        query
      };
    }, "parseUrl");
  }
});

// ../../node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js
var require_dist_cjs21 = __commonJS({
  "../../node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js"(exports2, module2) {
    "use strict";
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var index_exports = {};
    __export2(index_exports, {
      ConditionObject: /* @__PURE__ */ __name(() => import_util_endpoints5.ConditionObject, "ConditionObject"),
      DeprecatedObject: /* @__PURE__ */ __name(() => import_util_endpoints5.DeprecatedObject, "DeprecatedObject"),
      EndpointError: /* @__PURE__ */ __name(() => import_util_endpoints5.EndpointError, "EndpointError"),
      EndpointObject: /* @__PURE__ */ __name(() => import_util_endpoints5.EndpointObject, "EndpointObject"),
      EndpointObjectHeaders: /* @__PURE__ */ __name(() => import_util_endpoints5.EndpointObjectHeaders, "EndpointObjectHeaders"),
      EndpointObjectProperties: /* @__PURE__ */ __name(() => import_util_endpoints5.EndpointObjectProperties, "EndpointObjectProperties"),
      EndpointParams: /* @__PURE__ */ __name(() => import_util_endpoints5.EndpointParams, "EndpointParams"),
      EndpointResolverOptions: /* @__PURE__ */ __name(() => import_util_endpoints5.EndpointResolverOptions, "EndpointResolverOptions"),
      EndpointRuleObject: /* @__PURE__ */ __name(() => import_util_endpoints5.EndpointRuleObject, "EndpointRuleObject"),
      ErrorRuleObject: /* @__PURE__ */ __name(() => import_util_endpoints5.ErrorRuleObject, "ErrorRuleObject"),
      EvaluateOptions: /* @__PURE__ */ __name(() => import_util_endpoints5.EvaluateOptions, "EvaluateOptions"),
      Expression: /* @__PURE__ */ __name(() => import_util_endpoints5.Expression, "Expression"),
      FunctionArgv: /* @__PURE__ */ __name(() => import_util_endpoints5.FunctionArgv, "FunctionArgv"),
      FunctionObject: /* @__PURE__ */ __name(() => import_util_endpoints5.FunctionObject, "FunctionObject"),
      FunctionReturn: /* @__PURE__ */ __name(() => import_util_endpoints5.FunctionReturn, "FunctionReturn"),
      ParameterObject: /* @__PURE__ */ __name(() => import_util_endpoints5.ParameterObject, "ParameterObject"),
      ReferenceObject: /* @__PURE__ */ __name(() => import_util_endpoints5.ReferenceObject, "ReferenceObject"),
      ReferenceRecord: /* @__PURE__ */ __name(() => import_util_endpoints5.ReferenceRecord, "ReferenceRecord"),
      RuleSetObject: /* @__PURE__ */ __name(() => import_util_endpoints5.RuleSetObject, "RuleSetObject"),
      RuleSetRules: /* @__PURE__ */ __name(() => import_util_endpoints5.RuleSetRules, "RuleSetRules"),
      TreeRuleObject: /* @__PURE__ */ __name(() => import_util_endpoints5.TreeRuleObject, "TreeRuleObject"),
      awsEndpointFunctions: /* @__PURE__ */ __name(() => awsEndpointFunctions3, "awsEndpointFunctions"),
      getUserAgentPrefix: /* @__PURE__ */ __name(() => getUserAgentPrefix, "getUserAgentPrefix"),
      isIpAddress: /* @__PURE__ */ __name(() => import_util_endpoints5.isIpAddress, "isIpAddress"),
      partition: /* @__PURE__ */ __name(() => partition3, "partition"),
      resolveDefaultAwsRegionalEndpointsConfig: /* @__PURE__ */ __name(() => resolveDefaultAwsRegionalEndpointsConfig, "resolveDefaultAwsRegionalEndpointsConfig"),
      resolveEndpoint: /* @__PURE__ */ __name(() => import_util_endpoints5.resolveEndpoint, "resolveEndpoint"),
      setPartitionInfo: /* @__PURE__ */ __name(() => setPartitionInfo, "setPartitionInfo"),
      toEndpointV1: /* @__PURE__ */ __name(() => toEndpointV1, "toEndpointV1"),
      useDefaultPartitionInfo: /* @__PURE__ */ __name(() => useDefaultPartitionInfo, "useDefaultPartitionInfo")
    });
    module2.exports = __toCommonJS2(index_exports);
    var import_util_endpoints5 = require_dist_cjs18();
    var isVirtualHostableS3Bucket = /* @__PURE__ */ __name2((value, allowSubDomains = false) => {
      if (allowSubDomains) {
        for (const label of value.split(".")) {
          if (!isVirtualHostableS3Bucket(label)) {
            return false;
          }
        }
        return true;
      }
      if (!(0, import_util_endpoints5.isValidHostLabel)(value)) {
        return false;
      }
      if (value.length < 3 || value.length > 63) {
        return false;
      }
      if (value !== value.toLowerCase()) {
        return false;
      }
      if ((0, import_util_endpoints5.isIpAddress)(value)) {
        return false;
      }
      return true;
    }, "isVirtualHostableS3Bucket");
    var ARN_DELIMITER = ":";
    var RESOURCE_DELIMITER = "/";
    var parseArn = /* @__PURE__ */ __name2((value) => {
      const segments = value.split(ARN_DELIMITER);
      if (segments.length < 6) return null;
      const [arn, partition22, service, region, accountId, ...resourcePath] = segments;
      if (arn !== "arn" || partition22 === "" || service === "" || resourcePath.join(ARN_DELIMITER) === "") return null;
      const resourceId = resourcePath.map((resource) => resource.split(RESOURCE_DELIMITER)).flat();
      return {
        partition: partition22,
        service,
        region,
        accountId,
        resourceId
      };
    }, "parseArn");
    var partitions_default = {
      partitions: [{
        id: "aws",
        outputs: {
          dnsSuffix: "amazonaws.com",
          dualStackDnsSuffix: "api.aws",
          implicitGlobalRegion: "us-east-1",
          name: "aws",
          supportsDualStack: true,
          supportsFIPS: true
        },
        regionRegex: "^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",
        regions: {
          "af-south-1": {
            description: "Africa (Cape Town)"
          },
          "ap-east-1": {
            description: "Asia Pacific (Hong Kong)"
          },
          "ap-east-2": {
            description: "Asia Pacific (Taipei)"
          },
          "ap-northeast-1": {
            description: "Asia Pacific (Tokyo)"
          },
          "ap-northeast-2": {
            description: "Asia Pacific (Seoul)"
          },
          "ap-northeast-3": {
            description: "Asia Pacific (Osaka)"
          },
          "ap-south-1": {
            description: "Asia Pacific (Mumbai)"
          },
          "ap-south-2": {
            description: "Asia Pacific (Hyderabad)"
          },
          "ap-southeast-1": {
            description: "Asia Pacific (Singapore)"
          },
          "ap-southeast-2": {
            description: "Asia Pacific (Sydney)"
          },
          "ap-southeast-3": {
            description: "Asia Pacific (Jakarta)"
          },
          "ap-southeast-4": {
            description: "Asia Pacific (Melbourne)"
          },
          "ap-southeast-5": {
            description: "Asia Pacific (Malaysia)"
          },
          "ap-southeast-6": {
            description: "Asia Pacific (New Zealand)"
          },
          "ap-southeast-7": {
            description: "Asia Pacific (Thailand)"
          },
          "aws-global": {
            description: "aws global region"
          },
          "ca-central-1": {
            description: "Canada (Central)"
          },
          "ca-west-1": {
            description: "Canada West (Calgary)"
          },
          "eu-central-1": {
            description: "Europe (Frankfurt)"
          },
          "eu-central-2": {
            description: "Europe (Zurich)"
          },
          "eu-north-1": {
            description: "Europe (Stockholm)"
          },
          "eu-south-1": {
            description: "Europe (Milan)"
          },
          "eu-south-2": {
            description: "Europe (Spain)"
          },
          "eu-west-1": {
            description: "Europe (Ireland)"
          },
          "eu-west-2": {
            description: "Europe (London)"
          },
          "eu-west-3": {
            description: "Europe (Paris)"
          },
          "il-central-1": {
            description: "Israel (Tel Aviv)"
          },
          "me-central-1": {
            description: "Middle East (UAE)"
          },
          "me-south-1": {
            description: "Middle East (Bahrain)"
          },
          "mx-central-1": {
            description: "Mexico (Central)"
          },
          "sa-east-1": {
            description: "South America (Sao Paulo)"
          },
          "us-east-1": {
            description: "US East (N. Virginia)"
          },
          "us-east-2": {
            description: "US East (Ohio)"
          },
          "us-west-1": {
            description: "US West (N. California)"
          },
          "us-west-2": {
            description: "US West (Oregon)"
          }
        }
      }, {
        id: "aws-cn",
        outputs: {
          dnsSuffix: "amazonaws.com.cn",
          dualStackDnsSuffix: "api.amazonwebservices.com.cn",
          implicitGlobalRegion: "cn-northwest-1",
          name: "aws-cn",
          supportsDualStack: true,
          supportsFIPS: true
        },
        regionRegex: "^cn\\-\\w+\\-\\d+$",
        regions: {
          "aws-cn-global": {
            description: "aws-cn global region"
          },
          "cn-north-1": {
            description: "China (Beijing)"
          },
          "cn-northwest-1": {
            description: "China (Ningxia)"
          }
        }
      }, {
        id: "aws-eusc",
        outputs: {
          dnsSuffix: "amazonaws.eu",
          dualStackDnsSuffix: "api.amazonwebservices.eu",
          implicitGlobalRegion: "eusc-de-east-1",
          name: "aws-eusc",
          supportsDualStack: true,
          supportsFIPS: true
        },
        regionRegex: "^eusc\\-(de)\\-\\w+\\-\\d+$",
        regions: {
          "eusc-de-east-1": {
            description: "EU (Germany)"
          }
        }
      }, {
        id: "aws-iso",
        outputs: {
          dnsSuffix: "c2s.ic.gov",
          dualStackDnsSuffix: "api.aws.ic.gov",
          implicitGlobalRegion: "us-iso-east-1",
          name: "aws-iso",
          supportsDualStack: false,
          supportsFIPS: true
        },
        regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
        regions: {
          "aws-iso-global": {
            description: "aws-iso global region"
          },
          "us-iso-east-1": {
            description: "US ISO East"
          },
          "us-iso-west-1": {
            description: "US ISO WEST"
          }
        }
      }, {
        id: "aws-iso-b",
        outputs: {
          dnsSuffix: "sc2s.sgov.gov",
          dualStackDnsSuffix: "api.aws.scloud",
          implicitGlobalRegion: "us-isob-east-1",
          name: "aws-iso-b",
          supportsDualStack: false,
          supportsFIPS: true
        },
        regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
        regions: {
          "aws-iso-b-global": {
            description: "aws-iso-b global region"
          },
          "us-isob-east-1": {
            description: "US ISOB East (Ohio)"
          }
        }
      }, {
        id: "aws-iso-e",
        outputs: {
          dnsSuffix: "cloud.adc-e.uk",
          dualStackDnsSuffix: "api.cloud-aws.adc-e.uk",
          implicitGlobalRegion: "eu-isoe-west-1",
          name: "aws-iso-e",
          supportsDualStack: false,
          supportsFIPS: true
        },
        regionRegex: "^eu\\-isoe\\-\\w+\\-\\d+$",
        regions: {
          "aws-iso-e-global": {
            description: "aws-iso-e global region"
          },
          "eu-isoe-west-1": {
            description: "EU ISOE West"
          }
        }
      }, {
        id: "aws-iso-f",
        outputs: {
          dnsSuffix: "csp.hci.ic.gov",
          dualStackDnsSuffix: "api.aws.hci.ic.gov",
          implicitGlobalRegion: "us-isof-south-1",
          name: "aws-iso-f",
          supportsDualStack: false,
          supportsFIPS: true
        },
        regionRegex: "^us\\-isof\\-\\w+\\-\\d+$",
        regions: {
          "aws-iso-f-global": {
            description: "aws-iso-f global region"
          },
          "us-isof-east-1": {
            description: "US ISOF EAST"
          },
          "us-isof-south-1": {
            description: "US ISOF SOUTH"
          }
        }
      }, {
        id: "aws-us-gov",
        outputs: {
          dnsSuffix: "amazonaws.com",
          dualStackDnsSuffix: "api.aws",
          implicitGlobalRegion: "us-gov-west-1",
          name: "aws-us-gov",
          supportsDualStack: true,
          supportsFIPS: true
        },
        regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
        regions: {
          "aws-us-gov-global": {
            description: "aws-us-gov global region"
          },
          "us-gov-east-1": {
            description: "AWS GovCloud (US-East)"
          },
          "us-gov-west-1": {
            description: "AWS GovCloud (US-West)"
          }
        }
      }],
      version: "1.1"
    };
    var selectedPartitionsInfo = partitions_default;
    var selectedUserAgentPrefix = "";
    var partition3 = /* @__PURE__ */ __name2((value) => {
      const { partitions } = selectedPartitionsInfo;
      for (const partition22 of partitions) {
        const { regions, outputs } = partition22;
        for (const [region, regionData] of Object.entries(regions)) {
          if (region === value) {
            return {
              ...outputs,
              ...regionData
            };
          }
        }
      }
      for (const partition22 of partitions) {
        const { regionRegex, outputs } = partition22;
        if (new RegExp(regionRegex).test(value)) {
          return {
            ...outputs
          };
        }
      }
      const DEFAULT_PARTITION = partitions.find((partition22) => partition22.id === "aws");
      if (!DEFAULT_PARTITION) {
        throw new Error(
          "Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist."
        );
      }
      return {
        ...DEFAULT_PARTITION.outputs
      };
    }, "partition");
    var setPartitionInfo = /* @__PURE__ */ __name2((partitionsInfo, userAgentPrefix = "") => {
      selectedPartitionsInfo = partitionsInfo;
      selectedUserAgentPrefix = userAgentPrefix;
    }, "setPartitionInfo");
    var useDefaultPartitionInfo = /* @__PURE__ */ __name2(() => {
      setPartitionInfo(partitions_default, "");
    }, "useDefaultPartitionInfo");
    var getUserAgentPrefix = /* @__PURE__ */ __name2(() => selectedUserAgentPrefix, "getUserAgentPrefix");
    var awsEndpointFunctions3 = {
      isVirtualHostableS3Bucket,
      parseArn,
      partition: partition3
    };
    import_util_endpoints5.customEndpointFunctions.aws = awsEndpointFunctions3;
    var import_url_parser3 = require_dist_cjs20();
    var resolveDefaultAwsRegionalEndpointsConfig = /* @__PURE__ */ __name2((input) => {
      if (typeof input.endpointProvider !== "function") {
        throw new Error("@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client.");
      }
      const { endpoint } = input;
      if (endpoint === void 0) {
        input.endpoint = async () => {
          return toEndpointV1(
            input.endpointProvider(
              {
                Region: typeof input.region === "function" ? await input.region() : input.region,
                UseDualStack: typeof input.useDualstackEndpoint === "function" ? await input.useDualstackEndpoint() : input.useDualstackEndpoint,
                UseFIPS: typeof input.useFipsEndpoint === "function" ? await input.useFipsEndpoint() : input.useFipsEndpoint,
                Endpoint: void 0
              },
              { logger: input.logger }
            )
          );
        };
      }
      return input;
    }, "resolveDefaultAwsRegionalEndpointsConfig");
    var toEndpointV1 = /* @__PURE__ */ __name2((endpoint) => (0, import_url_parser3.parseUrl)(endpoint.url), "toEndpointV1");
  }
});

// ../../node_modules/@aws-sdk/core/dist-es/submodules/client/emitWarningIfUnsupportedVersion.js
var state, emitWarningIfUnsupportedVersion;
var init_emitWarningIfUnsupportedVersion = __esm({
  "../../node_modules/@aws-sdk/core/dist-es/submodules/client/emitWarningIfUnsupportedVersion.js"() {
    state = {
      warningEmitted: false
    };
    emitWarningIfUnsupportedVersion = /* @__PURE__ */ __name((version2) => {
      if (version2 && !state.warningEmitted && parseInt(version2.substring(1, version2.indexOf("."))) < 18) {
        state.warningEmitted = true;
        process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will
no longer support Node.js 16.x on January 6, 2025.

To continue receiving updates to AWS services, bug fixes, and security
updates please upgrade to a supported Node.js LTS version.

More information can be found at: https://a.co/74kJMmI`);
      }
    }, "emitWarningIfUnsupportedVersion");
  }
});

// ../../node_modules/@aws-sdk/core/dist-es/submodules/client/setCredentialFeature.js
function setCredentialFeature(credentials, feature, value) {
  if (!credentials.$source) {
    credentials.$source = {};
  }
  credentials.$source[feature] = value;
  return credentials;
}
var init_setCredentialFeature = __esm({
  "../../node_modules/@aws-sdk/core/dist-es/submodules/client/setCredentialFeature.js"() {
    __name(setCredentialFeature, "setCredentialFeature");
  }
});

// ../../node_modules/@aws-sdk/core/dist-es/submodules/client/setFeature.js
function setFeature2(context, feature, value) {
  if (!context.__aws_sdk_context) {
    context.__aws_sdk_context = {
      features: {}
    };
  } else if (!context.__aws_sdk_context.features) {
    context.__aws_sdk_context.features = {};
  }
  context.__aws_sdk_context.features[feature] = value;
}
var init_setFeature2 = __esm({
  "../../node_modules/@aws-sdk/core/dist-es/submodules/client/setFeature.js"() {
    __name(setFeature2, "setFeature");
  }
});

// ../../node_modules/@aws-sdk/core/dist-es/submodules/client/setTokenFeature.js
function setTokenFeature(token, feature, value) {
  if (!token.$source) {
    token.$source = {};
  }
  token.$source[feature] = value;
  return token;
}
var init_setTokenFeature = __esm({
  "../../node_modules/@aws-sdk/core/dist-es/submodules/client/setTokenFeature.js"() {
    __name(setTokenFeature, "setTokenFeature");
  }
});

// ../../node_modules/@aws-sdk/core/dist-es/submodules/client/index.js
var client_exports = {};
__export(client_exports, {
  emitWarningIfUnsupportedVersion: () => emitWarningIfUnsupportedVersion,
  setCredentialFeature: () => setCredentialFeature,
  setFeature: () => setFeature2,
  setTokenFeature: () => setTokenFeature,
  state: () => state
});
var init_client = __esm({
  "../../node_modules/@aws-sdk/core/dist-es/submodules/client/index.js"() {
    init_emitWarningIfUnsupportedVersion();
    init_setCredentialFeature();
    init_setFeature2();
    init_setTokenFeature();
  }
});

// ../../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getDateHeader.js
var import_protocol_http9, getDateHeader;
var init_getDateHeader = __esm({
  "../../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getDateHeader.js"() {
    import_protocol_http9 = __toESM(require_dist_cjs2());
    getDateHeader = /* @__PURE__ */ __name((response) => import_protocol_http9.HttpResponse.isInstance(response) ? response.headers?.date ?? response.headers?.Date : void 0, "getDateHeader");
  }
});

// ../../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getSkewCorrectedDate.js
var getSkewCorrectedDate;
var init_getSkewCorrectedDate = __esm({
  "../../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getSkewCorrectedDate.js"() {
    getSkewCorrectedDate = /* @__PURE__ */ __name((systemClockOffset) => new Date(Date.now() + systemClockOffset), "getSkewCorrectedDate");
  }
});

// ../../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/isClockSkewed.js
var isClockSkewed;
var init_isClockSkewed = __esm({
  "../../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/isClockSkewed.js"() {
    init_getSkewCorrectedDate();
    isClockSkewed = /* @__PURE__ */ __name((clockTime, systemClockOffset) => Math.abs(getSkewCorrectedDate(systemClockOffset).getTime() - clockTime) >= 3e5, "isClockSkewed");
  }
});

// ../../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.js
var getUpdatedSystemClockOffset;
var init_getUpdatedSystemClockOffset = __esm({
  "../../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.js"() {
    init_isClockSkewed();
    getUpdatedSystemClockOffset = /* @__PURE__ */ __name((clockTime, currentSystemClockOffset) => {
      const clockTimeInMs = Date.parse(clockTime);
      if (isClockSkewed(clockTimeInMs, currentSystemClockOffset)) {
        return clockTimeInMs - Date.now();
      }
      return currentSystemClockOffset;
    }, "getUpdatedSystemClockOffset");
  }
});

// ../../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/index.js
var init_utils = __esm({
  "../../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/index.js"() {
    init_getDateHeader();
    init_getSkewCorrectedDate();
    init_getUpdatedSystemClockOffset();
  }
});

// ../../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js
var import_protocol_http10, throwSigningPropertyError, validateSigningProperties, AwsSdkSigV4Signer, AWSSDKSigV4Signer;
var init_AwsSdkSigV4Signer = __esm({
  "../../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js"() {
    import_protocol_http10 = __toESM(require_dist_cjs2());
    init_utils();
    throwSigningPropertyError = /* @__PURE__ */ __name((name, property) => {
      if (!property) {
        throw new Error(`Property \`${name}\` is not resolved for AWS SDK SigV4Auth`);
      }
      return property;
    }, "throwSigningPropertyError");
    validateSigningProperties = /* @__PURE__ */ __name(async (signingProperties) => {
      const context = throwSigningPropertyError("context", signingProperties.context);
      const config = throwSigningPropertyError("config", signingProperties.config);
      const authScheme = context.endpointV2?.properties?.authSchemes?.[0];
      const signerFunction = throwSigningPropertyError("signer", config.signer);
      const signer = await signerFunction(authScheme);
      const signingRegion = signingProperties?.signingRegion;
      const signingRegionSet = signingProperties?.signingRegionSet;
      const signingName = signingProperties?.signingName;
      return {
        config,
        signer,
        signingRegion,
        signingRegionSet,
        signingName
      };
    }, "validateSigningProperties");
    AwsSdkSigV4Signer = class {
      static {
        __name(this, "AwsSdkSigV4Signer");
      }
      async sign(httpRequest, identity, signingProperties) {
        if (!import_protocol_http10.HttpRequest.isInstance(httpRequest)) {
          throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");
        }
        const validatedProps = await validateSigningProperties(signingProperties);
        const { config, signer } = validatedProps;
        let { signingRegion, signingName } = validatedProps;
        const handlerExecutionContext = signingProperties.context;
        if (handlerExecutionContext?.authSchemes?.length ?? 0 > 1) {
          const [first, second] = handlerExecutionContext.authSchemes;
          if (first?.name === "sigv4a" && second?.name === "sigv4") {
            signingRegion = second?.signingRegion ?? signingRegion;
            signingName = second?.signingName ?? signingName;
          }
        }
        const signedRequest = await signer.sign(httpRequest, {
          signingDate: getSkewCorrectedDate(config.systemClockOffset),
          signingRegion,
          signingService: signingName
        });
        return signedRequest;
      }
      errorHandler(signingProperties) {
        return (error5) => {
          const serverTime = error5.ServerTime ?? getDateHeader(error5.$response);
          if (serverTime) {
            const config = throwSigningPropertyError("config", signingProperties.config);
            const initialSystemClockOffset = config.systemClockOffset;
            config.systemClockOffset = getUpdatedSystemClockOffset(serverTime, config.systemClockOffset);
            const clockSkewCorrected = config.systemClockOffset !== initialSystemClockOffset;
            if (clockSkewCorrected && error5.$metadata) {
              error5.$metadata.clockSkewCorrected = true;
            }
          }
          throw error5;
        };
      }
      successHandler(httpResponse, signingProperties) {
        const dateHeader = getDateHeader(httpResponse);
        if (dateHeader) {
          const config = throwSigningPropertyError("config", signingProperties.config);
          config.systemClockOffset = getUpdatedSystemClockOffset(dateHeader, config.systemClockOffset);
        }
      }
    };
    AWSSDKSigV4Signer = AwsSdkSigV4Signer;
  }
});

// ../../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.js
var import_protocol_http11, AwsSdkSigV4ASigner;
var init_AwsSdkSigV4ASigner = __esm({
  "../../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.js"() {
    import_protocol_http11 = __toESM(require_dist_cjs2());
    init_utils();
    init_AwsSdkSigV4Signer();
    AwsSdkSigV4ASigner = class extends AwsSdkSigV4Signer {
      static {
        __name(this, "AwsSdkSigV4ASigner");
      }
      async sign(httpRequest, identity, signingProperties) {
        if (!import_protocol_http11.HttpRequest.isInstance(httpRequest)) {
          throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");
        }
        const { config, signer, signingRegion, signingRegionSet, signingName } = await validateSigningProperties(signingProperties);
        const configResolvedSigningRegionSet = await config.sigv4aSigningRegionSet?.();
        const multiRegionOverride = (configResolvedSigningRegionSet ?? signingRegionSet ?? [signingRegion]).join(",");
        const signedRequest = await signer.sign(httpRequest, {
          signingDate: getSkewCorrectedDate(config.systemClockOffset),
          signingRegion: multiRegionOverride,
          signingService: signingName
        });
        return signedRequest;
      }
    };
  }
});

// ../../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getArrayForCommaSeparatedString.js
var getArrayForCommaSeparatedString;
var init_getArrayForCommaSeparatedString = __esm({
  "../../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getArrayForCommaSeparatedString.js"() {
    getArrayForCommaSeparatedString = /* @__PURE__ */ __name((str) => typeof str === "string" && str.length > 0 ? str.split(",").map((item) => item.trim()) : [], "getArrayForCommaSeparatedString");
  }
});

// ../../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getBearerTokenEnvKey.js
var getBearerTokenEnvKey;
var init_getBearerTokenEnvKey = __esm({
  "../../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getBearerTokenEnvKey.js"() {
    getBearerTokenEnvKey = /* @__PURE__ */ __name((signingName) => `AWS_BEARER_TOKEN_${signingName.replace(/[\s-]/g, "_").toUpperCase()}`, "getBearerTokenEnvKey");
  }
});

// ../../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.js
var NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY, NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS;
var init_NODE_AUTH_SCHEME_PREFERENCE_OPTIONS = __esm({
  "../../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.js"() {
    init_getArrayForCommaSeparatedString();
    init_getBearerTokenEnvKey();
    NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY = "AWS_AUTH_SCHEME_PREFERENCE";
    NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY = "auth_scheme_preference";
    NODE_AUTH_SCHEME_PREFERENCE_OPTIONS = {
      environmentVariableSelector: /* @__PURE__ */ __name((env2, options) => {
        if (options?.signingName) {
          const bearerTokenKey = getBearerTokenEnvKey(options.signingName);
          if (bearerTokenKey in env2)
            return ["httpBearerAuth"];
        }
        if (!(NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY in env2))
          return void 0;
        return getArrayForCommaSeparatedString(env2[NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY]);
      }, "environmentVariableSelector"),
      configFileSelector: /* @__PURE__ */ __name((profile) => {
        if (!(NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY in profile))
          return void 0;
        return getArrayForCommaSeparatedString(profile[NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY]);
      }, "configFileSelector"),
      default: []
    };
  }
});

// ../../node_modules/@smithy/property-provider/dist-cjs/index.js
var require_dist_cjs22 = __commonJS({
  "../../node_modules/@smithy/property-provider/dist-cjs/index.js"(exports2, module2) {
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var src_exports = {};
    __export2(src_exports, {
      CredentialsProviderError: /* @__PURE__ */ __name(() => CredentialsProviderError, "CredentialsProviderError"),
      ProviderError: /* @__PURE__ */ __name(() => ProviderError2, "ProviderError"),
      TokenProviderError: /* @__PURE__ */ __name(() => TokenProviderError, "TokenProviderError"),
      chain: /* @__PURE__ */ __name(() => chain, "chain"),
      fromStatic: /* @__PURE__ */ __name(() => fromStatic, "fromStatic"),
      memoize: /* @__PURE__ */ __name(() => memoize2, "memoize")
    });
    module2.exports = __toCommonJS2(src_exports);
    var ProviderError2 = class _ProviderError extends Error {
      static {
        __name(this, "_ProviderError");
      }
      constructor(message2, options = true) {
        let logger4;
        let tryNextLink = true;
        if (typeof options === "boolean") {
          logger4 = void 0;
          tryNextLink = options;
        } else if (options != null && typeof options === "object") {
          logger4 = options.logger;
          tryNextLink = options.tryNextLink ?? true;
        }
        super(message2);
        this.name = "ProviderError";
        this.tryNextLink = tryNextLink;
        Object.setPrototypeOf(this, _ProviderError.prototype);
        logger4?.debug?.(`@smithy/property-provider ${tryNextLink ? "->" : "(!)"} ${message2}`);
      }
      static {
        __name2(this, "ProviderError");
      }
      /**
       * @deprecated use new operator.
       */
      static from(error5, options = true) {
        return Object.assign(new this(error5.message, options), error5);
      }
    };
    var CredentialsProviderError = class _CredentialsProviderError extends ProviderError2 {
      static {
        __name(this, "_CredentialsProviderError");
      }
      /**
       * @override
       */
      constructor(message2, options = true) {
        super(message2, options);
        this.name = "CredentialsProviderError";
        Object.setPrototypeOf(this, _CredentialsProviderError.prototype);
      }
      static {
        __name2(this, "CredentialsProviderError");
      }
    };
    var TokenProviderError = class _TokenProviderError extends ProviderError2 {
      static {
        __name(this, "_TokenProviderError");
      }
      /**
       * @override
       */
      constructor(message2, options = true) {
        super(message2, options);
        this.name = "TokenProviderError";
        Object.setPrototypeOf(this, _TokenProviderError.prototype);
      }
      static {
        __name2(this, "TokenProviderError");
      }
    };
    var chain = /* @__PURE__ */ __name2((...providers) => async () => {
      if (providers.length === 0) {
        throw new ProviderError2("No providers in chain");
      }
      let lastProviderError;
      for (const provider of providers) {
        try {
          const credentials = await provider();
          return credentials;
        } catch (err) {
          lastProviderError = err;
          if (err?.tryNextLink) {
            continue;
          }
          throw err;
        }
      }
      throw lastProviderError;
    }, "chain");
    var fromStatic = /* @__PURE__ */ __name2((staticValue) => () => Promise.resolve(staticValue), "fromStatic");
    var memoize2 = /* @__PURE__ */ __name2((provider, isExpired, requiresRefresh) => {
      let resolved;
      let pending;
      let hasResult;
      let isConstant = false;
      const coalesceProvider = /* @__PURE__ */ __name2(async () => {
        if (!pending) {
          pending = provider();
        }
        try {
          resolved = await pending;
          hasResult = true;
          isConstant = false;
        } finally {
          pending = void 0;
        }
        return resolved;
      }, "coalesceProvider");
      if (isExpired === void 0) {
        return async (options) => {
          if (!hasResult || options?.forceRefresh) {
            resolved = await coalesceProvider();
          }
          return resolved;
        };
      }
      return async (options) => {
        if (!hasResult || options?.forceRefresh) {
          resolved = await coalesceProvider();
        }
        if (isConstant) {
          return resolved;
        }
        if (requiresRefresh && !requiresRefresh(resolved)) {
          isConstant = true;
          return resolved;
        }
        if (isExpired(resolved)) {
          await coalesceProvider();
          return resolved;
        }
        return resolved;
      };
    }, "memoize");
  }
});

// ../../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.js
var import_property_provider, resolveAwsSdkSigV4AConfig, NODE_SIGV4A_CONFIG_OPTIONS;
var init_resolveAwsSdkSigV4AConfig = __esm({
  "../../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.js"() {
    init_dist_es();
    import_property_provider = __toESM(require_dist_cjs22());
    resolveAwsSdkSigV4AConfig = /* @__PURE__ */ __name((config) => {
      config.sigv4aSigningRegionSet = normalizeProvider(config.sigv4aSigningRegionSet);
      return config;
    }, "resolveAwsSdkSigV4AConfig");
    NODE_SIGV4A_CONFIG_OPTIONS = {
      environmentVariableSelector(env2) {
        if (env2.AWS_SIGV4A_SIGNING_REGION_SET) {
          return env2.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((_3) => _3.trim());
        }
        throw new import_property_provider.ProviderError("AWS_SIGV4A_SIGNING_REGION_SET not set in env.", {
          tryNextLink: true
        });
      },
      configFileSelector(profile) {
        if (profile.sigv4a_signing_region_set) {
          return (profile.sigv4a_signing_region_set ?? "").split(",").map((_3) => _3.trim());
        }
        throw new import_property_provider.ProviderError("sigv4a_signing_region_set not set in profile.", {
          tryNextLink: true
        });
      },
      default: void 0
    };
  }
});

// ../../node_modules/@smithy/signature-v4/dist-cjs/index.js
var require_dist_cjs23 = __commonJS({
  "../../node_modules/@smithy/signature-v4/dist-cjs/index.js"(exports2, module2) {
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var src_exports = {};
    __export2(src_exports, {
      ALGORITHM_IDENTIFIER: /* @__PURE__ */ __name(() => ALGORITHM_IDENTIFIER, "ALGORITHM_IDENTIFIER"),
      ALGORITHM_IDENTIFIER_V4A: /* @__PURE__ */ __name(() => ALGORITHM_IDENTIFIER_V4A, "ALGORITHM_IDENTIFIER_V4A"),
      ALGORITHM_QUERY_PARAM: /* @__PURE__ */ __name(() => ALGORITHM_QUERY_PARAM, "ALGORITHM_QUERY_PARAM"),
      ALWAYS_UNSIGNABLE_HEADERS: /* @__PURE__ */ __name(() => ALWAYS_UNSIGNABLE_HEADERS, "ALWAYS_UNSIGNABLE_HEADERS"),
      AMZ_DATE_HEADER: /* @__PURE__ */ __name(() => AMZ_DATE_HEADER, "AMZ_DATE_HEADER"),
      AMZ_DATE_QUERY_PARAM: /* @__PURE__ */ __name(() => AMZ_DATE_QUERY_PARAM, "AMZ_DATE_QUERY_PARAM"),
      AUTH_HEADER: /* @__PURE__ */ __name(() => AUTH_HEADER, "AUTH_HEADER"),
      CREDENTIAL_QUERY_PARAM: /* @__PURE__ */ __name(() => CREDENTIAL_QUERY_PARAM, "CREDENTIAL_QUERY_PARAM"),
      DATE_HEADER: /* @__PURE__ */ __name(() => DATE_HEADER, "DATE_HEADER"),
      EVENT_ALGORITHM_IDENTIFIER: /* @__PURE__ */ __name(() => EVENT_ALGORITHM_IDENTIFIER, "EVENT_ALGORITHM_IDENTIFIER"),
      EXPIRES_QUERY_PARAM: /* @__PURE__ */ __name(() => EXPIRES_QUERY_PARAM, "EXPIRES_QUERY_PARAM"),
      GENERATED_HEADERS: /* @__PURE__ */ __name(() => GENERATED_HEADERS, "GENERATED_HEADERS"),
      HOST_HEADER: /* @__PURE__ */ __name(() => HOST_HEADER, "HOST_HEADER"),
      KEY_TYPE_IDENTIFIER: /* @__PURE__ */ __name(() => KEY_TYPE_IDENTIFIER, "KEY_TYPE_IDENTIFIER"),
      MAX_CACHE_SIZE: /* @__PURE__ */ __name(() => MAX_CACHE_SIZE, "MAX_CACHE_SIZE"),
      MAX_PRESIGNED_TTL: /* @__PURE__ */ __name(() => MAX_PRESIGNED_TTL, "MAX_PRESIGNED_TTL"),
      PROXY_HEADER_PATTERN: /* @__PURE__ */ __name(() => PROXY_HEADER_PATTERN, "PROXY_HEADER_PATTERN"),
      REGION_SET_PARAM: /* @__PURE__ */ __name(() => REGION_SET_PARAM, "REGION_SET_PARAM"),
      SEC_HEADER_PATTERN: /* @__PURE__ */ __name(() => SEC_HEADER_PATTERN, "SEC_HEADER_PATTERN"),
      SHA256_HEADER: /* @__PURE__ */ __name(() => SHA256_HEADER, "SHA256_HEADER"),
      SIGNATURE_HEADER: /* @__PURE__ */ __name(() => SIGNATURE_HEADER, "SIGNATURE_HEADER"),
      SIGNATURE_QUERY_PARAM: /* @__PURE__ */ __name(() => SIGNATURE_QUERY_PARAM, "SIGNATURE_QUERY_PARAM"),
      SIGNED_HEADERS_QUERY_PARAM: /* @__PURE__ */ __name(() => SIGNED_HEADERS_QUERY_PARAM, "SIGNED_HEADERS_QUERY_PARAM"),
      SignatureV4: /* @__PURE__ */ __name(() => SignatureV42, "SignatureV4"),
      SignatureV4Base: /* @__PURE__ */ __name(() => SignatureV4Base, "SignatureV4Base"),
      TOKEN_HEADER: /* @__PURE__ */ __name(() => TOKEN_HEADER, "TOKEN_HEADER"),
      TOKEN_QUERY_PARAM: /* @__PURE__ */ __name(() => TOKEN_QUERY_PARAM, "TOKEN_QUERY_PARAM"),
      UNSIGNABLE_PATTERNS: /* @__PURE__ */ __name(() => UNSIGNABLE_PATTERNS, "UNSIGNABLE_PATTERNS"),
      UNSIGNED_PAYLOAD: /* @__PURE__ */ __name(() => UNSIGNED_PAYLOAD, "UNSIGNED_PAYLOAD"),
      clearCredentialCache: /* @__PURE__ */ __name(() => clearCredentialCache, "clearCredentialCache"),
      createScope: /* @__PURE__ */ __name(() => createScope, "createScope"),
      getCanonicalHeaders: /* @__PURE__ */ __name(() => getCanonicalHeaders, "getCanonicalHeaders"),
      getCanonicalQuery: /* @__PURE__ */ __name(() => getCanonicalQuery, "getCanonicalQuery"),
      getPayloadHash: /* @__PURE__ */ __name(() => getPayloadHash, "getPayloadHash"),
      getSigningKey: /* @__PURE__ */ __name(() => getSigningKey, "getSigningKey"),
      hasHeader: /* @__PURE__ */ __name(() => hasHeader, "hasHeader"),
      moveHeadersToQuery: /* @__PURE__ */ __name(() => moveHeadersToQuery, "moveHeadersToQuery"),
      prepareRequest: /* @__PURE__ */ __name(() => prepareRequest, "prepareRequest"),
      signatureV4aContainer: /* @__PURE__ */ __name(() => signatureV4aContainer, "signatureV4aContainer")
    });
    module2.exports = __toCommonJS2(src_exports);
    var import_util_utf852 = require_dist_cjs10();
    var ALGORITHM_QUERY_PARAM = "X-Amz-Algorithm";
    var CREDENTIAL_QUERY_PARAM = "X-Amz-Credential";
    var AMZ_DATE_QUERY_PARAM = "X-Amz-Date";
    var SIGNED_HEADERS_QUERY_PARAM = "X-Amz-SignedHeaders";
    var EXPIRES_QUERY_PARAM = "X-Amz-Expires";
    var SIGNATURE_QUERY_PARAM = "X-Amz-Signature";
    var TOKEN_QUERY_PARAM = "X-Amz-Security-Token";
    var REGION_SET_PARAM = "X-Amz-Region-Set";
    var AUTH_HEADER = "authorization";
    var AMZ_DATE_HEADER = AMZ_DATE_QUERY_PARAM.toLowerCase();
    var DATE_HEADER = "date";
    var GENERATED_HEADERS = [AUTH_HEADER, AMZ_DATE_HEADER, DATE_HEADER];
    var SIGNATURE_HEADER = SIGNATURE_QUERY_PARAM.toLowerCase();
    var SHA256_HEADER = "x-amz-content-sha256";
    var TOKEN_HEADER = TOKEN_QUERY_PARAM.toLowerCase();
    var HOST_HEADER = "host";
    var ALWAYS_UNSIGNABLE_HEADERS = {
      authorization: true,
      "cache-control": true,
      connection: true,
      expect: true,
      from: true,
      "keep-alive": true,
      "max-forwards": true,
      pragma: true,
      referer: true,
      te: true,
      trailer: true,
      "transfer-encoding": true,
      upgrade: true,
      "user-agent": true,
      "x-amzn-trace-id": true
    };
    var PROXY_HEADER_PATTERN = /^proxy-/;
    var SEC_HEADER_PATTERN = /^sec-/;
    var UNSIGNABLE_PATTERNS = [/^proxy-/i, /^sec-/i];
    var ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256";
    var ALGORITHM_IDENTIFIER_V4A = "AWS4-ECDSA-P256-SHA256";
    var EVENT_ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256-PAYLOAD";
    var UNSIGNED_PAYLOAD = "UNSIGNED-PAYLOAD";
    var MAX_CACHE_SIZE = 50;
    var KEY_TYPE_IDENTIFIER = "aws4_request";
    var MAX_PRESIGNED_TTL = 60 * 60 * 24 * 7;
    var import_util_hex_encoding = require_dist_cjs16();
    var import_util_utf810 = require_dist_cjs10();
    var signingKeyCache = {};
    var cacheQueue = [];
    var createScope = /* @__PURE__ */ __name2((shortDate, region, service) => `${shortDate}/${region}/${service}/${KEY_TYPE_IDENTIFIER}`, "createScope");
    var getSigningKey = /* @__PURE__ */ __name2(async (sha256Constructor, credentials, shortDate, region, service) => {
      const credsHash = await hmac(sha256Constructor, credentials.secretAccessKey, credentials.accessKeyId);
      const cacheKey = `${shortDate}:${region}:${service}:${(0, import_util_hex_encoding.toHex)(credsHash)}:${credentials.sessionToken}`;
      if (cacheKey in signingKeyCache) {
        return signingKeyCache[cacheKey];
      }
      cacheQueue.push(cacheKey);
      while (cacheQueue.length > MAX_CACHE_SIZE) {
        delete signingKeyCache[cacheQueue.shift()];
      }
      let key = `AWS4${credentials.secretAccessKey}`;
      for (const signable of [shortDate, region, service, KEY_TYPE_IDENTIFIER]) {
        key = await hmac(sha256Constructor, key, signable);
      }
      return signingKeyCache[cacheKey] = key;
    }, "getSigningKey");
    var clearCredentialCache = /* @__PURE__ */ __name2(() => {
      cacheQueue.length = 0;
      Object.keys(signingKeyCache).forEach((cacheKey) => {
        delete signingKeyCache[cacheKey];
      });
    }, "clearCredentialCache");
    var hmac = /* @__PURE__ */ __name2((ctor, secret, data3) => {
      const hash = new ctor(secret);
      hash.update((0, import_util_utf810.toUint8Array)(data3));
      return hash.digest();
    }, "hmac");
    var getCanonicalHeaders = /* @__PURE__ */ __name2(({ headers }, unsignableHeaders, signableHeaders) => {
      const canonical = {};
      for (const headerName of Object.keys(headers).sort()) {
        if (headers[headerName] == void 0) {
          continue;
        }
        const canonicalHeaderName = headerName.toLowerCase();
        if (canonicalHeaderName in ALWAYS_UNSIGNABLE_HEADERS || unsignableHeaders?.has(canonicalHeaderName) || PROXY_HEADER_PATTERN.test(canonicalHeaderName) || SEC_HEADER_PATTERN.test(canonicalHeaderName)) {
          if (!signableHeaders || signableHeaders && !signableHeaders.has(canonicalHeaderName)) {
            continue;
          }
        }
        canonical[canonicalHeaderName] = headers[headerName].trim().replace(/\s+/g, " ");
      }
      return canonical;
    }, "getCanonicalHeaders");
    var import_is_array_buffer = require_dist_cjs8();
    var import_util_utf822 = require_dist_cjs10();
    var getPayloadHash = /* @__PURE__ */ __name2(async ({ headers, body }, hashConstructor) => {
      for (const headerName of Object.keys(headers)) {
        if (headerName.toLowerCase() === SHA256_HEADER) {
          return headers[headerName];
        }
      }
      if (body == void 0) {
        return "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";
      } else if (typeof body === "string" || ArrayBuffer.isView(body) || (0, import_is_array_buffer.isArrayBuffer)(body)) {
        const hashCtor = new hashConstructor();
        hashCtor.update((0, import_util_utf822.toUint8Array)(body));
        return (0, import_util_hex_encoding.toHex)(await hashCtor.digest());
      }
      return UNSIGNED_PAYLOAD;
    }, "getPayloadHash");
    var import_util_utf832 = require_dist_cjs10();
    var HeaderFormatter = class {
      static {
        __name(this, "HeaderFormatter");
      }
      static {
        __name2(this, "HeaderFormatter");
      }
      format(headers) {
        const chunks2 = [];
        for (const headerName of Object.keys(headers)) {
          const bytes = (0, import_util_utf832.fromUtf8)(headerName);
          chunks2.push(Uint8Array.from([bytes.byteLength]), bytes, this.formatHeaderValue(headers[headerName]));
        }
        const out = new Uint8Array(chunks2.reduce((carry, bytes) => carry + bytes.byteLength, 0));
        let position = 0;
        for (const chunk of chunks2) {
          out.set(chunk, position);
          position += chunk.byteLength;
        }
        return out;
      }
      formatHeaderValue(header) {
        switch (header.type) {
          case "boolean":
            return Uint8Array.from([
              header.value ? 0 : 1
              /* boolFalse */
            ]);
          case "byte":
            return Uint8Array.from([2, header.value]);
          case "short":
            const shortView = new DataView(new ArrayBuffer(3));
            shortView.setUint8(
              0,
              3
              /* short */
            );
            shortView.setInt16(1, header.value, false);
            return new Uint8Array(shortView.buffer);
          case "integer":
            const intView = new DataView(new ArrayBuffer(5));
            intView.setUint8(
              0,
              4
              /* integer */
            );
            intView.setInt32(1, header.value, false);
            return new Uint8Array(intView.buffer);
          case "long":
            const longBytes = new Uint8Array(9);
            longBytes[0] = 5;
            longBytes.set(header.value.bytes, 1);
            return longBytes;
          case "binary":
            const binView = new DataView(new ArrayBuffer(3 + header.value.byteLength));
            binView.setUint8(
              0,
              6
              /* byteArray */
            );
            binView.setUint16(1, header.value.byteLength, false);
            const binBytes = new Uint8Array(binView.buffer);
            binBytes.set(header.value, 3);
            return binBytes;
          case "string":
            const utf8Bytes = (0, import_util_utf832.fromUtf8)(header.value);
            const strView = new DataView(new ArrayBuffer(3 + utf8Bytes.byteLength));
            strView.setUint8(
              0,
              7
              /* string */
            );
            strView.setUint16(1, utf8Bytes.byteLength, false);
            const strBytes = new Uint8Array(strView.buffer);
            strBytes.set(utf8Bytes, 3);
            return strBytes;
          case "timestamp":
            const tsBytes = new Uint8Array(9);
            tsBytes[0] = 8;
            tsBytes.set(Int64.fromNumber(header.value.valueOf()).bytes, 1);
            return tsBytes;
          case "uuid":
            if (!UUID_PATTERN.test(header.value)) {
              throw new Error(`Invalid UUID received: ${header.value}`);
            }
            const uuidBytes = new Uint8Array(17);
            uuidBytes[0] = 9;
            uuidBytes.set((0, import_util_hex_encoding.fromHex)(header.value.replace(/\-/g, "")), 1);
            return uuidBytes;
        }
      }
    };
    var UUID_PATTERN = /^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;
    var Int64 = class _Int64 {
      static {
        __name(this, "_Int64");
      }
      constructor(bytes) {
        this.bytes = bytes;
        if (bytes.byteLength !== 8) {
          throw new Error("Int64 buffers must be exactly 8 bytes");
        }
      }
      static {
        __name2(this, "Int64");
      }
      static fromNumber(number) {
        if (number > 9223372036854776e3 || number < -9223372036854776e3) {
          throw new Error(`${number} is too large (or, if negative, too small) to represent as an Int64`);
        }
        const bytes = new Uint8Array(8);
        for (let i3 = 7, remaining = Math.abs(Math.round(number)); i3 > -1 && remaining > 0; i3--, remaining /= 256) {
          bytes[i3] = remaining;
        }
        if (number < 0) {
          negate(bytes);
        }
        return new _Int64(bytes);
      }
      /**
       * Called implicitly by infix arithmetic operators.
       */
      valueOf() {
        const bytes = this.bytes.slice(0);
        const negative = bytes[0] & 128;
        if (negative) {
          negate(bytes);
        }
        return parseInt((0, import_util_hex_encoding.toHex)(bytes), 16) * (negative ? -1 : 1);
      }
      toString() {
        return String(this.valueOf());
      }
    };
    function negate(bytes) {
      for (let i3 = 0; i3 < 8; i3++) {
        bytes[i3] ^= 255;
      }
      for (let i3 = 7; i3 > -1; i3--) {
        bytes[i3]++;
        if (bytes[i3] !== 0)
          break;
      }
    }
    __name(negate, "negate");
    __name2(negate, "negate");
    var hasHeader = /* @__PURE__ */ __name2((soughtHeader, headers) => {
      soughtHeader = soughtHeader.toLowerCase();
      for (const headerName of Object.keys(headers)) {
        if (soughtHeader === headerName.toLowerCase()) {
          return true;
        }
      }
      return false;
    }, "hasHeader");
    var import_protocol_http16 = require_dist_cjs2();
    var moveHeadersToQuery = /* @__PURE__ */ __name2((request2, options = {}) => {
      const { headers, query = {} } = import_protocol_http16.HttpRequest.clone(request2);
      for (const name of Object.keys(headers)) {
        const lname = name.toLowerCase();
        if (lname.slice(0, 6) === "x-amz-" && !options.unhoistableHeaders?.has(lname) || options.hoistableHeaders?.has(lname)) {
          query[name] = headers[name];
          delete headers[name];
        }
      }
      return {
        ...request2,
        headers,
        query
      };
    }, "moveHeadersToQuery");
    var prepareRequest = /* @__PURE__ */ __name2((request2) => {
      request2 = import_protocol_http16.HttpRequest.clone(request2);
      for (const headerName of Object.keys(request2.headers)) {
        if (GENERATED_HEADERS.indexOf(headerName.toLowerCase()) > -1) {
          delete request2.headers[headerName];
        }
      }
      return request2;
    }, "prepareRequest");
    var import_util_middleware8 = require_dist_cjs6();
    var import_util_utf842 = require_dist_cjs10();
    var import_util_uri_escape = require_dist_cjs12();
    var getCanonicalQuery = /* @__PURE__ */ __name2(({ query = {} }) => {
      const keys = [];
      const serialized = {};
      for (const key of Object.keys(query)) {
        if (key.toLowerCase() === SIGNATURE_HEADER) {
          continue;
        }
        const encodedKey = (0, import_util_uri_escape.escapeUri)(key);
        keys.push(encodedKey);
        const value = query[key];
        if (typeof value === "string") {
          serialized[encodedKey] = `${encodedKey}=${(0, import_util_uri_escape.escapeUri)(value)}`;
        } else if (Array.isArray(value)) {
          serialized[encodedKey] = value.slice(0).reduce((encoded, value2) => encoded.concat([`${encodedKey}=${(0, import_util_uri_escape.escapeUri)(value2)}`]), []).sort().join("&");
        }
      }
      return keys.sort().map((key) => serialized[key]).filter((serialized2) => serialized2).join("&");
    }, "getCanonicalQuery");
    var iso8601 = /* @__PURE__ */ __name2((time) => toDate(time).toISOString().replace(/\.\d{3}Z$/, "Z"), "iso8601");
    var toDate = /* @__PURE__ */ __name2((time) => {
      if (typeof time === "number") {
        return new Date(time * 1e3);
      }
      if (typeof time === "string") {
        if (Number(time)) {
          return new Date(Number(time) * 1e3);
        }
        return new Date(time);
      }
      return time;
    }, "toDate");
    var SignatureV4Base = class {
      static {
        __name(this, "SignatureV4Base");
      }
      static {
        __name2(this, "SignatureV4Base");
      }
      constructor({
        applyChecksum,
        credentials,
        region,
        service,
        sha256,
        uriEscapePath = true
      }) {
        this.service = service;
        this.sha256 = sha256;
        this.uriEscapePath = uriEscapePath;
        this.applyChecksum = typeof applyChecksum === "boolean" ? applyChecksum : true;
        this.regionProvider = (0, import_util_middleware8.normalizeProvider)(region);
        this.credentialProvider = (0, import_util_middleware8.normalizeProvider)(credentials);
      }
      createCanonicalRequest(request2, canonicalHeaders, payloadHash) {
        const sortedHeaders = Object.keys(canonicalHeaders).sort();
        return `${request2.method}
${this.getCanonicalPath(request2)}
${getCanonicalQuery(request2)}
${sortedHeaders.map((name) => `${name}:${canonicalHeaders[name]}`).join("\n")}

${sortedHeaders.join(";")}
${payloadHash}`;
      }
      async createStringToSign(longDate, credentialScope, canonicalRequest, algorithmIdentifier) {
        const hash = new this.sha256();
        hash.update((0, import_util_utf842.toUint8Array)(canonicalRequest));
        const hashedRequest = await hash.digest();
        return `${algorithmIdentifier}
${longDate}
${credentialScope}
${(0, import_util_hex_encoding.toHex)(hashedRequest)}`;
      }
      getCanonicalPath({ path: path38 }) {
        if (this.uriEscapePath) {
          const normalizedPathSegments = [];
          for (const pathSegment of path38.split("/")) {
            if (pathSegment?.length === 0)
              continue;
            if (pathSegment === ".")
              continue;
            if (pathSegment === "..") {
              normalizedPathSegments.pop();
            } else {
              normalizedPathSegments.push(pathSegment);
            }
          }
          const normalizedPath = `${path38?.startsWith("/") ? "/" : ""}${normalizedPathSegments.join("/")}${normalizedPathSegments.length > 0 && path38?.endsWith("/") ? "/" : ""}`;
          const doubleEncoded = (0, import_util_uri_escape.escapeUri)(normalizedPath);
          return doubleEncoded.replace(/%2F/g, "/");
        }
        return path38;
      }
      validateResolvedCredentials(credentials) {
        if (typeof credentials !== "object" || // @ts-expect-error: Property 'accessKeyId' does not exist on type 'object'.ts(2339)
        typeof credentials.accessKeyId !== "string" || // @ts-expect-error: Property 'secretAccessKey' does not exist on type 'object'.ts(2339)
        typeof credentials.secretAccessKey !== "string") {
          throw new Error("Resolved credential object is not valid");
        }
      }
      formatDate(now) {
        const longDate = iso8601(now).replace(/[\-:]/g, "");
        return {
          longDate,
          shortDate: longDate.slice(0, 8)
        };
      }
      getCanonicalHeaderList(headers) {
        return Object.keys(headers).sort().join(";");
      }
    };
    var SignatureV42 = class extends SignatureV4Base {
      static {
        __name(this, "SignatureV4");
      }
      constructor({
        applyChecksum,
        credentials,
        region,
        service,
        sha256,
        uriEscapePath = true
      }) {
        super({
          applyChecksum,
          credentials,
          region,
          service,
          sha256,
          uriEscapePath
        });
        this.headerFormatter = new HeaderFormatter();
      }
      static {
        __name2(this, "SignatureV4");
      }
      async presign(originalRequest, options = {}) {
        const {
          signingDate = /* @__PURE__ */ new Date(),
          expiresIn = 3600,
          unsignableHeaders,
          unhoistableHeaders,
          signableHeaders,
          hoistableHeaders,
          signingRegion,
          signingService
        } = options;
        const credentials = await this.credentialProvider();
        this.validateResolvedCredentials(credentials);
        const region = signingRegion ?? await this.regionProvider();
        const { longDate, shortDate } = this.formatDate(signingDate);
        if (expiresIn > MAX_PRESIGNED_TTL) {
          return Promise.reject(
            "Signature version 4 presigned URLs must have an expiration date less than one week in the future"
          );
        }
        const scope = createScope(shortDate, region, signingService ?? this.service);
        const request2 = moveHeadersToQuery(prepareRequest(originalRequest), { unhoistableHeaders, hoistableHeaders });
        if (credentials.sessionToken) {
          request2.query[TOKEN_QUERY_PARAM] = credentials.sessionToken;
        }
        request2.query[ALGORITHM_QUERY_PARAM] = ALGORITHM_IDENTIFIER;
        request2.query[CREDENTIAL_QUERY_PARAM] = `${credentials.accessKeyId}/${scope}`;
        request2.query[AMZ_DATE_QUERY_PARAM] = longDate;
        request2.query[EXPIRES_QUERY_PARAM] = expiresIn.toString(10);
        const canonicalHeaders = getCanonicalHeaders(request2, unsignableHeaders, signableHeaders);
        request2.query[SIGNED_HEADERS_QUERY_PARAM] = this.getCanonicalHeaderList(canonicalHeaders);
        request2.query[SIGNATURE_QUERY_PARAM] = await this.getSignature(
          longDate,
          scope,
          this.getSigningKey(credentials, region, shortDate, signingService),
          this.createCanonicalRequest(request2, canonicalHeaders, await getPayloadHash(originalRequest, this.sha256))
        );
        return request2;
      }
      async sign(toSign, options) {
        if (typeof toSign === "string") {
          return this.signString(toSign, options);
        } else if (toSign.headers && toSign.payload) {
          return this.signEvent(toSign, options);
        } else if (toSign.message) {
          return this.signMessage(toSign, options);
        } else {
          return this.signRequest(toSign, options);
        }
      }
      async signEvent({ headers, payload: payload2 }, { signingDate = /* @__PURE__ */ new Date(), priorSignature, signingRegion, signingService }) {
        const region = signingRegion ?? await this.regionProvider();
        const { shortDate, longDate } = this.formatDate(signingDate);
        const scope = createScope(shortDate, region, signingService ?? this.service);
        const hashedPayload = await getPayloadHash({ headers: {}, body: payload2 }, this.sha256);
        const hash = new this.sha256();
        hash.update(headers);
        const hashedHeaders = (0, import_util_hex_encoding.toHex)(await hash.digest());
        const stringToSign = [
          EVENT_ALGORITHM_IDENTIFIER,
          longDate,
          scope,
          priorSignature,
          hashedHeaders,
          hashedPayload
        ].join("\n");
        return this.signString(stringToSign, { signingDate, signingRegion: region, signingService });
      }
      async signMessage(signableMessage, { signingDate = /* @__PURE__ */ new Date(), signingRegion, signingService }) {
        const promise = this.signEvent(
          {
            headers: this.headerFormatter.format(signableMessage.message.headers),
            payload: signableMessage.message.body
          },
          {
            signingDate,
            signingRegion,
            signingService,
            priorSignature: signableMessage.priorSignature
          }
        );
        return promise.then((signature) => {
          return { message: signableMessage.message, signature };
        });
      }
      async signString(stringToSign, { signingDate = /* @__PURE__ */ new Date(), signingRegion, signingService } = {}) {
        const credentials = await this.credentialProvider();
        this.validateResolvedCredentials(credentials);
        const region = signingRegion ?? await this.regionProvider();
        const { shortDate } = this.formatDate(signingDate);
        const hash = new this.sha256(await this.getSigningKey(credentials, region, shortDate, signingService));
        hash.update((0, import_util_utf852.toUint8Array)(stringToSign));
        return (0, import_util_hex_encoding.toHex)(await hash.digest());
      }
      async signRequest(requestToSign, {
        signingDate = /* @__PURE__ */ new Date(),
        signableHeaders,
        unsignableHeaders,
        signingRegion,
        signingService
      } = {}) {
        const credentials = await this.credentialProvider();
        this.validateResolvedCredentials(credentials);
        const region = signingRegion ?? await this.regionProvider();
        const request2 = prepareRequest(requestToSign);
        const { longDate, shortDate } = this.formatDate(signingDate);
        const scope = createScope(shortDate, region, signingService ?? this.service);
        request2.headers[AMZ_DATE_HEADER] = longDate;
        if (credentials.sessionToken) {
          request2.headers[TOKEN_HEADER] = credentials.sessionToken;
        }
        const payloadHash = await getPayloadHash(request2, this.sha256);
        if (!hasHeader(SHA256_HEADER, request2.headers) && this.applyChecksum) {
          request2.headers[SHA256_HEADER] = payloadHash;
        }
        const canonicalHeaders = getCanonicalHeaders(request2, unsignableHeaders, signableHeaders);
        const signature = await this.getSignature(
          longDate,
          scope,
          this.getSigningKey(credentials, region, shortDate, signingService),
          this.createCanonicalRequest(request2, canonicalHeaders, payloadHash)
        );
        request2.headers[AUTH_HEADER] = `${ALGORITHM_IDENTIFIER} Credential=${credentials.accessKeyId}/${scope}, SignedHeaders=${this.getCanonicalHeaderList(canonicalHeaders)}, Signature=${signature}`;
        return request2;
      }
      async getSignature(longDate, credentialScope, keyPromise, canonicalRequest) {
        const stringToSign = await this.createStringToSign(
          longDate,
          credentialScope,
          canonicalRequest,
          ALGORITHM_IDENTIFIER
        );
        const hash = new this.sha256(await keyPromise);
        hash.update((0, import_util_utf852.toUint8Array)(stringToSign));
        return (0, import_util_hex_encoding.toHex)(await hash.digest());
      }
      getSigningKey(credentials, region, shortDate, service) {
        return getSigningKey(this.sha256, credentials, shortDate, region, service || this.service);
      }
    };
    var signatureV4aContainer = {
      SignatureV4a: null
    };
  }
});

// ../../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js
function normalizeCredentialProvider(config, { credentials, credentialDefaultProvider }) {
  let credentialsProvider;
  if (credentials) {
    if (!credentials?.memoized) {
      credentialsProvider = memoizeIdentityProvider(credentials, isIdentityExpired, doesIdentityRequireRefresh);
    } else {
      credentialsProvider = credentials;
    }
  } else {
    if (credentialDefaultProvider) {
      credentialsProvider = normalizeProvider(credentialDefaultProvider(Object.assign({}, config, {
        parentClientConfig: config
      })));
    } else {
      credentialsProvider = /* @__PURE__ */ __name(async () => {
        throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.");
      }, "credentialsProvider");
    }
  }
  credentialsProvider.memoized = true;
  return credentialsProvider;
}
function bindCallerConfig(config, credentialsProvider) {
  if (credentialsProvider.configBound) {
    return credentialsProvider;
  }
  const fn = /* @__PURE__ */ __name(async (options) => credentialsProvider({ ...options, callerClientConfig: config }), "fn");
  fn.memoized = credentialsProvider.memoized;
  fn.configBound = true;
  return fn;
}
var import_signature_v4, resolveAwsSdkSigV4Config, resolveAWSSDKSigV4Config;
var init_resolveAwsSdkSigV4Config = __esm({
  "../../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js"() {
    init_client();
    init_dist_es();
    import_signature_v4 = __toESM(require_dist_cjs23());
    resolveAwsSdkSigV4Config = /* @__PURE__ */ __name((config) => {
      let inputCredentials = config.credentials;
      let isUserSupplied = !!config.credentials;
      let resolvedCredentials = void 0;
      Object.defineProperty(config, "credentials", {
        set(credentials) {
          if (credentials && credentials !== inputCredentials && credentials !== resolvedCredentials) {
            isUserSupplied = true;
          }
          inputCredentials = credentials;
          const memoizedProvider = normalizeCredentialProvider(config, {
            credentials: inputCredentials,
            credentialDefaultProvider: config.credentialDefaultProvider
          });
          const boundProvider = bindCallerConfig(config, memoizedProvider);
          if (isUserSupplied && !boundProvider.attributed) {
            resolvedCredentials = /* @__PURE__ */ __name(async (options) => boundProvider(options).then((creds) => setCredentialFeature(creds, "CREDENTIALS_CODE", "e")), "resolvedCredentials");
            resolvedCredentials.memoized = boundProvider.memoized;
            resolvedCredentials.configBound = boundProvider.configBound;
            resolvedCredentials.attributed = true;
          } else {
            resolvedCredentials = boundProvider;
          }
        },
        get() {
          return resolvedCredentials;
        },
        enumerable: true,
        configurable: true
      });
      config.credentials = inputCredentials;
      const { signingEscapePath = true, systemClockOffset = config.systemClockOffset || 0, sha256 } = config;
      let signer;
      if (config.signer) {
        signer = normalizeProvider(config.signer);
      } else if (config.regionInfoProvider) {
        signer = /* @__PURE__ */ __name(() => normalizeProvider(config.region)().then(async (region) => [
          await config.regionInfoProvider(region, {
            useFipsEndpoint: await config.useFipsEndpoint(),
            useDualstackEndpoint: await config.useDualstackEndpoint()
          }) || {},
          region
        ]).then(([regionInfo, region]) => {
          const { signingRegion, signingService } = regionInfo;
          config.signingRegion = config.signingRegion || signingRegion || region;
          config.signingName = config.signingName || signingService || config.serviceId;
          const params = {
            ...config,
            credentials: config.credentials,
            region: config.signingRegion,
            service: config.signingName,
            sha256,
            uriEscapePath: signingEscapePath
          };
          const SignerCtor = config.signerConstructor || import_signature_v4.SignatureV4;
          return new SignerCtor(params);
        }), "signer");
      } else {
        signer = /* @__PURE__ */ __name(async (authScheme) => {
          authScheme = Object.assign({}, {
            name: "sigv4",
            signingName: config.signingName || config.defaultSigningName,
            signingRegion: await normalizeProvider(config.region)(),
            properties: {}
          }, authScheme);
          const signingRegion = authScheme.signingRegion;
          const signingService = authScheme.signingName;
          config.signingRegion = config.signingRegion || signingRegion;
          config.signingName = config.signingName || signingService || config.serviceId;
          const params = {
            ...config,
            credentials: config.credentials,
            region: config.signingRegion,
            service: config.signingName,
            sha256,
            uriEscapePath: signingEscapePath
          };
          const SignerCtor = config.signerConstructor || import_signature_v4.SignatureV4;
          return new SignerCtor(params);
        }, "signer");
      }
      const resolvedConfig = Object.assign(config, {
        systemClockOffset,
        signingEscapePath,
        signer
      });
      return resolvedConfig;
    }, "resolveAwsSdkSigV4Config");
    resolveAWSSDKSigV4Config = resolveAwsSdkSigV4Config;
    __name(normalizeCredentialProvider, "normalizeCredentialProvider");
    __name(bindCallerConfig, "bindCallerConfig");
  }
});

// ../../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/index.js
var init_aws_sdk = __esm({
  "../../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/index.js"() {
    init_AwsSdkSigV4Signer();
    init_AwsSdkSigV4ASigner();
    init_NODE_AUTH_SCHEME_PREFERENCE_OPTIONS();
    init_resolveAwsSdkSigV4AConfig();
    init_resolveAwsSdkSigV4Config();
  }
});

// ../../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/index.js
var httpAuthSchemes_exports = {};
__export(httpAuthSchemes_exports, {
  AWSSDKSigV4Signer: () => AWSSDKSigV4Signer,
  AwsSdkSigV4ASigner: () => AwsSdkSigV4ASigner,
  AwsSdkSigV4Signer: () => AwsSdkSigV4Signer,
  NODE_AUTH_SCHEME_PREFERENCE_OPTIONS: () => NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,
  NODE_SIGV4A_CONFIG_OPTIONS: () => NODE_SIGV4A_CONFIG_OPTIONS,
  getBearerTokenEnvKey: () => getBearerTokenEnvKey,
  resolveAWSSDKSigV4Config: () => resolveAWSSDKSigV4Config,
  resolveAwsSdkSigV4AConfig: () => resolveAwsSdkSigV4AConfig,
  resolveAwsSdkSigV4Config: () => resolveAwsSdkSigV4Config,
  validateSigningProperties: () => validateSigningProperties
});
var init_httpAuthSchemes2 = __esm({
  "../../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/index.js"() {
    init_aws_sdk();
    init_getBearerTokenEnvKey();
  }
});

// ../../node_modules/@smithy/core/dist-es/submodules/cbor/cbor-types.js
function alloc(size) {
  return typeof Buffer !== "undefined" ? Buffer.alloc(size) : new Uint8Array(size);
}
function tag(data3) {
  data3[tagSymbol] = true;
  return data3;
}
var majorUint64, majorNegativeInt64, majorUnstructuredByteString, majorUtf8String, majorList, majorMap, majorTag, majorSpecial, specialFalse, specialTrue, specialNull, specialUndefined, extendedOneByte, extendedFloat16, extendedFloat32, extendedFloat64, minorIndefinite, tagSymbol;
var init_cbor_types = __esm({
  "../../node_modules/@smithy/core/dist-es/submodules/cbor/cbor-types.js"() {
    majorUint64 = 0;
    majorNegativeInt64 = 1;
    majorUnstructuredByteString = 2;
    majorUtf8String = 3;
    majorList = 4;
    majorMap = 5;
    majorTag = 6;
    majorSpecial = 7;
    specialFalse = 20;
    specialTrue = 21;
    specialNull = 22;
    specialUndefined = 23;
    extendedOneByte = 24;
    extendedFloat16 = 25;
    extendedFloat32 = 26;
    extendedFloat64 = 27;
    minorIndefinite = 31;
    __name(alloc, "alloc");
    tagSymbol = Symbol("@smithy/core/cbor::tagSymbol");
    __name(tag, "tag");
  }
});

// ../../node_modules/@smithy/core/dist-es/submodules/cbor/cbor-decode.js
function setPayload(bytes) {
  payload = bytes;
  dataView = new DataView(payload.buffer, payload.byteOffset, payload.byteLength);
}
function decode(at, to) {
  if (at >= to) {
    throw new Error("unexpected end of (decode) payload.");
  }
  const major6 = (payload[at] & 224) >> 5;
  const minor = payload[at] & 31;
  switch (major6) {
    case majorUint64:
    case majorNegativeInt64:
    case majorTag:
      let unsignedInt;
      let offset;
      if (minor < 24) {
        unsignedInt = minor;
        offset = 1;
      } else {
        switch (minor) {
          case extendedOneByte:
          case extendedFloat16:
          case extendedFloat32:
          case extendedFloat64:
            const countLength = minorValueToArgumentLength[minor];
            const countOffset = countLength + 1;
            offset = countOffset;
            if (to - at < countOffset) {
              throw new Error(`countLength ${countLength} greater than remaining buf len.`);
            }
            const countIndex = at + 1;
            if (countLength === 1) {
              unsignedInt = payload[countIndex];
            } else if (countLength === 2) {
              unsignedInt = dataView.getUint16(countIndex);
            } else if (countLength === 4) {
              unsignedInt = dataView.getUint32(countIndex);
            } else {
              unsignedInt = dataView.getBigUint64(countIndex);
            }
            break;
          default:
            throw new Error(`unexpected minor value ${minor}.`);
        }
      }
      if (major6 === majorUint64) {
        _offset = offset;
        return castBigInt(unsignedInt);
      } else if (major6 === majorNegativeInt64) {
        let negativeInt;
        if (typeof unsignedInt === "bigint") {
          negativeInt = BigInt(-1) - unsignedInt;
        } else {
          negativeInt = -1 - unsignedInt;
        }
        _offset = offset;
        return castBigInt(negativeInt);
      } else {
        if (minor === 2 || minor === 3) {
          const length = decodeCount(at + offset, to);
          let b3 = BigInt(0);
          const start = at + offset + _offset;
          for (let i3 = start; i3 < start + length; ++i3) {
            b3 = b3 << BigInt(8) | BigInt(payload[i3]);
          }
          _offset = offset + _offset + length;
          return minor === 3 ? -b3 - BigInt(1) : b3;
        } else if (minor === 4) {
          const decimalFraction = decode(at + offset, to);
          const [exponent, mantissa] = decimalFraction;
          const normalizer = mantissa < 0 ? -1 : 1;
          const mantissaStr = "0".repeat(Math.abs(exponent) + 1) + String(BigInt(normalizer) * BigInt(mantissa));
          let numericString;
          const sign = mantissa < 0 ? "-" : "";
          numericString = exponent === 0 ? mantissaStr : mantissaStr.slice(0, mantissaStr.length + exponent) + "." + mantissaStr.slice(exponent);
          numericString = numericString.replace(/^0+/g, "");
          if (numericString === "") {
            numericString = "0";
          }
          if (numericString[0] === ".") {
            numericString = "0" + numericString;
          }
          numericString = sign + numericString;
          _offset = offset + _offset;
          return nv2(numericString);
        } else {
          const value = decode(at + offset, to);
          const valueOffset = _offset;
          _offset = offset + valueOffset;
          return tag({ tag: castBigInt(unsignedInt), value });
        }
      }
    case majorUtf8String:
    case majorMap:
    case majorList:
    case majorUnstructuredByteString:
      if (minor === minorIndefinite) {
        switch (major6) {
          case majorUtf8String:
            return decodeUtf8StringIndefinite(at, to);
          case majorMap:
            return decodeMapIndefinite(at, to);
          case majorList:
            return decodeListIndefinite(at, to);
          case majorUnstructuredByteString:
            return decodeUnstructuredByteStringIndefinite(at, to);
        }
      } else {
        switch (major6) {
          case majorUtf8String:
            return decodeUtf8String(at, to);
          case majorMap:
            return decodeMap(at, to);
          case majorList:
            return decodeList(at, to);
          case majorUnstructuredByteString:
            return decodeUnstructuredByteString(at, to);
        }
      }
    default:
      return decodeSpecial(at, to);
  }
}
function bytesToUtf8(bytes, at, to) {
  if (USE_BUFFER && bytes.constructor?.name === "Buffer") {
    return bytes.toString("utf-8", at, to);
  }
  if (textDecoder) {
    return textDecoder.decode(bytes.subarray(at, to));
  }
  return (0, import_util_utf84.toUtf8)(bytes.subarray(at, to));
}
function demote(bigInteger) {
  const num = Number(bigInteger);
  if (num < Number.MIN_SAFE_INTEGER || Number.MAX_SAFE_INTEGER < num) {
    console.warn(new Error(`@smithy/core/cbor - truncating BigInt(${bigInteger}) to ${num} with loss of precision.`));
  }
  return num;
}
function bytesToFloat16(a3, b3) {
  const sign = a3 >> 7;
  const exponent = (a3 & 124) >> 2;
  const fraction = (a3 & 3) << 8 | b3;
  const scalar = sign === 0 ? 1 : -1;
  let exponentComponent;
  let summation;
  if (exponent === 0) {
    if (fraction === 0) {
      return 0;
    } else {
      exponentComponent = Math.pow(2, 1 - 15);
      summation = 0;
    }
  } else if (exponent === 31) {
    if (fraction === 0) {
      return scalar * Infinity;
    } else {
      return NaN;
    }
  } else {
    exponentComponent = Math.pow(2, exponent - 15);
    summation = 1;
  }
  summation += fraction / 1024;
  return scalar * (exponentComponent * summation);
}
function decodeCount(at, to) {
  const minor = payload[at] & 31;
  if (minor < 24) {
    _offset = 1;
    return minor;
  }
  if (minor === extendedOneByte || minor === extendedFloat16 || minor === extendedFloat32 || minor === extendedFloat64) {
    const countLength = minorValueToArgumentLength[minor];
    _offset = countLength + 1;
    if (to - at < _offset) {
      throw new Error(`countLength ${countLength} greater than remaining buf len.`);
    }
    const countIndex = at + 1;
    if (countLength === 1) {
      return payload[countIndex];
    } else if (countLength === 2) {
      return dataView.getUint16(countIndex);
    } else if (countLength === 4) {
      return dataView.getUint32(countIndex);
    }
    return demote(dataView.getBigUint64(countIndex));
  }
  throw new Error(`unexpected minor value ${minor}.`);
}
function decodeUtf8String(at, to) {
  const length = decodeCount(at, to);
  const offset = _offset;
  at += offset;
  if (to - at < length) {
    throw new Error(`string len ${length} greater than remaining buf len.`);
  }
  const value = bytesToUtf8(payload, at, at + length);
  _offset = offset + length;
  return value;
}
function decodeUtf8StringIndefinite(at, to) {
  at += 1;
  const vector = [];
  for (const base = at; at < to; ) {
    if (payload[at] === 255) {
      const data3 = alloc(vector.length);
      data3.set(vector, 0);
      _offset = at - base + 2;
      return bytesToUtf8(data3, 0, data3.length);
    }
    const major6 = (payload[at] & 224) >> 5;
    const minor = payload[at] & 31;
    if (major6 !== majorUtf8String) {
      throw new Error(`unexpected major type ${major6} in indefinite string.`);
    }
    if (minor === minorIndefinite) {
      throw new Error("nested indefinite string.");
    }
    const bytes = decodeUnstructuredByteString(at, to);
    const length = _offset;
    at += length;
    for (let i3 = 0; i3 < bytes.length; ++i3) {
      vector.push(bytes[i3]);
    }
  }
  throw new Error("expected break marker.");
}
function decodeUnstructuredByteString(at, to) {
  const length = decodeCount(at, to);
  const offset = _offset;
  at += offset;
  if (to - at < length) {
    throw new Error(`unstructured byte string len ${length} greater than remaining buf len.`);
  }
  const value = payload.subarray(at, at + length);
  _offset = offset + length;
  return value;
}
function decodeUnstructuredByteStringIndefinite(at, to) {
  at += 1;
  const vector = [];
  for (const base = at; at < to; ) {
    if (payload[at] === 255) {
      const data3 = alloc(vector.length);
      data3.set(vector, 0);
      _offset = at - base + 2;
      return data3;
    }
    const major6 = (payload[at] & 224) >> 5;
    const minor = payload[at] & 31;
    if (major6 !== majorUnstructuredByteString) {
      throw new Error(`unexpected major type ${major6} in indefinite string.`);
    }
    if (minor === minorIndefinite) {
      throw new Error("nested indefinite string.");
    }
    const bytes = decodeUnstructuredByteString(at, to);
    const length = _offset;
    at += length;
    for (let i3 = 0; i3 < bytes.length; ++i3) {
      vector.push(bytes[i3]);
    }
  }
  throw new Error("expected break marker.");
}
function decodeList(at, to) {
  const listDataLength = decodeCount(at, to);
  const offset = _offset;
  at += offset;
  const base = at;
  const list2 = Array(listDataLength);
  for (let i3 = 0; i3 < listDataLength; ++i3) {
    const item = decode(at, to);
    const itemOffset = _offset;
    list2[i3] = item;
    at += itemOffset;
  }
  _offset = offset + (at - base);
  return list2;
}
function decodeListIndefinite(at, to) {
  at += 1;
  const list2 = [];
  for (const base = at; at < to; ) {
    if (payload[at] === 255) {
      _offset = at - base + 2;
      return list2;
    }
    const item = decode(at, to);
    const n3 = _offset;
    at += n3;
    list2.push(item);
  }
  throw new Error("expected break marker.");
}
function decodeMap(at, to) {
  const mapDataLength = decodeCount(at, to);
  const offset = _offset;
  at += offset;
  const base = at;
  const map3 = {};
  for (let i3 = 0; i3 < mapDataLength; ++i3) {
    if (at >= to) {
      throw new Error("unexpected end of map payload.");
    }
    const major6 = (payload[at] & 224) >> 5;
    if (major6 !== majorUtf8String) {
      throw new Error(`unexpected major type ${major6} for map key at index ${at}.`);
    }
    const key = decode(at, to);
    at += _offset;
    const value = decode(at, to);
    at += _offset;
    map3[key] = value;
  }
  _offset = offset + (at - base);
  return map3;
}
function decodeMapIndefinite(at, to) {
  at += 1;
  const base = at;
  const map3 = {};
  for (; at < to; ) {
    if (at >= to) {
      throw new Error("unexpected end of map payload.");
    }
    if (payload[at] === 255) {
      _offset = at - base + 2;
      return map3;
    }
    const major6 = (payload[at] & 224) >> 5;
    if (major6 !== majorUtf8String) {
      throw new Error(`unexpected major type ${major6} for map key.`);
    }
    const key = decode(at, to);
    at += _offset;
    const value = decode(at, to);
    at += _offset;
    map3[key] = value;
  }
  throw new Error("expected break marker.");
}
function decodeSpecial(at, to) {
  const minor = payload[at] & 31;
  switch (minor) {
    case specialTrue:
    case specialFalse:
      _offset = 1;
      return minor === specialTrue;
    case specialNull:
      _offset = 1;
      return null;
    case specialUndefined:
      _offset = 1;
      return null;
    case extendedFloat16:
      if (to - at < 3) {
        throw new Error("incomplete float16 at end of buf.");
      }
      _offset = 3;
      return bytesToFloat16(payload[at + 1], payload[at + 2]);
    case extendedFloat32:
      if (to - at < 5) {
        throw new Error("incomplete float32 at end of buf.");
      }
      _offset = 5;
      return dataView.getFloat32(at + 1);
    case extendedFloat64:
      if (to - at < 9) {
        throw new Error("incomplete float64 at end of buf.");
      }
      _offset = 9;
      return dataView.getFloat64(at + 1);
    default:
      throw new Error(`unexpected minor value ${minor}.`);
  }
}
function castBigInt(bigInt) {
  if (typeof bigInt === "number") {
    return bigInt;
  }
  const num = Number(bigInt);
  if (Number.MIN_SAFE_INTEGER <= num && num <= Number.MAX_SAFE_INTEGER) {
    return num;
  }
  return bigInt;
}
var import_util_utf84, USE_TEXT_DECODER, USE_BUFFER, payload, dataView, textDecoder, _offset, minorValueToArgumentLength;
var init_cbor_decode = __esm({
  "../../node_modules/@smithy/core/dist-es/submodules/cbor/cbor-decode.js"() {
    init_serde();
    import_util_utf84 = __toESM(require_dist_cjs10());
    init_cbor_types();
    USE_TEXT_DECODER = typeof TextDecoder !== "undefined";
    USE_BUFFER = typeof Buffer !== "undefined";
    payload = alloc(0);
    dataView = new DataView(payload.buffer, payload.byteOffset, payload.byteLength);
    textDecoder = USE_TEXT_DECODER ? new TextDecoder() : null;
    _offset = 0;
    __name(setPayload, "setPayload");
    __name(decode, "decode");
    __name(bytesToUtf8, "bytesToUtf8");
    __name(demote, "demote");
    minorValueToArgumentLength = {
      [extendedOneByte]: 1,
      [extendedFloat16]: 2,
      [extendedFloat32]: 4,
      [extendedFloat64]: 8
    };
    __name(bytesToFloat16, "bytesToFloat16");
    __name(decodeCount, "decodeCount");
    __name(decodeUtf8String, "decodeUtf8String");
    __name(decodeUtf8StringIndefinite, "decodeUtf8StringIndefinite");
    __name(decodeUnstructuredByteString, "decodeUnstructuredByteString");
    __name(decodeUnstructuredByteStringIndefinite, "decodeUnstructuredByteStringIndefinite");
    __name(decodeList, "decodeList");
    __name(decodeListIndefinite, "decodeListIndefinite");
    __name(decodeMap, "decodeMap");
    __name(decodeMapIndefinite, "decodeMapIndefinite");
    __name(decodeSpecial, "decodeSpecial");
    __name(castBigInt, "castBigInt");
  }
});

// ../../node_modules/@smithy/core/dist-es/submodules/cbor/cbor-encode.js
function ensureSpace(bytes) {
  const remaining = data.byteLength - cursor;
  if (remaining < bytes) {
    if (cursor < 16e6) {
      resize(Math.max(data.byteLength * 4, data.byteLength + bytes));
    } else {
      resize(data.byteLength + bytes + 16e6);
    }
  }
}
function toUint8Array() {
  const out = alloc(cursor);
  out.set(data.subarray(0, cursor), 0);
  cursor = 0;
  return out;
}
function resize(size) {
  const old = data;
  data = alloc(size);
  if (old) {
    if (old.copy) {
      old.copy(data, 0, 0, old.byteLength);
    } else {
      data.set(old, 0);
    }
  }
  dataView2 = new DataView(data.buffer, data.byteOffset, data.byteLength);
}
function encodeHeader(major6, value) {
  if (value < 24) {
    data[cursor++] = major6 << 5 | value;
  } else if (value < 1 << 8) {
    data[cursor++] = major6 << 5 | 24;
    data[cursor++] = value;
  } else if (value < 1 << 16) {
    data[cursor++] = major6 << 5 | extendedFloat16;
    dataView2.setUint16(cursor, value);
    cursor += 2;
  } else if (value < 2 ** 32) {
    data[cursor++] = major6 << 5 | extendedFloat32;
    dataView2.setUint32(cursor, value);
    cursor += 4;
  } else {
    data[cursor++] = major6 << 5 | extendedFloat64;
    dataView2.setBigUint64(cursor, typeof value === "bigint" ? value : BigInt(value));
    cursor += 8;
  }
}
function encode(_input) {
  const encodeStack = [_input];
  while (encodeStack.length) {
    const input = encodeStack.pop();
    ensureSpace(typeof input === "string" ? input.length * 4 : 64);
    if (typeof input === "string") {
      if (USE_BUFFER2) {
        encodeHeader(majorUtf8String, Buffer.byteLength(input));
        cursor += data.write(input, cursor);
      } else {
        const bytes = (0, import_util_utf85.fromUtf8)(input);
        encodeHeader(majorUtf8String, bytes.byteLength);
        data.set(bytes, cursor);
        cursor += bytes.byteLength;
      }
      continue;
    } else if (typeof input === "number") {
      if (Number.isInteger(input)) {
        const nonNegative = input >= 0;
        const major6 = nonNegative ? majorUint64 : majorNegativeInt64;
        const value = nonNegative ? input : -input - 1;
        if (value < 24) {
          data[cursor++] = major6 << 5 | value;
        } else if (value < 256) {
          data[cursor++] = major6 << 5 | 24;
          data[cursor++] = value;
        } else if (value < 65536) {
          data[cursor++] = major6 << 5 | extendedFloat16;
          data[cursor++] = value >> 8;
          data[cursor++] = value;
        } else if (value < 4294967296) {
          data[cursor++] = major6 << 5 | extendedFloat32;
          dataView2.setUint32(cursor, value);
          cursor += 4;
        } else {
          data[cursor++] = major6 << 5 | extendedFloat64;
          dataView2.setBigUint64(cursor, BigInt(value));
          cursor += 8;
        }
        continue;
      }
      data[cursor++] = majorSpecial << 5 | extendedFloat64;
      dataView2.setFloat64(cursor, input);
      cursor += 8;
      continue;
    } else if (typeof input === "bigint") {
      const nonNegative = input >= 0;
      const major6 = nonNegative ? majorUint64 : majorNegativeInt64;
      const value = nonNegative ? input : -input - BigInt(1);
      const n3 = Number(value);
      if (n3 < 24) {
        data[cursor++] = major6 << 5 | n3;
      } else if (n3 < 256) {
        data[cursor++] = major6 << 5 | 24;
        data[cursor++] = n3;
      } else if (n3 < 65536) {
        data[cursor++] = major6 << 5 | extendedFloat16;
        data[cursor++] = n3 >> 8;
        data[cursor++] = n3 & 255;
      } else if (n3 < 4294967296) {
        data[cursor++] = major6 << 5 | extendedFloat32;
        dataView2.setUint32(cursor, n3);
        cursor += 4;
      } else if (value < BigInt("18446744073709551616")) {
        data[cursor++] = major6 << 5 | extendedFloat64;
        dataView2.setBigUint64(cursor, value);
        cursor += 8;
      } else {
        const binaryBigInt = value.toString(2);
        const bigIntBytes = new Uint8Array(Math.ceil(binaryBigInt.length / 8));
        let b3 = value;
        let i3 = 0;
        while (bigIntBytes.byteLength - ++i3 >= 0) {
          bigIntBytes[bigIntBytes.byteLength - i3] = Number(b3 & BigInt(255));
          b3 >>= BigInt(8);
        }
        ensureSpace(bigIntBytes.byteLength * 2);
        data[cursor++] = nonNegative ? 194 : 195;
        if (USE_BUFFER2) {
          encodeHeader(majorUnstructuredByteString, Buffer.byteLength(bigIntBytes));
        } else {
          encodeHeader(majorUnstructuredByteString, bigIntBytes.byteLength);
        }
        data.set(bigIntBytes, cursor);
        cursor += bigIntBytes.byteLength;
      }
      continue;
    } else if (input === null) {
      data[cursor++] = majorSpecial << 5 | specialNull;
      continue;
    } else if (typeof input === "boolean") {
      data[cursor++] = majorSpecial << 5 | (input ? specialTrue : specialFalse);
      continue;
    } else if (typeof input === "undefined") {
      throw new Error("@smithy/core/cbor: client may not serialize undefined value.");
    } else if (Array.isArray(input)) {
      for (let i3 = input.length - 1; i3 >= 0; --i3) {
        encodeStack.push(input[i3]);
      }
      encodeHeader(majorList, input.length);
      continue;
    } else if (typeof input.byteLength === "number") {
      ensureSpace(input.length * 2);
      encodeHeader(majorUnstructuredByteString, input.length);
      data.set(input, cursor);
      cursor += input.byteLength;
      continue;
    } else if (typeof input === "object") {
      if (input instanceof NumericValue2) {
        const decimalIndex = input.string.indexOf(".");
        const exponent = decimalIndex === -1 ? 0 : decimalIndex - input.string.length + 1;
        const mantissa = BigInt(input.string.replace(".", ""));
        data[cursor++] = 196;
        encodeStack.push(mantissa);
        encodeStack.push(exponent);
        encodeHeader(majorList, 2);
        continue;
      }
      if (input[tagSymbol]) {
        if ("tag" in input && "value" in input) {
          encodeStack.push(input.value);
          encodeHeader(majorTag, input.tag);
          continue;
        } else {
          throw new Error("tag encountered with missing fields, need 'tag' and 'value', found: " + JSON.stringify(input));
        }
      }
      const keys = Object.keys(input);
      for (let i3 = keys.length - 1; i3 >= 0; --i3) {
        const key = keys[i3];
        encodeStack.push(input[key]);
        encodeStack.push(key);
      }
      encodeHeader(majorMap, keys.length);
      continue;
    }
    throw new Error(`data type ${input?.constructor?.name ?? typeof input} not compatible for encoding.`);
  }
}
var import_util_utf85, USE_BUFFER2, initialSize, data, dataView2, cursor;
var init_cbor_encode = __esm({
  "../../node_modules/@smithy/core/dist-es/submodules/cbor/cbor-encode.js"() {
    init_serde();
    import_util_utf85 = __toESM(require_dist_cjs10());
    init_cbor_types();
    USE_BUFFER2 = typeof Buffer !== "undefined";
    initialSize = 2048;
    data = alloc(initialSize);
    dataView2 = new DataView(data.buffer, data.byteOffset, data.byteLength);
    cursor = 0;
    __name(ensureSpace, "ensureSpace");
    __name(toUint8Array, "toUint8Array");
    __name(resize, "resize");
    __name(encodeHeader, "encodeHeader");
    __name(encode, "encode");
  }
});

// ../../node_modules/@smithy/core/dist-es/submodules/cbor/cbor.js
var cbor;
var init_cbor = __esm({
  "../../node_modules/@smithy/core/dist-es/submodules/cbor/cbor.js"() {
    init_cbor_decode();
    init_cbor_encode();
    cbor = {
      deserialize(payload2) {
        setPayload(payload2);
        return decode(0, payload2.length);
      },
      serialize(input) {
        try {
          encode(input);
          return toUint8Array();
        } catch (e3) {
          toUint8Array();
          throw e3;
        }
      },
      resizeEncodingBuffer(size) {
        resize(size);
      }
    };
  }
});

// ../../node_modules/@smithy/util-body-length-browser/dist-cjs/index.js
var require_dist_cjs24 = __commonJS({
  "../../node_modules/@smithy/util-body-length-browser/dist-cjs/index.js"(exports2, module2) {
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var src_exports = {};
    __export2(src_exports, {
      calculateBodyLength: /* @__PURE__ */ __name(() => calculateBodyLength5, "calculateBodyLength")
    });
    module2.exports = __toCommonJS2(src_exports);
    var TEXT_ENCODER = typeof TextEncoder == "function" ? new TextEncoder() : null;
    var calculateBodyLength5 = /* @__PURE__ */ __name2((body) => {
      if (typeof body === "string") {
        if (TEXT_ENCODER) {
          return TEXT_ENCODER.encode(body).byteLength;
        }
        let len = body.length;
        for (let i3 = len - 1; i3 >= 0; i3--) {
          const code = body.charCodeAt(i3);
          if (code > 127 && code <= 2047)
            len++;
          else if (code > 2047 && code <= 65535)
            len += 2;
          if (code >= 56320 && code <= 57343)
            i3--;
        }
        return len;
      } else if (typeof body.byteLength === "number") {
        return body.byteLength;
      } else if (typeof body.size === "number") {
        return body.size;
      }
      throw new Error(`Body Length computation failed for ${body}`);
    }, "calculateBodyLength");
  }
});

// ../../node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js
var import_protocol_http12, import_util_body_length_browser, dateToTag, loadSmithyRpcV2CborErrorCode;
var init_parseCborBody = __esm({
  "../../node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js"() {
    import_protocol_http12 = __toESM(require_dist_cjs2());
    import_util_body_length_browser = __toESM(require_dist_cjs24());
    init_cbor_types();
    dateToTag = /* @__PURE__ */ __name((date) => {
      return tag({
        tag: 1,
        value: date.getTime() / 1e3
      });
    }, "dateToTag");
    loadSmithyRpcV2CborErrorCode = /* @__PURE__ */ __name((output, data3) => {
      const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
        let cleanValue = rawValue;
        if (typeof cleanValue === "number") {
          cleanValue = cleanValue.toString();
        }
        if (cleanValue.indexOf(",") >= 0) {
          cleanValue = cleanValue.split(",")[0];
        }
        if (cleanValue.indexOf(":") >= 0) {
          cleanValue = cleanValue.split(":")[0];
        }
        if (cleanValue.indexOf("#") >= 0) {
          cleanValue = cleanValue.split("#")[1];
        }
        return cleanValue;
      }, "sanitizeErrorCode");
      if (data3["__type"] !== void 0) {
        return sanitizeErrorCode(data3["__type"]);
      }
      const codeKey = Object.keys(data3).find((key) => key.toLowerCase() === "code");
      if (codeKey && data3[codeKey] !== void 0) {
        return sanitizeErrorCode(data3[codeKey]);
      }
    }, "loadSmithyRpcV2CborErrorCode");
  }
});

// ../../node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js
var import_util_base643, CborCodec, CborShapeSerializer, CborShapeDeserializer;
var init_CborCodec = __esm({
  "../../node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js"() {
    init_schema4();
    init_serde();
    import_util_base643 = __toESM(require_dist_cjs11());
    init_cbor();
    init_parseCborBody();
    CborCodec = class {
      static {
        __name(this, "CborCodec");
      }
      createSerializer() {
        const serializer = new CborShapeSerializer();
        serializer.setSerdeContext(this.serdeContext);
        return serializer;
      }
      createDeserializer() {
        const deserializer = new CborShapeDeserializer();
        deserializer.setSerdeContext(this.serdeContext);
        return deserializer;
      }
      setSerdeContext(serdeContext) {
        this.serdeContext = serdeContext;
      }
    };
    CborShapeSerializer = class {
      static {
        __name(this, "CborShapeSerializer");
      }
      setSerdeContext(serdeContext) {
        this.serdeContext = serdeContext;
      }
      write(schema, value) {
        this.value = this.serialize(schema, value);
      }
      serialize(schema, source) {
        const ns = NormalizedSchema.of(schema);
        if (source == null) {
          if (ns.isIdempotencyToken()) {
            return v4_default();
          }
          return source;
        }
        if (ns.isBlobSchema()) {
          if (typeof source === "string") {
            return (this.serdeContext?.base64Decoder ?? import_util_base643.fromBase64)(source);
          }
          return source;
        }
        if (ns.isTimestampSchema()) {
          if (typeof source === "number" || typeof source === "bigint") {
            return dateToTag(new Date(Number(source) / 1e3 | 0));
          }
          return dateToTag(source);
        }
        if (typeof source === "function" || typeof source === "object") {
          const sourceObject = source;
          if (ns.isListSchema() && Array.isArray(sourceObject)) {
            const sparse = !!ns.getMergedTraits().sparse;
            const newArray = [];
            let i3 = 0;
            for (const item of sourceObject) {
              const value = this.serialize(ns.getValueSchema(), item);
              if (value != null || sparse) {
                newArray[i3++] = value;
              }
            }
            return newArray;
          }
          if (sourceObject instanceof Date) {
            return dateToTag(sourceObject);
          }
          const newObject = {};
          if (ns.isMapSchema()) {
            const sparse = !!ns.getMergedTraits().sparse;
            for (const key of Object.keys(sourceObject)) {
              const value = this.serialize(ns.getValueSchema(), sourceObject[key]);
              if (value != null || sparse) {
                newObject[key] = value;
              }
            }
          } else if (ns.isStructSchema()) {
            for (const [key, memberSchema] of ns.structIterator()) {
              const value = this.serialize(memberSchema, sourceObject[key]);
              if (value != null) {
                newObject[key] = value;
              }
            }
          } else if (ns.isDocumentSchema()) {
            for (const key of Object.keys(sourceObject)) {
              newObject[key] = this.serialize(ns.getValueSchema(), sourceObject[key]);
            }
          }
          return newObject;
        }
        return source;
      }
      flush() {
        const buffer = cbor.serialize(this.value);
        this.value = void 0;
        return buffer;
      }
    };
    CborShapeDeserializer = class {
      static {
        __name(this, "CborShapeDeserializer");
      }
      setSerdeContext(serdeContext) {
        this.serdeContext = serdeContext;
      }
      read(schema, bytes) {
        const data3 = cbor.deserialize(bytes);
        return this.readValue(schema, data3);
      }
      readValue(_schema, value) {
        const ns = NormalizedSchema.of(_schema);
        if (ns.isTimestampSchema() && typeof value === "number") {
          return parseEpochTimestamp2(value);
        }
        if (ns.isBlobSchema()) {
          if (typeof value === "string") {
            return (this.serdeContext?.base64Decoder ?? import_util_base643.fromBase64)(value);
          }
          return value;
        }
        if (typeof value === "undefined" || typeof value === "boolean" || typeof value === "number" || typeof value === "string" || typeof value === "bigint" || typeof value === "symbol") {
          return value;
        } else if (typeof value === "function" || typeof value === "object") {
          if (value === null) {
            return null;
          }
          if ("byteLength" in value) {
            return value;
          }
          if (value instanceof Date) {
            return value;
          }
          if (ns.isDocumentSchema()) {
            return value;
          }
          if (ns.isListSchema()) {
            const newArray = [];
            const memberSchema = ns.getValueSchema();
            const sparse = !!ns.getMergedTraits().sparse;
            for (const item of value) {
              const itemValue = this.readValue(memberSchema, item);
              if (itemValue != null || sparse) {
                newArray.push(itemValue);
              }
            }
            return newArray;
          }
          const newObject = {};
          if (ns.isMapSchema()) {
            const sparse = !!ns.getMergedTraits().sparse;
            const targetSchema = ns.getValueSchema();
            for (const key of Object.keys(value)) {
              const itemValue = this.readValue(targetSchema, value[key]);
              if (itemValue != null || sparse) {
                newObject[key] = itemValue;
              }
            }
          } else if (ns.isStructSchema()) {
            for (const [key, memberSchema] of ns.structIterator()) {
              newObject[key] = this.readValue(memberSchema, value[key]);
            }
          }
          return newObject;
        } else {
          return value;
        }
      }
    };
  }
});

// ../../node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js
var import_util_middleware5, SmithyRpcV2CborProtocol;
var init_SmithyRpcV2CborProtocol = __esm({
  "../../node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js"() {
    init_protocols();
    init_schema4();
    import_util_middleware5 = __toESM(require_dist_cjs6());
    init_CborCodec();
    init_parseCborBody();
    SmithyRpcV2CborProtocol = class extends RpcProtocol {
      static {
        __name(this, "SmithyRpcV2CborProtocol");
      }
      constructor({ defaultNamespace }) {
        super({ defaultNamespace });
        this.codec = new CborCodec();
        this.serializer = this.codec.createSerializer();
        this.deserializer = this.codec.createDeserializer();
      }
      getShapeId() {
        return "smithy.protocols#rpcv2Cbor";
      }
      getPayloadCodec() {
        return this.codec;
      }
      async serializeRequest(operationSchema, input, context) {
        const request2 = await super.serializeRequest(operationSchema, input, context);
        Object.assign(request2.headers, {
          "content-type": this.getDefaultContentType(),
          "smithy-protocol": "rpc-v2-cbor",
          accept: this.getDefaultContentType()
        });
        if (deref(operationSchema.input) === "unit") {
          delete request2.body;
          delete request2.headers["content-type"];
        } else {
          if (!request2.body) {
            this.serializer.write(15, {});
            request2.body = this.serializer.flush();
          }
          try {
            request2.headers["content-length"] = String(request2.body.byteLength);
          } catch (e3) {
          }
        }
        const { service, operation } = (0, import_util_middleware5.getSmithyContext)(context);
        const path38 = `/service/${service}/operation/${operation}`;
        if (request2.path.endsWith("/")) {
          request2.path += path38.slice(1);
        } else {
          request2.path += path38;
        }
        return request2;
      }
      async deserializeResponse(operationSchema, context, response) {
        return super.deserializeResponse(operationSchema, context, response);
      }
      async handleError(operationSchema, context, response, dataObject, metadata) {
        const errorName = loadSmithyRpcV2CborErrorCode(response, dataObject) ?? "Unknown";
        let namespace = this.options.defaultNamespace;
        if (errorName.includes("#")) {
          [namespace] = errorName.split("#");
        }
        const errorMetadata = {
          $metadata: metadata,
          $response: response,
          $fault: response.statusCode <= 500 ? "client" : "server"
        };
        const registry = TypeRegistry.for(namespace);
        let errorSchema;
        try {
          errorSchema = registry.getSchema(errorName);
        } catch (e3) {
          if (dataObject.Message) {
            dataObject.message = dataObject.Message;
          }
          const baseExceptionSchema = TypeRegistry.for("smithy.ts.sdk.synthetic." + namespace).getBaseException();
          if (baseExceptionSchema) {
            const ErrorCtor = baseExceptionSchema.ctor;
            throw Object.assign(new ErrorCtor({ name: errorName }), errorMetadata, dataObject);
          }
          throw Object.assign(new Error(errorName), errorMetadata, dataObject);
        }
        const ns = NormalizedSchema.of(errorSchema);
        const message2 = dataObject.message ?? dataObject.Message ?? "Unknown";
        const exception = new errorSchema.ctor(message2);
        const output = {};
        for (const [name, member] of ns.structIterator()) {
          output[name] = this.deserializer.readValue(member, dataObject[name]);
        }
        throw Object.assign(exception, errorMetadata, {
          $fault: ns.getMergedTraits().error,
          message: message2
        }, output);
      }
      getDefaultContentType() {
        return "application/cbor";
      }
    };
  }
});

// ../../node_modules/@smithy/core/dist-es/submodules/cbor/index.js
var init_cbor2 = __esm({
  "../../node_modules/@smithy/core/dist-es/submodules/cbor/index.js"() {
    init_parseCborBody();
    init_SmithyRpcV2CborProtocol();
    init_CborCodec();
  }
});

// ../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/ProtocolLib.js
var import_util_body_length_browser2, ProtocolLib;
var init_ProtocolLib = __esm({
  "../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/ProtocolLib.js"() {
    init_schema4();
    import_util_body_length_browser2 = __toESM(require_dist_cjs24());
    ProtocolLib = class {
      static {
        __name(this, "ProtocolLib");
      }
      calculateContentLength(body, serdeContext) {
        const bodyLengthCalculator = serdeContext?.bodyLengthChecker ?? import_util_body_length_browser2.calculateBodyLength;
        return String(bodyLengthCalculator(body));
      }
      resolveRestContentType(defaultContentType, inputSchema) {
        const members = inputSchema.getMemberSchemas();
        const httpPayloadMember = Object.values(members).find((m3) => {
          return !!m3.getMergedTraits().httpPayload;
        });
        if (httpPayloadMember) {
          const mediaType = httpPayloadMember.getMergedTraits().mediaType;
          if (mediaType) {
            return mediaType;
          } else if (httpPayloadMember.isStringSchema()) {
            return "text/plain";
          } else if (httpPayloadMember.isBlobSchema()) {
            return "application/octet-stream";
          } else {
            return defaultContentType;
          }
        } else if (!inputSchema.isUnitSchema()) {
          const hasBody = Object.values(members).find((m3) => {
            const { httpQuery, httpQueryParams, httpHeader, httpLabel, httpPrefixHeaders } = m3.getMergedTraits();
            return !httpQuery && !httpQueryParams && !httpHeader && !httpLabel && httpPrefixHeaders === void 0;
          });
          if (hasBody) {
            return defaultContentType;
          }
        }
      }
      async getErrorSchemaOrThrowBaseException(errorIdentifier, defaultNamespace, response, dataObject, metadata, getErrorSchema) {
        let namespace = defaultNamespace;
        let errorName = errorIdentifier;
        if (errorIdentifier.includes("#")) {
          [namespace, errorName] = errorIdentifier.split("#");
        }
        const errorMetadata = {
          $metadata: metadata,
          $response: response,
          $fault: response.statusCode < 500 ? "client" : "server"
        };
        const registry = TypeRegistry.for(namespace);
        try {
          const errorSchema = getErrorSchema?.(registry, errorName) ?? registry.getSchema(errorIdentifier);
          return { errorSchema, errorMetadata };
        } catch (e3) {
          if (dataObject.Message) {
            dataObject.message = dataObject.Message;
          }
          const baseExceptionSchema = TypeRegistry.for("smithy.ts.sdk.synthetic." + namespace).getBaseException();
          if (baseExceptionSchema) {
            const ErrorCtor = baseExceptionSchema.ctor;
            throw Object.assign(new ErrorCtor({ name: errorName }), errorMetadata, dataObject);
          }
          throw Object.assign(new Error(errorName), errorMetadata, dataObject);
        }
      }
      setQueryCompatError(output, response) {
        const queryErrorHeader = response.headers?.["x-amzn-query-error"];
        if (output !== void 0 && queryErrorHeader != null) {
          const [Code, Type] = queryErrorHeader.split(";");
          const entries = Object.entries(output);
          const Error2 = {
            Code,
            Type
          };
          Object.assign(output, Error2);
          for (const [k3, v6] of entries) {
            Error2[k3] = v6;
          }
          delete Error2.__type;
          output.Error = Error2;
        }
      }
      queryCompatOutput(queryCompatErrorData, errorData) {
        if (queryCompatErrorData.Error) {
          errorData.Error = queryCompatErrorData.Error;
        }
        if (queryCompatErrorData.Type) {
          errorData.Type = queryCompatErrorData.Type;
        }
        if (queryCompatErrorData.Code) {
          errorData.Code = queryCompatErrorData.Code;
        }
      }
    };
  }
});

// ../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.js
var AwsSmithyRpcV2CborProtocol;
var init_AwsSmithyRpcV2CborProtocol = __esm({
  "../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.js"() {
    init_cbor2();
    init_schema4();
    init_ProtocolLib();
    AwsSmithyRpcV2CborProtocol = class extends SmithyRpcV2CborProtocol {
      static {
        __name(this, "AwsSmithyRpcV2CborProtocol");
      }
      awsQueryCompatible;
      mixin = new ProtocolLib();
      constructor({ defaultNamespace, awsQueryCompatible }) {
        super({ defaultNamespace });
        this.awsQueryCompatible = !!awsQueryCompatible;
      }
      async serializeRequest(operationSchema, input, context) {
        const request2 = await super.serializeRequest(operationSchema, input, context);
        if (this.awsQueryCompatible) {
          request2.headers["x-amzn-query-mode"] = "true";
        }
        return request2;
      }
      async handleError(operationSchema, context, response, dataObject, metadata) {
        if (this.awsQueryCompatible) {
          this.mixin.setQueryCompatError(dataObject, response);
        }
        const errorName = loadSmithyRpcV2CborErrorCode(response, dataObject) ?? "Unknown";
        const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorName, this.options.defaultNamespace, response, dataObject, metadata);
        const ns = NormalizedSchema.of(errorSchema);
        const message2 = dataObject.message ?? dataObject.Message ?? "Unknown";
        const exception = new errorSchema.ctor(message2);
        const output = {};
        for (const [name, member] of ns.structIterator()) {
          output[name] = this.deserializer.readValue(member, dataObject[name]);
        }
        if (this.awsQueryCompatible) {
          this.mixin.queryCompatOutput(dataObject, output);
        }
        throw Object.assign(exception, errorMetadata, {
          $fault: ns.getMergedTraits().error,
          message: message2
        }, output);
      }
    };
  }
});

// ../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/coercing-serializers.js
var _toStr, _toBool, _toNum;
var init_coercing_serializers = __esm({
  "../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/coercing-serializers.js"() {
    _toStr = /* @__PURE__ */ __name((val) => {
      if (val == null) {
        return val;
      }
      if (typeof val === "number" || typeof val === "bigint") {
        const warning2 = new Error(`Received number ${val} where a string was expected.`);
        warning2.name = "Warning";
        console.warn(warning2);
        return String(val);
      }
      if (typeof val === "boolean") {
        const warning2 = new Error(`Received boolean ${val} where a string was expected.`);
        warning2.name = "Warning";
        console.warn(warning2);
        return String(val);
      }
      return val;
    }, "_toStr");
    _toBool = /* @__PURE__ */ __name((val) => {
      if (val == null) {
        return val;
      }
      if (typeof val === "number") {
      }
      if (typeof val === "string") {
        const lowercase = val.toLowerCase();
        if (val !== "" && lowercase !== "false" && lowercase !== "true") {
          const warning2 = new Error(`Received string "${val}" where a boolean was expected.`);
          warning2.name = "Warning";
          console.warn(warning2);
        }
        return val !== "" && lowercase !== "false";
      }
      return val;
    }, "_toBool");
    _toNum = /* @__PURE__ */ __name((val) => {
      if (val == null) {
        return val;
      }
      if (typeof val === "boolean") {
      }
      if (typeof val === "string") {
        const num = Number(val);
        if (num.toString() !== val) {
          const warning2 = new Error(`Received string "${val}" where a number was expected.`);
          warning2.name = "Warning";
          console.warn(warning2);
          return val;
        }
        return num;
      }
      return val;
    }, "_toNum");
  }
});

// ../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/ConfigurableSerdeContext.js
var SerdeContextConfig;
var init_ConfigurableSerdeContext = __esm({
  "../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/ConfigurableSerdeContext.js"() {
    SerdeContextConfig = class {
      static {
        __name(this, "SerdeContextConfig");
      }
      serdeContext;
      setSerdeContext(serdeContext) {
        this.serdeContext = serdeContext;
      }
    };
  }
});

// ../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/jsonReviver.js
function jsonReviver(key, value, context) {
  if (context?.source) {
    const numericString = context.source;
    if (typeof value === "number") {
      if (value > Number.MAX_SAFE_INTEGER || value < Number.MIN_SAFE_INTEGER || numericString !== String(value)) {
        const isFractional = numericString.includes(".");
        if (isFractional) {
          return new NumericValue2(numericString, "bigDecimal");
        } else {
          return BigInt(numericString);
        }
      }
    }
  }
  return value;
}
var init_jsonReviver = __esm({
  "../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/jsonReviver.js"() {
    init_serde();
    __name(jsonReviver, "jsonReviver");
  }
});

// ../../node_modules/@smithy/middleware-stack/dist-cjs/index.js
var require_dist_cjs25 = __commonJS({
  "../../node_modules/@smithy/middleware-stack/dist-cjs/index.js"(exports2, module2) {
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var src_exports = {};
    __export2(src_exports, {
      constructStack: /* @__PURE__ */ __name(() => constructStack, "constructStack")
    });
    module2.exports = __toCommonJS2(src_exports);
    var getAllAliases = /* @__PURE__ */ __name2((name, aliases2) => {
      const _aliases = [];
      if (name) {
        _aliases.push(name);
      }
      if (aliases2) {
        for (const alias of aliases2) {
          _aliases.push(alias);
        }
      }
      return _aliases;
    }, "getAllAliases");
    var getMiddlewareNameWithAliases = /* @__PURE__ */ __name2((name, aliases2) => {
      return `${name || "anonymous"}${aliases2 && aliases2.length > 0 ? ` (a.k.a. ${aliases2.join(",")})` : ""}`;
    }, "getMiddlewareNameWithAliases");
    var constructStack = /* @__PURE__ */ __name2(() => {
      let absoluteEntries = [];
      let relativeEntries = [];
      let identifyOnResolve = false;
      const entriesNameSet = /* @__PURE__ */ new Set();
      const sort = /* @__PURE__ */ __name2((entries) => entries.sort(
        (a3, b3) => stepWeights[b3.step] - stepWeights[a3.step] || priorityWeights[b3.priority || "normal"] - priorityWeights[a3.priority || "normal"]
      ), "sort");
      const removeByName = /* @__PURE__ */ __name2((toRemove) => {
        let isRemoved = false;
        const filterCb = /* @__PURE__ */ __name2((entry) => {
          const aliases2 = getAllAliases(entry.name, entry.aliases);
          if (aliases2.includes(toRemove)) {
            isRemoved = true;
            for (const alias of aliases2) {
              entriesNameSet.delete(alias);
            }
            return false;
          }
          return true;
        }, "filterCb");
        absoluteEntries = absoluteEntries.filter(filterCb);
        relativeEntries = relativeEntries.filter(filterCb);
        return isRemoved;
      }, "removeByName");
      const removeByReference = /* @__PURE__ */ __name2((toRemove) => {
        let isRemoved = false;
        const filterCb = /* @__PURE__ */ __name2((entry) => {
          if (entry.middleware === toRemove) {
            isRemoved = true;
            for (const alias of getAllAliases(entry.name, entry.aliases)) {
              entriesNameSet.delete(alias);
            }
            return false;
          }
          return true;
        }, "filterCb");
        absoluteEntries = absoluteEntries.filter(filterCb);
        relativeEntries = relativeEntries.filter(filterCb);
        return isRemoved;
      }, "removeByReference");
      const cloneTo = /* @__PURE__ */ __name2((toStack) => {
        absoluteEntries.forEach((entry) => {
          toStack.add(entry.middleware, { ...entry });
        });
        relativeEntries.forEach((entry) => {
          toStack.addRelativeTo(entry.middleware, { ...entry });
        });
        toStack.identifyOnResolve?.(stack.identifyOnResolve());
        return toStack;
      }, "cloneTo");
      const expandRelativeMiddlewareList = /* @__PURE__ */ __name2((from) => {
        const expandedMiddlewareList = [];
        from.before.forEach((entry) => {
          if (entry.before.length === 0 && entry.after.length === 0) {
            expandedMiddlewareList.push(entry);
          } else {
            expandedMiddlewareList.push(...expandRelativeMiddlewareList(entry));
          }
        });
        expandedMiddlewareList.push(from);
        from.after.reverse().forEach((entry) => {
          if (entry.before.length === 0 && entry.after.length === 0) {
            expandedMiddlewareList.push(entry);
          } else {
            expandedMiddlewareList.push(...expandRelativeMiddlewareList(entry));
          }
        });
        return expandedMiddlewareList;
      }, "expandRelativeMiddlewareList");
      const getMiddlewareList = /* @__PURE__ */ __name2((debug3 = false) => {
        const normalizedAbsoluteEntries = [];
        const normalizedRelativeEntries = [];
        const normalizedEntriesNameMap = {};
        absoluteEntries.forEach((entry) => {
          const normalizedEntry = {
            ...entry,
            before: [],
            after: []
          };
          for (const alias of getAllAliases(normalizedEntry.name, normalizedEntry.aliases)) {
            normalizedEntriesNameMap[alias] = normalizedEntry;
          }
          normalizedAbsoluteEntries.push(normalizedEntry);
        });
        relativeEntries.forEach((entry) => {
          const normalizedEntry = {
            ...entry,
            before: [],
            after: []
          };
          for (const alias of getAllAliases(normalizedEntry.name, normalizedEntry.aliases)) {
            normalizedEntriesNameMap[alias] = normalizedEntry;
          }
          normalizedRelativeEntries.push(normalizedEntry);
        });
        normalizedRelativeEntries.forEach((entry) => {
          if (entry.toMiddleware) {
            const toMiddleware = normalizedEntriesNameMap[entry.toMiddleware];
            if (toMiddleware === void 0) {
              if (debug3) {
                return;
              }
              throw new Error(
                `${entry.toMiddleware} is not found when adding ${getMiddlewareNameWithAliases(entry.name, entry.aliases)} middleware ${entry.relation} ${entry.toMiddleware}`
              );
            }
            if (entry.relation === "after") {
              toMiddleware.after.push(entry);
            }
            if (entry.relation === "before") {
              toMiddleware.before.push(entry);
            }
          }
        });
        const mainChain = sort(normalizedAbsoluteEntries).map(expandRelativeMiddlewareList).reduce(
          (wholeList, expandedMiddlewareList) => {
            wholeList.push(...expandedMiddlewareList);
            return wholeList;
          },
          []
        );
        return mainChain;
      }, "getMiddlewareList");
      const stack = {
        add: /* @__PURE__ */ __name((middleware, options = {}) => {
          const { name, override, aliases: _aliases } = options;
          const entry = {
            step: "initialize",
            priority: "normal",
            middleware,
            ...options
          };
          const aliases2 = getAllAliases(name, _aliases);
          if (aliases2.length > 0) {
            if (aliases2.some((alias) => entriesNameSet.has(alias))) {
              if (!override)
                throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(name, _aliases)}'`);
              for (const alias of aliases2) {
                const toOverrideIndex = absoluteEntries.findIndex(
                  (entry2) => entry2.name === alias || entry2.aliases?.some((a3) => a3 === alias)
                );
                if (toOverrideIndex === -1) {
                  continue;
                }
                const toOverride = absoluteEntries[toOverrideIndex];
                if (toOverride.step !== entry.step || entry.priority !== toOverride.priority) {
                  throw new Error(
                    `"${getMiddlewareNameWithAliases(toOverride.name, toOverride.aliases)}" middleware with ${toOverride.priority} priority in ${toOverride.step} step cannot be overridden by "${getMiddlewareNameWithAliases(name, _aliases)}" middleware with ${entry.priority} priority in ${entry.step} step.`
                  );
                }
                absoluteEntries.splice(toOverrideIndex, 1);
              }
            }
            for (const alias of aliases2) {
              entriesNameSet.add(alias);
            }
          }
          absoluteEntries.push(entry);
        }, "add"),
        addRelativeTo: /* @__PURE__ */ __name((middleware, options) => {
          const { name, override, aliases: _aliases } = options;
          const entry = {
            middleware,
            ...options
          };
          const aliases2 = getAllAliases(name, _aliases);
          if (aliases2.length > 0) {
            if (aliases2.some((alias) => entriesNameSet.has(alias))) {
              if (!override)
                throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(name, _aliases)}'`);
              for (const alias of aliases2) {
                const toOverrideIndex = relativeEntries.findIndex(
                  (entry2) => entry2.name === alias || entry2.aliases?.some((a3) => a3 === alias)
                );
                if (toOverrideIndex === -1) {
                  continue;
                }
                const toOverride = relativeEntries[toOverrideIndex];
                if (toOverride.toMiddleware !== entry.toMiddleware || toOverride.relation !== entry.relation) {
                  throw new Error(
                    `"${getMiddlewareNameWithAliases(toOverride.name, toOverride.aliases)}" middleware ${toOverride.relation} "${toOverride.toMiddleware}" middleware cannot be overridden by "${getMiddlewareNameWithAliases(name, _aliases)}" middleware ${entry.relation} "${entry.toMiddleware}" middleware.`
                  );
                }
                relativeEntries.splice(toOverrideIndex, 1);
              }
            }
            for (const alias of aliases2) {
              entriesNameSet.add(alias);
            }
          }
          relativeEntries.push(entry);
        }, "addRelativeTo"),
        clone: /* @__PURE__ */ __name(() => cloneTo(constructStack()), "clone"),
        use: /* @__PURE__ */ __name((plugin) => {
          plugin.applyToStack(stack);
        }, "use"),
        remove: /* @__PURE__ */ __name((toRemove) => {
          if (typeof toRemove === "string")
            return removeByName(toRemove);
          else
            return removeByReference(toRemove);
        }, "remove"),
        removeByTag: /* @__PURE__ */ __name((toRemove) => {
          let isRemoved = false;
          const filterCb = /* @__PURE__ */ __name2((entry) => {
            const { tags, name, aliases: _aliases } = entry;
            if (tags && tags.includes(toRemove)) {
              const aliases2 = getAllAliases(name, _aliases);
              for (const alias of aliases2) {
                entriesNameSet.delete(alias);
              }
              isRemoved = true;
              return false;
            }
            return true;
          }, "filterCb");
          absoluteEntries = absoluteEntries.filter(filterCb);
          relativeEntries = relativeEntries.filter(filterCb);
          return isRemoved;
        }, "removeByTag"),
        concat: /* @__PURE__ */ __name((from) => {
          const cloned = cloneTo(constructStack());
          cloned.use(from);
          cloned.identifyOnResolve(
            identifyOnResolve || cloned.identifyOnResolve() || (from.identifyOnResolve?.() ?? false)
          );
          return cloned;
        }, "concat"),
        applyToStack: cloneTo,
        identify: /* @__PURE__ */ __name(() => {
          return getMiddlewareList(true).map((mw) => {
            const step = mw.step ?? mw.relation + " " + mw.toMiddleware;
            return getMiddlewareNameWithAliases(mw.name, mw.aliases) + " - " + step;
          });
        }, "identify"),
        identifyOnResolve(toggle) {
          if (typeof toggle === "boolean")
            identifyOnResolve = toggle;
          return identifyOnResolve;
        },
        resolve: /* @__PURE__ */ __name((handler, context) => {
          for (const middleware of getMiddlewareList().map((entry) => entry.middleware).reverse()) {
            handler = middleware(handler, context);
          }
          if (identifyOnResolve) {
            console.log(stack.identify());
          }
          return handler;
        }, "resolve")
      };
      return stack;
    }, "constructStack");
    var stepWeights = {
      initialize: 5,
      serialize: 4,
      build: 3,
      finalizeRequest: 2,
      deserialize: 1
    };
    var priorityWeights = {
      high: 3,
      normal: 2,
      low: 1
    };
  }
});

// ../../node_modules/@smithy/smithy-client/dist-cjs/index.js
var require_dist_cjs26 = __commonJS({
  "../../node_modules/@smithy/smithy-client/dist-cjs/index.js"(exports2, module2) {
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __reExport = /* @__PURE__ */ __name((target, mod, secondTarget) => (__copyProps2(target, mod, "default"), secondTarget && __copyProps2(secondTarget, mod, "default")), "__reExport");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var src_exports = {};
    __export2(src_exports, {
      Client: /* @__PURE__ */ __name(() => Client, "Client"),
      Command: /* @__PURE__ */ __name(() => Command2, "Command"),
      NoOpLogger: /* @__PURE__ */ __name(() => NoOpLogger3, "NoOpLogger"),
      SENSITIVE_STRING: /* @__PURE__ */ __name(() => SENSITIVE_STRING22, "SENSITIVE_STRING"),
      ServiceException: /* @__PURE__ */ __name(() => ServiceException, "ServiceException"),
      _json: /* @__PURE__ */ __name(() => _json2, "_json"),
      collectBody: /* @__PURE__ */ __name(() => import_protocols9.collectBody, "collectBody"),
      convertMap: /* @__PURE__ */ __name(() => convertMap, "convertMap"),
      createAggregatedClient: /* @__PURE__ */ __name(() => createAggregatedClient3, "createAggregatedClient"),
      decorateServiceException: /* @__PURE__ */ __name(() => decorateServiceException, "decorateServiceException"),
      emitWarningIfUnsupportedVersion: /* @__PURE__ */ __name(() => emitWarningIfUnsupportedVersion4, "emitWarningIfUnsupportedVersion"),
      extendedEncodeURIComponent: /* @__PURE__ */ __name(() => import_protocols9.extendedEncodeURIComponent, "extendedEncodeURIComponent"),
      getArrayIfSingleItem: /* @__PURE__ */ __name(() => getArrayIfSingleItem, "getArrayIfSingleItem"),
      getDefaultClientConfiguration: /* @__PURE__ */ __name(() => getDefaultClientConfiguration, "getDefaultClientConfiguration"),
      getDefaultExtensionConfiguration: /* @__PURE__ */ __name(() => getDefaultExtensionConfiguration3, "getDefaultExtensionConfiguration"),
      getValueFromTextNode: /* @__PURE__ */ __name(() => getValueFromTextNode3, "getValueFromTextNode"),
      isSerializableHeaderValue: /* @__PURE__ */ __name(() => isSerializableHeaderValue, "isSerializableHeaderValue"),
      loadConfigsForDefaultMode: /* @__PURE__ */ __name(() => loadConfigsForDefaultMode3, "loadConfigsForDefaultMode"),
      map: /* @__PURE__ */ __name(() => map3, "map"),
      resolveDefaultRuntimeConfig: /* @__PURE__ */ __name(() => resolveDefaultRuntimeConfig3, "resolveDefaultRuntimeConfig"),
      resolvedPath: /* @__PURE__ */ __name(() => import_protocols9.resolvedPath, "resolvedPath"),
      serializeDateTime: /* @__PURE__ */ __name(() => serializeDateTime, "serializeDateTime"),
      serializeFloat: /* @__PURE__ */ __name(() => serializeFloat, "serializeFloat"),
      take: /* @__PURE__ */ __name(() => take2, "take"),
      throwDefaultError: /* @__PURE__ */ __name(() => throwDefaultError3, "throwDefaultError"),
      withBaseException: /* @__PURE__ */ __name(() => withBaseException3, "withBaseException")
    });
    module2.exports = __toCommonJS2(src_exports);
    var import_middleware_stack = require_dist_cjs25();
    var Client = class {
      static {
        __name(this, "Client");
      }
      constructor(config) {
        this.config = config;
        this.middlewareStack = (0, import_middleware_stack.constructStack)();
      }
      static {
        __name2(this, "Client");
      }
      send(command2, optionsOrCb, cb) {
        const options = typeof optionsOrCb !== "function" ? optionsOrCb : void 0;
        const callback = typeof optionsOrCb === "function" ? optionsOrCb : cb;
        const useHandlerCache = options === void 0 && this.config.cacheMiddleware === true;
        let handler;
        if (useHandlerCache) {
          if (!this.handlers) {
            this.handlers = /* @__PURE__ */ new WeakMap();
          }
          const handlers = this.handlers;
          if (handlers.has(command2.constructor)) {
            handler = handlers.get(command2.constructor);
          } else {
            handler = command2.resolveMiddleware(this.middlewareStack, this.config, options);
            handlers.set(command2.constructor, handler);
          }
        } else {
          delete this.handlers;
          handler = command2.resolveMiddleware(this.middlewareStack, this.config, options);
        }
        if (callback) {
          handler(command2).then(
            (result2) => callback(null, result2.output),
            (err) => callback(err)
          ).catch(
            // prevent any errors thrown in the callback from triggering an
            // unhandled promise rejection
            () => {
            }
          );
        } else {
          return handler(command2).then((result2) => result2.output);
        }
      }
      destroy() {
        this.config?.requestHandler?.destroy?.();
        delete this.handlers;
      }
    };
    var import_protocols9 = (init_protocols(), __toCommonJS(protocols_exports));
    var import_types7 = require_dist_cjs();
    var import_schema25 = (init_schema4(), __toCommonJS(schema_exports));
    var SENSITIVE_STRING3 = "***SensitiveInformation***";
    function schemaLogFilter(schema, data3) {
      if (data3 == null) {
        return data3;
      }
      const ns = import_schema25.NormalizedSchema.of(schema);
      if (ns.getMergedTraits().sensitive) {
        return SENSITIVE_STRING3;
      }
      if (ns.isListSchema()) {
        const isSensitive = !!ns.getValueSchema().getMergedTraits().sensitive;
        if (isSensitive) {
          return SENSITIVE_STRING3;
        }
      } else if (ns.isMapSchema()) {
        const isSensitive = !!ns.getKeySchema().getMergedTraits().sensitive || !!ns.getValueSchema().getMergedTraits().sensitive;
        if (isSensitive) {
          return SENSITIVE_STRING3;
        }
      } else if (ns.isStructSchema() && typeof data3 === "object") {
        const object = data3;
        const newObject = {};
        for (const [member, memberNs] of ns.structIterator()) {
          if (object[member] != null) {
            newObject[member] = schemaLogFilter(memberNs, object[member]);
          }
        }
        return newObject;
      }
      return data3;
    }
    __name(schemaLogFilter, "schemaLogFilter");
    __name2(schemaLogFilter, "schemaLogFilter");
    var Command2 = class {
      static {
        __name(this, "Command");
      }
      constructor() {
        this.middlewareStack = (0, import_middleware_stack.constructStack)();
      }
      static {
        __name2(this, "Command");
      }
      /**
       * Factory for Command ClassBuilder.
       * @internal
       */
      static classBuilder() {
        return new ClassBuilder();
      }
      /**
       * @internal
       */
      resolveMiddlewareWithContext(clientStack, configuration, options, {
        middlewareFn,
        clientName,
        commandName,
        inputFilterSensitiveLog,
        outputFilterSensitiveLog,
        smithyContext,
        additionalContext,
        CommandCtor
      }) {
        for (const mw of middlewareFn.bind(this)(CommandCtor, clientStack, configuration, options)) {
          this.middlewareStack.use(mw);
        }
        const stack = clientStack.concat(this.middlewareStack);
        const { logger: logger4 } = configuration;
        const handlerExecutionContext = {
          logger: logger4,
          clientName,
          commandName,
          inputFilterSensitiveLog,
          outputFilterSensitiveLog,
          [import_types7.SMITHY_CONTEXT_KEY]: {
            commandInstance: this,
            ...smithyContext
          },
          ...additionalContext
        };
        const { requestHandler } = configuration;
        return stack.resolve(
          (request2) => requestHandler.handle(request2.request, options || {}),
          handlerExecutionContext
        );
      }
    };
    var ClassBuilder = class {
      static {
        __name(this, "ClassBuilder");
      }
      constructor() {
        this._init = () => {
        };
        this._ep = {};
        this._middlewareFn = () => [];
        this._commandName = "";
        this._clientName = "";
        this._additionalContext = {};
        this._smithyContext = {};
        this._inputFilterSensitiveLog = void 0;
        this._outputFilterSensitiveLog = void 0;
        this._serializer = null;
        this._deserializer = null;
      }
      static {
        __name2(this, "ClassBuilder");
      }
      /**
       * Optional init callback.
       */
      init(cb) {
        this._init = cb;
      }
      /**
       * Set the endpoint parameter instructions.
       */
      ep(endpointParameterInstructions) {
        this._ep = endpointParameterInstructions;
        return this;
      }
      /**
       * Add any number of middleware.
       */
      m(middlewareSupplier) {
        this._middlewareFn = middlewareSupplier;
        return this;
      }
      /**
       * Set the initial handler execution context Smithy field.
       */
      s(service, operation, smithyContext = {}) {
        this._smithyContext = {
          service,
          operation,
          ...smithyContext
        };
        return this;
      }
      /**
       * Set the initial handler execution context.
       */
      c(additionalContext = {}) {
        this._additionalContext = additionalContext;
        return this;
      }
      /**
       * Set constant string identifiers for the operation.
       */
      n(clientName, commandName) {
        this._clientName = clientName;
        this._commandName = commandName;
        return this;
      }
      /**
       * Set the input and output sensistive log filters.
       */
      f(inputFilter = (_3) => _3, outputFilter = (_3) => _3) {
        this._inputFilterSensitiveLog = inputFilter;
        this._outputFilterSensitiveLog = outputFilter;
        return this;
      }
      /**
       * Sets the serializer.
       */
      ser(serializer) {
        this._serializer = serializer;
        return this;
      }
      /**
       * Sets the deserializer.
       */
      de(deserializer) {
        this._deserializer = deserializer;
        return this;
      }
      /**
       * Sets input/output schema for the operation.
       */
      sc(operation) {
        this._operationSchema = operation;
        this._smithyContext.operationSchema = operation;
        return this;
      }
      /**
       * @returns a Command class with the classBuilder properties.
       */
      build() {
        const closure = this;
        let CommandRef;
        return CommandRef = class extends Command2 {
          static {
            __name(this, "CommandRef");
          }
          /**
           * @public
           */
          constructor(...[input]) {
            super();
            this.serialize = closure._serializer;
            this.deserialize = closure._deserializer;
            this.input = input ?? {};
            closure._init(this);
            this.schema = closure._operationSchema;
          }
          static {
            __name2(this, "CommandRef");
          }
          /**
           * @public
           */
          static getEndpointParameterInstructions() {
            return closure._ep;
          }
          /**
           * @internal
           */
          resolveMiddleware(stack, configuration, options) {
            return this.resolveMiddlewareWithContext(stack, configuration, options, {
              CommandCtor: CommandRef,
              middlewareFn: closure._middlewareFn,
              clientName: closure._clientName,
              commandName: closure._commandName,
              inputFilterSensitiveLog: closure._inputFilterSensitiveLog ?? (closure._operationSchema ? schemaLogFilter.bind(null, closure._operationSchema.input) : (_3) => _3),
              outputFilterSensitiveLog: closure._outputFilterSensitiveLog ?? (closure._operationSchema ? schemaLogFilter.bind(null, closure._operationSchema.output) : (_3) => _3),
              smithyContext: closure._smithyContext,
              additionalContext: closure._additionalContext
            });
          }
        };
      }
    };
    var SENSITIVE_STRING22 = "***SensitiveInformation***";
    var createAggregatedClient3 = /* @__PURE__ */ __name2((commands3, Client2) => {
      for (const command2 of Object.keys(commands3)) {
        const CommandCtor = commands3[command2];
        const methodImpl = /* @__PURE__ */ __name2(async function(args, optionsOrCb, cb) {
          const command22 = new CommandCtor(args);
          if (typeof optionsOrCb === "function") {
            this.send(command22, optionsOrCb);
          } else if (typeof cb === "function") {
            if (typeof optionsOrCb !== "object")
              throw new Error(`Expected http options but got ${typeof optionsOrCb}`);
            this.send(command22, optionsOrCb || {}, cb);
          } else {
            return this.send(command22, optionsOrCb);
          }
        }, "methodImpl");
        const methodName = (command2[0].toLowerCase() + command2.slice(1)).replace(/Command$/, "");
        Client2.prototype[methodName] = methodImpl;
      }
    }, "createAggregatedClient");
    var ServiceException = class _ServiceException extends Error {
      static {
        __name(this, "_ServiceException");
      }
      static {
        __name2(this, "ServiceException");
      }
      constructor(options) {
        super(options.message);
        Object.setPrototypeOf(this, Object.getPrototypeOf(this).constructor.prototype);
        this.name = options.name;
        this.$fault = options.$fault;
        this.$metadata = options.$metadata;
      }
      /**
       * Checks if a value is an instance of ServiceException (duck typed)
       */
      static isInstance(value) {
        if (!value)
          return false;
        const candidate = value;
        return _ServiceException.prototype.isPrototypeOf(candidate) || Boolean(candidate.$fault) && Boolean(candidate.$metadata) && (candidate.$fault === "client" || candidate.$fault === "server");
      }
      /**
       * Custom instanceof check to support the operator for ServiceException base class
       */
      static [Symbol.hasInstance](instance) {
        if (!instance)
          return false;
        const candidate = instance;
        if (this === _ServiceException) {
          return _ServiceException.isInstance(instance);
        }
        if (_ServiceException.isInstance(instance)) {
          if (candidate.name && this.name) {
            return this.prototype.isPrototypeOf(instance) || candidate.name === this.name;
          }
          return this.prototype.isPrototypeOf(instance);
        }
        return false;
      }
    };
    var decorateServiceException = /* @__PURE__ */ __name2((exception, additions = {}) => {
      Object.entries(additions).filter(([, v6]) => v6 !== void 0).forEach(([k3, v6]) => {
        if (exception[k3] == void 0 || exception[k3] === "") {
          exception[k3] = v6;
        }
      });
      const message2 = exception.message || exception.Message || "UnknownError";
      exception.message = message2;
      delete exception.Message;
      return exception;
    }, "decorateServiceException");
    var throwDefaultError3 = /* @__PURE__ */ __name2(({ output, parsedBody, exceptionCtor, errorCode }) => {
      const $metadata = deserializeMetadata3(output);
      const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : void 0;
      const response = new exceptionCtor({
        name: parsedBody?.code || parsedBody?.Code || errorCode || statusCode || "UnknownError",
        $fault: "client",
        $metadata
      });
      throw decorateServiceException(response, parsedBody);
    }, "throwDefaultError");
    var withBaseException3 = /* @__PURE__ */ __name2((ExceptionCtor) => {
      return ({ output, parsedBody, errorCode }) => {
        throwDefaultError3({ output, parsedBody, exceptionCtor: ExceptionCtor, errorCode });
      };
    }, "withBaseException");
    var deserializeMetadata3 = /* @__PURE__ */ __name2((output) => ({
      httpStatusCode: output.statusCode,
      requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
      extendedRequestId: output.headers["x-amz-id-2"],
      cfId: output.headers["x-amz-cf-id"]
    }), "deserializeMetadata");
    var loadConfigsForDefaultMode3 = /* @__PURE__ */ __name2((mode) => {
      switch (mode) {
        case "standard":
          return {
            retryMode: "standard",
            connectionTimeout: 3100
          };
        case "in-region":
          return {
            retryMode: "standard",
            connectionTimeout: 1100
          };
        case "cross-region":
          return {
            retryMode: "standard",
            connectionTimeout: 3100
          };
        case "mobile":
          return {
            retryMode: "standard",
            connectionTimeout: 3e4
          };
        default:
          return {};
      }
    }, "loadConfigsForDefaultMode");
    var warningEmitted = false;
    var emitWarningIfUnsupportedVersion4 = /* @__PURE__ */ __name2((version2) => {
      if (version2 && !warningEmitted && parseInt(version2.substring(1, version2.indexOf("."))) < 16) {
        warningEmitted = true;
      }
    }, "emitWarningIfUnsupportedVersion");
    var getChecksumConfiguration = /* @__PURE__ */ __name2((runtimeConfig) => {
      const checksumAlgorithms = [];
      for (const id in import_types7.AlgorithmId) {
        const algorithmId = import_types7.AlgorithmId[id];
        if (runtimeConfig[algorithmId] === void 0) {
          continue;
        }
        checksumAlgorithms.push({
          algorithmId: /* @__PURE__ */ __name(() => algorithmId, "algorithmId"),
          checksumConstructor: /* @__PURE__ */ __name(() => runtimeConfig[algorithmId], "checksumConstructor")
        });
      }
      return {
        addChecksumAlgorithm(algo) {
          checksumAlgorithms.push(algo);
        },
        checksumAlgorithms() {
          return checksumAlgorithms;
        }
      };
    }, "getChecksumConfiguration");
    var resolveChecksumRuntimeConfig = /* @__PURE__ */ __name2((clientConfig) => {
      const runtimeConfig = {};
      clientConfig.checksumAlgorithms().forEach((checksumAlgorithm) => {
        runtimeConfig[checksumAlgorithm.algorithmId()] = checksumAlgorithm.checksumConstructor();
      });
      return runtimeConfig;
    }, "resolveChecksumRuntimeConfig");
    var getRetryConfiguration = /* @__PURE__ */ __name2((runtimeConfig) => {
      return {
        setRetryStrategy(retryStrategy) {
          runtimeConfig.retryStrategy = retryStrategy;
        },
        retryStrategy() {
          return runtimeConfig.retryStrategy;
        }
      };
    }, "getRetryConfiguration");
    var resolveRetryRuntimeConfig = /* @__PURE__ */ __name2((retryStrategyConfiguration) => {
      const runtimeConfig = {};
      runtimeConfig.retryStrategy = retryStrategyConfiguration.retryStrategy();
      return runtimeConfig;
    }, "resolveRetryRuntimeConfig");
    var getDefaultExtensionConfiguration3 = /* @__PURE__ */ __name2((runtimeConfig) => {
      return Object.assign(getChecksumConfiguration(runtimeConfig), getRetryConfiguration(runtimeConfig));
    }, "getDefaultExtensionConfiguration");
    var getDefaultClientConfiguration = getDefaultExtensionConfiguration3;
    var resolveDefaultRuntimeConfig3 = /* @__PURE__ */ __name2((config) => {
      return Object.assign(resolveChecksumRuntimeConfig(config), resolveRetryRuntimeConfig(config));
    }, "resolveDefaultRuntimeConfig");
    var getArrayIfSingleItem = /* @__PURE__ */ __name2((mayBeArray) => Array.isArray(mayBeArray) ? mayBeArray : [mayBeArray], "getArrayIfSingleItem");
    var getValueFromTextNode3 = /* @__PURE__ */ __name2((obj) => {
      const textNodeName = "#text";
      for (const key in obj) {
        if (obj.hasOwnProperty(key) && obj[key][textNodeName] !== void 0) {
          obj[key] = obj[key][textNodeName];
        } else if (typeof obj[key] === "object" && obj[key] !== null) {
          obj[key] = getValueFromTextNode3(obj[key]);
        }
      }
      return obj;
    }, "getValueFromTextNode");
    var isSerializableHeaderValue = /* @__PURE__ */ __name2((value) => {
      return value != null;
    }, "isSerializableHeaderValue");
    var NoOpLogger3 = class {
      static {
        __name(this, "NoOpLogger");
      }
      static {
        __name2(this, "NoOpLogger");
      }
      trace() {
      }
      debug() {
      }
      info() {
      }
      warn() {
      }
      error() {
      }
    };
    function map3(arg0, arg1, arg2) {
      let target;
      let filter4;
      let instructions;
      if (typeof arg1 === "undefined" && typeof arg2 === "undefined") {
        target = {};
        instructions = arg0;
      } else {
        target = arg0;
        if (typeof arg1 === "function") {
          filter4 = arg1;
          instructions = arg2;
          return mapWithFilter(target, filter4, instructions);
        } else {
          instructions = arg1;
        }
      }
      for (const key of Object.keys(instructions)) {
        if (!Array.isArray(instructions[key])) {
          target[key] = instructions[key];
          continue;
        }
        applyInstruction(target, null, instructions, key);
      }
      return target;
    }
    __name(map3, "map");
    __name2(map3, "map");
    var convertMap = /* @__PURE__ */ __name2((target) => {
      const output = {};
      for (const [k3, v6] of Object.entries(target || {})) {
        output[k3] = [, v6];
      }
      return output;
    }, "convertMap");
    var take2 = /* @__PURE__ */ __name2((source, instructions) => {
      const out = {};
      for (const key in instructions) {
        applyInstruction(out, source, instructions, key);
      }
      return out;
    }, "take");
    var mapWithFilter = /* @__PURE__ */ __name2((target, filter4, instructions) => {
      return map3(
        target,
        Object.entries(instructions).reduce(
          (_instructions, [key, value]) => {
            if (Array.isArray(value)) {
              _instructions[key] = value;
            } else {
              if (typeof value === "function") {
                _instructions[key] = [filter4, value()];
              } else {
                _instructions[key] = [filter4, value];
              }
            }
            return _instructions;
          },
          {}
        )
      );
    }, "mapWithFilter");
    var applyInstruction = /* @__PURE__ */ __name2((target, source, instructions, targetKey) => {
      if (source !== null) {
        let instruction = instructions[targetKey];
        if (typeof instruction === "function") {
          instruction = [, instruction];
        }
        const [filter22 = nonNullish, valueFn = pass, sourceKey = targetKey] = instruction;
        if (typeof filter22 === "function" && filter22(source[sourceKey]) || typeof filter22 !== "function" && !!filter22) {
          target[targetKey] = valueFn(source[sourceKey]);
        }
        return;
      }
      let [filter4, value] = instructions[targetKey];
      if (typeof value === "function") {
        let _value;
        const defaultFilterPassed = filter4 === void 0 && (_value = value()) != null;
        const customFilterPassed = typeof filter4 === "function" && !!filter4(void 0) || typeof filter4 !== "function" && !!filter4;
        if (defaultFilterPassed) {
          target[targetKey] = _value;
        } else if (customFilterPassed) {
          target[targetKey] = value();
        }
      } else {
        const defaultFilterPassed = filter4 === void 0 && value != null;
        const customFilterPassed = typeof filter4 === "function" && !!filter4(value) || typeof filter4 !== "function" && !!filter4;
        if (defaultFilterPassed || customFilterPassed) {
          target[targetKey] = value;
        }
      }
    }, "applyInstruction");
    var nonNullish = /* @__PURE__ */ __name2((_3) => _3 != null, "nonNullish");
    var pass = /* @__PURE__ */ __name2((_3) => _3, "pass");
    var serializeFloat = /* @__PURE__ */ __name2((value) => {
      if (value !== value) {
        return "NaN";
      }
      switch (value) {
        case Infinity:
          return "Infinity";
        case -Infinity:
          return "-Infinity";
        default:
          return value;
      }
    }, "serializeFloat");
    var serializeDateTime = /* @__PURE__ */ __name2((date) => date.toISOString().replace(".000Z", "Z"), "serializeDateTime");
    var _json2 = /* @__PURE__ */ __name2((obj) => {
      if (obj == null) {
        return {};
      }
      if (Array.isArray(obj)) {
        return obj.filter((_3) => _3 != null).map(_json2);
      }
      if (typeof obj === "object") {
        const target = {};
        for (const key of Object.keys(obj)) {
          if (obj[key] == null) {
            continue;
          }
          target[key] = _json2(obj[key]);
        }
        return target;
      }
      return obj;
    }, "_json");
    __reExport(src_exports, (init_serde(), __toCommonJS(serde_exports)), module2.exports);
  }
});

// ../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/common.js
var import_smithy_client, import_util_utf86, collectBodyString;
var init_common2 = __esm({
  "../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/common.js"() {
    import_smithy_client = __toESM(require_dist_cjs26());
    import_util_utf86 = __toESM(require_dist_cjs10());
    collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => (context?.utf8Encoder ?? import_util_utf86.toUtf8)(body)), "collectBodyString");
  }
});

// ../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/parseJsonBody.js
var parseJsonBody, parseJsonErrorBody, loadRestJsonErrorCode;
var init_parseJsonBody = __esm({
  "../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/parseJsonBody.js"() {
    init_common2();
    parseJsonBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
      if (encoded.length) {
        try {
          return JSON.parse(encoded);
        } catch (e3) {
          if (e3?.name === "SyntaxError") {
            Object.defineProperty(e3, "$responseBodyText", {
              value: encoded
            });
          }
          throw e3;
        }
      }
      return {};
    }), "parseJsonBody");
    parseJsonErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
      const value = await parseJsonBody(errorBody, context);
      value.message = value.message ?? value.Message;
      return value;
    }, "parseJsonErrorBody");
    loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data3) => {
      const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k3) => k3.toLowerCase() === key.toLowerCase()), "findKey");
      const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
        let cleanValue = rawValue;
        if (typeof cleanValue === "number") {
          cleanValue = cleanValue.toString();
        }
        if (cleanValue.indexOf(",") >= 0) {
          cleanValue = cleanValue.split(",")[0];
        }
        if (cleanValue.indexOf(":") >= 0) {
          cleanValue = cleanValue.split(":")[0];
        }
        if (cleanValue.indexOf("#") >= 0) {
          cleanValue = cleanValue.split("#")[1];
        }
        return cleanValue;
      }, "sanitizeErrorCode");
      const headerKey = findKey(output.headers, "x-amzn-errortype");
      if (headerKey !== void 0) {
        return sanitizeErrorCode(output.headers[headerKey]);
      }
      if (data3 && typeof data3 === "object") {
        const codeKey = findKey(data3, "code");
        if (codeKey && data3[codeKey] !== void 0) {
          return sanitizeErrorCode(data3[codeKey]);
        }
        if (data3["__type"] !== void 0) {
          return sanitizeErrorCode(data3["__type"]);
        }
      }
    }, "loadRestJsonErrorCode");
  }
});

// ../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js
var import_util_base644, JsonShapeDeserializer;
var init_JsonShapeDeserializer = __esm({
  "../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js"() {
    init_schema4();
    init_serde();
    import_util_base644 = __toESM(require_dist_cjs11());
    init_ConfigurableSerdeContext();
    init_jsonReviver();
    init_parseJsonBody();
    JsonShapeDeserializer = class extends SerdeContextConfig {
      static {
        __name(this, "JsonShapeDeserializer");
      }
      settings;
      constructor(settings) {
        super();
        this.settings = settings;
      }
      async read(schema, data3) {
        return this._read(schema, typeof data3 === "string" ? JSON.parse(data3, jsonReviver) : await parseJsonBody(data3, this.serdeContext));
      }
      readObject(schema, data3) {
        return this._read(schema, data3);
      }
      _read(schema, value) {
        const isObject3 = value !== null && typeof value === "object";
        const ns = NormalizedSchema.of(schema);
        if (ns.isListSchema() && Array.isArray(value)) {
          const listMember = ns.getValueSchema();
          const out = [];
          const sparse = !!ns.getMergedTraits().sparse;
          for (const item of value) {
            if (sparse || item != null) {
              out.push(this._read(listMember, item));
            }
          }
          return out;
        } else if (ns.isMapSchema() && isObject3) {
          const mapMember = ns.getValueSchema();
          const out = {};
          const sparse = !!ns.getMergedTraits().sparse;
          for (const [_k, _v] of Object.entries(value)) {
            if (sparse || _v != null) {
              out[_k] = this._read(mapMember, _v);
            }
          }
          return out;
        } else if (ns.isStructSchema() && isObject3) {
          const out = {};
          for (const [memberName, memberSchema] of ns.structIterator()) {
            const fromKey = this.settings.jsonName ? memberSchema.getMergedTraits().jsonName ?? memberName : memberName;
            const deserializedValue = this._read(memberSchema, value[fromKey]);
            if (deserializedValue != null) {
              out[memberName] = deserializedValue;
            }
          }
          return out;
        }
        if (ns.isBlobSchema() && typeof value === "string") {
          return (0, import_util_base644.fromBase64)(value);
        }
        const mediaType = ns.getMergedTraits().mediaType;
        if (ns.isStringSchema() && typeof value === "string" && mediaType) {
          const isJson = mediaType === "application/json" || mediaType.endsWith("+json");
          if (isJson) {
            return LazyJsonString2.from(value);
          }
        }
        if (ns.isTimestampSchema()) {
          const options = this.settings.timestampFormat;
          const format26 = options.useTrait ? ns.getSchema() === SCHEMA.TIMESTAMP_DEFAULT ? options.default : ns.getSchema() ?? options.default : options.default;
          switch (format26) {
            case SCHEMA.TIMESTAMP_DATE_TIME:
              return parseRfc3339DateTimeWithOffset2(value);
            case SCHEMA.TIMESTAMP_HTTP_DATE:
              return parseRfc7231DateTime2(value);
            case SCHEMA.TIMESTAMP_EPOCH_SECONDS:
              return parseEpochTimestamp2(value);
            default:
              console.warn("Missing timestamp format, parsing value with Date constructor:", value);
              return new Date(value);
          }
        }
        if (ns.isBigIntegerSchema() && (typeof value === "number" || typeof value === "string")) {
          return BigInt(value);
        }
        if (ns.isBigDecimalSchema() && value != void 0) {
          if (value instanceof NumericValue2) {
            return value;
          }
          return new NumericValue2(String(value), "bigDecimal");
        }
        if (ns.isNumericSchema() && typeof value === "string") {
          switch (value) {
            case "Infinity":
              return Infinity;
            case "-Infinity":
              return -Infinity;
            case "NaN":
              return NaN;
          }
        }
        return value;
      }
    };
  }
});

// ../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/jsonReplacer.js
var NUMERIC_CONTROL_CHAR, JsonReplacer;
var init_jsonReplacer = __esm({
  "../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/jsonReplacer.js"() {
    init_serde();
    NUMERIC_CONTROL_CHAR = String.fromCharCode(925);
    JsonReplacer = class {
      static {
        __name(this, "JsonReplacer");
      }
      values = /* @__PURE__ */ new Map();
      counter = 0;
      stage = 0;
      createReplacer() {
        if (this.stage === 1) {
          throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.");
        }
        if (this.stage === 2) {
          throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");
        }
        this.stage = 1;
        return (key, value) => {
          if (value instanceof NumericValue2) {
            const v6 = `${NUMERIC_CONTROL_CHAR + "nv" + this.counter++}_` + value.string;
            this.values.set(`"${v6}"`, value.string);
            return v6;
          }
          if (typeof value === "bigint") {
            const s3 = value.toString();
            const v6 = `${NUMERIC_CONTROL_CHAR + "b" + this.counter++}_` + s3;
            this.values.set(`"${v6}"`, s3);
            return v6;
          }
          return value;
        };
      }
      replaceInJson(json) {
        if (this.stage === 0) {
          throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");
        }
        if (this.stage === 2) {
          throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");
        }
        this.stage = 2;
        if (this.counter === 0) {
          return json;
        }
        for (const [key, value] of this.values) {
          json = json.replace(key, value);
        }
        return json;
      }
    };
  }
});

// ../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js
var JsonShapeSerializer;
var init_JsonShapeSerializer = __esm({
  "../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js"() {
    init_schema4();
    init_serde();
    init_ConfigurableSerdeContext();
    init_jsonReplacer();
    JsonShapeSerializer = class extends SerdeContextConfig {
      static {
        __name(this, "JsonShapeSerializer");
      }
      settings;
      buffer;
      rootSchema;
      constructor(settings) {
        super();
        this.settings = settings;
      }
      write(schema, value) {
        this.rootSchema = NormalizedSchema.of(schema);
        this.buffer = this._write(this.rootSchema, value);
      }
      flush() {
        if (this.rootSchema?.isStructSchema() || this.rootSchema?.isDocumentSchema()) {
          const replacer = new JsonReplacer();
          return replacer.replaceInJson(JSON.stringify(this.buffer, replacer.createReplacer(), 0));
        }
        return this.buffer;
      }
      _write(schema, value, container) {
        const isObject3 = value !== null && typeof value === "object";
        const ns = NormalizedSchema.of(schema);
        if (ns.isListSchema() && Array.isArray(value)) {
          const listMember = ns.getValueSchema();
          const out = [];
          const sparse = !!ns.getMergedTraits().sparse;
          for (const item of value) {
            if (sparse || item != null) {
              out.push(this._write(listMember, item));
            }
          }
          return out;
        } else if (ns.isMapSchema() && isObject3) {
          const mapMember = ns.getValueSchema();
          const out = {};
          const sparse = !!ns.getMergedTraits().sparse;
          for (const [_k, _v] of Object.entries(value)) {
            if (sparse || _v != null) {
              out[_k] = this._write(mapMember, _v);
            }
          }
          return out;
        } else if (ns.isStructSchema() && isObject3) {
          const out = {};
          for (const [memberName, memberSchema] of ns.structIterator()) {
            const targetKey = this.settings.jsonName ? memberSchema.getMergedTraits().jsonName ?? memberName : memberName;
            const serializableValue = this._write(memberSchema, value[memberName], ns);
            if (serializableValue !== void 0) {
              out[targetKey] = serializableValue;
            }
          }
          return out;
        }
        if (value === null && container?.isStructSchema()) {
          return void 0;
        }
        if (ns.isBlobSchema() && (value instanceof Uint8Array || typeof value === "string")) {
          if (ns === this.rootSchema) {
            return value;
          }
          if (!this.serdeContext?.base64Encoder) {
            throw new Error("Missing base64Encoder in serdeContext");
          }
          return this.serdeContext?.base64Encoder(value);
        }
        if (ns.isTimestampSchema() && value instanceof Date) {
          const options = this.settings.timestampFormat;
          const format26 = options.useTrait ? ns.getSchema() === SCHEMA.TIMESTAMP_DEFAULT ? options.default : ns.getSchema() ?? options.default : options.default;
          switch (format26) {
            case SCHEMA.TIMESTAMP_DATE_TIME:
              return value.toISOString().replace(".000Z", "Z");
            case SCHEMA.TIMESTAMP_HTTP_DATE:
              return dateToUtcString2(value);
            case SCHEMA.TIMESTAMP_EPOCH_SECONDS:
              return value.getTime() / 1e3;
            default:
              console.warn("Missing timestamp format, using epoch seconds", value);
              return value.getTime() / 1e3;
          }
        }
        if (ns.isNumericSchema() && typeof value === "number") {
          if (Math.abs(value) === Infinity || isNaN(value)) {
            return String(value);
          }
        }
        if (ns.isStringSchema()) {
          if (typeof value === "undefined" && ns.isIdempotencyToken()) {
            return v4_default();
          }
          const mediaType = ns.getMergedTraits().mediaType;
          if (typeof value === "string" && mediaType) {
            const isJson = mediaType === "application/json" || mediaType.endsWith("+json");
            if (isJson) {
              return LazyJsonString2.from(value);
            }
          }
        }
        return value;
      }
    };
  }
});

// ../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonCodec.js
var JsonCodec;
var init_JsonCodec = __esm({
  "../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonCodec.js"() {
    init_ConfigurableSerdeContext();
    init_JsonShapeDeserializer();
    init_JsonShapeSerializer();
    JsonCodec = class extends SerdeContextConfig {
      static {
        __name(this, "JsonCodec");
      }
      settings;
      constructor(settings) {
        super();
        this.settings = settings;
      }
      createSerializer() {
        const serializer = new JsonShapeSerializer(this.settings);
        serializer.setSerdeContext(this.serdeContext);
        return serializer;
      }
      createDeserializer() {
        const deserializer = new JsonShapeDeserializer(this.settings);
        deserializer.setSerdeContext(this.serdeContext);
        return deserializer;
      }
    };
  }
});

// ../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js
var AwsJsonRpcProtocol;
var init_AwsJsonRpcProtocol = __esm({
  "../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js"() {
    init_protocols();
    init_schema4();
    init_ProtocolLib();
    init_JsonCodec();
    init_parseJsonBody();
    AwsJsonRpcProtocol = class extends RpcProtocol {
      static {
        __name(this, "AwsJsonRpcProtocol");
      }
      serializer;
      deserializer;
      serviceTarget;
      codec;
      mixin = new ProtocolLib();
      awsQueryCompatible;
      constructor({ defaultNamespace, serviceTarget, awsQueryCompatible }) {
        super({
          defaultNamespace
        });
        this.serviceTarget = serviceTarget;
        this.codec = new JsonCodec({
          timestampFormat: {
            useTrait: true,
            default: SCHEMA.TIMESTAMP_EPOCH_SECONDS
          },
          jsonName: false
        });
        this.serializer = this.codec.createSerializer();
        this.deserializer = this.codec.createDeserializer();
        this.awsQueryCompatible = !!awsQueryCompatible;
      }
      async serializeRequest(operationSchema, input, context) {
        const request2 = await super.serializeRequest(operationSchema, input, context);
        if (!request2.path.endsWith("/")) {
          request2.path += "/";
        }
        Object.assign(request2.headers, {
          "content-type": `application/x-amz-json-${this.getJsonRpcVersion()}`,
          "x-amz-target": `${this.serviceTarget}.${NormalizedSchema.of(operationSchema).getName()}`
        });
        if (this.awsQueryCompatible) {
          request2.headers["x-amzn-query-mode"] = "true";
        }
        if (deref(operationSchema.input) === "unit" || !request2.body) {
          request2.body = "{}";
        }
        try {
          request2.headers["content-length"] = this.mixin.calculateContentLength(request2.body, this.serdeContext);
        } catch (e3) {
        }
        return request2;
      }
      getPayloadCodec() {
        return this.codec;
      }
      async handleError(operationSchema, context, response, dataObject, metadata) {
        if (this.awsQueryCompatible) {
          this.mixin.setQueryCompatError(dataObject, response);
        }
        const errorIdentifier = loadRestJsonErrorCode(response, dataObject) ?? "Unknown";
        const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, dataObject, metadata);
        const ns = NormalizedSchema.of(errorSchema);
        const message2 = dataObject.message ?? dataObject.Message ?? "Unknown";
        const exception = new errorSchema.ctor(message2);
        const output = {};
        for (const [name, member] of ns.structIterator()) {
          const target = member.getMergedTraits().jsonName ?? name;
          output[name] = this.codec.createDeserializer().readObject(member, dataObject[target]);
        }
        if (this.awsQueryCompatible) {
          this.mixin.queryCompatOutput(dataObject, output);
        }
        throw Object.assign(exception, errorMetadata, {
          $fault: ns.getMergedTraits().error,
          message: message2
        }, output);
      }
    };
  }
});

// ../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJson1_0Protocol.js
var AwsJson1_0Protocol;
var init_AwsJson1_0Protocol = __esm({
  "../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJson1_0Protocol.js"() {
    init_AwsJsonRpcProtocol();
    AwsJson1_0Protocol = class extends AwsJsonRpcProtocol {
      static {
        __name(this, "AwsJson1_0Protocol");
      }
      constructor({ defaultNamespace, serviceTarget, awsQueryCompatible }) {
        super({
          defaultNamespace,
          serviceTarget,
          awsQueryCompatible
        });
      }
      getShapeId() {
        return "aws.protocols#awsJson1_0";
      }
      getJsonRpcVersion() {
        return "1.0";
      }
      getDefaultContentType() {
        return "application/x-amz-json-1.0";
      }
    };
  }
});

// ../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJson1_1Protocol.js
var AwsJson1_1Protocol;
var init_AwsJson1_1Protocol = __esm({
  "../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJson1_1Protocol.js"() {
    init_AwsJsonRpcProtocol();
    AwsJson1_1Protocol = class extends AwsJsonRpcProtocol {
      static {
        __name(this, "AwsJson1_1Protocol");
      }
      constructor({ defaultNamespace, serviceTarget, awsQueryCompatible }) {
        super({
          defaultNamespace,
          serviceTarget,
          awsQueryCompatible
        });
      }
      getShapeId() {
        return "aws.protocols#awsJson1_1";
      }
      getJsonRpcVersion() {
        return "1.1";
      }
      getDefaultContentType() {
        return "application/x-amz-json-1.1";
      }
    };
  }
});

// ../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js
var AwsRestJsonProtocol;
var init_AwsRestJsonProtocol = __esm({
  "../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js"() {
    init_protocols();
    init_schema4();
    init_ProtocolLib();
    init_JsonCodec();
    init_parseJsonBody();
    AwsRestJsonProtocol = class extends HttpBindingProtocol {
      static {
        __name(this, "AwsRestJsonProtocol");
      }
      serializer;
      deserializer;
      codec;
      mixin = new ProtocolLib();
      constructor({ defaultNamespace }) {
        super({
          defaultNamespace
        });
        const settings = {
          timestampFormat: {
            useTrait: true,
            default: SCHEMA.TIMESTAMP_EPOCH_SECONDS
          },
          httpBindings: true,
          jsonName: true
        };
        this.codec = new JsonCodec(settings);
        this.serializer = new HttpInterceptingShapeSerializer(this.codec.createSerializer(), settings);
        this.deserializer = new HttpInterceptingShapeDeserializer(this.codec.createDeserializer(), settings);
      }
      getShapeId() {
        return "aws.protocols#restJson1";
      }
      getPayloadCodec() {
        return this.codec;
      }
      setSerdeContext(serdeContext) {
        this.codec.setSerdeContext(serdeContext);
        super.setSerdeContext(serdeContext);
      }
      async serializeRequest(operationSchema, input, context) {
        const request2 = await super.serializeRequest(operationSchema, input, context);
        const inputSchema = NormalizedSchema.of(operationSchema.input);
        if (!request2.headers["content-type"]) {
          const contentType = this.mixin.resolveRestContentType(this.getDefaultContentType(), inputSchema);
          if (contentType) {
            request2.headers["content-type"] = contentType;
          }
        }
        if (request2.headers["content-type"] && !request2.body) {
          request2.body = "{}";
        }
        if (request2.body) {
          try {
            request2.headers["content-length"] = this.mixin.calculateContentLength(request2.body, this.serdeContext);
          } catch (e3) {
          }
        }
        return request2;
      }
      async handleError(operationSchema, context, response, dataObject, metadata) {
        const errorIdentifier = loadRestJsonErrorCode(response, dataObject) ?? "Unknown";
        const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, dataObject, metadata);
        const ns = NormalizedSchema.of(errorSchema);
        const message2 = dataObject.message ?? dataObject.Message ?? "Unknown";
        const exception = new errorSchema.ctor(message2);
        await this.deserializeHttpMessage(errorSchema, context, response, dataObject);
        const output = {};
        for (const [name, member] of ns.structIterator()) {
          const target = member.getMergedTraits().jsonName ?? name;
          output[name] = this.codec.createDeserializer().readObject(member, dataObject[target]);
        }
        throw Object.assign(exception, errorMetadata, {
          $fault: ns.getMergedTraits().error,
          message: message2
        }, output);
      }
      getDefaultContentType() {
        return "application/json";
      }
    };
  }
});

// ../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/awsExpectUnion.js
var import_smithy_client2, awsExpectUnion;
var init_awsExpectUnion = __esm({
  "../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/awsExpectUnion.js"() {
    import_smithy_client2 = __toESM(require_dist_cjs26());
    awsExpectUnion = /* @__PURE__ */ __name((value) => {
      if (value == null) {
        return void 0;
      }
      if (typeof value === "object" && "__type" in value) {
        delete value.__type;
      }
      return (0, import_smithy_client2.expectUnion)(value);
    }, "awsExpectUnion");
  }
});

// ../../node_modules/fast-xml-parser/src/util.js
function getAllMatches(string, regex) {
  const matches = [];
  let match4 = regex.exec(string);
  while (match4) {
    const allmatches = [];
    allmatches.startIndex = regex.lastIndex - match4[0].length;
    const len = match4.length;
    for (let index = 0; index < len; index++) {
      allmatches.push(match4[index]);
    }
    matches.push(allmatches);
    match4 = regex.exec(string);
  }
  return matches;
}
function isExist(v6) {
  return typeof v6 !== "undefined";
}
var nameStartChar, nameChar, nameRegexp, regexName, isName;
var init_util2 = __esm({
  "../../node_modules/fast-xml-parser/src/util.js"() {
    "use strict";
    nameStartChar = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD";
    nameChar = nameStartChar + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040";
    nameRegexp = "[" + nameStartChar + "][" + nameChar + "]*";
    regexName = new RegExp("^" + nameRegexp + "$");
    __name(getAllMatches, "getAllMatches");
    isName = /* @__PURE__ */ __name(function(string) {
      const match4 = regexName.exec(string);
      return !(match4 === null || typeof match4 === "undefined");
    }, "isName");
    __name(isExist, "isExist");
  }
});

// ../../node_modules/fast-xml-parser/src/validator.js
function validate2(xmlData, options) {
  options = Object.assign({}, defaultOptions, options);
  const tags = [];
  let tagFound = false;
  let reachedRoot = false;
  if (xmlData[0] === "\uFEFF") {
    xmlData = xmlData.substr(1);
  }
  for (let i3 = 0; i3 < xmlData.length; i3++) {
    if (xmlData[i3] === "<" && xmlData[i3 + 1] === "?") {
      i3 += 2;
      i3 = readPI(xmlData, i3);
      if (i3.err) return i3;
    } else if (xmlData[i3] === "<") {
      let tagStartPos = i3;
      i3++;
      if (xmlData[i3] === "!") {
        i3 = readCommentAndCDATA(xmlData, i3);
        continue;
      } else {
        let closingTag = false;
        if (xmlData[i3] === "/") {
          closingTag = true;
          i3++;
        }
        let tagName = "";
        for (; i3 < xmlData.length && xmlData[i3] !== ">" && xmlData[i3] !== " " && xmlData[i3] !== "	" && xmlData[i3] !== "\n" && xmlData[i3] !== "\r"; i3++) {
          tagName += xmlData[i3];
        }
        tagName = tagName.trim();
        if (tagName[tagName.length - 1] === "/") {
          tagName = tagName.substring(0, tagName.length - 1);
          i3--;
        }
        if (!validateTagName(tagName)) {
          let msg;
          if (tagName.trim().length === 0) {
            msg = "Invalid space after '<'.";
          } else {
            msg = "Tag '" + tagName + "' is an invalid name.";
          }
          return getErrorObject("InvalidTag", msg, getLineNumberForPosition(xmlData, i3));
        }
        const result2 = readAttributeStr(xmlData, i3);
        if (result2 === false) {
          return getErrorObject("InvalidAttr", "Attributes for '" + tagName + "' have open quote.", getLineNumberForPosition(xmlData, i3));
        }
        let attrStr = result2.value;
        i3 = result2.index;
        if (attrStr[attrStr.length - 1] === "/") {
          const attrStrStart = i3 - attrStr.length;
          attrStr = attrStr.substring(0, attrStr.length - 1);
          const isValid = validateAttributeString(attrStr, options);
          if (isValid === true) {
            tagFound = true;
          } else {
            return getErrorObject(isValid.err.code, isValid.err.msg, getLineNumberForPosition(xmlData, attrStrStart + isValid.err.line));
          }
        } else if (closingTag) {
          if (!result2.tagClosed) {
            return getErrorObject("InvalidTag", "Closing tag '" + tagName + "' doesn't have proper closing.", getLineNumberForPosition(xmlData, i3));
          } else if (attrStr.trim().length > 0) {
            return getErrorObject("InvalidTag", "Closing tag '" + tagName + "' can't have attributes or invalid starting.", getLineNumberForPosition(xmlData, tagStartPos));
          } else if (tags.length === 0) {
            return getErrorObject("InvalidTag", "Closing tag '" + tagName + "' has not been opened.", getLineNumberForPosition(xmlData, tagStartPos));
          } else {
            const otg = tags.pop();
            if (tagName !== otg.tagName) {
              let openPos = getLineNumberForPosition(xmlData, otg.tagStartPos);
              return getErrorObject(
                "InvalidTag",
                "Expected closing tag '" + otg.tagName + "' (opened in line " + openPos.line + ", col " + openPos.col + ") instead of closing tag '" + tagName + "'.",
                getLineNumberForPosition(xmlData, tagStartPos)
              );
            }
            if (tags.length == 0) {
              reachedRoot = true;
            }
          }
        } else {
          const isValid = validateAttributeString(attrStr, options);
          if (isValid !== true) {
            return getErrorObject(isValid.err.code, isValid.err.msg, getLineNumberForPosition(xmlData, i3 - attrStr.length + isValid.err.line));
          }
          if (reachedRoot === true) {
            return getErrorObject("InvalidXml", "Multiple possible root nodes found.", getLineNumberForPosition(xmlData, i3));
          } else if (options.unpairedTags.indexOf(tagName) !== -1) {
          } else {
            tags.push({ tagName, tagStartPos });
          }
          tagFound = true;
        }
        for (i3++; i3 < xmlData.length; i3++) {
          if (xmlData[i3] === "<") {
            if (xmlData[i3 + 1] === "!") {
              i3++;
              i3 = readCommentAndCDATA(xmlData, i3);
              continue;
            } else if (xmlData[i3 + 1] === "?") {
              i3 = readPI(xmlData, ++i3);
              if (i3.err) return i3;
            } else {
              break;
            }
          } else if (xmlData[i3] === "&") {
            const afterAmp = validateAmpersand(xmlData, i3);
            if (afterAmp == -1)
              return getErrorObject("InvalidChar", "char '&' is not expected.", getLineNumberForPosition(xmlData, i3));
            i3 = afterAmp;
          } else {
            if (reachedRoot === true && !isWhiteSpace(xmlData[i3])) {
              return getErrorObject("InvalidXml", "Extra text at the end", getLineNumberForPosition(xmlData, i3));
            }
          }
        }
        if (xmlData[i3] === "<") {
          i3--;
        }
      }
    } else {
      if (isWhiteSpace(xmlData[i3])) {
        continue;
      }
      return getErrorObject("InvalidChar", "char '" + xmlData[i3] + "' is not expected.", getLineNumberForPosition(xmlData, i3));
    }
  }
  if (!tagFound) {
    return getErrorObject("InvalidXml", "Start tag expected.", 1);
  } else if (tags.length == 1) {
    return getErrorObject("InvalidTag", "Unclosed tag '" + tags[0].tagName + "'.", getLineNumberForPosition(xmlData, tags[0].tagStartPos));
  } else if (tags.length > 0) {
    return getErrorObject("InvalidXml", "Invalid '" + JSON.stringify(tags.map((t3) => t3.tagName), null, 4).replace(/\r?\n/g, "") + "' found.", { line: 1, col: 1 });
  }
  return true;
}
function isWhiteSpace(char) {
  return char === " " || char === "	" || char === "\n" || char === "\r";
}
function readPI(xmlData, i3) {
  const start = i3;
  for (; i3 < xmlData.length; i3++) {
    if (xmlData[i3] == "?" || xmlData[i3] == " ") {
      const tagname = xmlData.substr(start, i3 - start);
      if (i3 > 5 && tagname === "xml") {
        return getErrorObject("InvalidXml", "XML declaration allowed only at the start of the document.", getLineNumberForPosition(xmlData, i3));
      } else if (xmlData[i3] == "?" && xmlData[i3 + 1] == ">") {
        i3++;
        break;
      } else {
        continue;
      }
    }
  }
  return i3;
}
function readCommentAndCDATA(xmlData, i3) {
  if (xmlData.length > i3 + 5 && xmlData[i3 + 1] === "-" && xmlData[i3 + 2] === "-") {
    for (i3 += 3; i3 < xmlData.length; i3++) {
      if (xmlData[i3] === "-" && xmlData[i3 + 1] === "-" && xmlData[i3 + 2] === ">") {
        i3 += 2;
        break;
      }
    }
  } else if (xmlData.length > i3 + 8 && xmlData[i3 + 1] === "D" && xmlData[i3 + 2] === "O" && xmlData[i3 + 3] === "C" && xmlData[i3 + 4] === "T" && xmlData[i3 + 5] === "Y" && xmlData[i3 + 6] === "P" && xmlData[i3 + 7] === "E") {
    let angleBracketsCount = 1;
    for (i3 += 8; i3 < xmlData.length; i3++) {
      if (xmlData[i3] === "<") {
        angleBracketsCount++;
      } else if (xmlData[i3] === ">") {
        angleBracketsCount--;
        if (angleBracketsCount === 0) {
          break;
        }
      }
    }
  } else if (xmlData.length > i3 + 9 && xmlData[i3 + 1] === "[" && xmlData[i3 + 2] === "C" && xmlData[i3 + 3] === "D" && xmlData[i3 + 4] === "A" && xmlData[i3 + 5] === "T" && xmlData[i3 + 6] === "A" && xmlData[i3 + 7] === "[") {
    for (i3 += 8; i3 < xmlData.length; i3++) {
      if (xmlData[i3] === "]" && xmlData[i3 + 1] === "]" && xmlData[i3 + 2] === ">") {
        i3 += 2;
        break;
      }
    }
  }
  return i3;
}
function readAttributeStr(xmlData, i3) {
  let attrStr = "";
  let startChar = "";
  let tagClosed = false;
  for (; i3 < xmlData.length; i3++) {
    if (xmlData[i3] === doubleQuote || xmlData[i3] === singleQuote) {
      if (startChar === "") {
        startChar = xmlData[i3];
      } else if (startChar !== xmlData[i3]) {
      } else {
        startChar = "";
      }
    } else if (xmlData[i3] === ">") {
      if (startChar === "") {
        tagClosed = true;
        break;
      }
    }
    attrStr += xmlData[i3];
  }
  if (startChar !== "") {
    return false;
  }
  return {
    value: attrStr,
    index: i3,
    tagClosed
  };
}
function validateAttributeString(attrStr, options) {
  const matches = getAllMatches(attrStr, validAttrStrRegxp);
  const attrNames = {};
  for (let i3 = 0; i3 < matches.length; i3++) {
    if (matches[i3][1].length === 0) {
      return getErrorObject("InvalidAttr", "Attribute '" + matches[i3][2] + "' has no space in starting.", getPositionFromMatch(matches[i3]));
    } else if (matches[i3][3] !== void 0 && matches[i3][4] === void 0) {
      return getErrorObject("InvalidAttr", "Attribute '" + matches[i3][2] + "' is without value.", getPositionFromMatch(matches[i3]));
    } else if (matches[i3][3] === void 0 && !options.allowBooleanAttributes) {
      return getErrorObject("InvalidAttr", "boolean attribute '" + matches[i3][2] + "' is not allowed.", getPositionFromMatch(matches[i3]));
    }
    const attrName = matches[i3][2];
    if (!validateAttrName(attrName)) {
      return getErrorObject("InvalidAttr", "Attribute '" + attrName + "' is an invalid name.", getPositionFromMatch(matches[i3]));
    }
    if (!attrNames.hasOwnProperty(attrName)) {
      attrNames[attrName] = 1;
    } else {
      return getErrorObject("InvalidAttr", "Attribute '" + attrName + "' is repeated.", getPositionFromMatch(matches[i3]));
    }
  }
  return true;
}
function validateNumberAmpersand(xmlData, i3) {
  let re = /\d/;
  if (xmlData[i3] === "x") {
    i3++;
    re = /[\da-fA-F]/;
  }
  for (; i3 < xmlData.length; i3++) {
    if (xmlData[i3] === ";")
      return i3;
    if (!xmlData[i3].match(re))
      break;
  }
  return -1;
}
function validateAmpersand(xmlData, i3) {
  i3++;
  if (xmlData[i3] === ";")
    return -1;
  if (xmlData[i3] === "#") {
    i3++;
    return validateNumberAmpersand(xmlData, i3);
  }
  let count = 0;
  for (; i3 < xmlData.length; i3++, count++) {
    if (xmlData[i3].match(/\w/) && count < 20)
      continue;
    if (xmlData[i3] === ";")
      break;
    return -1;
  }
  return i3;
}
function getErrorObject(code, message2, lineNumber) {
  return {
    err: {
      code,
      msg: message2,
      line: lineNumber.line || lineNumber,
      col: lineNumber.col
    }
  };
}
function validateAttrName(attrName) {
  return isName(attrName);
}
function validateTagName(tagname) {
  return isName(tagname);
}
function getLineNumberForPosition(xmlData, index) {
  const lines = xmlData.substring(0, index).split(/\r?\n/);
  return {
    line: lines.length,
    // column number is last line's length + 1, because column numbering starts at 1:
    col: lines[lines.length - 1].length + 1
  };
}
function getPositionFromMatch(match4) {
  return match4.startIndex + match4[1].length;
}
var defaultOptions, doubleQuote, singleQuote, validAttrStrRegxp;
var init_validator = __esm({
  "../../node_modules/fast-xml-parser/src/validator.js"() {
    "use strict";
    init_util2();
    defaultOptions = {
      allowBooleanAttributes: false,
      //A tag can have attributes without any value
      unpairedTags: []
    };
    __name(validate2, "validate");
    __name(isWhiteSpace, "isWhiteSpace");
    __name(readPI, "readPI");
    __name(readCommentAndCDATA, "readCommentAndCDATA");
    doubleQuote = '"';
    singleQuote = "'";
    __name(readAttributeStr, "readAttributeStr");
    validAttrStrRegxp = new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`, "g");
    __name(validateAttributeString, "validateAttributeString");
    __name(validateNumberAmpersand, "validateNumberAmpersand");
    __name(validateAmpersand, "validateAmpersand");
    __name(getErrorObject, "getErrorObject");
    __name(validateAttrName, "validateAttrName");
    __name(validateTagName, "validateTagName");
    __name(getLineNumberForPosition, "getLineNumberForPosition");
    __name(getPositionFromMatch, "getPositionFromMatch");
  }
});

// ../../node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js
var defaultOptions2, buildOptions;
var init_OptionsBuilder = __esm({
  "../../node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js"() {
    defaultOptions2 = {
      preserveOrder: false,
      attributeNamePrefix: "@_",
      attributesGroupName: false,
      textNodeName: "#text",
      ignoreAttributes: true,
      removeNSPrefix: false,
      // remove NS from tag name or attribute name if true
      allowBooleanAttributes: false,
      //a tag can have attributes without any value
      //ignoreRootElement : false,
      parseTagValue: true,
      parseAttributeValue: false,
      trimValues: true,
      //Trim string values of tag and attributes
      cdataPropName: false,
      numberParseOptions: {
        hex: true,
        leadingZeros: true,
        eNotation: true
      },
      tagValueProcessor: /* @__PURE__ */ __name(function(tagName, val) {
        return val;
      }, "tagValueProcessor"),
      attributeValueProcessor: /* @__PURE__ */ __name(function(attrName, val) {
        return val;
      }, "attributeValueProcessor"),
      stopNodes: [],
      //nested tags will not be parsed even for errors
      alwaysCreateTextNode: false,
      isArray: /* @__PURE__ */ __name(() => false, "isArray"),
      commentPropName: false,
      unpairedTags: [],
      processEntities: true,
      htmlEntities: false,
      ignoreDeclaration: false,
      ignorePiTags: false,
      transformTagName: false,
      transformAttributeName: false,
      updateTag: /* @__PURE__ */ __name(function(tagName, jPath, attrs) {
        return tagName;
      }, "updateTag"),
      // skipEmptyListItem: false
      captureMetaData: false
    };
    buildOptions = /* @__PURE__ */ __name(function(options) {
      return Object.assign({}, defaultOptions2, options);
    }, "buildOptions");
  }
});

// ../../node_modules/fast-xml-parser/src/xmlparser/xmlNode.js
var METADATA_SYMBOL, XmlNode;
var init_xmlNode = __esm({
  "../../node_modules/fast-xml-parser/src/xmlparser/xmlNode.js"() {
    "use strict";
    if (typeof Symbol !== "function") {
      METADATA_SYMBOL = "@@xmlMetadata";
    } else {
      METADATA_SYMBOL = Symbol("XML Node Metadata");
    }
    XmlNode = class {
      static {
        __name(this, "XmlNode");
      }
      constructor(tagname) {
        this.tagname = tagname;
        this.child = [];
        this[":@"] = {};
      }
      add(key, val) {
        if (key === "__proto__") key = "#__proto__";
        this.child.push({ [key]: val });
      }
      addChild(node, startIndex) {
        if (node.tagname === "__proto__") node.tagname = "#__proto__";
        if (node[":@"] && Object.keys(node[":@"]).length > 0) {
          this.child.push({ [node.tagname]: node.child, [":@"]: node[":@"] });
        } else {
          this.child.push({ [node.tagname]: node.child });
        }
        if (startIndex !== void 0) {
          this.child[this.child.length - 1][METADATA_SYMBOL] = { startIndex };
        }
      }
      /** symbol used for metadata */
      static getMetaDataSymbol() {
        return METADATA_SYMBOL;
      }
    };
  }
});

// ../../node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js
function readDocType(xmlData, i3) {
  const entities = {};
  if (xmlData[i3 + 3] === "O" && xmlData[i3 + 4] === "C" && xmlData[i3 + 5] === "T" && xmlData[i3 + 6] === "Y" && xmlData[i3 + 7] === "P" && xmlData[i3 + 8] === "E") {
    i3 = i3 + 9;
    let angleBracketsCount = 1;
    let hasBody = false, comment = false;
    let exp = "";
    for (; i3 < xmlData.length; i3++) {
      if (xmlData[i3] === "<" && !comment) {
        if (hasBody && hasSeq(xmlData, "!ENTITY", i3)) {
          i3 += 7;
          let entityName, val;
          [entityName, val, i3] = readEntityExp(xmlData, i3 + 1);
          if (val.indexOf("&") === -1)
            entities[entityName] = {
              regx: RegExp(`&${entityName};`, "g"),
              val
            };
        } else if (hasBody && hasSeq(xmlData, "!ELEMENT", i3)) {
          i3 += 8;
          const { index } = readElementExp(xmlData, i3 + 1);
          i3 = index;
        } else if (hasBody && hasSeq(xmlData, "!ATTLIST", i3)) {
          i3 += 8;
        } else if (hasBody && hasSeq(xmlData, "!NOTATION", i3)) {
          i3 += 9;
          const { index } = readNotationExp(xmlData, i3 + 1);
          i3 = index;
        } else if (hasSeq(xmlData, "!--", i3)) comment = true;
        else throw new Error(`Invalid DOCTYPE`);
        angleBracketsCount++;
        exp = "";
      } else if (xmlData[i3] === ">") {
        if (comment) {
          if (xmlData[i3 - 1] === "-" && xmlData[i3 - 2] === "-") {
            comment = false;
            angleBracketsCount--;
          }
        } else {
          angleBracketsCount--;
        }
        if (angleBracketsCount === 0) {
          break;
        }
      } else if (xmlData[i3] === "[") {
        hasBody = true;
      } else {
        exp += xmlData[i3];
      }
    }
    if (angleBracketsCount !== 0) {
      throw new Error(`Unclosed DOCTYPE`);
    }
  } else {
    throw new Error(`Invalid Tag instead of DOCTYPE`);
  }
  return { entities, i: i3 };
}
function readEntityExp(xmlData, i3) {
  i3 = skipWhitespace(xmlData, i3);
  let entityName = "";
  while (i3 < xmlData.length && !/\s/.test(xmlData[i3]) && xmlData[i3] !== '"' && xmlData[i3] !== "'") {
    entityName += xmlData[i3];
    i3++;
  }
  validateEntityName(entityName);
  i3 = skipWhitespace(xmlData, i3);
  if (xmlData.substring(i3, i3 + 6).toUpperCase() === "SYSTEM") {
    throw new Error("External entities are not supported");
  } else if (xmlData[i3] === "%") {
    throw new Error("Parameter entities are not supported");
  }
  let entityValue = "";
  [i3, entityValue] = readIdentifierVal(xmlData, i3, "entity");
  i3--;
  return [entityName, entityValue, i3];
}
function readNotationExp(xmlData, i3) {
  i3 = skipWhitespace(xmlData, i3);
  let notationName = "";
  while (i3 < xmlData.length && !/\s/.test(xmlData[i3])) {
    notationName += xmlData[i3];
    i3++;
  }
  validateEntityName(notationName);
  i3 = skipWhitespace(xmlData, i3);
  const identifierType = xmlData.substring(i3, i3 + 6).toUpperCase();
  if (identifierType !== "SYSTEM" && identifierType !== "PUBLIC") {
    throw new Error(`Expected SYSTEM or PUBLIC, found "${identifierType}"`);
  }
  i3 += identifierType.length;
  i3 = skipWhitespace(xmlData, i3);
  let publicIdentifier = null;
  let systemIdentifier = null;
  if (identifierType === "PUBLIC") {
    [i3, publicIdentifier] = readIdentifierVal(xmlData, i3, "publicIdentifier");
    i3 = skipWhitespace(xmlData, i3);
    if (xmlData[i3] === '"' || xmlData[i3] === "'") {
      [i3, systemIdentifier] = readIdentifierVal(xmlData, i3, "systemIdentifier");
    }
  } else if (identifierType === "SYSTEM") {
    [i3, systemIdentifier] = readIdentifierVal(xmlData, i3, "systemIdentifier");
    if (!systemIdentifier) {
      throw new Error("Missing mandatory system identifier for SYSTEM notation");
    }
  }
  return { notationName, publicIdentifier, systemIdentifier, index: --i3 };
}
function readIdentifierVal(xmlData, i3, type) {
  let identifierVal = "";
  const startChar = xmlData[i3];
  if (startChar !== '"' && startChar !== "'") {
    throw new Error(`Expected quoted string, found "${startChar}"`);
  }
  i3++;
  while (i3 < xmlData.length && xmlData[i3] !== startChar) {
    identifierVal += xmlData[i3];
    i3++;
  }
  if (xmlData[i3] !== startChar) {
    throw new Error(`Unterminated ${type} value`);
  }
  i3++;
  return [i3, identifierVal];
}
function readElementExp(xmlData, i3) {
  i3 = skipWhitespace(xmlData, i3);
  let elementName = "";
  while (i3 < xmlData.length && !/\s/.test(xmlData[i3])) {
    elementName += xmlData[i3];
    i3++;
  }
  if (!validateEntityName(elementName)) {
    throw new Error(`Invalid element name: "${elementName}"`);
  }
  i3 = skipWhitespace(xmlData, i3);
  let contentModel = "";
  if (xmlData[i3] === "E" && hasSeq(xmlData, "MPTY", i3)) i3 += 4;
  else if (xmlData[i3] === "A" && hasSeq(xmlData, "NY", i3)) i3 += 2;
  else if (xmlData[i3] === "(") {
    i3++;
    while (i3 < xmlData.length && xmlData[i3] !== ")") {
      contentModel += xmlData[i3];
      i3++;
    }
    if (xmlData[i3] !== ")") {
      throw new Error("Unterminated content model");
    }
  } else {
    throw new Error(`Invalid Element Expression, found "${xmlData[i3]}"`);
  }
  return {
    elementName,
    contentModel: contentModel.trim(),
    index: i3
  };
}
function hasSeq(data3, seq, i3) {
  for (let j3 = 0; j3 < seq.length; j3++) {
    if (seq[j3] !== data3[i3 + j3 + 1]) return false;
  }
  return true;
}
function validateEntityName(name) {
  if (isName(name))
    return name;
  else
    throw new Error(`Invalid entity name ${name}`);
}
var skipWhitespace;
var init_DocTypeReader = __esm({
  "../../node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js"() {
    init_util2();
    __name(readDocType, "readDocType");
    skipWhitespace = /* @__PURE__ */ __name((data3, index) => {
      while (index < data3.length && /\s/.test(data3[index])) {
        index++;
      }
      return index;
    }, "skipWhitespace");
    __name(readEntityExp, "readEntityExp");
    __name(readNotationExp, "readNotationExp");
    __name(readIdentifierVal, "readIdentifierVal");
    __name(readElementExp, "readElementExp");
    __name(hasSeq, "hasSeq");
    __name(validateEntityName, "validateEntityName");
  }
});

// ../../node_modules/fast-xml-parser/node_modules/strnum/strnum.js
function toNumber(str, options = {}) {
  options = Object.assign({}, consider, options);
  if (!str || typeof str !== "string") return str;
  let trimmedStr = str.trim();
  if (options.skipLike !== void 0 && options.skipLike.test(trimmedStr)) return str;
  else if (str === "0") return 0;
  else if (options.hex && hexRegex.test(trimmedStr)) {
    return parse_int(trimmedStr, 16);
  } else if (trimmedStr.search(/.+[eE].+/) !== -1) {
    return resolveEnotation(str, trimmedStr, options);
  } else {
    const match4 = numRegex.exec(trimmedStr);
    if (match4) {
      const sign = match4[1] || "";
      const leadingZeros = match4[2];
      let numTrimmedByZeros = trimZeros(match4[3]);
      const decimalAdjacentToLeadingZeros = sign ? (
        // 0., -00., 000.
        str[leadingZeros.length + 1] === "."
      ) : str[leadingZeros.length] === ".";
      if (!options.leadingZeros && (leadingZeros.length > 1 || leadingZeros.length === 1 && !decimalAdjacentToLeadingZeros)) {
        return str;
      } else {
        const num = Number(trimmedStr);
        const parsedStr = String(num);
        if (num === 0) return num;
        if (parsedStr.search(/[eE]/) !== -1) {
          if (options.eNotation) return num;
          else return str;
        } else if (trimmedStr.indexOf(".") !== -1) {
          if (parsedStr === "0") return num;
          else if (parsedStr === numTrimmedByZeros) return num;
          else if (parsedStr === `${sign}${numTrimmedByZeros}`) return num;
          else return str;
        }
        let n3 = leadingZeros ? numTrimmedByZeros : trimmedStr;
        if (leadingZeros) {
          return n3 === parsedStr || sign + n3 === parsedStr ? num : str;
        } else {
          return n3 === parsedStr || n3 === sign + parsedStr ? num : str;
        }
      }
    } else {
      return str;
    }
  }
}
function resolveEnotation(str, trimmedStr, options) {
  if (!options.eNotation) return str;
  const notation = trimmedStr.match(eNotationRegx);
  if (notation) {
    let sign = notation[1] || "";
    const eChar = notation[3].indexOf("e") === -1 ? "E" : "e";
    const leadingZeros = notation[2];
    const eAdjacentToLeadingZeros = sign ? (
      // 0E.
      str[leadingZeros.length + 1] === eChar
    ) : str[leadingZeros.length] === eChar;
    if (leadingZeros.length > 1 && eAdjacentToLeadingZeros) return str;
    else if (leadingZeros.length === 1 && (notation[3].startsWith(`.${eChar}`) || notation[3][0] === eChar)) {
      return Number(trimmedStr);
    } else if (options.leadingZeros && !eAdjacentToLeadingZeros) {
      trimmedStr = (notation[1] || "") + notation[3];
      return Number(trimmedStr);
    } else return str;
  } else {
    return str;
  }
}
function trimZeros(numStr) {
  if (numStr && numStr.indexOf(".") !== -1) {
    numStr = numStr.replace(/0+$/, "");
    if (numStr === ".") numStr = "0";
    else if (numStr[0] === ".") numStr = "0" + numStr;
    else if (numStr[numStr.length - 1] === ".") numStr = numStr.substring(0, numStr.length - 1);
    return numStr;
  }
  return numStr;
}
function parse_int(numStr, base) {
  if (parseInt) return parseInt(numStr, base);
  else if (Number.parseInt) return Number.parseInt(numStr, base);
  else if (window && window.parseInt) return window.parseInt(numStr, base);
  else throw new Error("parseInt, Number.parseInt, window.parseInt are not supported");
}
var hexRegex, numRegex, consider, eNotationRegx;
var init_strnum = __esm({
  "../../node_modules/fast-xml-parser/node_modules/strnum/strnum.js"() {
    hexRegex = /^[-+]?0x[a-fA-F0-9]+$/;
    numRegex = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/;
    consider = {
      hex: true,
      // oct: false,
      leadingZeros: true,
      decimalPoint: ".",
      eNotation: true
      //skipLike: /regex/
    };
    __name(toNumber, "toNumber");
    eNotationRegx = /^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;
    __name(resolveEnotation, "resolveEnotation");
    __name(trimZeros, "trimZeros");
    __name(parse_int, "parse_int");
  }
});

// ../../node_modules/fast-xml-parser/src/ignoreAttributes.js
function getIgnoreAttributesFn(ignoreAttributes) {
  if (typeof ignoreAttributes === "function") {
    return ignoreAttributes;
  }
  if (Array.isArray(ignoreAttributes)) {
    return (attrName) => {
      for (const pattern of ignoreAttributes) {
        if (typeof pattern === "string" && attrName === pattern) {
          return true;
        }
        if (pattern instanceof RegExp && pattern.test(attrName)) {
          return true;
        }
      }
    };
  }
  return () => false;
}
var init_ignoreAttributes = __esm({
  "../../node_modules/fast-xml-parser/src/ignoreAttributes.js"() {
    __name(getIgnoreAttributesFn, "getIgnoreAttributesFn");
  }
});

// ../../node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js
function addExternalEntities(externalEntities) {
  const entKeys = Object.keys(externalEntities);
  for (let i3 = 0; i3 < entKeys.length; i3++) {
    const ent = entKeys[i3];
    this.lastEntities[ent] = {
      regex: new RegExp("&" + ent + ";", "g"),
      val: externalEntities[ent]
    };
  }
}
function parseTextData(val, tagName, jPath, dontTrim, hasAttributes, isLeafNode, escapeEntities) {
  if (val !== void 0) {
    if (this.options.trimValues && !dontTrim) {
      val = val.trim();
    }
    if (val.length > 0) {
      if (!escapeEntities) val = this.replaceEntitiesValue(val);
      const newval = this.options.tagValueProcessor(tagName, val, jPath, hasAttributes, isLeafNode);
      if (newval === null || newval === void 0) {
        return val;
      } else if (typeof newval !== typeof val || newval !== val) {
        return newval;
      } else if (this.options.trimValues) {
        return parseValue(val, this.options.parseTagValue, this.options.numberParseOptions);
      } else {
        const trimmedVal = val.trim();
        if (trimmedVal === val) {
          return parseValue(val, this.options.parseTagValue, this.options.numberParseOptions);
        } else {
          return val;
        }
      }
    }
  }
}
function resolveNameSpace(tagname) {
  if (this.options.removeNSPrefix) {
    const tags = tagname.split(":");
    const prefix2 = tagname.charAt(0) === "/" ? "/" : "";
    if (tags[0] === "xmlns") {
      return "";
    }
    if (tags.length === 2) {
      tagname = prefix2 + tags[1];
    }
  }
  return tagname;
}
function buildAttributesMap(attrStr, jPath, tagName) {
  if (this.options.ignoreAttributes !== true && typeof attrStr === "string") {
    const matches = getAllMatches(attrStr, attrsRegx);
    const len = matches.length;
    const attrs = {};
    for (let i3 = 0; i3 < len; i3++) {
      const attrName = this.resolveNameSpace(matches[i3][1]);
      if (this.ignoreAttributesFn(attrName, jPath)) {
        continue;
      }
      let oldVal = matches[i3][4];
      let aName = this.options.attributeNamePrefix + attrName;
      if (attrName.length) {
        if (this.options.transformAttributeName) {
          aName = this.options.transformAttributeName(aName);
        }
        if (aName === "__proto__") aName = "#__proto__";
        if (oldVal !== void 0) {
          if (this.options.trimValues) {
            oldVal = oldVal.trim();
          }
          oldVal = this.replaceEntitiesValue(oldVal);
          const newVal = this.options.attributeValueProcessor(attrName, oldVal, jPath);
          if (newVal === null || newVal === void 0) {
            attrs[aName] = oldVal;
          } else if (typeof newVal !== typeof oldVal || newVal !== oldVal) {
            attrs[aName] = newVal;
          } else {
            attrs[aName] = parseValue(
              oldVal,
              this.options.parseAttributeValue,
              this.options.numberParseOptions
            );
          }
        } else if (this.options.allowBooleanAttributes) {
          attrs[aName] = true;
        }
      }
    }
    if (!Object.keys(attrs).length) {
      return;
    }
    if (this.options.attributesGroupName) {
      const attrCollection = {};
      attrCollection[this.options.attributesGroupName] = attrs;
      return attrCollection;
    }
    return attrs;
  }
}
function addChild(currentNode, childNode, jPath, startIndex) {
  if (!this.options.captureMetaData) startIndex = void 0;
  const result2 = this.options.updateTag(childNode.tagname, jPath, childNode[":@"]);
  if (result2 === false) {
  } else if (typeof result2 === "string") {
    childNode.tagname = result2;
    currentNode.addChild(childNode, startIndex);
  } else {
    currentNode.addChild(childNode, startIndex);
  }
}
function saveTextToParentTag(textData, currentNode, jPath, isLeafNode) {
  if (textData) {
    if (isLeafNode === void 0) isLeafNode = currentNode.child.length === 0;
    textData = this.parseTextData(
      textData,
      currentNode.tagname,
      jPath,
      false,
      currentNode[":@"] ? Object.keys(currentNode[":@"]).length !== 0 : false,
      isLeafNode
    );
    if (textData !== void 0 && textData !== "")
      currentNode.add(this.options.textNodeName, textData);
    textData = "";
  }
  return textData;
}
function isItStopNode(stopNodes, jPath, currentTagName) {
  const allNodesExp = "*." + currentTagName;
  for (const stopNodePath in stopNodes) {
    const stopNodeExp = stopNodes[stopNodePath];
    if (allNodesExp === stopNodeExp || jPath === stopNodeExp) return true;
  }
  return false;
}
function tagExpWithClosingIndex(xmlData, i3, closingChar = ">") {
  let attrBoundary;
  let tagExp = "";
  for (let index = i3; index < xmlData.length; index++) {
    let ch = xmlData[index];
    if (attrBoundary) {
      if (ch === attrBoundary) attrBoundary = "";
    } else if (ch === '"' || ch === "'") {
      attrBoundary = ch;
    } else if (ch === closingChar[0]) {
      if (closingChar[1]) {
        if (xmlData[index + 1] === closingChar[1]) {
          return {
            data: tagExp,
            index
          };
        }
      } else {
        return {
          data: tagExp,
          index
        };
      }
    } else if (ch === "	") {
      ch = " ";
    }
    tagExp += ch;
  }
}
function findClosingIndex(xmlData, str, i3, errMsg) {
  const closingIndex = xmlData.indexOf(str, i3);
  if (closingIndex === -1) {
    throw new Error(errMsg);
  } else {
    return closingIndex + str.length - 1;
  }
}
function readTagExp(xmlData, i3, removeNSPrefix, closingChar = ">") {
  const result2 = tagExpWithClosingIndex(xmlData, i3 + 1, closingChar);
  if (!result2) return;
  let tagExp = result2.data;
  const closeIndex = result2.index;
  const separatorIndex = tagExp.search(/\s/);
  let tagName = tagExp;
  let attrExpPresent = true;
  if (separatorIndex !== -1) {
    tagName = tagExp.substring(0, separatorIndex);
    tagExp = tagExp.substring(separatorIndex + 1).trimStart();
  }
  const rawTagName = tagName;
  if (removeNSPrefix) {
    const colonIndex = tagName.indexOf(":");
    if (colonIndex !== -1) {
      tagName = tagName.substr(colonIndex + 1);
      attrExpPresent = tagName !== result2.data.substr(colonIndex + 1);
    }
  }
  return {
    tagName,
    tagExp,
    closeIndex,
    attrExpPresent,
    rawTagName
  };
}
function readStopNodeData(xmlData, tagName, i3) {
  const startIndex = i3;
  let openTagCount = 1;
  for (; i3 < xmlData.length; i3++) {
    if (xmlData[i3] === "<") {
      if (xmlData[i3 + 1] === "/") {
        const closeIndex = findClosingIndex(xmlData, ">", i3, `${tagName} is not closed`);
        let closeTagName = xmlData.substring(i3 + 2, closeIndex).trim();
        if (closeTagName === tagName) {
          openTagCount--;
          if (openTagCount === 0) {
            return {
              tagContent: xmlData.substring(startIndex, i3),
              i: closeIndex
            };
          }
        }
        i3 = closeIndex;
      } else if (xmlData[i3 + 1] === "?") {
        const closeIndex = findClosingIndex(xmlData, "?>", i3 + 1, "StopNode is not closed.");
        i3 = closeIndex;
      } else if (xmlData.substr(i3 + 1, 3) === "!--") {
        const closeIndex = findClosingIndex(xmlData, "-->", i3 + 3, "StopNode is not closed.");
        i3 = closeIndex;
      } else if (xmlData.substr(i3 + 1, 2) === "![") {
        const closeIndex = findClosingIndex(xmlData, "]]>", i3, "StopNode is not closed.") - 2;
        i3 = closeIndex;
      } else {
        const tagData = readTagExp(xmlData, i3, ">");
        if (tagData) {
          const openTagName = tagData && tagData.tagName;
          if (openTagName === tagName && tagData.tagExp[tagData.tagExp.length - 1] !== "/") {
            openTagCount++;
          }
          i3 = tagData.closeIndex;
        }
      }
    }
  }
}
function parseValue(val, shouldParse, options) {
  if (shouldParse && typeof val === "string") {
    const newval = val.trim();
    if (newval === "true") return true;
    else if (newval === "false") return false;
    else return toNumber(val, options);
  } else {
    if (isExist(val)) {
      return val;
    } else {
      return "";
    }
  }
}
var OrderedObjParser, attrsRegx, parseXml, replaceEntitiesValue;
var init_OrderedObjParser = __esm({
  "../../node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js"() {
    "use strict";
    init_util2();
    init_xmlNode();
    init_DocTypeReader();
    init_strnum();
    init_ignoreAttributes();
    OrderedObjParser = class {
      static {
        __name(this, "OrderedObjParser");
      }
      constructor(options) {
        this.options = options;
        this.currentNode = null;
        this.tagsNodeStack = [];
        this.docTypeEntities = {};
        this.lastEntities = {
          "apos": { regex: /&(apos|#39|#x27);/g, val: "'" },
          "gt": { regex: /&(gt|#62|#x3E);/g, val: ">" },
          "lt": { regex: /&(lt|#60|#x3C);/g, val: "<" },
          "quot": { regex: /&(quot|#34|#x22);/g, val: '"' }
        };
        this.ampEntity = { regex: /&(amp|#38|#x26);/g, val: "&" };
        this.htmlEntities = {
          "space": { regex: /&(nbsp|#160);/g, val: " " },
          // "lt" : { regex: /&(lt|#60);/g, val: "<" },
          // "gt" : { regex: /&(gt|#62);/g, val: ">" },
          // "amp" : { regex: /&(amp|#38);/g, val: "&" },
          // "quot" : { regex: /&(quot|#34);/g, val: "\"" },
          // "apos" : { regex: /&(apos|#39);/g, val: "'" },
          "cent": { regex: /&(cent|#162);/g, val: "\xA2" },
          "pound": { regex: /&(pound|#163);/g, val: "\xA3" },
          "yen": { regex: /&(yen|#165);/g, val: "\xA5" },
          "euro": { regex: /&(euro|#8364);/g, val: "\u20AC" },
          "copyright": { regex: /&(copy|#169);/g, val: "\xA9" },
          "reg": { regex: /&(reg|#174);/g, val: "\xAE" },
          "inr": { regex: /&(inr|#8377);/g, val: "\u20B9" },
          "num_dec": { regex: /&#([0-9]{1,7});/g, val: /* @__PURE__ */ __name((_3, str) => String.fromCodePoint(Number.parseInt(str, 10)), "val") },
          "num_hex": { regex: /&#x([0-9a-fA-F]{1,6});/g, val: /* @__PURE__ */ __name((_3, str) => String.fromCodePoint(Number.parseInt(str, 16)), "val") }
        };
        this.addExternalEntities = addExternalEntities;
        this.parseXml = parseXml;
        this.parseTextData = parseTextData;
        this.resolveNameSpace = resolveNameSpace;
        this.buildAttributesMap = buildAttributesMap;
        this.isItStopNode = isItStopNode;
        this.replaceEntitiesValue = replaceEntitiesValue;
        this.readStopNodeData = readStopNodeData;
        this.saveTextToParentTag = saveTextToParentTag;
        this.addChild = addChild;
        this.ignoreAttributesFn = getIgnoreAttributesFn(this.options.ignoreAttributes);
      }
    };
    __name(addExternalEntities, "addExternalEntities");
    __name(parseTextData, "parseTextData");
    __name(resolveNameSpace, "resolveNameSpace");
    attrsRegx = new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`, "gm");
    __name(buildAttributesMap, "buildAttributesMap");
    parseXml = /* @__PURE__ */ __name(function(xmlData) {
      xmlData = xmlData.replace(/\r\n?/g, "\n");
      const xmlObj = new XmlNode("!xml");
      let currentNode = xmlObj;
      let textData = "";
      let jPath = "";
      for (let i3 = 0; i3 < xmlData.length; i3++) {
        const ch = xmlData[i3];
        if (ch === "<") {
          if (xmlData[i3 + 1] === "/") {
            const closeIndex = findClosingIndex(xmlData, ">", i3, "Closing Tag is not closed.");
            let tagName = xmlData.substring(i3 + 2, closeIndex).trim();
            if (this.options.removeNSPrefix) {
              const colonIndex = tagName.indexOf(":");
              if (colonIndex !== -1) {
                tagName = tagName.substr(colonIndex + 1);
              }
            }
            if (this.options.transformTagName) {
              tagName = this.options.transformTagName(tagName);
            }
            if (currentNode) {
              textData = this.saveTextToParentTag(textData, currentNode, jPath);
            }
            const lastTagName = jPath.substring(jPath.lastIndexOf(".") + 1);
            if (tagName && this.options.unpairedTags.indexOf(tagName) !== -1) {
              throw new Error(`Unpaired tag can not be used as closing tag: </${tagName}>`);
            }
            let propIndex = 0;
            if (lastTagName && this.options.unpairedTags.indexOf(lastTagName) !== -1) {
              propIndex = jPath.lastIndexOf(".", jPath.lastIndexOf(".") - 1);
              this.tagsNodeStack.pop();
            } else {
              propIndex = jPath.lastIndexOf(".");
            }
            jPath = jPath.substring(0, propIndex);
            currentNode = this.tagsNodeStack.pop();
            textData = "";
            i3 = closeIndex;
          } else if (xmlData[i3 + 1] === "?") {
            let tagData = readTagExp(xmlData, i3, false, "?>");
            if (!tagData) throw new Error("Pi Tag is not closed.");
            textData = this.saveTextToParentTag(textData, currentNode, jPath);
            if (this.options.ignoreDeclaration && tagData.tagName === "?xml" || this.options.ignorePiTags) {
            } else {
              const childNode = new XmlNode(tagData.tagName);
              childNode.add(this.options.textNodeName, "");
              if (tagData.tagName !== tagData.tagExp && tagData.attrExpPresent) {
                childNode[":@"] = this.buildAttributesMap(tagData.tagExp, jPath, tagData.tagName);
              }
              this.addChild(currentNode, childNode, jPath, i3);
            }
            i3 = tagData.closeIndex + 1;
          } else if (xmlData.substr(i3 + 1, 3) === "!--") {
            const endIndex = findClosingIndex(xmlData, "-->", i3 + 4, "Comment is not closed.");
            if (this.options.commentPropName) {
              const comment = xmlData.substring(i3 + 4, endIndex - 2);
              textData = this.saveTextToParentTag(textData, currentNode, jPath);
              currentNode.add(this.options.commentPropName, [{ [this.options.textNodeName]: comment }]);
            }
            i3 = endIndex;
          } else if (xmlData.substr(i3 + 1, 2) === "!D") {
            const result2 = readDocType(xmlData, i3);
            this.docTypeEntities = result2.entities;
            i3 = result2.i;
          } else if (xmlData.substr(i3 + 1, 2) === "![") {
            const closeIndex = findClosingIndex(xmlData, "]]>", i3, "CDATA is not closed.") - 2;
            const tagExp = xmlData.substring(i3 + 9, closeIndex);
            textData = this.saveTextToParentTag(textData, currentNode, jPath);
            let val = this.parseTextData(tagExp, currentNode.tagname, jPath, true, false, true, true);
            if (val == void 0) val = "";
            if (this.options.cdataPropName) {
              currentNode.add(this.options.cdataPropName, [{ [this.options.textNodeName]: tagExp }]);
            } else {
              currentNode.add(this.options.textNodeName, val);
            }
            i3 = closeIndex + 2;
          } else {
            let result2 = readTagExp(xmlData, i3, this.options.removeNSPrefix);
            let tagName = result2.tagName;
            const rawTagName = result2.rawTagName;
            let tagExp = result2.tagExp;
            let attrExpPresent = result2.attrExpPresent;
            let closeIndex = result2.closeIndex;
            if (this.options.transformTagName) {
              tagName = this.options.transformTagName(tagName);
            }
            if (currentNode && textData) {
              if (currentNode.tagname !== "!xml") {
                textData = this.saveTextToParentTag(textData, currentNode, jPath, false);
              }
            }
            const lastTag = currentNode;
            if (lastTag && this.options.unpairedTags.indexOf(lastTag.tagname) !== -1) {
              currentNode = this.tagsNodeStack.pop();
              jPath = jPath.substring(0, jPath.lastIndexOf("."));
            }
            if (tagName !== xmlObj.tagname) {
              jPath += jPath ? "." + tagName : tagName;
            }
            const startIndex = i3;
            if (this.isItStopNode(this.options.stopNodes, jPath, tagName)) {
              let tagContent = "";
              if (tagExp.length > 0 && tagExp.lastIndexOf("/") === tagExp.length - 1) {
                if (tagName[tagName.length - 1] === "/") {
                  tagName = tagName.substr(0, tagName.length - 1);
                  jPath = jPath.substr(0, jPath.length - 1);
                  tagExp = tagName;
                } else {
                  tagExp = tagExp.substr(0, tagExp.length - 1);
                }
                i3 = result2.closeIndex;
              } else if (this.options.unpairedTags.indexOf(tagName) !== -1) {
                i3 = result2.closeIndex;
              } else {
                const result3 = this.readStopNodeData(xmlData, rawTagName, closeIndex + 1);
                if (!result3) throw new Error(`Unexpected end of ${rawTagName}`);
                i3 = result3.i;
                tagContent = result3.tagContent;
              }
              const childNode = new XmlNode(tagName);
              if (tagName !== tagExp && attrExpPresent) {
                childNode[":@"] = this.buildAttributesMap(tagExp, jPath, tagName);
              }
              if (tagContent) {
                tagContent = this.parseTextData(tagContent, tagName, jPath, true, attrExpPresent, true, true);
              }
              jPath = jPath.substr(0, jPath.lastIndexOf("."));
              childNode.add(this.options.textNodeName, tagContent);
              this.addChild(currentNode, childNode, jPath, startIndex);
            } else {
              if (tagExp.length > 0 && tagExp.lastIndexOf("/") === tagExp.length - 1) {
                if (tagName[tagName.length - 1] === "/") {
                  tagName = tagName.substr(0, tagName.length - 1);
                  jPath = jPath.substr(0, jPath.length - 1);
                  tagExp = tagName;
                } else {
                  tagExp = tagExp.substr(0, tagExp.length - 1);
                }
                if (this.options.transformTagName) {
                  tagName = this.options.transformTagName(tagName);
                }
                const childNode = new XmlNode(tagName);
                if (tagName !== tagExp && attrExpPresent) {
                  childNode[":@"] = this.buildAttributesMap(tagExp, jPath, tagName);
                }
                this.addChild(currentNode, childNode, jPath, startIndex);
                jPath = jPath.substr(0, jPath.lastIndexOf("."));
              } else {
                const childNode = new XmlNode(tagName);
                this.tagsNodeStack.push(currentNode);
                if (tagName !== tagExp && attrExpPresent) {
                  childNode[":@"] = this.buildAttributesMap(tagExp, jPath, tagName);
                }
                this.addChild(currentNode, childNode, jPath, startIndex);
                currentNode = childNode;
              }
              textData = "";
              i3 = closeIndex;
            }
          }
        } else {
          textData += xmlData[i3];
        }
      }
      return xmlObj.child;
    }, "parseXml");
    __name(addChild, "addChild");
    replaceEntitiesValue = /* @__PURE__ */ __name(function(val) {
      if (this.options.processEntities) {
        for (let entityName in this.docTypeEntities) {
          const entity = this.docTypeEntities[entityName];
          val = val.replace(entity.regx, entity.val);
        }
        for (let entityName in this.lastEntities) {
          const entity = this.lastEntities[entityName];
          val = val.replace(entity.regex, entity.val);
        }
        if (this.options.htmlEntities) {
          for (let entityName in this.htmlEntities) {
            const entity = this.htmlEntities[entityName];
            val = val.replace(entity.regex, entity.val);
          }
        }
        val = val.replace(this.ampEntity.regex, this.ampEntity.val);
      }
      return val;
    }, "replaceEntitiesValue");
    __name(saveTextToParentTag, "saveTextToParentTag");
    __name(isItStopNode, "isItStopNode");
    __name(tagExpWithClosingIndex, "tagExpWithClosingIndex");
    __name(findClosingIndex, "findClosingIndex");
    __name(readTagExp, "readTagExp");
    __name(readStopNodeData, "readStopNodeData");
    __name(parseValue, "parseValue");
  }
});

// ../../node_modules/fast-xml-parser/src/xmlparser/node2json.js
function prettify(node, options) {
  return compress(node, options);
}
function compress(arr, options, jPath) {
  let text;
  const compressedObj = {};
  for (let i3 = 0; i3 < arr.length; i3++) {
    const tagObj = arr[i3];
    const property = propName(tagObj);
    let newJpath = "";
    if (jPath === void 0) newJpath = property;
    else newJpath = jPath + "." + property;
    if (property === options.textNodeName) {
      if (text === void 0) text = tagObj[property];
      else text += "" + tagObj[property];
    } else if (property === void 0) {
      continue;
    } else if (tagObj[property]) {
      let val = compress(tagObj[property], options, newJpath);
      const isLeaf = isLeafTag(val, options);
      if (tagObj[METADATA_SYMBOL2] !== void 0) {
        val[METADATA_SYMBOL2] = tagObj[METADATA_SYMBOL2];
      }
      if (tagObj[":@"]) {
        assignAttributes(val, tagObj[":@"], newJpath, options);
      } else if (Object.keys(val).length === 1 && val[options.textNodeName] !== void 0 && !options.alwaysCreateTextNode) {
        val = val[options.textNodeName];
      } else if (Object.keys(val).length === 0) {
        if (options.alwaysCreateTextNode) val[options.textNodeName] = "";
        else val = "";
      }
      if (compressedObj[property] !== void 0 && compressedObj.hasOwnProperty(property)) {
        if (!Array.isArray(compressedObj[property])) {
          compressedObj[property] = [compressedObj[property]];
        }
        compressedObj[property].push(val);
      } else {
        if (options.isArray(property, newJpath, isLeaf)) {
          compressedObj[property] = [val];
        } else {
          compressedObj[property] = val;
        }
      }
    }
  }
  if (typeof text === "string") {
    if (text.length > 0) compressedObj[options.textNodeName] = text;
  } else if (text !== void 0) compressedObj[options.textNodeName] = text;
  return compressedObj;
}
function propName(obj) {
  const keys = Object.keys(obj);
  for (let i3 = 0; i3 < keys.length; i3++) {
    const key = keys[i3];
    if (key !== ":@") return key;
  }
}
function assignAttributes(obj, attrMap, jpath, options) {
  if (attrMap) {
    const keys = Object.keys(attrMap);
    const len = keys.length;
    for (let i3 = 0; i3 < len; i3++) {
      const atrrName = keys[i3];
      if (options.isArray(atrrName, jpath + "." + atrrName, true, true)) {
        obj[atrrName] = [attrMap[atrrName]];
      } else {
        obj[atrrName] = attrMap[atrrName];
      }
    }
  }
}
function isLeafTag(obj, options) {
  const { textNodeName } = options;
  const propCount = Object.keys(obj).length;
  if (propCount === 0) {
    return true;
  }
  if (propCount === 1 && (obj[textNodeName] || typeof obj[textNodeName] === "boolean" || obj[textNodeName] === 0)) {
    return true;
  }
  return false;
}
var METADATA_SYMBOL2;
var init_node2json = __esm({
  "../../node_modules/fast-xml-parser/src/xmlparser/node2json.js"() {
    "use strict";
    init_xmlNode();
    METADATA_SYMBOL2 = XmlNode.getMetaDataSymbol();
    __name(prettify, "prettify");
    __name(compress, "compress");
    __name(propName, "propName");
    __name(assignAttributes, "assignAttributes");
    __name(isLeafTag, "isLeafTag");
  }
});

// ../../node_modules/fast-xml-parser/src/xmlparser/XMLParser.js
var XMLParser;
var init_XMLParser = __esm({
  "../../node_modules/fast-xml-parser/src/xmlparser/XMLParser.js"() {
    init_OptionsBuilder();
    init_OrderedObjParser();
    init_node2json();
    init_validator();
    init_xmlNode();
    XMLParser = class {
      static {
        __name(this, "XMLParser");
      }
      constructor(options) {
        this.externalEntities = {};
        this.options = buildOptions(options);
      }
      /**
       * Parse XML dats to JS object 
       * @param {string|Buffer} xmlData 
       * @param {boolean|Object} validationOption 
       */
      parse(xmlData, validationOption) {
        if (typeof xmlData === "string") {
        } else if (xmlData.toString) {
          xmlData = xmlData.toString();
        } else {
          throw new Error("XML data is accepted in String or Bytes[] form.");
        }
        if (validationOption) {
          if (validationOption === true) validationOption = {};
          const result2 = validate2(xmlData, validationOption);
          if (result2 !== true) {
            throw Error(`${result2.err.msg}:${result2.err.line}:${result2.err.col}`);
          }
        }
        const orderedObjParser = new OrderedObjParser(this.options);
        orderedObjParser.addExternalEntities(this.externalEntities);
        const orderedResult = orderedObjParser.parseXml(xmlData);
        if (this.options.preserveOrder || orderedResult === void 0) return orderedResult;
        else return prettify(orderedResult, this.options);
      }
      /**
       * Add Entity which is not by default supported by this library
       * @param {string} key 
       * @param {string} value 
       */
      addEntity(key, value) {
        if (value.indexOf("&") !== -1) {
          throw new Error("Entity value can't have '&'");
        } else if (key.indexOf("&") !== -1 || key.indexOf(";") !== -1) {
          throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");
        } else if (value === "&") {
          throw new Error("An entity with value '&' is not permitted");
        } else {
          this.externalEntities[key] = value;
        }
      }
      /**
       * Returns a Symbol that can be used to access the metadata
       * property on a node.
       * 
       * If Symbol is not available in the environment, an ordinary property is used
       * and the name of the property is here returned.
       * 
       * The XMLMetaData property is only present when `captureMetaData`
       * is true in the options.
       */
      static getMetaDataSymbol() {
        return XmlNode.getMetaDataSymbol();
      }
    };
  }
});

// ../../node_modules/fast-xml-parser/src/fxp.js
var init_fxp = __esm({
  "../../node_modules/fast-xml-parser/src/fxp.js"() {
    "use strict";
    init_XMLParser();
  }
});

// ../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeDeserializer.js
var import_smithy_client3, import_util_utf87, XmlShapeDeserializer;
var init_XmlShapeDeserializer = __esm({
  "../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeDeserializer.js"() {
    init_protocols();
    init_schema4();
    import_smithy_client3 = __toESM(require_dist_cjs26());
    import_util_utf87 = __toESM(require_dist_cjs10());
    init_fxp();
    init_ConfigurableSerdeContext();
    XmlShapeDeserializer = class extends SerdeContextConfig {
      static {
        __name(this, "XmlShapeDeserializer");
      }
      settings;
      stringDeserializer;
      constructor(settings) {
        super();
        this.settings = settings;
        this.stringDeserializer = new FromStringShapeDeserializer(settings);
      }
      setSerdeContext(serdeContext) {
        this.serdeContext = serdeContext;
        this.stringDeserializer.setSerdeContext(serdeContext);
      }
      read(schema, bytes, key) {
        const ns = NormalizedSchema.of(schema);
        const memberSchemas = ns.getMemberSchemas();
        const isEventPayload = ns.isStructSchema() && ns.isMemberSchema() && !!Object.values(memberSchemas).find((memberNs) => {
          return !!memberNs.getMemberTraits().eventPayload;
        });
        if (isEventPayload) {
          const output = {};
          const memberName = Object.keys(memberSchemas)[0];
          const eventMemberSchema = memberSchemas[memberName];
          if (eventMemberSchema.isBlobSchema()) {
            output[memberName] = bytes;
          } else {
            output[memberName] = this.read(memberSchemas[memberName], bytes);
          }
          return output;
        }
        const xmlString = (this.serdeContext?.utf8Encoder ?? import_util_utf87.toUtf8)(bytes);
        const parsedObject = this.parseXml(xmlString);
        return this.readSchema(schema, key ? parsedObject[key] : parsedObject);
      }
      readSchema(_schema, value) {
        const ns = NormalizedSchema.of(_schema);
        const traits = ns.getMergedTraits();
        if (ns.isListSchema() && !Array.isArray(value)) {
          return this.readSchema(ns, [value]);
        }
        if (value == null) {
          return value;
        }
        if (typeof value === "object") {
          const sparse = !!traits.sparse;
          const flat = !!traits.xmlFlattened;
          if (ns.isListSchema()) {
            const listValue = ns.getValueSchema();
            const buffer2 = [];
            const sourceKey = listValue.getMergedTraits().xmlName ?? "member";
            const source = flat ? value : (value[0] ?? value)[sourceKey];
            const sourceArray = Array.isArray(source) ? source : [source];
            for (const v6 of sourceArray) {
              if (v6 != null || sparse) {
                buffer2.push(this.readSchema(listValue, v6));
              }
            }
            return buffer2;
          }
          const buffer = {};
          if (ns.isMapSchema()) {
            const keyNs = ns.getKeySchema();
            const memberNs = ns.getValueSchema();
            let entries;
            if (flat) {
              entries = Array.isArray(value) ? value : [value];
            } else {
              entries = Array.isArray(value.entry) ? value.entry : [value.entry];
            }
            const keyProperty = keyNs.getMergedTraits().xmlName ?? "key";
            const valueProperty = memberNs.getMergedTraits().xmlName ?? "value";
            for (const entry of entries) {
              const key = entry[keyProperty];
              const value2 = entry[valueProperty];
              if (value2 != null || sparse) {
                buffer[key] = this.readSchema(memberNs, value2);
              }
            }
            return buffer;
          }
          if (ns.isStructSchema()) {
            for (const [memberName, memberSchema] of ns.structIterator()) {
              const memberTraits = memberSchema.getMergedTraits();
              const xmlObjectKey = !memberTraits.httpPayload ? memberSchema.getMemberTraits().xmlName ?? memberName : memberTraits.xmlName ?? memberSchema.getName();
              if (value[xmlObjectKey] != null) {
                buffer[memberName] = this.readSchema(memberSchema, value[xmlObjectKey]);
              }
            }
            return buffer;
          }
          if (ns.isDocumentSchema()) {
            return value;
          }
          throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${ns.getName(true)}`);
        }
        if (ns.isListSchema()) {
          return [];
        }
        if (ns.isMapSchema() || ns.isStructSchema()) {
          return {};
        }
        return this.stringDeserializer.read(ns, value);
      }
      parseXml(xml) {
        if (xml.length) {
          const parser = new XMLParser({
            attributeNamePrefix: "",
            htmlEntities: true,
            ignoreAttributes: false,
            ignoreDeclaration: true,
            parseTagValue: false,
            trimValues: false,
            tagValueProcessor: /* @__PURE__ */ __name((_3, val) => val.trim() === "" && val.includes("\n") ? "" : void 0, "tagValueProcessor")
          });
          parser.addEntity("#xD", "\r");
          parser.addEntity("#10", "\n");
          let parsedObj;
          try {
            parsedObj = parser.parse(xml, true);
          } catch (e3) {
            if (e3 && typeof e3 === "object") {
              Object.defineProperty(e3, "$responseBodyText", {
                value: xml
              });
            }
            throw e3;
          }
          const textNodeName = "#text";
          const key = Object.keys(parsedObj)[0];
          const parsedObjToReturn = parsedObj[key];
          if (parsedObjToReturn[textNodeName]) {
            parsedObjToReturn[key] = parsedObjToReturn[textNodeName];
            delete parsedObjToReturn[textNodeName];
          }
          return (0, import_smithy_client3.getValueFromTextNode)(parsedObjToReturn);
        }
        return {};
      }
    };
  }
});

// ../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js
var import_smithy_client4, import_util_base645, QueryShapeSerializer;
var init_QueryShapeSerializer = __esm({
  "../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js"() {
    init_protocols();
    init_schema4();
    init_serde();
    import_smithy_client4 = __toESM(require_dist_cjs26());
    import_util_base645 = __toESM(require_dist_cjs11());
    init_ConfigurableSerdeContext();
    QueryShapeSerializer = class extends SerdeContextConfig {
      static {
        __name(this, "QueryShapeSerializer");
      }
      settings;
      buffer;
      constructor(settings) {
        super();
        this.settings = settings;
      }
      write(schema, value, prefix2 = "") {
        if (this.buffer === void 0) {
          this.buffer = "";
        }
        const ns = NormalizedSchema.of(schema);
        if (prefix2 && !prefix2.endsWith(".")) {
          prefix2 += ".";
        }
        if (ns.isBlobSchema()) {
          if (typeof value === "string" || value instanceof Uint8Array) {
            this.writeKey(prefix2);
            this.writeValue((this.serdeContext?.base64Encoder ?? import_util_base645.toBase64)(value));
          }
        } else if (ns.isBooleanSchema() || ns.isNumericSchema() || ns.isStringSchema()) {
          if (value != null) {
            this.writeKey(prefix2);
            this.writeValue(String(value));
          } else if (ns.isIdempotencyToken()) {
            this.writeKey(prefix2);
            this.writeValue(v4_default());
          }
        } else if (ns.isBigIntegerSchema()) {
          if (value != null) {
            this.writeKey(prefix2);
            this.writeValue(String(value));
          }
        } else if (ns.isBigDecimalSchema()) {
          if (value != null) {
            this.writeKey(prefix2);
            this.writeValue(value instanceof NumericValue2 ? value.string : String(value));
          }
        } else if (ns.isTimestampSchema()) {
          if (value instanceof Date) {
            this.writeKey(prefix2);
            const format26 = determineTimestampFormat(ns, this.settings);
            switch (format26) {
              case SCHEMA.TIMESTAMP_DATE_TIME:
                this.writeValue(value.toISOString().replace(".000Z", "Z"));
                break;
              case SCHEMA.TIMESTAMP_HTTP_DATE:
                this.writeValue((0, import_smithy_client4.dateToUtcString)(value));
                break;
              case SCHEMA.TIMESTAMP_EPOCH_SECONDS:
                this.writeValue(String(value.getTime() / 1e3));
                break;
            }
          }
        } else if (ns.isDocumentSchema()) {
          throw new Error(`@aws-sdk/core/protocols - QuerySerializer unsupported document type ${ns.getName(true)}`);
        } else if (ns.isListSchema()) {
          if (Array.isArray(value)) {
            if (value.length === 0) {
              if (this.settings.serializeEmptyLists) {
                this.writeKey(prefix2);
                this.writeValue("");
              }
            } else {
              const member = ns.getValueSchema();
              const flat = this.settings.flattenLists || ns.getMergedTraits().xmlFlattened;
              let i3 = 1;
              for (const item of value) {
                if (item == null) {
                  continue;
                }
                const suffix = this.getKey("member", member.getMergedTraits().xmlName);
                const key = flat ? `${prefix2}${i3}` : `${prefix2}${suffix}.${i3}`;
                this.write(member, item, key);
                ++i3;
              }
            }
          }
        } else if (ns.isMapSchema()) {
          if (value && typeof value === "object") {
            const keySchema = ns.getKeySchema();
            const memberSchema = ns.getValueSchema();
            const flat = ns.getMergedTraits().xmlFlattened;
            let i3 = 1;
            for (const [k3, v6] of Object.entries(value)) {
              if (v6 == null) {
                continue;
              }
              const keySuffix = this.getKey("key", keySchema.getMergedTraits().xmlName);
              const key = flat ? `${prefix2}${i3}.${keySuffix}` : `${prefix2}entry.${i3}.${keySuffix}`;
              const valueSuffix = this.getKey("value", memberSchema.getMergedTraits().xmlName);
              const valueKey = flat ? `${prefix2}${i3}.${valueSuffix}` : `${prefix2}entry.${i3}.${valueSuffix}`;
              this.write(keySchema, k3, key);
              this.write(memberSchema, v6, valueKey);
              ++i3;
            }
          }
        } else if (ns.isStructSchema()) {
          if (value && typeof value === "object") {
            for (const [memberName, member] of ns.structIterator()) {
              if (value[memberName] == null && !member.isIdempotencyToken()) {
                continue;
              }
              const suffix = this.getKey(memberName, member.getMergedTraits().xmlName);
              const key = `${prefix2}${suffix}`;
              this.write(member, value[memberName], key);
            }
          }
        } else if (ns.isUnitSchema()) {
        } else {
          throw new Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${ns.getName(true)}`);
        }
      }
      flush() {
        if (this.buffer === void 0) {
          throw new Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.");
        }
        const str = this.buffer;
        delete this.buffer;
        return str;
      }
      getKey(memberName, xmlName) {
        const key = xmlName ?? memberName;
        if (this.settings.capitalizeKeys) {
          return key[0].toUpperCase() + key.slice(1);
        }
        return key;
      }
      writeKey(key) {
        if (key.endsWith(".")) {
          key = key.slice(0, key.length - 1);
        }
        this.buffer += `&${extendedEncodeURIComponent2(key)}=`;
      }
      writeValue(value) {
        this.buffer += extendedEncodeURIComponent2(value);
      }
    };
  }
});

// ../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsQueryProtocol.js
var AwsQueryProtocol;
var init_AwsQueryProtocol = __esm({
  "../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsQueryProtocol.js"() {
    init_protocols();
    init_schema4();
    init_ProtocolLib();
    init_XmlShapeDeserializer();
    init_QueryShapeSerializer();
    AwsQueryProtocol = class extends RpcProtocol {
      static {
        __name(this, "AwsQueryProtocol");
      }
      options;
      serializer;
      deserializer;
      mixin = new ProtocolLib();
      constructor(options) {
        super({
          defaultNamespace: options.defaultNamespace
        });
        this.options = options;
        const settings = {
          timestampFormat: {
            useTrait: true,
            default: SCHEMA.TIMESTAMP_DATE_TIME
          },
          httpBindings: false,
          xmlNamespace: options.xmlNamespace,
          serviceNamespace: options.defaultNamespace,
          serializeEmptyLists: true
        };
        this.serializer = new QueryShapeSerializer(settings);
        this.deserializer = new XmlShapeDeserializer(settings);
      }
      getShapeId() {
        return "aws.protocols#awsQuery";
      }
      setSerdeContext(serdeContext) {
        this.serializer.setSerdeContext(serdeContext);
        this.deserializer.setSerdeContext(serdeContext);
      }
      getPayloadCodec() {
        throw new Error("AWSQuery protocol has no payload codec.");
      }
      async serializeRequest(operationSchema, input, context) {
        const request2 = await super.serializeRequest(operationSchema, input, context);
        if (!request2.path.endsWith("/")) {
          request2.path += "/";
        }
        Object.assign(request2.headers, {
          "content-type": `application/x-www-form-urlencoded`
        });
        if (deref(operationSchema.input) === "unit" || !request2.body) {
          request2.body = "";
        }
        request2.body = `Action=${operationSchema.name.split("#")[1]}&Version=${this.options.version}` + request2.body;
        if (request2.body.endsWith("&")) {
          request2.body = request2.body.slice(-1);
        }
        try {
          request2.headers["content-length"] = this.mixin.calculateContentLength(request2.body, this.serdeContext);
        } catch (e3) {
        }
        return request2;
      }
      async deserializeResponse(operationSchema, context, response) {
        const deserializer = this.deserializer;
        const ns = NormalizedSchema.of(operationSchema.output);
        const dataObject = {};
        if (response.statusCode >= 300) {
          const bytes2 = await collectBody2(response.body, context);
          if (bytes2.byteLength > 0) {
            Object.assign(dataObject, await deserializer.read(SCHEMA.DOCUMENT, bytes2));
          }
          await this.handleError(operationSchema, context, response, dataObject, this.deserializeMetadata(response));
        }
        for (const header in response.headers) {
          const value = response.headers[header];
          delete response.headers[header];
          response.headers[header.toLowerCase()] = value;
        }
        const awsQueryResultKey = ns.isStructSchema() && this.useNestedResult() ? operationSchema.name.split("#")[1] + "Result" : void 0;
        const bytes = await collectBody2(response.body, context);
        if (bytes.byteLength > 0) {
          Object.assign(dataObject, await deserializer.read(ns, bytes, awsQueryResultKey));
        }
        const output = {
          $metadata: this.deserializeMetadata(response),
          ...dataObject
        };
        return output;
      }
      useNestedResult() {
        return true;
      }
      async handleError(operationSchema, context, response, dataObject, metadata) {
        const errorIdentifier = this.loadQueryErrorCode(response, dataObject) ?? "Unknown";
        const errorData = this.loadQueryError(dataObject);
        const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, errorData, metadata, (registry, errorName) => registry.find((schema) => NormalizedSchema.of(schema).getMergedTraits().awsQueryError?.[0] === errorName));
        const ns = NormalizedSchema.of(errorSchema);
        const message2 = this.loadQueryErrorMessage(dataObject);
        const exception = new errorSchema.ctor(message2);
        const output = {};
        for (const [name, member] of ns.structIterator()) {
          const target = member.getMergedTraits().xmlName ?? name;
          const value = errorData[target] ?? dataObject[target];
          output[name] = this.deserializer.readSchema(member, value);
        }
        throw Object.assign(exception, errorMetadata, {
          $fault: ns.getMergedTraits().error,
          message: message2
        }, output);
      }
      loadQueryErrorCode(output, data3) {
        const code = (data3.Errors?.[0]?.Error ?? data3.Errors?.Error ?? data3.Error)?.Code;
        if (code !== void 0) {
          return code;
        }
        if (output.statusCode == 404) {
          return "NotFound";
        }
      }
      loadQueryError(data3) {
        return data3.Errors?.[0]?.Error ?? data3.Errors?.Error ?? data3.Error;
      }
      loadQueryErrorMessage(data3) {
        const errorData = this.loadQueryError(data3);
        return errorData?.message ?? errorData?.Message ?? data3.message ?? data3.Message ?? "Unknown";
      }
      getDefaultContentType() {
        return "application/x-www-form-urlencoded";
      }
    };
  }
});

// ../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsEc2QueryProtocol.js
var AwsEc2QueryProtocol;
var init_AwsEc2QueryProtocol = __esm({
  "../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsEc2QueryProtocol.js"() {
    init_AwsQueryProtocol();
    AwsEc2QueryProtocol = class extends AwsQueryProtocol {
      static {
        __name(this, "AwsEc2QueryProtocol");
      }
      options;
      constructor(options) {
        super(options);
        this.options = options;
        const ec2Settings = {
          capitalizeKeys: true,
          flattenLists: true,
          serializeEmptyLists: false
        };
        Object.assign(this.serializer.settings, ec2Settings);
      }
      useNestedResult() {
        return false;
      }
    };
  }
});

// ../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/parseXmlBody.js
var import_smithy_client5, parseXmlBody, parseXmlErrorBody, loadRestXmlErrorCode;
var init_parseXmlBody = __esm({
  "../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/parseXmlBody.js"() {
    import_smithy_client5 = __toESM(require_dist_cjs26());
    init_fxp();
    init_common2();
    parseXmlBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
      if (encoded.length) {
        const parser = new XMLParser({
          attributeNamePrefix: "",
          htmlEntities: true,
          ignoreAttributes: false,
          ignoreDeclaration: true,
          parseTagValue: false,
          trimValues: false,
          tagValueProcessor: /* @__PURE__ */ __name((_3, val) => val.trim() === "" && val.includes("\n") ? "" : void 0, "tagValueProcessor")
        });
        parser.addEntity("#xD", "\r");
        parser.addEntity("#10", "\n");
        let parsedObj;
        try {
          parsedObj = parser.parse(encoded, true);
        } catch (e3) {
          if (e3 && typeof e3 === "object") {
            Object.defineProperty(e3, "$responseBodyText", {
              value: encoded
            });
          }
          throw e3;
        }
        const textNodeName = "#text";
        const key = Object.keys(parsedObj)[0];
        const parsedObjToReturn = parsedObj[key];
        if (parsedObjToReturn[textNodeName]) {
          parsedObjToReturn[key] = parsedObjToReturn[textNodeName];
          delete parsedObjToReturn[textNodeName];
        }
        return (0, import_smithy_client5.getValueFromTextNode)(parsedObjToReturn);
      }
      return {};
    }), "parseXmlBody");
    parseXmlErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
      const value = await parseXmlBody(errorBody, context);
      if (value.Error) {
        value.Error.message = value.Error.message ?? value.Error.Message;
      }
      return value;
    }, "parseXmlErrorBody");
    loadRestXmlErrorCode = /* @__PURE__ */ __name((output, data3) => {
      if (data3?.Error?.Code !== void 0) {
        return data3.Error.Code;
      }
      if (data3?.Code !== void 0) {
        return data3.Code;
      }
      if (output.statusCode == 404) {
        return "NotFound";
      }
    }, "loadRestXmlErrorCode");
  }
});

// ../../node_modules/@aws-sdk/xml-builder/dist-cjs/index.js
var require_dist_cjs27 = __commonJS({
  "../../node_modules/@aws-sdk/xml-builder/dist-cjs/index.js"(exports2, module2) {
    "use strict";
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var index_exports = {};
    __export2(index_exports, {
      XmlNode: /* @__PURE__ */ __name(() => XmlNode3, "XmlNode"),
      XmlText: /* @__PURE__ */ __name(() => XmlText2, "XmlText")
    });
    module2.exports = __toCommonJS2(index_exports);
    function escapeAttribute(value) {
      return value.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
    }
    __name(escapeAttribute, "escapeAttribute");
    __name2(escapeAttribute, "escapeAttribute");
    function escapeElement(value) {
      return value.replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/'/g, "&apos;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/\r/g, "&#x0D;").replace(/\n/g, "&#x0A;").replace(/\u0085/g, "&#x85;").replace(/\u2028/, "&#x2028;");
    }
    __name(escapeElement, "escapeElement");
    __name2(escapeElement, "escapeElement");
    var XmlText2 = class {
      static {
        __name(this, "XmlText");
      }
      constructor(value) {
        this.value = value;
      }
      static {
        __name2(this, "XmlText");
      }
      toString() {
        return escapeElement("" + this.value);
      }
    };
    var XmlNode3 = class _XmlNode {
      static {
        __name(this, "_XmlNode");
      }
      constructor(name, children = []) {
        this.name = name;
        this.children = children;
      }
      static {
        __name2(this, "XmlNode");
      }
      attributes = {};
      static of(name, childText, withName) {
        const node = new _XmlNode(name);
        if (childText !== void 0) {
          node.addChildNode(new XmlText2(childText));
        }
        if (withName !== void 0) {
          node.withName(withName);
        }
        return node;
      }
      withName(name) {
        this.name = name;
        return this;
      }
      addAttribute(name, value) {
        this.attributes[name] = value;
        return this;
      }
      addChildNode(child) {
        this.children.push(child);
        return this;
      }
      removeAttribute(name) {
        delete this.attributes[name];
        return this;
      }
      /**
       * @internal
       * Alias of {@link XmlNode#withName(string)} for codegen brevity.
       */
      n(name) {
        this.name = name;
        return this;
      }
      /**
       * @internal
       * Alias of {@link XmlNode#addChildNode(string)} for codegen brevity.
       */
      c(child) {
        this.children.push(child);
        return this;
      }
      /**
       * @internal
       * Checked version of {@link XmlNode#addAttribute(string)} for codegen brevity.
       */
      a(name, value) {
        if (value != null) {
          this.attributes[name] = value;
        }
        return this;
      }
      /**
       * Create a child node.
       * Used in serialization of string fields.
       * @internal
       */
      cc(input, field, withName = field) {
        if (input[field] != null) {
          const node = _XmlNode.of(field, input[field]).withName(withName);
          this.c(node);
        }
      }
      /**
       * Creates list child nodes.
       * @internal
       */
      l(input, listName, memberName, valueProvider) {
        if (input[listName] != null) {
          const nodes = valueProvider();
          nodes.map((node) => {
            node.withName(memberName);
            this.c(node);
          });
        }
      }
      /**
       * Creates list child nodes with container.
       * @internal
       */
      lc(input, listName, memberName, valueProvider) {
        if (input[listName] != null) {
          const nodes = valueProvider();
          const containerNode = new _XmlNode(memberName);
          nodes.map((node) => {
            containerNode.c(node);
          });
          this.c(containerNode);
        }
      }
      toString() {
        const hasChildren = Boolean(this.children.length);
        let xmlText = `<${this.name}`;
        const attributes = this.attributes;
        for (const attributeName of Object.keys(attributes)) {
          const attribute = attributes[attributeName];
          if (attribute != null) {
            xmlText += ` ${attributeName}="${escapeAttribute("" + attribute)}"`;
          }
        }
        return xmlText += !hasChildren ? "/>" : `>${this.children.map((c3) => c3.toString()).join("")}</${this.name}>`;
      }
    };
  }
});

// ../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js
var import_xml_builder, import_smithy_client6, import_util_base646, XmlShapeSerializer;
var init_XmlShapeSerializer = __esm({
  "../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js"() {
    import_xml_builder = __toESM(require_dist_cjs27());
    init_schema4();
    init_serde();
    import_smithy_client6 = __toESM(require_dist_cjs26());
    import_util_base646 = __toESM(require_dist_cjs11());
    init_ConfigurableSerdeContext();
    XmlShapeSerializer = class extends SerdeContextConfig {
      static {
        __name(this, "XmlShapeSerializer");
      }
      settings;
      stringBuffer;
      byteBuffer;
      buffer;
      constructor(settings) {
        super();
        this.settings = settings;
      }
      write(schema, value) {
        const ns = NormalizedSchema.of(schema);
        if (ns.isStringSchema() && typeof value === "string") {
          this.stringBuffer = value;
        } else if (ns.isBlobSchema()) {
          this.byteBuffer = "byteLength" in value ? value : (this.serdeContext?.base64Decoder ?? import_util_base646.fromBase64)(value);
        } else {
          this.buffer = this.writeStruct(ns, value, void 0);
          const traits = ns.getMergedTraits();
          if (traits.httpPayload && !traits.xmlName) {
            this.buffer.withName(ns.getName());
          }
        }
      }
      flush() {
        if (this.byteBuffer !== void 0) {
          const bytes = this.byteBuffer;
          delete this.byteBuffer;
          return bytes;
        }
        if (this.stringBuffer !== void 0) {
          const str = this.stringBuffer;
          delete this.stringBuffer;
          return str;
        }
        const buffer = this.buffer;
        if (this.settings.xmlNamespace) {
          if (!buffer?.attributes?.["xmlns"]) {
            buffer.addAttribute("xmlns", this.settings.xmlNamespace);
          }
        }
        delete this.buffer;
        return buffer.toString();
      }
      writeStruct(ns, value, parentXmlns) {
        const traits = ns.getMergedTraits();
        const name = ns.isMemberSchema() && !traits.httpPayload ? ns.getMemberTraits().xmlName ?? ns.getMemberName() : traits.xmlName ?? ns.getName();
        if (!name || !ns.isStructSchema()) {
          throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${ns.getName(true)}.`);
        }
        const structXmlNode = import_xml_builder.XmlNode.of(name);
        const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(ns, parentXmlns);
        for (const [memberName, memberSchema] of ns.structIterator()) {
          const val = value[memberName];
          if (val != null || memberSchema.isIdempotencyToken()) {
            if (memberSchema.getMergedTraits().xmlAttribute) {
              structXmlNode.addAttribute(memberSchema.getMergedTraits().xmlName ?? memberName, this.writeSimple(memberSchema, val));
              continue;
            }
            if (memberSchema.isListSchema()) {
              this.writeList(memberSchema, val, structXmlNode, xmlns);
            } else if (memberSchema.isMapSchema()) {
              this.writeMap(memberSchema, val, structXmlNode, xmlns);
            } else if (memberSchema.isStructSchema()) {
              structXmlNode.addChildNode(this.writeStruct(memberSchema, val, xmlns));
            } else {
              const memberNode = import_xml_builder.XmlNode.of(memberSchema.getMergedTraits().xmlName ?? memberSchema.getMemberName());
              this.writeSimpleInto(memberSchema, val, memberNode, xmlns);
              structXmlNode.addChildNode(memberNode);
            }
          }
        }
        if (xmlns) {
          structXmlNode.addAttribute(xmlnsAttr, xmlns);
        }
        return structXmlNode;
      }
      writeList(listMember, array, container, parentXmlns) {
        if (!listMember.isMemberSchema()) {
          throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${listMember.getName(true)}`);
        }
        const listTraits = listMember.getMergedTraits();
        const listValueSchema = listMember.getValueSchema();
        const listValueTraits = listValueSchema.getMergedTraits();
        const sparse = !!listValueTraits.sparse;
        const flat = !!listTraits.xmlFlattened;
        const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(listMember, parentXmlns);
        const writeItem = /* @__PURE__ */ __name((container2, value) => {
          if (listValueSchema.isListSchema()) {
            this.writeList(listValueSchema, Array.isArray(value) ? value : [value], container2, xmlns);
          } else if (listValueSchema.isMapSchema()) {
            this.writeMap(listValueSchema, value, container2, xmlns);
          } else if (listValueSchema.isStructSchema()) {
            const struct2 = this.writeStruct(listValueSchema, value, xmlns);
            container2.addChildNode(struct2.withName(flat ? listTraits.xmlName ?? listMember.getMemberName() : listValueTraits.xmlName ?? "member"));
          } else {
            const listItemNode = import_xml_builder.XmlNode.of(flat ? listTraits.xmlName ?? listMember.getMemberName() : listValueTraits.xmlName ?? "member");
            this.writeSimpleInto(listValueSchema, value, listItemNode, xmlns);
            container2.addChildNode(listItemNode);
          }
        }, "writeItem");
        if (flat) {
          for (const value of array) {
            if (sparse || value != null) {
              writeItem(container, value);
            }
          }
        } else {
          const listNode = import_xml_builder.XmlNode.of(listTraits.xmlName ?? listMember.getMemberName());
          if (xmlns) {
            listNode.addAttribute(xmlnsAttr, xmlns);
          }
          for (const value of array) {
            if (sparse || value != null) {
              writeItem(listNode, value);
            }
          }
          container.addChildNode(listNode);
        }
      }
      writeMap(mapMember, map3, container, parentXmlns, containerIsMap = false) {
        if (!mapMember.isMemberSchema()) {
          throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${mapMember.getName(true)}`);
        }
        const mapTraits = mapMember.getMergedTraits();
        const mapKeySchema = mapMember.getKeySchema();
        const mapKeyTraits = mapKeySchema.getMergedTraits();
        const keyTag = mapKeyTraits.xmlName ?? "key";
        const mapValueSchema = mapMember.getValueSchema();
        const mapValueTraits = mapValueSchema.getMergedTraits();
        const valueTag = mapValueTraits.xmlName ?? "value";
        const sparse = !!mapValueTraits.sparse;
        const flat = !!mapTraits.xmlFlattened;
        const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(mapMember, parentXmlns);
        const addKeyValue = /* @__PURE__ */ __name((entry, key, val) => {
          const keyNode = import_xml_builder.XmlNode.of(keyTag, key);
          const [keyXmlnsAttr, keyXmlns] = this.getXmlnsAttribute(mapKeySchema, xmlns);
          if (keyXmlns) {
            keyNode.addAttribute(keyXmlnsAttr, keyXmlns);
          }
          entry.addChildNode(keyNode);
          let valueNode = import_xml_builder.XmlNode.of(valueTag);
          if (mapValueSchema.isListSchema()) {
            this.writeList(mapValueSchema, val, valueNode, xmlns);
          } else if (mapValueSchema.isMapSchema()) {
            this.writeMap(mapValueSchema, val, valueNode, xmlns, true);
          } else if (mapValueSchema.isStructSchema()) {
            valueNode = this.writeStruct(mapValueSchema, val, xmlns);
          } else {
            this.writeSimpleInto(mapValueSchema, val, valueNode, xmlns);
          }
          entry.addChildNode(valueNode);
        }, "addKeyValue");
        if (flat) {
          for (const [key, val] of Object.entries(map3)) {
            if (sparse || val != null) {
              const entry = import_xml_builder.XmlNode.of(mapTraits.xmlName ?? mapMember.getMemberName());
              addKeyValue(entry, key, val);
              container.addChildNode(entry);
            }
          }
        } else {
          let mapNode;
          if (!containerIsMap) {
            mapNode = import_xml_builder.XmlNode.of(mapTraits.xmlName ?? mapMember.getMemberName());
            if (xmlns) {
              mapNode.addAttribute(xmlnsAttr, xmlns);
            }
            container.addChildNode(mapNode);
          }
          for (const [key, val] of Object.entries(map3)) {
            if (sparse || val != null) {
              const entry = import_xml_builder.XmlNode.of("entry");
              addKeyValue(entry, key, val);
              (containerIsMap ? container : mapNode).addChildNode(entry);
            }
          }
        }
      }
      writeSimple(_schema, value) {
        if (null === value) {
          throw new Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.");
        }
        const ns = NormalizedSchema.of(_schema);
        let nodeContents = null;
        if (value && typeof value === "object") {
          if (ns.isBlobSchema()) {
            nodeContents = (this.serdeContext?.base64Encoder ?? import_util_base646.toBase64)(value);
          } else if (ns.isTimestampSchema() && value instanceof Date) {
            const options = this.settings.timestampFormat;
            const format26 = options.useTrait ? ns.getSchema() === SCHEMA.TIMESTAMP_DEFAULT ? options.default : ns.getSchema() ?? options.default : options.default;
            switch (format26) {
              case SCHEMA.TIMESTAMP_DATE_TIME:
                nodeContents = value.toISOString().replace(".000Z", "Z");
                break;
              case SCHEMA.TIMESTAMP_HTTP_DATE:
                nodeContents = (0, import_smithy_client6.dateToUtcString)(value);
                break;
              case SCHEMA.TIMESTAMP_EPOCH_SECONDS:
                nodeContents = String(value.getTime() / 1e3);
                break;
              default:
                console.warn("Missing timestamp format, using http date", value);
                nodeContents = (0, import_smithy_client6.dateToUtcString)(value);
                break;
            }
          } else if (ns.isBigDecimalSchema() && value) {
            if (value instanceof NumericValue2) {
              return value.string;
            }
            return String(value);
          } else if (ns.isMapSchema() || ns.isListSchema()) {
            throw new Error("@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead.");
          } else {
            throw new Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${ns.getName(true)}`);
          }
        }
        if (ns.isBooleanSchema() || ns.isNumericSchema() || ns.isBigIntegerSchema() || ns.isBigDecimalSchema()) {
          nodeContents = String(value);
        }
        if (ns.isStringSchema()) {
          if (value === void 0 && ns.isIdempotencyToken()) {
            nodeContents = v4_default();
          } else {
            nodeContents = String(value);
          }
        }
        if (nodeContents === null) {
          throw new Error(`Unhandled schema-value pair ${ns.getName(true)}=${value}`);
        }
        return nodeContents;
      }
      writeSimpleInto(_schema, value, into, parentXmlns) {
        const nodeContents = this.writeSimple(_schema, value);
        const ns = NormalizedSchema.of(_schema);
        const content = new import_xml_builder.XmlText(nodeContents);
        const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(ns, parentXmlns);
        if (xmlns) {
          into.addAttribute(xmlnsAttr, xmlns);
        }
        into.addChildNode(content);
      }
      getXmlnsAttribute(ns, parentXmlns) {
        const traits = ns.getMergedTraits();
        const [prefix2, xmlns] = traits.xmlNamespace ?? [];
        if (xmlns && xmlns !== parentXmlns) {
          return [prefix2 ? `xmlns:${prefix2}` : "xmlns", xmlns];
        }
        return [void 0, void 0];
      }
    };
  }
});

// ../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlCodec.js
var XmlCodec;
var init_XmlCodec = __esm({
  "../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlCodec.js"() {
    init_ConfigurableSerdeContext();
    init_XmlShapeDeserializer();
    init_XmlShapeSerializer();
    XmlCodec = class extends SerdeContextConfig {
      static {
        __name(this, "XmlCodec");
      }
      settings;
      constructor(settings) {
        super();
        this.settings = settings;
      }
      createSerializer() {
        const serializer = new XmlShapeSerializer(this.settings);
        serializer.setSerdeContext(this.serdeContext);
        return serializer;
      }
      createDeserializer() {
        const deserializer = new XmlShapeDeserializer(this.settings);
        deserializer.setSerdeContext(this.serdeContext);
        return deserializer;
      }
    };
  }
});

// ../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js
var AwsRestXmlProtocol;
var init_AwsRestXmlProtocol = __esm({
  "../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js"() {
    init_protocols();
    init_schema4();
    init_ProtocolLib();
    init_parseXmlBody();
    init_XmlCodec();
    AwsRestXmlProtocol = class extends HttpBindingProtocol {
      static {
        __name(this, "AwsRestXmlProtocol");
      }
      codec;
      serializer;
      deserializer;
      mixin = new ProtocolLib();
      constructor(options) {
        super(options);
        const settings = {
          timestampFormat: {
            useTrait: true,
            default: SCHEMA.TIMESTAMP_DATE_TIME
          },
          httpBindings: true,
          xmlNamespace: options.xmlNamespace,
          serviceNamespace: options.defaultNamespace
        };
        this.codec = new XmlCodec(settings);
        this.serializer = new HttpInterceptingShapeSerializer(this.codec.createSerializer(), settings);
        this.deserializer = new HttpInterceptingShapeDeserializer(this.codec.createDeserializer(), settings);
      }
      getPayloadCodec() {
        return this.codec;
      }
      getShapeId() {
        return "aws.protocols#restXml";
      }
      async serializeRequest(operationSchema, input, context) {
        const request2 = await super.serializeRequest(operationSchema, input, context);
        const inputSchema = NormalizedSchema.of(operationSchema.input);
        if (!request2.headers["content-type"]) {
          const contentType = this.mixin.resolveRestContentType(this.getDefaultContentType(), inputSchema);
          if (contentType) {
            request2.headers["content-type"] = contentType;
          }
        }
        if (request2.headers["content-type"] === this.getDefaultContentType()) {
          if (typeof request2.body === "string") {
            request2.body = '<?xml version="1.0" encoding="UTF-8"?>' + request2.body;
          }
        }
        if (request2.body) {
          try {
            request2.headers["content-length"] = this.mixin.calculateContentLength(request2.body, this.serdeContext);
          } catch (e3) {
          }
        }
        return request2;
      }
      async deserializeResponse(operationSchema, context, response) {
        return super.deserializeResponse(operationSchema, context, response);
      }
      async handleError(operationSchema, context, response, dataObject, metadata) {
        const errorIdentifier = loadRestXmlErrorCode(response, dataObject) ?? "Unknown";
        const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, dataObject, metadata);
        const ns = NormalizedSchema.of(errorSchema);
        const message2 = dataObject.Error?.message ?? dataObject.Error?.Message ?? dataObject.message ?? dataObject.Message ?? "Unknown";
        const exception = new errorSchema.ctor(message2);
        await this.deserializeHttpMessage(errorSchema, context, response, dataObject);
        const output = {};
        for (const [name, member] of ns.structIterator()) {
          const target = member.getMergedTraits().xmlName ?? name;
          const value = dataObject.Error?.[target] ?? dataObject[target];
          output[name] = this.codec.createDeserializer().readSchema(member, value);
        }
        throw Object.assign(exception, errorMetadata, {
          $fault: ns.getMergedTraits().error,
          message: message2
        }, output);
      }
      getDefaultContentType() {
        return "application/xml";
      }
    };
  }
});

// ../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js
var init_protocols2 = __esm({
  "../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js"() {
    init_AwsSmithyRpcV2CborProtocol();
    init_coercing_serializers();
    init_AwsJson1_0Protocol();
    init_AwsJson1_1Protocol();
    init_AwsJsonRpcProtocol();
    init_AwsRestJsonProtocol();
    init_JsonCodec();
    init_JsonShapeDeserializer();
    init_JsonShapeSerializer();
    init_awsExpectUnion();
    init_parseJsonBody();
    init_AwsEc2QueryProtocol();
    init_AwsQueryProtocol();
    init_AwsRestXmlProtocol();
    init_XmlCodec();
    init_XmlShapeDeserializer();
    init_XmlShapeSerializer();
    init_parseXmlBody();
  }
});

// ../../node_modules/@aws-sdk/core/dist-es/index.js
var dist_es_exports2 = {};
__export(dist_es_exports2, {
  AWSSDKSigV4Signer: () => AWSSDKSigV4Signer,
  AwsEc2QueryProtocol: () => AwsEc2QueryProtocol,
  AwsJson1_0Protocol: () => AwsJson1_0Protocol,
  AwsJson1_1Protocol: () => AwsJson1_1Protocol,
  AwsJsonRpcProtocol: () => AwsJsonRpcProtocol,
  AwsQueryProtocol: () => AwsQueryProtocol,
  AwsRestJsonProtocol: () => AwsRestJsonProtocol,
  AwsRestXmlProtocol: () => AwsRestXmlProtocol,
  AwsSdkSigV4ASigner: () => AwsSdkSigV4ASigner,
  AwsSdkSigV4Signer: () => AwsSdkSigV4Signer,
  AwsSmithyRpcV2CborProtocol: () => AwsSmithyRpcV2CborProtocol,
  JsonCodec: () => JsonCodec,
  JsonShapeDeserializer: () => JsonShapeDeserializer,
  JsonShapeSerializer: () => JsonShapeSerializer,
  NODE_AUTH_SCHEME_PREFERENCE_OPTIONS: () => NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,
  NODE_SIGV4A_CONFIG_OPTIONS: () => NODE_SIGV4A_CONFIG_OPTIONS,
  XmlCodec: () => XmlCodec,
  XmlShapeDeserializer: () => XmlShapeDeserializer,
  XmlShapeSerializer: () => XmlShapeSerializer,
  _toBool: () => _toBool,
  _toNum: () => _toNum,
  _toStr: () => _toStr,
  awsExpectUnion: () => awsExpectUnion,
  emitWarningIfUnsupportedVersion: () => emitWarningIfUnsupportedVersion,
  getBearerTokenEnvKey: () => getBearerTokenEnvKey,
  loadRestJsonErrorCode: () => loadRestJsonErrorCode,
  loadRestXmlErrorCode: () => loadRestXmlErrorCode,
  parseJsonBody: () => parseJsonBody,
  parseJsonErrorBody: () => parseJsonErrorBody,
  parseXmlBody: () => parseXmlBody,
  parseXmlErrorBody: () => parseXmlErrorBody,
  resolveAWSSDKSigV4Config: () => resolveAWSSDKSigV4Config,
  resolveAwsSdkSigV4AConfig: () => resolveAwsSdkSigV4AConfig,
  resolveAwsSdkSigV4Config: () => resolveAwsSdkSigV4Config,
  setCredentialFeature: () => setCredentialFeature,
  setFeature: () => setFeature2,
  setTokenFeature: () => setTokenFeature,
  state: () => state,
  validateSigningProperties: () => validateSigningProperties
});
var init_dist_es2 = __esm({
  "../../node_modules/@aws-sdk/core/dist-es/index.js"() {
    init_client();
    init_httpAuthSchemes2();
    init_protocols2();
  }
});

// ../../node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js
var require_dist_cjs28 = __commonJS({
  "../../node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js"(exports2, module2) {
    "use strict";
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var index_exports = {};
    __export2(index_exports, {
      DEFAULT_UA_APP_ID: /* @__PURE__ */ __name(() => DEFAULT_UA_APP_ID, "DEFAULT_UA_APP_ID"),
      getUserAgentMiddlewareOptions: /* @__PURE__ */ __name(() => getUserAgentMiddlewareOptions, "getUserAgentMiddlewareOptions"),
      getUserAgentPlugin: /* @__PURE__ */ __name(() => getUserAgentPlugin3, "getUserAgentPlugin"),
      resolveUserAgentConfig: /* @__PURE__ */ __name(() => resolveUserAgentConfig3, "resolveUserAgentConfig"),
      userAgentMiddleware: /* @__PURE__ */ __name(() => userAgentMiddleware, "userAgentMiddleware")
    });
    module2.exports = __toCommonJS2(index_exports);
    var import_core17 = (init_dist_es(), __toCommonJS(dist_es_exports));
    var DEFAULT_UA_APP_ID = void 0;
    function isValidUserAgentAppId(appId) {
      if (appId === void 0) {
        return true;
      }
      return typeof appId === "string" && appId.length <= 50;
    }
    __name(isValidUserAgentAppId, "isValidUserAgentAppId");
    __name2(isValidUserAgentAppId, "isValidUserAgentAppId");
    function resolveUserAgentConfig3(input) {
      const normalizedAppIdProvider = (0, import_core17.normalizeProvider)(input.userAgentAppId ?? DEFAULT_UA_APP_ID);
      const { customUserAgent } = input;
      return Object.assign(input, {
        customUserAgent: typeof customUserAgent === "string" ? [[customUserAgent]] : customUserAgent,
        userAgentAppId: /* @__PURE__ */ __name2(async () => {
          const appId = await normalizedAppIdProvider();
          if (!isValidUserAgentAppId(appId)) {
            const logger4 = input.logger?.constructor?.name === "NoOpLogger" || !input.logger ? console : input.logger;
            if (typeof appId !== "string") {
              logger4?.warn("userAgentAppId must be a string or undefined.");
            } else if (appId.length > 50) {
              logger4?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.");
            }
          }
          return appId;
        }, "userAgentAppId")
      });
    }
    __name(resolveUserAgentConfig3, "resolveUserAgentConfig");
    __name2(resolveUserAgentConfig3, "resolveUserAgentConfig");
    var import_util_endpoints5 = require_dist_cjs21();
    var import_protocol_http16 = require_dist_cjs2();
    var import_core22 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var ACCOUNT_ID_ENDPOINT_REGEX = /\d{12}\.ddb/;
    async function checkFeatures(context, config, args) {
      const request2 = args.request;
      if (request2?.headers?.["smithy-protocol"] === "rpc-v2-cbor") {
        (0, import_core22.setFeature)(context, "PROTOCOL_RPC_V2_CBOR", "M");
      }
      if (typeof config.retryStrategy === "function") {
        const retryStrategy = await config.retryStrategy();
        if (typeof retryStrategy.acquireInitialRetryToken === "function") {
          if (retryStrategy.constructor?.name?.includes("Adaptive")) {
            (0, import_core22.setFeature)(context, "RETRY_MODE_ADAPTIVE", "F");
          } else {
            (0, import_core22.setFeature)(context, "RETRY_MODE_STANDARD", "E");
          }
        } else {
          (0, import_core22.setFeature)(context, "RETRY_MODE_LEGACY", "D");
        }
      }
      if (typeof config.accountIdEndpointMode === "function") {
        const endpointV2 = context.endpointV2;
        if (String(endpointV2?.url?.hostname).match(ACCOUNT_ID_ENDPOINT_REGEX)) {
          (0, import_core22.setFeature)(context, "ACCOUNT_ID_ENDPOINT", "O");
        }
        switch (await config.accountIdEndpointMode?.()) {
          case "disabled":
            (0, import_core22.setFeature)(context, "ACCOUNT_ID_MODE_DISABLED", "Q");
            break;
          case "preferred":
            (0, import_core22.setFeature)(context, "ACCOUNT_ID_MODE_PREFERRED", "P");
            break;
          case "required":
            (0, import_core22.setFeature)(context, "ACCOUNT_ID_MODE_REQUIRED", "R");
            break;
        }
      }
      const identity = context.__smithy_context?.selectedHttpAuthScheme?.identity;
      if (identity?.$source) {
        const credentials = identity;
        if (credentials.accountId) {
          (0, import_core22.setFeature)(context, "RESOLVED_ACCOUNT_ID", "T");
        }
        for (const [key, value] of Object.entries(credentials.$source ?? {})) {
          (0, import_core22.setFeature)(context, key, value);
        }
      }
    }
    __name(checkFeatures, "checkFeatures");
    __name2(checkFeatures, "checkFeatures");
    var USER_AGENT2 = "user-agent";
    var X_AMZ_USER_AGENT = "x-amz-user-agent";
    var SPACE = " ";
    var UA_NAME_SEPARATOR = "/";
    var UA_NAME_ESCAPE_REGEX = /[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g;
    var UA_VALUE_ESCAPE_REGEX = /[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g;
    var UA_ESCAPE_CHAR = "-";
    var BYTE_LIMIT = 1024;
    function encodeFeatures(features) {
      let buffer = "";
      for (const key in features) {
        const val = features[key];
        if (buffer.length + val.length + 1 <= BYTE_LIMIT) {
          if (buffer.length) {
            buffer += "," + val;
          } else {
            buffer += val;
          }
          continue;
        }
        break;
      }
      return buffer;
    }
    __name(encodeFeatures, "encodeFeatures");
    __name2(encodeFeatures, "encodeFeatures");
    var userAgentMiddleware = /* @__PURE__ */ __name2((options) => (next, context) => async (args) => {
      const { request: request2 } = args;
      if (!import_protocol_http16.HttpRequest.isInstance(request2)) {
        return next(args);
      }
      const { headers } = request2;
      const userAgent = context?.userAgent?.map(escapeUserAgent) || [];
      const defaultUserAgent = (await options.defaultUserAgentProvider()).map(escapeUserAgent);
      await checkFeatures(context, options, args);
      const awsContext = context;
      defaultUserAgent.push(
        `m/${encodeFeatures(
          Object.assign({}, context.__smithy_context?.features, awsContext.__aws_sdk_context?.features)
        )}`
      );
      const customUserAgent = options?.customUserAgent?.map(escapeUserAgent) || [];
      const appId = await options.userAgentAppId();
      if (appId) {
        defaultUserAgent.push(escapeUserAgent([`app/${appId}`]));
      }
      const prefix2 = (0, import_util_endpoints5.getUserAgentPrefix)();
      const sdkUserAgentValue = (prefix2 ? [prefix2] : []).concat([...defaultUserAgent, ...userAgent, ...customUserAgent]).join(SPACE);
      const normalUAValue = [
        ...defaultUserAgent.filter((section) => section.startsWith("aws-sdk-")),
        ...customUserAgent
      ].join(SPACE);
      if (options.runtime !== "browser") {
        if (normalUAValue) {
          headers[X_AMZ_USER_AGENT] = headers[X_AMZ_USER_AGENT] ? `${headers[USER_AGENT2]} ${normalUAValue}` : normalUAValue;
        }
        headers[USER_AGENT2] = sdkUserAgentValue;
      } else {
        headers[X_AMZ_USER_AGENT] = sdkUserAgentValue;
      }
      return next({
        ...args,
        request: request2
      });
    }, "userAgentMiddleware");
    var escapeUserAgent = /* @__PURE__ */ __name2((userAgentPair) => {
      const name = userAgentPair[0].split(UA_NAME_SEPARATOR).map((part) => part.replace(UA_NAME_ESCAPE_REGEX, UA_ESCAPE_CHAR)).join(UA_NAME_SEPARATOR);
      const version2 = userAgentPair[1]?.replace(UA_VALUE_ESCAPE_REGEX, UA_ESCAPE_CHAR);
      const prefixSeparatorIndex = name.indexOf(UA_NAME_SEPARATOR);
      const prefix2 = name.substring(0, prefixSeparatorIndex);
      let uaName = name.substring(prefixSeparatorIndex + 1);
      if (prefix2 === "api") {
        uaName = uaName.toLowerCase();
      }
      return [prefix2, uaName, version2].filter((item) => item && item.length > 0).reduce((acc, item, index) => {
        switch (index) {
          case 0:
            return item;
          case 1:
            return `${acc}/${item}`;
          default:
            return `${acc}#${item}`;
        }
      }, "");
    }, "escapeUserAgent");
    var getUserAgentMiddlewareOptions = {
      name: "getUserAgentMiddleware",
      step: "build",
      priority: "low",
      tags: ["SET_USER_AGENT", "USER_AGENT"],
      override: true
    };
    var getUserAgentPlugin3 = /* @__PURE__ */ __name2((config) => ({
      applyToStack: /* @__PURE__ */ __name2((clientStack) => {
        clientStack.add(userAgentMiddleware(config), getUserAgentMiddlewareOptions);
      }, "applyToStack")
    }), "getUserAgentPlugin");
  }
});

// ../../node_modules/@smithy/util-config-provider/dist-cjs/index.js
var require_dist_cjs29 = __commonJS({
  "../../node_modules/@smithy/util-config-provider/dist-cjs/index.js"(exports2, module2) {
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var src_exports = {};
    __export2(src_exports, {
      SelectorType: /* @__PURE__ */ __name(() => SelectorType, "SelectorType"),
      booleanSelector: /* @__PURE__ */ __name(() => booleanSelector, "booleanSelector"),
      numberSelector: /* @__PURE__ */ __name(() => numberSelector, "numberSelector")
    });
    module2.exports = __toCommonJS2(src_exports);
    var booleanSelector = /* @__PURE__ */ __name2((obj, key, type) => {
      if (!(key in obj))
        return void 0;
      if (obj[key] === "true")
        return true;
      if (obj[key] === "false")
        return false;
      throw new Error(`Cannot load ${type} "${key}". Expected "true" or "false", got ${obj[key]}.`);
    }, "booleanSelector");
    var numberSelector = /* @__PURE__ */ __name2((obj, key, type) => {
      if (!(key in obj))
        return void 0;
      const numberValue = parseInt(obj[key], 10);
      if (Number.isNaN(numberValue)) {
        throw new TypeError(`Cannot load ${type} '${key}'. Expected number, got '${obj[key]}'.`);
      }
      return numberValue;
    }, "numberSelector");
    var SelectorType = /* @__PURE__ */ ((SelectorType2) => {
      SelectorType2["ENV"] = "env";
      SelectorType2["CONFIG"] = "shared config entry";
      return SelectorType2;
    })(SelectorType || {});
  }
});

// ../../node_modules/@smithy/config-resolver/dist-cjs/index.js
var require_dist_cjs30 = __commonJS({
  "../../node_modules/@smithy/config-resolver/dist-cjs/index.js"(exports2, module2) {
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var src_exports = {};
    __export2(src_exports, {
      CONFIG_USE_DUALSTACK_ENDPOINT: /* @__PURE__ */ __name(() => CONFIG_USE_DUALSTACK_ENDPOINT, "CONFIG_USE_DUALSTACK_ENDPOINT"),
      CONFIG_USE_FIPS_ENDPOINT: /* @__PURE__ */ __name(() => CONFIG_USE_FIPS_ENDPOINT, "CONFIG_USE_FIPS_ENDPOINT"),
      DEFAULT_USE_DUALSTACK_ENDPOINT: /* @__PURE__ */ __name(() => DEFAULT_USE_DUALSTACK_ENDPOINT, "DEFAULT_USE_DUALSTACK_ENDPOINT"),
      DEFAULT_USE_FIPS_ENDPOINT: /* @__PURE__ */ __name(() => DEFAULT_USE_FIPS_ENDPOINT, "DEFAULT_USE_FIPS_ENDPOINT"),
      ENV_USE_DUALSTACK_ENDPOINT: /* @__PURE__ */ __name(() => ENV_USE_DUALSTACK_ENDPOINT, "ENV_USE_DUALSTACK_ENDPOINT"),
      ENV_USE_FIPS_ENDPOINT: /* @__PURE__ */ __name(() => ENV_USE_FIPS_ENDPOINT, "ENV_USE_FIPS_ENDPOINT"),
      NODE_REGION_CONFIG_FILE_OPTIONS: /* @__PURE__ */ __name(() => NODE_REGION_CONFIG_FILE_OPTIONS4, "NODE_REGION_CONFIG_FILE_OPTIONS"),
      NODE_REGION_CONFIG_OPTIONS: /* @__PURE__ */ __name(() => NODE_REGION_CONFIG_OPTIONS4, "NODE_REGION_CONFIG_OPTIONS"),
      NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS: /* @__PURE__ */ __name(() => NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS3, "NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS"),
      NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS: /* @__PURE__ */ __name(() => NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS3, "NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS"),
      REGION_ENV_NAME: /* @__PURE__ */ __name(() => REGION_ENV_NAME, "REGION_ENV_NAME"),
      REGION_INI_NAME: /* @__PURE__ */ __name(() => REGION_INI_NAME, "REGION_INI_NAME"),
      getRegionInfo: /* @__PURE__ */ __name(() => getRegionInfo, "getRegionInfo"),
      resolveCustomEndpointsConfig: /* @__PURE__ */ __name(() => resolveCustomEndpointsConfig, "resolveCustomEndpointsConfig"),
      resolveEndpointsConfig: /* @__PURE__ */ __name(() => resolveEndpointsConfig, "resolveEndpointsConfig"),
      resolveRegionConfig: /* @__PURE__ */ __name(() => resolveRegionConfig3, "resolveRegionConfig")
    });
    module2.exports = __toCommonJS2(src_exports);
    var import_util_config_provider = require_dist_cjs29();
    var ENV_USE_DUALSTACK_ENDPOINT = "AWS_USE_DUALSTACK_ENDPOINT";
    var CONFIG_USE_DUALSTACK_ENDPOINT = "use_dualstack_endpoint";
    var DEFAULT_USE_DUALSTACK_ENDPOINT = false;
    var NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS3 = {
      environmentVariableSelector: /* @__PURE__ */ __name((env2) => (0, import_util_config_provider.booleanSelector)(env2, ENV_USE_DUALSTACK_ENDPOINT, import_util_config_provider.SelectorType.ENV), "environmentVariableSelector"),
      configFileSelector: /* @__PURE__ */ __name((profile) => (0, import_util_config_provider.booleanSelector)(profile, CONFIG_USE_DUALSTACK_ENDPOINT, import_util_config_provider.SelectorType.CONFIG), "configFileSelector"),
      default: false
    };
    var ENV_USE_FIPS_ENDPOINT = "AWS_USE_FIPS_ENDPOINT";
    var CONFIG_USE_FIPS_ENDPOINT = "use_fips_endpoint";
    var DEFAULT_USE_FIPS_ENDPOINT = false;
    var NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS3 = {
      environmentVariableSelector: /* @__PURE__ */ __name((env2) => (0, import_util_config_provider.booleanSelector)(env2, ENV_USE_FIPS_ENDPOINT, import_util_config_provider.SelectorType.ENV), "environmentVariableSelector"),
      configFileSelector: /* @__PURE__ */ __name((profile) => (0, import_util_config_provider.booleanSelector)(profile, CONFIG_USE_FIPS_ENDPOINT, import_util_config_provider.SelectorType.CONFIG), "configFileSelector"),
      default: false
    };
    var import_util_middleware8 = require_dist_cjs6();
    var resolveCustomEndpointsConfig = /* @__PURE__ */ __name2((input) => {
      const { tls, endpoint, urlParser, useDualstackEndpoint } = input;
      return Object.assign(input, {
        tls: tls ?? true,
        endpoint: (0, import_util_middleware8.normalizeProvider)(typeof endpoint === "string" ? urlParser(endpoint) : endpoint),
        isCustomEndpoint: true,
        useDualstackEndpoint: (0, import_util_middleware8.normalizeProvider)(useDualstackEndpoint ?? false)
      });
    }, "resolveCustomEndpointsConfig");
    var getEndpointFromRegion = /* @__PURE__ */ __name2(async (input) => {
      const { tls = true } = input;
      const region = await input.region();
      const dnsHostRegex = new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/);
      if (!dnsHostRegex.test(region)) {
        throw new Error("Invalid region in client config");
      }
      const useDualstackEndpoint = await input.useDualstackEndpoint();
      const useFipsEndpoint = await input.useFipsEndpoint();
      const { hostname } = await input.regionInfoProvider(region, { useDualstackEndpoint, useFipsEndpoint }) ?? {};
      if (!hostname) {
        throw new Error("Cannot resolve hostname from client config");
      }
      return input.urlParser(`${tls ? "https:" : "http:"}//${hostname}`);
    }, "getEndpointFromRegion");
    var resolveEndpointsConfig = /* @__PURE__ */ __name2((input) => {
      const useDualstackEndpoint = (0, import_util_middleware8.normalizeProvider)(input.useDualstackEndpoint ?? false);
      const { endpoint, useFipsEndpoint, urlParser, tls } = input;
      return Object.assign(input, {
        tls: tls ?? true,
        endpoint: endpoint ? (0, import_util_middleware8.normalizeProvider)(typeof endpoint === "string" ? urlParser(endpoint) : endpoint) : () => getEndpointFromRegion({ ...input, useDualstackEndpoint, useFipsEndpoint }),
        isCustomEndpoint: !!endpoint,
        useDualstackEndpoint
      });
    }, "resolveEndpointsConfig");
    var REGION_ENV_NAME = "AWS_REGION";
    var REGION_INI_NAME = "region";
    var NODE_REGION_CONFIG_OPTIONS4 = {
      environmentVariableSelector: /* @__PURE__ */ __name((env2) => env2[REGION_ENV_NAME], "environmentVariableSelector"),
      configFileSelector: /* @__PURE__ */ __name((profile) => profile[REGION_INI_NAME], "configFileSelector"),
      default: /* @__PURE__ */ __name(() => {
        throw new Error("Region is missing");
      }, "default")
    };
    var NODE_REGION_CONFIG_FILE_OPTIONS4 = {
      preferredFile: "credentials"
    };
    var isFipsRegion = /* @__PURE__ */ __name2((region) => typeof region === "string" && (region.startsWith("fips-") || region.endsWith("-fips")), "isFipsRegion");
    var getRealRegion = /* @__PURE__ */ __name2((region) => isFipsRegion(region) ? ["fips-aws-global", "aws-fips"].includes(region) ? "us-east-1" : region.replace(/fips-(dkr-|prod-)?|-fips/, "") : region, "getRealRegion");
    var resolveRegionConfig3 = /* @__PURE__ */ __name2((input) => {
      const { region, useFipsEndpoint } = input;
      if (!region) {
        throw new Error("Region is missing");
      }
      return Object.assign(input, {
        region: /* @__PURE__ */ __name(async () => {
          if (typeof region === "string") {
            return getRealRegion(region);
          }
          const providedRegion = await region();
          return getRealRegion(providedRegion);
        }, "region"),
        useFipsEndpoint: /* @__PURE__ */ __name(async () => {
          const providedRegion = typeof region === "string" ? region : await region();
          if (isFipsRegion(providedRegion)) {
            return true;
          }
          return typeof useFipsEndpoint !== "function" ? Promise.resolve(!!useFipsEndpoint) : useFipsEndpoint();
        }, "useFipsEndpoint")
      });
    }, "resolveRegionConfig");
    var getHostnameFromVariants = /* @__PURE__ */ __name2((variants = [], { useFipsEndpoint, useDualstackEndpoint }) => variants.find(
      ({ tags }) => useFipsEndpoint === tags.includes("fips") && useDualstackEndpoint === tags.includes("dualstack")
    )?.hostname, "getHostnameFromVariants");
    var getResolvedHostname = /* @__PURE__ */ __name2((resolvedRegion, { regionHostname, partitionHostname }) => regionHostname ? regionHostname : partitionHostname ? partitionHostname.replace("{region}", resolvedRegion) : void 0, "getResolvedHostname");
    var getResolvedPartition = /* @__PURE__ */ __name2((region, { partitionHash }) => Object.keys(partitionHash || {}).find((key) => partitionHash[key].regions.includes(region)) ?? "aws", "getResolvedPartition");
    var getResolvedSigningRegion = /* @__PURE__ */ __name2((hostname, { signingRegion, regionRegex, useFipsEndpoint }) => {
      if (signingRegion) {
        return signingRegion;
      } else if (useFipsEndpoint) {
        const regionRegexJs = regionRegex.replace("\\\\", "\\").replace(/^\^/g, "\\.").replace(/\$$/g, "\\.");
        const regionRegexmatchArray = hostname.match(regionRegexJs);
        if (regionRegexmatchArray) {
          return regionRegexmatchArray[0].slice(1, -1);
        }
      }
    }, "getResolvedSigningRegion");
    var getRegionInfo = /* @__PURE__ */ __name2((region, {
      useFipsEndpoint = false,
      useDualstackEndpoint = false,
      signingService,
      regionHash,
      partitionHash
    }) => {
      const partition3 = getResolvedPartition(region, { partitionHash });
      const resolvedRegion = region in regionHash ? region : partitionHash[partition3]?.endpoint ?? region;
      const hostnameOptions = { useFipsEndpoint, useDualstackEndpoint };
      const regionHostname = getHostnameFromVariants(regionHash[resolvedRegion]?.variants, hostnameOptions);
      const partitionHostname = getHostnameFromVariants(partitionHash[partition3]?.variants, hostnameOptions);
      const hostname = getResolvedHostname(resolvedRegion, { regionHostname, partitionHostname });
      if (hostname === void 0) {
        throw new Error(`Endpoint resolution failed for: ${{ resolvedRegion, useFipsEndpoint, useDualstackEndpoint }}`);
      }
      const signingRegion = getResolvedSigningRegion(hostname, {
        signingRegion: regionHash[resolvedRegion]?.signingRegion,
        regionRegex: partitionHash[partition3].regionRegex,
        useFipsEndpoint
      });
      return {
        partition: partition3,
        signingService,
        hostname,
        ...signingRegion && { signingRegion },
        ...regionHash[resolvedRegion]?.signingService && {
          signingService: regionHash[resolvedRegion].signingService
        }
      };
    }, "getRegionInfo");
  }
});

// ../../node_modules/@smithy/middleware-content-length/dist-cjs/index.js
var require_dist_cjs31 = __commonJS({
  "../../node_modules/@smithy/middleware-content-length/dist-cjs/index.js"(exports2, module2) {
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var src_exports = {};
    __export2(src_exports, {
      contentLengthMiddleware: /* @__PURE__ */ __name(() => contentLengthMiddleware, "contentLengthMiddleware"),
      contentLengthMiddlewareOptions: /* @__PURE__ */ __name(() => contentLengthMiddlewareOptions, "contentLengthMiddlewareOptions"),
      getContentLengthPlugin: /* @__PURE__ */ __name(() => getContentLengthPlugin3, "getContentLengthPlugin")
    });
    module2.exports = __toCommonJS2(src_exports);
    var import_protocol_http16 = require_dist_cjs2();
    var CONTENT_LENGTH_HEADER = "content-length";
    function contentLengthMiddleware(bodyLengthChecker) {
      return (next) => async (args) => {
        const request2 = args.request;
        if (import_protocol_http16.HttpRequest.isInstance(request2)) {
          const { body, headers } = request2;
          if (body && Object.keys(headers).map((str) => str.toLowerCase()).indexOf(CONTENT_LENGTH_HEADER) === -1) {
            try {
              const length = bodyLengthChecker(body);
              request2.headers = {
                ...request2.headers,
                [CONTENT_LENGTH_HEADER]: String(length)
              };
            } catch (error5) {
            }
          }
        }
        return next({
          ...args,
          request: request2
        });
      };
    }
    __name(contentLengthMiddleware, "contentLengthMiddleware");
    __name2(contentLengthMiddleware, "contentLengthMiddleware");
    var contentLengthMiddlewareOptions = {
      step: "build",
      tags: ["SET_CONTENT_LENGTH", "CONTENT_LENGTH"],
      name: "contentLengthMiddleware",
      override: true
    };
    var getContentLengthPlugin3 = /* @__PURE__ */ __name2((options) => ({
      applyToStack: /* @__PURE__ */ __name((clientStack) => {
        clientStack.add(contentLengthMiddleware(options.bodyLengthChecker), contentLengthMiddlewareOptions);
      }, "applyToStack")
    }), "getContentLengthPlugin");
  }
});

// ../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/getHomeDir.js
var require_getHomeDir = __commonJS({
  "../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/getHomeDir.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.getHomeDir = void 0;
    var os_1 = require("os");
    var path_1 = require("path");
    var homeDirCache = {};
    var getHomeDirCacheKey = /* @__PURE__ */ __name(() => {
      if (process && process.geteuid) {
        return `${process.geteuid()}`;
      }
      return "DEFAULT";
    }, "getHomeDirCacheKey");
    var getHomeDir2 = /* @__PURE__ */ __name(() => {
      const { HOME, USERPROFILE, HOMEPATH, HOMEDRIVE = `C:${path_1.sep}` } = process.env;
      if (HOME)
        return HOME;
      if (USERPROFILE)
        return USERPROFILE;
      if (HOMEPATH)
        return `${HOMEDRIVE}${HOMEPATH}`;
      const homeDirCacheKey = getHomeDirCacheKey();
      if (!homeDirCache[homeDirCacheKey])
        homeDirCache[homeDirCacheKey] = (0, os_1.homedir)();
      return homeDirCache[homeDirCacheKey];
    }, "getHomeDir");
    exports2.getHomeDir = getHomeDir2;
  }
});

// ../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFilepath.js
var require_getSSOTokenFilepath = __commonJS({
  "../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFilepath.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.getSSOTokenFilepath = void 0;
    var crypto_1 = require("crypto");
    var path_1 = require("path");
    var getHomeDir_1 = require_getHomeDir();
    var getSSOTokenFilepath2 = /* @__PURE__ */ __name((id) => {
      const hasher = (0, crypto_1.createHash)("sha1");
      const cacheName = hasher.update(id).digest("hex");
      return (0, path_1.join)((0, getHomeDir_1.getHomeDir)(), ".aws", "sso", "cache", `${cacheName}.json`);
    }, "getSSOTokenFilepath");
    exports2.getSSOTokenFilepath = getSSOTokenFilepath2;
  }
});

// ../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js
var require_getSSOTokenFromFile = __commonJS({
  "../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.getSSOTokenFromFile = void 0;
    var fs_1 = require("fs");
    var getSSOTokenFilepath_1 = require_getSSOTokenFilepath();
    var { readFile: readFile5 } = fs_1.promises;
    var getSSOTokenFromFile2 = /* @__PURE__ */ __name(async (id) => {
      const ssoTokenFilepath = (0, getSSOTokenFilepath_1.getSSOTokenFilepath)(id);
      const ssoTokenText = await readFile5(ssoTokenFilepath, "utf8");
      return JSON.parse(ssoTokenText);
    }, "getSSOTokenFromFile");
    exports2.getSSOTokenFromFile = getSSOTokenFromFile2;
  }
});

// ../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/slurpFile.js
var require_slurpFile = __commonJS({
  "../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/slurpFile.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.slurpFile = void 0;
    var fs_1 = require("fs");
    var { readFile: readFile5 } = fs_1.promises;
    var filePromisesHash = {};
    var slurpFile = /* @__PURE__ */ __name((path38, options) => {
      if (!filePromisesHash[path38] || (options === null || options === void 0 ? void 0 : options.ignoreCache)) {
        filePromisesHash[path38] = readFile5(path38, "utf8");
      }
      return filePromisesHash[path38];
    }, "slurpFile");
    exports2.slurpFile = slurpFile;
  }
});

// ../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js
var require_dist_cjs32 = __commonJS({
  "../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js"(exports2, module2) {
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __reExport = /* @__PURE__ */ __name((target, mod, secondTarget) => (__copyProps2(target, mod, "default"), secondTarget && __copyProps2(secondTarget, mod, "default")), "__reExport");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var src_exports = {};
    __export2(src_exports, {
      CONFIG_PREFIX_SEPARATOR: /* @__PURE__ */ __name(() => CONFIG_PREFIX_SEPARATOR, "CONFIG_PREFIX_SEPARATOR"),
      DEFAULT_PROFILE: /* @__PURE__ */ __name(() => DEFAULT_PROFILE, "DEFAULT_PROFILE"),
      ENV_PROFILE: /* @__PURE__ */ __name(() => ENV_PROFILE, "ENV_PROFILE"),
      getProfileName: /* @__PURE__ */ __name(() => getProfileName, "getProfileName"),
      loadSharedConfigFiles: /* @__PURE__ */ __name(() => loadSharedConfigFiles2, "loadSharedConfigFiles"),
      loadSsoSessionData: /* @__PURE__ */ __name(() => loadSsoSessionData, "loadSsoSessionData"),
      parseKnownFiles: /* @__PURE__ */ __name(() => parseKnownFiles, "parseKnownFiles")
    });
    module2.exports = __toCommonJS2(src_exports);
    __reExport(src_exports, require_getHomeDir(), module2.exports);
    var ENV_PROFILE = "AWS_PROFILE";
    var DEFAULT_PROFILE = "default";
    var getProfileName = /* @__PURE__ */ __name2((init) => init.profile || process.env[ENV_PROFILE] || DEFAULT_PROFILE, "getProfileName");
    __reExport(src_exports, require_getSSOTokenFilepath(), module2.exports);
    __reExport(src_exports, require_getSSOTokenFromFile(), module2.exports);
    var import_types7 = require_dist_cjs();
    var getConfigData = /* @__PURE__ */ __name2((data3) => Object.entries(data3).filter(([key]) => {
      const indexOfSeparator = key.indexOf(CONFIG_PREFIX_SEPARATOR);
      if (indexOfSeparator === -1) {
        return false;
      }
      return Object.values(import_types7.IniSectionType).includes(key.substring(0, indexOfSeparator));
    }).reduce(
      (acc, [key, value]) => {
        const indexOfSeparator = key.indexOf(CONFIG_PREFIX_SEPARATOR);
        const updatedKey = key.substring(0, indexOfSeparator) === import_types7.IniSectionType.PROFILE ? key.substring(indexOfSeparator + 1) : key;
        acc[updatedKey] = value;
        return acc;
      },
      {
        // Populate default profile, if present.
        ...data3.default && { default: data3.default }
      }
    ), "getConfigData");
    var import_path = require("path");
    var import_getHomeDir = require_getHomeDir();
    var ENV_CONFIG_PATH = "AWS_CONFIG_FILE";
    var getConfigFilepath = /* @__PURE__ */ __name2(() => process.env[ENV_CONFIG_PATH] || (0, import_path.join)((0, import_getHomeDir.getHomeDir)(), ".aws", "config"), "getConfigFilepath");
    var import_getHomeDir2 = require_getHomeDir();
    var ENV_CREDENTIALS_PATH = "AWS_SHARED_CREDENTIALS_FILE";
    var getCredentialsFilepath = /* @__PURE__ */ __name2(() => process.env[ENV_CREDENTIALS_PATH] || (0, import_path.join)((0, import_getHomeDir2.getHomeDir)(), ".aws", "credentials"), "getCredentialsFilepath");
    var import_getHomeDir3 = require_getHomeDir();
    var prefixKeyRegex = /^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/;
    var profileNameBlockList = ["__proto__", "profile __proto__"];
    var parseIni = /* @__PURE__ */ __name2((iniData) => {
      const map3 = {};
      let currentSection;
      let currentSubSection;
      for (const iniLine of iniData.split(/\r?\n/)) {
        const trimmedLine = iniLine.split(/(^|\s)[;#]/)[0].trim();
        const isSection = trimmedLine[0] === "[" && trimmedLine[trimmedLine.length - 1] === "]";
        if (isSection) {
          currentSection = void 0;
          currentSubSection = void 0;
          const sectionName = trimmedLine.substring(1, trimmedLine.length - 1);
          const matches = prefixKeyRegex.exec(sectionName);
          if (matches) {
            const [, prefix2, , name] = matches;
            if (Object.values(import_types7.IniSectionType).includes(prefix2)) {
              currentSection = [prefix2, name].join(CONFIG_PREFIX_SEPARATOR);
            }
          } else {
            currentSection = sectionName;
          }
          if (profileNameBlockList.includes(sectionName)) {
            throw new Error(`Found invalid profile name "${sectionName}"`);
          }
        } else if (currentSection) {
          const indexOfEqualsSign = trimmedLine.indexOf("=");
          if (![0, -1].includes(indexOfEqualsSign)) {
            const [name, value] = [
              trimmedLine.substring(0, indexOfEqualsSign).trim(),
              trimmedLine.substring(indexOfEqualsSign + 1).trim()
            ];
            if (value === "") {
              currentSubSection = name;
            } else {
              if (currentSubSection && iniLine.trimStart() === iniLine) {
                currentSubSection = void 0;
              }
              map3[currentSection] = map3[currentSection] || {};
              const key = currentSubSection ? [currentSubSection, name].join(CONFIG_PREFIX_SEPARATOR) : name;
              map3[currentSection][key] = value;
            }
          }
        }
      }
      return map3;
    }, "parseIni");
    var import_slurpFile = require_slurpFile();
    var swallowError = /* @__PURE__ */ __name2(() => ({}), "swallowError");
    var CONFIG_PREFIX_SEPARATOR = ".";
    var loadSharedConfigFiles2 = /* @__PURE__ */ __name2(async (init = {}) => {
      const { filepath = getCredentialsFilepath(), configFilepath = getConfigFilepath() } = init;
      const homeDir = (0, import_getHomeDir3.getHomeDir)();
      const relativeHomeDirPrefix = "~/";
      let resolvedFilepath = filepath;
      if (filepath.startsWith(relativeHomeDirPrefix)) {
        resolvedFilepath = (0, import_path.join)(homeDir, filepath.slice(2));
      }
      let resolvedConfigFilepath = configFilepath;
      if (configFilepath.startsWith(relativeHomeDirPrefix)) {
        resolvedConfigFilepath = (0, import_path.join)(homeDir, configFilepath.slice(2));
      }
      const parsedFiles = await Promise.all([
        (0, import_slurpFile.slurpFile)(resolvedConfigFilepath, {
          ignoreCache: init.ignoreCache
        }).then(parseIni).then(getConfigData).catch(swallowError),
        (0, import_slurpFile.slurpFile)(resolvedFilepath, {
          ignoreCache: init.ignoreCache
        }).then(parseIni).catch(swallowError)
      ]);
      return {
        configFile: parsedFiles[0],
        credentialsFile: parsedFiles[1]
      };
    }, "loadSharedConfigFiles");
    var getSsoSessionData = /* @__PURE__ */ __name2((data3) => Object.entries(data3).filter(([key]) => key.startsWith(import_types7.IniSectionType.SSO_SESSION + CONFIG_PREFIX_SEPARATOR)).reduce((acc, [key, value]) => ({ ...acc, [key.substring(key.indexOf(CONFIG_PREFIX_SEPARATOR) + 1)]: value }), {}), "getSsoSessionData");
    var import_slurpFile2 = require_slurpFile();
    var swallowError2 = /* @__PURE__ */ __name2(() => ({}), "swallowError");
    var loadSsoSessionData = /* @__PURE__ */ __name2(async (init = {}) => (0, import_slurpFile2.slurpFile)(init.configFilepath ?? getConfigFilepath()).then(parseIni).then(getSsoSessionData).catch(swallowError2), "loadSsoSessionData");
    var mergeConfigFiles = /* @__PURE__ */ __name2((...files) => {
      const merged = {};
      for (const file of files) {
        for (const [key, values] of Object.entries(file)) {
          if (merged[key] !== void 0) {
            Object.assign(merged[key], values);
          } else {
            merged[key] = values;
          }
        }
      }
      return merged;
    }, "mergeConfigFiles");
    var parseKnownFiles = /* @__PURE__ */ __name2(async (init) => {
      const parsedFiles = await loadSharedConfigFiles2(init);
      return mergeConfigFiles(parsedFiles.configFile, parsedFiles.credentialsFile);
    }, "parseKnownFiles");
  }
});

// ../../node_modules/@smithy/node-config-provider/dist-cjs/index.js
var require_dist_cjs33 = __commonJS({
  "../../node_modules/@smithy/node-config-provider/dist-cjs/index.js"(exports2, module2) {
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var src_exports = {};
    __export2(src_exports, {
      loadConfig: /* @__PURE__ */ __name(() => loadConfig2, "loadConfig")
    });
    module2.exports = __toCommonJS2(src_exports);
    var import_property_provider3 = require_dist_cjs22();
    function getSelectorName(functionString) {
      try {
        const constants3 = new Set(Array.from(functionString.match(/([A-Z_]){3,}/g) ?? []));
        constants3.delete("CONFIG");
        constants3.delete("CONFIG_PREFIX_SEPARATOR");
        constants3.delete("ENV");
        return [...constants3].join(", ");
      } catch (e3) {
        return functionString;
      }
    }
    __name(getSelectorName, "getSelectorName");
    __name2(getSelectorName, "getSelectorName");
    var fromEnv2 = /* @__PURE__ */ __name2((envVarSelector, options) => async () => {
      try {
        const config = envVarSelector(process.env, options);
        if (config === void 0) {
          throw new Error();
        }
        return config;
      } catch (e3) {
        throw new import_property_provider3.CredentialsProviderError(
          e3.message || `Not found in ENV: ${getSelectorName(envVarSelector.toString())}`,
          { logger: options?.logger }
        );
      }
    }, "fromEnv");
    var import_shared_ini_file_loader2 = require_dist_cjs32();
    var fromSharedConfigFiles = /* @__PURE__ */ __name2((configSelector, { preferredFile = "config", ...init } = {}) => async () => {
      const profile = (0, import_shared_ini_file_loader2.getProfileName)(init);
      const { configFile, credentialsFile } = await (0, import_shared_ini_file_loader2.loadSharedConfigFiles)(init);
      const profileFromCredentials = credentialsFile[profile] || {};
      const profileFromConfig = configFile[profile] || {};
      const mergedProfile = preferredFile === "config" ? { ...profileFromCredentials, ...profileFromConfig } : { ...profileFromConfig, ...profileFromCredentials };
      try {
        const cfgFile = preferredFile === "config" ? configFile : credentialsFile;
        const configValue = configSelector(mergedProfile, cfgFile);
        if (configValue === void 0) {
          throw new Error();
        }
        return configValue;
      } catch (e3) {
        throw new import_property_provider3.CredentialsProviderError(
          e3.message || `Not found in config files w/ profile [${profile}]: ${getSelectorName(configSelector.toString())}`,
          { logger: init.logger }
        );
      }
    }, "fromSharedConfigFiles");
    var isFunction = /* @__PURE__ */ __name2((func) => typeof func === "function", "isFunction");
    var fromStatic = /* @__PURE__ */ __name2((defaultValue) => isFunction(defaultValue) ? async () => await defaultValue() : (0, import_property_provider3.fromStatic)(defaultValue), "fromStatic");
    var loadConfig2 = /* @__PURE__ */ __name2(({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => {
      const { signingName, logger: logger4 } = configuration;
      const envOptions = { signingName, logger: logger4 };
      return (0, import_property_provider3.memoize)(
        (0, import_property_provider3.chain)(
          fromEnv2(environmentVariableSelector, envOptions),
          fromSharedConfigFiles(configFileSelector, configuration),
          fromStatic(defaultValue)
        )
      );
    }, "loadConfig");
  }
});

// ../../node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointUrlConfig.js
var require_getEndpointUrlConfig = __commonJS({
  "../../node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointUrlConfig.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.getEndpointUrlConfig = void 0;
    var shared_ini_file_loader_1 = require_dist_cjs32();
    var ENV_ENDPOINT_URL = "AWS_ENDPOINT_URL";
    var CONFIG_ENDPOINT_URL = "endpoint_url";
    var getEndpointUrlConfig = /* @__PURE__ */ __name((serviceId) => ({
      environmentVariableSelector: /* @__PURE__ */ __name((env2) => {
        const serviceSuffixParts = serviceId.split(" ").map((w3) => w3.toUpperCase());
        const serviceEndpointUrl = env2[[ENV_ENDPOINT_URL, ...serviceSuffixParts].join("_")];
        if (serviceEndpointUrl)
          return serviceEndpointUrl;
        const endpointUrl = env2[ENV_ENDPOINT_URL];
        if (endpointUrl)
          return endpointUrl;
        return void 0;
      }, "environmentVariableSelector"),
      configFileSelector: /* @__PURE__ */ __name((profile, config) => {
        if (config && profile.services) {
          const servicesSection = config[["services", profile.services].join(shared_ini_file_loader_1.CONFIG_PREFIX_SEPARATOR)];
          if (servicesSection) {
            const servicePrefixParts = serviceId.split(" ").map((w3) => w3.toLowerCase());
            const endpointUrl2 = servicesSection[[servicePrefixParts.join("_"), CONFIG_ENDPOINT_URL].join(shared_ini_file_loader_1.CONFIG_PREFIX_SEPARATOR)];
            if (endpointUrl2)
              return endpointUrl2;
          }
        }
        const endpointUrl = profile[CONFIG_ENDPOINT_URL];
        if (endpointUrl)
          return endpointUrl;
        return void 0;
      }, "configFileSelector"),
      default: void 0
    }), "getEndpointUrlConfig");
    exports2.getEndpointUrlConfig = getEndpointUrlConfig;
  }
});

// ../../node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointFromConfig.js
var require_getEndpointFromConfig = __commonJS({
  "../../node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointFromConfig.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.getEndpointFromConfig = void 0;
    var node_config_provider_1 = require_dist_cjs33();
    var getEndpointUrlConfig_1 = require_getEndpointUrlConfig();
    var getEndpointFromConfig = /* @__PURE__ */ __name(async (serviceId) => (0, node_config_provider_1.loadConfig)((0, getEndpointUrlConfig_1.getEndpointUrlConfig)(serviceId !== null && serviceId !== void 0 ? serviceId : ""))(), "getEndpointFromConfig");
    exports2.getEndpointFromConfig = getEndpointFromConfig;
  }
});

// ../../node_modules/@smithy/middleware-endpoint/dist-cjs/index.js
var require_dist_cjs34 = __commonJS({
  "../../node_modules/@smithy/middleware-endpoint/dist-cjs/index.js"(exports2, module2) {
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var src_exports = {};
    __export2(src_exports, {
      endpointMiddleware: /* @__PURE__ */ __name(() => endpointMiddleware, "endpointMiddleware"),
      endpointMiddlewareOptions: /* @__PURE__ */ __name(() => endpointMiddlewareOptions, "endpointMiddlewareOptions"),
      getEndpointFromInstructions: /* @__PURE__ */ __name(() => getEndpointFromInstructions3, "getEndpointFromInstructions"),
      getEndpointPlugin: /* @__PURE__ */ __name(() => getEndpointPlugin4, "getEndpointPlugin"),
      resolveEndpointConfig: /* @__PURE__ */ __name(() => resolveEndpointConfig3, "resolveEndpointConfig"),
      resolveEndpointRequiredConfig: /* @__PURE__ */ __name(() => resolveEndpointRequiredConfig, "resolveEndpointRequiredConfig"),
      resolveParams: /* @__PURE__ */ __name(() => resolveParams, "resolveParams"),
      toEndpointV1: /* @__PURE__ */ __name(() => toEndpointV1, "toEndpointV1")
    });
    module2.exports = __toCommonJS2(src_exports);
    var resolveParamsForS3 = /* @__PURE__ */ __name2(async (endpointParams) => {
      const bucket = endpointParams?.Bucket || "";
      if (typeof endpointParams.Bucket === "string") {
        endpointParams.Bucket = bucket.replace(/#/g, encodeURIComponent("#")).replace(/\?/g, encodeURIComponent("?"));
      }
      if (isArnBucketName(bucket)) {
        if (endpointParams.ForcePathStyle === true) {
          throw new Error("Path-style addressing cannot be used with ARN buckets");
        }
      } else if (!isDnsCompatibleBucketName(bucket) || bucket.indexOf(".") !== -1 && !String(endpointParams.Endpoint).startsWith("http:") || bucket.toLowerCase() !== bucket || bucket.length < 3) {
        endpointParams.ForcePathStyle = true;
      }
      if (endpointParams.DisableMultiRegionAccessPoints) {
        endpointParams.disableMultiRegionAccessPoints = true;
        endpointParams.DisableMRAP = true;
      }
      return endpointParams;
    }, "resolveParamsForS3");
    var DOMAIN_PATTERN = /^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/;
    var IP_ADDRESS_PATTERN = /(\d+\.){3}\d+/;
    var DOTS_PATTERN = /\.\./;
    var isDnsCompatibleBucketName = /* @__PURE__ */ __name2((bucketName) => DOMAIN_PATTERN.test(bucketName) && !IP_ADDRESS_PATTERN.test(bucketName) && !DOTS_PATTERN.test(bucketName), "isDnsCompatibleBucketName");
    var isArnBucketName = /* @__PURE__ */ __name2((bucketName) => {
      const [arn, partition3, service, , , bucket] = bucketName.split(":");
      const isArn = arn === "arn" && bucketName.split(":").length >= 6;
      const isValidArn = Boolean(isArn && partition3 && service && bucket);
      if (isArn && !isValidArn) {
        throw new Error(`Invalid ARN: ${bucketName} was an invalid ARN.`);
      }
      return isValidArn;
    }, "isArnBucketName");
    var createConfigValueProvider = /* @__PURE__ */ __name2((configKey, canonicalEndpointParamKey, config) => {
      const configProvider = /* @__PURE__ */ __name2(async () => {
        const configValue = config[configKey] ?? config[canonicalEndpointParamKey];
        if (typeof configValue === "function") {
          return configValue();
        }
        return configValue;
      }, "configProvider");
      if (configKey === "credentialScope" || canonicalEndpointParamKey === "CredentialScope") {
        return async () => {
          const credentials = typeof config.credentials === "function" ? await config.credentials() : config.credentials;
          const configValue = credentials?.credentialScope ?? credentials?.CredentialScope;
          return configValue;
        };
      }
      if (configKey === "accountId" || canonicalEndpointParamKey === "AccountId") {
        return async () => {
          const credentials = typeof config.credentials === "function" ? await config.credentials() : config.credentials;
          const configValue = credentials?.accountId ?? credentials?.AccountId;
          return configValue;
        };
      }
      if (configKey === "endpoint" || canonicalEndpointParamKey === "endpoint") {
        return async () => {
          if (config.isCustomEndpoint === false) {
            return void 0;
          }
          const endpoint = await configProvider();
          if (endpoint && typeof endpoint === "object") {
            if ("url" in endpoint) {
              return endpoint.url.href;
            }
            if ("hostname" in endpoint) {
              const { protocol, hostname, port, path: path38 } = endpoint;
              return `${protocol}//${hostname}${port ? ":" + port : ""}${path38}`;
            }
          }
          return endpoint;
        };
      }
      return configProvider;
    }, "createConfigValueProvider");
    var import_getEndpointFromConfig = require_getEndpointFromConfig();
    var import_url_parser3 = require_dist_cjs20();
    var toEndpointV1 = /* @__PURE__ */ __name2((endpoint) => {
      if (typeof endpoint === "object") {
        if ("url" in endpoint) {
          return (0, import_url_parser3.parseUrl)(endpoint.url);
        }
        return endpoint;
      }
      return (0, import_url_parser3.parseUrl)(endpoint);
    }, "toEndpointV1");
    var getEndpointFromInstructions3 = /* @__PURE__ */ __name2(async (commandInput, instructionsSupplier, clientConfig, context) => {
      if (!clientConfig.isCustomEndpoint) {
        let endpointFromConfig;
        if (clientConfig.serviceConfiguredEndpoint) {
          endpointFromConfig = await clientConfig.serviceConfiguredEndpoint();
        } else {
          endpointFromConfig = await (0, import_getEndpointFromConfig.getEndpointFromConfig)(clientConfig.serviceId);
        }
        if (endpointFromConfig) {
          clientConfig.endpoint = () => Promise.resolve(toEndpointV1(endpointFromConfig));
          clientConfig.isCustomEndpoint = true;
        }
      }
      const endpointParams = await resolveParams(commandInput, instructionsSupplier, clientConfig);
      if (typeof clientConfig.endpointProvider !== "function") {
        throw new Error("config.endpointProvider is not set.");
      }
      const endpoint = clientConfig.endpointProvider(endpointParams, context);
      return endpoint;
    }, "getEndpointFromInstructions");
    var resolveParams = /* @__PURE__ */ __name2(async (commandInput, instructionsSupplier, clientConfig) => {
      const endpointParams = {};
      const instructions = instructionsSupplier?.getEndpointParameterInstructions?.() || {};
      for (const [name, instruction] of Object.entries(instructions)) {
        switch (instruction.type) {
          case "staticContextParams":
            endpointParams[name] = instruction.value;
            break;
          case "contextParams":
            endpointParams[name] = commandInput[instruction.name];
            break;
          case "clientContextParams":
          case "builtInParams":
            endpointParams[name] = await createConfigValueProvider(instruction.name, name, clientConfig)();
            break;
          case "operationContextParams":
            endpointParams[name] = instruction.get(commandInput);
            break;
          default:
            throw new Error("Unrecognized endpoint parameter instruction: " + JSON.stringify(instruction));
        }
      }
      if (Object.keys(instructions).length === 0) {
        Object.assign(endpointParams, clientConfig);
      }
      if (String(clientConfig.serviceId).toLowerCase() === "s3") {
        await resolveParamsForS3(endpointParams);
      }
      return endpointParams;
    }, "resolveParams");
    var import_core17 = (init_dist_es(), __toCommonJS(dist_es_exports));
    var import_util_middleware8 = require_dist_cjs6();
    var endpointMiddleware = /* @__PURE__ */ __name2(({
      config,
      instructions
    }) => {
      return (next, context) => async (args) => {
        if (config.isCustomEndpoint) {
          (0, import_core17.setFeature)(context, "ENDPOINT_OVERRIDE", "N");
        }
        const endpoint = await getEndpointFromInstructions3(
          args.input,
          {
            getEndpointParameterInstructions() {
              return instructions;
            }
          },
          { ...config },
          context
        );
        context.endpointV2 = endpoint;
        context.authSchemes = endpoint.properties?.authSchemes;
        const authScheme = context.authSchemes?.[0];
        if (authScheme) {
          context["signing_region"] = authScheme.signingRegion;
          context["signing_service"] = authScheme.signingName;
          const smithyContext = (0, import_util_middleware8.getSmithyContext)(context);
          const httpAuthOption = smithyContext?.selectedHttpAuthScheme?.httpAuthOption;
          if (httpAuthOption) {
            httpAuthOption.signingProperties = Object.assign(
              httpAuthOption.signingProperties || {},
              {
                signing_region: authScheme.signingRegion,
                signingRegion: authScheme.signingRegion,
                signing_service: authScheme.signingName,
                signingName: authScheme.signingName,
                signingRegionSet: authScheme.signingRegionSet
              },
              authScheme.properties
            );
          }
        }
        return next({
          ...args
        });
      };
    }, "endpointMiddleware");
    var import_middleware_serde5 = require_dist_cjs7();
    var endpointMiddlewareOptions = {
      step: "serialize",
      tags: ["ENDPOINT_PARAMETERS", "ENDPOINT_V2", "ENDPOINT"],
      name: "endpointV2Middleware",
      override: true,
      relation: "before",
      toMiddleware: import_middleware_serde5.serializerMiddlewareOption.name
    };
    var getEndpointPlugin4 = /* @__PURE__ */ __name2((config, instructions) => ({
      applyToStack: /* @__PURE__ */ __name((clientStack) => {
        clientStack.addRelativeTo(
          endpointMiddleware({
            config,
            instructions
          }),
          endpointMiddlewareOptions
        );
      }, "applyToStack")
    }), "getEndpointPlugin");
    var import_getEndpointFromConfig2 = require_getEndpointFromConfig();
    var resolveEndpointConfig3 = /* @__PURE__ */ __name2((input) => {
      const tls = input.tls ?? true;
      const { endpoint, useDualstackEndpoint, useFipsEndpoint } = input;
      const customEndpointProvider = endpoint != null ? async () => toEndpointV1(await (0, import_util_middleware8.normalizeProvider)(endpoint)()) : void 0;
      const isCustomEndpoint = !!endpoint;
      const resolvedConfig = Object.assign(input, {
        endpoint: customEndpointProvider,
        tls,
        isCustomEndpoint,
        useDualstackEndpoint: (0, import_util_middleware8.normalizeProvider)(useDualstackEndpoint ?? false),
        useFipsEndpoint: (0, import_util_middleware8.normalizeProvider)(useFipsEndpoint ?? false)
      });
      let configuredEndpointPromise = void 0;
      resolvedConfig.serviceConfiguredEndpoint = async () => {
        if (input.serviceId && !configuredEndpointPromise) {
          configuredEndpointPromise = (0, import_getEndpointFromConfig2.getEndpointFromConfig)(input.serviceId);
        }
        return configuredEndpointPromise;
      };
      return resolvedConfig;
    }, "resolveEndpointConfig");
    var resolveEndpointRequiredConfig = /* @__PURE__ */ __name2((input) => {
      const { endpoint } = input;
      if (endpoint === void 0) {
        input.endpoint = async () => {
          throw new Error(
            "@smithy/middleware-endpoint: (default endpointRuleSet) endpoint is not set - you must configure an endpoint."
          );
        };
      }
      return input;
    }, "resolveEndpointRequiredConfig");
  }
});

// ../../node_modules/@smithy/service-error-classification/dist-cjs/index.js
var require_dist_cjs35 = __commonJS({
  "../../node_modules/@smithy/service-error-classification/dist-cjs/index.js"(exports2, module2) {
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var src_exports = {};
    __export2(src_exports, {
      isBrowserNetworkError: /* @__PURE__ */ __name(() => isBrowserNetworkError, "isBrowserNetworkError"),
      isClockSkewCorrectedError: /* @__PURE__ */ __name(() => isClockSkewCorrectedError, "isClockSkewCorrectedError"),
      isClockSkewError: /* @__PURE__ */ __name(() => isClockSkewError, "isClockSkewError"),
      isRetryableByTrait: /* @__PURE__ */ __name(() => isRetryableByTrait, "isRetryableByTrait"),
      isServerError: /* @__PURE__ */ __name(() => isServerError, "isServerError"),
      isThrottlingError: /* @__PURE__ */ __name(() => isThrottlingError, "isThrottlingError"),
      isTransientError: /* @__PURE__ */ __name(() => isTransientError, "isTransientError")
    });
    module2.exports = __toCommonJS2(src_exports);
    var CLOCK_SKEW_ERROR_CODES = [
      "AuthFailure",
      "InvalidSignatureException",
      "RequestExpired",
      "RequestInTheFuture",
      "RequestTimeTooSkewed",
      "SignatureDoesNotMatch"
    ];
    var THROTTLING_ERROR_CODES = [
      "BandwidthLimitExceeded",
      "EC2ThrottledException",
      "LimitExceededException",
      "PriorRequestNotComplete",
      "ProvisionedThroughputExceededException",
      "RequestLimitExceeded",
      "RequestThrottled",
      "RequestThrottledException",
      "SlowDown",
      "ThrottledException",
      "Throttling",
      "ThrottlingException",
      "TooManyRequestsException",
      "TransactionInProgressException"
      // DynamoDB
    ];
    var TRANSIENT_ERROR_CODES = ["TimeoutError", "RequestTimeout", "RequestTimeoutException"];
    var TRANSIENT_ERROR_STATUS_CODES = [500, 502, 503, 504];
    var NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "ECONNREFUSED", "EPIPE", "ETIMEDOUT"];
    var NODEJS_NETWORK_ERROR_CODES = ["EHOSTUNREACH", "ENETUNREACH", "ENOTFOUND"];
    var isRetryableByTrait = /* @__PURE__ */ __name2((error5) => error5.$retryable !== void 0, "isRetryableByTrait");
    var isClockSkewError = /* @__PURE__ */ __name2((error5) => CLOCK_SKEW_ERROR_CODES.includes(error5.name), "isClockSkewError");
    var isClockSkewCorrectedError = /* @__PURE__ */ __name2((error5) => error5.$metadata?.clockSkewCorrected, "isClockSkewCorrectedError");
    var isBrowserNetworkError = /* @__PURE__ */ __name2((error5) => {
      const errorMessages = /* @__PURE__ */ new Set([
        "Failed to fetch",
        // Chrome
        "NetworkError when attempting to fetch resource",
        // Firefox
        "The Internet connection appears to be offline",
        // Safari 16
        "Load failed",
        // Safari 17+
        "Network request failed"
        // `cross-fetch`
      ]);
      const isValid = error5 && error5 instanceof TypeError;
      if (!isValid) {
        return false;
      }
      return errorMessages.has(error5.message);
    }, "isBrowserNetworkError");
    var isThrottlingError = /* @__PURE__ */ __name2((error5) => error5.$metadata?.httpStatusCode === 429 || THROTTLING_ERROR_CODES.includes(error5.name) || error5.$retryable?.throttling == true, "isThrottlingError");
    var isTransientError = /* @__PURE__ */ __name2((error5, depth = 0) => isClockSkewCorrectedError(error5) || TRANSIENT_ERROR_CODES.includes(error5.name) || NODEJS_TIMEOUT_ERROR_CODES.includes(error5?.code || "") || NODEJS_NETWORK_ERROR_CODES.includes(error5?.code || "") || TRANSIENT_ERROR_STATUS_CODES.includes(error5.$metadata?.httpStatusCode || 0) || isBrowserNetworkError(error5) || error5.cause !== void 0 && depth <= 10 && isTransientError(error5.cause, depth + 1), "isTransientError");
    var isServerError = /* @__PURE__ */ __name2((error5) => {
      if (error5.$metadata?.httpStatusCode !== void 0) {
        const statusCode = error5.$metadata.httpStatusCode;
        if (500 <= statusCode && statusCode <= 599 && !isTransientError(error5)) {
          return true;
        }
        return false;
      }
      return false;
    }, "isServerError");
  }
});

// ../../node_modules/@smithy/util-retry/dist-cjs/index.js
var require_dist_cjs36 = __commonJS({
  "../../node_modules/@smithy/util-retry/dist-cjs/index.js"(exports2, module2) {
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var src_exports = {};
    __export2(src_exports, {
      AdaptiveRetryStrategy: /* @__PURE__ */ __name(() => AdaptiveRetryStrategy, "AdaptiveRetryStrategy"),
      ConfiguredRetryStrategy: /* @__PURE__ */ __name(() => ConfiguredRetryStrategy2, "ConfiguredRetryStrategy"),
      DEFAULT_MAX_ATTEMPTS: /* @__PURE__ */ __name(() => DEFAULT_MAX_ATTEMPTS, "DEFAULT_MAX_ATTEMPTS"),
      DEFAULT_RETRY_DELAY_BASE: /* @__PURE__ */ __name(() => DEFAULT_RETRY_DELAY_BASE, "DEFAULT_RETRY_DELAY_BASE"),
      DEFAULT_RETRY_MODE: /* @__PURE__ */ __name(() => DEFAULT_RETRY_MODE3, "DEFAULT_RETRY_MODE"),
      DefaultRateLimiter: /* @__PURE__ */ __name(() => DefaultRateLimiter, "DefaultRateLimiter"),
      INITIAL_RETRY_TOKENS: /* @__PURE__ */ __name(() => INITIAL_RETRY_TOKENS, "INITIAL_RETRY_TOKENS"),
      INVOCATION_ID_HEADER: /* @__PURE__ */ __name(() => INVOCATION_ID_HEADER, "INVOCATION_ID_HEADER"),
      MAXIMUM_RETRY_DELAY: /* @__PURE__ */ __name(() => MAXIMUM_RETRY_DELAY, "MAXIMUM_RETRY_DELAY"),
      NO_RETRY_INCREMENT: /* @__PURE__ */ __name(() => NO_RETRY_INCREMENT, "NO_RETRY_INCREMENT"),
      REQUEST_HEADER: /* @__PURE__ */ __name(() => REQUEST_HEADER, "REQUEST_HEADER"),
      RETRY_COST: /* @__PURE__ */ __name(() => RETRY_COST, "RETRY_COST"),
      RETRY_MODES: /* @__PURE__ */ __name(() => RETRY_MODES, "RETRY_MODES"),
      StandardRetryStrategy: /* @__PURE__ */ __name(() => StandardRetryStrategy, "StandardRetryStrategy"),
      THROTTLING_RETRY_DELAY_BASE: /* @__PURE__ */ __name(() => THROTTLING_RETRY_DELAY_BASE, "THROTTLING_RETRY_DELAY_BASE"),
      TIMEOUT_RETRY_COST: /* @__PURE__ */ __name(() => TIMEOUT_RETRY_COST, "TIMEOUT_RETRY_COST")
    });
    module2.exports = __toCommonJS2(src_exports);
    var RETRY_MODES = /* @__PURE__ */ ((RETRY_MODES2) => {
      RETRY_MODES2["STANDARD"] = "standard";
      RETRY_MODES2["ADAPTIVE"] = "adaptive";
      return RETRY_MODES2;
    })(RETRY_MODES || {});
    var DEFAULT_MAX_ATTEMPTS = 3;
    var DEFAULT_RETRY_MODE3 = "standard";
    var import_service_error_classification = require_dist_cjs35();
    var DefaultRateLimiter = class _DefaultRateLimiter {
      static {
        __name(this, "_DefaultRateLimiter");
      }
      constructor(options) {
        this.currentCapacity = 0;
        this.enabled = false;
        this.lastMaxRate = 0;
        this.measuredTxRate = 0;
        this.requestCount = 0;
        this.lastTimestamp = 0;
        this.timeWindow = 0;
        this.beta = options?.beta ?? 0.7;
        this.minCapacity = options?.minCapacity ?? 1;
        this.minFillRate = options?.minFillRate ?? 0.5;
        this.scaleConstant = options?.scaleConstant ?? 0.4;
        this.smooth = options?.smooth ?? 0.8;
        const currentTimeInSeconds = this.getCurrentTimeInSeconds();
        this.lastThrottleTime = currentTimeInSeconds;
        this.lastTxRateBucket = Math.floor(this.getCurrentTimeInSeconds());
        this.fillRate = this.minFillRate;
        this.maxCapacity = this.minCapacity;
      }
      static {
        __name2(this, "DefaultRateLimiter");
      }
      static {
        this.setTimeoutFn = setTimeout;
      }
      getCurrentTimeInSeconds() {
        return Date.now() / 1e3;
      }
      async getSendToken() {
        return this.acquireTokenBucket(1);
      }
      async acquireTokenBucket(amount) {
        if (!this.enabled) {
          return;
        }
        this.refillTokenBucket();
        if (amount > this.currentCapacity) {
          const delay = (amount - this.currentCapacity) / this.fillRate * 1e3;
          await new Promise((resolve13) => _DefaultRateLimiter.setTimeoutFn(resolve13, delay));
        }
        this.currentCapacity = this.currentCapacity - amount;
      }
      refillTokenBucket() {
        const timestamp = this.getCurrentTimeInSeconds();
        if (!this.lastTimestamp) {
          this.lastTimestamp = timestamp;
          return;
        }
        const fillAmount = (timestamp - this.lastTimestamp) * this.fillRate;
        this.currentCapacity = Math.min(this.maxCapacity, this.currentCapacity + fillAmount);
        this.lastTimestamp = timestamp;
      }
      updateClientSendingRate(response) {
        let calculatedRate;
        this.updateMeasuredRate();
        if ((0, import_service_error_classification.isThrottlingError)(response)) {
          const rateToUse = !this.enabled ? this.measuredTxRate : Math.min(this.measuredTxRate, this.fillRate);
          this.lastMaxRate = rateToUse;
          this.calculateTimeWindow();
          this.lastThrottleTime = this.getCurrentTimeInSeconds();
          calculatedRate = this.cubicThrottle(rateToUse);
          this.enableTokenBucket();
        } else {
          this.calculateTimeWindow();
          calculatedRate = this.cubicSuccess(this.getCurrentTimeInSeconds());
        }
        const newRate = Math.min(calculatedRate, 2 * this.measuredTxRate);
        this.updateTokenBucketRate(newRate);
      }
      calculateTimeWindow() {
        this.timeWindow = this.getPrecise(Math.pow(this.lastMaxRate * (1 - this.beta) / this.scaleConstant, 1 / 3));
      }
      cubicThrottle(rateToUse) {
        return this.getPrecise(rateToUse * this.beta);
      }
      cubicSuccess(timestamp) {
        return this.getPrecise(
          this.scaleConstant * Math.pow(timestamp - this.lastThrottleTime - this.timeWindow, 3) + this.lastMaxRate
        );
      }
      enableTokenBucket() {
        this.enabled = true;
      }
      updateTokenBucketRate(newRate) {
        this.refillTokenBucket();
        this.fillRate = Math.max(newRate, this.minFillRate);
        this.maxCapacity = Math.max(newRate, this.minCapacity);
        this.currentCapacity = Math.min(this.currentCapacity, this.maxCapacity);
      }
      updateMeasuredRate() {
        const t3 = this.getCurrentTimeInSeconds();
        const timeBucket = Math.floor(t3 * 2) / 2;
        this.requestCount++;
        if (timeBucket > this.lastTxRateBucket) {
          const currentRate = this.requestCount / (timeBucket - this.lastTxRateBucket);
          this.measuredTxRate = this.getPrecise(currentRate * this.smooth + this.measuredTxRate * (1 - this.smooth));
          this.requestCount = 0;
          this.lastTxRateBucket = timeBucket;
        }
      }
      getPrecise(num) {
        return parseFloat(num.toFixed(8));
      }
    };
    var DEFAULT_RETRY_DELAY_BASE = 100;
    var MAXIMUM_RETRY_DELAY = 20 * 1e3;
    var THROTTLING_RETRY_DELAY_BASE = 500;
    var INITIAL_RETRY_TOKENS = 500;
    var RETRY_COST = 5;
    var TIMEOUT_RETRY_COST = 10;
    var NO_RETRY_INCREMENT = 1;
    var INVOCATION_ID_HEADER = "amz-sdk-invocation-id";
    var REQUEST_HEADER = "amz-sdk-request";
    var getDefaultRetryBackoffStrategy = /* @__PURE__ */ __name2(() => {
      let delayBase = DEFAULT_RETRY_DELAY_BASE;
      const computeNextBackoffDelay = /* @__PURE__ */ __name2((attempts) => {
        return Math.floor(Math.min(MAXIMUM_RETRY_DELAY, Math.random() * 2 ** attempts * delayBase));
      }, "computeNextBackoffDelay");
      const setDelayBase = /* @__PURE__ */ __name2((delay) => {
        delayBase = delay;
      }, "setDelayBase");
      return {
        computeNextBackoffDelay,
        setDelayBase
      };
    }, "getDefaultRetryBackoffStrategy");
    var createDefaultRetryToken = /* @__PURE__ */ __name2(({
      retryDelay,
      retryCount,
      retryCost
    }) => {
      const getRetryCount = /* @__PURE__ */ __name2(() => retryCount, "getRetryCount");
      const getRetryDelay = /* @__PURE__ */ __name2(() => Math.min(MAXIMUM_RETRY_DELAY, retryDelay), "getRetryDelay");
      const getRetryCost = /* @__PURE__ */ __name2(() => retryCost, "getRetryCost");
      return {
        getRetryCount,
        getRetryDelay,
        getRetryCost
      };
    }, "createDefaultRetryToken");
    var StandardRetryStrategy = class {
      static {
        __name(this, "StandardRetryStrategy");
      }
      constructor(maxAttempts) {
        this.maxAttempts = maxAttempts;
        this.mode = "standard";
        this.capacity = INITIAL_RETRY_TOKENS;
        this.retryBackoffStrategy = getDefaultRetryBackoffStrategy();
        this.maxAttemptsProvider = typeof maxAttempts === "function" ? maxAttempts : async () => maxAttempts;
      }
      static {
        __name2(this, "StandardRetryStrategy");
      }
      // eslint-disable-next-line @typescript-eslint/no-unused-vars
      async acquireInitialRetryToken(retryTokenScope) {
        return createDefaultRetryToken({
          retryDelay: DEFAULT_RETRY_DELAY_BASE,
          retryCount: 0
        });
      }
      async refreshRetryTokenForRetry(token, errorInfo) {
        const maxAttempts = await this.getMaxAttempts();
        if (this.shouldRetry(token, errorInfo, maxAttempts)) {
          const errorType = errorInfo.errorType;
          this.retryBackoffStrategy.setDelayBase(
            errorType === "THROTTLING" ? THROTTLING_RETRY_DELAY_BASE : DEFAULT_RETRY_DELAY_BASE
          );
          const delayFromErrorType = this.retryBackoffStrategy.computeNextBackoffDelay(token.getRetryCount());
          const retryDelay = errorInfo.retryAfterHint ? Math.max(errorInfo.retryAfterHint.getTime() - Date.now() || 0, delayFromErrorType) : delayFromErrorType;
          const capacityCost = this.getCapacityCost(errorType);
          this.capacity -= capacityCost;
          return createDefaultRetryToken({
            retryDelay,
            retryCount: token.getRetryCount() + 1,
            retryCost: capacityCost
          });
        }
        throw new Error("No retry token available");
      }
      recordSuccess(token) {
        this.capacity = Math.max(INITIAL_RETRY_TOKENS, this.capacity + (token.getRetryCost() ?? NO_RETRY_INCREMENT));
      }
      /**
       * @returns the current available retry capacity.
       *
       * This number decreases when retries are executed and refills when requests or retries succeed.
       */
      getCapacity() {
        return this.capacity;
      }
      async getMaxAttempts() {
        try {
          return await this.maxAttemptsProvider();
        } catch (error5) {
          console.warn(`Max attempts provider could not resolve. Using default of ${DEFAULT_MAX_ATTEMPTS}`);
          return DEFAULT_MAX_ATTEMPTS;
        }
      }
      shouldRetry(tokenToRenew, errorInfo, maxAttempts) {
        const attempts = tokenToRenew.getRetryCount() + 1;
        return attempts < maxAttempts && this.capacity >= this.getCapacityCost(errorInfo.errorType) && this.isRetryableError(errorInfo.errorType);
      }
      getCapacityCost(errorType) {
        return errorType === "TRANSIENT" ? TIMEOUT_RETRY_COST : RETRY_COST;
      }
      isRetryableError(errorType) {
        return errorType === "THROTTLING" || errorType === "TRANSIENT";
      }
    };
    var AdaptiveRetryStrategy = class {
      static {
        __name(this, "AdaptiveRetryStrategy");
      }
      constructor(maxAttemptsProvider, options) {
        this.maxAttemptsProvider = maxAttemptsProvider;
        this.mode = "adaptive";
        const { rateLimiter } = options ?? {};
        this.rateLimiter = rateLimiter ?? new DefaultRateLimiter();
        this.standardRetryStrategy = new StandardRetryStrategy(maxAttemptsProvider);
      }
      static {
        __name2(this, "AdaptiveRetryStrategy");
      }
      async acquireInitialRetryToken(retryTokenScope) {
        await this.rateLimiter.getSendToken();
        return this.standardRetryStrategy.acquireInitialRetryToken(retryTokenScope);
      }
      async refreshRetryTokenForRetry(tokenToRenew, errorInfo) {
        this.rateLimiter.updateClientSendingRate(errorInfo);
        return this.standardRetryStrategy.refreshRetryTokenForRetry(tokenToRenew, errorInfo);
      }
      recordSuccess(token) {
        this.rateLimiter.updateClientSendingRate({});
        this.standardRetryStrategy.recordSuccess(token);
      }
    };
    var ConfiguredRetryStrategy2 = class extends StandardRetryStrategy {
      static {
        __name(this, "ConfiguredRetryStrategy");
      }
      static {
        __name2(this, "ConfiguredRetryStrategy");
      }
      /**
       * @param maxAttempts - the maximum number of retry attempts allowed.
       *                      e.g., if set to 3, then 4 total requests are possible.
       * @param computeNextBackoffDelay - a millisecond delay for each retry or a function that takes the retry attempt
       *                                  and returns the delay.
       *
       * @example exponential backoff.
       * ```js
       * new Client({
       *   retryStrategy: new ConfiguredRetryStrategy(3, (attempt) => attempt ** 2)
       * });
       * ```
       * @example constant delay.
       * ```js
       * new Client({
       *   retryStrategy: new ConfiguredRetryStrategy(3, 2000)
       * });
       * ```
       */
      constructor(maxAttempts, computeNextBackoffDelay = DEFAULT_RETRY_DELAY_BASE) {
        super(typeof maxAttempts === "function" ? maxAttempts : async () => maxAttempts);
        if (typeof computeNextBackoffDelay === "number") {
          this.computeNextBackoffDelay = () => computeNextBackoffDelay;
        } else {
          this.computeNextBackoffDelay = computeNextBackoffDelay;
        }
      }
      async refreshRetryTokenForRetry(tokenToRenew, errorInfo) {
        const token = await super.refreshRetryTokenForRetry(tokenToRenew, errorInfo);
        token.getRetryDelay = () => this.computeNextBackoffDelay(token.getRetryCount());
        return token;
      }
    };
  }
});

// ../../node_modules/@smithy/middleware-retry/dist-cjs/isStreamingPayload/isStreamingPayload.js
var require_isStreamingPayload = __commonJS({
  "../../node_modules/@smithy/middleware-retry/dist-cjs/isStreamingPayload/isStreamingPayload.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.isStreamingPayload = void 0;
    var stream_1 = require("stream");
    var isStreamingPayload = /* @__PURE__ */ __name((request2) => (request2 === null || request2 === void 0 ? void 0 : request2.body) instanceof stream_1.Readable || typeof ReadableStream !== "undefined" && (request2 === null || request2 === void 0 ? void 0 : request2.body) instanceof ReadableStream, "isStreamingPayload");
    exports2.isStreamingPayload = isStreamingPayload;
  }
});

// ../../node_modules/@smithy/middleware-retry/dist-cjs/index.js
var require_dist_cjs37 = __commonJS({
  "../../node_modules/@smithy/middleware-retry/dist-cjs/index.js"(exports2, module2) {
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var src_exports = {};
    __export2(src_exports, {
      AdaptiveRetryStrategy: /* @__PURE__ */ __name(() => AdaptiveRetryStrategy, "AdaptiveRetryStrategy"),
      CONFIG_MAX_ATTEMPTS: /* @__PURE__ */ __name(() => CONFIG_MAX_ATTEMPTS, "CONFIG_MAX_ATTEMPTS"),
      CONFIG_RETRY_MODE: /* @__PURE__ */ __name(() => CONFIG_RETRY_MODE, "CONFIG_RETRY_MODE"),
      ENV_MAX_ATTEMPTS: /* @__PURE__ */ __name(() => ENV_MAX_ATTEMPTS, "ENV_MAX_ATTEMPTS"),
      ENV_RETRY_MODE: /* @__PURE__ */ __name(() => ENV_RETRY_MODE, "ENV_RETRY_MODE"),
      NODE_MAX_ATTEMPT_CONFIG_OPTIONS: /* @__PURE__ */ __name(() => NODE_MAX_ATTEMPT_CONFIG_OPTIONS3, "NODE_MAX_ATTEMPT_CONFIG_OPTIONS"),
      NODE_RETRY_MODE_CONFIG_OPTIONS: /* @__PURE__ */ __name(() => NODE_RETRY_MODE_CONFIG_OPTIONS3, "NODE_RETRY_MODE_CONFIG_OPTIONS"),
      StandardRetryStrategy: /* @__PURE__ */ __name(() => StandardRetryStrategy, "StandardRetryStrategy"),
      defaultDelayDecider: /* @__PURE__ */ __name(() => defaultDelayDecider, "defaultDelayDecider"),
      defaultRetryDecider: /* @__PURE__ */ __name(() => defaultRetryDecider, "defaultRetryDecider"),
      getOmitRetryHeadersPlugin: /* @__PURE__ */ __name(() => getOmitRetryHeadersPlugin, "getOmitRetryHeadersPlugin"),
      getRetryAfterHint: /* @__PURE__ */ __name(() => getRetryAfterHint, "getRetryAfterHint"),
      getRetryPlugin: /* @__PURE__ */ __name(() => getRetryPlugin3, "getRetryPlugin"),
      omitRetryHeadersMiddleware: /* @__PURE__ */ __name(() => omitRetryHeadersMiddleware, "omitRetryHeadersMiddleware"),
      omitRetryHeadersMiddlewareOptions: /* @__PURE__ */ __name(() => omitRetryHeadersMiddlewareOptions, "omitRetryHeadersMiddlewareOptions"),
      resolveRetryConfig: /* @__PURE__ */ __name(() => resolveRetryConfig3, "resolveRetryConfig"),
      retryMiddleware: /* @__PURE__ */ __name(() => retryMiddleware, "retryMiddleware"),
      retryMiddlewareOptions: /* @__PURE__ */ __name(() => retryMiddlewareOptions, "retryMiddlewareOptions")
    });
    module2.exports = __toCommonJS2(src_exports);
    var import_protocol_http16 = require_dist_cjs2();
    var import_uuid2 = (init_esm_node(), __toCommonJS(esm_node_exports));
    var import_util_retry4 = require_dist_cjs36();
    var getDefaultRetryQuota = /* @__PURE__ */ __name2((initialRetryTokens, options) => {
      const MAX_CAPACITY = initialRetryTokens;
      const noRetryIncrement = options?.noRetryIncrement ?? import_util_retry4.NO_RETRY_INCREMENT;
      const retryCost = options?.retryCost ?? import_util_retry4.RETRY_COST;
      const timeoutRetryCost = options?.timeoutRetryCost ?? import_util_retry4.TIMEOUT_RETRY_COST;
      let availableCapacity = initialRetryTokens;
      const getCapacityAmount = /* @__PURE__ */ __name2((error5) => error5.name === "TimeoutError" ? timeoutRetryCost : retryCost, "getCapacityAmount");
      const hasRetryTokens = /* @__PURE__ */ __name2((error5) => getCapacityAmount(error5) <= availableCapacity, "hasRetryTokens");
      const retrieveRetryTokens = /* @__PURE__ */ __name2((error5) => {
        if (!hasRetryTokens(error5)) {
          throw new Error("No retry token available");
        }
        const capacityAmount = getCapacityAmount(error5);
        availableCapacity -= capacityAmount;
        return capacityAmount;
      }, "retrieveRetryTokens");
      const releaseRetryTokens = /* @__PURE__ */ __name2((capacityReleaseAmount) => {
        availableCapacity += capacityReleaseAmount ?? noRetryIncrement;
        availableCapacity = Math.min(availableCapacity, MAX_CAPACITY);
      }, "releaseRetryTokens");
      return Object.freeze({
        hasRetryTokens,
        retrieveRetryTokens,
        releaseRetryTokens
      });
    }, "getDefaultRetryQuota");
    var defaultDelayDecider = /* @__PURE__ */ __name2((delayBase, attempts) => Math.floor(Math.min(import_util_retry4.MAXIMUM_RETRY_DELAY, Math.random() * 2 ** attempts * delayBase)), "defaultDelayDecider");
    var import_service_error_classification = require_dist_cjs35();
    var defaultRetryDecider = /* @__PURE__ */ __name2((error5) => {
      if (!error5) {
        return false;
      }
      return (0, import_service_error_classification.isRetryableByTrait)(error5) || (0, import_service_error_classification.isClockSkewError)(error5) || (0, import_service_error_classification.isThrottlingError)(error5) || (0, import_service_error_classification.isTransientError)(error5);
    }, "defaultRetryDecider");
    var asSdkError = /* @__PURE__ */ __name2((error5) => {
      if (error5 instanceof Error)
        return error5;
      if (error5 instanceof Object)
        return Object.assign(new Error(), error5);
      if (typeof error5 === "string")
        return new Error(error5);
      return new Error(`AWS SDK error wrapper for ${error5}`);
    }, "asSdkError");
    var StandardRetryStrategy = class {
      static {
        __name(this, "StandardRetryStrategy");
      }
      constructor(maxAttemptsProvider, options) {
        this.maxAttemptsProvider = maxAttemptsProvider;
        this.mode = import_util_retry4.RETRY_MODES.STANDARD;
        this.retryDecider = options?.retryDecider ?? defaultRetryDecider;
        this.delayDecider = options?.delayDecider ?? defaultDelayDecider;
        this.retryQuota = options?.retryQuota ?? getDefaultRetryQuota(import_util_retry4.INITIAL_RETRY_TOKENS);
      }
      static {
        __name2(this, "StandardRetryStrategy");
      }
      shouldRetry(error5, attempts, maxAttempts) {
        return attempts < maxAttempts && this.retryDecider(error5) && this.retryQuota.hasRetryTokens(error5);
      }
      async getMaxAttempts() {
        let maxAttempts;
        try {
          maxAttempts = await this.maxAttemptsProvider();
        } catch (error5) {
          maxAttempts = import_util_retry4.DEFAULT_MAX_ATTEMPTS;
        }
        return maxAttempts;
      }
      async retry(next, args, options) {
        let retryTokenAmount;
        let attempts = 0;
        let totalDelay = 0;
        const maxAttempts = await this.getMaxAttempts();
        const { request: request2 } = args;
        if (import_protocol_http16.HttpRequest.isInstance(request2)) {
          request2.headers[import_util_retry4.INVOCATION_ID_HEADER] = (0, import_uuid2.v4)();
        }
        while (true) {
          try {
            if (import_protocol_http16.HttpRequest.isInstance(request2)) {
              request2.headers[import_util_retry4.REQUEST_HEADER] = `attempt=${attempts + 1}; max=${maxAttempts}`;
            }
            if (options?.beforeRequest) {
              await options.beforeRequest();
            }
            const { response, output } = await next(args);
            if (options?.afterRequest) {
              options.afterRequest(response);
            }
            this.retryQuota.releaseRetryTokens(retryTokenAmount);
            output.$metadata.attempts = attempts + 1;
            output.$metadata.totalRetryDelay = totalDelay;
            return { response, output };
          } catch (e3) {
            const err = asSdkError(e3);
            attempts++;
            if (this.shouldRetry(err, attempts, maxAttempts)) {
              retryTokenAmount = this.retryQuota.retrieveRetryTokens(err);
              const delayFromDecider = this.delayDecider(
                (0, import_service_error_classification.isThrottlingError)(err) ? import_util_retry4.THROTTLING_RETRY_DELAY_BASE : import_util_retry4.DEFAULT_RETRY_DELAY_BASE,
                attempts
              );
              const delayFromResponse = getDelayFromRetryAfterHeader(err.$response);
              const delay = Math.max(delayFromResponse || 0, delayFromDecider);
              totalDelay += delay;
              await new Promise((resolve13) => setTimeout(resolve13, delay));
              continue;
            }
            if (!err.$metadata) {
              err.$metadata = {};
            }
            err.$metadata.attempts = attempts;
            err.$metadata.totalRetryDelay = totalDelay;
            throw err;
          }
        }
      }
    };
    var getDelayFromRetryAfterHeader = /* @__PURE__ */ __name2((response) => {
      if (!import_protocol_http16.HttpResponse.isInstance(response))
        return;
      const retryAfterHeaderName = Object.keys(response.headers).find((key) => key.toLowerCase() === "retry-after");
      if (!retryAfterHeaderName)
        return;
      const retryAfter = response.headers[retryAfterHeaderName];
      const retryAfterSeconds = Number(retryAfter);
      if (!Number.isNaN(retryAfterSeconds))
        return retryAfterSeconds * 1e3;
      const retryAfterDate = new Date(retryAfter);
      return retryAfterDate.getTime() - Date.now();
    }, "getDelayFromRetryAfterHeader");
    var AdaptiveRetryStrategy = class extends StandardRetryStrategy {
      static {
        __name(this, "AdaptiveRetryStrategy");
      }
      static {
        __name2(this, "AdaptiveRetryStrategy");
      }
      constructor(maxAttemptsProvider, options) {
        const { rateLimiter, ...superOptions } = options ?? {};
        super(maxAttemptsProvider, superOptions);
        this.rateLimiter = rateLimiter ?? new import_util_retry4.DefaultRateLimiter();
        this.mode = import_util_retry4.RETRY_MODES.ADAPTIVE;
      }
      async retry(next, args) {
        return super.retry(next, args, {
          beforeRequest: /* @__PURE__ */ __name(async () => {
            return this.rateLimiter.getSendToken();
          }, "beforeRequest"),
          afterRequest: /* @__PURE__ */ __name((response) => {
            this.rateLimiter.updateClientSendingRate(response);
          }, "afterRequest")
        });
      }
    };
    var import_util_middleware8 = require_dist_cjs6();
    var ENV_MAX_ATTEMPTS = "AWS_MAX_ATTEMPTS";
    var CONFIG_MAX_ATTEMPTS = "max_attempts";
    var NODE_MAX_ATTEMPT_CONFIG_OPTIONS3 = {
      environmentVariableSelector: /* @__PURE__ */ __name((env2) => {
        const value = env2[ENV_MAX_ATTEMPTS];
        if (!value)
          return void 0;
        const maxAttempt = parseInt(value);
        if (Number.isNaN(maxAttempt)) {
          throw new Error(`Environment variable ${ENV_MAX_ATTEMPTS} mast be a number, got "${value}"`);
        }
        return maxAttempt;
      }, "environmentVariableSelector"),
      configFileSelector: /* @__PURE__ */ __name((profile) => {
        const value = profile[CONFIG_MAX_ATTEMPTS];
        if (!value)
          return void 0;
        const maxAttempt = parseInt(value);
        if (Number.isNaN(maxAttempt)) {
          throw new Error(`Shared config file entry ${CONFIG_MAX_ATTEMPTS} mast be a number, got "${value}"`);
        }
        return maxAttempt;
      }, "configFileSelector"),
      default: import_util_retry4.DEFAULT_MAX_ATTEMPTS
    };
    var resolveRetryConfig3 = /* @__PURE__ */ __name2((input) => {
      const { retryStrategy, retryMode: _retryMode, maxAttempts: _maxAttempts } = input;
      const maxAttempts = (0, import_util_middleware8.normalizeProvider)(_maxAttempts ?? import_util_retry4.DEFAULT_MAX_ATTEMPTS);
      return Object.assign(input, {
        maxAttempts,
        retryStrategy: /* @__PURE__ */ __name(async () => {
          if (retryStrategy) {
            return retryStrategy;
          }
          const retryMode = await (0, import_util_middleware8.normalizeProvider)(_retryMode)();
          if (retryMode === import_util_retry4.RETRY_MODES.ADAPTIVE) {
            return new import_util_retry4.AdaptiveRetryStrategy(maxAttempts);
          }
          return new import_util_retry4.StandardRetryStrategy(maxAttempts);
        }, "retryStrategy")
      });
    }, "resolveRetryConfig");
    var ENV_RETRY_MODE = "AWS_RETRY_MODE";
    var CONFIG_RETRY_MODE = "retry_mode";
    var NODE_RETRY_MODE_CONFIG_OPTIONS3 = {
      environmentVariableSelector: /* @__PURE__ */ __name((env2) => env2[ENV_RETRY_MODE], "environmentVariableSelector"),
      configFileSelector: /* @__PURE__ */ __name((profile) => profile[CONFIG_RETRY_MODE], "configFileSelector"),
      default: import_util_retry4.DEFAULT_RETRY_MODE
    };
    var omitRetryHeadersMiddleware = /* @__PURE__ */ __name2(() => (next) => async (args) => {
      const { request: request2 } = args;
      if (import_protocol_http16.HttpRequest.isInstance(request2)) {
        delete request2.headers[import_util_retry4.INVOCATION_ID_HEADER];
        delete request2.headers[import_util_retry4.REQUEST_HEADER];
      }
      return next(args);
    }, "omitRetryHeadersMiddleware");
    var omitRetryHeadersMiddlewareOptions = {
      name: "omitRetryHeadersMiddleware",
      tags: ["RETRY", "HEADERS", "OMIT_RETRY_HEADERS"],
      relation: "before",
      toMiddleware: "awsAuthMiddleware",
      override: true
    };
    var getOmitRetryHeadersPlugin = /* @__PURE__ */ __name2((options) => ({
      applyToStack: /* @__PURE__ */ __name((clientStack) => {
        clientStack.addRelativeTo(omitRetryHeadersMiddleware(), omitRetryHeadersMiddlewareOptions);
      }, "applyToStack")
    }), "getOmitRetryHeadersPlugin");
    var import_smithy_client28 = require_dist_cjs26();
    var import_isStreamingPayload = require_isStreamingPayload();
    var retryMiddleware = /* @__PURE__ */ __name2((options) => (next, context) => async (args) => {
      let retryStrategy = await options.retryStrategy();
      const maxAttempts = await options.maxAttempts();
      if (isRetryStrategyV2(retryStrategy)) {
        retryStrategy = retryStrategy;
        let retryToken = await retryStrategy.acquireInitialRetryToken(context["partition_id"]);
        let lastError = new Error();
        let attempts = 0;
        let totalRetryDelay = 0;
        const { request: request2 } = args;
        const isRequest = import_protocol_http16.HttpRequest.isInstance(request2);
        if (isRequest) {
          request2.headers[import_util_retry4.INVOCATION_ID_HEADER] = (0, import_uuid2.v4)();
        }
        while (true) {
          try {
            if (isRequest) {
              request2.headers[import_util_retry4.REQUEST_HEADER] = `attempt=${attempts + 1}; max=${maxAttempts}`;
            }
            const { response, output } = await next(args);
            retryStrategy.recordSuccess(retryToken);
            output.$metadata.attempts = attempts + 1;
            output.$metadata.totalRetryDelay = totalRetryDelay;
            return { response, output };
          } catch (e3) {
            const retryErrorInfo = getRetryErrorInfo(e3);
            lastError = asSdkError(e3);
            if (isRequest && (0, import_isStreamingPayload.isStreamingPayload)(request2)) {
              (context.logger instanceof import_smithy_client28.NoOpLogger ? console : context.logger)?.warn(
                "An error was encountered in a non-retryable streaming request."
              );
              throw lastError;
            }
            try {
              retryToken = await retryStrategy.refreshRetryTokenForRetry(retryToken, retryErrorInfo);
            } catch (refreshError) {
              if (!lastError.$metadata) {
                lastError.$metadata = {};
              }
              lastError.$metadata.attempts = attempts + 1;
              lastError.$metadata.totalRetryDelay = totalRetryDelay;
              throw lastError;
            }
            attempts = retryToken.getRetryCount();
            const delay = retryToken.getRetryDelay();
            totalRetryDelay += delay;
            await new Promise((resolve13) => setTimeout(resolve13, delay));
          }
        }
      } else {
        retryStrategy = retryStrategy;
        if (retryStrategy?.mode)
          context.userAgent = [...context.userAgent || [], ["cfg/retry-mode", retryStrategy.mode]];
        return retryStrategy.retry(next, args);
      }
    }, "retryMiddleware");
    var isRetryStrategyV2 = /* @__PURE__ */ __name2((retryStrategy) => typeof retryStrategy.acquireInitialRetryToken !== "undefined" && typeof retryStrategy.refreshRetryTokenForRetry !== "undefined" && typeof retryStrategy.recordSuccess !== "undefined", "isRetryStrategyV2");
    var getRetryErrorInfo = /* @__PURE__ */ __name2((error5) => {
      const errorInfo = {
        error: error5,
        errorType: getRetryErrorType(error5)
      };
      const retryAfterHint = getRetryAfterHint(error5.$response);
      if (retryAfterHint) {
        errorInfo.retryAfterHint = retryAfterHint;
      }
      return errorInfo;
    }, "getRetryErrorInfo");
    var getRetryErrorType = /* @__PURE__ */ __name2((error5) => {
      if ((0, import_service_error_classification.isThrottlingError)(error5))
        return "THROTTLING";
      if ((0, import_service_error_classification.isTransientError)(error5))
        return "TRANSIENT";
      if ((0, import_service_error_classification.isServerError)(error5))
        return "SERVER_ERROR";
      return "CLIENT_ERROR";
    }, "getRetryErrorType");
    var retryMiddlewareOptions = {
      name: "retryMiddleware",
      tags: ["RETRY"],
      step: "finalizeRequest",
      priority: "high",
      override: true
    };
    var getRetryPlugin3 = /* @__PURE__ */ __name2((options) => ({
      applyToStack: /* @__PURE__ */ __name((clientStack) => {
        clientStack.add(retryMiddleware(options), retryMiddlewareOptions);
      }, "applyToStack")
    }), "getRetryPlugin");
    var getRetryAfterHint = /* @__PURE__ */ __name2((response) => {
      if (!import_protocol_http16.HttpResponse.isInstance(response))
        return;
      const retryAfterHeaderName = Object.keys(response.headers).find((key) => key.toLowerCase() === "retry-after");
      if (!retryAfterHeaderName)
        return;
      const retryAfter = response.headers[retryAfterHeaderName];
      const retryAfterSeconds = Number(retryAfter);
      if (!Number.isNaN(retryAfterSeconds))
        return new Date(retryAfterSeconds * 1e3);
      const retryAfterDate = new Date(retryAfter);
      return retryAfterDate;
    }, "getRetryAfterHint");
  }
});

// ../../node_modules/@aws-sdk/client-ecr/dist-cjs/auth/httpAuthSchemeProvider.js
var require_httpAuthSchemeProvider = __commonJS({
  "../../node_modules/@aws-sdk/client-ecr/dist-cjs/auth/httpAuthSchemeProvider.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.resolveHttpAuthSchemeConfig = exports2.defaultECRHttpAuthSchemeProvider = exports2.defaultECRHttpAuthSchemeParametersProvider = void 0;
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var util_middleware_1 = require_dist_cjs6();
    var defaultECRHttpAuthSchemeParametersProvider = /* @__PURE__ */ __name(async (config, context, input) => {
      return {
        operation: (0, util_middleware_1.getSmithyContext)(context).operation,
        region: await (0, util_middleware_1.normalizeProvider)(config.region)() || (() => {
          throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
        })()
      };
    }, "defaultECRHttpAuthSchemeParametersProvider");
    exports2.defaultECRHttpAuthSchemeParametersProvider = defaultECRHttpAuthSchemeParametersProvider;
    function createAwsAuthSigv4HttpAuthOption3(authParameters) {
      return {
        schemeId: "aws.auth#sigv4",
        signingProperties: {
          name: "ecr",
          region: authParameters.region
        },
        propertiesExtractor: /* @__PURE__ */ __name((config, context) => ({
          signingProperties: {
            config,
            context
          }
        }), "propertiesExtractor")
      };
    }
    __name(createAwsAuthSigv4HttpAuthOption3, "createAwsAuthSigv4HttpAuthOption");
    var defaultECRHttpAuthSchemeProvider = /* @__PURE__ */ __name((authParameters) => {
      const options = [];
      switch (authParameters.operation) {
        default: {
          options.push(createAwsAuthSigv4HttpAuthOption3(authParameters));
        }
      }
      return options;
    }, "defaultECRHttpAuthSchemeProvider");
    exports2.defaultECRHttpAuthSchemeProvider = defaultECRHttpAuthSchemeProvider;
    var resolveHttpAuthSchemeConfig3 = /* @__PURE__ */ __name((config) => {
      const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
      return Object.assign(config_0, {
        authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? [])
      });
    }, "resolveHttpAuthSchemeConfig");
    exports2.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig3;
  }
});

// ../../node_modules/tslib/tslib.es6.mjs
var tslib_es6_exports = {};
__export(tslib_es6_exports, {
  __addDisposableResource: () => __addDisposableResource,
  __assign: () => __assign,
  __asyncDelegator: () => __asyncDelegator,
  __asyncGenerator: () => __asyncGenerator,
  __asyncValues: () => __asyncValues,
  __await: () => __await,
  __awaiter: () => __awaiter,
  __classPrivateFieldGet: () => __classPrivateFieldGet,
  __classPrivateFieldIn: () => __classPrivateFieldIn,
  __classPrivateFieldSet: () => __classPrivateFieldSet,
  __createBinding: () => __createBinding,
  __decorate: () => __decorate,
  __disposeResources: () => __disposeResources,
  __esDecorate: () => __esDecorate,
  __exportStar: () => __exportStar,
  __extends: () => __extends,
  __generator: () => __generator,
  __importDefault: () => __importDefault,
  __importStar: () => __importStar,
  __makeTemplateObject: () => __makeTemplateObject,
  __metadata: () => __metadata,
  __param: () => __param,
  __propKey: () => __propKey,
  __read: () => __read,
  __rest: () => __rest,
  __rewriteRelativeImportExtension: () => __rewriteRelativeImportExtension,
  __runInitializers: () => __runInitializers,
  __setFunctionName: () => __setFunctionName,
  __spread: () => __spread,
  __spreadArray: () => __spreadArray,
  __spreadArrays: () => __spreadArrays,
  __values: () => __values,
  default: () => tslib_es6_default
});
function __extends(d3, b3) {
  if (typeof b3 !== "function" && b3 !== null)
    throw new TypeError("Class extends value " + String(b3) + " is not a constructor or null");
  extendStatics(d3, b3);
  function __() {
    this.constructor = d3;
  }
  __name(__, "__");
  d3.prototype = b3 === null ? Object.create(b3) : (__.prototype = b3.prototype, new __());
}
function __rest(s3, e3) {
  var t3 = {};
  for (var p3 in s3) if (Object.prototype.hasOwnProperty.call(s3, p3) && e3.indexOf(p3) < 0)
    t3[p3] = s3[p3];
  if (s3 != null && typeof Object.getOwnPropertySymbols === "function")
    for (var i3 = 0, p3 = Object.getOwnPropertySymbols(s3); i3 < p3.length; i3++) {
      if (e3.indexOf(p3[i3]) < 0 && Object.prototype.propertyIsEnumerable.call(s3, p3[i3]))
        t3[p3[i3]] = s3[p3[i3]];
    }
  return t3;
}
function __decorate(decorators, target, key, desc) {
  var c3 = arguments.length, r3 = c3 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d3;
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r3 = Reflect.decorate(decorators, target, key, desc);
  else for (var i3 = decorators.length - 1; i3 >= 0; i3--) if (d3 = decorators[i3]) r3 = (c3 < 3 ? d3(r3) : c3 > 3 ? d3(target, key, r3) : d3(target, key)) || r3;
  return c3 > 3 && r3 && Object.defineProperty(target, key, r3), r3;
}
function __param(paramIndex, decorator) {
  return function(target, key) {
    decorator(target, key, paramIndex);
  };
}
function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
  function accept(f3) {
    if (f3 !== void 0 && typeof f3 !== "function") throw new TypeError("Function expected");
    return f3;
  }
  __name(accept, "accept");
  var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
  var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
  var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
  var _3, done = false;
  for (var i3 = decorators.length - 1; i3 >= 0; i3--) {
    var context = {};
    for (var p3 in contextIn) context[p3] = p3 === "access" ? {} : contextIn[p3];
    for (var p3 in contextIn.access) context.access[p3] = contextIn.access[p3];
    context.addInitializer = function(f3) {
      if (done) throw new TypeError("Cannot add initializers after decoration has completed");
      extraInitializers.push(accept(f3 || null));
    };
    var result2 = (0, decorators[i3])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
    if (kind === "accessor") {
      if (result2 === void 0) continue;
      if (result2 === null || typeof result2 !== "object") throw new TypeError("Object expected");
      if (_3 = accept(result2.get)) descriptor.get = _3;
      if (_3 = accept(result2.set)) descriptor.set = _3;
      if (_3 = accept(result2.init)) initializers.unshift(_3);
    } else if (_3 = accept(result2)) {
      if (kind === "field") initializers.unshift(_3);
      else descriptor[key] = _3;
    }
  }
  if (target) Object.defineProperty(target, contextIn.name, descriptor);
  done = true;
}
function __runInitializers(thisArg, initializers, value) {
  var useValue = arguments.length > 2;
  for (var i3 = 0; i3 < initializers.length; i3++) {
    value = useValue ? initializers[i3].call(thisArg, value) : initializers[i3].call(thisArg);
  }
  return useValue ? value : void 0;
}
function __propKey(x3) {
  return typeof x3 === "symbol" ? x3 : "".concat(x3);
}
function __setFunctionName(f3, name, prefix2) {
  if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
  return Object.defineProperty(f3, "name", { configurable: true, value: prefix2 ? "".concat(prefix2, " ", name) : name });
}
function __metadata(metadataKey, metadataValue) {
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
}
function __awaiter(thisArg, _arguments, P, generator) {
  function adopt(value) {
    return value instanceof P ? value : new P(function(resolve13) {
      resolve13(value);
    });
  }
  __name(adopt, "adopt");
  return new (P || (P = Promise))(function(resolve13, reject) {
    function fulfilled(value) {
      try {
        step(generator.next(value));
      } catch (e3) {
        reject(e3);
      }
    }
    __name(fulfilled, "fulfilled");
    function rejected(value) {
      try {
        step(generator["throw"](value));
      } catch (e3) {
        reject(e3);
      }
    }
    __name(rejected, "rejected");
    function step(result2) {
      result2.done ? resolve13(result2.value) : adopt(result2.value).then(fulfilled, rejected);
    }
    __name(step, "step");
    step((generator = generator.apply(thisArg, _arguments || [])).next());
  });
}
function __generator(thisArg, body) {
  var _3 = { label: 0, sent: /* @__PURE__ */ __name(function() {
    if (t3[0] & 1) throw t3[1];
    return t3[1];
  }, "sent"), trys: [], ops: [] }, f3, y2, t3, g3 = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
  return g3.next = verb(0), g3["throw"] = verb(1), g3["return"] = verb(2), typeof Symbol === "function" && (g3[Symbol.iterator] = function() {
    return this;
  }), g3;
  function verb(n3) {
    return function(v6) {
      return step([n3, v6]);
    };
  }
  __name(verb, "verb");
  function step(op2) {
    if (f3) throw new TypeError("Generator is already executing.");
    while (g3 && (g3 = 0, op2[0] && (_3 = 0)), _3) try {
      if (f3 = 1, y2 && (t3 = op2[0] & 2 ? y2["return"] : op2[0] ? y2["throw"] || ((t3 = y2["return"]) && t3.call(y2), 0) : y2.next) && !(t3 = t3.call(y2, op2[1])).done) return t3;
      if (y2 = 0, t3) op2 = [op2[0] & 2, t3.value];
      switch (op2[0]) {
        case 0:
        case 1:
          t3 = op2;
          break;
        case 4:
          _3.label++;
          return { value: op2[1], done: false };
        case 5:
          _3.label++;
          y2 = op2[1];
          op2 = [0];
          continue;
        case 7:
          op2 = _3.ops.pop();
          _3.trys.pop();
          continue;
        default:
          if (!(t3 = _3.trys, t3 = t3.length > 0 && t3[t3.length - 1]) && (op2[0] === 6 || op2[0] === 2)) {
            _3 = 0;
            continue;
          }
          if (op2[0] === 3 && (!t3 || op2[1] > t3[0] && op2[1] < t3[3])) {
            _3.label = op2[1];
            break;
          }
          if (op2[0] === 6 && _3.label < t3[1]) {
            _3.label = t3[1];
            t3 = op2;
            break;
          }
          if (t3 && _3.label < t3[2]) {
            _3.label = t3[2];
            _3.ops.push(op2);
            break;
          }
          if (t3[2]) _3.ops.pop();
          _3.trys.pop();
          continue;
      }
      op2 = body.call(thisArg, _3);
    } catch (e3) {
      op2 = [6, e3];
      y2 = 0;
    } finally {
      f3 = t3 = 0;
    }
    if (op2[0] & 5) throw op2[1];
    return { value: op2[0] ? op2[1] : void 0, done: true };
  }
  __name(step, "step");
}
function __exportStar(m3, o3) {
  for (var p3 in m3) if (p3 !== "default" && !Object.prototype.hasOwnProperty.call(o3, p3)) __createBinding(o3, m3, p3);
}
function __values(o3) {
  var s3 = typeof Symbol === "function" && Symbol.iterator, m3 = s3 && o3[s3], i3 = 0;
  if (m3) return m3.call(o3);
  if (o3 && typeof o3.length === "number") return {
    next: /* @__PURE__ */ __name(function() {
      if (o3 && i3 >= o3.length) o3 = void 0;
      return { value: o3 && o3[i3++], done: !o3 };
    }, "next")
  };
  throw new TypeError(s3 ? "Object is not iterable." : "Symbol.iterator is not defined.");
}
function __read(o3, n3) {
  var m3 = typeof Symbol === "function" && o3[Symbol.iterator];
  if (!m3) return o3;
  var i3 = m3.call(o3), r3, ar = [], e3;
  try {
    while ((n3 === void 0 || n3-- > 0) && !(r3 = i3.next()).done) ar.push(r3.value);
  } catch (error5) {
    e3 = { error: error5 };
  } finally {
    try {
      if (r3 && !r3.done && (m3 = i3["return"])) m3.call(i3);
    } finally {
      if (e3) throw e3.error;
    }
  }
  return ar;
}
function __spread() {
  for (var ar = [], i3 = 0; i3 < arguments.length; i3++)
    ar = ar.concat(__read(arguments[i3]));
  return ar;
}
function __spreadArrays() {
  for (var s3 = 0, i3 = 0, il = arguments.length; i3 < il; i3++) s3 += arguments[i3].length;
  for (var r3 = Array(s3), k3 = 0, i3 = 0; i3 < il; i3++)
    for (var a3 = arguments[i3], j3 = 0, jl = a3.length; j3 < jl; j3++, k3++)
      r3[k3] = a3[j3];
  return r3;
}
function __spreadArray(to, from, pack) {
  if (pack || arguments.length === 2) for (var i3 = 0, l3 = from.length, ar; i3 < l3; i3++) {
    if (ar || !(i3 in from)) {
      if (!ar) ar = Array.prototype.slice.call(from, 0, i3);
      ar[i3] = from[i3];
    }
  }
  return to.concat(ar || Array.prototype.slice.call(from));
}
function __await(v6) {
  return this instanceof __await ? (this.v = v6, this) : new __await(v6);
}
function __asyncGenerator(thisArg, _arguments, generator) {
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
  var g3 = generator.apply(thisArg, _arguments || []), i3, q3 = [];
  return i3 = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i3[Symbol.asyncIterator] = function() {
    return this;
  }, i3;
  function awaitReturn(f3) {
    return function(v6) {
      return Promise.resolve(v6).then(f3, reject);
    };
  }
  __name(awaitReturn, "awaitReturn");
  function verb(n3, f3) {
    if (g3[n3]) {
      i3[n3] = function(v6) {
        return new Promise(function(a3, b3) {
          q3.push([n3, v6, a3, b3]) > 1 || resume(n3, v6);
        });
      };
      if (f3) i3[n3] = f3(i3[n3]);
    }
  }
  __name(verb, "verb");
  function resume(n3, v6) {
    try {
      step(g3[n3](v6));
    } catch (e3) {
      settle(q3[0][3], e3);
    }
  }
  __name(resume, "resume");
  function step(r3) {
    r3.value instanceof __await ? Promise.resolve(r3.value.v).then(fulfill, reject) : settle(q3[0][2], r3);
  }
  __name(step, "step");
  function fulfill(value) {
    resume("next", value);
  }
  __name(fulfill, "fulfill");
  function reject(value) {
    resume("throw", value);
  }
  __name(reject, "reject");
  function settle(f3, v6) {
    if (f3(v6), q3.shift(), q3.length) resume(q3[0][0], q3[0][1]);
  }
  __name(settle, "settle");
}
function __asyncDelegator(o3) {
  var i3, p3;
  return i3 = {}, verb("next"), verb("throw", function(e3) {
    throw e3;
  }), verb("return"), i3[Symbol.iterator] = function() {
    return this;
  }, i3;
  function verb(n3, f3) {
    i3[n3] = o3[n3] ? function(v6) {
      return (p3 = !p3) ? { value: __await(o3[n3](v6)), done: false } : f3 ? f3(v6) : v6;
    } : f3;
  }
  __name(verb, "verb");
}
function __asyncValues(o3) {
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
  var m3 = o3[Symbol.asyncIterator], i3;
  return m3 ? m3.call(o3) : (o3 = typeof __values === "function" ? __values(o3) : o3[Symbol.iterator](), i3 = {}, verb("next"), verb("throw"), verb("return"), i3[Symbol.asyncIterator] = function() {
    return this;
  }, i3);
  function verb(n3) {
    i3[n3] = o3[n3] && function(v6) {
      return new Promise(function(resolve13, reject) {
        v6 = o3[n3](v6), settle(resolve13, reject, v6.done, v6.value);
      });
    };
  }
  __name(verb, "verb");
  function settle(resolve13, reject, d3, v6) {
    Promise.resolve(v6).then(function(v7) {
      resolve13({ value: v7, done: d3 });
    }, reject);
  }
  __name(settle, "settle");
}
function __makeTemplateObject(cooked, raw) {
  if (Object.defineProperty) {
    Object.defineProperty(cooked, "raw", { value: raw });
  } else {
    cooked.raw = raw;
  }
  return cooked;
}
function __importStar(mod) {
  if (mod && mod.__esModule) return mod;
  var result2 = {};
  if (mod != null) {
    for (var k3 = ownKeys(mod), i3 = 0; i3 < k3.length; i3++) if (k3[i3] !== "default") __createBinding(result2, mod, k3[i3]);
  }
  __setModuleDefault(result2, mod);
  return result2;
}
function __importDefault(mod) {
  return mod && mod.__esModule ? mod : { default: mod };
}
function __classPrivateFieldGet(receiver, state2, kind, f3) {
  if (kind === "a" && !f3) throw new TypeError("Private accessor was defined without a getter");
  if (typeof state2 === "function" ? receiver !== state2 || !f3 : !state2.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
  return kind === "m" ? f3 : kind === "a" ? f3.call(receiver) : f3 ? f3.value : state2.get(receiver);
}
function __classPrivateFieldSet(receiver, state2, value, kind, f3) {
  if (kind === "m") throw new TypeError("Private method is not writable");
  if (kind === "a" && !f3) throw new TypeError("Private accessor was defined without a setter");
  if (typeof state2 === "function" ? receiver !== state2 || !f3 : !state2.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
  return kind === "a" ? f3.call(receiver, value) : f3 ? f3.value = value : state2.set(receiver, value), value;
}
function __classPrivateFieldIn(state2, receiver) {
  if (receiver === null || typeof receiver !== "object" && typeof receiver !== "function") throw new TypeError("Cannot use 'in' operator on non-object");
  return typeof state2 === "function" ? receiver === state2 : state2.has(receiver);
}
function __addDisposableResource(env2, value, async) {
  if (value !== null && value !== void 0) {
    if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
    var dispose, inner;
    if (async) {
      if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
      dispose = value[Symbol.asyncDispose];
    }
    if (dispose === void 0) {
      if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
      dispose = value[Symbol.dispose];
      if (async) inner = dispose;
    }
    if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
    if (inner) dispose = /* @__PURE__ */ __name(function() {
      try {
        inner.call(this);
      } catch (e3) {
        return Promise.reject(e3);
      }
    }, "dispose");
    env2.stack.push({ value, dispose, async });
  } else if (async) {
    env2.stack.push({ async: true });
  }
  return value;
}
function __disposeResources(env2) {
  function fail(e3) {
    env2.error = env2.hasError ? new _SuppressedError(e3, env2.error, "An error was suppressed during disposal.") : e3;
    env2.hasError = true;
  }
  __name(fail, "fail");
  var r3, s3 = 0;
  function next() {
    while (r3 = env2.stack.pop()) {
      try {
        if (!r3.async && s3 === 1) return s3 = 0, env2.stack.push(r3), Promise.resolve().then(next);
        if (r3.dispose) {
          var result2 = r3.dispose.call(r3.value);
          if (r3.async) return s3 |= 2, Promise.resolve(result2).then(next, function(e3) {
            fail(e3);
            return next();
          });
        } else s3 |= 1;
      } catch (e3) {
        fail(e3);
      }
    }
    if (s3 === 1) return env2.hasError ? Promise.reject(env2.error) : Promise.resolve();
    if (env2.hasError) throw env2.error;
  }
  __name(next, "next");
  return next();
}
function __rewriteRelativeImportExtension(path38, preserveJsx) {
  if (typeof path38 === "string" && /^\.\.?\//.test(path38)) {
    return path38.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(m3, tsx, d3, ext4, cm) {
      return tsx ? preserveJsx ? ".jsx" : ".js" : d3 && (!ext4 || !cm) ? m3 : d3 + ext4 + "." + cm.toLowerCase() + "js";
    });
  }
  return path38;
}
var extendStatics, __assign, __createBinding, __setModuleDefault, ownKeys, _SuppressedError, tslib_es6_default;
var init_tslib_es6 = __esm({
  "../../node_modules/tslib/tslib.es6.mjs"() {
    extendStatics = /* @__PURE__ */ __name(function(d3, b3) {
      extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d4, b4) {
        d4.__proto__ = b4;
      } || function(d4, b4) {
        for (var p3 in b4) if (Object.prototype.hasOwnProperty.call(b4, p3)) d4[p3] = b4[p3];
      };
      return extendStatics(d3, b3);
    }, "extendStatics");
    __name(__extends, "__extends");
    __assign = /* @__PURE__ */ __name(function() {
      __assign = Object.assign || /* @__PURE__ */ __name(function __assign2(t3) {
        for (var s3, i3 = 1, n3 = arguments.length; i3 < n3; i3++) {
          s3 = arguments[i3];
          for (var p3 in s3) if (Object.prototype.hasOwnProperty.call(s3, p3)) t3[p3] = s3[p3];
        }
        return t3;
      }, "__assign");
      return __assign.apply(this, arguments);
    }, "__assign");
    __name(__rest, "__rest");
    __name(__decorate, "__decorate");
    __name(__param, "__param");
    __name(__esDecorate, "__esDecorate");
    __name(__runInitializers, "__runInitializers");
    __name(__propKey, "__propKey");
    __name(__setFunctionName, "__setFunctionName");
    __name(__metadata, "__metadata");
    __name(__awaiter, "__awaiter");
    __name(__generator, "__generator");
    __createBinding = Object.create ? (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      var desc = Object.getOwnPropertyDescriptor(m3, k3);
      if (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) {
        desc = { enumerable: true, get: /* @__PURE__ */ __name(function() {
          return m3[k3];
        }, "get") };
      }
      Object.defineProperty(o3, k22, desc);
    }) : (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      o3[k22] = m3[k3];
    });
    __name(__exportStar, "__exportStar");
    __name(__values, "__values");
    __name(__read, "__read");
    __name(__spread, "__spread");
    __name(__spreadArrays, "__spreadArrays");
    __name(__spreadArray, "__spreadArray");
    __name(__await, "__await");
    __name(__asyncGenerator, "__asyncGenerator");
    __name(__asyncDelegator, "__asyncDelegator");
    __name(__asyncValues, "__asyncValues");
    __name(__makeTemplateObject, "__makeTemplateObject");
    __setModuleDefault = Object.create ? (function(o3, v6) {
      Object.defineProperty(o3, "default", { enumerable: true, value: v6 });
    }) : function(o3, v6) {
      o3["default"] = v6;
    };
    ownKeys = /* @__PURE__ */ __name(function(o3) {
      ownKeys = Object.getOwnPropertyNames || function(o4) {
        var ar = [];
        for (var k3 in o4) if (Object.prototype.hasOwnProperty.call(o4, k3)) ar[ar.length] = k3;
        return ar;
      };
      return ownKeys(o3);
    }, "ownKeys");
    __name(__importStar, "__importStar");
    __name(__importDefault, "__importDefault");
    __name(__classPrivateFieldGet, "__classPrivateFieldGet");
    __name(__classPrivateFieldSet, "__classPrivateFieldSet");
    __name(__classPrivateFieldIn, "__classPrivateFieldIn");
    __name(__addDisposableResource, "__addDisposableResource");
    _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function(error5, suppressed, message2) {
      var e3 = new Error(message2);
      return e3.name = "SuppressedError", e3.error = error5, e3.suppressed = suppressed, e3;
    };
    __name(__disposeResources, "__disposeResources");
    __name(__rewriteRelativeImportExtension, "__rewriteRelativeImportExtension");
    tslib_es6_default = {
      __extends,
      __assign,
      __rest,
      __decorate,
      __param,
      __esDecorate,
      __runInitializers,
      __propKey,
      __setFunctionName,
      __metadata,
      __awaiter,
      __generator,
      __createBinding,
      __exportStar,
      __values,
      __read,
      __spread,
      __spreadArrays,
      __spreadArray,
      __await,
      __asyncGenerator,
      __asyncDelegator,
      __asyncValues,
      __makeTemplateObject,
      __importStar,
      __importDefault,
      __classPrivateFieldGet,
      __classPrivateFieldSet,
      __classPrivateFieldIn,
      __addDisposableResource,
      __disposeResources,
      __rewriteRelativeImportExtension
    };
  }
});

// ../../node_modules/@aws-sdk/client-ecr/package.json
var require_package = __commonJS({
  "../../node_modules/@aws-sdk/client-ecr/package.json"(exports2, module2) {
    module2.exports = {
      name: "@aws-sdk/client-ecr",
      description: "AWS SDK for JavaScript Ecr Client for Node.js, Browser and React Native",
      version: "3.879.0",
      scripts: {
        build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
        "build:cjs": "node ../../scripts/compilation/inline client-ecr",
        "build:es": "tsc -p tsconfig.es.json",
        "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
        "build:types": "tsc -p tsconfig.types.json",
        "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
        clean: "rimraf ./dist-* && rimraf *.tsbuildinfo",
        "extract:docs": "api-extractor run --local",
        "generate:client": "node ../../scripts/generate-clients/single-service --solo ecr"
      },
      main: "./dist-cjs/index.js",
      types: "./dist-types/index.d.ts",
      module: "./dist-es/index.js",
      sideEffects: false,
      dependencies: {
        "@aws-crypto/sha256-browser": "5.2.0",
        "@aws-crypto/sha256-js": "5.2.0",
        "@aws-sdk/core": "3.879.0",
        "@aws-sdk/credential-provider-node": "3.879.0",
        "@aws-sdk/middleware-host-header": "3.873.0",
        "@aws-sdk/middleware-logger": "3.876.0",
        "@aws-sdk/middleware-recursion-detection": "3.873.0",
        "@aws-sdk/middleware-user-agent": "3.879.0",
        "@aws-sdk/region-config-resolver": "3.873.0",
        "@aws-sdk/types": "3.862.0",
        "@aws-sdk/util-endpoints": "3.879.0",
        "@aws-sdk/util-user-agent-browser": "3.873.0",
        "@aws-sdk/util-user-agent-node": "3.879.0",
        "@smithy/config-resolver": "^4.1.5",
        "@smithy/core": "^3.9.0",
        "@smithy/fetch-http-handler": "^5.1.1",
        "@smithy/hash-node": "^4.0.5",
        "@smithy/invalid-dependency": "^4.0.5",
        "@smithy/middleware-content-length": "^4.0.5",
        "@smithy/middleware-endpoint": "^4.1.19",
        "@smithy/middleware-retry": "^4.1.20",
        "@smithy/middleware-serde": "^4.0.9",
        "@smithy/middleware-stack": "^4.0.5",
        "@smithy/node-config-provider": "^4.1.4",
        "@smithy/node-http-handler": "^4.1.1",
        "@smithy/protocol-http": "^5.1.3",
        "@smithy/smithy-client": "^4.5.0",
        "@smithy/types": "^4.3.2",
        "@smithy/url-parser": "^4.0.5",
        "@smithy/util-base64": "^4.0.0",
        "@smithy/util-body-length-browser": "^4.0.0",
        "@smithy/util-body-length-node": "^4.0.0",
        "@smithy/util-defaults-mode-browser": "^4.0.27",
        "@smithy/util-defaults-mode-node": "^4.0.27",
        "@smithy/util-endpoints": "^3.0.7",
        "@smithy/util-middleware": "^4.0.5",
        "@smithy/util-retry": "^4.0.7",
        "@smithy/util-utf8": "^4.0.0",
        "@smithy/util-waiter": "^4.0.7",
        tslib: "^2.6.2"
      },
      devDependencies: {
        "@tsconfig/node18": "18.2.4",
        "@types/node": "^18.19.69",
        concurrently: "7.0.0",
        "downlevel-dts": "0.10.1",
        rimraf: "3.0.2",
        typescript: "~5.8.3"
      },
      engines: {
        node: ">=18.0.0"
      },
      typesVersions: {
        "<4.0": {
          "dist-types/*": [
            "dist-types/ts3.4/*"
          ]
        }
      },
      files: [
        "dist-*/**"
      ],
      author: {
        name: "AWS SDK for JavaScript Team",
        url: "https://aws.amazon.com/javascript/"
      },
      license: "Apache-2.0",
      browser: {
        "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
      },
      "react-native": {
        "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
      },
      homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ecr",
      repository: {
        type: "git",
        url: "https://github.com/aws/aws-sdk-js-v3.git",
        directory: "clients/client-ecr"
      }
    };
  }
});

// ../../node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js
var require_dist_cjs38 = __commonJS({
  "../../node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js"(exports2, module2) {
    "use strict";
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var index_exports = {};
    __export2(index_exports, {
      ENV_ACCOUNT_ID: /* @__PURE__ */ __name(() => ENV_ACCOUNT_ID, "ENV_ACCOUNT_ID"),
      ENV_CREDENTIAL_SCOPE: /* @__PURE__ */ __name(() => ENV_CREDENTIAL_SCOPE, "ENV_CREDENTIAL_SCOPE"),
      ENV_EXPIRATION: /* @__PURE__ */ __name(() => ENV_EXPIRATION, "ENV_EXPIRATION"),
      ENV_KEY: /* @__PURE__ */ __name(() => ENV_KEY, "ENV_KEY"),
      ENV_SECRET: /* @__PURE__ */ __name(() => ENV_SECRET, "ENV_SECRET"),
      ENV_SESSION: /* @__PURE__ */ __name(() => ENV_SESSION, "ENV_SESSION"),
      fromEnv: /* @__PURE__ */ __name(() => fromEnv2, "fromEnv")
    });
    module2.exports = __toCommonJS2(index_exports);
    var import_client3 = (init_client(), __toCommonJS(client_exports));
    var import_property_provider3 = require_dist_cjs22();
    var ENV_KEY = "AWS_ACCESS_KEY_ID";
    var ENV_SECRET = "AWS_SECRET_ACCESS_KEY";
    var ENV_SESSION = "AWS_SESSION_TOKEN";
    var ENV_EXPIRATION = "AWS_CREDENTIAL_EXPIRATION";
    var ENV_CREDENTIAL_SCOPE = "AWS_CREDENTIAL_SCOPE";
    var ENV_ACCOUNT_ID = "AWS_ACCOUNT_ID";
    var fromEnv2 = /* @__PURE__ */ __name2((init) => async () => {
      init?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");
      const accessKeyId = process.env[ENV_KEY];
      const secretAccessKey = process.env[ENV_SECRET];
      const sessionToken = process.env[ENV_SESSION];
      const expiry = process.env[ENV_EXPIRATION];
      const credentialScope = process.env[ENV_CREDENTIAL_SCOPE];
      const accountId = process.env[ENV_ACCOUNT_ID];
      if (accessKeyId && secretAccessKey) {
        const credentials = {
          accessKeyId,
          secretAccessKey,
          ...sessionToken && { sessionToken },
          ...expiry && { expiration: new Date(expiry) },
          ...credentialScope && { credentialScope },
          ...accountId && { accountId }
        };
        (0, import_client3.setCredentialFeature)(credentials, "CREDENTIALS_ENV_VARS", "g");
        return credentials;
      }
      throw new import_property_provider3.CredentialsProviderError("Unable to find environment variable credentials.", { logger: init?.logger });
    }, "fromEnv");
  }
});

// ../../node_modules/@smithy/credential-provider-imds/dist-cjs/index.js
var require_dist_cjs39 = __commonJS({
  "../../node_modules/@smithy/credential-provider-imds/dist-cjs/index.js"(exports2, module2) {
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var src_exports = {};
    __export2(src_exports, {
      DEFAULT_MAX_RETRIES: /* @__PURE__ */ __name(() => DEFAULT_MAX_RETRIES, "DEFAULT_MAX_RETRIES"),
      DEFAULT_TIMEOUT: /* @__PURE__ */ __name(() => DEFAULT_TIMEOUT2, "DEFAULT_TIMEOUT"),
      ENV_CMDS_AUTH_TOKEN: /* @__PURE__ */ __name(() => ENV_CMDS_AUTH_TOKEN, "ENV_CMDS_AUTH_TOKEN"),
      ENV_CMDS_FULL_URI: /* @__PURE__ */ __name(() => ENV_CMDS_FULL_URI, "ENV_CMDS_FULL_URI"),
      ENV_CMDS_RELATIVE_URI: /* @__PURE__ */ __name(() => ENV_CMDS_RELATIVE_URI, "ENV_CMDS_RELATIVE_URI"),
      Endpoint: /* @__PURE__ */ __name(() => Endpoint, "Endpoint"),
      fromContainerMetadata: /* @__PURE__ */ __name(() => fromContainerMetadata, "fromContainerMetadata"),
      fromInstanceMetadata: /* @__PURE__ */ __name(() => fromInstanceMetadata, "fromInstanceMetadata"),
      getInstanceMetadataEndpoint: /* @__PURE__ */ __name(() => getInstanceMetadataEndpoint, "getInstanceMetadataEndpoint"),
      httpRequest: /* @__PURE__ */ __name(() => httpRequest, "httpRequest"),
      providerConfigFromInit: /* @__PURE__ */ __name(() => providerConfigFromInit, "providerConfigFromInit")
    });
    module2.exports = __toCommonJS2(src_exports);
    var import_url = require("url");
    var import_property_provider3 = require_dist_cjs22();
    var import_buffer = require("buffer");
    var import_http = require("http");
    function httpRequest(options) {
      return new Promise((resolve13, reject) => {
        const req = (0, import_http.request)({
          method: "GET",
          ...options,
          // Node.js http module doesn't accept hostname with square brackets
          // Refs: https://github.com/nodejs/node/issues/39738
          hostname: options.hostname?.replace(/^\[(.+)\]$/, "$1")
        });
        req.on("error", (err) => {
          reject(Object.assign(new import_property_provider3.ProviderError("Unable to connect to instance metadata service"), err));
          req.destroy();
        });
        req.on("timeout", () => {
          reject(new import_property_provider3.ProviderError("TimeoutError from instance metadata service"));
          req.destroy();
        });
        req.on("response", (res) => {
          const { statusCode = 400 } = res;
          if (statusCode < 200 || 300 <= statusCode) {
            reject(
              Object.assign(new import_property_provider3.ProviderError("Error response received from instance metadata service"), { statusCode })
            );
            req.destroy();
          }
          const chunks2 = [];
          res.on("data", (chunk) => {
            chunks2.push(chunk);
          });
          res.on("end", () => {
            resolve13(import_buffer.Buffer.concat(chunks2));
            req.destroy();
          });
        });
        req.end();
      });
    }
    __name(httpRequest, "httpRequest");
    __name2(httpRequest, "httpRequest");
    var isImdsCredentials = /* @__PURE__ */ __name2((arg) => Boolean(arg) && typeof arg === "object" && typeof arg.AccessKeyId === "string" && typeof arg.SecretAccessKey === "string" && typeof arg.Token === "string" && typeof arg.Expiration === "string", "isImdsCredentials");
    var fromImdsCredentials = /* @__PURE__ */ __name2((creds) => ({
      accessKeyId: creds.AccessKeyId,
      secretAccessKey: creds.SecretAccessKey,
      sessionToken: creds.Token,
      expiration: new Date(creds.Expiration),
      ...creds.AccountId && { accountId: creds.AccountId }
    }), "fromImdsCredentials");
    var DEFAULT_TIMEOUT2 = 1e3;
    var DEFAULT_MAX_RETRIES = 0;
    var providerConfigFromInit = /* @__PURE__ */ __name2(({
      maxRetries = DEFAULT_MAX_RETRIES,
      timeout = DEFAULT_TIMEOUT2
    }) => ({ maxRetries, timeout }), "providerConfigFromInit");
    var retry = /* @__PURE__ */ __name2((toRetry, maxRetries) => {
      let promise = toRetry();
      for (let i3 = 0; i3 < maxRetries; i3++) {
        promise = promise.catch(toRetry);
      }
      return promise;
    }, "retry");
    var ENV_CMDS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI";
    var ENV_CMDS_RELATIVE_URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";
    var ENV_CMDS_AUTH_TOKEN = "AWS_CONTAINER_AUTHORIZATION_TOKEN";
    var fromContainerMetadata = /* @__PURE__ */ __name2((init = {}) => {
      const { timeout, maxRetries } = providerConfigFromInit(init);
      return () => retry(async () => {
        const requestOptions = await getCmdsUri({ logger: init.logger });
        const credsResponse = JSON.parse(await requestFromEcsImds(timeout, requestOptions));
        if (!isImdsCredentials(credsResponse)) {
          throw new import_property_provider3.CredentialsProviderError("Invalid response received from instance metadata service.", {
            logger: init.logger
          });
        }
        return fromImdsCredentials(credsResponse);
      }, maxRetries);
    }, "fromContainerMetadata");
    var requestFromEcsImds = /* @__PURE__ */ __name2(async (timeout, options) => {
      if (process.env[ENV_CMDS_AUTH_TOKEN]) {
        options.headers = {
          ...options.headers,
          Authorization: process.env[ENV_CMDS_AUTH_TOKEN]
        };
      }
      const buffer = await httpRequest({
        ...options,
        timeout
      });
      return buffer.toString();
    }, "requestFromEcsImds");
    var CMDS_IP = "169.254.170.2";
    var GREENGRASS_HOSTS = {
      localhost: true,
      "127.0.0.1": true
    };
    var GREENGRASS_PROTOCOLS = {
      "http:": true,
      "https:": true
    };
    var getCmdsUri = /* @__PURE__ */ __name2(async ({ logger: logger4 }) => {
      if (process.env[ENV_CMDS_RELATIVE_URI]) {
        return {
          hostname: CMDS_IP,
          path: process.env[ENV_CMDS_RELATIVE_URI]
        };
      }
      if (process.env[ENV_CMDS_FULL_URI]) {
        const parsed = (0, import_url.parse)(process.env[ENV_CMDS_FULL_URI]);
        if (!parsed.hostname || !(parsed.hostname in GREENGRASS_HOSTS)) {
          throw new import_property_provider3.CredentialsProviderError(`${parsed.hostname} is not a valid container metadata service hostname`, {
            tryNextLink: false,
            logger: logger4
          });
        }
        if (!parsed.protocol || !(parsed.protocol in GREENGRASS_PROTOCOLS)) {
          throw new import_property_provider3.CredentialsProviderError(`${parsed.protocol} is not a valid container metadata service protocol`, {
            tryNextLink: false,
            logger: logger4
          });
        }
        return {
          ...parsed,
          port: parsed.port ? parseInt(parsed.port, 10) : void 0
        };
      }
      throw new import_property_provider3.CredentialsProviderError(
        `The container metadata credential provider cannot be used unless the ${ENV_CMDS_RELATIVE_URI} or ${ENV_CMDS_FULL_URI} environment variable is set`,
        {
          tryNextLink: false,
          logger: logger4
        }
      );
    }, "getCmdsUri");
    var InstanceMetadataV1FallbackError = class _InstanceMetadataV1FallbackError extends import_property_provider3.CredentialsProviderError {
      static {
        __name(this, "_InstanceMetadataV1FallbackError");
      }
      constructor(message2, tryNextLink = true) {
        super(message2, tryNextLink);
        this.tryNextLink = tryNextLink;
        this.name = "InstanceMetadataV1FallbackError";
        Object.setPrototypeOf(this, _InstanceMetadataV1FallbackError.prototype);
      }
      static {
        __name2(this, "InstanceMetadataV1FallbackError");
      }
    };
    var import_node_config_provider4 = require_dist_cjs33();
    var import_url_parser3 = require_dist_cjs20();
    var Endpoint = /* @__PURE__ */ ((Endpoint2) => {
      Endpoint2["IPv4"] = "http://169.254.169.254";
      Endpoint2["IPv6"] = "http://[fd00:ec2::254]";
      return Endpoint2;
    })(Endpoint || {});
    var ENV_ENDPOINT_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT";
    var CONFIG_ENDPOINT_NAME = "ec2_metadata_service_endpoint";
    var ENDPOINT_CONFIG_OPTIONS = {
      environmentVariableSelector: /* @__PURE__ */ __name((env2) => env2[ENV_ENDPOINT_NAME], "environmentVariableSelector"),
      configFileSelector: /* @__PURE__ */ __name((profile) => profile[CONFIG_ENDPOINT_NAME], "configFileSelector"),
      default: void 0
    };
    var EndpointMode = /* @__PURE__ */ ((EndpointMode2) => {
      EndpointMode2["IPv4"] = "IPv4";
      EndpointMode2["IPv6"] = "IPv6";
      return EndpointMode2;
    })(EndpointMode || {});
    var ENV_ENDPOINT_MODE_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";
    var CONFIG_ENDPOINT_MODE_NAME = "ec2_metadata_service_endpoint_mode";
    var ENDPOINT_MODE_CONFIG_OPTIONS = {
      environmentVariableSelector: /* @__PURE__ */ __name((env2) => env2[ENV_ENDPOINT_MODE_NAME], "environmentVariableSelector"),
      configFileSelector: /* @__PURE__ */ __name((profile) => profile[CONFIG_ENDPOINT_MODE_NAME], "configFileSelector"),
      default: "IPv4"
      /* IPv4 */
    };
    var getInstanceMetadataEndpoint = /* @__PURE__ */ __name2(async () => (0, import_url_parser3.parseUrl)(await getFromEndpointConfig() || await getFromEndpointModeConfig()), "getInstanceMetadataEndpoint");
    var getFromEndpointConfig = /* @__PURE__ */ __name2(async () => (0, import_node_config_provider4.loadConfig)(ENDPOINT_CONFIG_OPTIONS)(), "getFromEndpointConfig");
    var getFromEndpointModeConfig = /* @__PURE__ */ __name2(async () => {
      const endpointMode = await (0, import_node_config_provider4.loadConfig)(ENDPOINT_MODE_CONFIG_OPTIONS)();
      switch (endpointMode) {
        case "IPv4":
          return "http://169.254.169.254";
        case "IPv6":
          return "http://[fd00:ec2::254]";
        default:
          throw new Error(`Unsupported endpoint mode: ${endpointMode}. Select from ${Object.values(EndpointMode)}`);
      }
    }, "getFromEndpointModeConfig");
    var STATIC_STABILITY_REFRESH_INTERVAL_SECONDS = 5 * 60;
    var STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS = 5 * 60;
    var STATIC_STABILITY_DOC_URL = "https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html";
    var getExtendedInstanceMetadataCredentials = /* @__PURE__ */ __name2((credentials, logger4) => {
      const refreshInterval = STATIC_STABILITY_REFRESH_INTERVAL_SECONDS + Math.floor(Math.random() * STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS);
      const newExpiration = new Date(Date.now() + refreshInterval * 1e3);
      logger4.warn(
        `Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(newExpiration)}.
For more information, please visit: ` + STATIC_STABILITY_DOC_URL
      );
      const originalExpiration = credentials.originalExpiration ?? credentials.expiration;
      return {
        ...credentials,
        ...originalExpiration ? { originalExpiration } : {},
        expiration: newExpiration
      };
    }, "getExtendedInstanceMetadataCredentials");
    var staticStabilityProvider = /* @__PURE__ */ __name2((provider, options = {}) => {
      const logger4 = options?.logger || console;
      let pastCredentials;
      return async () => {
        let credentials;
        try {
          credentials = await provider();
          if (credentials.expiration && credentials.expiration.getTime() < Date.now()) {
            credentials = getExtendedInstanceMetadataCredentials(credentials, logger4);
          }
        } catch (e3) {
          if (pastCredentials) {
            logger4.warn("Credential renew failed: ", e3);
            credentials = getExtendedInstanceMetadataCredentials(pastCredentials, logger4);
          } else {
            throw e3;
          }
        }
        pastCredentials = credentials;
        return credentials;
      };
    }, "staticStabilityProvider");
    var IMDS_PATH = "/latest/meta-data/iam/security-credentials/";
    var IMDS_TOKEN_PATH = "/latest/api/token";
    var AWS_EC2_METADATA_V1_DISABLED = "AWS_EC2_METADATA_V1_DISABLED";
    var PROFILE_AWS_EC2_METADATA_V1_DISABLED = "ec2_metadata_v1_disabled";
    var X_AWS_EC2_METADATA_TOKEN = "x-aws-ec2-metadata-token";
    var fromInstanceMetadata = /* @__PURE__ */ __name2((init = {}) => staticStabilityProvider(getInstanceMetadataProvider(init), { logger: init.logger }), "fromInstanceMetadata");
    var getInstanceMetadataProvider = /* @__PURE__ */ __name2((init = {}) => {
      let disableFetchToken = false;
      const { logger: logger4, profile } = init;
      const { timeout, maxRetries } = providerConfigFromInit(init);
      const getCredentials = /* @__PURE__ */ __name2(async (maxRetries2, options) => {
        const isImdsV1Fallback = disableFetchToken || options.headers?.[X_AWS_EC2_METADATA_TOKEN] == null;
        if (isImdsV1Fallback) {
          let fallbackBlockedFromProfile = false;
          let fallbackBlockedFromProcessEnv = false;
          const configValue = await (0, import_node_config_provider4.loadConfig)(
            {
              environmentVariableSelector: /* @__PURE__ */ __name((env2) => {
                const envValue = env2[AWS_EC2_METADATA_V1_DISABLED];
                fallbackBlockedFromProcessEnv = !!envValue && envValue !== "false";
                if (envValue === void 0) {
                  throw new import_property_provider3.CredentialsProviderError(
                    `${AWS_EC2_METADATA_V1_DISABLED} not set in env, checking config file next.`,
                    { logger: init.logger }
                  );
                }
                return fallbackBlockedFromProcessEnv;
              }, "environmentVariableSelector"),
              configFileSelector: /* @__PURE__ */ __name((profile2) => {
                const profileValue = profile2[PROFILE_AWS_EC2_METADATA_V1_DISABLED];
                fallbackBlockedFromProfile = !!profileValue && profileValue !== "false";
                return fallbackBlockedFromProfile;
              }, "configFileSelector"),
              default: false
            },
            {
              profile
            }
          )();
          if (init.ec2MetadataV1Disabled || configValue) {
            const causes = [];
            if (init.ec2MetadataV1Disabled)
              causes.push("credential provider initialization (runtime option ec2MetadataV1Disabled)");
            if (fallbackBlockedFromProfile)
              causes.push(`config file profile (${PROFILE_AWS_EC2_METADATA_V1_DISABLED})`);
            if (fallbackBlockedFromProcessEnv)
              causes.push(`process environment variable (${AWS_EC2_METADATA_V1_DISABLED})`);
            throw new InstanceMetadataV1FallbackError(
              `AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${causes.join(
                ", "
              )}].`
            );
          }
        }
        const imdsProfile = (await retry(async () => {
          let profile2;
          try {
            profile2 = await getProfile(options);
          } catch (err) {
            if (err.statusCode === 401) {
              disableFetchToken = false;
            }
            throw err;
          }
          return profile2;
        }, maxRetries2)).trim();
        return retry(async () => {
          let creds;
          try {
            creds = await getCredentialsFromProfile(imdsProfile, options, init);
          } catch (err) {
            if (err.statusCode === 401) {
              disableFetchToken = false;
            }
            throw err;
          }
          return creds;
        }, maxRetries2);
      }, "getCredentials");
      return async () => {
        const endpoint = await getInstanceMetadataEndpoint();
        if (disableFetchToken) {
          logger4?.debug("AWS SDK Instance Metadata", "using v1 fallback (no token fetch)");
          return getCredentials(maxRetries, { ...endpoint, timeout });
        } else {
          let token;
          try {
            token = (await getMetadataToken({ ...endpoint, timeout })).toString();
          } catch (error5) {
            if (error5?.statusCode === 400) {
              throw Object.assign(error5, {
                message: "EC2 Metadata token request returned error"
              });
            } else if (error5.message === "TimeoutError" || [403, 404, 405].includes(error5.statusCode)) {
              disableFetchToken = true;
            }
            logger4?.debug("AWS SDK Instance Metadata", "using v1 fallback (initial)");
            return getCredentials(maxRetries, { ...endpoint, timeout });
          }
          return getCredentials(maxRetries, {
            ...endpoint,
            headers: {
              [X_AWS_EC2_METADATA_TOKEN]: token
            },
            timeout
          });
        }
      };
    }, "getInstanceMetadataProvider");
    var getMetadataToken = /* @__PURE__ */ __name2(async (options) => httpRequest({
      ...options,
      path: IMDS_TOKEN_PATH,
      method: "PUT",
      headers: {
        "x-aws-ec2-metadata-token-ttl-seconds": "21600"
      }
    }), "getMetadataToken");
    var getProfile = /* @__PURE__ */ __name2(async (options) => (await httpRequest({ ...options, path: IMDS_PATH })).toString(), "getProfile");
    var getCredentialsFromProfile = /* @__PURE__ */ __name2(async (profile, options, init) => {
      const credentialsResponse = JSON.parse(
        (await httpRequest({
          ...options,
          path: IMDS_PATH + profile
        })).toString()
      );
      if (!isImdsCredentials(credentialsResponse)) {
        throw new import_property_provider3.CredentialsProviderError("Invalid response received from instance metadata service.", {
          logger: init.logger
        });
      }
      return fromImdsCredentials(credentialsResponse);
    }, "getCredentialsFromProfile");
  }
});

// ../../node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/checkUrl.js
var require_checkUrl = __commonJS({
  "../../node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/checkUrl.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.checkUrl = void 0;
    var property_provider_1 = require_dist_cjs22();
    var ECS_CONTAINER_HOST = "169.254.170.2";
    var EKS_CONTAINER_HOST_IPv4 = "169.254.170.23";
    var EKS_CONTAINER_HOST_IPv6 = "[fd00:ec2::23]";
    var checkUrl = /* @__PURE__ */ __name((url, logger4) => {
      if (url.protocol === "https:") {
        return;
      }
      if (url.hostname === ECS_CONTAINER_HOST || url.hostname === EKS_CONTAINER_HOST_IPv4 || url.hostname === EKS_CONTAINER_HOST_IPv6) {
        return;
      }
      if (url.hostname.includes("[")) {
        if (url.hostname === "[::1]" || url.hostname === "[0000:0000:0000:0000:0000:0000:0000:0001]") {
          return;
        }
      } else {
        if (url.hostname === "localhost") {
          return;
        }
        const ipComponents = url.hostname.split(".");
        const inRange = /* @__PURE__ */ __name((component) => {
          const num = parseInt(component, 10);
          return 0 <= num && num <= 255;
        }, "inRange");
        if (ipComponents[0] === "127" && inRange(ipComponents[1]) && inRange(ipComponents[2]) && inRange(ipComponents[3]) && ipComponents.length === 4) {
          return;
        }
      }
      throw new property_provider_1.CredentialsProviderError(`URL not accepted. It must either be HTTPS or match one of the following:
  - loopback CIDR 127.0.0.0/8 or [::1/128]
  - ECS container host 169.254.170.2
  - EKS container host 169.254.170.23 or [fd00:ec2::23]`, { logger: logger4 });
    }, "checkUrl");
    exports2.checkUrl = checkUrl;
  }
});

// ../../node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/requestHelpers.js
var require_requestHelpers = __commonJS({
  "../../node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/requestHelpers.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.createGetRequest = createGetRequest;
    exports2.getCredentials = getCredentials;
    var property_provider_1 = require_dist_cjs22();
    var protocol_http_1 = require_dist_cjs2();
    var smithy_client_1 = require_dist_cjs26();
    var util_stream_1 = require_dist_cjs17();
    function createGetRequest(url) {
      return new protocol_http_1.HttpRequest({
        protocol: url.protocol,
        hostname: url.hostname,
        port: Number(url.port),
        path: url.pathname,
        query: Array.from(url.searchParams.entries()).reduce((acc, [k3, v6]) => {
          acc[k3] = v6;
          return acc;
        }, {}),
        fragment: url.hash
      });
    }
    __name(createGetRequest, "createGetRequest");
    async function getCredentials(response, logger4) {
      const stream3 = (0, util_stream_1.sdkStreamMixin)(response.body);
      const str = await stream3.transformToString();
      if (response.statusCode === 200) {
        const parsed = JSON.parse(str);
        if (typeof parsed.AccessKeyId !== "string" || typeof parsed.SecretAccessKey !== "string" || typeof parsed.Token !== "string" || typeof parsed.Expiration !== "string") {
          throw new property_provider_1.CredentialsProviderError("HTTP credential provider response not of the required format, an object matching: { AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }", { logger: logger4 });
        }
        return {
          accessKeyId: parsed.AccessKeyId,
          secretAccessKey: parsed.SecretAccessKey,
          sessionToken: parsed.Token,
          expiration: (0, smithy_client_1.parseRfc3339DateTime)(parsed.Expiration)
        };
      }
      if (response.statusCode >= 400 && response.statusCode < 500) {
        let parsedBody = {};
        try {
          parsedBody = JSON.parse(str);
        } catch (e3) {
        }
        throw Object.assign(new property_provider_1.CredentialsProviderError(`Server responded with status: ${response.statusCode}`, { logger: logger4 }), {
          Code: parsedBody.Code,
          Message: parsedBody.Message
        });
      }
      throw new property_provider_1.CredentialsProviderError(`Server responded with status: ${response.statusCode}`, { logger: logger4 });
    }
    __name(getCredentials, "getCredentials");
  }
});

// ../../node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/retry-wrapper.js
var require_retry_wrapper = __commonJS({
  "../../node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/retry-wrapper.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.retryWrapper = void 0;
    var retryWrapper = /* @__PURE__ */ __name((toRetry, maxRetries, delayMs) => {
      return async () => {
        for (let i3 = 0; i3 < maxRetries; ++i3) {
          try {
            return await toRetry();
          } catch (e3) {
            await new Promise((resolve13) => setTimeout(resolve13, delayMs));
          }
        }
        return await toRetry();
      };
    }, "retryWrapper");
    exports2.retryWrapper = retryWrapper;
  }
});

// ../../node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js
var require_fromHttp = __commonJS({
  "../../node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.fromHttp = void 0;
    var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
    var client_1 = (init_client(), __toCommonJS(client_exports));
    var node_http_handler_1 = require_dist_cjs14();
    var property_provider_1 = require_dist_cjs22();
    var promises_1 = tslib_1.__importDefault(require("fs/promises"));
    var checkUrl_1 = require_checkUrl();
    var requestHelpers_1 = require_requestHelpers();
    var retry_wrapper_1 = require_retry_wrapper();
    var AWS_CONTAINER_CREDENTIALS_RELATIVE_URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";
    var DEFAULT_LINK_LOCAL_HOST = "http://169.254.170.2";
    var AWS_CONTAINER_CREDENTIALS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI";
    var AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE = "AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE";
    var AWS_CONTAINER_AUTHORIZATION_TOKEN = "AWS_CONTAINER_AUTHORIZATION_TOKEN";
    var fromHttp = /* @__PURE__ */ __name((options = {}) => {
      options.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");
      let host;
      const relative2 = options.awsContainerCredentialsRelativeUri ?? process.env[AWS_CONTAINER_CREDENTIALS_RELATIVE_URI];
      const full = options.awsContainerCredentialsFullUri ?? process.env[AWS_CONTAINER_CREDENTIALS_FULL_URI];
      const token = options.awsContainerAuthorizationToken ?? process.env[AWS_CONTAINER_AUTHORIZATION_TOKEN];
      const tokenFile = options.awsContainerAuthorizationTokenFile ?? process.env[AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE];
      const warn2 = options.logger?.constructor?.name === "NoOpLogger" || !options.logger ? console.warn : options.logger.warn;
      if (relative2 && full) {
        warn2("@aws-sdk/credential-provider-http: you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri.");
        warn2("awsContainerCredentialsFullUri will take precedence.");
      }
      if (token && tokenFile) {
        warn2("@aws-sdk/credential-provider-http: you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile.");
        warn2("awsContainerAuthorizationToken will take precedence.");
      }
      if (full) {
        host = full;
      } else if (relative2) {
        host = `${DEFAULT_LINK_LOCAL_HOST}${relative2}`;
      } else {
        throw new property_provider_1.CredentialsProviderError(`No HTTP credential provider host provided.
Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`, { logger: options.logger });
      }
      const url = new URL(host);
      (0, checkUrl_1.checkUrl)(url, options.logger);
      const requestHandler = new node_http_handler_1.NodeHttpHandler({
        requestTimeout: options.timeout ?? 1e3,
        connectionTimeout: options.timeout ?? 1e3
      });
      return (0, retry_wrapper_1.retryWrapper)(async () => {
        const request2 = (0, requestHelpers_1.createGetRequest)(url);
        if (token) {
          request2.headers.Authorization = token;
        } else if (tokenFile) {
          request2.headers.Authorization = (await promises_1.default.readFile(tokenFile)).toString();
        }
        try {
          const result2 = await requestHandler.handle(request2);
          return (0, requestHelpers_1.getCredentials)(result2.response).then((creds) => (0, client_1.setCredentialFeature)(creds, "CREDENTIALS_HTTP", "z"));
        } catch (e3) {
          throw new property_provider_1.CredentialsProviderError(String(e3), { logger: options.logger });
        }
      }, options.maxRetries ?? 3, options.timeout ?? 1e3);
    }, "fromHttp");
    exports2.fromHttp = fromHttp;
  }
});

// ../../node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js
var require_dist_cjs40 = __commonJS({
  "../../node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.fromHttp = void 0;
    var fromHttp_1 = require_fromHttp();
    Object.defineProperty(exports2, "fromHttp", { enumerable: true, get: /* @__PURE__ */ __name(function() {
      return fromHttp_1.fromHttp;
    }, "get") });
  }
});

// ../../node_modules/@aws-sdk/client-sso/dist-cjs/auth/httpAuthSchemeProvider.js
var require_httpAuthSchemeProvider2 = __commonJS({
  "../../node_modules/@aws-sdk/client-sso/dist-cjs/auth/httpAuthSchemeProvider.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.resolveHttpAuthSchemeConfig = exports2.defaultSSOHttpAuthSchemeProvider = exports2.defaultSSOHttpAuthSchemeParametersProvider = void 0;
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var util_middleware_1 = require_dist_cjs6();
    var defaultSSOHttpAuthSchemeParametersProvider = /* @__PURE__ */ __name(async (config, context, input) => {
      return {
        operation: (0, util_middleware_1.getSmithyContext)(context).operation,
        region: await (0, util_middleware_1.normalizeProvider)(config.region)() || (() => {
          throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
        })()
      };
    }, "defaultSSOHttpAuthSchemeParametersProvider");
    exports2.defaultSSOHttpAuthSchemeParametersProvider = defaultSSOHttpAuthSchemeParametersProvider;
    function createAwsAuthSigv4HttpAuthOption3(authParameters) {
      return {
        schemeId: "aws.auth#sigv4",
        signingProperties: {
          name: "awsssoportal",
          region: authParameters.region
        },
        propertiesExtractor: /* @__PURE__ */ __name((config, context) => ({
          signingProperties: {
            config,
            context
          }
        }), "propertiesExtractor")
      };
    }
    __name(createAwsAuthSigv4HttpAuthOption3, "createAwsAuthSigv4HttpAuthOption");
    function createSmithyApiNoAuthHttpAuthOption3(authParameters) {
      return {
        schemeId: "smithy.api#noAuth"
      };
    }
    __name(createSmithyApiNoAuthHttpAuthOption3, "createSmithyApiNoAuthHttpAuthOption");
    var defaultSSOHttpAuthSchemeProvider = /* @__PURE__ */ __name((authParameters) => {
      const options = [];
      switch (authParameters.operation) {
        case "GetRoleCredentials": {
          options.push(createSmithyApiNoAuthHttpAuthOption3(authParameters));
          break;
        }
        case "ListAccountRoles": {
          options.push(createSmithyApiNoAuthHttpAuthOption3(authParameters));
          break;
        }
        case "ListAccounts": {
          options.push(createSmithyApiNoAuthHttpAuthOption3(authParameters));
          break;
        }
        case "Logout": {
          options.push(createSmithyApiNoAuthHttpAuthOption3(authParameters));
          break;
        }
        default: {
          options.push(createAwsAuthSigv4HttpAuthOption3(authParameters));
        }
      }
      return options;
    }, "defaultSSOHttpAuthSchemeProvider");
    exports2.defaultSSOHttpAuthSchemeProvider = defaultSSOHttpAuthSchemeProvider;
    var resolveHttpAuthSchemeConfig3 = /* @__PURE__ */ __name((config) => {
      const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
      return Object.assign(config_0, {
        authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? [])
      });
    }, "resolveHttpAuthSchemeConfig");
    exports2.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig3;
  }
});

// ../../node_modules/@aws-sdk/client-sso/package.json
var require_package2 = __commonJS({
  "../../node_modules/@aws-sdk/client-sso/package.json"(exports2, module2) {
    module2.exports = {
      name: "@aws-sdk/client-sso",
      description: "AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",
      version: "3.879.0",
      scripts: {
        build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
        "build:cjs": "node ../../scripts/compilation/inline client-sso",
        "build:es": "tsc -p tsconfig.es.json",
        "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
        "build:types": "tsc -p tsconfig.types.json",
        "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
        clean: "rimraf ./dist-* && rimraf *.tsbuildinfo",
        "extract:docs": "api-extractor run --local",
        "generate:client": "node ../../scripts/generate-clients/single-service --solo sso"
      },
      main: "./dist-cjs/index.js",
      types: "./dist-types/index.d.ts",
      module: "./dist-es/index.js",
      sideEffects: false,
      dependencies: {
        "@aws-crypto/sha256-browser": "5.2.0",
        "@aws-crypto/sha256-js": "5.2.0",
        "@aws-sdk/core": "3.879.0",
        "@aws-sdk/middleware-host-header": "3.873.0",
        "@aws-sdk/middleware-logger": "3.876.0",
        "@aws-sdk/middleware-recursion-detection": "3.873.0",
        "@aws-sdk/middleware-user-agent": "3.879.0",
        "@aws-sdk/region-config-resolver": "3.873.0",
        "@aws-sdk/types": "3.862.0",
        "@aws-sdk/util-endpoints": "3.879.0",
        "@aws-sdk/util-user-agent-browser": "3.873.0",
        "@aws-sdk/util-user-agent-node": "3.879.0",
        "@smithy/config-resolver": "^4.1.5",
        "@smithy/core": "^3.9.0",
        "@smithy/fetch-http-handler": "^5.1.1",
        "@smithy/hash-node": "^4.0.5",
        "@smithy/invalid-dependency": "^4.0.5",
        "@smithy/middleware-content-length": "^4.0.5",
        "@smithy/middleware-endpoint": "^4.1.19",
        "@smithy/middleware-retry": "^4.1.20",
        "@smithy/middleware-serde": "^4.0.9",
        "@smithy/middleware-stack": "^4.0.5",
        "@smithy/node-config-provider": "^4.1.4",
        "@smithy/node-http-handler": "^4.1.1",
        "@smithy/protocol-http": "^5.1.3",
        "@smithy/smithy-client": "^4.5.0",
        "@smithy/types": "^4.3.2",
        "@smithy/url-parser": "^4.0.5",
        "@smithy/util-base64": "^4.0.0",
        "@smithy/util-body-length-browser": "^4.0.0",
        "@smithy/util-body-length-node": "^4.0.0",
        "@smithy/util-defaults-mode-browser": "^4.0.27",
        "@smithy/util-defaults-mode-node": "^4.0.27",
        "@smithy/util-endpoints": "^3.0.7",
        "@smithy/util-middleware": "^4.0.5",
        "@smithy/util-retry": "^4.0.7",
        "@smithy/util-utf8": "^4.0.0",
        tslib: "^2.6.2"
      },
      devDependencies: {
        "@tsconfig/node18": "18.2.4",
        "@types/node": "^18.19.69",
        concurrently: "7.0.0",
        "downlevel-dts": "0.10.1",
        rimraf: "3.0.2",
        typescript: "~5.8.3"
      },
      engines: {
        node: ">=18.0.0"
      },
      typesVersions: {
        "<4.0": {
          "dist-types/*": [
            "dist-types/ts3.4/*"
          ]
        }
      },
      files: [
        "dist-*/**"
      ],
      author: {
        name: "AWS SDK for JavaScript Team",
        url: "https://aws.amazon.com/javascript/"
      },
      license: "Apache-2.0",
      browser: {
        "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
      },
      "react-native": {
        "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
      },
      homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso",
      repository: {
        type: "git",
        url: "https://github.com/aws/aws-sdk-js-v3.git",
        directory: "clients/client-sso"
      }
    };
  }
});

// ../../node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js
var require_dist_cjs41 = __commonJS({
  "../../node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js"(exports2, module2) {
    "use strict";
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var index_exports = {};
    __export2(index_exports, {
      NODE_APP_ID_CONFIG_OPTIONS: /* @__PURE__ */ __name(() => NODE_APP_ID_CONFIG_OPTIONS3, "NODE_APP_ID_CONFIG_OPTIONS"),
      UA_APP_ID_ENV_NAME: /* @__PURE__ */ __name(() => UA_APP_ID_ENV_NAME, "UA_APP_ID_ENV_NAME"),
      UA_APP_ID_INI_NAME: /* @__PURE__ */ __name(() => UA_APP_ID_INI_NAME, "UA_APP_ID_INI_NAME"),
      createDefaultUserAgentProvider: /* @__PURE__ */ __name(() => createDefaultUserAgentProvider3, "createDefaultUserAgentProvider"),
      crtAvailability: /* @__PURE__ */ __name(() => crtAvailability, "crtAvailability"),
      defaultUserAgent: /* @__PURE__ */ __name(() => defaultUserAgent, "defaultUserAgent")
    });
    module2.exports = __toCommonJS2(index_exports);
    var import_os2 = require("os");
    var import_process = require("process");
    var crtAvailability = {
      isCrtAvailable: false
    };
    var isCrtAvailable = /* @__PURE__ */ __name2(() => {
      if (crtAvailability.isCrtAvailable) {
        return ["md/crt-avail"];
      }
      return null;
    }, "isCrtAvailable");
    var createDefaultUserAgentProvider3 = /* @__PURE__ */ __name2(({ serviceId, clientVersion }) => {
      return async (config) => {
        const sections = [
          // sdk-metadata
          ["aws-sdk-js", clientVersion],
          // ua-metadata
          ["ua", "2.1"],
          // os-metadata
          [`os/${(0, import_os2.platform)()}`, (0, import_os2.release)()],
          // language-metadata
          // ECMAScript edition doesn't matter in JS, so no version needed.
          ["lang/js"],
          ["md/nodejs", `${import_process.versions.node}`]
        ];
        const crtAvailable = isCrtAvailable();
        if (crtAvailable) {
          sections.push(crtAvailable);
        }
        if (serviceId) {
          sections.push([`api/${serviceId}`, clientVersion]);
        }
        if (import_process.env.AWS_EXECUTION_ENV) {
          sections.push([`exec-env/${import_process.env.AWS_EXECUTION_ENV}`]);
        }
        const appId = await config?.userAgentAppId?.();
        const resolvedUserAgent = appId ? [...sections, [`app/${appId}`]] : [...sections];
        return resolvedUserAgent;
      };
    }, "createDefaultUserAgentProvider");
    var defaultUserAgent = createDefaultUserAgentProvider3;
    var import_middleware_user_agent3 = require_dist_cjs28();
    var UA_APP_ID_ENV_NAME = "AWS_SDK_UA_APP_ID";
    var UA_APP_ID_INI_NAME = "sdk_ua_app_id";
    var UA_APP_ID_INI_NAME_DEPRECATED = "sdk-ua-app-id";
    var NODE_APP_ID_CONFIG_OPTIONS3 = {
      environmentVariableSelector: /* @__PURE__ */ __name2((env2) => env2[UA_APP_ID_ENV_NAME], "environmentVariableSelector"),
      configFileSelector: /* @__PURE__ */ __name2((profile) => profile[UA_APP_ID_INI_NAME] ?? profile[UA_APP_ID_INI_NAME_DEPRECATED], "configFileSelector"),
      default: import_middleware_user_agent3.DEFAULT_UA_APP_ID
    };
  }
});

// ../../node_modules/@smithy/hash-node/dist-cjs/index.js
var require_dist_cjs42 = __commonJS({
  "../../node_modules/@smithy/hash-node/dist-cjs/index.js"(exports2, module2) {
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var src_exports = {};
    __export2(src_exports, {
      Hash: /* @__PURE__ */ __name(() => Hash3, "Hash")
    });
    module2.exports = __toCommonJS2(src_exports);
    var import_util_buffer_from = require_dist_cjs9();
    var import_util_utf810 = require_dist_cjs10();
    var import_buffer = require("buffer");
    var import_crypto12 = require("crypto");
    var Hash3 = class {
      static {
        __name(this, "Hash");
      }
      static {
        __name2(this, "Hash");
      }
      constructor(algorithmIdentifier, secret) {
        this.algorithmIdentifier = algorithmIdentifier;
        this.secret = secret;
        this.reset();
      }
      update(toHash, encoding) {
        this.hash.update((0, import_util_utf810.toUint8Array)(castSourceData(toHash, encoding)));
      }
      digest() {
        return Promise.resolve(this.hash.digest());
      }
      reset() {
        this.hash = this.secret ? (0, import_crypto12.createHmac)(this.algorithmIdentifier, castSourceData(this.secret)) : (0, import_crypto12.createHash)(this.algorithmIdentifier);
      }
    };
    function castSourceData(toCast, encoding) {
      if (import_buffer.Buffer.isBuffer(toCast)) {
        return toCast;
      }
      if (typeof toCast === "string") {
        return (0, import_util_buffer_from.fromString)(toCast, encoding);
      }
      if (ArrayBuffer.isView(toCast)) {
        return (0, import_util_buffer_from.fromArrayBuffer)(toCast.buffer, toCast.byteOffset, toCast.byteLength);
      }
      return (0, import_util_buffer_from.fromArrayBuffer)(toCast);
    }
    __name(castSourceData, "castSourceData");
    __name2(castSourceData, "castSourceData");
  }
});

// ../../node_modules/@smithy/util-body-length-node/dist-cjs/index.js
var require_dist_cjs43 = __commonJS({
  "../../node_modules/@smithy/util-body-length-node/dist-cjs/index.js"(exports2, module2) {
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var src_exports = {};
    __export2(src_exports, {
      calculateBodyLength: /* @__PURE__ */ __name(() => calculateBodyLength5, "calculateBodyLength")
    });
    module2.exports = __toCommonJS2(src_exports);
    var import_fs7 = require("fs");
    var calculateBodyLength5 = /* @__PURE__ */ __name2((body) => {
      if (!body) {
        return 0;
      }
      if (typeof body === "string") {
        return Buffer.byteLength(body);
      } else if (typeof body.byteLength === "number") {
        return body.byteLength;
      } else if (typeof body.size === "number") {
        return body.size;
      } else if (typeof body.start === "number" && typeof body.end === "number") {
        return body.end + 1 - body.start;
      } else if (typeof body.path === "string" || Buffer.isBuffer(body.path)) {
        return (0, import_fs7.lstatSync)(body.path).size;
      } else if (typeof body.fd === "number") {
        return (0, import_fs7.fstatSync)(body.fd).size;
      }
      throw new Error(`Body Length computation failed for ${body}`);
    }, "calculateBodyLength");
  }
});

// ../../node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/ruleset.js
var require_ruleset = __commonJS({
  "../../node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/ruleset.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.ruleSet = void 0;
    var u3 = "required";
    var v6 = "fn";
    var w3 = "argv";
    var x3 = "ref";
    var a3 = true;
    var b3 = "isSet";
    var c3 = "booleanEquals";
    var d3 = "error";
    var e3 = "endpoint";
    var f3 = "tree";
    var g3 = "PartitionResult";
    var h3 = "getAttr";
    var i3 = { [u3]: false, "type": "String" };
    var j3 = { [u3]: true, "default": false, "type": "Boolean" };
    var k3 = { [x3]: "Endpoint" };
    var l3 = { [v6]: c3, [w3]: [{ [x3]: "UseFIPS" }, true] };
    var m3 = { [v6]: c3, [w3]: [{ [x3]: "UseDualStack" }, true] };
    var n3 = {};
    var o3 = { [v6]: h3, [w3]: [{ [x3]: g3 }, "supportsFIPS"] };
    var p3 = { [x3]: g3 };
    var q3 = { [v6]: c3, [w3]: [true, { [v6]: h3, [w3]: [p3, "supportsDualStack"] }] };
    var r3 = [l3];
    var s3 = [m3];
    var t3 = [{ [x3]: "Region" }];
    var _data3 = { version: "1.0", parameters: { Region: i3, UseDualStack: j3, UseFIPS: j3, Endpoint: i3 }, rules: [{ conditions: [{ [v6]: b3, [w3]: [k3] }], rules: [{ conditions: r3, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d3 }, { conditions: s3, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d3 }, { endpoint: { url: k3, properties: n3, headers: n3 }, type: e3 }], type: f3 }, { conditions: [{ [v6]: b3, [w3]: t3 }], rules: [{ conditions: [{ [v6]: "aws.partition", [w3]: t3, assign: g3 }], rules: [{ conditions: [l3, m3], rules: [{ conditions: [{ [v6]: c3, [w3]: [a3, o3] }, q3], rules: [{ endpoint: { url: "https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n3, headers: n3 }, type: e3 }], type: f3 }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d3 }], type: f3 }, { conditions: r3, rules: [{ conditions: [{ [v6]: c3, [w3]: [o3, a3] }], rules: [{ conditions: [{ [v6]: "stringEquals", [w3]: [{ [v6]: h3, [w3]: [p3, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://portal.sso.{Region}.amazonaws.com", properties: n3, headers: n3 }, type: e3 }, { endpoint: { url: "https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n3, headers: n3 }, type: e3 }], type: f3 }, { error: "FIPS is enabled but this partition does not support FIPS", type: d3 }], type: f3 }, { conditions: s3, rules: [{ conditions: [q3], rules: [{ endpoint: { url: "https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n3, headers: n3 }, type: e3 }], type: f3 }, { error: "DualStack is enabled but this partition does not support DualStack", type: d3 }], type: f3 }, { endpoint: { url: "https://portal.sso.{Region}.{PartitionResult#dnsSuffix}", properties: n3, headers: n3 }, type: e3 }], type: f3 }], type: f3 }, { error: "Invalid Configuration: Missing Region", type: d3 }] };
    exports2.ruleSet = _data3;
  }
});

// ../../node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/endpointResolver.js
var require_endpointResolver = __commonJS({
  "../../node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/endpointResolver.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.defaultEndpointResolver = void 0;
    var util_endpoints_1 = require_dist_cjs21();
    var util_endpoints_2 = require_dist_cjs18();
    var ruleset_1 = require_ruleset();
    var cache3 = new util_endpoints_2.EndpointCache({
      size: 50,
      params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"]
    });
    var defaultEndpointResolver3 = /* @__PURE__ */ __name((endpointParams, context = {}) => {
      return cache3.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
        endpointParams,
        logger: context.logger
      }));
    }, "defaultEndpointResolver");
    exports2.defaultEndpointResolver = defaultEndpointResolver3;
    util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
  }
});

// ../../node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.shared.js
var require_runtimeConfig_shared = __commonJS({
  "../../node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.shared.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.getRuntimeConfig = void 0;
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var core_2 = (init_dist_es(), __toCommonJS(dist_es_exports));
    var smithy_client_1 = require_dist_cjs26();
    var url_parser_1 = require_dist_cjs20();
    var util_base64_1 = require_dist_cjs11();
    var util_utf8_1 = require_dist_cjs10();
    var httpAuthSchemeProvider_1 = require_httpAuthSchemeProvider2();
    var endpointResolver_1 = require_endpointResolver();
    var getRuntimeConfig5 = /* @__PURE__ */ __name((config) => {
      return {
        apiVersion: "2019-06-10",
        base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
        base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
        disableHostPrefix: config?.disableHostPrefix ?? false,
        endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
        extensions: config?.extensions ?? [],
        httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultSSOHttpAuthSchemeProvider,
        httpAuthSchemes: config?.httpAuthSchemes ?? [
          {
            schemeId: "aws.auth#sigv4",
            identityProvider: /* @__PURE__ */ __name((ipc) => ipc.getIdentityProvider("aws.auth#sigv4"), "identityProvider"),
            signer: new core_1.AwsSdkSigV4Signer()
          },
          {
            schemeId: "smithy.api#noAuth",
            identityProvider: /* @__PURE__ */ __name((ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})), "identityProvider"),
            signer: new core_2.NoAuthSigner()
          }
        ],
        logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
        serviceId: config?.serviceId ?? "SSO",
        urlParser: config?.urlParser ?? url_parser_1.parseUrl,
        utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
        utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8
      };
    }, "getRuntimeConfig");
    exports2.getRuntimeConfig = getRuntimeConfig5;
  }
});

// ../../node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js
var require_dist_cjs44 = __commonJS({
  "../../node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js"(exports2, module2) {
    var __create2 = Object.create;
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __getProtoOf2 = Object.getPrototypeOf;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toESM2 = /* @__PURE__ */ __name((mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
      // If the importer is in node compatibility mode or this is not an ESM
      // file that has been converted to a CommonJS file using a Babel-
      // compatible transform (i.e. "__esModule" has not been set), then set
      // "default" to the CommonJS "module.exports" for node compatibility.
      isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
      mod
    )), "__toESM");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var src_exports = {};
    __export2(src_exports, {
      resolveDefaultsModeConfig: /* @__PURE__ */ __name(() => resolveDefaultsModeConfig3, "resolveDefaultsModeConfig")
    });
    module2.exports = __toCommonJS2(src_exports);
    var import_config_resolver6 = require_dist_cjs30();
    var import_node_config_provider4 = require_dist_cjs33();
    var import_property_provider3 = require_dist_cjs22();
    var AWS_EXECUTION_ENV = "AWS_EXECUTION_ENV";
    var AWS_REGION_ENV = "AWS_REGION";
    var AWS_DEFAULT_REGION_ENV = "AWS_DEFAULT_REGION";
    var ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED";
    var DEFAULTS_MODE_OPTIONS = ["in-region", "cross-region", "mobile", "standard", "legacy"];
    var IMDS_REGION_PATH = "/latest/meta-data/placement/region";
    var AWS_DEFAULTS_MODE_ENV = "AWS_DEFAULTS_MODE";
    var AWS_DEFAULTS_MODE_CONFIG = "defaults_mode";
    var NODE_DEFAULTS_MODE_CONFIG_OPTIONS = {
      environmentVariableSelector: /* @__PURE__ */ __name((env2) => {
        return env2[AWS_DEFAULTS_MODE_ENV];
      }, "environmentVariableSelector"),
      configFileSelector: /* @__PURE__ */ __name((profile) => {
        return profile[AWS_DEFAULTS_MODE_CONFIG];
      }, "configFileSelector"),
      default: "legacy"
    };
    var resolveDefaultsModeConfig3 = /* @__PURE__ */ __name2(({
      region = (0, import_node_config_provider4.loadConfig)(import_config_resolver6.NODE_REGION_CONFIG_OPTIONS),
      defaultsMode = (0, import_node_config_provider4.loadConfig)(NODE_DEFAULTS_MODE_CONFIG_OPTIONS)
    } = {}) => (0, import_property_provider3.memoize)(async () => {
      const mode = typeof defaultsMode === "function" ? await defaultsMode() : defaultsMode;
      switch (mode?.toLowerCase()) {
        case "auto":
          return resolveNodeDefaultsModeAuto(region);
        case "in-region":
        case "cross-region":
        case "mobile":
        case "standard":
        case "legacy":
          return Promise.resolve(mode?.toLocaleLowerCase());
        case void 0:
          return Promise.resolve("legacy");
        default:
          throw new Error(
            `Invalid parameter for "defaultsMode", expect ${DEFAULTS_MODE_OPTIONS.join(", ")}, got ${mode}`
          );
      }
    }), "resolveDefaultsModeConfig");
    var resolveNodeDefaultsModeAuto = /* @__PURE__ */ __name2(async (clientRegion) => {
      if (clientRegion) {
        const resolvedRegion = typeof clientRegion === "function" ? await clientRegion() : clientRegion;
        const inferredRegion = await inferPhysicalRegion();
        if (!inferredRegion) {
          return "standard";
        }
        if (resolvedRegion === inferredRegion) {
          return "in-region";
        } else {
          return "cross-region";
        }
      }
      return "standard";
    }, "resolveNodeDefaultsModeAuto");
    var inferPhysicalRegion = /* @__PURE__ */ __name2(async () => {
      if (process.env[AWS_EXECUTION_ENV] && (process.env[AWS_REGION_ENV] || process.env[AWS_DEFAULT_REGION_ENV])) {
        return process.env[AWS_REGION_ENV] ?? process.env[AWS_DEFAULT_REGION_ENV];
      }
      if (!process.env[ENV_IMDS_DISABLED]) {
        try {
          const { getInstanceMetadataEndpoint, httpRequest } = await Promise.resolve().then(() => __toESM2(require_dist_cjs39()));
          const endpoint = await getInstanceMetadataEndpoint();
          return (await httpRequest({ ...endpoint, path: IMDS_REGION_PATH })).toString();
        } catch (e3) {
        }
      }
    }, "inferPhysicalRegion");
  }
});

// ../../node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.js
var require_runtimeConfig = __commonJS({
  "../../node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.getRuntimeConfig = void 0;
    var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
    var package_json_1 = tslib_1.__importDefault(require_package2());
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var util_user_agent_node_1 = require_dist_cjs41();
    var config_resolver_1 = require_dist_cjs30();
    var hash_node_1 = require_dist_cjs42();
    var middleware_retry_1 = require_dist_cjs37();
    var node_config_provider_1 = require_dist_cjs33();
    var node_http_handler_1 = require_dist_cjs14();
    var util_body_length_node_1 = require_dist_cjs43();
    var util_retry_1 = require_dist_cjs36();
    var runtimeConfig_shared_1 = require_runtimeConfig_shared();
    var smithy_client_1 = require_dist_cjs26();
    var util_defaults_mode_node_1 = require_dist_cjs44();
    var smithy_client_2 = require_dist_cjs26();
    var getRuntimeConfig5 = /* @__PURE__ */ __name((config) => {
      (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
      const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
      const defaultConfigProvider = /* @__PURE__ */ __name(() => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode), "defaultConfigProvider");
      const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
      (0, core_1.emitWarningIfUnsupportedVersion)(process.version);
      const loaderConfig = {
        profile: config?.profile,
        logger: clientSharedValues.logger
      };
      return {
        ...clientSharedValues,
        ...config,
        runtime: "node",
        defaultsMode,
        authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
        bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
        defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
        maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
        region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
        requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
        retryMode: config?.retryMode ?? (0, node_config_provider_1.loadConfig)({
          ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
          default: /* @__PURE__ */ __name(async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE, "default")
        }, config),
        sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
        streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
        useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
        useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
        userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig)
      };
    }, "getRuntimeConfig");
    exports2.getRuntimeConfig = getRuntimeConfig5;
  }
});

// ../../node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js
var require_dist_cjs45 = __commonJS({
  "../../node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js"(exports2, module2) {
    "use strict";
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var index_exports = {};
    __export2(index_exports, {
      NODE_REGION_CONFIG_FILE_OPTIONS: /* @__PURE__ */ __name(() => NODE_REGION_CONFIG_FILE_OPTIONS4, "NODE_REGION_CONFIG_FILE_OPTIONS"),
      NODE_REGION_CONFIG_OPTIONS: /* @__PURE__ */ __name(() => NODE_REGION_CONFIG_OPTIONS4, "NODE_REGION_CONFIG_OPTIONS"),
      REGION_ENV_NAME: /* @__PURE__ */ __name(() => REGION_ENV_NAME, "REGION_ENV_NAME"),
      REGION_INI_NAME: /* @__PURE__ */ __name(() => REGION_INI_NAME, "REGION_INI_NAME"),
      getAwsRegionExtensionConfiguration: /* @__PURE__ */ __name(() => getAwsRegionExtensionConfiguration3, "getAwsRegionExtensionConfiguration"),
      resolveAwsRegionExtensionConfiguration: /* @__PURE__ */ __name(() => resolveAwsRegionExtensionConfiguration3, "resolveAwsRegionExtensionConfiguration"),
      resolveRegionConfig: /* @__PURE__ */ __name(() => resolveRegionConfig3, "resolveRegionConfig")
    });
    module2.exports = __toCommonJS2(index_exports);
    var getAwsRegionExtensionConfiguration3 = /* @__PURE__ */ __name2((runtimeConfig) => {
      return {
        setRegion(region) {
          runtimeConfig.region = region;
        },
        region() {
          return runtimeConfig.region;
        }
      };
    }, "getAwsRegionExtensionConfiguration");
    var resolveAwsRegionExtensionConfiguration3 = /* @__PURE__ */ __name2((awsRegionExtensionConfiguration) => {
      return {
        region: awsRegionExtensionConfiguration.region()
      };
    }, "resolveAwsRegionExtensionConfiguration");
    var REGION_ENV_NAME = "AWS_REGION";
    var REGION_INI_NAME = "region";
    var NODE_REGION_CONFIG_OPTIONS4 = {
      environmentVariableSelector: /* @__PURE__ */ __name2((env2) => env2[REGION_ENV_NAME], "environmentVariableSelector"),
      configFileSelector: /* @__PURE__ */ __name2((profile) => profile[REGION_INI_NAME], "configFileSelector"),
      default: /* @__PURE__ */ __name2(() => {
        throw new Error("Region is missing");
      }, "default")
    };
    var NODE_REGION_CONFIG_FILE_OPTIONS4 = {
      preferredFile: "credentials"
    };
    var isFipsRegion = /* @__PURE__ */ __name2((region) => typeof region === "string" && (region.startsWith("fips-") || region.endsWith("-fips")), "isFipsRegion");
    var getRealRegion = /* @__PURE__ */ __name2((region) => isFipsRegion(region) ? ["fips-aws-global", "aws-fips"].includes(region) ? "us-east-1" : region.replace(/fips-(dkr-|prod-)?|-fips/, "") : region, "getRealRegion");
    var resolveRegionConfig3 = /* @__PURE__ */ __name2((input) => {
      const { region, useFipsEndpoint } = input;
      if (!region) {
        throw new Error("Region is missing");
      }
      return Object.assign(input, {
        region: /* @__PURE__ */ __name2(async () => {
          if (typeof region === "string") {
            return getRealRegion(region);
          }
          const providedRegion = await region();
          return getRealRegion(providedRegion);
        }, "region"),
        useFipsEndpoint: /* @__PURE__ */ __name2(async () => {
          const providedRegion = typeof region === "string" ? region : await region();
          if (isFipsRegion(providedRegion)) {
            return true;
          }
          return typeof useFipsEndpoint !== "function" ? Promise.resolve(!!useFipsEndpoint) : useFipsEndpoint();
        }, "useFipsEndpoint")
      });
    }, "resolveRegionConfig");
  }
});

// ../../node_modules/@aws-sdk/client-sso/dist-cjs/index.js
var require_dist_cjs46 = __commonJS({
  "../../node_modules/@aws-sdk/client-sso/dist-cjs/index.js"(exports2, module2) {
    "use strict";
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var index_exports = {};
    __export2(index_exports, {
      GetRoleCredentialsCommand: /* @__PURE__ */ __name(() => GetRoleCredentialsCommand, "GetRoleCredentialsCommand"),
      GetRoleCredentialsRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => GetRoleCredentialsRequestFilterSensitiveLog, "GetRoleCredentialsRequestFilterSensitiveLog"),
      GetRoleCredentialsResponseFilterSensitiveLog: /* @__PURE__ */ __name(() => GetRoleCredentialsResponseFilterSensitiveLog, "GetRoleCredentialsResponseFilterSensitiveLog"),
      InvalidRequestException: /* @__PURE__ */ __name(() => InvalidRequestException2, "InvalidRequestException"),
      ListAccountRolesCommand: /* @__PURE__ */ __name(() => ListAccountRolesCommand, "ListAccountRolesCommand"),
      ListAccountRolesRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => ListAccountRolesRequestFilterSensitiveLog, "ListAccountRolesRequestFilterSensitiveLog"),
      ListAccountsCommand: /* @__PURE__ */ __name(() => ListAccountsCommand, "ListAccountsCommand"),
      ListAccountsRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => ListAccountsRequestFilterSensitiveLog, "ListAccountsRequestFilterSensitiveLog"),
      LogoutCommand: /* @__PURE__ */ __name(() => LogoutCommand, "LogoutCommand"),
      LogoutRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => LogoutRequestFilterSensitiveLog, "LogoutRequestFilterSensitiveLog"),
      ResourceNotFoundException: /* @__PURE__ */ __name(() => ResourceNotFoundException2, "ResourceNotFoundException"),
      RoleCredentialsFilterSensitiveLog: /* @__PURE__ */ __name(() => RoleCredentialsFilterSensitiveLog, "RoleCredentialsFilterSensitiveLog"),
      SSO: /* @__PURE__ */ __name(() => SSO, "SSO"),
      SSOClient: /* @__PURE__ */ __name(() => SSOClient, "SSOClient"),
      SSOServiceException: /* @__PURE__ */ __name(() => SSOServiceException, "SSOServiceException"),
      TooManyRequestsException: /* @__PURE__ */ __name(() => TooManyRequestsException, "TooManyRequestsException"),
      UnauthorizedException: /* @__PURE__ */ __name(() => UnauthorizedException, "UnauthorizedException"),
      __Client: /* @__PURE__ */ __name(() => import_smithy_client28.Client, "__Client"),
      paginateListAccountRoles: /* @__PURE__ */ __name(() => paginateListAccountRoles, "paginateListAccountRoles"),
      paginateListAccounts: /* @__PURE__ */ __name(() => paginateListAccounts, "paginateListAccounts")
    });
    module2.exports = __toCommonJS2(index_exports);
    var import_middleware_host_header3 = require_dist_cjs3();
    var import_middleware_logger3 = require_dist_cjs4();
    var import_middleware_recursion_detection3 = require_dist_cjs5();
    var import_middleware_user_agent3 = require_dist_cjs28();
    var import_config_resolver6 = require_dist_cjs30();
    var import_core17 = (init_dist_es(), __toCommonJS(dist_es_exports));
    var import_middleware_content_length3 = require_dist_cjs31();
    var import_middleware_endpoint8 = require_dist_cjs34();
    var import_middleware_retry5 = require_dist_cjs37();
    var import_httpAuthSchemeProvider5 = require_httpAuthSchemeProvider2();
    var resolveClientEndpointParameters3 = /* @__PURE__ */ __name2((options) => {
      return Object.assign(options, {
        useDualstackEndpoint: options.useDualstackEndpoint ?? false,
        useFipsEndpoint: options.useFipsEndpoint ?? false,
        defaultSigningName: "awsssoportal"
      });
    }, "resolveClientEndpointParameters");
    var commonParams3 = {
      UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
      Endpoint: { type: "builtInParams", name: "endpoint" },
      Region: { type: "builtInParams", name: "region" },
      UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
    };
    var import_runtimeConfig5 = require_runtimeConfig();
    var import_region_config_resolver3 = require_dist_cjs45();
    var import_protocol_http16 = require_dist_cjs2();
    var import_smithy_client28 = require_dist_cjs26();
    var getHttpAuthExtensionConfiguration3 = /* @__PURE__ */ __name2((runtimeConfig) => {
      const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
      let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
      let _credentials = runtimeConfig.credentials;
      return {
        setHttpAuthScheme(httpAuthScheme) {
          const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
          if (index === -1) {
            _httpAuthSchemes.push(httpAuthScheme);
          } else {
            _httpAuthSchemes.splice(index, 1, httpAuthScheme);
          }
        },
        httpAuthSchemes() {
          return _httpAuthSchemes;
        },
        setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
          _httpAuthSchemeProvider = httpAuthSchemeProvider;
        },
        httpAuthSchemeProvider() {
          return _httpAuthSchemeProvider;
        },
        setCredentials(credentials) {
          _credentials = credentials;
        },
        credentials() {
          return _credentials;
        }
      };
    }, "getHttpAuthExtensionConfiguration");
    var resolveHttpAuthRuntimeConfig3 = /* @__PURE__ */ __name2((config) => {
      return {
        httpAuthSchemes: config.httpAuthSchemes(),
        httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
        credentials: config.credentials()
      };
    }, "resolveHttpAuthRuntimeConfig");
    var resolveRuntimeExtensions3 = /* @__PURE__ */ __name2((runtimeConfig, extensions) => {
      const extensionConfiguration = Object.assign(
        (0, import_region_config_resolver3.getAwsRegionExtensionConfiguration)(runtimeConfig),
        (0, import_smithy_client28.getDefaultExtensionConfiguration)(runtimeConfig),
        (0, import_protocol_http16.getHttpHandlerExtensionConfiguration)(runtimeConfig),
        getHttpAuthExtensionConfiguration3(runtimeConfig)
      );
      extensions.forEach((extension) => extension.configure(extensionConfiguration));
      return Object.assign(
        runtimeConfig,
        (0, import_region_config_resolver3.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
        (0, import_smithy_client28.resolveDefaultRuntimeConfig)(extensionConfiguration),
        (0, import_protocol_http16.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
        resolveHttpAuthRuntimeConfig3(extensionConfiguration)
      );
    }, "resolveRuntimeExtensions");
    var SSOClient = class extends import_smithy_client28.Client {
      static {
        __name(this, "SSOClient");
      }
      static {
        __name2(this, "SSOClient");
      }
      /**
       * The resolved configuration of SSOClient class. This is resolved and normalized from the {@link SSOClientConfig | constructor configuration interface}.
       */
      config;
      constructor(...[configuration]) {
        const _config_0 = (0, import_runtimeConfig5.getRuntimeConfig)(configuration || {});
        super(_config_0);
        this.initConfig = _config_0;
        const _config_1 = resolveClientEndpointParameters3(_config_0);
        const _config_2 = (0, import_middleware_user_agent3.resolveUserAgentConfig)(_config_1);
        const _config_3 = (0, import_middleware_retry5.resolveRetryConfig)(_config_2);
        const _config_4 = (0, import_config_resolver6.resolveRegionConfig)(_config_3);
        const _config_5 = (0, import_middleware_host_header3.resolveHostHeaderConfig)(_config_4);
        const _config_6 = (0, import_middleware_endpoint8.resolveEndpointConfig)(_config_5);
        const _config_7 = (0, import_httpAuthSchemeProvider5.resolveHttpAuthSchemeConfig)(_config_6);
        const _config_8 = resolveRuntimeExtensions3(_config_7, configuration?.extensions || []);
        this.config = _config_8;
        this.middlewareStack.use((0, import_middleware_user_agent3.getUserAgentPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_retry5.getRetryPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_content_length3.getContentLengthPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_host_header3.getHostHeaderPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_logger3.getLoggerPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_recursion_detection3.getRecursionDetectionPlugin)(this.config));
        this.middlewareStack.use(
          (0, import_core17.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
            httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider5.defaultSSOHttpAuthSchemeParametersProvider,
            identityProviderConfigProvider: /* @__PURE__ */ __name2(async (config) => new import_core17.DefaultIdentityProviderConfig({
              "aws.auth#sigv4": config.credentials
            }), "identityProviderConfigProvider")
          })
        );
        this.middlewareStack.use((0, import_core17.getHttpSigningPlugin)(this.config));
      }
      /**
       * Destroy underlying resources, like sockets. It's usually not necessary to do this.
       * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
       * Otherwise, sockets might stay open for quite a long time before the server terminates them.
       */
      destroy() {
        super.destroy();
      }
    };
    var import_middleware_serde5 = require_dist_cjs7();
    var SSOServiceException = class _SSOServiceException extends import_smithy_client28.ServiceException {
      static {
        __name(this, "_SSOServiceException");
      }
      static {
        __name2(this, "SSOServiceException");
      }
      /**
       * @internal
       */
      constructor(options) {
        super(options);
        Object.setPrototypeOf(this, _SSOServiceException.prototype);
      }
    };
    var InvalidRequestException2 = class _InvalidRequestException extends SSOServiceException {
      static {
        __name(this, "_InvalidRequestException");
      }
      static {
        __name2(this, "InvalidRequestException");
      }
      name = "InvalidRequestException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidRequestException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidRequestException.prototype);
      }
    };
    var ResourceNotFoundException2 = class _ResourceNotFoundException extends SSOServiceException {
      static {
        __name(this, "_ResourceNotFoundException");
      }
      static {
        __name2(this, "ResourceNotFoundException");
      }
      name = "ResourceNotFoundException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ResourceNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
      }
    };
    var TooManyRequestsException = class _TooManyRequestsException extends SSOServiceException {
      static {
        __name(this, "_TooManyRequestsException");
      }
      static {
        __name2(this, "TooManyRequestsException");
      }
      name = "TooManyRequestsException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "TooManyRequestsException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _TooManyRequestsException.prototype);
      }
    };
    var UnauthorizedException = class _UnauthorizedException extends SSOServiceException {
      static {
        __name(this, "_UnauthorizedException");
      }
      static {
        __name2(this, "UnauthorizedException");
      }
      name = "UnauthorizedException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "UnauthorizedException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _UnauthorizedException.prototype);
      }
    };
    var GetRoleCredentialsRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.accessToken && { accessToken: import_smithy_client28.SENSITIVE_STRING }
    }), "GetRoleCredentialsRequestFilterSensitiveLog");
    var RoleCredentialsFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.secretAccessKey && { secretAccessKey: import_smithy_client28.SENSITIVE_STRING },
      ...obj.sessionToken && { sessionToken: import_smithy_client28.SENSITIVE_STRING }
    }), "RoleCredentialsFilterSensitiveLog");
    var GetRoleCredentialsResponseFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.roleCredentials && { roleCredentials: RoleCredentialsFilterSensitiveLog(obj.roleCredentials) }
    }), "GetRoleCredentialsResponseFilterSensitiveLog");
    var ListAccountRolesRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.accessToken && { accessToken: import_smithy_client28.SENSITIVE_STRING }
    }), "ListAccountRolesRequestFilterSensitiveLog");
    var ListAccountsRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.accessToken && { accessToken: import_smithy_client28.SENSITIVE_STRING }
    }), "ListAccountsRequestFilterSensitiveLog");
    var LogoutRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.accessToken && { accessToken: import_smithy_client28.SENSITIVE_STRING }
    }), "LogoutRequestFilterSensitiveLog");
    var import_core22 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var se_GetRoleCredentialsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xasbt]: input[_aT]
      });
      b3.bp("/federation/credentials");
      const query = (0, import_smithy_client28.map)({
        [_rn]: [, (0, import_smithy_client28.expectNonNull)(input[_rN], `roleName`)],
        [_ai]: [, (0, import_smithy_client28.expectNonNull)(input[_aI], `accountId`)]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_GetRoleCredentialsCommand");
    var se_ListAccountRolesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xasbt]: input[_aT]
      });
      b3.bp("/assignment/roles");
      const query = (0, import_smithy_client28.map)({
        [_nt]: [, input[_nT]],
        [_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
        [_ai]: [, (0, import_smithy_client28.expectNonNull)(input[_aI], `accountId`)]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_ListAccountRolesCommand");
    var se_ListAccountsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xasbt]: input[_aT]
      });
      b3.bp("/assignment/accounts");
      const query = (0, import_smithy_client28.map)({
        [_nt]: [, input[_nT]],
        [_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_ListAccountsCommand");
    var se_LogoutCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xasbt]: input[_aT]
      });
      b3.bp("/logout");
      let body;
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_LogoutCommand");
    var de_GetRoleCredentialsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        roleCredentials: import_smithy_client28._json
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_GetRoleCredentialsCommand");
    var de_ListAccountRolesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        nextToken: import_smithy_client28.expectString,
        roleList: import_smithy_client28._json
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_ListAccountRolesCommand");
    var de_ListAccountsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        accountList: import_smithy_client28._json,
        nextToken: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_ListAccountsCommand");
    var de_LogoutCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_LogoutCommand");
    var de_CommandError3 = /* @__PURE__ */ __name2(async (output, context) => {
      const parsedOutput = {
        ...output,
        body: await (0, import_core22.parseJsonErrorBody)(output.body, context)
      };
      const errorCode = (0, import_core22.loadRestJsonErrorCode)(output, parsedOutput.body);
      switch (errorCode) {
        case "InvalidRequestException":
        case "com.amazonaws.sso#InvalidRequestException":
          throw await de_InvalidRequestExceptionRes2(parsedOutput, context);
        case "ResourceNotFoundException":
        case "com.amazonaws.sso#ResourceNotFoundException":
          throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
        case "TooManyRequestsException":
        case "com.amazonaws.sso#TooManyRequestsException":
          throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
        case "UnauthorizedException":
        case "com.amazonaws.sso#UnauthorizedException":
          throw await de_UnauthorizedExceptionRes(parsedOutput, context);
        default:
          const parsedBody = parsedOutput.body;
          return throwDefaultError3({
            output,
            parsedBody,
            errorCode
          });
      }
    }, "de_CommandError");
    var throwDefaultError3 = (0, import_smithy_client28.withBaseException)(SSOServiceException);
    var de_InvalidRequestExceptionRes2 = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client28.take)(data3, {
        message: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      const exception = new InvalidRequestException2({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_InvalidRequestExceptionRes");
    var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client28.take)(data3, {
        message: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      const exception = new ResourceNotFoundException2({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_ResourceNotFoundExceptionRes");
    var de_TooManyRequestsExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client28.take)(data3, {
        message: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      const exception = new TooManyRequestsException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_TooManyRequestsExceptionRes");
    var de_UnauthorizedExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client28.take)(data3, {
        message: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      const exception = new UnauthorizedException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_UnauthorizedExceptionRes");
    var deserializeMetadata3 = /* @__PURE__ */ __name2((output) => ({
      httpStatusCode: output.statusCode,
      requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
      extendedRequestId: output.headers["x-amz-id-2"],
      cfId: output.headers["x-amz-cf-id"]
    }), "deserializeMetadata");
    var _aI = "accountId";
    var _aT = "accessToken";
    var _ai = "account_id";
    var _mR = "maxResults";
    var _mr = "max_result";
    var _nT = "nextToken";
    var _nt = "next_token";
    var _rN = "roleName";
    var _rn = "role_name";
    var _xasbt = "x-amz-sso_bearer_token";
    var GetRoleCredentialsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("SWBPortalService", "GetRoleCredentials", {}).n("SSOClient", "GetRoleCredentialsCommand").f(GetRoleCredentialsRequestFilterSensitiveLog, GetRoleCredentialsResponseFilterSensitiveLog).ser(se_GetRoleCredentialsCommand).de(de_GetRoleCredentialsCommand).build() {
      static {
        __name(this, "GetRoleCredentialsCommand");
      }
      static {
        __name2(this, "GetRoleCredentialsCommand");
      }
    };
    var ListAccountRolesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("SWBPortalService", "ListAccountRoles", {}).n("SSOClient", "ListAccountRolesCommand").f(ListAccountRolesRequestFilterSensitiveLog, void 0).ser(se_ListAccountRolesCommand).de(de_ListAccountRolesCommand).build() {
      static {
        __name(this, "ListAccountRolesCommand");
      }
      static {
        __name2(this, "ListAccountRolesCommand");
      }
    };
    var ListAccountsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("SWBPortalService", "ListAccounts", {}).n("SSOClient", "ListAccountsCommand").f(ListAccountsRequestFilterSensitiveLog, void 0).ser(se_ListAccountsCommand).de(de_ListAccountsCommand).build() {
      static {
        __name(this, "ListAccountsCommand");
      }
      static {
        __name2(this, "ListAccountsCommand");
      }
    };
    var LogoutCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("SWBPortalService", "Logout", {}).n("SSOClient", "LogoutCommand").f(LogoutRequestFilterSensitiveLog, void 0).ser(se_LogoutCommand).de(de_LogoutCommand).build() {
      static {
        __name(this, "LogoutCommand");
      }
      static {
        __name2(this, "LogoutCommand");
      }
    };
    var commands3 = {
      GetRoleCredentialsCommand,
      ListAccountRolesCommand,
      ListAccountsCommand,
      LogoutCommand
    };
    var SSO = class extends SSOClient {
      static {
        __name(this, "SSO");
      }
      static {
        __name2(this, "SSO");
      }
    };
    (0, import_smithy_client28.createAggregatedClient)(commands3, SSO);
    var paginateListAccountRoles = (0, import_core17.createPaginator)(SSOClient, ListAccountRolesCommand, "nextToken", "nextToken", "maxResults");
    var paginateListAccounts = (0, import_core17.createPaginator)(SSOClient, ListAccountsCommand, "nextToken", "nextToken", "maxResults");
  }
});

// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/auth/httpAuthSchemeProvider.js
function createAwsAuthSigv4HttpAuthOption(authParameters) {
  return {
    schemeId: "aws.auth#sigv4",
    signingProperties: {
      name: "sso-oauth",
      region: authParameters.region
    },
    propertiesExtractor: /* @__PURE__ */ __name((config, context) => ({
      signingProperties: {
        config,
        context
      }
    }), "propertiesExtractor")
  };
}
function createSmithyApiNoAuthHttpAuthOption(authParameters) {
  return {
    schemeId: "smithy.api#noAuth"
  };
}
var import_util_middleware6, defaultSSOOIDCHttpAuthSchemeParametersProvider, defaultSSOOIDCHttpAuthSchemeProvider, resolveHttpAuthSchemeConfig;
var init_httpAuthSchemeProvider = __esm({
  "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/auth/httpAuthSchemeProvider.js"() {
    init_dist_es2();
    import_util_middleware6 = __toESM(require_dist_cjs6());
    defaultSSOOIDCHttpAuthSchemeParametersProvider = /* @__PURE__ */ __name(async (config, context, input) => {
      return {
        operation: (0, import_util_middleware6.getSmithyContext)(context).operation,
        region: await (0, import_util_middleware6.normalizeProvider)(config.region)() || (() => {
          throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
        })()
      };
    }, "defaultSSOOIDCHttpAuthSchemeParametersProvider");
    __name(createAwsAuthSigv4HttpAuthOption, "createAwsAuthSigv4HttpAuthOption");
    __name(createSmithyApiNoAuthHttpAuthOption, "createSmithyApiNoAuthHttpAuthOption");
    defaultSSOOIDCHttpAuthSchemeProvider = /* @__PURE__ */ __name((authParameters) => {
      const options = [];
      switch (authParameters.operation) {
        case "CreateToken": {
          options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
          break;
        }
        default: {
          options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
        }
      }
      return options;
    }, "defaultSSOOIDCHttpAuthSchemeProvider");
    resolveHttpAuthSchemeConfig = /* @__PURE__ */ __name((config) => {
      const config_0 = resolveAwsSdkSigV4Config(config);
      return Object.assign(config_0, {
        authSchemePreference: (0, import_util_middleware6.normalizeProvider)(config.authSchemePreference ?? [])
      });
    }, "resolveHttpAuthSchemeConfig");
  }
});

// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/EndpointParameters.js
var resolveClientEndpointParameters, commonParams;
var init_EndpointParameters = __esm({
  "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/EndpointParameters.js"() {
    resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
      return Object.assign(options, {
        useDualstackEndpoint: options.useDualstackEndpoint ?? false,
        useFipsEndpoint: options.useFipsEndpoint ?? false,
        defaultSigningName: "sso-oauth"
      });
    }, "resolveClientEndpointParameters");
    commonParams = {
      UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
      Endpoint: { type: "builtInParams", name: "endpoint" },
      Region: { type: "builtInParams", name: "region" },
      UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
    };
  }
});

// ../../node_modules/@aws-sdk/nested-clients/package.json
var package_default;
var init_package = __esm({
  "../../node_modules/@aws-sdk/nested-clients/package.json"() {
    package_default = {
      name: "@aws-sdk/nested-clients",
      version: "3.879.0",
      description: "Nested clients for AWS SDK packages.",
      main: "./dist-cjs/index.js",
      module: "./dist-es/index.js",
      types: "./dist-types/index.d.ts",
      scripts: {
        build: "yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
        "build:cjs": "node ../../scripts/compilation/inline nested-clients",
        "build:es": "tsc -p tsconfig.es.json",
        "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
        "build:types": "tsc -p tsconfig.types.json",
        "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
        clean: "rimraf ./dist-* && rimraf *.tsbuildinfo",
        lint: "node ../../scripts/validation/submodules-linter.js --pkg nested-clients",
        test: "yarn g:vitest run",
        "test:watch": "yarn g:vitest watch"
      },
      engines: {
        node: ">=18.0.0"
      },
      author: {
        name: "AWS SDK for JavaScript Team",
        url: "https://aws.amazon.com/javascript/"
      },
      license: "Apache-2.0",
      dependencies: {
        "@aws-crypto/sha256-browser": "5.2.0",
        "@aws-crypto/sha256-js": "5.2.0",
        "@aws-sdk/core": "3.879.0",
        "@aws-sdk/middleware-host-header": "3.873.0",
        "@aws-sdk/middleware-logger": "3.876.0",
        "@aws-sdk/middleware-recursion-detection": "3.873.0",
        "@aws-sdk/middleware-user-agent": "3.879.0",
        "@aws-sdk/region-config-resolver": "3.873.0",
        "@aws-sdk/types": "3.862.0",
        "@aws-sdk/util-endpoints": "3.879.0",
        "@aws-sdk/util-user-agent-browser": "3.873.0",
        "@aws-sdk/util-user-agent-node": "3.879.0",
        "@smithy/config-resolver": "^4.1.5",
        "@smithy/core": "^3.9.0",
        "@smithy/fetch-http-handler": "^5.1.1",
        "@smithy/hash-node": "^4.0.5",
        "@smithy/invalid-dependency": "^4.0.5",
        "@smithy/middleware-content-length": "^4.0.5",
        "@smithy/middleware-endpoint": "^4.1.19",
        "@smithy/middleware-retry": "^4.1.20",
        "@smithy/middleware-serde": "^4.0.9",
        "@smithy/middleware-stack": "^4.0.5",
        "@smithy/node-config-provider": "^4.1.4",
        "@smithy/node-http-handler": "^4.1.1",
        "@smithy/protocol-http": "^5.1.3",
        "@smithy/smithy-client": "^4.5.0",
        "@smithy/types": "^4.3.2",
        "@smithy/url-parser": "^4.0.5",
        "@smithy/util-base64": "^4.0.0",
        "@smithy/util-body-length-browser": "^4.0.0",
        "@smithy/util-body-length-node": "^4.0.0",
        "@smithy/util-defaults-mode-browser": "^4.0.27",
        "@smithy/util-defaults-mode-node": "^4.0.27",
        "@smithy/util-endpoints": "^3.0.7",
        "@smithy/util-middleware": "^4.0.5",
        "@smithy/util-retry": "^4.0.7",
        "@smithy/util-utf8": "^4.0.0",
        tslib: "^2.6.2"
      },
      devDependencies: {
        concurrently: "7.0.0",
        "downlevel-dts": "0.10.1",
        rimraf: "3.0.2",
        typescript: "~5.8.3"
      },
      typesVersions: {
        "<4.0": {
          "dist-types/*": [
            "dist-types/ts3.4/*"
          ]
        }
      },
      files: [
        "./sso-oidc.d.ts",
        "./sso-oidc.js",
        "./sts.d.ts",
        "./sts.js",
        "dist-*/**"
      ],
      browser: {
        "./dist-es/submodules/sso-oidc/runtimeConfig": "./dist-es/submodules/sso-oidc/runtimeConfig.browser",
        "./dist-es/submodules/sts/runtimeConfig": "./dist-es/submodules/sts/runtimeConfig.browser"
      },
      "react-native": {},
      homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients",
      repository: {
        type: "git",
        url: "https://github.com/aws/aws-sdk-js-v3.git",
        directory: "packages/nested-clients"
      },
      exports: {
        "./sso-oidc": {
          types: "./dist-types/submodules/sso-oidc/index.d.ts",
          module: "./dist-es/submodules/sso-oidc/index.js",
          node: "./dist-cjs/submodules/sso-oidc/index.js",
          import: "./dist-es/submodules/sso-oidc/index.js",
          require: "./dist-cjs/submodules/sso-oidc/index.js"
        },
        "./sts": {
          types: "./dist-types/submodules/sts/index.d.ts",
          module: "./dist-es/submodules/sts/index.js",
          node: "./dist-cjs/submodules/sts/index.js",
          import: "./dist-es/submodules/sts/index.js",
          require: "./dist-cjs/submodules/sts/index.js"
        }
      }
    };
  }
});

// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/ruleset.js
var u, v, w, x, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, _data, ruleSet;
var init_ruleset = __esm({
  "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/ruleset.js"() {
    u = "required";
    v = "fn";
    w = "argv";
    x = "ref";
    a = true;
    b = "isSet";
    c = "booleanEquals";
    d = "error";
    e = "endpoint";
    f = "tree";
    g = "PartitionResult";
    h = "getAttr";
    i = { [u]: false, "type": "String" };
    j = { [u]: true, "default": false, "type": "Boolean" };
    k = { [x]: "Endpoint" };
    l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] };
    m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] };
    n = {};
    o = { [v]: h, [w]: [{ [x]: g }, "supportsFIPS"] };
    p = { [x]: g };
    q = { [v]: c, [w]: [true, { [v]: h, [w]: [p, "supportsDualStack"] }] };
    r = [l];
    s = [m];
    t = [{ [x]: "Region" }];
    _data = { version: "1.0", parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i }, rules: [{ conditions: [{ [v]: b, [w]: [k] }], rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: k, properties: n, headers: n }, type: e }], type: f }, { conditions: [{ [v]: b, [w]: t }], rules: [{ conditions: [{ [v]: "aws.partition", [w]: t, assign: g }], rules: [{ conditions: [l, m], rules: [{ conditions: [{ [v]: c, [w]: [a, o] }, q], rules: [{ endpoint: { url: "https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: r, rules: [{ conditions: [{ [v]: c, [w]: [o, a] }], rules: [{ conditions: [{ [v]: "stringEquals", [w]: [{ [v]: h, [w]: [p, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://oidc.{Region}.amazonaws.com", properties: n, headers: n }, type: e }, { endpoint: { url: "https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: s, rules: [{ conditions: [q], rules: [{ endpoint: { url: "https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://oidc.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
    ruleSet = _data;
  }
});

// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/endpointResolver.js
var import_util_endpoints, import_util_endpoints2, cache, defaultEndpointResolver;
var init_endpointResolver = __esm({
  "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/endpointResolver.js"() {
    import_util_endpoints = __toESM(require_dist_cjs21());
    import_util_endpoints2 = __toESM(require_dist_cjs18());
    init_ruleset();
    cache = new import_util_endpoints2.EndpointCache({
      size: 50,
      params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"]
    });
    defaultEndpointResolver = /* @__PURE__ */ __name((endpointParams, context = {}) => {
      return cache.get(endpointParams, () => (0, import_util_endpoints2.resolveEndpoint)(ruleSet, {
        endpointParams,
        logger: context.logger
      }));
    }, "defaultEndpointResolver");
    import_util_endpoints2.customEndpointFunctions.aws = import_util_endpoints.awsEndpointFunctions;
  }
});

// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.shared.js
var import_smithy_client7, import_url_parser, import_util_base647, import_util_utf88, getRuntimeConfig;
var init_runtimeConfig_shared = __esm({
  "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.shared.js"() {
    init_dist_es2();
    init_dist_es();
    import_smithy_client7 = __toESM(require_dist_cjs26());
    import_url_parser = __toESM(require_dist_cjs20());
    import_util_base647 = __toESM(require_dist_cjs11());
    import_util_utf88 = __toESM(require_dist_cjs10());
    init_httpAuthSchemeProvider();
    init_endpointResolver();
    getRuntimeConfig = /* @__PURE__ */ __name((config) => {
      return {
        apiVersion: "2019-06-10",
        base64Decoder: config?.base64Decoder ?? import_util_base647.fromBase64,
        base64Encoder: config?.base64Encoder ?? import_util_base647.toBase64,
        disableHostPrefix: config?.disableHostPrefix ?? false,
        endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
        extensions: config?.extensions ?? [],
        httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSSOOIDCHttpAuthSchemeProvider,
        httpAuthSchemes: config?.httpAuthSchemes ?? [
          {
            schemeId: "aws.auth#sigv4",
            identityProvider: /* @__PURE__ */ __name((ipc) => ipc.getIdentityProvider("aws.auth#sigv4"), "identityProvider"),
            signer: new AwsSdkSigV4Signer()
          },
          {
            schemeId: "smithy.api#noAuth",
            identityProvider: /* @__PURE__ */ __name((ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})), "identityProvider"),
            signer: new NoAuthSigner()
          }
        ],
        logger: config?.logger ?? new import_smithy_client7.NoOpLogger(),
        serviceId: config?.serviceId ?? "SSO OIDC",
        urlParser: config?.urlParser ?? import_url_parser.parseUrl,
        utf8Decoder: config?.utf8Decoder ?? import_util_utf88.fromUtf8,
        utf8Encoder: config?.utf8Encoder ?? import_util_utf88.toUtf8
      };
    }, "getRuntimeConfig");
  }
});

// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.js
var import_util_user_agent_node, import_config_resolver, import_hash_node, import_middleware_retry, import_node_config_provider, import_node_http_handler, import_util_body_length_node, import_util_retry, import_smithy_client8, import_util_defaults_mode_node, import_smithy_client9, getRuntimeConfig2;
var init_runtimeConfig = __esm({
  "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.js"() {
    init_package();
    init_dist_es2();
    import_util_user_agent_node = __toESM(require_dist_cjs41());
    import_config_resolver = __toESM(require_dist_cjs30());
    import_hash_node = __toESM(require_dist_cjs42());
    import_middleware_retry = __toESM(require_dist_cjs37());
    import_node_config_provider = __toESM(require_dist_cjs33());
    import_node_http_handler = __toESM(require_dist_cjs14());
    import_util_body_length_node = __toESM(require_dist_cjs43());
    import_util_retry = __toESM(require_dist_cjs36());
    init_runtimeConfig_shared();
    import_smithy_client8 = __toESM(require_dist_cjs26());
    import_util_defaults_mode_node = __toESM(require_dist_cjs44());
    import_smithy_client9 = __toESM(require_dist_cjs26());
    getRuntimeConfig2 = /* @__PURE__ */ __name((config) => {
      (0, import_smithy_client9.emitWarningIfUnsupportedVersion)(process.version);
      const defaultsMode = (0, import_util_defaults_mode_node.resolveDefaultsModeConfig)(config);
      const defaultConfigProvider = /* @__PURE__ */ __name(() => defaultsMode().then(import_smithy_client8.loadConfigsForDefaultMode), "defaultConfigProvider");
      const clientSharedValues = getRuntimeConfig(config);
      emitWarningIfUnsupportedVersion(process.version);
      const loaderConfig = {
        profile: config?.profile,
        logger: clientSharedValues.logger
      };
      return {
        ...clientSharedValues,
        ...config,
        runtime: "node",
        defaultsMode,
        authSchemePreference: config?.authSchemePreference ?? (0, import_node_config_provider.loadConfig)(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
        bodyLengthChecker: config?.bodyLengthChecker ?? import_util_body_length_node.calculateBodyLength,
        defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, import_util_user_agent_node.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_default.version }),
        maxAttempts: config?.maxAttempts ?? (0, import_node_config_provider.loadConfig)(import_middleware_retry.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
        region: config?.region ?? (0, import_node_config_provider.loadConfig)(import_config_resolver.NODE_REGION_CONFIG_OPTIONS, { ...import_config_resolver.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
        requestHandler: import_node_http_handler.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
        retryMode: config?.retryMode ?? (0, import_node_config_provider.loadConfig)({
          ...import_middleware_retry.NODE_RETRY_MODE_CONFIG_OPTIONS,
          default: /* @__PURE__ */ __name(async () => (await defaultConfigProvider()).retryMode || import_util_retry.DEFAULT_RETRY_MODE, "default")
        }, config),
        sha256: config?.sha256 ?? import_hash_node.Hash.bind(null, "sha256"),
        streamCollector: config?.streamCollector ?? import_node_http_handler.streamCollector,
        useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, import_node_config_provider.loadConfig)(import_config_resolver.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
        useFipsEndpoint: config?.useFipsEndpoint ?? (0, import_node_config_provider.loadConfig)(import_config_resolver.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
        userAgentAppId: config?.userAgentAppId ?? (0, import_node_config_provider.loadConfig)(import_util_user_agent_node.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig)
      };
    }, "getRuntimeConfig");
  }
});

// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/auth/httpAuthExtensionConfiguration.js
var getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig;
var init_httpAuthExtensionConfiguration = __esm({
  "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/auth/httpAuthExtensionConfiguration.js"() {
    getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
      const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
      let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
      let _credentials = runtimeConfig.credentials;
      return {
        setHttpAuthScheme(httpAuthScheme) {
          const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
          if (index === -1) {
            _httpAuthSchemes.push(httpAuthScheme);
          } else {
            _httpAuthSchemes.splice(index, 1, httpAuthScheme);
          }
        },
        httpAuthSchemes() {
          return _httpAuthSchemes;
        },
        setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
          _httpAuthSchemeProvider = httpAuthSchemeProvider;
        },
        httpAuthSchemeProvider() {
          return _httpAuthSchemeProvider;
        },
        setCredentials(credentials) {
          _credentials = credentials;
        },
        credentials() {
          return _credentials;
        }
      };
    }, "getHttpAuthExtensionConfiguration");
    resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
      return {
        httpAuthSchemes: config.httpAuthSchemes(),
        httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
        credentials: config.credentials()
      };
    }, "resolveHttpAuthRuntimeConfig");
  }
});

// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeExtensions.js
var import_region_config_resolver, import_protocol_http13, import_smithy_client10, resolveRuntimeExtensions;
var init_runtimeExtensions = __esm({
  "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeExtensions.js"() {
    import_region_config_resolver = __toESM(require_dist_cjs45());
    import_protocol_http13 = __toESM(require_dist_cjs2());
    import_smithy_client10 = __toESM(require_dist_cjs26());
    init_httpAuthExtensionConfiguration();
    resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
      const extensionConfiguration = Object.assign((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig), (0, import_smithy_client10.getDefaultExtensionConfiguration)(runtimeConfig), (0, import_protocol_http13.getHttpHandlerExtensionConfiguration)(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
      extensions.forEach((extension) => extension.configure(extensionConfiguration));
      return Object.assign(runtimeConfig, (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), (0, import_smithy_client10.resolveDefaultRuntimeConfig)(extensionConfiguration), (0, import_protocol_http13.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
    }, "resolveRuntimeExtensions");
  }
});

// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDCClient.js
var import_middleware_host_header, import_middleware_logger, import_middleware_recursion_detection, import_middleware_user_agent, import_config_resolver2, import_middleware_content_length, import_middleware_endpoint, import_middleware_retry2, import_smithy_client11, SSOOIDCClient;
var init_SSOOIDCClient = __esm({
  "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDCClient.js"() {
    import_middleware_host_header = __toESM(require_dist_cjs3());
    import_middleware_logger = __toESM(require_dist_cjs4());
    import_middleware_recursion_detection = __toESM(require_dist_cjs5());
    import_middleware_user_agent = __toESM(require_dist_cjs28());
    import_config_resolver2 = __toESM(require_dist_cjs30());
    init_dist_es();
    import_middleware_content_length = __toESM(require_dist_cjs31());
    import_middleware_endpoint = __toESM(require_dist_cjs34());
    import_middleware_retry2 = __toESM(require_dist_cjs37());
    import_smithy_client11 = __toESM(require_dist_cjs26());
    init_httpAuthSchemeProvider();
    init_EndpointParameters();
    init_runtimeConfig();
    init_runtimeExtensions();
    SSOOIDCClient = class extends import_smithy_client11.Client {
      static {
        __name(this, "SSOOIDCClient");
      }
      config;
      constructor(...[configuration]) {
        const _config_0 = getRuntimeConfig2(configuration || {});
        super(_config_0);
        this.initConfig = _config_0;
        const _config_1 = resolveClientEndpointParameters(_config_0);
        const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
        const _config_3 = (0, import_middleware_retry2.resolveRetryConfig)(_config_2);
        const _config_4 = (0, import_config_resolver2.resolveRegionConfig)(_config_3);
        const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
        const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
        const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
        const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
        this.config = _config_8;
        this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_retry2.getRetryPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
        this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
          httpAuthSchemeParametersProvider: defaultSSOOIDCHttpAuthSchemeParametersProvider,
          identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new DefaultIdentityProviderConfig({
            "aws.auth#sigv4": config.credentials
          }), "identityProviderConfigProvider")
        }));
        this.middlewareStack.use(getHttpSigningPlugin(this.config));
      }
      destroy() {
        super.destroy();
      }
    };
  }
});

// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/SSOOIDCServiceException.js
var import_smithy_client12, SSOOIDCServiceException;
var init_SSOOIDCServiceException = __esm({
  "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/SSOOIDCServiceException.js"() {
    import_smithy_client12 = __toESM(require_dist_cjs26());
    SSOOIDCServiceException = class _SSOOIDCServiceException extends import_smithy_client12.ServiceException {
      static {
        __name(this, "SSOOIDCServiceException");
      }
      constructor(options) {
        super(options);
        Object.setPrototypeOf(this, _SSOOIDCServiceException.prototype);
      }
    };
  }
});

// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/models_0.js
var import_smithy_client13, AccessDeniedException, AuthorizationPendingException, CreateTokenRequestFilterSensitiveLog, CreateTokenResponseFilterSensitiveLog, ExpiredTokenException, InternalServerException, InvalidClientException, InvalidGrantException, InvalidRequestException, InvalidScopeException, SlowDownException, UnauthorizedClientException, UnsupportedGrantTypeException;
var init_models_0 = __esm({
  "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/models_0.js"() {
    import_smithy_client13 = __toESM(require_dist_cjs26());
    init_SSOOIDCServiceException();
    AccessDeniedException = class _AccessDeniedException extends SSOOIDCServiceException {
      static {
        __name(this, "AccessDeniedException");
      }
      name = "AccessDeniedException";
      $fault = "client";
      error;
      error_description;
      constructor(opts) {
        super({
          name: "AccessDeniedException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _AccessDeniedException.prototype);
        this.error = opts.error;
        this.error_description = opts.error_description;
      }
    };
    AuthorizationPendingException = class _AuthorizationPendingException extends SSOOIDCServiceException {
      static {
        __name(this, "AuthorizationPendingException");
      }
      name = "AuthorizationPendingException";
      $fault = "client";
      error;
      error_description;
      constructor(opts) {
        super({
          name: "AuthorizationPendingException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _AuthorizationPendingException.prototype);
        this.error = opts.error;
        this.error_description = opts.error_description;
      }
    };
    CreateTokenRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
      ...obj,
      ...obj.clientSecret && { clientSecret: import_smithy_client13.SENSITIVE_STRING },
      ...obj.refreshToken && { refreshToken: import_smithy_client13.SENSITIVE_STRING },
      ...obj.codeVerifier && { codeVerifier: import_smithy_client13.SENSITIVE_STRING }
    }), "CreateTokenRequestFilterSensitiveLog");
    CreateTokenResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
      ...obj,
      ...obj.accessToken && { accessToken: import_smithy_client13.SENSITIVE_STRING },
      ...obj.refreshToken && { refreshToken: import_smithy_client13.SENSITIVE_STRING },
      ...obj.idToken && { idToken: import_smithy_client13.SENSITIVE_STRING }
    }), "CreateTokenResponseFilterSensitiveLog");
    ExpiredTokenException = class _ExpiredTokenException extends SSOOIDCServiceException {
      static {
        __name(this, "ExpiredTokenException");
      }
      name = "ExpiredTokenException";
      $fault = "client";
      error;
      error_description;
      constructor(opts) {
        super({
          name: "ExpiredTokenException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ExpiredTokenException.prototype);
        this.error = opts.error;
        this.error_description = opts.error_description;
      }
    };
    InternalServerException = class _InternalServerException extends SSOOIDCServiceException {
      static {
        __name(this, "InternalServerException");
      }
      name = "InternalServerException";
      $fault = "server";
      error;
      error_description;
      constructor(opts) {
        super({
          name: "InternalServerException",
          $fault: "server",
          ...opts
        });
        Object.setPrototypeOf(this, _InternalServerException.prototype);
        this.error = opts.error;
        this.error_description = opts.error_description;
      }
    };
    InvalidClientException = class _InvalidClientException extends SSOOIDCServiceException {
      static {
        __name(this, "InvalidClientException");
      }
      name = "InvalidClientException";
      $fault = "client";
      error;
      error_description;
      constructor(opts) {
        super({
          name: "InvalidClientException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidClientException.prototype);
        this.error = opts.error;
        this.error_description = opts.error_description;
      }
    };
    InvalidGrantException = class _InvalidGrantException extends SSOOIDCServiceException {
      static {
        __name(this, "InvalidGrantException");
      }
      name = "InvalidGrantException";
      $fault = "client";
      error;
      error_description;
      constructor(opts) {
        super({
          name: "InvalidGrantException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidGrantException.prototype);
        this.error = opts.error;
        this.error_description = opts.error_description;
      }
    };
    InvalidRequestException = class _InvalidRequestException extends SSOOIDCServiceException {
      static {
        __name(this, "InvalidRequestException");
      }
      name = "InvalidRequestException";
      $fault = "client";
      error;
      error_description;
      constructor(opts) {
        super({
          name: "InvalidRequestException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidRequestException.prototype);
        this.error = opts.error;
        this.error_description = opts.error_description;
      }
    };
    InvalidScopeException = class _InvalidScopeException extends SSOOIDCServiceException {
      static {
        __name(this, "InvalidScopeException");
      }
      name = "InvalidScopeException";
      $fault = "client";
      error;
      error_description;
      constructor(opts) {
        super({
          name: "InvalidScopeException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidScopeException.prototype);
        this.error = opts.error;
        this.error_description = opts.error_description;
      }
    };
    SlowDownException = class _SlowDownException extends SSOOIDCServiceException {
      static {
        __name(this, "SlowDownException");
      }
      name = "SlowDownException";
      $fault = "client";
      error;
      error_description;
      constructor(opts) {
        super({
          name: "SlowDownException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _SlowDownException.prototype);
        this.error = opts.error;
        this.error_description = opts.error_description;
      }
    };
    UnauthorizedClientException = class _UnauthorizedClientException extends SSOOIDCServiceException {
      static {
        __name(this, "UnauthorizedClientException");
      }
      name = "UnauthorizedClientException";
      $fault = "client";
      error;
      error_description;
      constructor(opts) {
        super({
          name: "UnauthorizedClientException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _UnauthorizedClientException.prototype);
        this.error = opts.error;
        this.error_description = opts.error_description;
      }
    };
    UnsupportedGrantTypeException = class _UnsupportedGrantTypeException extends SSOOIDCServiceException {
      static {
        __name(this, "UnsupportedGrantTypeException");
      }
      name = "UnsupportedGrantTypeException";
      $fault = "client";
      error;
      error_description;
      constructor(opts) {
        super({
          name: "UnsupportedGrantTypeException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _UnsupportedGrantTypeException.prototype);
        this.error = opts.error;
        this.error_description = opts.error_description;
      }
    };
  }
});

// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/protocols/Aws_restJson1.js
var import_smithy_client14, se_CreateTokenCommand, de_CreateTokenCommand, de_CommandError, throwDefaultError, de_AccessDeniedExceptionRes, de_AuthorizationPendingExceptionRes, de_ExpiredTokenExceptionRes, de_InternalServerExceptionRes, de_InvalidClientExceptionRes, de_InvalidGrantExceptionRes, de_InvalidRequestExceptionRes, de_InvalidScopeExceptionRes, de_SlowDownExceptionRes, de_UnauthorizedClientExceptionRes, de_UnsupportedGrantTypeExceptionRes, deserializeMetadata;
var init_Aws_restJson1 = __esm({
  "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/protocols/Aws_restJson1.js"() {
    init_dist_es2();
    init_dist_es();
    import_smithy_client14 = __toESM(require_dist_cjs26());
    init_models_0();
    init_SSOOIDCServiceException();
    se_CreateTokenCommand = /* @__PURE__ */ __name(async (input, context) => {
      const b3 = requestBuilder(input, context);
      const headers = {
        "content-type": "application/json"
      };
      b3.bp("/token");
      let body;
      body = JSON.stringify((0, import_smithy_client14.take)(input, {
        clientId: [],
        clientSecret: [],
        code: [],
        codeVerifier: [],
        deviceCode: [],
        grantType: [],
        redirectUri: [],
        refreshToken: [],
        scope: /* @__PURE__ */ __name((_3) => (0, import_smithy_client14._json)(_3), "scope")
      }));
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_CreateTokenCommand");
    de_CreateTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError(output, context);
      }
      const contents = (0, import_smithy_client14.map)({
        $metadata: deserializeMetadata(output)
      });
      const data3 = (0, import_smithy_client14.expectNonNull)((0, import_smithy_client14.expectObject)(await parseJsonBody(output.body, context)), "body");
      const doc = (0, import_smithy_client14.take)(data3, {
        accessToken: import_smithy_client14.expectString,
        expiresIn: import_smithy_client14.expectInt32,
        idToken: import_smithy_client14.expectString,
        refreshToken: import_smithy_client14.expectString,
        tokenType: import_smithy_client14.expectString
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_CreateTokenCommand");
    de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
      const parsedOutput = {
        ...output,
        body: await parseJsonErrorBody(output.body, context)
      };
      const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
      switch (errorCode) {
        case "AccessDeniedException":
        case "com.amazonaws.ssooidc#AccessDeniedException":
          throw await de_AccessDeniedExceptionRes(parsedOutput, context);
        case "AuthorizationPendingException":
        case "com.amazonaws.ssooidc#AuthorizationPendingException":
          throw await de_AuthorizationPendingExceptionRes(parsedOutput, context);
        case "ExpiredTokenException":
        case "com.amazonaws.ssooidc#ExpiredTokenException":
          throw await de_ExpiredTokenExceptionRes(parsedOutput, context);
        case "InternalServerException":
        case "com.amazonaws.ssooidc#InternalServerException":
          throw await de_InternalServerExceptionRes(parsedOutput, context);
        case "InvalidClientException":
        case "com.amazonaws.ssooidc#InvalidClientException":
          throw await de_InvalidClientExceptionRes(parsedOutput, context);
        case "InvalidGrantException":
        case "com.amazonaws.ssooidc#InvalidGrantException":
          throw await de_InvalidGrantExceptionRes(parsedOutput, context);
        case "InvalidRequestException":
        case "com.amazonaws.ssooidc#InvalidRequestException":
          throw await de_InvalidRequestExceptionRes(parsedOutput, context);
        case "InvalidScopeException":
        case "com.amazonaws.ssooidc#InvalidScopeException":
          throw await de_InvalidScopeExceptionRes(parsedOutput, context);
        case "SlowDownException":
        case "com.amazonaws.ssooidc#SlowDownException":
          throw await de_SlowDownExceptionRes(parsedOutput, context);
        case "UnauthorizedClientException":
        case "com.amazonaws.ssooidc#UnauthorizedClientException":
          throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
        case "UnsupportedGrantTypeException":
        case "com.amazonaws.ssooidc#UnsupportedGrantTypeException":
          throw await de_UnsupportedGrantTypeExceptionRes(parsedOutput, context);
        default:
          const parsedBody = parsedOutput.body;
          return throwDefaultError({
            output,
            parsedBody,
            errorCode
          });
      }
    }, "de_CommandError");
    throwDefaultError = (0, import_smithy_client14.withBaseException)(SSOOIDCServiceException);
    de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client14.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client14.take)(data3, {
        error: import_smithy_client14.expectString,
        error_description: import_smithy_client14.expectString
      });
      Object.assign(contents, doc);
      const exception = new AccessDeniedException({
        $metadata: deserializeMetadata(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client14.decorateServiceException)(exception, parsedOutput.body);
    }, "de_AccessDeniedExceptionRes");
    de_AuthorizationPendingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client14.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client14.take)(data3, {
        error: import_smithy_client14.expectString,
        error_description: import_smithy_client14.expectString
      });
      Object.assign(contents, doc);
      const exception = new AuthorizationPendingException({
        $metadata: deserializeMetadata(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client14.decorateServiceException)(exception, parsedOutput.body);
    }, "de_AuthorizationPendingExceptionRes");
    de_ExpiredTokenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client14.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client14.take)(data3, {
        error: import_smithy_client14.expectString,
        error_description: import_smithy_client14.expectString
      });
      Object.assign(contents, doc);
      const exception = new ExpiredTokenException({
        $metadata: deserializeMetadata(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client14.decorateServiceException)(exception, parsedOutput.body);
    }, "de_ExpiredTokenExceptionRes");
    de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client14.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client14.take)(data3, {
        error: import_smithy_client14.expectString,
        error_description: import_smithy_client14.expectString
      });
      Object.assign(contents, doc);
      const exception = new InternalServerException({
        $metadata: deserializeMetadata(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client14.decorateServiceException)(exception, parsedOutput.body);
    }, "de_InternalServerExceptionRes");
    de_InvalidClientExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client14.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client14.take)(data3, {
        error: import_smithy_client14.expectString,
        error_description: import_smithy_client14.expectString
      });
      Object.assign(contents, doc);
      const exception = new InvalidClientException({
        $metadata: deserializeMetadata(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client14.decorateServiceException)(exception, parsedOutput.body);
    }, "de_InvalidClientExceptionRes");
    de_InvalidGrantExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client14.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client14.take)(data3, {
        error: import_smithy_client14.expectString,
        error_description: import_smithy_client14.expectString
      });
      Object.assign(contents, doc);
      const exception = new InvalidGrantException({
        $metadata: deserializeMetadata(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client14.decorateServiceException)(exception, parsedOutput.body);
    }, "de_InvalidGrantExceptionRes");
    de_InvalidRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client14.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client14.take)(data3, {
        error: import_smithy_client14.expectString,
        error_description: import_smithy_client14.expectString
      });
      Object.assign(contents, doc);
      const exception = new InvalidRequestException({
        $metadata: deserializeMetadata(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client14.decorateServiceException)(exception, parsedOutput.body);
    }, "de_InvalidRequestExceptionRes");
    de_InvalidScopeExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client14.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client14.take)(data3, {
        error: import_smithy_client14.expectString,
        error_description: import_smithy_client14.expectString
      });
      Object.assign(contents, doc);
      const exception = new InvalidScopeException({
        $metadata: deserializeMetadata(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client14.decorateServiceException)(exception, parsedOutput.body);
    }, "de_InvalidScopeExceptionRes");
    de_SlowDownExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client14.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client14.take)(data3, {
        error: import_smithy_client14.expectString,
        error_description: import_smithy_client14.expectString
      });
      Object.assign(contents, doc);
      const exception = new SlowDownException({
        $metadata: deserializeMetadata(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client14.decorateServiceException)(exception, parsedOutput.body);
    }, "de_SlowDownExceptionRes");
    de_UnauthorizedClientExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client14.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client14.take)(data3, {
        error: import_smithy_client14.expectString,
        error_description: import_smithy_client14.expectString
      });
      Object.assign(contents, doc);
      const exception = new UnauthorizedClientException({
        $metadata: deserializeMetadata(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client14.decorateServiceException)(exception, parsedOutput.body);
    }, "de_UnauthorizedClientExceptionRes");
    de_UnsupportedGrantTypeExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client14.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client14.take)(data3, {
        error: import_smithy_client14.expectString,
        error_description: import_smithy_client14.expectString
      });
      Object.assign(contents, doc);
      const exception = new UnsupportedGrantTypeException({
        $metadata: deserializeMetadata(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client14.decorateServiceException)(exception, parsedOutput.body);
    }, "de_UnsupportedGrantTypeExceptionRes");
    deserializeMetadata = /* @__PURE__ */ __name((output) => ({
      httpStatusCode: output.statusCode,
      requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
      extendedRequestId: output.headers["x-amz-id-2"],
      cfId: output.headers["x-amz-cf-id"]
    }), "deserializeMetadata");
  }
});

// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commands/CreateTokenCommand.js
var import_middleware_endpoint2, import_middleware_serde2, import_smithy_client15, CreateTokenCommand;
var init_CreateTokenCommand = __esm({
  "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commands/CreateTokenCommand.js"() {
    import_middleware_endpoint2 = __toESM(require_dist_cjs34());
    import_middleware_serde2 = __toESM(require_dist_cjs7());
    import_smithy_client15 = __toESM(require_dist_cjs26());
    init_EndpointParameters();
    init_models_0();
    init_Aws_restJson1();
    CreateTokenCommand = class extends import_smithy_client15.Command.classBuilder().ep(commonParams).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint2.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSSSOOIDCService", "CreateToken", {}).n("SSOOIDCClient", "CreateTokenCommand").f(CreateTokenRequestFilterSensitiveLog, CreateTokenResponseFilterSensitiveLog).ser(se_CreateTokenCommand).de(de_CreateTokenCommand).build() {
      static {
        __name(this, "CreateTokenCommand");
      }
    };
  }
});

// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDC.js
var import_smithy_client16, commands, SSOOIDC;
var init_SSOOIDC = __esm({
  "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDC.js"() {
    import_smithy_client16 = __toESM(require_dist_cjs26());
    init_CreateTokenCommand();
    init_SSOOIDCClient();
    commands = {
      CreateTokenCommand
    };
    SSOOIDC = class extends SSOOIDCClient {
      static {
        __name(this, "SSOOIDC");
      }
    };
    (0, import_smithy_client16.createAggregatedClient)(commands, SSOOIDC);
  }
});

// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commands/index.js
var init_commands2 = __esm({
  "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commands/index.js"() {
    init_CreateTokenCommand();
  }
});

// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/index.js
var init_models = __esm({
  "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/index.js"() {
    init_models_0();
  }
});

// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/index.js
var sso_oidc_exports = {};
__export(sso_oidc_exports, {
  $Command: () => import_smithy_client15.Command,
  AccessDeniedException: () => AccessDeniedException,
  AuthorizationPendingException: () => AuthorizationPendingException,
  CreateTokenCommand: () => CreateTokenCommand,
  CreateTokenRequestFilterSensitiveLog: () => CreateTokenRequestFilterSensitiveLog,
  CreateTokenResponseFilterSensitiveLog: () => CreateTokenResponseFilterSensitiveLog,
  ExpiredTokenException: () => ExpiredTokenException,
  InternalServerException: () => InternalServerException,
  InvalidClientException: () => InvalidClientException,
  InvalidGrantException: () => InvalidGrantException,
  InvalidRequestException: () => InvalidRequestException,
  InvalidScopeException: () => InvalidScopeException,
  SSOOIDC: () => SSOOIDC,
  SSOOIDCClient: () => SSOOIDCClient,
  SSOOIDCServiceException: () => SSOOIDCServiceException,
  SlowDownException: () => SlowDownException,
  UnauthorizedClientException: () => UnauthorizedClientException,
  UnsupportedGrantTypeException: () => UnsupportedGrantTypeException,
  __Client: () => import_smithy_client11.Client
});
var init_sso_oidc = __esm({
  "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/index.js"() {
    init_SSOOIDCClient();
    init_SSOOIDC();
    init_commands2();
    init_models();
    init_SSOOIDCServiceException();
  }
});

// ../../node_modules/@aws-sdk/token-providers/dist-cjs/index.js
var require_dist_cjs47 = __commonJS({
  "../../node_modules/@aws-sdk/token-providers/dist-cjs/index.js"(exports2, module2) {
    "use strict";
    var __create2 = Object.create;
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __getProtoOf2 = Object.getPrototypeOf;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toESM2 = /* @__PURE__ */ __name((mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
      // If the importer is in node compatibility mode or this is not an ESM
      // file that has been converted to a CommonJS file using a Babel-
      // compatible transform (i.e. "__esModule" has not been set), then set
      // "default" to the CommonJS "module.exports" for node compatibility.
      isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
      mod
    )), "__toESM");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var index_exports = {};
    __export2(index_exports, {
      fromEnvSigningName: /* @__PURE__ */ __name(() => fromEnvSigningName, "fromEnvSigningName"),
      fromSso: /* @__PURE__ */ __name(() => fromSso, "fromSso"),
      fromStatic: /* @__PURE__ */ __name(() => fromStatic, "fromStatic"),
      nodeProvider: /* @__PURE__ */ __name(() => nodeProvider, "nodeProvider")
    });
    module2.exports = __toCommonJS2(index_exports);
    var import_client3 = (init_client(), __toCommonJS(client_exports));
    var import_httpAuthSchemes = (init_httpAuthSchemes2(), __toCommonJS(httpAuthSchemes_exports));
    var import_property_provider3 = require_dist_cjs22();
    var fromEnvSigningName = /* @__PURE__ */ __name2(({ logger: logger4, signingName } = {}) => async () => {
      logger4?.debug?.("@aws-sdk/token-providers - fromEnvSigningName");
      if (!signingName) {
        throw new import_property_provider3.TokenProviderError("Please pass 'signingName' to compute environment variable key", { logger: logger4 });
      }
      const bearerTokenKey = (0, import_httpAuthSchemes.getBearerTokenEnvKey)(signingName);
      if (!(bearerTokenKey in process.env)) {
        throw new import_property_provider3.TokenProviderError(`Token not present in '${bearerTokenKey}' environment variable`, { logger: logger4 });
      }
      const token = { token: process.env[bearerTokenKey] };
      (0, import_client3.setTokenFeature)(token, "BEARER_SERVICE_ENV_VARS", "3");
      return token;
    }, "fromEnvSigningName");
    var EXPIRE_WINDOW_MS = 5 * 60 * 1e3;
    var REFRESH_MESSAGE = `To refresh this SSO session run 'aws sso login' with the corresponding profile.`;
    var getSsoOidcClient = /* @__PURE__ */ __name2(async (ssoRegion, init = {}) => {
      const { SSOOIDCClient: SSOOIDCClient2 } = await Promise.resolve().then(() => __toESM2((init_sso_oidc(), __toCommonJS(sso_oidc_exports))));
      const ssoOidcClient = new SSOOIDCClient2(
        Object.assign({}, init.clientConfig ?? {}, {
          region: ssoRegion ?? init.clientConfig?.region,
          logger: init.clientConfig?.logger ?? init.parentClientConfig?.logger
        })
      );
      return ssoOidcClient;
    }, "getSsoOidcClient");
    var getNewSsoOidcToken = /* @__PURE__ */ __name2(async (ssoToken, ssoRegion, init = {}) => {
      const { CreateTokenCommand: CreateTokenCommand2 } = await Promise.resolve().then(() => __toESM2((init_sso_oidc(), __toCommonJS(sso_oidc_exports))));
      const ssoOidcClient = await getSsoOidcClient(ssoRegion, init);
      return ssoOidcClient.send(
        new CreateTokenCommand2({
          clientId: ssoToken.clientId,
          clientSecret: ssoToken.clientSecret,
          refreshToken: ssoToken.refreshToken,
          grantType: "refresh_token"
        })
      );
    }, "getNewSsoOidcToken");
    var validateTokenExpiry = /* @__PURE__ */ __name2((token) => {
      if (token.expiration && token.expiration.getTime() < Date.now()) {
        throw new import_property_provider3.TokenProviderError(`Token is expired. ${REFRESH_MESSAGE}`, false);
      }
    }, "validateTokenExpiry");
    var validateTokenKey = /* @__PURE__ */ __name2((key, value, forRefresh = false) => {
      if (typeof value === "undefined") {
        throw new import_property_provider3.TokenProviderError(
          `Value not present for '${key}' in SSO Token${forRefresh ? ". Cannot refresh" : ""}. ${REFRESH_MESSAGE}`,
          false
        );
      }
    }, "validateTokenKey");
    var import_shared_ini_file_loader2 = require_dist_cjs32();
    var import_fs7 = require("fs");
    var { writeFile: writeFile5 } = import_fs7.promises;
    var writeSSOTokenToFile = /* @__PURE__ */ __name2((id, ssoToken) => {
      const tokenFilepath = (0, import_shared_ini_file_loader2.getSSOTokenFilepath)(id);
      const tokenString = JSON.stringify(ssoToken, null, 2);
      return writeFile5(tokenFilepath, tokenString);
    }, "writeSSOTokenToFile");
    var lastRefreshAttemptTime = /* @__PURE__ */ new Date(0);
    var fromSso = /* @__PURE__ */ __name2((_init = {}) => async ({ callerClientConfig } = {}) => {
      const init = {
        ..._init,
        parentClientConfig: {
          ...callerClientConfig,
          ..._init.parentClientConfig
        }
      };
      init.logger?.debug("@aws-sdk/token-providers - fromSso");
      const profiles = await (0, import_shared_ini_file_loader2.parseKnownFiles)(init);
      const profileName = (0, import_shared_ini_file_loader2.getProfileName)({
        profile: init.profile ?? callerClientConfig?.profile
      });
      const profile = profiles[profileName];
      if (!profile) {
        throw new import_property_provider3.TokenProviderError(`Profile '${profileName}' could not be found in shared credentials file.`, false);
      } else if (!profile["sso_session"]) {
        throw new import_property_provider3.TokenProviderError(`Profile '${profileName}' is missing required property 'sso_session'.`);
      }
      const ssoSessionName = profile["sso_session"];
      const ssoSessions = await (0, import_shared_ini_file_loader2.loadSsoSessionData)(init);
      const ssoSession = ssoSessions[ssoSessionName];
      if (!ssoSession) {
        throw new import_property_provider3.TokenProviderError(
          `Sso session '${ssoSessionName}' could not be found in shared credentials file.`,
          false
        );
      }
      for (const ssoSessionRequiredKey of ["sso_start_url", "sso_region"]) {
        if (!ssoSession[ssoSessionRequiredKey]) {
          throw new import_property_provider3.TokenProviderError(
            `Sso session '${ssoSessionName}' is missing required property '${ssoSessionRequiredKey}'.`,
            false
          );
        }
      }
      const ssoStartUrl = ssoSession["sso_start_url"];
      const ssoRegion = ssoSession["sso_region"];
      let ssoToken;
      try {
        ssoToken = await (0, import_shared_ini_file_loader2.getSSOTokenFromFile)(ssoSessionName);
      } catch (e3) {
        throw new import_property_provider3.TokenProviderError(
          `The SSO session token associated with profile=${profileName} was not found or is invalid. ${REFRESH_MESSAGE}`,
          false
        );
      }
      validateTokenKey("accessToken", ssoToken.accessToken);
      validateTokenKey("expiresAt", ssoToken.expiresAt);
      const { accessToken, expiresAt } = ssoToken;
      const existingToken = { token: accessToken, expiration: new Date(expiresAt) };
      if (existingToken.expiration.getTime() - Date.now() > EXPIRE_WINDOW_MS) {
        return existingToken;
      }
      if (Date.now() - lastRefreshAttemptTime.getTime() < 30 * 1e3) {
        validateTokenExpiry(existingToken);
        return existingToken;
      }
      validateTokenKey("clientId", ssoToken.clientId, true);
      validateTokenKey("clientSecret", ssoToken.clientSecret, true);
      validateTokenKey("refreshToken", ssoToken.refreshToken, true);
      try {
        lastRefreshAttemptTime.setTime(Date.now());
        const newSsoOidcToken = await getNewSsoOidcToken(ssoToken, ssoRegion, init);
        validateTokenKey("accessToken", newSsoOidcToken.accessToken);
        validateTokenKey("expiresIn", newSsoOidcToken.expiresIn);
        const newTokenExpiration = new Date(Date.now() + newSsoOidcToken.expiresIn * 1e3);
        try {
          await writeSSOTokenToFile(ssoSessionName, {
            ...ssoToken,
            accessToken: newSsoOidcToken.accessToken,
            expiresAt: newTokenExpiration.toISOString(),
            refreshToken: newSsoOidcToken.refreshToken
          });
        } catch (error5) {
        }
        return {
          token: newSsoOidcToken.accessToken,
          expiration: newTokenExpiration
        };
      } catch (error5) {
        validateTokenExpiry(existingToken);
        return existingToken;
      }
    }, "fromSso");
    var fromStatic = /* @__PURE__ */ __name2(({ token, logger: logger4 }) => async () => {
      logger4?.debug("@aws-sdk/token-providers - fromStatic");
      if (!token || !token.token) {
        throw new import_property_provider3.TokenProviderError(`Please pass a valid token to fromStatic`, false);
      }
      return token;
    }, "fromStatic");
    var nodeProvider = /* @__PURE__ */ __name2((init = {}) => (0, import_property_provider3.memoize)(
      (0, import_property_provider3.chain)(fromSso(init), async () => {
        throw new import_property_provider3.TokenProviderError("Could not load token from any providers", false);
      }),
      (token) => token.expiration !== void 0 && token.expiration.getTime() - Date.now() < 3e5,
      (token) => token.expiration !== void 0
    ), "nodeProvider");
  }
});

// ../../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js
var require_dist_cjs48 = __commonJS({
  "../../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js"(exports2, module2) {
    "use strict";
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __esm2 = /* @__PURE__ */ __name((fn, res) => /* @__PURE__ */ __name(function __init() {
      return fn && (res = (0, fn[__getOwnPropNames2(fn)[0]])(fn = 0)), res;
    }, "__init"), "__esm");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var loadSso_exports = {};
    __export2(loadSso_exports, {
      GetRoleCredentialsCommand: /* @__PURE__ */ __name(() => import_client_sso.GetRoleCredentialsCommand, "GetRoleCredentialsCommand"),
      SSOClient: /* @__PURE__ */ __name(() => import_client_sso.SSOClient, "SSOClient")
    });
    var import_client_sso;
    var init_loadSso = __esm2({
      "src/loadSso.ts"() {
        "use strict";
        import_client_sso = require_dist_cjs46();
      }
    });
    var index_exports = {};
    __export2(index_exports, {
      fromSSO: /* @__PURE__ */ __name(() => fromSSO, "fromSSO"),
      isSsoProfile: /* @__PURE__ */ __name(() => isSsoProfile, "isSsoProfile"),
      validateSsoProfile: /* @__PURE__ */ __name(() => validateSsoProfile, "validateSsoProfile")
    });
    module2.exports = __toCommonJS2(index_exports);
    var isSsoProfile = /* @__PURE__ */ __name2((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");
    var import_client3 = (init_client(), __toCommonJS(client_exports));
    var import_token_providers = require_dist_cjs47();
    var import_property_provider3 = require_dist_cjs22();
    var import_shared_ini_file_loader2 = require_dist_cjs32();
    var SHOULD_FAIL_CREDENTIAL_CHAIN = false;
    var resolveSSOCredentials = /* @__PURE__ */ __name2(async ({
      ssoStartUrl,
      ssoSession,
      ssoAccountId,
      ssoRegion,
      ssoRoleName,
      ssoClient,
      clientConfig,
      parentClientConfig,
      profile,
      logger: logger4
    }) => {
      let token;
      const refreshMessage = `To refresh this SSO session run aws sso login with the corresponding profile.`;
      if (ssoSession) {
        try {
          const _token = await (0, import_token_providers.fromSso)({ profile })();
          token = {
            accessToken: _token.token,
            expiresAt: new Date(_token.expiration).toISOString()
          };
        } catch (e3) {
          throw new import_property_provider3.CredentialsProviderError(e3.message, {
            tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
            logger: logger4
          });
        }
      } else {
        try {
          token = await (0, import_shared_ini_file_loader2.getSSOTokenFromFile)(ssoStartUrl);
        } catch (e3) {
          throw new import_property_provider3.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${refreshMessage}`, {
            tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
            logger: logger4
          });
        }
      }
      if (new Date(token.expiresAt).getTime() - Date.now() <= 0) {
        throw new import_property_provider3.CredentialsProviderError(`The SSO session associated with this profile has expired. ${refreshMessage}`, {
          tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
          logger: logger4
        });
      }
      const { accessToken } = token;
      const { SSOClient: SSOClient2, GetRoleCredentialsCommand: GetRoleCredentialsCommand2 } = await Promise.resolve().then(() => (init_loadSso(), loadSso_exports));
      const sso = ssoClient || new SSOClient2(
        Object.assign({}, clientConfig ?? {}, {
          logger: clientConfig?.logger ?? parentClientConfig?.logger,
          region: clientConfig?.region ?? ssoRegion
        })
      );
      let ssoResp;
      try {
        ssoResp = await sso.send(
          new GetRoleCredentialsCommand2({
            accountId: ssoAccountId,
            roleName: ssoRoleName,
            accessToken
          })
        );
      } catch (e3) {
        throw new import_property_provider3.CredentialsProviderError(e3, {
          tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
          logger: logger4
        });
      }
      const {
        roleCredentials: { accessKeyId, secretAccessKey, sessionToken, expiration, credentialScope, accountId } = {}
      } = ssoResp;
      if (!accessKeyId || !secretAccessKey || !sessionToken || !expiration) {
        throw new import_property_provider3.CredentialsProviderError("SSO returns an invalid temporary credential.", {
          tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
          logger: logger4
        });
      }
      const credentials = {
        accessKeyId,
        secretAccessKey,
        sessionToken,
        expiration: new Date(expiration),
        ...credentialScope && { credentialScope },
        ...accountId && { accountId }
      };
      if (ssoSession) {
        (0, import_client3.setCredentialFeature)(credentials, "CREDENTIALS_SSO", "s");
      } else {
        (0, import_client3.setCredentialFeature)(credentials, "CREDENTIALS_SSO_LEGACY", "u");
      }
      return credentials;
    }, "resolveSSOCredentials");
    var validateSsoProfile = /* @__PURE__ */ __name2((profile, logger4) => {
      const { sso_start_url, sso_account_id, sso_region, sso_role_name } = profile;
      if (!sso_start_url || !sso_account_id || !sso_region || !sso_role_name) {
        throw new import_property_provider3.CredentialsProviderError(
          `Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(profile).join(
            ", "
          )}
Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,
          { tryNextLink: false, logger: logger4 }
        );
      }
      return profile;
    }, "validateSsoProfile");
    var fromSSO = /* @__PURE__ */ __name2((init = {}) => async ({ callerClientConfig } = {}) => {
      init.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");
      const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init;
      const { ssoClient } = init;
      const profileName = (0, import_shared_ini_file_loader2.getProfileName)({
        profile: init.profile ?? callerClientConfig?.profile
      });
      if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) {
        const profiles = await (0, import_shared_ini_file_loader2.parseKnownFiles)(init);
        const profile = profiles[profileName];
        if (!profile) {
          throw new import_property_provider3.CredentialsProviderError(`Profile ${profileName} was not found.`, { logger: init.logger });
        }
        if (!isSsoProfile(profile)) {
          throw new import_property_provider3.CredentialsProviderError(`Profile ${profileName} is not configured with SSO credentials.`, {
            logger: init.logger
          });
        }
        if (profile?.sso_session) {
          const ssoSessions = await (0, import_shared_ini_file_loader2.loadSsoSessionData)(init);
          const session = ssoSessions[profile.sso_session];
          const conflictMsg = ` configurations in profile ${profileName} and sso-session ${profile.sso_session}`;
          if (ssoRegion && ssoRegion !== session.sso_region) {
            throw new import_property_provider3.CredentialsProviderError(`Conflicting SSO region` + conflictMsg, {
              tryNextLink: false,
              logger: init.logger
            });
          }
          if (ssoStartUrl && ssoStartUrl !== session.sso_start_url) {
            throw new import_property_provider3.CredentialsProviderError(`Conflicting SSO start_url` + conflictMsg, {
              tryNextLink: false,
              logger: init.logger
            });
          }
          profile.sso_region = session.sso_region;
          profile.sso_start_url = session.sso_start_url;
        }
        const { sso_start_url, sso_account_id, sso_region, sso_role_name, sso_session } = validateSsoProfile(
          profile,
          init.logger
        );
        return resolveSSOCredentials({
          ssoStartUrl: sso_start_url,
          ssoSession: sso_session,
          ssoAccountId: sso_account_id,
          ssoRegion: sso_region,
          ssoRoleName: sso_role_name,
          ssoClient,
          clientConfig: init.clientConfig,
          parentClientConfig: init.parentClientConfig,
          profile: profileName
        });
      } else if (!ssoStartUrl || !ssoAccountId || !ssoRegion || !ssoRoleName) {
        throw new import_property_provider3.CredentialsProviderError(
          'Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',
          { tryNextLink: false, logger: init.logger }
        );
      } else {
        return resolveSSOCredentials({
          ssoStartUrl,
          ssoSession,
          ssoAccountId,
          ssoRegion,
          ssoRoleName,
          ssoClient,
          clientConfig: init.clientConfig,
          parentClientConfig: init.parentClientConfig,
          profile: profileName
        });
      }
    }, "fromSSO");
  }
});

// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthSchemeProvider.js
function createAwsAuthSigv4HttpAuthOption2(authParameters) {
  return {
    schemeId: "aws.auth#sigv4",
    signingProperties: {
      name: "sts",
      region: authParameters.region
    },
    propertiesExtractor: /* @__PURE__ */ __name((config, context) => ({
      signingProperties: {
        config,
        context
      }
    }), "propertiesExtractor")
  };
}
function createSmithyApiNoAuthHttpAuthOption2(authParameters) {
  return {
    schemeId: "smithy.api#noAuth"
  };
}
var import_util_middleware7, defaultSTSHttpAuthSchemeParametersProvider, defaultSTSHttpAuthSchemeProvider, resolveStsAuthConfig, resolveHttpAuthSchemeConfig2;
var init_httpAuthSchemeProvider2 = __esm({
  "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthSchemeProvider.js"() {
    init_dist_es2();
    import_util_middleware7 = __toESM(require_dist_cjs6());
    init_STSClient();
    defaultSTSHttpAuthSchemeParametersProvider = /* @__PURE__ */ __name(async (config, context, input) => {
      return {
        operation: (0, import_util_middleware7.getSmithyContext)(context).operation,
        region: await (0, import_util_middleware7.normalizeProvider)(config.region)() || (() => {
          throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
        })()
      };
    }, "defaultSTSHttpAuthSchemeParametersProvider");
    __name(createAwsAuthSigv4HttpAuthOption2, "createAwsAuthSigv4HttpAuthOption");
    __name(createSmithyApiNoAuthHttpAuthOption2, "createSmithyApiNoAuthHttpAuthOption");
    defaultSTSHttpAuthSchemeProvider = /* @__PURE__ */ __name((authParameters) => {
      const options = [];
      switch (authParameters.operation) {
        case "AssumeRoleWithWebIdentity": {
          options.push(createSmithyApiNoAuthHttpAuthOption2(authParameters));
          break;
        }
        default: {
          options.push(createAwsAuthSigv4HttpAuthOption2(authParameters));
        }
      }
      return options;
    }, "defaultSTSHttpAuthSchemeProvider");
    resolveStsAuthConfig = /* @__PURE__ */ __name((input) => Object.assign(input, {
      stsClientCtor: STSClient2
    }), "resolveStsAuthConfig");
    resolveHttpAuthSchemeConfig2 = /* @__PURE__ */ __name((config) => {
      const config_0 = resolveStsAuthConfig(config);
      const config_1 = resolveAwsSdkSigV4Config(config_0);
      return Object.assign(config_1, {
        authSchemePreference: (0, import_util_middleware7.normalizeProvider)(config.authSchemePreference ?? [])
      });
    }, "resolveHttpAuthSchemeConfig");
  }
});

// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/EndpointParameters.js
var resolveClientEndpointParameters2, commonParams2;
var init_EndpointParameters2 = __esm({
  "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/EndpointParameters.js"() {
    resolveClientEndpointParameters2 = /* @__PURE__ */ __name((options) => {
      return Object.assign(options, {
        useDualstackEndpoint: options.useDualstackEndpoint ?? false,
        useFipsEndpoint: options.useFipsEndpoint ?? false,
        useGlobalEndpoint: options.useGlobalEndpoint ?? false,
        defaultSigningName: "sts"
      });
    }, "resolveClientEndpointParameters");
    commonParams2 = {
      UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" },
      UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
      Endpoint: { type: "builtInParams", name: "endpoint" },
      Region: { type: "builtInParams", name: "region" },
      UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
    };
  }
});

// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/ruleset.js
var F, G, H, I, J, a2, b2, c2, d2, e2, f2, g2, h2, i2, j2, k2, l2, m2, n2, o2, p2, q2, r2, s2, t2, u2, v2, w2, x2, y, z, A, B, C, D, E, _data2, ruleSet2;
var init_ruleset2 = __esm({
  "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/ruleset.js"() {
    F = "required";
    G = "type";
    H = "fn";
    I = "argv";
    J = "ref";
    a2 = false;
    b2 = true;
    c2 = "booleanEquals";
    d2 = "stringEquals";
    e2 = "sigv4";
    f2 = "sts";
    g2 = "us-east-1";
    h2 = "endpoint";
    i2 = "https://sts.{Region}.{PartitionResult#dnsSuffix}";
    j2 = "tree";
    k2 = "error";
    l2 = "getAttr";
    m2 = { [F]: false, [G]: "String" };
    n2 = { [F]: true, "default": false, [G]: "Boolean" };
    o2 = { [J]: "Endpoint" };
    p2 = { [H]: "isSet", [I]: [{ [J]: "Region" }] };
    q2 = { [J]: "Region" };
    r2 = { [H]: "aws.partition", [I]: [q2], "assign": "PartitionResult" };
    s2 = { [J]: "UseFIPS" };
    t2 = { [J]: "UseDualStack" };
    u2 = { "url": "https://sts.amazonaws.com", "properties": { "authSchemes": [{ "name": e2, "signingName": f2, "signingRegion": g2 }] }, "headers": {} };
    v2 = {};
    w2 = { "conditions": [{ [H]: d2, [I]: [q2, "aws-global"] }], [h2]: u2, [G]: h2 };
    x2 = { [H]: c2, [I]: [s2, true] };
    y = { [H]: c2, [I]: [t2, true] };
    z = { [H]: l2, [I]: [{ [J]: "PartitionResult" }, "supportsFIPS"] };
    A = { [J]: "PartitionResult" };
    B = { [H]: c2, [I]: [true, { [H]: l2, [I]: [A, "supportsDualStack"] }] };
    C = [{ [H]: "isSet", [I]: [o2] }];
    D = [x2];
    E = [y];
    _data2 = { version: "1.0", parameters: { Region: m2, UseDualStack: n2, UseFIPS: n2, Endpoint: m2, UseGlobalEndpoint: n2 }, rules: [{ conditions: [{ [H]: c2, [I]: [{ [J]: "UseGlobalEndpoint" }, b2] }, { [H]: "not", [I]: C }, p2, r2, { [H]: c2, [I]: [s2, a2] }, { [H]: c2, [I]: [t2, a2] }], rules: [{ conditions: [{ [H]: d2, [I]: [q2, "ap-northeast-1"] }], endpoint: u2, [G]: h2 }, { conditions: [{ [H]: d2, [I]: [q2, "ap-south-1"] }], endpoint: u2, [G]: h2 }, { conditions: [{ [H]: d2, [I]: [q2, "ap-southeast-1"] }], endpoint: u2, [G]: h2 }, { conditions: [{ [H]: d2, [I]: [q2, "ap-southeast-2"] }], endpoint: u2, [G]: h2 }, w2, { conditions: [{ [H]: d2, [I]: [q2, "ca-central-1"] }], endpoint: u2, [G]: h2 }, { conditions: [{ [H]: d2, [I]: [q2, "eu-central-1"] }], endpoint: u2, [G]: h2 }, { conditions: [{ [H]: d2, [I]: [q2, "eu-north-1"] }], endpoint: u2, [G]: h2 }, { conditions: [{ [H]: d2, [I]: [q2, "eu-west-1"] }], endpoint: u2, [G]: h2 }, { conditions: [{ [H]: d2, [I]: [q2, "eu-west-2"] }], endpoint: u2, [G]: h2 }, { conditions: [{ [H]: d2, [I]: [q2, "eu-west-3"] }], endpoint: u2, [G]: h2 }, { conditions: [{ [H]: d2, [I]: [q2, "sa-east-1"] }], endpoint: u2, [G]: h2 }, { conditions: [{ [H]: d2, [I]: [q2, g2] }], endpoint: u2, [G]: h2 }, { conditions: [{ [H]: d2, [I]: [q2, "us-east-2"] }], endpoint: u2, [G]: h2 }, { conditions: [{ [H]: d2, [I]: [q2, "us-west-1"] }], endpoint: u2, [G]: h2 }, { conditions: [{ [H]: d2, [I]: [q2, "us-west-2"] }], endpoint: u2, [G]: h2 }, { endpoint: { url: i2, properties: { authSchemes: [{ name: e2, signingName: f2, signingRegion: "{Region}" }] }, headers: v2 }, [G]: h2 }], [G]: j2 }, { conditions: C, rules: [{ conditions: D, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [G]: k2 }, { conditions: E, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [G]: k2 }, { endpoint: { url: o2, properties: v2, headers: v2 }, [G]: h2 }], [G]: j2 }, { conditions: [p2], rules: [{ conditions: [r2], rules: [{ conditions: [x2, y], rules: [{ conditions: [{ [H]: c2, [I]: [b2, z] }, B], rules: [{ endpoint: { url: "https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: v2, headers: v2 }, [G]: h2 }], [G]: j2 }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", [G]: k2 }], [G]: j2 }, { conditions: D, rules: [{ conditions: [{ [H]: c2, [I]: [z, b2] }], rules: [{ conditions: [{ [H]: d2, [I]: [{ [H]: l2, [I]: [A, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://sts.{Region}.amazonaws.com", properties: v2, headers: v2 }, [G]: h2 }, { endpoint: { url: "https://sts-fips.{Region}.{PartitionResult#dnsSuffix}", properties: v2, headers: v2 }, [G]: h2 }], [G]: j2 }, { error: "FIPS is enabled but this partition does not support FIPS", [G]: k2 }], [G]: j2 }, { conditions: E, rules: [{ conditions: [B], rules: [{ endpoint: { url: "https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: v2, headers: v2 }, [G]: h2 }], [G]: j2 }, { error: "DualStack is enabled but this partition does not support DualStack", [G]: k2 }], [G]: j2 }, w2, { endpoint: { url: i2, properties: v2, headers: v2 }, [G]: h2 }], [G]: j2 }], [G]: j2 }, { error: "Invalid Configuration: Missing Region", [G]: k2 }] };
    ruleSet2 = _data2;
  }
});

// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/endpointResolver.js
var import_util_endpoints3, import_util_endpoints4, cache2, defaultEndpointResolver2;
var init_endpointResolver2 = __esm({
  "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/endpointResolver.js"() {
    import_util_endpoints3 = __toESM(require_dist_cjs21());
    import_util_endpoints4 = __toESM(require_dist_cjs18());
    init_ruleset2();
    cache2 = new import_util_endpoints4.EndpointCache({
      size: 50,
      params: ["Endpoint", "Region", "UseDualStack", "UseFIPS", "UseGlobalEndpoint"]
    });
    defaultEndpointResolver2 = /* @__PURE__ */ __name((endpointParams, context = {}) => {
      return cache2.get(endpointParams, () => (0, import_util_endpoints4.resolveEndpoint)(ruleSet2, {
        endpointParams,
        logger: context.logger
      }));
    }, "defaultEndpointResolver");
    import_util_endpoints4.customEndpointFunctions.aws = import_util_endpoints3.awsEndpointFunctions;
  }
});

// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.shared.js
var import_smithy_client17, import_url_parser2, import_util_base648, import_util_utf89, getRuntimeConfig3;
var init_runtimeConfig_shared2 = __esm({
  "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.shared.js"() {
    init_dist_es2();
    init_dist_es();
    import_smithy_client17 = __toESM(require_dist_cjs26());
    import_url_parser2 = __toESM(require_dist_cjs20());
    import_util_base648 = __toESM(require_dist_cjs11());
    import_util_utf89 = __toESM(require_dist_cjs10());
    init_httpAuthSchemeProvider2();
    init_endpointResolver2();
    getRuntimeConfig3 = /* @__PURE__ */ __name((config) => {
      return {
        apiVersion: "2011-06-15",
        base64Decoder: config?.base64Decoder ?? import_util_base648.fromBase64,
        base64Encoder: config?.base64Encoder ?? import_util_base648.toBase64,
        disableHostPrefix: config?.disableHostPrefix ?? false,
        endpointProvider: config?.endpointProvider ?? defaultEndpointResolver2,
        extensions: config?.extensions ?? [],
        httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSTSHttpAuthSchemeProvider,
        httpAuthSchemes: config?.httpAuthSchemes ?? [
          {
            schemeId: "aws.auth#sigv4",
            identityProvider: /* @__PURE__ */ __name((ipc) => ipc.getIdentityProvider("aws.auth#sigv4"), "identityProvider"),
            signer: new AwsSdkSigV4Signer()
          },
          {
            schemeId: "smithy.api#noAuth",
            identityProvider: /* @__PURE__ */ __name((ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})), "identityProvider"),
            signer: new NoAuthSigner()
          }
        ],
        logger: config?.logger ?? new import_smithy_client17.NoOpLogger(),
        serviceId: config?.serviceId ?? "STS",
        urlParser: config?.urlParser ?? import_url_parser2.parseUrl,
        utf8Decoder: config?.utf8Decoder ?? import_util_utf89.fromUtf8,
        utf8Encoder: config?.utf8Encoder ?? import_util_utf89.toUtf8
      };
    }, "getRuntimeConfig");
  }
});

// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js
var import_util_user_agent_node2, import_config_resolver3, import_hash_node2, import_middleware_retry3, import_node_config_provider2, import_node_http_handler2, import_util_body_length_node2, import_util_retry2, import_smithy_client18, import_util_defaults_mode_node2, import_smithy_client19, getRuntimeConfig4;
var init_runtimeConfig2 = __esm({
  "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js"() {
    init_package();
    init_dist_es2();
    import_util_user_agent_node2 = __toESM(require_dist_cjs41());
    import_config_resolver3 = __toESM(require_dist_cjs30());
    init_dist_es();
    import_hash_node2 = __toESM(require_dist_cjs42());
    import_middleware_retry3 = __toESM(require_dist_cjs37());
    import_node_config_provider2 = __toESM(require_dist_cjs33());
    import_node_http_handler2 = __toESM(require_dist_cjs14());
    import_util_body_length_node2 = __toESM(require_dist_cjs43());
    import_util_retry2 = __toESM(require_dist_cjs36());
    init_runtimeConfig_shared2();
    import_smithy_client18 = __toESM(require_dist_cjs26());
    import_util_defaults_mode_node2 = __toESM(require_dist_cjs44());
    import_smithy_client19 = __toESM(require_dist_cjs26());
    getRuntimeConfig4 = /* @__PURE__ */ __name((config) => {
      (0, import_smithy_client19.emitWarningIfUnsupportedVersion)(process.version);
      const defaultsMode = (0, import_util_defaults_mode_node2.resolveDefaultsModeConfig)(config);
      const defaultConfigProvider = /* @__PURE__ */ __name(() => defaultsMode().then(import_smithy_client18.loadConfigsForDefaultMode), "defaultConfigProvider");
      const clientSharedValues = getRuntimeConfig3(config);
      emitWarningIfUnsupportedVersion(process.version);
      const loaderConfig = {
        profile: config?.profile,
        logger: clientSharedValues.logger
      };
      return {
        ...clientSharedValues,
        ...config,
        runtime: "node",
        defaultsMode,
        authSchemePreference: config?.authSchemePreference ?? (0, import_node_config_provider2.loadConfig)(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
        bodyLengthChecker: config?.bodyLengthChecker ?? import_util_body_length_node2.calculateBodyLength,
        defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, import_util_user_agent_node2.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_default.version }),
        httpAuthSchemes: config?.httpAuthSchemes ?? [
          {
            schemeId: "aws.auth#sigv4",
            identityProvider: /* @__PURE__ */ __name((ipc) => ipc.getIdentityProvider("aws.auth#sigv4") || (async (idProps) => await config.credentialDefaultProvider(idProps?.__config || {})()), "identityProvider"),
            signer: new AwsSdkSigV4Signer()
          },
          {
            schemeId: "smithy.api#noAuth",
            identityProvider: /* @__PURE__ */ __name((ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})), "identityProvider"),
            signer: new NoAuthSigner()
          }
        ],
        maxAttempts: config?.maxAttempts ?? (0, import_node_config_provider2.loadConfig)(import_middleware_retry3.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
        region: config?.region ?? (0, import_node_config_provider2.loadConfig)(import_config_resolver3.NODE_REGION_CONFIG_OPTIONS, { ...import_config_resolver3.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
        requestHandler: import_node_http_handler2.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
        retryMode: config?.retryMode ?? (0, import_node_config_provider2.loadConfig)({
          ...import_middleware_retry3.NODE_RETRY_MODE_CONFIG_OPTIONS,
          default: /* @__PURE__ */ __name(async () => (await defaultConfigProvider()).retryMode || import_util_retry2.DEFAULT_RETRY_MODE, "default")
        }, config),
        sha256: config?.sha256 ?? import_hash_node2.Hash.bind(null, "sha256"),
        streamCollector: config?.streamCollector ?? import_node_http_handler2.streamCollector,
        useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, import_node_config_provider2.loadConfig)(import_config_resolver3.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
        useFipsEndpoint: config?.useFipsEndpoint ?? (0, import_node_config_provider2.loadConfig)(import_config_resolver3.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
        userAgentAppId: config?.userAgentAppId ?? (0, import_node_config_provider2.loadConfig)(import_util_user_agent_node2.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig)
      };
    }, "getRuntimeConfig");
  }
});

// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthExtensionConfiguration.js
var getHttpAuthExtensionConfiguration2, resolveHttpAuthRuntimeConfig2;
var init_httpAuthExtensionConfiguration2 = __esm({
  "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthExtensionConfiguration.js"() {
    getHttpAuthExtensionConfiguration2 = /* @__PURE__ */ __name((runtimeConfig) => {
      const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
      let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
      let _credentials = runtimeConfig.credentials;
      return {
        setHttpAuthScheme(httpAuthScheme) {
          const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
          if (index === -1) {
            _httpAuthSchemes.push(httpAuthScheme);
          } else {
            _httpAuthSchemes.splice(index, 1, httpAuthScheme);
          }
        },
        httpAuthSchemes() {
          return _httpAuthSchemes;
        },
        setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
          _httpAuthSchemeProvider = httpAuthSchemeProvider;
        },
        httpAuthSchemeProvider() {
          return _httpAuthSchemeProvider;
        },
        setCredentials(credentials) {
          _credentials = credentials;
        },
        credentials() {
          return _credentials;
        }
      };
    }, "getHttpAuthExtensionConfiguration");
    resolveHttpAuthRuntimeConfig2 = /* @__PURE__ */ __name((config) => {
      return {
        httpAuthSchemes: config.httpAuthSchemes(),
        httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
        credentials: config.credentials()
      };
    }, "resolveHttpAuthRuntimeConfig");
  }
});

// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeExtensions.js
var import_region_config_resolver2, import_protocol_http14, import_smithy_client20, resolveRuntimeExtensions2;
var init_runtimeExtensions2 = __esm({
  "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeExtensions.js"() {
    import_region_config_resolver2 = __toESM(require_dist_cjs45());
    import_protocol_http14 = __toESM(require_dist_cjs2());
    import_smithy_client20 = __toESM(require_dist_cjs26());
    init_httpAuthExtensionConfiguration2();
    resolveRuntimeExtensions2 = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
      const extensionConfiguration = Object.assign((0, import_region_config_resolver2.getAwsRegionExtensionConfiguration)(runtimeConfig), (0, import_smithy_client20.getDefaultExtensionConfiguration)(runtimeConfig), (0, import_protocol_http14.getHttpHandlerExtensionConfiguration)(runtimeConfig), getHttpAuthExtensionConfiguration2(runtimeConfig));
      extensions.forEach((extension) => extension.configure(extensionConfiguration));
      return Object.assign(runtimeConfig, (0, import_region_config_resolver2.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), (0, import_smithy_client20.resolveDefaultRuntimeConfig)(extensionConfiguration), (0, import_protocol_http14.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), resolveHttpAuthRuntimeConfig2(extensionConfiguration));
    }, "resolveRuntimeExtensions");
  }
});

// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STSClient.js
var import_middleware_host_header2, import_middleware_logger2, import_middleware_recursion_detection2, import_middleware_user_agent2, import_config_resolver4, import_middleware_content_length2, import_middleware_endpoint3, import_middleware_retry4, import_smithy_client21, STSClient2;
var init_STSClient = __esm({
  "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STSClient.js"() {
    import_middleware_host_header2 = __toESM(require_dist_cjs3());
    import_middleware_logger2 = __toESM(require_dist_cjs4());
    import_middleware_recursion_detection2 = __toESM(require_dist_cjs5());
    import_middleware_user_agent2 = __toESM(require_dist_cjs28());
    import_config_resolver4 = __toESM(require_dist_cjs30());
    init_dist_es();
    import_middleware_content_length2 = __toESM(require_dist_cjs31());
    import_middleware_endpoint3 = __toESM(require_dist_cjs34());
    import_middleware_retry4 = __toESM(require_dist_cjs37());
    import_smithy_client21 = __toESM(require_dist_cjs26());
    init_httpAuthSchemeProvider2();
    init_EndpointParameters2();
    init_runtimeConfig2();
    init_runtimeExtensions2();
    STSClient2 = class extends import_smithy_client21.Client {
      static {
        __name(this, "STSClient");
      }
      config;
      constructor(...[configuration]) {
        const _config_0 = getRuntimeConfig4(configuration || {});
        super(_config_0);
        this.initConfig = _config_0;
        const _config_1 = resolveClientEndpointParameters2(_config_0);
        const _config_2 = (0, import_middleware_user_agent2.resolveUserAgentConfig)(_config_1);
        const _config_3 = (0, import_middleware_retry4.resolveRetryConfig)(_config_2);
        const _config_4 = (0, import_config_resolver4.resolveRegionConfig)(_config_3);
        const _config_5 = (0, import_middleware_host_header2.resolveHostHeaderConfig)(_config_4);
        const _config_6 = (0, import_middleware_endpoint3.resolveEndpointConfig)(_config_5);
        const _config_7 = resolveHttpAuthSchemeConfig2(_config_6);
        const _config_8 = resolveRuntimeExtensions2(_config_7, configuration?.extensions || []);
        this.config = _config_8;
        this.middlewareStack.use((0, import_middleware_user_agent2.getUserAgentPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_retry4.getRetryPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_content_length2.getContentLengthPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_host_header2.getHostHeaderPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_logger2.getLoggerPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_recursion_detection2.getRecursionDetectionPlugin)(this.config));
        this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
          httpAuthSchemeParametersProvider: defaultSTSHttpAuthSchemeParametersProvider,
          identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new DefaultIdentityProviderConfig({
            "aws.auth#sigv4": config.credentials
          }), "identityProviderConfigProvider")
        }));
        this.middlewareStack.use(getHttpSigningPlugin(this.config));
      }
      destroy() {
        super.destroy();
      }
    };
  }
});

// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/STSServiceException.js
var import_smithy_client22, STSServiceException;
var init_STSServiceException = __esm({
  "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/STSServiceException.js"() {
    import_smithy_client22 = __toESM(require_dist_cjs26());
    STSServiceException = class _STSServiceException extends import_smithy_client22.ServiceException {
      static {
        __name(this, "STSServiceException");
      }
      constructor(options) {
        super(options);
        Object.setPrototypeOf(this, _STSServiceException.prototype);
      }
    };
  }
});

// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/models_0.js
var import_smithy_client23, CredentialsFilterSensitiveLog, AssumeRoleResponseFilterSensitiveLog, ExpiredTokenException2, MalformedPolicyDocumentException, PackedPolicyTooLargeException, RegionDisabledException, IDPRejectedClaimException, InvalidIdentityTokenException, AssumeRoleWithWebIdentityRequestFilterSensitiveLog, AssumeRoleWithWebIdentityResponseFilterSensitiveLog, IDPCommunicationErrorException;
var init_models_02 = __esm({
  "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/models_0.js"() {
    import_smithy_client23 = __toESM(require_dist_cjs26());
    init_STSServiceException();
    CredentialsFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
      ...obj,
      ...obj.SecretAccessKey && { SecretAccessKey: import_smithy_client23.SENSITIVE_STRING }
    }), "CredentialsFilterSensitiveLog");
    AssumeRoleResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
      ...obj,
      ...obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) }
    }), "AssumeRoleResponseFilterSensitiveLog");
    ExpiredTokenException2 = class _ExpiredTokenException extends STSServiceException {
      static {
        __name(this, "ExpiredTokenException");
      }
      name = "ExpiredTokenException";
      $fault = "client";
      constructor(opts) {
        super({
          name: "ExpiredTokenException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ExpiredTokenException.prototype);
      }
    };
    MalformedPolicyDocumentException = class _MalformedPolicyDocumentException extends STSServiceException {
      static {
        __name(this, "MalformedPolicyDocumentException");
      }
      name = "MalformedPolicyDocumentException";
      $fault = "client";
      constructor(opts) {
        super({
          name: "MalformedPolicyDocumentException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _MalformedPolicyDocumentException.prototype);
      }
    };
    PackedPolicyTooLargeException = class _PackedPolicyTooLargeException extends STSServiceException {
      static {
        __name(this, "PackedPolicyTooLargeException");
      }
      name = "PackedPolicyTooLargeException";
      $fault = "client";
      constructor(opts) {
        super({
          name: "PackedPolicyTooLargeException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _PackedPolicyTooLargeException.prototype);
      }
    };
    RegionDisabledException = class _RegionDisabledException extends STSServiceException {
      static {
        __name(this, "RegionDisabledException");
      }
      name = "RegionDisabledException";
      $fault = "client";
      constructor(opts) {
        super({
          name: "RegionDisabledException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _RegionDisabledException.prototype);
      }
    };
    IDPRejectedClaimException = class _IDPRejectedClaimException extends STSServiceException {
      static {
        __name(this, "IDPRejectedClaimException");
      }
      name = "IDPRejectedClaimException";
      $fault = "client";
      constructor(opts) {
        super({
          name: "IDPRejectedClaimException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _IDPRejectedClaimException.prototype);
      }
    };
    InvalidIdentityTokenException = class _InvalidIdentityTokenException extends STSServiceException {
      static {
        __name(this, "InvalidIdentityTokenException");
      }
      name = "InvalidIdentityTokenException";
      $fault = "client";
      constructor(opts) {
        super({
          name: "InvalidIdentityTokenException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidIdentityTokenException.prototype);
      }
    };
    AssumeRoleWithWebIdentityRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
      ...obj,
      ...obj.WebIdentityToken && { WebIdentityToken: import_smithy_client23.SENSITIVE_STRING }
    }), "AssumeRoleWithWebIdentityRequestFilterSensitiveLog");
    AssumeRoleWithWebIdentityResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
      ...obj,
      ...obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) }
    }), "AssumeRoleWithWebIdentityResponseFilterSensitiveLog");
    IDPCommunicationErrorException = class _IDPCommunicationErrorException extends STSServiceException {
      static {
        __name(this, "IDPCommunicationErrorException");
      }
      name = "IDPCommunicationErrorException";
      $fault = "client";
      constructor(opts) {
        super({
          name: "IDPCommunicationErrorException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _IDPCommunicationErrorException.prototype);
      }
    };
  }
});

// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/protocols/Aws_query.js
var import_protocol_http15, import_smithy_client24, se_AssumeRoleCommand, se_AssumeRoleWithWebIdentityCommand, de_AssumeRoleCommand, de_AssumeRoleWithWebIdentityCommand, de_CommandError2, de_ExpiredTokenExceptionRes2, de_IDPCommunicationErrorExceptionRes, de_IDPRejectedClaimExceptionRes, de_InvalidIdentityTokenExceptionRes, de_MalformedPolicyDocumentExceptionRes, de_PackedPolicyTooLargeExceptionRes, de_RegionDisabledExceptionRes, se_AssumeRoleRequest, se_AssumeRoleWithWebIdentityRequest, se_policyDescriptorListType, se_PolicyDescriptorType, se_ProvidedContext, se_ProvidedContextsListType, se_Tag, se_tagKeyListType, se_tagListType, de_AssumedRoleUser, de_AssumeRoleResponse, de_AssumeRoleWithWebIdentityResponse, de_Credentials, de_ExpiredTokenException, de_IDPCommunicationErrorException, de_IDPRejectedClaimException, de_InvalidIdentityTokenException, de_MalformedPolicyDocumentException, de_PackedPolicyTooLargeException, de_RegionDisabledException, deserializeMetadata2, throwDefaultError2, buildHttpRpcRequest, SHARED_HEADERS, _2, _A, _AKI, _AR, _ARI, _ARU, _ARWWI, _Ar, _Au, _C, _CA, _DS, _E, _EI, _K, _P, _PA, _PAr, _PC, _PI, _PPS, _Pr, _RA, _RSN, _SAK, _SFWIT, _SI, _SN, _ST, _T, _TC, _TTK, _V, _Va, _WIT, _a, _m, buildFormUrlencodedString, loadQueryErrorCode;
var init_Aws_query = __esm({
  "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/protocols/Aws_query.js"() {
    init_dist_es2();
    import_protocol_http15 = __toESM(require_dist_cjs2());
    import_smithy_client24 = __toESM(require_dist_cjs26());
    init_models_02();
    init_STSServiceException();
    se_AssumeRoleCommand = /* @__PURE__ */ __name(async (input, context) => {
      const headers = SHARED_HEADERS;
      let body;
      body = buildFormUrlencodedString({
        ...se_AssumeRoleRequest(input, context),
        [_A]: _AR,
        [_V]: _2
      });
      return buildHttpRpcRequest(context, headers, "/", void 0, body);
    }, "se_AssumeRoleCommand");
    se_AssumeRoleWithWebIdentityCommand = /* @__PURE__ */ __name(async (input, context) => {
      const headers = SHARED_HEADERS;
      let body;
      body = buildFormUrlencodedString({
        ...se_AssumeRoleWithWebIdentityRequest(input, context),
        [_A]: _ARWWI,
        [_V]: _2
      });
      return buildHttpRpcRequest(context, headers, "/", void 0, body);
    }, "se_AssumeRoleWithWebIdentityCommand");
    de_AssumeRoleCommand = /* @__PURE__ */ __name(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError2(output, context);
      }
      const data3 = await parseXmlBody(output.body, context);
      let contents = {};
      contents = de_AssumeRoleResponse(data3.AssumeRoleResult, context);
      const response = {
        $metadata: deserializeMetadata2(output),
        ...contents
      };
      return response;
    }, "de_AssumeRoleCommand");
    de_AssumeRoleWithWebIdentityCommand = /* @__PURE__ */ __name(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError2(output, context);
      }
      const data3 = await parseXmlBody(output.body, context);
      let contents = {};
      contents = de_AssumeRoleWithWebIdentityResponse(data3.AssumeRoleWithWebIdentityResult, context);
      const response = {
        $metadata: deserializeMetadata2(output),
        ...contents
      };
      return response;
    }, "de_AssumeRoleWithWebIdentityCommand");
    de_CommandError2 = /* @__PURE__ */ __name(async (output, context) => {
      const parsedOutput = {
        ...output,
        body: await parseXmlErrorBody(output.body, context)
      };
      const errorCode = loadQueryErrorCode(output, parsedOutput.body);
      switch (errorCode) {
        case "ExpiredTokenException":
        case "com.amazonaws.sts#ExpiredTokenException":
          throw await de_ExpiredTokenExceptionRes2(parsedOutput, context);
        case "MalformedPolicyDocument":
        case "com.amazonaws.sts#MalformedPolicyDocumentException":
          throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput, context);
        case "PackedPolicyTooLarge":
        case "com.amazonaws.sts#PackedPolicyTooLargeException":
          throw await de_PackedPolicyTooLargeExceptionRes(parsedOutput, context);
        case "RegionDisabledException":
        case "com.amazonaws.sts#RegionDisabledException":
          throw await de_RegionDisabledExceptionRes(parsedOutput, context);
        case "IDPCommunicationError":
        case "com.amazonaws.sts#IDPCommunicationErrorException":
          throw await de_IDPCommunicationErrorExceptionRes(parsedOutput, context);
        case "IDPRejectedClaim":
        case "com.amazonaws.sts#IDPRejectedClaimException":
          throw await de_IDPRejectedClaimExceptionRes(parsedOutput, context);
        case "InvalidIdentityToken":
        case "com.amazonaws.sts#InvalidIdentityTokenException":
          throw await de_InvalidIdentityTokenExceptionRes(parsedOutput, context);
        default:
          const parsedBody = parsedOutput.body;
          return throwDefaultError2({
            output,
            parsedBody: parsedBody.Error,
            errorCode
          });
      }
    }, "de_CommandError");
    de_ExpiredTokenExceptionRes2 = /* @__PURE__ */ __name(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_ExpiredTokenException(body.Error, context);
      const exception = new ExpiredTokenException2({
        $metadata: deserializeMetadata2(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client24.decorateServiceException)(exception, body);
    }, "de_ExpiredTokenExceptionRes");
    de_IDPCommunicationErrorExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_IDPCommunicationErrorException(body.Error, context);
      const exception = new IDPCommunicationErrorException({
        $metadata: deserializeMetadata2(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client24.decorateServiceException)(exception, body);
    }, "de_IDPCommunicationErrorExceptionRes");
    de_IDPRejectedClaimExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_IDPRejectedClaimException(body.Error, context);
      const exception = new IDPRejectedClaimException({
        $metadata: deserializeMetadata2(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client24.decorateServiceException)(exception, body);
    }, "de_IDPRejectedClaimExceptionRes");
    de_InvalidIdentityTokenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_InvalidIdentityTokenException(body.Error, context);
      const exception = new InvalidIdentityTokenException({
        $metadata: deserializeMetadata2(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client24.decorateServiceException)(exception, body);
    }, "de_InvalidIdentityTokenExceptionRes");
    de_MalformedPolicyDocumentExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_MalformedPolicyDocumentException(body.Error, context);
      const exception = new MalformedPolicyDocumentException({
        $metadata: deserializeMetadata2(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client24.decorateServiceException)(exception, body);
    }, "de_MalformedPolicyDocumentExceptionRes");
    de_PackedPolicyTooLargeExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_PackedPolicyTooLargeException(body.Error, context);
      const exception = new PackedPolicyTooLargeException({
        $metadata: deserializeMetadata2(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client24.decorateServiceException)(exception, body);
    }, "de_PackedPolicyTooLargeExceptionRes");
    de_RegionDisabledExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_RegionDisabledException(body.Error, context);
      const exception = new RegionDisabledException({
        $metadata: deserializeMetadata2(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client24.decorateServiceException)(exception, body);
    }, "de_RegionDisabledExceptionRes");
    se_AssumeRoleRequest = /* @__PURE__ */ __name((input, context) => {
      const entries = {};
      if (input[_RA] != null) {
        entries[_RA] = input[_RA];
      }
      if (input[_RSN] != null) {
        entries[_RSN] = input[_RSN];
      }
      if (input[_PA] != null) {
        const memberEntries = se_policyDescriptorListType(input[_PA], context);
        if (input[_PA]?.length === 0) {
          entries.PolicyArns = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `PolicyArns.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_P] != null) {
        entries[_P] = input[_P];
      }
      if (input[_DS] != null) {
        entries[_DS] = input[_DS];
      }
      if (input[_T] != null) {
        const memberEntries = se_tagListType(input[_T], context);
        if (input[_T]?.length === 0) {
          entries.Tags = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Tags.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_TTK] != null) {
        const memberEntries = se_tagKeyListType(input[_TTK], context);
        if (input[_TTK]?.length === 0) {
          entries.TransitiveTagKeys = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TransitiveTagKeys.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_EI] != null) {
        entries[_EI] = input[_EI];
      }
      if (input[_SN] != null) {
        entries[_SN] = input[_SN];
      }
      if (input[_TC] != null) {
        entries[_TC] = input[_TC];
      }
      if (input[_SI] != null) {
        entries[_SI] = input[_SI];
      }
      if (input[_PC] != null) {
        const memberEntries = se_ProvidedContextsListType(input[_PC], context);
        if (input[_PC]?.length === 0) {
          entries.ProvidedContexts = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ProvidedContexts.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_AssumeRoleRequest");
    se_AssumeRoleWithWebIdentityRequest = /* @__PURE__ */ __name((input, context) => {
      const entries = {};
      if (input[_RA] != null) {
        entries[_RA] = input[_RA];
      }
      if (input[_RSN] != null) {
        entries[_RSN] = input[_RSN];
      }
      if (input[_WIT] != null) {
        entries[_WIT] = input[_WIT];
      }
      if (input[_PI] != null) {
        entries[_PI] = input[_PI];
      }
      if (input[_PA] != null) {
        const memberEntries = se_policyDescriptorListType(input[_PA], context);
        if (input[_PA]?.length === 0) {
          entries.PolicyArns = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `PolicyArns.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_P] != null) {
        entries[_P] = input[_P];
      }
      if (input[_DS] != null) {
        entries[_DS] = input[_DS];
      }
      return entries;
    }, "se_AssumeRoleWithWebIdentityRequest");
    se_policyDescriptorListType = /* @__PURE__ */ __name((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_PolicyDescriptorType(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`member.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_policyDescriptorListType");
    se_PolicyDescriptorType = /* @__PURE__ */ __name((input, context) => {
      const entries = {};
      if (input[_a] != null) {
        entries[_a] = input[_a];
      }
      return entries;
    }, "se_PolicyDescriptorType");
    se_ProvidedContext = /* @__PURE__ */ __name((input, context) => {
      const entries = {};
      if (input[_PAr] != null) {
        entries[_PAr] = input[_PAr];
      }
      if (input[_CA] != null) {
        entries[_CA] = input[_CA];
      }
      return entries;
    }, "se_ProvidedContext");
    se_ProvidedContextsListType = /* @__PURE__ */ __name((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_ProvidedContext(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`member.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_ProvidedContextsListType");
    se_Tag = /* @__PURE__ */ __name((input, context) => {
      const entries = {};
      if (input[_K] != null) {
        entries[_K] = input[_K];
      }
      if (input[_Va] != null) {
        entries[_Va] = input[_Va];
      }
      return entries;
    }, "se_Tag");
    se_tagKeyListType = /* @__PURE__ */ __name((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_tagKeyListType");
    se_tagListType = /* @__PURE__ */ __name((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_Tag(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`member.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_tagListType");
    de_AssumedRoleUser = /* @__PURE__ */ __name((output, context) => {
      const contents = {};
      if (output[_ARI] != null) {
        contents[_ARI] = (0, import_smithy_client24.expectString)(output[_ARI]);
      }
      if (output[_Ar] != null) {
        contents[_Ar] = (0, import_smithy_client24.expectString)(output[_Ar]);
      }
      return contents;
    }, "de_AssumedRoleUser");
    de_AssumeRoleResponse = /* @__PURE__ */ __name((output, context) => {
      const contents = {};
      if (output[_C] != null) {
        contents[_C] = de_Credentials(output[_C], context);
      }
      if (output[_ARU] != null) {
        contents[_ARU] = de_AssumedRoleUser(output[_ARU], context);
      }
      if (output[_PPS] != null) {
        contents[_PPS] = (0, import_smithy_client24.strictParseInt32)(output[_PPS]);
      }
      if (output[_SI] != null) {
        contents[_SI] = (0, import_smithy_client24.expectString)(output[_SI]);
      }
      return contents;
    }, "de_AssumeRoleResponse");
    de_AssumeRoleWithWebIdentityResponse = /* @__PURE__ */ __name((output, context) => {
      const contents = {};
      if (output[_C] != null) {
        contents[_C] = de_Credentials(output[_C], context);
      }
      if (output[_SFWIT] != null) {
        contents[_SFWIT] = (0, import_smithy_client24.expectString)(output[_SFWIT]);
      }
      if (output[_ARU] != null) {
        contents[_ARU] = de_AssumedRoleUser(output[_ARU], context);
      }
      if (output[_PPS] != null) {
        contents[_PPS] = (0, import_smithy_client24.strictParseInt32)(output[_PPS]);
      }
      if (output[_Pr] != null) {
        contents[_Pr] = (0, import_smithy_client24.expectString)(output[_Pr]);
      }
      if (output[_Au] != null) {
        contents[_Au] = (0, import_smithy_client24.expectString)(output[_Au]);
      }
      if (output[_SI] != null) {
        contents[_SI] = (0, import_smithy_client24.expectString)(output[_SI]);
      }
      return contents;
    }, "de_AssumeRoleWithWebIdentityResponse");
    de_Credentials = /* @__PURE__ */ __name((output, context) => {
      const contents = {};
      if (output[_AKI] != null) {
        contents[_AKI] = (0, import_smithy_client24.expectString)(output[_AKI]);
      }
      if (output[_SAK] != null) {
        contents[_SAK] = (0, import_smithy_client24.expectString)(output[_SAK]);
      }
      if (output[_ST] != null) {
        contents[_ST] = (0, import_smithy_client24.expectString)(output[_ST]);
      }
      if (output[_E] != null) {
        contents[_E] = (0, import_smithy_client24.expectNonNull)((0, import_smithy_client24.parseRfc3339DateTimeWithOffset)(output[_E]));
      }
      return contents;
    }, "de_Credentials");
    de_ExpiredTokenException = /* @__PURE__ */ __name((output, context) => {
      const contents = {};
      if (output[_m] != null) {
        contents[_m] = (0, import_smithy_client24.expectString)(output[_m]);
      }
      return contents;
    }, "de_ExpiredTokenException");
    de_IDPCommunicationErrorException = /* @__PURE__ */ __name((output, context) => {
      const contents = {};
      if (output[_m] != null) {
        contents[_m] = (0, import_smithy_client24.expectString)(output[_m]);
      }
      return contents;
    }, "de_IDPCommunicationErrorException");
    de_IDPRejectedClaimException = /* @__PURE__ */ __name((output, context) => {
      const contents = {};
      if (output[_m] != null) {
        contents[_m] = (0, import_smithy_client24.expectString)(output[_m]);
      }
      return contents;
    }, "de_IDPRejectedClaimException");
    de_InvalidIdentityTokenException = /* @__PURE__ */ __name((output, context) => {
      const contents = {};
      if (output[_m] != null) {
        contents[_m] = (0, import_smithy_client24.expectString)(output[_m]);
      }
      return contents;
    }, "de_InvalidIdentityTokenException");
    de_MalformedPolicyDocumentException = /* @__PURE__ */ __name((output, context) => {
      const contents = {};
      if (output[_m] != null) {
        contents[_m] = (0, import_smithy_client24.expectString)(output[_m]);
      }
      return contents;
    }, "de_MalformedPolicyDocumentException");
    de_PackedPolicyTooLargeException = /* @__PURE__ */ __name((output, context) => {
      const contents = {};
      if (output[_m] != null) {
        contents[_m] = (0, import_smithy_client24.expectString)(output[_m]);
      }
      return contents;
    }, "de_PackedPolicyTooLargeException");
    de_RegionDisabledException = /* @__PURE__ */ __name((output, context) => {
      const contents = {};
      if (output[_m] != null) {
        contents[_m] = (0, import_smithy_client24.expectString)(output[_m]);
      }
      return contents;
    }, "de_RegionDisabledException");
    deserializeMetadata2 = /* @__PURE__ */ __name((output) => ({
      httpStatusCode: output.statusCode,
      requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
      extendedRequestId: output.headers["x-amz-id-2"],
      cfId: output.headers["x-amz-cf-id"]
    }), "deserializeMetadata");
    throwDefaultError2 = (0, import_smithy_client24.withBaseException)(STSServiceException);
    buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path38, resolvedHostname, body) => {
      const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
      const contents = {
        protocol,
        hostname,
        port,
        method: "POST",
        path: basePath.endsWith("/") ? basePath.slice(0, -1) + path38 : basePath + path38,
        headers
      };
      if (resolvedHostname !== void 0) {
        contents.hostname = resolvedHostname;
      }
      if (body !== void 0) {
        contents.body = body;
      }
      return new import_protocol_http15.HttpRequest(contents);
    }, "buildHttpRpcRequest");
    SHARED_HEADERS = {
      "content-type": "application/x-www-form-urlencoded"
    };
    _2 = "2011-06-15";
    _A = "Action";
    _AKI = "AccessKeyId";
    _AR = "AssumeRole";
    _ARI = "AssumedRoleId";
    _ARU = "AssumedRoleUser";
    _ARWWI = "AssumeRoleWithWebIdentity";
    _Ar = "Arn";
    _Au = "Audience";
    _C = "Credentials";
    _CA = "ContextAssertion";
    _DS = "DurationSeconds";
    _E = "Expiration";
    _EI = "ExternalId";
    _K = "Key";
    _P = "Policy";
    _PA = "PolicyArns";
    _PAr = "ProviderArn";
    _PC = "ProvidedContexts";
    _PI = "ProviderId";
    _PPS = "PackedPolicySize";
    _Pr = "Provider";
    _RA = "RoleArn";
    _RSN = "RoleSessionName";
    _SAK = "SecretAccessKey";
    _SFWIT = "SubjectFromWebIdentityToken";
    _SI = "SourceIdentity";
    _SN = "SerialNumber";
    _ST = "SessionToken";
    _T = "Tags";
    _TC = "TokenCode";
    _TTK = "TransitiveTagKeys";
    _V = "Version";
    _Va = "Value";
    _WIT = "WebIdentityToken";
    _a = "arn";
    _m = "message";
    buildFormUrlencodedString = /* @__PURE__ */ __name((formEntries) => Object.entries(formEntries).map(([key, value]) => (0, import_smithy_client24.extendedEncodeURIComponent)(key) + "=" + (0, import_smithy_client24.extendedEncodeURIComponent)(value)).join("&"), "buildFormUrlencodedString");
    loadQueryErrorCode = /* @__PURE__ */ __name((output, data3) => {
      if (data3.Error?.Code !== void 0) {
        return data3.Error.Code;
      }
      if (output.statusCode == 404) {
        return "NotFound";
      }
    }, "loadQueryErrorCode");
  }
});

// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/AssumeRoleCommand.js
var import_middleware_endpoint4, import_middleware_serde3, import_smithy_client25, AssumeRoleCommand;
var init_AssumeRoleCommand = __esm({
  "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/AssumeRoleCommand.js"() {
    import_middleware_endpoint4 = __toESM(require_dist_cjs34());
    import_middleware_serde3 = __toESM(require_dist_cjs7());
    import_smithy_client25 = __toESM(require_dist_cjs26());
    init_EndpointParameters2();
    init_models_02();
    init_Aws_query();
    AssumeRoleCommand = class extends import_smithy_client25.Command.classBuilder().ep(commonParams2).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde3.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint4.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSSecurityTokenServiceV20110615", "AssumeRole", {}).n("STSClient", "AssumeRoleCommand").f(void 0, AssumeRoleResponseFilterSensitiveLog).ser(se_AssumeRoleCommand).de(de_AssumeRoleCommand).build() {
      static {
        __name(this, "AssumeRoleCommand");
      }
    };
  }
});

// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.js
var import_middleware_endpoint5, import_middleware_serde4, import_smithy_client26, AssumeRoleWithWebIdentityCommand;
var init_AssumeRoleWithWebIdentityCommand = __esm({
  "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.js"() {
    import_middleware_endpoint5 = __toESM(require_dist_cjs34());
    import_middleware_serde4 = __toESM(require_dist_cjs7());
    import_smithy_client26 = __toESM(require_dist_cjs26());
    init_EndpointParameters2();
    init_models_02();
    init_Aws_query();
    AssumeRoleWithWebIdentityCommand = class extends import_smithy_client26.Command.classBuilder().ep(commonParams2).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde4.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint5.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSSecurityTokenServiceV20110615", "AssumeRoleWithWebIdentity", {}).n("STSClient", "AssumeRoleWithWebIdentityCommand").f(AssumeRoleWithWebIdentityRequestFilterSensitiveLog, AssumeRoleWithWebIdentityResponseFilterSensitiveLog).ser(se_AssumeRoleWithWebIdentityCommand).de(de_AssumeRoleWithWebIdentityCommand).build() {
      static {
        __name(this, "AssumeRoleWithWebIdentityCommand");
      }
    };
  }
});

// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STS.js
var import_smithy_client27, commands2, STS;
var init_STS = __esm({
  "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STS.js"() {
    import_smithy_client27 = __toESM(require_dist_cjs26());
    init_AssumeRoleCommand();
    init_AssumeRoleWithWebIdentityCommand();
    init_STSClient();
    commands2 = {
      AssumeRoleCommand,
      AssumeRoleWithWebIdentityCommand
    };
    STS = class extends STSClient2 {
      static {
        __name(this, "STS");
      }
    };
    (0, import_smithy_client27.createAggregatedClient)(commands2, STS);
  }
});

// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/index.js
var init_commands3 = __esm({
  "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/index.js"() {
    init_AssumeRoleCommand();
    init_AssumeRoleWithWebIdentityCommand();
  }
});

// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/index.js
var init_models2 = __esm({
  "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/index.js"() {
    init_models_02();
  }
});

// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultStsRoleAssumers.js
var ASSUME_ROLE_DEFAULT_REGION, getAccountIdFromAssumedRoleUser, resolveRegion, getDefaultRoleAssumer, getDefaultRoleAssumerWithWebIdentity, isH2;
var init_defaultStsRoleAssumers = __esm({
  "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultStsRoleAssumers.js"() {
    init_client();
    init_AssumeRoleCommand();
    init_AssumeRoleWithWebIdentityCommand();
    ASSUME_ROLE_DEFAULT_REGION = "us-east-1";
    getAccountIdFromAssumedRoleUser = /* @__PURE__ */ __name((assumedRoleUser) => {
      if (typeof assumedRoleUser?.Arn === "string") {
        const arnComponents = assumedRoleUser.Arn.split(":");
        if (arnComponents.length > 4 && arnComponents[4] !== "") {
          return arnComponents[4];
        }
      }
      return void 0;
    }, "getAccountIdFromAssumedRoleUser");
    resolveRegion = /* @__PURE__ */ __name(async (_region, _parentRegion, credentialProviderLogger) => {
      const region = typeof _region === "function" ? await _region() : _region;
      const parentRegion = typeof _parentRegion === "function" ? await _parentRegion() : _parentRegion;
      credentialProviderLogger?.debug?.("@aws-sdk/client-sts::resolveRegion", "accepting first of:", `${region} (provider)`, `${parentRegion} (parent client)`, `${ASSUME_ROLE_DEFAULT_REGION} (STS default)`);
      return region ?? parentRegion ?? ASSUME_ROLE_DEFAULT_REGION;
    }, "resolveRegion");
    getDefaultRoleAssumer = /* @__PURE__ */ __name((stsOptions, STSClient5) => {
      let stsClient;
      let closureSourceCreds;
      return async (sourceCreds, params) => {
        closureSourceCreds = sourceCreds;
        if (!stsClient) {
          const { logger: logger4 = stsOptions?.parentClientConfig?.logger, region, requestHandler = stsOptions?.parentClientConfig?.requestHandler, credentialProviderLogger } = stsOptions;
          const resolvedRegion = await resolveRegion(region, stsOptions?.parentClientConfig?.region, credentialProviderLogger);
          const isCompatibleRequestHandler = !isH2(requestHandler);
          stsClient = new STSClient5({
            profile: stsOptions?.parentClientConfig?.profile,
            credentialDefaultProvider: /* @__PURE__ */ __name(() => async () => closureSourceCreds, "credentialDefaultProvider"),
            region: resolvedRegion,
            requestHandler: isCompatibleRequestHandler ? requestHandler : void 0,
            logger: logger4
          });
        }
        const { Credentials, AssumedRoleUser } = await stsClient.send(new AssumeRoleCommand(params));
        if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) {
          throw new Error(`Invalid response from STS.assumeRole call with role ${params.RoleArn}`);
        }
        const accountId = getAccountIdFromAssumedRoleUser(AssumedRoleUser);
        const credentials = {
          accessKeyId: Credentials.AccessKeyId,
          secretAccessKey: Credentials.SecretAccessKey,
          sessionToken: Credentials.SessionToken,
          expiration: Credentials.Expiration,
          ...Credentials.CredentialScope && { credentialScope: Credentials.CredentialScope },
          ...accountId && { accountId }
        };
        setCredentialFeature(credentials, "CREDENTIALS_STS_ASSUME_ROLE", "i");
        return credentials;
      };
    }, "getDefaultRoleAssumer");
    getDefaultRoleAssumerWithWebIdentity = /* @__PURE__ */ __name((stsOptions, STSClient5) => {
      let stsClient;
      return async (params) => {
        if (!stsClient) {
          const { logger: logger4 = stsOptions?.parentClientConfig?.logger, region, requestHandler = stsOptions?.parentClientConfig?.requestHandler, credentialProviderLogger } = stsOptions;
          const resolvedRegion = await resolveRegion(region, stsOptions?.parentClientConfig?.region, credentialProviderLogger);
          const isCompatibleRequestHandler = !isH2(requestHandler);
          stsClient = new STSClient5({
            profile: stsOptions?.parentClientConfig?.profile,
            region: resolvedRegion,
            requestHandler: isCompatibleRequestHandler ? requestHandler : void 0,
            logger: logger4
          });
        }
        const { Credentials, AssumedRoleUser } = await stsClient.send(new AssumeRoleWithWebIdentityCommand(params));
        if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) {
          throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${params.RoleArn}`);
        }
        const accountId = getAccountIdFromAssumedRoleUser(AssumedRoleUser);
        const credentials = {
          accessKeyId: Credentials.AccessKeyId,
          secretAccessKey: Credentials.SecretAccessKey,
          sessionToken: Credentials.SessionToken,
          expiration: Credentials.Expiration,
          ...Credentials.CredentialScope && { credentialScope: Credentials.CredentialScope },
          ...accountId && { accountId }
        };
        if (accountId) {
          setCredentialFeature(credentials, "RESOLVED_ACCOUNT_ID", "T");
        }
        setCredentialFeature(credentials, "CREDENTIALS_STS_ASSUME_ROLE_WEB_ID", "k");
        return credentials;
      };
    }, "getDefaultRoleAssumerWithWebIdentity");
    isH2 = /* @__PURE__ */ __name((requestHandler) => {
      return requestHandler?.metadata?.handlerProtocol === "h2";
    }, "isH2");
  }
});

// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultRoleAssumers.js
var getCustomizableStsClientCtor, getDefaultRoleAssumer2, getDefaultRoleAssumerWithWebIdentity2, decorateDefaultCredentialProvider;
var init_defaultRoleAssumers = __esm({
  "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultRoleAssumers.js"() {
    init_defaultStsRoleAssumers();
    init_STSClient();
    getCustomizableStsClientCtor = /* @__PURE__ */ __name((baseCtor, customizations) => {
      if (!customizations)
        return baseCtor;
      else
        return class CustomizableSTSClient extends baseCtor {
          static {
            __name(this, "CustomizableSTSClient");
          }
          constructor(config) {
            super(config);
            for (const customization of customizations) {
              this.middlewareStack.use(customization);
            }
          }
        };
    }, "getCustomizableStsClientCtor");
    getDefaultRoleAssumer2 = /* @__PURE__ */ __name((stsOptions = {}, stsPlugins) => getDefaultRoleAssumer(stsOptions, getCustomizableStsClientCtor(STSClient2, stsPlugins)), "getDefaultRoleAssumer");
    getDefaultRoleAssumerWithWebIdentity2 = /* @__PURE__ */ __name((stsOptions = {}, stsPlugins) => getDefaultRoleAssumerWithWebIdentity(stsOptions, getCustomizableStsClientCtor(STSClient2, stsPlugins)), "getDefaultRoleAssumerWithWebIdentity");
    decorateDefaultCredentialProvider = /* @__PURE__ */ __name((provider) => (input) => provider({
      roleAssumer: getDefaultRoleAssumer2(input),
      roleAssumerWithWebIdentity: getDefaultRoleAssumerWithWebIdentity2(input),
      ...input
    }), "decorateDefaultCredentialProvider");
  }
});

// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/index.js
var sts_exports = {};
__export(sts_exports, {
  AssumeRoleCommand: () => AssumeRoleCommand,
  AssumeRoleResponseFilterSensitiveLog: () => AssumeRoleResponseFilterSensitiveLog,
  AssumeRoleWithWebIdentityCommand: () => AssumeRoleWithWebIdentityCommand,
  AssumeRoleWithWebIdentityRequestFilterSensitiveLog: () => AssumeRoleWithWebIdentityRequestFilterSensitiveLog,
  AssumeRoleWithWebIdentityResponseFilterSensitiveLog: () => AssumeRoleWithWebIdentityResponseFilterSensitiveLog,
  CredentialsFilterSensitiveLog: () => CredentialsFilterSensitiveLog,
  ExpiredTokenException: () => ExpiredTokenException2,
  IDPCommunicationErrorException: () => IDPCommunicationErrorException,
  IDPRejectedClaimException: () => IDPRejectedClaimException,
  InvalidIdentityTokenException: () => InvalidIdentityTokenException,
  MalformedPolicyDocumentException: () => MalformedPolicyDocumentException,
  PackedPolicyTooLargeException: () => PackedPolicyTooLargeException,
  RegionDisabledException: () => RegionDisabledException,
  STS: () => STS,
  STSClient: () => STSClient2,
  STSServiceException: () => STSServiceException,
  __Client: () => import_smithy_client21.Client,
  decorateDefaultCredentialProvider: () => decorateDefaultCredentialProvider,
  getDefaultRoleAssumer: () => getDefaultRoleAssumer2,
  getDefaultRoleAssumerWithWebIdentity: () => getDefaultRoleAssumerWithWebIdentity2
});
var init_sts = __esm({
  "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/index.js"() {
    init_STSClient();
    init_STS();
    init_commands3();
    init_models2();
    init_defaultRoleAssumers();
    init_STSServiceException();
  }
});

// ../../node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js
var require_dist_cjs49 = __commonJS({
  "../../node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js"(exports2, module2) {
    "use strict";
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var index_exports = {};
    __export2(index_exports, {
      fromProcess: /* @__PURE__ */ __name(() => fromProcess, "fromProcess")
    });
    module2.exports = __toCommonJS2(index_exports);
    var import_shared_ini_file_loader2 = require_dist_cjs32();
    var import_property_provider3 = require_dist_cjs22();
    var import_child_process3 = require("child_process");
    var import_util76 = require("util");
    var import_client3 = (init_client(), __toCommonJS(client_exports));
    var getValidatedProcessCredentials = /* @__PURE__ */ __name2((profileName, data3, profiles) => {
      if (data3.Version !== 1) {
        throw Error(`Profile ${profileName} credential_process did not return Version 1.`);
      }
      if (data3.AccessKeyId === void 0 || data3.SecretAccessKey === void 0) {
        throw Error(`Profile ${profileName} credential_process returned invalid credentials.`);
      }
      if (data3.Expiration) {
        const currentTime = /* @__PURE__ */ new Date();
        const expireTime = new Date(data3.Expiration);
        if (expireTime < currentTime) {
          throw Error(`Profile ${profileName} credential_process returned expired credentials.`);
        }
      }
      let accountId = data3.AccountId;
      if (!accountId && profiles?.[profileName]?.aws_account_id) {
        accountId = profiles[profileName].aws_account_id;
      }
      const credentials = {
        accessKeyId: data3.AccessKeyId,
        secretAccessKey: data3.SecretAccessKey,
        ...data3.SessionToken && { sessionToken: data3.SessionToken },
        ...data3.Expiration && { expiration: new Date(data3.Expiration) },
        ...data3.CredentialScope && { credentialScope: data3.CredentialScope },
        ...accountId && { accountId }
      };
      (0, import_client3.setCredentialFeature)(credentials, "CREDENTIALS_PROCESS", "w");
      return credentials;
    }, "getValidatedProcessCredentials");
    var resolveProcessCredentials = /* @__PURE__ */ __name2(async (profileName, profiles, logger4) => {
      const profile = profiles[profileName];
      if (profiles[profileName]) {
        const credentialProcess = profile["credential_process"];
        if (credentialProcess !== void 0) {
          const execPromise = (0, import_util76.promisify)(import_child_process3.exec);
          try {
            const { stdout: stdout2 } = await execPromise(credentialProcess);
            let data3;
            try {
              data3 = JSON.parse(stdout2.trim());
            } catch {
              throw Error(`Profile ${profileName} credential_process returned invalid JSON.`);
            }
            return getValidatedProcessCredentials(profileName, data3, profiles);
          } catch (error5) {
            throw new import_property_provider3.CredentialsProviderError(error5.message, { logger: logger4 });
          }
        } else {
          throw new import_property_provider3.CredentialsProviderError(`Profile ${profileName} did not contain credential_process.`, { logger: logger4 });
        }
      } else {
        throw new import_property_provider3.CredentialsProviderError(`Profile ${profileName} could not be found in shared credentials file.`, {
          logger: logger4
        });
      }
    }, "resolveProcessCredentials");
    var fromProcess = /* @__PURE__ */ __name2((init = {}) => async ({ callerClientConfig } = {}) => {
      init.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");
      const profiles = await (0, import_shared_ini_file_loader2.parseKnownFiles)(init);
      return resolveProcessCredentials(
        (0, import_shared_ini_file_loader2.getProfileName)({
          profile: init.profile ?? callerClientConfig?.profile
        }),
        profiles,
        init.logger
      );
    }, "fromProcess");
  }
});

// ../../node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js
var require_fromWebToken = __commonJS({
  "../../node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js"(exports2) {
    "use strict";
    var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      var desc = Object.getOwnPropertyDescriptor(m3, k3);
      if (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) {
        desc = { enumerable: true, get: /* @__PURE__ */ __name(function() {
          return m3[k3];
        }, "get") };
      }
      Object.defineProperty(o3, k22, desc);
    }) : (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      o3[k22] = m3[k3];
    }));
    var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? (function(o3, v6) {
      Object.defineProperty(o3, "default", { enumerable: true, value: v6 });
    }) : function(o3, v6) {
      o3["default"] = v6;
    });
    var __importStar2 = exports2 && exports2.__importStar || /* @__PURE__ */ (function() {
      var ownKeys2 = /* @__PURE__ */ __name(function(o3) {
        ownKeys2 = Object.getOwnPropertyNames || function(o4) {
          var ar = [];
          for (var k3 in o4) if (Object.prototype.hasOwnProperty.call(o4, k3)) ar[ar.length] = k3;
          return ar;
        };
        return ownKeys2(o3);
      }, "ownKeys");
      return function(mod) {
        if (mod && mod.__esModule) return mod;
        var result2 = {};
        if (mod != null) {
          for (var k3 = ownKeys2(mod), i3 = 0; i3 < k3.length; i3++) if (k3[i3] !== "default") __createBinding3(result2, mod, k3[i3]);
        }
        __setModuleDefault2(result2, mod);
        return result2;
      };
    })();
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.fromWebToken = void 0;
    var fromWebToken2 = /* @__PURE__ */ __name((init) => async (awsIdentityProperties) => {
      init.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");
      const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds } = init;
      let { roleAssumerWithWebIdentity } = init;
      if (!roleAssumerWithWebIdentity) {
        const { getDefaultRoleAssumerWithWebIdentity: getDefaultRoleAssumerWithWebIdentity3 } = await Promise.resolve().then(() => __importStar2((init_sts(), __toCommonJS(sts_exports))));
        roleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity3({
          ...init.clientConfig,
          credentialProviderLogger: init.logger,
          parentClientConfig: {
            ...awsIdentityProperties?.callerClientConfig,
            ...init.parentClientConfig
          }
        }, init.clientPlugins);
      }
      return roleAssumerWithWebIdentity({
        RoleArn: roleArn,
        RoleSessionName: roleSessionName ?? `aws-sdk-js-session-${Date.now()}`,
        WebIdentityToken: webIdentityToken,
        ProviderId: providerId,
        PolicyArns: policyArns,
        Policy: policy,
        DurationSeconds: durationSeconds
      });
    }, "fromWebToken");
    exports2.fromWebToken = fromWebToken2;
  }
});

// ../../node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js
var require_fromTokenFile = __commonJS({
  "../../node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.fromTokenFile = void 0;
    var client_1 = (init_client(), __toCommonJS(client_exports));
    var property_provider_1 = require_dist_cjs22();
    var fs_1 = require("fs");
    var fromWebToken_1 = require_fromWebToken();
    var ENV_TOKEN_FILE = "AWS_WEB_IDENTITY_TOKEN_FILE";
    var ENV_ROLE_ARN = "AWS_ROLE_ARN";
    var ENV_ROLE_SESSION_NAME = "AWS_ROLE_SESSION_NAME";
    var fromTokenFile2 = /* @__PURE__ */ __name((init = {}) => async () => {
      init.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");
      const webIdentityTokenFile = init?.webIdentityTokenFile ?? process.env[ENV_TOKEN_FILE];
      const roleArn = init?.roleArn ?? process.env[ENV_ROLE_ARN];
      const roleSessionName = init?.roleSessionName ?? process.env[ENV_ROLE_SESSION_NAME];
      if (!webIdentityTokenFile || !roleArn) {
        throw new property_provider_1.CredentialsProviderError("Web identity configuration not specified", {
          logger: init.logger
        });
      }
      const credentials = await (0, fromWebToken_1.fromWebToken)({
        ...init,
        webIdentityToken: (0, fs_1.readFileSync)(webIdentityTokenFile, { encoding: "ascii" }),
        roleArn,
        roleSessionName
      })();
      if (webIdentityTokenFile === process.env[ENV_TOKEN_FILE]) {
        (0, client_1.setCredentialFeature)(credentials, "CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN", "h");
      }
      return credentials;
    }, "fromTokenFile");
    exports2.fromTokenFile = fromTokenFile2;
  }
});

// ../../node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js
var require_dist_cjs50 = __commonJS({
  "../../node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js"(exports2, module2) {
    "use strict";
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __reExport = /* @__PURE__ */ __name((target, mod, secondTarget) => (__copyProps2(target, mod, "default"), secondTarget && __copyProps2(secondTarget, mod, "default")), "__reExport");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var index_exports = {};
    module2.exports = __toCommonJS2(index_exports);
    __reExport(index_exports, require_fromTokenFile(), module2.exports);
    __reExport(index_exports, require_fromWebToken(), module2.exports);
  }
});

// ../../node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js
var require_dist_cjs51 = __commonJS({
  "../../node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js"(exports2, module2) {
    "use strict";
    var __create2 = Object.create;
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __getProtoOf2 = Object.getPrototypeOf;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toESM2 = /* @__PURE__ */ __name((mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
      // If the importer is in node compatibility mode or this is not an ESM
      // file that has been converted to a CommonJS file using a Babel-
      // compatible transform (i.e. "__esModule" has not been set), then set
      // "default" to the CommonJS "module.exports" for node compatibility.
      isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
      mod
    )), "__toESM");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var index_exports = {};
    __export2(index_exports, {
      fromIni: /* @__PURE__ */ __name(() => fromIni2, "fromIni")
    });
    module2.exports = __toCommonJS2(index_exports);
    var import_shared_ini_file_loader2 = require_dist_cjs32();
    var import_client3 = (init_client(), __toCommonJS(client_exports));
    var import_property_provider3 = require_dist_cjs22();
    var resolveCredentialSource = /* @__PURE__ */ __name2((credentialSource, profileName, logger4) => {
      const sourceProvidersMap = {
        EcsContainer: /* @__PURE__ */ __name2(async (options) => {
          const { fromHttp } = await Promise.resolve().then(() => __toESM2(require_dist_cjs40()));
          const { fromContainerMetadata } = await Promise.resolve().then(() => __toESM2(require_dist_cjs39()));
          logger4?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer");
          return async () => (0, import_property_provider3.chain)(fromHttp(options ?? {}), fromContainerMetadata(options))().then(setNamedProvider);
        }, "EcsContainer"),
        Ec2InstanceMetadata: /* @__PURE__ */ __name2(async (options) => {
          logger4?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");
          const { fromInstanceMetadata } = await Promise.resolve().then(() => __toESM2(require_dist_cjs39()));
          return async () => fromInstanceMetadata(options)().then(setNamedProvider);
        }, "Ec2InstanceMetadata"),
        Environment: /* @__PURE__ */ __name2(async (options) => {
          logger4?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");
          const { fromEnv: fromEnv2 } = await Promise.resolve().then(() => __toESM2(require_dist_cjs38()));
          return async () => fromEnv2(options)().then(setNamedProvider);
        }, "Environment")
      };
      if (credentialSource in sourceProvidersMap) {
        return sourceProvidersMap[credentialSource];
      } else {
        throw new import_property_provider3.CredentialsProviderError(
          `Unsupported credential source in profile ${profileName}. Got ${credentialSource}, expected EcsContainer or Ec2InstanceMetadata or Environment.`,
          { logger: logger4 }
        );
      }
    }, "resolveCredentialSource");
    var setNamedProvider = /* @__PURE__ */ __name2((creds) => (0, import_client3.setCredentialFeature)(creds, "CREDENTIALS_PROFILE_NAMED_PROVIDER", "p"), "setNamedProvider");
    var isAssumeRoleProfile = /* @__PURE__ */ __name2((arg, { profile = "default", logger: logger4 } = {}) => {
      return Boolean(arg) && typeof arg === "object" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1 && ["undefined", "string"].indexOf(typeof arg.external_id) > -1 && ["undefined", "string"].indexOf(typeof arg.mfa_serial) > -1 && (isAssumeRoleWithSourceProfile(arg, { profile, logger: logger4 }) || isCredentialSourceProfile(arg, { profile, logger: logger4 }));
    }, "isAssumeRoleProfile");
    var isAssumeRoleWithSourceProfile = /* @__PURE__ */ __name2((arg, { profile, logger: logger4 }) => {
      const withSourceProfile = typeof arg.source_profile === "string" && typeof arg.credential_source === "undefined";
      if (withSourceProfile) {
        logger4?.debug?.(`    ${profile} isAssumeRoleWithSourceProfile source_profile=${arg.source_profile}`);
      }
      return withSourceProfile;
    }, "isAssumeRoleWithSourceProfile");
    var isCredentialSourceProfile = /* @__PURE__ */ __name2((arg, { profile, logger: logger4 }) => {
      const withProviderProfile = typeof arg.credential_source === "string" && typeof arg.source_profile === "undefined";
      if (withProviderProfile) {
        logger4?.debug?.(`    ${profile} isCredentialSourceProfile credential_source=${arg.credential_source}`);
      }
      return withProviderProfile;
    }, "isCredentialSourceProfile");
    var resolveAssumeRoleCredentials = /* @__PURE__ */ __name2(async (profileName, profiles, options, visitedProfiles = {}) => {
      options.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");
      const profileData = profiles[profileName];
      const { source_profile, region } = profileData;
      if (!options.roleAssumer) {
        const { getDefaultRoleAssumer: getDefaultRoleAssumer3 } = await Promise.resolve().then(() => __toESM2((init_sts(), __toCommonJS(sts_exports))));
        options.roleAssumer = getDefaultRoleAssumer3(
          {
            ...options.clientConfig,
            credentialProviderLogger: options.logger,
            parentClientConfig: {
              ...options?.parentClientConfig,
              region: region ?? options?.parentClientConfig?.region
            }
          },
          options.clientPlugins
        );
      }
      if (source_profile && source_profile in visitedProfiles) {
        throw new import_property_provider3.CredentialsProviderError(
          `Detected a cycle attempting to resolve credentials for profile ${(0, import_shared_ini_file_loader2.getProfileName)(options)}. Profiles visited: ` + Object.keys(visitedProfiles).join(", "),
          { logger: options.logger }
        );
      }
      options.logger?.debug(
        `@aws-sdk/credential-provider-ini - finding credential resolver using ${source_profile ? `source_profile=[${source_profile}]` : `profile=[${profileName}]`}`
      );
      const sourceCredsProvider = source_profile ? resolveProfileData(
        source_profile,
        profiles,
        options,
        {
          ...visitedProfiles,
          [source_profile]: true
        },
        isCredentialSourceWithoutRoleArn(profiles[source_profile] ?? {})
      ) : (await resolveCredentialSource(profileData.credential_source, profileName, options.logger)(options))();
      if (isCredentialSourceWithoutRoleArn(profileData)) {
        return sourceCredsProvider.then((creds) => (0, import_client3.setCredentialFeature)(creds, "CREDENTIALS_PROFILE_SOURCE_PROFILE", "o"));
      } else {
        const params = {
          RoleArn: profileData.role_arn,
          RoleSessionName: profileData.role_session_name || `aws-sdk-js-${Date.now()}`,
          ExternalId: profileData.external_id,
          DurationSeconds: parseInt(profileData.duration_seconds || "3600", 10)
        };
        const { mfa_serial } = profileData;
        if (mfa_serial) {
          if (!options.mfaCodeProvider) {
            throw new import_property_provider3.CredentialsProviderError(
              `Profile ${profileName} requires multi-factor authentication, but no MFA code callback was provided.`,
              { logger: options.logger, tryNextLink: false }
            );
          }
          params.SerialNumber = mfa_serial;
          params.TokenCode = await options.mfaCodeProvider(mfa_serial);
        }
        const sourceCreds = await sourceCredsProvider;
        return options.roleAssumer(sourceCreds, params).then(
          (creds) => (0, import_client3.setCredentialFeature)(creds, "CREDENTIALS_PROFILE_SOURCE_PROFILE", "o")
        );
      }
    }, "resolveAssumeRoleCredentials");
    var isCredentialSourceWithoutRoleArn = /* @__PURE__ */ __name2((section) => {
      return !section.role_arn && !!section.credential_source;
    }, "isCredentialSourceWithoutRoleArn");
    var isProcessProfile = /* @__PURE__ */ __name2((arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string", "isProcessProfile");
    var resolveProcessCredentials = /* @__PURE__ */ __name2(async (options, profile) => Promise.resolve().then(() => __toESM2(require_dist_cjs49())).then(
      ({ fromProcess }) => fromProcess({
        ...options,
        profile
      })().then((creds) => (0, import_client3.setCredentialFeature)(creds, "CREDENTIALS_PROFILE_PROCESS", "v"))
    ), "resolveProcessCredentials");
    var resolveSsoCredentials = /* @__PURE__ */ __name2(async (profile, profileData, options = {}) => {
      const { fromSSO } = await Promise.resolve().then(() => __toESM2(require_dist_cjs48()));
      return fromSSO({
        profile,
        logger: options.logger,
        parentClientConfig: options.parentClientConfig,
        clientConfig: options.clientConfig
      })().then((creds) => {
        if (profileData.sso_session) {
          return (0, import_client3.setCredentialFeature)(creds, "CREDENTIALS_PROFILE_SSO", "r");
        } else {
          return (0, import_client3.setCredentialFeature)(creds, "CREDENTIALS_PROFILE_SSO_LEGACY", "t");
        }
      });
    }, "resolveSsoCredentials");
    var isSsoProfile = /* @__PURE__ */ __name2((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");
    var isStaticCredsProfile = /* @__PURE__ */ __name2((arg) => Boolean(arg) && typeof arg === "object" && typeof arg.aws_access_key_id === "string" && typeof arg.aws_secret_access_key === "string" && ["undefined", "string"].indexOf(typeof arg.aws_session_token) > -1 && ["undefined", "string"].indexOf(typeof arg.aws_account_id) > -1, "isStaticCredsProfile");
    var resolveStaticCredentials = /* @__PURE__ */ __name2(async (profile, options) => {
      options?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");
      const credentials = {
        accessKeyId: profile.aws_access_key_id,
        secretAccessKey: profile.aws_secret_access_key,
        sessionToken: profile.aws_session_token,
        ...profile.aws_credential_scope && { credentialScope: profile.aws_credential_scope },
        ...profile.aws_account_id && { accountId: profile.aws_account_id }
      };
      return (0, import_client3.setCredentialFeature)(credentials, "CREDENTIALS_PROFILE", "n");
    }, "resolveStaticCredentials");
    var isWebIdentityProfile = /* @__PURE__ */ __name2((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");
    var resolveWebIdentityCredentials = /* @__PURE__ */ __name2(async (profile, options) => Promise.resolve().then(() => __toESM2(require_dist_cjs50())).then(
      ({ fromTokenFile: fromTokenFile2 }) => fromTokenFile2({
        webIdentityTokenFile: profile.web_identity_token_file,
        roleArn: profile.role_arn,
        roleSessionName: profile.role_session_name,
        roleAssumerWithWebIdentity: options.roleAssumerWithWebIdentity,
        logger: options.logger,
        parentClientConfig: options.parentClientConfig
      })().then((creds) => (0, import_client3.setCredentialFeature)(creds, "CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN", "q"))
    ), "resolveWebIdentityCredentials");
    var resolveProfileData = /* @__PURE__ */ __name2(async (profileName, profiles, options, visitedProfiles = {}, isAssumeRoleRecursiveCall = false) => {
      const data3 = profiles[profileName];
      if (Object.keys(visitedProfiles).length > 0 && isStaticCredsProfile(data3)) {
        return resolveStaticCredentials(data3, options);
      }
      if (isAssumeRoleRecursiveCall || isAssumeRoleProfile(data3, { profile: profileName, logger: options.logger })) {
        return resolveAssumeRoleCredentials(profileName, profiles, options, visitedProfiles);
      }
      if (isStaticCredsProfile(data3)) {
        return resolveStaticCredentials(data3, options);
      }
      if (isWebIdentityProfile(data3)) {
        return resolveWebIdentityCredentials(data3, options);
      }
      if (isProcessProfile(data3)) {
        return resolveProcessCredentials(options, profileName);
      }
      if (isSsoProfile(data3)) {
        return await resolveSsoCredentials(profileName, data3, options);
      }
      throw new import_property_provider3.CredentialsProviderError(
        `Could not resolve credentials using profile: [${profileName}] in configuration/credentials file(s).`,
        { logger: options.logger }
      );
    }, "resolveProfileData");
    var fromIni2 = /* @__PURE__ */ __name2((_init = {}) => async ({ callerClientConfig } = {}) => {
      const init = {
        ..._init,
        parentClientConfig: {
          ...callerClientConfig,
          ..._init.parentClientConfig
        }
      };
      init.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");
      const profiles = await (0, import_shared_ini_file_loader2.parseKnownFiles)(init);
      return resolveProfileData(
        (0, import_shared_ini_file_loader2.getProfileName)({
          profile: _init.profile ?? callerClientConfig?.profile
        }),
        profiles,
        init
      );
    }, "fromIni");
  }
});

// ../../node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js
var require_dist_cjs52 = __commonJS({
  "../../node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js"(exports2, module2) {
    "use strict";
    var __create2 = Object.create;
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __getProtoOf2 = Object.getPrototypeOf;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toESM2 = /* @__PURE__ */ __name((mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
      // If the importer is in node compatibility mode or this is not an ESM
      // file that has been converted to a CommonJS file using a Babel-
      // compatible transform (i.e. "__esModule" has not been set), then set
      // "default" to the CommonJS "module.exports" for node compatibility.
      isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
      mod
    )), "__toESM");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var index_exports = {};
    __export2(index_exports, {
      credentialsTreatedAsExpired: /* @__PURE__ */ __name(() => credentialsTreatedAsExpired, "credentialsTreatedAsExpired"),
      credentialsWillNeedRefresh: /* @__PURE__ */ __name(() => credentialsWillNeedRefresh, "credentialsWillNeedRefresh"),
      defaultProvider: /* @__PURE__ */ __name(() => defaultProvider, "defaultProvider")
    });
    module2.exports = __toCommonJS2(index_exports);
    var import_credential_provider_env = require_dist_cjs38();
    var import_shared_ini_file_loader2 = require_dist_cjs32();
    var import_property_provider3 = require_dist_cjs22();
    var ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED";
    var remoteProvider = /* @__PURE__ */ __name2(async (init) => {
      const { ENV_CMDS_FULL_URI, ENV_CMDS_RELATIVE_URI, fromContainerMetadata, fromInstanceMetadata } = await Promise.resolve().then(() => __toESM2(require_dist_cjs39()));
      if (process.env[ENV_CMDS_RELATIVE_URI] || process.env[ENV_CMDS_FULL_URI]) {
        init.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");
        const { fromHttp } = await Promise.resolve().then(() => __toESM2(require_dist_cjs40()));
        return (0, import_property_provider3.chain)(fromHttp(init), fromContainerMetadata(init));
      }
      if (process.env[ENV_IMDS_DISABLED] && process.env[ENV_IMDS_DISABLED] !== "false") {
        return async () => {
          throw new import_property_provider3.CredentialsProviderError("EC2 Instance Metadata Service access disabled", { logger: init.logger });
        };
      }
      init.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata");
      return fromInstanceMetadata(init);
    }, "remoteProvider");
    var multipleCredentialSourceWarningEmitted = false;
    var defaultProvider = /* @__PURE__ */ __name2((init = {}) => (0, import_property_provider3.memoize)(
      (0, import_property_provider3.chain)(
        async () => {
          const profile = init.profile ?? process.env[import_shared_ini_file_loader2.ENV_PROFILE];
          if (profile) {
            const envStaticCredentialsAreSet = process.env[import_credential_provider_env.ENV_KEY] && process.env[import_credential_provider_env.ENV_SECRET];
            if (envStaticCredentialsAreSet) {
              if (!multipleCredentialSourceWarningEmitted) {
                const warnFn = init.logger?.warn && init.logger?.constructor?.name !== "NoOpLogger" ? init.logger.warn : console.warn;
                warnFn(
                  `@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING:
    Multiple credential sources detected: 
    Both AWS_PROFILE and the pair AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY static credentials are set.
    This SDK will proceed with the AWS_PROFILE value.
    
    However, a future version may change this behavior to prefer the ENV static credentials.
    Please ensure that your environment only sets either the AWS_PROFILE or the
    AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY pair.
`
                );
                multipleCredentialSourceWarningEmitted = true;
              }
            }
            throw new import_property_provider3.CredentialsProviderError("AWS_PROFILE is set, skipping fromEnv provider.", {
              logger: init.logger,
              tryNextLink: true
            });
          }
          init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv");
          return (0, import_credential_provider_env.fromEnv)(init)();
        },
        async () => {
          init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");
          const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init;
          if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) {
            throw new import_property_provider3.CredentialsProviderError(
              "Skipping SSO provider in default chain (inputs do not include SSO fields).",
              { logger: init.logger }
            );
          }
          const { fromSSO } = await Promise.resolve().then(() => __toESM2(require_dist_cjs48()));
          return fromSSO(init)();
        },
        async () => {
          init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");
          const { fromIni: fromIni2 } = await Promise.resolve().then(() => __toESM2(require_dist_cjs51()));
          return fromIni2(init)();
        },
        async () => {
          init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");
          const { fromProcess } = await Promise.resolve().then(() => __toESM2(require_dist_cjs49()));
          return fromProcess(init)();
        },
        async () => {
          init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");
          const { fromTokenFile: fromTokenFile2 } = await Promise.resolve().then(() => __toESM2(require_dist_cjs50()));
          return fromTokenFile2(init)();
        },
        async () => {
          init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider");
          return (await remoteProvider(init))();
        },
        async () => {
          throw new import_property_provider3.CredentialsProviderError("Could not load credentials from any providers", {
            tryNextLink: false,
            logger: init.logger
          });
        }
      ),
      credentialsTreatedAsExpired,
      credentialsWillNeedRefresh
    ), "defaultProvider");
    var credentialsWillNeedRefresh = /* @__PURE__ */ __name2((credentials) => credentials?.expiration !== void 0, "credentialsWillNeedRefresh");
    var credentialsTreatedAsExpired = /* @__PURE__ */ __name2((credentials) => credentials?.expiration !== void 0 && credentials.expiration.getTime() - Date.now() < 3e5, "credentialsTreatedAsExpired");
  }
});

// ../../node_modules/@aws-sdk/client-ecr/dist-cjs/endpoint/ruleset.js
var require_ruleset2 = __commonJS({
  "../../node_modules/@aws-sdk/client-ecr/dist-cjs/endpoint/ruleset.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.ruleSet = void 0;
    var B2 = "required";
    var C2 = "fn";
    var D2 = "argv";
    var E2 = "ref";
    var F2 = "url";
    var G2 = "properties";
    var H2 = "headers";
    var a3 = true;
    var b3 = "isSet";
    var c3 = "booleanEquals";
    var d3 = "error";
    var e3 = "endpoint";
    var f3 = "tree";
    var g3 = "PartitionResult";
    var h3 = "stringEquals";
    var i3 = "aws";
    var j3 = "aws-us-gov";
    var k3 = { [B2]: false, "type": "String" };
    var l3 = { [B2]: true, "default": false, "type": "Boolean" };
    var m3 = { [E2]: "Endpoint" };
    var n3 = { [C2]: c3, [D2]: [{ [E2]: "UseFIPS" }, true] };
    var o3 = { [C2]: c3, [D2]: [{ [E2]: "UseDualStack" }, true] };
    var p3 = {};
    var q3 = { [C2]: "getAttr", [D2]: [{ [E2]: g3 }, "supportsFIPS"] };
    var r3 = { [C2]: c3, [D2]: [true, { [C2]: "getAttr", [D2]: [{ [E2]: g3 }, "supportsDualStack"] }] };
    var s3 = { [C2]: "getAttr", [D2]: [{ [E2]: g3 }, "name"] };
    var t3 = { [F2]: "https://ecr-fips.{Region}.api.aws", [G2]: {}, [H2]: {} };
    var u3 = { [F2]: "https://ecr-fips.{Region}.amazonaws.com", [G2]: {}, [H2]: {} };
    var v6 = { [F2]: "https://ecr.{Region}.api.aws", [G2]: {}, [H2]: {} };
    var w3 = [n3];
    var x3 = [o3];
    var y2 = [{ [E2]: "Region" }];
    var z2 = [{ [C2]: h3, [D2]: [i3, s3] }];
    var A2 = [{ [C2]: h3, [D2]: [j3, s3] }];
    var _data3 = { version: "1.0", parameters: { Region: k3, UseDualStack: l3, UseFIPS: l3, Endpoint: k3 }, rules: [{ conditions: [{ [C2]: b3, [D2]: [m3] }], rules: [{ conditions: w3, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d3 }, { conditions: x3, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d3 }, { endpoint: { [F2]: m3, [G2]: p3, [H2]: p3 }, type: e3 }], type: f3 }, { conditions: [{ [C2]: b3, [D2]: y2 }], rules: [{ conditions: [{ [C2]: "aws.partition", [D2]: y2, assign: g3 }], rules: [{ conditions: [n3, o3], rules: [{ conditions: [{ [C2]: c3, [D2]: [a3, q3] }, r3], rules: [{ conditions: z2, endpoint: t3, type: e3 }, { conditions: A2, endpoint: t3, type: e3 }, { endpoint: { [F2]: "https://api.ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", [G2]: p3, [H2]: p3 }, type: e3 }], type: f3 }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d3 }], type: f3 }, { conditions: w3, rules: [{ conditions: [{ [C2]: c3, [D2]: [q3, a3] }], rules: [{ conditions: [{ [C2]: h3, [D2]: [s3, i3] }], endpoint: u3, type: e3 }, { conditions: [{ [C2]: h3, [D2]: [s3, j3] }], endpoint: u3, type: e3 }, { endpoint: { [F2]: "https://api.ecr-fips.{Region}.{PartitionResult#dnsSuffix}", [G2]: p3, [H2]: p3 }, type: e3 }], type: f3 }, { error: "FIPS is enabled but this partition does not support FIPS", type: d3 }], type: f3 }, { conditions: x3, rules: [{ conditions: [r3], rules: [{ conditions: z2, endpoint: v6, type: e3 }, { conditions: [{ [C2]: h3, [D2]: ["aws-cn", s3] }], endpoint: { [F2]: "https://ecr.{Region}.api.amazonwebservices.com.cn", [G2]: p3, [H2]: p3 }, type: e3 }, { conditions: A2, endpoint: v6, type: e3 }, { endpoint: { [F2]: "https://api.ecr.{Region}.{PartitionResult#dualStackDnsSuffix}", [G2]: p3, [H2]: p3 }, type: e3 }], type: f3 }, { error: "DualStack is enabled but this partition does not support DualStack", type: d3 }], type: f3 }, { endpoint: { [F2]: "https://api.ecr.{Region}.{PartitionResult#dnsSuffix}", [G2]: p3, [H2]: p3 }, type: e3 }], type: f3 }], type: f3 }, { error: "Invalid Configuration: Missing Region", type: d3 }] };
    exports2.ruleSet = _data3;
  }
});

// ../../node_modules/@aws-sdk/client-ecr/dist-cjs/endpoint/endpointResolver.js
var require_endpointResolver2 = __commonJS({
  "../../node_modules/@aws-sdk/client-ecr/dist-cjs/endpoint/endpointResolver.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.defaultEndpointResolver = void 0;
    var util_endpoints_1 = require_dist_cjs21();
    var util_endpoints_2 = require_dist_cjs18();
    var ruleset_1 = require_ruleset2();
    var cache3 = new util_endpoints_2.EndpointCache({
      size: 50,
      params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"]
    });
    var defaultEndpointResolver3 = /* @__PURE__ */ __name((endpointParams, context = {}) => {
      return cache3.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
        endpointParams,
        logger: context.logger
      }));
    }, "defaultEndpointResolver");
    exports2.defaultEndpointResolver = defaultEndpointResolver3;
    util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
  }
});

// ../../node_modules/@aws-sdk/client-ecr/dist-cjs/runtimeConfig.shared.js
var require_runtimeConfig_shared2 = __commonJS({
  "../../node_modules/@aws-sdk/client-ecr/dist-cjs/runtimeConfig.shared.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.getRuntimeConfig = void 0;
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var smithy_client_1 = require_dist_cjs26();
    var url_parser_1 = require_dist_cjs20();
    var util_base64_1 = require_dist_cjs11();
    var util_utf8_1 = require_dist_cjs10();
    var httpAuthSchemeProvider_1 = require_httpAuthSchemeProvider();
    var endpointResolver_1 = require_endpointResolver2();
    var getRuntimeConfig5 = /* @__PURE__ */ __name((config) => {
      return {
        apiVersion: "2015-09-21",
        base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
        base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
        disableHostPrefix: config?.disableHostPrefix ?? false,
        endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
        extensions: config?.extensions ?? [],
        httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultECRHttpAuthSchemeProvider,
        httpAuthSchemes: config?.httpAuthSchemes ?? [
          {
            schemeId: "aws.auth#sigv4",
            identityProvider: /* @__PURE__ */ __name((ipc) => ipc.getIdentityProvider("aws.auth#sigv4"), "identityProvider"),
            signer: new core_1.AwsSdkSigV4Signer()
          }
        ],
        logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
        serviceId: config?.serviceId ?? "ECR",
        urlParser: config?.urlParser ?? url_parser_1.parseUrl,
        utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
        utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8
      };
    }, "getRuntimeConfig");
    exports2.getRuntimeConfig = getRuntimeConfig5;
  }
});

// ../../node_modules/@aws-sdk/client-ecr/dist-cjs/runtimeConfig.js
var require_runtimeConfig2 = __commonJS({
  "../../node_modules/@aws-sdk/client-ecr/dist-cjs/runtimeConfig.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.getRuntimeConfig = void 0;
    var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
    var package_json_1 = tslib_1.__importDefault(require_package());
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var credential_provider_node_1 = require_dist_cjs52();
    var util_user_agent_node_1 = require_dist_cjs41();
    var config_resolver_1 = require_dist_cjs30();
    var hash_node_1 = require_dist_cjs42();
    var middleware_retry_1 = require_dist_cjs37();
    var node_config_provider_1 = require_dist_cjs33();
    var node_http_handler_1 = require_dist_cjs14();
    var util_body_length_node_1 = require_dist_cjs43();
    var util_retry_1 = require_dist_cjs36();
    var runtimeConfig_shared_1 = require_runtimeConfig_shared2();
    var smithy_client_1 = require_dist_cjs26();
    var util_defaults_mode_node_1 = require_dist_cjs44();
    var smithy_client_2 = require_dist_cjs26();
    var getRuntimeConfig5 = /* @__PURE__ */ __name((config) => {
      (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
      const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
      const defaultConfigProvider = /* @__PURE__ */ __name(() => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode), "defaultConfigProvider");
      const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
      (0, core_1.emitWarningIfUnsupportedVersion)(process.version);
      const loaderConfig = {
        profile: config?.profile,
        logger: clientSharedValues.logger
      };
      return {
        ...clientSharedValues,
        ...config,
        runtime: "node",
        defaultsMode,
        authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
        bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
        credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
        defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
        maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
        region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
        requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
        retryMode: config?.retryMode ?? (0, node_config_provider_1.loadConfig)({
          ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
          default: /* @__PURE__ */ __name(async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE, "default")
        }, config),
        sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
        streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
        useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
        useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
        userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig)
      };
    }, "getRuntimeConfig");
    exports2.getRuntimeConfig = getRuntimeConfig5;
  }
});

// ../../node_modules/@smithy/util-waiter/dist-cjs/index.js
var require_dist_cjs53 = __commonJS({
  "../../node_modules/@smithy/util-waiter/dist-cjs/index.js"(exports2, module2) {
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var src_exports = {};
    __export2(src_exports, {
      WaiterState: /* @__PURE__ */ __name(() => WaiterState, "WaiterState"),
      checkExceptions: /* @__PURE__ */ __name(() => checkExceptions, "checkExceptions"),
      createWaiter: /* @__PURE__ */ __name(() => createWaiter, "createWaiter"),
      waiterServiceDefaults: /* @__PURE__ */ __name(() => waiterServiceDefaults, "waiterServiceDefaults")
    });
    module2.exports = __toCommonJS2(src_exports);
    var sleep4 = /* @__PURE__ */ __name2((seconds) => {
      return new Promise((resolve13) => setTimeout(resolve13, seconds * 1e3));
    }, "sleep");
    var waiterServiceDefaults = {
      minDelay: 2,
      maxDelay: 120
    };
    var WaiterState = /* @__PURE__ */ ((WaiterState2) => {
      WaiterState2["ABORTED"] = "ABORTED";
      WaiterState2["FAILURE"] = "FAILURE";
      WaiterState2["SUCCESS"] = "SUCCESS";
      WaiterState2["RETRY"] = "RETRY";
      WaiterState2["TIMEOUT"] = "TIMEOUT";
      return WaiterState2;
    })(WaiterState || {});
    var checkExceptions = /* @__PURE__ */ __name2((result2) => {
      if (result2.state === "ABORTED") {
        const abortError = new Error(
          `${JSON.stringify({
            ...result2,
            reason: "Request was aborted"
          })}`
        );
        abortError.name = "AbortError";
        throw abortError;
      } else if (result2.state === "TIMEOUT") {
        const timeoutError = new Error(
          `${JSON.stringify({
            ...result2,
            reason: "Waiter has timed out"
          })}`
        );
        timeoutError.name = "TimeoutError";
        throw timeoutError;
      } else if (result2.state !== "SUCCESS") {
        throw new Error(`${JSON.stringify(result2)}`);
      }
      return result2;
    }, "checkExceptions");
    var exponentialBackoffWithJitter = /* @__PURE__ */ __name2((minDelay, maxDelay, attemptCeiling, attempt) => {
      if (attempt > attemptCeiling)
        return maxDelay;
      const delay = minDelay * 2 ** (attempt - 1);
      return randomInRange(minDelay, delay);
    }, "exponentialBackoffWithJitter");
    var randomInRange = /* @__PURE__ */ __name2((min, max) => min + Math.random() * (max - min), "randomInRange");
    var runPolling = /* @__PURE__ */ __name2(async ({ minDelay, maxDelay, maxWaitTime, abortController, client, abortSignal }, input, acceptorChecks) => {
      const observedResponses = {};
      const { state: state2, reason } = await acceptorChecks(client, input);
      if (reason) {
        const message2 = createMessageFromResponse(reason);
        observedResponses[message2] |= 0;
        observedResponses[message2] += 1;
      }
      if (state2 !== "RETRY") {
        return { state: state2, reason, observedResponses };
      }
      let currentAttempt = 1;
      const waitUntil = Date.now() + maxWaitTime * 1e3;
      const attemptCeiling = Math.log(maxDelay / minDelay) / Math.log(2) + 1;
      while (true) {
        if (abortController?.signal?.aborted || abortSignal?.aborted) {
          const message2 = "AbortController signal aborted.";
          observedResponses[message2] |= 0;
          observedResponses[message2] += 1;
          return { state: "ABORTED", observedResponses };
        }
        const delay = exponentialBackoffWithJitter(minDelay, maxDelay, attemptCeiling, currentAttempt);
        if (Date.now() + delay * 1e3 > waitUntil) {
          return { state: "TIMEOUT", observedResponses };
        }
        await sleep4(delay);
        const { state: state22, reason: reason2 } = await acceptorChecks(client, input);
        if (reason2) {
          const message2 = createMessageFromResponse(reason2);
          observedResponses[message2] |= 0;
          observedResponses[message2] += 1;
        }
        if (state22 !== "RETRY") {
          return { state: state22, reason: reason2, observedResponses };
        }
        currentAttempt += 1;
      }
    }, "runPolling");
    var createMessageFromResponse = /* @__PURE__ */ __name2((reason) => {
      if (reason?.$responseBodyText) {
        return `Deserialization error for body: ${reason.$responseBodyText}`;
      }
      if (reason?.$metadata?.httpStatusCode) {
        if (reason.$response || reason.message) {
          return `${reason.$response.statusCode ?? reason.$metadata.httpStatusCode ?? "Unknown"}: ${reason.message}`;
        }
        return `${reason.$metadata.httpStatusCode}: OK`;
      }
      return String(reason?.message ?? JSON.stringify(reason) ?? "Unknown");
    }, "createMessageFromResponse");
    var validateWaiterOptions = /* @__PURE__ */ __name2((options) => {
      if (options.maxWaitTime <= 0) {
        throw new Error(`WaiterConfiguration.maxWaitTime must be greater than 0`);
      } else if (options.minDelay <= 0) {
        throw new Error(`WaiterConfiguration.minDelay must be greater than 0`);
      } else if (options.maxDelay <= 0) {
        throw new Error(`WaiterConfiguration.maxDelay must be greater than 0`);
      } else if (options.maxWaitTime <= options.minDelay) {
        throw new Error(
          `WaiterConfiguration.maxWaitTime [${options.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${options.minDelay}] for this waiter`
        );
      } else if (options.maxDelay < options.minDelay) {
        throw new Error(
          `WaiterConfiguration.maxDelay [${options.maxDelay}] must be greater than WaiterConfiguration.minDelay [${options.minDelay}] for this waiter`
        );
      }
    }, "validateWaiterOptions");
    var abortTimeout = /* @__PURE__ */ __name2((abortSignal) => {
      let onAbort;
      const promise = new Promise((resolve13) => {
        onAbort = /* @__PURE__ */ __name2(() => resolve13({
          state: "ABORTED"
          /* ABORTED */
        }), "onAbort");
        if (typeof abortSignal.addEventListener === "function") {
          abortSignal.addEventListener("abort", onAbort);
        } else {
          abortSignal.onabort = onAbort;
        }
      });
      return {
        clearListener() {
          if (typeof abortSignal.removeEventListener === "function") {
            abortSignal.removeEventListener("abort", onAbort);
          }
        },
        aborted: promise
      };
    }, "abortTimeout");
    var createWaiter = /* @__PURE__ */ __name2(async (options, input, acceptorChecks) => {
      const params = {
        ...waiterServiceDefaults,
        ...options
      };
      validateWaiterOptions(params);
      const exitConditions = [runPolling(params, input, acceptorChecks)];
      const finalize = [];
      if (options.abortSignal) {
        const { aborted, clearListener } = abortTimeout(options.abortSignal);
        finalize.push(clearListener);
        exitConditions.push(aborted);
      }
      if (options.abortController?.signal) {
        const { aborted, clearListener } = abortTimeout(options.abortController.signal);
        finalize.push(clearListener);
        exitConditions.push(aborted);
      }
      return Promise.race(exitConditions).then((result2) => {
        for (const fn of finalize) {
          fn();
        }
        return result2;
      });
    }, "createWaiter");
  }
});

// ../../node_modules/@aws-sdk/client-ecr/dist-cjs/index.js
var require_dist_cjs54 = __commonJS({
  "../../node_modules/@aws-sdk/client-ecr/dist-cjs/index.js"(exports2, module2) {
    "use strict";
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var index_exports = {};
    __export2(index_exports, {
      BatchCheckLayerAvailabilityCommand: /* @__PURE__ */ __name(() => BatchCheckLayerAvailabilityCommand, "BatchCheckLayerAvailabilityCommand"),
      BatchDeleteImageCommand: /* @__PURE__ */ __name(() => BatchDeleteImageCommand2, "BatchDeleteImageCommand"),
      BatchGetImageCommand: /* @__PURE__ */ __name(() => BatchGetImageCommand2, "BatchGetImageCommand"),
      BatchGetRepositoryScanningConfigurationCommand: /* @__PURE__ */ __name(() => BatchGetRepositoryScanningConfigurationCommand, "BatchGetRepositoryScanningConfigurationCommand"),
      CompleteLayerUploadCommand: /* @__PURE__ */ __name(() => CompleteLayerUploadCommand, "CompleteLayerUploadCommand"),
      CreatePullThroughCacheRuleCommand: /* @__PURE__ */ __name(() => CreatePullThroughCacheRuleCommand, "CreatePullThroughCacheRuleCommand"),
      CreateRepositoryCommand: /* @__PURE__ */ __name(() => CreateRepositoryCommand2, "CreateRepositoryCommand"),
      CreateRepositoryCreationTemplateCommand: /* @__PURE__ */ __name(() => CreateRepositoryCreationTemplateCommand, "CreateRepositoryCreationTemplateCommand"),
      DeleteLifecyclePolicyCommand: /* @__PURE__ */ __name(() => DeleteLifecyclePolicyCommand, "DeleteLifecyclePolicyCommand"),
      DeletePullThroughCacheRuleCommand: /* @__PURE__ */ __name(() => DeletePullThroughCacheRuleCommand, "DeletePullThroughCacheRuleCommand"),
      DeleteRegistryPolicyCommand: /* @__PURE__ */ __name(() => DeleteRegistryPolicyCommand, "DeleteRegistryPolicyCommand"),
      DeleteRepositoryCommand: /* @__PURE__ */ __name(() => DeleteRepositoryCommand, "DeleteRepositoryCommand"),
      DeleteRepositoryCreationTemplateCommand: /* @__PURE__ */ __name(() => DeleteRepositoryCreationTemplateCommand, "DeleteRepositoryCreationTemplateCommand"),
      DeleteRepositoryPolicyCommand: /* @__PURE__ */ __name(() => DeleteRepositoryPolicyCommand, "DeleteRepositoryPolicyCommand"),
      DescribeImageReplicationStatusCommand: /* @__PURE__ */ __name(() => DescribeImageReplicationStatusCommand, "DescribeImageReplicationStatusCommand"),
      DescribeImageScanFindingsCommand: /* @__PURE__ */ __name(() => DescribeImageScanFindingsCommand, "DescribeImageScanFindingsCommand"),
      DescribeImagesCommand: /* @__PURE__ */ __name(() => DescribeImagesCommand3, "DescribeImagesCommand"),
      DescribePullThroughCacheRulesCommand: /* @__PURE__ */ __name(() => DescribePullThroughCacheRulesCommand, "DescribePullThroughCacheRulesCommand"),
      DescribeRegistryCommand: /* @__PURE__ */ __name(() => DescribeRegistryCommand, "DescribeRegistryCommand"),
      DescribeRepositoriesCommand: /* @__PURE__ */ __name(() => DescribeRepositoriesCommand3, "DescribeRepositoriesCommand"),
      DescribeRepositoryCreationTemplatesCommand: /* @__PURE__ */ __name(() => DescribeRepositoryCreationTemplatesCommand, "DescribeRepositoryCreationTemplatesCommand"),
      ECR: /* @__PURE__ */ __name(() => ECR, "ECR"),
      ECRClient: /* @__PURE__ */ __name(() => ECRClient3, "ECRClient"),
      ECRServiceException: /* @__PURE__ */ __name(() => ECRServiceException, "ECRServiceException"),
      EmptyUploadException: /* @__PURE__ */ __name(() => EmptyUploadException, "EmptyUploadException"),
      EncryptionType: /* @__PURE__ */ __name(() => EncryptionType, "EncryptionType"),
      FindingSeverity: /* @__PURE__ */ __name(() => FindingSeverity, "FindingSeverity"),
      GetAccountSettingCommand: /* @__PURE__ */ __name(() => GetAccountSettingCommand, "GetAccountSettingCommand"),
      GetAuthorizationTokenCommand: /* @__PURE__ */ __name(() => GetAuthorizationTokenCommand3, "GetAuthorizationTokenCommand"),
      GetDownloadUrlForLayerCommand: /* @__PURE__ */ __name(() => GetDownloadUrlForLayerCommand, "GetDownloadUrlForLayerCommand"),
      GetLifecyclePolicyCommand: /* @__PURE__ */ __name(() => GetLifecyclePolicyCommand, "GetLifecyclePolicyCommand"),
      GetLifecyclePolicyPreviewCommand: /* @__PURE__ */ __name(() => GetLifecyclePolicyPreviewCommand, "GetLifecyclePolicyPreviewCommand"),
      GetRegistryPolicyCommand: /* @__PURE__ */ __name(() => GetRegistryPolicyCommand, "GetRegistryPolicyCommand"),
      GetRegistryScanningConfigurationCommand: /* @__PURE__ */ __name(() => GetRegistryScanningConfigurationCommand, "GetRegistryScanningConfigurationCommand"),
      GetRepositoryPolicyCommand: /* @__PURE__ */ __name(() => GetRepositoryPolicyCommand, "GetRepositoryPolicyCommand"),
      ImageActionType: /* @__PURE__ */ __name(() => ImageActionType, "ImageActionType"),
      ImageAlreadyExistsException: /* @__PURE__ */ __name(() => ImageAlreadyExistsException, "ImageAlreadyExistsException"),
      ImageDigestDoesNotMatchException: /* @__PURE__ */ __name(() => ImageDigestDoesNotMatchException, "ImageDigestDoesNotMatchException"),
      ImageFailureCode: /* @__PURE__ */ __name(() => ImageFailureCode, "ImageFailureCode"),
      ImageNotFoundException: /* @__PURE__ */ __name(() => ImageNotFoundException, "ImageNotFoundException"),
      ImageTagAlreadyExistsException: /* @__PURE__ */ __name(() => ImageTagAlreadyExistsException, "ImageTagAlreadyExistsException"),
      ImageTagMutability: /* @__PURE__ */ __name(() => ImageTagMutability, "ImageTagMutability"),
      ImageTagMutabilityExclusionFilterType: /* @__PURE__ */ __name(() => ImageTagMutabilityExclusionFilterType, "ImageTagMutabilityExclusionFilterType"),
      InitiateLayerUploadCommand: /* @__PURE__ */ __name(() => InitiateLayerUploadCommand, "InitiateLayerUploadCommand"),
      InvalidLayerException: /* @__PURE__ */ __name(() => InvalidLayerException, "InvalidLayerException"),
      InvalidLayerPartException: /* @__PURE__ */ __name(() => InvalidLayerPartException, "InvalidLayerPartException"),
      InvalidParameterException: /* @__PURE__ */ __name(() => InvalidParameterException, "InvalidParameterException"),
      InvalidTagParameterException: /* @__PURE__ */ __name(() => InvalidTagParameterException, "InvalidTagParameterException"),
      KmsException: /* @__PURE__ */ __name(() => KmsException, "KmsException"),
      LayerAlreadyExistsException: /* @__PURE__ */ __name(() => LayerAlreadyExistsException, "LayerAlreadyExistsException"),
      LayerAvailability: /* @__PURE__ */ __name(() => LayerAvailability, "LayerAvailability"),
      LayerFailureCode: /* @__PURE__ */ __name(() => LayerFailureCode, "LayerFailureCode"),
      LayerInaccessibleException: /* @__PURE__ */ __name(() => LayerInaccessibleException, "LayerInaccessibleException"),
      LayerPartTooSmallException: /* @__PURE__ */ __name(() => LayerPartTooSmallException, "LayerPartTooSmallException"),
      LayersNotFoundException: /* @__PURE__ */ __name(() => LayersNotFoundException, "LayersNotFoundException"),
      LifecyclePolicyNotFoundException: /* @__PURE__ */ __name(() => LifecyclePolicyNotFoundException, "LifecyclePolicyNotFoundException"),
      LifecyclePolicyPreviewInProgressException: /* @__PURE__ */ __name(() => LifecyclePolicyPreviewInProgressException, "LifecyclePolicyPreviewInProgressException"),
      LifecyclePolicyPreviewNotFoundException: /* @__PURE__ */ __name(() => LifecyclePolicyPreviewNotFoundException, "LifecyclePolicyPreviewNotFoundException"),
      LifecyclePolicyPreviewStatus: /* @__PURE__ */ __name(() => LifecyclePolicyPreviewStatus, "LifecyclePolicyPreviewStatus"),
      LimitExceededException: /* @__PURE__ */ __name(() => LimitExceededException, "LimitExceededException"),
      ListImagesCommand: /* @__PURE__ */ __name(() => ListImagesCommand2, "ListImagesCommand"),
      ListTagsForResourceCommand: /* @__PURE__ */ __name(() => ListTagsForResourceCommand, "ListTagsForResourceCommand"),
      PullThroughCacheRuleAlreadyExistsException: /* @__PURE__ */ __name(() => PullThroughCacheRuleAlreadyExistsException, "PullThroughCacheRuleAlreadyExistsException"),
      PullThroughCacheRuleNotFoundException: /* @__PURE__ */ __name(() => PullThroughCacheRuleNotFoundException, "PullThroughCacheRuleNotFoundException"),
      PutAccountSettingCommand: /* @__PURE__ */ __name(() => PutAccountSettingCommand, "PutAccountSettingCommand"),
      PutImageCommand: /* @__PURE__ */ __name(() => PutImageCommand2, "PutImageCommand"),
      PutImageScanningConfigurationCommand: /* @__PURE__ */ __name(() => PutImageScanningConfigurationCommand2, "PutImageScanningConfigurationCommand"),
      PutImageTagMutabilityCommand: /* @__PURE__ */ __name(() => PutImageTagMutabilityCommand, "PutImageTagMutabilityCommand"),
      PutLifecyclePolicyCommand: /* @__PURE__ */ __name(() => PutLifecyclePolicyCommand, "PutLifecyclePolicyCommand"),
      PutRegistryPolicyCommand: /* @__PURE__ */ __name(() => PutRegistryPolicyCommand, "PutRegistryPolicyCommand"),
      PutRegistryScanningConfigurationCommand: /* @__PURE__ */ __name(() => PutRegistryScanningConfigurationCommand, "PutRegistryScanningConfigurationCommand"),
      PutReplicationConfigurationCommand: /* @__PURE__ */ __name(() => PutReplicationConfigurationCommand, "PutReplicationConfigurationCommand"),
      RCTAppliedFor: /* @__PURE__ */ __name(() => RCTAppliedFor, "RCTAppliedFor"),
      ReferencedImagesNotFoundException: /* @__PURE__ */ __name(() => ReferencedImagesNotFoundException, "ReferencedImagesNotFoundException"),
      RegistryPolicyNotFoundException: /* @__PURE__ */ __name(() => RegistryPolicyNotFoundException, "RegistryPolicyNotFoundException"),
      ReplicationStatus: /* @__PURE__ */ __name(() => ReplicationStatus, "ReplicationStatus"),
      RepositoryAlreadyExistsException: /* @__PURE__ */ __name(() => RepositoryAlreadyExistsException, "RepositoryAlreadyExistsException"),
      RepositoryFilterType: /* @__PURE__ */ __name(() => RepositoryFilterType, "RepositoryFilterType"),
      RepositoryNotEmptyException: /* @__PURE__ */ __name(() => RepositoryNotEmptyException, "RepositoryNotEmptyException"),
      RepositoryNotFoundException: /* @__PURE__ */ __name(() => RepositoryNotFoundException, "RepositoryNotFoundException"),
      RepositoryPolicyNotFoundException: /* @__PURE__ */ __name(() => RepositoryPolicyNotFoundException, "RepositoryPolicyNotFoundException"),
      ScanFrequency: /* @__PURE__ */ __name(() => ScanFrequency, "ScanFrequency"),
      ScanNotFoundException: /* @__PURE__ */ __name(() => ScanNotFoundException, "ScanNotFoundException"),
      ScanStatus: /* @__PURE__ */ __name(() => ScanStatus, "ScanStatus"),
      ScanType: /* @__PURE__ */ __name(() => ScanType, "ScanType"),
      ScanningConfigurationFailureCode: /* @__PURE__ */ __name(() => ScanningConfigurationFailureCode, "ScanningConfigurationFailureCode"),
      ScanningRepositoryFilterType: /* @__PURE__ */ __name(() => ScanningRepositoryFilterType, "ScanningRepositoryFilterType"),
      SecretNotFoundException: /* @__PURE__ */ __name(() => SecretNotFoundException, "SecretNotFoundException"),
      ServerException: /* @__PURE__ */ __name(() => ServerException, "ServerException"),
      SetRepositoryPolicyCommand: /* @__PURE__ */ __name(() => SetRepositoryPolicyCommand, "SetRepositoryPolicyCommand"),
      StartImageScanCommand: /* @__PURE__ */ __name(() => StartImageScanCommand, "StartImageScanCommand"),
      StartLifecyclePolicyPreviewCommand: /* @__PURE__ */ __name(() => StartLifecyclePolicyPreviewCommand, "StartLifecyclePolicyPreviewCommand"),
      TagResourceCommand: /* @__PURE__ */ __name(() => TagResourceCommand, "TagResourceCommand"),
      TagStatus: /* @__PURE__ */ __name(() => TagStatus, "TagStatus"),
      TemplateAlreadyExistsException: /* @__PURE__ */ __name(() => TemplateAlreadyExistsException, "TemplateAlreadyExistsException"),
      TemplateNotFoundException: /* @__PURE__ */ __name(() => TemplateNotFoundException, "TemplateNotFoundException"),
      TooManyTagsException: /* @__PURE__ */ __name(() => TooManyTagsException, "TooManyTagsException"),
      UnableToAccessSecretException: /* @__PURE__ */ __name(() => UnableToAccessSecretException, "UnableToAccessSecretException"),
      UnableToDecryptSecretValueException: /* @__PURE__ */ __name(() => UnableToDecryptSecretValueException, "UnableToDecryptSecretValueException"),
      UnableToGetUpstreamImageException: /* @__PURE__ */ __name(() => UnableToGetUpstreamImageException, "UnableToGetUpstreamImageException"),
      UnableToGetUpstreamLayerException: /* @__PURE__ */ __name(() => UnableToGetUpstreamLayerException, "UnableToGetUpstreamLayerException"),
      UnsupportedImageTypeException: /* @__PURE__ */ __name(() => UnsupportedImageTypeException, "UnsupportedImageTypeException"),
      UnsupportedUpstreamRegistryException: /* @__PURE__ */ __name(() => UnsupportedUpstreamRegistryException, "UnsupportedUpstreamRegistryException"),
      UntagResourceCommand: /* @__PURE__ */ __name(() => UntagResourceCommand, "UntagResourceCommand"),
      UpdatePullThroughCacheRuleCommand: /* @__PURE__ */ __name(() => UpdatePullThroughCacheRuleCommand, "UpdatePullThroughCacheRuleCommand"),
      UpdateRepositoryCreationTemplateCommand: /* @__PURE__ */ __name(() => UpdateRepositoryCreationTemplateCommand, "UpdateRepositoryCreationTemplateCommand"),
      UploadLayerPartCommand: /* @__PURE__ */ __name(() => UploadLayerPartCommand, "UploadLayerPartCommand"),
      UploadNotFoundException: /* @__PURE__ */ __name(() => UploadNotFoundException, "UploadNotFoundException"),
      UpstreamRegistry: /* @__PURE__ */ __name(() => UpstreamRegistry, "UpstreamRegistry"),
      ValidatePullThroughCacheRuleCommand: /* @__PURE__ */ __name(() => ValidatePullThroughCacheRuleCommand, "ValidatePullThroughCacheRuleCommand"),
      ValidationException: /* @__PURE__ */ __name(() => ValidationException, "ValidationException"),
      __Client: /* @__PURE__ */ __name(() => import_smithy_client28.Client, "__Client"),
      paginateDescribeImageScanFindings: /* @__PURE__ */ __name(() => paginateDescribeImageScanFindings, "paginateDescribeImageScanFindings"),
      paginateDescribeImages: /* @__PURE__ */ __name(() => paginateDescribeImages, "paginateDescribeImages"),
      paginateDescribePullThroughCacheRules: /* @__PURE__ */ __name(() => paginateDescribePullThroughCacheRules, "paginateDescribePullThroughCacheRules"),
      paginateDescribeRepositories: /* @__PURE__ */ __name(() => paginateDescribeRepositories, "paginateDescribeRepositories"),
      paginateDescribeRepositoryCreationTemplates: /* @__PURE__ */ __name(() => paginateDescribeRepositoryCreationTemplates, "paginateDescribeRepositoryCreationTemplates"),
      paginateGetLifecyclePolicyPreview: /* @__PURE__ */ __name(() => paginateGetLifecyclePolicyPreview, "paginateGetLifecyclePolicyPreview"),
      paginateListImages: /* @__PURE__ */ __name(() => paginateListImages, "paginateListImages"),
      waitForImageScanComplete: /* @__PURE__ */ __name(() => waitForImageScanComplete, "waitForImageScanComplete"),
      waitForLifecyclePolicyPreviewComplete: /* @__PURE__ */ __name(() => waitForLifecyclePolicyPreviewComplete, "waitForLifecyclePolicyPreviewComplete"),
      waitUntilImageScanComplete: /* @__PURE__ */ __name(() => waitUntilImageScanComplete, "waitUntilImageScanComplete"),
      waitUntilLifecyclePolicyPreviewComplete: /* @__PURE__ */ __name(() => waitUntilLifecyclePolicyPreviewComplete, "waitUntilLifecyclePolicyPreviewComplete")
    });
    module2.exports = __toCommonJS2(index_exports);
    var import_middleware_host_header3 = require_dist_cjs3();
    var import_middleware_logger3 = require_dist_cjs4();
    var import_middleware_recursion_detection3 = require_dist_cjs5();
    var import_middleware_user_agent3 = require_dist_cjs28();
    var import_config_resolver6 = require_dist_cjs30();
    var import_core17 = (init_dist_es(), __toCommonJS(dist_es_exports));
    var import_middleware_content_length3 = require_dist_cjs31();
    var import_middleware_endpoint8 = require_dist_cjs34();
    var import_middleware_retry5 = require_dist_cjs37();
    var import_httpAuthSchemeProvider5 = require_httpAuthSchemeProvider();
    var resolveClientEndpointParameters3 = /* @__PURE__ */ __name2((options) => {
      return Object.assign(options, {
        useDualstackEndpoint: options.useDualstackEndpoint ?? false,
        useFipsEndpoint: options.useFipsEndpoint ?? false,
        defaultSigningName: "ecr"
      });
    }, "resolveClientEndpointParameters");
    var commonParams3 = {
      UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
      Endpoint: { type: "builtInParams", name: "endpoint" },
      Region: { type: "builtInParams", name: "region" },
      UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
    };
    var import_runtimeConfig5 = require_runtimeConfig2();
    var import_region_config_resolver3 = require_dist_cjs45();
    var import_protocol_http16 = require_dist_cjs2();
    var import_smithy_client28 = require_dist_cjs26();
    var getHttpAuthExtensionConfiguration3 = /* @__PURE__ */ __name2((runtimeConfig) => {
      const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
      let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
      let _credentials = runtimeConfig.credentials;
      return {
        setHttpAuthScheme(httpAuthScheme) {
          const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
          if (index === -1) {
            _httpAuthSchemes.push(httpAuthScheme);
          } else {
            _httpAuthSchemes.splice(index, 1, httpAuthScheme);
          }
        },
        httpAuthSchemes() {
          return _httpAuthSchemes;
        },
        setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
          _httpAuthSchemeProvider = httpAuthSchemeProvider;
        },
        httpAuthSchemeProvider() {
          return _httpAuthSchemeProvider;
        },
        setCredentials(credentials) {
          _credentials = credentials;
        },
        credentials() {
          return _credentials;
        }
      };
    }, "getHttpAuthExtensionConfiguration");
    var resolveHttpAuthRuntimeConfig3 = /* @__PURE__ */ __name2((config) => {
      return {
        httpAuthSchemes: config.httpAuthSchemes(),
        httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
        credentials: config.credentials()
      };
    }, "resolveHttpAuthRuntimeConfig");
    var resolveRuntimeExtensions3 = /* @__PURE__ */ __name2((runtimeConfig, extensions) => {
      const extensionConfiguration = Object.assign(
        (0, import_region_config_resolver3.getAwsRegionExtensionConfiguration)(runtimeConfig),
        (0, import_smithy_client28.getDefaultExtensionConfiguration)(runtimeConfig),
        (0, import_protocol_http16.getHttpHandlerExtensionConfiguration)(runtimeConfig),
        getHttpAuthExtensionConfiguration3(runtimeConfig)
      );
      extensions.forEach((extension) => extension.configure(extensionConfiguration));
      return Object.assign(
        runtimeConfig,
        (0, import_region_config_resolver3.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
        (0, import_smithy_client28.resolveDefaultRuntimeConfig)(extensionConfiguration),
        (0, import_protocol_http16.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
        resolveHttpAuthRuntimeConfig3(extensionConfiguration)
      );
    }, "resolveRuntimeExtensions");
    var ECRClient3 = class extends import_smithy_client28.Client {
      static {
        __name(this, "ECRClient");
      }
      static {
        __name2(this, "ECRClient");
      }
      /**
       * The resolved configuration of ECRClient class. This is resolved and normalized from the {@link ECRClientConfig | constructor configuration interface}.
       */
      config;
      constructor(...[configuration]) {
        const _config_0 = (0, import_runtimeConfig5.getRuntimeConfig)(configuration || {});
        super(_config_0);
        this.initConfig = _config_0;
        const _config_1 = resolveClientEndpointParameters3(_config_0);
        const _config_2 = (0, import_middleware_user_agent3.resolveUserAgentConfig)(_config_1);
        const _config_3 = (0, import_middleware_retry5.resolveRetryConfig)(_config_2);
        const _config_4 = (0, import_config_resolver6.resolveRegionConfig)(_config_3);
        const _config_5 = (0, import_middleware_host_header3.resolveHostHeaderConfig)(_config_4);
        const _config_6 = (0, import_middleware_endpoint8.resolveEndpointConfig)(_config_5);
        const _config_7 = (0, import_httpAuthSchemeProvider5.resolveHttpAuthSchemeConfig)(_config_6);
        const _config_8 = resolveRuntimeExtensions3(_config_7, configuration?.extensions || []);
        this.config = _config_8;
        this.middlewareStack.use((0, import_middleware_user_agent3.getUserAgentPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_retry5.getRetryPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_content_length3.getContentLengthPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_host_header3.getHostHeaderPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_logger3.getLoggerPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_recursion_detection3.getRecursionDetectionPlugin)(this.config));
        this.middlewareStack.use(
          (0, import_core17.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
            httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider5.defaultECRHttpAuthSchemeParametersProvider,
            identityProviderConfigProvider: /* @__PURE__ */ __name2(async (config) => new import_core17.DefaultIdentityProviderConfig({
              "aws.auth#sigv4": config.credentials
            }), "identityProviderConfigProvider")
          })
        );
        this.middlewareStack.use((0, import_core17.getHttpSigningPlugin)(this.config));
      }
      /**
       * Destroy underlying resources, like sockets. It's usually not necessary to do this.
       * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
       * Otherwise, sockets might stay open for quite a long time before the server terminates them.
       */
      destroy() {
        super.destroy();
      }
    };
    var import_middleware_serde5 = require_dist_cjs7();
    var import_core22 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var ECRServiceException = class _ECRServiceException extends import_smithy_client28.ServiceException {
      static {
        __name(this, "_ECRServiceException");
      }
      static {
        __name2(this, "ECRServiceException");
      }
      /**
       * @internal
       */
      constructor(options) {
        super(options);
        Object.setPrototypeOf(this, _ECRServiceException.prototype);
      }
    };
    var LayerFailureCode = {
      InvalidLayerDigest: "InvalidLayerDigest",
      MissingLayerDigest: "MissingLayerDigest"
    };
    var LayerAvailability = {
      AVAILABLE: "AVAILABLE",
      UNAVAILABLE: "UNAVAILABLE"
    };
    var InvalidParameterException = class _InvalidParameterException extends ECRServiceException {
      static {
        __name(this, "_InvalidParameterException");
      }
      static {
        __name2(this, "InvalidParameterException");
      }
      name = "InvalidParameterException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidParameterException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidParameterException.prototype);
      }
    };
    var RepositoryNotFoundException = class _RepositoryNotFoundException extends ECRServiceException {
      static {
        __name(this, "_RepositoryNotFoundException");
      }
      static {
        __name2(this, "RepositoryNotFoundException");
      }
      name = "RepositoryNotFoundException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "RepositoryNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _RepositoryNotFoundException.prototype);
      }
    };
    var ServerException = class _ServerException extends ECRServiceException {
      static {
        __name(this, "_ServerException");
      }
      static {
        __name2(this, "ServerException");
      }
      name = "ServerException";
      $fault = "server";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ServerException",
          $fault: "server",
          ...opts
        });
        Object.setPrototypeOf(this, _ServerException.prototype);
      }
    };
    var ImageFailureCode = {
      ImageNotFound: "ImageNotFound",
      ImageReferencedByManifestList: "ImageReferencedByManifestList",
      ImageTagDoesNotMatchDigest: "ImageTagDoesNotMatchDigest",
      InvalidImageDigest: "InvalidImageDigest",
      InvalidImageTag: "InvalidImageTag",
      KmsError: "KmsError",
      MissingDigestAndTag: "MissingDigestAndTag",
      UpstreamAccessDenied: "UpstreamAccessDenied",
      UpstreamTooManyRequests: "UpstreamTooManyRequests",
      UpstreamUnavailable: "UpstreamUnavailable"
    };
    var LimitExceededException = class _LimitExceededException extends ECRServiceException {
      static {
        __name(this, "_LimitExceededException");
      }
      static {
        __name2(this, "LimitExceededException");
      }
      name = "LimitExceededException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "LimitExceededException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _LimitExceededException.prototype);
      }
    };
    var UnableToGetUpstreamImageException = class _UnableToGetUpstreamImageException extends ECRServiceException {
      static {
        __name(this, "_UnableToGetUpstreamImageException");
      }
      static {
        __name2(this, "UnableToGetUpstreamImageException");
      }
      name = "UnableToGetUpstreamImageException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "UnableToGetUpstreamImageException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _UnableToGetUpstreamImageException.prototype);
      }
    };
    var ScanningConfigurationFailureCode = {
      REPOSITORY_NOT_FOUND: "REPOSITORY_NOT_FOUND"
    };
    var ScanningRepositoryFilterType = {
      WILDCARD: "WILDCARD"
    };
    var ScanFrequency = {
      CONTINUOUS_SCAN: "CONTINUOUS_SCAN",
      MANUAL: "MANUAL",
      SCAN_ON_PUSH: "SCAN_ON_PUSH"
    };
    var ValidationException = class _ValidationException extends ECRServiceException {
      static {
        __name(this, "_ValidationException");
      }
      static {
        __name2(this, "ValidationException");
      }
      name = "ValidationException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ValidationException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ValidationException.prototype);
      }
    };
    var EmptyUploadException = class _EmptyUploadException extends ECRServiceException {
      static {
        __name(this, "_EmptyUploadException");
      }
      static {
        __name2(this, "EmptyUploadException");
      }
      name = "EmptyUploadException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "EmptyUploadException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _EmptyUploadException.prototype);
      }
    };
    var InvalidLayerException = class _InvalidLayerException extends ECRServiceException {
      static {
        __name(this, "_InvalidLayerException");
      }
      static {
        __name2(this, "InvalidLayerException");
      }
      name = "InvalidLayerException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidLayerException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidLayerException.prototype);
      }
    };
    var KmsException = class _KmsException extends ECRServiceException {
      static {
        __name(this, "_KmsException");
      }
      static {
        __name2(this, "KmsException");
      }
      name = "KmsException";
      $fault = "client";
      /**
       * <p>The error code returned by KMS.</p>
       * @public
       */
      kmsError;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "KmsException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _KmsException.prototype);
        this.kmsError = opts.kmsError;
      }
    };
    var LayerAlreadyExistsException = class _LayerAlreadyExistsException extends ECRServiceException {
      static {
        __name(this, "_LayerAlreadyExistsException");
      }
      static {
        __name2(this, "LayerAlreadyExistsException");
      }
      name = "LayerAlreadyExistsException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "LayerAlreadyExistsException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _LayerAlreadyExistsException.prototype);
      }
    };
    var LayerPartTooSmallException = class _LayerPartTooSmallException extends ECRServiceException {
      static {
        __name(this, "_LayerPartTooSmallException");
      }
      static {
        __name2(this, "LayerPartTooSmallException");
      }
      name = "LayerPartTooSmallException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "LayerPartTooSmallException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _LayerPartTooSmallException.prototype);
      }
    };
    var UploadNotFoundException = class _UploadNotFoundException extends ECRServiceException {
      static {
        __name(this, "_UploadNotFoundException");
      }
      static {
        __name2(this, "UploadNotFoundException");
      }
      name = "UploadNotFoundException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "UploadNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _UploadNotFoundException.prototype);
      }
    };
    var UpstreamRegistry = {
      AzureContainerRegistry: "azure-container-registry",
      DockerHub: "docker-hub",
      Ecr: "ecr",
      EcrPublic: "ecr-public",
      GitHubContainerRegistry: "github-container-registry",
      GitLabContainerRegistry: "gitlab-container-registry",
      K8s: "k8s",
      Quay: "quay"
    };
    var PullThroughCacheRuleAlreadyExistsException = class _PullThroughCacheRuleAlreadyExistsException extends ECRServiceException {
      static {
        __name(this, "_PullThroughCacheRuleAlreadyExistsException");
      }
      static {
        __name2(this, "PullThroughCacheRuleAlreadyExistsException");
      }
      name = "PullThroughCacheRuleAlreadyExistsException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "PullThroughCacheRuleAlreadyExistsException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _PullThroughCacheRuleAlreadyExistsException.prototype);
      }
    };
    var SecretNotFoundException = class _SecretNotFoundException extends ECRServiceException {
      static {
        __name(this, "_SecretNotFoundException");
      }
      static {
        __name2(this, "SecretNotFoundException");
      }
      name = "SecretNotFoundException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "SecretNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _SecretNotFoundException.prototype);
      }
    };
    var UnableToAccessSecretException = class _UnableToAccessSecretException extends ECRServiceException {
      static {
        __name(this, "_UnableToAccessSecretException");
      }
      static {
        __name2(this, "UnableToAccessSecretException");
      }
      name = "UnableToAccessSecretException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "UnableToAccessSecretException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _UnableToAccessSecretException.prototype);
      }
    };
    var UnableToDecryptSecretValueException = class _UnableToDecryptSecretValueException extends ECRServiceException {
      static {
        __name(this, "_UnableToDecryptSecretValueException");
      }
      static {
        __name2(this, "UnableToDecryptSecretValueException");
      }
      name = "UnableToDecryptSecretValueException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "UnableToDecryptSecretValueException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _UnableToDecryptSecretValueException.prototype);
      }
    };
    var UnsupportedUpstreamRegistryException = class _UnsupportedUpstreamRegistryException extends ECRServiceException {
      static {
        __name(this, "_UnsupportedUpstreamRegistryException");
      }
      static {
        __name2(this, "UnsupportedUpstreamRegistryException");
      }
      name = "UnsupportedUpstreamRegistryException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "UnsupportedUpstreamRegistryException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _UnsupportedUpstreamRegistryException.prototype);
      }
    };
    var EncryptionType = {
      AES256: "AES256",
      KMS: "KMS",
      KMS_DSSE: "KMS_DSSE"
    };
    var ImageTagMutability = {
      IMMUTABLE: "IMMUTABLE",
      IMMUTABLE_WITH_EXCLUSION: "IMMUTABLE_WITH_EXCLUSION",
      MUTABLE: "MUTABLE",
      MUTABLE_WITH_EXCLUSION: "MUTABLE_WITH_EXCLUSION"
    };
    var ImageTagMutabilityExclusionFilterType = {
      WILDCARD: "WILDCARD"
    };
    var InvalidTagParameterException = class _InvalidTagParameterException extends ECRServiceException {
      static {
        __name(this, "_InvalidTagParameterException");
      }
      static {
        __name2(this, "InvalidTagParameterException");
      }
      name = "InvalidTagParameterException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidTagParameterException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidTagParameterException.prototype);
      }
    };
    var RepositoryAlreadyExistsException = class _RepositoryAlreadyExistsException extends ECRServiceException {
      static {
        __name(this, "_RepositoryAlreadyExistsException");
      }
      static {
        __name2(this, "RepositoryAlreadyExistsException");
      }
      name = "RepositoryAlreadyExistsException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "RepositoryAlreadyExistsException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _RepositoryAlreadyExistsException.prototype);
      }
    };
    var TooManyTagsException = class _TooManyTagsException extends ECRServiceException {
      static {
        __name(this, "_TooManyTagsException");
      }
      static {
        __name2(this, "TooManyTagsException");
      }
      name = "TooManyTagsException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "TooManyTagsException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _TooManyTagsException.prototype);
      }
    };
    var RCTAppliedFor = {
      PULL_THROUGH_CACHE: "PULL_THROUGH_CACHE",
      REPLICATION: "REPLICATION"
    };
    var TemplateAlreadyExistsException = class _TemplateAlreadyExistsException extends ECRServiceException {
      static {
        __name(this, "_TemplateAlreadyExistsException");
      }
      static {
        __name2(this, "TemplateAlreadyExistsException");
      }
      name = "TemplateAlreadyExistsException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "TemplateAlreadyExistsException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _TemplateAlreadyExistsException.prototype);
      }
    };
    var LifecyclePolicyNotFoundException = class _LifecyclePolicyNotFoundException extends ECRServiceException {
      static {
        __name(this, "_LifecyclePolicyNotFoundException");
      }
      static {
        __name2(this, "LifecyclePolicyNotFoundException");
      }
      name = "LifecyclePolicyNotFoundException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "LifecyclePolicyNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _LifecyclePolicyNotFoundException.prototype);
      }
    };
    var PullThroughCacheRuleNotFoundException = class _PullThroughCacheRuleNotFoundException extends ECRServiceException {
      static {
        __name(this, "_PullThroughCacheRuleNotFoundException");
      }
      static {
        __name2(this, "PullThroughCacheRuleNotFoundException");
      }
      name = "PullThroughCacheRuleNotFoundException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "PullThroughCacheRuleNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _PullThroughCacheRuleNotFoundException.prototype);
      }
    };
    var RegistryPolicyNotFoundException = class _RegistryPolicyNotFoundException extends ECRServiceException {
      static {
        __name(this, "_RegistryPolicyNotFoundException");
      }
      static {
        __name2(this, "RegistryPolicyNotFoundException");
      }
      name = "RegistryPolicyNotFoundException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "RegistryPolicyNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _RegistryPolicyNotFoundException.prototype);
      }
    };
    var RepositoryNotEmptyException = class _RepositoryNotEmptyException extends ECRServiceException {
      static {
        __name(this, "_RepositoryNotEmptyException");
      }
      static {
        __name2(this, "RepositoryNotEmptyException");
      }
      name = "RepositoryNotEmptyException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "RepositoryNotEmptyException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _RepositoryNotEmptyException.prototype);
      }
    };
    var TemplateNotFoundException = class _TemplateNotFoundException extends ECRServiceException {
      static {
        __name(this, "_TemplateNotFoundException");
      }
      static {
        __name2(this, "TemplateNotFoundException");
      }
      name = "TemplateNotFoundException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "TemplateNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _TemplateNotFoundException.prototype);
      }
    };
    var RepositoryPolicyNotFoundException = class _RepositoryPolicyNotFoundException extends ECRServiceException {
      static {
        __name(this, "_RepositoryPolicyNotFoundException");
      }
      static {
        __name2(this, "RepositoryPolicyNotFoundException");
      }
      name = "RepositoryPolicyNotFoundException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "RepositoryPolicyNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _RepositoryPolicyNotFoundException.prototype);
      }
    };
    var ReplicationStatus = {
      COMPLETE: "COMPLETE",
      FAILED: "FAILED",
      IN_PROGRESS: "IN_PROGRESS"
    };
    var ImageNotFoundException = class _ImageNotFoundException extends ECRServiceException {
      static {
        __name(this, "_ImageNotFoundException");
      }
      static {
        __name2(this, "ImageNotFoundException");
      }
      name = "ImageNotFoundException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ImageNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ImageNotFoundException.prototype);
      }
    };
    var TagStatus = {
      ANY: "ANY",
      TAGGED: "TAGGED",
      UNTAGGED: "UNTAGGED"
    };
    var FindingSeverity = {
      CRITICAL: "CRITICAL",
      HIGH: "HIGH",
      INFORMATIONAL: "INFORMATIONAL",
      LOW: "LOW",
      MEDIUM: "MEDIUM",
      UNDEFINED: "UNDEFINED"
    };
    var ScanStatus = {
      ACTIVE: "ACTIVE",
      COMPLETE: "COMPLETE",
      FAILED: "FAILED",
      FINDINGS_UNAVAILABLE: "FINDINGS_UNAVAILABLE",
      IN_PROGRESS: "IN_PROGRESS",
      LIMIT_EXCEEDED: "LIMIT_EXCEEDED",
      PENDING: "PENDING",
      SCAN_ELIGIBILITY_EXPIRED: "SCAN_ELIGIBILITY_EXPIRED",
      UNSUPPORTED_IMAGE: "UNSUPPORTED_IMAGE"
    };
    var ScanNotFoundException = class _ScanNotFoundException extends ECRServiceException {
      static {
        __name(this, "_ScanNotFoundException");
      }
      static {
        __name2(this, "ScanNotFoundException");
      }
      name = "ScanNotFoundException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ScanNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ScanNotFoundException.prototype);
      }
    };
    var RepositoryFilterType = {
      PREFIX_MATCH: "PREFIX_MATCH"
    };
    var LayerInaccessibleException = class _LayerInaccessibleException extends ECRServiceException {
      static {
        __name(this, "_LayerInaccessibleException");
      }
      static {
        __name2(this, "LayerInaccessibleException");
      }
      name = "LayerInaccessibleException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "LayerInaccessibleException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _LayerInaccessibleException.prototype);
      }
    };
    var LayersNotFoundException = class _LayersNotFoundException extends ECRServiceException {
      static {
        __name(this, "_LayersNotFoundException");
      }
      static {
        __name2(this, "LayersNotFoundException");
      }
      name = "LayersNotFoundException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "LayersNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _LayersNotFoundException.prototype);
      }
    };
    var UnableToGetUpstreamLayerException = class _UnableToGetUpstreamLayerException extends ECRServiceException {
      static {
        __name(this, "_UnableToGetUpstreamLayerException");
      }
      static {
        __name2(this, "UnableToGetUpstreamLayerException");
      }
      name = "UnableToGetUpstreamLayerException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "UnableToGetUpstreamLayerException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _UnableToGetUpstreamLayerException.prototype);
      }
    };
    var ImageActionType = {
      EXPIRE: "EXPIRE"
    };
    var LifecyclePolicyPreviewStatus = {
      COMPLETE: "COMPLETE",
      EXPIRED: "EXPIRED",
      FAILED: "FAILED",
      IN_PROGRESS: "IN_PROGRESS"
    };
    var LifecyclePolicyPreviewNotFoundException = class _LifecyclePolicyPreviewNotFoundException extends ECRServiceException {
      static {
        __name(this, "_LifecyclePolicyPreviewNotFoundException");
      }
      static {
        __name2(this, "LifecyclePolicyPreviewNotFoundException");
      }
      name = "LifecyclePolicyPreviewNotFoundException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "LifecyclePolicyPreviewNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _LifecyclePolicyPreviewNotFoundException.prototype);
      }
    };
    var ScanType = {
      BASIC: "BASIC",
      ENHANCED: "ENHANCED"
    };
    var ImageAlreadyExistsException = class _ImageAlreadyExistsException extends ECRServiceException {
      static {
        __name(this, "_ImageAlreadyExistsException");
      }
      static {
        __name2(this, "ImageAlreadyExistsException");
      }
      name = "ImageAlreadyExistsException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ImageAlreadyExistsException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ImageAlreadyExistsException.prototype);
      }
    };
    var ImageDigestDoesNotMatchException = class _ImageDigestDoesNotMatchException extends ECRServiceException {
      static {
        __name(this, "_ImageDigestDoesNotMatchException");
      }
      static {
        __name2(this, "ImageDigestDoesNotMatchException");
      }
      name = "ImageDigestDoesNotMatchException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ImageDigestDoesNotMatchException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ImageDigestDoesNotMatchException.prototype);
      }
    };
    var ImageTagAlreadyExistsException = class _ImageTagAlreadyExistsException extends ECRServiceException {
      static {
        __name(this, "_ImageTagAlreadyExistsException");
      }
      static {
        __name2(this, "ImageTagAlreadyExistsException");
      }
      name = "ImageTagAlreadyExistsException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ImageTagAlreadyExistsException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ImageTagAlreadyExistsException.prototype);
      }
    };
    var ReferencedImagesNotFoundException = class _ReferencedImagesNotFoundException extends ECRServiceException {
      static {
        __name(this, "_ReferencedImagesNotFoundException");
      }
      static {
        __name2(this, "ReferencedImagesNotFoundException");
      }
      name = "ReferencedImagesNotFoundException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ReferencedImagesNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ReferencedImagesNotFoundException.prototype);
      }
    };
    var UnsupportedImageTypeException = class _UnsupportedImageTypeException extends ECRServiceException {
      static {
        __name(this, "_UnsupportedImageTypeException");
      }
      static {
        __name2(this, "UnsupportedImageTypeException");
      }
      name = "UnsupportedImageTypeException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "UnsupportedImageTypeException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _UnsupportedImageTypeException.prototype);
      }
    };
    var LifecyclePolicyPreviewInProgressException = class _LifecyclePolicyPreviewInProgressException extends ECRServiceException {
      static {
        __name(this, "_LifecyclePolicyPreviewInProgressException");
      }
      static {
        __name2(this, "LifecyclePolicyPreviewInProgressException");
      }
      name = "LifecyclePolicyPreviewInProgressException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "LifecyclePolicyPreviewInProgressException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _LifecyclePolicyPreviewInProgressException.prototype);
      }
    };
    var InvalidLayerPartException = class _InvalidLayerPartException extends ECRServiceException {
      static {
        __name(this, "_InvalidLayerPartException");
      }
      static {
        __name2(this, "InvalidLayerPartException");
      }
      name = "InvalidLayerPartException";
      $fault = "client";
      /**
       * <p>The registry ID associated with the exception.</p>
       * @public
       */
      registryId;
      /**
       * <p>The repository name associated with the exception.</p>
       * @public
       */
      repositoryName;
      /**
       * <p>The upload ID associated with the exception.</p>
       * @public
       */
      uploadId;
      /**
       * <p>The last valid byte received from the layer part upload that is associated with the
       *             exception.</p>
       * @public
       */
      lastValidByteReceived;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidLayerPartException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidLayerPartException.prototype);
        this.registryId = opts.registryId;
        this.repositoryName = opts.repositoryName;
        this.uploadId = opts.uploadId;
        this.lastValidByteReceived = opts.lastValidByteReceived;
      }
    };
    var se_BatchCheckLayerAvailabilityCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("BatchCheckLayerAvailability");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_BatchCheckLayerAvailabilityCommand");
    var se_BatchDeleteImageCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("BatchDeleteImage");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_BatchDeleteImageCommand");
    var se_BatchGetImageCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("BatchGetImage");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_BatchGetImageCommand");
    var se_BatchGetRepositoryScanningConfigurationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("BatchGetRepositoryScanningConfiguration");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_BatchGetRepositoryScanningConfigurationCommand");
    var se_CompleteLayerUploadCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("CompleteLayerUpload");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CompleteLayerUploadCommand");
    var se_CreatePullThroughCacheRuleCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("CreatePullThroughCacheRule");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreatePullThroughCacheRuleCommand");
    var se_CreateRepositoryCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("CreateRepository");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateRepositoryCommand");
    var se_CreateRepositoryCreationTemplateCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("CreateRepositoryCreationTemplate");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateRepositoryCreationTemplateCommand");
    var se_DeleteLifecyclePolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteLifecyclePolicy");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteLifecyclePolicyCommand");
    var se_DeletePullThroughCacheRuleCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeletePullThroughCacheRule");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeletePullThroughCacheRuleCommand");
    var se_DeleteRegistryPolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteRegistryPolicy");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteRegistryPolicyCommand");
    var se_DeleteRepositoryCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteRepository");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteRepositoryCommand");
    var se_DeleteRepositoryCreationTemplateCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteRepositoryCreationTemplate");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteRepositoryCreationTemplateCommand");
    var se_DeleteRepositoryPolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteRepositoryPolicy");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteRepositoryPolicyCommand");
    var se_DescribeImageReplicationStatusCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeImageReplicationStatus");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeImageReplicationStatusCommand");
    var se_DescribeImagesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeImages");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeImagesCommand");
    var se_DescribeImageScanFindingsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeImageScanFindings");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeImageScanFindingsCommand");
    var se_DescribePullThroughCacheRulesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribePullThroughCacheRules");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribePullThroughCacheRulesCommand");
    var se_DescribeRegistryCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeRegistry");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeRegistryCommand");
    var se_DescribeRepositoriesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeRepositories");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeRepositoriesCommand");
    var se_DescribeRepositoryCreationTemplatesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeRepositoryCreationTemplates");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeRepositoryCreationTemplatesCommand");
    var se_GetAccountSettingCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetAccountSetting");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetAccountSettingCommand");
    var se_GetAuthorizationTokenCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetAuthorizationToken");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetAuthorizationTokenCommand");
    var se_GetDownloadUrlForLayerCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetDownloadUrlForLayer");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetDownloadUrlForLayerCommand");
    var se_GetLifecyclePolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetLifecyclePolicy");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetLifecyclePolicyCommand");
    var se_GetLifecyclePolicyPreviewCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetLifecyclePolicyPreview");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetLifecyclePolicyPreviewCommand");
    var se_GetRegistryPolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetRegistryPolicy");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetRegistryPolicyCommand");
    var se_GetRegistryScanningConfigurationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetRegistryScanningConfiguration");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetRegistryScanningConfigurationCommand");
    var se_GetRepositoryPolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetRepositoryPolicy");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetRepositoryPolicyCommand");
    var se_InitiateLayerUploadCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("InitiateLayerUpload");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_InitiateLayerUploadCommand");
    var se_ListImagesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListImages");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListImagesCommand");
    var se_ListTagsForResourceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListTagsForResource");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListTagsForResourceCommand");
    var se_PutAccountSettingCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("PutAccountSetting");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_PutAccountSettingCommand");
    var se_PutImageCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("PutImage");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_PutImageCommand");
    var se_PutImageScanningConfigurationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("PutImageScanningConfiguration");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_PutImageScanningConfigurationCommand");
    var se_PutImageTagMutabilityCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("PutImageTagMutability");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_PutImageTagMutabilityCommand");
    var se_PutLifecyclePolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("PutLifecyclePolicy");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_PutLifecyclePolicyCommand");
    var se_PutRegistryPolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("PutRegistryPolicy");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_PutRegistryPolicyCommand");
    var se_PutRegistryScanningConfigurationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("PutRegistryScanningConfiguration");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_PutRegistryScanningConfigurationCommand");
    var se_PutReplicationConfigurationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("PutReplicationConfiguration");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_PutReplicationConfigurationCommand");
    var se_SetRepositoryPolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("SetRepositoryPolicy");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_SetRepositoryPolicyCommand");
    var se_StartImageScanCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("StartImageScan");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_StartImageScanCommand");
    var se_StartLifecyclePolicyPreviewCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("StartLifecyclePolicyPreview");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_StartLifecyclePolicyPreviewCommand");
    var se_TagResourceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("TagResource");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_TagResourceCommand");
    var se_UntagResourceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("UntagResource");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UntagResourceCommand");
    var se_UpdatePullThroughCacheRuleCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("UpdatePullThroughCacheRule");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdatePullThroughCacheRuleCommand");
    var se_UpdateRepositoryCreationTemplateCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("UpdateRepositoryCreationTemplate");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateRepositoryCreationTemplateCommand");
    var se_UploadLayerPartCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("UploadLayerPart");
      let body;
      body = JSON.stringify(se_UploadLayerPartRequest(input, context));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UploadLayerPartCommand");
    var se_ValidatePullThroughCacheRuleCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ValidatePullThroughCacheRule");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ValidatePullThroughCacheRuleCommand");
    var de_BatchCheckLayerAvailabilityCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_BatchCheckLayerAvailabilityCommand");
    var de_BatchDeleteImageCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_BatchDeleteImageCommand");
    var de_BatchGetImageCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_BatchGetImageCommand");
    var de_BatchGetRepositoryScanningConfigurationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_BatchGetRepositoryScanningConfigurationCommand");
    var de_CompleteLayerUploadCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CompleteLayerUploadCommand");
    var de_CreatePullThroughCacheRuleCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_CreatePullThroughCacheRuleResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreatePullThroughCacheRuleCommand");
    var de_CreateRepositoryCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_CreateRepositoryResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateRepositoryCommand");
    var de_CreateRepositoryCreationTemplateCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_CreateRepositoryCreationTemplateResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateRepositoryCreationTemplateCommand");
    var de_DeleteLifecyclePolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DeleteLifecyclePolicyResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteLifecyclePolicyCommand");
    var de_DeletePullThroughCacheRuleCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DeletePullThroughCacheRuleResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeletePullThroughCacheRuleCommand");
    var de_DeleteRegistryPolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteRegistryPolicyCommand");
    var de_DeleteRepositoryCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DeleteRepositoryResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteRepositoryCommand");
    var de_DeleteRepositoryCreationTemplateCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DeleteRepositoryCreationTemplateResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteRepositoryCreationTemplateCommand");
    var de_DeleteRepositoryPolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteRepositoryPolicyCommand");
    var de_DescribeImageReplicationStatusCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeImageReplicationStatusCommand");
    var de_DescribeImagesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DescribeImagesResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeImagesCommand");
    var de_DescribeImageScanFindingsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DescribeImageScanFindingsResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeImageScanFindingsCommand");
    var de_DescribePullThroughCacheRulesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DescribePullThroughCacheRulesResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribePullThroughCacheRulesCommand");
    var de_DescribeRegistryCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeRegistryCommand");
    var de_DescribeRepositoriesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DescribeRepositoriesResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeRepositoriesCommand");
    var de_DescribeRepositoryCreationTemplatesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DescribeRepositoryCreationTemplatesResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeRepositoryCreationTemplatesCommand");
    var de_GetAccountSettingCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetAccountSettingCommand");
    var de_GetAuthorizationTokenCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_GetAuthorizationTokenResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetAuthorizationTokenCommand");
    var de_GetDownloadUrlForLayerCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetDownloadUrlForLayerCommand");
    var de_GetLifecyclePolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_GetLifecyclePolicyResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetLifecyclePolicyCommand");
    var de_GetLifecyclePolicyPreviewCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_GetLifecyclePolicyPreviewResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetLifecyclePolicyPreviewCommand");
    var de_GetRegistryPolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetRegistryPolicyCommand");
    var de_GetRegistryScanningConfigurationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetRegistryScanningConfigurationCommand");
    var de_GetRepositoryPolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetRepositoryPolicyCommand");
    var de_InitiateLayerUploadCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_InitiateLayerUploadCommand");
    var de_ListImagesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListImagesCommand");
    var de_ListTagsForResourceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListTagsForResourceCommand");
    var de_PutAccountSettingCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_PutAccountSettingCommand");
    var de_PutImageCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_PutImageCommand");
    var de_PutImageScanningConfigurationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_PutImageScanningConfigurationCommand");
    var de_PutImageTagMutabilityCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_PutImageTagMutabilityCommand");
    var de_PutLifecyclePolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_PutLifecyclePolicyCommand");
    var de_PutRegistryPolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_PutRegistryPolicyCommand");
    var de_PutRegistryScanningConfigurationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_PutRegistryScanningConfigurationCommand");
    var de_PutReplicationConfigurationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_PutReplicationConfigurationCommand");
    var de_SetRepositoryPolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_SetRepositoryPolicyCommand");
    var de_StartImageScanCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_StartImageScanCommand");
    var de_StartLifecyclePolicyPreviewCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_StartLifecyclePolicyPreviewCommand");
    var de_TagResourceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_TagResourceCommand");
    var de_UntagResourceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UntagResourceCommand");
    var de_UpdatePullThroughCacheRuleCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_UpdatePullThroughCacheRuleResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UpdatePullThroughCacheRuleCommand");
    var de_UpdateRepositoryCreationTemplateCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_UpdateRepositoryCreationTemplateResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UpdateRepositoryCreationTemplateCommand");
    var de_UploadLayerPartCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UploadLayerPartCommand");
    var de_ValidatePullThroughCacheRuleCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ValidatePullThroughCacheRuleCommand");
    var de_CommandError3 = /* @__PURE__ */ __name2(async (output, context) => {
      const parsedOutput = {
        ...output,
        body: await (0, import_core22.parseJsonErrorBody)(output.body, context)
      };
      const errorCode = (0, import_core22.loadRestJsonErrorCode)(output, parsedOutput.body);
      switch (errorCode) {
        case "InvalidParameterException":
        case "com.amazonaws.ecr#InvalidParameterException":
          throw await de_InvalidParameterExceptionRes(parsedOutput, context);
        case "RepositoryNotFoundException":
        case "com.amazonaws.ecr#RepositoryNotFoundException":
          throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
        case "ServerException":
        case "com.amazonaws.ecr#ServerException":
          throw await de_ServerExceptionRes(parsedOutput, context);
        case "LimitExceededException":
        case "com.amazonaws.ecr#LimitExceededException":
          throw await de_LimitExceededExceptionRes(parsedOutput, context);
        case "UnableToGetUpstreamImageException":
        case "com.amazonaws.ecr#UnableToGetUpstreamImageException":
          throw await de_UnableToGetUpstreamImageExceptionRes(parsedOutput, context);
        case "ValidationException":
        case "com.amazonaws.ecr#ValidationException":
          throw await de_ValidationExceptionRes(parsedOutput, context);
        case "EmptyUploadException":
        case "com.amazonaws.ecr#EmptyUploadException":
          throw await de_EmptyUploadExceptionRes(parsedOutput, context);
        case "InvalidLayerException":
        case "com.amazonaws.ecr#InvalidLayerException":
          throw await de_InvalidLayerExceptionRes(parsedOutput, context);
        case "KmsException":
        case "com.amazonaws.ecr#KmsException":
          throw await de_KmsExceptionRes(parsedOutput, context);
        case "LayerAlreadyExistsException":
        case "com.amazonaws.ecr#LayerAlreadyExistsException":
          throw await de_LayerAlreadyExistsExceptionRes(parsedOutput, context);
        case "LayerPartTooSmallException":
        case "com.amazonaws.ecr#LayerPartTooSmallException":
          throw await de_LayerPartTooSmallExceptionRes(parsedOutput, context);
        case "UploadNotFoundException":
        case "com.amazonaws.ecr#UploadNotFoundException":
          throw await de_UploadNotFoundExceptionRes(parsedOutput, context);
        case "PullThroughCacheRuleAlreadyExistsException":
        case "com.amazonaws.ecr#PullThroughCacheRuleAlreadyExistsException":
          throw await de_PullThroughCacheRuleAlreadyExistsExceptionRes(parsedOutput, context);
        case "SecretNotFoundException":
        case "com.amazonaws.ecr#SecretNotFoundException":
          throw await de_SecretNotFoundExceptionRes(parsedOutput, context);
        case "UnableToAccessSecretException":
        case "com.amazonaws.ecr#UnableToAccessSecretException":
          throw await de_UnableToAccessSecretExceptionRes(parsedOutput, context);
        case "UnableToDecryptSecretValueException":
        case "com.amazonaws.ecr#UnableToDecryptSecretValueException":
          throw await de_UnableToDecryptSecretValueExceptionRes(parsedOutput, context);
        case "UnsupportedUpstreamRegistryException":
        case "com.amazonaws.ecr#UnsupportedUpstreamRegistryException":
          throw await de_UnsupportedUpstreamRegistryExceptionRes(parsedOutput, context);
        case "InvalidTagParameterException":
        case "com.amazonaws.ecr#InvalidTagParameterException":
          throw await de_InvalidTagParameterExceptionRes(parsedOutput, context);
        case "RepositoryAlreadyExistsException":
        case "com.amazonaws.ecr#RepositoryAlreadyExistsException":
          throw await de_RepositoryAlreadyExistsExceptionRes(parsedOutput, context);
        case "TooManyTagsException":
        case "com.amazonaws.ecr#TooManyTagsException":
          throw await de_TooManyTagsExceptionRes(parsedOutput, context);
        case "TemplateAlreadyExistsException":
        case "com.amazonaws.ecr#TemplateAlreadyExistsException":
          throw await de_TemplateAlreadyExistsExceptionRes(parsedOutput, context);
        case "LifecyclePolicyNotFoundException":
        case "com.amazonaws.ecr#LifecyclePolicyNotFoundException":
          throw await de_LifecyclePolicyNotFoundExceptionRes(parsedOutput, context);
        case "PullThroughCacheRuleNotFoundException":
        case "com.amazonaws.ecr#PullThroughCacheRuleNotFoundException":
          throw await de_PullThroughCacheRuleNotFoundExceptionRes(parsedOutput, context);
        case "RegistryPolicyNotFoundException":
        case "com.amazonaws.ecr#RegistryPolicyNotFoundException":
          throw await de_RegistryPolicyNotFoundExceptionRes(parsedOutput, context);
        case "RepositoryNotEmptyException":
        case "com.amazonaws.ecr#RepositoryNotEmptyException":
          throw await de_RepositoryNotEmptyExceptionRes(parsedOutput, context);
        case "TemplateNotFoundException":
        case "com.amazonaws.ecr#TemplateNotFoundException":
          throw await de_TemplateNotFoundExceptionRes(parsedOutput, context);
        case "RepositoryPolicyNotFoundException":
        case "com.amazonaws.ecr#RepositoryPolicyNotFoundException":
          throw await de_RepositoryPolicyNotFoundExceptionRes(parsedOutput, context);
        case "ImageNotFoundException":
        case "com.amazonaws.ecr#ImageNotFoundException":
          throw await de_ImageNotFoundExceptionRes(parsedOutput, context);
        case "ScanNotFoundException":
        case "com.amazonaws.ecr#ScanNotFoundException":
          throw await de_ScanNotFoundExceptionRes(parsedOutput, context);
        case "LayerInaccessibleException":
        case "com.amazonaws.ecr#LayerInaccessibleException":
          throw await de_LayerInaccessibleExceptionRes(parsedOutput, context);
        case "LayersNotFoundException":
        case "com.amazonaws.ecr#LayersNotFoundException":
          throw await de_LayersNotFoundExceptionRes(parsedOutput, context);
        case "UnableToGetUpstreamLayerException":
        case "com.amazonaws.ecr#UnableToGetUpstreamLayerException":
          throw await de_UnableToGetUpstreamLayerExceptionRes(parsedOutput, context);
        case "LifecyclePolicyPreviewNotFoundException":
        case "com.amazonaws.ecr#LifecyclePolicyPreviewNotFoundException":
          throw await de_LifecyclePolicyPreviewNotFoundExceptionRes(parsedOutput, context);
        case "ImageAlreadyExistsException":
        case "com.amazonaws.ecr#ImageAlreadyExistsException":
          throw await de_ImageAlreadyExistsExceptionRes(parsedOutput, context);
        case "ImageDigestDoesNotMatchException":
        case "com.amazonaws.ecr#ImageDigestDoesNotMatchException":
          throw await de_ImageDigestDoesNotMatchExceptionRes(parsedOutput, context);
        case "ImageTagAlreadyExistsException":
        case "com.amazonaws.ecr#ImageTagAlreadyExistsException":
          throw await de_ImageTagAlreadyExistsExceptionRes(parsedOutput, context);
        case "ReferencedImagesNotFoundException":
        case "com.amazonaws.ecr#ReferencedImagesNotFoundException":
          throw await de_ReferencedImagesNotFoundExceptionRes(parsedOutput, context);
        case "UnsupportedImageTypeException":
        case "com.amazonaws.ecr#UnsupportedImageTypeException":
          throw await de_UnsupportedImageTypeExceptionRes(parsedOutput, context);
        case "LifecyclePolicyPreviewInProgressException":
        case "com.amazonaws.ecr#LifecyclePolicyPreviewInProgressException":
          throw await de_LifecyclePolicyPreviewInProgressExceptionRes(parsedOutput, context);
        case "InvalidLayerPartException":
        case "com.amazonaws.ecr#InvalidLayerPartException":
          throw await de_InvalidLayerPartExceptionRes(parsedOutput, context);
        default:
          const parsedBody = parsedOutput.body;
          return throwDefaultError3({
            output,
            parsedBody,
            errorCode
          });
      }
    }, "de_CommandError");
    var de_EmptyUploadExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new EmptyUploadException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_EmptyUploadExceptionRes");
    var de_ImageAlreadyExistsExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ImageAlreadyExistsException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ImageAlreadyExistsExceptionRes");
    var de_ImageDigestDoesNotMatchExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ImageDigestDoesNotMatchException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ImageDigestDoesNotMatchExceptionRes");
    var de_ImageNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ImageNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ImageNotFoundExceptionRes");
    var de_ImageTagAlreadyExistsExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ImageTagAlreadyExistsException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ImageTagAlreadyExistsExceptionRes");
    var de_InvalidLayerExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidLayerException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidLayerExceptionRes");
    var de_InvalidLayerPartExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidLayerPartException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidLayerPartExceptionRes");
    var de_InvalidParameterExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidParameterException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidParameterExceptionRes");
    var de_InvalidTagParameterExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidTagParameterException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidTagParameterExceptionRes");
    var de_KmsExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new KmsException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_KmsExceptionRes");
    var de_LayerAlreadyExistsExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new LayerAlreadyExistsException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_LayerAlreadyExistsExceptionRes");
    var de_LayerInaccessibleExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new LayerInaccessibleException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_LayerInaccessibleExceptionRes");
    var de_LayerPartTooSmallExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new LayerPartTooSmallException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_LayerPartTooSmallExceptionRes");
    var de_LayersNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new LayersNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_LayersNotFoundExceptionRes");
    var de_LifecyclePolicyNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new LifecyclePolicyNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_LifecyclePolicyNotFoundExceptionRes");
    var de_LifecyclePolicyPreviewInProgressExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new LifecyclePolicyPreviewInProgressException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_LifecyclePolicyPreviewInProgressExceptionRes");
    var de_LifecyclePolicyPreviewNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new LifecyclePolicyPreviewNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_LifecyclePolicyPreviewNotFoundExceptionRes");
    var de_LimitExceededExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new LimitExceededException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_LimitExceededExceptionRes");
    var de_PullThroughCacheRuleAlreadyExistsExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new PullThroughCacheRuleAlreadyExistsException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_PullThroughCacheRuleAlreadyExistsExceptionRes");
    var de_PullThroughCacheRuleNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new PullThroughCacheRuleNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_PullThroughCacheRuleNotFoundExceptionRes");
    var de_ReferencedImagesNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ReferencedImagesNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ReferencedImagesNotFoundExceptionRes");
    var de_RegistryPolicyNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new RegistryPolicyNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_RegistryPolicyNotFoundExceptionRes");
    var de_RepositoryAlreadyExistsExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new RepositoryAlreadyExistsException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_RepositoryAlreadyExistsExceptionRes");
    var de_RepositoryNotEmptyExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new RepositoryNotEmptyException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_RepositoryNotEmptyExceptionRes");
    var de_RepositoryNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new RepositoryNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_RepositoryNotFoundExceptionRes");
    var de_RepositoryPolicyNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new RepositoryPolicyNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_RepositoryPolicyNotFoundExceptionRes");
    var de_ScanNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ScanNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ScanNotFoundExceptionRes");
    var de_SecretNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new SecretNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_SecretNotFoundExceptionRes");
    var de_ServerExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ServerException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ServerExceptionRes");
    var de_TemplateAlreadyExistsExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new TemplateAlreadyExistsException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_TemplateAlreadyExistsExceptionRes");
    var de_TemplateNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new TemplateNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_TemplateNotFoundExceptionRes");
    var de_TooManyTagsExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new TooManyTagsException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_TooManyTagsExceptionRes");
    var de_UnableToAccessSecretExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new UnableToAccessSecretException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_UnableToAccessSecretExceptionRes");
    var de_UnableToDecryptSecretValueExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new UnableToDecryptSecretValueException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_UnableToDecryptSecretValueExceptionRes");
    var de_UnableToGetUpstreamImageExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new UnableToGetUpstreamImageException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_UnableToGetUpstreamImageExceptionRes");
    var de_UnableToGetUpstreamLayerExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new UnableToGetUpstreamLayerException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_UnableToGetUpstreamLayerExceptionRes");
    var de_UnsupportedImageTypeExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new UnsupportedImageTypeException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_UnsupportedImageTypeExceptionRes");
    var de_UnsupportedUpstreamRegistryExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new UnsupportedUpstreamRegistryException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_UnsupportedUpstreamRegistryExceptionRes");
    var de_UploadNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new UploadNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_UploadNotFoundExceptionRes");
    var de_ValidationExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ValidationException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ValidationExceptionRes");
    var se_UploadLayerPartRequest = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        layerPartBlob: context.base64Encoder,
        partFirstByte: [],
        partLastByte: [],
        registryId: [],
        repositoryName: [],
        uploadId: []
      });
    }, "se_UploadLayerPartRequest");
    var de_AuthorizationData = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        authorizationToken: import_smithy_client28.expectString,
        expiresAt: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "expiresAt"),
        proxyEndpoint: import_smithy_client28.expectString
      });
    }, "de_AuthorizationData");
    var de_AuthorizationDataList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_AuthorizationData(entry, context);
      });
      return retVal;
    }, "de_AuthorizationDataList");
    var de_AwsEcrContainerImageDetails = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        architecture: import_smithy_client28.expectString,
        author: import_smithy_client28.expectString,
        imageHash: import_smithy_client28.expectString,
        imageTags: import_smithy_client28._json,
        inUseCount: import_smithy_client28.expectLong,
        lastInUseAt: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "lastInUseAt"),
        platform: import_smithy_client28.expectString,
        pushedAt: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "pushedAt"),
        registry: import_smithy_client28.expectString,
        repositoryName: import_smithy_client28.expectString
      });
    }, "de_AwsEcrContainerImageDetails");
    var de_CreatePullThroughCacheRuleResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        createdAt: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "createdAt"),
        credentialArn: import_smithy_client28.expectString,
        customRoleArn: import_smithy_client28.expectString,
        ecrRepositoryPrefix: import_smithy_client28.expectString,
        registryId: import_smithy_client28.expectString,
        upstreamRegistry: import_smithy_client28.expectString,
        upstreamRegistryUrl: import_smithy_client28.expectString,
        upstreamRepositoryPrefix: import_smithy_client28.expectString
      });
    }, "de_CreatePullThroughCacheRuleResponse");
    var de_CreateRepositoryCreationTemplateResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        registryId: import_smithy_client28.expectString,
        repositoryCreationTemplate: /* @__PURE__ */ __name2((_3) => de_RepositoryCreationTemplate(_3, context), "repositoryCreationTemplate")
      });
    }, "de_CreateRepositoryCreationTemplateResponse");
    var de_CreateRepositoryResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        repository: /* @__PURE__ */ __name2((_3) => de_Repository(_3, context), "repository")
      });
    }, "de_CreateRepositoryResponse");
    var de_CvssScore = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        baseScore: import_smithy_client28.limitedParseDouble,
        scoringVector: import_smithy_client28.expectString,
        source: import_smithy_client28.expectString,
        version: import_smithy_client28.expectString
      });
    }, "de_CvssScore");
    var de_CvssScoreDetails = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        adjustments: import_smithy_client28._json,
        score: import_smithy_client28.limitedParseDouble,
        scoreSource: import_smithy_client28.expectString,
        scoringVector: import_smithy_client28.expectString,
        version: import_smithy_client28.expectString
      });
    }, "de_CvssScoreDetails");
    var de_CvssScoreList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_CvssScore(entry, context);
      });
      return retVal;
    }, "de_CvssScoreList");
    var de_DeleteLifecyclePolicyResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        lastEvaluatedAt: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "lastEvaluatedAt"),
        lifecyclePolicyText: import_smithy_client28.expectString,
        registryId: import_smithy_client28.expectString,
        repositoryName: import_smithy_client28.expectString
      });
    }, "de_DeleteLifecyclePolicyResponse");
    var de_DeletePullThroughCacheRuleResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        createdAt: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "createdAt"),
        credentialArn: import_smithy_client28.expectString,
        customRoleArn: import_smithy_client28.expectString,
        ecrRepositoryPrefix: import_smithy_client28.expectString,
        registryId: import_smithy_client28.expectString,
        upstreamRegistryUrl: import_smithy_client28.expectString,
        upstreamRepositoryPrefix: import_smithy_client28.expectString
      });
    }, "de_DeletePullThroughCacheRuleResponse");
    var de_DeleteRepositoryCreationTemplateResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        registryId: import_smithy_client28.expectString,
        repositoryCreationTemplate: /* @__PURE__ */ __name2((_3) => de_RepositoryCreationTemplate(_3, context), "repositoryCreationTemplate")
      });
    }, "de_DeleteRepositoryCreationTemplateResponse");
    var de_DeleteRepositoryResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        repository: /* @__PURE__ */ __name2((_3) => de_Repository(_3, context), "repository")
      });
    }, "de_DeleteRepositoryResponse");
    var de_DescribeImageScanFindingsResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        imageId: import_smithy_client28._json,
        imageScanFindings: /* @__PURE__ */ __name2((_3) => de_ImageScanFindings(_3, context), "imageScanFindings"),
        imageScanStatus: import_smithy_client28._json,
        nextToken: import_smithy_client28.expectString,
        registryId: import_smithy_client28.expectString,
        repositoryName: import_smithy_client28.expectString
      });
    }, "de_DescribeImageScanFindingsResponse");
    var de_DescribeImagesResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        imageDetails: /* @__PURE__ */ __name2((_3) => de_ImageDetailList(_3, context), "imageDetails"),
        nextToken: import_smithy_client28.expectString
      });
    }, "de_DescribeImagesResponse");
    var de_DescribePullThroughCacheRulesResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        nextToken: import_smithy_client28.expectString,
        pullThroughCacheRules: /* @__PURE__ */ __name2((_3) => de_PullThroughCacheRuleList(_3, context), "pullThroughCacheRules")
      });
    }, "de_DescribePullThroughCacheRulesResponse");
    var de_DescribeRepositoriesResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        nextToken: import_smithy_client28.expectString,
        repositories: /* @__PURE__ */ __name2((_3) => de_RepositoryList(_3, context), "repositories")
      });
    }, "de_DescribeRepositoriesResponse");
    var de_DescribeRepositoryCreationTemplatesResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        nextToken: import_smithy_client28.expectString,
        registryId: import_smithy_client28.expectString,
        repositoryCreationTemplates: /* @__PURE__ */ __name2((_3) => de_RepositoryCreationTemplateList(_3, context), "repositoryCreationTemplates")
      });
    }, "de_DescribeRepositoryCreationTemplatesResponse");
    var de_EnhancedImageScanFinding = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        awsAccountId: import_smithy_client28.expectString,
        description: import_smithy_client28.expectString,
        exploitAvailable: import_smithy_client28.expectString,
        findingArn: import_smithy_client28.expectString,
        firstObservedAt: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "firstObservedAt"),
        fixAvailable: import_smithy_client28.expectString,
        lastObservedAt: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "lastObservedAt"),
        packageVulnerabilityDetails: /* @__PURE__ */ __name2((_3) => de_PackageVulnerabilityDetails(_3, context), "packageVulnerabilityDetails"),
        remediation: import_smithy_client28._json,
        resources: /* @__PURE__ */ __name2((_3) => de_ResourceList(_3, context), "resources"),
        score: import_smithy_client28.limitedParseDouble,
        scoreDetails: /* @__PURE__ */ __name2((_3) => de_ScoreDetails(_3, context), "scoreDetails"),
        severity: import_smithy_client28.expectString,
        status: import_smithy_client28.expectString,
        title: import_smithy_client28.expectString,
        type: import_smithy_client28.expectString,
        updatedAt: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "updatedAt")
      });
    }, "de_EnhancedImageScanFinding");
    var de_EnhancedImageScanFindingList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_EnhancedImageScanFinding(entry, context);
      });
      return retVal;
    }, "de_EnhancedImageScanFindingList");
    var de_GetAuthorizationTokenResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        authorizationData: /* @__PURE__ */ __name2((_3) => de_AuthorizationDataList(_3, context), "authorizationData")
      });
    }, "de_GetAuthorizationTokenResponse");
    var de_GetLifecyclePolicyPreviewResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        lifecyclePolicyText: import_smithy_client28.expectString,
        nextToken: import_smithy_client28.expectString,
        previewResults: /* @__PURE__ */ __name2((_3) => de_LifecyclePolicyPreviewResultList(_3, context), "previewResults"),
        registryId: import_smithy_client28.expectString,
        repositoryName: import_smithy_client28.expectString,
        status: import_smithy_client28.expectString,
        summary: import_smithy_client28._json
      });
    }, "de_GetLifecyclePolicyPreviewResponse");
    var de_GetLifecyclePolicyResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        lastEvaluatedAt: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "lastEvaluatedAt"),
        lifecyclePolicyText: import_smithy_client28.expectString,
        registryId: import_smithy_client28.expectString,
        repositoryName: import_smithy_client28.expectString
      });
    }, "de_GetLifecyclePolicyResponse");
    var de_ImageDetail = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        artifactMediaType: import_smithy_client28.expectString,
        imageDigest: import_smithy_client28.expectString,
        imageManifestMediaType: import_smithy_client28.expectString,
        imagePushedAt: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "imagePushedAt"),
        imageScanFindingsSummary: /* @__PURE__ */ __name2((_3) => de_ImageScanFindingsSummary(_3, context), "imageScanFindingsSummary"),
        imageScanStatus: import_smithy_client28._json,
        imageSizeInBytes: import_smithy_client28.expectLong,
        imageTags: import_smithy_client28._json,
        lastRecordedPullTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "lastRecordedPullTime"),
        registryId: import_smithy_client28.expectString,
        repositoryName: import_smithy_client28.expectString
      });
    }, "de_ImageDetail");
    var de_ImageDetailList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ImageDetail(entry, context);
      });
      return retVal;
    }, "de_ImageDetailList");
    var de_ImageScanFindings = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        enhancedFindings: /* @__PURE__ */ __name2((_3) => de_EnhancedImageScanFindingList(_3, context), "enhancedFindings"),
        findingSeverityCounts: import_smithy_client28._json,
        findings: import_smithy_client28._json,
        imageScanCompletedAt: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "imageScanCompletedAt"),
        vulnerabilitySourceUpdatedAt: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "vulnerabilitySourceUpdatedAt")
      });
    }, "de_ImageScanFindings");
    var de_ImageScanFindingsSummary = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        findingSeverityCounts: import_smithy_client28._json,
        imageScanCompletedAt: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "imageScanCompletedAt"),
        vulnerabilitySourceUpdatedAt: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "vulnerabilitySourceUpdatedAt")
      });
    }, "de_ImageScanFindingsSummary");
    var de_LifecyclePolicyPreviewResult = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        action: import_smithy_client28._json,
        appliedRulePriority: import_smithy_client28.expectInt32,
        imageDigest: import_smithy_client28.expectString,
        imagePushedAt: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "imagePushedAt"),
        imageTags: import_smithy_client28._json
      });
    }, "de_LifecyclePolicyPreviewResult");
    var de_LifecyclePolicyPreviewResultList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_LifecyclePolicyPreviewResult(entry, context);
      });
      return retVal;
    }, "de_LifecyclePolicyPreviewResultList");
    var de_PackageVulnerabilityDetails = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        cvss: /* @__PURE__ */ __name2((_3) => de_CvssScoreList(_3, context), "cvss"),
        referenceUrls: import_smithy_client28._json,
        relatedVulnerabilities: import_smithy_client28._json,
        source: import_smithy_client28.expectString,
        sourceUrl: import_smithy_client28.expectString,
        vendorCreatedAt: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "vendorCreatedAt"),
        vendorSeverity: import_smithy_client28.expectString,
        vendorUpdatedAt: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "vendorUpdatedAt"),
        vulnerabilityId: import_smithy_client28.expectString,
        vulnerablePackages: import_smithy_client28._json
      });
    }, "de_PackageVulnerabilityDetails");
    var de_PullThroughCacheRule = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        createdAt: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "createdAt"),
        credentialArn: import_smithy_client28.expectString,
        customRoleArn: import_smithy_client28.expectString,
        ecrRepositoryPrefix: import_smithy_client28.expectString,
        registryId: import_smithy_client28.expectString,
        updatedAt: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "updatedAt"),
        upstreamRegistry: import_smithy_client28.expectString,
        upstreamRegistryUrl: import_smithy_client28.expectString,
        upstreamRepositoryPrefix: import_smithy_client28.expectString
      });
    }, "de_PullThroughCacheRule");
    var de_PullThroughCacheRuleList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_PullThroughCacheRule(entry, context);
      });
      return retVal;
    }, "de_PullThroughCacheRuleList");
    var de_Repository = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        createdAt: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "createdAt"),
        encryptionConfiguration: import_smithy_client28._json,
        imageScanningConfiguration: import_smithy_client28._json,
        imageTagMutability: import_smithy_client28.expectString,
        imageTagMutabilityExclusionFilters: import_smithy_client28._json,
        registryId: import_smithy_client28.expectString,
        repositoryArn: import_smithy_client28.expectString,
        repositoryName: import_smithy_client28.expectString,
        repositoryUri: import_smithy_client28.expectString
      });
    }, "de_Repository");
    var de_RepositoryCreationTemplate = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        appliedFor: import_smithy_client28._json,
        createdAt: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "createdAt"),
        customRoleArn: import_smithy_client28.expectString,
        description: import_smithy_client28.expectString,
        encryptionConfiguration: import_smithy_client28._json,
        imageTagMutability: import_smithy_client28.expectString,
        imageTagMutabilityExclusionFilters: import_smithy_client28._json,
        lifecyclePolicy: import_smithy_client28.expectString,
        prefix: import_smithy_client28.expectString,
        repositoryPolicy: import_smithy_client28.expectString,
        resourceTags: import_smithy_client28._json,
        updatedAt: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "updatedAt")
      });
    }, "de_RepositoryCreationTemplate");
    var de_RepositoryCreationTemplateList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_RepositoryCreationTemplate(entry, context);
      });
      return retVal;
    }, "de_RepositoryCreationTemplateList");
    var de_RepositoryList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Repository(entry, context);
      });
      return retVal;
    }, "de_RepositoryList");
    var de_Resource = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        details: /* @__PURE__ */ __name2((_3) => de_ResourceDetails(_3, context), "details"),
        id: import_smithy_client28.expectString,
        tags: import_smithy_client28._json,
        type: import_smithy_client28.expectString
      });
    }, "de_Resource");
    var de_ResourceDetails = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        awsEcrContainerImage: /* @__PURE__ */ __name2((_3) => de_AwsEcrContainerImageDetails(_3, context), "awsEcrContainerImage")
      });
    }, "de_ResourceDetails");
    var de_ResourceList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Resource(entry, context);
      });
      return retVal;
    }, "de_ResourceList");
    var de_ScoreDetails = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        cvss: /* @__PURE__ */ __name2((_3) => de_CvssScoreDetails(_3, context), "cvss")
      });
    }, "de_ScoreDetails");
    var de_UpdatePullThroughCacheRuleResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        credentialArn: import_smithy_client28.expectString,
        customRoleArn: import_smithy_client28.expectString,
        ecrRepositoryPrefix: import_smithy_client28.expectString,
        registryId: import_smithy_client28.expectString,
        updatedAt: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "updatedAt"),
        upstreamRepositoryPrefix: import_smithy_client28.expectString
      });
    }, "de_UpdatePullThroughCacheRuleResponse");
    var de_UpdateRepositoryCreationTemplateResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        registryId: import_smithy_client28.expectString,
        repositoryCreationTemplate: /* @__PURE__ */ __name2((_3) => de_RepositoryCreationTemplate(_3, context), "repositoryCreationTemplate")
      });
    }, "de_UpdateRepositoryCreationTemplateResponse");
    var deserializeMetadata3 = /* @__PURE__ */ __name2((output) => ({
      httpStatusCode: output.statusCode,
      requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
      extendedRequestId: output.headers["x-amz-id-2"],
      cfId: output.headers["x-amz-cf-id"]
    }), "deserializeMetadata");
    var throwDefaultError3 = (0, import_smithy_client28.withBaseException)(ECRServiceException);
    var buildHttpRpcRequest2 = /* @__PURE__ */ __name2(async (context, headers, path38, resolvedHostname, body) => {
      const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
      const contents = {
        protocol,
        hostname,
        port,
        method: "POST",
        path: basePath.endsWith("/") ? basePath.slice(0, -1) + path38 : basePath + path38,
        headers
      };
      if (resolvedHostname !== void 0) {
        contents.hostname = resolvedHostname;
      }
      if (body !== void 0) {
        contents.body = body;
      }
      return new import_protocol_http16.HttpRequest(contents);
    }, "buildHttpRpcRequest");
    function sharedHeaders(operation) {
      return {
        "content-type": "application/x-amz-json-1.1",
        "x-amz-target": `AmazonEC2ContainerRegistry_V20150921.${operation}`
      };
    }
    __name(sharedHeaders, "sharedHeaders");
    __name2(sharedHeaders, "sharedHeaders");
    var BatchCheckLayerAvailabilityCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerRegistry_V20150921", "BatchCheckLayerAvailability", {}).n("ECRClient", "BatchCheckLayerAvailabilityCommand").f(void 0, void 0).ser(se_BatchCheckLayerAvailabilityCommand).de(de_BatchCheckLayerAvailabilityCommand).build() {
      static {
        __name(this, "BatchCheckLayerAvailabilityCommand");
      }
      static {
        __name2(this, "BatchCheckLayerAvailabilityCommand");
      }
    };
    var BatchDeleteImageCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerRegistry_V20150921", "BatchDeleteImage", {}).n("ECRClient", "BatchDeleteImageCommand").f(void 0, void 0).ser(se_BatchDeleteImageCommand).de(de_BatchDeleteImageCommand).build() {
      static {
        __name(this, "BatchDeleteImageCommand");
      }
      static {
        __name2(this, "BatchDeleteImageCommand");
      }
    };
    var BatchGetImageCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerRegistry_V20150921", "BatchGetImage", {}).n("ECRClient", "BatchGetImageCommand").f(void 0, void 0).ser(se_BatchGetImageCommand).de(de_BatchGetImageCommand).build() {
      static {
        __name(this, "BatchGetImageCommand");
      }
      static {
        __name2(this, "BatchGetImageCommand");
      }
    };
    var BatchGetRepositoryScanningConfigurationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerRegistry_V20150921", "BatchGetRepositoryScanningConfiguration", {}).n("ECRClient", "BatchGetRepositoryScanningConfigurationCommand").f(void 0, void 0).ser(se_BatchGetRepositoryScanningConfigurationCommand).de(de_BatchGetRepositoryScanningConfigurationCommand).build() {
      static {
        __name(this, "BatchGetRepositoryScanningConfigurationCommand");
      }
      static {
        __name2(this, "BatchGetRepositoryScanningConfigurationCommand");
      }
    };
    var CompleteLayerUploadCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerRegistry_V20150921", "CompleteLayerUpload", {}).n("ECRClient", "CompleteLayerUploadCommand").f(void 0, void 0).ser(se_CompleteLayerUploadCommand).de(de_CompleteLayerUploadCommand).build() {
      static {
        __name(this, "CompleteLayerUploadCommand");
      }
      static {
        __name2(this, "CompleteLayerUploadCommand");
      }
    };
    var CreatePullThroughCacheRuleCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerRegistry_V20150921", "CreatePullThroughCacheRule", {}).n("ECRClient", "CreatePullThroughCacheRuleCommand").f(void 0, void 0).ser(se_CreatePullThroughCacheRuleCommand).de(de_CreatePullThroughCacheRuleCommand).build() {
      static {
        __name(this, "CreatePullThroughCacheRuleCommand");
      }
      static {
        __name2(this, "CreatePullThroughCacheRuleCommand");
      }
    };
    var CreateRepositoryCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerRegistry_V20150921", "CreateRepository", {}).n("ECRClient", "CreateRepositoryCommand").f(void 0, void 0).ser(se_CreateRepositoryCommand).de(de_CreateRepositoryCommand).build() {
      static {
        __name(this, "CreateRepositoryCommand");
      }
      static {
        __name2(this, "CreateRepositoryCommand");
      }
    };
    var CreateRepositoryCreationTemplateCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerRegistry_V20150921", "CreateRepositoryCreationTemplate", {}).n("ECRClient", "CreateRepositoryCreationTemplateCommand").f(void 0, void 0).ser(se_CreateRepositoryCreationTemplateCommand).de(de_CreateRepositoryCreationTemplateCommand).build() {
      static {
        __name(this, "CreateRepositoryCreationTemplateCommand");
      }
      static {
        __name2(this, "CreateRepositoryCreationTemplateCommand");
      }
    };
    var DeleteLifecyclePolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerRegistry_V20150921", "DeleteLifecyclePolicy", {}).n("ECRClient", "DeleteLifecyclePolicyCommand").f(void 0, void 0).ser(se_DeleteLifecyclePolicyCommand).de(de_DeleteLifecyclePolicyCommand).build() {
      static {
        __name(this, "DeleteLifecyclePolicyCommand");
      }
      static {
        __name2(this, "DeleteLifecyclePolicyCommand");
      }
    };
    var DeletePullThroughCacheRuleCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerRegistry_V20150921", "DeletePullThroughCacheRule", {}).n("ECRClient", "DeletePullThroughCacheRuleCommand").f(void 0, void 0).ser(se_DeletePullThroughCacheRuleCommand).de(de_DeletePullThroughCacheRuleCommand).build() {
      static {
        __name(this, "DeletePullThroughCacheRuleCommand");
      }
      static {
        __name2(this, "DeletePullThroughCacheRuleCommand");
      }
    };
    var DeleteRegistryPolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerRegistry_V20150921", "DeleteRegistryPolicy", {}).n("ECRClient", "DeleteRegistryPolicyCommand").f(void 0, void 0).ser(se_DeleteRegistryPolicyCommand).de(de_DeleteRegistryPolicyCommand).build() {
      static {
        __name(this, "DeleteRegistryPolicyCommand");
      }
      static {
        __name2(this, "DeleteRegistryPolicyCommand");
      }
    };
    var DeleteRepositoryCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerRegistry_V20150921", "DeleteRepository", {}).n("ECRClient", "DeleteRepositoryCommand").f(void 0, void 0).ser(se_DeleteRepositoryCommand).de(de_DeleteRepositoryCommand).build() {
      static {
        __name(this, "DeleteRepositoryCommand");
      }
      static {
        __name2(this, "DeleteRepositoryCommand");
      }
    };
    var DeleteRepositoryCreationTemplateCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerRegistry_V20150921", "DeleteRepositoryCreationTemplate", {}).n("ECRClient", "DeleteRepositoryCreationTemplateCommand").f(void 0, void 0).ser(se_DeleteRepositoryCreationTemplateCommand).de(de_DeleteRepositoryCreationTemplateCommand).build() {
      static {
        __name(this, "DeleteRepositoryCreationTemplateCommand");
      }
      static {
        __name2(this, "DeleteRepositoryCreationTemplateCommand");
      }
    };
    var DeleteRepositoryPolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerRegistry_V20150921", "DeleteRepositoryPolicy", {}).n("ECRClient", "DeleteRepositoryPolicyCommand").f(void 0, void 0).ser(se_DeleteRepositoryPolicyCommand).de(de_DeleteRepositoryPolicyCommand).build() {
      static {
        __name(this, "DeleteRepositoryPolicyCommand");
      }
      static {
        __name2(this, "DeleteRepositoryPolicyCommand");
      }
    };
    var DescribeImageReplicationStatusCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerRegistry_V20150921", "DescribeImageReplicationStatus", {}).n("ECRClient", "DescribeImageReplicationStatusCommand").f(void 0, void 0).ser(se_DescribeImageReplicationStatusCommand).de(de_DescribeImageReplicationStatusCommand).build() {
      static {
        __name(this, "DescribeImageReplicationStatusCommand");
      }
      static {
        __name2(this, "DescribeImageReplicationStatusCommand");
      }
    };
    var DescribeImageScanFindingsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerRegistry_V20150921", "DescribeImageScanFindings", {}).n("ECRClient", "DescribeImageScanFindingsCommand").f(void 0, void 0).ser(se_DescribeImageScanFindingsCommand).de(de_DescribeImageScanFindingsCommand).build() {
      static {
        __name(this, "DescribeImageScanFindingsCommand");
      }
      static {
        __name2(this, "DescribeImageScanFindingsCommand");
      }
    };
    var DescribeImagesCommand3 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerRegistry_V20150921", "DescribeImages", {}).n("ECRClient", "DescribeImagesCommand").f(void 0, void 0).ser(se_DescribeImagesCommand).de(de_DescribeImagesCommand).build() {
      static {
        __name(this, "DescribeImagesCommand");
      }
      static {
        __name2(this, "DescribeImagesCommand");
      }
    };
    var DescribePullThroughCacheRulesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerRegistry_V20150921", "DescribePullThroughCacheRules", {}).n("ECRClient", "DescribePullThroughCacheRulesCommand").f(void 0, void 0).ser(se_DescribePullThroughCacheRulesCommand).de(de_DescribePullThroughCacheRulesCommand).build() {
      static {
        __name(this, "DescribePullThroughCacheRulesCommand");
      }
      static {
        __name2(this, "DescribePullThroughCacheRulesCommand");
      }
    };
    var DescribeRegistryCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerRegistry_V20150921", "DescribeRegistry", {}).n("ECRClient", "DescribeRegistryCommand").f(void 0, void 0).ser(se_DescribeRegistryCommand).de(de_DescribeRegistryCommand).build() {
      static {
        __name(this, "DescribeRegistryCommand");
      }
      static {
        __name2(this, "DescribeRegistryCommand");
      }
    };
    var DescribeRepositoriesCommand3 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerRegistry_V20150921", "DescribeRepositories", {}).n("ECRClient", "DescribeRepositoriesCommand").f(void 0, void 0).ser(se_DescribeRepositoriesCommand).de(de_DescribeRepositoriesCommand).build() {
      static {
        __name(this, "DescribeRepositoriesCommand");
      }
      static {
        __name2(this, "DescribeRepositoriesCommand");
      }
    };
    var DescribeRepositoryCreationTemplatesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerRegistry_V20150921", "DescribeRepositoryCreationTemplates", {}).n("ECRClient", "DescribeRepositoryCreationTemplatesCommand").f(void 0, void 0).ser(se_DescribeRepositoryCreationTemplatesCommand).de(de_DescribeRepositoryCreationTemplatesCommand).build() {
      static {
        __name(this, "DescribeRepositoryCreationTemplatesCommand");
      }
      static {
        __name2(this, "DescribeRepositoryCreationTemplatesCommand");
      }
    };
    var GetAccountSettingCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerRegistry_V20150921", "GetAccountSetting", {}).n("ECRClient", "GetAccountSettingCommand").f(void 0, void 0).ser(se_GetAccountSettingCommand).de(de_GetAccountSettingCommand).build() {
      static {
        __name(this, "GetAccountSettingCommand");
      }
      static {
        __name2(this, "GetAccountSettingCommand");
      }
    };
    var GetAuthorizationTokenCommand3 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerRegistry_V20150921", "GetAuthorizationToken", {}).n("ECRClient", "GetAuthorizationTokenCommand").f(void 0, void 0).ser(se_GetAuthorizationTokenCommand).de(de_GetAuthorizationTokenCommand).build() {
      static {
        __name(this, "GetAuthorizationTokenCommand");
      }
      static {
        __name2(this, "GetAuthorizationTokenCommand");
      }
    };
    var GetDownloadUrlForLayerCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerRegistry_V20150921", "GetDownloadUrlForLayer", {}).n("ECRClient", "GetDownloadUrlForLayerCommand").f(void 0, void 0).ser(se_GetDownloadUrlForLayerCommand).de(de_GetDownloadUrlForLayerCommand).build() {
      static {
        __name(this, "GetDownloadUrlForLayerCommand");
      }
      static {
        __name2(this, "GetDownloadUrlForLayerCommand");
      }
    };
    var GetLifecyclePolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerRegistry_V20150921", "GetLifecyclePolicy", {}).n("ECRClient", "GetLifecyclePolicyCommand").f(void 0, void 0).ser(se_GetLifecyclePolicyCommand).de(de_GetLifecyclePolicyCommand).build() {
      static {
        __name(this, "GetLifecyclePolicyCommand");
      }
      static {
        __name2(this, "GetLifecyclePolicyCommand");
      }
    };
    var GetLifecyclePolicyPreviewCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerRegistry_V20150921", "GetLifecyclePolicyPreview", {}).n("ECRClient", "GetLifecyclePolicyPreviewCommand").f(void 0, void 0).ser(se_GetLifecyclePolicyPreviewCommand).de(de_GetLifecyclePolicyPreviewCommand).build() {
      static {
        __name(this, "GetLifecyclePolicyPreviewCommand");
      }
      static {
        __name2(this, "GetLifecyclePolicyPreviewCommand");
      }
    };
    var GetRegistryPolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerRegistry_V20150921", "GetRegistryPolicy", {}).n("ECRClient", "GetRegistryPolicyCommand").f(void 0, void 0).ser(se_GetRegistryPolicyCommand).de(de_GetRegistryPolicyCommand).build() {
      static {
        __name(this, "GetRegistryPolicyCommand");
      }
      static {
        __name2(this, "GetRegistryPolicyCommand");
      }
    };
    var GetRegistryScanningConfigurationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerRegistry_V20150921", "GetRegistryScanningConfiguration", {}).n("ECRClient", "GetRegistryScanningConfigurationCommand").f(void 0, void 0).ser(se_GetRegistryScanningConfigurationCommand).de(de_GetRegistryScanningConfigurationCommand).build() {
      static {
        __name(this, "GetRegistryScanningConfigurationCommand");
      }
      static {
        __name2(this, "GetRegistryScanningConfigurationCommand");
      }
    };
    var GetRepositoryPolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerRegistry_V20150921", "GetRepositoryPolicy", {}).n("ECRClient", "GetRepositoryPolicyCommand").f(void 0, void 0).ser(se_GetRepositoryPolicyCommand).de(de_GetRepositoryPolicyCommand).build() {
      static {
        __name(this, "GetRepositoryPolicyCommand");
      }
      static {
        __name2(this, "GetRepositoryPolicyCommand");
      }
    };
    var InitiateLayerUploadCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerRegistry_V20150921", "InitiateLayerUpload", {}).n("ECRClient", "InitiateLayerUploadCommand").f(void 0, void 0).ser(se_InitiateLayerUploadCommand).de(de_InitiateLayerUploadCommand).build() {
      static {
        __name(this, "InitiateLayerUploadCommand");
      }
      static {
        __name2(this, "InitiateLayerUploadCommand");
      }
    };
    var ListImagesCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerRegistry_V20150921", "ListImages", {}).n("ECRClient", "ListImagesCommand").f(void 0, void 0).ser(se_ListImagesCommand).de(de_ListImagesCommand).build() {
      static {
        __name(this, "ListImagesCommand");
      }
      static {
        __name2(this, "ListImagesCommand");
      }
    };
    var ListTagsForResourceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerRegistry_V20150921", "ListTagsForResource", {}).n("ECRClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
      static {
        __name(this, "ListTagsForResourceCommand");
      }
      static {
        __name2(this, "ListTagsForResourceCommand");
      }
    };
    var PutAccountSettingCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerRegistry_V20150921", "PutAccountSetting", {}).n("ECRClient", "PutAccountSettingCommand").f(void 0, void 0).ser(se_PutAccountSettingCommand).de(de_PutAccountSettingCommand).build() {
      static {
        __name(this, "PutAccountSettingCommand");
      }
      static {
        __name2(this, "PutAccountSettingCommand");
      }
    };
    var PutImageCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerRegistry_V20150921", "PutImage", {}).n("ECRClient", "PutImageCommand").f(void 0, void 0).ser(se_PutImageCommand).de(de_PutImageCommand).build() {
      static {
        __name(this, "PutImageCommand");
      }
      static {
        __name2(this, "PutImageCommand");
      }
    };
    var PutImageScanningConfigurationCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerRegistry_V20150921", "PutImageScanningConfiguration", {}).n("ECRClient", "PutImageScanningConfigurationCommand").f(void 0, void 0).ser(se_PutImageScanningConfigurationCommand).de(de_PutImageScanningConfigurationCommand).build() {
      static {
        __name(this, "PutImageScanningConfigurationCommand");
      }
      static {
        __name2(this, "PutImageScanningConfigurationCommand");
      }
    };
    var PutImageTagMutabilityCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerRegistry_V20150921", "PutImageTagMutability", {}).n("ECRClient", "PutImageTagMutabilityCommand").f(void 0, void 0).ser(se_PutImageTagMutabilityCommand).de(de_PutImageTagMutabilityCommand).build() {
      static {
        __name(this, "PutImageTagMutabilityCommand");
      }
      static {
        __name2(this, "PutImageTagMutabilityCommand");
      }
    };
    var PutLifecyclePolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerRegistry_V20150921", "PutLifecyclePolicy", {}).n("ECRClient", "PutLifecyclePolicyCommand").f(void 0, void 0).ser(se_PutLifecyclePolicyCommand).de(de_PutLifecyclePolicyCommand).build() {
      static {
        __name(this, "PutLifecyclePolicyCommand");
      }
      static {
        __name2(this, "PutLifecyclePolicyCommand");
      }
    };
    var PutRegistryPolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerRegistry_V20150921", "PutRegistryPolicy", {}).n("ECRClient", "PutRegistryPolicyCommand").f(void 0, void 0).ser(se_PutRegistryPolicyCommand).de(de_PutRegistryPolicyCommand).build() {
      static {
        __name(this, "PutRegistryPolicyCommand");
      }
      static {
        __name2(this, "PutRegistryPolicyCommand");
      }
    };
    var PutRegistryScanningConfigurationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerRegistry_V20150921", "PutRegistryScanningConfiguration", {}).n("ECRClient", "PutRegistryScanningConfigurationCommand").f(void 0, void 0).ser(se_PutRegistryScanningConfigurationCommand).de(de_PutRegistryScanningConfigurationCommand).build() {
      static {
        __name(this, "PutRegistryScanningConfigurationCommand");
      }
      static {
        __name2(this, "PutRegistryScanningConfigurationCommand");
      }
    };
    var PutReplicationConfigurationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerRegistry_V20150921", "PutReplicationConfiguration", {}).n("ECRClient", "PutReplicationConfigurationCommand").f(void 0, void 0).ser(se_PutReplicationConfigurationCommand).de(de_PutReplicationConfigurationCommand).build() {
      static {
        __name(this, "PutReplicationConfigurationCommand");
      }
      static {
        __name2(this, "PutReplicationConfigurationCommand");
      }
    };
    var SetRepositoryPolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerRegistry_V20150921", "SetRepositoryPolicy", {}).n("ECRClient", "SetRepositoryPolicyCommand").f(void 0, void 0).ser(se_SetRepositoryPolicyCommand).de(de_SetRepositoryPolicyCommand).build() {
      static {
        __name(this, "SetRepositoryPolicyCommand");
      }
      static {
        __name2(this, "SetRepositoryPolicyCommand");
      }
    };
    var StartImageScanCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerRegistry_V20150921", "StartImageScan", {}).n("ECRClient", "StartImageScanCommand").f(void 0, void 0).ser(se_StartImageScanCommand).de(de_StartImageScanCommand).build() {
      static {
        __name(this, "StartImageScanCommand");
      }
      static {
        __name2(this, "StartImageScanCommand");
      }
    };
    var StartLifecyclePolicyPreviewCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerRegistry_V20150921", "StartLifecyclePolicyPreview", {}).n("ECRClient", "StartLifecyclePolicyPreviewCommand").f(void 0, void 0).ser(se_StartLifecyclePolicyPreviewCommand).de(de_StartLifecyclePolicyPreviewCommand).build() {
      static {
        __name(this, "StartLifecyclePolicyPreviewCommand");
      }
      static {
        __name2(this, "StartLifecyclePolicyPreviewCommand");
      }
    };
    var TagResourceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerRegistry_V20150921", "TagResource", {}).n("ECRClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
      static {
        __name(this, "TagResourceCommand");
      }
      static {
        __name2(this, "TagResourceCommand");
      }
    };
    var UntagResourceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerRegistry_V20150921", "UntagResource", {}).n("ECRClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
      static {
        __name(this, "UntagResourceCommand");
      }
      static {
        __name2(this, "UntagResourceCommand");
      }
    };
    var UpdatePullThroughCacheRuleCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerRegistry_V20150921", "UpdatePullThroughCacheRule", {}).n("ECRClient", "UpdatePullThroughCacheRuleCommand").f(void 0, void 0).ser(se_UpdatePullThroughCacheRuleCommand).de(de_UpdatePullThroughCacheRuleCommand).build() {
      static {
        __name(this, "UpdatePullThroughCacheRuleCommand");
      }
      static {
        __name2(this, "UpdatePullThroughCacheRuleCommand");
      }
    };
    var UpdateRepositoryCreationTemplateCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerRegistry_V20150921", "UpdateRepositoryCreationTemplate", {}).n("ECRClient", "UpdateRepositoryCreationTemplateCommand").f(void 0, void 0).ser(se_UpdateRepositoryCreationTemplateCommand).de(de_UpdateRepositoryCreationTemplateCommand).build() {
      static {
        __name(this, "UpdateRepositoryCreationTemplateCommand");
      }
      static {
        __name2(this, "UpdateRepositoryCreationTemplateCommand");
      }
    };
    var UploadLayerPartCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerRegistry_V20150921", "UploadLayerPart", {}).n("ECRClient", "UploadLayerPartCommand").f(void 0, void 0).ser(se_UploadLayerPartCommand).de(de_UploadLayerPartCommand).build() {
      static {
        __name(this, "UploadLayerPartCommand");
      }
      static {
        __name2(this, "UploadLayerPartCommand");
      }
    };
    var ValidatePullThroughCacheRuleCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerRegistry_V20150921", "ValidatePullThroughCacheRule", {}).n("ECRClient", "ValidatePullThroughCacheRuleCommand").f(void 0, void 0).ser(se_ValidatePullThroughCacheRuleCommand).de(de_ValidatePullThroughCacheRuleCommand).build() {
      static {
        __name(this, "ValidatePullThroughCacheRuleCommand");
      }
      static {
        __name2(this, "ValidatePullThroughCacheRuleCommand");
      }
    };
    var commands3 = {
      BatchCheckLayerAvailabilityCommand,
      BatchDeleteImageCommand: BatchDeleteImageCommand2,
      BatchGetImageCommand: BatchGetImageCommand2,
      BatchGetRepositoryScanningConfigurationCommand,
      CompleteLayerUploadCommand,
      CreatePullThroughCacheRuleCommand,
      CreateRepositoryCommand: CreateRepositoryCommand2,
      CreateRepositoryCreationTemplateCommand,
      DeleteLifecyclePolicyCommand,
      DeletePullThroughCacheRuleCommand,
      DeleteRegistryPolicyCommand,
      DeleteRepositoryCommand,
      DeleteRepositoryCreationTemplateCommand,
      DeleteRepositoryPolicyCommand,
      DescribeImageReplicationStatusCommand,
      DescribeImagesCommand: DescribeImagesCommand3,
      DescribeImageScanFindingsCommand,
      DescribePullThroughCacheRulesCommand,
      DescribeRegistryCommand,
      DescribeRepositoriesCommand: DescribeRepositoriesCommand3,
      DescribeRepositoryCreationTemplatesCommand,
      GetAccountSettingCommand,
      GetAuthorizationTokenCommand: GetAuthorizationTokenCommand3,
      GetDownloadUrlForLayerCommand,
      GetLifecyclePolicyCommand,
      GetLifecyclePolicyPreviewCommand,
      GetRegistryPolicyCommand,
      GetRegistryScanningConfigurationCommand,
      GetRepositoryPolicyCommand,
      InitiateLayerUploadCommand,
      ListImagesCommand: ListImagesCommand2,
      ListTagsForResourceCommand,
      PutAccountSettingCommand,
      PutImageCommand: PutImageCommand2,
      PutImageScanningConfigurationCommand: PutImageScanningConfigurationCommand2,
      PutImageTagMutabilityCommand,
      PutLifecyclePolicyCommand,
      PutRegistryPolicyCommand,
      PutRegistryScanningConfigurationCommand,
      PutReplicationConfigurationCommand,
      SetRepositoryPolicyCommand,
      StartImageScanCommand,
      StartLifecyclePolicyPreviewCommand,
      TagResourceCommand,
      UntagResourceCommand,
      UpdatePullThroughCacheRuleCommand,
      UpdateRepositoryCreationTemplateCommand,
      UploadLayerPartCommand,
      ValidatePullThroughCacheRuleCommand
    };
    var ECR = class extends ECRClient3 {
      static {
        __name(this, "ECR");
      }
      static {
        __name2(this, "ECR");
      }
    };
    (0, import_smithy_client28.createAggregatedClient)(commands3, ECR);
    var paginateDescribeImageScanFindings = (0, import_core17.createPaginator)(ECRClient3, DescribeImageScanFindingsCommand, "nextToken", "nextToken", "maxResults");
    var paginateDescribeImages = (0, import_core17.createPaginator)(ECRClient3, DescribeImagesCommand3, "nextToken", "nextToken", "maxResults");
    var paginateDescribePullThroughCacheRules = (0, import_core17.createPaginator)(ECRClient3, DescribePullThroughCacheRulesCommand, "nextToken", "nextToken", "maxResults");
    var paginateDescribeRepositories = (0, import_core17.createPaginator)(ECRClient3, DescribeRepositoriesCommand3, "nextToken", "nextToken", "maxResults");
    var paginateDescribeRepositoryCreationTemplates = (0, import_core17.createPaginator)(ECRClient3, DescribeRepositoryCreationTemplatesCommand, "nextToken", "nextToken", "maxResults");
    var paginateGetLifecyclePolicyPreview = (0, import_core17.createPaginator)(ECRClient3, GetLifecyclePolicyPreviewCommand, "nextToken", "nextToken", "maxResults");
    var paginateListImages = (0, import_core17.createPaginator)(ECRClient3, ListImagesCommand2, "nextToken", "nextToken", "maxResults");
    var import_util_waiter = require_dist_cjs53();
    var checkState = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeImageScanFindingsCommand(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            return result2.imageScanStatus.status;
          }, "returnComparator");
          if (returnComparator() === "COMPLETE") {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            return result2.imageScanStatus.status;
          }, "returnComparator");
          if (returnComparator() === "FAILED") {
            return { state: import_util_waiter.WaiterState.FAILURE, reason };
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForImageScanComplete = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 5, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
    }, "waitForImageScanComplete");
    var waitUntilImageScanComplete = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 5, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilImageScanComplete");
    var checkState2 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new GetLifecyclePolicyPreviewCommand(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            return result2.status;
          }, "returnComparator");
          if (returnComparator() === "COMPLETE") {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            return result2.status;
          }, "returnComparator");
          if (returnComparator() === "FAILED") {
            return { state: import_util_waiter.WaiterState.FAILURE, reason };
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForLifecyclePolicyPreviewComplete = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 5, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2);
    }, "waitForLifecyclePolicyPreviewComplete");
    var waitUntilLifecyclePolicyPreviewComplete = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 5, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilLifecyclePolicyPreviewComplete");
  }
});

// ../../node_modules/@aws-sdk/middleware-expect-continue/dist-cjs/index.js
var require_dist_cjs55 = __commonJS({
  "../../node_modules/@aws-sdk/middleware-expect-continue/dist-cjs/index.js"(exports2, module2) {
    "use strict";
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var index_exports = {};
    __export2(index_exports, {
      addExpectContinueMiddleware: /* @__PURE__ */ __name(() => addExpectContinueMiddleware, "addExpectContinueMiddleware"),
      addExpectContinueMiddlewareOptions: /* @__PURE__ */ __name(() => addExpectContinueMiddlewareOptions, "addExpectContinueMiddlewareOptions"),
      getAddExpectContinuePlugin: /* @__PURE__ */ __name(() => getAddExpectContinuePlugin, "getAddExpectContinuePlugin")
    });
    module2.exports = __toCommonJS2(index_exports);
    var import_protocol_http16 = require_dist_cjs2();
    function addExpectContinueMiddleware(options) {
      return (next) => async (args) => {
        const { request: request2 } = args;
        if (import_protocol_http16.HttpRequest.isInstance(request2) && request2.body && options.runtime === "node") {
          if (options.requestHandler?.constructor?.name !== "FetchHttpHandler") {
            request2.headers = {
              ...request2.headers,
              Expect: "100-continue"
            };
          }
        }
        return next({
          ...args,
          request: request2
        });
      };
    }
    __name(addExpectContinueMiddleware, "addExpectContinueMiddleware");
    __name2(addExpectContinueMiddleware, "addExpectContinueMiddleware");
    var addExpectContinueMiddlewareOptions = {
      step: "build",
      tags: ["SET_EXPECT_HEADER", "EXPECT_HEADER"],
      name: "addExpectContinueMiddleware",
      override: true
    };
    var getAddExpectContinuePlugin = /* @__PURE__ */ __name2((options) => ({
      applyToStack: /* @__PURE__ */ __name2((clientStack) => {
        clientStack.add(addExpectContinueMiddleware(options), addExpectContinueMiddlewareOptions);
      }, "applyToStack")
    }), "getAddExpectContinuePlugin");
  }
});

// ../../node_modules/@aws-crypto/util/node_modules/@smithy/is-array-buffer/dist-cjs/index.js
var require_dist_cjs56 = __commonJS({
  "../../node_modules/@aws-crypto/util/node_modules/@smithy/is-array-buffer/dist-cjs/index.js"(exports2, module2) {
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var src_exports = {};
    __export2(src_exports, {
      isArrayBuffer: /* @__PURE__ */ __name(() => isArrayBuffer, "isArrayBuffer")
    });
    module2.exports = __toCommonJS2(src_exports);
    var isArrayBuffer = /* @__PURE__ */ __name2((arg) => typeof ArrayBuffer === "function" && arg instanceof ArrayBuffer || Object.prototype.toString.call(arg) === "[object ArrayBuffer]", "isArrayBuffer");
  }
});

// ../../node_modules/@aws-crypto/util/node_modules/@smithy/util-buffer-from/dist-cjs/index.js
var require_dist_cjs57 = __commonJS({
  "../../node_modules/@aws-crypto/util/node_modules/@smithy/util-buffer-from/dist-cjs/index.js"(exports2, module2) {
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var src_exports = {};
    __export2(src_exports, {
      fromArrayBuffer: /* @__PURE__ */ __name(() => fromArrayBuffer, "fromArrayBuffer"),
      fromString: /* @__PURE__ */ __name(() => fromString, "fromString")
    });
    module2.exports = __toCommonJS2(src_exports);
    var import_is_array_buffer = require_dist_cjs56();
    var import_buffer = require("buffer");
    var fromArrayBuffer = /* @__PURE__ */ __name2((input, offset = 0, length = input.byteLength - offset) => {
      if (!(0, import_is_array_buffer.isArrayBuffer)(input)) {
        throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof input} (${input})`);
      }
      return import_buffer.Buffer.from(input, offset, length);
    }, "fromArrayBuffer");
    var fromString = /* @__PURE__ */ __name2((input, encoding) => {
      if (typeof input !== "string") {
        throw new TypeError(`The "input" argument must be of type string. Received type ${typeof input} (${input})`);
      }
      return encoding ? import_buffer.Buffer.from(input, encoding) : import_buffer.Buffer.from(input);
    }, "fromString");
  }
});

// ../../node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-cjs/index.js
var require_dist_cjs58 = __commonJS({
  "../../node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-cjs/index.js"(exports2, module2) {
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var src_exports = {};
    __export2(src_exports, {
      fromUtf8: /* @__PURE__ */ __name(() => fromUtf86, "fromUtf8"),
      toUint8Array: /* @__PURE__ */ __name(() => toUint8Array2, "toUint8Array"),
      toUtf8: /* @__PURE__ */ __name(() => toUtf88, "toUtf8")
    });
    module2.exports = __toCommonJS2(src_exports);
    var import_util_buffer_from = require_dist_cjs57();
    var fromUtf86 = /* @__PURE__ */ __name2((input) => {
      const buf = (0, import_util_buffer_from.fromString)(input, "utf8");
      return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength / Uint8Array.BYTES_PER_ELEMENT);
    }, "fromUtf8");
    var toUint8Array2 = /* @__PURE__ */ __name2((data3) => {
      if (typeof data3 === "string") {
        return fromUtf86(data3);
      }
      if (ArrayBuffer.isView(data3)) {
        return new Uint8Array(data3.buffer, data3.byteOffset, data3.byteLength / Uint8Array.BYTES_PER_ELEMENT);
      }
      return new Uint8Array(data3);
    }, "toUint8Array");
    var toUtf88 = /* @__PURE__ */ __name2((input) => {
      if (typeof input === "string") {
        return input;
      }
      if (typeof input !== "object" || typeof input.byteOffset !== "number" || typeof input.byteLength !== "number") {
        throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");
      }
      return (0, import_util_buffer_from.fromArrayBuffer)(input.buffer, input.byteOffset, input.byteLength).toString("utf8");
    }, "toUtf8");
  }
});

// ../../node_modules/@aws-crypto/util/build/main/convertToBuffer.js
var require_convertToBuffer = __commonJS({
  "../../node_modules/@aws-crypto/util/build/main/convertToBuffer.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.convertToBuffer = void 0;
    var util_utf8_1 = require_dist_cjs58();
    var fromUtf86 = typeof Buffer !== "undefined" && Buffer.from ? function(input) {
      return Buffer.from(input, "utf8");
    } : util_utf8_1.fromUtf8;
    function convertToBuffer(data3) {
      if (data3 instanceof Uint8Array)
        return data3;
      if (typeof data3 === "string") {
        return fromUtf86(data3);
      }
      if (ArrayBuffer.isView(data3)) {
        return new Uint8Array(data3.buffer, data3.byteOffset, data3.byteLength / Uint8Array.BYTES_PER_ELEMENT);
      }
      return new Uint8Array(data3);
    }
    __name(convertToBuffer, "convertToBuffer");
    exports2.convertToBuffer = convertToBuffer;
  }
});

// ../../node_modules/@aws-crypto/util/build/main/isEmptyData.js
var require_isEmptyData = __commonJS({
  "../../node_modules/@aws-crypto/util/build/main/isEmptyData.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.isEmptyData = void 0;
    function isEmptyData(data3) {
      if (typeof data3 === "string") {
        return data3.length === 0;
      }
      return data3.byteLength === 0;
    }
    __name(isEmptyData, "isEmptyData");
    exports2.isEmptyData = isEmptyData;
  }
});

// ../../node_modules/@aws-crypto/util/build/main/numToUint8.js
var require_numToUint8 = __commonJS({
  "../../node_modules/@aws-crypto/util/build/main/numToUint8.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.numToUint8 = void 0;
    function numToUint8(num) {
      return new Uint8Array([
        (num & 4278190080) >> 24,
        (num & 16711680) >> 16,
        (num & 65280) >> 8,
        num & 255
      ]);
    }
    __name(numToUint8, "numToUint8");
    exports2.numToUint8 = numToUint8;
  }
});

// ../../node_modules/@aws-crypto/util/build/main/uint32ArrayFrom.js
var require_uint32ArrayFrom = __commonJS({
  "../../node_modules/@aws-crypto/util/build/main/uint32ArrayFrom.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.uint32ArrayFrom = void 0;
    function uint32ArrayFrom(a_lookUpTable) {
      if (!Uint32Array.from) {
        var return_array = new Uint32Array(a_lookUpTable.length);
        var a_index = 0;
        while (a_index < a_lookUpTable.length) {
          return_array[a_index] = a_lookUpTable[a_index];
          a_index += 1;
        }
        return return_array;
      }
      return Uint32Array.from(a_lookUpTable);
    }
    __name(uint32ArrayFrom, "uint32ArrayFrom");
    exports2.uint32ArrayFrom = uint32ArrayFrom;
  }
});

// ../../node_modules/@aws-crypto/util/build/main/index.js
var require_main = __commonJS({
  "../../node_modules/@aws-crypto/util/build/main/index.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.uint32ArrayFrom = exports2.numToUint8 = exports2.isEmptyData = exports2.convertToBuffer = void 0;
    var convertToBuffer_1 = require_convertToBuffer();
    Object.defineProperty(exports2, "convertToBuffer", { enumerable: true, get: /* @__PURE__ */ __name(function() {
      return convertToBuffer_1.convertToBuffer;
    }, "get") });
    var isEmptyData_1 = require_isEmptyData();
    Object.defineProperty(exports2, "isEmptyData", { enumerable: true, get: /* @__PURE__ */ __name(function() {
      return isEmptyData_1.isEmptyData;
    }, "get") });
    var numToUint8_1 = require_numToUint8();
    Object.defineProperty(exports2, "numToUint8", { enumerable: true, get: /* @__PURE__ */ __name(function() {
      return numToUint8_1.numToUint8;
    }, "get") });
    var uint32ArrayFrom_1 = require_uint32ArrayFrom();
    Object.defineProperty(exports2, "uint32ArrayFrom", { enumerable: true, get: /* @__PURE__ */ __name(function() {
      return uint32ArrayFrom_1.uint32ArrayFrom;
    }, "get") });
  }
});

// ../../node_modules/@aws-crypto/crc32c/build/main/aws_crc32c.js
var require_aws_crc32c = __commonJS({
  "../../node_modules/@aws-crypto/crc32c/build/main/aws_crc32c.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.AwsCrc32c = void 0;
    var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
    var util_1 = require_main();
    var index_1 = require_main2();
    var AwsCrc32c = (
      /** @class */
      (function() {
        function AwsCrc32c2() {
          this.crc32c = new index_1.Crc32c();
        }
        __name(AwsCrc32c2, "AwsCrc32c");
        AwsCrc32c2.prototype.update = function(toHash) {
          if ((0, util_1.isEmptyData)(toHash))
            return;
          this.crc32c.update((0, util_1.convertToBuffer)(toHash));
        };
        AwsCrc32c2.prototype.digest = function() {
          return tslib_1.__awaiter(this, void 0, void 0, function() {
            return tslib_1.__generator(this, function(_a2) {
              return [2, (0, util_1.numToUint8)(this.crc32c.digest())];
            });
          });
        };
        AwsCrc32c2.prototype.reset = function() {
          this.crc32c = new index_1.Crc32c();
        };
        return AwsCrc32c2;
      })()
    );
    exports2.AwsCrc32c = AwsCrc32c;
  }
});

// ../../node_modules/@aws-crypto/crc32c/build/main/index.js
var require_main2 = __commonJS({
  "../../node_modules/@aws-crypto/crc32c/build/main/index.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.AwsCrc32c = exports2.Crc32c = exports2.crc32c = void 0;
    var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
    var util_1 = require_main();
    function crc32c(data3) {
      return new Crc32c().update(data3).digest();
    }
    __name(crc32c, "crc32c");
    exports2.crc32c = crc32c;
    var Crc32c = (
      /** @class */
      (function() {
        function Crc32c2() {
          this.checksum = 4294967295;
        }
        __name(Crc32c2, "Crc32c");
        Crc32c2.prototype.update = function(data3) {
          var e_1, _a2;
          try {
            for (var data_1 = tslib_1.__values(data3), data_1_1 = data_1.next(); !data_1_1.done; data_1_1 = data_1.next()) {
              var byte = data_1_1.value;
              this.checksum = this.checksum >>> 8 ^ lookupTable[(this.checksum ^ byte) & 255];
            }
          } catch (e_1_1) {
            e_1 = { error: e_1_1 };
          } finally {
            try {
              if (data_1_1 && !data_1_1.done && (_a2 = data_1.return)) _a2.call(data_1);
            } finally {
              if (e_1) throw e_1.error;
            }
          }
          return this;
        };
        Crc32c2.prototype.digest = function() {
          return (this.checksum ^ 4294967295) >>> 0;
        };
        return Crc32c2;
      })()
    );
    exports2.Crc32c = Crc32c;
    var a_lookupTable = [
      0,
      4067132163,
      3778769143,
      324072436,
      3348797215,
      904991772,
      648144872,
      3570033899,
      2329499855,
      2024987596,
      1809983544,
      2575936315,
      1296289744,
      3207089363,
      2893594407,
      1578318884,
      274646895,
      3795141740,
      4049975192,
      51262619,
      3619967088,
      632279923,
      922689671,
      3298075524,
      2592579488,
      1760304291,
      2075979607,
      2312596564,
      1562183871,
      2943781820,
      3156637768,
      1313733451,
      549293790,
      3537243613,
      3246849577,
      871202090,
      3878099393,
      357341890,
      102525238,
      4101499445,
      2858735121,
      1477399826,
      1264559846,
      3107202533,
      1845379342,
      2677391885,
      2361733625,
      2125378298,
      820201905,
      3263744690,
      3520608582,
      598981189,
      4151959214,
      85089709,
      373468761,
      3827903834,
      3124367742,
      1213305469,
      1526817161,
      2842354314,
      2107672161,
      2412447074,
      2627466902,
      1861252501,
      1098587580,
      3004210879,
      2688576843,
      1378610760,
      2262928035,
      1955203488,
      1742404180,
      2511436119,
      3416409459,
      969524848,
      714683780,
      3639785095,
      205050476,
      4266873199,
      3976438427,
      526918040,
      1361435347,
      2739821008,
      2954799652,
      1114974503,
      2529119692,
      1691668175,
      2005155131,
      2247081528,
      3690758684,
      697762079,
      986182379,
      3366744552,
      476452099,
      3993867776,
      4250756596,
      255256311,
      1640403810,
      2477592673,
      2164122517,
      1922457750,
      2791048317,
      1412925310,
      1197962378,
      3037525897,
      3944729517,
      427051182,
      170179418,
      4165941337,
      746937522,
      3740196785,
      3451792453,
      1070968646,
      1905808397,
      2213795598,
      2426610938,
      1657317369,
      3053634322,
      1147748369,
      1463399397,
      2773627110,
      4215344322,
      153784257,
      444234805,
      3893493558,
      1021025245,
      3467647198,
      3722505002,
      797665321,
      2197175160,
      1889384571,
      1674398607,
      2443626636,
      1164749927,
      3070701412,
      2757221520,
      1446797203,
      137323447,
      4198817972,
      3910406976,
      461344835,
      3484808360,
      1037989803,
      781091935,
      3705997148,
      2460548119,
      1623424788,
      1939049696,
      2180517859,
      1429367560,
      2807687179,
      3020495871,
      1180866812,
      410100952,
      3927582683,
      4182430767,
      186734380,
      3756733383,
      763408580,
      1053836080,
      3434856499,
      2722870694,
      1344288421,
      1131464017,
      2971354706,
      1708204729,
      2545590714,
      2229949006,
      1988219213,
      680717673,
      3673779818,
      3383336350,
      1002577565,
      4010310262,
      493091189,
      238226049,
      4233660802,
      2987750089,
      1082061258,
      1395524158,
      2705686845,
      1972364758,
      2279892693,
      2494862625,
      1725896226,
      952904198,
      3399985413,
      3656866545,
      731699698,
      4283874585,
      222117402,
      510512622,
      3959836397,
      3280807620,
      837199303,
      582374963,
      3504198960,
      68661723,
      4135334616,
      3844915500,
      390545967,
      1230274059,
      3141532936,
      2825850620,
      1510247935,
      2395924756,
      2091215383,
      1878366691,
      2644384480,
      3553878443,
      565732008,
      854102364,
      3229815391,
      340358836,
      3861050807,
      4117890627,
      119113024,
      1493875044,
      2875275879,
      3090270611,
      1247431312,
      2660249211,
      1828433272,
      2141937292,
      2378227087,
      3811616794,
      291187481,
      34330861,
      4032846830,
      615137029,
      3603020806,
      3314634738,
      939183345,
      1776939221,
      2609017814,
      2295496738,
      2058945313,
      2926798794,
      1545135305,
      1330124605,
      3173225534,
      4084100981,
      17165430,
      307568514,
      3762199681,
      888469610,
      3332340585,
      3587147933,
      665062302,
      2042050490,
      2346497209,
      2559330125,
      1793573966,
      3190661285,
      1279665062,
      1595330642,
      2910671697
    ];
    var lookupTable = (0, util_1.uint32ArrayFrom)(a_lookupTable);
    var aws_crc32c_1 = require_aws_crc32c();
    Object.defineProperty(exports2, "AwsCrc32c", { enumerable: true, get: /* @__PURE__ */ __name(function() {
      return aws_crc32c_1.AwsCrc32c;
    }, "get") });
  }
});

// ../../node_modules/@aws-crypto/crc32/build/main/aws_crc32.js
var require_aws_crc32 = __commonJS({
  "../../node_modules/@aws-crypto/crc32/build/main/aws_crc32.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.AwsCrc32 = void 0;
    var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
    var util_1 = require_main();
    var index_1 = require_main3();
    var AwsCrc32 = (
      /** @class */
      (function() {
        function AwsCrc322() {
          this.crc32 = new index_1.Crc32();
        }
        __name(AwsCrc322, "AwsCrc32");
        AwsCrc322.prototype.update = function(toHash) {
          if ((0, util_1.isEmptyData)(toHash))
            return;
          this.crc32.update((0, util_1.convertToBuffer)(toHash));
        };
        AwsCrc322.prototype.digest = function() {
          return tslib_1.__awaiter(this, void 0, void 0, function() {
            return tslib_1.__generator(this, function(_a2) {
              return [2, (0, util_1.numToUint8)(this.crc32.digest())];
            });
          });
        };
        AwsCrc322.prototype.reset = function() {
          this.crc32 = new index_1.Crc32();
        };
        return AwsCrc322;
      })()
    );
    exports2.AwsCrc32 = AwsCrc32;
  }
});

// ../../node_modules/@aws-crypto/crc32/build/main/index.js
var require_main3 = __commonJS({
  "../../node_modules/@aws-crypto/crc32/build/main/index.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.AwsCrc32 = exports2.Crc32 = exports2.crc32 = void 0;
    var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
    var util_1 = require_main();
    function crc32(data3) {
      return new Crc32().update(data3).digest();
    }
    __name(crc32, "crc32");
    exports2.crc32 = crc32;
    var Crc32 = (
      /** @class */
      (function() {
        function Crc322() {
          this.checksum = 4294967295;
        }
        __name(Crc322, "Crc32");
        Crc322.prototype.update = function(data3) {
          var e_1, _a2;
          try {
            for (var data_1 = tslib_1.__values(data3), data_1_1 = data_1.next(); !data_1_1.done; data_1_1 = data_1.next()) {
              var byte = data_1_1.value;
              this.checksum = this.checksum >>> 8 ^ lookupTable[(this.checksum ^ byte) & 255];
            }
          } catch (e_1_1) {
            e_1 = { error: e_1_1 };
          } finally {
            try {
              if (data_1_1 && !data_1_1.done && (_a2 = data_1.return)) _a2.call(data_1);
            } finally {
              if (e_1) throw e_1.error;
            }
          }
          return this;
        };
        Crc322.prototype.digest = function() {
          return (this.checksum ^ 4294967295) >>> 0;
        };
        return Crc322;
      })()
    );
    exports2.Crc32 = Crc32;
    var a_lookUpTable = [
      0,
      1996959894,
      3993919788,
      2567524794,
      124634137,
      1886057615,
      3915621685,
      2657392035,
      249268274,
      2044508324,
      3772115230,
      2547177864,
      162941995,
      2125561021,
      3887607047,
      2428444049,
      498536548,
      1789927666,
      4089016648,
      2227061214,
      450548861,
      1843258603,
      4107580753,
      2211677639,
      325883990,
      1684777152,
      4251122042,
      2321926636,
      335633487,
      1661365465,
      4195302755,
      2366115317,
      997073096,
      1281953886,
      3579855332,
      2724688242,
      1006888145,
      1258607687,
      3524101629,
      2768942443,
      901097722,
      1119000684,
      3686517206,
      2898065728,
      853044451,
      1172266101,
      3705015759,
      2882616665,
      651767980,
      1373503546,
      3369554304,
      3218104598,
      565507253,
      1454621731,
      3485111705,
      3099436303,
      671266974,
      1594198024,
      3322730930,
      2970347812,
      795835527,
      1483230225,
      3244367275,
      3060149565,
      1994146192,
      31158534,
      2563907772,
      4023717930,
      1907459465,
      112637215,
      2680153253,
      3904427059,
      2013776290,
      251722036,
      2517215374,
      3775830040,
      2137656763,
      141376813,
      2439277719,
      3865271297,
      1802195444,
      476864866,
      2238001368,
      4066508878,
      1812370925,
      453092731,
      2181625025,
      4111451223,
      1706088902,
      314042704,
      2344532202,
      4240017532,
      1658658271,
      366619977,
      2362670323,
      4224994405,
      1303535960,
      984961486,
      2747007092,
      3569037538,
      1256170817,
      1037604311,
      2765210733,
      3554079995,
      1131014506,
      879679996,
      2909243462,
      3663771856,
      1141124467,
      855842277,
      2852801631,
      3708648649,
      1342533948,
      654459306,
      3188396048,
      3373015174,
      1466479909,
      544179635,
      3110523913,
      3462522015,
      1591671054,
      702138776,
      2966460450,
      3352799412,
      1504918807,
      783551873,
      3082640443,
      3233442989,
      3988292384,
      2596254646,
      62317068,
      1957810842,
      3939845945,
      2647816111,
      81470997,
      1943803523,
      3814918930,
      2489596804,
      225274430,
      2053790376,
      3826175755,
      2466906013,
      167816743,
      2097651377,
      4027552580,
      2265490386,
      503444072,
      1762050814,
      4150417245,
      2154129355,
      426522225,
      1852507879,
      4275313526,
      2312317920,
      282753626,
      1742555852,
      4189708143,
      2394877945,
      397917763,
      1622183637,
      3604390888,
      2714866558,
      953729732,
      1340076626,
      3518719985,
      2797360999,
      1068828381,
      1219638859,
      3624741850,
      2936675148,
      906185462,
      1090812512,
      3747672003,
      2825379669,
      829329135,
      1181335161,
      3412177804,
      3160834842,
      628085408,
      1382605366,
      3423369109,
      3138078467,
      570562233,
      1426400815,
      3317316542,
      2998733608,
      733239954,
      1555261956,
      3268935591,
      3050360625,
      752459403,
      1541320221,
      2607071920,
      3965973030,
      1969922972,
      40735498,
      2617837225,
      3943577151,
      1913087877,
      83908371,
      2512341634,
      3803740692,
      2075208622,
      213261112,
      2463272603,
      3855990285,
      2094854071,
      198958881,
      2262029012,
      4057260610,
      1759359992,
      534414190,
      2176718541,
      4139329115,
      1873836001,
      414664567,
      2282248934,
      4279200368,
      1711684554,
      285281116,
      2405801727,
      4167216745,
      1634467795,
      376229701,
      2685067896,
      3608007406,
      1308918612,
      956543938,
      2808555105,
      3495958263,
      1231636301,
      1047427035,
      2932959818,
      3654703836,
      1088359270,
      936918e3,
      2847714899,
      3736837829,
      1202900863,
      817233897,
      3183342108,
      3401237130,
      1404277552,
      615818150,
      3134207493,
      3453421203,
      1423857449,
      601450431,
      3009837614,
      3294710456,
      1567103746,
      711928724,
      3020668471,
      3272380065,
      1510334235,
      755167117
    ];
    var lookupTable = (0, util_1.uint32ArrayFrom)(a_lookUpTable);
    var aws_crc32_1 = require_aws_crc32();
    Object.defineProperty(exports2, "AwsCrc32", { enumerable: true, get: /* @__PURE__ */ __name(function() {
      return aws_crc32_1.AwsCrc32;
    }, "get") });
  }
});

// ../../node_modules/@aws-sdk/middleware-flexible-checksums/dist-cjs/getCrc32ChecksumAlgorithmFunction.js
var require_getCrc32ChecksumAlgorithmFunction = __commonJS({
  "../../node_modules/@aws-sdk/middleware-flexible-checksums/dist-cjs/getCrc32ChecksumAlgorithmFunction.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.getCrc32ChecksumAlgorithmFunction = void 0;
    var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
    var crc32_1 = require_main3();
    var util_1 = require_main();
    var zlib = tslib_1.__importStar(require("zlib"));
    var NodeCrc32 = class {
      static {
        __name(this, "NodeCrc32");
      }
      checksum = 0;
      update(data3) {
        this.checksum = zlib.crc32(data3, this.checksum);
      }
      async digest() {
        return (0, util_1.numToUint8)(this.checksum);
      }
      reset() {
        this.checksum = 0;
      }
    };
    var getCrc32ChecksumAlgorithmFunction = /* @__PURE__ */ __name(() => {
      if (typeof zlib.crc32 === "undefined") {
        return crc32_1.AwsCrc32;
      }
      return NodeCrc32;
    }, "getCrc32ChecksumAlgorithmFunction");
    exports2.getCrc32ChecksumAlgorithmFunction = getCrc32ChecksumAlgorithmFunction;
  }
});

// ../../node_modules/@aws-sdk/middleware-flexible-checksums/dist-cjs/index.js
var require_dist_cjs59 = __commonJS({
  "../../node_modules/@aws-sdk/middleware-flexible-checksums/dist-cjs/index.js"(exports2, module2) {
    "use strict";
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var index_exports = {};
    __export2(index_exports, {
      CONFIG_REQUEST_CHECKSUM_CALCULATION: /* @__PURE__ */ __name(() => CONFIG_REQUEST_CHECKSUM_CALCULATION, "CONFIG_REQUEST_CHECKSUM_CALCULATION"),
      CONFIG_RESPONSE_CHECKSUM_VALIDATION: /* @__PURE__ */ __name(() => CONFIG_RESPONSE_CHECKSUM_VALIDATION, "CONFIG_RESPONSE_CHECKSUM_VALIDATION"),
      ChecksumAlgorithm: /* @__PURE__ */ __name(() => ChecksumAlgorithm, "ChecksumAlgorithm"),
      ChecksumLocation: /* @__PURE__ */ __name(() => ChecksumLocation, "ChecksumLocation"),
      DEFAULT_CHECKSUM_ALGORITHM: /* @__PURE__ */ __name(() => DEFAULT_CHECKSUM_ALGORITHM, "DEFAULT_CHECKSUM_ALGORITHM"),
      DEFAULT_REQUEST_CHECKSUM_CALCULATION: /* @__PURE__ */ __name(() => DEFAULT_REQUEST_CHECKSUM_CALCULATION, "DEFAULT_REQUEST_CHECKSUM_CALCULATION"),
      DEFAULT_RESPONSE_CHECKSUM_VALIDATION: /* @__PURE__ */ __name(() => DEFAULT_RESPONSE_CHECKSUM_VALIDATION, "DEFAULT_RESPONSE_CHECKSUM_VALIDATION"),
      ENV_REQUEST_CHECKSUM_CALCULATION: /* @__PURE__ */ __name(() => ENV_REQUEST_CHECKSUM_CALCULATION, "ENV_REQUEST_CHECKSUM_CALCULATION"),
      ENV_RESPONSE_CHECKSUM_VALIDATION: /* @__PURE__ */ __name(() => ENV_RESPONSE_CHECKSUM_VALIDATION, "ENV_RESPONSE_CHECKSUM_VALIDATION"),
      NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS: /* @__PURE__ */ __name(() => NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS, "NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS"),
      NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS: /* @__PURE__ */ __name(() => NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS, "NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS"),
      RequestChecksumCalculation: /* @__PURE__ */ __name(() => RequestChecksumCalculation, "RequestChecksumCalculation"),
      ResponseChecksumValidation: /* @__PURE__ */ __name(() => ResponseChecksumValidation, "ResponseChecksumValidation"),
      crc64NvmeCrtContainer: /* @__PURE__ */ __name(() => crc64NvmeCrtContainer, "crc64NvmeCrtContainer"),
      flexibleChecksumsMiddleware: /* @__PURE__ */ __name(() => flexibleChecksumsMiddleware, "flexibleChecksumsMiddleware"),
      flexibleChecksumsMiddlewareOptions: /* @__PURE__ */ __name(() => flexibleChecksumsMiddlewareOptions, "flexibleChecksumsMiddlewareOptions"),
      getFlexibleChecksumsPlugin: /* @__PURE__ */ __name(() => getFlexibleChecksumsPlugin, "getFlexibleChecksumsPlugin"),
      resolveFlexibleChecksumsConfig: /* @__PURE__ */ __name(() => resolveFlexibleChecksumsConfig, "resolveFlexibleChecksumsConfig")
    });
    module2.exports = __toCommonJS2(index_exports);
    var RequestChecksumCalculation = {
      /**
       * When set, a checksum will be calculated for all request payloads of operations
       * modeled with the {@link httpChecksum} trait where `requestChecksumRequired` is `true`
       * AND/OR a `requestAlgorithmMember` is modeled.
       * {@link https://smithy.io/2.0/aws/aws-core.html#aws-protocols-httpchecksum-trait httpChecksum}
       */
      WHEN_SUPPORTED: "WHEN_SUPPORTED",
      /**
       * When set, a checksum will only be calculated for request payloads of operations
       * modeled with the {@link httpChecksum} trait where `requestChecksumRequired` is `true`
       * OR where a `requestAlgorithmMember` is modeled and the user sets it.
       * {@link https://smithy.io/2.0/aws/aws-core.html#aws-protocols-httpchecksum-trait httpChecksum}
       */
      WHEN_REQUIRED: "WHEN_REQUIRED"
    };
    var DEFAULT_REQUEST_CHECKSUM_CALCULATION = RequestChecksumCalculation.WHEN_SUPPORTED;
    var ResponseChecksumValidation = {
      /**
       * When set, checksum validation MUST be performed on all response payloads of operations
       * modeled with the {@link httpChecksum} trait where `responseAlgorithms` is modeled,
       * except when no modeled checksum algorithms are supported by an SDK.
       * {@link https://smithy.io/2.0/aws/aws-core.html#aws-protocols-httpchecksum-trait httpChecksum}
       */
      WHEN_SUPPORTED: "WHEN_SUPPORTED",
      /**
       * When set, checksum validation MUST NOT be performed on response payloads of operations UNLESS
       * the SDK supports the modeled checksum algorithms AND the user has set the `requestValidationModeMember` to `ENABLED`.
       * It is currently impossible to model an operation as requiring a response checksum,
       * but this setting leaves the door open for future updates.
       */
      WHEN_REQUIRED: "WHEN_REQUIRED"
    };
    var DEFAULT_RESPONSE_CHECKSUM_VALIDATION = RequestChecksumCalculation.WHEN_SUPPORTED;
    var ChecksumAlgorithm = /* @__PURE__ */ ((ChecksumAlgorithm3) => {
      ChecksumAlgorithm3["MD5"] = "MD5";
      ChecksumAlgorithm3["CRC32"] = "CRC32";
      ChecksumAlgorithm3["CRC32C"] = "CRC32C";
      ChecksumAlgorithm3["CRC64NVME"] = "CRC64NVME";
      ChecksumAlgorithm3["SHA1"] = "SHA1";
      ChecksumAlgorithm3["SHA256"] = "SHA256";
      return ChecksumAlgorithm3;
    })(ChecksumAlgorithm || {});
    var ChecksumLocation = /* @__PURE__ */ ((ChecksumLocation2) => {
      ChecksumLocation2["HEADER"] = "header";
      ChecksumLocation2["TRAILER"] = "trailer";
      return ChecksumLocation2;
    })(ChecksumLocation || {});
    var DEFAULT_CHECKSUM_ALGORITHM = "CRC32";
    var stringUnionSelector = /* @__PURE__ */ __name2((obj, key, union, type) => {
      if (!(key in obj)) return void 0;
      const value = obj[key].toUpperCase();
      if (!Object.values(union).includes(value)) {
        throw new TypeError(`Cannot load ${type} '${key}'. Expected one of ${Object.values(union)}, got '${obj[key]}'.`);
      }
      return value;
    }, "stringUnionSelector");
    var ENV_REQUEST_CHECKSUM_CALCULATION = "AWS_REQUEST_CHECKSUM_CALCULATION";
    var CONFIG_REQUEST_CHECKSUM_CALCULATION = "request_checksum_calculation";
    var NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS = {
      environmentVariableSelector: /* @__PURE__ */ __name2((env2) => stringUnionSelector(
        env2,
        ENV_REQUEST_CHECKSUM_CALCULATION,
        RequestChecksumCalculation,
        "env"
        /* ENV */
      ), "environmentVariableSelector"),
      configFileSelector: /* @__PURE__ */ __name2((profile) => stringUnionSelector(
        profile,
        CONFIG_REQUEST_CHECKSUM_CALCULATION,
        RequestChecksumCalculation,
        "shared config entry"
        /* CONFIG */
      ), "configFileSelector"),
      default: DEFAULT_REQUEST_CHECKSUM_CALCULATION
    };
    var ENV_RESPONSE_CHECKSUM_VALIDATION = "AWS_RESPONSE_CHECKSUM_VALIDATION";
    var CONFIG_RESPONSE_CHECKSUM_VALIDATION = "response_checksum_validation";
    var NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS = {
      environmentVariableSelector: /* @__PURE__ */ __name2((env2) => stringUnionSelector(
        env2,
        ENV_RESPONSE_CHECKSUM_VALIDATION,
        ResponseChecksumValidation,
        "env"
        /* ENV */
      ), "environmentVariableSelector"),
      configFileSelector: /* @__PURE__ */ __name2((profile) => stringUnionSelector(
        profile,
        CONFIG_RESPONSE_CHECKSUM_VALIDATION,
        ResponseChecksumValidation,
        "shared config entry"
        /* CONFIG */
      ), "configFileSelector"),
      default: DEFAULT_RESPONSE_CHECKSUM_VALIDATION
    };
    var crc64NvmeCrtContainer = {
      CrtCrc64Nvme: null
    };
    var import_core17 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var import_protocol_http16 = require_dist_cjs2();
    var import_util_stream3 = require_dist_cjs17();
    var CLIENT_SUPPORTED_ALGORITHMS = [
      "CRC32",
      "CRC32C",
      "CRC64NVME",
      "SHA1",
      "SHA256"
      /* SHA256 */
    ];
    var PRIORITY_ORDER_ALGORITHMS = [
      "SHA256",
      "SHA1",
      "CRC32",
      "CRC32C",
      "CRC64NVME"
      /* CRC64NVME */
    ];
    var getChecksumAlgorithmForRequest = /* @__PURE__ */ __name2((input, { requestChecksumRequired, requestAlgorithmMember, requestChecksumCalculation }) => {
      if (!requestAlgorithmMember) {
        return requestChecksumCalculation === RequestChecksumCalculation.WHEN_SUPPORTED || requestChecksumRequired ? DEFAULT_CHECKSUM_ALGORITHM : void 0;
      }
      if (!input[requestAlgorithmMember]) {
        return void 0;
      }
      const checksumAlgorithm = input[requestAlgorithmMember];
      if (!CLIENT_SUPPORTED_ALGORITHMS.includes(checksumAlgorithm)) {
        throw new Error(
          `The checksum algorithm "${checksumAlgorithm}" is not supported by the client. Select one of ${CLIENT_SUPPORTED_ALGORITHMS}.`
        );
      }
      return checksumAlgorithm;
    }, "getChecksumAlgorithmForRequest");
    var getChecksumLocationName = /* @__PURE__ */ __name2((algorithm) => algorithm === "MD5" ? "content-md5" : `x-amz-checksum-${algorithm.toLowerCase()}`, "getChecksumLocationName");
    var hasHeader = /* @__PURE__ */ __name2((header, headers) => {
      const soughtHeader = header.toLowerCase();
      for (const headerName of Object.keys(headers)) {
        if (soughtHeader === headerName.toLowerCase()) {
          return true;
        }
      }
      return false;
    }, "hasHeader");
    var hasHeaderWithPrefix = /* @__PURE__ */ __name2((headerPrefix, headers) => {
      const soughtHeaderPrefix = headerPrefix.toLowerCase();
      for (const headerName of Object.keys(headers)) {
        if (headerName.toLowerCase().startsWith(soughtHeaderPrefix)) {
          return true;
        }
      }
      return false;
    }, "hasHeaderWithPrefix");
    var import_is_array_buffer = require_dist_cjs8();
    var isStreaming = /* @__PURE__ */ __name2((body) => body !== void 0 && typeof body !== "string" && !ArrayBuffer.isView(body) && !(0, import_is_array_buffer.isArrayBuffer)(body), "isStreaming");
    var import_crc32c = require_main2();
    var import_getCrc32ChecksumAlgorithmFunction = require_getCrc32ChecksumAlgorithmFunction();
    var selectChecksumAlgorithmFunction = /* @__PURE__ */ __name2((checksumAlgorithm, config) => {
      switch (checksumAlgorithm) {
        case "MD5":
          return config.md5;
        case "CRC32":
          return (0, import_getCrc32ChecksumAlgorithmFunction.getCrc32ChecksumAlgorithmFunction)();
        case "CRC32C":
          return import_crc32c.AwsCrc32c;
        case "CRC64NVME":
          if (typeof crc64NvmeCrtContainer.CrtCrc64Nvme !== "function") {
            throw new Error(
              `Please check whether you have installed the "@aws-sdk/crc64-nvme-crt" package explicitly. 
You must also register the package by calling [require("@aws-sdk/crc64-nvme-crt");] or an ESM equivalent such as [import "@aws-sdk/crc64-nvme-crt";]. 
For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`
            );
          }
          return crc64NvmeCrtContainer.CrtCrc64Nvme;
        case "SHA1":
          return config.sha1;
        case "SHA256":
          return config.sha256;
        default:
          throw new Error(`Unsupported checksum algorithm: ${checksumAlgorithm}`);
      }
    }, "selectChecksumAlgorithmFunction");
    var import_util_utf810 = require_dist_cjs10();
    var stringHasher = /* @__PURE__ */ __name2((checksumAlgorithmFn, body) => {
      const hash = new checksumAlgorithmFn();
      hash.update((0, import_util_utf810.toUint8Array)(body || ""));
      return hash.digest();
    }, "stringHasher");
    var flexibleChecksumsMiddlewareOptions = {
      name: "flexibleChecksumsMiddleware",
      step: "build",
      tags: ["BODY_CHECKSUM"],
      override: true
    };
    var flexibleChecksumsMiddleware = /* @__PURE__ */ __name2((config, middlewareConfig) => (next, context) => async (args) => {
      if (!import_protocol_http16.HttpRequest.isInstance(args.request)) {
        return next(args);
      }
      if (hasHeaderWithPrefix("x-amz-checksum-", args.request.headers)) {
        return next(args);
      }
      const { request: request2, input } = args;
      const { body: requestBody, headers } = request2;
      const { base64Encoder, streamHasher } = config;
      const { requestChecksumRequired, requestAlgorithmMember } = middlewareConfig;
      const requestChecksumCalculation = await config.requestChecksumCalculation();
      const requestAlgorithmMemberName = requestAlgorithmMember?.name;
      const requestAlgorithmMemberHttpHeader = requestAlgorithmMember?.httpHeader;
      if (requestAlgorithmMemberName && !input[requestAlgorithmMemberName]) {
        if (requestChecksumCalculation === RequestChecksumCalculation.WHEN_SUPPORTED || requestChecksumRequired) {
          input[requestAlgorithmMemberName] = DEFAULT_CHECKSUM_ALGORITHM;
          if (requestAlgorithmMemberHttpHeader) {
            headers[requestAlgorithmMemberHttpHeader] = DEFAULT_CHECKSUM_ALGORITHM;
          }
        }
      }
      const checksumAlgorithm = getChecksumAlgorithmForRequest(input, {
        requestChecksumRequired,
        requestAlgorithmMember: requestAlgorithmMember?.name,
        requestChecksumCalculation
      });
      let updatedBody = requestBody;
      let updatedHeaders = headers;
      if (checksumAlgorithm) {
        switch (checksumAlgorithm) {
          case "CRC32":
            (0, import_core17.setFeature)(context, "FLEXIBLE_CHECKSUMS_REQ_CRC32", "U");
            break;
          case "CRC32C":
            (0, import_core17.setFeature)(context, "FLEXIBLE_CHECKSUMS_REQ_CRC32C", "V");
            break;
          case "CRC64NVME":
            (0, import_core17.setFeature)(context, "FLEXIBLE_CHECKSUMS_REQ_CRC64", "W");
            break;
          case "SHA1":
            (0, import_core17.setFeature)(context, "FLEXIBLE_CHECKSUMS_REQ_SHA1", "X");
            break;
          case "SHA256":
            (0, import_core17.setFeature)(context, "FLEXIBLE_CHECKSUMS_REQ_SHA256", "Y");
            break;
        }
        const checksumLocationName = getChecksumLocationName(checksumAlgorithm);
        const checksumAlgorithmFn = selectChecksumAlgorithmFunction(checksumAlgorithm, config);
        if (isStreaming(requestBody)) {
          const { getAwsChunkedEncodingStream: getAwsChunkedEncodingStream2, bodyLengthChecker } = config;
          updatedBody = getAwsChunkedEncodingStream2(
            typeof config.requestStreamBufferSize === "number" && config.requestStreamBufferSize >= 8 * 1024 ? (0, import_util_stream3.createBufferedReadable)(requestBody, config.requestStreamBufferSize, context.logger) : requestBody,
            {
              base64Encoder,
              bodyLengthChecker,
              checksumLocationName,
              checksumAlgorithmFn,
              streamHasher
            }
          );
          updatedHeaders = {
            ...headers,
            "content-encoding": headers["content-encoding"] ? `${headers["content-encoding"]},aws-chunked` : "aws-chunked",
            "transfer-encoding": "chunked",
            "x-amz-decoded-content-length": headers["content-length"],
            "x-amz-content-sha256": "STREAMING-UNSIGNED-PAYLOAD-TRAILER",
            "x-amz-trailer": checksumLocationName
          };
          delete updatedHeaders["content-length"];
        } else if (!hasHeader(checksumLocationName, headers)) {
          const rawChecksum = await stringHasher(checksumAlgorithmFn, requestBody);
          updatedHeaders = {
            ...headers,
            [checksumLocationName]: base64Encoder(rawChecksum)
          };
        }
      }
      const result2 = await next({
        ...args,
        request: {
          ...request2,
          headers: updatedHeaders,
          body: updatedBody
        }
      });
      return result2;
    }, "flexibleChecksumsMiddleware");
    var flexibleChecksumsInputMiddlewareOptions = {
      name: "flexibleChecksumsInputMiddleware",
      toMiddleware: "serializerMiddleware",
      relation: "before",
      tags: ["BODY_CHECKSUM"],
      override: true
    };
    var flexibleChecksumsInputMiddleware = /* @__PURE__ */ __name2((config, middlewareConfig) => (next, context) => async (args) => {
      const input = args.input;
      const { requestValidationModeMember } = middlewareConfig;
      const requestChecksumCalculation = await config.requestChecksumCalculation();
      const responseChecksumValidation = await config.responseChecksumValidation();
      switch (requestChecksumCalculation) {
        case RequestChecksumCalculation.WHEN_REQUIRED:
          (0, import_core17.setFeature)(context, "FLEXIBLE_CHECKSUMS_REQ_WHEN_REQUIRED", "a");
          break;
        case RequestChecksumCalculation.WHEN_SUPPORTED:
          (0, import_core17.setFeature)(context, "FLEXIBLE_CHECKSUMS_REQ_WHEN_SUPPORTED", "Z");
          break;
      }
      switch (responseChecksumValidation) {
        case ResponseChecksumValidation.WHEN_REQUIRED:
          (0, import_core17.setFeature)(context, "FLEXIBLE_CHECKSUMS_RES_WHEN_REQUIRED", "c");
          break;
        case ResponseChecksumValidation.WHEN_SUPPORTED:
          (0, import_core17.setFeature)(context, "FLEXIBLE_CHECKSUMS_RES_WHEN_SUPPORTED", "b");
          break;
      }
      if (requestValidationModeMember && !input[requestValidationModeMember]) {
        if (responseChecksumValidation === ResponseChecksumValidation.WHEN_SUPPORTED) {
          input[requestValidationModeMember] = "ENABLED";
        }
      }
      return next(args);
    }, "flexibleChecksumsInputMiddleware");
    var getChecksumAlgorithmListForResponse = /* @__PURE__ */ __name2((responseAlgorithms = []) => {
      const validChecksumAlgorithms = [];
      for (const algorithm of PRIORITY_ORDER_ALGORITHMS) {
        if (!responseAlgorithms.includes(algorithm) || !CLIENT_SUPPORTED_ALGORITHMS.includes(algorithm)) {
          continue;
        }
        validChecksumAlgorithms.push(algorithm);
      }
      return validChecksumAlgorithms;
    }, "getChecksumAlgorithmListForResponse");
    var isChecksumWithPartNumber = /* @__PURE__ */ __name2((checksum) => {
      const lastHyphenIndex = checksum.lastIndexOf("-");
      if (lastHyphenIndex !== -1) {
        const numberPart = checksum.slice(lastHyphenIndex + 1);
        if (!numberPart.startsWith("0")) {
          const number = parseInt(numberPart, 10);
          if (!isNaN(number) && number >= 1 && number <= 1e4) {
            return true;
          }
        }
      }
      return false;
    }, "isChecksumWithPartNumber");
    var getChecksum = /* @__PURE__ */ __name2(async (body, { checksumAlgorithmFn, base64Encoder }) => base64Encoder(await stringHasher(checksumAlgorithmFn, body)), "getChecksum");
    var validateChecksumFromResponse = /* @__PURE__ */ __name2(async (response, { config, responseAlgorithms, logger: logger4 }) => {
      const checksumAlgorithms = getChecksumAlgorithmListForResponse(responseAlgorithms);
      const { body: responseBody, headers: responseHeaders } = response;
      for (const algorithm of checksumAlgorithms) {
        const responseHeader = getChecksumLocationName(algorithm);
        const checksumFromResponse = responseHeaders[responseHeader];
        if (checksumFromResponse) {
          let checksumAlgorithmFn;
          try {
            checksumAlgorithmFn = selectChecksumAlgorithmFunction(algorithm, config);
          } catch (error5) {
            if (algorithm === "CRC64NVME") {
              logger4?.warn(`Skipping ${"CRC64NVME"} checksum validation: ${error5.message}`);
              continue;
            }
            throw error5;
          }
          const { base64Encoder } = config;
          if (isStreaming(responseBody)) {
            response.body = (0, import_util_stream3.createChecksumStream)({
              expectedChecksum: checksumFromResponse,
              checksumSourceLocation: responseHeader,
              checksum: new checksumAlgorithmFn(),
              source: responseBody,
              base64Encoder
            });
            return;
          }
          const checksum = await getChecksum(responseBody, { checksumAlgorithmFn, base64Encoder });
          if (checksum === checksumFromResponse) {
            break;
          }
          throw new Error(
            `Checksum mismatch: expected "${checksum}" but received "${checksumFromResponse}" in response header "${responseHeader}".`
          );
        }
      }
    }, "validateChecksumFromResponse");
    var flexibleChecksumsResponseMiddlewareOptions = {
      name: "flexibleChecksumsResponseMiddleware",
      toMiddleware: "deserializerMiddleware",
      relation: "after",
      tags: ["BODY_CHECKSUM"],
      override: true
    };
    var flexibleChecksumsResponseMiddleware = /* @__PURE__ */ __name2((config, middlewareConfig) => (next, context) => async (args) => {
      if (!import_protocol_http16.HttpRequest.isInstance(args.request)) {
        return next(args);
      }
      const input = args.input;
      const result2 = await next(args);
      const response = result2.response;
      const { requestValidationModeMember, responseAlgorithms } = middlewareConfig;
      if (requestValidationModeMember && input[requestValidationModeMember] === "ENABLED") {
        const { clientName, commandName } = context;
        const isS3WholeObjectMultipartGetResponseChecksum = clientName === "S3Client" && commandName === "GetObjectCommand" && getChecksumAlgorithmListForResponse(responseAlgorithms).every((algorithm) => {
          const responseHeader = getChecksumLocationName(algorithm);
          const checksumFromResponse = response.headers[responseHeader];
          return !checksumFromResponse || isChecksumWithPartNumber(checksumFromResponse);
        });
        if (isS3WholeObjectMultipartGetResponseChecksum) {
          return result2;
        }
        await validateChecksumFromResponse(response, {
          config,
          responseAlgorithms,
          logger: context.logger
        });
      }
      return result2;
    }, "flexibleChecksumsResponseMiddleware");
    var getFlexibleChecksumsPlugin = /* @__PURE__ */ __name2((config, middlewareConfig) => ({
      applyToStack: /* @__PURE__ */ __name2((clientStack) => {
        clientStack.add(flexibleChecksumsMiddleware(config, middlewareConfig), flexibleChecksumsMiddlewareOptions);
        clientStack.addRelativeTo(
          flexibleChecksumsInputMiddleware(config, middlewareConfig),
          flexibleChecksumsInputMiddlewareOptions
        );
        clientStack.addRelativeTo(
          flexibleChecksumsResponseMiddleware(config, middlewareConfig),
          flexibleChecksumsResponseMiddlewareOptions
        );
      }, "applyToStack")
    }), "getFlexibleChecksumsPlugin");
    var import_util_middleware8 = require_dist_cjs6();
    var resolveFlexibleChecksumsConfig = /* @__PURE__ */ __name2((input) => {
      const { requestChecksumCalculation, responseChecksumValidation, requestStreamBufferSize } = input;
      return Object.assign(input, {
        requestChecksumCalculation: (0, import_util_middleware8.normalizeProvider)(requestChecksumCalculation ?? DEFAULT_REQUEST_CHECKSUM_CALCULATION),
        responseChecksumValidation: (0, import_util_middleware8.normalizeProvider)(responseChecksumValidation ?? DEFAULT_RESPONSE_CHECKSUM_VALIDATION),
        requestStreamBufferSize: Number(requestStreamBufferSize ?? 0)
      });
    }, "resolveFlexibleChecksumsConfig");
  }
});

// ../../node_modules/@aws-sdk/util-arn-parser/dist-cjs/index.js
var require_dist_cjs60 = __commonJS({
  "../../node_modules/@aws-sdk/util-arn-parser/dist-cjs/index.js"(exports2, module2) {
    "use strict";
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var index_exports = {};
    __export2(index_exports, {
      build: /* @__PURE__ */ __name(() => build, "build"),
      parse: /* @__PURE__ */ __name(() => parse3, "parse"),
      validate: /* @__PURE__ */ __name(() => validate3, "validate")
    });
    module2.exports = __toCommonJS2(index_exports);
    var validate3 = /* @__PURE__ */ __name2((str) => typeof str === "string" && str.indexOf("arn:") === 0 && str.split(":").length >= 6, "validate");
    var parse3 = /* @__PURE__ */ __name2((arn) => {
      const segments = arn.split(":");
      if (segments.length < 6 || segments[0] !== "arn") throw new Error("Malformed ARN");
      const [
        ,
        //Skip "arn" literal
        partition3,
        service,
        region,
        accountId,
        ...resource
      ] = segments;
      return {
        partition: partition3,
        service,
        region,
        accountId,
        resource: resource.join(":")
      };
    }, "parse");
    var build = /* @__PURE__ */ __name2((arnObject) => {
      const { partition: partition3 = "aws", service, region, accountId, resource } = arnObject;
      if ([service, region, accountId, resource].some((segment) => typeof segment !== "string")) {
        throw new Error("Input ARN object is invalid");
      }
      return `arn:${partition3}:${service}:${region}:${accountId}:${resource}`;
    }, "build");
  }
});

// ../../node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.js
var require_dist_cjs61 = __commonJS({
  "../../node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.js"(exports2, module2) {
    "use strict";
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var index_exports = {};
    __export2(index_exports, {
      NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS: /* @__PURE__ */ __name(() => NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS, "NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS"),
      S3ExpressIdentityCache: /* @__PURE__ */ __name(() => S3ExpressIdentityCache, "S3ExpressIdentityCache"),
      S3ExpressIdentityCacheEntry: /* @__PURE__ */ __name(() => S3ExpressIdentityCacheEntry, "S3ExpressIdentityCacheEntry"),
      S3ExpressIdentityProviderImpl: /* @__PURE__ */ __name(() => S3ExpressIdentityProviderImpl, "S3ExpressIdentityProviderImpl"),
      SignatureV4S3Express: /* @__PURE__ */ __name(() => SignatureV4S3Express, "SignatureV4S3Express"),
      checkContentLengthHeader: /* @__PURE__ */ __name(() => checkContentLengthHeader, "checkContentLengthHeader"),
      checkContentLengthHeaderMiddlewareOptions: /* @__PURE__ */ __name(() => checkContentLengthHeaderMiddlewareOptions, "checkContentLengthHeaderMiddlewareOptions"),
      getCheckContentLengthHeaderPlugin: /* @__PURE__ */ __name(() => getCheckContentLengthHeaderPlugin, "getCheckContentLengthHeaderPlugin"),
      getRegionRedirectMiddlewarePlugin: /* @__PURE__ */ __name(() => getRegionRedirectMiddlewarePlugin, "getRegionRedirectMiddlewarePlugin"),
      getS3ExpiresMiddlewarePlugin: /* @__PURE__ */ __name(() => getS3ExpiresMiddlewarePlugin, "getS3ExpiresMiddlewarePlugin"),
      getS3ExpressHttpSigningPlugin: /* @__PURE__ */ __name(() => getS3ExpressHttpSigningPlugin, "getS3ExpressHttpSigningPlugin"),
      getS3ExpressPlugin: /* @__PURE__ */ __name(() => getS3ExpressPlugin, "getS3ExpressPlugin"),
      getThrow200ExceptionsPlugin: /* @__PURE__ */ __name(() => getThrow200ExceptionsPlugin, "getThrow200ExceptionsPlugin"),
      getValidateBucketNamePlugin: /* @__PURE__ */ __name(() => getValidateBucketNamePlugin, "getValidateBucketNamePlugin"),
      regionRedirectEndpointMiddleware: /* @__PURE__ */ __name(() => regionRedirectEndpointMiddleware, "regionRedirectEndpointMiddleware"),
      regionRedirectEndpointMiddlewareOptions: /* @__PURE__ */ __name(() => regionRedirectEndpointMiddlewareOptions, "regionRedirectEndpointMiddlewareOptions"),
      regionRedirectMiddleware: /* @__PURE__ */ __name(() => regionRedirectMiddleware, "regionRedirectMiddleware"),
      regionRedirectMiddlewareOptions: /* @__PURE__ */ __name(() => regionRedirectMiddlewareOptions, "regionRedirectMiddlewareOptions"),
      resolveS3Config: /* @__PURE__ */ __name(() => resolveS3Config, "resolveS3Config"),
      s3ExpiresMiddleware: /* @__PURE__ */ __name(() => s3ExpiresMiddleware, "s3ExpiresMiddleware"),
      s3ExpiresMiddlewareOptions: /* @__PURE__ */ __name(() => s3ExpiresMiddlewareOptions, "s3ExpiresMiddlewareOptions"),
      s3ExpressHttpSigningMiddleware: /* @__PURE__ */ __name(() => s3ExpressHttpSigningMiddleware, "s3ExpressHttpSigningMiddleware"),
      s3ExpressHttpSigningMiddlewareOptions: /* @__PURE__ */ __name(() => s3ExpressHttpSigningMiddlewareOptions, "s3ExpressHttpSigningMiddlewareOptions"),
      s3ExpressMiddleware: /* @__PURE__ */ __name(() => s3ExpressMiddleware, "s3ExpressMiddleware"),
      s3ExpressMiddlewareOptions: /* @__PURE__ */ __name(() => s3ExpressMiddlewareOptions, "s3ExpressMiddlewareOptions"),
      throw200ExceptionsMiddleware: /* @__PURE__ */ __name(() => throw200ExceptionsMiddleware, "throw200ExceptionsMiddleware"),
      throw200ExceptionsMiddlewareOptions: /* @__PURE__ */ __name(() => throw200ExceptionsMiddlewareOptions, "throw200ExceptionsMiddlewareOptions"),
      validateBucketNameMiddleware: /* @__PURE__ */ __name(() => validateBucketNameMiddleware, "validateBucketNameMiddleware"),
      validateBucketNameMiddlewareOptions: /* @__PURE__ */ __name(() => validateBucketNameMiddlewareOptions, "validateBucketNameMiddlewareOptions")
    });
    module2.exports = __toCommonJS2(index_exports);
    var import_protocol_http16 = require_dist_cjs2();
    var import_smithy_client28 = require_dist_cjs26();
    var CONTENT_LENGTH_HEADER = "content-length";
    var DECODED_CONTENT_LENGTH_HEADER = "x-amz-decoded-content-length";
    function checkContentLengthHeader() {
      return (next, context) => async (args) => {
        const { request: request2 } = args;
        if (import_protocol_http16.HttpRequest.isInstance(request2)) {
          if (!(CONTENT_LENGTH_HEADER in request2.headers) && !(DECODED_CONTENT_LENGTH_HEADER in request2.headers)) {
            const message2 = `Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.`;
            if (typeof context?.logger?.warn === "function" && !(context.logger instanceof import_smithy_client28.NoOpLogger)) {
              context.logger.warn(message2);
            } else {
              console.warn(message2);
            }
          }
        }
        return next({ ...args });
      };
    }
    __name(checkContentLengthHeader, "checkContentLengthHeader");
    __name2(checkContentLengthHeader, "checkContentLengthHeader");
    var checkContentLengthHeaderMiddlewareOptions = {
      step: "finalizeRequest",
      tags: ["CHECK_CONTENT_LENGTH_HEADER"],
      name: "getCheckContentLengthHeaderPlugin",
      override: true
    };
    var getCheckContentLengthHeaderPlugin = /* @__PURE__ */ __name2((unused) => ({
      applyToStack: /* @__PURE__ */ __name2((clientStack) => {
        clientStack.add(checkContentLengthHeader(), checkContentLengthHeaderMiddlewareOptions);
      }, "applyToStack")
    }), "getCheckContentLengthHeaderPlugin");
    var regionRedirectEndpointMiddleware = /* @__PURE__ */ __name2((config) => {
      return (next, context) => async (args) => {
        const originalRegion = await config.region();
        const regionProviderRef = config.region;
        let unlock = /* @__PURE__ */ __name2(() => {
        }, "unlock");
        if (context.__s3RegionRedirect) {
          Object.defineProperty(config, "region", {
            writable: false,
            value: /* @__PURE__ */ __name2(async () => {
              return context.__s3RegionRedirect;
            }, "value")
          });
          unlock = /* @__PURE__ */ __name2(() => Object.defineProperty(config, "region", {
            writable: true,
            value: regionProviderRef
          }), "unlock");
        }
        try {
          const result2 = await next(args);
          if (context.__s3RegionRedirect) {
            unlock();
            const region = await config.region();
            if (originalRegion !== region) {
              throw new Error("Region was not restored following S3 region redirect.");
            }
          }
          return result2;
        } catch (e3) {
          unlock();
          throw e3;
        }
      };
    }, "regionRedirectEndpointMiddleware");
    var regionRedirectEndpointMiddlewareOptions = {
      tags: ["REGION_REDIRECT", "S3"],
      name: "regionRedirectEndpointMiddleware",
      override: true,
      relation: "before",
      toMiddleware: "endpointV2Middleware"
    };
    function regionRedirectMiddleware(clientConfig) {
      return (next, context) => async (args) => {
        try {
          return await next(args);
        } catch (err) {
          if (clientConfig.followRegionRedirects) {
            if (err?.$metadata?.httpStatusCode === 301 || // err.name === "PermanentRedirect" && --> removing the error name check, as that allows for HEAD operations (which have the 301 status code, but not the same error name) to be covered for region redirection as well
            err?.$metadata?.httpStatusCode === 400 && err?.name === "IllegalLocationConstraintException") {
              try {
                const actualRegion = err.$response.headers["x-amz-bucket-region"];
                context.logger?.debug(`Redirecting from ${await clientConfig.region()} to ${actualRegion}`);
                context.__s3RegionRedirect = actualRegion;
              } catch (e3) {
                throw new Error("Region redirect failed: " + e3);
              }
              return next(args);
            }
          }
          throw err;
        }
      };
    }
    __name(regionRedirectMiddleware, "regionRedirectMiddleware");
    __name2(regionRedirectMiddleware, "regionRedirectMiddleware");
    var regionRedirectMiddlewareOptions = {
      step: "initialize",
      tags: ["REGION_REDIRECT", "S3"],
      name: "regionRedirectMiddleware",
      override: true
    };
    var getRegionRedirectMiddlewarePlugin = /* @__PURE__ */ __name2((clientConfig) => ({
      applyToStack: /* @__PURE__ */ __name2((clientStack) => {
        clientStack.add(regionRedirectMiddleware(clientConfig), regionRedirectMiddlewareOptions);
        clientStack.addRelativeTo(regionRedirectEndpointMiddleware(clientConfig), regionRedirectEndpointMiddlewareOptions);
      }, "applyToStack")
    }), "getRegionRedirectMiddlewarePlugin");
    var s3ExpiresMiddleware = /* @__PURE__ */ __name2((config) => {
      return (next, context) => async (args) => {
        const result2 = await next(args);
        const { response } = result2;
        if (import_protocol_http16.HttpResponse.isInstance(response)) {
          if (response.headers.expires) {
            response.headers.expiresstring = response.headers.expires;
            try {
              (0, import_smithy_client28.parseRfc7231DateTime)(response.headers.expires);
            } catch (e3) {
              context.logger?.warn(
                `AWS SDK Warning for ${context.clientName}::${context.commandName} response parsing (${response.headers.expires}): ${e3}`
              );
              delete response.headers.expires;
            }
          }
        }
        return result2;
      };
    }, "s3ExpiresMiddleware");
    var s3ExpiresMiddlewareOptions = {
      tags: ["S3"],
      name: "s3ExpiresMiddleware",
      override: true,
      relation: "after",
      toMiddleware: "deserializerMiddleware"
    };
    var getS3ExpiresMiddlewarePlugin = /* @__PURE__ */ __name2((clientConfig) => ({
      applyToStack: /* @__PURE__ */ __name2((clientStack) => {
        clientStack.addRelativeTo(s3ExpiresMiddleware(clientConfig), s3ExpiresMiddlewareOptions);
      }, "applyToStack")
    }), "getS3ExpiresMiddlewarePlugin");
    var S3ExpressIdentityCache = class _S3ExpressIdentityCache {
      static {
        __name(this, "_S3ExpressIdentityCache");
      }
      constructor(data3 = {}) {
        this.data = data3;
      }
      static {
        __name2(this, "S3ExpressIdentityCache");
      }
      lastPurgeTime = Date.now();
      static EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS = 3e4;
      get(key) {
        const entry = this.data[key];
        if (!entry) {
          return;
        }
        return entry;
      }
      set(key, entry) {
        this.data[key] = entry;
        return entry;
      }
      delete(key) {
        delete this.data[key];
      }
      async purgeExpired() {
        const now = Date.now();
        if (this.lastPurgeTime + _S3ExpressIdentityCache.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS > now) {
          return;
        }
        for (const key in this.data) {
          const entry = this.data[key];
          if (!entry.isRefreshing) {
            const credential = await entry.identity;
            if (credential.expiration) {
              if (credential.expiration.getTime() < now) {
                delete this.data[key];
              }
            }
          }
        }
      }
    };
    var S3ExpressIdentityCacheEntry = class {
      static {
        __name(this, "S3ExpressIdentityCacheEntry");
      }
      /**
       * @param identity - stored identity.
       * @param accessed - timestamp of last access in epoch ms.
       * @param isRefreshing - this key is currently in the process of being refreshed (background).
       */
      constructor(_identity, isRefreshing = false, accessed = Date.now()) {
        this._identity = _identity;
        this.isRefreshing = isRefreshing;
        this.accessed = accessed;
      }
      static {
        __name2(this, "S3ExpressIdentityCacheEntry");
      }
      get identity() {
        this.accessed = Date.now();
        return this._identity;
      }
    };
    var S3ExpressIdentityProviderImpl = class _S3ExpressIdentityProviderImpl {
      static {
        __name(this, "_S3ExpressIdentityProviderImpl");
      }
      constructor(createSessionFn, cache3 = new S3ExpressIdentityCache()) {
        this.createSessionFn = createSessionFn;
        this.cache = cache3;
      }
      static {
        __name2(this, "S3ExpressIdentityProviderImpl");
      }
      static REFRESH_WINDOW_MS = 6e4;
      async getS3ExpressIdentity(awsIdentity, identityProperties) {
        const key = identityProperties.Bucket;
        const { cache: cache3 } = this;
        const entry = cache3.get(key);
        if (entry) {
          return entry.identity.then((identity) => {
            const isExpired = (identity.expiration?.getTime() ?? 0) < Date.now();
            if (isExpired) {
              return cache3.set(key, new S3ExpressIdentityCacheEntry(this.getIdentity(key))).identity;
            }
            const isExpiringSoon = (identity.expiration?.getTime() ?? 0) < Date.now() + _S3ExpressIdentityProviderImpl.REFRESH_WINDOW_MS;
            if (isExpiringSoon && !entry.isRefreshing) {
              entry.isRefreshing = true;
              this.getIdentity(key).then((id) => {
                cache3.set(key, new S3ExpressIdentityCacheEntry(Promise.resolve(id)));
              });
            }
            return identity;
          });
        }
        return cache3.set(key, new S3ExpressIdentityCacheEntry(this.getIdentity(key))).identity;
      }
      async getIdentity(key) {
        await this.cache.purgeExpired().catch((error5) => {
          console.warn("Error while clearing expired entries in S3ExpressIdentityCache: \n" + error5);
        });
        const session = await this.createSessionFn(key);
        if (!session.Credentials?.AccessKeyId || !session.Credentials?.SecretAccessKey) {
          throw new Error("s3#createSession response credential missing AccessKeyId or SecretAccessKey.");
        }
        const identity = {
          accessKeyId: session.Credentials.AccessKeyId,
          secretAccessKey: session.Credentials.SecretAccessKey,
          sessionToken: session.Credentials.SessionToken,
          expiration: session.Credentials.Expiration ? new Date(session.Credentials.Expiration) : void 0
        };
        return identity;
      }
    };
    var import_signature_v42 = require_dist_cjs23();
    var import_util_config_provider = require_dist_cjs29();
    var S3_EXPRESS_BUCKET_TYPE = "Directory";
    var S3_EXPRESS_BACKEND = "S3Express";
    var S3_EXPRESS_AUTH_SCHEME = "sigv4-s3express";
    var SESSION_TOKEN_QUERY_PARAM = "X-Amz-S3session-Token";
    var SESSION_TOKEN_HEADER = SESSION_TOKEN_QUERY_PARAM.toLowerCase();
    var NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_ENV_NAME = "AWS_S3_DISABLE_EXPRESS_SESSION_AUTH";
    var NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_INI_NAME = "s3_disable_express_session_auth";
    var NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS = {
      environmentVariableSelector: /* @__PURE__ */ __name2((env2) => (0, import_util_config_provider.booleanSelector)(env2, NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_ENV_NAME, import_util_config_provider.SelectorType.ENV), "environmentVariableSelector"),
      configFileSelector: /* @__PURE__ */ __name2((profile) => (0, import_util_config_provider.booleanSelector)(profile, NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_INI_NAME, import_util_config_provider.SelectorType.CONFIG), "configFileSelector"),
      default: false
    };
    var SignatureV4S3Express = class extends import_signature_v42.SignatureV4 {
      static {
        __name(this, "SignatureV4S3Express");
      }
      static {
        __name2(this, "SignatureV4S3Express");
      }
      /**
       * Signs with alternate provided credentials instead of those provided in the
       * constructor.
       *
       * Additionally omits the credential sessionToken and assigns it to the
       * alternate header field for S3 Express.
       */
      async signWithCredentials(requestToSign, credentials, options) {
        const credentialsWithoutSessionToken = getCredentialsWithoutSessionToken(credentials);
        requestToSign.headers[SESSION_TOKEN_HEADER] = credentials.sessionToken;
        const privateAccess = this;
        setSingleOverride(privateAccess, credentialsWithoutSessionToken);
        return privateAccess.signRequest(requestToSign, options ?? {});
      }
      /**
       * Similar to {@link SignatureV4S3Express#signWithCredentials} but for presigning.
       */
      async presignWithCredentials(requestToSign, credentials, options) {
        const credentialsWithoutSessionToken = getCredentialsWithoutSessionToken(credentials);
        delete requestToSign.headers[SESSION_TOKEN_HEADER];
        requestToSign.headers[SESSION_TOKEN_QUERY_PARAM] = credentials.sessionToken;
        requestToSign.query = requestToSign.query ?? {};
        requestToSign.query[SESSION_TOKEN_QUERY_PARAM] = credentials.sessionToken;
        const privateAccess = this;
        setSingleOverride(privateAccess, credentialsWithoutSessionToken);
        return this.presign(requestToSign, options);
      }
    };
    function getCredentialsWithoutSessionToken(credentials) {
      const credentialsWithoutSessionToken = {
        accessKeyId: credentials.accessKeyId,
        secretAccessKey: credentials.secretAccessKey,
        expiration: credentials.expiration
      };
      return credentialsWithoutSessionToken;
    }
    __name(getCredentialsWithoutSessionToken, "getCredentialsWithoutSessionToken");
    __name2(getCredentialsWithoutSessionToken, "getCredentialsWithoutSessionToken");
    function setSingleOverride(privateAccess, credentialsWithoutSessionToken) {
      const id = setTimeout(() => {
        throw new Error("SignatureV4S3Express credential override was created but not called.");
      }, 10);
      const currentCredentialProvider = privateAccess.credentialProvider;
      const overrideCredentialsProviderOnce = /* @__PURE__ */ __name2(() => {
        clearTimeout(id);
        privateAccess.credentialProvider = currentCredentialProvider;
        return Promise.resolve(credentialsWithoutSessionToken);
      }, "overrideCredentialsProviderOnce");
      privateAccess.credentialProvider = overrideCredentialsProviderOnce;
    }
    __name(setSingleOverride, "setSingleOverride");
    __name2(setSingleOverride, "setSingleOverride");
    var import_core17 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var s3ExpressMiddleware = /* @__PURE__ */ __name2((options) => {
      return (next, context) => async (args) => {
        if (context.endpointV2) {
          const endpoint = context.endpointV2;
          const isS3ExpressAuth = endpoint.properties?.authSchemes?.[0]?.name === S3_EXPRESS_AUTH_SCHEME;
          const isS3ExpressBucket = endpoint.properties?.backend === S3_EXPRESS_BACKEND || endpoint.properties?.bucketType === S3_EXPRESS_BUCKET_TYPE;
          if (isS3ExpressBucket) {
            (0, import_core17.setFeature)(context, "S3_EXPRESS_BUCKET", "J");
            context.isS3ExpressBucket = true;
          }
          if (isS3ExpressAuth) {
            const requestBucket = args.input.Bucket;
            if (requestBucket) {
              const s3ExpressIdentity = await options.s3ExpressIdentityProvider.getS3ExpressIdentity(
                await options.credentials(),
                {
                  Bucket: requestBucket
                }
              );
              context.s3ExpressIdentity = s3ExpressIdentity;
              if (import_protocol_http16.HttpRequest.isInstance(args.request) && s3ExpressIdentity.sessionToken) {
                args.request.headers[SESSION_TOKEN_HEADER] = s3ExpressIdentity.sessionToken;
              }
            }
          }
        }
        return next(args);
      };
    }, "s3ExpressMiddleware");
    var s3ExpressMiddlewareOptions = {
      name: "s3ExpressMiddleware",
      step: "build",
      tags: ["S3", "S3_EXPRESS"],
      override: true
    };
    var getS3ExpressPlugin = /* @__PURE__ */ __name2((options) => ({
      applyToStack: /* @__PURE__ */ __name2((clientStack) => {
        clientStack.add(s3ExpressMiddleware(options), s3ExpressMiddlewareOptions);
      }, "applyToStack")
    }), "getS3ExpressPlugin");
    var import_core22 = (init_dist_es(), __toCommonJS(dist_es_exports));
    var import_util_middleware8 = require_dist_cjs6();
    var signS3Express = /* @__PURE__ */ __name2(async (s3ExpressIdentity, signingOptions, request2, sigV4MultiRegionSigner) => {
      const signedRequest = await sigV4MultiRegionSigner.signWithCredentials(request2, s3ExpressIdentity, {});
      if (signedRequest.headers["X-Amz-Security-Token"] || signedRequest.headers["x-amz-security-token"]) {
        throw new Error("X-Amz-Security-Token must not be set for s3-express requests.");
      }
      return signedRequest;
    }, "signS3Express");
    var defaultErrorHandler2 = /* @__PURE__ */ __name2((signingProperties) => (error5) => {
      throw error5;
    }, "defaultErrorHandler");
    var defaultSuccessHandler2 = /* @__PURE__ */ __name2((httpResponse, signingProperties) => {
    }, "defaultSuccessHandler");
    var s3ExpressHttpSigningMiddlewareOptions = import_core22.httpSigningMiddlewareOptions;
    var s3ExpressHttpSigningMiddleware = /* @__PURE__ */ __name2((config) => (next, context) => async (args) => {
      if (!import_protocol_http16.HttpRequest.isInstance(args.request)) {
        return next(args);
      }
      const smithyContext = (0, import_util_middleware8.getSmithyContext)(context);
      const scheme = smithyContext.selectedHttpAuthScheme;
      if (!scheme) {
        throw new Error(`No HttpAuthScheme was selected: unable to sign request`);
      }
      const {
        httpAuthOption: { signingProperties = {} },
        identity,
        signer
      } = scheme;
      let request2;
      if (context.s3ExpressIdentity) {
        request2 = await signS3Express(
          context.s3ExpressIdentity,
          signingProperties,
          args.request,
          await config.signer()
        );
      } else {
        request2 = await signer.sign(args.request, identity, signingProperties);
      }
      const output = await next({
        ...args,
        request: request2
      }).catch((signer.errorHandler || defaultErrorHandler2)(signingProperties));
      (signer.successHandler || defaultSuccessHandler2)(output.response, signingProperties);
      return output;
    }, "s3ExpressHttpSigningMiddleware");
    var getS3ExpressHttpSigningPlugin = /* @__PURE__ */ __name2((config) => ({
      applyToStack: /* @__PURE__ */ __name2((clientStack) => {
        clientStack.addRelativeTo(
          s3ExpressHttpSigningMiddleware(config),
          import_core22.httpSigningMiddlewareOptions
        );
      }, "applyToStack")
    }), "getS3ExpressHttpSigningPlugin");
    var resolveS3Config = /* @__PURE__ */ __name2((input, {
      session
    }) => {
      const [s3ClientProvider, CreateSessionCommandCtor] = session;
      const {
        forcePathStyle,
        useAccelerateEndpoint,
        disableMultiregionAccessPoints,
        followRegionRedirects,
        s3ExpressIdentityProvider,
        bucketEndpoint
      } = input;
      return Object.assign(input, {
        forcePathStyle: forcePathStyle ?? false,
        useAccelerateEndpoint: useAccelerateEndpoint ?? false,
        disableMultiregionAccessPoints: disableMultiregionAccessPoints ?? false,
        followRegionRedirects: followRegionRedirects ?? false,
        s3ExpressIdentityProvider: s3ExpressIdentityProvider ?? new S3ExpressIdentityProviderImpl(
          async (key) => s3ClientProvider().send(
            new CreateSessionCommandCtor({
              Bucket: key
            })
          )
        ),
        bucketEndpoint: bucketEndpoint ?? false
      });
    }, "resolveS3Config");
    var import_util_stream3 = require_dist_cjs17();
    var THROW_IF_EMPTY_BODY = {
      CopyObjectCommand: true,
      UploadPartCopyCommand: true,
      CompleteMultipartUploadCommand: true
    };
    var MAX_BYTES_TO_INSPECT = 3e3;
    var throw200ExceptionsMiddleware = /* @__PURE__ */ __name2((config) => (next, context) => async (args) => {
      const result2 = await next(args);
      const { response } = result2;
      if (!import_protocol_http16.HttpResponse.isInstance(response)) {
        return result2;
      }
      const { statusCode, body: sourceBody } = response;
      if (statusCode < 200 || statusCode >= 300) {
        return result2;
      }
      const isSplittableStream = typeof sourceBody?.stream === "function" || typeof sourceBody?.pipe === "function" || typeof sourceBody?.tee === "function";
      if (!isSplittableStream) {
        return result2;
      }
      let bodyCopy = sourceBody;
      let body = sourceBody;
      if (sourceBody && typeof sourceBody === "object" && !(sourceBody instanceof Uint8Array)) {
        [bodyCopy, body] = await (0, import_util_stream3.splitStream)(sourceBody);
      }
      response.body = body;
      const bodyBytes = await collectBody6(bodyCopy, {
        streamCollector: /* @__PURE__ */ __name2(async (stream3) => {
          return (0, import_util_stream3.headStream)(stream3, MAX_BYTES_TO_INSPECT);
        }, "streamCollector")
      });
      if (typeof bodyCopy?.destroy === "function") {
        bodyCopy.destroy();
      }
      const bodyStringTail = config.utf8Encoder(bodyBytes.subarray(bodyBytes.length - 16));
      if (bodyBytes.length === 0 && THROW_IF_EMPTY_BODY[context.commandName]) {
        const err = new Error("S3 aborted request");
        err.name = "InternalError";
        throw err;
      }
      if (bodyStringTail && bodyStringTail.endsWith("</Error>")) {
        response.statusCode = 400;
      }
      return result2;
    }, "throw200ExceptionsMiddleware");
    var collectBody6 = /* @__PURE__ */ __name2((streamBody = new Uint8Array(), context) => {
      if (streamBody instanceof Uint8Array) {
        return Promise.resolve(streamBody);
      }
      return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
    }, "collectBody");
    var throw200ExceptionsMiddlewareOptions = {
      relation: "after",
      toMiddleware: "deserializerMiddleware",
      tags: ["THROW_200_EXCEPTIONS", "S3"],
      name: "throw200ExceptionsMiddleware",
      override: true
    };
    var getThrow200ExceptionsPlugin = /* @__PURE__ */ __name2((config) => ({
      applyToStack: /* @__PURE__ */ __name2((clientStack) => {
        clientStack.addRelativeTo(throw200ExceptionsMiddleware(config), throw200ExceptionsMiddlewareOptions);
      }, "applyToStack")
    }), "getThrow200ExceptionsPlugin");
    var import_util_arn_parser = require_dist_cjs60();
    function bucketEndpointMiddleware(options) {
      return (next, context) => async (args) => {
        if (options.bucketEndpoint) {
          const endpoint = context.endpointV2;
          if (endpoint) {
            const bucket = args.input.Bucket;
            if (typeof bucket === "string") {
              try {
                const bucketEndpointUrl = new URL(bucket);
                context.endpointV2 = {
                  ...endpoint,
                  url: bucketEndpointUrl
                };
              } catch (e3) {
                const warning2 = `@aws-sdk/middleware-sdk-s3: bucketEndpoint=true was set but Bucket=${bucket} could not be parsed as URL.`;
                if (context.logger?.constructor?.name === "NoOpLogger") {
                  console.warn(warning2);
                } else {
                  context.logger?.warn?.(warning2);
                }
                throw e3;
              }
            }
          }
        }
        return next(args);
      };
    }
    __name(bucketEndpointMiddleware, "bucketEndpointMiddleware");
    __name2(bucketEndpointMiddleware, "bucketEndpointMiddleware");
    var bucketEndpointMiddlewareOptions = {
      name: "bucketEndpointMiddleware",
      override: true,
      relation: "after",
      toMiddleware: "endpointV2Middleware"
    };
    function validateBucketNameMiddleware({ bucketEndpoint }) {
      return (next) => async (args) => {
        const {
          input: { Bucket }
        } = args;
        if (!bucketEndpoint && typeof Bucket === "string" && !(0, import_util_arn_parser.validate)(Bucket) && Bucket.indexOf("/") >= 0) {
          const err = new Error(`Bucket name shouldn't contain '/', received '${Bucket}'`);
          err.name = "InvalidBucketName";
          throw err;
        }
        return next({ ...args });
      };
    }
    __name(validateBucketNameMiddleware, "validateBucketNameMiddleware");
    __name2(validateBucketNameMiddleware, "validateBucketNameMiddleware");
    var validateBucketNameMiddlewareOptions = {
      step: "initialize",
      tags: ["VALIDATE_BUCKET_NAME"],
      name: "validateBucketNameMiddleware",
      override: true
    };
    var getValidateBucketNamePlugin = /* @__PURE__ */ __name2((options) => ({
      applyToStack: /* @__PURE__ */ __name2((clientStack) => {
        clientStack.add(validateBucketNameMiddleware(options), validateBucketNameMiddlewareOptions);
        clientStack.addRelativeTo(bucketEndpointMiddleware(options), bucketEndpointMiddlewareOptions);
      }, "applyToStack")
    }), "getValidateBucketNamePlugin");
  }
});

// ../../node_modules/@smithy/eventstream-serde-config-resolver/dist-cjs/index.js
var require_dist_cjs62 = __commonJS({
  "../../node_modules/@smithy/eventstream-serde-config-resolver/dist-cjs/index.js"(exports2, module2) {
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var src_exports = {};
    __export2(src_exports, {
      resolveEventStreamSerdeConfig: /* @__PURE__ */ __name(() => resolveEventStreamSerdeConfig, "resolveEventStreamSerdeConfig")
    });
    module2.exports = __toCommonJS2(src_exports);
    var resolveEventStreamSerdeConfig = /* @__PURE__ */ __name2((input) => Object.assign(input, {
      eventStreamMarshaller: input.eventStreamSerdeProvider(input)
    }), "resolveEventStreamSerdeConfig");
  }
});

// ../../node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js
var require_dist_cjs63 = __commonJS({
  "../../node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js"(exports2, module2) {
    "use strict";
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var index_exports = {};
    __export2(index_exports, {
      SignatureV4MultiRegion: /* @__PURE__ */ __name(() => SignatureV4MultiRegion, "SignatureV4MultiRegion"),
      signatureV4CrtContainer: /* @__PURE__ */ __name(() => signatureV4CrtContainer, "signatureV4CrtContainer")
    });
    module2.exports = __toCommonJS2(index_exports);
    var import_middleware_sdk_s3 = require_dist_cjs61();
    var import_signature_v42 = require_dist_cjs23();
    var signatureV4CrtContainer = {
      CrtSignerV4: null
    };
    var SignatureV4MultiRegion = class {
      static {
        __name(this, "SignatureV4MultiRegion");
      }
      static {
        __name2(this, "SignatureV4MultiRegion");
      }
      sigv4aSigner;
      sigv4Signer;
      signerOptions;
      static sigv4aDependency() {
        if (typeof signatureV4CrtContainer.CrtSignerV4 === "function") {
          return "crt";
        } else if (typeof import_signature_v42.signatureV4aContainer.SignatureV4a === "function") {
          return "js";
        }
        return "none";
      }
      constructor(options) {
        this.sigv4Signer = new import_middleware_sdk_s3.SignatureV4S3Express(options);
        this.signerOptions = options;
      }
      async sign(requestToSign, options = {}) {
        if (options.signingRegion === "*") {
          return this.getSigv4aSigner().sign(requestToSign, options);
        }
        return this.sigv4Signer.sign(requestToSign, options);
      }
      /**
       * Sign with alternate credentials to the ones provided in the constructor.
       * Note: This is only supported for SigV4a when using the CRT implementation.
       */
      async signWithCredentials(requestToSign, credentials, options = {}) {
        if (options.signingRegion === "*") {
          const signer = this.getSigv4aSigner();
          const CrtSignerV4 = signatureV4CrtContainer.CrtSignerV4;
          if (CrtSignerV4 && signer instanceof CrtSignerV4) {
            return signer.signWithCredentials(requestToSign, credentials, options);
          } else {
            throw new Error(
              `signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`
            );
          }
        }
        return this.sigv4Signer.signWithCredentials(requestToSign, credentials, options);
      }
      /**
       * Presign a request.
       * Note: This is only supported for SigV4a when using the CRT implementation.
       */
      async presign(originalRequest, options = {}) {
        if (options.signingRegion === "*") {
          const signer = this.getSigv4aSigner();
          const CrtSignerV4 = signatureV4CrtContainer.CrtSignerV4;
          if (CrtSignerV4 && signer instanceof CrtSignerV4) {
            return signer.presign(originalRequest, options);
          } else {
            throw new Error(
              `presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`
            );
          }
        }
        return this.sigv4Signer.presign(originalRequest, options);
      }
      async presignWithCredentials(originalRequest, credentials, options = {}) {
        if (options.signingRegion === "*") {
          throw new Error("Method presignWithCredentials is not supported for [signingRegion=*].");
        }
        return this.sigv4Signer.presignWithCredentials(originalRequest, credentials, options);
      }
      getSigv4aSigner() {
        if (!this.sigv4aSigner) {
          const CrtSignerV4 = signatureV4CrtContainer.CrtSignerV4;
          const JsSigV4aSigner = import_signature_v42.signatureV4aContainer.SignatureV4a;
          if (this.signerOptions.runtime === "node") {
            if (!CrtSignerV4 && !JsSigV4aSigner) {
              throw new Error(
                "Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt"
              );
            }
            if (CrtSignerV4 && typeof CrtSignerV4 === "function") {
              this.sigv4aSigner = new CrtSignerV4({
                ...this.signerOptions,
                signingAlgorithm: 1
              });
            } else if (JsSigV4aSigner && typeof JsSigV4aSigner === "function") {
              this.sigv4aSigner = new JsSigV4aSigner({
                ...this.signerOptions
              });
            } else {
              throw new Error(
                "Available SigV4a implementation is not a valid constructor. Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a.For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt"
              );
            }
          } else {
            if (!JsSigV4aSigner || typeof JsSigV4aSigner !== "function") {
              throw new Error(
                "JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a"
              );
            }
            this.sigv4aSigner = new JsSigV4aSigner({
              ...this.signerOptions
            });
          }
        }
        return this.sigv4aSigner;
      }
    };
  }
});

// ../../node_modules/@aws-sdk/client-s3/dist-cjs/endpoint/ruleset.js
var require_ruleset3 = __commonJS({
  "../../node_modules/@aws-sdk/client-s3/dist-cjs/endpoint/ruleset.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.ruleSet = void 0;
    var cp = "required";
    var cq = "type";
    var cr = "rules";
    var cs = "conditions";
    var ct = "fn";
    var cu = "argv";
    var cv = "ref";
    var cw = "assign";
    var cx = "url";
    var cy = "properties";
    var cz = "backend";
    var cA = "authSchemes";
    var cB = "disableDoubleEncoding";
    var cC = "signingName";
    var cD = "signingRegion";
    var cE = "headers";
    var cF = "signingRegionSet";
    var a3 = 6;
    var b3 = false;
    var c3 = true;
    var d3 = "isSet";
    var e3 = "booleanEquals";
    var f3 = "error";
    var g3 = "aws.partition";
    var h3 = "stringEquals";
    var i3 = "getAttr";
    var j3 = "name";
    var k3 = "substring";
    var l3 = "bucketSuffix";
    var m3 = "parseURL";
    var n3 = "endpoint";
    var o3 = "tree";
    var p3 = "aws.isVirtualHostableS3Bucket";
    var q3 = "{url#scheme}://{Bucket}.{url#authority}{url#path}";
    var r3 = "not";
    var s3 = "accessPointSuffix";
    var t3 = "{url#scheme}://{url#authority}{url#path}";
    var u3 = "hardwareType";
    var v6 = "regionPrefix";
    var w3 = "bucketAliasSuffix";
    var x3 = "outpostId";
    var y2 = "isValidHostLabel";
    var z2 = "sigv4a";
    var A2 = "s3-outposts";
    var B2 = "s3";
    var C2 = "{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}";
    var D2 = "https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}";
    var E2 = "https://{Bucket}.s3.{partitionResult#dnsSuffix}";
    var F2 = "aws.parseArn";
    var G2 = "bucketArn";
    var H2 = "arnType";
    var I2 = "";
    var J2 = "s3-object-lambda";
    var K = "accesspoint";
    var L = "accessPointName";
    var M = "{url#scheme}://{accessPointName}-{bucketArn#accountId}.{url#authority}{url#path}";
    var N = "mrapPartition";
    var O = "outpostType";
    var P = "arnPrefix";
    var Q = "{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}";
    var R = "https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}";
    var S = "https://s3.{partitionResult#dnsSuffix}";
    var T = { [cp]: false, [cq]: "String" };
    var U = { [cp]: true, "default": false, [cq]: "Boolean" };
    var V = { [cp]: false, [cq]: "Boolean" };
    var W = { [ct]: e3, [cu]: [{ [cv]: "Accelerate" }, true] };
    var X = { [ct]: e3, [cu]: [{ [cv]: "UseFIPS" }, true] };
    var Y = { [ct]: e3, [cu]: [{ [cv]: "UseDualStack" }, true] };
    var Z = { [ct]: d3, [cu]: [{ [cv]: "Endpoint" }] };
    var aa = { [ct]: g3, [cu]: [{ [cv]: "Region" }], [cw]: "partitionResult" };
    var ab = { [ct]: h3, [cu]: [{ [ct]: i3, [cu]: [{ [cv]: "partitionResult" }, j3] }, "aws-cn"] };
    var ac = { [ct]: d3, [cu]: [{ [cv]: "Bucket" }] };
    var ad = { [cv]: "Bucket" };
    var ae = { [cs]: [Y], [f3]: "S3Express does not support Dual-stack.", [cq]: f3 };
    var af = { [cs]: [W], [f3]: "S3Express does not support S3 Accelerate.", [cq]: f3 };
    var ag = { [cs]: [Z, { [ct]: m3, [cu]: [{ [cv]: "Endpoint" }], [cw]: "url" }], [cr]: [{ [cs]: [{ [ct]: d3, [cu]: [{ [cv]: "DisableS3ExpressSessionAuth" }] }, { [ct]: e3, [cu]: [{ [cv]: "DisableS3ExpressSessionAuth" }, true] }], [cr]: [{ [cs]: [{ [ct]: e3, [cu]: [{ [ct]: i3, [cu]: [{ [cv]: "url" }, "isIp"] }, true] }], [cr]: [{ [cs]: [{ [ct]: "uriEncode", [cu]: [ad], [cw]: "uri_encoded_bucket" }], [cr]: [{ [n3]: { [cx]: "{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}", [cy]: { [cz]: "S3Express", [cA]: [{ [cB]: true, [j3]: "sigv4", [cC]: "s3express", [cD]: "{Region}" }] }, [cE]: {} }, [cq]: n3 }], [cq]: o3 }], [cq]: o3 }, { [cs]: [{ [ct]: p3, [cu]: [ad, false] }], [cr]: [{ [n3]: { [cx]: q3, [cy]: { [cz]: "S3Express", [cA]: [{ [cB]: true, [j3]: "sigv4", [cC]: "s3express", [cD]: "{Region}" }] }, [cE]: {} }, [cq]: n3 }], [cq]: o3 }, { [f3]: "S3Express bucket name is not a valid virtual hostable name.", [cq]: f3 }], [cq]: o3 }, { [cs]: [{ [ct]: e3, [cu]: [{ [ct]: i3, [cu]: [{ [cv]: "url" }, "isIp"] }, true] }], [cr]: [{ [cs]: [{ [ct]: "uriEncode", [cu]: [ad], [cw]: "uri_encoded_bucket" }], [cr]: [{ [n3]: { [cx]: "{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}", [cy]: { [cz]: "S3Express", [cA]: [{ [cB]: true, [j3]: "sigv4-s3express", [cC]: "s3express", [cD]: "{Region}" }] }, [cE]: {} }, [cq]: n3 }], [cq]: o3 }], [cq]: o3 }, { [cs]: [{ [ct]: p3, [cu]: [ad, false] }], [cr]: [{ [n3]: { [cx]: q3, [cy]: { [cz]: "S3Express", [cA]: [{ [cB]: true, [j3]: "sigv4-s3express", [cC]: "s3express", [cD]: "{Region}" }] }, [cE]: {} }, [cq]: n3 }], [cq]: o3 }, { [f3]: "S3Express bucket name is not a valid virtual hostable name.", [cq]: f3 }], [cq]: o3 };
    var ah = { [ct]: m3, [cu]: [{ [cv]: "Endpoint" }], [cw]: "url" };
    var ai = { [ct]: e3, [cu]: [{ [ct]: i3, [cu]: [{ [cv]: "url" }, "isIp"] }, true] };
    var aj = { [cv]: "url" };
    var ak = { [ct]: "uriEncode", [cu]: [ad], [cw]: "uri_encoded_bucket" };
    var al = { [cz]: "S3Express", [cA]: [{ [cB]: true, [j3]: "sigv4", [cC]: "s3express", [cD]: "{Region}" }] };
    var am = {};
    var an = { [ct]: p3, [cu]: [ad, false] };
    var ao = { [f3]: "S3Express bucket name is not a valid virtual hostable name.", [cq]: f3 };
    var ap = { [ct]: d3, [cu]: [{ [cv]: "UseS3ExpressControlEndpoint" }] };
    var aq = { [ct]: e3, [cu]: [{ [cv]: "UseS3ExpressControlEndpoint" }, true] };
    var ar = { [ct]: r3, [cu]: [Z] };
    var as = { [f3]: "Unrecognized S3Express bucket name format.", [cq]: f3 };
    var at = { [ct]: r3, [cu]: [ac] };
    var au = { [cv]: u3 };
    var av = { [cs]: [ar], [f3]: "Expected a endpoint to be specified but no endpoint was found", [cq]: f3 };
    var aw = { [cA]: [{ [cB]: true, [j3]: z2, [cC]: A2, [cF]: ["*"] }, { [cB]: true, [j3]: "sigv4", [cC]: A2, [cD]: "{Region}" }] };
    var ax = { [ct]: e3, [cu]: [{ [cv]: "ForcePathStyle" }, false] };
    var ay = { [cv]: "ForcePathStyle" };
    var az = { [ct]: e3, [cu]: [{ [cv]: "Accelerate" }, false] };
    var aA = { [ct]: h3, [cu]: [{ [cv]: "Region" }, "aws-global"] };
    var aB = { [cA]: [{ [cB]: true, [j3]: "sigv4", [cC]: B2, [cD]: "us-east-1" }] };
    var aC = { [ct]: r3, [cu]: [aA] };
    var aD = { [ct]: e3, [cu]: [{ [cv]: "UseGlobalEndpoint" }, true] };
    var aE = { [cx]: "https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}", [cy]: { [cA]: [{ [cB]: true, [j3]: "sigv4", [cC]: B2, [cD]: "{Region}" }] }, [cE]: {} };
    var aF = { [cA]: [{ [cB]: true, [j3]: "sigv4", [cC]: B2, [cD]: "{Region}" }] };
    var aG = { [ct]: e3, [cu]: [{ [cv]: "UseGlobalEndpoint" }, false] };
    var aH = { [ct]: e3, [cu]: [{ [cv]: "UseDualStack" }, false] };
    var aI = { [cx]: "https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}", [cy]: aF, [cE]: {} };
    var aJ = { [ct]: e3, [cu]: [{ [cv]: "UseFIPS" }, false] };
    var aK = { [cx]: "https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}", [cy]: aF, [cE]: {} };
    var aL = { [cx]: "https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}", [cy]: aF, [cE]: {} };
    var aM = { [ct]: e3, [cu]: [{ [ct]: i3, [cu]: [aj, "isIp"] }, false] };
    var aN = { [cx]: C2, [cy]: aF, [cE]: {} };
    var aO = { [cx]: q3, [cy]: aF, [cE]: {} };
    var aP = { [n3]: aO, [cq]: n3 };
    var aQ = { [cx]: D2, [cy]: aF, [cE]: {} };
    var aR = { [cx]: "https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}", [cy]: aF, [cE]: {} };
    var aS = { [f3]: "Invalid region: region was not a valid DNS name.", [cq]: f3 };
    var aT = { [cv]: G2 };
    var aU = { [cv]: H2 };
    var aV = { [ct]: i3, [cu]: [aT, "service"] };
    var aW = { [cv]: L };
    var aX = { [cs]: [Y], [f3]: "S3 Object Lambda does not support Dual-stack", [cq]: f3 };
    var aY = { [cs]: [W], [f3]: "S3 Object Lambda does not support S3 Accelerate", [cq]: f3 };
    var aZ = { [cs]: [{ [ct]: d3, [cu]: [{ [cv]: "DisableAccessPoints" }] }, { [ct]: e3, [cu]: [{ [cv]: "DisableAccessPoints" }, true] }], [f3]: "Access points are not supported for this operation", [cq]: f3 };
    var ba = { [cs]: [{ [ct]: d3, [cu]: [{ [cv]: "UseArnRegion" }] }, { [ct]: e3, [cu]: [{ [cv]: "UseArnRegion" }, false] }, { [ct]: r3, [cu]: [{ [ct]: h3, [cu]: [{ [ct]: i3, [cu]: [aT, "region"] }, "{Region}"] }] }], [f3]: "Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`", [cq]: f3 };
    var bb = { [ct]: i3, [cu]: [{ [cv]: "bucketPartition" }, j3] };
    var bc = { [ct]: i3, [cu]: [aT, "accountId"] };
    var bd = { [cA]: [{ [cB]: true, [j3]: "sigv4", [cC]: J2, [cD]: "{bucketArn#region}" }] };
    var be = { [f3]: "Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName}`", [cq]: f3 };
    var bf = { [f3]: "Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`", [cq]: f3 };
    var bg = { [f3]: "Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)", [cq]: f3 };
    var bh = { [f3]: "Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`", [cq]: f3 };
    var bi = { [f3]: "Invalid ARN: The ARN may only contain a single resource component after `accesspoint`.", [cq]: f3 };
    var bj = { [f3]: "Invalid ARN: Expected a resource of the format `accesspoint:<accesspoint name>` but no name was provided", [cq]: f3 };
    var bk = { [cA]: [{ [cB]: true, [j3]: "sigv4", [cC]: B2, [cD]: "{bucketArn#region}" }] };
    var bl = { [cA]: [{ [cB]: true, [j3]: z2, [cC]: A2, [cF]: ["*"] }, { [cB]: true, [j3]: "sigv4", [cC]: A2, [cD]: "{bucketArn#region}" }] };
    var bm = { [ct]: F2, [cu]: [ad] };
    var bn = { [cx]: "https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", [cy]: aF, [cE]: {} };
    var bo = { [cx]: "https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", [cy]: aF, [cE]: {} };
    var bp = { [cx]: "https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", [cy]: aF, [cE]: {} };
    var bq = { [cx]: Q, [cy]: aF, [cE]: {} };
    var br = { [cx]: "https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", [cy]: aF, [cE]: {} };
    var bs = { [cv]: "UseObjectLambdaEndpoint" };
    var bt = { [cA]: [{ [cB]: true, [j3]: "sigv4", [cC]: J2, [cD]: "{Region}" }] };
    var bu = { [cx]: "https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}", [cy]: aF, [cE]: {} };
    var bv = { [cx]: "https://s3-fips.{Region}.{partitionResult#dnsSuffix}", [cy]: aF, [cE]: {} };
    var bw = { [cx]: "https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}", [cy]: aF, [cE]: {} };
    var bx = { [cx]: t3, [cy]: aF, [cE]: {} };
    var by = { [cx]: "https://s3.{Region}.{partitionResult#dnsSuffix}", [cy]: aF, [cE]: {} };
    var bz = [{ [cv]: "Region" }];
    var bA = [{ [cv]: "Endpoint" }];
    var bB = [ad];
    var bC = [Y];
    var bD = [W];
    var bE = [Z, ah];
    var bF = [{ [ct]: d3, [cu]: [{ [cv]: "DisableS3ExpressSessionAuth" }] }, { [ct]: e3, [cu]: [{ [cv]: "DisableS3ExpressSessionAuth" }, true] }];
    var bG = [ak];
    var bH = [an];
    var bI = [aa];
    var bJ = [X];
    var bK = [{ [ct]: k3, [cu]: [ad, 6, 14, true], [cw]: "s3expressAvailabilityZoneId" }, { [ct]: k3, [cu]: [ad, 14, 16, true], [cw]: "s3expressAvailabilityZoneDelim" }, { [ct]: h3, [cu]: [{ [cv]: "s3expressAvailabilityZoneDelim" }, "--"] }];
    var bL = [{ [cs]: [X], [n3]: { [cx]: "https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}", [cy]: al, [cE]: {} }, [cq]: n3 }, { [n3]: { [cx]: "https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}", [cy]: al, [cE]: {} }, [cq]: n3 }];
    var bM = [{ [ct]: k3, [cu]: [ad, 6, 15, true], [cw]: "s3expressAvailabilityZoneId" }, { [ct]: k3, [cu]: [ad, 15, 17, true], [cw]: "s3expressAvailabilityZoneDelim" }, { [ct]: h3, [cu]: [{ [cv]: "s3expressAvailabilityZoneDelim" }, "--"] }];
    var bN = [{ [ct]: k3, [cu]: [ad, 6, 19, true], [cw]: "s3expressAvailabilityZoneId" }, { [ct]: k3, [cu]: [ad, 19, 21, true], [cw]: "s3expressAvailabilityZoneDelim" }, { [ct]: h3, [cu]: [{ [cv]: "s3expressAvailabilityZoneDelim" }, "--"] }];
    var bO = [{ [ct]: k3, [cu]: [ad, 6, 20, true], [cw]: "s3expressAvailabilityZoneId" }, { [ct]: k3, [cu]: [ad, 20, 22, true], [cw]: "s3expressAvailabilityZoneDelim" }, { [ct]: h3, [cu]: [{ [cv]: "s3expressAvailabilityZoneDelim" }, "--"] }];
    var bP = [{ [ct]: k3, [cu]: [ad, 6, 26, true], [cw]: "s3expressAvailabilityZoneId" }, { [ct]: k3, [cu]: [ad, 26, 28, true], [cw]: "s3expressAvailabilityZoneDelim" }, { [ct]: h3, [cu]: [{ [cv]: "s3expressAvailabilityZoneDelim" }, "--"] }];
    var bQ = [{ [cs]: [X], [n3]: { [cx]: "https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}", [cy]: { [cz]: "S3Express", [cA]: [{ [cB]: true, [j3]: "sigv4-s3express", [cC]: "s3express", [cD]: "{Region}" }] }, [cE]: {} }, [cq]: n3 }, { [n3]: { [cx]: "https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}", [cy]: { [cz]: "S3Express", [cA]: [{ [cB]: true, [j3]: "sigv4-s3express", [cC]: "s3express", [cD]: "{Region}" }] }, [cE]: {} }, [cq]: n3 }];
    var bR = [ad, 0, 7, true];
    var bS = [{ [ct]: k3, [cu]: [ad, 7, 15, true], [cw]: "s3expressAvailabilityZoneId" }, { [ct]: k3, [cu]: [ad, 15, 17, true], [cw]: "s3expressAvailabilityZoneDelim" }, { [ct]: h3, [cu]: [{ [cv]: "s3expressAvailabilityZoneDelim" }, "--"] }];
    var bT = [{ [ct]: k3, [cu]: [ad, 7, 16, true], [cw]: "s3expressAvailabilityZoneId" }, { [ct]: k3, [cu]: [ad, 16, 18, true], [cw]: "s3expressAvailabilityZoneDelim" }, { [ct]: h3, [cu]: [{ [cv]: "s3expressAvailabilityZoneDelim" }, "--"] }];
    var bU = [{ [ct]: k3, [cu]: [ad, 7, 20, true], [cw]: "s3expressAvailabilityZoneId" }, { [ct]: k3, [cu]: [ad, 20, 22, true], [cw]: "s3expressAvailabilityZoneDelim" }, { [ct]: h3, [cu]: [{ [cv]: "s3expressAvailabilityZoneDelim" }, "--"] }];
    var bV = [{ [ct]: k3, [cu]: [ad, 7, 21, true], [cw]: "s3expressAvailabilityZoneId" }, { [ct]: k3, [cu]: [ad, 21, 23, true], [cw]: "s3expressAvailabilityZoneDelim" }, { [ct]: h3, [cu]: [{ [cv]: "s3expressAvailabilityZoneDelim" }, "--"] }];
    var bW = [{ [ct]: k3, [cu]: [ad, 7, 27, true], [cw]: "s3expressAvailabilityZoneId" }, { [ct]: k3, [cu]: [ad, 27, 29, true], [cw]: "s3expressAvailabilityZoneDelim" }, { [ct]: h3, [cu]: [{ [cv]: "s3expressAvailabilityZoneDelim" }, "--"] }];
    var bX = [ac];
    var bY = [{ [ct]: y2, [cu]: [{ [cv]: x3 }, false] }];
    var bZ = [{ [ct]: h3, [cu]: [{ [cv]: v6 }, "beta"] }];
    var ca = ["*"];
    var cb = [{ [ct]: y2, [cu]: [{ [cv]: "Region" }, false] }];
    var cc = [{ [ct]: h3, [cu]: [{ [cv]: "Region" }, "us-east-1"] }];
    var cd = [{ [ct]: h3, [cu]: [aU, K] }];
    var ce = [{ [ct]: i3, [cu]: [aT, "resourceId[1]"], [cw]: L }, { [ct]: r3, [cu]: [{ [ct]: h3, [cu]: [aW, I2] }] }];
    var cf = [aT, "resourceId[1]"];
    var cg = [{ [ct]: r3, [cu]: [{ [ct]: h3, [cu]: [{ [ct]: i3, [cu]: [aT, "region"] }, I2] }] }];
    var ch = [{ [ct]: r3, [cu]: [{ [ct]: d3, [cu]: [{ [ct]: i3, [cu]: [aT, "resourceId[2]"] }] }] }];
    var ci = [aT, "resourceId[2]"];
    var cj = [{ [ct]: g3, [cu]: [{ [ct]: i3, [cu]: [aT, "region"] }], [cw]: "bucketPartition" }];
    var ck = [{ [ct]: h3, [cu]: [bb, { [ct]: i3, [cu]: [{ [cv]: "partitionResult" }, j3] }] }];
    var cl = [{ [ct]: y2, [cu]: [{ [ct]: i3, [cu]: [aT, "region"] }, true] }];
    var cm = [{ [ct]: y2, [cu]: [bc, false] }];
    var cn = [{ [ct]: y2, [cu]: [aW, false] }];
    var co = [{ [ct]: y2, [cu]: [{ [cv]: "Region" }, true] }];
    var _data3 = { version: "1.0", parameters: { Bucket: T, Region: T, UseFIPS: U, UseDualStack: U, Endpoint: T, ForcePathStyle: U, Accelerate: U, UseGlobalEndpoint: U, UseObjectLambdaEndpoint: V, Key: T, Prefix: T, CopySource: T, DisableAccessPoints: V, DisableMultiRegionAccessPoints: U, UseArnRegion: V, UseS3ExpressControlEndpoint: V, DisableS3ExpressSessionAuth: V }, [cr]: [{ [cs]: [{ [ct]: d3, [cu]: bz }], [cr]: [{ [cs]: [W, X], error: "Accelerate cannot be used with FIPS", [cq]: f3 }, { [cs]: [Y, Z], error: "Cannot set dual-stack in combination with a custom endpoint.", [cq]: f3 }, { [cs]: [Z, X], error: "A custom endpoint cannot be combined with FIPS", [cq]: f3 }, { [cs]: [Z, W], error: "A custom endpoint cannot be combined with S3 Accelerate", [cq]: f3 }, { [cs]: [X, aa, ab], error: "Partition does not support FIPS", [cq]: f3 }, { [cs]: [ac, { [ct]: k3, [cu]: [ad, 0, a3, c3], [cw]: l3 }, { [ct]: h3, [cu]: [{ [cv]: l3 }, "--x-s3"] }], [cr]: [ae, af, ag, { [cs]: [ap, aq], [cr]: [{ [cs]: bI, [cr]: [{ [cs]: [ak, ar], [cr]: [{ [cs]: bJ, endpoint: { [cx]: "https://s3express-control-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", [cy]: al, [cE]: am }, [cq]: n3 }, { endpoint: { [cx]: "https://s3express-control.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", [cy]: al, [cE]: am }, [cq]: n3 }], [cq]: o3 }], [cq]: o3 }], [cq]: o3 }, { [cs]: bH, [cr]: [{ [cs]: bI, [cr]: [{ [cs]: bF, [cr]: [{ [cs]: bK, [cr]: bL, [cq]: o3 }, { [cs]: bM, [cr]: bL, [cq]: o3 }, { [cs]: bN, [cr]: bL, [cq]: o3 }, { [cs]: bO, [cr]: bL, [cq]: o3 }, { [cs]: bP, [cr]: bL, [cq]: o3 }, as], [cq]: o3 }, { [cs]: bK, [cr]: bQ, [cq]: o3 }, { [cs]: bM, [cr]: bQ, [cq]: o3 }, { [cs]: bN, [cr]: bQ, [cq]: o3 }, { [cs]: bO, [cr]: bQ, [cq]: o3 }, { [cs]: bP, [cr]: bQ, [cq]: o3 }, as], [cq]: o3 }], [cq]: o3 }, ao], [cq]: o3 }, { [cs]: [ac, { [ct]: k3, [cu]: bR, [cw]: s3 }, { [ct]: h3, [cu]: [{ [cv]: s3 }, "--xa-s3"] }], [cr]: [ae, af, ag, { [cs]: bH, [cr]: [{ [cs]: bI, [cr]: [{ [cs]: bF, [cr]: [{ [cs]: bS, [cr]: bL, [cq]: o3 }, { [cs]: bT, [cr]: bL, [cq]: o3 }, { [cs]: bU, [cr]: bL, [cq]: o3 }, { [cs]: bV, [cr]: bL, [cq]: o3 }, { [cs]: bW, [cr]: bL, [cq]: o3 }, as], [cq]: o3 }, { [cs]: bS, [cr]: bQ, [cq]: o3 }, { [cs]: bT, [cr]: bQ, [cq]: o3 }, { [cs]: bU, [cr]: bQ, [cq]: o3 }, { [cs]: bV, [cr]: bQ, [cq]: o3 }, { [cs]: bW, [cr]: bQ, [cq]: o3 }, as], [cq]: o3 }], [cq]: o3 }, ao], [cq]: o3 }, { [cs]: [at, ap, aq], [cr]: [{ [cs]: bI, [cr]: [{ [cs]: bE, endpoint: { [cx]: t3, [cy]: al, [cE]: am }, [cq]: n3 }, { [cs]: bJ, endpoint: { [cx]: "https://s3express-control-fips.{Region}.{partitionResult#dnsSuffix}", [cy]: al, [cE]: am }, [cq]: n3 }, { endpoint: { [cx]: "https://s3express-control.{Region}.{partitionResult#dnsSuffix}", [cy]: al, [cE]: am }, [cq]: n3 }], [cq]: o3 }], [cq]: o3 }, { [cs]: [ac, { [ct]: k3, [cu]: [ad, 49, 50, c3], [cw]: u3 }, { [ct]: k3, [cu]: [ad, 8, 12, c3], [cw]: v6 }, { [ct]: k3, [cu]: bR, [cw]: w3 }, { [ct]: k3, [cu]: [ad, 32, 49, c3], [cw]: x3 }, { [ct]: g3, [cu]: bz, [cw]: "regionPartition" }, { [ct]: h3, [cu]: [{ [cv]: w3 }, "--op-s3"] }], [cr]: [{ [cs]: bY, [cr]: [{ [cs]: [{ [ct]: h3, [cu]: [au, "e"] }], [cr]: [{ [cs]: bZ, [cr]: [av, { [cs]: bE, endpoint: { [cx]: "https://{Bucket}.ec2.{url#authority}", [cy]: aw, [cE]: am }, [cq]: n3 }], [cq]: o3 }, { endpoint: { [cx]: "https://{Bucket}.ec2.s3-outposts.{Region}.{regionPartition#dnsSuffix}", [cy]: aw, [cE]: am }, [cq]: n3 }], [cq]: o3 }, { [cs]: [{ [ct]: h3, [cu]: [au, "o"] }], [cr]: [{ [cs]: bZ, [cr]: [av, { [cs]: bE, endpoint: { [cx]: "https://{Bucket}.op-{outpostId}.{url#authority}", [cy]: aw, [cE]: am }, [cq]: n3 }], [cq]: o3 }, { endpoint: { [cx]: "https://{Bucket}.op-{outpostId}.s3-outposts.{Region}.{regionPartition#dnsSuffix}", [cy]: aw, [cE]: am }, [cq]: n3 }], [cq]: o3 }, { error: 'Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"', [cq]: f3 }], [cq]: o3 }, { error: "Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`.", [cq]: f3 }], [cq]: o3 }, { [cs]: bX, [cr]: [{ [cs]: [Z, { [ct]: r3, [cu]: [{ [ct]: d3, [cu]: [{ [ct]: m3, [cu]: bA }] }] }], error: "Custom endpoint `{Endpoint}` was not a valid URI", [cq]: f3 }, { [cs]: [ax, an], [cr]: [{ [cs]: bI, [cr]: [{ [cs]: cb, [cr]: [{ [cs]: [W, ab], error: "S3 Accelerate cannot be used in this region", [cq]: f3 }, { [cs]: [Y, X, az, ar, aA], endpoint: { [cx]: "https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}", [cy]: aB, [cE]: am }, [cq]: n3 }, { [cs]: [Y, X, az, ar, aC, aD], [cr]: [{ endpoint: aE, [cq]: n3 }], [cq]: o3 }, { [cs]: [Y, X, az, ar, aC, aG], endpoint: aE, [cq]: n3 }, { [cs]: [aH, X, az, ar, aA], endpoint: { [cx]: "https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}", [cy]: aB, [cE]: am }, [cq]: n3 }, { [cs]: [aH, X, az, ar, aC, aD], [cr]: [{ endpoint: aI, [cq]: n3 }], [cq]: o3 }, { [cs]: [aH, X, az, ar, aC, aG], endpoint: aI, [cq]: n3 }, { [cs]: [Y, aJ, W, ar, aA], endpoint: { [cx]: "https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}", [cy]: aB, [cE]: am }, [cq]: n3 }, { [cs]: [Y, aJ, W, ar, aC, aD], [cr]: [{ endpoint: aK, [cq]: n3 }], [cq]: o3 }, { [cs]: [Y, aJ, W, ar, aC, aG], endpoint: aK, [cq]: n3 }, { [cs]: [Y, aJ, az, ar, aA], endpoint: { [cx]: "https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}", [cy]: aB, [cE]: am }, [cq]: n3 }, { [cs]: [Y, aJ, az, ar, aC, aD], [cr]: [{ endpoint: aL, [cq]: n3 }], [cq]: o3 }, { [cs]: [Y, aJ, az, ar, aC, aG], endpoint: aL, [cq]: n3 }, { [cs]: [aH, aJ, az, Z, ah, ai, aA], endpoint: { [cx]: C2, [cy]: aB, [cE]: am }, [cq]: n3 }, { [cs]: [aH, aJ, az, Z, ah, aM, aA], endpoint: { [cx]: q3, [cy]: aB, [cE]: am }, [cq]: n3 }, { [cs]: [aH, aJ, az, Z, ah, ai, aC, aD], [cr]: [{ [cs]: cc, endpoint: aN, [cq]: n3 }, { endpoint: aN, [cq]: n3 }], [cq]: o3 }, { [cs]: [aH, aJ, az, Z, ah, aM, aC, aD], [cr]: [{ [cs]: cc, endpoint: aO, [cq]: n3 }, aP], [cq]: o3 }, { [cs]: [aH, aJ, az, Z, ah, ai, aC, aG], endpoint: aN, [cq]: n3 }, { [cs]: [aH, aJ, az, Z, ah, aM, aC, aG], endpoint: aO, [cq]: n3 }, { [cs]: [aH, aJ, W, ar, aA], endpoint: { [cx]: D2, [cy]: aB, [cE]: am }, [cq]: n3 }, { [cs]: [aH, aJ, W, ar, aC, aD], [cr]: [{ [cs]: cc, endpoint: aQ, [cq]: n3 }, { endpoint: aQ, [cq]: n3 }], [cq]: o3 }, { [cs]: [aH, aJ, W, ar, aC, aG], endpoint: aQ, [cq]: n3 }, { [cs]: [aH, aJ, az, ar, aA], endpoint: { [cx]: E2, [cy]: aB, [cE]: am }, [cq]: n3 }, { [cs]: [aH, aJ, az, ar, aC, aD], [cr]: [{ [cs]: cc, endpoint: { [cx]: E2, [cy]: aF, [cE]: am }, [cq]: n3 }, { endpoint: aR, [cq]: n3 }], [cq]: o3 }, { [cs]: [aH, aJ, az, ar, aC, aG], endpoint: aR, [cq]: n3 }], [cq]: o3 }, aS], [cq]: o3 }], [cq]: o3 }, { [cs]: [Z, ah, { [ct]: h3, [cu]: [{ [ct]: i3, [cu]: [aj, "scheme"] }, "http"] }, { [ct]: p3, [cu]: [ad, c3] }, ax, aJ, aH, az], [cr]: [{ [cs]: bI, [cr]: [{ [cs]: cb, [cr]: [aP], [cq]: o3 }, aS], [cq]: o3 }], [cq]: o3 }, { [cs]: [ax, { [ct]: F2, [cu]: bB, [cw]: G2 }], [cr]: [{ [cs]: [{ [ct]: i3, [cu]: [aT, "resourceId[0]"], [cw]: H2 }, { [ct]: r3, [cu]: [{ [ct]: h3, [cu]: [aU, I2] }] }], [cr]: [{ [cs]: [{ [ct]: h3, [cu]: [aV, J2] }], [cr]: [{ [cs]: cd, [cr]: [{ [cs]: ce, [cr]: [aX, aY, { [cs]: cg, [cr]: [aZ, { [cs]: ch, [cr]: [ba, { [cs]: cj, [cr]: [{ [cs]: bI, [cr]: [{ [cs]: ck, [cr]: [{ [cs]: cl, [cr]: [{ [cs]: [{ [ct]: h3, [cu]: [bc, I2] }], error: "Invalid ARN: Missing account id", [cq]: f3 }, { [cs]: cm, [cr]: [{ [cs]: cn, [cr]: [{ [cs]: bE, endpoint: { [cx]: M, [cy]: bd, [cE]: am }, [cq]: n3 }, { [cs]: bJ, endpoint: { [cx]: "https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}", [cy]: bd, [cE]: am }, [cq]: n3 }, { endpoint: { [cx]: "https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}", [cy]: bd, [cE]: am }, [cq]: n3 }], [cq]: o3 }, be], [cq]: o3 }, bf], [cq]: o3 }, bg], [cq]: o3 }, bh], [cq]: o3 }], [cq]: o3 }], [cq]: o3 }, bi], [cq]: o3 }, { error: "Invalid ARN: bucket ARN is missing a region", [cq]: f3 }], [cq]: o3 }, bj], [cq]: o3 }, { error: "Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`", [cq]: f3 }], [cq]: o3 }, { [cs]: cd, [cr]: [{ [cs]: ce, [cr]: [{ [cs]: cg, [cr]: [{ [cs]: cd, [cr]: [{ [cs]: cg, [cr]: [aZ, { [cs]: ch, [cr]: [ba, { [cs]: cj, [cr]: [{ [cs]: bI, [cr]: [{ [cs]: [{ [ct]: h3, [cu]: [bb, "{partitionResult#name}"] }], [cr]: [{ [cs]: cl, [cr]: [{ [cs]: [{ [ct]: h3, [cu]: [aV, B2] }], [cr]: [{ [cs]: cm, [cr]: [{ [cs]: cn, [cr]: [{ [cs]: bD, error: "Access Points do not support S3 Accelerate", [cq]: f3 }, { [cs]: [X, Y], endpoint: { [cx]: "https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}", [cy]: bk, [cE]: am }, [cq]: n3 }, { [cs]: [X, aH], endpoint: { [cx]: "https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}", [cy]: bk, [cE]: am }, [cq]: n3 }, { [cs]: [aJ, Y], endpoint: { [cx]: "https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}", [cy]: bk, [cE]: am }, [cq]: n3 }, { [cs]: [aJ, aH, Z, ah], endpoint: { [cx]: M, [cy]: bk, [cE]: am }, [cq]: n3 }, { [cs]: [aJ, aH], endpoint: { [cx]: "https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}", [cy]: bk, [cE]: am }, [cq]: n3 }], [cq]: o3 }, be], [cq]: o3 }, bf], [cq]: o3 }, { error: "Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}", [cq]: f3 }], [cq]: o3 }, bg], [cq]: o3 }, bh], [cq]: o3 }], [cq]: o3 }], [cq]: o3 }, bi], [cq]: o3 }], [cq]: o3 }], [cq]: o3 }, { [cs]: [{ [ct]: y2, [cu]: [aW, c3] }], [cr]: [{ [cs]: bC, error: "S3 MRAP does not support dual-stack", [cq]: f3 }, { [cs]: bJ, error: "S3 MRAP does not support FIPS", [cq]: f3 }, { [cs]: bD, error: "S3 MRAP does not support S3 Accelerate", [cq]: f3 }, { [cs]: [{ [ct]: e3, [cu]: [{ [cv]: "DisableMultiRegionAccessPoints" }, c3] }], error: "Invalid configuration: Multi-Region Access Point ARNs are disabled.", [cq]: f3 }, { [cs]: [{ [ct]: g3, [cu]: bz, [cw]: N }], [cr]: [{ [cs]: [{ [ct]: h3, [cu]: [{ [ct]: i3, [cu]: [{ [cv]: N }, j3] }, { [ct]: i3, [cu]: [aT, "partition"] }] }], [cr]: [{ endpoint: { [cx]: "https://{accessPointName}.accesspoint.s3-global.{mrapPartition#dnsSuffix}", [cy]: { [cA]: [{ [cB]: c3, name: z2, [cC]: B2, [cF]: ca }] }, [cE]: am }, [cq]: n3 }], [cq]: o3 }, { error: "Client was configured for partition `{mrapPartition#name}` but bucket referred to partition `{bucketArn#partition}`", [cq]: f3 }], [cq]: o3 }], [cq]: o3 }, { error: "Invalid Access Point Name", [cq]: f3 }], [cq]: o3 }, bj], [cq]: o3 }, { [cs]: [{ [ct]: h3, [cu]: [aV, A2] }], [cr]: [{ [cs]: bC, error: "S3 Outposts does not support Dual-stack", [cq]: f3 }, { [cs]: bJ, error: "S3 Outposts does not support FIPS", [cq]: f3 }, { [cs]: bD, error: "S3 Outposts does not support S3 Accelerate", [cq]: f3 }, { [cs]: [{ [ct]: d3, [cu]: [{ [ct]: i3, [cu]: [aT, "resourceId[4]"] }] }], error: "Invalid Arn: Outpost Access Point ARN contains sub resources", [cq]: f3 }, { [cs]: [{ [ct]: i3, [cu]: cf, [cw]: x3 }], [cr]: [{ [cs]: bY, [cr]: [ba, { [cs]: cj, [cr]: [{ [cs]: bI, [cr]: [{ [cs]: ck, [cr]: [{ [cs]: cl, [cr]: [{ [cs]: cm, [cr]: [{ [cs]: [{ [ct]: i3, [cu]: ci, [cw]: O }], [cr]: [{ [cs]: [{ [ct]: i3, [cu]: [aT, "resourceId[3]"], [cw]: L }], [cr]: [{ [cs]: [{ [ct]: h3, [cu]: [{ [cv]: O }, K] }], [cr]: [{ [cs]: bE, endpoint: { [cx]: "https://{accessPointName}-{bucketArn#accountId}.{outpostId}.{url#authority}", [cy]: bl, [cE]: am }, [cq]: n3 }, { endpoint: { [cx]: "https://{accessPointName}-{bucketArn#accountId}.{outpostId}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}", [cy]: bl, [cE]: am }, [cq]: n3 }], [cq]: o3 }, { error: "Expected an outpost type `accesspoint`, found {outpostType}", [cq]: f3 }], [cq]: o3 }, { error: "Invalid ARN: expected an access point name", [cq]: f3 }], [cq]: o3 }, { error: "Invalid ARN: Expected a 4-component resource", [cq]: f3 }], [cq]: o3 }, bf], [cq]: o3 }, bg], [cq]: o3 }, bh], [cq]: o3 }], [cq]: o3 }], [cq]: o3 }, { error: "Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId}`", [cq]: f3 }], [cq]: o3 }, { error: "Invalid ARN: The Outpost Id was not set", [cq]: f3 }], [cq]: o3 }, { error: "Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})", [cq]: f3 }], [cq]: o3 }, { error: "Invalid ARN: No ARN type specified", [cq]: f3 }], [cq]: o3 }, { [cs]: [{ [ct]: k3, [cu]: [ad, 0, 4, b3], [cw]: P }, { [ct]: h3, [cu]: [{ [cv]: P }, "arn:"] }, { [ct]: r3, [cu]: [{ [ct]: d3, [cu]: [bm] }] }], error: "Invalid ARN: `{Bucket}` was not a valid ARN", [cq]: f3 }, { [cs]: [{ [ct]: e3, [cu]: [ay, c3] }, bm], error: "Path-style addressing cannot be used with ARN buckets", [cq]: f3 }, { [cs]: bG, [cr]: [{ [cs]: bI, [cr]: [{ [cs]: [az], [cr]: [{ [cs]: [Y, ar, X, aA], endpoint: { [cx]: "https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", [cy]: aB, [cE]: am }, [cq]: n3 }, { [cs]: [Y, ar, X, aC, aD], [cr]: [{ endpoint: bn, [cq]: n3 }], [cq]: o3 }, { [cs]: [Y, ar, X, aC, aG], endpoint: bn, [cq]: n3 }, { [cs]: [aH, ar, X, aA], endpoint: { [cx]: "https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", [cy]: aB, [cE]: am }, [cq]: n3 }, { [cs]: [aH, ar, X, aC, aD], [cr]: [{ endpoint: bo, [cq]: n3 }], [cq]: o3 }, { [cs]: [aH, ar, X, aC, aG], endpoint: bo, [cq]: n3 }, { [cs]: [Y, ar, aJ, aA], endpoint: { [cx]: "https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", [cy]: aB, [cE]: am }, [cq]: n3 }, { [cs]: [Y, ar, aJ, aC, aD], [cr]: [{ endpoint: bp, [cq]: n3 }], [cq]: o3 }, { [cs]: [Y, ar, aJ, aC, aG], endpoint: bp, [cq]: n3 }, { [cs]: [aH, Z, ah, aJ, aA], endpoint: { [cx]: Q, [cy]: aB, [cE]: am }, [cq]: n3 }, { [cs]: [aH, Z, ah, aJ, aC, aD], [cr]: [{ [cs]: cc, endpoint: bq, [cq]: n3 }, { endpoint: bq, [cq]: n3 }], [cq]: o3 }, { [cs]: [aH, Z, ah, aJ, aC, aG], endpoint: bq, [cq]: n3 }, { [cs]: [aH, ar, aJ, aA], endpoint: { [cx]: R, [cy]: aB, [cE]: am }, [cq]: n3 }, { [cs]: [aH, ar, aJ, aC, aD], [cr]: [{ [cs]: cc, endpoint: { [cx]: R, [cy]: aF, [cE]: am }, [cq]: n3 }, { endpoint: br, [cq]: n3 }], [cq]: o3 }, { [cs]: [aH, ar, aJ, aC, aG], endpoint: br, [cq]: n3 }], [cq]: o3 }, { error: "Path-style addressing cannot be used with S3 Accelerate", [cq]: f3 }], [cq]: o3 }], [cq]: o3 }], [cq]: o3 }, { [cs]: [{ [ct]: d3, [cu]: [bs] }, { [ct]: e3, [cu]: [bs, c3] }], [cr]: [{ [cs]: bI, [cr]: [{ [cs]: co, [cr]: [aX, aY, { [cs]: bE, endpoint: { [cx]: t3, [cy]: bt, [cE]: am }, [cq]: n3 }, { [cs]: bJ, endpoint: { [cx]: "https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}", [cy]: bt, [cE]: am }, [cq]: n3 }, { endpoint: { [cx]: "https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}", [cy]: bt, [cE]: am }, [cq]: n3 }], [cq]: o3 }, aS], [cq]: o3 }], [cq]: o3 }, { [cs]: [at], [cr]: [{ [cs]: bI, [cr]: [{ [cs]: co, [cr]: [{ [cs]: [X, Y, ar, aA], endpoint: { [cx]: "https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}", [cy]: aB, [cE]: am }, [cq]: n3 }, { [cs]: [X, Y, ar, aC, aD], [cr]: [{ endpoint: bu, [cq]: n3 }], [cq]: o3 }, { [cs]: [X, Y, ar, aC, aG], endpoint: bu, [cq]: n3 }, { [cs]: [X, aH, ar, aA], endpoint: { [cx]: "https://s3-fips.us-east-1.{partitionResult#dnsSuffix}", [cy]: aB, [cE]: am }, [cq]: n3 }, { [cs]: [X, aH, ar, aC, aD], [cr]: [{ endpoint: bv, [cq]: n3 }], [cq]: o3 }, { [cs]: [X, aH, ar, aC, aG], endpoint: bv, [cq]: n3 }, { [cs]: [aJ, Y, ar, aA], endpoint: { [cx]: "https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}", [cy]: aB, [cE]: am }, [cq]: n3 }, { [cs]: [aJ, Y, ar, aC, aD], [cr]: [{ endpoint: bw, [cq]: n3 }], [cq]: o3 }, { [cs]: [aJ, Y, ar, aC, aG], endpoint: bw, [cq]: n3 }, { [cs]: [aJ, aH, Z, ah, aA], endpoint: { [cx]: t3, [cy]: aB, [cE]: am }, [cq]: n3 }, { [cs]: [aJ, aH, Z, ah, aC, aD], [cr]: [{ [cs]: cc, endpoint: bx, [cq]: n3 }, { endpoint: bx, [cq]: n3 }], [cq]: o3 }, { [cs]: [aJ, aH, Z, ah, aC, aG], endpoint: bx, [cq]: n3 }, { [cs]: [aJ, aH, ar, aA], endpoint: { [cx]: S, [cy]: aB, [cE]: am }, [cq]: n3 }, { [cs]: [aJ, aH, ar, aC, aD], [cr]: [{ [cs]: cc, endpoint: { [cx]: S, [cy]: aF, [cE]: am }, [cq]: n3 }, { endpoint: by, [cq]: n3 }], [cq]: o3 }, { [cs]: [aJ, aH, ar, aC, aG], endpoint: by, [cq]: n3 }], [cq]: o3 }, aS], [cq]: o3 }], [cq]: o3 }], [cq]: o3 }, { error: "A region must be set when sending requests to S3.", [cq]: f3 }] };
    exports2.ruleSet = _data3;
  }
});

// ../../node_modules/@aws-sdk/client-s3/dist-cjs/endpoint/endpointResolver.js
var require_endpointResolver3 = __commonJS({
  "../../node_modules/@aws-sdk/client-s3/dist-cjs/endpoint/endpointResolver.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.defaultEndpointResolver = void 0;
    var util_endpoints_1 = require_dist_cjs21();
    var util_endpoints_2 = require_dist_cjs18();
    var ruleset_1 = require_ruleset3();
    var cache3 = new util_endpoints_2.EndpointCache({
      size: 50,
      params: [
        "Accelerate",
        "Bucket",
        "DisableAccessPoints",
        "DisableMultiRegionAccessPoints",
        "DisableS3ExpressSessionAuth",
        "Endpoint",
        "ForcePathStyle",
        "Region",
        "UseArnRegion",
        "UseDualStack",
        "UseFIPS",
        "UseGlobalEndpoint",
        "UseObjectLambdaEndpoint",
        "UseS3ExpressControlEndpoint"
      ]
    });
    var defaultEndpointResolver3 = /* @__PURE__ */ __name((endpointParams, context = {}) => {
      return cache3.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
        endpointParams,
        logger: context.logger
      }));
    }, "defaultEndpointResolver");
    exports2.defaultEndpointResolver = defaultEndpointResolver3;
    util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
  }
});

// ../../node_modules/@aws-sdk/client-s3/dist-cjs/auth/httpAuthSchemeProvider.js
var require_httpAuthSchemeProvider3 = __commonJS({
  "../../node_modules/@aws-sdk/client-s3/dist-cjs/auth/httpAuthSchemeProvider.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.resolveHttpAuthSchemeConfig = exports2.defaultS3HttpAuthSchemeProvider = exports2.defaultS3HttpAuthSchemeParametersProvider = void 0;
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var signature_v4_multi_region_1 = require_dist_cjs63();
    var middleware_endpoint_1 = require_dist_cjs34();
    var util_middleware_1 = require_dist_cjs6();
    var endpointResolver_1 = require_endpointResolver3();
    var createEndpointRuleSetHttpAuthSchemeParametersProvider = /* @__PURE__ */ __name((defaultHttpAuthSchemeParametersProvider) => async (config, context, input) => {
      if (!input) {
        throw new Error(`Could not find \`input\` for \`defaultEndpointRuleSetHttpAuthSchemeParametersProvider\``);
      }
      const defaultParameters = await defaultHttpAuthSchemeParametersProvider(config, context, input);
      const instructionsFn = (0, util_middleware_1.getSmithyContext)(context)?.commandInstance?.constructor?.getEndpointParameterInstructions;
      if (!instructionsFn) {
        throw new Error(`getEndpointParameterInstructions() is not defined on \`${context.commandName}\``);
      }
      const endpointParameters = await (0, middleware_endpoint_1.resolveParams)(input, { getEndpointParameterInstructions: instructionsFn }, config);
      return Object.assign(defaultParameters, endpointParameters);
    }, "createEndpointRuleSetHttpAuthSchemeParametersProvider");
    var _defaultS3HttpAuthSchemeParametersProvider = /* @__PURE__ */ __name(async (config, context, input) => {
      return {
        operation: (0, util_middleware_1.getSmithyContext)(context).operation,
        region: await (0, util_middleware_1.normalizeProvider)(config.region)() || (() => {
          throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
        })()
      };
    }, "_defaultS3HttpAuthSchemeParametersProvider");
    exports2.defaultS3HttpAuthSchemeParametersProvider = createEndpointRuleSetHttpAuthSchemeParametersProvider(_defaultS3HttpAuthSchemeParametersProvider);
    function createAwsAuthSigv4HttpAuthOption3(authParameters) {
      return {
        schemeId: "aws.auth#sigv4",
        signingProperties: {
          name: "s3",
          region: authParameters.region
        },
        propertiesExtractor: /* @__PURE__ */ __name((config, context) => ({
          signingProperties: {
            config,
            context
          }
        }), "propertiesExtractor")
      };
    }
    __name(createAwsAuthSigv4HttpAuthOption3, "createAwsAuthSigv4HttpAuthOption");
    function createAwsAuthSigv4aHttpAuthOption(authParameters) {
      return {
        schemeId: "aws.auth#sigv4a",
        signingProperties: {
          name: "s3",
          region: authParameters.region
        },
        propertiesExtractor: /* @__PURE__ */ __name((config, context) => ({
          signingProperties: {
            config,
            context
          }
        }), "propertiesExtractor")
      };
    }
    __name(createAwsAuthSigv4aHttpAuthOption, "createAwsAuthSigv4aHttpAuthOption");
    var createEndpointRuleSetHttpAuthSchemeProvider = /* @__PURE__ */ __name((defaultEndpointResolver3, defaultHttpAuthSchemeResolver, createHttpAuthOptionFunctions) => {
      const endpointRuleSetHttpAuthSchemeProvider = /* @__PURE__ */ __name((authParameters) => {
        const endpoint = defaultEndpointResolver3(authParameters);
        const authSchemes = endpoint.properties?.authSchemes;
        if (!authSchemes) {
          return defaultHttpAuthSchemeResolver(authParameters);
        }
        const options = [];
        for (const scheme of authSchemes) {
          const { name: resolvedName, properties = {}, ...rest } = scheme;
          const name = resolvedName.toLowerCase();
          if (resolvedName !== name) {
            console.warn(`HttpAuthScheme has been normalized with lowercasing: \`${resolvedName}\` to \`${name}\``);
          }
          let schemeId;
          if (name === "sigv4a") {
            schemeId = "aws.auth#sigv4a";
            const sigv4Present = authSchemes.find((s3) => {
              const name2 = s3.name.toLowerCase();
              return name2 !== "sigv4a" && name2.startsWith("sigv4");
            });
            if (signature_v4_multi_region_1.SignatureV4MultiRegion.sigv4aDependency() === "none" && sigv4Present) {
              continue;
            }
          } else if (name.startsWith("sigv4")) {
            schemeId = "aws.auth#sigv4";
          } else {
            throw new Error(`Unknown HttpAuthScheme found in \`@smithy.rules#endpointRuleSet\`: \`${name}\``);
          }
          const createOption = createHttpAuthOptionFunctions[schemeId];
          if (!createOption) {
            throw new Error(`Could not find HttpAuthOption create function for \`${schemeId}\``);
          }
          const option = createOption(authParameters);
          option.schemeId = schemeId;
          option.signingProperties = { ...option.signingProperties || {}, ...rest, ...properties };
          options.push(option);
        }
        return options;
      }, "endpointRuleSetHttpAuthSchemeProvider");
      return endpointRuleSetHttpAuthSchemeProvider;
    }, "createEndpointRuleSetHttpAuthSchemeProvider");
    var _defaultS3HttpAuthSchemeProvider = /* @__PURE__ */ __name((authParameters) => {
      const options = [];
      switch (authParameters.operation) {
        default: {
          options.push(createAwsAuthSigv4HttpAuthOption3(authParameters));
          options.push(createAwsAuthSigv4aHttpAuthOption(authParameters));
        }
      }
      return options;
    }, "_defaultS3HttpAuthSchemeProvider");
    exports2.defaultS3HttpAuthSchemeProvider = createEndpointRuleSetHttpAuthSchemeProvider(endpointResolver_1.defaultEndpointResolver, _defaultS3HttpAuthSchemeProvider, {
      "aws.auth#sigv4": createAwsAuthSigv4HttpAuthOption3,
      "aws.auth#sigv4a": createAwsAuthSigv4aHttpAuthOption
    });
    var resolveHttpAuthSchemeConfig3 = /* @__PURE__ */ __name((config) => {
      const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
      const config_1 = (0, core_1.resolveAwsSdkSigV4AConfig)(config_0);
      return Object.assign(config_1, {
        authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? [])
      });
    }, "resolveHttpAuthSchemeConfig");
    exports2.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig3;
  }
});

// ../../node_modules/@aws-sdk/client-s3/package.json
var require_package3 = __commonJS({
  "../../node_modules/@aws-sdk/client-s3/package.json"(exports2, module2) {
    module2.exports = {
      name: "@aws-sdk/client-s3",
      description: "AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native",
      version: "3.879.0",
      scripts: {
        build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
        "build:cjs": "node ../../scripts/compilation/inline client-s3",
        "build:es": "tsc -p tsconfig.es.json",
        "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
        "build:types": "tsc -p tsconfig.types.json",
        "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
        clean: "rimraf ./dist-* && rimraf *.tsbuildinfo",
        "extract:docs": "api-extractor run --local",
        "generate:client": "node ../../scripts/generate-clients/single-service --solo s3",
        test: "yarn g:vitest run",
        "test:browser": "node ./test/browser-build/esbuild && yarn g:vitest run -c vitest.config.browser.mts",
        "test:browser:watch": "node ./test/browser-build/esbuild && yarn g:vitest watch -c vitest.config.browser.mts",
        "test:e2e": "yarn g:vitest run -c vitest.config.e2e.mts && yarn test:browser",
        "test:e2e:watch": "yarn g:vitest watch -c vitest.config.e2e.mts",
        "test:integration": "yarn g:vitest run -c vitest.config.integ.mts",
        "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts",
        "test:watch": "yarn g:vitest watch"
      },
      main: "./dist-cjs/index.js",
      types: "./dist-types/index.d.ts",
      module: "./dist-es/index.js",
      sideEffects: false,
      dependencies: {
        "@aws-crypto/sha1-browser": "5.2.0",
        "@aws-crypto/sha256-browser": "5.2.0",
        "@aws-crypto/sha256-js": "5.2.0",
        "@aws-sdk/core": "3.879.0",
        "@aws-sdk/credential-provider-node": "3.879.0",
        "@aws-sdk/middleware-bucket-endpoint": "3.873.0",
        "@aws-sdk/middleware-expect-continue": "3.873.0",
        "@aws-sdk/middleware-flexible-checksums": "3.879.0",
        "@aws-sdk/middleware-host-header": "3.873.0",
        "@aws-sdk/middleware-location-constraint": "3.873.0",
        "@aws-sdk/middleware-logger": "3.876.0",
        "@aws-sdk/middleware-recursion-detection": "3.873.0",
        "@aws-sdk/middleware-sdk-s3": "3.879.0",
        "@aws-sdk/middleware-ssec": "3.873.0",
        "@aws-sdk/middleware-user-agent": "3.879.0",
        "@aws-sdk/region-config-resolver": "3.873.0",
        "@aws-sdk/signature-v4-multi-region": "3.879.0",
        "@aws-sdk/types": "3.862.0",
        "@aws-sdk/util-endpoints": "3.879.0",
        "@aws-sdk/util-user-agent-browser": "3.873.0",
        "@aws-sdk/util-user-agent-node": "3.879.0",
        "@aws-sdk/xml-builder": "3.873.0",
        "@smithy/config-resolver": "^4.1.5",
        "@smithy/core": "^3.9.0",
        "@smithy/eventstream-serde-browser": "^4.0.5",
        "@smithy/eventstream-serde-config-resolver": "^4.1.3",
        "@smithy/eventstream-serde-node": "^4.0.5",
        "@smithy/fetch-http-handler": "^5.1.1",
        "@smithy/hash-blob-browser": "^4.0.5",
        "@smithy/hash-node": "^4.0.5",
        "@smithy/hash-stream-node": "^4.0.5",
        "@smithy/invalid-dependency": "^4.0.5",
        "@smithy/md5-js": "^4.0.5",
        "@smithy/middleware-content-length": "^4.0.5",
        "@smithy/middleware-endpoint": "^4.1.19",
        "@smithy/middleware-retry": "^4.1.20",
        "@smithy/middleware-serde": "^4.0.9",
        "@smithy/middleware-stack": "^4.0.5",
        "@smithy/node-config-provider": "^4.1.4",
        "@smithy/node-http-handler": "^4.1.1",
        "@smithy/protocol-http": "^5.1.3",
        "@smithy/smithy-client": "^4.5.0",
        "@smithy/types": "^4.3.2",
        "@smithy/url-parser": "^4.0.5",
        "@smithy/util-base64": "^4.0.0",
        "@smithy/util-body-length-browser": "^4.0.0",
        "@smithy/util-body-length-node": "^4.0.0",
        "@smithy/util-defaults-mode-browser": "^4.0.27",
        "@smithy/util-defaults-mode-node": "^4.0.27",
        "@smithy/util-endpoints": "^3.0.7",
        "@smithy/util-middleware": "^4.0.5",
        "@smithy/util-retry": "^4.0.7",
        "@smithy/util-stream": "^4.2.4",
        "@smithy/util-utf8": "^4.0.0",
        "@smithy/util-waiter": "^4.0.7",
        "@types/uuid": "^9.0.1",
        tslib: "^2.6.2",
        uuid: "^9.0.1"
      },
      devDependencies: {
        "@aws-sdk/signature-v4-crt": "3.879.0",
        "@tsconfig/node18": "18.2.4",
        "@types/node": "^18.19.69",
        concurrently: "7.0.0",
        "downlevel-dts": "0.10.1",
        rimraf: "3.0.2",
        typescript: "~5.8.3"
      },
      engines: {
        node: ">=18.0.0"
      },
      typesVersions: {
        "<4.0": {
          "dist-types/*": [
            "dist-types/ts3.4/*"
          ]
        }
      },
      files: [
        "dist-*/**"
      ],
      author: {
        name: "AWS SDK for JavaScript Team",
        url: "https://aws.amazon.com/javascript/"
      },
      license: "Apache-2.0",
      browser: {
        "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
      },
      "react-native": {
        "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
      },
      homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-s3",
      repository: {
        type: "git",
        url: "https://github.com/aws/aws-sdk-js-v3.git",
        directory: "clients/client-s3"
      }
    };
  }
});

// ../../node_modules/@aws-sdk/middleware-bucket-endpoint/dist-cjs/index.js
var require_dist_cjs64 = __commonJS({
  "../../node_modules/@aws-sdk/middleware-bucket-endpoint/dist-cjs/index.js"(exports2, module2) {
    "use strict";
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var index_exports = {};
    __export2(index_exports, {
      NODE_DISABLE_MULTIREGION_ACCESS_POINT_CONFIG_OPTIONS: /* @__PURE__ */ __name(() => NODE_DISABLE_MULTIREGION_ACCESS_POINT_CONFIG_OPTIONS, "NODE_DISABLE_MULTIREGION_ACCESS_POINT_CONFIG_OPTIONS"),
      NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME: /* @__PURE__ */ __name(() => NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME, "NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME"),
      NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME: /* @__PURE__ */ __name(() => NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME, "NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME"),
      NODE_USE_ARN_REGION_CONFIG_OPTIONS: /* @__PURE__ */ __name(() => NODE_USE_ARN_REGION_CONFIG_OPTIONS, "NODE_USE_ARN_REGION_CONFIG_OPTIONS"),
      NODE_USE_ARN_REGION_ENV_NAME: /* @__PURE__ */ __name(() => NODE_USE_ARN_REGION_ENV_NAME, "NODE_USE_ARN_REGION_ENV_NAME"),
      NODE_USE_ARN_REGION_INI_NAME: /* @__PURE__ */ __name(() => NODE_USE_ARN_REGION_INI_NAME, "NODE_USE_ARN_REGION_INI_NAME"),
      bucketEndpointMiddleware: /* @__PURE__ */ __name(() => bucketEndpointMiddleware, "bucketEndpointMiddleware"),
      bucketEndpointMiddlewareOptions: /* @__PURE__ */ __name(() => bucketEndpointMiddlewareOptions, "bucketEndpointMiddlewareOptions"),
      bucketHostname: /* @__PURE__ */ __name(() => bucketHostname, "bucketHostname"),
      getArnResources: /* @__PURE__ */ __name(() => getArnResources, "getArnResources"),
      getBucketEndpointPlugin: /* @__PURE__ */ __name(() => getBucketEndpointPlugin, "getBucketEndpointPlugin"),
      getSuffixForArnEndpoint: /* @__PURE__ */ __name(() => getSuffixForArnEndpoint, "getSuffixForArnEndpoint"),
      resolveBucketEndpointConfig: /* @__PURE__ */ __name(() => resolveBucketEndpointConfig, "resolveBucketEndpointConfig"),
      validateAccountId: /* @__PURE__ */ __name(() => validateAccountId, "validateAccountId"),
      validateDNSHostLabel: /* @__PURE__ */ __name(() => validateDNSHostLabel, "validateDNSHostLabel"),
      validateNoDualstack: /* @__PURE__ */ __name(() => validateNoDualstack, "validateNoDualstack"),
      validateNoFIPS: /* @__PURE__ */ __name(() => validateNoFIPS, "validateNoFIPS"),
      validateOutpostService: /* @__PURE__ */ __name(() => validateOutpostService, "validateOutpostService"),
      validatePartition: /* @__PURE__ */ __name(() => validatePartition, "validatePartition"),
      validateRegion: /* @__PURE__ */ __name(() => validateRegion, "validateRegion")
    });
    module2.exports = __toCommonJS2(index_exports);
    var import_util_config_provider = require_dist_cjs29();
    var NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME = "AWS_S3_DISABLE_MULTIREGION_ACCESS_POINTS";
    var NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME = "s3_disable_multiregion_access_points";
    var NODE_DISABLE_MULTIREGION_ACCESS_POINT_CONFIG_OPTIONS = {
      environmentVariableSelector: /* @__PURE__ */ __name2((env2) => (0, import_util_config_provider.booleanSelector)(env2, NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME, import_util_config_provider.SelectorType.ENV), "environmentVariableSelector"),
      configFileSelector: /* @__PURE__ */ __name2((profile) => (0, import_util_config_provider.booleanSelector)(profile, NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME, import_util_config_provider.SelectorType.CONFIG), "configFileSelector"),
      default: false
    };
    var NODE_USE_ARN_REGION_ENV_NAME = "AWS_S3_USE_ARN_REGION";
    var NODE_USE_ARN_REGION_INI_NAME = "s3_use_arn_region";
    var NODE_USE_ARN_REGION_CONFIG_OPTIONS = {
      environmentVariableSelector: /* @__PURE__ */ __name2((env2) => (0, import_util_config_provider.booleanSelector)(env2, NODE_USE_ARN_REGION_ENV_NAME, import_util_config_provider.SelectorType.ENV), "environmentVariableSelector"),
      configFileSelector: /* @__PURE__ */ __name2((profile) => (0, import_util_config_provider.booleanSelector)(profile, NODE_USE_ARN_REGION_INI_NAME, import_util_config_provider.SelectorType.CONFIG), "configFileSelector"),
      /**
       * useArnRegion has specific behavior when undefined instead of false.
       * We therefore use undefined as the default value instead of false.
       */
      default: void 0
    };
    var import_util_arn_parser = require_dist_cjs60();
    var import_protocol_http16 = require_dist_cjs2();
    var DOMAIN_PATTERN = /^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/;
    var IP_ADDRESS_PATTERN = /(\d+\.){3}\d+/;
    var DOTS_PATTERN = /\.\./;
    var DOT_PATTERN = /\./;
    var S3_HOSTNAME_PATTERN = /^(.+\.)?s3(-fips)?(\.dualstack)?[.-]([a-z0-9-]+)\./;
    var S3_US_EAST_1_ALTNAME_PATTERN = /^s3(-external-1)?\.amazonaws\.com$/;
    var AWS_PARTITION_SUFFIX = "amazonaws.com";
    var isBucketNameOptions = /* @__PURE__ */ __name2((options) => typeof options.bucketName === "string", "isBucketNameOptions");
    var isDnsCompatibleBucketName = /* @__PURE__ */ __name2((bucketName) => DOMAIN_PATTERN.test(bucketName) && !IP_ADDRESS_PATTERN.test(bucketName) && !DOTS_PATTERN.test(bucketName), "isDnsCompatibleBucketName");
    var getRegionalSuffix = /* @__PURE__ */ __name2((hostname) => {
      const parts = hostname.match(S3_HOSTNAME_PATTERN);
      return [parts[4], hostname.replace(new RegExp(`^${parts[0]}`), "")];
    }, "getRegionalSuffix");
    var getSuffix = /* @__PURE__ */ __name2((hostname) => S3_US_EAST_1_ALTNAME_PATTERN.test(hostname) ? ["us-east-1", AWS_PARTITION_SUFFIX] : getRegionalSuffix(hostname), "getSuffix");
    var getSuffixForArnEndpoint = /* @__PURE__ */ __name2((hostname) => S3_US_EAST_1_ALTNAME_PATTERN.test(hostname) ? [hostname.replace(`.${AWS_PARTITION_SUFFIX}`, ""), AWS_PARTITION_SUFFIX] : getRegionalSuffix(hostname), "getSuffixForArnEndpoint");
    var validateArnEndpointOptions = /* @__PURE__ */ __name2((options) => {
      if (options.pathStyleEndpoint) {
        throw new Error("Path-style S3 endpoint is not supported when bucket is an ARN");
      }
      if (options.accelerateEndpoint) {
        throw new Error("Accelerate endpoint is not supported when bucket is an ARN");
      }
      if (!options.tlsCompatible) {
        throw new Error("HTTPS is required when bucket is an ARN");
      }
    }, "validateArnEndpointOptions");
    var validateService = /* @__PURE__ */ __name2((service) => {
      if (service !== "s3" && service !== "s3-outposts" && service !== "s3-object-lambda") {
        throw new Error("Expect 's3' or 's3-outposts' or 's3-object-lambda' in ARN service component");
      }
    }, "validateService");
    var validateS3Service = /* @__PURE__ */ __name2((service) => {
      if (service !== "s3") {
        throw new Error("Expect 's3' in Accesspoint ARN service component");
      }
    }, "validateS3Service");
    var validateOutpostService = /* @__PURE__ */ __name2((service) => {
      if (service !== "s3-outposts") {
        throw new Error("Expect 's3-posts' in Outpost ARN service component");
      }
    }, "validateOutpostService");
    var validatePartition = /* @__PURE__ */ __name2((partition3, options) => {
      if (partition3 !== options.clientPartition) {
        throw new Error(`Partition in ARN is incompatible, got "${partition3}" but expected "${options.clientPartition}"`);
      }
    }, "validatePartition");
    var validateRegion = /* @__PURE__ */ __name2((region, options) => {
    }, "validateRegion");
    var validateRegionalClient = /* @__PURE__ */ __name2((region) => {
      if (["s3-external-1", "aws-global"].includes(region)) {
        throw new Error(`Client region ${region} is not regional`);
      }
    }, "validateRegionalClient");
    var validateAccountId = /* @__PURE__ */ __name2((accountId) => {
      if (!/[0-9]{12}/.exec(accountId)) {
        throw new Error("Access point ARN accountID does not match regex '[0-9]{12}'");
      }
    }, "validateAccountId");
    var validateDNSHostLabel = /* @__PURE__ */ __name2((label, options = { tlsCompatible: true }) => {
      if (label.length >= 64 || !/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/.test(label) || /(\d+\.){3}\d+/.test(label) || /[.-]{2}/.test(label) || options?.tlsCompatible && DOT_PATTERN.test(label)) {
        throw new Error(`Invalid DNS label ${label}`);
      }
    }, "validateDNSHostLabel");
    var validateCustomEndpoint = /* @__PURE__ */ __name2((options) => {
      if (options.isCustomEndpoint) {
        if (options.dualstackEndpoint) throw new Error("Dualstack endpoint is not supported with custom endpoint");
        if (options.accelerateEndpoint) throw new Error("Accelerate endpoint is not supported with custom endpoint");
      }
    }, "validateCustomEndpoint");
    var getArnResources = /* @__PURE__ */ __name2((resource) => {
      const delimiter2 = resource.includes(":") ? ":" : "/";
      const [resourceType, ...rest] = resource.split(delimiter2);
      if (resourceType === "accesspoint") {
        if (rest.length !== 1 || rest[0] === "") {
          throw new Error(`Access Point ARN should have one resource accesspoint${delimiter2}{accesspointname}`);
        }
        return { accesspointName: rest[0] };
      } else if (resourceType === "outpost") {
        if (!rest[0] || rest[1] !== "accesspoint" || !rest[2] || rest.length !== 3) {
          throw new Error(
            `Outpost ARN should have resource outpost${delimiter2}{outpostId}${delimiter2}accesspoint${delimiter2}{accesspointName}`
          );
        }
        const [outpostId, _3, accesspointName] = rest;
        return { outpostId, accesspointName };
      } else {
        throw new Error(`ARN resource should begin with 'accesspoint${delimiter2}' or 'outpost${delimiter2}'`);
      }
    }, "getArnResources");
    var validateNoDualstack = /* @__PURE__ */ __name2((dualstackEndpoint) => {
    }, "validateNoDualstack");
    var validateNoFIPS = /* @__PURE__ */ __name2((useFipsEndpoint) => {
      if (useFipsEndpoint) throw new Error(`FIPS region is not supported with Outpost.`);
    }, "validateNoFIPS");
    var validateMrapAlias = /* @__PURE__ */ __name2((name) => {
      try {
        name.split(".").forEach((label) => {
          validateDNSHostLabel(label);
        });
      } catch (e3) {
        throw new Error(`"${name}" is not a DNS compatible name.`);
      }
    }, "validateMrapAlias");
    var bucketHostname = /* @__PURE__ */ __name2((options) => {
      validateCustomEndpoint(options);
      return isBucketNameOptions(options) ? (
        // Construct endpoint when bucketName is a string referring to a bucket name
        getEndpointFromBucketName(options)
      ) : (
        // Construct endpoint when bucketName is an ARN referring to an S3 resource like Access Point
        getEndpointFromArn(options)
      );
    }, "bucketHostname");
    var getEndpointFromBucketName = /* @__PURE__ */ __name2(({
      accelerateEndpoint = false,
      clientRegion: region,
      baseHostname,
      bucketName,
      dualstackEndpoint = false,
      fipsEndpoint = false,
      pathStyleEndpoint = false,
      tlsCompatible = true,
      isCustomEndpoint = false
    }) => {
      const [clientRegion, hostnameSuffix] = isCustomEndpoint ? [region, baseHostname] : getSuffix(baseHostname);
      if (pathStyleEndpoint || !isDnsCompatibleBucketName(bucketName) || tlsCompatible && DOT_PATTERN.test(bucketName)) {
        return {
          bucketEndpoint: false,
          hostname: dualstackEndpoint ? `s3.dualstack.${clientRegion}.${hostnameSuffix}` : baseHostname
        };
      }
      if (accelerateEndpoint) {
        baseHostname = `s3-accelerate${dualstackEndpoint ? ".dualstack" : ""}.${hostnameSuffix}`;
      } else if (dualstackEndpoint) {
        baseHostname = `s3.dualstack.${clientRegion}.${hostnameSuffix}`;
      }
      return {
        bucketEndpoint: true,
        hostname: `${bucketName}.${baseHostname}`
      };
    }, "getEndpointFromBucketName");
    var getEndpointFromArn = /* @__PURE__ */ __name2((options) => {
      const { isCustomEndpoint, baseHostname, clientRegion } = options;
      const hostnameSuffix = isCustomEndpoint ? baseHostname : getSuffixForArnEndpoint(baseHostname)[1];
      const {
        pathStyleEndpoint,
        accelerateEndpoint = false,
        fipsEndpoint = false,
        tlsCompatible = true,
        bucketName,
        clientPartition = "aws"
      } = options;
      validateArnEndpointOptions({ pathStyleEndpoint, accelerateEndpoint, tlsCompatible });
      const { service, partition: partition3, accountId, region, resource } = bucketName;
      validateService(service);
      validatePartition(partition3, { clientPartition });
      validateAccountId(accountId);
      const { accesspointName, outpostId } = getArnResources(resource);
      if (service === "s3-object-lambda") {
        return getEndpointFromObjectLambdaArn({ ...options, tlsCompatible, bucketName, accesspointName, hostnameSuffix });
      }
      if (region === "") {
        return getEndpointFromMRAPArn({ ...options, clientRegion, mrapAlias: accesspointName, hostnameSuffix });
      }
      if (outpostId) {
        return getEndpointFromOutpostArn({ ...options, clientRegion, outpostId, accesspointName, hostnameSuffix });
      }
      return getEndpointFromAccessPointArn({ ...options, clientRegion, accesspointName, hostnameSuffix });
    }, "getEndpointFromArn");
    var getEndpointFromObjectLambdaArn = /* @__PURE__ */ __name2(({
      dualstackEndpoint = false,
      fipsEndpoint = false,
      tlsCompatible = true,
      useArnRegion,
      clientRegion,
      clientSigningRegion = clientRegion,
      accesspointName,
      bucketName,
      hostnameSuffix
    }) => {
      const { accountId, region, service } = bucketName;
      validateRegionalClient(clientRegion);
      const DNSHostLabel = `${accesspointName}-${accountId}`;
      validateDNSHostLabel(DNSHostLabel, { tlsCompatible });
      const endpointRegion = useArnRegion ? region : clientRegion;
      const signingRegion = useArnRegion ? region : clientSigningRegion;
      return {
        bucketEndpoint: true,
        hostname: `${DNSHostLabel}.${service}${fipsEndpoint ? "-fips" : ""}.${endpointRegion}.${hostnameSuffix}`,
        signingRegion,
        signingService: service
      };
    }, "getEndpointFromObjectLambdaArn");
    var getEndpointFromMRAPArn = /* @__PURE__ */ __name2(({
      disableMultiregionAccessPoints,
      dualstackEndpoint = false,
      isCustomEndpoint,
      mrapAlias,
      hostnameSuffix
    }) => {
      if (disableMultiregionAccessPoints === true) {
        throw new Error("SDK is attempting to use a MRAP ARN. Please enable to feature.");
      }
      validateMrapAlias(mrapAlias);
      return {
        bucketEndpoint: true,
        hostname: `${mrapAlias}${isCustomEndpoint ? "" : `.accesspoint.s3-global`}.${hostnameSuffix}`,
        signingRegion: "*"
      };
    }, "getEndpointFromMRAPArn");
    var getEndpointFromOutpostArn = /* @__PURE__ */ __name2(({
      useArnRegion,
      clientRegion,
      clientSigningRegion = clientRegion,
      bucketName,
      outpostId,
      dualstackEndpoint = false,
      fipsEndpoint = false,
      tlsCompatible = true,
      accesspointName,
      isCustomEndpoint,
      hostnameSuffix
    }) => {
      validateRegionalClient(clientRegion);
      const DNSHostLabel = `${accesspointName}-${bucketName.accountId}`;
      validateDNSHostLabel(DNSHostLabel, { tlsCompatible });
      const endpointRegion = useArnRegion ? bucketName.region : clientRegion;
      const signingRegion = useArnRegion ? bucketName.region : clientSigningRegion;
      validateOutpostService(bucketName.service);
      validateDNSHostLabel(outpostId, { tlsCompatible });
      validateNoFIPS(fipsEndpoint);
      const hostnamePrefix = `${DNSHostLabel}.${outpostId}`;
      return {
        bucketEndpoint: true,
        hostname: `${hostnamePrefix}${isCustomEndpoint ? "" : `.s3-outposts.${endpointRegion}`}.${hostnameSuffix}`,
        signingRegion,
        signingService: "s3-outposts"
      };
    }, "getEndpointFromOutpostArn");
    var getEndpointFromAccessPointArn = /* @__PURE__ */ __name2(({
      useArnRegion,
      clientRegion,
      clientSigningRegion = clientRegion,
      bucketName,
      dualstackEndpoint = false,
      fipsEndpoint = false,
      tlsCompatible = true,
      accesspointName,
      isCustomEndpoint,
      hostnameSuffix
    }) => {
      validateRegionalClient(clientRegion);
      const hostnamePrefix = `${accesspointName}-${bucketName.accountId}`;
      validateDNSHostLabel(hostnamePrefix, { tlsCompatible });
      const endpointRegion = useArnRegion ? bucketName.region : clientRegion;
      const signingRegion = useArnRegion ? bucketName.region : clientSigningRegion;
      validateS3Service(bucketName.service);
      return {
        bucketEndpoint: true,
        hostname: `${hostnamePrefix}${isCustomEndpoint ? "" : `.s3-accesspoint${fipsEndpoint ? "-fips" : ""}${dualstackEndpoint ? ".dualstack" : ""}.${endpointRegion}`}.${hostnameSuffix}`,
        signingRegion
      };
    }, "getEndpointFromAccessPointArn");
    var bucketEndpointMiddleware = /* @__PURE__ */ __name2((options) => (next, context) => async (args) => {
      const { Bucket: bucketName } = args.input;
      let replaceBucketInPath = options.bucketEndpoint;
      const request2 = args.request;
      if (import_protocol_http16.HttpRequest.isInstance(request2)) {
        if (options.bucketEndpoint) {
          request2.hostname = bucketName;
        } else if ((0, import_util_arn_parser.validate)(bucketName)) {
          const bucketArn = (0, import_util_arn_parser.parse)(bucketName);
          const clientRegion = await options.region();
          const useDualstackEndpoint = await options.useDualstackEndpoint();
          const useFipsEndpoint = await options.useFipsEndpoint();
          const { partition: partition3, signingRegion = clientRegion } = await options.regionInfoProvider(clientRegion, { useDualstackEndpoint, useFipsEndpoint }) || {};
          const useArnRegion = await options.useArnRegion();
          const {
            hostname,
            bucketEndpoint,
            signingRegion: modifiedSigningRegion,
            signingService
          } = bucketHostname({
            bucketName: bucketArn,
            baseHostname: request2.hostname,
            accelerateEndpoint: options.useAccelerateEndpoint,
            dualstackEndpoint: useDualstackEndpoint,
            fipsEndpoint: useFipsEndpoint,
            pathStyleEndpoint: options.forcePathStyle,
            tlsCompatible: request2.protocol === "https:",
            useArnRegion,
            clientPartition: partition3,
            clientSigningRegion: signingRegion,
            clientRegion,
            isCustomEndpoint: options.isCustomEndpoint,
            disableMultiregionAccessPoints: await options.disableMultiregionAccessPoints()
          });
          if (modifiedSigningRegion && modifiedSigningRegion !== signingRegion) {
            context["signing_region"] = modifiedSigningRegion;
          }
          if (signingService && signingService !== "s3") {
            context["signing_service"] = signingService;
          }
          request2.hostname = hostname;
          replaceBucketInPath = bucketEndpoint;
        } else {
          const clientRegion = await options.region();
          const dualstackEndpoint = await options.useDualstackEndpoint();
          const fipsEndpoint = await options.useFipsEndpoint();
          const { hostname, bucketEndpoint } = bucketHostname({
            bucketName,
            clientRegion,
            baseHostname: request2.hostname,
            accelerateEndpoint: options.useAccelerateEndpoint,
            dualstackEndpoint,
            fipsEndpoint,
            pathStyleEndpoint: options.forcePathStyle,
            tlsCompatible: request2.protocol === "https:",
            isCustomEndpoint: options.isCustomEndpoint
          });
          request2.hostname = hostname;
          replaceBucketInPath = bucketEndpoint;
        }
        if (replaceBucketInPath) {
          request2.path = request2.path.replace(/^(\/)?[^\/]+/, "");
          if (request2.path === "") {
            request2.path = "/";
          }
        }
      }
      return next({ ...args, request: request2 });
    }, "bucketEndpointMiddleware");
    var bucketEndpointMiddlewareOptions = {
      tags: ["BUCKET_ENDPOINT"],
      name: "bucketEndpointMiddleware",
      relation: "before",
      toMiddleware: "hostHeaderMiddleware",
      override: true
    };
    var getBucketEndpointPlugin = /* @__PURE__ */ __name2((options) => ({
      applyToStack: /* @__PURE__ */ __name2((clientStack) => {
        clientStack.addRelativeTo(bucketEndpointMiddleware(options), bucketEndpointMiddlewareOptions);
      }, "applyToStack")
    }), "getBucketEndpointPlugin");
    function resolveBucketEndpointConfig(input) {
      const {
        bucketEndpoint = false,
        forcePathStyle = false,
        useAccelerateEndpoint = false,
        // useArnRegion has specific behavior when undefined instead of false.
        useArnRegion,
        disableMultiregionAccessPoints = false
      } = input;
      return Object.assign(input, {
        bucketEndpoint,
        forcePathStyle,
        useAccelerateEndpoint,
        useArnRegion: typeof useArnRegion === "function" ? useArnRegion : () => Promise.resolve(useArnRegion),
        disableMultiregionAccessPoints: typeof disableMultiregionAccessPoints === "function" ? disableMultiregionAccessPoints : () => Promise.resolve(disableMultiregionAccessPoints)
      });
    }
    __name(resolveBucketEndpointConfig, "resolveBucketEndpointConfig");
    __name2(resolveBucketEndpointConfig, "resolveBucketEndpointConfig");
  }
});

// ../../node_modules/@smithy/eventstream-codec/dist-cjs/index.js
var require_dist_cjs65 = __commonJS({
  "../../node_modules/@smithy/eventstream-codec/dist-cjs/index.js"(exports2, module2) {
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var src_exports = {};
    __export2(src_exports, {
      EventStreamCodec: /* @__PURE__ */ __name(() => EventStreamCodec, "EventStreamCodec"),
      HeaderMarshaller: /* @__PURE__ */ __name(() => HeaderMarshaller, "HeaderMarshaller"),
      Int64: /* @__PURE__ */ __name(() => Int64, "Int64"),
      MessageDecoderStream: /* @__PURE__ */ __name(() => MessageDecoderStream, "MessageDecoderStream"),
      MessageEncoderStream: /* @__PURE__ */ __name(() => MessageEncoderStream, "MessageEncoderStream"),
      SmithyMessageDecoderStream: /* @__PURE__ */ __name(() => SmithyMessageDecoderStream, "SmithyMessageDecoderStream"),
      SmithyMessageEncoderStream: /* @__PURE__ */ __name(() => SmithyMessageEncoderStream, "SmithyMessageEncoderStream")
    });
    module2.exports = __toCommonJS2(src_exports);
    var import_crc322 = require_main3();
    var import_util_hex_encoding = require_dist_cjs16();
    var Int64 = class _Int64 {
      static {
        __name(this, "_Int64");
      }
      constructor(bytes) {
        this.bytes = bytes;
        if (bytes.byteLength !== 8) {
          throw new Error("Int64 buffers must be exactly 8 bytes");
        }
      }
      static {
        __name2(this, "Int64");
      }
      static fromNumber(number) {
        if (number > 9223372036854776e3 || number < -9223372036854776e3) {
          throw new Error(`${number} is too large (or, if negative, too small) to represent as an Int64`);
        }
        const bytes = new Uint8Array(8);
        for (let i3 = 7, remaining = Math.abs(Math.round(number)); i3 > -1 && remaining > 0; i3--, remaining /= 256) {
          bytes[i3] = remaining;
        }
        if (number < 0) {
          negate(bytes);
        }
        return new _Int64(bytes);
      }
      /**
       * Called implicitly by infix arithmetic operators.
       */
      valueOf() {
        const bytes = this.bytes.slice(0);
        const negative = bytes[0] & 128;
        if (negative) {
          negate(bytes);
        }
        return parseInt((0, import_util_hex_encoding.toHex)(bytes), 16) * (negative ? -1 : 1);
      }
      toString() {
        return String(this.valueOf());
      }
    };
    function negate(bytes) {
      for (let i3 = 0; i3 < 8; i3++) {
        bytes[i3] ^= 255;
      }
      for (let i3 = 7; i3 > -1; i3--) {
        bytes[i3]++;
        if (bytes[i3] !== 0)
          break;
      }
    }
    __name(negate, "negate");
    __name2(negate, "negate");
    var HeaderMarshaller = class {
      static {
        __name(this, "HeaderMarshaller");
      }
      constructor(toUtf88, fromUtf86) {
        this.toUtf8 = toUtf88;
        this.fromUtf8 = fromUtf86;
      }
      static {
        __name2(this, "HeaderMarshaller");
      }
      format(headers) {
        const chunks2 = [];
        for (const headerName of Object.keys(headers)) {
          const bytes = this.fromUtf8(headerName);
          chunks2.push(Uint8Array.from([bytes.byteLength]), bytes, this.formatHeaderValue(headers[headerName]));
        }
        const out = new Uint8Array(chunks2.reduce((carry, bytes) => carry + bytes.byteLength, 0));
        let position = 0;
        for (const chunk of chunks2) {
          out.set(chunk, position);
          position += chunk.byteLength;
        }
        return out;
      }
      formatHeaderValue(header) {
        switch (header.type) {
          case "boolean":
            return Uint8Array.from([
              header.value ? 0 : 1
              /* boolFalse */
            ]);
          case "byte":
            return Uint8Array.from([2, header.value]);
          case "short":
            const shortView = new DataView(new ArrayBuffer(3));
            shortView.setUint8(
              0,
              3
              /* short */
            );
            shortView.setInt16(1, header.value, false);
            return new Uint8Array(shortView.buffer);
          case "integer":
            const intView = new DataView(new ArrayBuffer(5));
            intView.setUint8(
              0,
              4
              /* integer */
            );
            intView.setInt32(1, header.value, false);
            return new Uint8Array(intView.buffer);
          case "long":
            const longBytes = new Uint8Array(9);
            longBytes[0] = 5;
            longBytes.set(header.value.bytes, 1);
            return longBytes;
          case "binary":
            const binView = new DataView(new ArrayBuffer(3 + header.value.byteLength));
            binView.setUint8(
              0,
              6
              /* byteArray */
            );
            binView.setUint16(1, header.value.byteLength, false);
            const binBytes = new Uint8Array(binView.buffer);
            binBytes.set(header.value, 3);
            return binBytes;
          case "string":
            const utf8Bytes = this.fromUtf8(header.value);
            const strView = new DataView(new ArrayBuffer(3 + utf8Bytes.byteLength));
            strView.setUint8(
              0,
              7
              /* string */
            );
            strView.setUint16(1, utf8Bytes.byteLength, false);
            const strBytes = new Uint8Array(strView.buffer);
            strBytes.set(utf8Bytes, 3);
            return strBytes;
          case "timestamp":
            const tsBytes = new Uint8Array(9);
            tsBytes[0] = 8;
            tsBytes.set(Int64.fromNumber(header.value.valueOf()).bytes, 1);
            return tsBytes;
          case "uuid":
            if (!UUID_PATTERN.test(header.value)) {
              throw new Error(`Invalid UUID received: ${header.value}`);
            }
            const uuidBytes = new Uint8Array(17);
            uuidBytes[0] = 9;
            uuidBytes.set((0, import_util_hex_encoding.fromHex)(header.value.replace(/\-/g, "")), 1);
            return uuidBytes;
        }
      }
      parse(headers) {
        const out = {};
        let position = 0;
        while (position < headers.byteLength) {
          const nameLength = headers.getUint8(position++);
          const name = this.toUtf8(new Uint8Array(headers.buffer, headers.byteOffset + position, nameLength));
          position += nameLength;
          switch (headers.getUint8(position++)) {
            case 0:
              out[name] = {
                type: BOOLEAN_TAG,
                value: true
              };
              break;
            case 1:
              out[name] = {
                type: BOOLEAN_TAG,
                value: false
              };
              break;
            case 2:
              out[name] = {
                type: BYTE_TAG,
                value: headers.getInt8(position++)
              };
              break;
            case 3:
              out[name] = {
                type: SHORT_TAG,
                value: headers.getInt16(position, false)
              };
              position += 2;
              break;
            case 4:
              out[name] = {
                type: INT_TAG,
                value: headers.getInt32(position, false)
              };
              position += 4;
              break;
            case 5:
              out[name] = {
                type: LONG_TAG,
                value: new Int64(new Uint8Array(headers.buffer, headers.byteOffset + position, 8))
              };
              position += 8;
              break;
            case 6:
              const binaryLength = headers.getUint16(position, false);
              position += 2;
              out[name] = {
                type: BINARY_TAG,
                value: new Uint8Array(headers.buffer, headers.byteOffset + position, binaryLength)
              };
              position += binaryLength;
              break;
            case 7:
              const stringLength = headers.getUint16(position, false);
              position += 2;
              out[name] = {
                type: STRING_TAG,
                value: this.toUtf8(new Uint8Array(headers.buffer, headers.byteOffset + position, stringLength))
              };
              position += stringLength;
              break;
            case 8:
              out[name] = {
                type: TIMESTAMP_TAG,
                value: new Date(new Int64(new Uint8Array(headers.buffer, headers.byteOffset + position, 8)).valueOf())
              };
              position += 8;
              break;
            case 9:
              const uuidBytes = new Uint8Array(headers.buffer, headers.byteOffset + position, 16);
              position += 16;
              out[name] = {
                type: UUID_TAG,
                value: `${(0, import_util_hex_encoding.toHex)(uuidBytes.subarray(0, 4))}-${(0, import_util_hex_encoding.toHex)(uuidBytes.subarray(4, 6))}-${(0, import_util_hex_encoding.toHex)(
                  uuidBytes.subarray(6, 8)
                )}-${(0, import_util_hex_encoding.toHex)(uuidBytes.subarray(8, 10))}-${(0, import_util_hex_encoding.toHex)(uuidBytes.subarray(10))}`
              };
              break;
            default:
              throw new Error(`Unrecognized header type tag`);
          }
        }
        return out;
      }
    };
    var BOOLEAN_TAG = "boolean";
    var BYTE_TAG = "byte";
    var SHORT_TAG = "short";
    var INT_TAG = "integer";
    var LONG_TAG = "long";
    var BINARY_TAG = "binary";
    var STRING_TAG = "string";
    var TIMESTAMP_TAG = "timestamp";
    var UUID_TAG = "uuid";
    var UUID_PATTERN = /^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;
    var import_crc32 = require_main3();
    var PRELUDE_MEMBER_LENGTH = 4;
    var PRELUDE_LENGTH = PRELUDE_MEMBER_LENGTH * 2;
    var CHECKSUM_LENGTH = 4;
    var MINIMUM_MESSAGE_LENGTH = PRELUDE_LENGTH + CHECKSUM_LENGTH * 2;
    function splitMessage({ byteLength, byteOffset, buffer }) {
      if (byteLength < MINIMUM_MESSAGE_LENGTH) {
        throw new Error("Provided message too short to accommodate event stream message overhead");
      }
      const view = new DataView(buffer, byteOffset, byteLength);
      const messageLength = view.getUint32(0, false);
      if (byteLength !== messageLength) {
        throw new Error("Reported message length does not match received message length");
      }
      const headerLength = view.getUint32(PRELUDE_MEMBER_LENGTH, false);
      const expectedPreludeChecksum = view.getUint32(PRELUDE_LENGTH, false);
      const expectedMessageChecksum = view.getUint32(byteLength - CHECKSUM_LENGTH, false);
      const checksummer = new import_crc32.Crc32().update(new Uint8Array(buffer, byteOffset, PRELUDE_LENGTH));
      if (expectedPreludeChecksum !== checksummer.digest()) {
        throw new Error(
          `The prelude checksum specified in the message (${expectedPreludeChecksum}) does not match the calculated CRC32 checksum (${checksummer.digest()})`
        );
      }
      checksummer.update(
        new Uint8Array(buffer, byteOffset + PRELUDE_LENGTH, byteLength - (PRELUDE_LENGTH + CHECKSUM_LENGTH))
      );
      if (expectedMessageChecksum !== checksummer.digest()) {
        throw new Error(
          `The message checksum (${checksummer.digest()}) did not match the expected value of ${expectedMessageChecksum}`
        );
      }
      return {
        headers: new DataView(buffer, byteOffset + PRELUDE_LENGTH + CHECKSUM_LENGTH, headerLength),
        body: new Uint8Array(
          buffer,
          byteOffset + PRELUDE_LENGTH + CHECKSUM_LENGTH + headerLength,
          messageLength - headerLength - (PRELUDE_LENGTH + CHECKSUM_LENGTH + CHECKSUM_LENGTH)
        )
      };
    }
    __name(splitMessage, "splitMessage");
    __name2(splitMessage, "splitMessage");
    var EventStreamCodec = class {
      static {
        __name(this, "EventStreamCodec");
      }
      static {
        __name2(this, "EventStreamCodec");
      }
      constructor(toUtf88, fromUtf86) {
        this.headerMarshaller = new HeaderMarshaller(toUtf88, fromUtf86);
        this.messageBuffer = [];
        this.isEndOfStream = false;
      }
      feed(message2) {
        this.messageBuffer.push(this.decode(message2));
      }
      endOfStream() {
        this.isEndOfStream = true;
      }
      getMessage() {
        const message2 = this.messageBuffer.pop();
        const isEndOfStream = this.isEndOfStream;
        return {
          getMessage() {
            return message2;
          },
          isEndOfStream() {
            return isEndOfStream;
          }
        };
      }
      getAvailableMessages() {
        const messages = this.messageBuffer;
        this.messageBuffer = [];
        const isEndOfStream = this.isEndOfStream;
        return {
          getMessages() {
            return messages;
          },
          isEndOfStream() {
            return isEndOfStream;
          }
        };
      }
      /**
       * Convert a structured JavaScript object with tagged headers into a binary
       * event stream message.
       */
      encode({ headers: rawHeaders, body }) {
        const headers = this.headerMarshaller.format(rawHeaders);
        const length = headers.byteLength + body.byteLength + 16;
        const out = new Uint8Array(length);
        const view = new DataView(out.buffer, out.byteOffset, out.byteLength);
        const checksum = new import_crc322.Crc32();
        view.setUint32(0, length, false);
        view.setUint32(4, headers.byteLength, false);
        view.setUint32(8, checksum.update(out.subarray(0, 8)).digest(), false);
        out.set(headers, 12);
        out.set(body, headers.byteLength + 12);
        view.setUint32(length - 4, checksum.update(out.subarray(8, length - 4)).digest(), false);
        return out;
      }
      /**
       * Convert a binary event stream message into a JavaScript object with an
       * opaque, binary body and tagged, parsed headers.
       */
      decode(message2) {
        const { headers, body } = splitMessage(message2);
        return { headers: this.headerMarshaller.parse(headers), body };
      }
      /**
       * Convert a structured JavaScript object with tagged headers into a binary
       * event stream message header.
       */
      formatHeaders(rawHeaders) {
        return this.headerMarshaller.format(rawHeaders);
      }
    };
    var MessageDecoderStream = class {
      static {
        __name(this, "MessageDecoderStream");
      }
      constructor(options) {
        this.options = options;
      }
      static {
        __name2(this, "MessageDecoderStream");
      }
      [Symbol.asyncIterator]() {
        return this.asyncIterator();
      }
      async *asyncIterator() {
        for await (const bytes of this.options.inputStream) {
          const decoded = this.options.decoder.decode(bytes);
          yield decoded;
        }
      }
    };
    var MessageEncoderStream = class {
      static {
        __name(this, "MessageEncoderStream");
      }
      constructor(options) {
        this.options = options;
      }
      static {
        __name2(this, "MessageEncoderStream");
      }
      [Symbol.asyncIterator]() {
        return this.asyncIterator();
      }
      async *asyncIterator() {
        for await (const msg of this.options.messageStream) {
          const encoded = this.options.encoder.encode(msg);
          yield encoded;
        }
        if (this.options.includeEndFrame) {
          yield new Uint8Array(0);
        }
      }
    };
    var SmithyMessageDecoderStream = class {
      static {
        __name(this, "SmithyMessageDecoderStream");
      }
      constructor(options) {
        this.options = options;
      }
      static {
        __name2(this, "SmithyMessageDecoderStream");
      }
      [Symbol.asyncIterator]() {
        return this.asyncIterator();
      }
      async *asyncIterator() {
        for await (const message2 of this.options.messageStream) {
          const deserialized = await this.options.deserializer(message2);
          if (deserialized === void 0)
            continue;
          yield deserialized;
        }
      }
    };
    var SmithyMessageEncoderStream = class {
      static {
        __name(this, "SmithyMessageEncoderStream");
      }
      constructor(options) {
        this.options = options;
      }
      static {
        __name2(this, "SmithyMessageEncoderStream");
      }
      [Symbol.asyncIterator]() {
        return this.asyncIterator();
      }
      async *asyncIterator() {
        for await (const chunk of this.options.inputStream) {
          const payloadBuf = this.options.serializer(chunk);
          yield payloadBuf;
        }
      }
    };
  }
});

// ../../node_modules/@smithy/eventstream-serde-universal/dist-cjs/index.js
var require_dist_cjs66 = __commonJS({
  "../../node_modules/@smithy/eventstream-serde-universal/dist-cjs/index.js"(exports2, module2) {
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var src_exports = {};
    __export2(src_exports, {
      EventStreamMarshaller: /* @__PURE__ */ __name(() => EventStreamMarshaller, "EventStreamMarshaller"),
      eventStreamSerdeProvider: /* @__PURE__ */ __name(() => eventStreamSerdeProvider, "eventStreamSerdeProvider")
    });
    module2.exports = __toCommonJS2(src_exports);
    var import_eventstream_codec = require_dist_cjs65();
    function getChunkedStream(source) {
      let currentMessageTotalLength = 0;
      let currentMessagePendingLength = 0;
      let currentMessage = null;
      let messageLengthBuffer = null;
      const allocateMessage = /* @__PURE__ */ __name2((size) => {
        if (typeof size !== "number") {
          throw new Error("Attempted to allocate an event message where size was not a number: " + size);
        }
        currentMessageTotalLength = size;
        currentMessagePendingLength = 4;
        currentMessage = new Uint8Array(size);
        const currentMessageView = new DataView(currentMessage.buffer);
        currentMessageView.setUint32(0, size, false);
      }, "allocateMessage");
      const iterator = /* @__PURE__ */ __name2(async function* () {
        const sourceIterator = source[Symbol.asyncIterator]();
        while (true) {
          const { value, done } = await sourceIterator.next();
          if (done) {
            if (!currentMessageTotalLength) {
              return;
            } else if (currentMessageTotalLength === currentMessagePendingLength) {
              yield currentMessage;
            } else {
              throw new Error("Truncated event message received.");
            }
            return;
          }
          const chunkLength = value.length;
          let currentOffset = 0;
          while (currentOffset < chunkLength) {
            if (!currentMessage) {
              const bytesRemaining = chunkLength - currentOffset;
              if (!messageLengthBuffer) {
                messageLengthBuffer = new Uint8Array(4);
              }
              const numBytesForTotal = Math.min(
                4 - currentMessagePendingLength,
                // remaining bytes to fill the messageLengthBuffer
                bytesRemaining
                // bytes left in chunk
              );
              messageLengthBuffer.set(
                // @ts-ignore error TS2532: Object is possibly 'undefined' for value
                value.slice(currentOffset, currentOffset + numBytesForTotal),
                currentMessagePendingLength
              );
              currentMessagePendingLength += numBytesForTotal;
              currentOffset += numBytesForTotal;
              if (currentMessagePendingLength < 4) {
                break;
              }
              allocateMessage(new DataView(messageLengthBuffer.buffer).getUint32(0, false));
              messageLengthBuffer = null;
            }
            const numBytesToWrite = Math.min(
              currentMessageTotalLength - currentMessagePendingLength,
              // number of bytes left to complete message
              chunkLength - currentOffset
              // number of bytes left in the original chunk
            );
            currentMessage.set(
              // @ts-ignore error TS2532: Object is possibly 'undefined' for value
              value.slice(currentOffset, currentOffset + numBytesToWrite),
              currentMessagePendingLength
            );
            currentMessagePendingLength += numBytesToWrite;
            currentOffset += numBytesToWrite;
            if (currentMessageTotalLength && currentMessageTotalLength === currentMessagePendingLength) {
              yield currentMessage;
              currentMessage = null;
              currentMessageTotalLength = 0;
              currentMessagePendingLength = 0;
            }
          }
        }
      }, "iterator");
      return {
        [Symbol.asyncIterator]: iterator
      };
    }
    __name(getChunkedStream, "getChunkedStream");
    __name2(getChunkedStream, "getChunkedStream");
    function getMessageUnmarshaller(deserializer, toUtf88) {
      return async function(message2) {
        const { value: messageType } = message2.headers[":message-type"];
        if (messageType === "error") {
          const unmodeledError = new Error(message2.headers[":error-message"].value || "UnknownError");
          unmodeledError.name = message2.headers[":error-code"].value;
          throw unmodeledError;
        } else if (messageType === "exception") {
          const code = message2.headers[":exception-type"].value;
          const exception = { [code]: message2 };
          const deserializedException = await deserializer(exception);
          if (deserializedException.$unknown) {
            const error5 = new Error(toUtf88(message2.body));
            error5.name = code;
            throw error5;
          }
          throw deserializedException[code];
        } else if (messageType === "event") {
          const event = {
            [message2.headers[":event-type"].value]: message2
          };
          const deserialized = await deserializer(event);
          if (deserialized.$unknown)
            return;
          return deserialized;
        } else {
          throw Error(`Unrecognizable event type: ${message2.headers[":event-type"].value}`);
        }
      };
    }
    __name(getMessageUnmarshaller, "getMessageUnmarshaller");
    __name2(getMessageUnmarshaller, "getMessageUnmarshaller");
    var EventStreamMarshaller = class {
      static {
        __name(this, "EventStreamMarshaller");
      }
      static {
        __name2(this, "EventStreamMarshaller");
      }
      constructor({ utf8Encoder, utf8Decoder }) {
        this.eventStreamCodec = new import_eventstream_codec.EventStreamCodec(utf8Encoder, utf8Decoder);
        this.utfEncoder = utf8Encoder;
      }
      deserialize(body, deserializer) {
        const inputStream = getChunkedStream(body);
        return new import_eventstream_codec.SmithyMessageDecoderStream({
          messageStream: new import_eventstream_codec.MessageDecoderStream({ inputStream, decoder: this.eventStreamCodec }),
          // @ts-expect-error Type 'T' is not assignable to type 'Record<string, any>'
          deserializer: getMessageUnmarshaller(deserializer, this.utfEncoder)
        });
      }
      serialize(inputStream, serializer) {
        return new import_eventstream_codec.MessageEncoderStream({
          messageStream: new import_eventstream_codec.SmithyMessageEncoderStream({ inputStream, serializer }),
          encoder: this.eventStreamCodec,
          includeEndFrame: true
        });
      }
    };
    var eventStreamSerdeProvider = /* @__PURE__ */ __name2((options) => new EventStreamMarshaller(options), "eventStreamSerdeProvider");
  }
});

// ../../node_modules/@smithy/eventstream-serde-node/dist-cjs/index.js
var require_dist_cjs67 = __commonJS({
  "../../node_modules/@smithy/eventstream-serde-node/dist-cjs/index.js"(exports2, module2) {
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var src_exports = {};
    __export2(src_exports, {
      EventStreamMarshaller: /* @__PURE__ */ __name(() => EventStreamMarshaller, "EventStreamMarshaller"),
      eventStreamSerdeProvider: /* @__PURE__ */ __name(() => eventStreamSerdeProvider, "eventStreamSerdeProvider")
    });
    module2.exports = __toCommonJS2(src_exports);
    var import_eventstream_serde_universal = require_dist_cjs66();
    var import_stream2 = require("stream");
    async function* readabletoIterable(readStream) {
      let streamEnded = false;
      let generationEnded = false;
      const records = new Array();
      readStream.on("error", (err) => {
        if (!streamEnded) {
          streamEnded = true;
        }
        if (err) {
          throw err;
        }
      });
      readStream.on("data", (data3) => {
        records.push(data3);
      });
      readStream.on("end", () => {
        streamEnded = true;
      });
      while (!generationEnded) {
        const value = await new Promise((resolve13) => setTimeout(() => resolve13(records.shift()), 0));
        if (value) {
          yield value;
        }
        generationEnded = streamEnded && records.length === 0;
      }
    }
    __name(readabletoIterable, "readabletoIterable");
    __name2(readabletoIterable, "readabletoIterable");
    var EventStreamMarshaller = class {
      static {
        __name(this, "EventStreamMarshaller");
      }
      static {
        __name2(this, "EventStreamMarshaller");
      }
      constructor({ utf8Encoder, utf8Decoder }) {
        this.universalMarshaller = new import_eventstream_serde_universal.EventStreamMarshaller({
          utf8Decoder,
          utf8Encoder
        });
      }
      deserialize(body, deserializer) {
        const bodyIterable = typeof body[Symbol.asyncIterator] === "function" ? body : readabletoIterable(body);
        return this.universalMarshaller.deserialize(bodyIterable, deserializer);
      }
      serialize(input, serializer) {
        return import_stream2.Readable.from(this.universalMarshaller.serialize(input, serializer));
      }
    };
    var eventStreamSerdeProvider = /* @__PURE__ */ __name2((options) => new EventStreamMarshaller(options), "eventStreamSerdeProvider");
  }
});

// ../../node_modules/@smithy/hash-stream-node/dist-cjs/index.js
var require_dist_cjs68 = __commonJS({
  "../../node_modules/@smithy/hash-stream-node/dist-cjs/index.js"(exports2, module2) {
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var src_exports = {};
    __export2(src_exports, {
      fileStreamHasher: /* @__PURE__ */ __name(() => fileStreamHasher, "fileStreamHasher"),
      readableStreamHasher: /* @__PURE__ */ __name(() => readableStreamHasher, "readableStreamHasher")
    });
    module2.exports = __toCommonJS2(src_exports);
    var import_fs7 = require("fs");
    var import_util_utf810 = require_dist_cjs10();
    var import_stream2 = require("stream");
    var HashCalculator = class extends import_stream2.Writable {
      static {
        __name(this, "HashCalculator");
      }
      constructor(hash, options) {
        super(options);
        this.hash = hash;
      }
      static {
        __name2(this, "HashCalculator");
      }
      _write(chunk, encoding, callback) {
        try {
          this.hash.update((0, import_util_utf810.toUint8Array)(chunk));
        } catch (err) {
          return callback(err);
        }
        callback();
      }
    };
    var fileStreamHasher = /* @__PURE__ */ __name2((hashCtor, fileStream) => new Promise((resolve13, reject) => {
      if (!isReadStream(fileStream)) {
        reject(new Error("Unable to calculate hash for non-file streams."));
        return;
      }
      const fileStreamTee = (0, import_fs7.createReadStream)(fileStream.path, {
        start: fileStream.start,
        end: fileStream.end
      });
      const hash = new hashCtor();
      const hashCalculator = new HashCalculator(hash);
      fileStreamTee.pipe(hashCalculator);
      fileStreamTee.on("error", (err) => {
        hashCalculator.end();
        reject(err);
      });
      hashCalculator.on("error", reject);
      hashCalculator.on("finish", function() {
        hash.digest().then(resolve13).catch(reject);
      });
    }), "fileStreamHasher");
    var isReadStream = /* @__PURE__ */ __name2((stream3) => typeof stream3.path === "string", "isReadStream");
    var readableStreamHasher = /* @__PURE__ */ __name2((hashCtor, readableStream) => {
      if (readableStream.readableFlowing !== null) {
        throw new Error("Unable to calculate hash for flowing readable stream");
      }
      const hash = new hashCtor();
      const hashCalculator = new HashCalculator(hash);
      readableStream.pipe(hashCalculator);
      return new Promise((resolve13, reject) => {
        readableStream.on("error", (err) => {
          hashCalculator.end();
          reject(err);
        });
        hashCalculator.on("error", reject);
        hashCalculator.on("finish", () => {
          hash.digest().then(resolve13).catch(reject);
        });
      });
    }, "readableStreamHasher");
  }
});

// ../../node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.shared.js
var require_runtimeConfig_shared3 = __commonJS({
  "../../node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.shared.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.getRuntimeConfig = void 0;
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var signature_v4_multi_region_1 = require_dist_cjs63();
    var smithy_client_1 = require_dist_cjs26();
    var url_parser_1 = require_dist_cjs20();
    var util_base64_1 = require_dist_cjs11();
    var util_stream_1 = require_dist_cjs17();
    var util_utf8_1 = require_dist_cjs10();
    var httpAuthSchemeProvider_1 = require_httpAuthSchemeProvider3();
    var endpointResolver_1 = require_endpointResolver3();
    var getRuntimeConfig5 = /* @__PURE__ */ __name((config) => {
      return {
        apiVersion: "2006-03-01",
        base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
        base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
        disableHostPrefix: config?.disableHostPrefix ?? false,
        endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
        extensions: config?.extensions ?? [],
        getAwsChunkedEncodingStream: config?.getAwsChunkedEncodingStream ?? util_stream_1.getAwsChunkedEncodingStream,
        httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultS3HttpAuthSchemeProvider,
        httpAuthSchemes: config?.httpAuthSchemes ?? [
          {
            schemeId: "aws.auth#sigv4",
            identityProvider: /* @__PURE__ */ __name((ipc) => ipc.getIdentityProvider("aws.auth#sigv4"), "identityProvider"),
            signer: new core_1.AwsSdkSigV4Signer()
          },
          {
            schemeId: "aws.auth#sigv4a",
            identityProvider: /* @__PURE__ */ __name((ipc) => ipc.getIdentityProvider("aws.auth#sigv4a"), "identityProvider"),
            signer: new core_1.AwsSdkSigV4ASigner()
          }
        ],
        logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
        sdkStreamMixin: config?.sdkStreamMixin ?? util_stream_1.sdkStreamMixin,
        serviceId: config?.serviceId ?? "S3",
        signerConstructor: config?.signerConstructor ?? signature_v4_multi_region_1.SignatureV4MultiRegion,
        signingEscapePath: config?.signingEscapePath ?? false,
        urlParser: config?.urlParser ?? url_parser_1.parseUrl,
        useArnRegion: config?.useArnRegion ?? void 0,
        utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
        utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8
      };
    }, "getRuntimeConfig");
    exports2.getRuntimeConfig = getRuntimeConfig5;
  }
});

// ../../node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.js
var require_runtimeConfig3 = __commonJS({
  "../../node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.getRuntimeConfig = void 0;
    var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
    var package_json_1 = tslib_1.__importDefault(require_package3());
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var credential_provider_node_1 = require_dist_cjs52();
    var middleware_bucket_endpoint_1 = require_dist_cjs64();
    var middleware_flexible_checksums_1 = require_dist_cjs59();
    var middleware_sdk_s3_1 = require_dist_cjs61();
    var util_user_agent_node_1 = require_dist_cjs41();
    var config_resolver_1 = require_dist_cjs30();
    var eventstream_serde_node_1 = require_dist_cjs67();
    var hash_node_1 = require_dist_cjs42();
    var hash_stream_node_1 = require_dist_cjs68();
    var middleware_retry_1 = require_dist_cjs37();
    var node_config_provider_1 = require_dist_cjs33();
    var node_http_handler_1 = require_dist_cjs14();
    var util_body_length_node_1 = require_dist_cjs43();
    var util_retry_1 = require_dist_cjs36();
    var runtimeConfig_shared_1 = require_runtimeConfig_shared3();
    var smithy_client_1 = require_dist_cjs26();
    var util_defaults_mode_node_1 = require_dist_cjs44();
    var smithy_client_2 = require_dist_cjs26();
    var getRuntimeConfig5 = /* @__PURE__ */ __name((config) => {
      (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
      const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
      const defaultConfigProvider = /* @__PURE__ */ __name(() => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode), "defaultConfigProvider");
      const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
      (0, core_1.emitWarningIfUnsupportedVersion)(process.version);
      const loaderConfig = {
        profile: config?.profile,
        logger: clientSharedValues.logger
      };
      return {
        ...clientSharedValues,
        ...config,
        runtime: "node",
        defaultsMode,
        authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
        bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
        credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
        defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
        disableS3ExpressSessionAuth: config?.disableS3ExpressSessionAuth ?? (0, node_config_provider_1.loadConfig)(middleware_sdk_s3_1.NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS, loaderConfig),
        eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventstream_serde_node_1.eventStreamSerdeProvider,
        maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
        md5: config?.md5 ?? hash_node_1.Hash.bind(null, "md5"),
        region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
        requestChecksumCalculation: config?.requestChecksumCalculation ?? (0, node_config_provider_1.loadConfig)(middleware_flexible_checksums_1.NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS, loaderConfig),
        requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
        responseChecksumValidation: config?.responseChecksumValidation ?? (0, node_config_provider_1.loadConfig)(middleware_flexible_checksums_1.NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS, loaderConfig),
        retryMode: config?.retryMode ?? (0, node_config_provider_1.loadConfig)({
          ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
          default: /* @__PURE__ */ __name(async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE, "default")
        }, config),
        sha1: config?.sha1 ?? hash_node_1.Hash.bind(null, "sha1"),
        sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
        sigv4aSigningRegionSet: config?.sigv4aSigningRegionSet ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_SIGV4A_CONFIG_OPTIONS, loaderConfig),
        streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
        streamHasher: config?.streamHasher ?? hash_stream_node_1.readableStreamHasher,
        useArnRegion: config?.useArnRegion ?? (0, node_config_provider_1.loadConfig)(middleware_bucket_endpoint_1.NODE_USE_ARN_REGION_CONFIG_OPTIONS, loaderConfig),
        useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
        useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
        userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig)
      };
    }, "getRuntimeConfig");
    exports2.getRuntimeConfig = getRuntimeConfig5;
  }
});

// ../../node_modules/@aws-sdk/middleware-ssec/dist-cjs/index.js
var require_dist_cjs69 = __commonJS({
  "../../node_modules/@aws-sdk/middleware-ssec/dist-cjs/index.js"(exports2, module2) {
    "use strict";
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var index_exports = {};
    __export2(index_exports, {
      getSsecPlugin: /* @__PURE__ */ __name(() => getSsecPlugin, "getSsecPlugin"),
      isValidBase64EncodedSSECustomerKey: /* @__PURE__ */ __name(() => isValidBase64EncodedSSECustomerKey, "isValidBase64EncodedSSECustomerKey"),
      ssecMiddleware: /* @__PURE__ */ __name(() => ssecMiddleware, "ssecMiddleware"),
      ssecMiddlewareOptions: /* @__PURE__ */ __name(() => ssecMiddlewareOptions, "ssecMiddlewareOptions")
    });
    module2.exports = __toCommonJS2(index_exports);
    function ssecMiddleware(options) {
      return (next) => async (args) => {
        const input = { ...args.input };
        const properties = [
          {
            target: "SSECustomerKey",
            hash: "SSECustomerKeyMD5"
          },
          {
            target: "CopySourceSSECustomerKey",
            hash: "CopySourceSSECustomerKeyMD5"
          }
        ];
        for (const prop of properties) {
          const value = input[prop.target];
          if (value) {
            let valueForHash;
            if (typeof value === "string") {
              if (isValidBase64EncodedSSECustomerKey(value, options)) {
                valueForHash = options.base64Decoder(value);
              } else {
                valueForHash = options.utf8Decoder(value);
                input[prop.target] = options.base64Encoder(valueForHash);
              }
            } else {
              valueForHash = ArrayBuffer.isView(value) ? new Uint8Array(value.buffer, value.byteOffset, value.byteLength) : new Uint8Array(value);
              input[prop.target] = options.base64Encoder(valueForHash);
            }
            const hash = new options.md5();
            hash.update(valueForHash);
            input[prop.hash] = options.base64Encoder(await hash.digest());
          }
        }
        return next({
          ...args,
          input
        });
      };
    }
    __name(ssecMiddleware, "ssecMiddleware");
    __name2(ssecMiddleware, "ssecMiddleware");
    var ssecMiddlewareOptions = {
      name: "ssecMiddleware",
      step: "initialize",
      tags: ["SSE"],
      override: true
    };
    var getSsecPlugin = /* @__PURE__ */ __name2((config) => ({
      applyToStack: /* @__PURE__ */ __name2((clientStack) => {
        clientStack.add(ssecMiddleware(config), ssecMiddlewareOptions);
      }, "applyToStack")
    }), "getSsecPlugin");
    function isValidBase64EncodedSSECustomerKey(str, options) {
      const base64Regex = /^(?:[A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/;
      if (!base64Regex.test(str)) return false;
      try {
        const decodedBytes = options.base64Decoder(str);
        return decodedBytes.length === 32;
      } catch {
        return false;
      }
    }
    __name(isValidBase64EncodedSSECustomerKey, "isValidBase64EncodedSSECustomerKey");
    __name2(isValidBase64EncodedSSECustomerKey, "isValidBase64EncodedSSECustomerKey");
  }
});

// ../../node_modules/@aws-sdk/middleware-location-constraint/dist-cjs/index.js
var require_dist_cjs70 = __commonJS({
  "../../node_modules/@aws-sdk/middleware-location-constraint/dist-cjs/index.js"(exports2, module2) {
    "use strict";
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var index_exports = {};
    __export2(index_exports, {
      getLocationConstraintPlugin: /* @__PURE__ */ __name(() => getLocationConstraintPlugin, "getLocationConstraintPlugin"),
      locationConstraintMiddleware: /* @__PURE__ */ __name(() => locationConstraintMiddleware, "locationConstraintMiddleware"),
      locationConstraintMiddlewareOptions: /* @__PURE__ */ __name(() => locationConstraintMiddlewareOptions, "locationConstraintMiddlewareOptions")
    });
    module2.exports = __toCommonJS2(index_exports);
    function locationConstraintMiddleware(options) {
      return (next) => async (args) => {
        const { CreateBucketConfiguration } = args.input;
        const region = await options.region();
        if (!CreateBucketConfiguration?.LocationConstraint && !CreateBucketConfiguration?.Location) {
          args = {
            ...args,
            input: {
              ...args.input,
              CreateBucketConfiguration: region === "us-east-1" ? void 0 : { LocationConstraint: region }
            }
          };
        }
        return next(args);
      };
    }
    __name(locationConstraintMiddleware, "locationConstraintMiddleware");
    __name2(locationConstraintMiddleware, "locationConstraintMiddleware");
    var locationConstraintMiddlewareOptions = {
      step: "initialize",
      tags: ["LOCATION_CONSTRAINT", "CREATE_BUCKET_CONFIGURATION"],
      name: "locationConstraintMiddleware",
      override: true
    };
    var getLocationConstraintPlugin = /* @__PURE__ */ __name2((config) => ({
      applyToStack: /* @__PURE__ */ __name2((clientStack) => {
        clientStack.add(locationConstraintMiddleware(config), locationConstraintMiddlewareOptions);
      }, "applyToStack")
    }), "getLocationConstraintPlugin");
  }
});

// ../../node_modules/@aws-sdk/client-s3/dist-cjs/index.js
var require_dist_cjs71 = __commonJS({
  "../../node_modules/@aws-sdk/client-s3/dist-cjs/index.js"(exports2, module2) {
    "use strict";
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var index_exports = {};
    __export2(index_exports, {
      AbortMultipartUploadCommand: /* @__PURE__ */ __name(() => AbortMultipartUploadCommand, "AbortMultipartUploadCommand"),
      AnalyticsFilter: /* @__PURE__ */ __name(() => AnalyticsFilter, "AnalyticsFilter"),
      AnalyticsS3ExportFileFormat: /* @__PURE__ */ __name(() => AnalyticsS3ExportFileFormat, "AnalyticsS3ExportFileFormat"),
      ArchiveStatus: /* @__PURE__ */ __name(() => ArchiveStatus, "ArchiveStatus"),
      BucketAccelerateStatus: /* @__PURE__ */ __name(() => BucketAccelerateStatus, "BucketAccelerateStatus"),
      BucketAlreadyExists: /* @__PURE__ */ __name(() => BucketAlreadyExists, "BucketAlreadyExists"),
      BucketAlreadyOwnedByYou: /* @__PURE__ */ __name(() => BucketAlreadyOwnedByYou, "BucketAlreadyOwnedByYou"),
      BucketCannedACL: /* @__PURE__ */ __name(() => BucketCannedACL, "BucketCannedACL"),
      BucketLocationConstraint: /* @__PURE__ */ __name(() => BucketLocationConstraint, "BucketLocationConstraint"),
      BucketLogsPermission: /* @__PURE__ */ __name(() => BucketLogsPermission, "BucketLogsPermission"),
      BucketType: /* @__PURE__ */ __name(() => BucketType, "BucketType"),
      BucketVersioningStatus: /* @__PURE__ */ __name(() => BucketVersioningStatus, "BucketVersioningStatus"),
      ChecksumAlgorithm: /* @__PURE__ */ __name(() => ChecksumAlgorithm, "ChecksumAlgorithm"),
      ChecksumMode: /* @__PURE__ */ __name(() => ChecksumMode, "ChecksumMode"),
      ChecksumType: /* @__PURE__ */ __name(() => ChecksumType, "ChecksumType"),
      CompleteMultipartUploadCommand: /* @__PURE__ */ __name(() => CompleteMultipartUploadCommand, "CompleteMultipartUploadCommand"),
      CompleteMultipartUploadOutputFilterSensitiveLog: /* @__PURE__ */ __name(() => CompleteMultipartUploadOutputFilterSensitiveLog, "CompleteMultipartUploadOutputFilterSensitiveLog"),
      CompleteMultipartUploadRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => CompleteMultipartUploadRequestFilterSensitiveLog, "CompleteMultipartUploadRequestFilterSensitiveLog"),
      CompressionType: /* @__PURE__ */ __name(() => CompressionType, "CompressionType"),
      CopyObjectCommand: /* @__PURE__ */ __name(() => CopyObjectCommand, "CopyObjectCommand"),
      CopyObjectOutputFilterSensitiveLog: /* @__PURE__ */ __name(() => CopyObjectOutputFilterSensitiveLog, "CopyObjectOutputFilterSensitiveLog"),
      CopyObjectRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => CopyObjectRequestFilterSensitiveLog, "CopyObjectRequestFilterSensitiveLog"),
      CreateBucketCommand: /* @__PURE__ */ __name(() => CreateBucketCommand, "CreateBucketCommand"),
      CreateBucketMetadataConfigurationCommand: /* @__PURE__ */ __name(() => CreateBucketMetadataConfigurationCommand, "CreateBucketMetadataConfigurationCommand"),
      CreateBucketMetadataTableConfigurationCommand: /* @__PURE__ */ __name(() => CreateBucketMetadataTableConfigurationCommand, "CreateBucketMetadataTableConfigurationCommand"),
      CreateMultipartUploadCommand: /* @__PURE__ */ __name(() => CreateMultipartUploadCommand, "CreateMultipartUploadCommand"),
      CreateMultipartUploadOutputFilterSensitiveLog: /* @__PURE__ */ __name(() => CreateMultipartUploadOutputFilterSensitiveLog, "CreateMultipartUploadOutputFilterSensitiveLog"),
      CreateMultipartUploadRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => CreateMultipartUploadRequestFilterSensitiveLog, "CreateMultipartUploadRequestFilterSensitiveLog"),
      CreateSessionCommand: /* @__PURE__ */ __name(() => CreateSessionCommand, "CreateSessionCommand"),
      CreateSessionOutputFilterSensitiveLog: /* @__PURE__ */ __name(() => CreateSessionOutputFilterSensitiveLog, "CreateSessionOutputFilterSensitiveLog"),
      CreateSessionRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => CreateSessionRequestFilterSensitiveLog, "CreateSessionRequestFilterSensitiveLog"),
      DataRedundancy: /* @__PURE__ */ __name(() => DataRedundancy, "DataRedundancy"),
      DeleteBucketAnalyticsConfigurationCommand: /* @__PURE__ */ __name(() => DeleteBucketAnalyticsConfigurationCommand, "DeleteBucketAnalyticsConfigurationCommand"),
      DeleteBucketCommand: /* @__PURE__ */ __name(() => DeleteBucketCommand, "DeleteBucketCommand"),
      DeleteBucketCorsCommand: /* @__PURE__ */ __name(() => DeleteBucketCorsCommand, "DeleteBucketCorsCommand"),
      DeleteBucketEncryptionCommand: /* @__PURE__ */ __name(() => DeleteBucketEncryptionCommand, "DeleteBucketEncryptionCommand"),
      DeleteBucketIntelligentTieringConfigurationCommand: /* @__PURE__ */ __name(() => DeleteBucketIntelligentTieringConfigurationCommand, "DeleteBucketIntelligentTieringConfigurationCommand"),
      DeleteBucketInventoryConfigurationCommand: /* @__PURE__ */ __name(() => DeleteBucketInventoryConfigurationCommand, "DeleteBucketInventoryConfigurationCommand"),
      DeleteBucketLifecycleCommand: /* @__PURE__ */ __name(() => DeleteBucketLifecycleCommand, "DeleteBucketLifecycleCommand"),
      DeleteBucketMetadataConfigurationCommand: /* @__PURE__ */ __name(() => DeleteBucketMetadataConfigurationCommand, "DeleteBucketMetadataConfigurationCommand"),
      DeleteBucketMetadataTableConfigurationCommand: /* @__PURE__ */ __name(() => DeleteBucketMetadataTableConfigurationCommand, "DeleteBucketMetadataTableConfigurationCommand"),
      DeleteBucketMetricsConfigurationCommand: /* @__PURE__ */ __name(() => DeleteBucketMetricsConfigurationCommand, "DeleteBucketMetricsConfigurationCommand"),
      DeleteBucketOwnershipControlsCommand: /* @__PURE__ */ __name(() => DeleteBucketOwnershipControlsCommand, "DeleteBucketOwnershipControlsCommand"),
      DeleteBucketPolicyCommand: /* @__PURE__ */ __name(() => DeleteBucketPolicyCommand, "DeleteBucketPolicyCommand"),
      DeleteBucketReplicationCommand: /* @__PURE__ */ __name(() => DeleteBucketReplicationCommand, "DeleteBucketReplicationCommand"),
      DeleteBucketTaggingCommand: /* @__PURE__ */ __name(() => DeleteBucketTaggingCommand, "DeleteBucketTaggingCommand"),
      DeleteBucketWebsiteCommand: /* @__PURE__ */ __name(() => DeleteBucketWebsiteCommand, "DeleteBucketWebsiteCommand"),
      DeleteMarkerReplicationStatus: /* @__PURE__ */ __name(() => DeleteMarkerReplicationStatus, "DeleteMarkerReplicationStatus"),
      DeleteObjectCommand: /* @__PURE__ */ __name(() => DeleteObjectCommand, "DeleteObjectCommand"),
      DeleteObjectTaggingCommand: /* @__PURE__ */ __name(() => DeleteObjectTaggingCommand2, "DeleteObjectTaggingCommand"),
      DeleteObjectsCommand: /* @__PURE__ */ __name(() => DeleteObjectsCommand2, "DeleteObjectsCommand"),
      DeletePublicAccessBlockCommand: /* @__PURE__ */ __name(() => DeletePublicAccessBlockCommand, "DeletePublicAccessBlockCommand"),
      EncodingType: /* @__PURE__ */ __name(() => EncodingType, "EncodingType"),
      EncryptionFilterSensitiveLog: /* @__PURE__ */ __name(() => EncryptionFilterSensitiveLog, "EncryptionFilterSensitiveLog"),
      EncryptionTypeMismatch: /* @__PURE__ */ __name(() => EncryptionTypeMismatch, "EncryptionTypeMismatch"),
      Event: /* @__PURE__ */ __name(() => Event, "Event"),
      ExistingObjectReplicationStatus: /* @__PURE__ */ __name(() => ExistingObjectReplicationStatus, "ExistingObjectReplicationStatus"),
      ExpirationState: /* @__PURE__ */ __name(() => ExpirationState, "ExpirationState"),
      ExpirationStatus: /* @__PURE__ */ __name(() => ExpirationStatus, "ExpirationStatus"),
      ExpressionType: /* @__PURE__ */ __name(() => ExpressionType, "ExpressionType"),
      FileHeaderInfo: /* @__PURE__ */ __name(() => FileHeaderInfo, "FileHeaderInfo"),
      FilterRuleName: /* @__PURE__ */ __name(() => FilterRuleName, "FilterRuleName"),
      GetBucketAccelerateConfigurationCommand: /* @__PURE__ */ __name(() => GetBucketAccelerateConfigurationCommand, "GetBucketAccelerateConfigurationCommand"),
      GetBucketAclCommand: /* @__PURE__ */ __name(() => GetBucketAclCommand, "GetBucketAclCommand"),
      GetBucketAnalyticsConfigurationCommand: /* @__PURE__ */ __name(() => GetBucketAnalyticsConfigurationCommand, "GetBucketAnalyticsConfigurationCommand"),
      GetBucketCorsCommand: /* @__PURE__ */ __name(() => GetBucketCorsCommand, "GetBucketCorsCommand"),
      GetBucketEncryptionCommand: /* @__PURE__ */ __name(() => GetBucketEncryptionCommand3, "GetBucketEncryptionCommand"),
      GetBucketEncryptionOutputFilterSensitiveLog: /* @__PURE__ */ __name(() => GetBucketEncryptionOutputFilterSensitiveLog, "GetBucketEncryptionOutputFilterSensitiveLog"),
      GetBucketIntelligentTieringConfigurationCommand: /* @__PURE__ */ __name(() => GetBucketIntelligentTieringConfigurationCommand, "GetBucketIntelligentTieringConfigurationCommand"),
      GetBucketInventoryConfigurationCommand: /* @__PURE__ */ __name(() => GetBucketInventoryConfigurationCommand, "GetBucketInventoryConfigurationCommand"),
      GetBucketInventoryConfigurationOutputFilterSensitiveLog: /* @__PURE__ */ __name(() => GetBucketInventoryConfigurationOutputFilterSensitiveLog, "GetBucketInventoryConfigurationOutputFilterSensitiveLog"),
      GetBucketLifecycleConfigurationCommand: /* @__PURE__ */ __name(() => GetBucketLifecycleConfigurationCommand, "GetBucketLifecycleConfigurationCommand"),
      GetBucketLocationCommand: /* @__PURE__ */ __name(() => GetBucketLocationCommand3, "GetBucketLocationCommand"),
      GetBucketLoggingCommand: /* @__PURE__ */ __name(() => GetBucketLoggingCommand, "GetBucketLoggingCommand"),
      GetBucketMetadataConfigurationCommand: /* @__PURE__ */ __name(() => GetBucketMetadataConfigurationCommand, "GetBucketMetadataConfigurationCommand"),
      GetBucketMetadataTableConfigurationCommand: /* @__PURE__ */ __name(() => GetBucketMetadataTableConfigurationCommand, "GetBucketMetadataTableConfigurationCommand"),
      GetBucketMetricsConfigurationCommand: /* @__PURE__ */ __name(() => GetBucketMetricsConfigurationCommand, "GetBucketMetricsConfigurationCommand"),
      GetBucketNotificationConfigurationCommand: /* @__PURE__ */ __name(() => GetBucketNotificationConfigurationCommand, "GetBucketNotificationConfigurationCommand"),
      GetBucketOwnershipControlsCommand: /* @__PURE__ */ __name(() => GetBucketOwnershipControlsCommand, "GetBucketOwnershipControlsCommand"),
      GetBucketPolicyCommand: /* @__PURE__ */ __name(() => GetBucketPolicyCommand, "GetBucketPolicyCommand"),
      GetBucketPolicyStatusCommand: /* @__PURE__ */ __name(() => GetBucketPolicyStatusCommand, "GetBucketPolicyStatusCommand"),
      GetBucketReplicationCommand: /* @__PURE__ */ __name(() => GetBucketReplicationCommand, "GetBucketReplicationCommand"),
      GetBucketRequestPaymentCommand: /* @__PURE__ */ __name(() => GetBucketRequestPaymentCommand, "GetBucketRequestPaymentCommand"),
      GetBucketTaggingCommand: /* @__PURE__ */ __name(() => GetBucketTaggingCommand, "GetBucketTaggingCommand"),
      GetBucketVersioningCommand: /* @__PURE__ */ __name(() => GetBucketVersioningCommand, "GetBucketVersioningCommand"),
      GetBucketWebsiteCommand: /* @__PURE__ */ __name(() => GetBucketWebsiteCommand, "GetBucketWebsiteCommand"),
      GetObjectAclCommand: /* @__PURE__ */ __name(() => GetObjectAclCommand, "GetObjectAclCommand"),
      GetObjectAttributesCommand: /* @__PURE__ */ __name(() => GetObjectAttributesCommand, "GetObjectAttributesCommand"),
      GetObjectAttributesRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => GetObjectAttributesRequestFilterSensitiveLog, "GetObjectAttributesRequestFilterSensitiveLog"),
      GetObjectCommand: /* @__PURE__ */ __name(() => GetObjectCommand2, "GetObjectCommand"),
      GetObjectLegalHoldCommand: /* @__PURE__ */ __name(() => GetObjectLegalHoldCommand, "GetObjectLegalHoldCommand"),
      GetObjectLockConfigurationCommand: /* @__PURE__ */ __name(() => GetObjectLockConfigurationCommand, "GetObjectLockConfigurationCommand"),
      GetObjectOutputFilterSensitiveLog: /* @__PURE__ */ __name(() => GetObjectOutputFilterSensitiveLog, "GetObjectOutputFilterSensitiveLog"),
      GetObjectRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => GetObjectRequestFilterSensitiveLog, "GetObjectRequestFilterSensitiveLog"),
      GetObjectRetentionCommand: /* @__PURE__ */ __name(() => GetObjectRetentionCommand, "GetObjectRetentionCommand"),
      GetObjectTaggingCommand: /* @__PURE__ */ __name(() => GetObjectTaggingCommand2, "GetObjectTaggingCommand"),
      GetObjectTorrentCommand: /* @__PURE__ */ __name(() => GetObjectTorrentCommand, "GetObjectTorrentCommand"),
      GetObjectTorrentOutputFilterSensitiveLog: /* @__PURE__ */ __name(() => GetObjectTorrentOutputFilterSensitiveLog, "GetObjectTorrentOutputFilterSensitiveLog"),
      GetPublicAccessBlockCommand: /* @__PURE__ */ __name(() => GetPublicAccessBlockCommand, "GetPublicAccessBlockCommand"),
      HeadBucketCommand: /* @__PURE__ */ __name(() => HeadBucketCommand, "HeadBucketCommand"),
      HeadObjectCommand: /* @__PURE__ */ __name(() => HeadObjectCommand2, "HeadObjectCommand"),
      HeadObjectOutputFilterSensitiveLog: /* @__PURE__ */ __name(() => HeadObjectOutputFilterSensitiveLog, "HeadObjectOutputFilterSensitiveLog"),
      HeadObjectRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => HeadObjectRequestFilterSensitiveLog, "HeadObjectRequestFilterSensitiveLog"),
      IdempotencyParameterMismatch: /* @__PURE__ */ __name(() => IdempotencyParameterMismatch, "IdempotencyParameterMismatch"),
      IntelligentTieringAccessTier: /* @__PURE__ */ __name(() => IntelligentTieringAccessTier, "IntelligentTieringAccessTier"),
      IntelligentTieringStatus: /* @__PURE__ */ __name(() => IntelligentTieringStatus, "IntelligentTieringStatus"),
      InvalidObjectState: /* @__PURE__ */ __name(() => InvalidObjectState, "InvalidObjectState"),
      InvalidRequest: /* @__PURE__ */ __name(() => InvalidRequest, "InvalidRequest"),
      InvalidWriteOffset: /* @__PURE__ */ __name(() => InvalidWriteOffset, "InvalidWriteOffset"),
      InventoryConfigurationFilterSensitiveLog: /* @__PURE__ */ __name(() => InventoryConfigurationFilterSensitiveLog, "InventoryConfigurationFilterSensitiveLog"),
      InventoryConfigurationState: /* @__PURE__ */ __name(() => InventoryConfigurationState, "InventoryConfigurationState"),
      InventoryDestinationFilterSensitiveLog: /* @__PURE__ */ __name(() => InventoryDestinationFilterSensitiveLog, "InventoryDestinationFilterSensitiveLog"),
      InventoryEncryptionFilterSensitiveLog: /* @__PURE__ */ __name(() => InventoryEncryptionFilterSensitiveLog, "InventoryEncryptionFilterSensitiveLog"),
      InventoryFormat: /* @__PURE__ */ __name(() => InventoryFormat, "InventoryFormat"),
      InventoryFrequency: /* @__PURE__ */ __name(() => InventoryFrequency, "InventoryFrequency"),
      InventoryIncludedObjectVersions: /* @__PURE__ */ __name(() => InventoryIncludedObjectVersions, "InventoryIncludedObjectVersions"),
      InventoryOptionalField: /* @__PURE__ */ __name(() => InventoryOptionalField, "InventoryOptionalField"),
      InventoryS3BucketDestinationFilterSensitiveLog: /* @__PURE__ */ __name(() => InventoryS3BucketDestinationFilterSensitiveLog, "InventoryS3BucketDestinationFilterSensitiveLog"),
      JSONType: /* @__PURE__ */ __name(() => JSONType, "JSONType"),
      ListBucketAnalyticsConfigurationsCommand: /* @__PURE__ */ __name(() => ListBucketAnalyticsConfigurationsCommand, "ListBucketAnalyticsConfigurationsCommand"),
      ListBucketIntelligentTieringConfigurationsCommand: /* @__PURE__ */ __name(() => ListBucketIntelligentTieringConfigurationsCommand, "ListBucketIntelligentTieringConfigurationsCommand"),
      ListBucketInventoryConfigurationsCommand: /* @__PURE__ */ __name(() => ListBucketInventoryConfigurationsCommand, "ListBucketInventoryConfigurationsCommand"),
      ListBucketInventoryConfigurationsOutputFilterSensitiveLog: /* @__PURE__ */ __name(() => ListBucketInventoryConfigurationsOutputFilterSensitiveLog, "ListBucketInventoryConfigurationsOutputFilterSensitiveLog"),
      ListBucketMetricsConfigurationsCommand: /* @__PURE__ */ __name(() => ListBucketMetricsConfigurationsCommand, "ListBucketMetricsConfigurationsCommand"),
      ListBucketsCommand: /* @__PURE__ */ __name(() => ListBucketsCommand, "ListBucketsCommand"),
      ListDirectoryBucketsCommand: /* @__PURE__ */ __name(() => ListDirectoryBucketsCommand, "ListDirectoryBucketsCommand"),
      ListMultipartUploadsCommand: /* @__PURE__ */ __name(() => ListMultipartUploadsCommand, "ListMultipartUploadsCommand"),
      ListObjectVersionsCommand: /* @__PURE__ */ __name(() => ListObjectVersionsCommand, "ListObjectVersionsCommand"),
      ListObjectsCommand: /* @__PURE__ */ __name(() => ListObjectsCommand, "ListObjectsCommand"),
      ListObjectsV2Command: /* @__PURE__ */ __name(() => ListObjectsV2Command3, "ListObjectsV2Command"),
      ListPartsCommand: /* @__PURE__ */ __name(() => ListPartsCommand, "ListPartsCommand"),
      ListPartsRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => ListPartsRequestFilterSensitiveLog, "ListPartsRequestFilterSensitiveLog"),
      LocationType: /* @__PURE__ */ __name(() => LocationType, "LocationType"),
      MFADelete: /* @__PURE__ */ __name(() => MFADelete, "MFADelete"),
      MFADeleteStatus: /* @__PURE__ */ __name(() => MFADeleteStatus, "MFADeleteStatus"),
      MetadataDirective: /* @__PURE__ */ __name(() => MetadataDirective, "MetadataDirective"),
      MetricsFilter: /* @__PURE__ */ __name(() => MetricsFilter, "MetricsFilter"),
      MetricsStatus: /* @__PURE__ */ __name(() => MetricsStatus, "MetricsStatus"),
      NoSuchBucket: /* @__PURE__ */ __name(() => NoSuchBucket, "NoSuchBucket"),
      NoSuchKey: /* @__PURE__ */ __name(() => NoSuchKey, "NoSuchKey"),
      NoSuchUpload: /* @__PURE__ */ __name(() => NoSuchUpload, "NoSuchUpload"),
      NotFound: /* @__PURE__ */ __name(() => NotFound, "NotFound"),
      ObjectAlreadyInActiveTierError: /* @__PURE__ */ __name(() => ObjectAlreadyInActiveTierError, "ObjectAlreadyInActiveTierError"),
      ObjectAttributes: /* @__PURE__ */ __name(() => ObjectAttributes, "ObjectAttributes"),
      ObjectCannedACL: /* @__PURE__ */ __name(() => ObjectCannedACL, "ObjectCannedACL"),
      ObjectLockEnabled: /* @__PURE__ */ __name(() => ObjectLockEnabled, "ObjectLockEnabled"),
      ObjectLockLegalHoldStatus: /* @__PURE__ */ __name(() => ObjectLockLegalHoldStatus, "ObjectLockLegalHoldStatus"),
      ObjectLockMode: /* @__PURE__ */ __name(() => ObjectLockMode, "ObjectLockMode"),
      ObjectLockRetentionMode: /* @__PURE__ */ __name(() => ObjectLockRetentionMode, "ObjectLockRetentionMode"),
      ObjectNotInActiveTierError: /* @__PURE__ */ __name(() => ObjectNotInActiveTierError, "ObjectNotInActiveTierError"),
      ObjectOwnership: /* @__PURE__ */ __name(() => ObjectOwnership, "ObjectOwnership"),
      ObjectStorageClass: /* @__PURE__ */ __name(() => ObjectStorageClass, "ObjectStorageClass"),
      ObjectVersionStorageClass: /* @__PURE__ */ __name(() => ObjectVersionStorageClass, "ObjectVersionStorageClass"),
      OptionalObjectAttributes: /* @__PURE__ */ __name(() => OptionalObjectAttributes, "OptionalObjectAttributes"),
      OutputLocationFilterSensitiveLog: /* @__PURE__ */ __name(() => OutputLocationFilterSensitiveLog, "OutputLocationFilterSensitiveLog"),
      OwnerOverride: /* @__PURE__ */ __name(() => OwnerOverride, "OwnerOverride"),
      PartitionDateSource: /* @__PURE__ */ __name(() => PartitionDateSource, "PartitionDateSource"),
      Payer: /* @__PURE__ */ __name(() => Payer, "Payer"),
      Permission: /* @__PURE__ */ __name(() => Permission, "Permission"),
      Protocol: /* @__PURE__ */ __name(() => Protocol, "Protocol"),
      PutBucketAccelerateConfigurationCommand: /* @__PURE__ */ __name(() => PutBucketAccelerateConfigurationCommand, "PutBucketAccelerateConfigurationCommand"),
      PutBucketAclCommand: /* @__PURE__ */ __name(() => PutBucketAclCommand, "PutBucketAclCommand"),
      PutBucketAnalyticsConfigurationCommand: /* @__PURE__ */ __name(() => PutBucketAnalyticsConfigurationCommand, "PutBucketAnalyticsConfigurationCommand"),
      PutBucketCorsCommand: /* @__PURE__ */ __name(() => PutBucketCorsCommand, "PutBucketCorsCommand"),
      PutBucketEncryptionCommand: /* @__PURE__ */ __name(() => PutBucketEncryptionCommand, "PutBucketEncryptionCommand"),
      PutBucketEncryptionRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => PutBucketEncryptionRequestFilterSensitiveLog, "PutBucketEncryptionRequestFilterSensitiveLog"),
      PutBucketIntelligentTieringConfigurationCommand: /* @__PURE__ */ __name(() => PutBucketIntelligentTieringConfigurationCommand, "PutBucketIntelligentTieringConfigurationCommand"),
      PutBucketInventoryConfigurationCommand: /* @__PURE__ */ __name(() => PutBucketInventoryConfigurationCommand, "PutBucketInventoryConfigurationCommand"),
      PutBucketInventoryConfigurationRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => PutBucketInventoryConfigurationRequestFilterSensitiveLog, "PutBucketInventoryConfigurationRequestFilterSensitiveLog"),
      PutBucketLifecycleConfigurationCommand: /* @__PURE__ */ __name(() => PutBucketLifecycleConfigurationCommand, "PutBucketLifecycleConfigurationCommand"),
      PutBucketLoggingCommand: /* @__PURE__ */ __name(() => PutBucketLoggingCommand, "PutBucketLoggingCommand"),
      PutBucketMetricsConfigurationCommand: /* @__PURE__ */ __name(() => PutBucketMetricsConfigurationCommand, "PutBucketMetricsConfigurationCommand"),
      PutBucketNotificationConfigurationCommand: /* @__PURE__ */ __name(() => PutBucketNotificationConfigurationCommand, "PutBucketNotificationConfigurationCommand"),
      PutBucketOwnershipControlsCommand: /* @__PURE__ */ __name(() => PutBucketOwnershipControlsCommand, "PutBucketOwnershipControlsCommand"),
      PutBucketPolicyCommand: /* @__PURE__ */ __name(() => PutBucketPolicyCommand, "PutBucketPolicyCommand"),
      PutBucketReplicationCommand: /* @__PURE__ */ __name(() => PutBucketReplicationCommand, "PutBucketReplicationCommand"),
      PutBucketRequestPaymentCommand: /* @__PURE__ */ __name(() => PutBucketRequestPaymentCommand, "PutBucketRequestPaymentCommand"),
      PutBucketTaggingCommand: /* @__PURE__ */ __name(() => PutBucketTaggingCommand, "PutBucketTaggingCommand"),
      PutBucketVersioningCommand: /* @__PURE__ */ __name(() => PutBucketVersioningCommand, "PutBucketVersioningCommand"),
      PutBucketWebsiteCommand: /* @__PURE__ */ __name(() => PutBucketWebsiteCommand, "PutBucketWebsiteCommand"),
      PutObjectAclCommand: /* @__PURE__ */ __name(() => PutObjectAclCommand, "PutObjectAclCommand"),
      PutObjectCommand: /* @__PURE__ */ __name(() => PutObjectCommand, "PutObjectCommand"),
      PutObjectLegalHoldCommand: /* @__PURE__ */ __name(() => PutObjectLegalHoldCommand, "PutObjectLegalHoldCommand"),
      PutObjectLockConfigurationCommand: /* @__PURE__ */ __name(() => PutObjectLockConfigurationCommand, "PutObjectLockConfigurationCommand"),
      PutObjectOutputFilterSensitiveLog: /* @__PURE__ */ __name(() => PutObjectOutputFilterSensitiveLog, "PutObjectOutputFilterSensitiveLog"),
      PutObjectRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => PutObjectRequestFilterSensitiveLog, "PutObjectRequestFilterSensitiveLog"),
      PutObjectRetentionCommand: /* @__PURE__ */ __name(() => PutObjectRetentionCommand, "PutObjectRetentionCommand"),
      PutObjectTaggingCommand: /* @__PURE__ */ __name(() => PutObjectTaggingCommand2, "PutObjectTaggingCommand"),
      PutPublicAccessBlockCommand: /* @__PURE__ */ __name(() => PutPublicAccessBlockCommand, "PutPublicAccessBlockCommand"),
      QuoteFields: /* @__PURE__ */ __name(() => QuoteFields, "QuoteFields"),
      RenameObjectCommand: /* @__PURE__ */ __name(() => RenameObjectCommand, "RenameObjectCommand"),
      ReplicaModificationsStatus: /* @__PURE__ */ __name(() => ReplicaModificationsStatus, "ReplicaModificationsStatus"),
      ReplicationRuleStatus: /* @__PURE__ */ __name(() => ReplicationRuleStatus, "ReplicationRuleStatus"),
      ReplicationStatus: /* @__PURE__ */ __name(() => ReplicationStatus, "ReplicationStatus"),
      ReplicationTimeStatus: /* @__PURE__ */ __name(() => ReplicationTimeStatus, "ReplicationTimeStatus"),
      RequestCharged: /* @__PURE__ */ __name(() => RequestCharged, "RequestCharged"),
      RequestPayer: /* @__PURE__ */ __name(() => RequestPayer, "RequestPayer"),
      RestoreObjectCommand: /* @__PURE__ */ __name(() => RestoreObjectCommand, "RestoreObjectCommand"),
      RestoreObjectRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => RestoreObjectRequestFilterSensitiveLog, "RestoreObjectRequestFilterSensitiveLog"),
      RestoreRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => RestoreRequestFilterSensitiveLog, "RestoreRequestFilterSensitiveLog"),
      RestoreRequestType: /* @__PURE__ */ __name(() => RestoreRequestType, "RestoreRequestType"),
      S3: /* @__PURE__ */ __name(() => S3, "S3"),
      S3Client: /* @__PURE__ */ __name(() => S3Client4, "S3Client"),
      S3LocationFilterSensitiveLog: /* @__PURE__ */ __name(() => S3LocationFilterSensitiveLog, "S3LocationFilterSensitiveLog"),
      S3ServiceException: /* @__PURE__ */ __name(() => S3ServiceException, "S3ServiceException"),
      S3TablesBucketType: /* @__PURE__ */ __name(() => S3TablesBucketType, "S3TablesBucketType"),
      SSEKMSFilterSensitiveLog: /* @__PURE__ */ __name(() => SSEKMSFilterSensitiveLog, "SSEKMSFilterSensitiveLog"),
      SelectObjectContentCommand: /* @__PURE__ */ __name(() => SelectObjectContentCommand, "SelectObjectContentCommand"),
      SelectObjectContentEventStream: /* @__PURE__ */ __name(() => SelectObjectContentEventStream, "SelectObjectContentEventStream"),
      SelectObjectContentEventStreamFilterSensitiveLog: /* @__PURE__ */ __name(() => SelectObjectContentEventStreamFilterSensitiveLog, "SelectObjectContentEventStreamFilterSensitiveLog"),
      SelectObjectContentOutputFilterSensitiveLog: /* @__PURE__ */ __name(() => SelectObjectContentOutputFilterSensitiveLog, "SelectObjectContentOutputFilterSensitiveLog"),
      SelectObjectContentRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => SelectObjectContentRequestFilterSensitiveLog, "SelectObjectContentRequestFilterSensitiveLog"),
      ServerSideEncryption: /* @__PURE__ */ __name(() => ServerSideEncryption, "ServerSideEncryption"),
      ServerSideEncryptionByDefaultFilterSensitiveLog: /* @__PURE__ */ __name(() => ServerSideEncryptionByDefaultFilterSensitiveLog, "ServerSideEncryptionByDefaultFilterSensitiveLog"),
      ServerSideEncryptionConfigurationFilterSensitiveLog: /* @__PURE__ */ __name(() => ServerSideEncryptionConfigurationFilterSensitiveLog, "ServerSideEncryptionConfigurationFilterSensitiveLog"),
      ServerSideEncryptionRuleFilterSensitiveLog: /* @__PURE__ */ __name(() => ServerSideEncryptionRuleFilterSensitiveLog, "ServerSideEncryptionRuleFilterSensitiveLog"),
      SessionCredentialsFilterSensitiveLog: /* @__PURE__ */ __name(() => SessionCredentialsFilterSensitiveLog, "SessionCredentialsFilterSensitiveLog"),
      SessionMode: /* @__PURE__ */ __name(() => SessionMode, "SessionMode"),
      SseKmsEncryptedObjectsStatus: /* @__PURE__ */ __name(() => SseKmsEncryptedObjectsStatus, "SseKmsEncryptedObjectsStatus"),
      StorageClass: /* @__PURE__ */ __name(() => StorageClass, "StorageClass"),
      StorageClassAnalysisSchemaVersion: /* @__PURE__ */ __name(() => StorageClassAnalysisSchemaVersion, "StorageClassAnalysisSchemaVersion"),
      TableSseAlgorithm: /* @__PURE__ */ __name(() => TableSseAlgorithm, "TableSseAlgorithm"),
      TaggingDirective: /* @__PURE__ */ __name(() => TaggingDirective, "TaggingDirective"),
      Tier: /* @__PURE__ */ __name(() => Tier, "Tier"),
      TooManyParts: /* @__PURE__ */ __name(() => TooManyParts, "TooManyParts"),
      TransitionDefaultMinimumObjectSize: /* @__PURE__ */ __name(() => TransitionDefaultMinimumObjectSize, "TransitionDefaultMinimumObjectSize"),
      TransitionStorageClass: /* @__PURE__ */ __name(() => TransitionStorageClass, "TransitionStorageClass"),
      Type: /* @__PURE__ */ __name(() => Type, "Type"),
      UpdateBucketMetadataInventoryTableConfigurationCommand: /* @__PURE__ */ __name(() => UpdateBucketMetadataInventoryTableConfigurationCommand, "UpdateBucketMetadataInventoryTableConfigurationCommand"),
      UpdateBucketMetadataJournalTableConfigurationCommand: /* @__PURE__ */ __name(() => UpdateBucketMetadataJournalTableConfigurationCommand, "UpdateBucketMetadataJournalTableConfigurationCommand"),
      UploadPartCommand: /* @__PURE__ */ __name(() => UploadPartCommand, "UploadPartCommand"),
      UploadPartCopyCommand: /* @__PURE__ */ __name(() => UploadPartCopyCommand, "UploadPartCopyCommand"),
      UploadPartCopyOutputFilterSensitiveLog: /* @__PURE__ */ __name(() => UploadPartCopyOutputFilterSensitiveLog, "UploadPartCopyOutputFilterSensitiveLog"),
      UploadPartCopyRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => UploadPartCopyRequestFilterSensitiveLog, "UploadPartCopyRequestFilterSensitiveLog"),
      UploadPartOutputFilterSensitiveLog: /* @__PURE__ */ __name(() => UploadPartOutputFilterSensitiveLog, "UploadPartOutputFilterSensitiveLog"),
      UploadPartRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => UploadPartRequestFilterSensitiveLog, "UploadPartRequestFilterSensitiveLog"),
      WriteGetObjectResponseCommand: /* @__PURE__ */ __name(() => WriteGetObjectResponseCommand, "WriteGetObjectResponseCommand"),
      WriteGetObjectResponseRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => WriteGetObjectResponseRequestFilterSensitiveLog, "WriteGetObjectResponseRequestFilterSensitiveLog"),
      __Client: /* @__PURE__ */ __name(() => import_smithy_client28.Client, "__Client"),
      paginateListBuckets: /* @__PURE__ */ __name(() => paginateListBuckets, "paginateListBuckets"),
      paginateListDirectoryBuckets: /* @__PURE__ */ __name(() => paginateListDirectoryBuckets, "paginateListDirectoryBuckets"),
      paginateListObjectsV2: /* @__PURE__ */ __name(() => paginateListObjectsV2, "paginateListObjectsV2"),
      paginateListParts: /* @__PURE__ */ __name(() => paginateListParts, "paginateListParts"),
      waitForBucketExists: /* @__PURE__ */ __name(() => waitForBucketExists, "waitForBucketExists"),
      waitForBucketNotExists: /* @__PURE__ */ __name(() => waitForBucketNotExists, "waitForBucketNotExists"),
      waitForObjectExists: /* @__PURE__ */ __name(() => waitForObjectExists, "waitForObjectExists"),
      waitForObjectNotExists: /* @__PURE__ */ __name(() => waitForObjectNotExists, "waitForObjectNotExists"),
      waitUntilBucketExists: /* @__PURE__ */ __name(() => waitUntilBucketExists, "waitUntilBucketExists"),
      waitUntilBucketNotExists: /* @__PURE__ */ __name(() => waitUntilBucketNotExists, "waitUntilBucketNotExists"),
      waitUntilObjectExists: /* @__PURE__ */ __name(() => waitUntilObjectExists, "waitUntilObjectExists"),
      waitUntilObjectNotExists: /* @__PURE__ */ __name(() => waitUntilObjectNotExists, "waitUntilObjectNotExists")
    });
    module2.exports = __toCommonJS2(index_exports);
    var import_middleware_expect_continue = require_dist_cjs55();
    var import_middleware_flexible_checksums = require_dist_cjs59();
    var import_middleware_host_header3 = require_dist_cjs3();
    var import_middleware_logger3 = require_dist_cjs4();
    var import_middleware_recursion_detection3 = require_dist_cjs5();
    var import_middleware_sdk_s32 = require_dist_cjs61();
    var import_middleware_user_agent3 = require_dist_cjs28();
    var import_config_resolver6 = require_dist_cjs30();
    var import_core32 = (init_dist_es(), __toCommonJS(dist_es_exports));
    var import_eventstream_serde_config_resolver = require_dist_cjs62();
    var import_middleware_content_length3 = require_dist_cjs31();
    var import_middleware_retry5 = require_dist_cjs37();
    var import_httpAuthSchemeProvider5 = require_httpAuthSchemeProvider3();
    var import_middleware_sdk_s3 = require_dist_cjs61();
    var import_middleware_endpoint8 = require_dist_cjs34();
    var import_middleware_serde5 = require_dist_cjs7();
    var resolveClientEndpointParameters3 = /* @__PURE__ */ __name2((options) => {
      return Object.assign(options, {
        useFipsEndpoint: options.useFipsEndpoint ?? false,
        useDualstackEndpoint: options.useDualstackEndpoint ?? false,
        forcePathStyle: options.forcePathStyle ?? false,
        useAccelerateEndpoint: options.useAccelerateEndpoint ?? false,
        useGlobalEndpoint: options.useGlobalEndpoint ?? false,
        disableMultiregionAccessPoints: options.disableMultiregionAccessPoints ?? false,
        defaultSigningName: "s3"
      });
    }, "resolveClientEndpointParameters");
    var commonParams3 = {
      ForcePathStyle: { type: "clientContextParams", name: "forcePathStyle" },
      UseArnRegion: { type: "clientContextParams", name: "useArnRegion" },
      DisableMultiRegionAccessPoints: { type: "clientContextParams", name: "disableMultiregionAccessPoints" },
      Accelerate: { type: "clientContextParams", name: "useAccelerateEndpoint" },
      DisableS3ExpressSessionAuth: { type: "clientContextParams", name: "disableS3ExpressSessionAuth" },
      UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" },
      UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
      Endpoint: { type: "builtInParams", name: "endpoint" },
      Region: { type: "builtInParams", name: "region" },
      UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
    };
    var import_smithy_client28 = require_dist_cjs26();
    var S3ServiceException = class _S3ServiceException extends import_smithy_client28.ServiceException {
      static {
        __name(this, "_S3ServiceException");
      }
      static {
        __name2(this, "S3ServiceException");
      }
      /**
       * @internal
       */
      constructor(options) {
        super(options);
        Object.setPrototypeOf(this, _S3ServiceException.prototype);
      }
    };
    var RequestCharged = {
      requester: "requester"
    };
    var RequestPayer = {
      requester: "requester"
    };
    var NoSuchUpload = class _NoSuchUpload extends S3ServiceException {
      static {
        __name(this, "_NoSuchUpload");
      }
      static {
        __name2(this, "NoSuchUpload");
      }
      name = "NoSuchUpload";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "NoSuchUpload",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _NoSuchUpload.prototype);
      }
    };
    var BucketAccelerateStatus = {
      Enabled: "Enabled",
      Suspended: "Suspended"
    };
    var Type = {
      AmazonCustomerByEmail: "AmazonCustomerByEmail",
      CanonicalUser: "CanonicalUser",
      Group: "Group"
    };
    var Permission = {
      FULL_CONTROL: "FULL_CONTROL",
      READ: "READ",
      READ_ACP: "READ_ACP",
      WRITE: "WRITE",
      WRITE_ACP: "WRITE_ACP"
    };
    var OwnerOverride = {
      Destination: "Destination"
    };
    var ChecksumType = {
      COMPOSITE: "COMPOSITE",
      FULL_OBJECT: "FULL_OBJECT"
    };
    var ServerSideEncryption = {
      AES256: "AES256",
      aws_fsx: "aws:fsx",
      aws_kms: "aws:kms",
      aws_kms_dsse: "aws:kms:dsse"
    };
    var ObjectCannedACL = {
      authenticated_read: "authenticated-read",
      aws_exec_read: "aws-exec-read",
      bucket_owner_full_control: "bucket-owner-full-control",
      bucket_owner_read: "bucket-owner-read",
      private: "private",
      public_read: "public-read",
      public_read_write: "public-read-write"
    };
    var ChecksumAlgorithm = {
      CRC32: "CRC32",
      CRC32C: "CRC32C",
      CRC64NVME: "CRC64NVME",
      SHA1: "SHA1",
      SHA256: "SHA256"
    };
    var MetadataDirective = {
      COPY: "COPY",
      REPLACE: "REPLACE"
    };
    var ObjectLockLegalHoldStatus = {
      OFF: "OFF",
      ON: "ON"
    };
    var ObjectLockMode = {
      COMPLIANCE: "COMPLIANCE",
      GOVERNANCE: "GOVERNANCE"
    };
    var StorageClass = {
      DEEP_ARCHIVE: "DEEP_ARCHIVE",
      EXPRESS_ONEZONE: "EXPRESS_ONEZONE",
      FSX_OPENZFS: "FSX_OPENZFS",
      GLACIER: "GLACIER",
      GLACIER_IR: "GLACIER_IR",
      INTELLIGENT_TIERING: "INTELLIGENT_TIERING",
      ONEZONE_IA: "ONEZONE_IA",
      OUTPOSTS: "OUTPOSTS",
      REDUCED_REDUNDANCY: "REDUCED_REDUNDANCY",
      SNOW: "SNOW",
      STANDARD: "STANDARD",
      STANDARD_IA: "STANDARD_IA"
    };
    var TaggingDirective = {
      COPY: "COPY",
      REPLACE: "REPLACE"
    };
    var ObjectNotInActiveTierError = class _ObjectNotInActiveTierError extends S3ServiceException {
      static {
        __name(this, "_ObjectNotInActiveTierError");
      }
      static {
        __name2(this, "ObjectNotInActiveTierError");
      }
      name = "ObjectNotInActiveTierError";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ObjectNotInActiveTierError",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ObjectNotInActiveTierError.prototype);
      }
    };
    var BucketAlreadyExists = class _BucketAlreadyExists extends S3ServiceException {
      static {
        __name(this, "_BucketAlreadyExists");
      }
      static {
        __name2(this, "BucketAlreadyExists");
      }
      name = "BucketAlreadyExists";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "BucketAlreadyExists",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _BucketAlreadyExists.prototype);
      }
    };
    var BucketAlreadyOwnedByYou = class _BucketAlreadyOwnedByYou extends S3ServiceException {
      static {
        __name(this, "_BucketAlreadyOwnedByYou");
      }
      static {
        __name2(this, "BucketAlreadyOwnedByYou");
      }
      name = "BucketAlreadyOwnedByYou";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "BucketAlreadyOwnedByYou",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _BucketAlreadyOwnedByYou.prototype);
      }
    };
    var BucketCannedACL = {
      authenticated_read: "authenticated-read",
      private: "private",
      public_read: "public-read",
      public_read_write: "public-read-write"
    };
    var DataRedundancy = {
      SingleAvailabilityZone: "SingleAvailabilityZone",
      SingleLocalZone: "SingleLocalZone"
    };
    var BucketType = {
      Directory: "Directory"
    };
    var LocationType = {
      AvailabilityZone: "AvailabilityZone",
      LocalZone: "LocalZone"
    };
    var BucketLocationConstraint = {
      EU: "EU",
      af_south_1: "af-south-1",
      ap_east_1: "ap-east-1",
      ap_northeast_1: "ap-northeast-1",
      ap_northeast_2: "ap-northeast-2",
      ap_northeast_3: "ap-northeast-3",
      ap_south_1: "ap-south-1",
      ap_south_2: "ap-south-2",
      ap_southeast_1: "ap-southeast-1",
      ap_southeast_2: "ap-southeast-2",
      ap_southeast_3: "ap-southeast-3",
      ap_southeast_4: "ap-southeast-4",
      ap_southeast_5: "ap-southeast-5",
      ca_central_1: "ca-central-1",
      cn_north_1: "cn-north-1",
      cn_northwest_1: "cn-northwest-1",
      eu_central_1: "eu-central-1",
      eu_central_2: "eu-central-2",
      eu_north_1: "eu-north-1",
      eu_south_1: "eu-south-1",
      eu_south_2: "eu-south-2",
      eu_west_1: "eu-west-1",
      eu_west_2: "eu-west-2",
      eu_west_3: "eu-west-3",
      il_central_1: "il-central-1",
      me_central_1: "me-central-1",
      me_south_1: "me-south-1",
      sa_east_1: "sa-east-1",
      us_east_2: "us-east-2",
      us_gov_east_1: "us-gov-east-1",
      us_gov_west_1: "us-gov-west-1",
      us_west_1: "us-west-1",
      us_west_2: "us-west-2"
    };
    var ObjectOwnership = {
      BucketOwnerEnforced: "BucketOwnerEnforced",
      BucketOwnerPreferred: "BucketOwnerPreferred",
      ObjectWriter: "ObjectWriter"
    };
    var InventoryConfigurationState = {
      DISABLED: "DISABLED",
      ENABLED: "ENABLED"
    };
    var TableSseAlgorithm = {
      AES256: "AES256",
      aws_kms: "aws:kms"
    };
    var ExpirationState = {
      DISABLED: "DISABLED",
      ENABLED: "ENABLED"
    };
    var SessionMode = {
      ReadOnly: "ReadOnly",
      ReadWrite: "ReadWrite"
    };
    var NoSuchBucket = class _NoSuchBucket extends S3ServiceException {
      static {
        __name(this, "_NoSuchBucket");
      }
      static {
        __name2(this, "NoSuchBucket");
      }
      name = "NoSuchBucket";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "NoSuchBucket",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _NoSuchBucket.prototype);
      }
    };
    var AnalyticsFilter;
    ((AnalyticsFilter2) => {
      AnalyticsFilter2.visit = /* @__PURE__ */ __name2((value, visitor) => {
        if (value.Prefix !== void 0) return visitor.Prefix(value.Prefix);
        if (value.Tag !== void 0) return visitor.Tag(value.Tag);
        if (value.And !== void 0) return visitor.And(value.And);
        return visitor._(value.$unknown[0], value.$unknown[1]);
      }, "visit");
    })(AnalyticsFilter || (AnalyticsFilter = {}));
    var AnalyticsS3ExportFileFormat = {
      CSV: "CSV"
    };
    var StorageClassAnalysisSchemaVersion = {
      V_1: "V_1"
    };
    var IntelligentTieringStatus = {
      Disabled: "Disabled",
      Enabled: "Enabled"
    };
    var IntelligentTieringAccessTier = {
      ARCHIVE_ACCESS: "ARCHIVE_ACCESS",
      DEEP_ARCHIVE_ACCESS: "DEEP_ARCHIVE_ACCESS"
    };
    var InventoryFormat = {
      CSV: "CSV",
      ORC: "ORC",
      Parquet: "Parquet"
    };
    var InventoryIncludedObjectVersions = {
      All: "All",
      Current: "Current"
    };
    var InventoryOptionalField = {
      BucketKeyStatus: "BucketKeyStatus",
      ChecksumAlgorithm: "ChecksumAlgorithm",
      ETag: "ETag",
      EncryptionStatus: "EncryptionStatus",
      IntelligentTieringAccessTier: "IntelligentTieringAccessTier",
      IsMultipartUploaded: "IsMultipartUploaded",
      LastModifiedDate: "LastModifiedDate",
      ObjectAccessControlList: "ObjectAccessControlList",
      ObjectLockLegalHoldStatus: "ObjectLockLegalHoldStatus",
      ObjectLockMode: "ObjectLockMode",
      ObjectLockRetainUntilDate: "ObjectLockRetainUntilDate",
      ObjectOwner: "ObjectOwner",
      ReplicationStatus: "ReplicationStatus",
      Size: "Size",
      StorageClass: "StorageClass"
    };
    var InventoryFrequency = {
      Daily: "Daily",
      Weekly: "Weekly"
    };
    var TransitionStorageClass = {
      DEEP_ARCHIVE: "DEEP_ARCHIVE",
      GLACIER: "GLACIER",
      GLACIER_IR: "GLACIER_IR",
      INTELLIGENT_TIERING: "INTELLIGENT_TIERING",
      ONEZONE_IA: "ONEZONE_IA",
      STANDARD_IA: "STANDARD_IA"
    };
    var ExpirationStatus = {
      Disabled: "Disabled",
      Enabled: "Enabled"
    };
    var TransitionDefaultMinimumObjectSize = {
      all_storage_classes_128K: "all_storage_classes_128K",
      varies_by_storage_class: "varies_by_storage_class"
    };
    var BucketLogsPermission = {
      FULL_CONTROL: "FULL_CONTROL",
      READ: "READ",
      WRITE: "WRITE"
    };
    var PartitionDateSource = {
      DeliveryTime: "DeliveryTime",
      EventTime: "EventTime"
    };
    var S3TablesBucketType = {
      aws: "aws",
      customer: "customer"
    };
    var MetricsFilter;
    ((MetricsFilter2) => {
      MetricsFilter2.visit = /* @__PURE__ */ __name2((value, visitor) => {
        if (value.Prefix !== void 0) return visitor.Prefix(value.Prefix);
        if (value.Tag !== void 0) return visitor.Tag(value.Tag);
        if (value.AccessPointArn !== void 0) return visitor.AccessPointArn(value.AccessPointArn);
        if (value.And !== void 0) return visitor.And(value.And);
        return visitor._(value.$unknown[0], value.$unknown[1]);
      }, "visit");
    })(MetricsFilter || (MetricsFilter = {}));
    var Event = {
      s3_IntelligentTiering: "s3:IntelligentTiering",
      s3_LifecycleExpiration_: "s3:LifecycleExpiration:*",
      s3_LifecycleExpiration_Delete: "s3:LifecycleExpiration:Delete",
      s3_LifecycleExpiration_DeleteMarkerCreated: "s3:LifecycleExpiration:DeleteMarkerCreated",
      s3_LifecycleTransition: "s3:LifecycleTransition",
      s3_ObjectAcl_Put: "s3:ObjectAcl:Put",
      s3_ObjectCreated_: "s3:ObjectCreated:*",
      s3_ObjectCreated_CompleteMultipartUpload: "s3:ObjectCreated:CompleteMultipartUpload",
      s3_ObjectCreated_Copy: "s3:ObjectCreated:Copy",
      s3_ObjectCreated_Post: "s3:ObjectCreated:Post",
      s3_ObjectCreated_Put: "s3:ObjectCreated:Put",
      s3_ObjectRemoved_: "s3:ObjectRemoved:*",
      s3_ObjectRemoved_Delete: "s3:ObjectRemoved:Delete",
      s3_ObjectRemoved_DeleteMarkerCreated: "s3:ObjectRemoved:DeleteMarkerCreated",
      s3_ObjectRestore_: "s3:ObjectRestore:*",
      s3_ObjectRestore_Completed: "s3:ObjectRestore:Completed",
      s3_ObjectRestore_Delete: "s3:ObjectRestore:Delete",
      s3_ObjectRestore_Post: "s3:ObjectRestore:Post",
      s3_ObjectTagging_: "s3:ObjectTagging:*",
      s3_ObjectTagging_Delete: "s3:ObjectTagging:Delete",
      s3_ObjectTagging_Put: "s3:ObjectTagging:Put",
      s3_ReducedRedundancyLostObject: "s3:ReducedRedundancyLostObject",
      s3_Replication_: "s3:Replication:*",
      s3_Replication_OperationFailedReplication: "s3:Replication:OperationFailedReplication",
      s3_Replication_OperationMissedThreshold: "s3:Replication:OperationMissedThreshold",
      s3_Replication_OperationNotTracked: "s3:Replication:OperationNotTracked",
      s3_Replication_OperationReplicatedAfterThreshold: "s3:Replication:OperationReplicatedAfterThreshold"
    };
    var FilterRuleName = {
      prefix: "prefix",
      suffix: "suffix"
    };
    var DeleteMarkerReplicationStatus = {
      Disabled: "Disabled",
      Enabled: "Enabled"
    };
    var MetricsStatus = {
      Disabled: "Disabled",
      Enabled: "Enabled"
    };
    var ReplicationTimeStatus = {
      Disabled: "Disabled",
      Enabled: "Enabled"
    };
    var ExistingObjectReplicationStatus = {
      Disabled: "Disabled",
      Enabled: "Enabled"
    };
    var ReplicaModificationsStatus = {
      Disabled: "Disabled",
      Enabled: "Enabled"
    };
    var SseKmsEncryptedObjectsStatus = {
      Disabled: "Disabled",
      Enabled: "Enabled"
    };
    var ReplicationRuleStatus = {
      Disabled: "Disabled",
      Enabled: "Enabled"
    };
    var Payer = {
      BucketOwner: "BucketOwner",
      Requester: "Requester"
    };
    var MFADeleteStatus = {
      Disabled: "Disabled",
      Enabled: "Enabled"
    };
    var BucketVersioningStatus = {
      Enabled: "Enabled",
      Suspended: "Suspended"
    };
    var Protocol = {
      http: "http",
      https: "https"
    };
    var ReplicationStatus = {
      COMPLETE: "COMPLETE",
      COMPLETED: "COMPLETED",
      FAILED: "FAILED",
      PENDING: "PENDING",
      REPLICA: "REPLICA"
    };
    var ChecksumMode = {
      ENABLED: "ENABLED"
    };
    var InvalidObjectState = class _InvalidObjectState extends S3ServiceException {
      static {
        __name(this, "_InvalidObjectState");
      }
      static {
        __name2(this, "InvalidObjectState");
      }
      name = "InvalidObjectState";
      $fault = "client";
      StorageClass;
      AccessTier;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidObjectState",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidObjectState.prototype);
        this.StorageClass = opts.StorageClass;
        this.AccessTier = opts.AccessTier;
      }
    };
    var NoSuchKey = class _NoSuchKey extends S3ServiceException {
      static {
        __name(this, "_NoSuchKey");
      }
      static {
        __name2(this, "NoSuchKey");
      }
      name = "NoSuchKey";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "NoSuchKey",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _NoSuchKey.prototype);
      }
    };
    var ObjectAttributes = {
      CHECKSUM: "Checksum",
      ETAG: "ETag",
      OBJECT_PARTS: "ObjectParts",
      OBJECT_SIZE: "ObjectSize",
      STORAGE_CLASS: "StorageClass"
    };
    var ObjectLockEnabled = {
      Enabled: "Enabled"
    };
    var ObjectLockRetentionMode = {
      COMPLIANCE: "COMPLIANCE",
      GOVERNANCE: "GOVERNANCE"
    };
    var NotFound = class _NotFound extends S3ServiceException {
      static {
        __name(this, "_NotFound");
      }
      static {
        __name2(this, "NotFound");
      }
      name = "NotFound";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "NotFound",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _NotFound.prototype);
      }
    };
    var ArchiveStatus = {
      ARCHIVE_ACCESS: "ARCHIVE_ACCESS",
      DEEP_ARCHIVE_ACCESS: "DEEP_ARCHIVE_ACCESS"
    };
    var EncodingType = {
      url: "url"
    };
    var CompleteMultipartUploadOutputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client28.SENSITIVE_STRING }
    }), "CompleteMultipartUploadOutputFilterSensitiveLog");
    var CompleteMultipartUploadRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client28.SENSITIVE_STRING }
    }), "CompleteMultipartUploadRequestFilterSensitiveLog");
    var CopyObjectOutputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client28.SENSITIVE_STRING },
      ...obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: import_smithy_client28.SENSITIVE_STRING }
    }), "CopyObjectOutputFilterSensitiveLog");
    var CopyObjectRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client28.SENSITIVE_STRING },
      ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client28.SENSITIVE_STRING },
      ...obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: import_smithy_client28.SENSITIVE_STRING },
      ...obj.CopySourceSSECustomerKey && { CopySourceSSECustomerKey: import_smithy_client28.SENSITIVE_STRING }
    }), "CopyObjectRequestFilterSensitiveLog");
    var CreateMultipartUploadOutputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client28.SENSITIVE_STRING },
      ...obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: import_smithy_client28.SENSITIVE_STRING }
    }), "CreateMultipartUploadOutputFilterSensitiveLog");
    var CreateMultipartUploadRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client28.SENSITIVE_STRING },
      ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client28.SENSITIVE_STRING },
      ...obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: import_smithy_client28.SENSITIVE_STRING }
    }), "CreateMultipartUploadRequestFilterSensitiveLog");
    var SessionCredentialsFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.SecretAccessKey && { SecretAccessKey: import_smithy_client28.SENSITIVE_STRING },
      ...obj.SessionToken && { SessionToken: import_smithy_client28.SENSITIVE_STRING }
    }), "SessionCredentialsFilterSensitiveLog");
    var CreateSessionOutputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client28.SENSITIVE_STRING },
      ...obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: import_smithy_client28.SENSITIVE_STRING },
      ...obj.Credentials && { Credentials: SessionCredentialsFilterSensitiveLog(obj.Credentials) }
    }), "CreateSessionOutputFilterSensitiveLog");
    var CreateSessionRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client28.SENSITIVE_STRING },
      ...obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: import_smithy_client28.SENSITIVE_STRING }
    }), "CreateSessionRequestFilterSensitiveLog");
    var ServerSideEncryptionByDefaultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.KMSMasterKeyID && { KMSMasterKeyID: import_smithy_client28.SENSITIVE_STRING }
    }), "ServerSideEncryptionByDefaultFilterSensitiveLog");
    var ServerSideEncryptionRuleFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.ApplyServerSideEncryptionByDefault && {
        ApplyServerSideEncryptionByDefault: ServerSideEncryptionByDefaultFilterSensitiveLog(
          obj.ApplyServerSideEncryptionByDefault
        )
      }
    }), "ServerSideEncryptionRuleFilterSensitiveLog");
    var ServerSideEncryptionConfigurationFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Rules && { Rules: obj.Rules.map((item) => ServerSideEncryptionRuleFilterSensitiveLog(item)) }
    }), "ServerSideEncryptionConfigurationFilterSensitiveLog");
    var GetBucketEncryptionOutputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.ServerSideEncryptionConfiguration && {
        ServerSideEncryptionConfiguration: ServerSideEncryptionConfigurationFilterSensitiveLog(
          obj.ServerSideEncryptionConfiguration
        )
      }
    }), "GetBucketEncryptionOutputFilterSensitiveLog");
    var SSEKMSFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.KeyId && { KeyId: import_smithy_client28.SENSITIVE_STRING }
    }), "SSEKMSFilterSensitiveLog");
    var InventoryEncryptionFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.SSEKMS && { SSEKMS: SSEKMSFilterSensitiveLog(obj.SSEKMS) }
    }), "InventoryEncryptionFilterSensitiveLog");
    var InventoryS3BucketDestinationFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Encryption && { Encryption: InventoryEncryptionFilterSensitiveLog(obj.Encryption) }
    }), "InventoryS3BucketDestinationFilterSensitiveLog");
    var InventoryDestinationFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.S3BucketDestination && {
        S3BucketDestination: InventoryS3BucketDestinationFilterSensitiveLog(obj.S3BucketDestination)
      }
    }), "InventoryDestinationFilterSensitiveLog");
    var InventoryConfigurationFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Destination && { Destination: InventoryDestinationFilterSensitiveLog(obj.Destination) }
    }), "InventoryConfigurationFilterSensitiveLog");
    var GetBucketInventoryConfigurationOutputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.InventoryConfiguration && {
        InventoryConfiguration: InventoryConfigurationFilterSensitiveLog(obj.InventoryConfiguration)
      }
    }), "GetBucketInventoryConfigurationOutputFilterSensitiveLog");
    var GetObjectOutputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client28.SENSITIVE_STRING }
    }), "GetObjectOutputFilterSensitiveLog");
    var GetObjectRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client28.SENSITIVE_STRING }
    }), "GetObjectRequestFilterSensitiveLog");
    var GetObjectAttributesRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client28.SENSITIVE_STRING }
    }), "GetObjectAttributesRequestFilterSensitiveLog");
    var GetObjectTorrentOutputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj
    }), "GetObjectTorrentOutputFilterSensitiveLog");
    var HeadObjectOutputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client28.SENSITIVE_STRING }
    }), "HeadObjectOutputFilterSensitiveLog");
    var HeadObjectRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client28.SENSITIVE_STRING }
    }), "HeadObjectRequestFilterSensitiveLog");
    var ListBucketInventoryConfigurationsOutputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.InventoryConfigurationList && {
        InventoryConfigurationList: obj.InventoryConfigurationList.map(
          (item) => InventoryConfigurationFilterSensitiveLog(item)
        )
      }
    }), "ListBucketInventoryConfigurationsOutputFilterSensitiveLog");
    var import_core17 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var import_xml_builder2 = require_dist_cjs27();
    var import_core22 = (init_dist_es(), __toCommonJS(dist_es_exports));
    var import_protocol_http16 = require_dist_cjs2();
    var import_uuid2 = (init_esm_node(), __toCommonJS(esm_node_exports));
    var ObjectStorageClass = {
      DEEP_ARCHIVE: "DEEP_ARCHIVE",
      EXPRESS_ONEZONE: "EXPRESS_ONEZONE",
      FSX_OPENZFS: "FSX_OPENZFS",
      GLACIER: "GLACIER",
      GLACIER_IR: "GLACIER_IR",
      INTELLIGENT_TIERING: "INTELLIGENT_TIERING",
      ONEZONE_IA: "ONEZONE_IA",
      OUTPOSTS: "OUTPOSTS",
      REDUCED_REDUNDANCY: "REDUCED_REDUNDANCY",
      SNOW: "SNOW",
      STANDARD: "STANDARD",
      STANDARD_IA: "STANDARD_IA"
    };
    var OptionalObjectAttributes = {
      RESTORE_STATUS: "RestoreStatus"
    };
    var ObjectVersionStorageClass = {
      STANDARD: "STANDARD"
    };
    var MFADelete = {
      Disabled: "Disabled",
      Enabled: "Enabled"
    };
    var EncryptionTypeMismatch = class _EncryptionTypeMismatch extends S3ServiceException {
      static {
        __name(this, "_EncryptionTypeMismatch");
      }
      static {
        __name2(this, "EncryptionTypeMismatch");
      }
      name = "EncryptionTypeMismatch";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "EncryptionTypeMismatch",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _EncryptionTypeMismatch.prototype);
      }
    };
    var InvalidRequest = class _InvalidRequest extends S3ServiceException {
      static {
        __name(this, "_InvalidRequest");
      }
      static {
        __name2(this, "InvalidRequest");
      }
      name = "InvalidRequest";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidRequest",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidRequest.prototype);
      }
    };
    var InvalidWriteOffset = class _InvalidWriteOffset extends S3ServiceException {
      static {
        __name(this, "_InvalidWriteOffset");
      }
      static {
        __name2(this, "InvalidWriteOffset");
      }
      name = "InvalidWriteOffset";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidWriteOffset",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidWriteOffset.prototype);
      }
    };
    var TooManyParts = class _TooManyParts extends S3ServiceException {
      static {
        __name(this, "_TooManyParts");
      }
      static {
        __name2(this, "TooManyParts");
      }
      name = "TooManyParts";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "TooManyParts",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _TooManyParts.prototype);
      }
    };
    var IdempotencyParameterMismatch = class _IdempotencyParameterMismatch extends S3ServiceException {
      static {
        __name(this, "_IdempotencyParameterMismatch");
      }
      static {
        __name2(this, "IdempotencyParameterMismatch");
      }
      name = "IdempotencyParameterMismatch";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "IdempotencyParameterMismatch",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _IdempotencyParameterMismatch.prototype);
      }
    };
    var ObjectAlreadyInActiveTierError = class _ObjectAlreadyInActiveTierError extends S3ServiceException {
      static {
        __name(this, "_ObjectAlreadyInActiveTierError");
      }
      static {
        __name2(this, "ObjectAlreadyInActiveTierError");
      }
      name = "ObjectAlreadyInActiveTierError";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ObjectAlreadyInActiveTierError",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ObjectAlreadyInActiveTierError.prototype);
      }
    };
    var Tier = {
      Bulk: "Bulk",
      Expedited: "Expedited",
      Standard: "Standard"
    };
    var ExpressionType = {
      SQL: "SQL"
    };
    var CompressionType = {
      BZIP2: "BZIP2",
      GZIP: "GZIP",
      NONE: "NONE"
    };
    var FileHeaderInfo = {
      IGNORE: "IGNORE",
      NONE: "NONE",
      USE: "USE"
    };
    var JSONType = {
      DOCUMENT: "DOCUMENT",
      LINES: "LINES"
    };
    var QuoteFields = {
      ALWAYS: "ALWAYS",
      ASNEEDED: "ASNEEDED"
    };
    var RestoreRequestType = {
      SELECT: "SELECT"
    };
    var SelectObjectContentEventStream;
    ((SelectObjectContentEventStream3) => {
      SelectObjectContentEventStream3.visit = /* @__PURE__ */ __name2((value, visitor) => {
        if (value.Records !== void 0) return visitor.Records(value.Records);
        if (value.Stats !== void 0) return visitor.Stats(value.Stats);
        if (value.Progress !== void 0) return visitor.Progress(value.Progress);
        if (value.Cont !== void 0) return visitor.Cont(value.Cont);
        if (value.End !== void 0) return visitor.End(value.End);
        return visitor._(value.$unknown[0], value.$unknown[1]);
      }, "visit");
    })(SelectObjectContentEventStream || (SelectObjectContentEventStream = {}));
    var ListPartsRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client28.SENSITIVE_STRING }
    }), "ListPartsRequestFilterSensitiveLog");
    var PutBucketEncryptionRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.ServerSideEncryptionConfiguration && {
        ServerSideEncryptionConfiguration: ServerSideEncryptionConfigurationFilterSensitiveLog(
          obj.ServerSideEncryptionConfiguration
        )
      }
    }), "PutBucketEncryptionRequestFilterSensitiveLog");
    var PutBucketInventoryConfigurationRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.InventoryConfiguration && {
        InventoryConfiguration: InventoryConfigurationFilterSensitiveLog(obj.InventoryConfiguration)
      }
    }), "PutBucketInventoryConfigurationRequestFilterSensitiveLog");
    var PutObjectOutputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client28.SENSITIVE_STRING },
      ...obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: import_smithy_client28.SENSITIVE_STRING }
    }), "PutObjectOutputFilterSensitiveLog");
    var PutObjectRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client28.SENSITIVE_STRING },
      ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client28.SENSITIVE_STRING },
      ...obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: import_smithy_client28.SENSITIVE_STRING }
    }), "PutObjectRequestFilterSensitiveLog");
    var EncryptionFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.KMSKeyId && { KMSKeyId: import_smithy_client28.SENSITIVE_STRING }
    }), "EncryptionFilterSensitiveLog");
    var S3LocationFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Encryption && { Encryption: EncryptionFilterSensitiveLog(obj.Encryption) }
    }), "S3LocationFilterSensitiveLog");
    var OutputLocationFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.S3 && { S3: S3LocationFilterSensitiveLog(obj.S3) }
    }), "OutputLocationFilterSensitiveLog");
    var RestoreRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.OutputLocation && { OutputLocation: OutputLocationFilterSensitiveLog(obj.OutputLocation) }
    }), "RestoreRequestFilterSensitiveLog");
    var RestoreObjectRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.RestoreRequest && { RestoreRequest: RestoreRequestFilterSensitiveLog(obj.RestoreRequest) }
    }), "RestoreObjectRequestFilterSensitiveLog");
    var SelectObjectContentEventStreamFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => {
      if (obj.Records !== void 0) return { Records: obj.Records };
      if (obj.Stats !== void 0) return { Stats: obj.Stats };
      if (obj.Progress !== void 0) return { Progress: obj.Progress };
      if (obj.Cont !== void 0) return { Cont: obj.Cont };
      if (obj.End !== void 0) return { End: obj.End };
      if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
    }, "SelectObjectContentEventStreamFilterSensitiveLog");
    var SelectObjectContentOutputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Payload && { Payload: "STREAMING_CONTENT" }
    }), "SelectObjectContentOutputFilterSensitiveLog");
    var SelectObjectContentRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client28.SENSITIVE_STRING }
    }), "SelectObjectContentRequestFilterSensitiveLog");
    var UploadPartOutputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client28.SENSITIVE_STRING }
    }), "UploadPartOutputFilterSensitiveLog");
    var UploadPartRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client28.SENSITIVE_STRING }
    }), "UploadPartRequestFilterSensitiveLog");
    var UploadPartCopyOutputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client28.SENSITIVE_STRING }
    }), "UploadPartCopyOutputFilterSensitiveLog");
    var UploadPartCopyRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client28.SENSITIVE_STRING },
      ...obj.CopySourceSSECustomerKey && { CopySourceSSECustomerKey: import_smithy_client28.SENSITIVE_STRING }
    }), "UploadPartCopyRequestFilterSensitiveLog");
    var WriteGetObjectResponseRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client28.SENSITIVE_STRING }
    }), "WriteGetObjectResponseRequestFilterSensitiveLog");
    var se_AbortMultipartUploadCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xarp]: input[_RP],
        [_xaebo]: input[_EBO],
        [_xaimit]: [() => (0, import_smithy_client28.isSerializableHeaderValue)(input[_IMIT]), () => (0, import_smithy_client28.dateToUtcString)(input[_IMIT]).toString()]
      });
      b3.bp("/{Key+}");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      b3.p("Key", () => input.Key, "{Key+}", true);
      const query = (0, import_smithy_client28.map)({
        [_xi]: [, "AbortMultipartUpload"],
        [_uI]: [, (0, import_smithy_client28.expectNonNull)(input[_UI], `UploadId`)]
      });
      let body;
      b3.m("DELETE").h(headers).q(query).b(body);
      return b3.build();
    }, "se_AbortMultipartUploadCommand");
    var se_CompleteMultipartUploadCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        "content-type": "application/xml",
        [_xacc]: input[_CCRC],
        [_xacc_]: input[_CCRCC],
        [_xacc__]: input[_CCRCNVME],
        [_xacs]: input[_CSHA],
        [_xacs_]: input[_CSHAh],
        [_xact]: input[_CT],
        [_xamos]: [() => (0, import_smithy_client28.isSerializableHeaderValue)(input[_MOS]), () => input[_MOS].toString()],
        [_xarp]: input[_RP],
        [_xaebo]: input[_EBO],
        [_im]: input[_IM],
        [_inm]: input[_INM],
        [_xasseca]: input[_SSECA],
        [_xasseck]: input[_SSECK],
        [_xasseckm]: input[_SSECKMD]
      });
      b3.bp("/{Key+}");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      b3.p("Key", () => input.Key, "{Key+}", true);
      const query = (0, import_smithy_client28.map)({
        [_uI]: [, (0, import_smithy_client28.expectNonNull)(input[_UI], `UploadId`)]
      });
      let body;
      let contents;
      if (input.MultipartUpload !== void 0) {
        contents = se_CompletedMultipartUpload(input.MultipartUpload, context);
        contents = contents.n("CompleteMultipartUpload");
        body = _ve;
        contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
        body += contents.toString();
      }
      b3.m("POST").h(headers).q(query).b(body);
      return b3.build();
    }, "se_CompleteMultipartUploadCommand");
    var se_CopyObjectCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        ...input.Metadata !== void 0 && Object.keys(input.Metadata).reduce((acc, suffix) => {
          acc[`x-amz-meta-${suffix.toLowerCase()}`] = input.Metadata[suffix];
          return acc;
        }, {}),
        [_xaa]: input[_ACL],
        [_cc]: input[_CC],
        [_xaca]: input[_CA2],
        [_cd]: input[_CD],
        [_ce]: input[_CE],
        [_cl]: input[_CL],
        [_ct]: input[_CTo],
        [_xacs__]: input[_CS],
        [_xacsim]: input[_CSIM],
        [_xacsims]: [() => (0, import_smithy_client28.isSerializableHeaderValue)(input[_CSIMS]), () => (0, import_smithy_client28.dateToUtcString)(input[_CSIMS]).toString()],
        [_xacsinm]: input[_CSINM],
        [_xacsius]: [() => (0, import_smithy_client28.isSerializableHeaderValue)(input[_CSIUS]), () => (0, import_smithy_client28.dateToUtcString)(input[_CSIUS]).toString()],
        [_e]: [() => (0, import_smithy_client28.isSerializableHeaderValue)(input[_E2]), () => (0, import_smithy_client28.dateToUtcString)(input[_E2]).toString()],
        [_xagfc]: input[_GFC],
        [_xagr]: input[_GR],
        [_xagra]: input[_GRACP],
        [_xagwa]: input[_GWACP],
        [_xamd]: input[_MD],
        [_xatd]: input[_TD],
        [_xasse]: input[_SSE],
        [_xasc]: input[_SC],
        [_xawrl]: input[_WRL],
        [_xasseca]: input[_SSECA],
        [_xasseck]: input[_SSECK],
        [_xasseckm]: input[_SSECKMD],
        [_xasseakki]: input[_SSEKMSKI],
        [_xassec]: input[_SSEKMSEC],
        [_xassebke]: [() => (0, import_smithy_client28.isSerializableHeaderValue)(input[_BKE]), () => input[_BKE].toString()],
        [_xacssseca]: input[_CSSSECA],
        [_xacssseck]: input[_CSSSECK],
        [_xacssseckm]: input[_CSSSECKMD],
        [_xarp]: input[_RP],
        [_xat]: input[_T2],
        [_xaolm]: input[_OLM],
        [_xaolrud]: [() => (0, import_smithy_client28.isSerializableHeaderValue)(input[_OLRUD]), () => (0, import_smithy_client28.serializeDateTime)(input[_OLRUD]).toString()],
        [_xaollh]: input[_OLLHS],
        [_xaebo]: input[_EBO],
        [_xasebo]: input[_ESBO]
      });
      b3.bp("/{Key+}");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      b3.p("Key", () => input.Key, "{Key+}", true);
      const query = (0, import_smithy_client28.map)({
        [_xi]: [, "CopyObject"]
      });
      let body;
      b3.m("PUT").h(headers).q(query).b(body);
      return b3.build();
    }, "se_CopyObjectCommand");
    var se_CreateBucketCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        "content-type": "application/xml",
        [_xaa]: input[_ACL],
        [_xagfc]: input[_GFC],
        [_xagr]: input[_GR],
        [_xagra]: input[_GRACP],
        [_xagw]: input[_GW],
        [_xagwa]: input[_GWACP],
        [_xabole]: [() => (0, import_smithy_client28.isSerializableHeaderValue)(input[_OLEFB]), () => input[_OLEFB].toString()],
        [_xaoo]: input[_OO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      let body;
      let contents;
      if (input.CreateBucketConfiguration !== void 0) {
        contents = se_CreateBucketConfiguration(input.CreateBucketConfiguration, context);
        body = _ve;
        contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
        body += contents.toString();
      }
      b3.m("PUT").h(headers).b(body);
      return b3.build();
    }, "se_CreateBucketCommand");
    var se_CreateBucketMetadataConfigurationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        "content-type": "application/xml",
        [_cm]: input[_CMD],
        [_xasca]: input[_CA2],
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_mC]: [, ""]
      });
      let body;
      let contents;
      if (input.MetadataConfiguration !== void 0) {
        contents = se_MetadataConfiguration(input.MetadataConfiguration, context);
        body = _ve;
        contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
        body += contents.toString();
      }
      b3.m("POST").h(headers).q(query).b(body);
      return b3.build();
    }, "se_CreateBucketMetadataConfigurationCommand");
    var se_CreateBucketMetadataTableConfigurationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        "content-type": "application/xml",
        [_cm]: input[_CMD],
        [_xasca]: input[_CA2],
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_mT]: [, ""]
      });
      let body;
      let contents;
      if (input.MetadataTableConfiguration !== void 0) {
        contents = se_MetadataTableConfiguration(input.MetadataTableConfiguration, context);
        body = _ve;
        contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
        body += contents.toString();
      }
      b3.m("POST").h(headers).q(query).b(body);
      return b3.build();
    }, "se_CreateBucketMetadataTableConfigurationCommand");
    var se_CreateMultipartUploadCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        ...input.Metadata !== void 0 && Object.keys(input.Metadata).reduce((acc, suffix) => {
          acc[`x-amz-meta-${suffix.toLowerCase()}`] = input.Metadata[suffix];
          return acc;
        }, {}),
        [_xaa]: input[_ACL],
        [_cc]: input[_CC],
        [_cd]: input[_CD],
        [_ce]: input[_CE],
        [_cl]: input[_CL],
        [_ct]: input[_CTo],
        [_e]: [() => (0, import_smithy_client28.isSerializableHeaderValue)(input[_E2]), () => (0, import_smithy_client28.dateToUtcString)(input[_E2]).toString()],
        [_xagfc]: input[_GFC],
        [_xagr]: input[_GR],
        [_xagra]: input[_GRACP],
        [_xagwa]: input[_GWACP],
        [_xasse]: input[_SSE],
        [_xasc]: input[_SC],
        [_xawrl]: input[_WRL],
        [_xasseca]: input[_SSECA],
        [_xasseck]: input[_SSECK],
        [_xasseckm]: input[_SSECKMD],
        [_xasseakki]: input[_SSEKMSKI],
        [_xassec]: input[_SSEKMSEC],
        [_xassebke]: [() => (0, import_smithy_client28.isSerializableHeaderValue)(input[_BKE]), () => input[_BKE].toString()],
        [_xarp]: input[_RP],
        [_xat]: input[_T2],
        [_xaolm]: input[_OLM],
        [_xaolrud]: [() => (0, import_smithy_client28.isSerializableHeaderValue)(input[_OLRUD]), () => (0, import_smithy_client28.serializeDateTime)(input[_OLRUD]).toString()],
        [_xaollh]: input[_OLLHS],
        [_xaebo]: input[_EBO],
        [_xaca]: input[_CA2],
        [_xact]: input[_CT]
      });
      b3.bp("/{Key+}");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      b3.p("Key", () => input.Key, "{Key+}", true);
      const query = (0, import_smithy_client28.map)({
        [_u]: [, ""]
      });
      let body;
      b3.m("POST").h(headers).q(query).b(body);
      return b3.build();
    }, "se_CreateMultipartUploadCommand");
    var se_CreateSessionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xacsm]: input[_SM],
        [_xasse]: input[_SSE],
        [_xasseakki]: input[_SSEKMSKI],
        [_xassec]: input[_SSEKMSEC],
        [_xassebke]: [() => (0, import_smithy_client28.isSerializableHeaderValue)(input[_BKE]), () => input[_BKE].toString()]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_s]: [, ""]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_CreateSessionCommand");
    var se_DeleteBucketCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      let body;
      b3.m("DELETE").h(headers).b(body);
      return b3.build();
    }, "se_DeleteBucketCommand");
    var se_DeleteBucketAnalyticsConfigurationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_a2]: [, ""],
        [_i]: [, (0, import_smithy_client28.expectNonNull)(input[_I], `Id`)]
      });
      let body;
      b3.m("DELETE").h(headers).q(query).b(body);
      return b3.build();
    }, "se_DeleteBucketAnalyticsConfigurationCommand");
    var se_DeleteBucketCorsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_c]: [, ""]
      });
      let body;
      b3.m("DELETE").h(headers).q(query).b(body);
      return b3.build();
    }, "se_DeleteBucketCorsCommand");
    var se_DeleteBucketEncryptionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_en]: [, ""]
      });
      let body;
      b3.m("DELETE").h(headers).q(query).b(body);
      return b3.build();
    }, "se_DeleteBucketEncryptionCommand");
    var se_DeleteBucketIntelligentTieringConfigurationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_it]: [, ""],
        [_i]: [, (0, import_smithy_client28.expectNonNull)(input[_I], `Id`)]
      });
      let body;
      b3.m("DELETE").h(headers).q(query).b(body);
      return b3.build();
    }, "se_DeleteBucketIntelligentTieringConfigurationCommand");
    var se_DeleteBucketInventoryConfigurationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_in]: [, ""],
        [_i]: [, (0, import_smithy_client28.expectNonNull)(input[_I], `Id`)]
      });
      let body;
      b3.m("DELETE").h(headers).q(query).b(body);
      return b3.build();
    }, "se_DeleteBucketInventoryConfigurationCommand");
    var se_DeleteBucketLifecycleCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_l]: [, ""]
      });
      let body;
      b3.m("DELETE").h(headers).q(query).b(body);
      return b3.build();
    }, "se_DeleteBucketLifecycleCommand");
    var se_DeleteBucketMetadataConfigurationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_mC]: [, ""]
      });
      let body;
      b3.m("DELETE").h(headers).q(query).b(body);
      return b3.build();
    }, "se_DeleteBucketMetadataConfigurationCommand");
    var se_DeleteBucketMetadataTableConfigurationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_mT]: [, ""]
      });
      let body;
      b3.m("DELETE").h(headers).q(query).b(body);
      return b3.build();
    }, "se_DeleteBucketMetadataTableConfigurationCommand");
    var se_DeleteBucketMetricsConfigurationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_m2]: [, ""],
        [_i]: [, (0, import_smithy_client28.expectNonNull)(input[_I], `Id`)]
      });
      let body;
      b3.m("DELETE").h(headers).q(query).b(body);
      return b3.build();
    }, "se_DeleteBucketMetricsConfigurationCommand");
    var se_DeleteBucketOwnershipControlsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_oC]: [, ""]
      });
      let body;
      b3.m("DELETE").h(headers).q(query).b(body);
      return b3.build();
    }, "se_DeleteBucketOwnershipControlsCommand");
    var se_DeleteBucketPolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_p]: [, ""]
      });
      let body;
      b3.m("DELETE").h(headers).q(query).b(body);
      return b3.build();
    }, "se_DeleteBucketPolicyCommand");
    var se_DeleteBucketReplicationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_r]: [, ""]
      });
      let body;
      b3.m("DELETE").h(headers).q(query).b(body);
      return b3.build();
    }, "se_DeleteBucketReplicationCommand");
    var se_DeleteBucketTaggingCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_t]: [, ""]
      });
      let body;
      b3.m("DELETE").h(headers).q(query).b(body);
      return b3.build();
    }, "se_DeleteBucketTaggingCommand");
    var se_DeleteBucketWebsiteCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_w]: [, ""]
      });
      let body;
      b3.m("DELETE").h(headers).q(query).b(body);
      return b3.build();
    }, "se_DeleteBucketWebsiteCommand");
    var se_DeleteObjectCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xam]: input[_MFA],
        [_xarp]: input[_RP],
        [_xabgr]: [() => (0, import_smithy_client28.isSerializableHeaderValue)(input[_BGR]), () => input[_BGR].toString()],
        [_xaebo]: input[_EBO],
        [_im]: input[_IM],
        [_xaimlmt]: [() => (0, import_smithy_client28.isSerializableHeaderValue)(input[_IMLMT]), () => (0, import_smithy_client28.dateToUtcString)(input[_IMLMT]).toString()],
        [_xaims]: [() => (0, import_smithy_client28.isSerializableHeaderValue)(input[_IMS]), () => input[_IMS].toString()]
      });
      b3.bp("/{Key+}");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      b3.p("Key", () => input.Key, "{Key+}", true);
      const query = (0, import_smithy_client28.map)({
        [_xi]: [, "DeleteObject"],
        [_vI]: [, input[_VI]]
      });
      let body;
      b3.m("DELETE").h(headers).q(query).b(body);
      return b3.build();
    }, "se_DeleteObjectCommand");
    var se_DeleteObjectsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        "content-type": "application/xml",
        [_xam]: input[_MFA],
        [_xarp]: input[_RP],
        [_xabgr]: [() => (0, import_smithy_client28.isSerializableHeaderValue)(input[_BGR]), () => input[_BGR].toString()],
        [_xaebo]: input[_EBO],
        [_xasca]: input[_CA2]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_d]: [, ""]
      });
      let body;
      let contents;
      if (input.Delete !== void 0) {
        contents = se_Delete(input.Delete, context);
        body = _ve;
        contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
        body += contents.toString();
      }
      b3.m("POST").h(headers).q(query).b(body);
      return b3.build();
    }, "se_DeleteObjectsCommand");
    var se_DeleteObjectTaggingCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xaebo]: input[_EBO]
      });
      b3.bp("/{Key+}");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      b3.p("Key", () => input.Key, "{Key+}", true);
      const query = (0, import_smithy_client28.map)({
        [_t]: [, ""],
        [_vI]: [, input[_VI]]
      });
      let body;
      b3.m("DELETE").h(headers).q(query).b(body);
      return b3.build();
    }, "se_DeleteObjectTaggingCommand");
    var se_DeletePublicAccessBlockCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_pAB]: [, ""]
      });
      let body;
      b3.m("DELETE").h(headers).q(query).b(body);
      return b3.build();
    }, "se_DeletePublicAccessBlockCommand");
    var se_GetBucketAccelerateConfigurationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xaebo]: input[_EBO],
        [_xarp]: input[_RP]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_ac]: [, ""]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_GetBucketAccelerateConfigurationCommand");
    var se_GetBucketAclCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_acl]: [, ""]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_GetBucketAclCommand");
    var se_GetBucketAnalyticsConfigurationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_a2]: [, ""],
        [_xi]: [, "GetBucketAnalyticsConfiguration"],
        [_i]: [, (0, import_smithy_client28.expectNonNull)(input[_I], `Id`)]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_GetBucketAnalyticsConfigurationCommand");
    var se_GetBucketCorsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_c]: [, ""]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_GetBucketCorsCommand");
    var se_GetBucketEncryptionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_en]: [, ""]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_GetBucketEncryptionCommand");
    var se_GetBucketIntelligentTieringConfigurationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_it]: [, ""],
        [_xi]: [, "GetBucketIntelligentTieringConfiguration"],
        [_i]: [, (0, import_smithy_client28.expectNonNull)(input[_I], `Id`)]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_GetBucketIntelligentTieringConfigurationCommand");
    var se_GetBucketInventoryConfigurationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_in]: [, ""],
        [_xi]: [, "GetBucketInventoryConfiguration"],
        [_i]: [, (0, import_smithy_client28.expectNonNull)(input[_I], `Id`)]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_GetBucketInventoryConfigurationCommand");
    var se_GetBucketLifecycleConfigurationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_l]: [, ""]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_GetBucketLifecycleConfigurationCommand");
    var se_GetBucketLocationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_lo]: [, ""]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_GetBucketLocationCommand");
    var se_GetBucketLoggingCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_log]: [, ""]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_GetBucketLoggingCommand");
    var se_GetBucketMetadataConfigurationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_mC]: [, ""]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_GetBucketMetadataConfigurationCommand");
    var se_GetBucketMetadataTableConfigurationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_mT]: [, ""]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_GetBucketMetadataTableConfigurationCommand");
    var se_GetBucketMetricsConfigurationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_m2]: [, ""],
        [_xi]: [, "GetBucketMetricsConfiguration"],
        [_i]: [, (0, import_smithy_client28.expectNonNull)(input[_I], `Id`)]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_GetBucketMetricsConfigurationCommand");
    var se_GetBucketNotificationConfigurationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_n]: [, ""]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_GetBucketNotificationConfigurationCommand");
    var se_GetBucketOwnershipControlsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_oC]: [, ""]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_GetBucketOwnershipControlsCommand");
    var se_GetBucketPolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_p]: [, ""]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_GetBucketPolicyCommand");
    var se_GetBucketPolicyStatusCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_pS]: [, ""]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_GetBucketPolicyStatusCommand");
    var se_GetBucketReplicationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_r]: [, ""]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_GetBucketReplicationCommand");
    var se_GetBucketRequestPaymentCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_rP]: [, ""]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_GetBucketRequestPaymentCommand");
    var se_GetBucketTaggingCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_t]: [, ""]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_GetBucketTaggingCommand");
    var se_GetBucketVersioningCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_v]: [, ""]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_GetBucketVersioningCommand");
    var se_GetBucketWebsiteCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_w]: [, ""]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_GetBucketWebsiteCommand");
    var se_GetObjectCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_im]: input[_IM],
        [_ims]: [() => (0, import_smithy_client28.isSerializableHeaderValue)(input[_IMSf]), () => (0, import_smithy_client28.dateToUtcString)(input[_IMSf]).toString()],
        [_inm]: input[_INM],
        [_ius]: [() => (0, import_smithy_client28.isSerializableHeaderValue)(input[_IUS]), () => (0, import_smithy_client28.dateToUtcString)(input[_IUS]).toString()],
        [_ra]: input[_R],
        [_xasseca]: input[_SSECA],
        [_xasseck]: input[_SSECK],
        [_xasseckm]: input[_SSECKMD],
        [_xarp]: input[_RP],
        [_xaebo]: input[_EBO],
        [_xacm]: input[_CM]
      });
      b3.bp("/{Key+}");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      b3.p("Key", () => input.Key, "{Key+}", true);
      const query = (0, import_smithy_client28.map)({
        [_xi]: [, "GetObject"],
        [_rcc]: [, input[_RCC]],
        [_rcd]: [, input[_RCD]],
        [_rce]: [, input[_RCE]],
        [_rcl]: [, input[_RCL]],
        [_rct]: [, input[_RCT]],
        [_re]: [() => input.ResponseExpires !== void 0, () => (0, import_smithy_client28.dateToUtcString)(input[_RE]).toString()],
        [_vI]: [, input[_VI]],
        [_pN]: [() => input.PartNumber !== void 0, () => input[_PN].toString()]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_GetObjectCommand");
    var se_GetObjectAclCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xarp]: input[_RP],
        [_xaebo]: input[_EBO]
      });
      b3.bp("/{Key+}");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      b3.p("Key", () => input.Key, "{Key+}", true);
      const query = (0, import_smithy_client28.map)({
        [_acl]: [, ""],
        [_vI]: [, input[_VI]]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_GetObjectAclCommand");
    var se_GetObjectAttributesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xamp]: [() => (0, import_smithy_client28.isSerializableHeaderValue)(input[_MP]), () => input[_MP].toString()],
        [_xapnm]: input[_PNM],
        [_xasseca]: input[_SSECA],
        [_xasseck]: input[_SSECK],
        [_xasseckm]: input[_SSECKMD],
        [_xarp]: input[_RP],
        [_xaebo]: input[_EBO],
        [_xaoa]: [() => (0, import_smithy_client28.isSerializableHeaderValue)(input[_OA]), () => (input[_OA] || []).map(import_smithy_client28.quoteHeader).join(", ")]
      });
      b3.bp("/{Key+}");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      b3.p("Key", () => input.Key, "{Key+}", true);
      const query = (0, import_smithy_client28.map)({
        [_at]: [, ""],
        [_vI]: [, input[_VI]]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_GetObjectAttributesCommand");
    var se_GetObjectLegalHoldCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xarp]: input[_RP],
        [_xaebo]: input[_EBO]
      });
      b3.bp("/{Key+}");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      b3.p("Key", () => input.Key, "{Key+}", true);
      const query = (0, import_smithy_client28.map)({
        [_lh]: [, ""],
        [_vI]: [, input[_VI]]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_GetObjectLegalHoldCommand");
    var se_GetObjectLockConfigurationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_ol]: [, ""]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_GetObjectLockConfigurationCommand");
    var se_GetObjectRetentionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xarp]: input[_RP],
        [_xaebo]: input[_EBO]
      });
      b3.bp("/{Key+}");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      b3.p("Key", () => input.Key, "{Key+}", true);
      const query = (0, import_smithy_client28.map)({
        [_ret]: [, ""],
        [_vI]: [, input[_VI]]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_GetObjectRetentionCommand");
    var se_GetObjectTaggingCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xaebo]: input[_EBO],
        [_xarp]: input[_RP]
      });
      b3.bp("/{Key+}");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      b3.p("Key", () => input.Key, "{Key+}", true);
      const query = (0, import_smithy_client28.map)({
        [_t]: [, ""],
        [_vI]: [, input[_VI]]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_GetObjectTaggingCommand");
    var se_GetObjectTorrentCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xarp]: input[_RP],
        [_xaebo]: input[_EBO]
      });
      b3.bp("/{Key+}");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      b3.p("Key", () => input.Key, "{Key+}", true);
      const query = (0, import_smithy_client28.map)({
        [_to]: [, ""]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_GetObjectTorrentCommand");
    var se_GetPublicAccessBlockCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_pAB]: [, ""]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_GetPublicAccessBlockCommand");
    var se_HeadBucketCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      let body;
      b3.m("HEAD").h(headers).b(body);
      return b3.build();
    }, "se_HeadBucketCommand");
    var se_HeadObjectCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_im]: input[_IM],
        [_ims]: [() => (0, import_smithy_client28.isSerializableHeaderValue)(input[_IMSf]), () => (0, import_smithy_client28.dateToUtcString)(input[_IMSf]).toString()],
        [_inm]: input[_INM],
        [_ius]: [() => (0, import_smithy_client28.isSerializableHeaderValue)(input[_IUS]), () => (0, import_smithy_client28.dateToUtcString)(input[_IUS]).toString()],
        [_ra]: input[_R],
        [_xasseca]: input[_SSECA],
        [_xasseck]: input[_SSECK],
        [_xasseckm]: input[_SSECKMD],
        [_xarp]: input[_RP],
        [_xaebo]: input[_EBO],
        [_xacm]: input[_CM]
      });
      b3.bp("/{Key+}");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      b3.p("Key", () => input.Key, "{Key+}", true);
      const query = (0, import_smithy_client28.map)({
        [_rcc]: [, input[_RCC]],
        [_rcd]: [, input[_RCD]],
        [_rce]: [, input[_RCE]],
        [_rcl]: [, input[_RCL]],
        [_rct]: [, input[_RCT]],
        [_re]: [() => input.ResponseExpires !== void 0, () => (0, import_smithy_client28.dateToUtcString)(input[_RE]).toString()],
        [_vI]: [, input[_VI]],
        [_pN]: [() => input.PartNumber !== void 0, () => input[_PN].toString()]
      });
      let body;
      b3.m("HEAD").h(headers).q(query).b(body);
      return b3.build();
    }, "se_HeadObjectCommand");
    var se_ListBucketAnalyticsConfigurationsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_a2]: [, ""],
        [_xi]: [, "ListBucketAnalyticsConfigurations"],
        [_ct_]: [, input[_CTon]]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_ListBucketAnalyticsConfigurationsCommand");
    var se_ListBucketIntelligentTieringConfigurationsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_it]: [, ""],
        [_xi]: [, "ListBucketIntelligentTieringConfigurations"],
        [_ct_]: [, input[_CTon]]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_ListBucketIntelligentTieringConfigurationsCommand");
    var se_ListBucketInventoryConfigurationsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_in]: [, ""],
        [_xi]: [, "ListBucketInventoryConfigurations"],
        [_ct_]: [, input[_CTon]]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_ListBucketInventoryConfigurationsCommand");
    var se_ListBucketMetricsConfigurationsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_m2]: [, ""],
        [_xi]: [, "ListBucketMetricsConfigurations"],
        [_ct_]: [, input[_CTon]]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_ListBucketMetricsConfigurationsCommand");
    var se_ListBucketsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/");
      const query = (0, import_smithy_client28.map)({
        [_xi]: [, "ListBuckets"],
        [_mb]: [() => input.MaxBuckets !== void 0, () => input[_MB].toString()],
        [_ct_]: [, input[_CTon]],
        [_pr]: [, input[_P2]],
        [_br]: [, input[_BR]]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_ListBucketsCommand");
    var se_ListDirectoryBucketsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/");
      const query = (0, import_smithy_client28.map)({
        [_xi]: [, "ListDirectoryBuckets"],
        [_ct_]: [, input[_CTon]],
        [_mdb]: [() => input.MaxDirectoryBuckets !== void 0, () => input[_MDB].toString()]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_ListDirectoryBucketsCommand");
    var se_ListMultipartUploadsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xaebo]: input[_EBO],
        [_xarp]: input[_RP]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_u]: [, ""],
        [_de]: [, input[_D]],
        [_et]: [, input[_ET]],
        [_km]: [, input[_KM]],
        [_mu]: [() => input.MaxUploads !== void 0, () => input[_MU].toString()],
        [_pr]: [, input[_P2]],
        [_uim]: [, input[_UIM]]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_ListMultipartUploadsCommand");
    var se_ListObjectsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xarp]: input[_RP],
        [_xaebo]: input[_EBO],
        [_xaooa]: [() => (0, import_smithy_client28.isSerializableHeaderValue)(input[_OOA]), () => (input[_OOA] || []).map(import_smithy_client28.quoteHeader).join(", ")]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_de]: [, input[_D]],
        [_et]: [, input[_ET]],
        [_ma]: [, input[_M]],
        [_mk]: [() => input.MaxKeys !== void 0, () => input[_MK].toString()],
        [_pr]: [, input[_P2]]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_ListObjectsCommand");
    var se_ListObjectsV2Command = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xarp]: input[_RP],
        [_xaebo]: input[_EBO],
        [_xaooa]: [() => (0, import_smithy_client28.isSerializableHeaderValue)(input[_OOA]), () => (input[_OOA] || []).map(import_smithy_client28.quoteHeader).join(", ")]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_lt]: [, "2"],
        [_de]: [, input[_D]],
        [_et]: [, input[_ET]],
        [_mk]: [() => input.MaxKeys !== void 0, () => input[_MK].toString()],
        [_pr]: [, input[_P2]],
        [_ct_]: [, input[_CTon]],
        [_fo]: [() => input.FetchOwner !== void 0, () => input[_FO].toString()],
        [_sa]: [, input[_SA]]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_ListObjectsV2Command");
    var se_ListObjectVersionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xaebo]: input[_EBO],
        [_xarp]: input[_RP],
        [_xaooa]: [() => (0, import_smithy_client28.isSerializableHeaderValue)(input[_OOA]), () => (input[_OOA] || []).map(import_smithy_client28.quoteHeader).join(", ")]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_ver]: [, ""],
        [_de]: [, input[_D]],
        [_et]: [, input[_ET]],
        [_km]: [, input[_KM]],
        [_mk]: [() => input.MaxKeys !== void 0, () => input[_MK].toString()],
        [_pr]: [, input[_P2]],
        [_vim]: [, input[_VIM]]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_ListObjectVersionsCommand");
    var se_ListPartsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xarp]: input[_RP],
        [_xaebo]: input[_EBO],
        [_xasseca]: input[_SSECA],
        [_xasseck]: input[_SSECK],
        [_xasseckm]: input[_SSECKMD]
      });
      b3.bp("/{Key+}");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      b3.p("Key", () => input.Key, "{Key+}", true);
      const query = (0, import_smithy_client28.map)({
        [_xi]: [, "ListParts"],
        [_mp]: [() => input.MaxParts !== void 0, () => input[_MP].toString()],
        [_pnm]: [, input[_PNM]],
        [_uI]: [, (0, import_smithy_client28.expectNonNull)(input[_UI], `UploadId`)]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_ListPartsCommand");
    var se_PutBucketAccelerateConfigurationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        "content-type": "application/xml",
        [_xaebo]: input[_EBO],
        [_xasca]: input[_CA2]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_ac]: [, ""]
      });
      let body;
      let contents;
      if (input.AccelerateConfiguration !== void 0) {
        contents = se_AccelerateConfiguration(input.AccelerateConfiguration, context);
        body = _ve;
        contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
        body += contents.toString();
      }
      b3.m("PUT").h(headers).q(query).b(body);
      return b3.build();
    }, "se_PutBucketAccelerateConfigurationCommand");
    var se_PutBucketAclCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        "content-type": "application/xml",
        [_xaa]: input[_ACL],
        [_cm]: input[_CMD],
        [_xasca]: input[_CA2],
        [_xagfc]: input[_GFC],
        [_xagr]: input[_GR],
        [_xagra]: input[_GRACP],
        [_xagw]: input[_GW],
        [_xagwa]: input[_GWACP],
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_acl]: [, ""]
      });
      let body;
      let contents;
      if (input.AccessControlPolicy !== void 0) {
        contents = se_AccessControlPolicy(input.AccessControlPolicy, context);
        body = _ve;
        contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
        body += contents.toString();
      }
      b3.m("PUT").h(headers).q(query).b(body);
      return b3.build();
    }, "se_PutBucketAclCommand");
    var se_PutBucketAnalyticsConfigurationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        "content-type": "application/xml",
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_a2]: [, ""],
        [_i]: [, (0, import_smithy_client28.expectNonNull)(input[_I], `Id`)]
      });
      let body;
      let contents;
      if (input.AnalyticsConfiguration !== void 0) {
        contents = se_AnalyticsConfiguration(input.AnalyticsConfiguration, context);
        body = _ve;
        contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
        body += contents.toString();
      }
      b3.m("PUT").h(headers).q(query).b(body);
      return b3.build();
    }, "se_PutBucketAnalyticsConfigurationCommand");
    var se_PutBucketCorsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        "content-type": "application/xml",
        [_cm]: input[_CMD],
        [_xasca]: input[_CA2],
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_c]: [, ""]
      });
      let body;
      let contents;
      if (input.CORSConfiguration !== void 0) {
        contents = se_CORSConfiguration(input.CORSConfiguration, context);
        body = _ve;
        contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
        body += contents.toString();
      }
      b3.m("PUT").h(headers).q(query).b(body);
      return b3.build();
    }, "se_PutBucketCorsCommand");
    var se_PutBucketEncryptionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        "content-type": "application/xml",
        [_cm]: input[_CMD],
        [_xasca]: input[_CA2],
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_en]: [, ""]
      });
      let body;
      let contents;
      if (input.ServerSideEncryptionConfiguration !== void 0) {
        contents = se_ServerSideEncryptionConfiguration(input.ServerSideEncryptionConfiguration, context);
        body = _ve;
        contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
        body += contents.toString();
      }
      b3.m("PUT").h(headers).q(query).b(body);
      return b3.build();
    }, "se_PutBucketEncryptionCommand");
    var se_PutBucketIntelligentTieringConfigurationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        "content-type": "application/xml",
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_it]: [, ""],
        [_i]: [, (0, import_smithy_client28.expectNonNull)(input[_I], `Id`)]
      });
      let body;
      let contents;
      if (input.IntelligentTieringConfiguration !== void 0) {
        contents = se_IntelligentTieringConfiguration(input.IntelligentTieringConfiguration, context);
        body = _ve;
        contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
        body += contents.toString();
      }
      b3.m("PUT").h(headers).q(query).b(body);
      return b3.build();
    }, "se_PutBucketIntelligentTieringConfigurationCommand");
    var se_PutBucketInventoryConfigurationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        "content-type": "application/xml",
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_in]: [, ""],
        [_i]: [, (0, import_smithy_client28.expectNonNull)(input[_I], `Id`)]
      });
      let body;
      let contents;
      if (input.InventoryConfiguration !== void 0) {
        contents = se_InventoryConfiguration(input.InventoryConfiguration, context);
        body = _ve;
        contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
        body += contents.toString();
      }
      b3.m("PUT").h(headers).q(query).b(body);
      return b3.build();
    }, "se_PutBucketInventoryConfigurationCommand");
    var se_PutBucketLifecycleConfigurationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        "content-type": "application/xml",
        [_xasca]: input[_CA2],
        [_xaebo]: input[_EBO],
        [_xatdmos]: input[_TDMOS]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_l]: [, ""]
      });
      let body;
      let contents;
      if (input.LifecycleConfiguration !== void 0) {
        contents = se_BucketLifecycleConfiguration(input.LifecycleConfiguration, context);
        contents = contents.n("LifecycleConfiguration");
        body = _ve;
        contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
        body += contents.toString();
      }
      b3.m("PUT").h(headers).q(query).b(body);
      return b3.build();
    }, "se_PutBucketLifecycleConfigurationCommand");
    var se_PutBucketLoggingCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        "content-type": "application/xml",
        [_cm]: input[_CMD],
        [_xasca]: input[_CA2],
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_log]: [, ""]
      });
      let body;
      let contents;
      if (input.BucketLoggingStatus !== void 0) {
        contents = se_BucketLoggingStatus(input.BucketLoggingStatus, context);
        body = _ve;
        contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
        body += contents.toString();
      }
      b3.m("PUT").h(headers).q(query).b(body);
      return b3.build();
    }, "se_PutBucketLoggingCommand");
    var se_PutBucketMetricsConfigurationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        "content-type": "application/xml",
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_m2]: [, ""],
        [_i]: [, (0, import_smithy_client28.expectNonNull)(input[_I], `Id`)]
      });
      let body;
      let contents;
      if (input.MetricsConfiguration !== void 0) {
        contents = se_MetricsConfiguration(input.MetricsConfiguration, context);
        body = _ve;
        contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
        body += contents.toString();
      }
      b3.m("PUT").h(headers).q(query).b(body);
      return b3.build();
    }, "se_PutBucketMetricsConfigurationCommand");
    var se_PutBucketNotificationConfigurationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        "content-type": "application/xml",
        [_xaebo]: input[_EBO],
        [_xasdv]: [() => (0, import_smithy_client28.isSerializableHeaderValue)(input[_SDV]), () => input[_SDV].toString()]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_n]: [, ""]
      });
      let body;
      let contents;
      if (input.NotificationConfiguration !== void 0) {
        contents = se_NotificationConfiguration(input.NotificationConfiguration, context);
        body = _ve;
        contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
        body += contents.toString();
      }
      b3.m("PUT").h(headers).q(query).b(body);
      return b3.build();
    }, "se_PutBucketNotificationConfigurationCommand");
    var se_PutBucketOwnershipControlsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        "content-type": "application/xml",
        [_cm]: input[_CMD],
        [_xaebo]: input[_EBO],
        [_xasca]: input[_CA2]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_oC]: [, ""]
      });
      let body;
      let contents;
      if (input.OwnershipControls !== void 0) {
        contents = se_OwnershipControls(input.OwnershipControls, context);
        body = _ve;
        contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
        body += contents.toString();
      }
      b3.m("PUT").h(headers).q(query).b(body);
      return b3.build();
    }, "se_PutBucketOwnershipControlsCommand");
    var se_PutBucketPolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        "content-type": "text/plain",
        [_cm]: input[_CMD],
        [_xasca]: input[_CA2],
        [_xacrsba]: [() => (0, import_smithy_client28.isSerializableHeaderValue)(input[_CRSBA]), () => input[_CRSBA].toString()],
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_p]: [, ""]
      });
      let body;
      let contents;
      if (input.Policy !== void 0) {
        contents = input.Policy;
        body = contents;
      }
      b3.m("PUT").h(headers).q(query).b(body);
      return b3.build();
    }, "se_PutBucketPolicyCommand");
    var se_PutBucketReplicationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        "content-type": "application/xml",
        [_cm]: input[_CMD],
        [_xasca]: input[_CA2],
        [_xabolt]: input[_To],
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_r]: [, ""]
      });
      let body;
      let contents;
      if (input.ReplicationConfiguration !== void 0) {
        contents = se_ReplicationConfiguration(input.ReplicationConfiguration, context);
        body = _ve;
        contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
        body += contents.toString();
      }
      b3.m("PUT").h(headers).q(query).b(body);
      return b3.build();
    }, "se_PutBucketReplicationCommand");
    var se_PutBucketRequestPaymentCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        "content-type": "application/xml",
        [_cm]: input[_CMD],
        [_xasca]: input[_CA2],
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_rP]: [, ""]
      });
      let body;
      let contents;
      if (input.RequestPaymentConfiguration !== void 0) {
        contents = se_RequestPaymentConfiguration(input.RequestPaymentConfiguration, context);
        body = _ve;
        contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
        body += contents.toString();
      }
      b3.m("PUT").h(headers).q(query).b(body);
      return b3.build();
    }, "se_PutBucketRequestPaymentCommand");
    var se_PutBucketTaggingCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        "content-type": "application/xml",
        [_cm]: input[_CMD],
        [_xasca]: input[_CA2],
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_t]: [, ""]
      });
      let body;
      let contents;
      if (input.Tagging !== void 0) {
        contents = se_Tagging(input.Tagging, context);
        body = _ve;
        contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
        body += contents.toString();
      }
      b3.m("PUT").h(headers).q(query).b(body);
      return b3.build();
    }, "se_PutBucketTaggingCommand");
    var se_PutBucketVersioningCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        "content-type": "application/xml",
        [_cm]: input[_CMD],
        [_xasca]: input[_CA2],
        [_xam]: input[_MFA],
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_v]: [, ""]
      });
      let body;
      let contents;
      if (input.VersioningConfiguration !== void 0) {
        contents = se_VersioningConfiguration(input.VersioningConfiguration, context);
        body = _ve;
        contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
        body += contents.toString();
      }
      b3.m("PUT").h(headers).q(query).b(body);
      return b3.build();
    }, "se_PutBucketVersioningCommand");
    var se_PutBucketWebsiteCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        "content-type": "application/xml",
        [_cm]: input[_CMD],
        [_xasca]: input[_CA2],
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_w]: [, ""]
      });
      let body;
      let contents;
      if (input.WebsiteConfiguration !== void 0) {
        contents = se_WebsiteConfiguration(input.WebsiteConfiguration, context);
        body = _ve;
        contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
        body += contents.toString();
      }
      b3.m("PUT").h(headers).q(query).b(body);
      return b3.build();
    }, "se_PutBucketWebsiteCommand");
    var se_PutObjectCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        ...input.Metadata !== void 0 && Object.keys(input.Metadata).reduce((acc, suffix) => {
          acc[`x-amz-meta-${suffix.toLowerCase()}`] = input.Metadata[suffix];
          return acc;
        }, {}),
        [_ct]: input[_CTo] || "application/octet-stream",
        [_xaa]: input[_ACL],
        [_cc]: input[_CC],
        [_cd]: input[_CD],
        [_ce]: input[_CE],
        [_cl]: input[_CL],
        [_cl_]: [() => (0, import_smithy_client28.isSerializableHeaderValue)(input[_CLo]), () => input[_CLo].toString()],
        [_cm]: input[_CMD],
        [_xasca]: input[_CA2],
        [_xacc]: input[_CCRC],
        [_xacc_]: input[_CCRCC],
        [_xacc__]: input[_CCRCNVME],
        [_xacs]: input[_CSHA],
        [_xacs_]: input[_CSHAh],
        [_e]: [() => (0, import_smithy_client28.isSerializableHeaderValue)(input[_E2]), () => (0, import_smithy_client28.dateToUtcString)(input[_E2]).toString()],
        [_im]: input[_IM],
        [_inm]: input[_INM],
        [_xagfc]: input[_GFC],
        [_xagr]: input[_GR],
        [_xagra]: input[_GRACP],
        [_xagwa]: input[_GWACP],
        [_xawob]: [() => (0, import_smithy_client28.isSerializableHeaderValue)(input[_WOB]), () => input[_WOB].toString()],
        [_xasse]: input[_SSE],
        [_xasc]: input[_SC],
        [_xawrl]: input[_WRL],
        [_xasseca]: input[_SSECA],
        [_xasseck]: input[_SSECK],
        [_xasseckm]: input[_SSECKMD],
        [_xasseakki]: input[_SSEKMSKI],
        [_xassec]: input[_SSEKMSEC],
        [_xassebke]: [() => (0, import_smithy_client28.isSerializableHeaderValue)(input[_BKE]), () => input[_BKE].toString()],
        [_xarp]: input[_RP],
        [_xat]: input[_T2],
        [_xaolm]: input[_OLM],
        [_xaolrud]: [() => (0, import_smithy_client28.isSerializableHeaderValue)(input[_OLRUD]), () => (0, import_smithy_client28.serializeDateTime)(input[_OLRUD]).toString()],
        [_xaollh]: input[_OLLHS],
        [_xaebo]: input[_EBO]
      });
      b3.bp("/{Key+}");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      b3.p("Key", () => input.Key, "{Key+}", true);
      const query = (0, import_smithy_client28.map)({
        [_xi]: [, "PutObject"]
      });
      let body;
      let contents;
      if (input.Body !== void 0) {
        contents = input.Body;
        body = contents;
      }
      b3.m("PUT").h(headers).q(query).b(body);
      return b3.build();
    }, "se_PutObjectCommand");
    var se_PutObjectAclCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        "content-type": "application/xml",
        [_xaa]: input[_ACL],
        [_cm]: input[_CMD],
        [_xasca]: input[_CA2],
        [_xagfc]: input[_GFC],
        [_xagr]: input[_GR],
        [_xagra]: input[_GRACP],
        [_xagw]: input[_GW],
        [_xagwa]: input[_GWACP],
        [_xarp]: input[_RP],
        [_xaebo]: input[_EBO]
      });
      b3.bp("/{Key+}");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      b3.p("Key", () => input.Key, "{Key+}", true);
      const query = (0, import_smithy_client28.map)({
        [_acl]: [, ""],
        [_vI]: [, input[_VI]]
      });
      let body;
      let contents;
      if (input.AccessControlPolicy !== void 0) {
        contents = se_AccessControlPolicy(input.AccessControlPolicy, context);
        body = _ve;
        contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
        body += contents.toString();
      }
      b3.m("PUT").h(headers).q(query).b(body);
      return b3.build();
    }, "se_PutObjectAclCommand");
    var se_PutObjectLegalHoldCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        "content-type": "application/xml",
        [_xarp]: input[_RP],
        [_cm]: input[_CMD],
        [_xasca]: input[_CA2],
        [_xaebo]: input[_EBO]
      });
      b3.bp("/{Key+}");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      b3.p("Key", () => input.Key, "{Key+}", true);
      const query = (0, import_smithy_client28.map)({
        [_lh]: [, ""],
        [_vI]: [, input[_VI]]
      });
      let body;
      let contents;
      if (input.LegalHold !== void 0) {
        contents = se_ObjectLockLegalHold(input.LegalHold, context);
        contents = contents.n("LegalHold");
        body = _ve;
        contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
        body += contents.toString();
      }
      b3.m("PUT").h(headers).q(query).b(body);
      return b3.build();
    }, "se_PutObjectLegalHoldCommand");
    var se_PutObjectLockConfigurationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        "content-type": "application/xml",
        [_xarp]: input[_RP],
        [_xabolt]: input[_To],
        [_cm]: input[_CMD],
        [_xasca]: input[_CA2],
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_ol]: [, ""]
      });
      let body;
      let contents;
      if (input.ObjectLockConfiguration !== void 0) {
        contents = se_ObjectLockConfiguration(input.ObjectLockConfiguration, context);
        body = _ve;
        contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
        body += contents.toString();
      }
      b3.m("PUT").h(headers).q(query).b(body);
      return b3.build();
    }, "se_PutObjectLockConfigurationCommand");
    var se_PutObjectRetentionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        "content-type": "application/xml",
        [_xarp]: input[_RP],
        [_xabgr]: [() => (0, import_smithy_client28.isSerializableHeaderValue)(input[_BGR]), () => input[_BGR].toString()],
        [_cm]: input[_CMD],
        [_xasca]: input[_CA2],
        [_xaebo]: input[_EBO]
      });
      b3.bp("/{Key+}");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      b3.p("Key", () => input.Key, "{Key+}", true);
      const query = (0, import_smithy_client28.map)({
        [_ret]: [, ""],
        [_vI]: [, input[_VI]]
      });
      let body;
      let contents;
      if (input.Retention !== void 0) {
        contents = se_ObjectLockRetention(input.Retention, context);
        contents = contents.n("Retention");
        body = _ve;
        contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
        body += contents.toString();
      }
      b3.m("PUT").h(headers).q(query).b(body);
      return b3.build();
    }, "se_PutObjectRetentionCommand");
    var se_PutObjectTaggingCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        "content-type": "application/xml",
        [_cm]: input[_CMD],
        [_xasca]: input[_CA2],
        [_xaebo]: input[_EBO],
        [_xarp]: input[_RP]
      });
      b3.bp("/{Key+}");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      b3.p("Key", () => input.Key, "{Key+}", true);
      const query = (0, import_smithy_client28.map)({
        [_t]: [, ""],
        [_vI]: [, input[_VI]]
      });
      let body;
      let contents;
      if (input.Tagging !== void 0) {
        contents = se_Tagging(input.Tagging, context);
        body = _ve;
        contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
        body += contents.toString();
      }
      b3.m("PUT").h(headers).q(query).b(body);
      return b3.build();
    }, "se_PutObjectTaggingCommand");
    var se_PutPublicAccessBlockCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        "content-type": "application/xml",
        [_cm]: input[_CMD],
        [_xasca]: input[_CA2],
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_pAB]: [, ""]
      });
      let body;
      let contents;
      if (input.PublicAccessBlockConfiguration !== void 0) {
        contents = se_PublicAccessBlockConfiguration(input.PublicAccessBlockConfiguration, context);
        body = _ve;
        contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
        body += contents.toString();
      }
      b3.m("PUT").h(headers).q(query).b(body);
      return b3.build();
    }, "se_PutPublicAccessBlockCommand");
    var se_RenameObjectCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xars]: input[_RS],
        [_im]: input[_DIM],
        [_inm]: input[_DINM],
        [_ims]: [() => (0, import_smithy_client28.isSerializableHeaderValue)(input[_DIMS]), () => (0, import_smithy_client28.dateToUtcString)(input[_DIMS]).toString()],
        [_ius]: [() => (0, import_smithy_client28.isSerializableHeaderValue)(input[_DIUS]), () => (0, import_smithy_client28.dateToUtcString)(input[_DIUS]).toString()],
        [_xarsim]: input[_SIM],
        [_xarsinm]: input[_SINM],
        [_xarsims]: [() => (0, import_smithy_client28.isSerializableHeaderValue)(input[_SIMS]), () => (0, import_smithy_client28.dateToUtcString)(input[_SIMS]).toString()],
        [_xarsius]: [() => (0, import_smithy_client28.isSerializableHeaderValue)(input[_SIUS]), () => (0, import_smithy_client28.dateToUtcString)(input[_SIUS]).toString()],
        [_xact_]: input[_CTl] ?? (0, import_uuid2.v4)()
      });
      b3.bp("/{Key+}");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      b3.p("Key", () => input.Key, "{Key+}", true);
      const query = (0, import_smithy_client28.map)({
        [_rO]: [, ""]
      });
      let body;
      b3.m("PUT").h(headers).q(query).b(body);
      return b3.build();
    }, "se_RenameObjectCommand");
    var se_RestoreObjectCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        "content-type": "application/xml",
        [_xarp]: input[_RP],
        [_xasca]: input[_CA2],
        [_xaebo]: input[_EBO]
      });
      b3.bp("/{Key+}");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      b3.p("Key", () => input.Key, "{Key+}", true);
      const query = (0, import_smithy_client28.map)({
        [_res]: [, ""],
        [_vI]: [, input[_VI]]
      });
      let body;
      let contents;
      if (input.RestoreRequest !== void 0) {
        contents = se_RestoreRequest(input.RestoreRequest, context);
        body = _ve;
        contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
        body += contents.toString();
      }
      b3.m("POST").h(headers).q(query).b(body);
      return b3.build();
    }, "se_RestoreObjectCommand");
    var se_SelectObjectContentCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        "content-type": "application/xml",
        [_xasseca]: input[_SSECA],
        [_xasseck]: input[_SSECK],
        [_xasseckm]: input[_SSECKMD],
        [_xaebo]: input[_EBO]
      });
      b3.bp("/{Key+}");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      b3.p("Key", () => input.Key, "{Key+}", true);
      const query = (0, import_smithy_client28.map)({
        [_se]: [, ""],
        [_st]: [, "2"]
      });
      let body;
      body = _ve;
      const bn = new import_xml_builder2.XmlNode(_SOCR);
      bn.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
      bn.cc(input, _Ex);
      bn.cc(input, _ETx);
      if (input[_IS] != null) {
        bn.c(se_InputSerialization(input[_IS], context).n(_IS));
      }
      if (input[_OS] != null) {
        bn.c(se_OutputSerialization(input[_OS], context).n(_OS));
      }
      if (input[_RPe] != null) {
        bn.c(se_RequestProgress(input[_RPe], context).n(_RPe));
      }
      if (input[_SR] != null) {
        bn.c(se_ScanRange(input[_SR], context).n(_SR));
      }
      body += bn.toString();
      b3.m("POST").h(headers).q(query).b(body);
      return b3.build();
    }, "se_SelectObjectContentCommand");
    var se_UpdateBucketMetadataInventoryTableConfigurationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        "content-type": "application/xml",
        [_cm]: input[_CMD],
        [_xasca]: input[_CA2],
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_mIT]: [, ""]
      });
      let body;
      let contents;
      if (input.InventoryTableConfiguration !== void 0) {
        contents = se_InventoryTableConfigurationUpdates(input.InventoryTableConfiguration, context);
        contents = contents.n("InventoryTableConfiguration");
        body = _ve;
        contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
        body += contents.toString();
      }
      b3.m("PUT").h(headers).q(query).b(body);
      return b3.build();
    }, "se_UpdateBucketMetadataInventoryTableConfigurationCommand");
    var se_UpdateBucketMetadataJournalTableConfigurationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        "content-type": "application/xml",
        [_cm]: input[_CMD],
        [_xasca]: input[_CA2],
        [_xaebo]: input[_EBO]
      });
      b3.bp("/");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      const query = (0, import_smithy_client28.map)({
        [_mJT]: [, ""]
      });
      let body;
      let contents;
      if (input.JournalTableConfiguration !== void 0) {
        contents = se_JournalTableConfigurationUpdates(input.JournalTableConfiguration, context);
        contents = contents.n("JournalTableConfiguration");
        body = _ve;
        contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/");
        body += contents.toString();
      }
      b3.m("PUT").h(headers).q(query).b(body);
      return b3.build();
    }, "se_UpdateBucketMetadataJournalTableConfigurationCommand");
    var se_UploadPartCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        "content-type": "application/octet-stream",
        [_cl_]: [() => (0, import_smithy_client28.isSerializableHeaderValue)(input[_CLo]), () => input[_CLo].toString()],
        [_cm]: input[_CMD],
        [_xasca]: input[_CA2],
        [_xacc]: input[_CCRC],
        [_xacc_]: input[_CCRCC],
        [_xacc__]: input[_CCRCNVME],
        [_xacs]: input[_CSHA],
        [_xacs_]: input[_CSHAh],
        [_xasseca]: input[_SSECA],
        [_xasseck]: input[_SSECK],
        [_xasseckm]: input[_SSECKMD],
        [_xarp]: input[_RP],
        [_xaebo]: input[_EBO]
      });
      b3.bp("/{Key+}");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      b3.p("Key", () => input.Key, "{Key+}", true);
      const query = (0, import_smithy_client28.map)({
        [_xi]: [, "UploadPart"],
        [_pN]: [(0, import_smithy_client28.expectNonNull)(input.PartNumber, `PartNumber`) != null, () => input[_PN].toString()],
        [_uI]: [, (0, import_smithy_client28.expectNonNull)(input[_UI], `UploadId`)]
      });
      let body;
      let contents;
      if (input.Body !== void 0) {
        contents = input.Body;
        body = contents;
      }
      b3.m("PUT").h(headers).q(query).b(body);
      return b3.build();
    }, "se_UploadPartCommand");
    var se_UploadPartCopyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        [_xacs__]: input[_CS],
        [_xacsim]: input[_CSIM],
        [_xacsims]: [() => (0, import_smithy_client28.isSerializableHeaderValue)(input[_CSIMS]), () => (0, import_smithy_client28.dateToUtcString)(input[_CSIMS]).toString()],
        [_xacsinm]: input[_CSINM],
        [_xacsius]: [() => (0, import_smithy_client28.isSerializableHeaderValue)(input[_CSIUS]), () => (0, import_smithy_client28.dateToUtcString)(input[_CSIUS]).toString()],
        [_xacsr]: input[_CSR],
        [_xasseca]: input[_SSECA],
        [_xasseck]: input[_SSECK],
        [_xasseckm]: input[_SSECKMD],
        [_xacssseca]: input[_CSSSECA],
        [_xacssseck]: input[_CSSSECK],
        [_xacssseckm]: input[_CSSSECKMD],
        [_xarp]: input[_RP],
        [_xaebo]: input[_EBO],
        [_xasebo]: input[_ESBO]
      });
      b3.bp("/{Key+}");
      b3.p("Bucket", () => input.Bucket, "{Bucket}", false);
      b3.p("Key", () => input.Key, "{Key+}", true);
      const query = (0, import_smithy_client28.map)({
        [_xi]: [, "UploadPartCopy"],
        [_pN]: [(0, import_smithy_client28.expectNonNull)(input.PartNumber, `PartNumber`) != null, () => input[_PN].toString()],
        [_uI]: [, (0, import_smithy_client28.expectNonNull)(input[_UI], `UploadId`)]
      });
      let body;
      b3.m("PUT").h(headers).q(query).b(body);
      return b3.build();
    }, "se_UploadPartCopyCommand");
    var se_WriteGetObjectResponseCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core22.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        "x-amz-content-sha256": "UNSIGNED-PAYLOAD",
        ...input.Metadata !== void 0 && Object.keys(input.Metadata).reduce((acc, suffix) => {
          acc[`x-amz-meta-${suffix.toLowerCase()}`] = input.Metadata[suffix];
          return acc;
        }, {}),
        "content-type": "application/octet-stream",
        [_xarr]: input[_RR],
        [_xart]: input[_RT],
        [_xafs]: [() => (0, import_smithy_client28.isSerializableHeaderValue)(input[_SCt]), () => input[_SCt].toString()],
        [_xafec]: input[_EC],
        [_xafem]: input[_EM],
        [_xafhar]: input[_AR2],
        [_xafhcc]: input[_CC],
        [_xafhcd]: input[_CD],
        [_xafhce]: input[_CE],
        [_xafhcl]: input[_CL],
        [_cl_]: [() => (0, import_smithy_client28.isSerializableHeaderValue)(input[_CLo]), () => input[_CLo].toString()],
        [_xafhcr]: input[_CR],
        [_xafhct]: input[_CTo],
        [_xafhxacc]: input[_CCRC],
        [_xafhxacc_]: input[_CCRCC],
        [_xafhxacc__]: input[_CCRCNVME],
        [_xafhxacs]: input[_CSHA],
        [_xafhxacs_]: input[_CSHAh],
        [_xafhxadm]: [() => (0, import_smithy_client28.isSerializableHeaderValue)(input[_DM]), () => input[_DM].toString()],
        [_xafhe]: input[_ETa],
        [_xafhe_]: [() => (0, import_smithy_client28.isSerializableHeaderValue)(input[_E2]), () => (0, import_smithy_client28.dateToUtcString)(input[_E2]).toString()],
        [_xafhxae]: input[_Exp],
        [_xafhlm]: [() => (0, import_smithy_client28.isSerializableHeaderValue)(input[_LM]), () => (0, import_smithy_client28.dateToUtcString)(input[_LM]).toString()],
        [_xafhxamm]: [() => (0, import_smithy_client28.isSerializableHeaderValue)(input[_MM]), () => input[_MM].toString()],
        [_xafhxaolm]: input[_OLM],
        [_xafhxaollh]: input[_OLLHS],
        [_xafhxaolrud]: [
          () => (0, import_smithy_client28.isSerializableHeaderValue)(input[_OLRUD]),
          () => (0, import_smithy_client28.serializeDateTime)(input[_OLRUD]).toString()
        ],
        [_xafhxampc]: [() => (0, import_smithy_client28.isSerializableHeaderValue)(input[_PC2]), () => input[_PC2].toString()],
        [_xafhxars]: input[_RSe],
        [_xafhxarc]: input[_RC],
        [_xafhxar]: input[_Re],
        [_xafhxasse]: input[_SSE],
        [_xafhxasseca]: input[_SSECA],
        [_xafhxasseakki]: input[_SSEKMSKI],
        [_xafhxasseckm]: input[_SSECKMD],
        [_xafhxasc]: input[_SC],
        [_xafhxatc]: [() => (0, import_smithy_client28.isSerializableHeaderValue)(input[_TC2]), () => input[_TC2].toString()],
        [_xafhxavi]: input[_VI],
        [_xafhxassebke]: [() => (0, import_smithy_client28.isSerializableHeaderValue)(input[_BKE]), () => input[_BKE].toString()]
      });
      b3.bp("/WriteGetObjectResponse");
      let body;
      let contents;
      if (input.Body !== void 0) {
        contents = input.Body;
        body = contents;
      }
      let { hostname: resolvedHostname } = await context.endpoint();
      if (context.disableHostPrefix !== true) {
        resolvedHostname = "{RequestRoute}." + resolvedHostname;
        if (input.RequestRoute === void 0) {
          throw new Error("Empty value provided for input host prefix: RequestRoute.");
        }
        resolvedHostname = resolvedHostname.replace("{RequestRoute}", input.RequestRoute);
        if (!(0, import_protocol_http16.isValidHostname)(resolvedHostname)) {
          throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
        }
      }
      b3.hn(resolvedHostname);
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_WriteGetObjectResponseCommand");
    var de_AbortMultipartUploadCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 204 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output),
        [_RC]: [, output.headers[_xarc]]
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_AbortMultipartUploadCommand");
    var de_CompleteMultipartUploadCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output),
        [_Exp]: [, output.headers[_xae]],
        [_SSE]: [, output.headers[_xasse]],
        [_VI]: [, output.headers[_xavi]],
        [_SSEKMSKI]: [, output.headers[_xasseakki]],
        [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client28.parseBoolean)(output.headers[_xassebke])],
        [_RC]: [, output.headers[_xarc]]
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body");
      if (data3[_B] != null) {
        contents[_B] = (0, import_smithy_client28.expectString)(data3[_B]);
      }
      if (data3[_CCRC] != null) {
        contents[_CCRC] = (0, import_smithy_client28.expectString)(data3[_CCRC]);
      }
      if (data3[_CCRCC] != null) {
        contents[_CCRCC] = (0, import_smithy_client28.expectString)(data3[_CCRCC]);
      }
      if (data3[_CCRCNVME] != null) {
        contents[_CCRCNVME] = (0, import_smithy_client28.expectString)(data3[_CCRCNVME]);
      }
      if (data3[_CSHA] != null) {
        contents[_CSHA] = (0, import_smithy_client28.expectString)(data3[_CSHA]);
      }
      if (data3[_CSHAh] != null) {
        contents[_CSHAh] = (0, import_smithy_client28.expectString)(data3[_CSHAh]);
      }
      if (data3[_CT] != null) {
        contents[_CT] = (0, import_smithy_client28.expectString)(data3[_CT]);
      }
      if (data3[_ETa] != null) {
        contents[_ETa] = (0, import_smithy_client28.expectString)(data3[_ETa]);
      }
      if (data3[_K2] != null) {
        contents[_K2] = (0, import_smithy_client28.expectString)(data3[_K2]);
      }
      if (data3[_L] != null) {
        contents[_L] = (0, import_smithy_client28.expectString)(data3[_L]);
      }
      return contents;
    }, "de_CompleteMultipartUploadCommand");
    var de_CopyObjectCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output),
        [_Exp]: [, output.headers[_xae]],
        [_CSVI]: [, output.headers[_xacsvi]],
        [_VI]: [, output.headers[_xavi]],
        [_SSE]: [, output.headers[_xasse]],
        [_SSECA]: [, output.headers[_xasseca]],
        [_SSECKMD]: [, output.headers[_xasseckm]],
        [_SSEKMSKI]: [, output.headers[_xasseakki]],
        [_SSEKMSEC]: [, output.headers[_xassec]],
        [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client28.parseBoolean)(output.headers[_xassebke])],
        [_RC]: [, output.headers[_xarc]]
      });
      const data3 = (0, import_smithy_client28.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context));
      contents.CopyObjectResult = de_CopyObjectResult(data3, context);
      return contents;
    }, "de_CopyObjectCommand");
    var de_CreateBucketCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output),
        [_L]: [, output.headers[_lo]],
        [_BA]: [, output.headers[_xaba]]
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_CreateBucketCommand");
    var de_CreateBucketMetadataConfigurationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_CreateBucketMetadataConfigurationCommand");
    var de_CreateBucketMetadataTableConfigurationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_CreateBucketMetadataTableConfigurationCommand");
    var de_CreateMultipartUploadCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output),
        [_AD]: [
          () => void 0 !== output.headers[_xaad],
          () => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc7231DateTime)(output.headers[_xaad]))
        ],
        [_ARI2]: [, output.headers[_xaari]],
        [_SSE]: [, output.headers[_xasse]],
        [_SSECA]: [, output.headers[_xasseca]],
        [_SSECKMD]: [, output.headers[_xasseckm]],
        [_SSEKMSKI]: [, output.headers[_xasseakki]],
        [_SSEKMSEC]: [, output.headers[_xassec]],
        [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client28.parseBoolean)(output.headers[_xassebke])],
        [_RC]: [, output.headers[_xarc]],
        [_CA2]: [, output.headers[_xaca]],
        [_CT]: [, output.headers[_xact]]
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body");
      if (data3[_B] != null) {
        contents[_B] = (0, import_smithy_client28.expectString)(data3[_B]);
      }
      if (data3[_K2] != null) {
        contents[_K2] = (0, import_smithy_client28.expectString)(data3[_K2]);
      }
      if (data3[_UI] != null) {
        contents[_UI] = (0, import_smithy_client28.expectString)(data3[_UI]);
      }
      return contents;
    }, "de_CreateMultipartUploadCommand");
    var de_CreateSessionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output),
        [_SSE]: [, output.headers[_xasse]],
        [_SSEKMSKI]: [, output.headers[_xasseakki]],
        [_SSEKMSEC]: [, output.headers[_xassec]],
        [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client28.parseBoolean)(output.headers[_xassebke])]
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body");
      if (data3[_C2] != null) {
        contents[_C2] = de_SessionCredentials(data3[_C2], context);
      }
      return contents;
    }, "de_CreateSessionCommand");
    var de_DeleteBucketCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 204 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_DeleteBucketCommand");
    var de_DeleteBucketAnalyticsConfigurationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 204 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_DeleteBucketAnalyticsConfigurationCommand");
    var de_DeleteBucketCorsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 204 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_DeleteBucketCorsCommand");
    var de_DeleteBucketEncryptionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 204 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_DeleteBucketEncryptionCommand");
    var de_DeleteBucketIntelligentTieringConfigurationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 204 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_DeleteBucketIntelligentTieringConfigurationCommand");
    var de_DeleteBucketInventoryConfigurationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 204 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_DeleteBucketInventoryConfigurationCommand");
    var de_DeleteBucketLifecycleCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 204 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_DeleteBucketLifecycleCommand");
    var de_DeleteBucketMetadataConfigurationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 204 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_DeleteBucketMetadataConfigurationCommand");
    var de_DeleteBucketMetadataTableConfigurationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 204 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_DeleteBucketMetadataTableConfigurationCommand");
    var de_DeleteBucketMetricsConfigurationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 204 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_DeleteBucketMetricsConfigurationCommand");
    var de_DeleteBucketOwnershipControlsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 204 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_DeleteBucketOwnershipControlsCommand");
    var de_DeleteBucketPolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 204 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_DeleteBucketPolicyCommand");
    var de_DeleteBucketReplicationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 204 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_DeleteBucketReplicationCommand");
    var de_DeleteBucketTaggingCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 204 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_DeleteBucketTaggingCommand");
    var de_DeleteBucketWebsiteCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 204 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_DeleteBucketWebsiteCommand");
    var de_DeleteObjectCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 204 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output),
        [_DM]: [() => void 0 !== output.headers[_xadm], () => (0, import_smithy_client28.parseBoolean)(output.headers[_xadm])],
        [_VI]: [, output.headers[_xavi]],
        [_RC]: [, output.headers[_xarc]]
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_DeleteObjectCommand");
    var de_DeleteObjectsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output),
        [_RC]: [, output.headers[_xarc]]
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body");
      if (data3.Deleted === "") {
        contents[_De] = [];
      } else if (data3[_De] != null) {
        contents[_De] = de_DeletedObjects((0, import_smithy_client28.getArrayIfSingleItem)(data3[_De]), context);
      }
      if (data3.Error === "") {
        contents[_Err] = [];
      } else if (data3[_Er] != null) {
        contents[_Err] = de_Errors((0, import_smithy_client28.getArrayIfSingleItem)(data3[_Er]), context);
      }
      return contents;
    }, "de_DeleteObjectsCommand");
    var de_DeleteObjectTaggingCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 204 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output),
        [_VI]: [, output.headers[_xavi]]
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_DeleteObjectTaggingCommand");
    var de_DeletePublicAccessBlockCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 204 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_DeletePublicAccessBlockCommand");
    var de_GetBucketAccelerateConfigurationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output),
        [_RC]: [, output.headers[_xarc]]
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body");
      if (data3[_S] != null) {
        contents[_S] = (0, import_smithy_client28.expectString)(data3[_S]);
      }
      return contents;
    }, "de_GetBucketAccelerateConfigurationCommand");
    var de_GetBucketAclCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body");
      if (data3.AccessControlList === "") {
        contents[_Gr] = [];
      } else if (data3[_ACLc] != null && data3[_ACLc][_G] != null) {
        contents[_Gr] = de_Grants((0, import_smithy_client28.getArrayIfSingleItem)(data3[_ACLc][_G]), context);
      }
      if (data3[_O] != null) {
        contents[_O] = de_Owner(data3[_O], context);
      }
      return contents;
    }, "de_GetBucketAclCommand");
    var de_GetBucketAnalyticsConfigurationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context));
      contents.AnalyticsConfiguration = de_AnalyticsConfiguration(data3, context);
      return contents;
    }, "de_GetBucketAnalyticsConfigurationCommand");
    var de_GetBucketCorsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body");
      if (data3.CORSRule === "") {
        contents[_CORSRu] = [];
      } else if (data3[_CORSR] != null) {
        contents[_CORSRu] = de_CORSRules((0, import_smithy_client28.getArrayIfSingleItem)(data3[_CORSR]), context);
      }
      return contents;
    }, "de_GetBucketCorsCommand");
    var de_GetBucketEncryptionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context));
      contents.ServerSideEncryptionConfiguration = de_ServerSideEncryptionConfiguration(data3, context);
      return contents;
    }, "de_GetBucketEncryptionCommand");
    var de_GetBucketIntelligentTieringConfigurationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context));
      contents.IntelligentTieringConfiguration = de_IntelligentTieringConfiguration(data3, context);
      return contents;
    }, "de_GetBucketIntelligentTieringConfigurationCommand");
    var de_GetBucketInventoryConfigurationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context));
      contents.InventoryConfiguration = de_InventoryConfiguration(data3, context);
      return contents;
    }, "de_GetBucketInventoryConfigurationCommand");
    var de_GetBucketLifecycleConfigurationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output),
        [_TDMOS]: [, output.headers[_xatdmos]]
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body");
      if (data3.Rule === "") {
        contents[_Rul] = [];
      } else if (data3[_Ru] != null) {
        contents[_Rul] = de_LifecycleRules((0, import_smithy_client28.getArrayIfSingleItem)(data3[_Ru]), context);
      }
      return contents;
    }, "de_GetBucketLifecycleConfigurationCommand");
    var de_GetBucketLocationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body");
      if (data3[_LC] != null) {
        contents[_LC] = (0, import_smithy_client28.expectString)(data3[_LC]);
      }
      return contents;
    }, "de_GetBucketLocationCommand");
    var de_GetBucketLoggingCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body");
      if (data3[_LE] != null) {
        contents[_LE] = de_LoggingEnabled(data3[_LE], context);
      }
      return contents;
    }, "de_GetBucketLoggingCommand");
    var de_GetBucketMetadataConfigurationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context));
      contents.GetBucketMetadataConfigurationResult = de_GetBucketMetadataConfigurationResult(data3, context);
      return contents;
    }, "de_GetBucketMetadataConfigurationCommand");
    var de_GetBucketMetadataTableConfigurationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context));
      contents.GetBucketMetadataTableConfigurationResult = de_GetBucketMetadataTableConfigurationResult(data3, context);
      return contents;
    }, "de_GetBucketMetadataTableConfigurationCommand");
    var de_GetBucketMetricsConfigurationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context));
      contents.MetricsConfiguration = de_MetricsConfiguration(data3, context);
      return contents;
    }, "de_GetBucketMetricsConfigurationCommand");
    var de_GetBucketNotificationConfigurationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body");
      if (data3[_EBC] != null) {
        contents[_EBC] = de_EventBridgeConfiguration(data3[_EBC], context);
      }
      if (data3.CloudFunctionConfiguration === "") {
        contents[_LFC] = [];
      } else if (data3[_CFC] != null) {
        contents[_LFC] = de_LambdaFunctionConfigurationList((0, import_smithy_client28.getArrayIfSingleItem)(data3[_CFC]), context);
      }
      if (data3.QueueConfiguration === "") {
        contents[_QCu] = [];
      } else if (data3[_QC] != null) {
        contents[_QCu] = de_QueueConfigurationList((0, import_smithy_client28.getArrayIfSingleItem)(data3[_QC]), context);
      }
      if (data3.TopicConfiguration === "") {
        contents[_TCop] = [];
      } else if (data3[_TCo] != null) {
        contents[_TCop] = de_TopicConfigurationList((0, import_smithy_client28.getArrayIfSingleItem)(data3[_TCo]), context);
      }
      return contents;
    }, "de_GetBucketNotificationConfigurationCommand");
    var de_GetBucketOwnershipControlsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context));
      contents.OwnershipControls = de_OwnershipControls(data3, context);
      return contents;
    }, "de_GetBucketOwnershipControlsCommand");
    var de_GetBucketPolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = await collectBodyString2(output.body, context);
      contents.Policy = (0, import_smithy_client28.expectString)(data3);
      return contents;
    }, "de_GetBucketPolicyCommand");
    var de_GetBucketPolicyStatusCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context));
      contents.PolicyStatus = de_PolicyStatus(data3, context);
      return contents;
    }, "de_GetBucketPolicyStatusCommand");
    var de_GetBucketReplicationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context));
      contents.ReplicationConfiguration = de_ReplicationConfiguration(data3, context);
      return contents;
    }, "de_GetBucketReplicationCommand");
    var de_GetBucketRequestPaymentCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body");
      if (data3[_Pa] != null) {
        contents[_Pa] = (0, import_smithy_client28.expectString)(data3[_Pa]);
      }
      return contents;
    }, "de_GetBucketRequestPaymentCommand");
    var de_GetBucketTaggingCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body");
      if (data3.TagSet === "") {
        contents[_TS] = [];
      } else if (data3[_TS] != null && data3[_TS][_Ta] != null) {
        contents[_TS] = de_TagSet((0, import_smithy_client28.getArrayIfSingleItem)(data3[_TS][_Ta]), context);
      }
      return contents;
    }, "de_GetBucketTaggingCommand");
    var de_GetBucketVersioningCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body");
      if (data3[_MDf] != null) {
        contents[_MFAD] = (0, import_smithy_client28.expectString)(data3[_MDf]);
      }
      if (data3[_S] != null) {
        contents[_S] = (0, import_smithy_client28.expectString)(data3[_S]);
      }
      return contents;
    }, "de_GetBucketVersioningCommand");
    var de_GetBucketWebsiteCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body");
      if (data3[_ED] != null) {
        contents[_ED] = de_ErrorDocument(data3[_ED], context);
      }
      if (data3[_ID] != null) {
        contents[_ID] = de_IndexDocument(data3[_ID], context);
      }
      if (data3[_RART] != null) {
        contents[_RART] = de_RedirectAllRequestsTo(data3[_RART], context);
      }
      if (data3.RoutingRules === "") {
        contents[_RRo] = [];
      } else if (data3[_RRo] != null && data3[_RRo][_RRou] != null) {
        contents[_RRo] = de_RoutingRules((0, import_smithy_client28.getArrayIfSingleItem)(data3[_RRo][_RRou]), context);
      }
      return contents;
    }, "de_GetBucketWebsiteCommand");
    var de_GetObjectCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output),
        [_DM]: [() => void 0 !== output.headers[_xadm], () => (0, import_smithy_client28.parseBoolean)(output.headers[_xadm])],
        [_AR2]: [, output.headers[_ar]],
        [_Exp]: [, output.headers[_xae]],
        [_Re]: [, output.headers[_xar]],
        [_LM]: [() => void 0 !== output.headers[_lm], () => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc7231DateTime)(output.headers[_lm]))],
        [_CLo]: [() => void 0 !== output.headers[_cl_], () => (0, import_smithy_client28.strictParseLong)(output.headers[_cl_])],
        [_ETa]: [, output.headers[_eta]],
        [_CCRC]: [, output.headers[_xacc]],
        [_CCRCC]: [, output.headers[_xacc_]],
        [_CCRCNVME]: [, output.headers[_xacc__]],
        [_CSHA]: [, output.headers[_xacs]],
        [_CSHAh]: [, output.headers[_xacs_]],
        [_CT]: [, output.headers[_xact]],
        [_MM]: [() => void 0 !== output.headers[_xamm], () => (0, import_smithy_client28.strictParseInt32)(output.headers[_xamm])],
        [_VI]: [, output.headers[_xavi]],
        [_CC]: [, output.headers[_cc]],
        [_CD]: [, output.headers[_cd]],
        [_CE]: [, output.headers[_ce]],
        [_CL]: [, output.headers[_cl]],
        [_CR]: [, output.headers[_cr]],
        [_CTo]: [, output.headers[_ct]],
        [_E2]: [() => void 0 !== output.headers[_e], () => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc7231DateTime)(output.headers[_e]))],
        [_ES]: [, output.headers[_ex]],
        [_WRL]: [, output.headers[_xawrl]],
        [_SSE]: [, output.headers[_xasse]],
        [_SSECA]: [, output.headers[_xasseca]],
        [_SSECKMD]: [, output.headers[_xasseckm]],
        [_SSEKMSKI]: [, output.headers[_xasseakki]],
        [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client28.parseBoolean)(output.headers[_xassebke])],
        [_SC]: [, output.headers[_xasc]],
        [_RC]: [, output.headers[_xarc]],
        [_RSe]: [, output.headers[_xars_]],
        [_PC2]: [() => void 0 !== output.headers[_xampc], () => (0, import_smithy_client28.strictParseInt32)(output.headers[_xampc])],
        [_TC2]: [() => void 0 !== output.headers[_xatc], () => (0, import_smithy_client28.strictParseInt32)(output.headers[_xatc])],
        [_OLM]: [, output.headers[_xaolm]],
        [_OLRUD]: [
          () => void 0 !== output.headers[_xaolrud],
          () => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output.headers[_xaolrud]))
        ],
        [_OLLHS]: [, output.headers[_xaollh]],
        Metadata: [
          ,
          Object.keys(output.headers).filter((header) => header.startsWith("x-amz-meta-")).reduce((acc, header) => {
            acc[header.substring(11)] = output.headers[header];
            return acc;
          }, {})
        ]
      });
      const data3 = output.body;
      context.sdkStreamMixin(data3);
      contents.Body = data3;
      return contents;
    }, "de_GetObjectCommand");
    var de_GetObjectAclCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output),
        [_RC]: [, output.headers[_xarc]]
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body");
      if (data3.AccessControlList === "") {
        contents[_Gr] = [];
      } else if (data3[_ACLc] != null && data3[_ACLc][_G] != null) {
        contents[_Gr] = de_Grants((0, import_smithy_client28.getArrayIfSingleItem)(data3[_ACLc][_G]), context);
      }
      if (data3[_O] != null) {
        contents[_O] = de_Owner(data3[_O], context);
      }
      return contents;
    }, "de_GetObjectAclCommand");
    var de_GetObjectAttributesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output),
        [_DM]: [() => void 0 !== output.headers[_xadm], () => (0, import_smithy_client28.parseBoolean)(output.headers[_xadm])],
        [_LM]: [() => void 0 !== output.headers[_lm], () => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc7231DateTime)(output.headers[_lm]))],
        [_VI]: [, output.headers[_xavi]],
        [_RC]: [, output.headers[_xarc]]
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body");
      if (data3[_Ch] != null) {
        contents[_Ch] = de_Checksum(data3[_Ch], context);
      }
      if (data3[_ETa] != null) {
        contents[_ETa] = (0, import_smithy_client28.expectString)(data3[_ETa]);
      }
      if (data3[_OP] != null) {
        contents[_OP] = de_GetObjectAttributesParts(data3[_OP], context);
      }
      if (data3[_OSb] != null) {
        contents[_OSb] = (0, import_smithy_client28.strictParseLong)(data3[_OSb]);
      }
      if (data3[_SC] != null) {
        contents[_SC] = (0, import_smithy_client28.expectString)(data3[_SC]);
      }
      return contents;
    }, "de_GetObjectAttributesCommand");
    var de_GetObjectLegalHoldCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context));
      contents.LegalHold = de_ObjectLockLegalHold(data3, context);
      return contents;
    }, "de_GetObjectLegalHoldCommand");
    var de_GetObjectLockConfigurationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context));
      contents.ObjectLockConfiguration = de_ObjectLockConfiguration(data3, context);
      return contents;
    }, "de_GetObjectLockConfigurationCommand");
    var de_GetObjectRetentionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context));
      contents.Retention = de_ObjectLockRetention(data3, context);
      return contents;
    }, "de_GetObjectRetentionCommand");
    var de_GetObjectTaggingCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output),
        [_VI]: [, output.headers[_xavi]]
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body");
      if (data3.TagSet === "") {
        contents[_TS] = [];
      } else if (data3[_TS] != null && data3[_TS][_Ta] != null) {
        contents[_TS] = de_TagSet((0, import_smithy_client28.getArrayIfSingleItem)(data3[_TS][_Ta]), context);
      }
      return contents;
    }, "de_GetObjectTaggingCommand");
    var de_GetObjectTorrentCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output),
        [_RC]: [, output.headers[_xarc]]
      });
      const data3 = output.body;
      context.sdkStreamMixin(data3);
      contents.Body = data3;
      return contents;
    }, "de_GetObjectTorrentCommand");
    var de_GetPublicAccessBlockCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context));
      contents.PublicAccessBlockConfiguration = de_PublicAccessBlockConfiguration(data3, context);
      return contents;
    }, "de_GetPublicAccessBlockCommand");
    var de_HeadBucketCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output),
        [_BA]: [, output.headers[_xaba]],
        [_BLT]: [, output.headers[_xablt]],
        [_BLN]: [, output.headers[_xabln]],
        [_BR]: [, output.headers[_xabr]],
        [_APA]: [() => void 0 !== output.headers[_xaapa], () => (0, import_smithy_client28.parseBoolean)(output.headers[_xaapa])]
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_HeadBucketCommand");
    var de_HeadObjectCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output),
        [_DM]: [() => void 0 !== output.headers[_xadm], () => (0, import_smithy_client28.parseBoolean)(output.headers[_xadm])],
        [_AR2]: [, output.headers[_ar]],
        [_Exp]: [, output.headers[_xae]],
        [_Re]: [, output.headers[_xar]],
        [_AS]: [, output.headers[_xaas]],
        [_LM]: [() => void 0 !== output.headers[_lm], () => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc7231DateTime)(output.headers[_lm]))],
        [_CLo]: [() => void 0 !== output.headers[_cl_], () => (0, import_smithy_client28.strictParseLong)(output.headers[_cl_])],
        [_CCRC]: [, output.headers[_xacc]],
        [_CCRCC]: [, output.headers[_xacc_]],
        [_CCRCNVME]: [, output.headers[_xacc__]],
        [_CSHA]: [, output.headers[_xacs]],
        [_CSHAh]: [, output.headers[_xacs_]],
        [_CT]: [, output.headers[_xact]],
        [_ETa]: [, output.headers[_eta]],
        [_MM]: [() => void 0 !== output.headers[_xamm], () => (0, import_smithy_client28.strictParseInt32)(output.headers[_xamm])],
        [_VI]: [, output.headers[_xavi]],
        [_CC]: [, output.headers[_cc]],
        [_CD]: [, output.headers[_cd]],
        [_CE]: [, output.headers[_ce]],
        [_CL]: [, output.headers[_cl]],
        [_CTo]: [, output.headers[_ct]],
        [_CR]: [, output.headers[_cr]],
        [_E2]: [() => void 0 !== output.headers[_e], () => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc7231DateTime)(output.headers[_e]))],
        [_ES]: [, output.headers[_ex]],
        [_WRL]: [, output.headers[_xawrl]],
        [_SSE]: [, output.headers[_xasse]],
        [_SSECA]: [, output.headers[_xasseca]],
        [_SSECKMD]: [, output.headers[_xasseckm]],
        [_SSEKMSKI]: [, output.headers[_xasseakki]],
        [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client28.parseBoolean)(output.headers[_xassebke])],
        [_SC]: [, output.headers[_xasc]],
        [_RC]: [, output.headers[_xarc]],
        [_RSe]: [, output.headers[_xars_]],
        [_PC2]: [() => void 0 !== output.headers[_xampc], () => (0, import_smithy_client28.strictParseInt32)(output.headers[_xampc])],
        [_TC2]: [() => void 0 !== output.headers[_xatc], () => (0, import_smithy_client28.strictParseInt32)(output.headers[_xatc])],
        [_OLM]: [, output.headers[_xaolm]],
        [_OLRUD]: [
          () => void 0 !== output.headers[_xaolrud],
          () => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output.headers[_xaolrud]))
        ],
        [_OLLHS]: [, output.headers[_xaollh]],
        Metadata: [
          ,
          Object.keys(output.headers).filter((header) => header.startsWith("x-amz-meta-")).reduce((acc, header) => {
            acc[header.substring(11)] = output.headers[header];
            return acc;
          }, {})
        ]
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_HeadObjectCommand");
    var de_ListBucketAnalyticsConfigurationsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body");
      if (data3.AnalyticsConfiguration === "") {
        contents[_ACLn] = [];
      } else if (data3[_AC] != null) {
        contents[_ACLn] = de_AnalyticsConfigurationList((0, import_smithy_client28.getArrayIfSingleItem)(data3[_AC]), context);
      }
      if (data3[_CTon] != null) {
        contents[_CTon] = (0, import_smithy_client28.expectString)(data3[_CTon]);
      }
      if (data3[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(data3[_IT]);
      }
      if (data3[_NCT] != null) {
        contents[_NCT] = (0, import_smithy_client28.expectString)(data3[_NCT]);
      }
      return contents;
    }, "de_ListBucketAnalyticsConfigurationsCommand");
    var de_ListBucketIntelligentTieringConfigurationsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body");
      if (data3[_CTon] != null) {
        contents[_CTon] = (0, import_smithy_client28.expectString)(data3[_CTon]);
      }
      if (data3.IntelligentTieringConfiguration === "") {
        contents[_ITCL] = [];
      } else if (data3[_ITC] != null) {
        contents[_ITCL] = de_IntelligentTieringConfigurationList((0, import_smithy_client28.getArrayIfSingleItem)(data3[_ITC]), context);
      }
      if (data3[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(data3[_IT]);
      }
      if (data3[_NCT] != null) {
        contents[_NCT] = (0, import_smithy_client28.expectString)(data3[_NCT]);
      }
      return contents;
    }, "de_ListBucketIntelligentTieringConfigurationsCommand");
    var de_ListBucketInventoryConfigurationsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body");
      if (data3[_CTon] != null) {
        contents[_CTon] = (0, import_smithy_client28.expectString)(data3[_CTon]);
      }
      if (data3.InventoryConfiguration === "") {
        contents[_ICL] = [];
      } else if (data3[_IC] != null) {
        contents[_ICL] = de_InventoryConfigurationList((0, import_smithy_client28.getArrayIfSingleItem)(data3[_IC]), context);
      }
      if (data3[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(data3[_IT]);
      }
      if (data3[_NCT] != null) {
        contents[_NCT] = (0, import_smithy_client28.expectString)(data3[_NCT]);
      }
      return contents;
    }, "de_ListBucketInventoryConfigurationsCommand");
    var de_ListBucketMetricsConfigurationsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body");
      if (data3[_CTon] != null) {
        contents[_CTon] = (0, import_smithy_client28.expectString)(data3[_CTon]);
      }
      if (data3[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(data3[_IT]);
      }
      if (data3.MetricsConfiguration === "") {
        contents[_MCL] = [];
      } else if (data3[_MC] != null) {
        contents[_MCL] = de_MetricsConfigurationList((0, import_smithy_client28.getArrayIfSingleItem)(data3[_MC]), context);
      }
      if (data3[_NCT] != null) {
        contents[_NCT] = (0, import_smithy_client28.expectString)(data3[_NCT]);
      }
      return contents;
    }, "de_ListBucketMetricsConfigurationsCommand");
    var de_ListBucketsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body");
      if (data3.Buckets === "") {
        contents[_Bu] = [];
      } else if (data3[_Bu] != null && data3[_Bu][_B] != null) {
        contents[_Bu] = de_Buckets((0, import_smithy_client28.getArrayIfSingleItem)(data3[_Bu][_B]), context);
      }
      if (data3[_CTon] != null) {
        contents[_CTon] = (0, import_smithy_client28.expectString)(data3[_CTon]);
      }
      if (data3[_O] != null) {
        contents[_O] = de_Owner(data3[_O], context);
      }
      if (data3[_P2] != null) {
        contents[_P2] = (0, import_smithy_client28.expectString)(data3[_P2]);
      }
      return contents;
    }, "de_ListBucketsCommand");
    var de_ListDirectoryBucketsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body");
      if (data3.Buckets === "") {
        contents[_Bu] = [];
      } else if (data3[_Bu] != null && data3[_Bu][_B] != null) {
        contents[_Bu] = de_Buckets((0, import_smithy_client28.getArrayIfSingleItem)(data3[_Bu][_B]), context);
      }
      if (data3[_CTon] != null) {
        contents[_CTon] = (0, import_smithy_client28.expectString)(data3[_CTon]);
      }
      return contents;
    }, "de_ListDirectoryBucketsCommand");
    var de_ListMultipartUploadsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output),
        [_RC]: [, output.headers[_xarc]]
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body");
      if (data3[_B] != null) {
        contents[_B] = (0, import_smithy_client28.expectString)(data3[_B]);
      }
      if (data3.CommonPrefixes === "") {
        contents[_CP] = [];
      } else if (data3[_CP] != null) {
        contents[_CP] = de_CommonPrefixList((0, import_smithy_client28.getArrayIfSingleItem)(data3[_CP]), context);
      }
      if (data3[_D] != null) {
        contents[_D] = (0, import_smithy_client28.expectString)(data3[_D]);
      }
      if (data3[_ET] != null) {
        contents[_ET] = (0, import_smithy_client28.expectString)(data3[_ET]);
      }
      if (data3[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(data3[_IT]);
      }
      if (data3[_KM] != null) {
        contents[_KM] = (0, import_smithy_client28.expectString)(data3[_KM]);
      }
      if (data3[_MU] != null) {
        contents[_MU] = (0, import_smithy_client28.strictParseInt32)(data3[_MU]);
      }
      if (data3[_NKM] != null) {
        contents[_NKM] = (0, import_smithy_client28.expectString)(data3[_NKM]);
      }
      if (data3[_NUIM] != null) {
        contents[_NUIM] = (0, import_smithy_client28.expectString)(data3[_NUIM]);
      }
      if (data3[_P2] != null) {
        contents[_P2] = (0, import_smithy_client28.expectString)(data3[_P2]);
      }
      if (data3[_UIM] != null) {
        contents[_UIM] = (0, import_smithy_client28.expectString)(data3[_UIM]);
      }
      if (data3.Upload === "") {
        contents[_Up] = [];
      } else if (data3[_U] != null) {
        contents[_Up] = de_MultipartUploadList((0, import_smithy_client28.getArrayIfSingleItem)(data3[_U]), context);
      }
      return contents;
    }, "de_ListMultipartUploadsCommand");
    var de_ListObjectsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output),
        [_RC]: [, output.headers[_xarc]]
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body");
      if (data3.CommonPrefixes === "") {
        contents[_CP] = [];
      } else if (data3[_CP] != null) {
        contents[_CP] = de_CommonPrefixList((0, import_smithy_client28.getArrayIfSingleItem)(data3[_CP]), context);
      }
      if (data3.Contents === "") {
        contents[_Co] = [];
      } else if (data3[_Co] != null) {
        contents[_Co] = de_ObjectList((0, import_smithy_client28.getArrayIfSingleItem)(data3[_Co]), context);
      }
      if (data3[_D] != null) {
        contents[_D] = (0, import_smithy_client28.expectString)(data3[_D]);
      }
      if (data3[_ET] != null) {
        contents[_ET] = (0, import_smithy_client28.expectString)(data3[_ET]);
      }
      if (data3[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(data3[_IT]);
      }
      if (data3[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(data3[_M]);
      }
      if (data3[_MK] != null) {
        contents[_MK] = (0, import_smithy_client28.strictParseInt32)(data3[_MK]);
      }
      if (data3[_N] != null) {
        contents[_N] = (0, import_smithy_client28.expectString)(data3[_N]);
      }
      if (data3[_NM] != null) {
        contents[_NM] = (0, import_smithy_client28.expectString)(data3[_NM]);
      }
      if (data3[_P2] != null) {
        contents[_P2] = (0, import_smithy_client28.expectString)(data3[_P2]);
      }
      return contents;
    }, "de_ListObjectsCommand");
    var de_ListObjectsV2Command = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output),
        [_RC]: [, output.headers[_xarc]]
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body");
      if (data3.CommonPrefixes === "") {
        contents[_CP] = [];
      } else if (data3[_CP] != null) {
        contents[_CP] = de_CommonPrefixList((0, import_smithy_client28.getArrayIfSingleItem)(data3[_CP]), context);
      }
      if (data3.Contents === "") {
        contents[_Co] = [];
      } else if (data3[_Co] != null) {
        contents[_Co] = de_ObjectList((0, import_smithy_client28.getArrayIfSingleItem)(data3[_Co]), context);
      }
      if (data3[_CTon] != null) {
        contents[_CTon] = (0, import_smithy_client28.expectString)(data3[_CTon]);
      }
      if (data3[_D] != null) {
        contents[_D] = (0, import_smithy_client28.expectString)(data3[_D]);
      }
      if (data3[_ET] != null) {
        contents[_ET] = (0, import_smithy_client28.expectString)(data3[_ET]);
      }
      if (data3[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(data3[_IT]);
      }
      if (data3[_KC] != null) {
        contents[_KC] = (0, import_smithy_client28.strictParseInt32)(data3[_KC]);
      }
      if (data3[_MK] != null) {
        contents[_MK] = (0, import_smithy_client28.strictParseInt32)(data3[_MK]);
      }
      if (data3[_N] != null) {
        contents[_N] = (0, import_smithy_client28.expectString)(data3[_N]);
      }
      if (data3[_NCT] != null) {
        contents[_NCT] = (0, import_smithy_client28.expectString)(data3[_NCT]);
      }
      if (data3[_P2] != null) {
        contents[_P2] = (0, import_smithy_client28.expectString)(data3[_P2]);
      }
      if (data3[_SA] != null) {
        contents[_SA] = (0, import_smithy_client28.expectString)(data3[_SA]);
      }
      return contents;
    }, "de_ListObjectsV2Command");
    var de_ListObjectVersionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output),
        [_RC]: [, output.headers[_xarc]]
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body");
      if (data3.CommonPrefixes === "") {
        contents[_CP] = [];
      } else if (data3[_CP] != null) {
        contents[_CP] = de_CommonPrefixList((0, import_smithy_client28.getArrayIfSingleItem)(data3[_CP]), context);
      }
      if (data3.DeleteMarker === "") {
        contents[_DMe] = [];
      } else if (data3[_DM] != null) {
        contents[_DMe] = de_DeleteMarkers((0, import_smithy_client28.getArrayIfSingleItem)(data3[_DM]), context);
      }
      if (data3[_D] != null) {
        contents[_D] = (0, import_smithy_client28.expectString)(data3[_D]);
      }
      if (data3[_ET] != null) {
        contents[_ET] = (0, import_smithy_client28.expectString)(data3[_ET]);
      }
      if (data3[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(data3[_IT]);
      }
      if (data3[_KM] != null) {
        contents[_KM] = (0, import_smithy_client28.expectString)(data3[_KM]);
      }
      if (data3[_MK] != null) {
        contents[_MK] = (0, import_smithy_client28.strictParseInt32)(data3[_MK]);
      }
      if (data3[_N] != null) {
        contents[_N] = (0, import_smithy_client28.expectString)(data3[_N]);
      }
      if (data3[_NKM] != null) {
        contents[_NKM] = (0, import_smithy_client28.expectString)(data3[_NKM]);
      }
      if (data3[_NVIM] != null) {
        contents[_NVIM] = (0, import_smithy_client28.expectString)(data3[_NVIM]);
      }
      if (data3[_P2] != null) {
        contents[_P2] = (0, import_smithy_client28.expectString)(data3[_P2]);
      }
      if (data3[_VIM] != null) {
        contents[_VIM] = (0, import_smithy_client28.expectString)(data3[_VIM]);
      }
      if (data3.Version === "") {
        contents[_Ve] = [];
      } else if (data3[_V2] != null) {
        contents[_Ve] = de_ObjectVersionList((0, import_smithy_client28.getArrayIfSingleItem)(data3[_V2]), context);
      }
      return contents;
    }, "de_ListObjectVersionsCommand");
    var de_ListPartsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output),
        [_AD]: [
          () => void 0 !== output.headers[_xaad],
          () => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc7231DateTime)(output.headers[_xaad]))
        ],
        [_ARI2]: [, output.headers[_xaari]],
        [_RC]: [, output.headers[_xarc]]
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body");
      if (data3[_B] != null) {
        contents[_B] = (0, import_smithy_client28.expectString)(data3[_B]);
      }
      if (data3[_CA2] != null) {
        contents[_CA2] = (0, import_smithy_client28.expectString)(data3[_CA2]);
      }
      if (data3[_CT] != null) {
        contents[_CT] = (0, import_smithy_client28.expectString)(data3[_CT]);
      }
      if (data3[_In] != null) {
        contents[_In] = de_Initiator(data3[_In], context);
      }
      if (data3[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(data3[_IT]);
      }
      if (data3[_K2] != null) {
        contents[_K2] = (0, import_smithy_client28.expectString)(data3[_K2]);
      }
      if (data3[_MP] != null) {
        contents[_MP] = (0, import_smithy_client28.strictParseInt32)(data3[_MP]);
      }
      if (data3[_NPNM] != null) {
        contents[_NPNM] = (0, import_smithy_client28.expectString)(data3[_NPNM]);
      }
      if (data3[_O] != null) {
        contents[_O] = de_Owner(data3[_O], context);
      }
      if (data3[_PNM] != null) {
        contents[_PNM] = (0, import_smithy_client28.expectString)(data3[_PNM]);
      }
      if (data3.Part === "") {
        contents[_Part] = [];
      } else if (data3[_Par] != null) {
        contents[_Part] = de_Parts((0, import_smithy_client28.getArrayIfSingleItem)(data3[_Par]), context);
      }
      if (data3[_SC] != null) {
        contents[_SC] = (0, import_smithy_client28.expectString)(data3[_SC]);
      }
      if (data3[_UI] != null) {
        contents[_UI] = (0, import_smithy_client28.expectString)(data3[_UI]);
      }
      return contents;
    }, "de_ListPartsCommand");
    var de_PutBucketAccelerateConfigurationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_PutBucketAccelerateConfigurationCommand");
    var de_PutBucketAclCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_PutBucketAclCommand");
    var de_PutBucketAnalyticsConfigurationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_PutBucketAnalyticsConfigurationCommand");
    var de_PutBucketCorsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_PutBucketCorsCommand");
    var de_PutBucketEncryptionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_PutBucketEncryptionCommand");
    var de_PutBucketIntelligentTieringConfigurationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_PutBucketIntelligentTieringConfigurationCommand");
    var de_PutBucketInventoryConfigurationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_PutBucketInventoryConfigurationCommand");
    var de_PutBucketLifecycleConfigurationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output),
        [_TDMOS]: [, output.headers[_xatdmos]]
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_PutBucketLifecycleConfigurationCommand");
    var de_PutBucketLoggingCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_PutBucketLoggingCommand");
    var de_PutBucketMetricsConfigurationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_PutBucketMetricsConfigurationCommand");
    var de_PutBucketNotificationConfigurationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_PutBucketNotificationConfigurationCommand");
    var de_PutBucketOwnershipControlsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_PutBucketOwnershipControlsCommand");
    var de_PutBucketPolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_PutBucketPolicyCommand");
    var de_PutBucketReplicationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_PutBucketReplicationCommand");
    var de_PutBucketRequestPaymentCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_PutBucketRequestPaymentCommand");
    var de_PutBucketTaggingCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_PutBucketTaggingCommand");
    var de_PutBucketVersioningCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_PutBucketVersioningCommand");
    var de_PutBucketWebsiteCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_PutBucketWebsiteCommand");
    var de_PutObjectCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output),
        [_Exp]: [, output.headers[_xae]],
        [_ETa]: [, output.headers[_eta]],
        [_CCRC]: [, output.headers[_xacc]],
        [_CCRCC]: [, output.headers[_xacc_]],
        [_CCRCNVME]: [, output.headers[_xacc__]],
        [_CSHA]: [, output.headers[_xacs]],
        [_CSHAh]: [, output.headers[_xacs_]],
        [_CT]: [, output.headers[_xact]],
        [_SSE]: [, output.headers[_xasse]],
        [_VI]: [, output.headers[_xavi]],
        [_SSECA]: [, output.headers[_xasseca]],
        [_SSECKMD]: [, output.headers[_xasseckm]],
        [_SSEKMSKI]: [, output.headers[_xasseakki]],
        [_SSEKMSEC]: [, output.headers[_xassec]],
        [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client28.parseBoolean)(output.headers[_xassebke])],
        [_Si]: [() => void 0 !== output.headers[_xaos], () => (0, import_smithy_client28.strictParseLong)(output.headers[_xaos])],
        [_RC]: [, output.headers[_xarc]]
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_PutObjectCommand");
    var de_PutObjectAclCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output),
        [_RC]: [, output.headers[_xarc]]
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_PutObjectAclCommand");
    var de_PutObjectLegalHoldCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output),
        [_RC]: [, output.headers[_xarc]]
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_PutObjectLegalHoldCommand");
    var de_PutObjectLockConfigurationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output),
        [_RC]: [, output.headers[_xarc]]
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_PutObjectLockConfigurationCommand");
    var de_PutObjectRetentionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output),
        [_RC]: [, output.headers[_xarc]]
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_PutObjectRetentionCommand");
    var de_PutObjectTaggingCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output),
        [_VI]: [, output.headers[_xavi]]
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_PutObjectTaggingCommand");
    var de_PutPublicAccessBlockCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_PutPublicAccessBlockCommand");
    var de_RenameObjectCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_RenameObjectCommand");
    var de_RestoreObjectCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output),
        [_RC]: [, output.headers[_xarc]],
        [_ROP]: [, output.headers[_xarop]]
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_RestoreObjectCommand");
    var de_SelectObjectContentCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = output.body;
      contents.Payload = de_SelectObjectContentEventStream(data3, context);
      return contents;
    }, "de_SelectObjectContentCommand");
    var de_UpdateBucketMetadataInventoryTableConfigurationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_UpdateBucketMetadataInventoryTableConfigurationCommand");
    var de_UpdateBucketMetadataJournalTableConfigurationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_UpdateBucketMetadataJournalTableConfigurationCommand");
    var de_UploadPartCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output),
        [_SSE]: [, output.headers[_xasse]],
        [_ETa]: [, output.headers[_eta]],
        [_CCRC]: [, output.headers[_xacc]],
        [_CCRCC]: [, output.headers[_xacc_]],
        [_CCRCNVME]: [, output.headers[_xacc__]],
        [_CSHA]: [, output.headers[_xacs]],
        [_CSHAh]: [, output.headers[_xacs_]],
        [_SSECA]: [, output.headers[_xasseca]],
        [_SSECKMD]: [, output.headers[_xasseckm]],
        [_SSEKMSKI]: [, output.headers[_xasseakki]],
        [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client28.parseBoolean)(output.headers[_xassebke])],
        [_RC]: [, output.headers[_xarc]]
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_UploadPartCommand");
    var de_UploadPartCopyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output),
        [_CSVI]: [, output.headers[_xacsvi]],
        [_SSE]: [, output.headers[_xasse]],
        [_SSECA]: [, output.headers[_xasseca]],
        [_SSECKMD]: [, output.headers[_xasseckm]],
        [_SSEKMSKI]: [, output.headers[_xasseakki]],
        [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client28.parseBoolean)(output.headers[_xassebke])],
        [_RC]: [, output.headers[_xarc]]
      });
      const data3 = (0, import_smithy_client28.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context));
      contents.CopyPartResult = de_CopyPartResult(data3, context);
      return contents;
    }, "de_UploadPartCopyCommand");
    var de_WriteGetObjectResponseCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_WriteGetObjectResponseCommand");
    var de_CommandError3 = /* @__PURE__ */ __name2(async (output, context) => {
      const parsedOutput = {
        ...output,
        body: await (0, import_core17.parseXmlErrorBody)(output.body, context)
      };
      const errorCode = (0, import_core17.loadRestXmlErrorCode)(output, parsedOutput.body);
      switch (errorCode) {
        case "NoSuchUpload":
        case "com.amazonaws.s3#NoSuchUpload":
          throw await de_NoSuchUploadRes(parsedOutput, context);
        case "ObjectNotInActiveTierError":
        case "com.amazonaws.s3#ObjectNotInActiveTierError":
          throw await de_ObjectNotInActiveTierErrorRes(parsedOutput, context);
        case "BucketAlreadyExists":
        case "com.amazonaws.s3#BucketAlreadyExists":
          throw await de_BucketAlreadyExistsRes(parsedOutput, context);
        case "BucketAlreadyOwnedByYou":
        case "com.amazonaws.s3#BucketAlreadyOwnedByYou":
          throw await de_BucketAlreadyOwnedByYouRes(parsedOutput, context);
        case "NoSuchBucket":
        case "com.amazonaws.s3#NoSuchBucket":
          throw await de_NoSuchBucketRes(parsedOutput, context);
        case "InvalidObjectState":
        case "com.amazonaws.s3#InvalidObjectState":
          throw await de_InvalidObjectStateRes(parsedOutput, context);
        case "NoSuchKey":
        case "com.amazonaws.s3#NoSuchKey":
          throw await de_NoSuchKeyRes(parsedOutput, context);
        case "NotFound":
        case "com.amazonaws.s3#NotFound":
          throw await de_NotFoundRes(parsedOutput, context);
        case "EncryptionTypeMismatch":
        case "com.amazonaws.s3#EncryptionTypeMismatch":
          throw await de_EncryptionTypeMismatchRes(parsedOutput, context);
        case "InvalidRequest":
        case "com.amazonaws.s3#InvalidRequest":
          throw await de_InvalidRequestRes(parsedOutput, context);
        case "InvalidWriteOffset":
        case "com.amazonaws.s3#InvalidWriteOffset":
          throw await de_InvalidWriteOffsetRes(parsedOutput, context);
        case "TooManyParts":
        case "com.amazonaws.s3#TooManyParts":
          throw await de_TooManyPartsRes(parsedOutput, context);
        case "IdempotencyParameterMismatch":
        case "com.amazonaws.s3#IdempotencyParameterMismatch":
          throw await de_IdempotencyParameterMismatchRes(parsedOutput, context);
        case "ObjectAlreadyInActiveTierError":
        case "com.amazonaws.s3#ObjectAlreadyInActiveTierError":
          throw await de_ObjectAlreadyInActiveTierErrorRes(parsedOutput, context);
        default:
          const parsedBody = parsedOutput.body;
          return throwDefaultError3({
            output,
            parsedBody,
            errorCode
          });
      }
    }, "de_CommandError");
    var throwDefaultError3 = (0, import_smithy_client28.withBaseException)(S3ServiceException);
    var de_BucketAlreadyExistsRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const exception = new BucketAlreadyExists({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_BucketAlreadyExistsRes");
    var de_BucketAlreadyOwnedByYouRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const exception = new BucketAlreadyOwnedByYou({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_BucketAlreadyOwnedByYouRes");
    var de_EncryptionTypeMismatchRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const exception = new EncryptionTypeMismatch({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_EncryptionTypeMismatchRes");
    var de_IdempotencyParameterMismatchRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const exception = new IdempotencyParameterMismatch({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_IdempotencyParameterMismatchRes");
    var de_InvalidObjectStateRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      if (data3[_AT] != null) {
        contents[_AT] = (0, import_smithy_client28.expectString)(data3[_AT]);
      }
      if (data3[_SC] != null) {
        contents[_SC] = (0, import_smithy_client28.expectString)(data3[_SC]);
      }
      const exception = new InvalidObjectState({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_InvalidObjectStateRes");
    var de_InvalidRequestRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const exception = new InvalidRequest({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_InvalidRequestRes");
    var de_InvalidWriteOffsetRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const exception = new InvalidWriteOffset({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_InvalidWriteOffsetRes");
    var de_NoSuchBucketRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const exception = new NoSuchBucket({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_NoSuchBucketRes");
    var de_NoSuchKeyRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const exception = new NoSuchKey({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_NoSuchKeyRes");
    var de_NoSuchUploadRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const exception = new NoSuchUpload({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_NoSuchUploadRes");
    var de_NotFoundRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const exception = new NotFound({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_NotFoundRes");
    var de_ObjectAlreadyInActiveTierErrorRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const exception = new ObjectAlreadyInActiveTierError({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_ObjectAlreadyInActiveTierErrorRes");
    var de_ObjectNotInActiveTierErrorRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const exception = new ObjectNotInActiveTierError({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_ObjectNotInActiveTierErrorRes");
    var de_TooManyPartsRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const exception = new TooManyParts({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_TooManyPartsRes");
    var de_SelectObjectContentEventStream = /* @__PURE__ */ __name2((output, context) => {
      return context.eventStreamMarshaller.deserialize(output, async (event) => {
        if (event["Records"] != null) {
          return {
            Records: await de_RecordsEvent_event(event["Records"], context)
          };
        }
        if (event["Stats"] != null) {
          return {
            Stats: await de_StatsEvent_event(event["Stats"], context)
          };
        }
        if (event["Progress"] != null) {
          return {
            Progress: await de_ProgressEvent_event(event["Progress"], context)
          };
        }
        if (event["Cont"] != null) {
          return {
            Cont: await de_ContinuationEvent_event(event["Cont"], context)
          };
        }
        if (event["End"] != null) {
          return {
            End: await de_EndEvent_event(event["End"], context)
          };
        }
        return { $unknown: event };
      });
    }, "de_SelectObjectContentEventStream");
    var de_ContinuationEvent_event = /* @__PURE__ */ __name2(async (output, context) => {
      const contents = {};
      const data3 = await (0, import_core17.parseXmlBody)(output.body, context);
      Object.assign(contents, de_ContinuationEvent(data3, context));
      return contents;
    }, "de_ContinuationEvent_event");
    var de_EndEvent_event = /* @__PURE__ */ __name2(async (output, context) => {
      const contents = {};
      const data3 = await (0, import_core17.parseXmlBody)(output.body, context);
      Object.assign(contents, de_EndEvent(data3, context));
      return contents;
    }, "de_EndEvent_event");
    var de_ProgressEvent_event = /* @__PURE__ */ __name2(async (output, context) => {
      const contents = {};
      const data3 = await (0, import_core17.parseXmlBody)(output.body, context);
      contents.Details = de_Progress(data3, context);
      return contents;
    }, "de_ProgressEvent_event");
    var de_RecordsEvent_event = /* @__PURE__ */ __name2(async (output, context) => {
      const contents = {};
      contents.Payload = output.body;
      return contents;
    }, "de_RecordsEvent_event");
    var de_StatsEvent_event = /* @__PURE__ */ __name2(async (output, context) => {
      const contents = {};
      const data3 = await (0, import_core17.parseXmlBody)(output.body, context);
      contents.Details = de_Stats(data3, context);
      return contents;
    }, "de_StatsEvent_event");
    var se_AbortIncompleteMultipartUpload = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_AIMU);
      if (input[_DAI] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_DAI, String(input[_DAI])).n(_DAI));
      }
      return bn;
    }, "se_AbortIncompleteMultipartUpload");
    var se_AccelerateConfiguration = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_ACc);
      if (input[_S] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_BAS, input[_S]).n(_S));
      }
      return bn;
    }, "se_AccelerateConfiguration");
    var se_AccessControlPolicy = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_ACP);
      bn.lc(input, "Grants", "AccessControlList", () => se_Grants(input[_Gr], context));
      if (input[_O] != null) {
        bn.c(se_Owner(input[_O], context).n(_O));
      }
      return bn;
    }, "se_AccessControlPolicy");
    var se_AccessControlTranslation = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_ACT);
      if (input[_O] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_OOw, input[_O]).n(_O));
      }
      return bn;
    }, "se_AccessControlTranslation");
    var se_AllowedHeaders = /* @__PURE__ */ __name2((input, context) => {
      return input.filter((e3) => e3 != null).map((entry) => {
        const n3 = import_xml_builder2.XmlNode.of(_AH, entry);
        return n3.n(_me);
      });
    }, "se_AllowedHeaders");
    var se_AllowedMethods = /* @__PURE__ */ __name2((input, context) => {
      return input.filter((e3) => e3 != null).map((entry) => {
        const n3 = import_xml_builder2.XmlNode.of(_AM, entry);
        return n3.n(_me);
      });
    }, "se_AllowedMethods");
    var se_AllowedOrigins = /* @__PURE__ */ __name2((input, context) => {
      return input.filter((e3) => e3 != null).map((entry) => {
        const n3 = import_xml_builder2.XmlNode.of(_AO, entry);
        return n3.n(_me);
      });
    }, "se_AllowedOrigins");
    var se_AnalyticsAndOperator = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_AAO);
      bn.cc(input, _P2);
      bn.l(input, "Tags", "Tag", () => se_TagSet(input[_Tag], context));
      return bn;
    }, "se_AnalyticsAndOperator");
    var se_AnalyticsConfiguration = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_AC);
      if (input[_I] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_AI, input[_I]).n(_I));
      }
      if (input[_F] != null) {
        bn.c(se_AnalyticsFilter(input[_F], context).n(_F));
      }
      if (input[_SCA] != null) {
        bn.c(se_StorageClassAnalysis(input[_SCA], context).n(_SCA));
      }
      return bn;
    }, "se_AnalyticsConfiguration");
    var se_AnalyticsExportDestination = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_AED);
      if (input[_SBD] != null) {
        bn.c(se_AnalyticsS3BucketDestination(input[_SBD], context).n(_SBD));
      }
      return bn;
    }, "se_AnalyticsExportDestination");
    var se_AnalyticsFilter = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_AF);
      AnalyticsFilter.visit(input, {
        Prefix: /* @__PURE__ */ __name2((value) => {
          if (input[_P2] != null) {
            bn.c(import_xml_builder2.XmlNode.of(_P2, value).n(_P2));
          }
        }, "Prefix"),
        Tag: /* @__PURE__ */ __name2((value) => {
          if (input[_Ta] != null) {
            bn.c(se_Tag2(value, context).n(_Ta));
          }
        }, "Tag"),
        And: /* @__PURE__ */ __name2((value) => {
          if (input[_A2] != null) {
            bn.c(se_AnalyticsAndOperator(value, context).n(_A2));
          }
        }, "And"),
        _: /* @__PURE__ */ __name2((name, value) => {
          if (!(value instanceof import_xml_builder2.XmlNode || value instanceof import_xml_builder2.XmlText)) {
            throw new Error("Unable to serialize unknown union members in XML.");
          }
          bn.c(new import_xml_builder2.XmlNode(name).c(value));
        }, "_")
      });
      return bn;
    }, "se_AnalyticsFilter");
    var se_AnalyticsS3BucketDestination = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_ASBD);
      if (input[_Fo] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_ASEFF, input[_Fo]).n(_Fo));
      }
      if (input[_BAI] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_AIc, input[_BAI]).n(_BAI));
      }
      if (input[_B] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_BN, input[_B]).n(_B));
      }
      bn.cc(input, _P2);
      return bn;
    }, "se_AnalyticsS3BucketDestination");
    var se_BucketInfo = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_BI);
      bn.cc(input, _DR);
      if (input[_Ty] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_BT, input[_Ty]).n(_Ty));
      }
      return bn;
    }, "se_BucketInfo");
    var se_BucketLifecycleConfiguration = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_BLC);
      bn.l(input, "Rules", "Rule", () => se_LifecycleRules(input[_Rul], context));
      return bn;
    }, "se_BucketLifecycleConfiguration");
    var se_BucketLoggingStatus = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_BLS);
      if (input[_LE] != null) {
        bn.c(se_LoggingEnabled(input[_LE], context).n(_LE));
      }
      return bn;
    }, "se_BucketLoggingStatus");
    var se_CompletedMultipartUpload = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_CMU);
      bn.l(input, "Parts", "Part", () => se_CompletedPartList(input[_Part], context));
      return bn;
    }, "se_CompletedMultipartUpload");
    var se_CompletedPart = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_CPo);
      bn.cc(input, _ETa);
      bn.cc(input, _CCRC);
      bn.cc(input, _CCRCC);
      bn.cc(input, _CCRCNVME);
      bn.cc(input, _CSHA);
      bn.cc(input, _CSHAh);
      if (input[_PN] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_PN, String(input[_PN])).n(_PN));
      }
      return bn;
    }, "se_CompletedPart");
    var se_CompletedPartList = /* @__PURE__ */ __name2((input, context) => {
      return input.filter((e3) => e3 != null).map((entry) => {
        const n3 = se_CompletedPart(entry, context);
        return n3.n(_me);
      });
    }, "se_CompletedPartList");
    var se_Condition = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_Con);
      bn.cc(input, _HECRE);
      bn.cc(input, _KPE);
      return bn;
    }, "se_Condition");
    var se_CORSConfiguration = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_CORSC);
      bn.l(input, "CORSRules", "CORSRule", () => se_CORSRules(input[_CORSRu], context));
      return bn;
    }, "se_CORSConfiguration");
    var se_CORSRule = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_CORSR);
      bn.cc(input, _ID_);
      bn.l(input, "AllowedHeaders", "AllowedHeader", () => se_AllowedHeaders(input[_AHl], context));
      bn.l(input, "AllowedMethods", "AllowedMethod", () => se_AllowedMethods(input[_AMl], context));
      bn.l(input, "AllowedOrigins", "AllowedOrigin", () => se_AllowedOrigins(input[_AOl], context));
      bn.l(input, "ExposeHeaders", "ExposeHeader", () => se_ExposeHeaders(input[_EH], context));
      if (input[_MAS] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_MAS, String(input[_MAS])).n(_MAS));
      }
      return bn;
    }, "se_CORSRule");
    var se_CORSRules = /* @__PURE__ */ __name2((input, context) => {
      return input.filter((e3) => e3 != null).map((entry) => {
        const n3 = se_CORSRule(entry, context);
        return n3.n(_me);
      });
    }, "se_CORSRules");
    var se_CreateBucketConfiguration = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_CBC);
      if (input[_LC] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_BLCu, input[_LC]).n(_LC));
      }
      if (input[_L] != null) {
        bn.c(se_LocationInfo(input[_L], context).n(_L));
      }
      if (input[_B] != null) {
        bn.c(se_BucketInfo(input[_B], context).n(_B));
      }
      bn.lc(input, "Tags", "Tags", () => se_TagSet(input[_Tag], context));
      return bn;
    }, "se_CreateBucketConfiguration");
    var se_CSVInput = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_CSVIn);
      bn.cc(input, _FHI);
      bn.cc(input, _Com);
      bn.cc(input, _QEC);
      bn.cc(input, _RD);
      bn.cc(input, _FD);
      bn.cc(input, _QCuo);
      if (input[_AQRD] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_AQRD, String(input[_AQRD])).n(_AQRD));
      }
      return bn;
    }, "se_CSVInput");
    var se_CSVOutput = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_CSVO);
      bn.cc(input, _QF);
      bn.cc(input, _QEC);
      bn.cc(input, _RD);
      bn.cc(input, _FD);
      bn.cc(input, _QCuo);
      return bn;
    }, "se_CSVOutput");
    var se_DefaultRetention = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_DRe);
      if (input[_Mo] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_OLRM, input[_Mo]).n(_Mo));
      }
      if (input[_Da] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_Da, String(input[_Da])).n(_Da));
      }
      if (input[_Y] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_Y, String(input[_Y])).n(_Y));
      }
      return bn;
    }, "se_DefaultRetention");
    var se_Delete = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_Del);
      bn.l(input, "Objects", "Object", () => se_ObjectIdentifierList(input[_Ob], context));
      if (input[_Q] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_Q, String(input[_Q])).n(_Q));
      }
      return bn;
    }, "se_Delete");
    var se_DeleteMarkerReplication = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_DMR);
      if (input[_S] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_DMRS, input[_S]).n(_S));
      }
      return bn;
    }, "se_DeleteMarkerReplication");
    var se_Destination = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_Des);
      if (input[_B] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_BN, input[_B]).n(_B));
      }
      if (input[_Ac] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_AIc, input[_Ac]).n(_Ac));
      }
      bn.cc(input, _SC);
      if (input[_ACT] != null) {
        bn.c(se_AccessControlTranslation(input[_ACT], context).n(_ACT));
      }
      if (input[_ECn] != null) {
        bn.c(se_EncryptionConfiguration(input[_ECn], context).n(_ECn));
      }
      if (input[_RTe] != null) {
        bn.c(se_ReplicationTime(input[_RTe], context).n(_RTe));
      }
      if (input[_Me] != null) {
        bn.c(se_Metrics(input[_Me], context).n(_Me));
      }
      return bn;
    }, "se_Destination");
    var se_Encryption = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_En);
      if (input[_ETn] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_SSE, input[_ETn]).n(_ETn));
      }
      if (input[_KMSKI] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_SSEKMSKI, input[_KMSKI]).n(_KMSKI));
      }
      bn.cc(input, _KMSC);
      return bn;
    }, "se_Encryption");
    var se_EncryptionConfiguration = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_ECn);
      bn.cc(input, _RKKID);
      return bn;
    }, "se_EncryptionConfiguration");
    var se_ErrorDocument = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_ED);
      if (input[_K2] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_OK, input[_K2]).n(_K2));
      }
      return bn;
    }, "se_ErrorDocument");
    var se_EventBridgeConfiguration = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_EBC);
      return bn;
    }, "se_EventBridgeConfiguration");
    var se_EventList = /* @__PURE__ */ __name2((input, context) => {
      return input.filter((e3) => e3 != null).map((entry) => {
        const n3 = import_xml_builder2.XmlNode.of(_Ev, entry);
        return n3.n(_me);
      });
    }, "se_EventList");
    var se_ExistingObjectReplication = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_EOR);
      if (input[_S] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_EORS, input[_S]).n(_S));
      }
      return bn;
    }, "se_ExistingObjectReplication");
    var se_ExposeHeaders = /* @__PURE__ */ __name2((input, context) => {
      return input.filter((e3) => e3 != null).map((entry) => {
        const n3 = import_xml_builder2.XmlNode.of(_EHx, entry);
        return n3.n(_me);
      });
    }, "se_ExposeHeaders");
    var se_FilterRule = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_FR);
      if (input[_N] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_FRN, input[_N]).n(_N));
      }
      if (input[_Va2] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_FRV, input[_Va2]).n(_Va2));
      }
      return bn;
    }, "se_FilterRule");
    var se_FilterRuleList = /* @__PURE__ */ __name2((input, context) => {
      return input.filter((e3) => e3 != null).map((entry) => {
        const n3 = se_FilterRule(entry, context);
        return n3.n(_me);
      });
    }, "se_FilterRuleList");
    var se_GlacierJobParameters = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_GJP);
      bn.cc(input, _Ti);
      return bn;
    }, "se_GlacierJobParameters");
    var se_Grant = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_G);
      if (input[_Gra] != null) {
        const n3 = se_Grantee(input[_Gra], context).n(_Gra);
        n3.a("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance");
        bn.c(n3);
      }
      bn.cc(input, _Pe);
      return bn;
    }, "se_Grant");
    var se_Grantee = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_Gra);
      bn.cc(input, _DN);
      bn.cc(input, _EA);
      bn.cc(input, _ID_);
      bn.cc(input, _URI);
      bn.a("xsi:type", input[_Ty]);
      return bn;
    }, "se_Grantee");
    var se_Grants = /* @__PURE__ */ __name2((input, context) => {
      return input.filter((e3) => e3 != null).map((entry) => {
        const n3 = se_Grant(entry, context);
        return n3.n(_G);
      });
    }, "se_Grants");
    var se_IndexDocument = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_ID);
      bn.cc(input, _Su);
      return bn;
    }, "se_IndexDocument");
    var se_InputSerialization = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_IS);
      if (input[_CSV] != null) {
        bn.c(se_CSVInput(input[_CSV], context).n(_CSV));
      }
      bn.cc(input, _CTom);
      if (input[_JSON] != null) {
        bn.c(se_JSONInput(input[_JSON], context).n(_JSON));
      }
      if (input[_Parq] != null) {
        bn.c(se_ParquetInput(input[_Parq], context).n(_Parq));
      }
      return bn;
    }, "se_InputSerialization");
    var se_IntelligentTieringAndOperator = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_ITAO);
      bn.cc(input, _P2);
      bn.l(input, "Tags", "Tag", () => se_TagSet(input[_Tag], context));
      return bn;
    }, "se_IntelligentTieringAndOperator");
    var se_IntelligentTieringConfiguration = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_ITC);
      if (input[_I] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_ITI, input[_I]).n(_I));
      }
      if (input[_F] != null) {
        bn.c(se_IntelligentTieringFilter(input[_F], context).n(_F));
      }
      if (input[_S] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_ITS, input[_S]).n(_S));
      }
      bn.l(input, "Tierings", "Tiering", () => se_TieringList(input[_Tie], context));
      return bn;
    }, "se_IntelligentTieringConfiguration");
    var se_IntelligentTieringFilter = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_ITF);
      bn.cc(input, _P2);
      if (input[_Ta] != null) {
        bn.c(se_Tag2(input[_Ta], context).n(_Ta));
      }
      if (input[_A2] != null) {
        bn.c(se_IntelligentTieringAndOperator(input[_A2], context).n(_A2));
      }
      return bn;
    }, "se_IntelligentTieringFilter");
    var se_InventoryConfiguration = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_IC);
      if (input[_Des] != null) {
        bn.c(se_InventoryDestination(input[_Des], context).n(_Des));
      }
      if (input[_IE] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_IE, String(input[_IE])).n(_IE));
      }
      if (input[_F] != null) {
        bn.c(se_InventoryFilter(input[_F], context).n(_F));
      }
      if (input[_I] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_II, input[_I]).n(_I));
      }
      if (input[_IOV] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_IIOV, input[_IOV]).n(_IOV));
      }
      bn.lc(input, "OptionalFields", "OptionalFields", () => se_InventoryOptionalFields(input[_OF], context));
      if (input[_Sc] != null) {
        bn.c(se_InventorySchedule(input[_Sc], context).n(_Sc));
      }
      return bn;
    }, "se_InventoryConfiguration");
    var se_InventoryDestination = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_IDn);
      if (input[_SBD] != null) {
        bn.c(se_InventoryS3BucketDestination(input[_SBD], context).n(_SBD));
      }
      return bn;
    }, "se_InventoryDestination");
    var se_InventoryEncryption = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_IEn);
      if (input[_SSES] != null) {
        bn.c(se_SSES3(input[_SSES], context).n(_SS));
      }
      if (input[_SSEKMS] != null) {
        bn.c(se_SSEKMS(input[_SSEKMS], context).n(_SK));
      }
      return bn;
    }, "se_InventoryEncryption");
    var se_InventoryFilter = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_IF);
      bn.cc(input, _P2);
      return bn;
    }, "se_InventoryFilter");
    var se_InventoryOptionalFields = /* @__PURE__ */ __name2((input, context) => {
      return input.filter((e3) => e3 != null).map((entry) => {
        const n3 = import_xml_builder2.XmlNode.of(_IOF, entry);
        return n3.n(_Fi);
      });
    }, "se_InventoryOptionalFields");
    var se_InventoryS3BucketDestination = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_ISBD);
      bn.cc(input, _AIc);
      if (input[_B] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_BN, input[_B]).n(_B));
      }
      if (input[_Fo] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_IFn, input[_Fo]).n(_Fo));
      }
      bn.cc(input, _P2);
      if (input[_En] != null) {
        bn.c(se_InventoryEncryption(input[_En], context).n(_En));
      }
      return bn;
    }, "se_InventoryS3BucketDestination");
    var se_InventorySchedule = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_ISn);
      if (input[_Fr] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_IFnv, input[_Fr]).n(_Fr));
      }
      return bn;
    }, "se_InventorySchedule");
    var se_InventoryTableConfiguration = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_ITCn);
      if (input[_CSo] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_ICS, input[_CSo]).n(_CSo));
      }
      if (input[_ECn] != null) {
        bn.c(se_MetadataTableEncryptionConfiguration(input[_ECn], context).n(_ECn));
      }
      return bn;
    }, "se_InventoryTableConfiguration");
    var se_InventoryTableConfigurationUpdates = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_ITCU);
      if (input[_CSo] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_ICS, input[_CSo]).n(_CSo));
      }
      if (input[_ECn] != null) {
        bn.c(se_MetadataTableEncryptionConfiguration(input[_ECn], context).n(_ECn));
      }
      return bn;
    }, "se_InventoryTableConfigurationUpdates");
    var se_JournalTableConfiguration = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_JTC);
      if (input[_REe] != null) {
        bn.c(se_RecordExpiration(input[_REe], context).n(_REe));
      }
      if (input[_ECn] != null) {
        bn.c(se_MetadataTableEncryptionConfiguration(input[_ECn], context).n(_ECn));
      }
      return bn;
    }, "se_JournalTableConfiguration");
    var se_JournalTableConfigurationUpdates = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_JTCU);
      if (input[_REe] != null) {
        bn.c(se_RecordExpiration(input[_REe], context).n(_REe));
      }
      return bn;
    }, "se_JournalTableConfigurationUpdates");
    var se_JSONInput = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_JSONI);
      if (input[_Ty] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_JSONT, input[_Ty]).n(_Ty));
      }
      return bn;
    }, "se_JSONInput");
    var se_JSONOutput = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_JSONO);
      bn.cc(input, _RD);
      return bn;
    }, "se_JSONOutput");
    var se_LambdaFunctionConfiguration = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_LFCa);
      if (input[_I] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_NI, input[_I]).n(_I));
      }
      if (input[_LFA] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_LFA, input[_LFA]).n(_CF));
      }
      bn.l(input, "Events", "Event", () => se_EventList(input[_Eve], context));
      if (input[_F] != null) {
        bn.c(se_NotificationConfigurationFilter(input[_F], context).n(_F));
      }
      return bn;
    }, "se_LambdaFunctionConfiguration");
    var se_LambdaFunctionConfigurationList = /* @__PURE__ */ __name2((input, context) => {
      return input.filter((e3) => e3 != null).map((entry) => {
        const n3 = se_LambdaFunctionConfiguration(entry, context);
        return n3.n(_me);
      });
    }, "se_LambdaFunctionConfigurationList");
    var se_LifecycleExpiration = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_LEi);
      if (input[_Dat] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_Dat, (0, import_smithy_client28.serializeDateTime)(input[_Dat]).toString()).n(_Dat));
      }
      if (input[_Da] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_Da, String(input[_Da])).n(_Da));
      }
      if (input[_EODM] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_EODM, String(input[_EODM])).n(_EODM));
      }
      return bn;
    }, "se_LifecycleExpiration");
    var se_LifecycleRule = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_LR);
      if (input[_Exp] != null) {
        bn.c(se_LifecycleExpiration(input[_Exp], context).n(_Exp));
      }
      bn.cc(input, _ID_);
      bn.cc(input, _P2);
      if (input[_F] != null) {
        bn.c(se_LifecycleRuleFilter(input[_F], context).n(_F));
      }
      if (input[_S] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_ESx, input[_S]).n(_S));
      }
      bn.l(input, "Transitions", "Transition", () => se_TransitionList(input[_Tr], context));
      bn.l(
        input,
        "NoncurrentVersionTransitions",
        "NoncurrentVersionTransition",
        () => se_NoncurrentVersionTransitionList(input[_NVT], context)
      );
      if (input[_NVE] != null) {
        bn.c(se_NoncurrentVersionExpiration(input[_NVE], context).n(_NVE));
      }
      if (input[_AIMU] != null) {
        bn.c(se_AbortIncompleteMultipartUpload(input[_AIMU], context).n(_AIMU));
      }
      return bn;
    }, "se_LifecycleRule");
    var se_LifecycleRuleAndOperator = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_LRAO);
      bn.cc(input, _P2);
      bn.l(input, "Tags", "Tag", () => se_TagSet(input[_Tag], context));
      if (input[_OSGT] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_OSGTB, String(input[_OSGT])).n(_OSGT));
      }
      if (input[_OSLT] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_OSLTB, String(input[_OSLT])).n(_OSLT));
      }
      return bn;
    }, "se_LifecycleRuleAndOperator");
    var se_LifecycleRuleFilter = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_LRF);
      bn.cc(input, _P2);
      if (input[_Ta] != null) {
        bn.c(se_Tag2(input[_Ta], context).n(_Ta));
      }
      if (input[_OSGT] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_OSGTB, String(input[_OSGT])).n(_OSGT));
      }
      if (input[_OSLT] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_OSLTB, String(input[_OSLT])).n(_OSLT));
      }
      if (input[_A2] != null) {
        bn.c(se_LifecycleRuleAndOperator(input[_A2], context).n(_A2));
      }
      return bn;
    }, "se_LifecycleRuleFilter");
    var se_LifecycleRules = /* @__PURE__ */ __name2((input, context) => {
      return input.filter((e3) => e3 != null).map((entry) => {
        const n3 = se_LifecycleRule(entry, context);
        return n3.n(_me);
      });
    }, "se_LifecycleRules");
    var se_LocationInfo = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_LI);
      if (input[_Ty] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_LT, input[_Ty]).n(_Ty));
      }
      if (input[_N] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_LNAS, input[_N]).n(_N));
      }
      return bn;
    }, "se_LocationInfo");
    var se_LoggingEnabled = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_LE);
      bn.cc(input, _TB);
      bn.lc(input, "TargetGrants", "TargetGrants", () => se_TargetGrants(input[_TG], context));
      bn.cc(input, _TP);
      if (input[_TOKF] != null) {
        bn.c(se_TargetObjectKeyFormat(input[_TOKF], context).n(_TOKF));
      }
      return bn;
    }, "se_LoggingEnabled");
    var se_MetadataConfiguration = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_MCe);
      if (input[_JTC] != null) {
        bn.c(se_JournalTableConfiguration(input[_JTC], context).n(_JTC));
      }
      if (input[_ITCn] != null) {
        bn.c(se_InventoryTableConfiguration(input[_ITCn], context).n(_ITCn));
      }
      return bn;
    }, "se_MetadataConfiguration");
    var se_MetadataEntry = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_ME);
      if (input[_N] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_MKe, input[_N]).n(_N));
      }
      if (input[_Va2] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_MV, input[_Va2]).n(_Va2));
      }
      return bn;
    }, "se_MetadataEntry");
    var se_MetadataTableConfiguration = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_MTC);
      if (input[_STD] != null) {
        bn.c(se_S3TablesDestination(input[_STD], context).n(_STD));
      }
      return bn;
    }, "se_MetadataTableConfiguration");
    var se_MetadataTableEncryptionConfiguration = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_MTEC);
      if (input[_SAs] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_TSA, input[_SAs]).n(_SAs));
      }
      bn.cc(input, _KKA);
      return bn;
    }, "se_MetadataTableEncryptionConfiguration");
    var se_Metrics = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_Me);
      if (input[_S] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_MS, input[_S]).n(_S));
      }
      if (input[_ETv] != null) {
        bn.c(se_ReplicationTimeValue(input[_ETv], context).n(_ETv));
      }
      return bn;
    }, "se_Metrics");
    var se_MetricsAndOperator = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_MAO);
      bn.cc(input, _P2);
      bn.l(input, "Tags", "Tag", () => se_TagSet(input[_Tag], context));
      bn.cc(input, _APAc);
      return bn;
    }, "se_MetricsAndOperator");
    var se_MetricsConfiguration = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_MC);
      if (input[_I] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_MI, input[_I]).n(_I));
      }
      if (input[_F] != null) {
        bn.c(se_MetricsFilter(input[_F], context).n(_F));
      }
      return bn;
    }, "se_MetricsConfiguration");
    var se_MetricsFilter = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_MF);
      MetricsFilter.visit(input, {
        Prefix: /* @__PURE__ */ __name2((value) => {
          if (input[_P2] != null) {
            bn.c(import_xml_builder2.XmlNode.of(_P2, value).n(_P2));
          }
        }, "Prefix"),
        Tag: /* @__PURE__ */ __name2((value) => {
          if (input[_Ta] != null) {
            bn.c(se_Tag2(value, context).n(_Ta));
          }
        }, "Tag"),
        AccessPointArn: /* @__PURE__ */ __name2((value) => {
          if (input[_APAc] != null) {
            bn.c(import_xml_builder2.XmlNode.of(_APAc, value).n(_APAc));
          }
        }, "AccessPointArn"),
        And: /* @__PURE__ */ __name2((value) => {
          if (input[_A2] != null) {
            bn.c(se_MetricsAndOperator(value, context).n(_A2));
          }
        }, "And"),
        _: /* @__PURE__ */ __name2((name, value) => {
          if (!(value instanceof import_xml_builder2.XmlNode || value instanceof import_xml_builder2.XmlText)) {
            throw new Error("Unable to serialize unknown union members in XML.");
          }
          bn.c(new import_xml_builder2.XmlNode(name).c(value));
        }, "_")
      });
      return bn;
    }, "se_MetricsFilter");
    var se_NoncurrentVersionExpiration = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_NVE);
      if (input[_ND] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_Da, String(input[_ND])).n(_ND));
      }
      if (input[_NNV] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_VC, String(input[_NNV])).n(_NNV));
      }
      return bn;
    }, "se_NoncurrentVersionExpiration");
    var se_NoncurrentVersionTransition = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_NVTo);
      if (input[_ND] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_Da, String(input[_ND])).n(_ND));
      }
      if (input[_SC] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_TSC, input[_SC]).n(_SC));
      }
      if (input[_NNV] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_VC, String(input[_NNV])).n(_NNV));
      }
      return bn;
    }, "se_NoncurrentVersionTransition");
    var se_NoncurrentVersionTransitionList = /* @__PURE__ */ __name2((input, context) => {
      return input.filter((e3) => e3 != null).map((entry) => {
        const n3 = se_NoncurrentVersionTransition(entry, context);
        return n3.n(_me);
      });
    }, "se_NoncurrentVersionTransitionList");
    var se_NotificationConfiguration = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_NC);
      bn.l(input, "TopicConfigurations", "TopicConfiguration", () => se_TopicConfigurationList(input[_TCop], context));
      bn.l(input, "QueueConfigurations", "QueueConfiguration", () => se_QueueConfigurationList(input[_QCu], context));
      bn.l(
        input,
        "LambdaFunctionConfigurations",
        "CloudFunctionConfiguration",
        () => se_LambdaFunctionConfigurationList(input[_LFC], context)
      );
      if (input[_EBC] != null) {
        bn.c(se_EventBridgeConfiguration(input[_EBC], context).n(_EBC));
      }
      return bn;
    }, "se_NotificationConfiguration");
    var se_NotificationConfigurationFilter = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_NCF);
      if (input[_K2] != null) {
        bn.c(se_S3KeyFilter(input[_K2], context).n(_SKe));
      }
      return bn;
    }, "se_NotificationConfigurationFilter");
    var se_ObjectIdentifier = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_OI);
      if (input[_K2] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_OK, input[_K2]).n(_K2));
      }
      if (input[_VI] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_OVI, input[_VI]).n(_VI));
      }
      bn.cc(input, _ETa);
      if (input[_LMT] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_LMT, (0, import_smithy_client28.dateToUtcString)(input[_LMT]).toString()).n(_LMT));
      }
      if (input[_Si] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_Si, String(input[_Si])).n(_Si));
      }
      return bn;
    }, "se_ObjectIdentifier");
    var se_ObjectIdentifierList = /* @__PURE__ */ __name2((input, context) => {
      return input.filter((e3) => e3 != null).map((entry) => {
        const n3 = se_ObjectIdentifier(entry, context);
        return n3.n(_me);
      });
    }, "se_ObjectIdentifierList");
    var se_ObjectLockConfiguration = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_OLC);
      bn.cc(input, _OLE);
      if (input[_Ru] != null) {
        bn.c(se_ObjectLockRule(input[_Ru], context).n(_Ru));
      }
      return bn;
    }, "se_ObjectLockConfiguration");
    var se_ObjectLockLegalHold = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_OLLH);
      if (input[_S] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_OLLHS, input[_S]).n(_S));
      }
      return bn;
    }, "se_ObjectLockLegalHold");
    var se_ObjectLockRetention = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_OLR);
      if (input[_Mo] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_OLRM, input[_Mo]).n(_Mo));
      }
      if (input[_RUD] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_Dat, (0, import_smithy_client28.serializeDateTime)(input[_RUD]).toString()).n(_RUD));
      }
      return bn;
    }, "se_ObjectLockRetention");
    var se_ObjectLockRule = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_OLRb);
      if (input[_DRe] != null) {
        bn.c(se_DefaultRetention(input[_DRe], context).n(_DRe));
      }
      return bn;
    }, "se_ObjectLockRule");
    var se_OutputLocation = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_OL);
      if (input[_S_] != null) {
        bn.c(se_S3Location(input[_S_], context).n(_S_));
      }
      return bn;
    }, "se_OutputLocation");
    var se_OutputSerialization = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_OS);
      if (input[_CSV] != null) {
        bn.c(se_CSVOutput(input[_CSV], context).n(_CSV));
      }
      if (input[_JSON] != null) {
        bn.c(se_JSONOutput(input[_JSON], context).n(_JSON));
      }
      return bn;
    }, "se_OutputSerialization");
    var se_Owner = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_O);
      bn.cc(input, _DN);
      bn.cc(input, _ID_);
      return bn;
    }, "se_Owner");
    var se_OwnershipControls = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_OC);
      bn.l(input, "Rules", "Rule", () => se_OwnershipControlsRules(input[_Rul], context));
      return bn;
    }, "se_OwnershipControls");
    var se_OwnershipControlsRule = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_OCR);
      bn.cc(input, _OO);
      return bn;
    }, "se_OwnershipControlsRule");
    var se_OwnershipControlsRules = /* @__PURE__ */ __name2((input, context) => {
      return input.filter((e3) => e3 != null).map((entry) => {
        const n3 = se_OwnershipControlsRule(entry, context);
        return n3.n(_me);
      });
    }, "se_OwnershipControlsRules");
    var se_ParquetInput = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_PI2);
      return bn;
    }, "se_ParquetInput");
    var se_PartitionedPrefix = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_PP);
      bn.cc(input, _PDS);
      return bn;
    }, "se_PartitionedPrefix");
    var se_PublicAccessBlockConfiguration = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_PABC);
      if (input[_BPA] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_Se, String(input[_BPA])).n(_BPA));
      }
      if (input[_IPA] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_Se, String(input[_IPA])).n(_IPA));
      }
      if (input[_BPP] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_Se, String(input[_BPP])).n(_BPP));
      }
      if (input[_RPB] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_Se, String(input[_RPB])).n(_RPB));
      }
      return bn;
    }, "se_PublicAccessBlockConfiguration");
    var se_QueueConfiguration = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_QC);
      if (input[_I] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_NI, input[_I]).n(_I));
      }
      if (input[_QA] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_QA, input[_QA]).n(_Qu));
      }
      bn.l(input, "Events", "Event", () => se_EventList(input[_Eve], context));
      if (input[_F] != null) {
        bn.c(se_NotificationConfigurationFilter(input[_F], context).n(_F));
      }
      return bn;
    }, "se_QueueConfiguration");
    var se_QueueConfigurationList = /* @__PURE__ */ __name2((input, context) => {
      return input.filter((e3) => e3 != null).map((entry) => {
        const n3 = se_QueueConfiguration(entry, context);
        return n3.n(_me);
      });
    }, "se_QueueConfigurationList");
    var se_RecordExpiration = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_REe);
      if (input[_Exp] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_ESxp, input[_Exp]).n(_Exp));
      }
      if (input[_Da] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_RED, String(input[_Da])).n(_Da));
      }
      return bn;
    }, "se_RecordExpiration");
    var se_Redirect = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_Red);
      bn.cc(input, _HN);
      bn.cc(input, _HRC);
      bn.cc(input, _Pr2);
      bn.cc(input, _RKPW);
      bn.cc(input, _RKW);
      return bn;
    }, "se_Redirect");
    var se_RedirectAllRequestsTo = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_RART);
      bn.cc(input, _HN);
      bn.cc(input, _Pr2);
      return bn;
    }, "se_RedirectAllRequestsTo");
    var se_ReplicaModifications = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_RM);
      if (input[_S] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_RMS, input[_S]).n(_S));
      }
      return bn;
    }, "se_ReplicaModifications");
    var se_ReplicationConfiguration = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_RCe);
      bn.cc(input, _Ro);
      bn.l(input, "Rules", "Rule", () => se_ReplicationRules(input[_Rul], context));
      return bn;
    }, "se_ReplicationConfiguration");
    var se_ReplicationRule = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_RRe);
      bn.cc(input, _ID_);
      if (input[_Pri] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_Pri, String(input[_Pri])).n(_Pri));
      }
      bn.cc(input, _P2);
      if (input[_F] != null) {
        bn.c(se_ReplicationRuleFilter(input[_F], context).n(_F));
      }
      if (input[_S] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_RRS, input[_S]).n(_S));
      }
      if (input[_SSC] != null) {
        bn.c(se_SourceSelectionCriteria(input[_SSC], context).n(_SSC));
      }
      if (input[_EOR] != null) {
        bn.c(se_ExistingObjectReplication(input[_EOR], context).n(_EOR));
      }
      if (input[_Des] != null) {
        bn.c(se_Destination(input[_Des], context).n(_Des));
      }
      if (input[_DMR] != null) {
        bn.c(se_DeleteMarkerReplication(input[_DMR], context).n(_DMR));
      }
      return bn;
    }, "se_ReplicationRule");
    var se_ReplicationRuleAndOperator = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_RRAO);
      bn.cc(input, _P2);
      bn.l(input, "Tags", "Tag", () => se_TagSet(input[_Tag], context));
      return bn;
    }, "se_ReplicationRuleAndOperator");
    var se_ReplicationRuleFilter = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_RRF);
      bn.cc(input, _P2);
      if (input[_Ta] != null) {
        bn.c(se_Tag2(input[_Ta], context).n(_Ta));
      }
      if (input[_A2] != null) {
        bn.c(se_ReplicationRuleAndOperator(input[_A2], context).n(_A2));
      }
      return bn;
    }, "se_ReplicationRuleFilter");
    var se_ReplicationRules = /* @__PURE__ */ __name2((input, context) => {
      return input.filter((e3) => e3 != null).map((entry) => {
        const n3 = se_ReplicationRule(entry, context);
        return n3.n(_me);
      });
    }, "se_ReplicationRules");
    var se_ReplicationTime = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_RTe);
      if (input[_S] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_RTS, input[_S]).n(_S));
      }
      if (input[_Tim] != null) {
        bn.c(se_ReplicationTimeValue(input[_Tim], context).n(_Tim));
      }
      return bn;
    }, "se_ReplicationTime");
    var se_ReplicationTimeValue = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_RTV);
      if (input[_Mi] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_Mi, String(input[_Mi])).n(_Mi));
      }
      return bn;
    }, "se_ReplicationTimeValue");
    var se_RequestPaymentConfiguration = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_RPC);
      bn.cc(input, _Pa);
      return bn;
    }, "se_RequestPaymentConfiguration");
    var se_RequestProgress = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_RPe);
      if (input[_Ena] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_ERP, String(input[_Ena])).n(_Ena));
      }
      return bn;
    }, "se_RequestProgress");
    var se_RestoreRequest = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_RRes);
      if (input[_Da] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_Da, String(input[_Da])).n(_Da));
      }
      if (input[_GJP] != null) {
        bn.c(se_GlacierJobParameters(input[_GJP], context).n(_GJP));
      }
      if (input[_Ty] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_RRT, input[_Ty]).n(_Ty));
      }
      bn.cc(input, _Ti);
      bn.cc(input, _Desc);
      if (input[_SP] != null) {
        bn.c(se_SelectParameters(input[_SP], context).n(_SP));
      }
      if (input[_OL] != null) {
        bn.c(se_OutputLocation(input[_OL], context).n(_OL));
      }
      return bn;
    }, "se_RestoreRequest");
    var se_RoutingRule = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_RRou);
      if (input[_Con] != null) {
        bn.c(se_Condition(input[_Con], context).n(_Con));
      }
      if (input[_Red] != null) {
        bn.c(se_Redirect(input[_Red], context).n(_Red));
      }
      return bn;
    }, "se_RoutingRule");
    var se_RoutingRules = /* @__PURE__ */ __name2((input, context) => {
      return input.filter((e3) => e3 != null).map((entry) => {
        const n3 = se_RoutingRule(entry, context);
        return n3.n(_RRou);
      });
    }, "se_RoutingRules");
    var se_S3KeyFilter = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_SKF);
      bn.l(input, "FilterRules", "FilterRule", () => se_FilterRuleList(input[_FRi], context));
      return bn;
    }, "se_S3KeyFilter");
    var se_S3Location = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_SL);
      bn.cc(input, _BN);
      if (input[_P2] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_LP, input[_P2]).n(_P2));
      }
      if (input[_En] != null) {
        bn.c(se_Encryption(input[_En], context).n(_En));
      }
      if (input[_CACL] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_OCACL, input[_CACL]).n(_CACL));
      }
      bn.lc(input, "AccessControlList", "AccessControlList", () => se_Grants(input[_ACLc], context));
      if (input[_T2] != null) {
        bn.c(se_Tagging(input[_T2], context).n(_T2));
      }
      bn.lc(input, "UserMetadata", "UserMetadata", () => se_UserMetadata(input[_UM], context));
      bn.cc(input, _SC);
      return bn;
    }, "se_S3Location");
    var se_S3TablesDestination = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_STD);
      if (input[_TBA] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_STBA, input[_TBA]).n(_TBA));
      }
      if (input[_TN] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_STN, input[_TN]).n(_TN));
      }
      return bn;
    }, "se_S3TablesDestination");
    var se_ScanRange = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_SR);
      if (input[_St] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_St, String(input[_St])).n(_St));
      }
      if (input[_End] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_End, String(input[_End])).n(_End));
      }
      return bn;
    }, "se_ScanRange");
    var se_SelectParameters = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_SP);
      if (input[_IS] != null) {
        bn.c(se_InputSerialization(input[_IS], context).n(_IS));
      }
      bn.cc(input, _ETx);
      bn.cc(input, _Ex);
      if (input[_OS] != null) {
        bn.c(se_OutputSerialization(input[_OS], context).n(_OS));
      }
      return bn;
    }, "se_SelectParameters");
    var se_ServerSideEncryptionByDefault = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_SSEBD);
      if (input[_SSEA] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_SSE, input[_SSEA]).n(_SSEA));
      }
      if (input[_KMSMKID] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_SSEKMSKI, input[_KMSMKID]).n(_KMSMKID));
      }
      return bn;
    }, "se_ServerSideEncryptionByDefault");
    var se_ServerSideEncryptionConfiguration = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_SSEC);
      bn.l(input, "Rules", "Rule", () => se_ServerSideEncryptionRules(input[_Rul], context));
      return bn;
    }, "se_ServerSideEncryptionConfiguration");
    var se_ServerSideEncryptionRule = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_SSER);
      if (input[_ASSEBD] != null) {
        bn.c(se_ServerSideEncryptionByDefault(input[_ASSEBD], context).n(_ASSEBD));
      }
      if (input[_BKE] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_BKE, String(input[_BKE])).n(_BKE));
      }
      return bn;
    }, "se_ServerSideEncryptionRule");
    var se_ServerSideEncryptionRules = /* @__PURE__ */ __name2((input, context) => {
      return input.filter((e3) => e3 != null).map((entry) => {
        const n3 = se_ServerSideEncryptionRule(entry, context);
        return n3.n(_me);
      });
    }, "se_ServerSideEncryptionRules");
    var se_SimplePrefix = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_SPi);
      return bn;
    }, "se_SimplePrefix");
    var se_SourceSelectionCriteria = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_SSC);
      if (input[_SKEO] != null) {
        bn.c(se_SseKmsEncryptedObjects(input[_SKEO], context).n(_SKEO));
      }
      if (input[_RM] != null) {
        bn.c(se_ReplicaModifications(input[_RM], context).n(_RM));
      }
      return bn;
    }, "se_SourceSelectionCriteria");
    var se_SSEKMS = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_SK);
      if (input[_KI] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_SSEKMSKI, input[_KI]).n(_KI));
      }
      return bn;
    }, "se_SSEKMS");
    var se_SseKmsEncryptedObjects = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_SKEO);
      if (input[_S] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_SKEOS, input[_S]).n(_S));
      }
      return bn;
    }, "se_SseKmsEncryptedObjects");
    var se_SSES3 = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_SS);
      return bn;
    }, "se_SSES3");
    var se_StorageClassAnalysis = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_SCA);
      if (input[_DE] != null) {
        bn.c(se_StorageClassAnalysisDataExport(input[_DE], context).n(_DE));
      }
      return bn;
    }, "se_StorageClassAnalysis");
    var se_StorageClassAnalysisDataExport = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_SCADE);
      if (input[_OSV] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_SCASV, input[_OSV]).n(_OSV));
      }
      if (input[_Des] != null) {
        bn.c(se_AnalyticsExportDestination(input[_Des], context).n(_Des));
      }
      return bn;
    }, "se_StorageClassAnalysisDataExport");
    var se_Tag2 = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_Ta);
      if (input[_K2] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_OK, input[_K2]).n(_K2));
      }
      bn.cc(input, _Va2);
      return bn;
    }, "se_Tag");
    var se_Tagging = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_T2);
      bn.lc(input, "TagSet", "TagSet", () => se_TagSet(input[_TS], context));
      return bn;
    }, "se_Tagging");
    var se_TagSet = /* @__PURE__ */ __name2((input, context) => {
      return input.filter((e3) => e3 != null).map((entry) => {
        const n3 = se_Tag2(entry, context);
        return n3.n(_Ta);
      });
    }, "se_TagSet");
    var se_TargetGrant = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_TGa);
      if (input[_Gra] != null) {
        const n3 = se_Grantee(input[_Gra], context).n(_Gra);
        n3.a("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance");
        bn.c(n3);
      }
      if (input[_Pe] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_BLP, input[_Pe]).n(_Pe));
      }
      return bn;
    }, "se_TargetGrant");
    var se_TargetGrants = /* @__PURE__ */ __name2((input, context) => {
      return input.filter((e3) => e3 != null).map((entry) => {
        const n3 = se_TargetGrant(entry, context);
        return n3.n(_G);
      });
    }, "se_TargetGrants");
    var se_TargetObjectKeyFormat = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_TOKF);
      if (input[_SPi] != null) {
        bn.c(se_SimplePrefix(input[_SPi], context).n(_SPi));
      }
      if (input[_PP] != null) {
        bn.c(se_PartitionedPrefix(input[_PP], context).n(_PP));
      }
      return bn;
    }, "se_TargetObjectKeyFormat");
    var se_Tiering = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_Tier);
      if (input[_Da] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_ITD, String(input[_Da])).n(_Da));
      }
      if (input[_AT] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_ITAT, input[_AT]).n(_AT));
      }
      return bn;
    }, "se_Tiering");
    var se_TieringList = /* @__PURE__ */ __name2((input, context) => {
      return input.filter((e3) => e3 != null).map((entry) => {
        const n3 = se_Tiering(entry, context);
        return n3.n(_me);
      });
    }, "se_TieringList");
    var se_TopicConfiguration = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_TCo);
      if (input[_I] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_NI, input[_I]).n(_I));
      }
      if (input[_TA] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_TA, input[_TA]).n(_Top));
      }
      bn.l(input, "Events", "Event", () => se_EventList(input[_Eve], context));
      if (input[_F] != null) {
        bn.c(se_NotificationConfigurationFilter(input[_F], context).n(_F));
      }
      return bn;
    }, "se_TopicConfiguration");
    var se_TopicConfigurationList = /* @__PURE__ */ __name2((input, context) => {
      return input.filter((e3) => e3 != null).map((entry) => {
        const n3 = se_TopicConfiguration(entry, context);
        return n3.n(_me);
      });
    }, "se_TopicConfigurationList");
    var se_Transition = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_Tra);
      if (input[_Dat] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_Dat, (0, import_smithy_client28.serializeDateTime)(input[_Dat]).toString()).n(_Dat));
      }
      if (input[_Da] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_Da, String(input[_Da])).n(_Da));
      }
      if (input[_SC] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_TSC, input[_SC]).n(_SC));
      }
      return bn;
    }, "se_Transition");
    var se_TransitionList = /* @__PURE__ */ __name2((input, context) => {
      return input.filter((e3) => e3 != null).map((entry) => {
        const n3 = se_Transition(entry, context);
        return n3.n(_me);
      });
    }, "se_TransitionList");
    var se_UserMetadata = /* @__PURE__ */ __name2((input, context) => {
      return input.filter((e3) => e3 != null).map((entry) => {
        const n3 = se_MetadataEntry(entry, context);
        return n3.n(_ME);
      });
    }, "se_UserMetadata");
    var se_VersioningConfiguration = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_VCe);
      if (input[_MFAD] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_MFAD, input[_MFAD]).n(_MDf));
      }
      if (input[_S] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_BVS, input[_S]).n(_S));
      }
      return bn;
    }, "se_VersioningConfiguration");
    var se_WebsiteConfiguration = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_WC);
      if (input[_ED] != null) {
        bn.c(se_ErrorDocument(input[_ED], context).n(_ED));
      }
      if (input[_ID] != null) {
        bn.c(se_IndexDocument(input[_ID], context).n(_ID));
      }
      if (input[_RART] != null) {
        bn.c(se_RedirectAllRequestsTo(input[_RART], context).n(_RART));
      }
      bn.lc(input, "RoutingRules", "RoutingRules", () => se_RoutingRules(input[_RRo], context));
      return bn;
    }, "se_WebsiteConfiguration");
    var de_AbortIncompleteMultipartUpload = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_DAI] != null) {
        contents[_DAI] = (0, import_smithy_client28.strictParseInt32)(output[_DAI]);
      }
      return contents;
    }, "de_AbortIncompleteMultipartUpload");
    var de_AccessControlTranslation = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_O] != null) {
        contents[_O] = (0, import_smithy_client28.expectString)(output[_O]);
      }
      return contents;
    }, "de_AccessControlTranslation");
    var de_AllowedHeaders = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_AllowedHeaders");
    var de_AllowedMethods = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_AllowedMethods");
    var de_AllowedOrigins = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_AllowedOrigins");
    var de_AnalyticsAndOperator = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_P2] != null) {
        contents[_P2] = (0, import_smithy_client28.expectString)(output[_P2]);
      }
      if (output.Tag === "") {
        contents[_Tag] = [];
      } else if (output[_Ta] != null) {
        contents[_Tag] = de_TagSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_Ta]), context);
      }
      return contents;
    }, "de_AnalyticsAndOperator");
    var de_AnalyticsConfiguration = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_I] != null) {
        contents[_I] = (0, import_smithy_client28.expectString)(output[_I]);
      }
      if (output.Filter === "") {
      } else if (output[_F] != null) {
        contents[_F] = de_AnalyticsFilter((0, import_smithy_client28.expectUnion)(output[_F]), context);
      }
      if (output[_SCA] != null) {
        contents[_SCA] = de_StorageClassAnalysis(output[_SCA], context);
      }
      return contents;
    }, "de_AnalyticsConfiguration");
    var de_AnalyticsConfigurationList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_AnalyticsConfiguration(entry, context);
      });
    }, "de_AnalyticsConfigurationList");
    var de_AnalyticsExportDestination = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_SBD] != null) {
        contents[_SBD] = de_AnalyticsS3BucketDestination(output[_SBD], context);
      }
      return contents;
    }, "de_AnalyticsExportDestination");
    var de_AnalyticsFilter = /* @__PURE__ */ __name2((output, context) => {
      if (output[_P2] != null) {
        return {
          Prefix: (0, import_smithy_client28.expectString)(output[_P2])
        };
      }
      if (output[_Ta] != null) {
        return {
          Tag: de_Tag(output[_Ta], context)
        };
      }
      if (output[_A2] != null) {
        return {
          And: de_AnalyticsAndOperator(output[_A2], context)
        };
      }
      return { $unknown: Object.entries(output)[0] };
    }, "de_AnalyticsFilter");
    var de_AnalyticsS3BucketDestination = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Fo] != null) {
        contents[_Fo] = (0, import_smithy_client28.expectString)(output[_Fo]);
      }
      if (output[_BAI] != null) {
        contents[_BAI] = (0, import_smithy_client28.expectString)(output[_BAI]);
      }
      if (output[_B] != null) {
        contents[_B] = (0, import_smithy_client28.expectString)(output[_B]);
      }
      if (output[_P2] != null) {
        contents[_P2] = (0, import_smithy_client28.expectString)(output[_P2]);
      }
      return contents;
    }, "de_AnalyticsS3BucketDestination");
    var de_Bucket = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_N] != null) {
        contents[_N] = (0, import_smithy_client28.expectString)(output[_N]);
      }
      if (output[_CDr] != null) {
        contents[_CDr] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_CDr]));
      }
      if (output[_BR] != null) {
        contents[_BR] = (0, import_smithy_client28.expectString)(output[_BR]);
      }
      if (output[_BA] != null) {
        contents[_BA] = (0, import_smithy_client28.expectString)(output[_BA]);
      }
      return contents;
    }, "de_Bucket");
    var de_Buckets = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Bucket(entry, context);
      });
    }, "de_Buckets");
    var de_Checksum = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_CCRC] != null) {
        contents[_CCRC] = (0, import_smithy_client28.expectString)(output[_CCRC]);
      }
      if (output[_CCRCC] != null) {
        contents[_CCRCC] = (0, import_smithy_client28.expectString)(output[_CCRCC]);
      }
      if (output[_CCRCNVME] != null) {
        contents[_CCRCNVME] = (0, import_smithy_client28.expectString)(output[_CCRCNVME]);
      }
      if (output[_CSHA] != null) {
        contents[_CSHA] = (0, import_smithy_client28.expectString)(output[_CSHA]);
      }
      if (output[_CSHAh] != null) {
        contents[_CSHAh] = (0, import_smithy_client28.expectString)(output[_CSHAh]);
      }
      if (output[_CT] != null) {
        contents[_CT] = (0, import_smithy_client28.expectString)(output[_CT]);
      }
      return contents;
    }, "de_Checksum");
    var de_ChecksumAlgorithmList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_ChecksumAlgorithmList");
    var de_CommonPrefix = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_P2] != null) {
        contents[_P2] = (0, import_smithy_client28.expectString)(output[_P2]);
      }
      return contents;
    }, "de_CommonPrefix");
    var de_CommonPrefixList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_CommonPrefix(entry, context);
      });
    }, "de_CommonPrefixList");
    var de_Condition = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_HECRE] != null) {
        contents[_HECRE] = (0, import_smithy_client28.expectString)(output[_HECRE]);
      }
      if (output[_KPE] != null) {
        contents[_KPE] = (0, import_smithy_client28.expectString)(output[_KPE]);
      }
      return contents;
    }, "de_Condition");
    var de_ContinuationEvent = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      return contents;
    }, "de_ContinuationEvent");
    var de_CopyObjectResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ETa] != null) {
        contents[_ETa] = (0, import_smithy_client28.expectString)(output[_ETa]);
      }
      if (output[_LM] != null) {
        contents[_LM] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_LM]));
      }
      if (output[_CT] != null) {
        contents[_CT] = (0, import_smithy_client28.expectString)(output[_CT]);
      }
      if (output[_CCRC] != null) {
        contents[_CCRC] = (0, import_smithy_client28.expectString)(output[_CCRC]);
      }
      if (output[_CCRCC] != null) {
        contents[_CCRCC] = (0, import_smithy_client28.expectString)(output[_CCRCC]);
      }
      if (output[_CCRCNVME] != null) {
        contents[_CCRCNVME] = (0, import_smithy_client28.expectString)(output[_CCRCNVME]);
      }
      if (output[_CSHA] != null) {
        contents[_CSHA] = (0, import_smithy_client28.expectString)(output[_CSHA]);
      }
      if (output[_CSHAh] != null) {
        contents[_CSHAh] = (0, import_smithy_client28.expectString)(output[_CSHAh]);
      }
      return contents;
    }, "de_CopyObjectResult");
    var de_CopyPartResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ETa] != null) {
        contents[_ETa] = (0, import_smithy_client28.expectString)(output[_ETa]);
      }
      if (output[_LM] != null) {
        contents[_LM] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_LM]));
      }
      if (output[_CCRC] != null) {
        contents[_CCRC] = (0, import_smithy_client28.expectString)(output[_CCRC]);
      }
      if (output[_CCRCC] != null) {
        contents[_CCRCC] = (0, import_smithy_client28.expectString)(output[_CCRCC]);
      }
      if (output[_CCRCNVME] != null) {
        contents[_CCRCNVME] = (0, import_smithy_client28.expectString)(output[_CCRCNVME]);
      }
      if (output[_CSHA] != null) {
        contents[_CSHA] = (0, import_smithy_client28.expectString)(output[_CSHA]);
      }
      if (output[_CSHAh] != null) {
        contents[_CSHAh] = (0, import_smithy_client28.expectString)(output[_CSHAh]);
      }
      return contents;
    }, "de_CopyPartResult");
    var de_CORSRule = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ID_] != null) {
        contents[_ID_] = (0, import_smithy_client28.expectString)(output[_ID_]);
      }
      if (output.AllowedHeader === "") {
        contents[_AHl] = [];
      } else if (output[_AH] != null) {
        contents[_AHl] = de_AllowedHeaders((0, import_smithy_client28.getArrayIfSingleItem)(output[_AH]), context);
      }
      if (output.AllowedMethod === "") {
        contents[_AMl] = [];
      } else if (output[_AM] != null) {
        contents[_AMl] = de_AllowedMethods((0, import_smithy_client28.getArrayIfSingleItem)(output[_AM]), context);
      }
      if (output.AllowedOrigin === "") {
        contents[_AOl] = [];
      } else if (output[_AO] != null) {
        contents[_AOl] = de_AllowedOrigins((0, import_smithy_client28.getArrayIfSingleItem)(output[_AO]), context);
      }
      if (output.ExposeHeader === "") {
        contents[_EH] = [];
      } else if (output[_EHx] != null) {
        contents[_EH] = de_ExposeHeaders((0, import_smithy_client28.getArrayIfSingleItem)(output[_EHx]), context);
      }
      if (output[_MAS] != null) {
        contents[_MAS] = (0, import_smithy_client28.strictParseInt32)(output[_MAS]);
      }
      return contents;
    }, "de_CORSRule");
    var de_CORSRules = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_CORSRule(entry, context);
      });
    }, "de_CORSRules");
    var de_DefaultRetention = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Mo] != null) {
        contents[_Mo] = (0, import_smithy_client28.expectString)(output[_Mo]);
      }
      if (output[_Da] != null) {
        contents[_Da] = (0, import_smithy_client28.strictParseInt32)(output[_Da]);
      }
      if (output[_Y] != null) {
        contents[_Y] = (0, import_smithy_client28.strictParseInt32)(output[_Y]);
      }
      return contents;
    }, "de_DefaultRetention");
    var de_DeletedObject = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_K2] != null) {
        contents[_K2] = (0, import_smithy_client28.expectString)(output[_K2]);
      }
      if (output[_VI] != null) {
        contents[_VI] = (0, import_smithy_client28.expectString)(output[_VI]);
      }
      if (output[_DM] != null) {
        contents[_DM] = (0, import_smithy_client28.parseBoolean)(output[_DM]);
      }
      if (output[_DMVI] != null) {
        contents[_DMVI] = (0, import_smithy_client28.expectString)(output[_DMVI]);
      }
      return contents;
    }, "de_DeletedObject");
    var de_DeletedObjects = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_DeletedObject(entry, context);
      });
    }, "de_DeletedObjects");
    var de_DeleteMarkerEntry = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_O] != null) {
        contents[_O] = de_Owner(output[_O], context);
      }
      if (output[_K2] != null) {
        contents[_K2] = (0, import_smithy_client28.expectString)(output[_K2]);
      }
      if (output[_VI] != null) {
        contents[_VI] = (0, import_smithy_client28.expectString)(output[_VI]);
      }
      if (output[_IL] != null) {
        contents[_IL] = (0, import_smithy_client28.parseBoolean)(output[_IL]);
      }
      if (output[_LM] != null) {
        contents[_LM] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_LM]));
      }
      return contents;
    }, "de_DeleteMarkerEntry");
    var de_DeleteMarkerReplication = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_S] != null) {
        contents[_S] = (0, import_smithy_client28.expectString)(output[_S]);
      }
      return contents;
    }, "de_DeleteMarkerReplication");
    var de_DeleteMarkers = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_DeleteMarkerEntry(entry, context);
      });
    }, "de_DeleteMarkers");
    var de_Destination = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_B] != null) {
        contents[_B] = (0, import_smithy_client28.expectString)(output[_B]);
      }
      if (output[_Ac] != null) {
        contents[_Ac] = (0, import_smithy_client28.expectString)(output[_Ac]);
      }
      if (output[_SC] != null) {
        contents[_SC] = (0, import_smithy_client28.expectString)(output[_SC]);
      }
      if (output[_ACT] != null) {
        contents[_ACT] = de_AccessControlTranslation(output[_ACT], context);
      }
      if (output[_ECn] != null) {
        contents[_ECn] = de_EncryptionConfiguration(output[_ECn], context);
      }
      if (output[_RTe] != null) {
        contents[_RTe] = de_ReplicationTime(output[_RTe], context);
      }
      if (output[_Me] != null) {
        contents[_Me] = de_Metrics(output[_Me], context);
      }
      return contents;
    }, "de_Destination");
    var de_DestinationResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_TBT] != null) {
        contents[_TBT] = (0, import_smithy_client28.expectString)(output[_TBT]);
      }
      if (output[_TBA] != null) {
        contents[_TBA] = (0, import_smithy_client28.expectString)(output[_TBA]);
      }
      if (output[_TNa] != null) {
        contents[_TNa] = (0, import_smithy_client28.expectString)(output[_TNa]);
      }
      return contents;
    }, "de_DestinationResult");
    var de_EncryptionConfiguration = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_RKKID] != null) {
        contents[_RKKID] = (0, import_smithy_client28.expectString)(output[_RKKID]);
      }
      return contents;
    }, "de_EncryptionConfiguration");
    var de_EndEvent = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      return contents;
    }, "de_EndEvent");
    var de__Error = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_K2] != null) {
        contents[_K2] = (0, import_smithy_client28.expectString)(output[_K2]);
      }
      if (output[_VI] != null) {
        contents[_VI] = (0, import_smithy_client28.expectString)(output[_VI]);
      }
      if (output[_Cod] != null) {
        contents[_Cod] = (0, import_smithy_client28.expectString)(output[_Cod]);
      }
      if (output[_Mes] != null) {
        contents[_Mes] = (0, import_smithy_client28.expectString)(output[_Mes]);
      }
      return contents;
    }, "de__Error");
    var de_ErrorDetails = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_EC] != null) {
        contents[_EC] = (0, import_smithy_client28.expectString)(output[_EC]);
      }
      if (output[_EM] != null) {
        contents[_EM] = (0, import_smithy_client28.expectString)(output[_EM]);
      }
      return contents;
    }, "de_ErrorDetails");
    var de_ErrorDocument = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_K2] != null) {
        contents[_K2] = (0, import_smithy_client28.expectString)(output[_K2]);
      }
      return contents;
    }, "de_ErrorDocument");
    var de_Errors = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de__Error(entry, context);
      });
    }, "de_Errors");
    var de_EventBridgeConfiguration = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      return contents;
    }, "de_EventBridgeConfiguration");
    var de_EventList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_EventList");
    var de_ExistingObjectReplication = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_S] != null) {
        contents[_S] = (0, import_smithy_client28.expectString)(output[_S]);
      }
      return contents;
    }, "de_ExistingObjectReplication");
    var de_ExposeHeaders = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_ExposeHeaders");
    var de_FilterRule = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_N] != null) {
        contents[_N] = (0, import_smithy_client28.expectString)(output[_N]);
      }
      if (output[_Va2] != null) {
        contents[_Va2] = (0, import_smithy_client28.expectString)(output[_Va2]);
      }
      return contents;
    }, "de_FilterRule");
    var de_FilterRuleList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_FilterRule(entry, context);
      });
    }, "de_FilterRuleList");
    var de_GetBucketMetadataConfigurationResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_MCR] != null) {
        contents[_MCR] = de_MetadataConfigurationResult(output[_MCR], context);
      }
      return contents;
    }, "de_GetBucketMetadataConfigurationResult");
    var de_GetBucketMetadataTableConfigurationResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_MTCR] != null) {
        contents[_MTCR] = de_MetadataTableConfigurationResult(output[_MTCR], context);
      }
      if (output[_S] != null) {
        contents[_S] = (0, import_smithy_client28.expectString)(output[_S]);
      }
      if (output[_Er] != null) {
        contents[_Er] = de_ErrorDetails(output[_Er], context);
      }
      return contents;
    }, "de_GetBucketMetadataTableConfigurationResult");
    var de_GetObjectAttributesParts = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_PC2] != null) {
        contents[_TPC] = (0, import_smithy_client28.strictParseInt32)(output[_PC2]);
      }
      if (output[_PNM] != null) {
        contents[_PNM] = (0, import_smithy_client28.expectString)(output[_PNM]);
      }
      if (output[_NPNM] != null) {
        contents[_NPNM] = (0, import_smithy_client28.expectString)(output[_NPNM]);
      }
      if (output[_MP] != null) {
        contents[_MP] = (0, import_smithy_client28.strictParseInt32)(output[_MP]);
      }
      if (output[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(output[_IT]);
      }
      if (output.Part === "") {
        contents[_Part] = [];
      } else if (output[_Par] != null) {
        contents[_Part] = de_PartsList((0, import_smithy_client28.getArrayIfSingleItem)(output[_Par]), context);
      }
      return contents;
    }, "de_GetObjectAttributesParts");
    var de_Grant = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Gra] != null) {
        contents[_Gra] = de_Grantee(output[_Gra], context);
      }
      if (output[_Pe] != null) {
        contents[_Pe] = (0, import_smithy_client28.expectString)(output[_Pe]);
      }
      return contents;
    }, "de_Grant");
    var de_Grantee = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_DN] != null) {
        contents[_DN] = (0, import_smithy_client28.expectString)(output[_DN]);
      }
      if (output[_EA] != null) {
        contents[_EA] = (0, import_smithy_client28.expectString)(output[_EA]);
      }
      if (output[_ID_] != null) {
        contents[_ID_] = (0, import_smithy_client28.expectString)(output[_ID_]);
      }
      if (output[_URI] != null) {
        contents[_URI] = (0, import_smithy_client28.expectString)(output[_URI]);
      }
      if (output[_x] != null) {
        contents[_Ty] = (0, import_smithy_client28.expectString)(output[_x]);
      }
      return contents;
    }, "de_Grantee");
    var de_Grants = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Grant(entry, context);
      });
    }, "de_Grants");
    var de_IndexDocument = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Su] != null) {
        contents[_Su] = (0, import_smithy_client28.expectString)(output[_Su]);
      }
      return contents;
    }, "de_IndexDocument");
    var de_Initiator = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ID_] != null) {
        contents[_ID_] = (0, import_smithy_client28.expectString)(output[_ID_]);
      }
      if (output[_DN] != null) {
        contents[_DN] = (0, import_smithy_client28.expectString)(output[_DN]);
      }
      return contents;
    }, "de_Initiator");
    var de_IntelligentTieringAndOperator = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_P2] != null) {
        contents[_P2] = (0, import_smithy_client28.expectString)(output[_P2]);
      }
      if (output.Tag === "") {
        contents[_Tag] = [];
      } else if (output[_Ta] != null) {
        contents[_Tag] = de_TagSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_Ta]), context);
      }
      return contents;
    }, "de_IntelligentTieringAndOperator");
    var de_IntelligentTieringConfiguration = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_I] != null) {
        contents[_I] = (0, import_smithy_client28.expectString)(output[_I]);
      }
      if (output[_F] != null) {
        contents[_F] = de_IntelligentTieringFilter(output[_F], context);
      }
      if (output[_S] != null) {
        contents[_S] = (0, import_smithy_client28.expectString)(output[_S]);
      }
      if (output.Tiering === "") {
        contents[_Tie] = [];
      } else if (output[_Tier] != null) {
        contents[_Tie] = de_TieringList((0, import_smithy_client28.getArrayIfSingleItem)(output[_Tier]), context);
      }
      return contents;
    }, "de_IntelligentTieringConfiguration");
    var de_IntelligentTieringConfigurationList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_IntelligentTieringConfiguration(entry, context);
      });
    }, "de_IntelligentTieringConfigurationList");
    var de_IntelligentTieringFilter = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_P2] != null) {
        contents[_P2] = (0, import_smithy_client28.expectString)(output[_P2]);
      }
      if (output[_Ta] != null) {
        contents[_Ta] = de_Tag(output[_Ta], context);
      }
      if (output[_A2] != null) {
        contents[_A2] = de_IntelligentTieringAndOperator(output[_A2], context);
      }
      return contents;
    }, "de_IntelligentTieringFilter");
    var de_InventoryConfiguration = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Des] != null) {
        contents[_Des] = de_InventoryDestination(output[_Des], context);
      }
      if (output[_IE] != null) {
        contents[_IE] = (0, import_smithy_client28.parseBoolean)(output[_IE]);
      }
      if (output[_F] != null) {
        contents[_F] = de_InventoryFilter(output[_F], context);
      }
      if (output[_I] != null) {
        contents[_I] = (0, import_smithy_client28.expectString)(output[_I]);
      }
      if (output[_IOV] != null) {
        contents[_IOV] = (0, import_smithy_client28.expectString)(output[_IOV]);
      }
      if (output.OptionalFields === "") {
        contents[_OF] = [];
      } else if (output[_OF] != null && output[_OF][_Fi] != null) {
        contents[_OF] = de_InventoryOptionalFields((0, import_smithy_client28.getArrayIfSingleItem)(output[_OF][_Fi]), context);
      }
      if (output[_Sc] != null) {
        contents[_Sc] = de_InventorySchedule(output[_Sc], context);
      }
      return contents;
    }, "de_InventoryConfiguration");
    var de_InventoryConfigurationList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_InventoryConfiguration(entry, context);
      });
    }, "de_InventoryConfigurationList");
    var de_InventoryDestination = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_SBD] != null) {
        contents[_SBD] = de_InventoryS3BucketDestination(output[_SBD], context);
      }
      return contents;
    }, "de_InventoryDestination");
    var de_InventoryEncryption = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_SS] != null) {
        contents[_SSES] = de_SSES3(output[_SS], context);
      }
      if (output[_SK] != null) {
        contents[_SSEKMS] = de_SSEKMS(output[_SK], context);
      }
      return contents;
    }, "de_InventoryEncryption");
    var de_InventoryFilter = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_P2] != null) {
        contents[_P2] = (0, import_smithy_client28.expectString)(output[_P2]);
      }
      return contents;
    }, "de_InventoryFilter");
    var de_InventoryOptionalFields = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_InventoryOptionalFields");
    var de_InventoryS3BucketDestination = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_AIc] != null) {
        contents[_AIc] = (0, import_smithy_client28.expectString)(output[_AIc]);
      }
      if (output[_B] != null) {
        contents[_B] = (0, import_smithy_client28.expectString)(output[_B]);
      }
      if (output[_Fo] != null) {
        contents[_Fo] = (0, import_smithy_client28.expectString)(output[_Fo]);
      }
      if (output[_P2] != null) {
        contents[_P2] = (0, import_smithy_client28.expectString)(output[_P2]);
      }
      if (output[_En] != null) {
        contents[_En] = de_InventoryEncryption(output[_En], context);
      }
      return contents;
    }, "de_InventoryS3BucketDestination");
    var de_InventorySchedule = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Fr] != null) {
        contents[_Fr] = (0, import_smithy_client28.expectString)(output[_Fr]);
      }
      return contents;
    }, "de_InventorySchedule");
    var de_InventoryTableConfigurationResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_CSo] != null) {
        contents[_CSo] = (0, import_smithy_client28.expectString)(output[_CSo]);
      }
      if (output[_TSa] != null) {
        contents[_TSa] = (0, import_smithy_client28.expectString)(output[_TSa]);
      }
      if (output[_Er] != null) {
        contents[_Er] = de_ErrorDetails(output[_Er], context);
      }
      if (output[_TN] != null) {
        contents[_TN] = (0, import_smithy_client28.expectString)(output[_TN]);
      }
      if (output[_TAa] != null) {
        contents[_TAa] = (0, import_smithy_client28.expectString)(output[_TAa]);
      }
      return contents;
    }, "de_InventoryTableConfigurationResult");
    var de_JournalTableConfigurationResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_TSa] != null) {
        contents[_TSa] = (0, import_smithy_client28.expectString)(output[_TSa]);
      }
      if (output[_Er] != null) {
        contents[_Er] = de_ErrorDetails(output[_Er], context);
      }
      if (output[_TN] != null) {
        contents[_TN] = (0, import_smithy_client28.expectString)(output[_TN]);
      }
      if (output[_TAa] != null) {
        contents[_TAa] = (0, import_smithy_client28.expectString)(output[_TAa]);
      }
      if (output[_REe] != null) {
        contents[_REe] = de_RecordExpiration(output[_REe], context);
      }
      return contents;
    }, "de_JournalTableConfigurationResult");
    var de_LambdaFunctionConfiguration = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_I] != null) {
        contents[_I] = (0, import_smithy_client28.expectString)(output[_I]);
      }
      if (output[_CF] != null) {
        contents[_LFA] = (0, import_smithy_client28.expectString)(output[_CF]);
      }
      if (output.Event === "") {
        contents[_Eve] = [];
      } else if (output[_Ev] != null) {
        contents[_Eve] = de_EventList((0, import_smithy_client28.getArrayIfSingleItem)(output[_Ev]), context);
      }
      if (output[_F] != null) {
        contents[_F] = de_NotificationConfigurationFilter(output[_F], context);
      }
      return contents;
    }, "de_LambdaFunctionConfiguration");
    var de_LambdaFunctionConfigurationList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_LambdaFunctionConfiguration(entry, context);
      });
    }, "de_LambdaFunctionConfigurationList");
    var de_LifecycleExpiration = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Dat] != null) {
        contents[_Dat] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_Dat]));
      }
      if (output[_Da] != null) {
        contents[_Da] = (0, import_smithy_client28.strictParseInt32)(output[_Da]);
      }
      if (output[_EODM] != null) {
        contents[_EODM] = (0, import_smithy_client28.parseBoolean)(output[_EODM]);
      }
      return contents;
    }, "de_LifecycleExpiration");
    var de_LifecycleRule = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Exp] != null) {
        contents[_Exp] = de_LifecycleExpiration(output[_Exp], context);
      }
      if (output[_ID_] != null) {
        contents[_ID_] = (0, import_smithy_client28.expectString)(output[_ID_]);
      }
      if (output[_P2] != null) {
        contents[_P2] = (0, import_smithy_client28.expectString)(output[_P2]);
      }
      if (output[_F] != null) {
        contents[_F] = de_LifecycleRuleFilter(output[_F], context);
      }
      if (output[_S] != null) {
        contents[_S] = (0, import_smithy_client28.expectString)(output[_S]);
      }
      if (output.Transition === "") {
        contents[_Tr] = [];
      } else if (output[_Tra] != null) {
        contents[_Tr] = de_TransitionList((0, import_smithy_client28.getArrayIfSingleItem)(output[_Tra]), context);
      }
      if (output.NoncurrentVersionTransition === "") {
        contents[_NVT] = [];
      } else if (output[_NVTo] != null) {
        contents[_NVT] = de_NoncurrentVersionTransitionList((0, import_smithy_client28.getArrayIfSingleItem)(output[_NVTo]), context);
      }
      if (output[_NVE] != null) {
        contents[_NVE] = de_NoncurrentVersionExpiration(output[_NVE], context);
      }
      if (output[_AIMU] != null) {
        contents[_AIMU] = de_AbortIncompleteMultipartUpload(output[_AIMU], context);
      }
      return contents;
    }, "de_LifecycleRule");
    var de_LifecycleRuleAndOperator = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_P2] != null) {
        contents[_P2] = (0, import_smithy_client28.expectString)(output[_P2]);
      }
      if (output.Tag === "") {
        contents[_Tag] = [];
      } else if (output[_Ta] != null) {
        contents[_Tag] = de_TagSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_Ta]), context);
      }
      if (output[_OSGT] != null) {
        contents[_OSGT] = (0, import_smithy_client28.strictParseLong)(output[_OSGT]);
      }
      if (output[_OSLT] != null) {
        contents[_OSLT] = (0, import_smithy_client28.strictParseLong)(output[_OSLT]);
      }
      return contents;
    }, "de_LifecycleRuleAndOperator");
    var de_LifecycleRuleFilter = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_P2] != null) {
        contents[_P2] = (0, import_smithy_client28.expectString)(output[_P2]);
      }
      if (output[_Ta] != null) {
        contents[_Ta] = de_Tag(output[_Ta], context);
      }
      if (output[_OSGT] != null) {
        contents[_OSGT] = (0, import_smithy_client28.strictParseLong)(output[_OSGT]);
      }
      if (output[_OSLT] != null) {
        contents[_OSLT] = (0, import_smithy_client28.strictParseLong)(output[_OSLT]);
      }
      if (output[_A2] != null) {
        contents[_A2] = de_LifecycleRuleAndOperator(output[_A2], context);
      }
      return contents;
    }, "de_LifecycleRuleFilter");
    var de_LifecycleRules = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_LifecycleRule(entry, context);
      });
    }, "de_LifecycleRules");
    var de_LoggingEnabled = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_TB] != null) {
        contents[_TB] = (0, import_smithy_client28.expectString)(output[_TB]);
      }
      if (output.TargetGrants === "") {
        contents[_TG] = [];
      } else if (output[_TG] != null && output[_TG][_G] != null) {
        contents[_TG] = de_TargetGrants((0, import_smithy_client28.getArrayIfSingleItem)(output[_TG][_G]), context);
      }
      if (output[_TP] != null) {
        contents[_TP] = (0, import_smithy_client28.expectString)(output[_TP]);
      }
      if (output[_TOKF] != null) {
        contents[_TOKF] = de_TargetObjectKeyFormat(output[_TOKF], context);
      }
      return contents;
    }, "de_LoggingEnabled");
    var de_MetadataConfigurationResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_DRes] != null) {
        contents[_DRes] = de_DestinationResult(output[_DRes], context);
      }
      if (output[_JTCR] != null) {
        contents[_JTCR] = de_JournalTableConfigurationResult(output[_JTCR], context);
      }
      if (output[_ITCR] != null) {
        contents[_ITCR] = de_InventoryTableConfigurationResult(output[_ITCR], context);
      }
      return contents;
    }, "de_MetadataConfigurationResult");
    var de_MetadataTableConfigurationResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_STDR] != null) {
        contents[_STDR] = de_S3TablesDestinationResult(output[_STDR], context);
      }
      return contents;
    }, "de_MetadataTableConfigurationResult");
    var de_Metrics = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_S] != null) {
        contents[_S] = (0, import_smithy_client28.expectString)(output[_S]);
      }
      if (output[_ETv] != null) {
        contents[_ETv] = de_ReplicationTimeValue(output[_ETv], context);
      }
      return contents;
    }, "de_Metrics");
    var de_MetricsAndOperator = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_P2] != null) {
        contents[_P2] = (0, import_smithy_client28.expectString)(output[_P2]);
      }
      if (output.Tag === "") {
        contents[_Tag] = [];
      } else if (output[_Ta] != null) {
        contents[_Tag] = de_TagSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_Ta]), context);
      }
      if (output[_APAc] != null) {
        contents[_APAc] = (0, import_smithy_client28.expectString)(output[_APAc]);
      }
      return contents;
    }, "de_MetricsAndOperator");
    var de_MetricsConfiguration = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_I] != null) {
        contents[_I] = (0, import_smithy_client28.expectString)(output[_I]);
      }
      if (output.Filter === "") {
      } else if (output[_F] != null) {
        contents[_F] = de_MetricsFilter((0, import_smithy_client28.expectUnion)(output[_F]), context);
      }
      return contents;
    }, "de_MetricsConfiguration");
    var de_MetricsConfigurationList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_MetricsConfiguration(entry, context);
      });
    }, "de_MetricsConfigurationList");
    var de_MetricsFilter = /* @__PURE__ */ __name2((output, context) => {
      if (output[_P2] != null) {
        return {
          Prefix: (0, import_smithy_client28.expectString)(output[_P2])
        };
      }
      if (output[_Ta] != null) {
        return {
          Tag: de_Tag(output[_Ta], context)
        };
      }
      if (output[_APAc] != null) {
        return {
          AccessPointArn: (0, import_smithy_client28.expectString)(output[_APAc])
        };
      }
      if (output[_A2] != null) {
        return {
          And: de_MetricsAndOperator(output[_A2], context)
        };
      }
      return { $unknown: Object.entries(output)[0] };
    }, "de_MetricsFilter");
    var de_MultipartUpload = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_UI] != null) {
        contents[_UI] = (0, import_smithy_client28.expectString)(output[_UI]);
      }
      if (output[_K2] != null) {
        contents[_K2] = (0, import_smithy_client28.expectString)(output[_K2]);
      }
      if (output[_Ini] != null) {
        contents[_Ini] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_Ini]));
      }
      if (output[_SC] != null) {
        contents[_SC] = (0, import_smithy_client28.expectString)(output[_SC]);
      }
      if (output[_O] != null) {
        contents[_O] = de_Owner(output[_O], context);
      }
      if (output[_In] != null) {
        contents[_In] = de_Initiator(output[_In], context);
      }
      if (output[_CA2] != null) {
        contents[_CA2] = (0, import_smithy_client28.expectString)(output[_CA2]);
      }
      if (output[_CT] != null) {
        contents[_CT] = (0, import_smithy_client28.expectString)(output[_CT]);
      }
      return contents;
    }, "de_MultipartUpload");
    var de_MultipartUploadList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_MultipartUpload(entry, context);
      });
    }, "de_MultipartUploadList");
    var de_NoncurrentVersionExpiration = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ND] != null) {
        contents[_ND] = (0, import_smithy_client28.strictParseInt32)(output[_ND]);
      }
      if (output[_NNV] != null) {
        contents[_NNV] = (0, import_smithy_client28.strictParseInt32)(output[_NNV]);
      }
      return contents;
    }, "de_NoncurrentVersionExpiration");
    var de_NoncurrentVersionTransition = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ND] != null) {
        contents[_ND] = (0, import_smithy_client28.strictParseInt32)(output[_ND]);
      }
      if (output[_SC] != null) {
        contents[_SC] = (0, import_smithy_client28.expectString)(output[_SC]);
      }
      if (output[_NNV] != null) {
        contents[_NNV] = (0, import_smithy_client28.strictParseInt32)(output[_NNV]);
      }
      return contents;
    }, "de_NoncurrentVersionTransition");
    var de_NoncurrentVersionTransitionList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_NoncurrentVersionTransition(entry, context);
      });
    }, "de_NoncurrentVersionTransitionList");
    var de_NotificationConfigurationFilter = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_SKe] != null) {
        contents[_K2] = de_S3KeyFilter(output[_SKe], context);
      }
      return contents;
    }, "de_NotificationConfigurationFilter");
    var de__Object = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_K2] != null) {
        contents[_K2] = (0, import_smithy_client28.expectString)(output[_K2]);
      }
      if (output[_LM] != null) {
        contents[_LM] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_LM]));
      }
      if (output[_ETa] != null) {
        contents[_ETa] = (0, import_smithy_client28.expectString)(output[_ETa]);
      }
      if (output.ChecksumAlgorithm === "") {
        contents[_CA2] = [];
      } else if (output[_CA2] != null) {
        contents[_CA2] = de_ChecksumAlgorithmList((0, import_smithy_client28.getArrayIfSingleItem)(output[_CA2]), context);
      }
      if (output[_CT] != null) {
        contents[_CT] = (0, import_smithy_client28.expectString)(output[_CT]);
      }
      if (output[_Si] != null) {
        contents[_Si] = (0, import_smithy_client28.strictParseLong)(output[_Si]);
      }
      if (output[_SC] != null) {
        contents[_SC] = (0, import_smithy_client28.expectString)(output[_SC]);
      }
      if (output[_O] != null) {
        contents[_O] = de_Owner(output[_O], context);
      }
      if (output[_RSes] != null) {
        contents[_RSes] = de_RestoreStatus(output[_RSes], context);
      }
      return contents;
    }, "de__Object");
    var de_ObjectList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de__Object(entry, context);
      });
    }, "de_ObjectList");
    var de_ObjectLockConfiguration = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_OLE] != null) {
        contents[_OLE] = (0, import_smithy_client28.expectString)(output[_OLE]);
      }
      if (output[_Ru] != null) {
        contents[_Ru] = de_ObjectLockRule(output[_Ru], context);
      }
      return contents;
    }, "de_ObjectLockConfiguration");
    var de_ObjectLockLegalHold = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_S] != null) {
        contents[_S] = (0, import_smithy_client28.expectString)(output[_S]);
      }
      return contents;
    }, "de_ObjectLockLegalHold");
    var de_ObjectLockRetention = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Mo] != null) {
        contents[_Mo] = (0, import_smithy_client28.expectString)(output[_Mo]);
      }
      if (output[_RUD] != null) {
        contents[_RUD] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_RUD]));
      }
      return contents;
    }, "de_ObjectLockRetention");
    var de_ObjectLockRule = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_DRe] != null) {
        contents[_DRe] = de_DefaultRetention(output[_DRe], context);
      }
      return contents;
    }, "de_ObjectLockRule");
    var de_ObjectPart = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_PN] != null) {
        contents[_PN] = (0, import_smithy_client28.strictParseInt32)(output[_PN]);
      }
      if (output[_Si] != null) {
        contents[_Si] = (0, import_smithy_client28.strictParseLong)(output[_Si]);
      }
      if (output[_CCRC] != null) {
        contents[_CCRC] = (0, import_smithy_client28.expectString)(output[_CCRC]);
      }
      if (output[_CCRCC] != null) {
        contents[_CCRCC] = (0, import_smithy_client28.expectString)(output[_CCRCC]);
      }
      if (output[_CCRCNVME] != null) {
        contents[_CCRCNVME] = (0, import_smithy_client28.expectString)(output[_CCRCNVME]);
      }
      if (output[_CSHA] != null) {
        contents[_CSHA] = (0, import_smithy_client28.expectString)(output[_CSHA]);
      }
      if (output[_CSHAh] != null) {
        contents[_CSHAh] = (0, import_smithy_client28.expectString)(output[_CSHAh]);
      }
      return contents;
    }, "de_ObjectPart");
    var de_ObjectVersion = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ETa] != null) {
        contents[_ETa] = (0, import_smithy_client28.expectString)(output[_ETa]);
      }
      if (output.ChecksumAlgorithm === "") {
        contents[_CA2] = [];
      } else if (output[_CA2] != null) {
        contents[_CA2] = de_ChecksumAlgorithmList((0, import_smithy_client28.getArrayIfSingleItem)(output[_CA2]), context);
      }
      if (output[_CT] != null) {
        contents[_CT] = (0, import_smithy_client28.expectString)(output[_CT]);
      }
      if (output[_Si] != null) {
        contents[_Si] = (0, import_smithy_client28.strictParseLong)(output[_Si]);
      }
      if (output[_SC] != null) {
        contents[_SC] = (0, import_smithy_client28.expectString)(output[_SC]);
      }
      if (output[_K2] != null) {
        contents[_K2] = (0, import_smithy_client28.expectString)(output[_K2]);
      }
      if (output[_VI] != null) {
        contents[_VI] = (0, import_smithy_client28.expectString)(output[_VI]);
      }
      if (output[_IL] != null) {
        contents[_IL] = (0, import_smithy_client28.parseBoolean)(output[_IL]);
      }
      if (output[_LM] != null) {
        contents[_LM] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_LM]));
      }
      if (output[_O] != null) {
        contents[_O] = de_Owner(output[_O], context);
      }
      if (output[_RSes] != null) {
        contents[_RSes] = de_RestoreStatus(output[_RSes], context);
      }
      return contents;
    }, "de_ObjectVersion");
    var de_ObjectVersionList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ObjectVersion(entry, context);
      });
    }, "de_ObjectVersionList");
    var de_Owner = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_DN] != null) {
        contents[_DN] = (0, import_smithy_client28.expectString)(output[_DN]);
      }
      if (output[_ID_] != null) {
        contents[_ID_] = (0, import_smithy_client28.expectString)(output[_ID_]);
      }
      return contents;
    }, "de_Owner");
    var de_OwnershipControls = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.Rule === "") {
        contents[_Rul] = [];
      } else if (output[_Ru] != null) {
        contents[_Rul] = de_OwnershipControlsRules((0, import_smithy_client28.getArrayIfSingleItem)(output[_Ru]), context);
      }
      return contents;
    }, "de_OwnershipControls");
    var de_OwnershipControlsRule = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_OO] != null) {
        contents[_OO] = (0, import_smithy_client28.expectString)(output[_OO]);
      }
      return contents;
    }, "de_OwnershipControlsRule");
    var de_OwnershipControlsRules = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_OwnershipControlsRule(entry, context);
      });
    }, "de_OwnershipControlsRules");
    var de_Part = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_PN] != null) {
        contents[_PN] = (0, import_smithy_client28.strictParseInt32)(output[_PN]);
      }
      if (output[_LM] != null) {
        contents[_LM] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_LM]));
      }
      if (output[_ETa] != null) {
        contents[_ETa] = (0, import_smithy_client28.expectString)(output[_ETa]);
      }
      if (output[_Si] != null) {
        contents[_Si] = (0, import_smithy_client28.strictParseLong)(output[_Si]);
      }
      if (output[_CCRC] != null) {
        contents[_CCRC] = (0, import_smithy_client28.expectString)(output[_CCRC]);
      }
      if (output[_CCRCC] != null) {
        contents[_CCRCC] = (0, import_smithy_client28.expectString)(output[_CCRCC]);
      }
      if (output[_CCRCNVME] != null) {
        contents[_CCRCNVME] = (0, import_smithy_client28.expectString)(output[_CCRCNVME]);
      }
      if (output[_CSHA] != null) {
        contents[_CSHA] = (0, import_smithy_client28.expectString)(output[_CSHA]);
      }
      if (output[_CSHAh] != null) {
        contents[_CSHAh] = (0, import_smithy_client28.expectString)(output[_CSHAh]);
      }
      return contents;
    }, "de_Part");
    var de_PartitionedPrefix = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_PDS] != null) {
        contents[_PDS] = (0, import_smithy_client28.expectString)(output[_PDS]);
      }
      return contents;
    }, "de_PartitionedPrefix");
    var de_Parts = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Part(entry, context);
      });
    }, "de_Parts");
    var de_PartsList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ObjectPart(entry, context);
      });
    }, "de_PartsList");
    var de_PolicyStatus = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_IP] != null) {
        contents[_IP] = (0, import_smithy_client28.parseBoolean)(output[_IP]);
      }
      return contents;
    }, "de_PolicyStatus");
    var de_Progress = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_BS] != null) {
        contents[_BS] = (0, import_smithy_client28.strictParseLong)(output[_BS]);
      }
      if (output[_BP] != null) {
        contents[_BP] = (0, import_smithy_client28.strictParseLong)(output[_BP]);
      }
      if (output[_BRy] != null) {
        contents[_BRy] = (0, import_smithy_client28.strictParseLong)(output[_BRy]);
      }
      return contents;
    }, "de_Progress");
    var de_PublicAccessBlockConfiguration = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_BPA] != null) {
        contents[_BPA] = (0, import_smithy_client28.parseBoolean)(output[_BPA]);
      }
      if (output[_IPA] != null) {
        contents[_IPA] = (0, import_smithy_client28.parseBoolean)(output[_IPA]);
      }
      if (output[_BPP] != null) {
        contents[_BPP] = (0, import_smithy_client28.parseBoolean)(output[_BPP]);
      }
      if (output[_RPB] != null) {
        contents[_RPB] = (0, import_smithy_client28.parseBoolean)(output[_RPB]);
      }
      return contents;
    }, "de_PublicAccessBlockConfiguration");
    var de_QueueConfiguration = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_I] != null) {
        contents[_I] = (0, import_smithy_client28.expectString)(output[_I]);
      }
      if (output[_Qu] != null) {
        contents[_QA] = (0, import_smithy_client28.expectString)(output[_Qu]);
      }
      if (output.Event === "") {
        contents[_Eve] = [];
      } else if (output[_Ev] != null) {
        contents[_Eve] = de_EventList((0, import_smithy_client28.getArrayIfSingleItem)(output[_Ev]), context);
      }
      if (output[_F] != null) {
        contents[_F] = de_NotificationConfigurationFilter(output[_F], context);
      }
      return contents;
    }, "de_QueueConfiguration");
    var de_QueueConfigurationList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_QueueConfiguration(entry, context);
      });
    }, "de_QueueConfigurationList");
    var de_RecordExpiration = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Exp] != null) {
        contents[_Exp] = (0, import_smithy_client28.expectString)(output[_Exp]);
      }
      if (output[_Da] != null) {
        contents[_Da] = (0, import_smithy_client28.strictParseInt32)(output[_Da]);
      }
      return contents;
    }, "de_RecordExpiration");
    var de_Redirect = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_HN] != null) {
        contents[_HN] = (0, import_smithy_client28.expectString)(output[_HN]);
      }
      if (output[_HRC] != null) {
        contents[_HRC] = (0, import_smithy_client28.expectString)(output[_HRC]);
      }
      if (output[_Pr2] != null) {
        contents[_Pr2] = (0, import_smithy_client28.expectString)(output[_Pr2]);
      }
      if (output[_RKPW] != null) {
        contents[_RKPW] = (0, import_smithy_client28.expectString)(output[_RKPW]);
      }
      if (output[_RKW] != null) {
        contents[_RKW] = (0, import_smithy_client28.expectString)(output[_RKW]);
      }
      return contents;
    }, "de_Redirect");
    var de_RedirectAllRequestsTo = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_HN] != null) {
        contents[_HN] = (0, import_smithy_client28.expectString)(output[_HN]);
      }
      if (output[_Pr2] != null) {
        contents[_Pr2] = (0, import_smithy_client28.expectString)(output[_Pr2]);
      }
      return contents;
    }, "de_RedirectAllRequestsTo");
    var de_ReplicaModifications = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_S] != null) {
        contents[_S] = (0, import_smithy_client28.expectString)(output[_S]);
      }
      return contents;
    }, "de_ReplicaModifications");
    var de_ReplicationConfiguration = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Ro] != null) {
        contents[_Ro] = (0, import_smithy_client28.expectString)(output[_Ro]);
      }
      if (output.Rule === "") {
        contents[_Rul] = [];
      } else if (output[_Ru] != null) {
        contents[_Rul] = de_ReplicationRules((0, import_smithy_client28.getArrayIfSingleItem)(output[_Ru]), context);
      }
      return contents;
    }, "de_ReplicationConfiguration");
    var de_ReplicationRule = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ID_] != null) {
        contents[_ID_] = (0, import_smithy_client28.expectString)(output[_ID_]);
      }
      if (output[_Pri] != null) {
        contents[_Pri] = (0, import_smithy_client28.strictParseInt32)(output[_Pri]);
      }
      if (output[_P2] != null) {
        contents[_P2] = (0, import_smithy_client28.expectString)(output[_P2]);
      }
      if (output[_F] != null) {
        contents[_F] = de_ReplicationRuleFilter(output[_F], context);
      }
      if (output[_S] != null) {
        contents[_S] = (0, import_smithy_client28.expectString)(output[_S]);
      }
      if (output[_SSC] != null) {
        contents[_SSC] = de_SourceSelectionCriteria(output[_SSC], context);
      }
      if (output[_EOR] != null) {
        contents[_EOR] = de_ExistingObjectReplication(output[_EOR], context);
      }
      if (output[_Des] != null) {
        contents[_Des] = de_Destination(output[_Des], context);
      }
      if (output[_DMR] != null) {
        contents[_DMR] = de_DeleteMarkerReplication(output[_DMR], context);
      }
      return contents;
    }, "de_ReplicationRule");
    var de_ReplicationRuleAndOperator = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_P2] != null) {
        contents[_P2] = (0, import_smithy_client28.expectString)(output[_P2]);
      }
      if (output.Tag === "") {
        contents[_Tag] = [];
      } else if (output[_Ta] != null) {
        contents[_Tag] = de_TagSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_Ta]), context);
      }
      return contents;
    }, "de_ReplicationRuleAndOperator");
    var de_ReplicationRuleFilter = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_P2] != null) {
        contents[_P2] = (0, import_smithy_client28.expectString)(output[_P2]);
      }
      if (output[_Ta] != null) {
        contents[_Ta] = de_Tag(output[_Ta], context);
      }
      if (output[_A2] != null) {
        contents[_A2] = de_ReplicationRuleAndOperator(output[_A2], context);
      }
      return contents;
    }, "de_ReplicationRuleFilter");
    var de_ReplicationRules = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ReplicationRule(entry, context);
      });
    }, "de_ReplicationRules");
    var de_ReplicationTime = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_S] != null) {
        contents[_S] = (0, import_smithy_client28.expectString)(output[_S]);
      }
      if (output[_Tim] != null) {
        contents[_Tim] = de_ReplicationTimeValue(output[_Tim], context);
      }
      return contents;
    }, "de_ReplicationTime");
    var de_ReplicationTimeValue = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Mi] != null) {
        contents[_Mi] = (0, import_smithy_client28.strictParseInt32)(output[_Mi]);
      }
      return contents;
    }, "de_ReplicationTimeValue");
    var de_RestoreStatus = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_IRIP] != null) {
        contents[_IRIP] = (0, import_smithy_client28.parseBoolean)(output[_IRIP]);
      }
      if (output[_REDe] != null) {
        contents[_REDe] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_REDe]));
      }
      return contents;
    }, "de_RestoreStatus");
    var de_RoutingRule = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Con] != null) {
        contents[_Con] = de_Condition(output[_Con], context);
      }
      if (output[_Red] != null) {
        contents[_Red] = de_Redirect(output[_Red], context);
      }
      return contents;
    }, "de_RoutingRule");
    var de_RoutingRules = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_RoutingRule(entry, context);
      });
    }, "de_RoutingRules");
    var de_S3KeyFilter = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.FilterRule === "") {
        contents[_FRi] = [];
      } else if (output[_FR] != null) {
        contents[_FRi] = de_FilterRuleList((0, import_smithy_client28.getArrayIfSingleItem)(output[_FR]), context);
      }
      return contents;
    }, "de_S3KeyFilter");
    var de_S3TablesDestinationResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_TBA] != null) {
        contents[_TBA] = (0, import_smithy_client28.expectString)(output[_TBA]);
      }
      if (output[_TN] != null) {
        contents[_TN] = (0, import_smithy_client28.expectString)(output[_TN]);
      }
      if (output[_TAa] != null) {
        contents[_TAa] = (0, import_smithy_client28.expectString)(output[_TAa]);
      }
      if (output[_TNa] != null) {
        contents[_TNa] = (0, import_smithy_client28.expectString)(output[_TNa]);
      }
      return contents;
    }, "de_S3TablesDestinationResult");
    var de_ServerSideEncryptionByDefault = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_SSEA] != null) {
        contents[_SSEA] = (0, import_smithy_client28.expectString)(output[_SSEA]);
      }
      if (output[_KMSMKID] != null) {
        contents[_KMSMKID] = (0, import_smithy_client28.expectString)(output[_KMSMKID]);
      }
      return contents;
    }, "de_ServerSideEncryptionByDefault");
    var de_ServerSideEncryptionConfiguration = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.Rule === "") {
        contents[_Rul] = [];
      } else if (output[_Ru] != null) {
        contents[_Rul] = de_ServerSideEncryptionRules((0, import_smithy_client28.getArrayIfSingleItem)(output[_Ru]), context);
      }
      return contents;
    }, "de_ServerSideEncryptionConfiguration");
    var de_ServerSideEncryptionRule = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ASSEBD] != null) {
        contents[_ASSEBD] = de_ServerSideEncryptionByDefault(output[_ASSEBD], context);
      }
      if (output[_BKE] != null) {
        contents[_BKE] = (0, import_smithy_client28.parseBoolean)(output[_BKE]);
      }
      return contents;
    }, "de_ServerSideEncryptionRule");
    var de_ServerSideEncryptionRules = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ServerSideEncryptionRule(entry, context);
      });
    }, "de_ServerSideEncryptionRules");
    var de_SessionCredentials = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_AKI2] != null) {
        contents[_AKI2] = (0, import_smithy_client28.expectString)(output[_AKI2]);
      }
      if (output[_SAK2] != null) {
        contents[_SAK2] = (0, import_smithy_client28.expectString)(output[_SAK2]);
      }
      if (output[_ST2] != null) {
        contents[_ST2] = (0, import_smithy_client28.expectString)(output[_ST2]);
      }
      if (output[_Exp] != null) {
        contents[_Exp] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_Exp]));
      }
      return contents;
    }, "de_SessionCredentials");
    var de_SimplePrefix = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      return contents;
    }, "de_SimplePrefix");
    var de_SourceSelectionCriteria = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_SKEO] != null) {
        contents[_SKEO] = de_SseKmsEncryptedObjects(output[_SKEO], context);
      }
      if (output[_RM] != null) {
        contents[_RM] = de_ReplicaModifications(output[_RM], context);
      }
      return contents;
    }, "de_SourceSelectionCriteria");
    var de_SSEKMS = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_KI] != null) {
        contents[_KI] = (0, import_smithy_client28.expectString)(output[_KI]);
      }
      return contents;
    }, "de_SSEKMS");
    var de_SseKmsEncryptedObjects = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_S] != null) {
        contents[_S] = (0, import_smithy_client28.expectString)(output[_S]);
      }
      return contents;
    }, "de_SseKmsEncryptedObjects");
    var de_SSES3 = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      return contents;
    }, "de_SSES3");
    var de_Stats = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_BS] != null) {
        contents[_BS] = (0, import_smithy_client28.strictParseLong)(output[_BS]);
      }
      if (output[_BP] != null) {
        contents[_BP] = (0, import_smithy_client28.strictParseLong)(output[_BP]);
      }
      if (output[_BRy] != null) {
        contents[_BRy] = (0, import_smithy_client28.strictParseLong)(output[_BRy]);
      }
      return contents;
    }, "de_Stats");
    var de_StorageClassAnalysis = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_DE] != null) {
        contents[_DE] = de_StorageClassAnalysisDataExport(output[_DE], context);
      }
      return contents;
    }, "de_StorageClassAnalysis");
    var de_StorageClassAnalysisDataExport = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_OSV] != null) {
        contents[_OSV] = (0, import_smithy_client28.expectString)(output[_OSV]);
      }
      if (output[_Des] != null) {
        contents[_Des] = de_AnalyticsExportDestination(output[_Des], context);
      }
      return contents;
    }, "de_StorageClassAnalysisDataExport");
    var de_Tag = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_K2] != null) {
        contents[_K2] = (0, import_smithy_client28.expectString)(output[_K2]);
      }
      if (output[_Va2] != null) {
        contents[_Va2] = (0, import_smithy_client28.expectString)(output[_Va2]);
      }
      return contents;
    }, "de_Tag");
    var de_TagSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Tag(entry, context);
      });
    }, "de_TagSet");
    var de_TargetGrant = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Gra] != null) {
        contents[_Gra] = de_Grantee(output[_Gra], context);
      }
      if (output[_Pe] != null) {
        contents[_Pe] = (0, import_smithy_client28.expectString)(output[_Pe]);
      }
      return contents;
    }, "de_TargetGrant");
    var de_TargetGrants = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TargetGrant(entry, context);
      });
    }, "de_TargetGrants");
    var de_TargetObjectKeyFormat = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_SPi] != null) {
        contents[_SPi] = de_SimplePrefix(output[_SPi], context);
      }
      if (output[_PP] != null) {
        contents[_PP] = de_PartitionedPrefix(output[_PP], context);
      }
      return contents;
    }, "de_TargetObjectKeyFormat");
    var de_Tiering = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Da] != null) {
        contents[_Da] = (0, import_smithy_client28.strictParseInt32)(output[_Da]);
      }
      if (output[_AT] != null) {
        contents[_AT] = (0, import_smithy_client28.expectString)(output[_AT]);
      }
      return contents;
    }, "de_Tiering");
    var de_TieringList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Tiering(entry, context);
      });
    }, "de_TieringList");
    var de_TopicConfiguration = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_I] != null) {
        contents[_I] = (0, import_smithy_client28.expectString)(output[_I]);
      }
      if (output[_Top] != null) {
        contents[_TA] = (0, import_smithy_client28.expectString)(output[_Top]);
      }
      if (output.Event === "") {
        contents[_Eve] = [];
      } else if (output[_Ev] != null) {
        contents[_Eve] = de_EventList((0, import_smithy_client28.getArrayIfSingleItem)(output[_Ev]), context);
      }
      if (output[_F] != null) {
        contents[_F] = de_NotificationConfigurationFilter(output[_F], context);
      }
      return contents;
    }, "de_TopicConfiguration");
    var de_TopicConfigurationList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TopicConfiguration(entry, context);
      });
    }, "de_TopicConfigurationList");
    var de_Transition = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Dat] != null) {
        contents[_Dat] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_Dat]));
      }
      if (output[_Da] != null) {
        contents[_Da] = (0, import_smithy_client28.strictParseInt32)(output[_Da]);
      }
      if (output[_SC] != null) {
        contents[_SC] = (0, import_smithy_client28.expectString)(output[_SC]);
      }
      return contents;
    }, "de_Transition");
    var de_TransitionList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Transition(entry, context);
      });
    }, "de_TransitionList");
    var deserializeMetadata3 = /* @__PURE__ */ __name2((output) => ({
      httpStatusCode: output.statusCode,
      requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
      extendedRequestId: output.headers["x-amz-id-2"],
      cfId: output.headers["x-amz-cf-id"]
    }), "deserializeMetadata");
    var collectBodyString2 = /* @__PURE__ */ __name2((streamBody, context) => (0, import_smithy_client28.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
    var _A2 = "And";
    var _AAO = "AnalyticsAndOperator";
    var _AC = "AnalyticsConfiguration";
    var _ACL = "ACL";
    var _ACLc = "AccessControlList";
    var _ACLn = "AnalyticsConfigurationList";
    var _ACP = "AccessControlPolicy";
    var _ACT = "AccessControlTranslation";
    var _ACc = "AccelerateConfiguration";
    var _AD = "AbortDate";
    var _AED = "AnalyticsExportDestination";
    var _AF = "AnalyticsFilter";
    var _AH = "AllowedHeader";
    var _AHl = "AllowedHeaders";
    var _AI = "AnalyticsId";
    var _AIMU = "AbortIncompleteMultipartUpload";
    var _AIc = "AccountId";
    var _AKI2 = "AccessKeyId";
    var _AM = "AllowedMethod";
    var _AMl = "AllowedMethods";
    var _AO = "AllowedOrigin";
    var _AOl = "AllowedOrigins";
    var _APA = "AccessPointAlias";
    var _APAc = "AccessPointArn";
    var _AQRD = "AllowQuotedRecordDelimiter";
    var _AR2 = "AcceptRanges";
    var _ARI2 = "AbortRuleId";
    var _AS = "ArchiveStatus";
    var _ASBD = "AnalyticsS3BucketDestination";
    var _ASEFF = "AnalyticsS3ExportFileFormat";
    var _ASSEBD = "ApplyServerSideEncryptionByDefault";
    var _AT = "AccessTier";
    var _Ac = "Account";
    var _B = "Bucket";
    var _BA = "BucketArn";
    var _BAI = "BucketAccountId";
    var _BAS = "BucketAccelerateStatus";
    var _BGR = "BypassGovernanceRetention";
    var _BI = "BucketInfo";
    var _BKE = "BucketKeyEnabled";
    var _BLC = "BucketLifecycleConfiguration";
    var _BLCu = "BucketLocationConstraint";
    var _BLN = "BucketLocationName";
    var _BLP = "BucketLogsPermission";
    var _BLS = "BucketLoggingStatus";
    var _BLT = "BucketLocationType";
    var _BN = "BucketName";
    var _BP = "BytesProcessed";
    var _BPA = "BlockPublicAcls";
    var _BPP = "BlockPublicPolicy";
    var _BR = "BucketRegion";
    var _BRy = "BytesReturned";
    var _BS = "BytesScanned";
    var _BT = "BucketType";
    var _BVS = "BucketVersioningStatus";
    var _Bu = "Buckets";
    var _C2 = "Credentials";
    var _CA2 = "ChecksumAlgorithm";
    var _CACL = "CannedACL";
    var _CBC = "CreateBucketConfiguration";
    var _CC = "CacheControl";
    var _CCRC = "ChecksumCRC32";
    var _CCRCC = "ChecksumCRC32C";
    var _CCRCNVME = "ChecksumCRC64NVME";
    var _CD = "ContentDisposition";
    var _CDr = "CreationDate";
    var _CE = "ContentEncoding";
    var _CF = "CloudFunction";
    var _CFC = "CloudFunctionConfiguration";
    var _CL = "ContentLanguage";
    var _CLo = "ContentLength";
    var _CM = "ChecksumMode";
    var _CMD = "ContentMD5";
    var _CMU = "CompletedMultipartUpload";
    var _CORSC = "CORSConfiguration";
    var _CORSR = "CORSRule";
    var _CORSRu = "CORSRules";
    var _CP = "CommonPrefixes";
    var _CPo = "CompletedPart";
    var _CR = "ContentRange";
    var _CRSBA = "ConfirmRemoveSelfBucketAccess";
    var _CS = "CopySource";
    var _CSHA = "ChecksumSHA1";
    var _CSHAh = "ChecksumSHA256";
    var _CSIM = "CopySourceIfMatch";
    var _CSIMS = "CopySourceIfModifiedSince";
    var _CSINM = "CopySourceIfNoneMatch";
    var _CSIUS = "CopySourceIfUnmodifiedSince";
    var _CSR = "CopySourceRange";
    var _CSSSECA = "CopySourceSSECustomerAlgorithm";
    var _CSSSECK = "CopySourceSSECustomerKey";
    var _CSSSECKMD = "CopySourceSSECustomerKeyMD5";
    var _CSV = "CSV";
    var _CSVI = "CopySourceVersionId";
    var _CSVIn = "CSVInput";
    var _CSVO = "CSVOutput";
    var _CSo = "ConfigurationState";
    var _CT = "ChecksumType";
    var _CTl = "ClientToken";
    var _CTo = "ContentType";
    var _CTom = "CompressionType";
    var _CTon = "ContinuationToken";
    var _Ch = "Checksum";
    var _Co = "Contents";
    var _Cod = "Code";
    var _Com = "Comments";
    var _Con = "Condition";
    var _D = "Delimiter";
    var _DAI = "DaysAfterInitiation";
    var _DE = "DataExport";
    var _DIM = "DestinationIfMatch";
    var _DIMS = "DestinationIfModifiedSince";
    var _DINM = "DestinationIfNoneMatch";
    var _DIUS = "DestinationIfUnmodifiedSince";
    var _DM = "DeleteMarker";
    var _DMR = "DeleteMarkerReplication";
    var _DMRS = "DeleteMarkerReplicationStatus";
    var _DMVI = "DeleteMarkerVersionId";
    var _DMe = "DeleteMarkers";
    var _DN = "DisplayName";
    var _DR = "DataRedundancy";
    var _DRe = "DefaultRetention";
    var _DRes = "DestinationResult";
    var _Da = "Days";
    var _Dat = "Date";
    var _De = "Deleted";
    var _Del = "Delete";
    var _Des = "Destination";
    var _Desc = "Description";
    var _E2 = "Expires";
    var _EA = "EmailAddress";
    var _EBC = "EventBridgeConfiguration";
    var _EBO = "ExpectedBucketOwner";
    var _EC = "ErrorCode";
    var _ECn = "EncryptionConfiguration";
    var _ED = "ErrorDocument";
    var _EH = "ExposeHeaders";
    var _EHx = "ExposeHeader";
    var _EM = "ErrorMessage";
    var _EODM = "ExpiredObjectDeleteMarker";
    var _EOR = "ExistingObjectReplication";
    var _EORS = "ExistingObjectReplicationStatus";
    var _ERP = "EnableRequestProgress";
    var _ES = "ExpiresString";
    var _ESBO = "ExpectedSourceBucketOwner";
    var _ESx = "ExpirationStatus";
    var _ESxp = "ExpirationState";
    var _ET = "EncodingType";
    var _ETa = "ETag";
    var _ETn = "EncryptionType";
    var _ETv = "EventThreshold";
    var _ETx = "ExpressionType";
    var _En = "Encryption";
    var _Ena = "Enabled";
    var _End = "End";
    var _Er = "Error";
    var _Err = "Errors";
    var _Ev = "Event";
    var _Eve = "Events";
    var _Ex = "Expression";
    var _Exp = "Expiration";
    var _F = "Filter";
    var _FD = "FieldDelimiter";
    var _FHI = "FileHeaderInfo";
    var _FO = "FetchOwner";
    var _FR = "FilterRule";
    var _FRN = "FilterRuleName";
    var _FRV = "FilterRuleValue";
    var _FRi = "FilterRules";
    var _Fi = "Field";
    var _Fo = "Format";
    var _Fr = "Frequency";
    var _G = "Grant";
    var _GFC = "GrantFullControl";
    var _GJP = "GlacierJobParameters";
    var _GR = "GrantRead";
    var _GRACP = "GrantReadACP";
    var _GW = "GrantWrite";
    var _GWACP = "GrantWriteACP";
    var _Gr = "Grants";
    var _Gra = "Grantee";
    var _HECRE = "HttpErrorCodeReturnedEquals";
    var _HN = "HostName";
    var _HRC = "HttpRedirectCode";
    var _I = "Id";
    var _IC = "InventoryConfiguration";
    var _ICL = "InventoryConfigurationList";
    var _ICS = "InventoryConfigurationState";
    var _ID = "IndexDocument";
    var _ID_ = "ID";
    var _IDn = "InventoryDestination";
    var _IE = "IsEnabled";
    var _IEn = "InventoryEncryption";
    var _IF = "InventoryFilter";
    var _IFn = "InventoryFormat";
    var _IFnv = "InventoryFrequency";
    var _II = "InventoryId";
    var _IIOV = "InventoryIncludedObjectVersions";
    var _IL = "IsLatest";
    var _IM = "IfMatch";
    var _IMIT = "IfMatchInitiatedTime";
    var _IMLMT = "IfMatchLastModifiedTime";
    var _IMS = "IfMatchSize";
    var _IMSf = "IfModifiedSince";
    var _INM = "IfNoneMatch";
    var _IOF = "InventoryOptionalField";
    var _IOV = "IncludedObjectVersions";
    var _IP = "IsPublic";
    var _IPA = "IgnorePublicAcls";
    var _IRIP = "IsRestoreInProgress";
    var _IS = "InputSerialization";
    var _ISBD = "InventoryS3BucketDestination";
    var _ISn = "InventorySchedule";
    var _IT = "IsTruncated";
    var _ITAO = "IntelligentTieringAndOperator";
    var _ITAT = "IntelligentTieringAccessTier";
    var _ITC = "IntelligentTieringConfiguration";
    var _ITCL = "IntelligentTieringConfigurationList";
    var _ITCR = "InventoryTableConfigurationResult";
    var _ITCU = "InventoryTableConfigurationUpdates";
    var _ITCn = "InventoryTableConfiguration";
    var _ITD = "IntelligentTieringDays";
    var _ITF = "IntelligentTieringFilter";
    var _ITI = "IntelligentTieringId";
    var _ITS = "IntelligentTieringStatus";
    var _IUS = "IfUnmodifiedSince";
    var _In = "Initiator";
    var _Ini = "Initiated";
    var _JSON = "JSON";
    var _JSONI = "JSONInput";
    var _JSONO = "JSONOutput";
    var _JSONT = "JSONType";
    var _JTC = "JournalTableConfiguration";
    var _JTCR = "JournalTableConfigurationResult";
    var _JTCU = "JournalTableConfigurationUpdates";
    var _K2 = "Key";
    var _KC = "KeyCount";
    var _KI = "KeyId";
    var _KKA = "KmsKeyArn";
    var _KM = "KeyMarker";
    var _KMSC = "KMSContext";
    var _KMSKI = "KMSKeyId";
    var _KMSMKID = "KMSMasterKeyID";
    var _KPE = "KeyPrefixEquals";
    var _L = "Location";
    var _LC = "LocationConstraint";
    var _LE = "LoggingEnabled";
    var _LEi = "LifecycleExpiration";
    var _LFA = "LambdaFunctionArn";
    var _LFC = "LambdaFunctionConfigurations";
    var _LFCa = "LambdaFunctionConfiguration";
    var _LI = "LocationInfo";
    var _LM = "LastModified";
    var _LMT = "LastModifiedTime";
    var _LNAS = "LocationNameAsString";
    var _LP = "LocationPrefix";
    var _LR = "LifecycleRule";
    var _LRAO = "LifecycleRuleAndOperator";
    var _LRF = "LifecycleRuleFilter";
    var _LT = "LocationType";
    var _M = "Marker";
    var _MAO = "MetricsAndOperator";
    var _MAS = "MaxAgeSeconds";
    var _MB = "MaxBuckets";
    var _MC = "MetricsConfiguration";
    var _MCL = "MetricsConfigurationList";
    var _MCR = "MetadataConfigurationResult";
    var _MCe = "MetadataConfiguration";
    var _MD = "MetadataDirective";
    var _MDB = "MaxDirectoryBuckets";
    var _MDf = "MfaDelete";
    var _ME = "MetadataEntry";
    var _MF = "MetricsFilter";
    var _MFA = "MFA";
    var _MFAD = "MFADelete";
    var _MI = "MetricsId";
    var _MK = "MaxKeys";
    var _MKe = "MetadataKey";
    var _MM = "MissingMeta";
    var _MOS = "MpuObjectSize";
    var _MP = "MaxParts";
    var _MS = "MetricsStatus";
    var _MTC = "MetadataTableConfiguration";
    var _MTCR = "MetadataTableConfigurationResult";
    var _MTEC = "MetadataTableEncryptionConfiguration";
    var _MU = "MaxUploads";
    var _MV = "MetadataValue";
    var _Me = "Metrics";
    var _Mes = "Message";
    var _Mi = "Minutes";
    var _Mo = "Mode";
    var _N = "Name";
    var _NC = "NotificationConfiguration";
    var _NCF = "NotificationConfigurationFilter";
    var _NCT = "NextContinuationToken";
    var _ND = "NoncurrentDays";
    var _NI = "NotificationId";
    var _NKM = "NextKeyMarker";
    var _NM = "NextMarker";
    var _NNV = "NewerNoncurrentVersions";
    var _NPNM = "NextPartNumberMarker";
    var _NUIM = "NextUploadIdMarker";
    var _NVE = "NoncurrentVersionExpiration";
    var _NVIM = "NextVersionIdMarker";
    var _NVT = "NoncurrentVersionTransitions";
    var _NVTo = "NoncurrentVersionTransition";
    var _O = "Owner";
    var _OA = "ObjectAttributes";
    var _OC = "OwnershipControls";
    var _OCACL = "ObjectCannedACL";
    var _OCR = "OwnershipControlsRule";
    var _OF = "OptionalFields";
    var _OI = "ObjectIdentifier";
    var _OK = "ObjectKey";
    var _OL = "OutputLocation";
    var _OLC = "ObjectLockConfiguration";
    var _OLE = "ObjectLockEnabled";
    var _OLEFB = "ObjectLockEnabledForBucket";
    var _OLLH = "ObjectLockLegalHold";
    var _OLLHS = "ObjectLockLegalHoldStatus";
    var _OLM = "ObjectLockMode";
    var _OLR = "ObjectLockRetention";
    var _OLRM = "ObjectLockRetentionMode";
    var _OLRUD = "ObjectLockRetainUntilDate";
    var _OLRb = "ObjectLockRule";
    var _OO = "ObjectOwnership";
    var _OOA = "OptionalObjectAttributes";
    var _OOw = "OwnerOverride";
    var _OP = "ObjectParts";
    var _OS = "OutputSerialization";
    var _OSGT = "ObjectSizeGreaterThan";
    var _OSGTB = "ObjectSizeGreaterThanBytes";
    var _OSLT = "ObjectSizeLessThan";
    var _OSLTB = "ObjectSizeLessThanBytes";
    var _OSV = "OutputSchemaVersion";
    var _OSb = "ObjectSize";
    var _OVI = "ObjectVersionId";
    var _Ob = "Objects";
    var _P2 = "Prefix";
    var _PABC = "PublicAccessBlockConfiguration";
    var _PC2 = "PartsCount";
    var _PDS = "PartitionDateSource";
    var _PI2 = "ParquetInput";
    var _PN = "PartNumber";
    var _PNM = "PartNumberMarker";
    var _PP = "PartitionedPrefix";
    var _Pa = "Payer";
    var _Par = "Part";
    var _Parq = "Parquet";
    var _Part = "Parts";
    var _Pe = "Permission";
    var _Pr2 = "Protocol";
    var _Pri = "Priority";
    var _Q = "Quiet";
    var _QA = "QueueArn";
    var _QC = "QueueConfiguration";
    var _QCu = "QueueConfigurations";
    var _QCuo = "QuoteCharacter";
    var _QEC = "QuoteEscapeCharacter";
    var _QF = "QuoteFields";
    var _Qu = "Queue";
    var _R = "Range";
    var _RART = "RedirectAllRequestsTo";
    var _RC = "RequestCharged";
    var _RCC = "ResponseCacheControl";
    var _RCD = "ResponseContentDisposition";
    var _RCE = "ResponseContentEncoding";
    var _RCL = "ResponseContentLanguage";
    var _RCT = "ResponseContentType";
    var _RCe = "ReplicationConfiguration";
    var _RD = "RecordDelimiter";
    var _RE = "ResponseExpires";
    var _RED = "RecordExpirationDays";
    var _REDe = "RestoreExpiryDate";
    var _REe = "RecordExpiration";
    var _RKKID = "ReplicaKmsKeyID";
    var _RKPW = "ReplaceKeyPrefixWith";
    var _RKW = "ReplaceKeyWith";
    var _RM = "ReplicaModifications";
    var _RMS = "ReplicaModificationsStatus";
    var _ROP = "RestoreOutputPath";
    var _RP = "RequestPayer";
    var _RPB = "RestrictPublicBuckets";
    var _RPC = "RequestPaymentConfiguration";
    var _RPe = "RequestProgress";
    var _RR = "RequestRoute";
    var _RRAO = "ReplicationRuleAndOperator";
    var _RRF = "ReplicationRuleFilter";
    var _RRS = "ReplicationRuleStatus";
    var _RRT = "RestoreRequestType";
    var _RRe = "ReplicationRule";
    var _RRes = "RestoreRequest";
    var _RRo = "RoutingRules";
    var _RRou = "RoutingRule";
    var _RS = "RenameSource";
    var _RSe = "ReplicationStatus";
    var _RSes = "RestoreStatus";
    var _RT = "RequestToken";
    var _RTS = "ReplicationTimeStatus";
    var _RTV = "ReplicationTimeValue";
    var _RTe = "ReplicationTime";
    var _RUD = "RetainUntilDate";
    var _Re = "Restore";
    var _Red = "Redirect";
    var _Ro = "Role";
    var _Ru = "Rule";
    var _Rul = "Rules";
    var _S = "Status";
    var _SA = "StartAfter";
    var _SAK2 = "SecretAccessKey";
    var _SAs = "SseAlgorithm";
    var _SBD = "S3BucketDestination";
    var _SC = "StorageClass";
    var _SCA = "StorageClassAnalysis";
    var _SCADE = "StorageClassAnalysisDataExport";
    var _SCASV = "StorageClassAnalysisSchemaVersion";
    var _SCt = "StatusCode";
    var _SDV = "SkipDestinationValidation";
    var _SIM = "SourceIfMatch";
    var _SIMS = "SourceIfModifiedSince";
    var _SINM = "SourceIfNoneMatch";
    var _SIUS = "SourceIfUnmodifiedSince";
    var _SK = "SSE-KMS";
    var _SKEO = "SseKmsEncryptedObjects";
    var _SKEOS = "SseKmsEncryptedObjectsStatus";
    var _SKF = "S3KeyFilter";
    var _SKe = "S3Key";
    var _SL = "S3Location";
    var _SM = "SessionMode";
    var _SOCR = "SelectObjectContentRequest";
    var _SP = "SelectParameters";
    var _SPi = "SimplePrefix";
    var _SR = "ScanRange";
    var _SS = "SSE-S3";
    var _SSC = "SourceSelectionCriteria";
    var _SSE = "ServerSideEncryption";
    var _SSEA = "SSEAlgorithm";
    var _SSEBD = "ServerSideEncryptionByDefault";
    var _SSEC = "ServerSideEncryptionConfiguration";
    var _SSECA = "SSECustomerAlgorithm";
    var _SSECK = "SSECustomerKey";
    var _SSECKMD = "SSECustomerKeyMD5";
    var _SSEKMS = "SSEKMS";
    var _SSEKMSEC = "SSEKMSEncryptionContext";
    var _SSEKMSKI = "SSEKMSKeyId";
    var _SSER = "ServerSideEncryptionRule";
    var _SSES = "SSES3";
    var _ST2 = "SessionToken";
    var _STBA = "S3TablesBucketArn";
    var _STD = "S3TablesDestination";
    var _STDR = "S3TablesDestinationResult";
    var _STN = "S3TablesName";
    var _S_ = "S3";
    var _Sc = "Schedule";
    var _Se = "Setting";
    var _Si = "Size";
    var _St = "Start";
    var _Su = "Suffix";
    var _T2 = "Tagging";
    var _TA = "TopicArn";
    var _TAa = "TableArn";
    var _TB = "TargetBucket";
    var _TBA = "TableBucketArn";
    var _TBT = "TableBucketType";
    var _TC2 = "TagCount";
    var _TCo = "TopicConfiguration";
    var _TCop = "TopicConfigurations";
    var _TD = "TaggingDirective";
    var _TDMOS = "TransitionDefaultMinimumObjectSize";
    var _TG = "TargetGrants";
    var _TGa = "TargetGrant";
    var _TN = "TableName";
    var _TNa = "TableNamespace";
    var _TOKF = "TargetObjectKeyFormat";
    var _TP = "TargetPrefix";
    var _TPC = "TotalPartsCount";
    var _TS = "TagSet";
    var _TSA = "TableSseAlgorithm";
    var _TSC = "TransitionStorageClass";
    var _TSa = "TableStatus";
    var _Ta = "Tag";
    var _Tag = "Tags";
    var _Ti = "Tier";
    var _Tie = "Tierings";
    var _Tier = "Tiering";
    var _Tim = "Time";
    var _To = "Token";
    var _Top = "Topic";
    var _Tr = "Transitions";
    var _Tra = "Transition";
    var _Ty = "Type";
    var _U = "Upload";
    var _UI = "UploadId";
    var _UIM = "UploadIdMarker";
    var _UM = "UserMetadata";
    var _URI = "URI";
    var _Up = "Uploads";
    var _V2 = "Version";
    var _VC = "VersionCount";
    var _VCe = "VersioningConfiguration";
    var _VI = "VersionId";
    var _VIM = "VersionIdMarker";
    var _Va2 = "Value";
    var _Ve = "Versions";
    var _WC = "WebsiteConfiguration";
    var _WOB = "WriteOffsetBytes";
    var _WRL = "WebsiteRedirectLocation";
    var _Y = "Years";
    var _a2 = "analytics";
    var _ac = "accelerate";
    var _acl = "acl";
    var _ar = "accept-ranges";
    var _at = "attributes";
    var _br = "bucket-region";
    var _c = "cors";
    var _cc = "cache-control";
    var _cd = "content-disposition";
    var _ce = "content-encoding";
    var _cl = "content-language";
    var _cl_ = "content-length";
    var _cm = "content-md5";
    var _cr = "content-range";
    var _ct = "content-type";
    var _ct_ = "continuation-token";
    var _d = "delete";
    var _de = "delimiter";
    var _e = "expires";
    var _en = "encryption";
    var _et = "encoding-type";
    var _eta = "etag";
    var _ex = "expiresstring";
    var _fo = "fetch-owner";
    var _i = "id";
    var _im = "if-match";
    var _ims = "if-modified-since";
    var _in = "inventory";
    var _inm = "if-none-match";
    var _it = "intelligent-tiering";
    var _ius = "if-unmodified-since";
    var _km = "key-marker";
    var _l = "lifecycle";
    var _lh = "legal-hold";
    var _lm = "last-modified";
    var _lo = "location";
    var _log = "logging";
    var _lt = "list-type";
    var _m2 = "metrics";
    var _mC = "metadataConfiguration";
    var _mIT = "metadataInventoryTable";
    var _mJT = "metadataJournalTable";
    var _mT = "metadataTable";
    var _ma = "marker";
    var _mb = "max-buckets";
    var _mdb = "max-directory-buckets";
    var _me = "member";
    var _mk = "max-keys";
    var _mp = "max-parts";
    var _mu = "max-uploads";
    var _n = "notification";
    var _oC = "ownershipControls";
    var _ol = "object-lock";
    var _p = "policy";
    var _pAB = "publicAccessBlock";
    var _pN = "partNumber";
    var _pS = "policyStatus";
    var _pnm = "part-number-marker";
    var _pr = "prefix";
    var _r = "replication";
    var _rO = "renameObject";
    var _rP = "requestPayment";
    var _ra = "range";
    var _rcc = "response-cache-control";
    var _rcd = "response-content-disposition";
    var _rce = "response-content-encoding";
    var _rcl = "response-content-language";
    var _rct = "response-content-type";
    var _re = "response-expires";
    var _res = "restore";
    var _ret = "retention";
    var _s = "session";
    var _sa = "start-after";
    var _se = "select";
    var _st = "select-type";
    var _t = "tagging";
    var _to = "torrent";
    var _u = "uploads";
    var _uI = "uploadId";
    var _uim = "upload-id-marker";
    var _v = "versioning";
    var _vI = "versionId";
    var _ve = '<?xml version="1.0" encoding="UTF-8"?>';
    var _ver = "versions";
    var _vim = "version-id-marker";
    var _w = "website";
    var _x = "xsi:type";
    var _xaa = "x-amz-acl";
    var _xaad = "x-amz-abort-date";
    var _xaapa = "x-amz-access-point-alias";
    var _xaari = "x-amz-abort-rule-id";
    var _xaas = "x-amz-archive-status";
    var _xaba = "x-amz-bucket-arn";
    var _xabgr = "x-amz-bypass-governance-retention";
    var _xabln = "x-amz-bucket-location-name";
    var _xablt = "x-amz-bucket-location-type";
    var _xabole = "x-amz-bucket-object-lock-enabled";
    var _xabolt = "x-amz-bucket-object-lock-token";
    var _xabr = "x-amz-bucket-region";
    var _xaca = "x-amz-checksum-algorithm";
    var _xacc = "x-amz-checksum-crc32";
    var _xacc_ = "x-amz-checksum-crc32c";
    var _xacc__ = "x-amz-checksum-crc64nvme";
    var _xacm = "x-amz-checksum-mode";
    var _xacrsba = "x-amz-confirm-remove-self-bucket-access";
    var _xacs = "x-amz-checksum-sha1";
    var _xacs_ = "x-amz-checksum-sha256";
    var _xacs__ = "x-amz-copy-source";
    var _xacsim = "x-amz-copy-source-if-match";
    var _xacsims = "x-amz-copy-source-if-modified-since";
    var _xacsinm = "x-amz-copy-source-if-none-match";
    var _xacsius = "x-amz-copy-source-if-unmodified-since";
    var _xacsm = "x-amz-create-session-mode";
    var _xacsr = "x-amz-copy-source-range";
    var _xacssseca = "x-amz-copy-source-server-side-encryption-customer-algorithm";
    var _xacssseck = "x-amz-copy-source-server-side-encryption-customer-key";
    var _xacssseckm = "x-amz-copy-source-server-side-encryption-customer-key-md5";
    var _xacsvi = "x-amz-copy-source-version-id";
    var _xact = "x-amz-checksum-type";
    var _xact_ = "x-amz-client-token";
    var _xadm = "x-amz-delete-marker";
    var _xae = "x-amz-expiration";
    var _xaebo = "x-amz-expected-bucket-owner";
    var _xafec = "x-amz-fwd-error-code";
    var _xafem = "x-amz-fwd-error-message";
    var _xafhar = "x-amz-fwd-header-accept-ranges";
    var _xafhcc = "x-amz-fwd-header-cache-control";
    var _xafhcd = "x-amz-fwd-header-content-disposition";
    var _xafhce = "x-amz-fwd-header-content-encoding";
    var _xafhcl = "x-amz-fwd-header-content-language";
    var _xafhcr = "x-amz-fwd-header-content-range";
    var _xafhct = "x-amz-fwd-header-content-type";
    var _xafhe = "x-amz-fwd-header-etag";
    var _xafhe_ = "x-amz-fwd-header-expires";
    var _xafhlm = "x-amz-fwd-header-last-modified";
    var _xafhxacc = "x-amz-fwd-header-x-amz-checksum-crc32";
    var _xafhxacc_ = "x-amz-fwd-header-x-amz-checksum-crc32c";
    var _xafhxacc__ = "x-amz-fwd-header-x-amz-checksum-crc64nvme";
    var _xafhxacs = "x-amz-fwd-header-x-amz-checksum-sha1";
    var _xafhxacs_ = "x-amz-fwd-header-x-amz-checksum-sha256";
    var _xafhxadm = "x-amz-fwd-header-x-amz-delete-marker";
    var _xafhxae = "x-amz-fwd-header-x-amz-expiration";
    var _xafhxamm = "x-amz-fwd-header-x-amz-missing-meta";
    var _xafhxampc = "x-amz-fwd-header-x-amz-mp-parts-count";
    var _xafhxaollh = "x-amz-fwd-header-x-amz-object-lock-legal-hold";
    var _xafhxaolm = "x-amz-fwd-header-x-amz-object-lock-mode";
    var _xafhxaolrud = "x-amz-fwd-header-x-amz-object-lock-retain-until-date";
    var _xafhxar = "x-amz-fwd-header-x-amz-restore";
    var _xafhxarc = "x-amz-fwd-header-x-amz-request-charged";
    var _xafhxars = "x-amz-fwd-header-x-amz-replication-status";
    var _xafhxasc = "x-amz-fwd-header-x-amz-storage-class";
    var _xafhxasse = "x-amz-fwd-header-x-amz-server-side-encryption";
    var _xafhxasseakki = "x-amz-fwd-header-x-amz-server-side-encryption-aws-kms-key-id";
    var _xafhxassebke = "x-amz-fwd-header-x-amz-server-side-encryption-bucket-key-enabled";
    var _xafhxasseca = "x-amz-fwd-header-x-amz-server-side-encryption-customer-algorithm";
    var _xafhxasseckm = "x-amz-fwd-header-x-amz-server-side-encryption-customer-key-md5";
    var _xafhxatc = "x-amz-fwd-header-x-amz-tagging-count";
    var _xafhxavi = "x-amz-fwd-header-x-amz-version-id";
    var _xafs = "x-amz-fwd-status";
    var _xagfc = "x-amz-grant-full-control";
    var _xagr = "x-amz-grant-read";
    var _xagra = "x-amz-grant-read-acp";
    var _xagw = "x-amz-grant-write";
    var _xagwa = "x-amz-grant-write-acp";
    var _xaimit = "x-amz-if-match-initiated-time";
    var _xaimlmt = "x-amz-if-match-last-modified-time";
    var _xaims = "x-amz-if-match-size";
    var _xam = "x-amz-mfa";
    var _xamd = "x-amz-metadata-directive";
    var _xamm = "x-amz-missing-meta";
    var _xamos = "x-amz-mp-object-size";
    var _xamp = "x-amz-max-parts";
    var _xampc = "x-amz-mp-parts-count";
    var _xaoa = "x-amz-object-attributes";
    var _xaollh = "x-amz-object-lock-legal-hold";
    var _xaolm = "x-amz-object-lock-mode";
    var _xaolrud = "x-amz-object-lock-retain-until-date";
    var _xaoo = "x-amz-object-ownership";
    var _xaooa = "x-amz-optional-object-attributes";
    var _xaos = "x-amz-object-size";
    var _xapnm = "x-amz-part-number-marker";
    var _xar = "x-amz-restore";
    var _xarc = "x-amz-request-charged";
    var _xarop = "x-amz-restore-output-path";
    var _xarp = "x-amz-request-payer";
    var _xarr = "x-amz-request-route";
    var _xars = "x-amz-rename-source";
    var _xars_ = "x-amz-replication-status";
    var _xarsim = "x-amz-rename-source-if-match";
    var _xarsims = "x-amz-rename-source-if-modified-since";
    var _xarsinm = "x-amz-rename-source-if-none-match";
    var _xarsius = "x-amz-rename-source-if-unmodified-since";
    var _xart = "x-amz-request-token";
    var _xasc = "x-amz-storage-class";
    var _xasca = "x-amz-sdk-checksum-algorithm";
    var _xasdv = "x-amz-skip-destination-validation";
    var _xasebo = "x-amz-source-expected-bucket-owner";
    var _xasse = "x-amz-server-side-encryption";
    var _xasseakki = "x-amz-server-side-encryption-aws-kms-key-id";
    var _xassebke = "x-amz-server-side-encryption-bucket-key-enabled";
    var _xassec = "x-amz-server-side-encryption-context";
    var _xasseca = "x-amz-server-side-encryption-customer-algorithm";
    var _xasseck = "x-amz-server-side-encryption-customer-key";
    var _xasseckm = "x-amz-server-side-encryption-customer-key-md5";
    var _xat = "x-amz-tagging";
    var _xatc = "x-amz-tagging-count";
    var _xatd = "x-amz-tagging-directive";
    var _xatdmos = "x-amz-transition-default-minimum-object-size";
    var _xavi = "x-amz-version-id";
    var _xawob = "x-amz-write-offset-bytes";
    var _xawrl = "x-amz-website-redirect-location";
    var _xi = "x-id";
    var CreateSessionCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      DisableS3ExpressSessionAuth: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_s3.getThrow200ExceptionsPlugin)(config)
      ];
    }).s("AmazonS3", "CreateSession", {}).n("S3Client", "CreateSessionCommand").f(CreateSessionRequestFilterSensitiveLog, CreateSessionOutputFilterSensitiveLog).ser(se_CreateSessionCommand).de(de_CreateSessionCommand).build() {
      static {
        __name(this, "CreateSessionCommand");
      }
      static {
        __name2(this, "CreateSessionCommand");
      }
    };
    var import_runtimeConfig5 = require_runtimeConfig3();
    var import_region_config_resolver3 = require_dist_cjs45();
    var getHttpAuthExtensionConfiguration3 = /* @__PURE__ */ __name2((runtimeConfig) => {
      const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
      let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
      let _credentials = runtimeConfig.credentials;
      return {
        setHttpAuthScheme(httpAuthScheme) {
          const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
          if (index === -1) {
            _httpAuthSchemes.push(httpAuthScheme);
          } else {
            _httpAuthSchemes.splice(index, 1, httpAuthScheme);
          }
        },
        httpAuthSchemes() {
          return _httpAuthSchemes;
        },
        setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
          _httpAuthSchemeProvider = httpAuthSchemeProvider;
        },
        httpAuthSchemeProvider() {
          return _httpAuthSchemeProvider;
        },
        setCredentials(credentials) {
          _credentials = credentials;
        },
        credentials() {
          return _credentials;
        }
      };
    }, "getHttpAuthExtensionConfiguration");
    var resolveHttpAuthRuntimeConfig3 = /* @__PURE__ */ __name2((config) => {
      return {
        httpAuthSchemes: config.httpAuthSchemes(),
        httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
        credentials: config.credentials()
      };
    }, "resolveHttpAuthRuntimeConfig");
    var resolveRuntimeExtensions3 = /* @__PURE__ */ __name2((runtimeConfig, extensions) => {
      const extensionConfiguration = Object.assign(
        (0, import_region_config_resolver3.getAwsRegionExtensionConfiguration)(runtimeConfig),
        (0, import_smithy_client28.getDefaultExtensionConfiguration)(runtimeConfig),
        (0, import_protocol_http16.getHttpHandlerExtensionConfiguration)(runtimeConfig),
        getHttpAuthExtensionConfiguration3(runtimeConfig)
      );
      extensions.forEach((extension) => extension.configure(extensionConfiguration));
      return Object.assign(
        runtimeConfig,
        (0, import_region_config_resolver3.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
        (0, import_smithy_client28.resolveDefaultRuntimeConfig)(extensionConfiguration),
        (0, import_protocol_http16.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
        resolveHttpAuthRuntimeConfig3(extensionConfiguration)
      );
    }, "resolveRuntimeExtensions");
    var S3Client4 = class extends import_smithy_client28.Client {
      static {
        __name(this, "S3Client");
      }
      static {
        __name2(this, "S3Client");
      }
      /**
       * The resolved configuration of S3Client class. This is resolved and normalized from the {@link S3ClientConfig | constructor configuration interface}.
       */
      config;
      constructor(...[configuration]) {
        const _config_0 = (0, import_runtimeConfig5.getRuntimeConfig)(configuration || {});
        super(_config_0);
        this.initConfig = _config_0;
        const _config_1 = resolveClientEndpointParameters3(_config_0);
        const _config_2 = (0, import_middleware_user_agent3.resolveUserAgentConfig)(_config_1);
        const _config_3 = (0, import_middleware_flexible_checksums.resolveFlexibleChecksumsConfig)(_config_2);
        const _config_4 = (0, import_middleware_retry5.resolveRetryConfig)(_config_3);
        const _config_5 = (0, import_config_resolver6.resolveRegionConfig)(_config_4);
        const _config_6 = (0, import_middleware_host_header3.resolveHostHeaderConfig)(_config_5);
        const _config_7 = (0, import_middleware_endpoint8.resolveEndpointConfig)(_config_6);
        const _config_8 = (0, import_eventstream_serde_config_resolver.resolveEventStreamSerdeConfig)(_config_7);
        const _config_9 = (0, import_httpAuthSchemeProvider5.resolveHttpAuthSchemeConfig)(_config_8);
        const _config_10 = (0, import_middleware_sdk_s32.resolveS3Config)(_config_9, { session: [() => this, CreateSessionCommand] });
        const _config_11 = resolveRuntimeExtensions3(_config_10, configuration?.extensions || []);
        this.config = _config_11;
        this.middlewareStack.use((0, import_middleware_user_agent3.getUserAgentPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_retry5.getRetryPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_content_length3.getContentLengthPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_host_header3.getHostHeaderPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_logger3.getLoggerPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_recursion_detection3.getRecursionDetectionPlugin)(this.config));
        this.middlewareStack.use(
          (0, import_core32.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
            httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider5.defaultS3HttpAuthSchemeParametersProvider,
            identityProviderConfigProvider: /* @__PURE__ */ __name2(async (config) => new import_core32.DefaultIdentityProviderConfig({
              "aws.auth#sigv4": config.credentials,
              "aws.auth#sigv4a": config.credentials
            }), "identityProviderConfigProvider")
          })
        );
        this.middlewareStack.use((0, import_core32.getHttpSigningPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_sdk_s32.getValidateBucketNamePlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_expect_continue.getAddExpectContinuePlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_sdk_s32.getRegionRedirectMiddlewarePlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_sdk_s32.getS3ExpressPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_sdk_s32.getS3ExpressHttpSigningPlugin)(this.config));
      }
      /**
       * Destroy underlying resources, like sockets. It's usually not necessary to do this.
       * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
       * Otherwise, sockets might stay open for quite a long time before the server terminates them.
       */
      destroy() {
        super.destroy();
      }
    };
    var import_middleware_sdk_s33 = require_dist_cjs61();
    var AbortMultipartUploadCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      Bucket: { type: "contextParams", name: "Bucket" },
      Key: { type: "contextParams", name: "Key" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_s33.getThrow200ExceptionsPlugin)(config)
      ];
    }).s("AmazonS3", "AbortMultipartUpload", {}).n("S3Client", "AbortMultipartUploadCommand").f(void 0, void 0).ser(se_AbortMultipartUploadCommand).de(de_AbortMultipartUploadCommand).build() {
      static {
        __name(this, "AbortMultipartUploadCommand");
      }
      static {
        __name2(this, "AbortMultipartUploadCommand");
      }
    };
    var import_middleware_sdk_s34 = require_dist_cjs61();
    var import_middleware_ssec = require_dist_cjs69();
    var CompleteMultipartUploadCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      Bucket: { type: "contextParams", name: "Bucket" },
      Key: { type: "contextParams", name: "Key" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_s34.getThrow200ExceptionsPlugin)(config),
        (0, import_middleware_ssec.getSsecPlugin)(config)
      ];
    }).s("AmazonS3", "CompleteMultipartUpload", {}).n("S3Client", "CompleteMultipartUploadCommand").f(CompleteMultipartUploadRequestFilterSensitiveLog, CompleteMultipartUploadOutputFilterSensitiveLog).ser(se_CompleteMultipartUploadCommand).de(de_CompleteMultipartUploadCommand).build() {
      static {
        __name(this, "CompleteMultipartUploadCommand");
      }
      static {
        __name2(this, "CompleteMultipartUploadCommand");
      }
    };
    var import_middleware_sdk_s35 = require_dist_cjs61();
    var CopyObjectCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      DisableS3ExpressSessionAuth: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" },
      Key: { type: "contextParams", name: "Key" },
      CopySource: { type: "contextParams", name: "CopySource" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_s35.getThrow200ExceptionsPlugin)(config),
        (0, import_middleware_ssec.getSsecPlugin)(config)
      ];
    }).s("AmazonS3", "CopyObject", {}).n("S3Client", "CopyObjectCommand").f(CopyObjectRequestFilterSensitiveLog, CopyObjectOutputFilterSensitiveLog).ser(se_CopyObjectCommand).de(de_CopyObjectCommand).build() {
      static {
        __name(this, "CopyObjectCommand");
      }
      static {
        __name2(this, "CopyObjectCommand");
      }
    };
    var import_middleware_location_constraint = require_dist_cjs70();
    var import_middleware_sdk_s36 = require_dist_cjs61();
    var CreateBucketCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      DisableAccessPoints: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_s36.getThrow200ExceptionsPlugin)(config),
        (0, import_middleware_location_constraint.getLocationConstraintPlugin)(config)
      ];
    }).s("AmazonS3", "CreateBucket", {}).n("S3Client", "CreateBucketCommand").f(void 0, void 0).ser(se_CreateBucketCommand).de(de_CreateBucketCommand).build() {
      static {
        __name(this, "CreateBucketCommand");
      }
      static {
        __name2(this, "CreateBucketCommand");
      }
    };
    var CreateBucketMetadataConfigurationCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
          requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
          requestChecksumRequired: true
        })
      ];
    }).s("AmazonS3", "CreateBucketMetadataConfiguration", {}).n("S3Client", "CreateBucketMetadataConfigurationCommand").f(void 0, void 0).ser(se_CreateBucketMetadataConfigurationCommand).de(de_CreateBucketMetadataConfigurationCommand).build() {
      static {
        __name(this, "CreateBucketMetadataConfigurationCommand");
      }
      static {
        __name2(this, "CreateBucketMetadataConfigurationCommand");
      }
    };
    var CreateBucketMetadataTableConfigurationCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
          requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
          requestChecksumRequired: true
        })
      ];
    }).s("AmazonS3", "CreateBucketMetadataTableConfiguration", {}).n("S3Client", "CreateBucketMetadataTableConfigurationCommand").f(void 0, void 0).ser(se_CreateBucketMetadataTableConfigurationCommand).de(de_CreateBucketMetadataTableConfigurationCommand).build() {
      static {
        __name(this, "CreateBucketMetadataTableConfigurationCommand");
      }
      static {
        __name2(this, "CreateBucketMetadataTableConfigurationCommand");
      }
    };
    var import_middleware_sdk_s37 = require_dist_cjs61();
    var CreateMultipartUploadCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      Bucket: { type: "contextParams", name: "Bucket" },
      Key: { type: "contextParams", name: "Key" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_s37.getThrow200ExceptionsPlugin)(config),
        (0, import_middleware_ssec.getSsecPlugin)(config)
      ];
    }).s("AmazonS3", "CreateMultipartUpload", {}).n("S3Client", "CreateMultipartUploadCommand").f(CreateMultipartUploadRequestFilterSensitiveLog, CreateMultipartUploadOutputFilterSensitiveLog).ser(se_CreateMultipartUploadCommand).de(de_CreateMultipartUploadCommand).build() {
      static {
        __name(this, "CreateMultipartUploadCommand");
      }
      static {
        __name2(this, "CreateMultipartUploadCommand");
      }
    };
    var DeleteBucketAnalyticsConfigurationCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonS3", "DeleteBucketAnalyticsConfiguration", {}).n("S3Client", "DeleteBucketAnalyticsConfigurationCommand").f(void 0, void 0).ser(se_DeleteBucketAnalyticsConfigurationCommand).de(de_DeleteBucketAnalyticsConfigurationCommand).build() {
      static {
        __name(this, "DeleteBucketAnalyticsConfigurationCommand");
      }
      static {
        __name2(this, "DeleteBucketAnalyticsConfigurationCommand");
      }
    };
    var DeleteBucketCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonS3", "DeleteBucket", {}).n("S3Client", "DeleteBucketCommand").f(void 0, void 0).ser(se_DeleteBucketCommand).de(de_DeleteBucketCommand).build() {
      static {
        __name(this, "DeleteBucketCommand");
      }
      static {
        __name2(this, "DeleteBucketCommand");
      }
    };
    var DeleteBucketCorsCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonS3", "DeleteBucketCors", {}).n("S3Client", "DeleteBucketCorsCommand").f(void 0, void 0).ser(se_DeleteBucketCorsCommand).de(de_DeleteBucketCorsCommand).build() {
      static {
        __name(this, "DeleteBucketCorsCommand");
      }
      static {
        __name2(this, "DeleteBucketCorsCommand");
      }
    };
    var DeleteBucketEncryptionCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonS3", "DeleteBucketEncryption", {}).n("S3Client", "DeleteBucketEncryptionCommand").f(void 0, void 0).ser(se_DeleteBucketEncryptionCommand).de(de_DeleteBucketEncryptionCommand).build() {
      static {
        __name(this, "DeleteBucketEncryptionCommand");
      }
      static {
        __name2(this, "DeleteBucketEncryptionCommand");
      }
    };
    var DeleteBucketIntelligentTieringConfigurationCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonS3", "DeleteBucketIntelligentTieringConfiguration", {}).n("S3Client", "DeleteBucketIntelligentTieringConfigurationCommand").f(void 0, void 0).ser(se_DeleteBucketIntelligentTieringConfigurationCommand).de(de_DeleteBucketIntelligentTieringConfigurationCommand).build() {
      static {
        __name(this, "DeleteBucketIntelligentTieringConfigurationCommand");
      }
      static {
        __name2(this, "DeleteBucketIntelligentTieringConfigurationCommand");
      }
    };
    var DeleteBucketInventoryConfigurationCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonS3", "DeleteBucketInventoryConfiguration", {}).n("S3Client", "DeleteBucketInventoryConfigurationCommand").f(void 0, void 0).ser(se_DeleteBucketInventoryConfigurationCommand).de(de_DeleteBucketInventoryConfigurationCommand).build() {
      static {
        __name(this, "DeleteBucketInventoryConfigurationCommand");
      }
      static {
        __name2(this, "DeleteBucketInventoryConfigurationCommand");
      }
    };
    var DeleteBucketLifecycleCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonS3", "DeleteBucketLifecycle", {}).n("S3Client", "DeleteBucketLifecycleCommand").f(void 0, void 0).ser(se_DeleteBucketLifecycleCommand).de(de_DeleteBucketLifecycleCommand).build() {
      static {
        __name(this, "DeleteBucketLifecycleCommand");
      }
      static {
        __name2(this, "DeleteBucketLifecycleCommand");
      }
    };
    var DeleteBucketMetadataConfigurationCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonS3", "DeleteBucketMetadataConfiguration", {}).n("S3Client", "DeleteBucketMetadataConfigurationCommand").f(void 0, void 0).ser(se_DeleteBucketMetadataConfigurationCommand).de(de_DeleteBucketMetadataConfigurationCommand).build() {
      static {
        __name(this, "DeleteBucketMetadataConfigurationCommand");
      }
      static {
        __name2(this, "DeleteBucketMetadataConfigurationCommand");
      }
    };
    var DeleteBucketMetadataTableConfigurationCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonS3", "DeleteBucketMetadataTableConfiguration", {}).n("S3Client", "DeleteBucketMetadataTableConfigurationCommand").f(void 0, void 0).ser(se_DeleteBucketMetadataTableConfigurationCommand).de(de_DeleteBucketMetadataTableConfigurationCommand).build() {
      static {
        __name(this, "DeleteBucketMetadataTableConfigurationCommand");
      }
      static {
        __name2(this, "DeleteBucketMetadataTableConfigurationCommand");
      }
    };
    var DeleteBucketMetricsConfigurationCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonS3", "DeleteBucketMetricsConfiguration", {}).n("S3Client", "DeleteBucketMetricsConfigurationCommand").f(void 0, void 0).ser(se_DeleteBucketMetricsConfigurationCommand).de(de_DeleteBucketMetricsConfigurationCommand).build() {
      static {
        __name(this, "DeleteBucketMetricsConfigurationCommand");
      }
      static {
        __name2(this, "DeleteBucketMetricsConfigurationCommand");
      }
    };
    var DeleteBucketOwnershipControlsCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonS3", "DeleteBucketOwnershipControls", {}).n("S3Client", "DeleteBucketOwnershipControlsCommand").f(void 0, void 0).ser(se_DeleteBucketOwnershipControlsCommand).de(de_DeleteBucketOwnershipControlsCommand).build() {
      static {
        __name(this, "DeleteBucketOwnershipControlsCommand");
      }
      static {
        __name2(this, "DeleteBucketOwnershipControlsCommand");
      }
    };
    var DeleteBucketPolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonS3", "DeleteBucketPolicy", {}).n("S3Client", "DeleteBucketPolicyCommand").f(void 0, void 0).ser(se_DeleteBucketPolicyCommand).de(de_DeleteBucketPolicyCommand).build() {
      static {
        __name(this, "DeleteBucketPolicyCommand");
      }
      static {
        __name2(this, "DeleteBucketPolicyCommand");
      }
    };
    var DeleteBucketReplicationCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonS3", "DeleteBucketReplication", {}).n("S3Client", "DeleteBucketReplicationCommand").f(void 0, void 0).ser(se_DeleteBucketReplicationCommand).de(de_DeleteBucketReplicationCommand).build() {
      static {
        __name(this, "DeleteBucketReplicationCommand");
      }
      static {
        __name2(this, "DeleteBucketReplicationCommand");
      }
    };
    var DeleteBucketTaggingCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonS3", "DeleteBucketTagging", {}).n("S3Client", "DeleteBucketTaggingCommand").f(void 0, void 0).ser(se_DeleteBucketTaggingCommand).de(de_DeleteBucketTaggingCommand).build() {
      static {
        __name(this, "DeleteBucketTaggingCommand");
      }
      static {
        __name2(this, "DeleteBucketTaggingCommand");
      }
    };
    var DeleteBucketWebsiteCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonS3", "DeleteBucketWebsite", {}).n("S3Client", "DeleteBucketWebsiteCommand").f(void 0, void 0).ser(se_DeleteBucketWebsiteCommand).de(de_DeleteBucketWebsiteCommand).build() {
      static {
        __name(this, "DeleteBucketWebsiteCommand");
      }
      static {
        __name2(this, "DeleteBucketWebsiteCommand");
      }
    };
    var import_middleware_sdk_s38 = require_dist_cjs61();
    var DeleteObjectCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      Bucket: { type: "contextParams", name: "Bucket" },
      Key: { type: "contextParams", name: "Key" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_s38.getThrow200ExceptionsPlugin)(config)
      ];
    }).s("AmazonS3", "DeleteObject", {}).n("S3Client", "DeleteObjectCommand").f(void 0, void 0).ser(se_DeleteObjectCommand).de(de_DeleteObjectCommand).build() {
      static {
        __name(this, "DeleteObjectCommand");
      }
      static {
        __name2(this, "DeleteObjectCommand");
      }
    };
    var import_middleware_sdk_s39 = require_dist_cjs61();
    var DeleteObjectsCommand2 = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
          requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
          requestChecksumRequired: true
        }),
        (0, import_middleware_sdk_s39.getThrow200ExceptionsPlugin)(config)
      ];
    }).s("AmazonS3", "DeleteObjects", {}).n("S3Client", "DeleteObjectsCommand").f(void 0, void 0).ser(se_DeleteObjectsCommand).de(de_DeleteObjectsCommand).build() {
      static {
        __name(this, "DeleteObjectsCommand");
      }
      static {
        __name2(this, "DeleteObjectsCommand");
      }
    };
    var import_middleware_sdk_s310 = require_dist_cjs61();
    var DeleteObjectTaggingCommand2 = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_s310.getThrow200ExceptionsPlugin)(config)
      ];
    }).s("AmazonS3", "DeleteObjectTagging", {}).n("S3Client", "DeleteObjectTaggingCommand").f(void 0, void 0).ser(se_DeleteObjectTaggingCommand).de(de_DeleteObjectTaggingCommand).build() {
      static {
        __name(this, "DeleteObjectTaggingCommand");
      }
      static {
        __name2(this, "DeleteObjectTaggingCommand");
      }
    };
    var DeletePublicAccessBlockCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonS3", "DeletePublicAccessBlock", {}).n("S3Client", "DeletePublicAccessBlockCommand").f(void 0, void 0).ser(se_DeletePublicAccessBlockCommand).de(de_DeletePublicAccessBlockCommand).build() {
      static {
        __name(this, "DeletePublicAccessBlockCommand");
      }
      static {
        __name2(this, "DeletePublicAccessBlockCommand");
      }
    };
    var import_middleware_sdk_s311 = require_dist_cjs61();
    var GetBucketAccelerateConfigurationCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_s311.getThrow200ExceptionsPlugin)(config)
      ];
    }).s("AmazonS3", "GetBucketAccelerateConfiguration", {}).n("S3Client", "GetBucketAccelerateConfigurationCommand").f(void 0, void 0).ser(se_GetBucketAccelerateConfigurationCommand).de(de_GetBucketAccelerateConfigurationCommand).build() {
      static {
        __name(this, "GetBucketAccelerateConfigurationCommand");
      }
      static {
        __name2(this, "GetBucketAccelerateConfigurationCommand");
      }
    };
    var import_middleware_sdk_s312 = require_dist_cjs61();
    var GetBucketAclCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_s312.getThrow200ExceptionsPlugin)(config)
      ];
    }).s("AmazonS3", "GetBucketAcl", {}).n("S3Client", "GetBucketAclCommand").f(void 0, void 0).ser(se_GetBucketAclCommand).de(de_GetBucketAclCommand).build() {
      static {
        __name(this, "GetBucketAclCommand");
      }
      static {
        __name2(this, "GetBucketAclCommand");
      }
    };
    var import_middleware_sdk_s313 = require_dist_cjs61();
    var GetBucketAnalyticsConfigurationCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_s313.getThrow200ExceptionsPlugin)(config)
      ];
    }).s("AmazonS3", "GetBucketAnalyticsConfiguration", {}).n("S3Client", "GetBucketAnalyticsConfigurationCommand").f(void 0, void 0).ser(se_GetBucketAnalyticsConfigurationCommand).de(de_GetBucketAnalyticsConfigurationCommand).build() {
      static {
        __name(this, "GetBucketAnalyticsConfigurationCommand");
      }
      static {
        __name2(this, "GetBucketAnalyticsConfigurationCommand");
      }
    };
    var import_middleware_sdk_s314 = require_dist_cjs61();
    var GetBucketCorsCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_s314.getThrow200ExceptionsPlugin)(config)
      ];
    }).s("AmazonS3", "GetBucketCors", {}).n("S3Client", "GetBucketCorsCommand").f(void 0, void 0).ser(se_GetBucketCorsCommand).de(de_GetBucketCorsCommand).build() {
      static {
        __name(this, "GetBucketCorsCommand");
      }
      static {
        __name2(this, "GetBucketCorsCommand");
      }
    };
    var import_middleware_sdk_s315 = require_dist_cjs61();
    var GetBucketEncryptionCommand3 = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_s315.getThrow200ExceptionsPlugin)(config)
      ];
    }).s("AmazonS3", "GetBucketEncryption", {}).n("S3Client", "GetBucketEncryptionCommand").f(void 0, GetBucketEncryptionOutputFilterSensitiveLog).ser(se_GetBucketEncryptionCommand).de(de_GetBucketEncryptionCommand).build() {
      static {
        __name(this, "GetBucketEncryptionCommand");
      }
      static {
        __name2(this, "GetBucketEncryptionCommand");
      }
    };
    var import_middleware_sdk_s316 = require_dist_cjs61();
    var GetBucketIntelligentTieringConfigurationCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_s316.getThrow200ExceptionsPlugin)(config)
      ];
    }).s("AmazonS3", "GetBucketIntelligentTieringConfiguration", {}).n("S3Client", "GetBucketIntelligentTieringConfigurationCommand").f(void 0, void 0).ser(se_GetBucketIntelligentTieringConfigurationCommand).de(de_GetBucketIntelligentTieringConfigurationCommand).build() {
      static {
        __name(this, "GetBucketIntelligentTieringConfigurationCommand");
      }
      static {
        __name2(this, "GetBucketIntelligentTieringConfigurationCommand");
      }
    };
    var import_middleware_sdk_s317 = require_dist_cjs61();
    var GetBucketInventoryConfigurationCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_s317.getThrow200ExceptionsPlugin)(config)
      ];
    }).s("AmazonS3", "GetBucketInventoryConfiguration", {}).n("S3Client", "GetBucketInventoryConfigurationCommand").f(void 0, GetBucketInventoryConfigurationOutputFilterSensitiveLog).ser(se_GetBucketInventoryConfigurationCommand).de(de_GetBucketInventoryConfigurationCommand).build() {
      static {
        __name(this, "GetBucketInventoryConfigurationCommand");
      }
      static {
        __name2(this, "GetBucketInventoryConfigurationCommand");
      }
    };
    var import_middleware_sdk_s318 = require_dist_cjs61();
    var GetBucketLifecycleConfigurationCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_s318.getThrow200ExceptionsPlugin)(config)
      ];
    }).s("AmazonS3", "GetBucketLifecycleConfiguration", {}).n("S3Client", "GetBucketLifecycleConfigurationCommand").f(void 0, void 0).ser(se_GetBucketLifecycleConfigurationCommand).de(de_GetBucketLifecycleConfigurationCommand).build() {
      static {
        __name(this, "GetBucketLifecycleConfigurationCommand");
      }
      static {
        __name2(this, "GetBucketLifecycleConfigurationCommand");
      }
    };
    var import_middleware_sdk_s319 = require_dist_cjs61();
    var GetBucketLocationCommand3 = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_s319.getThrow200ExceptionsPlugin)(config)
      ];
    }).s("AmazonS3", "GetBucketLocation", {}).n("S3Client", "GetBucketLocationCommand").f(void 0, void 0).ser(se_GetBucketLocationCommand).de(de_GetBucketLocationCommand).build() {
      static {
        __name(this, "GetBucketLocationCommand");
      }
      static {
        __name2(this, "GetBucketLocationCommand");
      }
    };
    var import_middleware_sdk_s320 = require_dist_cjs61();
    var GetBucketLoggingCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_s320.getThrow200ExceptionsPlugin)(config)
      ];
    }).s("AmazonS3", "GetBucketLogging", {}).n("S3Client", "GetBucketLoggingCommand").f(void 0, void 0).ser(se_GetBucketLoggingCommand).de(de_GetBucketLoggingCommand).build() {
      static {
        __name(this, "GetBucketLoggingCommand");
      }
      static {
        __name2(this, "GetBucketLoggingCommand");
      }
    };
    var import_middleware_sdk_s321 = require_dist_cjs61();
    var GetBucketMetadataConfigurationCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_s321.getThrow200ExceptionsPlugin)(config)
      ];
    }).s("AmazonS3", "GetBucketMetadataConfiguration", {}).n("S3Client", "GetBucketMetadataConfigurationCommand").f(void 0, void 0).ser(se_GetBucketMetadataConfigurationCommand).de(de_GetBucketMetadataConfigurationCommand).build() {
      static {
        __name(this, "GetBucketMetadataConfigurationCommand");
      }
      static {
        __name2(this, "GetBucketMetadataConfigurationCommand");
      }
    };
    var import_middleware_sdk_s322 = require_dist_cjs61();
    var GetBucketMetadataTableConfigurationCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_s322.getThrow200ExceptionsPlugin)(config)
      ];
    }).s("AmazonS3", "GetBucketMetadataTableConfiguration", {}).n("S3Client", "GetBucketMetadataTableConfigurationCommand").f(void 0, void 0).ser(se_GetBucketMetadataTableConfigurationCommand).de(de_GetBucketMetadataTableConfigurationCommand).build() {
      static {
        __name(this, "GetBucketMetadataTableConfigurationCommand");
      }
      static {
        __name2(this, "GetBucketMetadataTableConfigurationCommand");
      }
    };
    var import_middleware_sdk_s323 = require_dist_cjs61();
    var GetBucketMetricsConfigurationCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_s323.getThrow200ExceptionsPlugin)(config)
      ];
    }).s("AmazonS3", "GetBucketMetricsConfiguration", {}).n("S3Client", "GetBucketMetricsConfigurationCommand").f(void 0, void 0).ser(se_GetBucketMetricsConfigurationCommand).de(de_GetBucketMetricsConfigurationCommand).build() {
      static {
        __name(this, "GetBucketMetricsConfigurationCommand");
      }
      static {
        __name2(this, "GetBucketMetricsConfigurationCommand");
      }
    };
    var import_middleware_sdk_s324 = require_dist_cjs61();
    var GetBucketNotificationConfigurationCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_s324.getThrow200ExceptionsPlugin)(config)
      ];
    }).s("AmazonS3", "GetBucketNotificationConfiguration", {}).n("S3Client", "GetBucketNotificationConfigurationCommand").f(void 0, void 0).ser(se_GetBucketNotificationConfigurationCommand).de(de_GetBucketNotificationConfigurationCommand).build() {
      static {
        __name(this, "GetBucketNotificationConfigurationCommand");
      }
      static {
        __name2(this, "GetBucketNotificationConfigurationCommand");
      }
    };
    var import_middleware_sdk_s325 = require_dist_cjs61();
    var GetBucketOwnershipControlsCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_s325.getThrow200ExceptionsPlugin)(config)
      ];
    }).s("AmazonS3", "GetBucketOwnershipControls", {}).n("S3Client", "GetBucketOwnershipControlsCommand").f(void 0, void 0).ser(se_GetBucketOwnershipControlsCommand).de(de_GetBucketOwnershipControlsCommand).build() {
      static {
        __name(this, "GetBucketOwnershipControlsCommand");
      }
      static {
        __name2(this, "GetBucketOwnershipControlsCommand");
      }
    };
    var import_middleware_sdk_s326 = require_dist_cjs61();
    var GetBucketPolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_s326.getThrow200ExceptionsPlugin)(config)
      ];
    }).s("AmazonS3", "GetBucketPolicy", {}).n("S3Client", "GetBucketPolicyCommand").f(void 0, void 0).ser(se_GetBucketPolicyCommand).de(de_GetBucketPolicyCommand).build() {
      static {
        __name(this, "GetBucketPolicyCommand");
      }
      static {
        __name2(this, "GetBucketPolicyCommand");
      }
    };
    var import_middleware_sdk_s327 = require_dist_cjs61();
    var GetBucketPolicyStatusCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_s327.getThrow200ExceptionsPlugin)(config)
      ];
    }).s("AmazonS3", "GetBucketPolicyStatus", {}).n("S3Client", "GetBucketPolicyStatusCommand").f(void 0, void 0).ser(se_GetBucketPolicyStatusCommand).de(de_GetBucketPolicyStatusCommand).build() {
      static {
        __name(this, "GetBucketPolicyStatusCommand");
      }
      static {
        __name2(this, "GetBucketPolicyStatusCommand");
      }
    };
    var import_middleware_sdk_s328 = require_dist_cjs61();
    var GetBucketReplicationCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_s328.getThrow200ExceptionsPlugin)(config)
      ];
    }).s("AmazonS3", "GetBucketReplication", {}).n("S3Client", "GetBucketReplicationCommand").f(void 0, void 0).ser(se_GetBucketReplicationCommand).de(de_GetBucketReplicationCommand).build() {
      static {
        __name(this, "GetBucketReplicationCommand");
      }
      static {
        __name2(this, "GetBucketReplicationCommand");
      }
    };
    var import_middleware_sdk_s329 = require_dist_cjs61();
    var GetBucketRequestPaymentCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_s329.getThrow200ExceptionsPlugin)(config)
      ];
    }).s("AmazonS3", "GetBucketRequestPayment", {}).n("S3Client", "GetBucketRequestPaymentCommand").f(void 0, void 0).ser(se_GetBucketRequestPaymentCommand).de(de_GetBucketRequestPaymentCommand).build() {
      static {
        __name(this, "GetBucketRequestPaymentCommand");
      }
      static {
        __name2(this, "GetBucketRequestPaymentCommand");
      }
    };
    var import_middleware_sdk_s330 = require_dist_cjs61();
    var GetBucketTaggingCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_s330.getThrow200ExceptionsPlugin)(config)
      ];
    }).s("AmazonS3", "GetBucketTagging", {}).n("S3Client", "GetBucketTaggingCommand").f(void 0, void 0).ser(se_GetBucketTaggingCommand).de(de_GetBucketTaggingCommand).build() {
      static {
        __name(this, "GetBucketTaggingCommand");
      }
      static {
        __name2(this, "GetBucketTaggingCommand");
      }
    };
    var import_middleware_sdk_s331 = require_dist_cjs61();
    var GetBucketVersioningCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_s331.getThrow200ExceptionsPlugin)(config)
      ];
    }).s("AmazonS3", "GetBucketVersioning", {}).n("S3Client", "GetBucketVersioningCommand").f(void 0, void 0).ser(se_GetBucketVersioningCommand).de(de_GetBucketVersioningCommand).build() {
      static {
        __name(this, "GetBucketVersioningCommand");
      }
      static {
        __name2(this, "GetBucketVersioningCommand");
      }
    };
    var import_middleware_sdk_s332 = require_dist_cjs61();
    var GetBucketWebsiteCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_s332.getThrow200ExceptionsPlugin)(config)
      ];
    }).s("AmazonS3", "GetBucketWebsite", {}).n("S3Client", "GetBucketWebsiteCommand").f(void 0, void 0).ser(se_GetBucketWebsiteCommand).de(de_GetBucketWebsiteCommand).build() {
      static {
        __name(this, "GetBucketWebsiteCommand");
      }
      static {
        __name2(this, "GetBucketWebsiteCommand");
      }
    };
    var import_middleware_sdk_s333 = require_dist_cjs61();
    var GetObjectAclCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      Bucket: { type: "contextParams", name: "Bucket" },
      Key: { type: "contextParams", name: "Key" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_s333.getThrow200ExceptionsPlugin)(config)
      ];
    }).s("AmazonS3", "GetObjectAcl", {}).n("S3Client", "GetObjectAclCommand").f(void 0, void 0).ser(se_GetObjectAclCommand).de(de_GetObjectAclCommand).build() {
      static {
        __name(this, "GetObjectAclCommand");
      }
      static {
        __name2(this, "GetObjectAclCommand");
      }
    };
    var import_middleware_sdk_s334 = require_dist_cjs61();
    var GetObjectAttributesCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_s334.getThrow200ExceptionsPlugin)(config),
        (0, import_middleware_ssec.getSsecPlugin)(config)
      ];
    }).s("AmazonS3", "GetObjectAttributes", {}).n("S3Client", "GetObjectAttributesCommand").f(GetObjectAttributesRequestFilterSensitiveLog, void 0).ser(se_GetObjectAttributesCommand).de(de_GetObjectAttributesCommand).build() {
      static {
        __name(this, "GetObjectAttributesCommand");
      }
      static {
        __name2(this, "GetObjectAttributesCommand");
      }
    };
    var import_middleware_sdk_s335 = require_dist_cjs61();
    var GetObjectCommand2 = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      Bucket: { type: "contextParams", name: "Bucket" },
      Key: { type: "contextParams", name: "Key" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
          requestChecksumRequired: false,
          requestValidationModeMember: "ChecksumMode",
          responseAlgorithms: ["CRC64NVME", "CRC32", "CRC32C", "SHA256", "SHA1"]
        }),
        (0, import_middleware_ssec.getSsecPlugin)(config),
        (0, import_middleware_sdk_s335.getS3ExpiresMiddlewarePlugin)(config)
      ];
    }).s("AmazonS3", "GetObject", {}).n("S3Client", "GetObjectCommand").f(GetObjectRequestFilterSensitiveLog, GetObjectOutputFilterSensitiveLog).ser(se_GetObjectCommand).de(de_GetObjectCommand).build() {
      static {
        __name(this, "GetObjectCommand");
      }
      static {
        __name2(this, "GetObjectCommand");
      }
    };
    var import_middleware_sdk_s336 = require_dist_cjs61();
    var GetObjectLegalHoldCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_s336.getThrow200ExceptionsPlugin)(config)
      ];
    }).s("AmazonS3", "GetObjectLegalHold", {}).n("S3Client", "GetObjectLegalHoldCommand").f(void 0, void 0).ser(se_GetObjectLegalHoldCommand).de(de_GetObjectLegalHoldCommand).build() {
      static {
        __name(this, "GetObjectLegalHoldCommand");
      }
      static {
        __name2(this, "GetObjectLegalHoldCommand");
      }
    };
    var import_middleware_sdk_s337 = require_dist_cjs61();
    var GetObjectLockConfigurationCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_s337.getThrow200ExceptionsPlugin)(config)
      ];
    }).s("AmazonS3", "GetObjectLockConfiguration", {}).n("S3Client", "GetObjectLockConfigurationCommand").f(void 0, void 0).ser(se_GetObjectLockConfigurationCommand).de(de_GetObjectLockConfigurationCommand).build() {
      static {
        __name(this, "GetObjectLockConfigurationCommand");
      }
      static {
        __name2(this, "GetObjectLockConfigurationCommand");
      }
    };
    var import_middleware_sdk_s338 = require_dist_cjs61();
    var GetObjectRetentionCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_s338.getThrow200ExceptionsPlugin)(config)
      ];
    }).s("AmazonS3", "GetObjectRetention", {}).n("S3Client", "GetObjectRetentionCommand").f(void 0, void 0).ser(se_GetObjectRetentionCommand).de(de_GetObjectRetentionCommand).build() {
      static {
        __name(this, "GetObjectRetentionCommand");
      }
      static {
        __name2(this, "GetObjectRetentionCommand");
      }
    };
    var import_middleware_sdk_s339 = require_dist_cjs61();
    var GetObjectTaggingCommand2 = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_s339.getThrow200ExceptionsPlugin)(config)
      ];
    }).s("AmazonS3", "GetObjectTagging", {}).n("S3Client", "GetObjectTaggingCommand").f(void 0, void 0).ser(se_GetObjectTaggingCommand).de(de_GetObjectTaggingCommand).build() {
      static {
        __name(this, "GetObjectTaggingCommand");
      }
      static {
        __name2(this, "GetObjectTaggingCommand");
      }
    };
    var GetObjectTorrentCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonS3", "GetObjectTorrent", {}).n("S3Client", "GetObjectTorrentCommand").f(void 0, GetObjectTorrentOutputFilterSensitiveLog).ser(se_GetObjectTorrentCommand).de(de_GetObjectTorrentCommand).build() {
      static {
        __name(this, "GetObjectTorrentCommand");
      }
      static {
        __name2(this, "GetObjectTorrentCommand");
      }
    };
    var import_middleware_sdk_s340 = require_dist_cjs61();
    var GetPublicAccessBlockCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_s340.getThrow200ExceptionsPlugin)(config)
      ];
    }).s("AmazonS3", "GetPublicAccessBlock", {}).n("S3Client", "GetPublicAccessBlockCommand").f(void 0, void 0).ser(se_GetPublicAccessBlockCommand).de(de_GetPublicAccessBlockCommand).build() {
      static {
        __name(this, "GetPublicAccessBlockCommand");
      }
      static {
        __name2(this, "GetPublicAccessBlockCommand");
      }
    };
    var import_middleware_sdk_s341 = require_dist_cjs61();
    var HeadBucketCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_s341.getThrow200ExceptionsPlugin)(config)
      ];
    }).s("AmazonS3", "HeadBucket", {}).n("S3Client", "HeadBucketCommand").f(void 0, void 0).ser(se_HeadBucketCommand).de(de_HeadBucketCommand).build() {
      static {
        __name(this, "HeadBucketCommand");
      }
      static {
        __name2(this, "HeadBucketCommand");
      }
    };
    var import_middleware_sdk_s342 = require_dist_cjs61();
    var HeadObjectCommand2 = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      Bucket: { type: "contextParams", name: "Bucket" },
      Key: { type: "contextParams", name: "Key" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_s342.getThrow200ExceptionsPlugin)(config),
        (0, import_middleware_ssec.getSsecPlugin)(config),
        (0, import_middleware_sdk_s342.getS3ExpiresMiddlewarePlugin)(config)
      ];
    }).s("AmazonS3", "HeadObject", {}).n("S3Client", "HeadObjectCommand").f(HeadObjectRequestFilterSensitiveLog, HeadObjectOutputFilterSensitiveLog).ser(se_HeadObjectCommand).de(de_HeadObjectCommand).build() {
      static {
        __name(this, "HeadObjectCommand");
      }
      static {
        __name2(this, "HeadObjectCommand");
      }
    };
    var import_middleware_sdk_s343 = require_dist_cjs61();
    var ListBucketAnalyticsConfigurationsCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_s343.getThrow200ExceptionsPlugin)(config)
      ];
    }).s("AmazonS3", "ListBucketAnalyticsConfigurations", {}).n("S3Client", "ListBucketAnalyticsConfigurationsCommand").f(void 0, void 0).ser(se_ListBucketAnalyticsConfigurationsCommand).de(de_ListBucketAnalyticsConfigurationsCommand).build() {
      static {
        __name(this, "ListBucketAnalyticsConfigurationsCommand");
      }
      static {
        __name2(this, "ListBucketAnalyticsConfigurationsCommand");
      }
    };
    var import_middleware_sdk_s344 = require_dist_cjs61();
    var ListBucketIntelligentTieringConfigurationsCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_s344.getThrow200ExceptionsPlugin)(config)
      ];
    }).s("AmazonS3", "ListBucketIntelligentTieringConfigurations", {}).n("S3Client", "ListBucketIntelligentTieringConfigurationsCommand").f(void 0, void 0).ser(se_ListBucketIntelligentTieringConfigurationsCommand).de(de_ListBucketIntelligentTieringConfigurationsCommand).build() {
      static {
        __name(this, "ListBucketIntelligentTieringConfigurationsCommand");
      }
      static {
        __name2(this, "ListBucketIntelligentTieringConfigurationsCommand");
      }
    };
    var import_middleware_sdk_s345 = require_dist_cjs61();
    var ListBucketInventoryConfigurationsCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_s345.getThrow200ExceptionsPlugin)(config)
      ];
    }).s("AmazonS3", "ListBucketInventoryConfigurations", {}).n("S3Client", "ListBucketInventoryConfigurationsCommand").f(void 0, ListBucketInventoryConfigurationsOutputFilterSensitiveLog).ser(se_ListBucketInventoryConfigurationsCommand).de(de_ListBucketInventoryConfigurationsCommand).build() {
      static {
        __name(this, "ListBucketInventoryConfigurationsCommand");
      }
      static {
        __name2(this, "ListBucketInventoryConfigurationsCommand");
      }
    };
    var import_middleware_sdk_s346 = require_dist_cjs61();
    var ListBucketMetricsConfigurationsCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_s346.getThrow200ExceptionsPlugin)(config)
      ];
    }).s("AmazonS3", "ListBucketMetricsConfigurations", {}).n("S3Client", "ListBucketMetricsConfigurationsCommand").f(void 0, void 0).ser(se_ListBucketMetricsConfigurationsCommand).de(de_ListBucketMetricsConfigurationsCommand).build() {
      static {
        __name(this, "ListBucketMetricsConfigurationsCommand");
      }
      static {
        __name2(this, "ListBucketMetricsConfigurationsCommand");
      }
    };
    var import_middleware_sdk_s347 = require_dist_cjs61();
    var ListBucketsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_s347.getThrow200ExceptionsPlugin)(config)
      ];
    }).s("AmazonS3", "ListBuckets", {}).n("S3Client", "ListBucketsCommand").f(void 0, void 0).ser(se_ListBucketsCommand).de(de_ListBucketsCommand).build() {
      static {
        __name(this, "ListBucketsCommand");
      }
      static {
        __name2(this, "ListBucketsCommand");
      }
    };
    var import_middleware_sdk_s348 = require_dist_cjs61();
    var ListDirectoryBucketsCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_s348.getThrow200ExceptionsPlugin)(config)
      ];
    }).s("AmazonS3", "ListDirectoryBuckets", {}).n("S3Client", "ListDirectoryBucketsCommand").f(void 0, void 0).ser(se_ListDirectoryBucketsCommand).de(de_ListDirectoryBucketsCommand).build() {
      static {
        __name(this, "ListDirectoryBucketsCommand");
      }
      static {
        __name2(this, "ListDirectoryBucketsCommand");
      }
    };
    var import_middleware_sdk_s349 = require_dist_cjs61();
    var ListMultipartUploadsCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      Bucket: { type: "contextParams", name: "Bucket" },
      Prefix: { type: "contextParams", name: "Prefix" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_s349.getThrow200ExceptionsPlugin)(config)
      ];
    }).s("AmazonS3", "ListMultipartUploads", {}).n("S3Client", "ListMultipartUploadsCommand").f(void 0, void 0).ser(se_ListMultipartUploadsCommand).de(de_ListMultipartUploadsCommand).build() {
      static {
        __name(this, "ListMultipartUploadsCommand");
      }
      static {
        __name2(this, "ListMultipartUploadsCommand");
      }
    };
    var import_middleware_sdk_s350 = require_dist_cjs61();
    var ListObjectsCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      Bucket: { type: "contextParams", name: "Bucket" },
      Prefix: { type: "contextParams", name: "Prefix" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_s350.getThrow200ExceptionsPlugin)(config)
      ];
    }).s("AmazonS3", "ListObjects", {}).n("S3Client", "ListObjectsCommand").f(void 0, void 0).ser(se_ListObjectsCommand).de(de_ListObjectsCommand).build() {
      static {
        __name(this, "ListObjectsCommand");
      }
      static {
        __name2(this, "ListObjectsCommand");
      }
    };
    var import_middleware_sdk_s351 = require_dist_cjs61();
    var ListObjectsV2Command3 = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      Bucket: { type: "contextParams", name: "Bucket" },
      Prefix: { type: "contextParams", name: "Prefix" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_s351.getThrow200ExceptionsPlugin)(config)
      ];
    }).s("AmazonS3", "ListObjectsV2", {}).n("S3Client", "ListObjectsV2Command").f(void 0, void 0).ser(se_ListObjectsV2Command).de(de_ListObjectsV2Command).build() {
      static {
        __name(this, "ListObjectsV2Command");
      }
      static {
        __name2(this, "ListObjectsV2Command");
      }
    };
    var import_middleware_sdk_s352 = require_dist_cjs61();
    var ListObjectVersionsCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      Bucket: { type: "contextParams", name: "Bucket" },
      Prefix: { type: "contextParams", name: "Prefix" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_s352.getThrow200ExceptionsPlugin)(config)
      ];
    }).s("AmazonS3", "ListObjectVersions", {}).n("S3Client", "ListObjectVersionsCommand").f(void 0, void 0).ser(se_ListObjectVersionsCommand).de(de_ListObjectVersionsCommand).build() {
      static {
        __name(this, "ListObjectVersionsCommand");
      }
      static {
        __name2(this, "ListObjectVersionsCommand");
      }
    };
    var import_middleware_sdk_s353 = require_dist_cjs61();
    var ListPartsCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      Bucket: { type: "contextParams", name: "Bucket" },
      Key: { type: "contextParams", name: "Key" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_s353.getThrow200ExceptionsPlugin)(config),
        (0, import_middleware_ssec.getSsecPlugin)(config)
      ];
    }).s("AmazonS3", "ListParts", {}).n("S3Client", "ListPartsCommand").f(ListPartsRequestFilterSensitiveLog, void 0).ser(se_ListPartsCommand).de(de_ListPartsCommand).build() {
      static {
        __name(this, "ListPartsCommand");
      }
      static {
        __name2(this, "ListPartsCommand");
      }
    };
    var PutBucketAccelerateConfigurationCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
          requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
          requestChecksumRequired: false
        })
      ];
    }).s("AmazonS3", "PutBucketAccelerateConfiguration", {}).n("S3Client", "PutBucketAccelerateConfigurationCommand").f(void 0, void 0).ser(se_PutBucketAccelerateConfigurationCommand).de(de_PutBucketAccelerateConfigurationCommand).build() {
      static {
        __name(this, "PutBucketAccelerateConfigurationCommand");
      }
      static {
        __name2(this, "PutBucketAccelerateConfigurationCommand");
      }
    };
    var PutBucketAclCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
          requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
          requestChecksumRequired: true
        })
      ];
    }).s("AmazonS3", "PutBucketAcl", {}).n("S3Client", "PutBucketAclCommand").f(void 0, void 0).ser(se_PutBucketAclCommand).de(de_PutBucketAclCommand).build() {
      static {
        __name(this, "PutBucketAclCommand");
      }
      static {
        __name2(this, "PutBucketAclCommand");
      }
    };
    var PutBucketAnalyticsConfigurationCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonS3", "PutBucketAnalyticsConfiguration", {}).n("S3Client", "PutBucketAnalyticsConfigurationCommand").f(void 0, void 0).ser(se_PutBucketAnalyticsConfigurationCommand).de(de_PutBucketAnalyticsConfigurationCommand).build() {
      static {
        __name(this, "PutBucketAnalyticsConfigurationCommand");
      }
      static {
        __name2(this, "PutBucketAnalyticsConfigurationCommand");
      }
    };
    var PutBucketCorsCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
          requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
          requestChecksumRequired: true
        })
      ];
    }).s("AmazonS3", "PutBucketCors", {}).n("S3Client", "PutBucketCorsCommand").f(void 0, void 0).ser(se_PutBucketCorsCommand).de(de_PutBucketCorsCommand).build() {
      static {
        __name(this, "PutBucketCorsCommand");
      }
      static {
        __name2(this, "PutBucketCorsCommand");
      }
    };
    var PutBucketEncryptionCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
          requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
          requestChecksumRequired: true
        })
      ];
    }).s("AmazonS3", "PutBucketEncryption", {}).n("S3Client", "PutBucketEncryptionCommand").f(PutBucketEncryptionRequestFilterSensitiveLog, void 0).ser(se_PutBucketEncryptionCommand).de(de_PutBucketEncryptionCommand).build() {
      static {
        __name(this, "PutBucketEncryptionCommand");
      }
      static {
        __name2(this, "PutBucketEncryptionCommand");
      }
    };
    var PutBucketIntelligentTieringConfigurationCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonS3", "PutBucketIntelligentTieringConfiguration", {}).n("S3Client", "PutBucketIntelligentTieringConfigurationCommand").f(void 0, void 0).ser(se_PutBucketIntelligentTieringConfigurationCommand).de(de_PutBucketIntelligentTieringConfigurationCommand).build() {
      static {
        __name(this, "PutBucketIntelligentTieringConfigurationCommand");
      }
      static {
        __name2(this, "PutBucketIntelligentTieringConfigurationCommand");
      }
    };
    var PutBucketInventoryConfigurationCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonS3", "PutBucketInventoryConfiguration", {}).n("S3Client", "PutBucketInventoryConfigurationCommand").f(PutBucketInventoryConfigurationRequestFilterSensitiveLog, void 0).ser(se_PutBucketInventoryConfigurationCommand).de(de_PutBucketInventoryConfigurationCommand).build() {
      static {
        __name(this, "PutBucketInventoryConfigurationCommand");
      }
      static {
        __name2(this, "PutBucketInventoryConfigurationCommand");
      }
    };
    var import_middleware_sdk_s354 = require_dist_cjs61();
    var PutBucketLifecycleConfigurationCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
          requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
          requestChecksumRequired: true
        }),
        (0, import_middleware_sdk_s354.getThrow200ExceptionsPlugin)(config)
      ];
    }).s("AmazonS3", "PutBucketLifecycleConfiguration", {}).n("S3Client", "PutBucketLifecycleConfigurationCommand").f(void 0, void 0).ser(se_PutBucketLifecycleConfigurationCommand).de(de_PutBucketLifecycleConfigurationCommand).build() {
      static {
        __name(this, "PutBucketLifecycleConfigurationCommand");
      }
      static {
        __name2(this, "PutBucketLifecycleConfigurationCommand");
      }
    };
    var PutBucketLoggingCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
          requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
          requestChecksumRequired: true
        })
      ];
    }).s("AmazonS3", "PutBucketLogging", {}).n("S3Client", "PutBucketLoggingCommand").f(void 0, void 0).ser(se_PutBucketLoggingCommand).de(de_PutBucketLoggingCommand).build() {
      static {
        __name(this, "PutBucketLoggingCommand");
      }
      static {
        __name2(this, "PutBucketLoggingCommand");
      }
    };
    var PutBucketMetricsConfigurationCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonS3", "PutBucketMetricsConfiguration", {}).n("S3Client", "PutBucketMetricsConfigurationCommand").f(void 0, void 0).ser(se_PutBucketMetricsConfigurationCommand).de(de_PutBucketMetricsConfigurationCommand).build() {
      static {
        __name(this, "PutBucketMetricsConfigurationCommand");
      }
      static {
        __name2(this, "PutBucketMetricsConfigurationCommand");
      }
    };
    var PutBucketNotificationConfigurationCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonS3", "PutBucketNotificationConfiguration", {}).n("S3Client", "PutBucketNotificationConfigurationCommand").f(void 0, void 0).ser(se_PutBucketNotificationConfigurationCommand).de(de_PutBucketNotificationConfigurationCommand).build() {
      static {
        __name(this, "PutBucketNotificationConfigurationCommand");
      }
      static {
        __name2(this, "PutBucketNotificationConfigurationCommand");
      }
    };
    var PutBucketOwnershipControlsCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
          requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
          requestChecksumRequired: true
        })
      ];
    }).s("AmazonS3", "PutBucketOwnershipControls", {}).n("S3Client", "PutBucketOwnershipControlsCommand").f(void 0, void 0).ser(se_PutBucketOwnershipControlsCommand).de(de_PutBucketOwnershipControlsCommand).build() {
      static {
        __name(this, "PutBucketOwnershipControlsCommand");
      }
      static {
        __name2(this, "PutBucketOwnershipControlsCommand");
      }
    };
    var PutBucketPolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
          requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
          requestChecksumRequired: true
        })
      ];
    }).s("AmazonS3", "PutBucketPolicy", {}).n("S3Client", "PutBucketPolicyCommand").f(void 0, void 0).ser(se_PutBucketPolicyCommand).de(de_PutBucketPolicyCommand).build() {
      static {
        __name(this, "PutBucketPolicyCommand");
      }
      static {
        __name2(this, "PutBucketPolicyCommand");
      }
    };
    var PutBucketReplicationCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
          requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
          requestChecksumRequired: true
        })
      ];
    }).s("AmazonS3", "PutBucketReplication", {}).n("S3Client", "PutBucketReplicationCommand").f(void 0, void 0).ser(se_PutBucketReplicationCommand).de(de_PutBucketReplicationCommand).build() {
      static {
        __name(this, "PutBucketReplicationCommand");
      }
      static {
        __name2(this, "PutBucketReplicationCommand");
      }
    };
    var PutBucketRequestPaymentCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
          requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
          requestChecksumRequired: true
        })
      ];
    }).s("AmazonS3", "PutBucketRequestPayment", {}).n("S3Client", "PutBucketRequestPaymentCommand").f(void 0, void 0).ser(se_PutBucketRequestPaymentCommand).de(de_PutBucketRequestPaymentCommand).build() {
      static {
        __name(this, "PutBucketRequestPaymentCommand");
      }
      static {
        __name2(this, "PutBucketRequestPaymentCommand");
      }
    };
    var PutBucketTaggingCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
          requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
          requestChecksumRequired: true
        })
      ];
    }).s("AmazonS3", "PutBucketTagging", {}).n("S3Client", "PutBucketTaggingCommand").f(void 0, void 0).ser(se_PutBucketTaggingCommand).de(de_PutBucketTaggingCommand).build() {
      static {
        __name(this, "PutBucketTaggingCommand");
      }
      static {
        __name2(this, "PutBucketTaggingCommand");
      }
    };
    var PutBucketVersioningCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
          requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
          requestChecksumRequired: true
        })
      ];
    }).s("AmazonS3", "PutBucketVersioning", {}).n("S3Client", "PutBucketVersioningCommand").f(void 0, void 0).ser(se_PutBucketVersioningCommand).de(de_PutBucketVersioningCommand).build() {
      static {
        __name(this, "PutBucketVersioningCommand");
      }
      static {
        __name2(this, "PutBucketVersioningCommand");
      }
    };
    var PutBucketWebsiteCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
          requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
          requestChecksumRequired: true
        })
      ];
    }).s("AmazonS3", "PutBucketWebsite", {}).n("S3Client", "PutBucketWebsiteCommand").f(void 0, void 0).ser(se_PutBucketWebsiteCommand).de(de_PutBucketWebsiteCommand).build() {
      static {
        __name(this, "PutBucketWebsiteCommand");
      }
      static {
        __name2(this, "PutBucketWebsiteCommand");
      }
    };
    var import_middleware_sdk_s355 = require_dist_cjs61();
    var PutObjectAclCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      Bucket: { type: "contextParams", name: "Bucket" },
      Key: { type: "contextParams", name: "Key" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
          requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
          requestChecksumRequired: true
        }),
        (0, import_middleware_sdk_s355.getThrow200ExceptionsPlugin)(config)
      ];
    }).s("AmazonS3", "PutObjectAcl", {}).n("S3Client", "PutObjectAclCommand").f(void 0, void 0).ser(se_PutObjectAclCommand).de(de_PutObjectAclCommand).build() {
      static {
        __name(this, "PutObjectAclCommand");
      }
      static {
        __name2(this, "PutObjectAclCommand");
      }
    };
    var import_middleware_sdk_s356 = require_dist_cjs61();
    var PutObjectCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      Bucket: { type: "contextParams", name: "Bucket" },
      Key: { type: "contextParams", name: "Key" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
          requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
          requestChecksumRequired: false
        }),
        (0, import_middleware_sdk_s356.getCheckContentLengthHeaderPlugin)(config),
        (0, import_middleware_sdk_s356.getThrow200ExceptionsPlugin)(config),
        (0, import_middleware_ssec.getSsecPlugin)(config)
      ];
    }).s("AmazonS3", "PutObject", {}).n("S3Client", "PutObjectCommand").f(PutObjectRequestFilterSensitiveLog, PutObjectOutputFilterSensitiveLog).ser(se_PutObjectCommand).de(de_PutObjectCommand).build() {
      static {
        __name(this, "PutObjectCommand");
      }
      static {
        __name2(this, "PutObjectCommand");
      }
    };
    var import_middleware_sdk_s357 = require_dist_cjs61();
    var PutObjectLegalHoldCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
          requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
          requestChecksumRequired: true
        }),
        (0, import_middleware_sdk_s357.getThrow200ExceptionsPlugin)(config)
      ];
    }).s("AmazonS3", "PutObjectLegalHold", {}).n("S3Client", "PutObjectLegalHoldCommand").f(void 0, void 0).ser(se_PutObjectLegalHoldCommand).de(de_PutObjectLegalHoldCommand).build() {
      static {
        __name(this, "PutObjectLegalHoldCommand");
      }
      static {
        __name2(this, "PutObjectLegalHoldCommand");
      }
    };
    var import_middleware_sdk_s358 = require_dist_cjs61();
    var PutObjectLockConfigurationCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
          requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
          requestChecksumRequired: true
        }),
        (0, import_middleware_sdk_s358.getThrow200ExceptionsPlugin)(config)
      ];
    }).s("AmazonS3", "PutObjectLockConfiguration", {}).n("S3Client", "PutObjectLockConfigurationCommand").f(void 0, void 0).ser(se_PutObjectLockConfigurationCommand).de(de_PutObjectLockConfigurationCommand).build() {
      static {
        __name(this, "PutObjectLockConfigurationCommand");
      }
      static {
        __name2(this, "PutObjectLockConfigurationCommand");
      }
    };
    var import_middleware_sdk_s359 = require_dist_cjs61();
    var PutObjectRetentionCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
          requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
          requestChecksumRequired: true
        }),
        (0, import_middleware_sdk_s359.getThrow200ExceptionsPlugin)(config)
      ];
    }).s("AmazonS3", "PutObjectRetention", {}).n("S3Client", "PutObjectRetentionCommand").f(void 0, void 0).ser(se_PutObjectRetentionCommand).de(de_PutObjectRetentionCommand).build() {
      static {
        __name(this, "PutObjectRetentionCommand");
      }
      static {
        __name2(this, "PutObjectRetentionCommand");
      }
    };
    var import_middleware_sdk_s360 = require_dist_cjs61();
    var PutObjectTaggingCommand2 = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
          requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
          requestChecksumRequired: true
        }),
        (0, import_middleware_sdk_s360.getThrow200ExceptionsPlugin)(config)
      ];
    }).s("AmazonS3", "PutObjectTagging", {}).n("S3Client", "PutObjectTaggingCommand").f(void 0, void 0).ser(se_PutObjectTaggingCommand).de(de_PutObjectTaggingCommand).build() {
      static {
        __name(this, "PutObjectTaggingCommand");
      }
      static {
        __name2(this, "PutObjectTaggingCommand");
      }
    };
    var PutPublicAccessBlockCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
          requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
          requestChecksumRequired: true
        })
      ];
    }).s("AmazonS3", "PutPublicAccessBlock", {}).n("S3Client", "PutPublicAccessBlockCommand").f(void 0, void 0).ser(se_PutPublicAccessBlockCommand).de(de_PutPublicAccessBlockCommand).build() {
      static {
        __name(this, "PutPublicAccessBlockCommand");
      }
      static {
        __name2(this, "PutPublicAccessBlockCommand");
      }
    };
    var import_middleware_sdk_s361 = require_dist_cjs61();
    var RenameObjectCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      Bucket: { type: "contextParams", name: "Bucket" },
      Key: { type: "contextParams", name: "Key" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_s361.getThrow200ExceptionsPlugin)(config)
      ];
    }).s("AmazonS3", "RenameObject", {}).n("S3Client", "RenameObjectCommand").f(void 0, void 0).ser(se_RenameObjectCommand).de(de_RenameObjectCommand).build() {
      static {
        __name(this, "RenameObjectCommand");
      }
      static {
        __name2(this, "RenameObjectCommand");
      }
    };
    var import_middleware_sdk_s362 = require_dist_cjs61();
    var RestoreObjectCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
          requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
          requestChecksumRequired: false
        }),
        (0, import_middleware_sdk_s362.getThrow200ExceptionsPlugin)(config)
      ];
    }).s("AmazonS3", "RestoreObject", {}).n("S3Client", "RestoreObjectCommand").f(RestoreObjectRequestFilterSensitiveLog, void 0).ser(se_RestoreObjectCommand).de(de_RestoreObjectCommand).build() {
      static {
        __name(this, "RestoreObjectCommand");
      }
      static {
        __name2(this, "RestoreObjectCommand");
      }
    };
    var import_middleware_sdk_s363 = require_dist_cjs61();
    var SelectObjectContentCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_s363.getThrow200ExceptionsPlugin)(config),
        (0, import_middleware_ssec.getSsecPlugin)(config)
      ];
    }).s("AmazonS3", "SelectObjectContent", {
      /**
       * @internal
       */
      eventStream: {
        output: true
      }
    }).n("S3Client", "SelectObjectContentCommand").f(SelectObjectContentRequestFilterSensitiveLog, SelectObjectContentOutputFilterSensitiveLog).ser(se_SelectObjectContentCommand).de(de_SelectObjectContentCommand).build() {
      static {
        __name(this, "SelectObjectContentCommand");
      }
      static {
        __name2(this, "SelectObjectContentCommand");
      }
    };
    var UpdateBucketMetadataInventoryTableConfigurationCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
          requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
          requestChecksumRequired: true
        })
      ];
    }).s("AmazonS3", "UpdateBucketMetadataInventoryTableConfiguration", {}).n("S3Client", "UpdateBucketMetadataInventoryTableConfigurationCommand").f(void 0, void 0).ser(se_UpdateBucketMetadataInventoryTableConfigurationCommand).de(de_UpdateBucketMetadataInventoryTableConfigurationCommand).build() {
      static {
        __name(this, "UpdateBucketMetadataInventoryTableConfigurationCommand");
      }
      static {
        __name2(this, "UpdateBucketMetadataInventoryTableConfigurationCommand");
      }
    };
    var UpdateBucketMetadataJournalTableConfigurationCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
          requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
          requestChecksumRequired: true
        })
      ];
    }).s("AmazonS3", "UpdateBucketMetadataJournalTableConfiguration", {}).n("S3Client", "UpdateBucketMetadataJournalTableConfigurationCommand").f(void 0, void 0).ser(se_UpdateBucketMetadataJournalTableConfigurationCommand).de(de_UpdateBucketMetadataJournalTableConfigurationCommand).build() {
      static {
        __name(this, "UpdateBucketMetadataJournalTableConfigurationCommand");
      }
      static {
        __name2(this, "UpdateBucketMetadataJournalTableConfigurationCommand");
      }
    };
    var import_middleware_sdk_s364 = require_dist_cjs61();
    var UploadPartCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      Bucket: { type: "contextParams", name: "Bucket" },
      Key: { type: "contextParams", name: "Key" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
          requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
          requestChecksumRequired: false
        }),
        (0, import_middleware_sdk_s364.getThrow200ExceptionsPlugin)(config),
        (0, import_middleware_ssec.getSsecPlugin)(config)
      ];
    }).s("AmazonS3", "UploadPart", {}).n("S3Client", "UploadPartCommand").f(UploadPartRequestFilterSensitiveLog, UploadPartOutputFilterSensitiveLog).ser(se_UploadPartCommand).de(de_UploadPartCommand).build() {
      static {
        __name(this, "UploadPartCommand");
      }
      static {
        __name2(this, "UploadPartCommand");
      }
    };
    var import_middleware_sdk_s365 = require_dist_cjs61();
    var UploadPartCopyCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      DisableS3ExpressSessionAuth: { type: "staticContextParams", value: true },
      Bucket: { type: "contextParams", name: "Bucket" }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_s365.getThrow200ExceptionsPlugin)(config),
        (0, import_middleware_ssec.getSsecPlugin)(config)
      ];
    }).s("AmazonS3", "UploadPartCopy", {}).n("S3Client", "UploadPartCopyCommand").f(UploadPartCopyRequestFilterSensitiveLog, UploadPartCopyOutputFilterSensitiveLog).ser(se_UploadPartCopyCommand).de(de_UploadPartCopyCommand).build() {
      static {
        __name(this, "UploadPartCopyCommand");
      }
      static {
        __name2(this, "UploadPartCopyCommand");
      }
    };
    var WriteGetObjectResponseCommand = class extends import_smithy_client28.Command.classBuilder().ep({
      ...commonParams3,
      UseObjectLambdaEndpoint: { type: "staticContextParams", value: true }
    }).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonS3", "WriteGetObjectResponse", {}).n("S3Client", "WriteGetObjectResponseCommand").f(WriteGetObjectResponseRequestFilterSensitiveLog, void 0).ser(se_WriteGetObjectResponseCommand).de(de_WriteGetObjectResponseCommand).build() {
      static {
        __name(this, "WriteGetObjectResponseCommand");
      }
      static {
        __name2(this, "WriteGetObjectResponseCommand");
      }
    };
    var commands3 = {
      AbortMultipartUploadCommand,
      CompleteMultipartUploadCommand,
      CopyObjectCommand,
      CreateBucketCommand,
      CreateBucketMetadataConfigurationCommand,
      CreateBucketMetadataTableConfigurationCommand,
      CreateMultipartUploadCommand,
      CreateSessionCommand,
      DeleteBucketCommand,
      DeleteBucketAnalyticsConfigurationCommand,
      DeleteBucketCorsCommand,
      DeleteBucketEncryptionCommand,
      DeleteBucketIntelligentTieringConfigurationCommand,
      DeleteBucketInventoryConfigurationCommand,
      DeleteBucketLifecycleCommand,
      DeleteBucketMetadataConfigurationCommand,
      DeleteBucketMetadataTableConfigurationCommand,
      DeleteBucketMetricsConfigurationCommand,
      DeleteBucketOwnershipControlsCommand,
      DeleteBucketPolicyCommand,
      DeleteBucketReplicationCommand,
      DeleteBucketTaggingCommand,
      DeleteBucketWebsiteCommand,
      DeleteObjectCommand,
      DeleteObjectsCommand: DeleteObjectsCommand2,
      DeleteObjectTaggingCommand: DeleteObjectTaggingCommand2,
      DeletePublicAccessBlockCommand,
      GetBucketAccelerateConfigurationCommand,
      GetBucketAclCommand,
      GetBucketAnalyticsConfigurationCommand,
      GetBucketCorsCommand,
      GetBucketEncryptionCommand: GetBucketEncryptionCommand3,
      GetBucketIntelligentTieringConfigurationCommand,
      GetBucketInventoryConfigurationCommand,
      GetBucketLifecycleConfigurationCommand,
      GetBucketLocationCommand: GetBucketLocationCommand3,
      GetBucketLoggingCommand,
      GetBucketMetadataConfigurationCommand,
      GetBucketMetadataTableConfigurationCommand,
      GetBucketMetricsConfigurationCommand,
      GetBucketNotificationConfigurationCommand,
      GetBucketOwnershipControlsCommand,
      GetBucketPolicyCommand,
      GetBucketPolicyStatusCommand,
      GetBucketReplicationCommand,
      GetBucketRequestPaymentCommand,
      GetBucketTaggingCommand,
      GetBucketVersioningCommand,
      GetBucketWebsiteCommand,
      GetObjectCommand: GetObjectCommand2,
      GetObjectAclCommand,
      GetObjectAttributesCommand,
      GetObjectLegalHoldCommand,
      GetObjectLockConfigurationCommand,
      GetObjectRetentionCommand,
      GetObjectTaggingCommand: GetObjectTaggingCommand2,
      GetObjectTorrentCommand,
      GetPublicAccessBlockCommand,
      HeadBucketCommand,
      HeadObjectCommand: HeadObjectCommand2,
      ListBucketAnalyticsConfigurationsCommand,
      ListBucketIntelligentTieringConfigurationsCommand,
      ListBucketInventoryConfigurationsCommand,
      ListBucketMetricsConfigurationsCommand,
      ListBucketsCommand,
      ListDirectoryBucketsCommand,
      ListMultipartUploadsCommand,
      ListObjectsCommand,
      ListObjectsV2Command: ListObjectsV2Command3,
      ListObjectVersionsCommand,
      ListPartsCommand,
      PutBucketAccelerateConfigurationCommand,
      PutBucketAclCommand,
      PutBucketAnalyticsConfigurationCommand,
      PutBucketCorsCommand,
      PutBucketEncryptionCommand,
      PutBucketIntelligentTieringConfigurationCommand,
      PutBucketInventoryConfigurationCommand,
      PutBucketLifecycleConfigurationCommand,
      PutBucketLoggingCommand,
      PutBucketMetricsConfigurationCommand,
      PutBucketNotificationConfigurationCommand,
      PutBucketOwnershipControlsCommand,
      PutBucketPolicyCommand,
      PutBucketReplicationCommand,
      PutBucketRequestPaymentCommand,
      PutBucketTaggingCommand,
      PutBucketVersioningCommand,
      PutBucketWebsiteCommand,
      PutObjectCommand,
      PutObjectAclCommand,
      PutObjectLegalHoldCommand,
      PutObjectLockConfigurationCommand,
      PutObjectRetentionCommand,
      PutObjectTaggingCommand: PutObjectTaggingCommand2,
      PutPublicAccessBlockCommand,
      RenameObjectCommand,
      RestoreObjectCommand,
      SelectObjectContentCommand,
      UpdateBucketMetadataInventoryTableConfigurationCommand,
      UpdateBucketMetadataJournalTableConfigurationCommand,
      UploadPartCommand,
      UploadPartCopyCommand,
      WriteGetObjectResponseCommand
    };
    var S3 = class extends S3Client4 {
      static {
        __name(this, "S3");
      }
      static {
        __name2(this, "S3");
      }
    };
    (0, import_smithy_client28.createAggregatedClient)(commands3, S3);
    var import_core42 = (init_dist_es(), __toCommonJS(dist_es_exports));
    var paginateListBuckets = (0, import_core42.createPaginator)(S3Client4, ListBucketsCommand, "ContinuationToken", "ContinuationToken", "MaxBuckets");
    var import_core52 = (init_dist_es(), __toCommonJS(dist_es_exports));
    var paginateListDirectoryBuckets = (0, import_core52.createPaginator)(S3Client4, ListDirectoryBucketsCommand, "ContinuationToken", "ContinuationToken", "MaxDirectoryBuckets");
    var import_core62 = (init_dist_es(), __toCommonJS(dist_es_exports));
    var paginateListObjectsV2 = (0, import_core62.createPaginator)(S3Client4, ListObjectsV2Command3, "ContinuationToken", "NextContinuationToken", "MaxKeys");
    var import_core72 = (init_dist_es(), __toCommonJS(dist_es_exports));
    var paginateListParts = (0, import_core72.createPaginator)(S3Client4, ListPartsCommand, "PartNumberMarker", "NextPartNumberMarker", "MaxParts");
    var import_util_waiter = require_dist_cjs53();
    var checkState = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new HeadBucketCommand(input));
        reason = result2;
        return { state: import_util_waiter.WaiterState.SUCCESS, reason };
      } catch (exception) {
        reason = exception;
        if (exception.name && exception.name == "NotFound") {
          return { state: import_util_waiter.WaiterState.RETRY, reason };
        }
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForBucketExists = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 5, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
    }, "waitForBucketExists");
    var waitUntilBucketExists = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 5, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilBucketExists");
    var checkState2 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new HeadBucketCommand(input));
        reason = result2;
      } catch (exception) {
        reason = exception;
        if (exception.name && exception.name == "NotFound") {
          return { state: import_util_waiter.WaiterState.SUCCESS, reason };
        }
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForBucketNotExists = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 5, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2);
    }, "waitForBucketNotExists");
    var waitUntilBucketNotExists = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 5, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilBucketNotExists");
    var checkState3 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new HeadObjectCommand2(input));
        reason = result2;
        return { state: import_util_waiter.WaiterState.SUCCESS, reason };
      } catch (exception) {
        reason = exception;
        if (exception.name && exception.name == "NotFound") {
          return { state: import_util_waiter.WaiterState.RETRY, reason };
        }
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForObjectExists = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 5, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState3);
    }, "waitForObjectExists");
    var waitUntilObjectExists = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 5, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState3);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilObjectExists");
    var checkState4 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new HeadObjectCommand2(input));
        reason = result2;
      } catch (exception) {
        reason = exception;
        if (exception.name && exception.name == "NotFound") {
          return { state: import_util_waiter.WaiterState.SUCCESS, reason };
        }
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForObjectNotExists = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 5, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState4);
    }, "waitForObjectNotExists");
    var waitUntilObjectNotExists = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 5, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState4);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilObjectNotExists");
  }
});

// ../../node_modules/@aws-sdk/client-secrets-manager/dist-cjs/auth/httpAuthSchemeProvider.js
var require_httpAuthSchemeProvider4 = __commonJS({
  "../../node_modules/@aws-sdk/client-secrets-manager/dist-cjs/auth/httpAuthSchemeProvider.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.resolveHttpAuthSchemeConfig = exports2.defaultSecretsManagerHttpAuthSchemeProvider = exports2.defaultSecretsManagerHttpAuthSchemeParametersProvider = void 0;
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var util_middleware_1 = require_dist_cjs6();
    var defaultSecretsManagerHttpAuthSchemeParametersProvider = /* @__PURE__ */ __name(async (config, context, input) => {
      return {
        operation: (0, util_middleware_1.getSmithyContext)(context).operation,
        region: await (0, util_middleware_1.normalizeProvider)(config.region)() || (() => {
          throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
        })()
      };
    }, "defaultSecretsManagerHttpAuthSchemeParametersProvider");
    exports2.defaultSecretsManagerHttpAuthSchemeParametersProvider = defaultSecretsManagerHttpAuthSchemeParametersProvider;
    function createAwsAuthSigv4HttpAuthOption3(authParameters) {
      return {
        schemeId: "aws.auth#sigv4",
        signingProperties: {
          name: "secretsmanager",
          region: authParameters.region
        },
        propertiesExtractor: /* @__PURE__ */ __name((config, context) => ({
          signingProperties: {
            config,
            context
          }
        }), "propertiesExtractor")
      };
    }
    __name(createAwsAuthSigv4HttpAuthOption3, "createAwsAuthSigv4HttpAuthOption");
    var defaultSecretsManagerHttpAuthSchemeProvider = /* @__PURE__ */ __name((authParameters) => {
      const options = [];
      switch (authParameters.operation) {
        default: {
          options.push(createAwsAuthSigv4HttpAuthOption3(authParameters));
        }
      }
      return options;
    }, "defaultSecretsManagerHttpAuthSchemeProvider");
    exports2.defaultSecretsManagerHttpAuthSchemeProvider = defaultSecretsManagerHttpAuthSchemeProvider;
    var resolveHttpAuthSchemeConfig3 = /* @__PURE__ */ __name((config) => {
      const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
      return Object.assign(config_0, {
        authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? [])
      });
    }, "resolveHttpAuthSchemeConfig");
    exports2.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig3;
  }
});

// ../../node_modules/@aws-sdk/client-secrets-manager/package.json
var require_package4 = __commonJS({
  "../../node_modules/@aws-sdk/client-secrets-manager/package.json"(exports2, module2) {
    module2.exports = {
      name: "@aws-sdk/client-secrets-manager",
      description: "AWS SDK for JavaScript Secrets Manager Client for Node.js, Browser and React Native",
      version: "3.879.0",
      scripts: {
        build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
        "build:cjs": "node ../../scripts/compilation/inline client-secrets-manager",
        "build:es": "tsc -p tsconfig.es.json",
        "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
        "build:types": "tsc -p tsconfig.types.json",
        "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
        clean: "rimraf ./dist-* && rimraf *.tsbuildinfo",
        "extract:docs": "api-extractor run --local",
        "generate:client": "node ../../scripts/generate-clients/single-service --solo secrets-manager"
      },
      main: "./dist-cjs/index.js",
      types: "./dist-types/index.d.ts",
      module: "./dist-es/index.js",
      sideEffects: false,
      dependencies: {
        "@aws-crypto/sha256-browser": "5.2.0",
        "@aws-crypto/sha256-js": "5.2.0",
        "@aws-sdk/core": "3.879.0",
        "@aws-sdk/credential-provider-node": "3.879.0",
        "@aws-sdk/middleware-host-header": "3.873.0",
        "@aws-sdk/middleware-logger": "3.876.0",
        "@aws-sdk/middleware-recursion-detection": "3.873.0",
        "@aws-sdk/middleware-user-agent": "3.879.0",
        "@aws-sdk/region-config-resolver": "3.873.0",
        "@aws-sdk/types": "3.862.0",
        "@aws-sdk/util-endpoints": "3.879.0",
        "@aws-sdk/util-user-agent-browser": "3.873.0",
        "@aws-sdk/util-user-agent-node": "3.879.0",
        "@smithy/config-resolver": "^4.1.5",
        "@smithy/core": "^3.9.0",
        "@smithy/fetch-http-handler": "^5.1.1",
        "@smithy/hash-node": "^4.0.5",
        "@smithy/invalid-dependency": "^4.0.5",
        "@smithy/middleware-content-length": "^4.0.5",
        "@smithy/middleware-endpoint": "^4.1.19",
        "@smithy/middleware-retry": "^4.1.20",
        "@smithy/middleware-serde": "^4.0.9",
        "@smithy/middleware-stack": "^4.0.5",
        "@smithy/node-config-provider": "^4.1.4",
        "@smithy/node-http-handler": "^4.1.1",
        "@smithy/protocol-http": "^5.1.3",
        "@smithy/smithy-client": "^4.5.0",
        "@smithy/types": "^4.3.2",
        "@smithy/url-parser": "^4.0.5",
        "@smithy/util-base64": "^4.0.0",
        "@smithy/util-body-length-browser": "^4.0.0",
        "@smithy/util-body-length-node": "^4.0.0",
        "@smithy/util-defaults-mode-browser": "^4.0.27",
        "@smithy/util-defaults-mode-node": "^4.0.27",
        "@smithy/util-endpoints": "^3.0.7",
        "@smithy/util-middleware": "^4.0.5",
        "@smithy/util-retry": "^4.0.7",
        "@smithy/util-utf8": "^4.0.0",
        "@types/uuid": "^9.0.1",
        tslib: "^2.6.2",
        uuid: "^9.0.1"
      },
      devDependencies: {
        "@tsconfig/node18": "18.2.4",
        "@types/node": "^18.19.69",
        concurrently: "7.0.0",
        "downlevel-dts": "0.10.1",
        rimraf: "3.0.2",
        typescript: "~5.8.3"
      },
      engines: {
        node: ">=18.0.0"
      },
      typesVersions: {
        "<4.0": {
          "dist-types/*": [
            "dist-types/ts3.4/*"
          ]
        }
      },
      files: [
        "dist-*/**"
      ],
      author: {
        name: "AWS SDK for JavaScript Team",
        url: "https://aws.amazon.com/javascript/"
      },
      license: "Apache-2.0",
      browser: {
        "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
      },
      "react-native": {
        "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
      },
      homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-secrets-manager",
      repository: {
        type: "git",
        url: "https://github.com/aws/aws-sdk-js-v3.git",
        directory: "clients/client-secrets-manager"
      }
    };
  }
});

// ../../node_modules/@aws-sdk/client-secrets-manager/dist-cjs/endpoint/ruleset.js
var require_ruleset4 = __commonJS({
  "../../node_modules/@aws-sdk/client-secrets-manager/dist-cjs/endpoint/ruleset.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.ruleSet = void 0;
    var y2 = "required";
    var z2 = "fn";
    var A2 = "argv";
    var B2 = "ref";
    var C2 = "properties";
    var D2 = "headers";
    var a3 = true;
    var b3 = "isSet";
    var c3 = "booleanEquals";
    var d3 = "error";
    var e3 = "endpoint";
    var f3 = "tree";
    var g3 = "PartitionResult";
    var h3 = "stringEquals";
    var i3 = { [y2]: false, "type": "String" };
    var j3 = { [y2]: true, "default": false, "type": "Boolean" };
    var k3 = { [B2]: "Endpoint" };
    var l3 = { [z2]: c3, [A2]: [{ [B2]: "UseFIPS" }, true] };
    var m3 = { [z2]: c3, [A2]: [{ [B2]: "UseDualStack" }, true] };
    var n3 = {};
    var o3 = { [z2]: "getAttr", [A2]: [{ [B2]: g3 }, "supportsFIPS"] };
    var p3 = { [z2]: c3, [A2]: [true, { [z2]: "getAttr", [A2]: [{ [B2]: g3 }, "supportsDualStack"] }] };
    var q3 = { [z2]: "getAttr", [A2]: [{ [B2]: g3 }, "name"] };
    var r3 = { "url": "https://secretsmanager-fips.{Region}.amazonaws.com", [C2]: {}, [D2]: {} };
    var s3 = { "url": "https://secretsmanager.{Region}.amazonaws.com", [C2]: {}, [D2]: {} };
    var t3 = [l3];
    var u3 = [m3];
    var v6 = [{ [B2]: "Region" }];
    var w3 = [{ [z2]: h3, [A2]: ["aws", q3] }];
    var x3 = [{ [z2]: h3, [A2]: ["aws-us-gov", q3] }];
    var _data3 = { version: "1.0", parameters: { Region: i3, UseDualStack: j3, UseFIPS: j3, Endpoint: i3 }, rules: [{ conditions: [{ [z2]: b3, [A2]: [k3] }], rules: [{ conditions: t3, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d3 }, { conditions: u3, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d3 }, { endpoint: { url: k3, [C2]: n3, [D2]: n3 }, type: e3 }], type: f3 }, { conditions: [{ [z2]: b3, [A2]: v6 }], rules: [{ conditions: [{ [z2]: "aws.partition", [A2]: v6, assign: g3 }], rules: [{ conditions: [l3, m3], rules: [{ conditions: [{ [z2]: c3, [A2]: [a3, o3] }, p3], rules: [{ conditions: w3, endpoint: r3, type: e3 }, { conditions: x3, endpoint: r3, type: e3 }, { endpoint: { url: "https://secretsmanager-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", [C2]: n3, [D2]: n3 }, type: e3 }], type: f3 }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d3 }], type: f3 }, { conditions: t3, rules: [{ conditions: [{ [z2]: c3, [A2]: [o3, a3] }], rules: [{ endpoint: { url: "https://secretsmanager-fips.{Region}.{PartitionResult#dnsSuffix}", [C2]: n3, [D2]: n3 }, type: e3 }], type: f3 }, { error: "FIPS is enabled but this partition does not support FIPS", type: d3 }], type: f3 }, { conditions: u3, rules: [{ conditions: [p3], rules: [{ conditions: w3, endpoint: s3, type: e3 }, { conditions: [{ [z2]: h3, [A2]: ["aws-cn", q3] }], endpoint: { url: "https://secretsmanager.{Region}.amazonaws.com.cn", [C2]: n3, [D2]: n3 }, type: e3 }, { conditions: x3, endpoint: s3, type: e3 }, { endpoint: { url: "https://secretsmanager.{Region}.{PartitionResult#dualStackDnsSuffix}", [C2]: n3, [D2]: n3 }, type: e3 }], type: f3 }, { error: "DualStack is enabled but this partition does not support DualStack", type: d3 }], type: f3 }, { endpoint: { url: "https://secretsmanager.{Region}.{PartitionResult#dnsSuffix}", [C2]: n3, [D2]: n3 }, type: e3 }], type: f3 }], type: f3 }, { error: "Invalid Configuration: Missing Region", type: d3 }] };
    exports2.ruleSet = _data3;
  }
});

// ../../node_modules/@aws-sdk/client-secrets-manager/dist-cjs/endpoint/endpointResolver.js
var require_endpointResolver4 = __commonJS({
  "../../node_modules/@aws-sdk/client-secrets-manager/dist-cjs/endpoint/endpointResolver.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.defaultEndpointResolver = void 0;
    var util_endpoints_1 = require_dist_cjs21();
    var util_endpoints_2 = require_dist_cjs18();
    var ruleset_1 = require_ruleset4();
    var cache3 = new util_endpoints_2.EndpointCache({
      size: 50,
      params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"]
    });
    var defaultEndpointResolver3 = /* @__PURE__ */ __name((endpointParams, context = {}) => {
      return cache3.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
        endpointParams,
        logger: context.logger
      }));
    }, "defaultEndpointResolver");
    exports2.defaultEndpointResolver = defaultEndpointResolver3;
    util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
  }
});

// ../../node_modules/@aws-sdk/client-secrets-manager/dist-cjs/runtimeConfig.shared.js
var require_runtimeConfig_shared4 = __commonJS({
  "../../node_modules/@aws-sdk/client-secrets-manager/dist-cjs/runtimeConfig.shared.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.getRuntimeConfig = void 0;
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var smithy_client_1 = require_dist_cjs26();
    var url_parser_1 = require_dist_cjs20();
    var util_base64_1 = require_dist_cjs11();
    var util_utf8_1 = require_dist_cjs10();
    var httpAuthSchemeProvider_1 = require_httpAuthSchemeProvider4();
    var endpointResolver_1 = require_endpointResolver4();
    var getRuntimeConfig5 = /* @__PURE__ */ __name((config) => {
      return {
        apiVersion: "2017-10-17",
        base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
        base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
        disableHostPrefix: config?.disableHostPrefix ?? false,
        endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
        extensions: config?.extensions ?? [],
        httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultSecretsManagerHttpAuthSchemeProvider,
        httpAuthSchemes: config?.httpAuthSchemes ?? [
          {
            schemeId: "aws.auth#sigv4",
            identityProvider: /* @__PURE__ */ __name((ipc) => ipc.getIdentityProvider("aws.auth#sigv4"), "identityProvider"),
            signer: new core_1.AwsSdkSigV4Signer()
          }
        ],
        logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
        serviceId: config?.serviceId ?? "Secrets Manager",
        urlParser: config?.urlParser ?? url_parser_1.parseUrl,
        utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
        utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8
      };
    }, "getRuntimeConfig");
    exports2.getRuntimeConfig = getRuntimeConfig5;
  }
});

// ../../node_modules/@aws-sdk/client-secrets-manager/dist-cjs/runtimeConfig.js
var require_runtimeConfig4 = __commonJS({
  "../../node_modules/@aws-sdk/client-secrets-manager/dist-cjs/runtimeConfig.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.getRuntimeConfig = void 0;
    var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
    var package_json_1 = tslib_1.__importDefault(require_package4());
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var credential_provider_node_1 = require_dist_cjs52();
    var util_user_agent_node_1 = require_dist_cjs41();
    var config_resolver_1 = require_dist_cjs30();
    var hash_node_1 = require_dist_cjs42();
    var middleware_retry_1 = require_dist_cjs37();
    var node_config_provider_1 = require_dist_cjs33();
    var node_http_handler_1 = require_dist_cjs14();
    var util_body_length_node_1 = require_dist_cjs43();
    var util_retry_1 = require_dist_cjs36();
    var runtimeConfig_shared_1 = require_runtimeConfig_shared4();
    var smithy_client_1 = require_dist_cjs26();
    var util_defaults_mode_node_1 = require_dist_cjs44();
    var smithy_client_2 = require_dist_cjs26();
    var getRuntimeConfig5 = /* @__PURE__ */ __name((config) => {
      (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
      const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
      const defaultConfigProvider = /* @__PURE__ */ __name(() => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode), "defaultConfigProvider");
      const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
      (0, core_1.emitWarningIfUnsupportedVersion)(process.version);
      const loaderConfig = {
        profile: config?.profile,
        logger: clientSharedValues.logger
      };
      return {
        ...clientSharedValues,
        ...config,
        runtime: "node",
        defaultsMode,
        authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
        bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
        credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
        defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
        maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
        region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
        requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
        retryMode: config?.retryMode ?? (0, node_config_provider_1.loadConfig)({
          ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
          default: /* @__PURE__ */ __name(async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE, "default")
        }, config),
        sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
        streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
        useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
        useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
        userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig)
      };
    }, "getRuntimeConfig");
    exports2.getRuntimeConfig = getRuntimeConfig5;
  }
});

// ../../node_modules/@aws-sdk/client-secrets-manager/dist-cjs/index.js
var require_dist_cjs72 = __commonJS({
  "../../node_modules/@aws-sdk/client-secrets-manager/dist-cjs/index.js"(exports2, module2) {
    "use strict";
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var index_exports = {};
    __export2(index_exports, {
      BatchGetSecretValueCommand: /* @__PURE__ */ __name(() => BatchGetSecretValueCommand, "BatchGetSecretValueCommand"),
      BatchGetSecretValueResponseFilterSensitiveLog: /* @__PURE__ */ __name(() => BatchGetSecretValueResponseFilterSensitiveLog, "BatchGetSecretValueResponseFilterSensitiveLog"),
      CancelRotateSecretCommand: /* @__PURE__ */ __name(() => CancelRotateSecretCommand, "CancelRotateSecretCommand"),
      CreateSecretCommand: /* @__PURE__ */ __name(() => CreateSecretCommand, "CreateSecretCommand"),
      CreateSecretRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => CreateSecretRequestFilterSensitiveLog, "CreateSecretRequestFilterSensitiveLog"),
      DecryptionFailure: /* @__PURE__ */ __name(() => DecryptionFailure, "DecryptionFailure"),
      DeleteResourcePolicyCommand: /* @__PURE__ */ __name(() => DeleteResourcePolicyCommand, "DeleteResourcePolicyCommand"),
      DeleteSecretCommand: /* @__PURE__ */ __name(() => DeleteSecretCommand, "DeleteSecretCommand"),
      DescribeSecretCommand: /* @__PURE__ */ __name(() => DescribeSecretCommand, "DescribeSecretCommand"),
      EncryptionFailure: /* @__PURE__ */ __name(() => EncryptionFailure, "EncryptionFailure"),
      FilterNameStringType: /* @__PURE__ */ __name(() => FilterNameStringType, "FilterNameStringType"),
      GetRandomPasswordCommand: /* @__PURE__ */ __name(() => GetRandomPasswordCommand, "GetRandomPasswordCommand"),
      GetRandomPasswordResponseFilterSensitiveLog: /* @__PURE__ */ __name(() => GetRandomPasswordResponseFilterSensitiveLog, "GetRandomPasswordResponseFilterSensitiveLog"),
      GetResourcePolicyCommand: /* @__PURE__ */ __name(() => GetResourcePolicyCommand, "GetResourcePolicyCommand"),
      GetSecretValueCommand: /* @__PURE__ */ __name(() => GetSecretValueCommand3, "GetSecretValueCommand"),
      GetSecretValueResponseFilterSensitiveLog: /* @__PURE__ */ __name(() => GetSecretValueResponseFilterSensitiveLog, "GetSecretValueResponseFilterSensitiveLog"),
      InternalServiceError: /* @__PURE__ */ __name(() => InternalServiceError, "InternalServiceError"),
      InvalidNextTokenException: /* @__PURE__ */ __name(() => InvalidNextTokenException, "InvalidNextTokenException"),
      InvalidParameterException: /* @__PURE__ */ __name(() => InvalidParameterException, "InvalidParameterException"),
      InvalidRequestException: /* @__PURE__ */ __name(() => InvalidRequestException2, "InvalidRequestException"),
      LimitExceededException: /* @__PURE__ */ __name(() => LimitExceededException, "LimitExceededException"),
      ListSecretVersionIdsCommand: /* @__PURE__ */ __name(() => ListSecretVersionIdsCommand, "ListSecretVersionIdsCommand"),
      ListSecretsCommand: /* @__PURE__ */ __name(() => ListSecretsCommand, "ListSecretsCommand"),
      MalformedPolicyDocumentException: /* @__PURE__ */ __name(() => MalformedPolicyDocumentException2, "MalformedPolicyDocumentException"),
      PreconditionNotMetException: /* @__PURE__ */ __name(() => PreconditionNotMetException, "PreconditionNotMetException"),
      PublicPolicyException: /* @__PURE__ */ __name(() => PublicPolicyException, "PublicPolicyException"),
      PutResourcePolicyCommand: /* @__PURE__ */ __name(() => PutResourcePolicyCommand, "PutResourcePolicyCommand"),
      PutSecretValueCommand: /* @__PURE__ */ __name(() => PutSecretValueCommand, "PutSecretValueCommand"),
      PutSecretValueRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => PutSecretValueRequestFilterSensitiveLog, "PutSecretValueRequestFilterSensitiveLog"),
      RemoveRegionsFromReplicationCommand: /* @__PURE__ */ __name(() => RemoveRegionsFromReplicationCommand, "RemoveRegionsFromReplicationCommand"),
      ReplicateSecretToRegionsCommand: /* @__PURE__ */ __name(() => ReplicateSecretToRegionsCommand, "ReplicateSecretToRegionsCommand"),
      ResourceExistsException: /* @__PURE__ */ __name(() => ResourceExistsException, "ResourceExistsException"),
      ResourceNotFoundException: /* @__PURE__ */ __name(() => ResourceNotFoundException2, "ResourceNotFoundException"),
      RestoreSecretCommand: /* @__PURE__ */ __name(() => RestoreSecretCommand, "RestoreSecretCommand"),
      RotateSecretCommand: /* @__PURE__ */ __name(() => RotateSecretCommand, "RotateSecretCommand"),
      SecretValueEntryFilterSensitiveLog: /* @__PURE__ */ __name(() => SecretValueEntryFilterSensitiveLog, "SecretValueEntryFilterSensitiveLog"),
      SecretsManager: /* @__PURE__ */ __name(() => SecretsManager, "SecretsManager"),
      SecretsManagerClient: /* @__PURE__ */ __name(() => SecretsManagerClient3, "SecretsManagerClient"),
      SecretsManagerServiceException: /* @__PURE__ */ __name(() => SecretsManagerServiceException, "SecretsManagerServiceException"),
      SortOrderType: /* @__PURE__ */ __name(() => SortOrderType, "SortOrderType"),
      StatusType: /* @__PURE__ */ __name(() => StatusType, "StatusType"),
      StopReplicationToReplicaCommand: /* @__PURE__ */ __name(() => StopReplicationToReplicaCommand, "StopReplicationToReplicaCommand"),
      TagResourceCommand: /* @__PURE__ */ __name(() => TagResourceCommand, "TagResourceCommand"),
      UntagResourceCommand: /* @__PURE__ */ __name(() => UntagResourceCommand, "UntagResourceCommand"),
      UpdateSecretCommand: /* @__PURE__ */ __name(() => UpdateSecretCommand, "UpdateSecretCommand"),
      UpdateSecretRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => UpdateSecretRequestFilterSensitiveLog, "UpdateSecretRequestFilterSensitiveLog"),
      UpdateSecretVersionStageCommand: /* @__PURE__ */ __name(() => UpdateSecretVersionStageCommand, "UpdateSecretVersionStageCommand"),
      ValidateResourcePolicyCommand: /* @__PURE__ */ __name(() => ValidateResourcePolicyCommand, "ValidateResourcePolicyCommand"),
      __Client: /* @__PURE__ */ __name(() => import_smithy_client28.Client, "__Client"),
      paginateBatchGetSecretValue: /* @__PURE__ */ __name(() => paginateBatchGetSecretValue, "paginateBatchGetSecretValue"),
      paginateListSecretVersionIds: /* @__PURE__ */ __name(() => paginateListSecretVersionIds, "paginateListSecretVersionIds"),
      paginateListSecrets: /* @__PURE__ */ __name(() => paginateListSecrets, "paginateListSecrets")
    });
    module2.exports = __toCommonJS2(index_exports);
    var import_middleware_host_header3 = require_dist_cjs3();
    var import_middleware_logger3 = require_dist_cjs4();
    var import_middleware_recursion_detection3 = require_dist_cjs5();
    var import_middleware_user_agent3 = require_dist_cjs28();
    var import_config_resolver6 = require_dist_cjs30();
    var import_core17 = (init_dist_es(), __toCommonJS(dist_es_exports));
    var import_middleware_content_length3 = require_dist_cjs31();
    var import_middleware_endpoint8 = require_dist_cjs34();
    var import_middleware_retry5 = require_dist_cjs37();
    var import_httpAuthSchemeProvider5 = require_httpAuthSchemeProvider4();
    var resolveClientEndpointParameters3 = /* @__PURE__ */ __name2((options) => {
      return Object.assign(options, {
        useDualstackEndpoint: options.useDualstackEndpoint ?? false,
        useFipsEndpoint: options.useFipsEndpoint ?? false,
        defaultSigningName: "secretsmanager"
      });
    }, "resolveClientEndpointParameters");
    var commonParams3 = {
      UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
      Endpoint: { type: "builtInParams", name: "endpoint" },
      Region: { type: "builtInParams", name: "region" },
      UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
    };
    var import_runtimeConfig5 = require_runtimeConfig4();
    var import_region_config_resolver3 = require_dist_cjs45();
    var import_protocol_http16 = require_dist_cjs2();
    var import_smithy_client28 = require_dist_cjs26();
    var getHttpAuthExtensionConfiguration3 = /* @__PURE__ */ __name2((runtimeConfig) => {
      const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
      let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
      let _credentials = runtimeConfig.credentials;
      return {
        setHttpAuthScheme(httpAuthScheme) {
          const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
          if (index === -1) {
            _httpAuthSchemes.push(httpAuthScheme);
          } else {
            _httpAuthSchemes.splice(index, 1, httpAuthScheme);
          }
        },
        httpAuthSchemes() {
          return _httpAuthSchemes;
        },
        setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
          _httpAuthSchemeProvider = httpAuthSchemeProvider;
        },
        httpAuthSchemeProvider() {
          return _httpAuthSchemeProvider;
        },
        setCredentials(credentials) {
          _credentials = credentials;
        },
        credentials() {
          return _credentials;
        }
      };
    }, "getHttpAuthExtensionConfiguration");
    var resolveHttpAuthRuntimeConfig3 = /* @__PURE__ */ __name2((config) => {
      return {
        httpAuthSchemes: config.httpAuthSchemes(),
        httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
        credentials: config.credentials()
      };
    }, "resolveHttpAuthRuntimeConfig");
    var resolveRuntimeExtensions3 = /* @__PURE__ */ __name2((runtimeConfig, extensions) => {
      const extensionConfiguration = Object.assign(
        (0, import_region_config_resolver3.getAwsRegionExtensionConfiguration)(runtimeConfig),
        (0, import_smithy_client28.getDefaultExtensionConfiguration)(runtimeConfig),
        (0, import_protocol_http16.getHttpHandlerExtensionConfiguration)(runtimeConfig),
        getHttpAuthExtensionConfiguration3(runtimeConfig)
      );
      extensions.forEach((extension) => extension.configure(extensionConfiguration));
      return Object.assign(
        runtimeConfig,
        (0, import_region_config_resolver3.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
        (0, import_smithy_client28.resolveDefaultRuntimeConfig)(extensionConfiguration),
        (0, import_protocol_http16.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
        resolveHttpAuthRuntimeConfig3(extensionConfiguration)
      );
    }, "resolveRuntimeExtensions");
    var SecretsManagerClient3 = class extends import_smithy_client28.Client {
      static {
        __name(this, "SecretsManagerClient");
      }
      static {
        __name2(this, "SecretsManagerClient");
      }
      /**
       * The resolved configuration of SecretsManagerClient class. This is resolved and normalized from the {@link SecretsManagerClientConfig | constructor configuration interface}.
       */
      config;
      constructor(...[configuration]) {
        const _config_0 = (0, import_runtimeConfig5.getRuntimeConfig)(configuration || {});
        super(_config_0);
        this.initConfig = _config_0;
        const _config_1 = resolveClientEndpointParameters3(_config_0);
        const _config_2 = (0, import_middleware_user_agent3.resolveUserAgentConfig)(_config_1);
        const _config_3 = (0, import_middleware_retry5.resolveRetryConfig)(_config_2);
        const _config_4 = (0, import_config_resolver6.resolveRegionConfig)(_config_3);
        const _config_5 = (0, import_middleware_host_header3.resolveHostHeaderConfig)(_config_4);
        const _config_6 = (0, import_middleware_endpoint8.resolveEndpointConfig)(_config_5);
        const _config_7 = (0, import_httpAuthSchemeProvider5.resolveHttpAuthSchemeConfig)(_config_6);
        const _config_8 = resolveRuntimeExtensions3(_config_7, configuration?.extensions || []);
        this.config = _config_8;
        this.middlewareStack.use((0, import_middleware_user_agent3.getUserAgentPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_retry5.getRetryPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_content_length3.getContentLengthPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_host_header3.getHostHeaderPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_logger3.getLoggerPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_recursion_detection3.getRecursionDetectionPlugin)(this.config));
        this.middlewareStack.use(
          (0, import_core17.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
            httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider5.defaultSecretsManagerHttpAuthSchemeParametersProvider,
            identityProviderConfigProvider: /* @__PURE__ */ __name2(async (config) => new import_core17.DefaultIdentityProviderConfig({
              "aws.auth#sigv4": config.credentials
            }), "identityProviderConfigProvider")
          })
        );
        this.middlewareStack.use((0, import_core17.getHttpSigningPlugin)(this.config));
      }
      /**
       * Destroy underlying resources, like sockets. It's usually not necessary to do this.
       * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
       * Otherwise, sockets might stay open for quite a long time before the server terminates them.
       */
      destroy() {
        super.destroy();
      }
    };
    var import_middleware_serde5 = require_dist_cjs7();
    var SecretsManagerServiceException = class _SecretsManagerServiceException extends import_smithy_client28.ServiceException {
      static {
        __name(this, "_SecretsManagerServiceException");
      }
      static {
        __name2(this, "SecretsManagerServiceException");
      }
      /**
       * @internal
       */
      constructor(options) {
        super(options);
        Object.setPrototypeOf(this, _SecretsManagerServiceException.prototype);
      }
    };
    var FilterNameStringType = {
      all: "all",
      description: "description",
      name: "name",
      owning_service: "owning-service",
      primary_region: "primary-region",
      tag_key: "tag-key",
      tag_value: "tag-value"
    };
    var DecryptionFailure = class _DecryptionFailure extends SecretsManagerServiceException {
      static {
        __name(this, "_DecryptionFailure");
      }
      static {
        __name2(this, "DecryptionFailure");
      }
      name = "DecryptionFailure";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "DecryptionFailure",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _DecryptionFailure.prototype);
        this.Message = opts.Message;
      }
    };
    var InternalServiceError = class _InternalServiceError extends SecretsManagerServiceException {
      static {
        __name(this, "_InternalServiceError");
      }
      static {
        __name2(this, "InternalServiceError");
      }
      name = "InternalServiceError";
      $fault = "server";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InternalServiceError",
          $fault: "server",
          ...opts
        });
        Object.setPrototypeOf(this, _InternalServiceError.prototype);
        this.Message = opts.Message;
      }
    };
    var InvalidNextTokenException = class _InvalidNextTokenException extends SecretsManagerServiceException {
      static {
        __name(this, "_InvalidNextTokenException");
      }
      static {
        __name2(this, "InvalidNextTokenException");
      }
      name = "InvalidNextTokenException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidNextTokenException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidNextTokenException.prototype);
        this.Message = opts.Message;
      }
    };
    var InvalidParameterException = class _InvalidParameterException extends SecretsManagerServiceException {
      static {
        __name(this, "_InvalidParameterException");
      }
      static {
        __name2(this, "InvalidParameterException");
      }
      name = "InvalidParameterException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidParameterException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidParameterException.prototype);
        this.Message = opts.Message;
      }
    };
    var InvalidRequestException2 = class _InvalidRequestException extends SecretsManagerServiceException {
      static {
        __name(this, "_InvalidRequestException");
      }
      static {
        __name2(this, "InvalidRequestException");
      }
      name = "InvalidRequestException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidRequestException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidRequestException.prototype);
        this.Message = opts.Message;
      }
    };
    var ResourceNotFoundException2 = class _ResourceNotFoundException extends SecretsManagerServiceException {
      static {
        __name(this, "_ResourceNotFoundException");
      }
      static {
        __name2(this, "ResourceNotFoundException");
      }
      name = "ResourceNotFoundException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ResourceNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
        this.Message = opts.Message;
      }
    };
    var StatusType = {
      Failed: "Failed",
      InProgress: "InProgress",
      InSync: "InSync"
    };
    var EncryptionFailure = class _EncryptionFailure extends SecretsManagerServiceException {
      static {
        __name(this, "_EncryptionFailure");
      }
      static {
        __name2(this, "EncryptionFailure");
      }
      name = "EncryptionFailure";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "EncryptionFailure",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _EncryptionFailure.prototype);
        this.Message = opts.Message;
      }
    };
    var LimitExceededException = class _LimitExceededException extends SecretsManagerServiceException {
      static {
        __name(this, "_LimitExceededException");
      }
      static {
        __name2(this, "LimitExceededException");
      }
      name = "LimitExceededException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "LimitExceededException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _LimitExceededException.prototype);
        this.Message = opts.Message;
      }
    };
    var MalformedPolicyDocumentException2 = class _MalformedPolicyDocumentException extends SecretsManagerServiceException {
      static {
        __name(this, "_MalformedPolicyDocumentException");
      }
      static {
        __name2(this, "MalformedPolicyDocumentException");
      }
      name = "MalformedPolicyDocumentException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "MalformedPolicyDocumentException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _MalformedPolicyDocumentException.prototype);
        this.Message = opts.Message;
      }
    };
    var PreconditionNotMetException = class _PreconditionNotMetException extends SecretsManagerServiceException {
      static {
        __name(this, "_PreconditionNotMetException");
      }
      static {
        __name2(this, "PreconditionNotMetException");
      }
      name = "PreconditionNotMetException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "PreconditionNotMetException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _PreconditionNotMetException.prototype);
        this.Message = opts.Message;
      }
    };
    var ResourceExistsException = class _ResourceExistsException extends SecretsManagerServiceException {
      static {
        __name(this, "_ResourceExistsException");
      }
      static {
        __name2(this, "ResourceExistsException");
      }
      name = "ResourceExistsException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ResourceExistsException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ResourceExistsException.prototype);
        this.Message = opts.Message;
      }
    };
    var SortOrderType = {
      asc: "asc",
      desc: "desc"
    };
    var PublicPolicyException = class _PublicPolicyException extends SecretsManagerServiceException {
      static {
        __name(this, "_PublicPolicyException");
      }
      static {
        __name2(this, "PublicPolicyException");
      }
      name = "PublicPolicyException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "PublicPolicyException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _PublicPolicyException.prototype);
        this.Message = opts.Message;
      }
    };
    var SecretValueEntryFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.SecretBinary && { SecretBinary: import_smithy_client28.SENSITIVE_STRING },
      ...obj.SecretString && { SecretString: import_smithy_client28.SENSITIVE_STRING }
    }), "SecretValueEntryFilterSensitiveLog");
    var BatchGetSecretValueResponseFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.SecretValues && { SecretValues: obj.SecretValues.map((item) => SecretValueEntryFilterSensitiveLog(item)) }
    }), "BatchGetSecretValueResponseFilterSensitiveLog");
    var CreateSecretRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.SecretBinary && { SecretBinary: import_smithy_client28.SENSITIVE_STRING },
      ...obj.SecretString && { SecretString: import_smithy_client28.SENSITIVE_STRING }
    }), "CreateSecretRequestFilterSensitiveLog");
    var GetRandomPasswordResponseFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.RandomPassword && { RandomPassword: import_smithy_client28.SENSITIVE_STRING }
    }), "GetRandomPasswordResponseFilterSensitiveLog");
    var GetSecretValueResponseFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.SecretBinary && { SecretBinary: import_smithy_client28.SENSITIVE_STRING },
      ...obj.SecretString && { SecretString: import_smithy_client28.SENSITIVE_STRING }
    }), "GetSecretValueResponseFilterSensitiveLog");
    var PutSecretValueRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.SecretBinary && { SecretBinary: import_smithy_client28.SENSITIVE_STRING },
      ...obj.SecretString && { SecretString: import_smithy_client28.SENSITIVE_STRING },
      ...obj.RotationToken && { RotationToken: import_smithy_client28.SENSITIVE_STRING }
    }), "PutSecretValueRequestFilterSensitiveLog");
    var UpdateSecretRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.SecretBinary && { SecretBinary: import_smithy_client28.SENSITIVE_STRING },
      ...obj.SecretString && { SecretString: import_smithy_client28.SENSITIVE_STRING }
    }), "UpdateSecretRequestFilterSensitiveLog");
    var import_core22 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var import_uuid2 = (init_esm_node(), __toCommonJS(esm_node_exports));
    var se_BatchGetSecretValueCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("BatchGetSecretValue");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_BatchGetSecretValueCommand");
    var se_CancelRotateSecretCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("CancelRotateSecret");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CancelRotateSecretCommand");
    var se_CreateSecretCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("CreateSecret");
      let body;
      body = JSON.stringify(se_CreateSecretRequest(input, context));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateSecretCommand");
    var se_DeleteResourcePolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteResourcePolicy");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteResourcePolicyCommand");
    var se_DeleteSecretCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteSecret");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteSecretCommand");
    var se_DescribeSecretCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeSecret");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeSecretCommand");
    var se_GetRandomPasswordCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetRandomPassword");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetRandomPasswordCommand");
    var se_GetResourcePolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetResourcePolicy");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetResourcePolicyCommand");
    var se_GetSecretValueCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetSecretValue");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetSecretValueCommand");
    var se_ListSecretsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListSecrets");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListSecretsCommand");
    var se_ListSecretVersionIdsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListSecretVersionIds");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListSecretVersionIdsCommand");
    var se_PutResourcePolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("PutResourcePolicy");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_PutResourcePolicyCommand");
    var se_PutSecretValueCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("PutSecretValue");
      let body;
      body = JSON.stringify(se_PutSecretValueRequest(input, context));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_PutSecretValueCommand");
    var se_RemoveRegionsFromReplicationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("RemoveRegionsFromReplication");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_RemoveRegionsFromReplicationCommand");
    var se_ReplicateSecretToRegionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ReplicateSecretToRegions");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ReplicateSecretToRegionsCommand");
    var se_RestoreSecretCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("RestoreSecret");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_RestoreSecretCommand");
    var se_RotateSecretCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("RotateSecret");
      let body;
      body = JSON.stringify(se_RotateSecretRequest(input, context));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_RotateSecretCommand");
    var se_StopReplicationToReplicaCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("StopReplicationToReplica");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_StopReplicationToReplicaCommand");
    var se_TagResourceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("TagResource");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_TagResourceCommand");
    var se_UntagResourceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("UntagResource");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UntagResourceCommand");
    var se_UpdateSecretCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("UpdateSecret");
      let body;
      body = JSON.stringify(se_UpdateSecretRequest(input, context));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateSecretCommand");
    var se_UpdateSecretVersionStageCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("UpdateSecretVersionStage");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateSecretVersionStageCommand");
    var se_ValidateResourcePolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ValidateResourcePolicy");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ValidateResourcePolicyCommand");
    var de_BatchGetSecretValueCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_BatchGetSecretValueResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_BatchGetSecretValueCommand");
    var de_CancelRotateSecretCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CancelRotateSecretCommand");
    var de_CreateSecretCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_CreateSecretResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateSecretCommand");
    var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteResourcePolicyCommand");
    var de_DeleteSecretCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DeleteSecretResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteSecretCommand");
    var de_DescribeSecretCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DescribeSecretResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeSecretCommand");
    var de_GetRandomPasswordCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetRandomPasswordCommand");
    var de_GetResourcePolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetResourcePolicyCommand");
    var de_GetSecretValueCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_GetSecretValueResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetSecretValueCommand");
    var de_ListSecretsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_ListSecretsResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListSecretsCommand");
    var de_ListSecretVersionIdsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_ListSecretVersionIdsResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListSecretVersionIdsCommand");
    var de_PutResourcePolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_PutResourcePolicyCommand");
    var de_PutSecretValueCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_PutSecretValueCommand");
    var de_RemoveRegionsFromReplicationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_RemoveRegionsFromReplicationResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_RemoveRegionsFromReplicationCommand");
    var de_ReplicateSecretToRegionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_ReplicateSecretToRegionsResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ReplicateSecretToRegionsCommand");
    var de_RestoreSecretCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_RestoreSecretCommand");
    var de_RotateSecretCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_RotateSecretCommand");
    var de_StopReplicationToReplicaCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_StopReplicationToReplicaCommand");
    var de_TagResourceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_TagResourceCommand");
    var de_UntagResourceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_UntagResourceCommand");
    var de_UpdateSecretCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UpdateSecretCommand");
    var de_UpdateSecretVersionStageCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UpdateSecretVersionStageCommand");
    var de_ValidateResourcePolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ValidateResourcePolicyCommand");
    var de_CommandError3 = /* @__PURE__ */ __name2(async (output, context) => {
      const parsedOutput = {
        ...output,
        body: await (0, import_core22.parseJsonErrorBody)(output.body, context)
      };
      const errorCode = (0, import_core22.loadRestJsonErrorCode)(output, parsedOutput.body);
      switch (errorCode) {
        case "DecryptionFailure":
        case "com.amazonaws.secretsmanager#DecryptionFailure":
          throw await de_DecryptionFailureRes(parsedOutput, context);
        case "InternalServiceError":
        case "com.amazonaws.secretsmanager#InternalServiceError":
          throw await de_InternalServiceErrorRes(parsedOutput, context);
        case "InvalidNextTokenException":
        case "com.amazonaws.secretsmanager#InvalidNextTokenException":
          throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
        case "InvalidParameterException":
        case "com.amazonaws.secretsmanager#InvalidParameterException":
          throw await de_InvalidParameterExceptionRes(parsedOutput, context);
        case "InvalidRequestException":
        case "com.amazonaws.secretsmanager#InvalidRequestException":
          throw await de_InvalidRequestExceptionRes2(parsedOutput, context);
        case "ResourceNotFoundException":
        case "com.amazonaws.secretsmanager#ResourceNotFoundException":
          throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
        case "EncryptionFailure":
        case "com.amazonaws.secretsmanager#EncryptionFailure":
          throw await de_EncryptionFailureRes(parsedOutput, context);
        case "LimitExceededException":
        case "com.amazonaws.secretsmanager#LimitExceededException":
          throw await de_LimitExceededExceptionRes(parsedOutput, context);
        case "MalformedPolicyDocumentException":
        case "com.amazonaws.secretsmanager#MalformedPolicyDocumentException":
          throw await de_MalformedPolicyDocumentExceptionRes2(parsedOutput, context);
        case "PreconditionNotMetException":
        case "com.amazonaws.secretsmanager#PreconditionNotMetException":
          throw await de_PreconditionNotMetExceptionRes(parsedOutput, context);
        case "ResourceExistsException":
        case "com.amazonaws.secretsmanager#ResourceExistsException":
          throw await de_ResourceExistsExceptionRes(parsedOutput, context);
        case "PublicPolicyException":
        case "com.amazonaws.secretsmanager#PublicPolicyException":
          throw await de_PublicPolicyExceptionRes(parsedOutput, context);
        default:
          const parsedBody = parsedOutput.body;
          return throwDefaultError3({
            output,
            parsedBody,
            errorCode
          });
      }
    }, "de_CommandError");
    var de_DecryptionFailureRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new DecryptionFailure({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_DecryptionFailureRes");
    var de_EncryptionFailureRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new EncryptionFailure({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_EncryptionFailureRes");
    var de_InternalServiceErrorRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InternalServiceError({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InternalServiceErrorRes");
    var de_InvalidNextTokenExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidNextTokenException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidNextTokenExceptionRes");
    var de_InvalidParameterExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidParameterException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidParameterExceptionRes");
    var de_InvalidRequestExceptionRes2 = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidRequestException2({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidRequestExceptionRes");
    var de_LimitExceededExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new LimitExceededException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_LimitExceededExceptionRes");
    var de_MalformedPolicyDocumentExceptionRes2 = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new MalformedPolicyDocumentException2({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_MalformedPolicyDocumentExceptionRes");
    var de_PreconditionNotMetExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new PreconditionNotMetException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_PreconditionNotMetExceptionRes");
    var de_PublicPolicyExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new PublicPolicyException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_PublicPolicyExceptionRes");
    var de_ResourceExistsExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ResourceExistsException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ResourceExistsExceptionRes");
    var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ResourceNotFoundException2({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ResourceNotFoundExceptionRes");
    var se_CreateSecretRequest = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        AddReplicaRegions: import_smithy_client28._json,
        ClientRequestToken: [true, (_3) => _3 ?? (0, import_uuid2.v4)()],
        Description: [],
        ForceOverwriteReplicaSecret: [],
        KmsKeyId: [],
        Name: [],
        SecretBinary: context.base64Encoder,
        SecretString: [],
        Tags: import_smithy_client28._json
      });
    }, "se_CreateSecretRequest");
    var se_PutSecretValueRequest = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        ClientRequestToken: [true, (_3) => _3 ?? (0, import_uuid2.v4)()],
        RotationToken: [],
        SecretBinary: context.base64Encoder,
        SecretId: [],
        SecretString: [],
        VersionStages: import_smithy_client28._json
      });
    }, "se_PutSecretValueRequest");
    var se_RotateSecretRequest = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        ClientRequestToken: [true, (_3) => _3 ?? (0, import_uuid2.v4)()],
        RotateImmediately: [],
        RotationLambdaARN: [],
        RotationRules: import_smithy_client28._json,
        SecretId: []
      });
    }, "se_RotateSecretRequest");
    var se_UpdateSecretRequest = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        ClientRequestToken: [true, (_3) => _3 ?? (0, import_uuid2.v4)()],
        Description: [],
        KmsKeyId: [],
        SecretBinary: context.base64Encoder,
        SecretId: [],
        SecretString: []
      });
    }, "se_UpdateSecretRequest");
    var de_BatchGetSecretValueResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        Errors: import_smithy_client28._json,
        NextToken: import_smithy_client28.expectString,
        SecretValues: /* @__PURE__ */ __name2((_3) => de_SecretValuesType(_3, context), "SecretValues")
      });
    }, "de_BatchGetSecretValueResponse");
    var de_CreateSecretResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        ARN: import_smithy_client28.expectString,
        Name: import_smithy_client28.expectString,
        ReplicationStatus: /* @__PURE__ */ __name2((_3) => de_ReplicationStatusListType(_3, context), "ReplicationStatus"),
        VersionId: import_smithy_client28.expectString
      });
    }, "de_CreateSecretResponse");
    var de_DeleteSecretResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        ARN: import_smithy_client28.expectString,
        DeletionDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "DeletionDate"),
        Name: import_smithy_client28.expectString
      });
    }, "de_DeleteSecretResponse");
    var de_DescribeSecretResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        ARN: import_smithy_client28.expectString,
        CreatedDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "CreatedDate"),
        DeletedDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "DeletedDate"),
        Description: import_smithy_client28.expectString,
        KmsKeyId: import_smithy_client28.expectString,
        LastAccessedDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "LastAccessedDate"),
        LastChangedDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "LastChangedDate"),
        LastRotatedDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "LastRotatedDate"),
        Name: import_smithy_client28.expectString,
        NextRotationDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "NextRotationDate"),
        OwningService: import_smithy_client28.expectString,
        PrimaryRegion: import_smithy_client28.expectString,
        ReplicationStatus: /* @__PURE__ */ __name2((_3) => de_ReplicationStatusListType(_3, context), "ReplicationStatus"),
        RotationEnabled: import_smithy_client28.expectBoolean,
        RotationLambdaARN: import_smithy_client28.expectString,
        RotationRules: import_smithy_client28._json,
        Tags: import_smithy_client28._json,
        VersionIdsToStages: import_smithy_client28._json
      });
    }, "de_DescribeSecretResponse");
    var de_GetSecretValueResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        ARN: import_smithy_client28.expectString,
        CreatedDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "CreatedDate"),
        Name: import_smithy_client28.expectString,
        SecretBinary: context.base64Decoder,
        SecretString: import_smithy_client28.expectString,
        VersionId: import_smithy_client28.expectString,
        VersionStages: import_smithy_client28._json
      });
    }, "de_GetSecretValueResponse");
    var de_ListSecretsResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        NextToken: import_smithy_client28.expectString,
        SecretList: /* @__PURE__ */ __name2((_3) => de_SecretListType(_3, context), "SecretList")
      });
    }, "de_ListSecretsResponse");
    var de_ListSecretVersionIdsResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        ARN: import_smithy_client28.expectString,
        Name: import_smithy_client28.expectString,
        NextToken: import_smithy_client28.expectString,
        Versions: /* @__PURE__ */ __name2((_3) => de_SecretVersionsListType(_3, context), "Versions")
      });
    }, "de_ListSecretVersionIdsResponse");
    var de_RemoveRegionsFromReplicationResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        ARN: import_smithy_client28.expectString,
        ReplicationStatus: /* @__PURE__ */ __name2((_3) => de_ReplicationStatusListType(_3, context), "ReplicationStatus")
      });
    }, "de_RemoveRegionsFromReplicationResponse");
    var de_ReplicateSecretToRegionsResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        ARN: import_smithy_client28.expectString,
        ReplicationStatus: /* @__PURE__ */ __name2((_3) => de_ReplicationStatusListType(_3, context), "ReplicationStatus")
      });
    }, "de_ReplicateSecretToRegionsResponse");
    var de_ReplicationStatusListType = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ReplicationStatusType(entry, context);
      });
      return retVal;
    }, "de_ReplicationStatusListType");
    var de_ReplicationStatusType = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        KmsKeyId: import_smithy_client28.expectString,
        LastAccessedDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "LastAccessedDate"),
        Region: import_smithy_client28.expectString,
        Status: import_smithy_client28.expectString,
        StatusMessage: import_smithy_client28.expectString
      });
    }, "de_ReplicationStatusType");
    var de_SecretListEntry = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        ARN: import_smithy_client28.expectString,
        CreatedDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "CreatedDate"),
        DeletedDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "DeletedDate"),
        Description: import_smithy_client28.expectString,
        KmsKeyId: import_smithy_client28.expectString,
        LastAccessedDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "LastAccessedDate"),
        LastChangedDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "LastChangedDate"),
        LastRotatedDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "LastRotatedDate"),
        Name: import_smithy_client28.expectString,
        NextRotationDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "NextRotationDate"),
        OwningService: import_smithy_client28.expectString,
        PrimaryRegion: import_smithy_client28.expectString,
        RotationEnabled: import_smithy_client28.expectBoolean,
        RotationLambdaARN: import_smithy_client28.expectString,
        RotationRules: import_smithy_client28._json,
        SecretVersionsToStages: import_smithy_client28._json,
        Tags: import_smithy_client28._json
      });
    }, "de_SecretListEntry");
    var de_SecretListType = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_SecretListEntry(entry, context);
      });
      return retVal;
    }, "de_SecretListType");
    var de_SecretValueEntry = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        ARN: import_smithy_client28.expectString,
        CreatedDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "CreatedDate"),
        Name: import_smithy_client28.expectString,
        SecretBinary: context.base64Decoder,
        SecretString: import_smithy_client28.expectString,
        VersionId: import_smithy_client28.expectString,
        VersionStages: import_smithy_client28._json
      });
    }, "de_SecretValueEntry");
    var de_SecretValuesType = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_SecretValueEntry(entry, context);
      });
      return retVal;
    }, "de_SecretValuesType");
    var de_SecretVersionsListEntry = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        CreatedDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "CreatedDate"),
        KmsKeyIds: import_smithy_client28._json,
        LastAccessedDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "LastAccessedDate"),
        VersionId: import_smithy_client28.expectString,
        VersionStages: import_smithy_client28._json
      });
    }, "de_SecretVersionsListEntry");
    var de_SecretVersionsListType = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_SecretVersionsListEntry(entry, context);
      });
      return retVal;
    }, "de_SecretVersionsListType");
    var deserializeMetadata3 = /* @__PURE__ */ __name2((output) => ({
      httpStatusCode: output.statusCode,
      requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
      extendedRequestId: output.headers["x-amz-id-2"],
      cfId: output.headers["x-amz-cf-id"]
    }), "deserializeMetadata");
    var throwDefaultError3 = (0, import_smithy_client28.withBaseException)(SecretsManagerServiceException);
    var buildHttpRpcRequest2 = /* @__PURE__ */ __name2(async (context, headers, path38, resolvedHostname, body) => {
      const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
      const contents = {
        protocol,
        hostname,
        port,
        method: "POST",
        path: basePath.endsWith("/") ? basePath.slice(0, -1) + path38 : basePath + path38,
        headers
      };
      if (resolvedHostname !== void 0) {
        contents.hostname = resolvedHostname;
      }
      if (body !== void 0) {
        contents.body = body;
      }
      return new import_protocol_http16.HttpRequest(contents);
    }, "buildHttpRpcRequest");
    function sharedHeaders(operation) {
      return {
        "content-type": "application/x-amz-json-1.1",
        "x-amz-target": `secretsmanager.${operation}`
      };
    }
    __name(sharedHeaders, "sharedHeaders");
    __name2(sharedHeaders, "sharedHeaders");
    var BatchGetSecretValueCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("secretsmanager", "BatchGetSecretValue", {}).n("SecretsManagerClient", "BatchGetSecretValueCommand").f(void 0, BatchGetSecretValueResponseFilterSensitiveLog).ser(se_BatchGetSecretValueCommand).de(de_BatchGetSecretValueCommand).build() {
      static {
        __name(this, "BatchGetSecretValueCommand");
      }
      static {
        __name2(this, "BatchGetSecretValueCommand");
      }
    };
    var CancelRotateSecretCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("secretsmanager", "CancelRotateSecret", {}).n("SecretsManagerClient", "CancelRotateSecretCommand").f(void 0, void 0).ser(se_CancelRotateSecretCommand).de(de_CancelRotateSecretCommand).build() {
      static {
        __name(this, "CancelRotateSecretCommand");
      }
      static {
        __name2(this, "CancelRotateSecretCommand");
      }
    };
    var CreateSecretCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("secretsmanager", "CreateSecret", {}).n("SecretsManagerClient", "CreateSecretCommand").f(CreateSecretRequestFilterSensitiveLog, void 0).ser(se_CreateSecretCommand).de(de_CreateSecretCommand).build() {
      static {
        __name(this, "CreateSecretCommand");
      }
      static {
        __name2(this, "CreateSecretCommand");
      }
    };
    var DeleteResourcePolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("secretsmanager", "DeleteResourcePolicy", {}).n("SecretsManagerClient", "DeleteResourcePolicyCommand").f(void 0, void 0).ser(se_DeleteResourcePolicyCommand).de(de_DeleteResourcePolicyCommand).build() {
      static {
        __name(this, "DeleteResourcePolicyCommand");
      }
      static {
        __name2(this, "DeleteResourcePolicyCommand");
      }
    };
    var DeleteSecretCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("secretsmanager", "DeleteSecret", {}).n("SecretsManagerClient", "DeleteSecretCommand").f(void 0, void 0).ser(se_DeleteSecretCommand).de(de_DeleteSecretCommand).build() {
      static {
        __name(this, "DeleteSecretCommand");
      }
      static {
        __name2(this, "DeleteSecretCommand");
      }
    };
    var DescribeSecretCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("secretsmanager", "DescribeSecret", {}).n("SecretsManagerClient", "DescribeSecretCommand").f(void 0, void 0).ser(se_DescribeSecretCommand).de(de_DescribeSecretCommand).build() {
      static {
        __name(this, "DescribeSecretCommand");
      }
      static {
        __name2(this, "DescribeSecretCommand");
      }
    };
    var GetRandomPasswordCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("secretsmanager", "GetRandomPassword", {}).n("SecretsManagerClient", "GetRandomPasswordCommand").f(void 0, GetRandomPasswordResponseFilterSensitiveLog).ser(se_GetRandomPasswordCommand).de(de_GetRandomPasswordCommand).build() {
      static {
        __name(this, "GetRandomPasswordCommand");
      }
      static {
        __name2(this, "GetRandomPasswordCommand");
      }
    };
    var GetResourcePolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("secretsmanager", "GetResourcePolicy", {}).n("SecretsManagerClient", "GetResourcePolicyCommand").f(void 0, void 0).ser(se_GetResourcePolicyCommand).de(de_GetResourcePolicyCommand).build() {
      static {
        __name(this, "GetResourcePolicyCommand");
      }
      static {
        __name2(this, "GetResourcePolicyCommand");
      }
    };
    var GetSecretValueCommand3 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("secretsmanager", "GetSecretValue", {}).n("SecretsManagerClient", "GetSecretValueCommand").f(void 0, GetSecretValueResponseFilterSensitiveLog).ser(se_GetSecretValueCommand).de(de_GetSecretValueCommand).build() {
      static {
        __name(this, "GetSecretValueCommand");
      }
      static {
        __name2(this, "GetSecretValueCommand");
      }
    };
    var ListSecretsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("secretsmanager", "ListSecrets", {}).n("SecretsManagerClient", "ListSecretsCommand").f(void 0, void 0).ser(se_ListSecretsCommand).de(de_ListSecretsCommand).build() {
      static {
        __name(this, "ListSecretsCommand");
      }
      static {
        __name2(this, "ListSecretsCommand");
      }
    };
    var ListSecretVersionIdsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("secretsmanager", "ListSecretVersionIds", {}).n("SecretsManagerClient", "ListSecretVersionIdsCommand").f(void 0, void 0).ser(se_ListSecretVersionIdsCommand).de(de_ListSecretVersionIdsCommand).build() {
      static {
        __name(this, "ListSecretVersionIdsCommand");
      }
      static {
        __name2(this, "ListSecretVersionIdsCommand");
      }
    };
    var PutResourcePolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("secretsmanager", "PutResourcePolicy", {}).n("SecretsManagerClient", "PutResourcePolicyCommand").f(void 0, void 0).ser(se_PutResourcePolicyCommand).de(de_PutResourcePolicyCommand).build() {
      static {
        __name(this, "PutResourcePolicyCommand");
      }
      static {
        __name2(this, "PutResourcePolicyCommand");
      }
    };
    var PutSecretValueCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("secretsmanager", "PutSecretValue", {}).n("SecretsManagerClient", "PutSecretValueCommand").f(PutSecretValueRequestFilterSensitiveLog, void 0).ser(se_PutSecretValueCommand).de(de_PutSecretValueCommand).build() {
      static {
        __name(this, "PutSecretValueCommand");
      }
      static {
        __name2(this, "PutSecretValueCommand");
      }
    };
    var RemoveRegionsFromReplicationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("secretsmanager", "RemoveRegionsFromReplication", {}).n("SecretsManagerClient", "RemoveRegionsFromReplicationCommand").f(void 0, void 0).ser(se_RemoveRegionsFromReplicationCommand).de(de_RemoveRegionsFromReplicationCommand).build() {
      static {
        __name(this, "RemoveRegionsFromReplicationCommand");
      }
      static {
        __name2(this, "RemoveRegionsFromReplicationCommand");
      }
    };
    var ReplicateSecretToRegionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("secretsmanager", "ReplicateSecretToRegions", {}).n("SecretsManagerClient", "ReplicateSecretToRegionsCommand").f(void 0, void 0).ser(se_ReplicateSecretToRegionsCommand).de(de_ReplicateSecretToRegionsCommand).build() {
      static {
        __name(this, "ReplicateSecretToRegionsCommand");
      }
      static {
        __name2(this, "ReplicateSecretToRegionsCommand");
      }
    };
    var RestoreSecretCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("secretsmanager", "RestoreSecret", {}).n("SecretsManagerClient", "RestoreSecretCommand").f(void 0, void 0).ser(se_RestoreSecretCommand).de(de_RestoreSecretCommand).build() {
      static {
        __name(this, "RestoreSecretCommand");
      }
      static {
        __name2(this, "RestoreSecretCommand");
      }
    };
    var RotateSecretCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("secretsmanager", "RotateSecret", {}).n("SecretsManagerClient", "RotateSecretCommand").f(void 0, void 0).ser(se_RotateSecretCommand).de(de_RotateSecretCommand).build() {
      static {
        __name(this, "RotateSecretCommand");
      }
      static {
        __name2(this, "RotateSecretCommand");
      }
    };
    var StopReplicationToReplicaCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("secretsmanager", "StopReplicationToReplica", {}).n("SecretsManagerClient", "StopReplicationToReplicaCommand").f(void 0, void 0).ser(se_StopReplicationToReplicaCommand).de(de_StopReplicationToReplicaCommand).build() {
      static {
        __name(this, "StopReplicationToReplicaCommand");
      }
      static {
        __name2(this, "StopReplicationToReplicaCommand");
      }
    };
    var TagResourceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("secretsmanager", "TagResource", {}).n("SecretsManagerClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
      static {
        __name(this, "TagResourceCommand");
      }
      static {
        __name2(this, "TagResourceCommand");
      }
    };
    var UntagResourceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("secretsmanager", "UntagResource", {}).n("SecretsManagerClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
      static {
        __name(this, "UntagResourceCommand");
      }
      static {
        __name2(this, "UntagResourceCommand");
      }
    };
    var UpdateSecretCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("secretsmanager", "UpdateSecret", {}).n("SecretsManagerClient", "UpdateSecretCommand").f(UpdateSecretRequestFilterSensitiveLog, void 0).ser(se_UpdateSecretCommand).de(de_UpdateSecretCommand).build() {
      static {
        __name(this, "UpdateSecretCommand");
      }
      static {
        __name2(this, "UpdateSecretCommand");
      }
    };
    var UpdateSecretVersionStageCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("secretsmanager", "UpdateSecretVersionStage", {}).n("SecretsManagerClient", "UpdateSecretVersionStageCommand").f(void 0, void 0).ser(se_UpdateSecretVersionStageCommand).de(de_UpdateSecretVersionStageCommand).build() {
      static {
        __name(this, "UpdateSecretVersionStageCommand");
      }
      static {
        __name2(this, "UpdateSecretVersionStageCommand");
      }
    };
    var ValidateResourcePolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("secretsmanager", "ValidateResourcePolicy", {}).n("SecretsManagerClient", "ValidateResourcePolicyCommand").f(void 0, void 0).ser(se_ValidateResourcePolicyCommand).de(de_ValidateResourcePolicyCommand).build() {
      static {
        __name(this, "ValidateResourcePolicyCommand");
      }
      static {
        __name2(this, "ValidateResourcePolicyCommand");
      }
    };
    var commands3 = {
      BatchGetSecretValueCommand,
      CancelRotateSecretCommand,
      CreateSecretCommand,
      DeleteResourcePolicyCommand,
      DeleteSecretCommand,
      DescribeSecretCommand,
      GetRandomPasswordCommand,
      GetResourcePolicyCommand,
      GetSecretValueCommand: GetSecretValueCommand3,
      ListSecretsCommand,
      ListSecretVersionIdsCommand,
      PutResourcePolicyCommand,
      PutSecretValueCommand,
      RemoveRegionsFromReplicationCommand,
      ReplicateSecretToRegionsCommand,
      RestoreSecretCommand,
      RotateSecretCommand,
      StopReplicationToReplicaCommand,
      TagResourceCommand,
      UntagResourceCommand,
      UpdateSecretCommand,
      UpdateSecretVersionStageCommand,
      ValidateResourcePolicyCommand
    };
    var SecretsManager = class extends SecretsManagerClient3 {
      static {
        __name(this, "SecretsManager");
      }
      static {
        __name2(this, "SecretsManager");
      }
    };
    (0, import_smithy_client28.createAggregatedClient)(commands3, SecretsManager);
    var paginateBatchGetSecretValue = (0, import_core17.createPaginator)(SecretsManagerClient3, BatchGetSecretValueCommand, "NextToken", "NextToken", "MaxResults");
    var paginateListSecretVersionIds = (0, import_core17.createPaginator)(SecretsManagerClient3, ListSecretVersionIdsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateListSecrets = (0, import_core17.createPaginator)(SecretsManagerClient3, ListSecretsCommand, "NextToken", "NextToken", "MaxResults");
  }
});

// ../../node_modules/@aws-sdk/client-sts/dist-cjs/auth/httpAuthSchemeProvider.js
var require_httpAuthSchemeProvider5 = __commonJS({
  "../../node_modules/@aws-sdk/client-sts/dist-cjs/auth/httpAuthSchemeProvider.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.resolveHttpAuthSchemeConfig = exports2.resolveStsAuthConfig = exports2.defaultSTSHttpAuthSchemeProvider = exports2.defaultSTSHttpAuthSchemeParametersProvider = void 0;
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var util_middleware_1 = require_dist_cjs6();
    var STSClient_1 = require_STSClient();
    var defaultSTSHttpAuthSchemeParametersProvider2 = /* @__PURE__ */ __name(async (config, context, input) => {
      return {
        operation: (0, util_middleware_1.getSmithyContext)(context).operation,
        region: await (0, util_middleware_1.normalizeProvider)(config.region)() || (() => {
          throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
        })()
      };
    }, "defaultSTSHttpAuthSchemeParametersProvider");
    exports2.defaultSTSHttpAuthSchemeParametersProvider = defaultSTSHttpAuthSchemeParametersProvider2;
    function createAwsAuthSigv4HttpAuthOption3(authParameters) {
      return {
        schemeId: "aws.auth#sigv4",
        signingProperties: {
          name: "sts",
          region: authParameters.region
        },
        propertiesExtractor: /* @__PURE__ */ __name((config, context) => ({
          signingProperties: {
            config,
            context
          }
        }), "propertiesExtractor")
      };
    }
    __name(createAwsAuthSigv4HttpAuthOption3, "createAwsAuthSigv4HttpAuthOption");
    function createSmithyApiNoAuthHttpAuthOption3(authParameters) {
      return {
        schemeId: "smithy.api#noAuth"
      };
    }
    __name(createSmithyApiNoAuthHttpAuthOption3, "createSmithyApiNoAuthHttpAuthOption");
    var defaultSTSHttpAuthSchemeProvider2 = /* @__PURE__ */ __name((authParameters) => {
      const options = [];
      switch (authParameters.operation) {
        case "AssumeRoleWithSAML": {
          options.push(createSmithyApiNoAuthHttpAuthOption3(authParameters));
          break;
        }
        case "AssumeRoleWithWebIdentity": {
          options.push(createSmithyApiNoAuthHttpAuthOption3(authParameters));
          break;
        }
        default: {
          options.push(createAwsAuthSigv4HttpAuthOption3(authParameters));
        }
      }
      return options;
    }, "defaultSTSHttpAuthSchemeProvider");
    exports2.defaultSTSHttpAuthSchemeProvider = defaultSTSHttpAuthSchemeProvider2;
    var resolveStsAuthConfig2 = /* @__PURE__ */ __name((input) => Object.assign(input, {
      stsClientCtor: STSClient_1.STSClient
    }), "resolveStsAuthConfig");
    exports2.resolveStsAuthConfig = resolveStsAuthConfig2;
    var resolveHttpAuthSchemeConfig3 = /* @__PURE__ */ __name((config) => {
      const config_0 = (0, exports2.resolveStsAuthConfig)(config);
      const config_1 = (0, core_1.resolveAwsSdkSigV4Config)(config_0);
      return Object.assign(config_1, {
        authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? [])
      });
    }, "resolveHttpAuthSchemeConfig");
    exports2.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig3;
  }
});

// ../../node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/EndpointParameters.js
var require_EndpointParameters = __commonJS({
  "../../node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/EndpointParameters.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.commonParams = exports2.resolveClientEndpointParameters = void 0;
    var resolveClientEndpointParameters3 = /* @__PURE__ */ __name((options) => {
      return Object.assign(options, {
        useDualstackEndpoint: options.useDualstackEndpoint ?? false,
        useFipsEndpoint: options.useFipsEndpoint ?? false,
        useGlobalEndpoint: options.useGlobalEndpoint ?? false,
        defaultSigningName: "sts"
      });
    }, "resolveClientEndpointParameters");
    exports2.resolveClientEndpointParameters = resolveClientEndpointParameters3;
    exports2.commonParams = {
      UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" },
      UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
      Endpoint: { type: "builtInParams", name: "endpoint" },
      Region: { type: "builtInParams", name: "region" },
      UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
    };
  }
});

// ../../node_modules/@aws-sdk/client-sts/package.json
var require_package5 = __commonJS({
  "../../node_modules/@aws-sdk/client-sts/package.json"(exports2, module2) {
    module2.exports = {
      name: "@aws-sdk/client-sts",
      description: "AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",
      version: "3.879.0",
      scripts: {
        build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
        "build:cjs": "node ../../scripts/compilation/inline client-sts",
        "build:es": "tsc -p tsconfig.es.json",
        "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
        "build:types": "rimraf ./dist-types tsconfig.types.tsbuildinfo && tsc -p tsconfig.types.json",
        "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
        clean: "rimraf ./dist-* && rimraf *.tsbuildinfo",
        "extract:docs": "api-extractor run --local",
        "generate:client": "node ../../scripts/generate-clients/single-service --solo sts",
        test: "yarn g:vitest run",
        "test:watch": "yarn g:vitest watch"
      },
      main: "./dist-cjs/index.js",
      types: "./dist-types/index.d.ts",
      module: "./dist-es/index.js",
      sideEffects: false,
      dependencies: {
        "@aws-crypto/sha256-browser": "5.2.0",
        "@aws-crypto/sha256-js": "5.2.0",
        "@aws-sdk/core": "3.879.0",
        "@aws-sdk/credential-provider-node": "3.879.0",
        "@aws-sdk/middleware-host-header": "3.873.0",
        "@aws-sdk/middleware-logger": "3.876.0",
        "@aws-sdk/middleware-recursion-detection": "3.873.0",
        "@aws-sdk/middleware-user-agent": "3.879.0",
        "@aws-sdk/region-config-resolver": "3.873.0",
        "@aws-sdk/types": "3.862.0",
        "@aws-sdk/util-endpoints": "3.879.0",
        "@aws-sdk/util-user-agent-browser": "3.873.0",
        "@aws-sdk/util-user-agent-node": "3.879.0",
        "@smithy/config-resolver": "^4.1.5",
        "@smithy/core": "^3.9.0",
        "@smithy/fetch-http-handler": "^5.1.1",
        "@smithy/hash-node": "^4.0.5",
        "@smithy/invalid-dependency": "^4.0.5",
        "@smithy/middleware-content-length": "^4.0.5",
        "@smithy/middleware-endpoint": "^4.1.19",
        "@smithy/middleware-retry": "^4.1.20",
        "@smithy/middleware-serde": "^4.0.9",
        "@smithy/middleware-stack": "^4.0.5",
        "@smithy/node-config-provider": "^4.1.4",
        "@smithy/node-http-handler": "^4.1.1",
        "@smithy/protocol-http": "^5.1.3",
        "@smithy/smithy-client": "^4.5.0",
        "@smithy/types": "^4.3.2",
        "@smithy/url-parser": "^4.0.5",
        "@smithy/util-base64": "^4.0.0",
        "@smithy/util-body-length-browser": "^4.0.0",
        "@smithy/util-body-length-node": "^4.0.0",
        "@smithy/util-defaults-mode-browser": "^4.0.27",
        "@smithy/util-defaults-mode-node": "^4.0.27",
        "@smithy/util-endpoints": "^3.0.7",
        "@smithy/util-middleware": "^4.0.5",
        "@smithy/util-retry": "^4.0.7",
        "@smithy/util-utf8": "^4.0.0",
        tslib: "^2.6.2"
      },
      devDependencies: {
        "@tsconfig/node18": "18.2.4",
        "@types/node": "^18.19.69",
        concurrently: "7.0.0",
        "downlevel-dts": "0.10.1",
        rimraf: "3.0.2",
        typescript: "~5.8.3"
      },
      engines: {
        node: ">=18.0.0"
      },
      typesVersions: {
        "<4.0": {
          "dist-types/*": [
            "dist-types/ts3.4/*"
          ]
        }
      },
      files: [
        "dist-*/**"
      ],
      author: {
        name: "AWS SDK for JavaScript Team",
        url: "https://aws.amazon.com/javascript/"
      },
      license: "Apache-2.0",
      browser: {
        "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
      },
      "react-native": {
        "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
      },
      homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts",
      repository: {
        type: "git",
        url: "https://github.com/aws/aws-sdk-js-v3.git",
        directory: "clients/client-sts"
      }
    };
  }
});

// ../../node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/ruleset.js
var require_ruleset5 = __commonJS({
  "../../node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/ruleset.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.ruleSet = void 0;
    var F2 = "required";
    var G2 = "type";
    var H2 = "fn";
    var I2 = "argv";
    var J2 = "ref";
    var a3 = false;
    var b3 = true;
    var c3 = "booleanEquals";
    var d3 = "stringEquals";
    var e3 = "sigv4";
    var f3 = "sts";
    var g3 = "us-east-1";
    var h3 = "endpoint";
    var i3 = "https://sts.{Region}.{PartitionResult#dnsSuffix}";
    var j3 = "tree";
    var k3 = "error";
    var l3 = "getAttr";
    var m3 = { [F2]: false, [G2]: "String" };
    var n3 = { [F2]: true, "default": false, [G2]: "Boolean" };
    var o3 = { [J2]: "Endpoint" };
    var p3 = { [H2]: "isSet", [I2]: [{ [J2]: "Region" }] };
    var q3 = { [J2]: "Region" };
    var r3 = { [H2]: "aws.partition", [I2]: [q3], "assign": "PartitionResult" };
    var s3 = { [J2]: "UseFIPS" };
    var t3 = { [J2]: "UseDualStack" };
    var u3 = { "url": "https://sts.amazonaws.com", "properties": { "authSchemes": [{ "name": e3, "signingName": f3, "signingRegion": g3 }] }, "headers": {} };
    var v6 = {};
    var w3 = { "conditions": [{ [H2]: d3, [I2]: [q3, "aws-global"] }], [h3]: u3, [G2]: h3 };
    var x3 = { [H2]: c3, [I2]: [s3, true] };
    var y2 = { [H2]: c3, [I2]: [t3, true] };
    var z2 = { [H2]: l3, [I2]: [{ [J2]: "PartitionResult" }, "supportsFIPS"] };
    var A2 = { [J2]: "PartitionResult" };
    var B2 = { [H2]: c3, [I2]: [true, { [H2]: l3, [I2]: [A2, "supportsDualStack"] }] };
    var C2 = [{ [H2]: "isSet", [I2]: [o3] }];
    var D2 = [x3];
    var E2 = [y2];
    var _data3 = { version: "1.0", parameters: { Region: m3, UseDualStack: n3, UseFIPS: n3, Endpoint: m3, UseGlobalEndpoint: n3 }, rules: [{ conditions: [{ [H2]: c3, [I2]: [{ [J2]: "UseGlobalEndpoint" }, b3] }, { [H2]: "not", [I2]: C2 }, p3, r3, { [H2]: c3, [I2]: [s3, a3] }, { [H2]: c3, [I2]: [t3, a3] }], rules: [{ conditions: [{ [H2]: d3, [I2]: [q3, "ap-northeast-1"] }], endpoint: u3, [G2]: h3 }, { conditions: [{ [H2]: d3, [I2]: [q3, "ap-south-1"] }], endpoint: u3, [G2]: h3 }, { conditions: [{ [H2]: d3, [I2]: [q3, "ap-southeast-1"] }], endpoint: u3, [G2]: h3 }, { conditions: [{ [H2]: d3, [I2]: [q3, "ap-southeast-2"] }], endpoint: u3, [G2]: h3 }, w3, { conditions: [{ [H2]: d3, [I2]: [q3, "ca-central-1"] }], endpoint: u3, [G2]: h3 }, { conditions: [{ [H2]: d3, [I2]: [q3, "eu-central-1"] }], endpoint: u3, [G2]: h3 }, { conditions: [{ [H2]: d3, [I2]: [q3, "eu-north-1"] }], endpoint: u3, [G2]: h3 }, { conditions: [{ [H2]: d3, [I2]: [q3, "eu-west-1"] }], endpoint: u3, [G2]: h3 }, { conditions: [{ [H2]: d3, [I2]: [q3, "eu-west-2"] }], endpoint: u3, [G2]: h3 }, { conditions: [{ [H2]: d3, [I2]: [q3, "eu-west-3"] }], endpoint: u3, [G2]: h3 }, { conditions: [{ [H2]: d3, [I2]: [q3, "sa-east-1"] }], endpoint: u3, [G2]: h3 }, { conditions: [{ [H2]: d3, [I2]: [q3, g3] }], endpoint: u3, [G2]: h3 }, { conditions: [{ [H2]: d3, [I2]: [q3, "us-east-2"] }], endpoint: u3, [G2]: h3 }, { conditions: [{ [H2]: d3, [I2]: [q3, "us-west-1"] }], endpoint: u3, [G2]: h3 }, { conditions: [{ [H2]: d3, [I2]: [q3, "us-west-2"] }], endpoint: u3, [G2]: h3 }, { endpoint: { url: i3, properties: { authSchemes: [{ name: e3, signingName: f3, signingRegion: "{Region}" }] }, headers: v6 }, [G2]: h3 }], [G2]: j3 }, { conditions: C2, rules: [{ conditions: D2, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [G2]: k3 }, { conditions: E2, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [G2]: k3 }, { endpoint: { url: o3, properties: v6, headers: v6 }, [G2]: h3 }], [G2]: j3 }, { conditions: [p3], rules: [{ conditions: [r3], rules: [{ conditions: [x3, y2], rules: [{ conditions: [{ [H2]: c3, [I2]: [b3, z2] }, B2], rules: [{ endpoint: { url: "https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: v6, headers: v6 }, [G2]: h3 }], [G2]: j3 }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", [G2]: k3 }], [G2]: j3 }, { conditions: D2, rules: [{ conditions: [{ [H2]: c3, [I2]: [z2, b3] }], rules: [{ conditions: [{ [H2]: d3, [I2]: [{ [H2]: l3, [I2]: [A2, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://sts.{Region}.amazonaws.com", properties: v6, headers: v6 }, [G2]: h3 }, { endpoint: { url: "https://sts-fips.{Region}.{PartitionResult#dnsSuffix}", properties: v6, headers: v6 }, [G2]: h3 }], [G2]: j3 }, { error: "FIPS is enabled but this partition does not support FIPS", [G2]: k3 }], [G2]: j3 }, { conditions: E2, rules: [{ conditions: [B2], rules: [{ endpoint: { url: "https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: v6, headers: v6 }, [G2]: h3 }], [G2]: j3 }, { error: "DualStack is enabled but this partition does not support DualStack", [G2]: k3 }], [G2]: j3 }, w3, { endpoint: { url: i3, properties: v6, headers: v6 }, [G2]: h3 }], [G2]: j3 }], [G2]: j3 }, { error: "Invalid Configuration: Missing Region", [G2]: k3 }] };
    exports2.ruleSet = _data3;
  }
});

// ../../node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/endpointResolver.js
var require_endpointResolver5 = __commonJS({
  "../../node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/endpointResolver.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.defaultEndpointResolver = void 0;
    var util_endpoints_1 = require_dist_cjs21();
    var util_endpoints_2 = require_dist_cjs18();
    var ruleset_1 = require_ruleset5();
    var cache3 = new util_endpoints_2.EndpointCache({
      size: 50,
      params: ["Endpoint", "Region", "UseDualStack", "UseFIPS", "UseGlobalEndpoint"]
    });
    var defaultEndpointResolver3 = /* @__PURE__ */ __name((endpointParams, context = {}) => {
      return cache3.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
        endpointParams,
        logger: context.logger
      }));
    }, "defaultEndpointResolver");
    exports2.defaultEndpointResolver = defaultEndpointResolver3;
    util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
  }
});

// ../../node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js
var require_runtimeConfig_shared5 = __commonJS({
  "../../node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.getRuntimeConfig = void 0;
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var core_2 = (init_dist_es(), __toCommonJS(dist_es_exports));
    var smithy_client_1 = require_dist_cjs26();
    var url_parser_1 = require_dist_cjs20();
    var util_base64_1 = require_dist_cjs11();
    var util_utf8_1 = require_dist_cjs10();
    var httpAuthSchemeProvider_1 = require_httpAuthSchemeProvider5();
    var endpointResolver_1 = require_endpointResolver5();
    var getRuntimeConfig5 = /* @__PURE__ */ __name((config) => {
      return {
        apiVersion: "2011-06-15",
        base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
        base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
        disableHostPrefix: config?.disableHostPrefix ?? false,
        endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
        extensions: config?.extensions ?? [],
        httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultSTSHttpAuthSchemeProvider,
        httpAuthSchemes: config?.httpAuthSchemes ?? [
          {
            schemeId: "aws.auth#sigv4",
            identityProvider: /* @__PURE__ */ __name((ipc) => ipc.getIdentityProvider("aws.auth#sigv4"), "identityProvider"),
            signer: new core_1.AwsSdkSigV4Signer()
          },
          {
            schemeId: "smithy.api#noAuth",
            identityProvider: /* @__PURE__ */ __name((ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})), "identityProvider"),
            signer: new core_2.NoAuthSigner()
          }
        ],
        logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
        serviceId: config?.serviceId ?? "STS",
        urlParser: config?.urlParser ?? url_parser_1.parseUrl,
        utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
        utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8
      };
    }, "getRuntimeConfig");
    exports2.getRuntimeConfig = getRuntimeConfig5;
  }
});

// ../../node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js
var require_runtimeConfig5 = __commonJS({
  "../../node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.getRuntimeConfig = void 0;
    var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
    var package_json_1 = tslib_1.__importDefault(require_package5());
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var credential_provider_node_1 = require_dist_cjs52();
    var util_user_agent_node_1 = require_dist_cjs41();
    var config_resolver_1 = require_dist_cjs30();
    var core_2 = (init_dist_es(), __toCommonJS(dist_es_exports));
    var hash_node_1 = require_dist_cjs42();
    var middleware_retry_1 = require_dist_cjs37();
    var node_config_provider_1 = require_dist_cjs33();
    var node_http_handler_1 = require_dist_cjs14();
    var util_body_length_node_1 = require_dist_cjs43();
    var util_retry_1 = require_dist_cjs36();
    var runtimeConfig_shared_1 = require_runtimeConfig_shared5();
    var smithy_client_1 = require_dist_cjs26();
    var util_defaults_mode_node_1 = require_dist_cjs44();
    var smithy_client_2 = require_dist_cjs26();
    var getRuntimeConfig5 = /* @__PURE__ */ __name((config) => {
      (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
      const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
      const defaultConfigProvider = /* @__PURE__ */ __name(() => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode), "defaultConfigProvider");
      const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
      (0, core_1.emitWarningIfUnsupportedVersion)(process.version);
      const loaderConfig = {
        profile: config?.profile,
        logger: clientSharedValues.logger
      };
      return {
        ...clientSharedValues,
        ...config,
        runtime: "node",
        defaultsMode,
        authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
        bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
        credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
        defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
        httpAuthSchemes: config?.httpAuthSchemes ?? [
          {
            schemeId: "aws.auth#sigv4",
            identityProvider: /* @__PURE__ */ __name((ipc) => ipc.getIdentityProvider("aws.auth#sigv4") || (async (idProps) => await (0, credential_provider_node_1.defaultProvider)(idProps?.__config || {})()), "identityProvider"),
            signer: new core_1.AwsSdkSigV4Signer()
          },
          {
            schemeId: "smithy.api#noAuth",
            identityProvider: /* @__PURE__ */ __name((ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})), "identityProvider"),
            signer: new core_2.NoAuthSigner()
          }
        ],
        maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
        region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
        requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
        retryMode: config?.retryMode ?? (0, node_config_provider_1.loadConfig)({
          ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
          default: /* @__PURE__ */ __name(async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE, "default")
        }, config),
        sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
        streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
        useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
        useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
        userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig)
      };
    }, "getRuntimeConfig");
    exports2.getRuntimeConfig = getRuntimeConfig5;
  }
});

// ../../node_modules/@aws-sdk/client-sts/dist-cjs/auth/httpAuthExtensionConfiguration.js
var require_httpAuthExtensionConfiguration = __commonJS({
  "../../node_modules/@aws-sdk/client-sts/dist-cjs/auth/httpAuthExtensionConfiguration.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.resolveHttpAuthRuntimeConfig = exports2.getHttpAuthExtensionConfiguration = void 0;
    var getHttpAuthExtensionConfiguration3 = /* @__PURE__ */ __name((runtimeConfig) => {
      const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
      let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
      let _credentials = runtimeConfig.credentials;
      return {
        setHttpAuthScheme(httpAuthScheme) {
          const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
          if (index === -1) {
            _httpAuthSchemes.push(httpAuthScheme);
          } else {
            _httpAuthSchemes.splice(index, 1, httpAuthScheme);
          }
        },
        httpAuthSchemes() {
          return _httpAuthSchemes;
        },
        setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
          _httpAuthSchemeProvider = httpAuthSchemeProvider;
        },
        httpAuthSchemeProvider() {
          return _httpAuthSchemeProvider;
        },
        setCredentials(credentials) {
          _credentials = credentials;
        },
        credentials() {
          return _credentials;
        }
      };
    }, "getHttpAuthExtensionConfiguration");
    exports2.getHttpAuthExtensionConfiguration = getHttpAuthExtensionConfiguration3;
    var resolveHttpAuthRuntimeConfig3 = /* @__PURE__ */ __name((config) => {
      return {
        httpAuthSchemes: config.httpAuthSchemes(),
        httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
        credentials: config.credentials()
      };
    }, "resolveHttpAuthRuntimeConfig");
    exports2.resolveHttpAuthRuntimeConfig = resolveHttpAuthRuntimeConfig3;
  }
});

// ../../node_modules/@aws-sdk/client-sts/dist-cjs/runtimeExtensions.js
var require_runtimeExtensions = __commonJS({
  "../../node_modules/@aws-sdk/client-sts/dist-cjs/runtimeExtensions.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.resolveRuntimeExtensions = void 0;
    var region_config_resolver_1 = require_dist_cjs45();
    var protocol_http_1 = require_dist_cjs2();
    var smithy_client_1 = require_dist_cjs26();
    var httpAuthExtensionConfiguration_1 = require_httpAuthExtensionConfiguration();
    var resolveRuntimeExtensions3 = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
      const extensionConfiguration = Object.assign((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig), (0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig), (0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig), (0, httpAuthExtensionConfiguration_1.getHttpAuthExtensionConfiguration)(runtimeConfig));
      extensions.forEach((extension) => extension.configure(extensionConfiguration));
      return Object.assign(runtimeConfig, (0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), (0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration), (0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), (0, httpAuthExtensionConfiguration_1.resolveHttpAuthRuntimeConfig)(extensionConfiguration));
    }, "resolveRuntimeExtensions");
    exports2.resolveRuntimeExtensions = resolveRuntimeExtensions3;
  }
});

// ../../node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js
var require_STSClient = __commonJS({
  "../../node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.STSClient = exports2.__Client = void 0;
    var middleware_host_header_1 = require_dist_cjs3();
    var middleware_logger_1 = require_dist_cjs4();
    var middleware_recursion_detection_1 = require_dist_cjs5();
    var middleware_user_agent_1 = require_dist_cjs28();
    var config_resolver_1 = require_dist_cjs30();
    var core_1 = (init_dist_es(), __toCommonJS(dist_es_exports));
    var middleware_content_length_1 = require_dist_cjs31();
    var middleware_endpoint_1 = require_dist_cjs34();
    var middleware_retry_1 = require_dist_cjs37();
    var smithy_client_1 = require_dist_cjs26();
    Object.defineProperty(exports2, "__Client", { enumerable: true, get: /* @__PURE__ */ __name(function() {
      return smithy_client_1.Client;
    }, "get") });
    var httpAuthSchemeProvider_1 = require_httpAuthSchemeProvider5();
    var EndpointParameters_1 = require_EndpointParameters();
    var runtimeConfig_1 = require_runtimeConfig5();
    var runtimeExtensions_1 = require_runtimeExtensions();
    var STSClient5 = class extends smithy_client_1.Client {
      static {
        __name(this, "STSClient");
      }
      config;
      constructor(...[configuration]) {
        const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});
        super(_config_0);
        this.initConfig = _config_0;
        const _config_1 = (0, EndpointParameters_1.resolveClientEndpointParameters)(_config_0);
        const _config_2 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_1);
        const _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2);
        const _config_4 = (0, config_resolver_1.resolveRegionConfig)(_config_3);
        const _config_5 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_4);
        const _config_6 = (0, middleware_endpoint_1.resolveEndpointConfig)(_config_5);
        const _config_7 = (0, httpAuthSchemeProvider_1.resolveHttpAuthSchemeConfig)(_config_6);
        const _config_8 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_7, configuration?.extensions || []);
        this.config = _config_8;
        this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
        this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
        this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
        this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
        this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
        this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config));
        this.middlewareStack.use((0, core_1.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
          httpAuthSchemeParametersProvider: httpAuthSchemeProvider_1.defaultSTSHttpAuthSchemeParametersProvider,
          identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new core_1.DefaultIdentityProviderConfig({
            "aws.auth#sigv4": config.credentials
          }), "identityProviderConfigProvider")
        }));
        this.middlewareStack.use((0, core_1.getHttpSigningPlugin)(this.config));
      }
      destroy() {
        super.destroy();
      }
    };
    exports2.STSClient = STSClient5;
  }
});

// ../../node_modules/@aws-sdk/client-sts/dist-cjs/index.js
var require_dist_cjs73 = __commonJS({
  "../../node_modules/@aws-sdk/client-sts/dist-cjs/index.js"(exports2, module2) {
    "use strict";
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __reExport = /* @__PURE__ */ __name((target, mod, secondTarget) => (__copyProps2(target, mod, "default"), secondTarget && __copyProps2(secondTarget, mod, "default")), "__reExport");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var index_exports = {};
    __export2(index_exports, {
      AssumeRoleCommand: /* @__PURE__ */ __name(() => AssumeRoleCommand2, "AssumeRoleCommand"),
      AssumeRoleResponseFilterSensitiveLog: /* @__PURE__ */ __name(() => AssumeRoleResponseFilterSensitiveLog2, "AssumeRoleResponseFilterSensitiveLog"),
      AssumeRoleWithSAMLCommand: /* @__PURE__ */ __name(() => AssumeRoleWithSAMLCommand, "AssumeRoleWithSAMLCommand"),
      AssumeRoleWithSAMLRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => AssumeRoleWithSAMLRequestFilterSensitiveLog, "AssumeRoleWithSAMLRequestFilterSensitiveLog"),
      AssumeRoleWithSAMLResponseFilterSensitiveLog: /* @__PURE__ */ __name(() => AssumeRoleWithSAMLResponseFilterSensitiveLog, "AssumeRoleWithSAMLResponseFilterSensitiveLog"),
      AssumeRoleWithWebIdentityCommand: /* @__PURE__ */ __name(() => AssumeRoleWithWebIdentityCommand2, "AssumeRoleWithWebIdentityCommand"),
      AssumeRoleWithWebIdentityRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => AssumeRoleWithWebIdentityRequestFilterSensitiveLog2, "AssumeRoleWithWebIdentityRequestFilterSensitiveLog"),
      AssumeRoleWithWebIdentityResponseFilterSensitiveLog: /* @__PURE__ */ __name(() => AssumeRoleWithWebIdentityResponseFilterSensitiveLog2, "AssumeRoleWithWebIdentityResponseFilterSensitiveLog"),
      AssumeRootCommand: /* @__PURE__ */ __name(() => AssumeRootCommand, "AssumeRootCommand"),
      AssumeRootResponseFilterSensitiveLog: /* @__PURE__ */ __name(() => AssumeRootResponseFilterSensitiveLog, "AssumeRootResponseFilterSensitiveLog"),
      ClientInputEndpointParameters: /* @__PURE__ */ __name(() => import_EndpointParameters10.ClientInputEndpointParameters, "ClientInputEndpointParameters"),
      CredentialsFilterSensitiveLog: /* @__PURE__ */ __name(() => CredentialsFilterSensitiveLog2, "CredentialsFilterSensitiveLog"),
      DecodeAuthorizationMessageCommand: /* @__PURE__ */ __name(() => DecodeAuthorizationMessageCommand, "DecodeAuthorizationMessageCommand"),
      ExpiredTokenException: /* @__PURE__ */ __name(() => ExpiredTokenException3, "ExpiredTokenException"),
      GetAccessKeyInfoCommand: /* @__PURE__ */ __name(() => GetAccessKeyInfoCommand, "GetAccessKeyInfoCommand"),
      GetCallerIdentityCommand: /* @__PURE__ */ __name(() => GetCallerIdentityCommand3, "GetCallerIdentityCommand"),
      GetFederationTokenCommand: /* @__PURE__ */ __name(() => GetFederationTokenCommand, "GetFederationTokenCommand"),
      GetFederationTokenResponseFilterSensitiveLog: /* @__PURE__ */ __name(() => GetFederationTokenResponseFilterSensitiveLog, "GetFederationTokenResponseFilterSensitiveLog"),
      GetSessionTokenCommand: /* @__PURE__ */ __name(() => GetSessionTokenCommand, "GetSessionTokenCommand"),
      GetSessionTokenResponseFilterSensitiveLog: /* @__PURE__ */ __name(() => GetSessionTokenResponseFilterSensitiveLog, "GetSessionTokenResponseFilterSensitiveLog"),
      IDPCommunicationErrorException: /* @__PURE__ */ __name(() => IDPCommunicationErrorException2, "IDPCommunicationErrorException"),
      IDPRejectedClaimException: /* @__PURE__ */ __name(() => IDPRejectedClaimException2, "IDPRejectedClaimException"),
      InvalidAuthorizationMessageException: /* @__PURE__ */ __name(() => InvalidAuthorizationMessageException, "InvalidAuthorizationMessageException"),
      InvalidIdentityTokenException: /* @__PURE__ */ __name(() => InvalidIdentityTokenException2, "InvalidIdentityTokenException"),
      MalformedPolicyDocumentException: /* @__PURE__ */ __name(() => MalformedPolicyDocumentException2, "MalformedPolicyDocumentException"),
      PackedPolicyTooLargeException: /* @__PURE__ */ __name(() => PackedPolicyTooLargeException2, "PackedPolicyTooLargeException"),
      RegionDisabledException: /* @__PURE__ */ __name(() => RegionDisabledException2, "RegionDisabledException"),
      STS: /* @__PURE__ */ __name(() => STS2, "STS"),
      STSServiceException: /* @__PURE__ */ __name(() => STSServiceException2, "STSServiceException"),
      decorateDefaultCredentialProvider: /* @__PURE__ */ __name(() => decorateDefaultCredentialProvider2, "decorateDefaultCredentialProvider"),
      getDefaultRoleAssumer: /* @__PURE__ */ __name(() => getDefaultRoleAssumer22, "getDefaultRoleAssumer"),
      getDefaultRoleAssumerWithWebIdentity: /* @__PURE__ */ __name(() => getDefaultRoleAssumerWithWebIdentity22, "getDefaultRoleAssumerWithWebIdentity")
    });
    module2.exports = __toCommonJS2(index_exports);
    __reExport(index_exports, require_STSClient(), module2.exports);
    var import_middleware_endpoint8 = require_dist_cjs34();
    var import_middleware_serde5 = require_dist_cjs7();
    var import_EndpointParameters6 = require_EndpointParameters();
    var import_smithy_client28 = require_dist_cjs26();
    var STSServiceException2 = class _STSServiceException extends import_smithy_client28.ServiceException {
      static {
        __name(this, "_STSServiceException");
      }
      static {
        __name2(this, "STSServiceException");
      }
      /**
       * @internal
       */
      constructor(options) {
        super(options);
        Object.setPrototypeOf(this, _STSServiceException.prototype);
      }
    };
    var ExpiredTokenException3 = class _ExpiredTokenException extends STSServiceException2 {
      static {
        __name(this, "_ExpiredTokenException");
      }
      static {
        __name2(this, "ExpiredTokenException");
      }
      name = "ExpiredTokenException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ExpiredTokenException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ExpiredTokenException.prototype);
      }
    };
    var MalformedPolicyDocumentException2 = class _MalformedPolicyDocumentException extends STSServiceException2 {
      static {
        __name(this, "_MalformedPolicyDocumentException");
      }
      static {
        __name2(this, "MalformedPolicyDocumentException");
      }
      name = "MalformedPolicyDocumentException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "MalformedPolicyDocumentException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _MalformedPolicyDocumentException.prototype);
      }
    };
    var PackedPolicyTooLargeException2 = class _PackedPolicyTooLargeException extends STSServiceException2 {
      static {
        __name(this, "_PackedPolicyTooLargeException");
      }
      static {
        __name2(this, "PackedPolicyTooLargeException");
      }
      name = "PackedPolicyTooLargeException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "PackedPolicyTooLargeException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _PackedPolicyTooLargeException.prototype);
      }
    };
    var RegionDisabledException2 = class _RegionDisabledException extends STSServiceException2 {
      static {
        __name(this, "_RegionDisabledException");
      }
      static {
        __name2(this, "RegionDisabledException");
      }
      name = "RegionDisabledException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "RegionDisabledException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _RegionDisabledException.prototype);
      }
    };
    var IDPRejectedClaimException2 = class _IDPRejectedClaimException extends STSServiceException2 {
      static {
        __name(this, "_IDPRejectedClaimException");
      }
      static {
        __name2(this, "IDPRejectedClaimException");
      }
      name = "IDPRejectedClaimException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "IDPRejectedClaimException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _IDPRejectedClaimException.prototype);
      }
    };
    var InvalidIdentityTokenException2 = class _InvalidIdentityTokenException extends STSServiceException2 {
      static {
        __name(this, "_InvalidIdentityTokenException");
      }
      static {
        __name2(this, "InvalidIdentityTokenException");
      }
      name = "InvalidIdentityTokenException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidIdentityTokenException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidIdentityTokenException.prototype);
      }
    };
    var IDPCommunicationErrorException2 = class _IDPCommunicationErrorException extends STSServiceException2 {
      static {
        __name(this, "_IDPCommunicationErrorException");
      }
      static {
        __name2(this, "IDPCommunicationErrorException");
      }
      name = "IDPCommunicationErrorException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "IDPCommunicationErrorException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _IDPCommunicationErrorException.prototype);
      }
    };
    var InvalidAuthorizationMessageException = class _InvalidAuthorizationMessageException extends STSServiceException2 {
      static {
        __name(this, "_InvalidAuthorizationMessageException");
      }
      static {
        __name2(this, "InvalidAuthorizationMessageException");
      }
      name = "InvalidAuthorizationMessageException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidAuthorizationMessageException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidAuthorizationMessageException.prototype);
      }
    };
    var CredentialsFilterSensitiveLog2 = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.SecretAccessKey && { SecretAccessKey: import_smithy_client28.SENSITIVE_STRING }
    }), "CredentialsFilterSensitiveLog");
    var AssumeRoleResponseFilterSensitiveLog2 = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Credentials && { Credentials: CredentialsFilterSensitiveLog2(obj.Credentials) }
    }), "AssumeRoleResponseFilterSensitiveLog");
    var AssumeRoleWithSAMLRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.SAMLAssertion && { SAMLAssertion: import_smithy_client28.SENSITIVE_STRING }
    }), "AssumeRoleWithSAMLRequestFilterSensitiveLog");
    var AssumeRoleWithSAMLResponseFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Credentials && { Credentials: CredentialsFilterSensitiveLog2(obj.Credentials) }
    }), "AssumeRoleWithSAMLResponseFilterSensitiveLog");
    var AssumeRoleWithWebIdentityRequestFilterSensitiveLog2 = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.WebIdentityToken && { WebIdentityToken: import_smithy_client28.SENSITIVE_STRING }
    }), "AssumeRoleWithWebIdentityRequestFilterSensitiveLog");
    var AssumeRoleWithWebIdentityResponseFilterSensitiveLog2 = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Credentials && { Credentials: CredentialsFilterSensitiveLog2(obj.Credentials) }
    }), "AssumeRoleWithWebIdentityResponseFilterSensitiveLog");
    var AssumeRootResponseFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Credentials && { Credentials: CredentialsFilterSensitiveLog2(obj.Credentials) }
    }), "AssumeRootResponseFilterSensitiveLog");
    var GetFederationTokenResponseFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Credentials && { Credentials: CredentialsFilterSensitiveLog2(obj.Credentials) }
    }), "GetFederationTokenResponseFilterSensitiveLog");
    var GetSessionTokenResponseFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Credentials && { Credentials: CredentialsFilterSensitiveLog2(obj.Credentials) }
    }), "GetSessionTokenResponseFilterSensitiveLog");
    var import_core17 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var import_protocol_http16 = require_dist_cjs2();
    var se_AssumeRoleCommand2 = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_AssumeRoleRequest2(input, context),
        [_A2]: _AR2,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AssumeRoleCommand");
    var se_AssumeRoleWithSAMLCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_AssumeRoleWithSAMLRequest(input, context),
        [_A2]: _ARWSAML,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AssumeRoleWithSAMLCommand");
    var se_AssumeRoleWithWebIdentityCommand2 = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_AssumeRoleWithWebIdentityRequest2(input, context),
        [_A2]: _ARWWI2,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AssumeRoleWithWebIdentityCommand");
    var se_AssumeRootCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_AssumeRootRequest(input, context),
        [_A2]: _ARs,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AssumeRootCommand");
    var se_DecodeAuthorizationMessageCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DecodeAuthorizationMessageRequest(input, context),
        [_A2]: _DAM,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DecodeAuthorizationMessageCommand");
    var se_GetAccessKeyInfoCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetAccessKeyInfoRequest(input, context),
        [_A2]: _GAKI,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetAccessKeyInfoCommand");
    var se_GetCallerIdentityCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetCallerIdentityRequest(input, context),
        [_A2]: _GCI,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetCallerIdentityCommand");
    var se_GetFederationTokenCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetFederationTokenRequest(input, context),
        [_A2]: _GFT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetFederationTokenCommand");
    var se_GetSessionTokenCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetSessionTokenRequest(input, context),
        [_A2]: _GST,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetSessionTokenCommand");
    var de_AssumeRoleCommand2 = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core17.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_AssumeRoleResponse2(data3.AssumeRoleResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_AssumeRoleCommand");
    var de_AssumeRoleWithSAMLCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core17.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_AssumeRoleWithSAMLResponse(data3.AssumeRoleWithSAMLResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_AssumeRoleWithSAMLCommand");
    var de_AssumeRoleWithWebIdentityCommand2 = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core17.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_AssumeRoleWithWebIdentityResponse2(data3.AssumeRoleWithWebIdentityResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_AssumeRoleWithWebIdentityCommand");
    var de_AssumeRootCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core17.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_AssumeRootResponse(data3.AssumeRootResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_AssumeRootCommand");
    var de_DecodeAuthorizationMessageCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core17.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DecodeAuthorizationMessageResponse(data3.DecodeAuthorizationMessageResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DecodeAuthorizationMessageCommand");
    var de_GetAccessKeyInfoCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core17.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetAccessKeyInfoResponse(data3.GetAccessKeyInfoResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetAccessKeyInfoCommand");
    var de_GetCallerIdentityCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core17.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetCallerIdentityResponse(data3.GetCallerIdentityResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetCallerIdentityCommand");
    var de_GetFederationTokenCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core17.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetFederationTokenResponse(data3.GetFederationTokenResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetFederationTokenCommand");
    var de_GetSessionTokenCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core17.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetSessionTokenResponse(data3.GetSessionTokenResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetSessionTokenCommand");
    var de_CommandError3 = /* @__PURE__ */ __name2(async (output, context) => {
      const parsedOutput = {
        ...output,
        body: await (0, import_core17.parseXmlErrorBody)(output.body, context)
      };
      const errorCode = loadQueryErrorCode2(output, parsedOutput.body);
      switch (errorCode) {
        case "ExpiredTokenException":
        case "com.amazonaws.sts#ExpiredTokenException":
          throw await de_ExpiredTokenExceptionRes3(parsedOutput, context);
        case "MalformedPolicyDocument":
        case "com.amazonaws.sts#MalformedPolicyDocumentException":
          throw await de_MalformedPolicyDocumentExceptionRes2(parsedOutput, context);
        case "PackedPolicyTooLarge":
        case "com.amazonaws.sts#PackedPolicyTooLargeException":
          throw await de_PackedPolicyTooLargeExceptionRes2(parsedOutput, context);
        case "RegionDisabledException":
        case "com.amazonaws.sts#RegionDisabledException":
          throw await de_RegionDisabledExceptionRes2(parsedOutput, context);
        case "IDPRejectedClaim":
        case "com.amazonaws.sts#IDPRejectedClaimException":
          throw await de_IDPRejectedClaimExceptionRes2(parsedOutput, context);
        case "InvalidIdentityToken":
        case "com.amazonaws.sts#InvalidIdentityTokenException":
          throw await de_InvalidIdentityTokenExceptionRes2(parsedOutput, context);
        case "IDPCommunicationError":
        case "com.amazonaws.sts#IDPCommunicationErrorException":
          throw await de_IDPCommunicationErrorExceptionRes2(parsedOutput, context);
        case "InvalidAuthorizationMessageException":
        case "com.amazonaws.sts#InvalidAuthorizationMessageException":
          throw await de_InvalidAuthorizationMessageExceptionRes(parsedOutput, context);
        default:
          const parsedBody = parsedOutput.body;
          return throwDefaultError3({
            output,
            parsedBody: parsedBody.Error,
            errorCode
          });
      }
    }, "de_CommandError");
    var de_ExpiredTokenExceptionRes3 = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_ExpiredTokenException2(body.Error, context);
      const exception = new ExpiredTokenException3({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ExpiredTokenExceptionRes");
    var de_IDPCommunicationErrorExceptionRes2 = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_IDPCommunicationErrorException2(body.Error, context);
      const exception = new IDPCommunicationErrorException2({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_IDPCommunicationErrorExceptionRes");
    var de_IDPRejectedClaimExceptionRes2 = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_IDPRejectedClaimException2(body.Error, context);
      const exception = new IDPRejectedClaimException2({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_IDPRejectedClaimExceptionRes");
    var de_InvalidAuthorizationMessageExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_InvalidAuthorizationMessageException(body.Error, context);
      const exception = new InvalidAuthorizationMessageException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidAuthorizationMessageExceptionRes");
    var de_InvalidIdentityTokenExceptionRes2 = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_InvalidIdentityTokenException2(body.Error, context);
      const exception = new InvalidIdentityTokenException2({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidIdentityTokenExceptionRes");
    var de_MalformedPolicyDocumentExceptionRes2 = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_MalformedPolicyDocumentException2(body.Error, context);
      const exception = new MalformedPolicyDocumentException2({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_MalformedPolicyDocumentExceptionRes");
    var de_PackedPolicyTooLargeExceptionRes2 = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_PackedPolicyTooLargeException2(body.Error, context);
      const exception = new PackedPolicyTooLargeException2({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_PackedPolicyTooLargeExceptionRes");
    var de_RegionDisabledExceptionRes2 = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_RegionDisabledException2(body.Error, context);
      const exception = new RegionDisabledException2({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_RegionDisabledExceptionRes");
    var se_AssumeRoleRequest2 = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RA2] != null) {
        entries[_RA2] = input[_RA2];
      }
      if (input[_RSN2] != null) {
        entries[_RSN2] = input[_RSN2];
      }
      if (input[_PA2] != null) {
        const memberEntries = se_policyDescriptorListType2(input[_PA2], context);
        if (input[_PA2]?.length === 0) {
          entries.PolicyArns = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `PolicyArns.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_P2] != null) {
        entries[_P2] = input[_P2];
      }
      if (input[_DS2] != null) {
        entries[_DS2] = input[_DS2];
      }
      if (input[_T2] != null) {
        const memberEntries = se_tagListType2(input[_T2], context);
        if (input[_T2]?.length === 0) {
          entries.Tags = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Tags.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_TTK2] != null) {
        const memberEntries = se_tagKeyListType2(input[_TTK2], context);
        if (input[_TTK2]?.length === 0) {
          entries.TransitiveTagKeys = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TransitiveTagKeys.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_EI2] != null) {
        entries[_EI2] = input[_EI2];
      }
      if (input[_SN2] != null) {
        entries[_SN2] = input[_SN2];
      }
      if (input[_TC2] != null) {
        entries[_TC2] = input[_TC2];
      }
      if (input[_SI2] != null) {
        entries[_SI2] = input[_SI2];
      }
      if (input[_PC2] != null) {
        const memberEntries = se_ProvidedContextsListType2(input[_PC2], context);
        if (input[_PC2]?.length === 0) {
          entries.ProvidedContexts = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ProvidedContexts.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_AssumeRoleRequest");
    var se_AssumeRoleWithSAMLRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RA2] != null) {
        entries[_RA2] = input[_RA2];
      }
      if (input[_PAr2] != null) {
        entries[_PAr2] = input[_PAr2];
      }
      if (input[_SAMLA] != null) {
        entries[_SAMLA] = input[_SAMLA];
      }
      if (input[_PA2] != null) {
        const memberEntries = se_policyDescriptorListType2(input[_PA2], context);
        if (input[_PA2]?.length === 0) {
          entries.PolicyArns = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `PolicyArns.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_P2] != null) {
        entries[_P2] = input[_P2];
      }
      if (input[_DS2] != null) {
        entries[_DS2] = input[_DS2];
      }
      return entries;
    }, "se_AssumeRoleWithSAMLRequest");
    var se_AssumeRoleWithWebIdentityRequest2 = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RA2] != null) {
        entries[_RA2] = input[_RA2];
      }
      if (input[_RSN2] != null) {
        entries[_RSN2] = input[_RSN2];
      }
      if (input[_WIT2] != null) {
        entries[_WIT2] = input[_WIT2];
      }
      if (input[_PI2] != null) {
        entries[_PI2] = input[_PI2];
      }
      if (input[_PA2] != null) {
        const memberEntries = se_policyDescriptorListType2(input[_PA2], context);
        if (input[_PA2]?.length === 0) {
          entries.PolicyArns = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `PolicyArns.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_P2] != null) {
        entries[_P2] = input[_P2];
      }
      if (input[_DS2] != null) {
        entries[_DS2] = input[_DS2];
      }
      return entries;
    }, "se_AssumeRoleWithWebIdentityRequest");
    var se_AssumeRootRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TP] != null) {
        entries[_TP] = input[_TP];
      }
      if (input[_TPA] != null) {
        const memberEntries = se_PolicyDescriptorType2(input[_TPA], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TaskPolicyArn.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_DS2] != null) {
        entries[_DS2] = input[_DS2];
      }
      return entries;
    }, "se_AssumeRootRequest");
    var se_DecodeAuthorizationMessageRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_EM] != null) {
        entries[_EM] = input[_EM];
      }
      return entries;
    }, "se_DecodeAuthorizationMessageRequest");
    var se_GetAccessKeyInfoRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_AKI2] != null) {
        entries[_AKI2] = input[_AKI2];
      }
      return entries;
    }, "se_GetAccessKeyInfoRequest");
    var se_GetCallerIdentityRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      return entries;
    }, "se_GetCallerIdentityRequest");
    var se_GetFederationTokenRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_N] != null) {
        entries[_N] = input[_N];
      }
      if (input[_P2] != null) {
        entries[_P2] = input[_P2];
      }
      if (input[_PA2] != null) {
        const memberEntries = se_policyDescriptorListType2(input[_PA2], context);
        if (input[_PA2]?.length === 0) {
          entries.PolicyArns = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `PolicyArns.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_DS2] != null) {
        entries[_DS2] = input[_DS2];
      }
      if (input[_T2] != null) {
        const memberEntries = se_tagListType2(input[_T2], context);
        if (input[_T2]?.length === 0) {
          entries.Tags = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Tags.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_GetFederationTokenRequest");
    var se_GetSessionTokenRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DS2] != null) {
        entries[_DS2] = input[_DS2];
      }
      if (input[_SN2] != null) {
        entries[_SN2] = input[_SN2];
      }
      if (input[_TC2] != null) {
        entries[_TC2] = input[_TC2];
      }
      return entries;
    }, "se_GetSessionTokenRequest");
    var se_policyDescriptorListType2 = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_PolicyDescriptorType2(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`member.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_policyDescriptorListType");
    var se_PolicyDescriptorType2 = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_a2] != null) {
        entries[_a2] = input[_a2];
      }
      return entries;
    }, "se_PolicyDescriptorType");
    var se_ProvidedContext2 = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_PAro] != null) {
        entries[_PAro] = input[_PAro];
      }
      if (input[_CA2] != null) {
        entries[_CA2] = input[_CA2];
      }
      return entries;
    }, "se_ProvidedContext");
    var se_ProvidedContextsListType2 = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_ProvidedContext2(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`member.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_ProvidedContextsListType");
    var se_Tag2 = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_K2] != null) {
        entries[_K2] = input[_K2];
      }
      if (input[_Va2] != null) {
        entries[_Va2] = input[_Va2];
      }
      return entries;
    }, "se_Tag");
    var se_tagKeyListType2 = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_tagKeyListType");
    var se_tagListType2 = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_Tag2(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`member.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_tagListType");
    var de_AssumedRoleUser2 = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ARI2] != null) {
        contents[_ARI2] = (0, import_smithy_client28.expectString)(output[_ARI2]);
      }
      if (output[_Ar2] != null) {
        contents[_Ar2] = (0, import_smithy_client28.expectString)(output[_Ar2]);
      }
      return contents;
    }, "de_AssumedRoleUser");
    var de_AssumeRoleResponse2 = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_C2] != null) {
        contents[_C2] = de_Credentials2(output[_C2], context);
      }
      if (output[_ARU2] != null) {
        contents[_ARU2] = de_AssumedRoleUser2(output[_ARU2], context);
      }
      if (output[_PPS2] != null) {
        contents[_PPS2] = (0, import_smithy_client28.strictParseInt32)(output[_PPS2]);
      }
      if (output[_SI2] != null) {
        contents[_SI2] = (0, import_smithy_client28.expectString)(output[_SI2]);
      }
      return contents;
    }, "de_AssumeRoleResponse");
    var de_AssumeRoleWithSAMLResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_C2] != null) {
        contents[_C2] = de_Credentials2(output[_C2], context);
      }
      if (output[_ARU2] != null) {
        contents[_ARU2] = de_AssumedRoleUser2(output[_ARU2], context);
      }
      if (output[_PPS2] != null) {
        contents[_PPS2] = (0, import_smithy_client28.strictParseInt32)(output[_PPS2]);
      }
      if (output[_S] != null) {
        contents[_S] = (0, import_smithy_client28.expectString)(output[_S]);
      }
      if (output[_ST2] != null) {
        contents[_ST2] = (0, import_smithy_client28.expectString)(output[_ST2]);
      }
      if (output[_I] != null) {
        contents[_I] = (0, import_smithy_client28.expectString)(output[_I]);
      }
      if (output[_Au2] != null) {
        contents[_Au2] = (0, import_smithy_client28.expectString)(output[_Au2]);
      }
      if (output[_NQ] != null) {
        contents[_NQ] = (0, import_smithy_client28.expectString)(output[_NQ]);
      }
      if (output[_SI2] != null) {
        contents[_SI2] = (0, import_smithy_client28.expectString)(output[_SI2]);
      }
      return contents;
    }, "de_AssumeRoleWithSAMLResponse");
    var de_AssumeRoleWithWebIdentityResponse2 = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_C2] != null) {
        contents[_C2] = de_Credentials2(output[_C2], context);
      }
      if (output[_SFWIT2] != null) {
        contents[_SFWIT2] = (0, import_smithy_client28.expectString)(output[_SFWIT2]);
      }
      if (output[_ARU2] != null) {
        contents[_ARU2] = de_AssumedRoleUser2(output[_ARU2], context);
      }
      if (output[_PPS2] != null) {
        contents[_PPS2] = (0, import_smithy_client28.strictParseInt32)(output[_PPS2]);
      }
      if (output[_Pr2] != null) {
        contents[_Pr2] = (0, import_smithy_client28.expectString)(output[_Pr2]);
      }
      if (output[_Au2] != null) {
        contents[_Au2] = (0, import_smithy_client28.expectString)(output[_Au2]);
      }
      if (output[_SI2] != null) {
        contents[_SI2] = (0, import_smithy_client28.expectString)(output[_SI2]);
      }
      return contents;
    }, "de_AssumeRoleWithWebIdentityResponse");
    var de_AssumeRootResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_C2] != null) {
        contents[_C2] = de_Credentials2(output[_C2], context);
      }
      if (output[_SI2] != null) {
        contents[_SI2] = (0, import_smithy_client28.expectString)(output[_SI2]);
      }
      return contents;
    }, "de_AssumeRootResponse");
    var de_Credentials2 = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_AKI2] != null) {
        contents[_AKI2] = (0, import_smithy_client28.expectString)(output[_AKI2]);
      }
      if (output[_SAK2] != null) {
        contents[_SAK2] = (0, import_smithy_client28.expectString)(output[_SAK2]);
      }
      if (output[_STe] != null) {
        contents[_STe] = (0, import_smithy_client28.expectString)(output[_STe]);
      }
      if (output[_E2] != null) {
        contents[_E2] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_E2]));
      }
      return contents;
    }, "de_Credentials");
    var de_DecodeAuthorizationMessageResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_DM] != null) {
        contents[_DM] = (0, import_smithy_client28.expectString)(output[_DM]);
      }
      return contents;
    }, "de_DecodeAuthorizationMessageResponse");
    var de_ExpiredTokenException2 = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_m2] != null) {
        contents[_m2] = (0, import_smithy_client28.expectString)(output[_m2]);
      }
      return contents;
    }, "de_ExpiredTokenException");
    var de_FederatedUser = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_FUI] != null) {
        contents[_FUI] = (0, import_smithy_client28.expectString)(output[_FUI]);
      }
      if (output[_Ar2] != null) {
        contents[_Ar2] = (0, import_smithy_client28.expectString)(output[_Ar2]);
      }
      return contents;
    }, "de_FederatedUser");
    var de_GetAccessKeyInfoResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Ac] != null) {
        contents[_Ac] = (0, import_smithy_client28.expectString)(output[_Ac]);
      }
      return contents;
    }, "de_GetAccessKeyInfoResponse");
    var de_GetCallerIdentityResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_UI] != null) {
        contents[_UI] = (0, import_smithy_client28.expectString)(output[_UI]);
      }
      if (output[_Ac] != null) {
        contents[_Ac] = (0, import_smithy_client28.expectString)(output[_Ac]);
      }
      if (output[_Ar2] != null) {
        contents[_Ar2] = (0, import_smithy_client28.expectString)(output[_Ar2]);
      }
      return contents;
    }, "de_GetCallerIdentityResponse");
    var de_GetFederationTokenResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_C2] != null) {
        contents[_C2] = de_Credentials2(output[_C2], context);
      }
      if (output[_FU] != null) {
        contents[_FU] = de_FederatedUser(output[_FU], context);
      }
      if (output[_PPS2] != null) {
        contents[_PPS2] = (0, import_smithy_client28.strictParseInt32)(output[_PPS2]);
      }
      return contents;
    }, "de_GetFederationTokenResponse");
    var de_GetSessionTokenResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_C2] != null) {
        contents[_C2] = de_Credentials2(output[_C2], context);
      }
      return contents;
    }, "de_GetSessionTokenResponse");
    var de_IDPCommunicationErrorException2 = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_m2] != null) {
        contents[_m2] = (0, import_smithy_client28.expectString)(output[_m2]);
      }
      return contents;
    }, "de_IDPCommunicationErrorException");
    var de_IDPRejectedClaimException2 = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_m2] != null) {
        contents[_m2] = (0, import_smithy_client28.expectString)(output[_m2]);
      }
      return contents;
    }, "de_IDPRejectedClaimException");
    var de_InvalidAuthorizationMessageException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_m2] != null) {
        contents[_m2] = (0, import_smithy_client28.expectString)(output[_m2]);
      }
      return contents;
    }, "de_InvalidAuthorizationMessageException");
    var de_InvalidIdentityTokenException2 = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_m2] != null) {
        contents[_m2] = (0, import_smithy_client28.expectString)(output[_m2]);
      }
      return contents;
    }, "de_InvalidIdentityTokenException");
    var de_MalformedPolicyDocumentException2 = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_m2] != null) {
        contents[_m2] = (0, import_smithy_client28.expectString)(output[_m2]);
      }
      return contents;
    }, "de_MalformedPolicyDocumentException");
    var de_PackedPolicyTooLargeException2 = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_m2] != null) {
        contents[_m2] = (0, import_smithy_client28.expectString)(output[_m2]);
      }
      return contents;
    }, "de_PackedPolicyTooLargeException");
    var de_RegionDisabledException2 = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_m2] != null) {
        contents[_m2] = (0, import_smithy_client28.expectString)(output[_m2]);
      }
      return contents;
    }, "de_RegionDisabledException");
    var deserializeMetadata3 = /* @__PURE__ */ __name2((output) => ({
      httpStatusCode: output.statusCode,
      requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
      extendedRequestId: output.headers["x-amz-id-2"],
      cfId: output.headers["x-amz-cf-id"]
    }), "deserializeMetadata");
    var throwDefaultError3 = (0, import_smithy_client28.withBaseException)(STSServiceException2);
    var buildHttpRpcRequest2 = /* @__PURE__ */ __name2(async (context, headers, path38, resolvedHostname, body) => {
      const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
      const contents = {
        protocol,
        hostname,
        port,
        method: "POST",
        path: basePath.endsWith("/") ? basePath.slice(0, -1) + path38 : basePath + path38,
        headers
      };
      if (resolvedHostname !== void 0) {
        contents.hostname = resolvedHostname;
      }
      if (body !== void 0) {
        contents.body = body;
      }
      return new import_protocol_http16.HttpRequest(contents);
    }, "buildHttpRpcRequest");
    var SHARED_HEADERS2 = {
      "content-type": "application/x-www-form-urlencoded"
    };
    var _3 = "2011-06-15";
    var _A2 = "Action";
    var _AKI2 = "AccessKeyId";
    var _AR2 = "AssumeRole";
    var _ARI2 = "AssumedRoleId";
    var _ARU2 = "AssumedRoleUser";
    var _ARWSAML = "AssumeRoleWithSAML";
    var _ARWWI2 = "AssumeRoleWithWebIdentity";
    var _ARs = "AssumeRoot";
    var _Ac = "Account";
    var _Ar2 = "Arn";
    var _Au2 = "Audience";
    var _C2 = "Credentials";
    var _CA2 = "ContextAssertion";
    var _DAM = "DecodeAuthorizationMessage";
    var _DM = "DecodedMessage";
    var _DS2 = "DurationSeconds";
    var _E2 = "Expiration";
    var _EI2 = "ExternalId";
    var _EM = "EncodedMessage";
    var _FU = "FederatedUser";
    var _FUI = "FederatedUserId";
    var _GAKI = "GetAccessKeyInfo";
    var _GCI = "GetCallerIdentity";
    var _GFT = "GetFederationToken";
    var _GST = "GetSessionToken";
    var _I = "Issuer";
    var _K2 = "Key";
    var _N = "Name";
    var _NQ = "NameQualifier";
    var _P2 = "Policy";
    var _PA2 = "PolicyArns";
    var _PAr2 = "PrincipalArn";
    var _PAro = "ProviderArn";
    var _PC2 = "ProvidedContexts";
    var _PI2 = "ProviderId";
    var _PPS2 = "PackedPolicySize";
    var _Pr2 = "Provider";
    var _RA2 = "RoleArn";
    var _RSN2 = "RoleSessionName";
    var _S = "Subject";
    var _SAK2 = "SecretAccessKey";
    var _SAMLA = "SAMLAssertion";
    var _SFWIT2 = "SubjectFromWebIdentityToken";
    var _SI2 = "SourceIdentity";
    var _SN2 = "SerialNumber";
    var _ST2 = "SubjectType";
    var _STe = "SessionToken";
    var _T2 = "Tags";
    var _TC2 = "TokenCode";
    var _TP = "TargetPrincipal";
    var _TPA = "TaskPolicyArn";
    var _TTK2 = "TransitiveTagKeys";
    var _UI = "UserId";
    var _V2 = "Version";
    var _Va2 = "Value";
    var _WIT2 = "WebIdentityToken";
    var _a2 = "arn";
    var _m2 = "message";
    var buildFormUrlencodedString2 = /* @__PURE__ */ __name2((formEntries) => Object.entries(formEntries).map(([key, value]) => (0, import_smithy_client28.extendedEncodeURIComponent)(key) + "=" + (0, import_smithy_client28.extendedEncodeURIComponent)(value)).join("&"), "buildFormUrlencodedString");
    var loadQueryErrorCode2 = /* @__PURE__ */ __name2((output, data3) => {
      if (data3.Error?.Code !== void 0) {
        return data3.Error.Code;
      }
      if (output.statusCode == 404) {
        return "NotFound";
      }
    }, "loadQueryErrorCode");
    var AssumeRoleCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(import_EndpointParameters6.commonParams).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSSecurityTokenServiceV20110615", "AssumeRole", {}).n("STSClient", "AssumeRoleCommand").f(void 0, AssumeRoleResponseFilterSensitiveLog2).ser(se_AssumeRoleCommand2).de(de_AssumeRoleCommand2).build() {
      static {
        __name(this, "AssumeRoleCommand");
      }
      static {
        __name2(this, "AssumeRoleCommand");
      }
    };
    var import_EndpointParameters22 = require_EndpointParameters();
    var AssumeRoleWithSAMLCommand = class extends import_smithy_client28.Command.classBuilder().ep(import_EndpointParameters22.commonParams).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSSecurityTokenServiceV20110615", "AssumeRoleWithSAML", {}).n("STSClient", "AssumeRoleWithSAMLCommand").f(AssumeRoleWithSAMLRequestFilterSensitiveLog, AssumeRoleWithSAMLResponseFilterSensitiveLog).ser(se_AssumeRoleWithSAMLCommand).de(de_AssumeRoleWithSAMLCommand).build() {
      static {
        __name(this, "AssumeRoleWithSAMLCommand");
      }
      static {
        __name2(this, "AssumeRoleWithSAMLCommand");
      }
    };
    var import_EndpointParameters32 = require_EndpointParameters();
    var AssumeRoleWithWebIdentityCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(import_EndpointParameters32.commonParams).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSSecurityTokenServiceV20110615", "AssumeRoleWithWebIdentity", {}).n("STSClient", "AssumeRoleWithWebIdentityCommand").f(AssumeRoleWithWebIdentityRequestFilterSensitiveLog2, AssumeRoleWithWebIdentityResponseFilterSensitiveLog2).ser(se_AssumeRoleWithWebIdentityCommand2).de(de_AssumeRoleWithWebIdentityCommand2).build() {
      static {
        __name(this, "AssumeRoleWithWebIdentityCommand");
      }
      static {
        __name2(this, "AssumeRoleWithWebIdentityCommand");
      }
    };
    var import_EndpointParameters42 = require_EndpointParameters();
    var AssumeRootCommand = class extends import_smithy_client28.Command.classBuilder().ep(import_EndpointParameters42.commonParams).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSSecurityTokenServiceV20110615", "AssumeRoot", {}).n("STSClient", "AssumeRootCommand").f(void 0, AssumeRootResponseFilterSensitiveLog).ser(se_AssumeRootCommand).de(de_AssumeRootCommand).build() {
      static {
        __name(this, "AssumeRootCommand");
      }
      static {
        __name2(this, "AssumeRootCommand");
      }
    };
    var import_EndpointParameters52 = require_EndpointParameters();
    var DecodeAuthorizationMessageCommand = class extends import_smithy_client28.Command.classBuilder().ep(import_EndpointParameters52.commonParams).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSSecurityTokenServiceV20110615", "DecodeAuthorizationMessage", {}).n("STSClient", "DecodeAuthorizationMessageCommand").f(void 0, void 0).ser(se_DecodeAuthorizationMessageCommand).de(de_DecodeAuthorizationMessageCommand).build() {
      static {
        __name(this, "DecodeAuthorizationMessageCommand");
      }
      static {
        __name2(this, "DecodeAuthorizationMessageCommand");
      }
    };
    var import_EndpointParameters62 = require_EndpointParameters();
    var GetAccessKeyInfoCommand = class extends import_smithy_client28.Command.classBuilder().ep(import_EndpointParameters62.commonParams).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSSecurityTokenServiceV20110615", "GetAccessKeyInfo", {}).n("STSClient", "GetAccessKeyInfoCommand").f(void 0, void 0).ser(se_GetAccessKeyInfoCommand).de(de_GetAccessKeyInfoCommand).build() {
      static {
        __name(this, "GetAccessKeyInfoCommand");
      }
      static {
        __name2(this, "GetAccessKeyInfoCommand");
      }
    };
    var import_EndpointParameters7 = require_EndpointParameters();
    var GetCallerIdentityCommand3 = class extends import_smithy_client28.Command.classBuilder().ep(import_EndpointParameters7.commonParams).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSSecurityTokenServiceV20110615", "GetCallerIdentity", {}).n("STSClient", "GetCallerIdentityCommand").f(void 0, void 0).ser(se_GetCallerIdentityCommand).de(de_GetCallerIdentityCommand).build() {
      static {
        __name(this, "GetCallerIdentityCommand");
      }
      static {
        __name2(this, "GetCallerIdentityCommand");
      }
    };
    var import_EndpointParameters8 = require_EndpointParameters();
    var GetFederationTokenCommand = class extends import_smithy_client28.Command.classBuilder().ep(import_EndpointParameters8.commonParams).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSSecurityTokenServiceV20110615", "GetFederationToken", {}).n("STSClient", "GetFederationTokenCommand").f(void 0, GetFederationTokenResponseFilterSensitiveLog).ser(se_GetFederationTokenCommand).de(de_GetFederationTokenCommand).build() {
      static {
        __name(this, "GetFederationTokenCommand");
      }
      static {
        __name2(this, "GetFederationTokenCommand");
      }
    };
    var import_EndpointParameters9 = require_EndpointParameters();
    var GetSessionTokenCommand = class extends import_smithy_client28.Command.classBuilder().ep(import_EndpointParameters9.commonParams).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSSecurityTokenServiceV20110615", "GetSessionToken", {}).n("STSClient", "GetSessionTokenCommand").f(void 0, GetSessionTokenResponseFilterSensitiveLog).ser(se_GetSessionTokenCommand).de(de_GetSessionTokenCommand).build() {
      static {
        __name(this, "GetSessionTokenCommand");
      }
      static {
        __name2(this, "GetSessionTokenCommand");
      }
    };
    var import_STSClient4 = require_STSClient();
    var commands3 = {
      AssumeRoleCommand: AssumeRoleCommand2,
      AssumeRoleWithSAMLCommand,
      AssumeRoleWithWebIdentityCommand: AssumeRoleWithWebIdentityCommand2,
      AssumeRootCommand,
      DecodeAuthorizationMessageCommand,
      GetAccessKeyInfoCommand,
      GetCallerIdentityCommand: GetCallerIdentityCommand3,
      GetFederationTokenCommand,
      GetSessionTokenCommand
    };
    var STS2 = class extends import_STSClient4.STSClient {
      static {
        __name(this, "STS");
      }
      static {
        __name2(this, "STS");
      }
    };
    (0, import_smithy_client28.createAggregatedClient)(commands3, STS2);
    var import_EndpointParameters10 = require_EndpointParameters();
    var import_client3 = (init_client(), __toCommonJS(client_exports));
    var ASSUME_ROLE_DEFAULT_REGION2 = "us-east-1";
    var getAccountIdFromAssumedRoleUser2 = /* @__PURE__ */ __name2((assumedRoleUser) => {
      if (typeof assumedRoleUser?.Arn === "string") {
        const arnComponents = assumedRoleUser.Arn.split(":");
        if (arnComponents.length > 4 && arnComponents[4] !== "") {
          return arnComponents[4];
        }
      }
      return void 0;
    }, "getAccountIdFromAssumedRoleUser");
    var resolveRegion2 = /* @__PURE__ */ __name2(async (_region, _parentRegion, credentialProviderLogger) => {
      const region = typeof _region === "function" ? await _region() : _region;
      const parentRegion = typeof _parentRegion === "function" ? await _parentRegion() : _parentRegion;
      credentialProviderLogger?.debug?.(
        "@aws-sdk/client-sts::resolveRegion",
        "accepting first of:",
        `${region} (provider)`,
        `${parentRegion} (parent client)`,
        `${ASSUME_ROLE_DEFAULT_REGION2} (STS default)`
      );
      return region ?? parentRegion ?? ASSUME_ROLE_DEFAULT_REGION2;
    }, "resolveRegion");
    var getDefaultRoleAssumer3 = /* @__PURE__ */ __name2((stsOptions, STSClient32) => {
      let stsClient;
      let closureSourceCreds;
      return async (sourceCreds, params) => {
        closureSourceCreds = sourceCreds;
        if (!stsClient) {
          const {
            logger: logger4 = stsOptions?.parentClientConfig?.logger,
            region,
            requestHandler = stsOptions?.parentClientConfig?.requestHandler,
            credentialProviderLogger
          } = stsOptions;
          const resolvedRegion = await resolveRegion2(
            region,
            stsOptions?.parentClientConfig?.region,
            credentialProviderLogger
          );
          const isCompatibleRequestHandler = !isH22(requestHandler);
          stsClient = new STSClient32({
            profile: stsOptions?.parentClientConfig?.profile,
            // A hack to make sts client uses the credential in current closure.
            credentialDefaultProvider: /* @__PURE__ */ __name2(() => async () => closureSourceCreds, "credentialDefaultProvider"),
            region: resolvedRegion,
            requestHandler: isCompatibleRequestHandler ? requestHandler : void 0,
            logger: logger4
          });
        }
        const { Credentials: Credentials2, AssumedRoleUser: AssumedRoleUser2 } = await stsClient.send(new AssumeRoleCommand2(params));
        if (!Credentials2 || !Credentials2.AccessKeyId || !Credentials2.SecretAccessKey) {
          throw new Error(`Invalid response from STS.assumeRole call with role ${params.RoleArn}`);
        }
        const accountId = getAccountIdFromAssumedRoleUser2(AssumedRoleUser2);
        const credentials = {
          accessKeyId: Credentials2.AccessKeyId,
          secretAccessKey: Credentials2.SecretAccessKey,
          sessionToken: Credentials2.SessionToken,
          expiration: Credentials2.Expiration,
          // TODO(credentialScope): access normally when shape is updated.
          ...Credentials2.CredentialScope && { credentialScope: Credentials2.CredentialScope },
          ...accountId && { accountId }
        };
        (0, import_client3.setCredentialFeature)(credentials, "CREDENTIALS_STS_ASSUME_ROLE", "i");
        return credentials;
      };
    }, "getDefaultRoleAssumer");
    var getDefaultRoleAssumerWithWebIdentity3 = /* @__PURE__ */ __name2((stsOptions, STSClient32) => {
      let stsClient;
      return async (params) => {
        if (!stsClient) {
          const {
            logger: logger4 = stsOptions?.parentClientConfig?.logger,
            region,
            requestHandler = stsOptions?.parentClientConfig?.requestHandler,
            credentialProviderLogger
          } = stsOptions;
          const resolvedRegion = await resolveRegion2(
            region,
            stsOptions?.parentClientConfig?.region,
            credentialProviderLogger
          );
          const isCompatibleRequestHandler = !isH22(requestHandler);
          stsClient = new STSClient32({
            profile: stsOptions?.parentClientConfig?.profile,
            region: resolvedRegion,
            requestHandler: isCompatibleRequestHandler ? requestHandler : void 0,
            logger: logger4
          });
        }
        const { Credentials: Credentials2, AssumedRoleUser: AssumedRoleUser2 } = await stsClient.send(new AssumeRoleWithWebIdentityCommand2(params));
        if (!Credentials2 || !Credentials2.AccessKeyId || !Credentials2.SecretAccessKey) {
          throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${params.RoleArn}`);
        }
        const accountId = getAccountIdFromAssumedRoleUser2(AssumedRoleUser2);
        const credentials = {
          accessKeyId: Credentials2.AccessKeyId,
          secretAccessKey: Credentials2.SecretAccessKey,
          sessionToken: Credentials2.SessionToken,
          expiration: Credentials2.Expiration,
          // TODO(credentialScope): access normally when shape is updated.
          ...Credentials2.CredentialScope && { credentialScope: Credentials2.CredentialScope },
          ...accountId && { accountId }
        };
        if (accountId) {
          (0, import_client3.setCredentialFeature)(credentials, "RESOLVED_ACCOUNT_ID", "T");
        }
        (0, import_client3.setCredentialFeature)(credentials, "CREDENTIALS_STS_ASSUME_ROLE_WEB_ID", "k");
        return credentials;
      };
    }, "getDefaultRoleAssumerWithWebIdentity");
    var isH22 = /* @__PURE__ */ __name2((requestHandler) => {
      return requestHandler?.metadata?.handlerProtocol === "h2";
    }, "isH2");
    var import_STSClient22 = require_STSClient();
    var getCustomizableStsClientCtor2 = /* @__PURE__ */ __name2((baseCtor, customizations) => {
      if (!customizations) return baseCtor;
      else
        return class CustomizableSTSClient extends baseCtor {
          static {
            __name(this, "CustomizableSTSClient");
          }
          static {
            __name2(this, "CustomizableSTSClient");
          }
          constructor(config) {
            super(config);
            for (const customization of customizations) {
              this.middlewareStack.use(customization);
            }
          }
        };
    }, "getCustomizableStsClientCtor");
    var getDefaultRoleAssumer22 = /* @__PURE__ */ __name2((stsOptions = {}, stsPlugins) => getDefaultRoleAssumer3(stsOptions, getCustomizableStsClientCtor2(import_STSClient22.STSClient, stsPlugins)), "getDefaultRoleAssumer");
    var getDefaultRoleAssumerWithWebIdentity22 = /* @__PURE__ */ __name2((stsOptions = {}, stsPlugins) => getDefaultRoleAssumerWithWebIdentity3(stsOptions, getCustomizableStsClientCtor2(import_STSClient22.STSClient, stsPlugins)), "getDefaultRoleAssumerWithWebIdentity");
    var decorateDefaultCredentialProvider2 = /* @__PURE__ */ __name2((provider) => (input) => provider({
      roleAssumer: getDefaultRoleAssumer22(input),
      roleAssumerWithWebIdentity: getDefaultRoleAssumerWithWebIdentity22(input),
      ...input
    }), "decorateDefaultCredentialProvider");
  }
});

// ../../node_modules/@aws-sdk/credential-providers/dist-cjs/createCredentialChain.js
var require_createCredentialChain = __commonJS({
  "../../node_modules/@aws-sdk/credential-providers/dist-cjs/createCredentialChain.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.propertyProviderChain = exports2.createCredentialChain = void 0;
    var property_provider_1 = require_dist_cjs22();
    var createCredentialChain2 = /* @__PURE__ */ __name((...credentialProviders) => {
      let expireAfter = -1;
      const baseFunction = /* @__PURE__ */ __name(async (awsIdentityProperties) => {
        const credentials = await (0, exports2.propertyProviderChain)(...credentialProviders)(awsIdentityProperties);
        if (!credentials.expiration && expireAfter !== -1) {
          credentials.expiration = new Date(Date.now() + expireAfter);
        }
        return credentials;
      }, "baseFunction");
      const withOptions = Object.assign(baseFunction, {
        expireAfter(milliseconds) {
          if (milliseconds < 5 * 6e4) {
            throw new Error("@aws-sdk/credential-providers - createCredentialChain(...).expireAfter(ms) may not be called with a duration lower than five minutes.");
          }
          expireAfter = milliseconds;
          return withOptions;
        }
      });
      return withOptions;
    }, "createCredentialChain");
    exports2.createCredentialChain = createCredentialChain2;
    var propertyProviderChain = /* @__PURE__ */ __name((...providers) => async (awsIdentityProperties) => {
      if (providers.length === 0) {
        throw new property_provider_1.ProviderError("No providers in chain");
      }
      let lastProviderError;
      for (const provider of providers) {
        try {
          const credentials = await provider(awsIdentityProperties);
          return credentials;
        } catch (err) {
          lastProviderError = err;
          if (err?.tryNextLink) {
            continue;
          }
          throw err;
        }
      }
      throw lastProviderError;
    }, "propertyProviderChain");
    exports2.propertyProviderChain = propertyProviderChain;
  }
});

// ../../node_modules/@aws-sdk/client-cognito-identity/dist-cjs/auth/httpAuthSchemeProvider.js
var require_httpAuthSchemeProvider6 = __commonJS({
  "../../node_modules/@aws-sdk/client-cognito-identity/dist-cjs/auth/httpAuthSchemeProvider.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.resolveHttpAuthSchemeConfig = exports2.defaultCognitoIdentityHttpAuthSchemeProvider = exports2.defaultCognitoIdentityHttpAuthSchemeParametersProvider = void 0;
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var util_middleware_1 = require_dist_cjs6();
    var defaultCognitoIdentityHttpAuthSchemeParametersProvider = /* @__PURE__ */ __name(async (config, context, input) => {
      return {
        operation: (0, util_middleware_1.getSmithyContext)(context).operation,
        region: await (0, util_middleware_1.normalizeProvider)(config.region)() || (() => {
          throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
        })()
      };
    }, "defaultCognitoIdentityHttpAuthSchemeParametersProvider");
    exports2.defaultCognitoIdentityHttpAuthSchemeParametersProvider = defaultCognitoIdentityHttpAuthSchemeParametersProvider;
    function createAwsAuthSigv4HttpAuthOption3(authParameters) {
      return {
        schemeId: "aws.auth#sigv4",
        signingProperties: {
          name: "cognito-identity",
          region: authParameters.region
        },
        propertiesExtractor: /* @__PURE__ */ __name((config, context) => ({
          signingProperties: {
            config,
            context
          }
        }), "propertiesExtractor")
      };
    }
    __name(createAwsAuthSigv4HttpAuthOption3, "createAwsAuthSigv4HttpAuthOption");
    function createSmithyApiNoAuthHttpAuthOption3(authParameters) {
      return {
        schemeId: "smithy.api#noAuth"
      };
    }
    __name(createSmithyApiNoAuthHttpAuthOption3, "createSmithyApiNoAuthHttpAuthOption");
    var defaultCognitoIdentityHttpAuthSchemeProvider = /* @__PURE__ */ __name((authParameters) => {
      const options = [];
      switch (authParameters.operation) {
        case "GetCredentialsForIdentity": {
          options.push(createSmithyApiNoAuthHttpAuthOption3(authParameters));
          break;
        }
        case "GetId": {
          options.push(createSmithyApiNoAuthHttpAuthOption3(authParameters));
          break;
        }
        case "GetOpenIdToken": {
          options.push(createSmithyApiNoAuthHttpAuthOption3(authParameters));
          break;
        }
        case "UnlinkIdentity": {
          options.push(createSmithyApiNoAuthHttpAuthOption3(authParameters));
          break;
        }
        default: {
          options.push(createAwsAuthSigv4HttpAuthOption3(authParameters));
        }
      }
      return options;
    }, "defaultCognitoIdentityHttpAuthSchemeProvider");
    exports2.defaultCognitoIdentityHttpAuthSchemeProvider = defaultCognitoIdentityHttpAuthSchemeProvider;
    var resolveHttpAuthSchemeConfig3 = /* @__PURE__ */ __name((config) => {
      const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
      return Object.assign(config_0, {
        authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? [])
      });
    }, "resolveHttpAuthSchemeConfig");
    exports2.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig3;
  }
});

// ../../node_modules/@aws-sdk/client-cognito-identity/package.json
var require_package6 = __commonJS({
  "../../node_modules/@aws-sdk/client-cognito-identity/package.json"(exports2, module2) {
    module2.exports = {
      name: "@aws-sdk/client-cognito-identity",
      description: "AWS SDK for JavaScript Cognito Identity Client for Node.js, Browser and React Native",
      version: "3.879.0",
      scripts: {
        build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
        "build:cjs": "node ../../scripts/compilation/inline client-cognito-identity",
        "build:es": "tsc -p tsconfig.es.json",
        "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
        "build:types": "tsc -p tsconfig.types.json",
        "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
        clean: "rimraf ./dist-* && rimraf *.tsbuildinfo",
        "extract:docs": "api-extractor run --local",
        "generate:client": "node ../../scripts/generate-clients/single-service --solo cognito-identity",
        "test:e2e": "yarn g:vitest run -c vitest.config.e2e.mts --mode development",
        "test:e2e:watch": "yarn g:vitest watch -c vitest.config.e2e.mts"
      },
      main: "./dist-cjs/index.js",
      types: "./dist-types/index.d.ts",
      module: "./dist-es/index.js",
      sideEffects: false,
      dependencies: {
        "@aws-crypto/sha256-browser": "5.2.0",
        "@aws-crypto/sha256-js": "5.2.0",
        "@aws-sdk/core": "3.879.0",
        "@aws-sdk/credential-provider-node": "3.879.0",
        "@aws-sdk/middleware-host-header": "3.873.0",
        "@aws-sdk/middleware-logger": "3.876.0",
        "@aws-sdk/middleware-recursion-detection": "3.873.0",
        "@aws-sdk/middleware-user-agent": "3.879.0",
        "@aws-sdk/region-config-resolver": "3.873.0",
        "@aws-sdk/types": "3.862.0",
        "@aws-sdk/util-endpoints": "3.879.0",
        "@aws-sdk/util-user-agent-browser": "3.873.0",
        "@aws-sdk/util-user-agent-node": "3.879.0",
        "@smithy/config-resolver": "^4.1.5",
        "@smithy/core": "^3.9.0",
        "@smithy/fetch-http-handler": "^5.1.1",
        "@smithy/hash-node": "^4.0.5",
        "@smithy/invalid-dependency": "^4.0.5",
        "@smithy/middleware-content-length": "^4.0.5",
        "@smithy/middleware-endpoint": "^4.1.19",
        "@smithy/middleware-retry": "^4.1.20",
        "@smithy/middleware-serde": "^4.0.9",
        "@smithy/middleware-stack": "^4.0.5",
        "@smithy/node-config-provider": "^4.1.4",
        "@smithy/node-http-handler": "^4.1.1",
        "@smithy/protocol-http": "^5.1.3",
        "@smithy/smithy-client": "^4.5.0",
        "@smithy/types": "^4.3.2",
        "@smithy/url-parser": "^4.0.5",
        "@smithy/util-base64": "^4.0.0",
        "@smithy/util-body-length-browser": "^4.0.0",
        "@smithy/util-body-length-node": "^4.0.0",
        "@smithy/util-defaults-mode-browser": "^4.0.27",
        "@smithy/util-defaults-mode-node": "^4.0.27",
        "@smithy/util-endpoints": "^3.0.7",
        "@smithy/util-middleware": "^4.0.5",
        "@smithy/util-retry": "^4.0.7",
        "@smithy/util-utf8": "^4.0.0",
        tslib: "^2.6.2"
      },
      devDependencies: {
        "@aws-sdk/client-iam": "3.879.0",
        "@tsconfig/node18": "18.2.4",
        "@types/chai": "^4.2.11",
        "@types/node": "^18.19.69",
        concurrently: "7.0.0",
        "downlevel-dts": "0.10.1",
        rimraf: "3.0.2",
        typescript: "~5.8.3"
      },
      engines: {
        node: ">=18.0.0"
      },
      typesVersions: {
        "<4.0": {
          "dist-types/*": [
            "dist-types/ts3.4/*"
          ]
        }
      },
      files: [
        "dist-*/**"
      ],
      author: {
        name: "AWS SDK for JavaScript Team",
        url: "https://aws.amazon.com/javascript/"
      },
      license: "Apache-2.0",
      browser: {
        "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
      },
      "react-native": {
        "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
      },
      homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-cognito-identity",
      repository: {
        type: "git",
        url: "https://github.com/aws/aws-sdk-js-v3.git",
        directory: "clients/client-cognito-identity"
      }
    };
  }
});

// ../../node_modules/@aws-sdk/client-cognito-identity/dist-cjs/endpoint/ruleset.js
var require_ruleset6 = __commonJS({
  "../../node_modules/@aws-sdk/client-cognito-identity/dist-cjs/endpoint/ruleset.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.ruleSet = void 0;
    var w3 = "required";
    var x3 = "fn";
    var y2 = "argv";
    var z2 = "ref";
    var a3 = true;
    var b3 = "isSet";
    var c3 = "booleanEquals";
    var d3 = "error";
    var e3 = "endpoint";
    var f3 = "tree";
    var g3 = "PartitionResult";
    var h3 = "getAttr";
    var i3 = "stringEquals";
    var j3 = { [w3]: false, "type": "String" };
    var k3 = { [w3]: true, "default": false, "type": "Boolean" };
    var l3 = { [z2]: "Endpoint" };
    var m3 = { [x3]: c3, [y2]: [{ [z2]: "UseFIPS" }, true] };
    var n3 = { [x3]: c3, [y2]: [{ [z2]: "UseDualStack" }, true] };
    var o3 = {};
    var p3 = { [z2]: "Region" };
    var q3 = { [x3]: h3, [y2]: [{ [z2]: g3 }, "supportsFIPS"] };
    var r3 = { [z2]: g3 };
    var s3 = { [x3]: c3, [y2]: [true, { [x3]: h3, [y2]: [r3, "supportsDualStack"] }] };
    var t3 = [m3];
    var u3 = [n3];
    var v6 = [p3];
    var _data3 = { version: "1.0", parameters: { Region: j3, UseDualStack: k3, UseFIPS: k3, Endpoint: j3 }, rules: [{ conditions: [{ [x3]: b3, [y2]: [l3] }], rules: [{ conditions: t3, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d3 }, { conditions: u3, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d3 }, { endpoint: { url: l3, properties: o3, headers: o3 }, type: e3 }], type: f3 }, { conditions: [{ [x3]: b3, [y2]: v6 }], rules: [{ conditions: [{ [x3]: "aws.partition", [y2]: v6, assign: g3 }], rules: [{ conditions: [m3, n3], rules: [{ conditions: [{ [x3]: c3, [y2]: [a3, q3] }, s3], rules: [{ conditions: [{ [x3]: i3, [y2]: [p3, "us-east-1"] }], endpoint: { url: "https://cognito-identity-fips.us-east-1.amazonaws.com", properties: o3, headers: o3 }, type: e3 }, { conditions: [{ [x3]: i3, [y2]: [p3, "us-east-2"] }], endpoint: { url: "https://cognito-identity-fips.us-east-2.amazonaws.com", properties: o3, headers: o3 }, type: e3 }, { conditions: [{ [x3]: i3, [y2]: [p3, "us-west-1"] }], endpoint: { url: "https://cognito-identity-fips.us-west-1.amazonaws.com", properties: o3, headers: o3 }, type: e3 }, { conditions: [{ [x3]: i3, [y2]: [p3, "us-west-2"] }], endpoint: { url: "https://cognito-identity-fips.us-west-2.amazonaws.com", properties: o3, headers: o3 }, type: e3 }, { endpoint: { url: "https://cognito-identity-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: o3, headers: o3 }, type: e3 }], type: f3 }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d3 }], type: f3 }, { conditions: t3, rules: [{ conditions: [{ [x3]: c3, [y2]: [q3, a3] }], rules: [{ endpoint: { url: "https://cognito-identity-fips.{Region}.{PartitionResult#dnsSuffix}", properties: o3, headers: o3 }, type: e3 }], type: f3 }, { error: "FIPS is enabled but this partition does not support FIPS", type: d3 }], type: f3 }, { conditions: u3, rules: [{ conditions: [s3], rules: [{ conditions: [{ [x3]: i3, [y2]: ["aws", { [x3]: h3, [y2]: [r3, "name"] }] }], endpoint: { url: "https://cognito-identity.{Region}.amazonaws.com", properties: o3, headers: o3 }, type: e3 }, { endpoint: { url: "https://cognito-identity.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: o3, headers: o3 }, type: e3 }], type: f3 }, { error: "DualStack is enabled but this partition does not support DualStack", type: d3 }], type: f3 }, { endpoint: { url: "https://cognito-identity.{Region}.{PartitionResult#dnsSuffix}", properties: o3, headers: o3 }, type: e3 }], type: f3 }], type: f3 }, { error: "Invalid Configuration: Missing Region", type: d3 }] };
    exports2.ruleSet = _data3;
  }
});

// ../../node_modules/@aws-sdk/client-cognito-identity/dist-cjs/endpoint/endpointResolver.js
var require_endpointResolver6 = __commonJS({
  "../../node_modules/@aws-sdk/client-cognito-identity/dist-cjs/endpoint/endpointResolver.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.defaultEndpointResolver = void 0;
    var util_endpoints_1 = require_dist_cjs21();
    var util_endpoints_2 = require_dist_cjs18();
    var ruleset_1 = require_ruleset6();
    var cache3 = new util_endpoints_2.EndpointCache({
      size: 50,
      params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"]
    });
    var defaultEndpointResolver3 = /* @__PURE__ */ __name((endpointParams, context = {}) => {
      return cache3.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
        endpointParams,
        logger: context.logger
      }));
    }, "defaultEndpointResolver");
    exports2.defaultEndpointResolver = defaultEndpointResolver3;
    util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
  }
});

// ../../node_modules/@aws-sdk/client-cognito-identity/dist-cjs/runtimeConfig.shared.js
var require_runtimeConfig_shared6 = __commonJS({
  "../../node_modules/@aws-sdk/client-cognito-identity/dist-cjs/runtimeConfig.shared.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.getRuntimeConfig = void 0;
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var core_2 = (init_dist_es(), __toCommonJS(dist_es_exports));
    var smithy_client_1 = require_dist_cjs26();
    var url_parser_1 = require_dist_cjs20();
    var util_base64_1 = require_dist_cjs11();
    var util_utf8_1 = require_dist_cjs10();
    var httpAuthSchemeProvider_1 = require_httpAuthSchemeProvider6();
    var endpointResolver_1 = require_endpointResolver6();
    var getRuntimeConfig5 = /* @__PURE__ */ __name((config) => {
      return {
        apiVersion: "2014-06-30",
        base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
        base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
        disableHostPrefix: config?.disableHostPrefix ?? false,
        endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
        extensions: config?.extensions ?? [],
        httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultCognitoIdentityHttpAuthSchemeProvider,
        httpAuthSchemes: config?.httpAuthSchemes ?? [
          {
            schemeId: "aws.auth#sigv4",
            identityProvider: /* @__PURE__ */ __name((ipc) => ipc.getIdentityProvider("aws.auth#sigv4"), "identityProvider"),
            signer: new core_1.AwsSdkSigV4Signer()
          },
          {
            schemeId: "smithy.api#noAuth",
            identityProvider: /* @__PURE__ */ __name((ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})), "identityProvider"),
            signer: new core_2.NoAuthSigner()
          }
        ],
        logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
        serviceId: config?.serviceId ?? "Cognito Identity",
        urlParser: config?.urlParser ?? url_parser_1.parseUrl,
        utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
        utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8
      };
    }, "getRuntimeConfig");
    exports2.getRuntimeConfig = getRuntimeConfig5;
  }
});

// ../../node_modules/@aws-sdk/client-cognito-identity/dist-cjs/runtimeConfig.js
var require_runtimeConfig6 = __commonJS({
  "../../node_modules/@aws-sdk/client-cognito-identity/dist-cjs/runtimeConfig.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.getRuntimeConfig = void 0;
    var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
    var package_json_1 = tslib_1.__importDefault(require_package6());
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var credential_provider_node_1 = require_dist_cjs52();
    var util_user_agent_node_1 = require_dist_cjs41();
    var config_resolver_1 = require_dist_cjs30();
    var hash_node_1 = require_dist_cjs42();
    var middleware_retry_1 = require_dist_cjs37();
    var node_config_provider_1 = require_dist_cjs33();
    var node_http_handler_1 = require_dist_cjs14();
    var util_body_length_node_1 = require_dist_cjs43();
    var util_retry_1 = require_dist_cjs36();
    var runtimeConfig_shared_1 = require_runtimeConfig_shared6();
    var smithy_client_1 = require_dist_cjs26();
    var util_defaults_mode_node_1 = require_dist_cjs44();
    var smithy_client_2 = require_dist_cjs26();
    var getRuntimeConfig5 = /* @__PURE__ */ __name((config) => {
      (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
      const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
      const defaultConfigProvider = /* @__PURE__ */ __name(() => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode), "defaultConfigProvider");
      const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
      (0, core_1.emitWarningIfUnsupportedVersion)(process.version);
      const loaderConfig = {
        profile: config?.profile,
        logger: clientSharedValues.logger
      };
      return {
        ...clientSharedValues,
        ...config,
        runtime: "node",
        defaultsMode,
        authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
        bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
        credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
        defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
        maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
        region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
        requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
        retryMode: config?.retryMode ?? (0, node_config_provider_1.loadConfig)({
          ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
          default: /* @__PURE__ */ __name(async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE, "default")
        }, config),
        sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
        streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
        useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
        useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
        userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig)
      };
    }, "getRuntimeConfig");
    exports2.getRuntimeConfig = getRuntimeConfig5;
  }
});

// ../../node_modules/@aws-sdk/client-cognito-identity/dist-cjs/index.js
var require_dist_cjs74 = __commonJS({
  "../../node_modules/@aws-sdk/client-cognito-identity/dist-cjs/index.js"(exports2, module2) {
    "use strict";
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var index_exports = {};
    __export2(index_exports, {
      AmbiguousRoleResolutionType: /* @__PURE__ */ __name(() => AmbiguousRoleResolutionType, "AmbiguousRoleResolutionType"),
      CognitoIdentity: /* @__PURE__ */ __name(() => CognitoIdentity, "CognitoIdentity"),
      CognitoIdentityClient: /* @__PURE__ */ __name(() => CognitoIdentityClient, "CognitoIdentityClient"),
      CognitoIdentityServiceException: /* @__PURE__ */ __name(() => CognitoIdentityServiceException, "CognitoIdentityServiceException"),
      ConcurrentModificationException: /* @__PURE__ */ __name(() => ConcurrentModificationException, "ConcurrentModificationException"),
      CreateIdentityPoolCommand: /* @__PURE__ */ __name(() => CreateIdentityPoolCommand, "CreateIdentityPoolCommand"),
      CredentialsFilterSensitiveLog: /* @__PURE__ */ __name(() => CredentialsFilterSensitiveLog2, "CredentialsFilterSensitiveLog"),
      DeleteIdentitiesCommand: /* @__PURE__ */ __name(() => DeleteIdentitiesCommand, "DeleteIdentitiesCommand"),
      DeleteIdentityPoolCommand: /* @__PURE__ */ __name(() => DeleteIdentityPoolCommand, "DeleteIdentityPoolCommand"),
      DescribeIdentityCommand: /* @__PURE__ */ __name(() => DescribeIdentityCommand, "DescribeIdentityCommand"),
      DescribeIdentityPoolCommand: /* @__PURE__ */ __name(() => DescribeIdentityPoolCommand, "DescribeIdentityPoolCommand"),
      DeveloperUserAlreadyRegisteredException: /* @__PURE__ */ __name(() => DeveloperUserAlreadyRegisteredException, "DeveloperUserAlreadyRegisteredException"),
      ErrorCode: /* @__PURE__ */ __name(() => ErrorCode, "ErrorCode"),
      ExternalServiceException: /* @__PURE__ */ __name(() => ExternalServiceException, "ExternalServiceException"),
      GetCredentialsForIdentityCommand: /* @__PURE__ */ __name(() => GetCredentialsForIdentityCommand, "GetCredentialsForIdentityCommand"),
      GetCredentialsForIdentityInputFilterSensitiveLog: /* @__PURE__ */ __name(() => GetCredentialsForIdentityInputFilterSensitiveLog, "GetCredentialsForIdentityInputFilterSensitiveLog"),
      GetCredentialsForIdentityResponseFilterSensitiveLog: /* @__PURE__ */ __name(() => GetCredentialsForIdentityResponseFilterSensitiveLog, "GetCredentialsForIdentityResponseFilterSensitiveLog"),
      GetIdCommand: /* @__PURE__ */ __name(() => GetIdCommand, "GetIdCommand"),
      GetIdInputFilterSensitiveLog: /* @__PURE__ */ __name(() => GetIdInputFilterSensitiveLog, "GetIdInputFilterSensitiveLog"),
      GetIdentityPoolRolesCommand: /* @__PURE__ */ __name(() => GetIdentityPoolRolesCommand, "GetIdentityPoolRolesCommand"),
      GetOpenIdTokenCommand: /* @__PURE__ */ __name(() => GetOpenIdTokenCommand, "GetOpenIdTokenCommand"),
      GetOpenIdTokenForDeveloperIdentityCommand: /* @__PURE__ */ __name(() => GetOpenIdTokenForDeveloperIdentityCommand, "GetOpenIdTokenForDeveloperIdentityCommand"),
      GetOpenIdTokenForDeveloperIdentityInputFilterSensitiveLog: /* @__PURE__ */ __name(() => GetOpenIdTokenForDeveloperIdentityInputFilterSensitiveLog, "GetOpenIdTokenForDeveloperIdentityInputFilterSensitiveLog"),
      GetOpenIdTokenForDeveloperIdentityResponseFilterSensitiveLog: /* @__PURE__ */ __name(() => GetOpenIdTokenForDeveloperIdentityResponseFilterSensitiveLog, "GetOpenIdTokenForDeveloperIdentityResponseFilterSensitiveLog"),
      GetOpenIdTokenInputFilterSensitiveLog: /* @__PURE__ */ __name(() => GetOpenIdTokenInputFilterSensitiveLog, "GetOpenIdTokenInputFilterSensitiveLog"),
      GetOpenIdTokenResponseFilterSensitiveLog: /* @__PURE__ */ __name(() => GetOpenIdTokenResponseFilterSensitiveLog, "GetOpenIdTokenResponseFilterSensitiveLog"),
      GetPrincipalTagAttributeMapCommand: /* @__PURE__ */ __name(() => GetPrincipalTagAttributeMapCommand, "GetPrincipalTagAttributeMapCommand"),
      InternalErrorException: /* @__PURE__ */ __name(() => InternalErrorException, "InternalErrorException"),
      InvalidIdentityPoolConfigurationException: /* @__PURE__ */ __name(() => InvalidIdentityPoolConfigurationException, "InvalidIdentityPoolConfigurationException"),
      InvalidParameterException: /* @__PURE__ */ __name(() => InvalidParameterException, "InvalidParameterException"),
      LimitExceededException: /* @__PURE__ */ __name(() => LimitExceededException, "LimitExceededException"),
      ListIdentitiesCommand: /* @__PURE__ */ __name(() => ListIdentitiesCommand, "ListIdentitiesCommand"),
      ListIdentityPoolsCommand: /* @__PURE__ */ __name(() => ListIdentityPoolsCommand, "ListIdentityPoolsCommand"),
      ListTagsForResourceCommand: /* @__PURE__ */ __name(() => ListTagsForResourceCommand, "ListTagsForResourceCommand"),
      LookupDeveloperIdentityCommand: /* @__PURE__ */ __name(() => LookupDeveloperIdentityCommand, "LookupDeveloperIdentityCommand"),
      MappingRuleMatchType: /* @__PURE__ */ __name(() => MappingRuleMatchType, "MappingRuleMatchType"),
      MergeDeveloperIdentitiesCommand: /* @__PURE__ */ __name(() => MergeDeveloperIdentitiesCommand, "MergeDeveloperIdentitiesCommand"),
      NotAuthorizedException: /* @__PURE__ */ __name(() => NotAuthorizedException, "NotAuthorizedException"),
      ResourceConflictException: /* @__PURE__ */ __name(() => ResourceConflictException, "ResourceConflictException"),
      ResourceNotFoundException: /* @__PURE__ */ __name(() => ResourceNotFoundException2, "ResourceNotFoundException"),
      RoleMappingType: /* @__PURE__ */ __name(() => RoleMappingType, "RoleMappingType"),
      SetIdentityPoolRolesCommand: /* @__PURE__ */ __name(() => SetIdentityPoolRolesCommand, "SetIdentityPoolRolesCommand"),
      SetPrincipalTagAttributeMapCommand: /* @__PURE__ */ __name(() => SetPrincipalTagAttributeMapCommand, "SetPrincipalTagAttributeMapCommand"),
      TagResourceCommand: /* @__PURE__ */ __name(() => TagResourceCommand, "TagResourceCommand"),
      TooManyRequestsException: /* @__PURE__ */ __name(() => TooManyRequestsException, "TooManyRequestsException"),
      UnlinkDeveloperIdentityCommand: /* @__PURE__ */ __name(() => UnlinkDeveloperIdentityCommand, "UnlinkDeveloperIdentityCommand"),
      UnlinkIdentityCommand: /* @__PURE__ */ __name(() => UnlinkIdentityCommand, "UnlinkIdentityCommand"),
      UnlinkIdentityInputFilterSensitiveLog: /* @__PURE__ */ __name(() => UnlinkIdentityInputFilterSensitiveLog, "UnlinkIdentityInputFilterSensitiveLog"),
      UntagResourceCommand: /* @__PURE__ */ __name(() => UntagResourceCommand, "UntagResourceCommand"),
      UpdateIdentityPoolCommand: /* @__PURE__ */ __name(() => UpdateIdentityPoolCommand, "UpdateIdentityPoolCommand"),
      __Client: /* @__PURE__ */ __name(() => import_smithy_client28.Client, "__Client"),
      paginateListIdentityPools: /* @__PURE__ */ __name(() => paginateListIdentityPools, "paginateListIdentityPools")
    });
    module2.exports = __toCommonJS2(index_exports);
    var import_middleware_host_header3 = require_dist_cjs3();
    var import_middleware_logger3 = require_dist_cjs4();
    var import_middleware_recursion_detection3 = require_dist_cjs5();
    var import_middleware_user_agent3 = require_dist_cjs28();
    var import_config_resolver6 = require_dist_cjs30();
    var import_core17 = (init_dist_es(), __toCommonJS(dist_es_exports));
    var import_middleware_content_length3 = require_dist_cjs31();
    var import_middleware_endpoint8 = require_dist_cjs34();
    var import_middleware_retry5 = require_dist_cjs37();
    var import_httpAuthSchemeProvider5 = require_httpAuthSchemeProvider6();
    var resolveClientEndpointParameters3 = /* @__PURE__ */ __name2((options) => {
      return Object.assign(options, {
        useDualstackEndpoint: options.useDualstackEndpoint ?? false,
        useFipsEndpoint: options.useFipsEndpoint ?? false,
        defaultSigningName: "cognito-identity"
      });
    }, "resolveClientEndpointParameters");
    var commonParams3 = {
      UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
      Endpoint: { type: "builtInParams", name: "endpoint" },
      Region: { type: "builtInParams", name: "region" },
      UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
    };
    var import_runtimeConfig5 = require_runtimeConfig6();
    var import_region_config_resolver3 = require_dist_cjs45();
    var import_protocol_http16 = require_dist_cjs2();
    var import_smithy_client28 = require_dist_cjs26();
    var getHttpAuthExtensionConfiguration3 = /* @__PURE__ */ __name2((runtimeConfig) => {
      const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
      let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
      let _credentials = runtimeConfig.credentials;
      return {
        setHttpAuthScheme(httpAuthScheme) {
          const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
          if (index === -1) {
            _httpAuthSchemes.push(httpAuthScheme);
          } else {
            _httpAuthSchemes.splice(index, 1, httpAuthScheme);
          }
        },
        httpAuthSchemes() {
          return _httpAuthSchemes;
        },
        setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
          _httpAuthSchemeProvider = httpAuthSchemeProvider;
        },
        httpAuthSchemeProvider() {
          return _httpAuthSchemeProvider;
        },
        setCredentials(credentials) {
          _credentials = credentials;
        },
        credentials() {
          return _credentials;
        }
      };
    }, "getHttpAuthExtensionConfiguration");
    var resolveHttpAuthRuntimeConfig3 = /* @__PURE__ */ __name2((config) => {
      return {
        httpAuthSchemes: config.httpAuthSchemes(),
        httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
        credentials: config.credentials()
      };
    }, "resolveHttpAuthRuntimeConfig");
    var resolveRuntimeExtensions3 = /* @__PURE__ */ __name2((runtimeConfig, extensions) => {
      const extensionConfiguration = Object.assign(
        (0, import_region_config_resolver3.getAwsRegionExtensionConfiguration)(runtimeConfig),
        (0, import_smithy_client28.getDefaultExtensionConfiguration)(runtimeConfig),
        (0, import_protocol_http16.getHttpHandlerExtensionConfiguration)(runtimeConfig),
        getHttpAuthExtensionConfiguration3(runtimeConfig)
      );
      extensions.forEach((extension) => extension.configure(extensionConfiguration));
      return Object.assign(
        runtimeConfig,
        (0, import_region_config_resolver3.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
        (0, import_smithy_client28.resolveDefaultRuntimeConfig)(extensionConfiguration),
        (0, import_protocol_http16.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
        resolveHttpAuthRuntimeConfig3(extensionConfiguration)
      );
    }, "resolveRuntimeExtensions");
    var CognitoIdentityClient = class extends import_smithy_client28.Client {
      static {
        __name(this, "CognitoIdentityClient");
      }
      static {
        __name2(this, "CognitoIdentityClient");
      }
      /**
       * The resolved configuration of CognitoIdentityClient class. This is resolved and normalized from the {@link CognitoIdentityClientConfig | constructor configuration interface}.
       */
      config;
      constructor(...[configuration]) {
        const _config_0 = (0, import_runtimeConfig5.getRuntimeConfig)(configuration || {});
        super(_config_0);
        this.initConfig = _config_0;
        const _config_1 = resolveClientEndpointParameters3(_config_0);
        const _config_2 = (0, import_middleware_user_agent3.resolveUserAgentConfig)(_config_1);
        const _config_3 = (0, import_middleware_retry5.resolveRetryConfig)(_config_2);
        const _config_4 = (0, import_config_resolver6.resolveRegionConfig)(_config_3);
        const _config_5 = (0, import_middleware_host_header3.resolveHostHeaderConfig)(_config_4);
        const _config_6 = (0, import_middleware_endpoint8.resolveEndpointConfig)(_config_5);
        const _config_7 = (0, import_httpAuthSchemeProvider5.resolveHttpAuthSchemeConfig)(_config_6);
        const _config_8 = resolveRuntimeExtensions3(_config_7, configuration?.extensions || []);
        this.config = _config_8;
        this.middlewareStack.use((0, import_middleware_user_agent3.getUserAgentPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_retry5.getRetryPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_content_length3.getContentLengthPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_host_header3.getHostHeaderPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_logger3.getLoggerPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_recursion_detection3.getRecursionDetectionPlugin)(this.config));
        this.middlewareStack.use(
          (0, import_core17.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
            httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider5.defaultCognitoIdentityHttpAuthSchemeParametersProvider,
            identityProviderConfigProvider: /* @__PURE__ */ __name2(async (config) => new import_core17.DefaultIdentityProviderConfig({
              "aws.auth#sigv4": config.credentials
            }), "identityProviderConfigProvider")
          })
        );
        this.middlewareStack.use((0, import_core17.getHttpSigningPlugin)(this.config));
      }
      /**
       * Destroy underlying resources, like sockets. It's usually not necessary to do this.
       * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
       * Otherwise, sockets might stay open for quite a long time before the server terminates them.
       */
      destroy() {
        super.destroy();
      }
    };
    var import_middleware_serde5 = require_dist_cjs7();
    var import_core22 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var CognitoIdentityServiceException = class _CognitoIdentityServiceException extends import_smithy_client28.ServiceException {
      static {
        __name(this, "_CognitoIdentityServiceException");
      }
      static {
        __name2(this, "CognitoIdentityServiceException");
      }
      /**
       * @internal
       */
      constructor(options) {
        super(options);
        Object.setPrototypeOf(this, _CognitoIdentityServiceException.prototype);
      }
    };
    var AmbiguousRoleResolutionType = {
      AUTHENTICATED_ROLE: "AuthenticatedRole",
      DENY: "Deny"
    };
    var InternalErrorException = class _InternalErrorException extends CognitoIdentityServiceException {
      static {
        __name(this, "_InternalErrorException");
      }
      static {
        __name2(this, "InternalErrorException");
      }
      name = "InternalErrorException";
      $fault = "server";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InternalErrorException",
          $fault: "server",
          ...opts
        });
        Object.setPrototypeOf(this, _InternalErrorException.prototype);
      }
    };
    var InvalidParameterException = class _InvalidParameterException extends CognitoIdentityServiceException {
      static {
        __name(this, "_InvalidParameterException");
      }
      static {
        __name2(this, "InvalidParameterException");
      }
      name = "InvalidParameterException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidParameterException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidParameterException.prototype);
      }
    };
    var LimitExceededException = class _LimitExceededException extends CognitoIdentityServiceException {
      static {
        __name(this, "_LimitExceededException");
      }
      static {
        __name2(this, "LimitExceededException");
      }
      name = "LimitExceededException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "LimitExceededException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _LimitExceededException.prototype);
      }
    };
    var NotAuthorizedException = class _NotAuthorizedException extends CognitoIdentityServiceException {
      static {
        __name(this, "_NotAuthorizedException");
      }
      static {
        __name2(this, "NotAuthorizedException");
      }
      name = "NotAuthorizedException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "NotAuthorizedException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _NotAuthorizedException.prototype);
      }
    };
    var ResourceConflictException = class _ResourceConflictException extends CognitoIdentityServiceException {
      static {
        __name(this, "_ResourceConflictException");
      }
      static {
        __name2(this, "ResourceConflictException");
      }
      name = "ResourceConflictException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ResourceConflictException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ResourceConflictException.prototype);
      }
    };
    var TooManyRequestsException = class _TooManyRequestsException extends CognitoIdentityServiceException {
      static {
        __name(this, "_TooManyRequestsException");
      }
      static {
        __name2(this, "TooManyRequestsException");
      }
      name = "TooManyRequestsException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "TooManyRequestsException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _TooManyRequestsException.prototype);
      }
    };
    var ErrorCode = {
      ACCESS_DENIED: "AccessDenied",
      INTERNAL_SERVER_ERROR: "InternalServerError"
    };
    var ResourceNotFoundException2 = class _ResourceNotFoundException extends CognitoIdentityServiceException {
      static {
        __name(this, "_ResourceNotFoundException");
      }
      static {
        __name2(this, "ResourceNotFoundException");
      }
      name = "ResourceNotFoundException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ResourceNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
      }
    };
    var ExternalServiceException = class _ExternalServiceException extends CognitoIdentityServiceException {
      static {
        __name(this, "_ExternalServiceException");
      }
      static {
        __name2(this, "ExternalServiceException");
      }
      name = "ExternalServiceException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ExternalServiceException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ExternalServiceException.prototype);
      }
    };
    var InvalidIdentityPoolConfigurationException = class _InvalidIdentityPoolConfigurationException extends CognitoIdentityServiceException {
      static {
        __name(this, "_InvalidIdentityPoolConfigurationException");
      }
      static {
        __name2(this, "InvalidIdentityPoolConfigurationException");
      }
      name = "InvalidIdentityPoolConfigurationException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidIdentityPoolConfigurationException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidIdentityPoolConfigurationException.prototype);
      }
    };
    var MappingRuleMatchType = {
      CONTAINS: "Contains",
      EQUALS: "Equals",
      NOT_EQUAL: "NotEqual",
      STARTS_WITH: "StartsWith"
    };
    var RoleMappingType = {
      RULES: "Rules",
      TOKEN: "Token"
    };
    var DeveloperUserAlreadyRegisteredException = class _DeveloperUserAlreadyRegisteredException extends CognitoIdentityServiceException {
      static {
        __name(this, "_DeveloperUserAlreadyRegisteredException");
      }
      static {
        __name2(this, "DeveloperUserAlreadyRegisteredException");
      }
      name = "DeveloperUserAlreadyRegisteredException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "DeveloperUserAlreadyRegisteredException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _DeveloperUserAlreadyRegisteredException.prototype);
      }
    };
    var ConcurrentModificationException = class _ConcurrentModificationException extends CognitoIdentityServiceException {
      static {
        __name(this, "_ConcurrentModificationException");
      }
      static {
        __name2(this, "ConcurrentModificationException");
      }
      name = "ConcurrentModificationException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ConcurrentModificationException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ConcurrentModificationException.prototype);
      }
    };
    var GetCredentialsForIdentityInputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Logins && { Logins: import_smithy_client28.SENSITIVE_STRING }
    }), "GetCredentialsForIdentityInputFilterSensitiveLog");
    var CredentialsFilterSensitiveLog2 = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.SecretKey && { SecretKey: import_smithy_client28.SENSITIVE_STRING }
    }), "CredentialsFilterSensitiveLog");
    var GetCredentialsForIdentityResponseFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Credentials && { Credentials: CredentialsFilterSensitiveLog2(obj.Credentials) }
    }), "GetCredentialsForIdentityResponseFilterSensitiveLog");
    var GetIdInputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Logins && { Logins: import_smithy_client28.SENSITIVE_STRING }
    }), "GetIdInputFilterSensitiveLog");
    var GetOpenIdTokenInputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Logins && { Logins: import_smithy_client28.SENSITIVE_STRING }
    }), "GetOpenIdTokenInputFilterSensitiveLog");
    var GetOpenIdTokenResponseFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Token && { Token: import_smithy_client28.SENSITIVE_STRING }
    }), "GetOpenIdTokenResponseFilterSensitiveLog");
    var GetOpenIdTokenForDeveloperIdentityInputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Logins && { Logins: import_smithy_client28.SENSITIVE_STRING }
    }), "GetOpenIdTokenForDeveloperIdentityInputFilterSensitiveLog");
    var GetOpenIdTokenForDeveloperIdentityResponseFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Token && { Token: import_smithy_client28.SENSITIVE_STRING }
    }), "GetOpenIdTokenForDeveloperIdentityResponseFilterSensitiveLog");
    var UnlinkIdentityInputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Logins && { Logins: import_smithy_client28.SENSITIVE_STRING }
    }), "UnlinkIdentityInputFilterSensitiveLog");
    var se_CreateIdentityPoolCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("CreateIdentityPool");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateIdentityPoolCommand");
    var se_DeleteIdentitiesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteIdentities");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteIdentitiesCommand");
    var se_DeleteIdentityPoolCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteIdentityPool");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteIdentityPoolCommand");
    var se_DescribeIdentityCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeIdentity");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeIdentityCommand");
    var se_DescribeIdentityPoolCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeIdentityPool");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeIdentityPoolCommand");
    var se_GetCredentialsForIdentityCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetCredentialsForIdentity");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetCredentialsForIdentityCommand");
    var se_GetIdCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetId");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetIdCommand");
    var se_GetIdentityPoolRolesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetIdentityPoolRoles");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetIdentityPoolRolesCommand");
    var se_GetOpenIdTokenCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetOpenIdToken");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetOpenIdTokenCommand");
    var se_GetOpenIdTokenForDeveloperIdentityCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetOpenIdTokenForDeveloperIdentity");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetOpenIdTokenForDeveloperIdentityCommand");
    var se_GetPrincipalTagAttributeMapCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetPrincipalTagAttributeMap");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetPrincipalTagAttributeMapCommand");
    var se_ListIdentitiesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListIdentities");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListIdentitiesCommand");
    var se_ListIdentityPoolsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListIdentityPools");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListIdentityPoolsCommand");
    var se_ListTagsForResourceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListTagsForResource");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListTagsForResourceCommand");
    var se_LookupDeveloperIdentityCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("LookupDeveloperIdentity");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_LookupDeveloperIdentityCommand");
    var se_MergeDeveloperIdentitiesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("MergeDeveloperIdentities");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_MergeDeveloperIdentitiesCommand");
    var se_SetIdentityPoolRolesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("SetIdentityPoolRoles");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_SetIdentityPoolRolesCommand");
    var se_SetPrincipalTagAttributeMapCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("SetPrincipalTagAttributeMap");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_SetPrincipalTagAttributeMapCommand");
    var se_TagResourceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("TagResource");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_TagResourceCommand");
    var se_UnlinkDeveloperIdentityCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("UnlinkDeveloperIdentity");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UnlinkDeveloperIdentityCommand");
    var se_UnlinkIdentityCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("UnlinkIdentity");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UnlinkIdentityCommand");
    var se_UntagResourceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("UntagResource");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UntagResourceCommand");
    var se_UpdateIdentityPoolCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("UpdateIdentityPool");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateIdentityPoolCommand");
    var de_CreateIdentityPoolCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateIdentityPoolCommand");
    var de_DeleteIdentitiesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteIdentitiesCommand");
    var de_DeleteIdentityPoolCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeleteIdentityPoolCommand");
    var de_DescribeIdentityCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_IdentityDescription(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeIdentityCommand");
    var de_DescribeIdentityPoolCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeIdentityPoolCommand");
    var de_GetCredentialsForIdentityCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_GetCredentialsForIdentityResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetCredentialsForIdentityCommand");
    var de_GetIdCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetIdCommand");
    var de_GetIdentityPoolRolesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetIdentityPoolRolesCommand");
    var de_GetOpenIdTokenCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetOpenIdTokenCommand");
    var de_GetOpenIdTokenForDeveloperIdentityCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetOpenIdTokenForDeveloperIdentityCommand");
    var de_GetPrincipalTagAttributeMapCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetPrincipalTagAttributeMapCommand");
    var de_ListIdentitiesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_ListIdentitiesResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListIdentitiesCommand");
    var de_ListIdentityPoolsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListIdentityPoolsCommand");
    var de_ListTagsForResourceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListTagsForResourceCommand");
    var de_LookupDeveloperIdentityCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_LookupDeveloperIdentityCommand");
    var de_MergeDeveloperIdentitiesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_MergeDeveloperIdentitiesCommand");
    var de_SetIdentityPoolRolesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_SetIdentityPoolRolesCommand");
    var de_SetPrincipalTagAttributeMapCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_SetPrincipalTagAttributeMapCommand");
    var de_TagResourceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_TagResourceCommand");
    var de_UnlinkDeveloperIdentityCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_UnlinkDeveloperIdentityCommand");
    var de_UnlinkIdentityCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_UnlinkIdentityCommand");
    var de_UntagResourceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UntagResourceCommand");
    var de_UpdateIdentityPoolCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UpdateIdentityPoolCommand");
    var de_CommandError3 = /* @__PURE__ */ __name2(async (output, context) => {
      const parsedOutput = {
        ...output,
        body: await (0, import_core22.parseJsonErrorBody)(output.body, context)
      };
      const errorCode = (0, import_core22.loadRestJsonErrorCode)(output, parsedOutput.body);
      switch (errorCode) {
        case "InternalErrorException":
        case "com.amazonaws.cognitoidentity#InternalErrorException":
          throw await de_InternalErrorExceptionRes(parsedOutput, context);
        case "InvalidParameterException":
        case "com.amazonaws.cognitoidentity#InvalidParameterException":
          throw await de_InvalidParameterExceptionRes(parsedOutput, context);
        case "LimitExceededException":
        case "com.amazonaws.cognitoidentity#LimitExceededException":
          throw await de_LimitExceededExceptionRes(parsedOutput, context);
        case "NotAuthorizedException":
        case "com.amazonaws.cognitoidentity#NotAuthorizedException":
          throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
        case "ResourceConflictException":
        case "com.amazonaws.cognitoidentity#ResourceConflictException":
          throw await de_ResourceConflictExceptionRes(parsedOutput, context);
        case "TooManyRequestsException":
        case "com.amazonaws.cognitoidentity#TooManyRequestsException":
          throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
        case "ResourceNotFoundException":
        case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
          throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
        case "ExternalServiceException":
        case "com.amazonaws.cognitoidentity#ExternalServiceException":
          throw await de_ExternalServiceExceptionRes(parsedOutput, context);
        case "InvalidIdentityPoolConfigurationException":
        case "com.amazonaws.cognitoidentity#InvalidIdentityPoolConfigurationException":
          throw await de_InvalidIdentityPoolConfigurationExceptionRes(parsedOutput, context);
        case "DeveloperUserAlreadyRegisteredException":
        case "com.amazonaws.cognitoidentity#DeveloperUserAlreadyRegisteredException":
          throw await de_DeveloperUserAlreadyRegisteredExceptionRes(parsedOutput, context);
        case "ConcurrentModificationException":
        case "com.amazonaws.cognitoidentity#ConcurrentModificationException":
          throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
        default:
          const parsedBody = parsedOutput.body;
          return throwDefaultError3({
            output,
            parsedBody,
            errorCode
          });
      }
    }, "de_CommandError");
    var de_ConcurrentModificationExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ConcurrentModificationException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ConcurrentModificationExceptionRes");
    var de_DeveloperUserAlreadyRegisteredExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new DeveloperUserAlreadyRegisteredException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_DeveloperUserAlreadyRegisteredExceptionRes");
    var de_ExternalServiceExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ExternalServiceException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ExternalServiceExceptionRes");
    var de_InternalErrorExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InternalErrorException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InternalErrorExceptionRes");
    var de_InvalidIdentityPoolConfigurationExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidIdentityPoolConfigurationException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidIdentityPoolConfigurationExceptionRes");
    var de_InvalidParameterExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidParameterException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidParameterExceptionRes");
    var de_LimitExceededExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new LimitExceededException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_LimitExceededExceptionRes");
    var de_NotAuthorizedExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new NotAuthorizedException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_NotAuthorizedExceptionRes");
    var de_ResourceConflictExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ResourceConflictException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ResourceConflictExceptionRes");
    var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ResourceNotFoundException2({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ResourceNotFoundExceptionRes");
    var de_TooManyRequestsExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new TooManyRequestsException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_TooManyRequestsExceptionRes");
    var de_Credentials2 = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        AccessKeyId: import_smithy_client28.expectString,
        Expiration: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "Expiration"),
        SecretKey: import_smithy_client28.expectString,
        SessionToken: import_smithy_client28.expectString
      });
    }, "de_Credentials");
    var de_GetCredentialsForIdentityResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        Credentials: /* @__PURE__ */ __name2((_3) => de_Credentials2(_3, context), "Credentials"),
        IdentityId: import_smithy_client28.expectString
      });
    }, "de_GetCredentialsForIdentityResponse");
    var de_IdentitiesList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_IdentityDescription(entry, context);
      });
      return retVal;
    }, "de_IdentitiesList");
    var de_IdentityDescription = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        CreationDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "CreationDate"),
        IdentityId: import_smithy_client28.expectString,
        LastModifiedDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "LastModifiedDate"),
        Logins: import_smithy_client28._json
      });
    }, "de_IdentityDescription");
    var de_ListIdentitiesResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        Identities: /* @__PURE__ */ __name2((_3) => de_IdentitiesList(_3, context), "Identities"),
        IdentityPoolId: import_smithy_client28.expectString,
        NextToken: import_smithy_client28.expectString
      });
    }, "de_ListIdentitiesResponse");
    var deserializeMetadata3 = /* @__PURE__ */ __name2((output) => ({
      httpStatusCode: output.statusCode,
      requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
      extendedRequestId: output.headers["x-amz-id-2"],
      cfId: output.headers["x-amz-cf-id"]
    }), "deserializeMetadata");
    var throwDefaultError3 = (0, import_smithy_client28.withBaseException)(CognitoIdentityServiceException);
    var buildHttpRpcRequest2 = /* @__PURE__ */ __name2(async (context, headers, path38, resolvedHostname, body) => {
      const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
      const contents = {
        protocol,
        hostname,
        port,
        method: "POST",
        path: basePath.endsWith("/") ? basePath.slice(0, -1) + path38 : basePath + path38,
        headers
      };
      if (resolvedHostname !== void 0) {
        contents.hostname = resolvedHostname;
      }
      if (body !== void 0) {
        contents.body = body;
      }
      return new import_protocol_http16.HttpRequest(contents);
    }, "buildHttpRpcRequest");
    function sharedHeaders(operation) {
      return {
        "content-type": "application/x-amz-json-1.1",
        "x-amz-target": `AWSCognitoIdentityService.${operation}`
      };
    }
    __name(sharedHeaders, "sharedHeaders");
    __name2(sharedHeaders, "sharedHeaders");
    var CreateIdentityPoolCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSCognitoIdentityService", "CreateIdentityPool", {}).n("CognitoIdentityClient", "CreateIdentityPoolCommand").f(void 0, void 0).ser(se_CreateIdentityPoolCommand).de(de_CreateIdentityPoolCommand).build() {
      static {
        __name(this, "CreateIdentityPoolCommand");
      }
      static {
        __name2(this, "CreateIdentityPoolCommand");
      }
    };
    var DeleteIdentitiesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSCognitoIdentityService", "DeleteIdentities", {}).n("CognitoIdentityClient", "DeleteIdentitiesCommand").f(void 0, void 0).ser(se_DeleteIdentitiesCommand).de(de_DeleteIdentitiesCommand).build() {
      static {
        __name(this, "DeleteIdentitiesCommand");
      }
      static {
        __name2(this, "DeleteIdentitiesCommand");
      }
    };
    var DeleteIdentityPoolCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSCognitoIdentityService", "DeleteIdentityPool", {}).n("CognitoIdentityClient", "DeleteIdentityPoolCommand").f(void 0, void 0).ser(se_DeleteIdentityPoolCommand).de(de_DeleteIdentityPoolCommand).build() {
      static {
        __name(this, "DeleteIdentityPoolCommand");
      }
      static {
        __name2(this, "DeleteIdentityPoolCommand");
      }
    };
    var DescribeIdentityCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSCognitoIdentityService", "DescribeIdentity", {}).n("CognitoIdentityClient", "DescribeIdentityCommand").f(void 0, void 0).ser(se_DescribeIdentityCommand).de(de_DescribeIdentityCommand).build() {
      static {
        __name(this, "DescribeIdentityCommand");
      }
      static {
        __name2(this, "DescribeIdentityCommand");
      }
    };
    var DescribeIdentityPoolCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSCognitoIdentityService", "DescribeIdentityPool", {}).n("CognitoIdentityClient", "DescribeIdentityPoolCommand").f(void 0, void 0).ser(se_DescribeIdentityPoolCommand).de(de_DescribeIdentityPoolCommand).build() {
      static {
        __name(this, "DescribeIdentityPoolCommand");
      }
      static {
        __name2(this, "DescribeIdentityPoolCommand");
      }
    };
    var GetCredentialsForIdentityCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSCognitoIdentityService", "GetCredentialsForIdentity", {}).n("CognitoIdentityClient", "GetCredentialsForIdentityCommand").f(GetCredentialsForIdentityInputFilterSensitiveLog, GetCredentialsForIdentityResponseFilterSensitiveLog).ser(se_GetCredentialsForIdentityCommand).de(de_GetCredentialsForIdentityCommand).build() {
      static {
        __name(this, "GetCredentialsForIdentityCommand");
      }
      static {
        __name2(this, "GetCredentialsForIdentityCommand");
      }
    };
    var GetIdCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSCognitoIdentityService", "GetId", {}).n("CognitoIdentityClient", "GetIdCommand").f(GetIdInputFilterSensitiveLog, void 0).ser(se_GetIdCommand).de(de_GetIdCommand).build() {
      static {
        __name(this, "GetIdCommand");
      }
      static {
        __name2(this, "GetIdCommand");
      }
    };
    var GetIdentityPoolRolesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSCognitoIdentityService", "GetIdentityPoolRoles", {}).n("CognitoIdentityClient", "GetIdentityPoolRolesCommand").f(void 0, void 0).ser(se_GetIdentityPoolRolesCommand).de(de_GetIdentityPoolRolesCommand).build() {
      static {
        __name(this, "GetIdentityPoolRolesCommand");
      }
      static {
        __name2(this, "GetIdentityPoolRolesCommand");
      }
    };
    var GetOpenIdTokenCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSCognitoIdentityService", "GetOpenIdToken", {}).n("CognitoIdentityClient", "GetOpenIdTokenCommand").f(GetOpenIdTokenInputFilterSensitiveLog, GetOpenIdTokenResponseFilterSensitiveLog).ser(se_GetOpenIdTokenCommand).de(de_GetOpenIdTokenCommand).build() {
      static {
        __name(this, "GetOpenIdTokenCommand");
      }
      static {
        __name2(this, "GetOpenIdTokenCommand");
      }
    };
    var GetOpenIdTokenForDeveloperIdentityCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSCognitoIdentityService", "GetOpenIdTokenForDeveloperIdentity", {}).n("CognitoIdentityClient", "GetOpenIdTokenForDeveloperIdentityCommand").f(
      GetOpenIdTokenForDeveloperIdentityInputFilterSensitiveLog,
      GetOpenIdTokenForDeveloperIdentityResponseFilterSensitiveLog
    ).ser(se_GetOpenIdTokenForDeveloperIdentityCommand).de(de_GetOpenIdTokenForDeveloperIdentityCommand).build() {
      static {
        __name(this, "GetOpenIdTokenForDeveloperIdentityCommand");
      }
      static {
        __name2(this, "GetOpenIdTokenForDeveloperIdentityCommand");
      }
    };
    var GetPrincipalTagAttributeMapCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSCognitoIdentityService", "GetPrincipalTagAttributeMap", {}).n("CognitoIdentityClient", "GetPrincipalTagAttributeMapCommand").f(void 0, void 0).ser(se_GetPrincipalTagAttributeMapCommand).de(de_GetPrincipalTagAttributeMapCommand).build() {
      static {
        __name(this, "GetPrincipalTagAttributeMapCommand");
      }
      static {
        __name2(this, "GetPrincipalTagAttributeMapCommand");
      }
    };
    var ListIdentitiesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSCognitoIdentityService", "ListIdentities", {}).n("CognitoIdentityClient", "ListIdentitiesCommand").f(void 0, void 0).ser(se_ListIdentitiesCommand).de(de_ListIdentitiesCommand).build() {
      static {
        __name(this, "ListIdentitiesCommand");
      }
      static {
        __name2(this, "ListIdentitiesCommand");
      }
    };
    var ListIdentityPoolsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSCognitoIdentityService", "ListIdentityPools", {}).n("CognitoIdentityClient", "ListIdentityPoolsCommand").f(void 0, void 0).ser(se_ListIdentityPoolsCommand).de(de_ListIdentityPoolsCommand).build() {
      static {
        __name(this, "ListIdentityPoolsCommand");
      }
      static {
        __name2(this, "ListIdentityPoolsCommand");
      }
    };
    var ListTagsForResourceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSCognitoIdentityService", "ListTagsForResource", {}).n("CognitoIdentityClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
      static {
        __name(this, "ListTagsForResourceCommand");
      }
      static {
        __name2(this, "ListTagsForResourceCommand");
      }
    };
    var LookupDeveloperIdentityCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSCognitoIdentityService", "LookupDeveloperIdentity", {}).n("CognitoIdentityClient", "LookupDeveloperIdentityCommand").f(void 0, void 0).ser(se_LookupDeveloperIdentityCommand).de(de_LookupDeveloperIdentityCommand).build() {
      static {
        __name(this, "LookupDeveloperIdentityCommand");
      }
      static {
        __name2(this, "LookupDeveloperIdentityCommand");
      }
    };
    var MergeDeveloperIdentitiesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSCognitoIdentityService", "MergeDeveloperIdentities", {}).n("CognitoIdentityClient", "MergeDeveloperIdentitiesCommand").f(void 0, void 0).ser(se_MergeDeveloperIdentitiesCommand).de(de_MergeDeveloperIdentitiesCommand).build() {
      static {
        __name(this, "MergeDeveloperIdentitiesCommand");
      }
      static {
        __name2(this, "MergeDeveloperIdentitiesCommand");
      }
    };
    var SetIdentityPoolRolesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSCognitoIdentityService", "SetIdentityPoolRoles", {}).n("CognitoIdentityClient", "SetIdentityPoolRolesCommand").f(void 0, void 0).ser(se_SetIdentityPoolRolesCommand).de(de_SetIdentityPoolRolesCommand).build() {
      static {
        __name(this, "SetIdentityPoolRolesCommand");
      }
      static {
        __name2(this, "SetIdentityPoolRolesCommand");
      }
    };
    var SetPrincipalTagAttributeMapCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSCognitoIdentityService", "SetPrincipalTagAttributeMap", {}).n("CognitoIdentityClient", "SetPrincipalTagAttributeMapCommand").f(void 0, void 0).ser(se_SetPrincipalTagAttributeMapCommand).de(de_SetPrincipalTagAttributeMapCommand).build() {
      static {
        __name(this, "SetPrincipalTagAttributeMapCommand");
      }
      static {
        __name2(this, "SetPrincipalTagAttributeMapCommand");
      }
    };
    var TagResourceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSCognitoIdentityService", "TagResource", {}).n("CognitoIdentityClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
      static {
        __name(this, "TagResourceCommand");
      }
      static {
        __name2(this, "TagResourceCommand");
      }
    };
    var UnlinkDeveloperIdentityCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSCognitoIdentityService", "UnlinkDeveloperIdentity", {}).n("CognitoIdentityClient", "UnlinkDeveloperIdentityCommand").f(void 0, void 0).ser(se_UnlinkDeveloperIdentityCommand).de(de_UnlinkDeveloperIdentityCommand).build() {
      static {
        __name(this, "UnlinkDeveloperIdentityCommand");
      }
      static {
        __name2(this, "UnlinkDeveloperIdentityCommand");
      }
    };
    var UnlinkIdentityCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSCognitoIdentityService", "UnlinkIdentity", {}).n("CognitoIdentityClient", "UnlinkIdentityCommand").f(UnlinkIdentityInputFilterSensitiveLog, void 0).ser(se_UnlinkIdentityCommand).de(de_UnlinkIdentityCommand).build() {
      static {
        __name(this, "UnlinkIdentityCommand");
      }
      static {
        __name2(this, "UnlinkIdentityCommand");
      }
    };
    var UntagResourceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSCognitoIdentityService", "UntagResource", {}).n("CognitoIdentityClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
      static {
        __name(this, "UntagResourceCommand");
      }
      static {
        __name2(this, "UntagResourceCommand");
      }
    };
    var UpdateIdentityPoolCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSCognitoIdentityService", "UpdateIdentityPool", {}).n("CognitoIdentityClient", "UpdateIdentityPoolCommand").f(void 0, void 0).ser(se_UpdateIdentityPoolCommand).de(de_UpdateIdentityPoolCommand).build() {
      static {
        __name(this, "UpdateIdentityPoolCommand");
      }
      static {
        __name2(this, "UpdateIdentityPoolCommand");
      }
    };
    var commands3 = {
      CreateIdentityPoolCommand,
      DeleteIdentitiesCommand,
      DeleteIdentityPoolCommand,
      DescribeIdentityCommand,
      DescribeIdentityPoolCommand,
      GetCredentialsForIdentityCommand,
      GetIdCommand,
      GetIdentityPoolRolesCommand,
      GetOpenIdTokenCommand,
      GetOpenIdTokenForDeveloperIdentityCommand,
      GetPrincipalTagAttributeMapCommand,
      ListIdentitiesCommand,
      ListIdentityPoolsCommand,
      ListTagsForResourceCommand,
      LookupDeveloperIdentityCommand,
      MergeDeveloperIdentitiesCommand,
      SetIdentityPoolRolesCommand,
      SetPrincipalTagAttributeMapCommand,
      TagResourceCommand,
      UnlinkDeveloperIdentityCommand,
      UnlinkIdentityCommand,
      UntagResourceCommand,
      UpdateIdentityPoolCommand
    };
    var CognitoIdentity = class extends CognitoIdentityClient {
      static {
        __name(this, "CognitoIdentity");
      }
      static {
        __name2(this, "CognitoIdentity");
      }
    };
    (0, import_smithy_client28.createAggregatedClient)(commands3, CognitoIdentity);
    var paginateListIdentityPools = (0, import_core17.createPaginator)(CognitoIdentityClient, ListIdentityPoolsCommand, "NextToken", "NextToken", "MaxResults");
  }
});

// ../../node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/index.js
var require_dist_cjs75 = __commonJS({
  "../../node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/index.js"(exports2, module2) {
    "use strict";
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __esm2 = /* @__PURE__ */ __name((fn, res) => /* @__PURE__ */ __name(function __init() {
      return fn && (res = (0, fn[__getOwnPropNames2(fn)[0]])(fn = 0)), res;
    }, "__init"), "__esm");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var loadCognitoIdentity_exports = {};
    __export2(loadCognitoIdentity_exports, {
      CognitoIdentityClient: /* @__PURE__ */ __name(() => import_client_cognito_identity.CognitoIdentityClient, "CognitoIdentityClient"),
      GetCredentialsForIdentityCommand: /* @__PURE__ */ __name(() => import_client_cognito_identity.GetCredentialsForIdentityCommand, "GetCredentialsForIdentityCommand"),
      GetIdCommand: /* @__PURE__ */ __name(() => import_client_cognito_identity.GetIdCommand, "GetIdCommand")
    });
    var import_client_cognito_identity;
    var init_loadCognitoIdentity = __esm2({
      "src/loadCognitoIdentity.ts"() {
        "use strict";
        import_client_cognito_identity = require_dist_cjs74();
      }
    });
    var index_exports = {};
    __export2(index_exports, {
      fromCognitoIdentity: /* @__PURE__ */ __name(() => fromCognitoIdentity, "fromCognitoIdentity"),
      fromCognitoIdentityPool: /* @__PURE__ */ __name(() => fromCognitoIdentityPool, "fromCognitoIdentityPool")
    });
    module2.exports = __toCommonJS2(index_exports);
    var import_property_provider3 = require_dist_cjs22();
    function resolveLogins(logins) {
      return Promise.all(
        Object.keys(logins).reduce((arr, name) => {
          const tokenOrProvider = logins[name];
          if (typeof tokenOrProvider === "string") {
            arr.push([name, tokenOrProvider]);
          } else {
            arr.push(tokenOrProvider().then((token) => [name, token]));
          }
          return arr;
        }, [])
      ).then(
        (resolvedPairs) => resolvedPairs.reduce((logins2, [key, value]) => {
          logins2[key] = value;
          return logins2;
        }, {})
      );
    }
    __name(resolveLogins, "resolveLogins");
    __name2(resolveLogins, "resolveLogins");
    function fromCognitoIdentity(parameters) {
      return async (awsIdentityProperties) => {
        parameters.logger?.debug("@aws-sdk/credential-provider-cognito-identity - fromCognitoIdentity");
        const { GetCredentialsForIdentityCommand: GetCredentialsForIdentityCommand2, CognitoIdentityClient: CognitoIdentityClient2 } = await Promise.resolve().then(() => (init_loadCognitoIdentity(), loadCognitoIdentity_exports));
        const fromConfigs = /* @__PURE__ */ __name2((property) => parameters.clientConfig?.[property] ?? parameters.parentClientConfig?.[property] ?? awsIdentityProperties?.callerClientConfig?.[property], "fromConfigs");
        const {
          Credentials: {
            AccessKeyId = throwOnMissingAccessKeyId(parameters.logger),
            Expiration,
            SecretKey = throwOnMissingSecretKey(parameters.logger),
            SessionToken
          } = throwOnMissingCredentials(parameters.logger)
        } = await (parameters.client ?? new CognitoIdentityClient2(
          Object.assign({}, parameters.clientConfig ?? {}, {
            region: fromConfigs("region"),
            profile: fromConfigs("profile")
          })
        )).send(
          new GetCredentialsForIdentityCommand2({
            CustomRoleArn: parameters.customRoleArn,
            IdentityId: parameters.identityId,
            Logins: parameters.logins ? await resolveLogins(parameters.logins) : void 0
          })
        );
        return {
          identityId: parameters.identityId,
          accessKeyId: AccessKeyId,
          secretAccessKey: SecretKey,
          sessionToken: SessionToken,
          expiration: Expiration
        };
      };
    }
    __name(fromCognitoIdentity, "fromCognitoIdentity");
    __name2(fromCognitoIdentity, "fromCognitoIdentity");
    function throwOnMissingAccessKeyId(logger4) {
      throw new import_property_provider3.CredentialsProviderError("Response from Amazon Cognito contained no access key ID", { logger: logger4 });
    }
    __name(throwOnMissingAccessKeyId, "throwOnMissingAccessKeyId");
    __name2(throwOnMissingAccessKeyId, "throwOnMissingAccessKeyId");
    function throwOnMissingCredentials(logger4) {
      throw new import_property_provider3.CredentialsProviderError("Response from Amazon Cognito contained no credentials", { logger: logger4 });
    }
    __name(throwOnMissingCredentials, "throwOnMissingCredentials");
    __name2(throwOnMissingCredentials, "throwOnMissingCredentials");
    function throwOnMissingSecretKey(logger4) {
      throw new import_property_provider3.CredentialsProviderError("Response from Amazon Cognito contained no secret key", { logger: logger4 });
    }
    __name(throwOnMissingSecretKey, "throwOnMissingSecretKey");
    __name2(throwOnMissingSecretKey, "throwOnMissingSecretKey");
    var STORE_NAME = "IdentityIds";
    var IndexedDbStorage = class {
      static {
        __name(this, "IndexedDbStorage");
      }
      constructor(dbName = "aws:cognito-identity-ids") {
        this.dbName = dbName;
      }
      static {
        __name2(this, "IndexedDbStorage");
      }
      getItem(key) {
        return this.withObjectStore("readonly", (store) => {
          const req = store.get(key);
          return new Promise((resolve13) => {
            req.onerror = () => resolve13(null);
            req.onsuccess = () => resolve13(req.result ? req.result.value : null);
          });
        }).catch(() => null);
      }
      removeItem(key) {
        return this.withObjectStore("readwrite", (store) => {
          const req = store.delete(key);
          return new Promise((resolve13, reject) => {
            req.onerror = () => reject(req.error);
            req.onsuccess = () => resolve13();
          });
        });
      }
      setItem(id, value) {
        return this.withObjectStore("readwrite", (store) => {
          const req = store.put({ id, value });
          return new Promise((resolve13, reject) => {
            req.onerror = () => reject(req.error);
            req.onsuccess = () => resolve13();
          });
        });
      }
      getDb() {
        const openDbRequest = self.indexedDB.open(this.dbName, 1);
        return new Promise((resolve13, reject) => {
          openDbRequest.onsuccess = () => {
            resolve13(openDbRequest.result);
          };
          openDbRequest.onerror = () => {
            reject(openDbRequest.error);
          };
          openDbRequest.onblocked = () => {
            reject(new Error("Unable to access DB"));
          };
          openDbRequest.onupgradeneeded = () => {
            const db = openDbRequest.result;
            db.onerror = () => {
              reject(new Error("Failed to create object store"));
            };
            db.createObjectStore(STORE_NAME, { keyPath: "id" });
          };
        });
      }
      withObjectStore(mode, action) {
        return this.getDb().then((db) => {
          const tx = db.transaction(STORE_NAME, mode);
          tx.oncomplete = () => db.close();
          return new Promise((resolve13, reject) => {
            tx.onerror = () => reject(tx.error);
            resolve13(action(tx.objectStore(STORE_NAME)));
          }).catch((err) => {
            db.close();
            throw err;
          });
        });
      }
    };
    var InMemoryStorage = class {
      static {
        __name(this, "InMemoryStorage");
      }
      constructor(store = {}) {
        this.store = store;
      }
      static {
        __name2(this, "InMemoryStorage");
      }
      getItem(key) {
        if (key in this.store) {
          return this.store[key];
        }
        return null;
      }
      removeItem(key) {
        delete this.store[key];
      }
      setItem(key, value) {
        this.store[key] = value;
      }
    };
    var inMemoryStorage = new InMemoryStorage();
    function localStorage2() {
      if (typeof self === "object" && self.indexedDB) {
        return new IndexedDbStorage();
      }
      if (typeof window === "object" && window.localStorage) {
        return window.localStorage;
      }
      return inMemoryStorage;
    }
    __name(localStorage2, "localStorage");
    __name2(localStorage2, "localStorage");
    function fromCognitoIdentityPool({
      accountId,
      cache: cache3 = localStorage2(),
      client,
      clientConfig,
      customRoleArn,
      identityPoolId,
      logins,
      userIdentifier = !logins || Object.keys(logins).length === 0 ? "ANONYMOUS" : void 0,
      logger: logger4,
      parentClientConfig
    }) {
      logger4?.debug("@aws-sdk/credential-provider-cognito-identity - fromCognitoIdentity");
      const cacheKey = userIdentifier ? `aws:cognito-identity-credentials:${identityPoolId}:${userIdentifier}` : void 0;
      let provider = /* @__PURE__ */ __name2(async (awsIdentityProperties) => {
        const { GetIdCommand: GetIdCommand2, CognitoIdentityClient: CognitoIdentityClient2 } = await Promise.resolve().then(() => (init_loadCognitoIdentity(), loadCognitoIdentity_exports));
        const fromConfigs = /* @__PURE__ */ __name2((property) => clientConfig?.[property] ?? parentClientConfig?.[property] ?? awsIdentityProperties?.callerClientConfig?.[property], "fromConfigs");
        const _client = client ?? new CognitoIdentityClient2(
          Object.assign({}, clientConfig ?? {}, {
            region: fromConfigs("region"),
            profile: fromConfigs("profile")
          })
        );
        let identityId = cacheKey && await cache3.getItem(cacheKey);
        if (!identityId) {
          const { IdentityId = throwOnMissingId(logger4) } = await _client.send(
            new GetIdCommand2({
              AccountId: accountId,
              IdentityPoolId: identityPoolId,
              Logins: logins ? await resolveLogins(logins) : void 0
            })
          );
          identityId = IdentityId;
          if (cacheKey) {
            Promise.resolve(cache3.setItem(cacheKey, identityId)).catch(() => {
            });
          }
        }
        provider = fromCognitoIdentity({
          client: _client,
          customRoleArn,
          logins,
          identityId
        });
        return provider(awsIdentityProperties);
      }, "provider");
      return (awsIdentityProperties) => provider(awsIdentityProperties).catch(async (err) => {
        if (cacheKey) {
          Promise.resolve(cache3.removeItem(cacheKey)).catch(() => {
          });
        }
        throw err;
      });
    }
    __name(fromCognitoIdentityPool, "fromCognitoIdentityPool");
    __name2(fromCognitoIdentityPool, "fromCognitoIdentityPool");
    function throwOnMissingId(logger4) {
      throw new import_property_provider3.CredentialsProviderError("Response from Amazon Cognito contained no identity ID", { logger: logger4 });
    }
    __name(throwOnMissingId, "throwOnMissingId");
    __name2(throwOnMissingId, "throwOnMissingId");
  }
});

// ../../node_modules/@aws-sdk/credential-providers/dist-cjs/fromCognitoIdentity.js
var require_fromCognitoIdentity = __commonJS({
  "../../node_modules/@aws-sdk/credential-providers/dist-cjs/fromCognitoIdentity.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.fromCognitoIdentity = void 0;
    var credential_provider_cognito_identity_1 = require_dist_cjs75();
    var fromCognitoIdentity = /* @__PURE__ */ __name((options) => (0, credential_provider_cognito_identity_1.fromCognitoIdentity)({
      ...options
    }), "fromCognitoIdentity");
    exports2.fromCognitoIdentity = fromCognitoIdentity;
  }
});

// ../../node_modules/@aws-sdk/credential-providers/dist-cjs/fromCognitoIdentityPool.js
var require_fromCognitoIdentityPool = __commonJS({
  "../../node_modules/@aws-sdk/credential-providers/dist-cjs/fromCognitoIdentityPool.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.fromCognitoIdentityPool = void 0;
    var credential_provider_cognito_identity_1 = require_dist_cjs75();
    var fromCognitoIdentityPool = /* @__PURE__ */ __name((options) => (0, credential_provider_cognito_identity_1.fromCognitoIdentityPool)({
      ...options
    }), "fromCognitoIdentityPool");
    exports2.fromCognitoIdentityPool = fromCognitoIdentityPool;
  }
});

// ../../node_modules/@aws-sdk/credential-providers/dist-cjs/fromContainerMetadata.js
var require_fromContainerMetadata = __commonJS({
  "../../node_modules/@aws-sdk/credential-providers/dist-cjs/fromContainerMetadata.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.fromContainerMetadata = void 0;
    var credential_provider_imds_1 = require_dist_cjs39();
    var fromContainerMetadata = /* @__PURE__ */ __name((init) => {
      init?.logger?.debug("@smithy/credential-provider-imds", "fromContainerMetadata");
      return (0, credential_provider_imds_1.fromContainerMetadata)(init);
    }, "fromContainerMetadata");
    exports2.fromContainerMetadata = fromContainerMetadata;
  }
});

// ../../node_modules/@aws-sdk/credential-providers/dist-cjs/fromEnv.js
var require_fromEnv = __commonJS({
  "../../node_modules/@aws-sdk/credential-providers/dist-cjs/fromEnv.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.fromEnv = void 0;
    var credential_provider_env_1 = require_dist_cjs38();
    var fromEnv2 = /* @__PURE__ */ __name((init) => (0, credential_provider_env_1.fromEnv)(init), "fromEnv");
    exports2.fromEnv = fromEnv2;
  }
});

// ../../node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js
var require_dist_cjs76 = __commonJS({
  "../../node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js"(exports2, module2) {
    "use strict";
    var __create2 = Object.create;
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __getProtoOf2 = Object.getPrototypeOf;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toESM2 = /* @__PURE__ */ __name((mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
      // If the importer is in node compatibility mode or this is not an ESM
      // file that has been converted to a CommonJS file using a Babel-
      // compatible transform (i.e. "__esModule" has not been set), then set
      // "default" to the CommonJS "module.exports" for node compatibility.
      isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
      mod
    )), "__toESM");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var index_exports = {};
    __export2(index_exports, {
      fromIni: /* @__PURE__ */ __name(() => fromIni2, "fromIni")
    });
    module2.exports = __toCommonJS2(index_exports);
    var import_shared_ini_file_loader2 = require_dist_cjs32();
    var import_client3 = (init_client(), __toCommonJS(client_exports));
    var import_property_provider3 = require_dist_cjs22();
    var resolveCredentialSource = /* @__PURE__ */ __name2((credentialSource, profileName, logger4) => {
      const sourceProvidersMap = {
        EcsContainer: /* @__PURE__ */ __name2(async (options) => {
          const { fromHttp } = await Promise.resolve().then(() => __toESM2(require_dist_cjs40()));
          const { fromContainerMetadata } = await Promise.resolve().then(() => __toESM2(require_dist_cjs39()));
          logger4?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer");
          return async () => (0, import_property_provider3.chain)(fromHttp(options ?? {}), fromContainerMetadata(options))().then(setNamedProvider);
        }, "EcsContainer"),
        Ec2InstanceMetadata: /* @__PURE__ */ __name2(async (options) => {
          logger4?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");
          const { fromInstanceMetadata } = await Promise.resolve().then(() => __toESM2(require_dist_cjs39()));
          return async () => fromInstanceMetadata(options)().then(setNamedProvider);
        }, "Ec2InstanceMetadata"),
        Environment: /* @__PURE__ */ __name2(async (options) => {
          logger4?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");
          const { fromEnv: fromEnv2 } = await Promise.resolve().then(() => __toESM2(require_dist_cjs38()));
          return async () => fromEnv2(options)().then(setNamedProvider);
        }, "Environment")
      };
      if (credentialSource in sourceProvidersMap) {
        return sourceProvidersMap[credentialSource];
      } else {
        throw new import_property_provider3.CredentialsProviderError(
          `Unsupported credential source in profile ${profileName}. Got ${credentialSource}, expected EcsContainer or Ec2InstanceMetadata or Environment.`,
          { logger: logger4 }
        );
      }
    }, "resolveCredentialSource");
    var setNamedProvider = /* @__PURE__ */ __name2((creds) => (0, import_client3.setCredentialFeature)(creds, "CREDENTIALS_PROFILE_NAMED_PROVIDER", "p"), "setNamedProvider");
    var isAssumeRoleProfile = /* @__PURE__ */ __name2((arg, { profile = "default", logger: logger4 } = {}) => {
      return Boolean(arg) && typeof arg === "object" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1 && ["undefined", "string"].indexOf(typeof arg.external_id) > -1 && ["undefined", "string"].indexOf(typeof arg.mfa_serial) > -1 && (isAssumeRoleWithSourceProfile(arg, { profile, logger: logger4 }) || isCredentialSourceProfile(arg, { profile, logger: logger4 }));
    }, "isAssumeRoleProfile");
    var isAssumeRoleWithSourceProfile = /* @__PURE__ */ __name2((arg, { profile, logger: logger4 }) => {
      const withSourceProfile = typeof arg.source_profile === "string" && typeof arg.credential_source === "undefined";
      if (withSourceProfile) {
        logger4?.debug?.(`    ${profile} isAssumeRoleWithSourceProfile source_profile=${arg.source_profile}`);
      }
      return withSourceProfile;
    }, "isAssumeRoleWithSourceProfile");
    var isCredentialSourceProfile = /* @__PURE__ */ __name2((arg, { profile, logger: logger4 }) => {
      const withProviderProfile = typeof arg.credential_source === "string" && typeof arg.source_profile === "undefined";
      if (withProviderProfile) {
        logger4?.debug?.(`    ${profile} isCredentialSourceProfile credential_source=${arg.credential_source}`);
      }
      return withProviderProfile;
    }, "isCredentialSourceProfile");
    var resolveAssumeRoleCredentials = /* @__PURE__ */ __name2(async (profileName, profiles, options, visitedProfiles = {}) => {
      options.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");
      const profileData = profiles[profileName];
      const { source_profile, region } = profileData;
      if (!options.roleAssumer) {
        const { getDefaultRoleAssumer: getDefaultRoleAssumer3 } = await Promise.resolve().then(() => __toESM2((init_sts(), __toCommonJS(sts_exports))));
        options.roleAssumer = getDefaultRoleAssumer3(
          {
            ...options.clientConfig,
            credentialProviderLogger: options.logger,
            parentClientConfig: {
              ...options?.parentClientConfig,
              region: region ?? options?.parentClientConfig?.region
            }
          },
          options.clientPlugins
        );
      }
      if (source_profile && source_profile in visitedProfiles) {
        throw new import_property_provider3.CredentialsProviderError(
          `Detected a cycle attempting to resolve credentials for profile ${(0, import_shared_ini_file_loader2.getProfileName)(options)}. Profiles visited: ` + Object.keys(visitedProfiles).join(", "),
          { logger: options.logger }
        );
      }
      options.logger?.debug(
        `@aws-sdk/credential-provider-ini - finding credential resolver using ${source_profile ? `source_profile=[${source_profile}]` : `profile=[${profileName}]`}`
      );
      const sourceCredsProvider = source_profile ? resolveProfileData(
        source_profile,
        profiles,
        options,
        {
          ...visitedProfiles,
          [source_profile]: true
        },
        isCredentialSourceWithoutRoleArn(profiles[source_profile] ?? {})
      ) : (await resolveCredentialSource(profileData.credential_source, profileName, options.logger)(options))();
      if (isCredentialSourceWithoutRoleArn(profileData)) {
        return sourceCredsProvider.then((creds) => (0, import_client3.setCredentialFeature)(creds, "CREDENTIALS_PROFILE_SOURCE_PROFILE", "o"));
      } else {
        const params = {
          RoleArn: profileData.role_arn,
          RoleSessionName: profileData.role_session_name || `aws-sdk-js-${Date.now()}`,
          ExternalId: profileData.external_id,
          DurationSeconds: parseInt(profileData.duration_seconds || "3600", 10)
        };
        const { mfa_serial } = profileData;
        if (mfa_serial) {
          if (!options.mfaCodeProvider) {
            throw new import_property_provider3.CredentialsProviderError(
              `Profile ${profileName} requires multi-factor authentication, but no MFA code callback was provided.`,
              { logger: options.logger, tryNextLink: false }
            );
          }
          params.SerialNumber = mfa_serial;
          params.TokenCode = await options.mfaCodeProvider(mfa_serial);
        }
        const sourceCreds = await sourceCredsProvider;
        return options.roleAssumer(sourceCreds, params).then(
          (creds) => (0, import_client3.setCredentialFeature)(creds, "CREDENTIALS_PROFILE_SOURCE_PROFILE", "o")
        );
      }
    }, "resolveAssumeRoleCredentials");
    var isCredentialSourceWithoutRoleArn = /* @__PURE__ */ __name2((section) => {
      return !section.role_arn && !!section.credential_source;
    }, "isCredentialSourceWithoutRoleArn");
    var isProcessProfile = /* @__PURE__ */ __name2((arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string", "isProcessProfile");
    var resolveProcessCredentials = /* @__PURE__ */ __name2(async (options, profile) => Promise.resolve().then(() => __toESM2(require_dist_cjs49())).then(
      ({ fromProcess }) => fromProcess({
        ...options,
        profile
      })().then((creds) => (0, import_client3.setCredentialFeature)(creds, "CREDENTIALS_PROFILE_PROCESS", "v"))
    ), "resolveProcessCredentials");
    var resolveSsoCredentials = /* @__PURE__ */ __name2(async (profile, profileData, options = {}) => {
      const { fromSSO } = await Promise.resolve().then(() => __toESM2(require_dist_cjs48()));
      return fromSSO({
        profile,
        logger: options.logger,
        parentClientConfig: options.parentClientConfig,
        clientConfig: options.clientConfig
      })().then((creds) => {
        if (profileData.sso_session) {
          return (0, import_client3.setCredentialFeature)(creds, "CREDENTIALS_PROFILE_SSO", "r");
        } else {
          return (0, import_client3.setCredentialFeature)(creds, "CREDENTIALS_PROFILE_SSO_LEGACY", "t");
        }
      });
    }, "resolveSsoCredentials");
    var isSsoProfile = /* @__PURE__ */ __name2((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");
    var isStaticCredsProfile = /* @__PURE__ */ __name2((arg) => Boolean(arg) && typeof arg === "object" && typeof arg.aws_access_key_id === "string" && typeof arg.aws_secret_access_key === "string" && ["undefined", "string"].indexOf(typeof arg.aws_session_token) > -1 && ["undefined", "string"].indexOf(typeof arg.aws_account_id) > -1, "isStaticCredsProfile");
    var resolveStaticCredentials = /* @__PURE__ */ __name2(async (profile, options) => {
      options?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");
      const credentials = {
        accessKeyId: profile.aws_access_key_id,
        secretAccessKey: profile.aws_secret_access_key,
        sessionToken: profile.aws_session_token,
        ...profile.aws_credential_scope && { credentialScope: profile.aws_credential_scope },
        ...profile.aws_account_id && { accountId: profile.aws_account_id }
      };
      return (0, import_client3.setCredentialFeature)(credentials, "CREDENTIALS_PROFILE", "n");
    }, "resolveStaticCredentials");
    var isWebIdentityProfile = /* @__PURE__ */ __name2((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");
    var resolveWebIdentityCredentials = /* @__PURE__ */ __name2(async (profile, options) => Promise.resolve().then(() => __toESM2(require_dist_cjs50())).then(
      ({ fromTokenFile: fromTokenFile2 }) => fromTokenFile2({
        webIdentityTokenFile: profile.web_identity_token_file,
        roleArn: profile.role_arn,
        roleSessionName: profile.role_session_name,
        roleAssumerWithWebIdentity: options.roleAssumerWithWebIdentity,
        logger: options.logger,
        parentClientConfig: options.parentClientConfig
      })().then((creds) => (0, import_client3.setCredentialFeature)(creds, "CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN", "q"))
    ), "resolveWebIdentityCredentials");
    var resolveProfileData = /* @__PURE__ */ __name2(async (profileName, profiles, options, visitedProfiles = {}, isAssumeRoleRecursiveCall = false) => {
      const data3 = profiles[profileName];
      if (Object.keys(visitedProfiles).length > 0 && isStaticCredsProfile(data3)) {
        return resolveStaticCredentials(data3, options);
      }
      if (isAssumeRoleRecursiveCall || isAssumeRoleProfile(data3, { profile: profileName, logger: options.logger })) {
        return resolveAssumeRoleCredentials(profileName, profiles, options, visitedProfiles);
      }
      if (isStaticCredsProfile(data3)) {
        return resolveStaticCredentials(data3, options);
      }
      if (isWebIdentityProfile(data3)) {
        return resolveWebIdentityCredentials(data3, options);
      }
      if (isProcessProfile(data3)) {
        return resolveProcessCredentials(options, profileName);
      }
      if (isSsoProfile(data3)) {
        return await resolveSsoCredentials(profileName, data3, options);
      }
      throw new import_property_provider3.CredentialsProviderError(
        `Could not resolve credentials using profile: [${profileName}] in configuration/credentials file(s).`,
        { logger: options.logger }
      );
    }, "resolveProfileData");
    var fromIni2 = /* @__PURE__ */ __name2((_init = {}) => async ({ callerClientConfig } = {}) => {
      const init = {
        ..._init,
        parentClientConfig: {
          ...callerClientConfig,
          ..._init.parentClientConfig
        }
      };
      init.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");
      const profiles = await (0, import_shared_ini_file_loader2.parseKnownFiles)(init);
      return resolveProfileData(
        (0, import_shared_ini_file_loader2.getProfileName)({
          profile: _init.profile ?? callerClientConfig?.profile
        }),
        profiles,
        init
      );
    }, "fromIni");
  }
});

// ../../node_modules/@aws-sdk/credential-providers/dist-cjs/fromIni.js
var require_fromIni = __commonJS({
  "../../node_modules/@aws-sdk/credential-providers/dist-cjs/fromIni.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.fromIni = void 0;
    var credential_provider_ini_1 = require_dist_cjs76();
    var fromIni2 = /* @__PURE__ */ __name((init = {}) => (0, credential_provider_ini_1.fromIni)({
      ...init
    }), "fromIni");
    exports2.fromIni = fromIni2;
  }
});

// ../../node_modules/@aws-sdk/credential-providers/dist-cjs/fromInstanceMetadata.js
var require_fromInstanceMetadata = __commonJS({
  "../../node_modules/@aws-sdk/credential-providers/dist-cjs/fromInstanceMetadata.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.fromInstanceMetadata = void 0;
    var client_1 = (init_client(), __toCommonJS(client_exports));
    var credential_provider_imds_1 = require_dist_cjs39();
    var fromInstanceMetadata = /* @__PURE__ */ __name((init) => {
      init?.logger?.debug("@smithy/credential-provider-imds", "fromInstanceMetadata");
      return async () => (0, credential_provider_imds_1.fromInstanceMetadata)(init)().then((creds) => (0, client_1.setCredentialFeature)(creds, "CREDENTIALS_IMDS", "0"));
    }, "fromInstanceMetadata");
    exports2.fromInstanceMetadata = fromInstanceMetadata;
  }
});

// ../../node_modules/@aws-sdk/credential-providers/dist-cjs/fromNodeProviderChain.js
var require_fromNodeProviderChain = __commonJS({
  "../../node_modules/@aws-sdk/credential-providers/dist-cjs/fromNodeProviderChain.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.fromNodeProviderChain = void 0;
    var credential_provider_node_1 = require_dist_cjs52();
    var fromNodeProviderChain3 = /* @__PURE__ */ __name((init = {}) => (0, credential_provider_node_1.defaultProvider)({
      ...init
    }), "fromNodeProviderChain");
    exports2.fromNodeProviderChain = fromNodeProviderChain3;
  }
});

// ../../node_modules/@aws-sdk/credential-providers/dist-cjs/fromProcess.js
var require_fromProcess = __commonJS({
  "../../node_modules/@aws-sdk/credential-providers/dist-cjs/fromProcess.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.fromProcess = void 0;
    var credential_provider_process_1 = require_dist_cjs49();
    var fromProcess = /* @__PURE__ */ __name((init) => (0, credential_provider_process_1.fromProcess)(init), "fromProcess");
    exports2.fromProcess = fromProcess;
  }
});

// ../../node_modules/@aws-sdk/credential-providers/dist-cjs/fromSSO.js
var require_fromSSO = __commonJS({
  "../../node_modules/@aws-sdk/credential-providers/dist-cjs/fromSSO.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.fromSSO = void 0;
    var credential_provider_sso_1 = require_dist_cjs48();
    var fromSSO = /* @__PURE__ */ __name((init = {}) => {
      return (0, credential_provider_sso_1.fromSSO)({ ...init });
    }, "fromSSO");
    exports2.fromSSO = fromSSO;
  }
});

// ../../node_modules/@aws-sdk/credential-providers/dist-cjs/loadSts.js
var require_loadSts = __commonJS({
  "../../node_modules/@aws-sdk/credential-providers/dist-cjs/loadSts.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.STSClient = exports2.AssumeRoleCommand = void 0;
    var sts_1 = (init_sts(), __toCommonJS(sts_exports));
    Object.defineProperty(exports2, "AssumeRoleCommand", { enumerable: true, get: /* @__PURE__ */ __name(function() {
      return sts_1.AssumeRoleCommand;
    }, "get") });
    Object.defineProperty(exports2, "STSClient", { enumerable: true, get: /* @__PURE__ */ __name(function() {
      return sts_1.STSClient;
    }, "get") });
  }
});

// ../../node_modules/@aws-sdk/credential-providers/dist-cjs/fromTemporaryCredentials.base.js
var require_fromTemporaryCredentials_base = __commonJS({
  "../../node_modules/@aws-sdk/credential-providers/dist-cjs/fromTemporaryCredentials.base.js"(exports2) {
    "use strict";
    var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      var desc = Object.getOwnPropertyDescriptor(m3, k3);
      if (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) {
        desc = { enumerable: true, get: /* @__PURE__ */ __name(function() {
          return m3[k3];
        }, "get") };
      }
      Object.defineProperty(o3, k22, desc);
    }) : (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      o3[k22] = m3[k3];
    }));
    var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? (function(o3, v6) {
      Object.defineProperty(o3, "default", { enumerable: true, value: v6 });
    }) : function(o3, v6) {
      o3["default"] = v6;
    });
    var __importStar2 = exports2 && exports2.__importStar || /* @__PURE__ */ (function() {
      var ownKeys2 = /* @__PURE__ */ __name(function(o3) {
        ownKeys2 = Object.getOwnPropertyNames || function(o4) {
          var ar = [];
          for (var k3 in o4) if (Object.prototype.hasOwnProperty.call(o4, k3)) ar[ar.length] = k3;
          return ar;
        };
        return ownKeys2(o3);
      }, "ownKeys");
      return function(mod) {
        if (mod && mod.__esModule) return mod;
        var result2 = {};
        if (mod != null) {
          for (var k3 = ownKeys2(mod), i3 = 0; i3 < k3.length; i3++) if (k3[i3] !== "default") __createBinding3(result2, mod, k3[i3]);
        }
        __setModuleDefault2(result2, mod);
        return result2;
      };
    })();
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.fromTemporaryCredentials = void 0;
    var core_1 = (init_dist_es(), __toCommonJS(dist_es_exports));
    var property_provider_1 = require_dist_cjs22();
    var ASSUME_ROLE_DEFAULT_REGION2 = "us-east-1";
    var fromTemporaryCredentials3 = /* @__PURE__ */ __name((options, credentialDefaultProvider, regionProvider) => {
      let stsClient;
      return async (awsIdentityProperties = {}) => {
        const { callerClientConfig } = awsIdentityProperties;
        const profile = options.clientConfig?.profile ?? callerClientConfig?.profile;
        const logger4 = options.logger ?? callerClientConfig?.logger;
        logger4?.debug("@aws-sdk/credential-providers - fromTemporaryCredentials (STS)");
        const params = { ...options.params, RoleSessionName: options.params.RoleSessionName ?? "aws-sdk-js-" + Date.now() };
        if (params?.SerialNumber) {
          if (!options.mfaCodeProvider) {
            throw new property_provider_1.CredentialsProviderError(`Temporary credential requires multi-factor authentication, but no MFA code callback was provided.`, {
              tryNextLink: false,
              logger: logger4
            });
          }
          params.TokenCode = await options.mfaCodeProvider(params?.SerialNumber);
        }
        const { AssumeRoleCommand: AssumeRoleCommand2, STSClient: STSClient5 } = await Promise.resolve().then(() => __importStar2(require_loadSts()));
        if (!stsClient) {
          const defaultCredentialsOrError = typeof credentialDefaultProvider === "function" ? credentialDefaultProvider() : void 0;
          const credentialSources = [
            options.masterCredentials,
            options.clientConfig?.credentials,
            void callerClientConfig?.credentials,
            callerClientConfig?.credentialDefaultProvider?.(),
            defaultCredentialsOrError
          ];
          let credentialSource = "STS client default credentials";
          if (credentialSources[0]) {
            credentialSource = "options.masterCredentials";
          } else if (credentialSources[1]) {
            credentialSource = "options.clientConfig.credentials";
          } else if (credentialSources[2]) {
            credentialSource = "caller client's credentials";
            throw new Error("fromTemporaryCredentials recursion in callerClientConfig.credentials");
          } else if (credentialSources[3]) {
            credentialSource = "caller client's credentialDefaultProvider";
          } else if (credentialSources[4]) {
            credentialSource = "AWS SDK default credentials";
          }
          const regionSources = [
            options.clientConfig?.region,
            callerClientConfig?.region,
            await regionProvider?.({
              profile
            }),
            ASSUME_ROLE_DEFAULT_REGION2
          ];
          let regionSource = "default partition's default region";
          if (regionSources[0]) {
            regionSource = "options.clientConfig.region";
          } else if (regionSources[1]) {
            regionSource = "caller client's region";
          } else if (regionSources[2]) {
            regionSource = "file or env region";
          }
          const requestHandlerSources = [
            filterRequestHandler(options.clientConfig?.requestHandler),
            filterRequestHandler(callerClientConfig?.requestHandler)
          ];
          let requestHandlerSource = "STS default requestHandler";
          if (requestHandlerSources[0]) {
            requestHandlerSource = "options.clientConfig.requestHandler";
          } else if (requestHandlerSources[1]) {
            requestHandlerSource = "caller client's requestHandler";
          }
          logger4?.debug?.(`@aws-sdk/credential-providers - fromTemporaryCredentials STS client init with ${regionSource}=${await (0, core_1.normalizeProvider)(coalesce(regionSources))()}, ${credentialSource}, ${requestHandlerSource}.`);
          stsClient = new STSClient5({
            ...options.clientConfig,
            credentials: coalesce(credentialSources),
            logger: logger4,
            profile,
            region: coalesce(regionSources),
            requestHandler: coalesce(requestHandlerSources)
          });
        }
        if (options.clientPlugins) {
          for (const plugin of options.clientPlugins) {
            stsClient.middlewareStack.use(plugin);
          }
        }
        const { Credentials } = await stsClient.send(new AssumeRoleCommand2(params));
        if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) {
          throw new property_provider_1.CredentialsProviderError(`Invalid response from STS.assumeRole call with role ${params.RoleArn}`, {
            logger: logger4
          });
        }
        return {
          accessKeyId: Credentials.AccessKeyId,
          secretAccessKey: Credentials.SecretAccessKey,
          sessionToken: Credentials.SessionToken,
          expiration: Credentials.Expiration,
          credentialScope: Credentials.CredentialScope
        };
      };
    }, "fromTemporaryCredentials");
    exports2.fromTemporaryCredentials = fromTemporaryCredentials3;
    var filterRequestHandler = /* @__PURE__ */ __name((requestHandler) => {
      return requestHandler?.metadata?.handlerProtocol === "h2" ? void 0 : requestHandler;
    }, "filterRequestHandler");
    var coalesce = /* @__PURE__ */ __name((args) => {
      for (const item of args) {
        if (item !== void 0) {
          return item;
        }
      }
    }, "coalesce");
  }
});

// ../../node_modules/@aws-sdk/credential-providers/dist-cjs/fromTemporaryCredentials.js
var require_fromTemporaryCredentials = __commonJS({
  "../../node_modules/@aws-sdk/credential-providers/dist-cjs/fromTemporaryCredentials.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.fromTemporaryCredentials = void 0;
    var config_resolver_1 = require_dist_cjs30();
    var node_config_provider_1 = require_dist_cjs33();
    var fromNodeProviderChain_1 = require_fromNodeProviderChain();
    var fromTemporaryCredentials_base_1 = require_fromTemporaryCredentials_base();
    var fromTemporaryCredentials3 = /* @__PURE__ */ __name((options) => {
      return (0, fromTemporaryCredentials_base_1.fromTemporaryCredentials)(options, fromNodeProviderChain_1.fromNodeProviderChain, async ({ profile = process.env.AWS_PROFILE }) => (0, node_config_provider_1.loadConfig)({
        environmentVariableSelector: /* @__PURE__ */ __name((env2) => env2.AWS_REGION, "environmentVariableSelector"),
        configFileSelector: /* @__PURE__ */ __name((profileData) => {
          return profileData.region;
        }, "configFileSelector"),
        default: /* @__PURE__ */ __name(() => void 0, "default")
      }, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, profile })());
    }, "fromTemporaryCredentials");
    exports2.fromTemporaryCredentials = fromTemporaryCredentials3;
  }
});

// ../../node_modules/@aws-sdk/credential-providers/dist-cjs/fromTokenFile.js
var require_fromTokenFile2 = __commonJS({
  "../../node_modules/@aws-sdk/credential-providers/dist-cjs/fromTokenFile.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.fromTokenFile = void 0;
    var credential_provider_web_identity_1 = require_dist_cjs50();
    var fromTokenFile2 = /* @__PURE__ */ __name((init = {}) => (0, credential_provider_web_identity_1.fromTokenFile)({
      ...init
    }), "fromTokenFile");
    exports2.fromTokenFile = fromTokenFile2;
  }
});

// ../../node_modules/@aws-sdk/credential-providers/dist-cjs/fromWebToken.js
var require_fromWebToken2 = __commonJS({
  "../../node_modules/@aws-sdk/credential-providers/dist-cjs/fromWebToken.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.fromWebToken = void 0;
    var credential_provider_web_identity_1 = require_dist_cjs50();
    var fromWebToken2 = /* @__PURE__ */ __name((init) => (0, credential_provider_web_identity_1.fromWebToken)({
      ...init
    }), "fromWebToken");
    exports2.fromWebToken = fromWebToken2;
  }
});

// ../../node_modules/@aws-sdk/credential-providers/dist-cjs/index.js
var require_dist_cjs77 = __commonJS({
  "../../node_modules/@aws-sdk/credential-providers/dist-cjs/index.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.fromHttp = void 0;
    var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
    tslib_1.__exportStar(require_createCredentialChain(), exports2);
    tslib_1.__exportStar(require_fromCognitoIdentity(), exports2);
    tslib_1.__exportStar(require_fromCognitoIdentityPool(), exports2);
    tslib_1.__exportStar(require_fromContainerMetadata(), exports2);
    var credential_provider_http_1 = require_dist_cjs40();
    Object.defineProperty(exports2, "fromHttp", { enumerable: true, get: /* @__PURE__ */ __name(function() {
      return credential_provider_http_1.fromHttp;
    }, "get") });
    tslib_1.__exportStar(require_fromEnv(), exports2);
    tslib_1.__exportStar(require_fromIni(), exports2);
    tslib_1.__exportStar(require_fromInstanceMetadata(), exports2);
    tslib_1.__exportStar(require_fromNodeProviderChain(), exports2);
    tslib_1.__exportStar(require_fromProcess(), exports2);
    tslib_1.__exportStar(require_fromSSO(), exports2);
    tslib_1.__exportStar(require_fromTemporaryCredentials(), exports2);
    tslib_1.__exportStar(require_fromTokenFile2(), exports2);
    tslib_1.__exportStar(require_fromWebToken2(), exports2);
  }
});

// ../../node_modules/@smithy/abort-controller/dist-cjs/index.js
var require_dist_cjs78 = __commonJS({
  "../../node_modules/@smithy/abort-controller/dist-cjs/index.js"(exports2, module2) {
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var src_exports = {};
    __export2(src_exports, {
      AbortController: /* @__PURE__ */ __name(() => AbortController2, "AbortController"),
      AbortHandler: /* @__PURE__ */ __name(() => import_types7.AbortHandler, "AbortHandler"),
      AbortSignal: /* @__PURE__ */ __name(() => AbortSignal2, "AbortSignal"),
      IAbortController: /* @__PURE__ */ __name(() => import_types7.AbortController, "IAbortController"),
      IAbortSignal: /* @__PURE__ */ __name(() => import_types7.AbortSignal, "IAbortSignal")
    });
    module2.exports = __toCommonJS2(src_exports);
    var import_types7 = require_dist_cjs();
    var AbortSignal2 = class {
      static {
        __name(this, "AbortSignal");
      }
      constructor() {
        this.onabort = null;
        this._aborted = false;
        Object.defineProperty(this, "_aborted", {
          value: false,
          writable: true
        });
      }
      static {
        __name2(this, "AbortSignal");
      }
      /**
       * Whether the associated operation has already been cancelled.
       */
      get aborted() {
        return this._aborted;
      }
      /**
       * @internal
       */
      abort() {
        this._aborted = true;
        if (this.onabort) {
          this.onabort(this);
          this.onabort = null;
        }
      }
    };
    var AbortController2 = class {
      static {
        __name(this, "AbortController");
      }
      constructor() {
        this.signal = new AbortSignal2();
      }
      static {
        __name2(this, "AbortController");
      }
      abort() {
        this.signal.abort();
      }
    };
  }
});

// ../../node_modules/@aws-sdk/lib-storage/dist-cjs/runtimeConfig.shared.js
var require_runtimeConfig_shared7 = __commonJS({
  "../../node_modules/@aws-sdk/lib-storage/dist-cjs/runtimeConfig.shared.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.ClientSharedValues = void 0;
    exports2.ClientSharedValues = {
      lstatSync: /* @__PURE__ */ __name(() => {
      }, "lstatSync")
    };
  }
});

// ../../node_modules/@aws-sdk/lib-storage/dist-cjs/runtimeConfig.js
var require_runtimeConfig7 = __commonJS({
  "../../node_modules/@aws-sdk/lib-storage/dist-cjs/runtimeConfig.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.ClientDefaultValues = void 0;
    var fs_1 = require("fs");
    var runtimeConfig_shared_1 = require_runtimeConfig_shared7();
    exports2.ClientDefaultValues = {
      ...runtimeConfig_shared_1.ClientSharedValues,
      runtime: "node",
      lstatSync: fs_1.lstatSync
    };
  }
});

// ../../node_modules/@aws-sdk/lib-storage/dist-cjs/index.js
var require_dist_cjs79 = __commonJS({
  "../../node_modules/@aws-sdk/lib-storage/dist-cjs/index.js"(exports2, module2) {
    "use strict";
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var index_exports = {};
    __export2(index_exports, {
      Upload: /* @__PURE__ */ __name(() => Upload3, "Upload")
    });
    module2.exports = __toCommonJS2(index_exports);
    var import_client_s34 = require_dist_cjs71();
    var import_abort_controller = require_dist_cjs78();
    var import_middleware_endpoint8 = require_dist_cjs34();
    var import_smithy_client28 = require_dist_cjs26();
    var import_events = require("events");
    var import_buffer = require("buffer");
    var import_runtimeConfig5 = require_runtimeConfig7();
    var byteLength = /* @__PURE__ */ __name2((input) => {
      if (input === null || input === void 0) return 0;
      if (typeof input === "string") {
        return import_buffer.Buffer.byteLength(input);
      }
      if (typeof input.byteLength === "number") {
        return input.byteLength;
      } else if (typeof input.length === "number") {
        return input.length;
      } else if (typeof input.size === "number") {
        return input.size;
      } else if (typeof input.path === "string") {
        try {
          return import_runtimeConfig5.ClientDefaultValues.lstatSync(input.path).size;
        } catch (error5) {
          return void 0;
        }
      }
      return void 0;
    }, "byteLength");
    var import_stream2 = require("stream");
    async function* getChunkStream(data3, partSize, getNextData) {
      let partNumber = 1;
      const currentBuffer = { chunks: [], length: 0 };
      for await (const datum of getNextData(data3)) {
        currentBuffer.chunks.push(datum);
        currentBuffer.length += datum.byteLength;
        while (currentBuffer.length > partSize) {
          const dataChunk = currentBuffer.chunks.length > 1 ? import_buffer.Buffer.concat(currentBuffer.chunks) : currentBuffer.chunks[0];
          yield {
            partNumber,
            data: dataChunk.subarray(0, partSize)
          };
          currentBuffer.chunks = [dataChunk.subarray(partSize)];
          currentBuffer.length = currentBuffer.chunks[0].byteLength;
          partNumber += 1;
        }
      }
      yield {
        partNumber,
        data: currentBuffer.chunks.length !== 1 ? import_buffer.Buffer.concat(currentBuffer.chunks) : currentBuffer.chunks[0],
        lastPart: true
      };
    }
    __name(getChunkStream, "getChunkStream");
    __name2(getChunkStream, "getChunkStream");
    async function* getChunkUint8Array(data3, partSize) {
      let partNumber = 1;
      let startByte = 0;
      let endByte = partSize;
      while (endByte < data3.byteLength) {
        yield {
          partNumber,
          data: data3.subarray(startByte, endByte)
        };
        partNumber += 1;
        startByte = endByte;
        endByte = startByte + partSize;
      }
      yield {
        partNumber,
        data: data3.subarray(startByte),
        lastPart: true
      };
    }
    __name(getChunkUint8Array, "getChunkUint8Array");
    __name2(getChunkUint8Array, "getChunkUint8Array");
    async function* getDataReadable(data3) {
      for await (const chunk of data3) {
        if (import_buffer.Buffer.isBuffer(chunk) || chunk instanceof Uint8Array) {
          yield chunk;
        } else {
          yield import_buffer.Buffer.from(chunk);
        }
      }
    }
    __name(getDataReadable, "getDataReadable");
    __name2(getDataReadable, "getDataReadable");
    async function* getDataReadableStream(data3) {
      const reader = data3.getReader();
      try {
        while (true) {
          const { done, value } = await reader.read();
          if (done) {
            return;
          }
          if (import_buffer.Buffer.isBuffer(value) || value instanceof Uint8Array) {
            yield value;
          } else {
            yield import_buffer.Buffer.from(value);
          }
        }
      } catch (e3) {
        throw e3;
      } finally {
        reader.releaseLock();
      }
    }
    __name(getDataReadableStream, "getDataReadableStream");
    __name2(getDataReadableStream, "getDataReadableStream");
    var getChunk = /* @__PURE__ */ __name2((data3, partSize) => {
      if (data3 instanceof Uint8Array) {
        return getChunkUint8Array(data3, partSize);
      }
      if (data3 instanceof import_stream2.Readable) {
        return getChunkStream(data3, partSize, getDataReadable);
      }
      if (data3 instanceof String || typeof data3 === "string") {
        return getChunkUint8Array(import_buffer.Buffer.from(data3), partSize);
      }
      if (typeof data3.stream === "function") {
        return getChunkStream(data3.stream(), partSize, getDataReadableStream);
      }
      if (data3 instanceof ReadableStream) {
        return getChunkStream(data3, partSize, getDataReadableStream);
      }
      throw new Error(
        "Body Data is unsupported format, expected data to be one of: string | Uint8Array | Buffer | Readable | ReadableStream | Blob;."
      );
    }, "getChunk");
    var Upload3 = class _Upload extends import_events.EventEmitter {
      static {
        __name(this, "_Upload");
      }
      static {
        __name2(this, "Upload");
      }
      /**
       * @internal
       * modified in testing only.
       */
      static MIN_PART_SIZE = 1024 * 1024 * 5;
      /**
       * S3 multipart upload does not allow more than 10,000 parts.
       */
      MAX_PARTS = 1e4;
      // Defaults.
      queueSize = 4;
      partSize = _Upload.MIN_PART_SIZE;
      leavePartsOnError = false;
      tags = [];
      client;
      params;
      // used for reporting progress.
      totalBytes;
      bytesUploadedSoFar;
      // used in the upload.
      abortController;
      concurrentUploaders = [];
      createMultiPartPromise;
      abortMultipartUploadCommand = null;
      uploadedParts = [];
      uploadEnqueuedPartsCount = 0;
      /**
       * Last UploadId if the upload was done with MultipartUpload and not PutObject.
       */
      uploadId;
      uploadEvent;
      isMultiPart = true;
      singleUploadResult;
      sent = false;
      constructor(options) {
        super();
        this.queueSize = options.queueSize || this.queueSize;
        this.partSize = options.partSize || this.partSize;
        this.leavePartsOnError = options.leavePartsOnError || this.leavePartsOnError;
        this.tags = options.tags || this.tags;
        this.client = options.client;
        this.params = options.params;
        this.__validateInput();
        this.totalBytes = byteLength(this.params.Body);
        this.bytesUploadedSoFar = 0;
        this.abortController = options.abortController ?? new import_abort_controller.AbortController();
      }
      async abort() {
        this.abortController.abort();
      }
      async done() {
        if (this.sent) {
          throw new Error(
            "@aws-sdk/lib-storage: this instance of Upload has already executed .done(). Create a new instance."
          );
        }
        this.sent = true;
        return await Promise.race([this.__doMultipartUpload(), this.__abortTimeout(this.abortController.signal)]);
      }
      on(event, listener) {
        this.uploadEvent = event;
        return super.on(event, listener);
      }
      async __uploadUsingPut(dataPart) {
        this.isMultiPart = false;
        const params = { ...this.params, Body: dataPart.data };
        const clientConfig = this.client.config;
        const requestHandler = clientConfig.requestHandler;
        const eventEmitter = requestHandler instanceof import_events.EventEmitter ? requestHandler : null;
        const uploadEventListener = /* @__PURE__ */ __name2((event) => {
          this.bytesUploadedSoFar = event.loaded;
          this.totalBytes = event.total;
          this.__notifyProgress({
            loaded: this.bytesUploadedSoFar,
            total: this.totalBytes,
            part: dataPart.partNumber,
            Key: this.params.Key,
            Bucket: this.params.Bucket
          });
        }, "uploadEventListener");
        if (eventEmitter !== null) {
          eventEmitter.on("xhr.upload.progress", uploadEventListener);
        }
        const resolved = await Promise.all([this.client.send(new import_client_s34.PutObjectCommand(params)), clientConfig?.endpoint?.()]);
        const putResult = resolved[0];
        let endpoint = resolved[1];
        if (!endpoint) {
          endpoint = (0, import_middleware_endpoint8.toEndpointV1)(
            await (0, import_middleware_endpoint8.getEndpointFromInstructions)(params, import_client_s34.PutObjectCommand, {
              ...clientConfig
            })
          );
        }
        if (!endpoint) {
          throw new Error('Could not resolve endpoint from S3 "client.config.endpoint()" nor EndpointsV2.');
        }
        if (eventEmitter !== null) {
          eventEmitter.off("xhr.upload.progress", uploadEventListener);
        }
        const locationKey = this.params.Key.split("/").map((segment) => (0, import_smithy_client28.extendedEncodeURIComponent)(segment)).join("/");
        const locationBucket = (0, import_smithy_client28.extendedEncodeURIComponent)(this.params.Bucket);
        const Location = (() => {
          const endpointHostnameIncludesBucket = endpoint.hostname.startsWith(`${locationBucket}.`);
          const forcePathStyle = this.client.config.forcePathStyle;
          const optionalPort = endpoint.port ? `:${endpoint.port}` : ``;
          if (forcePathStyle) {
            return `${endpoint.protocol}//${endpoint.hostname}${optionalPort}/${locationBucket}/${locationKey}`;
          }
          if (endpointHostnameIncludesBucket) {
            return `${endpoint.protocol}//${endpoint.hostname}${optionalPort}/${locationKey}`;
          }
          return `${endpoint.protocol}//${locationBucket}.${endpoint.hostname}${optionalPort}/${locationKey}`;
        })();
        this.singleUploadResult = {
          ...putResult,
          Bucket: this.params.Bucket,
          Key: this.params.Key,
          Location
        };
        const totalSize = byteLength(dataPart.data);
        this.__notifyProgress({
          loaded: totalSize,
          total: totalSize,
          part: 1,
          Key: this.params.Key,
          Bucket: this.params.Bucket
        });
      }
      async __createMultipartUpload() {
        const requestChecksumCalculation = await this.client.config.requestChecksumCalculation();
        if (!this.createMultiPartPromise) {
          const createCommandParams = { ...this.params, Body: void 0 };
          if (requestChecksumCalculation === "WHEN_SUPPORTED") {
            createCommandParams.ChecksumAlgorithm = this.params.ChecksumAlgorithm || import_client_s34.ChecksumAlgorithm.CRC32;
          }
          this.createMultiPartPromise = this.client.send(new import_client_s34.CreateMultipartUploadCommand(createCommandParams)).then((createMpuResponse) => {
            this.abortMultipartUploadCommand = new import_client_s34.AbortMultipartUploadCommand({
              Bucket: this.params.Bucket,
              Key: this.params.Key,
              UploadId: createMpuResponse.UploadId
            });
            return createMpuResponse;
          });
        }
        return this.createMultiPartPromise;
      }
      async __doConcurrentUpload(dataFeeder) {
        for await (const dataPart of dataFeeder) {
          if (this.uploadEnqueuedPartsCount > this.MAX_PARTS) {
            throw new Error(
              `Exceeded ${this.MAX_PARTS} parts in multipart upload to Bucket: ${this.params.Bucket} Key: ${this.params.Key}.`
            );
          }
          if (this.abortController.signal.aborted) {
            return;
          }
          if (dataPart.partNumber === 1 && dataPart.lastPart) {
            return await this.__uploadUsingPut(dataPart);
          }
          if (!this.uploadId) {
            const { UploadId } = await this.__createMultipartUpload();
            this.uploadId = UploadId;
            if (this.abortController.signal.aborted) {
              return;
            }
          }
          const partSize = byteLength(dataPart.data) || 0;
          const requestHandler = this.client.config.requestHandler;
          const eventEmitter = requestHandler instanceof import_events.EventEmitter ? requestHandler : null;
          let lastSeenBytes = 0;
          const uploadEventListener = /* @__PURE__ */ __name2((event, request2) => {
            const requestPartSize = Number(request2.query["partNumber"]) || -1;
            if (requestPartSize !== dataPart.partNumber) {
              return;
            }
            if (event.total && partSize) {
              this.bytesUploadedSoFar += event.loaded - lastSeenBytes;
              lastSeenBytes = event.loaded;
            }
            this.__notifyProgress({
              loaded: this.bytesUploadedSoFar,
              total: this.totalBytes,
              part: dataPart.partNumber,
              Key: this.params.Key,
              Bucket: this.params.Bucket
            });
          }, "uploadEventListener");
          if (eventEmitter !== null) {
            eventEmitter.on("xhr.upload.progress", uploadEventListener);
          }
          this.uploadEnqueuedPartsCount += 1;
          const partResult = await this.client.send(
            new import_client_s34.UploadPartCommand({
              ...this.params,
              // dataPart.data is chunked into a non-streaming buffer
              // so the ContentLength from the input should not be used for MPU.
              ContentLength: void 0,
              UploadId: this.uploadId,
              Body: dataPart.data,
              PartNumber: dataPart.partNumber
            })
          );
          if (eventEmitter !== null) {
            eventEmitter.off("xhr.upload.progress", uploadEventListener);
          }
          if (this.abortController.signal.aborted) {
            return;
          }
          if (!partResult.ETag) {
            throw new Error(
              `Part ${dataPart.partNumber} is missing ETag in UploadPart response. Missing Bucket CORS configuration for ETag header?`
            );
          }
          this.uploadedParts.push({
            PartNumber: dataPart.partNumber,
            ETag: partResult.ETag,
            ...partResult.ChecksumCRC32 && { ChecksumCRC32: partResult.ChecksumCRC32 },
            ...partResult.ChecksumCRC32C && { ChecksumCRC32C: partResult.ChecksumCRC32C },
            ...partResult.ChecksumSHA1 && { ChecksumSHA1: partResult.ChecksumSHA1 },
            ...partResult.ChecksumSHA256 && { ChecksumSHA256: partResult.ChecksumSHA256 }
          });
          if (eventEmitter === null) {
            this.bytesUploadedSoFar += partSize;
          }
          this.__notifyProgress({
            loaded: this.bytesUploadedSoFar,
            total: this.totalBytes,
            part: dataPart.partNumber,
            Key: this.params.Key,
            Bucket: this.params.Bucket
          });
        }
      }
      async __doMultipartUpload() {
        const dataFeeder = getChunk(this.params.Body, this.partSize);
        const concurrentUploaderFailures = [];
        for (let index = 0; index < this.queueSize; index++) {
          const currentUpload = this.__doConcurrentUpload(dataFeeder).catch((err) => {
            concurrentUploaderFailures.push(err);
          });
          this.concurrentUploaders.push(currentUpload);
        }
        await Promise.all(this.concurrentUploaders);
        if (concurrentUploaderFailures.length >= 1) {
          await this.markUploadAsAborted();
          throw concurrentUploaderFailures[0];
        }
        if (this.abortController.signal.aborted) {
          await this.markUploadAsAborted();
          throw Object.assign(new Error("Upload aborted."), { name: "AbortError" });
        }
        let result2;
        if (this.isMultiPart) {
          this.uploadedParts.sort((a3, b3) => a3.PartNumber - b3.PartNumber);
          const uploadCompleteParams = {
            ...this.params,
            Body: void 0,
            UploadId: this.uploadId,
            MultipartUpload: {
              Parts: this.uploadedParts
            }
          };
          result2 = await this.client.send(new import_client_s34.CompleteMultipartUploadCommand(uploadCompleteParams));
          if (typeof result2?.Location === "string" && result2.Location.includes("%2F")) {
            result2.Location = result2.Location.replace(/%2F/g, "/");
          }
        } else {
          result2 = this.singleUploadResult;
        }
        this.abortMultipartUploadCommand = null;
        if (this.tags.length) {
          await this.client.send(
            new import_client_s34.PutObjectTaggingCommand({
              ...this.params,
              Tagging: {
                TagSet: this.tags
              }
            })
          );
        }
        return result2;
      }
      /**
       * Abort the last multipart upload in progress
       * if we know the upload id, the user did not specify to leave the parts, and
       * we have a prepared AbortMultipartUpload command.
       */
      async markUploadAsAborted() {
        if (this.uploadId && !this.leavePartsOnError && null !== this.abortMultipartUploadCommand) {
          await this.client.send(this.abortMultipartUploadCommand);
          this.abortMultipartUploadCommand = null;
        }
      }
      __notifyProgress(progress) {
        if (this.uploadEvent) {
          this.emit(this.uploadEvent, progress);
        }
      }
      async __abortTimeout(abortSignal) {
        return new Promise((resolve13, reject) => {
          abortSignal.onabort = () => {
            const abortError = new Error("Upload aborted.");
            abortError.name = "AbortError";
            reject(abortError);
          };
        });
      }
      __validateInput() {
        if (!this.params) {
          throw new Error(`InputError: Upload requires params to be passed to upload.`);
        }
        if (!this.client) {
          throw new Error(`InputError: Upload requires a AWS client to do uploads with.`);
        }
        if (this.partSize < _Upload.MIN_PART_SIZE) {
          throw new Error(
            `EntityTooSmall: Your proposed upload partsize [${this.partSize}] is smaller than the minimum allowed size [${_Upload.MIN_PART_SIZE}] (5MB)`
          );
        }
        if (this.queueSize < 1) {
          throw new Error(`Queue size: Must have at least one uploading queue.`);
        }
      }
    };
  }
});

// ../@aws-cdk/cdk-assets-lib/lib/aws.ts
var aws_exports = {};
__export(aws_exports, {
  DefaultAwsClient: () => DefaultAwsClient
});
function safeUsername() {
  try {
    return os3.userInfo().username.replace(/[^\w+=,.@-]/g, "@");
  } catch {
    return "noname";
  }
}
var os3, import_client_ecr, import_client_s3, import_client_secrets_manager, import_client_sts, import_credential_providers, import_lib_storage, import_config_resolver5, import_node_config_provider3, USER_AGENT, DefaultAwsClient;
var init_aws = __esm({
  "../@aws-cdk/cdk-assets-lib/lib/aws.ts"() {
    "use strict";
    os3 = __toESM(require("os"));
    import_client_ecr = __toESM(require_dist_cjs54());
    import_client_s3 = __toESM(require_dist_cjs71());
    import_client_secrets_manager = __toESM(require_dist_cjs72());
    import_client_sts = __toESM(require_dist_cjs73());
    import_credential_providers = __toESM(require_dist_cjs77());
    import_lib_storage = __toESM(require_dist_cjs79());
    import_config_resolver5 = __toESM(require_dist_cjs30());
    import_node_config_provider3 = __toESM(require_dist_cjs33());
    USER_AGENT = "cdk-assets";
    DefaultAwsClient = class {
      constructor(profile) {
        this.profile = profile;
        const clientConfig = {
          customUserAgent: USER_AGENT
        };
        this.mainCredentials = (0, import_credential_providers.fromNodeProviderChain)({
          profile: this.profile,
          clientConfig
        });
        this.config = {
          clientConfig,
          credentials: this.mainCredentials
        };
      }
      static {
        __name(this, "DefaultAwsClient");
      }
      async s3Client(options) {
        const client = new import_client_s3.S3Client(await this.awsOptions(options));
        return {
          getBucketEncryption: /* @__PURE__ */ __name((input) => client.send(new import_client_s3.GetBucketEncryptionCommand(input)), "getBucketEncryption"),
          getBucketLocation: /* @__PURE__ */ __name((input) => client.send(new import_client_s3.GetBucketLocationCommand(input)), "getBucketLocation"),
          listObjectsV2: /* @__PURE__ */ __name((input) => client.send(new import_client_s3.ListObjectsV2Command(input)), "listObjectsV2"),
          upload: /* @__PURE__ */ __name((input) => {
            const upload = new import_lib_storage.Upload({
              client,
              params: input
            });
            return upload.done();
          }, "upload")
        };
      }
      async ecrClient(options) {
        const client = new import_client_ecr.ECRClient(await this.awsOptions(options));
        return {
          describeImages: /* @__PURE__ */ __name((input) => client.send(new import_client_ecr.DescribeImagesCommand(input)), "describeImages"),
          describeRepositories: /* @__PURE__ */ __name((input) => client.send(new import_client_ecr.DescribeRepositoriesCommand(input)), "describeRepositories"),
          getAuthorizationToken: /* @__PURE__ */ __name((input) => client.send(new import_client_ecr.GetAuthorizationTokenCommand(input ?? {})), "getAuthorizationToken")
        };
      }
      async secretsManagerClient(options) {
        const client = new import_client_secrets_manager.SecretsManagerClient(await this.awsOptions(options));
        return {
          getSecretValue: /* @__PURE__ */ __name((input) => client.send(new import_client_secrets_manager.GetSecretValueCommand(input)), "getSecretValue")
        };
      }
      async discoverPartition() {
        return (await this.discoverCurrentAccount()).partition;
      }
      async discoverDefaultRegion() {
        return (0, import_node_config_provider3.loadConfig)(import_config_resolver5.NODE_REGION_CONFIG_OPTIONS, import_config_resolver5.NODE_REGION_CONFIG_FILE_OPTIONS)() || "us-east-1";
      }
      async discoverCurrentAccount() {
        if (this.account === void 0) {
          this.account = await this.getAccount();
        }
        return this.account;
      }
      async discoverTargetAccount(options) {
        return this.getAccount(await this.awsOptions(options));
      }
      async getAccount(options) {
        this.config.clientConfig = options ?? this.config.clientConfig;
        const stsClient = new import_client_sts.STSClient(await this.awsOptions(options));
        const command2 = new import_client_sts.GetCallerIdentityCommand();
        const response = await stsClient.send(command2);
        if (!response.Account || !response.Arn) {
          throw new Error(`Unrecognized response from STS: '${JSON.stringify(response)}'`);
        }
        return {
          accountId: response.Account,
          partition: response.Arn.split(":")[1]
        };
      }
      async awsOptions(options) {
        const config = this.config;
        config.region = options?.region;
        if (options) {
          config.region = options.region;
          if (options.assumeRoleArn) {
            config.credentials = (0, import_credential_providers.fromTemporaryCredentials)({
              // dont forget the credentials chain.
              masterCredentials: this.mainCredentials,
              params: {
                RoleArn: options.assumeRoleArn,
                ExternalId: options.assumeRoleExternalId,
                RoleSessionName: `${USER_AGENT}-${safeUsername()}`,
                TransitiveTagKeys: options.assumeRoleAdditionalOptions?.Tags ? options.assumeRoleAdditionalOptions.Tags.map((t3) => t3.Key) : void 0,
                ...options.assumeRoleAdditionalOptions
              },
              clientConfig: this.config.clientConfig
            });
          }
        }
        return config;
      }
    };
    __name(safeUsername, "safeUsername");
  }
});

// ../@aws-cdk/cdk-assets-lib/lib/index.js
var require_lib6 = __commonJS({
  "../@aws-cdk/cdk-assets-lib/lib/index.js"(exports2) {
    "use strict";
    var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      var desc = Object.getOwnPropertyDescriptor(m3, k3);
      if (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) {
        desc = { enumerable: true, get: /* @__PURE__ */ __name(function() {
          return m3[k3];
        }, "get") };
      }
      Object.defineProperty(o3, k22, desc);
    }) : (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      o3[k22] = m3[k3];
    }));
    var __exportStar3 = exports2 && exports2.__exportStar || function(m3, exports3) {
      for (var p3 in m3) if (p3 !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p3)) __createBinding3(exports3, m3, p3);
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    __exportStar3((init_publishing(), __toCommonJS(publishing_exports)), exports2);
    __exportStar3((init_asset_manifest(), __toCommonJS(asset_manifest_exports)), exports2);
    __exportStar3((init_aws(), __toCommonJS(aws_exports)), exports2);
    __exportStar3((init_progress(), __toCommonJS(progress_exports)), exports2);
  }
});

// ../../node_modules/color-name/index.js
var require_color_name = __commonJS({
  "../../node_modules/color-name/index.js"(exports2, module2) {
    "use strict";
    module2.exports = {
      "aliceblue": [240, 248, 255],
      "antiquewhite": [250, 235, 215],
      "aqua": [0, 255, 255],
      "aquamarine": [127, 255, 212],
      "azure": [240, 255, 255],
      "beige": [245, 245, 220],
      "bisque": [255, 228, 196],
      "black": [0, 0, 0],
      "blanchedalmond": [255, 235, 205],
      "blue": [0, 0, 255],
      "blueviolet": [138, 43, 226],
      "brown": [165, 42, 42],
      "burlywood": [222, 184, 135],
      "cadetblue": [95, 158, 160],
      "chartreuse": [127, 255, 0],
      "chocolate": [210, 105, 30],
      "coral": [255, 127, 80],
      "cornflowerblue": [100, 149, 237],
      "cornsilk": [255, 248, 220],
      "crimson": [220, 20, 60],
      "cyan": [0, 255, 255],
      "darkblue": [0, 0, 139],
      "darkcyan": [0, 139, 139],
      "darkgoldenrod": [184, 134, 11],
      "darkgray": [169, 169, 169],
      "darkgreen": [0, 100, 0],
      "darkgrey": [169, 169, 169],
      "darkkhaki": [189, 183, 107],
      "darkmagenta": [139, 0, 139],
      "darkolivegreen": [85, 107, 47],
      "darkorange": [255, 140, 0],
      "darkorchid": [153, 50, 204],
      "darkred": [139, 0, 0],
      "darksalmon": [233, 150, 122],
      "darkseagreen": [143, 188, 143],
      "darkslateblue": [72, 61, 139],
      "darkslategray": [47, 79, 79],
      "darkslategrey": [47, 79, 79],
      "darkturquoise": [0, 206, 209],
      "darkviolet": [148, 0, 211],
      "deeppink": [255, 20, 147],
      "deepskyblue": [0, 191, 255],
      "dimgray": [105, 105, 105],
      "dimgrey": [105, 105, 105],
      "dodgerblue": [30, 144, 255],
      "firebrick": [178, 34, 34],
      "floralwhite": [255, 250, 240],
      "forestgreen": [34, 139, 34],
      "fuchsia": [255, 0, 255],
      "gainsboro": [220, 220, 220],
      "ghostwhite": [248, 248, 255],
      "gold": [255, 215, 0],
      "goldenrod": [218, 165, 32],
      "gray": [128, 128, 128],
      "green": [0, 128, 0],
      "greenyellow": [173, 255, 47],
      "grey": [128, 128, 128],
      "honeydew": [240, 255, 240],
      "hotpink": [255, 105, 180],
      "indianred": [205, 92, 92],
      "indigo": [75, 0, 130],
      "ivory": [255, 255, 240],
      "khaki": [240, 230, 140],
      "lavender": [230, 230, 250],
      "lavenderblush": [255, 240, 245],
      "lawngreen": [124, 252, 0],
      "lemonchiffon": [255, 250, 205],
      "lightblue": [173, 216, 230],
      "lightcoral": [240, 128, 128],
      "lightcyan": [224, 255, 255],
      "lightgoldenrodyellow": [250, 250, 210],
      "lightgray": [211, 211, 211],
      "lightgreen": [144, 238, 144],
      "lightgrey": [211, 211, 211],
      "lightpink": [255, 182, 193],
      "lightsalmon": [255, 160, 122],
      "lightseagreen": [32, 178, 170],
      "lightskyblue": [135, 206, 250],
      "lightslategray": [119, 136, 153],
      "lightslategrey": [119, 136, 153],
      "lightsteelblue": [176, 196, 222],
      "lightyellow": [255, 255, 224],
      "lime": [0, 255, 0],
      "limegreen": [50, 205, 50],
      "linen": [250, 240, 230],
      "magenta": [255, 0, 255],
      "maroon": [128, 0, 0],
      "mediumaquamarine": [102, 205, 170],
      "mediumblue": [0, 0, 205],
      "mediumorchid": [186, 85, 211],
      "mediumpurple": [147, 112, 219],
      "mediumseagreen": [60, 179, 113],
      "mediumslateblue": [123, 104, 238],
      "mediumspringgreen": [0, 250, 154],
      "mediumturquoise": [72, 209, 204],
      "mediumvioletred": [199, 21, 133],
      "midnightblue": [25, 25, 112],
      "mintcream": [245, 255, 250],
      "mistyrose": [255, 228, 225],
      "moccasin": [255, 228, 181],
      "navajowhite": [255, 222, 173],
      "navy": [0, 0, 128],
      "oldlace": [253, 245, 230],
      "olive": [128, 128, 0],
      "olivedrab": [107, 142, 35],
      "orange": [255, 165, 0],
      "orangered": [255, 69, 0],
      "orchid": [218, 112, 214],
      "palegoldenrod": [238, 232, 170],
      "palegreen": [152, 251, 152],
      "paleturquoise": [175, 238, 238],
      "palevioletred": [219, 112, 147],
      "papayawhip": [255, 239, 213],
      "peachpuff": [255, 218, 185],
      "peru": [205, 133, 63],
      "pink": [255, 192, 203],
      "plum": [221, 160, 221],
      "powderblue": [176, 224, 230],
      "purple": [128, 0, 128],
      "rebeccapurple": [102, 51, 153],
      "red": [255, 0, 0],
      "rosybrown": [188, 143, 143],
      "royalblue": [65, 105, 225],
      "saddlebrown": [139, 69, 19],
      "salmon": [250, 128, 114],
      "sandybrown": [244, 164, 96],
      "seagreen": [46, 139, 87],
      "seashell": [255, 245, 238],
      "sienna": [160, 82, 45],
      "silver": [192, 192, 192],
      "skyblue": [135, 206, 235],
      "slateblue": [106, 90, 205],
      "slategray": [112, 128, 144],
      "slategrey": [112, 128, 144],
      "snow": [255, 250, 250],
      "springgreen": [0, 255, 127],
      "steelblue": [70, 130, 180],
      "tan": [210, 180, 140],
      "teal": [0, 128, 128],
      "thistle": [216, 191, 216],
      "tomato": [255, 99, 71],
      "turquoise": [64, 224, 208],
      "violet": [238, 130, 238],
      "wheat": [245, 222, 179],
      "white": [255, 255, 255],
      "whitesmoke": [245, 245, 245],
      "yellow": [255, 255, 0],
      "yellowgreen": [154, 205, 50]
    };
  }
});

// ../../node_modules/color-convert/conversions.js
var require_conversions = __commonJS({
  "../../node_modules/color-convert/conversions.js"(exports2, module2) {
    var cssKeywords = require_color_name();
    var reverseKeywords = {};
    for (const key of Object.keys(cssKeywords)) {
      reverseKeywords[cssKeywords[key]] = key;
    }
    var convert = {
      rgb: { channels: 3, labels: "rgb" },
      hsl: { channels: 3, labels: "hsl" },
      hsv: { channels: 3, labels: "hsv" },
      hwb: { channels: 3, labels: "hwb" },
      cmyk: { channels: 4, labels: "cmyk" },
      xyz: { channels: 3, labels: "xyz" },
      lab: { channels: 3, labels: "lab" },
      lch: { channels: 3, labels: "lch" },
      hex: { channels: 1, labels: ["hex"] },
      keyword: { channels: 1, labels: ["keyword"] },
      ansi16: { channels: 1, labels: ["ansi16"] },
      ansi256: { channels: 1, labels: ["ansi256"] },
      hcg: { channels: 3, labels: ["h", "c", "g"] },
      apple: { channels: 3, labels: ["r16", "g16", "b16"] },
      gray: { channels: 1, labels: ["gray"] }
    };
    module2.exports = convert;
    for (const model of Object.keys(convert)) {
      if (!("channels" in convert[model])) {
        throw new Error("missing channels property: " + model);
      }
      if (!("labels" in convert[model])) {
        throw new Error("missing channel labels property: " + model);
      }
      if (convert[model].labels.length !== convert[model].channels) {
        throw new Error("channel and label counts mismatch: " + model);
      }
      const { channels, labels } = convert[model];
      delete convert[model].channels;
      delete convert[model].labels;
      Object.defineProperty(convert[model], "channels", { value: channels });
      Object.defineProperty(convert[model], "labels", { value: labels });
    }
    convert.rgb.hsl = function(rgb) {
      const r3 = rgb[0] / 255;
      const g3 = rgb[1] / 255;
      const b3 = rgb[2] / 255;
      const min = Math.min(r3, g3, b3);
      const max = Math.max(r3, g3, b3);
      const delta = max - min;
      let h3;
      let s3;
      if (max === min) {
        h3 = 0;
      } else if (r3 === max) {
        h3 = (g3 - b3) / delta;
      } else if (g3 === max) {
        h3 = 2 + (b3 - r3) / delta;
      } else if (b3 === max) {
        h3 = 4 + (r3 - g3) / delta;
      }
      h3 = Math.min(h3 * 60, 360);
      if (h3 < 0) {
        h3 += 360;
      }
      const l3 = (min + max) / 2;
      if (max === min) {
        s3 = 0;
      } else if (l3 <= 0.5) {
        s3 = delta / (max + min);
      } else {
        s3 = delta / (2 - max - min);
      }
      return [h3, s3 * 100, l3 * 100];
    };
    convert.rgb.hsv = function(rgb) {
      let rdif;
      let gdif;
      let bdif;
      let h3;
      let s3;
      const r3 = rgb[0] / 255;
      const g3 = rgb[1] / 255;
      const b3 = rgb[2] / 255;
      const v6 = Math.max(r3, g3, b3);
      const diff = v6 - Math.min(r3, g3, b3);
      const diffc = /* @__PURE__ */ __name(function(c3) {
        return (v6 - c3) / 6 / diff + 1 / 2;
      }, "diffc");
      if (diff === 0) {
        h3 = 0;
        s3 = 0;
      } else {
        s3 = diff / v6;
        rdif = diffc(r3);
        gdif = diffc(g3);
        bdif = diffc(b3);
        if (r3 === v6) {
          h3 = bdif - gdif;
        } else if (g3 === v6) {
          h3 = 1 / 3 + rdif - bdif;
        } else if (b3 === v6) {
          h3 = 2 / 3 + gdif - rdif;
        }
        if (h3 < 0) {
          h3 += 1;
        } else if (h3 > 1) {
          h3 -= 1;
        }
      }
      return [
        h3 * 360,
        s3 * 100,
        v6 * 100
      ];
    };
    convert.rgb.hwb = function(rgb) {
      const r3 = rgb[0];
      const g3 = rgb[1];
      let b3 = rgb[2];
      const h3 = convert.rgb.hsl(rgb)[0];
      const w3 = 1 / 255 * Math.min(r3, Math.min(g3, b3));
      b3 = 1 - 1 / 255 * Math.max(r3, Math.max(g3, b3));
      return [h3, w3 * 100, b3 * 100];
    };
    convert.rgb.cmyk = function(rgb) {
      const r3 = rgb[0] / 255;
      const g3 = rgb[1] / 255;
      const b3 = rgb[2] / 255;
      const k3 = Math.min(1 - r3, 1 - g3, 1 - b3);
      const c3 = (1 - r3 - k3) / (1 - k3) || 0;
      const m3 = (1 - g3 - k3) / (1 - k3) || 0;
      const y2 = (1 - b3 - k3) / (1 - k3) || 0;
      return [c3 * 100, m3 * 100, y2 * 100, k3 * 100];
    };
    function comparativeDistance(x3, y2) {
      return (x3[0] - y2[0]) ** 2 + (x3[1] - y2[1]) ** 2 + (x3[2] - y2[2]) ** 2;
    }
    __name(comparativeDistance, "comparativeDistance");
    convert.rgb.keyword = function(rgb) {
      const reversed = reverseKeywords[rgb];
      if (reversed) {
        return reversed;
      }
      let currentClosestDistance = Infinity;
      let currentClosestKeyword;
      for (const keyword of Object.keys(cssKeywords)) {
        const value = cssKeywords[keyword];
        const distance = comparativeDistance(rgb, value);
        if (distance < currentClosestDistance) {
          currentClosestDistance = distance;
          currentClosestKeyword = keyword;
        }
      }
      return currentClosestKeyword;
    };
    convert.keyword.rgb = function(keyword) {
      return cssKeywords[keyword];
    };
    convert.rgb.xyz = function(rgb) {
      let r3 = rgb[0] / 255;
      let g3 = rgb[1] / 255;
      let b3 = rgb[2] / 255;
      r3 = r3 > 0.04045 ? ((r3 + 0.055) / 1.055) ** 2.4 : r3 / 12.92;
      g3 = g3 > 0.04045 ? ((g3 + 0.055) / 1.055) ** 2.4 : g3 / 12.92;
      b3 = b3 > 0.04045 ? ((b3 + 0.055) / 1.055) ** 2.4 : b3 / 12.92;
      const x3 = r3 * 0.4124 + g3 * 0.3576 + b3 * 0.1805;
      const y2 = r3 * 0.2126 + g3 * 0.7152 + b3 * 0.0722;
      const z2 = r3 * 0.0193 + g3 * 0.1192 + b3 * 0.9505;
      return [x3 * 100, y2 * 100, z2 * 100];
    };
    convert.rgb.lab = function(rgb) {
      const xyz = convert.rgb.xyz(rgb);
      let x3 = xyz[0];
      let y2 = xyz[1];
      let z2 = xyz[2];
      x3 /= 95.047;
      y2 /= 100;
      z2 /= 108.883;
      x3 = x3 > 8856e-6 ? x3 ** (1 / 3) : 7.787 * x3 + 16 / 116;
      y2 = y2 > 8856e-6 ? y2 ** (1 / 3) : 7.787 * y2 + 16 / 116;
      z2 = z2 > 8856e-6 ? z2 ** (1 / 3) : 7.787 * z2 + 16 / 116;
      const l3 = 116 * y2 - 16;
      const a3 = 500 * (x3 - y2);
      const b3 = 200 * (y2 - z2);
      return [l3, a3, b3];
    };
    convert.hsl.rgb = function(hsl) {
      const h3 = hsl[0] / 360;
      const s3 = hsl[1] / 100;
      const l3 = hsl[2] / 100;
      let t22;
      let t3;
      let val;
      if (s3 === 0) {
        val = l3 * 255;
        return [val, val, val];
      }
      if (l3 < 0.5) {
        t22 = l3 * (1 + s3);
      } else {
        t22 = l3 + s3 - l3 * s3;
      }
      const t1 = 2 * l3 - t22;
      const rgb = [0, 0, 0];
      for (let i3 = 0; i3 < 3; i3++) {
        t3 = h3 + 1 / 3 * -(i3 - 1);
        if (t3 < 0) {
          t3++;
        }
        if (t3 > 1) {
          t3--;
        }
        if (6 * t3 < 1) {
          val = t1 + (t22 - t1) * 6 * t3;
        } else if (2 * t3 < 1) {
          val = t22;
        } else if (3 * t3 < 2) {
          val = t1 + (t22 - t1) * (2 / 3 - t3) * 6;
        } else {
          val = t1;
        }
        rgb[i3] = val * 255;
      }
      return rgb;
    };
    convert.hsl.hsv = function(hsl) {
      const h3 = hsl[0];
      let s3 = hsl[1] / 100;
      let l3 = hsl[2] / 100;
      let smin = s3;
      const lmin = Math.max(l3, 0.01);
      l3 *= 2;
      s3 *= l3 <= 1 ? l3 : 2 - l3;
      smin *= lmin <= 1 ? lmin : 2 - lmin;
      const v6 = (l3 + s3) / 2;
      const sv = l3 === 0 ? 2 * smin / (lmin + smin) : 2 * s3 / (l3 + s3);
      return [h3, sv * 100, v6 * 100];
    };
    convert.hsv.rgb = function(hsv) {
      const h3 = hsv[0] / 60;
      const s3 = hsv[1] / 100;
      let v6 = hsv[2] / 100;
      const hi = Math.floor(h3) % 6;
      const f3 = h3 - Math.floor(h3);
      const p3 = 255 * v6 * (1 - s3);
      const q3 = 255 * v6 * (1 - s3 * f3);
      const t3 = 255 * v6 * (1 - s3 * (1 - f3));
      v6 *= 255;
      switch (hi) {
        case 0:
          return [v6, t3, p3];
        case 1:
          return [q3, v6, p3];
        case 2:
          return [p3, v6, t3];
        case 3:
          return [p3, q3, v6];
        case 4:
          return [t3, p3, v6];
        case 5:
          return [v6, p3, q3];
      }
    };
    convert.hsv.hsl = function(hsv) {
      const h3 = hsv[0];
      const s3 = hsv[1] / 100;
      const v6 = hsv[2] / 100;
      const vmin = Math.max(v6, 0.01);
      let sl;
      let l3;
      l3 = (2 - s3) * v6;
      const lmin = (2 - s3) * vmin;
      sl = s3 * vmin;
      sl /= lmin <= 1 ? lmin : 2 - lmin;
      sl = sl || 0;
      l3 /= 2;
      return [h3, sl * 100, l3 * 100];
    };
    convert.hwb.rgb = function(hwb) {
      const h3 = hwb[0] / 360;
      let wh = hwb[1] / 100;
      let bl = hwb[2] / 100;
      const ratio = wh + bl;
      let f3;
      if (ratio > 1) {
        wh /= ratio;
        bl /= ratio;
      }
      const i3 = Math.floor(6 * h3);
      const v6 = 1 - bl;
      f3 = 6 * h3 - i3;
      if ((i3 & 1) !== 0) {
        f3 = 1 - f3;
      }
      const n3 = wh + f3 * (v6 - wh);
      let r3;
      let g3;
      let b3;
      switch (i3) {
        default:
        case 6:
        case 0:
          r3 = v6;
          g3 = n3;
          b3 = wh;
          break;
        case 1:
          r3 = n3;
          g3 = v6;
          b3 = wh;
          break;
        case 2:
          r3 = wh;
          g3 = v6;
          b3 = n3;
          break;
        case 3:
          r3 = wh;
          g3 = n3;
          b3 = v6;
          break;
        case 4:
          r3 = n3;
          g3 = wh;
          b3 = v6;
          break;
        case 5:
          r3 = v6;
          g3 = wh;
          b3 = n3;
          break;
      }
      return [r3 * 255, g3 * 255, b3 * 255];
    };
    convert.cmyk.rgb = function(cmyk) {
      const c3 = cmyk[0] / 100;
      const m3 = cmyk[1] / 100;
      const y2 = cmyk[2] / 100;
      const k3 = cmyk[3] / 100;
      const r3 = 1 - Math.min(1, c3 * (1 - k3) + k3);
      const g3 = 1 - Math.min(1, m3 * (1 - k3) + k3);
      const b3 = 1 - Math.min(1, y2 * (1 - k3) + k3);
      return [r3 * 255, g3 * 255, b3 * 255];
    };
    convert.xyz.rgb = function(xyz) {
      const x3 = xyz[0] / 100;
      const y2 = xyz[1] / 100;
      const z2 = xyz[2] / 100;
      let r3;
      let g3;
      let b3;
      r3 = x3 * 3.2406 + y2 * -1.5372 + z2 * -0.4986;
      g3 = x3 * -0.9689 + y2 * 1.8758 + z2 * 0.0415;
      b3 = x3 * 0.0557 + y2 * -0.204 + z2 * 1.057;
      r3 = r3 > 31308e-7 ? 1.055 * r3 ** (1 / 2.4) - 0.055 : r3 * 12.92;
      g3 = g3 > 31308e-7 ? 1.055 * g3 ** (1 / 2.4) - 0.055 : g3 * 12.92;
      b3 = b3 > 31308e-7 ? 1.055 * b3 ** (1 / 2.4) - 0.055 : b3 * 12.92;
      r3 = Math.min(Math.max(0, r3), 1);
      g3 = Math.min(Math.max(0, g3), 1);
      b3 = Math.min(Math.max(0, b3), 1);
      return [r3 * 255, g3 * 255, b3 * 255];
    };
    convert.xyz.lab = function(xyz) {
      let x3 = xyz[0];
      let y2 = xyz[1];
      let z2 = xyz[2];
      x3 /= 95.047;
      y2 /= 100;
      z2 /= 108.883;
      x3 = x3 > 8856e-6 ? x3 ** (1 / 3) : 7.787 * x3 + 16 / 116;
      y2 = y2 > 8856e-6 ? y2 ** (1 / 3) : 7.787 * y2 + 16 / 116;
      z2 = z2 > 8856e-6 ? z2 ** (1 / 3) : 7.787 * z2 + 16 / 116;
      const l3 = 116 * y2 - 16;
      const a3 = 500 * (x3 - y2);
      const b3 = 200 * (y2 - z2);
      return [l3, a3, b3];
    };
    convert.lab.xyz = function(lab) {
      const l3 = lab[0];
      const a3 = lab[1];
      const b3 = lab[2];
      let x3;
      let y2;
      let z2;
      y2 = (l3 + 16) / 116;
      x3 = a3 / 500 + y2;
      z2 = y2 - b3 / 200;
      const y22 = y2 ** 3;
      const x22 = x3 ** 3;
      const z22 = z2 ** 3;
      y2 = y22 > 8856e-6 ? y22 : (y2 - 16 / 116) / 7.787;
      x3 = x22 > 8856e-6 ? x22 : (x3 - 16 / 116) / 7.787;
      z2 = z22 > 8856e-6 ? z22 : (z2 - 16 / 116) / 7.787;
      x3 *= 95.047;
      y2 *= 100;
      z2 *= 108.883;
      return [x3, y2, z2];
    };
    convert.lab.lch = function(lab) {
      const l3 = lab[0];
      const a3 = lab[1];
      const b3 = lab[2];
      let h3;
      const hr = Math.atan2(b3, a3);
      h3 = hr * 360 / 2 / Math.PI;
      if (h3 < 0) {
        h3 += 360;
      }
      const c3 = Math.sqrt(a3 * a3 + b3 * b3);
      return [l3, c3, h3];
    };
    convert.lch.lab = function(lch) {
      const l3 = lch[0];
      const c3 = lch[1];
      const h3 = lch[2];
      const hr = h3 / 360 * 2 * Math.PI;
      const a3 = c3 * Math.cos(hr);
      const b3 = c3 * Math.sin(hr);
      return [l3, a3, b3];
    };
    convert.rgb.ansi16 = function(args, saturation = null) {
      const [r3, g3, b3] = args;
      let value = saturation === null ? convert.rgb.hsv(args)[2] : saturation;
      value = Math.round(value / 50);
      if (value === 0) {
        return 30;
      }
      let ansi = 30 + (Math.round(b3 / 255) << 2 | Math.round(g3 / 255) << 1 | Math.round(r3 / 255));
      if (value === 2) {
        ansi += 60;
      }
      return ansi;
    };
    convert.hsv.ansi16 = function(args) {
      return convert.rgb.ansi16(convert.hsv.rgb(args), args[2]);
    };
    convert.rgb.ansi256 = function(args) {
      const r3 = args[0];
      const g3 = args[1];
      const b3 = args[2];
      if (r3 === g3 && g3 === b3) {
        if (r3 < 8) {
          return 16;
        }
        if (r3 > 248) {
          return 231;
        }
        return Math.round((r3 - 8) / 247 * 24) + 232;
      }
      const ansi = 16 + 36 * Math.round(r3 / 255 * 5) + 6 * Math.round(g3 / 255 * 5) + Math.round(b3 / 255 * 5);
      return ansi;
    };
    convert.ansi16.rgb = function(args) {
      let color = args % 10;
      if (color === 0 || color === 7) {
        if (args > 50) {
          color += 3.5;
        }
        color = color / 10.5 * 255;
        return [color, color, color];
      }
      const mult = (~~(args > 50) + 1) * 0.5;
      const r3 = (color & 1) * mult * 255;
      const g3 = (color >> 1 & 1) * mult * 255;
      const b3 = (color >> 2 & 1) * mult * 255;
      return [r3, g3, b3];
    };
    convert.ansi256.rgb = function(args) {
      if (args >= 232) {
        const c3 = (args - 232) * 10 + 8;
        return [c3, c3, c3];
      }
      args -= 16;
      let rem;
      const r3 = Math.floor(args / 36) / 5 * 255;
      const g3 = Math.floor((rem = args % 36) / 6) / 5 * 255;
      const b3 = rem % 6 / 5 * 255;
      return [r3, g3, b3];
    };
    convert.rgb.hex = function(args) {
      const integer = ((Math.round(args[0]) & 255) << 16) + ((Math.round(args[1]) & 255) << 8) + (Math.round(args[2]) & 255);
      const string = integer.toString(16).toUpperCase();
      return "000000".substring(string.length) + string;
    };
    convert.hex.rgb = function(args) {
      const match4 = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);
      if (!match4) {
        return [0, 0, 0];
      }
      let colorString = match4[0];
      if (match4[0].length === 3) {
        colorString = colorString.split("").map((char) => {
          return char + char;
        }).join("");
      }
      const integer = parseInt(colorString, 16);
      const r3 = integer >> 16 & 255;
      const g3 = integer >> 8 & 255;
      const b3 = integer & 255;
      return [r3, g3, b3];
    };
    convert.rgb.hcg = function(rgb) {
      const r3 = rgb[0] / 255;
      const g3 = rgb[1] / 255;
      const b3 = rgb[2] / 255;
      const max = Math.max(Math.max(r3, g3), b3);
      const min = Math.min(Math.min(r3, g3), b3);
      const chroma = max - min;
      let grayscale;
      let hue;
      if (chroma < 1) {
        grayscale = min / (1 - chroma);
      } else {
        grayscale = 0;
      }
      if (chroma <= 0) {
        hue = 0;
      } else if (max === r3) {
        hue = (g3 - b3) / chroma % 6;
      } else if (max === g3) {
        hue = 2 + (b3 - r3) / chroma;
      } else {
        hue = 4 + (r3 - g3) / chroma;
      }
      hue /= 6;
      hue %= 1;
      return [hue * 360, chroma * 100, grayscale * 100];
    };
    convert.hsl.hcg = function(hsl) {
      const s3 = hsl[1] / 100;
      const l3 = hsl[2] / 100;
      const c3 = l3 < 0.5 ? 2 * s3 * l3 : 2 * s3 * (1 - l3);
      let f3 = 0;
      if (c3 < 1) {
        f3 = (l3 - 0.5 * c3) / (1 - c3);
      }
      return [hsl[0], c3 * 100, f3 * 100];
    };
    convert.hsv.hcg = function(hsv) {
      const s3 = hsv[1] / 100;
      const v6 = hsv[2] / 100;
      const c3 = s3 * v6;
      let f3 = 0;
      if (c3 < 1) {
        f3 = (v6 - c3) / (1 - c3);
      }
      return [hsv[0], c3 * 100, f3 * 100];
    };
    convert.hcg.rgb = function(hcg) {
      const h3 = hcg[0] / 360;
      const c3 = hcg[1] / 100;
      const g3 = hcg[2] / 100;
      if (c3 === 0) {
        return [g3 * 255, g3 * 255, g3 * 255];
      }
      const pure = [0, 0, 0];
      const hi = h3 % 1 * 6;
      const v6 = hi % 1;
      const w3 = 1 - v6;
      let mg = 0;
      switch (Math.floor(hi)) {
        case 0:
          pure[0] = 1;
          pure[1] = v6;
          pure[2] = 0;
          break;
        case 1:
          pure[0] = w3;
          pure[1] = 1;
          pure[2] = 0;
          break;
        case 2:
          pure[0] = 0;
          pure[1] = 1;
          pure[2] = v6;
          break;
        case 3:
          pure[0] = 0;
          pure[1] = w3;
          pure[2] = 1;
          break;
        case 4:
          pure[0] = v6;
          pure[1] = 0;
          pure[2] = 1;
          break;
        default:
          pure[0] = 1;
          pure[1] = 0;
          pure[2] = w3;
      }
      mg = (1 - c3) * g3;
      return [
        (c3 * pure[0] + mg) * 255,
        (c3 * pure[1] + mg) * 255,
        (c3 * pure[2] + mg) * 255
      ];
    };
    convert.hcg.hsv = function(hcg) {
      const c3 = hcg[1] / 100;
      const g3 = hcg[2] / 100;
      const v6 = c3 + g3 * (1 - c3);
      let f3 = 0;
      if (v6 > 0) {
        f3 = c3 / v6;
      }
      return [hcg[0], f3 * 100, v6 * 100];
    };
    convert.hcg.hsl = function(hcg) {
      const c3 = hcg[1] / 100;
      const g3 = hcg[2] / 100;
      const l3 = g3 * (1 - c3) + 0.5 * c3;
      let s3 = 0;
      if (l3 > 0 && l3 < 0.5) {
        s3 = c3 / (2 * l3);
      } else if (l3 >= 0.5 && l3 < 1) {
        s3 = c3 / (2 * (1 - l3));
      }
      return [hcg[0], s3 * 100, l3 * 100];
    };
    convert.hcg.hwb = function(hcg) {
      const c3 = hcg[1] / 100;
      const g3 = hcg[2] / 100;
      const v6 = c3 + g3 * (1 - c3);
      return [hcg[0], (v6 - c3) * 100, (1 - v6) * 100];
    };
    convert.hwb.hcg = function(hwb) {
      const w3 = hwb[1] / 100;
      const b3 = hwb[2] / 100;
      const v6 = 1 - b3;
      const c3 = v6 - w3;
      let g3 = 0;
      if (c3 < 1) {
        g3 = (v6 - c3) / (1 - c3);
      }
      return [hwb[0], c3 * 100, g3 * 100];
    };
    convert.apple.rgb = function(apple) {
      return [apple[0] / 65535 * 255, apple[1] / 65535 * 255, apple[2] / 65535 * 255];
    };
    convert.rgb.apple = function(rgb) {
      return [rgb[0] / 255 * 65535, rgb[1] / 255 * 65535, rgb[2] / 255 * 65535];
    };
    convert.gray.rgb = function(args) {
      return [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255];
    };
    convert.gray.hsl = function(args) {
      return [0, 0, args[0]];
    };
    convert.gray.hsv = convert.gray.hsl;
    convert.gray.hwb = function(gray8) {
      return [0, 100, gray8[0]];
    };
    convert.gray.cmyk = function(gray8) {
      return [0, 0, 0, gray8[0]];
    };
    convert.gray.lab = function(gray8) {
      return [gray8[0], 0, 0];
    };
    convert.gray.hex = function(gray8) {
      const val = Math.round(gray8[0] / 100 * 255) & 255;
      const integer = (val << 16) + (val << 8) + val;
      const string = integer.toString(16).toUpperCase();
      return "000000".substring(string.length) + string;
    };
    convert.rgb.gray = function(rgb) {
      const val = (rgb[0] + rgb[1] + rgb[2]) / 3;
      return [val / 255 * 100];
    };
  }
});

// ../../node_modules/color-convert/route.js
var require_route = __commonJS({
  "../../node_modules/color-convert/route.js"(exports2, module2) {
    var conversions = require_conversions();
    function buildGraph() {
      const graph = {};
      const models = Object.keys(conversions);
      for (let len = models.length, i3 = 0; i3 < len; i3++) {
        graph[models[i3]] = {
          // http://jsperf.com/1-vs-infinity
          // micro-opt, but this is simple.
          distance: -1,
          parent: null
        };
      }
      return graph;
    }
    __name(buildGraph, "buildGraph");
    function deriveBFS(fromModel) {
      const graph = buildGraph();
      const queue = [fromModel];
      graph[fromModel].distance = 0;
      while (queue.length) {
        const current = queue.pop();
        const adjacents = Object.keys(conversions[current]);
        for (let len = adjacents.length, i3 = 0; i3 < len; i3++) {
          const adjacent = adjacents[i3];
          const node = graph[adjacent];
          if (node.distance === -1) {
            node.distance = graph[current].distance + 1;
            node.parent = current;
            queue.unshift(adjacent);
          }
        }
      }
      return graph;
    }
    __name(deriveBFS, "deriveBFS");
    function link(from, to) {
      return function(args) {
        return to(from(args));
      };
    }
    __name(link, "link");
    function wrapConversion(toModel, graph) {
      const path38 = [graph[toModel].parent, toModel];
      let fn = conversions[graph[toModel].parent][toModel];
      let cur = graph[toModel].parent;
      while (graph[cur].parent) {
        path38.unshift(graph[cur].parent);
        fn = link(conversions[graph[cur].parent][cur], fn);
        cur = graph[cur].parent;
      }
      fn.conversion = path38;
      return fn;
    }
    __name(wrapConversion, "wrapConversion");
    module2.exports = function(fromModel) {
      const graph = deriveBFS(fromModel);
      const conversion = {};
      const models = Object.keys(graph);
      for (let len = models.length, i3 = 0; i3 < len; i3++) {
        const toModel = models[i3];
        const node = graph[toModel];
        if (node.parent === null) {
          continue;
        }
        conversion[toModel] = wrapConversion(toModel, graph);
      }
      return conversion;
    };
  }
});

// ../../node_modules/color-convert/index.js
var require_color_convert = __commonJS({
  "../../node_modules/color-convert/index.js"(exports2, module2) {
    var conversions = require_conversions();
    var route = require_route();
    var convert = {};
    var models = Object.keys(conversions);
    function wrapRaw(fn) {
      const wrappedFn = /* @__PURE__ */ __name(function(...args) {
        const arg0 = args[0];
        if (arg0 === void 0 || arg0 === null) {
          return arg0;
        }
        if (arg0.length > 1) {
          args = arg0;
        }
        return fn(args);
      }, "wrappedFn");
      if ("conversion" in fn) {
        wrappedFn.conversion = fn.conversion;
      }
      return wrappedFn;
    }
    __name(wrapRaw, "wrapRaw");
    function wrapRounded(fn) {
      const wrappedFn = /* @__PURE__ */ __name(function(...args) {
        const arg0 = args[0];
        if (arg0 === void 0 || arg0 === null) {
          return arg0;
        }
        if (arg0.length > 1) {
          args = arg0;
        }
        const result2 = fn(args);
        if (typeof result2 === "object") {
          for (let len = result2.length, i3 = 0; i3 < len; i3++) {
            result2[i3] = Math.round(result2[i3]);
          }
        }
        return result2;
      }, "wrappedFn");
      if ("conversion" in fn) {
        wrappedFn.conversion = fn.conversion;
      }
      return wrappedFn;
    }
    __name(wrapRounded, "wrapRounded");
    models.forEach((fromModel) => {
      convert[fromModel] = {};
      Object.defineProperty(convert[fromModel], "channels", { value: conversions[fromModel].channels });
      Object.defineProperty(convert[fromModel], "labels", { value: conversions[fromModel].labels });
      const routes = route(fromModel);
      const routeModels = Object.keys(routes);
      routeModels.forEach((toModel) => {
        const fn = routes[toModel];
        convert[fromModel][toModel] = wrapRounded(fn);
        convert[fromModel][toModel].raw = wrapRaw(fn);
      });
    });
    module2.exports = convert;
  }
});

// ../../node_modules/ansi-styles/index.js
var require_ansi_styles = __commonJS({
  "../../node_modules/ansi-styles/index.js"(exports2, module2) {
    "use strict";
    var wrapAnsi16 = /* @__PURE__ */ __name((fn, offset) => (...args) => {
      const code = fn(...args);
      return `\x1B[${code + offset}m`;
    }, "wrapAnsi16");
    var wrapAnsi256 = /* @__PURE__ */ __name((fn, offset) => (...args) => {
      const code = fn(...args);
      return `\x1B[${38 + offset};5;${code}m`;
    }, "wrapAnsi256");
    var wrapAnsi16m = /* @__PURE__ */ __name((fn, offset) => (...args) => {
      const rgb = fn(...args);
      return `\x1B[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`;
    }, "wrapAnsi16m");
    var ansi2ansi = /* @__PURE__ */ __name((n3) => n3, "ansi2ansi");
    var rgb2rgb = /* @__PURE__ */ __name((r3, g3, b3) => [r3, g3, b3], "rgb2rgb");
    var setLazyProperty = /* @__PURE__ */ __name((object, property, get3) => {
      Object.defineProperty(object, property, {
        get: /* @__PURE__ */ __name(() => {
          const value = get3();
          Object.defineProperty(object, property, {
            value,
            enumerable: true,
            configurable: true
          });
          return value;
        }, "get"),
        enumerable: true,
        configurable: true
      });
    }, "setLazyProperty");
    var colorConvert;
    var makeDynamicStyles = /* @__PURE__ */ __name((wrap, targetSpace, identity, isBackground) => {
      if (colorConvert === void 0) {
        colorConvert = require_color_convert();
      }
      const offset = isBackground ? 10 : 0;
      const styles = {};
      for (const [sourceSpace, suite] of Object.entries(colorConvert)) {
        const name = sourceSpace === "ansi16" ? "ansi" : sourceSpace;
        if (sourceSpace === targetSpace) {
          styles[name] = wrap(identity, offset);
        } else if (typeof suite === "object") {
          styles[name] = wrap(suite[targetSpace], offset);
        }
      }
      return styles;
    }, "makeDynamicStyles");
    function assembleStyles() {
      const codes = /* @__PURE__ */ new Map();
      const styles = {
        modifier: {
          reset: [0, 0],
          // 21 isn't widely supported and 22 does the same thing
          bold: [1, 22],
          dim: [2, 22],
          italic: [3, 23],
          underline: [4, 24],
          inverse: [7, 27],
          hidden: [8, 28],
          strikethrough: [9, 29]
        },
        color: {
          black: [30, 39],
          red: [31, 39],
          green: [32, 39],
          yellow: [33, 39],
          blue: [34, 39],
          magenta: [35, 39],
          cyan: [36, 39],
          white: [37, 39],
          // Bright color
          blackBright: [90, 39],
          redBright: [91, 39],
          greenBright: [92, 39],
          yellowBright: [93, 39],
          blueBright: [94, 39],
          magentaBright: [95, 39],
          cyanBright: [96, 39],
          whiteBright: [97, 39]
        },
        bgColor: {
          bgBlack: [40, 49],
          bgRed: [41, 49],
          bgGreen: [42, 49],
          bgYellow: [43, 49],
          bgBlue: [44, 49],
          bgMagenta: [45, 49],
          bgCyan: [46, 49],
          bgWhite: [47, 49],
          // Bright color
          bgBlackBright: [100, 49],
          bgRedBright: [101, 49],
          bgGreenBright: [102, 49],
          bgYellowBright: [103, 49],
          bgBlueBright: [104, 49],
          bgMagentaBright: [105, 49],
          bgCyanBright: [106, 49],
          bgWhiteBright: [107, 49]
        }
      };
      styles.color.gray = styles.color.blackBright;
      styles.bgColor.bgGray = styles.bgColor.bgBlackBright;
      styles.color.grey = styles.color.blackBright;
      styles.bgColor.bgGrey = styles.bgColor.bgBlackBright;
      for (const [groupName, group] of Object.entries(styles)) {
        for (const [styleName, style] of Object.entries(group)) {
          styles[styleName] = {
            open: `\x1B[${style[0]}m`,
            close: `\x1B[${style[1]}m`
          };
          group[styleName] = styles[styleName];
          codes.set(style[0], style[1]);
        }
        Object.defineProperty(styles, groupName, {
          value: group,
          enumerable: false
        });
      }
      Object.defineProperty(styles, "codes", {
        value: codes,
        enumerable: false
      });
      styles.color.close = "\x1B[39m";
      styles.bgColor.close = "\x1B[49m";
      setLazyProperty(styles.color, "ansi", () => makeDynamicStyles(wrapAnsi16, "ansi16", ansi2ansi, false));
      setLazyProperty(styles.color, "ansi256", () => makeDynamicStyles(wrapAnsi256, "ansi256", ansi2ansi, false));
      setLazyProperty(styles.color, "ansi16m", () => makeDynamicStyles(wrapAnsi16m, "rgb", rgb2rgb, false));
      setLazyProperty(styles.bgColor, "ansi", () => makeDynamicStyles(wrapAnsi16, "ansi16", ansi2ansi, true));
      setLazyProperty(styles.bgColor, "ansi256", () => makeDynamicStyles(wrapAnsi256, "ansi256", ansi2ansi, true));
      setLazyProperty(styles.bgColor, "ansi16m", () => makeDynamicStyles(wrapAnsi16m, "rgb", rgb2rgb, true));
      return styles;
    }
    __name(assembleStyles, "assembleStyles");
    Object.defineProperty(module2, "exports", {
      enumerable: true,
      get: assembleStyles
    });
  }
});

// ../../node_modules/has-flag/index.js
var require_has_flag = __commonJS({
  "../../node_modules/has-flag/index.js"(exports2, module2) {
    "use strict";
    module2.exports = (flag, argv = process.argv) => {
      const prefix2 = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
      const position = argv.indexOf(prefix2 + flag);
      const terminatorPosition = argv.indexOf("--");
      return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
    };
  }
});

// ../../node_modules/supports-color/index.js
var require_supports_color = __commonJS({
  "../../node_modules/supports-color/index.js"(exports2, module2) {
    "use strict";
    var os13 = require("os");
    var tty = require("tty");
    var hasFlag = require_has_flag();
    var { env: env2 } = process;
    var forceColor;
    if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
      forceColor = 0;
    } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
      forceColor = 1;
    }
    if ("FORCE_COLOR" in env2) {
      if (env2.FORCE_COLOR === "true") {
        forceColor = 1;
      } else if (env2.FORCE_COLOR === "false") {
        forceColor = 0;
      } else {
        forceColor = env2.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env2.FORCE_COLOR, 10), 3);
      }
    }
    function translateLevel(level) {
      if (level === 0) {
        return false;
      }
      return {
        level,
        hasBasic: true,
        has256: level >= 2,
        has16m: level >= 3
      };
    }
    __name(translateLevel, "translateLevel");
    function supportsColor(haveStream, streamIsTTY) {
      if (forceColor === 0) {
        return 0;
      }
      if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
        return 3;
      }
      if (hasFlag("color=256")) {
        return 2;
      }
      if (haveStream && !streamIsTTY && forceColor === void 0) {
        return 0;
      }
      const min = forceColor || 0;
      if (env2.TERM === "dumb") {
        return min;
      }
      if (process.platform === "win32") {
        const osRelease = os13.release().split(".");
        if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
          return Number(osRelease[2]) >= 14931 ? 3 : 2;
        }
        return 1;
      }
      if ("CI" in env2) {
        if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env2) || env2.CI_NAME === "codeship") {
          return 1;
        }
        return min;
      }
      if ("TEAMCITY_VERSION" in env2) {
        return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env2.TEAMCITY_VERSION) ? 1 : 0;
      }
      if (env2.COLORTERM === "truecolor") {
        return 3;
      }
      if ("TERM_PROGRAM" in env2) {
        const version2 = parseInt((env2.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
        switch (env2.TERM_PROGRAM) {
          case "iTerm.app":
            return version2 >= 3 ? 3 : 2;
          case "Apple_Terminal":
            return 2;
        }
      }
      if (/-256(color)?$/i.test(env2.TERM)) {
        return 2;
      }
      if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env2.TERM)) {
        return 1;
      }
      if ("COLORTERM" in env2) {
        return 1;
      }
      return min;
    }
    __name(supportsColor, "supportsColor");
    function getSupportLevel(stream3) {
      const level = supportsColor(stream3, stream3 && stream3.isTTY);
      return translateLevel(level);
    }
    __name(getSupportLevel, "getSupportLevel");
    module2.exports = {
      supportsColor: getSupportLevel,
      stdout: translateLevel(supportsColor(true, tty.isatty(1))),
      stderr: translateLevel(supportsColor(true, tty.isatty(2)))
    };
  }
});

// ../../node_modules/chalk/source/util.js
var require_util8 = __commonJS({
  "../../node_modules/chalk/source/util.js"(exports2, module2) {
    "use strict";
    var stringReplaceAll = /* @__PURE__ */ __name((string, substring, replacer) => {
      let index = string.indexOf(substring);
      if (index === -1) {
        return string;
      }
      const substringLength = substring.length;
      let endIndex = 0;
      let returnValue = "";
      do {
        returnValue += string.substr(endIndex, index - endIndex) + substring + replacer;
        endIndex = index + substringLength;
        index = string.indexOf(substring, endIndex);
      } while (index !== -1);
      returnValue += string.substr(endIndex);
      return returnValue;
    }, "stringReplaceAll");
    var stringEncaseCRLFWithFirstIndex = /* @__PURE__ */ __name((string, prefix2, postfix, index) => {
      let endIndex = 0;
      let returnValue = "";
      do {
        const gotCR = string[index - 1] === "\r";
        returnValue += string.substr(endIndex, (gotCR ? index - 1 : index) - endIndex) + prefix2 + (gotCR ? "\r\n" : "\n") + postfix;
        endIndex = index + 1;
        index = string.indexOf("\n", endIndex);
      } while (index !== -1);
      returnValue += string.substr(endIndex);
      return returnValue;
    }, "stringEncaseCRLFWithFirstIndex");
    module2.exports = {
      stringReplaceAll,
      stringEncaseCRLFWithFirstIndex
    };
  }
});

// ../../node_modules/chalk/source/templates.js
var require_templates = __commonJS({
  "../../node_modules/chalk/source/templates.js"(exports2, module2) {
    "use strict";
    var TEMPLATE_REGEX = /(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;
    var STYLE_REGEX = /(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;
    var STRING_REGEX = /^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;
    var ESCAPE_REGEX = /\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi;
    var ESCAPES = /* @__PURE__ */ new Map([
      ["n", "\n"],
      ["r", "\r"],
      ["t", "	"],
      ["b", "\b"],
      ["f", "\f"],
      ["v", "\v"],
      ["0", "\0"],
      ["\\", "\\"],
      ["e", "\x1B"],
      ["a", "\x07"]
    ]);
    function unescape5(c3) {
      const u3 = c3[0] === "u";
      const bracket = c3[1] === "{";
      if (u3 && !bracket && c3.length === 5 || c3[0] === "x" && c3.length === 3) {
        return String.fromCharCode(parseInt(c3.slice(1), 16));
      }
      if (u3 && bracket) {
        return String.fromCodePoint(parseInt(c3.slice(2, -1), 16));
      }
      return ESCAPES.get(c3) || c3;
    }
    __name(unescape5, "unescape");
    function parseArguments(name, arguments_) {
      const results = [];
      const chunks2 = arguments_.trim().split(/\s*,\s*/g);
      let matches;
      for (const chunk of chunks2) {
        const number = Number(chunk);
        if (!Number.isNaN(number)) {
          results.push(number);
        } else if (matches = chunk.match(STRING_REGEX)) {
          results.push(matches[2].replace(ESCAPE_REGEX, (m3, escape4, character) => escape4 ? unescape5(escape4) : character));
        } else {
          throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${name}')`);
        }
      }
      return results;
    }
    __name(parseArguments, "parseArguments");
    function parseStyle(style) {
      STYLE_REGEX.lastIndex = 0;
      const results = [];
      let matches;
      while ((matches = STYLE_REGEX.exec(style)) !== null) {
        const name = matches[1];
        if (matches[2]) {
          const args = parseArguments(name, matches[2]);
          results.push([name].concat(args));
        } else {
          results.push([name]);
        }
      }
      return results;
    }
    __name(parseStyle, "parseStyle");
    function buildStyle(chalk37, styles) {
      const enabled = {};
      for (const layer of styles) {
        for (const style of layer.styles) {
          enabled[style[0]] = layer.inverse ? null : style.slice(1);
        }
      }
      let current = chalk37;
      for (const [styleName, styles2] of Object.entries(enabled)) {
        if (!Array.isArray(styles2)) {
          continue;
        }
        if (!(styleName in current)) {
          throw new Error(`Unknown Chalk style: ${styleName}`);
        }
        current = styles2.length > 0 ? current[styleName](...styles2) : current[styleName];
      }
      return current;
    }
    __name(buildStyle, "buildStyle");
    module2.exports = (chalk37, temporary) => {
      const styles = [];
      const chunks2 = [];
      let chunk = [];
      temporary.replace(TEMPLATE_REGEX, (m3, escapeCharacter, inverse, style, close, character) => {
        if (escapeCharacter) {
          chunk.push(unescape5(escapeCharacter));
        } else if (style) {
          const string = chunk.join("");
          chunk = [];
          chunks2.push(styles.length === 0 ? string : buildStyle(chalk37, styles)(string));
          styles.push({ inverse, styles: parseStyle(style) });
        } else if (close) {
          if (styles.length === 0) {
            throw new Error("Found extraneous } in Chalk template literal");
          }
          chunks2.push(buildStyle(chalk37, styles)(chunk.join("")));
          chunk = [];
          styles.pop();
        } else {
          chunk.push(character);
        }
      });
      chunks2.push(chunk.join(""));
      if (styles.length > 0) {
        const errMessage = `Chalk template literal is missing ${styles.length} closing bracket${styles.length === 1 ? "" : "s"} (\`}\`)`;
        throw new Error(errMessage);
      }
      return chunks2.join("");
    };
  }
});

// ../../node_modules/chalk/source/index.js
var require_source = __commonJS({
  "../../node_modules/chalk/source/index.js"(exports2, module2) {
    "use strict";
    var ansiStyles = require_ansi_styles();
    var { stdout: stdoutColor, stderr: stderrColor } = require_supports_color();
    var {
      stringReplaceAll,
      stringEncaseCRLFWithFirstIndex
    } = require_util8();
    var { isArray: isArray2 } = Array;
    var levelMapping = [
      "ansi",
      "ansi",
      "ansi256",
      "ansi16m"
    ];
    var styles = /* @__PURE__ */ Object.create(null);
    var applyOptions = /* @__PURE__ */ __name((object, options = {}) => {
      if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
        throw new Error("The `level` option should be an integer from 0 to 3");
      }
      const colorLevel = stdoutColor ? stdoutColor.level : 0;
      object.level = options.level === void 0 ? colorLevel : options.level;
    }, "applyOptions");
    var ChalkClass = class {
      static {
        __name(this, "ChalkClass");
      }
      constructor(options) {
        return chalkFactory(options);
      }
    };
    var chalkFactory = /* @__PURE__ */ __name((options) => {
      const chalk38 = {};
      applyOptions(chalk38, options);
      chalk38.template = (...arguments_) => chalkTag(chalk38.template, ...arguments_);
      Object.setPrototypeOf(chalk38, Chalk.prototype);
      Object.setPrototypeOf(chalk38.template, chalk38);
      chalk38.template.constructor = () => {
        throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
      };
      chalk38.template.Instance = ChalkClass;
      return chalk38.template;
    }, "chalkFactory");
    function Chalk(options) {
      return chalkFactory(options);
    }
    __name(Chalk, "Chalk");
    for (const [styleName, style] of Object.entries(ansiStyles)) {
      styles[styleName] = {
        get() {
          const builder = createBuilder(this, createStyler(style.open, style.close, this._styler), this._isEmpty);
          Object.defineProperty(this, styleName, { value: builder });
          return builder;
        }
      };
    }
    styles.visible = {
      get() {
        const builder = createBuilder(this, this._styler, true);
        Object.defineProperty(this, "visible", { value: builder });
        return builder;
      }
    };
    var usedModels = ["rgb", "hex", "keyword", "hsl", "hsv", "hwb", "ansi", "ansi256"];
    for (const model of usedModels) {
      styles[model] = {
        get() {
          const { level } = this;
          return function(...arguments_) {
            const styler = createStyler(ansiStyles.color[levelMapping[level]][model](...arguments_), ansiStyles.color.close, this._styler);
            return createBuilder(this, styler, this._isEmpty);
          };
        }
      };
    }
    for (const model of usedModels) {
      const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
      styles[bgModel] = {
        get() {
          const { level } = this;
          return function(...arguments_) {
            const styler = createStyler(ansiStyles.bgColor[levelMapping[level]][model](...arguments_), ansiStyles.bgColor.close, this._styler);
            return createBuilder(this, styler, this._isEmpty);
          };
        }
      };
    }
    var proto = Object.defineProperties(() => {
    }, {
      ...styles,
      level: {
        enumerable: true,
        get() {
          return this._generator.level;
        },
        set(level) {
          this._generator.level = level;
        }
      }
    });
    var createStyler = /* @__PURE__ */ __name((open, close, parent) => {
      let openAll;
      let closeAll;
      if (parent === void 0) {
        openAll = open;
        closeAll = close;
      } else {
        openAll = parent.openAll + open;
        closeAll = close + parent.closeAll;
      }
      return {
        open,
        close,
        openAll,
        closeAll,
        parent
      };
    }, "createStyler");
    var createBuilder = /* @__PURE__ */ __name((self2, _styler, _isEmpty) => {
      const builder = /* @__PURE__ */ __name((...arguments_) => {
        if (isArray2(arguments_[0]) && isArray2(arguments_[0].raw)) {
          return applyStyle(builder, chalkTag(builder, ...arguments_));
        }
        return applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
      }, "builder");
      Object.setPrototypeOf(builder, proto);
      builder._generator = self2;
      builder._styler = _styler;
      builder._isEmpty = _isEmpty;
      return builder;
    }, "createBuilder");
    var applyStyle = /* @__PURE__ */ __name((self2, string) => {
      if (self2.level <= 0 || !string) {
        return self2._isEmpty ? "" : string;
      }
      let styler = self2._styler;
      if (styler === void 0) {
        return string;
      }
      const { openAll, closeAll } = styler;
      if (string.indexOf("\x1B") !== -1) {
        while (styler !== void 0) {
          string = stringReplaceAll(string, styler.close, styler.open);
          styler = styler.parent;
        }
      }
      const lfIndex = string.indexOf("\n");
      if (lfIndex !== -1) {
        string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
      }
      return openAll + string + closeAll;
    }, "applyStyle");
    var template;
    var chalkTag = /* @__PURE__ */ __name((chalk38, ...strings) => {
      const [firstString] = strings;
      if (!isArray2(firstString) || !isArray2(firstString.raw)) {
        return strings.join(" ");
      }
      const arguments_ = strings.slice(1);
      const parts = [firstString.raw[0]];
      for (let i3 = 1; i3 < firstString.length; i3++) {
        parts.push(
          String(arguments_[i3 - 1]).replace(/[{}\\]/g, "\\$&"),
          String(firstString.raw[i3])
        );
      }
      if (template === void 0) {
        template = require_templates();
      }
      return template(chalk38, parts.join(""));
    }, "chalkTag");
    Object.defineProperties(Chalk.prototype, styles);
    var chalk37 = Chalk();
    chalk37.supportsColor = stdoutColor;
    chalk37.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
    chalk37.stderr.supportsColor = stderrColor;
    module2.exports = chalk37;
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/deployments/asset-manifest-builder.ts
var import_cdk_assets_lib, cxschema, AssetManifestBuilder;
var init_asset_manifest_builder = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/deployments/asset-manifest-builder.ts"() {
    "use strict";
    import_cdk_assets_lib = __toESM(require_lib6());
    cxschema = __toESM(require_lib2());
    AssetManifestBuilder = class {
      static {
        __name(this, "AssetManifestBuilder");
      }
      manifest = {
        version: cxschema.Manifest.version(),
        files: {},
        dockerImages: {}
      };
      addFileAsset(id, source, destination) {
        this.manifest.files[id] = {
          source,
          destinations: {
            current: destination
          }
        };
      }
      addDockerImageAsset(id, source, destination) {
        this.manifest.dockerImages[id] = {
          source,
          destinations: {
            current: destination
          }
        };
      }
      toManifest(directory) {
        return new import_cdk_assets_lib.AssetManifest(directory, this.manifest);
      }
    };
  }
});

// ../@aws-cdk/toolkit-lib/lib/toolkit/toolkit-error.ts
var toolkit_error_exports = {};
__export(toolkit_error_exports, {
  AssemblyError: () => AssemblyError,
  AuthenticationError: () => AuthenticationError,
  ContextProviderError: () => ContextProviderError,
  NoResultsFoundError: () => NoResultsFoundError,
  ToolkitError: () => ToolkitError
});
var TOOLKIT_ERROR_SYMBOL, AUTHENTICATION_ERROR_SYMBOL, ASSEMBLY_ERROR_SYMBOL, CONTEXT_PROVIDER_ERROR_SYMBOL, NO_RESULTS_FOUND_ERROR_SYMBOL, ToolkitError, AuthenticationError, AssemblyError, ContextProviderError, NoResultsFoundError;
var init_toolkit_error = __esm({
  "../@aws-cdk/toolkit-lib/lib/toolkit/toolkit-error.ts"() {
    "use strict";
    TOOLKIT_ERROR_SYMBOL = Symbol.for("@aws-cdk/toolkit-lib.ToolkitError");
    AUTHENTICATION_ERROR_SYMBOL = Symbol.for("@aws-cdk/toolkit-lib.AuthenticationError");
    ASSEMBLY_ERROR_SYMBOL = Symbol.for("@aws-cdk/toolkit-lib.AssemblyError");
    CONTEXT_PROVIDER_ERROR_SYMBOL = Symbol.for("@aws-cdk/toolkit-lib.ContextProviderError");
    NO_RESULTS_FOUND_ERROR_SYMBOL = Symbol.for("@aws-cdk/toolkit-lib.NoResultsFoundError");
    ToolkitError = class _ToolkitError extends Error {
      static {
        __name(this, "ToolkitError");
      }
      /**
       * Determines if a given error is an instance of ToolkitError.
       */
      static isToolkitError(x3) {
        return x3 !== null && typeof x3 === "object" && TOOLKIT_ERROR_SYMBOL in x3;
      }
      /**
       * Determines if a given error is an instance of AuthenticationError.
       */
      static isAuthenticationError(x3) {
        return _ToolkitError.isToolkitError(x3) && AUTHENTICATION_ERROR_SYMBOL in x3;
      }
      /**
       * Determines if a given error is an instance of AssemblyError.
       */
      static isAssemblyError(x3) {
        return _ToolkitError.isToolkitError(x3) && ASSEMBLY_ERROR_SYMBOL in x3;
      }
      /**
       * Determines if a given error is an instance of ContextProviderError.
       */
      static isContextProviderError(x3) {
        return _ToolkitError.isToolkitError(x3) && CONTEXT_PROVIDER_ERROR_SYMBOL in x3;
      }
      /**
       * A ToolkitError with an original error as cause
       */
      static withCause(message2, error5) {
        return new _ToolkitError(message2, "toolkit", error5);
      }
      /**
       * The type of the error, defaults to "toolkit".
       */
      type;
      /**
       * Denotes the source of the error as the toolkit.
       */
      source;
      /**
       * The specific original cause of the error, if available
       */
      cause;
      constructor(message2, type = "toolkit", cause) {
        super(message2);
        Object.setPrototypeOf(this, _ToolkitError.prototype);
        Object.defineProperty(this, TOOLKIT_ERROR_SYMBOL, { value: true });
        this.name = new.target.name;
        this.type = type;
        this.source = "toolkit";
        this.cause = cause;
      }
    };
    AuthenticationError = class _AuthenticationError extends ToolkitError {
      static {
        __name(this, "AuthenticationError");
      }
      /**
       * Denotes the source of the error as user.
       */
      source = "user";
      constructor(message2) {
        super(message2, "authentication");
        Object.setPrototypeOf(this, _AuthenticationError.prototype);
        Object.defineProperty(this, AUTHENTICATION_ERROR_SYMBOL, { value: true });
      }
    };
    AssemblyError = class _AssemblyError extends ToolkitError {
      static {
        __name(this, "AssemblyError");
      }
      /**
       * An AssemblyError with an original error as cause
       */
      static withCause(message2, error5) {
        return new _AssemblyError(message2, void 0, error5);
      }
      /**
       * An AssemblyError with a list of stacks as cause
       */
      static withStacks(message2, stacks) {
        return new _AssemblyError(message2, stacks);
      }
      /**
       * Denotes the source of the error as user.
       */
      source = "user";
      /**
       * The stacks that caused the error, if available
       *
       * The `messages` property of each `cxapi.CloudFormationStackArtifact` will contain the respective errors.
       * Absence indicates synthesis didn't fully complete.
       */
      stacks;
      constructor(message2, stacks, cause) {
        super(message2, "assembly", cause);
        Object.setPrototypeOf(this, _AssemblyError.prototype);
        Object.defineProperty(this, ASSEMBLY_ERROR_SYMBOL, { value: true });
        this.stacks = stacks;
      }
    };
    ContextProviderError = class _ContextProviderError extends ToolkitError {
      static {
        __name(this, "ContextProviderError");
      }
      /**
       * Determines if a given error is an instance of NoResultsFoundError.
       */
      static isNoResultsFoundError(x3) {
        return ToolkitError.isContextProviderError(x3) && NO_RESULTS_FOUND_ERROR_SYMBOL in x3;
      }
      /**
       * A ContextProviderError with an original error as cause
       */
      static withCause(message2, error5) {
        return new _ContextProviderError(message2, error5);
      }
      /**
       * Denotes the source of the error as user.
       */
      source = "user";
      constructor(message2, cause) {
        super(message2, "context-provider", cause);
        Object.setPrototypeOf(this, _ContextProviderError.prototype);
        Object.defineProperty(this, CONTEXT_PROVIDER_ERROR_SYMBOL, { value: true });
      }
    };
    NoResultsFoundError = class _NoResultsFoundError extends ContextProviderError {
      static {
        __name(this, "NoResultsFoundError");
      }
      constructor(message2) {
        super(message2);
        Object.setPrototypeOf(this, _NoResultsFoundError.prototype);
        Object.defineProperty(this, NO_RESULTS_FOUND_ERROR_SYMBOL, { value: true });
      }
    };
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/plugin/context-provider-plugin.ts
function isContextProviderPlugin(x3) {
  return typeof x3 === "object" && !!x3 && !!x3.getValue;
}
var init_context_provider_plugin = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/plugin/context-provider-plugin.ts"() {
    "use strict";
    __name(isContextProviderPlugin, "isContextProviderPlugin");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/io/private/io-host-wrappers.ts
function withoutColor(ioHost) {
  return {
    notify: /* @__PURE__ */ __name(async (msg) => {
      await ioHost.notify({
        ...msg,
        message: stripColor(msg.message)
      });
    }, "notify"),
    requestResponse: /* @__PURE__ */ __name(async (msg) => {
      return ioHost.requestResponse({
        ...msg,
        message: stripColor(msg.message)
      });
    }, "requestResponse")
  };
}
function stripColor(msg) {
  return msg.replace(/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g, "");
}
function withoutEmojis(ioHost) {
  return {
    notify: /* @__PURE__ */ __name(async (msg) => {
      await ioHost.notify({
        ...msg,
        message: stripEmojis(msg.message)
      });
    }, "notify"),
    requestResponse: /* @__PURE__ */ __name(async (msg) => {
      return ioHost.requestResponse({
        ...msg,
        message: stripEmojis(msg.message)
      });
    }, "requestResponse")
  };
}
function stripEmojis(msg) {
  return msg.replace(new RegExp("\\p{Emoji_Presentation}", "gu"), "");
}
function withTrimmedWhitespace(ioHost) {
  return {
    notify: /* @__PURE__ */ __name(async (msg) => {
      await ioHost.notify({
        ...msg,
        message: msg.message.trim()
      });
    }, "notify"),
    requestResponse: /* @__PURE__ */ __name(async (msg) => {
      return ioHost.requestResponse({
        ...msg,
        message: msg.message.trim()
      });
    }, "requestResponse")
  };
}
var init_io_host_wrappers = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/io/private/io-host-wrappers.ts"() {
    "use strict";
    __name(withoutColor, "withoutColor");
    __name(stripColor, "stripColor");
    __name(withoutEmojis, "withoutEmojis");
    __name(stripEmojis, "stripEmojis");
    __name(withTrimmedWhitespace, "withTrimmedWhitespace");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/io/private/io-default-messages.ts
var util, IoDefaultMessages;
var init_io_default_messages = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/io/private/io-default-messages.ts"() {
    "use strict";
    util = __toESM(require("util"));
    IoDefaultMessages = class {
      static {
        __name(this, "IoDefaultMessages");
      }
      ioHelper;
      constructor(ioHelper) {
        this.ioHelper = ioHelper;
      }
      async notify(msg) {
        return this.ioHelper.notify({
          ...msg,
          code: void 0
        });
      }
      async error(input, ...args) {
        return this.emitMessage("error", input, ...args);
      }
      async warn(input, ...args) {
        return this.emitMessage("warn", input, ...args);
      }
      async warning(input, ...args) {
        return this.emitMessage("warn", input, ...args);
      }
      async info(input, ...args) {
        return this.emitMessage("info", input, ...args);
      }
      async debug(input, ...args) {
        return this.emitMessage("debug", input, ...args);
      }
      async trace(input, ...args) {
        return this.emitMessage("trace", input, ...args);
      }
      async result(input, ...args) {
        return this.emitMessage("result", input, ...args);
      }
      /**
       * Makes a default message object from a level and a message
       */
      msg(level, input, ...args) {
        const message2 = args.length > 0 ? util.format(input, ...args) : input;
        return {
          time: /* @__PURE__ */ new Date(),
          level,
          message: message2,
          data: void 0
        };
      }
      async emitMessage(level, input, ...args) {
        return this.ioHelper.notify(this.msg(level, input, ...args));
      }
    };
  }
});

// ../@aws-cdk/toolkit-lib/node_modules/uuid/dist/esm/stringify.js
function unsafeStringify2(arr, offset = 0) {
  return (byteToHex2[arr[offset + 0]] + byteToHex2[arr[offset + 1]] + byteToHex2[arr[offset + 2]] + byteToHex2[arr[offset + 3]] + "-" + byteToHex2[arr[offset + 4]] + byteToHex2[arr[offset + 5]] + "-" + byteToHex2[arr[offset + 6]] + byteToHex2[arr[offset + 7]] + "-" + byteToHex2[arr[offset + 8]] + byteToHex2[arr[offset + 9]] + "-" + byteToHex2[arr[offset + 10]] + byteToHex2[arr[offset + 11]] + byteToHex2[arr[offset + 12]] + byteToHex2[arr[offset + 13]] + byteToHex2[arr[offset + 14]] + byteToHex2[arr[offset + 15]]).toLowerCase();
}
var byteToHex2;
var init_stringify2 = __esm({
  "../@aws-cdk/toolkit-lib/node_modules/uuid/dist/esm/stringify.js"() {
    byteToHex2 = [];
    for (let i3 = 0; i3 < 256; ++i3) {
      byteToHex2.push((i3 + 256).toString(16).slice(1));
    }
    __name(unsafeStringify2, "unsafeStringify");
  }
});

// ../@aws-cdk/toolkit-lib/node_modules/uuid/dist/esm/rng.js
function rng2() {
  if (poolPtr2 > rnds8Pool2.length - 16) {
    (0, import_crypto5.randomFillSync)(rnds8Pool2);
    poolPtr2 = 0;
  }
  return rnds8Pool2.slice(poolPtr2, poolPtr2 += 16);
}
var import_crypto5, rnds8Pool2, poolPtr2;
var init_rng2 = __esm({
  "../@aws-cdk/toolkit-lib/node_modules/uuid/dist/esm/rng.js"() {
    import_crypto5 = require("crypto");
    rnds8Pool2 = new Uint8Array(256);
    poolPtr2 = rnds8Pool2.length;
    __name(rng2, "rng");
  }
});

// ../@aws-cdk/toolkit-lib/node_modules/uuid/dist/esm/native.js
var import_crypto6, native_default2;
var init_native2 = __esm({
  "../@aws-cdk/toolkit-lib/node_modules/uuid/dist/esm/native.js"() {
    import_crypto6 = require("crypto");
    native_default2 = { randomUUID: import_crypto6.randomUUID };
  }
});

// ../@aws-cdk/toolkit-lib/node_modules/uuid/dist/esm/v4.js
function v42(options, buf, offset) {
  if (native_default2.randomUUID && !buf && !options) {
    return native_default2.randomUUID();
  }
  options = options || {};
  const rnds = options.random ?? options.rng?.() ?? rng2();
  if (rnds.length < 16) {
    throw new Error("Random bytes length must be >= 16");
  }
  rnds[6] = rnds[6] & 15 | 64;
  rnds[8] = rnds[8] & 63 | 128;
  if (buf) {
    offset = offset || 0;
    if (offset < 0 || offset + 16 > buf.length) {
      throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);
    }
    for (let i3 = 0; i3 < 16; ++i3) {
      buf[offset + i3] = rnds[i3];
    }
    return buf;
  }
  return unsafeStringify2(rnds);
}
var v4_default2;
var init_v42 = __esm({
  "../@aws-cdk/toolkit-lib/node_modules/uuid/dist/esm/v4.js"() {
    init_native2();
    init_rng2();
    init_stringify2();
    __name(v42, "v4");
    v4_default2 = v42;
  }
});

// ../@aws-cdk/toolkit-lib/node_modules/uuid/dist/esm/index.js
var init_esm8 = __esm({
  "../@aws-cdk/toolkit-lib/node_modules/uuid/dist/esm/index.js"() {
    init_v42();
  }
});

// ../@aws-cdk/toolkit-lib/lib/util/format-error.ts
function formatErrorMessage(error5) {
  if (error5 && Array.isArray(error5.errors)) {
    const innerMessages = error5.errors.map((innerError) => innerError?.message || innerError?.toString()).join("\n");
    return `AggregateError: ${innerMessages}`;
  }
  if (ToolkitError.isToolkitError(error5) && error5.cause) {
    return `${error5.message}
${formatErrorMessage(error5.cause)}`;
  }
  return error5?.message || error5?.toString() || "Unknown error";
}
var init_format_error = __esm({
  "../@aws-cdk/toolkit-lib/lib/util/format-error.ts"() {
    "use strict";
    init_toolkit_error();
    __name(formatErrorMessage, "formatErrorMessage");
  }
});

// ../@aws-cdk/toolkit-lib/lib/util/archive.ts
async function zipDirectory2(directory, outputFile) {
  const temporaryOutputFile = `${outputFile}.${randomString2()}._tmp`;
  await writeZipFile2(directory, temporaryOutputFile);
  await moveIntoPlace2(temporaryOutputFile, outputFile);
}
function writeZipFile2(directory, outputFile) {
  return new Promise(async (ok, fail) => {
    const globOptions = {
      dot: true,
      nodir: true,
      follow: true,
      cwd: directory
    };
    const files = sync("**", globOptions);
    const output = (0, import_fs4.createWriteStream)(outputFile);
    const archive = archiver2("zip");
    archive.on("warning", fail);
    archive.on("error", fail);
    output.once("close", ok);
    archive.pipe(output);
    for (const file of files) {
      const fullPath = path8.resolve(directory, file);
      const [data3, stat5] = await Promise.all([import_fs4.promises.readFile(fullPath), import_fs4.promises.stat(fullPath)]);
      archive.append(data3, {
        name: file,
        mode: stat5.mode
      });
    }
    await archive.finalize();
  });
}
async function moveIntoPlace2(source, target) {
  let delay = 100;
  let attempts = 5;
  while (true) {
    try {
      await import_fs4.promises.rename(source, target);
      return;
    } catch (e3) {
      if (e3.code !== "EPERM" || attempts-- <= 0) {
        throw e3;
      }
      (0, import_console.error)(formatErrorMessage(e3));
      await sleep2(Math.floor(Math.random() * delay));
      delay *= 2;
    }
  }
}
function sleep2(ms) {
  return new Promise((ok) => setTimeout(ok, ms));
}
function randomString2() {
  return Math.random().toString(36).replace(/[^a-z0-9]+/g, "");
}
var import_console, import_fs4, path8, archiver2;
var init_archive2 = __esm({
  "../@aws-cdk/toolkit-lib/lib/util/archive.ts"() {
    "use strict";
    import_console = require("console");
    import_fs4 = require("fs");
    path8 = __toESM(require("path"));
    init_esm7();
    init_format_error();
    archiver2 = require_archiver();
    __name(zipDirectory2, "zipDirectory");
    __name(writeZipFile2, "writeZipFile");
    __name(moveIntoPlace2, "moveIntoPlace");
    __name(sleep2, "sleep");
    __name(randomString2, "randomString");
  }
});

// ../@aws-cdk/toolkit-lib/lib/util/arrays.ts
function flatMap(xs, fn) {
  return flatten2(xs.map(fn));
}
function flatten2(xs) {
  return Array.prototype.concat.apply([], xs);
}
function partition(collection, pred) {
  const ret = [];
  let i3 = 0;
  while (i3 < collection.length) {
    if (pred(collection[i3])) {
      ret.push(collection.splice(i3, 1)[0]);
    } else {
      i3++;
    }
  }
  return ret;
}
async function indexBy(xs, fn) {
  const ret = /* @__PURE__ */ new Map();
  for (const x3 of xs) {
    const key = await fn(x3);
    const group = ret.get(key);
    if (group) {
      group.push(x3);
    } else {
      ret.set(key, [x3]);
    }
  }
  return ret;
}
var init_arrays = __esm({
  "../@aws-cdk/toolkit-lib/lib/util/arrays.ts"() {
    "use strict";
    __name(flatMap, "flatMap");
    __name(flatten2, "flatten");
    __name(partition, "partition");
    __name(indexBy, "indexBy");
  }
});

// ../@aws-cdk/toolkit-lib/lib/util/bool.ts
function numberFromBool(bool) {
  return +bool;
}
var init_bool = __esm({
  "../@aws-cdk/toolkit-lib/lib/util/bool.ts"() {
    "use strict";
    __name(numberFromBool, "numberFromBool");
  }
});

// ../@aws-cdk/toolkit-lib/lib/util/bytes.ts
function formatBytes(bytes, decimals = 2) {
  decimals = decimals < 0 ? 0 : decimals;
  if (bytes === 0) {
    return "0 Bytes";
  }
  const k3 = 1024;
  const sizes = ["Bytes", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"];
  const i3 = Math.floor(Math.log(bytes) / Math.log(k3));
  return `${parseFloat((bytes / Math.pow(k3, i3)).toFixed(decimals))} ${sizes[i3]}`;
}
var init_bytes = __esm({
  "../@aws-cdk/toolkit-lib/lib/util/bytes.ts"() {
    "use strict";
    __name(formatBytes, "formatBytes");
  }
});

// ../@aws-cdk/toolkit-lib/lib/util/cloudformation.ts
function validateSnsTopicArn(arn) {
  return /^arn:aws:sns:[a-z0-9\-]+:[0-9]+:[a-z0-9\-\_]+$/i.test(arn);
}
function stackEventHasErrorMessage(status) {
  return status.endsWith("_FAILED") || status === "ROLLBACK_IN_PROGRESS" || status === "UPDATE_ROLLBACK_IN_PROGRESS";
}
function maxResourceTypeLength(template, startWidth = "AWS::CloudFormation::Stack".length) {
  const resources = template && template.Resources || {};
  let maxWidth = startWidth;
  for (const id of Object.keys(resources)) {
    const type = resources[id].Type || "";
    if (type.length > maxWidth) {
      maxWidth = type.length;
    }
  }
  return maxWidth;
}
var init_cloudformation = __esm({
  "../@aws-cdk/toolkit-lib/lib/util/cloudformation.ts"() {
    "use strict";
    __name(validateSnsTopicArn, "validateSnsTopicArn");
    __name(stackEventHasErrorMessage, "stackEventHasErrorMessage");
    __name(maxResourceTypeLength, "maxResourceTypeLength");
  }
});

// ../@aws-cdk/toolkit-lib/lib/util/content-hash.ts
function contentHash(data3) {
  return crypto5.createHash("sha256").update(data3).digest("hex");
}
function contentHashAny(value) {
  const ret = crypto5.createHash("sha256");
  recurse(value);
  return ret.digest("hex");
  function recurse(x3) {
    if (typeof x3 === "string") {
      ret.update(x3);
      return;
    }
    if (Array.isArray(x3)) {
      ret.update("[");
      for (const e3 of x3) {
        recurse(e3);
        ret.update("||");
      }
      ret.update("]");
      return;
    }
    if (x3 && typeof x3 === "object") {
      ret.update("{");
      for (const key of Object.keys(x3).sort()) {
        ret.update(key);
        ret.update(":");
        recurse(x3[key]);
      }
      ret.update("}");
      return;
    }
    ret.update(`${x3}${typeof x3}`);
  }
  __name(recurse, "recurse");
}
var crypto5;
var init_content_hash = __esm({
  "../@aws-cdk/toolkit-lib/lib/util/content-hash.ts"() {
    "use strict";
    crypto5 = __toESM(require("crypto"));
    __name(contentHash, "contentHash");
    __name(contentHashAny, "contentHashAny");
  }
});

// ../@aws-cdk/toolkit-lib/lib/util/directories.ts
function cdkHomeDir() {
  const tmpDir = fs9.realpathSync(os4.tmpdir());
  let home;
  try {
    let userInfoHome = os4.userInfo().homedir;
    if (userInfoHome == "/var/empty") {
      userInfoHome = void 0;
    }
    home = path9.join((userInfoHome ?? os4.homedir()).trim(), ".cdk");
  } catch {
  }
  return process.env.CDK_HOME ? path9.resolve(process.env.CDK_HOME) : home || fs9.mkdtempSync(path9.join(tmpDir, ".cdk")).trim();
}
function cdkCacheDir() {
  return path9.join(cdkHomeDir(), "cache");
}
function bundledPackageRootDir(start, fail) {
  function _rootDir(dirname11) {
    const manifestPath = path9.join(dirname11, "package.json");
    if (fs9.existsSync(manifestPath)) {
      return dirname11;
    }
    if (path9.dirname(dirname11) === dirname11) {
      if (fail ?? true) {
        throw new ToolkitError("Unable to find package manifest");
      }
      return void 0;
    }
    return _rootDir(path9.dirname(dirname11));
  }
  __name(_rootDir, "_rootDir");
  return _rootDir(start);
}
var fs9, os4, path9;
var init_directories = __esm({
  "../@aws-cdk/toolkit-lib/lib/util/directories.ts"() {
    "use strict";
    fs9 = __toESM(require("fs"));
    os4 = __toESM(require("os"));
    path9 = __toESM(require("path"));
    init_toolkit_error();
    __name(cdkHomeDir, "cdkHomeDir");
    __name(cdkCacheDir, "cdkCacheDir");
    __name(bundledPackageRootDir, "bundledPackageRootDir");
  }
});

// ../@aws-cdk/toolkit-lib/lib/util/json.ts
function getResultObj(jsonObject, identifier, propertiesToReturn) {
  const propsObj = {};
  propertiesToReturn.forEach((propName2) => {
    Object.assign(propsObj, { [propName2]: findJsonValue(jsonObject, propName2) });
  });
  Object.assign(propsObj, { ["Identifier"]: identifier });
  return propsObj;
}
function findJsonValue(jsonObject, path38) {
  const paths = path38.split(".");
  let obj = jsonObject;
  paths.forEach((p3) => {
    obj = obj[p3];
    if (obj === void 0) {
      throw new TypeError(`Cannot read field ${path38}. ${p3} is not found.`);
    }
  });
  return obj;
}
var init_json = __esm({
  "../@aws-cdk/toolkit-lib/lib/util/json.ts"() {
    "use strict";
    __name(getResultObj, "getResultObj");
    __name(findJsonValue, "findJsonValue");
  }
});

// ../@aws-cdk/toolkit-lib/lib/util/net.ts
function humanNetworkError(error5) {
  switch (error5.code) {
    case "ENOTFOUND":
      return `Cannot reach the server. Please check your internet connection or the URL (${error5.hostname}).`;
    case "ECONNREFUSED":
      return `Connection refused. The server at ${error5.address}:${error5.port} is not accepting connections.`;
    case "ECONNRESET":
      return "Connection was suddenly closed by the server. Please try again later.";
    case "ETIMEDOUT":
      return "Connection timed out. The server took too long to respond.";
    case "CERT_HAS_EXPIRED":
      return "The SSL certificate of the server has expired. This could be a security risk.";
    case "UNABLE_TO_VERIFY_LEAF_SIGNATURE":
    case "CERT_SIGNATURE_FAILURE":
    case "ERR_TLS_CERT_ALTNAME_INVALID":
      return "SSL certificate validation failed. This could indicate a security issue or a misconfigured server.";
    default:
      return `Network error: ${error5.message || error5.code || "Unknown error"}`;
  }
}
function humanHttpStatusError(statusCode) {
  switch (statusCode) {
    case 400:
      return "Bad request - the server could not understand the request";
    case 401:
      return "Unauthorized - authentication is required";
    case 403:
      return "Forbidden - you do not have permission to access this resource";
    case 404:
      return "Not found - the requested resource does not exist";
    case 408:
      return "Request timeout - the server timed out waiting for the request";
    case 429:
      return "Too many requests - you have sent too many requests in a given amount of time";
    case 500:
      return "Internal server error - something went wrong on the server";
    case 502:
      return "Bad gateway - the server received an invalid response from an upstream server";
    case 503:
      return "Service unavailable - the server is temporarily unable to handle the request";
    case 504:
      return "Gateway timeout - the server did not receive a timely response from an upstream server";
    default:
      return statusCode >= 500 ? "Server error - something went wrong on the server" : "Client error - something went wrong with the request";
  }
}
var init_net = __esm({
  "../@aws-cdk/toolkit-lib/lib/util/net.ts"() {
    "use strict";
    __name(humanNetworkError, "humanNetworkError");
    __name(humanHttpStatusError, "humanHttpStatusError");
  }
});

// ../@aws-cdk/toolkit-lib/lib/util/types.ts
function isObject(x3) {
  return x3 !== null && typeof x3 === "object" && !isArray(x3);
}
function ifDefined(x3, def) {
  return typeof x3 !== "undefined" ? x3 : def;
}
var isArray;
var init_types = __esm({
  "../@aws-cdk/toolkit-lib/lib/util/types.ts"() {
    "use strict";
    __name(isObject, "isObject");
    isArray = Array.isArray;
    __name(ifDefined, "ifDefined");
  }
});

// ../@aws-cdk/toolkit-lib/lib/util/objects.ts
function isEmpty(x3) {
  if (x3 == null) {
    return false;
  }
  if (isArray(x3)) {
    return x3.length === 0;
  }
  return Object.keys(x3).length === 0;
}
function deepClone(x3) {
  if (typeof x3 === "undefined") {
    return void 0;
  }
  if (x3 === null) {
    return null;
  }
  if (isArray(x3)) {
    return x3.map(deepClone);
  }
  if (isObject(x3)) {
    return makeObject(mapObject(x3, (k3, v6) => [k3, deepClone(v6)]));
  }
  return x3;
}
function mapObject(x3, fn) {
  const ret = [];
  Object.keys(x3).forEach((key) => {
    ret.push(fn(key, x3[key]));
  });
  return ret;
}
function makeObject(pairs) {
  const ret = {};
  for (const pair of pairs) {
    ret[pair[0]] = pair[1];
  }
  return ret;
}
function deepGet(x3, path38) {
  path38 = path38.slice();
  while (path38.length > 0 && isObject(x3)) {
    const key = path38.shift();
    x3 = x3[key];
  }
  return path38.length === 0 ? x3 : void 0;
}
function deepSet(x3, path38, value) {
  path38 = path38.slice();
  if (path38.length === 0) {
    throw new ToolkitError("Path may not be empty");
  }
  while (path38.length > 1 && isObject(x3)) {
    const key = path38.shift();
    if (isPrototypePollutingKey(key)) {
      continue;
    }
    if (!(key in x3)) {
      x3[key] = {};
    }
    x3 = x3[key];
  }
  if (!isObject(x3)) {
    throw new ToolkitError(`Expected an object, got '${x3}'`);
  }
  const finalKey = path38[0];
  if (isPrototypePollutingKey(finalKey)) {
    return;
  }
  if (value !== void 0) {
    x3[finalKey] = value;
  } else {
    delete x3[finalKey];
  }
}
function isPrototypePollutingKey(key) {
  return key === "__proto__" || key === "constructor" || key === "prototype";
}
function deepMerge(...objects) {
  function mergeOne(target, source) {
    for (const key of Object.keys(source)) {
      if (isPrototypePollutingKey(key)) {
        continue;
      }
      const value = source[key];
      if (isObject(value)) {
        if (!isObject(target[key])) {
          target[key] = {};
        }
        mergeOne(target[key], value);
      } else if (typeof value !== "undefined") {
        target[key] = value;
      }
    }
  }
  __name(mergeOne, "mergeOne");
  const others = objects.filter((x3) => x3 != null);
  if (others.length === 0) {
    return {};
  }
  const into = others.splice(0, 1)[0];
  others.forEach((other) => mergeOne(into, other));
  return into;
}
function splitBySize(data3, maxSizeBytes) {
  if (maxSizeBytes < 2) {
    return [void 0, data3];
  }
  const entries = Object.entries(data3);
  return recurse(0, 0);
  function recurse(index, runningTotalSize) {
    if (index >= entries.length) {
      return [data3, void 0];
    }
    const size = runningTotalSize + entrySize(entries[index]);
    return size > maxSizeBytes ? cutAt(index) : recurse(index + 1, size);
  }
  __name(recurse, "recurse");
  function entrySize(entry) {
    return Buffer.byteLength(JSON.stringify(Object.fromEntries([entry])));
  }
  __name(entrySize, "entrySize");
  function cutAt(index) {
    return [
      Object.fromEntries(entries.slice(0, index)),
      Object.fromEntries(entries.slice(index))
    ];
  }
  __name(cutAt, "cutAt");
}
function transformObjectKeys(val, transform, exclude = {}) {
  if (val == null || typeof val !== "object") {
    return val;
  }
  if (Array.isArray(val)) {
    return val.map((input) => transformObjectKeys(input, transform, exclude));
  }
  const ret = {};
  for (const [k3, v6] of Object.entries(val)) {
    const childExclude = exclude[k3];
    if (childExclude === true) {
      ret[transform(k3)] = v6;
    } else {
      ret[transform(k3)] = transformObjectKeys(v6, transform, childExclude);
    }
  }
  return ret;
}
function noUndefined2(xs) {
  return Object.fromEntries(Object.entries(xs).filter(([_3, v6]) => v6 !== void 0));
}
var init_objects = __esm({
  "../@aws-cdk/toolkit-lib/lib/util/objects.ts"() {
    "use strict";
    init_types();
    init_toolkit_error();
    __name(isEmpty, "isEmpty");
    __name(deepClone, "deepClone");
    __name(mapObject, "mapObject");
    __name(makeObject, "makeObject");
    __name(deepGet, "deepGet");
    __name(deepSet, "deepSet");
    __name(isPrototypePollutingKey, "isPrototypePollutingKey");
    __name(deepMerge, "deepMerge");
    __name(splitBySize, "splitBySize");
    __name(transformObjectKeys, "transformObjectKeys");
    __name(noUndefined2, "noUndefined");
  }
});

// ../@aws-cdk/toolkit-lib/lib/util/parallel.ts
async function parallelPromises(n3, promises3) {
  const ret = new Array();
  let count = 0;
  let error5;
  const queue = [...promises3];
  return new Promise((ok, ko) => {
    tick();
    function tick() {
      if (count === 0 && error5) {
        ko(error5);
        return;
      }
      if (count === 0 && queue.length === 0) {
        ok(ret);
        return;
      }
      while (count < n3 && queue.length > 0 && !error5) {
        const next = queue.shift();
        if (next !== void 0) {
          start(next);
        }
      }
    }
    __name(tick, "tick");
    function start(fn) {
      count += 1;
      fn().then((result2) => {
        ret.push(result2);
      }).catch((e3) => {
        error5 = e3;
      }).finally(() => {
        count -= 1;
        tick();
      });
    }
    __name(start, "start");
  });
}
var init_parallel = __esm({
  "../@aws-cdk/toolkit-lib/lib/util/parallel.ts"() {
    "use strict";
    __name(parallelPromises, "parallelPromises");
  }
});

// ../@aws-cdk/toolkit-lib/lib/util/package-info.ts
function versionNumber() {
  return require(path10.join(bundledPackageRootDir(__dirname), "package.json")).version.replace(/\+[0-9a-f]+$/, "");
}
var path10;
var init_package_info = __esm({
  "../@aws-cdk/toolkit-lib/lib/util/package-info.ts"() {
    "use strict";
    path10 = __toESM(require("path"));
    init_directories();
    __name(versionNumber, "versionNumber");
  }
});

// ../../node_modules/yaml/dist/PlainValue-ec8e588e.js
var require_PlainValue_ec8e588e = __commonJS({
  "../../node_modules/yaml/dist/PlainValue-ec8e588e.js"(exports2) {
    "use strict";
    var Char = {
      ANCHOR: "&",
      COMMENT: "#",
      TAG: "!",
      DIRECTIVES_END: "-",
      DOCUMENT_END: "."
    };
    var Type = {
      ALIAS: "ALIAS",
      BLANK_LINE: "BLANK_LINE",
      BLOCK_FOLDED: "BLOCK_FOLDED",
      BLOCK_LITERAL: "BLOCK_LITERAL",
      COMMENT: "COMMENT",
      DIRECTIVE: "DIRECTIVE",
      DOCUMENT: "DOCUMENT",
      FLOW_MAP: "FLOW_MAP",
      FLOW_SEQ: "FLOW_SEQ",
      MAP: "MAP",
      MAP_KEY: "MAP_KEY",
      MAP_VALUE: "MAP_VALUE",
      PLAIN: "PLAIN",
      QUOTE_DOUBLE: "QUOTE_DOUBLE",
      QUOTE_SINGLE: "QUOTE_SINGLE",
      SEQ: "SEQ",
      SEQ_ITEM: "SEQ_ITEM"
    };
    var defaultTagPrefix = "tag:yaml.org,2002:";
    var defaultTags = {
      MAP: "tag:yaml.org,2002:map",
      SEQ: "tag:yaml.org,2002:seq",
      STR: "tag:yaml.org,2002:str"
    };
    function findLineStarts(src) {
      const ls = [0];
      let offset = src.indexOf("\n");
      while (offset !== -1) {
        offset += 1;
        ls.push(offset);
        offset = src.indexOf("\n", offset);
      }
      return ls;
    }
    __name(findLineStarts, "findLineStarts");
    function getSrcInfo(cst) {
      let lineStarts, src;
      if (typeof cst === "string") {
        lineStarts = findLineStarts(cst);
        src = cst;
      } else {
        if (Array.isArray(cst)) cst = cst[0];
        if (cst && cst.context) {
          if (!cst.lineStarts) cst.lineStarts = findLineStarts(cst.context.src);
          lineStarts = cst.lineStarts;
          src = cst.context.src;
        }
      }
      return {
        lineStarts,
        src
      };
    }
    __name(getSrcInfo, "getSrcInfo");
    function getLinePos(offset, cst) {
      if (typeof offset !== "number" || offset < 0) return null;
      const {
        lineStarts,
        src
      } = getSrcInfo(cst);
      if (!lineStarts || !src || offset > src.length) return null;
      for (let i3 = 0; i3 < lineStarts.length; ++i3) {
        const start = lineStarts[i3];
        if (offset < start) {
          return {
            line: i3,
            col: offset - lineStarts[i3 - 1] + 1
          };
        }
        if (offset === start) return {
          line: i3 + 1,
          col: 1
        };
      }
      const line = lineStarts.length;
      return {
        line,
        col: offset - lineStarts[line - 1] + 1
      };
    }
    __name(getLinePos, "getLinePos");
    function getLine(line, cst) {
      const {
        lineStarts,
        src
      } = getSrcInfo(cst);
      if (!lineStarts || !(line >= 1) || line > lineStarts.length) return null;
      const start = lineStarts[line - 1];
      let end = lineStarts[line];
      while (end && end > start && src[end - 1] === "\n") --end;
      return src.slice(start, end);
    }
    __name(getLine, "getLine");
    function getPrettyContext({
      start,
      end
    }, cst, maxWidth = 80) {
      let src = getLine(start.line, cst);
      if (!src) return null;
      let {
        col
      } = start;
      if (src.length > maxWidth) {
        if (col <= maxWidth - 10) {
          src = src.substr(0, maxWidth - 1) + "\u2026";
        } else {
          const halfWidth = Math.round(maxWidth / 2);
          if (src.length > col + halfWidth) src = src.substr(0, col + halfWidth - 1) + "\u2026";
          col -= src.length - maxWidth;
          src = "\u2026" + src.substr(1 - maxWidth);
        }
      }
      let errLen = 1;
      let errEnd = "";
      if (end) {
        if (end.line === start.line && col + (end.col - start.col) <= maxWidth + 1) {
          errLen = end.col - start.col;
        } else {
          errLen = Math.min(src.length + 1, maxWidth) - col;
          errEnd = "\u2026";
        }
      }
      const offset = col > 1 ? " ".repeat(col - 1) : "";
      const err = "^".repeat(errLen);
      return `${src}
${offset}${err}${errEnd}`;
    }
    __name(getPrettyContext, "getPrettyContext");
    var Range = class _Range {
      static {
        __name(this, "Range");
      }
      static copy(orig) {
        return new _Range(orig.start, orig.end);
      }
      constructor(start, end) {
        this.start = start;
        this.end = end || start;
      }
      isEmpty() {
        return typeof this.start !== "number" || !this.end || this.end <= this.start;
      }
      /**
       * Set `origStart` and `origEnd` to point to the original source range for
       * this node, which may differ due to dropped CR characters.
       *
       * @param {number[]} cr - Positions of dropped CR characters
       * @param {number} offset - Starting index of `cr` from the last call
       * @returns {number} - The next offset, matching the one found for `origStart`
       */
      setOrigRange(cr, offset) {
        const {
          start,
          end
        } = this;
        if (cr.length === 0 || end <= cr[0]) {
          this.origStart = start;
          this.origEnd = end;
          return offset;
        }
        let i3 = offset;
        while (i3 < cr.length) {
          if (cr[i3] > start) break;
          else ++i3;
        }
        this.origStart = start + i3;
        const nextOffset = i3;
        while (i3 < cr.length) {
          if (cr[i3] >= end) break;
          else ++i3;
        }
        this.origEnd = end + i3;
        return nextOffset;
      }
    };
    var Node2 = class _Node {
      static {
        __name(this, "Node");
      }
      static addStringTerminator(src, offset, str) {
        if (str[str.length - 1] === "\n") return str;
        const next = _Node.endOfWhiteSpace(src, offset);
        return next >= src.length || src[next] === "\n" ? str + "\n" : str;
      }
      // ^(---|...)
      static atDocumentBoundary(src, offset, sep5) {
        const ch0 = src[offset];
        if (!ch0) return true;
        const prev = src[offset - 1];
        if (prev && prev !== "\n") return false;
        if (sep5) {
          if (ch0 !== sep5) return false;
        } else {
          if (ch0 !== Char.DIRECTIVES_END && ch0 !== Char.DOCUMENT_END) return false;
        }
        const ch1 = src[offset + 1];
        const ch2 = src[offset + 2];
        if (ch1 !== ch0 || ch2 !== ch0) return false;
        const ch3 = src[offset + 3];
        return !ch3 || ch3 === "\n" || ch3 === "	" || ch3 === " ";
      }
      static endOfIdentifier(src, offset) {
        let ch = src[offset];
        const isVerbatim = ch === "<";
        const notOk = isVerbatim ? ["\n", "	", " ", ">"] : ["\n", "	", " ", "[", "]", "{", "}", ","];
        while (ch && notOk.indexOf(ch) === -1) ch = src[offset += 1];
        if (isVerbatim && ch === ">") offset += 1;
        return offset;
      }
      static endOfIndent(src, offset) {
        let ch = src[offset];
        while (ch === " ") ch = src[offset += 1];
        return offset;
      }
      static endOfLine(src, offset) {
        let ch = src[offset];
        while (ch && ch !== "\n") ch = src[offset += 1];
        return offset;
      }
      static endOfWhiteSpace(src, offset) {
        let ch = src[offset];
        while (ch === "	" || ch === " ") ch = src[offset += 1];
        return offset;
      }
      static startOfLine(src, offset) {
        let ch = src[offset - 1];
        if (ch === "\n") return offset;
        while (ch && ch !== "\n") ch = src[offset -= 1];
        return offset + 1;
      }
      /**
       * End of indentation, or null if the line's indent level is not more
       * than `indent`
       *
       * @param {string} src
       * @param {number} indent
       * @param {number} lineStart
       * @returns {?number}
       */
      static endOfBlockIndent(src, indent, lineStart) {
        const inEnd = _Node.endOfIndent(src, lineStart);
        if (inEnd > lineStart + indent) {
          return inEnd;
        } else {
          const wsEnd = _Node.endOfWhiteSpace(src, inEnd);
          const ch = src[wsEnd];
          if (!ch || ch === "\n") return wsEnd;
        }
        return null;
      }
      static atBlank(src, offset, endAsBlank) {
        const ch = src[offset];
        return ch === "\n" || ch === "	" || ch === " " || endAsBlank && !ch;
      }
      static nextNodeIsIndented(ch, indentDiff, indicatorAsIndent) {
        if (!ch || indentDiff < 0) return false;
        if (indentDiff > 0) return true;
        return indicatorAsIndent && ch === "-";
      }
      // should be at line or string end, or at next non-whitespace char
      static normalizeOffset(src, offset) {
        const ch = src[offset];
        return !ch ? offset : ch !== "\n" && src[offset - 1] === "\n" ? offset - 1 : _Node.endOfWhiteSpace(src, offset);
      }
      // fold single newline into space, multiple newlines to N - 1 newlines
      // presumes src[offset] === '\n'
      static foldNewline(src, offset, indent) {
        let inCount = 0;
        let error5 = false;
        let fold = "";
        let ch = src[offset + 1];
        while (ch === " " || ch === "	" || ch === "\n") {
          switch (ch) {
            case "\n":
              inCount = 0;
              offset += 1;
              fold += "\n";
              break;
            case "	":
              if (inCount <= indent) error5 = true;
              offset = _Node.endOfWhiteSpace(src, offset + 2) - 1;
              break;
            case " ":
              inCount += 1;
              offset += 1;
              break;
          }
          ch = src[offset + 1];
        }
        if (!fold) fold = " ";
        if (ch && inCount <= indent) error5 = true;
        return {
          fold,
          offset,
          error: error5
        };
      }
      constructor(type, props, context) {
        Object.defineProperty(this, "context", {
          value: context || null,
          writable: true
        });
        this.error = null;
        this.range = null;
        this.valueRange = null;
        this.props = props || [];
        this.type = type;
        this.value = null;
      }
      getPropValue(idx, key, skipKey) {
        if (!this.context) return null;
        const {
          src
        } = this.context;
        const prop = this.props[idx];
        return prop && src[prop.start] === key ? src.slice(prop.start + (skipKey ? 1 : 0), prop.end) : null;
      }
      get anchor() {
        for (let i3 = 0; i3 < this.props.length; ++i3) {
          const anchor = this.getPropValue(i3, Char.ANCHOR, true);
          if (anchor != null) return anchor;
        }
        return null;
      }
      get comment() {
        const comments = [];
        for (let i3 = 0; i3 < this.props.length; ++i3) {
          const comment = this.getPropValue(i3, Char.COMMENT, true);
          if (comment != null) comments.push(comment);
        }
        return comments.length > 0 ? comments.join("\n") : null;
      }
      commentHasRequiredWhitespace(start) {
        const {
          src
        } = this.context;
        if (this.header && start === this.header.end) return false;
        if (!this.valueRange) return false;
        const {
          end
        } = this.valueRange;
        return start !== end || _Node.atBlank(src, end - 1);
      }
      get hasComment() {
        if (this.context) {
          const {
            src
          } = this.context;
          for (let i3 = 0; i3 < this.props.length; ++i3) {
            if (src[this.props[i3].start] === Char.COMMENT) return true;
          }
        }
        return false;
      }
      get hasProps() {
        if (this.context) {
          const {
            src
          } = this.context;
          for (let i3 = 0; i3 < this.props.length; ++i3) {
            if (src[this.props[i3].start] !== Char.COMMENT) return true;
          }
        }
        return false;
      }
      get includesTrailingLines() {
        return false;
      }
      get jsonLike() {
        const jsonLikeTypes = [Type.FLOW_MAP, Type.FLOW_SEQ, Type.QUOTE_DOUBLE, Type.QUOTE_SINGLE];
        return jsonLikeTypes.indexOf(this.type) !== -1;
      }
      get rangeAsLinePos() {
        if (!this.range || !this.context) return void 0;
        const start = getLinePos(this.range.start, this.context.root);
        if (!start) return void 0;
        const end = getLinePos(this.range.end, this.context.root);
        return {
          start,
          end
        };
      }
      get rawValue() {
        if (!this.valueRange || !this.context) return null;
        const {
          start,
          end
        } = this.valueRange;
        return this.context.src.slice(start, end);
      }
      get tag() {
        for (let i3 = 0; i3 < this.props.length; ++i3) {
          const tag2 = this.getPropValue(i3, Char.TAG, false);
          if (tag2 != null) {
            if (tag2[1] === "<") {
              return {
                verbatim: tag2.slice(2, -1)
              };
            } else {
              const [_3, handle, suffix] = tag2.match(/^(.*!)([^!]*)$/);
              return {
                handle,
                suffix
              };
            }
          }
        }
        return null;
      }
      get valueRangeContainsNewline() {
        if (!this.valueRange || !this.context) return false;
        const {
          start,
          end
        } = this.valueRange;
        const {
          src
        } = this.context;
        for (let i3 = start; i3 < end; ++i3) {
          if (src[i3] === "\n") return true;
        }
        return false;
      }
      parseComment(start) {
        const {
          src
        } = this.context;
        if (src[start] === Char.COMMENT) {
          const end = _Node.endOfLine(src, start + 1);
          const commentRange = new Range(start, end);
          this.props.push(commentRange);
          return end;
        }
        return start;
      }
      /**
       * Populates the `origStart` and `origEnd` values of all ranges for this
       * node. Extended by child classes to handle descendant nodes.
       *
       * @param {number[]} cr - Positions of dropped CR characters
       * @param {number} offset - Starting index of `cr` from the last call
       * @returns {number} - The next offset, matching the one found for `origStart`
       */
      setOrigRanges(cr, offset) {
        if (this.range) offset = this.range.setOrigRange(cr, offset);
        if (this.valueRange) this.valueRange.setOrigRange(cr, offset);
        this.props.forEach((prop) => prop.setOrigRange(cr, offset));
        return offset;
      }
      toString() {
        const {
          context: {
            src
          },
          range: range2,
          value
        } = this;
        if (value != null) return value;
        const str = src.slice(range2.start, range2.end);
        return _Node.addStringTerminator(src, range2.end, str);
      }
    };
    var YAMLError = class extends Error {
      static {
        __name(this, "YAMLError");
      }
      constructor(name, source, message2) {
        if (!message2 || !(source instanceof Node2)) throw new Error(`Invalid arguments for new ${name}`);
        super();
        this.name = name;
        this.message = message2;
        this.source = source;
      }
      makePretty() {
        if (!this.source) return;
        this.nodeType = this.source.type;
        const cst = this.source.context && this.source.context.root;
        if (typeof this.offset === "number") {
          this.range = new Range(this.offset, this.offset + 1);
          const start = cst && getLinePos(this.offset, cst);
          if (start) {
            const end = {
              line: start.line,
              col: start.col + 1
            };
            this.linePos = {
              start,
              end
            };
          }
          delete this.offset;
        } else {
          this.range = this.source.range;
          this.linePos = this.source.rangeAsLinePos;
        }
        if (this.linePos) {
          const {
            line,
            col
          } = this.linePos.start;
          this.message += ` at line ${line}, column ${col}`;
          const ctx = cst && getPrettyContext(this.linePos, cst);
          if (ctx) this.message += `:

${ctx}
`;
        }
        delete this.source;
      }
    };
    var YAMLReferenceError = class extends YAMLError {
      static {
        __name(this, "YAMLReferenceError");
      }
      constructor(source, message2) {
        super("YAMLReferenceError", source, message2);
      }
    };
    var YAMLSemanticError = class extends YAMLError {
      static {
        __name(this, "YAMLSemanticError");
      }
      constructor(source, message2) {
        super("YAMLSemanticError", source, message2);
      }
    };
    var YAMLSyntaxError = class extends YAMLError {
      static {
        __name(this, "YAMLSyntaxError");
      }
      constructor(source, message2) {
        super("YAMLSyntaxError", source, message2);
      }
    };
    var YAMLWarning = class extends YAMLError {
      static {
        __name(this, "YAMLWarning");
      }
      constructor(source, message2) {
        super("YAMLWarning", source, message2);
      }
    };
    function _defineProperty(obj, key, value) {
      if (key in obj) {
        Object.defineProperty(obj, key, {
          value,
          enumerable: true,
          configurable: true,
          writable: true
        });
      } else {
        obj[key] = value;
      }
      return obj;
    }
    __name(_defineProperty, "_defineProperty");
    var PlainValue = class _PlainValue extends Node2 {
      static {
        __name(this, "PlainValue");
      }
      static endOfLine(src, start, inFlow) {
        let ch = src[start];
        let offset = start;
        while (ch && ch !== "\n") {
          if (inFlow && (ch === "[" || ch === "]" || ch === "{" || ch === "}" || ch === ",")) break;
          const next = src[offset + 1];
          if (ch === ":" && (!next || next === "\n" || next === "	" || next === " " || inFlow && next === ",")) break;
          if ((ch === " " || ch === "	") && next === "#") break;
          offset += 1;
          ch = next;
        }
        return offset;
      }
      get strValue() {
        if (!this.valueRange || !this.context) return null;
        let {
          start,
          end
        } = this.valueRange;
        const {
          src
        } = this.context;
        let ch = src[end - 1];
        while (start < end && (ch === "\n" || ch === "	" || ch === " ")) ch = src[--end - 1];
        let str = "";
        for (let i3 = start; i3 < end; ++i3) {
          const ch2 = src[i3];
          if (ch2 === "\n") {
            const {
              fold,
              offset
            } = Node2.foldNewline(src, i3, -1);
            str += fold;
            i3 = offset;
          } else if (ch2 === " " || ch2 === "	") {
            const wsStart = i3;
            let next = src[i3 + 1];
            while (i3 < end && (next === " " || next === "	")) {
              i3 += 1;
              next = src[i3 + 1];
            }
            if (next !== "\n") str += i3 > wsStart ? src.slice(wsStart, i3 + 1) : ch2;
          } else {
            str += ch2;
          }
        }
        const ch0 = src[start];
        switch (ch0) {
          case "	": {
            const msg = "Plain value cannot start with a tab character";
            const errors = [new YAMLSemanticError(this, msg)];
            return {
              errors,
              str
            };
          }
          case "@":
          case "`": {
            const msg = `Plain value cannot start with reserved character ${ch0}`;
            const errors = [new YAMLSemanticError(this, msg)];
            return {
              errors,
              str
            };
          }
          default:
            return str;
        }
      }
      parseBlockValue(start) {
        const {
          indent,
          inFlow,
          src
        } = this.context;
        let offset = start;
        let valueEnd = start;
        for (let ch = src[offset]; ch === "\n"; ch = src[offset]) {
          if (Node2.atDocumentBoundary(src, offset + 1)) break;
          const end = Node2.endOfBlockIndent(src, indent, offset + 1);
          if (end === null || src[end] === "#") break;
          if (src[end] === "\n") {
            offset = end;
          } else {
            valueEnd = _PlainValue.endOfLine(src, end, inFlow);
            offset = valueEnd;
          }
        }
        if (this.valueRange.isEmpty()) this.valueRange.start = start;
        this.valueRange.end = valueEnd;
        return valueEnd;
      }
      /**
       * Parses a plain value from the source
       *
       * Accepted forms are:
       * ```
       * #comment
       *
       * first line
       *
       * first line #comment
       *
       * first line
       * block
       * lines
       *
       * #comment
       * block
       * lines
       * ```
       * where block lines are empty or have an indent level greater than `indent`.
       *
       * @param {ParseContext} context
       * @param {number} start - Index of first character
       * @returns {number} - Index of the character after this scalar, may be `\n`
       */
      parse(context, start) {
        this.context = context;
        const {
          inFlow,
          src
        } = context;
        let offset = start;
        const ch = src[offset];
        if (ch && ch !== "#" && ch !== "\n") {
          offset = _PlainValue.endOfLine(src, start, inFlow);
        }
        this.valueRange = new Range(start, offset);
        offset = Node2.endOfWhiteSpace(src, offset);
        offset = this.parseComment(offset);
        if (!this.hasComment || this.valueRange.isEmpty()) {
          offset = this.parseBlockValue(offset);
        }
        return offset;
      }
    };
    exports2.Char = Char;
    exports2.Node = Node2;
    exports2.PlainValue = PlainValue;
    exports2.Range = Range;
    exports2.Type = Type;
    exports2.YAMLError = YAMLError;
    exports2.YAMLReferenceError = YAMLReferenceError;
    exports2.YAMLSemanticError = YAMLSemanticError;
    exports2.YAMLSyntaxError = YAMLSyntaxError;
    exports2.YAMLWarning = YAMLWarning;
    exports2._defineProperty = _defineProperty;
    exports2.defaultTagPrefix = defaultTagPrefix;
    exports2.defaultTags = defaultTags;
  }
});

// ../../node_modules/yaml/dist/parse-cst.js
var require_parse_cst = __commonJS({
  "../../node_modules/yaml/dist/parse-cst.js"(exports2) {
    "use strict";
    var PlainValue = require_PlainValue_ec8e588e();
    var BlankLine = class extends PlainValue.Node {
      static {
        __name(this, "BlankLine");
      }
      constructor() {
        super(PlainValue.Type.BLANK_LINE);
      }
      /* istanbul ignore next */
      get includesTrailingLines() {
        return true;
      }
      /**
       * Parses a blank line from the source
       *
       * @param {ParseContext} context
       * @param {number} start - Index of first \n character
       * @returns {number} - Index of the character after this
       */
      parse(context, start) {
        this.context = context;
        this.range = new PlainValue.Range(start, start + 1);
        return start + 1;
      }
    };
    var CollectionItem = class extends PlainValue.Node {
      static {
        __name(this, "CollectionItem");
      }
      constructor(type, props) {
        super(type, props);
        this.node = null;
      }
      get includesTrailingLines() {
        return !!this.node && this.node.includesTrailingLines;
      }
      /**
       * @param {ParseContext} context
       * @param {number} start - Index of first character
       * @returns {number} - Index of the character after this
       */
      parse(context, start) {
        this.context = context;
        const {
          parseNode,
          src
        } = context;
        let {
          atLineStart,
          lineStart
        } = context;
        if (!atLineStart && this.type === PlainValue.Type.SEQ_ITEM) this.error = new PlainValue.YAMLSemanticError(this, "Sequence items must not have preceding content on the same line");
        const indent = atLineStart ? start - lineStart : context.indent;
        let offset = PlainValue.Node.endOfWhiteSpace(src, start + 1);
        let ch = src[offset];
        const inlineComment = ch === "#";
        const comments = [];
        let blankLine = null;
        while (ch === "\n" || ch === "#") {
          if (ch === "#") {
            const end2 = PlainValue.Node.endOfLine(src, offset + 1);
            comments.push(new PlainValue.Range(offset, end2));
            offset = end2;
          } else {
            atLineStart = true;
            lineStart = offset + 1;
            const wsEnd = PlainValue.Node.endOfWhiteSpace(src, lineStart);
            if (src[wsEnd] === "\n" && comments.length === 0) {
              blankLine = new BlankLine();
              lineStart = blankLine.parse({
                src
              }, lineStart);
            }
            offset = PlainValue.Node.endOfIndent(src, lineStart);
          }
          ch = src[offset];
        }
        if (PlainValue.Node.nextNodeIsIndented(ch, offset - (lineStart + indent), this.type !== PlainValue.Type.SEQ_ITEM)) {
          this.node = parseNode({
            atLineStart,
            inCollection: false,
            indent,
            lineStart,
            parent: this
          }, offset);
        } else if (ch && lineStart > start + 1) {
          offset = lineStart - 1;
        }
        if (this.node) {
          if (blankLine) {
            const items = context.parent.items || context.parent.contents;
            if (items) items.push(blankLine);
          }
          if (comments.length) Array.prototype.push.apply(this.props, comments);
          offset = this.node.range.end;
        } else {
          if (inlineComment) {
            const c3 = comments[0];
            this.props.push(c3);
            offset = c3.end;
          } else {
            offset = PlainValue.Node.endOfLine(src, start + 1);
          }
        }
        const end = this.node ? this.node.valueRange.end : offset;
        this.valueRange = new PlainValue.Range(start, end);
        return offset;
      }
      setOrigRanges(cr, offset) {
        offset = super.setOrigRanges(cr, offset);
        return this.node ? this.node.setOrigRanges(cr, offset) : offset;
      }
      toString() {
        const {
          context: {
            src
          },
          node,
          range: range2,
          value
        } = this;
        if (value != null) return value;
        const str = node ? src.slice(range2.start, node.range.start) + String(node) : src.slice(range2.start, range2.end);
        return PlainValue.Node.addStringTerminator(src, range2.end, str);
      }
    };
    var Comment = class extends PlainValue.Node {
      static {
        __name(this, "Comment");
      }
      constructor() {
        super(PlainValue.Type.COMMENT);
      }
      /**
       * Parses a comment line from the source
       *
       * @param {ParseContext} context
       * @param {number} start - Index of first character
       * @returns {number} - Index of the character after this scalar
       */
      parse(context, start) {
        this.context = context;
        const offset = this.parseComment(start);
        this.range = new PlainValue.Range(start, offset);
        return offset;
      }
    };
    function grabCollectionEndComments(node) {
      let cnode = node;
      while (cnode instanceof CollectionItem) cnode = cnode.node;
      if (!(cnode instanceof Collection2)) return null;
      const len = cnode.items.length;
      let ci = -1;
      for (let i3 = len - 1; i3 >= 0; --i3) {
        const n3 = cnode.items[i3];
        if (n3.type === PlainValue.Type.COMMENT) {
          const {
            indent,
            lineStart
          } = n3.context;
          if (indent > 0 && n3.range.start >= lineStart + indent) break;
          ci = i3;
        } else if (n3.type === PlainValue.Type.BLANK_LINE) ci = i3;
        else break;
      }
      if (ci === -1) return null;
      const ca = cnode.items.splice(ci, len - ci);
      const prevEnd = ca[0].range.start;
      while (true) {
        cnode.range.end = prevEnd;
        if (cnode.valueRange && cnode.valueRange.end > prevEnd) cnode.valueRange.end = prevEnd;
        if (cnode === node) break;
        cnode = cnode.context.parent;
      }
      return ca;
    }
    __name(grabCollectionEndComments, "grabCollectionEndComments");
    var Collection2 = class _Collection extends PlainValue.Node {
      static {
        __name(this, "Collection");
      }
      static nextContentHasIndent(src, offset, indent) {
        const lineStart = PlainValue.Node.endOfLine(src, offset) + 1;
        offset = PlainValue.Node.endOfWhiteSpace(src, lineStart);
        const ch = src[offset];
        if (!ch) return false;
        if (offset >= lineStart + indent) return true;
        if (ch !== "#" && ch !== "\n") return false;
        return _Collection.nextContentHasIndent(src, offset, indent);
      }
      constructor(firstItem) {
        super(firstItem.type === PlainValue.Type.SEQ_ITEM ? PlainValue.Type.SEQ : PlainValue.Type.MAP);
        for (let i3 = firstItem.props.length - 1; i3 >= 0; --i3) {
          if (firstItem.props[i3].start < firstItem.context.lineStart) {
            this.props = firstItem.props.slice(0, i3 + 1);
            firstItem.props = firstItem.props.slice(i3 + 1);
            const itemRange = firstItem.props[0] || firstItem.valueRange;
            firstItem.range.start = itemRange.start;
            break;
          }
        }
        this.items = [firstItem];
        const ec = grabCollectionEndComments(firstItem);
        if (ec) Array.prototype.push.apply(this.items, ec);
      }
      get includesTrailingLines() {
        return this.items.length > 0;
      }
      /**
       * @param {ParseContext} context
       * @param {number} start - Index of first character
       * @returns {number} - Index of the character after this
       */
      parse(context, start) {
        this.context = context;
        const {
          parseNode,
          src
        } = context;
        let lineStart = PlainValue.Node.startOfLine(src, start);
        const firstItem = this.items[0];
        firstItem.context.parent = this;
        this.valueRange = PlainValue.Range.copy(firstItem.valueRange);
        const indent = firstItem.range.start - firstItem.context.lineStart;
        let offset = start;
        offset = PlainValue.Node.normalizeOffset(src, offset);
        let ch = src[offset];
        let atLineStart = PlainValue.Node.endOfWhiteSpace(src, lineStart) === offset;
        let prevIncludesTrailingLines = false;
        while (ch) {
          while (ch === "\n" || ch === "#") {
            if (atLineStart && ch === "\n" && !prevIncludesTrailingLines) {
              const blankLine = new BlankLine();
              offset = blankLine.parse({
                src
              }, offset);
              this.valueRange.end = offset;
              if (offset >= src.length) {
                ch = null;
                break;
              }
              this.items.push(blankLine);
              offset -= 1;
            } else if (ch === "#") {
              if (offset < lineStart + indent && !_Collection.nextContentHasIndent(src, offset, indent)) {
                return offset;
              }
              const comment = new Comment();
              offset = comment.parse({
                indent,
                lineStart,
                src
              }, offset);
              this.items.push(comment);
              this.valueRange.end = offset;
              if (offset >= src.length) {
                ch = null;
                break;
              }
            }
            lineStart = offset + 1;
            offset = PlainValue.Node.endOfIndent(src, lineStart);
            if (PlainValue.Node.atBlank(src, offset)) {
              const wsEnd = PlainValue.Node.endOfWhiteSpace(src, offset);
              const next = src[wsEnd];
              if (!next || next === "\n" || next === "#") {
                offset = wsEnd;
              }
            }
            ch = src[offset];
            atLineStart = true;
          }
          if (!ch) {
            break;
          }
          if (offset !== lineStart + indent && (atLineStart || ch !== ":")) {
            if (offset < lineStart + indent) {
              if (lineStart > start) offset = lineStart;
              break;
            } else if (!this.error) {
              const msg = "All collection items must start at the same column";
              this.error = new PlainValue.YAMLSyntaxError(this, msg);
            }
          }
          if (firstItem.type === PlainValue.Type.SEQ_ITEM) {
            if (ch !== "-") {
              if (lineStart > start) offset = lineStart;
              break;
            }
          } else if (ch === "-" && !this.error) {
            const next = src[offset + 1];
            if (!next || next === "\n" || next === "	" || next === " ") {
              const msg = "A collection cannot be both a mapping and a sequence";
              this.error = new PlainValue.YAMLSyntaxError(this, msg);
            }
          }
          const node = parseNode({
            atLineStart,
            inCollection: true,
            indent,
            lineStart,
            parent: this
          }, offset);
          if (!node) return offset;
          this.items.push(node);
          this.valueRange.end = node.valueRange.end;
          offset = PlainValue.Node.normalizeOffset(src, node.range.end);
          ch = src[offset];
          atLineStart = false;
          prevIncludesTrailingLines = node.includesTrailingLines;
          if (ch) {
            let ls = offset - 1;
            let prev = src[ls];
            while (prev === " " || prev === "	") prev = src[--ls];
            if (prev === "\n") {
              lineStart = ls + 1;
              atLineStart = true;
            }
          }
          const ec = grabCollectionEndComments(node);
          if (ec) Array.prototype.push.apply(this.items, ec);
        }
        return offset;
      }
      setOrigRanges(cr, offset) {
        offset = super.setOrigRanges(cr, offset);
        this.items.forEach((node) => {
          offset = node.setOrigRanges(cr, offset);
        });
        return offset;
      }
      toString() {
        const {
          context: {
            src
          },
          items,
          range: range2,
          value
        } = this;
        if (value != null) return value;
        let str = src.slice(range2.start, items[0].range.start) + String(items[0]);
        for (let i3 = 1; i3 < items.length; ++i3) {
          const item = items[i3];
          const {
            atLineStart,
            indent
          } = item.context;
          if (atLineStart) for (let i4 = 0; i4 < indent; ++i4) str += " ";
          str += String(item);
        }
        return PlainValue.Node.addStringTerminator(src, range2.end, str);
      }
    };
    var Directive = class extends PlainValue.Node {
      static {
        __name(this, "Directive");
      }
      constructor() {
        super(PlainValue.Type.DIRECTIVE);
        this.name = null;
      }
      get parameters() {
        const raw = this.rawValue;
        return raw ? raw.trim().split(/[ \t]+/) : [];
      }
      parseName(start) {
        const {
          src
        } = this.context;
        let offset = start;
        let ch = src[offset];
        while (ch && ch !== "\n" && ch !== "	" && ch !== " ") ch = src[offset += 1];
        this.name = src.slice(start, offset);
        return offset;
      }
      parseParameters(start) {
        const {
          src
        } = this.context;
        let offset = start;
        let ch = src[offset];
        while (ch && ch !== "\n" && ch !== "#") ch = src[offset += 1];
        this.valueRange = new PlainValue.Range(start, offset);
        return offset;
      }
      parse(context, start) {
        this.context = context;
        let offset = this.parseName(start + 1);
        offset = this.parseParameters(offset);
        offset = this.parseComment(offset);
        this.range = new PlainValue.Range(start, offset);
        return offset;
      }
    };
    var Document = class _Document extends PlainValue.Node {
      static {
        __name(this, "Document");
      }
      static startCommentOrEndBlankLine(src, start) {
        const offset = PlainValue.Node.endOfWhiteSpace(src, start);
        const ch = src[offset];
        return ch === "#" || ch === "\n" ? offset : start;
      }
      constructor() {
        super(PlainValue.Type.DOCUMENT);
        this.directives = null;
        this.contents = null;
        this.directivesEndMarker = null;
        this.documentEndMarker = null;
      }
      parseDirectives(start) {
        const {
          src
        } = this.context;
        this.directives = [];
        let atLineStart = true;
        let hasDirectives = false;
        let offset = start;
        while (!PlainValue.Node.atDocumentBoundary(src, offset, PlainValue.Char.DIRECTIVES_END)) {
          offset = _Document.startCommentOrEndBlankLine(src, offset);
          switch (src[offset]) {
            case "\n":
              if (atLineStart) {
                const blankLine = new BlankLine();
                offset = blankLine.parse({
                  src
                }, offset);
                if (offset < src.length) {
                  this.directives.push(blankLine);
                }
              } else {
                offset += 1;
                atLineStart = true;
              }
              break;
            case "#":
              {
                const comment = new Comment();
                offset = comment.parse({
                  src
                }, offset);
                this.directives.push(comment);
                atLineStart = false;
              }
              break;
            case "%":
              {
                const directive = new Directive();
                offset = directive.parse({
                  parent: this,
                  src
                }, offset);
                this.directives.push(directive);
                hasDirectives = true;
                atLineStart = false;
              }
              break;
            default:
              if (hasDirectives) {
                this.error = new PlainValue.YAMLSemanticError(this, "Missing directives-end indicator line");
              } else if (this.directives.length > 0) {
                this.contents = this.directives;
                this.directives = [];
              }
              return offset;
          }
        }
        if (src[offset]) {
          this.directivesEndMarker = new PlainValue.Range(offset, offset + 3);
          return offset + 3;
        }
        if (hasDirectives) {
          this.error = new PlainValue.YAMLSemanticError(this, "Missing directives-end indicator line");
        } else if (this.directives.length > 0) {
          this.contents = this.directives;
          this.directives = [];
        }
        return offset;
      }
      parseContents(start) {
        const {
          parseNode,
          src
        } = this.context;
        if (!this.contents) this.contents = [];
        let lineStart = start;
        while (src[lineStart - 1] === "-") lineStart -= 1;
        let offset = PlainValue.Node.endOfWhiteSpace(src, start);
        let atLineStart = lineStart === start;
        this.valueRange = new PlainValue.Range(offset);
        while (!PlainValue.Node.atDocumentBoundary(src, offset, PlainValue.Char.DOCUMENT_END)) {
          switch (src[offset]) {
            case "\n":
              if (atLineStart) {
                const blankLine = new BlankLine();
                offset = blankLine.parse({
                  src
                }, offset);
                if (offset < src.length) {
                  this.contents.push(blankLine);
                }
              } else {
                offset += 1;
                atLineStart = true;
              }
              lineStart = offset;
              break;
            case "#":
              {
                const comment = new Comment();
                offset = comment.parse({
                  src
                }, offset);
                this.contents.push(comment);
                atLineStart = false;
              }
              break;
            default: {
              const iEnd = PlainValue.Node.endOfIndent(src, offset);
              const context = {
                atLineStart,
                indent: -1,
                inFlow: false,
                inCollection: false,
                lineStart,
                parent: this
              };
              const node = parseNode(context, iEnd);
              if (!node) return this.valueRange.end = iEnd;
              this.contents.push(node);
              offset = node.range.end;
              atLineStart = false;
              const ec = grabCollectionEndComments(node);
              if (ec) Array.prototype.push.apply(this.contents, ec);
            }
          }
          offset = _Document.startCommentOrEndBlankLine(src, offset);
        }
        this.valueRange.end = offset;
        if (src[offset]) {
          this.documentEndMarker = new PlainValue.Range(offset, offset + 3);
          offset += 3;
          if (src[offset]) {
            offset = PlainValue.Node.endOfWhiteSpace(src, offset);
            if (src[offset] === "#") {
              const comment = new Comment();
              offset = comment.parse({
                src
              }, offset);
              this.contents.push(comment);
            }
            switch (src[offset]) {
              case "\n":
                offset += 1;
                break;
              case void 0:
                break;
              default:
                this.error = new PlainValue.YAMLSyntaxError(this, "Document end marker line cannot have a non-comment suffix");
            }
          }
        }
        return offset;
      }
      /**
       * @param {ParseContext} context
       * @param {number} start - Index of first character
       * @returns {number} - Index of the character after this
       */
      parse(context, start) {
        context.root = this;
        this.context = context;
        const {
          src
        } = context;
        let offset = src.charCodeAt(start) === 65279 ? start + 1 : start;
        offset = this.parseDirectives(offset);
        offset = this.parseContents(offset);
        return offset;
      }
      setOrigRanges(cr, offset) {
        offset = super.setOrigRanges(cr, offset);
        this.directives.forEach((node) => {
          offset = node.setOrigRanges(cr, offset);
        });
        if (this.directivesEndMarker) offset = this.directivesEndMarker.setOrigRange(cr, offset);
        this.contents.forEach((node) => {
          offset = node.setOrigRanges(cr, offset);
        });
        if (this.documentEndMarker) offset = this.documentEndMarker.setOrigRange(cr, offset);
        return offset;
      }
      toString() {
        const {
          contents,
          directives,
          value
        } = this;
        if (value != null) return value;
        let str = directives.join("");
        if (contents.length > 0) {
          if (directives.length > 0 || contents[0].type === PlainValue.Type.COMMENT) str += "---\n";
          str += contents.join("");
        }
        if (str[str.length - 1] !== "\n") str += "\n";
        return str;
      }
    };
    var Alias2 = class extends PlainValue.Node {
      static {
        __name(this, "Alias");
      }
      /**
       * Parses an *alias from the source
       *
       * @param {ParseContext} context
       * @param {number} start - Index of first character
       * @returns {number} - Index of the character after this scalar
       */
      parse(context, start) {
        this.context = context;
        const {
          src
        } = context;
        let offset = PlainValue.Node.endOfIdentifier(src, start + 1);
        this.valueRange = new PlainValue.Range(start + 1, offset);
        offset = PlainValue.Node.endOfWhiteSpace(src, offset);
        offset = this.parseComment(offset);
        return offset;
      }
    };
    var Chomp = {
      CLIP: "CLIP",
      KEEP: "KEEP",
      STRIP: "STRIP"
    };
    var BlockValue = class extends PlainValue.Node {
      static {
        __name(this, "BlockValue");
      }
      constructor(type, props) {
        super(type, props);
        this.blockIndent = null;
        this.chomping = Chomp.CLIP;
        this.header = null;
      }
      get includesTrailingLines() {
        return this.chomping === Chomp.KEEP;
      }
      get strValue() {
        if (!this.valueRange || !this.context) return null;
        let {
          start,
          end
        } = this.valueRange;
        const {
          indent,
          src
        } = this.context;
        if (this.valueRange.isEmpty()) return "";
        let lastNewLine = null;
        let ch = src[end - 1];
        while (ch === "\n" || ch === "	" || ch === " ") {
          end -= 1;
          if (end <= start) {
            if (this.chomping === Chomp.KEEP) break;
            else return "";
          }
          if (ch === "\n") lastNewLine = end;
          ch = src[end - 1];
        }
        let keepStart = end + 1;
        if (lastNewLine) {
          if (this.chomping === Chomp.KEEP) {
            keepStart = lastNewLine;
            end = this.valueRange.end;
          } else {
            end = lastNewLine;
          }
        }
        const bi = indent + this.blockIndent;
        const folded = this.type === PlainValue.Type.BLOCK_FOLDED;
        let atStart = true;
        let str = "";
        let sep5 = "";
        let prevMoreIndented = false;
        for (let i3 = start; i3 < end; ++i3) {
          for (let j3 = 0; j3 < bi; ++j3) {
            if (src[i3] !== " ") break;
            i3 += 1;
          }
          const ch2 = src[i3];
          if (ch2 === "\n") {
            if (sep5 === "\n") str += "\n";
            else sep5 = "\n";
          } else {
            const lineEnd = PlainValue.Node.endOfLine(src, i3);
            const line = src.slice(i3, lineEnd);
            i3 = lineEnd;
            if (folded && (ch2 === " " || ch2 === "	") && i3 < keepStart) {
              if (sep5 === " ") sep5 = "\n";
              else if (!prevMoreIndented && !atStart && sep5 === "\n") sep5 = "\n\n";
              str += sep5 + line;
              sep5 = lineEnd < end && src[lineEnd] || "";
              prevMoreIndented = true;
            } else {
              str += sep5 + line;
              sep5 = folded && i3 < keepStart ? " " : "\n";
              prevMoreIndented = false;
            }
            if (atStart && line !== "") atStart = false;
          }
        }
        return this.chomping === Chomp.STRIP ? str : str + "\n";
      }
      parseBlockHeader(start) {
        const {
          src
        } = this.context;
        let offset = start + 1;
        let bi = "";
        while (true) {
          const ch = src[offset];
          switch (ch) {
            case "-":
              this.chomping = Chomp.STRIP;
              break;
            case "+":
              this.chomping = Chomp.KEEP;
              break;
            case "0":
            case "1":
            case "2":
            case "3":
            case "4":
            case "5":
            case "6":
            case "7":
            case "8":
            case "9":
              bi += ch;
              break;
            default:
              this.blockIndent = Number(bi) || null;
              this.header = new PlainValue.Range(start, offset);
              return offset;
          }
          offset += 1;
        }
      }
      parseBlockValue(start) {
        const {
          indent,
          src
        } = this.context;
        const explicit = !!this.blockIndent;
        let offset = start;
        let valueEnd = start;
        let minBlockIndent = 1;
        for (let ch = src[offset]; ch === "\n"; ch = src[offset]) {
          offset += 1;
          if (PlainValue.Node.atDocumentBoundary(src, offset)) break;
          const end = PlainValue.Node.endOfBlockIndent(src, indent, offset);
          if (end === null) break;
          const ch2 = src[end];
          const lineIndent = end - (offset + indent);
          if (!this.blockIndent) {
            if (src[end] !== "\n") {
              if (lineIndent < minBlockIndent) {
                const msg = "Block scalars with more-indented leading empty lines must use an explicit indentation indicator";
                this.error = new PlainValue.YAMLSemanticError(this, msg);
              }
              this.blockIndent = lineIndent;
            } else if (lineIndent > minBlockIndent) {
              minBlockIndent = lineIndent;
            }
          } else if (ch2 && ch2 !== "\n" && lineIndent < this.blockIndent) {
            if (src[end] === "#") break;
            if (!this.error) {
              const src2 = explicit ? "explicit indentation indicator" : "first line";
              const msg = `Block scalars must not be less indented than their ${src2}`;
              this.error = new PlainValue.YAMLSemanticError(this, msg);
            }
          }
          if (src[end] === "\n") {
            offset = end;
          } else {
            offset = valueEnd = PlainValue.Node.endOfLine(src, end);
          }
        }
        if (this.chomping !== Chomp.KEEP) {
          offset = src[valueEnd] ? valueEnd + 1 : valueEnd;
        }
        this.valueRange = new PlainValue.Range(start + 1, offset);
        return offset;
      }
      /**
       * Parses a block value from the source
       *
       * Accepted forms are:
       * ```
       * BS
       * block
       * lines
       *
       * BS #comment
       * block
       * lines
       * ```
       * where the block style BS matches the regexp `[|>][-+1-9]*` and block lines
       * are empty or have an indent level greater than `indent`.
       *
       * @param {ParseContext} context
       * @param {number} start - Index of first character
       * @returns {number} - Index of the character after this block
       */
      parse(context, start) {
        this.context = context;
        const {
          src
        } = context;
        let offset = this.parseBlockHeader(start);
        offset = PlainValue.Node.endOfWhiteSpace(src, offset);
        offset = this.parseComment(offset);
        offset = this.parseBlockValue(offset);
        return offset;
      }
      setOrigRanges(cr, offset) {
        offset = super.setOrigRanges(cr, offset);
        return this.header ? this.header.setOrigRange(cr, offset) : offset;
      }
    };
    var FlowCollection = class extends PlainValue.Node {
      static {
        __name(this, "FlowCollection");
      }
      constructor(type, props) {
        super(type, props);
        this.items = null;
      }
      prevNodeIsJsonLike(idx = this.items.length) {
        const node = this.items[idx - 1];
        return !!node && (node.jsonLike || node.type === PlainValue.Type.COMMENT && this.prevNodeIsJsonLike(idx - 1));
      }
      /**
       * @param {ParseContext} context
       * @param {number} start - Index of first character
       * @returns {number} - Index of the character after this
       */
      parse(context, start) {
        this.context = context;
        const {
          parseNode,
          src
        } = context;
        let {
          indent,
          lineStart
        } = context;
        let char = src[start];
        this.items = [{
          char,
          offset: start
        }];
        let offset = PlainValue.Node.endOfWhiteSpace(src, start + 1);
        char = src[offset];
        while (char && char !== "]" && char !== "}") {
          switch (char) {
            case "\n":
              {
                lineStart = offset + 1;
                const wsEnd = PlainValue.Node.endOfWhiteSpace(src, lineStart);
                if (src[wsEnd] === "\n") {
                  const blankLine = new BlankLine();
                  lineStart = blankLine.parse({
                    src
                  }, lineStart);
                  this.items.push(blankLine);
                }
                offset = PlainValue.Node.endOfIndent(src, lineStart);
                if (offset <= lineStart + indent) {
                  char = src[offset];
                  if (offset < lineStart + indent || char !== "]" && char !== "}") {
                    const msg = "Insufficient indentation in flow collection";
                    this.error = new PlainValue.YAMLSemanticError(this, msg);
                  }
                }
              }
              break;
            case ",":
              {
                this.items.push({
                  char,
                  offset
                });
                offset += 1;
              }
              break;
            case "#":
              {
                const comment = new Comment();
                offset = comment.parse({
                  src
                }, offset);
                this.items.push(comment);
              }
              break;
            case "?":
            case ":": {
              const next = src[offset + 1];
              if (next === "\n" || next === "	" || next === " " || next === "," || // in-flow : after JSON-like key does not need to be followed by whitespace
              char === ":" && this.prevNodeIsJsonLike()) {
                this.items.push({
                  char,
                  offset
                });
                offset += 1;
                break;
              }
            }
            // fallthrough
            default: {
              const node = parseNode({
                atLineStart: false,
                inCollection: false,
                inFlow: true,
                indent: -1,
                lineStart,
                parent: this
              }, offset);
              if (!node) {
                this.valueRange = new PlainValue.Range(start, offset);
                return offset;
              }
              this.items.push(node);
              offset = PlainValue.Node.normalizeOffset(src, node.range.end);
            }
          }
          offset = PlainValue.Node.endOfWhiteSpace(src, offset);
          char = src[offset];
        }
        this.valueRange = new PlainValue.Range(start, offset + 1);
        if (char) {
          this.items.push({
            char,
            offset
          });
          offset = PlainValue.Node.endOfWhiteSpace(src, offset + 1);
          offset = this.parseComment(offset);
        }
        return offset;
      }
      setOrigRanges(cr, offset) {
        offset = super.setOrigRanges(cr, offset);
        this.items.forEach((node) => {
          if (node instanceof PlainValue.Node) {
            offset = node.setOrigRanges(cr, offset);
          } else if (cr.length === 0) {
            node.origOffset = node.offset;
          } else {
            let i3 = offset;
            while (i3 < cr.length) {
              if (cr[i3] > node.offset) break;
              else ++i3;
            }
            node.origOffset = node.offset + i3;
            offset = i3;
          }
        });
        return offset;
      }
      toString() {
        const {
          context: {
            src
          },
          items,
          range: range2,
          value
        } = this;
        if (value != null) return value;
        const nodes = items.filter((item) => item instanceof PlainValue.Node);
        let str = "";
        let prevEnd = range2.start;
        nodes.forEach((node) => {
          const prefix2 = src.slice(prevEnd, node.range.start);
          prevEnd = node.range.end;
          str += prefix2 + String(node);
          if (str[str.length - 1] === "\n" && src[prevEnd - 1] !== "\n" && src[prevEnd] === "\n") {
            prevEnd += 1;
          }
        });
        str += src.slice(prevEnd, range2.end);
        return PlainValue.Node.addStringTerminator(src, range2.end, str);
      }
    };
    var QuoteDouble = class _QuoteDouble extends PlainValue.Node {
      static {
        __name(this, "QuoteDouble");
      }
      static endOfQuote(src, offset) {
        let ch = src[offset];
        while (ch && ch !== '"') {
          offset += ch === "\\" ? 2 : 1;
          ch = src[offset];
        }
        return offset + 1;
      }
      /**
       * @returns {string | { str: string, errors: YAMLSyntaxError[] }}
       */
      get strValue() {
        if (!this.valueRange || !this.context) return null;
        const errors = [];
        const {
          start,
          end
        } = this.valueRange;
        const {
          indent,
          src
        } = this.context;
        if (src[end - 1] !== '"') errors.push(new PlainValue.YAMLSyntaxError(this, 'Missing closing "quote'));
        let str = "";
        for (let i3 = start + 1; i3 < end - 1; ++i3) {
          const ch = src[i3];
          if (ch === "\n") {
            if (PlainValue.Node.atDocumentBoundary(src, i3 + 1)) errors.push(new PlainValue.YAMLSemanticError(this, "Document boundary indicators are not allowed within string values"));
            const {
              fold,
              offset,
              error: error5
            } = PlainValue.Node.foldNewline(src, i3, indent);
            str += fold;
            i3 = offset;
            if (error5) errors.push(new PlainValue.YAMLSemanticError(this, "Multi-line double-quoted string needs to be sufficiently indented"));
          } else if (ch === "\\") {
            i3 += 1;
            switch (src[i3]) {
              case "0":
                str += "\0";
                break;
              // null character
              case "a":
                str += "\x07";
                break;
              // bell character
              case "b":
                str += "\b";
                break;
              // backspace
              case "e":
                str += "\x1B";
                break;
              // escape character
              case "f":
                str += "\f";
                break;
              // form feed
              case "n":
                str += "\n";
                break;
              // line feed
              case "r":
                str += "\r";
                break;
              // carriage return
              case "t":
                str += "	";
                break;
              // horizontal tab
              case "v":
                str += "\v";
                break;
              // vertical tab
              case "N":
                str += "\x85";
                break;
              // Unicode next line
              case "_":
                str += "\xA0";
                break;
              // Unicode non-breaking space
              case "L":
                str += "\u2028";
                break;
              // Unicode line separator
              case "P":
                str += "\u2029";
                break;
              // Unicode paragraph separator
              case " ":
                str += " ";
                break;
              case '"':
                str += '"';
                break;
              case "/":
                str += "/";
                break;
              case "\\":
                str += "\\";
                break;
              case "	":
                str += "	";
                break;
              case "x":
                str += this.parseCharCode(i3 + 1, 2, errors);
                i3 += 2;
                break;
              case "u":
                str += this.parseCharCode(i3 + 1, 4, errors);
                i3 += 4;
                break;
              case "U":
                str += this.parseCharCode(i3 + 1, 8, errors);
                i3 += 8;
                break;
              case "\n":
                while (src[i3 + 1] === " " || src[i3 + 1] === "	") i3 += 1;
                break;
              default:
                errors.push(new PlainValue.YAMLSyntaxError(this, `Invalid escape sequence ${src.substr(i3 - 1, 2)}`));
                str += "\\" + src[i3];
            }
          } else if (ch === " " || ch === "	") {
            const wsStart = i3;
            let next = src[i3 + 1];
            while (next === " " || next === "	") {
              i3 += 1;
              next = src[i3 + 1];
            }
            if (next !== "\n") str += i3 > wsStart ? src.slice(wsStart, i3 + 1) : ch;
          } else {
            str += ch;
          }
        }
        return errors.length > 0 ? {
          errors,
          str
        } : str;
      }
      parseCharCode(offset, length, errors) {
        const {
          src
        } = this.context;
        const cc = src.substr(offset, length);
        const ok = cc.length === length && /^[0-9a-fA-F]+$/.test(cc);
        const code = ok ? parseInt(cc, 16) : NaN;
        if (isNaN(code)) {
          errors.push(new PlainValue.YAMLSyntaxError(this, `Invalid escape sequence ${src.substr(offset - 2, length + 2)}`));
          return src.substr(offset - 2, length + 2);
        }
        return String.fromCodePoint(code);
      }
      /**
       * Parses a "double quoted" value from the source
       *
       * @param {ParseContext} context
       * @param {number} start - Index of first character
       * @returns {number} - Index of the character after this scalar
       */
      parse(context, start) {
        this.context = context;
        const {
          src
        } = context;
        let offset = _QuoteDouble.endOfQuote(src, start + 1);
        this.valueRange = new PlainValue.Range(start, offset);
        offset = PlainValue.Node.endOfWhiteSpace(src, offset);
        offset = this.parseComment(offset);
        return offset;
      }
    };
    var QuoteSingle = class _QuoteSingle extends PlainValue.Node {
      static {
        __name(this, "QuoteSingle");
      }
      static endOfQuote(src, offset) {
        let ch = src[offset];
        while (ch) {
          if (ch === "'") {
            if (src[offset + 1] !== "'") break;
            ch = src[offset += 2];
          } else {
            ch = src[offset += 1];
          }
        }
        return offset + 1;
      }
      /**
       * @returns {string | { str: string, errors: YAMLSyntaxError[] }}
       */
      get strValue() {
        if (!this.valueRange || !this.context) return null;
        const errors = [];
        const {
          start,
          end
        } = this.valueRange;
        const {
          indent,
          src
        } = this.context;
        if (src[end - 1] !== "'") errors.push(new PlainValue.YAMLSyntaxError(this, "Missing closing 'quote"));
        let str = "";
        for (let i3 = start + 1; i3 < end - 1; ++i3) {
          const ch = src[i3];
          if (ch === "\n") {
            if (PlainValue.Node.atDocumentBoundary(src, i3 + 1)) errors.push(new PlainValue.YAMLSemanticError(this, "Document boundary indicators are not allowed within string values"));
            const {
              fold,
              offset,
              error: error5
            } = PlainValue.Node.foldNewline(src, i3, indent);
            str += fold;
            i3 = offset;
            if (error5) errors.push(new PlainValue.YAMLSemanticError(this, "Multi-line single-quoted string needs to be sufficiently indented"));
          } else if (ch === "'") {
            str += ch;
            i3 += 1;
            if (src[i3] !== "'") errors.push(new PlainValue.YAMLSyntaxError(this, "Unescaped single quote? This should not happen."));
          } else if (ch === " " || ch === "	") {
            const wsStart = i3;
            let next = src[i3 + 1];
            while (next === " " || next === "	") {
              i3 += 1;
              next = src[i3 + 1];
            }
            if (next !== "\n") str += i3 > wsStart ? src.slice(wsStart, i3 + 1) : ch;
          } else {
            str += ch;
          }
        }
        return errors.length > 0 ? {
          errors,
          str
        } : str;
      }
      /**
       * Parses a 'single quoted' value from the source
       *
       * @param {ParseContext} context
       * @param {number} start - Index of first character
       * @returns {number} - Index of the character after this scalar
       */
      parse(context, start) {
        this.context = context;
        const {
          src
        } = context;
        let offset = _QuoteSingle.endOfQuote(src, start + 1);
        this.valueRange = new PlainValue.Range(start, offset);
        offset = PlainValue.Node.endOfWhiteSpace(src, offset);
        offset = this.parseComment(offset);
        return offset;
      }
    };
    function createNewNode(type, props) {
      switch (type) {
        case PlainValue.Type.ALIAS:
          return new Alias2(type, props);
        case PlainValue.Type.BLOCK_FOLDED:
        case PlainValue.Type.BLOCK_LITERAL:
          return new BlockValue(type, props);
        case PlainValue.Type.FLOW_MAP:
        case PlainValue.Type.FLOW_SEQ:
          return new FlowCollection(type, props);
        case PlainValue.Type.MAP_KEY:
        case PlainValue.Type.MAP_VALUE:
        case PlainValue.Type.SEQ_ITEM:
          return new CollectionItem(type, props);
        case PlainValue.Type.COMMENT:
        case PlainValue.Type.PLAIN:
          return new PlainValue.PlainValue(type, props);
        case PlainValue.Type.QUOTE_DOUBLE:
          return new QuoteDouble(type, props);
        case PlainValue.Type.QUOTE_SINGLE:
          return new QuoteSingle(type, props);
        /* istanbul ignore next */
        default:
          return null;
      }
    }
    __name(createNewNode, "createNewNode");
    var ParseContext = class _ParseContext {
      static {
        __name(this, "ParseContext");
      }
      static parseType(src, offset, inFlow) {
        switch (src[offset]) {
          case "*":
            return PlainValue.Type.ALIAS;
          case ">":
            return PlainValue.Type.BLOCK_FOLDED;
          case "|":
            return PlainValue.Type.BLOCK_LITERAL;
          case "{":
            return PlainValue.Type.FLOW_MAP;
          case "[":
            return PlainValue.Type.FLOW_SEQ;
          case "?":
            return !inFlow && PlainValue.Node.atBlank(src, offset + 1, true) ? PlainValue.Type.MAP_KEY : PlainValue.Type.PLAIN;
          case ":":
            return !inFlow && PlainValue.Node.atBlank(src, offset + 1, true) ? PlainValue.Type.MAP_VALUE : PlainValue.Type.PLAIN;
          case "-":
            return !inFlow && PlainValue.Node.atBlank(src, offset + 1, true) ? PlainValue.Type.SEQ_ITEM : PlainValue.Type.PLAIN;
          case '"':
            return PlainValue.Type.QUOTE_DOUBLE;
          case "'":
            return PlainValue.Type.QUOTE_SINGLE;
          default:
            return PlainValue.Type.PLAIN;
        }
      }
      constructor(orig = {}, {
        atLineStart,
        inCollection,
        inFlow,
        indent,
        lineStart,
        parent
      } = {}) {
        PlainValue._defineProperty(this, "parseNode", (overlay, start) => {
          if (PlainValue.Node.atDocumentBoundary(this.src, start)) return null;
          const context = new _ParseContext(this, overlay);
          const {
            props,
            type,
            valueStart
          } = context.parseProps(start);
          const node = createNewNode(type, props);
          let offset = node.parse(context, valueStart);
          node.range = new PlainValue.Range(start, offset);
          if (offset <= start) {
            node.error = new Error(`Node#parse consumed no characters`);
            node.error.parseEnd = offset;
            node.error.source = node;
            node.range.end = start + 1;
          }
          if (context.nodeStartsCollection(node)) {
            if (!node.error && !context.atLineStart && context.parent.type === PlainValue.Type.DOCUMENT) {
              node.error = new PlainValue.YAMLSyntaxError(node, "Block collection must not have preceding content here (e.g. directives-end indicator)");
            }
            const collection = new Collection2(node);
            offset = collection.parse(new _ParseContext(context), offset);
            collection.range = new PlainValue.Range(start, offset);
            return collection;
          }
          return node;
        });
        this.atLineStart = atLineStart != null ? atLineStart : orig.atLineStart || false;
        this.inCollection = inCollection != null ? inCollection : orig.inCollection || false;
        this.inFlow = inFlow != null ? inFlow : orig.inFlow || false;
        this.indent = indent != null ? indent : orig.indent;
        this.lineStart = lineStart != null ? lineStart : orig.lineStart;
        this.parent = parent != null ? parent : orig.parent || {};
        this.root = orig.root;
        this.src = orig.src;
      }
      nodeStartsCollection(node) {
        const {
          inCollection,
          inFlow,
          src
        } = this;
        if (inCollection || inFlow) return false;
        if (node instanceof CollectionItem) return true;
        let offset = node.range.end;
        if (src[offset] === "\n" || src[offset - 1] === "\n") return false;
        offset = PlainValue.Node.endOfWhiteSpace(src, offset);
        return src[offset] === ":";
      }
      // Anchor and tag are before type, which determines the node implementation
      // class; hence this intermediate step.
      parseProps(offset) {
        const {
          inFlow,
          parent,
          src
        } = this;
        const props = [];
        let lineHasProps = false;
        offset = this.atLineStart ? PlainValue.Node.endOfIndent(src, offset) : PlainValue.Node.endOfWhiteSpace(src, offset);
        let ch = src[offset];
        while (ch === PlainValue.Char.ANCHOR || ch === PlainValue.Char.COMMENT || ch === PlainValue.Char.TAG || ch === "\n") {
          if (ch === "\n") {
            let inEnd = offset;
            let lineStart;
            do {
              lineStart = inEnd + 1;
              inEnd = PlainValue.Node.endOfIndent(src, lineStart);
            } while (src[inEnd] === "\n");
            const indentDiff = inEnd - (lineStart + this.indent);
            const noIndicatorAsIndent = parent.type === PlainValue.Type.SEQ_ITEM && parent.context.atLineStart;
            if (src[inEnd] !== "#" && !PlainValue.Node.nextNodeIsIndented(src[inEnd], indentDiff, !noIndicatorAsIndent)) break;
            this.atLineStart = true;
            this.lineStart = lineStart;
            lineHasProps = false;
            offset = inEnd;
          } else if (ch === PlainValue.Char.COMMENT) {
            const end = PlainValue.Node.endOfLine(src, offset + 1);
            props.push(new PlainValue.Range(offset, end));
            offset = end;
          } else {
            let end = PlainValue.Node.endOfIdentifier(src, offset + 1);
            if (ch === PlainValue.Char.TAG && src[end] === "," && /^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(src.slice(offset + 1, end + 13))) {
              end = PlainValue.Node.endOfIdentifier(src, end + 5);
            }
            props.push(new PlainValue.Range(offset, end));
            lineHasProps = true;
            offset = PlainValue.Node.endOfWhiteSpace(src, end);
          }
          ch = src[offset];
        }
        if (lineHasProps && ch === ":" && PlainValue.Node.atBlank(src, offset + 1, true)) offset -= 1;
        const type = _ParseContext.parseType(src, offset, inFlow);
        return {
          props,
          type,
          valueStart: offset
        };
      }
      /**
       * Parses a node from the source
       * @param {ParseContext} overlay
       * @param {number} start - Index of first non-whitespace character for the node
       * @returns {?Node} - null if at a document boundary
       */
    };
    function parse3(src) {
      const cr = [];
      if (src.indexOf("\r") !== -1) {
        src = src.replace(/\r\n?/g, (match4, offset2) => {
          if (match4.length > 1) cr.push(offset2);
          return "\n";
        });
      }
      const documents = [];
      let offset = 0;
      do {
        const doc = new Document();
        const context = new ParseContext({
          src
        });
        offset = doc.parse(context, offset);
        documents.push(doc);
      } while (offset < src.length);
      documents.setOrigRanges = () => {
        if (cr.length === 0) return false;
        for (let i3 = 1; i3 < cr.length; ++i3) cr[i3] -= i3;
        let crOffset = 0;
        for (let i3 = 0; i3 < documents.length; ++i3) {
          crOffset = documents[i3].setOrigRanges(cr, crOffset);
        }
        cr.splice(0, cr.length);
        return true;
      };
      documents.toString = () => documents.join("...\n");
      return documents;
    }
    __name(parse3, "parse");
    exports2.parse = parse3;
  }
});

// ../../node_modules/yaml/dist/resolveSeq-d03cb037.js
var require_resolveSeq_d03cb037 = __commonJS({
  "../../node_modules/yaml/dist/resolveSeq-d03cb037.js"(exports2) {
    "use strict";
    var PlainValue = require_PlainValue_ec8e588e();
    function addCommentBefore(str, indent, comment) {
      if (!comment) return str;
      const cc = comment.replace(/[\s\S]^/gm, `$&${indent}#`);
      return `#${cc}
${indent}${str}`;
    }
    __name(addCommentBefore, "addCommentBefore");
    function addComment(str, indent, comment) {
      return !comment ? str : comment.indexOf("\n") === -1 ? `${str} #${comment}` : `${str}
` + comment.replace(/^/gm, `${indent || ""}#`);
    }
    __name(addComment, "addComment");
    var Node2 = class {
      static {
        __name(this, "Node");
      }
    };
    function toJSON(value, arg, ctx) {
      if (Array.isArray(value)) return value.map((v6, i3) => toJSON(v6, String(i3), ctx));
      if (value && typeof value.toJSON === "function") {
        const anchor = ctx && ctx.anchors && ctx.anchors.get(value);
        if (anchor) ctx.onCreate = (res2) => {
          anchor.res = res2;
          delete ctx.onCreate;
        };
        const res = value.toJSON(arg, ctx);
        if (anchor && ctx.onCreate) ctx.onCreate(res);
        return res;
      }
      if ((!ctx || !ctx.keep) && typeof value === "bigint") return Number(value);
      return value;
    }
    __name(toJSON, "toJSON");
    var Scalar2 = class extends Node2 {
      static {
        __name(this, "Scalar");
      }
      constructor(value) {
        super();
        this.value = value;
      }
      toJSON(arg, ctx) {
        return ctx && ctx.keep ? this.value : toJSON(this.value, arg, ctx);
      }
      toString() {
        return String(this.value);
      }
    };
    function collectionFromPath(schema, path38, value) {
      let v6 = value;
      for (let i3 = path38.length - 1; i3 >= 0; --i3) {
        const k3 = path38[i3];
        if (Number.isInteger(k3) && k3 >= 0) {
          const a3 = [];
          a3[k3] = v6;
          v6 = a3;
        } else {
          const o3 = {};
          Object.defineProperty(o3, k3, {
            value: v6,
            writable: true,
            enumerable: true,
            configurable: true
          });
          v6 = o3;
        }
      }
      return schema.createNode(v6, false);
    }
    __name(collectionFromPath, "collectionFromPath");
    var isEmptyPath = /* @__PURE__ */ __name((path38) => path38 == null || typeof path38 === "object" && path38[Symbol.iterator]().next().done, "isEmptyPath");
    var Collection2 = class _Collection extends Node2 {
      static {
        __name(this, "Collection");
      }
      constructor(schema) {
        super();
        PlainValue._defineProperty(this, "items", []);
        this.schema = schema;
      }
      addIn(path38, value) {
        if (isEmptyPath(path38)) this.add(value);
        else {
          const [key, ...rest] = path38;
          const node = this.get(key, true);
          if (node instanceof _Collection) node.addIn(rest, value);
          else if (node === void 0 && this.schema) this.set(key, collectionFromPath(this.schema, rest, value));
          else throw new Error(`Expected YAML collection at ${key}. Remaining path: ${rest}`);
        }
      }
      deleteIn([key, ...rest]) {
        if (rest.length === 0) return this.delete(key);
        const node = this.get(key, true);
        if (node instanceof _Collection) return node.deleteIn(rest);
        else throw new Error(`Expected YAML collection at ${key}. Remaining path: ${rest}`);
      }
      getIn([key, ...rest], keepScalar) {
        const node = this.get(key, true);
        if (rest.length === 0) return !keepScalar && node instanceof Scalar2 ? node.value : node;
        else return node instanceof _Collection ? node.getIn(rest, keepScalar) : void 0;
      }
      hasAllNullValues() {
        return this.items.every((node) => {
          if (!node || node.type !== "PAIR") return false;
          const n3 = node.value;
          return n3 == null || n3 instanceof Scalar2 && n3.value == null && !n3.commentBefore && !n3.comment && !n3.tag;
        });
      }
      hasIn([key, ...rest]) {
        if (rest.length === 0) return this.has(key);
        const node = this.get(key, true);
        return node instanceof _Collection ? node.hasIn(rest) : false;
      }
      setIn([key, ...rest], value) {
        if (rest.length === 0) {
          this.set(key, value);
        } else {
          const node = this.get(key, true);
          if (node instanceof _Collection) node.setIn(rest, value);
          else if (node === void 0 && this.schema) this.set(key, collectionFromPath(this.schema, rest, value));
          else throw new Error(`Expected YAML collection at ${key}. Remaining path: ${rest}`);
        }
      }
      // overridden in implementations
      /* istanbul ignore next */
      toJSON() {
        return null;
      }
      toString(ctx, {
        blockItem,
        flowChars,
        isMap,
        itemIndent
      }, onComment, onChompKeep) {
        const {
          indent,
          indentStep,
          stringify: stringify3
        } = ctx;
        const inFlow = this.type === PlainValue.Type.FLOW_MAP || this.type === PlainValue.Type.FLOW_SEQ || ctx.inFlow;
        if (inFlow) itemIndent += indentStep;
        const allNullValues = isMap && this.hasAllNullValues();
        ctx = Object.assign({}, ctx, {
          allNullValues,
          indent: itemIndent,
          inFlow,
          type: null
        });
        let chompKeep = false;
        let hasItemWithNewLine = false;
        const nodes = this.items.reduce((nodes2, item, i3) => {
          let comment;
          if (item) {
            if (!chompKeep && item.spaceBefore) nodes2.push({
              type: "comment",
              str: ""
            });
            if (item.commentBefore) item.commentBefore.match(/^.*$/gm).forEach((line) => {
              nodes2.push({
                type: "comment",
                str: `#${line}`
              });
            });
            if (item.comment) comment = item.comment;
            if (inFlow && (!chompKeep && item.spaceBefore || item.commentBefore || item.comment || item.key && (item.key.commentBefore || item.key.comment) || item.value && (item.value.commentBefore || item.value.comment))) hasItemWithNewLine = true;
          }
          chompKeep = false;
          let str2 = stringify3(item, ctx, () => comment = null, () => chompKeep = true);
          if (inFlow && !hasItemWithNewLine && str2.includes("\n")) hasItemWithNewLine = true;
          if (inFlow && i3 < this.items.length - 1) str2 += ",";
          str2 = addComment(str2, itemIndent, comment);
          if (chompKeep && (comment || inFlow)) chompKeep = false;
          nodes2.push({
            type: "item",
            str: str2
          });
          return nodes2;
        }, []);
        let str;
        if (nodes.length === 0) {
          str = flowChars.start + flowChars.end;
        } else if (inFlow) {
          const {
            start,
            end
          } = flowChars;
          const strings = nodes.map((n3) => n3.str);
          if (hasItemWithNewLine || strings.reduce((sum3, str2) => sum3 + str2.length + 2, 2) > _Collection.maxFlowStringSingleLineLength) {
            str = start;
            for (const s3 of strings) {
              str += s3 ? `
${indentStep}${indent}${s3}` : "\n";
            }
            str += `
${indent}${end}`;
          } else {
            str = `${start} ${strings.join(" ")} ${end}`;
          }
        } else {
          const strings = nodes.map(blockItem);
          str = strings.shift();
          for (const s3 of strings) str += s3 ? `
${indent}${s3}` : "\n";
        }
        if (this.comment) {
          str += "\n" + this.comment.replace(/^/gm, `${indent}#`);
          if (onComment) onComment();
        } else if (chompKeep && onChompKeep) onChompKeep();
        return str;
      }
    };
    PlainValue._defineProperty(Collection2, "maxFlowStringSingleLineLength", 60);
    function asItemIndex(key) {
      let idx = key instanceof Scalar2 ? key.value : key;
      if (idx && typeof idx === "string") idx = Number(idx);
      return Number.isInteger(idx) && idx >= 0 ? idx : null;
    }
    __name(asItemIndex, "asItemIndex");
    var YAMLSeq2 = class extends Collection2 {
      static {
        __name(this, "YAMLSeq");
      }
      add(value) {
        this.items.push(value);
      }
      delete(key) {
        const idx = asItemIndex(key);
        if (typeof idx !== "number") return false;
        const del = this.items.splice(idx, 1);
        return del.length > 0;
      }
      get(key, keepScalar) {
        const idx = asItemIndex(key);
        if (typeof idx !== "number") return void 0;
        const it = this.items[idx];
        return !keepScalar && it instanceof Scalar2 ? it.value : it;
      }
      has(key) {
        const idx = asItemIndex(key);
        return typeof idx === "number" && idx < this.items.length;
      }
      set(key, value) {
        const idx = asItemIndex(key);
        if (typeof idx !== "number") throw new Error(`Expected a valid index, not ${key}.`);
        this.items[idx] = value;
      }
      toJSON(_3, ctx) {
        const seq = [];
        if (ctx && ctx.onCreate) ctx.onCreate(seq);
        let i3 = 0;
        for (const item of this.items) seq.push(toJSON(item, String(i3++), ctx));
        return seq;
      }
      toString(ctx, onComment, onChompKeep) {
        if (!ctx) return JSON.stringify(this);
        return super.toString(ctx, {
          blockItem: /* @__PURE__ */ __name((n3) => n3.type === "comment" ? n3.str : `- ${n3.str}`, "blockItem"),
          flowChars: {
            start: "[",
            end: "]"
          },
          isMap: false,
          itemIndent: (ctx.indent || "") + "  "
        }, onComment, onChompKeep);
      }
    };
    var stringifyKey = /* @__PURE__ */ __name((key, jsKey, ctx) => {
      if (jsKey === null) return "";
      if (typeof jsKey !== "object") return String(jsKey);
      if (key instanceof Node2 && ctx && ctx.doc) return key.toString({
        anchors: /* @__PURE__ */ Object.create(null),
        doc: ctx.doc,
        indent: "",
        indentStep: ctx.indentStep,
        inFlow: true,
        inStringifyKey: true,
        stringify: ctx.stringify
      });
      return JSON.stringify(jsKey);
    }, "stringifyKey");
    var Pair2 = class _Pair extends Node2 {
      static {
        __name(this, "Pair");
      }
      constructor(key, value = null) {
        super();
        this.key = key;
        this.value = value;
        this.type = _Pair.Type.PAIR;
      }
      get commentBefore() {
        return this.key instanceof Node2 ? this.key.commentBefore : void 0;
      }
      set commentBefore(cb) {
        if (this.key == null) this.key = new Scalar2(null);
        if (this.key instanceof Node2) this.key.commentBefore = cb;
        else {
          const msg = "Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.";
          throw new Error(msg);
        }
      }
      addToJSMap(ctx, map3) {
        const key = toJSON(this.key, "", ctx);
        if (map3 instanceof Map) {
          const value = toJSON(this.value, key, ctx);
          map3.set(key, value);
        } else if (map3 instanceof Set) {
          map3.add(key);
        } else {
          const stringKey = stringifyKey(this.key, key, ctx);
          const value = toJSON(this.value, stringKey, ctx);
          if (stringKey in map3) Object.defineProperty(map3, stringKey, {
            value,
            writable: true,
            enumerable: true,
            configurable: true
          });
          else map3[stringKey] = value;
        }
        return map3;
      }
      toJSON(_3, ctx) {
        const pair = ctx && ctx.mapAsMap ? /* @__PURE__ */ new Map() : {};
        return this.addToJSMap(ctx, pair);
      }
      toString(ctx, onComment, onChompKeep) {
        if (!ctx || !ctx.doc) return JSON.stringify(this);
        const {
          indent: indentSize,
          indentSeq,
          simpleKeys
        } = ctx.doc.options;
        let {
          key,
          value
        } = this;
        let keyComment = key instanceof Node2 && key.comment;
        if (simpleKeys) {
          if (keyComment) {
            throw new Error("With simple keys, key nodes cannot have comments");
          }
          if (key instanceof Collection2) {
            const msg = "With simple keys, collection cannot be used as a key value";
            throw new Error(msg);
          }
        }
        let explicitKey = !simpleKeys && (!key || keyComment || (key instanceof Node2 ? key instanceof Collection2 || key.type === PlainValue.Type.BLOCK_FOLDED || key.type === PlainValue.Type.BLOCK_LITERAL : typeof key === "object"));
        const {
          doc,
          indent,
          indentStep,
          stringify: stringify3
        } = ctx;
        ctx = Object.assign({}, ctx, {
          implicitKey: !explicitKey,
          indent: indent + indentStep
        });
        let chompKeep = false;
        let str = stringify3(key, ctx, () => keyComment = null, () => chompKeep = true);
        str = addComment(str, ctx.indent, keyComment);
        if (!explicitKey && str.length > 1024) {
          if (simpleKeys) throw new Error("With simple keys, single line scalar must not span more than 1024 characters");
          explicitKey = true;
        }
        if (ctx.allNullValues && !simpleKeys) {
          if (this.comment) {
            str = addComment(str, ctx.indent, this.comment);
            if (onComment) onComment();
          } else if (chompKeep && !keyComment && onChompKeep) onChompKeep();
          return ctx.inFlow && !explicitKey ? str : `? ${str}`;
        }
        str = explicitKey ? `? ${str}
${indent}:` : `${str}:`;
        if (this.comment) {
          str = addComment(str, ctx.indent, this.comment);
          if (onComment) onComment();
        }
        let vcb = "";
        let valueComment = null;
        if (value instanceof Node2) {
          if (value.spaceBefore) vcb = "\n";
          if (value.commentBefore) {
            const cs = value.commentBefore.replace(/^/gm, `${ctx.indent}#`);
            vcb += `
${cs}`;
          }
          valueComment = value.comment;
        } else if (value && typeof value === "object") {
          value = doc.schema.createNode(value, true);
        }
        ctx.implicitKey = false;
        if (!explicitKey && !this.comment && value instanceof Scalar2) ctx.indentAtStart = str.length + 1;
        chompKeep = false;
        if (!indentSeq && indentSize >= 2 && !ctx.inFlow && !explicitKey && value instanceof YAMLSeq2 && value.type !== PlainValue.Type.FLOW_SEQ && !value.tag && !doc.anchors.getName(value)) {
          ctx.indent = ctx.indent.substr(2);
        }
        const valueStr = stringify3(value, ctx, () => valueComment = null, () => chompKeep = true);
        let ws = " ";
        if (vcb || this.comment) {
          ws = `${vcb}
${ctx.indent}`;
        } else if (!explicitKey && value instanceof Collection2) {
          const flow = valueStr[0] === "[" || valueStr[0] === "{";
          if (!flow || valueStr.includes("\n")) ws = `
${ctx.indent}`;
        } else if (valueStr[0] === "\n") ws = "";
        if (chompKeep && !valueComment && onChompKeep) onChompKeep();
        return addComment(str + ws + valueStr, ctx.indent, valueComment);
      }
    };
    PlainValue._defineProperty(Pair2, "Type", {
      PAIR: "PAIR",
      MERGE_PAIR: "MERGE_PAIR"
    });
    var getAliasCount = /* @__PURE__ */ __name((node, anchors) => {
      if (node instanceof Alias2) {
        const anchor = anchors.get(node.source);
        return anchor.count * anchor.aliasCount;
      } else if (node instanceof Collection2) {
        let count = 0;
        for (const item of node.items) {
          const c3 = getAliasCount(item, anchors);
          if (c3 > count) count = c3;
        }
        return count;
      } else if (node instanceof Pair2) {
        const kc = getAliasCount(node.key, anchors);
        const vc = getAliasCount(node.value, anchors);
        return Math.max(kc, vc);
      }
      return 1;
    }, "getAliasCount");
    var Alias2 = class _Alias extends Node2 {
      static {
        __name(this, "Alias");
      }
      static stringify({
        range: range2,
        source
      }, {
        anchors,
        doc,
        implicitKey,
        inStringifyKey
      }) {
        let anchor = Object.keys(anchors).find((a3) => anchors[a3] === source);
        if (!anchor && inStringifyKey) anchor = doc.anchors.getName(source) || doc.anchors.newName();
        if (anchor) return `*${anchor}${implicitKey ? " " : ""}`;
        const msg = doc.anchors.getName(source) ? "Alias node must be after source node" : "Source node not found for alias node";
        throw new Error(`${msg} [${range2}]`);
      }
      constructor(source) {
        super();
        this.source = source;
        this.type = PlainValue.Type.ALIAS;
      }
      set tag(t3) {
        throw new Error("Alias nodes cannot have tags");
      }
      toJSON(arg, ctx) {
        if (!ctx) return toJSON(this.source, arg, ctx);
        const {
          anchors,
          maxAliasCount
        } = ctx;
        const anchor = anchors.get(this.source);
        if (!anchor || anchor.res === void 0) {
          const msg = "This should not happen: Alias anchor was not resolved?";
          if (this.cstNode) throw new PlainValue.YAMLReferenceError(this.cstNode, msg);
          else throw new ReferenceError(msg);
        }
        if (maxAliasCount >= 0) {
          anchor.count += 1;
          if (anchor.aliasCount === 0) anchor.aliasCount = getAliasCount(this.source, anchors);
          if (anchor.count * anchor.aliasCount > maxAliasCount) {
            const msg = "Excessive alias count indicates a resource exhaustion attack";
            if (this.cstNode) throw new PlainValue.YAMLReferenceError(this.cstNode, msg);
            else throw new ReferenceError(msg);
          }
        }
        return anchor.res;
      }
      // Only called when stringifying an alias mapping key while constructing
      // Object output.
      toString(ctx) {
        return _Alias.stringify(this, ctx);
      }
    };
    PlainValue._defineProperty(Alias2, "default", true);
    function findPair(items, key) {
      const k3 = key instanceof Scalar2 ? key.value : key;
      for (const it of items) {
        if (it instanceof Pair2) {
          if (it.key === key || it.key === k3) return it;
          if (it.key && it.key.value === k3) return it;
        }
      }
      return void 0;
    }
    __name(findPair, "findPair");
    var YAMLMap2 = class extends Collection2 {
      static {
        __name(this, "YAMLMap");
      }
      add(pair, overwrite) {
        if (!pair) pair = new Pair2(pair);
        else if (!(pair instanceof Pair2)) pair = new Pair2(pair.key || pair, pair.value);
        const prev = findPair(this.items, pair.key);
        const sortEntries = this.schema && this.schema.sortMapEntries;
        if (prev) {
          if (overwrite) prev.value = pair.value;
          else throw new Error(`Key ${pair.key} already set`);
        } else if (sortEntries) {
          const i3 = this.items.findIndex((item) => sortEntries(pair, item) < 0);
          if (i3 === -1) this.items.push(pair);
          else this.items.splice(i3, 0, pair);
        } else {
          this.items.push(pair);
        }
      }
      delete(key) {
        const it = findPair(this.items, key);
        if (!it) return false;
        const del = this.items.splice(this.items.indexOf(it), 1);
        return del.length > 0;
      }
      get(key, keepScalar) {
        const it = findPair(this.items, key);
        const node = it && it.value;
        return !keepScalar && node instanceof Scalar2 ? node.value : node;
      }
      has(key) {
        return !!findPair(this.items, key);
      }
      set(key, value) {
        this.add(new Pair2(key, value), true);
      }
      /**
       * @param {*} arg ignored
       * @param {*} ctx Conversion context, originally set in Document#toJSON()
       * @param {Class} Type If set, forces the returned collection type
       * @returns {*} Instance of Type, Map, or Object
       */
      toJSON(_3, ctx, Type) {
        const map3 = Type ? new Type() : ctx && ctx.mapAsMap ? /* @__PURE__ */ new Map() : {};
        if (ctx && ctx.onCreate) ctx.onCreate(map3);
        for (const item of this.items) item.addToJSMap(ctx, map3);
        return map3;
      }
      toString(ctx, onComment, onChompKeep) {
        if (!ctx) return JSON.stringify(this);
        for (const item of this.items) {
          if (!(item instanceof Pair2)) throw new Error(`Map items must all be pairs; found ${JSON.stringify(item)} instead`);
        }
        return super.toString(ctx, {
          blockItem: /* @__PURE__ */ __name((n3) => n3.str, "blockItem"),
          flowChars: {
            start: "{",
            end: "}"
          },
          isMap: true,
          itemIndent: ctx.indent || ""
        }, onComment, onChompKeep);
      }
    };
    var MERGE_KEY = "<<";
    var Merge2 = class extends Pair2 {
      static {
        __name(this, "Merge");
      }
      constructor(pair) {
        if (pair instanceof Pair2) {
          let seq = pair.value;
          if (!(seq instanceof YAMLSeq2)) {
            seq = new YAMLSeq2();
            seq.items.push(pair.value);
            seq.range = pair.value.range;
          }
          super(pair.key, seq);
          this.range = pair.range;
        } else {
          super(new Scalar2(MERGE_KEY), new YAMLSeq2());
        }
        this.type = Pair2.Type.MERGE_PAIR;
      }
      // If the value associated with a merge key is a single mapping node, each of
      // its key/value pairs is inserted into the current mapping, unless the key
      // already exists in it. If the value associated with the merge key is a
      // sequence, then this sequence is expected to contain mapping nodes and each
      // of these nodes is merged in turn according to its order in the sequence.
      // Keys in mapping nodes earlier in the sequence override keys specified in
      // later mapping nodes. -- http://yaml.org/type/merge.html
      addToJSMap(ctx, map3) {
        for (const {
          source
        } of this.value.items) {
          if (!(source instanceof YAMLMap2)) throw new Error("Merge sources must be maps");
          const srcMap = source.toJSON(null, ctx, Map);
          for (const [key, value] of srcMap) {
            if (map3 instanceof Map) {
              if (!map3.has(key)) map3.set(key, value);
            } else if (map3 instanceof Set) {
              map3.add(key);
            } else if (!Object.prototype.hasOwnProperty.call(map3, key)) {
              Object.defineProperty(map3, key, {
                value,
                writable: true,
                enumerable: true,
                configurable: true
              });
            }
          }
        }
        return map3;
      }
      toString(ctx, onComment) {
        const seq = this.value;
        if (seq.items.length > 1) return super.toString(ctx, onComment);
        this.value = seq.items[0];
        const str = super.toString(ctx, onComment);
        this.value = seq;
        return str;
      }
    };
    var binaryOptions2 = {
      defaultType: PlainValue.Type.BLOCK_LITERAL,
      lineWidth: 76
    };
    var boolOptions2 = {
      trueStr: "true",
      falseStr: "false"
    };
    var intOptions2 = {
      asBigInt: false
    };
    var nullOptions2 = {
      nullStr: "null"
    };
    var strOptions2 = {
      defaultType: PlainValue.Type.PLAIN,
      doubleQuoted: {
        jsonEncoding: false,
        minMultiLineLength: 40
      },
      fold: {
        lineWidth: 80,
        minContentWidth: 20
      }
    };
    function resolveScalar(str, tags, scalarFallback) {
      for (const {
        format: format26,
        test,
        resolve: resolve13
      } of tags) {
        if (test) {
          const match4 = str.match(test);
          if (match4) {
            let res = resolve13.apply(null, match4);
            if (!(res instanceof Scalar2)) res = new Scalar2(res);
            if (format26) res.format = format26;
            return res;
          }
        }
      }
      if (scalarFallback) str = scalarFallback(str);
      return new Scalar2(str);
    }
    __name(resolveScalar, "resolveScalar");
    var FOLD_FLOW = "flow";
    var FOLD_BLOCK = "block";
    var FOLD_QUOTED = "quoted";
    var consumeMoreIndentedLines = /* @__PURE__ */ __name((text, i3) => {
      let ch = text[i3 + 1];
      while (ch === " " || ch === "	") {
        do {
          ch = text[i3 += 1];
        } while (ch && ch !== "\n");
        ch = text[i3 + 1];
      }
      return i3;
    }, "consumeMoreIndentedLines");
    function foldFlowLines(text, indent, mode, {
      indentAtStart,
      lineWidth = 80,
      minContentWidth = 20,
      onFold,
      onOverflow
    }) {
      if (!lineWidth || lineWidth < 0) return text;
      const endStep = Math.max(1 + minContentWidth, 1 + lineWidth - indent.length);
      if (text.length <= endStep) return text;
      const folds = [];
      const escapedFolds = {};
      let end = lineWidth - indent.length;
      if (typeof indentAtStart === "number") {
        if (indentAtStart > lineWidth - Math.max(2, minContentWidth)) folds.push(0);
        else end = lineWidth - indentAtStart;
      }
      let split2 = void 0;
      let prev = void 0;
      let overflow = false;
      let i3 = -1;
      let escStart = -1;
      let escEnd = -1;
      if (mode === FOLD_BLOCK) {
        i3 = consumeMoreIndentedLines(text, i3);
        if (i3 !== -1) end = i3 + endStep;
      }
      for (let ch; ch = text[i3 += 1]; ) {
        if (mode === FOLD_QUOTED && ch === "\\") {
          escStart = i3;
          switch (text[i3 + 1]) {
            case "x":
              i3 += 3;
              break;
            case "u":
              i3 += 5;
              break;
            case "U":
              i3 += 9;
              break;
            default:
              i3 += 1;
          }
          escEnd = i3;
        }
        if (ch === "\n") {
          if (mode === FOLD_BLOCK) i3 = consumeMoreIndentedLines(text, i3);
          end = i3 + endStep;
          split2 = void 0;
        } else {
          if (ch === " " && prev && prev !== " " && prev !== "\n" && prev !== "	") {
            const next = text[i3 + 1];
            if (next && next !== " " && next !== "\n" && next !== "	") split2 = i3;
          }
          if (i3 >= end) {
            if (split2) {
              folds.push(split2);
              end = split2 + endStep;
              split2 = void 0;
            } else if (mode === FOLD_QUOTED) {
              while (prev === " " || prev === "	") {
                prev = ch;
                ch = text[i3 += 1];
                overflow = true;
              }
              const j3 = i3 > escEnd + 1 ? i3 - 2 : escStart - 1;
              if (escapedFolds[j3]) return text;
              folds.push(j3);
              escapedFolds[j3] = true;
              end = j3 + endStep;
              split2 = void 0;
            } else {
              overflow = true;
            }
          }
        }
        prev = ch;
      }
      if (overflow && onOverflow) onOverflow();
      if (folds.length === 0) return text;
      if (onFold) onFold();
      let res = text.slice(0, folds[0]);
      for (let i4 = 0; i4 < folds.length; ++i4) {
        const fold = folds[i4];
        const end2 = folds[i4 + 1] || text.length;
        if (fold === 0) res = `
${indent}${text.slice(0, end2)}`;
        else {
          if (mode === FOLD_QUOTED && escapedFolds[fold]) res += `${text[fold]}\\`;
          res += `
${indent}${text.slice(fold + 1, end2)}`;
        }
      }
      return res;
    }
    __name(foldFlowLines, "foldFlowLines");
    var getFoldOptions = /* @__PURE__ */ __name(({
      indentAtStart
    }) => indentAtStart ? Object.assign({
      indentAtStart
    }, strOptions2.fold) : strOptions2.fold, "getFoldOptions");
    var containsDocumentMarker = /* @__PURE__ */ __name((str) => /^(%|---|\.\.\.)/m.test(str), "containsDocumentMarker");
    function lineLengthOverLimit(str, lineWidth, indentLength) {
      if (!lineWidth || lineWidth < 0) return false;
      const limit = lineWidth - indentLength;
      const strLen = str.length;
      if (strLen <= limit) return false;
      for (let i3 = 0, start = 0; i3 < strLen; ++i3) {
        if (str[i3] === "\n") {
          if (i3 - start > limit) return true;
          start = i3 + 1;
          if (strLen - start <= limit) return false;
        }
      }
      return true;
    }
    __name(lineLengthOverLimit, "lineLengthOverLimit");
    function doubleQuotedString(value, ctx) {
      const {
        implicitKey
      } = ctx;
      const {
        jsonEncoding,
        minMultiLineLength
      } = strOptions2.doubleQuoted;
      const json = JSON.stringify(value);
      if (jsonEncoding) return json;
      const indent = ctx.indent || (containsDocumentMarker(value) ? "  " : "");
      let str = "";
      let start = 0;
      for (let i3 = 0, ch = json[i3]; ch; ch = json[++i3]) {
        if (ch === " " && json[i3 + 1] === "\\" && json[i3 + 2] === "n") {
          str += json.slice(start, i3) + "\\ ";
          i3 += 1;
          start = i3;
          ch = "\\";
        }
        if (ch === "\\") switch (json[i3 + 1]) {
          case "u":
            {
              str += json.slice(start, i3);
              const code = json.substr(i3 + 2, 4);
              switch (code) {
                case "0000":
                  str += "\\0";
                  break;
                case "0007":
                  str += "\\a";
                  break;
                case "000b":
                  str += "\\v";
                  break;
                case "001b":
                  str += "\\e";
                  break;
                case "0085":
                  str += "\\N";
                  break;
                case "00a0":
                  str += "\\_";
                  break;
                case "2028":
                  str += "\\L";
                  break;
                case "2029":
                  str += "\\P";
                  break;
                default:
                  if (code.substr(0, 2) === "00") str += "\\x" + code.substr(2);
                  else str += json.substr(i3, 6);
              }
              i3 += 5;
              start = i3 + 1;
            }
            break;
          case "n":
            if (implicitKey || json[i3 + 2] === '"' || json.length < minMultiLineLength) {
              i3 += 1;
            } else {
              str += json.slice(start, i3) + "\n\n";
              while (json[i3 + 2] === "\\" && json[i3 + 3] === "n" && json[i3 + 4] !== '"') {
                str += "\n";
                i3 += 2;
              }
              str += indent;
              if (json[i3 + 2] === " ") str += "\\";
              i3 += 1;
              start = i3 + 1;
            }
            break;
          default:
            i3 += 1;
        }
      }
      str = start ? str + json.slice(start) : json;
      return implicitKey ? str : foldFlowLines(str, indent, FOLD_QUOTED, getFoldOptions(ctx));
    }
    __name(doubleQuotedString, "doubleQuotedString");
    function singleQuotedString(value, ctx) {
      if (ctx.implicitKey) {
        if (/\n/.test(value)) return doubleQuotedString(value, ctx);
      } else {
        if (/[ \t]\n|\n[ \t]/.test(value)) return doubleQuotedString(value, ctx);
      }
      const indent = ctx.indent || (containsDocumentMarker(value) ? "  " : "");
      const res = "'" + value.replace(/'/g, "''").replace(/\n+/g, `$&
${indent}`) + "'";
      return ctx.implicitKey ? res : foldFlowLines(res, indent, FOLD_FLOW, getFoldOptions(ctx));
    }
    __name(singleQuotedString, "singleQuotedString");
    function blockString({
      comment,
      type,
      value
    }, ctx, onComment, onChompKeep) {
      if (/\n[\t ]+$/.test(value) || /^\s*$/.test(value)) {
        return doubleQuotedString(value, ctx);
      }
      const indent = ctx.indent || (ctx.forceBlockIndent || containsDocumentMarker(value) ? "  " : "");
      const indentSize = indent ? "2" : "1";
      const literal = type === PlainValue.Type.BLOCK_FOLDED ? false : type === PlainValue.Type.BLOCK_LITERAL ? true : !lineLengthOverLimit(value, strOptions2.fold.lineWidth, indent.length);
      let header = literal ? "|" : ">";
      if (!value) return header + "\n";
      let wsStart = "";
      let wsEnd = "";
      value = value.replace(/[\n\t ]*$/, (ws) => {
        const n3 = ws.indexOf("\n");
        if (n3 === -1) {
          header += "-";
        } else if (value === ws || n3 !== ws.length - 1) {
          header += "+";
          if (onChompKeep) onChompKeep();
        }
        wsEnd = ws.replace(/\n$/, "");
        return "";
      }).replace(/^[\n ]*/, (ws) => {
        if (ws.indexOf(" ") !== -1) header += indentSize;
        const m3 = ws.match(/ +$/);
        if (m3) {
          wsStart = ws.slice(0, -m3[0].length);
          return m3[0];
        } else {
          wsStart = ws;
          return "";
        }
      });
      if (wsEnd) wsEnd = wsEnd.replace(/\n+(?!\n|$)/g, `$&${indent}`);
      if (wsStart) wsStart = wsStart.replace(/\n+/g, `$&${indent}`);
      if (comment) {
        header += " #" + comment.replace(/ ?[\r\n]+/g, " ");
        if (onComment) onComment();
      }
      if (!value) return `${header}${indentSize}
${indent}${wsEnd}`;
      if (literal) {
        value = value.replace(/\n+/g, `$&${indent}`);
        return `${header}
${indent}${wsStart}${value}${wsEnd}`;
      }
      value = value.replace(/\n+/g, "\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, "$1$2").replace(/\n+/g, `$&${indent}`);
      const body = foldFlowLines(`${wsStart}${value}${wsEnd}`, indent, FOLD_BLOCK, strOptions2.fold);
      return `${header}
${indent}${body}`;
    }
    __name(blockString, "blockString");
    function plainString(item, ctx, onComment, onChompKeep) {
      const {
        comment,
        type,
        value
      } = item;
      const {
        actualString,
        implicitKey,
        indent,
        inFlow
      } = ctx;
      if (implicitKey && /[\n[\]{},]/.test(value) || inFlow && /[[\]{},]/.test(value)) {
        return doubleQuotedString(value, ctx);
      }
      if (!value || /^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(value)) {
        return implicitKey || inFlow || value.indexOf("\n") === -1 ? value.indexOf('"') !== -1 && value.indexOf("'") === -1 ? singleQuotedString(value, ctx) : doubleQuotedString(value, ctx) : blockString(item, ctx, onComment, onChompKeep);
      }
      if (!implicitKey && !inFlow && type !== PlainValue.Type.PLAIN && value.indexOf("\n") !== -1) {
        return blockString(item, ctx, onComment, onChompKeep);
      }
      if (indent === "" && containsDocumentMarker(value)) {
        ctx.forceBlockIndent = true;
        return blockString(item, ctx, onComment, onChompKeep);
      }
      const str = value.replace(/\n+/g, `$&
${indent}`);
      if (actualString) {
        const {
          tags
        } = ctx.doc.schema;
        const resolved = resolveScalar(str, tags, tags.scalarFallback).value;
        if (typeof resolved !== "string") return doubleQuotedString(value, ctx);
      }
      const body = implicitKey ? str : foldFlowLines(str, indent, FOLD_FLOW, getFoldOptions(ctx));
      if (comment && !inFlow && (body.indexOf("\n") !== -1 || comment.indexOf("\n") !== -1)) {
        if (onComment) onComment();
        return addCommentBefore(body, indent, comment);
      }
      return body;
    }
    __name(plainString, "plainString");
    function stringifyString(item, ctx, onComment, onChompKeep) {
      const {
        defaultType
      } = strOptions2;
      const {
        implicitKey,
        inFlow
      } = ctx;
      let {
        type,
        value
      } = item;
      if (typeof value !== "string") {
        value = String(value);
        item = Object.assign({}, item, {
          value
        });
      }
      const _stringify = /* @__PURE__ */ __name((_type) => {
        switch (_type) {
          case PlainValue.Type.BLOCK_FOLDED:
          case PlainValue.Type.BLOCK_LITERAL:
            return blockString(item, ctx, onComment, onChompKeep);
          case PlainValue.Type.QUOTE_DOUBLE:
            return doubleQuotedString(value, ctx);
          case PlainValue.Type.QUOTE_SINGLE:
            return singleQuotedString(value, ctx);
          case PlainValue.Type.PLAIN:
            return plainString(item, ctx, onComment, onChompKeep);
          default:
            return null;
        }
      }, "_stringify");
      if (type !== PlainValue.Type.QUOTE_DOUBLE && /[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(value)) {
        type = PlainValue.Type.QUOTE_DOUBLE;
      } else if ((implicitKey || inFlow) && (type === PlainValue.Type.BLOCK_FOLDED || type === PlainValue.Type.BLOCK_LITERAL)) {
        type = PlainValue.Type.QUOTE_DOUBLE;
      }
      let res = _stringify(type);
      if (res === null) {
        res = _stringify(defaultType);
        if (res === null) throw new Error(`Unsupported default string type ${defaultType}`);
      }
      return res;
    }
    __name(stringifyString, "stringifyString");
    function stringifyNumber({
      format: format26,
      minFractionDigits,
      tag: tag2,
      value
    }) {
      if (typeof value === "bigint") return String(value);
      if (!isFinite(value)) return isNaN(value) ? ".nan" : value < 0 ? "-.inf" : ".inf";
      let n3 = JSON.stringify(value);
      if (!format26 && minFractionDigits && (!tag2 || tag2 === "tag:yaml.org,2002:float") && /^\d/.test(n3)) {
        let i3 = n3.indexOf(".");
        if (i3 < 0) {
          i3 = n3.length;
          n3 += ".";
        }
        let d3 = minFractionDigits - (n3.length - i3 - 1);
        while (d3-- > 0) n3 += "0";
      }
      return n3;
    }
    __name(stringifyNumber, "stringifyNumber");
    function checkFlowCollectionEnd(errors, cst) {
      let char, name;
      switch (cst.type) {
        case PlainValue.Type.FLOW_MAP:
          char = "}";
          name = "flow map";
          break;
        case PlainValue.Type.FLOW_SEQ:
          char = "]";
          name = "flow sequence";
          break;
        default:
          errors.push(new PlainValue.YAMLSemanticError(cst, "Not a flow collection!?"));
          return;
      }
      let lastItem;
      for (let i3 = cst.items.length - 1; i3 >= 0; --i3) {
        const item = cst.items[i3];
        if (!item || item.type !== PlainValue.Type.COMMENT) {
          lastItem = item;
          break;
        }
      }
      if (lastItem && lastItem.char !== char) {
        const msg = `Expected ${name} to end with ${char}`;
        let err;
        if (typeof lastItem.offset === "number") {
          err = new PlainValue.YAMLSemanticError(cst, msg);
          err.offset = lastItem.offset + 1;
        } else {
          err = new PlainValue.YAMLSemanticError(lastItem, msg);
          if (lastItem.range && lastItem.range.end) err.offset = lastItem.range.end - lastItem.range.start;
        }
        errors.push(err);
      }
    }
    __name(checkFlowCollectionEnd, "checkFlowCollectionEnd");
    function checkFlowCommentSpace(errors, comment) {
      const prev = comment.context.src[comment.range.start - 1];
      if (prev !== "\n" && prev !== "	" && prev !== " ") {
        const msg = "Comments must be separated from other tokens by white space characters";
        errors.push(new PlainValue.YAMLSemanticError(comment, msg));
      }
    }
    __name(checkFlowCommentSpace, "checkFlowCommentSpace");
    function getLongKeyError(source, key) {
      const sk = String(key);
      const k3 = sk.substr(0, 8) + "..." + sk.substr(-8);
      return new PlainValue.YAMLSemanticError(source, `The "${k3}" key is too long`);
    }
    __name(getLongKeyError, "getLongKeyError");
    function resolveComments(collection, comments) {
      for (const {
        afterKey,
        before,
        comment
      } of comments) {
        let item = collection.items[before];
        if (!item) {
          if (comment !== void 0) {
            if (collection.comment) collection.comment += "\n" + comment;
            else collection.comment = comment;
          }
        } else {
          if (afterKey && item.value) item = item.value;
          if (comment === void 0) {
            if (afterKey || !item.commentBefore) item.spaceBefore = true;
          } else {
            if (item.commentBefore) item.commentBefore += "\n" + comment;
            else item.commentBefore = comment;
          }
        }
      }
    }
    __name(resolveComments, "resolveComments");
    function resolveString(doc, node) {
      const res = node.strValue;
      if (!res) return "";
      if (typeof res === "string") return res;
      res.errors.forEach((error5) => {
        if (!error5.source) error5.source = node;
        doc.errors.push(error5);
      });
      return res.str;
    }
    __name(resolveString, "resolveString");
    function resolveTagHandle(doc, node) {
      const {
        handle,
        suffix
      } = node.tag;
      let prefix2 = doc.tagPrefixes.find((p3) => p3.handle === handle);
      if (!prefix2) {
        const dtp = doc.getDefaults().tagPrefixes;
        if (dtp) prefix2 = dtp.find((p3) => p3.handle === handle);
        if (!prefix2) throw new PlainValue.YAMLSemanticError(node, `The ${handle} tag handle is non-default and was not declared.`);
      }
      if (!suffix) throw new PlainValue.YAMLSemanticError(node, `The ${handle} tag has no suffix.`);
      if (handle === "!" && (doc.version || doc.options.version) === "1.0") {
        if (suffix[0] === "^") {
          doc.warnings.push(new PlainValue.YAMLWarning(node, "YAML 1.0 ^ tag expansion is not supported"));
          return suffix;
        }
        if (/[:/]/.test(suffix)) {
          const vocab = suffix.match(/^([a-z0-9-]+)\/(.*)/i);
          return vocab ? `tag:${vocab[1]}.yaml.org,2002:${vocab[2]}` : `tag:${suffix}`;
        }
      }
      return prefix2.prefix + decodeURIComponent(suffix);
    }
    __name(resolveTagHandle, "resolveTagHandle");
    function resolveTagName(doc, node) {
      const {
        tag: tag2,
        type
      } = node;
      let nonSpecific = false;
      if (tag2) {
        const {
          handle,
          suffix,
          verbatim
        } = tag2;
        if (verbatim) {
          if (verbatim !== "!" && verbatim !== "!!") return verbatim;
          const msg = `Verbatim tags aren't resolved, so ${verbatim} is invalid.`;
          doc.errors.push(new PlainValue.YAMLSemanticError(node, msg));
        } else if (handle === "!" && !suffix) {
          nonSpecific = true;
        } else {
          try {
            return resolveTagHandle(doc, node);
          } catch (error5) {
            doc.errors.push(error5);
          }
        }
      }
      switch (type) {
        case PlainValue.Type.BLOCK_FOLDED:
        case PlainValue.Type.BLOCK_LITERAL:
        case PlainValue.Type.QUOTE_DOUBLE:
        case PlainValue.Type.QUOTE_SINGLE:
          return PlainValue.defaultTags.STR;
        case PlainValue.Type.FLOW_MAP:
        case PlainValue.Type.MAP:
          return PlainValue.defaultTags.MAP;
        case PlainValue.Type.FLOW_SEQ:
        case PlainValue.Type.SEQ:
          return PlainValue.defaultTags.SEQ;
        case PlainValue.Type.PLAIN:
          return nonSpecific ? PlainValue.defaultTags.STR : null;
        default:
          return null;
      }
    }
    __name(resolveTagName, "resolveTagName");
    function resolveByTagName(doc, node, tagName) {
      const {
        tags
      } = doc.schema;
      const matchWithTest = [];
      for (const tag2 of tags) {
        if (tag2.tag === tagName) {
          if (tag2.test) matchWithTest.push(tag2);
          else {
            const res = tag2.resolve(doc, node);
            return res instanceof Collection2 ? res : new Scalar2(res);
          }
        }
      }
      const str = resolveString(doc, node);
      if (typeof str === "string" && matchWithTest.length > 0) return resolveScalar(str, matchWithTest, tags.scalarFallback);
      return null;
    }
    __name(resolveByTagName, "resolveByTagName");
    function getFallbackTagName({
      type
    }) {
      switch (type) {
        case PlainValue.Type.FLOW_MAP:
        case PlainValue.Type.MAP:
          return PlainValue.defaultTags.MAP;
        case PlainValue.Type.FLOW_SEQ:
        case PlainValue.Type.SEQ:
          return PlainValue.defaultTags.SEQ;
        default:
          return PlainValue.defaultTags.STR;
      }
    }
    __name(getFallbackTagName, "getFallbackTagName");
    function resolveTag(doc, node, tagName) {
      try {
        const res = resolveByTagName(doc, node, tagName);
        if (res) {
          if (tagName && node.tag) res.tag = tagName;
          return res;
        }
      } catch (error5) {
        if (!error5.source) error5.source = node;
        doc.errors.push(error5);
        return null;
      }
      try {
        const fallback = getFallbackTagName(node);
        if (!fallback) throw new Error(`The tag ${tagName} is unavailable`);
        const msg = `The tag ${tagName} is unavailable, falling back to ${fallback}`;
        doc.warnings.push(new PlainValue.YAMLWarning(node, msg));
        const res = resolveByTagName(doc, node, fallback);
        res.tag = tagName;
        return res;
      } catch (error5) {
        const refError = new PlainValue.YAMLReferenceError(node, error5.message);
        refError.stack = error5.stack;
        doc.errors.push(refError);
        return null;
      }
    }
    __name(resolveTag, "resolveTag");
    var isCollectionItem = /* @__PURE__ */ __name((node) => {
      if (!node) return false;
      const {
        type
      } = node;
      return type === PlainValue.Type.MAP_KEY || type === PlainValue.Type.MAP_VALUE || type === PlainValue.Type.SEQ_ITEM;
    }, "isCollectionItem");
    function resolveNodeProps(errors, node) {
      const comments = {
        before: [],
        after: []
      };
      let hasAnchor = false;
      let hasTag = false;
      const props = isCollectionItem(node.context.parent) ? node.context.parent.props.concat(node.props) : node.props;
      for (const {
        start,
        end
      } of props) {
        switch (node.context.src[start]) {
          case PlainValue.Char.COMMENT: {
            if (!node.commentHasRequiredWhitespace(start)) {
              const msg = "Comments must be separated from other tokens by white space characters";
              errors.push(new PlainValue.YAMLSemanticError(node, msg));
            }
            const {
              header,
              valueRange
            } = node;
            const cc = valueRange && (start > valueRange.start || header && start > header.start) ? comments.after : comments.before;
            cc.push(node.context.src.slice(start + 1, end));
            break;
          }
          // Actual anchor & tag resolution is handled by schema, here we just complain
          case PlainValue.Char.ANCHOR:
            if (hasAnchor) {
              const msg = "A node can have at most one anchor";
              errors.push(new PlainValue.YAMLSemanticError(node, msg));
            }
            hasAnchor = true;
            break;
          case PlainValue.Char.TAG:
            if (hasTag) {
              const msg = "A node can have at most one tag";
              errors.push(new PlainValue.YAMLSemanticError(node, msg));
            }
            hasTag = true;
            break;
        }
      }
      return {
        comments,
        hasAnchor,
        hasTag
      };
    }
    __name(resolveNodeProps, "resolveNodeProps");
    function resolveNodeValue(doc, node) {
      const {
        anchors,
        errors,
        schema
      } = doc;
      if (node.type === PlainValue.Type.ALIAS) {
        const name = node.rawValue;
        const src = anchors.getNode(name);
        if (!src) {
          const msg = `Aliased anchor not found: ${name}`;
          errors.push(new PlainValue.YAMLReferenceError(node, msg));
          return null;
        }
        const res = new Alias2(src);
        anchors._cstAliases.push(res);
        return res;
      }
      const tagName = resolveTagName(doc, node);
      if (tagName) return resolveTag(doc, node, tagName);
      if (node.type !== PlainValue.Type.PLAIN) {
        const msg = `Failed to resolve ${node.type} node here`;
        errors.push(new PlainValue.YAMLSyntaxError(node, msg));
        return null;
      }
      try {
        const str = resolveString(doc, node);
        return resolveScalar(str, schema.tags, schema.tags.scalarFallback);
      } catch (error5) {
        if (!error5.source) error5.source = node;
        errors.push(error5);
        return null;
      }
    }
    __name(resolveNodeValue, "resolveNodeValue");
    function resolveNode(doc, node) {
      if (!node) return null;
      if (node.error) doc.errors.push(node.error);
      const {
        comments,
        hasAnchor,
        hasTag
      } = resolveNodeProps(doc.errors, node);
      if (hasAnchor) {
        const {
          anchors
        } = doc;
        const name = node.anchor;
        const prev = anchors.getNode(name);
        if (prev) anchors.map[anchors.newName(name)] = prev;
        anchors.map[name] = node;
      }
      if (node.type === PlainValue.Type.ALIAS && (hasAnchor || hasTag)) {
        const msg = "An alias node must not specify any properties";
        doc.errors.push(new PlainValue.YAMLSemanticError(node, msg));
      }
      const res = resolveNodeValue(doc, node);
      if (res) {
        res.range = [node.range.start, node.range.end];
        if (doc.options.keepCstNodes) res.cstNode = node;
        if (doc.options.keepNodeTypes) res.type = node.type;
        const cb = comments.before.join("\n");
        if (cb) {
          res.commentBefore = res.commentBefore ? `${res.commentBefore}
${cb}` : cb;
        }
        const ca = comments.after.join("\n");
        if (ca) res.comment = res.comment ? `${res.comment}
${ca}` : ca;
      }
      return node.resolved = res;
    }
    __name(resolveNode, "resolveNode");
    function resolveMap(doc, cst) {
      if (cst.type !== PlainValue.Type.MAP && cst.type !== PlainValue.Type.FLOW_MAP) {
        const msg = `A ${cst.type} node cannot be resolved as a mapping`;
        doc.errors.push(new PlainValue.YAMLSyntaxError(cst, msg));
        return null;
      }
      const {
        comments,
        items
      } = cst.type === PlainValue.Type.FLOW_MAP ? resolveFlowMapItems(doc, cst) : resolveBlockMapItems(doc, cst);
      const map3 = new YAMLMap2();
      map3.items = items;
      resolveComments(map3, comments);
      let hasCollectionKey = false;
      for (let i3 = 0; i3 < items.length; ++i3) {
        const {
          key: iKey
        } = items[i3];
        if (iKey instanceof Collection2) hasCollectionKey = true;
        if (doc.schema.merge && iKey && iKey.value === MERGE_KEY) {
          items[i3] = new Merge2(items[i3]);
          const sources = items[i3].value.items;
          let error5 = null;
          sources.some((node) => {
            if (node instanceof Alias2) {
              const {
                type
              } = node.source;
              if (type === PlainValue.Type.MAP || type === PlainValue.Type.FLOW_MAP) return false;
              return error5 = "Merge nodes aliases can only point to maps";
            }
            return error5 = "Merge nodes can only have Alias nodes as values";
          });
          if (error5) doc.errors.push(new PlainValue.YAMLSemanticError(cst, error5));
        } else {
          for (let j3 = i3 + 1; j3 < items.length; ++j3) {
            const {
              key: jKey
            } = items[j3];
            if (iKey === jKey || iKey && jKey && Object.prototype.hasOwnProperty.call(iKey, "value") && iKey.value === jKey.value) {
              const msg = `Map keys must be unique; "${iKey}" is repeated`;
              doc.errors.push(new PlainValue.YAMLSemanticError(cst, msg));
              break;
            }
          }
        }
      }
      if (hasCollectionKey && !doc.options.mapAsMap) {
        const warn2 = "Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";
        doc.warnings.push(new PlainValue.YAMLWarning(cst, warn2));
      }
      cst.resolved = map3;
      return map3;
    }
    __name(resolveMap, "resolveMap");
    var valueHasPairComment = /* @__PURE__ */ __name(({
      context: {
        lineStart,
        node,
        src
      },
      props
    }) => {
      if (props.length === 0) return false;
      const {
        start
      } = props[0];
      if (node && start > node.valueRange.start) return false;
      if (src[start] !== PlainValue.Char.COMMENT) return false;
      for (let i3 = lineStart; i3 < start; ++i3) if (src[i3] === "\n") return false;
      return true;
    }, "valueHasPairComment");
    function resolvePairComment(item, pair) {
      if (!valueHasPairComment(item)) return;
      const comment = item.getPropValue(0, PlainValue.Char.COMMENT, true);
      let found = false;
      const cb = pair.value.commentBefore;
      if (cb && cb.startsWith(comment)) {
        pair.value.commentBefore = cb.substr(comment.length + 1);
        found = true;
      } else {
        const cc = pair.value.comment;
        if (!item.node && cc && cc.startsWith(comment)) {
          pair.value.comment = cc.substr(comment.length + 1);
          found = true;
        }
      }
      if (found) pair.comment = comment;
    }
    __name(resolvePairComment, "resolvePairComment");
    function resolveBlockMapItems(doc, cst) {
      const comments = [];
      const items = [];
      let key = void 0;
      let keyStart = null;
      for (let i3 = 0; i3 < cst.items.length; ++i3) {
        const item = cst.items[i3];
        switch (item.type) {
          case PlainValue.Type.BLANK_LINE:
            comments.push({
              afterKey: !!key,
              before: items.length
            });
            break;
          case PlainValue.Type.COMMENT:
            comments.push({
              afterKey: !!key,
              before: items.length,
              comment: item.comment
            });
            break;
          case PlainValue.Type.MAP_KEY:
            if (key !== void 0) items.push(new Pair2(key));
            if (item.error) doc.errors.push(item.error);
            key = resolveNode(doc, item.node);
            keyStart = null;
            break;
          case PlainValue.Type.MAP_VALUE:
            {
              if (key === void 0) key = null;
              if (item.error) doc.errors.push(item.error);
              if (!item.context.atLineStart && item.node && item.node.type === PlainValue.Type.MAP && !item.node.context.atLineStart) {
                const msg = "Nested mappings are not allowed in compact mappings";
                doc.errors.push(new PlainValue.YAMLSemanticError(item.node, msg));
              }
              let valueNode = item.node;
              if (!valueNode && item.props.length > 0) {
                valueNode = new PlainValue.PlainValue(PlainValue.Type.PLAIN, []);
                valueNode.context = {
                  parent: item,
                  src: item.context.src
                };
                const pos = item.range.start + 1;
                valueNode.range = {
                  start: pos,
                  end: pos
                };
                valueNode.valueRange = {
                  start: pos,
                  end: pos
                };
                if (typeof item.range.origStart === "number") {
                  const origPos = item.range.origStart + 1;
                  valueNode.range.origStart = valueNode.range.origEnd = origPos;
                  valueNode.valueRange.origStart = valueNode.valueRange.origEnd = origPos;
                }
              }
              const pair = new Pair2(key, resolveNode(doc, valueNode));
              resolvePairComment(item, pair);
              items.push(pair);
              if (key && typeof keyStart === "number") {
                if (item.range.start > keyStart + 1024) doc.errors.push(getLongKeyError(cst, key));
              }
              key = void 0;
              keyStart = null;
            }
            break;
          default:
            if (key !== void 0) items.push(new Pair2(key));
            key = resolveNode(doc, item);
            keyStart = item.range.start;
            if (item.error) doc.errors.push(item.error);
            next: for (let j3 = i3 + 1; ; ++j3) {
              const nextItem = cst.items[j3];
              switch (nextItem && nextItem.type) {
                case PlainValue.Type.BLANK_LINE:
                case PlainValue.Type.COMMENT:
                  continue next;
                case PlainValue.Type.MAP_VALUE:
                  break next;
                default: {
                  const msg = "Implicit map keys need to be followed by map values";
                  doc.errors.push(new PlainValue.YAMLSemanticError(item, msg));
                  break next;
                }
              }
            }
            if (item.valueRangeContainsNewline) {
              const msg = "Implicit map keys need to be on a single line";
              doc.errors.push(new PlainValue.YAMLSemanticError(item, msg));
            }
        }
      }
      if (key !== void 0) items.push(new Pair2(key));
      return {
        comments,
        items
      };
    }
    __name(resolveBlockMapItems, "resolveBlockMapItems");
    function resolveFlowMapItems(doc, cst) {
      const comments = [];
      const items = [];
      let key = void 0;
      let explicitKey = false;
      let next = "{";
      for (let i3 = 0; i3 < cst.items.length; ++i3) {
        const item = cst.items[i3];
        if (typeof item.char === "string") {
          const {
            char,
            offset
          } = item;
          if (char === "?" && key === void 0 && !explicitKey) {
            explicitKey = true;
            next = ":";
            continue;
          }
          if (char === ":") {
            if (key === void 0) key = null;
            if (next === ":") {
              next = ",";
              continue;
            }
          } else {
            if (explicitKey) {
              if (key === void 0 && char !== ",") key = null;
              explicitKey = false;
            }
            if (key !== void 0) {
              items.push(new Pair2(key));
              key = void 0;
              if (char === ",") {
                next = ":";
                continue;
              }
            }
          }
          if (char === "}") {
            if (i3 === cst.items.length - 1) continue;
          } else if (char === next) {
            next = ":";
            continue;
          }
          const msg = `Flow map contains an unexpected ${char}`;
          const err = new PlainValue.YAMLSyntaxError(cst, msg);
          err.offset = offset;
          doc.errors.push(err);
        } else if (item.type === PlainValue.Type.BLANK_LINE) {
          comments.push({
            afterKey: !!key,
            before: items.length
          });
        } else if (item.type === PlainValue.Type.COMMENT) {
          checkFlowCommentSpace(doc.errors, item);
          comments.push({
            afterKey: !!key,
            before: items.length,
            comment: item.comment
          });
        } else if (key === void 0) {
          if (next === ",") doc.errors.push(new PlainValue.YAMLSemanticError(item, "Separator , missing in flow map"));
          key = resolveNode(doc, item);
        } else {
          if (next !== ",") doc.errors.push(new PlainValue.YAMLSemanticError(item, "Indicator : missing in flow map entry"));
          items.push(new Pair2(key, resolveNode(doc, item)));
          key = void 0;
          explicitKey = false;
        }
      }
      checkFlowCollectionEnd(doc.errors, cst);
      if (key !== void 0) items.push(new Pair2(key));
      return {
        comments,
        items
      };
    }
    __name(resolveFlowMapItems, "resolveFlowMapItems");
    function resolveSeq(doc, cst) {
      if (cst.type !== PlainValue.Type.SEQ && cst.type !== PlainValue.Type.FLOW_SEQ) {
        const msg = `A ${cst.type} node cannot be resolved as a sequence`;
        doc.errors.push(new PlainValue.YAMLSyntaxError(cst, msg));
        return null;
      }
      const {
        comments,
        items
      } = cst.type === PlainValue.Type.FLOW_SEQ ? resolveFlowSeqItems(doc, cst) : resolveBlockSeqItems(doc, cst);
      const seq = new YAMLSeq2();
      seq.items = items;
      resolveComments(seq, comments);
      if (!doc.options.mapAsMap && items.some((it) => it instanceof Pair2 && it.key instanceof Collection2)) {
        const warn2 = "Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";
        doc.warnings.push(new PlainValue.YAMLWarning(cst, warn2));
      }
      cst.resolved = seq;
      return seq;
    }
    __name(resolveSeq, "resolveSeq");
    function resolveBlockSeqItems(doc, cst) {
      const comments = [];
      const items = [];
      for (let i3 = 0; i3 < cst.items.length; ++i3) {
        const item = cst.items[i3];
        switch (item.type) {
          case PlainValue.Type.BLANK_LINE:
            comments.push({
              before: items.length
            });
            break;
          case PlainValue.Type.COMMENT:
            comments.push({
              comment: item.comment,
              before: items.length
            });
            break;
          case PlainValue.Type.SEQ_ITEM:
            if (item.error) doc.errors.push(item.error);
            items.push(resolveNode(doc, item.node));
            if (item.hasProps) {
              const msg = "Sequence items cannot have tags or anchors before the - indicator";
              doc.errors.push(new PlainValue.YAMLSemanticError(item, msg));
            }
            break;
          default:
            if (item.error) doc.errors.push(item.error);
            doc.errors.push(new PlainValue.YAMLSyntaxError(item, `Unexpected ${item.type} node in sequence`));
        }
      }
      return {
        comments,
        items
      };
    }
    __name(resolveBlockSeqItems, "resolveBlockSeqItems");
    function resolveFlowSeqItems(doc, cst) {
      const comments = [];
      const items = [];
      let explicitKey = false;
      let key = void 0;
      let keyStart = null;
      let next = "[";
      let prevItem = null;
      for (let i3 = 0; i3 < cst.items.length; ++i3) {
        const item = cst.items[i3];
        if (typeof item.char === "string") {
          const {
            char,
            offset
          } = item;
          if (char !== ":" && (explicitKey || key !== void 0)) {
            if (explicitKey && key === void 0) key = next ? items.pop() : null;
            items.push(new Pair2(key));
            explicitKey = false;
            key = void 0;
            keyStart = null;
          }
          if (char === next) {
            next = null;
          } else if (!next && char === "?") {
            explicitKey = true;
          } else if (next !== "[" && char === ":" && key === void 0) {
            if (next === ",") {
              key = items.pop();
              if (key instanceof Pair2) {
                const msg = "Chaining flow sequence pairs is invalid";
                const err = new PlainValue.YAMLSemanticError(cst, msg);
                err.offset = offset;
                doc.errors.push(err);
              }
              if (!explicitKey && typeof keyStart === "number") {
                const keyEnd = item.range ? item.range.start : item.offset;
                if (keyEnd > keyStart + 1024) doc.errors.push(getLongKeyError(cst, key));
                const {
                  src
                } = prevItem.context;
                for (let i4 = keyStart; i4 < keyEnd; ++i4) if (src[i4] === "\n") {
                  const msg = "Implicit keys of flow sequence pairs need to be on a single line";
                  doc.errors.push(new PlainValue.YAMLSemanticError(prevItem, msg));
                  break;
                }
              }
            } else {
              key = null;
            }
            keyStart = null;
            explicitKey = false;
            next = null;
          } else if (next === "[" || char !== "]" || i3 < cst.items.length - 1) {
            const msg = `Flow sequence contains an unexpected ${char}`;
            const err = new PlainValue.YAMLSyntaxError(cst, msg);
            err.offset = offset;
            doc.errors.push(err);
          }
        } else if (item.type === PlainValue.Type.BLANK_LINE) {
          comments.push({
            before: items.length
          });
        } else if (item.type === PlainValue.Type.COMMENT) {
          checkFlowCommentSpace(doc.errors, item);
          comments.push({
            comment: item.comment,
            before: items.length
          });
        } else {
          if (next) {
            const msg = `Expected a ${next} in flow sequence`;
            doc.errors.push(new PlainValue.YAMLSemanticError(item, msg));
          }
          const value = resolveNode(doc, item);
          if (key === void 0) {
            items.push(value);
            prevItem = item;
          } else {
            items.push(new Pair2(key, value));
            key = void 0;
          }
          keyStart = item.range.start;
          next = ",";
        }
      }
      checkFlowCollectionEnd(doc.errors, cst);
      if (key !== void 0) items.push(new Pair2(key));
      return {
        comments,
        items
      };
    }
    __name(resolveFlowSeqItems, "resolveFlowSeqItems");
    exports2.Alias = Alias2;
    exports2.Collection = Collection2;
    exports2.Merge = Merge2;
    exports2.Node = Node2;
    exports2.Pair = Pair2;
    exports2.Scalar = Scalar2;
    exports2.YAMLMap = YAMLMap2;
    exports2.YAMLSeq = YAMLSeq2;
    exports2.addComment = addComment;
    exports2.binaryOptions = binaryOptions2;
    exports2.boolOptions = boolOptions2;
    exports2.findPair = findPair;
    exports2.intOptions = intOptions2;
    exports2.isEmptyPath = isEmptyPath;
    exports2.nullOptions = nullOptions2;
    exports2.resolveMap = resolveMap;
    exports2.resolveNode = resolveNode;
    exports2.resolveSeq = resolveSeq;
    exports2.resolveString = resolveString;
    exports2.strOptions = strOptions2;
    exports2.stringifyNumber = stringifyNumber;
    exports2.stringifyString = stringifyString;
    exports2.toJSON = toJSON;
  }
});

// ../../node_modules/yaml/dist/warnings-1000a372.js
var require_warnings_1000a372 = __commonJS({
  "../../node_modules/yaml/dist/warnings-1000a372.js"(exports2) {
    "use strict";
    var PlainValue = require_PlainValue_ec8e588e();
    var resolveSeq = require_resolveSeq_d03cb037();
    var binary = {
      identify: /* @__PURE__ */ __name((value) => value instanceof Uint8Array, "identify"),
      // Buffer inherits from Uint8Array
      default: false,
      tag: "tag:yaml.org,2002:binary",
      /**
       * Returns a Buffer in node and an Uint8Array in browsers
       *
       * To use the resulting buffer as an image, you'll want to do something like:
       *
       *   const blob = new Blob([buffer], { type: 'image/jpeg' })
       *   document.querySelector('#photo').src = URL.createObjectURL(blob)
       */
      resolve: /* @__PURE__ */ __name((doc, node) => {
        const src = resolveSeq.resolveString(doc, node);
        if (typeof Buffer === "function") {
          return Buffer.from(src, "base64");
        } else if (typeof atob === "function") {
          const str = atob(src.replace(/[\n\r]/g, ""));
          const buffer = new Uint8Array(str.length);
          for (let i3 = 0; i3 < str.length; ++i3) buffer[i3] = str.charCodeAt(i3);
          return buffer;
        } else {
          const msg = "This environment does not support reading binary tags; either Buffer or atob is required";
          doc.errors.push(new PlainValue.YAMLReferenceError(node, msg));
          return null;
        }
      }, "resolve"),
      options: resolveSeq.binaryOptions,
      stringify: /* @__PURE__ */ __name(({
        comment,
        type,
        value
      }, ctx, onComment, onChompKeep) => {
        let src;
        if (typeof Buffer === "function") {
          src = value instanceof Buffer ? value.toString("base64") : Buffer.from(value.buffer).toString("base64");
        } else if (typeof btoa === "function") {
          let s3 = "";
          for (let i3 = 0; i3 < value.length; ++i3) s3 += String.fromCharCode(value[i3]);
          src = btoa(s3);
        } else {
          throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");
        }
        if (!type) type = resolveSeq.binaryOptions.defaultType;
        if (type === PlainValue.Type.QUOTE_DOUBLE) {
          value = src;
        } else {
          const {
            lineWidth
          } = resolveSeq.binaryOptions;
          const n3 = Math.ceil(src.length / lineWidth);
          const lines = new Array(n3);
          for (let i3 = 0, o3 = 0; i3 < n3; ++i3, o3 += lineWidth) {
            lines[i3] = src.substr(o3, lineWidth);
          }
          value = lines.join(type === PlainValue.Type.BLOCK_LITERAL ? "\n" : " ");
        }
        return resolveSeq.stringifyString({
          comment,
          type,
          value
        }, ctx, onComment, onChompKeep);
      }, "stringify")
    };
    function parsePairs(doc, cst) {
      const seq = resolveSeq.resolveSeq(doc, cst);
      for (let i3 = 0; i3 < seq.items.length; ++i3) {
        let item = seq.items[i3];
        if (item instanceof resolveSeq.Pair) continue;
        else if (item instanceof resolveSeq.YAMLMap) {
          if (item.items.length > 1) {
            const msg = "Each pair must have its own sequence indicator";
            throw new PlainValue.YAMLSemanticError(cst, msg);
          }
          const pair = item.items[0] || new resolveSeq.Pair();
          if (item.commentBefore) pair.commentBefore = pair.commentBefore ? `${item.commentBefore}
${pair.commentBefore}` : item.commentBefore;
          if (item.comment) pair.comment = pair.comment ? `${item.comment}
${pair.comment}` : item.comment;
          item = pair;
        }
        seq.items[i3] = item instanceof resolveSeq.Pair ? item : new resolveSeq.Pair(item);
      }
      return seq;
    }
    __name(parsePairs, "parsePairs");
    function createPairs(schema, iterable, ctx) {
      const pairs2 = new resolveSeq.YAMLSeq(schema);
      pairs2.tag = "tag:yaml.org,2002:pairs";
      for (const it of iterable) {
        let key, value;
        if (Array.isArray(it)) {
          if (it.length === 2) {
            key = it[0];
            value = it[1];
          } else throw new TypeError(`Expected [key, value] tuple: ${it}`);
        } else if (it && it instanceof Object) {
          const keys = Object.keys(it);
          if (keys.length === 1) {
            key = keys[0];
            value = it[key];
          } else throw new TypeError(`Expected { key: value } tuple: ${it}`);
        } else {
          key = it;
        }
        const pair = schema.createPair(key, value, ctx);
        pairs2.items.push(pair);
      }
      return pairs2;
    }
    __name(createPairs, "createPairs");
    var pairs = {
      default: false,
      tag: "tag:yaml.org,2002:pairs",
      resolve: parsePairs,
      createNode: createPairs
    };
    var YAMLOMap = class _YAMLOMap extends resolveSeq.YAMLSeq {
      static {
        __name(this, "YAMLOMap");
      }
      constructor() {
        super();
        PlainValue._defineProperty(this, "add", resolveSeq.YAMLMap.prototype.add.bind(this));
        PlainValue._defineProperty(this, "delete", resolveSeq.YAMLMap.prototype.delete.bind(this));
        PlainValue._defineProperty(this, "get", resolveSeq.YAMLMap.prototype.get.bind(this));
        PlainValue._defineProperty(this, "has", resolveSeq.YAMLMap.prototype.has.bind(this));
        PlainValue._defineProperty(this, "set", resolveSeq.YAMLMap.prototype.set.bind(this));
        this.tag = _YAMLOMap.tag;
      }
      toJSON(_3, ctx) {
        const map3 = /* @__PURE__ */ new Map();
        if (ctx && ctx.onCreate) ctx.onCreate(map3);
        for (const pair of this.items) {
          let key, value;
          if (pair instanceof resolveSeq.Pair) {
            key = resolveSeq.toJSON(pair.key, "", ctx);
            value = resolveSeq.toJSON(pair.value, key, ctx);
          } else {
            key = resolveSeq.toJSON(pair, "", ctx);
          }
          if (map3.has(key)) throw new Error("Ordered maps must not include duplicate keys");
          map3.set(key, value);
        }
        return map3;
      }
    };
    PlainValue._defineProperty(YAMLOMap, "tag", "tag:yaml.org,2002:omap");
    function parseOMap(doc, cst) {
      const pairs2 = parsePairs(doc, cst);
      const seenKeys = [];
      for (const {
        key
      } of pairs2.items) {
        if (key instanceof resolveSeq.Scalar) {
          if (seenKeys.includes(key.value)) {
            const msg = "Ordered maps must not include duplicate keys";
            throw new PlainValue.YAMLSemanticError(cst, msg);
          } else {
            seenKeys.push(key.value);
          }
        }
      }
      return Object.assign(new YAMLOMap(), pairs2);
    }
    __name(parseOMap, "parseOMap");
    function createOMap(schema, iterable, ctx) {
      const pairs2 = createPairs(schema, iterable, ctx);
      const omap2 = new YAMLOMap();
      omap2.items = pairs2.items;
      return omap2;
    }
    __name(createOMap, "createOMap");
    var omap = {
      identify: /* @__PURE__ */ __name((value) => value instanceof Map, "identify"),
      nodeClass: YAMLOMap,
      default: false,
      tag: "tag:yaml.org,2002:omap",
      resolve: parseOMap,
      createNode: createOMap
    };
    var YAMLSet = class _YAMLSet extends resolveSeq.YAMLMap {
      static {
        __name(this, "YAMLSet");
      }
      constructor() {
        super();
        this.tag = _YAMLSet.tag;
      }
      add(key) {
        const pair = key instanceof resolveSeq.Pair ? key : new resolveSeq.Pair(key);
        const prev = resolveSeq.findPair(this.items, pair.key);
        if (!prev) this.items.push(pair);
      }
      get(key, keepPair) {
        const pair = resolveSeq.findPair(this.items, key);
        return !keepPair && pair instanceof resolveSeq.Pair ? pair.key instanceof resolveSeq.Scalar ? pair.key.value : pair.key : pair;
      }
      set(key, value) {
        if (typeof value !== "boolean") throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof value}`);
        const prev = resolveSeq.findPair(this.items, key);
        if (prev && !value) {
          this.items.splice(this.items.indexOf(prev), 1);
        } else if (!prev && value) {
          this.items.push(new resolveSeq.Pair(key));
        }
      }
      toJSON(_3, ctx) {
        return super.toJSON(_3, ctx, Set);
      }
      toString(ctx, onComment, onChompKeep) {
        if (!ctx) return JSON.stringify(this);
        if (this.hasAllNullValues()) return super.toString(ctx, onComment, onChompKeep);
        else throw new Error("Set items must all have null values");
      }
    };
    PlainValue._defineProperty(YAMLSet, "tag", "tag:yaml.org,2002:set");
    function parseSet(doc, cst) {
      const map3 = resolveSeq.resolveMap(doc, cst);
      if (!map3.hasAllNullValues()) throw new PlainValue.YAMLSemanticError(cst, "Set items must all have null values");
      return Object.assign(new YAMLSet(), map3);
    }
    __name(parseSet, "parseSet");
    function createSet(schema, iterable, ctx) {
      const set2 = new YAMLSet();
      for (const value of iterable) set2.items.push(schema.createPair(value, null, ctx));
      return set2;
    }
    __name(createSet, "createSet");
    var set = {
      identify: /* @__PURE__ */ __name((value) => value instanceof Set, "identify"),
      nodeClass: YAMLSet,
      default: false,
      tag: "tag:yaml.org,2002:set",
      resolve: parseSet,
      createNode: createSet
    };
    var parseSexagesimal = /* @__PURE__ */ __name((sign, parts) => {
      const n3 = parts.split(":").reduce((n4, p3) => n4 * 60 + Number(p3), 0);
      return sign === "-" ? -n3 : n3;
    }, "parseSexagesimal");
    var stringifySexagesimal = /* @__PURE__ */ __name(({
      value
    }) => {
      if (isNaN(value) || !isFinite(value)) return resolveSeq.stringifyNumber(value);
      let sign = "";
      if (value < 0) {
        sign = "-";
        value = Math.abs(value);
      }
      const parts = [value % 60];
      if (value < 60) {
        parts.unshift(0);
      } else {
        value = Math.round((value - parts[0]) / 60);
        parts.unshift(value % 60);
        if (value >= 60) {
          value = Math.round((value - parts[0]) / 60);
          parts.unshift(value);
        }
      }
      return sign + parts.map((n3) => n3 < 10 ? "0" + String(n3) : String(n3)).join(":").replace(/000000\d*$/, "");
    }, "stringifySexagesimal");
    var intTime = {
      identify: /* @__PURE__ */ __name((value) => typeof value === "number", "identify"),
      default: true,
      tag: "tag:yaml.org,2002:int",
      format: "TIME",
      test: /^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,
      resolve: /* @__PURE__ */ __name((str, sign, parts) => parseSexagesimal(sign, parts.replace(/_/g, "")), "resolve"),
      stringify: stringifySexagesimal
    };
    var floatTime = {
      identify: /* @__PURE__ */ __name((value) => typeof value === "number", "identify"),
      default: true,
      tag: "tag:yaml.org,2002:float",
      format: "TIME",
      test: /^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,
      resolve: /* @__PURE__ */ __name((str, sign, parts) => parseSexagesimal(sign, parts.replace(/_/g, "")), "resolve"),
      stringify: stringifySexagesimal
    };
    var timestamp = {
      identify: /* @__PURE__ */ __name((value) => value instanceof Date, "identify"),
      default: true,
      tag: "tag:yaml.org,2002:timestamp",
      // If the time zone is omitted, the timestamp is assumed to be specified in UTC. The time part
      // may be omitted altogether, resulting in a date format. In such a case, the time part is
      // assumed to be 00:00:00Z (start of day, UTC).
      test: RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),
      resolve: /* @__PURE__ */ __name((str, year, month, day, hour, minute, second, millisec, tz) => {
        if (millisec) millisec = (millisec + "00").substr(1, 3);
        let date = Date.UTC(year, month - 1, day, hour || 0, minute || 0, second || 0, millisec || 0);
        if (tz && tz !== "Z") {
          let d3 = parseSexagesimal(tz[0], tz.slice(1));
          if (Math.abs(d3) < 30) d3 *= 60;
          date -= 6e4 * d3;
        }
        return new Date(date);
      }, "resolve"),
      stringify: /* @__PURE__ */ __name(({
        value
      }) => value.toISOString().replace(/((T00:00)?:00)?\.000Z$/, ""), "stringify")
    };
    function shouldWarn2(deprecation) {
      const env2 = typeof process !== "undefined" && process.env || {};
      if (deprecation) {
        if (typeof YAML_SILENCE_DEPRECATION_WARNINGS !== "undefined") return !YAML_SILENCE_DEPRECATION_WARNINGS;
        return !env2.YAML_SILENCE_DEPRECATION_WARNINGS;
      }
      if (typeof YAML_SILENCE_WARNINGS !== "undefined") return !YAML_SILENCE_WARNINGS;
      return !env2.YAML_SILENCE_WARNINGS;
    }
    __name(shouldWarn2, "shouldWarn");
    function warn2(warning2, type) {
      if (shouldWarn2(false)) {
        const emit = typeof process !== "undefined" && process.emitWarning;
        if (emit) emit(warning2, type);
        else {
          console.warn(type ? `${type}: ${warning2}` : warning2);
        }
      }
    }
    __name(warn2, "warn");
    function warnFileDeprecation(filename) {
      if (shouldWarn2(true)) {
        const path38 = filename.replace(/.*yaml[/\\]/i, "").replace(/\.js$/, "").replace(/\\/g, "/");
        warn2(`The endpoint 'yaml/${path38}' will be removed in a future release.`, "DeprecationWarning");
      }
    }
    __name(warnFileDeprecation, "warnFileDeprecation");
    var warned2 = {};
    function warnOptionDeprecation(name, alternative) {
      if (!warned2[name] && shouldWarn2(true)) {
        warned2[name] = true;
        let msg = `The option '${name}' will be removed in a future release`;
        msg += alternative ? `, use '${alternative}' instead.` : ".";
        warn2(msg, "DeprecationWarning");
      }
    }
    __name(warnOptionDeprecation, "warnOptionDeprecation");
    exports2.binary = binary;
    exports2.floatTime = floatTime;
    exports2.intTime = intTime;
    exports2.omap = omap;
    exports2.pairs = pairs;
    exports2.set = set;
    exports2.timestamp = timestamp;
    exports2.warn = warn2;
    exports2.warnFileDeprecation = warnFileDeprecation;
    exports2.warnOptionDeprecation = warnOptionDeprecation;
  }
});

// ../../node_modules/yaml/dist/Schema-88e323a7.js
var require_Schema_88e323a7 = __commonJS({
  "../../node_modules/yaml/dist/Schema-88e323a7.js"(exports2) {
    "use strict";
    var PlainValue = require_PlainValue_ec8e588e();
    var resolveSeq = require_resolveSeq_d03cb037();
    var warnings = require_warnings_1000a372();
    function createMap(schema, obj, ctx) {
      const map4 = new resolveSeq.YAMLMap(schema);
      if (obj instanceof Map) {
        for (const [key, value] of obj) map4.items.push(schema.createPair(key, value, ctx));
      } else if (obj && typeof obj === "object") {
        for (const key of Object.keys(obj)) map4.items.push(schema.createPair(key, obj[key], ctx));
      }
      if (typeof schema.sortMapEntries === "function") {
        map4.items.sort(schema.sortMapEntries);
      }
      return map4;
    }
    __name(createMap, "createMap");
    var map3 = {
      createNode: createMap,
      default: true,
      nodeClass: resolveSeq.YAMLMap,
      tag: "tag:yaml.org,2002:map",
      resolve: resolveSeq.resolveMap
    };
    function createSeq(schema, obj, ctx) {
      const seq2 = new resolveSeq.YAMLSeq(schema);
      if (obj && obj[Symbol.iterator]) {
        for (const it of obj) {
          const v6 = schema.createNode(it, ctx.wrapScalars, null, ctx);
          seq2.items.push(v6);
        }
      }
      return seq2;
    }
    __name(createSeq, "createSeq");
    var seq = {
      createNode: createSeq,
      default: true,
      nodeClass: resolveSeq.YAMLSeq,
      tag: "tag:yaml.org,2002:seq",
      resolve: resolveSeq.resolveSeq
    };
    var string = {
      identify: /* @__PURE__ */ __name((value) => typeof value === "string", "identify"),
      default: true,
      tag: "tag:yaml.org,2002:str",
      resolve: resolveSeq.resolveString,
      stringify(item, ctx, onComment, onChompKeep) {
        ctx = Object.assign({
          actualString: true
        }, ctx);
        return resolveSeq.stringifyString(item, ctx, onComment, onChompKeep);
      },
      options: resolveSeq.strOptions
    };
    var failsafe = [map3, seq, string];
    var intIdentify$2 = /* @__PURE__ */ __name((value) => typeof value === "bigint" || Number.isInteger(value), "intIdentify$2");
    var intResolve$1 = /* @__PURE__ */ __name((src, part, radix) => resolveSeq.intOptions.asBigInt ? BigInt(src) : parseInt(part, radix), "intResolve$1");
    function intStringify$1(node, radix, prefix2) {
      const {
        value
      } = node;
      if (intIdentify$2(value) && value >= 0) return prefix2 + value.toString(radix);
      return resolveSeq.stringifyNumber(node);
    }
    __name(intStringify$1, "intStringify$1");
    var nullObj = {
      identify: /* @__PURE__ */ __name((value) => value == null, "identify"),
      createNode: /* @__PURE__ */ __name((schema, value, ctx) => ctx.wrapScalars ? new resolveSeq.Scalar(null) : null, "createNode"),
      default: true,
      tag: "tag:yaml.org,2002:null",
      test: /^(?:~|[Nn]ull|NULL)?$/,
      resolve: /* @__PURE__ */ __name(() => null, "resolve"),
      options: resolveSeq.nullOptions,
      stringify: /* @__PURE__ */ __name(() => resolveSeq.nullOptions.nullStr, "stringify")
    };
    var boolObj = {
      identify: /* @__PURE__ */ __name((value) => typeof value === "boolean", "identify"),
      default: true,
      tag: "tag:yaml.org,2002:bool",
      test: /^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,
      resolve: /* @__PURE__ */ __name((str) => str[0] === "t" || str[0] === "T", "resolve"),
      options: resolveSeq.boolOptions,
      stringify: /* @__PURE__ */ __name(({
        value
      }) => value ? resolveSeq.boolOptions.trueStr : resolveSeq.boolOptions.falseStr, "stringify")
    };
    var octObj = {
      identify: /* @__PURE__ */ __name((value) => intIdentify$2(value) && value >= 0, "identify"),
      default: true,
      tag: "tag:yaml.org,2002:int",
      format: "OCT",
      test: /^0o([0-7]+)$/,
      resolve: /* @__PURE__ */ __name((str, oct) => intResolve$1(str, oct, 8), "resolve"),
      options: resolveSeq.intOptions,
      stringify: /* @__PURE__ */ __name((node) => intStringify$1(node, 8, "0o"), "stringify")
    };
    var intObj = {
      identify: intIdentify$2,
      default: true,
      tag: "tag:yaml.org,2002:int",
      test: /^[-+]?[0-9]+$/,
      resolve: /* @__PURE__ */ __name((str) => intResolve$1(str, str, 10), "resolve"),
      options: resolveSeq.intOptions,
      stringify: resolveSeq.stringifyNumber
    };
    var hexObj = {
      identify: /* @__PURE__ */ __name((value) => intIdentify$2(value) && value >= 0, "identify"),
      default: true,
      tag: "tag:yaml.org,2002:int",
      format: "HEX",
      test: /^0x([0-9a-fA-F]+)$/,
      resolve: /* @__PURE__ */ __name((str, hex) => intResolve$1(str, hex, 16), "resolve"),
      options: resolveSeq.intOptions,
      stringify: /* @__PURE__ */ __name((node) => intStringify$1(node, 16, "0x"), "stringify")
    };
    var nanObj = {
      identify: /* @__PURE__ */ __name((value) => typeof value === "number", "identify"),
      default: true,
      tag: "tag:yaml.org,2002:float",
      test: /^(?:[-+]?\.inf|(\.nan))$/i,
      resolve: /* @__PURE__ */ __name((str, nan) => nan ? NaN : str[0] === "-" ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY, "resolve"),
      stringify: resolveSeq.stringifyNumber
    };
    var expObj = {
      identify: /* @__PURE__ */ __name((value) => typeof value === "number", "identify"),
      default: true,
      tag: "tag:yaml.org,2002:float",
      format: "EXP",
      test: /^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,
      resolve: /* @__PURE__ */ __name((str) => parseFloat(str), "resolve"),
      stringify: /* @__PURE__ */ __name(({
        value
      }) => Number(value).toExponential(), "stringify")
    };
    var floatObj = {
      identify: /* @__PURE__ */ __name((value) => typeof value === "number", "identify"),
      default: true,
      tag: "tag:yaml.org,2002:float",
      test: /^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,
      resolve(str, frac1, frac2) {
        const frac = frac1 || frac2;
        const node = new resolveSeq.Scalar(parseFloat(str));
        if (frac && frac[frac.length - 1] === "0") node.minFractionDigits = frac.length;
        return node;
      },
      stringify: resolveSeq.stringifyNumber
    };
    var core = failsafe.concat([nullObj, boolObj, octObj, intObj, hexObj, nanObj, expObj, floatObj]);
    var intIdentify$1 = /* @__PURE__ */ __name((value) => typeof value === "bigint" || Number.isInteger(value), "intIdentify$1");
    var stringifyJSON = /* @__PURE__ */ __name(({
      value
    }) => JSON.stringify(value), "stringifyJSON");
    var json = [map3, seq, {
      identify: /* @__PURE__ */ __name((value) => typeof value === "string", "identify"),
      default: true,
      tag: "tag:yaml.org,2002:str",
      resolve: resolveSeq.resolveString,
      stringify: stringifyJSON
    }, {
      identify: /* @__PURE__ */ __name((value) => value == null, "identify"),
      createNode: /* @__PURE__ */ __name((schema, value, ctx) => ctx.wrapScalars ? new resolveSeq.Scalar(null) : null, "createNode"),
      default: true,
      tag: "tag:yaml.org,2002:null",
      test: /^null$/,
      resolve: /* @__PURE__ */ __name(() => null, "resolve"),
      stringify: stringifyJSON
    }, {
      identify: /* @__PURE__ */ __name((value) => typeof value === "boolean", "identify"),
      default: true,
      tag: "tag:yaml.org,2002:bool",
      test: /^true|false$/,
      resolve: /* @__PURE__ */ __name((str) => str === "true", "resolve"),
      stringify: stringifyJSON
    }, {
      identify: intIdentify$1,
      default: true,
      tag: "tag:yaml.org,2002:int",
      test: /^-?(?:0|[1-9][0-9]*)$/,
      resolve: /* @__PURE__ */ __name((str) => resolveSeq.intOptions.asBigInt ? BigInt(str) : parseInt(str, 10), "resolve"),
      stringify: /* @__PURE__ */ __name(({
        value
      }) => intIdentify$1(value) ? value.toString() : JSON.stringify(value), "stringify")
    }, {
      identify: /* @__PURE__ */ __name((value) => typeof value === "number", "identify"),
      default: true,
      tag: "tag:yaml.org,2002:float",
      test: /^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,
      resolve: /* @__PURE__ */ __name((str) => parseFloat(str), "resolve"),
      stringify: stringifyJSON
    }];
    json.scalarFallback = (str) => {
      throw new SyntaxError(`Unresolved plain scalar ${JSON.stringify(str)}`);
    };
    var boolStringify = /* @__PURE__ */ __name(({
      value
    }) => value ? resolveSeq.boolOptions.trueStr : resolveSeq.boolOptions.falseStr, "boolStringify");
    var intIdentify = /* @__PURE__ */ __name((value) => typeof value === "bigint" || Number.isInteger(value), "intIdentify");
    function intResolve(sign, src, radix) {
      let str = src.replace(/_/g, "");
      if (resolveSeq.intOptions.asBigInt) {
        switch (radix) {
          case 2:
            str = `0b${str}`;
            break;
          case 8:
            str = `0o${str}`;
            break;
          case 16:
            str = `0x${str}`;
            break;
        }
        const n4 = BigInt(str);
        return sign === "-" ? BigInt(-1) * n4 : n4;
      }
      const n3 = parseInt(str, radix);
      return sign === "-" ? -1 * n3 : n3;
    }
    __name(intResolve, "intResolve");
    function intStringify(node, radix, prefix2) {
      const {
        value
      } = node;
      if (intIdentify(value)) {
        const str = value.toString(radix);
        return value < 0 ? "-" + prefix2 + str.substr(1) : prefix2 + str;
      }
      return resolveSeq.stringifyNumber(node);
    }
    __name(intStringify, "intStringify");
    var yaml11 = failsafe.concat([{
      identify: /* @__PURE__ */ __name((value) => value == null, "identify"),
      createNode: /* @__PURE__ */ __name((schema, value, ctx) => ctx.wrapScalars ? new resolveSeq.Scalar(null) : null, "createNode"),
      default: true,
      tag: "tag:yaml.org,2002:null",
      test: /^(?:~|[Nn]ull|NULL)?$/,
      resolve: /* @__PURE__ */ __name(() => null, "resolve"),
      options: resolveSeq.nullOptions,
      stringify: /* @__PURE__ */ __name(() => resolveSeq.nullOptions.nullStr, "stringify")
    }, {
      identify: /* @__PURE__ */ __name((value) => typeof value === "boolean", "identify"),
      default: true,
      tag: "tag:yaml.org,2002:bool",
      test: /^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,
      resolve: /* @__PURE__ */ __name(() => true, "resolve"),
      options: resolveSeq.boolOptions,
      stringify: boolStringify
    }, {
      identify: /* @__PURE__ */ __name((value) => typeof value === "boolean", "identify"),
      default: true,
      tag: "tag:yaml.org,2002:bool",
      test: /^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,
      resolve: /* @__PURE__ */ __name(() => false, "resolve"),
      options: resolveSeq.boolOptions,
      stringify: boolStringify
    }, {
      identify: intIdentify,
      default: true,
      tag: "tag:yaml.org,2002:int",
      format: "BIN",
      test: /^([-+]?)0b([0-1_]+)$/,
      resolve: /* @__PURE__ */ __name((str, sign, bin) => intResolve(sign, bin, 2), "resolve"),
      stringify: /* @__PURE__ */ __name((node) => intStringify(node, 2, "0b"), "stringify")
    }, {
      identify: intIdentify,
      default: true,
      tag: "tag:yaml.org,2002:int",
      format: "OCT",
      test: /^([-+]?)0([0-7_]+)$/,
      resolve: /* @__PURE__ */ __name((str, sign, oct) => intResolve(sign, oct, 8), "resolve"),
      stringify: /* @__PURE__ */ __name((node) => intStringify(node, 8, "0"), "stringify")
    }, {
      identify: intIdentify,
      default: true,
      tag: "tag:yaml.org,2002:int",
      test: /^([-+]?)([0-9][0-9_]*)$/,
      resolve: /* @__PURE__ */ __name((str, sign, abs) => intResolve(sign, abs, 10), "resolve"),
      stringify: resolveSeq.stringifyNumber
    }, {
      identify: intIdentify,
      default: true,
      tag: "tag:yaml.org,2002:int",
      format: "HEX",
      test: /^([-+]?)0x([0-9a-fA-F_]+)$/,
      resolve: /* @__PURE__ */ __name((str, sign, hex) => intResolve(sign, hex, 16), "resolve"),
      stringify: /* @__PURE__ */ __name((node) => intStringify(node, 16, "0x"), "stringify")
    }, {
      identify: /* @__PURE__ */ __name((value) => typeof value === "number", "identify"),
      default: true,
      tag: "tag:yaml.org,2002:float",
      test: /^(?:[-+]?\.inf|(\.nan))$/i,
      resolve: /* @__PURE__ */ __name((str, nan) => nan ? NaN : str[0] === "-" ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY, "resolve"),
      stringify: resolveSeq.stringifyNumber
    }, {
      identify: /* @__PURE__ */ __name((value) => typeof value === "number", "identify"),
      default: true,
      tag: "tag:yaml.org,2002:float",
      format: "EXP",
      test: /^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,
      resolve: /* @__PURE__ */ __name((str) => parseFloat(str.replace(/_/g, "")), "resolve"),
      stringify: /* @__PURE__ */ __name(({
        value
      }) => Number(value).toExponential(), "stringify")
    }, {
      identify: /* @__PURE__ */ __name((value) => typeof value === "number", "identify"),
      default: true,
      tag: "tag:yaml.org,2002:float",
      test: /^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,
      resolve(str, frac) {
        const node = new resolveSeq.Scalar(parseFloat(str.replace(/_/g, "")));
        if (frac) {
          const f3 = frac.replace(/_/g, "");
          if (f3[f3.length - 1] === "0") node.minFractionDigits = f3.length;
        }
        return node;
      },
      stringify: resolveSeq.stringifyNumber
    }], warnings.binary, warnings.omap, warnings.pairs, warnings.set, warnings.intTime, warnings.floatTime, warnings.timestamp);
    var schemas = {
      core,
      failsafe,
      json,
      yaml11
    };
    var tags = {
      binary: warnings.binary,
      bool: boolObj,
      float: floatObj,
      floatExp: expObj,
      floatNaN: nanObj,
      floatTime: warnings.floatTime,
      int: intObj,
      intHex: hexObj,
      intOct: octObj,
      intTime: warnings.intTime,
      map: map3,
      null: nullObj,
      omap: warnings.omap,
      pairs: warnings.pairs,
      seq,
      set: warnings.set,
      timestamp: warnings.timestamp
    };
    function findTagObject(value, tagName, tags2) {
      if (tagName) {
        const match4 = tags2.filter((t3) => t3.tag === tagName);
        const tagObj = match4.find((t3) => !t3.format) || match4[0];
        if (!tagObj) throw new Error(`Tag ${tagName} not found`);
        return tagObj;
      }
      return tags2.find((t3) => (t3.identify && t3.identify(value) || t3.class && value instanceof t3.class) && !t3.format);
    }
    __name(findTagObject, "findTagObject");
    function createNode(value, tagName, ctx) {
      if (value instanceof resolveSeq.Node) return value;
      const {
        defaultPrefix,
        onTagObj,
        prevObjects,
        schema,
        wrapScalars
      } = ctx;
      if (tagName && tagName.startsWith("!!")) tagName = defaultPrefix + tagName.slice(2);
      let tagObj = findTagObject(value, tagName, schema.tags);
      if (!tagObj) {
        if (typeof value.toJSON === "function") value = value.toJSON();
        if (!value || typeof value !== "object") return wrapScalars ? new resolveSeq.Scalar(value) : value;
        tagObj = value instanceof Map ? map3 : value[Symbol.iterator] ? seq : map3;
      }
      if (onTagObj) {
        onTagObj(tagObj);
        delete ctx.onTagObj;
      }
      const obj = {
        value: void 0,
        node: void 0
      };
      if (value && typeof value === "object" && prevObjects) {
        const prev = prevObjects.get(value);
        if (prev) {
          const alias = new resolveSeq.Alias(prev);
          ctx.aliasNodes.push(alias);
          return alias;
        }
        obj.value = value;
        prevObjects.set(value, obj);
      }
      obj.node = tagObj.createNode ? tagObj.createNode(ctx.schema, value, ctx) : wrapScalars ? new resolveSeq.Scalar(value) : value;
      if (tagName && obj.node instanceof resolveSeq.Node) obj.node.tag = tagName;
      return obj.node;
    }
    __name(createNode, "createNode");
    function getSchemaTags(schemas2, knownTags, customTags, schemaId) {
      let tags2 = schemas2[schemaId.replace(/\W/g, "")];
      if (!tags2) {
        const keys = Object.keys(schemas2).map((key) => JSON.stringify(key)).join(", ");
        throw new Error(`Unknown schema "${schemaId}"; use one of ${keys}`);
      }
      if (Array.isArray(customTags)) {
        for (const tag2 of customTags) tags2 = tags2.concat(tag2);
      } else if (typeof customTags === "function") {
        tags2 = customTags(tags2.slice());
      }
      for (let i3 = 0; i3 < tags2.length; ++i3) {
        const tag2 = tags2[i3];
        if (typeof tag2 === "string") {
          const tagObj = knownTags[tag2];
          if (!tagObj) {
            const keys = Object.keys(knownTags).map((key) => JSON.stringify(key)).join(", ");
            throw new Error(`Unknown custom tag "${tag2}"; use one of ${keys}`);
          }
          tags2[i3] = tagObj;
        }
      }
      return tags2;
    }
    __name(getSchemaTags, "getSchemaTags");
    var sortMapEntriesByKey = /* @__PURE__ */ __name((a3, b3) => a3.key < b3.key ? -1 : a3.key > b3.key ? 1 : 0, "sortMapEntriesByKey");
    var Schema3 = class _Schema {
      static {
        __name(this, "Schema");
      }
      // TODO: remove in v2
      // TODO: remove in v2
      constructor({
        customTags,
        merge,
        schema,
        sortMapEntries,
        tags: deprecatedCustomTags
      }) {
        this.merge = !!merge;
        this.name = schema;
        this.sortMapEntries = sortMapEntries === true ? sortMapEntriesByKey : sortMapEntries || null;
        if (!customTags && deprecatedCustomTags) warnings.warnOptionDeprecation("tags", "customTags");
        this.tags = getSchemaTags(schemas, tags, customTags || deprecatedCustomTags, schema);
      }
      createNode(value, wrapScalars, tagName, ctx) {
        const baseCtx = {
          defaultPrefix: _Schema.defaultPrefix,
          schema: this,
          wrapScalars
        };
        const createCtx = ctx ? Object.assign(ctx, baseCtx) : baseCtx;
        return createNode(value, tagName, createCtx);
      }
      createPair(key, value, ctx) {
        if (!ctx) ctx = {
          wrapScalars: true
        };
        const k3 = this.createNode(key, ctx.wrapScalars, null, ctx);
        const v6 = this.createNode(value, ctx.wrapScalars, null, ctx);
        return new resolveSeq.Pair(k3, v6);
      }
    };
    PlainValue._defineProperty(Schema3, "defaultPrefix", PlainValue.defaultTagPrefix);
    PlainValue._defineProperty(Schema3, "defaultTags", PlainValue.defaultTags);
    exports2.Schema = Schema3;
  }
});

// ../../node_modules/yaml/dist/Document-9b4560a1.js
var require_Document_9b4560a1 = __commonJS({
  "../../node_modules/yaml/dist/Document-9b4560a1.js"(exports2) {
    "use strict";
    var PlainValue = require_PlainValue_ec8e588e();
    var resolveSeq = require_resolveSeq_d03cb037();
    var Schema3 = require_Schema_88e323a7();
    var defaultOptions3 = {
      anchorPrefix: "a",
      customTags: null,
      indent: 2,
      indentSeq: true,
      keepCstNodes: false,
      keepNodeTypes: true,
      keepBlobsInJSON: true,
      mapAsMap: false,
      maxAliasCount: 100,
      prettyErrors: false,
      // TODO Set true in v2
      simpleKeys: false,
      version: "1.2"
    };
    var scalarOptions = {
      get binary() {
        return resolveSeq.binaryOptions;
      },
      set binary(opt) {
        Object.assign(resolveSeq.binaryOptions, opt);
      },
      get bool() {
        return resolveSeq.boolOptions;
      },
      set bool(opt) {
        Object.assign(resolveSeq.boolOptions, opt);
      },
      get int() {
        return resolveSeq.intOptions;
      },
      set int(opt) {
        Object.assign(resolveSeq.intOptions, opt);
      },
      get null() {
        return resolveSeq.nullOptions;
      },
      set null(opt) {
        Object.assign(resolveSeq.nullOptions, opt);
      },
      get str() {
        return resolveSeq.strOptions;
      },
      set str(opt) {
        Object.assign(resolveSeq.strOptions, opt);
      }
    };
    var documentOptions = {
      "1.0": {
        schema: "yaml-1.1",
        merge: true,
        tagPrefixes: [{
          handle: "!",
          prefix: PlainValue.defaultTagPrefix
        }, {
          handle: "!!",
          prefix: "tag:private.yaml.org,2002:"
        }]
      },
      1.1: {
        schema: "yaml-1.1",
        merge: true,
        tagPrefixes: [{
          handle: "!",
          prefix: "!"
        }, {
          handle: "!!",
          prefix: PlainValue.defaultTagPrefix
        }]
      },
      1.2: {
        schema: "core",
        merge: false,
        tagPrefixes: [{
          handle: "!",
          prefix: "!"
        }, {
          handle: "!!",
          prefix: PlainValue.defaultTagPrefix
        }]
      }
    };
    function stringifyTag(doc, tag2) {
      if ((doc.version || doc.options.version) === "1.0") {
        const priv = tag2.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);
        if (priv) return "!" + priv[1];
        const vocab = tag2.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);
        return vocab ? `!${vocab[1]}/${vocab[2]}` : `!${tag2.replace(/^tag:/, "")}`;
      }
      let p3 = doc.tagPrefixes.find((p4) => tag2.indexOf(p4.prefix) === 0);
      if (!p3) {
        const dtp = doc.getDefaults().tagPrefixes;
        p3 = dtp && dtp.find((p4) => tag2.indexOf(p4.prefix) === 0);
      }
      if (!p3) return tag2[0] === "!" ? tag2 : `!<${tag2}>`;
      const suffix = tag2.substr(p3.prefix.length).replace(/[!,[\]{}]/g, (ch) => ({
        "!": "%21",
        ",": "%2C",
        "[": "%5B",
        "]": "%5D",
        "{": "%7B",
        "}": "%7D"
      })[ch]);
      return p3.handle + suffix;
    }
    __name(stringifyTag, "stringifyTag");
    function getTagObject(tags, item) {
      if (item instanceof resolveSeq.Alias) return resolveSeq.Alias;
      if (item.tag) {
        const match4 = tags.filter((t3) => t3.tag === item.tag);
        if (match4.length > 0) return match4.find((t3) => t3.format === item.format) || match4[0];
      }
      let tagObj, obj;
      if (item instanceof resolveSeq.Scalar) {
        obj = item.value;
        const match4 = tags.filter((t3) => t3.identify && t3.identify(obj) || t3.class && obj instanceof t3.class);
        tagObj = match4.find((t3) => t3.format === item.format) || match4.find((t3) => !t3.format);
      } else {
        obj = item;
        tagObj = tags.find((t3) => t3.nodeClass && obj instanceof t3.nodeClass);
      }
      if (!tagObj) {
        const name = obj && obj.constructor ? obj.constructor.name : typeof obj;
        throw new Error(`Tag not resolved for ${name} value`);
      }
      return tagObj;
    }
    __name(getTagObject, "getTagObject");
    function stringifyProps(node, tagObj, {
      anchors,
      doc
    }) {
      const props = [];
      const anchor = doc.anchors.getName(node);
      if (anchor) {
        anchors[anchor] = node;
        props.push(`&${anchor}`);
      }
      if (node.tag) {
        props.push(stringifyTag(doc, node.tag));
      } else if (!tagObj.default) {
        props.push(stringifyTag(doc, tagObj.tag));
      }
      return props.join(" ");
    }
    __name(stringifyProps, "stringifyProps");
    function stringify3(item, ctx, onComment, onChompKeep) {
      const {
        anchors,
        schema
      } = ctx.doc;
      let tagObj;
      if (!(item instanceof resolveSeq.Node)) {
        const createCtx = {
          aliasNodes: [],
          onTagObj: /* @__PURE__ */ __name((o3) => tagObj = o3, "onTagObj"),
          prevObjects: /* @__PURE__ */ new Map()
        };
        item = schema.createNode(item, true, null, createCtx);
        for (const alias of createCtx.aliasNodes) {
          alias.source = alias.source.node;
          let name = anchors.getName(alias.source);
          if (!name) {
            name = anchors.newName();
            anchors.map[name] = alias.source;
          }
        }
      }
      if (item instanceof resolveSeq.Pair) return item.toString(ctx, onComment, onChompKeep);
      if (!tagObj) tagObj = getTagObject(schema.tags, item);
      const props = stringifyProps(item, tagObj, ctx);
      if (props.length > 0) ctx.indentAtStart = (ctx.indentAtStart || 0) + props.length + 1;
      const str = typeof tagObj.stringify === "function" ? tagObj.stringify(item, ctx, onComment, onChompKeep) : item instanceof resolveSeq.Scalar ? resolveSeq.stringifyString(item, ctx, onComment, onChompKeep) : item.toString(ctx, onComment, onChompKeep);
      if (!props) return str;
      return item instanceof resolveSeq.Scalar || str[0] === "{" || str[0] === "[" ? `${props} ${str}` : `${props}
${ctx.indent}${str}`;
    }
    __name(stringify3, "stringify");
    var Anchors = class _Anchors {
      static {
        __name(this, "Anchors");
      }
      static validAnchorNode(node) {
        return node instanceof resolveSeq.Scalar || node instanceof resolveSeq.YAMLSeq || node instanceof resolveSeq.YAMLMap;
      }
      constructor(prefix2) {
        PlainValue._defineProperty(this, "map", /* @__PURE__ */ Object.create(null));
        this.prefix = prefix2;
      }
      createAlias(node, name) {
        this.setAnchor(node, name);
        return new resolveSeq.Alias(node);
      }
      createMergePair(...sources) {
        const merge = new resolveSeq.Merge();
        merge.value.items = sources.map((s3) => {
          if (s3 instanceof resolveSeq.Alias) {
            if (s3.source instanceof resolveSeq.YAMLMap) return s3;
          } else if (s3 instanceof resolveSeq.YAMLMap) {
            return this.createAlias(s3);
          }
          throw new Error("Merge sources must be Map nodes or their Aliases");
        });
        return merge;
      }
      getName(node) {
        const {
          map: map3
        } = this;
        return Object.keys(map3).find((a3) => map3[a3] === node);
      }
      getNames() {
        return Object.keys(this.map);
      }
      getNode(name) {
        return this.map[name];
      }
      newName(prefix2) {
        if (!prefix2) prefix2 = this.prefix;
        const names = Object.keys(this.map);
        for (let i3 = 1; true; ++i3) {
          const name = `${prefix2}${i3}`;
          if (!names.includes(name)) return name;
        }
      }
      // During parsing, map & aliases contain CST nodes
      resolveNodes() {
        const {
          map: map3,
          _cstAliases
        } = this;
        Object.keys(map3).forEach((a3) => {
          map3[a3] = map3[a3].resolved;
        });
        _cstAliases.forEach((a3) => {
          a3.source = a3.source.resolved;
        });
        delete this._cstAliases;
      }
      setAnchor(node, name) {
        if (node != null && !_Anchors.validAnchorNode(node)) {
          throw new Error("Anchors may only be set for Scalar, Seq and Map nodes");
        }
        if (name && /[\x00-\x19\s,[\]{}]/.test(name)) {
          throw new Error("Anchor names must not contain whitespace or control characters");
        }
        const {
          map: map3
        } = this;
        const prev = node && Object.keys(map3).find((a3) => map3[a3] === node);
        if (prev) {
          if (!name) {
            return prev;
          } else if (prev !== name) {
            delete map3[prev];
            map3[name] = node;
          }
        } else {
          if (!name) {
            if (!node) return null;
            name = this.newName();
          }
          map3[name] = node;
        }
        return name;
      }
    };
    var visit = /* @__PURE__ */ __name((node, tags) => {
      if (node && typeof node === "object") {
        const {
          tag: tag2
        } = node;
        if (node instanceof resolveSeq.Collection) {
          if (tag2) tags[tag2] = true;
          node.items.forEach((n3) => visit(n3, tags));
        } else if (node instanceof resolveSeq.Pair) {
          visit(node.key, tags);
          visit(node.value, tags);
        } else if (node instanceof resolveSeq.Scalar) {
          if (tag2) tags[tag2] = true;
        }
      }
      return tags;
    }, "visit");
    var listTagNames = /* @__PURE__ */ __name((node) => Object.keys(visit(node, {})), "listTagNames");
    function parseContents(doc, contents) {
      const comments = {
        before: [],
        after: []
      };
      let body = void 0;
      let spaceBefore = false;
      for (const node of contents) {
        if (node.valueRange) {
          if (body !== void 0) {
            const msg = "Document contains trailing content not separated by a ... or --- line";
            doc.errors.push(new PlainValue.YAMLSyntaxError(node, msg));
            break;
          }
          const res = resolveSeq.resolveNode(doc, node);
          if (spaceBefore) {
            res.spaceBefore = true;
            spaceBefore = false;
          }
          body = res;
        } else if (node.comment !== null) {
          const cc = body === void 0 ? comments.before : comments.after;
          cc.push(node.comment);
        } else if (node.type === PlainValue.Type.BLANK_LINE) {
          spaceBefore = true;
          if (body === void 0 && comments.before.length > 0 && !doc.commentBefore) {
            doc.commentBefore = comments.before.join("\n");
            comments.before = [];
          }
        }
      }
      doc.contents = body || null;
      if (!body) {
        doc.comment = comments.before.concat(comments.after).join("\n") || null;
      } else {
        const cb = comments.before.join("\n");
        if (cb) {
          const cbNode = body instanceof resolveSeq.Collection && body.items[0] ? body.items[0] : body;
          cbNode.commentBefore = cbNode.commentBefore ? `${cb}
${cbNode.commentBefore}` : cb;
        }
        doc.comment = comments.after.join("\n") || null;
      }
    }
    __name(parseContents, "parseContents");
    function resolveTagDirective({
      tagPrefixes
    }, directive) {
      const [handle, prefix2] = directive.parameters;
      if (!handle || !prefix2) {
        const msg = "Insufficient parameters given for %TAG directive";
        throw new PlainValue.YAMLSemanticError(directive, msg);
      }
      if (tagPrefixes.some((p3) => p3.handle === handle)) {
        const msg = "The %TAG directive must only be given at most once per handle in the same document.";
        throw new PlainValue.YAMLSemanticError(directive, msg);
      }
      return {
        handle,
        prefix: prefix2
      };
    }
    __name(resolveTagDirective, "resolveTagDirective");
    function resolveYamlDirective(doc, directive) {
      let [version2] = directive.parameters;
      if (directive.name === "YAML:1.0") version2 = "1.0";
      if (!version2) {
        const msg = "Insufficient parameters given for %YAML directive";
        throw new PlainValue.YAMLSemanticError(directive, msg);
      }
      if (!documentOptions[version2]) {
        const v0 = doc.version || doc.options.version;
        const msg = `Document will be parsed as YAML ${v0} rather than YAML ${version2}`;
        doc.warnings.push(new PlainValue.YAMLWarning(directive, msg));
      }
      return version2;
    }
    __name(resolveYamlDirective, "resolveYamlDirective");
    function parseDirectives(doc, directives, prevDoc) {
      const directiveComments = [];
      let hasDirectives = false;
      for (const directive of directives) {
        const {
          comment,
          name
        } = directive;
        switch (name) {
          case "TAG":
            try {
              doc.tagPrefixes.push(resolveTagDirective(doc, directive));
            } catch (error5) {
              doc.errors.push(error5);
            }
            hasDirectives = true;
            break;
          case "YAML":
          case "YAML:1.0":
            if (doc.version) {
              const msg = "The %YAML directive must only be given at most once per document.";
              doc.errors.push(new PlainValue.YAMLSemanticError(directive, msg));
            }
            try {
              doc.version = resolveYamlDirective(doc, directive);
            } catch (error5) {
              doc.errors.push(error5);
            }
            hasDirectives = true;
            break;
          default:
            if (name) {
              const msg = `YAML only supports %TAG and %YAML directives, and not %${name}`;
              doc.warnings.push(new PlainValue.YAMLWarning(directive, msg));
            }
        }
        if (comment) directiveComments.push(comment);
      }
      if (prevDoc && !hasDirectives && "1.1" === (doc.version || prevDoc.version || doc.options.version)) {
        const copyTagPrefix = /* @__PURE__ */ __name(({
          handle,
          prefix: prefix2
        }) => ({
          handle,
          prefix: prefix2
        }), "copyTagPrefix");
        doc.tagPrefixes = prevDoc.tagPrefixes.map(copyTagPrefix);
        doc.version = prevDoc.version;
      }
      doc.commentBefore = directiveComments.join("\n") || null;
    }
    __name(parseDirectives, "parseDirectives");
    function assertCollection(contents) {
      if (contents instanceof resolveSeq.Collection) return true;
      throw new Error("Expected a YAML collection as document contents");
    }
    __name(assertCollection, "assertCollection");
    var Document = class _Document {
      static {
        __name(this, "Document");
      }
      constructor(options) {
        this.anchors = new Anchors(options.anchorPrefix);
        this.commentBefore = null;
        this.comment = null;
        this.contents = null;
        this.directivesEndMarker = null;
        this.errors = [];
        this.options = options;
        this.schema = null;
        this.tagPrefixes = [];
        this.version = null;
        this.warnings = [];
      }
      add(value) {
        assertCollection(this.contents);
        return this.contents.add(value);
      }
      addIn(path38, value) {
        assertCollection(this.contents);
        this.contents.addIn(path38, value);
      }
      delete(key) {
        assertCollection(this.contents);
        return this.contents.delete(key);
      }
      deleteIn(path38) {
        if (resolveSeq.isEmptyPath(path38)) {
          if (this.contents == null) return false;
          this.contents = null;
          return true;
        }
        assertCollection(this.contents);
        return this.contents.deleteIn(path38);
      }
      getDefaults() {
        return _Document.defaults[this.version] || _Document.defaults[this.options.version] || {};
      }
      get(key, keepScalar) {
        return this.contents instanceof resolveSeq.Collection ? this.contents.get(key, keepScalar) : void 0;
      }
      getIn(path38, keepScalar) {
        if (resolveSeq.isEmptyPath(path38)) return !keepScalar && this.contents instanceof resolveSeq.Scalar ? this.contents.value : this.contents;
        return this.contents instanceof resolveSeq.Collection ? this.contents.getIn(path38, keepScalar) : void 0;
      }
      has(key) {
        return this.contents instanceof resolveSeq.Collection ? this.contents.has(key) : false;
      }
      hasIn(path38) {
        if (resolveSeq.isEmptyPath(path38)) return this.contents !== void 0;
        return this.contents instanceof resolveSeq.Collection ? this.contents.hasIn(path38) : false;
      }
      set(key, value) {
        assertCollection(this.contents);
        this.contents.set(key, value);
      }
      setIn(path38, value) {
        if (resolveSeq.isEmptyPath(path38)) this.contents = value;
        else {
          assertCollection(this.contents);
          this.contents.setIn(path38, value);
        }
      }
      setSchema(id, customTags) {
        if (!id && !customTags && this.schema) return;
        if (typeof id === "number") id = id.toFixed(1);
        if (id === "1.0" || id === "1.1" || id === "1.2") {
          if (this.version) this.version = id;
          else this.options.version = id;
          delete this.options.schema;
        } else if (id && typeof id === "string") {
          this.options.schema = id;
        }
        if (Array.isArray(customTags)) this.options.customTags = customTags;
        const opt = Object.assign({}, this.getDefaults(), this.options);
        this.schema = new Schema3.Schema(opt);
      }
      parse(node, prevDoc) {
        if (this.options.keepCstNodes) this.cstNode = node;
        if (this.options.keepNodeTypes) this.type = "DOCUMENT";
        const {
          directives = [],
          contents = [],
          directivesEndMarker,
          error: error5,
          valueRange
        } = node;
        if (error5) {
          if (!error5.source) error5.source = this;
          this.errors.push(error5);
        }
        parseDirectives(this, directives, prevDoc);
        if (directivesEndMarker) this.directivesEndMarker = true;
        this.range = valueRange ? [valueRange.start, valueRange.end] : null;
        this.setSchema();
        this.anchors._cstAliases = [];
        parseContents(this, contents);
        this.anchors.resolveNodes();
        if (this.options.prettyErrors) {
          for (const error6 of this.errors) if (error6 instanceof PlainValue.YAMLError) error6.makePretty();
          for (const warn2 of this.warnings) if (warn2 instanceof PlainValue.YAMLError) warn2.makePretty();
        }
        return this;
      }
      listNonDefaultTags() {
        return listTagNames(this.contents).filter((t3) => t3.indexOf(Schema3.Schema.defaultPrefix) !== 0);
      }
      setTagPrefix(handle, prefix2) {
        if (handle[0] !== "!" || handle[handle.length - 1] !== "!") throw new Error("Handle must start and end with !");
        if (prefix2) {
          const prev = this.tagPrefixes.find((p3) => p3.handle === handle);
          if (prev) prev.prefix = prefix2;
          else this.tagPrefixes.push({
            handle,
            prefix: prefix2
          });
        } else {
          this.tagPrefixes = this.tagPrefixes.filter((p3) => p3.handle !== handle);
        }
      }
      toJSON(arg, onAnchor) {
        const {
          keepBlobsInJSON,
          mapAsMap,
          maxAliasCount
        } = this.options;
        const keep = keepBlobsInJSON && (typeof arg !== "string" || !(this.contents instanceof resolveSeq.Scalar));
        const ctx = {
          doc: this,
          indentStep: "  ",
          keep,
          mapAsMap: keep && !!mapAsMap,
          maxAliasCount,
          stringify: stringify3
          // Requiring directly in Pair would create circular dependencies
        };
        const anchorNames = Object.keys(this.anchors.map);
        if (anchorNames.length > 0) ctx.anchors = new Map(anchorNames.map((name) => [this.anchors.map[name], {
          alias: [],
          aliasCount: 0,
          count: 1
        }]));
        const res = resolveSeq.toJSON(this.contents, arg, ctx);
        if (typeof onAnchor === "function" && ctx.anchors) for (const {
          count,
          res: res2
        } of ctx.anchors.values()) onAnchor(res2, count);
        return res;
      }
      toString() {
        if (this.errors.length > 0) throw new Error("Document with errors cannot be stringified");
        const indentSize = this.options.indent;
        if (!Number.isInteger(indentSize) || indentSize <= 0) {
          const s3 = JSON.stringify(indentSize);
          throw new Error(`"indent" option must be a positive integer, not ${s3}`);
        }
        this.setSchema();
        const lines = [];
        let hasDirectives = false;
        if (this.version) {
          let vd = "%YAML 1.2";
          if (this.schema.name === "yaml-1.1") {
            if (this.version === "1.0") vd = "%YAML:1.0";
            else if (this.version === "1.1") vd = "%YAML 1.1";
          }
          lines.push(vd);
          hasDirectives = true;
        }
        const tagNames = this.listNonDefaultTags();
        this.tagPrefixes.forEach(({
          handle,
          prefix: prefix2
        }) => {
          if (tagNames.some((t3) => t3.indexOf(prefix2) === 0)) {
            lines.push(`%TAG ${handle} ${prefix2}`);
            hasDirectives = true;
          }
        });
        if (hasDirectives || this.directivesEndMarker) lines.push("---");
        if (this.commentBefore) {
          if (hasDirectives || !this.directivesEndMarker) lines.unshift("");
          lines.unshift(this.commentBefore.replace(/^/gm, "#"));
        }
        const ctx = {
          anchors: /* @__PURE__ */ Object.create(null),
          doc: this,
          indent: "",
          indentStep: " ".repeat(indentSize),
          stringify: stringify3
          // Requiring directly in nodes would create circular dependencies
        };
        let chompKeep = false;
        let contentComment = null;
        if (this.contents) {
          if (this.contents instanceof resolveSeq.Node) {
            if (this.contents.spaceBefore && (hasDirectives || this.directivesEndMarker)) lines.push("");
            if (this.contents.commentBefore) lines.push(this.contents.commentBefore.replace(/^/gm, "#"));
            ctx.forceBlockIndent = !!this.comment;
            contentComment = this.contents.comment;
          }
          const onChompKeep = contentComment ? null : () => chompKeep = true;
          const body = stringify3(this.contents, ctx, () => contentComment = null, onChompKeep);
          lines.push(resolveSeq.addComment(body, "", contentComment));
        } else if (this.contents !== void 0) {
          lines.push(stringify3(this.contents, ctx));
        }
        if (this.comment) {
          if ((!chompKeep || contentComment) && lines[lines.length - 1] !== "") lines.push("");
          lines.push(this.comment.replace(/^/gm, "#"));
        }
        return lines.join("\n") + "\n";
      }
    };
    PlainValue._defineProperty(Document, "defaults", documentOptions);
    exports2.Document = Document;
    exports2.defaultOptions = defaultOptions3;
    exports2.scalarOptions = scalarOptions;
  }
});

// ../../node_modules/yaml/dist/index.js
var require_dist2 = __commonJS({
  "../../node_modules/yaml/dist/index.js"(exports2) {
    "use strict";
    var parseCst = require_parse_cst();
    var Document$1 = require_Document_9b4560a1();
    var Schema3 = require_Schema_88e323a7();
    var PlainValue = require_PlainValue_ec8e588e();
    var warnings = require_warnings_1000a372();
    require_resolveSeq_d03cb037();
    function createNode(value, wrapScalars = true, tag2) {
      if (tag2 === void 0 && typeof wrapScalars === "string") {
        tag2 = wrapScalars;
        wrapScalars = true;
      }
      const options = Object.assign({}, Document$1.Document.defaults[Document$1.defaultOptions.version], Document$1.defaultOptions);
      const schema = new Schema3.Schema(options);
      return schema.createNode(value, wrapScalars, tag2);
    }
    __name(createNode, "createNode");
    var Document = class extends Document$1.Document {
      static {
        __name(this, "Document");
      }
      constructor(options) {
        super(Object.assign({}, Document$1.defaultOptions, options));
      }
    };
    function parseAllDocuments(src, options) {
      const stream3 = [];
      let prev;
      for (const cstDoc of parseCst.parse(src)) {
        const doc = new Document(options);
        doc.parse(cstDoc, prev);
        stream3.push(doc);
        prev = doc;
      }
      return stream3;
    }
    __name(parseAllDocuments, "parseAllDocuments");
    function parseDocument(src, options) {
      const cst = parseCst.parse(src);
      const doc = new Document(options).parse(cst[0]);
      if (cst.length > 1) {
        const errMsg = "Source contains multiple documents; please use YAML.parseAllDocuments()";
        doc.errors.unshift(new PlainValue.YAMLSemanticError(cst[1], errMsg));
      }
      return doc;
    }
    __name(parseDocument, "parseDocument");
    function parse3(src, options) {
      const doc = parseDocument(src, options);
      doc.warnings.forEach((warning2) => warnings.warn(warning2));
      if (doc.errors.length > 0) throw doc.errors[0];
      return doc.toJSON();
    }
    __name(parse3, "parse");
    function stringify3(value, options) {
      const doc = new Document(options);
      doc.contents = value;
      return String(doc);
    }
    __name(stringify3, "stringify");
    var YAML = {
      createNode,
      defaultOptions: Document$1.defaultOptions,
      Document,
      parse: parse3,
      parseAllDocuments,
      parseCST: parseCst.parse,
      parseDocument,
      scalarOptions: Document$1.scalarOptions,
      stringify: stringify3
    };
    exports2.YAML = YAML;
  }
});

// ../../node_modules/yaml/index.js
var require_yaml = __commonJS({
  "../../node_modules/yaml/index.js"(exports2, module2) {
    module2.exports = require_dist2().YAML;
  }
});

// ../../node_modules/yaml/dist/types.js
var require_types = __commonJS({
  "../../node_modules/yaml/dist/types.js"(exports2) {
    "use strict";
    var resolveSeq = require_resolveSeq_d03cb037();
    var Schema3 = require_Schema_88e323a7();
    require_PlainValue_ec8e588e();
    require_warnings_1000a372();
    exports2.Alias = resolveSeq.Alias;
    exports2.Collection = resolveSeq.Collection;
    exports2.Merge = resolveSeq.Merge;
    exports2.Node = resolveSeq.Node;
    exports2.Pair = resolveSeq.Pair;
    exports2.Scalar = resolveSeq.Scalar;
    exports2.YAMLMap = resolveSeq.YAMLMap;
    exports2.YAMLSeq = resolveSeq.YAMLSeq;
    exports2.binaryOptions = resolveSeq.binaryOptions;
    exports2.boolOptions = resolveSeq.boolOptions;
    exports2.intOptions = resolveSeq.intOptions;
    exports2.nullOptions = resolveSeq.nullOptions;
    exports2.strOptions = resolveSeq.strOptions;
    exports2.Schema = Schema3.Schema;
  }
});

// ../../node_modules/yaml/types.mjs
var import_types6, binaryOptions, boolOptions, intOptions, nullOptions, strOptions, Schema2, Alias, Collection, Merge, Node, Pair, Scalar, YAMLMap, YAMLSeq;
var init_types2 = __esm({
  "../../node_modules/yaml/types.mjs"() {
    import_types6 = __toESM(require_types(), 1);
    binaryOptions = import_types6.default.binaryOptions;
    boolOptions = import_types6.default.boolOptions;
    intOptions = import_types6.default.intOptions;
    nullOptions = import_types6.default.nullOptions;
    strOptions = import_types6.default.strOptions;
    Schema2 = import_types6.default.Schema;
    Alias = import_types6.default.Alias;
    Collection = import_types6.default.Collection;
    Merge = import_types6.default.Merge;
    Node = import_types6.default.Node;
    Pair = import_types6.default.Pair;
    Scalar = import_types6.default.Scalar;
    YAMLMap = import_types6.default.YAMLMap;
    YAMLSeq = import_types6.default.YAMLSeq;
  }
});

// ../@aws-cdk/toolkit-lib/lib/util/yaml-cfn.ts
function serialize(obj) {
  const oldFold = strOptions.fold.lineWidth;
  try {
    strOptions.fold.lineWidth = 0;
    return yaml.stringify(obj, { schema: "yaml-1.1" });
  } finally {
    strOptions.fold.lineWidth = oldFold;
  }
}
function deserialize(str) {
  return parseYamlStrWithCfnTags(str);
}
function makeTagForCfnIntrinsic(intrinsicName, addFnPrefix) {
  return {
    identify(value) {
      return typeof value === "string";
    },
    tag: `!${intrinsicName}`,
    resolve: /* @__PURE__ */ __name((_doc, cstNode) => {
      const ret = {};
      ret[addFnPrefix ? `Fn::${intrinsicName}` : intrinsicName] = // the +1 is to account for the ! the short form begins with
      parseYamlStrWithCfnTags(cstNode.toString().substring(intrinsicName.length + 1));
      return ret;
    }, "resolve")
  };
}
function parseYamlStrWithCfnTags(text) {
  return yaml.parse(text, {
    customTags: shortForms,
    schema: "core"
  });
}
var yaml, shortForms;
var init_yaml_cfn = __esm({
  "../@aws-cdk/toolkit-lib/lib/util/yaml-cfn.ts"() {
    "use strict";
    yaml = __toESM(require_yaml());
    init_types2();
    __name(serialize, "serialize");
    __name(deserialize, "deserialize");
    __name(makeTagForCfnIntrinsic, "makeTagForCfnIntrinsic");
    shortForms = [
      "Base64",
      "Cidr",
      "FindInMap",
      "GetAZs",
      "ImportValue",
      "Join",
      "Sub",
      "Select",
      "Split",
      "Transform",
      "And",
      "Equals",
      "If",
      "Not",
      "Or",
      "GetAtt"
    ].map((name) => makeTagForCfnIntrinsic(name, true)).concat(
      makeTagForCfnIntrinsic("Ref", false),
      makeTagForCfnIntrinsic("Condition", false)
    );
    __name(parseYamlStrWithCfnTags, "parseYamlStrWithCfnTags");
  }
});

// ../@aws-cdk/toolkit-lib/lib/util/serialize.ts
function toYAML(obj) {
  return serialize(obj);
}
function deserializeStructure(str) {
  return deserialize(str);
}
function serializeStructure(object, json) {
  if (json) {
    return JSON.stringify(object, void 0, 2);
  } else {
    return toYAML(object);
  }
}
async function loadStructuredFile(fileName) {
  const contents = await fs10.readFile(fileName, { encoding: "utf-8" });
  return deserializeStructure(contents);
}
function obscureTemplate(template = {}) {
  if (template.Rules) {
    if (template.Rules.CheckBootstrapVersion) {
      if (Object.keys(template.Rules).length > 1) {
        delete template.Rules.CheckBootstrapVersion;
      } else {
        delete template.Rules;
      }
    }
  }
  return template;
}
function isJsonBuffer(value) {
  return typeof value === "object" && "type" in value && value.type === "Buffer" && "data" in value && Array.isArray(value.data);
}
function replacerBufferWithInfo(_key, value) {
  if (isJsonBuffer(value)) {
    return `<Buffer: ${formatBytes(value.data.length)}>`;
  }
  return value;
}
var fs10;
var init_serialize = __esm({
  "../@aws-cdk/toolkit-lib/lib/util/serialize.ts"() {
    "use strict";
    fs10 = __toESM(require("fs/promises"));
    init_bytes();
    init_yaml_cfn();
    __name(toYAML, "toYAML");
    __name(deserializeStructure, "deserializeStructure");
    __name(serializeStructure, "serializeStructure");
    __name(loadStructuredFile, "loadStructuredFile");
    __name(obscureTemplate, "obscureTemplate");
    __name(isJsonBuffer, "isJsonBuffer");
    __name(replacerBufferWithInfo, "replacerBufferWithInfo");
  }
});

// ../@aws-cdk/toolkit-lib/lib/util/string-manipulation.ts
function padLeft(n3, x3, char = " ") {
  return char.repeat(Math.max(0, n3 - x3.length)) + x3;
}
function padRight(n3, x3, char = " ") {
  return x3 + char.repeat(Math.max(0, n3 - x3.length));
}
function formatTime(num) {
  return roundPercentage(millisecondsToSeconds(num));
}
function roundPercentage(num) {
  return Math.round(100 * num) / 100;
}
function millisecondsToSeconds(num) {
  return num / 1e3;
}
function lowerCaseFirstCharacter(str) {
  return str.length > 0 ? `${str[0].toLowerCase()}${str.slice(1)}` : str;
}
function formatReason(reason, fallback = "No reason provided") {
  return reason?.trim() || fallback;
}
var init_string_manipulation = __esm({
  "../@aws-cdk/toolkit-lib/lib/util/string-manipulation.ts"() {
    "use strict";
    __name(padLeft, "padLeft");
    __name(padRight, "padRight");
    __name(formatTime, "formatTime");
    __name(roundPercentage, "roundPercentage");
    __name(millisecondsToSeconds, "millisecondsToSeconds");
    __name(lowerCaseFirstCharacter, "lowerCaseFirstCharacter");
    __name(formatReason, "formatReason");
  }
});

// ../@aws-cdk/toolkit-lib/lib/util/type-brands.ts
var init_type_brands = __esm({
  "../@aws-cdk/toolkit-lib/lib/util/type-brands.ts"() {
    "use strict";
  }
});

// ../../node_modules/semver/internal/constants.js
var require_constants4 = __commonJS({
  "../../node_modules/semver/internal/constants.js"(exports2, module2) {
    "use strict";
    var SEMVER_SPEC_VERSION = "2.0.0";
    var MAX_LENGTH = 256;
    var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
    9007199254740991;
    var MAX_SAFE_COMPONENT_LENGTH = 16;
    var MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6;
    var RELEASE_TYPES = [
      "major",
      "premajor",
      "minor",
      "preminor",
      "patch",
      "prepatch",
      "prerelease"
    ];
    module2.exports = {
      MAX_LENGTH,
      MAX_SAFE_COMPONENT_LENGTH,
      MAX_SAFE_BUILD_LENGTH,
      MAX_SAFE_INTEGER,
      RELEASE_TYPES,
      SEMVER_SPEC_VERSION,
      FLAG_INCLUDE_PRERELEASE: 1,
      FLAG_LOOSE: 2
    };
  }
});

// ../../node_modules/semver/internal/debug.js
var require_debug2 = __commonJS({
  "../../node_modules/semver/internal/debug.js"(exports2, module2) {
    "use strict";
    var debug3 = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
    };
    module2.exports = debug3;
  }
});

// ../../node_modules/semver/internal/re.js
var require_re2 = __commonJS({
  "../../node_modules/semver/internal/re.js"(exports2, module2) {
    "use strict";
    var {
      MAX_SAFE_COMPONENT_LENGTH,
      MAX_SAFE_BUILD_LENGTH,
      MAX_LENGTH
    } = require_constants4();
    var debug3 = require_debug2();
    exports2 = module2.exports = {};
    var re = exports2.re = [];
    var safeRe = exports2.safeRe = [];
    var src = exports2.src = [];
    var safeSrc = exports2.safeSrc = [];
    var t3 = exports2.t = {};
    var R = 0;
    var LETTERDASHNUMBER = "[a-zA-Z0-9-]";
    var safeRegexReplacements = [
      ["\\s", 1],
      ["\\d", MAX_LENGTH],
      [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
    ];
    var makeSafeRegex = /* @__PURE__ */ __name((value) => {
      for (const [token, max] of safeRegexReplacements) {
        value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
      }
      return value;
    }, "makeSafeRegex");
    var createToken = /* @__PURE__ */ __name((name, value, isGlobal) => {
      const safe = makeSafeRegex(value);
      const index = R++;
      debug3(name, index, value);
      t3[name] = index;
      src[index] = value;
      safeSrc[index] = safe;
      re[index] = new RegExp(value, isGlobal ? "g" : void 0);
      safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
    }, "createToken");
    createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
    createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
    createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
    createToken("MAINVERSION", `(${src[t3.NUMERICIDENTIFIER]})\\.(${src[t3.NUMERICIDENTIFIER]})\\.(${src[t3.NUMERICIDENTIFIER]})`);
    createToken("MAINVERSIONLOOSE", `(${src[t3.NUMERICIDENTIFIERLOOSE]})\\.(${src[t3.NUMERICIDENTIFIERLOOSE]})\\.(${src[t3.NUMERICIDENTIFIERLOOSE]})`);
    createToken("PRERELEASEIDENTIFIER", `(?:${src[t3.NONNUMERICIDENTIFIER]}|${src[t3.NUMERICIDENTIFIER]})`);
    createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t3.NONNUMERICIDENTIFIER]}|${src[t3.NUMERICIDENTIFIERLOOSE]})`);
    createToken("PRERELEASE", `(?:-(${src[t3.PRERELEASEIDENTIFIER]}(?:\\.${src[t3.PRERELEASEIDENTIFIER]})*))`);
    createToken("PRERELEASELOOSE", `(?:-?(${src[t3.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t3.PRERELEASEIDENTIFIERLOOSE]})*))`);
    createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
    createToken("BUILD", `(?:\\+(${src[t3.BUILDIDENTIFIER]}(?:\\.${src[t3.BUILDIDENTIFIER]})*))`);
    createToken("FULLPLAIN", `v?${src[t3.MAINVERSION]}${src[t3.PRERELEASE]}?${src[t3.BUILD]}?`);
    createToken("FULL", `^${src[t3.FULLPLAIN]}$`);
    createToken("LOOSEPLAIN", `[v=\\s]*${src[t3.MAINVERSIONLOOSE]}${src[t3.PRERELEASELOOSE]}?${src[t3.BUILD]}?`);
    createToken("LOOSE", `^${src[t3.LOOSEPLAIN]}$`);
    createToken("GTLT", "((?:<|>)?=?)");
    createToken("XRANGEIDENTIFIERLOOSE", `${src[t3.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
    createToken("XRANGEIDENTIFIER", `${src[t3.NUMERICIDENTIFIER]}|x|X|\\*`);
    createToken("XRANGEPLAIN", `[v=\\s]*(${src[t3.XRANGEIDENTIFIER]})(?:\\.(${src[t3.XRANGEIDENTIFIER]})(?:\\.(${src[t3.XRANGEIDENTIFIER]})(?:${src[t3.PRERELEASE]})?${src[t3.BUILD]}?)?)?`);
    createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t3.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t3.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t3.XRANGEIDENTIFIERLOOSE]})(?:${src[t3.PRERELEASELOOSE]})?${src[t3.BUILD]}?)?)?`);
    createToken("XRANGE", `^${src[t3.GTLT]}\\s*${src[t3.XRANGEPLAIN]}$`);
    createToken("XRANGELOOSE", `^${src[t3.GTLT]}\\s*${src[t3.XRANGEPLAINLOOSE]}$`);
    createToken("COERCEPLAIN", `${"(^|[^\\d])(\\d{1,"}${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
    createToken("COERCE", `${src[t3.COERCEPLAIN]}(?:$|[^\\d])`);
    createToken("COERCEFULL", src[t3.COERCEPLAIN] + `(?:${src[t3.PRERELEASE]})?(?:${src[t3.BUILD]})?(?:$|[^\\d])`);
    createToken("COERCERTL", src[t3.COERCE], true);
    createToken("COERCERTLFULL", src[t3.COERCEFULL], true);
    createToken("LONETILDE", "(?:~>?)");
    createToken("TILDETRIM", `(\\s*)${src[t3.LONETILDE]}\\s+`, true);
    exports2.tildeTrimReplace = "$1~";
    createToken("TILDE", `^${src[t3.LONETILDE]}${src[t3.XRANGEPLAIN]}$`);
    createToken("TILDELOOSE", `^${src[t3.LONETILDE]}${src[t3.XRANGEPLAINLOOSE]}$`);
    createToken("LONECARET", "(?:\\^)");
    createToken("CARETTRIM", `(\\s*)${src[t3.LONECARET]}\\s+`, true);
    exports2.caretTrimReplace = "$1^";
    createToken("CARET", `^${src[t3.LONECARET]}${src[t3.XRANGEPLAIN]}$`);
    createToken("CARETLOOSE", `^${src[t3.LONECARET]}${src[t3.XRANGEPLAINLOOSE]}$`);
    createToken("COMPARATORLOOSE", `^${src[t3.GTLT]}\\s*(${src[t3.LOOSEPLAIN]})$|^$`);
    createToken("COMPARATOR", `^${src[t3.GTLT]}\\s*(${src[t3.FULLPLAIN]})$|^$`);
    createToken("COMPARATORTRIM", `(\\s*)${src[t3.GTLT]}\\s*(${src[t3.LOOSEPLAIN]}|${src[t3.XRANGEPLAIN]})`, true);
    exports2.comparatorTrimReplace = "$1$2$3";
    createToken("HYPHENRANGE", `^\\s*(${src[t3.XRANGEPLAIN]})\\s+-\\s+(${src[t3.XRANGEPLAIN]})\\s*$`);
    createToken("HYPHENRANGELOOSE", `^\\s*(${src[t3.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t3.XRANGEPLAINLOOSE]})\\s*$`);
    createToken("STAR", "(<|>)?=?\\s*\\*");
    createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
    createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
  }
});

// ../../node_modules/semver/internal/parse-options.js
var require_parse_options2 = __commonJS({
  "../../node_modules/semver/internal/parse-options.js"(exports2, module2) {
    "use strict";
    var looseOption = Object.freeze({ loose: true });
    var emptyOpts = Object.freeze({});
    var parseOptions = /* @__PURE__ */ __name((options) => {
      if (!options) {
        return emptyOpts;
      }
      if (typeof options !== "object") {
        return looseOption;
      }
      return options;
    }, "parseOptions");
    module2.exports = parseOptions;
  }
});

// ../../node_modules/semver/internal/identifiers.js
var require_identifiers2 = __commonJS({
  "../../node_modules/semver/internal/identifiers.js"(exports2, module2) {
    "use strict";
    var numeric2 = /^[0-9]+$/;
    var compareIdentifiers = /* @__PURE__ */ __name((a3, b3) => {
      const anum = numeric2.test(a3);
      const bnum = numeric2.test(b3);
      if (anum && bnum) {
        a3 = +a3;
        b3 = +b3;
      }
      return a3 === b3 ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a3 < b3 ? -1 : 1;
    }, "compareIdentifiers");
    var rcompareIdentifiers = /* @__PURE__ */ __name((a3, b3) => compareIdentifiers(b3, a3), "rcompareIdentifiers");
    module2.exports = {
      compareIdentifiers,
      rcompareIdentifiers
    };
  }
});

// ../../node_modules/semver/classes/semver.js
var require_semver3 = __commonJS({
  "../../node_modules/semver/classes/semver.js"(exports2, module2) {
    "use strict";
    var debug3 = require_debug2();
    var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants4();
    var { safeRe: re, t: t3 } = require_re2();
    var parseOptions = require_parse_options2();
    var { compareIdentifiers } = require_identifiers2();
    var SemVer = class _SemVer {
      static {
        __name(this, "SemVer");
      }
      constructor(version2, options) {
        options = parseOptions(options);
        if (version2 instanceof _SemVer) {
          if (version2.loose === !!options.loose && version2.includePrerelease === !!options.includePrerelease) {
            return version2;
          } else {
            version2 = version2.version;
          }
        } else if (typeof version2 !== "string") {
          throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version2}".`);
        }
        if (version2.length > MAX_LENGTH) {
          throw new TypeError(
            `version is longer than ${MAX_LENGTH} characters`
          );
        }
        debug3("SemVer", version2, options);
        this.options = options;
        this.loose = !!options.loose;
        this.includePrerelease = !!options.includePrerelease;
        const m3 = version2.trim().match(options.loose ? re[t3.LOOSE] : re[t3.FULL]);
        if (!m3) {
          throw new TypeError(`Invalid Version: ${version2}`);
        }
        this.raw = version2;
        this.major = +m3[1];
        this.minor = +m3[2];
        this.patch = +m3[3];
        if (this.major > MAX_SAFE_INTEGER || this.major < 0) {
          throw new TypeError("Invalid major version");
        }
        if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {
          throw new TypeError("Invalid minor version");
        }
        if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {
          throw new TypeError("Invalid patch version");
        }
        if (!m3[4]) {
          this.prerelease = [];
        } else {
          this.prerelease = m3[4].split(".").map((id) => {
            if (/^[0-9]+$/.test(id)) {
              const num = +id;
              if (num >= 0 && num < MAX_SAFE_INTEGER) {
                return num;
              }
            }
            return id;
          });
        }
        this.build = m3[5] ? m3[5].split(".") : [];
        this.format();
      }
      format() {
        this.version = `${this.major}.${this.minor}.${this.patch}`;
        if (this.prerelease.length) {
          this.version += `-${this.prerelease.join(".")}`;
        }
        return this.version;
      }
      toString() {
        return this.version;
      }
      compare(other) {
        debug3("SemVer.compare", this.version, this.options, other);
        if (!(other instanceof _SemVer)) {
          if (typeof other === "string" && other === this.version) {
            return 0;
          }
          other = new _SemVer(other, this.options);
        }
        if (other.version === this.version) {
          return 0;
        }
        return this.compareMain(other) || this.comparePre(other);
      }
      compareMain(other) {
        if (!(other instanceof _SemVer)) {
          other = new _SemVer(other, this.options);
        }
        return compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch);
      }
      comparePre(other) {
        if (!(other instanceof _SemVer)) {
          other = new _SemVer(other, this.options);
        }
        if (this.prerelease.length && !other.prerelease.length) {
          return -1;
        } else if (!this.prerelease.length && other.prerelease.length) {
          return 1;
        } else if (!this.prerelease.length && !other.prerelease.length) {
          return 0;
        }
        let i3 = 0;
        do {
          const a3 = this.prerelease[i3];
          const b3 = other.prerelease[i3];
          debug3("prerelease compare", i3, a3, b3);
          if (a3 === void 0 && b3 === void 0) {
            return 0;
          } else if (b3 === void 0) {
            return 1;
          } else if (a3 === void 0) {
            return -1;
          } else if (a3 === b3) {
            continue;
          } else {
            return compareIdentifiers(a3, b3);
          }
        } while (++i3);
      }
      compareBuild(other) {
        if (!(other instanceof _SemVer)) {
          other = new _SemVer(other, this.options);
        }
        let i3 = 0;
        do {
          const a3 = this.build[i3];
          const b3 = other.build[i3];
          debug3("build compare", i3, a3, b3);
          if (a3 === void 0 && b3 === void 0) {
            return 0;
          } else if (b3 === void 0) {
            return 1;
          } else if (a3 === void 0) {
            return -1;
          } else if (a3 === b3) {
            continue;
          } else {
            return compareIdentifiers(a3, b3);
          }
        } while (++i3);
      }
      // preminor will bump the version up to the next minor release, and immediately
      // down to pre-release. premajor and prepatch work the same way.
      inc(release2, identifier, identifierBase) {
        if (release2.startsWith("pre")) {
          if (!identifier && identifierBase === false) {
            throw new Error("invalid increment argument: identifier is empty");
          }
          if (identifier) {
            const match4 = `-${identifier}`.match(this.options.loose ? re[t3.PRERELEASELOOSE] : re[t3.PRERELEASE]);
            if (!match4 || match4[1] !== identifier) {
              throw new Error(`invalid identifier: ${identifier}`);
            }
          }
        }
        switch (release2) {
          case "premajor":
            this.prerelease.length = 0;
            this.patch = 0;
            this.minor = 0;
            this.major++;
            this.inc("pre", identifier, identifierBase);
            break;
          case "preminor":
            this.prerelease.length = 0;
            this.patch = 0;
            this.minor++;
            this.inc("pre", identifier, identifierBase);
            break;
          case "prepatch":
            this.prerelease.length = 0;
            this.inc("patch", identifier, identifierBase);
            this.inc("pre", identifier, identifierBase);
            break;
          // If the input is a non-prerelease version, this acts the same as
          // prepatch.
          case "prerelease":
            if (this.prerelease.length === 0) {
              this.inc("patch", identifier, identifierBase);
            }
            this.inc("pre", identifier, identifierBase);
            break;
          case "release":
            if (this.prerelease.length === 0) {
              throw new Error(`version ${this.raw} is not a prerelease`);
            }
            this.prerelease.length = 0;
            break;
          case "major":
            if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) {
              this.major++;
            }
            this.minor = 0;
            this.patch = 0;
            this.prerelease = [];
            break;
          case "minor":
            if (this.patch !== 0 || this.prerelease.length === 0) {
              this.minor++;
            }
            this.patch = 0;
            this.prerelease = [];
            break;
          case "patch":
            if (this.prerelease.length === 0) {
              this.patch++;
            }
            this.prerelease = [];
            break;
          // This probably shouldn't be used publicly.
          // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
          case "pre": {
            const base = Number(identifierBase) ? 1 : 0;
            if (this.prerelease.length === 0) {
              this.prerelease = [base];
            } else {
              let i3 = this.prerelease.length;
              while (--i3 >= 0) {
                if (typeof this.prerelease[i3] === "number") {
                  this.prerelease[i3]++;
                  i3 = -2;
                }
              }
              if (i3 === -1) {
                if (identifier === this.prerelease.join(".") && identifierBase === false) {
                  throw new Error("invalid increment argument: identifier already exists");
                }
                this.prerelease.push(base);
              }
            }
            if (identifier) {
              let prerelease = [identifier, base];
              if (identifierBase === false) {
                prerelease = [identifier];
              }
              if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
                if (isNaN(this.prerelease[1])) {
                  this.prerelease = prerelease;
                }
              } else {
                this.prerelease = prerelease;
              }
            }
            break;
          }
          default:
            throw new Error(`invalid increment argument: ${release2}`);
        }
        this.raw = this.format();
        if (this.build.length) {
          this.raw += `+${this.build.join(".")}`;
        }
        return this;
      }
    };
    module2.exports = SemVer;
  }
});

// ../../node_modules/semver/functions/parse.js
var require_parse2 = __commonJS({
  "../../node_modules/semver/functions/parse.js"(exports2, module2) {
    "use strict";
    var SemVer = require_semver3();
    var parse3 = /* @__PURE__ */ __name((version2, options, throwErrors = false) => {
      if (version2 instanceof SemVer) {
        return version2;
      }
      try {
        return new SemVer(version2, options);
      } catch (er) {
        if (!throwErrors) {
          return null;
        }
        throw er;
      }
    }, "parse");
    module2.exports = parse3;
  }
});

// ../../node_modules/semver/functions/valid.js
var require_valid3 = __commonJS({
  "../../node_modules/semver/functions/valid.js"(exports2, module2) {
    "use strict";
    var parse3 = require_parse2();
    var valid3 = /* @__PURE__ */ __name((version2, options) => {
      const v6 = parse3(version2, options);
      return v6 ? v6.version : null;
    }, "valid");
    module2.exports = valid3;
  }
});

// ../../node_modules/semver/functions/clean.js
var require_clean2 = __commonJS({
  "../../node_modules/semver/functions/clean.js"(exports2, module2) {
    "use strict";
    var parse3 = require_parse2();
    var clean = /* @__PURE__ */ __name((version2, options) => {
      const s3 = parse3(version2.trim().replace(/^[=v]+/, ""), options);
      return s3 ? s3.version : null;
    }, "clean");
    module2.exports = clean;
  }
});

// ../../node_modules/semver/functions/inc.js
var require_inc2 = __commonJS({
  "../../node_modules/semver/functions/inc.js"(exports2, module2) {
    "use strict";
    var SemVer = require_semver3();
    var inc = /* @__PURE__ */ __name((version2, release2, options, identifier, identifierBase) => {
      if (typeof options === "string") {
        identifierBase = identifier;
        identifier = options;
        options = void 0;
      }
      try {
        return new SemVer(
          version2 instanceof SemVer ? version2.version : version2,
          options
        ).inc(release2, identifier, identifierBase).version;
      } catch (er) {
        return null;
      }
    }, "inc");
    module2.exports = inc;
  }
});

// ../../node_modules/semver/functions/diff.js
var require_diff2 = __commonJS({
  "../../node_modules/semver/functions/diff.js"(exports2, module2) {
    "use strict";
    var parse3 = require_parse2();
    var diff = /* @__PURE__ */ __name((version1, version2) => {
      const v12 = parse3(version1, null, true);
      const v22 = parse3(version2, null, true);
      const comparison = v12.compare(v22);
      if (comparison === 0) {
        return null;
      }
      const v1Higher = comparison > 0;
      const highVersion = v1Higher ? v12 : v22;
      const lowVersion = v1Higher ? v22 : v12;
      const highHasPre = !!highVersion.prerelease.length;
      const lowHasPre = !!lowVersion.prerelease.length;
      if (lowHasPre && !highHasPre) {
        if (!lowVersion.patch && !lowVersion.minor) {
          return "major";
        }
        if (lowVersion.compareMain(highVersion) === 0) {
          if (lowVersion.minor && !lowVersion.patch) {
            return "minor";
          }
          return "patch";
        }
      }
      const prefix2 = highHasPre ? "pre" : "";
      if (v12.major !== v22.major) {
        return prefix2 + "major";
      }
      if (v12.minor !== v22.minor) {
        return prefix2 + "minor";
      }
      if (v12.patch !== v22.patch) {
        return prefix2 + "patch";
      }
      return "prerelease";
    }, "diff");
    module2.exports = diff;
  }
});

// ../../node_modules/semver/functions/major.js
var require_major2 = __commonJS({
  "../../node_modules/semver/functions/major.js"(exports2, module2) {
    "use strict";
    var SemVer = require_semver3();
    var major6 = /* @__PURE__ */ __name((a3, loose) => new SemVer(a3, loose).major, "major");
    module2.exports = major6;
  }
});

// ../../node_modules/semver/functions/minor.js
var require_minor2 = __commonJS({
  "../../node_modules/semver/functions/minor.js"(exports2, module2) {
    "use strict";
    var SemVer = require_semver3();
    var minor = /* @__PURE__ */ __name((a3, loose) => new SemVer(a3, loose).minor, "minor");
    module2.exports = minor;
  }
});

// ../../node_modules/semver/functions/patch.js
var require_patch2 = __commonJS({
  "../../node_modules/semver/functions/patch.js"(exports2, module2) {
    "use strict";
    var SemVer = require_semver3();
    var patch = /* @__PURE__ */ __name((a3, loose) => new SemVer(a3, loose).patch, "patch");
    module2.exports = patch;
  }
});

// ../../node_modules/semver/functions/prerelease.js
var require_prerelease2 = __commonJS({
  "../../node_modules/semver/functions/prerelease.js"(exports2, module2) {
    "use strict";
    var parse3 = require_parse2();
    var prerelease = /* @__PURE__ */ __name((version2, options) => {
      const parsed = parse3(version2, options);
      return parsed && parsed.prerelease.length ? parsed.prerelease : null;
    }, "prerelease");
    module2.exports = prerelease;
  }
});

// ../../node_modules/semver/functions/compare.js
var require_compare2 = __commonJS({
  "../../node_modules/semver/functions/compare.js"(exports2, module2) {
    "use strict";
    var SemVer = require_semver3();
    var compare2 = /* @__PURE__ */ __name((a3, b3, loose) => new SemVer(a3, loose).compare(new SemVer(b3, loose)), "compare");
    module2.exports = compare2;
  }
});

// ../../node_modules/semver/functions/rcompare.js
var require_rcompare2 = __commonJS({
  "../../node_modules/semver/functions/rcompare.js"(exports2, module2) {
    "use strict";
    var compare2 = require_compare2();
    var rcompare = /* @__PURE__ */ __name((a3, b3, loose) => compare2(b3, a3, loose), "rcompare");
    module2.exports = rcompare;
  }
});

// ../../node_modules/semver/functions/compare-loose.js
var require_compare_loose2 = __commonJS({
  "../../node_modules/semver/functions/compare-loose.js"(exports2, module2) {
    "use strict";
    var compare2 = require_compare2();
    var compareLoose = /* @__PURE__ */ __name((a3, b3) => compare2(a3, b3, true), "compareLoose");
    module2.exports = compareLoose;
  }
});

// ../../node_modules/semver/functions/compare-build.js
var require_compare_build2 = __commonJS({
  "../../node_modules/semver/functions/compare-build.js"(exports2, module2) {
    "use strict";
    var SemVer = require_semver3();
    var compareBuild = /* @__PURE__ */ __name((a3, b3, loose) => {
      const versionA = new SemVer(a3, loose);
      const versionB = new SemVer(b3, loose);
      return versionA.compare(versionB) || versionA.compareBuild(versionB);
    }, "compareBuild");
    module2.exports = compareBuild;
  }
});

// ../../node_modules/semver/functions/sort.js
var require_sort2 = __commonJS({
  "../../node_modules/semver/functions/sort.js"(exports2, module2) {
    "use strict";
    var compareBuild = require_compare_build2();
    var sort = /* @__PURE__ */ __name((list2, loose) => list2.sort((a3, b3) => compareBuild(a3, b3, loose)), "sort");
    module2.exports = sort;
  }
});

// ../../node_modules/semver/functions/rsort.js
var require_rsort2 = __commonJS({
  "../../node_modules/semver/functions/rsort.js"(exports2, module2) {
    "use strict";
    var compareBuild = require_compare_build2();
    var rsort = /* @__PURE__ */ __name((list2, loose) => list2.sort((a3, b3) => compareBuild(b3, a3, loose)), "rsort");
    module2.exports = rsort;
  }
});

// ../../node_modules/semver/functions/gt.js
var require_gt2 = __commonJS({
  "../../node_modules/semver/functions/gt.js"(exports2, module2) {
    "use strict";
    var compare2 = require_compare2();
    var gt = /* @__PURE__ */ __name((a3, b3, loose) => compare2(a3, b3, loose) > 0, "gt");
    module2.exports = gt;
  }
});

// ../../node_modules/semver/functions/lt.js
var require_lt2 = __commonJS({
  "../../node_modules/semver/functions/lt.js"(exports2, module2) {
    "use strict";
    var compare2 = require_compare2();
    var lt = /* @__PURE__ */ __name((a3, b3, loose) => compare2(a3, b3, loose) < 0, "lt");
    module2.exports = lt;
  }
});

// ../../node_modules/semver/functions/eq.js
var require_eq3 = __commonJS({
  "../../node_modules/semver/functions/eq.js"(exports2, module2) {
    "use strict";
    var compare2 = require_compare2();
    var eq2 = /* @__PURE__ */ __name((a3, b3, loose) => compare2(a3, b3, loose) === 0, "eq");
    module2.exports = eq2;
  }
});

// ../../node_modules/semver/functions/neq.js
var require_neq2 = __commonJS({
  "../../node_modules/semver/functions/neq.js"(exports2, module2) {
    "use strict";
    var compare2 = require_compare2();
    var neq = /* @__PURE__ */ __name((a3, b3, loose) => compare2(a3, b3, loose) !== 0, "neq");
    module2.exports = neq;
  }
});

// ../../node_modules/semver/functions/gte.js
var require_gte2 = __commonJS({
  "../../node_modules/semver/functions/gte.js"(exports2, module2) {
    "use strict";
    var compare2 = require_compare2();
    var gte2 = /* @__PURE__ */ __name((a3, b3, loose) => compare2(a3, b3, loose) >= 0, "gte");
    module2.exports = gte2;
  }
});

// ../../node_modules/semver/functions/lte.js
var require_lte2 = __commonJS({
  "../../node_modules/semver/functions/lte.js"(exports2, module2) {
    "use strict";
    var compare2 = require_compare2();
    var lte3 = /* @__PURE__ */ __name((a3, b3, loose) => compare2(a3, b3, loose) <= 0, "lte");
    module2.exports = lte3;
  }
});

// ../../node_modules/semver/functions/cmp.js
var require_cmp2 = __commonJS({
  "../../node_modules/semver/functions/cmp.js"(exports2, module2) {
    "use strict";
    var eq2 = require_eq3();
    var neq = require_neq2();
    var gt = require_gt2();
    var gte2 = require_gte2();
    var lt = require_lt2();
    var lte3 = require_lte2();
    var cmp = /* @__PURE__ */ __name((a3, op2, b3, loose) => {
      switch (op2) {
        case "===":
          if (typeof a3 === "object") {
            a3 = a3.version;
          }
          if (typeof b3 === "object") {
            b3 = b3.version;
          }
          return a3 === b3;
        case "!==":
          if (typeof a3 === "object") {
            a3 = a3.version;
          }
          if (typeof b3 === "object") {
            b3 = b3.version;
          }
          return a3 !== b3;
        case "":
        case "=":
        case "==":
          return eq2(a3, b3, loose);
        case "!=":
          return neq(a3, b3, loose);
        case ">":
          return gt(a3, b3, loose);
        case ">=":
          return gte2(a3, b3, loose);
        case "<":
          return lt(a3, b3, loose);
        case "<=":
          return lte3(a3, b3, loose);
        default:
          throw new TypeError(`Invalid operator: ${op2}`);
      }
    }, "cmp");
    module2.exports = cmp;
  }
});

// ../../node_modules/semver/functions/coerce.js
var require_coerce2 = __commonJS({
  "../../node_modules/semver/functions/coerce.js"(exports2, module2) {
    "use strict";
    var SemVer = require_semver3();
    var parse3 = require_parse2();
    var { safeRe: re, t: t3 } = require_re2();
    var coerce2 = /* @__PURE__ */ __name((version2, options) => {
      if (version2 instanceof SemVer) {
        return version2;
      }
      if (typeof version2 === "number") {
        version2 = String(version2);
      }
      if (typeof version2 !== "string") {
        return null;
      }
      options = options || {};
      let match4 = null;
      if (!options.rtl) {
        match4 = version2.match(options.includePrerelease ? re[t3.COERCEFULL] : re[t3.COERCE]);
      } else {
        const coerceRtlRegex = options.includePrerelease ? re[t3.COERCERTLFULL] : re[t3.COERCERTL];
        let next;
        while ((next = coerceRtlRegex.exec(version2)) && (!match4 || match4.index + match4[0].length !== version2.length)) {
          if (!match4 || next.index + next[0].length !== match4.index + match4[0].length) {
            match4 = next;
          }
          coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
        }
        coerceRtlRegex.lastIndex = -1;
      }
      if (match4 === null) {
        return null;
      }
      const major6 = match4[2];
      const minor = match4[3] || "0";
      const patch = match4[4] || "0";
      const prerelease = options.includePrerelease && match4[5] ? `-${match4[5]}` : "";
      const build = options.includePrerelease && match4[6] ? `+${match4[6]}` : "";
      return parse3(`${major6}.${minor}.${patch}${prerelease}${build}`, options);
    }, "coerce");
    module2.exports = coerce2;
  }
});

// ../../node_modules/semver/internal/lrucache.js
var require_lrucache2 = __commonJS({
  "../../node_modules/semver/internal/lrucache.js"(exports2, module2) {
    "use strict";
    var LRUCache2 = class {
      static {
        __name(this, "LRUCache");
      }
      constructor() {
        this.max = 1e3;
        this.map = /* @__PURE__ */ new Map();
      }
      get(key) {
        const value = this.map.get(key);
        if (value === void 0) {
          return void 0;
        } else {
          this.map.delete(key);
          this.map.set(key, value);
          return value;
        }
      }
      delete(key) {
        return this.map.delete(key);
      }
      set(key, value) {
        const deleted = this.delete(key);
        if (!deleted && value !== void 0) {
          if (this.map.size >= this.max) {
            const firstKey = this.map.keys().next().value;
            this.delete(firstKey);
          }
          this.map.set(key, value);
        }
        return this;
      }
    };
    module2.exports = LRUCache2;
  }
});

// ../../node_modules/semver/classes/range.js
var require_range2 = __commonJS({
  "../../node_modules/semver/classes/range.js"(exports2, module2) {
    "use strict";
    var SPACE_CHARACTERS = /\s+/g;
    var Range = class _Range {
      static {
        __name(this, "Range");
      }
      constructor(range2, options) {
        options = parseOptions(options);
        if (range2 instanceof _Range) {
          if (range2.loose === !!options.loose && range2.includePrerelease === !!options.includePrerelease) {
            return range2;
          } else {
            return new _Range(range2.raw, options);
          }
        }
        if (range2 instanceof Comparator) {
          this.raw = range2.value;
          this.set = [[range2]];
          this.formatted = void 0;
          return this;
        }
        this.options = options;
        this.loose = !!options.loose;
        this.includePrerelease = !!options.includePrerelease;
        this.raw = range2.trim().replace(SPACE_CHARACTERS, " ");
        this.set = this.raw.split("||").map((r3) => this.parseRange(r3.trim())).filter((c3) => c3.length);
        if (!this.set.length) {
          throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
        }
        if (this.set.length > 1) {
          const first = this.set[0];
          this.set = this.set.filter((c3) => !isNullSet(c3[0]));
          if (this.set.length === 0) {
            this.set = [first];
          } else if (this.set.length > 1) {
            for (const c3 of this.set) {
              if (c3.length === 1 && isAny(c3[0])) {
                this.set = [c3];
                break;
              }
            }
          }
        }
        this.formatted = void 0;
      }
      get range() {
        if (this.formatted === void 0) {
          this.formatted = "";
          for (let i3 = 0; i3 < this.set.length; i3++) {
            if (i3 > 0) {
              this.formatted += "||";
            }
            const comps = this.set[i3];
            for (let k3 = 0; k3 < comps.length; k3++) {
              if (k3 > 0) {
                this.formatted += " ";
              }
              this.formatted += comps[k3].toString().trim();
            }
          }
        }
        return this.formatted;
      }
      format() {
        return this.range;
      }
      toString() {
        return this.range;
      }
      parseRange(range2) {
        const memoOpts = (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE);
        const memoKey = memoOpts + ":" + range2;
        const cached4 = cache3.get(memoKey);
        if (cached4) {
          return cached4;
        }
        const loose = this.options.loose;
        const hr = loose ? re[t3.HYPHENRANGELOOSE] : re[t3.HYPHENRANGE];
        range2 = range2.replace(hr, hyphenReplace(this.options.includePrerelease));
        debug3("hyphen replace", range2);
        range2 = range2.replace(re[t3.COMPARATORTRIM], comparatorTrimReplace);
        debug3("comparator trim", range2);
        range2 = range2.replace(re[t3.TILDETRIM], tildeTrimReplace);
        debug3("tilde trim", range2);
        range2 = range2.replace(re[t3.CARETTRIM], caretTrimReplace);
        debug3("caret trim", range2);
        let rangeList = range2.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
        if (loose) {
          rangeList = rangeList.filter((comp) => {
            debug3("loose invalid filter", comp, this.options);
            return !!comp.match(re[t3.COMPARATORLOOSE]);
          });
        }
        debug3("range list", rangeList);
        const rangeMap = /* @__PURE__ */ new Map();
        const comparators = rangeList.map((comp) => new Comparator(comp, this.options));
        for (const comp of comparators) {
          if (isNullSet(comp)) {
            return [comp];
          }
          rangeMap.set(comp.value, comp);
        }
        if (rangeMap.size > 1 && rangeMap.has("")) {
          rangeMap.delete("");
        }
        const result2 = [...rangeMap.values()];
        cache3.set(memoKey, result2);
        return result2;
      }
      intersects(range2, options) {
        if (!(range2 instanceof _Range)) {
          throw new TypeError("a Range is required");
        }
        return this.set.some((thisComparators) => {
          return isSatisfiable(thisComparators, options) && range2.set.some((rangeComparators) => {
            return isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => {
              return rangeComparators.every((rangeComparator) => {
                return thisComparator.intersects(rangeComparator, options);
              });
            });
          });
        });
      }
      // if ANY of the sets match ALL of its comparators, then pass
      test(version2) {
        if (!version2) {
          return false;
        }
        if (typeof version2 === "string") {
          try {
            version2 = new SemVer(version2, this.options);
          } catch (er) {
            return false;
          }
        }
        for (let i3 = 0; i3 < this.set.length; i3++) {
          if (testSet(this.set[i3], version2, this.options)) {
            return true;
          }
        }
        return false;
      }
    };
    module2.exports = Range;
    var LRU = require_lrucache2();
    var cache3 = new LRU();
    var parseOptions = require_parse_options2();
    var Comparator = require_comparator2();
    var debug3 = require_debug2();
    var SemVer = require_semver3();
    var {
      safeRe: re,
      t: t3,
      comparatorTrimReplace,
      tildeTrimReplace,
      caretTrimReplace
    } = require_re2();
    var { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants4();
    var isNullSet = /* @__PURE__ */ __name((c3) => c3.value === "<0.0.0-0", "isNullSet");
    var isAny = /* @__PURE__ */ __name((c3) => c3.value === "", "isAny");
    var isSatisfiable = /* @__PURE__ */ __name((comparators, options) => {
      let result2 = true;
      const remainingComparators = comparators.slice();
      let testComparator = remainingComparators.pop();
      while (result2 && remainingComparators.length) {
        result2 = remainingComparators.every((otherComparator) => {
          return testComparator.intersects(otherComparator, options);
        });
        testComparator = remainingComparators.pop();
      }
      return result2;
    }, "isSatisfiable");
    var parseComparator = /* @__PURE__ */ __name((comp, options) => {
      debug3("comp", comp, options);
      comp = replaceCarets(comp, options);
      debug3("caret", comp);
      comp = replaceTildes(comp, options);
      debug3("tildes", comp);
      comp = replaceXRanges(comp, options);
      debug3("xrange", comp);
      comp = replaceStars(comp, options);
      debug3("stars", comp);
      return comp;
    }, "parseComparator");
    var isX = /* @__PURE__ */ __name((id) => !id || id.toLowerCase() === "x" || id === "*", "isX");
    var replaceTildes = /* @__PURE__ */ __name((comp, options) => {
      return comp.trim().split(/\s+/).map((c3) => replaceTilde(c3, options)).join(" ");
    }, "replaceTildes");
    var replaceTilde = /* @__PURE__ */ __name((comp, options) => {
      const r3 = options.loose ? re[t3.TILDELOOSE] : re[t3.TILDE];
      return comp.replace(r3, (_3, M, m3, p3, pr) => {
        debug3("tilde", comp, _3, M, m3, p3, pr);
        let ret;
        if (isX(M)) {
          ret = "";
        } else if (isX(m3)) {
          ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
        } else if (isX(p3)) {
          ret = `>=${M}.${m3}.0 <${M}.${+m3 + 1}.0-0`;
        } else if (pr) {
          debug3("replaceTilde pr", pr);
          ret = `>=${M}.${m3}.${p3}-${pr} <${M}.${+m3 + 1}.0-0`;
        } else {
          ret = `>=${M}.${m3}.${p3} <${M}.${+m3 + 1}.0-0`;
        }
        debug3("tilde return", ret);
        return ret;
      });
    }, "replaceTilde");
    var replaceCarets = /* @__PURE__ */ __name((comp, options) => {
      return comp.trim().split(/\s+/).map((c3) => replaceCaret(c3, options)).join(" ");
    }, "replaceCarets");
    var replaceCaret = /* @__PURE__ */ __name((comp, options) => {
      debug3("caret", comp, options);
      const r3 = options.loose ? re[t3.CARETLOOSE] : re[t3.CARET];
      const z2 = options.includePrerelease ? "-0" : "";
      return comp.replace(r3, (_3, M, m3, p3, pr) => {
        debug3("caret", comp, _3, M, m3, p3, pr);
        let ret;
        if (isX(M)) {
          ret = "";
        } else if (isX(m3)) {
          ret = `>=${M}.0.0${z2} <${+M + 1}.0.0-0`;
        } else if (isX(p3)) {
          if (M === "0") {
            ret = `>=${M}.${m3}.0${z2} <${M}.${+m3 + 1}.0-0`;
          } else {
            ret = `>=${M}.${m3}.0${z2} <${+M + 1}.0.0-0`;
          }
        } else if (pr) {
          debug3("replaceCaret pr", pr);
          if (M === "0") {
            if (m3 === "0") {
              ret = `>=${M}.${m3}.${p3}-${pr} <${M}.${m3}.${+p3 + 1}-0`;
            } else {
              ret = `>=${M}.${m3}.${p3}-${pr} <${M}.${+m3 + 1}.0-0`;
            }
          } else {
            ret = `>=${M}.${m3}.${p3}-${pr} <${+M + 1}.0.0-0`;
          }
        } else {
          debug3("no pr");
          if (M === "0") {
            if (m3 === "0") {
              ret = `>=${M}.${m3}.${p3}${z2} <${M}.${m3}.${+p3 + 1}-0`;
            } else {
              ret = `>=${M}.${m3}.${p3}${z2} <${M}.${+m3 + 1}.0-0`;
            }
          } else {
            ret = `>=${M}.${m3}.${p3} <${+M + 1}.0.0-0`;
          }
        }
        debug3("caret return", ret);
        return ret;
      });
    }, "replaceCaret");
    var replaceXRanges = /* @__PURE__ */ __name((comp, options) => {
      debug3("replaceXRanges", comp, options);
      return comp.split(/\s+/).map((c3) => replaceXRange(c3, options)).join(" ");
    }, "replaceXRanges");
    var replaceXRange = /* @__PURE__ */ __name((comp, options) => {
      comp = comp.trim();
      const r3 = options.loose ? re[t3.XRANGELOOSE] : re[t3.XRANGE];
      return comp.replace(r3, (ret, gtlt, M, m3, p3, pr) => {
        debug3("xRange", comp, ret, gtlt, M, m3, p3, pr);
        const xM = isX(M);
        const xm = xM || isX(m3);
        const xp = xm || isX(p3);
        const anyX = xp;
        if (gtlt === "=" && anyX) {
          gtlt = "";
        }
        pr = options.includePrerelease ? "-0" : "";
        if (xM) {
          if (gtlt === ">" || gtlt === "<") {
            ret = "<0.0.0-0";
          } else {
            ret = "*";
          }
        } else if (gtlt && anyX) {
          if (xm) {
            m3 = 0;
          }
          p3 = 0;
          if (gtlt === ">") {
            gtlt = ">=";
            if (xm) {
              M = +M + 1;
              m3 = 0;
              p3 = 0;
            } else {
              m3 = +m3 + 1;
              p3 = 0;
            }
          } else if (gtlt === "<=") {
            gtlt = "<";
            if (xm) {
              M = +M + 1;
            } else {
              m3 = +m3 + 1;
            }
          }
          if (gtlt === "<") {
            pr = "-0";
          }
          ret = `${gtlt + M}.${m3}.${p3}${pr}`;
        } else if (xm) {
          ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
        } else if (xp) {
          ret = `>=${M}.${m3}.0${pr} <${M}.${+m3 + 1}.0-0`;
        }
        debug3("xRange return", ret);
        return ret;
      });
    }, "replaceXRange");
    var replaceStars = /* @__PURE__ */ __name((comp, options) => {
      debug3("replaceStars", comp, options);
      return comp.trim().replace(re[t3.STAR], "");
    }, "replaceStars");
    var replaceGTE0 = /* @__PURE__ */ __name((comp, options) => {
      debug3("replaceGTE0", comp, options);
      return comp.trim().replace(re[options.includePrerelease ? t3.GTE0PRE : t3.GTE0], "");
    }, "replaceGTE0");
    var hyphenReplace = /* @__PURE__ */ __name((incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => {
      if (isX(fM)) {
        from = "";
      } else if (isX(fm)) {
        from = `>=${fM}.0.0${incPr ? "-0" : ""}`;
      } else if (isX(fp)) {
        from = `>=${fM}.${fm}.0${incPr ? "-0" : ""}`;
      } else if (fpr) {
        from = `>=${from}`;
      } else {
        from = `>=${from}${incPr ? "-0" : ""}`;
      }
      if (isX(tM)) {
        to = "";
      } else if (isX(tm)) {
        to = `<${+tM + 1}.0.0-0`;
      } else if (isX(tp)) {
        to = `<${tM}.${+tm + 1}.0-0`;
      } else if (tpr) {
        to = `<=${tM}.${tm}.${tp}-${tpr}`;
      } else if (incPr) {
        to = `<${tM}.${tm}.${+tp + 1}-0`;
      } else {
        to = `<=${to}`;
      }
      return `${from} ${to}`.trim();
    }, "hyphenReplace");
    var testSet = /* @__PURE__ */ __name((set, version2, options) => {
      for (let i3 = 0; i3 < set.length; i3++) {
        if (!set[i3].test(version2)) {
          return false;
        }
      }
      if (version2.prerelease.length && !options.includePrerelease) {
        for (let i3 = 0; i3 < set.length; i3++) {
          debug3(set[i3].semver);
          if (set[i3].semver === Comparator.ANY) {
            continue;
          }
          if (set[i3].semver.prerelease.length > 0) {
            const allowed = set[i3].semver;
            if (allowed.major === version2.major && allowed.minor === version2.minor && allowed.patch === version2.patch) {
              return true;
            }
          }
        }
        return false;
      }
      return true;
    }, "testSet");
  }
});

// ../../node_modules/semver/classes/comparator.js
var require_comparator2 = __commonJS({
  "../../node_modules/semver/classes/comparator.js"(exports2, module2) {
    "use strict";
    var ANY = Symbol("SemVer ANY");
    var Comparator = class _Comparator {
      static {
        __name(this, "Comparator");
      }
      static get ANY() {
        return ANY;
      }
      constructor(comp, options) {
        options = parseOptions(options);
        if (comp instanceof _Comparator) {
          if (comp.loose === !!options.loose) {
            return comp;
          } else {
            comp = comp.value;
          }
        }
        comp = comp.trim().split(/\s+/).join(" ");
        debug3("comparator", comp, options);
        this.options = options;
        this.loose = !!options.loose;
        this.parse(comp);
        if (this.semver === ANY) {
          this.value = "";
        } else {
          this.value = this.operator + this.semver.version;
        }
        debug3("comp", this);
      }
      parse(comp) {
        const r3 = this.options.loose ? re[t3.COMPARATORLOOSE] : re[t3.COMPARATOR];
        const m3 = comp.match(r3);
        if (!m3) {
          throw new TypeError(`Invalid comparator: ${comp}`);
        }
        this.operator = m3[1] !== void 0 ? m3[1] : "";
        if (this.operator === "=") {
          this.operator = "";
        }
        if (!m3[2]) {
          this.semver = ANY;
        } else {
          this.semver = new SemVer(m3[2], this.options.loose);
        }
      }
      toString() {
        return this.value;
      }
      test(version2) {
        debug3("Comparator.test", version2, this.options.loose);
        if (this.semver === ANY || version2 === ANY) {
          return true;
        }
        if (typeof version2 === "string") {
          try {
            version2 = new SemVer(version2, this.options);
          } catch (er) {
            return false;
          }
        }
        return cmp(version2, this.operator, this.semver, this.options);
      }
      intersects(comp, options) {
        if (!(comp instanceof _Comparator)) {
          throw new TypeError("a Comparator is required");
        }
        if (this.operator === "") {
          if (this.value === "") {
            return true;
          }
          return new Range(comp.value, options).test(this.value);
        } else if (comp.operator === "") {
          if (comp.value === "") {
            return true;
          }
          return new Range(this.value, options).test(comp.semver);
        }
        options = parseOptions(options);
        if (options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0")) {
          return false;
        }
        if (!options.includePrerelease && (this.value.startsWith("<0.0.0") || comp.value.startsWith("<0.0.0"))) {
          return false;
        }
        if (this.operator.startsWith(">") && comp.operator.startsWith(">")) {
          return true;
        }
        if (this.operator.startsWith("<") && comp.operator.startsWith("<")) {
          return true;
        }
        if (this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=")) {
          return true;
        }
        if (cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<")) {
          return true;
        }
        if (cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")) {
          return true;
        }
        return false;
      }
    };
    module2.exports = Comparator;
    var parseOptions = require_parse_options2();
    var { safeRe: re, t: t3 } = require_re2();
    var cmp = require_cmp2();
    var debug3 = require_debug2();
    var SemVer = require_semver3();
    var Range = require_range2();
  }
});

// ../../node_modules/semver/functions/satisfies.js
var require_satisfies2 = __commonJS({
  "../../node_modules/semver/functions/satisfies.js"(exports2, module2) {
    "use strict";
    var Range = require_range2();
    var satisfies2 = /* @__PURE__ */ __name((version2, range2, options) => {
      try {
        range2 = new Range(range2, options);
      } catch (er) {
        return false;
      }
      return range2.test(version2);
    }, "satisfies");
    module2.exports = satisfies2;
  }
});

// ../../node_modules/semver/ranges/to-comparators.js
var require_to_comparators2 = __commonJS({
  "../../node_modules/semver/ranges/to-comparators.js"(exports2, module2) {
    "use strict";
    var Range = require_range2();
    var toComparators = /* @__PURE__ */ __name((range2, options) => new Range(range2, options).set.map((comp) => comp.map((c3) => c3.value).join(" ").trim().split(" ")), "toComparators");
    module2.exports = toComparators;
  }
});

// ../../node_modules/semver/ranges/max-satisfying.js
var require_max_satisfying2 = __commonJS({
  "../../node_modules/semver/ranges/max-satisfying.js"(exports2, module2) {
    "use strict";
    var SemVer = require_semver3();
    var Range = require_range2();
    var maxSatisfying = /* @__PURE__ */ __name((versions, range2, options) => {
      let max = null;
      let maxSV = null;
      let rangeObj = null;
      try {
        rangeObj = new Range(range2, options);
      } catch (er) {
        return null;
      }
      versions.forEach((v6) => {
        if (rangeObj.test(v6)) {
          if (!max || maxSV.compare(v6) === -1) {
            max = v6;
            maxSV = new SemVer(max, options);
          }
        }
      });
      return max;
    }, "maxSatisfying");
    module2.exports = maxSatisfying;
  }
});

// ../../node_modules/semver/ranges/min-satisfying.js
var require_min_satisfying2 = __commonJS({
  "../../node_modules/semver/ranges/min-satisfying.js"(exports2, module2) {
    "use strict";
    var SemVer = require_semver3();
    var Range = require_range2();
    var minSatisfying = /* @__PURE__ */ __name((versions, range2, options) => {
      let min = null;
      let minSV = null;
      let rangeObj = null;
      try {
        rangeObj = new Range(range2, options);
      } catch (er) {
        return null;
      }
      versions.forEach((v6) => {
        if (rangeObj.test(v6)) {
          if (!min || minSV.compare(v6) === 1) {
            min = v6;
            minSV = new SemVer(min, options);
          }
        }
      });
      return min;
    }, "minSatisfying");
    module2.exports = minSatisfying;
  }
});

// ../../node_modules/semver/ranges/min-version.js
var require_min_version2 = __commonJS({
  "../../node_modules/semver/ranges/min-version.js"(exports2, module2) {
    "use strict";
    var SemVer = require_semver3();
    var Range = require_range2();
    var gt = require_gt2();
    var minVersion = /* @__PURE__ */ __name((range2, loose) => {
      range2 = new Range(range2, loose);
      let minver = new SemVer("0.0.0");
      if (range2.test(minver)) {
        return minver;
      }
      minver = new SemVer("0.0.0-0");
      if (range2.test(minver)) {
        return minver;
      }
      minver = null;
      for (let i3 = 0; i3 < range2.set.length; ++i3) {
        const comparators = range2.set[i3];
        let setMin = null;
        comparators.forEach((comparator) => {
          const compver = new SemVer(comparator.semver.version);
          switch (comparator.operator) {
            case ">":
              if (compver.prerelease.length === 0) {
                compver.patch++;
              } else {
                compver.prerelease.push(0);
              }
              compver.raw = compver.format();
            /* fallthrough */
            case "":
            case ">=":
              if (!setMin || gt(compver, setMin)) {
                setMin = compver;
              }
              break;
            case "<":
            case "<=":
              break;
            /* istanbul ignore next */
            default:
              throw new Error(`Unexpected operation: ${comparator.operator}`);
          }
        });
        if (setMin && (!minver || gt(minver, setMin))) {
          minver = setMin;
        }
      }
      if (minver && range2.test(minver)) {
        return minver;
      }
      return null;
    }, "minVersion");
    module2.exports = minVersion;
  }
});

// ../../node_modules/semver/ranges/valid.js
var require_valid4 = __commonJS({
  "../../node_modules/semver/ranges/valid.js"(exports2, module2) {
    "use strict";
    var Range = require_range2();
    var validRange = /* @__PURE__ */ __name((range2, options) => {
      try {
        return new Range(range2, options).range || "*";
      } catch (er) {
        return null;
      }
    }, "validRange");
    module2.exports = validRange;
  }
});

// ../../node_modules/semver/ranges/outside.js
var require_outside2 = __commonJS({
  "../../node_modules/semver/ranges/outside.js"(exports2, module2) {
    "use strict";
    var SemVer = require_semver3();
    var Comparator = require_comparator2();
    var { ANY } = Comparator;
    var Range = require_range2();
    var satisfies2 = require_satisfies2();
    var gt = require_gt2();
    var lt = require_lt2();
    var lte3 = require_lte2();
    var gte2 = require_gte2();
    var outside = /* @__PURE__ */ __name((version2, range2, hilo, options) => {
      version2 = new SemVer(version2, options);
      range2 = new Range(range2, options);
      let gtfn, ltefn, ltfn, comp, ecomp;
      switch (hilo) {
        case ">":
          gtfn = gt;
          ltefn = lte3;
          ltfn = lt;
          comp = ">";
          ecomp = ">=";
          break;
        case "<":
          gtfn = lt;
          ltefn = gte2;
          ltfn = gt;
          comp = "<";
          ecomp = "<=";
          break;
        default:
          throw new TypeError('Must provide a hilo val of "<" or ">"');
      }
      if (satisfies2(version2, range2, options)) {
        return false;
      }
      for (let i3 = 0; i3 < range2.set.length; ++i3) {
        const comparators = range2.set[i3];
        let high = null;
        let low = null;
        comparators.forEach((comparator) => {
          if (comparator.semver === ANY) {
            comparator = new Comparator(">=0.0.0");
          }
          high = high || comparator;
          low = low || comparator;
          if (gtfn(comparator.semver, high.semver, options)) {
            high = comparator;
          } else if (ltfn(comparator.semver, low.semver, options)) {
            low = comparator;
          }
        });
        if (high.operator === comp || high.operator === ecomp) {
          return false;
        }
        if ((!low.operator || low.operator === comp) && ltefn(version2, low.semver)) {
          return false;
        } else if (low.operator === ecomp && ltfn(version2, low.semver)) {
          return false;
        }
      }
      return true;
    }, "outside");
    module2.exports = outside;
  }
});

// ../../node_modules/semver/ranges/gtr.js
var require_gtr2 = __commonJS({
  "../../node_modules/semver/ranges/gtr.js"(exports2, module2) {
    "use strict";
    var outside = require_outside2();
    var gtr = /* @__PURE__ */ __name((version2, range2, options) => outside(version2, range2, ">", options), "gtr");
    module2.exports = gtr;
  }
});

// ../../node_modules/semver/ranges/ltr.js
var require_ltr2 = __commonJS({
  "../../node_modules/semver/ranges/ltr.js"(exports2, module2) {
    "use strict";
    var outside = require_outside2();
    var ltr = /* @__PURE__ */ __name((version2, range2, options) => outside(version2, range2, "<", options), "ltr");
    module2.exports = ltr;
  }
});

// ../../node_modules/semver/ranges/intersects.js
var require_intersects2 = __commonJS({
  "../../node_modules/semver/ranges/intersects.js"(exports2, module2) {
    "use strict";
    var Range = require_range2();
    var intersects = /* @__PURE__ */ __name((r1, r22, options) => {
      r1 = new Range(r1, options);
      r22 = new Range(r22, options);
      return r1.intersects(r22, options);
    }, "intersects");
    module2.exports = intersects;
  }
});

// ../../node_modules/semver/ranges/simplify.js
var require_simplify2 = __commonJS({
  "../../node_modules/semver/ranges/simplify.js"(exports2, module2) {
    "use strict";
    var satisfies2 = require_satisfies2();
    var compare2 = require_compare2();
    module2.exports = (versions, range2, options) => {
      const set = [];
      let first = null;
      let prev = null;
      const v6 = versions.sort((a3, b3) => compare2(a3, b3, options));
      for (const version2 of v6) {
        const included = satisfies2(version2, range2, options);
        if (included) {
          prev = version2;
          if (!first) {
            first = version2;
          }
        } else {
          if (prev) {
            set.push([first, prev]);
          }
          prev = null;
          first = null;
        }
      }
      if (first) {
        set.push([first, null]);
      }
      const ranges = [];
      for (const [min, max] of set) {
        if (min === max) {
          ranges.push(min);
        } else if (!max && min === v6[0]) {
          ranges.push("*");
        } else if (!max) {
          ranges.push(`>=${min}`);
        } else if (min === v6[0]) {
          ranges.push(`<=${max}`);
        } else {
          ranges.push(`${min} - ${max}`);
        }
      }
      const simplified = ranges.join(" || ");
      const original = typeof range2.raw === "string" ? range2.raw : String(range2);
      return simplified.length < original.length ? simplified : range2;
    };
  }
});

// ../../node_modules/semver/ranges/subset.js
var require_subset2 = __commonJS({
  "../../node_modules/semver/ranges/subset.js"(exports2, module2) {
    "use strict";
    var Range = require_range2();
    var Comparator = require_comparator2();
    var { ANY } = Comparator;
    var satisfies2 = require_satisfies2();
    var compare2 = require_compare2();
    var subset = /* @__PURE__ */ __name((sub, dom, options = {}) => {
      if (sub === dom) {
        return true;
      }
      sub = new Range(sub, options);
      dom = new Range(dom, options);
      let sawNonNull = false;
      OUTER: for (const simpleSub of sub.set) {
        for (const simpleDom of dom.set) {
          const isSub = simpleSubset(simpleSub, simpleDom, options);
          sawNonNull = sawNonNull || isSub !== null;
          if (isSub) {
            continue OUTER;
          }
        }
        if (sawNonNull) {
          return false;
        }
      }
      return true;
    }, "subset");
    var minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")];
    var minimumVersion = [new Comparator(">=0.0.0")];
    var simpleSubset = /* @__PURE__ */ __name((sub, dom, options) => {
      if (sub === dom) {
        return true;
      }
      if (sub.length === 1 && sub[0].semver === ANY) {
        if (dom.length === 1 && dom[0].semver === ANY) {
          return true;
        } else if (options.includePrerelease) {
          sub = minimumVersionWithPreRelease;
        } else {
          sub = minimumVersion;
        }
      }
      if (dom.length === 1 && dom[0].semver === ANY) {
        if (options.includePrerelease) {
          return true;
        } else {
          dom = minimumVersion;
        }
      }
      const eqSet = /* @__PURE__ */ new Set();
      let gt, lt;
      for (const c3 of sub) {
        if (c3.operator === ">" || c3.operator === ">=") {
          gt = higherGT(gt, c3, options);
        } else if (c3.operator === "<" || c3.operator === "<=") {
          lt = lowerLT(lt, c3, options);
        } else {
          eqSet.add(c3.semver);
        }
      }
      if (eqSet.size > 1) {
        return null;
      }
      let gtltComp;
      if (gt && lt) {
        gtltComp = compare2(gt.semver, lt.semver, options);
        if (gtltComp > 0) {
          return null;
        } else if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<=")) {
          return null;
        }
      }
      for (const eq2 of eqSet) {
        if (gt && !satisfies2(eq2, String(gt), options)) {
          return null;
        }
        if (lt && !satisfies2(eq2, String(lt), options)) {
          return null;
        }
        for (const c3 of dom) {
          if (!satisfies2(eq2, String(c3), options)) {
            return false;
          }
        }
        return true;
      }
      let higher, lower;
      let hasDomLT, hasDomGT;
      let needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : false;
      let needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : false;
      if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0) {
        needDomLTPre = false;
      }
      for (const c3 of dom) {
        hasDomGT = hasDomGT || c3.operator === ">" || c3.operator === ">=";
        hasDomLT = hasDomLT || c3.operator === "<" || c3.operator === "<=";
        if (gt) {
          if (needDomGTPre) {
            if (c3.semver.prerelease && c3.semver.prerelease.length && c3.semver.major === needDomGTPre.major && c3.semver.minor === needDomGTPre.minor && c3.semver.patch === needDomGTPre.patch) {
              needDomGTPre = false;
            }
          }
          if (c3.operator === ">" || c3.operator === ">=") {
            higher = higherGT(gt, c3, options);
            if (higher === c3 && higher !== gt) {
              return false;
            }
          } else if (gt.operator === ">=" && !satisfies2(gt.semver, String(c3), options)) {
            return false;
          }
        }
        if (lt) {
          if (needDomLTPre) {
            if (c3.semver.prerelease && c3.semver.prerelease.length && c3.semver.major === needDomLTPre.major && c3.semver.minor === needDomLTPre.minor && c3.semver.patch === needDomLTPre.patch) {
              needDomLTPre = false;
            }
          }
          if (c3.operator === "<" || c3.operator === "<=") {
            lower = lowerLT(lt, c3, options);
            if (lower === c3 && lower !== lt) {
              return false;
            }
          } else if (lt.operator === "<=" && !satisfies2(lt.semver, String(c3), options)) {
            return false;
          }
        }
        if (!c3.operator && (lt || gt) && gtltComp !== 0) {
          return false;
        }
      }
      if (gt && hasDomLT && !lt && gtltComp !== 0) {
        return false;
      }
      if (lt && hasDomGT && !gt && gtltComp !== 0) {
        return false;
      }
      if (needDomGTPre || needDomLTPre) {
        return false;
      }
      return true;
    }, "simpleSubset");
    var higherGT = /* @__PURE__ */ __name((a3, b3, options) => {
      if (!a3) {
        return b3;
      }
      const comp = compare2(a3.semver, b3.semver, options);
      return comp > 0 ? a3 : comp < 0 ? b3 : b3.operator === ">" && a3.operator === ">=" ? b3 : a3;
    }, "higherGT");
    var lowerLT = /* @__PURE__ */ __name((a3, b3, options) => {
      if (!a3) {
        return b3;
      }
      const comp = compare2(a3.semver, b3.semver, options);
      return comp < 0 ? a3 : comp > 0 ? b3 : b3.operator === "<" && a3.operator === "<=" ? b3 : a3;
    }, "lowerLT");
    module2.exports = subset;
  }
});

// ../../node_modules/semver/index.js
var require_semver4 = __commonJS({
  "../../node_modules/semver/index.js"(exports2, module2) {
    "use strict";
    var internalRe = require_re2();
    var constants3 = require_constants4();
    var SemVer = require_semver3();
    var identifiers = require_identifiers2();
    var parse3 = require_parse2();
    var valid3 = require_valid3();
    var clean = require_clean2();
    var inc = require_inc2();
    var diff = require_diff2();
    var major6 = require_major2();
    var minor = require_minor2();
    var patch = require_patch2();
    var prerelease = require_prerelease2();
    var compare2 = require_compare2();
    var rcompare = require_rcompare2();
    var compareLoose = require_compare_loose2();
    var compareBuild = require_compare_build2();
    var sort = require_sort2();
    var rsort = require_rsort2();
    var gt = require_gt2();
    var lt = require_lt2();
    var eq2 = require_eq3();
    var neq = require_neq2();
    var gte2 = require_gte2();
    var lte3 = require_lte2();
    var cmp = require_cmp2();
    var coerce2 = require_coerce2();
    var Comparator = require_comparator2();
    var Range = require_range2();
    var satisfies2 = require_satisfies2();
    var toComparators = require_to_comparators2();
    var maxSatisfying = require_max_satisfying2();
    var minSatisfying = require_min_satisfying2();
    var minVersion = require_min_version2();
    var validRange = require_valid4();
    var outside = require_outside2();
    var gtr = require_gtr2();
    var ltr = require_ltr2();
    var intersects = require_intersects2();
    var simplifyRange = require_simplify2();
    var subset = require_subset2();
    module2.exports = {
      parse: parse3,
      valid: valid3,
      clean,
      inc,
      diff,
      major: major6,
      minor,
      patch,
      prerelease,
      compare: compare2,
      rcompare,
      compareLoose,
      compareBuild,
      sort,
      rsort,
      gt,
      lt,
      eq: eq2,
      neq,
      gte: gte2,
      lte: lte3,
      cmp,
      coerce: coerce2,
      Comparator,
      Range,
      satisfies: satisfies2,
      toComparators,
      maxSatisfying,
      minSatisfying,
      minVersion,
      validRange,
      outside,
      gtr,
      ltr,
      intersects,
      simplifyRange,
      subset,
      SemVer,
      re: internalRe.re,
      src: internalRe.src,
      tokens: internalRe.t,
      SEMVER_SPEC_VERSION: constants3.SEMVER_SPEC_VERSION,
      RELEASE_TYPES: constants3.RELEASE_TYPES,
      compareIdentifiers: identifiers.compareIdentifiers,
      rcompareIdentifiers: identifiers.rcompareIdentifiers
    };
  }
});

// ../@aws-cdk/toolkit-lib/lib/util/version-range.ts
function rangeFromSemver(ver, targetType) {
  const re = ver.match(/^([^\d]*)([\d.]*)$/);
  if (!re || !semver2.valid(re[2])) {
    throw new ToolkitError("not a semver or unsupported range syntax");
  }
  const prefixPart = re[1];
  const verPart = re[2];
  switch (targetType) {
    case "bracket":
      switch (prefixPart) {
        case "":
          return ver;
        case "^":
          return `[${verPart},${semver2.major(verPart) + 1}.0.0)`;
        default:
          throw new ToolkitError(`unsupported range syntax - ${prefixPart}`);
      }
    case "pep":
      switch (prefixPart) {
        case "":
          return `==${ver}`;
        case "^":
          return `>=${verPart},<${semver2.major(verPart) + 1}.0.0`;
        default:
          throw new ToolkitError(`unsupported range syntax - ${prefixPart}`);
      }
  }
}
var semver2;
var init_version_range = __esm({
  "../@aws-cdk/toolkit-lib/lib/util/version-range.ts"() {
    "use strict";
    semver2 = __toESM(require_semver4());
    init_toolkit_error();
    __name(rangeFromSemver, "rangeFromSemver");
  }
});

// ../@aws-cdk/toolkit-lib/lib/util/index.ts
var init_util3 = __esm({
  "../@aws-cdk/toolkit-lib/lib/util/index.ts"() {
    "use strict";
    init_archive2();
    init_arrays();
    init_bool();
    init_bytes();
    init_cloudformation();
    init_content_hash();
    init_directories();
    init_format_error();
    init_json();
    init_net();
    init_objects();
    init_parallel();
    init_package_info();
    init_serialize();
    init_string_manipulation();
    init_type_brands();
    init_types();
    init_version_range();
    init_yaml_cfn();
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/io/private/span.ts
function parseArgs(first, second) {
  const firstIsMessage = typeof first === "string";
  const message2 = firstIsMessage || second ? first : void 0;
  const payload2 = firstIsMessage || second ? second : first;
  return {
    message: message2,
    payload: payload2
  };
}
function withSpanId(span, message2) {
  return {
    ...message2,
    span
  };
}
var util2, SpanMaker, MessageSpan;
var init_span = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/io/private/span.ts"() {
    "use strict";
    util2 = __toESM(require("node:util"));
    init_esm8();
    init_util3();
    SpanMaker = class {
      static {
        __name(this, "SpanMaker");
      }
      definition;
      ioHelper;
      makeHelper;
      constructor(ioHelper, definition, makeHelper) {
        this.definition = definition;
        this.ioHelper = ioHelper;
        this.makeHelper = makeHelper;
      }
      async begin(a3, b3) {
        const span = new MessageSpan(this.ioHelper, this.definition, this.makeHelper);
        const startInput = parseArgs(a3, b3);
        const startMsg = startInput.message ?? `Starting ${this.definition.name} ...`;
        const startPayload = startInput.payload;
        await span.notify(this.definition.start.msg(startMsg, startPayload));
        return span;
      }
    };
    MessageSpan = class {
      static {
        __name(this, "MessageSpan");
      }
      asHelper;
      definition;
      ioHelper;
      spanId;
      startTime;
      timingMsgTemplate;
      constructor(ioHelper, definition, makeHelper) {
        this.definition = definition;
        this.ioHelper = ioHelper;
        this.spanId = v4_default2();
        this.startTime = (/* @__PURE__ */ new Date()).getTime();
        this.timingMsgTemplate = "\n\u2728  %s time: %ds\n";
        this.asHelper = makeHelper(this);
      }
      get defaults() {
        return this.asHelper.defaults;
      }
      async elapsedTime() {
        return this.time();
      }
      async timing(maker, message2) {
        const duration = this.time();
        const timingMsg = message2 ? message2 : util2.format(this.timingMsgTemplate, this.definition.name, duration.asSec);
        await this.notify(maker.msg(timingMsg, {
          duration: duration.asMs
        }));
        return duration;
      }
      async notify(msg) {
        return this.ioHelper.notify(withSpanId(this.spanId, msg));
      }
      async end(x3, y2) {
        const duration = this.time();
        const endInput = parseArgs(x3, y2);
        const endMsg = endInput.message ?? util2.format(this.timingMsgTemplate, this.definition.name, duration.asSec);
        const endPayload = endInput.payload;
        await this.notify(this.definition.end.msg(
          endMsg,
          {
            duration: duration.asMs,
            ...endPayload
          }
        ));
        return duration;
      }
      async requestResponse(msg) {
        return this.ioHelper.requestResponse(withSpanId(this.spanId, msg));
      }
      time() {
        const elapsedTime = (/* @__PURE__ */ new Date()).getTime() - this.startTime;
        return {
          asMs: elapsedTime,
          asSec: formatTime(elapsedTime)
        };
      }
    };
    __name(parseArgs, "parseArgs");
    __name(withSpanId, "withSpanId");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/io/private/io-helper.ts
function asIoHelper(ioHost, action) {
  return IoHelper.fromIoHost(ioHost, action);
}
var IoHelper;
var init_io_helper = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/io/private/io-helper.ts"() {
    "use strict";
    init_io_default_messages();
    init_span();
    IoHelper = class _IoHelper {
      static {
        __name(this, "IoHelper");
      }
      static fromIoHost(ioHost, action) {
        return new _IoHelper({
          notify: /* @__PURE__ */ __name((msg) => ioHost.notify({
            ...msg,
            action
          }), "notify"),
          requestResponse: /* @__PURE__ */ __name((msg) => ioHost.requestResponse({
            ...msg,
            action
          }), "requestResponse")
        });
      }
      static fromActionAwareIoHost(ioHost) {
        return new _IoHelper(ioHost);
      }
      /**
       * Simplified access to emit default messages.
       */
      defaults;
      ioHost;
      constructor(ioHost) {
        this.ioHost = ioHost;
        this.defaults = new IoDefaultMessages(this);
      }
      /**
       * Forward a message to the IoHost, while injection the current action
       */
      notify(msg) {
        return this.ioHost.notify(msg);
      }
      /**
       * Forward a request to the IoHost, while injection the current action
       */
      requestResponse(msg) {
        return this.ioHost.requestResponse(msg);
      }
      /**
       * Create a new marker from a given registry entry
       */
      span(definition) {
        return new SpanMaker(this, definition, (ioHost) => _IoHelper.fromActionAwareIoHost(ioHost));
      }
    };
    __name(asIoHelper, "asIoHelper");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/io/private/level-priority.ts
function compareFn(a3, b3) {
  return orderedLevels[a3] - orderedLevels[b3];
}
function isMessageRelevantForLevel(msg, level) {
  return compareFn(msg.level, level) >= 0;
}
var levels, orderedLevels;
var init_level_priority = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/io/private/level-priority.ts"() {
    "use strict";
    levels = [
      "trace",
      "debug",
      "info",
      "warn",
      "result",
      "error"
    ];
    orderedLevels = Object.fromEntries(Object.entries(levels).map((a3) => a3.reverse()));
    __name(compareFn, "compareFn");
    __name(isMessageRelevantForLevel, "isMessageRelevantForLevel");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/io/private/message-maker.ts
function message(level, details) {
  const maker = /* @__PURE__ */ __name((text, data3) => ({
    time: /* @__PURE__ */ new Date(),
    level,
    code: details.code,
    message: text,
    data: data3
  }), "maker");
  return {
    ...details,
    level,
    msg: maker,
    is: /* @__PURE__ */ __name((m3) => m3.code === details.code, "is")
  };
}
function request(level, details) {
  const maker = /* @__PURE__ */ __name((text, data3) => ({
    time: /* @__PURE__ */ new Date(),
    level,
    code: details.code,
    message: text,
    data: data3,
    defaultResponse: details.defaultResponse
  }), "maker");
  return {
    ...details,
    level,
    req: maker
  };
}
function question(details) {
  const level = "info";
  const maker = /* @__PURE__ */ __name((text, data3, defaultResponse) => ({
    time: /* @__PURE__ */ new Date(),
    level,
    code: details.code,
    message: text,
    data: data3,
    defaultResponse
  }), "maker");
  return {
    ...details,
    level,
    req: maker
  };
}
var trace, debug, info, warn, error3, result, confirm;
var init_message_maker = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/io/private/message-maker.ts"() {
    "use strict";
    __name(message, "message");
    trace = /* @__PURE__ */ __name((details) => message("trace", details), "trace");
    debug = /* @__PURE__ */ __name((details) => message("debug", details), "debug");
    info = /* @__PURE__ */ __name((details) => message("info", details), "info");
    warn = /* @__PURE__ */ __name((details) => message("warn", details), "warn");
    error3 = /* @__PURE__ */ __name((details) => message("error", details), "error");
    result = /* @__PURE__ */ __name((details) => message("result", details), "result");
    __name(request, "request");
    confirm = /* @__PURE__ */ __name((details) => request("info", {
      ...details,
      defaultResponse: true
    }), "confirm");
    __name(question, "question");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/io/private/messages.ts
var IO, SPAN;
var init_messages = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/io/private/messages.ts"() {
    "use strict";
    init_message_maker();
    IO = {
      // warnings & errors
      CDK_TOOLKIT_W0100: warn({
        code: "CDK_TOOLKIT_W0100",
        description: "Credential plugin warnings"
      }),
      // 1: Synth (1xxx)
      CDK_TOOLKIT_I1000: info({
        code: "CDK_TOOLKIT_I1000",
        description: "Provides synthesis times.",
        interface: "Duration"
      }),
      CDK_TOOLKIT_I1001: trace({
        code: "CDK_TOOLKIT_I1001",
        description: "Cloud Assembly synthesis is starting",
        interface: "StackSelectionDetails"
      }),
      CDK_TOOLKIT_I1901: result({
        code: "CDK_TOOLKIT_I1901",
        description: "Provides stack data",
        interface: "StackAndAssemblyData"
      }),
      CDK_TOOLKIT_I1902: result({
        code: "CDK_TOOLKIT_I1902",
        description: "Successfully deployed stacks",
        interface: "AssemblyData"
      }),
      // 2: List (2xxx)
      CDK_TOOLKIT_I2901: result({
        code: "CDK_TOOLKIT_I2901",
        description: "Provides details on the selected stacks and their dependencies",
        interface: "StackDetailsPayload"
      }),
      // 3: Import & Migrate
      CDK_TOOLKIT_I3100: confirm({
        code: "CDK_TOOLKIT_I3100",
        description: "Confirm the import of a specific resource",
        interface: "ResourceImportRequest"
      }),
      CDK_TOOLKIT_I3110: question({
        code: "CDK_TOOLKIT_I3110",
        description: "Additional information is needed to identify a resource",
        interface: "ResourceIdentificationRequest"
      }),
      CDK_TOOLKIT_E3900: error3({
        code: "CDK_TOOLKIT_E3900",
        description: "Resource import failed",
        interface: "ErrorPayload"
      }),
      // 4: Diff (40xx - 44xx)
      CDK_TOOLKIT_I4000: trace({
        code: "CDK_TOOLKIT_I4000",
        description: "Diff stacks is starting",
        interface: "StackSelectionDetails"
      }),
      CDK_TOOLKIT_I4001: result({
        code: "CDK_TOOLKIT_I4001",
        description: "Output of the diff command",
        interface: "DiffResult"
      }),
      CDK_TOOLKIT_I4002: result({
        code: "CDK_TOOLKIT_I4002",
        description: "The diff for a single stack",
        interface: "StackDiff"
      }),
      // 4: Drift (45xx - 49xx)
      CDK_TOOLKIT_I4500: trace({
        code: "CDK_TOOLKIT_I4500",
        description: "Drift detection is starting",
        interface: "StackSelectionDetails"
      }),
      CDK_TOOLKIT_I4509: result({
        code: "CDK_TOOLKIT_I4592",
        description: "Results of the drift",
        interface: "Duration"
      }),
      CDK_TOOLKIT_I4590: result({
        code: "CDK_TOOLKIT_I4590",
        description: "Results of a stack drift",
        interface: "DriftResultPayload"
      }),
      CDK_TOOLKIT_W4591: warn({
        code: "CDK_TOOLKIT_W4591",
        description: "Missing drift result fort a stack.",
        interface: "SingleStack"
      }),
      // 5: Deploy & Watch (5xxx)
      CDK_TOOLKIT_I5000: info({
        code: "CDK_TOOLKIT_I5000",
        description: "Provides deployment times",
        interface: "Duration"
      }),
      CDK_TOOLKIT_I5001: info({
        code: "CDK_TOOLKIT_I5001",
        description: "Provides total time in deploy action, including synth and rollback",
        interface: "Duration"
      }),
      CDK_TOOLKIT_I5002: info({
        code: "CDK_TOOLKIT_I5002",
        description: "Provides time for resource migration",
        interface: "Duration"
      }),
      CDK_TOOLKIT_W5021: warn({
        code: "CDK_TOOLKIT_W5021",
        description: "Empty non-existent stack, deployment is skipped"
      }),
      CDK_TOOLKIT_W5022: warn({
        code: "CDK_TOOLKIT_W5022",
        description: "Empty existing stack, stack will be destroyed"
      }),
      CDK_TOOLKIT_I5031: info({
        code: "CDK_TOOLKIT_I5031",
        description: "Informs about any log groups that are traced as part of the deployment"
      }),
      CDK_TOOLKIT_I5032: debug({
        code: "CDK_TOOLKIT_I5032",
        description: "Start monitoring log groups",
        interface: "CloudWatchLogMonitorControlEvent"
      }),
      CDK_TOOLKIT_I5033: info({
        code: "CDK_TOOLKIT_I5033",
        description: "A log event received from Cloud Watch",
        interface: "CloudWatchLogEvent"
      }),
      CDK_TOOLKIT_I5034: debug({
        code: "CDK_TOOLKIT_I5034",
        description: "Stop monitoring log groups",
        interface: "CloudWatchLogMonitorControlEvent"
      }),
      CDK_TOOLKIT_E5035: error3({
        code: "CDK_TOOLKIT_E5035",
        description: "A log monitoring error",
        interface: "ErrorPayload"
      }),
      CDK_TOOLKIT_I5050: confirm({
        code: "CDK_TOOLKIT_I5050",
        description: "Confirm rollback during deployment",
        interface: "ConfirmationRequest"
      }),
      CDK_TOOLKIT_I5060: confirm({
        code: "CDK_TOOLKIT_I5060",
        description: "Confirm deploy security sensitive changes",
        interface: "DeployConfirmationRequest"
      }),
      CDK_TOOLKIT_I5100: info({
        code: "CDK_TOOLKIT_I5100",
        description: "Stack deploy progress",
        interface: "StackDeployProgress"
      }),
      // Assets (52xx)
      CDK_TOOLKIT_I5210: trace({
        code: "CDK_TOOLKIT_I5210",
        description: "Started building a specific asset",
        interface: "BuildAsset"
      }),
      CDK_TOOLKIT_I5211: trace({
        code: "CDK_TOOLKIT_I5211",
        description: "Building the asset has completed",
        interface: "Duration"
      }),
      CDK_TOOLKIT_I5220: trace({
        code: "CDK_TOOLKIT_I5220",
        description: "Started publishing a specific asset",
        interface: "PublishAsset"
      }),
      CDK_TOOLKIT_I5221: trace({
        code: "CDK_TOOLKIT_I5221",
        description: "Publishing the asset has completed",
        interface: "Duration"
      }),
      // Watch (53xx)
      CDK_TOOLKIT_I5310: debug({
        code: "CDK_TOOLKIT_I5310",
        description: "The computed settings used for file watching",
        interface: "WatchSettings"
      }),
      CDK_TOOLKIT_I5311: info({
        code: "CDK_TOOLKIT_I5311",
        description: "File watching started",
        interface: "FileWatchEvent"
      }),
      CDK_TOOLKIT_I5312: info({
        code: "CDK_TOOLKIT_I5312",
        description: "File event detected, starting deployment",
        interface: "FileWatchEvent"
      }),
      CDK_TOOLKIT_I5313: info({
        code: "CDK_TOOLKIT_I5313",
        description: "File event detected during active deployment, changes are queued",
        interface: "FileWatchEvent"
      }),
      CDK_TOOLKIT_I5314: info({
        code: "CDK_TOOLKIT_I5314",
        description: "Initial watch deployment started"
      }),
      CDK_TOOLKIT_I5315: info({
        code: "CDK_TOOLKIT_I5315",
        description: "Queued watch deployment started"
      }),
      // Hotswap (54xx)
      CDK_TOOLKIT_I5400: trace({
        code: "CDK_TOOLKIT_I5400",
        description: "Attempting a hotswap deployment",
        interface: "HotswapDeploymentAttempt"
      }),
      CDK_TOOLKIT_I5401: trace({
        code: "CDK_TOOLKIT_I5401",
        description: "Computed details for the hotswap deployment",
        interface: "HotswapDeploymentDetails"
      }),
      CDK_TOOLKIT_I5402: info({
        code: "CDK_TOOLKIT_I5402",
        description: "A hotswappable change is processed as part of a hotswap deployment",
        interface: "HotswappableChange"
      }),
      CDK_TOOLKIT_I5403: info({
        code: "CDK_TOOLKIT_I5403",
        description: "The hotswappable change has completed processing",
        interface: "HotswappableChange"
      }),
      CDK_TOOLKIT_I5410: info({
        code: "CDK_TOOLKIT_I5410",
        description: "Hotswap deployment has ended, a full deployment might still follow if needed",
        interface: "HotswapResult"
      }),
      // Stack Monitor (55xx)
      CDK_TOOLKIT_I5501: info({
        code: "CDK_TOOLKIT_I5501",
        description: "Stack Monitoring: Start monitoring of a single stack",
        interface: "StackMonitoringControlEvent"
      }),
      CDK_TOOLKIT_I5502: info({
        code: "CDK_TOOLKIT_I5502",
        description: "Stack Monitoring: Activity event for a single stack",
        interface: "StackActivity"
      }),
      CDK_TOOLKIT_I5503: info({
        code: "CDK_TOOLKIT_I5503",
        description: "Stack Monitoring: Finished monitoring of a single stack",
        interface: "StackMonitoringControlEvent"
      }),
      // Success (59xx)
      CDK_TOOLKIT_I5900: result({
        code: "CDK_TOOLKIT_I5900",
        description: "Deployment results on success",
        interface: "SuccessfulDeployStackResult"
      }),
      CDK_TOOLKIT_I5901: info({
        code: "CDK_TOOLKIT_I5901",
        description: "Generic deployment success messages"
      }),
      CDK_TOOLKIT_W5400: warn({
        code: "CDK_TOOLKIT_W5400",
        description: "Hotswap disclosure message"
      }),
      CDK_TOOLKIT_E5001: error3({
        code: "CDK_TOOLKIT_E5001",
        description: "No stacks found"
      }),
      CDK_TOOLKIT_E5500: error3({
        code: "CDK_TOOLKIT_E5500",
        description: "Stack Monitoring error",
        interface: "ErrorPayload"
      }),
      // 6: Rollback (6xxx)
      CDK_TOOLKIT_I6000: info({
        code: "CDK_TOOLKIT_I6000",
        description: "Provides rollback times",
        interface: "Duration"
      }),
      CDK_TOOLKIT_I6100: info({
        code: "CDK_TOOLKIT_I6100",
        description: "Stack rollback progress",
        interface: "StackRollbackProgress"
      }),
      CDK_TOOLKIT_E6001: error3({
        code: "CDK_TOOLKIT_E6001",
        description: "No stacks found"
      }),
      CDK_TOOLKIT_E6900: error3({
        code: "CDK_TOOLKIT_E6900",
        description: "Rollback failed",
        interface: "ErrorPayload"
      }),
      // 7: Destroy (7xxx)
      CDK_TOOLKIT_I7000: info({
        code: "CDK_TOOLKIT_I7000",
        description: "Provides destroy times",
        interface: "Duration"
      }),
      CDK_TOOLKIT_I7001: trace({
        code: "CDK_TOOLKIT_I7001",
        description: "Provides destroy time for a single stack",
        interface: "Duration"
      }),
      CDK_TOOLKIT_I7010: confirm({
        code: "CDK_TOOLKIT_I7010",
        description: "Confirm destroy stacks",
        interface: "ConfirmationRequest"
      }),
      CDK_TOOLKIT_I7100: info({
        code: "CDK_TOOLKIT_I7100",
        description: "Stack destroy progress",
        interface: "StackDestroyProgress"
      }),
      CDK_TOOLKIT_I7101: trace({
        code: "CDK_TOOLKIT_I7101",
        description: "Start stack destroying",
        interface: "StackDestroy"
      }),
      CDK_TOOLKIT_I7900: result({
        code: "CDK_TOOLKIT_I7900",
        description: "Stack deletion succeeded",
        interface: "cxapi.CloudFormationStackArtifact"
      }),
      CDK_TOOLKIT_E7010: error3({
        code: "CDK_TOOLKIT_E7010",
        description: "Action was aborted due to negative confirmation of request"
      }),
      CDK_TOOLKIT_E7900: error3({
        code: "CDK_TOOLKIT_E7900",
        description: "Stack deletion failed",
        interface: "ErrorPayload"
      }),
      // 8. Refactor (8xxx)
      CDK_TOOLKIT_E8900: error3({
        code: "CDK_TOOLKIT_E8900",
        description: "Stack refactor failed",
        interface: "ErrorPayload"
      }),
      CDK_TOOLKIT_I8900: result({
        code: "CDK_TOOLKIT_I8900",
        description: "Refactor result",
        interface: "RefactorResult"
      }),
      CDK_TOOLKIT_I8910: question({
        code: "CDK_TOOLKIT_I8910",
        description: "Confirm refactor",
        interface: "ConfirmationRequest"
      }),
      CDK_TOOLKIT_W8010: warn({
        code: "CDK_TOOLKIT_W8010",
        description: "Refactor execution not yet supported"
      }),
      // 9: Bootstrap  & gc (9xxx)
      CDK_TOOLKIT_I9000: info({
        code: "CDK_TOOLKIT_I9000",
        description: "Provides bootstrap times",
        interface: "Duration"
      }),
      CDK_TOOLKIT_I9100: info({
        code: "CDK_TOOLKIT_I9100",
        description: "Bootstrap progress",
        interface: "BootstrapEnvironmentProgress"
      }),
      // gc (92xx)
      CDK_TOOLKIT_I9210: question({
        code: "CDK_TOOLKIT_I9210",
        description: "Confirm the deletion of a batch of assets",
        interface: "AssetBatchDeletionRequest"
      }),
      CDK_TOOLKIT_I9900: result({
        code: "CDK_TOOLKIT_I9900",
        description: "Bootstrap results on success",
        interface: "cxapi.Environment"
      }),
      CDK_TOOLKIT_E9900: error3({
        code: "CDK_TOOLKIT_E9900",
        description: "Bootstrap failed",
        interface: "ErrorPayload"
      }),
      // flags (93xxx)
      CDK_TOOLKIT_I9300: info({
        code: "CDK_TOOLKIT_I9300",
        description: "Confirm the feature flag configuration changes",
        interface: "FeatureFlagChangeRequest"
      }),
      // Notices
      CDK_TOOLKIT_I0100: info({
        code: "CDK_TOOLKIT_I0100",
        description: "Notices decoration (the header or footer of a list of notices)"
      }),
      CDK_TOOLKIT_W0101: warn({
        code: "CDK_TOOLKIT_W0101",
        description: "A notice that is marked as a warning"
      }),
      CDK_TOOLKIT_E0101: error3({
        code: "CDK_TOOLKIT_E0101",
        description: "A notice that is marked as an error"
      }),
      CDK_TOOLKIT_I0101: info({
        code: "CDK_TOOLKIT_I0101",
        description: "A notice that is marked as informational"
      }),
      // Assembly codes
      CDK_ASSEMBLY_I0010: debug({
        code: "CDK_ASSEMBLY_I0010",
        description: "Generic environment preparation debug messages"
      }),
      CDK_ASSEMBLY_W0010: warn({
        code: "CDK_ASSEMBLY_W0010",
        description: "Emitted if the found framework version does not support context overflow"
      }),
      CDK_ASSEMBLY_I0042: debug({
        code: "CDK_ASSEMBLY_I0042",
        description: "Writing context updates",
        interface: "UpdatedContext"
      }),
      CDK_ASSEMBLY_I0240: debug({
        code: "CDK_ASSEMBLY_I0240",
        description: "Context lookup was stopped as no further progress was made. ",
        interface: "MissingContext"
      }),
      CDK_ASSEMBLY_I0241: debug({
        code: "CDK_ASSEMBLY_I0241",
        description: "Fetching missing context. This is an iterative message that may appear multiple times with different missing keys.",
        interface: "MissingContext"
      }),
      CDK_ASSEMBLY_I1000: debug({
        code: "CDK_ASSEMBLY_I1000",
        description: "Cloud assembly output starts"
      }),
      CDK_ASSEMBLY_I1001: info({
        code: "CDK_ASSEMBLY_I1001",
        description: "Output lines emitted by the cloud assembly to stdout"
      }),
      CDK_ASSEMBLY_E1002: error3({
        code: "CDK_ASSEMBLY_E1002",
        description: "Output lines emitted by the cloud assembly to stderr"
      }),
      CDK_ASSEMBLY_I1003: info({
        code: "CDK_ASSEMBLY_I1003",
        description: "Cloud assembly output finished"
      }),
      CDK_ASSEMBLY_E1111: error3({
        code: "CDK_ASSEMBLY_E1111",
        description: "Incompatible CDK CLI version. Upgrade needed.",
        interface: "ErrorPayload"
      }),
      CDK_ASSEMBLY_I0150: debug({
        code: "CDK_ASSEMBLY_I0150",
        description: "Indicates the use of a pre-synthesized cloud assembly directory"
      }),
      CDK_ASSEMBLY_I0300: info({
        code: "CDK_ASSEMBLY_I0300",
        description: "An info message emitted by a Context Provider",
        interface: "ContextProviderMessageSource"
      }),
      CDK_ASSEMBLY_I0301: debug({
        code: "CDK_ASSEMBLY_I0301",
        description: "A debug message emitted by a Context Provider",
        interface: "ContextProviderMessageSource"
      }),
      // Assembly Annotations
      CDK_ASSEMBLY_I9999: info({
        code: "CDK_ASSEMBLY_I9999",
        description: "Annotations emitted by the cloud assembly",
        interface: "cxapi.SynthesisMessage"
      }),
      CDK_ASSEMBLY_W9999: warn({
        code: "CDK_ASSEMBLY_W9999",
        description: "Warnings emitted by the cloud assembly",
        interface: "cxapi.SynthesisMessage"
      }),
      CDK_ASSEMBLY_E9999: error3({
        code: "CDK_ASSEMBLY_E9999",
        description: "Errors emitted by the cloud assembly",
        interface: "cxapi.SynthesisMessage"
      }),
      // SDK codes
      CDK_SDK_I0100: trace({
        code: "CDK_SDK_I0100",
        description: "An SDK trace. SDK traces are emitted as traces to the IoHost, but contain the original SDK logging level.",
        interface: "SdkTrace"
      }),
      CDK_SDK_I1100: question({
        code: "CDK_SDK_I1100",
        description: "Get an MFA token for an MFA device.",
        interface: "MfaTokenRequest"
      })
    };
    SPAN = {
      SYNTH_ASSEMBLY: {
        name: "Synthesis",
        start: IO.CDK_TOOLKIT_I1001,
        end: IO.CDK_TOOLKIT_I1000
      },
      DEPLOY_STACK: {
        name: "Deployment",
        start: IO.CDK_TOOLKIT_I5100,
        end: IO.CDK_TOOLKIT_I5001
      },
      ROLLBACK_STACK: {
        name: "Rollback",
        start: IO.CDK_TOOLKIT_I6100,
        end: IO.CDK_TOOLKIT_I6000
      },
      DIFF_STACK: {
        name: "Diff",
        start: IO.CDK_TOOLKIT_I4000,
        end: IO.CDK_TOOLKIT_I4001
      },
      DRIFT_APP: {
        name: "Drift",
        start: IO.CDK_TOOLKIT_I4000,
        end: IO.CDK_TOOLKIT_I4509
      },
      DESTROY_STACK: {
        name: "Destroy",
        start: IO.CDK_TOOLKIT_I7100,
        end: IO.CDK_TOOLKIT_I7001
      },
      DESTROY_ACTION: {
        name: "Destroy",
        start: IO.CDK_TOOLKIT_I7101,
        end: IO.CDK_TOOLKIT_I7000
      },
      BOOTSTRAP_SINGLE: {
        name: "Bootstrap",
        start: IO.CDK_TOOLKIT_I9100,
        end: IO.CDK_TOOLKIT_I9000
      },
      BUILD_ASSET: {
        name: "Build Asset",
        start: IO.CDK_TOOLKIT_I5210,
        end: IO.CDK_TOOLKIT_I5211
      },
      PUBLISH_ASSET: {
        name: "Publish Asset",
        start: IO.CDK_TOOLKIT_I5220,
        end: IO.CDK_TOOLKIT_I5221
      },
      HOTSWAP: {
        name: "hotswap-deployment",
        start: IO.CDK_TOOLKIT_I5400,
        end: IO.CDK_TOOLKIT_I5410
      }
    };
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/io/private/types.ts
var init_types3 = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/io/private/types.ts"() {
    "use strict";
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/io/private/index.ts
var init_private = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/io/private/index.ts"() {
    "use strict";
    init_io_host_wrappers();
    init_io_helper();
    init_level_priority();
    init_span();
    init_message_maker();
    init_messages();
    init_types3();
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/plugin/plugin.ts
var import_util6, PluginHost;
var init_plugin = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/plugin/plugin.ts"() {
    "use strict";
    import_util6 = require("util");
    init_context_provider_plugin();
    init_toolkit_error();
    init_private();
    PluginHost = class {
      static {
        __name(this, "PluginHost");
      }
      /**
       * Access the currently registered CredentialProviderSources. New sources can
       * be registered using the +registerCredentialProviderSource+ method.
       */
      credentialProviderSources = new Array();
      contextProviderPlugins = {};
      ioHost;
      alreadyLoaded = /* @__PURE__ */ new Set();
      /**
       * Loads a plug-in into this PluginHost.
       *
       * Will use `require.resolve()` to get the most accurate representation of what
       * code will get loaded in error messages. As such, it will not work in
       * unit tests with Jest virtual modules becauase of \<https://github.com/jestjs/jest/issues/9543\>.
       *
       * @param moduleSpec - the specification (path or name) of the plug-in module to be loaded.
       * @param ioHost - the I/O host to use for printing progress information
       */
      async load(moduleSpec, ioHost) {
        const resolved = this._doResolve(moduleSpec);
        if (ioHost) {
          await IoHelper.fromIoHost(ioHost, "init").defaults.debug(`Loading plug-in: ${resolved} from ${moduleSpec}`);
        }
        return this._doLoad(resolved);
      }
      /**
       * Do the resolving of a module string to an actual path
       */
      _doResolve(moduleSpec) {
        try {
          return require.resolve(moduleSpec);
        } catch (e3) {
          throw new ToolkitError(`Unable to resolve plug-in: Cannot find module '${moduleSpec}': ${e3}`);
        }
      }
      /**
       * Do the loading given an already-resolved module name
       *
       * @internal
       */
      _doLoad(resolved) {
        try {
          if (this.alreadyLoaded.has(resolved)) {
            return;
          }
          const plugin = require(resolved);
          if (!isPlugin(plugin)) {
            throw new ToolkitError(`Module ${resolved} is not a valid plug-in, or has an unsupported version.`);
          }
          if (plugin.init) {
            plugin.init(this);
          }
          this.alreadyLoaded.add(resolved);
        } catch (e3) {
          throw ToolkitError.withCause(`Unable to load plug-in '${resolved}'`, e3);
        }
        function isPlugin(x3) {
          return x3 != null && x3.version === "1";
        }
        __name(isPlugin, "isPlugin");
      }
      /**
       * Allows plug-ins to register new CredentialProviderSources.
       *
       * @param source - a new CredentialProviderSource to register.
       */
      registerCredentialProviderSource(source) {
        this.credentialProviderSources.push(source);
      }
      /**
       * (EXPERIMENTAL) Allow plugins to register context providers
       *
       * Context providers are objects with the following method:
       *
       * ```ts
       *   getValue(args: {[key: string]: any}): Promise<any>;
       * ```
       *
       * Currently, they cannot reuse the CDK's authentication mechanisms, so they
       * must be prepared to either not make AWS calls or use their own source of
       * AWS credentials.
       *
       * This feature is experimental, and only intended to be used internally at Amazon
       * as a trial.
       *
       * After registering with 'my-plugin-name', the provider must be addressed as follows:
       *
       * ```ts
       * const value = ContextProvider.getValue(this, {
       *   providerName: 'plugin',
       *   props: {
       *     pluginName: 'my-plugin-name',
       *     myParameter1: 'xyz',
       *   },
       *   includeEnvironment: true | false,
       *   dummyValue: 'what-to-return-on-the-first-pass',
       * })
       * ```
       *
       * @experimental
       */
      registerContextProviderAlpha(pluginProviderName, provider) {
        if (!isContextProviderPlugin(provider)) {
          throw new ToolkitError(`Object you gave me does not look like a ContextProviderPlugin: ${(0, import_util6.inspect)(provider)}`);
        }
        this.contextProviderPlugins[pluginProviderName] = provider;
      }
    };
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/plugin/mode.ts
var Mode;
var init_mode = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/plugin/mode.ts"() {
    "use strict";
    Mode = /* @__PURE__ */ ((Mode2) => {
      Mode2[Mode2["ForReading"] = 0] = "ForReading";
      Mode2[Mode2["ForWriting"] = 1] = "ForWriting";
      return Mode2;
    })(Mode || {});
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/plugin/index.ts
var plugin_exports = {};
__export(plugin_exports, {
  Mode: () => Mode,
  PluginHost: () => PluginHost,
  isContextProviderPlugin: () => isContextProviderPlugin
});
var init_plugin2 = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/plugin/index.ts"() {
    "use strict";
    init_plugin();
    init_mode();
    init_context_provider_plugin();
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/deployments/asset-publishing.ts
async function publishAssets(manifest, sdk, targetEnv, options, ioHelper) {
  if (targetEnv.account === void 0 || targetEnv.account === import_cx_api2.UNKNOWN_ACCOUNT || targetEnv.region === void 0 || targetEnv.account === import_cx_api2.UNKNOWN_REGION) {
    throw new ToolkitError(`Asset publishing requires resolved account and region, got ${JSON.stringify(targetEnv)}`);
  }
  const publisher = new import_cdk_assets_lib2.AssetPublishing(manifest, {
    aws: new PublishingAws(sdk, targetEnv),
    progressListener: new PublishingProgressListener(ioHelper),
    throwOnError: false,
    publishInParallel: options.parallel ?? true,
    buildAssets: true,
    publishAssets: true,
    quiet: false
  });
  await publisher.publish({ allowCrossAccount: options.allowCrossAccount });
  if (publisher.hasFailures) {
    throw new ToolkitError("Failed to publish one or more assets. See the error messages above for more information.");
  }
}
var import_cdk_assets_lib2, import_cx_api2, PublishingAws, EVENT_TO_MSG_LEVEL, BasePublishProgressListener, PublishingProgressListener;
var init_asset_publishing = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/deployments/asset-publishing.ts"() {
    "use strict";
    import_cdk_assets_lib2 = __toESM(require_lib6());
    import_cx_api2 = __toESM(require_lib3());
    init_toolkit_error();
    init_plugin2();
    __name(publishAssets, "publishAssets");
    PublishingAws = class {
      constructor(aws, targetEnv) {
        this.aws = aws;
        this.targetEnv = targetEnv;
      }
      static {
        __name(this, "PublishingAws");
      }
      sdkCache = /* @__PURE__ */ new Map();
      async discoverPartition() {
        return await this.aws.baseCredentialsPartition(this.targetEnv, 1 /* ForWriting */) ?? "aws";
      }
      async discoverDefaultRegion() {
        return this.targetEnv.region;
      }
      async discoverCurrentAccount() {
        const account = await this.aws.defaultAccount();
        return account ?? {
          accountId: "<unknown account>",
          partition: "aws"
        };
      }
      async discoverTargetAccount(options) {
        return (await this.sdk(options)).currentAccount();
      }
      async s3Client(options) {
        return (await this.sdk(options)).s3();
      }
      async ecrClient(options) {
        return (await this.sdk(options)).ecr();
      }
      async secretsManagerClient(options) {
        return (await this.sdk(options)).secretsManager();
      }
      /**
       * Get an SDK appropriate for the given client options
       */
      async sdk(options) {
        const env2 = {
          ...this.targetEnv,
          region: options.region ?? this.targetEnv.region
          // Default: same region as the stack
        };
        const cacheKeyMap = {
          env: env2,
          // region, name, account
          assumeRuleArn: options.assumeRoleArn,
          assumeRoleExternalId: options.assumeRoleExternalId,
          quiet: options.quiet
        };
        if (options.assumeRoleAdditionalOptions) {
          cacheKeyMap.assumeRoleAdditionalOptions = options.assumeRoleAdditionalOptions;
        }
        const cacheKey = JSON.stringify(cacheKeyMap);
        const maybeSdk = this.sdkCache.get(cacheKey);
        if (maybeSdk) {
          return maybeSdk;
        }
        const sdk = (await this.aws.forEnvironment(
          env2,
          1 /* ForWriting */,
          {
            assumeRoleArn: options.assumeRoleArn,
            assumeRoleExternalId: options.assumeRoleExternalId,
            assumeRoleAdditionalOptions: options.assumeRoleAdditionalOptions
          },
          options.quiet
        )).sdk;
        this.sdkCache.set(cacheKey, sdk);
        return sdk;
      }
    };
    EVENT_TO_MSG_LEVEL = {
      build: "debug",
      cached: "debug",
      check: "debug",
      debug: "debug",
      fail: "error",
      found: "debug",
      start: "info",
      success: "info",
      upload: "debug",
      shell_open: "debug",
      shell_stderr: false,
      shell_stdout: false,
      shell_close: false
    };
    BasePublishProgressListener = class {
      static {
        __name(this, "BasePublishProgressListener");
      }
      ioHelper;
      constructor(ioHelper) {
        this.ioHelper = ioHelper;
      }
      onPublishEvent(type, event) {
        const level = EVENT_TO_MSG_LEVEL[type];
        if (level) {
          void this.ioHelper.defaults[level](this.getMessage(type, event));
        }
      }
    };
    PublishingProgressListener = class extends BasePublishProgressListener {
      static {
        __name(this, "PublishingProgressListener");
      }
      getMessage(type, event) {
        return `[${event.percentComplete}%] ${type}: ${event.message}`;
      }
    };
  }
});

// ../../node_modules/@aws-sdk/client-cloudformation/dist-cjs/auth/httpAuthSchemeProvider.js
var require_httpAuthSchemeProvider7 = __commonJS({
  "../../node_modules/@aws-sdk/client-cloudformation/dist-cjs/auth/httpAuthSchemeProvider.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.resolveHttpAuthSchemeConfig = exports2.defaultCloudFormationHttpAuthSchemeProvider = exports2.defaultCloudFormationHttpAuthSchemeParametersProvider = void 0;
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var util_middleware_1 = require_dist_cjs6();
    var defaultCloudFormationHttpAuthSchemeParametersProvider = /* @__PURE__ */ __name(async (config, context, input) => {
      return {
        operation: (0, util_middleware_1.getSmithyContext)(context).operation,
        region: await (0, util_middleware_1.normalizeProvider)(config.region)() || (() => {
          throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
        })()
      };
    }, "defaultCloudFormationHttpAuthSchemeParametersProvider");
    exports2.defaultCloudFormationHttpAuthSchemeParametersProvider = defaultCloudFormationHttpAuthSchemeParametersProvider;
    function createAwsAuthSigv4HttpAuthOption3(authParameters) {
      return {
        schemeId: "aws.auth#sigv4",
        signingProperties: {
          name: "cloudformation",
          region: authParameters.region
        },
        propertiesExtractor: /* @__PURE__ */ __name((config, context) => ({
          signingProperties: {
            config,
            context
          }
        }), "propertiesExtractor")
      };
    }
    __name(createAwsAuthSigv4HttpAuthOption3, "createAwsAuthSigv4HttpAuthOption");
    var defaultCloudFormationHttpAuthSchemeProvider = /* @__PURE__ */ __name((authParameters) => {
      const options = [];
      switch (authParameters.operation) {
        default: {
          options.push(createAwsAuthSigv4HttpAuthOption3(authParameters));
        }
      }
      return options;
    }, "defaultCloudFormationHttpAuthSchemeProvider");
    exports2.defaultCloudFormationHttpAuthSchemeProvider = defaultCloudFormationHttpAuthSchemeProvider;
    var resolveHttpAuthSchemeConfig3 = /* @__PURE__ */ __name((config) => {
      const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
      return Object.assign(config_0, {
        authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? [])
      });
    }, "resolveHttpAuthSchemeConfig");
    exports2.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig3;
  }
});

// ../../node_modules/@aws-sdk/client-cloudformation/package.json
var require_package7 = __commonJS({
  "../../node_modules/@aws-sdk/client-cloudformation/package.json"(exports2, module2) {
    module2.exports = {
      name: "@aws-sdk/client-cloudformation",
      description: "AWS SDK for JavaScript Cloudformation Client for Node.js, Browser and React Native",
      version: "3.879.0",
      scripts: {
        build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
        "build:cjs": "node ../../scripts/compilation/inline client-cloudformation",
        "build:es": "tsc -p tsconfig.es.json",
        "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
        "build:types": "tsc -p tsconfig.types.json",
        "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
        clean: "rimraf ./dist-* && rimraf *.tsbuildinfo",
        "extract:docs": "api-extractor run --local",
        "generate:client": "node ../../scripts/generate-clients/single-service --solo cloudformation"
      },
      main: "./dist-cjs/index.js",
      types: "./dist-types/index.d.ts",
      module: "./dist-es/index.js",
      sideEffects: false,
      dependencies: {
        "@aws-crypto/sha256-browser": "5.2.0",
        "@aws-crypto/sha256-js": "5.2.0",
        "@aws-sdk/core": "3.879.0",
        "@aws-sdk/credential-provider-node": "3.879.0",
        "@aws-sdk/middleware-host-header": "3.873.0",
        "@aws-sdk/middleware-logger": "3.876.0",
        "@aws-sdk/middleware-recursion-detection": "3.873.0",
        "@aws-sdk/middleware-user-agent": "3.879.0",
        "@aws-sdk/region-config-resolver": "3.873.0",
        "@aws-sdk/types": "3.862.0",
        "@aws-sdk/util-endpoints": "3.879.0",
        "@aws-sdk/util-user-agent-browser": "3.873.0",
        "@aws-sdk/util-user-agent-node": "3.879.0",
        "@smithy/config-resolver": "^4.1.5",
        "@smithy/core": "^3.9.0",
        "@smithy/fetch-http-handler": "^5.1.1",
        "@smithy/hash-node": "^4.0.5",
        "@smithy/invalid-dependency": "^4.0.5",
        "@smithy/middleware-content-length": "^4.0.5",
        "@smithy/middleware-endpoint": "^4.1.19",
        "@smithy/middleware-retry": "^4.1.20",
        "@smithy/middleware-serde": "^4.0.9",
        "@smithy/middleware-stack": "^4.0.5",
        "@smithy/node-config-provider": "^4.1.4",
        "@smithy/node-http-handler": "^4.1.1",
        "@smithy/protocol-http": "^5.1.3",
        "@smithy/smithy-client": "^4.5.0",
        "@smithy/types": "^4.3.2",
        "@smithy/url-parser": "^4.0.5",
        "@smithy/util-base64": "^4.0.0",
        "@smithy/util-body-length-browser": "^4.0.0",
        "@smithy/util-body-length-node": "^4.0.0",
        "@smithy/util-defaults-mode-browser": "^4.0.27",
        "@smithy/util-defaults-mode-node": "^4.0.27",
        "@smithy/util-endpoints": "^3.0.7",
        "@smithy/util-middleware": "^4.0.5",
        "@smithy/util-retry": "^4.0.7",
        "@smithy/util-utf8": "^4.0.0",
        "@smithy/util-waiter": "^4.0.7",
        "@types/uuid": "^9.0.1",
        tslib: "^2.6.2",
        uuid: "^9.0.1"
      },
      devDependencies: {
        "@tsconfig/node18": "18.2.4",
        "@types/node": "^18.19.69",
        concurrently: "7.0.0",
        "downlevel-dts": "0.10.1",
        rimraf: "3.0.2",
        typescript: "~5.8.3"
      },
      engines: {
        node: ">=18.0.0"
      },
      typesVersions: {
        "<4.0": {
          "dist-types/*": [
            "dist-types/ts3.4/*"
          ]
        }
      },
      files: [
        "dist-*/**"
      ],
      author: {
        name: "AWS SDK for JavaScript Team",
        url: "https://aws.amazon.com/javascript/"
      },
      license: "Apache-2.0",
      browser: {
        "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
      },
      "react-native": {
        "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
      },
      homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-cloudformation",
      repository: {
        type: "git",
        url: "https://github.com/aws/aws-sdk-js-v3.git",
        directory: "clients/client-cloudformation"
      }
    };
  }
});

// ../../node_modules/@aws-sdk/client-cloudformation/dist-cjs/endpoint/ruleset.js
var require_ruleset7 = __commonJS({
  "../../node_modules/@aws-sdk/client-cloudformation/dist-cjs/endpoint/ruleset.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.ruleSet = void 0;
    var u3 = "required";
    var v6 = "fn";
    var w3 = "argv";
    var x3 = "ref";
    var a3 = true;
    var b3 = "isSet";
    var c3 = "booleanEquals";
    var d3 = "error";
    var e3 = "endpoint";
    var f3 = "tree";
    var g3 = "PartitionResult";
    var h3 = "getAttr";
    var i3 = { [u3]: false, "type": "String" };
    var j3 = { [u3]: true, "default": false, "type": "Boolean" };
    var k3 = { [x3]: "Endpoint" };
    var l3 = { [v6]: c3, [w3]: [{ [x3]: "UseFIPS" }, true] };
    var m3 = { [v6]: c3, [w3]: [{ [x3]: "UseDualStack" }, true] };
    var n3 = {};
    var o3 = { [v6]: h3, [w3]: [{ [x3]: g3 }, "supportsFIPS"] };
    var p3 = { [x3]: g3 };
    var q3 = { [v6]: c3, [w3]: [true, { [v6]: h3, [w3]: [p3, "supportsDualStack"] }] };
    var r3 = [l3];
    var s3 = [m3];
    var t3 = [{ [x3]: "Region" }];
    var _data3 = { version: "1.0", parameters: { Region: i3, UseDualStack: j3, UseFIPS: j3, Endpoint: i3 }, rules: [{ conditions: [{ [v6]: b3, [w3]: [k3] }], rules: [{ conditions: r3, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d3 }, { conditions: s3, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d3 }, { endpoint: { url: k3, properties: n3, headers: n3 }, type: e3 }], type: f3 }, { conditions: [{ [v6]: b3, [w3]: t3 }], rules: [{ conditions: [{ [v6]: "aws.partition", [w3]: t3, assign: g3 }], rules: [{ conditions: [l3, m3], rules: [{ conditions: [{ [v6]: c3, [w3]: [a3, o3] }, q3], rules: [{ endpoint: { url: "https://cloudformation-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n3, headers: n3 }, type: e3 }], type: f3 }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d3 }], type: f3 }, { conditions: r3, rules: [{ conditions: [{ [v6]: c3, [w3]: [o3, a3] }], rules: [{ conditions: [{ [v6]: "stringEquals", [w3]: [{ [v6]: h3, [w3]: [p3, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://cloudformation.{Region}.amazonaws.com", properties: n3, headers: n3 }, type: e3 }, { endpoint: { url: "https://cloudformation-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n3, headers: n3 }, type: e3 }], type: f3 }, { error: "FIPS is enabled but this partition does not support FIPS", type: d3 }], type: f3 }, { conditions: s3, rules: [{ conditions: [q3], rules: [{ endpoint: { url: "https://cloudformation.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n3, headers: n3 }, type: e3 }], type: f3 }, { error: "DualStack is enabled but this partition does not support DualStack", type: d3 }], type: f3 }, { endpoint: { url: "https://cloudformation.{Region}.{PartitionResult#dnsSuffix}", properties: n3, headers: n3 }, type: e3 }], type: f3 }], type: f3 }, { error: "Invalid Configuration: Missing Region", type: d3 }] };
    exports2.ruleSet = _data3;
  }
});

// ../../node_modules/@aws-sdk/client-cloudformation/dist-cjs/endpoint/endpointResolver.js
var require_endpointResolver7 = __commonJS({
  "../../node_modules/@aws-sdk/client-cloudformation/dist-cjs/endpoint/endpointResolver.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.defaultEndpointResolver = void 0;
    var util_endpoints_1 = require_dist_cjs21();
    var util_endpoints_2 = require_dist_cjs18();
    var ruleset_1 = require_ruleset7();
    var cache3 = new util_endpoints_2.EndpointCache({
      size: 50,
      params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"]
    });
    var defaultEndpointResolver3 = /* @__PURE__ */ __name((endpointParams, context = {}) => {
      return cache3.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
        endpointParams,
        logger: context.logger
      }));
    }, "defaultEndpointResolver");
    exports2.defaultEndpointResolver = defaultEndpointResolver3;
    util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
  }
});

// ../../node_modules/@aws-sdk/client-cloudformation/dist-cjs/runtimeConfig.shared.js
var require_runtimeConfig_shared8 = __commonJS({
  "../../node_modules/@aws-sdk/client-cloudformation/dist-cjs/runtimeConfig.shared.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.getRuntimeConfig = void 0;
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var smithy_client_1 = require_dist_cjs26();
    var url_parser_1 = require_dist_cjs20();
    var util_base64_1 = require_dist_cjs11();
    var util_utf8_1 = require_dist_cjs10();
    var httpAuthSchemeProvider_1 = require_httpAuthSchemeProvider7();
    var endpointResolver_1 = require_endpointResolver7();
    var getRuntimeConfig5 = /* @__PURE__ */ __name((config) => {
      return {
        apiVersion: "2010-05-15",
        base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
        base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
        disableHostPrefix: config?.disableHostPrefix ?? false,
        endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
        extensions: config?.extensions ?? [],
        httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultCloudFormationHttpAuthSchemeProvider,
        httpAuthSchemes: config?.httpAuthSchemes ?? [
          {
            schemeId: "aws.auth#sigv4",
            identityProvider: /* @__PURE__ */ __name((ipc) => ipc.getIdentityProvider("aws.auth#sigv4"), "identityProvider"),
            signer: new core_1.AwsSdkSigV4Signer()
          }
        ],
        logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
        serviceId: config?.serviceId ?? "CloudFormation",
        urlParser: config?.urlParser ?? url_parser_1.parseUrl,
        utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
        utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8
      };
    }, "getRuntimeConfig");
    exports2.getRuntimeConfig = getRuntimeConfig5;
  }
});

// ../../node_modules/@aws-sdk/client-cloudformation/dist-cjs/runtimeConfig.js
var require_runtimeConfig8 = __commonJS({
  "../../node_modules/@aws-sdk/client-cloudformation/dist-cjs/runtimeConfig.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.getRuntimeConfig = void 0;
    var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
    var package_json_1 = tslib_1.__importDefault(require_package7());
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var credential_provider_node_1 = require_dist_cjs52();
    var util_user_agent_node_1 = require_dist_cjs41();
    var config_resolver_1 = require_dist_cjs30();
    var hash_node_1 = require_dist_cjs42();
    var middleware_retry_1 = require_dist_cjs37();
    var node_config_provider_1 = require_dist_cjs33();
    var node_http_handler_1 = require_dist_cjs14();
    var util_body_length_node_1 = require_dist_cjs43();
    var util_retry_1 = require_dist_cjs36();
    var runtimeConfig_shared_1 = require_runtimeConfig_shared8();
    var smithy_client_1 = require_dist_cjs26();
    var util_defaults_mode_node_1 = require_dist_cjs44();
    var smithy_client_2 = require_dist_cjs26();
    var getRuntimeConfig5 = /* @__PURE__ */ __name((config) => {
      (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
      const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
      const defaultConfigProvider = /* @__PURE__ */ __name(() => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode), "defaultConfigProvider");
      const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
      (0, core_1.emitWarningIfUnsupportedVersion)(process.version);
      const loaderConfig = {
        profile: config?.profile,
        logger: clientSharedValues.logger
      };
      return {
        ...clientSharedValues,
        ...config,
        runtime: "node",
        defaultsMode,
        authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
        bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
        credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
        defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
        maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
        region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
        requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
        retryMode: config?.retryMode ?? (0, node_config_provider_1.loadConfig)({
          ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
          default: /* @__PURE__ */ __name(async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE, "default")
        }, config),
        sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
        streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
        useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
        useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
        userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig)
      };
    }, "getRuntimeConfig");
    exports2.getRuntimeConfig = getRuntimeConfig5;
  }
});

// ../../node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js
var require_dist_cjs80 = __commonJS({
  "../../node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js"(exports2, module2) {
    "use strict";
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var index_exports = {};
    __export2(index_exports, {
      AccountFilterType: /* @__PURE__ */ __name(() => AccountFilterType, "AccountFilterType"),
      AccountGateStatus: /* @__PURE__ */ __name(() => AccountGateStatus, "AccountGateStatus"),
      ActivateOrganizationsAccessCommand: /* @__PURE__ */ __name(() => ActivateOrganizationsAccessCommand, "ActivateOrganizationsAccessCommand"),
      ActivateTypeCommand: /* @__PURE__ */ __name(() => ActivateTypeCommand, "ActivateTypeCommand"),
      AlreadyExistsException: /* @__PURE__ */ __name(() => AlreadyExistsException, "AlreadyExistsException"),
      AttributeChangeType: /* @__PURE__ */ __name(() => AttributeChangeType, "AttributeChangeType"),
      BatchDescribeTypeConfigurationsCommand: /* @__PURE__ */ __name(() => BatchDescribeTypeConfigurationsCommand, "BatchDescribeTypeConfigurationsCommand"),
      CFNRegistryException: /* @__PURE__ */ __name(() => CFNRegistryException, "CFNRegistryException"),
      CallAs: /* @__PURE__ */ __name(() => CallAs, "CallAs"),
      CancelUpdateStackCommand: /* @__PURE__ */ __name(() => CancelUpdateStackCommand, "CancelUpdateStackCommand"),
      Capability: /* @__PURE__ */ __name(() => Capability, "Capability"),
      Category: /* @__PURE__ */ __name(() => Category, "Category"),
      ChangeAction: /* @__PURE__ */ __name(() => ChangeAction, "ChangeAction"),
      ChangeSetHooksStatus: /* @__PURE__ */ __name(() => ChangeSetHooksStatus, "ChangeSetHooksStatus"),
      ChangeSetNotFoundException: /* @__PURE__ */ __name(() => ChangeSetNotFoundException, "ChangeSetNotFoundException"),
      ChangeSetStatus: /* @__PURE__ */ __name(() => ChangeSetStatus2, "ChangeSetStatus"),
      ChangeSetType: /* @__PURE__ */ __name(() => ChangeSetType, "ChangeSetType"),
      ChangeSource: /* @__PURE__ */ __name(() => ChangeSource, "ChangeSource"),
      ChangeType: /* @__PURE__ */ __name(() => ChangeType, "ChangeType"),
      CloudFormation: /* @__PURE__ */ __name(() => CloudFormation, "CloudFormation"),
      CloudFormationClient: /* @__PURE__ */ __name(() => CloudFormationClient2, "CloudFormationClient"),
      CloudFormationServiceException: /* @__PURE__ */ __name(() => CloudFormationServiceException, "CloudFormationServiceException"),
      ConcurrencyMode: /* @__PURE__ */ __name(() => ConcurrencyMode, "ConcurrencyMode"),
      ConcurrentResourcesLimitExceededException: /* @__PURE__ */ __name(() => ConcurrentResourcesLimitExceededException, "ConcurrentResourcesLimitExceededException"),
      ContinueUpdateRollbackCommand: /* @__PURE__ */ __name(() => ContinueUpdateRollbackCommand2, "ContinueUpdateRollbackCommand"),
      CreateChangeSetCommand: /* @__PURE__ */ __name(() => CreateChangeSetCommand2, "CreateChangeSetCommand"),
      CreateGeneratedTemplateCommand: /* @__PURE__ */ __name(() => CreateGeneratedTemplateCommand2, "CreateGeneratedTemplateCommand"),
      CreateStackCommand: /* @__PURE__ */ __name(() => CreateStackCommand2, "CreateStackCommand"),
      CreateStackInstancesCommand: /* @__PURE__ */ __name(() => CreateStackInstancesCommand, "CreateStackInstancesCommand"),
      CreateStackRefactorCommand: /* @__PURE__ */ __name(() => CreateStackRefactorCommand2, "CreateStackRefactorCommand"),
      CreateStackSetCommand: /* @__PURE__ */ __name(() => CreateStackSetCommand, "CreateStackSetCommand"),
      CreatedButModifiedException: /* @__PURE__ */ __name(() => CreatedButModifiedException, "CreatedButModifiedException"),
      DeactivateOrganizationsAccessCommand: /* @__PURE__ */ __name(() => DeactivateOrganizationsAccessCommand, "DeactivateOrganizationsAccessCommand"),
      DeactivateTypeCommand: /* @__PURE__ */ __name(() => DeactivateTypeCommand, "DeactivateTypeCommand"),
      DeleteChangeSetCommand: /* @__PURE__ */ __name(() => DeleteChangeSetCommand2, "DeleteChangeSetCommand"),
      DeleteGeneratedTemplateCommand: /* @__PURE__ */ __name(() => DeleteGeneratedTemplateCommand2, "DeleteGeneratedTemplateCommand"),
      DeleteStackCommand: /* @__PURE__ */ __name(() => DeleteStackCommand2, "DeleteStackCommand"),
      DeleteStackInstancesCommand: /* @__PURE__ */ __name(() => DeleteStackInstancesCommand, "DeleteStackInstancesCommand"),
      DeleteStackSetCommand: /* @__PURE__ */ __name(() => DeleteStackSetCommand, "DeleteStackSetCommand"),
      DeletionMode: /* @__PURE__ */ __name(() => DeletionMode, "DeletionMode"),
      DeprecatedStatus: /* @__PURE__ */ __name(() => DeprecatedStatus, "DeprecatedStatus"),
      DeregisterTypeCommand: /* @__PURE__ */ __name(() => DeregisterTypeCommand, "DeregisterTypeCommand"),
      DescribeAccountLimitsCommand: /* @__PURE__ */ __name(() => DescribeAccountLimitsCommand, "DescribeAccountLimitsCommand"),
      DescribeChangeSetCommand: /* @__PURE__ */ __name(() => DescribeChangeSetCommand2, "DescribeChangeSetCommand"),
      DescribeChangeSetHooksCommand: /* @__PURE__ */ __name(() => DescribeChangeSetHooksCommand, "DescribeChangeSetHooksCommand"),
      DescribeGeneratedTemplateCommand: /* @__PURE__ */ __name(() => DescribeGeneratedTemplateCommand2, "DescribeGeneratedTemplateCommand"),
      DescribeOrganizationsAccessCommand: /* @__PURE__ */ __name(() => DescribeOrganizationsAccessCommand, "DescribeOrganizationsAccessCommand"),
      DescribePublisherCommand: /* @__PURE__ */ __name(() => DescribePublisherCommand, "DescribePublisherCommand"),
      DescribeResourceScanCommand: /* @__PURE__ */ __name(() => DescribeResourceScanCommand2, "DescribeResourceScanCommand"),
      DescribeStackDriftDetectionStatusCommand: /* @__PURE__ */ __name(() => DescribeStackDriftDetectionStatusCommand2, "DescribeStackDriftDetectionStatusCommand"),
      DescribeStackEventsCommand: /* @__PURE__ */ __name(() => DescribeStackEventsCommand2, "DescribeStackEventsCommand"),
      DescribeStackInstanceCommand: /* @__PURE__ */ __name(() => DescribeStackInstanceCommand, "DescribeStackInstanceCommand"),
      DescribeStackRefactorCommand: /* @__PURE__ */ __name(() => DescribeStackRefactorCommand, "DescribeStackRefactorCommand"),
      DescribeStackResourceCommand: /* @__PURE__ */ __name(() => DescribeStackResourceCommand, "DescribeStackResourceCommand"),
      DescribeStackResourceDriftsCommand: /* @__PURE__ */ __name(() => DescribeStackResourceDriftsCommand2, "DescribeStackResourceDriftsCommand"),
      DescribeStackResourcesCommand: /* @__PURE__ */ __name(() => DescribeStackResourcesCommand2, "DescribeStackResourcesCommand"),
      DescribeStackSetCommand: /* @__PURE__ */ __name(() => DescribeStackSetCommand, "DescribeStackSetCommand"),
      DescribeStackSetOperationCommand: /* @__PURE__ */ __name(() => DescribeStackSetOperationCommand, "DescribeStackSetOperationCommand"),
      DescribeStacksCommand: /* @__PURE__ */ __name(() => DescribeStacksCommand2, "DescribeStacksCommand"),
      DescribeTypeCommand: /* @__PURE__ */ __name(() => DescribeTypeCommand, "DescribeTypeCommand"),
      DescribeTypeRegistrationCommand: /* @__PURE__ */ __name(() => DescribeTypeRegistrationCommand, "DescribeTypeRegistrationCommand"),
      DetailedStatus: /* @__PURE__ */ __name(() => DetailedStatus, "DetailedStatus"),
      DetectStackDriftCommand: /* @__PURE__ */ __name(() => DetectStackDriftCommand2, "DetectStackDriftCommand"),
      DetectStackResourceDriftCommand: /* @__PURE__ */ __name(() => DetectStackResourceDriftCommand2, "DetectStackResourceDriftCommand"),
      DetectStackSetDriftCommand: /* @__PURE__ */ __name(() => DetectStackSetDriftCommand, "DetectStackSetDriftCommand"),
      DifferenceType: /* @__PURE__ */ __name(() => DifferenceType, "DifferenceType"),
      EstimateTemplateCostCommand: /* @__PURE__ */ __name(() => EstimateTemplateCostCommand, "EstimateTemplateCostCommand"),
      EvaluationType: /* @__PURE__ */ __name(() => EvaluationType, "EvaluationType"),
      ExecuteChangeSetCommand: /* @__PURE__ */ __name(() => ExecuteChangeSetCommand2, "ExecuteChangeSetCommand"),
      ExecuteStackRefactorCommand: /* @__PURE__ */ __name(() => ExecuteStackRefactorCommand2, "ExecuteStackRefactorCommand"),
      ExecutionStatus: /* @__PURE__ */ __name(() => ExecutionStatus, "ExecutionStatus"),
      GeneratedTemplateDeletionPolicy: /* @__PURE__ */ __name(() => GeneratedTemplateDeletionPolicy, "GeneratedTemplateDeletionPolicy"),
      GeneratedTemplateNotFoundException: /* @__PURE__ */ __name(() => GeneratedTemplateNotFoundException, "GeneratedTemplateNotFoundException"),
      GeneratedTemplateResourceStatus: /* @__PURE__ */ __name(() => GeneratedTemplateResourceStatus, "GeneratedTemplateResourceStatus"),
      GeneratedTemplateStatus: /* @__PURE__ */ __name(() => GeneratedTemplateStatus, "GeneratedTemplateStatus"),
      GeneratedTemplateUpdateReplacePolicy: /* @__PURE__ */ __name(() => GeneratedTemplateUpdateReplacePolicy, "GeneratedTemplateUpdateReplacePolicy"),
      GetGeneratedTemplateCommand: /* @__PURE__ */ __name(() => GetGeneratedTemplateCommand2, "GetGeneratedTemplateCommand"),
      GetStackPolicyCommand: /* @__PURE__ */ __name(() => GetStackPolicyCommand, "GetStackPolicyCommand"),
      GetTemplateCommand: /* @__PURE__ */ __name(() => GetTemplateCommand2, "GetTemplateCommand"),
      GetTemplateSummaryCommand: /* @__PURE__ */ __name(() => GetTemplateSummaryCommand2, "GetTemplateSummaryCommand"),
      HandlerErrorCode: /* @__PURE__ */ __name(() => HandlerErrorCode, "HandlerErrorCode"),
      HookFailureMode: /* @__PURE__ */ __name(() => HookFailureMode, "HookFailureMode"),
      HookInvocationPoint: /* @__PURE__ */ __name(() => HookInvocationPoint, "HookInvocationPoint"),
      HookResultNotFoundException: /* @__PURE__ */ __name(() => HookResultNotFoundException, "HookResultNotFoundException"),
      HookStatus: /* @__PURE__ */ __name(() => HookStatus, "HookStatus"),
      HookTargetType: /* @__PURE__ */ __name(() => HookTargetType, "HookTargetType"),
      IdentityProvider: /* @__PURE__ */ __name(() => IdentityProvider, "IdentityProvider"),
      ImportStacksToStackSetCommand: /* @__PURE__ */ __name(() => ImportStacksToStackSetCommand, "ImportStacksToStackSetCommand"),
      InsufficientCapabilitiesException: /* @__PURE__ */ __name(() => InsufficientCapabilitiesException, "InsufficientCapabilitiesException"),
      InvalidChangeSetStatusException: /* @__PURE__ */ __name(() => InvalidChangeSetStatusException, "InvalidChangeSetStatusException"),
      InvalidOperationException: /* @__PURE__ */ __name(() => InvalidOperationException, "InvalidOperationException"),
      InvalidStateTransitionException: /* @__PURE__ */ __name(() => InvalidStateTransitionException, "InvalidStateTransitionException"),
      LimitExceededException: /* @__PURE__ */ __name(() => LimitExceededException, "LimitExceededException"),
      ListChangeSetsCommand: /* @__PURE__ */ __name(() => ListChangeSetsCommand, "ListChangeSetsCommand"),
      ListExportsCommand: /* @__PURE__ */ __name(() => ListExportsCommand2, "ListExportsCommand"),
      ListGeneratedTemplatesCommand: /* @__PURE__ */ __name(() => ListGeneratedTemplatesCommand, "ListGeneratedTemplatesCommand"),
      ListHookResultsCommand: /* @__PURE__ */ __name(() => ListHookResultsCommand, "ListHookResultsCommand"),
      ListHookResultsTargetType: /* @__PURE__ */ __name(() => ListHookResultsTargetType, "ListHookResultsTargetType"),
      ListImportsCommand: /* @__PURE__ */ __name(() => ListImportsCommand, "ListImportsCommand"),
      ListResourceScanRelatedResourcesCommand: /* @__PURE__ */ __name(() => ListResourceScanRelatedResourcesCommand2, "ListResourceScanRelatedResourcesCommand"),
      ListResourceScanResourcesCommand: /* @__PURE__ */ __name(() => ListResourceScanResourcesCommand2, "ListResourceScanResourcesCommand"),
      ListResourceScansCommand: /* @__PURE__ */ __name(() => ListResourceScansCommand2, "ListResourceScansCommand"),
      ListStackInstanceResourceDriftsCommand: /* @__PURE__ */ __name(() => ListStackInstanceResourceDriftsCommand, "ListStackInstanceResourceDriftsCommand"),
      ListStackInstancesCommand: /* @__PURE__ */ __name(() => ListStackInstancesCommand, "ListStackInstancesCommand"),
      ListStackRefactorActionsCommand: /* @__PURE__ */ __name(() => ListStackRefactorActionsCommand, "ListStackRefactorActionsCommand"),
      ListStackRefactorsCommand: /* @__PURE__ */ __name(() => ListStackRefactorsCommand, "ListStackRefactorsCommand"),
      ListStackResourcesCommand: /* @__PURE__ */ __name(() => ListStackResourcesCommand, "ListStackResourcesCommand"),
      ListStackSetAutoDeploymentTargetsCommand: /* @__PURE__ */ __name(() => ListStackSetAutoDeploymentTargetsCommand, "ListStackSetAutoDeploymentTargetsCommand"),
      ListStackSetOperationResultsCommand: /* @__PURE__ */ __name(() => ListStackSetOperationResultsCommand, "ListStackSetOperationResultsCommand"),
      ListStackSetOperationsCommand: /* @__PURE__ */ __name(() => ListStackSetOperationsCommand, "ListStackSetOperationsCommand"),
      ListStackSetsCommand: /* @__PURE__ */ __name(() => ListStackSetsCommand, "ListStackSetsCommand"),
      ListStacksCommand: /* @__PURE__ */ __name(() => ListStacksCommand2, "ListStacksCommand"),
      ListTypeRegistrationsCommand: /* @__PURE__ */ __name(() => ListTypeRegistrationsCommand, "ListTypeRegistrationsCommand"),
      ListTypeVersionsCommand: /* @__PURE__ */ __name(() => ListTypeVersionsCommand, "ListTypeVersionsCommand"),
      ListTypesCommand: /* @__PURE__ */ __name(() => ListTypesCommand, "ListTypesCommand"),
      NameAlreadyExistsException: /* @__PURE__ */ __name(() => NameAlreadyExistsException, "NameAlreadyExistsException"),
      OnFailure: /* @__PURE__ */ __name(() => OnFailure, "OnFailure"),
      OnStackFailure: /* @__PURE__ */ __name(() => OnStackFailure, "OnStackFailure"),
      OperationIdAlreadyExistsException: /* @__PURE__ */ __name(() => OperationIdAlreadyExistsException, "OperationIdAlreadyExistsException"),
      OperationInProgressException: /* @__PURE__ */ __name(() => OperationInProgressException, "OperationInProgressException"),
      OperationNotFoundException: /* @__PURE__ */ __name(() => OperationNotFoundException, "OperationNotFoundException"),
      OperationResultFilterName: /* @__PURE__ */ __name(() => OperationResultFilterName, "OperationResultFilterName"),
      OperationStatus: /* @__PURE__ */ __name(() => OperationStatus, "OperationStatus"),
      OperationStatusCheckFailedException: /* @__PURE__ */ __name(() => OperationStatusCheckFailedException, "OperationStatusCheckFailedException"),
      OrganizationStatus: /* @__PURE__ */ __name(() => OrganizationStatus, "OrganizationStatus"),
      PermissionModels: /* @__PURE__ */ __name(() => PermissionModels, "PermissionModels"),
      PolicyAction: /* @__PURE__ */ __name(() => PolicyAction, "PolicyAction"),
      ProvisioningType: /* @__PURE__ */ __name(() => ProvisioningType, "ProvisioningType"),
      PublishTypeCommand: /* @__PURE__ */ __name(() => PublishTypeCommand, "PublishTypeCommand"),
      PublisherStatus: /* @__PURE__ */ __name(() => PublisherStatus, "PublisherStatus"),
      RecordHandlerProgressCommand: /* @__PURE__ */ __name(() => RecordHandlerProgressCommand, "RecordHandlerProgressCommand"),
      RegionConcurrencyType: /* @__PURE__ */ __name(() => RegionConcurrencyType, "RegionConcurrencyType"),
      RegisterPublisherCommand: /* @__PURE__ */ __name(() => RegisterPublisherCommand, "RegisterPublisherCommand"),
      RegisterTypeCommand: /* @__PURE__ */ __name(() => RegisterTypeCommand, "RegisterTypeCommand"),
      RegistrationStatus: /* @__PURE__ */ __name(() => RegistrationStatus, "RegistrationStatus"),
      RegistryType: /* @__PURE__ */ __name(() => RegistryType, "RegistryType"),
      Replacement: /* @__PURE__ */ __name(() => Replacement, "Replacement"),
      RequiresRecreation: /* @__PURE__ */ __name(() => RequiresRecreation, "RequiresRecreation"),
      ResourceAttribute: /* @__PURE__ */ __name(() => ResourceAttribute, "ResourceAttribute"),
      ResourceScanInProgressException: /* @__PURE__ */ __name(() => ResourceScanInProgressException, "ResourceScanInProgressException"),
      ResourceScanLimitExceededException: /* @__PURE__ */ __name(() => ResourceScanLimitExceededException, "ResourceScanLimitExceededException"),
      ResourceScanNotFoundException: /* @__PURE__ */ __name(() => ResourceScanNotFoundException, "ResourceScanNotFoundException"),
      ResourceScanStatus: /* @__PURE__ */ __name(() => ResourceScanStatus, "ResourceScanStatus"),
      ResourceSignalStatus: /* @__PURE__ */ __name(() => ResourceSignalStatus, "ResourceSignalStatus"),
      ResourceStatus: /* @__PURE__ */ __name(() => ResourceStatus, "ResourceStatus"),
      RollbackStackCommand: /* @__PURE__ */ __name(() => RollbackStackCommand2, "RollbackStackCommand"),
      ScanType: /* @__PURE__ */ __name(() => ScanType, "ScanType"),
      SetStackPolicyCommand: /* @__PURE__ */ __name(() => SetStackPolicyCommand, "SetStackPolicyCommand"),
      SetTypeConfigurationCommand: /* @__PURE__ */ __name(() => SetTypeConfigurationCommand, "SetTypeConfigurationCommand"),
      SetTypeDefaultVersionCommand: /* @__PURE__ */ __name(() => SetTypeDefaultVersionCommand, "SetTypeDefaultVersionCommand"),
      SignalResourceCommand: /* @__PURE__ */ __name(() => SignalResourceCommand, "SignalResourceCommand"),
      StackDriftDetectionStatus: /* @__PURE__ */ __name(() => StackDriftDetectionStatus, "StackDriftDetectionStatus"),
      StackDriftStatus: /* @__PURE__ */ __name(() => StackDriftStatus, "StackDriftStatus"),
      StackInstanceDetailedStatus: /* @__PURE__ */ __name(() => StackInstanceDetailedStatus, "StackInstanceDetailedStatus"),
      StackInstanceFilterName: /* @__PURE__ */ __name(() => StackInstanceFilterName, "StackInstanceFilterName"),
      StackInstanceNotFoundException: /* @__PURE__ */ __name(() => StackInstanceNotFoundException, "StackInstanceNotFoundException"),
      StackInstanceStatus: /* @__PURE__ */ __name(() => StackInstanceStatus, "StackInstanceStatus"),
      StackNotFoundException: /* @__PURE__ */ __name(() => StackNotFoundException, "StackNotFoundException"),
      StackRefactorActionEntity: /* @__PURE__ */ __name(() => StackRefactorActionEntity, "StackRefactorActionEntity"),
      StackRefactorActionType: /* @__PURE__ */ __name(() => StackRefactorActionType, "StackRefactorActionType"),
      StackRefactorDetection: /* @__PURE__ */ __name(() => StackRefactorDetection, "StackRefactorDetection"),
      StackRefactorExecutionStatus: /* @__PURE__ */ __name(() => StackRefactorExecutionStatus, "StackRefactorExecutionStatus"),
      StackRefactorNotFoundException: /* @__PURE__ */ __name(() => StackRefactorNotFoundException, "StackRefactorNotFoundException"),
      StackRefactorStatus: /* @__PURE__ */ __name(() => StackRefactorStatus, "StackRefactorStatus"),
      StackResourceDriftStatus: /* @__PURE__ */ __name(() => StackResourceDriftStatus2, "StackResourceDriftStatus"),
      StackSetDriftDetectionStatus: /* @__PURE__ */ __name(() => StackSetDriftDetectionStatus, "StackSetDriftDetectionStatus"),
      StackSetDriftStatus: /* @__PURE__ */ __name(() => StackSetDriftStatus, "StackSetDriftStatus"),
      StackSetNotEmptyException: /* @__PURE__ */ __name(() => StackSetNotEmptyException, "StackSetNotEmptyException"),
      StackSetNotFoundException: /* @__PURE__ */ __name(() => StackSetNotFoundException, "StackSetNotFoundException"),
      StackSetOperationAction: /* @__PURE__ */ __name(() => StackSetOperationAction, "StackSetOperationAction"),
      StackSetOperationResultStatus: /* @__PURE__ */ __name(() => StackSetOperationResultStatus, "StackSetOperationResultStatus"),
      StackSetOperationStatus: /* @__PURE__ */ __name(() => StackSetOperationStatus, "StackSetOperationStatus"),
      StackSetStatus: /* @__PURE__ */ __name(() => StackSetStatus, "StackSetStatus"),
      StackStatus: /* @__PURE__ */ __name(() => StackStatus2, "StackStatus"),
      StaleRequestException: /* @__PURE__ */ __name(() => StaleRequestException, "StaleRequestException"),
      StartResourceScanCommand: /* @__PURE__ */ __name(() => StartResourceScanCommand2, "StartResourceScanCommand"),
      StopStackSetOperationCommand: /* @__PURE__ */ __name(() => StopStackSetOperationCommand, "StopStackSetOperationCommand"),
      TemplateFormat: /* @__PURE__ */ __name(() => TemplateFormat, "TemplateFormat"),
      TemplateStage: /* @__PURE__ */ __name(() => TemplateStage, "TemplateStage"),
      TestTypeCommand: /* @__PURE__ */ __name(() => TestTypeCommand, "TestTypeCommand"),
      ThirdPartyType: /* @__PURE__ */ __name(() => ThirdPartyType, "ThirdPartyType"),
      TokenAlreadyExistsException: /* @__PURE__ */ __name(() => TokenAlreadyExistsException, "TokenAlreadyExistsException"),
      TypeConfigurationNotFoundException: /* @__PURE__ */ __name(() => TypeConfigurationNotFoundException, "TypeConfigurationNotFoundException"),
      TypeNotFoundException: /* @__PURE__ */ __name(() => TypeNotFoundException, "TypeNotFoundException"),
      TypeTestsStatus: /* @__PURE__ */ __name(() => TypeTestsStatus, "TypeTestsStatus"),
      UpdateGeneratedTemplateCommand: /* @__PURE__ */ __name(() => UpdateGeneratedTemplateCommand, "UpdateGeneratedTemplateCommand"),
      UpdateStackCommand: /* @__PURE__ */ __name(() => UpdateStackCommand2, "UpdateStackCommand"),
      UpdateStackInstancesCommand: /* @__PURE__ */ __name(() => UpdateStackInstancesCommand, "UpdateStackInstancesCommand"),
      UpdateStackSetCommand: /* @__PURE__ */ __name(() => UpdateStackSetCommand, "UpdateStackSetCommand"),
      UpdateTerminationProtectionCommand: /* @__PURE__ */ __name(() => UpdateTerminationProtectionCommand2, "UpdateTerminationProtectionCommand"),
      ValidateTemplateCommand: /* @__PURE__ */ __name(() => ValidateTemplateCommand, "ValidateTemplateCommand"),
      VersionBump: /* @__PURE__ */ __name(() => VersionBump, "VersionBump"),
      Visibility: /* @__PURE__ */ __name(() => Visibility, "Visibility"),
      WarningType: /* @__PURE__ */ __name(() => WarningType, "WarningType"),
      __Client: /* @__PURE__ */ __name(() => import_smithy_client28.Client, "__Client"),
      paginateDescribeAccountLimits: /* @__PURE__ */ __name(() => paginateDescribeAccountLimits, "paginateDescribeAccountLimits"),
      paginateDescribeStackEvents: /* @__PURE__ */ __name(() => paginateDescribeStackEvents, "paginateDescribeStackEvents"),
      paginateDescribeStackResourceDrifts: /* @__PURE__ */ __name(() => paginateDescribeStackResourceDrifts, "paginateDescribeStackResourceDrifts"),
      paginateDescribeStacks: /* @__PURE__ */ __name(() => paginateDescribeStacks, "paginateDescribeStacks"),
      paginateListChangeSets: /* @__PURE__ */ __name(() => paginateListChangeSets, "paginateListChangeSets"),
      paginateListExports: /* @__PURE__ */ __name(() => paginateListExports, "paginateListExports"),
      paginateListGeneratedTemplates: /* @__PURE__ */ __name(() => paginateListGeneratedTemplates, "paginateListGeneratedTemplates"),
      paginateListImports: /* @__PURE__ */ __name(() => paginateListImports, "paginateListImports"),
      paginateListResourceScanRelatedResources: /* @__PURE__ */ __name(() => paginateListResourceScanRelatedResources, "paginateListResourceScanRelatedResources"),
      paginateListResourceScanResources: /* @__PURE__ */ __name(() => paginateListResourceScanResources, "paginateListResourceScanResources"),
      paginateListResourceScans: /* @__PURE__ */ __name(() => paginateListResourceScans, "paginateListResourceScans"),
      paginateListStackInstances: /* @__PURE__ */ __name(() => paginateListStackInstances, "paginateListStackInstances"),
      paginateListStackRefactorActions: /* @__PURE__ */ __name(() => paginateListStackRefactorActions, "paginateListStackRefactorActions"),
      paginateListStackRefactors: /* @__PURE__ */ __name(() => paginateListStackRefactors, "paginateListStackRefactors"),
      paginateListStackResources: /* @__PURE__ */ __name(() => paginateListStackResources2, "paginateListStackResources"),
      paginateListStackSetOperationResults: /* @__PURE__ */ __name(() => paginateListStackSetOperationResults, "paginateListStackSetOperationResults"),
      paginateListStackSetOperations: /* @__PURE__ */ __name(() => paginateListStackSetOperations, "paginateListStackSetOperations"),
      paginateListStackSets: /* @__PURE__ */ __name(() => paginateListStackSets, "paginateListStackSets"),
      paginateListStacks: /* @__PURE__ */ __name(() => paginateListStacks2, "paginateListStacks"),
      paginateListTypeRegistrations: /* @__PURE__ */ __name(() => paginateListTypeRegistrations, "paginateListTypeRegistrations"),
      paginateListTypeVersions: /* @__PURE__ */ __name(() => paginateListTypeVersions, "paginateListTypeVersions"),
      paginateListTypes: /* @__PURE__ */ __name(() => paginateListTypes, "paginateListTypes"),
      waitForChangeSetCreateComplete: /* @__PURE__ */ __name(() => waitForChangeSetCreateComplete, "waitForChangeSetCreateComplete"),
      waitForStackCreateComplete: /* @__PURE__ */ __name(() => waitForStackCreateComplete, "waitForStackCreateComplete"),
      waitForStackDeleteComplete: /* @__PURE__ */ __name(() => waitForStackDeleteComplete, "waitForStackDeleteComplete"),
      waitForStackExists: /* @__PURE__ */ __name(() => waitForStackExists, "waitForStackExists"),
      waitForStackImportComplete: /* @__PURE__ */ __name(() => waitForStackImportComplete, "waitForStackImportComplete"),
      waitForStackRefactorCreateComplete: /* @__PURE__ */ __name(() => waitForStackRefactorCreateComplete, "waitForStackRefactorCreateComplete"),
      waitForStackRefactorExecuteComplete: /* @__PURE__ */ __name(() => waitForStackRefactorExecuteComplete, "waitForStackRefactorExecuteComplete"),
      waitForStackRollbackComplete: /* @__PURE__ */ __name(() => waitForStackRollbackComplete, "waitForStackRollbackComplete"),
      waitForStackUpdateComplete: /* @__PURE__ */ __name(() => waitForStackUpdateComplete, "waitForStackUpdateComplete"),
      waitForTypeRegistrationComplete: /* @__PURE__ */ __name(() => waitForTypeRegistrationComplete, "waitForTypeRegistrationComplete"),
      waitUntilChangeSetCreateComplete: /* @__PURE__ */ __name(() => waitUntilChangeSetCreateComplete, "waitUntilChangeSetCreateComplete"),
      waitUntilStackCreateComplete: /* @__PURE__ */ __name(() => waitUntilStackCreateComplete, "waitUntilStackCreateComplete"),
      waitUntilStackDeleteComplete: /* @__PURE__ */ __name(() => waitUntilStackDeleteComplete, "waitUntilStackDeleteComplete"),
      waitUntilStackExists: /* @__PURE__ */ __name(() => waitUntilStackExists, "waitUntilStackExists"),
      waitUntilStackImportComplete: /* @__PURE__ */ __name(() => waitUntilStackImportComplete, "waitUntilStackImportComplete"),
      waitUntilStackRefactorCreateComplete: /* @__PURE__ */ __name(() => waitUntilStackRefactorCreateComplete2, "waitUntilStackRefactorCreateComplete"),
      waitUntilStackRefactorExecuteComplete: /* @__PURE__ */ __name(() => waitUntilStackRefactorExecuteComplete2, "waitUntilStackRefactorExecuteComplete"),
      waitUntilStackRollbackComplete: /* @__PURE__ */ __name(() => waitUntilStackRollbackComplete, "waitUntilStackRollbackComplete"),
      waitUntilStackUpdateComplete: /* @__PURE__ */ __name(() => waitUntilStackUpdateComplete, "waitUntilStackUpdateComplete"),
      waitUntilTypeRegistrationComplete: /* @__PURE__ */ __name(() => waitUntilTypeRegistrationComplete, "waitUntilTypeRegistrationComplete")
    });
    module2.exports = __toCommonJS2(index_exports);
    var import_middleware_host_header3 = require_dist_cjs3();
    var import_middleware_logger3 = require_dist_cjs4();
    var import_middleware_recursion_detection3 = require_dist_cjs5();
    var import_middleware_user_agent3 = require_dist_cjs28();
    var import_config_resolver6 = require_dist_cjs30();
    var import_core17 = (init_dist_es(), __toCommonJS(dist_es_exports));
    var import_middleware_content_length3 = require_dist_cjs31();
    var import_middleware_endpoint8 = require_dist_cjs34();
    var import_middleware_retry5 = require_dist_cjs37();
    var import_httpAuthSchemeProvider5 = require_httpAuthSchemeProvider7();
    var resolveClientEndpointParameters3 = /* @__PURE__ */ __name2((options) => {
      return Object.assign(options, {
        useDualstackEndpoint: options.useDualstackEndpoint ?? false,
        useFipsEndpoint: options.useFipsEndpoint ?? false,
        defaultSigningName: "cloudformation"
      });
    }, "resolveClientEndpointParameters");
    var commonParams3 = {
      UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
      Endpoint: { type: "builtInParams", name: "endpoint" },
      Region: { type: "builtInParams", name: "region" },
      UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
    };
    var import_runtimeConfig5 = require_runtimeConfig8();
    var import_region_config_resolver3 = require_dist_cjs45();
    var import_protocol_http16 = require_dist_cjs2();
    var import_smithy_client28 = require_dist_cjs26();
    var getHttpAuthExtensionConfiguration3 = /* @__PURE__ */ __name2((runtimeConfig) => {
      const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
      let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
      let _credentials = runtimeConfig.credentials;
      return {
        setHttpAuthScheme(httpAuthScheme) {
          const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
          if (index === -1) {
            _httpAuthSchemes.push(httpAuthScheme);
          } else {
            _httpAuthSchemes.splice(index, 1, httpAuthScheme);
          }
        },
        httpAuthSchemes() {
          return _httpAuthSchemes;
        },
        setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
          _httpAuthSchemeProvider = httpAuthSchemeProvider;
        },
        httpAuthSchemeProvider() {
          return _httpAuthSchemeProvider;
        },
        setCredentials(credentials) {
          _credentials = credentials;
        },
        credentials() {
          return _credentials;
        }
      };
    }, "getHttpAuthExtensionConfiguration");
    var resolveHttpAuthRuntimeConfig3 = /* @__PURE__ */ __name2((config) => {
      return {
        httpAuthSchemes: config.httpAuthSchemes(),
        httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
        credentials: config.credentials()
      };
    }, "resolveHttpAuthRuntimeConfig");
    var resolveRuntimeExtensions3 = /* @__PURE__ */ __name2((runtimeConfig, extensions) => {
      const extensionConfiguration = Object.assign(
        (0, import_region_config_resolver3.getAwsRegionExtensionConfiguration)(runtimeConfig),
        (0, import_smithy_client28.getDefaultExtensionConfiguration)(runtimeConfig),
        (0, import_protocol_http16.getHttpHandlerExtensionConfiguration)(runtimeConfig),
        getHttpAuthExtensionConfiguration3(runtimeConfig)
      );
      extensions.forEach((extension) => extension.configure(extensionConfiguration));
      return Object.assign(
        runtimeConfig,
        (0, import_region_config_resolver3.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
        (0, import_smithy_client28.resolveDefaultRuntimeConfig)(extensionConfiguration),
        (0, import_protocol_http16.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
        resolveHttpAuthRuntimeConfig3(extensionConfiguration)
      );
    }, "resolveRuntimeExtensions");
    var CloudFormationClient2 = class extends import_smithy_client28.Client {
      static {
        __name(this, "CloudFormationClient");
      }
      static {
        __name2(this, "CloudFormationClient");
      }
      /**
       * The resolved configuration of CloudFormationClient class. This is resolved and normalized from the {@link CloudFormationClientConfig | constructor configuration interface}.
       */
      config;
      constructor(...[configuration]) {
        const _config_0 = (0, import_runtimeConfig5.getRuntimeConfig)(configuration || {});
        super(_config_0);
        this.initConfig = _config_0;
        const _config_1 = resolveClientEndpointParameters3(_config_0);
        const _config_2 = (0, import_middleware_user_agent3.resolveUserAgentConfig)(_config_1);
        const _config_3 = (0, import_middleware_retry5.resolveRetryConfig)(_config_2);
        const _config_4 = (0, import_config_resolver6.resolveRegionConfig)(_config_3);
        const _config_5 = (0, import_middleware_host_header3.resolveHostHeaderConfig)(_config_4);
        const _config_6 = (0, import_middleware_endpoint8.resolveEndpointConfig)(_config_5);
        const _config_7 = (0, import_httpAuthSchemeProvider5.resolveHttpAuthSchemeConfig)(_config_6);
        const _config_8 = resolveRuntimeExtensions3(_config_7, configuration?.extensions || []);
        this.config = _config_8;
        this.middlewareStack.use((0, import_middleware_user_agent3.getUserAgentPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_retry5.getRetryPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_content_length3.getContentLengthPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_host_header3.getHostHeaderPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_logger3.getLoggerPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_recursion_detection3.getRecursionDetectionPlugin)(this.config));
        this.middlewareStack.use(
          (0, import_core17.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
            httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider5.defaultCloudFormationHttpAuthSchemeParametersProvider,
            identityProviderConfigProvider: /* @__PURE__ */ __name2(async (config) => new import_core17.DefaultIdentityProviderConfig({
              "aws.auth#sigv4": config.credentials
            }), "identityProviderConfigProvider")
          })
        );
        this.middlewareStack.use((0, import_core17.getHttpSigningPlugin)(this.config));
      }
      /**
       * Destroy underlying resources, like sockets. It's usually not necessary to do this.
       * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
       * Otherwise, sockets might stay open for quite a long time before the server terminates them.
       */
      destroy() {
        super.destroy();
      }
    };
    var import_middleware_serde5 = require_dist_cjs7();
    var import_core22 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var import_uuid2 = (init_esm_node(), __toCommonJS(esm_node_exports));
    var CloudFormationServiceException = class _CloudFormationServiceException extends import_smithy_client28.ServiceException {
      static {
        __name(this, "_CloudFormationServiceException");
      }
      static {
        __name2(this, "CloudFormationServiceException");
      }
      /**
       * @internal
       */
      constructor(options) {
        super(options);
        Object.setPrototypeOf(this, _CloudFormationServiceException.prototype);
      }
    };
    var AccountFilterType = {
      DIFFERENCE: "DIFFERENCE",
      INTERSECTION: "INTERSECTION",
      NONE: "NONE",
      UNION: "UNION"
    };
    var AccountGateStatus = {
      FAILED: "FAILED",
      SKIPPED: "SKIPPED",
      SUCCEEDED: "SUCCEEDED"
    };
    var InvalidOperationException = class _InvalidOperationException extends CloudFormationServiceException {
      static {
        __name(this, "_InvalidOperationException");
      }
      static {
        __name2(this, "InvalidOperationException");
      }
      name = "InvalidOperationException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidOperationException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidOperationException.prototype);
        this.Message = opts.Message;
      }
    };
    var OperationNotFoundException = class _OperationNotFoundException extends CloudFormationServiceException {
      static {
        __name(this, "_OperationNotFoundException");
      }
      static {
        __name2(this, "OperationNotFoundException");
      }
      name = "OperationNotFoundException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "OperationNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _OperationNotFoundException.prototype);
        this.Message = opts.Message;
      }
    };
    var ThirdPartyType = {
      HOOK: "HOOK",
      MODULE: "MODULE",
      RESOURCE: "RESOURCE"
    };
    var VersionBump = {
      MAJOR: "MAJOR",
      MINOR: "MINOR"
    };
    var CFNRegistryException = class _CFNRegistryException extends CloudFormationServiceException {
      static {
        __name(this, "_CFNRegistryException");
      }
      static {
        __name2(this, "CFNRegistryException");
      }
      name = "CFNRegistryException";
      $fault = "client";
      /**
       * <p>A message with details about the error that occurred.</p>
       * @public
       */
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "CFNRegistryException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _CFNRegistryException.prototype);
        this.Message = opts.Message;
      }
    };
    var TypeNotFoundException = class _TypeNotFoundException extends CloudFormationServiceException {
      static {
        __name(this, "_TypeNotFoundException");
      }
      static {
        __name2(this, "TypeNotFoundException");
      }
      name = "TypeNotFoundException";
      $fault = "client";
      /**
       * <p>A message with details about the error that occurred.</p>
       * @public
       */
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "TypeNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _TypeNotFoundException.prototype);
        this.Message = opts.Message;
      }
    };
    var AlreadyExistsException = class _AlreadyExistsException extends CloudFormationServiceException {
      static {
        __name(this, "_AlreadyExistsException");
      }
      static {
        __name2(this, "AlreadyExistsException");
      }
      name = "AlreadyExistsException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "AlreadyExistsException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _AlreadyExistsException.prototype);
        this.Message = opts.Message;
      }
    };
    var AttributeChangeType = {
      Add: "Add",
      Modify: "Modify",
      Remove: "Remove"
    };
    var TypeConfigurationNotFoundException = class _TypeConfigurationNotFoundException extends CloudFormationServiceException {
      static {
        __name(this, "_TypeConfigurationNotFoundException");
      }
      static {
        __name2(this, "TypeConfigurationNotFoundException");
      }
      name = "TypeConfigurationNotFoundException";
      $fault = "client";
      /**
       * <p>A message with details about the error that occurred.</p>
       * @public
       */
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "TypeConfigurationNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _TypeConfigurationNotFoundException.prototype);
        this.Message = opts.Message;
      }
    };
    var CallAs = {
      DELEGATED_ADMIN: "DELEGATED_ADMIN",
      SELF: "SELF"
    };
    var TokenAlreadyExistsException = class _TokenAlreadyExistsException extends CloudFormationServiceException {
      static {
        __name(this, "_TokenAlreadyExistsException");
      }
      static {
        __name2(this, "TokenAlreadyExistsException");
      }
      name = "TokenAlreadyExistsException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "TokenAlreadyExistsException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _TokenAlreadyExistsException.prototype);
        this.Message = opts.Message;
      }
    };
    var Capability = {
      CAPABILITY_AUTO_EXPAND: "CAPABILITY_AUTO_EXPAND",
      CAPABILITY_IAM: "CAPABILITY_IAM",
      CAPABILITY_NAMED_IAM: "CAPABILITY_NAMED_IAM"
    };
    var Category = {
      ACTIVATED: "ACTIVATED",
      AWS_TYPES: "AWS_TYPES",
      REGISTERED: "REGISTERED",
      THIRD_PARTY: "THIRD_PARTY"
    };
    var ChangeAction = {
      Add: "Add",
      Dynamic: "Dynamic",
      Import: "Import",
      Modify: "Modify",
      Remove: "Remove"
    };
    var ChangeSource = {
      Automatic: "Automatic",
      DirectModification: "DirectModification",
      ParameterReference: "ParameterReference",
      ResourceAttribute: "ResourceAttribute",
      ResourceReference: "ResourceReference"
    };
    var EvaluationType = {
      Dynamic: "Dynamic",
      Static: "Static"
    };
    var ResourceAttribute = {
      CreationPolicy: "CreationPolicy",
      DeletionPolicy: "DeletionPolicy",
      Metadata: "Metadata",
      Properties: "Properties",
      Tags: "Tags",
      UpdatePolicy: "UpdatePolicy",
      UpdateReplacePolicy: "UpdateReplacePolicy"
    };
    var RequiresRecreation = {
      Always: "Always",
      Conditionally: "Conditionally",
      Never: "Never"
    };
    var PolicyAction = {
      Delete: "Delete",
      ReplaceAndDelete: "ReplaceAndDelete",
      ReplaceAndRetain: "ReplaceAndRetain",
      ReplaceAndSnapshot: "ReplaceAndSnapshot",
      Retain: "Retain",
      Snapshot: "Snapshot"
    };
    var Replacement = {
      Conditional: "Conditional",
      False: "False",
      True: "True"
    };
    var ChangeType = {
      Resource: "Resource"
    };
    var HookFailureMode = {
      FAIL: "FAIL",
      WARN: "WARN"
    };
    var HookInvocationPoint = {
      PRE_PROVISION: "PRE_PROVISION"
    };
    var HookTargetType = {
      RESOURCE: "RESOURCE"
    };
    var ChangeSetHooksStatus = {
      PLANNED: "PLANNED",
      PLANNING: "PLANNING",
      UNAVAILABLE: "UNAVAILABLE"
    };
    var ChangeSetNotFoundException = class _ChangeSetNotFoundException extends CloudFormationServiceException {
      static {
        __name(this, "_ChangeSetNotFoundException");
      }
      static {
        __name2(this, "ChangeSetNotFoundException");
      }
      name = "ChangeSetNotFoundException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ChangeSetNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ChangeSetNotFoundException.prototype);
        this.Message = opts.Message;
      }
    };
    var ChangeSetStatus2 = {
      CREATE_COMPLETE: "CREATE_COMPLETE",
      CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS",
      CREATE_PENDING: "CREATE_PENDING",
      DELETE_COMPLETE: "DELETE_COMPLETE",
      DELETE_FAILED: "DELETE_FAILED",
      DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
      DELETE_PENDING: "DELETE_PENDING",
      FAILED: "FAILED"
    };
    var ExecutionStatus = {
      AVAILABLE: "AVAILABLE",
      EXECUTE_COMPLETE: "EXECUTE_COMPLETE",
      EXECUTE_FAILED: "EXECUTE_FAILED",
      EXECUTE_IN_PROGRESS: "EXECUTE_IN_PROGRESS",
      OBSOLETE: "OBSOLETE",
      UNAVAILABLE: "UNAVAILABLE"
    };
    var ChangeSetType = {
      CREATE: "CREATE",
      IMPORT: "IMPORT",
      UPDATE: "UPDATE"
    };
    var OnStackFailure = {
      DELETE: "DELETE",
      DO_NOTHING: "DO_NOTHING",
      ROLLBACK: "ROLLBACK"
    };
    var InsufficientCapabilitiesException = class _InsufficientCapabilitiesException extends CloudFormationServiceException {
      static {
        __name(this, "_InsufficientCapabilitiesException");
      }
      static {
        __name2(this, "InsufficientCapabilitiesException");
      }
      name = "InsufficientCapabilitiesException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InsufficientCapabilitiesException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InsufficientCapabilitiesException.prototype);
        this.Message = opts.Message;
      }
    };
    var LimitExceededException = class _LimitExceededException extends CloudFormationServiceException {
      static {
        __name(this, "_LimitExceededException");
      }
      static {
        __name2(this, "LimitExceededException");
      }
      name = "LimitExceededException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "LimitExceededException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _LimitExceededException.prototype);
        this.Message = opts.Message;
      }
    };
    var ConcurrentResourcesLimitExceededException = class _ConcurrentResourcesLimitExceededException extends CloudFormationServiceException {
      static {
        __name(this, "_ConcurrentResourcesLimitExceededException");
      }
      static {
        __name2(this, "ConcurrentResourcesLimitExceededException");
      }
      name = "ConcurrentResourcesLimitExceededException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ConcurrentResourcesLimitExceededException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ConcurrentResourcesLimitExceededException.prototype);
        this.Message = opts.Message;
      }
    };
    var GeneratedTemplateDeletionPolicy = {
      DELETE: "DELETE",
      RETAIN: "RETAIN"
    };
    var GeneratedTemplateUpdateReplacePolicy = {
      DELETE: "DELETE",
      RETAIN: "RETAIN"
    };
    var OnFailure = {
      DELETE: "DELETE",
      DO_NOTHING: "DO_NOTHING",
      ROLLBACK: "ROLLBACK"
    };
    var ConcurrencyMode = {
      SOFT_FAILURE_TOLERANCE: "SOFT_FAILURE_TOLERANCE",
      STRICT_FAILURE_TOLERANCE: "STRICT_FAILURE_TOLERANCE"
    };
    var RegionConcurrencyType = {
      PARALLEL: "PARALLEL",
      SEQUENTIAL: "SEQUENTIAL"
    };
    var OperationIdAlreadyExistsException = class _OperationIdAlreadyExistsException extends CloudFormationServiceException {
      static {
        __name(this, "_OperationIdAlreadyExistsException");
      }
      static {
        __name2(this, "OperationIdAlreadyExistsException");
      }
      name = "OperationIdAlreadyExistsException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "OperationIdAlreadyExistsException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _OperationIdAlreadyExistsException.prototype);
        this.Message = opts.Message;
      }
    };
    var OperationInProgressException = class _OperationInProgressException extends CloudFormationServiceException {
      static {
        __name(this, "_OperationInProgressException");
      }
      static {
        __name2(this, "OperationInProgressException");
      }
      name = "OperationInProgressException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "OperationInProgressException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _OperationInProgressException.prototype);
        this.Message = opts.Message;
      }
    };
    var StackSetNotFoundException = class _StackSetNotFoundException extends CloudFormationServiceException {
      static {
        __name(this, "_StackSetNotFoundException");
      }
      static {
        __name2(this, "StackSetNotFoundException");
      }
      name = "StackSetNotFoundException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "StackSetNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _StackSetNotFoundException.prototype);
        this.Message = opts.Message;
      }
    };
    var StaleRequestException = class _StaleRequestException extends CloudFormationServiceException {
      static {
        __name(this, "_StaleRequestException");
      }
      static {
        __name2(this, "StaleRequestException");
      }
      name = "StaleRequestException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "StaleRequestException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _StaleRequestException.prototype);
        this.Message = opts.Message;
      }
    };
    var CreatedButModifiedException = class _CreatedButModifiedException extends CloudFormationServiceException {
      static {
        __name(this, "_CreatedButModifiedException");
      }
      static {
        __name2(this, "CreatedButModifiedException");
      }
      name = "CreatedButModifiedException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "CreatedButModifiedException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _CreatedButModifiedException.prototype);
        this.Message = opts.Message;
      }
    };
    var PermissionModels = {
      SELF_MANAGED: "SELF_MANAGED",
      SERVICE_MANAGED: "SERVICE_MANAGED"
    };
    var NameAlreadyExistsException = class _NameAlreadyExistsException extends CloudFormationServiceException {
      static {
        __name(this, "_NameAlreadyExistsException");
      }
      static {
        __name2(this, "NameAlreadyExistsException");
      }
      name = "NameAlreadyExistsException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "NameAlreadyExistsException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _NameAlreadyExistsException.prototype);
        this.Message = opts.Message;
      }
    };
    var InvalidChangeSetStatusException = class _InvalidChangeSetStatusException extends CloudFormationServiceException {
      static {
        __name(this, "_InvalidChangeSetStatusException");
      }
      static {
        __name2(this, "InvalidChangeSetStatusException");
      }
      name = "InvalidChangeSetStatusException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidChangeSetStatusException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidChangeSetStatusException.prototype);
        this.Message = opts.Message;
      }
    };
    var GeneratedTemplateNotFoundException = class _GeneratedTemplateNotFoundException extends CloudFormationServiceException {
      static {
        __name(this, "_GeneratedTemplateNotFoundException");
      }
      static {
        __name2(this, "GeneratedTemplateNotFoundException");
      }
      name = "GeneratedTemplateNotFoundException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "GeneratedTemplateNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _GeneratedTemplateNotFoundException.prototype);
        this.Message = opts.Message;
      }
    };
    var DeletionMode = {
      FORCE_DELETE_STACK: "FORCE_DELETE_STACK",
      STANDARD: "STANDARD"
    };
    var StackSetNotEmptyException = class _StackSetNotEmptyException extends CloudFormationServiceException {
      static {
        __name(this, "_StackSetNotEmptyException");
      }
      static {
        __name2(this, "StackSetNotEmptyException");
      }
      name = "StackSetNotEmptyException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "StackSetNotEmptyException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _StackSetNotEmptyException.prototype);
        this.Message = opts.Message;
      }
    };
    var RegistryType = {
      HOOK: "HOOK",
      MODULE: "MODULE",
      RESOURCE: "RESOURCE"
    };
    var GeneratedTemplateResourceStatus = {
      COMPLETE: "COMPLETE",
      FAILED: "FAILED",
      IN_PROGRESS: "IN_PROGRESS",
      PENDING: "PENDING"
    };
    var WarningType = {
      EXCLUDED_PROPERTIES: "EXCLUDED_PROPERTIES",
      MUTUALLY_EXCLUSIVE_PROPERTIES: "MUTUALLY_EXCLUSIVE_PROPERTIES",
      MUTUALLY_EXCLUSIVE_TYPES: "MUTUALLY_EXCLUSIVE_TYPES",
      UNSUPPORTED_PROPERTIES: "UNSUPPORTED_PROPERTIES"
    };
    var GeneratedTemplateStatus = {
      COMPLETE: "COMPLETE",
      CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS",
      CREATE_PENDING: "CREATE_PENDING",
      DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
      DELETE_PENDING: "DELETE_PENDING",
      FAILED: "FAILED",
      UPDATE_IN_PROGRESS: "UPDATE_IN_PROGRESS",
      UPDATE_PENDING: "UPDATE_PENDING"
    };
    var OrganizationStatus = {
      DISABLED: "DISABLED",
      DISABLED_PERMANENTLY: "DISABLED_PERMANENTLY",
      ENABLED: "ENABLED"
    };
    var IdentityProvider = {
      AWS_Marketplace: "AWS_Marketplace",
      Bitbucket: "Bitbucket",
      GitHub: "GitHub"
    };
    var PublisherStatus = {
      UNVERIFIED: "UNVERIFIED",
      VERIFIED: "VERIFIED"
    };
    var ResourceScanStatus = {
      COMPLETE: "COMPLETE",
      EXPIRED: "EXPIRED",
      FAILED: "FAILED",
      IN_PROGRESS: "IN_PROGRESS"
    };
    var ResourceScanNotFoundException = class _ResourceScanNotFoundException extends CloudFormationServiceException {
      static {
        __name(this, "_ResourceScanNotFoundException");
      }
      static {
        __name2(this, "ResourceScanNotFoundException");
      }
      name = "ResourceScanNotFoundException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ResourceScanNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ResourceScanNotFoundException.prototype);
        this.Message = opts.Message;
      }
    };
    var StackDriftDetectionStatus = {
      DETECTION_COMPLETE: "DETECTION_COMPLETE",
      DETECTION_FAILED: "DETECTION_FAILED",
      DETECTION_IN_PROGRESS: "DETECTION_IN_PROGRESS"
    };
    var StackDriftStatus = {
      DRIFTED: "DRIFTED",
      IN_SYNC: "IN_SYNC",
      NOT_CHECKED: "NOT_CHECKED",
      UNKNOWN: "UNKNOWN"
    };
    var DetailedStatus = {
      CONFIGURATION_COMPLETE: "CONFIGURATION_COMPLETE",
      VALIDATION_FAILED: "VALIDATION_FAILED"
    };
    var HookStatus = {
      HOOK_COMPLETE_FAILED: "HOOK_COMPLETE_FAILED",
      HOOK_COMPLETE_SUCCEEDED: "HOOK_COMPLETE_SUCCEEDED",
      HOOK_FAILED: "HOOK_FAILED",
      HOOK_IN_PROGRESS: "HOOK_IN_PROGRESS"
    };
    var ResourceStatus = {
      CREATE_COMPLETE: "CREATE_COMPLETE",
      CREATE_FAILED: "CREATE_FAILED",
      CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS",
      DELETE_COMPLETE: "DELETE_COMPLETE",
      DELETE_FAILED: "DELETE_FAILED",
      DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
      DELETE_SKIPPED: "DELETE_SKIPPED",
      EXPORT_COMPLETE: "EXPORT_COMPLETE",
      EXPORT_FAILED: "EXPORT_FAILED",
      EXPORT_IN_PROGRESS: "EXPORT_IN_PROGRESS",
      EXPORT_ROLLBACK_COMPLETE: "EXPORT_ROLLBACK_COMPLETE",
      EXPORT_ROLLBACK_FAILED: "EXPORT_ROLLBACK_FAILED",
      EXPORT_ROLLBACK_IN_PROGRESS: "EXPORT_ROLLBACK_IN_PROGRESS",
      IMPORT_COMPLETE: "IMPORT_COMPLETE",
      IMPORT_FAILED: "IMPORT_FAILED",
      IMPORT_IN_PROGRESS: "IMPORT_IN_PROGRESS",
      IMPORT_ROLLBACK_COMPLETE: "IMPORT_ROLLBACK_COMPLETE",
      IMPORT_ROLLBACK_FAILED: "IMPORT_ROLLBACK_FAILED",
      IMPORT_ROLLBACK_IN_PROGRESS: "IMPORT_ROLLBACK_IN_PROGRESS",
      ROLLBACK_COMPLETE: "ROLLBACK_COMPLETE",
      ROLLBACK_FAILED: "ROLLBACK_FAILED",
      ROLLBACK_IN_PROGRESS: "ROLLBACK_IN_PROGRESS",
      UPDATE_COMPLETE: "UPDATE_COMPLETE",
      UPDATE_FAILED: "UPDATE_FAILED",
      UPDATE_IN_PROGRESS: "UPDATE_IN_PROGRESS",
      UPDATE_ROLLBACK_COMPLETE: "UPDATE_ROLLBACK_COMPLETE",
      UPDATE_ROLLBACK_FAILED: "UPDATE_ROLLBACK_FAILED",
      UPDATE_ROLLBACK_IN_PROGRESS: "UPDATE_ROLLBACK_IN_PROGRESS"
    };
    var StackInstanceDetailedStatus = {
      CANCELLED: "CANCELLED",
      FAILED: "FAILED",
      FAILED_IMPORT: "FAILED_IMPORT",
      INOPERABLE: "INOPERABLE",
      PENDING: "PENDING",
      RUNNING: "RUNNING",
      SKIPPED_SUSPENDED_ACCOUNT: "SKIPPED_SUSPENDED_ACCOUNT",
      SUCCEEDED: "SUCCEEDED"
    };
    var StackInstanceStatus = {
      CURRENT: "CURRENT",
      INOPERABLE: "INOPERABLE",
      OUTDATED: "OUTDATED"
    };
    var StackInstanceNotFoundException = class _StackInstanceNotFoundException extends CloudFormationServiceException {
      static {
        __name(this, "_StackInstanceNotFoundException");
      }
      static {
        __name2(this, "StackInstanceNotFoundException");
      }
      name = "StackInstanceNotFoundException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "StackInstanceNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _StackInstanceNotFoundException.prototype);
        this.Message = opts.Message;
      }
    };
    var StackRefactorExecutionStatus = {
      AVAILABLE: "AVAILABLE",
      EXECUTE_COMPLETE: "EXECUTE_COMPLETE",
      EXECUTE_FAILED: "EXECUTE_FAILED",
      EXECUTE_IN_PROGRESS: "EXECUTE_IN_PROGRESS",
      OBSOLETE: "OBSOLETE",
      ROLLBACK_COMPLETE: "ROLLBACK_COMPLETE",
      ROLLBACK_FAILED: "ROLLBACK_FAILED",
      ROLLBACK_IN_PROGRESS: "ROLLBACK_IN_PROGRESS",
      UNAVAILABLE: "UNAVAILABLE"
    };
    var StackRefactorStatus = {
      CREATE_COMPLETE: "CREATE_COMPLETE",
      CREATE_FAILED: "CREATE_FAILED",
      CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS",
      DELETE_COMPLETE: "DELETE_COMPLETE",
      DELETE_FAILED: "DELETE_FAILED",
      DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS"
    };
    var StackRefactorNotFoundException = class _StackRefactorNotFoundException extends CloudFormationServiceException {
      static {
        __name(this, "_StackRefactorNotFoundException");
      }
      static {
        __name2(this, "StackRefactorNotFoundException");
      }
      name = "StackRefactorNotFoundException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "StackRefactorNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _StackRefactorNotFoundException.prototype);
        this.Message = opts.Message;
      }
    };
    var StackResourceDriftStatus2 = {
      DELETED: "DELETED",
      IN_SYNC: "IN_SYNC",
      MODIFIED: "MODIFIED",
      NOT_CHECKED: "NOT_CHECKED",
      UNKNOWN: "UNKNOWN"
    };
    var DifferenceType = {
      ADD: "ADD",
      NOT_EQUAL: "NOT_EQUAL",
      REMOVE: "REMOVE"
    };
    var StackStatus2 = {
      CREATE_COMPLETE: "CREATE_COMPLETE",
      CREATE_FAILED: "CREATE_FAILED",
      CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS",
      DELETE_COMPLETE: "DELETE_COMPLETE",
      DELETE_FAILED: "DELETE_FAILED",
      DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
      IMPORT_COMPLETE: "IMPORT_COMPLETE",
      IMPORT_IN_PROGRESS: "IMPORT_IN_PROGRESS",
      IMPORT_ROLLBACK_COMPLETE: "IMPORT_ROLLBACK_COMPLETE",
      IMPORT_ROLLBACK_FAILED: "IMPORT_ROLLBACK_FAILED",
      IMPORT_ROLLBACK_IN_PROGRESS: "IMPORT_ROLLBACK_IN_PROGRESS",
      REVIEW_IN_PROGRESS: "REVIEW_IN_PROGRESS",
      ROLLBACK_COMPLETE: "ROLLBACK_COMPLETE",
      ROLLBACK_FAILED: "ROLLBACK_FAILED",
      ROLLBACK_IN_PROGRESS: "ROLLBACK_IN_PROGRESS",
      UPDATE_COMPLETE: "UPDATE_COMPLETE",
      UPDATE_COMPLETE_CLEANUP_IN_PROGRESS: "UPDATE_COMPLETE_CLEANUP_IN_PROGRESS",
      UPDATE_FAILED: "UPDATE_FAILED",
      UPDATE_IN_PROGRESS: "UPDATE_IN_PROGRESS",
      UPDATE_ROLLBACK_COMPLETE: "UPDATE_ROLLBACK_COMPLETE",
      UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS: "UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS",
      UPDATE_ROLLBACK_FAILED: "UPDATE_ROLLBACK_FAILED",
      UPDATE_ROLLBACK_IN_PROGRESS: "UPDATE_ROLLBACK_IN_PROGRESS"
    };
    var StackSetDriftDetectionStatus = {
      COMPLETED: "COMPLETED",
      FAILED: "FAILED",
      IN_PROGRESS: "IN_PROGRESS",
      PARTIAL_SUCCESS: "PARTIAL_SUCCESS",
      STOPPED: "STOPPED"
    };
    var StackSetDriftStatus = {
      DRIFTED: "DRIFTED",
      IN_SYNC: "IN_SYNC",
      NOT_CHECKED: "NOT_CHECKED"
    };
    var StackSetStatus = {
      ACTIVE: "ACTIVE",
      DELETED: "DELETED"
    };
    var StackSetOperationAction = {
      CREATE: "CREATE",
      DELETE: "DELETE",
      DETECT_DRIFT: "DETECT_DRIFT",
      UPDATE: "UPDATE"
    };
    var StackSetOperationStatus = {
      FAILED: "FAILED",
      QUEUED: "QUEUED",
      RUNNING: "RUNNING",
      STOPPED: "STOPPED",
      STOPPING: "STOPPING",
      SUCCEEDED: "SUCCEEDED"
    };
    var DeprecatedStatus = {
      DEPRECATED: "DEPRECATED",
      LIVE: "LIVE"
    };
    var ProvisioningType = {
      FULLY_MUTABLE: "FULLY_MUTABLE",
      IMMUTABLE: "IMMUTABLE",
      NON_PROVISIONABLE: "NON_PROVISIONABLE"
    };
    var TypeTestsStatus = {
      FAILED: "FAILED",
      IN_PROGRESS: "IN_PROGRESS",
      NOT_TESTED: "NOT_TESTED",
      PASSED: "PASSED"
    };
    var Visibility = {
      PRIVATE: "PRIVATE",
      PUBLIC: "PUBLIC"
    };
    var RegistrationStatus = {
      COMPLETE: "COMPLETE",
      FAILED: "FAILED",
      IN_PROGRESS: "IN_PROGRESS"
    };
    var TemplateFormat = {
      JSON: "JSON",
      YAML: "YAML"
    };
    var TemplateStage = {
      Original: "Original",
      Processed: "Processed"
    };
    var StackNotFoundException = class _StackNotFoundException extends CloudFormationServiceException {
      static {
        __name(this, "_StackNotFoundException");
      }
      static {
        __name2(this, "StackNotFoundException");
      }
      name = "StackNotFoundException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "StackNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _StackNotFoundException.prototype);
        this.Message = opts.Message;
      }
    };
    var HookResultNotFoundException = class _HookResultNotFoundException extends CloudFormationServiceException {
      static {
        __name(this, "_HookResultNotFoundException");
      }
      static {
        __name2(this, "HookResultNotFoundException");
      }
      name = "HookResultNotFoundException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "HookResultNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _HookResultNotFoundException.prototype);
        this.Message = opts.Message;
      }
    };
    var ListHookResultsTargetType = {
      CHANGE_SET: "CHANGE_SET",
      CLOUD_CONTROL: "CLOUD_CONTROL",
      RESOURCE: "RESOURCE",
      STACK: "STACK"
    };
    var ResourceScanInProgressException = class _ResourceScanInProgressException extends CloudFormationServiceException {
      static {
        __name(this, "_ResourceScanInProgressException");
      }
      static {
        __name2(this, "ResourceScanInProgressException");
      }
      name = "ResourceScanInProgressException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ResourceScanInProgressException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ResourceScanInProgressException.prototype);
        this.Message = opts.Message;
      }
    };
    var ScanType = {
      FULL: "FULL",
      PARTIAL: "PARTIAL"
    };
    var StackInstanceFilterName = {
      DETAILED_STATUS: "DETAILED_STATUS",
      DRIFT_STATUS: "DRIFT_STATUS",
      LAST_OPERATION_ID: "LAST_OPERATION_ID"
    };
    var StackRefactorActionType = {
      CREATE: "CREATE",
      MOVE: "MOVE"
    };
    var StackRefactorDetection = {
      AUTO: "AUTO",
      MANUAL: "MANUAL"
    };
    var StackRefactorActionEntity = {
      RESOURCE: "RESOURCE",
      STACK: "STACK"
    };
    var OperationResultFilterName = {
      OPERATION_RESULT_STATUS: "OPERATION_RESULT_STATUS"
    };
    var StackSetOperationResultStatus = {
      CANCELLED: "CANCELLED",
      FAILED: "FAILED",
      PENDING: "PENDING",
      RUNNING: "RUNNING",
      SUCCEEDED: "SUCCEEDED"
    };
    var InvalidStateTransitionException = class _InvalidStateTransitionException extends CloudFormationServiceException {
      static {
        __name(this, "_InvalidStateTransitionException");
      }
      static {
        __name2(this, "InvalidStateTransitionException");
      }
      name = "InvalidStateTransitionException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidStateTransitionException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidStateTransitionException.prototype);
        this.Message = opts.Message;
      }
    };
    var OperationStatusCheckFailedException = class _OperationStatusCheckFailedException extends CloudFormationServiceException {
      static {
        __name(this, "_OperationStatusCheckFailedException");
      }
      static {
        __name2(this, "OperationStatusCheckFailedException");
      }
      name = "OperationStatusCheckFailedException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "OperationStatusCheckFailedException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _OperationStatusCheckFailedException.prototype);
        this.Message = opts.Message;
      }
    };
    var OperationStatus = {
      FAILED: "FAILED",
      IN_PROGRESS: "IN_PROGRESS",
      PENDING: "PENDING",
      SUCCESS: "SUCCESS"
    };
    var HandlerErrorCode = {
      AccessDenied: "AccessDenied",
      AlreadyExists: "AlreadyExists",
      GeneralServiceException: "GeneralServiceException",
      HandlerInternalFailure: "HandlerInternalFailure",
      InternalFailure: "InternalFailure",
      InvalidCredentials: "InvalidCredentials",
      InvalidRequest: "InvalidRequest",
      InvalidTypeConfiguration: "InvalidTypeConfiguration",
      NetworkFailure: "NetworkFailure",
      NonCompliant: "NonCompliant",
      NotFound: "NotFound",
      NotUpdatable: "NotUpdatable",
      ResourceConflict: "ResourceConflict",
      ServiceInternalError: "ServiceInternalError",
      ServiceLimitExceeded: "ServiceLimitExceeded",
      ServiceTimeout: "NotStabilized",
      Throttling: "Throttling",
      Unknown: "Unknown",
      UnsupportedTarget: "UnsupportedTarget"
    };
    var ResourceSignalStatus = {
      FAILURE: "FAILURE",
      SUCCESS: "SUCCESS"
    };
    var ResourceScanLimitExceededException = class _ResourceScanLimitExceededException extends CloudFormationServiceException {
      static {
        __name(this, "_ResourceScanLimitExceededException");
      }
      static {
        __name2(this, "ResourceScanLimitExceededException");
      }
      name = "ResourceScanLimitExceededException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ResourceScanLimitExceededException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ResourceScanLimitExceededException.prototype);
        this.Message = opts.Message;
      }
    };
    var se_ActivateOrganizationsAccessCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ActivateOrganizationsAccessInput(input, context),
        [_A2]: _AOA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ActivateOrganizationsAccessCommand");
    var se_ActivateTypeCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ActivateTypeInput(input, context),
        [_A2]: _AT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ActivateTypeCommand");
    var se_BatchDescribeTypeConfigurationsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_BatchDescribeTypeConfigurationsInput(input, context),
        [_A2]: _BDTC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_BatchDescribeTypeConfigurationsCommand");
    var se_CancelUpdateStackCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CancelUpdateStackInput(input, context),
        [_A2]: _CUS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CancelUpdateStackCommand");
    var se_ContinueUpdateRollbackCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ContinueUpdateRollbackInput(input, context),
        [_A2]: _CUR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ContinueUpdateRollbackCommand");
    var se_CreateChangeSetCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateChangeSetInput(input, context),
        [_A2]: _CCS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateChangeSetCommand");
    var se_CreateGeneratedTemplateCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateGeneratedTemplateInput(input, context),
        [_A2]: _CGT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateGeneratedTemplateCommand");
    var se_CreateStackCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateStackInput(input, context),
        [_A2]: _CS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateStackCommand");
    var se_CreateStackInstancesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateStackInstancesInput(input, context),
        [_A2]: _CSI,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateStackInstancesCommand");
    var se_CreateStackRefactorCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateStackRefactorInput(input, context),
        [_A2]: _CSR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateStackRefactorCommand");
    var se_CreateStackSetCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateStackSetInput(input, context),
        [_A2]: _CSS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateStackSetCommand");
    var se_DeactivateOrganizationsAccessCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeactivateOrganizationsAccessInput(input, context),
        [_A2]: _DOA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeactivateOrganizationsAccessCommand");
    var se_DeactivateTypeCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeactivateTypeInput(input, context),
        [_A2]: _DT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeactivateTypeCommand");
    var se_DeleteChangeSetCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteChangeSetInput(input, context),
        [_A2]: _DCS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteChangeSetCommand");
    var se_DeleteGeneratedTemplateCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteGeneratedTemplateInput(input, context),
        [_A2]: _DGT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteGeneratedTemplateCommand");
    var se_DeleteStackCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteStackInput(input, context),
        [_A2]: _DS2,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteStackCommand");
    var se_DeleteStackInstancesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteStackInstancesInput(input, context),
        [_A2]: _DSI,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteStackInstancesCommand");
    var se_DeleteStackSetCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteStackSetInput(input, context),
        [_A2]: _DSS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteStackSetCommand");
    var se_DeregisterTypeCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeregisterTypeInput(input, context),
        [_A2]: _DTe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeregisterTypeCommand");
    var se_DescribeAccountLimitsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeAccountLimitsInput(input, context),
        [_A2]: _DAL,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeAccountLimitsCommand");
    var se_DescribeChangeSetCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeChangeSetInput(input, context),
        [_A2]: _DCSe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeChangeSetCommand");
    var se_DescribeChangeSetHooksCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeChangeSetHooksInput(input, context),
        [_A2]: _DCSH,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeChangeSetHooksCommand");
    var se_DescribeGeneratedTemplateCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeGeneratedTemplateInput(input, context),
        [_A2]: _DGTe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeGeneratedTemplateCommand");
    var se_DescribeOrganizationsAccessCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeOrganizationsAccessInput(input, context),
        [_A2]: _DOAe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeOrganizationsAccessCommand");
    var se_DescribePublisherCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribePublisherInput(input, context),
        [_A2]: _DP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribePublisherCommand");
    var se_DescribeResourceScanCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeResourceScanInput(input, context),
        [_A2]: _DRS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeResourceScanCommand");
    var se_DescribeStackDriftDetectionStatusCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeStackDriftDetectionStatusInput(input, context),
        [_A2]: _DSDDS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeStackDriftDetectionStatusCommand");
    var se_DescribeStackEventsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeStackEventsInput(input, context),
        [_A2]: _DSE,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeStackEventsCommand");
    var se_DescribeStackInstanceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeStackInstanceInput(input, context),
        [_A2]: _DSIe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeStackInstanceCommand");
    var se_DescribeStackRefactorCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeStackRefactorInput(input, context),
        [_A2]: _DSR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeStackRefactorCommand");
    var se_DescribeStackResourceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeStackResourceInput(input, context),
        [_A2]: _DSRe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeStackResourceCommand");
    var se_DescribeStackResourceDriftsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeStackResourceDriftsInput(input, context),
        [_A2]: _DSRD,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeStackResourceDriftsCommand");
    var se_DescribeStackResourcesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeStackResourcesInput(input, context),
        [_A2]: _DSRes,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeStackResourcesCommand");
    var se_DescribeStacksCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeStacksInput(input, context),
        [_A2]: _DSe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeStacksCommand");
    var se_DescribeStackSetCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeStackSetInput(input, context),
        [_A2]: _DSSe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeStackSetCommand");
    var se_DescribeStackSetOperationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeStackSetOperationInput(input, context),
        [_A2]: _DSSO,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeStackSetOperationCommand");
    var se_DescribeTypeCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeTypeInput(input, context),
        [_A2]: _DTes,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeTypeCommand");
    var se_DescribeTypeRegistrationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeTypeRegistrationInput(input, context),
        [_A2]: _DTR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeTypeRegistrationCommand");
    var se_DetectStackDriftCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DetectStackDriftInput(input, context),
        [_A2]: _DSD,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DetectStackDriftCommand");
    var se_DetectStackResourceDriftCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DetectStackResourceDriftInput(input, context),
        [_A2]: _DSRDe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DetectStackResourceDriftCommand");
    var se_DetectStackSetDriftCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DetectStackSetDriftInput(input, context),
        [_A2]: _DSSD,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DetectStackSetDriftCommand");
    var se_EstimateTemplateCostCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_EstimateTemplateCostInput(input, context),
        [_A2]: _ETC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_EstimateTemplateCostCommand");
    var se_ExecuteChangeSetCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ExecuteChangeSetInput(input, context),
        [_A2]: _ECS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ExecuteChangeSetCommand");
    var se_ExecuteStackRefactorCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ExecuteStackRefactorInput(input, context),
        [_A2]: _ESR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ExecuteStackRefactorCommand");
    var se_GetGeneratedTemplateCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetGeneratedTemplateInput(input, context),
        [_A2]: _GGT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetGeneratedTemplateCommand");
    var se_GetStackPolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetStackPolicyInput(input, context),
        [_A2]: _GSP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetStackPolicyCommand");
    var se_GetTemplateCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetTemplateInput(input, context),
        [_A2]: _GT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetTemplateCommand");
    var se_GetTemplateSummaryCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetTemplateSummaryInput(input, context),
        [_A2]: _GTS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetTemplateSummaryCommand");
    var se_ImportStacksToStackSetCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ImportStacksToStackSetInput(input, context),
        [_A2]: _ISTSS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ImportStacksToStackSetCommand");
    var se_ListChangeSetsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListChangeSetsInput(input, context),
        [_A2]: _LCS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListChangeSetsCommand");
    var se_ListExportsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListExportsInput(input, context),
        [_A2]: _LE,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListExportsCommand");
    var se_ListGeneratedTemplatesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListGeneratedTemplatesInput(input, context),
        [_A2]: _LGT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListGeneratedTemplatesCommand");
    var se_ListHookResultsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListHookResultsInput(input, context),
        [_A2]: _LHR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListHookResultsCommand");
    var se_ListImportsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListImportsInput(input, context),
        [_A2]: _LI,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListImportsCommand");
    var se_ListResourceScanRelatedResourcesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListResourceScanRelatedResourcesInput(input, context),
        [_A2]: _LRSRR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListResourceScanRelatedResourcesCommand");
    var se_ListResourceScanResourcesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListResourceScanResourcesInput(input, context),
        [_A2]: _LRSR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListResourceScanResourcesCommand");
    var se_ListResourceScansCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListResourceScansInput(input, context),
        [_A2]: _LRS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListResourceScansCommand");
    var se_ListStackInstanceResourceDriftsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListStackInstanceResourceDriftsInput(input, context),
        [_A2]: _LSIRD,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListStackInstanceResourceDriftsCommand");
    var se_ListStackInstancesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListStackInstancesInput(input, context),
        [_A2]: _LSI,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListStackInstancesCommand");
    var se_ListStackRefactorActionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListStackRefactorActionsInput(input, context),
        [_A2]: _LSRA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListStackRefactorActionsCommand");
    var se_ListStackRefactorsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListStackRefactorsInput(input, context),
        [_A2]: _LSR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListStackRefactorsCommand");
    var se_ListStackResourcesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListStackResourcesInput(input, context),
        [_A2]: _LSRi,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListStackResourcesCommand");
    var se_ListStacksCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListStacksInput(input, context),
        [_A2]: _LS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListStacksCommand");
    var se_ListStackSetAutoDeploymentTargetsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListStackSetAutoDeploymentTargetsInput(input, context),
        [_A2]: _LSSADT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListStackSetAutoDeploymentTargetsCommand");
    var se_ListStackSetOperationResultsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListStackSetOperationResultsInput(input, context),
        [_A2]: _LSSOR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListStackSetOperationResultsCommand");
    var se_ListStackSetOperationsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListStackSetOperationsInput(input, context),
        [_A2]: _LSSO,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListStackSetOperationsCommand");
    var se_ListStackSetsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListStackSetsInput(input, context),
        [_A2]: _LSS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListStackSetsCommand");
    var se_ListTypeRegistrationsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListTypeRegistrationsInput(input, context),
        [_A2]: _LTR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListTypeRegistrationsCommand");
    var se_ListTypesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListTypesInput(input, context),
        [_A2]: _LT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListTypesCommand");
    var se_ListTypeVersionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListTypeVersionsInput(input, context),
        [_A2]: _LTV,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListTypeVersionsCommand");
    var se_PublishTypeCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_PublishTypeInput(input, context),
        [_A2]: _PT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_PublishTypeCommand");
    var se_RecordHandlerProgressCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_RecordHandlerProgressInput(input, context),
        [_A2]: _RHP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_RecordHandlerProgressCommand");
    var se_RegisterPublisherCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_RegisterPublisherInput(input, context),
        [_A2]: _RP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_RegisterPublisherCommand");
    var se_RegisterTypeCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_RegisterTypeInput(input, context),
        [_A2]: _RT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_RegisterTypeCommand");
    var se_RollbackStackCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_RollbackStackInput(input, context),
        [_A2]: _RS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_RollbackStackCommand");
    var se_SetStackPolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_SetStackPolicyInput(input, context),
        [_A2]: _SSP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_SetStackPolicyCommand");
    var se_SetTypeConfigurationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_SetTypeConfigurationInput(input, context),
        [_A2]: _STC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_SetTypeConfigurationCommand");
    var se_SetTypeDefaultVersionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_SetTypeDefaultVersionInput(input, context),
        [_A2]: _STDV,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_SetTypeDefaultVersionCommand");
    var se_SignalResourceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_SignalResourceInput(input, context),
        [_A2]: _SR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_SignalResourceCommand");
    var se_StartResourceScanCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_StartResourceScanInput(input, context),
        [_A2]: _SRS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_StartResourceScanCommand");
    var se_StopStackSetOperationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_StopStackSetOperationInput(input, context),
        [_A2]: _SSSO,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_StopStackSetOperationCommand");
    var se_TestTypeCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_TestTypeInput(input, context),
        [_A2]: _TT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_TestTypeCommand");
    var se_UpdateGeneratedTemplateCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_UpdateGeneratedTemplateInput(input, context),
        [_A2]: _UGT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateGeneratedTemplateCommand");
    var se_UpdateStackCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_UpdateStackInput(input, context),
        [_A2]: _US,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateStackCommand");
    var se_UpdateStackInstancesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_UpdateStackInstancesInput(input, context),
        [_A2]: _USI,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateStackInstancesCommand");
    var se_UpdateStackSetCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_UpdateStackSetInput(input, context),
        [_A2]: _USS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateStackSetCommand");
    var se_UpdateTerminationProtectionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_UpdateTerminationProtectionInput(input, context),
        [_A2]: _UTP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateTerminationProtectionCommand");
    var se_ValidateTemplateCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ValidateTemplateInput(input, context),
        [_A2]: _VT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ValidateTemplateCommand");
    var de_ActivateOrganizationsAccessCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ActivateOrganizationsAccessOutput(data3.ActivateOrganizationsAccessResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ActivateOrganizationsAccessCommand");
    var de_ActivateTypeCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ActivateTypeOutput(data3.ActivateTypeResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ActivateTypeCommand");
    var de_BatchDescribeTypeConfigurationsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_BatchDescribeTypeConfigurationsOutput(data3.BatchDescribeTypeConfigurationsResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_BatchDescribeTypeConfigurationsCommand");
    var de_CancelUpdateStackCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_CancelUpdateStackCommand");
    var de_ContinueUpdateRollbackCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ContinueUpdateRollbackOutput(data3.ContinueUpdateRollbackResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ContinueUpdateRollbackCommand");
    var de_CreateChangeSetCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateChangeSetOutput(data3.CreateChangeSetResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateChangeSetCommand");
    var de_CreateGeneratedTemplateCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateGeneratedTemplateOutput(data3.CreateGeneratedTemplateResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateGeneratedTemplateCommand");
    var de_CreateStackCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateStackOutput(data3.CreateStackResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateStackCommand");
    var de_CreateStackInstancesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateStackInstancesOutput(data3.CreateStackInstancesResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateStackInstancesCommand");
    var de_CreateStackRefactorCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateStackRefactorOutput(data3.CreateStackRefactorResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateStackRefactorCommand");
    var de_CreateStackSetCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateStackSetOutput(data3.CreateStackSetResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateStackSetCommand");
    var de_DeactivateOrganizationsAccessCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeactivateOrganizationsAccessOutput(data3.DeactivateOrganizationsAccessResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeactivateOrganizationsAccessCommand");
    var de_DeactivateTypeCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeactivateTypeOutput(data3.DeactivateTypeResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeactivateTypeCommand");
    var de_DeleteChangeSetCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteChangeSetOutput(data3.DeleteChangeSetResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteChangeSetCommand");
    var de_DeleteGeneratedTemplateCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeleteGeneratedTemplateCommand");
    var de_DeleteStackCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeleteStackCommand");
    var de_DeleteStackInstancesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteStackInstancesOutput(data3.DeleteStackInstancesResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteStackInstancesCommand");
    var de_DeleteStackSetCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteStackSetOutput(data3.DeleteStackSetResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteStackSetCommand");
    var de_DeregisterTypeCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeregisterTypeOutput(data3.DeregisterTypeResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeregisterTypeCommand");
    var de_DescribeAccountLimitsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeAccountLimitsOutput(data3.DescribeAccountLimitsResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeAccountLimitsCommand");
    var de_DescribeChangeSetCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeChangeSetOutput(data3.DescribeChangeSetResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeChangeSetCommand");
    var de_DescribeChangeSetHooksCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeChangeSetHooksOutput(data3.DescribeChangeSetHooksResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeChangeSetHooksCommand");
    var de_DescribeGeneratedTemplateCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeGeneratedTemplateOutput(data3.DescribeGeneratedTemplateResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeGeneratedTemplateCommand");
    var de_DescribeOrganizationsAccessCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeOrganizationsAccessOutput(data3.DescribeOrganizationsAccessResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeOrganizationsAccessCommand");
    var de_DescribePublisherCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribePublisherOutput(data3.DescribePublisherResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribePublisherCommand");
    var de_DescribeResourceScanCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeResourceScanOutput(data3.DescribeResourceScanResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeResourceScanCommand");
    var de_DescribeStackDriftDetectionStatusCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeStackDriftDetectionStatusOutput(data3.DescribeStackDriftDetectionStatusResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeStackDriftDetectionStatusCommand");
    var de_DescribeStackEventsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeStackEventsOutput(data3.DescribeStackEventsResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeStackEventsCommand");
    var de_DescribeStackInstanceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeStackInstanceOutput(data3.DescribeStackInstanceResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeStackInstanceCommand");
    var de_DescribeStackRefactorCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeStackRefactorOutput(data3.DescribeStackRefactorResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeStackRefactorCommand");
    var de_DescribeStackResourceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeStackResourceOutput(data3.DescribeStackResourceResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeStackResourceCommand");
    var de_DescribeStackResourceDriftsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeStackResourceDriftsOutput(data3.DescribeStackResourceDriftsResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeStackResourceDriftsCommand");
    var de_DescribeStackResourcesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeStackResourcesOutput(data3.DescribeStackResourcesResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeStackResourcesCommand");
    var de_DescribeStacksCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeStacksOutput(data3.DescribeStacksResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeStacksCommand");
    var de_DescribeStackSetCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeStackSetOutput(data3.DescribeStackSetResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeStackSetCommand");
    var de_DescribeStackSetOperationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeStackSetOperationOutput(data3.DescribeStackSetOperationResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeStackSetOperationCommand");
    var de_DescribeTypeCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeTypeOutput(data3.DescribeTypeResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeTypeCommand");
    var de_DescribeTypeRegistrationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeTypeRegistrationOutput(data3.DescribeTypeRegistrationResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeTypeRegistrationCommand");
    var de_DetectStackDriftCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DetectStackDriftOutput(data3.DetectStackDriftResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DetectStackDriftCommand");
    var de_DetectStackResourceDriftCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DetectStackResourceDriftOutput(data3.DetectStackResourceDriftResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DetectStackResourceDriftCommand");
    var de_DetectStackSetDriftCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DetectStackSetDriftOutput(data3.DetectStackSetDriftResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DetectStackSetDriftCommand");
    var de_EstimateTemplateCostCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_EstimateTemplateCostOutput(data3.EstimateTemplateCostResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_EstimateTemplateCostCommand");
    var de_ExecuteChangeSetCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ExecuteChangeSetOutput(data3.ExecuteChangeSetResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ExecuteChangeSetCommand");
    var de_ExecuteStackRefactorCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_ExecuteStackRefactorCommand");
    var de_GetGeneratedTemplateCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetGeneratedTemplateOutput(data3.GetGeneratedTemplateResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetGeneratedTemplateCommand");
    var de_GetStackPolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetStackPolicyOutput(data3.GetStackPolicyResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetStackPolicyCommand");
    var de_GetTemplateCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetTemplateOutput(data3.GetTemplateResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetTemplateCommand");
    var de_GetTemplateSummaryCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetTemplateSummaryOutput(data3.GetTemplateSummaryResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetTemplateSummaryCommand");
    var de_ImportStacksToStackSetCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ImportStacksToStackSetOutput(data3.ImportStacksToStackSetResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ImportStacksToStackSetCommand");
    var de_ListChangeSetsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListChangeSetsOutput(data3.ListChangeSetsResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListChangeSetsCommand");
    var de_ListExportsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListExportsOutput(data3.ListExportsResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListExportsCommand");
    var de_ListGeneratedTemplatesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListGeneratedTemplatesOutput(data3.ListGeneratedTemplatesResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListGeneratedTemplatesCommand");
    var de_ListHookResultsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListHookResultsOutput(data3.ListHookResultsResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListHookResultsCommand");
    var de_ListImportsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListImportsOutput(data3.ListImportsResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListImportsCommand");
    var de_ListResourceScanRelatedResourcesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListResourceScanRelatedResourcesOutput(data3.ListResourceScanRelatedResourcesResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListResourceScanRelatedResourcesCommand");
    var de_ListResourceScanResourcesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListResourceScanResourcesOutput(data3.ListResourceScanResourcesResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListResourceScanResourcesCommand");
    var de_ListResourceScansCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListResourceScansOutput(data3.ListResourceScansResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListResourceScansCommand");
    var de_ListStackInstanceResourceDriftsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListStackInstanceResourceDriftsOutput(data3.ListStackInstanceResourceDriftsResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListStackInstanceResourceDriftsCommand");
    var de_ListStackInstancesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListStackInstancesOutput(data3.ListStackInstancesResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListStackInstancesCommand");
    var de_ListStackRefactorActionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListStackRefactorActionsOutput(data3.ListStackRefactorActionsResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListStackRefactorActionsCommand");
    var de_ListStackRefactorsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListStackRefactorsOutput(data3.ListStackRefactorsResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListStackRefactorsCommand");
    var de_ListStackResourcesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListStackResourcesOutput(data3.ListStackResourcesResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListStackResourcesCommand");
    var de_ListStacksCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListStacksOutput(data3.ListStacksResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListStacksCommand");
    var de_ListStackSetAutoDeploymentTargetsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListStackSetAutoDeploymentTargetsOutput(data3.ListStackSetAutoDeploymentTargetsResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListStackSetAutoDeploymentTargetsCommand");
    var de_ListStackSetOperationResultsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListStackSetOperationResultsOutput(data3.ListStackSetOperationResultsResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListStackSetOperationResultsCommand");
    var de_ListStackSetOperationsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListStackSetOperationsOutput(data3.ListStackSetOperationsResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListStackSetOperationsCommand");
    var de_ListStackSetsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListStackSetsOutput(data3.ListStackSetsResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListStackSetsCommand");
    var de_ListTypeRegistrationsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListTypeRegistrationsOutput(data3.ListTypeRegistrationsResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListTypeRegistrationsCommand");
    var de_ListTypesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListTypesOutput(data3.ListTypesResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListTypesCommand");
    var de_ListTypeVersionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListTypeVersionsOutput(data3.ListTypeVersionsResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListTypeVersionsCommand");
    var de_PublishTypeCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_PublishTypeOutput(data3.PublishTypeResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_PublishTypeCommand");
    var de_RecordHandlerProgressCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_RecordHandlerProgressOutput(data3.RecordHandlerProgressResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_RecordHandlerProgressCommand");
    var de_RegisterPublisherCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_RegisterPublisherOutput(data3.RegisterPublisherResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_RegisterPublisherCommand");
    var de_RegisterTypeCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_RegisterTypeOutput(data3.RegisterTypeResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_RegisterTypeCommand");
    var de_RollbackStackCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_RollbackStackOutput(data3.RollbackStackResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_RollbackStackCommand");
    var de_SetStackPolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_SetStackPolicyCommand");
    var de_SetTypeConfigurationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_SetTypeConfigurationOutput(data3.SetTypeConfigurationResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_SetTypeConfigurationCommand");
    var de_SetTypeDefaultVersionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_SetTypeDefaultVersionOutput(data3.SetTypeDefaultVersionResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_SetTypeDefaultVersionCommand");
    var de_SignalResourceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_SignalResourceCommand");
    var de_StartResourceScanCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_StartResourceScanOutput(data3.StartResourceScanResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_StartResourceScanCommand");
    var de_StopStackSetOperationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_StopStackSetOperationOutput(data3.StopStackSetOperationResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_StopStackSetOperationCommand");
    var de_TestTypeCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_TestTypeOutput(data3.TestTypeResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_TestTypeCommand");
    var de_UpdateGeneratedTemplateCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_UpdateGeneratedTemplateOutput(data3.UpdateGeneratedTemplateResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UpdateGeneratedTemplateCommand");
    var de_UpdateStackCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_UpdateStackOutput(data3.UpdateStackResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UpdateStackCommand");
    var de_UpdateStackInstancesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_UpdateStackInstancesOutput(data3.UpdateStackInstancesResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UpdateStackInstancesCommand");
    var de_UpdateStackSetCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_UpdateStackSetOutput(data3.UpdateStackSetResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UpdateStackSetCommand");
    var de_UpdateTerminationProtectionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_UpdateTerminationProtectionOutput(data3.UpdateTerminationProtectionResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UpdateTerminationProtectionCommand");
    var de_ValidateTemplateCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ValidateTemplateOutput(data3.ValidateTemplateResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ValidateTemplateCommand");
    var de_CommandError3 = /* @__PURE__ */ __name2(async (output, context) => {
      const parsedOutput = {
        ...output,
        body: await (0, import_core22.parseXmlErrorBody)(output.body, context)
      };
      const errorCode = loadQueryErrorCode2(output, parsedOutput.body);
      switch (errorCode) {
        case "InvalidOperationException":
        case "com.amazonaws.cloudformation#InvalidOperationException":
          throw await de_InvalidOperationExceptionRes(parsedOutput, context);
        case "OperationNotFoundException":
        case "com.amazonaws.cloudformation#OperationNotFoundException":
          throw await de_OperationNotFoundExceptionRes(parsedOutput, context);
        case "CFNRegistryException":
        case "com.amazonaws.cloudformation#CFNRegistryException":
          throw await de_CFNRegistryExceptionRes(parsedOutput, context);
        case "TypeNotFoundException":
        case "com.amazonaws.cloudformation#TypeNotFoundException":
          throw await de_TypeNotFoundExceptionRes(parsedOutput, context);
        case "TypeConfigurationNotFoundException":
        case "com.amazonaws.cloudformation#TypeConfigurationNotFoundException":
          throw await de_TypeConfigurationNotFoundExceptionRes(parsedOutput, context);
        case "TokenAlreadyExistsException":
        case "com.amazonaws.cloudformation#TokenAlreadyExistsException":
          throw await de_TokenAlreadyExistsExceptionRes(parsedOutput, context);
        case "AlreadyExistsException":
        case "com.amazonaws.cloudformation#AlreadyExistsException":
          throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
        case "InsufficientCapabilitiesException":
        case "com.amazonaws.cloudformation#InsufficientCapabilitiesException":
          throw await de_InsufficientCapabilitiesExceptionRes(parsedOutput, context);
        case "LimitExceededException":
        case "com.amazonaws.cloudformation#LimitExceededException":
          throw await de_LimitExceededExceptionRes(parsedOutput, context);
        case "ConcurrentResourcesLimitExceeded":
        case "com.amazonaws.cloudformation#ConcurrentResourcesLimitExceededException":
          throw await de_ConcurrentResourcesLimitExceededExceptionRes(parsedOutput, context);
        case "OperationIdAlreadyExistsException":
        case "com.amazonaws.cloudformation#OperationIdAlreadyExistsException":
          throw await de_OperationIdAlreadyExistsExceptionRes(parsedOutput, context);
        case "OperationInProgressException":
        case "com.amazonaws.cloudformation#OperationInProgressException":
          throw await de_OperationInProgressExceptionRes(parsedOutput, context);
        case "StackSetNotFoundException":
        case "com.amazonaws.cloudformation#StackSetNotFoundException":
          throw await de_StackSetNotFoundExceptionRes(parsedOutput, context);
        case "StaleRequestException":
        case "com.amazonaws.cloudformation#StaleRequestException":
          throw await de_StaleRequestExceptionRes(parsedOutput, context);
        case "CreatedButModifiedException":
        case "com.amazonaws.cloudformation#CreatedButModifiedException":
          throw await de_CreatedButModifiedExceptionRes(parsedOutput, context);
        case "NameAlreadyExistsException":
        case "com.amazonaws.cloudformation#NameAlreadyExistsException":
          throw await de_NameAlreadyExistsExceptionRes(parsedOutput, context);
        case "InvalidChangeSetStatus":
        case "com.amazonaws.cloudformation#InvalidChangeSetStatusException":
          throw await de_InvalidChangeSetStatusExceptionRes(parsedOutput, context);
        case "GeneratedTemplateNotFound":
        case "com.amazonaws.cloudformation#GeneratedTemplateNotFoundException":
          throw await de_GeneratedTemplateNotFoundExceptionRes(parsedOutput, context);
        case "StackSetNotEmptyException":
        case "com.amazonaws.cloudformation#StackSetNotEmptyException":
          throw await de_StackSetNotEmptyExceptionRes(parsedOutput, context);
        case "ChangeSetNotFound":
        case "com.amazonaws.cloudformation#ChangeSetNotFoundException":
          throw await de_ChangeSetNotFoundExceptionRes(parsedOutput, context);
        case "ResourceScanNotFound":
        case "com.amazonaws.cloudformation#ResourceScanNotFoundException":
          throw await de_ResourceScanNotFoundExceptionRes(parsedOutput, context);
        case "StackInstanceNotFoundException":
        case "com.amazonaws.cloudformation#StackInstanceNotFoundException":
          throw await de_StackInstanceNotFoundExceptionRes(parsedOutput, context);
        case "StackRefactorNotFoundException":
        case "com.amazonaws.cloudformation#StackRefactorNotFoundException":
          throw await de_StackRefactorNotFoundExceptionRes(parsedOutput, context);
        case "StackNotFoundException":
        case "com.amazonaws.cloudformation#StackNotFoundException":
          throw await de_StackNotFoundExceptionRes(parsedOutput, context);
        case "HookResultNotFound":
        case "com.amazonaws.cloudformation#HookResultNotFoundException":
          throw await de_HookResultNotFoundExceptionRes(parsedOutput, context);
        case "ResourceScanInProgress":
        case "com.amazonaws.cloudformation#ResourceScanInProgressException":
          throw await de_ResourceScanInProgressExceptionRes(parsedOutput, context);
        case "ConditionalCheckFailed":
        case "com.amazonaws.cloudformation#OperationStatusCheckFailedException":
          throw await de_OperationStatusCheckFailedExceptionRes(parsedOutput, context);
        case "InvalidStateTransition":
        case "com.amazonaws.cloudformation#InvalidStateTransitionException":
          throw await de_InvalidStateTransitionExceptionRes(parsedOutput, context);
        case "ResourceScanLimitExceeded":
        case "com.amazonaws.cloudformation#ResourceScanLimitExceededException":
          throw await de_ResourceScanLimitExceededExceptionRes(parsedOutput, context);
        default:
          const parsedBody = parsedOutput.body;
          return throwDefaultError3({
            output,
            parsedBody: parsedBody.Error,
            errorCode
          });
      }
    }, "de_CommandError");
    var de_AlreadyExistsExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_AlreadyExistsException(body.Error, context);
      const exception = new AlreadyExistsException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_AlreadyExistsExceptionRes");
    var de_CFNRegistryExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_CFNRegistryException(body.Error, context);
      const exception = new CFNRegistryException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_CFNRegistryExceptionRes");
    var de_ChangeSetNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_ChangeSetNotFoundException(body.Error, context);
      const exception = new ChangeSetNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ChangeSetNotFoundExceptionRes");
    var de_ConcurrentResourcesLimitExceededExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_ConcurrentResourcesLimitExceededException(body.Error, context);
      const exception = new ConcurrentResourcesLimitExceededException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ConcurrentResourcesLimitExceededExceptionRes");
    var de_CreatedButModifiedExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_CreatedButModifiedException(body.Error, context);
      const exception = new CreatedButModifiedException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_CreatedButModifiedExceptionRes");
    var de_GeneratedTemplateNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_GeneratedTemplateNotFoundException(body.Error, context);
      const exception = new GeneratedTemplateNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_GeneratedTemplateNotFoundExceptionRes");
    var de_HookResultNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_HookResultNotFoundException(body.Error, context);
      const exception = new HookResultNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_HookResultNotFoundExceptionRes");
    var de_InsufficientCapabilitiesExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_InsufficientCapabilitiesException(body.Error, context);
      const exception = new InsufficientCapabilitiesException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InsufficientCapabilitiesExceptionRes");
    var de_InvalidChangeSetStatusExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_InvalidChangeSetStatusException(body.Error, context);
      const exception = new InvalidChangeSetStatusException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidChangeSetStatusExceptionRes");
    var de_InvalidOperationExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_InvalidOperationException(body.Error, context);
      const exception = new InvalidOperationException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidOperationExceptionRes");
    var de_InvalidStateTransitionExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_InvalidStateTransitionException(body.Error, context);
      const exception = new InvalidStateTransitionException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidStateTransitionExceptionRes");
    var de_LimitExceededExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_LimitExceededException(body.Error, context);
      const exception = new LimitExceededException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_LimitExceededExceptionRes");
    var de_NameAlreadyExistsExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_NameAlreadyExistsException(body.Error, context);
      const exception = new NameAlreadyExistsException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_NameAlreadyExistsExceptionRes");
    var de_OperationIdAlreadyExistsExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_OperationIdAlreadyExistsException(body.Error, context);
      const exception = new OperationIdAlreadyExistsException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_OperationIdAlreadyExistsExceptionRes");
    var de_OperationInProgressExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_OperationInProgressException(body.Error, context);
      const exception = new OperationInProgressException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_OperationInProgressExceptionRes");
    var de_OperationNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_OperationNotFoundException(body.Error, context);
      const exception = new OperationNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_OperationNotFoundExceptionRes");
    var de_OperationStatusCheckFailedExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_OperationStatusCheckFailedException(body.Error, context);
      const exception = new OperationStatusCheckFailedException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_OperationStatusCheckFailedExceptionRes");
    var de_ResourceScanInProgressExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_ResourceScanInProgressException(body.Error, context);
      const exception = new ResourceScanInProgressException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ResourceScanInProgressExceptionRes");
    var de_ResourceScanLimitExceededExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_ResourceScanLimitExceededException(body.Error, context);
      const exception = new ResourceScanLimitExceededException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ResourceScanLimitExceededExceptionRes");
    var de_ResourceScanNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_ResourceScanNotFoundException(body.Error, context);
      const exception = new ResourceScanNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ResourceScanNotFoundExceptionRes");
    var de_StackInstanceNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_StackInstanceNotFoundException(body.Error, context);
      const exception = new StackInstanceNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_StackInstanceNotFoundExceptionRes");
    var de_StackNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_StackNotFoundException(body.Error, context);
      const exception = new StackNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_StackNotFoundExceptionRes");
    var de_StackRefactorNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_StackRefactorNotFoundException(body.Error, context);
      const exception = new StackRefactorNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_StackRefactorNotFoundExceptionRes");
    var de_StackSetNotEmptyExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_StackSetNotEmptyException(body.Error, context);
      const exception = new StackSetNotEmptyException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_StackSetNotEmptyExceptionRes");
    var de_StackSetNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_StackSetNotFoundException(body.Error, context);
      const exception = new StackSetNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_StackSetNotFoundExceptionRes");
    var de_StaleRequestExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_StaleRequestException(body.Error, context);
      const exception = new StaleRequestException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_StaleRequestExceptionRes");
    var de_TokenAlreadyExistsExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_TokenAlreadyExistsException(body.Error, context);
      const exception = new TokenAlreadyExistsException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_TokenAlreadyExistsExceptionRes");
    var de_TypeConfigurationNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_TypeConfigurationNotFoundException(body.Error, context);
      const exception = new TypeConfigurationNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_TypeConfigurationNotFoundExceptionRes");
    var de_TypeNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_TypeNotFoundException(body.Error, context);
      const exception = new TypeNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_TypeNotFoundExceptionRes");
    var se_AccountList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_AccountList");
    var se_ActivateOrganizationsAccessInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      return entries;
    }, "se_ActivateOrganizationsAccessInput");
    var se_ActivateTypeInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_T2] != null) {
        entries[_T2] = input[_T2];
      }
      if (input[_PTA] != null) {
        entries[_PTA] = input[_PTA];
      }
      if (input[_PI2] != null) {
        entries[_PI2] = input[_PI2];
      }
      if (input[_TN] != null) {
        entries[_TN] = input[_TN];
      }
      if (input[_TNA] != null) {
        entries[_TNA] = input[_TNA];
      }
      if (input[_AU] != null) {
        entries[_AU] = input[_AU];
      }
      if (input[_LC] != null) {
        const memberEntries = se_LoggingConfig(input[_LC], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `LoggingConfig.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_ERA] != null) {
        entries[_ERA] = input[_ERA];
      }
      if (input[_VB] != null) {
        entries[_VB] = input[_VB];
      }
      if (input[_MV] != null) {
        entries[_MV] = input[_MV];
      }
      return entries;
    }, "se_ActivateTypeInput");
    var se_AutoDeployment = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_E2] != null) {
        entries[_E2] = input[_E2];
      }
      if (input[_RSOAR] != null) {
        entries[_RSOAR] = input[_RSOAR];
      }
      return entries;
    }, "se_AutoDeployment");
    var se_BatchDescribeTypeConfigurationsInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TCI] != null) {
        const memberEntries = se_TypeConfigurationIdentifiers(input[_TCI], context);
        if (input[_TCI]?.length === 0) {
          entries.TypeConfigurationIdentifiers = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TypeConfigurationIdentifiers.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_BatchDescribeTypeConfigurationsInput");
    var se_CancelUpdateStackInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SN2] != null) {
        entries[_SN2] = input[_SN2];
      }
      if (input[_CRT] != null) {
        entries[_CRT] = input[_CRT];
      }
      return entries;
    }, "se_CancelUpdateStackInput");
    var se_Capabilities = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_Capabilities");
    var se_ContinueUpdateRollbackInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SN2] != null) {
        entries[_SN2] = input[_SN2];
      }
      if (input[_RARN] != null) {
        entries[_RARN] = input[_RARN];
      }
      if (input[_RTS] != null) {
        const memberEntries = se_ResourcesToSkip(input[_RTS], context);
        if (input[_RTS]?.length === 0) {
          entries.ResourcesToSkip = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ResourcesToSkip.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_CRT] != null) {
        entries[_CRT] = input[_CRT];
      }
      return entries;
    }, "se_ContinueUpdateRollbackInput");
    var se_CreateChangeSetInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SN2] != null) {
        entries[_SN2] = input[_SN2];
      }
      if (input[_TB] != null) {
        entries[_TB] = input[_TB];
      }
      if (input[_TURL] != null) {
        entries[_TURL] = input[_TURL];
      }
      if (input[_UPT] != null) {
        entries[_UPT] = input[_UPT];
      }
      if (input[_P2] != null) {
        const memberEntries = se_Parameters(input[_P2], context);
        if (input[_P2]?.length === 0) {
          entries.Parameters = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Parameters.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_C2] != null) {
        const memberEntries = se_Capabilities(input[_C2], context);
        if (input[_C2]?.length === 0) {
          entries.Capabilities = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Capabilities.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_RTe] != null) {
        const memberEntries = se_ResourceTypes(input[_RTe], context);
        if (input[_RTe]?.length === 0) {
          entries.ResourceTypes = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ResourceTypes.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_RARN] != null) {
        entries[_RARN] = input[_RARN];
      }
      if (input[_RC] != null) {
        const memberEntries = se_RollbackConfiguration(input[_RC], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `RollbackConfiguration.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_NARN] != null) {
        const memberEntries = se_NotificationARNs(input[_NARN], context);
        if (input[_NARN]?.length === 0) {
          entries.NotificationARNs = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `NotificationARNs.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_Ta] != null) {
        const memberEntries = se_Tags(input[_Ta], context);
        if (input[_Ta]?.length === 0) {
          entries.Tags = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Tags.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_CSN] != null) {
        entries[_CSN] = input[_CSN];
      }
      if (input[_CT] != null) {
        entries[_CT] = input[_CT];
      }
      if (input[_D] != null) {
        entries[_D] = input[_D];
      }
      if (input[_CST] != null) {
        entries[_CST] = input[_CST];
      }
      if (input[_RTI] != null) {
        const memberEntries = se_ResourcesToImport(input[_RTI], context);
        if (input[_RTI]?.length === 0) {
          entries.ResourcesToImport = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ResourcesToImport.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_INS] != null) {
        entries[_INS] = input[_INS];
      }
      if (input[_OSF] != null) {
        entries[_OSF] = input[_OSF];
      }
      if (input[_IER] != null) {
        entries[_IER] = input[_IER];
      }
      return entries;
    }, "se_CreateChangeSetInput");
    var se_CreateGeneratedTemplateInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_R] != null) {
        const memberEntries = se_ResourceDefinitions(input[_R], context);
        if (input[_R]?.length === 0) {
          entries.Resources = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Resources.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_GTN] != null) {
        entries[_GTN] = input[_GTN];
      }
      if (input[_SN2] != null) {
        entries[_SN2] = input[_SN2];
      }
      if (input[_TC2] != null) {
        const memberEntries = se_TemplateConfiguration(input[_TC2], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TemplateConfiguration.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_CreateGeneratedTemplateInput");
    var se_CreateStackInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SN2] != null) {
        entries[_SN2] = input[_SN2];
      }
      if (input[_TB] != null) {
        entries[_TB] = input[_TB];
      }
      if (input[_TURL] != null) {
        entries[_TURL] = input[_TURL];
      }
      if (input[_P2] != null) {
        const memberEntries = se_Parameters(input[_P2], context);
        if (input[_P2]?.length === 0) {
          entries.Parameters = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Parameters.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_DR] != null) {
        entries[_DR] = input[_DR];
      }
      if (input[_RC] != null) {
        const memberEntries = se_RollbackConfiguration(input[_RC], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `RollbackConfiguration.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_TIM] != null) {
        entries[_TIM] = input[_TIM];
      }
      if (input[_NARN] != null) {
        const memberEntries = se_NotificationARNs(input[_NARN], context);
        if (input[_NARN]?.length === 0) {
          entries.NotificationARNs = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `NotificationARNs.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_C2] != null) {
        const memberEntries = se_Capabilities(input[_C2], context);
        if (input[_C2]?.length === 0) {
          entries.Capabilities = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Capabilities.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_RTe] != null) {
        const memberEntries = se_ResourceTypes(input[_RTe], context);
        if (input[_RTe]?.length === 0) {
          entries.ResourceTypes = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ResourceTypes.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_RARN] != null) {
        entries[_RARN] = input[_RARN];
      }
      if (input[_OF] != null) {
        entries[_OF] = input[_OF];
      }
      if (input[_SPB] != null) {
        entries[_SPB] = input[_SPB];
      }
      if (input[_SPURL] != null) {
        entries[_SPURL] = input[_SPURL];
      }
      if (input[_Ta] != null) {
        const memberEntries = se_Tags(input[_Ta], context);
        if (input[_Ta]?.length === 0) {
          entries.Tags = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Tags.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_CRT] != null) {
        entries[_CRT] = input[_CRT];
      }
      if (input[_ETP] != null) {
        entries[_ETP] = input[_ETP];
      }
      if (input[_REOC] != null) {
        entries[_REOC] = input[_REOC];
      }
      return entries;
    }, "se_CreateStackInput");
    var se_CreateStackInstancesInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SSN] != null) {
        entries[_SSN] = input[_SSN];
      }
      if (input[_Ac] != null) {
        const memberEntries = se_AccountList(input[_Ac], context);
        if (input[_Ac]?.length === 0) {
          entries.Accounts = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Accounts.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_DTep] != null) {
        const memberEntries = se_DeploymentTargets(input[_DTep], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `DeploymentTargets.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_Re] != null) {
        const memberEntries = se_RegionList(input[_Re], context);
        if (input[_Re]?.length === 0) {
          entries.Regions = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Regions.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_PO] != null) {
        const memberEntries = se_Parameters(input[_PO], context);
        if (input[_PO]?.length === 0) {
          entries.ParameterOverrides = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ParameterOverrides.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_OP] != null) {
        const memberEntries = se_StackSetOperationPreferences(input[_OP], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `OperationPreferences.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_OI] === void 0) {
        input[_OI] = (0, import_uuid2.v4)();
      }
      if (input[_OI] != null) {
        entries[_OI] = input[_OI];
      }
      if (input[_CA2] != null) {
        entries[_CA2] = input[_CA2];
      }
      return entries;
    }, "se_CreateStackInstancesInput");
    var se_CreateStackRefactorInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_D] != null) {
        entries[_D] = input[_D];
      }
      if (input[_ESC] != null) {
        entries[_ESC] = input[_ESC];
      }
      if (input[_RM] != null) {
        const memberEntries = se_ResourceMappings(input[_RM], context);
        if (input[_RM]?.length === 0) {
          entries.ResourceMappings = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ResourceMappings.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_SD] != null) {
        const memberEntries = se_StackDefinitions(input[_SD], context);
        if (input[_SD]?.length === 0) {
          entries.StackDefinitions = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `StackDefinitions.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_CreateStackRefactorInput");
    var se_CreateStackSetInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SSN] != null) {
        entries[_SSN] = input[_SSN];
      }
      if (input[_D] != null) {
        entries[_D] = input[_D];
      }
      if (input[_TB] != null) {
        entries[_TB] = input[_TB];
      }
      if (input[_TURL] != null) {
        entries[_TURL] = input[_TURL];
      }
      if (input[_SI2] != null) {
        entries[_SI2] = input[_SI2];
      }
      if (input[_P2] != null) {
        const memberEntries = se_Parameters(input[_P2], context);
        if (input[_P2]?.length === 0) {
          entries.Parameters = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Parameters.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_C2] != null) {
        const memberEntries = se_Capabilities(input[_C2], context);
        if (input[_C2]?.length === 0) {
          entries.Capabilities = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Capabilities.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_Ta] != null) {
        const memberEntries = se_Tags(input[_Ta], context);
        if (input[_Ta]?.length === 0) {
          entries.Tags = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Tags.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_ARARN] != null) {
        entries[_ARARN] = input[_ARARN];
      }
      if (input[_ERN] != null) {
        entries[_ERN] = input[_ERN];
      }
      if (input[_PM] != null) {
        entries[_PM] = input[_PM];
      }
      if (input[_AD] != null) {
        const memberEntries = se_AutoDeployment(input[_AD], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AutoDeployment.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_CA2] != null) {
        entries[_CA2] = input[_CA2];
      }
      if (input[_CRT] === void 0) {
        input[_CRT] = (0, import_uuid2.v4)();
      }
      if (input[_CRT] != null) {
        entries[_CRT] = input[_CRT];
      }
      if (input[_ME] != null) {
        const memberEntries = se_ManagedExecution(input[_ME], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ManagedExecution.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_CreateStackSetInput");
    var se_DeactivateOrganizationsAccessInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      return entries;
    }, "se_DeactivateOrganizationsAccessInput");
    var se_DeactivateTypeInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TN] != null) {
        entries[_TN] = input[_TN];
      }
      if (input[_T2] != null) {
        entries[_T2] = input[_T2];
      }
      if (input[_Ar2] != null) {
        entries[_Ar2] = input[_Ar2];
      }
      return entries;
    }, "se_DeactivateTypeInput");
    var se_DeleteChangeSetInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CSN] != null) {
        entries[_CSN] = input[_CSN];
      }
      if (input[_SN2] != null) {
        entries[_SN2] = input[_SN2];
      }
      return entries;
    }, "se_DeleteChangeSetInput");
    var se_DeleteGeneratedTemplateInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_GTN] != null) {
        entries[_GTN] = input[_GTN];
      }
      return entries;
    }, "se_DeleteGeneratedTemplateInput");
    var se_DeleteStackInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SN2] != null) {
        entries[_SN2] = input[_SN2];
      }
      if (input[_RR] != null) {
        const memberEntries = se_RetainResources(input[_RR], context);
        if (input[_RR]?.length === 0) {
          entries.RetainResources = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `RetainResources.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_RARN] != null) {
        entries[_RARN] = input[_RARN];
      }
      if (input[_CRT] != null) {
        entries[_CRT] = input[_CRT];
      }
      if (input[_DM] != null) {
        entries[_DM] = input[_DM];
      }
      return entries;
    }, "se_DeleteStackInput");
    var se_DeleteStackInstancesInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SSN] != null) {
        entries[_SSN] = input[_SSN];
      }
      if (input[_Ac] != null) {
        const memberEntries = se_AccountList(input[_Ac], context);
        if (input[_Ac]?.length === 0) {
          entries.Accounts = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Accounts.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_DTep] != null) {
        const memberEntries = se_DeploymentTargets(input[_DTep], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `DeploymentTargets.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_Re] != null) {
        const memberEntries = se_RegionList(input[_Re], context);
        if (input[_Re]?.length === 0) {
          entries.Regions = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Regions.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_OP] != null) {
        const memberEntries = se_StackSetOperationPreferences(input[_OP], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `OperationPreferences.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_RSe] != null) {
        entries[_RSe] = input[_RSe];
      }
      if (input[_OI] === void 0) {
        input[_OI] = (0, import_uuid2.v4)();
      }
      if (input[_OI] != null) {
        entries[_OI] = input[_OI];
      }
      if (input[_CA2] != null) {
        entries[_CA2] = input[_CA2];
      }
      return entries;
    }, "se_DeleteStackInstancesInput");
    var se_DeleteStackSetInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SSN] != null) {
        entries[_SSN] = input[_SSN];
      }
      if (input[_CA2] != null) {
        entries[_CA2] = input[_CA2];
      }
      return entries;
    }, "se_DeleteStackSetInput");
    var se_DeploymentTargets = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Ac] != null) {
        const memberEntries = se_AccountList(input[_Ac], context);
        if (input[_Ac]?.length === 0) {
          entries.Accounts = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Accounts.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_AUc] != null) {
        entries[_AUc] = input[_AUc];
      }
      if (input[_OUI] != null) {
        const memberEntries = se_OrganizationalUnitIdList(input[_OUI], context);
        if (input[_OUI]?.length === 0) {
          entries.OrganizationalUnitIds = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `OrganizationalUnitIds.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_AFT] != null) {
        entries[_AFT] = input[_AFT];
      }
      return entries;
    }, "se_DeploymentTargets");
    var se_DeregisterTypeInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Ar2] != null) {
        entries[_Ar2] = input[_Ar2];
      }
      if (input[_T2] != null) {
        entries[_T2] = input[_T2];
      }
      if (input[_TN] != null) {
        entries[_TN] = input[_TN];
      }
      if (input[_VI] != null) {
        entries[_VI] = input[_VI];
      }
      return entries;
    }, "se_DeregisterTypeInput");
    var se_DescribeAccountLimitsInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      return entries;
    }, "se_DescribeAccountLimitsInput");
    var se_DescribeChangeSetHooksInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CSN] != null) {
        entries[_CSN] = input[_CSN];
      }
      if (input[_SN2] != null) {
        entries[_SN2] = input[_SN2];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_LRI] != null) {
        entries[_LRI] = input[_LRI];
      }
      return entries;
    }, "se_DescribeChangeSetHooksInput");
    var se_DescribeChangeSetInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CSN] != null) {
        entries[_CSN] = input[_CSN];
      }
      if (input[_SN2] != null) {
        entries[_SN2] = input[_SN2];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_IPV] != null) {
        entries[_IPV] = input[_IPV];
      }
      return entries;
    }, "se_DescribeChangeSetInput");
    var se_DescribeGeneratedTemplateInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_GTN] != null) {
        entries[_GTN] = input[_GTN];
      }
      return entries;
    }, "se_DescribeGeneratedTemplateInput");
    var se_DescribeOrganizationsAccessInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CA2] != null) {
        entries[_CA2] = input[_CA2];
      }
      return entries;
    }, "se_DescribeOrganizationsAccessInput");
    var se_DescribePublisherInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_PI2] != null) {
        entries[_PI2] = input[_PI2];
      }
      return entries;
    }, "se_DescribePublisherInput");
    var se_DescribeResourceScanInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RSI] != null) {
        entries[_RSI] = input[_RSI];
      }
      return entries;
    }, "se_DescribeResourceScanInput");
    var se_DescribeStackDriftDetectionStatusInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SDDI] != null) {
        entries[_SDDI] = input[_SDDI];
      }
      return entries;
    }, "se_DescribeStackDriftDetectionStatusInput");
    var se_DescribeStackEventsInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SN2] != null) {
        entries[_SN2] = input[_SN2];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      return entries;
    }, "se_DescribeStackEventsInput");
    var se_DescribeStackInstanceInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SSN] != null) {
        entries[_SSN] = input[_SSN];
      }
      if (input[_SIA] != null) {
        entries[_SIA] = input[_SIA];
      }
      if (input[_SIR] != null) {
        entries[_SIR] = input[_SIR];
      }
      if (input[_CA2] != null) {
        entries[_CA2] = input[_CA2];
      }
      return entries;
    }, "se_DescribeStackInstanceInput");
    var se_DescribeStackRefactorInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SRI] != null) {
        entries[_SRI] = input[_SRI];
      }
      return entries;
    }, "se_DescribeStackRefactorInput");
    var se_DescribeStackResourceDriftsInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SN2] != null) {
        entries[_SN2] = input[_SN2];
      }
      if (input[_SRDSF] != null) {
        const memberEntries = se_StackResourceDriftStatusFilters(input[_SRDSF], context);
        if (input[_SRDSF]?.length === 0) {
          entries.StackResourceDriftStatusFilters = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `StackResourceDriftStatusFilters.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      return entries;
    }, "se_DescribeStackResourceDriftsInput");
    var se_DescribeStackResourceInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SN2] != null) {
        entries[_SN2] = input[_SN2];
      }
      if (input[_LRI] != null) {
        entries[_LRI] = input[_LRI];
      }
      return entries;
    }, "se_DescribeStackResourceInput");
    var se_DescribeStackResourcesInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SN2] != null) {
        entries[_SN2] = input[_SN2];
      }
      if (input[_LRI] != null) {
        entries[_LRI] = input[_LRI];
      }
      if (input[_PRI] != null) {
        entries[_PRI] = input[_PRI];
      }
      return entries;
    }, "se_DescribeStackResourcesInput");
    var se_DescribeStackSetInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SSN] != null) {
        entries[_SSN] = input[_SSN];
      }
      if (input[_CA2] != null) {
        entries[_CA2] = input[_CA2];
      }
      return entries;
    }, "se_DescribeStackSetInput");
    var se_DescribeStackSetOperationInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SSN] != null) {
        entries[_SSN] = input[_SSN];
      }
      if (input[_OI] != null) {
        entries[_OI] = input[_OI];
      }
      if (input[_CA2] != null) {
        entries[_CA2] = input[_CA2];
      }
      return entries;
    }, "se_DescribeStackSetOperationInput");
    var se_DescribeStacksInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SN2] != null) {
        entries[_SN2] = input[_SN2];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      return entries;
    }, "se_DescribeStacksInput");
    var se_DescribeTypeInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_T2] != null) {
        entries[_T2] = input[_T2];
      }
      if (input[_TN] != null) {
        entries[_TN] = input[_TN];
      }
      if (input[_Ar2] != null) {
        entries[_Ar2] = input[_Ar2];
      }
      if (input[_VI] != null) {
        entries[_VI] = input[_VI];
      }
      if (input[_PI2] != null) {
        entries[_PI2] = input[_PI2];
      }
      if (input[_PVN] != null) {
        entries[_PVN] = input[_PVN];
      }
      return entries;
    }, "se_DescribeTypeInput");
    var se_DescribeTypeRegistrationInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RTeg] != null) {
        entries[_RTeg] = input[_RTeg];
      }
      return entries;
    }, "se_DescribeTypeRegistrationInput");
    var se_DetectStackDriftInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SN2] != null) {
        entries[_SN2] = input[_SN2];
      }
      if (input[_LRIo] != null) {
        const memberEntries = se_LogicalResourceIds(input[_LRIo], context);
        if (input[_LRIo]?.length === 0) {
          entries.LogicalResourceIds = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `LogicalResourceIds.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DetectStackDriftInput");
    var se_DetectStackResourceDriftInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SN2] != null) {
        entries[_SN2] = input[_SN2];
      }
      if (input[_LRI] != null) {
        entries[_LRI] = input[_LRI];
      }
      return entries;
    }, "se_DetectStackResourceDriftInput");
    var se_DetectStackSetDriftInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SSN] != null) {
        entries[_SSN] = input[_SSN];
      }
      if (input[_OP] != null) {
        const memberEntries = se_StackSetOperationPreferences(input[_OP], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `OperationPreferences.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_OI] === void 0) {
        input[_OI] = (0, import_uuid2.v4)();
      }
      if (input[_OI] != null) {
        entries[_OI] = input[_OI];
      }
      if (input[_CA2] != null) {
        entries[_CA2] = input[_CA2];
      }
      return entries;
    }, "se_DetectStackSetDriftInput");
    var se_EstimateTemplateCostInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TB] != null) {
        entries[_TB] = input[_TB];
      }
      if (input[_TURL] != null) {
        entries[_TURL] = input[_TURL];
      }
      if (input[_P2] != null) {
        const memberEntries = se_Parameters(input[_P2], context);
        if (input[_P2]?.length === 0) {
          entries.Parameters = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Parameters.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_EstimateTemplateCostInput");
    var se_ExecuteChangeSetInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CSN] != null) {
        entries[_CSN] = input[_CSN];
      }
      if (input[_SN2] != null) {
        entries[_SN2] = input[_SN2];
      }
      if (input[_CRT] != null) {
        entries[_CRT] = input[_CRT];
      }
      if (input[_DR] != null) {
        entries[_DR] = input[_DR];
      }
      if (input[_REOC] != null) {
        entries[_REOC] = input[_REOC];
      }
      return entries;
    }, "se_ExecuteChangeSetInput");
    var se_ExecuteStackRefactorInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SRI] != null) {
        entries[_SRI] = input[_SRI];
      }
      return entries;
    }, "se_ExecuteStackRefactorInput");
    var se_GetGeneratedTemplateInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_F] != null) {
        entries[_F] = input[_F];
      }
      if (input[_GTN] != null) {
        entries[_GTN] = input[_GTN];
      }
      return entries;
    }, "se_GetGeneratedTemplateInput");
    var se_GetStackPolicyInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SN2] != null) {
        entries[_SN2] = input[_SN2];
      }
      return entries;
    }, "se_GetStackPolicyInput");
    var se_GetTemplateInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SN2] != null) {
        entries[_SN2] = input[_SN2];
      }
      if (input[_CSN] != null) {
        entries[_CSN] = input[_CSN];
      }
      if (input[_TS] != null) {
        entries[_TS] = input[_TS];
      }
      return entries;
    }, "se_GetTemplateInput");
    var se_GetTemplateSummaryInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TB] != null) {
        entries[_TB] = input[_TB];
      }
      if (input[_TURL] != null) {
        entries[_TURL] = input[_TURL];
      }
      if (input[_SN2] != null) {
        entries[_SN2] = input[_SN2];
      }
      if (input[_SSN] != null) {
        entries[_SSN] = input[_SSN];
      }
      if (input[_CA2] != null) {
        entries[_CA2] = input[_CA2];
      }
      if (input[_TSC] != null) {
        const memberEntries = se_TemplateSummaryConfig(input[_TSC], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TemplateSummaryConfig.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_GetTemplateSummaryInput");
    var se_ImportStacksToStackSetInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SSN] != null) {
        entries[_SSN] = input[_SSN];
      }
      if (input[_SIt] != null) {
        const memberEntries = se_StackIdList(input[_SIt], context);
        if (input[_SIt]?.length === 0) {
          entries.StackIds = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `StackIds.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_SIU] != null) {
        entries[_SIU] = input[_SIU];
      }
      if (input[_OUI] != null) {
        const memberEntries = se_OrganizationalUnitIdList(input[_OUI], context);
        if (input[_OUI]?.length === 0) {
          entries.OrganizationalUnitIds = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `OrganizationalUnitIds.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_OP] != null) {
        const memberEntries = se_StackSetOperationPreferences(input[_OP], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `OperationPreferences.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_OI] === void 0) {
        input[_OI] = (0, import_uuid2.v4)();
      }
      if (input[_OI] != null) {
        entries[_OI] = input[_OI];
      }
      if (input[_CA2] != null) {
        entries[_CA2] = input[_CA2];
      }
      return entries;
    }, "se_ImportStacksToStackSetInput");
    var se_JazzLogicalResourceIds = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_JazzLogicalResourceIds");
    var se_JazzResourceIdentifierProperties = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      Object.keys(input).filter((key) => input[key] != null).forEach((key) => {
        entries[`entry.${counter}.key`] = key;
        entries[`entry.${counter}.value`] = input[key];
        counter++;
      });
      return entries;
    }, "se_JazzResourceIdentifierProperties");
    var se_ListChangeSetsInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SN2] != null) {
        entries[_SN2] = input[_SN2];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      return entries;
    }, "se_ListChangeSetsInput");
    var se_ListExportsInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      return entries;
    }, "se_ListExportsInput");
    var se_ListGeneratedTemplatesInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      return entries;
    }, "se_ListGeneratedTemplatesInput");
    var se_ListHookResultsInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TTa] != null) {
        entries[_TTa] = input[_TTa];
      }
      if (input[_TI] != null) {
        entries[_TI] = input[_TI];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      return entries;
    }, "se_ListHookResultsInput");
    var se_ListImportsInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_EN] != null) {
        entries[_EN] = input[_EN];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      return entries;
    }, "se_ListImportsInput");
    var se_ListResourceScanRelatedResourcesInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RSI] != null) {
        entries[_RSI] = input[_RSI];
      }
      if (input[_R] != null) {
        const memberEntries = se_ScannedResourceIdentifiers(input[_R], context);
        if (input[_R]?.length === 0) {
          entries.Resources = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Resources.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      return entries;
    }, "se_ListResourceScanRelatedResourcesInput");
    var se_ListResourceScanResourcesInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RSI] != null) {
        entries[_RSI] = input[_RSI];
      }
      if (input[_RI] != null) {
        entries[_RI] = input[_RI];
      }
      if (input[_RTP] != null) {
        entries[_RTP] = input[_RTP];
      }
      if (input[_TK] != null) {
        entries[_TK] = input[_TK];
      }
      if (input[_TV] != null) {
        entries[_TV] = input[_TV];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      return entries;
    }, "se_ListResourceScanResourcesInput");
    var se_ListResourceScansInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_STF] != null) {
        entries[_STF] = input[_STF];
      }
      return entries;
    }, "se_ListResourceScansInput");
    var se_ListStackInstanceResourceDriftsInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SSN] != null) {
        entries[_SSN] = input[_SSN];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_SIRDS] != null) {
        const memberEntries = se_StackResourceDriftStatusFilters(input[_SIRDS], context);
        if (input[_SIRDS]?.length === 0) {
          entries.StackInstanceResourceDriftStatuses = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `StackInstanceResourceDriftStatuses.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_SIA] != null) {
        entries[_SIA] = input[_SIA];
      }
      if (input[_SIR] != null) {
        entries[_SIR] = input[_SIR];
      }
      if (input[_OI] != null) {
        entries[_OI] = input[_OI];
      }
      if (input[_CA2] != null) {
        entries[_CA2] = input[_CA2];
      }
      return entries;
    }, "se_ListStackInstanceResourceDriftsInput");
    var se_ListStackInstancesInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SSN] != null) {
        entries[_SSN] = input[_SSN];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_StackInstanceFilters(input[_Fi], context);
        if (input[_Fi]?.length === 0) {
          entries.Filters = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filters.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_SIA] != null) {
        entries[_SIA] = input[_SIA];
      }
      if (input[_SIR] != null) {
        entries[_SIR] = input[_SIR];
      }
      if (input[_CA2] != null) {
        entries[_CA2] = input[_CA2];
      }
      return entries;
    }, "se_ListStackInstancesInput");
    var se_ListStackRefactorActionsInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SRI] != null) {
        entries[_SRI] = input[_SRI];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      return entries;
    }, "se_ListStackRefactorActionsInput");
    var se_ListStackRefactorsInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_ESF] != null) {
        const memberEntries = se_StackRefactorExecutionStatusFilter(input[_ESF], context);
        if (input[_ESF]?.length === 0) {
          entries.ExecutionStatusFilter = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ExecutionStatusFilter.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      return entries;
    }, "se_ListStackRefactorsInput");
    var se_ListStackResourcesInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SN2] != null) {
        entries[_SN2] = input[_SN2];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      return entries;
    }, "se_ListStackResourcesInput");
    var se_ListStackSetAutoDeploymentTargetsInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SSN] != null) {
        entries[_SSN] = input[_SSN];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_CA2] != null) {
        entries[_CA2] = input[_CA2];
      }
      return entries;
    }, "se_ListStackSetAutoDeploymentTargetsInput");
    var se_ListStackSetOperationResultsInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SSN] != null) {
        entries[_SSN] = input[_SSN];
      }
      if (input[_OI] != null) {
        entries[_OI] = input[_OI];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_CA2] != null) {
        entries[_CA2] = input[_CA2];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_OperationResultFilters(input[_Fi], context);
        if (input[_Fi]?.length === 0) {
          entries.Filters = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filters.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_ListStackSetOperationResultsInput");
    var se_ListStackSetOperationsInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SSN] != null) {
        entries[_SSN] = input[_SSN];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_CA2] != null) {
        entries[_CA2] = input[_CA2];
      }
      return entries;
    }, "se_ListStackSetOperationsInput");
    var se_ListStackSetsInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_S] != null) {
        entries[_S] = input[_S];
      }
      if (input[_CA2] != null) {
        entries[_CA2] = input[_CA2];
      }
      return entries;
    }, "se_ListStackSetsInput");
    var se_ListStacksInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_SSF] != null) {
        const memberEntries = se_StackStatusFilter(input[_SSF], context);
        if (input[_SSF]?.length === 0) {
          entries.StackStatusFilter = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `StackStatusFilter.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_ListStacksInput");
    var se_ListTypeRegistrationsInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_T2] != null) {
        entries[_T2] = input[_T2];
      }
      if (input[_TN] != null) {
        entries[_TN] = input[_TN];
      }
      if (input[_TA] != null) {
        entries[_TA] = input[_TA];
      }
      if (input[_RSF] != null) {
        entries[_RSF] = input[_RSF];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      return entries;
    }, "se_ListTypeRegistrationsInput");
    var se_ListTypesInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Vi] != null) {
        entries[_Vi] = input[_Vi];
      }
      if (input[_PTr] != null) {
        entries[_PTr] = input[_PTr];
      }
      if (input[_DSep] != null) {
        entries[_DSep] = input[_DSep];
      }
      if (input[_T2] != null) {
        entries[_T2] = input[_T2];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_TypeFilters(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filters.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      return entries;
    }, "se_ListTypesInput");
    var se_ListTypeVersionsInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_T2] != null) {
        entries[_T2] = input[_T2];
      }
      if (input[_TN] != null) {
        entries[_TN] = input[_TN];
      }
      if (input[_Ar2] != null) {
        entries[_Ar2] = input[_Ar2];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_DSep] != null) {
        entries[_DSep] = input[_DSep];
      }
      if (input[_PI2] != null) {
        entries[_PI2] = input[_PI2];
      }
      return entries;
    }, "se_ListTypeVersionsInput");
    var se_LoggingConfig = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_LRA] != null) {
        entries[_LRA] = input[_LRA];
      }
      if (input[_LGN] != null) {
        entries[_LGN] = input[_LGN];
      }
      return entries;
    }, "se_LoggingConfig");
    var se_LogicalResourceIds = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_LogicalResourceIds");
    var se_ManagedExecution = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Act] != null) {
        entries[_Act] = input[_Act];
      }
      return entries;
    }, "se_ManagedExecution");
    var se_NotificationARNs = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_NotificationARNs");
    var se_OperationResultFilter = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_N] != null) {
        entries[_N] = input[_N];
      }
      if (input[_Va2] != null) {
        entries[_Va2] = input[_Va2];
      }
      return entries;
    }, "se_OperationResultFilter");
    var se_OperationResultFilters = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_OperationResultFilter(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`member.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_OperationResultFilters");
    var se_OrganizationalUnitIdList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_OrganizationalUnitIdList");
    var se_Parameter = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_PK] != null) {
        entries[_PK] = input[_PK];
      }
      if (input[_PV] != null) {
        entries[_PV] = input[_PV];
      }
      if (input[_UPV] != null) {
        entries[_UPV] = input[_UPV];
      }
      if (input[_RV] != null) {
        entries[_RV] = input[_RV];
      }
      return entries;
    }, "se_Parameter");
    var se_Parameters = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_Parameter(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`member.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_Parameters");
    var se_PublishTypeInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_T2] != null) {
        entries[_T2] = input[_T2];
      }
      if (input[_Ar2] != null) {
        entries[_Ar2] = input[_Ar2];
      }
      if (input[_TN] != null) {
        entries[_TN] = input[_TN];
      }
      if (input[_PVN] != null) {
        entries[_PVN] = input[_PVN];
      }
      return entries;
    }, "se_PublishTypeInput");
    var se_RecordHandlerProgressInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_BT] != null) {
        entries[_BT] = input[_BT];
      }
      if (input[_OS] != null) {
        entries[_OS] = input[_OS];
      }
      if (input[_COS] != null) {
        entries[_COS] = input[_COS];
      }
      if (input[_SM] != null) {
        entries[_SM] = input[_SM];
      }
      if (input[_EC] != null) {
        entries[_EC] = input[_EC];
      }
      if (input[_RMe] != null) {
        entries[_RMe] = input[_RMe];
      }
      if (input[_CRT] != null) {
        entries[_CRT] = input[_CRT];
      }
      return entries;
    }, "se_RecordHandlerProgressInput");
    var se_RegionList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_RegionList");
    var se_RegisterPublisherInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_ATAC] != null) {
        entries[_ATAC] = input[_ATAC];
      }
      if (input[_CAo] != null) {
        entries[_CAo] = input[_CAo];
      }
      return entries;
    }, "se_RegisterPublisherInput");
    var se_RegisterTypeInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_T2] != null) {
        entries[_T2] = input[_T2];
      }
      if (input[_TN] != null) {
        entries[_TN] = input[_TN];
      }
      if (input[_SHP] != null) {
        entries[_SHP] = input[_SHP];
      }
      if (input[_LC] != null) {
        const memberEntries = se_LoggingConfig(input[_LC], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `LoggingConfig.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_ERA] != null) {
        entries[_ERA] = input[_ERA];
      }
      if (input[_CRT] != null) {
        entries[_CRT] = input[_CRT];
      }
      return entries;
    }, "se_RegisterTypeInput");
    var se_ResourceDefinition = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RTes] != null) {
        entries[_RTes] = input[_RTes];
      }
      if (input[_LRI] != null) {
        entries[_LRI] = input[_LRI];
      }
      if (input[_RI] != null) {
        const memberEntries = se_ResourceIdentifierProperties(input[_RI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ResourceIdentifier.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_ResourceDefinition");
    var se_ResourceDefinitions = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_ResourceDefinition(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`member.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_ResourceDefinitions");
    var se_ResourceIdentifierProperties = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      Object.keys(input).filter((key) => input[key] != null).forEach((key) => {
        entries[`entry.${counter}.key`] = key;
        entries[`entry.${counter}.value`] = input[key];
        counter++;
      });
      return entries;
    }, "se_ResourceIdentifierProperties");
    var se_ResourceLocation = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SN2] != null) {
        entries[_SN2] = input[_SN2];
      }
      if (input[_LRI] != null) {
        entries[_LRI] = input[_LRI];
      }
      return entries;
    }, "se_ResourceLocation");
    var se_ResourceMapping = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_So] != null) {
        const memberEntries = se_ResourceLocation(input[_So], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Source.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_De] != null) {
        const memberEntries = se_ResourceLocation(input[_De], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Destination.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_ResourceMapping");
    var se_ResourceMappings = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_ResourceMapping(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`member.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_ResourceMappings");
    var se_ResourcesToImport = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_ResourceToImport(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`member.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_ResourcesToImport");
    var se_ResourcesToSkip = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_ResourcesToSkip");
    var se_ResourceToImport = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RTes] != null) {
        entries[_RTes] = input[_RTes];
      }
      if (input[_LRI] != null) {
        entries[_LRI] = input[_LRI];
      }
      if (input[_RI] != null) {
        const memberEntries = se_ResourceIdentifierProperties(input[_RI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ResourceIdentifier.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_ResourceToImport");
    var se_ResourceTypeFilters = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_ResourceTypeFilters");
    var se_ResourceTypes = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_ResourceTypes");
    var se_RetainResources = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_RetainResources");
    var se_RollbackConfiguration = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RTo] != null) {
        const memberEntries = se_RollbackTriggers(input[_RTo], context);
        if (input[_RTo]?.length === 0) {
          entries.RollbackTriggers = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `RollbackTriggers.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_MTIM] != null) {
        entries[_MTIM] = input[_MTIM];
      }
      return entries;
    }, "se_RollbackConfiguration");
    var se_RollbackStackInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SN2] != null) {
        entries[_SN2] = input[_SN2];
      }
      if (input[_RARN] != null) {
        entries[_RARN] = input[_RARN];
      }
      if (input[_CRT] != null) {
        entries[_CRT] = input[_CRT];
      }
      if (input[_REOC] != null) {
        entries[_REOC] = input[_REOC];
      }
      return entries;
    }, "se_RollbackStackInput");
    var se_RollbackTrigger = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Ar2] != null) {
        entries[_Ar2] = input[_Ar2];
      }
      if (input[_T2] != null) {
        entries[_T2] = input[_T2];
      }
      return entries;
    }, "se_RollbackTrigger");
    var se_RollbackTriggers = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_RollbackTrigger(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`member.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_RollbackTriggers");
    var se_ScanFilter = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Ty] != null) {
        const memberEntries = se_ResourceTypeFilters(input[_Ty], context);
        if (input[_Ty]?.length === 0) {
          entries.Types = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Types.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_ScanFilter");
    var se_ScanFilters = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_ScanFilter(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`member.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_ScanFilters");
    var se_ScannedResourceIdentifier = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RTes] != null) {
        entries[_RTes] = input[_RTes];
      }
      if (input[_RI] != null) {
        const memberEntries = se_JazzResourceIdentifierProperties(input[_RI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ResourceIdentifier.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_ScannedResourceIdentifier");
    var se_ScannedResourceIdentifiers = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_ScannedResourceIdentifier(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`member.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_ScannedResourceIdentifiers");
    var se_SetStackPolicyInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SN2] != null) {
        entries[_SN2] = input[_SN2];
      }
      if (input[_SPB] != null) {
        entries[_SPB] = input[_SPB];
      }
      if (input[_SPURL] != null) {
        entries[_SPURL] = input[_SPURL];
      }
      return entries;
    }, "se_SetStackPolicyInput");
    var se_SetTypeConfigurationInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TA] != null) {
        entries[_TA] = input[_TA];
      }
      if (input[_Co] != null) {
        entries[_Co] = input[_Co];
      }
      if (input[_CAon] != null) {
        entries[_CAon] = input[_CAon];
      }
      if (input[_TN] != null) {
        entries[_TN] = input[_TN];
      }
      if (input[_T2] != null) {
        entries[_T2] = input[_T2];
      }
      return entries;
    }, "se_SetTypeConfigurationInput");
    var se_SetTypeDefaultVersionInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Ar2] != null) {
        entries[_Ar2] = input[_Ar2];
      }
      if (input[_T2] != null) {
        entries[_T2] = input[_T2];
      }
      if (input[_TN] != null) {
        entries[_TN] = input[_TN];
      }
      if (input[_VI] != null) {
        entries[_VI] = input[_VI];
      }
      return entries;
    }, "se_SetTypeDefaultVersionInput");
    var se_SignalResourceInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SN2] != null) {
        entries[_SN2] = input[_SN2];
      }
      if (input[_LRI] != null) {
        entries[_LRI] = input[_LRI];
      }
      if (input[_UI] != null) {
        entries[_UI] = input[_UI];
      }
      if (input[_S] != null) {
        entries[_S] = input[_S];
      }
      return entries;
    }, "se_SignalResourceInput");
    var se_StackDefinition = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SN2] != null) {
        entries[_SN2] = input[_SN2];
      }
      if (input[_TB] != null) {
        entries[_TB] = input[_TB];
      }
      if (input[_TURL] != null) {
        entries[_TURL] = input[_TURL];
      }
      return entries;
    }, "se_StackDefinition");
    var se_StackDefinitions = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_StackDefinition(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`member.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_StackDefinitions");
    var se_StackIdList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_StackIdList");
    var se_StackInstanceFilter = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_N] != null) {
        entries[_N] = input[_N];
      }
      if (input[_Va2] != null) {
        entries[_Va2] = input[_Va2];
      }
      return entries;
    }, "se_StackInstanceFilter");
    var se_StackInstanceFilters = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_StackInstanceFilter(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`member.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_StackInstanceFilters");
    var se_StackRefactorExecutionStatusFilter = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_StackRefactorExecutionStatusFilter");
    var se_StackResourceDriftStatusFilters = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_StackResourceDriftStatusFilters");
    var se_StackSetOperationPreferences = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RCT] != null) {
        entries[_RCT] = input[_RCT];
      }
      if (input[_RO] != null) {
        const memberEntries = se_RegionList(input[_RO], context);
        if (input[_RO]?.length === 0) {
          entries.RegionOrder = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `RegionOrder.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_FTC] != null) {
        entries[_FTC] = input[_FTC];
      }
      if (input[_FTP] != null) {
        entries[_FTP] = input[_FTP];
      }
      if (input[_MCC] != null) {
        entries[_MCC] = input[_MCC];
      }
      if (input[_MCP] != null) {
        entries[_MCP] = input[_MCP];
      }
      if (input[_CM] != null) {
        entries[_CM] = input[_CM];
      }
      return entries;
    }, "se_StackSetOperationPreferences");
    var se_StackStatusFilter = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_StackStatusFilter");
    var se_StartResourceScanInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CRT] != null) {
        entries[_CRT] = input[_CRT];
      }
      if (input[_SF] != null) {
        const memberEntries = se_ScanFilters(input[_SF], context);
        if (input[_SF]?.length === 0) {
          entries.ScanFilters = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ScanFilters.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_StartResourceScanInput");
    var se_StopStackSetOperationInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SSN] != null) {
        entries[_SSN] = input[_SSN];
      }
      if (input[_OI] != null) {
        entries[_OI] = input[_OI];
      }
      if (input[_CA2] != null) {
        entries[_CA2] = input[_CA2];
      }
      return entries;
    }, "se_StopStackSetOperationInput");
    var se_Tag2 = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_K2] != null) {
        entries[_K2] = input[_K2];
      }
      if (input[_Val] != null) {
        entries[_Val] = input[_Val];
      }
      return entries;
    }, "se_Tag");
    var se_Tags = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_Tag2(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`member.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_Tags");
    var se_TemplateConfiguration = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DPe] != null) {
        entries[_DPe] = input[_DPe];
      }
      if (input[_URP] != null) {
        entries[_URP] = input[_URP];
      }
      return entries;
    }, "se_TemplateConfiguration");
    var se_TemplateSummaryConfig = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TURTAW] != null) {
        entries[_TURTAW] = input[_TURTAW];
      }
      return entries;
    }, "se_TemplateSummaryConfig");
    var se_TestTypeInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Ar2] != null) {
        entries[_Ar2] = input[_Ar2];
      }
      if (input[_T2] != null) {
        entries[_T2] = input[_T2];
      }
      if (input[_TN] != null) {
        entries[_TN] = input[_TN];
      }
      if (input[_VI] != null) {
        entries[_VI] = input[_VI];
      }
      if (input[_LDB] != null) {
        entries[_LDB] = input[_LDB];
      }
      return entries;
    }, "se_TestTypeInput");
    var se_TypeConfigurationIdentifier = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TA] != null) {
        entries[_TA] = input[_TA];
      }
      if (input[_TCA] != null) {
        entries[_TCA] = input[_TCA];
      }
      if (input[_TCAy] != null) {
        entries[_TCAy] = input[_TCAy];
      }
      if (input[_T2] != null) {
        entries[_T2] = input[_T2];
      }
      if (input[_TN] != null) {
        entries[_TN] = input[_TN];
      }
      return entries;
    }, "se_TypeConfigurationIdentifier");
    var se_TypeConfigurationIdentifiers = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_TypeConfigurationIdentifier(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`member.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_TypeConfigurationIdentifiers");
    var se_TypeFilters = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Ca] != null) {
        entries[_Ca] = input[_Ca];
      }
      if (input[_PI2] != null) {
        entries[_PI2] = input[_PI2];
      }
      if (input[_TNP] != null) {
        entries[_TNP] = input[_TNP];
      }
      return entries;
    }, "se_TypeFilters");
    var se_UpdateGeneratedTemplateInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_GTN] != null) {
        entries[_GTN] = input[_GTN];
      }
      if (input[_NGTN] != null) {
        entries[_NGTN] = input[_NGTN];
      }
      if (input[_AR2] != null) {
        const memberEntries = se_ResourceDefinitions(input[_AR2], context);
        if (input[_AR2]?.length === 0) {
          entries.AddResources = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AddResources.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_RRe] != null) {
        const memberEntries = se_JazzLogicalResourceIds(input[_RRe], context);
        if (input[_RRe]?.length === 0) {
          entries.RemoveResources = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `RemoveResources.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_RAR] != null) {
        entries[_RAR] = input[_RAR];
      }
      if (input[_TC2] != null) {
        const memberEntries = se_TemplateConfiguration(input[_TC2], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TemplateConfiguration.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_UpdateGeneratedTemplateInput");
    var se_UpdateStackInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SN2] != null) {
        entries[_SN2] = input[_SN2];
      }
      if (input[_TB] != null) {
        entries[_TB] = input[_TB];
      }
      if (input[_TURL] != null) {
        entries[_TURL] = input[_TURL];
      }
      if (input[_UPT] != null) {
        entries[_UPT] = input[_UPT];
      }
      if (input[_SPDUB] != null) {
        entries[_SPDUB] = input[_SPDUB];
      }
      if (input[_SPDUURL] != null) {
        entries[_SPDUURL] = input[_SPDUURL];
      }
      if (input[_P2] != null) {
        const memberEntries = se_Parameters(input[_P2], context);
        if (input[_P2]?.length === 0) {
          entries.Parameters = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Parameters.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_C2] != null) {
        const memberEntries = se_Capabilities(input[_C2], context);
        if (input[_C2]?.length === 0) {
          entries.Capabilities = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Capabilities.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_RTe] != null) {
        const memberEntries = se_ResourceTypes(input[_RTe], context);
        if (input[_RTe]?.length === 0) {
          entries.ResourceTypes = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ResourceTypes.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_RARN] != null) {
        entries[_RARN] = input[_RARN];
      }
      if (input[_RC] != null) {
        const memberEntries = se_RollbackConfiguration(input[_RC], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `RollbackConfiguration.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_SPB] != null) {
        entries[_SPB] = input[_SPB];
      }
      if (input[_SPURL] != null) {
        entries[_SPURL] = input[_SPURL];
      }
      if (input[_NARN] != null) {
        const memberEntries = se_NotificationARNs(input[_NARN], context);
        if (input[_NARN]?.length === 0) {
          entries.NotificationARNs = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `NotificationARNs.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_Ta] != null) {
        const memberEntries = se_Tags(input[_Ta], context);
        if (input[_Ta]?.length === 0) {
          entries.Tags = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Tags.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_DR] != null) {
        entries[_DR] = input[_DR];
      }
      if (input[_CRT] != null) {
        entries[_CRT] = input[_CRT];
      }
      if (input[_REOC] != null) {
        entries[_REOC] = input[_REOC];
      }
      return entries;
    }, "se_UpdateStackInput");
    var se_UpdateStackInstancesInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SSN] != null) {
        entries[_SSN] = input[_SSN];
      }
      if (input[_Ac] != null) {
        const memberEntries = se_AccountList(input[_Ac], context);
        if (input[_Ac]?.length === 0) {
          entries.Accounts = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Accounts.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_DTep] != null) {
        const memberEntries = se_DeploymentTargets(input[_DTep], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `DeploymentTargets.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_Re] != null) {
        const memberEntries = se_RegionList(input[_Re], context);
        if (input[_Re]?.length === 0) {
          entries.Regions = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Regions.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_PO] != null) {
        const memberEntries = se_Parameters(input[_PO], context);
        if (input[_PO]?.length === 0) {
          entries.ParameterOverrides = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ParameterOverrides.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_OP] != null) {
        const memberEntries = se_StackSetOperationPreferences(input[_OP], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `OperationPreferences.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_OI] === void 0) {
        input[_OI] = (0, import_uuid2.v4)();
      }
      if (input[_OI] != null) {
        entries[_OI] = input[_OI];
      }
      if (input[_CA2] != null) {
        entries[_CA2] = input[_CA2];
      }
      return entries;
    }, "se_UpdateStackInstancesInput");
    var se_UpdateStackSetInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SSN] != null) {
        entries[_SSN] = input[_SSN];
      }
      if (input[_D] != null) {
        entries[_D] = input[_D];
      }
      if (input[_TB] != null) {
        entries[_TB] = input[_TB];
      }
      if (input[_TURL] != null) {
        entries[_TURL] = input[_TURL];
      }
      if (input[_UPT] != null) {
        entries[_UPT] = input[_UPT];
      }
      if (input[_P2] != null) {
        const memberEntries = se_Parameters(input[_P2], context);
        if (input[_P2]?.length === 0) {
          entries.Parameters = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Parameters.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_C2] != null) {
        const memberEntries = se_Capabilities(input[_C2], context);
        if (input[_C2]?.length === 0) {
          entries.Capabilities = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Capabilities.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_Ta] != null) {
        const memberEntries = se_Tags(input[_Ta], context);
        if (input[_Ta]?.length === 0) {
          entries.Tags = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Tags.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_OP] != null) {
        const memberEntries = se_StackSetOperationPreferences(input[_OP], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `OperationPreferences.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_ARARN] != null) {
        entries[_ARARN] = input[_ARARN];
      }
      if (input[_ERN] != null) {
        entries[_ERN] = input[_ERN];
      }
      if (input[_DTep] != null) {
        const memberEntries = se_DeploymentTargets(input[_DTep], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `DeploymentTargets.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_PM] != null) {
        entries[_PM] = input[_PM];
      }
      if (input[_AD] != null) {
        const memberEntries = se_AutoDeployment(input[_AD], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AutoDeployment.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_OI] === void 0) {
        input[_OI] = (0, import_uuid2.v4)();
      }
      if (input[_OI] != null) {
        entries[_OI] = input[_OI];
      }
      if (input[_Ac] != null) {
        const memberEntries = se_AccountList(input[_Ac], context);
        if (input[_Ac]?.length === 0) {
          entries.Accounts = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Accounts.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_Re] != null) {
        const memberEntries = se_RegionList(input[_Re], context);
        if (input[_Re]?.length === 0) {
          entries.Regions = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Regions.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_CA2] != null) {
        entries[_CA2] = input[_CA2];
      }
      if (input[_ME] != null) {
        const memberEntries = se_ManagedExecution(input[_ME], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ManagedExecution.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_UpdateStackSetInput");
    var se_UpdateTerminationProtectionInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_ETP] != null) {
        entries[_ETP] = input[_ETP];
      }
      if (input[_SN2] != null) {
        entries[_SN2] = input[_SN2];
      }
      return entries;
    }, "se_UpdateTerminationProtectionInput");
    var se_ValidateTemplateInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TB] != null) {
        entries[_TB] = input[_TB];
      }
      if (input[_TURL] != null) {
        entries[_TURL] = input[_TURL];
      }
      return entries;
    }, "se_ValidateTemplateInput");
    var de_AccountGateResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_S] != null) {
        contents[_S] = (0, import_smithy_client28.expectString)(output[_S]);
      }
      if (output[_SRt] != null) {
        contents[_SRt] = (0, import_smithy_client28.expectString)(output[_SRt]);
      }
      return contents;
    }, "de_AccountGateResult");
    var de_AccountLimit = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_N] != null) {
        contents[_N] = (0, import_smithy_client28.expectString)(output[_N]);
      }
      if (output[_Val] != null) {
        contents[_Val] = (0, import_smithy_client28.strictParseInt32)(output[_Val]);
      }
      return contents;
    }, "de_AccountLimit");
    var de_AccountLimitList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_AccountLimit(entry, context);
      });
    }, "de_AccountLimitList");
    var de_AccountList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_AccountList");
    var de_ActivateOrganizationsAccessOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      return contents;
    }, "de_ActivateOrganizationsAccessOutput");
    var de_ActivateTypeOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Ar2] != null) {
        contents[_Ar2] = (0, import_smithy_client28.expectString)(output[_Ar2]);
      }
      return contents;
    }, "de_ActivateTypeOutput");
    var de_AllowedValues = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_AllowedValues");
    var de_AlreadyExistsException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_AlreadyExistsException");
    var de_AutoDeployment = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_E2] != null) {
        contents[_E2] = (0, import_smithy_client28.parseBoolean)(output[_E2]);
      }
      if (output[_RSOAR] != null) {
        contents[_RSOAR] = (0, import_smithy_client28.parseBoolean)(output[_RSOAR]);
      }
      return contents;
    }, "de_AutoDeployment");
    var de_BatchDescribeTypeConfigurationsError = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_EC] != null) {
        contents[_EC] = (0, import_smithy_client28.expectString)(output[_EC]);
      }
      if (output[_EM] != null) {
        contents[_EM] = (0, import_smithy_client28.expectString)(output[_EM]);
      }
      if (output[_TCIy] != null) {
        contents[_TCIy] = de_TypeConfigurationIdentifier(output[_TCIy], context);
      }
      return contents;
    }, "de_BatchDescribeTypeConfigurationsError");
    var de_BatchDescribeTypeConfigurationsErrors = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_BatchDescribeTypeConfigurationsError(entry, context);
      });
    }, "de_BatchDescribeTypeConfigurationsErrors");
    var de_BatchDescribeTypeConfigurationsOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.Errors === "") {
        contents[_Er] = [];
      } else if (output[_Er] != null && output[_Er][_m2] != null) {
        contents[_Er] = de_BatchDescribeTypeConfigurationsErrors((0, import_smithy_client28.getArrayIfSingleItem)(output[_Er][_m2]), context);
      }
      if (output.UnprocessedTypeConfigurations === "") {
        contents[_UTC] = [];
      } else if (output[_UTC] != null && output[_UTC][_m2] != null) {
        contents[_UTC] = de_UnprocessedTypeConfigurations((0, import_smithy_client28.getArrayIfSingleItem)(output[_UTC][_m2]), context);
      }
      if (output.TypeConfigurations === "") {
        contents[_TCy] = [];
      } else if (output[_TCy] != null && output[_TCy][_m2] != null) {
        contents[_TCy] = de_TypeConfigurationDetailsList((0, import_smithy_client28.getArrayIfSingleItem)(output[_TCy][_m2]), context);
      }
      return contents;
    }, "de_BatchDescribeTypeConfigurationsOutput");
    var de_Capabilities = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_Capabilities");
    var de_CFNRegistryException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_CFNRegistryException");
    var de_Change = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_T2] != null) {
        contents[_T2] = (0, import_smithy_client28.expectString)(output[_T2]);
      }
      if (output[_HIC] != null) {
        contents[_HIC] = (0, import_smithy_client28.strictParseInt32)(output[_HIC]);
      }
      if (output[_RCe] != null) {
        contents[_RCe] = de_ResourceChange(output[_RCe], context);
      }
      return contents;
    }, "de_Change");
    var de_Changes = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Change(entry, context);
      });
    }, "de_Changes");
    var de_ChangeSetHook = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_IP] != null) {
        contents[_IP] = (0, import_smithy_client28.expectString)(output[_IP]);
      }
      if (output[_FM] != null) {
        contents[_FM] = (0, import_smithy_client28.expectString)(output[_FM]);
      }
      if (output[_TN] != null) {
        contents[_TN] = (0, import_smithy_client28.expectString)(output[_TN]);
      }
      if (output[_TVI] != null) {
        contents[_TVI] = (0, import_smithy_client28.expectString)(output[_TVI]);
      }
      if (output[_TCVI] != null) {
        contents[_TCVI] = (0, import_smithy_client28.expectString)(output[_TCVI]);
      }
      if (output[_TD] != null) {
        contents[_TD] = de_ChangeSetHookTargetDetails(output[_TD], context);
      }
      return contents;
    }, "de_ChangeSetHook");
    var de_ChangeSetHookResourceTargetDetails = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_LRI] != null) {
        contents[_LRI] = (0, import_smithy_client28.expectString)(output[_LRI]);
      }
      if (output[_RTes] != null) {
        contents[_RTes] = (0, import_smithy_client28.expectString)(output[_RTes]);
      }
      if (output[_RA2] != null) {
        contents[_RA2] = (0, import_smithy_client28.expectString)(output[_RA2]);
      }
      return contents;
    }, "de_ChangeSetHookResourceTargetDetails");
    var de_ChangeSetHooks = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ChangeSetHook(entry, context);
      });
    }, "de_ChangeSetHooks");
    var de_ChangeSetHookTargetDetails = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_TTa] != null) {
        contents[_TTa] = (0, import_smithy_client28.expectString)(output[_TTa]);
      }
      if (output[_RTD] != null) {
        contents[_RTD] = de_ChangeSetHookResourceTargetDetails(output[_RTD], context);
      }
      return contents;
    }, "de_ChangeSetHookTargetDetails");
    var de_ChangeSetNotFoundException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_ChangeSetNotFoundException");
    var de_ChangeSetSummaries = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ChangeSetSummary(entry, context);
      });
    }, "de_ChangeSetSummaries");
    var de_ChangeSetSummary = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_SI2] != null) {
        contents[_SI2] = (0, import_smithy_client28.expectString)(output[_SI2]);
      }
      if (output[_SN2] != null) {
        contents[_SN2] = (0, import_smithy_client28.expectString)(output[_SN2]);
      }
      if (output[_CSIh] != null) {
        contents[_CSIh] = (0, import_smithy_client28.expectString)(output[_CSIh]);
      }
      if (output[_CSN] != null) {
        contents[_CSN] = (0, import_smithy_client28.expectString)(output[_CSN]);
      }
      if (output[_ES] != null) {
        contents[_ES] = (0, import_smithy_client28.expectString)(output[_ES]);
      }
      if (output[_S] != null) {
        contents[_S] = (0, import_smithy_client28.expectString)(output[_S]);
      }
      if (output[_SRt] != null) {
        contents[_SRt] = (0, import_smithy_client28.expectString)(output[_SRt]);
      }
      if (output[_CTr] != null) {
        contents[_CTr] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_CTr]));
      }
      if (output[_D] != null) {
        contents[_D] = (0, import_smithy_client28.expectString)(output[_D]);
      }
      if (output[_INS] != null) {
        contents[_INS] = (0, import_smithy_client28.parseBoolean)(output[_INS]);
      }
      if (output[_PCSI] != null) {
        contents[_PCSI] = (0, import_smithy_client28.expectString)(output[_PCSI]);
      }
      if (output[_RCSI] != null) {
        contents[_RCSI] = (0, import_smithy_client28.expectString)(output[_RCSI]);
      }
      if (output[_IER] != null) {
        contents[_IER] = (0, import_smithy_client28.parseBoolean)(output[_IER]);
      }
      return contents;
    }, "de_ChangeSetSummary");
    var de_ConcurrentResourcesLimitExceededException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_ConcurrentResourcesLimitExceededException");
    var de_ContinueUpdateRollbackOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      return contents;
    }, "de_ContinueUpdateRollbackOutput");
    var de_CreateChangeSetOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_I] != null) {
        contents[_I] = (0, import_smithy_client28.expectString)(output[_I]);
      }
      if (output[_SI2] != null) {
        contents[_SI2] = (0, import_smithy_client28.expectString)(output[_SI2]);
      }
      return contents;
    }, "de_CreateChangeSetOutput");
    var de_CreatedButModifiedException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_CreatedButModifiedException");
    var de_CreateGeneratedTemplateOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_GTI] != null) {
        contents[_GTI] = (0, import_smithy_client28.expectString)(output[_GTI]);
      }
      return contents;
    }, "de_CreateGeneratedTemplateOutput");
    var de_CreateStackInstancesOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_OI] != null) {
        contents[_OI] = (0, import_smithy_client28.expectString)(output[_OI]);
      }
      return contents;
    }, "de_CreateStackInstancesOutput");
    var de_CreateStackOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_SI2] != null) {
        contents[_SI2] = (0, import_smithy_client28.expectString)(output[_SI2]);
      }
      return contents;
    }, "de_CreateStackOutput");
    var de_CreateStackRefactorOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_SRI] != null) {
        contents[_SRI] = (0, import_smithy_client28.expectString)(output[_SRI]);
      }
      return contents;
    }, "de_CreateStackRefactorOutput");
    var de_CreateStackSetOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_SSI] != null) {
        contents[_SSI] = (0, import_smithy_client28.expectString)(output[_SSI]);
      }
      return contents;
    }, "de_CreateStackSetOutput");
    var de_DeactivateOrganizationsAccessOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      return contents;
    }, "de_DeactivateOrganizationsAccessOutput");
    var de_DeactivateTypeOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      return contents;
    }, "de_DeactivateTypeOutput");
    var de_DeleteChangeSetOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      return contents;
    }, "de_DeleteChangeSetOutput");
    var de_DeleteStackInstancesOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_OI] != null) {
        contents[_OI] = (0, import_smithy_client28.expectString)(output[_OI]);
      }
      return contents;
    }, "de_DeleteStackInstancesOutput");
    var de_DeleteStackSetOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      return contents;
    }, "de_DeleteStackSetOutput");
    var de_DeploymentTargets = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.Accounts === "") {
        contents[_Ac] = [];
      } else if (output[_Ac] != null && output[_Ac][_m2] != null) {
        contents[_Ac] = de_AccountList((0, import_smithy_client28.getArrayIfSingleItem)(output[_Ac][_m2]), context);
      }
      if (output[_AUc] != null) {
        contents[_AUc] = (0, import_smithy_client28.expectString)(output[_AUc]);
      }
      if (output.OrganizationalUnitIds === "") {
        contents[_OUI] = [];
      } else if (output[_OUI] != null && output[_OUI][_m2] != null) {
        contents[_OUI] = de_OrganizationalUnitIdList((0, import_smithy_client28.getArrayIfSingleItem)(output[_OUI][_m2]), context);
      }
      if (output[_AFT] != null) {
        contents[_AFT] = (0, import_smithy_client28.expectString)(output[_AFT]);
      }
      return contents;
    }, "de_DeploymentTargets");
    var de_DeregisterTypeOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      return contents;
    }, "de_DeregisterTypeOutput");
    var de_DescribeAccountLimitsOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.AccountLimits === "") {
        contents[_AL] = [];
      } else if (output[_AL] != null && output[_AL][_m2] != null) {
        contents[_AL] = de_AccountLimitList((0, import_smithy_client28.getArrayIfSingleItem)(output[_AL][_m2]), context);
      }
      if (output[_NT] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_NT]);
      }
      return contents;
    }, "de_DescribeAccountLimitsOutput");
    var de_DescribeChangeSetHooksOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_CSIh] != null) {
        contents[_CSIh] = (0, import_smithy_client28.expectString)(output[_CSIh]);
      }
      if (output[_CSN] != null) {
        contents[_CSN] = (0, import_smithy_client28.expectString)(output[_CSN]);
      }
      if (output.Hooks === "") {
        contents[_H] = [];
      } else if (output[_H] != null && output[_H][_m2] != null) {
        contents[_H] = de_ChangeSetHooks((0, import_smithy_client28.getArrayIfSingleItem)(output[_H][_m2]), context);
      }
      if (output[_S] != null) {
        contents[_S] = (0, import_smithy_client28.expectString)(output[_S]);
      }
      if (output[_NT] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_NT]);
      }
      if (output[_SI2] != null) {
        contents[_SI2] = (0, import_smithy_client28.expectString)(output[_SI2]);
      }
      if (output[_SN2] != null) {
        contents[_SN2] = (0, import_smithy_client28.expectString)(output[_SN2]);
      }
      return contents;
    }, "de_DescribeChangeSetHooksOutput");
    var de_DescribeChangeSetOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_CSN] != null) {
        contents[_CSN] = (0, import_smithy_client28.expectString)(output[_CSN]);
      }
      if (output[_CSIh] != null) {
        contents[_CSIh] = (0, import_smithy_client28.expectString)(output[_CSIh]);
      }
      if (output[_SI2] != null) {
        contents[_SI2] = (0, import_smithy_client28.expectString)(output[_SI2]);
      }
      if (output[_SN2] != null) {
        contents[_SN2] = (0, import_smithy_client28.expectString)(output[_SN2]);
      }
      if (output[_D] != null) {
        contents[_D] = (0, import_smithy_client28.expectString)(output[_D]);
      }
      if (output.Parameters === "") {
        contents[_P2] = [];
      } else if (output[_P2] != null && output[_P2][_m2] != null) {
        contents[_P2] = de_Parameters((0, import_smithy_client28.getArrayIfSingleItem)(output[_P2][_m2]), context);
      }
      if (output[_CTr] != null) {
        contents[_CTr] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_CTr]));
      }
      if (output[_ES] != null) {
        contents[_ES] = (0, import_smithy_client28.expectString)(output[_ES]);
      }
      if (output[_S] != null) {
        contents[_S] = (0, import_smithy_client28.expectString)(output[_S]);
      }
      if (output[_SRt] != null) {
        contents[_SRt] = (0, import_smithy_client28.expectString)(output[_SRt]);
      }
      if (output.NotificationARNs === "") {
        contents[_NARN] = [];
      } else if (output[_NARN] != null && output[_NARN][_m2] != null) {
        contents[_NARN] = de_NotificationARNs((0, import_smithy_client28.getArrayIfSingleItem)(output[_NARN][_m2]), context);
      }
      if (output[_RC] != null) {
        contents[_RC] = de_RollbackConfiguration(output[_RC], context);
      }
      if (output.Capabilities === "") {
        contents[_C2] = [];
      } else if (output[_C2] != null && output[_C2][_m2] != null) {
        contents[_C2] = de_Capabilities((0, import_smithy_client28.getArrayIfSingleItem)(output[_C2][_m2]), context);
      }
      if (output.Tags === "") {
        contents[_Ta] = [];
      } else if (output[_Ta] != null && output[_Ta][_m2] != null) {
        contents[_Ta] = de_Tags((0, import_smithy_client28.getArrayIfSingleItem)(output[_Ta][_m2]), context);
      }
      if (output.Changes === "") {
        contents[_Ch] = [];
      } else if (output[_Ch] != null && output[_Ch][_m2] != null) {
        contents[_Ch] = de_Changes((0, import_smithy_client28.getArrayIfSingleItem)(output[_Ch][_m2]), context);
      }
      if (output[_NT] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_NT]);
      }
      if (output[_INS] != null) {
        contents[_INS] = (0, import_smithy_client28.parseBoolean)(output[_INS]);
      }
      if (output[_PCSI] != null) {
        contents[_PCSI] = (0, import_smithy_client28.expectString)(output[_PCSI]);
      }
      if (output[_RCSI] != null) {
        contents[_RCSI] = (0, import_smithy_client28.expectString)(output[_RCSI]);
      }
      if (output[_OSF] != null) {
        contents[_OSF] = (0, import_smithy_client28.expectString)(output[_OSF]);
      }
      if (output[_IER] != null) {
        contents[_IER] = (0, import_smithy_client28.parseBoolean)(output[_IER]);
      }
      return contents;
    }, "de_DescribeChangeSetOutput");
    var de_DescribeGeneratedTemplateOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_GTI] != null) {
        contents[_GTI] = (0, import_smithy_client28.expectString)(output[_GTI]);
      }
      if (output[_GTN] != null) {
        contents[_GTN] = (0, import_smithy_client28.expectString)(output[_GTN]);
      }
      if (output.Resources === "") {
        contents[_R] = [];
      } else if (output[_R] != null && output[_R][_m2] != null) {
        contents[_R] = de_ResourceDetails((0, import_smithy_client28.getArrayIfSingleItem)(output[_R][_m2]), context);
      }
      if (output[_S] != null) {
        contents[_S] = (0, import_smithy_client28.expectString)(output[_S]);
      }
      if (output[_SRt] != null) {
        contents[_SRt] = (0, import_smithy_client28.expectString)(output[_SRt]);
      }
      if (output[_CTr] != null) {
        contents[_CTr] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_CTr]));
      }
      if (output[_LUT] != null) {
        contents[_LUT] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_LUT]));
      }
      if (output[_Pr2] != null) {
        contents[_Pr2] = de_TemplateProgress(output[_Pr2], context);
      }
      if (output[_SI2] != null) {
        contents[_SI2] = (0, import_smithy_client28.expectString)(output[_SI2]);
      }
      if (output[_TC2] != null) {
        contents[_TC2] = de_TemplateConfiguration(output[_TC2], context);
      }
      if (output[_TW] != null) {
        contents[_TW] = (0, import_smithy_client28.strictParseInt32)(output[_TW]);
      }
      return contents;
    }, "de_DescribeGeneratedTemplateOutput");
    var de_DescribeOrganizationsAccessOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_S] != null) {
        contents[_S] = (0, import_smithy_client28.expectString)(output[_S]);
      }
      return contents;
    }, "de_DescribeOrganizationsAccessOutput");
    var de_DescribePublisherOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_PI2] != null) {
        contents[_PI2] = (0, import_smithy_client28.expectString)(output[_PI2]);
      }
      if (output[_PS] != null) {
        contents[_PS] = (0, import_smithy_client28.expectString)(output[_PS]);
      }
      if (output[_IPd] != null) {
        contents[_IPd] = (0, import_smithy_client28.expectString)(output[_IPd]);
      }
      if (output[_PP] != null) {
        contents[_PP] = (0, import_smithy_client28.expectString)(output[_PP]);
      }
      return contents;
    }, "de_DescribePublisherOutput");
    var de_DescribeResourceScanOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_RSI] != null) {
        contents[_RSI] = (0, import_smithy_client28.expectString)(output[_RSI]);
      }
      if (output[_S] != null) {
        contents[_S] = (0, import_smithy_client28.expectString)(output[_S]);
      }
      if (output[_SRt] != null) {
        contents[_SRt] = (0, import_smithy_client28.expectString)(output[_SRt]);
      }
      if (output[_ST2] != null) {
        contents[_ST2] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_ST2]));
      }
      if (output[_ET] != null) {
        contents[_ET] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_ET]));
      }
      if (output[_PC2] != null) {
        contents[_PC2] = (0, import_smithy_client28.strictParseFloat)(output[_PC2]);
      }
      if (output.ResourceTypes === "") {
        contents[_RTe] = [];
      } else if (output[_RTe] != null && output[_RTe][_m2] != null) {
        contents[_RTe] = de_ResourceTypes((0, import_smithy_client28.getArrayIfSingleItem)(output[_RTe][_m2]), context);
      }
      if (output[_RSes] != null) {
        contents[_RSes] = (0, import_smithy_client28.strictParseInt32)(output[_RSes]);
      }
      if (output[_RRes] != null) {
        contents[_RRes] = (0, import_smithy_client28.strictParseInt32)(output[_RRes]);
      }
      if (output.ScanFilters === "") {
        contents[_SF] = [];
      } else if (output[_SF] != null && output[_SF][_m2] != null) {
        contents[_SF] = de_ScanFilters((0, import_smithy_client28.getArrayIfSingleItem)(output[_SF][_m2]), context);
      }
      return contents;
    }, "de_DescribeResourceScanOutput");
    var de_DescribeStackDriftDetectionStatusOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_SI2] != null) {
        contents[_SI2] = (0, import_smithy_client28.expectString)(output[_SI2]);
      }
      if (output[_SDDI] != null) {
        contents[_SDDI] = (0, import_smithy_client28.expectString)(output[_SDDI]);
      }
      if (output[_SDS] != null) {
        contents[_SDS] = (0, import_smithy_client28.expectString)(output[_SDS]);
      }
      if (output[_DSet] != null) {
        contents[_DSet] = (0, import_smithy_client28.expectString)(output[_DSet]);
      }
      if (output[_DSRet] != null) {
        contents[_DSRet] = (0, import_smithy_client28.expectString)(output[_DSRet]);
      }
      if (output[_DSRC] != null) {
        contents[_DSRC] = (0, import_smithy_client28.strictParseInt32)(output[_DSRC]);
      }
      if (output[_Ti] != null) {
        contents[_Ti] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_Ti]));
      }
      return contents;
    }, "de_DescribeStackDriftDetectionStatusOutput");
    var de_DescribeStackEventsOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.StackEvents === "") {
        contents[_SE] = [];
      } else if (output[_SE] != null && output[_SE][_m2] != null) {
        contents[_SE] = de_StackEvents((0, import_smithy_client28.getArrayIfSingleItem)(output[_SE][_m2]), context);
      }
      if (output[_NT] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_NT]);
      }
      return contents;
    }, "de_DescribeStackEventsOutput");
    var de_DescribeStackInstanceOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_SIta] != null) {
        contents[_SIta] = de_StackInstance(output[_SIta], context);
      }
      return contents;
    }, "de_DescribeStackInstanceOutput");
    var de_DescribeStackRefactorOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_D] != null) {
        contents[_D] = (0, import_smithy_client28.expectString)(output[_D]);
      }
      if (output[_SRI] != null) {
        contents[_SRI] = (0, import_smithy_client28.expectString)(output[_SRI]);
      }
      if (output.StackIds === "") {
        contents[_SIt] = [];
      } else if (output[_SIt] != null && output[_SIt][_m2] != null) {
        contents[_SIt] = de_StackIds((0, import_smithy_client28.getArrayIfSingleItem)(output[_SIt][_m2]), context);
      }
      if (output[_ES] != null) {
        contents[_ES] = (0, import_smithy_client28.expectString)(output[_ES]);
      }
      if (output[_ESRx] != null) {
        contents[_ESRx] = (0, import_smithy_client28.expectString)(output[_ESRx]);
      }
      if (output[_S] != null) {
        contents[_S] = (0, import_smithy_client28.expectString)(output[_S]);
      }
      if (output[_SRt] != null) {
        contents[_SRt] = (0, import_smithy_client28.expectString)(output[_SRt]);
      }
      return contents;
    }, "de_DescribeStackRefactorOutput");
    var de_DescribeStackResourceDriftsOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.StackResourceDrifts === "") {
        contents[_SRD] = [];
      } else if (output[_SRD] != null && output[_SRD][_m2] != null) {
        contents[_SRD] = de_StackResourceDrifts((0, import_smithy_client28.getArrayIfSingleItem)(output[_SRD][_m2]), context);
      }
      if (output[_NT] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_NT]);
      }
      return contents;
    }, "de_DescribeStackResourceDriftsOutput");
    var de_DescribeStackResourceOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_SRDt] != null) {
        contents[_SRDt] = de_StackResourceDetail(output[_SRDt], context);
      }
      return contents;
    }, "de_DescribeStackResourceOutput");
    var de_DescribeStackResourcesOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.StackResources === "") {
        contents[_SRta] = [];
      } else if (output[_SRta] != null && output[_SRta][_m2] != null) {
        contents[_SRta] = de_StackResources((0, import_smithy_client28.getArrayIfSingleItem)(output[_SRta][_m2]), context);
      }
      return contents;
    }, "de_DescribeStackResourcesOutput");
    var de_DescribeStackSetOperationOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_SSO] != null) {
        contents[_SSO] = de_StackSetOperation(output[_SSO], context);
      }
      return contents;
    }, "de_DescribeStackSetOperationOutput");
    var de_DescribeStackSetOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_SS] != null) {
        contents[_SS] = de_StackSet(output[_SS], context);
      }
      return contents;
    }, "de_DescribeStackSetOutput");
    var de_DescribeStacksOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.Stacks === "") {
        contents[_St] = [];
      } else if (output[_St] != null && output[_St][_m2] != null) {
        contents[_St] = de_Stacks((0, import_smithy_client28.getArrayIfSingleItem)(output[_St][_m2]), context);
      }
      if (output[_NT] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_NT]);
      }
      return contents;
    }, "de_DescribeStacksOutput");
    var de_DescribeTypeOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Ar2] != null) {
        contents[_Ar2] = (0, import_smithy_client28.expectString)(output[_Ar2]);
      }
      if (output[_T2] != null) {
        contents[_T2] = (0, import_smithy_client28.expectString)(output[_T2]);
      }
      if (output[_TN] != null) {
        contents[_TN] = (0, import_smithy_client28.expectString)(output[_TN]);
      }
      if (output[_DVI] != null) {
        contents[_DVI] = (0, import_smithy_client28.expectString)(output[_DVI]);
      }
      if (output[_IDV] != null) {
        contents[_IDV] = (0, import_smithy_client28.parseBoolean)(output[_IDV]);
      }
      if (output[_TTS] != null) {
        contents[_TTS] = (0, import_smithy_client28.expectString)(output[_TTS]);
      }
      if (output[_TTSD] != null) {
        contents[_TTSD] = (0, import_smithy_client28.expectString)(output[_TTSD]);
      }
      if (output[_D] != null) {
        contents[_D] = (0, import_smithy_client28.expectString)(output[_D]);
      }
      if (output[_Sc] != null) {
        contents[_Sc] = (0, import_smithy_client28.expectString)(output[_Sc]);
      }
      if (output[_PTr] != null) {
        contents[_PTr] = (0, import_smithy_client28.expectString)(output[_PTr]);
      }
      if (output[_DSep] != null) {
        contents[_DSep] = (0, import_smithy_client28.expectString)(output[_DSep]);
      }
      if (output[_LC] != null) {
        contents[_LC] = de_LoggingConfig(output[_LC], context);
      }
      if (output.RequiredActivatedTypes === "") {
        contents[_RAT] = [];
      } else if (output[_RAT] != null && output[_RAT][_m2] != null) {
        contents[_RAT] = de_RequiredActivatedTypes((0, import_smithy_client28.getArrayIfSingleItem)(output[_RAT][_m2]), context);
      }
      if (output[_ERA] != null) {
        contents[_ERA] = (0, import_smithy_client28.expectString)(output[_ERA]);
      }
      if (output[_Vi] != null) {
        contents[_Vi] = (0, import_smithy_client28.expectString)(output[_Vi]);
      }
      if (output[_SU] != null) {
        contents[_SU] = (0, import_smithy_client28.expectString)(output[_SU]);
      }
      if (output[_DU] != null) {
        contents[_DU] = (0, import_smithy_client28.expectString)(output[_DU]);
      }
      if (output[_LU] != null) {
        contents[_LU] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_LU]));
      }
      if (output[_TCi] != null) {
        contents[_TCi] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_TCi]));
      }
      if (output[_CSo] != null) {
        contents[_CSo] = (0, import_smithy_client28.expectString)(output[_CSo]);
      }
      if (output[_PI2] != null) {
        contents[_PI2] = (0, import_smithy_client28.expectString)(output[_PI2]);
      }
      if (output[_OTN] != null) {
        contents[_OTN] = (0, import_smithy_client28.expectString)(output[_OTN]);
      }
      if (output[_OTA] != null) {
        contents[_OTA] = (0, import_smithy_client28.expectString)(output[_OTA]);
      }
      if (output[_PVN] != null) {
        contents[_PVN] = (0, import_smithy_client28.expectString)(output[_PVN]);
      }
      if (output[_LPV] != null) {
        contents[_LPV] = (0, import_smithy_client28.expectString)(output[_LPV]);
      }
      if (output[_IA] != null) {
        contents[_IA] = (0, import_smithy_client28.parseBoolean)(output[_IA]);
      }
      if (output[_AU] != null) {
        contents[_AU] = (0, import_smithy_client28.parseBoolean)(output[_AU]);
      }
      return contents;
    }, "de_DescribeTypeOutput");
    var de_DescribeTypeRegistrationOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_PSr] != null) {
        contents[_PSr] = (0, import_smithy_client28.expectString)(output[_PSr]);
      }
      if (output[_D] != null) {
        contents[_D] = (0, import_smithy_client28.expectString)(output[_D]);
      }
      if (output[_TA] != null) {
        contents[_TA] = (0, import_smithy_client28.expectString)(output[_TA]);
      }
      if (output[_TVA] != null) {
        contents[_TVA] = (0, import_smithy_client28.expectString)(output[_TVA]);
      }
      return contents;
    }, "de_DescribeTypeRegistrationOutput");
    var de_DetectStackDriftOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_SDDI] != null) {
        contents[_SDDI] = (0, import_smithy_client28.expectString)(output[_SDDI]);
      }
      return contents;
    }, "de_DetectStackDriftOutput");
    var de_DetectStackResourceDriftOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_SRDta] != null) {
        contents[_SRDta] = de_StackResourceDrift(output[_SRDta], context);
      }
      return contents;
    }, "de_DetectStackResourceDriftOutput");
    var de_DetectStackSetDriftOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_OI] != null) {
        contents[_OI] = (0, import_smithy_client28.expectString)(output[_OI]);
      }
      return contents;
    }, "de_DetectStackSetDriftOutput");
    var de_EstimateTemplateCostOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_U] != null) {
        contents[_U] = (0, import_smithy_client28.expectString)(output[_U]);
      }
      return contents;
    }, "de_EstimateTemplateCostOutput");
    var de_ExecuteChangeSetOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      return contents;
    }, "de_ExecuteChangeSetOutput");
    var de_Export = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ESI] != null) {
        contents[_ESI] = (0, import_smithy_client28.expectString)(output[_ESI]);
      }
      if (output[_N] != null) {
        contents[_N] = (0, import_smithy_client28.expectString)(output[_N]);
      }
      if (output[_Val] != null) {
        contents[_Val] = (0, import_smithy_client28.expectString)(output[_Val]);
      }
      return contents;
    }, "de_Export");
    var de_Exports = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Export(entry, context);
      });
    }, "de_Exports");
    var de_GeneratedTemplateNotFoundException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_GeneratedTemplateNotFoundException");
    var de_GetGeneratedTemplateOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_S] != null) {
        contents[_S] = (0, import_smithy_client28.expectString)(output[_S]);
      }
      if (output[_TB] != null) {
        contents[_TB] = (0, import_smithy_client28.expectString)(output[_TB]);
      }
      return contents;
    }, "de_GetGeneratedTemplateOutput");
    var de_GetStackPolicyOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_SPB] != null) {
        contents[_SPB] = (0, import_smithy_client28.expectString)(output[_SPB]);
      }
      return contents;
    }, "de_GetStackPolicyOutput");
    var de_GetTemplateOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_TB] != null) {
        contents[_TB] = (0, import_smithy_client28.expectString)(output[_TB]);
      }
      if (output.StagesAvailable === "") {
        contents[_SA] = [];
      } else if (output[_SA] != null && output[_SA][_m2] != null) {
        contents[_SA] = de_StageList((0, import_smithy_client28.getArrayIfSingleItem)(output[_SA][_m2]), context);
      }
      return contents;
    }, "de_GetTemplateOutput");
    var de_GetTemplateSummaryOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.Parameters === "") {
        contents[_P2] = [];
      } else if (output[_P2] != null && output[_P2][_m2] != null) {
        contents[_P2] = de_ParameterDeclarations((0, import_smithy_client28.getArrayIfSingleItem)(output[_P2][_m2]), context);
      }
      if (output[_D] != null) {
        contents[_D] = (0, import_smithy_client28.expectString)(output[_D]);
      }
      if (output.Capabilities === "") {
        contents[_C2] = [];
      } else if (output[_C2] != null && output[_C2][_m2] != null) {
        contents[_C2] = de_Capabilities((0, import_smithy_client28.getArrayIfSingleItem)(output[_C2][_m2]), context);
      }
      if (output[_CR] != null) {
        contents[_CR] = (0, import_smithy_client28.expectString)(output[_CR]);
      }
      if (output.ResourceTypes === "") {
        contents[_RTe] = [];
      } else if (output[_RTe] != null && output[_RTe][_m2] != null) {
        contents[_RTe] = de_ResourceTypes((0, import_smithy_client28.getArrayIfSingleItem)(output[_RTe][_m2]), context);
      }
      if (output[_V2] != null) {
        contents[_V2] = (0, import_smithy_client28.expectString)(output[_V2]);
      }
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      if (output.DeclaredTransforms === "") {
        contents[_DTec] = [];
      } else if (output[_DTec] != null && output[_DTec][_m2] != null) {
        contents[_DTec] = de_TransformsList((0, import_smithy_client28.getArrayIfSingleItem)(output[_DTec][_m2]), context);
      }
      if (output.ResourceIdentifierSummaries === "") {
        contents[_RIS] = [];
      } else if (output[_RIS] != null && output[_RIS][_m2] != null) {
        contents[_RIS] = de_ResourceIdentifierSummaries((0, import_smithy_client28.getArrayIfSingleItem)(output[_RIS][_m2]), context);
      }
      if (output[_W] != null) {
        contents[_W] = de_Warnings(output[_W], context);
      }
      return contents;
    }, "de_GetTemplateSummaryOutput");
    var de_HookResultNotFoundException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_HookResultNotFoundException");
    var de_HookResultSummaries = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_HookResultSummary(entry, context);
      });
    }, "de_HookResultSummaries");
    var de_HookResultSummary = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_IP] != null) {
        contents[_IP] = (0, import_smithy_client28.expectString)(output[_IP]);
      }
      if (output[_FM] != null) {
        contents[_FM] = (0, import_smithy_client28.expectString)(output[_FM]);
      }
      if (output[_TN] != null) {
        contents[_TN] = (0, import_smithy_client28.expectString)(output[_TN]);
      }
      if (output[_TVI] != null) {
        contents[_TVI] = (0, import_smithy_client28.expectString)(output[_TVI]);
      }
      if (output[_TCVI] != null) {
        contents[_TCVI] = (0, import_smithy_client28.expectString)(output[_TCVI]);
      }
      if (output[_S] != null) {
        contents[_S] = (0, import_smithy_client28.expectString)(output[_S]);
      }
      if (output[_HSR] != null) {
        contents[_HSR] = (0, import_smithy_client28.expectString)(output[_HSR]);
      }
      return contents;
    }, "de_HookResultSummary");
    var de_Imports = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_Imports");
    var de_ImportStacksToStackSetOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_OI] != null) {
        contents[_OI] = (0, import_smithy_client28.expectString)(output[_OI]);
      }
      return contents;
    }, "de_ImportStacksToStackSetOutput");
    var de_InsufficientCapabilitiesException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_InsufficientCapabilitiesException");
    var de_InvalidChangeSetStatusException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_InvalidChangeSetStatusException");
    var de_InvalidOperationException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_InvalidOperationException");
    var de_InvalidStateTransitionException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_InvalidStateTransitionException");
    var de_JazzResourceIdentifierProperties = /* @__PURE__ */ __name2((output, context) => {
      return output.reduce((acc, pair) => {
        if (pair["value"] === null) {
          return acc;
        }
        acc[pair["key"]] = (0, import_smithy_client28.expectString)(pair["value"]);
        return acc;
      }, {});
    }, "de_JazzResourceIdentifierProperties");
    var de_LimitExceededException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_LimitExceededException");
    var de_ListChangeSetsOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.Summaries === "") {
        contents[_Su] = [];
      } else if (output[_Su] != null && output[_Su][_m2] != null) {
        contents[_Su] = de_ChangeSetSummaries((0, import_smithy_client28.getArrayIfSingleItem)(output[_Su][_m2]), context);
      }
      if (output[_NT] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_NT]);
      }
      return contents;
    }, "de_ListChangeSetsOutput");
    var de_ListExportsOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.Exports === "") {
        contents[_Ex] = [];
      } else if (output[_Ex] != null && output[_Ex][_m2] != null) {
        contents[_Ex] = de_Exports((0, import_smithy_client28.getArrayIfSingleItem)(output[_Ex][_m2]), context);
      }
      if (output[_NT] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_NT]);
      }
      return contents;
    }, "de_ListExportsOutput");
    var de_ListGeneratedTemplatesOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.Summaries === "") {
        contents[_Su] = [];
      } else if (output[_Su] != null && output[_Su][_m2] != null) {
        contents[_Su] = de_TemplateSummaries((0, import_smithy_client28.getArrayIfSingleItem)(output[_Su][_m2]), context);
      }
      if (output[_NT] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_NT]);
      }
      return contents;
    }, "de_ListGeneratedTemplatesOutput");
    var de_ListHookResultsOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_TTa] != null) {
        contents[_TTa] = (0, import_smithy_client28.expectString)(output[_TTa]);
      }
      if (output[_TI] != null) {
        contents[_TI] = (0, import_smithy_client28.expectString)(output[_TI]);
      }
      if (output.HookResults === "") {
        contents[_HR] = [];
      } else if (output[_HR] != null && output[_HR][_m2] != null) {
        contents[_HR] = de_HookResultSummaries((0, import_smithy_client28.getArrayIfSingleItem)(output[_HR][_m2]), context);
      }
      if (output[_NT] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_NT]);
      }
      return contents;
    }, "de_ListHookResultsOutput");
    var de_ListImportsOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.Imports === "") {
        contents[_Im] = [];
      } else if (output[_Im] != null && output[_Im][_m2] != null) {
        contents[_Im] = de_Imports((0, import_smithy_client28.getArrayIfSingleItem)(output[_Im][_m2]), context);
      }
      if (output[_NT] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_NT]);
      }
      return contents;
    }, "de_ListImportsOutput");
    var de_ListResourceScanRelatedResourcesOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.RelatedResources === "") {
        contents[_RRel] = [];
      } else if (output[_RRel] != null && output[_RRel][_m2] != null) {
        contents[_RRel] = de_RelatedResources((0, import_smithy_client28.getArrayIfSingleItem)(output[_RRel][_m2]), context);
      }
      if (output[_NT] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_NT]);
      }
      return contents;
    }, "de_ListResourceScanRelatedResourcesOutput");
    var de_ListResourceScanResourcesOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.Resources === "") {
        contents[_R] = [];
      } else if (output[_R] != null && output[_R][_m2] != null) {
        contents[_R] = de_ScannedResources((0, import_smithy_client28.getArrayIfSingleItem)(output[_R][_m2]), context);
      }
      if (output[_NT] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_NT]);
      }
      return contents;
    }, "de_ListResourceScanResourcesOutput");
    var de_ListResourceScansOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.ResourceScanSummaries === "") {
        contents[_RSS] = [];
      } else if (output[_RSS] != null && output[_RSS][_m2] != null) {
        contents[_RSS] = de_ResourceScanSummaries((0, import_smithy_client28.getArrayIfSingleItem)(output[_RSS][_m2]), context);
      }
      if (output[_NT] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_NT]);
      }
      return contents;
    }, "de_ListResourceScansOutput");
    var de_ListStackInstanceResourceDriftsOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.Summaries === "") {
        contents[_Su] = [];
      } else if (output[_Su] != null && output[_Su][_m2] != null) {
        contents[_Su] = de_StackInstanceResourceDriftsSummaries((0, import_smithy_client28.getArrayIfSingleItem)(output[_Su][_m2]), context);
      }
      if (output[_NT] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_NT]);
      }
      return contents;
    }, "de_ListStackInstanceResourceDriftsOutput");
    var de_ListStackInstancesOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.Summaries === "") {
        contents[_Su] = [];
      } else if (output[_Su] != null && output[_Su][_m2] != null) {
        contents[_Su] = de_StackInstanceSummaries((0, import_smithy_client28.getArrayIfSingleItem)(output[_Su][_m2]), context);
      }
      if (output[_NT] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_NT]);
      }
      return contents;
    }, "de_ListStackInstancesOutput");
    var de_ListStackRefactorActionsOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.StackRefactorActions === "") {
        contents[_SRA] = [];
      } else if (output[_SRA] != null && output[_SRA][_m2] != null) {
        contents[_SRA] = de_StackRefactorActions((0, import_smithy_client28.getArrayIfSingleItem)(output[_SRA][_m2]), context);
      }
      if (output[_NT] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_NT]);
      }
      return contents;
    }, "de_ListStackRefactorActionsOutput");
    var de_ListStackRefactorsOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.StackRefactorSummaries === "") {
        contents[_SRSt] = [];
      } else if (output[_SRSt] != null && output[_SRSt][_m2] != null) {
        contents[_SRSt] = de_StackRefactorSummaries((0, import_smithy_client28.getArrayIfSingleItem)(output[_SRSt][_m2]), context);
      }
      if (output[_NT] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_NT]);
      }
      return contents;
    }, "de_ListStackRefactorsOutput");
    var de_ListStackResourcesOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.StackResourceSummaries === "") {
        contents[_SRSta] = [];
      } else if (output[_SRSta] != null && output[_SRSta][_m2] != null) {
        contents[_SRSta] = de_StackResourceSummaries((0, import_smithy_client28.getArrayIfSingleItem)(output[_SRSta][_m2]), context);
      }
      if (output[_NT] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_NT]);
      }
      return contents;
    }, "de_ListStackResourcesOutput");
    var de_ListStackSetAutoDeploymentTargetsOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.Summaries === "") {
        contents[_Su] = [];
      } else if (output[_Su] != null && output[_Su][_m2] != null) {
        contents[_Su] = de_StackSetAutoDeploymentTargetSummaries((0, import_smithy_client28.getArrayIfSingleItem)(output[_Su][_m2]), context);
      }
      if (output[_NT] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_NT]);
      }
      return contents;
    }, "de_ListStackSetAutoDeploymentTargetsOutput");
    var de_ListStackSetOperationResultsOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.Summaries === "") {
        contents[_Su] = [];
      } else if (output[_Su] != null && output[_Su][_m2] != null) {
        contents[_Su] = de_StackSetOperationResultSummaries((0, import_smithy_client28.getArrayIfSingleItem)(output[_Su][_m2]), context);
      }
      if (output[_NT] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_NT]);
      }
      return contents;
    }, "de_ListStackSetOperationResultsOutput");
    var de_ListStackSetOperationsOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.Summaries === "") {
        contents[_Su] = [];
      } else if (output[_Su] != null && output[_Su][_m2] != null) {
        contents[_Su] = de_StackSetOperationSummaries((0, import_smithy_client28.getArrayIfSingleItem)(output[_Su][_m2]), context);
      }
      if (output[_NT] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_NT]);
      }
      return contents;
    }, "de_ListStackSetOperationsOutput");
    var de_ListStackSetsOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.Summaries === "") {
        contents[_Su] = [];
      } else if (output[_Su] != null && output[_Su][_m2] != null) {
        contents[_Su] = de_StackSetSummaries((0, import_smithy_client28.getArrayIfSingleItem)(output[_Su][_m2]), context);
      }
      if (output[_NT] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_NT]);
      }
      return contents;
    }, "de_ListStackSetsOutput");
    var de_ListStacksOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.StackSummaries === "") {
        contents[_SSt] = [];
      } else if (output[_SSt] != null && output[_SSt][_m2] != null) {
        contents[_SSt] = de_StackSummaries((0, import_smithy_client28.getArrayIfSingleItem)(output[_SSt][_m2]), context);
      }
      if (output[_NT] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_NT]);
      }
      return contents;
    }, "de_ListStacksOutput");
    var de_ListTypeRegistrationsOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.RegistrationTokenList === "") {
        contents[_RTL] = [];
      } else if (output[_RTL] != null && output[_RTL][_m2] != null) {
        contents[_RTL] = de_RegistrationTokenList((0, import_smithy_client28.getArrayIfSingleItem)(output[_RTL][_m2]), context);
      }
      if (output[_NT] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_NT]);
      }
      return contents;
    }, "de_ListTypeRegistrationsOutput");
    var de_ListTypesOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.TypeSummaries === "") {
        contents[_TSy] = [];
      } else if (output[_TSy] != null && output[_TSy][_m2] != null) {
        contents[_TSy] = de_TypeSummaries((0, import_smithy_client28.getArrayIfSingleItem)(output[_TSy][_m2]), context);
      }
      if (output[_NT] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_NT]);
      }
      return contents;
    }, "de_ListTypesOutput");
    var de_ListTypeVersionsOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.TypeVersionSummaries === "") {
        contents[_TVS] = [];
      } else if (output[_TVS] != null && output[_TVS][_m2] != null) {
        contents[_TVS] = de_TypeVersionSummaries((0, import_smithy_client28.getArrayIfSingleItem)(output[_TVS][_m2]), context);
      }
      if (output[_NT] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_NT]);
      }
      return contents;
    }, "de_ListTypeVersionsOutput");
    var de_LoggingConfig = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_LRA] != null) {
        contents[_LRA] = (0, import_smithy_client28.expectString)(output[_LRA]);
      }
      if (output[_LGN] != null) {
        contents[_LGN] = (0, import_smithy_client28.expectString)(output[_LGN]);
      }
      return contents;
    }, "de_LoggingConfig");
    var de_LogicalResourceIds = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_LogicalResourceIds");
    var de_ManagedExecution = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Act] != null) {
        contents[_Act] = (0, import_smithy_client28.parseBoolean)(output[_Act]);
      }
      return contents;
    }, "de_ManagedExecution");
    var de_ModuleInfo = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_TH] != null) {
        contents[_TH] = (0, import_smithy_client28.expectString)(output[_TH]);
      }
      if (output[_LIH] != null) {
        contents[_LIH] = (0, import_smithy_client28.expectString)(output[_LIH]);
      }
      return contents;
    }, "de_ModuleInfo");
    var de_NameAlreadyExistsException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_NameAlreadyExistsException");
    var de_NotificationARNs = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_NotificationARNs");
    var de_OperationIdAlreadyExistsException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_OperationIdAlreadyExistsException");
    var de_OperationInProgressException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_OperationInProgressException");
    var de_OperationNotFoundException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_OperationNotFoundException");
    var de_OperationStatusCheckFailedException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_OperationStatusCheckFailedException");
    var de_OrganizationalUnitIdList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_OrganizationalUnitIdList");
    var de_Output = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_OK] != null) {
        contents[_OK] = (0, import_smithy_client28.expectString)(output[_OK]);
      }
      if (output[_OV] != null) {
        contents[_OV] = (0, import_smithy_client28.expectString)(output[_OV]);
      }
      if (output[_D] != null) {
        contents[_D] = (0, import_smithy_client28.expectString)(output[_D]);
      }
      if (output[_EN] != null) {
        contents[_EN] = (0, import_smithy_client28.expectString)(output[_EN]);
      }
      return contents;
    }, "de_Output");
    var de_Outputs = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Output(entry, context);
      });
    }, "de_Outputs");
    var de_Parameter = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_PK] != null) {
        contents[_PK] = (0, import_smithy_client28.expectString)(output[_PK]);
      }
      if (output[_PV] != null) {
        contents[_PV] = (0, import_smithy_client28.expectString)(output[_PV]);
      }
      if (output[_UPV] != null) {
        contents[_UPV] = (0, import_smithy_client28.parseBoolean)(output[_UPV]);
      }
      if (output[_RV] != null) {
        contents[_RV] = (0, import_smithy_client28.expectString)(output[_RV]);
      }
      return contents;
    }, "de_Parameter");
    var de_ParameterConstraints = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.AllowedValues === "") {
        contents[_AV] = [];
      } else if (output[_AV] != null && output[_AV][_m2] != null) {
        contents[_AV] = de_AllowedValues((0, import_smithy_client28.getArrayIfSingleItem)(output[_AV][_m2]), context);
      }
      return contents;
    }, "de_ParameterConstraints");
    var de_ParameterDeclaration = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_PK] != null) {
        contents[_PK] = (0, import_smithy_client28.expectString)(output[_PK]);
      }
      if (output[_DV] != null) {
        contents[_DV] = (0, import_smithy_client28.expectString)(output[_DV]);
      }
      if (output[_PTa] != null) {
        contents[_PTa] = (0, import_smithy_client28.expectString)(output[_PTa]);
      }
      if (output[_NE] != null) {
        contents[_NE] = (0, import_smithy_client28.parseBoolean)(output[_NE]);
      }
      if (output[_D] != null) {
        contents[_D] = (0, import_smithy_client28.expectString)(output[_D]);
      }
      if (output[_PCa] != null) {
        contents[_PCa] = de_ParameterConstraints(output[_PCa], context);
      }
      return contents;
    }, "de_ParameterDeclaration");
    var de_ParameterDeclarations = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ParameterDeclaration(entry, context);
      });
    }, "de_ParameterDeclarations");
    var de_Parameters = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Parameter(entry, context);
      });
    }, "de_Parameters");
    var de_PhysicalResourceIdContext = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_PhysicalResourceIdContextKeyValuePair(entry, context);
      });
    }, "de_PhysicalResourceIdContext");
    var de_PhysicalResourceIdContextKeyValuePair = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_K2] != null) {
        contents[_K2] = (0, import_smithy_client28.expectString)(output[_K2]);
      }
      if (output[_Val] != null) {
        contents[_Val] = (0, import_smithy_client28.expectString)(output[_Val]);
      }
      return contents;
    }, "de_PhysicalResourceIdContextKeyValuePair");
    var de_PropertyDifference = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_PPr] != null) {
        contents[_PPr] = (0, import_smithy_client28.expectString)(output[_PPr]);
      }
      if (output[_EV] != null) {
        contents[_EV] = (0, import_smithy_client28.expectString)(output[_EV]);
      }
      if (output[_AVc] != null) {
        contents[_AVc] = (0, import_smithy_client28.expectString)(output[_AVc]);
      }
      if (output[_DTi] != null) {
        contents[_DTi] = (0, import_smithy_client28.expectString)(output[_DTi]);
      }
      return contents;
    }, "de_PropertyDifference");
    var de_PropertyDifferences = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_PropertyDifference(entry, context);
      });
    }, "de_PropertyDifferences");
    var de_PublishTypeOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_PTA] != null) {
        contents[_PTA] = (0, import_smithy_client28.expectString)(output[_PTA]);
      }
      return contents;
    }, "de_PublishTypeOutput");
    var de_RecordHandlerProgressOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      return contents;
    }, "de_RecordHandlerProgressOutput");
    var de_RegionList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_RegionList");
    var de_RegisterPublisherOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_PI2] != null) {
        contents[_PI2] = (0, import_smithy_client28.expectString)(output[_PI2]);
      }
      return contents;
    }, "de_RegisterPublisherOutput");
    var de_RegisterTypeOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_RTeg] != null) {
        contents[_RTeg] = (0, import_smithy_client28.expectString)(output[_RTeg]);
      }
      return contents;
    }, "de_RegisterTypeOutput");
    var de_RegistrationTokenList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_RegistrationTokenList");
    var de_RelatedResources = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ScannedResource(entry, context);
      });
    }, "de_RelatedResources");
    var de_RequiredActivatedType = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_TNA] != null) {
        contents[_TNA] = (0, import_smithy_client28.expectString)(output[_TNA]);
      }
      if (output[_OTN] != null) {
        contents[_OTN] = (0, import_smithy_client28.expectString)(output[_OTN]);
      }
      if (output[_PI2] != null) {
        contents[_PI2] = (0, import_smithy_client28.expectString)(output[_PI2]);
      }
      if (output.SupportedMajorVersions === "") {
        contents[_SMV] = [];
      } else if (output[_SMV] != null && output[_SMV][_m2] != null) {
        contents[_SMV] = de_SupportedMajorVersions((0, import_smithy_client28.getArrayIfSingleItem)(output[_SMV][_m2]), context);
      }
      return contents;
    }, "de_RequiredActivatedType");
    var de_RequiredActivatedTypes = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_RequiredActivatedType(entry, context);
      });
    }, "de_RequiredActivatedTypes");
    var de_ResourceChange = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_PA2] != null) {
        contents[_PA2] = (0, import_smithy_client28.expectString)(output[_PA2]);
      }
      if (output[_A2] != null) {
        contents[_A2] = (0, import_smithy_client28.expectString)(output[_A2]);
      }
      if (output[_LRI] != null) {
        contents[_LRI] = (0, import_smithy_client28.expectString)(output[_LRI]);
      }
      if (output[_PRI] != null) {
        contents[_PRI] = (0, import_smithy_client28.expectString)(output[_PRI]);
      }
      if (output[_RTes] != null) {
        contents[_RTes] = (0, import_smithy_client28.expectString)(output[_RTes]);
      }
      if (output[_Rep] != null) {
        contents[_Rep] = (0, import_smithy_client28.expectString)(output[_Rep]);
      }
      if (output.Scope === "") {
        contents[_Sco] = [];
      } else if (output[_Sco] != null && output[_Sco][_m2] != null) {
        contents[_Sco] = de_Scope((0, import_smithy_client28.getArrayIfSingleItem)(output[_Sco][_m2]), context);
      }
      if (output.Details === "") {
        contents[_Det] = [];
      } else if (output[_Det] != null && output[_Det][_m2] != null) {
        contents[_Det] = de_ResourceChangeDetails((0, import_smithy_client28.getArrayIfSingleItem)(output[_Det][_m2]), context);
      }
      if (output[_CSIh] != null) {
        contents[_CSIh] = (0, import_smithy_client28.expectString)(output[_CSIh]);
      }
      if (output[_MI] != null) {
        contents[_MI] = de_ModuleInfo(output[_MI], context);
      }
      if (output[_BC] != null) {
        contents[_BC] = (0, import_smithy_client28.expectString)(output[_BC]);
      }
      if (output[_AC] != null) {
        contents[_AC] = (0, import_smithy_client28.expectString)(output[_AC]);
      }
      return contents;
    }, "de_ResourceChange");
    var de_ResourceChangeDetail = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Tar] != null) {
        contents[_Tar] = de_ResourceTargetDefinition(output[_Tar], context);
      }
      if (output[_Ev] != null) {
        contents[_Ev] = (0, import_smithy_client28.expectString)(output[_Ev]);
      }
      if (output[_CSh] != null) {
        contents[_CSh] = (0, import_smithy_client28.expectString)(output[_CSh]);
      }
      if (output[_CE] != null) {
        contents[_CE] = (0, import_smithy_client28.expectString)(output[_CE]);
      }
      return contents;
    }, "de_ResourceChangeDetail");
    var de_ResourceChangeDetails = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ResourceChangeDetail(entry, context);
      });
    }, "de_ResourceChangeDetails");
    var de_ResourceDetail = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_RTes] != null) {
        contents[_RTes] = (0, import_smithy_client28.expectString)(output[_RTes]);
      }
      if (output[_LRI] != null) {
        contents[_LRI] = (0, import_smithy_client28.expectString)(output[_LRI]);
      }
      if (output.ResourceIdentifier === "") {
        contents[_RI] = {};
      } else if (output[_RI] != null && output[_RI][_e] != null) {
        contents[_RI] = de_ResourceIdentifierProperties((0, import_smithy_client28.getArrayIfSingleItem)(output[_RI][_e]), context);
      }
      if (output[_RSeso] != null) {
        contents[_RSeso] = (0, import_smithy_client28.expectString)(output[_RSeso]);
      }
      if (output[_RSR] != null) {
        contents[_RSR] = (0, import_smithy_client28.expectString)(output[_RSR]);
      }
      if (output.Warnings === "") {
        contents[_W] = [];
      } else if (output[_W] != null && output[_W][_m2] != null) {
        contents[_W] = de_WarningDetails((0, import_smithy_client28.getArrayIfSingleItem)(output[_W][_m2]), context);
      }
      return contents;
    }, "de_ResourceDetail");
    var de_ResourceDetails = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ResourceDetail(entry, context);
      });
    }, "de_ResourceDetails");
    var de_ResourceIdentifierProperties = /* @__PURE__ */ __name2((output, context) => {
      return output.reduce((acc, pair) => {
        if (pair["value"] === null) {
          return acc;
        }
        acc[pair["key"]] = (0, import_smithy_client28.expectString)(pair["value"]);
        return acc;
      }, {});
    }, "de_ResourceIdentifierProperties");
    var de_ResourceIdentifiers = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_ResourceIdentifiers");
    var de_ResourceIdentifierSummaries = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ResourceIdentifierSummary(entry, context);
      });
    }, "de_ResourceIdentifierSummaries");
    var de_ResourceIdentifierSummary = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_RTes] != null) {
        contents[_RTes] = (0, import_smithy_client28.expectString)(output[_RTes]);
      }
      if (output.LogicalResourceIds === "") {
        contents[_LRIo] = [];
      } else if (output[_LRIo] != null && output[_LRIo][_m2] != null) {
        contents[_LRIo] = de_LogicalResourceIds((0, import_smithy_client28.getArrayIfSingleItem)(output[_LRIo][_m2]), context);
      }
      if (output.ResourceIdentifiers === "") {
        contents[_RIe] = [];
      } else if (output[_RIe] != null && output[_RIe][_m2] != null) {
        contents[_RIe] = de_ResourceIdentifiers((0, import_smithy_client28.getArrayIfSingleItem)(output[_RIe][_m2]), context);
      }
      return contents;
    }, "de_ResourceIdentifierSummary");
    var de_ResourceLocation = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_SN2] != null) {
        contents[_SN2] = (0, import_smithy_client28.expectString)(output[_SN2]);
      }
      if (output[_LRI] != null) {
        contents[_LRI] = (0, import_smithy_client28.expectString)(output[_LRI]);
      }
      return contents;
    }, "de_ResourceLocation");
    var de_ResourceMapping = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_So] != null) {
        contents[_So] = de_ResourceLocation(output[_So], context);
      }
      if (output[_De] != null) {
        contents[_De] = de_ResourceLocation(output[_De], context);
      }
      return contents;
    }, "de_ResourceMapping");
    var de_ResourceScanInProgressException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_ResourceScanInProgressException");
    var de_ResourceScanLimitExceededException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_ResourceScanLimitExceededException");
    var de_ResourceScanNotFoundException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_ResourceScanNotFoundException");
    var de_ResourceScanSummaries = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ResourceScanSummary(entry, context);
      });
    }, "de_ResourceScanSummaries");
    var de_ResourceScanSummary = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_RSI] != null) {
        contents[_RSI] = (0, import_smithy_client28.expectString)(output[_RSI]);
      }
      if (output[_S] != null) {
        contents[_S] = (0, import_smithy_client28.expectString)(output[_S]);
      }
      if (output[_SRt] != null) {
        contents[_SRt] = (0, import_smithy_client28.expectString)(output[_SRt]);
      }
      if (output[_ST2] != null) {
        contents[_ST2] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_ST2]));
      }
      if (output[_ET] != null) {
        contents[_ET] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_ET]));
      }
      if (output[_PC2] != null) {
        contents[_PC2] = (0, import_smithy_client28.strictParseFloat)(output[_PC2]);
      }
      if (output[_STc] != null) {
        contents[_STc] = (0, import_smithy_client28.expectString)(output[_STc]);
      }
      return contents;
    }, "de_ResourceScanSummary");
    var de_ResourceTargetDefinition = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_At] != null) {
        contents[_At] = (0, import_smithy_client28.expectString)(output[_At]);
      }
      if (output[_N] != null) {
        contents[_N] = (0, import_smithy_client28.expectString)(output[_N]);
      }
      if (output[_RReq] != null) {
        contents[_RReq] = (0, import_smithy_client28.expectString)(output[_RReq]);
      }
      if (output[_Pa] != null) {
        contents[_Pa] = (0, import_smithy_client28.expectString)(output[_Pa]);
      }
      if (output[_BV] != null) {
        contents[_BV] = (0, import_smithy_client28.expectString)(output[_BV]);
      }
      if (output[_AVf] != null) {
        contents[_AVf] = (0, import_smithy_client28.expectString)(output[_AVf]);
      }
      if (output[_ACT] != null) {
        contents[_ACT] = (0, import_smithy_client28.expectString)(output[_ACT]);
      }
      return contents;
    }, "de_ResourceTargetDefinition");
    var de_ResourceTypeFilters = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_ResourceTypeFilters");
    var de_ResourceTypes = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_ResourceTypes");
    var de_RollbackConfiguration = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.RollbackTriggers === "") {
        contents[_RTo] = [];
      } else if (output[_RTo] != null && output[_RTo][_m2] != null) {
        contents[_RTo] = de_RollbackTriggers((0, import_smithy_client28.getArrayIfSingleItem)(output[_RTo][_m2]), context);
      }
      if (output[_MTIM] != null) {
        contents[_MTIM] = (0, import_smithy_client28.strictParseInt32)(output[_MTIM]);
      }
      return contents;
    }, "de_RollbackConfiguration");
    var de_RollbackStackOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_SI2] != null) {
        contents[_SI2] = (0, import_smithy_client28.expectString)(output[_SI2]);
      }
      return contents;
    }, "de_RollbackStackOutput");
    var de_RollbackTrigger = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Ar2] != null) {
        contents[_Ar2] = (0, import_smithy_client28.expectString)(output[_Ar2]);
      }
      if (output[_T2] != null) {
        contents[_T2] = (0, import_smithy_client28.expectString)(output[_T2]);
      }
      return contents;
    }, "de_RollbackTrigger");
    var de_RollbackTriggers = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_RollbackTrigger(entry, context);
      });
    }, "de_RollbackTriggers");
    var de_ScanFilter = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.Types === "") {
        contents[_Ty] = [];
      } else if (output[_Ty] != null && output[_Ty][_m2] != null) {
        contents[_Ty] = de_ResourceTypeFilters((0, import_smithy_client28.getArrayIfSingleItem)(output[_Ty][_m2]), context);
      }
      return contents;
    }, "de_ScanFilter");
    var de_ScanFilters = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ScanFilter(entry, context);
      });
    }, "de_ScanFilters");
    var de_ScannedResource = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_RTes] != null) {
        contents[_RTes] = (0, import_smithy_client28.expectString)(output[_RTes]);
      }
      if (output.ResourceIdentifier === "") {
        contents[_RI] = {};
      } else if (output[_RI] != null && output[_RI][_e] != null) {
        contents[_RI] = de_JazzResourceIdentifierProperties((0, import_smithy_client28.getArrayIfSingleItem)(output[_RI][_e]), context);
      }
      if (output[_MBS] != null) {
        contents[_MBS] = (0, import_smithy_client28.parseBoolean)(output[_MBS]);
      }
      return contents;
    }, "de_ScannedResource");
    var de_ScannedResources = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ScannedResource(entry, context);
      });
    }, "de_ScannedResources");
    var de_Scope = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_Scope");
    var de_SetTypeConfigurationOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_CAonf] != null) {
        contents[_CAonf] = (0, import_smithy_client28.expectString)(output[_CAonf]);
      }
      return contents;
    }, "de_SetTypeConfigurationOutput");
    var de_SetTypeDefaultVersionOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      return contents;
    }, "de_SetTypeDefaultVersionOutput");
    var de_Stack = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_SI2] != null) {
        contents[_SI2] = (0, import_smithy_client28.expectString)(output[_SI2]);
      }
      if (output[_SN2] != null) {
        contents[_SN2] = (0, import_smithy_client28.expectString)(output[_SN2]);
      }
      if (output[_CSIh] != null) {
        contents[_CSIh] = (0, import_smithy_client28.expectString)(output[_CSIh]);
      }
      if (output[_D] != null) {
        contents[_D] = (0, import_smithy_client28.expectString)(output[_D]);
      }
      if (output.Parameters === "") {
        contents[_P2] = [];
      } else if (output[_P2] != null && output[_P2][_m2] != null) {
        contents[_P2] = de_Parameters((0, import_smithy_client28.getArrayIfSingleItem)(output[_P2][_m2]), context);
      }
      if (output[_CTr] != null) {
        contents[_CTr] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_CTr]));
      }
      if (output[_DTel] != null) {
        contents[_DTel] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_DTel]));
      }
      if (output[_LUT] != null) {
        contents[_LUT] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_LUT]));
      }
      if (output[_RC] != null) {
        contents[_RC] = de_RollbackConfiguration(output[_RC], context);
      }
      if (output[_SSta] != null) {
        contents[_SSta] = (0, import_smithy_client28.expectString)(output[_SSta]);
      }
      if (output[_SSR] != null) {
        contents[_SSR] = (0, import_smithy_client28.expectString)(output[_SSR]);
      }
      if (output[_DR] != null) {
        contents[_DR] = (0, import_smithy_client28.parseBoolean)(output[_DR]);
      }
      if (output.NotificationARNs === "") {
        contents[_NARN] = [];
      } else if (output[_NARN] != null && output[_NARN][_m2] != null) {
        contents[_NARN] = de_NotificationARNs((0, import_smithy_client28.getArrayIfSingleItem)(output[_NARN][_m2]), context);
      }
      if (output[_TIM] != null) {
        contents[_TIM] = (0, import_smithy_client28.strictParseInt32)(output[_TIM]);
      }
      if (output.Capabilities === "") {
        contents[_C2] = [];
      } else if (output[_C2] != null && output[_C2][_m2] != null) {
        contents[_C2] = de_Capabilities((0, import_smithy_client28.getArrayIfSingleItem)(output[_C2][_m2]), context);
      }
      if (output.Outputs === "") {
        contents[_O] = [];
      } else if (output[_O] != null && output[_O][_m2] != null) {
        contents[_O] = de_Outputs((0, import_smithy_client28.getArrayIfSingleItem)(output[_O][_m2]), context);
      }
      if (output[_RARN] != null) {
        contents[_RARN] = (0, import_smithy_client28.expectString)(output[_RARN]);
      }
      if (output.Tags === "") {
        contents[_Ta] = [];
      } else if (output[_Ta] != null && output[_Ta][_m2] != null) {
        contents[_Ta] = de_Tags((0, import_smithy_client28.getArrayIfSingleItem)(output[_Ta][_m2]), context);
      }
      if (output[_ETP] != null) {
        contents[_ETP] = (0, import_smithy_client28.parseBoolean)(output[_ETP]);
      }
      if (output[_PIa] != null) {
        contents[_PIa] = (0, import_smithy_client28.expectString)(output[_PIa]);
      }
      if (output[_RIo] != null) {
        contents[_RIo] = (0, import_smithy_client28.expectString)(output[_RIo]);
      }
      if (output[_DI] != null) {
        contents[_DI] = de_StackDriftInformation(output[_DI], context);
      }
      if (output[_REOC] != null) {
        contents[_REOC] = (0, import_smithy_client28.parseBoolean)(output[_REOC]);
      }
      if (output[_DM] != null) {
        contents[_DM] = (0, import_smithy_client28.expectString)(output[_DM]);
      }
      if (output[_DSeta] != null) {
        contents[_DSeta] = (0, import_smithy_client28.expectString)(output[_DSeta]);
      }
      return contents;
    }, "de_Stack");
    var de_StackDriftInformation = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_SDS] != null) {
        contents[_SDS] = (0, import_smithy_client28.expectString)(output[_SDS]);
      }
      if (output[_LCT] != null) {
        contents[_LCT] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_LCT]));
      }
      return contents;
    }, "de_StackDriftInformation");
    var de_StackDriftInformationSummary = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_SDS] != null) {
        contents[_SDS] = (0, import_smithy_client28.expectString)(output[_SDS]);
      }
      if (output[_LCT] != null) {
        contents[_LCT] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_LCT]));
      }
      return contents;
    }, "de_StackDriftInformationSummary");
    var de_StackEvent = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_SI2] != null) {
        contents[_SI2] = (0, import_smithy_client28.expectString)(output[_SI2]);
      }
      if (output[_EI2] != null) {
        contents[_EI2] = (0, import_smithy_client28.expectString)(output[_EI2]);
      }
      if (output[_SN2] != null) {
        contents[_SN2] = (0, import_smithy_client28.expectString)(output[_SN2]);
      }
      if (output[_LRI] != null) {
        contents[_LRI] = (0, import_smithy_client28.expectString)(output[_LRI]);
      }
      if (output[_PRI] != null) {
        contents[_PRI] = (0, import_smithy_client28.expectString)(output[_PRI]);
      }
      if (output[_RTes] != null) {
        contents[_RTes] = (0, import_smithy_client28.expectString)(output[_RTes]);
      }
      if (output[_Ti] != null) {
        contents[_Ti] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_Ti]));
      }
      if (output[_RSeso] != null) {
        contents[_RSeso] = (0, import_smithy_client28.expectString)(output[_RSeso]);
      }
      if (output[_RSR] != null) {
        contents[_RSR] = (0, import_smithy_client28.expectString)(output[_RSR]);
      }
      if (output[_RPe] != null) {
        contents[_RPe] = (0, import_smithy_client28.expectString)(output[_RPe]);
      }
      if (output[_CRT] != null) {
        contents[_CRT] = (0, import_smithy_client28.expectString)(output[_CRT]);
      }
      if (output[_HT] != null) {
        contents[_HT] = (0, import_smithy_client28.expectString)(output[_HT]);
      }
      if (output[_HS] != null) {
        contents[_HS] = (0, import_smithy_client28.expectString)(output[_HS]);
      }
      if (output[_HSR] != null) {
        contents[_HSR] = (0, import_smithy_client28.expectString)(output[_HSR]);
      }
      if (output[_HIP] != null) {
        contents[_HIP] = (0, import_smithy_client28.expectString)(output[_HIP]);
      }
      if (output[_HFM] != null) {
        contents[_HFM] = (0, import_smithy_client28.expectString)(output[_HFM]);
      }
      if (output[_DSeta] != null) {
        contents[_DSeta] = (0, import_smithy_client28.expectString)(output[_DSeta]);
      }
      return contents;
    }, "de_StackEvent");
    var de_StackEvents = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_StackEvent(entry, context);
      });
    }, "de_StackEvents");
    var de_StackIds = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_StackIds");
    var de_StackInstance = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_SSI] != null) {
        contents[_SSI] = (0, import_smithy_client28.expectString)(output[_SSI]);
      }
      if (output[_Reg] != null) {
        contents[_Reg] = (0, import_smithy_client28.expectString)(output[_Reg]);
      }
      if (output[_Acc] != null) {
        contents[_Acc] = (0, import_smithy_client28.expectString)(output[_Acc]);
      }
      if (output[_SI2] != null) {
        contents[_SI2] = (0, import_smithy_client28.expectString)(output[_SI2]);
      }
      if (output.ParameterOverrides === "") {
        contents[_PO] = [];
      } else if (output[_PO] != null && output[_PO][_m2] != null) {
        contents[_PO] = de_Parameters((0, import_smithy_client28.getArrayIfSingleItem)(output[_PO][_m2]), context);
      }
      if (output[_S] != null) {
        contents[_S] = (0, import_smithy_client28.expectString)(output[_S]);
      }
      if (output[_SIS] != null) {
        contents[_SIS] = de_StackInstanceComprehensiveStatus(output[_SIS], context);
      }
      if (output[_SRt] != null) {
        contents[_SRt] = (0, import_smithy_client28.expectString)(output[_SRt]);
      }
      if (output[_OUIr] != null) {
        contents[_OUIr] = (0, import_smithy_client28.expectString)(output[_OUIr]);
      }
      if (output[_DSr] != null) {
        contents[_DSr] = (0, import_smithy_client28.expectString)(output[_DSr]);
      }
      if (output[_LDCT] != null) {
        contents[_LDCT] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_LDCT]));
      }
      if (output[_LOI] != null) {
        contents[_LOI] = (0, import_smithy_client28.expectString)(output[_LOI]);
      }
      return contents;
    }, "de_StackInstance");
    var de_StackInstanceComprehensiveStatus = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_DSeta] != null) {
        contents[_DSeta] = (0, import_smithy_client28.expectString)(output[_DSeta]);
      }
      return contents;
    }, "de_StackInstanceComprehensiveStatus");
    var de_StackInstanceNotFoundException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_StackInstanceNotFoundException");
    var de_StackInstanceResourceDriftsSummaries = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_StackInstanceResourceDriftsSummary(entry, context);
      });
    }, "de_StackInstanceResourceDriftsSummaries");
    var de_StackInstanceResourceDriftsSummary = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_SI2] != null) {
        contents[_SI2] = (0, import_smithy_client28.expectString)(output[_SI2]);
      }
      if (output[_LRI] != null) {
        contents[_LRI] = (0, import_smithy_client28.expectString)(output[_LRI]);
      }
      if (output[_PRI] != null) {
        contents[_PRI] = (0, import_smithy_client28.expectString)(output[_PRI]);
      }
      if (output.PhysicalResourceIdContext === "") {
        contents[_PRIC] = [];
      } else if (output[_PRIC] != null && output[_PRIC][_m2] != null) {
        contents[_PRIC] = de_PhysicalResourceIdContext((0, import_smithy_client28.getArrayIfSingleItem)(output[_PRIC][_m2]), context);
      }
      if (output[_RTes] != null) {
        contents[_RTes] = (0, import_smithy_client28.expectString)(output[_RTes]);
      }
      if (output.PropertyDifferences === "") {
        contents[_PD] = [];
      } else if (output[_PD] != null && output[_PD][_m2] != null) {
        contents[_PD] = de_PropertyDifferences((0, import_smithy_client28.getArrayIfSingleItem)(output[_PD][_m2]), context);
      }
      if (output[_SRDS] != null) {
        contents[_SRDS] = (0, import_smithy_client28.expectString)(output[_SRDS]);
      }
      if (output[_Ti] != null) {
        contents[_Ti] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_Ti]));
      }
      return contents;
    }, "de_StackInstanceResourceDriftsSummary");
    var de_StackInstanceSummaries = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_StackInstanceSummary(entry, context);
      });
    }, "de_StackInstanceSummaries");
    var de_StackInstanceSummary = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_SSI] != null) {
        contents[_SSI] = (0, import_smithy_client28.expectString)(output[_SSI]);
      }
      if (output[_Reg] != null) {
        contents[_Reg] = (0, import_smithy_client28.expectString)(output[_Reg]);
      }
      if (output[_Acc] != null) {
        contents[_Acc] = (0, import_smithy_client28.expectString)(output[_Acc]);
      }
      if (output[_SI2] != null) {
        contents[_SI2] = (0, import_smithy_client28.expectString)(output[_SI2]);
      }
      if (output[_S] != null) {
        contents[_S] = (0, import_smithy_client28.expectString)(output[_S]);
      }
      if (output[_SRt] != null) {
        contents[_SRt] = (0, import_smithy_client28.expectString)(output[_SRt]);
      }
      if (output[_SIS] != null) {
        contents[_SIS] = de_StackInstanceComprehensiveStatus(output[_SIS], context);
      }
      if (output[_OUIr] != null) {
        contents[_OUIr] = (0, import_smithy_client28.expectString)(output[_OUIr]);
      }
      if (output[_DSr] != null) {
        contents[_DSr] = (0, import_smithy_client28.expectString)(output[_DSr]);
      }
      if (output[_LDCT] != null) {
        contents[_LDCT] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_LDCT]));
      }
      if (output[_LOI] != null) {
        contents[_LOI] = (0, import_smithy_client28.expectString)(output[_LOI]);
      }
      return contents;
    }, "de_StackInstanceSummary");
    var de_StackNotFoundException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_StackNotFoundException");
    var de_StackRefactorAction = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_A2] != null) {
        contents[_A2] = (0, import_smithy_client28.expectString)(output[_A2]);
      }
      if (output[_En] != null) {
        contents[_En] = (0, import_smithy_client28.expectString)(output[_En]);
      }
      if (output[_PRI] != null) {
        contents[_PRI] = (0, import_smithy_client28.expectString)(output[_PRI]);
      }
      if (output[_RI] != null) {
        contents[_RI] = (0, import_smithy_client28.expectString)(output[_RI]);
      }
      if (output[_D] != null) {
        contents[_D] = (0, import_smithy_client28.expectString)(output[_D]);
      }
      if (output[_Dete] != null) {
        contents[_Dete] = (0, import_smithy_client28.expectString)(output[_Dete]);
      }
      if (output[_DRe] != null) {
        contents[_DRe] = (0, import_smithy_client28.expectString)(output[_DRe]);
      }
      if (output.TagResources === "") {
        contents[_TR] = [];
      } else if (output[_TR] != null && output[_TR][_m2] != null) {
        contents[_TR] = de_StackRefactorTagResources((0, import_smithy_client28.getArrayIfSingleItem)(output[_TR][_m2]), context);
      }
      if (output.UntagResources === "") {
        contents[_UR] = [];
      } else if (output[_UR] != null && output[_UR][_m2] != null) {
        contents[_UR] = de_StackRefactorUntagResources((0, import_smithy_client28.getArrayIfSingleItem)(output[_UR][_m2]), context);
      }
      if (output[_RMes] != null) {
        contents[_RMes] = de_ResourceMapping(output[_RMes], context);
      }
      return contents;
    }, "de_StackRefactorAction");
    var de_StackRefactorActions = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_StackRefactorAction(entry, context);
      });
    }, "de_StackRefactorActions");
    var de_StackRefactorNotFoundException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_StackRefactorNotFoundException");
    var de_StackRefactorSummaries = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_StackRefactorSummary(entry, context);
      });
    }, "de_StackRefactorSummaries");
    var de_StackRefactorSummary = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_SRI] != null) {
        contents[_SRI] = (0, import_smithy_client28.expectString)(output[_SRI]);
      }
      if (output[_D] != null) {
        contents[_D] = (0, import_smithy_client28.expectString)(output[_D]);
      }
      if (output[_ES] != null) {
        contents[_ES] = (0, import_smithy_client28.expectString)(output[_ES]);
      }
      if (output[_ESRx] != null) {
        contents[_ESRx] = (0, import_smithy_client28.expectString)(output[_ESRx]);
      }
      if (output[_S] != null) {
        contents[_S] = (0, import_smithy_client28.expectString)(output[_S]);
      }
      if (output[_SRt] != null) {
        contents[_SRt] = (0, import_smithy_client28.expectString)(output[_SRt]);
      }
      return contents;
    }, "de_StackRefactorSummary");
    var de_StackRefactorTagResources = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Tag(entry, context);
      });
    }, "de_StackRefactorTagResources");
    var de_StackRefactorUntagResources = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_StackRefactorUntagResources");
    var de_StackResource = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_SN2] != null) {
        contents[_SN2] = (0, import_smithy_client28.expectString)(output[_SN2]);
      }
      if (output[_SI2] != null) {
        contents[_SI2] = (0, import_smithy_client28.expectString)(output[_SI2]);
      }
      if (output[_LRI] != null) {
        contents[_LRI] = (0, import_smithy_client28.expectString)(output[_LRI]);
      }
      if (output[_PRI] != null) {
        contents[_PRI] = (0, import_smithy_client28.expectString)(output[_PRI]);
      }
      if (output[_RTes] != null) {
        contents[_RTes] = (0, import_smithy_client28.expectString)(output[_RTes]);
      }
      if (output[_Ti] != null) {
        contents[_Ti] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_Ti]));
      }
      if (output[_RSeso] != null) {
        contents[_RSeso] = (0, import_smithy_client28.expectString)(output[_RSeso]);
      }
      if (output[_RSR] != null) {
        contents[_RSR] = (0, import_smithy_client28.expectString)(output[_RSR]);
      }
      if (output[_D] != null) {
        contents[_D] = (0, import_smithy_client28.expectString)(output[_D]);
      }
      if (output[_DI] != null) {
        contents[_DI] = de_StackResourceDriftInformation(output[_DI], context);
      }
      if (output[_MI] != null) {
        contents[_MI] = de_ModuleInfo(output[_MI], context);
      }
      return contents;
    }, "de_StackResource");
    var de_StackResourceDetail = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_SN2] != null) {
        contents[_SN2] = (0, import_smithy_client28.expectString)(output[_SN2]);
      }
      if (output[_SI2] != null) {
        contents[_SI2] = (0, import_smithy_client28.expectString)(output[_SI2]);
      }
      if (output[_LRI] != null) {
        contents[_LRI] = (0, import_smithy_client28.expectString)(output[_LRI]);
      }
      if (output[_PRI] != null) {
        contents[_PRI] = (0, import_smithy_client28.expectString)(output[_PRI]);
      }
      if (output[_RTes] != null) {
        contents[_RTes] = (0, import_smithy_client28.expectString)(output[_RTes]);
      }
      if (output[_LUTa] != null) {
        contents[_LUTa] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_LUTa]));
      }
      if (output[_RSeso] != null) {
        contents[_RSeso] = (0, import_smithy_client28.expectString)(output[_RSeso]);
      }
      if (output[_RSR] != null) {
        contents[_RSR] = (0, import_smithy_client28.expectString)(output[_RSR]);
      }
      if (output[_D] != null) {
        contents[_D] = (0, import_smithy_client28.expectString)(output[_D]);
      }
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      if (output[_DI] != null) {
        contents[_DI] = de_StackResourceDriftInformation(output[_DI], context);
      }
      if (output[_MI] != null) {
        contents[_MI] = de_ModuleInfo(output[_MI], context);
      }
      return contents;
    }, "de_StackResourceDetail");
    var de_StackResourceDrift = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_SI2] != null) {
        contents[_SI2] = (0, import_smithy_client28.expectString)(output[_SI2]);
      }
      if (output[_LRI] != null) {
        contents[_LRI] = (0, import_smithy_client28.expectString)(output[_LRI]);
      }
      if (output[_PRI] != null) {
        contents[_PRI] = (0, import_smithy_client28.expectString)(output[_PRI]);
      }
      if (output.PhysicalResourceIdContext === "") {
        contents[_PRIC] = [];
      } else if (output[_PRIC] != null && output[_PRIC][_m2] != null) {
        contents[_PRIC] = de_PhysicalResourceIdContext((0, import_smithy_client28.getArrayIfSingleItem)(output[_PRIC][_m2]), context);
      }
      if (output[_RTes] != null) {
        contents[_RTes] = (0, import_smithy_client28.expectString)(output[_RTes]);
      }
      if (output[_EP] != null) {
        contents[_EP] = (0, import_smithy_client28.expectString)(output[_EP]);
      }
      if (output[_AP] != null) {
        contents[_AP] = (0, import_smithy_client28.expectString)(output[_AP]);
      }
      if (output.PropertyDifferences === "") {
        contents[_PD] = [];
      } else if (output[_PD] != null && output[_PD][_m2] != null) {
        contents[_PD] = de_PropertyDifferences((0, import_smithy_client28.getArrayIfSingleItem)(output[_PD][_m2]), context);
      }
      if (output[_SRDS] != null) {
        contents[_SRDS] = (0, import_smithy_client28.expectString)(output[_SRDS]);
      }
      if (output[_Ti] != null) {
        contents[_Ti] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_Ti]));
      }
      if (output[_MI] != null) {
        contents[_MI] = de_ModuleInfo(output[_MI], context);
      }
      if (output[_DSRr] != null) {
        contents[_DSRr] = (0, import_smithy_client28.expectString)(output[_DSRr]);
      }
      return contents;
    }, "de_StackResourceDrift");
    var de_StackResourceDriftInformation = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_SRDS] != null) {
        contents[_SRDS] = (0, import_smithy_client28.expectString)(output[_SRDS]);
      }
      if (output[_LCT] != null) {
        contents[_LCT] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_LCT]));
      }
      return contents;
    }, "de_StackResourceDriftInformation");
    var de_StackResourceDriftInformationSummary = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_SRDS] != null) {
        contents[_SRDS] = (0, import_smithy_client28.expectString)(output[_SRDS]);
      }
      if (output[_LCT] != null) {
        contents[_LCT] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_LCT]));
      }
      return contents;
    }, "de_StackResourceDriftInformationSummary");
    var de_StackResourceDrifts = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_StackResourceDrift(entry, context);
      });
    }, "de_StackResourceDrifts");
    var de_StackResources = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_StackResource(entry, context);
      });
    }, "de_StackResources");
    var de_StackResourceSummaries = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_StackResourceSummary(entry, context);
      });
    }, "de_StackResourceSummaries");
    var de_StackResourceSummary = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_LRI] != null) {
        contents[_LRI] = (0, import_smithy_client28.expectString)(output[_LRI]);
      }
      if (output[_PRI] != null) {
        contents[_PRI] = (0, import_smithy_client28.expectString)(output[_PRI]);
      }
      if (output[_RTes] != null) {
        contents[_RTes] = (0, import_smithy_client28.expectString)(output[_RTes]);
      }
      if (output[_LUTa] != null) {
        contents[_LUTa] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_LUTa]));
      }
      if (output[_RSeso] != null) {
        contents[_RSeso] = (0, import_smithy_client28.expectString)(output[_RSeso]);
      }
      if (output[_RSR] != null) {
        contents[_RSR] = (0, import_smithy_client28.expectString)(output[_RSR]);
      }
      if (output[_DI] != null) {
        contents[_DI] = de_StackResourceDriftInformationSummary(output[_DI], context);
      }
      if (output[_MI] != null) {
        contents[_MI] = de_ModuleInfo(output[_MI], context);
      }
      return contents;
    }, "de_StackResourceSummary");
    var de_Stacks = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Stack(entry, context);
      });
    }, "de_Stacks");
    var de_StackSet = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_SSN] != null) {
        contents[_SSN] = (0, import_smithy_client28.expectString)(output[_SSN]);
      }
      if (output[_SSI] != null) {
        contents[_SSI] = (0, import_smithy_client28.expectString)(output[_SSI]);
      }
      if (output[_D] != null) {
        contents[_D] = (0, import_smithy_client28.expectString)(output[_D]);
      }
      if (output[_S] != null) {
        contents[_S] = (0, import_smithy_client28.expectString)(output[_S]);
      }
      if (output[_TB] != null) {
        contents[_TB] = (0, import_smithy_client28.expectString)(output[_TB]);
      }
      if (output.Parameters === "") {
        contents[_P2] = [];
      } else if (output[_P2] != null && output[_P2][_m2] != null) {
        contents[_P2] = de_Parameters((0, import_smithy_client28.getArrayIfSingleItem)(output[_P2][_m2]), context);
      }
      if (output.Capabilities === "") {
        contents[_C2] = [];
      } else if (output[_C2] != null && output[_C2][_m2] != null) {
        contents[_C2] = de_Capabilities((0, import_smithy_client28.getArrayIfSingleItem)(output[_C2][_m2]), context);
      }
      if (output.Tags === "") {
        contents[_Ta] = [];
      } else if (output[_Ta] != null && output[_Ta][_m2] != null) {
        contents[_Ta] = de_Tags((0, import_smithy_client28.getArrayIfSingleItem)(output[_Ta][_m2]), context);
      }
      if (output[_SSARN] != null) {
        contents[_SSARN] = (0, import_smithy_client28.expectString)(output[_SSARN]);
      }
      if (output[_ARARN] != null) {
        contents[_ARARN] = (0, import_smithy_client28.expectString)(output[_ARARN]);
      }
      if (output[_ERN] != null) {
        contents[_ERN] = (0, import_smithy_client28.expectString)(output[_ERN]);
      }
      if (output[_SSDDD] != null) {
        contents[_SSDDD] = de_StackSetDriftDetectionDetails(output[_SSDDD], context);
      }
      if (output[_AD] != null) {
        contents[_AD] = de_AutoDeployment(output[_AD], context);
      }
      if (output[_PM] != null) {
        contents[_PM] = (0, import_smithy_client28.expectString)(output[_PM]);
      }
      if (output.OrganizationalUnitIds === "") {
        contents[_OUI] = [];
      } else if (output[_OUI] != null && output[_OUI][_m2] != null) {
        contents[_OUI] = de_OrganizationalUnitIdList((0, import_smithy_client28.getArrayIfSingleItem)(output[_OUI][_m2]), context);
      }
      if (output[_ME] != null) {
        contents[_ME] = de_ManagedExecution(output[_ME], context);
      }
      if (output.Regions === "") {
        contents[_Re] = [];
      } else if (output[_Re] != null && output[_Re][_m2] != null) {
        contents[_Re] = de_RegionList((0, import_smithy_client28.getArrayIfSingleItem)(output[_Re][_m2]), context);
      }
      return contents;
    }, "de_StackSet");
    var de_StackSetAutoDeploymentTargetSummaries = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_StackSetAutoDeploymentTargetSummary(entry, context);
      });
    }, "de_StackSetAutoDeploymentTargetSummaries");
    var de_StackSetAutoDeploymentTargetSummary = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_OUIr] != null) {
        contents[_OUIr] = (0, import_smithy_client28.expectString)(output[_OUIr]);
      }
      if (output.Regions === "") {
        contents[_Re] = [];
      } else if (output[_Re] != null && output[_Re][_m2] != null) {
        contents[_Re] = de_RegionList((0, import_smithy_client28.getArrayIfSingleItem)(output[_Re][_m2]), context);
      }
      return contents;
    }, "de_StackSetAutoDeploymentTargetSummary");
    var de_StackSetDriftDetectionDetails = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_DSr] != null) {
        contents[_DSr] = (0, import_smithy_client28.expectString)(output[_DSr]);
      }
      if (output[_DDS] != null) {
        contents[_DDS] = (0, import_smithy_client28.expectString)(output[_DDS]);
      }
      if (output[_LDCT] != null) {
        contents[_LDCT] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_LDCT]));
      }
      if (output[_TSIC] != null) {
        contents[_TSIC] = (0, import_smithy_client28.strictParseInt32)(output[_TSIC]);
      }
      if (output[_DSIC] != null) {
        contents[_DSIC] = (0, import_smithy_client28.strictParseInt32)(output[_DSIC]);
      }
      if (output[_ISSIC] != null) {
        contents[_ISSIC] = (0, import_smithy_client28.strictParseInt32)(output[_ISSIC]);
      }
      if (output[_IPSIC] != null) {
        contents[_IPSIC] = (0, import_smithy_client28.strictParseInt32)(output[_IPSIC]);
      }
      if (output[_FSIC] != null) {
        contents[_FSIC] = (0, import_smithy_client28.strictParseInt32)(output[_FSIC]);
      }
      return contents;
    }, "de_StackSetDriftDetectionDetails");
    var de_StackSetNotEmptyException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_StackSetNotEmptyException");
    var de_StackSetNotFoundException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_StackSetNotFoundException");
    var de_StackSetOperation = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_OI] != null) {
        contents[_OI] = (0, import_smithy_client28.expectString)(output[_OI]);
      }
      if (output[_SSI] != null) {
        contents[_SSI] = (0, import_smithy_client28.expectString)(output[_SSI]);
      }
      if (output[_A2] != null) {
        contents[_A2] = (0, import_smithy_client28.expectString)(output[_A2]);
      }
      if (output[_S] != null) {
        contents[_S] = (0, import_smithy_client28.expectString)(output[_S]);
      }
      if (output[_OP] != null) {
        contents[_OP] = de_StackSetOperationPreferences(output[_OP], context);
      }
      if (output[_RSe] != null) {
        contents[_RSe] = (0, import_smithy_client28.parseBoolean)(output[_RSe]);
      }
      if (output[_ARARN] != null) {
        contents[_ARARN] = (0, import_smithy_client28.expectString)(output[_ARARN]);
      }
      if (output[_ERN] != null) {
        contents[_ERN] = (0, import_smithy_client28.expectString)(output[_ERN]);
      }
      if (output[_CTre] != null) {
        contents[_CTre] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_CTre]));
      }
      if (output[_ETn] != null) {
        contents[_ETn] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_ETn]));
      }
      if (output[_DTep] != null) {
        contents[_DTep] = de_DeploymentTargets(output[_DTep], context);
      }
      if (output[_SSDDD] != null) {
        contents[_SSDDD] = de_StackSetDriftDetectionDetails(output[_SSDDD], context);
      }
      if (output[_SRt] != null) {
        contents[_SRt] = (0, import_smithy_client28.expectString)(output[_SRt]);
      }
      if (output[_SDt] != null) {
        contents[_SDt] = de_StackSetOperationStatusDetails(output[_SDt], context);
      }
      return contents;
    }, "de_StackSetOperation");
    var de_StackSetOperationPreferences = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_RCT] != null) {
        contents[_RCT] = (0, import_smithy_client28.expectString)(output[_RCT]);
      }
      if (output.RegionOrder === "") {
        contents[_RO] = [];
      } else if (output[_RO] != null && output[_RO][_m2] != null) {
        contents[_RO] = de_RegionList((0, import_smithy_client28.getArrayIfSingleItem)(output[_RO][_m2]), context);
      }
      if (output[_FTC] != null) {
        contents[_FTC] = (0, import_smithy_client28.strictParseInt32)(output[_FTC]);
      }
      if (output[_FTP] != null) {
        contents[_FTP] = (0, import_smithy_client28.strictParseInt32)(output[_FTP]);
      }
      if (output[_MCC] != null) {
        contents[_MCC] = (0, import_smithy_client28.strictParseInt32)(output[_MCC]);
      }
      if (output[_MCP] != null) {
        contents[_MCP] = (0, import_smithy_client28.strictParseInt32)(output[_MCP]);
      }
      if (output[_CM] != null) {
        contents[_CM] = (0, import_smithy_client28.expectString)(output[_CM]);
      }
      return contents;
    }, "de_StackSetOperationPreferences");
    var de_StackSetOperationResultSummaries = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_StackSetOperationResultSummary(entry, context);
      });
    }, "de_StackSetOperationResultSummaries");
    var de_StackSetOperationResultSummary = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Acc] != null) {
        contents[_Acc] = (0, import_smithy_client28.expectString)(output[_Acc]);
      }
      if (output[_Reg] != null) {
        contents[_Reg] = (0, import_smithy_client28.expectString)(output[_Reg]);
      }
      if (output[_S] != null) {
        contents[_S] = (0, import_smithy_client28.expectString)(output[_S]);
      }
      if (output[_SRt] != null) {
        contents[_SRt] = (0, import_smithy_client28.expectString)(output[_SRt]);
      }
      if (output[_AGR] != null) {
        contents[_AGR] = de_AccountGateResult(output[_AGR], context);
      }
      if (output[_OUIr] != null) {
        contents[_OUIr] = (0, import_smithy_client28.expectString)(output[_OUIr]);
      }
      return contents;
    }, "de_StackSetOperationResultSummary");
    var de_StackSetOperationStatusDetails = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_FSIC] != null) {
        contents[_FSIC] = (0, import_smithy_client28.strictParseInt32)(output[_FSIC]);
      }
      return contents;
    }, "de_StackSetOperationStatusDetails");
    var de_StackSetOperationSummaries = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_StackSetOperationSummary(entry, context);
      });
    }, "de_StackSetOperationSummaries");
    var de_StackSetOperationSummary = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_OI] != null) {
        contents[_OI] = (0, import_smithy_client28.expectString)(output[_OI]);
      }
      if (output[_A2] != null) {
        contents[_A2] = (0, import_smithy_client28.expectString)(output[_A2]);
      }
      if (output[_S] != null) {
        contents[_S] = (0, import_smithy_client28.expectString)(output[_S]);
      }
      if (output[_CTre] != null) {
        contents[_CTre] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_CTre]));
      }
      if (output[_ETn] != null) {
        contents[_ETn] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_ETn]));
      }
      if (output[_SRt] != null) {
        contents[_SRt] = (0, import_smithy_client28.expectString)(output[_SRt]);
      }
      if (output[_SDt] != null) {
        contents[_SDt] = de_StackSetOperationStatusDetails(output[_SDt], context);
      }
      if (output[_OP] != null) {
        contents[_OP] = de_StackSetOperationPreferences(output[_OP], context);
      }
      return contents;
    }, "de_StackSetOperationSummary");
    var de_StackSetSummaries = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_StackSetSummary(entry, context);
      });
    }, "de_StackSetSummaries");
    var de_StackSetSummary = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_SSN] != null) {
        contents[_SSN] = (0, import_smithy_client28.expectString)(output[_SSN]);
      }
      if (output[_SSI] != null) {
        contents[_SSI] = (0, import_smithy_client28.expectString)(output[_SSI]);
      }
      if (output[_D] != null) {
        contents[_D] = (0, import_smithy_client28.expectString)(output[_D]);
      }
      if (output[_S] != null) {
        contents[_S] = (0, import_smithy_client28.expectString)(output[_S]);
      }
      if (output[_AD] != null) {
        contents[_AD] = de_AutoDeployment(output[_AD], context);
      }
      if (output[_PM] != null) {
        contents[_PM] = (0, import_smithy_client28.expectString)(output[_PM]);
      }
      if (output[_DSr] != null) {
        contents[_DSr] = (0, import_smithy_client28.expectString)(output[_DSr]);
      }
      if (output[_LDCT] != null) {
        contents[_LDCT] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_LDCT]));
      }
      if (output[_ME] != null) {
        contents[_ME] = de_ManagedExecution(output[_ME], context);
      }
      return contents;
    }, "de_StackSetSummary");
    var de_StackSummaries = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_StackSummary(entry, context);
      });
    }, "de_StackSummaries");
    var de_StackSummary = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_SI2] != null) {
        contents[_SI2] = (0, import_smithy_client28.expectString)(output[_SI2]);
      }
      if (output[_SN2] != null) {
        contents[_SN2] = (0, import_smithy_client28.expectString)(output[_SN2]);
      }
      if (output[_TDe] != null) {
        contents[_TDe] = (0, import_smithy_client28.expectString)(output[_TDe]);
      }
      if (output[_CTr] != null) {
        contents[_CTr] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_CTr]));
      }
      if (output[_LUT] != null) {
        contents[_LUT] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_LUT]));
      }
      if (output[_DTel] != null) {
        contents[_DTel] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_DTel]));
      }
      if (output[_SSta] != null) {
        contents[_SSta] = (0, import_smithy_client28.expectString)(output[_SSta]);
      }
      if (output[_SSR] != null) {
        contents[_SSR] = (0, import_smithy_client28.expectString)(output[_SSR]);
      }
      if (output[_PIa] != null) {
        contents[_PIa] = (0, import_smithy_client28.expectString)(output[_PIa]);
      }
      if (output[_RIo] != null) {
        contents[_RIo] = (0, import_smithy_client28.expectString)(output[_RIo]);
      }
      if (output[_DI] != null) {
        contents[_DI] = de_StackDriftInformationSummary(output[_DI], context);
      }
      return contents;
    }, "de_StackSummary");
    var de_StageList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_StageList");
    var de_StaleRequestException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_StaleRequestException");
    var de_StartResourceScanOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_RSI] != null) {
        contents[_RSI] = (0, import_smithy_client28.expectString)(output[_RSI]);
      }
      return contents;
    }, "de_StartResourceScanOutput");
    var de_StopStackSetOperationOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      return contents;
    }, "de_StopStackSetOperationOutput");
    var de_SupportedMajorVersions = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.strictParseInt32)(entry);
      });
    }, "de_SupportedMajorVersions");
    var de_Tag = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_K2] != null) {
        contents[_K2] = (0, import_smithy_client28.expectString)(output[_K2]);
      }
      if (output[_Val] != null) {
        contents[_Val] = (0, import_smithy_client28.expectString)(output[_Val]);
      }
      return contents;
    }, "de_Tag");
    var de_Tags = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Tag(entry, context);
      });
    }, "de_Tags");
    var de_TemplateConfiguration = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_DPe] != null) {
        contents[_DPe] = (0, import_smithy_client28.expectString)(output[_DPe]);
      }
      if (output[_URP] != null) {
        contents[_URP] = (0, import_smithy_client28.expectString)(output[_URP]);
      }
      return contents;
    }, "de_TemplateConfiguration");
    var de_TemplateParameter = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_PK] != null) {
        contents[_PK] = (0, import_smithy_client28.expectString)(output[_PK]);
      }
      if (output[_DV] != null) {
        contents[_DV] = (0, import_smithy_client28.expectString)(output[_DV]);
      }
      if (output[_NE] != null) {
        contents[_NE] = (0, import_smithy_client28.parseBoolean)(output[_NE]);
      }
      if (output[_D] != null) {
        contents[_D] = (0, import_smithy_client28.expectString)(output[_D]);
      }
      return contents;
    }, "de_TemplateParameter");
    var de_TemplateParameters = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TemplateParameter(entry, context);
      });
    }, "de_TemplateParameters");
    var de_TemplateProgress = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_RSesou] != null) {
        contents[_RSesou] = (0, import_smithy_client28.strictParseInt32)(output[_RSesou]);
      }
      if (output[_RF] != null) {
        contents[_RF] = (0, import_smithy_client28.strictParseInt32)(output[_RF]);
      }
      if (output[_RPes] != null) {
        contents[_RPes] = (0, import_smithy_client28.strictParseInt32)(output[_RPes]);
      }
      if (output[_RPeso] != null) {
        contents[_RPeso] = (0, import_smithy_client28.strictParseInt32)(output[_RPeso]);
      }
      return contents;
    }, "de_TemplateProgress");
    var de_TemplateSummaries = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TemplateSummary(entry, context);
      });
    }, "de_TemplateSummaries");
    var de_TemplateSummary = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_GTI] != null) {
        contents[_GTI] = (0, import_smithy_client28.expectString)(output[_GTI]);
      }
      if (output[_GTN] != null) {
        contents[_GTN] = (0, import_smithy_client28.expectString)(output[_GTN]);
      }
      if (output[_S] != null) {
        contents[_S] = (0, import_smithy_client28.expectString)(output[_S]);
      }
      if (output[_SRt] != null) {
        contents[_SRt] = (0, import_smithy_client28.expectString)(output[_SRt]);
      }
      if (output[_CTr] != null) {
        contents[_CTr] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_CTr]));
      }
      if (output[_LUT] != null) {
        contents[_LUT] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_LUT]));
      }
      if (output[_NOR] != null) {
        contents[_NOR] = (0, import_smithy_client28.strictParseInt32)(output[_NOR]);
      }
      return contents;
    }, "de_TemplateSummary");
    var de_TestTypeOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_TVA] != null) {
        contents[_TVA] = (0, import_smithy_client28.expectString)(output[_TVA]);
      }
      return contents;
    }, "de_TestTypeOutput");
    var de_TokenAlreadyExistsException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_TokenAlreadyExistsException");
    var de_TransformsList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_TransformsList");
    var de_TypeConfigurationDetails = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Ar2] != null) {
        contents[_Ar2] = (0, import_smithy_client28.expectString)(output[_Ar2]);
      }
      if (output[_Al] != null) {
        contents[_Al] = (0, import_smithy_client28.expectString)(output[_Al]);
      }
      if (output[_Co] != null) {
        contents[_Co] = (0, import_smithy_client28.expectString)(output[_Co]);
      }
      if (output[_LU] != null) {
        contents[_LU] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_LU]));
      }
      if (output[_TA] != null) {
        contents[_TA] = (0, import_smithy_client28.expectString)(output[_TA]);
      }
      if (output[_TN] != null) {
        contents[_TN] = (0, import_smithy_client28.expectString)(output[_TN]);
      }
      if (output[_IDC] != null) {
        contents[_IDC] = (0, import_smithy_client28.parseBoolean)(output[_IDC]);
      }
      return contents;
    }, "de_TypeConfigurationDetails");
    var de_TypeConfigurationDetailsList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TypeConfigurationDetails(entry, context);
      });
    }, "de_TypeConfigurationDetailsList");
    var de_TypeConfigurationIdentifier = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_TA] != null) {
        contents[_TA] = (0, import_smithy_client28.expectString)(output[_TA]);
      }
      if (output[_TCA] != null) {
        contents[_TCA] = (0, import_smithy_client28.expectString)(output[_TCA]);
      }
      if (output[_TCAy] != null) {
        contents[_TCAy] = (0, import_smithy_client28.expectString)(output[_TCAy]);
      }
      if (output[_T2] != null) {
        contents[_T2] = (0, import_smithy_client28.expectString)(output[_T2]);
      }
      if (output[_TN] != null) {
        contents[_TN] = (0, import_smithy_client28.expectString)(output[_TN]);
      }
      return contents;
    }, "de_TypeConfigurationIdentifier");
    var de_TypeConfigurationNotFoundException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_TypeConfigurationNotFoundException");
    var de_TypeNotFoundException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_TypeNotFoundException");
    var de_TypeSummaries = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TypeSummary(entry, context);
      });
    }, "de_TypeSummaries");
    var de_TypeSummary = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_T2] != null) {
        contents[_T2] = (0, import_smithy_client28.expectString)(output[_T2]);
      }
      if (output[_TN] != null) {
        contents[_TN] = (0, import_smithy_client28.expectString)(output[_TN]);
      }
      if (output[_DVI] != null) {
        contents[_DVI] = (0, import_smithy_client28.expectString)(output[_DVI]);
      }
      if (output[_TA] != null) {
        contents[_TA] = (0, import_smithy_client28.expectString)(output[_TA]);
      }
      if (output[_LU] != null) {
        contents[_LU] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_LU]));
      }
      if (output[_D] != null) {
        contents[_D] = (0, import_smithy_client28.expectString)(output[_D]);
      }
      if (output[_PI2] != null) {
        contents[_PI2] = (0, import_smithy_client28.expectString)(output[_PI2]);
      }
      if (output[_OTN] != null) {
        contents[_OTN] = (0, import_smithy_client28.expectString)(output[_OTN]);
      }
      if (output[_PVN] != null) {
        contents[_PVN] = (0, import_smithy_client28.expectString)(output[_PVN]);
      }
      if (output[_LPV] != null) {
        contents[_LPV] = (0, import_smithy_client28.expectString)(output[_LPV]);
      }
      if (output[_PIu] != null) {
        contents[_PIu] = (0, import_smithy_client28.expectString)(output[_PIu]);
      }
      if (output[_PN] != null) {
        contents[_PN] = (0, import_smithy_client28.expectString)(output[_PN]);
      }
      if (output[_IA] != null) {
        contents[_IA] = (0, import_smithy_client28.parseBoolean)(output[_IA]);
      }
      return contents;
    }, "de_TypeSummary");
    var de_TypeVersionSummaries = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TypeVersionSummary(entry, context);
      });
    }, "de_TypeVersionSummaries");
    var de_TypeVersionSummary = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_T2] != null) {
        contents[_T2] = (0, import_smithy_client28.expectString)(output[_T2]);
      }
      if (output[_TN] != null) {
        contents[_TN] = (0, import_smithy_client28.expectString)(output[_TN]);
      }
      if (output[_VI] != null) {
        contents[_VI] = (0, import_smithy_client28.expectString)(output[_VI]);
      }
      if (output[_IDV] != null) {
        contents[_IDV] = (0, import_smithy_client28.parseBoolean)(output[_IDV]);
      }
      if (output[_Ar2] != null) {
        contents[_Ar2] = (0, import_smithy_client28.expectString)(output[_Ar2]);
      }
      if (output[_TCi] != null) {
        contents[_TCi] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_TCi]));
      }
      if (output[_D] != null) {
        contents[_D] = (0, import_smithy_client28.expectString)(output[_D]);
      }
      if (output[_PVN] != null) {
        contents[_PVN] = (0, import_smithy_client28.expectString)(output[_PVN]);
      }
      return contents;
    }, "de_TypeVersionSummary");
    var de_UnprocessedTypeConfigurations = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TypeConfigurationIdentifier(entry, context);
      });
    }, "de_UnprocessedTypeConfigurations");
    var de_UpdateGeneratedTemplateOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_GTI] != null) {
        contents[_GTI] = (0, import_smithy_client28.expectString)(output[_GTI]);
      }
      return contents;
    }, "de_UpdateGeneratedTemplateOutput");
    var de_UpdateStackInstancesOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_OI] != null) {
        contents[_OI] = (0, import_smithy_client28.expectString)(output[_OI]);
      }
      return contents;
    }, "de_UpdateStackInstancesOutput");
    var de_UpdateStackOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_SI2] != null) {
        contents[_SI2] = (0, import_smithy_client28.expectString)(output[_SI2]);
      }
      return contents;
    }, "de_UpdateStackOutput");
    var de_UpdateStackSetOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_OI] != null) {
        contents[_OI] = (0, import_smithy_client28.expectString)(output[_OI]);
      }
      return contents;
    }, "de_UpdateStackSetOutput");
    var de_UpdateTerminationProtectionOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_SI2] != null) {
        contents[_SI2] = (0, import_smithy_client28.expectString)(output[_SI2]);
      }
      return contents;
    }, "de_UpdateTerminationProtectionOutput");
    var de_ValidateTemplateOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.Parameters === "") {
        contents[_P2] = [];
      } else if (output[_P2] != null && output[_P2][_m2] != null) {
        contents[_P2] = de_TemplateParameters((0, import_smithy_client28.getArrayIfSingleItem)(output[_P2][_m2]), context);
      }
      if (output[_D] != null) {
        contents[_D] = (0, import_smithy_client28.expectString)(output[_D]);
      }
      if (output.Capabilities === "") {
        contents[_C2] = [];
      } else if (output[_C2] != null && output[_C2][_m2] != null) {
        contents[_C2] = de_Capabilities((0, import_smithy_client28.getArrayIfSingleItem)(output[_C2][_m2]), context);
      }
      if (output[_CR] != null) {
        contents[_CR] = (0, import_smithy_client28.expectString)(output[_CR]);
      }
      if (output.DeclaredTransforms === "") {
        contents[_DTec] = [];
      } else if (output[_DTec] != null && output[_DTec][_m2] != null) {
        contents[_DTec] = de_TransformsList((0, import_smithy_client28.getArrayIfSingleItem)(output[_DTec][_m2]), context);
      }
      return contents;
    }, "de_ValidateTemplateOutput");
    var de_WarningDetail = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_T2] != null) {
        contents[_T2] = (0, import_smithy_client28.expectString)(output[_T2]);
      }
      if (output.Properties === "") {
        contents[_Pro] = [];
      } else if (output[_Pro] != null && output[_Pro][_m2] != null) {
        contents[_Pro] = de_WarningProperties((0, import_smithy_client28.getArrayIfSingleItem)(output[_Pro][_m2]), context);
      }
      return contents;
    }, "de_WarningDetail");
    var de_WarningDetails = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_WarningDetail(entry, context);
      });
    }, "de_WarningDetails");
    var de_WarningProperties = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_WarningProperty(entry, context);
      });
    }, "de_WarningProperties");
    var de_WarningProperty = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_PPr] != null) {
        contents[_PPr] = (0, import_smithy_client28.expectString)(output[_PPr]);
      }
      if (output[_Req] != null) {
        contents[_Req] = (0, import_smithy_client28.parseBoolean)(output[_Req]);
      }
      if (output[_D] != null) {
        contents[_D] = (0, import_smithy_client28.expectString)(output[_D]);
      }
      return contents;
    }, "de_WarningProperty");
    var de_Warnings = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.UnrecognizedResourceTypes === "") {
        contents[_URT] = [];
      } else if (output[_URT] != null && output[_URT][_m2] != null) {
        contents[_URT] = de_ResourceTypes((0, import_smithy_client28.getArrayIfSingleItem)(output[_URT][_m2]), context);
      }
      return contents;
    }, "de_Warnings");
    var deserializeMetadata3 = /* @__PURE__ */ __name2((output) => ({
      httpStatusCode: output.statusCode,
      requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
      extendedRequestId: output.headers["x-amz-id-2"],
      cfId: output.headers["x-amz-cf-id"]
    }), "deserializeMetadata");
    var throwDefaultError3 = (0, import_smithy_client28.withBaseException)(CloudFormationServiceException);
    var buildHttpRpcRequest2 = /* @__PURE__ */ __name2(async (context, headers, path38, resolvedHostname, body) => {
      const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
      const contents = {
        protocol,
        hostname,
        port,
        method: "POST",
        path: basePath.endsWith("/") ? basePath.slice(0, -1) + path38 : basePath + path38,
        headers
      };
      if (resolvedHostname !== void 0) {
        contents.hostname = resolvedHostname;
      }
      if (body !== void 0) {
        contents.body = body;
      }
      return new import_protocol_http16.HttpRequest(contents);
    }, "buildHttpRpcRequest");
    var SHARED_HEADERS2 = {
      "content-type": "application/x-www-form-urlencoded"
    };
    var _3 = "2010-05-15";
    var _A2 = "Action";
    var _AC = "AfterContext";
    var _ACT = "AttributeChangeType";
    var _AD = "AutoDeployment";
    var _AFT = "AccountFilterType";
    var _AGR = "AccountGateResult";
    var _AL = "AccountLimits";
    var _AOA = "ActivateOrganizationsAccess";
    var _AP = "ActualProperties";
    var _AR2 = "AddResources";
    var _ARARN = "AdministrationRoleARN";
    var _AT = "ActivateType";
    var _ATAC = "AcceptTermsAndConditions";
    var _AU = "AutoUpdate";
    var _AUc = "AccountsUrl";
    var _AV = "AllowedValues";
    var _AVc = "ActualValue";
    var _AVf = "AfterValue";
    var _Ac = "Accounts";
    var _Acc = "Account";
    var _Act = "Active";
    var _Al = "Alias";
    var _Ar2 = "Arn";
    var _At = "Attribute";
    var _BC = "BeforeContext";
    var _BDTC = "BatchDescribeTypeConfigurations";
    var _BT = "BearerToken";
    var _BV = "BeforeValue";
    var _C2 = "Capabilities";
    var _CA2 = "CallAs";
    var _CAo = "ConnectionArn";
    var _CAon = "ConfigurationAlias";
    var _CAonf = "ConfigurationArn";
    var _CCS = "CreateChangeSet";
    var _CE = "CausingEntity";
    var _CGT = "CreateGeneratedTemplate";
    var _CM = "ConcurrencyMode";
    var _COS = "CurrentOperationStatus";
    var _CR = "CapabilitiesReason";
    var _CRT = "ClientRequestToken";
    var _CS = "CreateStack";
    var _CSI = "CreateStackInstances";
    var _CSIh = "ChangeSetId";
    var _CSN = "ChangeSetName";
    var _CSR = "CreateStackRefactor";
    var _CSS = "CreateStackSet";
    var _CST = "ChangeSetType";
    var _CSh = "ChangeSource";
    var _CSo = "ConfigurationSchema";
    var _CT = "ClientToken";
    var _CTr = "CreationTime";
    var _CTre = "CreationTimestamp";
    var _CUR = "ContinueUpdateRollback";
    var _CUS = "CancelUpdateStack";
    var _Ca = "Category";
    var _Ch = "Changes";
    var _Co = "Configuration";
    var _D = "Description";
    var _DAL = "DescribeAccountLimits";
    var _DCS = "DeleteChangeSet";
    var _DCSH = "DescribeChangeSetHooks";
    var _DCSe = "DescribeChangeSet";
    var _DDS = "DriftDetectionStatus";
    var _DGT = "DeleteGeneratedTemplate";
    var _DGTe = "DescribeGeneratedTemplate";
    var _DI = "DriftInformation";
    var _DM = "DeletionMode";
    var _DOA = "DeactivateOrganizationsAccess";
    var _DOAe = "DescribeOrganizationsAccess";
    var _DP = "DescribePublisher";
    var _DPe = "DeletionPolicy";
    var _DR = "DisableRollback";
    var _DRS = "DescribeResourceScan";
    var _DRe = "DetectionReason";
    var _DS2 = "DeleteStack";
    var _DSD = "DetectStackDrift";
    var _DSDDS = "DescribeStackDriftDetectionStatus";
    var _DSE = "DescribeStackEvents";
    var _DSI = "DeleteStackInstances";
    var _DSIC = "DriftedStackInstancesCount";
    var _DSIe = "DescribeStackInstance";
    var _DSR = "DescribeStackRefactor";
    var _DSRC = "DriftedStackResourceCount";
    var _DSRD = "DescribeStackResourceDrifts";
    var _DSRDe = "DetectStackResourceDrift";
    var _DSRe = "DescribeStackResource";
    var _DSRes = "DescribeStackResources";
    var _DSRet = "DetectionStatusReason";
    var _DSRr = "DriftStatusReason";
    var _DSS = "DeleteStackSet";
    var _DSSD = "DetectStackSetDrift";
    var _DSSO = "DescribeStackSetOperation";
    var _DSSe = "DescribeStackSet";
    var _DSe = "DescribeStacks";
    var _DSep = "DeprecatedStatus";
    var _DSet = "DetectionStatus";
    var _DSeta = "DetailedStatus";
    var _DSr = "DriftStatus";
    var _DT = "DeactivateType";
    var _DTR = "DescribeTypeRegistration";
    var _DTe = "DeregisterType";
    var _DTec = "DeclaredTransforms";
    var _DTel = "DeletionTime";
    var _DTep = "DeploymentTargets";
    var _DTes = "DescribeType";
    var _DTi = "DifferenceType";
    var _DU = "DocumentationUrl";
    var _DV = "DefaultValue";
    var _DVI = "DefaultVersionId";
    var _De = "Destination";
    var _Det = "Details";
    var _Dete = "Detection";
    var _E2 = "Enabled";
    var _EC = "ErrorCode";
    var _ECS = "ExecuteChangeSet";
    var _EI2 = "EventId";
    var _EM = "ErrorMessage";
    var _EN = "ExportName";
    var _EP = "ExpectedProperties";
    var _ERA = "ExecutionRoleArn";
    var _ERN = "ExecutionRoleName";
    var _ES = "ExecutionStatus";
    var _ESC = "EnableStackCreation";
    var _ESF = "ExecutionStatusFilter";
    var _ESI = "ExportingStackId";
    var _ESR = "ExecuteStackRefactor";
    var _ESRx = "ExecutionStatusReason";
    var _ET = "EndTime";
    var _ETC = "EstimateTemplateCost";
    var _ETP = "EnableTerminationProtection";
    var _ETn = "EndTimestamp";
    var _EV = "ExpectedValue";
    var _En = "Entity";
    var _Er = "Errors";
    var _Ev = "Evaluation";
    var _Ex = "Exports";
    var _F = "Format";
    var _FM = "FailureMode";
    var _FSIC = "FailedStackInstancesCount";
    var _FTC = "FailureToleranceCount";
    var _FTP = "FailureTolerancePercentage";
    var _Fi = "Filters";
    var _GGT = "GetGeneratedTemplate";
    var _GSP = "GetStackPolicy";
    var _GT = "GetTemplate";
    var _GTI = "GeneratedTemplateId";
    var _GTN = "GeneratedTemplateName";
    var _GTS = "GetTemplateSummary";
    var _H = "Hooks";
    var _HFM = "HookFailureMode";
    var _HIC = "HookInvocationCount";
    var _HIP = "HookInvocationPoint";
    var _HR = "HookResults";
    var _HS = "HookStatus";
    var _HSR = "HookStatusReason";
    var _HT = "HookType";
    var _I = "Id";
    var _IA = "IsActivated";
    var _IDC = "IsDefaultConfiguration";
    var _IDV = "IsDefaultVersion";
    var _IER = "ImportExistingResources";
    var _INS = "IncludeNestedStacks";
    var _IP = "InvocationPoint";
    var _IPSIC = "InProgressStackInstancesCount";
    var _IPV = "IncludePropertyValues";
    var _IPd = "IdentityProvider";
    var _ISSIC = "InSyncStackInstancesCount";
    var _ISTSS = "ImportStacksToStackSet";
    var _Im = "Imports";
    var _K2 = "Key";
    var _LC = "LoggingConfig";
    var _LCS = "ListChangeSets";
    var _LCT = "LastCheckTimestamp";
    var _LDB = "LogDeliveryBucket";
    var _LDCT = "LastDriftCheckTimestamp";
    var _LE = "ListExports";
    var _LGN = "LogGroupName";
    var _LGT = "ListGeneratedTemplates";
    var _LHR = "ListHookResults";
    var _LI = "ListImports";
    var _LIH = "LogicalIdHierarchy";
    var _LOI = "LastOperationId";
    var _LPV = "LatestPublicVersion";
    var _LRA = "LogRoleArn";
    var _LRI = "LogicalResourceId";
    var _LRIo = "LogicalResourceIds";
    var _LRS = "ListResourceScans";
    var _LRSR = "ListResourceScanResources";
    var _LRSRR = "ListResourceScanRelatedResources";
    var _LS = "ListStacks";
    var _LSI = "ListStackInstances";
    var _LSIRD = "ListStackInstanceResourceDrifts";
    var _LSR = "ListStackRefactors";
    var _LSRA = "ListStackRefactorActions";
    var _LSRi = "ListStackResources";
    var _LSS = "ListStackSets";
    var _LSSADT = "ListStackSetAutoDeploymentTargets";
    var _LSSO = "ListStackSetOperations";
    var _LSSOR = "ListStackSetOperationResults";
    var _LT = "ListTypes";
    var _LTR = "ListTypeRegistrations";
    var _LTV = "ListTypeVersions";
    var _LU = "LastUpdated";
    var _LUT = "LastUpdatedTime";
    var _LUTa = "LastUpdatedTimestamp";
    var _M = "Message";
    var _MBS = "ManagedByStack";
    var _MCC = "MaxConcurrentCount";
    var _MCP = "MaxConcurrentPercentage";
    var _ME = "ManagedExecution";
    var _MI = "ModuleInfo";
    var _MR = "MaxResults";
    var _MTIM = "MonitoringTimeInMinutes";
    var _MV = "MajorVersion";
    var _Me = "Metadata";
    var _N = "Name";
    var _NARN = "NotificationARNs";
    var _NE = "NoEcho";
    var _NGTN = "NewGeneratedTemplateName";
    var _NOR = "NumberOfResources";
    var _NT = "NextToken";
    var _O = "Outputs";
    var _OF = "OnFailure";
    var _OI = "OperationId";
    var _OK = "OutputKey";
    var _OP = "OperationPreferences";
    var _OS = "OperationStatus";
    var _OSF = "OnStackFailure";
    var _OTA = "OriginalTypeArn";
    var _OTN = "OriginalTypeName";
    var _OUI = "OrganizationalUnitIds";
    var _OUIr = "OrganizationalUnitId";
    var _OV = "OutputValue";
    var _P2 = "Parameters";
    var _PA2 = "PolicyAction";
    var _PC2 = "PercentageCompleted";
    var _PCSI = "ParentChangeSetId";
    var _PCa = "ParameterConstraints";
    var _PD = "PropertyDifferences";
    var _PI2 = "PublisherId";
    var _PIa = "ParentId";
    var _PIu = "PublisherIdentity";
    var _PK = "ParameterKey";
    var _PM = "PermissionModel";
    var _PN = "PublisherName";
    var _PO = "ParameterOverrides";
    var _PP = "PublisherProfile";
    var _PPr = "PropertyPath";
    var _PRI = "PhysicalResourceId";
    var _PRIC = "PhysicalResourceIdContext";
    var _PS = "PublisherStatus";
    var _PSr = "ProgressStatus";
    var _PT = "PublishType";
    var _PTA = "PublicTypeArn";
    var _PTa = "ParameterType";
    var _PTr = "ProvisioningType";
    var _PV = "ParameterValue";
    var _PVN = "PublicVersionNumber";
    var _Pa = "Path";
    var _Pr2 = "Progress";
    var _Pro = "Properties";
    var _R = "Resources";
    var _RA2 = "ResourceAction";
    var _RAR = "RefreshAllResources";
    var _RARN = "RoleARN";
    var _RAT = "RequiredActivatedTypes";
    var _RC = "RollbackConfiguration";
    var _RCSI = "RootChangeSetId";
    var _RCT = "RegionConcurrencyType";
    var _RCe = "ResourceChange";
    var _REOC = "RetainExceptOnCreate";
    var _RF = "ResourcesFailed";
    var _RHP = "RecordHandlerProgress";
    var _RI = "ResourceIdentifier";
    var _RIS = "ResourceIdentifierSummaries";
    var _RIe = "ResourceIdentifiers";
    var _RIo = "RootId";
    var _RM = "ResourceMappings";
    var _RMe = "ResourceModel";
    var _RMes = "ResourceMapping";
    var _RO = "RegionOrder";
    var _RP = "RegisterPublisher";
    var _RPe = "ResourceProperties";
    var _RPes = "ResourcesProcessing";
    var _RPeso = "ResourcesPending";
    var _RR = "RetainResources";
    var _RRe = "RemoveResources";
    var _RRel = "RelatedResources";
    var _RReq = "RequiresRecreation";
    var _RRes = "ResourcesRead";
    var _RS = "RollbackStack";
    var _RSF = "RegistrationStatusFilter";
    var _RSI = "ResourceScanId";
    var _RSOAR = "RetainStacksOnAccountRemoval";
    var _RSR = "ResourceStatusReason";
    var _RSS = "ResourceScanSummaries";
    var _RSe = "RetainStacks";
    var _RSes = "ResourcesScanned";
    var _RSeso = "ResourceStatus";
    var _RSesou = "ResourcesSucceeded";
    var _RT = "RegisterType";
    var _RTD = "ResourceTargetDetails";
    var _RTI = "ResourcesToImport";
    var _RTL = "RegistrationTokenList";
    var _RTP = "ResourceTypePrefix";
    var _RTS = "ResourcesToSkip";
    var _RTe = "ResourceTypes";
    var _RTeg = "RegistrationToken";
    var _RTes = "ResourceType";
    var _RTo = "RollbackTriggers";
    var _RV = "ResolvedValue";
    var _Re = "Regions";
    var _Reg = "Region";
    var _Rep = "Replacement";
    var _Req = "Required";
    var _S = "Status";
    var _SA = "StagesAvailable";
    var _SD = "StackDefinitions";
    var _SDDI = "StackDriftDetectionId";
    var _SDS = "StackDriftStatus";
    var _SDt = "StatusDetails";
    var _SE = "StackEvents";
    var _SF = "ScanFilters";
    var _SHP = "SchemaHandlerPackage";
    var _SI2 = "StackId";
    var _SIA = "StackInstanceAccount";
    var _SIR = "StackInstanceRegion";
    var _SIRDS = "StackInstanceResourceDriftStatuses";
    var _SIS = "StackInstanceStatus";
    var _SIU = "StackIdsUrl";
    var _SIt = "StackIds";
    var _SIta = "StackInstance";
    var _SM = "StatusMessage";
    var _SMV = "SupportedMajorVersions";
    var _SN2 = "StackName";
    var _SPB = "StackPolicyBody";
    var _SPDUB = "StackPolicyDuringUpdateBody";
    var _SPDUURL = "StackPolicyDuringUpdateURL";
    var _SPURL = "StackPolicyURL";
    var _SR = "SignalResource";
    var _SRA = "StackRefactorActions";
    var _SRD = "StackResourceDrifts";
    var _SRDS = "StackResourceDriftStatus";
    var _SRDSF = "StackResourceDriftStatusFilters";
    var _SRDt = "StackResourceDetail";
    var _SRDta = "StackResourceDrift";
    var _SRI = "StackRefactorId";
    var _SRS = "StartResourceScan";
    var _SRSt = "StackRefactorSummaries";
    var _SRSta = "StackResourceSummaries";
    var _SRt = "StatusReason";
    var _SRta = "StackResources";
    var _SS = "StackSet";
    var _SSARN = "StackSetARN";
    var _SSDDD = "StackSetDriftDetectionDetails";
    var _SSF = "StackStatusFilter";
    var _SSI = "StackSetId";
    var _SSN = "StackSetName";
    var _SSO = "StackSetOperation";
    var _SSP = "SetStackPolicy";
    var _SSR = "StackStatusReason";
    var _SSSO = "StopStackSetOperation";
    var _SSt = "StackSummaries";
    var _SSta = "StackStatus";
    var _ST2 = "StartTime";
    var _STC = "SetTypeConfiguration";
    var _STDV = "SetTypeDefaultVersion";
    var _STF = "ScanTypeFilter";
    var _STc = "ScanType";
    var _SU = "SourceUrl";
    var _Sc = "Schema";
    var _Sco = "Scope";
    var _So = "Source";
    var _St = "Stacks";
    var _Su = "Summaries";
    var _T2 = "Type";
    var _TA = "TypeArn";
    var _TB = "TemplateBody";
    var _TC2 = "TemplateConfiguration";
    var _TCA = "TypeConfigurationAlias";
    var _TCAy = "TypeConfigurationArn";
    var _TCI = "TypeConfigurationIdentifiers";
    var _TCIy = "TypeConfigurationIdentifier";
    var _TCVI = "TypeConfigurationVersionId";
    var _TCi = "TimeCreated";
    var _TCy = "TypeConfigurations";
    var _TD = "TargetDetails";
    var _TDe = "TemplateDescription";
    var _TH = "TypeHierarchy";
    var _TI = "TargetId";
    var _TIM = "TimeoutInMinutes";
    var _TK = "TagKey";
    var _TN = "TypeName";
    var _TNA = "TypeNameAlias";
    var _TNP = "TypeNamePrefix";
    var _TR = "TagResources";
    var _TS = "TemplateStage";
    var _TSC = "TemplateSummaryConfig";
    var _TSIC = "TotalStackInstancesCount";
    var _TSy = "TypeSummaries";
    var _TT = "TestType";
    var _TTS = "TypeTestsStatus";
    var _TTSD = "TypeTestsStatusDescription";
    var _TTa = "TargetType";
    var _TURL = "TemplateURL";
    var _TURTAW = "TreatUnrecognizedResourceTypesAsWarnings";
    var _TV = "TagValue";
    var _TVA = "TypeVersionArn";
    var _TVI = "TypeVersionId";
    var _TVS = "TypeVersionSummaries";
    var _TW = "TotalWarnings";
    var _Ta = "Tags";
    var _Tar = "Target";
    var _Ti = "Timestamp";
    var _Ty = "Types";
    var _U = "Url";
    var _UGT = "UpdateGeneratedTemplate";
    var _UI = "UniqueId";
    var _UPT = "UsePreviousTemplate";
    var _UPV = "UsePreviousValue";
    var _UR = "UntagResources";
    var _URP = "UpdateReplacePolicy";
    var _URT = "UnrecognizedResourceTypes";
    var _US = "UpdateStack";
    var _USI = "UpdateStackInstances";
    var _USS = "UpdateStackSet";
    var _UTC = "UnprocessedTypeConfigurations";
    var _UTP = "UpdateTerminationProtection";
    var _V2 = "Version";
    var _VB = "VersionBump";
    var _VI = "VersionId";
    var _VT = "ValidateTemplate";
    var _Va2 = "Values";
    var _Val = "Value";
    var _Vi = "Visibility";
    var _W = "Warnings";
    var _e = "entry";
    var _m2 = "member";
    var buildFormUrlencodedString2 = /* @__PURE__ */ __name2((formEntries) => Object.entries(formEntries).map(([key, value]) => (0, import_smithy_client28.extendedEncodeURIComponent)(key) + "=" + (0, import_smithy_client28.extendedEncodeURIComponent)(value)).join("&"), "buildFormUrlencodedString");
    var loadQueryErrorCode2 = /* @__PURE__ */ __name2((output, data3) => {
      if (data3.Error?.Code !== void 0) {
        return data3.Error.Code;
      }
      if (output.statusCode == 404) {
        return "NotFound";
      }
    }, "loadQueryErrorCode");
    var ActivateOrganizationsAccessCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "ActivateOrganizationsAccess", {}).n("CloudFormationClient", "ActivateOrganizationsAccessCommand").f(void 0, void 0).ser(se_ActivateOrganizationsAccessCommand).de(de_ActivateOrganizationsAccessCommand).build() {
      static {
        __name(this, "ActivateOrganizationsAccessCommand");
      }
      static {
        __name2(this, "ActivateOrganizationsAccessCommand");
      }
    };
    var ActivateTypeCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "ActivateType", {}).n("CloudFormationClient", "ActivateTypeCommand").f(void 0, void 0).ser(se_ActivateTypeCommand).de(de_ActivateTypeCommand).build() {
      static {
        __name(this, "ActivateTypeCommand");
      }
      static {
        __name2(this, "ActivateTypeCommand");
      }
    };
    var BatchDescribeTypeConfigurationsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "BatchDescribeTypeConfigurations", {}).n("CloudFormationClient", "BatchDescribeTypeConfigurationsCommand").f(void 0, void 0).ser(se_BatchDescribeTypeConfigurationsCommand).de(de_BatchDescribeTypeConfigurationsCommand).build() {
      static {
        __name(this, "BatchDescribeTypeConfigurationsCommand");
      }
      static {
        __name2(this, "BatchDescribeTypeConfigurationsCommand");
      }
    };
    var CancelUpdateStackCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "CancelUpdateStack", {}).n("CloudFormationClient", "CancelUpdateStackCommand").f(void 0, void 0).ser(se_CancelUpdateStackCommand).de(de_CancelUpdateStackCommand).build() {
      static {
        __name(this, "CancelUpdateStackCommand");
      }
      static {
        __name2(this, "CancelUpdateStackCommand");
      }
    };
    var ContinueUpdateRollbackCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "ContinueUpdateRollback", {}).n("CloudFormationClient", "ContinueUpdateRollbackCommand").f(void 0, void 0).ser(se_ContinueUpdateRollbackCommand).de(de_ContinueUpdateRollbackCommand).build() {
      static {
        __name(this, "ContinueUpdateRollbackCommand");
      }
      static {
        __name2(this, "ContinueUpdateRollbackCommand");
      }
    };
    var CreateChangeSetCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "CreateChangeSet", {}).n("CloudFormationClient", "CreateChangeSetCommand").f(void 0, void 0).ser(se_CreateChangeSetCommand).de(de_CreateChangeSetCommand).build() {
      static {
        __name(this, "CreateChangeSetCommand");
      }
      static {
        __name2(this, "CreateChangeSetCommand");
      }
    };
    var CreateGeneratedTemplateCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "CreateGeneratedTemplate", {}).n("CloudFormationClient", "CreateGeneratedTemplateCommand").f(void 0, void 0).ser(se_CreateGeneratedTemplateCommand).de(de_CreateGeneratedTemplateCommand).build() {
      static {
        __name(this, "CreateGeneratedTemplateCommand");
      }
      static {
        __name2(this, "CreateGeneratedTemplateCommand");
      }
    };
    var CreateStackCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "CreateStack", {}).n("CloudFormationClient", "CreateStackCommand").f(void 0, void 0).ser(se_CreateStackCommand).de(de_CreateStackCommand).build() {
      static {
        __name(this, "CreateStackCommand");
      }
      static {
        __name2(this, "CreateStackCommand");
      }
    };
    var CreateStackInstancesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "CreateStackInstances", {}).n("CloudFormationClient", "CreateStackInstancesCommand").f(void 0, void 0).ser(se_CreateStackInstancesCommand).de(de_CreateStackInstancesCommand).build() {
      static {
        __name(this, "CreateStackInstancesCommand");
      }
      static {
        __name2(this, "CreateStackInstancesCommand");
      }
    };
    var CreateStackRefactorCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "CreateStackRefactor", {}).n("CloudFormationClient", "CreateStackRefactorCommand").f(void 0, void 0).ser(se_CreateStackRefactorCommand).de(de_CreateStackRefactorCommand).build() {
      static {
        __name(this, "CreateStackRefactorCommand");
      }
      static {
        __name2(this, "CreateStackRefactorCommand");
      }
    };
    var CreateStackSetCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "CreateStackSet", {}).n("CloudFormationClient", "CreateStackSetCommand").f(void 0, void 0).ser(se_CreateStackSetCommand).de(de_CreateStackSetCommand).build() {
      static {
        __name(this, "CreateStackSetCommand");
      }
      static {
        __name2(this, "CreateStackSetCommand");
      }
    };
    var DeactivateOrganizationsAccessCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "DeactivateOrganizationsAccess", {}).n("CloudFormationClient", "DeactivateOrganizationsAccessCommand").f(void 0, void 0).ser(se_DeactivateOrganizationsAccessCommand).de(de_DeactivateOrganizationsAccessCommand).build() {
      static {
        __name(this, "DeactivateOrganizationsAccessCommand");
      }
      static {
        __name2(this, "DeactivateOrganizationsAccessCommand");
      }
    };
    var DeactivateTypeCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "DeactivateType", {}).n("CloudFormationClient", "DeactivateTypeCommand").f(void 0, void 0).ser(se_DeactivateTypeCommand).de(de_DeactivateTypeCommand).build() {
      static {
        __name(this, "DeactivateTypeCommand");
      }
      static {
        __name2(this, "DeactivateTypeCommand");
      }
    };
    var DeleteChangeSetCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "DeleteChangeSet", {}).n("CloudFormationClient", "DeleteChangeSetCommand").f(void 0, void 0).ser(se_DeleteChangeSetCommand).de(de_DeleteChangeSetCommand).build() {
      static {
        __name(this, "DeleteChangeSetCommand");
      }
      static {
        __name2(this, "DeleteChangeSetCommand");
      }
    };
    var DeleteGeneratedTemplateCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "DeleteGeneratedTemplate", {}).n("CloudFormationClient", "DeleteGeneratedTemplateCommand").f(void 0, void 0).ser(se_DeleteGeneratedTemplateCommand).de(de_DeleteGeneratedTemplateCommand).build() {
      static {
        __name(this, "DeleteGeneratedTemplateCommand");
      }
      static {
        __name2(this, "DeleteGeneratedTemplateCommand");
      }
    };
    var DeleteStackCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "DeleteStack", {}).n("CloudFormationClient", "DeleteStackCommand").f(void 0, void 0).ser(se_DeleteStackCommand).de(de_DeleteStackCommand).build() {
      static {
        __name(this, "DeleteStackCommand");
      }
      static {
        __name2(this, "DeleteStackCommand");
      }
    };
    var DeleteStackInstancesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "DeleteStackInstances", {}).n("CloudFormationClient", "DeleteStackInstancesCommand").f(void 0, void 0).ser(se_DeleteStackInstancesCommand).de(de_DeleteStackInstancesCommand).build() {
      static {
        __name(this, "DeleteStackInstancesCommand");
      }
      static {
        __name2(this, "DeleteStackInstancesCommand");
      }
    };
    var DeleteStackSetCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "DeleteStackSet", {}).n("CloudFormationClient", "DeleteStackSetCommand").f(void 0, void 0).ser(se_DeleteStackSetCommand).de(de_DeleteStackSetCommand).build() {
      static {
        __name(this, "DeleteStackSetCommand");
      }
      static {
        __name2(this, "DeleteStackSetCommand");
      }
    };
    var DeregisterTypeCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "DeregisterType", {}).n("CloudFormationClient", "DeregisterTypeCommand").f(void 0, void 0).ser(se_DeregisterTypeCommand).de(de_DeregisterTypeCommand).build() {
      static {
        __name(this, "DeregisterTypeCommand");
      }
      static {
        __name2(this, "DeregisterTypeCommand");
      }
    };
    var DescribeAccountLimitsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "DescribeAccountLimits", {}).n("CloudFormationClient", "DescribeAccountLimitsCommand").f(void 0, void 0).ser(se_DescribeAccountLimitsCommand).de(de_DescribeAccountLimitsCommand).build() {
      static {
        __name(this, "DescribeAccountLimitsCommand");
      }
      static {
        __name2(this, "DescribeAccountLimitsCommand");
      }
    };
    var DescribeChangeSetCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "DescribeChangeSet", {}).n("CloudFormationClient", "DescribeChangeSetCommand").f(void 0, void 0).ser(se_DescribeChangeSetCommand).de(de_DescribeChangeSetCommand).build() {
      static {
        __name(this, "DescribeChangeSetCommand");
      }
      static {
        __name2(this, "DescribeChangeSetCommand");
      }
    };
    var DescribeChangeSetHooksCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "DescribeChangeSetHooks", {}).n("CloudFormationClient", "DescribeChangeSetHooksCommand").f(void 0, void 0).ser(se_DescribeChangeSetHooksCommand).de(de_DescribeChangeSetHooksCommand).build() {
      static {
        __name(this, "DescribeChangeSetHooksCommand");
      }
      static {
        __name2(this, "DescribeChangeSetHooksCommand");
      }
    };
    var DescribeGeneratedTemplateCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "DescribeGeneratedTemplate", {}).n("CloudFormationClient", "DescribeGeneratedTemplateCommand").f(void 0, void 0).ser(se_DescribeGeneratedTemplateCommand).de(de_DescribeGeneratedTemplateCommand).build() {
      static {
        __name(this, "DescribeGeneratedTemplateCommand");
      }
      static {
        __name2(this, "DescribeGeneratedTemplateCommand");
      }
    };
    var DescribeOrganizationsAccessCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "DescribeOrganizationsAccess", {}).n("CloudFormationClient", "DescribeOrganizationsAccessCommand").f(void 0, void 0).ser(se_DescribeOrganizationsAccessCommand).de(de_DescribeOrganizationsAccessCommand).build() {
      static {
        __name(this, "DescribeOrganizationsAccessCommand");
      }
      static {
        __name2(this, "DescribeOrganizationsAccessCommand");
      }
    };
    var DescribePublisherCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "DescribePublisher", {}).n("CloudFormationClient", "DescribePublisherCommand").f(void 0, void 0).ser(se_DescribePublisherCommand).de(de_DescribePublisherCommand).build() {
      static {
        __name(this, "DescribePublisherCommand");
      }
      static {
        __name2(this, "DescribePublisherCommand");
      }
    };
    var DescribeResourceScanCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "DescribeResourceScan", {}).n("CloudFormationClient", "DescribeResourceScanCommand").f(void 0, void 0).ser(se_DescribeResourceScanCommand).de(de_DescribeResourceScanCommand).build() {
      static {
        __name(this, "DescribeResourceScanCommand");
      }
      static {
        __name2(this, "DescribeResourceScanCommand");
      }
    };
    var DescribeStackDriftDetectionStatusCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "DescribeStackDriftDetectionStatus", {}).n("CloudFormationClient", "DescribeStackDriftDetectionStatusCommand").f(void 0, void 0).ser(se_DescribeStackDriftDetectionStatusCommand).de(de_DescribeStackDriftDetectionStatusCommand).build() {
      static {
        __name(this, "DescribeStackDriftDetectionStatusCommand");
      }
      static {
        __name2(this, "DescribeStackDriftDetectionStatusCommand");
      }
    };
    var DescribeStackEventsCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "DescribeStackEvents", {}).n("CloudFormationClient", "DescribeStackEventsCommand").f(void 0, void 0).ser(se_DescribeStackEventsCommand).de(de_DescribeStackEventsCommand).build() {
      static {
        __name(this, "DescribeStackEventsCommand");
      }
      static {
        __name2(this, "DescribeStackEventsCommand");
      }
    };
    var DescribeStackInstanceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "DescribeStackInstance", {}).n("CloudFormationClient", "DescribeStackInstanceCommand").f(void 0, void 0).ser(se_DescribeStackInstanceCommand).de(de_DescribeStackInstanceCommand).build() {
      static {
        __name(this, "DescribeStackInstanceCommand");
      }
      static {
        __name2(this, "DescribeStackInstanceCommand");
      }
    };
    var DescribeStackRefactorCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "DescribeStackRefactor", {}).n("CloudFormationClient", "DescribeStackRefactorCommand").f(void 0, void 0).ser(se_DescribeStackRefactorCommand).de(de_DescribeStackRefactorCommand).build() {
      static {
        __name(this, "DescribeStackRefactorCommand");
      }
      static {
        __name2(this, "DescribeStackRefactorCommand");
      }
    };
    var DescribeStackResourceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "DescribeStackResource", {}).n("CloudFormationClient", "DescribeStackResourceCommand").f(void 0, void 0).ser(se_DescribeStackResourceCommand).de(de_DescribeStackResourceCommand).build() {
      static {
        __name(this, "DescribeStackResourceCommand");
      }
      static {
        __name2(this, "DescribeStackResourceCommand");
      }
    };
    var DescribeStackResourceDriftsCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "DescribeStackResourceDrifts", {}).n("CloudFormationClient", "DescribeStackResourceDriftsCommand").f(void 0, void 0).ser(se_DescribeStackResourceDriftsCommand).de(de_DescribeStackResourceDriftsCommand).build() {
      static {
        __name(this, "DescribeStackResourceDriftsCommand");
      }
      static {
        __name2(this, "DescribeStackResourceDriftsCommand");
      }
    };
    var DescribeStackResourcesCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "DescribeStackResources", {}).n("CloudFormationClient", "DescribeStackResourcesCommand").f(void 0, void 0).ser(se_DescribeStackResourcesCommand).de(de_DescribeStackResourcesCommand).build() {
      static {
        __name(this, "DescribeStackResourcesCommand");
      }
      static {
        __name2(this, "DescribeStackResourcesCommand");
      }
    };
    var DescribeStacksCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "DescribeStacks", {}).n("CloudFormationClient", "DescribeStacksCommand").f(void 0, void 0).ser(se_DescribeStacksCommand).de(de_DescribeStacksCommand).build() {
      static {
        __name(this, "DescribeStacksCommand");
      }
      static {
        __name2(this, "DescribeStacksCommand");
      }
    };
    var DescribeStackSetCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "DescribeStackSet", {}).n("CloudFormationClient", "DescribeStackSetCommand").f(void 0, void 0).ser(se_DescribeStackSetCommand).de(de_DescribeStackSetCommand).build() {
      static {
        __name(this, "DescribeStackSetCommand");
      }
      static {
        __name2(this, "DescribeStackSetCommand");
      }
    };
    var DescribeStackSetOperationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "DescribeStackSetOperation", {}).n("CloudFormationClient", "DescribeStackSetOperationCommand").f(void 0, void 0).ser(se_DescribeStackSetOperationCommand).de(de_DescribeStackSetOperationCommand).build() {
      static {
        __name(this, "DescribeStackSetOperationCommand");
      }
      static {
        __name2(this, "DescribeStackSetOperationCommand");
      }
    };
    var DescribeTypeCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "DescribeType", {}).n("CloudFormationClient", "DescribeTypeCommand").f(void 0, void 0).ser(se_DescribeTypeCommand).de(de_DescribeTypeCommand).build() {
      static {
        __name(this, "DescribeTypeCommand");
      }
      static {
        __name2(this, "DescribeTypeCommand");
      }
    };
    var DescribeTypeRegistrationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "DescribeTypeRegistration", {}).n("CloudFormationClient", "DescribeTypeRegistrationCommand").f(void 0, void 0).ser(se_DescribeTypeRegistrationCommand).de(de_DescribeTypeRegistrationCommand).build() {
      static {
        __name(this, "DescribeTypeRegistrationCommand");
      }
      static {
        __name2(this, "DescribeTypeRegistrationCommand");
      }
    };
    var DetectStackDriftCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "DetectStackDrift", {}).n("CloudFormationClient", "DetectStackDriftCommand").f(void 0, void 0).ser(se_DetectStackDriftCommand).de(de_DetectStackDriftCommand).build() {
      static {
        __name(this, "DetectStackDriftCommand");
      }
      static {
        __name2(this, "DetectStackDriftCommand");
      }
    };
    var DetectStackResourceDriftCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "DetectStackResourceDrift", {}).n("CloudFormationClient", "DetectStackResourceDriftCommand").f(void 0, void 0).ser(se_DetectStackResourceDriftCommand).de(de_DetectStackResourceDriftCommand).build() {
      static {
        __name(this, "DetectStackResourceDriftCommand");
      }
      static {
        __name2(this, "DetectStackResourceDriftCommand");
      }
    };
    var DetectStackSetDriftCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "DetectStackSetDrift", {}).n("CloudFormationClient", "DetectStackSetDriftCommand").f(void 0, void 0).ser(se_DetectStackSetDriftCommand).de(de_DetectStackSetDriftCommand).build() {
      static {
        __name(this, "DetectStackSetDriftCommand");
      }
      static {
        __name2(this, "DetectStackSetDriftCommand");
      }
    };
    var EstimateTemplateCostCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "EstimateTemplateCost", {}).n("CloudFormationClient", "EstimateTemplateCostCommand").f(void 0, void 0).ser(se_EstimateTemplateCostCommand).de(de_EstimateTemplateCostCommand).build() {
      static {
        __name(this, "EstimateTemplateCostCommand");
      }
      static {
        __name2(this, "EstimateTemplateCostCommand");
      }
    };
    var ExecuteChangeSetCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "ExecuteChangeSet", {}).n("CloudFormationClient", "ExecuteChangeSetCommand").f(void 0, void 0).ser(se_ExecuteChangeSetCommand).de(de_ExecuteChangeSetCommand).build() {
      static {
        __name(this, "ExecuteChangeSetCommand");
      }
      static {
        __name2(this, "ExecuteChangeSetCommand");
      }
    };
    var ExecuteStackRefactorCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "ExecuteStackRefactor", {}).n("CloudFormationClient", "ExecuteStackRefactorCommand").f(void 0, void 0).ser(se_ExecuteStackRefactorCommand).de(de_ExecuteStackRefactorCommand).build() {
      static {
        __name(this, "ExecuteStackRefactorCommand");
      }
      static {
        __name2(this, "ExecuteStackRefactorCommand");
      }
    };
    var GetGeneratedTemplateCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "GetGeneratedTemplate", {}).n("CloudFormationClient", "GetGeneratedTemplateCommand").f(void 0, void 0).ser(se_GetGeneratedTemplateCommand).de(de_GetGeneratedTemplateCommand).build() {
      static {
        __name(this, "GetGeneratedTemplateCommand");
      }
      static {
        __name2(this, "GetGeneratedTemplateCommand");
      }
    };
    var GetStackPolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "GetStackPolicy", {}).n("CloudFormationClient", "GetStackPolicyCommand").f(void 0, void 0).ser(se_GetStackPolicyCommand).de(de_GetStackPolicyCommand).build() {
      static {
        __name(this, "GetStackPolicyCommand");
      }
      static {
        __name2(this, "GetStackPolicyCommand");
      }
    };
    var GetTemplateCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "GetTemplate", {}).n("CloudFormationClient", "GetTemplateCommand").f(void 0, void 0).ser(se_GetTemplateCommand).de(de_GetTemplateCommand).build() {
      static {
        __name(this, "GetTemplateCommand");
      }
      static {
        __name2(this, "GetTemplateCommand");
      }
    };
    var GetTemplateSummaryCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "GetTemplateSummary", {}).n("CloudFormationClient", "GetTemplateSummaryCommand").f(void 0, void 0).ser(se_GetTemplateSummaryCommand).de(de_GetTemplateSummaryCommand).build() {
      static {
        __name(this, "GetTemplateSummaryCommand");
      }
      static {
        __name2(this, "GetTemplateSummaryCommand");
      }
    };
    var ImportStacksToStackSetCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "ImportStacksToStackSet", {}).n("CloudFormationClient", "ImportStacksToStackSetCommand").f(void 0, void 0).ser(se_ImportStacksToStackSetCommand).de(de_ImportStacksToStackSetCommand).build() {
      static {
        __name(this, "ImportStacksToStackSetCommand");
      }
      static {
        __name2(this, "ImportStacksToStackSetCommand");
      }
    };
    var ListChangeSetsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "ListChangeSets", {}).n("CloudFormationClient", "ListChangeSetsCommand").f(void 0, void 0).ser(se_ListChangeSetsCommand).de(de_ListChangeSetsCommand).build() {
      static {
        __name(this, "ListChangeSetsCommand");
      }
      static {
        __name2(this, "ListChangeSetsCommand");
      }
    };
    var ListExportsCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "ListExports", {}).n("CloudFormationClient", "ListExportsCommand").f(void 0, void 0).ser(se_ListExportsCommand).de(de_ListExportsCommand).build() {
      static {
        __name(this, "ListExportsCommand");
      }
      static {
        __name2(this, "ListExportsCommand");
      }
    };
    var ListGeneratedTemplatesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "ListGeneratedTemplates", {}).n("CloudFormationClient", "ListGeneratedTemplatesCommand").f(void 0, void 0).ser(se_ListGeneratedTemplatesCommand).de(de_ListGeneratedTemplatesCommand).build() {
      static {
        __name(this, "ListGeneratedTemplatesCommand");
      }
      static {
        __name2(this, "ListGeneratedTemplatesCommand");
      }
    };
    var ListHookResultsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "ListHookResults", {}).n("CloudFormationClient", "ListHookResultsCommand").f(void 0, void 0).ser(se_ListHookResultsCommand).de(de_ListHookResultsCommand).build() {
      static {
        __name(this, "ListHookResultsCommand");
      }
      static {
        __name2(this, "ListHookResultsCommand");
      }
    };
    var ListImportsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "ListImports", {}).n("CloudFormationClient", "ListImportsCommand").f(void 0, void 0).ser(se_ListImportsCommand).de(de_ListImportsCommand).build() {
      static {
        __name(this, "ListImportsCommand");
      }
      static {
        __name2(this, "ListImportsCommand");
      }
    };
    var ListResourceScanRelatedResourcesCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "ListResourceScanRelatedResources", {}).n("CloudFormationClient", "ListResourceScanRelatedResourcesCommand").f(void 0, void 0).ser(se_ListResourceScanRelatedResourcesCommand).de(de_ListResourceScanRelatedResourcesCommand).build() {
      static {
        __name(this, "ListResourceScanRelatedResourcesCommand");
      }
      static {
        __name2(this, "ListResourceScanRelatedResourcesCommand");
      }
    };
    var ListResourceScanResourcesCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "ListResourceScanResources", {}).n("CloudFormationClient", "ListResourceScanResourcesCommand").f(void 0, void 0).ser(se_ListResourceScanResourcesCommand).de(de_ListResourceScanResourcesCommand).build() {
      static {
        __name(this, "ListResourceScanResourcesCommand");
      }
      static {
        __name2(this, "ListResourceScanResourcesCommand");
      }
    };
    var ListResourceScansCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "ListResourceScans", {}).n("CloudFormationClient", "ListResourceScansCommand").f(void 0, void 0).ser(se_ListResourceScansCommand).de(de_ListResourceScansCommand).build() {
      static {
        __name(this, "ListResourceScansCommand");
      }
      static {
        __name2(this, "ListResourceScansCommand");
      }
    };
    var ListStackInstanceResourceDriftsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "ListStackInstanceResourceDrifts", {}).n("CloudFormationClient", "ListStackInstanceResourceDriftsCommand").f(void 0, void 0).ser(se_ListStackInstanceResourceDriftsCommand).de(de_ListStackInstanceResourceDriftsCommand).build() {
      static {
        __name(this, "ListStackInstanceResourceDriftsCommand");
      }
      static {
        __name2(this, "ListStackInstanceResourceDriftsCommand");
      }
    };
    var ListStackInstancesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "ListStackInstances", {}).n("CloudFormationClient", "ListStackInstancesCommand").f(void 0, void 0).ser(se_ListStackInstancesCommand).de(de_ListStackInstancesCommand).build() {
      static {
        __name(this, "ListStackInstancesCommand");
      }
      static {
        __name2(this, "ListStackInstancesCommand");
      }
    };
    var ListStackRefactorActionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "ListStackRefactorActions", {}).n("CloudFormationClient", "ListStackRefactorActionsCommand").f(void 0, void 0).ser(se_ListStackRefactorActionsCommand).de(de_ListStackRefactorActionsCommand).build() {
      static {
        __name(this, "ListStackRefactorActionsCommand");
      }
      static {
        __name2(this, "ListStackRefactorActionsCommand");
      }
    };
    var ListStackRefactorsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "ListStackRefactors", {}).n("CloudFormationClient", "ListStackRefactorsCommand").f(void 0, void 0).ser(se_ListStackRefactorsCommand).de(de_ListStackRefactorsCommand).build() {
      static {
        __name(this, "ListStackRefactorsCommand");
      }
      static {
        __name2(this, "ListStackRefactorsCommand");
      }
    };
    var ListStackResourcesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "ListStackResources", {}).n("CloudFormationClient", "ListStackResourcesCommand").f(void 0, void 0).ser(se_ListStackResourcesCommand).de(de_ListStackResourcesCommand).build() {
      static {
        __name(this, "ListStackResourcesCommand");
      }
      static {
        __name2(this, "ListStackResourcesCommand");
      }
    };
    var ListStacksCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "ListStacks", {}).n("CloudFormationClient", "ListStacksCommand").f(void 0, void 0).ser(se_ListStacksCommand).de(de_ListStacksCommand).build() {
      static {
        __name(this, "ListStacksCommand");
      }
      static {
        __name2(this, "ListStacksCommand");
      }
    };
    var ListStackSetAutoDeploymentTargetsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "ListStackSetAutoDeploymentTargets", {}).n("CloudFormationClient", "ListStackSetAutoDeploymentTargetsCommand").f(void 0, void 0).ser(se_ListStackSetAutoDeploymentTargetsCommand).de(de_ListStackSetAutoDeploymentTargetsCommand).build() {
      static {
        __name(this, "ListStackSetAutoDeploymentTargetsCommand");
      }
      static {
        __name2(this, "ListStackSetAutoDeploymentTargetsCommand");
      }
    };
    var ListStackSetOperationResultsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "ListStackSetOperationResults", {}).n("CloudFormationClient", "ListStackSetOperationResultsCommand").f(void 0, void 0).ser(se_ListStackSetOperationResultsCommand).de(de_ListStackSetOperationResultsCommand).build() {
      static {
        __name(this, "ListStackSetOperationResultsCommand");
      }
      static {
        __name2(this, "ListStackSetOperationResultsCommand");
      }
    };
    var ListStackSetOperationsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "ListStackSetOperations", {}).n("CloudFormationClient", "ListStackSetOperationsCommand").f(void 0, void 0).ser(se_ListStackSetOperationsCommand).de(de_ListStackSetOperationsCommand).build() {
      static {
        __name(this, "ListStackSetOperationsCommand");
      }
      static {
        __name2(this, "ListStackSetOperationsCommand");
      }
    };
    var ListStackSetsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "ListStackSets", {}).n("CloudFormationClient", "ListStackSetsCommand").f(void 0, void 0).ser(se_ListStackSetsCommand).de(de_ListStackSetsCommand).build() {
      static {
        __name(this, "ListStackSetsCommand");
      }
      static {
        __name2(this, "ListStackSetsCommand");
      }
    };
    var ListTypeRegistrationsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "ListTypeRegistrations", {}).n("CloudFormationClient", "ListTypeRegistrationsCommand").f(void 0, void 0).ser(se_ListTypeRegistrationsCommand).de(de_ListTypeRegistrationsCommand).build() {
      static {
        __name(this, "ListTypeRegistrationsCommand");
      }
      static {
        __name2(this, "ListTypeRegistrationsCommand");
      }
    };
    var ListTypesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "ListTypes", {}).n("CloudFormationClient", "ListTypesCommand").f(void 0, void 0).ser(se_ListTypesCommand).de(de_ListTypesCommand).build() {
      static {
        __name(this, "ListTypesCommand");
      }
      static {
        __name2(this, "ListTypesCommand");
      }
    };
    var ListTypeVersionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "ListTypeVersions", {}).n("CloudFormationClient", "ListTypeVersionsCommand").f(void 0, void 0).ser(se_ListTypeVersionsCommand).de(de_ListTypeVersionsCommand).build() {
      static {
        __name(this, "ListTypeVersionsCommand");
      }
      static {
        __name2(this, "ListTypeVersionsCommand");
      }
    };
    var PublishTypeCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "PublishType", {}).n("CloudFormationClient", "PublishTypeCommand").f(void 0, void 0).ser(se_PublishTypeCommand).de(de_PublishTypeCommand).build() {
      static {
        __name(this, "PublishTypeCommand");
      }
      static {
        __name2(this, "PublishTypeCommand");
      }
    };
    var RecordHandlerProgressCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "RecordHandlerProgress", {}).n("CloudFormationClient", "RecordHandlerProgressCommand").f(void 0, void 0).ser(se_RecordHandlerProgressCommand).de(de_RecordHandlerProgressCommand).build() {
      static {
        __name(this, "RecordHandlerProgressCommand");
      }
      static {
        __name2(this, "RecordHandlerProgressCommand");
      }
    };
    var RegisterPublisherCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "RegisterPublisher", {}).n("CloudFormationClient", "RegisterPublisherCommand").f(void 0, void 0).ser(se_RegisterPublisherCommand).de(de_RegisterPublisherCommand).build() {
      static {
        __name(this, "RegisterPublisherCommand");
      }
      static {
        __name2(this, "RegisterPublisherCommand");
      }
    };
    var RegisterTypeCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "RegisterType", {}).n("CloudFormationClient", "RegisterTypeCommand").f(void 0, void 0).ser(se_RegisterTypeCommand).de(de_RegisterTypeCommand).build() {
      static {
        __name(this, "RegisterTypeCommand");
      }
      static {
        __name2(this, "RegisterTypeCommand");
      }
    };
    var RollbackStackCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "RollbackStack", {}).n("CloudFormationClient", "RollbackStackCommand").f(void 0, void 0).ser(se_RollbackStackCommand).de(de_RollbackStackCommand).build() {
      static {
        __name(this, "RollbackStackCommand");
      }
      static {
        __name2(this, "RollbackStackCommand");
      }
    };
    var SetStackPolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "SetStackPolicy", {}).n("CloudFormationClient", "SetStackPolicyCommand").f(void 0, void 0).ser(se_SetStackPolicyCommand).de(de_SetStackPolicyCommand).build() {
      static {
        __name(this, "SetStackPolicyCommand");
      }
      static {
        __name2(this, "SetStackPolicyCommand");
      }
    };
    var SetTypeConfigurationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "SetTypeConfiguration", {}).n("CloudFormationClient", "SetTypeConfigurationCommand").f(void 0, void 0).ser(se_SetTypeConfigurationCommand).de(de_SetTypeConfigurationCommand).build() {
      static {
        __name(this, "SetTypeConfigurationCommand");
      }
      static {
        __name2(this, "SetTypeConfigurationCommand");
      }
    };
    var SetTypeDefaultVersionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "SetTypeDefaultVersion", {}).n("CloudFormationClient", "SetTypeDefaultVersionCommand").f(void 0, void 0).ser(se_SetTypeDefaultVersionCommand).de(de_SetTypeDefaultVersionCommand).build() {
      static {
        __name(this, "SetTypeDefaultVersionCommand");
      }
      static {
        __name2(this, "SetTypeDefaultVersionCommand");
      }
    };
    var SignalResourceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "SignalResource", {}).n("CloudFormationClient", "SignalResourceCommand").f(void 0, void 0).ser(se_SignalResourceCommand).de(de_SignalResourceCommand).build() {
      static {
        __name(this, "SignalResourceCommand");
      }
      static {
        __name2(this, "SignalResourceCommand");
      }
    };
    var StartResourceScanCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "StartResourceScan", {}).n("CloudFormationClient", "StartResourceScanCommand").f(void 0, void 0).ser(se_StartResourceScanCommand).de(de_StartResourceScanCommand).build() {
      static {
        __name(this, "StartResourceScanCommand");
      }
      static {
        __name2(this, "StartResourceScanCommand");
      }
    };
    var StopStackSetOperationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "StopStackSetOperation", {}).n("CloudFormationClient", "StopStackSetOperationCommand").f(void 0, void 0).ser(se_StopStackSetOperationCommand).de(de_StopStackSetOperationCommand).build() {
      static {
        __name(this, "StopStackSetOperationCommand");
      }
      static {
        __name2(this, "StopStackSetOperationCommand");
      }
    };
    var TestTypeCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "TestType", {}).n("CloudFormationClient", "TestTypeCommand").f(void 0, void 0).ser(se_TestTypeCommand).de(de_TestTypeCommand).build() {
      static {
        __name(this, "TestTypeCommand");
      }
      static {
        __name2(this, "TestTypeCommand");
      }
    };
    var UpdateGeneratedTemplateCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "UpdateGeneratedTemplate", {}).n("CloudFormationClient", "UpdateGeneratedTemplateCommand").f(void 0, void 0).ser(se_UpdateGeneratedTemplateCommand).de(de_UpdateGeneratedTemplateCommand).build() {
      static {
        __name(this, "UpdateGeneratedTemplateCommand");
      }
      static {
        __name2(this, "UpdateGeneratedTemplateCommand");
      }
    };
    var UpdateStackCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "UpdateStack", {}).n("CloudFormationClient", "UpdateStackCommand").f(void 0, void 0).ser(se_UpdateStackCommand).de(de_UpdateStackCommand).build() {
      static {
        __name(this, "UpdateStackCommand");
      }
      static {
        __name2(this, "UpdateStackCommand");
      }
    };
    var UpdateStackInstancesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "UpdateStackInstances", {}).n("CloudFormationClient", "UpdateStackInstancesCommand").f(void 0, void 0).ser(se_UpdateStackInstancesCommand).de(de_UpdateStackInstancesCommand).build() {
      static {
        __name(this, "UpdateStackInstancesCommand");
      }
      static {
        __name2(this, "UpdateStackInstancesCommand");
      }
    };
    var UpdateStackSetCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "UpdateStackSet", {}).n("CloudFormationClient", "UpdateStackSetCommand").f(void 0, void 0).ser(se_UpdateStackSetCommand).de(de_UpdateStackSetCommand).build() {
      static {
        __name(this, "UpdateStackSetCommand");
      }
      static {
        __name2(this, "UpdateStackSetCommand");
      }
    };
    var UpdateTerminationProtectionCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "UpdateTerminationProtection", {}).n("CloudFormationClient", "UpdateTerminationProtectionCommand").f(void 0, void 0).ser(se_UpdateTerminationProtectionCommand).de(de_UpdateTerminationProtectionCommand).build() {
      static {
        __name(this, "UpdateTerminationProtectionCommand");
      }
      static {
        __name2(this, "UpdateTerminationProtectionCommand");
      }
    };
    var ValidateTemplateCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudFormation", "ValidateTemplate", {}).n("CloudFormationClient", "ValidateTemplateCommand").f(void 0, void 0).ser(se_ValidateTemplateCommand).de(de_ValidateTemplateCommand).build() {
      static {
        __name(this, "ValidateTemplateCommand");
      }
      static {
        __name2(this, "ValidateTemplateCommand");
      }
    };
    var commands3 = {
      ActivateOrganizationsAccessCommand,
      ActivateTypeCommand,
      BatchDescribeTypeConfigurationsCommand,
      CancelUpdateStackCommand,
      ContinueUpdateRollbackCommand: ContinueUpdateRollbackCommand2,
      CreateChangeSetCommand: CreateChangeSetCommand2,
      CreateGeneratedTemplateCommand: CreateGeneratedTemplateCommand2,
      CreateStackCommand: CreateStackCommand2,
      CreateStackInstancesCommand,
      CreateStackRefactorCommand: CreateStackRefactorCommand2,
      CreateStackSetCommand,
      DeactivateOrganizationsAccessCommand,
      DeactivateTypeCommand,
      DeleteChangeSetCommand: DeleteChangeSetCommand2,
      DeleteGeneratedTemplateCommand: DeleteGeneratedTemplateCommand2,
      DeleteStackCommand: DeleteStackCommand2,
      DeleteStackInstancesCommand,
      DeleteStackSetCommand,
      DeregisterTypeCommand,
      DescribeAccountLimitsCommand,
      DescribeChangeSetCommand: DescribeChangeSetCommand2,
      DescribeChangeSetHooksCommand,
      DescribeGeneratedTemplateCommand: DescribeGeneratedTemplateCommand2,
      DescribeOrganizationsAccessCommand,
      DescribePublisherCommand,
      DescribeResourceScanCommand: DescribeResourceScanCommand2,
      DescribeStackDriftDetectionStatusCommand: DescribeStackDriftDetectionStatusCommand2,
      DescribeStackEventsCommand: DescribeStackEventsCommand2,
      DescribeStackInstanceCommand,
      DescribeStackRefactorCommand,
      DescribeStackResourceCommand,
      DescribeStackResourceDriftsCommand: DescribeStackResourceDriftsCommand2,
      DescribeStackResourcesCommand: DescribeStackResourcesCommand2,
      DescribeStacksCommand: DescribeStacksCommand2,
      DescribeStackSetCommand,
      DescribeStackSetOperationCommand,
      DescribeTypeCommand,
      DescribeTypeRegistrationCommand,
      DetectStackDriftCommand: DetectStackDriftCommand2,
      DetectStackResourceDriftCommand: DetectStackResourceDriftCommand2,
      DetectStackSetDriftCommand,
      EstimateTemplateCostCommand,
      ExecuteChangeSetCommand: ExecuteChangeSetCommand2,
      ExecuteStackRefactorCommand: ExecuteStackRefactorCommand2,
      GetGeneratedTemplateCommand: GetGeneratedTemplateCommand2,
      GetStackPolicyCommand,
      GetTemplateCommand: GetTemplateCommand2,
      GetTemplateSummaryCommand: GetTemplateSummaryCommand2,
      ImportStacksToStackSetCommand,
      ListChangeSetsCommand,
      ListExportsCommand: ListExportsCommand2,
      ListGeneratedTemplatesCommand,
      ListHookResultsCommand,
      ListImportsCommand,
      ListResourceScanRelatedResourcesCommand: ListResourceScanRelatedResourcesCommand2,
      ListResourceScanResourcesCommand: ListResourceScanResourcesCommand2,
      ListResourceScansCommand: ListResourceScansCommand2,
      ListStackInstanceResourceDriftsCommand,
      ListStackInstancesCommand,
      ListStackRefactorActionsCommand,
      ListStackRefactorsCommand,
      ListStackResourcesCommand,
      ListStacksCommand: ListStacksCommand2,
      ListStackSetAutoDeploymentTargetsCommand,
      ListStackSetOperationResultsCommand,
      ListStackSetOperationsCommand,
      ListStackSetsCommand,
      ListTypeRegistrationsCommand,
      ListTypesCommand,
      ListTypeVersionsCommand,
      PublishTypeCommand,
      RecordHandlerProgressCommand,
      RegisterPublisherCommand,
      RegisterTypeCommand,
      RollbackStackCommand: RollbackStackCommand2,
      SetStackPolicyCommand,
      SetTypeConfigurationCommand,
      SetTypeDefaultVersionCommand,
      SignalResourceCommand,
      StartResourceScanCommand: StartResourceScanCommand2,
      StopStackSetOperationCommand,
      TestTypeCommand,
      UpdateGeneratedTemplateCommand,
      UpdateStackCommand: UpdateStackCommand2,
      UpdateStackInstancesCommand,
      UpdateStackSetCommand,
      UpdateTerminationProtectionCommand: UpdateTerminationProtectionCommand2,
      ValidateTemplateCommand
    };
    var CloudFormation = class extends CloudFormationClient2 {
      static {
        __name(this, "CloudFormation");
      }
      static {
        __name2(this, "CloudFormation");
      }
    };
    (0, import_smithy_client28.createAggregatedClient)(commands3, CloudFormation);
    var paginateDescribeAccountLimits = (0, import_core17.createPaginator)(CloudFormationClient2, DescribeAccountLimitsCommand, "NextToken", "NextToken", "");
    var paginateDescribeStackEvents = (0, import_core17.createPaginator)(CloudFormationClient2, DescribeStackEventsCommand2, "NextToken", "NextToken", "");
    var paginateDescribeStackResourceDrifts = (0, import_core17.createPaginator)(CloudFormationClient2, DescribeStackResourceDriftsCommand2, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeStacks = (0, import_core17.createPaginator)(CloudFormationClient2, DescribeStacksCommand2, "NextToken", "NextToken", "");
    var paginateListChangeSets = (0, import_core17.createPaginator)(CloudFormationClient2, ListChangeSetsCommand, "NextToken", "NextToken", "");
    var paginateListExports = (0, import_core17.createPaginator)(CloudFormationClient2, ListExportsCommand2, "NextToken", "NextToken", "");
    var paginateListGeneratedTemplates = (0, import_core17.createPaginator)(CloudFormationClient2, ListGeneratedTemplatesCommand, "NextToken", "NextToken", "MaxResults");
    var paginateListImports = (0, import_core17.createPaginator)(CloudFormationClient2, ListImportsCommand, "NextToken", "NextToken", "");
    var paginateListResourceScanRelatedResources = (0, import_core17.createPaginator)(CloudFormationClient2, ListResourceScanRelatedResourcesCommand2, "NextToken", "NextToken", "MaxResults");
    var paginateListResourceScanResources = (0, import_core17.createPaginator)(CloudFormationClient2, ListResourceScanResourcesCommand2, "NextToken", "NextToken", "MaxResults");
    var paginateListResourceScans = (0, import_core17.createPaginator)(CloudFormationClient2, ListResourceScansCommand2, "NextToken", "NextToken", "MaxResults");
    var paginateListStackInstances = (0, import_core17.createPaginator)(CloudFormationClient2, ListStackInstancesCommand, "NextToken", "NextToken", "MaxResults");
    var paginateListStackRefactorActions = (0, import_core17.createPaginator)(CloudFormationClient2, ListStackRefactorActionsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateListStackRefactors = (0, import_core17.createPaginator)(CloudFormationClient2, ListStackRefactorsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateListStackResources2 = (0, import_core17.createPaginator)(CloudFormationClient2, ListStackResourcesCommand, "NextToken", "NextToken", "");
    var paginateListStackSetOperationResults = (0, import_core17.createPaginator)(CloudFormationClient2, ListStackSetOperationResultsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateListStackSetOperations = (0, import_core17.createPaginator)(CloudFormationClient2, ListStackSetOperationsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateListStackSets = (0, import_core17.createPaginator)(CloudFormationClient2, ListStackSetsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateListStacks2 = (0, import_core17.createPaginator)(CloudFormationClient2, ListStacksCommand2, "NextToken", "NextToken", "");
    var paginateListTypeRegistrations = (0, import_core17.createPaginator)(CloudFormationClient2, ListTypeRegistrationsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateListTypeVersions = (0, import_core17.createPaginator)(CloudFormationClient2, ListTypeVersionsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateListTypes = (0, import_core17.createPaginator)(CloudFormationClient2, ListTypesCommand, "NextToken", "NextToken", "MaxResults");
    var import_util_waiter = require_dist_cjs53();
    var checkState = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeChangeSetCommand2(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            return result2.Status;
          }, "returnComparator");
          if (returnComparator() === "CREATE_COMPLETE") {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            return result2.Status;
          }, "returnComparator");
          if (returnComparator() === "FAILED") {
            return { state: import_util_waiter.WaiterState.FAILURE, reason };
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
        if (exception.name && exception.name == "ValidationError") {
          return { state: import_util_waiter.WaiterState.FAILURE, reason };
        }
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForChangeSetCreateComplete = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 30, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
    }, "waitForChangeSetCreateComplete");
    var waitUntilChangeSetCreateComplete = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 30, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilChangeSetCreateComplete");
    var checkState2 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeStacksCommand2(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Stacks);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.StackStatus;
            });
            return projection_3;
          }, "returnComparator");
          let allStringEq_5 = returnComparator().length > 0;
          for (const element_4 of returnComparator()) {
            allStringEq_5 = allStringEq_5 && element_4 == "CREATE_COMPLETE";
          }
          if (allStringEq_5) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Stacks);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.StackStatus;
            });
            return projection_3;
          }, "returnComparator");
          let allStringEq_5 = returnComparator().length > 0;
          for (const element_4 of returnComparator()) {
            allStringEq_5 = allStringEq_5 && element_4 == "UPDATE_COMPLETE";
          }
          if (allStringEq_5) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Stacks);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.StackStatus;
            });
            return projection_3;
          }, "returnComparator");
          let allStringEq_5 = returnComparator().length > 0;
          for (const element_4 of returnComparator()) {
            allStringEq_5 = allStringEq_5 && element_4 == "UPDATE_IN_PROGRESS";
          }
          if (allStringEq_5) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Stacks);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.StackStatus;
            });
            return projection_3;
          }, "returnComparator");
          let allStringEq_5 = returnComparator().length > 0;
          for (const element_4 of returnComparator()) {
            allStringEq_5 = allStringEq_5 && element_4 == "UPDATE_COMPLETE_CLEANUP_IN_PROGRESS";
          }
          if (allStringEq_5) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Stacks);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.StackStatus;
            });
            return projection_3;
          }, "returnComparator");
          let allStringEq_5 = returnComparator().length > 0;
          for (const element_4 of returnComparator()) {
            allStringEq_5 = allStringEq_5 && element_4 == "UPDATE_FAILED";
          }
          if (allStringEq_5) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Stacks);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.StackStatus;
            });
            return projection_3;
          }, "returnComparator");
          let allStringEq_5 = returnComparator().length > 0;
          for (const element_4 of returnComparator()) {
            allStringEq_5 = allStringEq_5 && element_4 == "UPDATE_ROLLBACK_IN_PROGRESS";
          }
          if (allStringEq_5) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Stacks);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.StackStatus;
            });
            return projection_3;
          }, "returnComparator");
          let allStringEq_5 = returnComparator().length > 0;
          for (const element_4 of returnComparator()) {
            allStringEq_5 = allStringEq_5 && element_4 == "UPDATE_ROLLBACK_FAILED";
          }
          if (allStringEq_5) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Stacks);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.StackStatus;
            });
            return projection_3;
          }, "returnComparator");
          let allStringEq_5 = returnComparator().length > 0;
          for (const element_4 of returnComparator()) {
            allStringEq_5 = allStringEq_5 && element_4 == "UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS";
          }
          if (allStringEq_5) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Stacks);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.StackStatus;
            });
            return projection_3;
          }, "returnComparator");
          let allStringEq_5 = returnComparator().length > 0;
          for (const element_4 of returnComparator()) {
            allStringEq_5 = allStringEq_5 && element_4 == "UPDATE_ROLLBACK_COMPLETE";
          }
          if (allStringEq_5) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Stacks);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.StackStatus;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "CREATE_FAILED") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Stacks);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.StackStatus;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "DELETE_COMPLETE") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Stacks);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.StackStatus;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "DELETE_FAILED") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Stacks);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.StackStatus;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "ROLLBACK_FAILED") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Stacks);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.StackStatus;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "ROLLBACK_COMPLETE") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
        if (exception.name && exception.name == "ValidationError") {
          return { state: import_util_waiter.WaiterState.FAILURE, reason };
        }
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForStackCreateComplete = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 30, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2);
    }, "waitForStackCreateComplete");
    var waitUntilStackCreateComplete = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 30, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilStackCreateComplete");
    var checkState3 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeStacksCommand2(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Stacks);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.StackStatus;
            });
            return projection_3;
          }, "returnComparator");
          let allStringEq_5 = returnComparator().length > 0;
          for (const element_4 of returnComparator()) {
            allStringEq_5 = allStringEq_5 && element_4 == "DELETE_COMPLETE";
          }
          if (allStringEq_5) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Stacks);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.StackStatus;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "DELETE_FAILED") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Stacks);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.StackStatus;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "CREATE_FAILED") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Stacks);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.StackStatus;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "ROLLBACK_FAILED") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Stacks);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.StackStatus;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "UPDATE_ROLLBACK_IN_PROGRESS") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Stacks);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.StackStatus;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "UPDATE_ROLLBACK_FAILED") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Stacks);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.StackStatus;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "UPDATE_ROLLBACK_COMPLETE") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Stacks);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.StackStatus;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "UPDATE_COMPLETE") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
        if (exception.name && exception.name == "ValidationError") {
          return { state: import_util_waiter.WaiterState.SUCCESS, reason };
        }
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForStackDeleteComplete = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 30, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState3);
    }, "waitForStackDeleteComplete");
    var waitUntilStackDeleteComplete = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 30, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState3);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilStackDeleteComplete");
    var checkState4 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeStacksCommand2(input));
        reason = result2;
        return { state: import_util_waiter.WaiterState.SUCCESS, reason };
      } catch (exception) {
        reason = exception;
        if (exception.name && exception.name == "ValidationError") {
          return { state: import_util_waiter.WaiterState.RETRY, reason };
        }
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForStackExists = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 5, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState4);
    }, "waitForStackExists");
    var waitUntilStackExists = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 5, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState4);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilStackExists");
    var checkState5 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeStacksCommand2(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Stacks);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.StackStatus;
            });
            return projection_3;
          }, "returnComparator");
          let allStringEq_5 = returnComparator().length > 0;
          for (const element_4 of returnComparator()) {
            allStringEq_5 = allStringEq_5 && element_4 == "IMPORT_COMPLETE";
          }
          if (allStringEq_5) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Stacks);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.StackStatus;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "ROLLBACK_COMPLETE") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Stacks);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.StackStatus;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "ROLLBACK_FAILED") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Stacks);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.StackStatus;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "IMPORT_ROLLBACK_IN_PROGRESS") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Stacks);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.StackStatus;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "IMPORT_ROLLBACK_FAILED") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Stacks);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.StackStatus;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "IMPORT_ROLLBACK_COMPLETE") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
        if (exception.name && exception.name == "ValidationError") {
          return { state: import_util_waiter.WaiterState.FAILURE, reason };
        }
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForStackImportComplete = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 30, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState5);
    }, "waitForStackImportComplete");
    var waitUntilStackImportComplete = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 30, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState5);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilStackImportComplete");
    var checkState6 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeStackRefactorCommand(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            return result2.Status;
          }, "returnComparator");
          if (returnComparator() === "CREATE_COMPLETE") {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            return result2.Status;
          }, "returnComparator");
          if (returnComparator() === "CREATE_FAILED") {
            return { state: import_util_waiter.WaiterState.FAILURE, reason };
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
        if (exception.name && exception.name == "ValidationError") {
          return { state: import_util_waiter.WaiterState.FAILURE, reason };
        }
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForStackRefactorCreateComplete = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 5, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState6);
    }, "waitForStackRefactorCreateComplete");
    var waitUntilStackRefactorCreateComplete2 = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 5, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState6);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilStackRefactorCreateComplete");
    var checkState7 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeStackRefactorCommand(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            return result2.ExecutionStatus;
          }, "returnComparator");
          if (returnComparator() === "EXECUTE_COMPLETE") {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            return result2.ExecutionStatus;
          }, "returnComparator");
          if (returnComparator() === "EXECUTE_FAILED") {
            return { state: import_util_waiter.WaiterState.FAILURE, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            return result2.ExecutionStatus;
          }, "returnComparator");
          if (returnComparator() === "ROLLBACK_COMPLETE") {
            return { state: import_util_waiter.WaiterState.FAILURE, reason };
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
        if (exception.name && exception.name == "ValidationError") {
          return { state: import_util_waiter.WaiterState.FAILURE, reason };
        }
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForStackRefactorExecuteComplete = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState7);
    }, "waitForStackRefactorExecuteComplete");
    var waitUntilStackRefactorExecuteComplete2 = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState7);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilStackRefactorExecuteComplete");
    var checkState8 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeStacksCommand2(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Stacks);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.StackStatus;
            });
            return projection_3;
          }, "returnComparator");
          let allStringEq_5 = returnComparator().length > 0;
          for (const element_4 of returnComparator()) {
            allStringEq_5 = allStringEq_5 && element_4 == "UPDATE_ROLLBACK_COMPLETE";
          }
          if (allStringEq_5) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Stacks);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.StackStatus;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "UPDATE_FAILED") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Stacks);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.StackStatus;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "UPDATE_ROLLBACK_FAILED") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Stacks);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.StackStatus;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "DELETE_FAILED") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
        if (exception.name && exception.name == "ValidationError") {
          return { state: import_util_waiter.WaiterState.FAILURE, reason };
        }
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForStackRollbackComplete = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 30, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState8);
    }, "waitForStackRollbackComplete");
    var waitUntilStackRollbackComplete = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 30, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState8);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilStackRollbackComplete");
    var checkState9 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeStacksCommand2(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Stacks);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.StackStatus;
            });
            return projection_3;
          }, "returnComparator");
          let allStringEq_5 = returnComparator().length > 0;
          for (const element_4 of returnComparator()) {
            allStringEq_5 = allStringEq_5 && element_4 == "UPDATE_COMPLETE";
          }
          if (allStringEq_5) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Stacks);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.StackStatus;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "UPDATE_FAILED") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Stacks);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.StackStatus;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "UPDATE_ROLLBACK_FAILED") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Stacks);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.StackStatus;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "UPDATE_ROLLBACK_COMPLETE") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
        if (exception.name && exception.name == "ValidationError") {
          return { state: import_util_waiter.WaiterState.FAILURE, reason };
        }
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForStackUpdateComplete = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 30, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState9);
    }, "waitForStackUpdateComplete");
    var waitUntilStackUpdateComplete = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 30, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState9);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilStackUpdateComplete");
    var checkState10 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeTypeRegistrationCommand(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            return result2.ProgressStatus;
          }, "returnComparator");
          if (returnComparator() === "COMPLETE") {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            return result2.ProgressStatus;
          }, "returnComparator");
          if (returnComparator() === "FAILED") {
            return { state: import_util_waiter.WaiterState.FAILURE, reason };
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForTypeRegistrationComplete = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 30, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState10);
    }, "waitForTypeRegistrationComplete");
    var waitUntilTypeRegistrationComplete = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 30, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState10);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilTypeRegistrationComplete");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/resource-metadata/resource-metadata.ts
function resourceMetadata(stack, logicalId) {
  const metadata = stack.manifest?.metadata;
  if (!metadata) {
    return void 0;
  }
  for (const path38 of Object.keys(metadata)) {
    const entry = metadata[path38].filter((e3) => e3.type === import_cloud_assembly_schema3.ArtifactMetadataEntryType.LOGICAL_ID).find((e3) => e3.data === logicalId);
    if (entry) {
      return {
        entry,
        constructPath: simplifyConstructPath(path38, stack.stackName)
      };
    }
  }
  return void 0;
}
function simplifyConstructPath(path38, stackName) {
  path38 = path38.replace(/\/Resource$/, "");
  path38 = path38.replace(/^\//, "");
  if (stackName) {
    if (path38.startsWith(stackName + "/")) {
      path38 = path38.slice(stackName.length + 1);
    }
  }
  return path38;
}
var import_cloud_assembly_schema3;
var init_resource_metadata = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/resource-metadata/resource-metadata.ts"() {
    "use strict";
    import_cloud_assembly_schema3 = __toESM(require_lib2());
    __name(resourceMetadata, "resourceMetadata");
    __name(simplifyConstructPath, "simplifyConstructPath");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/resource-metadata/index.ts
var init_resource_metadata2 = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/resource-metadata/index.ts"() {
    "use strict";
    init_resource_metadata();
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/cloudformation/evaluate-cloudformation-template.ts
function iamArnFmt(parts) {
  return `arn:${parts.partition}:${parts.service}::${parts.account}:${parts.resourceType}/${parts.resourceName}`;
}
function s3ArnFmt(parts) {
  return `arn:${parts.partition}:${parts.service}:::${parts.resourceName}`;
}
function stdColonResourceArnFmt(parts) {
  return `arn:${parts.partition}:${parts.service}:${parts.region}:${parts.account}:${parts.resourceType}:${parts.resourceName}`;
}
function stdSlashResourceArnFmt(parts) {
  return `arn:${parts.partition}:${parts.service}:${parts.region}:${parts.account}:${parts.resourceType}/${parts.resourceName}`;
}
function appsyncGraphQlApiApiIdFmt(parts) {
  return parts.resourceName.split("/")[1];
}
function appsyncGraphQlFunctionIDFmt(parts) {
  return parts.resourceName.split("/")[3];
}
function appsyncGraphQlDataSourceNameFmt(parts) {
  return parts.resourceName.split("/")[3];
}
async function asyncGlobalReplace(str, regex, cb) {
  if (!regex.global) {
    throw new ToolkitError("Regex must be created with /g flag");
  }
  const ret = new Array();
  let start = 0;
  while (true) {
    const match4 = regex.exec(str);
    if (!match4) {
      break;
    }
    ret.push(str.substring(start, match4.index));
    ret.push(await cb(match4[1]));
    start = regex.lastIndex;
  }
  ret.push(str.slice(start));
  return ret.join("");
}
var LazyListStackResources, LookupExportError, LazyLookupExport, CfnEvaluationException, EvaluateCloudFormationTemplate, RESOURCE_TYPE_SPECIAL_NAMES, RESOURCE_TYPE_ATTRIBUTES_FORMATS;
var init_evaluate_cloudformation_template = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/cloudformation/evaluate-cloudformation-template.ts"() {
    "use strict";
    init_toolkit_error();
    init_resource_metadata2();
    LazyListStackResources = class {
      constructor(sdk, stackName) {
        this.sdk = sdk;
        this.stackName = stackName;
      }
      static {
        __name(this, "LazyListStackResources");
      }
      stackResources;
      async listStackResources() {
        if (this.stackResources === void 0) {
          this.stackResources = this.sdk.cloudFormation().listStackResources({
            StackName: this.stackName
          });
        }
        return this.stackResources;
      }
    };
    LookupExportError = class extends Error {
      static {
        __name(this, "LookupExportError");
      }
    };
    LazyLookupExport = class {
      constructor(sdk) {
        this.sdk = sdk;
      }
      static {
        __name(this, "LazyLookupExport");
      }
      cachedExports = {};
      async lookupExport(name) {
        if (this.cachedExports[name]) {
          return this.cachedExports[name];
        }
        for await (const cfnExport of this.listExports()) {
          if (!cfnExport.Name) {
            continue;
          }
          this.cachedExports[cfnExport.Name] = cfnExport;
          if (cfnExport.Name === name) {
            return cfnExport;
          }
        }
        return void 0;
      }
      // TODO: Paginate
      async *listExports() {
        let nextToken = void 0;
        while (true) {
          const response = await this.sdk.cloudFormation().listExports({ NextToken: nextToken });
          for (const cfnExport of response.Exports ?? []) {
            yield cfnExport;
          }
          if (!response.NextToken) {
            return;
          }
          nextToken = response.NextToken;
        }
      }
    };
    CfnEvaluationException = class extends Error {
      static {
        __name(this, "CfnEvaluationException");
      }
    };
    EvaluateCloudFormationTemplate = class _EvaluateCloudFormationTemplate {
      static {
        __name(this, "EvaluateCloudFormationTemplate");
      }
      stackArtifact;
      stackName;
      template;
      context;
      account;
      region;
      partition;
      sdk;
      nestedStacks;
      stackResources;
      lookupExport;
      cachedUrlSuffix;
      constructor(props) {
        this.stackArtifact = props.stackArtifact;
        this.stackName = props.stackName ?? props.stackArtifact.stackName;
        this.template = props.template ?? props.stackArtifact.template;
        this.context = {
          "AWS::AccountId": props.account,
          "AWS::Region": props.region,
          "AWS::Partition": props.partition,
          ...props.parameters
        };
        this.account = props.account;
        this.region = props.region;
        this.partition = props.partition;
        this.sdk = props.sdk;
        this.nestedStacks = props.nestedStacks ?? {};
        this.stackResources = new LazyListStackResources(this.sdk, this.stackName);
        this.lookupExport = new LazyLookupExport(this.sdk);
      }
      // clones current EvaluateCloudFormationTemplate object, but updates the stack name
      async createNestedEvaluateCloudFormationTemplate(stackName, nestedTemplate, nestedStackParameters) {
        const evaluatedParams = await this.evaluateCfnExpression(nestedStackParameters);
        return new _EvaluateCloudFormationTemplate({
          stackArtifact: this.stackArtifact,
          stackName,
          template: nestedTemplate,
          parameters: evaluatedParams,
          account: this.account,
          region: this.region,
          partition: this.partition,
          sdk: this.sdk,
          nestedStacks: this.nestedStacks
        });
      }
      async establishResourcePhysicalName(logicalId, physicalNameInCfnTemplate) {
        if (physicalNameInCfnTemplate != null) {
          try {
            return await this.evaluateCfnExpression(physicalNameInCfnTemplate);
          } catch (e3) {
            if (!(e3 instanceof CfnEvaluationException)) {
              throw e3;
            }
          }
        }
        return this.findPhysicalNameFor(logicalId);
      }
      async findPhysicalNameFor(logicalId) {
        const stackResources = await this.stackResources.listStackResources();
        return stackResources.find((sr) => sr.LogicalResourceId === logicalId)?.PhysicalResourceId;
      }
      async findLogicalIdForPhysicalName(physicalName) {
        const stackResources = await this.stackResources.listStackResources();
        return stackResources.find((sr) => sr.PhysicalResourceId === physicalName)?.LogicalResourceId;
      }
      findReferencesTo(logicalId) {
        const ret = new Array();
        for (const [resourceLogicalId, resourceDef] of Object.entries(this.template?.Resources ?? {})) {
          if (logicalId !== resourceLogicalId && this.references(logicalId, resourceDef)) {
            ret.push({
              ...resourceDef,
              LogicalId: resourceLogicalId
            });
          }
        }
        return ret;
      }
      async evaluateCfnExpression(cfnExpression) {
        const self2 = this;
        class CfnIntrinsics {
          static {
            __name(this, "CfnIntrinsics");
          }
          evaluateIntrinsic(intrinsic) {
            const intrinsicFunc = this[intrinsic.name];
            if (!intrinsicFunc) {
              throw new CfnEvaluationException(`CloudFormation function ${intrinsic.name} is not supported`);
            }
            const argsAsArray = Array.isArray(intrinsic.args) ? intrinsic.args : [intrinsic.args];
            return intrinsicFunc.apply(this, argsAsArray);
          }
          async "Fn::Join"(separator, args) {
            const evaluatedArgs = await self2.evaluateCfnExpression(args);
            return evaluatedArgs.join(separator);
          }
          async "Fn::Split"(separator, args) {
            const evaluatedArgs = await self2.evaluateCfnExpression(args);
            return evaluatedArgs.split(separator);
          }
          async "Fn::Select"(index, args) {
            const evaluatedArgs = await self2.evaluateCfnExpression(args);
            return evaluatedArgs[index];
          }
          async Ref(logicalId) {
            const refTarget = await self2.findRefTarget(logicalId);
            if (refTarget) {
              return refTarget;
            } else {
              throw new CfnEvaluationException(`Parameter or resource '${logicalId}' could not be found for evaluation`);
            }
          }
          async "Fn::GetAtt"(logicalId, attributeName) {
            const attrValue = await self2.findGetAttTarget(logicalId, attributeName);
            if (attrValue) {
              return attrValue;
            } else {
              throw new CfnEvaluationException(
                `Attribute '${attributeName}' of resource '${logicalId}' could not be found for evaluation`
              );
            }
          }
          async "Fn::Sub"(template, explicitPlaceholders) {
            const placeholders = explicitPlaceholders ? await self2.evaluateCfnExpression(explicitPlaceholders) : {};
            return asyncGlobalReplace(template, /\${([^}]*)}/g, (key) => {
              if (key in placeholders) {
                return placeholders[key];
              } else {
                const splitKey = key.split(".");
                return splitKey.length === 1 ? this.Ref(key) : this["Fn::GetAtt"](splitKey[0], splitKey.slice(1).join("."));
              }
            });
          }
          async "Fn::ImportValue"(name) {
            const exported = await self2.lookupExport.lookupExport(name);
            if (!exported) {
              throw new CfnEvaluationException(`Export '${name}' could not be found for evaluation`);
            }
            if (!exported.Value) {
              throw new CfnEvaluationException(`Export '${name}' exists without a value`);
            }
            return exported.Value;
          }
        }
        if (cfnExpression == null) {
          return cfnExpression;
        }
        if (Array.isArray(cfnExpression)) {
          return Promise.all(cfnExpression.map((expr) => this.evaluateCfnExpression(expr)));
        }
        if (typeof cfnExpression === "object") {
          const intrinsic = this.parseIntrinsic(cfnExpression);
          if (intrinsic) {
            return new CfnIntrinsics().evaluateIntrinsic(intrinsic);
          } else {
            const ret = {};
            for (const [key, val] of Object.entries(cfnExpression)) {
              ret[key] = await this.evaluateCfnExpression(val);
            }
            return ret;
          }
        }
        return cfnExpression;
      }
      getResourceProperty(logicalId, propertyName) {
        return this.template.Resources?.[logicalId]?.Properties?.[propertyName];
      }
      metadataFor(logicalId) {
        return resourceMetadata(this.stackArtifact, logicalId);
      }
      references(logicalId, templateElement) {
        if (typeof templateElement === "string") {
          return logicalId === templateElement;
        }
        if (templateElement == null) {
          return false;
        }
        if (Array.isArray(templateElement)) {
          return templateElement.some((el) => this.references(logicalId, el));
        }
        if (typeof templateElement === "object") {
          return Object.values(templateElement).some((el) => this.references(logicalId, el));
        }
        return false;
      }
      parseIntrinsic(x3) {
        const keys = Object.keys(x3);
        if (keys.length === 1 && (keys[0].startsWith("Fn::") || keys[0] === "Ref")) {
          return {
            name: keys[0],
            args: x3[keys[0]]
          };
        }
        return void 0;
      }
      async findRefTarget(logicalId) {
        if (logicalId === "AWS::URLSuffix") {
          if (!this.cachedUrlSuffix) {
            this.cachedUrlSuffix = await this.sdk.getUrlSuffix(this.region);
          }
          return this.cachedUrlSuffix;
        }
        const parameterTarget = this.context[logicalId];
        if (parameterTarget) {
          return parameterTarget;
        }
        const defaultParameterValue = this.template.Parameters?.[logicalId]?.Default;
        if (defaultParameterValue) {
          return defaultParameterValue;
        }
        return this.findGetAttTarget(logicalId);
      }
      async findGetAttTarget(logicalId, attribute) {
        if (logicalId === "Outputs" && attribute) {
          return this.evaluateCfnExpression(this.template.Outputs[attribute]?.Value);
        }
        const stackResources = await this.stackResources.listStackResources();
        const foundResource = stackResources.find((sr) => sr.LogicalResourceId === logicalId);
        if (!foundResource) {
          return void 0;
        }
        if (foundResource.ResourceType == "AWS::CloudFormation::Stack" && attribute?.startsWith("Outputs.")) {
          const dependantStack = this.findNestedStack(logicalId, this.nestedStacks);
          if (!dependantStack || !dependantStack.physicalName) {
            return void 0;
          }
          const evaluateCfnTemplate = await this.createNestedEvaluateCloudFormationTemplate(
            dependantStack.physicalName,
            dependantStack.generatedTemplate,
            dependantStack.generatedTemplate.Parameters
          );
          return evaluateCfnTemplate.evaluateCfnExpression({
            "Fn::GetAtt": attribute.split(/\.(.*)/s)
          });
        }
        return this.formatResourceAttribute(foundResource, attribute);
      }
      findNestedStack(logicalId, nestedStacks) {
        for (const nestedStackLogicalId of Object.keys(nestedStacks)) {
          if (nestedStackLogicalId === logicalId) {
            return nestedStacks[nestedStackLogicalId];
          }
          const checkInNestedChildStacks = this.findNestedStack(
            logicalId,
            nestedStacks[nestedStackLogicalId].nestedStackTemplates
          );
          if (checkInNestedChildStacks) return checkInNestedChildStacks;
        }
        return void 0;
      }
      formatResourceAttribute(resource, attribute) {
        const physicalId = resource.PhysicalResourceId;
        if (!attribute) {
          return physicalId;
        }
        const resourceTypeFormats = RESOURCE_TYPE_ATTRIBUTES_FORMATS[resource.ResourceType];
        if (!resourceTypeFormats) {
          throw new CfnEvaluationException(
            `We don't support attributes of the '${resource.ResourceType}' resource. This is a CDK limitation. Please report it at https://github.com/aws/aws-cdk/issues/new/choose`
          );
        }
        const attributeFmtFunc = resourceTypeFormats[attribute];
        if (!attributeFmtFunc) {
          throw new CfnEvaluationException(
            `We don't support the '${attribute}' attribute of the '${resource.ResourceType}' resource. This is a CDK limitation. Please report it at https://github.com/aws/aws-cdk/issues/new/choose`
          );
        }
        const service = this.getServiceOfResource(resource);
        const resourceTypeArnPart = this.getResourceTypeArnPartOfResource(resource);
        return attributeFmtFunc({
          partition: this.partition,
          service,
          region: this.region,
          account: this.account,
          resourceType: resourceTypeArnPart,
          resourceName: physicalId
        });
      }
      getServiceOfResource(resource) {
        return resource.ResourceType.split("::")[1].toLowerCase();
      }
      getResourceTypeArnPartOfResource(resource) {
        const resourceType = resource.ResourceType;
        const specialCaseResourceType = RESOURCE_TYPE_SPECIAL_NAMES[resourceType]?.resourceType;
        return specialCaseResourceType ? specialCaseResourceType : (
          // this is the default case
          resourceType.split("::")[2].toLowerCase()
        );
      }
    };
    RESOURCE_TYPE_SPECIAL_NAMES = {
      "AWS::Events::EventBus": {
        resourceType: "event-bus"
      }
    };
    RESOURCE_TYPE_ATTRIBUTES_FORMATS = {
      "AWS::IAM::Role": { Arn: iamArnFmt },
      "AWS::IAM::User": { Arn: iamArnFmt },
      "AWS::IAM::Group": { Arn: iamArnFmt },
      "AWS::S3::Bucket": { Arn: s3ArnFmt },
      "AWS::Lambda::Function": { Arn: stdColonResourceArnFmt },
      "AWS::Events::EventBus": {
        Arn: stdSlashResourceArnFmt,
        // the name attribute of the EventBus is the same as the Ref
        Name: /* @__PURE__ */ __name((parts) => parts.resourceName, "Name")
      },
      "AWS::DynamoDB::Table": { Arn: stdSlashResourceArnFmt },
      "AWS::AppSync::GraphQLApi": { ApiId: appsyncGraphQlApiApiIdFmt },
      "AWS::AppSync::FunctionConfiguration": {
        FunctionId: appsyncGraphQlFunctionIDFmt
      },
      "AWS::AppSync::DataSource": { Name: appsyncGraphQlDataSourceNameFmt },
      "AWS::KMS::Key": { Arn: stdSlashResourceArnFmt }
    };
    __name(iamArnFmt, "iamArnFmt");
    __name(s3ArnFmt, "s3ArnFmt");
    __name(stdColonResourceArnFmt, "stdColonResourceArnFmt");
    __name(stdSlashResourceArnFmt, "stdSlashResourceArnFmt");
    __name(appsyncGraphQlApiApiIdFmt, "appsyncGraphQlApiApiIdFmt");
    __name(appsyncGraphQlFunctionIDFmt, "appsyncGraphQlFunctionIDFmt");
    __name(appsyncGraphQlDataSourceNameFmt, "appsyncGraphQlDataSourceNameFmt");
    __name(asyncGlobalReplace, "asyncGlobalReplace");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/cloudformation/template-body-parameter.ts
async function makeBodyParameter(ioHelper, stack, resolvedEnvironment, assetManifest, resources, overrideTemplate) {
  if (stack.stackTemplateAssetObjectUrl && !overrideTemplate) {
    return {
      TemplateURL: await restUrlFromManifest(stack.stackTemplateAssetObjectUrl, resolvedEnvironment)
    };
  }
  const templateJson = toYAML(overrideTemplate ?? stack.template);
  if (templateJson.length <= LARGE_TEMPLATE_SIZE_KB * 1024) {
    return { TemplateBody: templateJson };
  }
  const toolkitInfo = await resources.lookupToolkit();
  if (!toolkitInfo.found) {
    await ioHelper.defaults.error(
      util3.format(
        `The template for stack "${stack.displayName}" is ${Math.round(templateJson.length / 1024)}KiB. Templates larger than ${LARGE_TEMPLATE_SIZE_KB}KiB must be uploaded to S3.
Run the following command in order to setup an S3 bucket in this environment, and then re-deploy:

`,
        chalk.blue(`	$ cdk bootstrap ${resolvedEnvironment.name}
`)
      )
    );
    throw new ToolkitError('Template too large to deploy ("cdk bootstrap" is required)');
  }
  const templateHash = contentHash(templateJson);
  const key = `cdk/${stack.id}/${templateHash}.yml`;
  let templateFile = stack.templateFile;
  if (overrideTemplate) {
    templateFile = `${stack.templateFile}-${templateHash}.yaml`;
    const templateFilePath = path11.join(stack.assembly.directory, templateFile);
    await fs11.writeFile(templateFilePath, templateJson, { encoding: "utf-8" });
  }
  assetManifest.addFileAsset(
    templateHash,
    {
      path: templateFile
    },
    {
      bucketName: toolkitInfo.bucketName,
      objectKey: key
    }
  );
  const templateURL = `${toolkitInfo.bucketUrl}/${key}`;
  await ioHelper.defaults.debug(`Storing template in S3 at: ${templateURL}`);
  return { TemplateURL: templateURL };
}
async function restUrlFromManifest(url, environment) {
  const doNotUseMarker = "**DONOTUSE**";
  const region = environment.region;
  url = import_cx_api3.EnvironmentPlaceholders.replace(url, {
    accountId: environment.account,
    region,
    partition: doNotUseMarker
  });
  if (url.indexOf(doNotUseMarker) > -1) {
    throw new ToolkitError("Cannot use '${AWS::Partition}' in the 'stackTemplateAssetObjectUrl' field");
  }
  const s3Url = url.match(/s3:\/\/([^/]+)\/(.*)$/);
  if (!s3Url) {
    return url;
  }
  const bucketName = s3Url[1];
  const objectKey = s3Url[2];
  const s3 = new import_client_s32.S3Client({ region });
  const endpoint = await (0, import_middleware_endpoint6.getEndpointFromInstructions)({}, import_client_s32.HeadObjectCommand, {
    ...s3.config
  });
  endpoint.url.hostname;
  return `${endpoint.url.origin}/${bucketName}/${objectKey}`;
}
var fs11, path11, util3, import_cx_api3, import_client_s32, import_middleware_endpoint6, chalk, LARGE_TEMPLATE_SIZE_KB;
var init_template_body_parameter = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/cloudformation/template-body-parameter.ts"() {
    "use strict";
    fs11 = __toESM(require("node:fs/promises"));
    path11 = __toESM(require("node:path"));
    util3 = __toESM(require("node:util"));
    import_cx_api3 = __toESM(require_lib3());
    import_client_s32 = __toESM(require_dist_cjs71());
    import_middleware_endpoint6 = __toESM(require_dist_cjs34());
    chalk = __toESM(require_source());
    init_toolkit_error();
    init_util3();
    LARGE_TEMPLATE_SIZE_KB = 50;
    __name(makeBodyParameter, "makeBodyParameter");
    __name(restUrlFromManifest, "restUrlFromManifest");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/stack-events/stack-event-poller.ts
function isStackBeginOperationState(state2) {
  return [
    "CREATE_IN_PROGRESS",
    "UPDATE_IN_PROGRESS",
    "DELETE_IN_PROGRESS",
    "UPDATE_ROLLBACK_IN_PROGRESS",
    "ROLLBACK_IN_PROGRESS"
  ].includes(state2 ?? "");
}
function isStackTerminalState(state2) {
  return !(state2 ?? "").endsWith("_IN_PROGRESS");
}
var StackEventPoller;
var init_stack_event_poller = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/stack-events/stack-event-poller.ts"() {
    "use strict";
    init_util3();
    StackEventPoller = class _StackEventPoller {
      constructor(cfn, props) {
        this.cfn = cfn;
        this.props = props;
      }
      static {
        __name(this, "StackEventPoller");
      }
      events = [];
      complete = false;
      eventIds = /* @__PURE__ */ new Set();
      nestedStackPollers = {};
      /**
       * From all accumulated events, return only the errors
       */
      get resourceErrors() {
        return this.events.filter((e3) => e3.event.ResourceStatus?.endsWith("_FAILED") && !e3.isStackEvent);
      }
      /**
       * Poll for new stack events
       *
       * Will not return events older than events indicated by the constructor filters.
       *
       * Recurses into nested stacks, and returns events old-to-new.
       */
      async poll() {
        const events = await this.doPoll();
        for (const [logicalId, poller] of Object.entries(this.nestedStackPollers)) {
          events.push(...await poller.poll());
          if (poller.complete) {
            delete this.nestedStackPollers[logicalId];
          }
        }
        events.sort((a3, b3) => a3.event.Timestamp.valueOf() - b3.event.Timestamp.valueOf());
        this.events.push(...events);
        return events;
      }
      async doPoll() {
        const events = [];
        try {
          let nextToken;
          let finished = false;
          while (!finished) {
            const page = await this.cfn.describeStackEvents({ StackName: this.props.stackName, NextToken: nextToken });
            for (const event of page?.StackEvents ?? []) {
              if (this.props.startTime !== void 0 && event.Timestamp.valueOf() < this.props.startTime) {
                return events;
              }
              if (this.eventIds.has(event.EventId)) {
                return events;
              }
              this.eventIds.add(event.EventId);
              const isParentStackEvent = event.PhysicalResourceId === event.StackId;
              if (isParentStackEvent && this.props.stackStatuses?.includes(event.ResourceStatus ?? "")) {
                return events;
              }
              const resEvent = {
                event,
                parentStackLogicalIds: this.props.parentStackLogicalIds ?? [],
                isStackEvent: isParentStackEvent
              };
              events.push(resEvent);
              if (!isParentStackEvent && event.ResourceType === "AWS::CloudFormation::Stack" && isStackBeginOperationState(event.ResourceStatus)) {
                this.trackNestedStack(event, [...this.props.parentStackLogicalIds ?? [], event.LogicalResourceId ?? ""]);
              }
              if (isParentStackEvent && isStackTerminalState(event.ResourceStatus)) {
                this.complete = true;
              }
            }
            nextToken = page?.NextToken;
            if (nextToken === void 0) {
              finished = true;
            }
          }
        } catch (e3) {
          if (!(e3.name === "ValidationError" && formatErrorMessage(e3) === `Stack [${this.props.stackName}] does not exist`)) {
            throw e3;
          }
        }
        return events;
      }
      /**
       * On the CREATE_IN_PROGRESS, UPDATE_IN_PROGRESS, DELETE_IN_PROGRESS event of a nested stack, poll the nested stack updates
       */
      trackNestedStack(event, parentStackLogicalIds) {
        const logicalId = event.LogicalResourceId;
        const physicalResourceId = event.PhysicalResourceId;
        if (!logicalId || !physicalResourceId) {
          return;
        }
        if (!this.nestedStackPollers[logicalId]) {
          this.nestedStackPollers[logicalId] = new _StackEventPoller(this.cfn, {
            stackName: physicalResourceId,
            parentStackLogicalIds,
            startTime: event.Timestamp.valueOf()
          });
        }
      }
    };
    __name(isStackBeginOperationState, "isStackBeginOperationState");
    __name(isStackTerminalState, "isStackTerminalState");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/stack-events/stack-progress-monitor.ts
var util4, StackProgressMonitor;
var init_stack_progress_monitor = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/stack-events/stack-progress-monitor.ts"() {
    "use strict";
    util4 = __toESM(require("util"));
    init_util3();
    StackProgressMonitor = class {
      static {
        __name(this, "StackProgressMonitor");
      }
      /**
       * Previous completion state observed by logical ID
       *
       * We use this to detect that if we see a DELETE_COMPLETE after a
       * CREATE_COMPLETE, it's actually a rollback and we should DECREASE
       * resourcesDone instead of increase it
       */
      resourcesPrevCompleteState = {};
      /**
       * Count of resources that have reported a _COMPLETE status
       */
      resourcesDone = 0;
      /**
       * How many digits we need to represent the total count (for lining up the status reporting)
       */
      resourceDigits = 0;
      /**
       * Number of expected resources in the monitor.
       */
      resourcesTotal;
      constructor(resourcesTotal) {
        this.resourcesTotal = resourcesTotal ? resourcesTotal + 1 : void 0;
        this.resourceDigits = this.resourcesTotal ? Math.ceil(Math.log10(this.resourcesTotal)) : 0;
      }
      /**
       * Report the stack progress
       */
      get progress() {
        return {
          total: this.total,
          completed: this.completed,
          formatted: this.formatted
        };
      }
      /**
       * The total number of progress monitored resources.
       */
      get total() {
        return this.resourcesTotal;
      }
      /**
       * The number of completed resources.
       */
      get completed() {
        return this.resourcesDone;
      }
      /**
       * Report the current progress as a [34/42] string, or just [34] if the total is unknown
       */
      get formatted() {
        if (this.resourcesTotal == null) {
          return padLeft(3, util4.format("%s", this.resourcesDone));
        }
        return util4.format(
          "%s/%s",
          padLeft(this.resourceDigits, this.resourcesDone.toString()),
          padLeft(this.resourceDigits, this.resourcesTotal.toString())
        );
      }
      /**
       * Process as stack event and update the progress state.
       */
      process(event) {
        const status = event.ResourceStatus;
        if (!status || !event.LogicalResourceId) {
          return;
        }
        if (status.endsWith("_COMPLETE_CLEANUP_IN_PROGRESS")) {
          this.resourcesDone++;
        }
        if (status.endsWith("_COMPLETE")) {
          const prevState = this.resourcesPrevCompleteState[event.LogicalResourceId];
          if (!prevState) {
            this.resourcesDone++;
          } else {
            this.resourcesDone--;
            if (this.resourcesDone < 0) {
              this.resourcesDone = 0;
            }
          }
          this.resourcesPrevCompleteState[event.LogicalResourceId] = status;
        }
      }
    };
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/stack-events/stack-activity-monitor.ts
var util5, StackActivityMonitor;
var init_stack_activity_monitor = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/stack-events/stack-activity-monitor.ts"() {
    "use strict";
    util5 = __toESM(require("util"));
    init_esm8();
    init_stack_event_poller();
    init_stack_progress_monitor();
    init_util3();
    init_private();
    init_resource_metadata();
    StackActivityMonitor = class {
      static {
        __name(this, "StackActivityMonitor");
      }
      /**
       * The poller used to read stack events
       */
      poller;
      /**
       * Fetch new activity every 1 second
       * Printers can decide to update a view less frequently if desired
       */
      pollingInterval;
      errors = [];
      monitorId;
      progressMonitor;
      /**
       * Current tick timer
       */
      tickTimer;
      /**
       * Set to the activity of reading the current events
       */
      readPromise;
      ioHelper;
      stackName;
      stack;
      constructor({
        cfn,
        ioHelper,
        stack,
        stackName,
        resourcesTotal,
        changeSetCreationTime,
        pollingInterval = 2e3
      }) {
        this.ioHelper = ioHelper;
        this.stack = stack;
        this.stackName = stackName;
        this.progressMonitor = new StackProgressMonitor(resourcesTotal);
        this.pollingInterval = pollingInterval;
        this.poller = new StackEventPoller(cfn, {
          stackName,
          startTime: changeSetCreationTime?.getTime() ?? Date.now()
        });
      }
      async start() {
        this.monitorId = v4_default2();
        await this.ioHelper.notify(IO.CDK_TOOLKIT_I5501.msg(`Deploying ${this.stackName}`, {
          deployment: this.monitorId,
          stack: this.stack,
          stackName: this.stackName,
          resourcesTotal: this.progressMonitor.total
        }));
        this.scheduleNextTick();
        return this;
      }
      async stop() {
        const oldMonitorId = this.monitorId;
        this.monitorId = void 0;
        if (this.tickTimer) {
          clearTimeout(this.tickTimer);
        }
        await this.finalPollToEnd(oldMonitorId);
        await this.ioHelper.notify(IO.CDK_TOOLKIT_I5503.msg(`Completed ${this.stackName}`, {
          deployment: oldMonitorId,
          stack: this.stack,
          stackName: this.stackName,
          resourcesTotal: this.progressMonitor.total
        }));
      }
      scheduleNextTick() {
        if (!this.monitorId) {
          return;
        }
        this.tickTimer = setTimeout(() => void this.tick(), this.pollingInterval);
      }
      async tick() {
        if (!this.monitorId) {
          return;
        }
        try {
          this.readPromise = this.readNewEvents(this.monitorId);
          await this.readPromise;
          this.readPromise = void 0;
          if (!this.monitorId) {
            return;
          }
        } catch (e3) {
          await this.ioHelper.notify(IO.CDK_TOOLKIT_E5500.msg(
            util5.format("Error occurred while monitoring stack: %s", e3),
            { error: e3 }
          ));
        }
        this.scheduleNextTick();
      }
      findMetadataFor(logicalId) {
        const metadata = this.stack.manifest?.metadata;
        if (!logicalId || !metadata) {
          return void 0;
        }
        return resourceMetadata(this.stack, logicalId);
      }
      /**
       * Reads all new events from the stack history
       *
       * The events are returned in reverse chronological order; we continue to the next page if we
       * see a next page and the last event in the page is new to us (and within the time window).
       * haven't seen the final event
       */
      async readNewEvents(monitorId) {
        const pollEvents = await this.poller.poll();
        for (const resourceEvent of pollEvents) {
          this.progressMonitor.process(resourceEvent.event);
          const activity = {
            deployment: monitorId,
            event: resourceEvent.event,
            metadata: this.findMetadataFor(resourceEvent.event.LogicalResourceId),
            progress: this.progressMonitor.progress
          };
          this.checkForErrors(activity);
          await this.ioHelper.notify(IO.CDK_TOOLKIT_I5502.msg(this.formatActivity(activity, true), activity));
        }
      }
      /**
       * Perform a final poll to the end and flush out all events to the printer
       *
       * Finish any poll currently in progress, then do a final one until we've
       * reached the last page.
       */
      async finalPollToEnd(monitorId) {
        if (this.readPromise) {
          await this.readPromise;
        }
        await this.readNewEvents(monitorId);
      }
      /**
       * Formats a stack activity into a basic string
       */
      formatActivity(activity, progress) {
        const event = activity.event;
        const metadata = activity.metadata;
        const resourceName = metadata ? metadata.constructPath : event.LogicalResourceId || "";
        const logicalId = resourceName !== event.LogicalResourceId ? `(${event.LogicalResourceId}) ` : "";
        return util5.format(
          "%s | %s%s | %s | %s | %s %s%s%s",
          event.StackName,
          progress !== false ? `${activity.progress.formatted} | ` : "",
          new Date(event.Timestamp).toLocaleTimeString(),
          event.ResourceStatus || "",
          event.ResourceType,
          resourceName,
          logicalId,
          event.ResourceStatusReason ? event.ResourceStatusReason : "",
          metadata?.entry.trace ? `
	${metadata.entry.trace.join("\n	\\_ ")}` : ""
        );
      }
      checkForErrors(activity) {
        if (stackEventHasErrorMessage(activity.event.ResourceStatus ?? "")) {
          const isCancelled = (activity.event.ResourceStatusReason ?? "").indexOf("cancelled") > -1;
          if (!isCancelled && activity.event.StackName !== activity.event.LogicalResourceId) {
            this.errors.push(activity.event.ResourceStatusReason ?? "");
          }
        }
      }
    };
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/stack-events/stack-status.ts
var import_client_cloudformation, StackStatus;
var init_stack_status = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/stack-events/stack-status.ts"() {
    "use strict";
    import_client_cloudformation = __toESM(require_dist_cjs80());
    StackStatus = class _StackStatus2 {
      constructor(name, reason) {
        this.name = name;
        this.reason = reason;
      }
      static {
        __name(this, "StackStatus");
      }
      static fromStackDescription(description) {
        return new _StackStatus2(description.StackStatus, description.StackStatusReason);
      }
      get isCreationFailure() {
        return this.name === import_client_cloudformation.StackStatus.ROLLBACK_COMPLETE || this.name === import_client_cloudformation.StackStatus.ROLLBACK_FAILED;
      }
      get isDeleted() {
        return this.name.startsWith("DELETE_");
      }
      get isFailure() {
        return this.name.endsWith("FAILED");
      }
      get isInProgress() {
        return this.name.endsWith("_IN_PROGRESS") && !this.isReviewInProgress;
      }
      get isReviewInProgress() {
        return this.name === import_client_cloudformation.StackStatus.REVIEW_IN_PROGRESS;
      }
      get isNotFound() {
        return this.name === "NOT_FOUND";
      }
      get isDeploySuccess() {
        return !this.isNotFound && (this.name === import_client_cloudformation.StackStatus.CREATE_COMPLETE || this.name === import_client_cloudformation.StackStatus.UPDATE_COMPLETE || this.name === import_client_cloudformation.StackStatus.IMPORT_COMPLETE);
      }
      get isRollbackSuccess() {
        return this.name === import_client_cloudformation.StackStatus.ROLLBACK_COMPLETE || this.name === import_client_cloudformation.StackStatus.UPDATE_ROLLBACK_COMPLETE;
      }
      /**
       * Whether the stack is in a paused state due to `--no-rollback`.
       *
       * The possible actions here are retrying a new `--no-rollback` deployment, or initiating a rollback.
       */
      get rollbackChoice() {
        switch (this.name) {
          case import_client_cloudformation.StackStatus.CREATE_FAILED:
          case import_client_cloudformation.StackStatus.UPDATE_FAILED:
            return 0 /* START_ROLLBACK */;
          case import_client_cloudformation.StackStatus.UPDATE_ROLLBACK_FAILED:
            return 1 /* CONTINUE_UPDATE_ROLLBACK */;
          case import_client_cloudformation.StackStatus.ROLLBACK_FAILED:
            return 2 /* ROLLBACK_FAILED */;
          default:
            return 3 /* NONE */;
        }
      }
      get isRollbackable() {
        return [0 /* START_ROLLBACK */, 1 /* CONTINUE_UPDATE_ROLLBACK */].includes(this.rollbackChoice);
      }
      toString() {
        return this.name + (this.reason ? ` (${this.reason})` : "");
      }
    };
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/stack-events/index.ts
var init_stack_events = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/stack-events/index.ts"() {
    "use strict";
    init_stack_activity_monitor();
    init_stack_event_poller();
    init_stack_status();
    init_stack_progress_monitor();
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/cloudformation/stack-helpers.ts
var CloudFormationStack;
var init_stack_helpers = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/cloudformation/stack-helpers.ts"() {
    "use strict";
    init_toolkit_error();
    init_util3();
    init_stack_events();
    CloudFormationStack = class _CloudFormationStack {
      constructor(cfn, stackName, stack, retrieveProcessedTemplate = false) {
        this.cfn = cfn;
        this.stackName = stackName;
        this.stack = stack;
        this.retrieveProcessedTemplate = retrieveProcessedTemplate;
      }
      static {
        __name(this, "CloudFormationStack");
      }
      static async lookup(cfn, stackName, retrieveProcessedTemplate = false) {
        try {
          const response = await cfn.describeStacks({ StackName: stackName });
          return new _CloudFormationStack(cfn, stackName, response.Stacks && response.Stacks[0], retrieveProcessedTemplate);
        } catch (e3) {
          if (e3.name === "ValidationError" && formatErrorMessage(e3) === `Stack with id ${stackName} does not exist`) {
            return new _CloudFormationStack(cfn, stackName, void 0);
          }
          throw e3;
        }
      }
      /**
       * Return a copy of the given stack that does not exist
       *
       * It's a little silly that it needs arguments to do that, but there we go.
       */
      static doesNotExist(cfn, stackName) {
        return new _CloudFormationStack(cfn, stackName);
      }
      /**
       * From static information (for testing)
       */
      static fromStaticInformation(cfn, stackName, stack) {
        return new _CloudFormationStack(cfn, stackName, stack);
      }
      _template;
      /**
       * Retrieve the stack's deployed template
       *
       * Cached, so will only be retrieved once. Will return an empty
       * structure if the stack does not exist.
       */
      async template() {
        if (!this.exists) {
          return {};
        }
        if (this._template === void 0) {
          const response = await this.cfn.getTemplate({
            StackName: this.stackName,
            TemplateStage: this.retrieveProcessedTemplate ? "Processed" : "Original"
          });
          this._template = response.TemplateBody && deserializeStructure(response.TemplateBody) || {};
        }
        return this._template;
      }
      /**
       * Whether the stack exists
       */
      get exists() {
        return this.stack !== void 0;
      }
      /**
       * The stack's ID (which is the same as its ARN)
       *
       * Throws if the stack doesn't exist.
       */
      get stackId() {
        this.assertExists();
        return this.stack.StackId;
      }
      /**
       * The stack's current outputs
       *
       * Empty object if the stack doesn't exist
       */
      get outputs() {
        if (!this.exists) {
          return {};
        }
        const result2 = {};
        (this.stack.Outputs || []).forEach((output) => {
          result2[output.OutputKey] = output.OutputValue;
        });
        return result2;
      }
      /**
       * The stack's status
       *
       * Special status NOT_FOUND if the stack does not exist.
       */
      get stackStatus() {
        if (!this.exists) {
          return new StackStatus("NOT_FOUND", "Stack not found during lookup");
        }
        return StackStatus.fromStackDescription(this.stack);
      }
      /**
       * The stack's current tags
       *
       * Empty list if the stack does not exist
       */
      get tags() {
        return this.stack?.Tags || [];
      }
      /**
       * SNS Topic ARNs that will receive stack events.
       *
       * Empty list if the stack does not exist
       */
      get notificationArns() {
        return this.stack?.NotificationARNs ?? [];
      }
      /**
       * Return the names of all current parameters to the stack
       *
       * Empty list if the stack does not exist.
       */
      get parameterNames() {
        return Object.keys(this.parameters);
      }
      /**
       * Return the names and values of all current parameters to the stack
       *
       * Empty object if the stack does not exist.
       */
      get parameters() {
        if (!this.exists) {
          return {};
        }
        const ret = {};
        for (const param of this.stack.Parameters ?? []) {
          ret[param.ParameterKey] = param.ResolvedValue ?? param.ParameterValue;
        }
        return ret;
      }
      /**
       * Return the termination protection of the stack
       */
      get terminationProtection() {
        return this.stack?.EnableTerminationProtection;
      }
      assertExists() {
        if (!this.exists) {
          throw new ToolkitError(`No stack named '${this.stackName}'`);
        }
      }
    };
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/cloudformation/nested-stack-helpers.ts
async function loadCurrentTemplateWithNestedStacks(rootStackArtifact, sdk, retrieveProcessedTemplate = false) {
  const deployedRootTemplate = await loadCurrentTemplate(rootStackArtifact, sdk, retrieveProcessedTemplate);
  const nestedStacks = await loadNestedStacks(rootStackArtifact, sdk, {
    generatedTemplate: rootStackArtifact.template,
    deployedTemplate: deployedRootTemplate,
    deployedStackName: rootStackArtifact.stackName
  });
  return {
    deployedRootTemplate,
    nestedStacks
  };
}
async function loadCurrentTemplate(stackArtifact, sdk, retrieveProcessedTemplate = false) {
  return loadCurrentStackTemplate(stackArtifact.stackName, sdk, retrieveProcessedTemplate);
}
async function loadCurrentStackTemplate(stackName, sdk, retrieveProcessedTemplate = false) {
  const cfn = sdk.cloudFormation();
  const stack = await CloudFormationStack.lookup(cfn, stackName, retrieveProcessedTemplate);
  return stack.template();
}
async function loadNestedStacks(rootStackArtifact, sdk, parentTemplates) {
  const listStackResources = parentTemplates.deployedStackName ? new LazyListStackResources(sdk, parentTemplates.deployedStackName) : void 0;
  const nestedStacks = {};
  for (const [nestedStackLogicalId, generatedNestedStackResource] of Object.entries(
    parentTemplates.generatedTemplate.Resources ?? {}
  )) {
    if (!isCdkManagedNestedStack(generatedNestedStackResource)) {
      continue;
    }
    const assetPath = generatedNestedStackResource.Metadata["aws:asset:path"];
    const nestedStackTemplates = await getNestedStackTemplates(
      rootStackArtifact,
      assetPath,
      nestedStackLogicalId,
      listStackResources,
      sdk
    );
    nestedStacks[nestedStackLogicalId] = {
      deployedTemplate: nestedStackTemplates.deployedTemplate,
      generatedTemplate: nestedStackTemplates.generatedTemplate,
      physicalName: nestedStackTemplates.deployedStackName,
      nestedStackTemplates: await loadNestedStacks(rootStackArtifact, sdk, nestedStackTemplates)
    };
  }
  return nestedStacks;
}
async function getNestedStackTemplates(rootStackArtifact, nestedTemplateAssetPath, nestedStackLogicalId, listStackResources, sdk) {
  const nestedTemplatePath = path12.join(rootStackArtifact.assembly.directory, nestedTemplateAssetPath);
  const nestedStackArn = await getNestedStackArn(nestedStackLogicalId, listStackResources);
  const deployedStackName = nestedStackArn?.slice(nestedStackArn.indexOf("/") + 1, nestedStackArn.lastIndexOf("/"));
  return {
    generatedTemplate: JSON.parse(fs12.readFileSync(nestedTemplatePath, "utf-8")),
    deployedTemplate: deployedStackName ? await loadCurrentStackTemplate(deployedStackName, sdk) : {},
    deployedStackName
  };
}
async function getNestedStackArn(nestedStackLogicalId, listStackResources) {
  try {
    const stackResources = await listStackResources?.listStackResources();
    return stackResources?.find((sr) => sr.LogicalResourceId === nestedStackLogicalId)?.PhysicalResourceId;
  } catch (e3) {
    if (formatErrorMessage(e3).startsWith("Stack with id ") && formatErrorMessage(e3).endsWith(" does not exist")) {
      return;
    }
    throw e3;
  }
}
function isCdkManagedNestedStack(stackResource) {
  return stackResource.Type === "AWS::CloudFormation::Stack" && stackResource.Metadata && stackResource.Metadata["aws:asset:path"];
}
var path12, fs12;
var init_nested_stack_helpers = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/cloudformation/nested-stack-helpers.ts"() {
    "use strict";
    path12 = __toESM(require("path"));
    fs12 = __toESM(require_lib4());
    init_evaluate_cloudformation_template();
    init_stack_helpers();
    init_util3();
    __name(loadCurrentTemplateWithNestedStacks, "loadCurrentTemplateWithNestedStacks");
    __name(loadCurrentTemplate, "loadCurrentTemplate");
    __name(loadCurrentStackTemplate, "loadCurrentStackTemplate");
    __name(loadNestedStacks, "loadNestedStacks");
    __name(getNestedStackTemplates, "getNestedStackTemplates");
    __name(getNestedStackArn, "getNestedStackArn");
    __name(isCdkManagedNestedStack, "isCdkManagedNestedStack");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/cloudformation/index.ts
var init_cloudformation2 = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/cloudformation/index.ts"() {
    "use strict";
    init_evaluate_cloudformation_template();
    init_template_body_parameter();
    init_nested_stack_helpers();
    init_stack_helpers();
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/deployments/cfn-api.ts
var cfn_api_exports = {};
__export(cfn_api_exports, {
  ParameterValues: () => ParameterValues,
  TemplateParameters: () => TemplateParameters,
  changeSetHasNoChanges: () => changeSetHasNoChanges,
  createChangeSet: () => createChangeSet,
  createDiffChangeSet: () => createDiffChangeSet,
  stabilizeStack: () => stabilizeStack,
  uploadStackTemplateAssets: () => uploadStackTemplateAssets,
  waitForChangeSet: () => waitForChangeSet,
  waitForStackDelete: () => waitForStackDelete,
  waitForStackDeploy: () => waitForStackDeploy
});
async function describeChangeSet(cfn, stackName, changeSetName, { fetchAll }) {
  const response = await cfn.describeChangeSet({
    StackName: stackName,
    ChangeSetName: changeSetName
  });
  while (fetchAll && response.NextToken != null) {
    const nextPage = await cfn.describeChangeSet({
      StackName: stackName,
      ChangeSetName: response.ChangeSetId ?? changeSetName,
      NextToken: response.NextToken
    });
    if (nextPage.Changes != null) {
      response.Changes = response.Changes != null ? response.Changes.concat(nextPage.Changes) : nextPage.Changes;
    }
    response.NextToken = nextPage.NextToken;
  }
  return response;
}
async function waitFor(valueProvider, timeout = 5e3) {
  while (true) {
    const result2 = await valueProvider();
    if (result2 === null) {
      return void 0;
    } else if (result2 !== void 0) {
      return result2;
    }
    await new Promise((cb) => setTimeout(cb, timeout));
  }
}
async function waitForChangeSet(cfn, ioHelper, stackName, changeSetName, { fetchAll }) {
  await ioHelper.defaults.debug((0, import_util13.format)("Waiting for changeset %s on stack %s to finish creating...", changeSetName, stackName));
  const ret = await waitFor(async () => {
    const description = await describeChangeSet(cfn, stackName, changeSetName, {
      fetchAll
    });
    if (description.Status === "CREATE_PENDING" || description.Status === "CREATE_IN_PROGRESS") {
      await ioHelper.defaults.debug((0, import_util13.format)("Changeset %s on stack %s is still creating", changeSetName, stackName));
      return void 0;
    }
    if (description.Status === import_client_cloudformation2.ChangeSetStatus.CREATE_COMPLETE || changeSetHasNoChanges(description)) {
      return description;
    }
    throw new ToolkitError(
      `Failed to create ChangeSet ${changeSetName} on ${stackName}: ${description.Status || "NO_STATUS"}, ${description.StatusReason || "no reason provided"}`
    );
  });
  if (!ret) {
    throw new ToolkitError("Change set took too long to be created; aborting");
  }
  return ret;
}
async function createDiffChangeSet(ioHelper, options) {
  for (const resource of Object.values(options.stack.template.Resources ?? {})) {
    if (resource.Type === "AWS::CloudFormation::Stack") {
      await ioHelper.defaults.debug("This stack contains one or more nested stacks, falling back to template-only diff...");
      return void 0;
    }
  }
  return uploadBodyParameterAndCreateChangeSet(ioHelper, options);
}
function templatesFromAssetManifestArtifact(artifact) {
  const assets = [];
  const fileName = artifact.file;
  const assetManifest = import_cdk_assets_lib3.AssetManifest.fromFile(fileName);
  assetManifest.entries.forEach((entry) => {
    if (entry.type === "file") {
      const source = entry.source;
      if (source.path && source.path.endsWith(".template.json")) {
        assets.push(entry);
      }
    }
  });
  return [assetManifest, assets];
}
async function uploadBodyParameterAndCreateChangeSet(ioHelper, options) {
  try {
    await uploadStackTemplateAssets(options.stack, options.deployments);
    const env2 = await options.deployments.envs.accessStackForMutableStackOperations(options.stack);
    const bodyParameter = await makeBodyParameter(
      ioHelper,
      options.stack,
      env2.resolvedEnvironment,
      new AssetManifestBuilder(),
      env2.resources
    );
    const cfn = env2.sdk.cloudFormation();
    const exists = (await CloudFormationStack.lookup(cfn, options.stack.stackName, false)).exists;
    const executionRoleArn = await env2.replacePlaceholders(options.stack.cloudFormationExecutionRoleArn);
    await ioHelper.defaults.info(
      "Hold on while we create a read-only change set to get a diff with accurate replacement information (use --no-change-set to use a less accurate but faster template-only diff)\n"
    );
    return await createChangeSet(ioHelper, {
      cfn,
      changeSetName: "cdk-diff-change-set",
      stack: options.stack,
      exists,
      uuid: options.uuid,
      willExecute: options.willExecute,
      bodyParameter,
      parameters: options.parameters,
      resourcesToImport: options.resourcesToImport,
      importExistingResources: options.importExistingResources,
      role: executionRoleArn
    });
  } catch (e3) {
    if (!options.failOnError) {
      await ioHelper.defaults.debug(String(e3));
      await ioHelper.defaults.info(
        "Could not create a change set, will base the diff on template differences (run again with -v to see the reason)\n"
      );
      return void 0;
    }
    throw new ToolkitError("Could not create a change set and failOnError is set. (run again with failOnError off to base the diff on template differences)\n", e3);
  }
}
async function uploadStackTemplateAssets(stack, deployments) {
  for (const artifact of stack.dependencies) {
    if (!cxapi.AssetManifestArtifact.isAssetManifestArtifact(artifact)) {
      continue;
    }
    const [assetManifest, file_entries] = templatesFromAssetManifestArtifact(artifact);
    for (const entry of file_entries) {
      await deployments.buildSingleAsset(artifact, assetManifest, entry, {
        stack
      });
      await deployments.publishSingleAsset(assetManifest, entry, {
        stack
      });
    }
  }
}
async function createChangeSet(ioHelper, options) {
  await cleanupOldChangeset(options.cfn, ioHelper, options.changeSetName, options.stack.stackName);
  await ioHelper.defaults.debug(`Attempting to create ChangeSet with name ${options.changeSetName} for stack ${options.stack.stackName}`);
  const templateParams = TemplateParameters.fromTemplate(options.stack.template);
  const stackParams = templateParams.supplyAll(options.parameters);
  const changeSet = await options.cfn.createChangeSet({
    StackName: options.stack.stackName,
    ChangeSetName: options.changeSetName,
    ChangeSetType: options.resourcesToImport ? "IMPORT" : options.exists ? "UPDATE" : "CREATE",
    Description: `CDK Changeset for diff ${options.uuid}`,
    ClientToken: `diff${options.uuid}`,
    TemplateURL: options.bodyParameter.TemplateURL,
    TemplateBody: options.bodyParameter.TemplateBody,
    Parameters: stackParams.apiParameters,
    ResourcesToImport: options.resourcesToImport,
    ImportExistingResources: options.importExistingResources,
    RoleARN: options.role,
    Tags: toCfnTags(options.stack.tags),
    Capabilities: ["CAPABILITY_IAM", "CAPABILITY_NAMED_IAM", "CAPABILITY_AUTO_EXPAND"]
  });
  await ioHelper.defaults.debug((0, import_util13.format)("Initiated creation of changeset: %s; waiting for it to finish creating...", changeSet.Id));
  const createdChangeSet = await waitForChangeSet(options.cfn, ioHelper, options.stack.stackName, options.changeSetName, {
    fetchAll: options.willExecute
  });
  await cleanupOldChangeset(options.cfn, ioHelper, options.changeSetName, options.stack.stackName);
  return createdChangeSet;
}
function toCfnTags(tags) {
  return Object.entries(tags).map(([k3, v6]) => ({
    Key: k3,
    Value: v6
  }));
}
async function cleanupOldChangeset(cfn, ioHelper, changeSetName, stackName) {
  await ioHelper.defaults.debug(`Removing existing change set with name ${changeSetName} if it exists`);
  await cfn.deleteChangeSet({
    StackName: stackName,
    ChangeSetName: changeSetName
  });
}
function changeSetHasNoChanges(description) {
  const noChangeErrorPrefixes = [
    // Error message for a regular template
    "The submitted information didn't contain changes.",
    // Error message when a Transform is involved (see #10650)
    "No updates are to be performed."
  ];
  return description.Status === "FAILED" && noChangeErrorPrefixes.some((p3) => (description.StatusReason ?? "").startsWith(p3));
}
async function waitForStackDelete(cfn, ioHelper, stackName) {
  const stack = await stabilizeStack(cfn, ioHelper, stackName);
  if (!stack) {
    return void 0;
  }
  const status = stack.stackStatus;
  if (status.isFailure) {
    throw new ToolkitError(
      `The stack named ${stackName} is in a failed state. You may need to delete it from the AWS console : ${status}`
    );
  } else if (status.isDeleted) {
    return void 0;
  }
  return stack;
}
async function waitForStackDeploy(cfn, ioHelper, stackName) {
  const stack = await stabilizeStack(cfn, ioHelper, stackName);
  if (!stack) {
    return void 0;
  }
  const status = stack.stackStatus;
  if (status.isCreationFailure) {
    throw new ToolkitError(
      `The stack named ${stackName} failed creation, it may need to be manually deleted from the AWS console: ${status}`
    );
  } else if (!status.isDeploySuccess) {
    throw new ToolkitError(`The stack named ${stackName} failed to deploy: ${status}`);
  }
  return stack;
}
async function stabilizeStack(cfn, ioHelper, stackName) {
  await ioHelper.defaults.debug((0, import_util13.format)("Waiting for stack %s to finish creating or updating...", stackName));
  return waitFor(async () => {
    const stack = await CloudFormationStack.lookup(cfn, stackName);
    if (!stack.exists) {
      await ioHelper.defaults.debug((0, import_util13.format)("Stack %s does not exist", stackName));
      return null;
    }
    const status = stack.stackStatus;
    if (status.isInProgress) {
      await ioHelper.defaults.debug((0, import_util13.format)("Stack %s has an ongoing operation in progress and is not stable (%s)", stackName, status));
      return void 0;
    } else if (status.isReviewInProgress) {
      await ioHelper.defaults.debug((0, import_util13.format)("Stack %s is in REVIEW_IN_PROGRESS state. Considering this is a stable status (%s)", stackName, status));
    }
    return stack;
  });
}
var import_util13, import_cdk_assets_lib3, cxapi, import_cx_api4, import_client_cloudformation2, TemplateParameters, ParameterValues;
var init_cfn_api = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/deployments/cfn-api.ts"() {
    "use strict";
    import_util13 = require("util");
    import_cdk_assets_lib3 = __toESM(require_lib6());
    cxapi = __toESM(require_lib3());
    import_cx_api4 = __toESM(require_lib3());
    import_client_cloudformation2 = __toESM(require_dist_cjs80());
    init_asset_manifest_builder();
    init_toolkit_error();
    init_cloudformation2();
    __name(describeChangeSet, "describeChangeSet");
    __name(waitFor, "waitFor");
    __name(waitForChangeSet, "waitForChangeSet");
    __name(createDiffChangeSet, "createDiffChangeSet");
    __name(templatesFromAssetManifestArtifact, "templatesFromAssetManifestArtifact");
    __name(uploadBodyParameterAndCreateChangeSet, "uploadBodyParameterAndCreateChangeSet");
    __name(uploadStackTemplateAssets, "uploadStackTemplateAssets");
    __name(createChangeSet, "createChangeSet");
    __name(toCfnTags, "toCfnTags");
    __name(cleanupOldChangeset, "cleanupOldChangeset");
    __name(changeSetHasNoChanges, "changeSetHasNoChanges");
    __name(waitForStackDelete, "waitForStackDelete");
    __name(waitForStackDeploy, "waitForStackDeploy");
    __name(stabilizeStack, "stabilizeStack");
    TemplateParameters = class _TemplateParameters {
      constructor(params) {
        this.params = params;
      }
      static {
        __name(this, "TemplateParameters");
      }
      static fromTemplate(template) {
        return new _TemplateParameters(template.Parameters || {});
      }
      /**
       * Calculate stack parameters to pass from the given desired parameter values
       *
       * Will throw if parameters without a Default value or a Previous value are not
       * supplied.
       */
      supplyAll(updates) {
        return new ParameterValues(this.params, updates);
      }
      /**
       * From the template, the given desired values and the current values, calculate the changes to the stack parameters
       *
       * Will take into account parameters already set on the template (will emit
       * 'UsePreviousValue: true' for those unless the value is changed), and will
       * throw if parameters without a Default value or a Previous value are not
       * supplied.
       */
      updateExisting(updates, previousValues) {
        return new ParameterValues(this.params, updates, previousValues);
      }
    };
    ParameterValues = class {
      constructor(formalParams, updates, previousValues = {}) {
        this.formalParams = formalParams;
        const missingRequired = new Array();
        for (const [key, formalParam] of Object.entries(this.formalParams)) {
          const updatedValue = updates[key];
          if (updatedValue !== void 0) {
            this.values[key] = updatedValue;
            this.apiParameters.push({
              ParameterKey: key,
              ParameterValue: updates[key]
            });
            continue;
          }
          if (key in previousValues) {
            this.values[key] = previousValues[key];
            this.apiParameters.push({ ParameterKey: key, UsePreviousValue: true });
            continue;
          }
          if (formalParam.Default !== void 0) {
            this.values[key] = formalParam.Default;
            continue;
          }
          missingRequired.push(key);
        }
        if (missingRequired.length > 0) {
          throw new ToolkitError(`The following CloudFormation Parameters are missing a value: ${missingRequired.join(", ")}`);
        }
        const unknownParam = /* @__PURE__ */ __name(([key, _3]) => this.formalParams[key] === void 0, "unknownParam");
        const hasValue = /* @__PURE__ */ __name(([_3, value]) => !!value, "hasValue");
        for (const [key, value] of Object.entries(updates).filter(unknownParam).filter(hasValue)) {
          this.values[key] = value;
          this.apiParameters.push({ ParameterKey: key, ParameterValue: value });
        }
      }
      static {
        __name(this, "ParameterValues");
      }
      values = {};
      apiParameters = [];
      /**
       * Whether this set of parameter updates will change the actual stack values
       */
      hasChanges(currentValues) {
        if (Object.values(this.formalParams).some(
          (p3) => p3.Type.startsWith("AWS::SSM::Parameter::") && !p3.Description?.includes(import_cx_api4.SSMPARAM_NO_INVALIDATE)
        )) {
          return "ssm";
        }
        if (Object.entries(currentValues).some(([key, value]) => !(key in this.values) || value !== this.values[key])) {
          return true;
        }
        if (Object.keys(this.values).some((key) => !(key in currentValues))) {
          return true;
        }
        return false;
      }
    };
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/deployments/checks.ts
async function determineAllowCrossAccountAssetPublishing(sdk, ioHelper, customStackName) {
  try {
    const stackName = customStackName || "CDKToolkit";
    const stackInfo = await getBootstrapStackInfo(sdk, stackName);
    if (!stackInfo.hasStagingBucket) {
      return true;
    }
    if (stackInfo.bootstrapVersion >= 21) {
      return true;
    }
    return false;
  } catch (e3) {
    await ioHelper.defaults.debug(`Error determining cross account asset publishing: ${e3}`);
    await ioHelper.defaults.debug("Defaulting to allowing cross account asset publishing");
    return true;
  }
}
async function getBootstrapStackInfo(sdk, stackName) {
  try {
    const cfn = sdk.cloudFormation();
    const stackResponse = await cfn.describeStacks({ StackName: stackName });
    if (!stackResponse.Stacks || stackResponse.Stacks.length === 0) {
      throw new ToolkitError(`Toolkit stack ${stackName} not found`);
    }
    const stack = stackResponse.Stacks[0];
    const versionOutput = stack.Outputs?.find((output) => output.OutputKey === "BootstrapVersion");
    if (!versionOutput?.OutputValue) {
      throw new ToolkitError(`Unable to find BootstrapVersion output in the toolkit stack ${stackName}`);
    }
    const bootstrapVersion = parseInt(versionOutput.OutputValue);
    if (isNaN(bootstrapVersion)) {
      throw new ToolkitError(`Invalid BootstrapVersion value: ${versionOutput.OutputValue}`);
    }
    const bucketName = stack.Outputs?.find((output) => output.OutputKey === "BucketName")?.OutputValue;
    const hasStagingBucket = !!(bucketName && bucketName.match(/^[a-z0-9]/) && bucketName.match(/[a-z0-9]$/));
    return {
      hasStagingBucket,
      bootstrapVersion
    };
  } catch (e3) {
    throw new ToolkitError(`Error retrieving toolkit stack info: ${e3}`);
  }
}
var init_checks = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/deployments/checks.ts"() {
    "use strict";
    init_toolkit_error();
    __name(determineAllowCrossAccountAssetPublishing, "determineAllowCrossAccountAssetPublishing");
    __name(getBootstrapStackInfo, "getBootstrapStackInfo");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/deployments/assets.ts
async function addMetadataAssetsToManifest(ioHelper, stack, assetManifest, envResources, reuse) {
  reuse = reuse || [];
  const assets = stack.assets;
  if (assets.length === 0) {
    return {};
  }
  const toolkitInfo = await envResources.lookupToolkit();
  if (!toolkitInfo.found) {
    throw new ToolkitError(`This stack uses assets, so the toolkit stack must be deployed to the environment (Run "${chalk2.blue("cdk bootstrap " + stack.environment.name)}")`);
  }
  const params = {};
  for (const asset of assets) {
    const reuseAsset = reuse.indexOf(asset.id) > -1;
    if (reuseAsset) {
      await ioHelper.defaults.debug(`Reusing asset ${asset.id}: ${JSON.stringify(asset)}`);
      continue;
    }
    await ioHelper.defaults.debug(`Preparing asset ${asset.id}: ${JSON.stringify(asset)}`);
    if (!stack.assembly) {
      throw new ToolkitError("Unexpected: stack assembly is required in order to find assets in assembly directory");
    }
    Object.assign(params, await prepareAsset(ioHelper, asset, assetManifest, envResources, toolkitInfo));
  }
  return params;
}
async function prepareAsset(ioHelper, asset, assetManifest, envResources, toolkitInfo) {
  switch (asset.packaging) {
    case "zip":
    case "file":
      return prepareFileAsset(
        ioHelper,
        asset,
        assetManifest,
        toolkitInfo,
        asset.packaging === "zip" ? cxschema2.FileAssetPackaging.ZIP_DIRECTORY : cxschema2.FileAssetPackaging.FILE
      );
    case "container-image":
      return prepareDockerImageAsset(asset, assetManifest, envResources);
    default:
      throw new ToolkitError(`Unsupported packaging type: ${asset.packaging}. You might need to upgrade your aws-cdk toolkit to support this asset type.`);
  }
}
async function prepareFileAsset(ioHelper, asset, assetManifest, toolkitInfo, packaging) {
  const extension = packaging === cxschema2.FileAssetPackaging.ZIP_DIRECTORY ? ".zip" : path13.extname(asset.path);
  const baseName = `${asset.sourceHash}${extension}`;
  const s3Prefix = asset.id === asset.sourceHash ? "assets/" : `assets/${asset.id}/`;
  const key = `${s3Prefix}${baseName}`;
  const s3url = `s3://${toolkitInfo.bucketName}/${key}`;
  await ioHelper.defaults.debug(`Storing asset ${asset.path} at ${s3url}`);
  assetManifest.addFileAsset(asset.sourceHash, {
    path: asset.path,
    packaging
  }, {
    bucketName: toolkitInfo.bucketName,
    objectKey: key
  });
  return {
    [asset.s3BucketParameter]: toolkitInfo.bucketName,
    [asset.s3KeyParameter]: `${s3Prefix}${cxapi2.ASSET_PREFIX_SEPARATOR}${baseName}`,
    [asset.artifactHashParameter]: asset.sourceHash
  };
}
async function prepareDockerImageAsset(asset, assetManifest, envResources) {
  if (!asset.imageNameParameter && (!asset.repositoryName || !asset.imageTag)) {
    throw new ToolkitError('Invalid Docker image asset configuration: "repositoryName" and "imageTag" are required when "imageNameParameter" is left out');
  }
  const repositoryName = asset.repositoryName ?? "cdk/" + asset.id.replace(/[:/]/g, "-").toLowerCase();
  const { repositoryUri: repositoryUri2 } = await envResources.prepareEcrRepository(repositoryName);
  const imageTag = asset.imageTag ?? asset.sourceHash;
  assetManifest.addDockerImageAsset(asset.sourceHash, {
    directory: asset.path,
    dockerBuildArgs: asset.buildArgs,
    dockerBuildSsh: asset.buildSsh,
    dockerBuildTarget: asset.target,
    dockerFile: asset.file,
    networkMode: asset.networkMode,
    platform: asset.platform,
    dockerOutputs: asset.outputs
  }, {
    repositoryName,
    imageTag
  });
  if (!asset.imageNameParameter) {
    return {};
  }
  return { [asset.imageNameParameter]: `${repositoryUri2}:${imageTag}` };
}
var path13, cxschema2, cxapi2, chalk2;
var init_assets2 = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/deployments/assets.ts"() {
    "use strict";
    path13 = __toESM(require("path"));
    cxschema2 = __toESM(require_lib2());
    cxapi2 = __toESM(require_lib3());
    chalk2 = __toESM(require_source());
    init_toolkit_error();
    __name(addMetadataAssetsToManifest, "addMetadataAssetsToManifest");
    __name(prepareAsset, "prepareAsset");
    __name(prepareFileAsset, "prepareFileAsset");
    __name(prepareDockerImageAsset, "prepareDockerImageAsset");
  }
});

// ../@aws-cdk/toolkit-lib/lib/payloads/hotswap.ts
var NonHotswappableReason;
var init_hotswap = __esm({
  "../@aws-cdk/toolkit-lib/lib/payloads/hotswap.ts"() {
    "use strict";
    NonHotswappableReason = /* @__PURE__ */ ((NonHotswappableReason2) => {
      NonHotswappableReason2["TAGS"] = "tags";
      NonHotswappableReason2["PROPERTIES"] = "properties";
      NonHotswappableReason2["OUTPUT"] = "output";
      NonHotswappableReason2["DEPENDENCY_UNSUPPORTED"] = "dependency-unsupported";
      NonHotswappableReason2["RESOURCE_UNSUPPORTED"] = "resource-unsupported";
      NonHotswappableReason2["RESOURCE_CREATION"] = "resource-creation";
      NonHotswappableReason2["RESOURCE_DELETION"] = "resource-deletion";
      NonHotswappableReason2["RESOURCE_TYPE_CHANGED"] = "resource-type-changed";
      NonHotswappableReason2["NESTED_STACK_CREATION"] = "nested-stack-creation";
      return NonHotswappableReason2;
    })(NonHotswappableReason || {});
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/hotswap/common.ts
function createHotswapPropertyOverrides(props) {
  return new HotswapPropertyOverrides(new EcsHotswapProperties(
    props.ecs?.minimumHealthyPercent,
    props.ecs?.maximumHealthyPercent,
    props.ecs?.stabilizationTimeoutSeconds
  ));
}
function classifyChanges(xs, hotswappablePropNames) {
  const hotswappableProps = {};
  const nonHotswappableProps = {};
  for (const [name, propDiff] of Object.entries(xs.propertyUpdates)) {
    if (hotswappablePropNames.includes(name)) {
      hotswappableProps[name] = propDiff;
    } else {
      nonHotswappableProps[name] = propDiff;
    }
  }
  return new ClassifiedChanges(xs, hotswappableProps, nonHotswappableProps);
}
function nonHotswappableChange(change, reason, description, nonHotswappableProps, hotswapOnlyVisible = true) {
  return {
    hotswappable: false,
    hotswapOnlyVisible,
    change: {
      reason,
      description,
      subject: {
        type: "Resource",
        logicalId: change.logicalId,
        resourceType: change.newValue.Type,
        rejectedProperties: Object.keys(nonHotswappableProps ?? change.propertyUpdates),
        metadata: change.metadata
      }
    }
  };
}
function nonHotswappableResource(change) {
  return {
    hotswappable: false,
    change: {
      reason: "resource-unsupported" /* RESOURCE_UNSUPPORTED */,
      description: "This resource type is not supported for hotswap deployments",
      subject: {
        type: "Resource",
        logicalId: change.logicalId,
        resourceType: change.newValue.Type,
        rejectedProperties: Object.keys(change.propertyUpdates),
        metadata: change.metadata
      }
    }
  };
}
var ICON, HotswapPropertyOverrides, EcsHotswapProperties, ClassifiedChanges;
var init_common3 = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/hotswap/common.ts"() {
    "use strict";
    init_hotswap();
    init_toolkit_error();
    ICON = "\u2728";
    HotswapPropertyOverrides = class {
      static {
        __name(this, "HotswapPropertyOverrides");
      }
      // Each supported resource type will have its own properties. Currently this is ECS
      ecs;
      constructor(ecs) {
        this.ecs = ecs;
      }
    };
    EcsHotswapProperties = class {
      static {
        __name(this, "EcsHotswapProperties");
      }
      // The lower limit on the number of your service's tasks that must remain in the RUNNING state during a deployment, as a percentage of the desiredCount
      minimumHealthyPercent;
      // The upper limit on the number of your service's tasks that are allowed in the RUNNING or PENDING state during a deployment, as a percentage of the desiredCount
      maximumHealthyPercent;
      // The number of seconds to wait for a single service to reach stable state.
      stabilizationTimeoutSeconds;
      constructor(minimumHealthyPercent, maximumHealthyPercent, stabilizationTimeoutSeconds) {
        if (minimumHealthyPercent !== void 0 && minimumHealthyPercent < 0) {
          throw new ToolkitError("hotswap-ecs-minimum-healthy-percent can't be a negative number");
        }
        if (maximumHealthyPercent !== void 0 && maximumHealthyPercent < 0) {
          throw new ToolkitError("hotswap-ecs-maximum-healthy-percent can't be a negative number");
        }
        if (stabilizationTimeoutSeconds !== void 0 && stabilizationTimeoutSeconds < 0) {
          throw new ToolkitError("hotswap-ecs-stabilization-timeout-seconds can't be a negative number");
        }
        if (minimumHealthyPercent == void 0) {
          this.minimumHealthyPercent = 0;
        } else {
          this.minimumHealthyPercent = minimumHealthyPercent;
        }
        this.maximumHealthyPercent = maximumHealthyPercent;
        this.stabilizationTimeoutSeconds = stabilizationTimeoutSeconds;
      }
      /**
       * Check if any hotswap properties are defined
       * @returns true if all properties are undefined, false otherwise
       */
      isEmpty() {
        return this.minimumHealthyPercent === 0 && this.maximumHealthyPercent === void 0;
      }
    };
    __name(createHotswapPropertyOverrides, "createHotswapPropertyOverrides");
    ClassifiedChanges = class {
      constructor(change, hotswappableProps, nonHotswappableProps) {
        this.change = change;
        this.hotswappableProps = hotswappableProps;
        this.nonHotswappableProps = nonHotswappableProps;
      }
      static {
        __name(this, "ClassifiedChanges");
      }
      reportNonHotswappablePropertyChanges(ret) {
        const nonHotswappablePropNames = Object.keys(this.nonHotswappableProps);
        if (nonHotswappablePropNames.length > 0) {
          const tagOnlyChange = nonHotswappablePropNames.length === 1 && nonHotswappablePropNames[0] === "Tags";
          const reason = tagOnlyChange ? "tags" /* TAGS */ : "properties" /* PROPERTIES */;
          const description = tagOnlyChange ? "Tags are not hotswappable" : `resource properties '${nonHotswappablePropNames}' are not hotswappable on this resource type`;
          ret.push(nonHotswappableChange(
            this.change,
            reason,
            description,
            this.nonHotswappableProps
          ));
        }
      }
      get namesOfHotswappableProps() {
        return Object.keys(this.hotswappableProps);
      }
    };
    __name(classifyChanges, "classifyChanges");
    __name(nonHotswappableChange, "nonHotswappableChange");
    __name(nonHotswappableResource, "nonHotswappableResource");
  }
});

// ../../node_modules/@cdklabs/tskb/lib/sorted-map.js
var require_sorted_map = __commonJS({
  "../../node_modules/@cdklabs/tskb/lib/sorted-map.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.sortedMap = void 0;
    var sortedMap;
    (function(sortedMap2) {
      function add(map3, cmp, key, value) {
        const i3 = lowerBound(map3, cmp, key);
        map3.splice(i3, 0, [key, value]);
      }
      __name(add, "add");
      sortedMap2.add = add;
      function find(map3, cmp, key) {
        const i3 = lowerBound(map3, cmp, key);
        if (i3 === map3.length) {
          return void 0;
        }
        const [foundKey, value] = map3[i3];
        return cmp(foundKey, key) === 0 ? value : void 0;
      }
      __name(find, "find");
      sortedMap2.find = find;
      function findAll(map3, cmp, key) {
        let i3 = lowerBound(map3, cmp, key);
        const ret = [];
        while (i3 < map3.length && cmp(map3[i3][0], key) === 0) {
          ret.push(map3[i3][1]);
          i3 += 1;
        }
        return ret;
      }
      __name(findAll, "findAll");
      sortedMap2.findAll = findAll;
      function lowerBound(map3, cmp, key) {
        let first = 0;
        let count = map3.length;
        while (count > 0) {
          let it = first;
          let step = Math.floor(count / 2);
          it += step;
          if (cmp(map3[it][0], key) < 0) {
            first = ++it;
            count -= step + 1;
          } else {
            count = step;
          }
        }
        return first;
      }
      __name(lowerBound, "lowerBound");
    })(sortedMap = exports2.sortedMap || (exports2.sortedMap = {}));
  }
});

// ../../node_modules/@cdklabs/tskb/lib/entity.js
var require_entity = __commonJS({
  "../../node_modules/@cdklabs/tskb/lib/entity.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.optionalCmp = exports2.numberCmp = exports2.stringCmp = exports2.ref = exports2.isEntityCollection = exports2.calculatedIndex = exports2.fieldIndex = exports2.entityCollection = void 0;
    var sorted_map_1 = require_sorted_map();
    function entityCollection() {
      const entities = /* @__PURE__ */ new Map();
      const _indexes = {};
      function add(x3) {
        entities.set(x3.$id, x3);
        for (const index of Object.values(_indexes)) {
          index.add(x3);
        }
      }
      __name(add, "add");
      return {
        type: "entities",
        entities,
        indexes: _indexes,
        add,
        dehydrate: /* @__PURE__ */ __name(() => ({
          type: "entities",
          entities: Array.from(validatePlainObjects(entities).values())
        }), "dehydrate"),
        hydrateFrom: /* @__PURE__ */ __name((x3) => {
          entities.clear();
          for (const e3 of Object.values(x3.entities)) {
            add(e3);
          }
        }, "hydrateFrom"),
        index(indexes) {
          if (Object.keys(_indexes).length > 0) {
            throw new Error("You may only call .index() once on a new collection");
          }
          Object.assign(_indexes, indexes);
          return this;
        }
      };
    }
    __name(entityCollection, "entityCollection");
    exports2.entityCollection = entityCollection;
    function fieldIndex(propName2, comparator) {
      return calculatedIndex((x3) => x3[propName2], comparator);
    }
    __name(fieldIndex, "fieldIndex");
    exports2.fieldIndex = fieldIndex;
    function calculatedIndex(fn, comparator) {
      const index = [];
      return {
        add: /* @__PURE__ */ __name((x3) => sorted_map_1.sortedMap.add(index, comparator, fn(x3), x3.$id), "add"),
        lookups: {
          equals: /* @__PURE__ */ __name((value) => sorted_map_1.sortedMap.findAll(index, comparator, value), "equals")
        },
        index
      };
    }
    __name(calculatedIndex, "calculatedIndex");
    exports2.calculatedIndex = calculatedIndex;
    function isEntityCollection(x3) {
      return typeof x3 === "object" && !!x3 && x3.type === "entities";
    }
    __name(isEntityCollection, "isEntityCollection");
    exports2.isEntityCollection = isEntityCollection;
    function validatePlainObjects(xs) {
      for (const x3 of xs.values()) {
        if (x3.constructor !== Object) {
          throw new Error(`Entities should be plain-text objects, got instance of ${x3.constructor}`);
        }
      }
      return xs;
    }
    __name(validatePlainObjects, "validatePlainObjects");
    function ref(x3) {
      return typeof x3 === "string" ? { $ref: x3 } : { $ref: x3.$id };
    }
    __name(ref, "ref");
    exports2.ref = ref;
    function stringCmp(a3, b3) {
      return a3.localeCompare(b3);
    }
    __name(stringCmp, "stringCmp");
    exports2.stringCmp = stringCmp;
    function numberCmp(a3, b3) {
      return a3 - b3;
    }
    __name(numberCmp, "numberCmp");
    exports2.numberCmp = numberCmp;
    function optionalCmp(cmp, frontOrder = true) {
      return (a3, b3) => {
        if (a3 == void 0 && b3 != void 0) {
          return frontOrder ? -1 : 1;
        }
        if (a3 != void 0 && b3 == void 0) {
          return frontOrder ? 1 : -1;
        }
        if (a3 == void 0 && b3 == void 0) {
          return 0;
        }
        return cmp(a3, b3);
      };
    }
    __name(optionalCmp, "optionalCmp");
    exports2.optionalCmp = optionalCmp;
  }
});

// ../../node_modules/@cdklabs/tskb/lib/relationship.js
var require_relationship = __commonJS({
  "../../node_modules/@cdklabs/tskb/lib/relationship.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.isRelationshipCollection = exports2.relationshipCollection = exports2.NO_RELATIONSHIPS = void 0;
    var NO_RELATIONSHIPS = /* @__PURE__ */ __name(() => ({}), "NO_RELATIONSHIPS");
    exports2.NO_RELATIONSHIPS = NO_RELATIONSHIPS;
    function relationshipCollection(fromField, toField) {
      const forward = /* @__PURE__ */ new Map();
      const backward = /* @__PURE__ */ new Map();
      function add(fromId, toId, attrs) {
        let f3 = forward.get(fromId);
        if (!f3) {
          f3 = [];
          forward.set(fromId, f3);
        }
        let b3 = backward.get(toId);
        if (!b3) {
          b3 = [];
          backward.set(toId, b3);
        }
        const forwardRel = { $id: toId, ...attrs };
        const forwardRelStr = JSON.stringify(forwardRel);
        const existingRelationship = f3.find((x3) => JSON.stringify(x3) === forwardRelStr);
        if (!existingRelationship) {
          f3.push(forwardRel);
          b3.push({ $id: fromId, ...attrs });
        }
      }
      __name(add, "add");
      return {
        type: "rel",
        fromColl: fromField,
        toColl: toField,
        forward,
        backward,
        add(from, to, attributes) {
          add(from.$id, to.$id, attributes);
        },
        dehydrate() {
          return {
            type: "rel",
            forward: Object.fromEntries(forward.entries())
          };
        },
        hydrateFrom(x3) {
          forward.clear();
          backward.clear();
          for (const [fromId, targets] of Object.entries(x3.forward)) {
            for (const target of targets) {
              add(fromId, target.$id, removeId(target));
            }
          }
        }
      };
    }
    __name(relationshipCollection, "relationshipCollection");
    exports2.relationshipCollection = relationshipCollection;
    function isRelationshipCollection(x3) {
      return typeof x3 === "object" && !!x3 && x3.type === "rel";
    }
    __name(isRelationshipCollection, "isRelationshipCollection");
    exports2.isRelationshipCollection = isRelationshipCollection;
    function removeId(x3) {
      const ret = { ...x3 };
      delete ret.$id;
      return ret;
    }
    __name(removeId, "removeId");
  }
});

// ../../node_modules/@cdklabs/tskb/lib/database.js
var require_database = __commonJS({
  "../../node_modules/@cdklabs/tskb/lib/database.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.Database = void 0;
    var entity_1 = require_entity();
    var relationship_1 = require_relationship();
    var Database = class _Database {
      static {
        __name(this, "Database");
      }
      static entitiesOnly(entities) {
        return new _Database(entities, relationship_1.NO_RELATIONSHIPS);
      }
      constructor(entities, relationships) {
        this.idCtr = 0;
        this.schema = {
          ...entities,
          ...relationships({
            relationship: /* @__PURE__ */ __name((fromKey, toKey) => (0, relationship_1.relationshipCollection)((id) => this.get(fromKey, id), (id) => this.get(toKey, id)), "relationship")
          })
        };
      }
      id() {
        return `${this.idCtr++}`;
      }
      /**
       * Allocate an ID and store
       */
      allocate(key, entity) {
        return this.store(key, this.e(entity));
      }
      /**
       * Store with a preallocated ID
       */
      store(key, entity) {
        const coll = this.schema[key];
        coll.add(entity);
        return entity;
      }
      /**
       * Get an entity by key
       */
      get(key, id) {
        const coll = this.schema[key];
        const ret = coll.entities.get(typeof id === "string" ? id : id.$ref);
        if (!ret) {
          throw new Error(`No such ${String(key)}: ${id}`);
        }
        return ret;
      }
      /**
       * All entities of a given type
       */
      all(key) {
        const coll = this.schema[key];
        return Array.from(coll.entities.values());
      }
      /**
       * Lookup an entity by index
       */
      lookup(key, index, lookup, value) {
        const coll = this.schema[key];
        const ids = coll.indexes[index].lookups[lookup](value);
        return addOnlyMethod(ids.map((id) => coll.entities.get(id)), `${String(key)} with ${String(index)} ${String(lookup)} ${JSON.stringify(value)}`);
      }
      /**
       * Allocate an ID and store if the entity does not yet exist
       */
      findOrAllocate(key, index, lookup, entity) {
        const res = this.lookup(key, index, lookup, entity[index]);
        if (res.length) {
          return res.only();
        }
        return this.allocate(key, entity);
      }
      link(key, from, to, attributes) {
        const col = this.schema[key];
        col.add(from, to, attributes);
      }
      /**
       * Follow a link
       */
      follow(key, from) {
        var _a2;
        const col = this.schema[key];
        const toLinks = (_a2 = col.forward.get(from.$id)) !== null && _a2 !== void 0 ? _a2 : [];
        const ret = toLinks.map((i3) => ({ entity: col.toColl(i3.$id), ...removeId(i3) }));
        return addOnlyMethod(ret, `${String(key)} from ${from}`);
      }
      /**
       * Follow incoming links backwards
       */
      incoming(key, to) {
        var _a2;
        const col = this.schema[key];
        const fromIds = (_a2 = col.backward.get(to.$id)) !== null && _a2 !== void 0 ? _a2 : [];
        const ret = fromIds.map((i3) => ({ entity: col.fromColl(i3.$id), ...removeId(i3) }));
        return addOnlyMethod(ret, `${String(key)} to ${to}`);
      }
      e(entity) {
        return {
          $id: this.id(),
          ...entity
        };
      }
      /**
       * Turn the current database collection into something that can be stored.
       */
      save() {
        return {
          idCtr: this.idCtr,
          schema: dehydrate(this.schema)
        };
        function dehydrate(x3) {
          if ((0, entity_1.isEntityCollection)(x3)) {
            return x3.dehydrate();
          }
          if ((0, relationship_1.isRelationshipCollection)(x3)) {
            return x3.dehydrate();
          }
          if (Array.isArray(x3)) {
            return x3.map(dehydrate);
          }
          if (!!x3 && typeof x3 === "object") {
            return Object.fromEntries(Object.entries(x3).map(([k3, v6]) => [k3, dehydrate(v6)]));
          }
          return x3;
        }
        __name(dehydrate, "dehydrate");
      }
      load(db) {
        this.idCtr = db.idCtr;
        hydrate(this.schema, db.schema);
        function hydrate(proto, x3) {
          if ((0, entity_1.isEntityCollection)(proto)) {
            proto.hydrateFrom(x3);
          }
          if ((0, relationship_1.isRelationshipCollection)(proto)) {
            proto.hydrateFrom(x3);
          }
          if (Array.isArray(x3)) {
            x3.forEach(hydrate);
          }
          if (!!proto && typeof proto === "object" && !!x3 && typeof x3 === "object") {
            for (const [k3, v6] of Object.entries(proto)) {
              hydrate(v6, x3[k3]);
            }
          }
        }
        __name(hydrate, "hydrate");
      }
    };
    exports2.Database = Database;
    function removeId(x3) {
      const ret = { ...x3 };
      delete ret.$id;
      return ret;
    }
    __name(removeId, "removeId");
    function addOnlyMethod(xs, description) {
      return Object.defineProperties(xs, {
        only: {
          enumerable: false,
          value: /* @__PURE__ */ __name(() => {
            if (xs.length !== 1) {
              throw new Error(`Expected exactly 1 ${description}, found ${xs.length}`);
            }
            return xs[0];
          }, "value")
        }
      });
    }
    __name(addOnlyMethod, "addOnlyMethod");
  }
});

// ../../node_modules/@cdklabs/tskb/lib/invariant.js
var require_invariant = __commonJS({
  "../../node_modules/@cdklabs/tskb/lib/invariant.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.impliesU = exports2.implies = exports2.evolutionInvariant = void 0;
    function evolutionInvariant(description, pred) {
      Array.isArray(description);
      Array.isArray(pred);
    }
    __name(evolutionInvariant, "evolutionInvariant");
    exports2.evolutionInvariant = evolutionInvariant;
    function implies(x3, y2) {
      return !x3 || y2;
    }
    __name(implies, "implies");
    exports2.implies = implies;
    function impliesU(x3, y2) {
      return !x3 || !!y2;
    }
    __name(impliesU, "impliesU");
    exports2.impliesU = impliesU;
  }
});

// ../../node_modules/@cdklabs/tskb/lib/result.js
var require_result = __commonJS({
  "../../node_modules/@cdklabs/tskb/lib/result.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.liftUndefined = exports2.liftResult = exports2.locateFailure = exports2.chain = exports2.using = exports2.tryCatch = exports2.assertSuccess = exports2.errorFrom = exports2.errorMessage = exports2.unpackOr = exports2.unpack = exports2.isSuccess = exports2.isFailure = exports2.failure = void 0;
    var errorSym = Symbol("error");
    function mkLocate(prefix2) {
      const ret = /* @__PURE__ */ __name((error5) => failure(`${prefix2}: ${error5}`), "ret");
      ret.in = (prefix22) => mkLocate(`${prefix2}: ${prefix22}`);
      ret.locate = locateFailure(prefix2);
      return ret;
    }
    __name(mkLocate, "mkLocate");
    function failure(error5) {
      return { [errorSym]: error5 };
    }
    __name(failure, "failure");
    exports2.failure = failure;
    failure.in = (prefix2) => mkLocate(prefix2);
    failure.locate = (x3) => x3;
    function isFailure(x3) {
      return !!x3 && typeof x3 === "object" && x3[errorSym];
    }
    __name(isFailure, "isFailure");
    exports2.isFailure = isFailure;
    function isSuccess(x3) {
      return !isFailure(x3);
    }
    __name(isSuccess, "isSuccess");
    exports2.isSuccess = isSuccess;
    function unpack(x3) {
      if (isFailure(x3)) {
        throw new Error(`unpack: ${x3[errorSym]}`);
      }
      return x3;
    }
    __name(unpack, "unpack");
    exports2.unpack = unpack;
    function unpackOr(x3, def) {
      return isFailure(x3) ? def : x3;
    }
    __name(unpackOr, "unpackOr");
    exports2.unpackOr = unpackOr;
    function errorMessage(x3) {
      return x3[errorSym];
    }
    __name(errorMessage, "errorMessage");
    exports2.errorMessage = errorMessage;
    function errorFrom(x3) {
      return new Error(errorMessage(x3));
    }
    __name(errorFrom, "errorFrom");
    exports2.errorFrom = errorFrom;
    function assertSuccess(x3) {
      if (isFailure(x3)) {
        throw errorFrom(x3);
      }
    }
    __name(assertSuccess, "assertSuccess");
    exports2.assertSuccess = assertSuccess;
    function tryCatch(failOrBlock, maybeBlock) {
      const block = maybeBlock !== null && maybeBlock !== void 0 ? maybeBlock : failOrBlock;
      const f3 = maybeBlock ? failOrBlock : failure;
      try {
        return block();
      } catch (e3) {
        return f3(`Error: ${e3.message}
${e3.stack}`);
      }
    }
    __name(tryCatch, "tryCatch");
    exports2.tryCatch = tryCatch;
    function using(value, block) {
      if (isFailure(value)) {
        return value;
      }
      return block(value);
    }
    __name(using, "using");
    exports2.using = using;
    function chain(value, ...fns) {
      for (const fn of fns) {
        if (isFailure(value)) {
          return value;
        }
        value = fn(value);
      }
      return value;
    }
    __name(chain, "chain");
    exports2.chain = chain;
    function locateFailure(prefix2) {
      return (x3) => isFailure(x3) ? failure(`${prefix2}: ${x3[errorSym]}`) : x3;
    }
    __name(locateFailure, "locateFailure");
    exports2.locateFailure = locateFailure;
    function liftResult(xs) {
      const failures = Array.isArray(xs) ? xs.filter(isFailure) : Object.values(xs).filter(isFailure);
      if (failures.length > 0) {
        return failure(failures.map(errorMessage).join(", "));
      }
      return xs;
    }
    __name(liftResult, "liftResult");
    exports2.liftResult = liftResult;
    function liftUndefined(valueOrFunction) {
      if (typeof valueOrFunction === "function") {
        return (...args) => {
          const value = valueOrFunction(...args);
          return value !== void 0 ? value : failure("value is undefined");
        };
      }
      return valueOrFunction !== void 0 ? valueOrFunction : failure("value is undefined");
    }
    __name(liftUndefined, "liftUndefined");
    exports2.liftUndefined = liftUndefined;
  }
});

// ../../node_modules/@cdklabs/tskb/lib/index.js
var require_lib7 = __commonJS({
  "../../node_modules/@cdklabs/tskb/lib/index.js"(exports2) {
    "use strict";
    var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      var desc = Object.getOwnPropertyDescriptor(m3, k3);
      if (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) {
        desc = { enumerable: true, get: /* @__PURE__ */ __name(function() {
          return m3[k3];
        }, "get") };
      }
      Object.defineProperty(o3, k22, desc);
    }) : (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      o3[k22] = m3[k3];
    }));
    var __exportStar3 = exports2 && exports2.__exportStar || function(m3, exports3) {
      for (var p3 in m3) if (p3 !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p3)) __createBinding3(exports3, m3, p3);
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    __exportStar3(require_entity(), exports2);
    __exportStar3(require_relationship(), exports2);
    __exportStar3(require_database(), exports2);
    __exportStar3(require_invariant(), exports2);
    __exportStar3(require_result(), exports2);
  }
});

// ../../node_modules/@aws-cdk/service-spec-types/lib/types/database.js
var require_database2 = __commonJS({
  "../../node_modules/@aws-cdk/service-spec-types/lib/types/database.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.RichSpecDatabase = exports2.loadDatabase = exports2.emptyDatabase = void 0;
    var fs_1 = require("fs");
    var zlib_1 = require("zlib");
    var tskb_1 = require_lib7();
    function emptyDatabase() {
      return new tskb_1.Database({
        resource: (0, tskb_1.entityCollection)().index({
          cloudFormationType: (0, tskb_1.fieldIndex)("cloudFormationType", tskb_1.stringCmp)
        }),
        region: (0, tskb_1.entityCollection)().index({
          name: (0, tskb_1.fieldIndex)("name", tskb_1.stringCmp)
        }),
        service: (0, tskb_1.entityCollection)().index({
          name: (0, tskb_1.fieldIndex)("name", tskb_1.stringCmp),
          cloudFormationNamespace: (0, tskb_1.fieldIndex)("cloudFormationNamespace", tskb_1.stringCmp)
        }),
        typeDefinition: (0, tskb_1.entityCollection)(),
        augmentations: (0, tskb_1.entityCollection)(),
        metric: (0, tskb_1.entityCollection)().index({
          name: (0, tskb_1.fieldIndex)("name", tskb_1.stringCmp),
          namespace: (0, tskb_1.fieldIndex)("namespace", tskb_1.stringCmp),
          dedupKey: (0, tskb_1.fieldIndex)("dedupKey", tskb_1.stringCmp)
        }),
        dimensionSet: (0, tskb_1.entityCollection)().index({
          dedupKey: (0, tskb_1.fieldIndex)("dedupKey", tskb_1.stringCmp)
        })
      }, (r3) => ({
        hasResource: r3.relationship("service", "resource"),
        regionHasResource: r3.relationship("region", "resource"),
        regionHasService: r3.relationship("region", "service"),
        usesType: r3.relationship("resource", "typeDefinition"),
        isAugmented: r3.relationship("resource", "augmentations"),
        usesDimensionSet: r3.relationship("metric", "dimensionSet"),
        resourceHasMetric: r3.relationship("resource", "metric"),
        serviceHasMetric: r3.relationship("service", "metric"),
        resourceHasDimensionSet: r3.relationship("resource", "dimensionSet"),
        serviceHasDimensionSet: r3.relationship("service", "dimensionSet")
      }));
    }
    __name(emptyDatabase, "emptyDatabase");
    exports2.emptyDatabase = emptyDatabase;
    async function loadDatabase(pathToDb) {
      const db = emptyDatabase();
      const contents = await fs_1.promises.readFile(pathToDb);
      const json = pathToDb.endsWith(".gz") ? (0, zlib_1.gunzipSync)(contents).toString("utf-8") : contents.toString("utf-8");
      db.load(JSON.parse(json));
      return db;
    }
    __name(loadDatabase, "loadDatabase");
    exports2.loadDatabase = loadDatabase;
    var RichSpecDatabase = class {
      static {
        __name(this, "RichSpecDatabase");
      }
      constructor(db) {
        this.db = db;
      }
      /**
       * Find all resources of a given type
       */
      resourceByType(cfnType, operation = "resourceByType") {
        const res = this.db.lookup("resource", "cloudFormationType", "equals", cfnType);
        if (res.length === 0) {
          throw new Error(`${operation}: no such resource: ${cfnType}`);
        }
        return res[0];
      }
      /**
       * All type definitions used by a certain resource
       */
      resourceTypeDefs(cfnType) {
        const resource = this.db.lookup("resource", "cloudFormationType", "equals", cfnType).only();
        return this.db.follow("usesType", resource).map((x3) => x3.entity);
      }
      /**
       * Find a type definition from a given property type
       */
      tryFindDef(type) {
        return type.type === "ref" ? this.db.get("typeDefinition", type.reference.$ref) : void 0;
      }
    };
    exports2.RichSpecDatabase = RichSpecDatabase;
  }
});

// ../../node_modules/@aws-cdk/service-spec-types/lib/util/sorting.js
var require_sorting = __commonJS({
  "../../node_modules/@aws-cdk/service-spec-types/lib/util/sorting.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.sortKeyComparator = void 0;
    function sortKeyComparator(keyFn) {
      return (a3, b3) => {
        const ak = keyFn(a3);
        const bk = keyFn(b3);
        for (let i3 = 0; i3 < ak.length && i3 < bk.length; i3++) {
          const av = ak[i3];
          const bv = bk[i3];
          let diff = 0;
          if (typeof av === "number" && typeof bv === "number") {
            diff = av - bv;
          } else if (typeof av === "string" && typeof bv === "string") {
            diff = av.localeCompare(bv);
          }
          if (diff !== 0) {
            return diff;
          }
        }
        return bk.length - ak.length;
      };
    }
    __name(sortKeyComparator, "sortKeyComparator");
    exports2.sortKeyComparator = sortKeyComparator;
  }
});

// ../../node_modules/@aws-cdk/service-spec-types/lib/types/resource.js
var require_resource = __commonJS({
  "../../node_modules/@aws-cdk/service-spec-types/lib/types/resource.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.RichPropertyType = exports2.PropertyScrutinyType = exports2.ResourceScrutinyType = exports2.isCollectionType = exports2.Deprecation = exports2.RichAttribute = exports2.RichProperty = exports2.RichTypedField = void 0;
    var sorting_1 = require_sorting();
    var RichTypedField = class {
      static {
        __name(this, "RichTypedField");
      }
      constructor(field) {
        this.field = field;
        if (field === void 0) {
          throw new Error("Field is undefined");
        }
      }
      types() {
        return [...this.field.previousTypes ?? [], this.field.type];
      }
      /**
       * Update the type of this property with a new type
       *
       * Only if it's not in the set of types already.
       *
       * Returns true if the type was updated.
       */
      updateType(type) {
        const richType = new RichPropertyType(type);
        if (this.types().some((t3) => richType.equals(t3))) {
          return false;
        }
        if (type.type === "string" && this.types().some((t3) => t3.type === "date-time")) {
          return false;
        }
        if (type.type === "string" && this.field.type.type === "json") {
          this.field.type = type;
          return true;
        }
        if (!this.field.previousTypes) {
          this.field.previousTypes = [];
        }
        this.field.previousTypes.push(this.field.type);
        this.field.type = type;
        return true;
      }
    };
    exports2.RichTypedField = RichTypedField;
    var RichProperty = class extends RichTypedField {
      static {
        __name(this, "RichProperty");
      }
      constructor(property) {
        super(property);
      }
    };
    exports2.RichProperty = RichProperty;
    var RichAttribute = class extends RichTypedField {
      static {
        __name(this, "RichAttribute");
      }
      constructor(attr) {
        super(attr);
      }
    };
    exports2.RichAttribute = RichAttribute;
    var Deprecation;
    (function(Deprecation2) {
      Deprecation2["NONE"] = "NONE";
      Deprecation2["WARN"] = "WARN";
      Deprecation2["IGNORE"] = "IGNORE";
    })(Deprecation = exports2.Deprecation || (exports2.Deprecation = {}));
    function isCollectionType(x3) {
      return x3.type === "array" || x3.type === "map";
    }
    __name(isCollectionType, "isCollectionType");
    exports2.isCollectionType = isCollectionType;
    var ResourceScrutinyType3;
    (function(ResourceScrutinyType4) {
      ResourceScrutinyType4["None"] = "None";
      ResourceScrutinyType4["ResourcePolicyResource"] = "ResourcePolicyResource";
      ResourceScrutinyType4["IdentityPolicyResource"] = "IdentityPolicyResource";
      ResourceScrutinyType4["LambdaPermission"] = "LambdaPermission";
      ResourceScrutinyType4["IngressRuleResource"] = "IngressRuleResource";
      ResourceScrutinyType4["EgressRuleResource"] = "EgressRuleResource";
      ResourceScrutinyType4["SsoAssignmentResource"] = "SsoAssignmentResource";
      ResourceScrutinyType4["SsoInstanceACAConfigResource"] = "SsoInstanceACAConfigResource";
      ResourceScrutinyType4["SsoPermissionSet"] = "SsoPermissionSet";
    })(ResourceScrutinyType3 = exports2.ResourceScrutinyType || (exports2.ResourceScrutinyType = {}));
    var PropertyScrutinyType3;
    (function(PropertyScrutinyType4) {
      PropertyScrutinyType4["None"] = "None";
      PropertyScrutinyType4["InlineResourcePolicy"] = "InlineResourcePolicy";
      PropertyScrutinyType4["InlineIdentityPolicies"] = "InlineIdentityPolicies";
      PropertyScrutinyType4["ManagedPolicies"] = "ManagedPolicies";
      PropertyScrutinyType4["IngressRules"] = "IngressRules";
      PropertyScrutinyType4["EgressRules"] = "EgressRules";
    })(PropertyScrutinyType3 = exports2.PropertyScrutinyType || (exports2.PropertyScrutinyType = {}));
    var RichPropertyType = class _RichPropertyType {
      static {
        __name(this, "RichPropertyType");
      }
      constructor(type) {
        this.type = type;
      }
      equals(rhs) {
        switch (this.type.type) {
          case "integer":
          case "boolean":
          case "date-time":
          case "json":
          case "null":
          case "number":
          case "string":
          case "tag":
            return rhs.type === this.type.type;
          case "array":
          case "map":
            return rhs.type === this.type.type && new _RichPropertyType(this.type.element).equals(rhs.element);
          case "ref":
            return rhs.type === "ref" && this.type.reference.$ref === rhs.reference.$ref;
          case "union":
            const lhsKey = this.sortKey();
            const rhsKey = new _RichPropertyType(rhs).sortKey();
            return lhsKey.length === rhsKey.length && lhsKey.every((l3, i3) => l3 === rhsKey[i3]);
        }
      }
      /**
       * Whether the current type is JavaScript-equal to the RHS type
       *
       * Same as normal equality, but consider `integer` and `number` the same types.
       */
      javascriptEquals(rhs) {
        switch (this.type.type) {
          case "number":
          case "integer":
            return rhs.type === "integer" || rhs.type === "number";
          case "array":
          case "map":
            return rhs.type === this.type.type && new _RichPropertyType(this.type.element).javascriptEquals(rhs.element);
          case "union":
            if (rhs.type !== "union") {
              return false;
            }
            return this.type.types.every((t1) => rhs.types.some((t22) => new _RichPropertyType(t1).javascriptEquals(t22)));
          default:
            return this.equals(rhs);
        }
      }
      /**
       * Whether the current type is assignable to the RHS type.
       *
       * This is means every type member of the LHS must be present in the RHS type
       */
      assignableTo(rhs) {
        const extractMembers = /* @__PURE__ */ __name((type) => type.type == "union" ? type.types : [type], "extractMembers");
        const asRichType = /* @__PURE__ */ __name((type) => new _RichPropertyType(type), "asRichType");
        const rhsMembers = extractMembers(rhs);
        for (const lhsMember of extractMembers(this.type).map(asRichType)) {
          if (!rhsMembers.some((type) => lhsMember.equals(type))) {
            return false;
          }
        }
        return true;
      }
      /**
       * Return a version of this type, but with all type unions in a regularized order
       */
      normalize(db) {
        switch (this.type.type) {
          case "array":
          case "map":
            return new _RichPropertyType({
              type: this.type.type,
              element: new _RichPropertyType(this.type.element).normalize(db).type
            });
          case "union":
            const types5 = this.type.types.map((t3) => new _RichPropertyType(t3).normalize(db)).map((t3) => [t3, t3.sortKey(db)]);
            types5.sort((0, sorting_1.sortKeyComparator)(([_3, sortKey]) => sortKey));
            return new _RichPropertyType({
              type: "union",
              types: types5.map(([t3, _3]) => t3.type)
            });
          default:
            return this;
        }
      }
      stringify(db, withId = true) {
        switch (this.type.type) {
          case "integer":
          case "boolean":
          case "date-time":
          case "json":
          case "null":
          case "number":
          case "string":
          case "tag":
            return this.type.type;
          case "array":
            return `Array<${new _RichPropertyType(this.type.element).stringify(db, withId)}>`;
          case "map":
            return `Map<string, ${new _RichPropertyType(this.type.element).stringify(db, withId)}>`;
          case "ref":
            const type = db.get("typeDefinition", this.type.reference);
            return withId ? `${type.name}(${this.type.reference.$ref})` : type.name;
          case "union":
            return this.type.types.map((t3) => new _RichPropertyType(t3).stringify(db, withId)).join(" | ");
        }
      }
      /**
       * Return a sortable key based on this type
       *
       * If a database is given, type definitions will be sorted based on type name,
       * otherwise on identifier
       */
      sortKey(db) {
        switch (this.type.type) {
          case "integer":
          case "boolean":
          case "date-time":
          case "json":
          case "null":
          case "number":
          case "string":
          case "tag":
            return ["0", this.type.type];
          case "array":
          case "map":
            return ["1", this.type.type, ...new _RichPropertyType(this.type.element).sortKey(db)];
          case "ref":
            return ["2", this.type.type, db?.get("typeDefinition", this.type.reference)?.name ?? this.type.reference.$ref];
          case "union":
            const typeKeys = this.type.types.map((t3) => new _RichPropertyType(t3).sortKey(db));
            typeKeys.sort((0, sorting_1.sortKeyComparator)((x3) => x3));
            return ["3", this.type.type, ...typeKeys.flatMap((x3) => x3)];
        }
      }
    };
    exports2.RichPropertyType = RichPropertyType;
  }
});

// ../../node_modules/@aws-cdk/service-spec-types/lib/types/augmentations.js
var require_augmentations = __commonJS({
  "../../node_modules/@aws-cdk/service-spec-types/lib/types/augmentations.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
  }
});

// ../../node_modules/@aws-cdk/service-spec-types/lib/types/metrics.js
var require_metrics = __commonJS({
  "../../node_modules/@aws-cdk/service-spec-types/lib/types/metrics.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
  }
});

// ../../node_modules/@aws-cdk/service-spec-types/lib/types/diff.js
var require_diff3 = __commonJS({
  "../../node_modules/@aws-cdk/service-spec-types/lib/types/diff.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
  }
});

// ../../node_modules/@aws-cdk/service-spec-types/lib/index.js
var require_lib8 = __commonJS({
  "../../node_modules/@aws-cdk/service-spec-types/lib/index.js"(exports2) {
    "use strict";
    var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      var desc = Object.getOwnPropertyDescriptor(m3, k3);
      if (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) {
        desc = { enumerable: true, get: /* @__PURE__ */ __name(function() {
          return m3[k3];
        }, "get") };
      }
      Object.defineProperty(o3, k22, desc);
    }) : (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      o3[k22] = m3[k3];
    }));
    var __exportStar3 = exports2 && exports2.__exportStar || function(m3, exports3) {
      for (var p3 in m3) if (p3 !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p3)) __createBinding3(exports3, m3, p3);
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    __exportStar3(require_database2(), exports2);
    __exportStar3(require_resource(), exports2);
    __exportStar3(require_augmentations(), exports2);
    __exportStar3(require_metrics(), exports2);
    __exportStar3(require_diff3(), exports2);
  }
});

// ../../node_modules/@aws-cdk/aws-service-spec/lib/index.js
var require_lib9 = __commonJS({
  "../../node_modules/@aws-cdk/aws-service-spec/lib/index.js"(exports2) {
    "use strict";
    var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      var desc = Object.getOwnPropertyDescriptor(m3, k3);
      if (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) {
        desc = { enumerable: true, get: /* @__PURE__ */ __name(function() {
          return m3[k3];
        }, "get") };
      }
      Object.defineProperty(o3, k22, desc);
    }) : (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      o3[k22] = m3[k3];
    }));
    var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? (function(o3, v6) {
      Object.defineProperty(o3, "default", { enumerable: true, value: v6 });
    }) : function(o3, v6) {
      o3["default"] = v6;
    });
    var __importStar2 = exports2 && exports2.__importStar || /* @__PURE__ */ (function() {
      var ownKeys2 = /* @__PURE__ */ __name(function(o3) {
        ownKeys2 = Object.getOwnPropertyNames || function(o4) {
          var ar = [];
          for (var k3 in o4) if (Object.prototype.hasOwnProperty.call(o4, k3)) ar[ar.length] = k3;
          return ar;
        };
        return ownKeys2(o3);
      }, "ownKeys");
      return function(mod) {
        if (mod && mod.__esModule) return mod;
        var result2 = {};
        if (mod != null) {
          for (var k3 = ownKeys2(mod), i3 = 0; i3 < k3.length; i3++) if (k3[i3] !== "default") __createBinding3(result2, mod, k3[i3]);
        }
        __setModuleDefault2(result2, mod);
        return result2;
      };
    })();
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.loadAwsServiceSpec = loadAwsServiceSpec;
    exports2.loadAwsServiceSpecSync = loadAwsServiceSpecSync2;
    var node_fs_1 = require("node:fs");
    var path38 = __importStar2(require("node:path"));
    var node_zlib_1 = require("node:zlib");
    var service_spec_types_1 = require_lib8();
    var DB_COMPRESSED = "db.json.gz";
    var DB_PATH = path38.join(__dirname, "..", DB_COMPRESSED);
    async function loadAwsServiceSpec() {
      return loadBufferIntoDatabase(await node_fs_1.promises.readFile(DB_PATH));
    }
    __name(loadAwsServiceSpec, "loadAwsServiceSpec");
    function loadAwsServiceSpecSync2() {
      return loadBufferIntoDatabase((0, node_fs_1.readFileSync)(DB_PATH));
    }
    __name(loadAwsServiceSpecSync2, "loadAwsServiceSpecSync");
    function loadBufferIntoDatabase(spec) {
      const db = (0, service_spec_types_1.emptyDatabase)();
      db.load(JSON.parse((0, node_zlib_1.gunzipSync)(spec).toString("utf-8")));
      return db;
    }
    __name(loadBufferIntoDatabase, "loadBufferIntoDatabase");
  }
});

// ../@aws-cdk/cloudformation-diff/lib/diff/util.ts
var util_exports = {};
__export(util_exports, {
  deepEqual: () => deepEqual,
  diffKeyedEntities: () => diffKeyedEntities,
  loadResourceModel: () => loadResourceModel,
  mangleLikeCloudFormation: () => mangleLikeCloudFormation,
  unionOf: () => unionOf
});
function deepEqual(lvalue, rvalue) {
  if (lvalue === rvalue) {
    return true;
  }
  if ((typeof lvalue === "string" && typeof rvalue === "boolean" || typeof lvalue === "boolean" && typeof rvalue === "string") && lvalue.toString() === rvalue.toString()) {
    return true;
  }
  if ((typeof lvalue === "string" || typeof rvalue === "string") && safeParseFloat(lvalue) === safeParseFloat(rvalue)) {
    return true;
  }
  if (typeof lvalue !== typeof rvalue) {
    return false;
  }
  if (Array.isArray(lvalue) !== Array.isArray(rvalue)) {
    return false;
  }
  if (Array.isArray(lvalue)) {
    if (lvalue.length !== rvalue.length) {
      return false;
    }
    for (let i3 = 0; i3 < lvalue.length; i3++) {
      if (!deepEqual(lvalue[i3], rvalue[i3])) {
        return false;
      }
    }
    return true;
  }
  if (typeof lvalue === "object") {
    if (lvalue === null || rvalue === null) {
      return false;
    }
    const keys = Object.keys(lvalue);
    if (keys.length !== Object.keys(rvalue).length) {
      return false;
    }
    for (const key of keys) {
      if (!rvalue.hasOwnProperty(key)) {
        return false;
      }
      if (key === "DependsOn") {
        if (!dependsOnEqual(lvalue[key], rvalue[key])) {
          return false;
        }
        continue;
      }
      if (!deepEqual(lvalue[key], rvalue[key])) {
        return false;
      }
    }
    return true;
  }
  return false;
}
function dependsOnEqual(lvalue, rvalue) {
  if (Array.isArray(lvalue) !== Array.isArray(rvalue)) {
    const array = Array.isArray(lvalue) ? lvalue : rvalue;
    const nonArray = Array.isArray(lvalue) ? rvalue : lvalue;
    if (array.length === 1 && deepEqual(array[0], nonArray)) {
      return true;
    }
    return false;
  }
  if (Array.isArray(lvalue) && Array.isArray(rvalue)) {
    if (lvalue.length !== rvalue.length) {
      return false;
    }
    for (let i3 = 0; i3 < lvalue.length; i3++) {
      for (let j3 = 0; j3 < lvalue.length; j3++) {
        if (!deepEqual(lvalue[i3], rvalue[j3]) && j3 === lvalue.length - 1) {
          return false;
        }
        break;
      }
    }
    return true;
  }
  return false;
}
function diffKeyedEntities(oldValue, newValue, elementDiff) {
  const result2 = {};
  for (const logicalId of unionOf(Object.keys(oldValue || {}), Object.keys(newValue || {}))) {
    const oldElement = oldValue && oldValue[logicalId];
    const newElement = newValue && newValue[logicalId];
    if (oldElement === void 0 && newElement === void 0) {
      continue;
    }
    result2[logicalId] = elementDiff(oldElement, newElement, logicalId);
  }
  return result2;
}
function unionOf(lv, rv) {
  const result2 = new Set(lv);
  for (const v6 of rv) {
    result2.add(v6);
  }
  return new Array(...result2);
}
function mangleLikeCloudFormation(payload2) {
  return payload2.replace(/[\u{80}-\u{10ffff}]/gu, "?");
}
function safeParseFloat(str) {
  return Number(str);
}
function database() {
  if (!DATABASE) {
    DATABASE = (0, import_aws_service_spec.loadAwsServiceSpecSync)();
  }
  return DATABASE;
}
function loadResourceModel(type) {
  return database().lookup("resource", "cloudFormationType", "equals", type)[0];
}
var import_aws_service_spec, DATABASE;
var init_util4 = __esm({
  "../@aws-cdk/cloudformation-diff/lib/diff/util.ts"() {
    "use strict";
    import_aws_service_spec = __toESM(require_lib9());
    __name(deepEqual, "deepEqual");
    __name(dependsOnEqual, "dependsOnEqual");
    __name(diffKeyedEntities, "diffKeyedEntities");
    __name(unionOf, "unionOf");
    __name(mangleLikeCloudFormation, "mangleLikeCloudFormation");
    __name(safeParseFloat, "safeParseFloat");
    __name(database, "database");
    __name(loadResourceModel, "loadResourceModel");
  }
});

// ../../node_modules/fast-deep-equal/index.js
var require_fast_deep_equal = __commonJS({
  "../../node_modules/fast-deep-equal/index.js"(exports2, module2) {
    "use strict";
    module2.exports = /* @__PURE__ */ __name(function equal(a3, b3) {
      if (a3 === b3) return true;
      if (a3 && b3 && typeof a3 == "object" && typeof b3 == "object") {
        if (a3.constructor !== b3.constructor) return false;
        var length, i3, keys;
        if (Array.isArray(a3)) {
          length = a3.length;
          if (length != b3.length) return false;
          for (i3 = length; i3-- !== 0; )
            if (!equal(a3[i3], b3[i3])) return false;
          return true;
        }
        if (a3.constructor === RegExp) return a3.source === b3.source && a3.flags === b3.flags;
        if (a3.valueOf !== Object.prototype.valueOf) return a3.valueOf() === b3.valueOf();
        if (a3.toString !== Object.prototype.toString) return a3.toString() === b3.toString();
        keys = Object.keys(a3);
        length = keys.length;
        if (length !== Object.keys(b3).length) return false;
        for (i3 = length; i3-- !== 0; )
          if (!Object.prototype.hasOwnProperty.call(b3, keys[i3])) return false;
        for (i3 = length; i3-- !== 0; ) {
          var key = keys[i3];
          if (!equal(a3[key], b3[key])) return false;
        }
        return true;
      }
      return a3 !== a3 && b3 !== b3;
    }, "equal");
  }
});

// ../@aws-cdk/cloudformation-diff/lib/iam/iam-identity-center.ts
var deepEqual2, SsoPermissionSet, SsoAssignment, SsoInstanceACAConfig;
var init_iam_identity_center = __esm({
  "../@aws-cdk/cloudformation-diff/lib/iam/iam-identity-center.ts"() {
    "use strict";
    deepEqual2 = require_fast_deep_equal();
    SsoPermissionSet = class {
      static {
        __name(this, "SsoPermissionSet");
      }
      constructor(props) {
        this.cfnLogicalId = props.cfnLogicalId;
        this.name = props.name;
        this.ssoInstanceArn = props.ssoInstanceArn;
        this.ssoPermissionsBoundary = props.ssoPermissionsBoundary;
        this.ssoCustomerManagedPolicyReferences = props.ssoCustomerManagedPolicyReferences;
      }
      equal(other) {
        return deepEqual2(this, other);
      }
    };
    SsoAssignment = class {
      static {
        __name(this, "SsoAssignment");
      }
      constructor(props) {
        this.cfnLogicalId = props.cfnLogicalId;
        this.ssoInstanceArn = props.ssoInstanceArn;
        this.permissionSetArn = props.permissionSetArn;
        this.principalId = props.principalId;
        this.principalType = props.principalType;
        this.targetId = props.targetId;
        this.targetType = props.targetType;
      }
      equal(other) {
        return deepEqual2(this, other);
      }
    };
    SsoInstanceACAConfig = class {
      static {
        __name(this, "SsoInstanceACAConfig");
      }
      constructor(props) {
        this.cfnLogicalId = props.cfnLogicalId;
        this.ssoInstanceArn = props.ssoInstanceArn;
        this.accessControlAttributes = props.accessControlAttributes;
      }
      equal(other) {
        return deepEqual2(this, other);
      }
    };
  }
});

// ../@aws-cdk/cloudformation-diff/lib/diff/maybe-parsed.ts
function mkParsed(value) {
  return { type: "parsed", value };
}
function mkUnparseable(value) {
  return {
    type: "unparseable",
    repr: typeof value === "string" ? value : JSON.stringify(value)
  };
}
var init_maybe_parsed = __esm({
  "../@aws-cdk/cloudformation-diff/lib/diff/maybe-parsed.ts"() {
    "use strict";
    __name(mkParsed, "mkParsed");
    __name(mkUnparseable, "mkUnparseable");
  }
});

// ../@aws-cdk/cloudformation-diff/lib/iam/managed-policy.ts
var ManagedPolicyAttachment;
var init_managed_policy = __esm({
  "../@aws-cdk/cloudformation-diff/lib/iam/managed-policy.ts"() {
    "use strict";
    init_maybe_parsed();
    ManagedPolicyAttachment = class _ManagedPolicyAttachment {
      constructor(identityArn, managedPolicyArn) {
        this.identityArn = identityArn;
        this.managedPolicyArn = managedPolicyArn;
      }
      static {
        __name(this, "ManagedPolicyAttachment");
      }
      static parseManagedPolicies(identityArn, arns) {
        return typeof arns === "string" ? [new _ManagedPolicyAttachment(identityArn, arns)] : arns.map((arn) => new _ManagedPolicyAttachment(identityArn, arn));
      }
      equal(other) {
        return this.identityArn === other.identityArn && this.managedPolicyArn === other.managedPolicyArn;
      }
      /**
       * Return a machine-readable version of the changes.
       * This is only used in tests.
       *
       * @internal
       */
      _toJson() {
        return mkParsed({
          identityArn: this.identityArn,
          managedPolicyArn: this.managedPolicyArn
        });
      }
    };
  }
});

// ../@aws-cdk/cloudformation-diff/lib/util.ts
function makeComparator(keyFn) {
  return (a3, b3) => {
    const keyA = keyFn(a3);
    const keyB = keyFn(b3);
    const len = Math.min(keyA.length, keyB.length);
    for (let i3 = 0; i3 < len; i3++) {
      const c3 = compare(keyA[i3], keyB[i3]);
      if (c3 !== 0) {
        return c3;
      }
    }
    return keyA.length - keyB.length;
  };
}
function compare(a3, b3) {
  if (a3 < b3) {
    return -1;
  }
  if (b3 < a3) {
    return 1;
  }
  return 0;
}
function dropIfEmpty(xs) {
  return xs.length > 0 ? xs : void 0;
}
function deepRemoveUndefined(x3) {
  if (typeof x3 === void 0 || x3 === null) {
    return x3;
  }
  if (Array.isArray(x3)) {
    return x3.map(deepRemoveUndefined);
  }
  if (typeof x3 === "object") {
    for (const [key, value] of Object.entries(x3)) {
      x3[key] = deepRemoveUndefined(value);
      if (x3[key] === void 0) {
        delete x3[key];
      }
    }
    return x3;
  }
  return x3;
}
function flatMap2(xs, f3) {
  const ret = new Array();
  for (const x3 of xs) {
    ret.push(...f3(x3));
  }
  return ret;
}
var init_util5 = __esm({
  "../@aws-cdk/cloudformation-diff/lib/util.ts"() {
    "use strict";
    __name(makeComparator, "makeComparator");
    __name(compare, "compare");
    __name(dropIfEmpty, "dropIfEmpty");
    __name(deepRemoveUndefined, "deepRemoveUndefined");
    __name(flatMap2, "flatMap");
  }
});

// ../@aws-cdk/cloudformation-diff/lib/iam/statement.ts
function parseStatements(x3) {
  if (x3 === void 0) {
    x3 = [];
  }
  if (!Array.isArray(x3)) {
    x3 = [x3];
  }
  return x3.map((s3) => new Statement(s3));
}
function parseLambdaPermission(x3) {
  const statement = {
    Effect: "Allow",
    Action: x3.Action,
    Resource: x3.FunctionName
  };
  if (x3.Principal !== void 0) {
    if (x3.Principal === "*") {
      statement.Principal = "*";
    } else if (/^\d{12}$/.test(x3.Principal)) {
      statement.Principal = { AWS: `arn:aws:iam::${x3.Principal}:root` };
    } else {
      statement.Principal = { Service: x3.Principal };
    }
  }
  if (x3.SourceArn !== void 0) {
    if (statement.Condition === void 0) {
      statement.Condition = {};
    }
    statement.Condition.ArnLike = { "AWS:SourceArn": x3.SourceArn };
  }
  if (x3.SourceAccount !== void 0) {
    if (statement.Condition === void 0) {
      statement.Condition = {};
    }
    statement.Condition.StringEquals = { "AWS:SourceAccount": x3.SourceAccount };
  }
  if (x3.EventSourceToken !== void 0) {
    if (statement.Condition === void 0) {
      statement.Condition = {};
    }
    statement.Condition.StringEquals = { "lambda:EventSourceToken": x3.EventSourceToken };
  }
  return new Statement(statement);
}
function expectString3(x3) {
  return typeof x3 === "string" ? x3 : void 0;
}
function expectEffect(x3) {
  if (x3 === "Allow" /* Allow */ || x3 === "Deny" /* Deny */) {
    return x3;
  }
  return "Unknown" /* Unknown */;
}
function forceListOfStrings(x3) {
  if (typeof x3 === "string") {
    return [x3];
  }
  if (typeof x3 === "undefined" || x3 === null) {
    return [];
  }
  if (Array.isArray(x3)) {
    return x3.map((e3) => forceListOfStrings(e3).join(","));
  }
  if (typeof x3 === "object" && x3 !== null) {
    const ret = [];
    for (const [key, value] of Object.entries(x3)) {
      ret.push(...forceListOfStrings(value).map((s3) => `${key}:${s3}`));
    }
    return ret;
  }
  return [`${x3}`];
}
function renderCondition(condition) {
  if (!condition || Object.keys(condition).length === 0) {
    return "";
  }
  const jsonRepresentation = JSON.stringify(condition, void 0, 2);
  const lines = jsonRepresentation.split("\n");
  return lines.slice(1, lines.length - 1).map((s3) => s3.slice(2)).join("\n");
}
var deepEqual3, Statement, Targets;
var init_statement = __esm({
  "../@aws-cdk/cloudformation-diff/lib/iam/statement.ts"() {
    "use strict";
    init_maybe_parsed();
    init_util5();
    deepEqual3 = require_fast_deep_equal();
    Statement = class {
      static {
        __name(this, "Statement");
      }
      constructor(statement) {
        if (typeof statement === "string") {
          this.sid = void 0;
          this.effect = "Unknown" /* Unknown */;
          this.resources = new Targets({}, "", "");
          this.actions = new Targets({}, "", "");
          this.principals = new Targets({}, "", "");
          this.condition = void 0;
          this.serializedIntrinsic = statement;
        } else {
          this.sid = expectString3(statement.Sid);
          this.effect = expectEffect(statement.Effect);
          this.resources = new Targets(statement, "Resource", "NotResource");
          this.actions = new Targets(statement, "Action", "NotAction");
          this.principals = new Targets(statement, "Principal", "NotPrincipal");
          this.condition = statement.Condition;
          this.serializedIntrinsic = void 0;
        }
      }
      /**
       * Whether this statement is equal to the other statement
       */
      equal(other) {
        return this.sid === other.sid && this.effect === other.effect && this.serializedIntrinsic === other.serializedIntrinsic && this.resources.equal(other.resources) && this.actions.equal(other.actions) && this.principals.equal(other.principals) && deepEqual3(this.condition, other.condition);
      }
      render() {
        return this.serializedIntrinsic ? {
          resource: this.serializedIntrinsic,
          effect: "",
          action: "",
          principal: this.principals.render(),
          // these will be replaced by the call to replaceEmpty() from IamChanges
          condition: ""
        } : {
          resource: this.resources.render(),
          effect: this.effect,
          action: this.actions.render(),
          principal: this.principals.render(),
          condition: renderCondition(this.condition)
        };
      }
      /**
       * Return a machine-readable version of the changes.
       * This is only used in tests.
       *
       * @internal
       */
      _toJson() {
        return this.serializedIntrinsic ? mkUnparseable(this.serializedIntrinsic) : mkParsed(deepRemoveUndefined({
          sid: this.sid,
          effect: this.effect,
          resources: this.resources._toJson(),
          principals: this.principals._toJson(),
          actions: this.actions._toJson(),
          condition: this.condition
        }));
      }
      /**
       * Whether this is a negative statement
       *
       * A statement is negative if any of its targets are negative, inverted
       * if the Effect is Deny.
       */
      get isNegativeStatement() {
        const notTarget = this.actions.not || this.principals.not || this.resources.not;
        return this.effect === "Allow" /* Allow */ ? notTarget : !notTarget;
      }
    };
    __name(parseStatements, "parseStatements");
    __name(parseLambdaPermission, "parseLambdaPermission");
    Targets = class {
      static {
        __name(this, "Targets");
      }
      constructor(statement, positiveKey, negativeKey) {
        if (negativeKey in statement) {
          this.values = forceListOfStrings(statement[negativeKey]);
          this.not = true;
        } else {
          this.values = forceListOfStrings(statement[positiveKey]);
          this.not = false;
        }
        this.values.sort();
      }
      get empty() {
        return this.values.length === 0;
      }
      /**
       * Whether this set of targets is equal to the other set of targets
       */
      equal(other) {
        return this.not === other.not && deepEqual3(this.values.sort(), other.values.sort());
      }
      /**
       * If the current value set is empty, put this in it
       */
      replaceEmpty(replacement) {
        if (this.empty) {
          this.values.push(replacement);
        }
      }
      /**
       * If the actions contains a '*', replace with this string.
       */
      replaceStar(replacement) {
        for (let i3 = 0; i3 < this.values.length; i3++) {
          if (this.values[i3] === "*") {
            this.values[i3] = replacement;
          }
        }
        this.values.sort();
      }
      /**
       * Render into a summary table cell
       */
      render() {
        return this.not ? this.values.map((s3) => `NOT ${s3}`).join("\n") : this.values.join("\n");
      }
      /**
       * Return a machine-readable version of the changes.
       * This is only used in tests.
       *
       * @internal
       */
      _toJson() {
        return { not: this.not, values: this.values };
      }
    };
    __name(expectString3, "expectString");
    __name(expectEffect, "expectEffect");
    __name(forceListOfStrings, "forceListOfStrings");
    __name(renderCondition, "renderCondition");
  }
});

// ../@aws-cdk/cloudformation-diff/lib/diffable.ts
function contains(element, xs) {
  return xs.some((x3) => x3.equal(element));
}
function difference(collection, elements) {
  return collection.filter((x3) => !contains(x3, elements));
}
var DiffableCollection;
var init_diffable = __esm({
  "../@aws-cdk/cloudformation-diff/lib/diffable.ts"() {
    "use strict";
    DiffableCollection = class {
      constructor() {
        this.additions = [];
        this.removals = [];
        this.oldElements = [];
        this.newElements = [];
      }
      static {
        __name(this, "DiffableCollection");
      }
      addOld(...elements) {
        this.oldElements.push(...elements);
      }
      addNew(...elements) {
        this.newElements.push(...elements);
      }
      calculateDiff() {
        this.additions.push(...difference(this.newElements, this.oldElements));
        this.removals.push(...difference(this.oldElements, this.newElements));
      }
      get hasChanges() {
        return this.additions.length + this.removals.length > 0;
      }
      get hasAdditions() {
        return this.additions.length > 0;
      }
      get hasRemovals() {
        return this.removals.length > 0;
      }
    };
    __name(contains, "contains");
    __name(difference, "difference");
  }
});

// ../@aws-cdk/cloudformation-diff/lib/render-intrinsics.ts
function renderIntrinsics(x3) {
  if (Array.isArray(x3)) {
    return x3.filter((el) => !isNoValue(el)).map(renderIntrinsics);
  }
  if (isNoValue(x3)) {
    return void 0;
  }
  const intrinsic = getIntrinsic(x3);
  if (intrinsic) {
    if (intrinsic.fn === "Ref") {
      return "${" + intrinsic.args + "}";
    }
    if (intrinsic.fn === "Fn::GetAtt") {
      return "${" + intrinsic.args[0] + "." + intrinsic.args[1] + "}";
    }
    if (intrinsic.fn === "Fn::Join") {
      return unCloudFormationFnJoin(intrinsic.args[0], intrinsic.args[1]);
    }
    return stringifyIntrinsic(intrinsic.fn, intrinsic.args);
  }
  if (typeof x3 === "object" && x3 !== null) {
    const ret = {};
    for (const [key, value] of Object.entries(x3)) {
      if (!isNoValue(value)) {
        ret[key] = renderIntrinsics(value);
      }
    }
    return ret;
  }
  return x3;
}
function unCloudFormationFnJoin(separator, args) {
  if (Array.isArray(args)) {
    return args.filter((el) => !isNoValue(el)).map(renderIntrinsics).join(separator);
  }
  return stringifyIntrinsic("Fn::Join", [separator, args]);
}
function stringifyIntrinsic(fn, args) {
  return JSON.stringify({ [fn]: renderIntrinsics(args) });
}
function getIntrinsic(x3) {
  if (x3 === void 0 || x3 === null || Array.isArray(x3)) {
    return void 0;
  }
  if (typeof x3 !== "object") {
    return void 0;
  }
  const keys = Object.keys(x3);
  return keys.length === 1 && (keys[0] === "Ref" || keys[0].startsWith("Fn::")) ? { fn: keys[0], args: x3[keys[0]] } : void 0;
}
function isNoValue(x3) {
  const int = getIntrinsic(x3);
  return int && int.fn === "Ref" && int.args === "AWS::NoValue";
}
var init_render_intrinsics = __esm({
  "../@aws-cdk/cloudformation-diff/lib/render-intrinsics.ts"() {
    "use strict";
    __name(renderIntrinsics, "renderIntrinsics");
    __name(unCloudFormationFnJoin, "unCloudFormationFnJoin");
    __name(stringifyIntrinsic, "stringifyIntrinsic");
    __name(getIntrinsic, "getIntrinsic");
    __name(isNoValue, "isNoValue");
  }
});

// ../@aws-cdk/cloudformation-diff/lib/iam/iam-changes.ts
function defaultPrincipal(principal, statements) {
  statements.forEach((s3) => s3.principals.replaceEmpty(principal));
  statements.forEach((s3) => s3.principals.replaceStar(principal));
  return statements;
}
function defaultResource(resource, statements) {
  statements.forEach((s3) => s3.resources.replaceEmpty(resource));
  statements.forEach((s3) => s3.resources.replaceStar(resource));
  return statements;
}
var import_service_spec_types, chalk3, IamChanges;
var init_iam_changes = __esm({
  "../@aws-cdk/cloudformation-diff/lib/iam/iam-changes.ts"() {
    "use strict";
    import_service_spec_types = __toESM(require_lib8());
    chalk3 = __toESM(require_source());
    init_iam_identity_center();
    init_managed_policy();
    init_statement();
    init_diffable();
    init_render_intrinsics();
    init_util5();
    IamChanges = class {
      constructor(props) {
        // each entry in a DiffableCollection is used to generate a single row of the security changes table that is presented for cdk diff and cdk deploy.
        this.statements = new DiffableCollection();
        this.managedPolicies = new DiffableCollection();
        this.ssoPermissionSets = new DiffableCollection();
        this.ssoAssignments = new DiffableCollection();
        this.ssoInstanceACAConfigs = new DiffableCollection();
        for (const propertyChange of props.propertyChanges) {
          this.readPropertyChange(propertyChange);
        }
        for (const resourceChange of props.resourceChanges) {
          this.readResourceChange(resourceChange);
        }
        this.statements.calculateDiff();
        this.managedPolicies.calculateDiff();
        this.ssoPermissionSets.calculateDiff();
        this.ssoAssignments.calculateDiff();
        this.ssoInstanceACAConfigs.calculateDiff();
      }
      static {
        __name(this, "IamChanges");
      }
      static {
        this.IamPropertyScrutinies = [
          import_service_spec_types.PropertyScrutinyType.InlineIdentityPolicies,
          import_service_spec_types.PropertyScrutinyType.InlineResourcePolicy,
          import_service_spec_types.PropertyScrutinyType.ManagedPolicies
        ];
      }
      static {
        this.IamResourceScrutinies = [
          import_service_spec_types.ResourceScrutinyType.ResourcePolicyResource,
          import_service_spec_types.ResourceScrutinyType.IdentityPolicyResource,
          import_service_spec_types.ResourceScrutinyType.LambdaPermission,
          import_service_spec_types.ResourceScrutinyType.SsoAssignmentResource,
          import_service_spec_types.ResourceScrutinyType.SsoInstanceACAConfigResource,
          import_service_spec_types.ResourceScrutinyType.SsoPermissionSet
        ];
      }
      get hasChanges() {
        return this.statements.hasChanges || this.managedPolicies.hasChanges || this.ssoPermissionSets.hasChanges || this.ssoAssignments.hasChanges || this.ssoInstanceACAConfigs.hasChanges;
      }
      /**
       * Return whether the changes include broadened permissions
       *
       * Permissions are broadened if positive statements are added or
       * negative statements are removed, or if managed policies are added.
       */
      get permissionsBroadened() {
        return this.statements.additions.some((s3) => !s3.isNegativeStatement) || this.statements.removals.some((s3) => s3.isNegativeStatement) || this.managedPolicies.hasAdditions || this.ssoPermissionSets.hasAdditions || this.ssoAssignments.hasAdditions || this.ssoInstanceACAConfigs.hasAdditions;
      }
      /**
       * Return a summary table of changes
       */
      summarizeStatements() {
        const ret = [];
        const header = ["", "Resource", "Effect", "Action", "Principal", "Condition"];
        for (const statement of this.statements.additions) {
          const renderedStatement = statement.render();
          ret.push([
            "+",
            renderedStatement.resource,
            renderedStatement.effect,
            renderedStatement.action,
            renderedStatement.principal,
            renderedStatement.condition
          ].map((s3) => chalk3.green(s3)));
        }
        for (const statement of this.statements.removals) {
          const renderedStatement = statement.render();
          ret.push([
            "-",
            renderedStatement.resource,
            renderedStatement.effect,
            renderedStatement.action,
            renderedStatement.principal,
            renderedStatement.condition
          ].map((s3) => chalk3.red(s3)));
        }
        ret.sort(makeComparator((row) => [row[1]]));
        ret.splice(0, 0, header);
        return ret;
      }
      summarizeManagedPolicies() {
        const ret = [];
        const header = ["", "Resource", "Managed Policy ARN"];
        for (const att of this.managedPolicies.additions) {
          ret.push([
            "+",
            att.identityArn,
            att.managedPolicyArn
          ].map((s3) => chalk3.green(s3)));
        }
        for (const att of this.managedPolicies.removals) {
          ret.push([
            "-",
            att.identityArn,
            att.managedPolicyArn
          ].map((s3) => chalk3.red(s3)));
        }
        ret.sort(makeComparator((row) => [row[1]]));
        ret.splice(0, 0, header);
        return ret;
      }
      summarizeSsoAssignments() {
        const ret = [];
        const header = ["", "Resource", "InstanceArn", "PermissionSetArn", "PrincipalId", "PrincipalType", "TargetId", "TargetType"];
        for (const att of this.ssoAssignments.additions) {
          ret.push([
            "+",
            att.cfnLogicalId || "",
            att.ssoInstanceArn || "",
            att.permissionSetArn || "",
            att.principalId || "",
            att.principalType || "",
            att.targetId || "",
            att.targetType || ""
          ].map((s3) => chalk3.green(s3)));
        }
        for (const att of this.ssoAssignments.removals) {
          ret.push([
            "-",
            att.cfnLogicalId || "",
            att.ssoInstanceArn || "",
            att.permissionSetArn || "",
            att.principalId || "",
            att.principalType || "",
            att.targetId || "",
            att.targetType || ""
          ].map((s3) => chalk3.red(s3)));
        }
        ret.sort(makeComparator((row) => [row[1]]));
        ret.splice(0, 0, header);
        return ret;
      }
      summarizeSsoInstanceACAConfigs() {
        const ret = [];
        const header = ["", "Resource", "InstanceArn", "AccessControlAttributes"];
        function formatAccessControlAttribute(aca) {
          return `Key: ${aca?.Key}, Values: [${aca?.Value?.Source.join(", ")}]`;
        }
        __name(formatAccessControlAttribute, "formatAccessControlAttribute");
        for (const att of this.ssoInstanceACAConfigs.additions) {
          ret.push([
            "+",
            att.cfnLogicalId || "",
            att.ssoInstanceArn || "",
            att.accessControlAttributes?.map(formatAccessControlAttribute).join("\n") || ""
          ].map((s3) => chalk3.green(s3)));
        }
        for (const att of this.ssoInstanceACAConfigs.removals) {
          ret.push([
            "-",
            att.cfnLogicalId || "",
            att.ssoInstanceArn || "",
            att.accessControlAttributes?.map(formatAccessControlAttribute).join("\n") || ""
          ].map((s3) => chalk3.red(s3)));
        }
        ret.sort(makeComparator((row) => [row[1]]));
        ret.splice(0, 0, header);
        return ret;
      }
      summarizeSsoPermissionSets() {
        const ret = [];
        const header = ["", "Resource", "InstanceArn", "PermissionSet name", "PermissionsBoundary", "CustomerManagedPolicyReferences"];
        function formatManagedPolicyRef(s3) {
          return `Name: ${s3?.Name || ""}, Path: ${s3?.Path || ""}`;
        }
        __name(formatManagedPolicyRef, "formatManagedPolicyRef");
        function formatSsoPermissionsBoundary(ssoPb) {
          if (ssoPb?.ManagedPolicyArn !== void 0) {
            return `ManagedPolicyArn: ${ssoPb?.ManagedPolicyArn || ""}`;
          } else if (ssoPb?.CustomerManagedPolicyReference !== void 0) {
            return `CustomerManagedPolicyReference: {
  ${formatManagedPolicyRef(ssoPb?.CustomerManagedPolicyReference)}
}`;
          } else {
            return "";
          }
        }
        __name(formatSsoPermissionsBoundary, "formatSsoPermissionsBoundary");
        for (const att of this.ssoPermissionSets.additions) {
          ret.push([
            "+",
            att.cfnLogicalId || "",
            att.ssoInstanceArn || "",
            att.name || "",
            formatSsoPermissionsBoundary(att.ssoPermissionsBoundary),
            att.ssoCustomerManagedPolicyReferences?.map(formatManagedPolicyRef).join("\n") || ""
          ].map((s3) => chalk3.green(s3)));
        }
        for (const att of this.ssoPermissionSets.removals) {
          ret.push([
            "-",
            att.cfnLogicalId || "",
            att.ssoInstanceArn || "",
            att.name || "",
            formatSsoPermissionsBoundary(att.ssoPermissionsBoundary),
            att.ssoCustomerManagedPolicyReferences?.map(formatManagedPolicyRef).join("\n") || ""
          ].map((s3) => chalk3.red(s3)));
        }
        ret.sort(makeComparator((row) => [row[1]]));
        ret.splice(0, 0, header);
        return ret;
      }
      /**
       * Return a machine-readable version of the changes.
       * This is only used in tests.
       *
       * @internal
       */
      _toJson() {
        return deepRemoveUndefined({
          statementAdditions: dropIfEmpty(this.statements.additions.map((s3) => s3._toJson())),
          statementRemovals: dropIfEmpty(this.statements.removals.map((s3) => s3._toJson())),
          managedPolicyAdditions: dropIfEmpty(this.managedPolicies.additions.map((s3) => s3._toJson())),
          managedPolicyRemovals: dropIfEmpty(this.managedPolicies.removals.map((s3) => s3._toJson()))
        });
      }
      readPropertyChange(propertyChange) {
        switch (propertyChange.scrutinyType) {
          case import_service_spec_types.PropertyScrutinyType.InlineIdentityPolicies:
            this.statements.addOld(...this.readIdentityPolicies(propertyChange.oldValue, propertyChange.resourceLogicalId));
            this.statements.addNew(...this.readIdentityPolicies(propertyChange.newValue, propertyChange.resourceLogicalId));
            break;
          case import_service_spec_types.PropertyScrutinyType.InlineResourcePolicy:
            this.statements.addOld(...this.readResourceStatements(propertyChange.oldValue, propertyChange.resourceLogicalId));
            this.statements.addNew(...this.readResourceStatements(propertyChange.newValue, propertyChange.resourceLogicalId));
            break;
          case import_service_spec_types.PropertyScrutinyType.ManagedPolicies:
            this.managedPolicies.addOld(...this.readManagedPolicies(propertyChange.oldValue, propertyChange.resourceLogicalId));
            this.managedPolicies.addNew(...this.readManagedPolicies(propertyChange.newValue, propertyChange.resourceLogicalId));
            break;
        }
      }
      readResourceChange(resourceChange) {
        switch (resourceChange.scrutinyType) {
          case import_service_spec_types.ResourceScrutinyType.IdentityPolicyResource:
            this.statements.addOld(...this.readIdentityPolicyResource(resourceChange.oldProperties));
            this.statements.addNew(...this.readIdentityPolicyResource(resourceChange.newProperties));
            break;
          case import_service_spec_types.ResourceScrutinyType.ResourcePolicyResource:
            this.statements.addOld(...this.readResourcePolicyResource(resourceChange.oldProperties));
            this.statements.addNew(...this.readResourcePolicyResource(resourceChange.newProperties));
            break;
          case import_service_spec_types.ResourceScrutinyType.LambdaPermission:
            this.statements.addOld(...this.readLambdaStatements(resourceChange.oldProperties));
            this.statements.addNew(...this.readLambdaStatements(resourceChange.newProperties));
            break;
          case import_service_spec_types.ResourceScrutinyType.SsoPermissionSet:
            this.ssoPermissionSets.addOld(...this.readSsoPermissionSet(resourceChange.oldProperties, resourceChange.resourceLogicalId));
            this.ssoPermissionSets.addNew(...this.readSsoPermissionSet(resourceChange.newProperties, resourceChange.resourceLogicalId));
            break;
          case import_service_spec_types.ResourceScrutinyType.SsoAssignmentResource:
            this.ssoAssignments.addOld(...this.readSsoAssignments(resourceChange.oldProperties, resourceChange.resourceLogicalId));
            this.ssoAssignments.addNew(...this.readSsoAssignments(resourceChange.newProperties, resourceChange.resourceLogicalId));
            break;
          case import_service_spec_types.ResourceScrutinyType.SsoInstanceACAConfigResource:
            this.ssoInstanceACAConfigs.addOld(...this.readSsoInstanceACAConfigs(resourceChange.oldProperties, resourceChange.resourceLogicalId));
            this.ssoInstanceACAConfigs.addNew(...this.readSsoInstanceACAConfigs(resourceChange.newProperties, resourceChange.resourceLogicalId));
            break;
        }
      }
      /**
       * Parse a list of policies on an identity
       */
      readIdentityPolicies(policies, logicalId) {
        if (policies === void 0 || !Array.isArray(policies)) {
          return [];
        }
        const appliesToPrincipal = "AWS:${" + logicalId + "}";
        return flatMap2(policies, (policy) => {
          const unparsedStatement = policy.PolicyDocument?.Statement ? policy.PolicyDocument.Statement : policy;
          return defaultPrincipal(appliesToPrincipal, parseStatements(renderIntrinsics(unparsedStatement)));
        });
      }
      /**
       * Parse an IAM::Policy resource
       */
      readIdentityPolicyResource(properties) {
        if (properties === void 0) {
          return [];
        }
        properties = renderIntrinsics(properties);
        const principals = (properties.Groups || []).concat(properties.Users || []).concat(properties.Roles || []);
        return flatMap2(principals, (principal) => {
          const ref = "AWS:" + principal;
          return defaultPrincipal(ref, parseStatements(properties.PolicyDocument.Statement));
        });
      }
      readSsoInstanceACAConfigs(properties, logicalId) {
        if (properties === void 0) {
          return [];
        }
        properties = renderIntrinsics(properties);
        return [new SsoInstanceACAConfig({
          cfnLogicalId: "${" + logicalId + "}",
          ssoInstanceArn: properties.InstanceArn,
          accessControlAttributes: properties.AccessControlAttributes
        })];
      }
      readSsoAssignments(properties, logicalId) {
        if (properties === void 0) {
          return [];
        }
        properties = renderIntrinsics(properties);
        return [new SsoAssignment({
          cfnLogicalId: "${" + logicalId + "}",
          ssoInstanceArn: properties.InstanceArn,
          permissionSetArn: properties.PermissionSetArn,
          principalId: properties.PrincipalId,
          principalType: properties.PrincipalType,
          targetId: properties.TargetId,
          targetType: properties.TargetType
        })];
      }
      readSsoPermissionSet(properties, logicalId) {
        if (properties === void 0) {
          return [];
        }
        properties = renderIntrinsics(properties);
        return [new SsoPermissionSet({
          cfnLogicalId: "${" + logicalId + "}",
          name: properties.Name,
          ssoInstanceArn: properties.InstanceArn,
          ssoCustomerManagedPolicyReferences: properties.CustomerManagedPolicyReferences,
          ssoPermissionsBoundary: properties.PermissionsBoundary
        })];
      }
      readResourceStatements(policy, logicalId) {
        if (policy === void 0) {
          return [];
        }
        const appliesToResource = "${" + logicalId + ".Arn}";
        return defaultResource(appliesToResource, parseStatements(renderIntrinsics(policy.Statement)));
      }
      /**
       * Parse an AWS::*::{Bucket,Topic,Queue}policy
       */
      readResourcePolicyResource(properties) {
        if (properties === void 0) {
          return [];
        }
        properties = renderIntrinsics(properties);
        const policyKeys = Object.keys(properties).filter((key) => key.indexOf("Policy") > -1);
        const resourceKeys = Object.keys(properties).filter((key) => !policyKeys.includes(key) && !key.endsWith("Name"));
        let resources = resourceKeys.length === 1 ? properties[resourceKeys[0]] : ["???"];
        if (!Array.isArray(resources)) {
          resources = [resources];
        }
        return flatMap2(resources, (resource) => {
          return defaultResource(resource, parseStatements(properties[policyKeys[0]].Statement));
        });
      }
      readManagedPolicies(policyArns, logicalId) {
        if (!policyArns) {
          return [];
        }
        const rep = "${" + logicalId + "}";
        return ManagedPolicyAttachment.parseManagedPolicies(rep, renderIntrinsics(policyArns));
      }
      readLambdaStatements(properties) {
        if (!properties) {
          return [];
        }
        return [parseLambdaPermission(renderIntrinsics(properties))];
      }
    };
    __name(defaultPrincipal, "defaultPrincipal");
    __name(defaultResource, "defaultResource");
  }
});

// ../@aws-cdk/cloudformation-diff/lib/network/security-group-rule.ts
function peerEqual(a3, b3) {
  if (a3 === void 0 !== (b3 === void 0)) {
    return false;
  }
  if (a3 === void 0) {
    return true;
  }
  if (a3.kind !== b3.kind) {
    return false;
  }
  switch (a3.kind) {
    case "cidr-ip":
      return a3.ip === b3.ip;
    case "security-group":
      return a3.securityGroupId === b3.securityGroupId;
    case "prefix-list":
      return a3.prefixListId === b3.prefixListId;
  }
}
function findFirst(obj, keys, fn) {
  for (const key of keys) {
    try {
      if (key in obj) {
        return fn(obj[key]);
      }
    } catch (e3) {
      debugger;
    }
  }
  return void 0;
}
var SecurityGroupRule;
var init_security_group_rule = __esm({
  "../@aws-cdk/cloudformation-diff/lib/network/security-group-rule.ts"() {
    "use strict";
    SecurityGroupRule = class {
      static {
        __name(this, "SecurityGroupRule");
      }
      constructor(ruleObject, groupRef) {
        this.ipProtocol = ruleObject.IpProtocol?.toString() || "*unknown*";
        this.fromPort = ruleObject.FromPort;
        this.toPort = ruleObject.ToPort;
        this.groupId = ruleObject.GroupId || groupRef || "*unknown*";
        this.peer = findFirst(
          ruleObject,
          ["CidrIp", "CidrIpv6"],
          (ip) => ({ kind: "cidr-ip", ip })
        ) || findFirst(
          ruleObject,
          ["DestinationSecurityGroupId", "SourceSecurityGroupId"],
          (securityGroupId) => ({ kind: "security-group", securityGroupId })
        ) || findFirst(
          ruleObject,
          ["DestinationPrefixListId", "SourcePrefixListId"],
          (prefixListId) => ({ kind: "prefix-list", prefixListId })
        );
      }
      equal(other) {
        return this.ipProtocol === other.ipProtocol && this.fromPort === other.fromPort && this.toPort === other.toPort && peerEqual(this.peer, other.peer);
      }
      describeProtocol() {
        if (this.ipProtocol === "-1") {
          return "Everything";
        }
        const ipProtocol = this.ipProtocol.toUpperCase();
        if (this.fromPort === -1) {
          return `All ${ipProtocol}`;
        }
        if (this.fromPort === this.toPort) {
          return `${ipProtocol} ${this.fromPort}`;
        }
        return `${ipProtocol} ${this.fromPort}-${this.toPort}`;
      }
      describePeer() {
        if (this.peer) {
          switch (this.peer.kind) {
            case "cidr-ip":
              if (this.peer.ip === "0.0.0.0/0") {
                return "Everyone (IPv4)";
              }
              if (this.peer.ip === "::/0") {
                return "Everyone (IPv6)";
              }
              return `${this.peer.ip}`;
            case "prefix-list":
              return `${this.peer.prefixListId}`;
            case "security-group":
              return `${this.peer.securityGroupId}`;
          }
        }
        return "?";
      }
      toJson() {
        return {
          groupId: this.groupId,
          ipProtocol: this.ipProtocol,
          fromPort: this.fromPort,
          toPort: this.toPort,
          peer: this.peer
        };
      }
    };
    __name(peerEqual, "peerEqual");
    __name(findFirst, "findFirst");
  }
});

// ../@aws-cdk/cloudformation-diff/lib/network/security-group-changes.ts
var chalk4, SecurityGroupChanges;
var init_security_group_changes = __esm({
  "../@aws-cdk/cloudformation-diff/lib/network/security-group-changes.ts"() {
    "use strict";
    chalk4 = __toESM(require_source());
    init_security_group_rule();
    init_diffable();
    init_render_intrinsics();
    init_util5();
    SecurityGroupChanges = class {
      constructor(props) {
        this.ingress = new DiffableCollection();
        this.egress = new DiffableCollection();
        for (const ingressProp of props.ingressRulePropertyChanges) {
          this.ingress.addOld(...this.readInlineRules(ingressProp.oldValue, ingressProp.resourceLogicalId));
          this.ingress.addNew(...this.readInlineRules(ingressProp.newValue, ingressProp.resourceLogicalId));
        }
        for (const egressProp of props.egressRulePropertyChanges) {
          this.egress.addOld(...this.readInlineRules(egressProp.oldValue, egressProp.resourceLogicalId));
          this.egress.addNew(...this.readInlineRules(egressProp.newValue, egressProp.resourceLogicalId));
        }
        for (const ingressRes of props.ingressRuleResourceChanges) {
          this.ingress.addOld(...this.readRuleResource(ingressRes.oldProperties));
          this.ingress.addNew(...this.readRuleResource(ingressRes.newProperties));
        }
        for (const egressRes of props.egressRuleResourceChanges) {
          this.egress.addOld(...this.readRuleResource(egressRes.oldProperties));
          this.egress.addNew(...this.readRuleResource(egressRes.newProperties));
        }
        this.ingress.calculateDiff();
        this.egress.calculateDiff();
      }
      static {
        __name(this, "SecurityGroupChanges");
      }
      get hasChanges() {
        return this.ingress.hasChanges || this.egress.hasChanges;
      }
      /**
       * Return a summary table of changes
       */
      summarize() {
        const ret = [];
        const header = ["", "Group", "Dir", "Protocol", "Peer"];
        const inWord = "In";
        const outWord = "Out";
        const renderRule = /* @__PURE__ */ __name((plusMin, inOut) => (rule) => [
          plusMin,
          rule.groupId,
          inOut,
          rule.describeProtocol(),
          rule.describePeer()
        ].map((s3) => plusMin === "+" ? chalk4.green(s3) : chalk4.red(s3)), "renderRule");
        ret.push(...this.ingress.additions.map(renderRule("+", inWord)));
        ret.push(...this.egress.additions.map(renderRule("+", outWord)));
        ret.push(...this.ingress.removals.map(renderRule("-", inWord)));
        ret.push(...this.egress.removals.map(renderRule("-", outWord)));
        ret.sort(makeComparator((row) => [row[1], row[2].indexOf(inWord) > -1 ? 0 : 1]));
        ret.splice(0, 0, header);
        return ret;
      }
      toJson() {
        return deepRemoveUndefined({
          ingressRuleAdditions: dropIfEmpty(this.ingress.additions.map((s3) => s3.toJson())),
          ingressRuleRemovals: dropIfEmpty(this.ingress.removals.map((s3) => s3.toJson())),
          egressRuleAdditions: dropIfEmpty(this.egress.additions.map((s3) => s3.toJson())),
          egressRuleRemovals: dropIfEmpty(this.egress.removals.map((s3) => s3.toJson()))
        });
      }
      get rulesAdded() {
        return this.ingress.hasAdditions || this.egress.hasAdditions;
      }
      readInlineRules(rules, logicalId) {
        if (!rules || !Array.isArray(rules)) {
          return [];
        }
        const ref = "${" + logicalId + ".GroupId}";
        return rules.flatMap((r3) => {
          const rendered = renderIntrinsics(r3);
          return typeof rendered === "object" ? [new SecurityGroupRule(rendered, ref)] : [];
        });
      }
      readRuleResource(resource) {
        if (!resource) {
          return [];
        }
        return [new SecurityGroupRule(renderIntrinsics(resource))];
      }
    };
  }
});

// ../@aws-cdk/cloudformation-diff/lib/diff/types.ts
function worstImpact(one, two) {
  if (!two) {
    return one;
  }
  const badness = {
    ["NO_CHANGE" /* NO_CHANGE */]: 0,
    ["WILL_IMPORT" /* WILL_IMPORT */]: 0,
    ["WILL_UPDATE" /* WILL_UPDATE */]: 1,
    ["WILL_CREATE" /* WILL_CREATE */]: 2,
    ["WILL_ORPHAN" /* WILL_ORPHAN */]: 3,
    ["MAY_REPLACE" /* MAY_REPLACE */]: 4,
    ["WILL_REPLACE" /* WILL_REPLACE */]: 5,
    ["WILL_DESTROY" /* WILL_DESTROY */]: 6
  };
  return badness[one] > badness[two] ? one : two;
}
function isPropertyDifference(diff) {
  return diff.changeImpact !== void 0;
}
function onlyChanges(xs) {
  const ret = {};
  for (const [key, diff] of Object.entries(xs)) {
    if (diff.isDifferent) {
      ret[key] = diff;
    }
  }
  return ret;
}
var import_assert, import_service_spec_types2, TemplateDiff, Difference, PropertyDifference, DifferenceCollection, ConditionDifference, MappingDifference, MetadataDifference, OutputDifference, ParameterDifference, ResourceImpact, ResourceDifference;
var init_types4 = __esm({
  "../@aws-cdk/cloudformation-diff/lib/diff/types.ts"() {
    "use strict";
    import_assert = require("assert");
    import_service_spec_types2 = __toESM(require_lib8());
    init_util4();
    init_iam_changes();
    init_security_group_changes();
    TemplateDiff = class {
      static {
        __name(this, "TemplateDiff");
      }
      constructor(args) {
        if (args.awsTemplateFormatVersion !== void 0) {
          this.awsTemplateFormatVersion = args.awsTemplateFormatVersion;
        }
        if (args.description !== void 0) {
          this.description = args.description;
        }
        if (args.transform !== void 0) {
          this.transform = args.transform;
        }
        this.conditions = args.conditions || new DifferenceCollection({});
        this.mappings = args.mappings || new DifferenceCollection({});
        this.metadata = args.metadata || new DifferenceCollection({});
        this.outputs = args.outputs || new DifferenceCollection({});
        this.parameters = args.parameters || new DifferenceCollection({});
        this.resources = args.resources || new DifferenceCollection({});
        this.unknown = args.unknown || new DifferenceCollection({});
        this.iamChanges = new IamChanges({
          propertyChanges: this.scrutinizablePropertyChanges(IamChanges.IamPropertyScrutinies),
          resourceChanges: this.scrutinizableResourceChanges(IamChanges.IamResourceScrutinies)
        });
        this.securityGroupChanges = new SecurityGroupChanges({
          egressRulePropertyChanges: this.scrutinizablePropertyChanges([import_service_spec_types2.PropertyScrutinyType.EgressRules]),
          ingressRulePropertyChanges: this.scrutinizablePropertyChanges([import_service_spec_types2.PropertyScrutinyType.IngressRules]),
          egressRuleResourceChanges: this.scrutinizableResourceChanges([import_service_spec_types2.ResourceScrutinyType.EgressRuleResource]),
          ingressRuleResourceChanges: this.scrutinizableResourceChanges([import_service_spec_types2.ResourceScrutinyType.IngressRuleResource])
        });
      }
      get differenceCount() {
        let count = 0;
        if (this.awsTemplateFormatVersion !== void 0) {
          count += 1;
        }
        if (this.description !== void 0) {
          count += 1;
        }
        if (this.transform !== void 0) {
          count += 1;
        }
        count += this.conditions.differenceCount;
        count += this.mappings.differenceCount;
        count += this.metadata.differenceCount;
        count += this.outputs.differenceCount;
        count += this.parameters.differenceCount;
        count += this.resources.differenceCount;
        count += this.unknown.differenceCount;
        return count;
      }
      get isEmpty() {
        return this.differenceCount === 0;
      }
      /**
       * Return true if any of the permissions objects involve a broadening of permissions
       */
      get permissionsBroadened() {
        return this.iamChanges.permissionsBroadened || this.securityGroupChanges.rulesAdded;
      }
      /**
       * Return true if any of the permissions objects have changed
       */
      get permissionsAnyChanges() {
        return this.iamChanges.hasChanges || this.securityGroupChanges.hasChanges;
      }
      /**
       * Return all property changes of a given scrutiny type
       *
       * We don't just look at property updates; we also look at resource additions and deletions (in which
       * case there is no further detail on property values), and resource type changes.
       */
      scrutinizablePropertyChanges(scrutinyTypes) {
        const ret = new Array();
        for (const [resourceLogicalId, resourceChange] of Object.entries(this.resources.changes)) {
          if (resourceChange.resourceTypeChanged) {
            continue;
          }
          if (!resourceChange.resourceType) {
            continue;
          }
          const newTypeProps = loadResourceModel(resourceChange.resourceType)?.properties || {};
          for (const [propertyName, prop] of Object.entries(newTypeProps)) {
            const propScrutinyType = prop.scrutinizable || import_service_spec_types2.PropertyScrutinyType.None;
            if (scrutinyTypes.includes(propScrutinyType)) {
              ret.push({
                resourceLogicalId,
                propertyName,
                resourceType: resourceChange.resourceType,
                scrutinyType: propScrutinyType,
                oldValue: resourceChange.oldProperties?.[propertyName],
                newValue: resourceChange.newProperties?.[propertyName]
              });
            }
          }
        }
        return ret;
      }
      /**
       * Return all resource changes of a given scrutiny type
       *
       * We don't just look at resource updates; we also look at resource additions and deletions (in which
       * case there is no further detail on property values), and resource type changes.
       */
      scrutinizableResourceChanges(scrutinyTypes) {
        const ret = new Array();
        for (const [resourceLogicalId, resourceChange] of Object.entries(this.resources.changes)) {
          if (!resourceChange) {
            continue;
          }
          const commonProps = {
            oldProperties: resourceChange.oldProperties,
            newProperties: resourceChange.newProperties,
            resourceLogicalId
          };
          if (resourceChange.resourceTypeChanged) {
            if (resourceChange.oldResourceType) {
              const oldResourceModel = loadResourceModel(resourceChange.oldResourceType);
              if (oldResourceModel && this.resourceIsScrutinizable(oldResourceModel, scrutinyTypes)) {
                ret.push({
                  ...commonProps,
                  newProperties: void 0,
                  resourceType: resourceChange.oldResourceType,
                  scrutinyType: oldResourceModel.scrutinizable
                });
              }
            }
            if (resourceChange.newResourceType) {
              const newResourceModel = loadResourceModel(resourceChange.newResourceType);
              if (newResourceModel && this.resourceIsScrutinizable(newResourceModel, scrutinyTypes)) {
                ret.push({
                  ...commonProps,
                  oldProperties: void 0,
                  resourceType: resourceChange.newResourceType,
                  scrutinyType: newResourceModel.scrutinizable
                });
              }
            }
          } else {
            if (!resourceChange.resourceType) {
              continue;
            }
            const resourceModel = loadResourceModel(resourceChange.resourceType);
            if (resourceModel && this.resourceIsScrutinizable(resourceModel, scrutinyTypes)) {
              ret.push({
                ...commonProps,
                resourceType: resourceChange.resourceType,
                scrutinyType: resourceModel.scrutinizable
              });
            }
          }
        }
        return ret;
      }
      resourceIsScrutinizable(res, scrutinyTypes) {
        return scrutinyTypes.includes(res.scrutinizable || import_service_spec_types2.ResourceScrutinyType.None);
      }
    };
    Difference = class {
      /**
       * @param oldValue - the old value, cannot be equal (to the sense of +deepEqual+) to +newValue+.
       * @param newValue - the new value, cannot be equal (to the sense of +deepEqual+) to +oldValue+.
       */
      constructor(oldValue, newValue) {
        this.oldValue = oldValue;
        this.newValue = newValue;
        if (oldValue === void 0 && newValue === void 0) {
          throw new import_assert.AssertionError({ message: "oldValue and newValue are both undefined!" });
        }
        this.isDifferent = !deepEqual(oldValue, newValue);
      }
      static {
        __name(this, "Difference");
      }
      /** @returns +true+ if the element is new to the template. */
      get isAddition() {
        return this.oldValue === void 0;
      }
      /** @returns +true+ if the element was removed from the template. */
      get isRemoval() {
        return this.newValue === void 0;
      }
      /** @returns +true+ if the element was already in the template and is updated. */
      get isUpdate() {
        return this.oldValue !== void 0 && this.newValue !== void 0;
      }
    };
    PropertyDifference = class extends Difference {
      static {
        __name(this, "PropertyDifference");
      }
      constructor(oldValue, newValue, args) {
        super(oldValue, newValue);
        this.changeImpact = args.changeImpact;
      }
    };
    DifferenceCollection = class _DifferenceCollection {
      constructor(diffs) {
        this.diffs = diffs;
      }
      static {
        __name(this, "DifferenceCollection");
      }
      get changes() {
        return onlyChanges(this.diffs);
      }
      get differenceCount() {
        return Object.values(this.changes).length;
      }
      get(logicalId) {
        const ret = this.diffs[logicalId];
        if (!ret) {
          throw new Error(`No object with logical ID '${logicalId}'`);
        }
        return ret;
      }
      remove(logicalId) {
        delete this.diffs[logicalId];
      }
      get logicalIds() {
        return Object.keys(this.changes);
      }
      /**
       * Returns a new TemplateDiff which only contains changes for which `predicate`
       * returns `true`.
       */
      filter(predicate) {
        const newChanges = {};
        for (const id of Object.keys(this.changes)) {
          const diff = this.changes[id];
          if (predicate(diff)) {
            newChanges[id] = diff;
          }
        }
        return new _DifferenceCollection(newChanges);
      }
      /**
       * Invokes `cb` for all changes in this collection.
       *
       * Changes will be sorted as follows:
       *  - Removed
       *  - Added
       *  - Updated
       *  - Others
       *
       */
      forEachDifference(cb) {
        const removed = new Array();
        const added = new Array();
        const updated = new Array();
        const others = new Array();
        for (const logicalId of this.logicalIds) {
          const change = this.changes[logicalId];
          if (change.isAddition) {
            added.push({ logicalId, change });
          } else if (change.isRemoval) {
            removed.push({ logicalId, change });
          } else if (change.isUpdate) {
            updated.push({ logicalId, change });
          } else if (change.isDifferent) {
            others.push({ logicalId, change });
          }
        }
        removed.forEach((v6) => cb(v6.logicalId, v6.change));
        added.forEach((v6) => cb(v6.logicalId, v6.change));
        updated.forEach((v6) => cb(v6.logicalId, v6.change));
        others.forEach((v6) => cb(v6.logicalId, v6.change));
      }
    };
    ConditionDifference = class extends Difference {
      static {
        __name(this, "ConditionDifference");
      }
      // TODO: define specific difference attributes
    };
    MappingDifference = class extends Difference {
      static {
        __name(this, "MappingDifference");
      }
      // TODO: define specific difference attributes
    };
    MetadataDifference = class extends Difference {
      static {
        __name(this, "MetadataDifference");
      }
      // TODO: define specific difference attributes
    };
    OutputDifference = class extends Difference {
      static {
        __name(this, "OutputDifference");
      }
      // TODO: define specific difference attributes
    };
    ParameterDifference = class extends Difference {
      static {
        __name(this, "ParameterDifference");
      }
      // TODO: define specific difference attributes
    };
    ResourceImpact = /* @__PURE__ */ ((ResourceImpact2) => {
      ResourceImpact2["WILL_UPDATE"] = "WILL_UPDATE";
      ResourceImpact2["WILL_CREATE"] = "WILL_CREATE";
      ResourceImpact2["WILL_REPLACE"] = "WILL_REPLACE";
      ResourceImpact2["MAY_REPLACE"] = "MAY_REPLACE";
      ResourceImpact2["WILL_DESTROY"] = "WILL_DESTROY";
      ResourceImpact2["WILL_ORPHAN"] = "WILL_ORPHAN";
      ResourceImpact2["WILL_IMPORT"] = "WILL_IMPORT";
      ResourceImpact2["NO_CHANGE"] = "NO_CHANGE";
      return ResourceImpact2;
    })(ResourceImpact || {});
    __name(worstImpact, "worstImpact");
    ResourceDifference = class {
      constructor(oldValue, newValue, args) {
        this.oldValue = oldValue;
        this.newValue = newValue;
        this.resourceTypes = args.resourceType;
        this.propertyDiffs = args.propertyDiffs;
        this.otherDiffs = args.otherDiffs;
        this.isAddition = oldValue === void 0;
        this.isRemoval = newValue === void 0;
        this.isImport = void 0;
      }
      static {
        __name(this, "ResourceDifference");
      }
      get oldProperties() {
        return this.oldValue && this.oldValue.Properties;
      }
      get newProperties() {
        return this.newValue && this.newValue.Properties;
      }
      /**
       * Whether this resource was modified at all
       */
      get isDifferent() {
        return this.differenceCount > 0 || this.oldResourceType !== this.newResourceType;
      }
      /**
       * Whether the resource was updated in-place
       */
      get isUpdate() {
        return this.isDifferent && !this.isAddition && !this.isRemoval;
      }
      get oldResourceType() {
        return this.resourceTypes.oldType;
      }
      get newResourceType() {
        return this.resourceTypes.newType;
      }
      /**
       * All actual property updates
       */
      get propertyUpdates() {
        return onlyChanges(this.propertyDiffs);
      }
      /**
       * All actual "other" updates
       */
      get otherChanges() {
        return onlyChanges(this.otherDiffs);
      }
      /**
       * Return whether the resource type was changed in this diff
       *
       * This is not a valid operation in CloudFormation but to be defensive we're going
       * to be aware of it anyway.
       */
      get resourceTypeChanged() {
        return this.resourceTypes.oldType !== void 0 && this.resourceTypes.newType !== void 0 && this.resourceTypes.oldType !== this.resourceTypes.newType;
      }
      /**
       * Return the resource type if it was unchanged
       *
       * If the resource type was changed, it's an error to call this.
       */
      get resourceType() {
        if (this.resourceTypeChanged) {
          throw new Error("Cannot get .resourceType, because the type was changed");
        }
        return this.resourceTypes.oldType || this.resourceTypes.newType;
      }
      /**
       * Replace a PropertyChange in this object
       *
       * This affects the property diff as it is summarized to users, but it DOES
       * NOT affect either the "oldValue" or "newValue" values; those still contain
       * the actual template values as provided by the user (they might still be
       * used for downstream processing).
       */
      setPropertyChange(propertyName, change) {
        this.propertyDiffs[propertyName] = change;
      }
      /**
       * Replace a OtherChange in this object
       *
       * This affects the property diff as it is summarized to users, but it DOES
       * NOT affect either the "oldValue" or "newValue" values; those still contain
       * the actual template values as provided by the user (they might still be
       * used for downstream processing).
       */
      setOtherChange(otherName, change) {
        this.otherDiffs[otherName] = change;
      }
      get changeImpact() {
        if (this.isImport) {
          return "WILL_IMPORT" /* WILL_IMPORT */;
        }
        if (this.resourceTypes.oldType !== this.resourceTypes.newType) {
          if (this.resourceTypes.oldType === void 0) {
            return "WILL_CREATE" /* WILL_CREATE */;
          }
          if (this.resourceTypes.newType === void 0) {
            return this.oldValue.DeletionPolicy === "Retain" ? "WILL_ORPHAN" /* WILL_ORPHAN */ : "WILL_DESTROY" /* WILL_DESTROY */;
          }
          return "WILL_REPLACE" /* WILL_REPLACE */;
        }
        const baseImpact = Object.keys(this.otherChanges).length > 0 ? "WILL_UPDATE" /* WILL_UPDATE */ : "NO_CHANGE" /* NO_CHANGE */;
        return Object.values(this.propertyDiffs).map((elt) => elt.changeImpact).reduce(worstImpact, baseImpact);
      }
      /**
       * Count of actual differences (not of elements)
       */
      get differenceCount() {
        return Object.values(this.propertyUpdates).length + Object.values(this.otherChanges).length;
      }
      /**
       * Invoke a callback for each actual difference
       */
      forEachDifference(cb) {
        for (const key of Object.keys(this.propertyUpdates).sort()) {
          cb("Property", key, this.propertyUpdates[key]);
        }
        for (const key of Object.keys(this.otherChanges).sort()) {
          cb("Other", key, this.otherDiffs[key]);
        }
      }
    };
    __name(isPropertyDifference, "isPropertyDifference");
    __name(onlyChanges, "onlyChanges");
  }
});

// ../@aws-cdk/cloudformation-diff/lib/diff/index.ts
function diffAttribute(oldValue, newValue) {
  return new Difference(_asString(oldValue), _asString(newValue));
}
function diffCondition(oldValue, newValue) {
  return new ConditionDifference(oldValue, newValue);
}
function diffMapping(oldValue, newValue) {
  return new MappingDifference(oldValue, newValue);
}
function diffMetadata(oldValue, newValue) {
  return new MetadataDifference(oldValue, newValue);
}
function diffOutput(oldValue, newValue) {
  return new OutputDifference(oldValue, newValue);
}
function diffParameter(oldValue, newValue) {
  return new ParameterDifference(oldValue, newValue);
}
function diffResource(oldValue, newValue) {
  const resourceType = {
    oldType: oldValue && oldValue.Type,
    newType: newValue && newValue.Type
  };
  let propertyDiffs = {};
  let otherDiffs = {};
  if (resourceType.oldType !== void 0 && resourceType.oldType === resourceType.newType) {
    const impl = loadResourceModel(resourceType.oldType);
    propertyDiffs = diffKeyedEntities(
      oldValue.Properties,
      newValue.Properties,
      (oldVal, newVal, key) => _diffProperty(oldVal, newVal, key, impl)
    );
    otherDiffs = diffKeyedEntities(oldValue, newValue, _diffOther);
    delete otherDiffs.Properties;
  }
  return new ResourceDifference(oldValue, newValue, {
    resourceType,
    propertyDiffs,
    otherDiffs
  });
  function _diffProperty(oldV, newV, key, resourceSpec) {
    let changeImpact = "NO_CHANGE" /* NO_CHANGE */;
    const spec = resourceSpec?.properties?.[key];
    if (spec && !deepEqual(oldV, newV)) {
      switch (spec.causesReplacement) {
        case "yes":
          changeImpact = "WILL_REPLACE" /* WILL_REPLACE */;
          break;
        case "maybe":
          changeImpact = "MAY_REPLACE" /* MAY_REPLACE */;
          break;
        default:
          changeImpact = "WILL_UPDATE" /* WILL_UPDATE */;
      }
    }
    return new PropertyDifference(oldV, newV, { changeImpact });
  }
  __name(_diffProperty, "_diffProperty");
  function _diffOther(oldV, newV) {
    return new Difference(oldV, newV);
  }
  __name(_diffOther, "_diffOther");
}
function diffUnknown(oldValue, newValue) {
  return new Difference(oldValue, newValue);
}
function _asString(value) {
  if (value == null) {
    return void 0;
  }
  if (typeof value === "string") {
    return value;
  }
  return JSON.stringify(value);
}
var init_diff = __esm({
  "../@aws-cdk/cloudformation-diff/lib/diff/index.ts"() {
    "use strict";
    init_types4();
    init_util4();
    __name(diffAttribute, "diffAttribute");
    __name(diffCondition, "diffCondition");
    __name(diffMapping, "diffMapping");
    __name(diffMetadata, "diffMetadata");
    __name(diffOutput, "diffOutput");
    __name(diffParameter, "diffParameter");
    __name(diffResource, "diffResource");
    __name(diffUnknown, "diffUnknown");
    __name(_asString, "_asString");
  }
});

// ../@aws-cdk/cloudformation-diff/lib/diff/template-and-changeset-diff-merger.ts
var TemplateAndChangeSetDiffMerger;
var init_template_and_changeset_diff_merger = __esm({
  "../@aws-cdk/cloudformation-diff/lib/diff/template-and-changeset-diff-merger.ts"() {
    "use strict";
    init_types4();
    TemplateAndChangeSetDiffMerger = class _TemplateAndChangeSetDiffMerger {
      static {
        __name(this, "TemplateAndChangeSetDiffMerger");
      }
      static determineChangeSetReplacementMode(propertyChange) {
        if (propertyChange.Target?.RequiresRecreation === void 0) {
          return "Conditionally";
        }
        if (propertyChange.Target.RequiresRecreation === "Always") {
          switch (propertyChange.Evaluation) {
            case "Static":
              return "Always";
            case "Dynamic":
              return "Conditionally";
          }
        }
        return propertyChange.Target.RequiresRecreation;
      }
      static {
        // If we somehow cannot find the resourceType, then we'll mark it as UNKNOWN, so that can be seen in the diff.
        this.UNKNOWN_RESOURCE_TYPE = "UNKNOWN_RESOURCE_TYPE";
      }
      constructor(props) {
        this.changeSet = props.changeSet;
        this.changeSetResources = props.changeSetResources ?? this.convertDescribeChangeSetOutputToChangeSetResources(this.changeSet);
      }
      /**
       * Read resources from the changeSet, extracting information into ChangeSetResources.
       */
      convertDescribeChangeSetOutputToChangeSetResources(changeSet) {
        const changeSetResources = {};
        for (const resourceChange of changeSet.Changes ?? []) {
          if (resourceChange.ResourceChange?.LogicalResourceId === void 0) {
            continue;
          }
          const propertyReplacementModes = {};
          for (const propertyChange of resourceChange.ResourceChange.Details ?? []) {
            if (propertyChange.Target?.Attribute === "Properties" && propertyChange.Target.Name) {
              propertyReplacementModes[propertyChange.Target.Name] = {
                replacementMode: _TemplateAndChangeSetDiffMerger.determineChangeSetReplacementMode(propertyChange)
              };
            }
          }
          changeSetResources[resourceChange.ResourceChange.LogicalResourceId] = {
            resourceWasReplaced: resourceChange.ResourceChange.Replacement === "True",
            resourceType: resourceChange.ResourceChange.ResourceType ?? _TemplateAndChangeSetDiffMerger.UNKNOWN_RESOURCE_TYPE,
            // DescribeChangeSet doesn't promise to have the ResourceType...
            propertyReplacementModes
          };
        }
        return changeSetResources;
      }
      /**
       * This is writing over the "ChangeImpact" that was computed from the template difference, and instead using the ChangeImpact that is included from the ChangeSet.
       * Using the ChangeSet ChangeImpact is more accurate. The ChangeImpact tells us what the consequence is of changing the field. If changing the field causes resource
       * replacement (e.g., changing the name of an IAM role requires deleting and replacing the role), then ChangeImpact is "Always".
       */
      overrideDiffResourceChangeImpactWithChangeSetChangeImpact(logicalId, change) {
        if (change.resourceTypeChanged === true || change.resourceType?.includes("AWS::Serverless")) {
          return;
        }
        change.forEachDifference((type, name, value) => {
          if (type === "Property") {
            if (!this.changeSetResources[logicalId]) {
              value.changeImpact = "NO_CHANGE" /* NO_CHANGE */;
              value.isDifferent = false;
              return;
            }
            const changingPropertyCausesResourceReplacement = (this.changeSetResources[logicalId].propertyReplacementModes ?? {})[name]?.replacementMode;
            switch (changingPropertyCausesResourceReplacement) {
              case "Always":
                value.changeImpact = "WILL_REPLACE" /* WILL_REPLACE */;
                break;
              case "Never":
                value.changeImpact = "WILL_UPDATE" /* WILL_UPDATE */;
                break;
              case "Conditionally":
                value.changeImpact = "MAY_REPLACE" /* MAY_REPLACE */;
                break;
              case void 0:
                value.changeImpact = "NO_CHANGE" /* NO_CHANGE */;
                value.isDifferent = false;
                break;
            }
          } else if (type === "Other") {
            switch (name) {
              case "Metadata":
                change.setOtherChange("Metadata", new Difference(value.newValue, value.newValue));
                break;
            }
          }
        });
      }
      addImportInformationFromChangeset(resourceDiffs) {
        const imports = this.findResourceImports();
        resourceDiffs.forEachDifference((logicalId, change) => {
          if (imports.includes(logicalId)) {
            change.isImport = true;
          }
        });
      }
      findResourceImports() {
        const importedResourceLogicalIds = [];
        for (const resourceChange of this.changeSet?.Changes ?? []) {
          if (resourceChange.ResourceChange?.Action === "Import") {
            importedResourceLogicalIds.push(resourceChange.ResourceChange.LogicalResourceId);
          }
        }
        return importedResourceLogicalIds;
      }
    };
  }
});

// ../@aws-cdk/cloudformation-diff/lib/diff-template.ts
var diff_template_exports = {};
__export(diff_template_exports, {
  ConditionDifference: () => ConditionDifference,
  Difference: () => Difference,
  DifferenceCollection: () => DifferenceCollection,
  MappingDifference: () => MappingDifference,
  MetadataDifference: () => MetadataDifference,
  OutputDifference: () => OutputDifference,
  ParameterDifference: () => ParameterDifference,
  PropertyDifference: () => PropertyDifference,
  ResourceDifference: () => ResourceDifference,
  ResourceImpact: () => ResourceImpact,
  TemplateDiff: () => TemplateDiff,
  diffTemplate: () => diffTemplate,
  fullDiff: () => fullDiff,
  isPropertyDifference: () => isPropertyDifference
});
function fullDiff(currentTemplate, newTemplate, changeSet, isImport) {
  normalize2(currentTemplate);
  normalize2(newTemplate);
  const theDiff = diffTemplate(currentTemplate, newTemplate);
  if (changeSet) {
    const changeSetDiff2 = new TemplateAndChangeSetDiffMerger({ changeSet });
    theDiff.resources.forEachDifference(
      (logicalId, change) => changeSetDiff2.overrideDiffResourceChangeImpactWithChangeSetChangeImpact(logicalId, change)
    );
    changeSetDiff2.addImportInformationFromChangeset(theDiff.resources);
  } else if (isImport) {
    makeAllResourceChangesImports(theDiff);
  }
  return theDiff;
}
function diffTemplate(currentTemplate, newTemplate) {
  const theDiff = calculateTemplateDiff(currentTemplate, newTemplate);
  const newTemplateCopy = deepCopy(newTemplate);
  let didPropagateReferenceChanges;
  let diffWithReplacements;
  do {
    diffWithReplacements = calculateTemplateDiff(currentTemplate, newTemplateCopy);
    didPropagateReferenceChanges = false;
    if (diffWithReplacements.resources) {
      diffWithReplacements.resources.forEachDifference((logicalId, change) => {
        if (change.changeImpact === "WILL_REPLACE" /* WILL_REPLACE */) {
          if (propagateReplacedReferences(newTemplateCopy, logicalId)) {
            didPropagateReferenceChanges = true;
          }
        }
      });
    }
  } while (didPropagateReferenceChanges);
  diffWithReplacements.resources.filter((r3) => isReplacement(r3.changeImpact)).forEachDifference((logicalId, downstreamReplacement) => {
    const resource = theDiff.resources.get(logicalId);
    if (resource.changeImpact !== downstreamReplacement.changeImpact) {
      propagatePropertyReplacement(downstreamReplacement, resource);
    }
  });
  return theDiff;
}
function isReplacement(impact) {
  return impact === "MAY_REPLACE" /* MAY_REPLACE */ || impact === "WILL_REPLACE" /* WILL_REPLACE */;
}
function propagatePropertyReplacement(source, dest) {
  for (const [propertyName, diff] of Object.entries(source.propertyUpdates)) {
    if (diff.changeImpact && isReplacement(diff.changeImpact)) {
      dest.setPropertyChange(propertyName, diff);
    }
  }
}
function calculateTemplateDiff(currentTemplate, newTemplate) {
  const differences = {};
  const unknown = {};
  for (const key of unionOf(Object.keys(currentTemplate), Object.keys(newTemplate)).sort()) {
    const oldValue = currentTemplate[key];
    const newValue = newTemplate[key];
    if (deepEqual(oldValue, newValue)) {
      continue;
    }
    const handler = DIFF_HANDLERS[key] || ((_diff, oldV, newV) => unknown[key] = diffUnknown(oldV, newV));
    handler(differences, oldValue, newValue);
  }
  if (Object.keys(unknown).length > 0) {
    differences.unknown = new DifferenceCollection(unknown);
  }
  return new TemplateDiff(differences);
}
function propagateReplacedReferences(template, logicalId) {
  let ret = false;
  function recurse(obj) {
    if (Array.isArray(obj)) {
      obj.forEach(recurse);
    }
    if (typeof obj === "object" && obj !== null) {
      if (!replaceReference(obj)) {
        Object.values(obj).forEach(recurse);
      }
    }
  }
  __name(recurse, "recurse");
  function replaceReference(obj) {
    const keys = Object.keys(obj);
    if (keys.length !== 1) {
      return false;
    }
    const key = keys[0];
    if (key === "Ref") {
      if (obj.Ref === logicalId) {
        obj.Ref = logicalId + " (replaced)";
        ret = true;
      }
      return true;
    }
    if (key.startsWith("Fn::")) {
      if (Array.isArray(obj[key]) && obj[key].length > 0 && obj[key][0] === logicalId) {
        obj[key][0] = logicalId + "(replaced)";
        ret = true;
      }
      return true;
    }
    return false;
  }
  __name(replaceReference, "replaceReference");
  recurse(template);
  return ret;
}
function deepCopy(x3) {
  if (Array.isArray(x3)) {
    return x3.map(deepCopy);
  }
  if (typeof x3 === "object" && x3 !== null) {
    const ret = {};
    for (const key of Object.keys(x3)) {
      ret[key] = deepCopy(x3[key]);
    }
    return ret;
  }
  return x3;
}
function makeAllResourceChangesImports(diff) {
  diff.resources.forEachDifference((_logicalId, change) => {
    change.isImport = true;
  });
}
function normalize2(template) {
  if (typeof template === "object") {
    for (const key of Object.keys(template ?? {})) {
      if (key === "Fn::GetAtt" && typeof template[key] === "string") {
        template[key] = template[key].split(".");
        continue;
      } else if (key === "DependsOn") {
        if (typeof template[key] === "string") {
          template[key] = [template[key]];
        } else if (Array.isArray(template[key])) {
          template[key] = template[key].sort();
        }
        continue;
      }
      if (Array.isArray(template[key])) {
        for (const element of template[key]) {
          normalize2(element);
        }
      } else {
        normalize2(template[key]);
      }
    }
  }
}
var DIFF_HANDLERS;
var init_diff_template = __esm({
  "../@aws-cdk/cloudformation-diff/lib/diff-template.ts"() {
    "use strict";
    init_diff();
    init_template_and_changeset_diff_merger();
    init_types4();
    init_util4();
    init_types4();
    DIFF_HANDLERS = {
      AWSTemplateFormatVersion: /* @__PURE__ */ __name((diff, oldValue, newValue) => diff.awsTemplateFormatVersion = diffAttribute(oldValue, newValue), "AWSTemplateFormatVersion"),
      Description: /* @__PURE__ */ __name((diff, oldValue, newValue) => diff.description = diffAttribute(oldValue, newValue), "Description"),
      Metadata: /* @__PURE__ */ __name((diff, oldValue, newValue) => diff.metadata = new DifferenceCollection(diffKeyedEntities(oldValue, newValue, diffMetadata)), "Metadata"),
      Parameters: /* @__PURE__ */ __name((diff, oldValue, newValue) => diff.parameters = new DifferenceCollection(diffKeyedEntities(oldValue, newValue, diffParameter)), "Parameters"),
      Mappings: /* @__PURE__ */ __name((diff, oldValue, newValue) => diff.mappings = new DifferenceCollection(diffKeyedEntities(oldValue, newValue, diffMapping)), "Mappings"),
      Conditions: /* @__PURE__ */ __name((diff, oldValue, newValue) => diff.conditions = new DifferenceCollection(diffKeyedEntities(oldValue, newValue, diffCondition)), "Conditions"),
      Transform: /* @__PURE__ */ __name((diff, oldValue, newValue) => diff.transform = diffAttribute(oldValue, newValue), "Transform"),
      Resources: /* @__PURE__ */ __name((diff, oldValue, newValue) => diff.resources = new DifferenceCollection(diffKeyedEntities(oldValue, newValue, diffResource)), "Resources"),
      Outputs: /* @__PURE__ */ __name((diff, oldValue, newValue) => diff.outputs = new DifferenceCollection(diffKeyedEntities(oldValue, newValue, diffOutput)), "Outputs")
    };
    __name(fullDiff, "fullDiff");
    __name(diffTemplate, "diffTemplate");
    __name(isReplacement, "isReplacement");
    __name(propagatePropertyReplacement, "propagatePropertyReplacement");
    __name(calculateTemplateDiff, "calculateTemplateDiff");
    __name(propagateReplacedReferences, "propagateReplacedReferences");
    __name(deepCopy, "deepCopy");
    __name(makeAllResourceChangesImports, "makeAllResourceChangesImports");
    __name(normalize2, "normalize");
  }
});

// ../../node_modules/ansi-regex/index.js
var require_ansi_regex = __commonJS({
  "../../node_modules/ansi-regex/index.js"(exports2, module2) {
    "use strict";
    module2.exports = ({ onlyFirst = false } = {}) => {
      const pattern = [
        "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
        "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
      ].join("|");
      return new RegExp(pattern, onlyFirst ? void 0 : "g");
    };
  }
});

// ../../node_modules/strip-ansi/index.js
var require_strip_ansi = __commonJS({
  "../../node_modules/strip-ansi/index.js"(exports2, module2) {
    "use strict";
    var ansiRegex = require_ansi_regex();
    module2.exports = (string) => typeof string === "string" ? string.replace(ansiRegex(), "") : string;
  }
});

// ../../node_modules/is-fullwidth-code-point/index.js
var require_is_fullwidth_code_point = __commonJS({
  "../../node_modules/is-fullwidth-code-point/index.js"(exports2, module2) {
    "use strict";
    var isFullwidthCodePoint = /* @__PURE__ */ __name((codePoint) => {
      if (Number.isNaN(codePoint)) {
        return false;
      }
      if (codePoint >= 4352 && (codePoint <= 4447 || // Hangul Jamo
      codePoint === 9001 || // LEFT-POINTING ANGLE BRACKET
      codePoint === 9002 || // RIGHT-POINTING ANGLE BRACKET
      // CJK Radicals Supplement .. Enclosed CJK Letters and Months
      11904 <= codePoint && codePoint <= 12871 && codePoint !== 12351 || // Enclosed CJK Letters and Months .. CJK Unified Ideographs Extension A
      12880 <= codePoint && codePoint <= 19903 || // CJK Unified Ideographs .. Yi Radicals
      19968 <= codePoint && codePoint <= 42182 || // Hangul Jamo Extended-A
      43360 <= codePoint && codePoint <= 43388 || // Hangul Syllables
      44032 <= codePoint && codePoint <= 55203 || // CJK Compatibility Ideographs
      63744 <= codePoint && codePoint <= 64255 || // Vertical Forms
      65040 <= codePoint && codePoint <= 65049 || // CJK Compatibility Forms .. Small Form Variants
      65072 <= codePoint && codePoint <= 65131 || // Halfwidth and Fullwidth Forms
      65281 <= codePoint && codePoint <= 65376 || 65504 <= codePoint && codePoint <= 65510 || // Kana Supplement
      110592 <= codePoint && codePoint <= 110593 || // Enclosed Ideographic Supplement
      127488 <= codePoint && codePoint <= 127569 || // CJK Unified Ideographs Extension B .. Tertiary Ideographic Plane
      131072 <= codePoint && codePoint <= 262141)) {
        return true;
      }
      return false;
    }, "isFullwidthCodePoint");
    module2.exports = isFullwidthCodePoint;
    module2.exports.default = isFullwidthCodePoint;
  }
});

// ../../node_modules/emoji-regex/index.js
var require_emoji_regex = __commonJS({
  "../../node_modules/emoji-regex/index.js"(exports2, module2) {
    "use strict";
    module2.exports = function() {
      return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
    };
  }
});

// ../../node_modules/string-width/index.js
var require_string_width = __commonJS({
  "../../node_modules/string-width/index.js"(exports2, module2) {
    "use strict";
    var stripAnsi2 = require_strip_ansi();
    var isFullwidthCodePoint = require_is_fullwidth_code_point();
    var emojiRegex = require_emoji_regex();
    var stringWidth2 = /* @__PURE__ */ __name((string) => {
      if (typeof string !== "string" || string.length === 0) {
        return 0;
      }
      string = stripAnsi2(string);
      if (string.length === 0) {
        return 0;
      }
      string = string.replace(emojiRegex(), "  ");
      let width = 0;
      for (let i3 = 0; i3 < string.length; i3++) {
        const code = string.codePointAt(i3);
        if (code <= 31 || code >= 127 && code <= 159) {
          continue;
        }
        if (code >= 768 && code <= 879) {
          continue;
        }
        if (code > 65535) {
          i3++;
        }
        width += isFullwidthCodePoint(code) ? 2 : 1;
      }
      return width;
    }, "stringWidth");
    module2.exports = stringWidth2;
    module2.exports.default = stringWidth2;
  }
});

// ../../node_modules/astral-regex/index.js
var require_astral_regex = __commonJS({
  "../../node_modules/astral-regex/index.js"(exports2, module2) {
    "use strict";
    var regex = "[\uD800-\uDBFF][\uDC00-\uDFFF]";
    var astralRegex = /* @__PURE__ */ __name((options) => options && options.exact ? new RegExp(`^${regex}$`) : new RegExp(regex, "g"), "astralRegex");
    module2.exports = astralRegex;
  }
});

// ../../node_modules/slice-ansi/index.js
var require_slice_ansi = __commonJS({
  "../../node_modules/slice-ansi/index.js"(exports2, module2) {
    "use strict";
    var isFullwidthCodePoint = require_is_fullwidth_code_point();
    var astralRegex = require_astral_regex();
    var ansiStyles = require_ansi_styles();
    var ESCAPES = [
      "\x1B",
      "\x9B"
    ];
    var wrapAnsi2 = /* @__PURE__ */ __name((code) => `${ESCAPES[0]}[${code}m`, "wrapAnsi");
    var checkAnsi = /* @__PURE__ */ __name((ansiCodes, isEscapes, endAnsiCode) => {
      let output = [];
      ansiCodes = [...ansiCodes];
      for (let ansiCode of ansiCodes) {
        const ansiCodeOrigin = ansiCode;
        if (ansiCode.includes(";")) {
          ansiCode = ansiCode.split(";")[0][0] + "0";
        }
        const item = ansiStyles.codes.get(Number.parseInt(ansiCode, 10));
        if (item) {
          const indexEscape = ansiCodes.indexOf(item.toString());
          if (indexEscape === -1) {
            output.push(wrapAnsi2(isEscapes ? item : ansiCodeOrigin));
          } else {
            ansiCodes.splice(indexEscape, 1);
          }
        } else if (isEscapes) {
          output.push(wrapAnsi2(0));
          break;
        } else {
          output.push(wrapAnsi2(ansiCodeOrigin));
        }
      }
      if (isEscapes) {
        output = output.filter((element, index) => output.indexOf(element) === index);
        if (endAnsiCode !== void 0) {
          const fistEscapeCode = wrapAnsi2(ansiStyles.codes.get(Number.parseInt(endAnsiCode, 10)));
          output = output.reduce((current, next) => next === fistEscapeCode ? [next, ...current] : [...current, next], []);
        }
      }
      return output.join("");
    }, "checkAnsi");
    module2.exports = (string, begin, end) => {
      const characters = [...string];
      const ansiCodes = [];
      let stringEnd = typeof end === "number" ? end : characters.length;
      let isInsideEscape = false;
      let ansiCode;
      let visible = 0;
      let output = "";
      for (const [index, character] of characters.entries()) {
        let leftEscape = false;
        if (ESCAPES.includes(character)) {
          const code = /\d[^m]*/.exec(string.slice(index, index + 18));
          ansiCode = code && code.length > 0 ? code[0] : void 0;
          if (visible < stringEnd) {
            isInsideEscape = true;
            if (ansiCode !== void 0) {
              ansiCodes.push(ansiCode);
            }
          }
        } else if (isInsideEscape && character === "m") {
          isInsideEscape = false;
          leftEscape = true;
        }
        if (!isInsideEscape && !leftEscape) {
          visible++;
        }
        if (!astralRegex({ exact: true }).test(character) && isFullwidthCodePoint(character.codePointAt())) {
          visible++;
          if (typeof end !== "number") {
            stringEnd++;
          }
        }
        if (visible > begin && visible <= stringEnd) {
          output += character;
        } else if (visible === begin && !isInsideEscape && ansiCode !== void 0) {
          output = checkAnsi(ansiCodes);
        } else if (visible >= stringEnd) {
          output += checkAnsi(ansiCodes, true, ansiCode);
          break;
        }
      }
      return output;
    };
  }
});

// ../../node_modules/table/dist/src/getBorderCharacters.js
var require_getBorderCharacters = __commonJS({
  "../../node_modules/table/dist/src/getBorderCharacters.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.getBorderCharacters = void 0;
    var getBorderCharacters = /* @__PURE__ */ __name((name) => {
      if (name === "honeywell") {
        return {
          topBody: "\u2550",
          topJoin: "\u2564",
          topLeft: "\u2554",
          topRight: "\u2557",
          bottomBody: "\u2550",
          bottomJoin: "\u2567",
          bottomLeft: "\u255A",
          bottomRight: "\u255D",
          bodyLeft: "\u2551",
          bodyRight: "\u2551",
          bodyJoin: "\u2502",
          headerJoin: "\u252C",
          joinBody: "\u2500",
          joinLeft: "\u255F",
          joinRight: "\u2562",
          joinJoin: "\u253C",
          joinMiddleDown: "\u252C",
          joinMiddleUp: "\u2534",
          joinMiddleLeft: "\u2524",
          joinMiddleRight: "\u251C"
        };
      }
      if (name === "norc") {
        return {
          topBody: "\u2500",
          topJoin: "\u252C",
          topLeft: "\u250C",
          topRight: "\u2510",
          bottomBody: "\u2500",
          bottomJoin: "\u2534",
          bottomLeft: "\u2514",
          bottomRight: "\u2518",
          bodyLeft: "\u2502",
          bodyRight: "\u2502",
          bodyJoin: "\u2502",
          headerJoin: "\u252C",
          joinBody: "\u2500",
          joinLeft: "\u251C",
          joinRight: "\u2524",
          joinJoin: "\u253C",
          joinMiddleDown: "\u252C",
          joinMiddleUp: "\u2534",
          joinMiddleLeft: "\u2524",
          joinMiddleRight: "\u251C"
        };
      }
      if (name === "ramac") {
        return {
          topBody: "-",
          topJoin: "+",
          topLeft: "+",
          topRight: "+",
          bottomBody: "-",
          bottomJoin: "+",
          bottomLeft: "+",
          bottomRight: "+",
          bodyLeft: "|",
          bodyRight: "|",
          bodyJoin: "|",
          headerJoin: "+",
          joinBody: "-",
          joinLeft: "|",
          joinRight: "|",
          joinJoin: "|",
          joinMiddleDown: "+",
          joinMiddleUp: "+",
          joinMiddleLeft: "+",
          joinMiddleRight: "+"
        };
      }
      if (name === "void") {
        return {
          topBody: "",
          topJoin: "",
          topLeft: "",
          topRight: "",
          bottomBody: "",
          bottomJoin: "",
          bottomLeft: "",
          bottomRight: "",
          bodyLeft: "",
          bodyRight: "",
          bodyJoin: "",
          headerJoin: "",
          joinBody: "",
          joinLeft: "",
          joinRight: "",
          joinJoin: "",
          joinMiddleDown: "",
          joinMiddleUp: "",
          joinMiddleLeft: "",
          joinMiddleRight: ""
        };
      }
      throw new Error('Unknown border template "' + name + '".');
    }, "getBorderCharacters");
    exports2.getBorderCharacters = getBorderCharacters;
  }
});

// ../../node_modules/table/dist/src/utils.js
var require_utils6 = __commonJS({
  "../../node_modules/table/dist/src/utils.js"(exports2) {
    "use strict";
    var __importDefault2 = exports2 && exports2.__importDefault || function(mod) {
      return mod && mod.__esModule ? mod : { "default": mod };
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.isCellInRange = exports2.areCellEqual = exports2.calculateRangeCoordinate = exports2.flatten = exports2.extractTruncates = exports2.sumArray = exports2.sequence = exports2.distributeUnevenly = exports2.countSpaceSequence = exports2.groupBySizes = exports2.makeBorderConfig = exports2.splitAnsi = exports2.normalizeString = void 0;
    var slice_ansi_1 = __importDefault2(require_slice_ansi());
    var string_width_1 = __importDefault2(require_string_width());
    var strip_ansi_1 = __importDefault2(require_strip_ansi());
    var getBorderCharacters_1 = require_getBorderCharacters();
    var normalizeString = /* @__PURE__ */ __name((input) => {
      return input.replace(/\r\n/g, "\n");
    }, "normalizeString");
    exports2.normalizeString = normalizeString;
    var splitAnsi = /* @__PURE__ */ __name((input) => {
      const lengths = (0, strip_ansi_1.default)(input).split("\n").map(string_width_1.default);
      const result2 = [];
      let startIndex = 0;
      lengths.forEach((length) => {
        result2.push(length === 0 ? "" : (0, slice_ansi_1.default)(input, startIndex, startIndex + length));
        startIndex += length + 1;
      });
      return result2;
    }, "splitAnsi");
    exports2.splitAnsi = splitAnsi;
    var makeBorderConfig = /* @__PURE__ */ __name((border) => {
      return {
        ...(0, getBorderCharacters_1.getBorderCharacters)("honeywell"),
        ...border
      };
    }, "makeBorderConfig");
    exports2.makeBorderConfig = makeBorderConfig;
    var groupBySizes = /* @__PURE__ */ __name((array, sizes) => {
      let startIndex = 0;
      return sizes.map((size) => {
        const group = array.slice(startIndex, startIndex + size);
        startIndex += size;
        return group;
      });
    }, "groupBySizes");
    exports2.groupBySizes = groupBySizes;
    var countSpaceSequence = /* @__PURE__ */ __name((input) => {
      var _a2, _b;
      return (_b = (_a2 = input.match(/\s+/g)) === null || _a2 === void 0 ? void 0 : _a2.length) !== null && _b !== void 0 ? _b : 0;
    }, "countSpaceSequence");
    exports2.countSpaceSequence = countSpaceSequence;
    var distributeUnevenly = /* @__PURE__ */ __name((sum3, length) => {
      const result2 = Array.from({ length }).fill(Math.floor(sum3 / length));
      return result2.map((element, index) => {
        return element + (index < sum3 % length ? 1 : 0);
      });
    }, "distributeUnevenly");
    exports2.distributeUnevenly = distributeUnevenly;
    var sequence = /* @__PURE__ */ __name((start, end) => {
      return Array.from({ length: end - start + 1 }, (_3, index) => {
        return index + start;
      });
    }, "sequence");
    exports2.sequence = sequence;
    var sumArray = /* @__PURE__ */ __name((array) => {
      return array.reduce((accumulator, element) => {
        return accumulator + element;
      }, 0);
    }, "sumArray");
    exports2.sumArray = sumArray;
    var extractTruncates = /* @__PURE__ */ __name((config) => {
      return config.columns.map(({ truncate }) => {
        return truncate;
      });
    }, "extractTruncates");
    exports2.extractTruncates = extractTruncates;
    var flatten3 = /* @__PURE__ */ __name((array) => {
      return [].concat(...array);
    }, "flatten");
    exports2.flatten = flatten3;
    var calculateRangeCoordinate = /* @__PURE__ */ __name((spanningCellConfig) => {
      const { row, col, colSpan = 1, rowSpan = 1 } = spanningCellConfig;
      return {
        bottomRight: {
          col: col + colSpan - 1,
          row: row + rowSpan - 1
        },
        topLeft: {
          col,
          row
        }
      };
    }, "calculateRangeCoordinate");
    exports2.calculateRangeCoordinate = calculateRangeCoordinate;
    var areCellEqual = /* @__PURE__ */ __name((cell1, cell2) => {
      return cell1.row === cell2.row && cell1.col === cell2.col;
    }, "areCellEqual");
    exports2.areCellEqual = areCellEqual;
    var isCellInRange = /* @__PURE__ */ __name((cell, { topLeft, bottomRight }) => {
      return topLeft.row <= cell.row && cell.row <= bottomRight.row && topLeft.col <= cell.col && cell.col <= bottomRight.col;
    }, "isCellInRange");
    exports2.isCellInRange = isCellInRange;
  }
});

// ../../node_modules/table/dist/src/alignString.js
var require_alignString = __commonJS({
  "../../node_modules/table/dist/src/alignString.js"(exports2) {
    "use strict";
    var __importDefault2 = exports2 && exports2.__importDefault || function(mod) {
      return mod && mod.__esModule ? mod : { "default": mod };
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.alignString = void 0;
    var string_width_1 = __importDefault2(require_string_width());
    var utils_1 = require_utils6();
    var alignLeft = /* @__PURE__ */ __name((subject, width) => {
      return subject + " ".repeat(width);
    }, "alignLeft");
    var alignRight = /* @__PURE__ */ __name((subject, width) => {
      return " ".repeat(width) + subject;
    }, "alignRight");
    var alignCenter = /* @__PURE__ */ __name((subject, width) => {
      return " ".repeat(Math.floor(width / 2)) + subject + " ".repeat(Math.ceil(width / 2));
    }, "alignCenter");
    var alignJustify = /* @__PURE__ */ __name((subject, width) => {
      const spaceSequenceCount = (0, utils_1.countSpaceSequence)(subject);
      if (spaceSequenceCount === 0) {
        return alignLeft(subject, width);
      }
      const addingSpaces = (0, utils_1.distributeUnevenly)(width, spaceSequenceCount);
      if (Math.max(...addingSpaces) > 3) {
        return alignLeft(subject, width);
      }
      let spaceSequenceIndex = 0;
      return subject.replace(/\s+/g, (groupSpace) => {
        return groupSpace + " ".repeat(addingSpaces[spaceSequenceIndex++]);
      });
    }, "alignJustify");
    var alignString = /* @__PURE__ */ __name((subject, containerWidth, alignment) => {
      const subjectWidth = (0, string_width_1.default)(subject);
      if (subjectWidth === containerWidth) {
        return subject;
      }
      if (subjectWidth > containerWidth) {
        throw new Error("Subject parameter value width cannot be greater than the container width.");
      }
      if (subjectWidth === 0) {
        return " ".repeat(containerWidth);
      }
      const availableWidth = containerWidth - subjectWidth;
      if (alignment === "left") {
        return alignLeft(subject, availableWidth);
      }
      if (alignment === "right") {
        return alignRight(subject, availableWidth);
      }
      if (alignment === "justify") {
        return alignJustify(subject, availableWidth);
      }
      return alignCenter(subject, availableWidth);
    }, "alignString");
    exports2.alignString = alignString;
  }
});

// ../../node_modules/table/dist/src/alignTableData.js
var require_alignTableData = __commonJS({
  "../../node_modules/table/dist/src/alignTableData.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.alignTableData = void 0;
    var alignString_1 = require_alignString();
    var alignTableData = /* @__PURE__ */ __name((rows, config) => {
      return rows.map((row, rowIndex) => {
        return row.map((cell, cellIndex) => {
          var _a2;
          const { width, alignment } = config.columns[cellIndex];
          const containingRange = (_a2 = config.spanningCellManager) === null || _a2 === void 0 ? void 0 : _a2.getContainingRange({
            col: cellIndex,
            row: rowIndex
          }, { mapped: true });
          if (containingRange) {
            return cell;
          }
          return (0, alignString_1.alignString)(cell, width, alignment);
        });
      });
    }, "alignTableData");
    exports2.alignTableData = alignTableData;
  }
});

// ../../node_modules/table/dist/src/wrapString.js
var require_wrapString = __commonJS({
  "../../node_modules/table/dist/src/wrapString.js"(exports2) {
    "use strict";
    var __importDefault2 = exports2 && exports2.__importDefault || function(mod) {
      return mod && mod.__esModule ? mod : { "default": mod };
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.wrapString = void 0;
    var slice_ansi_1 = __importDefault2(require_slice_ansi());
    var string_width_1 = __importDefault2(require_string_width());
    var wrapString = /* @__PURE__ */ __name((subject, size) => {
      let subjectSlice = subject;
      const chunks2 = [];
      do {
        chunks2.push((0, slice_ansi_1.default)(subjectSlice, 0, size));
        subjectSlice = (0, slice_ansi_1.default)(subjectSlice, size).trim();
      } while ((0, string_width_1.default)(subjectSlice));
      return chunks2;
    }, "wrapString");
    exports2.wrapString = wrapString;
  }
});

// ../../node_modules/table/dist/src/wrapWord.js
var require_wrapWord = __commonJS({
  "../../node_modules/table/dist/src/wrapWord.js"(exports2) {
    "use strict";
    var __importDefault2 = exports2 && exports2.__importDefault || function(mod) {
      return mod && mod.__esModule ? mod : { "default": mod };
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.wrapWord = void 0;
    var slice_ansi_1 = __importDefault2(require_slice_ansi());
    var strip_ansi_1 = __importDefault2(require_strip_ansi());
    var calculateStringLengths = /* @__PURE__ */ __name((input, size) => {
      let subject = (0, strip_ansi_1.default)(input);
      const chunks2 = [];
      const re = new RegExp("(^.{1," + String(Math.max(size, 1)) + "}(\\s+|$))|(^.{1," + String(Math.max(size - 1, 1)) + "}(\\\\|/|_|\\.|,|;|-))");
      do {
        let chunk;
        const match4 = re.exec(subject);
        if (match4) {
          chunk = match4[0];
          subject = subject.slice(chunk.length);
          const trimmedLength = chunk.trim().length;
          const offset = chunk.length - trimmedLength;
          chunks2.push([trimmedLength, offset]);
        } else {
          chunk = subject.slice(0, size);
          subject = subject.slice(size);
          chunks2.push([chunk.length, 0]);
        }
      } while (subject.length);
      return chunks2;
    }, "calculateStringLengths");
    var wrapWord = /* @__PURE__ */ __name((input, size) => {
      const result2 = [];
      let startIndex = 0;
      calculateStringLengths(input, size).forEach(([length, offset]) => {
        result2.push((0, slice_ansi_1.default)(input, startIndex, startIndex + length));
        startIndex += length + offset;
      });
      return result2;
    }, "wrapWord");
    exports2.wrapWord = wrapWord;
  }
});

// ../../node_modules/table/dist/src/wrapCell.js
var require_wrapCell = __commonJS({
  "../../node_modules/table/dist/src/wrapCell.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.wrapCell = void 0;
    var utils_1 = require_utils6();
    var wrapString_1 = require_wrapString();
    var wrapWord_1 = require_wrapWord();
    var wrapCell = /* @__PURE__ */ __name((cellValue, cellWidth, useWrapWord) => {
      const cellLines = (0, utils_1.splitAnsi)(cellValue);
      for (let lineNr = 0; lineNr < cellLines.length; ) {
        let lineChunks;
        if (useWrapWord) {
          lineChunks = (0, wrapWord_1.wrapWord)(cellLines[lineNr], cellWidth);
        } else {
          lineChunks = (0, wrapString_1.wrapString)(cellLines[lineNr], cellWidth);
        }
        cellLines.splice(lineNr, 1, ...lineChunks);
        lineNr += lineChunks.length;
      }
      return cellLines;
    }, "wrapCell");
    exports2.wrapCell = wrapCell;
  }
});

// ../../node_modules/table/dist/src/calculateCellHeight.js
var require_calculateCellHeight = __commonJS({
  "../../node_modules/table/dist/src/calculateCellHeight.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.calculateCellHeight = void 0;
    var wrapCell_1 = require_wrapCell();
    var calculateCellHeight = /* @__PURE__ */ __name((value, columnWidth, useWrapWord = false) => {
      return (0, wrapCell_1.wrapCell)(value, columnWidth, useWrapWord).length;
    }, "calculateCellHeight");
    exports2.calculateCellHeight = calculateCellHeight;
  }
});

// ../../node_modules/table/dist/src/calculateRowHeights.js
var require_calculateRowHeights = __commonJS({
  "../../node_modules/table/dist/src/calculateRowHeights.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.calculateRowHeights = void 0;
    var calculateCellHeight_1 = require_calculateCellHeight();
    var utils_1 = require_utils6();
    var calculateRowHeights = /* @__PURE__ */ __name((rows, config) => {
      const rowHeights = [];
      for (const [rowIndex, row] of rows.entries()) {
        let rowHeight = 1;
        row.forEach((cell, cellIndex) => {
          var _a2;
          const containingRange = (_a2 = config.spanningCellManager) === null || _a2 === void 0 ? void 0 : _a2.getContainingRange({
            col: cellIndex,
            row: rowIndex
          });
          if (!containingRange) {
            const cellHeight = (0, calculateCellHeight_1.calculateCellHeight)(cell, config.columns[cellIndex].width, config.columns[cellIndex].wrapWord);
            rowHeight = Math.max(rowHeight, cellHeight);
            return;
          }
          const { topLeft, bottomRight, height } = containingRange;
          if (rowIndex === bottomRight.row) {
            const totalOccupiedSpanningCellHeight = (0, utils_1.sumArray)(rowHeights.slice(topLeft.row));
            const totalHorizontalBorderHeight = bottomRight.row - topLeft.row;
            const totalHiddenHorizontalBorderHeight = (0, utils_1.sequence)(topLeft.row + 1, bottomRight.row).filter((horizontalBorderIndex) => {
              var _a3;
              return !((_a3 = config.drawHorizontalLine) === null || _a3 === void 0 ? void 0 : _a3.call(config, horizontalBorderIndex, rows.length));
            }).length;
            const cellHeight = height - totalOccupiedSpanningCellHeight - totalHorizontalBorderHeight + totalHiddenHorizontalBorderHeight;
            rowHeight = Math.max(rowHeight, cellHeight);
          }
        });
        rowHeights.push(rowHeight);
      }
      return rowHeights;
    }, "calculateRowHeights");
    exports2.calculateRowHeights = calculateRowHeights;
  }
});

// ../../node_modules/table/dist/src/drawContent.js
var require_drawContent = __commonJS({
  "../../node_modules/table/dist/src/drawContent.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.drawContent = void 0;
    var drawContent = /* @__PURE__ */ __name((parameters) => {
      const { contents, separatorGetter, drawSeparator, spanningCellManager, rowIndex, elementType } = parameters;
      const contentSize = contents.length;
      const result2 = [];
      if (drawSeparator(0, contentSize)) {
        result2.push(separatorGetter(0, contentSize));
      }
      contents.forEach((content, contentIndex) => {
        if (!elementType || elementType === "border" || elementType === "row") {
          result2.push(content);
        }
        if (elementType === "cell" && rowIndex === void 0) {
          result2.push(content);
        }
        if (elementType === "cell" && rowIndex !== void 0) {
          const containingRange = spanningCellManager === null || spanningCellManager === void 0 ? void 0 : spanningCellManager.getContainingRange({
            col: contentIndex,
            row: rowIndex
          });
          if (!containingRange || contentIndex === containingRange.topLeft.col) {
            result2.push(content);
          }
        }
        if (contentIndex + 1 < contentSize && drawSeparator(contentIndex + 1, contentSize)) {
          const separator = separatorGetter(contentIndex + 1, contentSize);
          if (elementType === "cell" && rowIndex !== void 0) {
            const currentCell = {
              col: contentIndex + 1,
              row: rowIndex
            };
            const containingRange = spanningCellManager === null || spanningCellManager === void 0 ? void 0 : spanningCellManager.getContainingRange(currentCell);
            if (!containingRange || containingRange.topLeft.col === currentCell.col) {
              result2.push(separator);
            }
          } else {
            result2.push(separator);
          }
        }
      });
      if (drawSeparator(contentSize, contentSize)) {
        result2.push(separatorGetter(contentSize, contentSize));
      }
      return result2.join("");
    }, "drawContent");
    exports2.drawContent = drawContent;
  }
});

// ../../node_modules/table/dist/src/drawBorder.js
var require_drawBorder = __commonJS({
  "../../node_modules/table/dist/src/drawBorder.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.createTableBorderGetter = exports2.drawBorderBottom = exports2.drawBorderJoin = exports2.drawBorderTop = exports2.drawBorder = exports2.createSeparatorGetter = exports2.drawBorderSegments = void 0;
    var drawContent_1 = require_drawContent();
    var drawBorderSegments = /* @__PURE__ */ __name((columnWidths, parameters) => {
      const { separator, horizontalBorderIndex, spanningCellManager } = parameters;
      return columnWidths.map((columnWidth, columnIndex) => {
        const normalSegment = separator.body.repeat(columnWidth);
        if (horizontalBorderIndex === void 0) {
          return normalSegment;
        }
        const range2 = spanningCellManager === null || spanningCellManager === void 0 ? void 0 : spanningCellManager.getContainingRange({
          col: columnIndex,
          row: horizontalBorderIndex
        });
        if (!range2) {
          return normalSegment;
        }
        const { topLeft } = range2;
        if (horizontalBorderIndex === topLeft.row) {
          return normalSegment;
        }
        if (columnIndex !== topLeft.col) {
          return "";
        }
        return range2.extractBorderContent(horizontalBorderIndex);
      });
    }, "drawBorderSegments");
    exports2.drawBorderSegments = drawBorderSegments;
    var createSeparatorGetter = /* @__PURE__ */ __name((dependencies) => {
      const { separator, spanningCellManager, horizontalBorderIndex, rowCount } = dependencies;
      return (verticalBorderIndex, columnCount) => {
        const inSameRange = spanningCellManager === null || spanningCellManager === void 0 ? void 0 : spanningCellManager.inSameRange;
        if (horizontalBorderIndex !== void 0 && inSameRange) {
          const topCell = {
            col: verticalBorderIndex,
            row: horizontalBorderIndex - 1
          };
          const leftCell = {
            col: verticalBorderIndex - 1,
            row: horizontalBorderIndex
          };
          const oppositeCell = {
            col: verticalBorderIndex - 1,
            row: horizontalBorderIndex - 1
          };
          const currentCell = {
            col: verticalBorderIndex,
            row: horizontalBorderIndex
          };
          const pairs = [
            [oppositeCell, topCell],
            [topCell, currentCell],
            [currentCell, leftCell],
            [leftCell, oppositeCell]
          ];
          if (verticalBorderIndex === 0) {
            if (inSameRange(currentCell, topCell) && separator.bodyJoinOuter) {
              return separator.bodyJoinOuter;
            }
            return separator.left;
          }
          if (verticalBorderIndex === columnCount) {
            if (inSameRange(oppositeCell, leftCell) && separator.bodyJoinOuter) {
              return separator.bodyJoinOuter;
            }
            return separator.right;
          }
          if (horizontalBorderIndex === 0) {
            if (inSameRange(currentCell, leftCell)) {
              return separator.body;
            }
            return separator.join;
          }
          if (horizontalBorderIndex === rowCount) {
            if (inSameRange(topCell, oppositeCell)) {
              return separator.body;
            }
            return separator.join;
          }
          const sameRangeCount = pairs.map((pair) => {
            return inSameRange(...pair);
          }).filter(Boolean).length;
          if (sameRangeCount === 0) {
            return separator.join;
          }
          if (sameRangeCount === 4) {
            return "";
          }
          if (sameRangeCount === 2) {
            if (inSameRange(...pairs[1]) && inSameRange(...pairs[3]) && separator.bodyJoinInner) {
              return separator.bodyJoinInner;
            }
            return separator.body;
          }
          if (sameRangeCount === 1) {
            if (!separator.joinRight || !separator.joinLeft || !separator.joinUp || !separator.joinDown) {
              throw new Error(`Can not get border separator for position [${horizontalBorderIndex}, ${verticalBorderIndex}]`);
            }
            if (inSameRange(...pairs[0])) {
              return separator.joinDown;
            }
            if (inSameRange(...pairs[1])) {
              return separator.joinLeft;
            }
            if (inSameRange(...pairs[2])) {
              return separator.joinUp;
            }
            return separator.joinRight;
          }
          throw new Error("Invalid case");
        }
        if (verticalBorderIndex === 0) {
          return separator.left;
        }
        if (verticalBorderIndex === columnCount) {
          return separator.right;
        }
        return separator.join;
      };
    }, "createSeparatorGetter");
    exports2.createSeparatorGetter = createSeparatorGetter;
    var drawBorder = /* @__PURE__ */ __name((columnWidths, parameters) => {
      const borderSegments = (0, exports2.drawBorderSegments)(columnWidths, parameters);
      const { drawVerticalLine, horizontalBorderIndex, spanningCellManager } = parameters;
      return (0, drawContent_1.drawContent)({
        contents: borderSegments,
        drawSeparator: drawVerticalLine,
        elementType: "border",
        rowIndex: horizontalBorderIndex,
        separatorGetter: (0, exports2.createSeparatorGetter)(parameters),
        spanningCellManager
      }) + "\n";
    }, "drawBorder");
    exports2.drawBorder = drawBorder;
    var drawBorderTop = /* @__PURE__ */ __name((columnWidths, parameters) => {
      const { border } = parameters;
      const result2 = (0, exports2.drawBorder)(columnWidths, {
        ...parameters,
        separator: {
          body: border.topBody,
          join: border.topJoin,
          left: border.topLeft,
          right: border.topRight
        }
      });
      if (result2 === "\n") {
        return "";
      }
      return result2;
    }, "drawBorderTop");
    exports2.drawBorderTop = drawBorderTop;
    var drawBorderJoin = /* @__PURE__ */ __name((columnWidths, parameters) => {
      const { border } = parameters;
      return (0, exports2.drawBorder)(columnWidths, {
        ...parameters,
        separator: {
          body: border.joinBody,
          bodyJoinInner: border.bodyJoin,
          bodyJoinOuter: border.bodyLeft,
          join: border.joinJoin,
          joinDown: border.joinMiddleDown,
          joinLeft: border.joinMiddleLeft,
          joinRight: border.joinMiddleRight,
          joinUp: border.joinMiddleUp,
          left: border.joinLeft,
          right: border.joinRight
        }
      });
    }, "drawBorderJoin");
    exports2.drawBorderJoin = drawBorderJoin;
    var drawBorderBottom = /* @__PURE__ */ __name((columnWidths, parameters) => {
      const { border } = parameters;
      return (0, exports2.drawBorder)(columnWidths, {
        ...parameters,
        separator: {
          body: border.bottomBody,
          join: border.bottomJoin,
          left: border.bottomLeft,
          right: border.bottomRight
        }
      });
    }, "drawBorderBottom");
    exports2.drawBorderBottom = drawBorderBottom;
    var createTableBorderGetter = /* @__PURE__ */ __name((columnWidths, parameters) => {
      return (index, size) => {
        const drawBorderParameters = {
          ...parameters,
          horizontalBorderIndex: index
        };
        if (index === 0) {
          return (0, exports2.drawBorderTop)(columnWidths, drawBorderParameters);
        } else if (index === size) {
          return (0, exports2.drawBorderBottom)(columnWidths, drawBorderParameters);
        }
        return (0, exports2.drawBorderJoin)(columnWidths, drawBorderParameters);
      };
    }, "createTableBorderGetter");
    exports2.createTableBorderGetter = createTableBorderGetter;
  }
});

// ../../node_modules/table/dist/src/drawRow.js
var require_drawRow = __commonJS({
  "../../node_modules/table/dist/src/drawRow.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.drawRow = void 0;
    var drawContent_1 = require_drawContent();
    var drawRow = /* @__PURE__ */ __name((row, config) => {
      const { border, drawVerticalLine, rowIndex, spanningCellManager } = config;
      return (0, drawContent_1.drawContent)({
        contents: row,
        drawSeparator: drawVerticalLine,
        elementType: "cell",
        rowIndex,
        separatorGetter: /* @__PURE__ */ __name((index, columnCount) => {
          if (index === 0) {
            return border.bodyLeft;
          }
          if (index === columnCount) {
            return border.bodyRight;
          }
          return border.bodyJoin;
        }, "separatorGetter"),
        spanningCellManager
      }) + "\n";
    }, "drawRow");
    exports2.drawRow = drawRow;
  }
});

// ../../node_modules/table/node_modules/ajv/dist/runtime/equal.js
var require_equal = __commonJS({
  "../../node_modules/table/node_modules/ajv/dist/runtime/equal.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    var equal = require_fast_deep_equal();
    equal.code = 'require("ajv/dist/runtime/equal").default';
    exports2.default = equal;
  }
});

// ../../node_modules/table/dist/src/generated/validators.js
var require_validators5 = __commonJS({
  "../../node_modules/table/dist/src/generated/validators.js"(exports2) {
    "use strict";
    exports2["config.json"] = validate43;
    var schema13 = {
      "$id": "config.json",
      "$schema": "http://json-schema.org/draft-07/schema#",
      "type": "object",
      "properties": {
        "border": {
          "$ref": "shared.json#/definitions/borders"
        },
        "header": {
          "type": "object",
          "properties": {
            "content": {
              "type": "string"
            },
            "alignment": {
              "$ref": "shared.json#/definitions/alignment"
            },
            "wrapWord": {
              "type": "boolean"
            },
            "truncate": {
              "type": "integer"
            },
            "paddingLeft": {
              "type": "integer"
            },
            "paddingRight": {
              "type": "integer"
            }
          },
          "required": ["content"],
          "additionalProperties": false
        },
        "columns": {
          "$ref": "shared.json#/definitions/columns"
        },
        "columnDefault": {
          "$ref": "shared.json#/definitions/column"
        },
        "drawVerticalLine": {
          "typeof": "function"
        },
        "drawHorizontalLine": {
          "typeof": "function"
        },
        "singleLine": {
          "typeof": "boolean"
        },
        "spanningCells": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "col": {
                "type": "integer",
                "minimum": 0
              },
              "row": {
                "type": "integer",
                "minimum": 0
              },
              "colSpan": {
                "type": "integer",
                "minimum": 1
              },
              "rowSpan": {
                "type": "integer",
                "minimum": 1
              },
              "alignment": {
                "$ref": "shared.json#/definitions/alignment"
              },
              "verticalAlignment": {
                "$ref": "shared.json#/definitions/verticalAlignment"
              },
              "wrapWord": {
                "type": "boolean"
              },
              "truncate": {
                "type": "integer"
              },
              "paddingLeft": {
                "type": "integer"
              },
              "paddingRight": {
                "type": "integer"
              }
            },
            "required": ["row", "col"],
            "additionalProperties": false
          }
        }
      },
      "additionalProperties": false
    };
    var schema15 = {
      "type": "object",
      "properties": {
        "topBody": {
          "$ref": "#/definitions/border"
        },
        "topJoin": {
          "$ref": "#/definitions/border"
        },
        "topLeft": {
          "$ref": "#/definitions/border"
        },
        "topRight": {
          "$ref": "#/definitions/border"
        },
        "bottomBody": {
          "$ref": "#/definitions/border"
        },
        "bottomJoin": {
          "$ref": "#/definitions/border"
        },
        "bottomLeft": {
          "$ref": "#/definitions/border"
        },
        "bottomRight": {
          "$ref": "#/definitions/border"
        },
        "bodyLeft": {
          "$ref": "#/definitions/border"
        },
        "bodyRight": {
          "$ref": "#/definitions/border"
        },
        "bodyJoin": {
          "$ref": "#/definitions/border"
        },
        "headerJoin": {
          "$ref": "#/definitions/border"
        },
        "joinBody": {
          "$ref": "#/definitions/border"
        },
        "joinLeft": {
          "$ref": "#/definitions/border"
        },
        "joinRight": {
          "$ref": "#/definitions/border"
        },
        "joinJoin": {
          "$ref": "#/definitions/border"
        },
        "joinMiddleUp": {
          "$ref": "#/definitions/border"
        },
        "joinMiddleDown": {
          "$ref": "#/definitions/border"
        },
        "joinMiddleLeft": {
          "$ref": "#/definitions/border"
        },
        "joinMiddleRight": {
          "$ref": "#/definitions/border"
        }
      },
      "additionalProperties": false
    };
    var func8 = Object.prototype.hasOwnProperty;
    function validate46(data3, { instancePath = "", parentData, parentDataProperty, rootData = data3 } = {}) {
      let vErrors = null;
      let errors = 0;
      if (typeof data3 !== "string") {
        const err0 = {
          instancePath,
          schemaPath: "#/type",
          keyword: "type",
          params: {
            type: "string"
          },
          message: "must be string"
        };
        if (vErrors === null) {
          vErrors = [err0];
        } else {
          vErrors.push(err0);
        }
        errors++;
      }
      validate46.errors = vErrors;
      return errors === 0;
    }
    __name(validate46, "validate46");
    function validate45(data3, { instancePath = "", parentData, parentDataProperty, rootData = data3 } = {}) {
      let vErrors = null;
      let errors = 0;
      if (data3 && typeof data3 == "object" && !Array.isArray(data3)) {
        for (const key0 in data3) {
          if (!func8.call(schema15.properties, key0)) {
            const err0 = {
              instancePath,
              schemaPath: "#/additionalProperties",
              keyword: "additionalProperties",
              params: {
                additionalProperty: key0
              },
              message: "must NOT have additional properties"
            };
            if (vErrors === null) {
              vErrors = [err0];
            } else {
              vErrors.push(err0);
            }
            errors++;
          }
        }
        if (data3.topBody !== void 0) {
          if (!validate46(data3.topBody, {
            instancePath: instancePath + "/topBody",
            parentData: data3,
            parentDataProperty: "topBody",
            rootData
          })) {
            vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
            errors = vErrors.length;
          }
        }
        if (data3.topJoin !== void 0) {
          if (!validate46(data3.topJoin, {
            instancePath: instancePath + "/topJoin",
            parentData: data3,
            parentDataProperty: "topJoin",
            rootData
          })) {
            vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
            errors = vErrors.length;
          }
        }
        if (data3.topLeft !== void 0) {
          if (!validate46(data3.topLeft, {
            instancePath: instancePath + "/topLeft",
            parentData: data3,
            parentDataProperty: "topLeft",
            rootData
          })) {
            vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
            errors = vErrors.length;
          }
        }
        if (data3.topRight !== void 0) {
          if (!validate46(data3.topRight, {
            instancePath: instancePath + "/topRight",
            parentData: data3,
            parentDataProperty: "topRight",
            rootData
          })) {
            vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
            errors = vErrors.length;
          }
        }
        if (data3.bottomBody !== void 0) {
          if (!validate46(data3.bottomBody, {
            instancePath: instancePath + "/bottomBody",
            parentData: data3,
            parentDataProperty: "bottomBody",
            rootData
          })) {
            vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
            errors = vErrors.length;
          }
        }
        if (data3.bottomJoin !== void 0) {
          if (!validate46(data3.bottomJoin, {
            instancePath: instancePath + "/bottomJoin",
            parentData: data3,
            parentDataProperty: "bottomJoin",
            rootData
          })) {
            vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
            errors = vErrors.length;
          }
        }
        if (data3.bottomLeft !== void 0) {
          if (!validate46(data3.bottomLeft, {
            instancePath: instancePath + "/bottomLeft",
            parentData: data3,
            parentDataProperty: "bottomLeft",
            rootData
          })) {
            vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
            errors = vErrors.length;
          }
        }
        if (data3.bottomRight !== void 0) {
          if (!validate46(data3.bottomRight, {
            instancePath: instancePath + "/bottomRight",
            parentData: data3,
            parentDataProperty: "bottomRight",
            rootData
          })) {
            vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
            errors = vErrors.length;
          }
        }
        if (data3.bodyLeft !== void 0) {
          if (!validate46(data3.bodyLeft, {
            instancePath: instancePath + "/bodyLeft",
            parentData: data3,
            parentDataProperty: "bodyLeft",
            rootData
          })) {
            vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
            errors = vErrors.length;
          }
        }
        if (data3.bodyRight !== void 0) {
          if (!validate46(data3.bodyRight, {
            instancePath: instancePath + "/bodyRight",
            parentData: data3,
            parentDataProperty: "bodyRight",
            rootData
          })) {
            vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
            errors = vErrors.length;
          }
        }
        if (data3.bodyJoin !== void 0) {
          if (!validate46(data3.bodyJoin, {
            instancePath: instancePath + "/bodyJoin",
            parentData: data3,
            parentDataProperty: "bodyJoin",
            rootData
          })) {
            vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
            errors = vErrors.length;
          }
        }
        if (data3.headerJoin !== void 0) {
          if (!validate46(data3.headerJoin, {
            instancePath: instancePath + "/headerJoin",
            parentData: data3,
            parentDataProperty: "headerJoin",
            rootData
          })) {
            vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
            errors = vErrors.length;
          }
        }
        if (data3.joinBody !== void 0) {
          if (!validate46(data3.joinBody, {
            instancePath: instancePath + "/joinBody",
            parentData: data3,
            parentDataProperty: "joinBody",
            rootData
          })) {
            vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
            errors = vErrors.length;
          }
        }
        if (data3.joinLeft !== void 0) {
          if (!validate46(data3.joinLeft, {
            instancePath: instancePath + "/joinLeft",
            parentData: data3,
            parentDataProperty: "joinLeft",
            rootData
          })) {
            vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
            errors = vErrors.length;
          }
        }
        if (data3.joinRight !== void 0) {
          if (!validate46(data3.joinRight, {
            instancePath: instancePath + "/joinRight",
            parentData: data3,
            parentDataProperty: "joinRight",
            rootData
          })) {
            vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
            errors = vErrors.length;
          }
        }
        if (data3.joinJoin !== void 0) {
          if (!validate46(data3.joinJoin, {
            instancePath: instancePath + "/joinJoin",
            parentData: data3,
            parentDataProperty: "joinJoin",
            rootData
          })) {
            vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
            errors = vErrors.length;
          }
        }
        if (data3.joinMiddleUp !== void 0) {
          if (!validate46(data3.joinMiddleUp, {
            instancePath: instancePath + "/joinMiddleUp",
            parentData: data3,
            parentDataProperty: "joinMiddleUp",
            rootData
          })) {
            vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
            errors = vErrors.length;
          }
        }
        if (data3.joinMiddleDown !== void 0) {
          if (!validate46(data3.joinMiddleDown, {
            instancePath: instancePath + "/joinMiddleDown",
            parentData: data3,
            parentDataProperty: "joinMiddleDown",
            rootData
          })) {
            vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
            errors = vErrors.length;
          }
        }
        if (data3.joinMiddleLeft !== void 0) {
          if (!validate46(data3.joinMiddleLeft, {
            instancePath: instancePath + "/joinMiddleLeft",
            parentData: data3,
            parentDataProperty: "joinMiddleLeft",
            rootData
          })) {
            vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
            errors = vErrors.length;
          }
        }
        if (data3.joinMiddleRight !== void 0) {
          if (!validate46(data3.joinMiddleRight, {
            instancePath: instancePath + "/joinMiddleRight",
            parentData: data3,
            parentDataProperty: "joinMiddleRight",
            rootData
          })) {
            vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
            errors = vErrors.length;
          }
        }
      } else {
        const err1 = {
          instancePath,
          schemaPath: "#/type",
          keyword: "type",
          params: {
            type: "object"
          },
          message: "must be object"
        };
        if (vErrors === null) {
          vErrors = [err1];
        } else {
          vErrors.push(err1);
        }
        errors++;
      }
      validate45.errors = vErrors;
      return errors === 0;
    }
    __name(validate45, "validate45");
    var schema17 = {
      "type": "string",
      "enum": ["left", "right", "center", "justify"]
    };
    var func0 = require_equal().default;
    function validate68(data3, { instancePath = "", parentData, parentDataProperty, rootData = data3 } = {}) {
      let vErrors = null;
      let errors = 0;
      if (typeof data3 !== "string") {
        const err0 = {
          instancePath,
          schemaPath: "#/type",
          keyword: "type",
          params: {
            type: "string"
          },
          message: "must be string"
        };
        if (vErrors === null) {
          vErrors = [err0];
        } else {
          vErrors.push(err0);
        }
        errors++;
      }
      if (!(data3 === "left" || data3 === "right" || data3 === "center" || data3 === "justify")) {
        const err1 = {
          instancePath,
          schemaPath: "#/enum",
          keyword: "enum",
          params: {
            allowedValues: schema17.enum
          },
          message: "must be equal to one of the allowed values"
        };
        if (vErrors === null) {
          vErrors = [err1];
        } else {
          vErrors.push(err1);
        }
        errors++;
      }
      validate68.errors = vErrors;
      return errors === 0;
    }
    __name(validate68, "validate68");
    var pattern0 = new RegExp("^[0-9]+$", "u");
    function validate72(data3, { instancePath = "", parentData, parentDataProperty, rootData = data3 } = {}) {
      let vErrors = null;
      let errors = 0;
      if (typeof data3 !== "string") {
        const err0 = {
          instancePath,
          schemaPath: "#/type",
          keyword: "type",
          params: {
            type: "string"
          },
          message: "must be string"
        };
        if (vErrors === null) {
          vErrors = [err0];
        } else {
          vErrors.push(err0);
        }
        errors++;
      }
      if (!(data3 === "left" || data3 === "right" || data3 === "center" || data3 === "justify")) {
        const err1 = {
          instancePath,
          schemaPath: "#/enum",
          keyword: "enum",
          params: {
            allowedValues: schema17.enum
          },
          message: "must be equal to one of the allowed values"
        };
        if (vErrors === null) {
          vErrors = [err1];
        } else {
          vErrors.push(err1);
        }
        errors++;
      }
      validate72.errors = vErrors;
      return errors === 0;
    }
    __name(validate72, "validate72");
    var schema21 = {
      "type": "string",
      "enum": ["top", "middle", "bottom"]
    };
    function validate74(data3, { instancePath = "", parentData, parentDataProperty, rootData = data3 } = {}) {
      let vErrors = null;
      let errors = 0;
      if (typeof data3 !== "string") {
        const err0 = {
          instancePath,
          schemaPath: "#/type",
          keyword: "type",
          params: {
            type: "string"
          },
          message: "must be string"
        };
        if (vErrors === null) {
          vErrors = [err0];
        } else {
          vErrors.push(err0);
        }
        errors++;
      }
      if (!(data3 === "top" || data3 === "middle" || data3 === "bottom")) {
        const err1 = {
          instancePath,
          schemaPath: "#/enum",
          keyword: "enum",
          params: {
            allowedValues: schema21.enum
          },
          message: "must be equal to one of the allowed values"
        };
        if (vErrors === null) {
          vErrors = [err1];
        } else {
          vErrors.push(err1);
        }
        errors++;
      }
      validate74.errors = vErrors;
      return errors === 0;
    }
    __name(validate74, "validate74");
    function validate71(data3, { instancePath = "", parentData, parentDataProperty, rootData = data3 } = {}) {
      let vErrors = null;
      let errors = 0;
      if (data3 && typeof data3 == "object" && !Array.isArray(data3)) {
        for (const key0 in data3) {
          if (!(key0 === "alignment" || key0 === "verticalAlignment" || key0 === "width" || key0 === "wrapWord" || key0 === "truncate" || key0 === "paddingLeft" || key0 === "paddingRight")) {
            const err0 = {
              instancePath,
              schemaPath: "#/additionalProperties",
              keyword: "additionalProperties",
              params: {
                additionalProperty: key0
              },
              message: "must NOT have additional properties"
            };
            if (vErrors === null) {
              vErrors = [err0];
            } else {
              vErrors.push(err0);
            }
            errors++;
          }
        }
        if (data3.alignment !== void 0) {
          if (!validate72(data3.alignment, {
            instancePath: instancePath + "/alignment",
            parentData: data3,
            parentDataProperty: "alignment",
            rootData
          })) {
            vErrors = vErrors === null ? validate72.errors : vErrors.concat(validate72.errors);
            errors = vErrors.length;
          }
        }
        if (data3.verticalAlignment !== void 0) {
          if (!validate74(data3.verticalAlignment, {
            instancePath: instancePath + "/verticalAlignment",
            parentData: data3,
            parentDataProperty: "verticalAlignment",
            rootData
          })) {
            vErrors = vErrors === null ? validate74.errors : vErrors.concat(validate74.errors);
            errors = vErrors.length;
          }
        }
        if (data3.width !== void 0) {
          let data22 = data3.width;
          if (!(typeof data22 == "number" && (!(data22 % 1) && !isNaN(data22)) && isFinite(data22))) {
            const err1 = {
              instancePath: instancePath + "/width",
              schemaPath: "#/properties/width/type",
              keyword: "type",
              params: {
                type: "integer"
              },
              message: "must be integer"
            };
            if (vErrors === null) {
              vErrors = [err1];
            } else {
              vErrors.push(err1);
            }
            errors++;
          }
          if (typeof data22 == "number" && isFinite(data22)) {
            if (data22 < 1 || isNaN(data22)) {
              const err2 = {
                instancePath: instancePath + "/width",
                schemaPath: "#/properties/width/minimum",
                keyword: "minimum",
                params: {
                  comparison: ">=",
                  limit: 1
                },
                message: "must be >= 1"
              };
              if (vErrors === null) {
                vErrors = [err2];
              } else {
                vErrors.push(err2);
              }
              errors++;
            }
          }
        }
        if (data3.wrapWord !== void 0) {
          if (typeof data3.wrapWord !== "boolean") {
            const err3 = {
              instancePath: instancePath + "/wrapWord",
              schemaPath: "#/properties/wrapWord/type",
              keyword: "type",
              params: {
                type: "boolean"
              },
              message: "must be boolean"
            };
            if (vErrors === null) {
              vErrors = [err3];
            } else {
              vErrors.push(err3);
            }
            errors++;
          }
        }
        if (data3.truncate !== void 0) {
          let data4 = data3.truncate;
          if (!(typeof data4 == "number" && (!(data4 % 1) && !isNaN(data4)) && isFinite(data4))) {
            const err4 = {
              instancePath: instancePath + "/truncate",
              schemaPath: "#/properties/truncate/type",
              keyword: "type",
              params: {
                type: "integer"
              },
              message: "must be integer"
            };
            if (vErrors === null) {
              vErrors = [err4];
            } else {
              vErrors.push(err4);
            }
            errors++;
          }
        }
        if (data3.paddingLeft !== void 0) {
          let data5 = data3.paddingLeft;
          if (!(typeof data5 == "number" && (!(data5 % 1) && !isNaN(data5)) && isFinite(data5))) {
            const err5 = {
              instancePath: instancePath + "/paddingLeft",
              schemaPath: "#/properties/paddingLeft/type",
              keyword: "type",
              params: {
                type: "integer"
              },
              message: "must be integer"
            };
            if (vErrors === null) {
              vErrors = [err5];
            } else {
              vErrors.push(err5);
            }
            errors++;
          }
        }
        if (data3.paddingRight !== void 0) {
          let data6 = data3.paddingRight;
          if (!(typeof data6 == "number" && (!(data6 % 1) && !isNaN(data6)) && isFinite(data6))) {
            const err6 = {
              instancePath: instancePath + "/paddingRight",
              schemaPath: "#/properties/paddingRight/type",
              keyword: "type",
              params: {
                type: "integer"
              },
              message: "must be integer"
            };
            if (vErrors === null) {
              vErrors = [err6];
            } else {
              vErrors.push(err6);
            }
            errors++;
          }
        }
      } else {
        const err7 = {
          instancePath,
          schemaPath: "#/type",
          keyword: "type",
          params: {
            type: "object"
          },
          message: "must be object"
        };
        if (vErrors === null) {
          vErrors = [err7];
        } else {
          vErrors.push(err7);
        }
        errors++;
      }
      validate71.errors = vErrors;
      return errors === 0;
    }
    __name(validate71, "validate71");
    function validate70(data3, { instancePath = "", parentData, parentDataProperty, rootData = data3 } = {}) {
      let vErrors = null;
      let errors = 0;
      const _errs0 = errors;
      let valid0 = false;
      let passing0 = null;
      const _errs1 = errors;
      if (data3 && typeof data3 == "object" && !Array.isArray(data3)) {
        for (const key0 in data3) {
          if (!pattern0.test(key0)) {
            const err0 = {
              instancePath,
              schemaPath: "#/oneOf/0/additionalProperties",
              keyword: "additionalProperties",
              params: {
                additionalProperty: key0
              },
              message: "must NOT have additional properties"
            };
            if (vErrors === null) {
              vErrors = [err0];
            } else {
              vErrors.push(err0);
            }
            errors++;
          }
        }
        for (const key1 in data3) {
          if (pattern0.test(key1)) {
            if (!validate71(data3[key1], {
              instancePath: instancePath + "/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"),
              parentData: data3,
              parentDataProperty: key1,
              rootData
            })) {
              vErrors = vErrors === null ? validate71.errors : vErrors.concat(validate71.errors);
              errors = vErrors.length;
            }
          }
        }
      } else {
        const err1 = {
          instancePath,
          schemaPath: "#/oneOf/0/type",
          keyword: "type",
          params: {
            type: "object"
          },
          message: "must be object"
        };
        if (vErrors === null) {
          vErrors = [err1];
        } else {
          vErrors.push(err1);
        }
        errors++;
      }
      var _valid0 = _errs1 === errors;
      if (_valid0) {
        valid0 = true;
        passing0 = 0;
      }
      const _errs5 = errors;
      if (Array.isArray(data3)) {
        const len0 = data3.length;
        for (let i0 = 0; i0 < len0; i0++) {
          if (!validate71(data3[i0], {
            instancePath: instancePath + "/" + i0,
            parentData: data3,
            parentDataProperty: i0,
            rootData
          })) {
            vErrors = vErrors === null ? validate71.errors : vErrors.concat(validate71.errors);
            errors = vErrors.length;
          }
        }
      } else {
        const err2 = {
          instancePath,
          schemaPath: "#/oneOf/1/type",
          keyword: "type",
          params: {
            type: "array"
          },
          message: "must be array"
        };
        if (vErrors === null) {
          vErrors = [err2];
        } else {
          vErrors.push(err2);
        }
        errors++;
      }
      var _valid0 = _errs5 === errors;
      if (_valid0 && valid0) {
        valid0 = false;
        passing0 = [passing0, 1];
      } else {
        if (_valid0) {
          valid0 = true;
          passing0 = 1;
        }
      }
      if (!valid0) {
        const err3 = {
          instancePath,
          schemaPath: "#/oneOf",
          keyword: "oneOf",
          params: {
            passingSchemas: passing0
          },
          message: "must match exactly one schema in oneOf"
        };
        if (vErrors === null) {
          vErrors = [err3];
        } else {
          vErrors.push(err3);
        }
        errors++;
      } else {
        errors = _errs0;
        if (vErrors !== null) {
          if (_errs0) {
            vErrors.length = _errs0;
          } else {
            vErrors = null;
          }
        }
      }
      validate70.errors = vErrors;
      return errors === 0;
    }
    __name(validate70, "validate70");
    function validate79(data3, { instancePath = "", parentData, parentDataProperty, rootData = data3 } = {}) {
      let vErrors = null;
      let errors = 0;
      if (data3 && typeof data3 == "object" && !Array.isArray(data3)) {
        for (const key0 in data3) {
          if (!(key0 === "alignment" || key0 === "verticalAlignment" || key0 === "width" || key0 === "wrapWord" || key0 === "truncate" || key0 === "paddingLeft" || key0 === "paddingRight")) {
            const err0 = {
              instancePath,
              schemaPath: "#/additionalProperties",
              keyword: "additionalProperties",
              params: {
                additionalProperty: key0
              },
              message: "must NOT have additional properties"
            };
            if (vErrors === null) {
              vErrors = [err0];
            } else {
              vErrors.push(err0);
            }
            errors++;
          }
        }
        if (data3.alignment !== void 0) {
          if (!validate72(data3.alignment, {
            instancePath: instancePath + "/alignment",
            parentData: data3,
            parentDataProperty: "alignment",
            rootData
          })) {
            vErrors = vErrors === null ? validate72.errors : vErrors.concat(validate72.errors);
            errors = vErrors.length;
          }
        }
        if (data3.verticalAlignment !== void 0) {
          if (!validate74(data3.verticalAlignment, {
            instancePath: instancePath + "/verticalAlignment",
            parentData: data3,
            parentDataProperty: "verticalAlignment",
            rootData
          })) {
            vErrors = vErrors === null ? validate74.errors : vErrors.concat(validate74.errors);
            errors = vErrors.length;
          }
        }
        if (data3.width !== void 0) {
          let data22 = data3.width;
          if (!(typeof data22 == "number" && (!(data22 % 1) && !isNaN(data22)) && isFinite(data22))) {
            const err1 = {
              instancePath: instancePath + "/width",
              schemaPath: "#/properties/width/type",
              keyword: "type",
              params: {
                type: "integer"
              },
              message: "must be integer"
            };
            if (vErrors === null) {
              vErrors = [err1];
            } else {
              vErrors.push(err1);
            }
            errors++;
          }
          if (typeof data22 == "number" && isFinite(data22)) {
            if (data22 < 1 || isNaN(data22)) {
              const err2 = {
                instancePath: instancePath + "/width",
                schemaPath: "#/properties/width/minimum",
                keyword: "minimum",
                params: {
                  comparison: ">=",
                  limit: 1
                },
                message: "must be >= 1"
              };
              if (vErrors === null) {
                vErrors = [err2];
              } else {
                vErrors.push(err2);
              }
              errors++;
            }
          }
        }
        if (data3.wrapWord !== void 0) {
          if (typeof data3.wrapWord !== "boolean") {
            const err3 = {
              instancePath: instancePath + "/wrapWord",
              schemaPath: "#/properties/wrapWord/type",
              keyword: "type",
              params: {
                type: "boolean"
              },
              message: "must be boolean"
            };
            if (vErrors === null) {
              vErrors = [err3];
            } else {
              vErrors.push(err3);
            }
            errors++;
          }
        }
        if (data3.truncate !== void 0) {
          let data4 = data3.truncate;
          if (!(typeof data4 == "number" && (!(data4 % 1) && !isNaN(data4)) && isFinite(data4))) {
            const err4 = {
              instancePath: instancePath + "/truncate",
              schemaPath: "#/properties/truncate/type",
              keyword: "type",
              params: {
                type: "integer"
              },
              message: "must be integer"
            };
            if (vErrors === null) {
              vErrors = [err4];
            } else {
              vErrors.push(err4);
            }
            errors++;
          }
        }
        if (data3.paddingLeft !== void 0) {
          let data5 = data3.paddingLeft;
          if (!(typeof data5 == "number" && (!(data5 % 1) && !isNaN(data5)) && isFinite(data5))) {
            const err5 = {
              instancePath: instancePath + "/paddingLeft",
              schemaPath: "#/properties/paddingLeft/type",
              keyword: "type",
              params: {
                type: "integer"
              },
              message: "must be integer"
            };
            if (vErrors === null) {
              vErrors = [err5];
            } else {
              vErrors.push(err5);
            }
            errors++;
          }
        }
        if (data3.paddingRight !== void 0) {
          let data6 = data3.paddingRight;
          if (!(typeof data6 == "number" && (!(data6 % 1) && !isNaN(data6)) && isFinite(data6))) {
            const err6 = {
              instancePath: instancePath + "/paddingRight",
              schemaPath: "#/properties/paddingRight/type",
              keyword: "type",
              params: {
                type: "integer"
              },
              message: "must be integer"
            };
            if (vErrors === null) {
              vErrors = [err6];
            } else {
              vErrors.push(err6);
            }
            errors++;
          }
        }
      } else {
        const err7 = {
          instancePath,
          schemaPath: "#/type",
          keyword: "type",
          params: {
            type: "object"
          },
          message: "must be object"
        };
        if (vErrors === null) {
          vErrors = [err7];
        } else {
          vErrors.push(err7);
        }
        errors++;
      }
      validate79.errors = vErrors;
      return errors === 0;
    }
    __name(validate79, "validate79");
    function validate84(data3, { instancePath = "", parentData, parentDataProperty, rootData = data3 } = {}) {
      let vErrors = null;
      let errors = 0;
      if (typeof data3 !== "string") {
        const err0 = {
          instancePath,
          schemaPath: "#/type",
          keyword: "type",
          params: {
            type: "string"
          },
          message: "must be string"
        };
        if (vErrors === null) {
          vErrors = [err0];
        } else {
          vErrors.push(err0);
        }
        errors++;
      }
      if (!(data3 === "top" || data3 === "middle" || data3 === "bottom")) {
        const err1 = {
          instancePath,
          schemaPath: "#/enum",
          keyword: "enum",
          params: {
            allowedValues: schema21.enum
          },
          message: "must be equal to one of the allowed values"
        };
        if (vErrors === null) {
          vErrors = [err1];
        } else {
          vErrors.push(err1);
        }
        errors++;
      }
      validate84.errors = vErrors;
      return errors === 0;
    }
    __name(validate84, "validate84");
    function validate43(data3, { instancePath = "", parentData, parentDataProperty, rootData = data3 } = {}) {
      ;
      let vErrors = null;
      let errors = 0;
      if (data3 && typeof data3 == "object" && !Array.isArray(data3)) {
        for (const key0 in data3) {
          if (!(key0 === "border" || key0 === "header" || key0 === "columns" || key0 === "columnDefault" || key0 === "drawVerticalLine" || key0 === "drawHorizontalLine" || key0 === "singleLine" || key0 === "spanningCells")) {
            const err0 = {
              instancePath,
              schemaPath: "#/additionalProperties",
              keyword: "additionalProperties",
              params: {
                additionalProperty: key0
              },
              message: "must NOT have additional properties"
            };
            if (vErrors === null) {
              vErrors = [err0];
            } else {
              vErrors.push(err0);
            }
            errors++;
          }
        }
        if (data3.border !== void 0) {
          if (!validate45(data3.border, {
            instancePath: instancePath + "/border",
            parentData: data3,
            parentDataProperty: "border",
            rootData
          })) {
            vErrors = vErrors === null ? validate45.errors : vErrors.concat(validate45.errors);
            errors = vErrors.length;
          }
        }
        if (data3.header !== void 0) {
          let data1 = data3.header;
          if (data1 && typeof data1 == "object" && !Array.isArray(data1)) {
            if (data1.content === void 0) {
              const err1 = {
                instancePath: instancePath + "/header",
                schemaPath: "#/properties/header/required",
                keyword: "required",
                params: {
                  missingProperty: "content"
                },
                message: "must have required property 'content'"
              };
              if (vErrors === null) {
                vErrors = [err1];
              } else {
                vErrors.push(err1);
              }
              errors++;
            }
            for (const key1 in data1) {
              if (!(key1 === "content" || key1 === "alignment" || key1 === "wrapWord" || key1 === "truncate" || key1 === "paddingLeft" || key1 === "paddingRight")) {
                const err2 = {
                  instancePath: instancePath + "/header",
                  schemaPath: "#/properties/header/additionalProperties",
                  keyword: "additionalProperties",
                  params: {
                    additionalProperty: key1
                  },
                  message: "must NOT have additional properties"
                };
                if (vErrors === null) {
                  vErrors = [err2];
                } else {
                  vErrors.push(err2);
                }
                errors++;
              }
            }
            if (data1.content !== void 0) {
              if (typeof data1.content !== "string") {
                const err3 = {
                  instancePath: instancePath + "/header/content",
                  schemaPath: "#/properties/header/properties/content/type",
                  keyword: "type",
                  params: {
                    type: "string"
                  },
                  message: "must be string"
                };
                if (vErrors === null) {
                  vErrors = [err3];
                } else {
                  vErrors.push(err3);
                }
                errors++;
              }
            }
            if (data1.alignment !== void 0) {
              if (!validate68(data1.alignment, {
                instancePath: instancePath + "/header/alignment",
                parentData: data1,
                parentDataProperty: "alignment",
                rootData
              })) {
                vErrors = vErrors === null ? validate68.errors : vErrors.concat(validate68.errors);
                errors = vErrors.length;
              }
            }
            if (data1.wrapWord !== void 0) {
              if (typeof data1.wrapWord !== "boolean") {
                const err4 = {
                  instancePath: instancePath + "/header/wrapWord",
                  schemaPath: "#/properties/header/properties/wrapWord/type",
                  keyword: "type",
                  params: {
                    type: "boolean"
                  },
                  message: "must be boolean"
                };
                if (vErrors === null) {
                  vErrors = [err4];
                } else {
                  vErrors.push(err4);
                }
                errors++;
              }
            }
            if (data1.truncate !== void 0) {
              let data5 = data1.truncate;
              if (!(typeof data5 == "number" && (!(data5 % 1) && !isNaN(data5)) && isFinite(data5))) {
                const err5 = {
                  instancePath: instancePath + "/header/truncate",
                  schemaPath: "#/properties/header/properties/truncate/type",
                  keyword: "type",
                  params: {
                    type: "integer"
                  },
                  message: "must be integer"
                };
                if (vErrors === null) {
                  vErrors = [err5];
                } else {
                  vErrors.push(err5);
                }
                errors++;
              }
            }
            if (data1.paddingLeft !== void 0) {
              let data6 = data1.paddingLeft;
              if (!(typeof data6 == "number" && (!(data6 % 1) && !isNaN(data6)) && isFinite(data6))) {
                const err6 = {
                  instancePath: instancePath + "/header/paddingLeft",
                  schemaPath: "#/properties/header/properties/paddingLeft/type",
                  keyword: "type",
                  params: {
                    type: "integer"
                  },
                  message: "must be integer"
                };
                if (vErrors === null) {
                  vErrors = [err6];
                } else {
                  vErrors.push(err6);
                }
                errors++;
              }
            }
            if (data1.paddingRight !== void 0) {
              let data7 = data1.paddingRight;
              if (!(typeof data7 == "number" && (!(data7 % 1) && !isNaN(data7)) && isFinite(data7))) {
                const err7 = {
                  instancePath: instancePath + "/header/paddingRight",
                  schemaPath: "#/properties/header/properties/paddingRight/type",
                  keyword: "type",
                  params: {
                    type: "integer"
                  },
                  message: "must be integer"
                };
                if (vErrors === null) {
                  vErrors = [err7];
                } else {
                  vErrors.push(err7);
                }
                errors++;
              }
            }
          } else {
            const err8 = {
              instancePath: instancePath + "/header",
              schemaPath: "#/properties/header/type",
              keyword: "type",
              params: {
                type: "object"
              },
              message: "must be object"
            };
            if (vErrors === null) {
              vErrors = [err8];
            } else {
              vErrors.push(err8);
            }
            errors++;
          }
        }
        if (data3.columns !== void 0) {
          if (!validate70(data3.columns, {
            instancePath: instancePath + "/columns",
            parentData: data3,
            parentDataProperty: "columns",
            rootData
          })) {
            vErrors = vErrors === null ? validate70.errors : vErrors.concat(validate70.errors);
            errors = vErrors.length;
          }
        }
        if (data3.columnDefault !== void 0) {
          if (!validate79(data3.columnDefault, {
            instancePath: instancePath + "/columnDefault",
            parentData: data3,
            parentDataProperty: "columnDefault",
            rootData
          })) {
            vErrors = vErrors === null ? validate79.errors : vErrors.concat(validate79.errors);
            errors = vErrors.length;
          }
        }
        if (data3.drawVerticalLine !== void 0) {
          if (typeof data3.drawVerticalLine != "function") {
            const err9 = {
              instancePath: instancePath + "/drawVerticalLine",
              schemaPath: "#/properties/drawVerticalLine/typeof",
              keyword: "typeof",
              params: {},
              message: 'must pass "typeof" keyword validation'
            };
            if (vErrors === null) {
              vErrors = [err9];
            } else {
              vErrors.push(err9);
            }
            errors++;
          }
        }
        if (data3.drawHorizontalLine !== void 0) {
          if (typeof data3.drawHorizontalLine != "function") {
            const err10 = {
              instancePath: instancePath + "/drawHorizontalLine",
              schemaPath: "#/properties/drawHorizontalLine/typeof",
              keyword: "typeof",
              params: {},
              message: 'must pass "typeof" keyword validation'
            };
            if (vErrors === null) {
              vErrors = [err10];
            } else {
              vErrors.push(err10);
            }
            errors++;
          }
        }
        if (data3.singleLine !== void 0) {
          if (typeof data3.singleLine != "boolean") {
            const err11 = {
              instancePath: instancePath + "/singleLine",
              schemaPath: "#/properties/singleLine/typeof",
              keyword: "typeof",
              params: {},
              message: 'must pass "typeof" keyword validation'
            };
            if (vErrors === null) {
              vErrors = [err11];
            } else {
              vErrors.push(err11);
            }
            errors++;
          }
        }
        if (data3.spanningCells !== void 0) {
          let data13 = data3.spanningCells;
          if (Array.isArray(data13)) {
            const len0 = data13.length;
            for (let i0 = 0; i0 < len0; i0++) {
              let data14 = data13[i0];
              if (data14 && typeof data14 == "object" && !Array.isArray(data14)) {
                if (data14.row === void 0) {
                  const err12 = {
                    instancePath: instancePath + "/spanningCells/" + i0,
                    schemaPath: "#/properties/spanningCells/items/required",
                    keyword: "required",
                    params: {
                      missingProperty: "row"
                    },
                    message: "must have required property 'row'"
                  };
                  if (vErrors === null) {
                    vErrors = [err12];
                  } else {
                    vErrors.push(err12);
                  }
                  errors++;
                }
                if (data14.col === void 0) {
                  const err13 = {
                    instancePath: instancePath + "/spanningCells/" + i0,
                    schemaPath: "#/properties/spanningCells/items/required",
                    keyword: "required",
                    params: {
                      missingProperty: "col"
                    },
                    message: "must have required property 'col'"
                  };
                  if (vErrors === null) {
                    vErrors = [err13];
                  } else {
                    vErrors.push(err13);
                  }
                  errors++;
                }
                for (const key2 in data14) {
                  if (!func8.call(schema13.properties.spanningCells.items.properties, key2)) {
                    const err14 = {
                      instancePath: instancePath + "/spanningCells/" + i0,
                      schemaPath: "#/properties/spanningCells/items/additionalProperties",
                      keyword: "additionalProperties",
                      params: {
                        additionalProperty: key2
                      },
                      message: "must NOT have additional properties"
                    };
                    if (vErrors === null) {
                      vErrors = [err14];
                    } else {
                      vErrors.push(err14);
                    }
                    errors++;
                  }
                }
                if (data14.col !== void 0) {
                  let data15 = data14.col;
                  if (!(typeof data15 == "number" && (!(data15 % 1) && !isNaN(data15)) && isFinite(data15))) {
                    const err15 = {
                      instancePath: instancePath + "/spanningCells/" + i0 + "/col",
                      schemaPath: "#/properties/spanningCells/items/properties/col/type",
                      keyword: "type",
                      params: {
                        type: "integer"
                      },
                      message: "must be integer"
                    };
                    if (vErrors === null) {
                      vErrors = [err15];
                    } else {
                      vErrors.push(err15);
                    }
                    errors++;
                  }
                  if (typeof data15 == "number" && isFinite(data15)) {
                    if (data15 < 0 || isNaN(data15)) {
                      const err16 = {
                        instancePath: instancePath + "/spanningCells/" + i0 + "/col",
                        schemaPath: "#/properties/spanningCells/items/properties/col/minimum",
                        keyword: "minimum",
                        params: {
                          comparison: ">=",
                          limit: 0
                        },
                        message: "must be >= 0"
                      };
                      if (vErrors === null) {
                        vErrors = [err16];
                      } else {
                        vErrors.push(err16);
                      }
                      errors++;
                    }
                  }
                }
                if (data14.row !== void 0) {
                  let data16 = data14.row;
                  if (!(typeof data16 == "number" && (!(data16 % 1) && !isNaN(data16)) && isFinite(data16))) {
                    const err17 = {
                      instancePath: instancePath + "/spanningCells/" + i0 + "/row",
                      schemaPath: "#/properties/spanningCells/items/properties/row/type",
                      keyword: "type",
                      params: {
                        type: "integer"
                      },
                      message: "must be integer"
                    };
                    if (vErrors === null) {
                      vErrors = [err17];
                    } else {
                      vErrors.push(err17);
                    }
                    errors++;
                  }
                  if (typeof data16 == "number" && isFinite(data16)) {
                    if (data16 < 0 || isNaN(data16)) {
                      const err18 = {
                        instancePath: instancePath + "/spanningCells/" + i0 + "/row",
                        schemaPath: "#/properties/spanningCells/items/properties/row/minimum",
                        keyword: "minimum",
                        params: {
                          comparison: ">=",
                          limit: 0
                        },
                        message: "must be >= 0"
                      };
                      if (vErrors === null) {
                        vErrors = [err18];
                      } else {
                        vErrors.push(err18);
                      }
                      errors++;
                    }
                  }
                }
                if (data14.colSpan !== void 0) {
                  let data17 = data14.colSpan;
                  if (!(typeof data17 == "number" && (!(data17 % 1) && !isNaN(data17)) && isFinite(data17))) {
                    const err19 = {
                      instancePath: instancePath + "/spanningCells/" + i0 + "/colSpan",
                      schemaPath: "#/properties/spanningCells/items/properties/colSpan/type",
                      keyword: "type",
                      params: {
                        type: "integer"
                      },
                      message: "must be integer"
                    };
                    if (vErrors === null) {
                      vErrors = [err19];
                    } else {
                      vErrors.push(err19);
                    }
                    errors++;
                  }
                  if (typeof data17 == "number" && isFinite(data17)) {
                    if (data17 < 1 || isNaN(data17)) {
                      const err20 = {
                        instancePath: instancePath + "/spanningCells/" + i0 + "/colSpan",
                        schemaPath: "#/properties/spanningCells/items/properties/colSpan/minimum",
                        keyword: "minimum",
                        params: {
                          comparison: ">=",
                          limit: 1
                        },
                        message: "must be >= 1"
                      };
                      if (vErrors === null) {
                        vErrors = [err20];
                      } else {
                        vErrors.push(err20);
                      }
                      errors++;
                    }
                  }
                }
                if (data14.rowSpan !== void 0) {
                  let data18 = data14.rowSpan;
                  if (!(typeof data18 == "number" && (!(data18 % 1) && !isNaN(data18)) && isFinite(data18))) {
                    const err21 = {
                      instancePath: instancePath + "/spanningCells/" + i0 + "/rowSpan",
                      schemaPath: "#/properties/spanningCells/items/properties/rowSpan/type",
                      keyword: "type",
                      params: {
                        type: "integer"
                      },
                      message: "must be integer"
                    };
                    if (vErrors === null) {
                      vErrors = [err21];
                    } else {
                      vErrors.push(err21);
                    }
                    errors++;
                  }
                  if (typeof data18 == "number" && isFinite(data18)) {
                    if (data18 < 1 || isNaN(data18)) {
                      const err22 = {
                        instancePath: instancePath + "/spanningCells/" + i0 + "/rowSpan",
                        schemaPath: "#/properties/spanningCells/items/properties/rowSpan/minimum",
                        keyword: "minimum",
                        params: {
                          comparison: ">=",
                          limit: 1
                        },
                        message: "must be >= 1"
                      };
                      if (vErrors === null) {
                        vErrors = [err22];
                      } else {
                        vErrors.push(err22);
                      }
                      errors++;
                    }
                  }
                }
                if (data14.alignment !== void 0) {
                  if (!validate68(data14.alignment, {
                    instancePath: instancePath + "/spanningCells/" + i0 + "/alignment",
                    parentData: data14,
                    parentDataProperty: "alignment",
                    rootData
                  })) {
                    vErrors = vErrors === null ? validate68.errors : vErrors.concat(validate68.errors);
                    errors = vErrors.length;
                  }
                }
                if (data14.verticalAlignment !== void 0) {
                  if (!validate84(data14.verticalAlignment, {
                    instancePath: instancePath + "/spanningCells/" + i0 + "/verticalAlignment",
                    parentData: data14,
                    parentDataProperty: "verticalAlignment",
                    rootData
                  })) {
                    vErrors = vErrors === null ? validate84.errors : vErrors.concat(validate84.errors);
                    errors = vErrors.length;
                  }
                }
                if (data14.wrapWord !== void 0) {
                  if (typeof data14.wrapWord !== "boolean") {
                    const err23 = {
                      instancePath: instancePath + "/spanningCells/" + i0 + "/wrapWord",
                      schemaPath: "#/properties/spanningCells/items/properties/wrapWord/type",
                      keyword: "type",
                      params: {
                        type: "boolean"
                      },
                      message: "must be boolean"
                    };
                    if (vErrors === null) {
                      vErrors = [err23];
                    } else {
                      vErrors.push(err23);
                    }
                    errors++;
                  }
                }
                if (data14.truncate !== void 0) {
                  let data22 = data14.truncate;
                  if (!(typeof data22 == "number" && (!(data22 % 1) && !isNaN(data22)) && isFinite(data22))) {
                    const err24 = {
                      instancePath: instancePath + "/spanningCells/" + i0 + "/truncate",
                      schemaPath: "#/properties/spanningCells/items/properties/truncate/type",
                      keyword: "type",
                      params: {
                        type: "integer"
                      },
                      message: "must be integer"
                    };
                    if (vErrors === null) {
                      vErrors = [err24];
                    } else {
                      vErrors.push(err24);
                    }
                    errors++;
                  }
                }
                if (data14.paddingLeft !== void 0) {
                  let data23 = data14.paddingLeft;
                  if (!(typeof data23 == "number" && (!(data23 % 1) && !isNaN(data23)) && isFinite(data23))) {
                    const err25 = {
                      instancePath: instancePath + "/spanningCells/" + i0 + "/paddingLeft",
                      schemaPath: "#/properties/spanningCells/items/properties/paddingLeft/type",
                      keyword: "type",
                      params: {
                        type: "integer"
                      },
                      message: "must be integer"
                    };
                    if (vErrors === null) {
                      vErrors = [err25];
                    } else {
                      vErrors.push(err25);
                    }
                    errors++;
                  }
                }
                if (data14.paddingRight !== void 0) {
                  let data24 = data14.paddingRight;
                  if (!(typeof data24 == "number" && (!(data24 % 1) && !isNaN(data24)) && isFinite(data24))) {
                    const err26 = {
                      instancePath: instancePath + "/spanningCells/" + i0 + "/paddingRight",
                      schemaPath: "#/properties/spanningCells/items/properties/paddingRight/type",
                      keyword: "type",
                      params: {
                        type: "integer"
                      },
                      message: "must be integer"
                    };
                    if (vErrors === null) {
                      vErrors = [err26];
                    } else {
                      vErrors.push(err26);
                    }
                    errors++;
                  }
                }
              } else {
                const err27 = {
                  instancePath: instancePath + "/spanningCells/" + i0,
                  schemaPath: "#/properties/spanningCells/items/type",
                  keyword: "type",
                  params: {
                    type: "object"
                  },
                  message: "must be object"
                };
                if (vErrors === null) {
                  vErrors = [err27];
                } else {
                  vErrors.push(err27);
                }
                errors++;
              }
            }
          } else {
            const err28 = {
              instancePath: instancePath + "/spanningCells",
              schemaPath: "#/properties/spanningCells/type",
              keyword: "type",
              params: {
                type: "array"
              },
              message: "must be array"
            };
            if (vErrors === null) {
              vErrors = [err28];
            } else {
              vErrors.push(err28);
            }
            errors++;
          }
        }
      } else {
        const err29 = {
          instancePath,
          schemaPath: "#/type",
          keyword: "type",
          params: {
            type: "object"
          },
          message: "must be object"
        };
        if (vErrors === null) {
          vErrors = [err29];
        } else {
          vErrors.push(err29);
        }
        errors++;
      }
      validate43.errors = vErrors;
      return errors === 0;
    }
    __name(validate43, "validate43");
    exports2["streamConfig.json"] = validate86;
    function validate87(data3, { instancePath = "", parentData, parentDataProperty, rootData = data3 } = {}) {
      let vErrors = null;
      let errors = 0;
      if (data3 && typeof data3 == "object" && !Array.isArray(data3)) {
        for (const key0 in data3) {
          if (!func8.call(schema15.properties, key0)) {
            const err0 = {
              instancePath,
              schemaPath: "#/additionalProperties",
              keyword: "additionalProperties",
              params: {
                additionalProperty: key0
              },
              message: "must NOT have additional properties"
            };
            if (vErrors === null) {
              vErrors = [err0];
            } else {
              vErrors.push(err0);
            }
            errors++;
          }
        }
        if (data3.topBody !== void 0) {
          if (!validate46(data3.topBody, {
            instancePath: instancePath + "/topBody",
            parentData: data3,
            parentDataProperty: "topBody",
            rootData
          })) {
            vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
            errors = vErrors.length;
          }
        }
        if (data3.topJoin !== void 0) {
          if (!validate46(data3.topJoin, {
            instancePath: instancePath + "/topJoin",
            parentData: data3,
            parentDataProperty: "topJoin",
            rootData
          })) {
            vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
            errors = vErrors.length;
          }
        }
        if (data3.topLeft !== void 0) {
          if (!validate46(data3.topLeft, {
            instancePath: instancePath + "/topLeft",
            parentData: data3,
            parentDataProperty: "topLeft",
            rootData
          })) {
            vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
            errors = vErrors.length;
          }
        }
        if (data3.topRight !== void 0) {
          if (!validate46(data3.topRight, {
            instancePath: instancePath + "/topRight",
            parentData: data3,
            parentDataProperty: "topRight",
            rootData
          })) {
            vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
            errors = vErrors.length;
          }
        }
        if (data3.bottomBody !== void 0) {
          if (!validate46(data3.bottomBody, {
            instancePath: instancePath + "/bottomBody",
            parentData: data3,
            parentDataProperty: "bottomBody",
            rootData
          })) {
            vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
            errors = vErrors.length;
          }
        }
        if (data3.bottomJoin !== void 0) {
          if (!validate46(data3.bottomJoin, {
            instancePath: instancePath + "/bottomJoin",
            parentData: data3,
            parentDataProperty: "bottomJoin",
            rootData
          })) {
            vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
            errors = vErrors.length;
          }
        }
        if (data3.bottomLeft !== void 0) {
          if (!validate46(data3.bottomLeft, {
            instancePath: instancePath + "/bottomLeft",
            parentData: data3,
            parentDataProperty: "bottomLeft",
            rootData
          })) {
            vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
            errors = vErrors.length;
          }
        }
        if (data3.bottomRight !== void 0) {
          if (!validate46(data3.bottomRight, {
            instancePath: instancePath + "/bottomRight",
            parentData: data3,
            parentDataProperty: "bottomRight",
            rootData
          })) {
            vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
            errors = vErrors.length;
          }
        }
        if (data3.bodyLeft !== void 0) {
          if (!validate46(data3.bodyLeft, {
            instancePath: instancePath + "/bodyLeft",
            parentData: data3,
            parentDataProperty: "bodyLeft",
            rootData
          })) {
            vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
            errors = vErrors.length;
          }
        }
        if (data3.bodyRight !== void 0) {
          if (!validate46(data3.bodyRight, {
            instancePath: instancePath + "/bodyRight",
            parentData: data3,
            parentDataProperty: "bodyRight",
            rootData
          })) {
            vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
            errors = vErrors.length;
          }
        }
        if (data3.bodyJoin !== void 0) {
          if (!validate46(data3.bodyJoin, {
            instancePath: instancePath + "/bodyJoin",
            parentData: data3,
            parentDataProperty: "bodyJoin",
            rootData
          })) {
            vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
            errors = vErrors.length;
          }
        }
        if (data3.headerJoin !== void 0) {
          if (!validate46(data3.headerJoin, {
            instancePath: instancePath + "/headerJoin",
            parentData: data3,
            parentDataProperty: "headerJoin",
            rootData
          })) {
            vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
            errors = vErrors.length;
          }
        }
        if (data3.joinBody !== void 0) {
          if (!validate46(data3.joinBody, {
            instancePath: instancePath + "/joinBody",
            parentData: data3,
            parentDataProperty: "joinBody",
            rootData
          })) {
            vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
            errors = vErrors.length;
          }
        }
        if (data3.joinLeft !== void 0) {
          if (!validate46(data3.joinLeft, {
            instancePath: instancePath + "/joinLeft",
            parentData: data3,
            parentDataProperty: "joinLeft",
            rootData
          })) {
            vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
            errors = vErrors.length;
          }
        }
        if (data3.joinRight !== void 0) {
          if (!validate46(data3.joinRight, {
            instancePath: instancePath + "/joinRight",
            parentData: data3,
            parentDataProperty: "joinRight",
            rootData
          })) {
            vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
            errors = vErrors.length;
          }
        }
        if (data3.joinJoin !== void 0) {
          if (!validate46(data3.joinJoin, {
            instancePath: instancePath + "/joinJoin",
            parentData: data3,
            parentDataProperty: "joinJoin",
            rootData
          })) {
            vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
            errors = vErrors.length;
          }
        }
        if (data3.joinMiddleUp !== void 0) {
          if (!validate46(data3.joinMiddleUp, {
            instancePath: instancePath + "/joinMiddleUp",
            parentData: data3,
            parentDataProperty: "joinMiddleUp",
            rootData
          })) {
            vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
            errors = vErrors.length;
          }
        }
        if (data3.joinMiddleDown !== void 0) {
          if (!validate46(data3.joinMiddleDown, {
            instancePath: instancePath + "/joinMiddleDown",
            parentData: data3,
            parentDataProperty: "joinMiddleDown",
            rootData
          })) {
            vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
            errors = vErrors.length;
          }
        }
        if (data3.joinMiddleLeft !== void 0) {
          if (!validate46(data3.joinMiddleLeft, {
            instancePath: instancePath + "/joinMiddleLeft",
            parentData: data3,
            parentDataProperty: "joinMiddleLeft",
            rootData
          })) {
            vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
            errors = vErrors.length;
          }
        }
        if (data3.joinMiddleRight !== void 0) {
          if (!validate46(data3.joinMiddleRight, {
            instancePath: instancePath + "/joinMiddleRight",
            parentData: data3,
            parentDataProperty: "joinMiddleRight",
            rootData
          })) {
            vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
            errors = vErrors.length;
          }
        }
      } else {
        const err1 = {
          instancePath,
          schemaPath: "#/type",
          keyword: "type",
          params: {
            type: "object"
          },
          message: "must be object"
        };
        if (vErrors === null) {
          vErrors = [err1];
        } else {
          vErrors.push(err1);
        }
        errors++;
      }
      validate87.errors = vErrors;
      return errors === 0;
    }
    __name(validate87, "validate87");
    function validate109(data3, { instancePath = "", parentData, parentDataProperty, rootData = data3 } = {}) {
      let vErrors = null;
      let errors = 0;
      const _errs0 = errors;
      let valid0 = false;
      let passing0 = null;
      const _errs1 = errors;
      if (data3 && typeof data3 == "object" && !Array.isArray(data3)) {
        for (const key0 in data3) {
          if (!pattern0.test(key0)) {
            const err0 = {
              instancePath,
              schemaPath: "#/oneOf/0/additionalProperties",
              keyword: "additionalProperties",
              params: {
                additionalProperty: key0
              },
              message: "must NOT have additional properties"
            };
            if (vErrors === null) {
              vErrors = [err0];
            } else {
              vErrors.push(err0);
            }
            errors++;
          }
        }
        for (const key1 in data3) {
          if (pattern0.test(key1)) {
            if (!validate71(data3[key1], {
              instancePath: instancePath + "/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"),
              parentData: data3,
              parentDataProperty: key1,
              rootData
            })) {
              vErrors = vErrors === null ? validate71.errors : vErrors.concat(validate71.errors);
              errors = vErrors.length;
            }
          }
        }
      } else {
        const err1 = {
          instancePath,
          schemaPath: "#/oneOf/0/type",
          keyword: "type",
          params: {
            type: "object"
          },
          message: "must be object"
        };
        if (vErrors === null) {
          vErrors = [err1];
        } else {
          vErrors.push(err1);
        }
        errors++;
      }
      var _valid0 = _errs1 === errors;
      if (_valid0) {
        valid0 = true;
        passing0 = 0;
      }
      const _errs5 = errors;
      if (Array.isArray(data3)) {
        const len0 = data3.length;
        for (let i0 = 0; i0 < len0; i0++) {
          if (!validate71(data3[i0], {
            instancePath: instancePath + "/" + i0,
            parentData: data3,
            parentDataProperty: i0,
            rootData
          })) {
            vErrors = vErrors === null ? validate71.errors : vErrors.concat(validate71.errors);
            errors = vErrors.length;
          }
        }
      } else {
        const err2 = {
          instancePath,
          schemaPath: "#/oneOf/1/type",
          keyword: "type",
          params: {
            type: "array"
          },
          message: "must be array"
        };
        if (vErrors === null) {
          vErrors = [err2];
        } else {
          vErrors.push(err2);
        }
        errors++;
      }
      var _valid0 = _errs5 === errors;
      if (_valid0 && valid0) {
        valid0 = false;
        passing0 = [passing0, 1];
      } else {
        if (_valid0) {
          valid0 = true;
          passing0 = 1;
        }
      }
      if (!valid0) {
        const err3 = {
          instancePath,
          schemaPath: "#/oneOf",
          keyword: "oneOf",
          params: {
            passingSchemas: passing0
          },
          message: "must match exactly one schema in oneOf"
        };
        if (vErrors === null) {
          vErrors = [err3];
        } else {
          vErrors.push(err3);
        }
        errors++;
      } else {
        errors = _errs0;
        if (vErrors !== null) {
          if (_errs0) {
            vErrors.length = _errs0;
          } else {
            vErrors = null;
          }
        }
      }
      validate109.errors = vErrors;
      return errors === 0;
    }
    __name(validate109, "validate109");
    function validate113(data3, { instancePath = "", parentData, parentDataProperty, rootData = data3 } = {}) {
      let vErrors = null;
      let errors = 0;
      if (data3 && typeof data3 == "object" && !Array.isArray(data3)) {
        for (const key0 in data3) {
          if (!(key0 === "alignment" || key0 === "verticalAlignment" || key0 === "width" || key0 === "wrapWord" || key0 === "truncate" || key0 === "paddingLeft" || key0 === "paddingRight")) {
            const err0 = {
              instancePath,
              schemaPath: "#/additionalProperties",
              keyword: "additionalProperties",
              params: {
                additionalProperty: key0
              },
              message: "must NOT have additional properties"
            };
            if (vErrors === null) {
              vErrors = [err0];
            } else {
              vErrors.push(err0);
            }
            errors++;
          }
        }
        if (data3.alignment !== void 0) {
          if (!validate72(data3.alignment, {
            instancePath: instancePath + "/alignment",
            parentData: data3,
            parentDataProperty: "alignment",
            rootData
          })) {
            vErrors = vErrors === null ? validate72.errors : vErrors.concat(validate72.errors);
            errors = vErrors.length;
          }
        }
        if (data3.verticalAlignment !== void 0) {
          if (!validate74(data3.verticalAlignment, {
            instancePath: instancePath + "/verticalAlignment",
            parentData: data3,
            parentDataProperty: "verticalAlignment",
            rootData
          })) {
            vErrors = vErrors === null ? validate74.errors : vErrors.concat(validate74.errors);
            errors = vErrors.length;
          }
        }
        if (data3.width !== void 0) {
          let data22 = data3.width;
          if (!(typeof data22 == "number" && (!(data22 % 1) && !isNaN(data22)) && isFinite(data22))) {
            const err1 = {
              instancePath: instancePath + "/width",
              schemaPath: "#/properties/width/type",
              keyword: "type",
              params: {
                type: "integer"
              },
              message: "must be integer"
            };
            if (vErrors === null) {
              vErrors = [err1];
            } else {
              vErrors.push(err1);
            }
            errors++;
          }
          if (typeof data22 == "number" && isFinite(data22)) {
            if (data22 < 1 || isNaN(data22)) {
              const err2 = {
                instancePath: instancePath + "/width",
                schemaPath: "#/properties/width/minimum",
                keyword: "minimum",
                params: {
                  comparison: ">=",
                  limit: 1
                },
                message: "must be >= 1"
              };
              if (vErrors === null) {
                vErrors = [err2];
              } else {
                vErrors.push(err2);
              }
              errors++;
            }
          }
        }
        if (data3.wrapWord !== void 0) {
          if (typeof data3.wrapWord !== "boolean") {
            const err3 = {
              instancePath: instancePath + "/wrapWord",
              schemaPath: "#/properties/wrapWord/type",
              keyword: "type",
              params: {
                type: "boolean"
              },
              message: "must be boolean"
            };
            if (vErrors === null) {
              vErrors = [err3];
            } else {
              vErrors.push(err3);
            }
            errors++;
          }
        }
        if (data3.truncate !== void 0) {
          let data4 = data3.truncate;
          if (!(typeof data4 == "number" && (!(data4 % 1) && !isNaN(data4)) && isFinite(data4))) {
            const err4 = {
              instancePath: instancePath + "/truncate",
              schemaPath: "#/properties/truncate/type",
              keyword: "type",
              params: {
                type: "integer"
              },
              message: "must be integer"
            };
            if (vErrors === null) {
              vErrors = [err4];
            } else {
              vErrors.push(err4);
            }
            errors++;
          }
        }
        if (data3.paddingLeft !== void 0) {
          let data5 = data3.paddingLeft;
          if (!(typeof data5 == "number" && (!(data5 % 1) && !isNaN(data5)) && isFinite(data5))) {
            const err5 = {
              instancePath: instancePath + "/paddingLeft",
              schemaPath: "#/properties/paddingLeft/type",
              keyword: "type",
              params: {
                type: "integer"
              },
              message: "must be integer"
            };
            if (vErrors === null) {
              vErrors = [err5];
            } else {
              vErrors.push(err5);
            }
            errors++;
          }
        }
        if (data3.paddingRight !== void 0) {
          let data6 = data3.paddingRight;
          if (!(typeof data6 == "number" && (!(data6 % 1) && !isNaN(data6)) && isFinite(data6))) {
            const err6 = {
              instancePath: instancePath + "/paddingRight",
              schemaPath: "#/properties/paddingRight/type",
              keyword: "type",
              params: {
                type: "integer"
              },
              message: "must be integer"
            };
            if (vErrors === null) {
              vErrors = [err6];
            } else {
              vErrors.push(err6);
            }
            errors++;
          }
        }
      } else {
        const err7 = {
          instancePath,
          schemaPath: "#/type",
          keyword: "type",
          params: {
            type: "object"
          },
          message: "must be object"
        };
        if (vErrors === null) {
          vErrors = [err7];
        } else {
          vErrors.push(err7);
        }
        errors++;
      }
      validate113.errors = vErrors;
      return errors === 0;
    }
    __name(validate113, "validate113");
    function validate86(data3, { instancePath = "", parentData, parentDataProperty, rootData = data3 } = {}) {
      ;
      let vErrors = null;
      let errors = 0;
      if (data3 && typeof data3 == "object" && !Array.isArray(data3)) {
        if (data3.columnDefault === void 0) {
          const err0 = {
            instancePath,
            schemaPath: "#/required",
            keyword: "required",
            params: {
              missingProperty: "columnDefault"
            },
            message: "must have required property 'columnDefault'"
          };
          if (vErrors === null) {
            vErrors = [err0];
          } else {
            vErrors.push(err0);
          }
          errors++;
        }
        if (data3.columnCount === void 0) {
          const err1 = {
            instancePath,
            schemaPath: "#/required",
            keyword: "required",
            params: {
              missingProperty: "columnCount"
            },
            message: "must have required property 'columnCount'"
          };
          if (vErrors === null) {
            vErrors = [err1];
          } else {
            vErrors.push(err1);
          }
          errors++;
        }
        for (const key0 in data3) {
          if (!(key0 === "border" || key0 === "columns" || key0 === "columnDefault" || key0 === "columnCount" || key0 === "drawVerticalLine")) {
            const err2 = {
              instancePath,
              schemaPath: "#/additionalProperties",
              keyword: "additionalProperties",
              params: {
                additionalProperty: key0
              },
              message: "must NOT have additional properties"
            };
            if (vErrors === null) {
              vErrors = [err2];
            } else {
              vErrors.push(err2);
            }
            errors++;
          }
        }
        if (data3.border !== void 0) {
          if (!validate87(data3.border, {
            instancePath: instancePath + "/border",
            parentData: data3,
            parentDataProperty: "border",
            rootData
          })) {
            vErrors = vErrors === null ? validate87.errors : vErrors.concat(validate87.errors);
            errors = vErrors.length;
          }
        }
        if (data3.columns !== void 0) {
          if (!validate109(data3.columns, {
            instancePath: instancePath + "/columns",
            parentData: data3,
            parentDataProperty: "columns",
            rootData
          })) {
            vErrors = vErrors === null ? validate109.errors : vErrors.concat(validate109.errors);
            errors = vErrors.length;
          }
        }
        if (data3.columnDefault !== void 0) {
          if (!validate113(data3.columnDefault, {
            instancePath: instancePath + "/columnDefault",
            parentData: data3,
            parentDataProperty: "columnDefault",
            rootData
          })) {
            vErrors = vErrors === null ? validate113.errors : vErrors.concat(validate113.errors);
            errors = vErrors.length;
          }
        }
        if (data3.columnCount !== void 0) {
          let data32 = data3.columnCount;
          if (!(typeof data32 == "number" && (!(data32 % 1) && !isNaN(data32)) && isFinite(data32))) {
            const err3 = {
              instancePath: instancePath + "/columnCount",
              schemaPath: "#/properties/columnCount/type",
              keyword: "type",
              params: {
                type: "integer"
              },
              message: "must be integer"
            };
            if (vErrors === null) {
              vErrors = [err3];
            } else {
              vErrors.push(err3);
            }
            errors++;
          }
          if (typeof data32 == "number" && isFinite(data32)) {
            if (data32 < 1 || isNaN(data32)) {
              const err4 = {
                instancePath: instancePath + "/columnCount",
                schemaPath: "#/properties/columnCount/minimum",
                keyword: "minimum",
                params: {
                  comparison: ">=",
                  limit: 1
                },
                message: "must be >= 1"
              };
              if (vErrors === null) {
                vErrors = [err4];
              } else {
                vErrors.push(err4);
              }
              errors++;
            }
          }
        }
        if (data3.drawVerticalLine !== void 0) {
          if (typeof data3.drawVerticalLine != "function") {
            const err5 = {
              instancePath: instancePath + "/drawVerticalLine",
              schemaPath: "#/properties/drawVerticalLine/typeof",
              keyword: "typeof",
              params: {},
              message: 'must pass "typeof" keyword validation'
            };
            if (vErrors === null) {
              vErrors = [err5];
            } else {
              vErrors.push(err5);
            }
            errors++;
          }
        }
      } else {
        const err6 = {
          instancePath,
          schemaPath: "#/type",
          keyword: "type",
          params: {
            type: "object"
          },
          message: "must be object"
        };
        if (vErrors === null) {
          vErrors = [err6];
        } else {
          vErrors.push(err6);
        }
        errors++;
      }
      validate86.errors = vErrors;
      return errors === 0;
    }
    __name(validate86, "validate86");
  }
});

// ../../node_modules/table/dist/src/validateConfig.js
var require_validateConfig = __commonJS({
  "../../node_modules/table/dist/src/validateConfig.js"(exports2) {
    "use strict";
    var __importDefault2 = exports2 && exports2.__importDefault || function(mod) {
      return mod && mod.__esModule ? mod : { "default": mod };
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.validateConfig = void 0;
    var validators_1 = __importDefault2(require_validators5());
    var validateConfig = /* @__PURE__ */ __name((schemaId, config) => {
      const validate3 = validators_1.default[schemaId];
      if (!validate3(config) && validate3.errors) {
        const errors = validate3.errors.map((error5) => {
          return {
            message: error5.message,
            params: error5.params,
            schemaPath: error5.schemaPath
          };
        });
        console.log("config", config);
        console.log("errors", errors);
        throw new Error("Invalid config.");
      }
    }, "validateConfig");
    exports2.validateConfig = validateConfig;
  }
});

// ../../node_modules/table/dist/src/makeStreamConfig.js
var require_makeStreamConfig = __commonJS({
  "../../node_modules/table/dist/src/makeStreamConfig.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.makeStreamConfig = void 0;
    var utils_1 = require_utils6();
    var validateConfig_1 = require_validateConfig();
    var makeColumnsConfig = /* @__PURE__ */ __name((columnCount, columns = {}, columnDefault) => {
      return Array.from({ length: columnCount }).map((_3, index) => {
        return {
          alignment: "left",
          paddingLeft: 1,
          paddingRight: 1,
          truncate: Number.POSITIVE_INFINITY,
          verticalAlignment: "top",
          wrapWord: false,
          ...columnDefault,
          ...columns[index]
        };
      });
    }, "makeColumnsConfig");
    var makeStreamConfig = /* @__PURE__ */ __name((config) => {
      (0, validateConfig_1.validateConfig)("streamConfig.json", config);
      if (config.columnDefault.width === void 0) {
        throw new Error("Must provide config.columnDefault.width when creating a stream.");
      }
      return {
        drawVerticalLine: /* @__PURE__ */ __name(() => {
          return true;
        }, "drawVerticalLine"),
        ...config,
        border: (0, utils_1.makeBorderConfig)(config.border),
        columns: makeColumnsConfig(config.columnCount, config.columns, config.columnDefault)
      };
    }, "makeStreamConfig");
    exports2.makeStreamConfig = makeStreamConfig;
  }
});

// ../../node_modules/table/dist/src/mapDataUsingRowHeights.js
var require_mapDataUsingRowHeights = __commonJS({
  "../../node_modules/table/dist/src/mapDataUsingRowHeights.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.mapDataUsingRowHeights = exports2.padCellVertically = void 0;
    var utils_1 = require_utils6();
    var wrapCell_1 = require_wrapCell();
    var createEmptyStrings = /* @__PURE__ */ __name((length) => {
      return new Array(length).fill("");
    }, "createEmptyStrings");
    var padCellVertically = /* @__PURE__ */ __name((lines, rowHeight, verticalAlignment) => {
      const availableLines = rowHeight - lines.length;
      if (verticalAlignment === "top") {
        return [...lines, ...createEmptyStrings(availableLines)];
      }
      if (verticalAlignment === "bottom") {
        return [...createEmptyStrings(availableLines), ...lines];
      }
      return [
        ...createEmptyStrings(Math.floor(availableLines / 2)),
        ...lines,
        ...createEmptyStrings(Math.ceil(availableLines / 2))
      ];
    }, "padCellVertically");
    exports2.padCellVertically = padCellVertically;
    var mapDataUsingRowHeights = /* @__PURE__ */ __name((unmappedRows, rowHeights, config) => {
      const nColumns = unmappedRows[0].length;
      const mappedRows = unmappedRows.map((unmappedRow, unmappedRowIndex) => {
        const outputRowHeight = rowHeights[unmappedRowIndex];
        const outputRow = Array.from({ length: outputRowHeight }, () => {
          return new Array(nColumns).fill("");
        });
        unmappedRow.forEach((cell, cellIndex) => {
          var _a2;
          const containingRange = (_a2 = config.spanningCellManager) === null || _a2 === void 0 ? void 0 : _a2.getContainingRange({
            col: cellIndex,
            row: unmappedRowIndex
          });
          if (containingRange) {
            containingRange.extractCellContent(unmappedRowIndex).forEach((cellLine, cellLineIndex) => {
              outputRow[cellLineIndex][cellIndex] = cellLine;
            });
            return;
          }
          const cellLines = (0, wrapCell_1.wrapCell)(cell, config.columns[cellIndex].width, config.columns[cellIndex].wrapWord);
          const paddedCellLines = (0, exports2.padCellVertically)(cellLines, outputRowHeight, config.columns[cellIndex].verticalAlignment);
          paddedCellLines.forEach((cellLine, cellLineIndex) => {
            outputRow[cellLineIndex][cellIndex] = cellLine;
          });
        });
        return outputRow;
      });
      return (0, utils_1.flatten)(mappedRows);
    }, "mapDataUsingRowHeights");
    exports2.mapDataUsingRowHeights = mapDataUsingRowHeights;
  }
});

// ../../node_modules/table/dist/src/padTableData.js
var require_padTableData = __commonJS({
  "../../node_modules/table/dist/src/padTableData.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.padTableData = exports2.padString = void 0;
    var padString = /* @__PURE__ */ __name((input, paddingLeft, paddingRight) => {
      return " ".repeat(paddingLeft) + input + " ".repeat(paddingRight);
    }, "padString");
    exports2.padString = padString;
    var padTableData = /* @__PURE__ */ __name((rows, config) => {
      return rows.map((cells, rowIndex) => {
        return cells.map((cell, cellIndex) => {
          var _a2;
          const containingRange = (_a2 = config.spanningCellManager) === null || _a2 === void 0 ? void 0 : _a2.getContainingRange({
            col: cellIndex,
            row: rowIndex
          }, { mapped: true });
          if (containingRange) {
            return cell;
          }
          const { paddingLeft, paddingRight } = config.columns[cellIndex];
          return (0, exports2.padString)(cell, paddingLeft, paddingRight);
        });
      });
    }, "padTableData");
    exports2.padTableData = padTableData;
  }
});

// ../../node_modules/table/dist/src/stringifyTableData.js
var require_stringifyTableData = __commonJS({
  "../../node_modules/table/dist/src/stringifyTableData.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.stringifyTableData = void 0;
    var utils_1 = require_utils6();
    var stringifyTableData = /* @__PURE__ */ __name((rows) => {
      return rows.map((cells) => {
        return cells.map((cell) => {
          return (0, utils_1.normalizeString)(String(cell));
        });
      });
    }, "stringifyTableData");
    exports2.stringifyTableData = stringifyTableData;
  }
});

// ../../node_modules/lodash.truncate/index.js
var require_lodash = __commonJS({
  "../../node_modules/lodash.truncate/index.js"(exports2, module2) {
    var DEFAULT_TRUNC_LENGTH = 30;
    var DEFAULT_TRUNC_OMISSION = "...";
    var INFINITY = 1 / 0;
    var MAX_INTEGER = 17976931348623157e292;
    var NAN = 0 / 0;
    var regexpTag = "[object RegExp]";
    var symbolTag = "[object Symbol]";
    var reTrim = /^\s+|\s+$/g;
    var reFlags = /\w*$/;
    var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
    var reIsBinary = /^0b[01]+$/i;
    var reIsOctal = /^0o[0-7]+$/i;
    var rsAstralRange = "\\ud800-\\udfff";
    var rsComboMarksRange = "\\u0300-\\u036f\\ufe20-\\ufe23";
    var rsComboSymbolsRange = "\\u20d0-\\u20f0";
    var rsVarRange = "\\ufe0e\\ufe0f";
    var rsAstral = "[" + rsAstralRange + "]";
    var rsCombo = "[" + rsComboMarksRange + rsComboSymbolsRange + "]";
    var rsFitz = "\\ud83c[\\udffb-\\udfff]";
    var rsModifier = "(?:" + rsCombo + "|" + rsFitz + ")";
    var rsNonAstral = "[^" + rsAstralRange + "]";
    var rsRegional = "(?:\\ud83c[\\udde6-\\uddff]){2}";
    var rsSurrPair = "[\\ud800-\\udbff][\\udc00-\\udfff]";
    var rsZWJ = "\\u200d";
    var reOptMod = rsModifier + "?";
    var rsOptVar = "[" + rsVarRange + "]?";
    var rsOptJoin = "(?:" + rsZWJ + "(?:" + [rsNonAstral, rsRegional, rsSurrPair].join("|") + ")" + rsOptVar + reOptMod + ")*";
    var rsSeq = rsOptVar + reOptMod + rsOptJoin;
    var rsSymbol = "(?:" + [rsNonAstral + rsCombo + "?", rsCombo, rsRegional, rsSurrPair, rsAstral].join("|") + ")";
    var reUnicode = RegExp(rsFitz + "(?=" + rsFitz + ")|" + rsSymbol + rsSeq, "g");
    var reHasUnicode = RegExp("[" + rsZWJ + rsAstralRange + rsComboMarksRange + rsComboSymbolsRange + rsVarRange + "]");
    var freeParseInt = parseInt;
    var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
    var freeSelf = typeof self == "object" && self && self.Object === Object && self;
    var root = freeGlobal || freeSelf || Function("return this")();
    var freeExports = typeof exports2 == "object" && exports2 && !exports2.nodeType && exports2;
    var freeModule = freeExports && typeof module2 == "object" && module2 && !module2.nodeType && module2;
    var moduleExports = freeModule && freeModule.exports === freeExports;
    var freeProcess = moduleExports && freeGlobal.process;
    var nodeUtil = (function() {
      try {
        return freeProcess && freeProcess.binding("util");
      } catch (e3) {
      }
    })();
    var nodeIsRegExp = nodeUtil && nodeUtil.isRegExp;
    var asciiSize = baseProperty("length");
    function asciiToArray(string) {
      return string.split("");
    }
    __name(asciiToArray, "asciiToArray");
    function baseProperty(key) {
      return function(object) {
        return object == null ? void 0 : object[key];
      };
    }
    __name(baseProperty, "baseProperty");
    function baseUnary(func) {
      return function(value) {
        return func(value);
      };
    }
    __name(baseUnary, "baseUnary");
    function hasUnicode(string) {
      return reHasUnicode.test(string);
    }
    __name(hasUnicode, "hasUnicode");
    function stringSize(string) {
      return hasUnicode(string) ? unicodeSize(string) : asciiSize(string);
    }
    __name(stringSize, "stringSize");
    function stringToArray(string) {
      return hasUnicode(string) ? unicodeToArray(string) : asciiToArray(string);
    }
    __name(stringToArray, "stringToArray");
    function unicodeSize(string) {
      var result2 = reUnicode.lastIndex = 0;
      while (reUnicode.test(string)) {
        result2++;
      }
      return result2;
    }
    __name(unicodeSize, "unicodeSize");
    function unicodeToArray(string) {
      return string.match(reUnicode) || [];
    }
    __name(unicodeToArray, "unicodeToArray");
    var objectProto = Object.prototype;
    var objectToString = objectProto.toString;
    var Symbol2 = root.Symbol;
    var symbolProto = Symbol2 ? Symbol2.prototype : void 0;
    var symbolToString = symbolProto ? symbolProto.toString : void 0;
    function baseIsRegExp(value) {
      return isObject3(value) && objectToString.call(value) == regexpTag;
    }
    __name(baseIsRegExp, "baseIsRegExp");
    function baseSlice(array, start, end) {
      var index = -1, length = array.length;
      if (start < 0) {
        start = -start > length ? 0 : length + start;
      }
      end = end > length ? length : end;
      if (end < 0) {
        end += length;
      }
      length = start > end ? 0 : end - start >>> 0;
      start >>>= 0;
      var result2 = Array(length);
      while (++index < length) {
        result2[index] = array[index + start];
      }
      return result2;
    }
    __name(baseSlice, "baseSlice");
    function baseToString(value) {
      if (typeof value == "string") {
        return value;
      }
      if (isSymbol(value)) {
        return symbolToString ? symbolToString.call(value) : "";
      }
      var result2 = value + "";
      return result2 == "0" && 1 / value == -INFINITY ? "-0" : result2;
    }
    __name(baseToString, "baseToString");
    function castSlice(array, start, end) {
      var length = array.length;
      end = end === void 0 ? length : end;
      return !start && end >= length ? array : baseSlice(array, start, end);
    }
    __name(castSlice, "castSlice");
    function isObject3(value) {
      var type = typeof value;
      return !!value && (type == "object" || type == "function");
    }
    __name(isObject3, "isObject");
    function isObjectLike(value) {
      return !!value && typeof value == "object";
    }
    __name(isObjectLike, "isObjectLike");
    var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;
    function isSymbol(value) {
      return typeof value == "symbol" || isObjectLike(value) && objectToString.call(value) == symbolTag;
    }
    __name(isSymbol, "isSymbol");
    function toFinite(value) {
      if (!value) {
        return value === 0 ? value : 0;
      }
      value = toNumber2(value);
      if (value === INFINITY || value === -INFINITY) {
        var sign = value < 0 ? -1 : 1;
        return sign * MAX_INTEGER;
      }
      return value === value ? value : 0;
    }
    __name(toFinite, "toFinite");
    function toInteger(value) {
      var result2 = toFinite(value), remainder = result2 % 1;
      return result2 === result2 ? remainder ? result2 - remainder : result2 : 0;
    }
    __name(toInteger, "toInteger");
    function toNumber2(value) {
      if (typeof value == "number") {
        return value;
      }
      if (isSymbol(value)) {
        return NAN;
      }
      if (isObject3(value)) {
        var other = typeof value.valueOf == "function" ? value.valueOf() : value;
        value = isObject3(other) ? other + "" : other;
      }
      if (typeof value != "string") {
        return value === 0 ? value : +value;
      }
      value = value.replace(reTrim, "");
      var isBinary = reIsBinary.test(value);
      return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
    }
    __name(toNumber2, "toNumber");
    function toString(value) {
      return value == null ? "" : baseToString(value);
    }
    __name(toString, "toString");
    function truncate(string, options) {
      var length = DEFAULT_TRUNC_LENGTH, omission = DEFAULT_TRUNC_OMISSION;
      if (isObject3(options)) {
        var separator = "separator" in options ? options.separator : separator;
        length = "length" in options ? toInteger(options.length) : length;
        omission = "omission" in options ? baseToString(options.omission) : omission;
      }
      string = toString(string);
      var strLength = string.length;
      if (hasUnicode(string)) {
        var strSymbols = stringToArray(string);
        strLength = strSymbols.length;
      }
      if (length >= strLength) {
        return string;
      }
      var end = length - stringSize(omission);
      if (end < 1) {
        return omission;
      }
      var result2 = strSymbols ? castSlice(strSymbols, 0, end).join("") : string.slice(0, end);
      if (separator === void 0) {
        return result2 + omission;
      }
      if (strSymbols) {
        end += result2.length - end;
      }
      if (isRegExp(separator)) {
        if (string.slice(end).search(separator)) {
          var match4, substring = result2;
          if (!separator.global) {
            separator = RegExp(separator.source, toString(reFlags.exec(separator)) + "g");
          }
          separator.lastIndex = 0;
          while (match4 = separator.exec(substring)) {
            var newEnd = match4.index;
          }
          result2 = result2.slice(0, newEnd === void 0 ? end : newEnd);
        }
      } else if (string.indexOf(baseToString(separator), end) != end) {
        var index = result2.lastIndexOf(separator);
        if (index > -1) {
          result2 = result2.slice(0, index);
        }
      }
      return result2 + omission;
    }
    __name(truncate, "truncate");
    module2.exports = truncate;
  }
});

// ../../node_modules/table/dist/src/truncateTableData.js
var require_truncateTableData = __commonJS({
  "../../node_modules/table/dist/src/truncateTableData.js"(exports2) {
    "use strict";
    var __importDefault2 = exports2 && exports2.__importDefault || function(mod) {
      return mod && mod.__esModule ? mod : { "default": mod };
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.truncateTableData = exports2.truncateString = void 0;
    var lodash_truncate_1 = __importDefault2(require_lodash());
    var truncateString = /* @__PURE__ */ __name((input, length) => {
      return (0, lodash_truncate_1.default)(input, {
        length,
        omission: "\u2026"
      });
    }, "truncateString");
    exports2.truncateString = truncateString;
    var truncateTableData = /* @__PURE__ */ __name((rows, truncates) => {
      return rows.map((cells) => {
        return cells.map((cell, cellIndex) => {
          return (0, exports2.truncateString)(cell, truncates[cellIndex]);
        });
      });
    }, "truncateTableData");
    exports2.truncateTableData = truncateTableData;
  }
});

// ../../node_modules/table/dist/src/createStream.js
var require_createStream = __commonJS({
  "../../node_modules/table/dist/src/createStream.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.createStream = void 0;
    var alignTableData_1 = require_alignTableData();
    var calculateRowHeights_1 = require_calculateRowHeights();
    var drawBorder_1 = require_drawBorder();
    var drawRow_1 = require_drawRow();
    var makeStreamConfig_1 = require_makeStreamConfig();
    var mapDataUsingRowHeights_1 = require_mapDataUsingRowHeights();
    var padTableData_1 = require_padTableData();
    var stringifyTableData_1 = require_stringifyTableData();
    var truncateTableData_1 = require_truncateTableData();
    var utils_1 = require_utils6();
    var prepareData = /* @__PURE__ */ __name((data3, config) => {
      let rows = (0, stringifyTableData_1.stringifyTableData)(data3);
      rows = (0, truncateTableData_1.truncateTableData)(rows, (0, utils_1.extractTruncates)(config));
      const rowHeights = (0, calculateRowHeights_1.calculateRowHeights)(rows, config);
      rows = (0, mapDataUsingRowHeights_1.mapDataUsingRowHeights)(rows, rowHeights, config);
      rows = (0, alignTableData_1.alignTableData)(rows, config);
      rows = (0, padTableData_1.padTableData)(rows, config);
      return rows;
    }, "prepareData");
    var create = /* @__PURE__ */ __name((row, columnWidths, config) => {
      const rows = prepareData([row], config);
      const body = rows.map((literalRow) => {
        return (0, drawRow_1.drawRow)(literalRow, config);
      }).join("");
      let output;
      output = "";
      output += (0, drawBorder_1.drawBorderTop)(columnWidths, config);
      output += body;
      output += (0, drawBorder_1.drawBorderBottom)(columnWidths, config);
      output = output.trimEnd();
      process.stdout.write(output);
    }, "create");
    var append = /* @__PURE__ */ __name((row, columnWidths, config) => {
      const rows = prepareData([row], config);
      const body = rows.map((literalRow) => {
        return (0, drawRow_1.drawRow)(literalRow, config);
      }).join("");
      let output = "";
      const bottom = (0, drawBorder_1.drawBorderBottom)(columnWidths, config);
      if (bottom !== "\n") {
        output = "\r\x1B[K";
      }
      output += (0, drawBorder_1.drawBorderJoin)(columnWidths, config);
      output += body;
      output += bottom;
      output = output.trimEnd();
      process.stdout.write(output);
    }, "append");
    var createStream = /* @__PURE__ */ __name((userConfig) => {
      const config = (0, makeStreamConfig_1.makeStreamConfig)(userConfig);
      const columnWidths = Object.values(config.columns).map((column) => {
        return column.width + column.paddingLeft + column.paddingRight;
      });
      let empty = true;
      return {
        write: /* @__PURE__ */ __name((row) => {
          if (row.length !== config.columnCount) {
            throw new Error("Row cell count does not match the config.columnCount.");
          }
          if (empty) {
            empty = false;
            create(row, columnWidths, config);
          } else {
            append(row, columnWidths, config);
          }
        }, "write")
      };
    }, "createStream");
    exports2.createStream = createStream;
  }
});

// ../../node_modules/table/dist/src/calculateOutputColumnWidths.js
var require_calculateOutputColumnWidths = __commonJS({
  "../../node_modules/table/dist/src/calculateOutputColumnWidths.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.calculateOutputColumnWidths = void 0;
    var calculateOutputColumnWidths = /* @__PURE__ */ __name((config) => {
      return config.columns.map((col) => {
        return col.paddingLeft + col.width + col.paddingRight;
      });
    }, "calculateOutputColumnWidths");
    exports2.calculateOutputColumnWidths = calculateOutputColumnWidths;
  }
});

// ../../node_modules/table/dist/src/drawTable.js
var require_drawTable = __commonJS({
  "../../node_modules/table/dist/src/drawTable.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.drawTable = void 0;
    var drawBorder_1 = require_drawBorder();
    var drawContent_1 = require_drawContent();
    var drawRow_1 = require_drawRow();
    var utils_1 = require_utils6();
    var drawTable = /* @__PURE__ */ __name((rows, outputColumnWidths, rowHeights, config) => {
      const { drawHorizontalLine, singleLine } = config;
      const contents = (0, utils_1.groupBySizes)(rows, rowHeights).map((group, groupIndex) => {
        return group.map((row) => {
          return (0, drawRow_1.drawRow)(row, {
            ...config,
            rowIndex: groupIndex
          });
        }).join("");
      });
      return (0, drawContent_1.drawContent)({
        contents,
        drawSeparator: /* @__PURE__ */ __name((index, size) => {
          if (index === 0 || index === size) {
            return drawHorizontalLine(index, size);
          }
          return !singleLine && drawHorizontalLine(index, size);
        }, "drawSeparator"),
        elementType: "row",
        rowIndex: -1,
        separatorGetter: (0, drawBorder_1.createTableBorderGetter)(outputColumnWidths, {
          ...config,
          rowCount: contents.length
        }),
        spanningCellManager: config.spanningCellManager
      });
    }, "drawTable");
    exports2.drawTable = drawTable;
  }
});

// ../../node_modules/table/dist/src/injectHeaderConfig.js
var require_injectHeaderConfig = __commonJS({
  "../../node_modules/table/dist/src/injectHeaderConfig.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.injectHeaderConfig = void 0;
    var injectHeaderConfig = /* @__PURE__ */ __name((rows, config) => {
      var _a2;
      let spanningCellConfig = (_a2 = config.spanningCells) !== null && _a2 !== void 0 ? _a2 : [];
      const headerConfig = config.header;
      const adjustedRows = [...rows];
      if (headerConfig) {
        spanningCellConfig = spanningCellConfig.map(({ row, ...rest }) => {
          return {
            ...rest,
            row: row + 1
          };
        });
        const { content, ...headerStyles } = headerConfig;
        spanningCellConfig.unshift({
          alignment: "center",
          col: 0,
          colSpan: rows[0].length,
          paddingLeft: 1,
          paddingRight: 1,
          row: 0,
          wrapWord: false,
          ...headerStyles
        });
        adjustedRows.unshift([content, ...Array.from({ length: rows[0].length - 1 }).fill("")]);
      }
      return [
        adjustedRows,
        spanningCellConfig
      ];
    }, "injectHeaderConfig");
    exports2.injectHeaderConfig = injectHeaderConfig;
  }
});

// ../../node_modules/table/dist/src/calculateMaximumColumnWidths.js
var require_calculateMaximumColumnWidths = __commonJS({
  "../../node_modules/table/dist/src/calculateMaximumColumnWidths.js"(exports2) {
    "use strict";
    var __importDefault2 = exports2 && exports2.__importDefault || function(mod) {
      return mod && mod.__esModule ? mod : { "default": mod };
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.calculateMaximumColumnWidths = exports2.calculateMaximumCellWidth = void 0;
    var string_width_1 = __importDefault2(require_string_width());
    var utils_1 = require_utils6();
    var calculateMaximumCellWidth = /* @__PURE__ */ __name((cell) => {
      return Math.max(...cell.split("\n").map(string_width_1.default));
    }, "calculateMaximumCellWidth");
    exports2.calculateMaximumCellWidth = calculateMaximumCellWidth;
    var calculateMaximumColumnWidths = /* @__PURE__ */ __name((rows, spanningCellConfigs = []) => {
      const columnWidths = new Array(rows[0].length).fill(0);
      const rangeCoordinates = spanningCellConfigs.map(utils_1.calculateRangeCoordinate);
      const isSpanningCell = /* @__PURE__ */ __name((rowIndex, columnIndex) => {
        return rangeCoordinates.some((rangeCoordinate) => {
          return (0, utils_1.isCellInRange)({
            col: columnIndex,
            row: rowIndex
          }, rangeCoordinate);
        });
      }, "isSpanningCell");
      rows.forEach((row, rowIndex) => {
        row.forEach((cell, cellIndex) => {
          if (isSpanningCell(rowIndex, cellIndex)) {
            return;
          }
          columnWidths[cellIndex] = Math.max(columnWidths[cellIndex], (0, exports2.calculateMaximumCellWidth)(cell));
        });
      });
      return columnWidths;
    }, "calculateMaximumColumnWidths");
    exports2.calculateMaximumColumnWidths = calculateMaximumColumnWidths;
  }
});

// ../../node_modules/table/dist/src/alignSpanningCell.js
var require_alignSpanningCell = __commonJS({
  "../../node_modules/table/dist/src/alignSpanningCell.js"(exports2) {
    "use strict";
    var __importDefault2 = exports2 && exports2.__importDefault || function(mod) {
      return mod && mod.__esModule ? mod : { "default": mod };
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.alignVerticalRangeContent = exports2.wrapRangeContent = void 0;
    var string_width_1 = __importDefault2(require_string_width());
    var alignString_1 = require_alignString();
    var mapDataUsingRowHeights_1 = require_mapDataUsingRowHeights();
    var padTableData_1 = require_padTableData();
    var truncateTableData_1 = require_truncateTableData();
    var utils_1 = require_utils6();
    var wrapCell_1 = require_wrapCell();
    var wrapRangeContent = /* @__PURE__ */ __name((rangeConfig, rangeWidth, context) => {
      const { topLeft, paddingRight, paddingLeft, truncate, wrapWord, alignment } = rangeConfig;
      const originalContent = context.rows[topLeft.row][topLeft.col];
      const contentWidth = rangeWidth - paddingLeft - paddingRight;
      return (0, wrapCell_1.wrapCell)((0, truncateTableData_1.truncateString)(originalContent, truncate), contentWidth, wrapWord).map((line) => {
        const alignedLine = (0, alignString_1.alignString)(line, contentWidth, alignment);
        return (0, padTableData_1.padString)(alignedLine, paddingLeft, paddingRight);
      });
    }, "wrapRangeContent");
    exports2.wrapRangeContent = wrapRangeContent;
    var alignVerticalRangeContent = /* @__PURE__ */ __name((range2, content, context) => {
      const { rows, drawHorizontalLine, rowHeights } = context;
      const { topLeft, bottomRight, verticalAlignment } = range2;
      if (rowHeights.length === 0) {
        return [];
      }
      const totalCellHeight = (0, utils_1.sumArray)(rowHeights.slice(topLeft.row, bottomRight.row + 1));
      const totalBorderHeight = bottomRight.row - topLeft.row;
      const hiddenHorizontalBorderCount = (0, utils_1.sequence)(topLeft.row + 1, bottomRight.row).filter((horizontalBorderIndex) => {
        return !drawHorizontalLine(horizontalBorderIndex, rows.length);
      }).length;
      const availableRangeHeight = totalCellHeight + totalBorderHeight - hiddenHorizontalBorderCount;
      return (0, mapDataUsingRowHeights_1.padCellVertically)(content, availableRangeHeight, verticalAlignment).map((line) => {
        if (line.length === 0) {
          return " ".repeat((0, string_width_1.default)(content[0]));
        }
        return line;
      });
    }, "alignVerticalRangeContent");
    exports2.alignVerticalRangeContent = alignVerticalRangeContent;
  }
});

// ../../node_modules/table/dist/src/calculateSpanningCellWidth.js
var require_calculateSpanningCellWidth = __commonJS({
  "../../node_modules/table/dist/src/calculateSpanningCellWidth.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.calculateSpanningCellWidth = void 0;
    var utils_1 = require_utils6();
    var calculateSpanningCellWidth = /* @__PURE__ */ __name((rangeConfig, dependencies) => {
      const { columnsConfig, drawVerticalLine } = dependencies;
      const { topLeft, bottomRight } = rangeConfig;
      const totalWidth = (0, utils_1.sumArray)(columnsConfig.slice(topLeft.col, bottomRight.col + 1).map(({ width }) => {
        return width;
      }));
      const totalPadding = topLeft.col === bottomRight.col ? columnsConfig[topLeft.col].paddingRight + columnsConfig[bottomRight.col].paddingLeft : (0, utils_1.sumArray)(columnsConfig.slice(topLeft.col, bottomRight.col + 1).map(({ paddingLeft, paddingRight }) => {
        return paddingLeft + paddingRight;
      }));
      const totalBorderWidths = bottomRight.col - topLeft.col;
      const totalHiddenVerticalBorders = (0, utils_1.sequence)(topLeft.col + 1, bottomRight.col).filter((verticalBorderIndex) => {
        return !drawVerticalLine(verticalBorderIndex, columnsConfig.length);
      }).length;
      return totalWidth + totalPadding + totalBorderWidths - totalHiddenVerticalBorders;
    }, "calculateSpanningCellWidth");
    exports2.calculateSpanningCellWidth = calculateSpanningCellWidth;
  }
});

// ../../node_modules/table/dist/src/makeRangeConfig.js
var require_makeRangeConfig = __commonJS({
  "../../node_modules/table/dist/src/makeRangeConfig.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.makeRangeConfig = void 0;
    var utils_1 = require_utils6();
    var makeRangeConfig = /* @__PURE__ */ __name((spanningCellConfig, columnsConfig) => {
      var _a2;
      const { topLeft, bottomRight } = (0, utils_1.calculateRangeCoordinate)(spanningCellConfig);
      const cellConfig = {
        ...columnsConfig[topLeft.col],
        ...spanningCellConfig,
        paddingRight: (_a2 = spanningCellConfig.paddingRight) !== null && _a2 !== void 0 ? _a2 : columnsConfig[bottomRight.col].paddingRight
      };
      return {
        ...cellConfig,
        bottomRight,
        topLeft
      };
    }, "makeRangeConfig");
    exports2.makeRangeConfig = makeRangeConfig;
  }
});

// ../../node_modules/table/dist/src/spanningCellManager.js
var require_spanningCellManager = __commonJS({
  "../../node_modules/table/dist/src/spanningCellManager.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.createSpanningCellManager = void 0;
    var alignSpanningCell_1 = require_alignSpanningCell();
    var calculateSpanningCellWidth_1 = require_calculateSpanningCellWidth();
    var makeRangeConfig_1 = require_makeRangeConfig();
    var utils_1 = require_utils6();
    var findRangeConfig = /* @__PURE__ */ __name((cell, rangeConfigs) => {
      return rangeConfigs.find((rangeCoordinate) => {
        return (0, utils_1.isCellInRange)(cell, rangeCoordinate);
      });
    }, "findRangeConfig");
    var getContainingRange = /* @__PURE__ */ __name((rangeConfig, context) => {
      const width = (0, calculateSpanningCellWidth_1.calculateSpanningCellWidth)(rangeConfig, context);
      const wrappedContent = (0, alignSpanningCell_1.wrapRangeContent)(rangeConfig, width, context);
      const alignedContent = (0, alignSpanningCell_1.alignVerticalRangeContent)(rangeConfig, wrappedContent, context);
      const getCellContent = /* @__PURE__ */ __name((rowIndex) => {
        const { topLeft } = rangeConfig;
        const { drawHorizontalLine, rowHeights } = context;
        const totalWithinHorizontalBorderHeight = rowIndex - topLeft.row;
        const totalHiddenHorizontalBorderHeight = (0, utils_1.sequence)(topLeft.row + 1, rowIndex).filter((index) => {
          return !(drawHorizontalLine === null || drawHorizontalLine === void 0 ? void 0 : drawHorizontalLine(index, rowHeights.length));
        }).length;
        const offset = (0, utils_1.sumArray)(rowHeights.slice(topLeft.row, rowIndex)) + totalWithinHorizontalBorderHeight - totalHiddenHorizontalBorderHeight;
        return alignedContent.slice(offset, offset + rowHeights[rowIndex]);
      }, "getCellContent");
      const getBorderContent = /* @__PURE__ */ __name((borderIndex) => {
        const { topLeft } = rangeConfig;
        const offset = (0, utils_1.sumArray)(context.rowHeights.slice(topLeft.row, borderIndex)) + (borderIndex - topLeft.row - 1);
        return alignedContent[offset];
      }, "getBorderContent");
      return {
        ...rangeConfig,
        extractBorderContent: getBorderContent,
        extractCellContent: getCellContent,
        height: wrappedContent.length,
        width
      };
    }, "getContainingRange");
    var inSameRange = /* @__PURE__ */ __name((cell1, cell2, ranges) => {
      const range1 = findRangeConfig(cell1, ranges);
      const range2 = findRangeConfig(cell2, ranges);
      if (range1 && range2) {
        return (0, utils_1.areCellEqual)(range1.topLeft, range2.topLeft);
      }
      return false;
    }, "inSameRange");
    var hashRange = /* @__PURE__ */ __name((range2) => {
      const { row, col } = range2.topLeft;
      return `${row}/${col}`;
    }, "hashRange");
    var createSpanningCellManager = /* @__PURE__ */ __name((parameters) => {
      const { spanningCellConfigs, columnsConfig } = parameters;
      const ranges = spanningCellConfigs.map((config) => {
        return (0, makeRangeConfig_1.makeRangeConfig)(config, columnsConfig);
      });
      const rangeCache = {};
      let rowHeights = [];
      let rowIndexMapping = [];
      return {
        getContainingRange: /* @__PURE__ */ __name((cell, options) => {
          var _a2;
          const originalRow = (options === null || options === void 0 ? void 0 : options.mapped) ? rowIndexMapping[cell.row] : cell.row;
          const range2 = findRangeConfig({
            ...cell,
            row: originalRow
          }, ranges);
          if (!range2) {
            return void 0;
          }
          if (rowHeights.length === 0) {
            return getContainingRange(range2, {
              ...parameters,
              rowHeights
            });
          }
          const hash = hashRange(range2);
          (_a2 = rangeCache[hash]) !== null && _a2 !== void 0 ? _a2 : rangeCache[hash] = getContainingRange(range2, {
            ...parameters,
            rowHeights
          });
          return rangeCache[hash];
        }, "getContainingRange"),
        inSameRange: /* @__PURE__ */ __name((cell1, cell2) => {
          return inSameRange(cell1, cell2, ranges);
        }, "inSameRange"),
        rowHeights,
        rowIndexMapping,
        setRowHeights: /* @__PURE__ */ __name((_rowHeights) => {
          rowHeights = _rowHeights;
        }, "setRowHeights"),
        setRowIndexMapping: /* @__PURE__ */ __name((mappedRowHeights) => {
          rowIndexMapping = (0, utils_1.flatten)(mappedRowHeights.map((height, index) => {
            return Array.from({ length: height }, () => {
              return index;
            });
          }));
        }, "setRowIndexMapping")
      };
    }, "createSpanningCellManager");
    exports2.createSpanningCellManager = createSpanningCellManager;
  }
});

// ../../node_modules/table/dist/src/validateSpanningCellConfig.js
var require_validateSpanningCellConfig = __commonJS({
  "../../node_modules/table/dist/src/validateSpanningCellConfig.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.validateSpanningCellConfig = void 0;
    var utils_1 = require_utils6();
    var inRange = /* @__PURE__ */ __name((start, end, value) => {
      return start <= value && value <= end;
    }, "inRange");
    var validateSpanningCellConfig = /* @__PURE__ */ __name((rows, configs) => {
      const [nRow, nCol] = [rows.length, rows[0].length];
      configs.forEach((config, configIndex) => {
        const { colSpan, rowSpan } = config;
        if (colSpan === void 0 && rowSpan === void 0) {
          throw new Error(`Expect at least colSpan or rowSpan is provided in config.spanningCells[${configIndex}]`);
        }
        if (colSpan !== void 0 && colSpan < 1) {
          throw new Error(`Expect colSpan is not equal zero, instead got: ${colSpan} in config.spanningCells[${configIndex}]`);
        }
        if (rowSpan !== void 0 && rowSpan < 1) {
          throw new Error(`Expect rowSpan is not equal zero, instead got: ${rowSpan} in config.spanningCells[${configIndex}]`);
        }
      });
      const rangeCoordinates = configs.map(utils_1.calculateRangeCoordinate);
      rangeCoordinates.forEach(({ topLeft, bottomRight }, rangeIndex) => {
        if (!inRange(0, nCol - 1, topLeft.col) || !inRange(0, nRow - 1, topLeft.row) || !inRange(0, nCol - 1, bottomRight.col) || !inRange(0, nRow - 1, bottomRight.row)) {
          throw new Error(`Some cells in config.spanningCells[${rangeIndex}] are out of the table`);
        }
      });
      const configOccupy = Array.from({ length: nRow }, () => {
        return Array.from({ length: nCol });
      });
      rangeCoordinates.forEach(({ topLeft, bottomRight }, rangeIndex) => {
        (0, utils_1.sequence)(topLeft.row, bottomRight.row).forEach((row) => {
          (0, utils_1.sequence)(topLeft.col, bottomRight.col).forEach((col) => {
            if (configOccupy[row][col] !== void 0) {
              throw new Error(`Spanning cells in config.spanningCells[${configOccupy[row][col]}] and config.spanningCells[${rangeIndex}] are overlap each other`);
            }
            configOccupy[row][col] = rangeIndex;
          });
        });
      });
    }, "validateSpanningCellConfig");
    exports2.validateSpanningCellConfig = validateSpanningCellConfig;
  }
});

// ../../node_modules/table/dist/src/makeTableConfig.js
var require_makeTableConfig = __commonJS({
  "../../node_modules/table/dist/src/makeTableConfig.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.makeTableConfig = void 0;
    var calculateMaximumColumnWidths_1 = require_calculateMaximumColumnWidths();
    var spanningCellManager_1 = require_spanningCellManager();
    var utils_1 = require_utils6();
    var validateConfig_1 = require_validateConfig();
    var validateSpanningCellConfig_1 = require_validateSpanningCellConfig();
    var makeColumnsConfig = /* @__PURE__ */ __name((rows, columns, columnDefault, spanningCellConfigs) => {
      const columnWidths = (0, calculateMaximumColumnWidths_1.calculateMaximumColumnWidths)(rows, spanningCellConfigs);
      return rows[0].map((_3, columnIndex) => {
        return {
          alignment: "left",
          paddingLeft: 1,
          paddingRight: 1,
          truncate: Number.POSITIVE_INFINITY,
          verticalAlignment: "top",
          width: columnWidths[columnIndex],
          wrapWord: false,
          ...columnDefault,
          ...columns === null || columns === void 0 ? void 0 : columns[columnIndex]
        };
      });
    }, "makeColumnsConfig");
    var makeTableConfig = /* @__PURE__ */ __name((rows, config = {}, injectedSpanningCellConfig) => {
      var _a2, _b, _c, _d, _e;
      (0, validateConfig_1.validateConfig)("config.json", config);
      (0, validateSpanningCellConfig_1.validateSpanningCellConfig)(rows, (_a2 = config.spanningCells) !== null && _a2 !== void 0 ? _a2 : []);
      const spanningCellConfigs = (_b = injectedSpanningCellConfig !== null && injectedSpanningCellConfig !== void 0 ? injectedSpanningCellConfig : config.spanningCells) !== null && _b !== void 0 ? _b : [];
      const columnsConfig = makeColumnsConfig(rows, config.columns, config.columnDefault, spanningCellConfigs);
      const drawVerticalLine = (_c = config.drawVerticalLine) !== null && _c !== void 0 ? _c : (() => {
        return true;
      });
      const drawHorizontalLine = (_d = config.drawHorizontalLine) !== null && _d !== void 0 ? _d : (() => {
        return true;
      });
      return {
        ...config,
        border: (0, utils_1.makeBorderConfig)(config.border),
        columns: columnsConfig,
        drawHorizontalLine,
        drawVerticalLine,
        singleLine: (_e = config.singleLine) !== null && _e !== void 0 ? _e : false,
        spanningCellManager: (0, spanningCellManager_1.createSpanningCellManager)({
          columnsConfig,
          drawHorizontalLine,
          drawVerticalLine,
          rows,
          spanningCellConfigs
        })
      };
    }, "makeTableConfig");
    exports2.makeTableConfig = makeTableConfig;
  }
});

// ../../node_modules/table/dist/src/validateTableData.js
var require_validateTableData = __commonJS({
  "../../node_modules/table/dist/src/validateTableData.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.validateTableData = void 0;
    var utils_1 = require_utils6();
    var validateTableData = /* @__PURE__ */ __name((rows) => {
      if (!Array.isArray(rows)) {
        throw new TypeError("Table data must be an array.");
      }
      if (rows.length === 0) {
        throw new Error("Table must define at least one row.");
      }
      if (rows[0].length === 0) {
        throw new Error("Table must define at least one column.");
      }
      const columnNumber = rows[0].length;
      for (const row of rows) {
        if (!Array.isArray(row)) {
          throw new TypeError("Table row data must be an array.");
        }
        if (row.length !== columnNumber) {
          throw new Error("Table must have a consistent number of cells.");
        }
        for (const cell of row) {
          if (/[\u0001-\u0006\u0008\u0009\u000B-\u001A]/.test((0, utils_1.normalizeString)(String(cell)))) {
            throw new Error("Table data must not contain control characters.");
          }
        }
      }
    }, "validateTableData");
    exports2.validateTableData = validateTableData;
  }
});

// ../../node_modules/table/dist/src/table.js
var require_table = __commonJS({
  "../../node_modules/table/dist/src/table.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.table = void 0;
    var alignTableData_1 = require_alignTableData();
    var calculateOutputColumnWidths_1 = require_calculateOutputColumnWidths();
    var calculateRowHeights_1 = require_calculateRowHeights();
    var drawTable_1 = require_drawTable();
    var injectHeaderConfig_1 = require_injectHeaderConfig();
    var makeTableConfig_1 = require_makeTableConfig();
    var mapDataUsingRowHeights_1 = require_mapDataUsingRowHeights();
    var padTableData_1 = require_padTableData();
    var stringifyTableData_1 = require_stringifyTableData();
    var truncateTableData_1 = require_truncateTableData();
    var utils_1 = require_utils6();
    var validateTableData_1 = require_validateTableData();
    var table3 = /* @__PURE__ */ __name((data3, userConfig = {}) => {
      (0, validateTableData_1.validateTableData)(data3);
      let rows = (0, stringifyTableData_1.stringifyTableData)(data3);
      const [injectedRows, injectedSpanningCellConfig] = (0, injectHeaderConfig_1.injectHeaderConfig)(rows, userConfig);
      const config = (0, makeTableConfig_1.makeTableConfig)(injectedRows, userConfig, injectedSpanningCellConfig);
      rows = (0, truncateTableData_1.truncateTableData)(injectedRows, (0, utils_1.extractTruncates)(config));
      const rowHeights = (0, calculateRowHeights_1.calculateRowHeights)(rows, config);
      config.spanningCellManager.setRowHeights(rowHeights);
      config.spanningCellManager.setRowIndexMapping(rowHeights);
      rows = (0, mapDataUsingRowHeights_1.mapDataUsingRowHeights)(rows, rowHeights, config);
      rows = (0, alignTableData_1.alignTableData)(rows, config);
      rows = (0, padTableData_1.padTableData)(rows, config);
      const outputColumnWidths = (0, calculateOutputColumnWidths_1.calculateOutputColumnWidths)(config);
      return (0, drawTable_1.drawTable)(rows, outputColumnWidths, rowHeights, config);
    }, "table");
    exports2.table = table3;
  }
});

// ../../node_modules/table/dist/src/types/api.js
var require_api = __commonJS({
  "../../node_modules/table/dist/src/types/api.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
  }
});

// ../../node_modules/table/dist/src/index.js
var require_src = __commonJS({
  "../../node_modules/table/dist/src/index.js"(exports2) {
    "use strict";
    var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      Object.defineProperty(o3, k22, { enumerable: true, get: /* @__PURE__ */ __name(function() {
        return m3[k3];
      }, "get") });
    }) : (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      o3[k22] = m3[k3];
    }));
    var __exportStar3 = exports2 && exports2.__exportStar || function(m3, exports3) {
      for (var p3 in m3) if (p3 !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p3)) __createBinding3(exports3, m3, p3);
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.getBorderCharacters = exports2.createStream = exports2.table = void 0;
    var createStream_1 = require_createStream();
    Object.defineProperty(exports2, "createStream", { enumerable: true, get: /* @__PURE__ */ __name(function() {
      return createStream_1.createStream;
    }, "get") });
    var getBorderCharacters_1 = require_getBorderCharacters();
    Object.defineProperty(exports2, "getBorderCharacters", { enumerable: true, get: /* @__PURE__ */ __name(function() {
      return getBorderCharacters_1.getBorderCharacters;
    }, "get") });
    var table_1 = require_table();
    Object.defineProperty(exports2, "table", { enumerable: true, get: /* @__PURE__ */ __name(function() {
      return table_1.table;
    }, "get") });
    __exportStar3(require_api(), exports2);
  }
});

// ../@aws-cdk/cloudformation-diff/lib/format-table.ts
var format_table_exports = {};
__export(format_table_exports, {
  formatTable: () => formatTable
});
function formatTable(cells, columns, noHorizontalLines) {
  return table.table(cells, {
    border: TABLE_BORDER_CHARACTERS,
    columns: buildColumnConfig(columns !== void 0 ? calculateColumnWidths(cells, columns) : void 0),
    drawHorizontalLine: /* @__PURE__ */ __name((line) => {
      if (noHorizontalLines) {
        return line < 2 || line === cells.length;
      }
      return line < 2 || line === cells.length || lineBetween(cells[line - 1], cells[line]);
    }, "drawHorizontalLine")
  }).trimRight();
}
function lineBetween(rowA, rowB) {
  return rowA[1] !== rowB[1];
}
function buildColumnConfig(widths) {
  if (widths === void 0) {
    return void 0;
  }
  const ret = {};
  widths.forEach((width, i3) => {
    if (width === void 0) {
      return;
    }
    ret[i3] = { width };
  });
  return ret;
}
function calculateColumnWidths(rows, terminalWidth) {
  terminalWidth = Math.max(terminalWidth, 40);
  const columns = rows[0].map((_3, i3) => Math.max(...rows.map((row) => (0, import_string_width.default)(String(row[i3])))));
  const contentWidth = terminalWidth - 2 - columns.length * 3;
  if (sum(columns) <= contentWidth) {
    return columns;
  }
  const fairShare = Math.min(contentWidth / columns.length);
  const smallColumns = columns.filter((w3) => w3 < fairShare);
  let distributableWidth = contentWidth - sum(smallColumns);
  const fairDistributable = Math.floor(distributableWidth / (columns.length - smallColumns.length));
  const ret = new Array();
  for (const requestedWidth of columns) {
    if (requestedWidth < fairShare) {
      ret.push(requestedWidth);
    } else {
      const width = distributableWidth < 2 * fairDistributable ? distributableWidth : fairDistributable;
      ret.push(width);
      distributableWidth -= width;
    }
  }
  return ret;
}
function sum(xs) {
  let total = 0;
  for (const x3 of xs) {
    total += x3;
  }
  return total;
}
var chalk5, import_string_width, table, tableColor, TABLE_BORDER_CHARACTERS;
var init_format_table = __esm({
  "../@aws-cdk/cloudformation-diff/lib/format-table.ts"() {
    "use strict";
    chalk5 = __toESM(require_source());
    import_string_width = __toESM(require_string_width());
    table = __toESM(require_src());
    __name(formatTable, "formatTable");
    __name(lineBetween, "lineBetween");
    __name(buildColumnConfig, "buildColumnConfig");
    __name(calculateColumnWidths, "calculateColumnWidths");
    __name(sum, "sum");
    tableColor = chalk5.gray;
    TABLE_BORDER_CHARACTERS = {
      topBody: tableColor("\u2500"),
      topJoin: tableColor("\u252C"),
      topLeft: tableColor("\u250C"),
      topRight: tableColor("\u2510"),
      bottomBody: tableColor("\u2500"),
      bottomJoin: tableColor("\u2534"),
      bottomLeft: tableColor("\u2514"),
      bottomRight: tableColor("\u2518"),
      bodyLeft: tableColor("\u2502"),
      bodyRight: tableColor("\u2502"),
      bodyJoin: tableColor("\u2502"),
      joinBody: tableColor("\u2500"),
      joinLeft: tableColor("\u251C"),
      joinRight: tableColor("\u2524"),
      joinJoin: tableColor("\u253C")
    };
  }
});

// ../@aws-cdk/cloudformation-diff/node_modules/diff/lib/diff/base.js
var require_base = __commonJS({
  "../@aws-cdk/cloudformation-diff/node_modules/diff/lib/diff/base.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", {
      value: true
    });
    exports2["default"] = Diff;
    function Diff() {
    }
    __name(Diff, "Diff");
    Diff.prototype = {
      /*istanbul ignore start*/
      /*istanbul ignore end*/
      diff: /* @__PURE__ */ __name(function diff(oldString, newString) {
        var _options$timeout;
        var options = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
        var callback = options.callback;
        if (typeof options === "function") {
          callback = options;
          options = {};
        }
        var self2 = this;
        function done(value) {
          value = self2.postProcess(value, options);
          if (callback) {
            setTimeout(function() {
              callback(value);
            }, 0);
            return true;
          } else {
            return value;
          }
        }
        __name(done, "done");
        oldString = this.castInput(oldString, options);
        newString = this.castInput(newString, options);
        oldString = this.removeEmpty(this.tokenize(oldString, options));
        newString = this.removeEmpty(this.tokenize(newString, options));
        var newLen = newString.length, oldLen = oldString.length;
        var editLength = 1;
        var maxEditLength = newLen + oldLen;
        if (options.maxEditLength != null) {
          maxEditLength = Math.min(maxEditLength, options.maxEditLength);
        }
        var maxExecutionTime = (
          /*istanbul ignore start*/
          (_options$timeout = /*istanbul ignore end*/
          options.timeout) !== null && _options$timeout !== void 0 ? _options$timeout : Infinity
        );
        var abortAfterTimestamp = Date.now() + maxExecutionTime;
        var bestPath = [{
          oldPos: -1,
          lastComponent: void 0
        }];
        var newPos = this.extractCommon(bestPath[0], newString, oldString, 0, options);
        if (bestPath[0].oldPos + 1 >= oldLen && newPos + 1 >= newLen) {
          return done(buildValues(self2, bestPath[0].lastComponent, newString, oldString, self2.useLongestToken));
        }
        var minDiagonalToConsider = -Infinity, maxDiagonalToConsider = Infinity;
        function execEditLength() {
          for (var diagonalPath = Math.max(minDiagonalToConsider, -editLength); diagonalPath <= Math.min(maxDiagonalToConsider, editLength); diagonalPath += 2) {
            var basePath = (
              /*istanbul ignore start*/
              void 0
            );
            var removePath = bestPath[diagonalPath - 1], addPath = bestPath[diagonalPath + 1];
            if (removePath) {
              bestPath[diagonalPath - 1] = void 0;
            }
            var canAdd = false;
            if (addPath) {
              var addPathNewPos = addPath.oldPos - diagonalPath;
              canAdd = addPath && 0 <= addPathNewPos && addPathNewPos < newLen;
            }
            var canRemove = removePath && removePath.oldPos + 1 < oldLen;
            if (!canAdd && !canRemove) {
              bestPath[diagonalPath] = void 0;
              continue;
            }
            if (!canRemove || canAdd && removePath.oldPos < addPath.oldPos) {
              basePath = self2.addToPath(addPath, true, false, 0, options);
            } else {
              basePath = self2.addToPath(removePath, false, true, 1, options);
            }
            newPos = self2.extractCommon(basePath, newString, oldString, diagonalPath, options);
            if (basePath.oldPos + 1 >= oldLen && newPos + 1 >= newLen) {
              return done(buildValues(self2, basePath.lastComponent, newString, oldString, self2.useLongestToken));
            } else {
              bestPath[diagonalPath] = basePath;
              if (basePath.oldPos + 1 >= oldLen) {
                maxDiagonalToConsider = Math.min(maxDiagonalToConsider, diagonalPath - 1);
              }
              if (newPos + 1 >= newLen) {
                minDiagonalToConsider = Math.max(minDiagonalToConsider, diagonalPath + 1);
              }
            }
          }
          editLength++;
        }
        __name(execEditLength, "execEditLength");
        if (callback) {
          (/* @__PURE__ */ __name((function exec5() {
            setTimeout(function() {
              if (editLength > maxEditLength || Date.now() > abortAfterTimestamp) {
                return callback();
              }
              if (!execEditLength()) {
                exec5();
              }
            }, 0);
          }), "exec"))();
        } else {
          while (editLength <= maxEditLength && Date.now() <= abortAfterTimestamp) {
            var ret = execEditLength();
            if (ret) {
              return ret;
            }
          }
        }
      }, "diff"),
      /*istanbul ignore start*/
      /*istanbul ignore end*/
      addToPath: /* @__PURE__ */ __name(function addToPath(path38, added, removed, oldPosInc, options) {
        var last = path38.lastComponent;
        if (last && !options.oneChangePerToken && last.added === added && last.removed === removed) {
          return {
            oldPos: path38.oldPos + oldPosInc,
            lastComponent: {
              count: last.count + 1,
              added,
              removed,
              previousComponent: last.previousComponent
            }
          };
        } else {
          return {
            oldPos: path38.oldPos + oldPosInc,
            lastComponent: {
              count: 1,
              added,
              removed,
              previousComponent: last
            }
          };
        }
      }, "addToPath"),
      /*istanbul ignore start*/
      /*istanbul ignore end*/
      extractCommon: /* @__PURE__ */ __name(function extractCommon(basePath, newString, oldString, diagonalPath, options) {
        var newLen = newString.length, oldLen = oldString.length, oldPos = basePath.oldPos, newPos = oldPos - diagonalPath, commonCount = 0;
        while (newPos + 1 < newLen && oldPos + 1 < oldLen && this.equals(oldString[oldPos + 1], newString[newPos + 1], options)) {
          newPos++;
          oldPos++;
          commonCount++;
          if (options.oneChangePerToken) {
            basePath.lastComponent = {
              count: 1,
              previousComponent: basePath.lastComponent,
              added: false,
              removed: false
            };
          }
        }
        if (commonCount && !options.oneChangePerToken) {
          basePath.lastComponent = {
            count: commonCount,
            previousComponent: basePath.lastComponent,
            added: false,
            removed: false
          };
        }
        basePath.oldPos = oldPos;
        return newPos;
      }, "extractCommon"),
      /*istanbul ignore start*/
      /*istanbul ignore end*/
      equals: /* @__PURE__ */ __name(function equals(left, right, options) {
        if (options.comparator) {
          return options.comparator(left, right);
        } else {
          return left === right || options.ignoreCase && left.toLowerCase() === right.toLowerCase();
        }
      }, "equals"),
      /*istanbul ignore start*/
      /*istanbul ignore end*/
      removeEmpty: /* @__PURE__ */ __name(function removeEmpty(array) {
        var ret = [];
        for (var i3 = 0; i3 < array.length; i3++) {
          if (array[i3]) {
            ret.push(array[i3]);
          }
        }
        return ret;
      }, "removeEmpty"),
      /*istanbul ignore start*/
      /*istanbul ignore end*/
      castInput: /* @__PURE__ */ __name(function castInput(value) {
        return value;
      }, "castInput"),
      /*istanbul ignore start*/
      /*istanbul ignore end*/
      tokenize: /* @__PURE__ */ __name(function tokenize(value) {
        return Array.from(value);
      }, "tokenize"),
      /*istanbul ignore start*/
      /*istanbul ignore end*/
      join: /* @__PURE__ */ __name(function join31(chars) {
        return chars.join("");
      }, "join"),
      /*istanbul ignore start*/
      /*istanbul ignore end*/
      postProcess: /* @__PURE__ */ __name(function postProcess(changeObjects) {
        return changeObjects;
      }, "postProcess")
    };
    function buildValues(diff, lastComponent, newString, oldString, useLongestToken) {
      var components = [];
      var nextComponent;
      while (lastComponent) {
        components.push(lastComponent);
        nextComponent = lastComponent.previousComponent;
        delete lastComponent.previousComponent;
        lastComponent = nextComponent;
      }
      components.reverse();
      var componentPos = 0, componentLen = components.length, newPos = 0, oldPos = 0;
      for (; componentPos < componentLen; componentPos++) {
        var component = components[componentPos];
        if (!component.removed) {
          if (!component.added && useLongestToken) {
            var value = newString.slice(newPos, newPos + component.count);
            value = value.map(function(value2, i3) {
              var oldValue = oldString[oldPos + i3];
              return oldValue.length > value2.length ? oldValue : value2;
            });
            component.value = diff.join(value);
          } else {
            component.value = diff.join(newString.slice(newPos, newPos + component.count));
          }
          newPos += component.count;
          if (!component.added) {
            oldPos += component.count;
          }
        } else {
          component.value = diff.join(oldString.slice(oldPos, oldPos + component.count));
          oldPos += component.count;
        }
      }
      return components;
    }
    __name(buildValues, "buildValues");
  }
});

// ../@aws-cdk/cloudformation-diff/node_modules/diff/lib/diff/character.js
var require_character = __commonJS({
  "../@aws-cdk/cloudformation-diff/node_modules/diff/lib/diff/character.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", {
      value: true
    });
    exports2.characterDiff = void 0;
    exports2.diffChars = diffChars;
    var _base = _interopRequireDefault(require_base());
    function _interopRequireDefault(obj) {
      return obj && obj.__esModule ? obj : { "default": obj };
    }
    __name(_interopRequireDefault, "_interopRequireDefault");
    var characterDiff = (
      /*istanbul ignore start*/
      exports2.characterDiff = /*istanbul ignore end*/
      new /*istanbul ignore start*/
      _base[
        /*istanbul ignore start*/
        "default"
        /*istanbul ignore end*/
      ]()
    );
    function diffChars(oldStr, newStr, options) {
      return characterDiff.diff(oldStr, newStr, options);
    }
    __name(diffChars, "diffChars");
  }
});

// ../@aws-cdk/cloudformation-diff/node_modules/diff/lib/util/string.js
var require_string = __commonJS({
  "../@aws-cdk/cloudformation-diff/node_modules/diff/lib/util/string.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", {
      value: true
    });
    exports2.hasOnlyUnixLineEndings = hasOnlyUnixLineEndings;
    exports2.hasOnlyWinLineEndings = hasOnlyWinLineEndings;
    exports2.longestCommonPrefix = longestCommonPrefix;
    exports2.longestCommonSuffix = longestCommonSuffix;
    exports2.maximumOverlap = maximumOverlap;
    exports2.removePrefix = removePrefix;
    exports2.removeSuffix = removeSuffix;
    exports2.replacePrefix = replacePrefix;
    exports2.replaceSuffix = replaceSuffix;
    function longestCommonPrefix(str1, str2) {
      var i3;
      for (i3 = 0; i3 < str1.length && i3 < str2.length; i3++) {
        if (str1[i3] != str2[i3]) {
          return str1.slice(0, i3);
        }
      }
      return str1.slice(0, i3);
    }
    __name(longestCommonPrefix, "longestCommonPrefix");
    function longestCommonSuffix(str1, str2) {
      var i3;
      if (!str1 || !str2 || str1[str1.length - 1] != str2[str2.length - 1]) {
        return "";
      }
      for (i3 = 0; i3 < str1.length && i3 < str2.length; i3++) {
        if (str1[str1.length - (i3 + 1)] != str2[str2.length - (i3 + 1)]) {
          return str1.slice(-i3);
        }
      }
      return str1.slice(-i3);
    }
    __name(longestCommonSuffix, "longestCommonSuffix");
    function replacePrefix(string, oldPrefix, newPrefix) {
      if (string.slice(0, oldPrefix.length) != oldPrefix) {
        throw Error(
          /*istanbul ignore start*/
          "string ".concat(
            /*istanbul ignore end*/
            JSON.stringify(string),
            " doesn't start with prefix "
          ).concat(JSON.stringify(oldPrefix), "; this is a bug")
        );
      }
      return newPrefix + string.slice(oldPrefix.length);
    }
    __name(replacePrefix, "replacePrefix");
    function replaceSuffix(string, oldSuffix, newSuffix) {
      if (!oldSuffix) {
        return string + newSuffix;
      }
      if (string.slice(-oldSuffix.length) != oldSuffix) {
        throw Error(
          /*istanbul ignore start*/
          "string ".concat(
            /*istanbul ignore end*/
            JSON.stringify(string),
            " doesn't end with suffix "
          ).concat(JSON.stringify(oldSuffix), "; this is a bug")
        );
      }
      return string.slice(0, -oldSuffix.length) + newSuffix;
    }
    __name(replaceSuffix, "replaceSuffix");
    function removePrefix(string, oldPrefix) {
      return replacePrefix(string, oldPrefix, "");
    }
    __name(removePrefix, "removePrefix");
    function removeSuffix(string, oldSuffix) {
      return replaceSuffix(string, oldSuffix, "");
    }
    __name(removeSuffix, "removeSuffix");
    function maximumOverlap(string1, string2) {
      return string2.slice(0, overlapCount(string1, string2));
    }
    __name(maximumOverlap, "maximumOverlap");
    function overlapCount(a3, b3) {
      var startA = 0;
      if (a3.length > b3.length) {
        startA = a3.length - b3.length;
      }
      var endB = b3.length;
      if (a3.length < b3.length) {
        endB = a3.length;
      }
      var map3 = Array(endB);
      var k3 = 0;
      map3[0] = 0;
      for (var j3 = 1; j3 < endB; j3++) {
        if (b3[j3] == b3[k3]) {
          map3[j3] = map3[k3];
        } else {
          map3[j3] = k3;
        }
        while (k3 > 0 && b3[j3] != b3[k3]) {
          k3 = map3[k3];
        }
        if (b3[j3] == b3[k3]) {
          k3++;
        }
      }
      k3 = 0;
      for (var i3 = startA; i3 < a3.length; i3++) {
        while (k3 > 0 && a3[i3] != b3[k3]) {
          k3 = map3[k3];
        }
        if (a3[i3] == b3[k3]) {
          k3++;
        }
      }
      return k3;
    }
    __name(overlapCount, "overlapCount");
    function hasOnlyWinLineEndings(string) {
      return string.includes("\r\n") && !string.startsWith("\n") && !string.match(/[^\r]\n/);
    }
    __name(hasOnlyWinLineEndings, "hasOnlyWinLineEndings");
    function hasOnlyUnixLineEndings(string) {
      return !string.includes("\r\n") && string.includes("\n");
    }
    __name(hasOnlyUnixLineEndings, "hasOnlyUnixLineEndings");
  }
});

// ../@aws-cdk/cloudformation-diff/node_modules/diff/lib/diff/word.js
var require_word = __commonJS({
  "../@aws-cdk/cloudformation-diff/node_modules/diff/lib/diff/word.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", {
      value: true
    });
    exports2.diffWords = diffWords;
    exports2.diffWordsWithSpace = diffWordsWithSpace;
    exports2.wordWithSpaceDiff = exports2.wordDiff = void 0;
    var _base = _interopRequireDefault(require_base());
    var _string = require_string();
    function _interopRequireDefault(obj) {
      return obj && obj.__esModule ? obj : { "default": obj };
    }
    __name(_interopRequireDefault, "_interopRequireDefault");
    var extendedWordChars = "a-zA-Z0-9_\\u{C0}-\\u{FF}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}";
    var tokenizeIncludingWhitespace = new RegExp(
      /*istanbul ignore start*/
      "[".concat(
        /*istanbul ignore end*/
        extendedWordChars,
        "]+|\\s+|[^"
      ).concat(extendedWordChars, "]"),
      "ug"
    );
    var wordDiff = (
      /*istanbul ignore start*/
      exports2.wordDiff = /*istanbul ignore end*/
      new /*istanbul ignore start*/
      _base[
        /*istanbul ignore start*/
        "default"
        /*istanbul ignore end*/
      ]()
    );
    wordDiff.equals = function(left, right, options) {
      if (options.ignoreCase) {
        left = left.toLowerCase();
        right = right.toLowerCase();
      }
      return left.trim() === right.trim();
    };
    wordDiff.tokenize = function(value) {
      var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
      var parts;
      if (options.intlSegmenter) {
        if (options.intlSegmenter.resolvedOptions().granularity != "word") {
          throw new Error('The segmenter passed must have a granularity of "word"');
        }
        parts = Array.from(options.intlSegmenter.segment(value), function(segment) {
          return (
            /*istanbul ignore end*/
            segment.segment
          );
        });
      } else {
        parts = value.match(tokenizeIncludingWhitespace) || [];
      }
      var tokens = [];
      var prevPart = null;
      parts.forEach(function(part) {
        if (/\s/.test(part)) {
          if (prevPart == null) {
            tokens.push(part);
          } else {
            tokens.push(tokens.pop() + part);
          }
        } else if (/\s/.test(prevPart)) {
          if (tokens[tokens.length - 1] == prevPart) {
            tokens.push(tokens.pop() + part);
          } else {
            tokens.push(prevPart + part);
          }
        } else {
          tokens.push(part);
        }
        prevPart = part;
      });
      return tokens;
    };
    wordDiff.join = function(tokens) {
      return tokens.map(function(token, i3) {
        if (i3 == 0) {
          return token;
        } else {
          return token.replace(/^\s+/, "");
        }
      }).join("");
    };
    wordDiff.postProcess = function(changes, options) {
      if (!changes || options.oneChangePerToken) {
        return changes;
      }
      var lastKeep = null;
      var insertion = null;
      var deletion = null;
      changes.forEach(function(change) {
        if (change.added) {
          insertion = change;
        } else if (change.removed) {
          deletion = change;
        } else {
          if (insertion || deletion) {
            dedupeWhitespaceInChangeObjects(lastKeep, deletion, insertion, change);
          }
          lastKeep = change;
          insertion = null;
          deletion = null;
        }
      });
      if (insertion || deletion) {
        dedupeWhitespaceInChangeObjects(lastKeep, deletion, insertion, null);
      }
      return changes;
    };
    function diffWords(oldStr, newStr, options) {
      if (
        /*istanbul ignore start*/
        /*istanbul ignore end*/
        (options === null || options === void 0 ? void 0 : options.ignoreWhitespace) != null && !options.ignoreWhitespace
      ) {
        return diffWordsWithSpace(oldStr, newStr, options);
      }
      return wordDiff.diff(oldStr, newStr, options);
    }
    __name(diffWords, "diffWords");
    function dedupeWhitespaceInChangeObjects(startKeep, deletion, insertion, endKeep) {
      if (deletion && insertion) {
        var oldWsPrefix = deletion.value.match(/^\s*/)[0];
        var oldWsSuffix = deletion.value.match(/\s*$/)[0];
        var newWsPrefix = insertion.value.match(/^\s*/)[0];
        var newWsSuffix = insertion.value.match(/\s*$/)[0];
        if (startKeep) {
          var commonWsPrefix = (
            /*istanbul ignore start*/
            (0, /*istanbul ignore end*/
            /*istanbul ignore start*/
            _string.longestCommonPrefix)(oldWsPrefix, newWsPrefix)
          );
          startKeep.value = /*istanbul ignore start*/
          (0, /*istanbul ignore end*/
          /*istanbul ignore start*/
          _string.replaceSuffix)(startKeep.value, newWsPrefix, commonWsPrefix);
          deletion.value = /*istanbul ignore start*/
          (0, /*istanbul ignore end*/
          /*istanbul ignore start*/
          _string.removePrefix)(deletion.value, commonWsPrefix);
          insertion.value = /*istanbul ignore start*/
          (0, /*istanbul ignore end*/
          /*istanbul ignore start*/
          _string.removePrefix)(insertion.value, commonWsPrefix);
        }
        if (endKeep) {
          var commonWsSuffix = (
            /*istanbul ignore start*/
            (0, /*istanbul ignore end*/
            /*istanbul ignore start*/
            _string.longestCommonSuffix)(oldWsSuffix, newWsSuffix)
          );
          endKeep.value = /*istanbul ignore start*/
          (0, /*istanbul ignore end*/
          /*istanbul ignore start*/
          _string.replacePrefix)(endKeep.value, newWsSuffix, commonWsSuffix);
          deletion.value = /*istanbul ignore start*/
          (0, /*istanbul ignore end*/
          /*istanbul ignore start*/
          _string.removeSuffix)(deletion.value, commonWsSuffix);
          insertion.value = /*istanbul ignore start*/
          (0, /*istanbul ignore end*/
          /*istanbul ignore start*/
          _string.removeSuffix)(insertion.value, commonWsSuffix);
        }
      } else if (insertion) {
        if (startKeep) {
          insertion.value = insertion.value.replace(/^\s*/, "");
        }
        if (endKeep) {
          endKeep.value = endKeep.value.replace(/^\s*/, "");
        }
      } else if (startKeep && endKeep) {
        var newWsFull = endKeep.value.match(/^\s*/)[0], delWsStart = deletion.value.match(/^\s*/)[0], delWsEnd = deletion.value.match(/\s*$/)[0];
        var newWsStart = (
          /*istanbul ignore start*/
          (0, /*istanbul ignore end*/
          /*istanbul ignore start*/
          _string.longestCommonPrefix)(newWsFull, delWsStart)
        );
        deletion.value = /*istanbul ignore start*/
        (0, /*istanbul ignore end*/
        /*istanbul ignore start*/
        _string.removePrefix)(deletion.value, newWsStart);
        var newWsEnd = (
          /*istanbul ignore start*/
          (0, /*istanbul ignore end*/
          /*istanbul ignore start*/
          _string.longestCommonSuffix)(
            /*istanbul ignore start*/
            (0, /*istanbul ignore end*/
            /*istanbul ignore start*/
            _string.removePrefix)(newWsFull, newWsStart),
            delWsEnd
          )
        );
        deletion.value = /*istanbul ignore start*/
        (0, /*istanbul ignore end*/
        /*istanbul ignore start*/
        _string.removeSuffix)(deletion.value, newWsEnd);
        endKeep.value = /*istanbul ignore start*/
        (0, /*istanbul ignore end*/
        /*istanbul ignore start*/
        _string.replacePrefix)(endKeep.value, newWsFull, newWsEnd);
        startKeep.value = /*istanbul ignore start*/
        (0, /*istanbul ignore end*/
        /*istanbul ignore start*/
        _string.replaceSuffix)(startKeep.value, newWsFull, newWsFull.slice(0, newWsFull.length - newWsEnd.length));
      } else if (endKeep) {
        var endKeepWsPrefix = endKeep.value.match(/^\s*/)[0];
        var deletionWsSuffix = deletion.value.match(/\s*$/)[0];
        var overlap = (
          /*istanbul ignore start*/
          (0, /*istanbul ignore end*/
          /*istanbul ignore start*/
          _string.maximumOverlap)(deletionWsSuffix, endKeepWsPrefix)
        );
        deletion.value = /*istanbul ignore start*/
        (0, /*istanbul ignore end*/
        /*istanbul ignore start*/
        _string.removeSuffix)(deletion.value, overlap);
      } else if (startKeep) {
        var startKeepWsSuffix = startKeep.value.match(/\s*$/)[0];
        var deletionWsPrefix = deletion.value.match(/^\s*/)[0];
        var _overlap = (
          /*istanbul ignore start*/
          (0, /*istanbul ignore end*/
          /*istanbul ignore start*/
          _string.maximumOverlap)(startKeepWsSuffix, deletionWsPrefix)
        );
        deletion.value = /*istanbul ignore start*/
        (0, /*istanbul ignore end*/
        /*istanbul ignore start*/
        _string.removePrefix)(deletion.value, _overlap);
      }
    }
    __name(dedupeWhitespaceInChangeObjects, "dedupeWhitespaceInChangeObjects");
    var wordWithSpaceDiff = (
      /*istanbul ignore start*/
      exports2.wordWithSpaceDiff = /*istanbul ignore end*/
      new /*istanbul ignore start*/
      _base[
        /*istanbul ignore start*/
        "default"
        /*istanbul ignore end*/
      ]()
    );
    wordWithSpaceDiff.tokenize = function(value) {
      var regex = new RegExp(
        /*istanbul ignore start*/
        "(\\r?\\n)|[".concat(
          /*istanbul ignore end*/
          extendedWordChars,
          "]+|[^\\S\\n\\r]+|[^"
        ).concat(extendedWordChars, "]"),
        "ug"
      );
      return value.match(regex) || [];
    };
    function diffWordsWithSpace(oldStr, newStr, options) {
      return wordWithSpaceDiff.diff(oldStr, newStr, options);
    }
    __name(diffWordsWithSpace, "diffWordsWithSpace");
  }
});

// ../@aws-cdk/cloudformation-diff/node_modules/diff/lib/util/params.js
var require_params = __commonJS({
  "../@aws-cdk/cloudformation-diff/node_modules/diff/lib/util/params.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", {
      value: true
    });
    exports2.generateOptions = generateOptions;
    function generateOptions(options, defaults4) {
      if (typeof options === "function") {
        defaults4.callback = options;
      } else if (options) {
        for (var name in options) {
          if (options.hasOwnProperty(name)) {
            defaults4[name] = options[name];
          }
        }
      }
      return defaults4;
    }
    __name(generateOptions, "generateOptions");
  }
});

// ../@aws-cdk/cloudformation-diff/node_modules/diff/lib/diff/line.js
var require_line = __commonJS({
  "../@aws-cdk/cloudformation-diff/node_modules/diff/lib/diff/line.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", {
      value: true
    });
    exports2.diffLines = diffLines;
    exports2.diffTrimmedLines = diffTrimmedLines;
    exports2.lineDiff = void 0;
    var _base = _interopRequireDefault(require_base());
    var _params = require_params();
    function _interopRequireDefault(obj) {
      return obj && obj.__esModule ? obj : { "default": obj };
    }
    __name(_interopRequireDefault, "_interopRequireDefault");
    var lineDiff = (
      /*istanbul ignore start*/
      exports2.lineDiff = /*istanbul ignore end*/
      new /*istanbul ignore start*/
      _base[
        /*istanbul ignore start*/
        "default"
        /*istanbul ignore end*/
      ]()
    );
    lineDiff.tokenize = function(value, options) {
      if (options.stripTrailingCr) {
        value = value.replace(/\r\n/g, "\n");
      }
      var retLines = [], linesAndNewlines = value.split(/(\n|\r\n)/);
      if (!linesAndNewlines[linesAndNewlines.length - 1]) {
        linesAndNewlines.pop();
      }
      for (var i3 = 0; i3 < linesAndNewlines.length; i3++) {
        var line = linesAndNewlines[i3];
        if (i3 % 2 && !options.newlineIsToken) {
          retLines[retLines.length - 1] += line;
        } else {
          retLines.push(line);
        }
      }
      return retLines;
    };
    lineDiff.equals = function(left, right, options) {
      if (options.ignoreWhitespace) {
        if (!options.newlineIsToken || !left.includes("\n")) {
          left = left.trim();
        }
        if (!options.newlineIsToken || !right.includes("\n")) {
          right = right.trim();
        }
      } else if (options.ignoreNewlineAtEof && !options.newlineIsToken) {
        if (left.endsWith("\n")) {
          left = left.slice(0, -1);
        }
        if (right.endsWith("\n")) {
          right = right.slice(0, -1);
        }
      }
      return (
        /*istanbul ignore start*/
        _base[
          /*istanbul ignore start*/
          "default"
          /*istanbul ignore end*/
        ].prototype.equals.call(this, left, right, options)
      );
    };
    function diffLines(oldStr, newStr, callback) {
      return lineDiff.diff(oldStr, newStr, callback);
    }
    __name(diffLines, "diffLines");
    function diffTrimmedLines(oldStr, newStr, callback) {
      var options = (
        /*istanbul ignore start*/
        (0, /*istanbul ignore end*/
        /*istanbul ignore start*/
        _params.generateOptions)(callback, {
          ignoreWhitespace: true
        })
      );
      return lineDiff.diff(oldStr, newStr, options);
    }
    __name(diffTrimmedLines, "diffTrimmedLines");
  }
});

// ../@aws-cdk/cloudformation-diff/node_modules/diff/lib/diff/sentence.js
var require_sentence = __commonJS({
  "../@aws-cdk/cloudformation-diff/node_modules/diff/lib/diff/sentence.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", {
      value: true
    });
    exports2.diffSentences = diffSentences;
    exports2.sentenceDiff = void 0;
    var _base = _interopRequireDefault(require_base());
    function _interopRequireDefault(obj) {
      return obj && obj.__esModule ? obj : { "default": obj };
    }
    __name(_interopRequireDefault, "_interopRequireDefault");
    var sentenceDiff = (
      /*istanbul ignore start*/
      exports2.sentenceDiff = /*istanbul ignore end*/
      new /*istanbul ignore start*/
      _base[
        /*istanbul ignore start*/
        "default"
        /*istanbul ignore end*/
      ]()
    );
    sentenceDiff.tokenize = function(value) {
      return value.split(/(\S.+?[.!?])(?=\s+|$)/);
    };
    function diffSentences(oldStr, newStr, callback) {
      return sentenceDiff.diff(oldStr, newStr, callback);
    }
    __name(diffSentences, "diffSentences");
  }
});

// ../@aws-cdk/cloudformation-diff/node_modules/diff/lib/diff/css.js
var require_css = __commonJS({
  "../@aws-cdk/cloudformation-diff/node_modules/diff/lib/diff/css.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", {
      value: true
    });
    exports2.cssDiff = void 0;
    exports2.diffCss = diffCss;
    var _base = _interopRequireDefault(require_base());
    function _interopRequireDefault(obj) {
      return obj && obj.__esModule ? obj : { "default": obj };
    }
    __name(_interopRequireDefault, "_interopRequireDefault");
    var cssDiff = (
      /*istanbul ignore start*/
      exports2.cssDiff = /*istanbul ignore end*/
      new /*istanbul ignore start*/
      _base[
        /*istanbul ignore start*/
        "default"
        /*istanbul ignore end*/
      ]()
    );
    cssDiff.tokenize = function(value) {
      return value.split(/([{}:;,]|\s+)/);
    };
    function diffCss(oldStr, newStr, callback) {
      return cssDiff.diff(oldStr, newStr, callback);
    }
    __name(diffCss, "diffCss");
  }
});

// ../@aws-cdk/cloudformation-diff/node_modules/diff/lib/diff/json.js
var require_json3 = __commonJS({
  "../@aws-cdk/cloudformation-diff/node_modules/diff/lib/diff/json.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", {
      value: true
    });
    exports2.canonicalize = canonicalize;
    exports2.diffJson = diffJson;
    exports2.jsonDiff = void 0;
    var _base = _interopRequireDefault(require_base());
    var _line = require_line();
    function _interopRequireDefault(obj) {
      return obj && obj.__esModule ? obj : { "default": obj };
    }
    __name(_interopRequireDefault, "_interopRequireDefault");
    function _typeof(o3) {
      "@babel/helpers - typeof";
      return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o4) {
        return typeof o4;
      } : function(o4) {
        return o4 && "function" == typeof Symbol && o4.constructor === Symbol && o4 !== Symbol.prototype ? "symbol" : typeof o4;
      }, _typeof(o3);
    }
    __name(_typeof, "_typeof");
    var jsonDiff = (
      /*istanbul ignore start*/
      exports2.jsonDiff = /*istanbul ignore end*/
      new /*istanbul ignore start*/
      _base[
        /*istanbul ignore start*/
        "default"
        /*istanbul ignore end*/
      ]()
    );
    jsonDiff.useLongestToken = true;
    jsonDiff.tokenize = /*istanbul ignore start*/
    _line.lineDiff.tokenize;
    jsonDiff.castInput = function(value, options) {
      var undefinedReplacement = options.undefinedReplacement, _options$stringifyRep = (
        /*istanbul ignore end*/
        options.stringifyReplacer
      ), stringifyReplacer = _options$stringifyRep === void 0 ? function(k3, v6) {
        return (
          /*istanbul ignore end*/
          typeof v6 === "undefined" ? undefinedReplacement : v6
        );
      } : _options$stringifyRep;
      return typeof value === "string" ? value : JSON.stringify(canonicalize(value, null, null, stringifyReplacer), stringifyReplacer, "  ");
    };
    jsonDiff.equals = function(left, right, options) {
      return (
        /*istanbul ignore start*/
        _base[
          /*istanbul ignore start*/
          "default"
          /*istanbul ignore end*/
        ].prototype.equals.call(jsonDiff, left.replace(/,([\r\n])/g, "$1"), right.replace(/,([\r\n])/g, "$1"), options)
      );
    };
    function diffJson(oldObj, newObj, options) {
      return jsonDiff.diff(oldObj, newObj, options);
    }
    __name(diffJson, "diffJson");
    function canonicalize(obj, stack, replacementStack, replacer, key) {
      stack = stack || [];
      replacementStack = replacementStack || [];
      if (replacer) {
        obj = replacer(key, obj);
      }
      var i3;
      for (i3 = 0; i3 < stack.length; i3 += 1) {
        if (stack[i3] === obj) {
          return replacementStack[i3];
        }
      }
      var canonicalizedObj;
      if ("[object Array]" === Object.prototype.toString.call(obj)) {
        stack.push(obj);
        canonicalizedObj = new Array(obj.length);
        replacementStack.push(canonicalizedObj);
        for (i3 = 0; i3 < obj.length; i3 += 1) {
          canonicalizedObj[i3] = canonicalize(obj[i3], stack, replacementStack, replacer, key);
        }
        stack.pop();
        replacementStack.pop();
        return canonicalizedObj;
      }
      if (obj && obj.toJSON) {
        obj = obj.toJSON();
      }
      if (
        /*istanbul ignore start*/
        _typeof(
          /*istanbul ignore end*/
          obj
        ) === "object" && obj !== null
      ) {
        stack.push(obj);
        canonicalizedObj = {};
        replacementStack.push(canonicalizedObj);
        var sortedKeys = [], _key;
        for (_key in obj) {
          if (Object.prototype.hasOwnProperty.call(obj, _key)) {
            sortedKeys.push(_key);
          }
        }
        sortedKeys.sort();
        for (i3 = 0; i3 < sortedKeys.length; i3 += 1) {
          _key = sortedKeys[i3];
          canonicalizedObj[_key] = canonicalize(obj[_key], stack, replacementStack, replacer, _key);
        }
        stack.pop();
        replacementStack.pop();
      } else {
        canonicalizedObj = obj;
      }
      return canonicalizedObj;
    }
    __name(canonicalize, "canonicalize");
  }
});

// ../@aws-cdk/cloudformation-diff/node_modules/diff/lib/diff/array.js
var require_array = __commonJS({
  "../@aws-cdk/cloudformation-diff/node_modules/diff/lib/diff/array.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", {
      value: true
    });
    exports2.arrayDiff = void 0;
    exports2.diffArrays = diffArrays;
    var _base = _interopRequireDefault(require_base());
    function _interopRequireDefault(obj) {
      return obj && obj.__esModule ? obj : { "default": obj };
    }
    __name(_interopRequireDefault, "_interopRequireDefault");
    var arrayDiff = (
      /*istanbul ignore start*/
      exports2.arrayDiff = /*istanbul ignore end*/
      new /*istanbul ignore start*/
      _base[
        /*istanbul ignore start*/
        "default"
        /*istanbul ignore end*/
      ]()
    );
    arrayDiff.tokenize = function(value) {
      return value.slice();
    };
    arrayDiff.join = arrayDiff.removeEmpty = function(value) {
      return value;
    };
    function diffArrays(oldArr, newArr, callback) {
      return arrayDiff.diff(oldArr, newArr, callback);
    }
    __name(diffArrays, "diffArrays");
  }
});

// ../@aws-cdk/cloudformation-diff/node_modules/diff/lib/patch/line-endings.js
var require_line_endings = __commonJS({
  "../@aws-cdk/cloudformation-diff/node_modules/diff/lib/patch/line-endings.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", {
      value: true
    });
    exports2.isUnix = isUnix;
    exports2.isWin = isWin;
    exports2.unixToWin = unixToWin;
    exports2.winToUnix = winToUnix;
    function _typeof(o3) {
      "@babel/helpers - typeof";
      return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o4) {
        return typeof o4;
      } : function(o4) {
        return o4 && "function" == typeof Symbol && o4.constructor === Symbol && o4 !== Symbol.prototype ? "symbol" : typeof o4;
      }, _typeof(o3);
    }
    __name(_typeof, "_typeof");
    function ownKeys2(e3, r3) {
      var t3 = Object.keys(e3);
      if (Object.getOwnPropertySymbols) {
        var o3 = Object.getOwnPropertySymbols(e3);
        r3 && (o3 = o3.filter(function(r4) {
          return Object.getOwnPropertyDescriptor(e3, r4).enumerable;
        })), t3.push.apply(t3, o3);
      }
      return t3;
    }
    __name(ownKeys2, "ownKeys");
    function _objectSpread(e3) {
      for (var r3 = 1; r3 < arguments.length; r3++) {
        var t3 = null != arguments[r3] ? arguments[r3] : {};
        r3 % 2 ? ownKeys2(Object(t3), true).forEach(function(r4) {
          _defineProperty(e3, r4, t3[r4]);
        }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e3, Object.getOwnPropertyDescriptors(t3)) : ownKeys2(Object(t3)).forEach(function(r4) {
          Object.defineProperty(e3, r4, Object.getOwnPropertyDescriptor(t3, r4));
        });
      }
      return e3;
    }
    __name(_objectSpread, "_objectSpread");
    function _defineProperty(obj, key, value) {
      key = _toPropertyKey(key);
      if (key in obj) {
        Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
      } else {
        obj[key] = value;
      }
      return obj;
    }
    __name(_defineProperty, "_defineProperty");
    function _toPropertyKey(t3) {
      var i3 = _toPrimitive(t3, "string");
      return "symbol" == _typeof(i3) ? i3 : i3 + "";
    }
    __name(_toPropertyKey, "_toPropertyKey");
    function _toPrimitive(t3, r3) {
      if ("object" != _typeof(t3) || !t3) return t3;
      var e3 = t3[Symbol.toPrimitive];
      if (void 0 !== e3) {
        var i3 = e3.call(t3, r3 || "default");
        if ("object" != _typeof(i3)) return i3;
        throw new TypeError("@@toPrimitive must return a primitive value.");
      }
      return ("string" === r3 ? String : Number)(t3);
    }
    __name(_toPrimitive, "_toPrimitive");
    function unixToWin(patch) {
      if (Array.isArray(patch)) {
        return patch.map(unixToWin);
      }
      return (
        /*istanbul ignore start*/
        _objectSpread(_objectSpread(
          {},
          /*istanbul ignore end*/
          patch
        ), {}, {
          hunks: patch.hunks.map(function(hunk) {
            return _objectSpread(_objectSpread(
              {},
              /*istanbul ignore end*/
              hunk
            ), {}, {
              lines: hunk.lines.map(function(line, i3) {
                var _hunk$lines;
                return (
                  /*istanbul ignore end*/
                  line.startsWith("\\") || line.endsWith("\r") || /*istanbul ignore start*/
                  (_hunk$lines = /*istanbul ignore end*/
                  hunk.lines[i3 + 1]) !== null && _hunk$lines !== void 0 && /*istanbul ignore start*/
                  _hunk$lines.startsWith("\\") ? line : line + "\r"
                );
              })
            });
          })
        })
      );
    }
    __name(unixToWin, "unixToWin");
    function winToUnix(patch) {
      if (Array.isArray(patch)) {
        return patch.map(winToUnix);
      }
      return (
        /*istanbul ignore start*/
        _objectSpread(_objectSpread(
          {},
          /*istanbul ignore end*/
          patch
        ), {}, {
          hunks: patch.hunks.map(function(hunk) {
            return _objectSpread(_objectSpread(
              {},
              /*istanbul ignore end*/
              hunk
            ), {}, {
              lines: hunk.lines.map(function(line) {
                return (
                  /*istanbul ignore end*/
                  line.endsWith("\r") ? line.substring(0, line.length - 1) : line
                );
              })
            });
          })
        })
      );
    }
    __name(winToUnix, "winToUnix");
    function isUnix(patch) {
      if (!Array.isArray(patch)) {
        patch = [patch];
      }
      return !patch.some(function(index) {
        return (
          /*istanbul ignore end*/
          index.hunks.some(function(hunk) {
            return (
              /*istanbul ignore end*/
              hunk.lines.some(function(line) {
                return (
                  /*istanbul ignore end*/
                  !line.startsWith("\\") && line.endsWith("\r")
                );
              })
            );
          })
        );
      });
    }
    __name(isUnix, "isUnix");
    function isWin(patch) {
      if (!Array.isArray(patch)) {
        patch = [patch];
      }
      return patch.some(function(index) {
        return (
          /*istanbul ignore end*/
          index.hunks.some(function(hunk) {
            return (
              /*istanbul ignore end*/
              hunk.lines.some(function(line) {
                return (
                  /*istanbul ignore end*/
                  line.endsWith("\r")
                );
              })
            );
          })
        );
      }) && patch.every(function(index) {
        return (
          /*istanbul ignore end*/
          index.hunks.every(function(hunk) {
            return (
              /*istanbul ignore end*/
              hunk.lines.every(function(line, i3) {
                var _hunk$lines2;
                return (
                  /*istanbul ignore end*/
                  line.startsWith("\\") || line.endsWith("\r") || /*istanbul ignore start*/
                  ((_hunk$lines2 = /*istanbul ignore end*/
                  hunk.lines[i3 + 1]) === null || _hunk$lines2 === void 0 ? void 0 : (
                    /*istanbul ignore start*/
                    _hunk$lines2.startsWith("\\")
                  ))
                );
              })
            );
          })
        );
      });
    }
    __name(isWin, "isWin");
  }
});

// ../@aws-cdk/cloudformation-diff/node_modules/diff/lib/patch/parse.js
var require_parse3 = __commonJS({
  "../@aws-cdk/cloudformation-diff/node_modules/diff/lib/patch/parse.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", {
      value: true
    });
    exports2.parsePatch = parsePatch;
    function parsePatch(uniDiff) {
      var diffstr = uniDiff.split(/\n/), list2 = [], i3 = 0;
      function parseIndex() {
        var index = {};
        list2.push(index);
        while (i3 < diffstr.length) {
          var line = diffstr[i3];
          if (/^(\-\-\-|\+\+\+|@@)\s/.test(line)) {
            break;
          }
          var header = /^(?:Index:|diff(?: -r \w+)+)\s+(.+?)\s*$/.exec(line);
          if (header) {
            index.index = header[1];
          }
          i3++;
        }
        parseFileHeader(index);
        parseFileHeader(index);
        index.hunks = [];
        while (i3 < diffstr.length) {
          var _line = diffstr[i3];
          if (/^(Index:\s|diff\s|\-\-\-\s|\+\+\+\s|===================================================================)/.test(_line)) {
            break;
          } else if (/^@@/.test(_line)) {
            index.hunks.push(parseHunk());
          } else if (_line) {
            throw new Error("Unknown line " + (i3 + 1) + " " + JSON.stringify(_line));
          } else {
            i3++;
          }
        }
      }
      __name(parseIndex, "parseIndex");
      function parseFileHeader(index) {
        var fileHeader = /^(---|\+\+\+)\s+(.*)\r?$/.exec(diffstr[i3]);
        if (fileHeader) {
          var keyPrefix = fileHeader[1] === "---" ? "old" : "new";
          var data3 = fileHeader[2].split("	", 2);
          var fileName = data3[0].replace(/\\\\/g, "\\");
          if (/^".*"$/.test(fileName)) {
            fileName = fileName.substr(1, fileName.length - 2);
          }
          index[keyPrefix + "FileName"] = fileName;
          index[keyPrefix + "Header"] = (data3[1] || "").trim();
          i3++;
        }
      }
      __name(parseFileHeader, "parseFileHeader");
      function parseHunk() {
        var chunkHeaderIndex = i3, chunkHeaderLine = diffstr[i3++], chunkHeader = chunkHeaderLine.split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/);
        var hunk = {
          oldStart: +chunkHeader[1],
          oldLines: typeof chunkHeader[2] === "undefined" ? 1 : +chunkHeader[2],
          newStart: +chunkHeader[3],
          newLines: typeof chunkHeader[4] === "undefined" ? 1 : +chunkHeader[4],
          lines: []
        };
        if (hunk.oldLines === 0) {
          hunk.oldStart += 1;
        }
        if (hunk.newLines === 0) {
          hunk.newStart += 1;
        }
        var addCount = 0, removeCount = 0;
        for (; i3 < diffstr.length && (removeCount < hunk.oldLines || addCount < hunk.newLines || /*istanbul ignore start*/
        (_diffstr$i = /*istanbul ignore end*/
        diffstr[i3]) !== null && _diffstr$i !== void 0 && /*istanbul ignore start*/
        _diffstr$i.startsWith("\\")); i3++) {
          var _diffstr$i;
          var operation = diffstr[i3].length == 0 && i3 != diffstr.length - 1 ? " " : diffstr[i3][0];
          if (operation === "+" || operation === "-" || operation === " " || operation === "\\") {
            hunk.lines.push(diffstr[i3]);
            if (operation === "+") {
              addCount++;
            } else if (operation === "-") {
              removeCount++;
            } else if (operation === " ") {
              addCount++;
              removeCount++;
            }
          } else {
            throw new Error(
              /*istanbul ignore start*/
              "Hunk at line ".concat(
                /*istanbul ignore end*/
                chunkHeaderIndex + 1,
                " contained invalid line "
              ).concat(diffstr[i3])
            );
          }
        }
        if (!addCount && hunk.newLines === 1) {
          hunk.newLines = 0;
        }
        if (!removeCount && hunk.oldLines === 1) {
          hunk.oldLines = 0;
        }
        if (addCount !== hunk.newLines) {
          throw new Error("Added line count did not match for hunk at line " + (chunkHeaderIndex + 1));
        }
        if (removeCount !== hunk.oldLines) {
          throw new Error("Removed line count did not match for hunk at line " + (chunkHeaderIndex + 1));
        }
        return hunk;
      }
      __name(parseHunk, "parseHunk");
      while (i3 < diffstr.length) {
        parseIndex();
      }
      return list2;
    }
    __name(parsePatch, "parsePatch");
  }
});

// ../@aws-cdk/cloudformation-diff/node_modules/diff/lib/util/distance-iterator.js
var require_distance_iterator = __commonJS({
  "../@aws-cdk/cloudformation-diff/node_modules/diff/lib/util/distance-iterator.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", {
      value: true
    });
    exports2["default"] = _default;
    function _default(start, minLine, maxLine) {
      var wantForward = true, backwardExhausted = false, forwardExhausted = false, localOffset = 1;
      return /* @__PURE__ */ __name(function iterator() {
        if (wantForward && !forwardExhausted) {
          if (backwardExhausted) {
            localOffset++;
          } else {
            wantForward = false;
          }
          if (start + localOffset <= maxLine) {
            return start + localOffset;
          }
          forwardExhausted = true;
        }
        if (!backwardExhausted) {
          if (!forwardExhausted) {
            wantForward = true;
          }
          if (minLine <= start - localOffset) {
            return start - localOffset++;
          }
          backwardExhausted = true;
          return iterator();
        }
      }, "iterator");
    }
    __name(_default, "_default");
  }
});

// ../@aws-cdk/cloudformation-diff/node_modules/diff/lib/patch/apply.js
var require_apply2 = __commonJS({
  "../@aws-cdk/cloudformation-diff/node_modules/diff/lib/patch/apply.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", {
      value: true
    });
    exports2.applyPatch = applyPatch;
    exports2.applyPatches = applyPatches;
    var _string = require_string();
    var _lineEndings = require_line_endings();
    var _parse = require_parse3();
    var _distanceIterator = _interopRequireDefault(require_distance_iterator());
    function _interopRequireDefault(obj) {
      return obj && obj.__esModule ? obj : { "default": obj };
    }
    __name(_interopRequireDefault, "_interopRequireDefault");
    function applyPatch(source, uniDiff) {
      var options = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
      if (typeof uniDiff === "string") {
        uniDiff = /*istanbul ignore start*/
        (0, /*istanbul ignore end*/
        /*istanbul ignore start*/
        _parse.parsePatch)(uniDiff);
      }
      if (Array.isArray(uniDiff)) {
        if (uniDiff.length > 1) {
          throw new Error("applyPatch only works with a single input.");
        }
        uniDiff = uniDiff[0];
      }
      if (options.autoConvertLineEndings || options.autoConvertLineEndings == null) {
        if (
          /*istanbul ignore start*/
          (0, /*istanbul ignore end*/
          /*istanbul ignore start*/
          _string.hasOnlyWinLineEndings)(source) && /*istanbul ignore start*/
          (0, /*istanbul ignore end*/
          /*istanbul ignore start*/
          _lineEndings.isUnix)(uniDiff)
        ) {
          uniDiff = /*istanbul ignore start*/
          (0, /*istanbul ignore end*/
          /*istanbul ignore start*/
          _lineEndings.unixToWin)(uniDiff);
        } else if (
          /*istanbul ignore start*/
          (0, /*istanbul ignore end*/
          /*istanbul ignore start*/
          _string.hasOnlyUnixLineEndings)(source) && /*istanbul ignore start*/
          (0, /*istanbul ignore end*/
          /*istanbul ignore start*/
          _lineEndings.isWin)(uniDiff)
        ) {
          uniDiff = /*istanbul ignore start*/
          (0, /*istanbul ignore end*/
          /*istanbul ignore start*/
          _lineEndings.winToUnix)(uniDiff);
        }
      }
      var lines = source.split("\n"), hunks = uniDiff.hunks, compareLine = options.compareLine || function(lineNumber, line2, operation, patchContent) {
        return (
          /*istanbul ignore end*/
          line2 === patchContent
        );
      }, fuzzFactor = options.fuzzFactor || 0, minLine = 0;
      if (fuzzFactor < 0 || !Number.isInteger(fuzzFactor)) {
        throw new Error("fuzzFactor must be a non-negative integer");
      }
      if (!hunks.length) {
        return source;
      }
      var prevLine = "", removeEOFNL = false, addEOFNL = false;
      for (var i3 = 0; i3 < hunks[hunks.length - 1].lines.length; i3++) {
        var line = hunks[hunks.length - 1].lines[i3];
        if (line[0] == "\\") {
          if (prevLine[0] == "+") {
            removeEOFNL = true;
          } else if (prevLine[0] == "-") {
            addEOFNL = true;
          }
        }
        prevLine = line;
      }
      if (removeEOFNL) {
        if (addEOFNL) {
          if (!fuzzFactor && lines[lines.length - 1] == "") {
            return false;
          }
        } else if (lines[lines.length - 1] == "") {
          lines.pop();
        } else if (!fuzzFactor) {
          return false;
        }
      } else if (addEOFNL) {
        if (lines[lines.length - 1] != "") {
          lines.push("");
        } else if (!fuzzFactor) {
          return false;
        }
      }
      function applyHunk(hunkLines, toPos2, maxErrors2) {
        var hunkLinesI = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0;
        var lastContextLineMatched = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : true;
        var patchedLines = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : [];
        var patchedLinesLength = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : 0;
        var nConsecutiveOldContextLines = 0;
        var nextContextLineMustMatch = false;
        for (; hunkLinesI < hunkLines.length; hunkLinesI++) {
          var hunkLine = hunkLines[hunkLinesI], operation = hunkLine.length > 0 ? hunkLine[0] : " ", content = hunkLine.length > 0 ? hunkLine.substr(1) : hunkLine;
          if (operation === "-") {
            if (compareLine(toPos2 + 1, lines[toPos2], operation, content)) {
              toPos2++;
              nConsecutiveOldContextLines = 0;
            } else {
              if (!maxErrors2 || lines[toPos2] == null) {
                return null;
              }
              patchedLines[patchedLinesLength] = lines[toPos2];
              return applyHunk(hunkLines, toPos2 + 1, maxErrors2 - 1, hunkLinesI, false, patchedLines, patchedLinesLength + 1);
            }
          }
          if (operation === "+") {
            if (!lastContextLineMatched) {
              return null;
            }
            patchedLines[patchedLinesLength] = content;
            patchedLinesLength++;
            nConsecutiveOldContextLines = 0;
            nextContextLineMustMatch = true;
          }
          if (operation === " ") {
            nConsecutiveOldContextLines++;
            patchedLines[patchedLinesLength] = lines[toPos2];
            if (compareLine(toPos2 + 1, lines[toPos2], operation, content)) {
              patchedLinesLength++;
              lastContextLineMatched = true;
              nextContextLineMustMatch = false;
              toPos2++;
            } else {
              if (nextContextLineMustMatch || !maxErrors2) {
                return null;
              }
              return lines[toPos2] && (applyHunk(hunkLines, toPos2 + 1, maxErrors2 - 1, hunkLinesI + 1, false, patchedLines, patchedLinesLength + 1) || applyHunk(hunkLines, toPos2 + 1, maxErrors2 - 1, hunkLinesI, false, patchedLines, patchedLinesLength + 1)) || applyHunk(hunkLines, toPos2, maxErrors2 - 1, hunkLinesI + 1, false, patchedLines, patchedLinesLength);
            }
          }
        }
        patchedLinesLength -= nConsecutiveOldContextLines;
        toPos2 -= nConsecutiveOldContextLines;
        patchedLines.length = patchedLinesLength;
        return {
          patchedLines,
          oldLineLastI: toPos2 - 1
        };
      }
      __name(applyHunk, "applyHunk");
      var resultLines = [];
      var prevHunkOffset = 0;
      for (var _i = 0; _i < hunks.length; _i++) {
        var hunk = hunks[_i];
        var hunkResult = (
          /*istanbul ignore start*/
          void 0
        );
        var maxLine = lines.length - hunk.oldLines + fuzzFactor;
        var toPos = (
          /*istanbul ignore start*/
          void 0
        );
        for (var maxErrors = 0; maxErrors <= fuzzFactor; maxErrors++) {
          toPos = hunk.oldStart + prevHunkOffset - 1;
          var iterator = (
            /*istanbul ignore start*/
            (0, /*istanbul ignore end*/
            /*istanbul ignore start*/
            _distanceIterator[
              /*istanbul ignore start*/
              "default"
              /*istanbul ignore end*/
            ])(toPos, minLine, maxLine)
          );
          for (; toPos !== void 0; toPos = iterator()) {
            hunkResult = applyHunk(hunk.lines, toPos, maxErrors);
            if (hunkResult) {
              break;
            }
          }
          if (hunkResult) {
            break;
          }
        }
        if (!hunkResult) {
          return false;
        }
        for (var _i2 = minLine; _i2 < toPos; _i2++) {
          resultLines.push(lines[_i2]);
        }
        for (var _i3 = 0; _i3 < hunkResult.patchedLines.length; _i3++) {
          var _line = hunkResult.patchedLines[_i3];
          resultLines.push(_line);
        }
        minLine = hunkResult.oldLineLastI + 1;
        prevHunkOffset = toPos + 1 - hunk.oldStart;
      }
      for (var _i4 = minLine; _i4 < lines.length; _i4++) {
        resultLines.push(lines[_i4]);
      }
      return resultLines.join("\n");
    }
    __name(applyPatch, "applyPatch");
    function applyPatches(uniDiff, options) {
      if (typeof uniDiff === "string") {
        uniDiff = /*istanbul ignore start*/
        (0, /*istanbul ignore end*/
        /*istanbul ignore start*/
        _parse.parsePatch)(uniDiff);
      }
      var currentIndex = 0;
      function processIndex() {
        var index = uniDiff[currentIndex++];
        if (!index) {
          return options.complete();
        }
        options.loadFile(index, function(err, data3) {
          if (err) {
            return options.complete(err);
          }
          var updatedContent = applyPatch(data3, index, options);
          options.patched(index, updatedContent, function(err2) {
            if (err2) {
              return options.complete(err2);
            }
            processIndex();
          });
        });
      }
      __name(processIndex, "processIndex");
      processIndex();
    }
    __name(applyPatches, "applyPatches");
  }
});

// ../@aws-cdk/cloudformation-diff/node_modules/diff/lib/patch/create.js
var require_create = __commonJS({
  "../@aws-cdk/cloudformation-diff/node_modules/diff/lib/patch/create.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", {
      value: true
    });
    exports2.createPatch = createPatch;
    exports2.createTwoFilesPatch = createTwoFilesPatch;
    exports2.formatPatch = formatPatch;
    exports2.structuredPatch = structuredPatch2;
    var _line = require_line();
    function _typeof(o3) {
      "@babel/helpers - typeof";
      return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o4) {
        return typeof o4;
      } : function(o4) {
        return o4 && "function" == typeof Symbol && o4.constructor === Symbol && o4 !== Symbol.prototype ? "symbol" : typeof o4;
      }, _typeof(o3);
    }
    __name(_typeof, "_typeof");
    function _toConsumableArray(arr) {
      return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
    }
    __name(_toConsumableArray, "_toConsumableArray");
    function _nonIterableSpread() {
      throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
    }
    __name(_nonIterableSpread, "_nonIterableSpread");
    function _unsupportedIterableToArray(o3, minLen) {
      if (!o3) return;
      if (typeof o3 === "string") return _arrayLikeToArray(o3, minLen);
      var n3 = Object.prototype.toString.call(o3).slice(8, -1);
      if (n3 === "Object" && o3.constructor) n3 = o3.constructor.name;
      if (n3 === "Map" || n3 === "Set") return Array.from(o3);
      if (n3 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n3)) return _arrayLikeToArray(o3, minLen);
    }
    __name(_unsupportedIterableToArray, "_unsupportedIterableToArray");
    function _iterableToArray(iter) {
      if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
    }
    __name(_iterableToArray, "_iterableToArray");
    function _arrayWithoutHoles(arr) {
      if (Array.isArray(arr)) return _arrayLikeToArray(arr);
    }
    __name(_arrayWithoutHoles, "_arrayWithoutHoles");
    function _arrayLikeToArray(arr, len) {
      if (len == null || len > arr.length) len = arr.length;
      for (var i3 = 0, arr2 = new Array(len); i3 < len; i3++) arr2[i3] = arr[i3];
      return arr2;
    }
    __name(_arrayLikeToArray, "_arrayLikeToArray");
    function ownKeys2(e3, r3) {
      var t3 = Object.keys(e3);
      if (Object.getOwnPropertySymbols) {
        var o3 = Object.getOwnPropertySymbols(e3);
        r3 && (o3 = o3.filter(function(r4) {
          return Object.getOwnPropertyDescriptor(e3, r4).enumerable;
        })), t3.push.apply(t3, o3);
      }
      return t3;
    }
    __name(ownKeys2, "ownKeys");
    function _objectSpread(e3) {
      for (var r3 = 1; r3 < arguments.length; r3++) {
        var t3 = null != arguments[r3] ? arguments[r3] : {};
        r3 % 2 ? ownKeys2(Object(t3), true).forEach(function(r4) {
          _defineProperty(e3, r4, t3[r4]);
        }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e3, Object.getOwnPropertyDescriptors(t3)) : ownKeys2(Object(t3)).forEach(function(r4) {
          Object.defineProperty(e3, r4, Object.getOwnPropertyDescriptor(t3, r4));
        });
      }
      return e3;
    }
    __name(_objectSpread, "_objectSpread");
    function _defineProperty(obj, key, value) {
      key = _toPropertyKey(key);
      if (key in obj) {
        Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
      } else {
        obj[key] = value;
      }
      return obj;
    }
    __name(_defineProperty, "_defineProperty");
    function _toPropertyKey(t3) {
      var i3 = _toPrimitive(t3, "string");
      return "symbol" == _typeof(i3) ? i3 : i3 + "";
    }
    __name(_toPropertyKey, "_toPropertyKey");
    function _toPrimitive(t3, r3) {
      if ("object" != _typeof(t3) || !t3) return t3;
      var e3 = t3[Symbol.toPrimitive];
      if (void 0 !== e3) {
        var i3 = e3.call(t3, r3 || "default");
        if ("object" != _typeof(i3)) return i3;
        throw new TypeError("@@toPrimitive must return a primitive value.");
      }
      return ("string" === r3 ? String : Number)(t3);
    }
    __name(_toPrimitive, "_toPrimitive");
    function structuredPatch2(oldFileName, newFileName, oldStr, newStr, oldHeader, newHeader, options) {
      if (!options) {
        options = {};
      }
      if (typeof options === "function") {
        options = {
          callback: options
        };
      }
      if (typeof options.context === "undefined") {
        options.context = 4;
      }
      if (options.newlineIsToken) {
        throw new Error("newlineIsToken may not be used with patch-generation functions, only with diffing functions");
      }
      if (!options.callback) {
        return diffLinesResultToPatch(
          /*istanbul ignore start*/
          (0, /*istanbul ignore end*/
          /*istanbul ignore start*/
          _line.diffLines)(oldStr, newStr, options)
        );
      } else {
        var _options = (
          /*istanbul ignore end*/
          options
        ), _callback = _options.callback;
        (0, /*istanbul ignore end*/
        /*istanbul ignore start*/
        _line.diffLines)(
          oldStr,
          newStr,
          /*istanbul ignore start*/
          _objectSpread(_objectSpread(
            {},
            /*istanbul ignore end*/
            options
          ), {}, {
            callback: /* @__PURE__ */ __name(function callback(diff) {
              var patch = diffLinesResultToPatch(diff);
              _callback(patch);
            }, "callback")
          })
        );
      }
      function diffLinesResultToPatch(diff) {
        if (!diff) {
          return;
        }
        diff.push({
          value: "",
          lines: []
        });
        function contextLines(lines) {
          return lines.map(function(entry) {
            return " " + entry;
          });
        }
        __name(contextLines, "contextLines");
        var hunks = [];
        var oldRangeStart = 0, newRangeStart = 0, curRange = [], oldLine = 1, newLine = 1;
        var _loop = /* @__PURE__ */ __name(function _loop2() {
          var current = diff[i3], lines = current.lines || splitLines(current.value);
          current.lines = lines;
          if (current.added || current.removed) {
            var _curRange;
            if (!oldRangeStart) {
              var prev = diff[i3 - 1];
              oldRangeStart = oldLine;
              newRangeStart = newLine;
              if (prev) {
                curRange = options.context > 0 ? contextLines(prev.lines.slice(-options.context)) : [];
                oldRangeStart -= curRange.length;
                newRangeStart -= curRange.length;
              }
            }
            (_curRange = /*istanbul ignore end*/
            curRange).push.apply(
              /*istanbul ignore start*/
              _curRange,
              /*istanbul ignore start*/
              _toConsumableArray(
                /*istanbul ignore end*/
                lines.map(function(entry) {
                  return (current.added ? "+" : "-") + entry;
                })
              )
            );
            if (current.added) {
              newLine += lines.length;
            } else {
              oldLine += lines.length;
            }
          } else {
            if (oldRangeStart) {
              if (lines.length <= options.context * 2 && i3 < diff.length - 2) {
                var _curRange2;
                (_curRange2 = /*istanbul ignore end*/
                curRange).push.apply(
                  /*istanbul ignore start*/
                  _curRange2,
                  /*istanbul ignore start*/
                  _toConsumableArray(
                    /*istanbul ignore end*/
                    contextLines(lines)
                  )
                );
              } else {
                var _curRange3;
                var contextSize = Math.min(lines.length, options.context);
                (_curRange3 = /*istanbul ignore end*/
                curRange).push.apply(
                  /*istanbul ignore start*/
                  _curRange3,
                  /*istanbul ignore start*/
                  _toConsumableArray(
                    /*istanbul ignore end*/
                    contextLines(lines.slice(0, contextSize))
                  )
                );
                var _hunk = {
                  oldStart: oldRangeStart,
                  oldLines: oldLine - oldRangeStart + contextSize,
                  newStart: newRangeStart,
                  newLines: newLine - newRangeStart + contextSize,
                  lines: curRange
                };
                hunks.push(_hunk);
                oldRangeStart = 0;
                newRangeStart = 0;
                curRange = [];
              }
            }
            oldLine += lines.length;
            newLine += lines.length;
          }
        }, "_loop");
        for (var i3 = 0; i3 < diff.length; i3++) {
          _loop();
        }
        for (
          var _i = 0, _hunks = (
            /*istanbul ignore end*/
            hunks
          );
          /*istanbul ignore start*/
          _i < _hunks.length;
          /*istanbul ignore start*/
          _i++
        ) {
          var hunk = (
            /*istanbul ignore start*/
            _hunks[_i]
          );
          for (var _i2 = 0; _i2 < hunk.lines.length; _i2++) {
            if (hunk.lines[_i2].endsWith("\n")) {
              hunk.lines[_i2] = hunk.lines[_i2].slice(0, -1);
            } else {
              hunk.lines.splice(_i2 + 1, 0, "\\ No newline at end of file");
              _i2++;
            }
          }
        }
        return {
          oldFileName,
          newFileName,
          oldHeader,
          newHeader,
          hunks
        };
      }
      __name(diffLinesResultToPatch, "diffLinesResultToPatch");
    }
    __name(structuredPatch2, "structuredPatch");
    function formatPatch(diff) {
      if (Array.isArray(diff)) {
        return diff.map(formatPatch).join("\n");
      }
      var ret = [];
      if (diff.oldFileName == diff.newFileName) {
        ret.push("Index: " + diff.oldFileName);
      }
      ret.push("===================================================================");
      ret.push("--- " + diff.oldFileName + (typeof diff.oldHeader === "undefined" ? "" : "	" + diff.oldHeader));
      ret.push("+++ " + diff.newFileName + (typeof diff.newHeader === "undefined" ? "" : "	" + diff.newHeader));
      for (var i3 = 0; i3 < diff.hunks.length; i3++) {
        var hunk = diff.hunks[i3];
        if (hunk.oldLines === 0) {
          hunk.oldStart -= 1;
        }
        if (hunk.newLines === 0) {
          hunk.newStart -= 1;
        }
        ret.push("@@ -" + hunk.oldStart + "," + hunk.oldLines + " +" + hunk.newStart + "," + hunk.newLines + " @@");
        ret.push.apply(ret, hunk.lines);
      }
      return ret.join("\n") + "\n";
    }
    __name(formatPatch, "formatPatch");
    function createTwoFilesPatch(oldFileName, newFileName, oldStr, newStr, oldHeader, newHeader, options) {
      var _options2;
      if (typeof options === "function") {
        options = {
          callback: options
        };
      }
      if (!/*istanbul ignore start*/
      ((_options2 = /*istanbul ignore end*/
      options) !== null && _options2 !== void 0 && /*istanbul ignore start*/
      _options2.callback)) {
        var patchObj = structuredPatch2(oldFileName, newFileName, oldStr, newStr, oldHeader, newHeader, options);
        if (!patchObj) {
          return;
        }
        return formatPatch(patchObj);
      } else {
        var _options3 = (
          /*istanbul ignore end*/
          options
        ), _callback2 = _options3.callback;
        structuredPatch2(
          oldFileName,
          newFileName,
          oldStr,
          newStr,
          oldHeader,
          newHeader,
          /*istanbul ignore start*/
          _objectSpread(_objectSpread(
            {},
            /*istanbul ignore end*/
            options
          ), {}, {
            callback: /* @__PURE__ */ __name(function callback(patchObj2) {
              if (!patchObj2) {
                _callback2();
              } else {
                _callback2(formatPatch(patchObj2));
              }
            }, "callback")
          })
        );
      }
    }
    __name(createTwoFilesPatch, "createTwoFilesPatch");
    function createPatch(fileName, oldStr, newStr, oldHeader, newHeader, options) {
      return createTwoFilesPatch(fileName, fileName, oldStr, newStr, oldHeader, newHeader, options);
    }
    __name(createPatch, "createPatch");
    function splitLines(text) {
      var hasTrailingNl = text.endsWith("\n");
      var result2 = text.split("\n").map(function(line) {
        return (
          /*istanbul ignore end*/
          line + "\n"
        );
      });
      if (hasTrailingNl) {
        result2.pop();
      } else {
        result2.push(result2.pop().slice(0, -1));
      }
      return result2;
    }
    __name(splitLines, "splitLines");
  }
});

// ../@aws-cdk/cloudformation-diff/node_modules/diff/lib/util/array.js
var require_array2 = __commonJS({
  "../@aws-cdk/cloudformation-diff/node_modules/diff/lib/util/array.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", {
      value: true
    });
    exports2.arrayEqual = arrayEqual;
    exports2.arrayStartsWith = arrayStartsWith;
    function arrayEqual(a3, b3) {
      if (a3.length !== b3.length) {
        return false;
      }
      return arrayStartsWith(a3, b3);
    }
    __name(arrayEqual, "arrayEqual");
    function arrayStartsWith(array, start) {
      if (start.length > array.length) {
        return false;
      }
      for (var i3 = 0; i3 < start.length; i3++) {
        if (start[i3] !== array[i3]) {
          return false;
        }
      }
      return true;
    }
    __name(arrayStartsWith, "arrayStartsWith");
  }
});

// ../@aws-cdk/cloudformation-diff/node_modules/diff/lib/patch/merge.js
var require_merge = __commonJS({
  "../@aws-cdk/cloudformation-diff/node_modules/diff/lib/patch/merge.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", {
      value: true
    });
    exports2.calcLineCount = calcLineCount;
    exports2.merge = merge;
    var _create = require_create();
    var _parse = require_parse3();
    var _array = require_array2();
    function _toConsumableArray(arr) {
      return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
    }
    __name(_toConsumableArray, "_toConsumableArray");
    function _nonIterableSpread() {
      throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
    }
    __name(_nonIterableSpread, "_nonIterableSpread");
    function _unsupportedIterableToArray(o3, minLen) {
      if (!o3) return;
      if (typeof o3 === "string") return _arrayLikeToArray(o3, minLen);
      var n3 = Object.prototype.toString.call(o3).slice(8, -1);
      if (n3 === "Object" && o3.constructor) n3 = o3.constructor.name;
      if (n3 === "Map" || n3 === "Set") return Array.from(o3);
      if (n3 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n3)) return _arrayLikeToArray(o3, minLen);
    }
    __name(_unsupportedIterableToArray, "_unsupportedIterableToArray");
    function _iterableToArray(iter) {
      if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
    }
    __name(_iterableToArray, "_iterableToArray");
    function _arrayWithoutHoles(arr) {
      if (Array.isArray(arr)) return _arrayLikeToArray(arr);
    }
    __name(_arrayWithoutHoles, "_arrayWithoutHoles");
    function _arrayLikeToArray(arr, len) {
      if (len == null || len > arr.length) len = arr.length;
      for (var i3 = 0, arr2 = new Array(len); i3 < len; i3++) arr2[i3] = arr[i3];
      return arr2;
    }
    __name(_arrayLikeToArray, "_arrayLikeToArray");
    function calcLineCount(hunk) {
      var _calcOldNewLineCount = (
        /*istanbul ignore end*/
        calcOldNewLineCount(hunk.lines)
      ), oldLines = _calcOldNewLineCount.oldLines, newLines = _calcOldNewLineCount.newLines;
      if (oldLines !== void 0) {
        hunk.oldLines = oldLines;
      } else {
        delete hunk.oldLines;
      }
      if (newLines !== void 0) {
        hunk.newLines = newLines;
      } else {
        delete hunk.newLines;
      }
    }
    __name(calcLineCount, "calcLineCount");
    function merge(mine, theirs, base) {
      mine = loadPatch(mine, base);
      theirs = loadPatch(theirs, base);
      var ret = {};
      if (mine.index || theirs.index) {
        ret.index = mine.index || theirs.index;
      }
      if (mine.newFileName || theirs.newFileName) {
        if (!fileNameChanged(mine)) {
          ret.oldFileName = theirs.oldFileName || mine.oldFileName;
          ret.newFileName = theirs.newFileName || mine.newFileName;
          ret.oldHeader = theirs.oldHeader || mine.oldHeader;
          ret.newHeader = theirs.newHeader || mine.newHeader;
        } else if (!fileNameChanged(theirs)) {
          ret.oldFileName = mine.oldFileName;
          ret.newFileName = mine.newFileName;
          ret.oldHeader = mine.oldHeader;
          ret.newHeader = mine.newHeader;
        } else {
          ret.oldFileName = selectField(ret, mine.oldFileName, theirs.oldFileName);
          ret.newFileName = selectField(ret, mine.newFileName, theirs.newFileName);
          ret.oldHeader = selectField(ret, mine.oldHeader, theirs.oldHeader);
          ret.newHeader = selectField(ret, mine.newHeader, theirs.newHeader);
        }
      }
      ret.hunks = [];
      var mineIndex = 0, theirsIndex = 0, mineOffset = 0, theirsOffset = 0;
      while (mineIndex < mine.hunks.length || theirsIndex < theirs.hunks.length) {
        var mineCurrent = mine.hunks[mineIndex] || {
          oldStart: Infinity
        }, theirsCurrent = theirs.hunks[theirsIndex] || {
          oldStart: Infinity
        };
        if (hunkBefore(mineCurrent, theirsCurrent)) {
          ret.hunks.push(cloneHunk(mineCurrent, mineOffset));
          mineIndex++;
          theirsOffset += mineCurrent.newLines - mineCurrent.oldLines;
        } else if (hunkBefore(theirsCurrent, mineCurrent)) {
          ret.hunks.push(cloneHunk(theirsCurrent, theirsOffset));
          theirsIndex++;
          mineOffset += theirsCurrent.newLines - theirsCurrent.oldLines;
        } else {
          var mergedHunk = {
            oldStart: Math.min(mineCurrent.oldStart, theirsCurrent.oldStart),
            oldLines: 0,
            newStart: Math.min(mineCurrent.newStart + mineOffset, theirsCurrent.oldStart + theirsOffset),
            newLines: 0,
            lines: []
          };
          mergeLines(mergedHunk, mineCurrent.oldStart, mineCurrent.lines, theirsCurrent.oldStart, theirsCurrent.lines);
          theirsIndex++;
          mineIndex++;
          ret.hunks.push(mergedHunk);
        }
      }
      return ret;
    }
    __name(merge, "merge");
    function loadPatch(param, base) {
      if (typeof param === "string") {
        if (/^@@/m.test(param) || /^Index:/m.test(param)) {
          return (
            /*istanbul ignore start*/
            (0, /*istanbul ignore end*/
            /*istanbul ignore start*/
            _parse.parsePatch)(param)[0]
          );
        }
        if (!base) {
          throw new Error("Must provide a base reference or pass in a patch");
        }
        return (
          /*istanbul ignore start*/
          (0, /*istanbul ignore end*/
          /*istanbul ignore start*/
          _create.structuredPatch)(void 0, void 0, base, param)
        );
      }
      return param;
    }
    __name(loadPatch, "loadPatch");
    function fileNameChanged(patch) {
      return patch.newFileName && patch.newFileName !== patch.oldFileName;
    }
    __name(fileNameChanged, "fileNameChanged");
    function selectField(index, mine, theirs) {
      if (mine === theirs) {
        return mine;
      } else {
        index.conflict = true;
        return {
          mine,
          theirs
        };
      }
    }
    __name(selectField, "selectField");
    function hunkBefore(test, check) {
      return test.oldStart < check.oldStart && test.oldStart + test.oldLines < check.oldStart;
    }
    __name(hunkBefore, "hunkBefore");
    function cloneHunk(hunk, offset) {
      return {
        oldStart: hunk.oldStart,
        oldLines: hunk.oldLines,
        newStart: hunk.newStart + offset,
        newLines: hunk.newLines,
        lines: hunk.lines
      };
    }
    __name(cloneHunk, "cloneHunk");
    function mergeLines(hunk, mineOffset, mineLines, theirOffset, theirLines) {
      var mine = {
        offset: mineOffset,
        lines: mineLines,
        index: 0
      }, their = {
        offset: theirOffset,
        lines: theirLines,
        index: 0
      };
      insertLeading(hunk, mine, their);
      insertLeading(hunk, their, mine);
      while (mine.index < mine.lines.length && their.index < their.lines.length) {
        var mineCurrent = mine.lines[mine.index], theirCurrent = their.lines[their.index];
        if ((mineCurrent[0] === "-" || mineCurrent[0] === "+") && (theirCurrent[0] === "-" || theirCurrent[0] === "+")) {
          mutualChange(hunk, mine, their);
        } else if (mineCurrent[0] === "+" && theirCurrent[0] === " ") {
          var _hunk$lines;
          (_hunk$lines = /*istanbul ignore end*/
          hunk.lines).push.apply(
            /*istanbul ignore start*/
            _hunk$lines,
            /*istanbul ignore start*/
            _toConsumableArray(
              /*istanbul ignore end*/
              collectChange(mine)
            )
          );
        } else if (theirCurrent[0] === "+" && mineCurrent[0] === " ") {
          var _hunk$lines2;
          (_hunk$lines2 = /*istanbul ignore end*/
          hunk.lines).push.apply(
            /*istanbul ignore start*/
            _hunk$lines2,
            /*istanbul ignore start*/
            _toConsumableArray(
              /*istanbul ignore end*/
              collectChange(their)
            )
          );
        } else if (mineCurrent[0] === "-" && theirCurrent[0] === " ") {
          removal(hunk, mine, their);
        } else if (theirCurrent[0] === "-" && mineCurrent[0] === " ") {
          removal(hunk, their, mine, true);
        } else if (mineCurrent === theirCurrent) {
          hunk.lines.push(mineCurrent);
          mine.index++;
          their.index++;
        } else {
          conflict(hunk, collectChange(mine), collectChange(their));
        }
      }
      insertTrailing(hunk, mine);
      insertTrailing(hunk, their);
      calcLineCount(hunk);
    }
    __name(mergeLines, "mergeLines");
    function mutualChange(hunk, mine, their) {
      var myChanges = collectChange(mine), theirChanges = collectChange(their);
      if (allRemoves(myChanges) && allRemoves(theirChanges)) {
        if (
          /*istanbul ignore start*/
          (0, /*istanbul ignore end*/
          /*istanbul ignore start*/
          _array.arrayStartsWith)(myChanges, theirChanges) && skipRemoveSuperset(their, myChanges, myChanges.length - theirChanges.length)
        ) {
          var _hunk$lines3;
          (_hunk$lines3 = /*istanbul ignore end*/
          hunk.lines).push.apply(
            /*istanbul ignore start*/
            _hunk$lines3,
            /*istanbul ignore start*/
            _toConsumableArray(
              /*istanbul ignore end*/
              myChanges
            )
          );
          return;
        } else if (
          /*istanbul ignore start*/
          (0, /*istanbul ignore end*/
          /*istanbul ignore start*/
          _array.arrayStartsWith)(theirChanges, myChanges) && skipRemoveSuperset(mine, theirChanges, theirChanges.length - myChanges.length)
        ) {
          var _hunk$lines4;
          (_hunk$lines4 = /*istanbul ignore end*/
          hunk.lines).push.apply(
            /*istanbul ignore start*/
            _hunk$lines4,
            /*istanbul ignore start*/
            _toConsumableArray(
              /*istanbul ignore end*/
              theirChanges
            )
          );
          return;
        }
      } else if (
        /*istanbul ignore start*/
        (0, /*istanbul ignore end*/
        /*istanbul ignore start*/
        _array.arrayEqual)(myChanges, theirChanges)
      ) {
        var _hunk$lines5;
        (_hunk$lines5 = /*istanbul ignore end*/
        hunk.lines).push.apply(
          /*istanbul ignore start*/
          _hunk$lines5,
          /*istanbul ignore start*/
          _toConsumableArray(
            /*istanbul ignore end*/
            myChanges
          )
        );
        return;
      }
      conflict(hunk, myChanges, theirChanges);
    }
    __name(mutualChange, "mutualChange");
    function removal(hunk, mine, their, swap) {
      var myChanges = collectChange(mine), theirChanges = collectContext(their, myChanges);
      if (theirChanges.merged) {
        var _hunk$lines6;
        (_hunk$lines6 = /*istanbul ignore end*/
        hunk.lines).push.apply(
          /*istanbul ignore start*/
          _hunk$lines6,
          /*istanbul ignore start*/
          _toConsumableArray(
            /*istanbul ignore end*/
            theirChanges.merged
          )
        );
      } else {
        conflict(hunk, swap ? theirChanges : myChanges, swap ? myChanges : theirChanges);
      }
    }
    __name(removal, "removal");
    function conflict(hunk, mine, their) {
      hunk.conflict = true;
      hunk.lines.push({
        conflict: true,
        mine,
        theirs: their
      });
    }
    __name(conflict, "conflict");
    function insertLeading(hunk, insert, their) {
      while (insert.offset < their.offset && insert.index < insert.lines.length) {
        var line = insert.lines[insert.index++];
        hunk.lines.push(line);
        insert.offset++;
      }
    }
    __name(insertLeading, "insertLeading");
    function insertTrailing(hunk, insert) {
      while (insert.index < insert.lines.length) {
        var line = insert.lines[insert.index++];
        hunk.lines.push(line);
      }
    }
    __name(insertTrailing, "insertTrailing");
    function collectChange(state2) {
      var ret = [], operation = state2.lines[state2.index][0];
      while (state2.index < state2.lines.length) {
        var line = state2.lines[state2.index];
        if (operation === "-" && line[0] === "+") {
          operation = "+";
        }
        if (operation === line[0]) {
          ret.push(line);
          state2.index++;
        } else {
          break;
        }
      }
      return ret;
    }
    __name(collectChange, "collectChange");
    function collectContext(state2, matchChanges) {
      var changes = [], merged = [], matchIndex = 0, contextChanges = false, conflicted = false;
      while (matchIndex < matchChanges.length && state2.index < state2.lines.length) {
        var change = state2.lines[state2.index], match4 = matchChanges[matchIndex];
        if (match4[0] === "+") {
          break;
        }
        contextChanges = contextChanges || change[0] !== " ";
        merged.push(match4);
        matchIndex++;
        if (change[0] === "+") {
          conflicted = true;
          while (change[0] === "+") {
            changes.push(change);
            change = state2.lines[++state2.index];
          }
        }
        if (match4.substr(1) === change.substr(1)) {
          changes.push(change);
          state2.index++;
        } else {
          conflicted = true;
        }
      }
      if ((matchChanges[matchIndex] || "")[0] === "+" && contextChanges) {
        conflicted = true;
      }
      if (conflicted) {
        return changes;
      }
      while (matchIndex < matchChanges.length) {
        merged.push(matchChanges[matchIndex++]);
      }
      return {
        merged,
        changes
      };
    }
    __name(collectContext, "collectContext");
    function allRemoves(changes) {
      return changes.reduce(function(prev, change) {
        return prev && change[0] === "-";
      }, true);
    }
    __name(allRemoves, "allRemoves");
    function skipRemoveSuperset(state2, removeChanges, delta) {
      for (var i3 = 0; i3 < delta; i3++) {
        var changeContent = removeChanges[removeChanges.length - delta + i3].substr(1);
        if (state2.lines[state2.index + i3] !== " " + changeContent) {
          return false;
        }
      }
      state2.index += delta;
      return true;
    }
    __name(skipRemoveSuperset, "skipRemoveSuperset");
    function calcOldNewLineCount(lines) {
      var oldLines = 0;
      var newLines = 0;
      lines.forEach(function(line) {
        if (typeof line !== "string") {
          var myCount = calcOldNewLineCount(line.mine);
          var theirCount = calcOldNewLineCount(line.theirs);
          if (oldLines !== void 0) {
            if (myCount.oldLines === theirCount.oldLines) {
              oldLines += myCount.oldLines;
            } else {
              oldLines = void 0;
            }
          }
          if (newLines !== void 0) {
            if (myCount.newLines === theirCount.newLines) {
              newLines += myCount.newLines;
            } else {
              newLines = void 0;
            }
          }
        } else {
          if (newLines !== void 0 && (line[0] === "+" || line[0] === " ")) {
            newLines++;
          }
          if (oldLines !== void 0 && (line[0] === "-" || line[0] === " ")) {
            oldLines++;
          }
        }
      });
      return {
        oldLines,
        newLines
      };
    }
    __name(calcOldNewLineCount, "calcOldNewLineCount");
  }
});

// ../@aws-cdk/cloudformation-diff/node_modules/diff/lib/patch/reverse.js
var require_reverse = __commonJS({
  "../@aws-cdk/cloudformation-diff/node_modules/diff/lib/patch/reverse.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", {
      value: true
    });
    exports2.reversePatch = reversePatch;
    function _typeof(o3) {
      "@babel/helpers - typeof";
      return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o4) {
        return typeof o4;
      } : function(o4) {
        return o4 && "function" == typeof Symbol && o4.constructor === Symbol && o4 !== Symbol.prototype ? "symbol" : typeof o4;
      }, _typeof(o3);
    }
    __name(_typeof, "_typeof");
    function ownKeys2(e3, r3) {
      var t3 = Object.keys(e3);
      if (Object.getOwnPropertySymbols) {
        var o3 = Object.getOwnPropertySymbols(e3);
        r3 && (o3 = o3.filter(function(r4) {
          return Object.getOwnPropertyDescriptor(e3, r4).enumerable;
        })), t3.push.apply(t3, o3);
      }
      return t3;
    }
    __name(ownKeys2, "ownKeys");
    function _objectSpread(e3) {
      for (var r3 = 1; r3 < arguments.length; r3++) {
        var t3 = null != arguments[r3] ? arguments[r3] : {};
        r3 % 2 ? ownKeys2(Object(t3), true).forEach(function(r4) {
          _defineProperty(e3, r4, t3[r4]);
        }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e3, Object.getOwnPropertyDescriptors(t3)) : ownKeys2(Object(t3)).forEach(function(r4) {
          Object.defineProperty(e3, r4, Object.getOwnPropertyDescriptor(t3, r4));
        });
      }
      return e3;
    }
    __name(_objectSpread, "_objectSpread");
    function _defineProperty(obj, key, value) {
      key = _toPropertyKey(key);
      if (key in obj) {
        Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
      } else {
        obj[key] = value;
      }
      return obj;
    }
    __name(_defineProperty, "_defineProperty");
    function _toPropertyKey(t3) {
      var i3 = _toPrimitive(t3, "string");
      return "symbol" == _typeof(i3) ? i3 : i3 + "";
    }
    __name(_toPropertyKey, "_toPropertyKey");
    function _toPrimitive(t3, r3) {
      if ("object" != _typeof(t3) || !t3) return t3;
      var e3 = t3[Symbol.toPrimitive];
      if (void 0 !== e3) {
        var i3 = e3.call(t3, r3 || "default");
        if ("object" != _typeof(i3)) return i3;
        throw new TypeError("@@toPrimitive must return a primitive value.");
      }
      return ("string" === r3 ? String : Number)(t3);
    }
    __name(_toPrimitive, "_toPrimitive");
    function reversePatch(structuredPatch2) {
      if (Array.isArray(structuredPatch2)) {
        return structuredPatch2.map(reversePatch).reverse();
      }
      return (
        /*istanbul ignore start*/
        _objectSpread(_objectSpread(
          {},
          /*istanbul ignore end*/
          structuredPatch2
        ), {}, {
          oldFileName: structuredPatch2.newFileName,
          oldHeader: structuredPatch2.newHeader,
          newFileName: structuredPatch2.oldFileName,
          newHeader: structuredPatch2.oldHeader,
          hunks: structuredPatch2.hunks.map(function(hunk) {
            return {
              oldLines: hunk.newLines,
              oldStart: hunk.newStart,
              newLines: hunk.oldLines,
              newStart: hunk.oldStart,
              lines: hunk.lines.map(function(l3) {
                if (l3.startsWith("-")) {
                  return (
                    /*istanbul ignore start*/
                    "+".concat(
                      /*istanbul ignore end*/
                      l3.slice(1)
                    )
                  );
                }
                if (l3.startsWith("+")) {
                  return (
                    /*istanbul ignore start*/
                    "-".concat(
                      /*istanbul ignore end*/
                      l3.slice(1)
                    )
                  );
                }
                return l3;
              })
            };
          })
        })
      );
    }
    __name(reversePatch, "reversePatch");
  }
});

// ../@aws-cdk/cloudformation-diff/node_modules/diff/lib/convert/dmp.js
var require_dmp = __commonJS({
  "../@aws-cdk/cloudformation-diff/node_modules/diff/lib/convert/dmp.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", {
      value: true
    });
    exports2.convertChangesToDMP = convertChangesToDMP;
    function convertChangesToDMP(changes) {
      var ret = [], change, operation;
      for (var i3 = 0; i3 < changes.length; i3++) {
        change = changes[i3];
        if (change.added) {
          operation = 1;
        } else if (change.removed) {
          operation = -1;
        } else {
          operation = 0;
        }
        ret.push([operation, change.value]);
      }
      return ret;
    }
    __name(convertChangesToDMP, "convertChangesToDMP");
  }
});

// ../@aws-cdk/cloudformation-diff/node_modules/diff/lib/convert/xml.js
var require_xml = __commonJS({
  "../@aws-cdk/cloudformation-diff/node_modules/diff/lib/convert/xml.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", {
      value: true
    });
    exports2.convertChangesToXML = convertChangesToXML;
    function convertChangesToXML(changes) {
      var ret = [];
      for (var i3 = 0; i3 < changes.length; i3++) {
        var change = changes[i3];
        if (change.added) {
          ret.push("<ins>");
        } else if (change.removed) {
          ret.push("<del>");
        }
        ret.push(escapeHTML(change.value));
        if (change.added) {
          ret.push("</ins>");
        } else if (change.removed) {
          ret.push("</del>");
        }
      }
      return ret.join("");
    }
    __name(convertChangesToXML, "convertChangesToXML");
    function escapeHTML(s3) {
      var n3 = s3;
      n3 = n3.replace(/&/g, "&amp;");
      n3 = n3.replace(/</g, "&lt;");
      n3 = n3.replace(/>/g, "&gt;");
      n3 = n3.replace(/"/g, "&quot;");
      return n3;
    }
    __name(escapeHTML, "escapeHTML");
  }
});

// ../@aws-cdk/cloudformation-diff/node_modules/diff/lib/index.js
var require_lib10 = __commonJS({
  "../@aws-cdk/cloudformation-diff/node_modules/diff/lib/index.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", {
      value: true
    });
    Object.defineProperty(exports2, "Diff", {
      enumerable: true,
      get: /* @__PURE__ */ __name(function get3() {
        return _base["default"];
      }, "get")
    });
    Object.defineProperty(exports2, "applyPatch", {
      enumerable: true,
      get: /* @__PURE__ */ __name(function get3() {
        return _apply.applyPatch;
      }, "get")
    });
    Object.defineProperty(exports2, "applyPatches", {
      enumerable: true,
      get: /* @__PURE__ */ __name(function get3() {
        return _apply.applyPatches;
      }, "get")
    });
    Object.defineProperty(exports2, "canonicalize", {
      enumerable: true,
      get: /* @__PURE__ */ __name(function get3() {
        return _json2.canonicalize;
      }, "get")
    });
    Object.defineProperty(exports2, "convertChangesToDMP", {
      enumerable: true,
      get: /* @__PURE__ */ __name(function get3() {
        return _dmp.convertChangesToDMP;
      }, "get")
    });
    Object.defineProperty(exports2, "convertChangesToXML", {
      enumerable: true,
      get: /* @__PURE__ */ __name(function get3() {
        return _xml.convertChangesToXML;
      }, "get")
    });
    Object.defineProperty(exports2, "createPatch", {
      enumerable: true,
      get: /* @__PURE__ */ __name(function get3() {
        return _create.createPatch;
      }, "get")
    });
    Object.defineProperty(exports2, "createTwoFilesPatch", {
      enumerable: true,
      get: /* @__PURE__ */ __name(function get3() {
        return _create.createTwoFilesPatch;
      }, "get")
    });
    Object.defineProperty(exports2, "diffArrays", {
      enumerable: true,
      get: /* @__PURE__ */ __name(function get3() {
        return _array.diffArrays;
      }, "get")
    });
    Object.defineProperty(exports2, "diffChars", {
      enumerable: true,
      get: /* @__PURE__ */ __name(function get3() {
        return _character.diffChars;
      }, "get")
    });
    Object.defineProperty(exports2, "diffCss", {
      enumerable: true,
      get: /* @__PURE__ */ __name(function get3() {
        return _css.diffCss;
      }, "get")
    });
    Object.defineProperty(exports2, "diffJson", {
      enumerable: true,
      get: /* @__PURE__ */ __name(function get3() {
        return _json2.diffJson;
      }, "get")
    });
    Object.defineProperty(exports2, "diffLines", {
      enumerable: true,
      get: /* @__PURE__ */ __name(function get3() {
        return _line.diffLines;
      }, "get")
    });
    Object.defineProperty(exports2, "diffSentences", {
      enumerable: true,
      get: /* @__PURE__ */ __name(function get3() {
        return _sentence.diffSentences;
      }, "get")
    });
    Object.defineProperty(exports2, "diffTrimmedLines", {
      enumerable: true,
      get: /* @__PURE__ */ __name(function get3() {
        return _line.diffTrimmedLines;
      }, "get")
    });
    Object.defineProperty(exports2, "diffWords", {
      enumerable: true,
      get: /* @__PURE__ */ __name(function get3() {
        return _word.diffWords;
      }, "get")
    });
    Object.defineProperty(exports2, "diffWordsWithSpace", {
      enumerable: true,
      get: /* @__PURE__ */ __name(function get3() {
        return _word.diffWordsWithSpace;
      }, "get")
    });
    Object.defineProperty(exports2, "formatPatch", {
      enumerable: true,
      get: /* @__PURE__ */ __name(function get3() {
        return _create.formatPatch;
      }, "get")
    });
    Object.defineProperty(exports2, "merge", {
      enumerable: true,
      get: /* @__PURE__ */ __name(function get3() {
        return _merge.merge;
      }, "get")
    });
    Object.defineProperty(exports2, "parsePatch", {
      enumerable: true,
      get: /* @__PURE__ */ __name(function get3() {
        return _parse.parsePatch;
      }, "get")
    });
    Object.defineProperty(exports2, "reversePatch", {
      enumerable: true,
      get: /* @__PURE__ */ __name(function get3() {
        return _reverse.reversePatch;
      }, "get")
    });
    Object.defineProperty(exports2, "structuredPatch", {
      enumerable: true,
      get: /* @__PURE__ */ __name(function get3() {
        return _create.structuredPatch;
      }, "get")
    });
    var _base = _interopRequireDefault(require_base());
    var _character = require_character();
    var _word = require_word();
    var _line = require_line();
    var _sentence = require_sentence();
    var _css = require_css();
    var _json2 = require_json3();
    var _array = require_array();
    var _apply = require_apply2();
    var _parse = require_parse3();
    var _merge = require_merge();
    var _reverse = require_reverse();
    var _create = require_create();
    var _dmp = require_dmp();
    var _xml = require_xml();
    function _interopRequireDefault(obj) {
      return obj && obj.__esModule ? obj : { "default": obj };
    }
    __name(_interopRequireDefault, "_interopRequireDefault");
  }
});

// ../@aws-cdk/cloudformation-diff/lib/format.ts
var format_exports = {};
__export(format_exports, {
  Formatter: () => Formatter,
  formatDifferences: () => formatDifferences,
  formatSecurityChanges: () => formatSecurityChanges
});
function formatDifferences(stream3, templateDiff, logicalToPathMap = {}, context = 3) {
  const formatter = new Formatter(stream3, logicalToPathMap, templateDiff, context);
  if (templateDiff.awsTemplateFormatVersion || templateDiff.transform || templateDiff.description) {
    formatter.printSectionHeader("Template");
    formatter.formatDifference("AWSTemplateFormatVersion", "AWSTemplateFormatVersion", templateDiff.awsTemplateFormatVersion);
    formatter.formatDifference("Transform", "Transform", templateDiff.transform);
    formatter.formatDifference("Description", "Description", templateDiff.description);
    formatter.printSectionFooter();
  }
  formatSecurityChangesWithBanner(formatter, templateDiff);
  formatter.formatSection("Parameters", "Parameter", templateDiff.parameters);
  formatter.formatSection("Metadata", "Metadata", templateDiff.metadata);
  formatter.formatSection("Mappings", "Mapping", templateDiff.mappings);
  formatter.formatSection("Conditions", "Condition", templateDiff.conditions);
  formatter.formatSection("Resources", "Resource", templateDiff.resources, formatter.formatResourceDifference.bind(formatter));
  formatter.formatSection("Outputs", "Output", templateDiff.outputs);
  formatter.formatSection("Other Changes", "Unknown", templateDiff.unknown);
}
function formatSecurityChanges(stream3, templateDiff, logicalToPathMap = {}, context) {
  const formatter = new Formatter(stream3, logicalToPathMap, templateDiff, context);
  formatSecurityChangesWithBanner(formatter, templateDiff);
}
function formatSecurityChangesWithBanner(formatter, templateDiff) {
  if (!templateDiff.iamChanges.hasChanges && !templateDiff.securityGroupChanges.hasChanges) {
    return;
  }
  formatter.formatIamChanges(templateDiff.iamChanges);
  formatter.formatSecurityGroupChanges(templateDiff.securityGroupChanges);
  formatter.warning("(NOTE: There may be security-related changes not in this list. See https://github.com/aws/aws-cdk/issues/1299)");
  formatter.printSectionFooter();
}
function _diffStrings(oldStr, newStr, context) {
  const patch = structuredPatch(null, null, oldStr, newStr, null, null, { context });
  const result2 = new Array();
  for (const hunk of patch.hunks) {
    result2.push(chalk6.magenta(`@@ -${hunk.oldStart},${hunk.oldLines} +${hunk.newStart},${hunk.newLines} @@`));
    const baseIndent = _findIndent(hunk.lines);
    for (const line of hunk.lines) {
      if (line === "\\ No newline at end of file") {
        continue;
      }
      const marker = line.charAt(0);
      const text = line.slice(1 + baseIndent);
      switch (marker) {
        case " ":
          result2.push(`${CONTEXT} ${text}`);
          break;
        case "+":
          result2.push(chalk6.bold(`${ADDITION} ${chalk6.green(text)}`));
          break;
        case "-":
          result2.push(chalk6.bold(`${REMOVAL} ${chalk6.red(text)}`));
          break;
        default:
          throw new Error(`Unexpected diff marker: ${marker} (full line: ${line})`);
      }
    }
  }
  return result2;
  function _findIndent(lines) {
    let indent = Number.MAX_SAFE_INTEGER;
    for (const line of lines) {
      for (let i3 = 1; i3 < line.length; i3++) {
        if (line.charAt(i3) !== " ") {
          indent = indent > i3 - 1 ? i3 - 1 : indent;
          break;
        }
      }
    }
    return indent;
  }
  __name(_findIndent, "_findIndent");
}
var import_util20, chalk6, PATH_METADATA_KEY, structuredPatch, ADDITION, CONTEXT, UPDATE, REMOVAL, IMPORT, Formatter;
var init_format = __esm({
  "../@aws-cdk/cloudformation-diff/lib/format.ts"() {
    "use strict";
    import_util20 = require("util");
    chalk6 = __toESM(require_source());
    init_util4();
    init_diff_template();
    init_format_table();
    PATH_METADATA_KEY = "aws:cdk:path";
    ({ structuredPatch } = require_lib10());
    __name(formatDifferences, "formatDifferences");
    __name(formatSecurityChanges, "formatSecurityChanges");
    __name(formatSecurityChangesWithBanner, "formatSecurityChangesWithBanner");
    ADDITION = chalk6.green("[+]");
    CONTEXT = chalk6.grey("[ ]");
    UPDATE = chalk6.yellow("[~]");
    REMOVAL = chalk6.red("[-]");
    IMPORT = chalk6.blue("[\u2190]");
    Formatter = class {
      constructor(stream3, logicalToPathMap, diff, context = 3) {
        this.stream = stream3;
        this.logicalToPathMap = logicalToPathMap;
        this.context = context;
        if (diff) {
          this.readConstructPathsFrom(diff);
        }
      }
      static {
        __name(this, "Formatter");
      }
      print(fmt, ...args) {
        this.stream.write(chalk6.white((0, import_util20.format)(fmt, ...args)) + "\n");
      }
      warning(fmt, ...args) {
        this.stream.write(chalk6.yellow((0, import_util20.format)(fmt, ...args)) + "\n");
      }
      formatSection(title, entryType, collection, formatter = this.formatDifference.bind(this)) {
        if (collection.differenceCount === 0) {
          return;
        }
        this.printSectionHeader(title);
        collection.forEachDifference((id, diff) => formatter(entryType, id, diff));
        this.printSectionFooter();
      }
      printSectionHeader(title) {
        this.print(chalk6.underline(chalk6.bold(title)));
      }
      printSectionFooter() {
        this.print("");
      }
      /**
       * Print a simple difference for a given named entity.
       *
       * @param logicalId - the name of the entity that is different.
       * @param diff - the difference to be rendered.
       */
      formatDifference(type, logicalId, diff) {
        if (!diff || !diff.isDifferent) {
          return;
        }
        let value;
        const oldValue = this.formatValue(diff.oldValue, chalk6.red);
        const newValue = this.formatValue(diff.newValue, chalk6.green);
        if (diff.isAddition) {
          value = newValue;
        } else if (diff.isUpdate) {
          value = `${oldValue} to ${newValue}`;
        } else if (diff.isRemoval) {
          value = oldValue;
        }
        this.print(`${this.formatPrefix(diff)} ${chalk6.cyan(type)} ${this.formatLogicalId(logicalId)}: ${value}`);
      }
      /**
       * Print a resource difference for a given logical ID.
       *
       * @param logicalId - the logical ID of the resource that changed.
       * @param diff      - the change to be rendered.
       */
      formatResourceDifference(_type, logicalId, diff) {
        if (!diff.isDifferent) {
          return;
        }
        const resourceType = diff.isRemoval ? diff.oldResourceType : diff.newResourceType;
        const message2 = [
          this.formatResourcePrefix(diff),
          this.formatValue(resourceType, chalk6.cyan),
          this.formatLogicalId(logicalId),
          this.formatImpact(diff.changeImpact),
          this.formatMove(diff.move)
        ].filter(Boolean).join(" ");
        this.print(message2);
        if (diff.isUpdate) {
          const differenceCount = diff.differenceCount;
          let processedCount = 0;
          diff.forEachDifference((_3, name, values) => {
            processedCount += 1;
            this.formatTreeDiff(name, values, processedCount === differenceCount);
          });
        }
      }
      formatResourcePrefix(diff) {
        if (diff.isImport) {
          return IMPORT;
        }
        return this.formatPrefix(diff);
      }
      formatPrefix(diff) {
        if (diff.isAddition) {
          return ADDITION;
        }
        if (diff.isUpdate) {
          return UPDATE;
        }
        if (diff.isRemoval) {
          return REMOVAL;
        }
        return chalk6.white("[?]");
      }
      /**
       * @param value - the value to be formatted.
       * @param color - the color to be used.
       *
       * @returns the formatted string, with color applied.
       */
      formatValue(value, color) {
        if (value == null) {
          return void 0;
        }
        if (typeof value === "string") {
          return color(value);
        }
        return color(JSON.stringify(value));
      }
      /**
       * @param impact - the impact to be formatted
       * @returns a user-friendly, colored string representing the impact.
       */
      formatImpact(impact) {
        switch (impact) {
          case "MAY_REPLACE" /* MAY_REPLACE */:
            return chalk6.italic(chalk6.yellow("may be replaced"));
          case "WILL_REPLACE" /* WILL_REPLACE */:
            return chalk6.italic(chalk6.bold(chalk6.red("replace")));
          case "WILL_DESTROY" /* WILL_DESTROY */:
            return chalk6.italic(chalk6.bold(chalk6.red("destroy")));
          case "WILL_ORPHAN" /* WILL_ORPHAN */:
            return chalk6.italic(chalk6.yellow("orphan"));
          case "WILL_IMPORT" /* WILL_IMPORT */:
            return chalk6.italic(chalk6.blue("import"));
          case "WILL_UPDATE" /* WILL_UPDATE */:
          case "WILL_CREATE" /* WILL_CREATE */:
          case "NO_CHANGE" /* NO_CHANGE */:
            return "";
        }
      }
      formatMove(move) {
        return !move ? "" : chalk6.yellow("(OR", chalk6.italic(chalk6.bold("move")), `${move.direction} ${move.stackName}.${move.resourceLogicalId} via refactoring)`);
      }
      /**
       * Renders a tree of differences under a particular name.
       * @param name    - the name of the root of the tree.
       * @param diff    - the difference on the tree.
       * @param last    - whether this is the last node of a parent tree.
       */
      formatTreeDiff(name, diff, last) {
        let additionalInfo = "";
        if (isPropertyDifference(diff)) {
          if (diff.changeImpact === "MAY_REPLACE" /* MAY_REPLACE */) {
            additionalInfo = " (may cause replacement)";
          } else if (diff.changeImpact === "WILL_REPLACE" /* WILL_REPLACE */) {
            additionalInfo = " (requires replacement)";
          }
        }
        this.print(" %s\u2500 %s %s%s", last ? "\u2514" : "\u251C", this.changeTag(diff.oldValue, diff.newValue), name, additionalInfo);
        return this.formatObjectDiff(diff.oldValue, diff.newValue, ` ${last ? " " : "\u2502"}`);
      }
      /**
       * Renders the difference between two objects, looking for the differences as deep as possible,
       * and rendering a tree graph of the path until the difference is found.
       *
       * @param oldObject  - the old object.
       * @param newObject  - the new object.
       * @param linePrefix - a prefix (indent-like) to be used on every line.
       */
      formatObjectDiff(oldObject, newObject, linePrefix) {
        if (typeof oldObject !== typeof newObject || Array.isArray(oldObject) || typeof oldObject === "string" || typeof oldObject === "number") {
          if (oldObject !== void 0 && newObject !== void 0) {
            if (typeof oldObject === "object" || typeof newObject === "object") {
              const oldStr = JSON.stringify(oldObject, null, 2);
              const newStr = JSON.stringify(newObject, null, 2);
              const diff = _diffStrings(oldStr, newStr, this.context);
              for (let i3 = 0; i3 < diff.length; i3++) {
                this.print("%s   %s %s", linePrefix, i3 === 0 ? "\u2514\u2500" : "  ", diff[i3]);
              }
            } else {
              this.print("%s   \u251C\u2500 %s %s", linePrefix, REMOVAL, this.formatValue(oldObject, chalk6.red));
              this.print("%s   \u2514\u2500 %s %s", linePrefix, ADDITION, this.formatValue(newObject, chalk6.green));
            }
          } else if (oldObject !== void 0) {
            this.print("%s   \u2514\u2500 %s", linePrefix, this.formatValue(oldObject, chalk6.red));
          } else {
            this.print("%s   \u2514\u2500 %s", linePrefix, this.formatValue(newObject, chalk6.green));
          }
          return;
        }
        const keySet = new Set(Object.keys(oldObject));
        Object.keys(newObject).forEach((k3) => keySet.add(k3));
        const keys = new Array(...keySet).filter((k3) => !deepEqual(oldObject[k3], newObject[k3])).sort();
        const lastKey = keys[keys.length - 1];
        for (const key of keys) {
          const oldValue = oldObject[key];
          const newValue = newObject[key];
          const treePrefix = key === lastKey ? "\u2514" : "\u251C";
          if (oldValue !== void 0 && newValue !== void 0) {
            this.print("%s   %s\u2500 %s %s:", linePrefix, treePrefix, this.changeTag(oldValue, newValue), chalk6.blue(`.${key}`));
            this.formatObjectDiff(oldValue, newValue, `${linePrefix}   ${key === lastKey ? " " : "\u2502"}`);
          } else if (oldValue !== void 0) {
            this.print("%s   %s\u2500 %s Removed: %s", linePrefix, treePrefix, REMOVAL, chalk6.blue(`.${key}`));
          } else {
            this.print("%s   %s\u2500 %s Added: %s", linePrefix, treePrefix, ADDITION, chalk6.blue(`.${key}`));
          }
        }
      }
      /**
       * @param oldValue - the old value of a difference.
       * @param newValue - the new value of a difference.
       *
       * @returns a tag to be rendered in the diff, reflecting whether the difference
       *      was an ADDITION, UPDATE or REMOVAL.
       */
      changeTag(oldValue, newValue) {
        if (oldValue !== void 0 && newValue !== void 0) {
          return UPDATE;
        } else if (oldValue !== void 0) {
          return REMOVAL;
        } else {
          return ADDITION;
        }
      }
      /**
       * Find 'aws:cdk:path' metadata in the diff and add it to the logicalToPathMap
       *
       * There are multiple sources of logicalID -> path mappings: synth metadata
       * and resource metadata, and we combine all sources into a single map.
       */
      readConstructPathsFrom(templateDiff) {
        for (const [logicalId, resourceDiff] of Object.entries(templateDiff.resources)) {
          if (!resourceDiff) {
            continue;
          }
          const oldPathMetadata = resourceDiff.oldValue?.Metadata?.[PATH_METADATA_KEY];
          if (oldPathMetadata && !(logicalId in this.logicalToPathMap)) {
            this.logicalToPathMap[logicalId] = oldPathMetadata;
          }
          const newPathMetadata = resourceDiff.newValue?.Metadata?.[PATH_METADATA_KEY];
          if (newPathMetadata && !(logicalId in this.logicalToPathMap)) {
            this.logicalToPathMap[logicalId] = newPathMetadata;
          }
        }
      }
      formatLogicalId(logicalId) {
        const normalized = this.normalizedLogicalIdPath(logicalId);
        if (normalized) {
          return `${normalized} ${chalk6.gray(logicalId)}`;
        }
        return logicalId;
      }
      normalizedLogicalIdPath(logicalId) {
        const path38 = this.logicalToPathMap[logicalId];
        return path38 ? normalizePath(path38) : void 0;
        function normalizePath(p3) {
          if (p3.startsWith("/")) {
            p3 = p3.slice(1);
          }
          let parts = p3.split("/");
          if (parts.length > 1) {
            parts = parts.slice(1);
            if (parts.length > 1) {
              const last = parts[parts.length - 1];
              if (last === "Resource" || last === "Default") {
                parts = parts.slice(0, parts.length - 1);
              }
            }
            p3 = parts.join("/");
          }
          return p3;
        }
        __name(normalizePath, "normalizePath");
      }
      formatIamChanges(changes) {
        if (!changes.hasChanges) {
          return;
        }
        if (changes.statements.hasChanges) {
          this.printSectionHeader("IAM Statement Changes");
          this.print(formatTable(this.deepSubstituteBracedLogicalIds(changes.summarizeStatements()), this.stream.columns));
        }
        if (changes.managedPolicies.hasChanges) {
          this.printSectionHeader("IAM Policy Changes");
          this.print(formatTable(this.deepSubstituteBracedLogicalIds(changes.summarizeManagedPolicies()), this.stream.columns));
        }
        if (changes.ssoPermissionSets.hasChanges || changes.ssoInstanceACAConfigs.hasChanges || changes.ssoAssignments.hasChanges) {
          this.printSectionHeader("IAM Identity Center Changes");
          if (changes.ssoPermissionSets.hasChanges) {
            this.print(formatTable(this.deepSubstituteBracedLogicalIds(changes.summarizeSsoPermissionSets()), this.stream.columns));
          }
          if (changes.ssoInstanceACAConfigs.hasChanges) {
            this.print(formatTable(this.deepSubstituteBracedLogicalIds(changes.summarizeSsoInstanceACAConfigs()), this.stream.columns));
          }
          if (changes.ssoAssignments.hasChanges) {
            this.print(formatTable(this.deepSubstituteBracedLogicalIds(changes.summarizeSsoAssignments()), this.stream.columns));
          }
        }
      }
      formatSecurityGroupChanges(changes) {
        if (!changes.hasChanges) {
          return;
        }
        this.printSectionHeader("Security Group Changes");
        this.print(formatTable(this.deepSubstituteBracedLogicalIds(changes.summarize()), this.stream.columns));
      }
      deepSubstituteBracedLogicalIds(rows) {
        return rows.map((row) => row.map(this.substituteBracedLogicalIds.bind(this)));
      }
      /**
       * Substitute all strings like ${LogId.xxx} with the path instead of the logical ID
       */
      substituteBracedLogicalIds(source) {
        return source.replace(/\$\{([^.}]+)(.[^}]+)?\}/ig, (_match, logId, suffix) => {
          return "${" + (this.normalizedLogicalIdPath(logId) || logId) + (suffix || "") + "}";
        });
      }
    };
    __name(_diffStrings, "_diffStrings");
  }
});

// ../@aws-cdk/cloudformation-diff/lib/mappings.ts
var mappings_exports = {};
__export(mappings_exports, {
  formatAmbiguousMappings: () => formatAmbiguousMappings,
  formatEnvironmentSectionHeader: () => formatEnvironmentSectionHeader,
  formatTypedMappings: () => formatTypedMappings
});
function formatEnvironmentSectionHeader(stream3, env2) {
  const formatter = new Formatter(stream3, {});
  formatter.printSectionHeader(`${env2}
`);
}
function formatTypedMappings(stream3, mappings) {
  if (mappings.length > 0) {
    const header = [["Resource Type", "Old Construct Path", "New Construct Path"]];
    const rows = mappings.map((m3) => [m3.type, m3.sourcePath, m3.destinationPath]);
    const formatter = new Formatter(stream3, {});
    formatter.print("The following resources were moved or renamed:");
    formatter.print(chalk7.green(formatTable(header.concat(rows), void 0)));
    formatter.print(" ");
  }
}
function formatAmbiguousMappings(stream3, pairs) {
  const tables = pairs.map(renderTable2);
  const formatter = new Formatter(stream3, {});
  formatter.print("Detected ambiguities:");
  formatter.print(tables.join("\n\n"));
  formatter.print(" ");
  formatter.print(chalk7.yellow("Please provide an override file to resolve these ambiguous mappings."));
  formatter.print(" ");
  function renderTable2([removed, added]) {
    return formatTable([["", "Resource"], renderRemoval(removed), renderAddition(added)], void 0);
  }
  __name(renderTable2, "renderTable");
  function renderRemoval(locations) {
    return [chalk7.red("-"), chalk7.red(renderLocations(locations))];
  }
  __name(renderRemoval, "renderRemoval");
  function renderAddition(locations) {
    return [chalk7.green("+"), chalk7.green(renderLocations(locations))];
  }
  __name(renderAddition, "renderAddition");
  function renderLocations(locs) {
    return locs.join("\n");
  }
  __name(renderLocations, "renderLocations");
}
var chalk7;
var init_mappings = __esm({
  "../@aws-cdk/cloudformation-diff/lib/mappings.ts"() {
    "use strict";
    chalk7 = __toESM(require_source());
    init_format();
    init_format_table();
    __name(formatEnvironmentSectionHeader, "formatEnvironmentSectionHeader");
    __name(formatTypedMappings, "formatTypedMappings");
    __name(formatAmbiguousMappings, "formatAmbiguousMappings");
  }
});

// ../@aws-cdk/cloudformation-diff/lib/index.js
var require_lib11 = __commonJS({
  "../@aws-cdk/cloudformation-diff/lib/index.js"(exports2) {
    "use strict";
    var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      var desc = Object.getOwnPropertyDescriptor(m3, k3);
      if (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) {
        desc = { enumerable: true, get: /* @__PURE__ */ __name(function() {
          return m3[k3];
        }, "get") };
      }
      Object.defineProperty(o3, k22, desc);
    }) : (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      o3[k22] = m3[k3];
    }));
    var __exportStar3 = exports2 && exports2.__exportStar || function(m3, exports3) {
      for (var p3 in m3) if (p3 !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p3)) __createBinding3(exports3, m3, p3);
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.mangleLikeCloudFormation = exports2.deepEqual = void 0;
    __exportStar3((init_diff_template(), __toCommonJS(diff_template_exports)), exports2);
    __exportStar3((init_format(), __toCommonJS(format_exports)), exports2);
    __exportStar3((init_format_table(), __toCommonJS(format_table_exports)), exports2);
    __exportStar3((init_mappings(), __toCommonJS(mappings_exports)), exports2);
    var util_1 = (init_util4(), __toCommonJS(util_exports));
    Object.defineProperty(exports2, "deepEqual", { enumerable: true, get: /* @__PURE__ */ __name(function() {
      return util_1.deepEqual;
    }, "get") });
    Object.defineProperty(exports2, "mangleLikeCloudFormation", { enumerable: true, get: /* @__PURE__ */ __name(function() {
      return util_1.mangleLikeCloudFormation;
    }, "get") });
  }
});

// ../@aws-cdk/toolkit-lib/lib/payloads/bootstrap-environment-progress.ts
var init_bootstrap_environment_progress = __esm({
  "../@aws-cdk/toolkit-lib/lib/payloads/bootstrap-environment-progress.ts"() {
    "use strict";
  }
});

// ../@aws-cdk/toolkit-lib/lib/payloads/deploy.ts
var init_deploy2 = __esm({
  "../@aws-cdk/toolkit-lib/lib/payloads/deploy.ts"() {
    "use strict";
  }
});

// ../@aws-cdk/toolkit-lib/lib/payloads/destroy.ts
var init_destroy2 = __esm({
  "../@aws-cdk/toolkit-lib/lib/payloads/destroy.ts"() {
    "use strict";
  }
});

// ../@aws-cdk/toolkit-lib/lib/payloads/drift.ts
var init_drift = __esm({
  "../@aws-cdk/toolkit-lib/lib/payloads/drift.ts"() {
    "use strict";
  }
});

// ../@aws-cdk/toolkit-lib/lib/payloads/list.ts
var init_list = __esm({
  "../@aws-cdk/toolkit-lib/lib/payloads/list.ts"() {
    "use strict";
  }
});

// ../@aws-cdk/toolkit-lib/lib/payloads/sdk.ts
var init_sdk = __esm({
  "../@aws-cdk/toolkit-lib/lib/payloads/sdk.ts"() {
    "use strict";
  }
});

// ../@aws-cdk/toolkit-lib/lib/payloads/context.ts
var init_context = __esm({
  "../@aws-cdk/toolkit-lib/lib/payloads/context.ts"() {
    "use strict";
  }
});

// ../@aws-cdk/toolkit-lib/lib/payloads/rollback.ts
var init_rollback = __esm({
  "../@aws-cdk/toolkit-lib/lib/payloads/rollback.ts"() {
    "use strict";
  }
});

// ../@aws-cdk/toolkit-lib/lib/payloads/stack-activity.ts
var init_stack_activity = __esm({
  "../@aws-cdk/toolkit-lib/lib/payloads/stack-activity.ts"() {
    "use strict";
  }
});

// ../@aws-cdk/toolkit-lib/lib/payloads/synth.ts
var init_synth = __esm({
  "../@aws-cdk/toolkit-lib/lib/payloads/synth.ts"() {
    "use strict";
  }
});

// ../@aws-cdk/toolkit-lib/lib/payloads/types.ts
var init_types5 = __esm({
  "../@aws-cdk/toolkit-lib/lib/payloads/types.ts"() {
    "use strict";
  }
});

// ../@aws-cdk/toolkit-lib/lib/payloads/progress.ts
var init_progress2 = __esm({
  "../@aws-cdk/toolkit-lib/lib/payloads/progress.ts"() {
    "use strict";
  }
});

// ../@aws-cdk/toolkit-lib/lib/payloads/refactor.ts
var init_refactor = __esm({
  "../@aws-cdk/toolkit-lib/lib/payloads/refactor.ts"() {
    "use strict";
  }
});

// ../@aws-cdk/toolkit-lib/lib/payloads/watch.ts
var init_watch = __esm({
  "../@aws-cdk/toolkit-lib/lib/payloads/watch.ts"() {
    "use strict";
  }
});

// ../@aws-cdk/toolkit-lib/lib/payloads/stack-details.ts
var init_stack_details = __esm({
  "../@aws-cdk/toolkit-lib/lib/payloads/stack-details.ts"() {
    "use strict";
  }
});

// ../@aws-cdk/toolkit-lib/lib/payloads/diff.ts
var PermissionChangeType;
var init_diff2 = __esm({
  "../@aws-cdk/toolkit-lib/lib/payloads/diff.ts"() {
    "use strict";
    PermissionChangeType = /* @__PURE__ */ ((PermissionChangeType3) => {
      PermissionChangeType3["NONE"] = "none";
      PermissionChangeType3["BROADENING"] = "broadening";
      PermissionChangeType3["NON_BROADENING"] = "non-broadening";
      return PermissionChangeType3;
    })(PermissionChangeType || {});
  }
});

// ../@aws-cdk/toolkit-lib/lib/payloads/logs-monitor.ts
var init_logs_monitor = __esm({
  "../@aws-cdk/toolkit-lib/lib/payloads/logs-monitor.ts"() {
    "use strict";
  }
});

// ../@aws-cdk/toolkit-lib/lib/payloads/gc.ts
var init_gc = __esm({
  "../@aws-cdk/toolkit-lib/lib/payloads/gc.ts"() {
    "use strict";
  }
});

// ../@aws-cdk/toolkit-lib/lib/payloads/import.ts
var init_import = __esm({
  "../@aws-cdk/toolkit-lib/lib/payloads/import.ts"() {
    "use strict";
  }
});

// ../@aws-cdk/toolkit-lib/lib/payloads/index.ts
var payloads_exports = {};
__export(payloads_exports, {
  NonHotswappableReason: () => NonHotswappableReason,
  PermissionChangeType: () => PermissionChangeType
});
var init_payloads = __esm({
  "../@aws-cdk/toolkit-lib/lib/payloads/index.ts"() {
    "use strict";
    init_bootstrap_environment_progress();
    init_deploy2();
    init_destroy2();
    init_drift();
    init_list();
    init_sdk();
    init_context();
    init_rollback();
    init_stack_activity();
    init_synth();
    init_types5();
    init_progress2();
    init_refactor();
    init_watch();
    init_stack_details();
    init_diff2();
    init_logs_monitor();
    init_hotswap();
    init_gc();
    init_import();
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/hotswap/appsync-mapping-templates.ts
async function isHotswappableAppSyncChange(logicalId, change, evaluateCfnTemplate) {
  const isResolver = change.newValue.Type === "AWS::AppSync::Resolver";
  const isFunction = change.newValue.Type === "AWS::AppSync::FunctionConfiguration";
  const isGraphQLSchema = change.newValue.Type === "AWS::AppSync::GraphQLSchema";
  const isAPIKey = change.newValue.Type === "AWS::AppSync::ApiKey";
  if (!isResolver && !isFunction && !isGraphQLSchema && !isAPIKey) {
    return [];
  }
  const ret = [];
  const classifiedChanges = classifyChanges(change, [
    "RequestMappingTemplate",
    "RequestMappingTemplateS3Location",
    "ResponseMappingTemplate",
    "ResponseMappingTemplateS3Location",
    "Code",
    "CodeS3Location",
    "Definition",
    "DefinitionS3Location",
    "Expires"
  ]);
  classifiedChanges.reportNonHotswappablePropertyChanges(ret);
  const namesOfHotswappableChanges = Object.keys(classifiedChanges.hotswappableProps);
  if (namesOfHotswappableChanges.length > 0) {
    let physicalName = void 0;
    const arn = await evaluateCfnTemplate.establishResourcePhysicalName(
      logicalId,
      isFunction ? change.newValue.Properties?.Name : void 0
    );
    if (isResolver) {
      const arnParts = arn?.split("/");
      physicalName = arnParts ? `${arnParts[3]}.${arnParts[5]}` : void 0;
    } else {
      physicalName = arn;
    }
    if (!physicalName) {
      return ret;
    }
    ret.push({
      change: {
        cause: change,
        resources: [{
          logicalId,
          resourceType: change.newValue.Type,
          physicalName,
          metadata: evaluateCfnTemplate.metadataFor(logicalId)
        }]
      },
      hotswappable: true,
      service: "appsync",
      apply: /* @__PURE__ */ __name(async (sdk) => {
        const sdkProperties = {
          ...change.oldValue.Properties,
          Definition: change.newValue.Properties?.Definition,
          DefinitionS3Location: change.newValue.Properties?.DefinitionS3Location,
          requestMappingTemplate: change.newValue.Properties?.RequestMappingTemplate,
          requestMappingTemplateS3Location: change.newValue.Properties?.RequestMappingTemplateS3Location,
          responseMappingTemplate: change.newValue.Properties?.ResponseMappingTemplate,
          responseMappingTemplateS3Location: change.newValue.Properties?.ResponseMappingTemplateS3Location,
          code: change.newValue.Properties?.Code,
          codeS3Location: change.newValue.Properties?.CodeS3Location,
          expires: change.newValue.Properties?.Expires
        };
        const evaluatedResourceProperties = await evaluateCfnTemplate.evaluateCfnExpression(sdkProperties);
        const sdkRequestObject = transformObjectKeys(evaluatedResourceProperties, lowerCaseFirstCharacter);
        if (sdkRequestObject.requestMappingTemplateS3Location) {
          sdkRequestObject.requestMappingTemplate = await fetchFileFromS3(
            sdkRequestObject.requestMappingTemplateS3Location,
            sdk
          );
          delete sdkRequestObject.requestMappingTemplateS3Location;
        }
        if (sdkRequestObject.responseMappingTemplateS3Location) {
          sdkRequestObject.responseMappingTemplate = await fetchFileFromS3(
            sdkRequestObject.responseMappingTemplateS3Location,
            sdk
          );
          delete sdkRequestObject.responseMappingTemplateS3Location;
        }
        if (sdkRequestObject.definitionS3Location) {
          sdkRequestObject.definition = await fetchFileFromS3(sdkRequestObject.definitionS3Location, sdk);
          delete sdkRequestObject.definitionS3Location;
        }
        if (sdkRequestObject.codeS3Location) {
          sdkRequestObject.code = await fetchFileFromS3(sdkRequestObject.codeS3Location, sdk);
          delete sdkRequestObject.codeS3Location;
        }
        if (isResolver) {
          await sdk.appsync().updateResolver(sdkRequestObject);
        } else if (isFunction) {
          if (sdkRequestObject.code) {
            delete sdkRequestObject.functionVersion;
          } else {
            delete sdkRequestObject.runtime;
          }
          const functions = await sdk.appsync().listFunctions({ apiId: sdkRequestObject.apiId });
          const { functionId } = functions.find((fn) => fn.name === physicalName) ?? {};
          await exponentialBackOffRetry(
            () => sdk.appsync().updateFunction({
              ...sdkRequestObject,
              functionId
            }),
            6,
            1e3,
            "ConcurrentModificationException"
          );
        } else if (isGraphQLSchema) {
          let schemaCreationResponse = await sdk.appsync().startSchemaCreation(sdkRequestObject);
          while (schemaCreationResponse.status && ["PROCESSING", "DELETING"].some((status) => status === schemaCreationResponse.status)) {
            await sleep3(1e3);
            const getSchemaCreationStatusRequest = {
              apiId: sdkRequestObject.apiId
            };
            schemaCreationResponse = await sdk.appsync().getSchemaCreationStatus(getSchemaCreationStatusRequest);
          }
          if (schemaCreationResponse.status === "FAILED") {
            throw new ToolkitError(schemaCreationResponse.details ?? "Schema creation has failed.");
          }
        } else {
          if (!sdkRequestObject.id) {
            const arnParts = physicalName?.split("/");
            if (arnParts && arnParts.length === 4) {
              sdkRequestObject.id = arnParts[3];
            }
          }
          await sdk.appsync().updateApiKey(sdkRequestObject);
        }
      }, "apply")
    });
  }
  return ret;
}
async function fetchFileFromS3(s3Url, sdk) {
  const s3PathParts = s3Url.split("/");
  const s3Bucket = s3PathParts[2];
  const s3Key = s3PathParts.splice(3).join("/");
  return (await sdk.s3().getObject({ Bucket: s3Bucket, Key: s3Key })).Body?.transformToString();
}
async function exponentialBackOffRetry(fn, numOfRetries, backOff, errorCodeToRetry) {
  try {
    await fn();
  } catch (error5) {
    if (error5 && error5.name === errorCodeToRetry && numOfRetries > 0) {
      await sleep3(backOff);
      await exponentialBackOffRetry(fn, numOfRetries - 1, backOff * 2, errorCodeToRetry);
    } else {
      throw error5;
    }
  }
}
async function sleep3(ms) {
  return new Promise((ok) => setTimeout(ok, ms));
}
var init_appsync_mapping_templates = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/hotswap/appsync-mapping-templates.ts"() {
    "use strict";
    init_common3();
    init_toolkit_error();
    init_util3();
    __name(isHotswappableAppSyncChange, "isHotswappableAppSyncChange");
    __name(fetchFileFromS3, "fetchFileFromS3");
    __name(exponentialBackOffRetry, "exponentialBackOffRetry");
    __name(sleep3, "sleep");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/hotswap/code-build-projects.ts
async function isHotswappableCodeBuildProjectChange(logicalId, change, evaluateCfnTemplate) {
  if (change.newValue.Type !== "AWS::CodeBuild::Project") {
    return [];
  }
  const ret = [];
  const classifiedChanges = classifyChanges(change, ["Source", "Environment", "SourceVersion"]);
  classifiedChanges.reportNonHotswappablePropertyChanges(ret);
  if (classifiedChanges.namesOfHotswappableProps.length > 0) {
    const updateProjectInput = {
      name: ""
    };
    const projectName = await evaluateCfnTemplate.establishResourcePhysicalName(
      logicalId,
      change.newValue.Properties?.Name
    );
    if (!projectName) {
      return ret;
    }
    ret.push({
      change: {
        cause: change,
        resources: [{
          logicalId,
          resourceType: change.newValue.Type,
          physicalName: projectName,
          metadata: evaluateCfnTemplate.metadataFor(logicalId)
        }]
      },
      hotswappable: true,
      service: "codebuild",
      apply: /* @__PURE__ */ __name(async (sdk) => {
        updateProjectInput.name = projectName;
        for (const updatedPropName in change.propertyUpdates) {
          const updatedProp = change.propertyUpdates[updatedPropName];
          switch (updatedPropName) {
            case "Source":
              updateProjectInput.source = transformObjectKeys(
                await evaluateCfnTemplate.evaluateCfnExpression(updatedProp.newValue),
                convertSourceCloudformationKeyToSdkKey
              );
              break;
            case "Environment":
              updateProjectInput.environment = await transformObjectKeys(
                await evaluateCfnTemplate.evaluateCfnExpression(updatedProp.newValue),
                lowerCaseFirstCharacter
              );
              break;
            case "SourceVersion":
              updateProjectInput.sourceVersion = await evaluateCfnTemplate.evaluateCfnExpression(updatedProp.newValue);
              break;
          }
        }
        await sdk.codeBuild().updateProject(updateProjectInput);
      }, "apply")
    });
  }
  return ret;
}
function convertSourceCloudformationKeyToSdkKey(key) {
  if (key.toLowerCase() === "buildspec") {
    return key.toLowerCase();
  }
  return lowerCaseFirstCharacter(key);
}
var init_code_build_projects = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/hotswap/code-build-projects.ts"() {
    "use strict";
    init_common3();
    init_util3();
    __name(isHotswappableCodeBuildProjectChange, "isHotswappableCodeBuildProjectChange");
    __name(convertSourceCloudformationKeyToSdkKey, "convertSourceCloudformationKeyToSdkKey");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/hotswap/ecs-services.ts
async function isHotswappableEcsServiceChange(logicalId, change, evaluateCfnTemplate, hotswapPropertyOverrides) {
  if (change.newValue.Type !== "AWS::ECS::TaskDefinition") {
    return [];
  }
  const ret = [];
  const classifiedChanges = classifyChanges(change, ["ContainerDefinitions"]);
  classifiedChanges.reportNonHotswappablePropertyChanges(ret);
  const resourcesReferencingTaskDef = evaluateCfnTemplate.findReferencesTo(logicalId);
  const ecsServiceResourcesReferencingTaskDef = resourcesReferencingTaskDef.filter(
    (r3) => r3.Type === ECS_SERVICE_RESOURCE_TYPE
  );
  const ecsServicesReferencingTaskDef = new Array();
  for (const ecsServiceResource of ecsServiceResourcesReferencingTaskDef) {
    const serviceArn = await evaluateCfnTemplate.findPhysicalNameFor(ecsServiceResource.LogicalId);
    if (serviceArn) {
      ecsServicesReferencingTaskDef.push({
        logicalId: ecsServiceResource.LogicalId,
        serviceArn
      });
    }
  }
  if (ecsServicesReferencingTaskDef.length === 0) {
    ret.push(nonHotswappableChange(
      change,
      "dependency-unsupported" /* DEPENDENCY_UNSUPPORTED */,
      "No ECS services reference the changed task definition",
      void 0,
      false
    ));
  }
  if (resourcesReferencingTaskDef.length > ecsServicesReferencingTaskDef.length) {
    const nonEcsServiceTaskDefRefs = resourcesReferencingTaskDef.filter((r3) => r3.Type !== ECS_SERVICE_RESOURCE_TYPE);
    for (const taskRef of nonEcsServiceTaskDefRefs) {
      ret.push(nonHotswappableChange(
        change,
        "dependency-unsupported" /* DEPENDENCY_UNSUPPORTED */,
        `A resource '${taskRef.LogicalId}' with Type '${taskRef.Type}' that is not an ECS Service was found referencing the changed TaskDefinition '${logicalId}'`
      ));
    }
  }
  const namesOfHotswappableChanges = Object.keys(classifiedChanges.hotswappableProps);
  if (namesOfHotswappableChanges.length > 0) {
    const taskDefinitionResource = await prepareTaskDefinitionChange(evaluateCfnTemplate, logicalId, change);
    ret.push({
      change: {
        cause: change,
        resources: [
          {
            logicalId,
            resourceType: change.newValue.Type,
            physicalName: await taskDefinitionResource.Family,
            metadata: evaluateCfnTemplate.metadataFor(logicalId)
          },
          ...ecsServicesReferencingTaskDef.map((ecsService) => ({
            resourceType: ECS_SERVICE_RESOURCE_TYPE,
            physicalName: ecsService.serviceArn.split("/")[2],
            logicalId: ecsService.logicalId,
            metadata: evaluateCfnTemplate.metadataFor(ecsService.logicalId)
          }))
        ]
      },
      hotswappable: true,
      service: "ecs-service",
      apply: /* @__PURE__ */ __name(async (sdk) => {
        const lowercasedTaskDef = transformObjectKeys(taskDefinitionResource, lowerCaseFirstCharacter, {
          // All the properties that take arbitrary string as keys i.e. { "string" : "string" }
          // https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_RegisterTaskDefinition.html#API_RegisterTaskDefinition_RequestSyntax
          ContainerDefinitions: {
            DockerLabels: true,
            FirelensConfiguration: {
              Options: true
            },
            LogConfiguration: {
              Options: true
            }
          },
          Volumes: {
            DockerVolumeConfiguration: {
              DriverOpts: true,
              Labels: true
            }
          }
        });
        const registerTaskDefResponse = await sdk.ecs().registerTaskDefinition(lowercasedTaskDef);
        const taskDefRevArn = registerTaskDefResponse.taskDefinition?.taskDefinitionArn;
        let ecsHotswapProperties = hotswapPropertyOverrides.ecs;
        let minimumHealthyPercent = ecsHotswapProperties?.minimumHealthyPercent;
        let maximumHealthyPercent = ecsHotswapProperties?.maximumHealthyPercent;
        let stabilizationTimeoutSeconds = ecsHotswapProperties?.stabilizationTimeoutSeconds;
        await Promise.all(
          ecsServicesReferencingTaskDef.map(async (service) => {
            const cluster = service.serviceArn.split("/")[1];
            const update = await sdk.ecs().updateService({
              service: service.serviceArn,
              taskDefinition: taskDefRevArn,
              cluster,
              forceNewDeployment: true,
              deploymentConfiguration: {
                minimumHealthyPercent: minimumHealthyPercent !== void 0 ? minimumHealthyPercent : 0,
                maximumPercent: maximumHealthyPercent !== void 0 ? maximumHealthyPercent : void 0
              }
            });
            await sdk.ecs().waitUntilServicesStable({
              cluster: update.service?.clusterArn,
              services: [service.serviceArn]
            }, stabilizationTimeoutSeconds);
          })
        );
      }, "apply")
    });
  }
  return ret;
}
async function prepareTaskDefinitionChange(evaluateCfnTemplate, logicalId, change) {
  const taskDefinitionResource = {
    ...change.oldValue.Properties,
    ContainerDefinitions: change.newValue.Properties?.ContainerDefinitions
  };
  const familyNameOrArn = await evaluateCfnTemplate.establishResourcePhysicalName(
    logicalId,
    taskDefinitionResource?.Family
  );
  if (!familyNameOrArn) {
    return;
  }
  const familyNameOrArnParts = familyNameOrArn.split(":");
  const family = familyNameOrArnParts.length > 1 ? (
    // familyNameOrArn is actually an ARN, of the format 'arn:aws:ecs:region:account:task-definition/<family-name>:<revision-nr>'
    // so, take the 6th element, at index 5, and split it on '/'
    familyNameOrArnParts[5].split("/")[1]
  ) : (
    // otherwise, familyNameOrArn is just the simple name evaluated from the CloudFormation template
    familyNameOrArn
  );
  return {
    ...await evaluateCfnTemplate.evaluateCfnExpression({
      ...taskDefinitionResource ?? {},
      Family: void 0
    }),
    Family: family
  };
}
var ECS_SERVICE_RESOURCE_TYPE;
var init_ecs_services = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/hotswap/ecs-services.ts"() {
    "use strict";
    init_common3();
    init_hotswap();
    init_util3();
    ECS_SERVICE_RESOURCE_TYPE = "AWS::ECS::Service";
    __name(isHotswappableEcsServiceChange, "isHotswappableEcsServiceChange");
    __name(prepareTaskDefinitionChange, "prepareTaskDefinitionChange");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/hotswap/lambda-functions.ts
async function isHotswappableLambdaFunctionChange(logicalId, change, evaluateCfnTemplate) {
  if (change.newValue.Type === "AWS::Lambda::Version") {
    return [];
  }
  if (change.newValue.Type === "AWS::Lambda::Alias") {
    return classifyAliasChanges(change);
  }
  if (change.newValue.Type !== "AWS::Lambda::Function") {
    return [];
  }
  const ret = [];
  const classifiedChanges = classifyChanges(change, ["Code", "Environment", "Description"]);
  classifiedChanges.reportNonHotswappablePropertyChanges(ret);
  const functionName = await evaluateCfnTemplate.establishResourcePhysicalName(
    logicalId,
    change.newValue.Properties?.FunctionName
  );
  const namesOfHotswappableChanges = Object.keys(classifiedChanges.hotswappableProps);
  if (functionName && namesOfHotswappableChanges.length > 0) {
    const lambdaCodeChange = await evaluateLambdaFunctionProps(
      classifiedChanges.hotswappableProps,
      change.newValue.Properties?.Runtime,
      evaluateCfnTemplate
    );
    if (lambdaCodeChange === void 0) {
      return ret;
    }
    const dependencies = await dependantResources(logicalId, functionName, evaluateCfnTemplate);
    ret.push({
      change: {
        cause: change,
        resources: [
          {
            logicalId,
            resourceType: change.newValue.Type,
            physicalName: functionName,
            metadata: evaluateCfnTemplate.metadataFor(logicalId)
          },
          ...dependencies
        ]
      },
      hotswappable: true,
      service: "lambda",
      apply: /* @__PURE__ */ __name(async (sdk) => {
        const lambda = sdk.lambda();
        const operations = [];
        if (lambdaCodeChange.code !== void 0 || lambdaCodeChange.configurations !== void 0) {
          if (lambdaCodeChange.code !== void 0) {
            const updateFunctionCodeResponse = await lambda.updateFunctionCode({
              FunctionName: functionName,
              S3Bucket: lambdaCodeChange.code.s3Bucket,
              S3Key: lambdaCodeChange.code.s3Key,
              ImageUri: lambdaCodeChange.code.imageUri,
              ZipFile: lambdaCodeChange.code.functionCodeZip,
              S3ObjectVersion: lambdaCodeChange.code.s3ObjectVersion
            });
            await waitForLambdasPropertiesUpdateToFinish(updateFunctionCodeResponse, lambda, functionName);
          }
          if (lambdaCodeChange.configurations !== void 0) {
            const updateRequest = {
              FunctionName: functionName
            };
            if (lambdaCodeChange.configurations.description !== void 0) {
              updateRequest.Description = lambdaCodeChange.configurations.description;
            }
            if (lambdaCodeChange.configurations.environment !== void 0) {
              updateRequest.Environment = lambdaCodeChange.configurations.environment;
            }
            const updateFunctionCodeResponse = await lambda.updateFunctionConfiguration(updateRequest);
            await waitForLambdasPropertiesUpdateToFinish(updateFunctionCodeResponse, lambda, functionName);
          }
          const versions = dependencies.filter((d3) => d3.resourceType === "AWS::Lambda::Version");
          if (versions.length) {
            const publishVersionPromise = lambda.publishVersion({
              FunctionName: functionName
            });
            const aliases2 = dependencies.filter((d3) => d3.resourceType === "AWS::Lambda::Alias");
            if (aliases2.length) {
              const versionUpdate = await publishVersionPromise;
              for (const alias of aliases2) {
                operations.push(
                  lambda.updateAlias({
                    FunctionName: functionName,
                    Name: alias.physicalName,
                    FunctionVersion: versionUpdate.Version
                  })
                );
              }
            } else {
              operations.push(publishVersionPromise);
            }
          }
        }
        await Promise.all(operations);
      }, "apply")
    });
  }
  return ret;
}
function classifyAliasChanges(change) {
  const ret = [];
  const classifiedChanges = classifyChanges(change, ["FunctionVersion"]);
  classifiedChanges.reportNonHotswappablePropertyChanges(ret);
  return ret;
}
async function evaluateLambdaFunctionProps(hotswappablePropChanges, runtime, evaluateCfnTemplate) {
  let code = void 0;
  let description = void 0;
  let environment = void 0;
  for (const updatedPropName in hotswappablePropChanges) {
    const updatedProp = hotswappablePropChanges[updatedPropName];
    switch (updatedPropName) {
      case "Code":
        let s3Bucket, s3Key, s3ObjectVersion, imageUri, functionCodeZip;
        for (const newPropName in updatedProp.newValue) {
          switch (newPropName) {
            case "S3Bucket":
              s3Bucket = await evaluateCfnTemplate.evaluateCfnExpression(updatedProp.newValue[newPropName]);
              break;
            case "S3Key":
              s3Key = await evaluateCfnTemplate.evaluateCfnExpression(updatedProp.newValue[newPropName]);
              break;
            case "S3ObjectVersion":
              s3ObjectVersion = await evaluateCfnTemplate.evaluateCfnExpression(updatedProp.newValue[newPropName]);
              break;
            case "ImageUri":
              imageUri = await evaluateCfnTemplate.evaluateCfnExpression(updatedProp.newValue[newPropName]);
              break;
            case "ZipFile":
              const functionCode = await evaluateCfnTemplate.evaluateCfnExpression(updatedProp.newValue[newPropName]);
              const functionRuntime = await evaluateCfnTemplate.evaluateCfnExpression(runtime);
              if (!functionRuntime) {
                return void 0;
              }
              const codeFileExt = determineCodeFileExtFromRuntime(functionRuntime);
              functionCodeZip = await zipString(`index.${codeFileExt}`, functionCode);
              break;
          }
        }
        code = {
          s3Bucket,
          s3Key,
          s3ObjectVersion,
          imageUri,
          functionCodeZip
        };
        break;
      case "Description":
        description = await evaluateCfnTemplate.evaluateCfnExpression(updatedProp.newValue);
        break;
      case "Environment":
        environment = await evaluateCfnTemplate.evaluateCfnExpression(updatedProp.newValue);
        break;
      default:
        throw new ToolkitError(
          "while apply()ing, found a property that cannot be hotswapped. Please report this at github.com/aws/aws-cdk/issues/new/choose"
        );
    }
  }
  const configurations = description || environment ? { description, environment } : void 0;
  return code || configurations ? { code, configurations } : void 0;
}
function zipString(fileName, rawString) {
  return new Promise((resolve13, reject) => {
    const buffers = [];
    const converter = new import_stream.Writable();
    converter._write = (chunk, _3, callback) => {
      buffers.push(chunk);
      process.nextTick(callback);
    };
    converter.on("finish", () => {
      resolve13(Buffer.concat(buffers));
    });
    const archive = archiver3("zip");
    archive.on("error", (err) => {
      reject(err);
    });
    archive.pipe(converter);
    archive.append(rawString, {
      name: fileName,
      date: /* @__PURE__ */ new Date("1980-01-01T00:00:00.000Z")
      // Add date to make resulting zip file deterministic
    });
    void archive.finalize();
  });
}
async function waitForLambdasPropertiesUpdateToFinish(currentFunctionConfiguration, lambda, functionName) {
  const functionIsInVpcOrUsesDockerForCode = currentFunctionConfiguration.VpcConfig?.VpcId || currentFunctionConfiguration.PackageType === "Image";
  const delaySeconds = functionIsInVpcOrUsesDockerForCode ? 5 : 1;
  await lambda.waitUntilFunctionUpdated(delaySeconds, {
    FunctionName: functionName
  });
}
function determineCodeFileExtFromRuntime(runtime) {
  if (runtime.startsWith("node")) {
    return "js";
  }
  if (runtime.startsWith("python")) {
    return "py";
  }
  throw new CfnEvaluationException(
    `runtime ${runtime} is unsupported, only node.js and python runtimes are currently supported.`
  );
}
async function versionsAndAliases(logicalId, evaluateCfnTemplate) {
  const versionsReferencingFunction = evaluateCfnTemplate.findReferencesTo(logicalId).filter((r3) => r3.Type === "AWS::Lambda::Version");
  const aliasesReferencingVersions = flatMap(versionsReferencingFunction, (v6) => evaluateCfnTemplate.findReferencesTo(v6.LogicalId));
  return { versionsReferencingFunction, aliasesReferencingVersions };
}
async function dependantResources(logicalId, functionName, evaluateCfnTemplate) {
  const candidates = await versionsAndAliases(logicalId, evaluateCfnTemplate);
  const aliases2 = await Promise.all(candidates.aliasesReferencingVersions.map(async (a3) => {
    const name = await evaluateCfnTemplate.evaluateCfnExpression(a3.Properties?.Name);
    return {
      logicalId: a3.LogicalId,
      resourceType: a3.Type,
      physicalName: name,
      description: `${a3.Type} '${name}' for AWS::Lambda::Function '${functionName}'`,
      metadata: evaluateCfnTemplate.metadataFor(a3.LogicalId)
    };
  }));
  const versions = candidates.versionsReferencingFunction.map((v6) => ({
    logicalId: v6.LogicalId,
    resourceType: v6.Type,
    description: `${v6.Type} for AWS::Lambda::Function '${functionName}'`,
    metadata: evaluateCfnTemplate.metadataFor(v6.LogicalId)
  }));
  return [
    ...versions,
    ...aliases2
  ];
}
var import_stream, archiver3;
var init_lambda_functions = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/hotswap/lambda-functions.ts"() {
    "use strict";
    import_stream = require("stream");
    init_common3();
    init_toolkit_error();
    init_util3();
    init_cloudformation2();
    archiver3 = require_archiver();
    __name(isHotswappableLambdaFunctionChange, "isHotswappableLambdaFunctionChange");
    __name(classifyAliasChanges, "classifyAliasChanges");
    __name(evaluateLambdaFunctionProps, "evaluateLambdaFunctionProps");
    __name(zipString, "zipString");
    __name(waitForLambdasPropertiesUpdateToFinish, "waitForLambdasPropertiesUpdateToFinish");
    __name(determineCodeFileExtFromRuntime, "determineCodeFileExtFromRuntime");
    __name(versionsAndAliases, "versionsAndAliases");
    __name(dependantResources, "dependantResources");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/hotswap/s3-bucket-deployments.ts
async function isHotswappableS3BucketDeploymentChange(logicalId, change, evaluateCfnTemplate) {
  const ret = [];
  if (change.newValue.Type !== CDK_BUCKET_DEPLOYMENT_CFN_TYPE) {
    return [];
  }
  const customResourceProperties = await evaluateCfnTemplate.evaluateCfnExpression({
    ...change.newValue.Properties,
    ServiceToken: void 0
  });
  const functionName = await evaluateCfnTemplate.evaluateCfnExpression(change.newValue.Properties?.ServiceToken);
  if (!functionName) {
    return ret;
  }
  ret.push({
    change: {
      cause: change,
      resources: [{
        logicalId,
        physicalName: customResourceProperties.DestinationBucketName,
        resourceType: CDK_BUCKET_DEPLOYMENT_CFN_TYPE,
        description: `Contents of AWS::S3::Bucket '${customResourceProperties.DestinationBucketName}'`,
        metadata: evaluateCfnTemplate.metadataFor(logicalId)
      }]
    },
    hotswappable: true,
    service: "custom-s3-deployment",
    apply: /* @__PURE__ */ __name(async (sdk) => {
      await sdk.lambda().invokeCommand({
        FunctionName: functionName,
        // Lambda refuses to take a direct JSON object and requires it to be stringify()'d
        Payload: JSON.stringify({
          RequestType: "Update",
          ResponseURL: REQUIRED_BY_CFN,
          PhysicalResourceId: REQUIRED_BY_CFN,
          StackId: REQUIRED_BY_CFN,
          RequestId: REQUIRED_BY_CFN,
          LogicalResourceId: REQUIRED_BY_CFN,
          ResourceProperties: stringifyObject(customResourceProperties)
          // JSON.stringify() doesn't turn the actual objects to strings, but the lambda expects strings
        })
      });
    }, "apply")
  });
  return ret;
}
async function skipChangeForS3DeployCustomResourcePolicy(iamPolicyLogicalId, change, evaluateCfnTemplate) {
  if (change.newValue.Type !== "AWS::IAM::Policy") {
    return false;
  }
  const roles = change.newValue.Properties?.Roles;
  if (!roles || !roles.length) {
    return false;
  }
  for (const role of roles) {
    const roleArn = await evaluateCfnTemplate.evaluateCfnExpression(role);
    const roleLogicalId = await evaluateCfnTemplate.findLogicalIdForPhysicalName(roleArn);
    if (!roleLogicalId) {
      return false;
    }
    const roleRefs = evaluateCfnTemplate.findReferencesTo(roleLogicalId).filter((roleRef) => !(roleRef.Type == "AWS::IAM::Policy" && roleRef.LogicalId === iamPolicyLogicalId));
    const isRoleOnlyForS3Deployment = roleRefs.length >= 1 && roleRefs.every((roleRef) => {
      if (roleRef.Type === "AWS::Lambda::Function") {
        const lambdaRefs = evaluateCfnTemplate.findReferencesTo(roleRef.LogicalId);
        return lambdaRefs.length >= 1 && lambdaRefs.every((lambdaRef) => lambdaRef.Type === "Custom::CDKBucketDeployment");
      }
      return false;
    });
    if (!isRoleOnlyForS3Deployment) {
      return false;
    }
  }
  return true;
}
function stringifyObject(obj) {
  if (obj == null) {
    return obj;
  }
  if (Array.isArray(obj)) {
    return obj.map(stringifyObject);
  }
  if (typeof obj !== "object") {
    return obj.toString();
  }
  const ret = {};
  for (const [k3, v6] of Object.entries(obj)) {
    ret[k3] = stringifyObject(v6);
  }
  return ret;
}
var REQUIRED_BY_CFN, CDK_BUCKET_DEPLOYMENT_CFN_TYPE;
var init_s3_bucket_deployments = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/hotswap/s3-bucket-deployments.ts"() {
    "use strict";
    REQUIRED_BY_CFN = "required-to-be-present-by-cfn";
    CDK_BUCKET_DEPLOYMENT_CFN_TYPE = "Custom::CDKBucketDeployment";
    __name(isHotswappableS3BucketDeploymentChange, "isHotswappableS3BucketDeploymentChange");
    __name(skipChangeForS3DeployCustomResourcePolicy, "skipChangeForS3DeployCustomResourcePolicy");
    __name(stringifyObject, "stringifyObject");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/hotswap/stepfunctions-state-machines.ts
async function isHotswappableStateMachineChange(logicalId, change, evaluateCfnTemplate) {
  if (change.newValue.Type !== "AWS::StepFunctions::StateMachine") {
    return [];
  }
  const ret = [];
  const classifiedChanges = classifyChanges(change, ["DefinitionString"]);
  classifiedChanges.reportNonHotswappablePropertyChanges(ret);
  const namesOfHotswappableChanges = Object.keys(classifiedChanges.hotswappableProps);
  if (namesOfHotswappableChanges.length > 0) {
    const stateMachineNameInCfnTemplate = change.newValue?.Properties?.StateMachineName;
    const stateMachineArn = stateMachineNameInCfnTemplate ? await evaluateCfnTemplate.evaluateCfnExpression({
      "Fn::Sub": "arn:${AWS::Partition}:states:${AWS::Region}:${AWS::AccountId}:stateMachine:" + stateMachineNameInCfnTemplate
    }) : await evaluateCfnTemplate.findPhysicalNameFor(logicalId);
    if (!stateMachineArn) {
      return ret;
    }
    ret.push({
      change: {
        cause: change,
        resources: [{
          logicalId,
          resourceType: change.newValue.Type,
          physicalName: stateMachineArn?.split(":")[6],
          metadata: evaluateCfnTemplate.metadataFor(logicalId)
        }]
      },
      hotswappable: true,
      service: "stepfunctions-service",
      apply: /* @__PURE__ */ __name(async (sdk) => {
        await sdk.stepFunctions().updateStateMachine({
          stateMachineArn,
          definition: await evaluateCfnTemplate.evaluateCfnExpression(change.propertyUpdates.DefinitionString.newValue)
        });
      }, "apply")
    });
  }
  return ret;
}
var init_stepfunctions_state_machines = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/hotswap/stepfunctions-state-machines.ts"() {
    "use strict";
    init_common3();
    __name(isHotswappableStateMachineChange, "isHotswappableStateMachineChange");
  }
});

// ../../node_modules/yocto-queue/index.js
var require_yocto_queue = __commonJS({
  "../../node_modules/yocto-queue/index.js"(exports2, module2) {
    var Node2 = class {
      static {
        __name(this, "Node");
      }
      /// value;
      /// next;
      constructor(value) {
        this.value = value;
        this.next = void 0;
      }
    };
    var Queue = class {
      static {
        __name(this, "Queue");
      }
      // TODO: Use private class fields when targeting Node.js 12.
      // #_head;
      // #_tail;
      // #_size;
      constructor() {
        this.clear();
      }
      enqueue(value) {
        const node = new Node2(value);
        if (this._head) {
          this._tail.next = node;
          this._tail = node;
        } else {
          this._head = node;
          this._tail = node;
        }
        this._size++;
      }
      dequeue() {
        const current = this._head;
        if (!current) {
          return;
        }
        this._head = this._head.next;
        this._size--;
        return current.value;
      }
      clear() {
        this._head = void 0;
        this._tail = void 0;
        this._size = 0;
      }
      get size() {
        return this._size;
      }
      *[Symbol.iterator]() {
        let current = this._head;
        while (current) {
          yield current.value;
          current = current.next;
        }
      }
    };
    module2.exports = Queue;
  }
});

// ../../node_modules/p-limit/index.js
var require_p_limit = __commonJS({
  "../../node_modules/p-limit/index.js"(exports2, module2) {
    "use strict";
    var Queue = require_yocto_queue();
    var pLimit6 = /* @__PURE__ */ __name((concurrency) => {
      if (!((Number.isInteger(concurrency) || concurrency === Infinity) && concurrency > 0)) {
        throw new TypeError("Expected `concurrency` to be a number from 1 and up");
      }
      const queue = new Queue();
      let activeCount = 0;
      const next = /* @__PURE__ */ __name(() => {
        activeCount--;
        if (queue.size > 0) {
          queue.dequeue()();
        }
      }, "next");
      const run = /* @__PURE__ */ __name(async (fn, resolve13, ...args) => {
        activeCount++;
        const result2 = (async () => fn(...args))();
        resolve13(result2);
        try {
          await result2;
        } catch {
        }
        next();
      }, "run");
      const enqueue = /* @__PURE__ */ __name((fn, resolve13, ...args) => {
        queue.enqueue(run.bind(null, fn, resolve13, ...args));
        (async () => {
          await Promise.resolve();
          if (activeCount < concurrency && queue.size > 0) {
            queue.dequeue()();
          }
        })();
      }, "enqueue");
      const generator = /* @__PURE__ */ __name((fn, ...args) => new Promise((resolve13) => {
        enqueue(fn, resolve13, ...args);
      }), "generator");
      Object.defineProperties(generator, {
        activeCount: {
          get: /* @__PURE__ */ __name(() => activeCount, "get")
        },
        pendingCount: {
          get: /* @__PURE__ */ __name(() => queue.size, "get")
        },
        clearQueue: {
          value: /* @__PURE__ */ __name(() => {
            queue.clear();
          }, "value")
        }
      });
      return generator;
    }, "pLimit");
    module2.exports = pLimit6;
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/hotswap/hotswap-deployments.ts
async function tryHotswapDeployment(sdkProvider, ioHelper, assetParams, cloudFormationStack, stackArtifact, hotswapMode, hotswapPropertyOverrides) {
  const hotswapSpan = await ioHelper.span(SPAN.HOTSWAP).begin({
    stack: stackArtifact,
    mode: hotswapMode
  });
  const result2 = await hotswapDeployment(
    sdkProvider,
    hotswapSpan,
    assetParams,
    stackArtifact,
    hotswapMode,
    hotswapPropertyOverrides
  );
  await hotswapSpan.end(result2);
  if (result2?.hotswapped === true) {
    return {
      type: "did-deploy-stack",
      noOp: result2.hotswappableChanges.length === 0,
      stackArn: cloudFormationStack.stackId,
      outputs: cloudFormationStack.outputs
    };
  }
  return void 0;
}
async function hotswapDeployment(sdkProvider, ioSpan, assetParams, stack, hotswapMode, hotswapPropertyOverrides) {
  const resolvedEnv = await sdkProvider.resolveEnvironment(stack.environment);
  const sdk = (await sdkProvider.forEnvironment(resolvedEnv, 1 /* ForWriting */)).sdk;
  const currentTemplate = await loadCurrentTemplateWithNestedStacks(stack, sdk);
  const evaluateCfnTemplate = new EvaluateCloudFormationTemplate({
    stackArtifact: stack,
    parameters: assetParams,
    account: resolvedEnv.account,
    region: resolvedEnv.region,
    partition: (await sdk.currentAccount()).partition,
    sdk,
    nestedStacks: currentTemplate.nestedStacks
  });
  const stackChanges = cfn_diff.fullDiff(currentTemplate.deployedRootTemplate, stack.template);
  const { hotswappable, nonHotswappable } = await classifyResourceChanges(
    stackChanges,
    evaluateCfnTemplate,
    sdk,
    currentTemplate.nestedStacks,
    hotswapPropertyOverrides
  );
  await logRejectedChanges(ioSpan, nonHotswappable, hotswapMode);
  const hotswappableChanges = hotswappable.map((o3) => o3.change);
  const nonHotswappableChanges = nonHotswappable.map((n3) => n3.change);
  await ioSpan.notify(IO.CDK_TOOLKIT_I5401.msg("Hotswap plan created", {
    stack,
    mode: hotswapMode,
    hotswappableChanges,
    nonHotswappableChanges
  }));
  if (hotswapMode === "fall-back") {
    if (nonHotswappableChanges.length > 0) {
      return {
        stack,
        mode: hotswapMode,
        hotswapped: false,
        hotswappableChanges,
        nonHotswappableChanges
      };
    }
  }
  await applyAllHotswapOperations(sdk, ioSpan, hotswappable);
  return {
    stack,
    mode: hotswapMode,
    hotswapped: true,
    hotswappableChanges,
    nonHotswappableChanges
  };
}
async function classifyResourceChanges(stackChanges, evaluateCfnTemplate, sdk, nestedStackNames, hotswapPropertyOverrides) {
  const resourceDifferences = getStackResourceDifferences(stackChanges);
  const promises3 = [];
  const hotswappableResources = new Array();
  const nonHotswappableResources = new Array();
  for (const logicalId of Object.keys(stackChanges.outputs.changes)) {
    nonHotswappableResources.push({
      hotswappable: false,
      change: {
        reason: "output" /* OUTPUT */,
        description: "output was changed",
        subject: {
          type: "Output",
          logicalId,
          metadata: evaluateCfnTemplate.metadataFor(logicalId)
        }
      }
    });
  }
  for (const [logicalId, change] of Object.entries(resourceDifferences)) {
    if (change.newValue?.Type === "AWS::CloudFormation::Stack" && change.oldValue?.Type === "AWS::CloudFormation::Stack") {
      const nestedHotswappableResources = await findNestedHotswappableChanges(
        logicalId,
        change,
        nestedStackNames,
        evaluateCfnTemplate,
        sdk,
        hotswapPropertyOverrides
      );
      hotswappableResources.push(...nestedHotswappableResources.hotswappable);
      nonHotswappableResources.push(...nestedHotswappableResources.nonHotswappable);
      continue;
    }
    const hotswappableChangeCandidate = isCandidateForHotswapping(logicalId, change, evaluateCfnTemplate);
    if ("hotswappable" in hotswappableChangeCandidate) {
      if (!hotswappableChangeCandidate.hotswappable) {
        nonHotswappableResources.push(hotswappableChangeCandidate);
      }
      continue;
    }
    const resourceType = hotswappableChangeCandidate.newValue.Type;
    if (resourceType in RESOURCE_DETECTORS) {
      promises3.push(
        () => RESOURCE_DETECTORS[resourceType](logicalId, hotswappableChangeCandidate, evaluateCfnTemplate, hotswapPropertyOverrides)
      );
    } else {
      nonHotswappableResources.push(nonHotswappableResource(hotswappableChangeCandidate));
    }
  }
  const changesDetectionResults = [];
  for (const detectorResultPromises of promises3) {
    const hotswapDetectionResults = await Promise.all(await detectorResultPromises());
    changesDetectionResults.push(hotswapDetectionResults);
  }
  for (const resourceDetectionResults of changesDetectionResults) {
    for (const propertyResult of resourceDetectionResults) {
      propertyResult.hotswappable ? hotswappableResources.push(propertyResult) : nonHotswappableResources.push(propertyResult);
    }
  }
  return {
    hotswappable: hotswappableResources,
    nonHotswappable: nonHotswappableResources
  };
}
function getStackResourceDifferences(stackChanges) {
  const allResourceChanges = stackChanges.resources.changes;
  const allRemovalChanges = filterDict2(allResourceChanges, (resChange) => resChange.isRemoval);
  const allNonRemovalChanges = filterDict2(allResourceChanges, (resChange) => !resChange.isRemoval);
  for (const [logId, nonRemovalChange] of Object.entries(allNonRemovalChanges)) {
    if (nonRemovalChange.isAddition) {
      const addChange = nonRemovalChange;
      const identicalRemovalChange = Object.entries(allRemovalChanges).find(([_3, remChange]) => {
        return changesAreForSameResource(remChange, addChange);
      });
      if (identicalRemovalChange) {
        const [removedLogId, removedResourceChange] = identicalRemovalChange;
        allNonRemovalChanges[logId] = makeRenameDifference(removedResourceChange, addChange);
        delete allRemovalChanges[removedLogId];
      }
    }
  }
  return {
    ...allRemovalChanges,
    ...allNonRemovalChanges
  };
}
function filterDict2(dict, func) {
  return Object.entries(dict).reduce(
    (acc, [key, t3]) => {
      if (func(t3)) {
        acc[key] = t3;
      }
      return acc;
    },
    {}
  );
}
async function findNestedHotswappableChanges(logicalId, change, nestedStackTemplates, evaluateCfnTemplate, sdk, hotswapPropertyOverrides) {
  const nestedStack = nestedStackTemplates[logicalId];
  if (!nestedStack.physicalName) {
    return {
      hotswappable: [],
      nonHotswappable: [
        {
          hotswappable: false,
          change: {
            reason: "nested-stack-creation" /* NESTED_STACK_CREATION */,
            description: "newly created nested stacks cannot be hotswapped",
            subject: {
              type: "Resource",
              logicalId,
              resourceType: "AWS::CloudFormation::Stack",
              metadata: evaluateCfnTemplate.metadataFor(logicalId)
            }
          }
        }
      ]
    };
  }
  const evaluateNestedCfnTemplate = await evaluateCfnTemplate.createNestedEvaluateCloudFormationTemplate(
    nestedStack.physicalName,
    nestedStack.generatedTemplate,
    change.newValue?.Properties?.Parameters
  );
  const nestedDiff = cfn_diff.fullDiff(
    nestedStackTemplates[logicalId].deployedTemplate,
    nestedStackTemplates[logicalId].generatedTemplate
  );
  return classifyResourceChanges(
    nestedDiff,
    evaluateNestedCfnTemplate,
    sdk,
    nestedStackTemplates[logicalId].nestedStackTemplates,
    hotswapPropertyOverrides
  );
}
function changesAreForSameResource(oldChange, newChange) {
  return oldChange.oldResourceType === newChange.newResourceType && // this isn't great, but I don't want to bring in something like underscore just for this comparison
  JSON.stringify(oldChange.oldProperties) === JSON.stringify(newChange.newProperties);
}
function makeRenameDifference(remChange, addChange) {
  return new cfn_diff.ResourceDifference(
    // we have to fill in the old value, because otherwise this will be classified as a non-hotswappable change
    remChange.oldValue,
    addChange.newValue,
    {
      resourceType: {
        oldType: remChange.oldResourceType,
        newType: addChange.newResourceType
      },
      propertyDiffs: addChange.propertyDiffs,
      otherDiffs: addChange.otherDiffs
    }
  );
}
function isCandidateForHotswapping(logicalId, change, evaluateCfnTemplate) {
  if (!change.oldValue) {
    return {
      hotswappable: false,
      change: {
        reason: "resource-creation" /* RESOURCE_CREATION */,
        description: `resource '${logicalId}' was created by this deployment`,
        subject: {
          type: "Resource",
          logicalId,
          resourceType: change.newValue.Type,
          metadata: evaluateCfnTemplate.metadataFor(logicalId)
        }
      }
    };
  } else if (!change.newValue) {
    return {
      hotswappable: false,
      logicalId,
      change: {
        reason: "resource-deletion" /* RESOURCE_DELETION */,
        description: `resource '${logicalId}' was destroyed by this deployment`,
        subject: {
          type: "Resource",
          logicalId,
          resourceType: change.oldValue.Type,
          metadata: evaluateCfnTemplate.metadataFor(logicalId)
        }
      }
    };
  }
  if (change.newValue.Type !== change.oldValue.Type) {
    return {
      hotswappable: false,
      change: {
        reason: "resource-type-changed" /* RESOURCE_TYPE_CHANGED */,
        description: `resource '${logicalId}' had its type changed from '${change.oldValue?.Type}' to '${change.newValue?.Type}'`,
        subject: {
          type: "Resource",
          logicalId,
          resourceType: change.newValue.Type,
          metadata: evaluateCfnTemplate.metadataFor(logicalId)
        }
      }
    };
  }
  return {
    logicalId,
    oldValue: change.oldValue,
    newValue: change.newValue,
    propertyUpdates: change.propertyUpdates,
    metadata: evaluateCfnTemplate.metadataFor(logicalId)
  };
}
async function applyAllHotswapOperations(sdk, ioSpan, hotswappableChanges) {
  if (hotswappableChanges.length === 0) {
    return Promise.resolve([]);
  }
  await ioSpan.defaults.info(`
${ICON} hotswapping resources:`);
  const limit = pLimit2(10);
  return Promise.all(hotswappableChanges.map((hotswapOperation) => limit(() => {
    return applyHotswapOperation(sdk, ioSpan, hotswapOperation);
  })));
}
async function applyHotswapOperation(sdk, ioSpan, hotswapOperation) {
  const customUserAgent = `cdk-hotswap/success-${hotswapOperation.service}`;
  sdk.appendCustomUserAgent(customUserAgent);
  const resourceText = /* @__PURE__ */ __name((r3) => r3.description ?? `${r3.resourceType} '${r3.physicalName ?? r3.logicalId}'`, "resourceText");
  await ioSpan.notify(IO.CDK_TOOLKIT_I5402.msg(
    hotswapOperation.change.resources.map((r3) => (0, import_util26.format)(`   ${ICON} %s`, chalk8.bold(resourceText(r3)))).join("\n"),
    hotswapOperation.change
  ));
  try {
    await hotswapOperation.apply(sdk);
  } catch (e3) {
    if (e3.name === "TimeoutError" || e3.name === "AbortError") {
      const result2 = JSON.parse(formatErrorMessage(e3));
      const error5 = new ToolkitError(formatWaiterErrorResult(result2));
      error5.name = e3.name;
      throw error5;
    }
    throw e3;
  }
  await ioSpan.notify(IO.CDK_TOOLKIT_I5403.msg(
    hotswapOperation.change.resources.map((r3) => (0, import_util26.format)(`   ${ICON} %s %s`, chalk8.bold(resourceText(r3)), chalk8.green("hotswapped!"))).join("\n"),
    hotswapOperation.change
  ));
  sdk.removeCustomUserAgent(customUserAgent);
}
function formatWaiterErrorResult(result2) {
  const main = [
    `Resource is not in the expected state due to waiter status: ${result2.state}`,
    result2.reason ? `${result2.reason}.` : ""
  ].join(". ");
  if (result2.observedResponses != null) {
    const observedResponses = Object.entries(result2.observedResponses).map(([msg, count]) => `  - ${msg} (${count})`).join("\n");
    return `${main} Observed responses:
${observedResponses}`;
  }
  return main;
}
async function logRejectedChanges(ioSpan, rejectedChanges, hotswapMode) {
  if (rejectedChanges.length === 0) {
    return;
  }
  if (hotswapMode === "hotswap-only") {
    rejectedChanges = rejectedChanges.filter((change) => change.hotswapOnlyVisible === true);
    if (rejectedChanges.length === 0) {
      return;
    }
  }
  const messages = [""];
  if (hotswapMode === "hotswap-only") {
    messages.push((0, import_util26.format)("%s %s", chalk8.red("\u26A0\uFE0F"), chalk8.red("The following non-hotswappable changes were found. To reconcile these using CloudFormation, specify --hotswap-fallback")));
  } else {
    messages.push((0, import_util26.format)("%s %s", chalk8.red("\u26A0\uFE0F"), chalk8.red("The following non-hotswappable changes were found:")));
  }
  for (const { change } of rejectedChanges) {
    messages.push("    " + nonHotswappableChangeMessage(change));
  }
  messages.push("");
  await ioSpan.defaults.info(messages.join("\n"));
}
function nonHotswappableChangeMessage(change) {
  const subject = change.subject;
  const reason = change.description ?? change.reason;
  switch (subject.type) {
    case "Output":
      return (0, import_util26.format)(
        "output: %s, reason: %s",
        chalk8.bold(subject.logicalId),
        chalk8.red(reason)
      );
    case "Resource":
      return nonHotswappableResourceMessage(subject, reason);
  }
}
function nonHotswappableResourceMessage(subject, reason) {
  if (subject.rejectedProperties?.length) {
    return (0, import_util26.format)(
      "resource: %s, type: %s, rejected changes: %s, reason: %s",
      chalk8.bold(subject.logicalId),
      chalk8.bold(subject.resourceType),
      chalk8.bold(subject.rejectedProperties),
      chalk8.red(reason)
    );
  }
  return (0, import_util26.format)(
    "resource: %s, type: %s, reason: %s",
    chalk8.bold(subject.logicalId),
    chalk8.bold(subject.resourceType),
    chalk8.red(reason)
  );
}
var import_util26, cfn_diff, chalk8, pLimit2, RESOURCE_DETECTORS;
var init_hotswap_deployments = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/hotswap/hotswap-deployments.ts"() {
    "use strict";
    import_util26 = require("util");
    cfn_diff = __toESM(require_lib11());
    chalk8 = __toESM(require_source());
    init_payloads();
    init_util3();
    init_cloudformation2();
    init_appsync_mapping_templates();
    init_code_build_projects();
    init_common3();
    init_ecs_services();
    init_lambda_functions();
    init_s3_bucket_deployments();
    init_stepfunctions_state_machines();
    init_toolkit_error();
    init_private();
    init_plugin2();
    pLimit2 = require_p_limit();
    RESOURCE_DETECTORS = {
      // Lambda
      "AWS::Lambda::Function": isHotswappableLambdaFunctionChange,
      "AWS::Lambda::Version": isHotswappableLambdaFunctionChange,
      "AWS::Lambda::Alias": isHotswappableLambdaFunctionChange,
      // AppSync
      "AWS::AppSync::Resolver": isHotswappableAppSyncChange,
      "AWS::AppSync::FunctionConfiguration": isHotswappableAppSyncChange,
      "AWS::AppSync::GraphQLSchema": isHotswappableAppSyncChange,
      "AWS::AppSync::ApiKey": isHotswappableAppSyncChange,
      "AWS::ECS::TaskDefinition": isHotswappableEcsServiceChange,
      "AWS::CodeBuild::Project": isHotswappableCodeBuildProjectChange,
      "AWS::StepFunctions::StateMachine": isHotswappableStateMachineChange,
      "Custom::CDKBucketDeployment": isHotswappableS3BucketDeploymentChange,
      "AWS::IAM::Policy": /* @__PURE__ */ __name(async (logicalId, change, evaluateCfnTemplate) => {
        if (await skipChangeForS3DeployCustomResourcePolicy(logicalId, change, evaluateCfnTemplate)) {
          return [];
        }
        return [nonHotswappableResource(change)];
      }, "AWS::IAM::Policy"),
      "AWS::CDK::Metadata": /* @__PURE__ */ __name(async () => [], "AWS::CDK::Metadata")
    };
    __name(tryHotswapDeployment, "tryHotswapDeployment");
    __name(hotswapDeployment, "hotswapDeployment");
    __name(classifyResourceChanges, "classifyResourceChanges");
    __name(getStackResourceDifferences, "getStackResourceDifferences");
    __name(filterDict2, "filterDict");
    __name(findNestedHotswappableChanges, "findNestedHotswappableChanges");
    __name(changesAreForSameResource, "changesAreForSameResource");
    __name(makeRenameDifference, "makeRenameDifference");
    __name(isCandidateForHotswapping, "isCandidateForHotswapping");
    __name(applyAllHotswapOperations, "applyAllHotswapOperations");
    __name(applyHotswapOperation, "applyHotswapOperation");
    __name(formatWaiterErrorResult, "formatWaiterErrorResult");
    __name(logRejectedChanges, "logRejectedChanges");
    __name(nonHotswappableChangeMessage, "nonHotswappableChangeMessage");
    __name(nonHotswappableResourceMessage, "nonHotswappableResourceMessage");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/deployments/deploy-stack.ts
async function deployStack(options, ioHelper) {
  const stackArtifact = options.stack;
  const stackEnv = options.resolvedEnvironment;
  let deploymentMethod = options.deploymentMethod ?? { method: "change-set" };
  if (options.hotswap && deploymentMethod?.method !== "hotswap") {
    switch (options.hotswap) {
      case "hotswap-only" /* HOTSWAP_ONLY */:
        deploymentMethod = {
          method: "hotswap",
          properties: options.hotswapPropertyOverrides
        };
        break;
      case "fall-back" /* FALL_BACK */:
        deploymentMethod = {
          method: "hotswap",
          properties: options.hotswapPropertyOverrides,
          fallback: deploymentMethod
        };
        break;
      case "full-deployment" /* FULL_DEPLOYMENT */:
        break;
    }
  }
  options.sdk.appendCustomUserAgent(options.extraUserAgent);
  const cfn = options.sdk.cloudFormation();
  const deployName = options.deployName || stackArtifact.stackName;
  let cloudFormationStack = await CloudFormationStack.lookup(cfn, deployName);
  if (cloudFormationStack.stackStatus.isCreationFailure) {
    await ioHelper.defaults.debug(
      `Found existing stack ${deployName} that had previously failed creation. Deleting it before attempting to re-create it.`
    );
    await cfn.deleteStack({ StackName: deployName });
    const deletedStack = await waitForStackDelete(cfn, ioHelper, deployName);
    if (deletedStack && deletedStack.stackStatus.name !== "DELETE_COMPLETE") {
      throw new ToolkitError(
        `Failed deleting stack ${deployName} that had previously failed creation (current state: ${deletedStack.stackStatus})`
      );
    }
    cloudFormationStack = CloudFormationStack.doesNotExist(cfn, deployName);
  }
  const legacyAssets = new AssetManifestBuilder();
  const assetParams = await addMetadataAssetsToManifest(
    ioHelper,
    stackArtifact,
    legacyAssets,
    options.envResources,
    options.reuseAssets
  );
  const finalParameterValues = { ...options.parameters, ...assetParams };
  const templateParams = TemplateParameters.fromTemplate(stackArtifact.template);
  const stackParams = options.usePreviousParameters ? templateParams.updateExisting(finalParameterValues, cloudFormationStack.parameters) : templateParams.supplyAll(finalParameterValues);
  if (await canSkipDeploy(options, cloudFormationStack, stackParams.hasChanges(cloudFormationStack.parameters), ioHelper)) {
    await ioHelper.defaults.debug(`${deployName}: skipping deployment (use --force to override)`);
    if (deploymentMethod?.method === "hotswap") {
      await ioHelper.defaults.info(
        (0, import_util28.format)(
          `
 ${ICON} %s
`,
          chalk9.bold("hotswap deployment skipped - no changes were detected (use --force to override)")
        )
      );
    }
    return {
      type: "did-deploy-stack",
      noOp: true,
      outputs: cloudFormationStack.outputs,
      stackArn: cloudFormationStack.stackId
    };
  } else {
    await ioHelper.defaults.debug(`${deployName}: deploying...`);
  }
  const bodyParameter = await makeBodyParameter(
    ioHelper,
    stackArtifact,
    options.resolvedEnvironment,
    legacyAssets,
    options.envResources,
    options.overrideTemplate
  );
  let bootstrapStackName;
  try {
    bootstrapStackName = (await options.envResources.lookupToolkit()).stackName;
  } catch (e3) {
    await ioHelper.defaults.debug(`Could not determine the bootstrap stack name: ${e3}`);
  }
  await publishAssets(legacyAssets.toManifest(stackArtifact.assembly.directory), options.sdkProvider, stackEnv, {
    parallel: options.assetParallelism,
    allowCrossAccount: await determineAllowCrossAccountAssetPublishing(options.sdk, ioHelper, bootstrapStackName)
  }, ioHelper);
  if (deploymentMethod?.method === "hotswap") {
    try {
      const hotswapModeNew = deploymentMethod?.fallback ? "fall-back" : "hotswap-only";
      const hotswapPropertyOverrides = deploymentMethod.properties ? createHotswapPropertyOverrides(deploymentMethod.properties) : new HotswapPropertyOverrides();
      const hotswapDeploymentResult = await tryHotswapDeployment(
        options.sdkProvider,
        ioHelper,
        stackParams.values,
        cloudFormationStack,
        stackArtifact,
        hotswapModeNew,
        hotswapPropertyOverrides
      );
      if (hotswapDeploymentResult) {
        return hotswapDeploymentResult;
      }
      await ioHelper.defaults.info((0, import_util28.format)(
        "Could not perform a hotswap deployment, as the stack %s contains non-Asset changes",
        stackArtifact.displayName
      ));
    } catch (e3) {
      if (!(e3 instanceof CfnEvaluationException)) {
        throw e3;
      }
      await ioHelper.defaults.info((0, import_util28.format)(
        "Could not perform a hotswap deployment, because the CloudFormation template could not be resolved: %s",
        formatErrorMessage(e3)
      ));
    }
    if (deploymentMethod.fallback) {
      await ioHelper.defaults.info("Falling back to doing a full deployment");
      options.sdk.appendCustomUserAgent("cdk-hotswap/fallback");
      deploymentMethod = deploymentMethod.fallback;
    } else {
      return {
        type: "did-deploy-stack",
        noOp: true,
        stackArn: cloudFormationStack.stackId,
        outputs: cloudFormationStack.outputs
      };
    }
  }
  const fullDeployment = new FullCloudFormationDeployment(
    deploymentMethod,
    options,
    cloudFormationStack,
    stackArtifact,
    stackParams,
    bodyParameter,
    ioHelper
  );
  return fullDeployment.performDeployment();
}
async function destroyStack(options, ioHelper) {
  const deployName = options.deployName || options.stack.stackName;
  const cfn = options.sdk.cloudFormation();
  const currentStack = await CloudFormationStack.lookup(cfn, deployName);
  if (!currentStack.exists) {
    return {};
  }
  const monitor = new StackActivityMonitor({
    cfn,
    stack: options.stack,
    stackName: deployName,
    ioHelper
  });
  await monitor.start();
  try {
    await cfn.deleteStack({ StackName: deployName, RoleARN: options.roleArn });
    const destroyedStack = await waitForStackDelete(cfn, ioHelper, deployName);
    if (destroyedStack && destroyedStack.stackStatus.name !== "DELETE_COMPLETE") {
      throw new ToolkitError(`Failed to destroy ${deployName}: ${destroyedStack.stackStatus}`);
    }
    return { stackArn: currentStack.stackId };
  } catch (e3) {
    throw new ToolkitError(suffixWithErrors(formatErrorMessage(e3), monitor.errors));
  } finally {
    if (monitor) {
      await monitor.stop();
    }
  }
}
async function canSkipDeploy(deployStackOptions, cloudFormationStack, parameterChanges, ioHelper) {
  const deployName = deployStackOptions.deployName || deployStackOptions.stack.stackName;
  await ioHelper.defaults.debug(`${deployName}: checking if we can skip deploy`);
  if (deployStackOptions.forceDeployment) {
    await ioHelper.defaults.debug(`${deployName}: forced deployment`);
    return false;
  }
  if (deployStackOptions.deploymentMethod?.method === "change-set" && deployStackOptions.deploymentMethod.execute === false) {
    await ioHelper.defaults.debug(`${deployName}: --no-execute, always creating change set`);
    return false;
  }
  if (!cloudFormationStack.exists) {
    await ioHelper.defaults.debug(`${deployName}: no existing stack`);
    return false;
  }
  if (JSON.stringify(deployStackOptions.stack.template) !== JSON.stringify(await cloudFormationStack.template())) {
    await ioHelper.defaults.debug(`${deployName}: template has changed`);
    return false;
  }
  if (!compareTags(cloudFormationStack.tags, deployStackOptions.tags ?? [])) {
    await ioHelper.defaults.debug(`${deployName}: tags have changed`);
    return false;
  }
  if (!arrayEquals(cloudFormationStack.notificationArns, deployStackOptions.notificationArns ?? [])) {
    await ioHelper.defaults.debug(`${deployName}: notification arns have changed`);
    return false;
  }
  if (!!deployStackOptions.stack.terminationProtection !== !!cloudFormationStack.terminationProtection) {
    await ioHelper.defaults.debug(`${deployName}: termination protection has been updated`);
    return false;
  }
  if (parameterChanges) {
    if (parameterChanges === "ssm") {
      await ioHelper.defaults.debug(`${deployName}: some parameters come from SSM so we have to assume they may have changed`);
    } else {
      await ioHelper.defaults.debug(`${deployName}: parameters have changed`);
    }
    return false;
  }
  if (cloudFormationStack.stackStatus.isFailure) {
    await ioHelper.defaults.debug(`${deployName}: stack is in a failure state`);
    return false;
  }
  return true;
}
function compareTags(a3, b3) {
  if (a3.length !== b3.length) {
    return false;
  }
  for (const aTag of a3) {
    const bTag = b3.find((tag2) => tag2.Key === aTag.Key);
    if (!bTag || bTag.Value !== aTag.Value) {
      return false;
    }
  }
  return true;
}
function suffixWithErrors(msg, errors) {
  return errors && errors.length > 0 ? `${msg}: ${errors.join(", ")}` : msg;
}
function arrayEquals(a3, b3) {
  return a3.every((item) => b3.includes(item)) && b3.every((item) => a3.includes(item));
}
function hasReplacement(cs) {
  return (cs.Changes ?? []).some((c3) => {
    const a3 = c3.ResourceChange?.PolicyAction;
    return a3 === "ReplaceAndDelete" || a3 === "ReplaceAndRetain" || a3 === "ReplaceAndSnapshot";
  });
}
var import_util28, chalk9, FullCloudFormationDeployment;
var init_deploy_stack = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/deployments/deploy-stack.ts"() {
    "use strict";
    import_util28 = require("util");
    chalk9 = __toESM(require_source());
    init_esm8();
    init_asset_manifest_builder();
    init_asset_publishing();
    init_assets2();
    init_cfn_api();
    init_checks();
    init_toolkit_error();
    init_util3();
    init_cloudformation2();
    init_common3();
    init_hotswap_deployments();
    init_stack_events();
    __name(deployStack, "deployStack");
    FullCloudFormationDeployment = class {
      constructor(deploymentMethod, options, cloudFormationStack, stackArtifact, stackParams, bodyParameter, ioHelper) {
        this.deploymentMethod = deploymentMethod;
        this.options = options;
        this.cloudFormationStack = cloudFormationStack;
        this.stackArtifact = stackArtifact;
        this.stackParams = stackParams;
        this.bodyParameter = bodyParameter;
        this.ioHelper = ioHelper;
        this.cfn = options.sdk.cloudFormation();
        this.stackName = options.deployName ?? stackArtifact.stackName;
        this.update = cloudFormationStack.exists && cloudFormationStack.stackStatus.name !== "REVIEW_IN_PROGRESS";
        this.verb = this.update ? "update" : "create";
        this.uuid = v4_default2();
      }
      static {
        __name(this, "FullCloudFormationDeployment");
      }
      cfn;
      stackName;
      update;
      verb;
      uuid;
      async performDeployment() {
        const deploymentMethod = this.deploymentMethod ?? { method: "change-set" };
        if (deploymentMethod.method === "direct" && this.options.resourcesToImport) {
          throw new ToolkitError("Importing resources requires a changeset deployment");
        }
        switch (deploymentMethod.method) {
          case "change-set":
            return this.changeSetDeployment(deploymentMethod);
          case "direct":
            return this.directDeployment();
        }
      }
      async changeSetDeployment(deploymentMethod) {
        const changeSetName = deploymentMethod.changeSetName ?? "cdk-deploy-change-set";
        const execute2 = deploymentMethod.execute ?? true;
        const importExistingResources = deploymentMethod.importExistingResources ?? false;
        const changeSetDescription = await this.createChangeSet(changeSetName, execute2, importExistingResources);
        await this.updateTerminationProtection();
        if (changeSetHasNoChanges(changeSetDescription)) {
          await this.ioHelper.defaults.debug((0, import_util28.format)("No changes are to be performed on %s.", this.stackName));
          if (execute2) {
            await this.ioHelper.defaults.debug((0, import_util28.format)("Deleting empty change set %s", changeSetDescription.ChangeSetId));
            await this.cfn.deleteChangeSet({
              StackName: this.stackName,
              ChangeSetName: changeSetName
            });
          }
          if (this.options.forceDeployment) {
            await this.ioHelper.defaults.warn(
              [
                "You used the --force flag, but CloudFormation reported that the deployment would not make any changes.",
                "According to CloudFormation, all resources are already up-to-date with the state in your CDK app.",
                "",
                "You cannot use the --force flag to get rid of changes you made in the console. Try using",
                "CloudFormation drift detection instead: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift.html"
              ].join("\n")
            );
          }
          return {
            type: "did-deploy-stack",
            noOp: true,
            outputs: this.cloudFormationStack.outputs,
            stackArn: changeSetDescription.StackId
          };
        }
        if (!execute2) {
          await this.ioHelper.defaults.info((0, import_util28.format)(
            "Changeset %s created and waiting in review for manual execution (--no-execute)",
            changeSetDescription.ChangeSetId
          ));
          return {
            type: "did-deploy-stack",
            noOp: false,
            outputs: this.cloudFormationStack.outputs,
            stackArn: changeSetDescription.StackId
          };
        }
        const replacement = hasReplacement(changeSetDescription);
        const isPausedFailState = this.cloudFormationStack.stackStatus.isRollbackable;
        const rollback = this.options.rollback ?? true;
        if (isPausedFailState && replacement) {
          return { type: "failpaused-need-rollback-first", reason: "replacement", status: this.cloudFormationStack.stackStatus.name };
        }
        if (isPausedFailState && rollback) {
          return { type: "failpaused-need-rollback-first", reason: "not-norollback", status: this.cloudFormationStack.stackStatus.name };
        }
        if (!rollback && replacement) {
          return { type: "replacement-requires-rollback" };
        }
        return this.executeChangeSet(changeSetDescription);
      }
      async createChangeSet(changeSetName, willExecute, importExistingResources) {
        await this.cleanupOldChangeset(changeSetName);
        await this.ioHelper.defaults.debug(`Attempting to create ChangeSet with name ${changeSetName} to ${this.verb} stack ${this.stackName}`);
        await this.ioHelper.defaults.info((0, import_util28.format)("%s: creating CloudFormation changeset...", chalk9.bold(this.stackName)));
        const changeSet = await this.cfn.createChangeSet({
          StackName: this.stackName,
          ChangeSetName: changeSetName,
          ChangeSetType: this.options.resourcesToImport ? "IMPORT" : this.update ? "UPDATE" : "CREATE",
          ResourcesToImport: this.options.resourcesToImport,
          Description: `CDK Changeset for execution ${this.uuid}`,
          ClientToken: `create${this.uuid}`,
          ImportExistingResources: importExistingResources,
          ...this.commonPrepareOptions()
        });
        await this.ioHelper.defaults.debug((0, import_util28.format)("Initiated creation of changeset: %s; waiting for it to finish creating...", changeSet.Id));
        return waitForChangeSet(this.cfn, this.ioHelper, this.stackName, changeSetName, {
          fetchAll: willExecute
        });
      }
      async executeChangeSet(changeSet) {
        await this.ioHelper.defaults.debug((0, import_util28.format)("Initiating execution of changeset %s on stack %s", changeSet.ChangeSetId, this.stackName));
        await this.cfn.executeChangeSet({
          StackName: this.stackName,
          ChangeSetName: changeSet.ChangeSetName,
          ClientRequestToken: `exec${this.uuid}`,
          ...this.commonExecuteOptions()
        });
        await this.ioHelper.defaults.debug(
          (0, import_util28.format)(
            "Execution of changeset %s on stack %s has started; waiting for the update to complete...",
            changeSet.ChangeSetId,
            this.stackName
          )
        );
        const changeSetLength = (changeSet.Changes ?? []).length + (this.update ? 1 : 0);
        return this.monitorDeployment(changeSet.CreationTime, changeSetLength);
      }
      async cleanupOldChangeset(changeSetName) {
        if (this.cloudFormationStack.exists) {
          await this.ioHelper.defaults.debug(`Removing existing change set with name ${changeSetName} if it exists`);
          await this.cfn.deleteChangeSet({
            StackName: this.stackName,
            ChangeSetName: changeSetName
          });
        }
      }
      async updateTerminationProtection() {
        const terminationProtection = this.stackArtifact.terminationProtection ?? false;
        if (!!this.cloudFormationStack.terminationProtection !== terminationProtection) {
          await this.ioHelper.defaults.debug(
            (0, import_util28.format)(
              "Updating termination protection from %s to %s for stack %s",
              this.cloudFormationStack.terminationProtection,
              terminationProtection,
              this.stackName
            )
          );
          await this.cfn.updateTerminationProtection({
            StackName: this.stackName,
            EnableTerminationProtection: terminationProtection
          });
          await this.ioHelper.defaults.debug((0, import_util28.format)("Termination protection updated to %s for stack %s", terminationProtection, this.stackName));
        }
      }
      async directDeployment() {
        await this.ioHelper.defaults.info((0, import_util28.format)("%s: %s stack...", chalk9.bold(this.stackName), this.update ? "updating" : "creating"));
        const startTime = /* @__PURE__ */ new Date();
        if (this.update) {
          await this.updateTerminationProtection();
          try {
            await this.cfn.updateStack({
              StackName: this.stackName,
              ClientRequestToken: `update${this.uuid}`,
              ...this.commonPrepareOptions(),
              ...this.commonExecuteOptions()
            });
          } catch (err) {
            if (err.message === "No updates are to be performed.") {
              await this.ioHelper.defaults.debug((0, import_util28.format)("No updates are to be performed for stack %s", this.stackName));
              return {
                type: "did-deploy-stack",
                noOp: true,
                outputs: this.cloudFormationStack.outputs,
                stackArn: this.cloudFormationStack.stackId
              };
            }
            throw err;
          }
          return this.monitorDeployment(startTime, void 0);
        } else {
          const terminationProtection = this.stackArtifact.terminationProtection ?? false;
          await this.cfn.createStack({
            StackName: this.stackName,
            ClientRequestToken: `create${this.uuid}`,
            ...terminationProtection ? { EnableTerminationProtection: true } : void 0,
            ...this.commonPrepareOptions(),
            ...this.commonExecuteOptions()
          });
          return this.monitorDeployment(startTime, void 0);
        }
      }
      async monitorDeployment(startTime, expectedChanges) {
        const monitor = new StackActivityMonitor({
          cfn: this.cfn,
          stack: this.stackArtifact,
          stackName: this.stackName,
          resourcesTotal: expectedChanges,
          ioHelper: this.ioHelper,
          changeSetCreationTime: startTime
        });
        await monitor.start();
        let finalState = this.cloudFormationStack;
        try {
          const successStack = await waitForStackDeploy(this.cfn, this.ioHelper, this.stackName);
          if (!successStack) {
            throw new ToolkitError("Stack deploy failed (the stack disappeared while we were deploying it)");
          }
          finalState = successStack;
        } catch (e3) {
          throw new ToolkitError(suffixWithErrors(formatErrorMessage(e3), monitor.errors));
        } finally {
          await monitor.stop();
        }
        await this.ioHelper.defaults.debug((0, import_util28.format)("Stack %s has completed updating", this.stackName));
        return {
          type: "did-deploy-stack",
          noOp: false,
          outputs: finalState.outputs,
          stackArn: finalState.stackId
        };
      }
      /**
       * Return the options that are shared between CreateStack, UpdateStack and CreateChangeSet
       */
      commonPrepareOptions() {
        return {
          Capabilities: ["CAPABILITY_IAM", "CAPABILITY_NAMED_IAM", "CAPABILITY_AUTO_EXPAND"],
          NotificationARNs: this.options.notificationArns,
          Parameters: this.stackParams.apiParameters,
          RoleARN: this.options.roleArn,
          TemplateBody: this.bodyParameter.TemplateBody,
          TemplateURL: this.bodyParameter.TemplateURL,
          Tags: this.options.tags
        };
      }
      /**
       * Return the options that are shared between UpdateStack and CreateChangeSet
       *
       * Be careful not to add in keys for options that aren't used, as the features may not have been
       * deployed everywhere yet.
       */
      commonExecuteOptions() {
        const shouldDisableRollback = this.options.rollback === false;
        return {
          StackName: this.stackName,
          ...shouldDisableRollback ? { DisableRollback: true } : void 0
        };
      }
    };
    __name(destroyStack, "destroyStack");
    __name(canSkipDeploy, "canSkipDeploy");
    __name(compareTags, "compareTags");
    __name(suffixWithErrors, "suffixWithErrors");
    __name(arrayEquals, "arrayEquals");
    __name(hasReplacement, "hasReplacement");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/notices/cached-data-source.ts
var fs13, TIME_TO_LIVE_SUCCESS, TIME_TO_LIVE_ERROR, CachedDataSource;
var init_cached_data_source = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/notices/cached-data-source.ts"() {
    "use strict";
    fs13 = __toESM(require_lib4());
    init_toolkit_error();
    TIME_TO_LIVE_SUCCESS = 60 * 60 * 1e3;
    TIME_TO_LIVE_ERROR = 1 * 60 * 1e3;
    CachedDataSource = class {
      constructor(ioHelper, fileName, dataSource, skipCache) {
        this.ioHelper = ioHelper;
        this.fileName = fileName;
        this.dataSource = dataSource;
        this.skipCache = skipCache;
      }
      static {
        __name(this, "CachedDataSource");
      }
      async fetch() {
        const cachedData = await this.load();
        const data3 = cachedData.notices;
        const expiration = cachedData.expiration ?? 0;
        if (Date.now() > expiration || this.skipCache) {
          let updatedData = cachedData;
          try {
            updatedData = await this.fetchInner();
          } catch (e3) {
            await this.ioHelper.defaults.debug(`Could not refresh notices: ${e3}`);
            updatedData = {
              expiration: Date.now() + TIME_TO_LIVE_ERROR,
              notices: []
            };
            throw ToolkitError.withCause("Failed to load CDK notices. Please try again later.", e3);
          } finally {
            await this.save(updatedData);
          }
          return updatedData.notices;
        } else {
          await this.ioHelper.defaults.debug(`Reading cached notices from ${this.fileName}`);
          return data3;
        }
      }
      async fetchInner() {
        return {
          expiration: Date.now() + TIME_TO_LIVE_SUCCESS,
          notices: await this.dataSource.fetch()
        };
      }
      async load() {
        const defaultValue = {
          expiration: 0,
          notices: []
        };
        try {
          return fs13.existsSync(this.fileName) ? await fs13.readJSON(this.fileName) : defaultValue;
        } catch (e3) {
          await this.ioHelper.defaults.debug(`Failed to load notices from cache: ${e3}`);
          return defaultValue;
        }
      }
      async save(cached4) {
        try {
          await fs13.ensureFile(this.fileName);
          await fs13.writeJSON(this.fileName, cached4);
        } catch (e3) {
          await this.ioHelper.defaults.debug(`Failed to store notices in the cache: ${e3}`);
        }
      }
    };
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/tree.ts
function some(node, predicate) {
  return node != null && (predicate(node) || findInChildren());
  function findInChildren() {
    return Object.values(node?.children ?? {}).some((child) => some(child, predicate));
  }
  __name(findInChildren, "findInChildren");
}
async function loadTree(assembly, trace3) {
  try {
    const outdir = assembly.directory;
    const fileName = assembly.tree()?.file;
    return fileName ? fs14.readJSONSync(path14.join(outdir, fileName)).tree : {};
  } catch (e3) {
    await trace3(`Failed to get tree.json file: ${e3}. Proceeding with empty tree.`);
    return void 0;
  }
}
async function loadTreeFromDir(outdir, trace3) {
  try {
    return fs14.readJSONSync(path14.join(outdir, "tree.json")).tree;
  } catch (e3) {
    await trace3(`Failed to get tree.json file: ${e3}. Proceeding with empty tree.`);
    return void 0;
  }
}
var path14, fs14;
var init_tree = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/tree.ts"() {
    "use strict";
    path14 = __toESM(require("node:path"));
    fs14 = __toESM(require_lib4());
    __name(some, "some");
    __name(loadTree, "loadTree");
    __name(loadTreeFromDir, "loadTreeFromDir");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/notices/filter.ts
function normalizeComponents(xs) {
  return xs.map((x3) => Array.isArray(x3) ? x3 : [x3]);
}
function renderConjunction(xs) {
  return xs.map((c3) => `${c3.name}: ${c3.version}`).join(" AND ");
}
var semver3, NoticesFilter, FilteredNotice;
var init_filter = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/notices/filter.ts"() {
    "use strict";
    semver3 = __toESM(require_semver4());
    init_tree();
    __name(normalizeComponents, "normalizeComponents");
    __name(renderConjunction, "renderConjunction");
    NoticesFilter = class {
      static {
        __name(this, "NoticesFilter");
      }
      ioHelper;
      constructor(ioHelper) {
        this.ioHelper = ioHelper;
      }
      async filter(options) {
        const components = [
          ...await this.constructTreeComponents(options.outDir),
          ...await this.otherComponents(options)
        ];
        return this.findForNamedComponents(options.data, components);
      }
      /**
       * From a set of input options, return the notices components we are searching for
       */
      async otherComponents(options) {
        let bootstrappedEnvironments = [];
        for (const env2 of options.bootstrappedEnvironments) {
          const semverBootstrapVersion = semver3.coerce(env2.bootstrapStackVersion);
          if (!semverBootstrapVersion) {
            await this.ioHelper.defaults.warning(`While filtering notices, could not coerce bootstrap version '${env2.bootstrapStackVersion}' into semver`);
            continue;
          }
          bootstrappedEnvironments.push({
            name: "bootstrap",
            version: `${semverBootstrapVersion}`,
            dynamicName: "ENVIRONMENTS",
            dynamicValue: env2.environment.name
          });
        }
        return [
          // CLI
          {
            name: "cli",
            version: options.cliVersion
          },
          // Node version
          {
            name: "node",
            version: process.version.replace(/^v/, ""),
            // remove the 'v' prefix.
            dynamicName: "node"
          },
          // Bootstrap environments
          ...bootstrappedEnvironments
        ];
      }
      /**
       * Based on a set of component names, find all notices that match one of the given components
       */
      findForNamedComponents(data3, actualComponents) {
        return data3.flatMap((notice) => {
          const ors = this.resolveAliases(normalizeComponents(notice.components));
          for (const ands of ors) {
            const matched = ands.map((affected) => actualComponents.filter((actual) => this.componentNameMatches(affected, actual) && semver3.satisfies(actual.version, affected.version, { includePrerelease: true })));
            if (matched.every((xs) => xs.length > 0)) {
              const ret = new FilteredNotice(notice);
              this.addDynamicValues(matched.flatMap((x3) => x3), ret);
              return [ret];
            }
          }
          return [];
        });
      }
      /**
       * Whether the given "affected component" name applies to the given actual component name.
       *
       * The name matches if the name is exactly the same, or the name in the notice
       * is a prefix of the node name when the query ends in '.'.
       */
      componentNameMatches(pattern, actual) {
        return pattern.name.endsWith(".") ? actual.name.startsWith(pattern.name) : pattern.name === actual.name;
      }
      /**
       * Adds dynamic values from the given ActualComponents
       *
       * If there are multiple components with the same dynamic name, they are joined
       * by a comma.
       */
      addDynamicValues(comps, notice) {
        const dynamicValues = {};
        for (const comp of comps) {
          if (comp.dynamicName) {
            dynamicValues[comp.dynamicName] = dynamicValues[comp.dynamicName] ?? [];
            dynamicValues[comp.dynamicName].push(comp.dynamicValue ?? comp.version);
          }
        }
        for (const [key, values] of Object.entries(dynamicValues)) {
          notice.addDynamicValue(key, values.join(","));
        }
      }
      /**
       * Treat 'framework' as an alias for either `aws-cdk-lib.` or `@aws-cdk/core.`.
       *
       * Because it's EITHER `aws-cdk-lib` or `@aws-cdk/core`, we need to add multiple
       * arrays at the top level.
       */
      resolveAliases(ors) {
        return ors.flatMap((ands) => {
          const hasFramework = ands.find((c3) => c3.name === "framework");
          if (!hasFramework) {
            return [ands];
          }
          return [
            ands.map((c3) => c3.name === "framework" ? { ...c3, name: "@aws-cdk/core." } : c3),
            ands.map((c3) => c3.name === "framework" ? { ...c3, name: "aws-cdk-lib." } : c3)
          ];
        });
      }
      /**
       * Load the construct tree from the given directory and return its components
       */
      async constructTreeComponents(manifestDir) {
        const tree = await loadTreeFromDir(manifestDir, (msg) => this.ioHelper.defaults.trace(msg));
        if (!tree) {
          return [];
        }
        const ret = [];
        recurse(tree);
        return ret;
        function recurse(x3) {
          if (x3.constructInfo?.fqn && x3.constructInfo?.version) {
            ret.push({
              name: x3.constructInfo?.fqn,
              version: x3.constructInfo?.version
            });
          }
          for (const child of Object.values(x3.children ?? {})) {
            recurse(child);
          }
        }
        __name(recurse, "recurse");
      }
    };
    FilteredNotice = class {
      constructor(notice) {
        this.notice = notice;
      }
      static {
        __name(this, "FilteredNotice");
      }
      dynamicValues = {};
      addDynamicValue(key, value) {
        this.dynamicValues[`{resolve:${key}}`] = value;
      }
      format() {
        const componentsValue = normalizeComponents(this.notice.components).map(renderConjunction).join(", ");
        return this.resolveDynamicValues([
          `${this.notice.issueNumber}	${this.notice.title}`,
          this.formatOverview(),
          `	Affected versions: ${componentsValue}`,
          `	More information at: https://github.com/aws/aws-cdk/issues/${this.notice.issueNumber}`
        ].join("\n\n") + "\n");
      }
      formatOverview() {
        const wrap = /* @__PURE__ */ __name((s3) => s3.replace(/(?![^\n]{1,60}$)([^\n]{1,60})\s/g, "$1\n"), "wrap");
        const heading = "Overview: ";
        const separator = `
	${" ".repeat(heading.length)}`;
        const content = wrap(this.notice.overview).split("\n").join(separator);
        return "	" + heading + content;
      }
      resolveDynamicValues(input) {
        const pattern = new RegExp(Object.keys(this.dynamicValues).join("|"), "g");
        return input.replace(pattern, (matched) => this.dynamicValues[matched] ?? matched);
      }
    };
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/notices/web-data-source.ts
var https, WebsiteNoticeDataSource;
var init_web_data_source = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/notices/web-data-source.ts"() {
    "use strict";
    https = __toESM(require("node:https"));
    init_toolkit_error();
    init_util3();
    WebsiteNoticeDataSource = class {
      constructor(ioHelper, props = {}) {
        this.ioHelper = ioHelper;
        this.agent = props.agent;
        this.url = props.url ?? "https://cli.cdk.dev-tools.aws.dev/notices.json";
      }
      static {
        __name(this, "WebsiteNoticeDataSource");
      }
      /**
       * The URL notices are loaded from.
       */
      url;
      agent;
      async fetch() {
        const timeout = process.env.TESTING_CDK ? 3e4 : 3e3;
        const options = {
          agent: this.agent
        };
        const notices = await new Promise((resolve13, reject) => {
          let req;
          let timer = setTimeout(() => {
            if (req) {
              req.destroy(new ToolkitError("Request timed out"));
            }
          }, timeout);
          timer.unref();
          try {
            req = https.get(
              this.url,
              options,
              (res) => {
                if (res.statusCode === 200) {
                  res.setEncoding("utf8");
                  let rawData = "";
                  res.on("data", (chunk) => {
                    rawData += chunk;
                  });
                  res.on("end", () => {
                    try {
                      const data3 = JSON.parse(rawData).notices;
                      if (!data3) {
                        throw new ToolkitError("'notices' key is missing from received data");
                      }
                      resolve13(data3 ?? []);
                    } catch (e3) {
                      reject(ToolkitError.withCause(`Parse error: ${formatErrorMessage(e3)}`, e3));
                    }
                  });
                  res.on("error", (e3) => {
                    reject(ToolkitError.withCause(formatErrorMessage(e3), e3));
                  });
                } else {
                  reject(new ToolkitError(`${humanHttpStatusError(res.statusCode)} (Status code: ${res.statusCode})`));
                }
              }
            );
            req.on("error", (e3) => {
              reject(ToolkitError.withCause(humanNetworkError(e3), e3));
            });
          } catch (e3) {
            reject(ToolkitError.withCause(formatErrorMessage(e3), e3));
          }
        });
        await this.ioHelper.defaults.debug("Notices refreshed");
        return notices;
      }
    };
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/notices/notices.ts
var path15, CACHE_FILE_PATH, Notices;
var init_notices = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/notices/notices.ts"() {
    "use strict";
    path15 = __toESM(require("path"));
    init_util3();
    init_cached_data_source();
    init_filter();
    init_web_data_source();
    init_private();
    CACHE_FILE_PATH = path15.join(cdkCacheDir(), "notices.json");
    Notices = class _Notices {
      static {
        __name(this, "Notices");
      }
      /**
       * Create an instance. Note that this replaces the singleton.
       */
      static create(props) {
        this._instance = new _Notices(props);
        return this._instance;
      }
      /**
       * Get the singleton instance. May return `undefined` if `create` has not been called.
       */
      static get() {
        return this._instance;
      }
      static _instance;
      context;
      output;
      acknowledgedIssueNumbers;
      httpOptions;
      ioHelper;
      cliVersion;
      data = /* @__PURE__ */ new Set();
      // sets don't deduplicate interfaces, so we use a map.
      bootstrappedEnvironments = /* @__PURE__ */ new Map();
      constructor(props) {
        this.context = props.context;
        this.acknowledgedIssueNumbers = new Set(this.context.get("acknowledged-issue-numbers") ?? []);
        this.output = props.output ?? "cdk.out";
        this.httpOptions = props.httpOptions ?? {};
        this.ioHelper = asIoHelper(
          props.ioHost,
          "notices"
          /* forcing a CliAction to a ToolkitAction */
        );
        this.cliVersion = props.cliVersion;
      }
      /**
       * Add a bootstrap information to filter on. Can have multiple values
       * in case of multi-environment deployments.
       */
      addBootstrappedEnvironment(bootstrapped) {
        const key = [
          bootstrapped.bootstrapStackVersion,
          bootstrapped.environment.account,
          bootstrapped.environment.region,
          bootstrapped.environment.name
        ].join(":");
        this.bootstrappedEnvironments.set(key, bootstrapped);
      }
      /**
       * Refresh the list of notices this instance is aware of.
       *
       * This method throws an error if the data source fails to fetch notices.
       * When using, consider if execution should halt immdiately or if catching the error and continuing is more appropriate
       *
       * @throws on failure to refresh the data source
       */
      async refresh(options = {}) {
        const innerDataSource = options.dataSource ?? new WebsiteNoticeDataSource(this.ioHelper, this.httpOptions);
        const dataSource = new CachedDataSource(this.ioHelper, CACHE_FILE_PATH, innerDataSource, options.force ?? false);
        const notices = await dataSource.fetch();
        this.data = new Set(notices);
      }
      /**
       * Filter the data source for relevant notices
       */
      filter(options = {}) {
        return new NoticesFilter(this.ioHelper).filter({
          data: this.noticesFromData(options.includeAcknowledged ?? false),
          cliVersion: this.cliVersion,
          outDir: this.output,
          bootstrappedEnvironments: Array.from(this.bootstrappedEnvironments.values())
        });
      }
      /**
       * Display the relevant notices (unless context dictates we shouldn't).
       */
      async display(options = {}) {
        const filteredNotices = await this.filter(options);
        if (filteredNotices.length > 0) {
          await this.ioHelper.notify(IO.CDK_TOOLKIT_I0100.msg([
            "",
            "NOTICES         (What's this? https://github.com/aws/aws-cdk/wiki/CLI-Notices)",
            ""
          ].join("\n")));
          for (const filtered of filteredNotices) {
            const formatted = filtered.format() + "\n";
            switch (filtered.notice.severity) {
              case "warning":
                await this.ioHelper.notify(IO.CDK_TOOLKIT_W0101.msg(formatted));
                break;
              case "error":
                await this.ioHelper.notify(IO.CDK_TOOLKIT_E0101.msg(formatted));
                break;
              default:
                await this.ioHelper.notify(IO.CDK_TOOLKIT_I0101.msg(formatted));
                break;
            }
          }
          await this.ioHelper.notify(IO.CDK_TOOLKIT_I0100.msg(
            `If you don\u2019t want to see a notice anymore, use "cdk acknowledge <id>". For example, "cdk acknowledge ${filteredNotices[0].notice.issueNumber}".`
          ));
        }
        if (options.showTotal ?? false) {
          await this.ioHelper.notify(IO.CDK_TOOLKIT_I0100.msg(
            `
There are ${filteredNotices.length} unacknowledged notice(s).`
          ));
        }
      }
      /**
       * List all notices available in the data source.
       *
       * @param includeAcknowlegded - Whether to include acknowledged notices.
       */
      noticesFromData(includeAcknowlegded = false) {
        const data3 = Array.from(this.data);
        if (includeAcknowlegded) {
          return data3;
        }
        return data3.filter((n3) => !this.acknowledgedIssueNumbers.has(n3.issueNumber));
      }
    };
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/notices/index.ts
var init_notices2 = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/notices/index.ts"() {
    "use strict";
    init_notices();
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/toolkit-info.ts
var import_util32, chalk10, DEFAULT_TOOLKIT_STACK_NAME, ToolkitInfo, ExistingToolkitInfo, BootstrapStackNotFoundInfo;
var init_toolkit_info = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/toolkit-info.ts"() {
    "use strict";
    import_util32 = require("util");
    chalk10 = __toESM(require_source());
    init_bootstrap_props();
    init_toolkit_error();
    init_cfn_api();
    DEFAULT_TOOLKIT_STACK_NAME = "CDKToolkit";
    ToolkitInfo = class _ToolkitInfo {
      static {
        __name(this, "ToolkitInfo");
      }
      static determineName(overrideName) {
        return overrideName ?? DEFAULT_TOOLKIT_STACK_NAME;
      }
      static async lookup(environment, sdk, ioHelper, stackName) {
        const cfn = sdk.cloudFormation();
        stackName = _ToolkitInfo.determineName(stackName);
        try {
          const stack = await stabilizeStack(cfn, ioHelper, stackName);
          if (!stack) {
            await ioHelper.defaults.debug(
              (0, import_util32.format)(
                "The environment %s doesn't have the CDK toolkit stack (%s) installed. Use %s to setup your environment for use with the toolkit.",
                environment.name,
                stackName,
                chalk10.blue(`cdk bootstrap "${environment.name}"`)
              )
            );
            return _ToolkitInfo.bootstrapStackNotFoundInfo(stackName);
          }
          if (stack.stackStatus.isCreationFailure) {
            await ioHelper.defaults.debug(
              (0, import_util32.format)(
                "The environment %s has a CDK toolkit stack (%s) that failed to create. Use %s to try provisioning it again.",
                environment.name,
                stackName,
                chalk10.blue(`cdk bootstrap "${environment.name}"`)
              )
            );
            return _ToolkitInfo.bootstrapStackNotFoundInfo(stackName);
          }
          return new ExistingToolkitInfo(stack);
        } catch (e3) {
          return _ToolkitInfo.bootstrapStackLookupError(stackName, e3);
        }
      }
      static fromStack(stack) {
        return new ExistingToolkitInfo(stack);
      }
      static bootstrapStackNotFoundInfo(stackName) {
        return new BootstrapStackNotFoundInfo(
          stackName,
          "This deployment requires a bootstrap stack with a known name; pass '--toolkit-stack-name' or switch to using the 'DefaultStackSynthesizer' (see https://docs.aws.amazon.com/cdk/latest/guide/bootstrapping.html)"
        );
      }
      static bootstrapStackLookupError(stackName, e3) {
        return new BootstrapStackNotFoundInfo(
          stackName,
          `This deployment requires a bootstrap stack with a known name, but during its lookup the following error occurred: ${e3}; pass '--toolkit-stack-name' or switch to using the 'DefaultStackSynthesizer' (see https://docs.aws.amazon.com/cdk/latest/guide/bootstrapping.html)`
        );
      }
      constructor() {
      }
    };
    ExistingToolkitInfo = class extends ToolkitInfo {
      constructor(bootstrapStack) {
        super();
        this.bootstrapStack = bootstrapStack;
      }
      static {
        __name(this, "ExistingToolkitInfo");
      }
      found = true;
      get bucketUrl() {
        return `https://${this.requireOutput(BUCKET_DOMAIN_NAME_OUTPUT)}`;
      }
      get bucketName() {
        return this.requireOutput(BUCKET_NAME_OUTPUT);
      }
      get repositoryName() {
        return this.requireOutput(REPOSITORY_NAME_OUTPUT);
      }
      get version() {
        return parseInt(this.bootstrapStack.outputs[BOOTSTRAP_VERSION_OUTPUT] ?? "0", 10);
      }
      get variant() {
        return this.bootstrapStack.parameters[BOOTSTRAP_VARIANT_PARAMETER] ?? DEFAULT_BOOTSTRAP_VARIANT;
      }
      get parameters() {
        return this.bootstrapStack.parameters ?? {};
      }
      get terminationProtection() {
        return this.bootstrapStack.terminationProtection ?? false;
      }
      get stackName() {
        return this.bootstrapStack.stackName;
      }
      /**
       * Prepare an ECR repository for uploading to using Docker
       *
       */
      requireOutput(output) {
        if (!(output in this.bootstrapStack.outputs)) {
          throw new ToolkitError(
            `The CDK toolkit stack (${this.bootstrapStack.stackName}) does not have an output named ${output}. Use 'cdk bootstrap' to correct this.`
          );
        }
        return this.bootstrapStack.outputs[output];
      }
    };
    BootstrapStackNotFoundInfo = class extends ToolkitInfo {
      constructor(stackName, errorMessage) {
        super();
        this.stackName = stackName;
        this.errorMessage = errorMessage;
      }
      static {
        __name(this, "BootstrapStackNotFoundInfo");
      }
      found = false;
      get bootstrapStack() {
        throw new ToolkitError(this.errorMessage);
      }
      get bucketUrl() {
        throw new ToolkitError(this.errorMessage);
      }
      get bucketName() {
        throw new ToolkitError(this.errorMessage);
      }
      get repositoryName() {
        throw new ToolkitError(this.errorMessage);
      }
      get version() {
        throw new ToolkitError(this.errorMessage);
      }
      get variant() {
        throw new ToolkitError(this.errorMessage);
      }
      prepareEcrRepository() {
        throw new ToolkitError(this.errorMessage);
      }
    };
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/environment/environment-resources.ts
function emptyCache() {
  return {
    ssmParameters: /* @__PURE__ */ new Map(),
    toolkitInfo: void 0
  };
}
var EnvironmentResourcesRegistry, EnvironmentResources, NoBootstrapStackEnvironmentResources, BOOTSTRAP_TEMPLATE_VERSION_INTRODUCING_GETPARAMETER;
var init_environment_resources = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/environment/environment-resources.ts"() {
    "use strict";
    init_toolkit_error();
    init_util3();
    init_notices2();
    init_toolkit_info();
    EnvironmentResourcesRegistry = class {
      constructor(toolkitStackName) {
        this.toolkitStackName = toolkitStackName;
      }
      static {
        __name(this, "EnvironmentResourcesRegistry");
      }
      cache = /* @__PURE__ */ new Map();
      for(resolvedEnvironment, sdk, ioHelper) {
        const key = `${resolvedEnvironment.account}:${resolvedEnvironment.region}`;
        let envCache = this.cache.get(key);
        if (!envCache) {
          envCache = emptyCache();
          this.cache.set(key, envCache);
        }
        return new EnvironmentResources(resolvedEnvironment, sdk, ioHelper, envCache, this.toolkitStackName);
      }
    };
    EnvironmentResources = class {
      constructor(environment, sdk, ioHelper, cache3, toolkitStackName) {
        this.environment = environment;
        this.sdk = sdk;
        this.ioHelper = ioHelper;
        this.cache = cache3;
        this.toolkitStackName = toolkitStackName;
      }
      static {
        __name(this, "EnvironmentResources");
      }
      /**
       * Look up the toolkit for a given environment, using a given SDK
       */
      async lookupToolkit() {
        if (!this.cache.toolkitInfo) {
          this.cache.toolkitInfo = await ToolkitInfo.lookup(this.environment, this.sdk, this.ioHelper, this.toolkitStackName);
        }
        return this.cache.toolkitInfo;
      }
      /**
       * Validate that the bootstrap stack version matches or exceeds the expected version
       *
       * Use the SSM parameter name to read the version number if given, otherwise use the version
       * discovered on the bootstrap stack.
       *
       * Pass in the SSM parameter name so we can cache the lookups an don't need to do the same
       * lookup again and again for every artifact.
       */
      async validateVersion(expectedVersion, ssmParameterName) {
        if (expectedVersion === void 0) {
          return;
        }
        const defExpectedVersion = expectedVersion;
        if (ssmParameterName !== void 0) {
          try {
            doValidate(await this.versionFromSsmParameter(ssmParameterName), this.environment);
            return;
          } catch (e3) {
            if (e3.name !== "AccessDeniedException") {
              throw e3;
            }
            const bootstrapStack2 = await this.lookupToolkit();
            if (bootstrapStack2.found && bootstrapStack2.version < BOOTSTRAP_TEMPLATE_VERSION_INTRODUCING_GETPARAMETER) {
              await this.ioHelper.defaults.warn(
                `Could not read SSM parameter ${ssmParameterName}: ${formatErrorMessage(e3)}, falling back to version from ${bootstrapStack2}`
              );
              doValidate(bootstrapStack2.version, this.environment);
              return;
            }
            throw new ToolkitError(
              `This CDK deployment requires bootstrap stack version '${expectedVersion}', but during the confirmation via SSM parameter ${ssmParameterName} the following error occurred: ${e3}`
            );
          }
        }
        const bootstrapStack = await this.lookupToolkit();
        doValidate(bootstrapStack.version, this.environment);
        function doValidate(version2, environment) {
          const notices = Notices.get();
          if (notices) {
            notices.addBootstrappedEnvironment({ bootstrapStackVersion: version2, environment });
          }
          if (defExpectedVersion > version2) {
            throw new ToolkitError(
              `This CDK deployment requires bootstrap stack version '${expectedVersion}', found '${version2}'. Please run 'cdk bootstrap'.`
            );
          }
        }
        __name(doValidate, "doValidate");
      }
      /**
       * Read a version from an SSM parameter, cached
       */
      async versionFromSsmParameter(parameterName) {
        const existing = this.cache.ssmParameters.get(parameterName);
        if (existing !== void 0) {
          return existing;
        }
        const ssm = this.sdk.ssm();
        try {
          const result2 = await ssm.getParameter({ Name: parameterName });
          const asNumber = parseInt(`${result2.Parameter?.Value}`, 10);
          if (isNaN(asNumber)) {
            throw new ToolkitError(`SSM parameter ${parameterName} not a number: ${result2.Parameter?.Value}`);
          }
          this.cache.ssmParameters.set(parameterName, asNumber);
          return asNumber;
        } catch (e3) {
          if (e3.name === "ParameterNotFound") {
            throw new ToolkitError(
              `SSM parameter ${parameterName} not found. Has the environment been bootstrapped? Please run 'cdk bootstrap' (see https://docs.aws.amazon.com/cdk/latest/guide/bootstrapping.html)`
            );
          }
          throw e3;
        }
      }
      async prepareEcrRepository(repositoryName) {
        if (!this.sdk) {
          throw new ToolkitError("ToolkitInfo needs to have been initialized with an sdk to call prepareEcrRepository");
        }
        const ecr = this.sdk.ecr();
        try {
          await this.ioHelper.defaults.debug(`${repositoryName}: checking if ECR repository already exists`);
          const describeResponse = await ecr.describeRepositories({
            repositoryNames: [repositoryName]
          });
          const existingRepositoryUri = describeResponse.repositories[0]?.repositoryUri;
          if (existingRepositoryUri) {
            return { repositoryUri: existingRepositoryUri };
          }
        } catch (e3) {
          if (e3.name !== "RepositoryNotFoundException") {
            throw e3;
          }
        }
        await this.ioHelper.defaults.debug(`${repositoryName}: creating ECR repository`);
        const assetTag = { Key: "awscdk:asset", Value: "true" };
        const response = await ecr.createRepository({
          repositoryName,
          tags: [assetTag]
        });
        const repositoryUri2 = response.repository?.repositoryUri;
        if (!repositoryUri2) {
          throw new ToolkitError(`CreateRepository did not return a repository URI for ${repositoryUri2}`);
        }
        await this.ioHelper.defaults.debug(`${repositoryName}: enable image scanning`);
        await ecr.putImageScanningConfiguration({
          repositoryName,
          imageScanningConfiguration: { scanOnPush: true }
        });
        return { repositoryUri: repositoryUri2 };
      }
    };
    NoBootstrapStackEnvironmentResources = class extends EnvironmentResources {
      static {
        __name(this, "NoBootstrapStackEnvironmentResources");
      }
      constructor(environment, sdk, ioHelper) {
        super(environment, sdk, ioHelper, emptyCache());
      }
      /**
       * Look up the toolkit for a given environment, using a given SDK
       */
      async lookupToolkit() {
        throw new ToolkitError(
          "Trying to perform an operation that requires a bootstrap stack; you should not see this error, this is a bug in the CDK CLI."
        );
      }
    };
    __name(emptyCache, "emptyCache");
    BOOTSTRAP_TEMPLATE_VERSION_INTRODUCING_GETPARAMETER = 5;
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/environment/placeholders.ts
async function replaceEnvPlaceholders(object, env2, sdkProvider) {
  return import_cx_api5.EnvironmentPlaceholders.replaceAsync(object, {
    accountId: /* @__PURE__ */ __name(() => Promise.resolve(env2.account), "accountId"),
    region: /* @__PURE__ */ __name(() => Promise.resolve(env2.region), "region"),
    partition: /* @__PURE__ */ __name(async () => {
      return await sdkProvider.baseCredentialsPartition(env2, 0 /* ForReading */) ?? "aws";
    }, "partition")
  });
}
var import_cx_api5;
var init_placeholders2 = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/environment/placeholders.ts"() {
    "use strict";
    import_cx_api5 = __toESM(require_lib3());
    init_plugin2();
    __name(replaceEnvPlaceholders, "replaceEnvPlaceholders");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/environment/environment-access.ts
var EnvironmentAccess;
var init_environment_access = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/environment/environment-access.ts"() {
    "use strict";
    init_environment_resources();
    init_placeholders2();
    init_toolkit_error();
    init_util3();
    init_plugin2();
    EnvironmentAccess = class {
      constructor(sdkProvider, toolkitStackName, ioHelper) {
        this.sdkProvider = sdkProvider;
        this.environmentResources = new EnvironmentResourcesRegistry(toolkitStackName);
        this.ioHelper = ioHelper;
      }
      static {
        __name(this, "EnvironmentAccess");
      }
      sdkCache = /* @__PURE__ */ new Map();
      environmentResources;
      ioHelper;
      /**
       * Resolves the environment for a stack.
       */
      async resolveStackEnvironment(stack) {
        return this.sdkProvider.resolveEnvironment(stack.environment);
      }
      /**
       * Get an SDK to access the given stack's environment for stack operations
       *
       * Will ask plugins for readonly credentials if available, use the default
       * AWS credentials if not.
       *
       * Will assume the deploy role if configured on the stack. Check the default `deploy-role`
       * policies to see what you can do with this role.
       */
      async accessStackForReadOnlyStackOperations(stack) {
        return this.accessStackForStackOperations(stack, 0 /* ForReading */);
      }
      /**
       * Get an SDK to access the given stack's environment for stack operations
       *
       * Will ask plugins for mutating credentials if available, use the default AWS
       * credentials if not.  The `mode` parameter is only used for querying
       * plugins.
       *
       * Will assume the deploy role if configured on the stack. Check the default `deploy-role`
       * policies to see what you can do with this role.
       */
      async accessStackForMutableStackOperations(stack) {
        return this.accessStackForStackOperations(stack, 1 /* ForWriting */);
      }
      /**
       * Get an SDK to access the given stack's environment for environmental lookups
       *
       * Will use a plugin if available, use the default AWS credentials if not.
       * The `mode` parameter is only used for querying plugins.
       *
       * Will assume the lookup role if configured on the stack. Check the default `lookup-role`
       * policies to see what you can do with this role. It can generally read everything
       * in the account that does not require KMS access.
       *
       * ---
       *
       * For backwards compatibility reasons, there are some scenarios that are handled here:
       *
       *  1. The lookup role may not exist (it was added in bootstrap stack version 7). If so:
       *     a. Return the default credentials if the default credentials are for the stack account
       *        (you will notice this as `isFallbackCredentials=true`).
       *     b. Throw an error if the default credentials are not for the stack account.
       *
       *  2. The lookup role may not have the correct permissions (for example, ReadOnlyAccess was added in
       *     bootstrap stack version 8); the stack will have a minimum version number on it.
       *     a. If it does not we throw an error which should be handled in the calling
       *        function (and fallback to use a different role, etc)
       *
       * Upon success, caller will have an SDK for the right account, which may or may not have
       * the right permissions.
       */
      async accessStackForLookup(stack) {
        if (!stack.environment) {
          throw new ToolkitError(`The stack ${stack.displayName} does not have an environment`);
        }
        const lookupEnv = await this.prepareSdk({
          environment: stack.environment,
          mode: 0 /* ForReading */,
          assumeRoleArn: stack.lookupRole?.arn,
          assumeRoleExternalId: stack.lookupRole?.assumeRoleExternalId,
          assumeRoleAdditionalOptions: stack.lookupRole?.assumeRoleAdditionalOptions
        });
        if (lookupEnv.didAssumeRole && stack.lookupRole?.bootstrapStackVersionSsmParameter && stack.lookupRole.requiresBootstrapStackVersion) {
          const version2 = await lookupEnv.resources.versionFromSsmParameter(stack.lookupRole.bootstrapStackVersionSsmParameter);
          if (version2 < stack.lookupRole.requiresBootstrapStackVersion) {
            throw new ToolkitError(`Bootstrap stack version '${stack.lookupRole.requiresBootstrapStackVersion}' is required, found version '${version2}'. To get rid of this error, please upgrade to bootstrap version >= ${stack.lookupRole.requiresBootstrapStackVersion}`);
          }
        }
        if (lookupEnv.isFallbackCredentials) {
          const arn = await lookupEnv.replacePlaceholders(stack.lookupRole?.arn);
          await this.ioHelper.defaults.warn(`Lookup role ${arn} was not assumed. Proceeding with default credentials.`);
        }
        return lookupEnv;
      }
      /**
       * Get an SDK to access the given stack's environment for reading stack attributes
       *
       * Will use a plugin if available, use the default AWS credentials if not.
       * The `mode` parameter is only used for querying plugins.
       *
       * Will try to assume the lookup role if given, will use the regular stack operations
       * access (deploy-role) otherwise. When calling this, you should assume that you will get
       * the least privileged role, so don't try to use it for anything the `deploy-role`
       * wouldn't be able to do. Also you cannot rely on being able to read encrypted anything.
       */
      async accessStackForLookupBestEffort(stack) {
        if (!stack.environment) {
          throw new ToolkitError(`The stack ${stack.displayName} does not have an environment`);
        }
        try {
          return await this.accessStackForLookup(stack);
        } catch (e3) {
          await this.ioHelper.defaults.warn(`${formatErrorMessage(e3)}`);
        }
        return this.accessStackForStackOperations(stack, 0 /* ForReading */);
      }
      /**
       * Get an SDK to access the given stack's environment for stack operations
       *
       * Will use a plugin if available, use the default AWS credentials if not.
       * The `mode` parameter is only used for querying plugins.
       *
       * Will assume the deploy role if configured on the stack. Check the default `deploy-role`
       * policies to see what you can do with this role.
       */
      async accessStackForStackOperations(stack, mode) {
        if (!stack.environment) {
          throw new ToolkitError(`The stack ${stack.displayName} does not have an environment`);
        }
        return this.prepareSdk({
          environment: stack.environment,
          mode,
          assumeRoleArn: stack.assumeRoleArn,
          assumeRoleExternalId: stack.assumeRoleExternalId,
          assumeRoleAdditionalOptions: stack.assumeRoleAdditionalOptions
        });
      }
      /**
       * Prepare an SDK for use in the given environment and optionally with a role assumed.
       */
      async prepareSdk(options) {
        const resolvedEnvironment = await this.sdkProvider.resolveEnvironment(options.environment);
        const { assumeRoleArn } = await replaceEnvPlaceholders({
          assumeRoleArn: options.assumeRoleArn
        }, resolvedEnvironment, this.sdkProvider);
        const stackSdk = await this.cachedSdkForEnvironment(resolvedEnvironment, options.mode, {
          assumeRoleArn,
          assumeRoleExternalId: options.assumeRoleExternalId,
          assumeRoleAdditionalOptions: options.assumeRoleAdditionalOptions
        });
        return {
          sdk: stackSdk.sdk,
          resolvedEnvironment,
          resources: this.environmentResources.for(resolvedEnvironment, stackSdk.sdk, this.ioHelper),
          // If we asked for a role, did not successfully assume it, and yet got here without an exception: that
          // means we must have fallback credentials.
          isFallbackCredentials: !stackSdk.didAssumeRole && !!assumeRoleArn,
          didAssumeRole: stackSdk.didAssumeRole,
          replacePlaceholders: /* @__PURE__ */ __name(async (str) => {
            const ret = await replaceEnvPlaceholders({ str }, resolvedEnvironment, this.sdkProvider);
            return ret.str;
          }, "replacePlaceholders")
        };
      }
      async cachedSdkForEnvironment(environment, mode, options) {
        const cacheKeyElements = [
          environment.account,
          environment.region,
          `${mode}`,
          options?.assumeRoleArn ?? "",
          options?.assumeRoleExternalId ?? ""
        ];
        if (options?.assumeRoleAdditionalOptions) {
          cacheKeyElements.push(JSON.stringify(options.assumeRoleAdditionalOptions));
        }
        const cacheKey = cacheKeyElements.join(":");
        const existing = this.sdkCache.get(cacheKey);
        if (existing) {
          return existing;
        }
        const ret = await this.sdkProvider.forEnvironment(environment, mode, options);
        this.sdkCache.set(cacheKey, ret);
        return ret;
      }
    };
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/environment/index.ts
var init_environment = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/environment/index.ts"() {
    "use strict";
    init_environment_access();
    init_environment_resources();
    init_placeholders2();
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/deployments/deployments.ts
function suffixWithErrors2(msg, errors) {
  return errors && errors.length > 0 ? `${msg}: ${errors.join(", ")}` : msg;
}
var import_crypto7, cdk_assets, chalk11, BOOTSTRAP_STACK_VERSION_FOR_ROLLBACK, Deployments, ParallelSafeAssetProgress;
var init_deployments = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/deployments/deployments.ts"() {
    "use strict";
    import_crypto7 = require("crypto");
    cdk_assets = __toESM(require_lib6());
    chalk11 = __toESM(require_source());
    init_asset_manifest_builder();
    init_asset_publishing();
    init_cfn_api();
    init_checks();
    init_deploy_stack();
    init_toolkit_error();
    init_util3();
    init_cloudformation2();
    init_environment();
    init_stack_events();
    init_toolkit_info();
    BOOTSTRAP_STACK_VERSION_FOR_ROLLBACK = 23;
    Deployments = class {
      constructor(props) {
        this.props = props;
        this.assetSdkProvider = props.sdkProvider;
        this.deployStackSdkProvider = props.sdkProvider;
        this.ioHelper = props.ioHelper;
        this.envs = new EnvironmentAccess(
          props.sdkProvider,
          props.toolkitStackName ?? DEFAULT_TOOLKIT_STACK_NAME,
          this.ioHelper
        );
      }
      static {
        __name(this, "Deployments");
      }
      envs;
      /**
       * SDK provider for asset publishing (do not use for anything else).
       *
       * This SDK provider is only allowed to be used for that purpose, nothing else.
       *
       * It's not a different object, but the field name should imply that this
       * object should not be used directly, except to pass to asset handling routines.
       */
      assetSdkProvider;
      /**
       * SDK provider for passing to deployStack
       *
       * This SDK provider is only allowed to be used for that purpose, nothing else.
       *
       * It's not a different object, but the field name should imply that this
       * object should not be used directly, except to pass to `deployStack`.
       */
      deployStackSdkProvider;
      publisherCache = /* @__PURE__ */ new Map();
      _allowCrossAccountAssetPublishing;
      ioHelper;
      /**
       * Resolves the environment for a stack.
       */
      async resolveEnvironment(stack) {
        return this.envs.resolveStackEnvironment(stack);
      }
      async readCurrentTemplateWithNestedStacks(rootStackArtifact, retrieveProcessedTemplate = false) {
        const env2 = await this.envs.accessStackForLookupBestEffort(rootStackArtifact);
        return loadCurrentTemplateWithNestedStacks(rootStackArtifact, env2.sdk, retrieveProcessedTemplate);
      }
      async readCurrentTemplate(stackArtifact) {
        await this.ioHelper.defaults.debug(`Reading existing template for stack ${stackArtifact.displayName}.`);
        const env2 = await this.envs.accessStackForLookupBestEffort(stackArtifact);
        return loadCurrentTemplate(stackArtifact, env2.sdk);
      }
      async resourceIdentifierSummaries(stackArtifact) {
        await this.ioHelper.defaults.debug(`Retrieving template summary for stack ${stackArtifact.displayName}.`);
        const env2 = await this.envs.accessStackForReadOnlyStackOperations(stackArtifact);
        const cfn = env2.sdk.cloudFormation();
        await uploadStackTemplateAssets(stackArtifact, this);
        const builder = new AssetManifestBuilder();
        const cfnParam = await makeBodyParameter(
          this.ioHelper,
          stackArtifact,
          env2.resolvedEnvironment,
          builder,
          env2.resources
        );
        const addedAssets = builder.toManifest(stackArtifact.assembly.directory);
        for (const entry of addedAssets.entries) {
          await this.buildSingleAsset("no-version-validation", addedAssets, entry, {
            stack: stackArtifact
          });
          await this.publishSingleAsset(addedAssets, entry, {
            stack: stackArtifact
          });
        }
        const response = await cfn.getTemplateSummary(cfnParam);
        if (!response.ResourceIdentifierSummaries) {
          await this.ioHelper.defaults.debug('GetTemplateSummary API call did not return "ResourceIdentifierSummaries"');
        }
        return response.ResourceIdentifierSummaries ?? [];
      }
      async deployStack(options) {
        let deploymentMethod = options.deploymentMethod;
        if (options.changeSetName || options.execute !== void 0) {
          if (deploymentMethod) {
            throw new ToolkitError(
              "You cannot supply both 'deploymentMethod' and 'changeSetName/execute'. Supply one or the other."
            );
          }
          deploymentMethod = {
            method: "change-set",
            changeSetName: options.changeSetName,
            execute: options.execute
          };
        }
        const env2 = await this.envs.accessStackForMutableStackOperations(options.stack);
        await this.validateBootstrapStackVersion(
          options.stack.stackName,
          options.stack.requiresBootstrapStackVersion,
          options.stack.bootstrapStackVersionSsmParameter,
          env2.resources
        );
        const executionRoleArn = await env2.replacePlaceholders(options.roleArn ?? options.stack.cloudFormationExecutionRoleArn);
        return deployStack({
          stack: options.stack,
          resolvedEnvironment: env2.resolvedEnvironment,
          deployName: options.deployName,
          notificationArns: options.notificationArns,
          sdk: env2.sdk,
          sdkProvider: this.deployStackSdkProvider,
          roleArn: executionRoleArn,
          reuseAssets: options.reuseAssets,
          envResources: env2.resources,
          tags: options.tags,
          deploymentMethod,
          forceDeployment: options.forceDeployment,
          parameters: options.parameters,
          usePreviousParameters: options.usePreviousParameters,
          rollback: options.rollback,
          hotswap: options.hotswap,
          hotswapPropertyOverrides: options.hotswapPropertyOverrides,
          extraUserAgent: options.extraUserAgent,
          resourcesToImport: options.resourcesToImport,
          overrideTemplate: options.overrideTemplate,
          assetParallelism: options.assetParallelism
        }, this.ioHelper);
      }
      async rollbackStack(options) {
        let resourcesToSkip = options.orphanLogicalIds ?? [];
        if (options.orphanFailedResources && resourcesToSkip.length > 0) {
          throw new ToolkitError("Cannot combine --force with --orphan");
        }
        const env2 = await this.envs.accessStackForMutableStackOperations(options.stack);
        if (options.validateBootstrapStackVersion ?? true) {
          await this.validateBootstrapStackVersion(
            options.stack.stackName,
            BOOTSTRAP_STACK_VERSION_FOR_ROLLBACK,
            options.stack.bootstrapStackVersionSsmParameter,
            env2.resources
          );
        }
        const cfn = env2.sdk.cloudFormation();
        const deployName = options.stack.stackName;
        let maxLoops = 10;
        while (maxLoops--) {
          const cloudFormationStack = await CloudFormationStack.lookup(cfn, deployName);
          const stackArn = cloudFormationStack.stackId;
          const executionRoleArn = await env2.replacePlaceholders(options.roleArn ?? options.stack.cloudFormationExecutionRoleArn);
          switch (cloudFormationStack.stackStatus.rollbackChoice) {
            case 3 /* NONE */:
              await this.ioHelper.defaults.warn(`Stack ${deployName} does not need a rollback: ${cloudFormationStack.stackStatus}`);
              return { stackArn: cloudFormationStack.stackId, notInRollbackableState: true };
            case 0 /* START_ROLLBACK */:
              await this.ioHelper.defaults.debug(`Initiating rollback of stack ${deployName}`);
              await cfn.rollbackStack({
                StackName: deployName,
                RoleARN: executionRoleArn,
                ClientRequestToken: (0, import_crypto7.randomUUID)(),
                // Enabling this is just the better overall default, the only reason it isn't the upstream default is backwards compatibility
                RetainExceptOnCreate: true
              });
              break;
            case 1 /* CONTINUE_UPDATE_ROLLBACK */:
              if (options.orphanFailedResources) {
                const poller = new StackEventPoller(cfn, {
                  stackName: deployName,
                  stackStatuses: ["ROLLBACK_IN_PROGRESS", "UPDATE_ROLLBACK_IN_PROGRESS"]
                });
                await poller.poll();
                resourcesToSkip = poller.resourceErrors.filter((r3) => !r3.isStackEvent && r3.parentStackLogicalIds.length === 0).map((r3) => r3.event.LogicalResourceId ?? "");
              }
              const skipDescription = resourcesToSkip.length > 0 ? ` (orphaning: ${resourcesToSkip.join(", ")})` : "";
              await this.ioHelper.defaults.warn(`Continuing rollback of stack ${deployName}${skipDescription}`);
              await cfn.continueUpdateRollback({
                StackName: deployName,
                ClientRequestToken: (0, import_crypto7.randomUUID)(),
                RoleARN: executionRoleArn,
                ResourcesToSkip: resourcesToSkip
              });
              break;
            case 2 /* ROLLBACK_FAILED */:
              await this.ioHelper.defaults.warn(
                `Stack ${deployName} failed creation and rollback. This state cannot be rolled back. You can recreate this stack by running 'cdk deploy'.`
              );
              return { stackArn, notInRollbackableState: true };
            default:
              throw new ToolkitError(`Unexpected rollback choice: ${cloudFormationStack.stackStatus.rollbackChoice}`);
          }
          const monitor = new StackActivityMonitor({
            cfn,
            stack: options.stack,
            stackName: deployName,
            ioHelper: this.ioHelper
          });
          await monitor.start();
          let stackErrorMessage = void 0;
          let finalStackState = cloudFormationStack;
          try {
            const successStack = await stabilizeStack(cfn, this.ioHelper, deployName);
            if (!successStack) {
              throw new ToolkitError("Stack deploy failed (the stack disappeared while we were rolling it back)");
            }
            finalStackState = successStack;
            const errors = monitor.errors.join(", ");
            if (errors) {
              stackErrorMessage = errors;
            }
          } catch (e3) {
            stackErrorMessage = suffixWithErrors2(formatErrorMessage(e3), monitor.errors);
          } finally {
            await monitor.stop();
          }
          if (finalStackState.stackStatus.isRollbackSuccess || !stackErrorMessage) {
            return { stackArn, success: true };
          }
          if (finalStackState.stackStatus.rollbackChoice === 1 /* CONTINUE_UPDATE_ROLLBACK */ && options.orphanFailedResources) {
            continue;
          }
          throw new ToolkitError(
            `${stackErrorMessage} (fix problem and retry, or orphan these resources using --orphan or --force)`
          );
        }
        throw new ToolkitError(
          "Rollback did not finish after a large number of iterations; stopping because it looks like we're not making progress anymore. You can retry if rollback was progressing as expected."
        );
      }
      async destroyStack(options) {
        const env2 = await this.envs.accessStackForMutableStackOperations(options.stack);
        const executionRoleArn = await env2.replacePlaceholders(options.roleArn ?? options.stack.cloudFormationExecutionRoleArn);
        return destroyStack({
          sdk: env2.sdk,
          roleArn: executionRoleArn,
          stack: options.stack,
          deployName: options.deployName
        }, this.ioHelper);
      }
      async stackExists(options) {
        let env2;
        if (options.tryLookupRole) {
          env2 = await this.envs.accessStackForLookupBestEffort(options.stack);
        } else {
          env2 = await this.envs.accessStackForReadOnlyStackOperations(options.stack);
        }
        const stack = await CloudFormationStack.lookup(env2.sdk.cloudFormation(), options.deployName ?? options.stack.stackName);
        return stack.exists;
      }
      /**
       * Build a single asset from an asset manifest
       *
       * If an assert manifest artifact is given, the bootstrap stack version
       * will be validated according to the constraints in that manifest artifact.
       * If that is not necessary, `'no-version-validation'` can be passed.
       */
      // eslint-disable-next-line @stylistic/max-len
      async buildSingleAsset(assetArtifact, assetManifest, asset, options) {
        if (assetArtifact !== "no-version-validation") {
          const env2 = await this.envs.accessStackForReadOnlyStackOperations(options.stack);
          await this.validateBootstrapStackVersion(
            options.stack.stackName,
            assetArtifact.requiresBootstrapStackVersion,
            assetArtifact.bootstrapStackVersionSsmParameter,
            env2.resources
          );
        }
        const resolvedEnvironment = await this.envs.resolveStackEnvironment(options.stack);
        const publisher = this.cachedPublisher(assetManifest, resolvedEnvironment, options.stackName);
        await publisher.buildEntry(asset);
        if (publisher.hasFailures) {
          throw new ToolkitError(`Failed to build asset ${asset.displayName(false)}`);
        }
      }
      /**
       * Publish a single asset from an asset manifest
       */
      async publishSingleAsset(assetManifest, asset, options) {
        const stackEnv = await this.envs.resolveStackEnvironment(options.stack);
        const publisher = this.cachedPublisher(assetManifest, stackEnv, options.stackName);
        await publisher.publishEntry(asset, {
          allowCrossAccount: await this.allowCrossAccountAssetPublishingForEnv(options.stack),
          force: options.forcePublish
        });
        if (publisher.hasFailures) {
          throw new ToolkitError(`Failed to publish asset ${asset.displayName(true)}`);
        }
      }
      async allowCrossAccountAssetPublishingForEnv(stack) {
        if (this._allowCrossAccountAssetPublishing === void 0) {
          const env2 = await this.envs.accessStackForReadOnlyStackOperations(stack);
          this._allowCrossAccountAssetPublishing = await determineAllowCrossAccountAssetPublishing(env2.sdk, this.ioHelper, this.props.toolkitStackName);
        }
        return this._allowCrossAccountAssetPublishing;
      }
      /**
       * Return whether a single asset has been published already
       */
      async isSingleAssetPublished(assetManifest, asset, options) {
        const stackEnv = await this.envs.resolveStackEnvironment(options.stack);
        const publisher = this.cachedPublisher(assetManifest, stackEnv, options.stackName);
        return publisher.isEntryPublished(asset);
      }
      /**
       * Validate that the bootstrap stack has the right version for this stack
       *
       * Call into envResources.validateVersion, but prepend the stack name in case of failure.
       */
      async validateBootstrapStackVersion(stackName, requiresBootstrapStackVersion, bootstrapStackVersionSsmParameter, envResources) {
        try {
          await envResources.validateVersion(requiresBootstrapStackVersion, bootstrapStackVersionSsmParameter);
        } catch (e3) {
          throw new ToolkitError(`${stackName}: ${formatErrorMessage(e3)}`);
        }
      }
      cachedPublisher(assetManifest, env2, stackName) {
        const existing = this.publisherCache.get(assetManifest);
        if (existing) {
          return existing;
        }
        const prefix2 = stackName ? `${chalk11.bold(stackName)}: ` : "";
        const publisher = new cdk_assets.AssetPublishing(assetManifest, {
          // The AssetPublishing class takes care of role assuming etc, so it's okay to
          // give it a direct `SdkProvider`.
          aws: new PublishingAws(this.assetSdkProvider, env2),
          progressListener: new ParallelSafeAssetProgress(prefix2, this.ioHelper)
        });
        this.publisherCache.set(assetManifest, publisher);
        return publisher;
      }
    };
    ParallelSafeAssetProgress = class extends BasePublishProgressListener {
      static {
        __name(this, "ParallelSafeAssetProgress");
      }
      prefix;
      constructor(prefix2, ioHelper) {
        super(ioHelper);
        this.prefix = prefix2;
      }
      getMessage(type, event) {
        return `${this.prefix}${type}: ${event.message}`;
      }
    };
    __name(suffixWithErrors2, "suffixWithErrors");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/deployments/deployment-result.ts
function assertIsSuccessfulDeployStackResult(x3) {
  if (x3.type !== "did-deploy-stack") {
    throw new ToolkitError(`Unexpected deployStack result. This should not happen: ${JSON.stringify(x3)}. If you are seeing this error, please report it at https://github.com/aws/aws-cdk/issues/new/choose.`);
  }
}
var init_deployment_result = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/deployments/deployment-result.ts"() {
    "use strict";
    init_toolkit_error();
    __name(assertIsSuccessfulDeployStackResult, "assertIsSuccessfulDeployStackResult");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/deployments/index.ts
var init_deployments2 = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/deployments/index.ts"() {
    "use strict";
    init_deployments();
    init_deployment_result();
    init_checks();
    init_assets2();
    init_asset_manifest_builder();
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/bootstrap/deploy-bootstrap.ts
function bootstrapVersionFromTemplate(template) {
  const versionSources = [
    template.Outputs?.[BOOTSTRAP_VERSION_OUTPUT]?.Value,
    template.Resources?.[BOOTSTRAP_VERSION_RESOURCE]?.Properties?.Value
  ];
  for (const vs of versionSources) {
    if (typeof vs === "number") {
      return vs;
    }
    if (typeof vs === "string" && !isNaN(parseInt(vs, 10))) {
      return parseInt(vs, 10);
    }
  }
  return 0;
}
function bootstrapVariantFromTemplate(template) {
  return template.Parameters?.[BOOTSTRAP_VARIANT_PARAMETER]?.Default ?? DEFAULT_BOOTSTRAP_VARIANT;
}
var os5, path16, import_cloud_assembly_schema4, import_cx_api6, fs15, BootstrapStack;
var init_deploy_bootstrap = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/bootstrap/deploy-bootstrap.ts"() {
    "use strict";
    os5 = __toESM(require("os"));
    path16 = __toESM(require("path"));
    import_cloud_assembly_schema4 = __toESM(require_lib2());
    import_cx_api6 = __toESM(require_lib3());
    fs15 = __toESM(require_lib4());
    init_bootstrap_props();
    init_deployments2();
    init_deploy_stack();
    init_environment();
    init_plugin2();
    init_toolkit_info();
    BootstrapStack = class _BootstrapStack {
      constructor(sdkProvider, sdk, resolvedEnvironment, toolkitStackName, currentToolkitInfo, ioHelper) {
        this.sdkProvider = sdkProvider;
        this.sdk = sdk;
        this.resolvedEnvironment = resolvedEnvironment;
        this.toolkitStackName = toolkitStackName;
        this.currentToolkitInfo = currentToolkitInfo;
        this.ioHelper = ioHelper;
      }
      static {
        __name(this, "BootstrapStack");
      }
      static async lookup(sdkProvider, environment, toolkitStackName, ioHelper) {
        toolkitStackName = toolkitStackName ?? DEFAULT_TOOLKIT_STACK_NAME;
        const resolvedEnvironment = await sdkProvider.resolveEnvironment(environment);
        const sdk = (await sdkProvider.forEnvironment(resolvedEnvironment, 1 /* ForWriting */)).sdk;
        const currentToolkitInfo = await ToolkitInfo.lookup(resolvedEnvironment, sdk, ioHelper, toolkitStackName);
        return new _BootstrapStack(sdkProvider, sdk, resolvedEnvironment, toolkitStackName, currentToolkitInfo, ioHelper);
      }
      get parameters() {
        return this.currentToolkitInfo.found ? this.currentToolkitInfo.bootstrapStack.parameters : {};
      }
      get terminationProtection() {
        return this.currentToolkitInfo.found ? this.currentToolkitInfo.bootstrapStack.terminationProtection : void 0;
      }
      async partition() {
        return (await this.sdk.currentAccount()).partition;
      }
      /**
       * Perform the actual deployment of a bootstrap stack, given a template and some parameters
       */
      async update(template, parameters, options) {
        if (this.currentToolkitInfo.found && !options.forceDeployment) {
          const abortResponse = {
            type: "did-deploy-stack",
            noOp: true,
            outputs: {},
            stackArn: this.currentToolkitInfo.bootstrapStack.stackId
          };
          const currentVariant = this.currentToolkitInfo.variant;
          const newVariant = bootstrapVariantFromTemplate(template);
          if (currentVariant !== newVariant) {
            await this.ioHelper.defaults.warn(
              `Bootstrap stack already exists, containing '${currentVariant}'. Not overwriting it with a template containing '${newVariant}' (use --force if you intend to overwrite)`
            );
            return abortResponse;
          }
          const newVersion = bootstrapVersionFromTemplate(template);
          const currentVersion = this.currentToolkitInfo.version;
          if (newVersion < currentVersion) {
            await this.ioHelper.defaults.warn(
              `Bootstrap stack already at version ${currentVersion}. Not downgrading it to version ${newVersion} (use --force if you intend to downgrade)`
            );
            if (newVersion === 0) {
              await this.ioHelper.defaults.warn(
                "(Did you set the '@aws-cdk/core:newStyleStackSynthesis' feature flag in cdk.json?)"
              );
            }
            return abortResponse;
          }
        }
        const outdir = await fs15.mkdtemp(path16.join(os5.tmpdir(), "cdk-bootstrap"));
        const builder = new import_cx_api6.CloudAssemblyBuilder(outdir);
        const templateFile = `${this.toolkitStackName}.template.json`;
        await fs15.writeJson(path16.join(builder.outdir, templateFile), template, {
          spaces: 2
        });
        builder.addArtifact(this.toolkitStackName, {
          type: import_cloud_assembly_schema4.ArtifactType.AWS_CLOUDFORMATION_STACK,
          environment: import_cx_api6.EnvironmentUtils.format(this.resolvedEnvironment.account, this.resolvedEnvironment.region),
          properties: {
            templateFile,
            terminationProtection: options.terminationProtection ?? false
          }
        });
        const assembly = builder.buildAssembly();
        const ret = await deployStack({
          stack: assembly.getStackByName(this.toolkitStackName),
          resolvedEnvironment: this.resolvedEnvironment,
          sdk: this.sdk,
          sdkProvider: this.sdkProvider,
          forceDeployment: options.forceDeployment,
          roleArn: options.roleArn,
          tags: options.tags,
          deploymentMethod: { method: "change-set", execute: options.execute },
          parameters,
          usePreviousParameters: options.usePreviousParameters ?? true,
          // Obviously we can't need a bootstrap stack to deploy a bootstrap stack
          envResources: new NoBootstrapStackEnvironmentResources(this.resolvedEnvironment, this.sdk, this.ioHelper)
        }, this.ioHelper);
        assertIsSuccessfulDeployStackResult(ret);
        return ret;
      }
    };
    __name(bootstrapVersionFromTemplate, "bootstrapVersionFromTemplate");
    __name(bootstrapVariantFromTemplate, "bootstrapVariantFromTemplate");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/bootstrap/legacy-template.ts
function legacyBootstrapTemplate(params) {
  return {
    Description: "The CDK Toolkit Stack. It was created by `cdk bootstrap` and manages resources necessary for managing your Cloud Applications with AWS CDK.",
    Conditions: {
      UsePublicAccessBlockConfiguration: {
        "Fn::Equals": [
          params.publicAccessBlockConfiguration || params.publicAccessBlockConfiguration === void 0 ? "true" : "false",
          "true"
        ]
      }
    },
    Resources: {
      StagingBucket: {
        Type: "AWS::S3::Bucket",
        Properties: {
          BucketName: params.bucketName,
          AccessControl: "Private",
          BucketEncryption: {
            ServerSideEncryptionConfiguration: [{
              ServerSideEncryptionByDefault: {
                SSEAlgorithm: "aws:kms",
                KMSMasterKeyID: params.kmsKeyId
              }
            }]
          },
          PublicAccessBlockConfiguration: {
            "Fn::If": [
              "UsePublicAccessBlockConfiguration",
              {
                BlockPublicAcls: true,
                BlockPublicPolicy: true,
                IgnorePublicAcls: true,
                RestrictPublicBuckets: true
              },
              { Ref: "AWS::NoValue" }
            ]
          }
        }
      },
      StagingBucketPolicy: {
        Type: "AWS::S3::BucketPolicy",
        Properties: {
          Bucket: { Ref: "StagingBucket" },
          PolicyDocument: {
            Id: "AccessControl",
            Version: "2012-10-17",
            Statement: [
              {
                Sid: "AllowSSLRequestsOnly",
                Action: "s3:*",
                Effect: "Deny",
                Resource: [
                  { "Fn::Sub": "${StagingBucket.Arn}" },
                  { "Fn::Sub": "${StagingBucket.Arn}/*" }
                ],
                Condition: {
                  Bool: { "aws:SecureTransport": "false" }
                },
                Principal: "*"
              }
            ]
          }
        }
      }
    },
    Outputs: {
      [BUCKET_NAME_OUTPUT]: {
        Description: "The name of the S3 bucket owned by the CDK toolkit stack",
        Value: { Ref: "StagingBucket" }
      },
      [BUCKET_DOMAIN_NAME_OUTPUT]: {
        Description: "The domain name of the S3 bucket owned by the CDK toolkit stack",
        Value: { "Fn::GetAtt": ["StagingBucket", "RegionalDomainName"] }
      }
    }
  };
}
var init_legacy_template = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/bootstrap/legacy-template.ts"() {
    "use strict";
    init_bootstrap_props();
    __name(legacyBootstrapTemplate, "legacyBootstrapTemplate");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/bootstrap/bootstrap-environment.ts
function splitCfnArray(xs) {
  if (xs === "" || xs === void 0) {
    return [];
  }
  return xs.split(",");
}
function intersection(xs, ys) {
  return new Set(Array.from(xs).filter((x3) => ys.has(x3)));
}
var path17, Bootstrapper, USE_AWS_MANAGED_KEY, CREATE_NEW_KEY, CDK_BOOTSTRAP_PERMISSIONS_BOUNDARY;
var init_bootstrap_environment = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/bootstrap/bootstrap-environment.ts"() {
    "use strict";
    path17 = __toESM(require("path"));
    init_deploy_bootstrap();
    init_legacy_template();
    init_toolkit_error();
    init_util3();
    init_plugin2();
    init_toolkit_info();
    Bootstrapper = class {
      constructor(source = { source: "default" }, ioHelper) {
        this.source = source;
        this.ioHelper = ioHelper;
      }
      static {
        __name(this, "Bootstrapper");
      }
      ioHelper;
      bootstrapEnvironment(environment, sdkProvider, options = {}) {
        switch (this.source.source) {
          case "legacy":
            return this.legacyBootstrap(environment, sdkProvider, options);
          case "default":
            return this.modernBootstrap(environment, sdkProvider, options);
          case "custom":
            return this.customBootstrap(environment, sdkProvider, options);
        }
      }
      async showTemplate(json) {
        const template = await this.loadTemplate();
        process.stdout.write(`${serializeStructure(template, json)}
`);
      }
      /**
       * Deploy legacy bootstrap stack
       *
       */
      async legacyBootstrap(environment, sdkProvider, options = {}) {
        const params = options.parameters ?? {};
        if (params.trustedAccounts?.length) {
          throw new ToolkitError("--trust can only be passed for the modern bootstrap experience.");
        }
        if (params.cloudFormationExecutionPolicies?.length) {
          throw new ToolkitError("--cloudformation-execution-policies can only be passed for the modern bootstrap experience.");
        }
        if (params.createCustomerMasterKey !== void 0) {
          throw new ToolkitError("--bootstrap-customer-key can only be passed for the modern bootstrap experience.");
        }
        if (params.qualifier) {
          throw new ToolkitError("--qualifier can only be passed for the modern bootstrap experience.");
        }
        const toolkitStackName = options.toolkitStackName ?? DEFAULT_TOOLKIT_STACK_NAME;
        const current = await BootstrapStack.lookup(sdkProvider, environment, toolkitStackName, this.ioHelper);
        return current.update(
          await this.loadTemplate(params),
          {},
          {
            ...options,
            terminationProtection: options.terminationProtection ?? current.terminationProtection
          }
        );
      }
      /**
       * Deploy CI/CD-ready bootstrap stack from template
       *
       */
      async modernBootstrap(environment, sdkProvider, options = {}) {
        const params = options.parameters ?? {};
        const bootstrapTemplate = await this.loadTemplate();
        const toolkitStackName = options.toolkitStackName ?? DEFAULT_TOOLKIT_STACK_NAME;
        const current = await BootstrapStack.lookup(sdkProvider, environment, toolkitStackName, this.ioHelper);
        const partition3 = await current.partition();
        if (params.createCustomerMasterKey !== void 0 && params.kmsKeyId) {
          throw new ToolkitError(
            "You cannot pass '--bootstrap-kms-key-id' and '--bootstrap-customer-key' together. Specify one or the other"
          );
        }
        const allTrusted = /* @__PURE__ */ new Set([
          ...params.trustedAccounts ?? [],
          ...params.trustedAccountsForLookup ?? []
        ]);
        const invalid = intersection(allTrusted, new Set(params.untrustedAccounts));
        if (invalid.size > 0) {
          throw new ToolkitError(`Accounts cannot be both trusted and untrusted. Found: ${[...invalid].join(",")}`);
        }
        const removeUntrusted = /* @__PURE__ */ __name((accounts) => accounts.filter((acc) => !params.untrustedAccounts?.map(String).includes(String(acc))), "removeUntrusted");
        const trustedAccounts = removeUntrusted(params.trustedAccounts ?? splitCfnArray(current.parameters.TrustedAccounts));
        await this.ioHelper.defaults.info(
          `Trusted accounts for deployment: ${trustedAccounts.length > 0 ? trustedAccounts.join(", ") : "(none)"}`
        );
        const trustedAccountsForLookup = removeUntrusted(
          params.trustedAccountsForLookup ?? splitCfnArray(current.parameters.TrustedAccountsForLookup)
        );
        await this.ioHelper.defaults.info(
          `Trusted accounts for lookup: ${trustedAccountsForLookup.length > 0 ? trustedAccountsForLookup.join(", ") : "(none)"}`
        );
        const cloudFormationExecutionPolicies = params.cloudFormationExecutionPolicies ?? splitCfnArray(current.parameters.CloudFormationExecutionPolicies);
        if (trustedAccounts.length === 0 && cloudFormationExecutionPolicies.length === 0) {
          const implicitPolicy = `arn:${partition3}:iam::aws:policy/AdministratorAccess`;
          await this.ioHelper.defaults.warn(
            `Using default execution policy of '${implicitPolicy}'. Pass '--cloudformation-execution-policies' to customize.`
          );
        } else if (cloudFormationExecutionPolicies.length === 0) {
          throw new ToolkitError(
            `Please pass '--cloudformation-execution-policies' when using '--trust' to specify deployment permissions. Try a managed policy of the form 'arn:${partition3}:iam::aws:policy/<PolicyName>'.`
          );
        } else {
          await this.ioHelper.defaults.info(`Execution policies: ${cloudFormationExecutionPolicies.join(", ")}`);
        }
        const currentKmsKeyId = current.parameters.FileAssetsBucketKmsKeyId;
        const kmsKeyId = params.kmsKeyId ?? (params.createCustomerMasterKey === true ? CREATE_NEW_KEY : params.createCustomerMasterKey === false || currentKmsKeyId === void 0 ? USE_AWS_MANAGED_KEY : void 0);
        const currentPermissionsBoundary = current.parameters.InputPermissionsBoundary || void 0;
        const inputPolicyName = params.examplePermissionsBoundary ? CDK_BOOTSTRAP_PERMISSIONS_BOUNDARY : params.customPermissionsBoundary;
        let policyName;
        if (inputPolicyName) {
          const sdk = (await sdkProvider.forEnvironment(environment, 1 /* ForWriting */)).sdk;
          policyName = await this.getPolicyName(environment, sdk, inputPolicyName, partition3, params);
        }
        if (currentPermissionsBoundary !== policyName) {
          if (!currentPermissionsBoundary) {
            await this.ioHelper.defaults.warn(
              `Adding new permissions boundary ${policyName}`
            );
          } else if (!policyName) {
            await this.ioHelper.defaults.warn(
              `Removing existing permissions boundary ${currentPermissionsBoundary}`
            );
          } else {
            await this.ioHelper.defaults.warn(
              `Changing permissions boundary from ${currentPermissionsBoundary} to ${policyName}`
            );
          }
        }
        const bootstrapTemplateParameters = {
          FileAssetsBucketName: params.bucketName,
          FileAssetsBucketKmsKeyId: kmsKeyId,
          // Empty array becomes empty string
          TrustedAccounts: trustedAccounts.join(","),
          TrustedAccountsForLookup: trustedAccountsForLookup.join(","),
          CloudFormationExecutionPolicies: cloudFormationExecutionPolicies.join(","),
          Qualifier: params.qualifier,
          PublicAccessBlockConfiguration: params.publicAccessBlockConfiguration || params.publicAccessBlockConfiguration === void 0 ? "true" : "false",
          InputPermissionsBoundary: policyName
        };
        const templateParameters = await this.templateParameters();
        if (params.denyExternalId !== void 0) {
          if (!templateParameters.includes("DenyExternalId")) {
            throw new ToolkitError("The selected bootstrap template does not accept the DenyExternalId parameter");
          }
          bootstrapTemplateParameters.DenyExternalId = `${params.denyExternalId}`;
        }
        return current.update(bootstrapTemplate, bootstrapTemplateParameters, {
          ...options,
          terminationProtection: options.terminationProtection ?? current.terminationProtection
        });
      }
      async getPolicyName(environment, sdk, permissionsBoundary, partition3, params) {
        if (permissionsBoundary !== CDK_BOOTSTRAP_PERMISSIONS_BOUNDARY) {
          this.validatePolicyName(permissionsBoundary);
          return Promise.resolve(permissionsBoundary);
        }
        const arn = await this.getExamplePermissionsBoundary(
          params.qualifier ?? "hnb659fds",
          partition3,
          environment.account,
          sdk
        );
        const policyName = arn.split("/").pop();
        if (!policyName) {
          throw new ToolkitError("Could not retrieve the example permission boundary!");
        }
        return Promise.resolve(policyName);
      }
      async getExamplePermissionsBoundary(qualifier, partition3, account, sdk) {
        const iam = sdk.iam();
        let policyName = `cdk-${qualifier}-permissions-boundary`;
        const arn = `arn:${partition3}:iam::${account}:policy/${policyName}`;
        try {
          let getPolicyResp = await iam.getPolicy({ PolicyArn: arn });
          if (getPolicyResp.Policy) {
            return arn;
          }
        } catch (e3) {
          if (e3.name === "NoSuchEntity") {
          } else {
            throw e3;
          }
        }
        const policyDoc = {
          Version: "2012-10-17",
          Statement: [
            {
              Action: ["*"],
              Resource: "*",
              Effect: "Allow",
              Sid: "ExplicitAllowAll"
            },
            {
              Condition: {
                StringEquals: {
                  "iam:PermissionsBoundary": `arn:${partition3}:iam::${account}:policy/cdk-${qualifier}-permissions-boundary`
                }
              },
              Action: [
                "iam:CreateUser",
                "iam:CreateRole",
                "iam:PutRolePermissionsBoundary",
                "iam:PutUserPermissionsBoundary"
              ],
              Resource: "*",
              Effect: "Allow",
              Sid: "DenyAccessIfRequiredPermBoundaryIsNotBeingApplied"
            },
            {
              Action: [
                "iam:CreatePolicyVersion",
                "iam:DeletePolicy",
                "iam:DeletePolicyVersion",
                "iam:SetDefaultPolicyVersion"
              ],
              Resource: `arn:${partition3}:iam::${account}:policy/cdk-${qualifier}-permissions-boundary`,
              Effect: "Deny",
              Sid: "DenyPermBoundaryIAMPolicyAlteration"
            },
            {
              Action: ["iam:DeleteUserPermissionsBoundary", "iam:DeleteRolePermissionsBoundary"],
              Resource: "*",
              Effect: "Deny",
              Sid: "DenyRemovalOfPermBoundaryFromAnyUserOrRole"
            }
          ]
        };
        const request2 = {
          PolicyName: policyName,
          PolicyDocument: JSON.stringify(policyDoc)
        };
        const createPolicyResponse = await iam.createPolicy(request2);
        if (createPolicyResponse.Policy?.Arn) {
          return createPolicyResponse.Policy.Arn;
        } else {
          throw new ToolkitError(`Could not retrieve the example permission boundary ${arn}!`);
        }
      }
      validatePolicyName(permissionsBoundary) {
        const regexp = /[\w+\/=,.@-]+/;
        const matches = regexp.exec(permissionsBoundary);
        if (!(matches && matches.length === 1 && matches[0] === permissionsBoundary)) {
          throw new ToolkitError(`The permissions boundary name ${permissionsBoundary} does not match the IAM conventions.`);
        }
      }
      async customBootstrap(environment, sdkProvider, options = {}) {
        const version2 = bootstrapVersionFromTemplate(await this.loadTemplate());
        if (version2 === 0) {
          return this.legacyBootstrap(environment, sdkProvider, options);
        } else {
          return this.modernBootstrap(environment, sdkProvider, options);
        }
      }
      /**
       * Return the set of parameter names accepted by the current bootstrapping template
       */
      async templateParameters(legacyParams = {}) {
        const template = await this.loadTemplate(legacyParams);
        return Object.keys(template.Parameters ?? {});
      }
      async loadTemplate(legacyParams = {}) {
        switch (this.source.source) {
          case "custom":
            return loadStructuredFile(this.source.templateFile);
          case "default":
            return loadStructuredFile(path17.join(bundledPackageRootDir(__dirname), "lib", "api", "bootstrap", "bootstrap-template.yaml"));
          case "legacy":
            return legacyBootstrapTemplate(legacyParams);
        }
      }
    };
    USE_AWS_MANAGED_KEY = "AWS_MANAGED_KEY";
    CREATE_NEW_KEY = "";
    CDK_BOOTSTRAP_PERMISSIONS_BOUNDARY = "CDK_BOOTSTRAP_PERMISSIONS_BOUNDARY";
    __name(splitCfnArray, "splitCfnArray");
    __name(intersection, "intersection");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/bootstrap/index.ts
var init_bootstrap = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/bootstrap/index.ts"() {
    "use strict";
    init_bootstrap_environment();
    init_bootstrap_props();
    init_legacy_template();
  }
});

// lib/api/bootstrap.ts
var init_bootstrap2 = __esm({
  "lib/api/bootstrap.ts"() {
    "use strict";
    init_bootstrap();
  }
});

// lib/api/cloudformation.ts
var init_cloudformation3 = __esm({
  "lib/api/cloudformation.ts"() {
    "use strict";
    init_cloudformation2();
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/cloud-assembly/stack-selector.ts
var StackSelectionStrategy, ExpandStackSelection;
var init_stack_selector = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/cloud-assembly/stack-selector.ts"() {
    "use strict";
    StackSelectionStrategy = /* @__PURE__ */ ((StackSelectionStrategy2) => {
      StackSelectionStrategy2["ALL_STACKS"] = "all-stacks";
      StackSelectionStrategy2["MAIN_ASSEMBLY"] = "main-assembly";
      StackSelectionStrategy2["ONLY_SINGLE"] = "only-single";
      StackSelectionStrategy2["PATTERN_MATCH"] = "pattern-match";
      StackSelectionStrategy2["PATTERN_MUST_MATCH"] = "pattern-must-match";
      StackSelectionStrategy2["PATTERN_MUST_MATCH_SINGLE"] = "pattern-must-match-single";
      return StackSelectionStrategy2;
    })(StackSelectionStrategy || {});
    ExpandStackSelection = /* @__PURE__ */ ((ExpandStackSelection2) => {
      ExpandStackSelection2["NONE"] = "none";
      ExpandStackSelection2["UPSTREAM"] = "upstream";
      ExpandStackSelection2["DOWNSTREAM"] = "downstream";
      return ExpandStackSelection2;
    })(ExpandStackSelection || {});
  }
});

// ../@aws-cdk/toolkit-lib/lib/private/dispose-polyfill.ts
var require_dispose_polyfill = __commonJS({
  "../@aws-cdk/toolkit-lib/lib/private/dispose-polyfill.ts"() {
    "use strict";
    Symbol.dispose ??= Symbol("Symbol.dispose");
    Symbol.asyncDispose ??= Symbol("Symbol.asyncDispose");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/cloud-assembly/private/borrowed-assembly.ts
var import_dispose_polyfill, BorrowedAssembly;
var init_borrowed_assembly = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/cloud-assembly/private/borrowed-assembly.ts"() {
    "use strict";
    import_dispose_polyfill = __toESM(require_dispose_polyfill());
    BorrowedAssembly = class {
      constructor(cloudAssembly) {
        this.cloudAssembly = cloudAssembly;
      }
      static {
        __name(this, "BorrowedAssembly");
      }
      async _unlock() {
      }
      async dispose() {
      }
      async [Symbol.asyncDispose]() {
      }
    };
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/cloud-assembly/cached-source.ts
var import_dispose_polyfill2, CachedCloudAssembly;
var init_cached_source = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/cloud-assembly/cached-source.ts"() {
    "use strict";
    import_dispose_polyfill2 = __toESM(require_dispose_polyfill());
    init_borrowed_assembly();
    CachedCloudAssembly = class {
      static {
        __name(this, "CachedCloudAssembly");
      }
      asm;
      constructor(asm) {
        this.asm = asm;
      }
      get cloudAssembly() {
        return this.asm.cloudAssembly;
      }
      async produce() {
        return new BorrowedAssembly(this.asm.cloudAssembly);
      }
      _unlock() {
        return this.asm._unlock();
      }
      dispose() {
        return this.asm.dispose();
      }
      [Symbol.asyncDispose]() {
        return this.dispose();
      }
    };
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/settings.ts
function expandHomeDir(x3) {
  if (x3.startsWith("~")) {
    return fs_path.join(os6.homedir(), x3.slice(1));
  }
  return x3;
}
function stripTransientValues(obj) {
  const ret = {};
  for (const [key, value] of Object.entries(obj)) {
    if (!isTransientValue(value)) {
      ret[key] = value;
    }
  }
  return ret;
}
function isTransientValue(value) {
  return typeof value === "object" && value !== null && value[TRANSIENT_CONTEXT_KEY];
}
var os6, fs_path, fs16, TRANSIENT_CONTEXT_KEY, Settings;
var init_settings = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/settings.ts"() {
    "use strict";
    os6 = __toESM(require("os"));
    fs_path = __toESM(require("path"));
    fs16 = __toESM(require_lib4());
    init_toolkit_error();
    init_util3();
    TRANSIENT_CONTEXT_KEY = "$dontSaveContext";
    Settings = class _Settings {
      constructor(settings = {}, readOnly = false) {
        this.settings = settings;
        this.readOnly = readOnly;
      }
      static {
        __name(this, "Settings");
      }
      static mergeAll(...settings) {
        let ret = new _Settings();
        for (const setting of settings) {
          ret = ret.merge(setting);
        }
        return ret;
      }
      async save(fileName) {
        const expanded = expandHomeDir(fileName);
        await fs16.writeJson(expanded, stripTransientValues(this.settings), {
          spaces: 2
        });
        return this;
      }
      get all() {
        return this.get([]);
      }
      merge(other) {
        return new _Settings(deepMerge(this.settings, other.settings));
      }
      subSettings(keyPrefix) {
        return new _Settings(this.get(keyPrefix) || {}, false);
      }
      makeReadOnly() {
        return new _Settings(this.settings, true);
      }
      clear() {
        if (this.readOnly) {
          throw new ToolkitError("Cannot clear(): settings are readonly");
        }
        this.settings = {};
      }
      get empty() {
        return Object.keys(this.settings).length === 0;
      }
      get(path38) {
        return deepClone(deepGet(this.settings, path38));
      }
      set(path38, value) {
        if (this.readOnly) {
          throw new ToolkitError(`Can't set ${path38}: settings object is readonly`);
        }
        if (path38.length === 0) {
          this.settings = value;
        } else {
          deepSet(this.settings, path38, value);
        }
        return this;
      }
      unset(path38) {
        this.set(path38, void 0);
      }
    };
    __name(expandHomeDir, "expandHomeDir");
    __name(stripTransientValues, "stripTransientValues");
    __name(isTransientValue, "isTransientValue");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/context.ts
var PROJECT_CONTEXT, Context;
var init_context2 = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/context.ts"() {
    "use strict";
    init_settings();
    init_toolkit_error();
    init_settings();
    PROJECT_CONTEXT = "cdk.context.json";
    Context = class {
      static {
        __name(this, "Context");
      }
      bags;
      fileNames;
      constructor(...bags) {
        this.bags = bags.length > 0 ? bags.map((b3) => b3.bag) : [new Settings()];
        this.fileNames = bags.length > 0 ? bags.map((b3) => b3.fileName) : ["default"];
      }
      get keys() {
        return Object.keys(this.all);
      }
      has(key) {
        return this.keys.indexOf(key) > -1;
      }
      get all() {
        let ret = new Settings();
        for (const bag of [...this.bags].reverse()) {
          ret = ret.merge(bag);
        }
        return ret.all;
      }
      get(key) {
        for (const bag of this.bags) {
          const v6 = bag.get([key]);
          if (v6 !== void 0) {
            return v6;
          }
        }
        return void 0;
      }
      set(key, value) {
        for (const bag of this.bags) {
          if (bag.readOnly) {
            continue;
          }
          bag.set([key], value);
          value = void 0;
        }
      }
      unset(key) {
        this.set(key, void 0);
      }
      clear() {
        for (const key of this.keys) {
          this.unset(key);
        }
      }
      /**
       * Save a specific context file
       */
      async save(fileName) {
        const index = this.fileNames.indexOf(fileName);
        if (index === -1) {
          return this;
        }
        const bag = this.bags[index];
        if (bag.readOnly) {
          throw new ToolkitError(`Context file ${fileName} is read only!`);
        }
        await bag.save(fileName);
        return this;
      }
    };
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/cloud-assembly/context-store.ts
function persistableContext(context) {
  return Object.fromEntries(Object.entries(context).filter(([_3, value]) => !isTransientValue2(value)));
}
function isTransientValue2(x3) {
  return x3 && typeof x3 === "object" && x3[TRANSIENT_CONTEXT_KEY];
}
async function settingsFromFile(filename) {
  try {
    const data3 = JSON.parse(await import_fs5.promises.readFile(filename, "utf-8"));
    return new Settings(data3);
  } catch (e3) {
    if (e3.code === "ENOENT") {
      return new Settings();
    }
    throw e3;
  }
}
var import_fs5, os7, path18, CdkAppMultiContext, FileContext, MemoryContext;
var init_context_store = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/cloud-assembly/context-store.ts"() {
    "use strict";
    import_fs5 = require("fs");
    os7 = __toESM(require("os"));
    path18 = __toESM(require("path"));
    init_toolkit_error();
    init_context2();
    init_settings();
    CdkAppMultiContext = class {
      constructor(appDirectory, commandlineContext) {
        this.commandlineContext = commandlineContext;
        this.configContextFile = path18.join(appDirectory, "cdk.json");
        this.projectContextFile = path18.join(appDirectory, "cdk.context.json");
        this.userConfigFile = path18.join(os7.homedir() ?? "/tmp", ".cdk.json");
      }
      static {
        __name(this, "CdkAppMultiContext");
      }
      _context;
      configContextFile;
      projectContextFile;
      userConfigFile;
      async read() {
        const context = await this.asyncInitialize();
        return context.all;
      }
      async update(updates) {
        const context = await this.asyncInitialize();
        for (const [key, value] of Object.entries(updates)) {
          context.set(key, value);
        }
        await context.save(this.projectContextFile);
      }
      /**
       * Initialize the `Context` object
       *
       * This code all exists to reuse code that's already there, to minimize
       * the chances of the new code behaving subtly differently than the
       * old code.
       *
       * It might be most of this is unnecessary now...
       */
      async asyncInitialize() {
        if (this._context) {
          return this._context;
        }
        const contextSources = [
          { bag: new Settings(this.commandlineContext, true) },
          {
            fileName: this.configContextFile,
            bag: (await settingsFromFile(this.configContextFile)).subSettings(["context"]).makeReadOnly()
          },
          {
            fileName: this.projectContextFile,
            bag: await settingsFromFile(this.projectContextFile)
          },
          {
            fileName: this.userConfigFile,
            bag: (await settingsFromFile(this.userConfigFile)).subSettings(["context"]).makeReadOnly()
          }
        ];
        this._context = new Context(...contextSources);
        return this._context;
      }
    };
    FileContext = class {
      constructor(fileName) {
        this.fileName = fileName;
      }
      static {
        __name(this, "FileContext");
      }
      _cache;
      async read() {
        if (!this._cache) {
          try {
            this._cache = JSON.parse(await import_fs5.promises.readFile(this.fileName, "utf-8"));
          } catch (e3) {
            if (e3.code === "ENOENT") {
              this._cache = {};
            } else {
              throw e3;
            }
          }
        }
        if (!this._cache || typeof this._cache !== "object") {
          throw new ToolkitError(`${this.fileName} must contain an object, got: ${JSON.stringify(this._cache)}`);
        }
        return this._cache;
      }
      async update(updates) {
        this._cache = {
          ...await this.read(),
          ...updates
        };
        const persistable = persistableContext(this._cache);
        await import_fs5.promises.writeFile(this.fileName, JSON.stringify(persistable, void 0, 2), "utf-8");
      }
    };
    MemoryContext = class {
      static {
        __name(this, "MemoryContext");
      }
      context = {};
      constructor(initialContext) {
        this.context = { ...initialContext };
      }
      read() {
        return Promise.resolve(this.context);
      }
      update(updates) {
        this.context = {
          ...this.context,
          ...updates
        };
        return Promise.resolve();
      }
    };
    __name(persistableContext, "persistableContext");
    __name(isTransientValue2, "isTransientValue");
    __name(settingsFromFile, "settingsFromFile");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/rwlock.ts
async function readFileIfExists(filename) {
  try {
    return await import_fs6.promises.readFile(filename, { encoding: "utf-8" });
  } catch (e3) {
    if (e3.code === "ENOENT") {
      return void 0;
    }
    throw e3;
  }
}
async function writeFileAtomic(filename, contents) {
  await import_fs6.promises.mkdir(path19.dirname(filename), { recursive: true });
  const tmpFile = `${filename}.${process.pid}_${++tmpCounter}`;
  await import_fs6.promises.writeFile(tmpFile, contents, { encoding: "utf-8" });
  await import_fs6.promises.rename(tmpFile, filename);
}
async function deleteFile(filename) {
  try {
    await import_fs6.promises.unlink(filename);
  } catch (e3) {
    if (e3.code === "ENOENT") {
      return;
    }
    throw e3;
  }
}
function processExists(pid) {
  try {
    process.kill(pid, 0);
    return true;
  } catch (e3) {
    return false;
  }
}
var import_fs6, path19, RWLock, tmpCounter;
var init_rwlock = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/rwlock.ts"() {
    "use strict";
    import_fs6 = require("fs");
    path19 = __toESM(require("path"));
    init_toolkit_error();
    RWLock = class {
      constructor(directory) {
        this.directory = directory;
        this.pidString = `${process.pid}`;
        this.writerFile = path19.join(this.directory, "synth.lock");
      }
      static {
        __name(this, "RWLock");
      }
      pidString;
      writerFile;
      readCounter = 0;
      /**
       * Acquire a writer lock.
       *
       * No other readers or writers must exist for the given directory.
       */
      async acquireWrite() {
        await this.assertNoOtherWriters();
        const readers = await this._currentReaders();
        if (readers.length > 0) {
          throw new ToolkitError(`Other CLIs (PID=${readers}) are currently reading from ${this.directory}. Invoke the CLI in sequence, or use '--output' to synth into different directories.`);
        }
        await writeFileAtomic(this.writerFile, this.pidString);
        let released = false;
        return {
          release: /* @__PURE__ */ __name(async () => {
            if (!released) {
              await deleteFile(this.writerFile);
              released = true;
            }
          }, "release"),
          convertToReaderLock: /* @__PURE__ */ __name(async () => {
            const ret = await this.doAcquireRead();
            await deleteFile(this.writerFile);
            return ret;
          }, "convertToReaderLock")
        };
      }
      /**
       * Acquire a read lock
       *
       * Will fail if there are any writers.
       */
      async acquireRead() {
        await this.assertNoOtherWriters();
        return this.doAcquireRead();
      }
      /**
       * Obtains the name fo a (new) `readerFile` to use. This includes a counter so
       * that if multiple threads of the same PID attempt to concurrently acquire
       * the same lock, they're guaranteed to use a different reader file name (only
       * one thread will ever execute JS code at once, guaranteeing the readCounter
       * is incremented "atomically" from the point of view of this PID.).
       */
      readerFile() {
        return path19.join(this.directory, `read.${this.pidString}.${++this.readCounter}.lock`);
      }
      /**
       * Do the actual acquiring of a read lock.
       */
      async doAcquireRead() {
        const readerFile = this.readerFile();
        await writeFileAtomic(readerFile, this.pidString);
        let released = false;
        return {
          release: /* @__PURE__ */ __name(async () => {
            if (!released) {
              await deleteFile(readerFile);
              released = true;
            }
          }, "release")
        };
      }
      async assertNoOtherWriters() {
        const writer = await this._currentWriter();
        if (writer) {
          throw new ToolkitError(`Another CLI (PID=${writer}) is currently synthing to ${this.directory}. Invoke the CLI in sequence, or use '--output' to synth into different directories.`);
        }
      }
      /**
       * Check the current writer (if any)
       *
       * Publicly accessible for testing purposes. Do not use.
       *
       * @internal
       */
      async _currentWriter() {
        const contents = await readFileIfExists(this.writerFile);
        if (!contents) {
          return void 0;
        }
        const pid = parseInt(contents, 10);
        if (!processExists(pid)) {
          await deleteFile(this.writerFile);
          return void 0;
        }
        return pid;
      }
      /**
       * Check the current readers (if any)
       *
       * Publicly accessible for testing purposes. Do not use.
       *
       * @internal
       */
      async _currentReaders() {
        const re = /^read\.([^.]+)\.[^.]+\.lock$/;
        const ret = new Array();
        let children;
        try {
          children = await import_fs6.promises.readdir(this.directory, { encoding: "utf-8" });
        } catch (e3) {
          if (e3.code === "ENOENT") {
            return [];
          }
          throw e3;
        }
        for (const fname of children) {
          const m3 = fname.match(re);
          if (m3) {
            const pid = parseInt(m3[1], 10);
            if (processExists(pid)) {
              ret.push(pid);
            } else {
              await deleteFile(path19.join(this.directory, fname));
            }
          }
        }
        return ret;
      }
    };
    __name(readFileIfExists, "readFileIfExists");
    tmpCounter = 0;
    __name(writeFileAtomic, "writeFileAtomic");
    __name(deleteFile, "deleteFile");
    __name(processExists, "processExists");
  }
});

// ../../node_modules/@aws-sdk/client-appsync/dist-cjs/auth/httpAuthSchemeProvider.js
var require_httpAuthSchemeProvider8 = __commonJS({
  "../../node_modules/@aws-sdk/client-appsync/dist-cjs/auth/httpAuthSchemeProvider.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.resolveHttpAuthSchemeConfig = exports2.defaultAppSyncHttpAuthSchemeProvider = exports2.defaultAppSyncHttpAuthSchemeParametersProvider = void 0;
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var util_middleware_1 = require_dist_cjs6();
    var defaultAppSyncHttpAuthSchemeParametersProvider = /* @__PURE__ */ __name(async (config, context, input) => {
      return {
        operation: (0, util_middleware_1.getSmithyContext)(context).operation,
        region: await (0, util_middleware_1.normalizeProvider)(config.region)() || (() => {
          throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
        })()
      };
    }, "defaultAppSyncHttpAuthSchemeParametersProvider");
    exports2.defaultAppSyncHttpAuthSchemeParametersProvider = defaultAppSyncHttpAuthSchemeParametersProvider;
    function createAwsAuthSigv4HttpAuthOption3(authParameters) {
      return {
        schemeId: "aws.auth#sigv4",
        signingProperties: {
          name: "appsync",
          region: authParameters.region
        },
        propertiesExtractor: /* @__PURE__ */ __name((config, context) => ({
          signingProperties: {
            config,
            context
          }
        }), "propertiesExtractor")
      };
    }
    __name(createAwsAuthSigv4HttpAuthOption3, "createAwsAuthSigv4HttpAuthOption");
    var defaultAppSyncHttpAuthSchemeProvider = /* @__PURE__ */ __name((authParameters) => {
      const options = [];
      switch (authParameters.operation) {
        default: {
          options.push(createAwsAuthSigv4HttpAuthOption3(authParameters));
        }
      }
      return options;
    }, "defaultAppSyncHttpAuthSchemeProvider");
    exports2.defaultAppSyncHttpAuthSchemeProvider = defaultAppSyncHttpAuthSchemeProvider;
    var resolveHttpAuthSchemeConfig3 = /* @__PURE__ */ __name((config) => {
      const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
      return Object.assign(config_0, {
        authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? [])
      });
    }, "resolveHttpAuthSchemeConfig");
    exports2.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig3;
  }
});

// ../../node_modules/@aws-sdk/client-appsync/package.json
var require_package8 = __commonJS({
  "../../node_modules/@aws-sdk/client-appsync/package.json"(exports2, module2) {
    module2.exports = {
      name: "@aws-sdk/client-appsync",
      description: "AWS SDK for JavaScript Appsync Client for Node.js, Browser and React Native",
      version: "3.879.0",
      scripts: {
        build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
        "build:cjs": "node ../../scripts/compilation/inline client-appsync",
        "build:es": "tsc -p tsconfig.es.json",
        "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
        "build:types": "tsc -p tsconfig.types.json",
        "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
        clean: "rimraf ./dist-* && rimraf *.tsbuildinfo",
        "extract:docs": "api-extractor run --local",
        "generate:client": "node ../../scripts/generate-clients/single-service --solo appsync"
      },
      main: "./dist-cjs/index.js",
      types: "./dist-types/index.d.ts",
      module: "./dist-es/index.js",
      sideEffects: false,
      dependencies: {
        "@aws-crypto/sha256-browser": "5.2.0",
        "@aws-crypto/sha256-js": "5.2.0",
        "@aws-sdk/core": "3.879.0",
        "@aws-sdk/credential-provider-node": "3.879.0",
        "@aws-sdk/middleware-host-header": "3.873.0",
        "@aws-sdk/middleware-logger": "3.876.0",
        "@aws-sdk/middleware-recursion-detection": "3.873.0",
        "@aws-sdk/middleware-user-agent": "3.879.0",
        "@aws-sdk/region-config-resolver": "3.873.0",
        "@aws-sdk/types": "3.862.0",
        "@aws-sdk/util-endpoints": "3.879.0",
        "@aws-sdk/util-user-agent-browser": "3.873.0",
        "@aws-sdk/util-user-agent-node": "3.879.0",
        "@smithy/config-resolver": "^4.1.5",
        "@smithy/core": "^3.9.0",
        "@smithy/fetch-http-handler": "^5.1.1",
        "@smithy/hash-node": "^4.0.5",
        "@smithy/invalid-dependency": "^4.0.5",
        "@smithy/middleware-content-length": "^4.0.5",
        "@smithy/middleware-endpoint": "^4.1.19",
        "@smithy/middleware-retry": "^4.1.20",
        "@smithy/middleware-serde": "^4.0.9",
        "@smithy/middleware-stack": "^4.0.5",
        "@smithy/node-config-provider": "^4.1.4",
        "@smithy/node-http-handler": "^4.1.1",
        "@smithy/protocol-http": "^5.1.3",
        "@smithy/smithy-client": "^4.5.0",
        "@smithy/types": "^4.3.2",
        "@smithy/url-parser": "^4.0.5",
        "@smithy/util-base64": "^4.0.0",
        "@smithy/util-body-length-browser": "^4.0.0",
        "@smithy/util-body-length-node": "^4.0.0",
        "@smithy/util-defaults-mode-browser": "^4.0.27",
        "@smithy/util-defaults-mode-node": "^4.0.27",
        "@smithy/util-endpoints": "^3.0.7",
        "@smithy/util-middleware": "^4.0.5",
        "@smithy/util-retry": "^4.0.7",
        "@smithy/util-stream": "^4.2.4",
        "@smithy/util-utf8": "^4.0.0",
        tslib: "^2.6.2"
      },
      devDependencies: {
        "@tsconfig/node18": "18.2.4",
        "@types/node": "^18.19.69",
        concurrently: "7.0.0",
        "downlevel-dts": "0.10.1",
        rimraf: "3.0.2",
        typescript: "~5.8.3"
      },
      engines: {
        node: ">=18.0.0"
      },
      typesVersions: {
        "<4.0": {
          "dist-types/*": [
            "dist-types/ts3.4/*"
          ]
        }
      },
      files: [
        "dist-*/**"
      ],
      author: {
        name: "AWS SDK for JavaScript Team",
        url: "https://aws.amazon.com/javascript/"
      },
      license: "Apache-2.0",
      browser: {
        "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
      },
      "react-native": {
        "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
      },
      homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-appsync",
      repository: {
        type: "git",
        url: "https://github.com/aws/aws-sdk-js-v3.git",
        directory: "clients/client-appsync"
      }
    };
  }
});

// ../../node_modules/@aws-sdk/client-appsync/dist-cjs/endpoint/ruleset.js
var require_ruleset8 = __commonJS({
  "../../node_modules/@aws-sdk/client-appsync/dist-cjs/endpoint/ruleset.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.ruleSet = void 0;
    var s3 = "required";
    var t3 = "fn";
    var u3 = "argv";
    var v6 = "ref";
    var a3 = true;
    var b3 = "isSet";
    var c3 = "booleanEquals";
    var d3 = "error";
    var e3 = "endpoint";
    var f3 = "tree";
    var g3 = "PartitionResult";
    var h3 = { [s3]: false, "type": "String" };
    var i3 = { [s3]: true, "default": false, "type": "Boolean" };
    var j3 = { [v6]: "Endpoint" };
    var k3 = { [t3]: c3, [u3]: [{ [v6]: "UseFIPS" }, true] };
    var l3 = { [t3]: c3, [u3]: [{ [v6]: "UseDualStack" }, true] };
    var m3 = {};
    var n3 = { [t3]: "getAttr", [u3]: [{ [v6]: g3 }, "supportsFIPS"] };
    var o3 = { [t3]: c3, [u3]: [true, { [t3]: "getAttr", [u3]: [{ [v6]: g3 }, "supportsDualStack"] }] };
    var p3 = [k3];
    var q3 = [l3];
    var r3 = [{ [v6]: "Region" }];
    var _data3 = { version: "1.0", parameters: { Region: h3, UseDualStack: i3, UseFIPS: i3, Endpoint: h3 }, rules: [{ conditions: [{ [t3]: b3, [u3]: [j3] }], rules: [{ conditions: p3, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d3 }, { conditions: q3, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d3 }, { endpoint: { url: j3, properties: m3, headers: m3 }, type: e3 }], type: f3 }, { conditions: [{ [t3]: b3, [u3]: r3 }], rules: [{ conditions: [{ [t3]: "aws.partition", [u3]: r3, assign: g3 }], rules: [{ conditions: [k3, l3], rules: [{ conditions: [{ [t3]: c3, [u3]: [a3, n3] }, o3], rules: [{ endpoint: { url: "https://appsync-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m3, headers: m3 }, type: e3 }], type: f3 }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d3 }], type: f3 }, { conditions: p3, rules: [{ conditions: [{ [t3]: c3, [u3]: [n3, a3] }], rules: [{ endpoint: { url: "https://appsync-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m3, headers: m3 }, type: e3 }], type: f3 }, { error: "FIPS is enabled but this partition does not support FIPS", type: d3 }], type: f3 }, { conditions: q3, rules: [{ conditions: [o3], rules: [{ endpoint: { url: "https://appsync.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m3, headers: m3 }, type: e3 }], type: f3 }, { error: "DualStack is enabled but this partition does not support DualStack", type: d3 }], type: f3 }, { endpoint: { url: "https://appsync.{Region}.{PartitionResult#dnsSuffix}", properties: m3, headers: m3 }, type: e3 }], type: f3 }], type: f3 }, { error: "Invalid Configuration: Missing Region", type: d3 }] };
    exports2.ruleSet = _data3;
  }
});

// ../../node_modules/@aws-sdk/client-appsync/dist-cjs/endpoint/endpointResolver.js
var require_endpointResolver8 = __commonJS({
  "../../node_modules/@aws-sdk/client-appsync/dist-cjs/endpoint/endpointResolver.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.defaultEndpointResolver = void 0;
    var util_endpoints_1 = require_dist_cjs21();
    var util_endpoints_2 = require_dist_cjs18();
    var ruleset_1 = require_ruleset8();
    var cache3 = new util_endpoints_2.EndpointCache({
      size: 50,
      params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"]
    });
    var defaultEndpointResolver3 = /* @__PURE__ */ __name((endpointParams, context = {}) => {
      return cache3.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
        endpointParams,
        logger: context.logger
      }));
    }, "defaultEndpointResolver");
    exports2.defaultEndpointResolver = defaultEndpointResolver3;
    util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
  }
});

// ../../node_modules/@aws-sdk/client-appsync/dist-cjs/runtimeConfig.shared.js
var require_runtimeConfig_shared9 = __commonJS({
  "../../node_modules/@aws-sdk/client-appsync/dist-cjs/runtimeConfig.shared.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.getRuntimeConfig = void 0;
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var smithy_client_1 = require_dist_cjs26();
    var url_parser_1 = require_dist_cjs20();
    var util_base64_1 = require_dist_cjs11();
    var util_utf8_1 = require_dist_cjs10();
    var httpAuthSchemeProvider_1 = require_httpAuthSchemeProvider8();
    var endpointResolver_1 = require_endpointResolver8();
    var getRuntimeConfig5 = /* @__PURE__ */ __name((config) => {
      return {
        apiVersion: "2017-07-25",
        base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
        base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
        disableHostPrefix: config?.disableHostPrefix ?? false,
        endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
        extensions: config?.extensions ?? [],
        httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultAppSyncHttpAuthSchemeProvider,
        httpAuthSchemes: config?.httpAuthSchemes ?? [
          {
            schemeId: "aws.auth#sigv4",
            identityProvider: /* @__PURE__ */ __name((ipc) => ipc.getIdentityProvider("aws.auth#sigv4"), "identityProvider"),
            signer: new core_1.AwsSdkSigV4Signer()
          }
        ],
        logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
        serviceId: config?.serviceId ?? "AppSync",
        urlParser: config?.urlParser ?? url_parser_1.parseUrl,
        utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
        utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8
      };
    }, "getRuntimeConfig");
    exports2.getRuntimeConfig = getRuntimeConfig5;
  }
});

// ../../node_modules/@aws-sdk/client-appsync/dist-cjs/runtimeConfig.js
var require_runtimeConfig9 = __commonJS({
  "../../node_modules/@aws-sdk/client-appsync/dist-cjs/runtimeConfig.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.getRuntimeConfig = void 0;
    var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
    var package_json_1 = tslib_1.__importDefault(require_package8());
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var credential_provider_node_1 = require_dist_cjs52();
    var util_user_agent_node_1 = require_dist_cjs41();
    var config_resolver_1 = require_dist_cjs30();
    var hash_node_1 = require_dist_cjs42();
    var middleware_retry_1 = require_dist_cjs37();
    var node_config_provider_1 = require_dist_cjs33();
    var node_http_handler_1 = require_dist_cjs14();
    var util_body_length_node_1 = require_dist_cjs43();
    var util_retry_1 = require_dist_cjs36();
    var runtimeConfig_shared_1 = require_runtimeConfig_shared9();
    var smithy_client_1 = require_dist_cjs26();
    var util_defaults_mode_node_1 = require_dist_cjs44();
    var smithy_client_2 = require_dist_cjs26();
    var getRuntimeConfig5 = /* @__PURE__ */ __name((config) => {
      (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
      const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
      const defaultConfigProvider = /* @__PURE__ */ __name(() => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode), "defaultConfigProvider");
      const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
      (0, core_1.emitWarningIfUnsupportedVersion)(process.version);
      const loaderConfig = {
        profile: config?.profile,
        logger: clientSharedValues.logger
      };
      return {
        ...clientSharedValues,
        ...config,
        runtime: "node",
        defaultsMode,
        authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
        bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
        credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
        defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
        maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
        region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
        requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
        retryMode: config?.retryMode ?? (0, node_config_provider_1.loadConfig)({
          ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
          default: /* @__PURE__ */ __name(async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE, "default")
        }, config),
        sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
        streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
        useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
        useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
        userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig)
      };
    }, "getRuntimeConfig");
    exports2.getRuntimeConfig = getRuntimeConfig5;
  }
});

// ../../node_modules/@aws-sdk/client-appsync/dist-cjs/index.js
var require_dist_cjs81 = __commonJS({
  "../../node_modules/@aws-sdk/client-appsync/dist-cjs/index.js"(exports2, module2) {
    "use strict";
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var index_exports = {};
    __export2(index_exports, {
      AccessDeniedException: /* @__PURE__ */ __name(() => AccessDeniedException2, "AccessDeniedException"),
      ApiCacheStatus: /* @__PURE__ */ __name(() => ApiCacheStatus, "ApiCacheStatus"),
      ApiCacheType: /* @__PURE__ */ __name(() => ApiCacheType, "ApiCacheType"),
      ApiCachingBehavior: /* @__PURE__ */ __name(() => ApiCachingBehavior, "ApiCachingBehavior"),
      ApiKeyLimitExceededException: /* @__PURE__ */ __name(() => ApiKeyLimitExceededException, "ApiKeyLimitExceededException"),
      ApiKeyValidityOutOfBoundsException: /* @__PURE__ */ __name(() => ApiKeyValidityOutOfBoundsException, "ApiKeyValidityOutOfBoundsException"),
      ApiLimitExceededException: /* @__PURE__ */ __name(() => ApiLimitExceededException, "ApiLimitExceededException"),
      AppSync: /* @__PURE__ */ __name(() => AppSync, "AppSync"),
      AppSyncClient: /* @__PURE__ */ __name(() => AppSyncClient2, "AppSyncClient"),
      AppSyncServiceException: /* @__PURE__ */ __name(() => AppSyncServiceException, "AppSyncServiceException"),
      AssociateApiCommand: /* @__PURE__ */ __name(() => AssociateApiCommand, "AssociateApiCommand"),
      AssociateMergedGraphqlApiCommand: /* @__PURE__ */ __name(() => AssociateMergedGraphqlApiCommand, "AssociateMergedGraphqlApiCommand"),
      AssociateSourceGraphqlApiCommand: /* @__PURE__ */ __name(() => AssociateSourceGraphqlApiCommand, "AssociateSourceGraphqlApiCommand"),
      AssociationStatus: /* @__PURE__ */ __name(() => AssociationStatus, "AssociationStatus"),
      AuthenticationType: /* @__PURE__ */ __name(() => AuthenticationType, "AuthenticationType"),
      AuthorizationType: /* @__PURE__ */ __name(() => AuthorizationType, "AuthorizationType"),
      BadRequestException: /* @__PURE__ */ __name(() => BadRequestException, "BadRequestException"),
      BadRequestReason: /* @__PURE__ */ __name(() => BadRequestReason, "BadRequestReason"),
      CacheHealthMetricsConfig: /* @__PURE__ */ __name(() => CacheHealthMetricsConfig, "CacheHealthMetricsConfig"),
      ConcurrentModificationException: /* @__PURE__ */ __name(() => ConcurrentModificationException, "ConcurrentModificationException"),
      ConflictDetectionType: /* @__PURE__ */ __name(() => ConflictDetectionType, "ConflictDetectionType"),
      ConflictException: /* @__PURE__ */ __name(() => ConflictException, "ConflictException"),
      ConflictHandlerType: /* @__PURE__ */ __name(() => ConflictHandlerType, "ConflictHandlerType"),
      CreateApiCacheCommand: /* @__PURE__ */ __name(() => CreateApiCacheCommand, "CreateApiCacheCommand"),
      CreateApiCommand: /* @__PURE__ */ __name(() => CreateApiCommand, "CreateApiCommand"),
      CreateApiKeyCommand: /* @__PURE__ */ __name(() => CreateApiKeyCommand, "CreateApiKeyCommand"),
      CreateChannelNamespaceCommand: /* @__PURE__ */ __name(() => CreateChannelNamespaceCommand, "CreateChannelNamespaceCommand"),
      CreateDataSourceCommand: /* @__PURE__ */ __name(() => CreateDataSourceCommand, "CreateDataSourceCommand"),
      CreateDomainNameCommand: /* @__PURE__ */ __name(() => CreateDomainNameCommand, "CreateDomainNameCommand"),
      CreateFunctionCommand: /* @__PURE__ */ __name(() => CreateFunctionCommand, "CreateFunctionCommand"),
      CreateGraphqlApiCommand: /* @__PURE__ */ __name(() => CreateGraphqlApiCommand, "CreateGraphqlApiCommand"),
      CreateResolverCommand: /* @__PURE__ */ __name(() => CreateResolverCommand, "CreateResolverCommand"),
      CreateTypeCommand: /* @__PURE__ */ __name(() => CreateTypeCommand, "CreateTypeCommand"),
      DataSourceIntrospectionStatus: /* @__PURE__ */ __name(() => DataSourceIntrospectionStatus, "DataSourceIntrospectionStatus"),
      DataSourceLevelMetricsBehavior: /* @__PURE__ */ __name(() => DataSourceLevelMetricsBehavior, "DataSourceLevelMetricsBehavior"),
      DataSourceLevelMetricsConfig: /* @__PURE__ */ __name(() => DataSourceLevelMetricsConfig, "DataSourceLevelMetricsConfig"),
      DataSourceType: /* @__PURE__ */ __name(() => DataSourceType, "DataSourceType"),
      DefaultAction: /* @__PURE__ */ __name(() => DefaultAction, "DefaultAction"),
      DeleteApiCacheCommand: /* @__PURE__ */ __name(() => DeleteApiCacheCommand, "DeleteApiCacheCommand"),
      DeleteApiCommand: /* @__PURE__ */ __name(() => DeleteApiCommand, "DeleteApiCommand"),
      DeleteApiKeyCommand: /* @__PURE__ */ __name(() => DeleteApiKeyCommand, "DeleteApiKeyCommand"),
      DeleteChannelNamespaceCommand: /* @__PURE__ */ __name(() => DeleteChannelNamespaceCommand, "DeleteChannelNamespaceCommand"),
      DeleteDataSourceCommand: /* @__PURE__ */ __name(() => DeleteDataSourceCommand, "DeleteDataSourceCommand"),
      DeleteDomainNameCommand: /* @__PURE__ */ __name(() => DeleteDomainNameCommand, "DeleteDomainNameCommand"),
      DeleteFunctionCommand: /* @__PURE__ */ __name(() => DeleteFunctionCommand, "DeleteFunctionCommand"),
      DeleteGraphqlApiCommand: /* @__PURE__ */ __name(() => DeleteGraphqlApiCommand, "DeleteGraphqlApiCommand"),
      DeleteResolverCommand: /* @__PURE__ */ __name(() => DeleteResolverCommand, "DeleteResolverCommand"),
      DeleteTypeCommand: /* @__PURE__ */ __name(() => DeleteTypeCommand, "DeleteTypeCommand"),
      DisassociateApiCommand: /* @__PURE__ */ __name(() => DisassociateApiCommand, "DisassociateApiCommand"),
      DisassociateMergedGraphqlApiCommand: /* @__PURE__ */ __name(() => DisassociateMergedGraphqlApiCommand, "DisassociateMergedGraphqlApiCommand"),
      DisassociateSourceGraphqlApiCommand: /* @__PURE__ */ __name(() => DisassociateSourceGraphqlApiCommand, "DisassociateSourceGraphqlApiCommand"),
      EvaluateCodeCommand: /* @__PURE__ */ __name(() => EvaluateCodeCommand, "EvaluateCodeCommand"),
      EvaluateMappingTemplateCommand: /* @__PURE__ */ __name(() => EvaluateMappingTemplateCommand, "EvaluateMappingTemplateCommand"),
      EventLogLevel: /* @__PURE__ */ __name(() => EventLogLevel, "EventLogLevel"),
      FieldLogLevel: /* @__PURE__ */ __name(() => FieldLogLevel, "FieldLogLevel"),
      FlushApiCacheCommand: /* @__PURE__ */ __name(() => FlushApiCacheCommand, "FlushApiCacheCommand"),
      GetApiAssociationCommand: /* @__PURE__ */ __name(() => GetApiAssociationCommand, "GetApiAssociationCommand"),
      GetApiCacheCommand: /* @__PURE__ */ __name(() => GetApiCacheCommand, "GetApiCacheCommand"),
      GetApiCommand: /* @__PURE__ */ __name(() => GetApiCommand, "GetApiCommand"),
      GetChannelNamespaceCommand: /* @__PURE__ */ __name(() => GetChannelNamespaceCommand, "GetChannelNamespaceCommand"),
      GetDataSourceCommand: /* @__PURE__ */ __name(() => GetDataSourceCommand, "GetDataSourceCommand"),
      GetDataSourceIntrospectionCommand: /* @__PURE__ */ __name(() => GetDataSourceIntrospectionCommand, "GetDataSourceIntrospectionCommand"),
      GetDomainNameCommand: /* @__PURE__ */ __name(() => GetDomainNameCommand, "GetDomainNameCommand"),
      GetFunctionCommand: /* @__PURE__ */ __name(() => GetFunctionCommand, "GetFunctionCommand"),
      GetGraphqlApiCommand: /* @__PURE__ */ __name(() => GetGraphqlApiCommand, "GetGraphqlApiCommand"),
      GetGraphqlApiEnvironmentVariablesCommand: /* @__PURE__ */ __name(() => GetGraphqlApiEnvironmentVariablesCommand, "GetGraphqlApiEnvironmentVariablesCommand"),
      GetIntrospectionSchemaCommand: /* @__PURE__ */ __name(() => GetIntrospectionSchemaCommand, "GetIntrospectionSchemaCommand"),
      GetResolverCommand: /* @__PURE__ */ __name(() => GetResolverCommand, "GetResolverCommand"),
      GetSchemaCreationStatusCommand: /* @__PURE__ */ __name(() => GetSchemaCreationStatusCommand2, "GetSchemaCreationStatusCommand"),
      GetSourceApiAssociationCommand: /* @__PURE__ */ __name(() => GetSourceApiAssociationCommand, "GetSourceApiAssociationCommand"),
      GetTypeCommand: /* @__PURE__ */ __name(() => GetTypeCommand, "GetTypeCommand"),
      GraphQLApiIntrospectionConfig: /* @__PURE__ */ __name(() => GraphQLApiIntrospectionConfig, "GraphQLApiIntrospectionConfig"),
      GraphQLApiType: /* @__PURE__ */ __name(() => GraphQLApiType, "GraphQLApiType"),
      GraphQLApiVisibility: /* @__PURE__ */ __name(() => GraphQLApiVisibility, "GraphQLApiVisibility"),
      GraphQLSchemaException: /* @__PURE__ */ __name(() => GraphQLSchemaException, "GraphQLSchemaException"),
      HandlerBehavior: /* @__PURE__ */ __name(() => HandlerBehavior, "HandlerBehavior"),
      InternalFailureException: /* @__PURE__ */ __name(() => InternalFailureException, "InternalFailureException"),
      InvokeType: /* @__PURE__ */ __name(() => InvokeType, "InvokeType"),
      LimitExceededException: /* @__PURE__ */ __name(() => LimitExceededException, "LimitExceededException"),
      ListApiKeysCommand: /* @__PURE__ */ __name(() => ListApiKeysCommand, "ListApiKeysCommand"),
      ListApisCommand: /* @__PURE__ */ __name(() => ListApisCommand, "ListApisCommand"),
      ListChannelNamespacesCommand: /* @__PURE__ */ __name(() => ListChannelNamespacesCommand, "ListChannelNamespacesCommand"),
      ListDataSourcesCommand: /* @__PURE__ */ __name(() => ListDataSourcesCommand, "ListDataSourcesCommand"),
      ListDomainNamesCommand: /* @__PURE__ */ __name(() => ListDomainNamesCommand, "ListDomainNamesCommand"),
      ListFunctionsCommand: /* @__PURE__ */ __name(() => ListFunctionsCommand, "ListFunctionsCommand"),
      ListGraphqlApisCommand: /* @__PURE__ */ __name(() => ListGraphqlApisCommand, "ListGraphqlApisCommand"),
      ListResolversByFunctionCommand: /* @__PURE__ */ __name(() => ListResolversByFunctionCommand, "ListResolversByFunctionCommand"),
      ListResolversCommand: /* @__PURE__ */ __name(() => ListResolversCommand, "ListResolversCommand"),
      ListSourceApiAssociationsCommand: /* @__PURE__ */ __name(() => ListSourceApiAssociationsCommand, "ListSourceApiAssociationsCommand"),
      ListTagsForResourceCommand: /* @__PURE__ */ __name(() => ListTagsForResourceCommand, "ListTagsForResourceCommand"),
      ListTypesByAssociationCommand: /* @__PURE__ */ __name(() => ListTypesByAssociationCommand, "ListTypesByAssociationCommand"),
      ListTypesCommand: /* @__PURE__ */ __name(() => ListTypesCommand, "ListTypesCommand"),
      MergeType: /* @__PURE__ */ __name(() => MergeType, "MergeType"),
      NotFoundException: /* @__PURE__ */ __name(() => NotFoundException, "NotFoundException"),
      OperationLevelMetricsConfig: /* @__PURE__ */ __name(() => OperationLevelMetricsConfig, "OperationLevelMetricsConfig"),
      OutputType: /* @__PURE__ */ __name(() => OutputType, "OutputType"),
      Ownership: /* @__PURE__ */ __name(() => Ownership, "Ownership"),
      PutGraphqlApiEnvironmentVariablesCommand: /* @__PURE__ */ __name(() => PutGraphqlApiEnvironmentVariablesCommand, "PutGraphqlApiEnvironmentVariablesCommand"),
      RelationalDatabaseSourceType: /* @__PURE__ */ __name(() => RelationalDatabaseSourceType, "RelationalDatabaseSourceType"),
      ResolverKind: /* @__PURE__ */ __name(() => ResolverKind, "ResolverKind"),
      ResolverLevelMetricsBehavior: /* @__PURE__ */ __name(() => ResolverLevelMetricsBehavior, "ResolverLevelMetricsBehavior"),
      ResolverLevelMetricsConfig: /* @__PURE__ */ __name(() => ResolverLevelMetricsConfig, "ResolverLevelMetricsConfig"),
      RuntimeName: /* @__PURE__ */ __name(() => RuntimeName, "RuntimeName"),
      SchemaStatus: /* @__PURE__ */ __name(() => SchemaStatus, "SchemaStatus"),
      ServiceQuotaExceededException: /* @__PURE__ */ __name(() => ServiceQuotaExceededException, "ServiceQuotaExceededException"),
      SourceApiAssociationStatus: /* @__PURE__ */ __name(() => SourceApiAssociationStatus, "SourceApiAssociationStatus"),
      StartDataSourceIntrospectionCommand: /* @__PURE__ */ __name(() => StartDataSourceIntrospectionCommand, "StartDataSourceIntrospectionCommand"),
      StartSchemaCreationCommand: /* @__PURE__ */ __name(() => StartSchemaCreationCommand2, "StartSchemaCreationCommand"),
      StartSchemaMergeCommand: /* @__PURE__ */ __name(() => StartSchemaMergeCommand, "StartSchemaMergeCommand"),
      TagResourceCommand: /* @__PURE__ */ __name(() => TagResourceCommand, "TagResourceCommand"),
      TypeDefinitionFormat: /* @__PURE__ */ __name(() => TypeDefinitionFormat, "TypeDefinitionFormat"),
      UnauthorizedException: /* @__PURE__ */ __name(() => UnauthorizedException, "UnauthorizedException"),
      UntagResourceCommand: /* @__PURE__ */ __name(() => UntagResourceCommand, "UntagResourceCommand"),
      UpdateApiCacheCommand: /* @__PURE__ */ __name(() => UpdateApiCacheCommand, "UpdateApiCacheCommand"),
      UpdateApiCommand: /* @__PURE__ */ __name(() => UpdateApiCommand, "UpdateApiCommand"),
      UpdateApiKeyCommand: /* @__PURE__ */ __name(() => UpdateApiKeyCommand2, "UpdateApiKeyCommand"),
      UpdateChannelNamespaceCommand: /* @__PURE__ */ __name(() => UpdateChannelNamespaceCommand, "UpdateChannelNamespaceCommand"),
      UpdateDataSourceCommand: /* @__PURE__ */ __name(() => UpdateDataSourceCommand, "UpdateDataSourceCommand"),
      UpdateDomainNameCommand: /* @__PURE__ */ __name(() => UpdateDomainNameCommand, "UpdateDomainNameCommand"),
      UpdateFunctionCommand: /* @__PURE__ */ __name(() => UpdateFunctionCommand2, "UpdateFunctionCommand"),
      UpdateGraphqlApiCommand: /* @__PURE__ */ __name(() => UpdateGraphqlApiCommand, "UpdateGraphqlApiCommand"),
      UpdateResolverCommand: /* @__PURE__ */ __name(() => UpdateResolverCommand2, "UpdateResolverCommand"),
      UpdateSourceApiAssociationCommand: /* @__PURE__ */ __name(() => UpdateSourceApiAssociationCommand, "UpdateSourceApiAssociationCommand"),
      UpdateTypeCommand: /* @__PURE__ */ __name(() => UpdateTypeCommand, "UpdateTypeCommand"),
      __Client: /* @__PURE__ */ __name(() => import_smithy_client28.Client, "__Client"),
      paginateListApiKeys: /* @__PURE__ */ __name(() => paginateListApiKeys, "paginateListApiKeys"),
      paginateListApis: /* @__PURE__ */ __name(() => paginateListApis, "paginateListApis"),
      paginateListChannelNamespaces: /* @__PURE__ */ __name(() => paginateListChannelNamespaces, "paginateListChannelNamespaces"),
      paginateListDataSources: /* @__PURE__ */ __name(() => paginateListDataSources, "paginateListDataSources"),
      paginateListDomainNames: /* @__PURE__ */ __name(() => paginateListDomainNames, "paginateListDomainNames"),
      paginateListFunctions: /* @__PURE__ */ __name(() => paginateListFunctions2, "paginateListFunctions"),
      paginateListGraphqlApis: /* @__PURE__ */ __name(() => paginateListGraphqlApis, "paginateListGraphqlApis"),
      paginateListResolvers: /* @__PURE__ */ __name(() => paginateListResolvers, "paginateListResolvers"),
      paginateListResolversByFunction: /* @__PURE__ */ __name(() => paginateListResolversByFunction, "paginateListResolversByFunction"),
      paginateListSourceApiAssociations: /* @__PURE__ */ __name(() => paginateListSourceApiAssociations, "paginateListSourceApiAssociations"),
      paginateListTypes: /* @__PURE__ */ __name(() => paginateListTypes, "paginateListTypes"),
      paginateListTypesByAssociation: /* @__PURE__ */ __name(() => paginateListTypesByAssociation, "paginateListTypesByAssociation")
    });
    module2.exports = __toCommonJS2(index_exports);
    var import_middleware_host_header3 = require_dist_cjs3();
    var import_middleware_logger3 = require_dist_cjs4();
    var import_middleware_recursion_detection3 = require_dist_cjs5();
    var import_middleware_user_agent3 = require_dist_cjs28();
    var import_config_resolver6 = require_dist_cjs30();
    var import_core17 = (init_dist_es(), __toCommonJS(dist_es_exports));
    var import_middleware_content_length3 = require_dist_cjs31();
    var import_middleware_endpoint8 = require_dist_cjs34();
    var import_middleware_retry5 = require_dist_cjs37();
    var import_httpAuthSchemeProvider5 = require_httpAuthSchemeProvider8();
    var resolveClientEndpointParameters3 = /* @__PURE__ */ __name2((options) => {
      return Object.assign(options, {
        useDualstackEndpoint: options.useDualstackEndpoint ?? false,
        useFipsEndpoint: options.useFipsEndpoint ?? false,
        defaultSigningName: "appsync"
      });
    }, "resolveClientEndpointParameters");
    var commonParams3 = {
      UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
      Endpoint: { type: "builtInParams", name: "endpoint" },
      Region: { type: "builtInParams", name: "region" },
      UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
    };
    var import_runtimeConfig5 = require_runtimeConfig9();
    var import_region_config_resolver3 = require_dist_cjs45();
    var import_protocol_http16 = require_dist_cjs2();
    var import_smithy_client28 = require_dist_cjs26();
    var getHttpAuthExtensionConfiguration3 = /* @__PURE__ */ __name2((runtimeConfig) => {
      const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
      let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
      let _credentials = runtimeConfig.credentials;
      return {
        setHttpAuthScheme(httpAuthScheme) {
          const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
          if (index === -1) {
            _httpAuthSchemes.push(httpAuthScheme);
          } else {
            _httpAuthSchemes.splice(index, 1, httpAuthScheme);
          }
        },
        httpAuthSchemes() {
          return _httpAuthSchemes;
        },
        setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
          _httpAuthSchemeProvider = httpAuthSchemeProvider;
        },
        httpAuthSchemeProvider() {
          return _httpAuthSchemeProvider;
        },
        setCredentials(credentials) {
          _credentials = credentials;
        },
        credentials() {
          return _credentials;
        }
      };
    }, "getHttpAuthExtensionConfiguration");
    var resolveHttpAuthRuntimeConfig3 = /* @__PURE__ */ __name2((config) => {
      return {
        httpAuthSchemes: config.httpAuthSchemes(),
        httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
        credentials: config.credentials()
      };
    }, "resolveHttpAuthRuntimeConfig");
    var resolveRuntimeExtensions3 = /* @__PURE__ */ __name2((runtimeConfig, extensions) => {
      const extensionConfiguration = Object.assign(
        (0, import_region_config_resolver3.getAwsRegionExtensionConfiguration)(runtimeConfig),
        (0, import_smithy_client28.getDefaultExtensionConfiguration)(runtimeConfig),
        (0, import_protocol_http16.getHttpHandlerExtensionConfiguration)(runtimeConfig),
        getHttpAuthExtensionConfiguration3(runtimeConfig)
      );
      extensions.forEach((extension) => extension.configure(extensionConfiguration));
      return Object.assign(
        runtimeConfig,
        (0, import_region_config_resolver3.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
        (0, import_smithy_client28.resolveDefaultRuntimeConfig)(extensionConfiguration),
        (0, import_protocol_http16.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
        resolveHttpAuthRuntimeConfig3(extensionConfiguration)
      );
    }, "resolveRuntimeExtensions");
    var AppSyncClient2 = class extends import_smithy_client28.Client {
      static {
        __name(this, "AppSyncClient");
      }
      static {
        __name2(this, "AppSyncClient");
      }
      /**
       * The resolved configuration of AppSyncClient class. This is resolved and normalized from the {@link AppSyncClientConfig | constructor configuration interface}.
       */
      config;
      constructor(...[configuration]) {
        const _config_0 = (0, import_runtimeConfig5.getRuntimeConfig)(configuration || {});
        super(_config_0);
        this.initConfig = _config_0;
        const _config_1 = resolveClientEndpointParameters3(_config_0);
        const _config_2 = (0, import_middleware_user_agent3.resolveUserAgentConfig)(_config_1);
        const _config_3 = (0, import_middleware_retry5.resolveRetryConfig)(_config_2);
        const _config_4 = (0, import_config_resolver6.resolveRegionConfig)(_config_3);
        const _config_5 = (0, import_middleware_host_header3.resolveHostHeaderConfig)(_config_4);
        const _config_6 = (0, import_middleware_endpoint8.resolveEndpointConfig)(_config_5);
        const _config_7 = (0, import_httpAuthSchemeProvider5.resolveHttpAuthSchemeConfig)(_config_6);
        const _config_8 = resolveRuntimeExtensions3(_config_7, configuration?.extensions || []);
        this.config = _config_8;
        this.middlewareStack.use((0, import_middleware_user_agent3.getUserAgentPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_retry5.getRetryPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_content_length3.getContentLengthPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_host_header3.getHostHeaderPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_logger3.getLoggerPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_recursion_detection3.getRecursionDetectionPlugin)(this.config));
        this.middlewareStack.use(
          (0, import_core17.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
            httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider5.defaultAppSyncHttpAuthSchemeParametersProvider,
            identityProviderConfigProvider: /* @__PURE__ */ __name2(async (config) => new import_core17.DefaultIdentityProviderConfig({
              "aws.auth#sigv4": config.credentials
            }), "identityProviderConfigProvider")
          })
        );
        this.middlewareStack.use((0, import_core17.getHttpSigningPlugin)(this.config));
      }
      /**
       * Destroy underlying resources, like sockets. It's usually not necessary to do this.
       * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
       * Otherwise, sockets might stay open for quite a long time before the server terminates them.
       */
      destroy() {
        super.destroy();
      }
    };
    var import_middleware_serde5 = require_dist_cjs7();
    var import_core22 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var AppSyncServiceException = class _AppSyncServiceException extends import_smithy_client28.ServiceException {
      static {
        __name(this, "_AppSyncServiceException");
      }
      static {
        __name2(this, "AppSyncServiceException");
      }
      /**
       * @internal
       */
      constructor(options) {
        super(options);
        Object.setPrototypeOf(this, _AppSyncServiceException.prototype);
      }
    };
    var AccessDeniedException2 = class _AccessDeniedException extends AppSyncServiceException {
      static {
        __name(this, "_AccessDeniedException");
      }
      static {
        __name2(this, "AccessDeniedException");
      }
      name = "AccessDeniedException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "AccessDeniedException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _AccessDeniedException.prototype);
      }
    };
    var AuthenticationType = {
      AMAZON_COGNITO_USER_POOLS: "AMAZON_COGNITO_USER_POOLS",
      API_KEY: "API_KEY",
      AWS_IAM: "AWS_IAM",
      AWS_LAMBDA: "AWS_LAMBDA",
      OPENID_CONNECT: "OPENID_CONNECT"
    };
    var EventLogLevel = {
      ALL: "ALL",
      DEBUG: "DEBUG",
      ERROR: "ERROR",
      INFO: "INFO",
      NONE: "NONE"
    };
    var AssociationStatus = {
      Failed: "FAILED",
      Processing: "PROCESSING",
      Success: "SUCCESS"
    };
    var ApiCachingBehavior = {
      FULL_REQUEST_CACHING: "FULL_REQUEST_CACHING",
      OPERATION_LEVEL_CACHING: "OPERATION_LEVEL_CACHING",
      PER_RESOLVER_CACHING: "PER_RESOLVER_CACHING"
    };
    var CacheHealthMetricsConfig = {
      DISABLED: "DISABLED",
      ENABLED: "ENABLED"
    };
    var ApiCacheStatus = {
      AVAILABLE: "AVAILABLE",
      CREATING: "CREATING",
      DELETING: "DELETING",
      FAILED: "FAILED",
      MODIFYING: "MODIFYING"
    };
    var ApiCacheType = {
      LARGE: "LARGE",
      LARGE_12X: "LARGE_12X",
      LARGE_2X: "LARGE_2X",
      LARGE_4X: "LARGE_4X",
      LARGE_8X: "LARGE_8X",
      MEDIUM: "MEDIUM",
      R4_2XLARGE: "R4_2XLARGE",
      R4_4XLARGE: "R4_4XLARGE",
      R4_8XLARGE: "R4_8XLARGE",
      R4_LARGE: "R4_LARGE",
      R4_XLARGE: "R4_XLARGE",
      SMALL: "SMALL",
      T2_MEDIUM: "T2_MEDIUM",
      T2_SMALL: "T2_SMALL",
      XLARGE: "XLARGE"
    };
    var ApiKeyLimitExceededException = class _ApiKeyLimitExceededException extends AppSyncServiceException {
      static {
        __name(this, "_ApiKeyLimitExceededException");
      }
      static {
        __name2(this, "ApiKeyLimitExceededException");
      }
      name = "ApiKeyLimitExceededException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ApiKeyLimitExceededException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ApiKeyLimitExceededException.prototype);
      }
    };
    var ApiKeyValidityOutOfBoundsException = class _ApiKeyValidityOutOfBoundsException extends AppSyncServiceException {
      static {
        __name(this, "_ApiKeyValidityOutOfBoundsException");
      }
      static {
        __name2(this, "ApiKeyValidityOutOfBoundsException");
      }
      name = "ApiKeyValidityOutOfBoundsException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ApiKeyValidityOutOfBoundsException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ApiKeyValidityOutOfBoundsException.prototype);
      }
    };
    var ApiLimitExceededException = class _ApiLimitExceededException extends AppSyncServiceException {
      static {
        __name(this, "_ApiLimitExceededException");
      }
      static {
        __name2(this, "ApiLimitExceededException");
      }
      name = "ApiLimitExceededException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ApiLimitExceededException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ApiLimitExceededException.prototype);
      }
    };
    var RuntimeName = {
      APPSYNC_JS: "APPSYNC_JS"
    };
    var BadRequestReason = {
      CODE_ERROR: "CODE_ERROR"
    };
    var BadRequestException = class _BadRequestException extends AppSyncServiceException {
      static {
        __name(this, "_BadRequestException");
      }
      static {
        __name2(this, "BadRequestException");
      }
      name = "BadRequestException";
      $fault = "client";
      /**
       * <p>Provides context for the cause of the bad request. The only supported value is
       *             <code>CODE_ERROR</code>.</p>
       * @public
       */
      reason;
      /**
       * <p>Provides further details for the reason behind the bad request. For reason type
       *             <code>CODE_ERROR</code>, the detail will contain a list of code errors.</p>
       * @public
       */
      detail;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "BadRequestException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _BadRequestException.prototype);
        this.reason = opts.reason;
        this.detail = opts.detail;
      }
    };
    var InternalFailureException = class _InternalFailureException extends AppSyncServiceException {
      static {
        __name(this, "_InternalFailureException");
      }
      static {
        __name2(this, "InternalFailureException");
      }
      name = "InternalFailureException";
      $fault = "server";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InternalFailureException",
          $fault: "server",
          ...opts
        });
        Object.setPrototypeOf(this, _InternalFailureException.prototype);
      }
    };
    var NotFoundException = class _NotFoundException extends AppSyncServiceException {
      static {
        __name(this, "_NotFoundException");
      }
      static {
        __name2(this, "NotFoundException");
      }
      name = "NotFoundException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "NotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _NotFoundException.prototype);
      }
    };
    var MergeType = {
      AUTO_MERGE: "AUTO_MERGE",
      MANUAL_MERGE: "MANUAL_MERGE"
    };
    var SourceApiAssociationStatus = {
      AUTO_MERGE_SCHEDULE_FAILED: "AUTO_MERGE_SCHEDULE_FAILED",
      DELETION_FAILED: "DELETION_FAILED",
      DELETION_IN_PROGRESS: "DELETION_IN_PROGRESS",
      DELETION_SCHEDULED: "DELETION_SCHEDULED",
      MERGE_FAILED: "MERGE_FAILED",
      MERGE_IN_PROGRESS: "MERGE_IN_PROGRESS",
      MERGE_SCHEDULED: "MERGE_SCHEDULED",
      MERGE_SUCCESS: "MERGE_SUCCESS"
    };
    var ConcurrentModificationException = class _ConcurrentModificationException extends AppSyncServiceException {
      static {
        __name(this, "_ConcurrentModificationException");
      }
      static {
        __name2(this, "ConcurrentModificationException");
      }
      name = "ConcurrentModificationException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ConcurrentModificationException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ConcurrentModificationException.prototype);
      }
    };
    var LimitExceededException = class _LimitExceededException extends AppSyncServiceException {
      static {
        __name(this, "_LimitExceededException");
      }
      static {
        __name2(this, "LimitExceededException");
      }
      name = "LimitExceededException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "LimitExceededException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _LimitExceededException.prototype);
      }
    };
    var UnauthorizedException = class _UnauthorizedException extends AppSyncServiceException {
      static {
        __name(this, "_UnauthorizedException");
      }
      static {
        __name2(this, "UnauthorizedException");
      }
      name = "UnauthorizedException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "UnauthorizedException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _UnauthorizedException.prototype);
      }
    };
    var AuthorizationType = {
      AWS_IAM: "AWS_IAM"
    };
    var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends AppSyncServiceException {
      static {
        __name(this, "_ServiceQuotaExceededException");
      }
      static {
        __name2(this, "ServiceQuotaExceededException");
      }
      name = "ServiceQuotaExceededException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ServiceQuotaExceededException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
      }
    };
    var ConflictException = class _ConflictException extends AppSyncServiceException {
      static {
        __name(this, "_ConflictException");
      }
      static {
        __name2(this, "ConflictException");
      }
      name = "ConflictException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ConflictException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ConflictException.prototype);
      }
    };
    var HandlerBehavior = {
      CODE: "CODE",
      DIRECT: "DIRECT"
    };
    var InvokeType = {
      EVENT: "EVENT",
      REQUEST_RESPONSE: "REQUEST_RESPONSE"
    };
    var DataSourceLevelMetricsConfig = {
      DISABLED: "DISABLED",
      ENABLED: "ENABLED"
    };
    var RelationalDatabaseSourceType = {
      RDS_HTTP_ENDPOINT: "RDS_HTTP_ENDPOINT"
    };
    var DataSourceType = {
      AMAZON_BEDROCK_RUNTIME: "AMAZON_BEDROCK_RUNTIME",
      AMAZON_DYNAMODB: "AMAZON_DYNAMODB",
      AMAZON_ELASTICSEARCH: "AMAZON_ELASTICSEARCH",
      AMAZON_EVENTBRIDGE: "AMAZON_EVENTBRIDGE",
      AMAZON_OPENSEARCH_SERVICE: "AMAZON_OPENSEARCH_SERVICE",
      AWS_LAMBDA: "AWS_LAMBDA",
      HTTP: "HTTP",
      NONE: "NONE",
      RELATIONAL_DATABASE: "RELATIONAL_DATABASE"
    };
    var ConflictDetectionType = {
      NONE: "NONE",
      VERSION: "VERSION"
    };
    var ConflictHandlerType = {
      AUTOMERGE: "AUTOMERGE",
      LAMBDA: "LAMBDA",
      NONE: "NONE",
      OPTIMISTIC_CONCURRENCY: "OPTIMISTIC_CONCURRENCY"
    };
    var GraphQLApiType = {
      GRAPHQL: "GRAPHQL",
      MERGED: "MERGED"
    };
    var DataSourceLevelMetricsBehavior = {
      FULL_REQUEST_DATA_SOURCE_METRICS: "FULL_REQUEST_DATA_SOURCE_METRICS",
      PER_DATA_SOURCE_METRICS: "PER_DATA_SOURCE_METRICS"
    };
    var OperationLevelMetricsConfig = {
      DISABLED: "DISABLED",
      ENABLED: "ENABLED"
    };
    var ResolverLevelMetricsBehavior = {
      FULL_REQUEST_RESOLVER_METRICS: "FULL_REQUEST_RESOLVER_METRICS",
      PER_RESOLVER_METRICS: "PER_RESOLVER_METRICS"
    };
    var GraphQLApiIntrospectionConfig = {
      DISABLED: "DISABLED",
      ENABLED: "ENABLED"
    };
    var FieldLogLevel = {
      ALL: "ALL",
      DEBUG: "DEBUG",
      ERROR: "ERROR",
      INFO: "INFO",
      NONE: "NONE"
    };
    var DefaultAction = {
      ALLOW: "ALLOW",
      DENY: "DENY"
    };
    var GraphQLApiVisibility = {
      GLOBAL: "GLOBAL",
      PRIVATE: "PRIVATE"
    };
    var ResolverKind = {
      PIPELINE: "PIPELINE",
      UNIT: "UNIT"
    };
    var ResolverLevelMetricsConfig = {
      DISABLED: "DISABLED",
      ENABLED: "ENABLED"
    };
    var TypeDefinitionFormat = {
      JSON: "JSON",
      SDL: "SDL"
    };
    var DataSourceIntrospectionStatus = {
      FAILED: "FAILED",
      PROCESSING: "PROCESSING",
      SUCCESS: "SUCCESS"
    };
    var OutputType = {
      JSON: "JSON",
      SDL: "SDL"
    };
    var GraphQLSchemaException = class _GraphQLSchemaException extends AppSyncServiceException {
      static {
        __name(this, "_GraphQLSchemaException");
      }
      static {
        __name2(this, "GraphQLSchemaException");
      }
      name = "GraphQLSchemaException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "GraphQLSchemaException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _GraphQLSchemaException.prototype);
      }
    };
    var SchemaStatus = {
      Active: "ACTIVE",
      Deleting: "DELETING",
      Failed: "FAILED",
      NotApplicable: "NOT_APPLICABLE",
      Processing: "PROCESSING",
      Success: "SUCCESS"
    };
    var Ownership = {
      CURRENT_ACCOUNT: "CURRENT_ACCOUNT",
      OTHER_ACCOUNTS: "OTHER_ACCOUNTS"
    };
    var se_AssociateApiCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/json"
      };
      b3.bp("/v1/domainnames/{domainName}/apiassociation");
      b3.p("domainName", () => input.domainName, "{domainName}", false);
      let body;
      body = JSON.stringify(
        (0, import_smithy_client28.take)(input, {
          apiId: []
        })
      );
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_AssociateApiCommand");
    var se_AssociateMergedGraphqlApiCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/json"
      };
      b3.bp("/v1/sourceApis/{sourceApiIdentifier}/mergedApiAssociations");
      b3.p("sourceApiIdentifier", () => input.sourceApiIdentifier, "{sourceApiIdentifier}", false);
      let body;
      body = JSON.stringify(
        (0, import_smithy_client28.take)(input, {
          description: [],
          mergedApiIdentifier: [],
          sourceApiAssociationConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "sourceApiAssociationConfig")
        })
      );
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_AssociateMergedGraphqlApiCommand");
    var se_AssociateSourceGraphqlApiCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/json"
      };
      b3.bp("/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations");
      b3.p("mergedApiIdentifier", () => input.mergedApiIdentifier, "{mergedApiIdentifier}", false);
      let body;
      body = JSON.stringify(
        (0, import_smithy_client28.take)(input, {
          description: [],
          sourceApiAssociationConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "sourceApiAssociationConfig"),
          sourceApiIdentifier: []
        })
      );
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_AssociateSourceGraphqlApiCommand");
    var se_CreateApiCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/json"
      };
      b3.bp("/v2/apis");
      let body;
      body = JSON.stringify(
        (0, import_smithy_client28.take)(input, {
          eventConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "eventConfig"),
          name: [],
          ownerContact: [],
          tags: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "tags")
        })
      );
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_CreateApiCommand");
    var se_CreateApiCacheCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/json"
      };
      b3.bp("/v1/apis/{apiId}/ApiCaches");
      b3.p("apiId", () => input.apiId, "{apiId}", false);
      let body;
      body = JSON.stringify(
        (0, import_smithy_client28.take)(input, {
          apiCachingBehavior: [],
          atRestEncryptionEnabled: [],
          healthMetricsConfig: [],
          transitEncryptionEnabled: [],
          ttl: [],
          type: []
        })
      );
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_CreateApiCacheCommand");
    var se_CreateApiKeyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/json"
      };
      b3.bp("/v1/apis/{apiId}/apikeys");
      b3.p("apiId", () => input.apiId, "{apiId}", false);
      let body;
      body = JSON.stringify(
        (0, import_smithy_client28.take)(input, {
          description: [],
          expires: []
        })
      );
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_CreateApiKeyCommand");
    var se_CreateChannelNamespaceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/json"
      };
      b3.bp("/v2/apis/{apiId}/channelNamespaces");
      b3.p("apiId", () => input.apiId, "{apiId}", false);
      let body;
      body = JSON.stringify(
        (0, import_smithy_client28.take)(input, {
          codeHandlers: [],
          handlerConfigs: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "handlerConfigs"),
          name: [],
          publishAuthModes: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "publishAuthModes"),
          subscribeAuthModes: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "subscribeAuthModes"),
          tags: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "tags")
        })
      );
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_CreateChannelNamespaceCommand");
    var se_CreateDataSourceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/json"
      };
      b3.bp("/v1/apis/{apiId}/datasources");
      b3.p("apiId", () => input.apiId, "{apiId}", false);
      let body;
      body = JSON.stringify(
        (0, import_smithy_client28.take)(input, {
          description: [],
          dynamodbConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "dynamodbConfig"),
          elasticsearchConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "elasticsearchConfig"),
          eventBridgeConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "eventBridgeConfig"),
          httpConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "httpConfig"),
          lambdaConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "lambdaConfig"),
          metricsConfig: [],
          name: [],
          openSearchServiceConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "openSearchServiceConfig"),
          relationalDatabaseConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "relationalDatabaseConfig"),
          serviceRoleArn: [],
          type: []
        })
      );
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_CreateDataSourceCommand");
    var se_CreateDomainNameCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/json"
      };
      b3.bp("/v1/domainnames");
      let body;
      body = JSON.stringify(
        (0, import_smithy_client28.take)(input, {
          certificateArn: [],
          description: [],
          domainName: [],
          tags: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "tags")
        })
      );
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_CreateDomainNameCommand");
    var se_CreateFunctionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/json"
      };
      b3.bp("/v1/apis/{apiId}/functions");
      b3.p("apiId", () => input.apiId, "{apiId}", false);
      let body;
      body = JSON.stringify(
        (0, import_smithy_client28.take)(input, {
          code: [],
          dataSourceName: [],
          description: [],
          functionVersion: [],
          maxBatchSize: [],
          name: [],
          requestMappingTemplate: [],
          responseMappingTemplate: [],
          runtime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "runtime"),
          syncConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "syncConfig")
        })
      );
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_CreateFunctionCommand");
    var se_CreateGraphqlApiCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/json"
      };
      b3.bp("/v1/apis");
      let body;
      body = JSON.stringify(
        (0, import_smithy_client28.take)(input, {
          additionalAuthenticationProviders: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "additionalAuthenticationProviders"),
          apiType: [],
          authenticationType: [],
          enhancedMetricsConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "enhancedMetricsConfig"),
          introspectionConfig: [],
          lambdaAuthorizerConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "lambdaAuthorizerConfig"),
          logConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "logConfig"),
          mergedApiExecutionRoleArn: [],
          name: [],
          openIDConnectConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "openIDConnectConfig"),
          ownerContact: [],
          queryDepthLimit: [],
          resolverCountLimit: [],
          tags: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "tags"),
          userPoolConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "userPoolConfig"),
          visibility: [],
          xrayEnabled: []
        })
      );
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_CreateGraphqlApiCommand");
    var se_CreateResolverCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/json"
      };
      b3.bp("/v1/apis/{apiId}/types/{typeName}/resolvers");
      b3.p("apiId", () => input.apiId, "{apiId}", false);
      b3.p("typeName", () => input.typeName, "{typeName}", false);
      let body;
      body = JSON.stringify(
        (0, import_smithy_client28.take)(input, {
          cachingConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "cachingConfig"),
          code: [],
          dataSourceName: [],
          fieldName: [],
          kind: [],
          maxBatchSize: [],
          metricsConfig: [],
          pipelineConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "pipelineConfig"),
          requestMappingTemplate: [],
          responseMappingTemplate: [],
          runtime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "runtime"),
          syncConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "syncConfig")
        })
      );
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_CreateResolverCommand");
    var se_CreateTypeCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/json"
      };
      b3.bp("/v1/apis/{apiId}/types");
      b3.p("apiId", () => input.apiId, "{apiId}", false);
      let body;
      body = JSON.stringify(
        (0, import_smithy_client28.take)(input, {
          definition: [],
          format: []
        })
      );
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_CreateTypeCommand");
    var se_DeleteApiCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/v2/apis/{apiId}");
      b3.p("apiId", () => input.apiId, "{apiId}", false);
      let body;
      b3.m("DELETE").h(headers).b(body);
      return b3.build();
    }, "se_DeleteApiCommand");
    var se_DeleteApiCacheCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/v1/apis/{apiId}/ApiCaches");
      b3.p("apiId", () => input.apiId, "{apiId}", false);
      let body;
      b3.m("DELETE").h(headers).b(body);
      return b3.build();
    }, "se_DeleteApiCacheCommand");
    var se_DeleteApiKeyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/v1/apis/{apiId}/apikeys/{id}");
      b3.p("apiId", () => input.apiId, "{apiId}", false);
      b3.p("id", () => input.id, "{id}", false);
      let body;
      b3.m("DELETE").h(headers).b(body);
      return b3.build();
    }, "se_DeleteApiKeyCommand");
    var se_DeleteChannelNamespaceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/v2/apis/{apiId}/channelNamespaces/{name}");
      b3.p("apiId", () => input.apiId, "{apiId}", false);
      b3.p("name", () => input.name, "{name}", false);
      let body;
      b3.m("DELETE").h(headers).b(body);
      return b3.build();
    }, "se_DeleteChannelNamespaceCommand");
    var se_DeleteDataSourceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/v1/apis/{apiId}/datasources/{name}");
      b3.p("apiId", () => input.apiId, "{apiId}", false);
      b3.p("name", () => input.name, "{name}", false);
      let body;
      b3.m("DELETE").h(headers).b(body);
      return b3.build();
    }, "se_DeleteDataSourceCommand");
    var se_DeleteDomainNameCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/v1/domainnames/{domainName}");
      b3.p("domainName", () => input.domainName, "{domainName}", false);
      let body;
      b3.m("DELETE").h(headers).b(body);
      return b3.build();
    }, "se_DeleteDomainNameCommand");
    var se_DeleteFunctionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/v1/apis/{apiId}/functions/{functionId}");
      b3.p("apiId", () => input.apiId, "{apiId}", false);
      b3.p("functionId", () => input.functionId, "{functionId}", false);
      let body;
      b3.m("DELETE").h(headers).b(body);
      return b3.build();
    }, "se_DeleteFunctionCommand");
    var se_DeleteGraphqlApiCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/v1/apis/{apiId}");
      b3.p("apiId", () => input.apiId, "{apiId}", false);
      let body;
      b3.m("DELETE").h(headers).b(body);
      return b3.build();
    }, "se_DeleteGraphqlApiCommand");
    var se_DeleteResolverCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/v1/apis/{apiId}/types/{typeName}/resolvers/{fieldName}");
      b3.p("apiId", () => input.apiId, "{apiId}", false);
      b3.p("typeName", () => input.typeName, "{typeName}", false);
      b3.p("fieldName", () => input.fieldName, "{fieldName}", false);
      let body;
      b3.m("DELETE").h(headers).b(body);
      return b3.build();
    }, "se_DeleteResolverCommand");
    var se_DeleteTypeCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/v1/apis/{apiId}/types/{typeName}");
      b3.p("apiId", () => input.apiId, "{apiId}", false);
      b3.p("typeName", () => input.typeName, "{typeName}", false);
      let body;
      b3.m("DELETE").h(headers).b(body);
      return b3.build();
    }, "se_DeleteTypeCommand");
    var se_DisassociateApiCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/v1/domainnames/{domainName}/apiassociation");
      b3.p("domainName", () => input.domainName, "{domainName}", false);
      let body;
      b3.m("DELETE").h(headers).b(body);
      return b3.build();
    }, "se_DisassociateApiCommand");
    var se_DisassociateMergedGraphqlApiCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/v1/sourceApis/{sourceApiIdentifier}/mergedApiAssociations/{associationId}");
      b3.p("sourceApiIdentifier", () => input.sourceApiIdentifier, "{sourceApiIdentifier}", false);
      b3.p("associationId", () => input.associationId, "{associationId}", false);
      let body;
      b3.m("DELETE").h(headers).b(body);
      return b3.build();
    }, "se_DisassociateMergedGraphqlApiCommand");
    var se_DisassociateSourceGraphqlApiCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}");
      b3.p("mergedApiIdentifier", () => input.mergedApiIdentifier, "{mergedApiIdentifier}", false);
      b3.p("associationId", () => input.associationId, "{associationId}", false);
      let body;
      b3.m("DELETE").h(headers).b(body);
      return b3.build();
    }, "se_DisassociateSourceGraphqlApiCommand");
    var se_EvaluateCodeCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/json"
      };
      b3.bp("/v1/dataplane-evaluatecode");
      let body;
      body = JSON.stringify(
        (0, import_smithy_client28.take)(input, {
          code: [],
          context: [],
          function: [],
          runtime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "runtime")
        })
      );
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_EvaluateCodeCommand");
    var se_EvaluateMappingTemplateCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/json"
      };
      b3.bp("/v1/dataplane-evaluatetemplate");
      let body;
      body = JSON.stringify(
        (0, import_smithy_client28.take)(input, {
          context: [],
          template: []
        })
      );
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_EvaluateMappingTemplateCommand");
    var se_FlushApiCacheCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/v1/apis/{apiId}/FlushCache");
      b3.p("apiId", () => input.apiId, "{apiId}", false);
      let body;
      b3.m("DELETE").h(headers).b(body);
      return b3.build();
    }, "se_FlushApiCacheCommand");
    var se_GetApiCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/v2/apis/{apiId}");
      b3.p("apiId", () => input.apiId, "{apiId}", false);
      let body;
      b3.m("GET").h(headers).b(body);
      return b3.build();
    }, "se_GetApiCommand");
    var se_GetApiAssociationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/v1/domainnames/{domainName}/apiassociation");
      b3.p("domainName", () => input.domainName, "{domainName}", false);
      let body;
      b3.m("GET").h(headers).b(body);
      return b3.build();
    }, "se_GetApiAssociationCommand");
    var se_GetApiCacheCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/v1/apis/{apiId}/ApiCaches");
      b3.p("apiId", () => input.apiId, "{apiId}", false);
      let body;
      b3.m("GET").h(headers).b(body);
      return b3.build();
    }, "se_GetApiCacheCommand");
    var se_GetChannelNamespaceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/v2/apis/{apiId}/channelNamespaces/{name}");
      b3.p("apiId", () => input.apiId, "{apiId}", false);
      b3.p("name", () => input.name, "{name}", false);
      let body;
      b3.m("GET").h(headers).b(body);
      return b3.build();
    }, "se_GetChannelNamespaceCommand");
    var se_GetDataSourceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/v1/apis/{apiId}/datasources/{name}");
      b3.p("apiId", () => input.apiId, "{apiId}", false);
      b3.p("name", () => input.name, "{name}", false);
      let body;
      b3.m("GET").h(headers).b(body);
      return b3.build();
    }, "se_GetDataSourceCommand");
    var se_GetDataSourceIntrospectionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/v1/datasources/introspections/{introspectionId}");
      b3.p("introspectionId", () => input.introspectionId, "{introspectionId}", false);
      const query = (0, import_smithy_client28.map)({
        [_iMSDL]: [() => input.includeModelsSDL !== void 0, () => input[_iMSDL].toString()],
        [_nT]: [, input[_nT]],
        [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_GetDataSourceIntrospectionCommand");
    var se_GetDomainNameCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/v1/domainnames/{domainName}");
      b3.p("domainName", () => input.domainName, "{domainName}", false);
      let body;
      b3.m("GET").h(headers).b(body);
      return b3.build();
    }, "se_GetDomainNameCommand");
    var se_GetFunctionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/v1/apis/{apiId}/functions/{functionId}");
      b3.p("apiId", () => input.apiId, "{apiId}", false);
      b3.p("functionId", () => input.functionId, "{functionId}", false);
      let body;
      b3.m("GET").h(headers).b(body);
      return b3.build();
    }, "se_GetFunctionCommand");
    var se_GetGraphqlApiCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/v1/apis/{apiId}");
      b3.p("apiId", () => input.apiId, "{apiId}", false);
      let body;
      b3.m("GET").h(headers).b(body);
      return b3.build();
    }, "se_GetGraphqlApiCommand");
    var se_GetGraphqlApiEnvironmentVariablesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/v1/apis/{apiId}/environmentVariables");
      b3.p("apiId", () => input.apiId, "{apiId}", false);
      let body;
      b3.m("GET").h(headers).b(body);
      return b3.build();
    }, "se_GetGraphqlApiEnvironmentVariablesCommand");
    var se_GetIntrospectionSchemaCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/v1/apis/{apiId}/schema");
      b3.p("apiId", () => input.apiId, "{apiId}", false);
      const query = (0, import_smithy_client28.map)({
        [_f]: [, (0, import_smithy_client28.expectNonNull)(input[_f], `format`)],
        [_iD]: [() => input.includeDirectives !== void 0, () => input[_iD].toString()]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_GetIntrospectionSchemaCommand");
    var se_GetResolverCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/v1/apis/{apiId}/types/{typeName}/resolvers/{fieldName}");
      b3.p("apiId", () => input.apiId, "{apiId}", false);
      b3.p("typeName", () => input.typeName, "{typeName}", false);
      b3.p("fieldName", () => input.fieldName, "{fieldName}", false);
      let body;
      b3.m("GET").h(headers).b(body);
      return b3.build();
    }, "se_GetResolverCommand");
    var se_GetSchemaCreationStatusCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/v1/apis/{apiId}/schemacreation");
      b3.p("apiId", () => input.apiId, "{apiId}", false);
      let body;
      b3.m("GET").h(headers).b(body);
      return b3.build();
    }, "se_GetSchemaCreationStatusCommand");
    var se_GetSourceApiAssociationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}");
      b3.p("mergedApiIdentifier", () => input.mergedApiIdentifier, "{mergedApiIdentifier}", false);
      b3.p("associationId", () => input.associationId, "{associationId}", false);
      let body;
      b3.m("GET").h(headers).b(body);
      return b3.build();
    }, "se_GetSourceApiAssociationCommand");
    var se_GetTypeCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/v1/apis/{apiId}/types/{typeName}");
      b3.p("apiId", () => input.apiId, "{apiId}", false);
      b3.p("typeName", () => input.typeName, "{typeName}", false);
      const query = (0, import_smithy_client28.map)({
        [_f]: [, (0, import_smithy_client28.expectNonNull)(input[_f], `format`)]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_GetTypeCommand");
    var se_ListApiKeysCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/v1/apis/{apiId}/apikeys");
      b3.p("apiId", () => input.apiId, "{apiId}", false);
      const query = (0, import_smithy_client28.map)({
        [_nT]: [, input[_nT]],
        [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_ListApiKeysCommand");
    var se_ListApisCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/v2/apis");
      const query = (0, import_smithy_client28.map)({
        [_nT]: [, input[_nT]],
        [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_ListApisCommand");
    var se_ListChannelNamespacesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/v2/apis/{apiId}/channelNamespaces");
      b3.p("apiId", () => input.apiId, "{apiId}", false);
      const query = (0, import_smithy_client28.map)({
        [_nT]: [, input[_nT]],
        [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_ListChannelNamespacesCommand");
    var se_ListDataSourcesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/v1/apis/{apiId}/datasources");
      b3.p("apiId", () => input.apiId, "{apiId}", false);
      const query = (0, import_smithy_client28.map)({
        [_nT]: [, input[_nT]],
        [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_ListDataSourcesCommand");
    var se_ListDomainNamesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/v1/domainnames");
      const query = (0, import_smithy_client28.map)({
        [_nT]: [, input[_nT]],
        [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_ListDomainNamesCommand");
    var se_ListFunctionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/v1/apis/{apiId}/functions");
      b3.p("apiId", () => input.apiId, "{apiId}", false);
      const query = (0, import_smithy_client28.map)({
        [_nT]: [, input[_nT]],
        [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_ListFunctionsCommand");
    var se_ListGraphqlApisCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/v1/apis");
      const query = (0, import_smithy_client28.map)({
        [_nT]: [, input[_nT]],
        [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
        [_aT]: [, input[_aT]],
        [_o]: [, input[_o]]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_ListGraphqlApisCommand");
    var se_ListResolversCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/v1/apis/{apiId}/types/{typeName}/resolvers");
      b3.p("apiId", () => input.apiId, "{apiId}", false);
      b3.p("typeName", () => input.typeName, "{typeName}", false);
      const query = (0, import_smithy_client28.map)({
        [_nT]: [, input[_nT]],
        [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_ListResolversCommand");
    var se_ListResolversByFunctionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/v1/apis/{apiId}/functions/{functionId}/resolvers");
      b3.p("apiId", () => input.apiId, "{apiId}", false);
      b3.p("functionId", () => input.functionId, "{functionId}", false);
      const query = (0, import_smithy_client28.map)({
        [_nT]: [, input[_nT]],
        [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_ListResolversByFunctionCommand");
    var se_ListSourceApiAssociationsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/v1/apis/{apiId}/sourceApiAssociations");
      b3.p("apiId", () => input.apiId, "{apiId}", false);
      const query = (0, import_smithy_client28.map)({
        [_nT]: [, input[_nT]],
        [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_ListSourceApiAssociationsCommand");
    var se_ListTagsForResourceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/v1/tags/{resourceArn}");
      b3.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
      let body;
      b3.m("GET").h(headers).b(body);
      return b3.build();
    }, "se_ListTagsForResourceCommand");
    var se_ListTypesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/v1/apis/{apiId}/types");
      b3.p("apiId", () => input.apiId, "{apiId}", false);
      const query = (0, import_smithy_client28.map)({
        [_f]: [, (0, import_smithy_client28.expectNonNull)(input[_f], `format`)],
        [_nT]: [, input[_nT]],
        [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_ListTypesCommand");
    var se_ListTypesByAssociationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}/types");
      b3.p("mergedApiIdentifier", () => input.mergedApiIdentifier, "{mergedApiIdentifier}", false);
      b3.p("associationId", () => input.associationId, "{associationId}", false);
      const query = (0, import_smithy_client28.map)({
        [_f]: [, (0, import_smithy_client28.expectNonNull)(input[_f], `format`)],
        [_nT]: [, input[_nT]],
        [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_ListTypesByAssociationCommand");
    var se_PutGraphqlApiEnvironmentVariablesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/json"
      };
      b3.bp("/v1/apis/{apiId}/environmentVariables");
      b3.p("apiId", () => input.apiId, "{apiId}", false);
      let body;
      body = JSON.stringify(
        (0, import_smithy_client28.take)(input, {
          environmentVariables: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "environmentVariables")
        })
      );
      b3.m("PUT").h(headers).b(body);
      return b3.build();
    }, "se_PutGraphqlApiEnvironmentVariablesCommand");
    var se_StartDataSourceIntrospectionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/json"
      };
      b3.bp("/v1/datasources/introspections");
      let body;
      body = JSON.stringify(
        (0, import_smithy_client28.take)(input, {
          rdsDataApiConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "rdsDataApiConfig")
        })
      );
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_StartDataSourceIntrospectionCommand");
    var se_StartSchemaCreationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/json"
      };
      b3.bp("/v1/apis/{apiId}/schemacreation");
      b3.p("apiId", () => input.apiId, "{apiId}", false);
      let body;
      body = JSON.stringify(
        (0, import_smithy_client28.take)(input, {
          definition: /* @__PURE__ */ __name2((_3) => context.base64Encoder(_3), "definition")
        })
      );
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_StartSchemaCreationCommand");
    var se_StartSchemaMergeCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}/merge");
      b3.p("associationId", () => input.associationId, "{associationId}", false);
      b3.p("mergedApiIdentifier", () => input.mergedApiIdentifier, "{mergedApiIdentifier}", false);
      let body;
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_StartSchemaMergeCommand");
    var se_TagResourceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/json"
      };
      b3.bp("/v1/tags/{resourceArn}");
      b3.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
      let body;
      body = JSON.stringify(
        (0, import_smithy_client28.take)(input, {
          tags: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "tags")
        })
      );
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_TagResourceCommand");
    var se_UntagResourceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/v1/tags/{resourceArn}");
      b3.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
      const query = (0, import_smithy_client28.map)({
        [_tK]: [(0, import_smithy_client28.expectNonNull)(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []]
      });
      let body;
      b3.m("DELETE").h(headers).q(query).b(body);
      return b3.build();
    }, "se_UntagResourceCommand");
    var se_UpdateApiCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/json"
      };
      b3.bp("/v2/apis/{apiId}");
      b3.p("apiId", () => input.apiId, "{apiId}", false);
      let body;
      body = JSON.stringify(
        (0, import_smithy_client28.take)(input, {
          eventConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "eventConfig"),
          name: [],
          ownerContact: []
        })
      );
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_UpdateApiCommand");
    var se_UpdateApiCacheCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/json"
      };
      b3.bp("/v1/apis/{apiId}/ApiCaches/update");
      b3.p("apiId", () => input.apiId, "{apiId}", false);
      let body;
      body = JSON.stringify(
        (0, import_smithy_client28.take)(input, {
          apiCachingBehavior: [],
          healthMetricsConfig: [],
          ttl: [],
          type: []
        })
      );
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_UpdateApiCacheCommand");
    var se_UpdateApiKeyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/json"
      };
      b3.bp("/v1/apis/{apiId}/apikeys/{id}");
      b3.p("apiId", () => input.apiId, "{apiId}", false);
      b3.p("id", () => input.id, "{id}", false);
      let body;
      body = JSON.stringify(
        (0, import_smithy_client28.take)(input, {
          description: [],
          expires: []
        })
      );
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_UpdateApiKeyCommand");
    var se_UpdateChannelNamespaceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/json"
      };
      b3.bp("/v2/apis/{apiId}/channelNamespaces/{name}");
      b3.p("apiId", () => input.apiId, "{apiId}", false);
      b3.p("name", () => input.name, "{name}", false);
      let body;
      body = JSON.stringify(
        (0, import_smithy_client28.take)(input, {
          codeHandlers: [],
          handlerConfigs: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "handlerConfigs"),
          publishAuthModes: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "publishAuthModes"),
          subscribeAuthModes: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "subscribeAuthModes")
        })
      );
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_UpdateChannelNamespaceCommand");
    var se_UpdateDataSourceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/json"
      };
      b3.bp("/v1/apis/{apiId}/datasources/{name}");
      b3.p("apiId", () => input.apiId, "{apiId}", false);
      b3.p("name", () => input.name, "{name}", false);
      let body;
      body = JSON.stringify(
        (0, import_smithy_client28.take)(input, {
          description: [],
          dynamodbConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "dynamodbConfig"),
          elasticsearchConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "elasticsearchConfig"),
          eventBridgeConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "eventBridgeConfig"),
          httpConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "httpConfig"),
          lambdaConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "lambdaConfig"),
          metricsConfig: [],
          openSearchServiceConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "openSearchServiceConfig"),
          relationalDatabaseConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "relationalDatabaseConfig"),
          serviceRoleArn: [],
          type: []
        })
      );
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_UpdateDataSourceCommand");
    var se_UpdateDomainNameCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/json"
      };
      b3.bp("/v1/domainnames/{domainName}");
      b3.p("domainName", () => input.domainName, "{domainName}", false);
      let body;
      body = JSON.stringify(
        (0, import_smithy_client28.take)(input, {
          description: []
        })
      );
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_UpdateDomainNameCommand");
    var se_UpdateFunctionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/json"
      };
      b3.bp("/v1/apis/{apiId}/functions/{functionId}");
      b3.p("apiId", () => input.apiId, "{apiId}", false);
      b3.p("functionId", () => input.functionId, "{functionId}", false);
      let body;
      body = JSON.stringify(
        (0, import_smithy_client28.take)(input, {
          code: [],
          dataSourceName: [],
          description: [],
          functionVersion: [],
          maxBatchSize: [],
          name: [],
          requestMappingTemplate: [],
          responseMappingTemplate: [],
          runtime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "runtime"),
          syncConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "syncConfig")
        })
      );
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_UpdateFunctionCommand");
    var se_UpdateGraphqlApiCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/json"
      };
      b3.bp("/v1/apis/{apiId}");
      b3.p("apiId", () => input.apiId, "{apiId}", false);
      let body;
      body = JSON.stringify(
        (0, import_smithy_client28.take)(input, {
          additionalAuthenticationProviders: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "additionalAuthenticationProviders"),
          authenticationType: [],
          enhancedMetricsConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "enhancedMetricsConfig"),
          introspectionConfig: [],
          lambdaAuthorizerConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "lambdaAuthorizerConfig"),
          logConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "logConfig"),
          mergedApiExecutionRoleArn: [],
          name: [],
          openIDConnectConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "openIDConnectConfig"),
          ownerContact: [],
          queryDepthLimit: [],
          resolverCountLimit: [],
          userPoolConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "userPoolConfig"),
          xrayEnabled: []
        })
      );
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_UpdateGraphqlApiCommand");
    var se_UpdateResolverCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/json"
      };
      b3.bp("/v1/apis/{apiId}/types/{typeName}/resolvers/{fieldName}");
      b3.p("apiId", () => input.apiId, "{apiId}", false);
      b3.p("typeName", () => input.typeName, "{typeName}", false);
      b3.p("fieldName", () => input.fieldName, "{fieldName}", false);
      let body;
      body = JSON.stringify(
        (0, import_smithy_client28.take)(input, {
          cachingConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "cachingConfig"),
          code: [],
          dataSourceName: [],
          kind: [],
          maxBatchSize: [],
          metricsConfig: [],
          pipelineConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "pipelineConfig"),
          requestMappingTemplate: [],
          responseMappingTemplate: [],
          runtime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "runtime"),
          syncConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "syncConfig")
        })
      );
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_UpdateResolverCommand");
    var se_UpdateSourceApiAssociationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/json"
      };
      b3.bp("/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}");
      b3.p("associationId", () => input.associationId, "{associationId}", false);
      b3.p("mergedApiIdentifier", () => input.mergedApiIdentifier, "{mergedApiIdentifier}", false);
      let body;
      body = JSON.stringify(
        (0, import_smithy_client28.take)(input, {
          description: [],
          sourceApiAssociationConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "sourceApiAssociationConfig")
        })
      );
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_UpdateSourceApiAssociationCommand");
    var se_UpdateTypeCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/json"
      };
      b3.bp("/v1/apis/{apiId}/types/{typeName}");
      b3.p("apiId", () => input.apiId, "{apiId}", false);
      b3.p("typeName", () => input.typeName, "{typeName}", false);
      let body;
      body = JSON.stringify(
        (0, import_smithy_client28.take)(input, {
          definition: [],
          format: []
        })
      );
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_UpdateTypeCommand");
    var de_AssociateApiCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        apiAssociation: import_smithy_client28._json
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_AssociateApiCommand");
    var de_AssociateMergedGraphqlApiCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        sourceApiAssociation: /* @__PURE__ */ __name2((_3) => de_SourceApiAssociation(_3, context), "sourceApiAssociation")
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_AssociateMergedGraphqlApiCommand");
    var de_AssociateSourceGraphqlApiCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        sourceApiAssociation: /* @__PURE__ */ __name2((_3) => de_SourceApiAssociation(_3, context), "sourceApiAssociation")
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_AssociateSourceGraphqlApiCommand");
    var de_CreateApiCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        api: /* @__PURE__ */ __name2((_3) => de_Api(_3, context), "api")
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_CreateApiCommand");
    var de_CreateApiCacheCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        apiCache: import_smithy_client28._json
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_CreateApiCacheCommand");
    var de_CreateApiKeyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        apiKey: import_smithy_client28._json
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_CreateApiKeyCommand");
    var de_CreateChannelNamespaceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        channelNamespace: /* @__PURE__ */ __name2((_3) => de_ChannelNamespace(_3, context), "channelNamespace")
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_CreateChannelNamespaceCommand");
    var de_CreateDataSourceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        dataSource: import_smithy_client28._json
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_CreateDataSourceCommand");
    var de_CreateDomainNameCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        domainNameConfig: import_smithy_client28._json
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_CreateDomainNameCommand");
    var de_CreateFunctionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        functionConfiguration: import_smithy_client28._json
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_CreateFunctionCommand");
    var de_CreateGraphqlApiCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        graphqlApi: import_smithy_client28._json
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_CreateGraphqlApiCommand");
    var de_CreateResolverCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        resolver: import_smithy_client28._json
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_CreateResolverCommand");
    var de_CreateTypeCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        type: import_smithy_client28._json
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_CreateTypeCommand");
    var de_DeleteApiCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_DeleteApiCommand");
    var de_DeleteApiCacheCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_DeleteApiCacheCommand");
    var de_DeleteApiKeyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_DeleteApiKeyCommand");
    var de_DeleteChannelNamespaceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_DeleteChannelNamespaceCommand");
    var de_DeleteDataSourceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_DeleteDataSourceCommand");
    var de_DeleteDomainNameCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_DeleteDomainNameCommand");
    var de_DeleteFunctionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_DeleteFunctionCommand");
    var de_DeleteGraphqlApiCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_DeleteGraphqlApiCommand");
    var de_DeleteResolverCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_DeleteResolverCommand");
    var de_DeleteTypeCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_DeleteTypeCommand");
    var de_DisassociateApiCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_DisassociateApiCommand");
    var de_DisassociateMergedGraphqlApiCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        sourceApiAssociationStatus: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_DisassociateMergedGraphqlApiCommand");
    var de_DisassociateSourceGraphqlApiCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        sourceApiAssociationStatus: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_DisassociateSourceGraphqlApiCommand");
    var de_EvaluateCodeCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        error: import_smithy_client28._json,
        evaluationResult: import_smithy_client28.expectString,
        logs: import_smithy_client28._json,
        outErrors: import_smithy_client28.expectString,
        stash: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_EvaluateCodeCommand");
    var de_EvaluateMappingTemplateCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        error: import_smithy_client28._json,
        evaluationResult: import_smithy_client28.expectString,
        logs: import_smithy_client28._json,
        outErrors: import_smithy_client28.expectString,
        stash: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_EvaluateMappingTemplateCommand");
    var de_FlushApiCacheCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_FlushApiCacheCommand");
    var de_GetApiCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        api: /* @__PURE__ */ __name2((_3) => de_Api(_3, context), "api")
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_GetApiCommand");
    var de_GetApiAssociationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        apiAssociation: import_smithy_client28._json
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_GetApiAssociationCommand");
    var de_GetApiCacheCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        apiCache: import_smithy_client28._json
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_GetApiCacheCommand");
    var de_GetChannelNamespaceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        channelNamespace: /* @__PURE__ */ __name2((_3) => de_ChannelNamespace(_3, context), "channelNamespace")
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_GetChannelNamespaceCommand");
    var de_GetDataSourceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        dataSource: import_smithy_client28._json
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_GetDataSourceCommand");
    var de_GetDataSourceIntrospectionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        introspectionId: import_smithy_client28.expectString,
        introspectionResult: /* @__PURE__ */ __name2((_3) => de_DataSourceIntrospectionResult(_3, context), "introspectionResult"),
        introspectionStatus: import_smithy_client28.expectString,
        introspectionStatusDetail: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_GetDataSourceIntrospectionCommand");
    var de_GetDomainNameCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        domainNameConfig: import_smithy_client28._json
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_GetDomainNameCommand");
    var de_GetFunctionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        functionConfiguration: import_smithy_client28._json
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_GetFunctionCommand");
    var de_GetGraphqlApiCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        graphqlApi: import_smithy_client28._json
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_GetGraphqlApiCommand");
    var de_GetGraphqlApiEnvironmentVariablesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        environmentVariables: import_smithy_client28._json
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_GetGraphqlApiEnvironmentVariablesCommand");
    var de_GetIntrospectionSchemaCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = await (0, import_smithy_client28.collectBody)(output.body, context);
      contents.schema = data3;
      return contents;
    }, "de_GetIntrospectionSchemaCommand");
    var de_GetResolverCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        resolver: import_smithy_client28._json
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_GetResolverCommand");
    var de_GetSchemaCreationStatusCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        details: import_smithy_client28.expectString,
        status: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_GetSchemaCreationStatusCommand");
    var de_GetSourceApiAssociationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        sourceApiAssociation: /* @__PURE__ */ __name2((_3) => de_SourceApiAssociation(_3, context), "sourceApiAssociation")
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_GetSourceApiAssociationCommand");
    var de_GetTypeCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        type: import_smithy_client28._json
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_GetTypeCommand");
    var de_ListApiKeysCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        apiKeys: import_smithy_client28._json,
        nextToken: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_ListApiKeysCommand");
    var de_ListApisCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        apis: /* @__PURE__ */ __name2((_3) => de_Apis(_3, context), "apis"),
        nextToken: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_ListApisCommand");
    var de_ListChannelNamespacesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        channelNamespaces: /* @__PURE__ */ __name2((_3) => de_ChannelNamespaces(_3, context), "channelNamespaces"),
        nextToken: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_ListChannelNamespacesCommand");
    var de_ListDataSourcesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        dataSources: import_smithy_client28._json,
        nextToken: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_ListDataSourcesCommand");
    var de_ListDomainNamesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        domainNameConfigs: import_smithy_client28._json,
        nextToken: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_ListDomainNamesCommand");
    var de_ListFunctionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        functions: import_smithy_client28._json,
        nextToken: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_ListFunctionsCommand");
    var de_ListGraphqlApisCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        graphqlApis: import_smithy_client28._json,
        nextToken: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_ListGraphqlApisCommand");
    var de_ListResolversCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        nextToken: import_smithy_client28.expectString,
        resolvers: import_smithy_client28._json
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_ListResolversCommand");
    var de_ListResolversByFunctionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        nextToken: import_smithy_client28.expectString,
        resolvers: import_smithy_client28._json
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_ListResolversByFunctionCommand");
    var de_ListSourceApiAssociationsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        nextToken: import_smithy_client28.expectString,
        sourceApiAssociationSummaries: import_smithy_client28._json
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_ListSourceApiAssociationsCommand");
    var de_ListTagsForResourceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        tags: import_smithy_client28._json
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_ListTagsForResourceCommand");
    var de_ListTypesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        nextToken: import_smithy_client28.expectString,
        types: import_smithy_client28._json
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_ListTypesCommand");
    var de_ListTypesByAssociationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        nextToken: import_smithy_client28.expectString,
        types: import_smithy_client28._json
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_ListTypesByAssociationCommand");
    var de_PutGraphqlApiEnvironmentVariablesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        environmentVariables: import_smithy_client28._json
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_PutGraphqlApiEnvironmentVariablesCommand");
    var de_StartDataSourceIntrospectionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        introspectionId: import_smithy_client28.expectString,
        introspectionStatus: import_smithy_client28.expectString,
        introspectionStatusDetail: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_StartDataSourceIntrospectionCommand");
    var de_StartSchemaCreationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        status: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_StartSchemaCreationCommand");
    var de_StartSchemaMergeCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        sourceApiAssociationStatus: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_StartSchemaMergeCommand");
    var de_TagResourceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_TagResourceCommand");
    var de_UntagResourceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_UntagResourceCommand");
    var de_UpdateApiCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        api: /* @__PURE__ */ __name2((_3) => de_Api(_3, context), "api")
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_UpdateApiCommand");
    var de_UpdateApiCacheCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        apiCache: import_smithy_client28._json
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_UpdateApiCacheCommand");
    var de_UpdateApiKeyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        apiKey: import_smithy_client28._json
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_UpdateApiKeyCommand");
    var de_UpdateChannelNamespaceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        channelNamespace: /* @__PURE__ */ __name2((_3) => de_ChannelNamespace(_3, context), "channelNamespace")
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_UpdateChannelNamespaceCommand");
    var de_UpdateDataSourceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        dataSource: import_smithy_client28._json
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_UpdateDataSourceCommand");
    var de_UpdateDomainNameCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        domainNameConfig: import_smithy_client28._json
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_UpdateDomainNameCommand");
    var de_UpdateFunctionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        functionConfiguration: import_smithy_client28._json
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_UpdateFunctionCommand");
    var de_UpdateGraphqlApiCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        graphqlApi: import_smithy_client28._json
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_UpdateGraphqlApiCommand");
    var de_UpdateResolverCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        resolver: import_smithy_client28._json
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_UpdateResolverCommand");
    var de_UpdateSourceApiAssociationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        sourceApiAssociation: /* @__PURE__ */ __name2((_3) => de_SourceApiAssociation(_3, context), "sourceApiAssociation")
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_UpdateSourceApiAssociationCommand");
    var de_UpdateTypeCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        type: import_smithy_client28._json
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_UpdateTypeCommand");
    var de_CommandError3 = /* @__PURE__ */ __name2(async (output, context) => {
      const parsedOutput = {
        ...output,
        body: await (0, import_core22.parseJsonErrorBody)(output.body, context)
      };
      const errorCode = (0, import_core22.loadRestJsonErrorCode)(output, parsedOutput.body);
      switch (errorCode) {
        case "AccessDeniedException":
        case "com.amazonaws.appsync#AccessDeniedException":
          throw await de_AccessDeniedExceptionRes2(parsedOutput, context);
        case "BadRequestException":
        case "com.amazonaws.appsync#BadRequestException":
          throw await de_BadRequestExceptionRes(parsedOutput, context);
        case "InternalFailureException":
        case "com.amazonaws.appsync#InternalFailureException":
          throw await de_InternalFailureExceptionRes(parsedOutput, context);
        case "NotFoundException":
        case "com.amazonaws.appsync#NotFoundException":
          throw await de_NotFoundExceptionRes(parsedOutput, context);
        case "ConcurrentModificationException":
        case "com.amazonaws.appsync#ConcurrentModificationException":
          throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
        case "LimitExceededException":
        case "com.amazonaws.appsync#LimitExceededException":
          throw await de_LimitExceededExceptionRes(parsedOutput, context);
        case "UnauthorizedException":
        case "com.amazonaws.appsync#UnauthorizedException":
          throw await de_UnauthorizedExceptionRes(parsedOutput, context);
        case "ServiceQuotaExceededException":
        case "com.amazonaws.appsync#ServiceQuotaExceededException":
          throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
        case "ApiKeyLimitExceededException":
        case "com.amazonaws.appsync#ApiKeyLimitExceededException":
          throw await de_ApiKeyLimitExceededExceptionRes(parsedOutput, context);
        case "ApiKeyValidityOutOfBoundsException":
        case "com.amazonaws.appsync#ApiKeyValidityOutOfBoundsException":
          throw await de_ApiKeyValidityOutOfBoundsExceptionRes(parsedOutput, context);
        case "ConflictException":
        case "com.amazonaws.appsync#ConflictException":
          throw await de_ConflictExceptionRes(parsedOutput, context);
        case "ApiLimitExceededException":
        case "com.amazonaws.appsync#ApiLimitExceededException":
          throw await de_ApiLimitExceededExceptionRes(parsedOutput, context);
        case "GraphQLSchemaException":
        case "com.amazonaws.appsync#GraphQLSchemaException":
          throw await de_GraphQLSchemaExceptionRes(parsedOutput, context);
        default:
          const parsedBody = parsedOutput.body;
          return throwDefaultError3({
            output,
            parsedBody,
            errorCode
          });
      }
    }, "de_CommandError");
    var throwDefaultError3 = (0, import_smithy_client28.withBaseException)(AppSyncServiceException);
    var de_AccessDeniedExceptionRes2 = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client28.take)(data3, {
        message: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      const exception = new AccessDeniedException2({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_AccessDeniedExceptionRes");
    var de_ApiKeyLimitExceededExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client28.take)(data3, {
        message: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      const exception = new ApiKeyLimitExceededException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_ApiKeyLimitExceededExceptionRes");
    var de_ApiKeyValidityOutOfBoundsExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client28.take)(data3, {
        message: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      const exception = new ApiKeyValidityOutOfBoundsException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_ApiKeyValidityOutOfBoundsExceptionRes");
    var de_ApiLimitExceededExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client28.take)(data3, {
        message: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      const exception = new ApiLimitExceededException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_ApiLimitExceededExceptionRes");
    var de_BadRequestExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client28.take)(data3, {
        detail: import_smithy_client28._json,
        message: import_smithy_client28.expectString,
        reason: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      const exception = new BadRequestException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_BadRequestExceptionRes");
    var de_ConcurrentModificationExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client28.take)(data3, {
        message: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      const exception = new ConcurrentModificationException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_ConcurrentModificationExceptionRes");
    var de_ConflictExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client28.take)(data3, {
        message: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      const exception = new ConflictException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_ConflictExceptionRes");
    var de_GraphQLSchemaExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client28.take)(data3, {
        message: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      const exception = new GraphQLSchemaException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_GraphQLSchemaExceptionRes");
    var de_InternalFailureExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client28.take)(data3, {
        message: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      const exception = new InternalFailureException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_InternalFailureExceptionRes");
    var de_LimitExceededExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client28.take)(data3, {
        message: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      const exception = new LimitExceededException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_LimitExceededExceptionRes");
    var de_NotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client28.take)(data3, {
        message: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      const exception = new NotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_NotFoundExceptionRes");
    var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client28.take)(data3, {
        message: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      const exception = new ServiceQuotaExceededException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_ServiceQuotaExceededExceptionRes");
    var de_UnauthorizedExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client28.take)(data3, {
        message: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      const exception = new UnauthorizedException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_UnauthorizedExceptionRes");
    var de_Api = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        apiArn: import_smithy_client28.expectString,
        apiId: import_smithy_client28.expectString,
        created: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "created"),
        dns: import_smithy_client28._json,
        eventConfig: import_smithy_client28._json,
        name: import_smithy_client28.expectString,
        ownerContact: import_smithy_client28.expectString,
        tags: import_smithy_client28._json,
        wafWebAclArn: import_smithy_client28.expectString,
        xrayEnabled: import_smithy_client28.expectBoolean
      });
    }, "de_Api");
    var de_Apis = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Api(entry, context);
      });
      return retVal;
    }, "de_Apis");
    var de_ChannelNamespace = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        apiId: import_smithy_client28.expectString,
        channelNamespaceArn: import_smithy_client28.expectString,
        codeHandlers: import_smithy_client28.expectString,
        created: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "created"),
        handlerConfigs: import_smithy_client28._json,
        lastModified: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "lastModified"),
        name: import_smithy_client28.expectString,
        publishAuthModes: import_smithy_client28._json,
        subscribeAuthModes: import_smithy_client28._json,
        tags: import_smithy_client28._json
      });
    }, "de_ChannelNamespace");
    var de_ChannelNamespaces = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ChannelNamespace(entry, context);
      });
      return retVal;
    }, "de_ChannelNamespaces");
    var de_DataSourceIntrospectionModel = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        fields: /* @__PURE__ */ __name2((_3) => de_DataSourceIntrospectionModelFields(_3, context), "fields"),
        indexes: import_smithy_client28._json,
        name: import_smithy_client28.expectString,
        primaryKey: import_smithy_client28._json,
        sdl: import_smithy_client28.expectString
      });
    }, "de_DataSourceIntrospectionModel");
    var de_DataSourceIntrospectionModelField = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        length: import_smithy_client28.expectLong,
        name: import_smithy_client28.expectString,
        type: /* @__PURE__ */ __name2((_3) => de_DataSourceIntrospectionModelFieldType(_3, context), "type")
      });
    }, "de_DataSourceIntrospectionModelField");
    var de_DataSourceIntrospectionModelFields = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_DataSourceIntrospectionModelField(entry, context);
      });
      return retVal;
    }, "de_DataSourceIntrospectionModelFields");
    var de_DataSourceIntrospectionModelFieldType = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        kind: import_smithy_client28.expectString,
        name: import_smithy_client28.expectString,
        type: /* @__PURE__ */ __name2((_3) => de_DataSourceIntrospectionModelFieldType(_3, context), "type"),
        values: import_smithy_client28._json
      });
    }, "de_DataSourceIntrospectionModelFieldType");
    var de_DataSourceIntrospectionModels = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_DataSourceIntrospectionModel(entry, context);
      });
      return retVal;
    }, "de_DataSourceIntrospectionModels");
    var de_DataSourceIntrospectionResult = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        models: /* @__PURE__ */ __name2((_3) => de_DataSourceIntrospectionModels(_3, context), "models"),
        nextToken: import_smithy_client28.expectString
      });
    }, "de_DataSourceIntrospectionResult");
    var de_SourceApiAssociation = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        associationArn: import_smithy_client28.expectString,
        associationId: import_smithy_client28.expectString,
        description: import_smithy_client28.expectString,
        lastSuccessfulMergeDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "lastSuccessfulMergeDate"),
        mergedApiArn: import_smithy_client28.expectString,
        mergedApiId: import_smithy_client28.expectString,
        sourceApiArn: import_smithy_client28.expectString,
        sourceApiAssociationConfig: import_smithy_client28._json,
        sourceApiAssociationStatus: import_smithy_client28.expectString,
        sourceApiAssociationStatusDetail: import_smithy_client28.expectString,
        sourceApiId: import_smithy_client28.expectString
      });
    }, "de_SourceApiAssociation");
    var deserializeMetadata3 = /* @__PURE__ */ __name2((output) => ({
      httpStatusCode: output.statusCode,
      requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
      extendedRequestId: output.headers["x-amz-id-2"],
      cfId: output.headers["x-amz-cf-id"]
    }), "deserializeMetadata");
    var _aT = "apiType";
    var _f = "format";
    var _iD = "includeDirectives";
    var _iMSDL = "includeModelsSDL";
    var _mR = "maxResults";
    var _nT = "nextToken";
    var _o = "owner";
    var _tK = "tagKeys";
    var AssociateApiCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "AssociateApi", {}).n("AppSyncClient", "AssociateApiCommand").f(void 0, void 0).ser(se_AssociateApiCommand).de(de_AssociateApiCommand).build() {
      static {
        __name(this, "AssociateApiCommand");
      }
      static {
        __name2(this, "AssociateApiCommand");
      }
    };
    var AssociateMergedGraphqlApiCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "AssociateMergedGraphqlApi", {}).n("AppSyncClient", "AssociateMergedGraphqlApiCommand").f(void 0, void 0).ser(se_AssociateMergedGraphqlApiCommand).de(de_AssociateMergedGraphqlApiCommand).build() {
      static {
        __name(this, "AssociateMergedGraphqlApiCommand");
      }
      static {
        __name2(this, "AssociateMergedGraphqlApiCommand");
      }
    };
    var AssociateSourceGraphqlApiCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "AssociateSourceGraphqlApi", {}).n("AppSyncClient", "AssociateSourceGraphqlApiCommand").f(void 0, void 0).ser(se_AssociateSourceGraphqlApiCommand).de(de_AssociateSourceGraphqlApiCommand).build() {
      static {
        __name(this, "AssociateSourceGraphqlApiCommand");
      }
      static {
        __name2(this, "AssociateSourceGraphqlApiCommand");
      }
    };
    var CreateApiCacheCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "CreateApiCache", {}).n("AppSyncClient", "CreateApiCacheCommand").f(void 0, void 0).ser(se_CreateApiCacheCommand).de(de_CreateApiCacheCommand).build() {
      static {
        __name(this, "CreateApiCacheCommand");
      }
      static {
        __name2(this, "CreateApiCacheCommand");
      }
    };
    var CreateApiCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "CreateApi", {}).n("AppSyncClient", "CreateApiCommand").f(void 0, void 0).ser(se_CreateApiCommand).de(de_CreateApiCommand).build() {
      static {
        __name(this, "CreateApiCommand");
      }
      static {
        __name2(this, "CreateApiCommand");
      }
    };
    var CreateApiKeyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "CreateApiKey", {}).n("AppSyncClient", "CreateApiKeyCommand").f(void 0, void 0).ser(se_CreateApiKeyCommand).de(de_CreateApiKeyCommand).build() {
      static {
        __name(this, "CreateApiKeyCommand");
      }
      static {
        __name2(this, "CreateApiKeyCommand");
      }
    };
    var CreateChannelNamespaceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "CreateChannelNamespace", {}).n("AppSyncClient", "CreateChannelNamespaceCommand").f(void 0, void 0).ser(se_CreateChannelNamespaceCommand).de(de_CreateChannelNamespaceCommand).build() {
      static {
        __name(this, "CreateChannelNamespaceCommand");
      }
      static {
        __name2(this, "CreateChannelNamespaceCommand");
      }
    };
    var CreateDataSourceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "CreateDataSource", {}).n("AppSyncClient", "CreateDataSourceCommand").f(void 0, void 0).ser(se_CreateDataSourceCommand).de(de_CreateDataSourceCommand).build() {
      static {
        __name(this, "CreateDataSourceCommand");
      }
      static {
        __name2(this, "CreateDataSourceCommand");
      }
    };
    var CreateDomainNameCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "CreateDomainName", {}).n("AppSyncClient", "CreateDomainNameCommand").f(void 0, void 0).ser(se_CreateDomainNameCommand).de(de_CreateDomainNameCommand).build() {
      static {
        __name(this, "CreateDomainNameCommand");
      }
      static {
        __name2(this, "CreateDomainNameCommand");
      }
    };
    var CreateFunctionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "CreateFunction", {}).n("AppSyncClient", "CreateFunctionCommand").f(void 0, void 0).ser(se_CreateFunctionCommand).de(de_CreateFunctionCommand).build() {
      static {
        __name(this, "CreateFunctionCommand");
      }
      static {
        __name2(this, "CreateFunctionCommand");
      }
    };
    var CreateGraphqlApiCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "CreateGraphqlApi", {}).n("AppSyncClient", "CreateGraphqlApiCommand").f(void 0, void 0).ser(se_CreateGraphqlApiCommand).de(de_CreateGraphqlApiCommand).build() {
      static {
        __name(this, "CreateGraphqlApiCommand");
      }
      static {
        __name2(this, "CreateGraphqlApiCommand");
      }
    };
    var CreateResolverCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "CreateResolver", {}).n("AppSyncClient", "CreateResolverCommand").f(void 0, void 0).ser(se_CreateResolverCommand).de(de_CreateResolverCommand).build() {
      static {
        __name(this, "CreateResolverCommand");
      }
      static {
        __name2(this, "CreateResolverCommand");
      }
    };
    var CreateTypeCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "CreateType", {}).n("AppSyncClient", "CreateTypeCommand").f(void 0, void 0).ser(se_CreateTypeCommand).de(de_CreateTypeCommand).build() {
      static {
        __name(this, "CreateTypeCommand");
      }
      static {
        __name2(this, "CreateTypeCommand");
      }
    };
    var DeleteApiCacheCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "DeleteApiCache", {}).n("AppSyncClient", "DeleteApiCacheCommand").f(void 0, void 0).ser(se_DeleteApiCacheCommand).de(de_DeleteApiCacheCommand).build() {
      static {
        __name(this, "DeleteApiCacheCommand");
      }
      static {
        __name2(this, "DeleteApiCacheCommand");
      }
    };
    var DeleteApiCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "DeleteApi", {}).n("AppSyncClient", "DeleteApiCommand").f(void 0, void 0).ser(se_DeleteApiCommand).de(de_DeleteApiCommand).build() {
      static {
        __name(this, "DeleteApiCommand");
      }
      static {
        __name2(this, "DeleteApiCommand");
      }
    };
    var DeleteApiKeyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "DeleteApiKey", {}).n("AppSyncClient", "DeleteApiKeyCommand").f(void 0, void 0).ser(se_DeleteApiKeyCommand).de(de_DeleteApiKeyCommand).build() {
      static {
        __name(this, "DeleteApiKeyCommand");
      }
      static {
        __name2(this, "DeleteApiKeyCommand");
      }
    };
    var DeleteChannelNamespaceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "DeleteChannelNamespace", {}).n("AppSyncClient", "DeleteChannelNamespaceCommand").f(void 0, void 0).ser(se_DeleteChannelNamespaceCommand).de(de_DeleteChannelNamespaceCommand).build() {
      static {
        __name(this, "DeleteChannelNamespaceCommand");
      }
      static {
        __name2(this, "DeleteChannelNamespaceCommand");
      }
    };
    var DeleteDataSourceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "DeleteDataSource", {}).n("AppSyncClient", "DeleteDataSourceCommand").f(void 0, void 0).ser(se_DeleteDataSourceCommand).de(de_DeleteDataSourceCommand).build() {
      static {
        __name(this, "DeleteDataSourceCommand");
      }
      static {
        __name2(this, "DeleteDataSourceCommand");
      }
    };
    var DeleteDomainNameCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "DeleteDomainName", {}).n("AppSyncClient", "DeleteDomainNameCommand").f(void 0, void 0).ser(se_DeleteDomainNameCommand).de(de_DeleteDomainNameCommand).build() {
      static {
        __name(this, "DeleteDomainNameCommand");
      }
      static {
        __name2(this, "DeleteDomainNameCommand");
      }
    };
    var DeleteFunctionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "DeleteFunction", {}).n("AppSyncClient", "DeleteFunctionCommand").f(void 0, void 0).ser(se_DeleteFunctionCommand).de(de_DeleteFunctionCommand).build() {
      static {
        __name(this, "DeleteFunctionCommand");
      }
      static {
        __name2(this, "DeleteFunctionCommand");
      }
    };
    var DeleteGraphqlApiCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "DeleteGraphqlApi", {}).n("AppSyncClient", "DeleteGraphqlApiCommand").f(void 0, void 0).ser(se_DeleteGraphqlApiCommand).de(de_DeleteGraphqlApiCommand).build() {
      static {
        __name(this, "DeleteGraphqlApiCommand");
      }
      static {
        __name2(this, "DeleteGraphqlApiCommand");
      }
    };
    var DeleteResolverCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "DeleteResolver", {}).n("AppSyncClient", "DeleteResolverCommand").f(void 0, void 0).ser(se_DeleteResolverCommand).de(de_DeleteResolverCommand).build() {
      static {
        __name(this, "DeleteResolverCommand");
      }
      static {
        __name2(this, "DeleteResolverCommand");
      }
    };
    var DeleteTypeCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "DeleteType", {}).n("AppSyncClient", "DeleteTypeCommand").f(void 0, void 0).ser(se_DeleteTypeCommand).de(de_DeleteTypeCommand).build() {
      static {
        __name(this, "DeleteTypeCommand");
      }
      static {
        __name2(this, "DeleteTypeCommand");
      }
    };
    var DisassociateApiCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "DisassociateApi", {}).n("AppSyncClient", "DisassociateApiCommand").f(void 0, void 0).ser(se_DisassociateApiCommand).de(de_DisassociateApiCommand).build() {
      static {
        __name(this, "DisassociateApiCommand");
      }
      static {
        __name2(this, "DisassociateApiCommand");
      }
    };
    var DisassociateMergedGraphqlApiCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "DisassociateMergedGraphqlApi", {}).n("AppSyncClient", "DisassociateMergedGraphqlApiCommand").f(void 0, void 0).ser(se_DisassociateMergedGraphqlApiCommand).de(de_DisassociateMergedGraphqlApiCommand).build() {
      static {
        __name(this, "DisassociateMergedGraphqlApiCommand");
      }
      static {
        __name2(this, "DisassociateMergedGraphqlApiCommand");
      }
    };
    var DisassociateSourceGraphqlApiCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "DisassociateSourceGraphqlApi", {}).n("AppSyncClient", "DisassociateSourceGraphqlApiCommand").f(void 0, void 0).ser(se_DisassociateSourceGraphqlApiCommand).de(de_DisassociateSourceGraphqlApiCommand).build() {
      static {
        __name(this, "DisassociateSourceGraphqlApiCommand");
      }
      static {
        __name2(this, "DisassociateSourceGraphqlApiCommand");
      }
    };
    var EvaluateCodeCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "EvaluateCode", {}).n("AppSyncClient", "EvaluateCodeCommand").f(void 0, void 0).ser(se_EvaluateCodeCommand).de(de_EvaluateCodeCommand).build() {
      static {
        __name(this, "EvaluateCodeCommand");
      }
      static {
        __name2(this, "EvaluateCodeCommand");
      }
    };
    var EvaluateMappingTemplateCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "EvaluateMappingTemplate", {}).n("AppSyncClient", "EvaluateMappingTemplateCommand").f(void 0, void 0).ser(se_EvaluateMappingTemplateCommand).de(de_EvaluateMappingTemplateCommand).build() {
      static {
        __name(this, "EvaluateMappingTemplateCommand");
      }
      static {
        __name2(this, "EvaluateMappingTemplateCommand");
      }
    };
    var FlushApiCacheCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "FlushApiCache", {}).n("AppSyncClient", "FlushApiCacheCommand").f(void 0, void 0).ser(se_FlushApiCacheCommand).de(de_FlushApiCacheCommand).build() {
      static {
        __name(this, "FlushApiCacheCommand");
      }
      static {
        __name2(this, "FlushApiCacheCommand");
      }
    };
    var GetApiAssociationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "GetApiAssociation", {}).n("AppSyncClient", "GetApiAssociationCommand").f(void 0, void 0).ser(se_GetApiAssociationCommand).de(de_GetApiAssociationCommand).build() {
      static {
        __name(this, "GetApiAssociationCommand");
      }
      static {
        __name2(this, "GetApiAssociationCommand");
      }
    };
    var GetApiCacheCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "GetApiCache", {}).n("AppSyncClient", "GetApiCacheCommand").f(void 0, void 0).ser(se_GetApiCacheCommand).de(de_GetApiCacheCommand).build() {
      static {
        __name(this, "GetApiCacheCommand");
      }
      static {
        __name2(this, "GetApiCacheCommand");
      }
    };
    var GetApiCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "GetApi", {}).n("AppSyncClient", "GetApiCommand").f(void 0, void 0).ser(se_GetApiCommand).de(de_GetApiCommand).build() {
      static {
        __name(this, "GetApiCommand");
      }
      static {
        __name2(this, "GetApiCommand");
      }
    };
    var GetChannelNamespaceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "GetChannelNamespace", {}).n("AppSyncClient", "GetChannelNamespaceCommand").f(void 0, void 0).ser(se_GetChannelNamespaceCommand).de(de_GetChannelNamespaceCommand).build() {
      static {
        __name(this, "GetChannelNamespaceCommand");
      }
      static {
        __name2(this, "GetChannelNamespaceCommand");
      }
    };
    var GetDataSourceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "GetDataSource", {}).n("AppSyncClient", "GetDataSourceCommand").f(void 0, void 0).ser(se_GetDataSourceCommand).de(de_GetDataSourceCommand).build() {
      static {
        __name(this, "GetDataSourceCommand");
      }
      static {
        __name2(this, "GetDataSourceCommand");
      }
    };
    var GetDataSourceIntrospectionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "GetDataSourceIntrospection", {}).n("AppSyncClient", "GetDataSourceIntrospectionCommand").f(void 0, void 0).ser(se_GetDataSourceIntrospectionCommand).de(de_GetDataSourceIntrospectionCommand).build() {
      static {
        __name(this, "GetDataSourceIntrospectionCommand");
      }
      static {
        __name2(this, "GetDataSourceIntrospectionCommand");
      }
    };
    var GetDomainNameCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "GetDomainName", {}).n("AppSyncClient", "GetDomainNameCommand").f(void 0, void 0).ser(se_GetDomainNameCommand).de(de_GetDomainNameCommand).build() {
      static {
        __name(this, "GetDomainNameCommand");
      }
      static {
        __name2(this, "GetDomainNameCommand");
      }
    };
    var GetFunctionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "GetFunction", {}).n("AppSyncClient", "GetFunctionCommand").f(void 0, void 0).ser(se_GetFunctionCommand).de(de_GetFunctionCommand).build() {
      static {
        __name(this, "GetFunctionCommand");
      }
      static {
        __name2(this, "GetFunctionCommand");
      }
    };
    var GetGraphqlApiCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "GetGraphqlApi", {}).n("AppSyncClient", "GetGraphqlApiCommand").f(void 0, void 0).ser(se_GetGraphqlApiCommand).de(de_GetGraphqlApiCommand).build() {
      static {
        __name(this, "GetGraphqlApiCommand");
      }
      static {
        __name2(this, "GetGraphqlApiCommand");
      }
    };
    var GetGraphqlApiEnvironmentVariablesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "GetGraphqlApiEnvironmentVariables", {}).n("AppSyncClient", "GetGraphqlApiEnvironmentVariablesCommand").f(void 0, void 0).ser(se_GetGraphqlApiEnvironmentVariablesCommand).de(de_GetGraphqlApiEnvironmentVariablesCommand).build() {
      static {
        __name(this, "GetGraphqlApiEnvironmentVariablesCommand");
      }
      static {
        __name2(this, "GetGraphqlApiEnvironmentVariablesCommand");
      }
    };
    var GetIntrospectionSchemaCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "GetIntrospectionSchema", {}).n("AppSyncClient", "GetIntrospectionSchemaCommand").f(void 0, void 0).ser(se_GetIntrospectionSchemaCommand).de(de_GetIntrospectionSchemaCommand).build() {
      static {
        __name(this, "GetIntrospectionSchemaCommand");
      }
      static {
        __name2(this, "GetIntrospectionSchemaCommand");
      }
    };
    var GetResolverCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "GetResolver", {}).n("AppSyncClient", "GetResolverCommand").f(void 0, void 0).ser(se_GetResolverCommand).de(de_GetResolverCommand).build() {
      static {
        __name(this, "GetResolverCommand");
      }
      static {
        __name2(this, "GetResolverCommand");
      }
    };
    var GetSchemaCreationStatusCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "GetSchemaCreationStatus", {}).n("AppSyncClient", "GetSchemaCreationStatusCommand").f(void 0, void 0).ser(se_GetSchemaCreationStatusCommand).de(de_GetSchemaCreationStatusCommand).build() {
      static {
        __name(this, "GetSchemaCreationStatusCommand");
      }
      static {
        __name2(this, "GetSchemaCreationStatusCommand");
      }
    };
    var GetSourceApiAssociationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "GetSourceApiAssociation", {}).n("AppSyncClient", "GetSourceApiAssociationCommand").f(void 0, void 0).ser(se_GetSourceApiAssociationCommand).de(de_GetSourceApiAssociationCommand).build() {
      static {
        __name(this, "GetSourceApiAssociationCommand");
      }
      static {
        __name2(this, "GetSourceApiAssociationCommand");
      }
    };
    var GetTypeCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "GetType", {}).n("AppSyncClient", "GetTypeCommand").f(void 0, void 0).ser(se_GetTypeCommand).de(de_GetTypeCommand).build() {
      static {
        __name(this, "GetTypeCommand");
      }
      static {
        __name2(this, "GetTypeCommand");
      }
    };
    var ListApiKeysCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "ListApiKeys", {}).n("AppSyncClient", "ListApiKeysCommand").f(void 0, void 0).ser(se_ListApiKeysCommand).de(de_ListApiKeysCommand).build() {
      static {
        __name(this, "ListApiKeysCommand");
      }
      static {
        __name2(this, "ListApiKeysCommand");
      }
    };
    var ListApisCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "ListApis", {}).n("AppSyncClient", "ListApisCommand").f(void 0, void 0).ser(se_ListApisCommand).de(de_ListApisCommand).build() {
      static {
        __name(this, "ListApisCommand");
      }
      static {
        __name2(this, "ListApisCommand");
      }
    };
    var ListChannelNamespacesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "ListChannelNamespaces", {}).n("AppSyncClient", "ListChannelNamespacesCommand").f(void 0, void 0).ser(se_ListChannelNamespacesCommand).de(de_ListChannelNamespacesCommand).build() {
      static {
        __name(this, "ListChannelNamespacesCommand");
      }
      static {
        __name2(this, "ListChannelNamespacesCommand");
      }
    };
    var ListDataSourcesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "ListDataSources", {}).n("AppSyncClient", "ListDataSourcesCommand").f(void 0, void 0).ser(se_ListDataSourcesCommand).de(de_ListDataSourcesCommand).build() {
      static {
        __name(this, "ListDataSourcesCommand");
      }
      static {
        __name2(this, "ListDataSourcesCommand");
      }
    };
    var ListDomainNamesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "ListDomainNames", {}).n("AppSyncClient", "ListDomainNamesCommand").f(void 0, void 0).ser(se_ListDomainNamesCommand).de(de_ListDomainNamesCommand).build() {
      static {
        __name(this, "ListDomainNamesCommand");
      }
      static {
        __name2(this, "ListDomainNamesCommand");
      }
    };
    var ListFunctionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "ListFunctions", {}).n("AppSyncClient", "ListFunctionsCommand").f(void 0, void 0).ser(se_ListFunctionsCommand).de(de_ListFunctionsCommand).build() {
      static {
        __name(this, "ListFunctionsCommand");
      }
      static {
        __name2(this, "ListFunctionsCommand");
      }
    };
    var ListGraphqlApisCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "ListGraphqlApis", {}).n("AppSyncClient", "ListGraphqlApisCommand").f(void 0, void 0).ser(se_ListGraphqlApisCommand).de(de_ListGraphqlApisCommand).build() {
      static {
        __name(this, "ListGraphqlApisCommand");
      }
      static {
        __name2(this, "ListGraphqlApisCommand");
      }
    };
    var ListResolversByFunctionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "ListResolversByFunction", {}).n("AppSyncClient", "ListResolversByFunctionCommand").f(void 0, void 0).ser(se_ListResolversByFunctionCommand).de(de_ListResolversByFunctionCommand).build() {
      static {
        __name(this, "ListResolversByFunctionCommand");
      }
      static {
        __name2(this, "ListResolversByFunctionCommand");
      }
    };
    var ListResolversCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "ListResolvers", {}).n("AppSyncClient", "ListResolversCommand").f(void 0, void 0).ser(se_ListResolversCommand).de(de_ListResolversCommand).build() {
      static {
        __name(this, "ListResolversCommand");
      }
      static {
        __name2(this, "ListResolversCommand");
      }
    };
    var ListSourceApiAssociationsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "ListSourceApiAssociations", {}).n("AppSyncClient", "ListSourceApiAssociationsCommand").f(void 0, void 0).ser(se_ListSourceApiAssociationsCommand).de(de_ListSourceApiAssociationsCommand).build() {
      static {
        __name(this, "ListSourceApiAssociationsCommand");
      }
      static {
        __name2(this, "ListSourceApiAssociationsCommand");
      }
    };
    var ListTagsForResourceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "ListTagsForResource", {}).n("AppSyncClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
      static {
        __name(this, "ListTagsForResourceCommand");
      }
      static {
        __name2(this, "ListTagsForResourceCommand");
      }
    };
    var ListTypesByAssociationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "ListTypesByAssociation", {}).n("AppSyncClient", "ListTypesByAssociationCommand").f(void 0, void 0).ser(se_ListTypesByAssociationCommand).de(de_ListTypesByAssociationCommand).build() {
      static {
        __name(this, "ListTypesByAssociationCommand");
      }
      static {
        __name2(this, "ListTypesByAssociationCommand");
      }
    };
    var ListTypesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "ListTypes", {}).n("AppSyncClient", "ListTypesCommand").f(void 0, void 0).ser(se_ListTypesCommand).de(de_ListTypesCommand).build() {
      static {
        __name(this, "ListTypesCommand");
      }
      static {
        __name2(this, "ListTypesCommand");
      }
    };
    var PutGraphqlApiEnvironmentVariablesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "PutGraphqlApiEnvironmentVariables", {}).n("AppSyncClient", "PutGraphqlApiEnvironmentVariablesCommand").f(void 0, void 0).ser(se_PutGraphqlApiEnvironmentVariablesCommand).de(de_PutGraphqlApiEnvironmentVariablesCommand).build() {
      static {
        __name(this, "PutGraphqlApiEnvironmentVariablesCommand");
      }
      static {
        __name2(this, "PutGraphqlApiEnvironmentVariablesCommand");
      }
    };
    var StartDataSourceIntrospectionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "StartDataSourceIntrospection", {}).n("AppSyncClient", "StartDataSourceIntrospectionCommand").f(void 0, void 0).ser(se_StartDataSourceIntrospectionCommand).de(de_StartDataSourceIntrospectionCommand).build() {
      static {
        __name(this, "StartDataSourceIntrospectionCommand");
      }
      static {
        __name2(this, "StartDataSourceIntrospectionCommand");
      }
    };
    var StartSchemaCreationCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "StartSchemaCreation", {}).n("AppSyncClient", "StartSchemaCreationCommand").f(void 0, void 0).ser(se_StartSchemaCreationCommand).de(de_StartSchemaCreationCommand).build() {
      static {
        __name(this, "StartSchemaCreationCommand");
      }
      static {
        __name2(this, "StartSchemaCreationCommand");
      }
    };
    var StartSchemaMergeCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "StartSchemaMerge", {}).n("AppSyncClient", "StartSchemaMergeCommand").f(void 0, void 0).ser(se_StartSchemaMergeCommand).de(de_StartSchemaMergeCommand).build() {
      static {
        __name(this, "StartSchemaMergeCommand");
      }
      static {
        __name2(this, "StartSchemaMergeCommand");
      }
    };
    var TagResourceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "TagResource", {}).n("AppSyncClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
      static {
        __name(this, "TagResourceCommand");
      }
      static {
        __name2(this, "TagResourceCommand");
      }
    };
    var UntagResourceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "UntagResource", {}).n("AppSyncClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
      static {
        __name(this, "UntagResourceCommand");
      }
      static {
        __name2(this, "UntagResourceCommand");
      }
    };
    var UpdateApiCacheCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "UpdateApiCache", {}).n("AppSyncClient", "UpdateApiCacheCommand").f(void 0, void 0).ser(se_UpdateApiCacheCommand).de(de_UpdateApiCacheCommand).build() {
      static {
        __name(this, "UpdateApiCacheCommand");
      }
      static {
        __name2(this, "UpdateApiCacheCommand");
      }
    };
    var UpdateApiCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "UpdateApi", {}).n("AppSyncClient", "UpdateApiCommand").f(void 0, void 0).ser(se_UpdateApiCommand).de(de_UpdateApiCommand).build() {
      static {
        __name(this, "UpdateApiCommand");
      }
      static {
        __name2(this, "UpdateApiCommand");
      }
    };
    var UpdateApiKeyCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "UpdateApiKey", {}).n("AppSyncClient", "UpdateApiKeyCommand").f(void 0, void 0).ser(se_UpdateApiKeyCommand).de(de_UpdateApiKeyCommand).build() {
      static {
        __name(this, "UpdateApiKeyCommand");
      }
      static {
        __name2(this, "UpdateApiKeyCommand");
      }
    };
    var UpdateChannelNamespaceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "UpdateChannelNamespace", {}).n("AppSyncClient", "UpdateChannelNamespaceCommand").f(void 0, void 0).ser(se_UpdateChannelNamespaceCommand).de(de_UpdateChannelNamespaceCommand).build() {
      static {
        __name(this, "UpdateChannelNamespaceCommand");
      }
      static {
        __name2(this, "UpdateChannelNamespaceCommand");
      }
    };
    var UpdateDataSourceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "UpdateDataSource", {}).n("AppSyncClient", "UpdateDataSourceCommand").f(void 0, void 0).ser(se_UpdateDataSourceCommand).de(de_UpdateDataSourceCommand).build() {
      static {
        __name(this, "UpdateDataSourceCommand");
      }
      static {
        __name2(this, "UpdateDataSourceCommand");
      }
    };
    var UpdateDomainNameCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "UpdateDomainName", {}).n("AppSyncClient", "UpdateDomainNameCommand").f(void 0, void 0).ser(se_UpdateDomainNameCommand).de(de_UpdateDomainNameCommand).build() {
      static {
        __name(this, "UpdateDomainNameCommand");
      }
      static {
        __name2(this, "UpdateDomainNameCommand");
      }
    };
    var UpdateFunctionCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "UpdateFunction", {}).n("AppSyncClient", "UpdateFunctionCommand").f(void 0, void 0).ser(se_UpdateFunctionCommand).de(de_UpdateFunctionCommand).build() {
      static {
        __name(this, "UpdateFunctionCommand");
      }
      static {
        __name2(this, "UpdateFunctionCommand");
      }
    };
    var UpdateGraphqlApiCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "UpdateGraphqlApi", {}).n("AppSyncClient", "UpdateGraphqlApiCommand").f(void 0, void 0).ser(se_UpdateGraphqlApiCommand).de(de_UpdateGraphqlApiCommand).build() {
      static {
        __name(this, "UpdateGraphqlApiCommand");
      }
      static {
        __name2(this, "UpdateGraphqlApiCommand");
      }
    };
    var UpdateResolverCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "UpdateResolver", {}).n("AppSyncClient", "UpdateResolverCommand").f(void 0, void 0).ser(se_UpdateResolverCommand).de(de_UpdateResolverCommand).build() {
      static {
        __name(this, "UpdateResolverCommand");
      }
      static {
        __name2(this, "UpdateResolverCommand");
      }
    };
    var UpdateSourceApiAssociationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "UpdateSourceApiAssociation", {}).n("AppSyncClient", "UpdateSourceApiAssociationCommand").f(void 0, void 0).ser(se_UpdateSourceApiAssociationCommand).de(de_UpdateSourceApiAssociationCommand).build() {
      static {
        __name(this, "UpdateSourceApiAssociationCommand");
      }
      static {
        __name2(this, "UpdateSourceApiAssociationCommand");
      }
    };
    var UpdateTypeCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDeepdishControlPlaneService", "UpdateType", {}).n("AppSyncClient", "UpdateTypeCommand").f(void 0, void 0).ser(se_UpdateTypeCommand).de(de_UpdateTypeCommand).build() {
      static {
        __name(this, "UpdateTypeCommand");
      }
      static {
        __name2(this, "UpdateTypeCommand");
      }
    };
    var commands3 = {
      AssociateApiCommand,
      AssociateMergedGraphqlApiCommand,
      AssociateSourceGraphqlApiCommand,
      CreateApiCommand,
      CreateApiCacheCommand,
      CreateApiKeyCommand,
      CreateChannelNamespaceCommand,
      CreateDataSourceCommand,
      CreateDomainNameCommand,
      CreateFunctionCommand,
      CreateGraphqlApiCommand,
      CreateResolverCommand,
      CreateTypeCommand,
      DeleteApiCommand,
      DeleteApiCacheCommand,
      DeleteApiKeyCommand,
      DeleteChannelNamespaceCommand,
      DeleteDataSourceCommand,
      DeleteDomainNameCommand,
      DeleteFunctionCommand,
      DeleteGraphqlApiCommand,
      DeleteResolverCommand,
      DeleteTypeCommand,
      DisassociateApiCommand,
      DisassociateMergedGraphqlApiCommand,
      DisassociateSourceGraphqlApiCommand,
      EvaluateCodeCommand,
      EvaluateMappingTemplateCommand,
      FlushApiCacheCommand,
      GetApiCommand,
      GetApiAssociationCommand,
      GetApiCacheCommand,
      GetChannelNamespaceCommand,
      GetDataSourceCommand,
      GetDataSourceIntrospectionCommand,
      GetDomainNameCommand,
      GetFunctionCommand,
      GetGraphqlApiCommand,
      GetGraphqlApiEnvironmentVariablesCommand,
      GetIntrospectionSchemaCommand,
      GetResolverCommand,
      GetSchemaCreationStatusCommand: GetSchemaCreationStatusCommand2,
      GetSourceApiAssociationCommand,
      GetTypeCommand,
      ListApiKeysCommand,
      ListApisCommand,
      ListChannelNamespacesCommand,
      ListDataSourcesCommand,
      ListDomainNamesCommand,
      ListFunctionsCommand,
      ListGraphqlApisCommand,
      ListResolversCommand,
      ListResolversByFunctionCommand,
      ListSourceApiAssociationsCommand,
      ListTagsForResourceCommand,
      ListTypesCommand,
      ListTypesByAssociationCommand,
      PutGraphqlApiEnvironmentVariablesCommand,
      StartDataSourceIntrospectionCommand,
      StartSchemaCreationCommand: StartSchemaCreationCommand2,
      StartSchemaMergeCommand,
      TagResourceCommand,
      UntagResourceCommand,
      UpdateApiCommand,
      UpdateApiCacheCommand,
      UpdateApiKeyCommand: UpdateApiKeyCommand2,
      UpdateChannelNamespaceCommand,
      UpdateDataSourceCommand,
      UpdateDomainNameCommand,
      UpdateFunctionCommand: UpdateFunctionCommand2,
      UpdateGraphqlApiCommand,
      UpdateResolverCommand: UpdateResolverCommand2,
      UpdateSourceApiAssociationCommand,
      UpdateTypeCommand
    };
    var AppSync = class extends AppSyncClient2 {
      static {
        __name(this, "AppSync");
      }
      static {
        __name2(this, "AppSync");
      }
    };
    (0, import_smithy_client28.createAggregatedClient)(commands3, AppSync);
    var paginateListApiKeys = (0, import_core17.createPaginator)(AppSyncClient2, ListApiKeysCommand, "nextToken", "nextToken", "maxResults");
    var paginateListApis = (0, import_core17.createPaginator)(AppSyncClient2, ListApisCommand, "nextToken", "nextToken", "maxResults");
    var paginateListChannelNamespaces = (0, import_core17.createPaginator)(AppSyncClient2, ListChannelNamespacesCommand, "nextToken", "nextToken", "maxResults");
    var paginateListDataSources = (0, import_core17.createPaginator)(AppSyncClient2, ListDataSourcesCommand, "nextToken", "nextToken", "maxResults");
    var paginateListDomainNames = (0, import_core17.createPaginator)(AppSyncClient2, ListDomainNamesCommand, "nextToken", "nextToken", "maxResults");
    var paginateListFunctions2 = (0, import_core17.createPaginator)(AppSyncClient2, ListFunctionsCommand, "nextToken", "nextToken", "maxResults");
    var paginateListGraphqlApis = (0, import_core17.createPaginator)(AppSyncClient2, ListGraphqlApisCommand, "nextToken", "nextToken", "maxResults");
    var paginateListResolversByFunction = (0, import_core17.createPaginator)(AppSyncClient2, ListResolversByFunctionCommand, "nextToken", "nextToken", "maxResults");
    var paginateListResolvers = (0, import_core17.createPaginator)(AppSyncClient2, ListResolversCommand, "nextToken", "nextToken", "maxResults");
    var paginateListSourceApiAssociations = (0, import_core17.createPaginator)(AppSyncClient2, ListSourceApiAssociationsCommand, "nextToken", "nextToken", "maxResults");
    var paginateListTypesByAssociation = (0, import_core17.createPaginator)(AppSyncClient2, ListTypesByAssociationCommand, "nextToken", "nextToken", "maxResults");
    var paginateListTypes = (0, import_core17.createPaginator)(AppSyncClient2, ListTypesCommand, "nextToken", "nextToken", "maxResults");
  }
});

// ../../node_modules/@aws-sdk/client-cloudcontrol/dist-cjs/auth/httpAuthSchemeProvider.js
var require_httpAuthSchemeProvider9 = __commonJS({
  "../../node_modules/@aws-sdk/client-cloudcontrol/dist-cjs/auth/httpAuthSchemeProvider.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.resolveHttpAuthSchemeConfig = exports2.defaultCloudControlHttpAuthSchemeProvider = exports2.defaultCloudControlHttpAuthSchemeParametersProvider = void 0;
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var util_middleware_1 = require_dist_cjs6();
    var defaultCloudControlHttpAuthSchemeParametersProvider = /* @__PURE__ */ __name(async (config, context, input) => {
      return {
        operation: (0, util_middleware_1.getSmithyContext)(context).operation,
        region: await (0, util_middleware_1.normalizeProvider)(config.region)() || (() => {
          throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
        })()
      };
    }, "defaultCloudControlHttpAuthSchemeParametersProvider");
    exports2.defaultCloudControlHttpAuthSchemeParametersProvider = defaultCloudControlHttpAuthSchemeParametersProvider;
    function createAwsAuthSigv4HttpAuthOption3(authParameters) {
      return {
        schemeId: "aws.auth#sigv4",
        signingProperties: {
          name: "cloudcontrolapi",
          region: authParameters.region
        },
        propertiesExtractor: /* @__PURE__ */ __name((config, context) => ({
          signingProperties: {
            config,
            context
          }
        }), "propertiesExtractor")
      };
    }
    __name(createAwsAuthSigv4HttpAuthOption3, "createAwsAuthSigv4HttpAuthOption");
    var defaultCloudControlHttpAuthSchemeProvider = /* @__PURE__ */ __name((authParameters) => {
      const options = [];
      switch (authParameters.operation) {
        default: {
          options.push(createAwsAuthSigv4HttpAuthOption3(authParameters));
        }
      }
      return options;
    }, "defaultCloudControlHttpAuthSchemeProvider");
    exports2.defaultCloudControlHttpAuthSchemeProvider = defaultCloudControlHttpAuthSchemeProvider;
    var resolveHttpAuthSchemeConfig3 = /* @__PURE__ */ __name((config) => {
      const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
      return Object.assign(config_0, {
        authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? [])
      });
    }, "resolveHttpAuthSchemeConfig");
    exports2.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig3;
  }
});

// ../../node_modules/@aws-sdk/client-cloudcontrol/package.json
var require_package9 = __commonJS({
  "../../node_modules/@aws-sdk/client-cloudcontrol/package.json"(exports2, module2) {
    module2.exports = {
      name: "@aws-sdk/client-cloudcontrol",
      description: "AWS SDK for JavaScript Cloudcontrol Client for Node.js, Browser and React Native",
      version: "3.879.0",
      scripts: {
        build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
        "build:cjs": "node ../../scripts/compilation/inline client-cloudcontrol",
        "build:es": "tsc -p tsconfig.es.json",
        "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
        "build:types": "tsc -p tsconfig.types.json",
        "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
        clean: "rimraf ./dist-* && rimraf *.tsbuildinfo",
        "extract:docs": "api-extractor run --local",
        "generate:client": "node ../../scripts/generate-clients/single-service --solo cloudcontrol"
      },
      main: "./dist-cjs/index.js",
      types: "./dist-types/index.d.ts",
      module: "./dist-es/index.js",
      sideEffects: false,
      dependencies: {
        "@aws-crypto/sha256-browser": "5.2.0",
        "@aws-crypto/sha256-js": "5.2.0",
        "@aws-sdk/core": "3.879.0",
        "@aws-sdk/credential-provider-node": "3.879.0",
        "@aws-sdk/middleware-host-header": "3.873.0",
        "@aws-sdk/middleware-logger": "3.876.0",
        "@aws-sdk/middleware-recursion-detection": "3.873.0",
        "@aws-sdk/middleware-user-agent": "3.879.0",
        "@aws-sdk/region-config-resolver": "3.873.0",
        "@aws-sdk/types": "3.862.0",
        "@aws-sdk/util-endpoints": "3.879.0",
        "@aws-sdk/util-user-agent-browser": "3.873.0",
        "@aws-sdk/util-user-agent-node": "3.879.0",
        "@smithy/config-resolver": "^4.1.5",
        "@smithy/core": "^3.9.0",
        "@smithy/fetch-http-handler": "^5.1.1",
        "@smithy/hash-node": "^4.0.5",
        "@smithy/invalid-dependency": "^4.0.5",
        "@smithy/middleware-content-length": "^4.0.5",
        "@smithy/middleware-endpoint": "^4.1.19",
        "@smithy/middleware-retry": "^4.1.20",
        "@smithy/middleware-serde": "^4.0.9",
        "@smithy/middleware-stack": "^4.0.5",
        "@smithy/node-config-provider": "^4.1.4",
        "@smithy/node-http-handler": "^4.1.1",
        "@smithy/protocol-http": "^5.1.3",
        "@smithy/smithy-client": "^4.5.0",
        "@smithy/types": "^4.3.2",
        "@smithy/url-parser": "^4.0.5",
        "@smithy/util-base64": "^4.0.0",
        "@smithy/util-body-length-browser": "^4.0.0",
        "@smithy/util-body-length-node": "^4.0.0",
        "@smithy/util-defaults-mode-browser": "^4.0.27",
        "@smithy/util-defaults-mode-node": "^4.0.27",
        "@smithy/util-endpoints": "^3.0.7",
        "@smithy/util-middleware": "^4.0.5",
        "@smithy/util-retry": "^4.0.7",
        "@smithy/util-utf8": "^4.0.0",
        "@smithy/util-waiter": "^4.0.7",
        "@types/uuid": "^9.0.1",
        tslib: "^2.6.2",
        uuid: "^9.0.1"
      },
      devDependencies: {
        "@tsconfig/node18": "18.2.4",
        "@types/node": "^18.19.69",
        concurrently: "7.0.0",
        "downlevel-dts": "0.10.1",
        rimraf: "3.0.2",
        typescript: "~5.8.3"
      },
      engines: {
        node: ">=18.0.0"
      },
      typesVersions: {
        "<4.0": {
          "dist-types/*": [
            "dist-types/ts3.4/*"
          ]
        }
      },
      files: [
        "dist-*/**"
      ],
      author: {
        name: "AWS SDK for JavaScript Team",
        url: "https://aws.amazon.com/javascript/"
      },
      license: "Apache-2.0",
      browser: {
        "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
      },
      "react-native": {
        "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
      },
      homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-cloudcontrol",
      repository: {
        type: "git",
        url: "https://github.com/aws/aws-sdk-js-v3.git",
        directory: "clients/client-cloudcontrol"
      }
    };
  }
});

// ../../node_modules/@aws-sdk/client-cloudcontrol/dist-cjs/endpoint/ruleset.js
var require_ruleset9 = __commonJS({
  "../../node_modules/@aws-sdk/client-cloudcontrol/dist-cjs/endpoint/ruleset.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.ruleSet = void 0;
    var s3 = "required";
    var t3 = "fn";
    var u3 = "argv";
    var v6 = "ref";
    var a3 = true;
    var b3 = "isSet";
    var c3 = "booleanEquals";
    var d3 = "error";
    var e3 = "endpoint";
    var f3 = "tree";
    var g3 = "PartitionResult";
    var h3 = { [s3]: false, "type": "String" };
    var i3 = { [s3]: true, "default": false, "type": "Boolean" };
    var j3 = { [v6]: "Endpoint" };
    var k3 = { [t3]: c3, [u3]: [{ [v6]: "UseFIPS" }, true] };
    var l3 = { [t3]: c3, [u3]: [{ [v6]: "UseDualStack" }, true] };
    var m3 = {};
    var n3 = { [t3]: "getAttr", [u3]: [{ [v6]: g3 }, "supportsFIPS"] };
    var o3 = { [t3]: c3, [u3]: [true, { [t3]: "getAttr", [u3]: [{ [v6]: g3 }, "supportsDualStack"] }] };
    var p3 = [k3];
    var q3 = [l3];
    var r3 = [{ [v6]: "Region" }];
    var _data3 = { version: "1.0", parameters: { Region: h3, UseDualStack: i3, UseFIPS: i3, Endpoint: h3 }, rules: [{ conditions: [{ [t3]: b3, [u3]: [j3] }], rules: [{ conditions: p3, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d3 }, { conditions: q3, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d3 }, { endpoint: { url: j3, properties: m3, headers: m3 }, type: e3 }], type: f3 }, { conditions: [{ [t3]: b3, [u3]: r3 }], rules: [{ conditions: [{ [t3]: "aws.partition", [u3]: r3, assign: g3 }], rules: [{ conditions: [k3, l3], rules: [{ conditions: [{ [t3]: c3, [u3]: [a3, n3] }, o3], rules: [{ endpoint: { url: "https://cloudcontrolapi-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m3, headers: m3 }, type: e3 }], type: f3 }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d3 }], type: f3 }, { conditions: p3, rules: [{ conditions: [{ [t3]: c3, [u3]: [n3, a3] }], rules: [{ endpoint: { url: "https://cloudcontrolapi-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m3, headers: m3 }, type: e3 }], type: f3 }, { error: "FIPS is enabled but this partition does not support FIPS", type: d3 }], type: f3 }, { conditions: q3, rules: [{ conditions: [o3], rules: [{ endpoint: { url: "https://cloudcontrolapi.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m3, headers: m3 }, type: e3 }], type: f3 }, { error: "DualStack is enabled but this partition does not support DualStack", type: d3 }], type: f3 }, { endpoint: { url: "https://cloudcontrolapi.{Region}.{PartitionResult#dnsSuffix}", properties: m3, headers: m3 }, type: e3 }], type: f3 }], type: f3 }, { error: "Invalid Configuration: Missing Region", type: d3 }] };
    exports2.ruleSet = _data3;
  }
});

// ../../node_modules/@aws-sdk/client-cloudcontrol/dist-cjs/endpoint/endpointResolver.js
var require_endpointResolver9 = __commonJS({
  "../../node_modules/@aws-sdk/client-cloudcontrol/dist-cjs/endpoint/endpointResolver.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.defaultEndpointResolver = void 0;
    var util_endpoints_1 = require_dist_cjs21();
    var util_endpoints_2 = require_dist_cjs18();
    var ruleset_1 = require_ruleset9();
    var cache3 = new util_endpoints_2.EndpointCache({
      size: 50,
      params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"]
    });
    var defaultEndpointResolver3 = /* @__PURE__ */ __name((endpointParams, context = {}) => {
      return cache3.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
        endpointParams,
        logger: context.logger
      }));
    }, "defaultEndpointResolver");
    exports2.defaultEndpointResolver = defaultEndpointResolver3;
    util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
  }
});

// ../../node_modules/@aws-sdk/client-cloudcontrol/dist-cjs/runtimeConfig.shared.js
var require_runtimeConfig_shared10 = __commonJS({
  "../../node_modules/@aws-sdk/client-cloudcontrol/dist-cjs/runtimeConfig.shared.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.getRuntimeConfig = void 0;
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var smithy_client_1 = require_dist_cjs26();
    var url_parser_1 = require_dist_cjs20();
    var util_base64_1 = require_dist_cjs11();
    var util_utf8_1 = require_dist_cjs10();
    var httpAuthSchemeProvider_1 = require_httpAuthSchemeProvider9();
    var endpointResolver_1 = require_endpointResolver9();
    var getRuntimeConfig5 = /* @__PURE__ */ __name((config) => {
      return {
        apiVersion: "2021-09-30",
        base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
        base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
        disableHostPrefix: config?.disableHostPrefix ?? false,
        endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
        extensions: config?.extensions ?? [],
        httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultCloudControlHttpAuthSchemeProvider,
        httpAuthSchemes: config?.httpAuthSchemes ?? [
          {
            schemeId: "aws.auth#sigv4",
            identityProvider: /* @__PURE__ */ __name((ipc) => ipc.getIdentityProvider("aws.auth#sigv4"), "identityProvider"),
            signer: new core_1.AwsSdkSigV4Signer()
          }
        ],
        logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
        serviceId: config?.serviceId ?? "CloudControl",
        urlParser: config?.urlParser ?? url_parser_1.parseUrl,
        utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
        utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8
      };
    }, "getRuntimeConfig");
    exports2.getRuntimeConfig = getRuntimeConfig5;
  }
});

// ../../node_modules/@aws-sdk/client-cloudcontrol/dist-cjs/runtimeConfig.js
var require_runtimeConfig10 = __commonJS({
  "../../node_modules/@aws-sdk/client-cloudcontrol/dist-cjs/runtimeConfig.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.getRuntimeConfig = void 0;
    var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
    var package_json_1 = tslib_1.__importDefault(require_package9());
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var credential_provider_node_1 = require_dist_cjs52();
    var util_user_agent_node_1 = require_dist_cjs41();
    var config_resolver_1 = require_dist_cjs30();
    var hash_node_1 = require_dist_cjs42();
    var middleware_retry_1 = require_dist_cjs37();
    var node_config_provider_1 = require_dist_cjs33();
    var node_http_handler_1 = require_dist_cjs14();
    var util_body_length_node_1 = require_dist_cjs43();
    var util_retry_1 = require_dist_cjs36();
    var runtimeConfig_shared_1 = require_runtimeConfig_shared10();
    var smithy_client_1 = require_dist_cjs26();
    var util_defaults_mode_node_1 = require_dist_cjs44();
    var smithy_client_2 = require_dist_cjs26();
    var getRuntimeConfig5 = /* @__PURE__ */ __name((config) => {
      (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
      const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
      const defaultConfigProvider = /* @__PURE__ */ __name(() => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode), "defaultConfigProvider");
      const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
      (0, core_1.emitWarningIfUnsupportedVersion)(process.version);
      const loaderConfig = {
        profile: config?.profile,
        logger: clientSharedValues.logger
      };
      return {
        ...clientSharedValues,
        ...config,
        runtime: "node",
        defaultsMode,
        authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
        bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
        credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
        defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
        maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
        region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
        requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
        retryMode: config?.retryMode ?? (0, node_config_provider_1.loadConfig)({
          ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
          default: /* @__PURE__ */ __name(async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE, "default")
        }, config),
        sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
        streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
        useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
        useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
        userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig)
      };
    }, "getRuntimeConfig");
    exports2.getRuntimeConfig = getRuntimeConfig5;
  }
});

// ../../node_modules/@aws-sdk/client-cloudcontrol/dist-cjs/index.js
var require_dist_cjs82 = __commonJS({
  "../../node_modules/@aws-sdk/client-cloudcontrol/dist-cjs/index.js"(exports2, module2) {
    "use strict";
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var index_exports = {};
    __export2(index_exports, {
      AlreadyExistsException: /* @__PURE__ */ __name(() => AlreadyExistsException, "AlreadyExistsException"),
      CancelResourceRequestCommand: /* @__PURE__ */ __name(() => CancelResourceRequestCommand, "CancelResourceRequestCommand"),
      CancelResourceRequestOutputFilterSensitiveLog: /* @__PURE__ */ __name(() => CancelResourceRequestOutputFilterSensitiveLog, "CancelResourceRequestOutputFilterSensitiveLog"),
      ClientTokenConflictException: /* @__PURE__ */ __name(() => ClientTokenConflictException, "ClientTokenConflictException"),
      CloudControl: /* @__PURE__ */ __name(() => CloudControl, "CloudControl"),
      CloudControlClient: /* @__PURE__ */ __name(() => CloudControlClient2, "CloudControlClient"),
      CloudControlServiceException: /* @__PURE__ */ __name(() => CloudControlServiceException, "CloudControlServiceException"),
      ConcurrentModificationException: /* @__PURE__ */ __name(() => ConcurrentModificationException, "ConcurrentModificationException"),
      ConcurrentOperationException: /* @__PURE__ */ __name(() => ConcurrentOperationException, "ConcurrentOperationException"),
      CreateResourceCommand: /* @__PURE__ */ __name(() => CreateResourceCommand, "CreateResourceCommand"),
      CreateResourceInputFilterSensitiveLog: /* @__PURE__ */ __name(() => CreateResourceInputFilterSensitiveLog, "CreateResourceInputFilterSensitiveLog"),
      CreateResourceOutputFilterSensitiveLog: /* @__PURE__ */ __name(() => CreateResourceOutputFilterSensitiveLog, "CreateResourceOutputFilterSensitiveLog"),
      DeleteResourceCommand: /* @__PURE__ */ __name(() => DeleteResourceCommand, "DeleteResourceCommand"),
      DeleteResourceOutputFilterSensitiveLog: /* @__PURE__ */ __name(() => DeleteResourceOutputFilterSensitiveLog, "DeleteResourceOutputFilterSensitiveLog"),
      GeneralServiceException: /* @__PURE__ */ __name(() => GeneralServiceException, "GeneralServiceException"),
      GetResourceCommand: /* @__PURE__ */ __name(() => GetResourceCommand2, "GetResourceCommand"),
      GetResourceOutputFilterSensitiveLog: /* @__PURE__ */ __name(() => GetResourceOutputFilterSensitiveLog, "GetResourceOutputFilterSensitiveLog"),
      GetResourceRequestStatusCommand: /* @__PURE__ */ __name(() => GetResourceRequestStatusCommand, "GetResourceRequestStatusCommand"),
      GetResourceRequestStatusOutputFilterSensitiveLog: /* @__PURE__ */ __name(() => GetResourceRequestStatusOutputFilterSensitiveLog, "GetResourceRequestStatusOutputFilterSensitiveLog"),
      HandlerErrorCode: /* @__PURE__ */ __name(() => HandlerErrorCode, "HandlerErrorCode"),
      HandlerFailureException: /* @__PURE__ */ __name(() => HandlerFailureException, "HandlerFailureException"),
      HandlerInternalFailureException: /* @__PURE__ */ __name(() => HandlerInternalFailureException, "HandlerInternalFailureException"),
      InvalidCredentialsException: /* @__PURE__ */ __name(() => InvalidCredentialsException, "InvalidCredentialsException"),
      InvalidRequestException: /* @__PURE__ */ __name(() => InvalidRequestException2, "InvalidRequestException"),
      ListResourceRequestsCommand: /* @__PURE__ */ __name(() => ListResourceRequestsCommand, "ListResourceRequestsCommand"),
      ListResourceRequestsOutputFilterSensitiveLog: /* @__PURE__ */ __name(() => ListResourceRequestsOutputFilterSensitiveLog, "ListResourceRequestsOutputFilterSensitiveLog"),
      ListResourcesCommand: /* @__PURE__ */ __name(() => ListResourcesCommand2, "ListResourcesCommand"),
      ListResourcesInputFilterSensitiveLog: /* @__PURE__ */ __name(() => ListResourcesInputFilterSensitiveLog, "ListResourcesInputFilterSensitiveLog"),
      ListResourcesOutputFilterSensitiveLog: /* @__PURE__ */ __name(() => ListResourcesOutputFilterSensitiveLog, "ListResourcesOutputFilterSensitiveLog"),
      NetworkFailureException: /* @__PURE__ */ __name(() => NetworkFailureException, "NetworkFailureException"),
      NotStabilizedException: /* @__PURE__ */ __name(() => NotStabilizedException, "NotStabilizedException"),
      NotUpdatableException: /* @__PURE__ */ __name(() => NotUpdatableException, "NotUpdatableException"),
      Operation: /* @__PURE__ */ __name(() => Operation, "Operation"),
      OperationStatus: /* @__PURE__ */ __name(() => OperationStatus, "OperationStatus"),
      PrivateTypeException: /* @__PURE__ */ __name(() => PrivateTypeException, "PrivateTypeException"),
      ProgressEventFilterSensitiveLog: /* @__PURE__ */ __name(() => ProgressEventFilterSensitiveLog, "ProgressEventFilterSensitiveLog"),
      RequestTokenNotFoundException: /* @__PURE__ */ __name(() => RequestTokenNotFoundException, "RequestTokenNotFoundException"),
      ResourceConflictException: /* @__PURE__ */ __name(() => ResourceConflictException, "ResourceConflictException"),
      ResourceDescriptionFilterSensitiveLog: /* @__PURE__ */ __name(() => ResourceDescriptionFilterSensitiveLog, "ResourceDescriptionFilterSensitiveLog"),
      ResourceNotFoundException: /* @__PURE__ */ __name(() => ResourceNotFoundException2, "ResourceNotFoundException"),
      ServiceInternalErrorException: /* @__PURE__ */ __name(() => ServiceInternalErrorException, "ServiceInternalErrorException"),
      ServiceLimitExceededException: /* @__PURE__ */ __name(() => ServiceLimitExceededException, "ServiceLimitExceededException"),
      ThrottlingException: /* @__PURE__ */ __name(() => ThrottlingException, "ThrottlingException"),
      TypeNotFoundException: /* @__PURE__ */ __name(() => TypeNotFoundException, "TypeNotFoundException"),
      UnsupportedActionException: /* @__PURE__ */ __name(() => UnsupportedActionException, "UnsupportedActionException"),
      UpdateResourceCommand: /* @__PURE__ */ __name(() => UpdateResourceCommand, "UpdateResourceCommand"),
      UpdateResourceInputFilterSensitiveLog: /* @__PURE__ */ __name(() => UpdateResourceInputFilterSensitiveLog, "UpdateResourceInputFilterSensitiveLog"),
      UpdateResourceOutputFilterSensitiveLog: /* @__PURE__ */ __name(() => UpdateResourceOutputFilterSensitiveLog, "UpdateResourceOutputFilterSensitiveLog"),
      __Client: /* @__PURE__ */ __name(() => import_smithy_client28.Client, "__Client"),
      paginateListResourceRequests: /* @__PURE__ */ __name(() => paginateListResourceRequests, "paginateListResourceRequests"),
      paginateListResources: /* @__PURE__ */ __name(() => paginateListResources, "paginateListResources"),
      waitForResourceRequestSuccess: /* @__PURE__ */ __name(() => waitForResourceRequestSuccess, "waitForResourceRequestSuccess"),
      waitUntilResourceRequestSuccess: /* @__PURE__ */ __name(() => waitUntilResourceRequestSuccess, "waitUntilResourceRequestSuccess")
    });
    module2.exports = __toCommonJS2(index_exports);
    var import_middleware_host_header3 = require_dist_cjs3();
    var import_middleware_logger3 = require_dist_cjs4();
    var import_middleware_recursion_detection3 = require_dist_cjs5();
    var import_middleware_user_agent3 = require_dist_cjs28();
    var import_config_resolver6 = require_dist_cjs30();
    var import_core17 = (init_dist_es(), __toCommonJS(dist_es_exports));
    var import_middleware_content_length3 = require_dist_cjs31();
    var import_middleware_endpoint8 = require_dist_cjs34();
    var import_middleware_retry5 = require_dist_cjs37();
    var import_httpAuthSchemeProvider5 = require_httpAuthSchemeProvider9();
    var resolveClientEndpointParameters3 = /* @__PURE__ */ __name2((options) => {
      return Object.assign(options, {
        useDualstackEndpoint: options.useDualstackEndpoint ?? false,
        useFipsEndpoint: options.useFipsEndpoint ?? false,
        defaultSigningName: "cloudcontrolapi"
      });
    }, "resolveClientEndpointParameters");
    var commonParams3 = {
      UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
      Endpoint: { type: "builtInParams", name: "endpoint" },
      Region: { type: "builtInParams", name: "region" },
      UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
    };
    var import_runtimeConfig5 = require_runtimeConfig10();
    var import_region_config_resolver3 = require_dist_cjs45();
    var import_protocol_http16 = require_dist_cjs2();
    var import_smithy_client28 = require_dist_cjs26();
    var getHttpAuthExtensionConfiguration3 = /* @__PURE__ */ __name2((runtimeConfig) => {
      const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
      let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
      let _credentials = runtimeConfig.credentials;
      return {
        setHttpAuthScheme(httpAuthScheme) {
          const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
          if (index === -1) {
            _httpAuthSchemes.push(httpAuthScheme);
          } else {
            _httpAuthSchemes.splice(index, 1, httpAuthScheme);
          }
        },
        httpAuthSchemes() {
          return _httpAuthSchemes;
        },
        setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
          _httpAuthSchemeProvider = httpAuthSchemeProvider;
        },
        httpAuthSchemeProvider() {
          return _httpAuthSchemeProvider;
        },
        setCredentials(credentials) {
          _credentials = credentials;
        },
        credentials() {
          return _credentials;
        }
      };
    }, "getHttpAuthExtensionConfiguration");
    var resolveHttpAuthRuntimeConfig3 = /* @__PURE__ */ __name2((config) => {
      return {
        httpAuthSchemes: config.httpAuthSchemes(),
        httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
        credentials: config.credentials()
      };
    }, "resolveHttpAuthRuntimeConfig");
    var resolveRuntimeExtensions3 = /* @__PURE__ */ __name2((runtimeConfig, extensions) => {
      const extensionConfiguration = Object.assign(
        (0, import_region_config_resolver3.getAwsRegionExtensionConfiguration)(runtimeConfig),
        (0, import_smithy_client28.getDefaultExtensionConfiguration)(runtimeConfig),
        (0, import_protocol_http16.getHttpHandlerExtensionConfiguration)(runtimeConfig),
        getHttpAuthExtensionConfiguration3(runtimeConfig)
      );
      extensions.forEach((extension) => extension.configure(extensionConfiguration));
      return Object.assign(
        runtimeConfig,
        (0, import_region_config_resolver3.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
        (0, import_smithy_client28.resolveDefaultRuntimeConfig)(extensionConfiguration),
        (0, import_protocol_http16.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
        resolveHttpAuthRuntimeConfig3(extensionConfiguration)
      );
    }, "resolveRuntimeExtensions");
    var CloudControlClient2 = class extends import_smithy_client28.Client {
      static {
        __name(this, "CloudControlClient");
      }
      static {
        __name2(this, "CloudControlClient");
      }
      /**
       * The resolved configuration of CloudControlClient class. This is resolved and normalized from the {@link CloudControlClientConfig | constructor configuration interface}.
       */
      config;
      constructor(...[configuration]) {
        const _config_0 = (0, import_runtimeConfig5.getRuntimeConfig)(configuration || {});
        super(_config_0);
        this.initConfig = _config_0;
        const _config_1 = resolveClientEndpointParameters3(_config_0);
        const _config_2 = (0, import_middleware_user_agent3.resolveUserAgentConfig)(_config_1);
        const _config_3 = (0, import_middleware_retry5.resolveRetryConfig)(_config_2);
        const _config_4 = (0, import_config_resolver6.resolveRegionConfig)(_config_3);
        const _config_5 = (0, import_middleware_host_header3.resolveHostHeaderConfig)(_config_4);
        const _config_6 = (0, import_middleware_endpoint8.resolveEndpointConfig)(_config_5);
        const _config_7 = (0, import_httpAuthSchemeProvider5.resolveHttpAuthSchemeConfig)(_config_6);
        const _config_8 = resolveRuntimeExtensions3(_config_7, configuration?.extensions || []);
        this.config = _config_8;
        this.middlewareStack.use((0, import_middleware_user_agent3.getUserAgentPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_retry5.getRetryPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_content_length3.getContentLengthPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_host_header3.getHostHeaderPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_logger3.getLoggerPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_recursion_detection3.getRecursionDetectionPlugin)(this.config));
        this.middlewareStack.use(
          (0, import_core17.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
            httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider5.defaultCloudControlHttpAuthSchemeParametersProvider,
            identityProviderConfigProvider: /* @__PURE__ */ __name2(async (config) => new import_core17.DefaultIdentityProviderConfig({
              "aws.auth#sigv4": config.credentials
            }), "identityProviderConfigProvider")
          })
        );
        this.middlewareStack.use((0, import_core17.getHttpSigningPlugin)(this.config));
      }
      /**
       * Destroy underlying resources, like sockets. It's usually not necessary to do this.
       * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
       * Otherwise, sockets might stay open for quite a long time before the server terminates them.
       */
      destroy() {
        super.destroy();
      }
    };
    var import_middleware_serde5 = require_dist_cjs7();
    var CloudControlServiceException = class _CloudControlServiceException extends import_smithy_client28.ServiceException {
      static {
        __name(this, "_CloudControlServiceException");
      }
      static {
        __name2(this, "CloudControlServiceException");
      }
      /**
       * @internal
       */
      constructor(options) {
        super(options);
        Object.setPrototypeOf(this, _CloudControlServiceException.prototype);
      }
    };
    var AlreadyExistsException = class _AlreadyExistsException extends CloudControlServiceException {
      static {
        __name(this, "_AlreadyExistsException");
      }
      static {
        __name2(this, "AlreadyExistsException");
      }
      name = "AlreadyExistsException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "AlreadyExistsException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _AlreadyExistsException.prototype);
        this.Message = opts.Message;
      }
    };
    var HandlerErrorCode = {
      ACCESS_DENIED: "AccessDenied",
      ALREADY_EXISTS: "AlreadyExists",
      GENERAL_SERVICE_EXCEPTION: "GeneralServiceException",
      INTERNAL_FAILURE: "InternalFailure",
      INVALID_CREDENTIALS: "InvalidCredentials",
      INVALID_REQUEST: "InvalidRequest",
      NETWORK_FAILURE: "NetworkFailure",
      NOT_FOUND: "NotFound",
      NOT_STABILIZED: "NotStabilized",
      NOT_UPDATABLE: "NotUpdatable",
      RESOURCE_CONFLICT: "ResourceConflict",
      SERVICE_INTERNAL_ERROR: "ServiceInternalError",
      SERVICE_LIMIT_EXCEEDED: "ServiceLimitExceeded",
      SERVICE_TIMEOUT: "ServiceTimeout",
      THROTTLING: "Throttling",
      UNAUTHORIZED_TAGGING_OPERATION: "UnauthorizedTaggingOperation"
    };
    var Operation = {
      CREATE: "CREATE",
      DELETE: "DELETE",
      UPDATE: "UPDATE"
    };
    var OperationStatus = {
      CANCEL_COMPLETE: "CANCEL_COMPLETE",
      CANCEL_IN_PROGRESS: "CANCEL_IN_PROGRESS",
      FAILED: "FAILED",
      IN_PROGRESS: "IN_PROGRESS",
      PENDING: "PENDING",
      SUCCESS: "SUCCESS"
    };
    var ConcurrentModificationException = class _ConcurrentModificationException extends CloudControlServiceException {
      static {
        __name(this, "_ConcurrentModificationException");
      }
      static {
        __name2(this, "ConcurrentModificationException");
      }
      name = "ConcurrentModificationException";
      $fault = "server";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ConcurrentModificationException",
          $fault: "server",
          ...opts
        });
        Object.setPrototypeOf(this, _ConcurrentModificationException.prototype);
        this.Message = opts.Message;
      }
    };
    var RequestTokenNotFoundException = class _RequestTokenNotFoundException extends CloudControlServiceException {
      static {
        __name(this, "_RequestTokenNotFoundException");
      }
      static {
        __name2(this, "RequestTokenNotFoundException");
      }
      name = "RequestTokenNotFoundException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "RequestTokenNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _RequestTokenNotFoundException.prototype);
        this.Message = opts.Message;
      }
    };
    var ClientTokenConflictException = class _ClientTokenConflictException extends CloudControlServiceException {
      static {
        __name(this, "_ClientTokenConflictException");
      }
      static {
        __name2(this, "ClientTokenConflictException");
      }
      name = "ClientTokenConflictException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ClientTokenConflictException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ClientTokenConflictException.prototype);
        this.Message = opts.Message;
      }
    };
    var ConcurrentOperationException = class _ConcurrentOperationException extends CloudControlServiceException {
      static {
        __name(this, "_ConcurrentOperationException");
      }
      static {
        __name2(this, "ConcurrentOperationException");
      }
      name = "ConcurrentOperationException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ConcurrentOperationException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ConcurrentOperationException.prototype);
        this.Message = opts.Message;
      }
    };
    var GeneralServiceException = class _GeneralServiceException extends CloudControlServiceException {
      static {
        __name(this, "_GeneralServiceException");
      }
      static {
        __name2(this, "GeneralServiceException");
      }
      name = "GeneralServiceException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "GeneralServiceException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _GeneralServiceException.prototype);
        this.Message = opts.Message;
      }
    };
    var HandlerFailureException = class _HandlerFailureException extends CloudControlServiceException {
      static {
        __name(this, "_HandlerFailureException");
      }
      static {
        __name2(this, "HandlerFailureException");
      }
      name = "HandlerFailureException";
      $fault = "server";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "HandlerFailureException",
          $fault: "server",
          ...opts
        });
        Object.setPrototypeOf(this, _HandlerFailureException.prototype);
        this.Message = opts.Message;
      }
    };
    var HandlerInternalFailureException = class _HandlerInternalFailureException extends CloudControlServiceException {
      static {
        __name(this, "_HandlerInternalFailureException");
      }
      static {
        __name2(this, "HandlerInternalFailureException");
      }
      name = "HandlerInternalFailureException";
      $fault = "server";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "HandlerInternalFailureException",
          $fault: "server",
          ...opts
        });
        Object.setPrototypeOf(this, _HandlerInternalFailureException.prototype);
        this.Message = opts.Message;
      }
    };
    var InvalidCredentialsException = class _InvalidCredentialsException extends CloudControlServiceException {
      static {
        __name(this, "_InvalidCredentialsException");
      }
      static {
        __name2(this, "InvalidCredentialsException");
      }
      name = "InvalidCredentialsException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidCredentialsException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidCredentialsException.prototype);
        this.Message = opts.Message;
      }
    };
    var InvalidRequestException2 = class _InvalidRequestException extends CloudControlServiceException {
      static {
        __name(this, "_InvalidRequestException");
      }
      static {
        __name2(this, "InvalidRequestException");
      }
      name = "InvalidRequestException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidRequestException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidRequestException.prototype);
        this.Message = opts.Message;
      }
    };
    var NetworkFailureException = class _NetworkFailureException extends CloudControlServiceException {
      static {
        __name(this, "_NetworkFailureException");
      }
      static {
        __name2(this, "NetworkFailureException");
      }
      name = "NetworkFailureException";
      $fault = "server";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "NetworkFailureException",
          $fault: "server",
          ...opts
        });
        Object.setPrototypeOf(this, _NetworkFailureException.prototype);
        this.Message = opts.Message;
      }
    };
    var NotStabilizedException = class _NotStabilizedException extends CloudControlServiceException {
      static {
        __name(this, "_NotStabilizedException");
      }
      static {
        __name2(this, "NotStabilizedException");
      }
      name = "NotStabilizedException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "NotStabilizedException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _NotStabilizedException.prototype);
        this.Message = opts.Message;
      }
    };
    var NotUpdatableException = class _NotUpdatableException extends CloudControlServiceException {
      static {
        __name(this, "_NotUpdatableException");
      }
      static {
        __name2(this, "NotUpdatableException");
      }
      name = "NotUpdatableException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "NotUpdatableException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _NotUpdatableException.prototype);
        this.Message = opts.Message;
      }
    };
    var PrivateTypeException = class _PrivateTypeException extends CloudControlServiceException {
      static {
        __name(this, "_PrivateTypeException");
      }
      static {
        __name2(this, "PrivateTypeException");
      }
      name = "PrivateTypeException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "PrivateTypeException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _PrivateTypeException.prototype);
        this.Message = opts.Message;
      }
    };
    var ResourceConflictException = class _ResourceConflictException extends CloudControlServiceException {
      static {
        __name(this, "_ResourceConflictException");
      }
      static {
        __name2(this, "ResourceConflictException");
      }
      name = "ResourceConflictException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ResourceConflictException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ResourceConflictException.prototype);
        this.Message = opts.Message;
      }
    };
    var ResourceNotFoundException2 = class _ResourceNotFoundException extends CloudControlServiceException {
      static {
        __name(this, "_ResourceNotFoundException");
      }
      static {
        __name2(this, "ResourceNotFoundException");
      }
      name = "ResourceNotFoundException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ResourceNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
        this.Message = opts.Message;
      }
    };
    var ServiceInternalErrorException = class _ServiceInternalErrorException extends CloudControlServiceException {
      static {
        __name(this, "_ServiceInternalErrorException");
      }
      static {
        __name2(this, "ServiceInternalErrorException");
      }
      name = "ServiceInternalErrorException";
      $fault = "server";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ServiceInternalErrorException",
          $fault: "server",
          ...opts
        });
        Object.setPrototypeOf(this, _ServiceInternalErrorException.prototype);
        this.Message = opts.Message;
      }
    };
    var ServiceLimitExceededException = class _ServiceLimitExceededException extends CloudControlServiceException {
      static {
        __name(this, "_ServiceLimitExceededException");
      }
      static {
        __name2(this, "ServiceLimitExceededException");
      }
      name = "ServiceLimitExceededException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ServiceLimitExceededException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ServiceLimitExceededException.prototype);
        this.Message = opts.Message;
      }
    };
    var ThrottlingException = class _ThrottlingException extends CloudControlServiceException {
      static {
        __name(this, "_ThrottlingException");
      }
      static {
        __name2(this, "ThrottlingException");
      }
      name = "ThrottlingException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ThrottlingException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ThrottlingException.prototype);
        this.Message = opts.Message;
      }
    };
    var TypeNotFoundException = class _TypeNotFoundException extends CloudControlServiceException {
      static {
        __name(this, "_TypeNotFoundException");
      }
      static {
        __name2(this, "TypeNotFoundException");
      }
      name = "TypeNotFoundException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "TypeNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _TypeNotFoundException.prototype);
        this.Message = opts.Message;
      }
    };
    var UnsupportedActionException = class _UnsupportedActionException extends CloudControlServiceException {
      static {
        __name(this, "_UnsupportedActionException");
      }
      static {
        __name2(this, "UnsupportedActionException");
      }
      name = "UnsupportedActionException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "UnsupportedActionException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _UnsupportedActionException.prototype);
        this.Message = opts.Message;
      }
    };
    var ProgressEventFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.ResourceModel && { ResourceModel: import_smithy_client28.SENSITIVE_STRING }
    }), "ProgressEventFilterSensitiveLog");
    var CancelResourceRequestOutputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.ProgressEvent && { ProgressEvent: ProgressEventFilterSensitiveLog(obj.ProgressEvent) }
    }), "CancelResourceRequestOutputFilterSensitiveLog");
    var CreateResourceInputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.DesiredState && { DesiredState: import_smithy_client28.SENSITIVE_STRING }
    }), "CreateResourceInputFilterSensitiveLog");
    var CreateResourceOutputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.ProgressEvent && { ProgressEvent: ProgressEventFilterSensitiveLog(obj.ProgressEvent) }
    }), "CreateResourceOutputFilterSensitiveLog");
    var DeleteResourceOutputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.ProgressEvent && { ProgressEvent: ProgressEventFilterSensitiveLog(obj.ProgressEvent) }
    }), "DeleteResourceOutputFilterSensitiveLog");
    var ResourceDescriptionFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Properties && { Properties: import_smithy_client28.SENSITIVE_STRING }
    }), "ResourceDescriptionFilterSensitiveLog");
    var GetResourceOutputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.ResourceDescription && {
        ResourceDescription: ResourceDescriptionFilterSensitiveLog(obj.ResourceDescription)
      }
    }), "GetResourceOutputFilterSensitiveLog");
    var GetResourceRequestStatusOutputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.ProgressEvent && { ProgressEvent: ProgressEventFilterSensitiveLog(obj.ProgressEvent) }
    }), "GetResourceRequestStatusOutputFilterSensitiveLog");
    var ListResourceRequestsOutputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.ResourceRequestStatusSummaries && {
        ResourceRequestStatusSummaries: obj.ResourceRequestStatusSummaries.map(
          (item) => ProgressEventFilterSensitiveLog(item)
        )
      }
    }), "ListResourceRequestsOutputFilterSensitiveLog");
    var ListResourcesInputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.ResourceModel && { ResourceModel: import_smithy_client28.SENSITIVE_STRING }
    }), "ListResourcesInputFilterSensitiveLog");
    var ListResourcesOutputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.ResourceDescriptions && {
        ResourceDescriptions: obj.ResourceDescriptions.map((item) => ResourceDescriptionFilterSensitiveLog(item))
      }
    }), "ListResourcesOutputFilterSensitiveLog");
    var UpdateResourceInputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.PatchDocument && { PatchDocument: import_smithy_client28.SENSITIVE_STRING }
    }), "UpdateResourceInputFilterSensitiveLog");
    var UpdateResourceOutputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.ProgressEvent && { ProgressEvent: ProgressEventFilterSensitiveLog(obj.ProgressEvent) }
    }), "UpdateResourceOutputFilterSensitiveLog");
    var import_core22 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var import_uuid2 = (init_esm_node(), __toCommonJS(esm_node_exports));
    var se_CancelResourceRequestCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("CancelResourceRequest");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CancelResourceRequestCommand");
    var se_CreateResourceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("CreateResource");
      let body;
      body = JSON.stringify(se_CreateResourceInput(input, context));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateResourceCommand");
    var se_DeleteResourceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteResource");
      let body;
      body = JSON.stringify(se_DeleteResourceInput(input, context));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteResourceCommand");
    var se_GetResourceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetResource");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetResourceCommand");
    var se_GetResourceRequestStatusCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetResourceRequestStatus");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetResourceRequestStatusCommand");
    var se_ListResourceRequestsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListResourceRequests");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListResourceRequestsCommand");
    var se_ListResourcesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListResources");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListResourcesCommand");
    var se_UpdateResourceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("UpdateResource");
      let body;
      body = JSON.stringify(se_UpdateResourceInput(input, context));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateResourceCommand");
    var de_CancelResourceRequestCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_CancelResourceRequestOutput(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CancelResourceRequestCommand");
    var de_CreateResourceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_CreateResourceOutput(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateResourceCommand");
    var de_DeleteResourceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DeleteResourceOutput(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteResourceCommand");
    var de_GetResourceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetResourceCommand");
    var de_GetResourceRequestStatusCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_GetResourceRequestStatusOutput(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetResourceRequestStatusCommand");
    var de_ListResourceRequestsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_ListResourceRequestsOutput(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListResourceRequestsCommand");
    var de_ListResourcesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListResourcesCommand");
    var de_UpdateResourceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_UpdateResourceOutput(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UpdateResourceCommand");
    var de_CommandError3 = /* @__PURE__ */ __name2(async (output, context) => {
      const parsedOutput = {
        ...output,
        body: await (0, import_core22.parseJsonErrorBody)(output.body, context)
      };
      const errorCode = (0, import_core22.loadRestJsonErrorCode)(output, parsedOutput.body);
      switch (errorCode) {
        case "ConcurrentModificationException":
        case "com.amazonaws.cloudcontrol#ConcurrentModificationException":
          throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
        case "RequestTokenNotFoundException":
        case "com.amazonaws.cloudcontrol#RequestTokenNotFoundException":
          throw await de_RequestTokenNotFoundExceptionRes(parsedOutput, context);
        case "AlreadyExistsException":
        case "com.amazonaws.cloudcontrol#AlreadyExistsException":
          throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
        case "ClientTokenConflictException":
        case "com.amazonaws.cloudcontrol#ClientTokenConflictException":
          throw await de_ClientTokenConflictExceptionRes(parsedOutput, context);
        case "ConcurrentOperationException":
        case "com.amazonaws.cloudcontrol#ConcurrentOperationException":
          throw await de_ConcurrentOperationExceptionRes(parsedOutput, context);
        case "GeneralServiceException":
        case "com.amazonaws.cloudcontrol#GeneralServiceException":
          throw await de_GeneralServiceExceptionRes(parsedOutput, context);
        case "HandlerFailureException":
        case "com.amazonaws.cloudcontrol#HandlerFailureException":
          throw await de_HandlerFailureExceptionRes(parsedOutput, context);
        case "HandlerInternalFailureException":
        case "com.amazonaws.cloudcontrol#HandlerInternalFailureException":
          throw await de_HandlerInternalFailureExceptionRes(parsedOutput, context);
        case "InvalidCredentialsException":
        case "com.amazonaws.cloudcontrol#InvalidCredentialsException":
          throw await de_InvalidCredentialsExceptionRes(parsedOutput, context);
        case "InvalidRequestException":
        case "com.amazonaws.cloudcontrol#InvalidRequestException":
          throw await de_InvalidRequestExceptionRes2(parsedOutput, context);
        case "NetworkFailureException":
        case "com.amazonaws.cloudcontrol#NetworkFailureException":
          throw await de_NetworkFailureExceptionRes(parsedOutput, context);
        case "NotStabilizedException":
        case "com.amazonaws.cloudcontrol#NotStabilizedException":
          throw await de_NotStabilizedExceptionRes(parsedOutput, context);
        case "NotUpdatableException":
        case "com.amazonaws.cloudcontrol#NotUpdatableException":
          throw await de_NotUpdatableExceptionRes(parsedOutput, context);
        case "PrivateTypeException":
        case "com.amazonaws.cloudcontrol#PrivateTypeException":
          throw await de_PrivateTypeExceptionRes(parsedOutput, context);
        case "ResourceConflictException":
        case "com.amazonaws.cloudcontrol#ResourceConflictException":
          throw await de_ResourceConflictExceptionRes(parsedOutput, context);
        case "ResourceNotFoundException":
        case "com.amazonaws.cloudcontrol#ResourceNotFoundException":
          throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
        case "ServiceInternalErrorException":
        case "com.amazonaws.cloudcontrol#ServiceInternalErrorException":
          throw await de_ServiceInternalErrorExceptionRes(parsedOutput, context);
        case "ServiceLimitExceededException":
        case "com.amazonaws.cloudcontrol#ServiceLimitExceededException":
          throw await de_ServiceLimitExceededExceptionRes(parsedOutput, context);
        case "ThrottlingException":
        case "com.amazonaws.cloudcontrol#ThrottlingException":
          throw await de_ThrottlingExceptionRes(parsedOutput, context);
        case "TypeNotFoundException":
        case "com.amazonaws.cloudcontrol#TypeNotFoundException":
          throw await de_TypeNotFoundExceptionRes(parsedOutput, context);
        case "UnsupportedActionException":
        case "com.amazonaws.cloudcontrol#UnsupportedActionException":
          throw await de_UnsupportedActionExceptionRes(parsedOutput, context);
        default:
          const parsedBody = parsedOutput.body;
          return throwDefaultError3({
            output,
            parsedBody,
            errorCode
          });
      }
    }, "de_CommandError");
    var de_AlreadyExistsExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new AlreadyExistsException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_AlreadyExistsExceptionRes");
    var de_ClientTokenConflictExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ClientTokenConflictException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ClientTokenConflictExceptionRes");
    var de_ConcurrentModificationExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ConcurrentModificationException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ConcurrentModificationExceptionRes");
    var de_ConcurrentOperationExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ConcurrentOperationException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ConcurrentOperationExceptionRes");
    var de_GeneralServiceExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new GeneralServiceException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_GeneralServiceExceptionRes");
    var de_HandlerFailureExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new HandlerFailureException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_HandlerFailureExceptionRes");
    var de_HandlerInternalFailureExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new HandlerInternalFailureException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_HandlerInternalFailureExceptionRes");
    var de_InvalidCredentialsExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidCredentialsException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidCredentialsExceptionRes");
    var de_InvalidRequestExceptionRes2 = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidRequestException2({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidRequestExceptionRes");
    var de_NetworkFailureExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new NetworkFailureException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_NetworkFailureExceptionRes");
    var de_NotStabilizedExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new NotStabilizedException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_NotStabilizedExceptionRes");
    var de_NotUpdatableExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new NotUpdatableException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_NotUpdatableExceptionRes");
    var de_PrivateTypeExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new PrivateTypeException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_PrivateTypeExceptionRes");
    var de_RequestTokenNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new RequestTokenNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_RequestTokenNotFoundExceptionRes");
    var de_ResourceConflictExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ResourceConflictException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ResourceConflictExceptionRes");
    var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ResourceNotFoundException2({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ResourceNotFoundExceptionRes");
    var de_ServiceInternalErrorExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ServiceInternalErrorException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ServiceInternalErrorExceptionRes");
    var de_ServiceLimitExceededExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ServiceLimitExceededException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ServiceLimitExceededExceptionRes");
    var de_ThrottlingExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ThrottlingException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ThrottlingExceptionRes");
    var de_TypeNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new TypeNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_TypeNotFoundExceptionRes");
    var de_UnsupportedActionExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new UnsupportedActionException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_UnsupportedActionExceptionRes");
    var se_CreateResourceInput = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        ClientToken: [true, (_3) => _3 ?? (0, import_uuid2.v4)()],
        DesiredState: [],
        RoleArn: [],
        TypeName: [],
        TypeVersionId: []
      });
    }, "se_CreateResourceInput");
    var se_DeleteResourceInput = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        ClientToken: [true, (_3) => _3 ?? (0, import_uuid2.v4)()],
        Identifier: [],
        RoleArn: [],
        TypeName: [],
        TypeVersionId: []
      });
    }, "se_DeleteResourceInput");
    var se_UpdateResourceInput = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        ClientToken: [true, (_3) => _3 ?? (0, import_uuid2.v4)()],
        Identifier: [],
        PatchDocument: [],
        RoleArn: [],
        TypeName: [],
        TypeVersionId: []
      });
    }, "se_UpdateResourceInput");
    var de_CancelResourceRequestOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        ProgressEvent: /* @__PURE__ */ __name2((_3) => de_ProgressEvent(_3, context), "ProgressEvent")
      });
    }, "de_CancelResourceRequestOutput");
    var de_CreateResourceOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        ProgressEvent: /* @__PURE__ */ __name2((_3) => de_ProgressEvent(_3, context), "ProgressEvent")
      });
    }, "de_CreateResourceOutput");
    var de_DeleteResourceOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        ProgressEvent: /* @__PURE__ */ __name2((_3) => de_ProgressEvent(_3, context), "ProgressEvent")
      });
    }, "de_DeleteResourceOutput");
    var de_GetResourceRequestStatusOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        HooksProgressEvent: /* @__PURE__ */ __name2((_3) => de_HooksProgressEvent(_3, context), "HooksProgressEvent"),
        ProgressEvent: /* @__PURE__ */ __name2((_3) => de_ProgressEvent(_3, context), "ProgressEvent")
      });
    }, "de_GetResourceRequestStatusOutput");
    var de_HookProgressEvent = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        FailureMode: import_smithy_client28.expectString,
        HookEventTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "HookEventTime"),
        HookStatus: import_smithy_client28.expectString,
        HookStatusMessage: import_smithy_client28.expectString,
        HookTypeArn: import_smithy_client28.expectString,
        HookTypeName: import_smithy_client28.expectString,
        HookTypeVersionId: import_smithy_client28.expectString,
        InvocationPoint: import_smithy_client28.expectString
      });
    }, "de_HookProgressEvent");
    var de_HooksProgressEvent = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_HookProgressEvent(entry, context);
      });
      return retVal;
    }, "de_HooksProgressEvent");
    var de_ListResourceRequestsOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        NextToken: import_smithy_client28.expectString,
        ResourceRequestStatusSummaries: /* @__PURE__ */ __name2((_3) => de_ResourceRequestStatusSummaries(_3, context), "ResourceRequestStatusSummaries")
      });
    }, "de_ListResourceRequestsOutput");
    var de_ProgressEvent = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        ErrorCode: import_smithy_client28.expectString,
        EventTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "EventTime"),
        HooksRequestToken: import_smithy_client28.expectString,
        Identifier: import_smithy_client28.expectString,
        Operation: import_smithy_client28.expectString,
        OperationStatus: import_smithy_client28.expectString,
        RequestToken: import_smithy_client28.expectString,
        ResourceModel: import_smithy_client28.expectString,
        RetryAfter: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "RetryAfter"),
        StatusMessage: import_smithy_client28.expectString,
        TypeName: import_smithy_client28.expectString
      });
    }, "de_ProgressEvent");
    var de_ResourceRequestStatusSummaries = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ProgressEvent(entry, context);
      });
      return retVal;
    }, "de_ResourceRequestStatusSummaries");
    var de_UpdateResourceOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        ProgressEvent: /* @__PURE__ */ __name2((_3) => de_ProgressEvent(_3, context), "ProgressEvent")
      });
    }, "de_UpdateResourceOutput");
    var deserializeMetadata3 = /* @__PURE__ */ __name2((output) => ({
      httpStatusCode: output.statusCode,
      requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
      extendedRequestId: output.headers["x-amz-id-2"],
      cfId: output.headers["x-amz-cf-id"]
    }), "deserializeMetadata");
    var throwDefaultError3 = (0, import_smithy_client28.withBaseException)(CloudControlServiceException);
    var buildHttpRpcRequest2 = /* @__PURE__ */ __name2(async (context, headers, path38, resolvedHostname, body) => {
      const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
      const contents = {
        protocol,
        hostname,
        port,
        method: "POST",
        path: basePath.endsWith("/") ? basePath.slice(0, -1) + path38 : basePath + path38,
        headers
      };
      if (resolvedHostname !== void 0) {
        contents.hostname = resolvedHostname;
      }
      if (body !== void 0) {
        contents.body = body;
      }
      return new import_protocol_http16.HttpRequest(contents);
    }, "buildHttpRpcRequest");
    function sharedHeaders(operation) {
      return {
        "content-type": "application/x-amz-json-1.0",
        "x-amz-target": `CloudApiService.${operation}`
      };
    }
    __name(sharedHeaders, "sharedHeaders");
    __name2(sharedHeaders, "sharedHeaders");
    var CancelResourceRequestCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudApiService", "CancelResourceRequest", {}).n("CloudControlClient", "CancelResourceRequestCommand").f(void 0, CancelResourceRequestOutputFilterSensitiveLog).ser(se_CancelResourceRequestCommand).de(de_CancelResourceRequestCommand).build() {
      static {
        __name(this, "CancelResourceRequestCommand");
      }
      static {
        __name2(this, "CancelResourceRequestCommand");
      }
    };
    var CreateResourceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudApiService", "CreateResource", {}).n("CloudControlClient", "CreateResourceCommand").f(CreateResourceInputFilterSensitiveLog, CreateResourceOutputFilterSensitiveLog).ser(se_CreateResourceCommand).de(de_CreateResourceCommand).build() {
      static {
        __name(this, "CreateResourceCommand");
      }
      static {
        __name2(this, "CreateResourceCommand");
      }
    };
    var DeleteResourceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudApiService", "DeleteResource", {}).n("CloudControlClient", "DeleteResourceCommand").f(void 0, DeleteResourceOutputFilterSensitiveLog).ser(se_DeleteResourceCommand).de(de_DeleteResourceCommand).build() {
      static {
        __name(this, "DeleteResourceCommand");
      }
      static {
        __name2(this, "DeleteResourceCommand");
      }
    };
    var GetResourceCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudApiService", "GetResource", {}).n("CloudControlClient", "GetResourceCommand").f(void 0, GetResourceOutputFilterSensitiveLog).ser(se_GetResourceCommand).de(de_GetResourceCommand).build() {
      static {
        __name(this, "GetResourceCommand");
      }
      static {
        __name2(this, "GetResourceCommand");
      }
    };
    var GetResourceRequestStatusCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudApiService", "GetResourceRequestStatus", {}).n("CloudControlClient", "GetResourceRequestStatusCommand").f(void 0, GetResourceRequestStatusOutputFilterSensitiveLog).ser(se_GetResourceRequestStatusCommand).de(de_GetResourceRequestStatusCommand).build() {
      static {
        __name(this, "GetResourceRequestStatusCommand");
      }
      static {
        __name2(this, "GetResourceRequestStatusCommand");
      }
    };
    var ListResourceRequestsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudApiService", "ListResourceRequests", {}).n("CloudControlClient", "ListResourceRequestsCommand").f(void 0, ListResourceRequestsOutputFilterSensitiveLog).ser(se_ListResourceRequestsCommand).de(de_ListResourceRequestsCommand).build() {
      static {
        __name(this, "ListResourceRequestsCommand");
      }
      static {
        __name2(this, "ListResourceRequestsCommand");
      }
    };
    var ListResourcesCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudApiService", "ListResources", {}).n("CloudControlClient", "ListResourcesCommand").f(ListResourcesInputFilterSensitiveLog, ListResourcesOutputFilterSensitiveLog).ser(se_ListResourcesCommand).de(de_ListResourcesCommand).build() {
      static {
        __name(this, "ListResourcesCommand");
      }
      static {
        __name2(this, "ListResourcesCommand");
      }
    };
    var UpdateResourceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CloudApiService", "UpdateResource", {}).n("CloudControlClient", "UpdateResourceCommand").f(UpdateResourceInputFilterSensitiveLog, UpdateResourceOutputFilterSensitiveLog).ser(se_UpdateResourceCommand).de(de_UpdateResourceCommand).build() {
      static {
        __name(this, "UpdateResourceCommand");
      }
      static {
        __name2(this, "UpdateResourceCommand");
      }
    };
    var commands3 = {
      CancelResourceRequestCommand,
      CreateResourceCommand,
      DeleteResourceCommand,
      GetResourceCommand: GetResourceCommand2,
      GetResourceRequestStatusCommand,
      ListResourceRequestsCommand,
      ListResourcesCommand: ListResourcesCommand2,
      UpdateResourceCommand
    };
    var CloudControl = class extends CloudControlClient2 {
      static {
        __name(this, "CloudControl");
      }
      static {
        __name2(this, "CloudControl");
      }
    };
    (0, import_smithy_client28.createAggregatedClient)(commands3, CloudControl);
    var paginateListResourceRequests = (0, import_core17.createPaginator)(CloudControlClient2, ListResourceRequestsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateListResources = (0, import_core17.createPaginator)(CloudControlClient2, ListResourcesCommand2, "NextToken", "NextToken", "MaxResults");
    var import_util_waiter = require_dist_cjs53();
    var checkState = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new GetResourceRequestStatusCommand(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            return result2.ProgressEvent.OperationStatus;
          }, "returnComparator");
          if (returnComparator() === "SUCCESS") {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            return result2.ProgressEvent.OperationStatus;
          }, "returnComparator");
          if (returnComparator() === "FAILED") {
            return { state: import_util_waiter.WaiterState.FAILURE, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            return result2.ProgressEvent.OperationStatus;
          }, "returnComparator");
          if (returnComparator() === "CANCEL_COMPLETE") {
            return { state: import_util_waiter.WaiterState.FAILURE, reason };
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForResourceRequestSuccess = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 5, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
    }, "waitForResourceRequestSuccess");
    var waitUntilResourceRequestSuccess = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 5, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilResourceRequestSuccess");
  }
});

// ../../node_modules/@aws-sdk/client-cloudwatch-logs/dist-cjs/auth/httpAuthSchemeProvider.js
var require_httpAuthSchemeProvider10 = __commonJS({
  "../../node_modules/@aws-sdk/client-cloudwatch-logs/dist-cjs/auth/httpAuthSchemeProvider.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.resolveHttpAuthSchemeConfig = exports2.defaultCloudWatchLogsHttpAuthSchemeProvider = exports2.defaultCloudWatchLogsHttpAuthSchemeParametersProvider = void 0;
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var util_middleware_1 = require_dist_cjs6();
    var defaultCloudWatchLogsHttpAuthSchemeParametersProvider = /* @__PURE__ */ __name(async (config, context, input) => {
      return {
        operation: (0, util_middleware_1.getSmithyContext)(context).operation,
        region: await (0, util_middleware_1.normalizeProvider)(config.region)() || (() => {
          throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
        })()
      };
    }, "defaultCloudWatchLogsHttpAuthSchemeParametersProvider");
    exports2.defaultCloudWatchLogsHttpAuthSchemeParametersProvider = defaultCloudWatchLogsHttpAuthSchemeParametersProvider;
    function createAwsAuthSigv4HttpAuthOption3(authParameters) {
      return {
        schemeId: "aws.auth#sigv4",
        signingProperties: {
          name: "logs",
          region: authParameters.region
        },
        propertiesExtractor: /* @__PURE__ */ __name((config, context) => ({
          signingProperties: {
            config,
            context
          }
        }), "propertiesExtractor")
      };
    }
    __name(createAwsAuthSigv4HttpAuthOption3, "createAwsAuthSigv4HttpAuthOption");
    var defaultCloudWatchLogsHttpAuthSchemeProvider = /* @__PURE__ */ __name((authParameters) => {
      const options = [];
      switch (authParameters.operation) {
        default: {
          options.push(createAwsAuthSigv4HttpAuthOption3(authParameters));
        }
      }
      return options;
    }, "defaultCloudWatchLogsHttpAuthSchemeProvider");
    exports2.defaultCloudWatchLogsHttpAuthSchemeProvider = defaultCloudWatchLogsHttpAuthSchemeProvider;
    var resolveHttpAuthSchemeConfig3 = /* @__PURE__ */ __name((config) => {
      const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
      return Object.assign(config_0, {
        authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? [])
      });
    }, "resolveHttpAuthSchemeConfig");
    exports2.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig3;
  }
});

// ../../node_modules/@aws-sdk/client-cloudwatch-logs/package.json
var require_package10 = __commonJS({
  "../../node_modules/@aws-sdk/client-cloudwatch-logs/package.json"(exports2, module2) {
    module2.exports = {
      name: "@aws-sdk/client-cloudwatch-logs",
      description: "AWS SDK for JavaScript Cloudwatch Logs Client for Node.js, Browser and React Native",
      version: "3.879.0",
      scripts: {
        build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
        "build:cjs": "node ../../scripts/compilation/inline client-cloudwatch-logs",
        "build:es": "tsc -p tsconfig.es.json",
        "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
        "build:types": "tsc -p tsconfig.types.json",
        "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
        clean: "rimraf ./dist-* && rimraf *.tsbuildinfo",
        "extract:docs": "api-extractor run --local",
        "generate:client": "node ../../scripts/generate-clients/single-service --solo cloudwatch-logs"
      },
      main: "./dist-cjs/index.js",
      types: "./dist-types/index.d.ts",
      module: "./dist-es/index.js",
      sideEffects: false,
      dependencies: {
        "@aws-crypto/sha256-browser": "5.2.0",
        "@aws-crypto/sha256-js": "5.2.0",
        "@aws-sdk/core": "3.879.0",
        "@aws-sdk/credential-provider-node": "3.879.0",
        "@aws-sdk/middleware-host-header": "3.873.0",
        "@aws-sdk/middleware-logger": "3.876.0",
        "@aws-sdk/middleware-recursion-detection": "3.873.0",
        "@aws-sdk/middleware-user-agent": "3.879.0",
        "@aws-sdk/region-config-resolver": "3.873.0",
        "@aws-sdk/types": "3.862.0",
        "@aws-sdk/util-endpoints": "3.879.0",
        "@aws-sdk/util-user-agent-browser": "3.873.0",
        "@aws-sdk/util-user-agent-node": "3.879.0",
        "@smithy/config-resolver": "^4.1.5",
        "@smithy/core": "^3.9.0",
        "@smithy/eventstream-serde-browser": "^4.0.5",
        "@smithy/eventstream-serde-config-resolver": "^4.1.3",
        "@smithy/eventstream-serde-node": "^4.0.5",
        "@smithy/fetch-http-handler": "^5.1.1",
        "@smithy/hash-node": "^4.0.5",
        "@smithy/invalid-dependency": "^4.0.5",
        "@smithy/middleware-content-length": "^4.0.5",
        "@smithy/middleware-endpoint": "^4.1.19",
        "@smithy/middleware-retry": "^4.1.20",
        "@smithy/middleware-serde": "^4.0.9",
        "@smithy/middleware-stack": "^4.0.5",
        "@smithy/node-config-provider": "^4.1.4",
        "@smithy/node-http-handler": "^4.1.1",
        "@smithy/protocol-http": "^5.1.3",
        "@smithy/smithy-client": "^4.5.0",
        "@smithy/types": "^4.3.2",
        "@smithy/url-parser": "^4.0.5",
        "@smithy/util-base64": "^4.0.0",
        "@smithy/util-body-length-browser": "^4.0.0",
        "@smithy/util-body-length-node": "^4.0.0",
        "@smithy/util-defaults-mode-browser": "^4.0.27",
        "@smithy/util-defaults-mode-node": "^4.0.27",
        "@smithy/util-endpoints": "^3.0.7",
        "@smithy/util-middleware": "^4.0.5",
        "@smithy/util-retry": "^4.0.7",
        "@smithy/util-utf8": "^4.0.0",
        "@types/uuid": "^9.0.1",
        tslib: "^2.6.2",
        uuid: "^9.0.1"
      },
      devDependencies: {
        "@tsconfig/node18": "18.2.4",
        "@types/node": "^18.19.69",
        concurrently: "7.0.0",
        "downlevel-dts": "0.10.1",
        rimraf: "3.0.2",
        typescript: "~5.8.3"
      },
      engines: {
        node: ">=18.0.0"
      },
      typesVersions: {
        "<4.0": {
          "dist-types/*": [
            "dist-types/ts3.4/*"
          ]
        }
      },
      files: [
        "dist-*/**"
      ],
      author: {
        name: "AWS SDK for JavaScript Team",
        url: "https://aws.amazon.com/javascript/"
      },
      license: "Apache-2.0",
      browser: {
        "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
      },
      "react-native": {
        "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
      },
      homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-cloudwatch-logs",
      repository: {
        type: "git",
        url: "https://github.com/aws/aws-sdk-js-v3.git",
        directory: "clients/client-cloudwatch-logs"
      }
    };
  }
});

// ../../node_modules/@aws-sdk/client-cloudwatch-logs/dist-cjs/endpoint/ruleset.js
var require_ruleset10 = __commonJS({
  "../../node_modules/@aws-sdk/client-cloudwatch-logs/dist-cjs/endpoint/ruleset.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.ruleSet = void 0;
    var u3 = "required";
    var v6 = "fn";
    var w3 = "argv";
    var x3 = "ref";
    var a3 = true;
    var b3 = "isSet";
    var c3 = "booleanEquals";
    var d3 = "error";
    var e3 = "endpoint";
    var f3 = "tree";
    var g3 = "PartitionResult";
    var h3 = "stringEquals";
    var i3 = { [u3]: false, "type": "String" };
    var j3 = { [u3]: true, "default": false, "type": "Boolean" };
    var k3 = { [x3]: "Endpoint" };
    var l3 = { [v6]: c3, [w3]: [{ [x3]: "UseFIPS" }, true] };
    var m3 = { [v6]: c3, [w3]: [{ [x3]: "UseDualStack" }, true] };
    var n3 = {};
    var o3 = { [x3]: "Region" };
    var p3 = { [v6]: "getAttr", [w3]: [{ [x3]: g3 }, "supportsFIPS"] };
    var q3 = { [v6]: c3, [w3]: [true, { [v6]: "getAttr", [w3]: [{ [x3]: g3 }, "supportsDualStack"] }] };
    var r3 = [l3];
    var s3 = [m3];
    var t3 = [o3];
    var _data3 = { version: "1.0", parameters: { Region: i3, UseDualStack: j3, UseFIPS: j3, Endpoint: i3 }, rules: [{ conditions: [{ [v6]: b3, [w3]: [k3] }], rules: [{ conditions: r3, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d3 }, { conditions: s3, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d3 }, { endpoint: { url: k3, properties: n3, headers: n3 }, type: e3 }], type: f3 }, { conditions: [{ [v6]: b3, [w3]: t3 }], rules: [{ conditions: [{ [v6]: "aws.partition", [w3]: t3, assign: g3 }], rules: [{ conditions: [l3, m3], rules: [{ conditions: [{ [v6]: c3, [w3]: [a3, p3] }, q3], rules: [{ endpoint: { url: "https://logs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n3, headers: n3 }, type: e3 }], type: f3 }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d3 }], type: f3 }, { conditions: r3, rules: [{ conditions: [{ [v6]: c3, [w3]: [p3, a3] }], rules: [{ conditions: [{ [v6]: h3, [w3]: [o3, "us-gov-east-1"] }], endpoint: { url: "https://logs.us-gov-east-1.amazonaws.com", properties: n3, headers: n3 }, type: e3 }, { conditions: [{ [v6]: h3, [w3]: [o3, "us-gov-west-1"] }], endpoint: { url: "https://logs.us-gov-west-1.amazonaws.com", properties: n3, headers: n3 }, type: e3 }, { endpoint: { url: "https://logs-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n3, headers: n3 }, type: e3 }], type: f3 }, { error: "FIPS is enabled but this partition does not support FIPS", type: d3 }], type: f3 }, { conditions: s3, rules: [{ conditions: [q3], rules: [{ endpoint: { url: "https://logs.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n3, headers: n3 }, type: e3 }], type: f3 }, { error: "DualStack is enabled but this partition does not support DualStack", type: d3 }], type: f3 }, { endpoint: { url: "https://logs.{Region}.{PartitionResult#dnsSuffix}", properties: n3, headers: n3 }, type: e3 }], type: f3 }], type: f3 }, { error: "Invalid Configuration: Missing Region", type: d3 }] };
    exports2.ruleSet = _data3;
  }
});

// ../../node_modules/@aws-sdk/client-cloudwatch-logs/dist-cjs/endpoint/endpointResolver.js
var require_endpointResolver10 = __commonJS({
  "../../node_modules/@aws-sdk/client-cloudwatch-logs/dist-cjs/endpoint/endpointResolver.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.defaultEndpointResolver = void 0;
    var util_endpoints_1 = require_dist_cjs21();
    var util_endpoints_2 = require_dist_cjs18();
    var ruleset_1 = require_ruleset10();
    var cache3 = new util_endpoints_2.EndpointCache({
      size: 50,
      params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"]
    });
    var defaultEndpointResolver3 = /* @__PURE__ */ __name((endpointParams, context = {}) => {
      return cache3.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
        endpointParams,
        logger: context.logger
      }));
    }, "defaultEndpointResolver");
    exports2.defaultEndpointResolver = defaultEndpointResolver3;
    util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
  }
});

// ../../node_modules/@aws-sdk/client-cloudwatch-logs/dist-cjs/runtimeConfig.shared.js
var require_runtimeConfig_shared11 = __commonJS({
  "../../node_modules/@aws-sdk/client-cloudwatch-logs/dist-cjs/runtimeConfig.shared.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.getRuntimeConfig = void 0;
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var smithy_client_1 = require_dist_cjs26();
    var url_parser_1 = require_dist_cjs20();
    var util_base64_1 = require_dist_cjs11();
    var util_utf8_1 = require_dist_cjs10();
    var httpAuthSchemeProvider_1 = require_httpAuthSchemeProvider10();
    var endpointResolver_1 = require_endpointResolver10();
    var getRuntimeConfig5 = /* @__PURE__ */ __name((config) => {
      return {
        apiVersion: "2014-03-28",
        base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
        base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
        disableHostPrefix: config?.disableHostPrefix ?? false,
        endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
        extensions: config?.extensions ?? [],
        httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultCloudWatchLogsHttpAuthSchemeProvider,
        httpAuthSchemes: config?.httpAuthSchemes ?? [
          {
            schemeId: "aws.auth#sigv4",
            identityProvider: /* @__PURE__ */ __name((ipc) => ipc.getIdentityProvider("aws.auth#sigv4"), "identityProvider"),
            signer: new core_1.AwsSdkSigV4Signer()
          }
        ],
        logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
        serviceId: config?.serviceId ?? "CloudWatch Logs",
        urlParser: config?.urlParser ?? url_parser_1.parseUrl,
        utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
        utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8
      };
    }, "getRuntimeConfig");
    exports2.getRuntimeConfig = getRuntimeConfig5;
  }
});

// ../../node_modules/@aws-sdk/client-cloudwatch-logs/dist-cjs/runtimeConfig.js
var require_runtimeConfig11 = __commonJS({
  "../../node_modules/@aws-sdk/client-cloudwatch-logs/dist-cjs/runtimeConfig.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.getRuntimeConfig = void 0;
    var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
    var package_json_1 = tslib_1.__importDefault(require_package10());
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var credential_provider_node_1 = require_dist_cjs52();
    var util_user_agent_node_1 = require_dist_cjs41();
    var config_resolver_1 = require_dist_cjs30();
    var eventstream_serde_node_1 = require_dist_cjs67();
    var hash_node_1 = require_dist_cjs42();
    var middleware_retry_1 = require_dist_cjs37();
    var node_config_provider_1 = require_dist_cjs33();
    var node_http_handler_1 = require_dist_cjs14();
    var util_body_length_node_1 = require_dist_cjs43();
    var util_retry_1 = require_dist_cjs36();
    var runtimeConfig_shared_1 = require_runtimeConfig_shared11();
    var smithy_client_1 = require_dist_cjs26();
    var util_defaults_mode_node_1 = require_dist_cjs44();
    var smithy_client_2 = require_dist_cjs26();
    var getRuntimeConfig5 = /* @__PURE__ */ __name((config) => {
      (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
      const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
      const defaultConfigProvider = /* @__PURE__ */ __name(() => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode), "defaultConfigProvider");
      const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
      (0, core_1.emitWarningIfUnsupportedVersion)(process.version);
      const loaderConfig = {
        profile: config?.profile,
        logger: clientSharedValues.logger
      };
      return {
        ...clientSharedValues,
        ...config,
        runtime: "node",
        defaultsMode,
        authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
        bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
        credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
        defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
        eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventstream_serde_node_1.eventStreamSerdeProvider,
        maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
        region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
        requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
        retryMode: config?.retryMode ?? (0, node_config_provider_1.loadConfig)({
          ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
          default: /* @__PURE__ */ __name(async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE, "default")
        }, config),
        sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
        streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
        useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
        useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
        userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig)
      };
    }, "getRuntimeConfig");
    exports2.getRuntimeConfig = getRuntimeConfig5;
  }
});

// ../../node_modules/@aws-sdk/client-cloudwatch-logs/dist-cjs/index.js
var require_dist_cjs83 = __commonJS({
  "../../node_modules/@aws-sdk/client-cloudwatch-logs/dist-cjs/index.js"(exports2, module2) {
    "use strict";
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var index_exports = {};
    __export2(index_exports, {
      AccessDeniedException: /* @__PURE__ */ __name(() => AccessDeniedException2, "AccessDeniedException"),
      AnomalyDetectorStatus: /* @__PURE__ */ __name(() => AnomalyDetectorStatus, "AnomalyDetectorStatus"),
      AssociateKmsKeyCommand: /* @__PURE__ */ __name(() => AssociateKmsKeyCommand, "AssociateKmsKeyCommand"),
      CancelExportTaskCommand: /* @__PURE__ */ __name(() => CancelExportTaskCommand, "CancelExportTaskCommand"),
      CloudWatchLogs: /* @__PURE__ */ __name(() => CloudWatchLogs, "CloudWatchLogs"),
      CloudWatchLogsClient: /* @__PURE__ */ __name(() => CloudWatchLogsClient2, "CloudWatchLogsClient"),
      CloudWatchLogsServiceException: /* @__PURE__ */ __name(() => CloudWatchLogsServiceException, "CloudWatchLogsServiceException"),
      ConflictException: /* @__PURE__ */ __name(() => ConflictException, "ConflictException"),
      CreateDeliveryCommand: /* @__PURE__ */ __name(() => CreateDeliveryCommand, "CreateDeliveryCommand"),
      CreateExportTaskCommand: /* @__PURE__ */ __name(() => CreateExportTaskCommand, "CreateExportTaskCommand"),
      CreateLogAnomalyDetectorCommand: /* @__PURE__ */ __name(() => CreateLogAnomalyDetectorCommand, "CreateLogAnomalyDetectorCommand"),
      CreateLogGroupCommand: /* @__PURE__ */ __name(() => CreateLogGroupCommand, "CreateLogGroupCommand"),
      CreateLogStreamCommand: /* @__PURE__ */ __name(() => CreateLogStreamCommand, "CreateLogStreamCommand"),
      DataAlreadyAcceptedException: /* @__PURE__ */ __name(() => DataAlreadyAcceptedException, "DataAlreadyAcceptedException"),
      DataProtectionStatus: /* @__PURE__ */ __name(() => DataProtectionStatus, "DataProtectionStatus"),
      DeleteAccountPolicyCommand: /* @__PURE__ */ __name(() => DeleteAccountPolicyCommand, "DeleteAccountPolicyCommand"),
      DeleteDataProtectionPolicyCommand: /* @__PURE__ */ __name(() => DeleteDataProtectionPolicyCommand, "DeleteDataProtectionPolicyCommand"),
      DeleteDeliveryCommand: /* @__PURE__ */ __name(() => DeleteDeliveryCommand, "DeleteDeliveryCommand"),
      DeleteDeliveryDestinationCommand: /* @__PURE__ */ __name(() => DeleteDeliveryDestinationCommand, "DeleteDeliveryDestinationCommand"),
      DeleteDeliveryDestinationPolicyCommand: /* @__PURE__ */ __name(() => DeleteDeliveryDestinationPolicyCommand, "DeleteDeliveryDestinationPolicyCommand"),
      DeleteDeliverySourceCommand: /* @__PURE__ */ __name(() => DeleteDeliverySourceCommand, "DeleteDeliverySourceCommand"),
      DeleteDestinationCommand: /* @__PURE__ */ __name(() => DeleteDestinationCommand, "DeleteDestinationCommand"),
      DeleteIndexPolicyCommand: /* @__PURE__ */ __name(() => DeleteIndexPolicyCommand, "DeleteIndexPolicyCommand"),
      DeleteIntegrationCommand: /* @__PURE__ */ __name(() => DeleteIntegrationCommand, "DeleteIntegrationCommand"),
      DeleteLogAnomalyDetectorCommand: /* @__PURE__ */ __name(() => DeleteLogAnomalyDetectorCommand, "DeleteLogAnomalyDetectorCommand"),
      DeleteLogGroupCommand: /* @__PURE__ */ __name(() => DeleteLogGroupCommand, "DeleteLogGroupCommand"),
      DeleteLogStreamCommand: /* @__PURE__ */ __name(() => DeleteLogStreamCommand, "DeleteLogStreamCommand"),
      DeleteMetricFilterCommand: /* @__PURE__ */ __name(() => DeleteMetricFilterCommand, "DeleteMetricFilterCommand"),
      DeleteQueryDefinitionCommand: /* @__PURE__ */ __name(() => DeleteQueryDefinitionCommand, "DeleteQueryDefinitionCommand"),
      DeleteResourcePolicyCommand: /* @__PURE__ */ __name(() => DeleteResourcePolicyCommand, "DeleteResourcePolicyCommand"),
      DeleteRetentionPolicyCommand: /* @__PURE__ */ __name(() => DeleteRetentionPolicyCommand, "DeleteRetentionPolicyCommand"),
      DeleteSubscriptionFilterCommand: /* @__PURE__ */ __name(() => DeleteSubscriptionFilterCommand, "DeleteSubscriptionFilterCommand"),
      DeleteTransformerCommand: /* @__PURE__ */ __name(() => DeleteTransformerCommand, "DeleteTransformerCommand"),
      DeliveryDestinationType: /* @__PURE__ */ __name(() => DeliveryDestinationType, "DeliveryDestinationType"),
      DescribeAccountPoliciesCommand: /* @__PURE__ */ __name(() => DescribeAccountPoliciesCommand, "DescribeAccountPoliciesCommand"),
      DescribeConfigurationTemplatesCommand: /* @__PURE__ */ __name(() => DescribeConfigurationTemplatesCommand, "DescribeConfigurationTemplatesCommand"),
      DescribeDeliveriesCommand: /* @__PURE__ */ __name(() => DescribeDeliveriesCommand, "DescribeDeliveriesCommand"),
      DescribeDeliveryDestinationsCommand: /* @__PURE__ */ __name(() => DescribeDeliveryDestinationsCommand, "DescribeDeliveryDestinationsCommand"),
      DescribeDeliverySourcesCommand: /* @__PURE__ */ __name(() => DescribeDeliverySourcesCommand, "DescribeDeliverySourcesCommand"),
      DescribeDestinationsCommand: /* @__PURE__ */ __name(() => DescribeDestinationsCommand, "DescribeDestinationsCommand"),
      DescribeExportTasksCommand: /* @__PURE__ */ __name(() => DescribeExportTasksCommand, "DescribeExportTasksCommand"),
      DescribeFieldIndexesCommand: /* @__PURE__ */ __name(() => DescribeFieldIndexesCommand, "DescribeFieldIndexesCommand"),
      DescribeIndexPoliciesCommand: /* @__PURE__ */ __name(() => DescribeIndexPoliciesCommand, "DescribeIndexPoliciesCommand"),
      DescribeLogGroupsCommand: /* @__PURE__ */ __name(() => DescribeLogGroupsCommand2, "DescribeLogGroupsCommand"),
      DescribeLogStreamsCommand: /* @__PURE__ */ __name(() => DescribeLogStreamsCommand, "DescribeLogStreamsCommand"),
      DescribeMetricFiltersCommand: /* @__PURE__ */ __name(() => DescribeMetricFiltersCommand, "DescribeMetricFiltersCommand"),
      DescribeQueriesCommand: /* @__PURE__ */ __name(() => DescribeQueriesCommand, "DescribeQueriesCommand"),
      DescribeQueryDefinitionsCommand: /* @__PURE__ */ __name(() => DescribeQueryDefinitionsCommand, "DescribeQueryDefinitionsCommand"),
      DescribeResourcePoliciesCommand: /* @__PURE__ */ __name(() => DescribeResourcePoliciesCommand, "DescribeResourcePoliciesCommand"),
      DescribeSubscriptionFiltersCommand: /* @__PURE__ */ __name(() => DescribeSubscriptionFiltersCommand, "DescribeSubscriptionFiltersCommand"),
      DisassociateKmsKeyCommand: /* @__PURE__ */ __name(() => DisassociateKmsKeyCommand, "DisassociateKmsKeyCommand"),
      Distribution: /* @__PURE__ */ __name(() => Distribution, "Distribution"),
      EntityRejectionErrorType: /* @__PURE__ */ __name(() => EntityRejectionErrorType, "EntityRejectionErrorType"),
      EvaluationFrequency: /* @__PURE__ */ __name(() => EvaluationFrequency, "EvaluationFrequency"),
      EventSource: /* @__PURE__ */ __name(() => EventSource, "EventSource"),
      ExportTaskStatusCode: /* @__PURE__ */ __name(() => ExportTaskStatusCode, "ExportTaskStatusCode"),
      FilterLogEventsCommand: /* @__PURE__ */ __name(() => FilterLogEventsCommand2, "FilterLogEventsCommand"),
      FlattenedElement: /* @__PURE__ */ __name(() => FlattenedElement, "FlattenedElement"),
      GetDataProtectionPolicyCommand: /* @__PURE__ */ __name(() => GetDataProtectionPolicyCommand, "GetDataProtectionPolicyCommand"),
      GetDeliveryCommand: /* @__PURE__ */ __name(() => GetDeliveryCommand, "GetDeliveryCommand"),
      GetDeliveryDestinationCommand: /* @__PURE__ */ __name(() => GetDeliveryDestinationCommand, "GetDeliveryDestinationCommand"),
      GetDeliveryDestinationPolicyCommand: /* @__PURE__ */ __name(() => GetDeliveryDestinationPolicyCommand, "GetDeliveryDestinationPolicyCommand"),
      GetDeliverySourceCommand: /* @__PURE__ */ __name(() => GetDeliverySourceCommand, "GetDeliverySourceCommand"),
      GetIntegrationCommand: /* @__PURE__ */ __name(() => GetIntegrationCommand, "GetIntegrationCommand"),
      GetLogAnomalyDetectorCommand: /* @__PURE__ */ __name(() => GetLogAnomalyDetectorCommand, "GetLogAnomalyDetectorCommand"),
      GetLogEventsCommand: /* @__PURE__ */ __name(() => GetLogEventsCommand, "GetLogEventsCommand"),
      GetLogGroupFieldsCommand: /* @__PURE__ */ __name(() => GetLogGroupFieldsCommand, "GetLogGroupFieldsCommand"),
      GetLogObjectCommand: /* @__PURE__ */ __name(() => GetLogObjectCommand, "GetLogObjectCommand"),
      GetLogObjectResponseFilterSensitiveLog: /* @__PURE__ */ __name(() => GetLogObjectResponseFilterSensitiveLog, "GetLogObjectResponseFilterSensitiveLog"),
      GetLogObjectResponseStream: /* @__PURE__ */ __name(() => GetLogObjectResponseStream, "GetLogObjectResponseStream"),
      GetLogObjectResponseStreamFilterSensitiveLog: /* @__PURE__ */ __name(() => GetLogObjectResponseStreamFilterSensitiveLog, "GetLogObjectResponseStreamFilterSensitiveLog"),
      GetLogRecordCommand: /* @__PURE__ */ __name(() => GetLogRecordCommand, "GetLogRecordCommand"),
      GetQueryResultsCommand: /* @__PURE__ */ __name(() => GetQueryResultsCommand, "GetQueryResultsCommand"),
      GetTransformerCommand: /* @__PURE__ */ __name(() => GetTransformerCommand, "GetTransformerCommand"),
      IndexSource: /* @__PURE__ */ __name(() => IndexSource, "IndexSource"),
      InheritedProperty: /* @__PURE__ */ __name(() => InheritedProperty, "InheritedProperty"),
      IntegrationDetails: /* @__PURE__ */ __name(() => IntegrationDetails, "IntegrationDetails"),
      IntegrationStatus: /* @__PURE__ */ __name(() => IntegrationStatus, "IntegrationStatus"),
      IntegrationType: /* @__PURE__ */ __name(() => IntegrationType, "IntegrationType"),
      InternalStreamingException: /* @__PURE__ */ __name(() => InternalStreamingException, "InternalStreamingException"),
      InvalidOperationException: /* @__PURE__ */ __name(() => InvalidOperationException, "InvalidOperationException"),
      InvalidParameterException: /* @__PURE__ */ __name(() => InvalidParameterException, "InvalidParameterException"),
      InvalidSequenceTokenException: /* @__PURE__ */ __name(() => InvalidSequenceTokenException, "InvalidSequenceTokenException"),
      LimitExceededException: /* @__PURE__ */ __name(() => LimitExceededException, "LimitExceededException"),
      ListAnomaliesCommand: /* @__PURE__ */ __name(() => ListAnomaliesCommand, "ListAnomaliesCommand"),
      ListIntegrationsCommand: /* @__PURE__ */ __name(() => ListIntegrationsCommand, "ListIntegrationsCommand"),
      ListLogAnomalyDetectorsCommand: /* @__PURE__ */ __name(() => ListLogAnomalyDetectorsCommand, "ListLogAnomalyDetectorsCommand"),
      ListLogGroupsCommand: /* @__PURE__ */ __name(() => ListLogGroupsCommand, "ListLogGroupsCommand"),
      ListLogGroupsForQueryCommand: /* @__PURE__ */ __name(() => ListLogGroupsForQueryCommand, "ListLogGroupsForQueryCommand"),
      ListTagsForResourceCommand: /* @__PURE__ */ __name(() => ListTagsForResourceCommand, "ListTagsForResourceCommand"),
      ListTagsLogGroupCommand: /* @__PURE__ */ __name(() => ListTagsLogGroupCommand, "ListTagsLogGroupCommand"),
      LogGroupClass: /* @__PURE__ */ __name(() => LogGroupClass, "LogGroupClass"),
      MalformedQueryException: /* @__PURE__ */ __name(() => MalformedQueryException, "MalformedQueryException"),
      OCSFVersion: /* @__PURE__ */ __name(() => OCSFVersion, "OCSFVersion"),
      OpenSearchResourceStatusType: /* @__PURE__ */ __name(() => OpenSearchResourceStatusType, "OpenSearchResourceStatusType"),
      OperationAbortedException: /* @__PURE__ */ __name(() => OperationAbortedException, "OperationAbortedException"),
      OrderBy: /* @__PURE__ */ __name(() => OrderBy, "OrderBy"),
      OutputFormat: /* @__PURE__ */ __name(() => OutputFormat, "OutputFormat"),
      PolicyScope: /* @__PURE__ */ __name(() => PolicyScope, "PolicyScope"),
      PolicyType: /* @__PURE__ */ __name(() => PolicyType, "PolicyType"),
      PutAccountPolicyCommand: /* @__PURE__ */ __name(() => PutAccountPolicyCommand, "PutAccountPolicyCommand"),
      PutDataProtectionPolicyCommand: /* @__PURE__ */ __name(() => PutDataProtectionPolicyCommand, "PutDataProtectionPolicyCommand"),
      PutDeliveryDestinationCommand: /* @__PURE__ */ __name(() => PutDeliveryDestinationCommand, "PutDeliveryDestinationCommand"),
      PutDeliveryDestinationPolicyCommand: /* @__PURE__ */ __name(() => PutDeliveryDestinationPolicyCommand, "PutDeliveryDestinationPolicyCommand"),
      PutDeliverySourceCommand: /* @__PURE__ */ __name(() => PutDeliverySourceCommand, "PutDeliverySourceCommand"),
      PutDestinationCommand: /* @__PURE__ */ __name(() => PutDestinationCommand, "PutDestinationCommand"),
      PutDestinationPolicyCommand: /* @__PURE__ */ __name(() => PutDestinationPolicyCommand, "PutDestinationPolicyCommand"),
      PutIndexPolicyCommand: /* @__PURE__ */ __name(() => PutIndexPolicyCommand, "PutIndexPolicyCommand"),
      PutIntegrationCommand: /* @__PURE__ */ __name(() => PutIntegrationCommand, "PutIntegrationCommand"),
      PutLogEventsCommand: /* @__PURE__ */ __name(() => PutLogEventsCommand, "PutLogEventsCommand"),
      PutMetricFilterCommand: /* @__PURE__ */ __name(() => PutMetricFilterCommand, "PutMetricFilterCommand"),
      PutQueryDefinitionCommand: /* @__PURE__ */ __name(() => PutQueryDefinitionCommand, "PutQueryDefinitionCommand"),
      PutResourcePolicyCommand: /* @__PURE__ */ __name(() => PutResourcePolicyCommand, "PutResourcePolicyCommand"),
      PutRetentionPolicyCommand: /* @__PURE__ */ __name(() => PutRetentionPolicyCommand, "PutRetentionPolicyCommand"),
      PutSubscriptionFilterCommand: /* @__PURE__ */ __name(() => PutSubscriptionFilterCommand, "PutSubscriptionFilterCommand"),
      PutTransformerCommand: /* @__PURE__ */ __name(() => PutTransformerCommand, "PutTransformerCommand"),
      QueryLanguage: /* @__PURE__ */ __name(() => QueryLanguage, "QueryLanguage"),
      QueryStatus: /* @__PURE__ */ __name(() => QueryStatus, "QueryStatus"),
      ResourceAlreadyExistsException: /* @__PURE__ */ __name(() => ResourceAlreadyExistsException, "ResourceAlreadyExistsException"),
      ResourceConfig: /* @__PURE__ */ __name(() => ResourceConfig, "ResourceConfig"),
      ResourceNotFoundException: /* @__PURE__ */ __name(() => ResourceNotFoundException2, "ResourceNotFoundException"),
      Scope: /* @__PURE__ */ __name(() => Scope, "Scope"),
      ServiceQuotaExceededException: /* @__PURE__ */ __name(() => ServiceQuotaExceededException, "ServiceQuotaExceededException"),
      ServiceUnavailableException: /* @__PURE__ */ __name(() => ServiceUnavailableException, "ServiceUnavailableException"),
      SessionStreamingException: /* @__PURE__ */ __name(() => SessionStreamingException, "SessionStreamingException"),
      SessionTimeoutException: /* @__PURE__ */ __name(() => SessionTimeoutException, "SessionTimeoutException"),
      StandardUnit: /* @__PURE__ */ __name(() => StandardUnit, "StandardUnit"),
      StartLiveTailCommand: /* @__PURE__ */ __name(() => StartLiveTailCommand, "StartLiveTailCommand"),
      StartLiveTailResponseFilterSensitiveLog: /* @__PURE__ */ __name(() => StartLiveTailResponseFilterSensitiveLog, "StartLiveTailResponseFilterSensitiveLog"),
      StartLiveTailResponseStream: /* @__PURE__ */ __name(() => StartLiveTailResponseStream, "StartLiveTailResponseStream"),
      StartLiveTailResponseStreamFilterSensitiveLog: /* @__PURE__ */ __name(() => StartLiveTailResponseStreamFilterSensitiveLog, "StartLiveTailResponseStreamFilterSensitiveLog"),
      StartQueryCommand: /* @__PURE__ */ __name(() => StartQueryCommand, "StartQueryCommand"),
      State: /* @__PURE__ */ __name(() => State, "State"),
      StopQueryCommand: /* @__PURE__ */ __name(() => StopQueryCommand, "StopQueryCommand"),
      SuppressionState: /* @__PURE__ */ __name(() => SuppressionState, "SuppressionState"),
      SuppressionType: /* @__PURE__ */ __name(() => SuppressionType, "SuppressionType"),
      SuppressionUnit: /* @__PURE__ */ __name(() => SuppressionUnit, "SuppressionUnit"),
      TagLogGroupCommand: /* @__PURE__ */ __name(() => TagLogGroupCommand, "TagLogGroupCommand"),
      TagResourceCommand: /* @__PURE__ */ __name(() => TagResourceCommand, "TagResourceCommand"),
      TestMetricFilterCommand: /* @__PURE__ */ __name(() => TestMetricFilterCommand, "TestMetricFilterCommand"),
      TestTransformerCommand: /* @__PURE__ */ __name(() => TestTransformerCommand, "TestTransformerCommand"),
      ThrottlingException: /* @__PURE__ */ __name(() => ThrottlingException, "ThrottlingException"),
      TooManyTagsException: /* @__PURE__ */ __name(() => TooManyTagsException, "TooManyTagsException"),
      Type: /* @__PURE__ */ __name(() => Type, "Type"),
      UnrecognizedClientException: /* @__PURE__ */ __name(() => UnrecognizedClientException, "UnrecognizedClientException"),
      UntagLogGroupCommand: /* @__PURE__ */ __name(() => UntagLogGroupCommand, "UntagLogGroupCommand"),
      UntagResourceCommand: /* @__PURE__ */ __name(() => UntagResourceCommand, "UntagResourceCommand"),
      UpdateAnomalyCommand: /* @__PURE__ */ __name(() => UpdateAnomalyCommand, "UpdateAnomalyCommand"),
      UpdateDeliveryConfigurationCommand: /* @__PURE__ */ __name(() => UpdateDeliveryConfigurationCommand, "UpdateDeliveryConfigurationCommand"),
      UpdateLogAnomalyDetectorCommand: /* @__PURE__ */ __name(() => UpdateLogAnomalyDetectorCommand, "UpdateLogAnomalyDetectorCommand"),
      ValidationException: /* @__PURE__ */ __name(() => ValidationException, "ValidationException"),
      __Client: /* @__PURE__ */ __name(() => import_smithy_client28.Client, "__Client"),
      paginateDescribeConfigurationTemplates: /* @__PURE__ */ __name(() => paginateDescribeConfigurationTemplates, "paginateDescribeConfigurationTemplates"),
      paginateDescribeDeliveries: /* @__PURE__ */ __name(() => paginateDescribeDeliveries, "paginateDescribeDeliveries"),
      paginateDescribeDeliveryDestinations: /* @__PURE__ */ __name(() => paginateDescribeDeliveryDestinations, "paginateDescribeDeliveryDestinations"),
      paginateDescribeDeliverySources: /* @__PURE__ */ __name(() => paginateDescribeDeliverySources, "paginateDescribeDeliverySources"),
      paginateDescribeDestinations: /* @__PURE__ */ __name(() => paginateDescribeDestinations, "paginateDescribeDestinations"),
      paginateDescribeLogGroups: /* @__PURE__ */ __name(() => paginateDescribeLogGroups, "paginateDescribeLogGroups"),
      paginateDescribeLogStreams: /* @__PURE__ */ __name(() => paginateDescribeLogStreams, "paginateDescribeLogStreams"),
      paginateDescribeMetricFilters: /* @__PURE__ */ __name(() => paginateDescribeMetricFilters, "paginateDescribeMetricFilters"),
      paginateDescribeSubscriptionFilters: /* @__PURE__ */ __name(() => paginateDescribeSubscriptionFilters, "paginateDescribeSubscriptionFilters"),
      paginateFilterLogEvents: /* @__PURE__ */ __name(() => paginateFilterLogEvents, "paginateFilterLogEvents"),
      paginateGetLogEvents: /* @__PURE__ */ __name(() => paginateGetLogEvents, "paginateGetLogEvents"),
      paginateListAnomalies: /* @__PURE__ */ __name(() => paginateListAnomalies, "paginateListAnomalies"),
      paginateListLogAnomalyDetectors: /* @__PURE__ */ __name(() => paginateListLogAnomalyDetectors, "paginateListLogAnomalyDetectors"),
      paginateListLogGroupsForQuery: /* @__PURE__ */ __name(() => paginateListLogGroupsForQuery, "paginateListLogGroupsForQuery")
    });
    module2.exports = __toCommonJS2(index_exports);
    var import_middleware_host_header3 = require_dist_cjs3();
    var import_middleware_logger3 = require_dist_cjs4();
    var import_middleware_recursion_detection3 = require_dist_cjs5();
    var import_middleware_user_agent3 = require_dist_cjs28();
    var import_config_resolver6 = require_dist_cjs30();
    var import_core17 = (init_dist_es(), __toCommonJS(dist_es_exports));
    var import_eventstream_serde_config_resolver = require_dist_cjs62();
    var import_middleware_content_length3 = require_dist_cjs31();
    var import_middleware_endpoint8 = require_dist_cjs34();
    var import_middleware_retry5 = require_dist_cjs37();
    var import_httpAuthSchemeProvider5 = require_httpAuthSchemeProvider10();
    var resolveClientEndpointParameters3 = /* @__PURE__ */ __name2((options) => {
      return Object.assign(options, {
        useDualstackEndpoint: options.useDualstackEndpoint ?? false,
        useFipsEndpoint: options.useFipsEndpoint ?? false,
        defaultSigningName: "logs"
      });
    }, "resolveClientEndpointParameters");
    var commonParams3 = {
      UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
      Endpoint: { type: "builtInParams", name: "endpoint" },
      Region: { type: "builtInParams", name: "region" },
      UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
    };
    var import_runtimeConfig5 = require_runtimeConfig11();
    var import_region_config_resolver3 = require_dist_cjs45();
    var import_protocol_http16 = require_dist_cjs2();
    var import_smithy_client28 = require_dist_cjs26();
    var getHttpAuthExtensionConfiguration3 = /* @__PURE__ */ __name2((runtimeConfig) => {
      const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
      let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
      let _credentials = runtimeConfig.credentials;
      return {
        setHttpAuthScheme(httpAuthScheme) {
          const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
          if (index === -1) {
            _httpAuthSchemes.push(httpAuthScheme);
          } else {
            _httpAuthSchemes.splice(index, 1, httpAuthScheme);
          }
        },
        httpAuthSchemes() {
          return _httpAuthSchemes;
        },
        setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
          _httpAuthSchemeProvider = httpAuthSchemeProvider;
        },
        httpAuthSchemeProvider() {
          return _httpAuthSchemeProvider;
        },
        setCredentials(credentials) {
          _credentials = credentials;
        },
        credentials() {
          return _credentials;
        }
      };
    }, "getHttpAuthExtensionConfiguration");
    var resolveHttpAuthRuntimeConfig3 = /* @__PURE__ */ __name2((config) => {
      return {
        httpAuthSchemes: config.httpAuthSchemes(),
        httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
        credentials: config.credentials()
      };
    }, "resolveHttpAuthRuntimeConfig");
    var resolveRuntimeExtensions3 = /* @__PURE__ */ __name2((runtimeConfig, extensions) => {
      const extensionConfiguration = Object.assign(
        (0, import_region_config_resolver3.getAwsRegionExtensionConfiguration)(runtimeConfig),
        (0, import_smithy_client28.getDefaultExtensionConfiguration)(runtimeConfig),
        (0, import_protocol_http16.getHttpHandlerExtensionConfiguration)(runtimeConfig),
        getHttpAuthExtensionConfiguration3(runtimeConfig)
      );
      extensions.forEach((extension) => extension.configure(extensionConfiguration));
      return Object.assign(
        runtimeConfig,
        (0, import_region_config_resolver3.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
        (0, import_smithy_client28.resolveDefaultRuntimeConfig)(extensionConfiguration),
        (0, import_protocol_http16.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
        resolveHttpAuthRuntimeConfig3(extensionConfiguration)
      );
    }, "resolveRuntimeExtensions");
    var CloudWatchLogsClient2 = class extends import_smithy_client28.Client {
      static {
        __name(this, "CloudWatchLogsClient");
      }
      static {
        __name2(this, "CloudWatchLogsClient");
      }
      /**
       * The resolved configuration of CloudWatchLogsClient class. This is resolved and normalized from the {@link CloudWatchLogsClientConfig | constructor configuration interface}.
       */
      config;
      constructor(...[configuration]) {
        const _config_0 = (0, import_runtimeConfig5.getRuntimeConfig)(configuration || {});
        super(_config_0);
        this.initConfig = _config_0;
        const _config_1 = resolveClientEndpointParameters3(_config_0);
        const _config_2 = (0, import_middleware_user_agent3.resolveUserAgentConfig)(_config_1);
        const _config_3 = (0, import_middleware_retry5.resolveRetryConfig)(_config_2);
        const _config_4 = (0, import_config_resolver6.resolveRegionConfig)(_config_3);
        const _config_5 = (0, import_middleware_host_header3.resolveHostHeaderConfig)(_config_4);
        const _config_6 = (0, import_middleware_endpoint8.resolveEndpointConfig)(_config_5);
        const _config_7 = (0, import_eventstream_serde_config_resolver.resolveEventStreamSerdeConfig)(_config_6);
        const _config_8 = (0, import_httpAuthSchemeProvider5.resolveHttpAuthSchemeConfig)(_config_7);
        const _config_9 = resolveRuntimeExtensions3(_config_8, configuration?.extensions || []);
        this.config = _config_9;
        this.middlewareStack.use((0, import_middleware_user_agent3.getUserAgentPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_retry5.getRetryPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_content_length3.getContentLengthPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_host_header3.getHostHeaderPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_logger3.getLoggerPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_recursion_detection3.getRecursionDetectionPlugin)(this.config));
        this.middlewareStack.use(
          (0, import_core17.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
            httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider5.defaultCloudWatchLogsHttpAuthSchemeParametersProvider,
            identityProviderConfigProvider: /* @__PURE__ */ __name2(async (config) => new import_core17.DefaultIdentityProviderConfig({
              "aws.auth#sigv4": config.credentials
            }), "identityProviderConfigProvider")
          })
        );
        this.middlewareStack.use((0, import_core17.getHttpSigningPlugin)(this.config));
      }
      /**
       * Destroy underlying resources, like sockets. It's usually not necessary to do this.
       * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
       * Otherwise, sockets might stay open for quite a long time before the server terminates them.
       */
      destroy() {
        super.destroy();
      }
    };
    var import_middleware_serde5 = require_dist_cjs7();
    var import_core22 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var import_uuid2 = (init_esm_node(), __toCommonJS(esm_node_exports));
    var CloudWatchLogsServiceException = class _CloudWatchLogsServiceException extends import_smithy_client28.ServiceException {
      static {
        __name(this, "_CloudWatchLogsServiceException");
      }
      static {
        __name2(this, "CloudWatchLogsServiceException");
      }
      /**
       * @internal
       */
      constructor(options) {
        super(options);
        Object.setPrototypeOf(this, _CloudWatchLogsServiceException.prototype);
      }
    };
    var AccessDeniedException2 = class _AccessDeniedException extends CloudWatchLogsServiceException {
      static {
        __name(this, "_AccessDeniedException");
      }
      static {
        __name2(this, "AccessDeniedException");
      }
      name = "AccessDeniedException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "AccessDeniedException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _AccessDeniedException.prototype);
      }
    };
    var PolicyType = {
      DATA_PROTECTION_POLICY: "DATA_PROTECTION_POLICY",
      FIELD_INDEX_POLICY: "FIELD_INDEX_POLICY",
      METRIC_EXTRACTION_POLICY: "METRIC_EXTRACTION_POLICY",
      SUBSCRIPTION_FILTER_POLICY: "SUBSCRIPTION_FILTER_POLICY",
      TRANSFORMER_POLICY: "TRANSFORMER_POLICY"
    };
    var Scope = {
      ALL: "ALL"
    };
    var State = {
      Active: "Active",
      Baseline: "Baseline",
      Suppressed: "Suppressed"
    };
    var AnomalyDetectorStatus = {
      ANALYZING: "ANALYZING",
      DELETED: "DELETED",
      FAILED: "FAILED",
      INITIALIZING: "INITIALIZING",
      PAUSED: "PAUSED",
      TRAINING: "TRAINING"
    };
    var EvaluationFrequency = {
      FIFTEEN_MIN: "FIFTEEN_MIN",
      FIVE_MIN: "FIVE_MIN",
      ONE_HOUR: "ONE_HOUR",
      ONE_MIN: "ONE_MIN",
      TEN_MIN: "TEN_MIN",
      THIRTY_MIN: "THIRTY_MIN"
    };
    var InvalidParameterException = class _InvalidParameterException extends CloudWatchLogsServiceException {
      static {
        __name(this, "_InvalidParameterException");
      }
      static {
        __name2(this, "InvalidParameterException");
      }
      name = "InvalidParameterException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidParameterException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidParameterException.prototype);
      }
    };
    var OperationAbortedException = class _OperationAbortedException extends CloudWatchLogsServiceException {
      static {
        __name(this, "_OperationAbortedException");
      }
      static {
        __name2(this, "OperationAbortedException");
      }
      name = "OperationAbortedException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "OperationAbortedException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _OperationAbortedException.prototype);
      }
    };
    var ResourceNotFoundException2 = class _ResourceNotFoundException extends CloudWatchLogsServiceException {
      static {
        __name(this, "_ResourceNotFoundException");
      }
      static {
        __name2(this, "ResourceNotFoundException");
      }
      name = "ResourceNotFoundException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ResourceNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
      }
    };
    var ServiceUnavailableException = class _ServiceUnavailableException extends CloudWatchLogsServiceException {
      static {
        __name(this, "_ServiceUnavailableException");
      }
      static {
        __name2(this, "ServiceUnavailableException");
      }
      name = "ServiceUnavailableException";
      $fault = "server";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ServiceUnavailableException",
          $fault: "server",
          ...opts
        });
        Object.setPrototypeOf(this, _ServiceUnavailableException.prototype);
      }
    };
    var InvalidOperationException = class _InvalidOperationException extends CloudWatchLogsServiceException {
      static {
        __name(this, "_InvalidOperationException");
      }
      static {
        __name2(this, "InvalidOperationException");
      }
      name = "InvalidOperationException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidOperationException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidOperationException.prototype);
      }
    };
    var OutputFormat = {
      JSON: "json",
      PARQUET: "parquet",
      PLAIN: "plain",
      RAW: "raw",
      W3C: "w3c"
    };
    var DeliveryDestinationType = {
      CWL: "CWL",
      FH: "FH",
      S3: "S3",
      XRAY: "XRAY"
    };
    var ConflictException = class _ConflictException extends CloudWatchLogsServiceException {
      static {
        __name(this, "_ConflictException");
      }
      static {
        __name2(this, "ConflictException");
      }
      name = "ConflictException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ConflictException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ConflictException.prototype);
      }
    };
    var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends CloudWatchLogsServiceException {
      static {
        __name(this, "_ServiceQuotaExceededException");
      }
      static {
        __name2(this, "ServiceQuotaExceededException");
      }
      name = "ServiceQuotaExceededException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ServiceQuotaExceededException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
      }
    };
    var ThrottlingException = class _ThrottlingException extends CloudWatchLogsServiceException {
      static {
        __name(this, "_ThrottlingException");
      }
      static {
        __name2(this, "ThrottlingException");
      }
      name = "ThrottlingException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ThrottlingException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ThrottlingException.prototype);
      }
    };
    var ValidationException = class _ValidationException extends CloudWatchLogsServiceException {
      static {
        __name(this, "_ValidationException");
      }
      static {
        __name2(this, "ValidationException");
      }
      name = "ValidationException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ValidationException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ValidationException.prototype);
      }
    };
    var LimitExceededException = class _LimitExceededException extends CloudWatchLogsServiceException {
      static {
        __name(this, "_LimitExceededException");
      }
      static {
        __name2(this, "LimitExceededException");
      }
      name = "LimitExceededException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "LimitExceededException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _LimitExceededException.prototype);
      }
    };
    var ResourceAlreadyExistsException = class _ResourceAlreadyExistsException extends CloudWatchLogsServiceException {
      static {
        __name(this, "_ResourceAlreadyExistsException");
      }
      static {
        __name2(this, "ResourceAlreadyExistsException");
      }
      name = "ResourceAlreadyExistsException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ResourceAlreadyExistsException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ResourceAlreadyExistsException.prototype);
      }
    };
    var LogGroupClass = {
      DELIVERY: "DELIVERY",
      INFREQUENT_ACCESS: "INFREQUENT_ACCESS",
      STANDARD: "STANDARD"
    };
    var DataAlreadyAcceptedException = class _DataAlreadyAcceptedException extends CloudWatchLogsServiceException {
      static {
        __name(this, "_DataAlreadyAcceptedException");
      }
      static {
        __name2(this, "DataAlreadyAcceptedException");
      }
      name = "DataAlreadyAcceptedException";
      $fault = "client";
      expectedSequenceToken;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "DataAlreadyAcceptedException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _DataAlreadyAcceptedException.prototype);
        this.expectedSequenceToken = opts.expectedSequenceToken;
      }
    };
    var DataProtectionStatus = {
      ACTIVATED: "ACTIVATED",
      ARCHIVED: "ARCHIVED",
      DELETED: "DELETED",
      DISABLED: "DISABLED"
    };
    var ExportTaskStatusCode = {
      CANCELLED: "CANCELLED",
      COMPLETED: "COMPLETED",
      FAILED: "FAILED",
      PENDING: "PENDING",
      PENDING_CANCEL: "PENDING_CANCEL",
      RUNNING: "RUNNING"
    };
    var IndexSource = {
      ACCOUNT: "ACCOUNT",
      LOG_GROUP: "LOG_GROUP"
    };
    var InheritedProperty = {
      ACCOUNT_DATA_PROTECTION: "ACCOUNT_DATA_PROTECTION"
    };
    var OrderBy = {
      LastEventTime: "LastEventTime",
      LogStreamName: "LogStreamName"
    };
    var StandardUnit = {
      Bits: "Bits",
      BitsSecond: "Bits/Second",
      Bytes: "Bytes",
      BytesSecond: "Bytes/Second",
      Count: "Count",
      CountSecond: "Count/Second",
      Gigabits: "Gigabits",
      GigabitsSecond: "Gigabits/Second",
      Gigabytes: "Gigabytes",
      GigabytesSecond: "Gigabytes/Second",
      Kilobits: "Kilobits",
      KilobitsSecond: "Kilobits/Second",
      Kilobytes: "Kilobytes",
      KilobytesSecond: "Kilobytes/Second",
      Megabits: "Megabits",
      MegabitsSecond: "Megabits/Second",
      Megabytes: "Megabytes",
      MegabytesSecond: "Megabytes/Second",
      Microseconds: "Microseconds",
      Milliseconds: "Milliseconds",
      None: "None",
      Percent: "Percent",
      Seconds: "Seconds",
      Terabits: "Terabits",
      TerabitsSecond: "Terabits/Second",
      Terabytes: "Terabytes",
      TerabytesSecond: "Terabytes/Second"
    };
    var QueryLanguage = {
      CWLI: "CWLI",
      PPL: "PPL",
      SQL: "SQL"
    };
    var QueryStatus = {
      Cancelled: "Cancelled",
      Complete: "Complete",
      Failed: "Failed",
      Running: "Running",
      Scheduled: "Scheduled",
      Timeout: "Timeout",
      Unknown: "Unknown"
    };
    var PolicyScope = {
      ACCOUNT: "ACCOUNT",
      RESOURCE: "RESOURCE"
    };
    var Distribution = {
      ByLogStream: "ByLogStream",
      Random: "Random"
    };
    var EntityRejectionErrorType = {
      ENTITY_SIZE_TOO_LARGE: "EntitySizeTooLarge",
      INVALID_ATTRIBUTES: "InvalidAttributes",
      INVALID_ENTITY: "InvalidEntity",
      INVALID_KEY_ATTRIBUTE: "InvalidKeyAttributes",
      INVALID_TYPE_VALUE: "InvalidTypeValue",
      MISSING_REQUIRED_FIELDS: "MissingRequiredFields",
      UNSUPPORTED_LOG_GROUP_TYPE: "UnsupportedLogGroupType"
    };
    var EventSource = {
      AWSWAF: "AWSWAF",
      CLOUD_TRAIL: "CloudTrail",
      EKS_AUDIT: "EKSAudit",
      ROUTE53_RESOLVER: "Route53Resolver",
      VPC_FLOW: "VPCFlow"
    };
    var FlattenedElement = {
      FIRST: "first",
      LAST: "last"
    };
    var OpenSearchResourceStatusType = {
      ACTIVE: "ACTIVE",
      ERROR: "ERROR",
      NOT_FOUND: "NOT_FOUND"
    };
    var IntegrationDetails;
    ((IntegrationDetails2) => {
      IntegrationDetails2.visit = /* @__PURE__ */ __name2((value, visitor) => {
        if (value.openSearchIntegrationDetails !== void 0)
          return visitor.openSearchIntegrationDetails(value.openSearchIntegrationDetails);
        return visitor._(value.$unknown[0], value.$unknown[1]);
      }, "visit");
    })(IntegrationDetails || (IntegrationDetails = {}));
    var IntegrationStatus = {
      ACTIVE: "ACTIVE",
      FAILED: "FAILED",
      PROVISIONING: "PROVISIONING"
    };
    var IntegrationType = {
      OPENSEARCH: "OPENSEARCH"
    };
    var InternalStreamingException = class _InternalStreamingException extends CloudWatchLogsServiceException {
      static {
        __name(this, "_InternalStreamingException");
      }
      static {
        __name2(this, "InternalStreamingException");
      }
      name = "InternalStreamingException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InternalStreamingException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InternalStreamingException.prototype);
      }
    };
    var GetLogObjectResponseStream;
    ((GetLogObjectResponseStream3) => {
      GetLogObjectResponseStream3.visit = /* @__PURE__ */ __name2((value, visitor) => {
        if (value.fields !== void 0) return visitor.fields(value.fields);
        if (value.InternalStreamingException !== void 0)
          return visitor.InternalStreamingException(value.InternalStreamingException);
        return visitor._(value.$unknown[0], value.$unknown[1]);
      }, "visit");
    })(GetLogObjectResponseStream || (GetLogObjectResponseStream = {}));
    var OCSFVersion = {
      V1_1: "V1.1"
    };
    var Type = {
      BOOLEAN: "boolean",
      DOUBLE: "double",
      INTEGER: "integer",
      STRING: "string"
    };
    var InvalidSequenceTokenException = class _InvalidSequenceTokenException extends CloudWatchLogsServiceException {
      static {
        __name(this, "_InvalidSequenceTokenException");
      }
      static {
        __name2(this, "InvalidSequenceTokenException");
      }
      name = "InvalidSequenceTokenException";
      $fault = "client";
      expectedSequenceToken;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidSequenceTokenException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidSequenceTokenException.prototype);
        this.expectedSequenceToken = opts.expectedSequenceToken;
      }
    };
    var SuppressionState = {
      SUPPRESSED: "SUPPRESSED",
      UNSUPPRESSED: "UNSUPPRESSED"
    };
    var ResourceConfig;
    ((ResourceConfig3) => {
      ResourceConfig3.visit = /* @__PURE__ */ __name2((value, visitor) => {
        if (value.openSearchResourceConfig !== void 0)
          return visitor.openSearchResourceConfig(value.openSearchResourceConfig);
        return visitor._(value.$unknown[0], value.$unknown[1]);
      }, "visit");
    })(ResourceConfig || (ResourceConfig = {}));
    var UnrecognizedClientException = class _UnrecognizedClientException extends CloudWatchLogsServiceException {
      static {
        __name(this, "_UnrecognizedClientException");
      }
      static {
        __name2(this, "UnrecognizedClientException");
      }
      name = "UnrecognizedClientException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "UnrecognizedClientException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _UnrecognizedClientException.prototype);
      }
    };
    var SessionStreamingException = class _SessionStreamingException extends CloudWatchLogsServiceException {
      static {
        __name(this, "_SessionStreamingException");
      }
      static {
        __name2(this, "SessionStreamingException");
      }
      name = "SessionStreamingException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "SessionStreamingException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _SessionStreamingException.prototype);
      }
    };
    var SessionTimeoutException = class _SessionTimeoutException extends CloudWatchLogsServiceException {
      static {
        __name(this, "_SessionTimeoutException");
      }
      static {
        __name2(this, "SessionTimeoutException");
      }
      name = "SessionTimeoutException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "SessionTimeoutException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _SessionTimeoutException.prototype);
      }
    };
    var StartLiveTailResponseStream;
    ((StartLiveTailResponseStream3) => {
      StartLiveTailResponseStream3.visit = /* @__PURE__ */ __name2((value, visitor) => {
        if (value.sessionStart !== void 0) return visitor.sessionStart(value.sessionStart);
        if (value.sessionUpdate !== void 0) return visitor.sessionUpdate(value.sessionUpdate);
        if (value.SessionTimeoutException !== void 0)
          return visitor.SessionTimeoutException(value.SessionTimeoutException);
        if (value.SessionStreamingException !== void 0)
          return visitor.SessionStreamingException(value.SessionStreamingException);
        return visitor._(value.$unknown[0], value.$unknown[1]);
      }, "visit");
    })(StartLiveTailResponseStream || (StartLiveTailResponseStream = {}));
    var MalformedQueryException = class _MalformedQueryException extends CloudWatchLogsServiceException {
      static {
        __name(this, "_MalformedQueryException");
      }
      static {
        __name2(this, "MalformedQueryException");
      }
      name = "MalformedQueryException";
      $fault = "client";
      /**
       * <p>Reserved.</p>
       * @public
       */
      queryCompileError;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "MalformedQueryException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _MalformedQueryException.prototype);
        this.queryCompileError = opts.queryCompileError;
      }
    };
    var TooManyTagsException = class _TooManyTagsException extends CloudWatchLogsServiceException {
      static {
        __name(this, "_TooManyTagsException");
      }
      static {
        __name2(this, "TooManyTagsException");
      }
      name = "TooManyTagsException";
      $fault = "client";
      /**
       * <p>The name of the resource.</p>
       * @public
       */
      resourceName;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "TooManyTagsException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _TooManyTagsException.prototype);
        this.resourceName = opts.resourceName;
      }
    };
    var SuppressionUnit = {
      HOURS: "HOURS",
      MINUTES: "MINUTES",
      SECONDS: "SECONDS"
    };
    var SuppressionType = {
      INFINITE: "INFINITE",
      LIMITED: "LIMITED"
    };
    var GetLogObjectResponseStreamFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => {
      if (obj.fields !== void 0) return { fields: obj.fields };
      if (obj.InternalStreamingException !== void 0)
        return { InternalStreamingException: obj.InternalStreamingException };
      if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
    }, "GetLogObjectResponseStreamFilterSensitiveLog");
    var GetLogObjectResponseFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.fieldStream && { fieldStream: "STREAMING_CONTENT" }
    }), "GetLogObjectResponseFilterSensitiveLog");
    var StartLiveTailResponseStreamFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => {
      if (obj.sessionStart !== void 0) return { sessionStart: obj.sessionStart };
      if (obj.sessionUpdate !== void 0) return { sessionUpdate: obj.sessionUpdate };
      if (obj.SessionTimeoutException !== void 0) return { SessionTimeoutException: obj.SessionTimeoutException };
      if (obj.SessionStreamingException !== void 0) return { SessionStreamingException: obj.SessionStreamingException };
      if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
    }, "StartLiveTailResponseStreamFilterSensitiveLog");
    var StartLiveTailResponseFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.responseStream && { responseStream: "STREAMING_CONTENT" }
    }), "StartLiveTailResponseFilterSensitiveLog");
    var se_AssociateKmsKeyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("AssociateKmsKey");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AssociateKmsKeyCommand");
    var se_CancelExportTaskCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("CancelExportTask");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CancelExportTaskCommand");
    var se_CreateDeliveryCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("CreateDelivery");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateDeliveryCommand");
    var se_CreateExportTaskCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("CreateExportTask");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateExportTaskCommand");
    var se_CreateLogAnomalyDetectorCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("CreateLogAnomalyDetector");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateLogAnomalyDetectorCommand");
    var se_CreateLogGroupCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("CreateLogGroup");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateLogGroupCommand");
    var se_CreateLogStreamCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("CreateLogStream");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateLogStreamCommand");
    var se_DeleteAccountPolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteAccountPolicy");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteAccountPolicyCommand");
    var se_DeleteDataProtectionPolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteDataProtectionPolicy");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteDataProtectionPolicyCommand");
    var se_DeleteDeliveryCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteDelivery");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteDeliveryCommand");
    var se_DeleteDeliveryDestinationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteDeliveryDestination");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteDeliveryDestinationCommand");
    var se_DeleteDeliveryDestinationPolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteDeliveryDestinationPolicy");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteDeliveryDestinationPolicyCommand");
    var se_DeleteDeliverySourceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteDeliverySource");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteDeliverySourceCommand");
    var se_DeleteDestinationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteDestination");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteDestinationCommand");
    var se_DeleteIndexPolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteIndexPolicy");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteIndexPolicyCommand");
    var se_DeleteIntegrationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteIntegration");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteIntegrationCommand");
    var se_DeleteLogAnomalyDetectorCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteLogAnomalyDetector");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteLogAnomalyDetectorCommand");
    var se_DeleteLogGroupCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteLogGroup");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteLogGroupCommand");
    var se_DeleteLogStreamCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteLogStream");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteLogStreamCommand");
    var se_DeleteMetricFilterCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteMetricFilter");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteMetricFilterCommand");
    var se_DeleteQueryDefinitionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteQueryDefinition");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteQueryDefinitionCommand");
    var se_DeleteResourcePolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteResourcePolicy");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteResourcePolicyCommand");
    var se_DeleteRetentionPolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteRetentionPolicy");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteRetentionPolicyCommand");
    var se_DeleteSubscriptionFilterCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteSubscriptionFilter");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteSubscriptionFilterCommand");
    var se_DeleteTransformerCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteTransformer");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteTransformerCommand");
    var se_DescribeAccountPoliciesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeAccountPolicies");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeAccountPoliciesCommand");
    var se_DescribeConfigurationTemplatesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeConfigurationTemplates");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeConfigurationTemplatesCommand");
    var se_DescribeDeliveriesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeDeliveries");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeDeliveriesCommand");
    var se_DescribeDeliveryDestinationsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeDeliveryDestinations");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeDeliveryDestinationsCommand");
    var se_DescribeDeliverySourcesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeDeliverySources");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeDeliverySourcesCommand");
    var se_DescribeDestinationsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeDestinations");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeDestinationsCommand");
    var se_DescribeExportTasksCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeExportTasks");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeExportTasksCommand");
    var se_DescribeFieldIndexesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeFieldIndexes");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeFieldIndexesCommand");
    var se_DescribeIndexPoliciesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeIndexPolicies");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeIndexPoliciesCommand");
    var se_DescribeLogGroupsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeLogGroups");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeLogGroupsCommand");
    var se_DescribeLogStreamsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeLogStreams");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeLogStreamsCommand");
    var se_DescribeMetricFiltersCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeMetricFilters");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeMetricFiltersCommand");
    var se_DescribeQueriesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeQueries");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeQueriesCommand");
    var se_DescribeQueryDefinitionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeQueryDefinitions");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeQueryDefinitionsCommand");
    var se_DescribeResourcePoliciesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeResourcePolicies");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeResourcePoliciesCommand");
    var se_DescribeSubscriptionFiltersCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeSubscriptionFilters");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeSubscriptionFiltersCommand");
    var se_DisassociateKmsKeyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DisassociateKmsKey");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DisassociateKmsKeyCommand");
    var se_FilterLogEventsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("FilterLogEvents");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_FilterLogEventsCommand");
    var se_GetDataProtectionPolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetDataProtectionPolicy");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetDataProtectionPolicyCommand");
    var se_GetDeliveryCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetDelivery");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetDeliveryCommand");
    var se_GetDeliveryDestinationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetDeliveryDestination");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetDeliveryDestinationCommand");
    var se_GetDeliveryDestinationPolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetDeliveryDestinationPolicy");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetDeliveryDestinationPolicyCommand");
    var se_GetDeliverySourceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetDeliverySource");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetDeliverySourceCommand");
    var se_GetIntegrationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetIntegration");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetIntegrationCommand");
    var se_GetLogAnomalyDetectorCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetLogAnomalyDetector");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetLogAnomalyDetectorCommand");
    var se_GetLogEventsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetLogEvents");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetLogEventsCommand");
    var se_GetLogGroupFieldsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetLogGroupFields");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetLogGroupFieldsCommand");
    var se_GetLogObjectCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetLogObject");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      let { hostname: resolvedHostname } = await context.endpoint();
      if (context.disableHostPrefix !== true) {
        resolvedHostname = "streaming-" + resolvedHostname;
        if (!(0, import_protocol_http16.isValidHostname)(resolvedHostname)) {
          throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
        }
      }
      return buildHttpRpcRequest2(context, headers, "/", resolvedHostname, body);
    }, "se_GetLogObjectCommand");
    var se_GetLogRecordCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetLogRecord");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetLogRecordCommand");
    var se_GetQueryResultsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetQueryResults");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetQueryResultsCommand");
    var se_GetTransformerCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetTransformer");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetTransformerCommand");
    var se_ListAnomaliesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListAnomalies");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListAnomaliesCommand");
    var se_ListIntegrationsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListIntegrations");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListIntegrationsCommand");
    var se_ListLogAnomalyDetectorsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListLogAnomalyDetectors");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListLogAnomalyDetectorsCommand");
    var se_ListLogGroupsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListLogGroups");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListLogGroupsCommand");
    var se_ListLogGroupsForQueryCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListLogGroupsForQuery");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListLogGroupsForQueryCommand");
    var se_ListTagsForResourceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListTagsForResource");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListTagsForResourceCommand");
    var se_ListTagsLogGroupCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListTagsLogGroup");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListTagsLogGroupCommand");
    var se_PutAccountPolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("PutAccountPolicy");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_PutAccountPolicyCommand");
    var se_PutDataProtectionPolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("PutDataProtectionPolicy");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_PutDataProtectionPolicyCommand");
    var se_PutDeliveryDestinationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("PutDeliveryDestination");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_PutDeliveryDestinationCommand");
    var se_PutDeliveryDestinationPolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("PutDeliveryDestinationPolicy");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_PutDeliveryDestinationPolicyCommand");
    var se_PutDeliverySourceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("PutDeliverySource");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_PutDeliverySourceCommand");
    var se_PutDestinationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("PutDestination");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_PutDestinationCommand");
    var se_PutDestinationPolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("PutDestinationPolicy");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_PutDestinationPolicyCommand");
    var se_PutIndexPolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("PutIndexPolicy");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_PutIndexPolicyCommand");
    var se_PutIntegrationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("PutIntegration");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_PutIntegrationCommand");
    var se_PutLogEventsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("PutLogEvents");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_PutLogEventsCommand");
    var se_PutMetricFilterCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("PutMetricFilter");
      let body;
      body = JSON.stringify(se_PutMetricFilterRequest(input, context));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_PutMetricFilterCommand");
    var se_PutQueryDefinitionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("PutQueryDefinition");
      let body;
      body = JSON.stringify(se_PutQueryDefinitionRequest(input, context));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_PutQueryDefinitionCommand");
    var se_PutResourcePolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("PutResourcePolicy");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_PutResourcePolicyCommand");
    var se_PutRetentionPolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("PutRetentionPolicy");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_PutRetentionPolicyCommand");
    var se_PutSubscriptionFilterCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("PutSubscriptionFilter");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_PutSubscriptionFilterCommand");
    var se_PutTransformerCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("PutTransformer");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_PutTransformerCommand");
    var se_StartLiveTailCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("StartLiveTail");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      let { hostname: resolvedHostname } = await context.endpoint();
      if (context.disableHostPrefix !== true) {
        resolvedHostname = "streaming-" + resolvedHostname;
        if (!(0, import_protocol_http16.isValidHostname)(resolvedHostname)) {
          throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
        }
      }
      return buildHttpRpcRequest2(context, headers, "/", resolvedHostname, body);
    }, "se_StartLiveTailCommand");
    var se_StartQueryCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("StartQuery");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_StartQueryCommand");
    var se_StopQueryCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("StopQuery");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_StopQueryCommand");
    var se_TagLogGroupCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("TagLogGroup");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_TagLogGroupCommand");
    var se_TagResourceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("TagResource");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_TagResourceCommand");
    var se_TestMetricFilterCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("TestMetricFilter");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_TestMetricFilterCommand");
    var se_TestTransformerCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("TestTransformer");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_TestTransformerCommand");
    var se_UntagLogGroupCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("UntagLogGroup");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UntagLogGroupCommand");
    var se_UntagResourceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("UntagResource");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UntagResourceCommand");
    var se_UpdateAnomalyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("UpdateAnomaly");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateAnomalyCommand");
    var se_UpdateDeliveryConfigurationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("UpdateDeliveryConfiguration");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateDeliveryConfigurationCommand");
    var se_UpdateLogAnomalyDetectorCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("UpdateLogAnomalyDetector");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateLogAnomalyDetectorCommand");
    var de_AssociateKmsKeyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_AssociateKmsKeyCommand");
    var de_CancelExportTaskCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_CancelExportTaskCommand");
    var de_CreateDeliveryCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateDeliveryCommand");
    var de_CreateExportTaskCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateExportTaskCommand");
    var de_CreateLogAnomalyDetectorCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateLogAnomalyDetectorCommand");
    var de_CreateLogGroupCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_CreateLogGroupCommand");
    var de_CreateLogStreamCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_CreateLogStreamCommand");
    var de_DeleteAccountPolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeleteAccountPolicyCommand");
    var de_DeleteDataProtectionPolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeleteDataProtectionPolicyCommand");
    var de_DeleteDeliveryCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeleteDeliveryCommand");
    var de_DeleteDeliveryDestinationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeleteDeliveryDestinationCommand");
    var de_DeleteDeliveryDestinationPolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeleteDeliveryDestinationPolicyCommand");
    var de_DeleteDeliverySourceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeleteDeliverySourceCommand");
    var de_DeleteDestinationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeleteDestinationCommand");
    var de_DeleteIndexPolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteIndexPolicyCommand");
    var de_DeleteIntegrationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteIntegrationCommand");
    var de_DeleteLogAnomalyDetectorCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeleteLogAnomalyDetectorCommand");
    var de_DeleteLogGroupCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeleteLogGroupCommand");
    var de_DeleteLogStreamCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeleteLogStreamCommand");
    var de_DeleteMetricFilterCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeleteMetricFilterCommand");
    var de_DeleteQueryDefinitionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteQueryDefinitionCommand");
    var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeleteResourcePolicyCommand");
    var de_DeleteRetentionPolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeleteRetentionPolicyCommand");
    var de_DeleteSubscriptionFilterCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeleteSubscriptionFilterCommand");
    var de_DeleteTransformerCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeleteTransformerCommand");
    var de_DescribeAccountPoliciesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeAccountPoliciesCommand");
    var de_DescribeConfigurationTemplatesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeConfigurationTemplatesCommand");
    var de_DescribeDeliveriesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeDeliveriesCommand");
    var de_DescribeDeliveryDestinationsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeDeliveryDestinationsCommand");
    var de_DescribeDeliverySourcesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeDeliverySourcesCommand");
    var de_DescribeDestinationsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeDestinationsCommand");
    var de_DescribeExportTasksCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeExportTasksCommand");
    var de_DescribeFieldIndexesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeFieldIndexesCommand");
    var de_DescribeIndexPoliciesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeIndexPoliciesCommand");
    var de_DescribeLogGroupsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeLogGroupsCommand");
    var de_DescribeLogStreamsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeLogStreamsCommand");
    var de_DescribeMetricFiltersCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DescribeMetricFiltersResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeMetricFiltersCommand");
    var de_DescribeQueriesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeQueriesCommand");
    var de_DescribeQueryDefinitionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeQueryDefinitionsCommand");
    var de_DescribeResourcePoliciesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeResourcePoliciesCommand");
    var de_DescribeSubscriptionFiltersCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeSubscriptionFiltersCommand");
    var de_DisassociateKmsKeyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DisassociateKmsKeyCommand");
    var de_FilterLogEventsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_FilterLogEventsCommand");
    var de_GetDataProtectionPolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetDataProtectionPolicyCommand");
    var de_GetDeliveryCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetDeliveryCommand");
    var de_GetDeliveryDestinationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetDeliveryDestinationCommand");
    var de_GetDeliveryDestinationPolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetDeliveryDestinationPolicyCommand");
    var de_GetDeliverySourceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetDeliverySourceCommand");
    var de_GetIntegrationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetIntegrationCommand");
    var de_GetLogAnomalyDetectorCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetLogAnomalyDetectorCommand");
    var de_GetLogEventsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetLogEventsCommand");
    var de_GetLogGroupFieldsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetLogGroupFieldsCommand");
    var de_GetLogObjectCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = { fieldStream: de_GetLogObjectResponseStream(output.body, context) };
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetLogObjectCommand");
    var de_GetLogRecordCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetLogRecordCommand");
    var de_GetQueryResultsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_GetQueryResultsResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetQueryResultsCommand");
    var de_GetTransformerCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetTransformerCommand");
    var de_ListAnomaliesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListAnomaliesCommand");
    var de_ListIntegrationsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListIntegrationsCommand");
    var de_ListLogAnomalyDetectorsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListLogAnomalyDetectorsCommand");
    var de_ListLogGroupsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListLogGroupsCommand");
    var de_ListLogGroupsForQueryCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListLogGroupsForQueryCommand");
    var de_ListTagsForResourceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListTagsForResourceCommand");
    var de_ListTagsLogGroupCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListTagsLogGroupCommand");
    var de_PutAccountPolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_PutAccountPolicyCommand");
    var de_PutDataProtectionPolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_PutDataProtectionPolicyCommand");
    var de_PutDeliveryDestinationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_PutDeliveryDestinationCommand");
    var de_PutDeliveryDestinationPolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_PutDeliveryDestinationPolicyCommand");
    var de_PutDeliverySourceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_PutDeliverySourceCommand");
    var de_PutDestinationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_PutDestinationCommand");
    var de_PutDestinationPolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_PutDestinationPolicyCommand");
    var de_PutIndexPolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_PutIndexPolicyCommand");
    var de_PutIntegrationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_PutIntegrationCommand");
    var de_PutLogEventsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_PutLogEventsCommand");
    var de_PutMetricFilterCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_PutMetricFilterCommand");
    var de_PutQueryDefinitionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_PutQueryDefinitionCommand");
    var de_PutResourcePolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_PutResourcePolicyCommand");
    var de_PutRetentionPolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_PutRetentionPolicyCommand");
    var de_PutSubscriptionFilterCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_PutSubscriptionFilterCommand");
    var de_PutTransformerCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_PutTransformerCommand");
    var de_StartLiveTailCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = { responseStream: de_StartLiveTailResponseStream(output.body, context) };
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_StartLiveTailCommand");
    var de_StartQueryCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_StartQueryCommand");
    var de_StopQueryCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_StopQueryCommand");
    var de_TagLogGroupCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_TagLogGroupCommand");
    var de_TagResourceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_TagResourceCommand");
    var de_TestMetricFilterCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_TestMetricFilterCommand");
    var de_TestTransformerCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_TestTransformerCommand");
    var de_UntagLogGroupCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_UntagLogGroupCommand");
    var de_UntagResourceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_UntagResourceCommand");
    var de_UpdateAnomalyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_UpdateAnomalyCommand");
    var de_UpdateDeliveryConfigurationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UpdateDeliveryConfigurationCommand");
    var de_UpdateLogAnomalyDetectorCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_UpdateLogAnomalyDetectorCommand");
    var de_CommandError3 = /* @__PURE__ */ __name2(async (output, context) => {
      const parsedOutput = {
        ...output,
        body: await (0, import_core22.parseJsonErrorBody)(output.body, context)
      };
      const errorCode = (0, import_core22.loadRestJsonErrorCode)(output, parsedOutput.body);
      switch (errorCode) {
        case "InvalidParameterException":
        case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
          throw await de_InvalidParameterExceptionRes(parsedOutput, context);
        case "OperationAbortedException":
        case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
          throw await de_OperationAbortedExceptionRes(parsedOutput, context);
        case "ResourceNotFoundException":
        case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
          throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
        case "ServiceUnavailableException":
        case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
          throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
        case "InvalidOperationException":
        case "com.amazonaws.cloudwatchlogs#InvalidOperationException":
          throw await de_InvalidOperationExceptionRes(parsedOutput, context);
        case "AccessDeniedException":
        case "com.amazonaws.cloudwatchlogs#AccessDeniedException":
          throw await de_AccessDeniedExceptionRes2(parsedOutput, context);
        case "ConflictException":
        case "com.amazonaws.cloudwatchlogs#ConflictException":
          throw await de_ConflictExceptionRes(parsedOutput, context);
        case "ServiceQuotaExceededException":
        case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
          throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
        case "ThrottlingException":
        case "com.amazonaws.cloudwatchlogs#ThrottlingException":
          throw await de_ThrottlingExceptionRes(parsedOutput, context);
        case "ValidationException":
        case "com.amazonaws.cloudwatchlogs#ValidationException":
          throw await de_ValidationExceptionRes(parsedOutput, context);
        case "LimitExceededException":
        case "com.amazonaws.cloudwatchlogs#LimitExceededException":
          throw await de_LimitExceededExceptionRes(parsedOutput, context);
        case "ResourceAlreadyExistsException":
        case "com.amazonaws.cloudwatchlogs#ResourceAlreadyExistsException":
          throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
        case "DataAlreadyAcceptedException":
        case "com.amazonaws.cloudwatchlogs#DataAlreadyAcceptedException":
          throw await de_DataAlreadyAcceptedExceptionRes(parsedOutput, context);
        case "InvalidSequenceTokenException":
        case "com.amazonaws.cloudwatchlogs#InvalidSequenceTokenException":
          throw await de_InvalidSequenceTokenExceptionRes(parsedOutput, context);
        case "UnrecognizedClientException":
        case "com.amazonaws.cloudwatchlogs#UnrecognizedClientException":
          throw await de_UnrecognizedClientExceptionRes(parsedOutput, context);
        case "MalformedQueryException":
        case "com.amazonaws.cloudwatchlogs#MalformedQueryException":
          throw await de_MalformedQueryExceptionRes(parsedOutput, context);
        case "TooManyTagsException":
        case "com.amazonaws.cloudwatchlogs#TooManyTagsException":
          throw await de_TooManyTagsExceptionRes(parsedOutput, context);
        default:
          const parsedBody = parsedOutput.body;
          return throwDefaultError3({
            output,
            parsedBody,
            errorCode
          });
      }
    }, "de_CommandError");
    var de_AccessDeniedExceptionRes2 = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new AccessDeniedException2({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_AccessDeniedExceptionRes");
    var de_ConflictExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ConflictException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ConflictExceptionRes");
    var de_DataAlreadyAcceptedExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new DataAlreadyAcceptedException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_DataAlreadyAcceptedExceptionRes");
    var de_InvalidOperationExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidOperationException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidOperationExceptionRes");
    var de_InvalidParameterExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidParameterException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidParameterExceptionRes");
    var de_InvalidSequenceTokenExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidSequenceTokenException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidSequenceTokenExceptionRes");
    var de_LimitExceededExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new LimitExceededException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_LimitExceededExceptionRes");
    var de_MalformedQueryExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new MalformedQueryException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_MalformedQueryExceptionRes");
    var de_OperationAbortedExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new OperationAbortedException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_OperationAbortedExceptionRes");
    var de_ResourceAlreadyExistsExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ResourceAlreadyExistsException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ResourceAlreadyExistsExceptionRes");
    var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ResourceNotFoundException2({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ResourceNotFoundExceptionRes");
    var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ServiceQuotaExceededException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ServiceQuotaExceededExceptionRes");
    var de_ServiceUnavailableExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ServiceUnavailableException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ServiceUnavailableExceptionRes");
    var de_ThrottlingExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ThrottlingException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ThrottlingExceptionRes");
    var de_TooManyTagsExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new TooManyTagsException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_TooManyTagsExceptionRes");
    var de_UnrecognizedClientExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new UnrecognizedClientException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_UnrecognizedClientExceptionRes");
    var de_ValidationExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ValidationException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ValidationExceptionRes");
    var de_GetLogObjectResponseStream = /* @__PURE__ */ __name2((output, context) => {
      return context.eventStreamMarshaller.deserialize(output, async (event) => {
        if (event["fields"] != null) {
          return {
            fields: await de_FieldsData_event(event["fields"], context)
          };
        }
        if (event["InternalStreamingException"] != null) {
          return {
            InternalStreamingException: await de_InternalStreamingException_event(
              event["InternalStreamingException"],
              context
            )
          };
        }
        return { $unknown: event };
      });
    }, "de_GetLogObjectResponseStream");
    var de_StartLiveTailResponseStream = /* @__PURE__ */ __name2((output, context) => {
      return context.eventStreamMarshaller.deserialize(output, async (event) => {
        if (event["sessionStart"] != null) {
          return {
            sessionStart: await de_LiveTailSessionStart_event(event["sessionStart"], context)
          };
        }
        if (event["sessionUpdate"] != null) {
          return {
            sessionUpdate: await de_LiveTailSessionUpdate_event(event["sessionUpdate"], context)
          };
        }
        if (event["SessionTimeoutException"] != null) {
          return {
            SessionTimeoutException: await de_SessionTimeoutException_event(event["SessionTimeoutException"], context)
          };
        }
        if (event["SessionStreamingException"] != null) {
          return {
            SessionStreamingException: await de_SessionStreamingException_event(
              event["SessionStreamingException"],
              context
            )
          };
        }
        return { $unknown: event };
      });
    }, "de_StartLiveTailResponseStream");
    var de_FieldsData_event = /* @__PURE__ */ __name2(async (output, context) => {
      const contents = {};
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      Object.assign(contents, de_FieldsData(data3, context));
      return contents;
    }, "de_FieldsData_event");
    var de_InternalStreamingException_event = /* @__PURE__ */ __name2(async (output, context) => {
      const parsedOutput = {
        ...output,
        body: await (0, import_core22.parseJsonBody)(output.body, context)
      };
      return de_InternalStreamingExceptionRes(parsedOutput, context);
    }, "de_InternalStreamingException_event");
    var de_LiveTailSessionStart_event = /* @__PURE__ */ __name2(async (output, context) => {
      const contents = {};
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      Object.assign(contents, (0, import_smithy_client28._json)(data3));
      return contents;
    }, "de_LiveTailSessionStart_event");
    var de_LiveTailSessionUpdate_event = /* @__PURE__ */ __name2(async (output, context) => {
      const contents = {};
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      Object.assign(contents, (0, import_smithy_client28._json)(data3));
      return contents;
    }, "de_LiveTailSessionUpdate_event");
    var de_SessionStreamingException_event = /* @__PURE__ */ __name2(async (output, context) => {
      const parsedOutput = {
        ...output,
        body: await (0, import_core22.parseJsonBody)(output.body, context)
      };
      return de_SessionStreamingExceptionRes(parsedOutput, context);
    }, "de_SessionStreamingException_event");
    var de_SessionTimeoutException_event = /* @__PURE__ */ __name2(async (output, context) => {
      const parsedOutput = {
        ...output,
        body: await (0, import_core22.parseJsonBody)(output.body, context)
      };
      return de_SessionTimeoutExceptionRes(parsedOutput, context);
    }, "de_SessionTimeoutException_event");
    var de_InternalStreamingExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InternalStreamingException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InternalStreamingExceptionRes");
    var de_SessionStreamingExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new SessionStreamingException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_SessionStreamingExceptionRes");
    var de_SessionTimeoutExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new SessionTimeoutException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_SessionTimeoutExceptionRes");
    var se_MetricTransformation = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        defaultValue: import_smithy_client28.serializeFloat,
        dimensions: import_smithy_client28._json,
        metricName: [],
        metricNamespace: [],
        metricValue: [],
        unit: []
      });
    }, "se_MetricTransformation");
    var se_MetricTransformations = /* @__PURE__ */ __name2((input, context) => {
      return input.filter((e3) => e3 != null).map((entry) => {
        return se_MetricTransformation(entry, context);
      });
    }, "se_MetricTransformations");
    var se_PutMetricFilterRequest = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        applyOnTransformedLogs: [],
        filterName: [],
        filterPattern: [],
        logGroupName: [],
        metricTransformations: /* @__PURE__ */ __name2((_3) => se_MetricTransformations(_3, context), "metricTransformations")
      });
    }, "se_PutMetricFilterRequest");
    var se_PutQueryDefinitionRequest = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        clientToken: [true, (_3) => _3 ?? (0, import_uuid2.v4)()],
        logGroupNames: import_smithy_client28._json,
        name: [],
        queryDefinitionId: [],
        queryLanguage: [],
        queryString: []
      });
    }, "se_PutQueryDefinitionRequest");
    var de_DescribeMetricFiltersResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        metricFilters: /* @__PURE__ */ __name2((_3) => de_MetricFilters(_3, context), "metricFilters"),
        nextToken: import_smithy_client28.expectString
      });
    }, "de_DescribeMetricFiltersResponse");
    var de_FieldsData = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        data: context.base64Decoder
      });
    }, "de_FieldsData");
    var de_GetQueryResultsResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        encryptionKey: import_smithy_client28.expectString,
        queryLanguage: import_smithy_client28.expectString,
        results: import_smithy_client28._json,
        statistics: /* @__PURE__ */ __name2((_3) => de_QueryStatistics(_3, context), "statistics"),
        status: import_smithy_client28.expectString
      });
    }, "de_GetQueryResultsResponse");
    var de_MetricFilter = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        applyOnTransformedLogs: import_smithy_client28.expectBoolean,
        creationTime: import_smithy_client28.expectLong,
        filterName: import_smithy_client28.expectString,
        filterPattern: import_smithy_client28.expectString,
        logGroupName: import_smithy_client28.expectString,
        metricTransformations: /* @__PURE__ */ __name2((_3) => de_MetricTransformations(_3, context), "metricTransformations")
      });
    }, "de_MetricFilter");
    var de_MetricFilters = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_MetricFilter(entry, context);
      });
      return retVal;
    }, "de_MetricFilters");
    var de_MetricTransformation = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        defaultValue: import_smithy_client28.limitedParseDouble,
        dimensions: import_smithy_client28._json,
        metricName: import_smithy_client28.expectString,
        metricNamespace: import_smithy_client28.expectString,
        metricValue: import_smithy_client28.expectString,
        unit: import_smithy_client28.expectString
      });
    }, "de_MetricTransformation");
    var de_MetricTransformations = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_MetricTransformation(entry, context);
      });
      return retVal;
    }, "de_MetricTransformations");
    var de_QueryStatistics = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        bytesScanned: import_smithy_client28.limitedParseDouble,
        estimatedBytesSkipped: import_smithy_client28.limitedParseDouble,
        estimatedRecordsSkipped: import_smithy_client28.limitedParseDouble,
        logGroupsScanned: import_smithy_client28.limitedParseDouble,
        recordsMatched: import_smithy_client28.limitedParseDouble,
        recordsScanned: import_smithy_client28.limitedParseDouble
      });
    }, "de_QueryStatistics");
    var deserializeMetadata3 = /* @__PURE__ */ __name2((output) => ({
      httpStatusCode: output.statusCode,
      requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
      extendedRequestId: output.headers["x-amz-id-2"],
      cfId: output.headers["x-amz-cf-id"]
    }), "deserializeMetadata");
    var throwDefaultError3 = (0, import_smithy_client28.withBaseException)(CloudWatchLogsServiceException);
    var buildHttpRpcRequest2 = /* @__PURE__ */ __name2(async (context, headers, path38, resolvedHostname, body) => {
      const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
      const contents = {
        protocol,
        hostname,
        port,
        method: "POST",
        path: basePath.endsWith("/") ? basePath.slice(0, -1) + path38 : basePath + path38,
        headers
      };
      if (resolvedHostname !== void 0) {
        contents.hostname = resolvedHostname;
      }
      if (body !== void 0) {
        contents.body = body;
      }
      return new import_protocol_http16.HttpRequest(contents);
    }, "buildHttpRpcRequest");
    function sharedHeaders(operation) {
      return {
        "content-type": "application/x-amz-json-1.1",
        "x-amz-target": `Logs_20140328.${operation}`
      };
    }
    __name(sharedHeaders, "sharedHeaders");
    __name2(sharedHeaders, "sharedHeaders");
    var AssociateKmsKeyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "AssociateKmsKey", {}).n("CloudWatchLogsClient", "AssociateKmsKeyCommand").f(void 0, void 0).ser(se_AssociateKmsKeyCommand).de(de_AssociateKmsKeyCommand).build() {
      static {
        __name(this, "AssociateKmsKeyCommand");
      }
      static {
        __name2(this, "AssociateKmsKeyCommand");
      }
    };
    var CancelExportTaskCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "CancelExportTask", {}).n("CloudWatchLogsClient", "CancelExportTaskCommand").f(void 0, void 0).ser(se_CancelExportTaskCommand).de(de_CancelExportTaskCommand).build() {
      static {
        __name(this, "CancelExportTaskCommand");
      }
      static {
        __name2(this, "CancelExportTaskCommand");
      }
    };
    var CreateDeliveryCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "CreateDelivery", {}).n("CloudWatchLogsClient", "CreateDeliveryCommand").f(void 0, void 0).ser(se_CreateDeliveryCommand).de(de_CreateDeliveryCommand).build() {
      static {
        __name(this, "CreateDeliveryCommand");
      }
      static {
        __name2(this, "CreateDeliveryCommand");
      }
    };
    var CreateExportTaskCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "CreateExportTask", {}).n("CloudWatchLogsClient", "CreateExportTaskCommand").f(void 0, void 0).ser(se_CreateExportTaskCommand).de(de_CreateExportTaskCommand).build() {
      static {
        __name(this, "CreateExportTaskCommand");
      }
      static {
        __name2(this, "CreateExportTaskCommand");
      }
    };
    var CreateLogAnomalyDetectorCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "CreateLogAnomalyDetector", {}).n("CloudWatchLogsClient", "CreateLogAnomalyDetectorCommand").f(void 0, void 0).ser(se_CreateLogAnomalyDetectorCommand).de(de_CreateLogAnomalyDetectorCommand).build() {
      static {
        __name(this, "CreateLogAnomalyDetectorCommand");
      }
      static {
        __name2(this, "CreateLogAnomalyDetectorCommand");
      }
    };
    var CreateLogGroupCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "CreateLogGroup", {}).n("CloudWatchLogsClient", "CreateLogGroupCommand").f(void 0, void 0).ser(se_CreateLogGroupCommand).de(de_CreateLogGroupCommand).build() {
      static {
        __name(this, "CreateLogGroupCommand");
      }
      static {
        __name2(this, "CreateLogGroupCommand");
      }
    };
    var CreateLogStreamCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "CreateLogStream", {}).n("CloudWatchLogsClient", "CreateLogStreamCommand").f(void 0, void 0).ser(se_CreateLogStreamCommand).de(de_CreateLogStreamCommand).build() {
      static {
        __name(this, "CreateLogStreamCommand");
      }
      static {
        __name2(this, "CreateLogStreamCommand");
      }
    };
    var DeleteAccountPolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "DeleteAccountPolicy", {}).n("CloudWatchLogsClient", "DeleteAccountPolicyCommand").f(void 0, void 0).ser(se_DeleteAccountPolicyCommand).de(de_DeleteAccountPolicyCommand).build() {
      static {
        __name(this, "DeleteAccountPolicyCommand");
      }
      static {
        __name2(this, "DeleteAccountPolicyCommand");
      }
    };
    var DeleteDataProtectionPolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "DeleteDataProtectionPolicy", {}).n("CloudWatchLogsClient", "DeleteDataProtectionPolicyCommand").f(void 0, void 0).ser(se_DeleteDataProtectionPolicyCommand).de(de_DeleteDataProtectionPolicyCommand).build() {
      static {
        __name(this, "DeleteDataProtectionPolicyCommand");
      }
      static {
        __name2(this, "DeleteDataProtectionPolicyCommand");
      }
    };
    var DeleteDeliveryCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "DeleteDelivery", {}).n("CloudWatchLogsClient", "DeleteDeliveryCommand").f(void 0, void 0).ser(se_DeleteDeliveryCommand).de(de_DeleteDeliveryCommand).build() {
      static {
        __name(this, "DeleteDeliveryCommand");
      }
      static {
        __name2(this, "DeleteDeliveryCommand");
      }
    };
    var DeleteDeliveryDestinationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "DeleteDeliveryDestination", {}).n("CloudWatchLogsClient", "DeleteDeliveryDestinationCommand").f(void 0, void 0).ser(se_DeleteDeliveryDestinationCommand).de(de_DeleteDeliveryDestinationCommand).build() {
      static {
        __name(this, "DeleteDeliveryDestinationCommand");
      }
      static {
        __name2(this, "DeleteDeliveryDestinationCommand");
      }
    };
    var DeleteDeliveryDestinationPolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "DeleteDeliveryDestinationPolicy", {}).n("CloudWatchLogsClient", "DeleteDeliveryDestinationPolicyCommand").f(void 0, void 0).ser(se_DeleteDeliveryDestinationPolicyCommand).de(de_DeleteDeliveryDestinationPolicyCommand).build() {
      static {
        __name(this, "DeleteDeliveryDestinationPolicyCommand");
      }
      static {
        __name2(this, "DeleteDeliveryDestinationPolicyCommand");
      }
    };
    var DeleteDeliverySourceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "DeleteDeliverySource", {}).n("CloudWatchLogsClient", "DeleteDeliverySourceCommand").f(void 0, void 0).ser(se_DeleteDeliverySourceCommand).de(de_DeleteDeliverySourceCommand).build() {
      static {
        __name(this, "DeleteDeliverySourceCommand");
      }
      static {
        __name2(this, "DeleteDeliverySourceCommand");
      }
    };
    var DeleteDestinationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "DeleteDestination", {}).n("CloudWatchLogsClient", "DeleteDestinationCommand").f(void 0, void 0).ser(se_DeleteDestinationCommand).de(de_DeleteDestinationCommand).build() {
      static {
        __name(this, "DeleteDestinationCommand");
      }
      static {
        __name2(this, "DeleteDestinationCommand");
      }
    };
    var DeleteIndexPolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "DeleteIndexPolicy", {}).n("CloudWatchLogsClient", "DeleteIndexPolicyCommand").f(void 0, void 0).ser(se_DeleteIndexPolicyCommand).de(de_DeleteIndexPolicyCommand).build() {
      static {
        __name(this, "DeleteIndexPolicyCommand");
      }
      static {
        __name2(this, "DeleteIndexPolicyCommand");
      }
    };
    var DeleteIntegrationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "DeleteIntegration", {}).n("CloudWatchLogsClient", "DeleteIntegrationCommand").f(void 0, void 0).ser(se_DeleteIntegrationCommand).de(de_DeleteIntegrationCommand).build() {
      static {
        __name(this, "DeleteIntegrationCommand");
      }
      static {
        __name2(this, "DeleteIntegrationCommand");
      }
    };
    var DeleteLogAnomalyDetectorCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "DeleteLogAnomalyDetector", {}).n("CloudWatchLogsClient", "DeleteLogAnomalyDetectorCommand").f(void 0, void 0).ser(se_DeleteLogAnomalyDetectorCommand).de(de_DeleteLogAnomalyDetectorCommand).build() {
      static {
        __name(this, "DeleteLogAnomalyDetectorCommand");
      }
      static {
        __name2(this, "DeleteLogAnomalyDetectorCommand");
      }
    };
    var DeleteLogGroupCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "DeleteLogGroup", {}).n("CloudWatchLogsClient", "DeleteLogGroupCommand").f(void 0, void 0).ser(se_DeleteLogGroupCommand).de(de_DeleteLogGroupCommand).build() {
      static {
        __name(this, "DeleteLogGroupCommand");
      }
      static {
        __name2(this, "DeleteLogGroupCommand");
      }
    };
    var DeleteLogStreamCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "DeleteLogStream", {}).n("CloudWatchLogsClient", "DeleteLogStreamCommand").f(void 0, void 0).ser(se_DeleteLogStreamCommand).de(de_DeleteLogStreamCommand).build() {
      static {
        __name(this, "DeleteLogStreamCommand");
      }
      static {
        __name2(this, "DeleteLogStreamCommand");
      }
    };
    var DeleteMetricFilterCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "DeleteMetricFilter", {}).n("CloudWatchLogsClient", "DeleteMetricFilterCommand").f(void 0, void 0).ser(se_DeleteMetricFilterCommand).de(de_DeleteMetricFilterCommand).build() {
      static {
        __name(this, "DeleteMetricFilterCommand");
      }
      static {
        __name2(this, "DeleteMetricFilterCommand");
      }
    };
    var DeleteQueryDefinitionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "DeleteQueryDefinition", {}).n("CloudWatchLogsClient", "DeleteQueryDefinitionCommand").f(void 0, void 0).ser(se_DeleteQueryDefinitionCommand).de(de_DeleteQueryDefinitionCommand).build() {
      static {
        __name(this, "DeleteQueryDefinitionCommand");
      }
      static {
        __name2(this, "DeleteQueryDefinitionCommand");
      }
    };
    var DeleteResourcePolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "DeleteResourcePolicy", {}).n("CloudWatchLogsClient", "DeleteResourcePolicyCommand").f(void 0, void 0).ser(se_DeleteResourcePolicyCommand).de(de_DeleteResourcePolicyCommand).build() {
      static {
        __name(this, "DeleteResourcePolicyCommand");
      }
      static {
        __name2(this, "DeleteResourcePolicyCommand");
      }
    };
    var DeleteRetentionPolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "DeleteRetentionPolicy", {}).n("CloudWatchLogsClient", "DeleteRetentionPolicyCommand").f(void 0, void 0).ser(se_DeleteRetentionPolicyCommand).de(de_DeleteRetentionPolicyCommand).build() {
      static {
        __name(this, "DeleteRetentionPolicyCommand");
      }
      static {
        __name2(this, "DeleteRetentionPolicyCommand");
      }
    };
    var DeleteSubscriptionFilterCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "DeleteSubscriptionFilter", {}).n("CloudWatchLogsClient", "DeleteSubscriptionFilterCommand").f(void 0, void 0).ser(se_DeleteSubscriptionFilterCommand).de(de_DeleteSubscriptionFilterCommand).build() {
      static {
        __name(this, "DeleteSubscriptionFilterCommand");
      }
      static {
        __name2(this, "DeleteSubscriptionFilterCommand");
      }
    };
    var DeleteTransformerCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "DeleteTransformer", {}).n("CloudWatchLogsClient", "DeleteTransformerCommand").f(void 0, void 0).ser(se_DeleteTransformerCommand).de(de_DeleteTransformerCommand).build() {
      static {
        __name(this, "DeleteTransformerCommand");
      }
      static {
        __name2(this, "DeleteTransformerCommand");
      }
    };
    var DescribeAccountPoliciesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "DescribeAccountPolicies", {}).n("CloudWatchLogsClient", "DescribeAccountPoliciesCommand").f(void 0, void 0).ser(se_DescribeAccountPoliciesCommand).de(de_DescribeAccountPoliciesCommand).build() {
      static {
        __name(this, "DescribeAccountPoliciesCommand");
      }
      static {
        __name2(this, "DescribeAccountPoliciesCommand");
      }
    };
    var DescribeConfigurationTemplatesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "DescribeConfigurationTemplates", {}).n("CloudWatchLogsClient", "DescribeConfigurationTemplatesCommand").f(void 0, void 0).ser(se_DescribeConfigurationTemplatesCommand).de(de_DescribeConfigurationTemplatesCommand).build() {
      static {
        __name(this, "DescribeConfigurationTemplatesCommand");
      }
      static {
        __name2(this, "DescribeConfigurationTemplatesCommand");
      }
    };
    var DescribeDeliveriesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "DescribeDeliveries", {}).n("CloudWatchLogsClient", "DescribeDeliveriesCommand").f(void 0, void 0).ser(se_DescribeDeliveriesCommand).de(de_DescribeDeliveriesCommand).build() {
      static {
        __name(this, "DescribeDeliveriesCommand");
      }
      static {
        __name2(this, "DescribeDeliveriesCommand");
      }
    };
    var DescribeDeliveryDestinationsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "DescribeDeliveryDestinations", {}).n("CloudWatchLogsClient", "DescribeDeliveryDestinationsCommand").f(void 0, void 0).ser(se_DescribeDeliveryDestinationsCommand).de(de_DescribeDeliveryDestinationsCommand).build() {
      static {
        __name(this, "DescribeDeliveryDestinationsCommand");
      }
      static {
        __name2(this, "DescribeDeliveryDestinationsCommand");
      }
    };
    var DescribeDeliverySourcesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "DescribeDeliverySources", {}).n("CloudWatchLogsClient", "DescribeDeliverySourcesCommand").f(void 0, void 0).ser(se_DescribeDeliverySourcesCommand).de(de_DescribeDeliverySourcesCommand).build() {
      static {
        __name(this, "DescribeDeliverySourcesCommand");
      }
      static {
        __name2(this, "DescribeDeliverySourcesCommand");
      }
    };
    var DescribeDestinationsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "DescribeDestinations", {}).n("CloudWatchLogsClient", "DescribeDestinationsCommand").f(void 0, void 0).ser(se_DescribeDestinationsCommand).de(de_DescribeDestinationsCommand).build() {
      static {
        __name(this, "DescribeDestinationsCommand");
      }
      static {
        __name2(this, "DescribeDestinationsCommand");
      }
    };
    var DescribeExportTasksCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "DescribeExportTasks", {}).n("CloudWatchLogsClient", "DescribeExportTasksCommand").f(void 0, void 0).ser(se_DescribeExportTasksCommand).de(de_DescribeExportTasksCommand).build() {
      static {
        __name(this, "DescribeExportTasksCommand");
      }
      static {
        __name2(this, "DescribeExportTasksCommand");
      }
    };
    var DescribeFieldIndexesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "DescribeFieldIndexes", {}).n("CloudWatchLogsClient", "DescribeFieldIndexesCommand").f(void 0, void 0).ser(se_DescribeFieldIndexesCommand).de(de_DescribeFieldIndexesCommand).build() {
      static {
        __name(this, "DescribeFieldIndexesCommand");
      }
      static {
        __name2(this, "DescribeFieldIndexesCommand");
      }
    };
    var DescribeIndexPoliciesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "DescribeIndexPolicies", {}).n("CloudWatchLogsClient", "DescribeIndexPoliciesCommand").f(void 0, void 0).ser(se_DescribeIndexPoliciesCommand).de(de_DescribeIndexPoliciesCommand).build() {
      static {
        __name(this, "DescribeIndexPoliciesCommand");
      }
      static {
        __name2(this, "DescribeIndexPoliciesCommand");
      }
    };
    var DescribeLogGroupsCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "DescribeLogGroups", {}).n("CloudWatchLogsClient", "DescribeLogGroupsCommand").f(void 0, void 0).ser(se_DescribeLogGroupsCommand).de(de_DescribeLogGroupsCommand).build() {
      static {
        __name(this, "DescribeLogGroupsCommand");
      }
      static {
        __name2(this, "DescribeLogGroupsCommand");
      }
    };
    var DescribeLogStreamsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "DescribeLogStreams", {}).n("CloudWatchLogsClient", "DescribeLogStreamsCommand").f(void 0, void 0).ser(se_DescribeLogStreamsCommand).de(de_DescribeLogStreamsCommand).build() {
      static {
        __name(this, "DescribeLogStreamsCommand");
      }
      static {
        __name2(this, "DescribeLogStreamsCommand");
      }
    };
    var DescribeMetricFiltersCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "DescribeMetricFilters", {}).n("CloudWatchLogsClient", "DescribeMetricFiltersCommand").f(void 0, void 0).ser(se_DescribeMetricFiltersCommand).de(de_DescribeMetricFiltersCommand).build() {
      static {
        __name(this, "DescribeMetricFiltersCommand");
      }
      static {
        __name2(this, "DescribeMetricFiltersCommand");
      }
    };
    var DescribeQueriesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "DescribeQueries", {}).n("CloudWatchLogsClient", "DescribeQueriesCommand").f(void 0, void 0).ser(se_DescribeQueriesCommand).de(de_DescribeQueriesCommand).build() {
      static {
        __name(this, "DescribeQueriesCommand");
      }
      static {
        __name2(this, "DescribeQueriesCommand");
      }
    };
    var DescribeQueryDefinitionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "DescribeQueryDefinitions", {}).n("CloudWatchLogsClient", "DescribeQueryDefinitionsCommand").f(void 0, void 0).ser(se_DescribeQueryDefinitionsCommand).de(de_DescribeQueryDefinitionsCommand).build() {
      static {
        __name(this, "DescribeQueryDefinitionsCommand");
      }
      static {
        __name2(this, "DescribeQueryDefinitionsCommand");
      }
    };
    var DescribeResourcePoliciesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "DescribeResourcePolicies", {}).n("CloudWatchLogsClient", "DescribeResourcePoliciesCommand").f(void 0, void 0).ser(se_DescribeResourcePoliciesCommand).de(de_DescribeResourcePoliciesCommand).build() {
      static {
        __name(this, "DescribeResourcePoliciesCommand");
      }
      static {
        __name2(this, "DescribeResourcePoliciesCommand");
      }
    };
    var DescribeSubscriptionFiltersCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "DescribeSubscriptionFilters", {}).n("CloudWatchLogsClient", "DescribeSubscriptionFiltersCommand").f(void 0, void 0).ser(se_DescribeSubscriptionFiltersCommand).de(de_DescribeSubscriptionFiltersCommand).build() {
      static {
        __name(this, "DescribeSubscriptionFiltersCommand");
      }
      static {
        __name2(this, "DescribeSubscriptionFiltersCommand");
      }
    };
    var DisassociateKmsKeyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "DisassociateKmsKey", {}).n("CloudWatchLogsClient", "DisassociateKmsKeyCommand").f(void 0, void 0).ser(se_DisassociateKmsKeyCommand).de(de_DisassociateKmsKeyCommand).build() {
      static {
        __name(this, "DisassociateKmsKeyCommand");
      }
      static {
        __name2(this, "DisassociateKmsKeyCommand");
      }
    };
    var FilterLogEventsCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "FilterLogEvents", {}).n("CloudWatchLogsClient", "FilterLogEventsCommand").f(void 0, void 0).ser(se_FilterLogEventsCommand).de(de_FilterLogEventsCommand).build() {
      static {
        __name(this, "FilterLogEventsCommand");
      }
      static {
        __name2(this, "FilterLogEventsCommand");
      }
    };
    var GetDataProtectionPolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "GetDataProtectionPolicy", {}).n("CloudWatchLogsClient", "GetDataProtectionPolicyCommand").f(void 0, void 0).ser(se_GetDataProtectionPolicyCommand).de(de_GetDataProtectionPolicyCommand).build() {
      static {
        __name(this, "GetDataProtectionPolicyCommand");
      }
      static {
        __name2(this, "GetDataProtectionPolicyCommand");
      }
    };
    var GetDeliveryCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "GetDelivery", {}).n("CloudWatchLogsClient", "GetDeliveryCommand").f(void 0, void 0).ser(se_GetDeliveryCommand).de(de_GetDeliveryCommand).build() {
      static {
        __name(this, "GetDeliveryCommand");
      }
      static {
        __name2(this, "GetDeliveryCommand");
      }
    };
    var GetDeliveryDestinationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "GetDeliveryDestination", {}).n("CloudWatchLogsClient", "GetDeliveryDestinationCommand").f(void 0, void 0).ser(se_GetDeliveryDestinationCommand).de(de_GetDeliveryDestinationCommand).build() {
      static {
        __name(this, "GetDeliveryDestinationCommand");
      }
      static {
        __name2(this, "GetDeliveryDestinationCommand");
      }
    };
    var GetDeliveryDestinationPolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "GetDeliveryDestinationPolicy", {}).n("CloudWatchLogsClient", "GetDeliveryDestinationPolicyCommand").f(void 0, void 0).ser(se_GetDeliveryDestinationPolicyCommand).de(de_GetDeliveryDestinationPolicyCommand).build() {
      static {
        __name(this, "GetDeliveryDestinationPolicyCommand");
      }
      static {
        __name2(this, "GetDeliveryDestinationPolicyCommand");
      }
    };
    var GetDeliverySourceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "GetDeliverySource", {}).n("CloudWatchLogsClient", "GetDeliverySourceCommand").f(void 0, void 0).ser(se_GetDeliverySourceCommand).de(de_GetDeliverySourceCommand).build() {
      static {
        __name(this, "GetDeliverySourceCommand");
      }
      static {
        __name2(this, "GetDeliverySourceCommand");
      }
    };
    var GetIntegrationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "GetIntegration", {}).n("CloudWatchLogsClient", "GetIntegrationCommand").f(void 0, void 0).ser(se_GetIntegrationCommand).de(de_GetIntegrationCommand).build() {
      static {
        __name(this, "GetIntegrationCommand");
      }
      static {
        __name2(this, "GetIntegrationCommand");
      }
    };
    var GetLogAnomalyDetectorCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "GetLogAnomalyDetector", {}).n("CloudWatchLogsClient", "GetLogAnomalyDetectorCommand").f(void 0, void 0).ser(se_GetLogAnomalyDetectorCommand).de(de_GetLogAnomalyDetectorCommand).build() {
      static {
        __name(this, "GetLogAnomalyDetectorCommand");
      }
      static {
        __name2(this, "GetLogAnomalyDetectorCommand");
      }
    };
    var GetLogEventsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "GetLogEvents", {}).n("CloudWatchLogsClient", "GetLogEventsCommand").f(void 0, void 0).ser(se_GetLogEventsCommand).de(de_GetLogEventsCommand).build() {
      static {
        __name(this, "GetLogEventsCommand");
      }
      static {
        __name2(this, "GetLogEventsCommand");
      }
    };
    var GetLogGroupFieldsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "GetLogGroupFields", {}).n("CloudWatchLogsClient", "GetLogGroupFieldsCommand").f(void 0, void 0).ser(se_GetLogGroupFieldsCommand).de(de_GetLogGroupFieldsCommand).build() {
      static {
        __name(this, "GetLogGroupFieldsCommand");
      }
      static {
        __name2(this, "GetLogGroupFieldsCommand");
      }
    };
    var GetLogObjectCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "GetLogObject", {
      /**
       * @internal
       */
      eventStream: {
        output: true
      }
    }).n("CloudWatchLogsClient", "GetLogObjectCommand").f(void 0, GetLogObjectResponseFilterSensitiveLog).ser(se_GetLogObjectCommand).de(de_GetLogObjectCommand).build() {
      static {
        __name(this, "GetLogObjectCommand");
      }
      static {
        __name2(this, "GetLogObjectCommand");
      }
    };
    var GetLogRecordCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "GetLogRecord", {}).n("CloudWatchLogsClient", "GetLogRecordCommand").f(void 0, void 0).ser(se_GetLogRecordCommand).de(de_GetLogRecordCommand).build() {
      static {
        __name(this, "GetLogRecordCommand");
      }
      static {
        __name2(this, "GetLogRecordCommand");
      }
    };
    var GetQueryResultsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "GetQueryResults", {}).n("CloudWatchLogsClient", "GetQueryResultsCommand").f(void 0, void 0).ser(se_GetQueryResultsCommand).de(de_GetQueryResultsCommand).build() {
      static {
        __name(this, "GetQueryResultsCommand");
      }
      static {
        __name2(this, "GetQueryResultsCommand");
      }
    };
    var GetTransformerCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "GetTransformer", {}).n("CloudWatchLogsClient", "GetTransformerCommand").f(void 0, void 0).ser(se_GetTransformerCommand).de(de_GetTransformerCommand).build() {
      static {
        __name(this, "GetTransformerCommand");
      }
      static {
        __name2(this, "GetTransformerCommand");
      }
    };
    var ListAnomaliesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "ListAnomalies", {}).n("CloudWatchLogsClient", "ListAnomaliesCommand").f(void 0, void 0).ser(se_ListAnomaliesCommand).de(de_ListAnomaliesCommand).build() {
      static {
        __name(this, "ListAnomaliesCommand");
      }
      static {
        __name2(this, "ListAnomaliesCommand");
      }
    };
    var ListIntegrationsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "ListIntegrations", {}).n("CloudWatchLogsClient", "ListIntegrationsCommand").f(void 0, void 0).ser(se_ListIntegrationsCommand).de(de_ListIntegrationsCommand).build() {
      static {
        __name(this, "ListIntegrationsCommand");
      }
      static {
        __name2(this, "ListIntegrationsCommand");
      }
    };
    var ListLogAnomalyDetectorsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "ListLogAnomalyDetectors", {}).n("CloudWatchLogsClient", "ListLogAnomalyDetectorsCommand").f(void 0, void 0).ser(se_ListLogAnomalyDetectorsCommand).de(de_ListLogAnomalyDetectorsCommand).build() {
      static {
        __name(this, "ListLogAnomalyDetectorsCommand");
      }
      static {
        __name2(this, "ListLogAnomalyDetectorsCommand");
      }
    };
    var ListLogGroupsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "ListLogGroups", {}).n("CloudWatchLogsClient", "ListLogGroupsCommand").f(void 0, void 0).ser(se_ListLogGroupsCommand).de(de_ListLogGroupsCommand).build() {
      static {
        __name(this, "ListLogGroupsCommand");
      }
      static {
        __name2(this, "ListLogGroupsCommand");
      }
    };
    var ListLogGroupsForQueryCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "ListLogGroupsForQuery", {}).n("CloudWatchLogsClient", "ListLogGroupsForQueryCommand").f(void 0, void 0).ser(se_ListLogGroupsForQueryCommand).de(de_ListLogGroupsForQueryCommand).build() {
      static {
        __name(this, "ListLogGroupsForQueryCommand");
      }
      static {
        __name2(this, "ListLogGroupsForQueryCommand");
      }
    };
    var ListTagsForResourceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "ListTagsForResource", {}).n("CloudWatchLogsClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
      static {
        __name(this, "ListTagsForResourceCommand");
      }
      static {
        __name2(this, "ListTagsForResourceCommand");
      }
    };
    var ListTagsLogGroupCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "ListTagsLogGroup", {}).n("CloudWatchLogsClient", "ListTagsLogGroupCommand").f(void 0, void 0).ser(se_ListTagsLogGroupCommand).de(de_ListTagsLogGroupCommand).build() {
      static {
        __name(this, "ListTagsLogGroupCommand");
      }
      static {
        __name2(this, "ListTagsLogGroupCommand");
      }
    };
    var PutAccountPolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "PutAccountPolicy", {}).n("CloudWatchLogsClient", "PutAccountPolicyCommand").f(void 0, void 0).ser(se_PutAccountPolicyCommand).de(de_PutAccountPolicyCommand).build() {
      static {
        __name(this, "PutAccountPolicyCommand");
      }
      static {
        __name2(this, "PutAccountPolicyCommand");
      }
    };
    var PutDataProtectionPolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "PutDataProtectionPolicy", {}).n("CloudWatchLogsClient", "PutDataProtectionPolicyCommand").f(void 0, void 0).ser(se_PutDataProtectionPolicyCommand).de(de_PutDataProtectionPolicyCommand).build() {
      static {
        __name(this, "PutDataProtectionPolicyCommand");
      }
      static {
        __name2(this, "PutDataProtectionPolicyCommand");
      }
    };
    var PutDeliveryDestinationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "PutDeliveryDestination", {}).n("CloudWatchLogsClient", "PutDeliveryDestinationCommand").f(void 0, void 0).ser(se_PutDeliveryDestinationCommand).de(de_PutDeliveryDestinationCommand).build() {
      static {
        __name(this, "PutDeliveryDestinationCommand");
      }
      static {
        __name2(this, "PutDeliveryDestinationCommand");
      }
    };
    var PutDeliveryDestinationPolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "PutDeliveryDestinationPolicy", {}).n("CloudWatchLogsClient", "PutDeliveryDestinationPolicyCommand").f(void 0, void 0).ser(se_PutDeliveryDestinationPolicyCommand).de(de_PutDeliveryDestinationPolicyCommand).build() {
      static {
        __name(this, "PutDeliveryDestinationPolicyCommand");
      }
      static {
        __name2(this, "PutDeliveryDestinationPolicyCommand");
      }
    };
    var PutDeliverySourceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "PutDeliverySource", {}).n("CloudWatchLogsClient", "PutDeliverySourceCommand").f(void 0, void 0).ser(se_PutDeliverySourceCommand).de(de_PutDeliverySourceCommand).build() {
      static {
        __name(this, "PutDeliverySourceCommand");
      }
      static {
        __name2(this, "PutDeliverySourceCommand");
      }
    };
    var PutDestinationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "PutDestination", {}).n("CloudWatchLogsClient", "PutDestinationCommand").f(void 0, void 0).ser(se_PutDestinationCommand).de(de_PutDestinationCommand).build() {
      static {
        __name(this, "PutDestinationCommand");
      }
      static {
        __name2(this, "PutDestinationCommand");
      }
    };
    var PutDestinationPolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "PutDestinationPolicy", {}).n("CloudWatchLogsClient", "PutDestinationPolicyCommand").f(void 0, void 0).ser(se_PutDestinationPolicyCommand).de(de_PutDestinationPolicyCommand).build() {
      static {
        __name(this, "PutDestinationPolicyCommand");
      }
      static {
        __name2(this, "PutDestinationPolicyCommand");
      }
    };
    var PutIndexPolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "PutIndexPolicy", {}).n("CloudWatchLogsClient", "PutIndexPolicyCommand").f(void 0, void 0).ser(se_PutIndexPolicyCommand).de(de_PutIndexPolicyCommand).build() {
      static {
        __name(this, "PutIndexPolicyCommand");
      }
      static {
        __name2(this, "PutIndexPolicyCommand");
      }
    };
    var PutIntegrationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "PutIntegration", {}).n("CloudWatchLogsClient", "PutIntegrationCommand").f(void 0, void 0).ser(se_PutIntegrationCommand).de(de_PutIntegrationCommand).build() {
      static {
        __name(this, "PutIntegrationCommand");
      }
      static {
        __name2(this, "PutIntegrationCommand");
      }
    };
    var PutLogEventsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "PutLogEvents", {}).n("CloudWatchLogsClient", "PutLogEventsCommand").f(void 0, void 0).ser(se_PutLogEventsCommand).de(de_PutLogEventsCommand).build() {
      static {
        __name(this, "PutLogEventsCommand");
      }
      static {
        __name2(this, "PutLogEventsCommand");
      }
    };
    var PutMetricFilterCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "PutMetricFilter", {}).n("CloudWatchLogsClient", "PutMetricFilterCommand").f(void 0, void 0).ser(se_PutMetricFilterCommand).de(de_PutMetricFilterCommand).build() {
      static {
        __name(this, "PutMetricFilterCommand");
      }
      static {
        __name2(this, "PutMetricFilterCommand");
      }
    };
    var PutQueryDefinitionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "PutQueryDefinition", {}).n("CloudWatchLogsClient", "PutQueryDefinitionCommand").f(void 0, void 0).ser(se_PutQueryDefinitionCommand).de(de_PutQueryDefinitionCommand).build() {
      static {
        __name(this, "PutQueryDefinitionCommand");
      }
      static {
        __name2(this, "PutQueryDefinitionCommand");
      }
    };
    var PutResourcePolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "PutResourcePolicy", {}).n("CloudWatchLogsClient", "PutResourcePolicyCommand").f(void 0, void 0).ser(se_PutResourcePolicyCommand).de(de_PutResourcePolicyCommand).build() {
      static {
        __name(this, "PutResourcePolicyCommand");
      }
      static {
        __name2(this, "PutResourcePolicyCommand");
      }
    };
    var PutRetentionPolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "PutRetentionPolicy", {}).n("CloudWatchLogsClient", "PutRetentionPolicyCommand").f(void 0, void 0).ser(se_PutRetentionPolicyCommand).de(de_PutRetentionPolicyCommand).build() {
      static {
        __name(this, "PutRetentionPolicyCommand");
      }
      static {
        __name2(this, "PutRetentionPolicyCommand");
      }
    };
    var PutSubscriptionFilterCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "PutSubscriptionFilter", {}).n("CloudWatchLogsClient", "PutSubscriptionFilterCommand").f(void 0, void 0).ser(se_PutSubscriptionFilterCommand).de(de_PutSubscriptionFilterCommand).build() {
      static {
        __name(this, "PutSubscriptionFilterCommand");
      }
      static {
        __name2(this, "PutSubscriptionFilterCommand");
      }
    };
    var PutTransformerCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "PutTransformer", {}).n("CloudWatchLogsClient", "PutTransformerCommand").f(void 0, void 0).ser(se_PutTransformerCommand).de(de_PutTransformerCommand).build() {
      static {
        __name(this, "PutTransformerCommand");
      }
      static {
        __name2(this, "PutTransformerCommand");
      }
    };
    var StartLiveTailCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "StartLiveTail", {
      /**
       * @internal
       */
      eventStream: {
        output: true
      }
    }).n("CloudWatchLogsClient", "StartLiveTailCommand").f(void 0, StartLiveTailResponseFilterSensitiveLog).ser(se_StartLiveTailCommand).de(de_StartLiveTailCommand).build() {
      static {
        __name(this, "StartLiveTailCommand");
      }
      static {
        __name2(this, "StartLiveTailCommand");
      }
    };
    var StartQueryCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "StartQuery", {}).n("CloudWatchLogsClient", "StartQueryCommand").f(void 0, void 0).ser(se_StartQueryCommand).de(de_StartQueryCommand).build() {
      static {
        __name(this, "StartQueryCommand");
      }
      static {
        __name2(this, "StartQueryCommand");
      }
    };
    var StopQueryCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "StopQuery", {}).n("CloudWatchLogsClient", "StopQueryCommand").f(void 0, void 0).ser(se_StopQueryCommand).de(de_StopQueryCommand).build() {
      static {
        __name(this, "StopQueryCommand");
      }
      static {
        __name2(this, "StopQueryCommand");
      }
    };
    var TagLogGroupCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "TagLogGroup", {}).n("CloudWatchLogsClient", "TagLogGroupCommand").f(void 0, void 0).ser(se_TagLogGroupCommand).de(de_TagLogGroupCommand).build() {
      static {
        __name(this, "TagLogGroupCommand");
      }
      static {
        __name2(this, "TagLogGroupCommand");
      }
    };
    var TagResourceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "TagResource", {}).n("CloudWatchLogsClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
      static {
        __name(this, "TagResourceCommand");
      }
      static {
        __name2(this, "TagResourceCommand");
      }
    };
    var TestMetricFilterCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "TestMetricFilter", {}).n("CloudWatchLogsClient", "TestMetricFilterCommand").f(void 0, void 0).ser(se_TestMetricFilterCommand).de(de_TestMetricFilterCommand).build() {
      static {
        __name(this, "TestMetricFilterCommand");
      }
      static {
        __name2(this, "TestMetricFilterCommand");
      }
    };
    var TestTransformerCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "TestTransformer", {}).n("CloudWatchLogsClient", "TestTransformerCommand").f(void 0, void 0).ser(se_TestTransformerCommand).de(de_TestTransformerCommand).build() {
      static {
        __name(this, "TestTransformerCommand");
      }
      static {
        __name2(this, "TestTransformerCommand");
      }
    };
    var UntagLogGroupCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "UntagLogGroup", {}).n("CloudWatchLogsClient", "UntagLogGroupCommand").f(void 0, void 0).ser(se_UntagLogGroupCommand).de(de_UntagLogGroupCommand).build() {
      static {
        __name(this, "UntagLogGroupCommand");
      }
      static {
        __name2(this, "UntagLogGroupCommand");
      }
    };
    var UntagResourceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "UntagResource", {}).n("CloudWatchLogsClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
      static {
        __name(this, "UntagResourceCommand");
      }
      static {
        __name2(this, "UntagResourceCommand");
      }
    };
    var UpdateAnomalyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "UpdateAnomaly", {}).n("CloudWatchLogsClient", "UpdateAnomalyCommand").f(void 0, void 0).ser(se_UpdateAnomalyCommand).de(de_UpdateAnomalyCommand).build() {
      static {
        __name(this, "UpdateAnomalyCommand");
      }
      static {
        __name2(this, "UpdateAnomalyCommand");
      }
    };
    var UpdateDeliveryConfigurationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "UpdateDeliveryConfiguration", {}).n("CloudWatchLogsClient", "UpdateDeliveryConfigurationCommand").f(void 0, void 0).ser(se_UpdateDeliveryConfigurationCommand).de(de_UpdateDeliveryConfigurationCommand).build() {
      static {
        __name(this, "UpdateDeliveryConfigurationCommand");
      }
      static {
        __name2(this, "UpdateDeliveryConfigurationCommand");
      }
    };
    var UpdateLogAnomalyDetectorCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("Logs_20140328", "UpdateLogAnomalyDetector", {}).n("CloudWatchLogsClient", "UpdateLogAnomalyDetectorCommand").f(void 0, void 0).ser(se_UpdateLogAnomalyDetectorCommand).de(de_UpdateLogAnomalyDetectorCommand).build() {
      static {
        __name(this, "UpdateLogAnomalyDetectorCommand");
      }
      static {
        __name2(this, "UpdateLogAnomalyDetectorCommand");
      }
    };
    var commands3 = {
      AssociateKmsKeyCommand,
      CancelExportTaskCommand,
      CreateDeliveryCommand,
      CreateExportTaskCommand,
      CreateLogAnomalyDetectorCommand,
      CreateLogGroupCommand,
      CreateLogStreamCommand,
      DeleteAccountPolicyCommand,
      DeleteDataProtectionPolicyCommand,
      DeleteDeliveryCommand,
      DeleteDeliveryDestinationCommand,
      DeleteDeliveryDestinationPolicyCommand,
      DeleteDeliverySourceCommand,
      DeleteDestinationCommand,
      DeleteIndexPolicyCommand,
      DeleteIntegrationCommand,
      DeleteLogAnomalyDetectorCommand,
      DeleteLogGroupCommand,
      DeleteLogStreamCommand,
      DeleteMetricFilterCommand,
      DeleteQueryDefinitionCommand,
      DeleteResourcePolicyCommand,
      DeleteRetentionPolicyCommand,
      DeleteSubscriptionFilterCommand,
      DeleteTransformerCommand,
      DescribeAccountPoliciesCommand,
      DescribeConfigurationTemplatesCommand,
      DescribeDeliveriesCommand,
      DescribeDeliveryDestinationsCommand,
      DescribeDeliverySourcesCommand,
      DescribeDestinationsCommand,
      DescribeExportTasksCommand,
      DescribeFieldIndexesCommand,
      DescribeIndexPoliciesCommand,
      DescribeLogGroupsCommand: DescribeLogGroupsCommand2,
      DescribeLogStreamsCommand,
      DescribeMetricFiltersCommand,
      DescribeQueriesCommand,
      DescribeQueryDefinitionsCommand,
      DescribeResourcePoliciesCommand,
      DescribeSubscriptionFiltersCommand,
      DisassociateKmsKeyCommand,
      FilterLogEventsCommand: FilterLogEventsCommand2,
      GetDataProtectionPolicyCommand,
      GetDeliveryCommand,
      GetDeliveryDestinationCommand,
      GetDeliveryDestinationPolicyCommand,
      GetDeliverySourceCommand,
      GetIntegrationCommand,
      GetLogAnomalyDetectorCommand,
      GetLogEventsCommand,
      GetLogGroupFieldsCommand,
      GetLogObjectCommand,
      GetLogRecordCommand,
      GetQueryResultsCommand,
      GetTransformerCommand,
      ListAnomaliesCommand,
      ListIntegrationsCommand,
      ListLogAnomalyDetectorsCommand,
      ListLogGroupsCommand,
      ListLogGroupsForQueryCommand,
      ListTagsForResourceCommand,
      ListTagsLogGroupCommand,
      PutAccountPolicyCommand,
      PutDataProtectionPolicyCommand,
      PutDeliveryDestinationCommand,
      PutDeliveryDestinationPolicyCommand,
      PutDeliverySourceCommand,
      PutDestinationCommand,
      PutDestinationPolicyCommand,
      PutIndexPolicyCommand,
      PutIntegrationCommand,
      PutLogEventsCommand,
      PutMetricFilterCommand,
      PutQueryDefinitionCommand,
      PutResourcePolicyCommand,
      PutRetentionPolicyCommand,
      PutSubscriptionFilterCommand,
      PutTransformerCommand,
      StartLiveTailCommand,
      StartQueryCommand,
      StopQueryCommand,
      TagLogGroupCommand,
      TagResourceCommand,
      TestMetricFilterCommand,
      TestTransformerCommand,
      UntagLogGroupCommand,
      UntagResourceCommand,
      UpdateAnomalyCommand,
      UpdateDeliveryConfigurationCommand,
      UpdateLogAnomalyDetectorCommand
    };
    var CloudWatchLogs = class extends CloudWatchLogsClient2 {
      static {
        __name(this, "CloudWatchLogs");
      }
      static {
        __name2(this, "CloudWatchLogs");
      }
    };
    (0, import_smithy_client28.createAggregatedClient)(commands3, CloudWatchLogs);
    var paginateDescribeConfigurationTemplates = (0, import_core17.createPaginator)(CloudWatchLogsClient2, DescribeConfigurationTemplatesCommand, "nextToken", "nextToken", "limit");
    var paginateDescribeDeliveries = (0, import_core17.createPaginator)(CloudWatchLogsClient2, DescribeDeliveriesCommand, "nextToken", "nextToken", "limit");
    var paginateDescribeDeliveryDestinations = (0, import_core17.createPaginator)(CloudWatchLogsClient2, DescribeDeliveryDestinationsCommand, "nextToken", "nextToken", "limit");
    var paginateDescribeDeliverySources = (0, import_core17.createPaginator)(CloudWatchLogsClient2, DescribeDeliverySourcesCommand, "nextToken", "nextToken", "limit");
    var paginateDescribeDestinations = (0, import_core17.createPaginator)(CloudWatchLogsClient2, DescribeDestinationsCommand, "nextToken", "nextToken", "limit");
    var paginateDescribeLogGroups = (0, import_core17.createPaginator)(CloudWatchLogsClient2, DescribeLogGroupsCommand2, "nextToken", "nextToken", "limit");
    var paginateDescribeLogStreams = (0, import_core17.createPaginator)(CloudWatchLogsClient2, DescribeLogStreamsCommand, "nextToken", "nextToken", "limit");
    var paginateDescribeMetricFilters = (0, import_core17.createPaginator)(CloudWatchLogsClient2, DescribeMetricFiltersCommand, "nextToken", "nextToken", "limit");
    var paginateDescribeSubscriptionFilters = (0, import_core17.createPaginator)(CloudWatchLogsClient2, DescribeSubscriptionFiltersCommand, "nextToken", "nextToken", "limit");
    var paginateFilterLogEvents = (0, import_core17.createPaginator)(CloudWatchLogsClient2, FilterLogEventsCommand2, "nextToken", "nextToken", "limit");
    var paginateGetLogEvents = (0, import_core17.createPaginator)(CloudWatchLogsClient2, GetLogEventsCommand, "nextToken", "nextForwardToken", "limit");
    var paginateListAnomalies = (0, import_core17.createPaginator)(CloudWatchLogsClient2, ListAnomaliesCommand, "nextToken", "nextToken", "limit");
    var paginateListLogAnomalyDetectors = (0, import_core17.createPaginator)(CloudWatchLogsClient2, ListLogAnomalyDetectorsCommand, "nextToken", "nextToken", "limit");
    var paginateListLogGroupsForQuery = (0, import_core17.createPaginator)(CloudWatchLogsClient2, ListLogGroupsForQueryCommand, "nextToken", "nextToken", "maxResults");
  }
});

// ../../node_modules/@aws-sdk/client-codebuild/dist-cjs/auth/httpAuthSchemeProvider.js
var require_httpAuthSchemeProvider11 = __commonJS({
  "../../node_modules/@aws-sdk/client-codebuild/dist-cjs/auth/httpAuthSchemeProvider.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.resolveHttpAuthSchemeConfig = exports2.defaultCodeBuildHttpAuthSchemeProvider = exports2.defaultCodeBuildHttpAuthSchemeParametersProvider = void 0;
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var util_middleware_1 = require_dist_cjs6();
    var defaultCodeBuildHttpAuthSchemeParametersProvider = /* @__PURE__ */ __name(async (config, context, input) => {
      return {
        operation: (0, util_middleware_1.getSmithyContext)(context).operation,
        region: await (0, util_middleware_1.normalizeProvider)(config.region)() || (() => {
          throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
        })()
      };
    }, "defaultCodeBuildHttpAuthSchemeParametersProvider");
    exports2.defaultCodeBuildHttpAuthSchemeParametersProvider = defaultCodeBuildHttpAuthSchemeParametersProvider;
    function createAwsAuthSigv4HttpAuthOption3(authParameters) {
      return {
        schemeId: "aws.auth#sigv4",
        signingProperties: {
          name: "codebuild",
          region: authParameters.region
        },
        propertiesExtractor: /* @__PURE__ */ __name((config, context) => ({
          signingProperties: {
            config,
            context
          }
        }), "propertiesExtractor")
      };
    }
    __name(createAwsAuthSigv4HttpAuthOption3, "createAwsAuthSigv4HttpAuthOption");
    var defaultCodeBuildHttpAuthSchemeProvider = /* @__PURE__ */ __name((authParameters) => {
      const options = [];
      switch (authParameters.operation) {
        default: {
          options.push(createAwsAuthSigv4HttpAuthOption3(authParameters));
        }
      }
      return options;
    }, "defaultCodeBuildHttpAuthSchemeProvider");
    exports2.defaultCodeBuildHttpAuthSchemeProvider = defaultCodeBuildHttpAuthSchemeProvider;
    var resolveHttpAuthSchemeConfig3 = /* @__PURE__ */ __name((config) => {
      const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
      return Object.assign(config_0, {
        authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? [])
      });
    }, "resolveHttpAuthSchemeConfig");
    exports2.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig3;
  }
});

// ../../node_modules/@aws-sdk/client-codebuild/package.json
var require_package11 = __commonJS({
  "../../node_modules/@aws-sdk/client-codebuild/package.json"(exports2, module2) {
    module2.exports = {
      name: "@aws-sdk/client-codebuild",
      description: "AWS SDK for JavaScript Codebuild Client for Node.js, Browser and React Native",
      version: "3.879.0",
      scripts: {
        build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
        "build:cjs": "node ../../scripts/compilation/inline client-codebuild",
        "build:es": "tsc -p tsconfig.es.json",
        "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
        "build:types": "tsc -p tsconfig.types.json",
        "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
        clean: "rimraf ./dist-* && rimraf *.tsbuildinfo",
        "extract:docs": "api-extractor run --local",
        "generate:client": "node ../../scripts/generate-clients/single-service --solo codebuild"
      },
      main: "./dist-cjs/index.js",
      types: "./dist-types/index.d.ts",
      module: "./dist-es/index.js",
      sideEffects: false,
      dependencies: {
        "@aws-crypto/sha256-browser": "5.2.0",
        "@aws-crypto/sha256-js": "5.2.0",
        "@aws-sdk/core": "3.879.0",
        "@aws-sdk/credential-provider-node": "3.879.0",
        "@aws-sdk/middleware-host-header": "3.873.0",
        "@aws-sdk/middleware-logger": "3.876.0",
        "@aws-sdk/middleware-recursion-detection": "3.873.0",
        "@aws-sdk/middleware-user-agent": "3.879.0",
        "@aws-sdk/region-config-resolver": "3.873.0",
        "@aws-sdk/types": "3.862.0",
        "@aws-sdk/util-endpoints": "3.879.0",
        "@aws-sdk/util-user-agent-browser": "3.873.0",
        "@aws-sdk/util-user-agent-node": "3.879.0",
        "@smithy/config-resolver": "^4.1.5",
        "@smithy/core": "^3.9.0",
        "@smithy/fetch-http-handler": "^5.1.1",
        "@smithy/hash-node": "^4.0.5",
        "@smithy/invalid-dependency": "^4.0.5",
        "@smithy/middleware-content-length": "^4.0.5",
        "@smithy/middleware-endpoint": "^4.1.19",
        "@smithy/middleware-retry": "^4.1.20",
        "@smithy/middleware-serde": "^4.0.9",
        "@smithy/middleware-stack": "^4.0.5",
        "@smithy/node-config-provider": "^4.1.4",
        "@smithy/node-http-handler": "^4.1.1",
        "@smithy/protocol-http": "^5.1.3",
        "@smithy/smithy-client": "^4.5.0",
        "@smithy/types": "^4.3.2",
        "@smithy/url-parser": "^4.0.5",
        "@smithy/util-base64": "^4.0.0",
        "@smithy/util-body-length-browser": "^4.0.0",
        "@smithy/util-body-length-node": "^4.0.0",
        "@smithy/util-defaults-mode-browser": "^4.0.27",
        "@smithy/util-defaults-mode-node": "^4.0.27",
        "@smithy/util-endpoints": "^3.0.7",
        "@smithy/util-middleware": "^4.0.5",
        "@smithy/util-retry": "^4.0.7",
        "@smithy/util-utf8": "^4.0.0",
        tslib: "^2.6.2"
      },
      devDependencies: {
        "@tsconfig/node18": "18.2.4",
        "@types/node": "^18.19.69",
        concurrently: "7.0.0",
        "downlevel-dts": "0.10.1",
        rimraf: "3.0.2",
        typescript: "~5.8.3"
      },
      engines: {
        node: ">=18.0.0"
      },
      typesVersions: {
        "<4.0": {
          "dist-types/*": [
            "dist-types/ts3.4/*"
          ]
        }
      },
      files: [
        "dist-*/**"
      ],
      author: {
        name: "AWS SDK for JavaScript Team",
        url: "https://aws.amazon.com/javascript/"
      },
      license: "Apache-2.0",
      browser: {
        "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
      },
      "react-native": {
        "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
      },
      homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-codebuild",
      repository: {
        type: "git",
        url: "https://github.com/aws/aws-sdk-js-v3.git",
        directory: "clients/client-codebuild"
      }
    };
  }
});

// ../../node_modules/@aws-sdk/client-codebuild/dist-cjs/endpoint/ruleset.js
var require_ruleset11 = __commonJS({
  "../../node_modules/@aws-sdk/client-codebuild/dist-cjs/endpoint/ruleset.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.ruleSet = void 0;
    var s3 = "required";
    var t3 = "fn";
    var u3 = "argv";
    var v6 = "ref";
    var a3 = true;
    var b3 = "isSet";
    var c3 = "booleanEquals";
    var d3 = "error";
    var e3 = "endpoint";
    var f3 = "tree";
    var g3 = "PartitionResult";
    var h3 = { [s3]: false, "type": "String" };
    var i3 = { [s3]: true, "default": false, "type": "Boolean" };
    var j3 = { [v6]: "Endpoint" };
    var k3 = { [t3]: c3, [u3]: [{ [v6]: "UseFIPS" }, true] };
    var l3 = { [t3]: c3, [u3]: [{ [v6]: "UseDualStack" }, true] };
    var m3 = {};
    var n3 = { [t3]: "getAttr", [u3]: [{ [v6]: g3 }, "supportsFIPS"] };
    var o3 = { [t3]: c3, [u3]: [true, { [t3]: "getAttr", [u3]: [{ [v6]: g3 }, "supportsDualStack"] }] };
    var p3 = [k3];
    var q3 = [l3];
    var r3 = [{ [v6]: "Region" }];
    var _data3 = { version: "1.0", parameters: { Region: h3, UseDualStack: i3, UseFIPS: i3, Endpoint: h3 }, rules: [{ conditions: [{ [t3]: b3, [u3]: [j3] }], rules: [{ conditions: p3, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d3 }, { conditions: q3, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d3 }, { endpoint: { url: j3, properties: m3, headers: m3 }, type: e3 }], type: f3 }, { conditions: [{ [t3]: b3, [u3]: r3 }], rules: [{ conditions: [{ [t3]: "aws.partition", [u3]: r3, assign: g3 }], rules: [{ conditions: [k3, l3], rules: [{ conditions: [{ [t3]: c3, [u3]: [a3, n3] }, o3], rules: [{ endpoint: { url: "https://codebuild-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m3, headers: m3 }, type: e3 }], type: f3 }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d3 }], type: f3 }, { conditions: p3, rules: [{ conditions: [{ [t3]: c3, [u3]: [n3, a3] }], rules: [{ endpoint: { url: "https://codebuild-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m3, headers: m3 }, type: e3 }], type: f3 }, { error: "FIPS is enabled but this partition does not support FIPS", type: d3 }], type: f3 }, { conditions: q3, rules: [{ conditions: [o3], rules: [{ endpoint: { url: "https://codebuild.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m3, headers: m3 }, type: e3 }], type: f3 }, { error: "DualStack is enabled but this partition does not support DualStack", type: d3 }], type: f3 }, { endpoint: { url: "https://codebuild.{Region}.{PartitionResult#dnsSuffix}", properties: m3, headers: m3 }, type: e3 }], type: f3 }], type: f3 }, { error: "Invalid Configuration: Missing Region", type: d3 }] };
    exports2.ruleSet = _data3;
  }
});

// ../../node_modules/@aws-sdk/client-codebuild/dist-cjs/endpoint/endpointResolver.js
var require_endpointResolver11 = __commonJS({
  "../../node_modules/@aws-sdk/client-codebuild/dist-cjs/endpoint/endpointResolver.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.defaultEndpointResolver = void 0;
    var util_endpoints_1 = require_dist_cjs21();
    var util_endpoints_2 = require_dist_cjs18();
    var ruleset_1 = require_ruleset11();
    var cache3 = new util_endpoints_2.EndpointCache({
      size: 50,
      params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"]
    });
    var defaultEndpointResolver3 = /* @__PURE__ */ __name((endpointParams, context = {}) => {
      return cache3.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
        endpointParams,
        logger: context.logger
      }));
    }, "defaultEndpointResolver");
    exports2.defaultEndpointResolver = defaultEndpointResolver3;
    util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
  }
});

// ../../node_modules/@aws-sdk/client-codebuild/dist-cjs/runtimeConfig.shared.js
var require_runtimeConfig_shared12 = __commonJS({
  "../../node_modules/@aws-sdk/client-codebuild/dist-cjs/runtimeConfig.shared.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.getRuntimeConfig = void 0;
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var smithy_client_1 = require_dist_cjs26();
    var url_parser_1 = require_dist_cjs20();
    var util_base64_1 = require_dist_cjs11();
    var util_utf8_1 = require_dist_cjs10();
    var httpAuthSchemeProvider_1 = require_httpAuthSchemeProvider11();
    var endpointResolver_1 = require_endpointResolver11();
    var getRuntimeConfig5 = /* @__PURE__ */ __name((config) => {
      return {
        apiVersion: "2016-10-06",
        base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
        base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
        disableHostPrefix: config?.disableHostPrefix ?? false,
        endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
        extensions: config?.extensions ?? [],
        httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultCodeBuildHttpAuthSchemeProvider,
        httpAuthSchemes: config?.httpAuthSchemes ?? [
          {
            schemeId: "aws.auth#sigv4",
            identityProvider: /* @__PURE__ */ __name((ipc) => ipc.getIdentityProvider("aws.auth#sigv4"), "identityProvider"),
            signer: new core_1.AwsSdkSigV4Signer()
          }
        ],
        logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
        serviceId: config?.serviceId ?? "CodeBuild",
        urlParser: config?.urlParser ?? url_parser_1.parseUrl,
        utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
        utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8
      };
    }, "getRuntimeConfig");
    exports2.getRuntimeConfig = getRuntimeConfig5;
  }
});

// ../../node_modules/@aws-sdk/client-codebuild/dist-cjs/runtimeConfig.js
var require_runtimeConfig12 = __commonJS({
  "../../node_modules/@aws-sdk/client-codebuild/dist-cjs/runtimeConfig.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.getRuntimeConfig = void 0;
    var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
    var package_json_1 = tslib_1.__importDefault(require_package11());
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var credential_provider_node_1 = require_dist_cjs52();
    var util_user_agent_node_1 = require_dist_cjs41();
    var config_resolver_1 = require_dist_cjs30();
    var hash_node_1 = require_dist_cjs42();
    var middleware_retry_1 = require_dist_cjs37();
    var node_config_provider_1 = require_dist_cjs33();
    var node_http_handler_1 = require_dist_cjs14();
    var util_body_length_node_1 = require_dist_cjs43();
    var util_retry_1 = require_dist_cjs36();
    var runtimeConfig_shared_1 = require_runtimeConfig_shared12();
    var smithy_client_1 = require_dist_cjs26();
    var util_defaults_mode_node_1 = require_dist_cjs44();
    var smithy_client_2 = require_dist_cjs26();
    var getRuntimeConfig5 = /* @__PURE__ */ __name((config) => {
      (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
      const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
      const defaultConfigProvider = /* @__PURE__ */ __name(() => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode), "defaultConfigProvider");
      const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
      (0, core_1.emitWarningIfUnsupportedVersion)(process.version);
      const loaderConfig = {
        profile: config?.profile,
        logger: clientSharedValues.logger
      };
      return {
        ...clientSharedValues,
        ...config,
        runtime: "node",
        defaultsMode,
        authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
        bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
        credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
        defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
        maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
        region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
        requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
        retryMode: config?.retryMode ?? (0, node_config_provider_1.loadConfig)({
          ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
          default: /* @__PURE__ */ __name(async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE, "default")
        }, config),
        sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
        streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
        useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
        useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
        userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig)
      };
    }, "getRuntimeConfig");
    exports2.getRuntimeConfig = getRuntimeConfig5;
  }
});

// ../../node_modules/@aws-sdk/client-codebuild/dist-cjs/index.js
var require_dist_cjs84 = __commonJS({
  "../../node_modules/@aws-sdk/client-codebuild/dist-cjs/index.js"(exports2, module2) {
    "use strict";
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var index_exports = {};
    __export2(index_exports, {
      AccountLimitExceededException: /* @__PURE__ */ __name(() => AccountLimitExceededException, "AccountLimitExceededException"),
      AccountSuspendedException: /* @__PURE__ */ __name(() => AccountSuspendedException, "AccountSuspendedException"),
      ArtifactNamespace: /* @__PURE__ */ __name(() => ArtifactNamespace, "ArtifactNamespace"),
      ArtifactPackaging: /* @__PURE__ */ __name(() => ArtifactPackaging, "ArtifactPackaging"),
      ArtifactsType: /* @__PURE__ */ __name(() => ArtifactsType, "ArtifactsType"),
      AuthType: /* @__PURE__ */ __name(() => AuthType, "AuthType"),
      BatchDeleteBuildsCommand: /* @__PURE__ */ __name(() => BatchDeleteBuildsCommand, "BatchDeleteBuildsCommand"),
      BatchGetBuildBatchesCommand: /* @__PURE__ */ __name(() => BatchGetBuildBatchesCommand, "BatchGetBuildBatchesCommand"),
      BatchGetBuildsCommand: /* @__PURE__ */ __name(() => BatchGetBuildsCommand, "BatchGetBuildsCommand"),
      BatchGetCommandExecutionsCommand: /* @__PURE__ */ __name(() => BatchGetCommandExecutionsCommand, "BatchGetCommandExecutionsCommand"),
      BatchGetCommandExecutionsOutputFilterSensitiveLog: /* @__PURE__ */ __name(() => BatchGetCommandExecutionsOutputFilterSensitiveLog, "BatchGetCommandExecutionsOutputFilterSensitiveLog"),
      BatchGetFleetsCommand: /* @__PURE__ */ __name(() => BatchGetFleetsCommand, "BatchGetFleetsCommand"),
      BatchGetProjectsCommand: /* @__PURE__ */ __name(() => BatchGetProjectsCommand, "BatchGetProjectsCommand"),
      BatchGetReportGroupsCommand: /* @__PURE__ */ __name(() => BatchGetReportGroupsCommand, "BatchGetReportGroupsCommand"),
      BatchGetReportsCommand: /* @__PURE__ */ __name(() => BatchGetReportsCommand, "BatchGetReportsCommand"),
      BatchGetSandboxesCommand: /* @__PURE__ */ __name(() => BatchGetSandboxesCommand, "BatchGetSandboxesCommand"),
      BatchReportModeType: /* @__PURE__ */ __name(() => BatchReportModeType, "BatchReportModeType"),
      BucketOwnerAccess: /* @__PURE__ */ __name(() => BucketOwnerAccess, "BucketOwnerAccess"),
      BuildBatchPhaseType: /* @__PURE__ */ __name(() => BuildBatchPhaseType, "BuildBatchPhaseType"),
      BuildPhaseType: /* @__PURE__ */ __name(() => BuildPhaseType, "BuildPhaseType"),
      CacheMode: /* @__PURE__ */ __name(() => CacheMode, "CacheMode"),
      CacheType: /* @__PURE__ */ __name(() => CacheType, "CacheType"),
      CodeBuild: /* @__PURE__ */ __name(() => CodeBuild, "CodeBuild"),
      CodeBuildClient: /* @__PURE__ */ __name(() => CodeBuildClient2, "CodeBuildClient"),
      CodeBuildServiceException: /* @__PURE__ */ __name(() => CodeBuildServiceException, "CodeBuildServiceException"),
      CommandExecutionFilterSensitiveLog: /* @__PURE__ */ __name(() => CommandExecutionFilterSensitiveLog, "CommandExecutionFilterSensitiveLog"),
      CommandType: /* @__PURE__ */ __name(() => CommandType, "CommandType"),
      ComputeType: /* @__PURE__ */ __name(() => ComputeType, "ComputeType"),
      CreateFleetCommand: /* @__PURE__ */ __name(() => CreateFleetCommand, "CreateFleetCommand"),
      CreateProjectCommand: /* @__PURE__ */ __name(() => CreateProjectCommand, "CreateProjectCommand"),
      CreateReportGroupCommand: /* @__PURE__ */ __name(() => CreateReportGroupCommand, "CreateReportGroupCommand"),
      CreateWebhookCommand: /* @__PURE__ */ __name(() => CreateWebhookCommand, "CreateWebhookCommand"),
      CredentialProviderType: /* @__PURE__ */ __name(() => CredentialProviderType, "CredentialProviderType"),
      DeleteBuildBatchCommand: /* @__PURE__ */ __name(() => DeleteBuildBatchCommand, "DeleteBuildBatchCommand"),
      DeleteFleetCommand: /* @__PURE__ */ __name(() => DeleteFleetCommand, "DeleteFleetCommand"),
      DeleteProjectCommand: /* @__PURE__ */ __name(() => DeleteProjectCommand, "DeleteProjectCommand"),
      DeleteReportCommand: /* @__PURE__ */ __name(() => DeleteReportCommand, "DeleteReportCommand"),
      DeleteReportGroupCommand: /* @__PURE__ */ __name(() => DeleteReportGroupCommand, "DeleteReportGroupCommand"),
      DeleteResourcePolicyCommand: /* @__PURE__ */ __name(() => DeleteResourcePolicyCommand, "DeleteResourcePolicyCommand"),
      DeleteSourceCredentialsCommand: /* @__PURE__ */ __name(() => DeleteSourceCredentialsCommand, "DeleteSourceCredentialsCommand"),
      DeleteWebhookCommand: /* @__PURE__ */ __name(() => DeleteWebhookCommand, "DeleteWebhookCommand"),
      DescribeCodeCoveragesCommand: /* @__PURE__ */ __name(() => DescribeCodeCoveragesCommand, "DescribeCodeCoveragesCommand"),
      DescribeTestCasesCommand: /* @__PURE__ */ __name(() => DescribeTestCasesCommand, "DescribeTestCasesCommand"),
      EnvironmentType: /* @__PURE__ */ __name(() => EnvironmentType, "EnvironmentType"),
      EnvironmentVariableType: /* @__PURE__ */ __name(() => EnvironmentVariableType, "EnvironmentVariableType"),
      FileSystemType: /* @__PURE__ */ __name(() => FileSystemType, "FileSystemType"),
      FleetContextCode: /* @__PURE__ */ __name(() => FleetContextCode, "FleetContextCode"),
      FleetOverflowBehavior: /* @__PURE__ */ __name(() => FleetOverflowBehavior, "FleetOverflowBehavior"),
      FleetProxyRuleBehavior: /* @__PURE__ */ __name(() => FleetProxyRuleBehavior, "FleetProxyRuleBehavior"),
      FleetProxyRuleEffectType: /* @__PURE__ */ __name(() => FleetProxyRuleEffectType, "FleetProxyRuleEffectType"),
      FleetProxyRuleType: /* @__PURE__ */ __name(() => FleetProxyRuleType, "FleetProxyRuleType"),
      FleetScalingMetricType: /* @__PURE__ */ __name(() => FleetScalingMetricType, "FleetScalingMetricType"),
      FleetScalingType: /* @__PURE__ */ __name(() => FleetScalingType, "FleetScalingType"),
      FleetSortByType: /* @__PURE__ */ __name(() => FleetSortByType, "FleetSortByType"),
      FleetStatusCode: /* @__PURE__ */ __name(() => FleetStatusCode, "FleetStatusCode"),
      GetReportGroupTrendCommand: /* @__PURE__ */ __name(() => GetReportGroupTrendCommand, "GetReportGroupTrendCommand"),
      GetResourcePolicyCommand: /* @__PURE__ */ __name(() => GetResourcePolicyCommand, "GetResourcePolicyCommand"),
      ImagePullCredentialsType: /* @__PURE__ */ __name(() => ImagePullCredentialsType, "ImagePullCredentialsType"),
      ImportSourceCredentialsCommand: /* @__PURE__ */ __name(() => ImportSourceCredentialsCommand, "ImportSourceCredentialsCommand"),
      ImportSourceCredentialsInputFilterSensitiveLog: /* @__PURE__ */ __name(() => ImportSourceCredentialsInputFilterSensitiveLog, "ImportSourceCredentialsInputFilterSensitiveLog"),
      InvalidInputException: /* @__PURE__ */ __name(() => InvalidInputException, "InvalidInputException"),
      InvalidateProjectCacheCommand: /* @__PURE__ */ __name(() => InvalidateProjectCacheCommand, "InvalidateProjectCacheCommand"),
      LanguageType: /* @__PURE__ */ __name(() => LanguageType, "LanguageType"),
      ListBuildBatchesCommand: /* @__PURE__ */ __name(() => ListBuildBatchesCommand, "ListBuildBatchesCommand"),
      ListBuildBatchesForProjectCommand: /* @__PURE__ */ __name(() => ListBuildBatchesForProjectCommand, "ListBuildBatchesForProjectCommand"),
      ListBuildsCommand: /* @__PURE__ */ __name(() => ListBuildsCommand, "ListBuildsCommand"),
      ListBuildsForProjectCommand: /* @__PURE__ */ __name(() => ListBuildsForProjectCommand, "ListBuildsForProjectCommand"),
      ListCommandExecutionsForSandboxCommand: /* @__PURE__ */ __name(() => ListCommandExecutionsForSandboxCommand, "ListCommandExecutionsForSandboxCommand"),
      ListCommandExecutionsForSandboxInputFilterSensitiveLog: /* @__PURE__ */ __name(() => ListCommandExecutionsForSandboxInputFilterSensitiveLog, "ListCommandExecutionsForSandboxInputFilterSensitiveLog"),
      ListCommandExecutionsForSandboxOutputFilterSensitiveLog: /* @__PURE__ */ __name(() => ListCommandExecutionsForSandboxOutputFilterSensitiveLog, "ListCommandExecutionsForSandboxOutputFilterSensitiveLog"),
      ListCuratedEnvironmentImagesCommand: /* @__PURE__ */ __name(() => ListCuratedEnvironmentImagesCommand, "ListCuratedEnvironmentImagesCommand"),
      ListFleetsCommand: /* @__PURE__ */ __name(() => ListFleetsCommand, "ListFleetsCommand"),
      ListFleetsInputFilterSensitiveLog: /* @__PURE__ */ __name(() => ListFleetsInputFilterSensitiveLog, "ListFleetsInputFilterSensitiveLog"),
      ListProjectsCommand: /* @__PURE__ */ __name(() => ListProjectsCommand, "ListProjectsCommand"),
      ListReportGroupsCommand: /* @__PURE__ */ __name(() => ListReportGroupsCommand, "ListReportGroupsCommand"),
      ListReportsCommand: /* @__PURE__ */ __name(() => ListReportsCommand, "ListReportsCommand"),
      ListReportsForReportGroupCommand: /* @__PURE__ */ __name(() => ListReportsForReportGroupCommand, "ListReportsForReportGroupCommand"),
      ListSandboxesCommand: /* @__PURE__ */ __name(() => ListSandboxesCommand, "ListSandboxesCommand"),
      ListSandboxesForProjectCommand: /* @__PURE__ */ __name(() => ListSandboxesForProjectCommand, "ListSandboxesForProjectCommand"),
      ListSandboxesForProjectInputFilterSensitiveLog: /* @__PURE__ */ __name(() => ListSandboxesForProjectInputFilterSensitiveLog, "ListSandboxesForProjectInputFilterSensitiveLog"),
      ListSharedProjectsCommand: /* @__PURE__ */ __name(() => ListSharedProjectsCommand, "ListSharedProjectsCommand"),
      ListSharedReportGroupsCommand: /* @__PURE__ */ __name(() => ListSharedReportGroupsCommand, "ListSharedReportGroupsCommand"),
      ListSourceCredentialsCommand: /* @__PURE__ */ __name(() => ListSourceCredentialsCommand, "ListSourceCredentialsCommand"),
      LogsConfigStatusType: /* @__PURE__ */ __name(() => LogsConfigStatusType, "LogsConfigStatusType"),
      MachineType: /* @__PURE__ */ __name(() => MachineType, "MachineType"),
      OAuthProviderException: /* @__PURE__ */ __name(() => OAuthProviderException, "OAuthProviderException"),
      PlatformType: /* @__PURE__ */ __name(() => PlatformType, "PlatformType"),
      ProjectSortByType: /* @__PURE__ */ __name(() => ProjectSortByType, "ProjectSortByType"),
      ProjectVisibilityType: /* @__PURE__ */ __name(() => ProjectVisibilityType, "ProjectVisibilityType"),
      PullRequestBuildApproverRole: /* @__PURE__ */ __name(() => PullRequestBuildApproverRole, "PullRequestBuildApproverRole"),
      PullRequestBuildCommentApproval: /* @__PURE__ */ __name(() => PullRequestBuildCommentApproval, "PullRequestBuildCommentApproval"),
      PutResourcePolicyCommand: /* @__PURE__ */ __name(() => PutResourcePolicyCommand, "PutResourcePolicyCommand"),
      ReportCodeCoverageSortByType: /* @__PURE__ */ __name(() => ReportCodeCoverageSortByType, "ReportCodeCoverageSortByType"),
      ReportExportConfigType: /* @__PURE__ */ __name(() => ReportExportConfigType, "ReportExportConfigType"),
      ReportGroupSortByType: /* @__PURE__ */ __name(() => ReportGroupSortByType, "ReportGroupSortByType"),
      ReportGroupStatusType: /* @__PURE__ */ __name(() => ReportGroupStatusType, "ReportGroupStatusType"),
      ReportGroupTrendFieldType: /* @__PURE__ */ __name(() => ReportGroupTrendFieldType, "ReportGroupTrendFieldType"),
      ReportPackagingType: /* @__PURE__ */ __name(() => ReportPackagingType, "ReportPackagingType"),
      ReportStatusType: /* @__PURE__ */ __name(() => ReportStatusType, "ReportStatusType"),
      ReportType: /* @__PURE__ */ __name(() => ReportType, "ReportType"),
      ResourceAlreadyExistsException: /* @__PURE__ */ __name(() => ResourceAlreadyExistsException, "ResourceAlreadyExistsException"),
      ResourceNotFoundException: /* @__PURE__ */ __name(() => ResourceNotFoundException2, "ResourceNotFoundException"),
      RetryBuildBatchCommand: /* @__PURE__ */ __name(() => RetryBuildBatchCommand, "RetryBuildBatchCommand"),
      RetryBuildBatchType: /* @__PURE__ */ __name(() => RetryBuildBatchType, "RetryBuildBatchType"),
      RetryBuildCommand: /* @__PURE__ */ __name(() => RetryBuildCommand, "RetryBuildCommand"),
      ServerType: /* @__PURE__ */ __name(() => ServerType, "ServerType"),
      SharedResourceSortByType: /* @__PURE__ */ __name(() => SharedResourceSortByType, "SharedResourceSortByType"),
      SortOrderType: /* @__PURE__ */ __name(() => SortOrderType, "SortOrderType"),
      SourceAuthType: /* @__PURE__ */ __name(() => SourceAuthType, "SourceAuthType"),
      SourceType: /* @__PURE__ */ __name(() => SourceType, "SourceType"),
      StartBuildBatchCommand: /* @__PURE__ */ __name(() => StartBuildBatchCommand, "StartBuildBatchCommand"),
      StartBuildCommand: /* @__PURE__ */ __name(() => StartBuildCommand, "StartBuildCommand"),
      StartCommandExecutionCommand: /* @__PURE__ */ __name(() => StartCommandExecutionCommand, "StartCommandExecutionCommand"),
      StartCommandExecutionInputFilterSensitiveLog: /* @__PURE__ */ __name(() => StartCommandExecutionInputFilterSensitiveLog, "StartCommandExecutionInputFilterSensitiveLog"),
      StartCommandExecutionOutputFilterSensitiveLog: /* @__PURE__ */ __name(() => StartCommandExecutionOutputFilterSensitiveLog, "StartCommandExecutionOutputFilterSensitiveLog"),
      StartSandboxCommand: /* @__PURE__ */ __name(() => StartSandboxCommand, "StartSandboxCommand"),
      StartSandboxConnectionCommand: /* @__PURE__ */ __name(() => StartSandboxConnectionCommand, "StartSandboxConnectionCommand"),
      StartSandboxInputFilterSensitiveLog: /* @__PURE__ */ __name(() => StartSandboxInputFilterSensitiveLog, "StartSandboxInputFilterSensitiveLog"),
      StatusType: /* @__PURE__ */ __name(() => StatusType, "StatusType"),
      StopBuildBatchCommand: /* @__PURE__ */ __name(() => StopBuildBatchCommand, "StopBuildBatchCommand"),
      StopBuildCommand: /* @__PURE__ */ __name(() => StopBuildCommand, "StopBuildCommand"),
      StopSandboxCommand: /* @__PURE__ */ __name(() => StopSandboxCommand, "StopSandboxCommand"),
      UpdateFleetCommand: /* @__PURE__ */ __name(() => UpdateFleetCommand, "UpdateFleetCommand"),
      UpdateProjectCommand: /* @__PURE__ */ __name(() => UpdateProjectCommand2, "UpdateProjectCommand"),
      UpdateProjectVisibilityCommand: /* @__PURE__ */ __name(() => UpdateProjectVisibilityCommand, "UpdateProjectVisibilityCommand"),
      UpdateReportGroupCommand: /* @__PURE__ */ __name(() => UpdateReportGroupCommand, "UpdateReportGroupCommand"),
      UpdateWebhookCommand: /* @__PURE__ */ __name(() => UpdateWebhookCommand, "UpdateWebhookCommand"),
      WebhookBuildType: /* @__PURE__ */ __name(() => WebhookBuildType, "WebhookBuildType"),
      WebhookFilterType: /* @__PURE__ */ __name(() => WebhookFilterType, "WebhookFilterType"),
      WebhookScopeType: /* @__PURE__ */ __name(() => WebhookScopeType, "WebhookScopeType"),
      WebhookStatus: /* @__PURE__ */ __name(() => WebhookStatus, "WebhookStatus"),
      __Client: /* @__PURE__ */ __name(() => import_smithy_client28.Client, "__Client"),
      paginateDescribeCodeCoverages: /* @__PURE__ */ __name(() => paginateDescribeCodeCoverages, "paginateDescribeCodeCoverages"),
      paginateDescribeTestCases: /* @__PURE__ */ __name(() => paginateDescribeTestCases, "paginateDescribeTestCases"),
      paginateListBuildBatches: /* @__PURE__ */ __name(() => paginateListBuildBatches, "paginateListBuildBatches"),
      paginateListBuildBatchesForProject: /* @__PURE__ */ __name(() => paginateListBuildBatchesForProject, "paginateListBuildBatchesForProject"),
      paginateListBuilds: /* @__PURE__ */ __name(() => paginateListBuilds, "paginateListBuilds"),
      paginateListBuildsForProject: /* @__PURE__ */ __name(() => paginateListBuildsForProject, "paginateListBuildsForProject"),
      paginateListCommandExecutionsForSandbox: /* @__PURE__ */ __name(() => paginateListCommandExecutionsForSandbox, "paginateListCommandExecutionsForSandbox"),
      paginateListFleets: /* @__PURE__ */ __name(() => paginateListFleets, "paginateListFleets"),
      paginateListProjects: /* @__PURE__ */ __name(() => paginateListProjects, "paginateListProjects"),
      paginateListReportGroups: /* @__PURE__ */ __name(() => paginateListReportGroups, "paginateListReportGroups"),
      paginateListReports: /* @__PURE__ */ __name(() => paginateListReports, "paginateListReports"),
      paginateListReportsForReportGroup: /* @__PURE__ */ __name(() => paginateListReportsForReportGroup, "paginateListReportsForReportGroup"),
      paginateListSandboxes: /* @__PURE__ */ __name(() => paginateListSandboxes, "paginateListSandboxes"),
      paginateListSandboxesForProject: /* @__PURE__ */ __name(() => paginateListSandboxesForProject, "paginateListSandboxesForProject"),
      paginateListSharedProjects: /* @__PURE__ */ __name(() => paginateListSharedProjects, "paginateListSharedProjects"),
      paginateListSharedReportGroups: /* @__PURE__ */ __name(() => paginateListSharedReportGroups, "paginateListSharedReportGroups")
    });
    module2.exports = __toCommonJS2(index_exports);
    var import_middleware_host_header3 = require_dist_cjs3();
    var import_middleware_logger3 = require_dist_cjs4();
    var import_middleware_recursion_detection3 = require_dist_cjs5();
    var import_middleware_user_agent3 = require_dist_cjs28();
    var import_config_resolver6 = require_dist_cjs30();
    var import_core17 = (init_dist_es(), __toCommonJS(dist_es_exports));
    var import_middleware_content_length3 = require_dist_cjs31();
    var import_middleware_endpoint8 = require_dist_cjs34();
    var import_middleware_retry5 = require_dist_cjs37();
    var import_httpAuthSchemeProvider5 = require_httpAuthSchemeProvider11();
    var resolveClientEndpointParameters3 = /* @__PURE__ */ __name2((options) => {
      return Object.assign(options, {
        useDualstackEndpoint: options.useDualstackEndpoint ?? false,
        useFipsEndpoint: options.useFipsEndpoint ?? false,
        defaultSigningName: "codebuild"
      });
    }, "resolveClientEndpointParameters");
    var commonParams3 = {
      UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
      Endpoint: { type: "builtInParams", name: "endpoint" },
      Region: { type: "builtInParams", name: "region" },
      UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
    };
    var import_runtimeConfig5 = require_runtimeConfig12();
    var import_region_config_resolver3 = require_dist_cjs45();
    var import_protocol_http16 = require_dist_cjs2();
    var import_smithy_client28 = require_dist_cjs26();
    var getHttpAuthExtensionConfiguration3 = /* @__PURE__ */ __name2((runtimeConfig) => {
      const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
      let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
      let _credentials = runtimeConfig.credentials;
      return {
        setHttpAuthScheme(httpAuthScheme) {
          const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
          if (index === -1) {
            _httpAuthSchemes.push(httpAuthScheme);
          } else {
            _httpAuthSchemes.splice(index, 1, httpAuthScheme);
          }
        },
        httpAuthSchemes() {
          return _httpAuthSchemes;
        },
        setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
          _httpAuthSchemeProvider = httpAuthSchemeProvider;
        },
        httpAuthSchemeProvider() {
          return _httpAuthSchemeProvider;
        },
        setCredentials(credentials) {
          _credentials = credentials;
        },
        credentials() {
          return _credentials;
        }
      };
    }, "getHttpAuthExtensionConfiguration");
    var resolveHttpAuthRuntimeConfig3 = /* @__PURE__ */ __name2((config) => {
      return {
        httpAuthSchemes: config.httpAuthSchemes(),
        httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
        credentials: config.credentials()
      };
    }, "resolveHttpAuthRuntimeConfig");
    var resolveRuntimeExtensions3 = /* @__PURE__ */ __name2((runtimeConfig, extensions) => {
      const extensionConfiguration = Object.assign(
        (0, import_region_config_resolver3.getAwsRegionExtensionConfiguration)(runtimeConfig),
        (0, import_smithy_client28.getDefaultExtensionConfiguration)(runtimeConfig),
        (0, import_protocol_http16.getHttpHandlerExtensionConfiguration)(runtimeConfig),
        getHttpAuthExtensionConfiguration3(runtimeConfig)
      );
      extensions.forEach((extension) => extension.configure(extensionConfiguration));
      return Object.assign(
        runtimeConfig,
        (0, import_region_config_resolver3.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
        (0, import_smithy_client28.resolveDefaultRuntimeConfig)(extensionConfiguration),
        (0, import_protocol_http16.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
        resolveHttpAuthRuntimeConfig3(extensionConfiguration)
      );
    }, "resolveRuntimeExtensions");
    var CodeBuildClient2 = class extends import_smithy_client28.Client {
      static {
        __name(this, "CodeBuildClient");
      }
      static {
        __name2(this, "CodeBuildClient");
      }
      /**
       * The resolved configuration of CodeBuildClient class. This is resolved and normalized from the {@link CodeBuildClientConfig | constructor configuration interface}.
       */
      config;
      constructor(...[configuration]) {
        const _config_0 = (0, import_runtimeConfig5.getRuntimeConfig)(configuration || {});
        super(_config_0);
        this.initConfig = _config_0;
        const _config_1 = resolveClientEndpointParameters3(_config_0);
        const _config_2 = (0, import_middleware_user_agent3.resolveUserAgentConfig)(_config_1);
        const _config_3 = (0, import_middleware_retry5.resolveRetryConfig)(_config_2);
        const _config_4 = (0, import_config_resolver6.resolveRegionConfig)(_config_3);
        const _config_5 = (0, import_middleware_host_header3.resolveHostHeaderConfig)(_config_4);
        const _config_6 = (0, import_middleware_endpoint8.resolveEndpointConfig)(_config_5);
        const _config_7 = (0, import_httpAuthSchemeProvider5.resolveHttpAuthSchemeConfig)(_config_6);
        const _config_8 = resolveRuntimeExtensions3(_config_7, configuration?.extensions || []);
        this.config = _config_8;
        this.middlewareStack.use((0, import_middleware_user_agent3.getUserAgentPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_retry5.getRetryPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_content_length3.getContentLengthPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_host_header3.getHostHeaderPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_logger3.getLoggerPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_recursion_detection3.getRecursionDetectionPlugin)(this.config));
        this.middlewareStack.use(
          (0, import_core17.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
            httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider5.defaultCodeBuildHttpAuthSchemeParametersProvider,
            identityProviderConfigProvider: /* @__PURE__ */ __name2(async (config) => new import_core17.DefaultIdentityProviderConfig({
              "aws.auth#sigv4": config.credentials
            }), "identityProviderConfigProvider")
          })
        );
        this.middlewareStack.use((0, import_core17.getHttpSigningPlugin)(this.config));
      }
      /**
       * Destroy underlying resources, like sockets. It's usually not necessary to do this.
       * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
       * Otherwise, sockets might stay open for quite a long time before the server terminates them.
       */
      destroy() {
        super.destroy();
      }
    };
    var import_middleware_serde5 = require_dist_cjs7();
    var import_core22 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var CodeBuildServiceException = class _CodeBuildServiceException extends import_smithy_client28.ServiceException {
      static {
        __name(this, "_CodeBuildServiceException");
      }
      static {
        __name2(this, "CodeBuildServiceException");
      }
      /**
       * @internal
       */
      constructor(options) {
        super(options);
        Object.setPrototypeOf(this, _CodeBuildServiceException.prototype);
      }
    };
    var AccountLimitExceededException = class _AccountLimitExceededException extends CodeBuildServiceException {
      static {
        __name(this, "_AccountLimitExceededException");
      }
      static {
        __name2(this, "AccountLimitExceededException");
      }
      name = "AccountLimitExceededException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "AccountLimitExceededException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _AccountLimitExceededException.prototype);
      }
    };
    var AccountSuspendedException = class _AccountSuspendedException extends CodeBuildServiceException {
      static {
        __name(this, "_AccountSuspendedException");
      }
      static {
        __name2(this, "AccountSuspendedException");
      }
      name = "AccountSuspendedException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "AccountSuspendedException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _AccountSuspendedException.prototype);
      }
    };
    var ArtifactNamespace = {
      BUILD_ID: "BUILD_ID",
      NONE: "NONE"
    };
    var ArtifactPackaging = {
      NONE: "NONE",
      ZIP: "ZIP"
    };
    var ArtifactsType = {
      CODEPIPELINE: "CODEPIPELINE",
      NO_ARTIFACTS: "NO_ARTIFACTS",
      S3: "S3"
    };
    var AuthType = {
      BASIC_AUTH: "BASIC_AUTH",
      CODECONNECTIONS: "CODECONNECTIONS",
      OAUTH: "OAUTH",
      PERSONAL_ACCESS_TOKEN: "PERSONAL_ACCESS_TOKEN",
      SECRETS_MANAGER: "SECRETS_MANAGER"
    };
    var InvalidInputException = class _InvalidInputException extends CodeBuildServiceException {
      static {
        __name(this, "_InvalidInputException");
      }
      static {
        __name2(this, "InvalidInputException");
      }
      name = "InvalidInputException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidInputException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidInputException.prototype);
      }
    };
    var BucketOwnerAccess = {
      FULL: "FULL",
      NONE: "NONE",
      READ_ONLY: "READ_ONLY"
    };
    var BatchReportModeType = {
      REPORT_AGGREGATED_BATCH: "REPORT_AGGREGATED_BATCH",
      REPORT_INDIVIDUAL_BUILDS: "REPORT_INDIVIDUAL_BUILDS"
    };
    var StatusType = {
      FAILED: "FAILED",
      FAULT: "FAULT",
      IN_PROGRESS: "IN_PROGRESS",
      STOPPED: "STOPPED",
      SUCCEEDED: "SUCCEEDED",
      TIMED_OUT: "TIMED_OUT"
    };
    var CacheMode = {
      LOCAL_CUSTOM_CACHE: "LOCAL_CUSTOM_CACHE",
      LOCAL_DOCKER_LAYER_CACHE: "LOCAL_DOCKER_LAYER_CACHE",
      LOCAL_SOURCE_CACHE: "LOCAL_SOURCE_CACHE"
    };
    var CacheType = {
      LOCAL: "LOCAL",
      NO_CACHE: "NO_CACHE",
      S3: "S3"
    };
    var MachineType = {
      GENERAL: "GENERAL",
      NVME: "NVME"
    };
    var ComputeType = {
      ATTRIBUTE_BASED_COMPUTE: "ATTRIBUTE_BASED_COMPUTE",
      BUILD_GENERAL1_2XLARGE: "BUILD_GENERAL1_2XLARGE",
      BUILD_GENERAL1_LARGE: "BUILD_GENERAL1_LARGE",
      BUILD_GENERAL1_MEDIUM: "BUILD_GENERAL1_MEDIUM",
      BUILD_GENERAL1_SMALL: "BUILD_GENERAL1_SMALL",
      BUILD_GENERAL1_XLARGE: "BUILD_GENERAL1_XLARGE",
      BUILD_LAMBDA_10GB: "BUILD_LAMBDA_10GB",
      BUILD_LAMBDA_1GB: "BUILD_LAMBDA_1GB",
      BUILD_LAMBDA_2GB: "BUILD_LAMBDA_2GB",
      BUILD_LAMBDA_4GB: "BUILD_LAMBDA_4GB",
      BUILD_LAMBDA_8GB: "BUILD_LAMBDA_8GB",
      CUSTOM_INSTANCE_TYPE: "CUSTOM_INSTANCE_TYPE"
    };
    var EnvironmentVariableType = {
      PARAMETER_STORE: "PARAMETER_STORE",
      PLAINTEXT: "PLAINTEXT",
      SECRETS_MANAGER: "SECRETS_MANAGER"
    };
    var ImagePullCredentialsType = {
      CODEBUILD: "CODEBUILD",
      SERVICE_ROLE: "SERVICE_ROLE"
    };
    var CredentialProviderType = {
      SECRETS_MANAGER: "SECRETS_MANAGER"
    };
    var EnvironmentType = {
      ARM_CONTAINER: "ARM_CONTAINER",
      ARM_EC2: "ARM_EC2",
      ARM_LAMBDA_CONTAINER: "ARM_LAMBDA_CONTAINER",
      LINUX_CONTAINER: "LINUX_CONTAINER",
      LINUX_EC2: "LINUX_EC2",
      LINUX_GPU_CONTAINER: "LINUX_GPU_CONTAINER",
      LINUX_LAMBDA_CONTAINER: "LINUX_LAMBDA_CONTAINER",
      MAC_ARM: "MAC_ARM",
      WINDOWS_CONTAINER: "WINDOWS_CONTAINER",
      WINDOWS_EC2: "WINDOWS_EC2",
      WINDOWS_SERVER_2019_CONTAINER: "WINDOWS_SERVER_2019_CONTAINER",
      WINDOWS_SERVER_2022_CONTAINER: "WINDOWS_SERVER_2022_CONTAINER"
    };
    var FileSystemType = {
      EFS: "EFS"
    };
    var LogsConfigStatusType = {
      DISABLED: "DISABLED",
      ENABLED: "ENABLED"
    };
    var BuildBatchPhaseType = {
      COMBINE_ARTIFACTS: "COMBINE_ARTIFACTS",
      DOWNLOAD_BATCHSPEC: "DOWNLOAD_BATCHSPEC",
      FAILED: "FAILED",
      IN_PROGRESS: "IN_PROGRESS",
      STOPPED: "STOPPED",
      SUBMITTED: "SUBMITTED",
      SUCCEEDED: "SUCCEEDED"
    };
    var SourceAuthType = {
      CODECONNECTIONS: "CODECONNECTIONS",
      OAUTH: "OAUTH",
      SECRETS_MANAGER: "SECRETS_MANAGER"
    };
    var SourceType = {
      BITBUCKET: "BITBUCKET",
      CODECOMMIT: "CODECOMMIT",
      CODEPIPELINE: "CODEPIPELINE",
      GITHUB: "GITHUB",
      GITHUB_ENTERPRISE: "GITHUB_ENTERPRISE",
      GITLAB: "GITLAB",
      GITLAB_SELF_MANAGED: "GITLAB_SELF_MANAGED",
      NO_SOURCE: "NO_SOURCE",
      S3: "S3"
    };
    var BuildPhaseType = {
      BUILD: "BUILD",
      COMPLETED: "COMPLETED",
      DOWNLOAD_SOURCE: "DOWNLOAD_SOURCE",
      FINALIZING: "FINALIZING",
      INSTALL: "INSTALL",
      POST_BUILD: "POST_BUILD",
      PRE_BUILD: "PRE_BUILD",
      PROVISIONING: "PROVISIONING",
      QUEUED: "QUEUED",
      SUBMITTED: "SUBMITTED",
      UPLOAD_ARTIFACTS: "UPLOAD_ARTIFACTS"
    };
    var CommandType = {
      SHELL: "SHELL"
    };
    var FleetOverflowBehavior = {
      ON_DEMAND: "ON_DEMAND",
      QUEUE: "QUEUE"
    };
    var FleetProxyRuleBehavior = {
      ALLOW_ALL: "ALLOW_ALL",
      DENY_ALL: "DENY_ALL"
    };
    var FleetProxyRuleEffectType = {
      ALLOW: "ALLOW",
      DENY: "DENY"
    };
    var FleetProxyRuleType = {
      DOMAIN: "DOMAIN",
      IP: "IP"
    };
    var FleetScalingType = {
      TARGET_TRACKING_SCALING: "TARGET_TRACKING_SCALING"
    };
    var FleetScalingMetricType = {
      FLEET_UTILIZATION_RATE: "FLEET_UTILIZATION_RATE"
    };
    var FleetContextCode = {
      ACTION_REQUIRED: "ACTION_REQUIRED",
      CREATE_FAILED: "CREATE_FAILED",
      INSUFFICIENT_CAPACITY: "INSUFFICIENT_CAPACITY",
      PENDING_DELETION: "PENDING_DELETION",
      UPDATE_FAILED: "UPDATE_FAILED"
    };
    var FleetStatusCode = {
      ACTIVE: "ACTIVE",
      CREATE_FAILED: "CREATE_FAILED",
      CREATING: "CREATING",
      DELETING: "DELETING",
      PENDING_DELETION: "PENDING_DELETION",
      ROTATING: "ROTATING",
      UPDATE_ROLLBACK_FAILED: "UPDATE_ROLLBACK_FAILED",
      UPDATING: "UPDATING"
    };
    var ProjectVisibilityType = {
      PRIVATE: "PRIVATE",
      PUBLIC_READ: "PUBLIC_READ"
    };
    var WebhookBuildType = {
      BUILD: "BUILD",
      BUILD_BATCH: "BUILD_BATCH",
      RUNNER_BUILDKITE_BUILD: "RUNNER_BUILDKITE_BUILD"
    };
    var WebhookFilterType = {
      ACTOR_ACCOUNT_ID: "ACTOR_ACCOUNT_ID",
      BASE_REF: "BASE_REF",
      COMMIT_MESSAGE: "COMMIT_MESSAGE",
      EVENT: "EVENT",
      FILE_PATH: "FILE_PATH",
      HEAD_REF: "HEAD_REF",
      ORGANIZATION_NAME: "ORGANIZATION_NAME",
      RELEASE_NAME: "RELEASE_NAME",
      REPOSITORY_NAME: "REPOSITORY_NAME",
      TAG_NAME: "TAG_NAME",
      WORKFLOW_NAME: "WORKFLOW_NAME"
    };
    var PullRequestBuildApproverRole = {
      BITBUCKET_ADMIN: "BITBUCKET_ADMIN",
      BITBUCKET_READ: "BITBUCKET_READ",
      BITBUCKET_WRITE: "BITBUCKET_WRITE",
      GITHUB_ADMIN: "GITHUB_ADMIN",
      GITHUB_MAINTAIN: "GITHUB_MAINTAIN",
      GITHUB_READ: "GITHUB_READ",
      GITHUB_TRIAGE: "GITHUB_TRIAGE",
      GITHUB_WRITE: "GITHUB_WRITE",
      GITLAB_DEVELOPER: "GITLAB_DEVELOPER",
      GITLAB_GUEST: "GITLAB_GUEST",
      GITLAB_MAINTAINER: "GITLAB_MAINTAINER",
      GITLAB_OWNER: "GITLAB_OWNER",
      GITLAB_PLANNER: "GITLAB_PLANNER",
      GITLAB_REPORTER: "GITLAB_REPORTER"
    };
    var PullRequestBuildCommentApproval = {
      ALL_PULL_REQUESTS: "ALL_PULL_REQUESTS",
      DISABLED: "DISABLED",
      FORK_PULL_REQUESTS: "FORK_PULL_REQUESTS"
    };
    var WebhookScopeType = {
      GITHUB_GLOBAL: "GITHUB_GLOBAL",
      GITHUB_ORGANIZATION: "GITHUB_ORGANIZATION",
      GITLAB_GROUP: "GITLAB_GROUP"
    };
    var WebhookStatus = {
      ACTIVE: "ACTIVE",
      CREATE_FAILED: "CREATE_FAILED",
      CREATING: "CREATING",
      DELETING: "DELETING"
    };
    var ReportExportConfigType = {
      NO_EXPORT: "NO_EXPORT",
      S3: "S3"
    };
    var ReportPackagingType = {
      NONE: "NONE",
      ZIP: "ZIP"
    };
    var ReportGroupStatusType = {
      ACTIVE: "ACTIVE",
      DELETING: "DELETING"
    };
    var ReportType = {
      CODE_COVERAGE: "CODE_COVERAGE",
      TEST: "TEST"
    };
    var ReportStatusType = {
      DELETING: "DELETING",
      FAILED: "FAILED",
      GENERATING: "GENERATING",
      INCOMPLETE: "INCOMPLETE",
      SUCCEEDED: "SUCCEEDED"
    };
    var ResourceAlreadyExistsException = class _ResourceAlreadyExistsException extends CodeBuildServiceException {
      static {
        __name(this, "_ResourceAlreadyExistsException");
      }
      static {
        __name2(this, "ResourceAlreadyExistsException");
      }
      name = "ResourceAlreadyExistsException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ResourceAlreadyExistsException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ResourceAlreadyExistsException.prototype);
      }
    };
    var OAuthProviderException = class _OAuthProviderException extends CodeBuildServiceException {
      static {
        __name(this, "_OAuthProviderException");
      }
      static {
        __name2(this, "OAuthProviderException");
      }
      name = "OAuthProviderException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "OAuthProviderException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _OAuthProviderException.prototype);
      }
    };
    var ResourceNotFoundException2 = class _ResourceNotFoundException extends CodeBuildServiceException {
      static {
        __name(this, "_ResourceNotFoundException");
      }
      static {
        __name2(this, "ResourceNotFoundException");
      }
      name = "ResourceNotFoundException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ResourceNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
      }
    };
    var ReportCodeCoverageSortByType = {
      FILE_PATH: "FILE_PATH",
      LINE_COVERAGE_PERCENTAGE: "LINE_COVERAGE_PERCENTAGE"
    };
    var SortOrderType = {
      ASCENDING: "ASCENDING",
      DESCENDING: "DESCENDING"
    };
    var ReportGroupTrendFieldType = {
      BRANCHES_COVERED: "BRANCHES_COVERED",
      BRANCHES_MISSED: "BRANCHES_MISSED",
      BRANCH_COVERAGE: "BRANCH_COVERAGE",
      DURATION: "DURATION",
      LINES_COVERED: "LINES_COVERED",
      LINES_MISSED: "LINES_MISSED",
      LINE_COVERAGE: "LINE_COVERAGE",
      PASS_RATE: "PASS_RATE",
      TOTAL: "TOTAL"
    };
    var ServerType = {
      BITBUCKET: "BITBUCKET",
      GITHUB: "GITHUB",
      GITHUB_ENTERPRISE: "GITHUB_ENTERPRISE",
      GITLAB: "GITLAB",
      GITLAB_SELF_MANAGED: "GITLAB_SELF_MANAGED"
    };
    var LanguageType = {
      ANDROID: "ANDROID",
      BASE: "BASE",
      DOCKER: "DOCKER",
      DOTNET: "DOTNET",
      GOLANG: "GOLANG",
      JAVA: "JAVA",
      NODE_JS: "NODE_JS",
      PHP: "PHP",
      PYTHON: "PYTHON",
      RUBY: "RUBY"
    };
    var PlatformType = {
      AMAZON_LINUX: "AMAZON_LINUX",
      DEBIAN: "DEBIAN",
      UBUNTU: "UBUNTU",
      WINDOWS_SERVER: "WINDOWS_SERVER"
    };
    var FleetSortByType = {
      CREATED_TIME: "CREATED_TIME",
      LAST_MODIFIED_TIME: "LAST_MODIFIED_TIME",
      NAME: "NAME"
    };
    var ProjectSortByType = {
      CREATED_TIME: "CREATED_TIME",
      LAST_MODIFIED_TIME: "LAST_MODIFIED_TIME",
      NAME: "NAME"
    };
    var ReportGroupSortByType = {
      CREATED_TIME: "CREATED_TIME",
      LAST_MODIFIED_TIME: "LAST_MODIFIED_TIME",
      NAME: "NAME"
    };
    var SharedResourceSortByType = {
      ARN: "ARN",
      MODIFIED_TIME: "MODIFIED_TIME"
    };
    var RetryBuildBatchType = {
      RETRY_ALL_BUILDS: "RETRY_ALL_BUILDS",
      RETRY_FAILED_BUILDS: "RETRY_FAILED_BUILDS"
    };
    var CommandExecutionFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.command && { command: import_smithy_client28.SENSITIVE_STRING },
      ...obj.standardOutputContent && { standardOutputContent: import_smithy_client28.SENSITIVE_STRING },
      ...obj.standardErrContent && { standardErrContent: import_smithy_client28.SENSITIVE_STRING }
    }), "CommandExecutionFilterSensitiveLog");
    var BatchGetCommandExecutionsOutputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.commandExecutions && {
        commandExecutions: obj.commandExecutions.map((item) => CommandExecutionFilterSensitiveLog(item))
      }
    }), "BatchGetCommandExecutionsOutputFilterSensitiveLog");
    var ImportSourceCredentialsInputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.token && { token: import_smithy_client28.SENSITIVE_STRING }
    }), "ImportSourceCredentialsInputFilterSensitiveLog");
    var ListCommandExecutionsForSandboxInputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.nextToken && { nextToken: import_smithy_client28.SENSITIVE_STRING }
    }), "ListCommandExecutionsForSandboxInputFilterSensitiveLog");
    var ListCommandExecutionsForSandboxOutputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.commandExecutions && {
        commandExecutions: obj.commandExecutions.map((item) => CommandExecutionFilterSensitiveLog(item))
      }
    }), "ListCommandExecutionsForSandboxOutputFilterSensitiveLog");
    var ListFleetsInputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.nextToken && { nextToken: import_smithy_client28.SENSITIVE_STRING }
    }), "ListFleetsInputFilterSensitiveLog");
    var ListSandboxesForProjectInputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.nextToken && { nextToken: import_smithy_client28.SENSITIVE_STRING }
    }), "ListSandboxesForProjectInputFilterSensitiveLog");
    var StartCommandExecutionInputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.command && { command: import_smithy_client28.SENSITIVE_STRING }
    }), "StartCommandExecutionInputFilterSensitiveLog");
    var StartCommandExecutionOutputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.commandExecution && { commandExecution: CommandExecutionFilterSensitiveLog(obj.commandExecution) }
    }), "StartCommandExecutionOutputFilterSensitiveLog");
    var StartSandboxInputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.idempotencyToken && { idempotencyToken: import_smithy_client28.SENSITIVE_STRING }
    }), "StartSandboxInputFilterSensitiveLog");
    var se_BatchDeleteBuildsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("BatchDeleteBuilds");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_BatchDeleteBuildsCommand");
    var se_BatchGetBuildBatchesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("BatchGetBuildBatches");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_BatchGetBuildBatchesCommand");
    var se_BatchGetBuildsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("BatchGetBuilds");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_BatchGetBuildsCommand");
    var se_BatchGetCommandExecutionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("BatchGetCommandExecutions");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_BatchGetCommandExecutionsCommand");
    var se_BatchGetFleetsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("BatchGetFleets");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_BatchGetFleetsCommand");
    var se_BatchGetProjectsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("BatchGetProjects");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_BatchGetProjectsCommand");
    var se_BatchGetReportGroupsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("BatchGetReportGroups");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_BatchGetReportGroupsCommand");
    var se_BatchGetReportsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("BatchGetReports");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_BatchGetReportsCommand");
    var se_BatchGetSandboxesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("BatchGetSandboxes");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_BatchGetSandboxesCommand");
    var se_CreateFleetCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("CreateFleet");
      let body;
      body = JSON.stringify(se_CreateFleetInput(input, context));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateFleetCommand");
    var se_CreateProjectCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("CreateProject");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateProjectCommand");
    var se_CreateReportGroupCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("CreateReportGroup");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateReportGroupCommand");
    var se_CreateWebhookCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("CreateWebhook");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateWebhookCommand");
    var se_DeleteBuildBatchCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteBuildBatch");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteBuildBatchCommand");
    var se_DeleteFleetCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteFleet");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteFleetCommand");
    var se_DeleteProjectCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteProject");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteProjectCommand");
    var se_DeleteReportCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteReport");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteReportCommand");
    var se_DeleteReportGroupCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteReportGroup");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteReportGroupCommand");
    var se_DeleteResourcePolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteResourcePolicy");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteResourcePolicyCommand");
    var se_DeleteSourceCredentialsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteSourceCredentials");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteSourceCredentialsCommand");
    var se_DeleteWebhookCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteWebhook");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteWebhookCommand");
    var se_DescribeCodeCoveragesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeCodeCoverages");
      let body;
      body = JSON.stringify(se_DescribeCodeCoveragesInput(input, context));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeCodeCoveragesCommand");
    var se_DescribeTestCasesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeTestCases");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeTestCasesCommand");
    var se_GetReportGroupTrendCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetReportGroupTrend");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetReportGroupTrendCommand");
    var se_GetResourcePolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetResourcePolicy");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetResourcePolicyCommand");
    var se_ImportSourceCredentialsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ImportSourceCredentials");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ImportSourceCredentialsCommand");
    var se_InvalidateProjectCacheCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("InvalidateProjectCache");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_InvalidateProjectCacheCommand");
    var se_ListBuildBatchesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListBuildBatches");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListBuildBatchesCommand");
    var se_ListBuildBatchesForProjectCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListBuildBatchesForProject");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListBuildBatchesForProjectCommand");
    var se_ListBuildsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListBuilds");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListBuildsCommand");
    var se_ListBuildsForProjectCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListBuildsForProject");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListBuildsForProjectCommand");
    var se_ListCommandExecutionsForSandboxCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListCommandExecutionsForSandbox");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListCommandExecutionsForSandboxCommand");
    var se_ListCuratedEnvironmentImagesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListCuratedEnvironmentImages");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListCuratedEnvironmentImagesCommand");
    var se_ListFleetsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListFleets");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListFleetsCommand");
    var se_ListProjectsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListProjects");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListProjectsCommand");
    var se_ListReportGroupsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListReportGroups");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListReportGroupsCommand");
    var se_ListReportsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListReports");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListReportsCommand");
    var se_ListReportsForReportGroupCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListReportsForReportGroup");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListReportsForReportGroupCommand");
    var se_ListSandboxesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListSandboxes");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListSandboxesCommand");
    var se_ListSandboxesForProjectCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListSandboxesForProject");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListSandboxesForProjectCommand");
    var se_ListSharedProjectsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListSharedProjects");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListSharedProjectsCommand");
    var se_ListSharedReportGroupsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListSharedReportGroups");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListSharedReportGroupsCommand");
    var se_ListSourceCredentialsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListSourceCredentials");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListSourceCredentialsCommand");
    var se_PutResourcePolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("PutResourcePolicy");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_PutResourcePolicyCommand");
    var se_RetryBuildCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("RetryBuild");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_RetryBuildCommand");
    var se_RetryBuildBatchCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("RetryBuildBatch");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_RetryBuildBatchCommand");
    var se_StartBuildCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("StartBuild");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_StartBuildCommand");
    var se_StartBuildBatchCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("StartBuildBatch");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_StartBuildBatchCommand");
    var se_StartCommandExecutionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("StartCommandExecution");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_StartCommandExecutionCommand");
    var se_StartSandboxCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("StartSandbox");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_StartSandboxCommand");
    var se_StartSandboxConnectionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("StartSandboxConnection");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_StartSandboxConnectionCommand");
    var se_StopBuildCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("StopBuild");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_StopBuildCommand");
    var se_StopBuildBatchCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("StopBuildBatch");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_StopBuildBatchCommand");
    var se_StopSandboxCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("StopSandbox");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_StopSandboxCommand");
    var se_UpdateFleetCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("UpdateFleet");
      let body;
      body = JSON.stringify(se_UpdateFleetInput(input, context));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateFleetCommand");
    var se_UpdateProjectCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("UpdateProject");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateProjectCommand");
    var se_UpdateProjectVisibilityCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("UpdateProjectVisibility");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateProjectVisibilityCommand");
    var se_UpdateReportGroupCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("UpdateReportGroup");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateReportGroupCommand");
    var se_UpdateWebhookCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("UpdateWebhook");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateWebhookCommand");
    var de_BatchDeleteBuildsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_BatchDeleteBuildsCommand");
    var de_BatchGetBuildBatchesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_BatchGetBuildBatchesOutput(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_BatchGetBuildBatchesCommand");
    var de_BatchGetBuildsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_BatchGetBuildsOutput(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_BatchGetBuildsCommand");
    var de_BatchGetCommandExecutionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_BatchGetCommandExecutionsOutput(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_BatchGetCommandExecutionsCommand");
    var de_BatchGetFleetsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_BatchGetFleetsOutput(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_BatchGetFleetsCommand");
    var de_BatchGetProjectsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_BatchGetProjectsOutput(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_BatchGetProjectsCommand");
    var de_BatchGetReportGroupsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_BatchGetReportGroupsOutput(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_BatchGetReportGroupsCommand");
    var de_BatchGetReportsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_BatchGetReportsOutput(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_BatchGetReportsCommand");
    var de_BatchGetSandboxesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_BatchGetSandboxesOutput(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_BatchGetSandboxesCommand");
    var de_CreateFleetCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_CreateFleetOutput(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateFleetCommand");
    var de_CreateProjectCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_CreateProjectOutput(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateProjectCommand");
    var de_CreateReportGroupCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_CreateReportGroupOutput(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateReportGroupCommand");
    var de_CreateWebhookCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_CreateWebhookOutput(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateWebhookCommand");
    var de_DeleteBuildBatchCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteBuildBatchCommand");
    var de_DeleteFleetCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteFleetCommand");
    var de_DeleteProjectCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteProjectCommand");
    var de_DeleteReportCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteReportCommand");
    var de_DeleteReportGroupCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteReportGroupCommand");
    var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteResourcePolicyCommand");
    var de_DeleteSourceCredentialsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteSourceCredentialsCommand");
    var de_DeleteWebhookCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteWebhookCommand");
    var de_DescribeCodeCoveragesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DescribeCodeCoveragesOutput(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeCodeCoveragesCommand");
    var de_DescribeTestCasesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DescribeTestCasesOutput(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeTestCasesCommand");
    var de_GetReportGroupTrendCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetReportGroupTrendCommand");
    var de_GetResourcePolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetResourcePolicyCommand");
    var de_ImportSourceCredentialsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ImportSourceCredentialsCommand");
    var de_InvalidateProjectCacheCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_InvalidateProjectCacheCommand");
    var de_ListBuildBatchesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListBuildBatchesCommand");
    var de_ListBuildBatchesForProjectCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListBuildBatchesForProjectCommand");
    var de_ListBuildsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListBuildsCommand");
    var de_ListBuildsForProjectCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListBuildsForProjectCommand");
    var de_ListCommandExecutionsForSandboxCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_ListCommandExecutionsForSandboxOutput(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListCommandExecutionsForSandboxCommand");
    var de_ListCuratedEnvironmentImagesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListCuratedEnvironmentImagesCommand");
    var de_ListFleetsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListFleetsCommand");
    var de_ListProjectsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListProjectsCommand");
    var de_ListReportGroupsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListReportGroupsCommand");
    var de_ListReportsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListReportsCommand");
    var de_ListReportsForReportGroupCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListReportsForReportGroupCommand");
    var de_ListSandboxesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListSandboxesCommand");
    var de_ListSandboxesForProjectCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListSandboxesForProjectCommand");
    var de_ListSharedProjectsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListSharedProjectsCommand");
    var de_ListSharedReportGroupsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListSharedReportGroupsCommand");
    var de_ListSourceCredentialsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListSourceCredentialsCommand");
    var de_PutResourcePolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_PutResourcePolicyCommand");
    var de_RetryBuildCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_RetryBuildOutput(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_RetryBuildCommand");
    var de_RetryBuildBatchCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_RetryBuildBatchOutput(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_RetryBuildBatchCommand");
    var de_StartBuildCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_StartBuildOutput(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_StartBuildCommand");
    var de_StartBuildBatchCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_StartBuildBatchOutput(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_StartBuildBatchCommand");
    var de_StartCommandExecutionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_StartCommandExecutionOutput(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_StartCommandExecutionCommand");
    var de_StartSandboxCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_StartSandboxOutput(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_StartSandboxCommand");
    var de_StartSandboxConnectionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_StartSandboxConnectionCommand");
    var de_StopBuildCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_StopBuildOutput(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_StopBuildCommand");
    var de_StopBuildBatchCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_StopBuildBatchOutput(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_StopBuildBatchCommand");
    var de_StopSandboxCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_StopSandboxOutput(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_StopSandboxCommand");
    var de_UpdateFleetCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_UpdateFleetOutput(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UpdateFleetCommand");
    var de_UpdateProjectCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_UpdateProjectOutput(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UpdateProjectCommand");
    var de_UpdateProjectVisibilityCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UpdateProjectVisibilityCommand");
    var de_UpdateReportGroupCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_UpdateReportGroupOutput(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UpdateReportGroupCommand");
    var de_UpdateWebhookCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_UpdateWebhookOutput(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UpdateWebhookCommand");
    var de_CommandError3 = /* @__PURE__ */ __name2(async (output, context) => {
      const parsedOutput = {
        ...output,
        body: await (0, import_core22.parseJsonErrorBody)(output.body, context)
      };
      const errorCode = (0, import_core22.loadRestJsonErrorCode)(output, parsedOutput.body);
      switch (errorCode) {
        case "InvalidInputException":
        case "com.amazonaws.codebuild#InvalidInputException":
          throw await de_InvalidInputExceptionRes(parsedOutput, context);
        case "AccountLimitExceededException":
        case "com.amazonaws.codebuild#AccountLimitExceededException":
          throw await de_AccountLimitExceededExceptionRes(parsedOutput, context);
        case "ResourceAlreadyExistsException":
        case "com.amazonaws.codebuild#ResourceAlreadyExistsException":
          throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
        case "OAuthProviderException":
        case "com.amazonaws.codebuild#OAuthProviderException":
          throw await de_OAuthProviderExceptionRes(parsedOutput, context);
        case "ResourceNotFoundException":
        case "com.amazonaws.codebuild#ResourceNotFoundException":
          throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
        case "AccountSuspendedException":
        case "com.amazonaws.codebuild#AccountSuspendedException":
          throw await de_AccountSuspendedExceptionRes(parsedOutput, context);
        default:
          const parsedBody = parsedOutput.body;
          return throwDefaultError3({
            output,
            parsedBody,
            errorCode
          });
      }
    }, "de_CommandError");
    var de_AccountLimitExceededExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new AccountLimitExceededException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_AccountLimitExceededExceptionRes");
    var de_AccountSuspendedExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new AccountSuspendedException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_AccountSuspendedExceptionRes");
    var de_InvalidInputExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidInputException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidInputExceptionRes");
    var de_OAuthProviderExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new OAuthProviderException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_OAuthProviderExceptionRes");
    var de_ResourceAlreadyExistsExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ResourceAlreadyExistsException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ResourceAlreadyExistsExceptionRes");
    var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ResourceNotFoundException2({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ResourceNotFoundExceptionRes");
    var se_CreateFleetInput = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        baseCapacity: [],
        computeConfiguration: import_smithy_client28._json,
        computeType: [],
        environmentType: [],
        fleetServiceRole: [],
        imageId: [],
        name: [],
        overflowBehavior: [],
        proxyConfiguration: import_smithy_client28._json,
        scalingConfiguration: /* @__PURE__ */ __name2((_3) => se_ScalingConfigurationInput(_3, context), "scalingConfiguration"),
        tags: import_smithy_client28._json,
        vpcConfig: import_smithy_client28._json
      });
    }, "se_CreateFleetInput");
    var se_DescribeCodeCoveragesInput = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        maxLineCoveragePercentage: import_smithy_client28.serializeFloat,
        maxResults: [],
        minLineCoveragePercentage: import_smithy_client28.serializeFloat,
        nextToken: [],
        reportArn: [],
        sortBy: [],
        sortOrder: []
      });
    }, "se_DescribeCodeCoveragesInput");
    var se_ScalingConfigurationInput = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        maxCapacity: [],
        scalingType: [],
        targetTrackingScalingConfigs: /* @__PURE__ */ __name2((_3) => se_TargetTrackingScalingConfigurations(_3, context), "targetTrackingScalingConfigs")
      });
    }, "se_ScalingConfigurationInput");
    var se_TargetTrackingScalingConfiguration = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        metricType: [],
        targetValue: import_smithy_client28.serializeFloat
      });
    }, "se_TargetTrackingScalingConfiguration");
    var se_TargetTrackingScalingConfigurations = /* @__PURE__ */ __name2((input, context) => {
      return input.filter((e3) => e3 != null).map((entry) => {
        return se_TargetTrackingScalingConfiguration(entry, context);
      });
    }, "se_TargetTrackingScalingConfigurations");
    var se_UpdateFleetInput = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        arn: [],
        baseCapacity: [],
        computeConfiguration: import_smithy_client28._json,
        computeType: [],
        environmentType: [],
        fleetServiceRole: [],
        imageId: [],
        overflowBehavior: [],
        proxyConfiguration: import_smithy_client28._json,
        scalingConfiguration: /* @__PURE__ */ __name2((_3) => se_ScalingConfigurationInput(_3, context), "scalingConfiguration"),
        tags: import_smithy_client28._json,
        vpcConfig: import_smithy_client28._json
      });
    }, "se_UpdateFleetInput");
    var de_BatchGetBuildBatchesOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        buildBatches: /* @__PURE__ */ __name2((_3) => de_BuildBatches(_3, context), "buildBatches"),
        buildBatchesNotFound: import_smithy_client28._json
      });
    }, "de_BatchGetBuildBatchesOutput");
    var de_BatchGetBuildsOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        builds: /* @__PURE__ */ __name2((_3) => de_Builds(_3, context), "builds"),
        buildsNotFound: import_smithy_client28._json
      });
    }, "de_BatchGetBuildsOutput");
    var de_BatchGetCommandExecutionsOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        commandExecutions: /* @__PURE__ */ __name2((_3) => de_CommandExecutions(_3, context), "commandExecutions"),
        commandExecutionsNotFound: import_smithy_client28._json
      });
    }, "de_BatchGetCommandExecutionsOutput");
    var de_BatchGetFleetsOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        fleets: /* @__PURE__ */ __name2((_3) => de_Fleets(_3, context), "fleets"),
        fleetsNotFound: import_smithy_client28._json
      });
    }, "de_BatchGetFleetsOutput");
    var de_BatchGetProjectsOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        projects: /* @__PURE__ */ __name2((_3) => de_Projects(_3, context), "projects"),
        projectsNotFound: import_smithy_client28._json
      });
    }, "de_BatchGetProjectsOutput");
    var de_BatchGetReportGroupsOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        reportGroups: /* @__PURE__ */ __name2((_3) => de_ReportGroups(_3, context), "reportGroups"),
        reportGroupsNotFound: import_smithy_client28._json
      });
    }, "de_BatchGetReportGroupsOutput");
    var de_BatchGetReportsOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        reports: /* @__PURE__ */ __name2((_3) => de_Reports(_3, context), "reports"),
        reportsNotFound: import_smithy_client28._json
      });
    }, "de_BatchGetReportsOutput");
    var de_BatchGetSandboxesOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        sandboxes: /* @__PURE__ */ __name2((_3) => de_Sandboxes(_3, context), "sandboxes"),
        sandboxesNotFound: import_smithy_client28._json
      });
    }, "de_BatchGetSandboxesOutput");
    var de_Build = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        arn: import_smithy_client28.expectString,
        artifacts: import_smithy_client28._json,
        autoRetryConfig: import_smithy_client28._json,
        buildBatchArn: import_smithy_client28.expectString,
        buildComplete: import_smithy_client28.expectBoolean,
        buildNumber: import_smithy_client28.expectLong,
        buildStatus: import_smithy_client28.expectString,
        cache: import_smithy_client28._json,
        currentPhase: import_smithy_client28.expectString,
        debugSession: import_smithy_client28._json,
        encryptionKey: import_smithy_client28.expectString,
        endTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "endTime"),
        environment: import_smithy_client28._json,
        exportedEnvironmentVariables: import_smithy_client28._json,
        fileSystemLocations: import_smithy_client28._json,
        id: import_smithy_client28.expectString,
        initiator: import_smithy_client28.expectString,
        logs: import_smithy_client28._json,
        networkInterface: import_smithy_client28._json,
        phases: /* @__PURE__ */ __name2((_3) => de_BuildPhases(_3, context), "phases"),
        projectName: import_smithy_client28.expectString,
        queuedTimeoutInMinutes: import_smithy_client28.expectInt32,
        reportArns: import_smithy_client28._json,
        resolvedSourceVersion: import_smithy_client28.expectString,
        secondaryArtifacts: import_smithy_client28._json,
        secondarySourceVersions: import_smithy_client28._json,
        secondarySources: import_smithy_client28._json,
        serviceRole: import_smithy_client28.expectString,
        source: import_smithy_client28._json,
        sourceVersion: import_smithy_client28.expectString,
        startTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "startTime"),
        timeoutInMinutes: import_smithy_client28.expectInt32,
        vpcConfig: import_smithy_client28._json
      });
    }, "de_Build");
    var de_BuildBatch = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        arn: import_smithy_client28.expectString,
        artifacts: import_smithy_client28._json,
        buildBatchConfig: import_smithy_client28._json,
        buildBatchNumber: import_smithy_client28.expectLong,
        buildBatchStatus: import_smithy_client28.expectString,
        buildGroups: /* @__PURE__ */ __name2((_3) => de_BuildGroups(_3, context), "buildGroups"),
        buildTimeoutInMinutes: import_smithy_client28.expectInt32,
        cache: import_smithy_client28._json,
        complete: import_smithy_client28.expectBoolean,
        currentPhase: import_smithy_client28.expectString,
        debugSessionEnabled: import_smithy_client28.expectBoolean,
        encryptionKey: import_smithy_client28.expectString,
        endTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "endTime"),
        environment: import_smithy_client28._json,
        fileSystemLocations: import_smithy_client28._json,
        id: import_smithy_client28.expectString,
        initiator: import_smithy_client28.expectString,
        logConfig: import_smithy_client28._json,
        phases: /* @__PURE__ */ __name2((_3) => de_BuildBatchPhases(_3, context), "phases"),
        projectName: import_smithy_client28.expectString,
        queuedTimeoutInMinutes: import_smithy_client28.expectInt32,
        reportArns: import_smithy_client28._json,
        resolvedSourceVersion: import_smithy_client28.expectString,
        secondaryArtifacts: import_smithy_client28._json,
        secondarySourceVersions: import_smithy_client28._json,
        secondarySources: import_smithy_client28._json,
        serviceRole: import_smithy_client28.expectString,
        source: import_smithy_client28._json,
        sourceVersion: import_smithy_client28.expectString,
        startTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "startTime"),
        vpcConfig: import_smithy_client28._json
      });
    }, "de_BuildBatch");
    var de_BuildBatches = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_BuildBatch(entry, context);
      });
      return retVal;
    }, "de_BuildBatches");
    var de_BuildBatchPhase = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        contexts: import_smithy_client28._json,
        durationInSeconds: import_smithy_client28.expectLong,
        endTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "endTime"),
        phaseStatus: import_smithy_client28.expectString,
        phaseType: import_smithy_client28.expectString,
        startTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "startTime")
      });
    }, "de_BuildBatchPhase");
    var de_BuildBatchPhases = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_BuildBatchPhase(entry, context);
      });
      return retVal;
    }, "de_BuildBatchPhases");
    var de_BuildGroup = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        currentBuildSummary: /* @__PURE__ */ __name2((_3) => de_BuildSummary(_3, context), "currentBuildSummary"),
        dependsOn: import_smithy_client28._json,
        identifier: import_smithy_client28.expectString,
        ignoreFailure: import_smithy_client28.expectBoolean,
        priorBuildSummaryList: /* @__PURE__ */ __name2((_3) => de_BuildSummaries(_3, context), "priorBuildSummaryList")
      });
    }, "de_BuildGroup");
    var de_BuildGroups = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_BuildGroup(entry, context);
      });
      return retVal;
    }, "de_BuildGroups");
    var de_BuildPhase = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        contexts: import_smithy_client28._json,
        durationInSeconds: import_smithy_client28.expectLong,
        endTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "endTime"),
        phaseStatus: import_smithy_client28.expectString,
        phaseType: import_smithy_client28.expectString,
        startTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "startTime")
      });
    }, "de_BuildPhase");
    var de_BuildPhases = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_BuildPhase(entry, context);
      });
      return retVal;
    }, "de_BuildPhases");
    var de_Builds = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Build(entry, context);
      });
      return retVal;
    }, "de_Builds");
    var de_BuildSummaries = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_BuildSummary(entry, context);
      });
      return retVal;
    }, "de_BuildSummaries");
    var de_BuildSummary = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        arn: import_smithy_client28.expectString,
        buildStatus: import_smithy_client28.expectString,
        primaryArtifact: import_smithy_client28._json,
        requestedOn: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "requestedOn"),
        secondaryArtifacts: import_smithy_client28._json
      });
    }, "de_BuildSummary");
    var de_CodeCoverage = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        branchCoveragePercentage: import_smithy_client28.limitedParseDouble,
        branchesCovered: import_smithy_client28.expectInt32,
        branchesMissed: import_smithy_client28.expectInt32,
        expired: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "expired"),
        filePath: import_smithy_client28.expectString,
        id: import_smithy_client28.expectString,
        lineCoveragePercentage: import_smithy_client28.limitedParseDouble,
        linesCovered: import_smithy_client28.expectInt32,
        linesMissed: import_smithy_client28.expectInt32,
        reportARN: import_smithy_client28.expectString
      });
    }, "de_CodeCoverage");
    var de_CodeCoverageReportSummary = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        branchCoveragePercentage: import_smithy_client28.limitedParseDouble,
        branchesCovered: import_smithy_client28.expectInt32,
        branchesMissed: import_smithy_client28.expectInt32,
        lineCoveragePercentage: import_smithy_client28.limitedParseDouble,
        linesCovered: import_smithy_client28.expectInt32,
        linesMissed: import_smithy_client28.expectInt32
      });
    }, "de_CodeCoverageReportSummary");
    var de_CodeCoverages = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_CodeCoverage(entry, context);
      });
      return retVal;
    }, "de_CodeCoverages");
    var de_CommandExecution = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        command: import_smithy_client28.expectString,
        endTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "endTime"),
        exitCode: import_smithy_client28.expectString,
        id: import_smithy_client28.expectString,
        logs: import_smithy_client28._json,
        sandboxArn: import_smithy_client28.expectString,
        sandboxId: import_smithy_client28.expectString,
        standardErrContent: import_smithy_client28.expectString,
        standardOutputContent: import_smithy_client28.expectString,
        startTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "startTime"),
        status: import_smithy_client28.expectString,
        submitTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "submitTime"),
        type: import_smithy_client28.expectString
      });
    }, "de_CommandExecution");
    var de_CommandExecutions = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_CommandExecution(entry, context);
      });
      return retVal;
    }, "de_CommandExecutions");
    var de_CreateFleetOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        fleet: /* @__PURE__ */ __name2((_3) => de_Fleet(_3, context), "fleet")
      });
    }, "de_CreateFleetOutput");
    var de_CreateProjectOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        project: /* @__PURE__ */ __name2((_3) => de_Project(_3, context), "project")
      });
    }, "de_CreateProjectOutput");
    var de_CreateReportGroupOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        reportGroup: /* @__PURE__ */ __name2((_3) => de_ReportGroup(_3, context), "reportGroup")
      });
    }, "de_CreateReportGroupOutput");
    var de_CreateWebhookOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        webhook: /* @__PURE__ */ __name2((_3) => de_Webhook(_3, context), "webhook")
      });
    }, "de_CreateWebhookOutput");
    var de_DescribeCodeCoveragesOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        codeCoverages: /* @__PURE__ */ __name2((_3) => de_CodeCoverages(_3, context), "codeCoverages"),
        nextToken: import_smithy_client28.expectString
      });
    }, "de_DescribeCodeCoveragesOutput");
    var de_DescribeTestCasesOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        nextToken: import_smithy_client28.expectString,
        testCases: /* @__PURE__ */ __name2((_3) => de_TestCases(_3, context), "testCases")
      });
    }, "de_DescribeTestCasesOutput");
    var de_Fleet = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        arn: import_smithy_client28.expectString,
        baseCapacity: import_smithy_client28.expectInt32,
        computeConfiguration: import_smithy_client28._json,
        computeType: import_smithy_client28.expectString,
        created: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "created"),
        environmentType: import_smithy_client28.expectString,
        fleetServiceRole: import_smithy_client28.expectString,
        id: import_smithy_client28.expectString,
        imageId: import_smithy_client28.expectString,
        lastModified: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "lastModified"),
        name: import_smithy_client28.expectString,
        overflowBehavior: import_smithy_client28.expectString,
        proxyConfiguration: import_smithy_client28._json,
        scalingConfiguration: /* @__PURE__ */ __name2((_3) => de_ScalingConfigurationOutput(_3, context), "scalingConfiguration"),
        status: import_smithy_client28._json,
        tags: import_smithy_client28._json,
        vpcConfig: import_smithy_client28._json
      });
    }, "de_Fleet");
    var de_Fleets = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Fleet(entry, context);
      });
      return retVal;
    }, "de_Fleets");
    var de_ListCommandExecutionsForSandboxOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        commandExecutions: /* @__PURE__ */ __name2((_3) => de_CommandExecutions(_3, context), "commandExecutions"),
        nextToken: import_smithy_client28.expectString
      });
    }, "de_ListCommandExecutionsForSandboxOutput");
    var de_Project = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        arn: import_smithy_client28.expectString,
        artifacts: import_smithy_client28._json,
        autoRetryLimit: import_smithy_client28.expectInt32,
        badge: import_smithy_client28._json,
        buildBatchConfig: import_smithy_client28._json,
        cache: import_smithy_client28._json,
        concurrentBuildLimit: import_smithy_client28.expectInt32,
        created: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "created"),
        description: import_smithy_client28.expectString,
        encryptionKey: import_smithy_client28.expectString,
        environment: import_smithy_client28._json,
        fileSystemLocations: import_smithy_client28._json,
        lastModified: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "lastModified"),
        logsConfig: import_smithy_client28._json,
        name: import_smithy_client28.expectString,
        projectVisibility: import_smithy_client28.expectString,
        publicProjectAlias: import_smithy_client28.expectString,
        queuedTimeoutInMinutes: import_smithy_client28.expectInt32,
        resourceAccessRole: import_smithy_client28.expectString,
        secondaryArtifacts: import_smithy_client28._json,
        secondarySourceVersions: import_smithy_client28._json,
        secondarySources: import_smithy_client28._json,
        serviceRole: import_smithy_client28.expectString,
        source: import_smithy_client28._json,
        sourceVersion: import_smithy_client28.expectString,
        tags: import_smithy_client28._json,
        timeoutInMinutes: import_smithy_client28.expectInt32,
        vpcConfig: import_smithy_client28._json,
        webhook: /* @__PURE__ */ __name2((_3) => de_Webhook(_3, context), "webhook")
      });
    }, "de_Project");
    var de_Projects = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Project(entry, context);
      });
      return retVal;
    }, "de_Projects");
    var de_Report = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        arn: import_smithy_client28.expectString,
        codeCoverageSummary: /* @__PURE__ */ __name2((_3) => de_CodeCoverageReportSummary(_3, context), "codeCoverageSummary"),
        created: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "created"),
        executionId: import_smithy_client28.expectString,
        expired: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "expired"),
        exportConfig: import_smithy_client28._json,
        name: import_smithy_client28.expectString,
        reportGroupArn: import_smithy_client28.expectString,
        status: import_smithy_client28.expectString,
        testSummary: import_smithy_client28._json,
        truncated: import_smithy_client28.expectBoolean,
        type: import_smithy_client28.expectString
      });
    }, "de_Report");
    var de_ReportGroup = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        arn: import_smithy_client28.expectString,
        created: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "created"),
        exportConfig: import_smithy_client28._json,
        lastModified: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "lastModified"),
        name: import_smithy_client28.expectString,
        status: import_smithy_client28.expectString,
        tags: import_smithy_client28._json,
        type: import_smithy_client28.expectString
      });
    }, "de_ReportGroup");
    var de_ReportGroups = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ReportGroup(entry, context);
      });
      return retVal;
    }, "de_ReportGroups");
    var de_Reports = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Report(entry, context);
      });
      return retVal;
    }, "de_Reports");
    var de_RetryBuildBatchOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        buildBatch: /* @__PURE__ */ __name2((_3) => de_BuildBatch(_3, context), "buildBatch")
      });
    }, "de_RetryBuildBatchOutput");
    var de_RetryBuildOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        build: /* @__PURE__ */ __name2((_3) => de_Build(_3, context), "build")
      });
    }, "de_RetryBuildOutput");
    var de_Sandbox = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        arn: import_smithy_client28.expectString,
        currentSession: /* @__PURE__ */ __name2((_3) => de_SandboxSession(_3, context), "currentSession"),
        encryptionKey: import_smithy_client28.expectString,
        endTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "endTime"),
        environment: import_smithy_client28._json,
        fileSystemLocations: import_smithy_client28._json,
        id: import_smithy_client28.expectString,
        logConfig: import_smithy_client28._json,
        projectName: import_smithy_client28.expectString,
        queuedTimeoutInMinutes: import_smithy_client28.expectInt32,
        requestTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "requestTime"),
        secondarySourceVersions: import_smithy_client28._json,
        secondarySources: import_smithy_client28._json,
        serviceRole: import_smithy_client28.expectString,
        source: import_smithy_client28._json,
        sourceVersion: import_smithy_client28.expectString,
        startTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "startTime"),
        status: import_smithy_client28.expectString,
        timeoutInMinutes: import_smithy_client28.expectInt32,
        vpcConfig: import_smithy_client28._json
      });
    }, "de_Sandbox");
    var de_Sandboxes = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Sandbox(entry, context);
      });
      return retVal;
    }, "de_Sandboxes");
    var de_SandboxSession = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        currentPhase: import_smithy_client28.expectString,
        endTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "endTime"),
        id: import_smithy_client28.expectString,
        logs: import_smithy_client28._json,
        networkInterface: import_smithy_client28._json,
        phases: /* @__PURE__ */ __name2((_3) => de_SandboxSessionPhases(_3, context), "phases"),
        resolvedSourceVersion: import_smithy_client28.expectString,
        startTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "startTime"),
        status: import_smithy_client28.expectString
      });
    }, "de_SandboxSession");
    var de_SandboxSessionPhase = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        contexts: import_smithy_client28._json,
        durationInSeconds: import_smithy_client28.expectLong,
        endTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "endTime"),
        phaseStatus: import_smithy_client28.expectString,
        phaseType: import_smithy_client28.expectString,
        startTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "startTime")
      });
    }, "de_SandboxSessionPhase");
    var de_SandboxSessionPhases = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_SandboxSessionPhase(entry, context);
      });
      return retVal;
    }, "de_SandboxSessionPhases");
    var de_ScalingConfigurationOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        desiredCapacity: import_smithy_client28.expectInt32,
        maxCapacity: import_smithy_client28.expectInt32,
        scalingType: import_smithy_client28.expectString,
        targetTrackingScalingConfigs: /* @__PURE__ */ __name2((_3) => de_TargetTrackingScalingConfigurations(_3, context), "targetTrackingScalingConfigs")
      });
    }, "de_ScalingConfigurationOutput");
    var de_StartBuildBatchOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        buildBatch: /* @__PURE__ */ __name2((_3) => de_BuildBatch(_3, context), "buildBatch")
      });
    }, "de_StartBuildBatchOutput");
    var de_StartBuildOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        build: /* @__PURE__ */ __name2((_3) => de_Build(_3, context), "build")
      });
    }, "de_StartBuildOutput");
    var de_StartCommandExecutionOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        commandExecution: /* @__PURE__ */ __name2((_3) => de_CommandExecution(_3, context), "commandExecution")
      });
    }, "de_StartCommandExecutionOutput");
    var de_StartSandboxOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        sandbox: /* @__PURE__ */ __name2((_3) => de_Sandbox(_3, context), "sandbox")
      });
    }, "de_StartSandboxOutput");
    var de_StopBuildBatchOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        buildBatch: /* @__PURE__ */ __name2((_3) => de_BuildBatch(_3, context), "buildBatch")
      });
    }, "de_StopBuildBatchOutput");
    var de_StopBuildOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        build: /* @__PURE__ */ __name2((_3) => de_Build(_3, context), "build")
      });
    }, "de_StopBuildOutput");
    var de_StopSandboxOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        sandbox: /* @__PURE__ */ __name2((_3) => de_Sandbox(_3, context), "sandbox")
      });
    }, "de_StopSandboxOutput");
    var de_TargetTrackingScalingConfiguration = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        metricType: import_smithy_client28.expectString,
        targetValue: import_smithy_client28.limitedParseDouble
      });
    }, "de_TargetTrackingScalingConfiguration");
    var de_TargetTrackingScalingConfigurations = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TargetTrackingScalingConfiguration(entry, context);
      });
      return retVal;
    }, "de_TargetTrackingScalingConfigurations");
    var de_TestCase = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        durationInNanoSeconds: import_smithy_client28.expectLong,
        expired: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "expired"),
        message: import_smithy_client28.expectString,
        name: import_smithy_client28.expectString,
        prefix: import_smithy_client28.expectString,
        reportArn: import_smithy_client28.expectString,
        status: import_smithy_client28.expectString,
        testRawDataPath: import_smithy_client28.expectString,
        testSuiteName: import_smithy_client28.expectString
      });
    }, "de_TestCase");
    var de_TestCases = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TestCase(entry, context);
      });
      return retVal;
    }, "de_TestCases");
    var de_UpdateFleetOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        fleet: /* @__PURE__ */ __name2((_3) => de_Fleet(_3, context), "fleet")
      });
    }, "de_UpdateFleetOutput");
    var de_UpdateProjectOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        project: /* @__PURE__ */ __name2((_3) => de_Project(_3, context), "project")
      });
    }, "de_UpdateProjectOutput");
    var de_UpdateReportGroupOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        reportGroup: /* @__PURE__ */ __name2((_3) => de_ReportGroup(_3, context), "reportGroup")
      });
    }, "de_UpdateReportGroupOutput");
    var de_UpdateWebhookOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        webhook: /* @__PURE__ */ __name2((_3) => de_Webhook(_3, context), "webhook")
      });
    }, "de_UpdateWebhookOutput");
    var de_Webhook = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        branchFilter: import_smithy_client28.expectString,
        buildType: import_smithy_client28.expectString,
        filterGroups: import_smithy_client28._json,
        lastModifiedSecret: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "lastModifiedSecret"),
        manualCreation: import_smithy_client28.expectBoolean,
        payloadUrl: import_smithy_client28.expectString,
        pullRequestBuildPolicy: import_smithy_client28._json,
        scopeConfiguration: import_smithy_client28._json,
        secret: import_smithy_client28.expectString,
        status: import_smithy_client28.expectString,
        statusMessage: import_smithy_client28.expectString,
        url: import_smithy_client28.expectString
      });
    }, "de_Webhook");
    var deserializeMetadata3 = /* @__PURE__ */ __name2((output) => ({
      httpStatusCode: output.statusCode,
      requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
      extendedRequestId: output.headers["x-amz-id-2"],
      cfId: output.headers["x-amz-cf-id"]
    }), "deserializeMetadata");
    var throwDefaultError3 = (0, import_smithy_client28.withBaseException)(CodeBuildServiceException);
    var buildHttpRpcRequest2 = /* @__PURE__ */ __name2(async (context, headers, path38, resolvedHostname, body) => {
      const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
      const contents = {
        protocol,
        hostname,
        port,
        method: "POST",
        path: basePath.endsWith("/") ? basePath.slice(0, -1) + path38 : basePath + path38,
        headers
      };
      if (resolvedHostname !== void 0) {
        contents.hostname = resolvedHostname;
      }
      if (body !== void 0) {
        contents.body = body;
      }
      return new import_protocol_http16.HttpRequest(contents);
    }, "buildHttpRpcRequest");
    function sharedHeaders(operation) {
      return {
        "content-type": "application/x-amz-json-1.1",
        "x-amz-target": `CodeBuild_20161006.${operation}`
      };
    }
    __name(sharedHeaders, "sharedHeaders");
    __name2(sharedHeaders, "sharedHeaders");
    var BatchDeleteBuildsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "BatchDeleteBuilds", {}).n("CodeBuildClient", "BatchDeleteBuildsCommand").f(void 0, void 0).ser(se_BatchDeleteBuildsCommand).de(de_BatchDeleteBuildsCommand).build() {
      static {
        __name(this, "BatchDeleteBuildsCommand");
      }
      static {
        __name2(this, "BatchDeleteBuildsCommand");
      }
    };
    var BatchGetBuildBatchesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "BatchGetBuildBatches", {}).n("CodeBuildClient", "BatchGetBuildBatchesCommand").f(void 0, void 0).ser(se_BatchGetBuildBatchesCommand).de(de_BatchGetBuildBatchesCommand).build() {
      static {
        __name(this, "BatchGetBuildBatchesCommand");
      }
      static {
        __name2(this, "BatchGetBuildBatchesCommand");
      }
    };
    var BatchGetBuildsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "BatchGetBuilds", {}).n("CodeBuildClient", "BatchGetBuildsCommand").f(void 0, void 0).ser(se_BatchGetBuildsCommand).de(de_BatchGetBuildsCommand).build() {
      static {
        __name(this, "BatchGetBuildsCommand");
      }
      static {
        __name2(this, "BatchGetBuildsCommand");
      }
    };
    var BatchGetCommandExecutionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "BatchGetCommandExecutions", {}).n("CodeBuildClient", "BatchGetCommandExecutionsCommand").f(void 0, BatchGetCommandExecutionsOutputFilterSensitiveLog).ser(se_BatchGetCommandExecutionsCommand).de(de_BatchGetCommandExecutionsCommand).build() {
      static {
        __name(this, "BatchGetCommandExecutionsCommand");
      }
      static {
        __name2(this, "BatchGetCommandExecutionsCommand");
      }
    };
    var BatchGetFleetsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "BatchGetFleets", {}).n("CodeBuildClient", "BatchGetFleetsCommand").f(void 0, void 0).ser(se_BatchGetFleetsCommand).de(de_BatchGetFleetsCommand).build() {
      static {
        __name(this, "BatchGetFleetsCommand");
      }
      static {
        __name2(this, "BatchGetFleetsCommand");
      }
    };
    var BatchGetProjectsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "BatchGetProjects", {}).n("CodeBuildClient", "BatchGetProjectsCommand").f(void 0, void 0).ser(se_BatchGetProjectsCommand).de(de_BatchGetProjectsCommand).build() {
      static {
        __name(this, "BatchGetProjectsCommand");
      }
      static {
        __name2(this, "BatchGetProjectsCommand");
      }
    };
    var BatchGetReportGroupsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "BatchGetReportGroups", {}).n("CodeBuildClient", "BatchGetReportGroupsCommand").f(void 0, void 0).ser(se_BatchGetReportGroupsCommand).de(de_BatchGetReportGroupsCommand).build() {
      static {
        __name(this, "BatchGetReportGroupsCommand");
      }
      static {
        __name2(this, "BatchGetReportGroupsCommand");
      }
    };
    var BatchGetReportsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "BatchGetReports", {}).n("CodeBuildClient", "BatchGetReportsCommand").f(void 0, void 0).ser(se_BatchGetReportsCommand).de(de_BatchGetReportsCommand).build() {
      static {
        __name(this, "BatchGetReportsCommand");
      }
      static {
        __name2(this, "BatchGetReportsCommand");
      }
    };
    var BatchGetSandboxesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "BatchGetSandboxes", {}).n("CodeBuildClient", "BatchGetSandboxesCommand").f(void 0, void 0).ser(se_BatchGetSandboxesCommand).de(de_BatchGetSandboxesCommand).build() {
      static {
        __name(this, "BatchGetSandboxesCommand");
      }
      static {
        __name2(this, "BatchGetSandboxesCommand");
      }
    };
    var CreateFleetCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "CreateFleet", {}).n("CodeBuildClient", "CreateFleetCommand").f(void 0, void 0).ser(se_CreateFleetCommand).de(de_CreateFleetCommand).build() {
      static {
        __name(this, "CreateFleetCommand");
      }
      static {
        __name2(this, "CreateFleetCommand");
      }
    };
    var CreateProjectCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "CreateProject", {}).n("CodeBuildClient", "CreateProjectCommand").f(void 0, void 0).ser(se_CreateProjectCommand).de(de_CreateProjectCommand).build() {
      static {
        __name(this, "CreateProjectCommand");
      }
      static {
        __name2(this, "CreateProjectCommand");
      }
    };
    var CreateReportGroupCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "CreateReportGroup", {}).n("CodeBuildClient", "CreateReportGroupCommand").f(void 0, void 0).ser(se_CreateReportGroupCommand).de(de_CreateReportGroupCommand).build() {
      static {
        __name(this, "CreateReportGroupCommand");
      }
      static {
        __name2(this, "CreateReportGroupCommand");
      }
    };
    var CreateWebhookCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "CreateWebhook", {}).n("CodeBuildClient", "CreateWebhookCommand").f(void 0, void 0).ser(se_CreateWebhookCommand).de(de_CreateWebhookCommand).build() {
      static {
        __name(this, "CreateWebhookCommand");
      }
      static {
        __name2(this, "CreateWebhookCommand");
      }
    };
    var DeleteBuildBatchCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "DeleteBuildBatch", {}).n("CodeBuildClient", "DeleteBuildBatchCommand").f(void 0, void 0).ser(se_DeleteBuildBatchCommand).de(de_DeleteBuildBatchCommand).build() {
      static {
        __name(this, "DeleteBuildBatchCommand");
      }
      static {
        __name2(this, "DeleteBuildBatchCommand");
      }
    };
    var DeleteFleetCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "DeleteFleet", {}).n("CodeBuildClient", "DeleteFleetCommand").f(void 0, void 0).ser(se_DeleteFleetCommand).de(de_DeleteFleetCommand).build() {
      static {
        __name(this, "DeleteFleetCommand");
      }
      static {
        __name2(this, "DeleteFleetCommand");
      }
    };
    var DeleteProjectCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "DeleteProject", {}).n("CodeBuildClient", "DeleteProjectCommand").f(void 0, void 0).ser(se_DeleteProjectCommand).de(de_DeleteProjectCommand).build() {
      static {
        __name(this, "DeleteProjectCommand");
      }
      static {
        __name2(this, "DeleteProjectCommand");
      }
    };
    var DeleteReportCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "DeleteReport", {}).n("CodeBuildClient", "DeleteReportCommand").f(void 0, void 0).ser(se_DeleteReportCommand).de(de_DeleteReportCommand).build() {
      static {
        __name(this, "DeleteReportCommand");
      }
      static {
        __name2(this, "DeleteReportCommand");
      }
    };
    var DeleteReportGroupCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "DeleteReportGroup", {}).n("CodeBuildClient", "DeleteReportGroupCommand").f(void 0, void 0).ser(se_DeleteReportGroupCommand).de(de_DeleteReportGroupCommand).build() {
      static {
        __name(this, "DeleteReportGroupCommand");
      }
      static {
        __name2(this, "DeleteReportGroupCommand");
      }
    };
    var DeleteResourcePolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "DeleteResourcePolicy", {}).n("CodeBuildClient", "DeleteResourcePolicyCommand").f(void 0, void 0).ser(se_DeleteResourcePolicyCommand).de(de_DeleteResourcePolicyCommand).build() {
      static {
        __name(this, "DeleteResourcePolicyCommand");
      }
      static {
        __name2(this, "DeleteResourcePolicyCommand");
      }
    };
    var DeleteSourceCredentialsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "DeleteSourceCredentials", {}).n("CodeBuildClient", "DeleteSourceCredentialsCommand").f(void 0, void 0).ser(se_DeleteSourceCredentialsCommand).de(de_DeleteSourceCredentialsCommand).build() {
      static {
        __name(this, "DeleteSourceCredentialsCommand");
      }
      static {
        __name2(this, "DeleteSourceCredentialsCommand");
      }
    };
    var DeleteWebhookCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "DeleteWebhook", {}).n("CodeBuildClient", "DeleteWebhookCommand").f(void 0, void 0).ser(se_DeleteWebhookCommand).de(de_DeleteWebhookCommand).build() {
      static {
        __name(this, "DeleteWebhookCommand");
      }
      static {
        __name2(this, "DeleteWebhookCommand");
      }
    };
    var DescribeCodeCoveragesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "DescribeCodeCoverages", {}).n("CodeBuildClient", "DescribeCodeCoveragesCommand").f(void 0, void 0).ser(se_DescribeCodeCoveragesCommand).de(de_DescribeCodeCoveragesCommand).build() {
      static {
        __name(this, "DescribeCodeCoveragesCommand");
      }
      static {
        __name2(this, "DescribeCodeCoveragesCommand");
      }
    };
    var DescribeTestCasesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "DescribeTestCases", {}).n("CodeBuildClient", "DescribeTestCasesCommand").f(void 0, void 0).ser(se_DescribeTestCasesCommand).de(de_DescribeTestCasesCommand).build() {
      static {
        __name(this, "DescribeTestCasesCommand");
      }
      static {
        __name2(this, "DescribeTestCasesCommand");
      }
    };
    var GetReportGroupTrendCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "GetReportGroupTrend", {}).n("CodeBuildClient", "GetReportGroupTrendCommand").f(void 0, void 0).ser(se_GetReportGroupTrendCommand).de(de_GetReportGroupTrendCommand).build() {
      static {
        __name(this, "GetReportGroupTrendCommand");
      }
      static {
        __name2(this, "GetReportGroupTrendCommand");
      }
    };
    var GetResourcePolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "GetResourcePolicy", {}).n("CodeBuildClient", "GetResourcePolicyCommand").f(void 0, void 0).ser(se_GetResourcePolicyCommand).de(de_GetResourcePolicyCommand).build() {
      static {
        __name(this, "GetResourcePolicyCommand");
      }
      static {
        __name2(this, "GetResourcePolicyCommand");
      }
    };
    var ImportSourceCredentialsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "ImportSourceCredentials", {}).n("CodeBuildClient", "ImportSourceCredentialsCommand").f(ImportSourceCredentialsInputFilterSensitiveLog, void 0).ser(se_ImportSourceCredentialsCommand).de(de_ImportSourceCredentialsCommand).build() {
      static {
        __name(this, "ImportSourceCredentialsCommand");
      }
      static {
        __name2(this, "ImportSourceCredentialsCommand");
      }
    };
    var InvalidateProjectCacheCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "InvalidateProjectCache", {}).n("CodeBuildClient", "InvalidateProjectCacheCommand").f(void 0, void 0).ser(se_InvalidateProjectCacheCommand).de(de_InvalidateProjectCacheCommand).build() {
      static {
        __name(this, "InvalidateProjectCacheCommand");
      }
      static {
        __name2(this, "InvalidateProjectCacheCommand");
      }
    };
    var ListBuildBatchesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "ListBuildBatches", {}).n("CodeBuildClient", "ListBuildBatchesCommand").f(void 0, void 0).ser(se_ListBuildBatchesCommand).de(de_ListBuildBatchesCommand).build() {
      static {
        __name(this, "ListBuildBatchesCommand");
      }
      static {
        __name2(this, "ListBuildBatchesCommand");
      }
    };
    var ListBuildBatchesForProjectCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "ListBuildBatchesForProject", {}).n("CodeBuildClient", "ListBuildBatchesForProjectCommand").f(void 0, void 0).ser(se_ListBuildBatchesForProjectCommand).de(de_ListBuildBatchesForProjectCommand).build() {
      static {
        __name(this, "ListBuildBatchesForProjectCommand");
      }
      static {
        __name2(this, "ListBuildBatchesForProjectCommand");
      }
    };
    var ListBuildsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "ListBuilds", {}).n("CodeBuildClient", "ListBuildsCommand").f(void 0, void 0).ser(se_ListBuildsCommand).de(de_ListBuildsCommand).build() {
      static {
        __name(this, "ListBuildsCommand");
      }
      static {
        __name2(this, "ListBuildsCommand");
      }
    };
    var ListBuildsForProjectCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "ListBuildsForProject", {}).n("CodeBuildClient", "ListBuildsForProjectCommand").f(void 0, void 0).ser(se_ListBuildsForProjectCommand).de(de_ListBuildsForProjectCommand).build() {
      static {
        __name(this, "ListBuildsForProjectCommand");
      }
      static {
        __name2(this, "ListBuildsForProjectCommand");
      }
    };
    var ListCommandExecutionsForSandboxCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "ListCommandExecutionsForSandbox", {}).n("CodeBuildClient", "ListCommandExecutionsForSandboxCommand").f(ListCommandExecutionsForSandboxInputFilterSensitiveLog, ListCommandExecutionsForSandboxOutputFilterSensitiveLog).ser(se_ListCommandExecutionsForSandboxCommand).de(de_ListCommandExecutionsForSandboxCommand).build() {
      static {
        __name(this, "ListCommandExecutionsForSandboxCommand");
      }
      static {
        __name2(this, "ListCommandExecutionsForSandboxCommand");
      }
    };
    var ListCuratedEnvironmentImagesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "ListCuratedEnvironmentImages", {}).n("CodeBuildClient", "ListCuratedEnvironmentImagesCommand").f(void 0, void 0).ser(se_ListCuratedEnvironmentImagesCommand).de(de_ListCuratedEnvironmentImagesCommand).build() {
      static {
        __name(this, "ListCuratedEnvironmentImagesCommand");
      }
      static {
        __name2(this, "ListCuratedEnvironmentImagesCommand");
      }
    };
    var ListFleetsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "ListFleets", {}).n("CodeBuildClient", "ListFleetsCommand").f(ListFleetsInputFilterSensitiveLog, void 0).ser(se_ListFleetsCommand).de(de_ListFleetsCommand).build() {
      static {
        __name(this, "ListFleetsCommand");
      }
      static {
        __name2(this, "ListFleetsCommand");
      }
    };
    var ListProjectsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "ListProjects", {}).n("CodeBuildClient", "ListProjectsCommand").f(void 0, void 0).ser(se_ListProjectsCommand).de(de_ListProjectsCommand).build() {
      static {
        __name(this, "ListProjectsCommand");
      }
      static {
        __name2(this, "ListProjectsCommand");
      }
    };
    var ListReportGroupsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "ListReportGroups", {}).n("CodeBuildClient", "ListReportGroupsCommand").f(void 0, void 0).ser(se_ListReportGroupsCommand).de(de_ListReportGroupsCommand).build() {
      static {
        __name(this, "ListReportGroupsCommand");
      }
      static {
        __name2(this, "ListReportGroupsCommand");
      }
    };
    var ListReportsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "ListReports", {}).n("CodeBuildClient", "ListReportsCommand").f(void 0, void 0).ser(se_ListReportsCommand).de(de_ListReportsCommand).build() {
      static {
        __name(this, "ListReportsCommand");
      }
      static {
        __name2(this, "ListReportsCommand");
      }
    };
    var ListReportsForReportGroupCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "ListReportsForReportGroup", {}).n("CodeBuildClient", "ListReportsForReportGroupCommand").f(void 0, void 0).ser(se_ListReportsForReportGroupCommand).de(de_ListReportsForReportGroupCommand).build() {
      static {
        __name(this, "ListReportsForReportGroupCommand");
      }
      static {
        __name2(this, "ListReportsForReportGroupCommand");
      }
    };
    var ListSandboxesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "ListSandboxes", {}).n("CodeBuildClient", "ListSandboxesCommand").f(void 0, void 0).ser(se_ListSandboxesCommand).de(de_ListSandboxesCommand).build() {
      static {
        __name(this, "ListSandboxesCommand");
      }
      static {
        __name2(this, "ListSandboxesCommand");
      }
    };
    var ListSandboxesForProjectCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "ListSandboxesForProject", {}).n("CodeBuildClient", "ListSandboxesForProjectCommand").f(ListSandboxesForProjectInputFilterSensitiveLog, void 0).ser(se_ListSandboxesForProjectCommand).de(de_ListSandboxesForProjectCommand).build() {
      static {
        __name(this, "ListSandboxesForProjectCommand");
      }
      static {
        __name2(this, "ListSandboxesForProjectCommand");
      }
    };
    var ListSharedProjectsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "ListSharedProjects", {}).n("CodeBuildClient", "ListSharedProjectsCommand").f(void 0, void 0).ser(se_ListSharedProjectsCommand).de(de_ListSharedProjectsCommand).build() {
      static {
        __name(this, "ListSharedProjectsCommand");
      }
      static {
        __name2(this, "ListSharedProjectsCommand");
      }
    };
    var ListSharedReportGroupsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "ListSharedReportGroups", {}).n("CodeBuildClient", "ListSharedReportGroupsCommand").f(void 0, void 0).ser(se_ListSharedReportGroupsCommand).de(de_ListSharedReportGroupsCommand).build() {
      static {
        __name(this, "ListSharedReportGroupsCommand");
      }
      static {
        __name2(this, "ListSharedReportGroupsCommand");
      }
    };
    var ListSourceCredentialsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "ListSourceCredentials", {}).n("CodeBuildClient", "ListSourceCredentialsCommand").f(void 0, void 0).ser(se_ListSourceCredentialsCommand).de(de_ListSourceCredentialsCommand).build() {
      static {
        __name(this, "ListSourceCredentialsCommand");
      }
      static {
        __name2(this, "ListSourceCredentialsCommand");
      }
    };
    var PutResourcePolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "PutResourcePolicy", {}).n("CodeBuildClient", "PutResourcePolicyCommand").f(void 0, void 0).ser(se_PutResourcePolicyCommand).de(de_PutResourcePolicyCommand).build() {
      static {
        __name(this, "PutResourcePolicyCommand");
      }
      static {
        __name2(this, "PutResourcePolicyCommand");
      }
    };
    var RetryBuildBatchCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "RetryBuildBatch", {}).n("CodeBuildClient", "RetryBuildBatchCommand").f(void 0, void 0).ser(se_RetryBuildBatchCommand).de(de_RetryBuildBatchCommand).build() {
      static {
        __name(this, "RetryBuildBatchCommand");
      }
      static {
        __name2(this, "RetryBuildBatchCommand");
      }
    };
    var RetryBuildCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "RetryBuild", {}).n("CodeBuildClient", "RetryBuildCommand").f(void 0, void 0).ser(se_RetryBuildCommand).de(de_RetryBuildCommand).build() {
      static {
        __name(this, "RetryBuildCommand");
      }
      static {
        __name2(this, "RetryBuildCommand");
      }
    };
    var StartBuildBatchCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "StartBuildBatch", {}).n("CodeBuildClient", "StartBuildBatchCommand").f(void 0, void 0).ser(se_StartBuildBatchCommand).de(de_StartBuildBatchCommand).build() {
      static {
        __name(this, "StartBuildBatchCommand");
      }
      static {
        __name2(this, "StartBuildBatchCommand");
      }
    };
    var StartBuildCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "StartBuild", {}).n("CodeBuildClient", "StartBuildCommand").f(void 0, void 0).ser(se_StartBuildCommand).de(de_StartBuildCommand).build() {
      static {
        __name(this, "StartBuildCommand");
      }
      static {
        __name2(this, "StartBuildCommand");
      }
    };
    var StartCommandExecutionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "StartCommandExecution", {}).n("CodeBuildClient", "StartCommandExecutionCommand").f(StartCommandExecutionInputFilterSensitiveLog, StartCommandExecutionOutputFilterSensitiveLog).ser(se_StartCommandExecutionCommand).de(de_StartCommandExecutionCommand).build() {
      static {
        __name(this, "StartCommandExecutionCommand");
      }
      static {
        __name2(this, "StartCommandExecutionCommand");
      }
    };
    var StartSandboxCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "StartSandbox", {}).n("CodeBuildClient", "StartSandboxCommand").f(StartSandboxInputFilterSensitiveLog, void 0).ser(se_StartSandboxCommand).de(de_StartSandboxCommand).build() {
      static {
        __name(this, "StartSandboxCommand");
      }
      static {
        __name2(this, "StartSandboxCommand");
      }
    };
    var StartSandboxConnectionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "StartSandboxConnection", {}).n("CodeBuildClient", "StartSandboxConnectionCommand").f(void 0, void 0).ser(se_StartSandboxConnectionCommand).de(de_StartSandboxConnectionCommand).build() {
      static {
        __name(this, "StartSandboxConnectionCommand");
      }
      static {
        __name2(this, "StartSandboxConnectionCommand");
      }
    };
    var StopBuildBatchCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "StopBuildBatch", {}).n("CodeBuildClient", "StopBuildBatchCommand").f(void 0, void 0).ser(se_StopBuildBatchCommand).de(de_StopBuildBatchCommand).build() {
      static {
        __name(this, "StopBuildBatchCommand");
      }
      static {
        __name2(this, "StopBuildBatchCommand");
      }
    };
    var StopBuildCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "StopBuild", {}).n("CodeBuildClient", "StopBuildCommand").f(void 0, void 0).ser(se_StopBuildCommand).de(de_StopBuildCommand).build() {
      static {
        __name(this, "StopBuildCommand");
      }
      static {
        __name2(this, "StopBuildCommand");
      }
    };
    var StopSandboxCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "StopSandbox", {}).n("CodeBuildClient", "StopSandboxCommand").f(void 0, void 0).ser(se_StopSandboxCommand).de(de_StopSandboxCommand).build() {
      static {
        __name(this, "StopSandboxCommand");
      }
      static {
        __name2(this, "StopSandboxCommand");
      }
    };
    var UpdateFleetCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "UpdateFleet", {}).n("CodeBuildClient", "UpdateFleetCommand").f(void 0, void 0).ser(se_UpdateFleetCommand).de(de_UpdateFleetCommand).build() {
      static {
        __name(this, "UpdateFleetCommand");
      }
      static {
        __name2(this, "UpdateFleetCommand");
      }
    };
    var UpdateProjectCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "UpdateProject", {}).n("CodeBuildClient", "UpdateProjectCommand").f(void 0, void 0).ser(se_UpdateProjectCommand).de(de_UpdateProjectCommand).build() {
      static {
        __name(this, "UpdateProjectCommand");
      }
      static {
        __name2(this, "UpdateProjectCommand");
      }
    };
    var UpdateProjectVisibilityCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "UpdateProjectVisibility", {}).n("CodeBuildClient", "UpdateProjectVisibilityCommand").f(void 0, void 0).ser(se_UpdateProjectVisibilityCommand).de(de_UpdateProjectVisibilityCommand).build() {
      static {
        __name(this, "UpdateProjectVisibilityCommand");
      }
      static {
        __name2(this, "UpdateProjectVisibilityCommand");
      }
    };
    var UpdateReportGroupCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "UpdateReportGroup", {}).n("CodeBuildClient", "UpdateReportGroupCommand").f(void 0, void 0).ser(se_UpdateReportGroupCommand).de(de_UpdateReportGroupCommand).build() {
      static {
        __name(this, "UpdateReportGroupCommand");
      }
      static {
        __name2(this, "UpdateReportGroupCommand");
      }
    };
    var UpdateWebhookCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("CodeBuild_20161006", "UpdateWebhook", {}).n("CodeBuildClient", "UpdateWebhookCommand").f(void 0, void 0).ser(se_UpdateWebhookCommand).de(de_UpdateWebhookCommand).build() {
      static {
        __name(this, "UpdateWebhookCommand");
      }
      static {
        __name2(this, "UpdateWebhookCommand");
      }
    };
    var commands3 = {
      BatchDeleteBuildsCommand,
      BatchGetBuildBatchesCommand,
      BatchGetBuildsCommand,
      BatchGetCommandExecutionsCommand,
      BatchGetFleetsCommand,
      BatchGetProjectsCommand,
      BatchGetReportGroupsCommand,
      BatchGetReportsCommand,
      BatchGetSandboxesCommand,
      CreateFleetCommand,
      CreateProjectCommand,
      CreateReportGroupCommand,
      CreateWebhookCommand,
      DeleteBuildBatchCommand,
      DeleteFleetCommand,
      DeleteProjectCommand,
      DeleteReportCommand,
      DeleteReportGroupCommand,
      DeleteResourcePolicyCommand,
      DeleteSourceCredentialsCommand,
      DeleteWebhookCommand,
      DescribeCodeCoveragesCommand,
      DescribeTestCasesCommand,
      GetReportGroupTrendCommand,
      GetResourcePolicyCommand,
      ImportSourceCredentialsCommand,
      InvalidateProjectCacheCommand,
      ListBuildBatchesCommand,
      ListBuildBatchesForProjectCommand,
      ListBuildsCommand,
      ListBuildsForProjectCommand,
      ListCommandExecutionsForSandboxCommand,
      ListCuratedEnvironmentImagesCommand,
      ListFleetsCommand,
      ListProjectsCommand,
      ListReportGroupsCommand,
      ListReportsCommand,
      ListReportsForReportGroupCommand,
      ListSandboxesCommand,
      ListSandboxesForProjectCommand,
      ListSharedProjectsCommand,
      ListSharedReportGroupsCommand,
      ListSourceCredentialsCommand,
      PutResourcePolicyCommand,
      RetryBuildCommand,
      RetryBuildBatchCommand,
      StartBuildCommand,
      StartBuildBatchCommand,
      StartCommandExecutionCommand,
      StartSandboxCommand,
      StartSandboxConnectionCommand,
      StopBuildCommand,
      StopBuildBatchCommand,
      StopSandboxCommand,
      UpdateFleetCommand,
      UpdateProjectCommand: UpdateProjectCommand2,
      UpdateProjectVisibilityCommand,
      UpdateReportGroupCommand,
      UpdateWebhookCommand
    };
    var CodeBuild = class extends CodeBuildClient2 {
      static {
        __name(this, "CodeBuild");
      }
      static {
        __name2(this, "CodeBuild");
      }
    };
    (0, import_smithy_client28.createAggregatedClient)(commands3, CodeBuild);
    var paginateDescribeCodeCoverages = (0, import_core17.createPaginator)(CodeBuildClient2, DescribeCodeCoveragesCommand, "nextToken", "nextToken", "maxResults");
    var paginateDescribeTestCases = (0, import_core17.createPaginator)(CodeBuildClient2, DescribeTestCasesCommand, "nextToken", "nextToken", "maxResults");
    var paginateListBuildBatchesForProject = (0, import_core17.createPaginator)(CodeBuildClient2, ListBuildBatchesForProjectCommand, "nextToken", "nextToken", "maxResults");
    var paginateListBuildBatches = (0, import_core17.createPaginator)(CodeBuildClient2, ListBuildBatchesCommand, "nextToken", "nextToken", "maxResults");
    var paginateListBuildsForProject = (0, import_core17.createPaginator)(CodeBuildClient2, ListBuildsForProjectCommand, "nextToken", "nextToken", "");
    var paginateListBuilds = (0, import_core17.createPaginator)(CodeBuildClient2, ListBuildsCommand, "nextToken", "nextToken", "");
    var paginateListCommandExecutionsForSandbox = (0, import_core17.createPaginator)(CodeBuildClient2, ListCommandExecutionsForSandboxCommand, "nextToken", "nextToken", "maxResults");
    var paginateListFleets = (0, import_core17.createPaginator)(CodeBuildClient2, ListFleetsCommand, "nextToken", "nextToken", "maxResults");
    var paginateListProjects = (0, import_core17.createPaginator)(CodeBuildClient2, ListProjectsCommand, "nextToken", "nextToken", "");
    var paginateListReportGroups = (0, import_core17.createPaginator)(CodeBuildClient2, ListReportGroupsCommand, "nextToken", "nextToken", "maxResults");
    var paginateListReportsForReportGroup = (0, import_core17.createPaginator)(CodeBuildClient2, ListReportsForReportGroupCommand, "nextToken", "nextToken", "maxResults");
    var paginateListReports = (0, import_core17.createPaginator)(CodeBuildClient2, ListReportsCommand, "nextToken", "nextToken", "maxResults");
    var paginateListSandboxesForProject = (0, import_core17.createPaginator)(CodeBuildClient2, ListSandboxesForProjectCommand, "nextToken", "nextToken", "maxResults");
    var paginateListSandboxes = (0, import_core17.createPaginator)(CodeBuildClient2, ListSandboxesCommand, "nextToken", "nextToken", "maxResults");
    var paginateListSharedProjects = (0, import_core17.createPaginator)(CodeBuildClient2, ListSharedProjectsCommand, "nextToken", "nextToken", "maxResults");
    var paginateListSharedReportGroups = (0, import_core17.createPaginator)(CodeBuildClient2, ListSharedReportGroupsCommand, "nextToken", "nextToken", "maxResults");
  }
});

// ../../node_modules/@aws-sdk/client-ec2/dist-cjs/auth/httpAuthSchemeProvider.js
var require_httpAuthSchemeProvider12 = __commonJS({
  "../../node_modules/@aws-sdk/client-ec2/dist-cjs/auth/httpAuthSchemeProvider.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.resolveHttpAuthSchemeConfig = exports2.defaultEC2HttpAuthSchemeProvider = exports2.defaultEC2HttpAuthSchemeParametersProvider = void 0;
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var util_middleware_1 = require_dist_cjs6();
    var defaultEC2HttpAuthSchemeParametersProvider = /* @__PURE__ */ __name(async (config, context, input) => {
      return {
        operation: (0, util_middleware_1.getSmithyContext)(context).operation,
        region: await (0, util_middleware_1.normalizeProvider)(config.region)() || (() => {
          throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
        })()
      };
    }, "defaultEC2HttpAuthSchemeParametersProvider");
    exports2.defaultEC2HttpAuthSchemeParametersProvider = defaultEC2HttpAuthSchemeParametersProvider;
    function createAwsAuthSigv4HttpAuthOption3(authParameters) {
      return {
        schemeId: "aws.auth#sigv4",
        signingProperties: {
          name: "ec2",
          region: authParameters.region
        },
        propertiesExtractor: /* @__PURE__ */ __name((config, context) => ({
          signingProperties: {
            config,
            context
          }
        }), "propertiesExtractor")
      };
    }
    __name(createAwsAuthSigv4HttpAuthOption3, "createAwsAuthSigv4HttpAuthOption");
    var defaultEC2HttpAuthSchemeProvider = /* @__PURE__ */ __name((authParameters) => {
      const options = [];
      switch (authParameters.operation) {
        default: {
          options.push(createAwsAuthSigv4HttpAuthOption3(authParameters));
        }
      }
      return options;
    }, "defaultEC2HttpAuthSchemeProvider");
    exports2.defaultEC2HttpAuthSchemeProvider = defaultEC2HttpAuthSchemeProvider;
    var resolveHttpAuthSchemeConfig3 = /* @__PURE__ */ __name((config) => {
      const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
      return Object.assign(config_0, {
        authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? [])
      });
    }, "resolveHttpAuthSchemeConfig");
    exports2.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig3;
  }
});

// ../../node_modules/@aws-sdk/client-ec2/package.json
var require_package12 = __commonJS({
  "../../node_modules/@aws-sdk/client-ec2/package.json"(exports2, module2) {
    module2.exports = {
      name: "@aws-sdk/client-ec2",
      description: "AWS SDK for JavaScript Ec2 Client for Node.js, Browser and React Native",
      version: "3.879.0",
      scripts: {
        build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
        "build:cjs": "node ../../scripts/compilation/inline client-ec2",
        "build:es": "tsc -p tsconfig.es.json",
        "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
        "build:types": "tsc -p tsconfig.types.json",
        "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
        clean: "rimraf ./dist-* && rimraf *.tsbuildinfo",
        "extract:docs": "api-extractor run --local",
        "generate:client": "node ../../scripts/generate-clients/single-service --solo ec2"
      },
      main: "./dist-cjs/index.js",
      types: "./dist-types/index.d.ts",
      module: "./dist-es/index.js",
      sideEffects: false,
      dependencies: {
        "@aws-crypto/sha256-browser": "5.2.0",
        "@aws-crypto/sha256-js": "5.2.0",
        "@aws-sdk/core": "3.879.0",
        "@aws-sdk/credential-provider-node": "3.879.0",
        "@aws-sdk/middleware-host-header": "3.873.0",
        "@aws-sdk/middleware-logger": "3.876.0",
        "@aws-sdk/middleware-recursion-detection": "3.873.0",
        "@aws-sdk/middleware-sdk-ec2": "3.879.0",
        "@aws-sdk/middleware-user-agent": "3.879.0",
        "@aws-sdk/region-config-resolver": "3.873.0",
        "@aws-sdk/types": "3.862.0",
        "@aws-sdk/util-endpoints": "3.879.0",
        "@aws-sdk/util-user-agent-browser": "3.873.0",
        "@aws-sdk/util-user-agent-node": "3.879.0",
        "@smithy/config-resolver": "^4.1.5",
        "@smithy/core": "^3.9.0",
        "@smithy/fetch-http-handler": "^5.1.1",
        "@smithy/hash-node": "^4.0.5",
        "@smithy/invalid-dependency": "^4.0.5",
        "@smithy/middleware-content-length": "^4.0.5",
        "@smithy/middleware-endpoint": "^4.1.19",
        "@smithy/middleware-retry": "^4.1.20",
        "@smithy/middleware-serde": "^4.0.9",
        "@smithy/middleware-stack": "^4.0.5",
        "@smithy/node-config-provider": "^4.1.4",
        "@smithy/node-http-handler": "^4.1.1",
        "@smithy/protocol-http": "^5.1.3",
        "@smithy/smithy-client": "^4.5.0",
        "@smithy/types": "^4.3.2",
        "@smithy/url-parser": "^4.0.5",
        "@smithy/util-base64": "^4.0.0",
        "@smithy/util-body-length-browser": "^4.0.0",
        "@smithy/util-body-length-node": "^4.0.0",
        "@smithy/util-defaults-mode-browser": "^4.0.27",
        "@smithy/util-defaults-mode-node": "^4.0.27",
        "@smithy/util-endpoints": "^3.0.7",
        "@smithy/util-middleware": "^4.0.5",
        "@smithy/util-retry": "^4.0.7",
        "@smithy/util-utf8": "^4.0.0",
        "@smithy/util-waiter": "^4.0.7",
        "@types/uuid": "^9.0.1",
        tslib: "^2.6.2",
        uuid: "^9.0.1"
      },
      devDependencies: {
        "@tsconfig/node18": "18.2.4",
        "@types/node": "^18.19.69",
        concurrently: "7.0.0",
        "downlevel-dts": "0.10.1",
        rimraf: "3.0.2",
        typescript: "~5.8.3"
      },
      engines: {
        node: ">=18.0.0"
      },
      typesVersions: {
        "<4.0": {
          "dist-types/*": [
            "dist-types/ts3.4/*"
          ]
        }
      },
      files: [
        "dist-*/**"
      ],
      author: {
        name: "AWS SDK for JavaScript Team",
        url: "https://aws.amazon.com/javascript/"
      },
      license: "Apache-2.0",
      browser: {
        "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
      },
      "react-native": {
        "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
      },
      homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ec2",
      repository: {
        type: "git",
        url: "https://github.com/aws/aws-sdk-js-v3.git",
        directory: "clients/client-ec2"
      }
    };
  }
});

// ../../node_modules/@aws-sdk/client-ec2/dist-cjs/endpoint/ruleset.js
var require_ruleset12 = __commonJS({
  "../../node_modules/@aws-sdk/client-ec2/dist-cjs/endpoint/ruleset.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.ruleSet = void 0;
    var u3 = "required";
    var v6 = "fn";
    var w3 = "argv";
    var x3 = "ref";
    var a3 = true;
    var b3 = "isSet";
    var c3 = "booleanEquals";
    var d3 = "error";
    var e3 = "endpoint";
    var f3 = "tree";
    var g3 = "PartitionResult";
    var h3 = "getAttr";
    var i3 = { [u3]: false, "type": "String" };
    var j3 = { [u3]: true, "default": false, "type": "Boolean" };
    var k3 = { [x3]: "Endpoint" };
    var l3 = { [v6]: c3, [w3]: [{ [x3]: "UseFIPS" }, true] };
    var m3 = { [v6]: c3, [w3]: [{ [x3]: "UseDualStack" }, true] };
    var n3 = {};
    var o3 = { [v6]: h3, [w3]: [{ [x3]: g3 }, "supportsFIPS"] };
    var p3 = { [x3]: g3 };
    var q3 = { [v6]: c3, [w3]: [true, { [v6]: h3, [w3]: [p3, "supportsDualStack"] }] };
    var r3 = [l3];
    var s3 = [m3];
    var t3 = [{ [x3]: "Region" }];
    var _data3 = { version: "1.0", parameters: { Region: i3, UseDualStack: j3, UseFIPS: j3, Endpoint: i3 }, rules: [{ conditions: [{ [v6]: b3, [w3]: [k3] }], rules: [{ conditions: r3, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d3 }, { conditions: s3, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d3 }, { endpoint: { url: k3, properties: n3, headers: n3 }, type: e3 }], type: f3 }, { conditions: [{ [v6]: b3, [w3]: t3 }], rules: [{ conditions: [{ [v6]: "aws.partition", [w3]: t3, assign: g3 }], rules: [{ conditions: [l3, m3], rules: [{ conditions: [{ [v6]: c3, [w3]: [a3, o3] }, q3], rules: [{ endpoint: { url: "https://ec2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n3, headers: n3 }, type: e3 }], type: f3 }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d3 }], type: f3 }, { conditions: r3, rules: [{ conditions: [{ [v6]: c3, [w3]: [o3, a3] }], rules: [{ conditions: [{ [v6]: "stringEquals", [w3]: [{ [v6]: h3, [w3]: [p3, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://ec2.{Region}.amazonaws.com", properties: n3, headers: n3 }, type: e3 }, { endpoint: { url: "https://ec2-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n3, headers: n3 }, type: e3 }], type: f3 }, { error: "FIPS is enabled but this partition does not support FIPS", type: d3 }], type: f3 }, { conditions: s3, rules: [{ conditions: [q3], rules: [{ endpoint: { url: "https://ec2.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n3, headers: n3 }, type: e3 }], type: f3 }, { error: "DualStack is enabled but this partition does not support DualStack", type: d3 }], type: f3 }, { endpoint: { url: "https://ec2.{Region}.{PartitionResult#dnsSuffix}", properties: n3, headers: n3 }, type: e3 }], type: f3 }], type: f3 }, { error: "Invalid Configuration: Missing Region", type: d3 }] };
    exports2.ruleSet = _data3;
  }
});

// ../../node_modules/@aws-sdk/client-ec2/dist-cjs/endpoint/endpointResolver.js
var require_endpointResolver12 = __commonJS({
  "../../node_modules/@aws-sdk/client-ec2/dist-cjs/endpoint/endpointResolver.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.defaultEndpointResolver = void 0;
    var util_endpoints_1 = require_dist_cjs21();
    var util_endpoints_2 = require_dist_cjs18();
    var ruleset_1 = require_ruleset12();
    var cache3 = new util_endpoints_2.EndpointCache({
      size: 50,
      params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"]
    });
    var defaultEndpointResolver3 = /* @__PURE__ */ __name((endpointParams, context = {}) => {
      return cache3.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
        endpointParams,
        logger: context.logger
      }));
    }, "defaultEndpointResolver");
    exports2.defaultEndpointResolver = defaultEndpointResolver3;
    util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
  }
});

// ../../node_modules/@aws-sdk/client-ec2/dist-cjs/runtimeConfig.shared.js
var require_runtimeConfig_shared13 = __commonJS({
  "../../node_modules/@aws-sdk/client-ec2/dist-cjs/runtimeConfig.shared.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.getRuntimeConfig = void 0;
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var smithy_client_1 = require_dist_cjs26();
    var url_parser_1 = require_dist_cjs20();
    var util_base64_1 = require_dist_cjs11();
    var util_utf8_1 = require_dist_cjs10();
    var httpAuthSchemeProvider_1 = require_httpAuthSchemeProvider12();
    var endpointResolver_1 = require_endpointResolver12();
    var getRuntimeConfig5 = /* @__PURE__ */ __name((config) => {
      return {
        apiVersion: "2016-11-15",
        base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
        base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
        disableHostPrefix: config?.disableHostPrefix ?? false,
        endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
        extensions: config?.extensions ?? [],
        httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultEC2HttpAuthSchemeProvider,
        httpAuthSchemes: config?.httpAuthSchemes ?? [
          {
            schemeId: "aws.auth#sigv4",
            identityProvider: /* @__PURE__ */ __name((ipc) => ipc.getIdentityProvider("aws.auth#sigv4"), "identityProvider"),
            signer: new core_1.AwsSdkSigV4Signer()
          }
        ],
        logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
        serviceId: config?.serviceId ?? "EC2",
        urlParser: config?.urlParser ?? url_parser_1.parseUrl,
        utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
        utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8
      };
    }, "getRuntimeConfig");
    exports2.getRuntimeConfig = getRuntimeConfig5;
  }
});

// ../../node_modules/@aws-sdk/client-ec2/dist-cjs/runtimeConfig.js
var require_runtimeConfig13 = __commonJS({
  "../../node_modules/@aws-sdk/client-ec2/dist-cjs/runtimeConfig.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.getRuntimeConfig = void 0;
    var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
    var package_json_1 = tslib_1.__importDefault(require_package12());
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var credential_provider_node_1 = require_dist_cjs52();
    var util_user_agent_node_1 = require_dist_cjs41();
    var config_resolver_1 = require_dist_cjs30();
    var hash_node_1 = require_dist_cjs42();
    var middleware_retry_1 = require_dist_cjs37();
    var node_config_provider_1 = require_dist_cjs33();
    var node_http_handler_1 = require_dist_cjs14();
    var util_body_length_node_1 = require_dist_cjs43();
    var util_retry_1 = require_dist_cjs36();
    var runtimeConfig_shared_1 = require_runtimeConfig_shared13();
    var smithy_client_1 = require_dist_cjs26();
    var util_defaults_mode_node_1 = require_dist_cjs44();
    var smithy_client_2 = require_dist_cjs26();
    var getRuntimeConfig5 = /* @__PURE__ */ __name((config) => {
      (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
      const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
      const defaultConfigProvider = /* @__PURE__ */ __name(() => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode), "defaultConfigProvider");
      const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
      (0, core_1.emitWarningIfUnsupportedVersion)(process.version);
      const loaderConfig = {
        profile: config?.profile,
        logger: clientSharedValues.logger
      };
      return {
        ...clientSharedValues,
        ...config,
        runtime: "node",
        defaultsMode,
        authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
        bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
        credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
        defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
        maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
        region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
        requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
        retryMode: config?.retryMode ?? (0, node_config_provider_1.loadConfig)({
          ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
          default: /* @__PURE__ */ __name(async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE, "default")
        }, config),
        sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
        streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
        useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
        useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
        userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig)
      };
    }, "getRuntimeConfig");
    exports2.getRuntimeConfig = getRuntimeConfig5;
  }
});

// ../../node_modules/@aws-sdk/util-format-url/dist-cjs/index.js
var require_dist_cjs85 = __commonJS({
  "../../node_modules/@aws-sdk/util-format-url/dist-cjs/index.js"(exports2, module2) {
    "use strict";
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var index_exports = {};
    __export2(index_exports, {
      formatUrl: /* @__PURE__ */ __name(() => formatUrl, "formatUrl")
    });
    module2.exports = __toCommonJS2(index_exports);
    var import_querystring_builder = require_dist_cjs13();
    function formatUrl(request2) {
      const { port, query } = request2;
      let { protocol, path: path38, hostname } = request2;
      if (protocol && protocol.slice(-1) !== ":") {
        protocol += ":";
      }
      if (port) {
        hostname += `:${port}`;
      }
      if (path38 && path38.charAt(0) !== "/") {
        path38 = `/${path38}`;
      }
      let queryString = query ? (0, import_querystring_builder.buildQueryString)(query) : "";
      if (queryString && queryString[0] !== "?") {
        queryString = `?${queryString}`;
      }
      let auth = "";
      if (request2.username != null || request2.password != null) {
        const username = request2.username ?? "";
        const password = request2.password ?? "";
        auth = `${username}:${password}@`;
      }
      let fragment = "";
      if (request2.fragment) {
        fragment = `#${request2.fragment}`;
      }
      return `${protocol}//${auth}${hostname}${path38}${queryString}${fragment}`;
    }
    __name(formatUrl, "formatUrl");
    __name2(formatUrl, "formatUrl");
  }
});

// ../../node_modules/@aws-sdk/middleware-sdk-ec2/dist-cjs/index.js
var require_dist_cjs86 = __commonJS({
  "../../node_modules/@aws-sdk/middleware-sdk-ec2/dist-cjs/index.js"(exports2, module2) {
    "use strict";
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var index_exports = {};
    __export2(index_exports, {
      copySnapshotPresignedUrlMiddleware: /* @__PURE__ */ __name(() => copySnapshotPresignedUrlMiddleware, "copySnapshotPresignedUrlMiddleware"),
      copySnapshotPresignedUrlMiddlewareOptions: /* @__PURE__ */ __name(() => copySnapshotPresignedUrlMiddlewareOptions, "copySnapshotPresignedUrlMiddlewareOptions"),
      getCopySnapshotPresignedUrlPlugin: /* @__PURE__ */ __name(() => getCopySnapshotPresignedUrlPlugin, "getCopySnapshotPresignedUrlPlugin")
    });
    module2.exports = __toCommonJS2(index_exports);
    var import_util_format_url = require_dist_cjs85();
    var import_middleware_endpoint8 = require_dist_cjs34();
    var import_protocol_http16 = require_dist_cjs2();
    var import_signature_v42 = require_dist_cjs23();
    var import_smithy_client28 = require_dist_cjs26();
    var version2 = "2016-11-15";
    function copySnapshotPresignedUrlMiddleware(options) {
      return (next, context) => async (args) => {
        const { input } = args;
        if (!input.PresignedUrl) {
          const destinationRegion = await options.region();
          const endpoint = await (0, import_middleware_endpoint8.getEndpointFromInstructions)(
            input,
            {
              /**
               * Replication of {@link CopySnapshotCommand} in EC2.
               * Not imported due to circular dependency.
               */
              getEndpointParameterInstructions() {
                return {
                  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
                  Endpoint: { type: "builtInParams", name: "endpoint" },
                  Region: { type: "builtInParams", name: "region" },
                  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
                };
              }
            },
            {
              ...options,
              region: input.SourceRegion
            }
          );
          const resolvedEndpoint = typeof options.endpoint === "function" ? await options.endpoint() : (0, import_middleware_endpoint8.toEndpointV1)(endpoint);
          const requestToSign = new import_protocol_http16.HttpRequest({
            ...resolvedEndpoint,
            protocol: "https",
            headers: {
              host: resolvedEndpoint.hostname
            },
            query: {
              // Values must be string instead of e.g. boolean
              // because we need to sign the serialized form.
              ...Object.entries(input).reduce((acc, [k3, v6]) => {
                acc[k3] = String(v6 ?? "");
                return acc;
              }, {}),
              Action: "CopySnapshot",
              Version: version2,
              DestinationRegion: destinationRegion
            }
          });
          const signer = new import_signature_v42.SignatureV4({
            credentials: options.credentials,
            region: input.SourceRegion,
            service: "ec2",
            sha256: options.sha256,
            uriEscapePath: options.signingEscapePath
          });
          const presignedRequest = await signer.presign(requestToSign, {
            expiresIn: 3600
          });
          args = {
            ...args,
            input: {
              ...args.input,
              DestinationRegion: destinationRegion,
              PresignedUrl: (0, import_util_format_url.formatUrl)(presignedRequest)
            }
          };
          if (import_protocol_http16.HttpRequest.isInstance(args.request)) {
            const { request: request2 } = args;
            if (!(request2.body ?? "").includes("DestinationRegion=")) {
              request2.body += `&DestinationRegion=${destinationRegion}`;
            }
            if (!(request2.body ?? "").includes("PresignedUrl=")) {
              request2.body += `&PresignedUrl=${(0, import_smithy_client28.extendedEncodeURIComponent)(args.input.PresignedUrl)}`;
            }
          }
        }
        return next(args);
      };
    }
    __name(copySnapshotPresignedUrlMiddleware, "copySnapshotPresignedUrlMiddleware");
    __name2(copySnapshotPresignedUrlMiddleware, "copySnapshotPresignedUrlMiddleware");
    var copySnapshotPresignedUrlMiddlewareOptions = {
      step: "serialize",
      tags: ["CROSS_REGION_PRESIGNED_URL"],
      name: "crossRegionPresignedUrlMiddleware",
      override: true,
      relation: "after",
      toMiddleware: "endpointV2Middleware"
    };
    var getCopySnapshotPresignedUrlPlugin = /* @__PURE__ */ __name2((config) => ({
      applyToStack: /* @__PURE__ */ __name2((clientStack) => {
        clientStack.add(copySnapshotPresignedUrlMiddleware(config), copySnapshotPresignedUrlMiddlewareOptions);
      }, "applyToStack")
    }), "getCopySnapshotPresignedUrlPlugin");
  }
});

// ../../node_modules/@aws-sdk/client-ec2/dist-cjs/index.js
var require_dist_cjs87 = __commonJS({
  "../../node_modules/@aws-sdk/client-ec2/dist-cjs/index.js"(exports2, module2) {
    "use strict";
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var index_exports = {};
    __export2(index_exports, {
      AcceleratorManufacturer: /* @__PURE__ */ __name(() => AcceleratorManufacturer, "AcceleratorManufacturer"),
      AcceleratorName: /* @__PURE__ */ __name(() => AcceleratorName, "AcceleratorName"),
      AcceleratorType: /* @__PURE__ */ __name(() => AcceleratorType, "AcceleratorType"),
      AcceptAddressTransferCommand: /* @__PURE__ */ __name(() => AcceptAddressTransferCommand, "AcceptAddressTransferCommand"),
      AcceptCapacityReservationBillingOwnershipCommand: /* @__PURE__ */ __name(() => AcceptCapacityReservationBillingOwnershipCommand, "AcceptCapacityReservationBillingOwnershipCommand"),
      AcceptReservedInstancesExchangeQuoteCommand: /* @__PURE__ */ __name(() => AcceptReservedInstancesExchangeQuoteCommand, "AcceptReservedInstancesExchangeQuoteCommand"),
      AcceptTransitGatewayMulticastDomainAssociationsCommand: /* @__PURE__ */ __name(() => AcceptTransitGatewayMulticastDomainAssociationsCommand, "AcceptTransitGatewayMulticastDomainAssociationsCommand"),
      AcceptTransitGatewayPeeringAttachmentCommand: /* @__PURE__ */ __name(() => AcceptTransitGatewayPeeringAttachmentCommand, "AcceptTransitGatewayPeeringAttachmentCommand"),
      AcceptTransitGatewayVpcAttachmentCommand: /* @__PURE__ */ __name(() => AcceptTransitGatewayVpcAttachmentCommand, "AcceptTransitGatewayVpcAttachmentCommand"),
      AcceptVpcEndpointConnectionsCommand: /* @__PURE__ */ __name(() => AcceptVpcEndpointConnectionsCommand, "AcceptVpcEndpointConnectionsCommand"),
      AcceptVpcPeeringConnectionCommand: /* @__PURE__ */ __name(() => AcceptVpcPeeringConnectionCommand, "AcceptVpcPeeringConnectionCommand"),
      AccountAttributeName: /* @__PURE__ */ __name(() => AccountAttributeName, "AccountAttributeName"),
      ActivityStatus: /* @__PURE__ */ __name(() => ActivityStatus, "ActivityStatus"),
      AddressAttributeName: /* @__PURE__ */ __name(() => AddressAttributeName, "AddressAttributeName"),
      AddressFamily: /* @__PURE__ */ __name(() => AddressFamily, "AddressFamily"),
      AddressTransferStatus: /* @__PURE__ */ __name(() => AddressTransferStatus, "AddressTransferStatus"),
      AdvertiseByoipCidrCommand: /* @__PURE__ */ __name(() => AdvertiseByoipCidrCommand, "AdvertiseByoipCidrCommand"),
      Affinity: /* @__PURE__ */ __name(() => Affinity, "Affinity"),
      AllocateAddressCommand: /* @__PURE__ */ __name(() => AllocateAddressCommand, "AllocateAddressCommand"),
      AllocateHostsCommand: /* @__PURE__ */ __name(() => AllocateHostsCommand, "AllocateHostsCommand"),
      AllocateIpamPoolCidrCommand: /* @__PURE__ */ __name(() => AllocateIpamPoolCidrCommand, "AllocateIpamPoolCidrCommand"),
      AllocationState: /* @__PURE__ */ __name(() => AllocationState, "AllocationState"),
      AllocationStrategy: /* @__PURE__ */ __name(() => AllocationStrategy, "AllocationStrategy"),
      AllocationType: /* @__PURE__ */ __name(() => AllocationType, "AllocationType"),
      AllowedImagesSettingsDisabledState: /* @__PURE__ */ __name(() => AllowedImagesSettingsDisabledState, "AllowedImagesSettingsDisabledState"),
      AllowedImagesSettingsEnabledState: /* @__PURE__ */ __name(() => AllowedImagesSettingsEnabledState, "AllowedImagesSettingsEnabledState"),
      AllowsMultipleInstanceTypes: /* @__PURE__ */ __name(() => AllowsMultipleInstanceTypes, "AllowsMultipleInstanceTypes"),
      AmdSevSnpSpecification: /* @__PURE__ */ __name(() => AmdSevSnpSpecification, "AmdSevSnpSpecification"),
      AnalysisStatus: /* @__PURE__ */ __name(() => AnalysisStatus, "AnalysisStatus"),
      ApplianceModeSupportValue: /* @__PURE__ */ __name(() => ApplianceModeSupportValue, "ApplianceModeSupportValue"),
      ApplySecurityGroupsToClientVpnTargetNetworkCommand: /* @__PURE__ */ __name(() => ApplySecurityGroupsToClientVpnTargetNetworkCommand, "ApplySecurityGroupsToClientVpnTargetNetworkCommand"),
      ArchitectureType: /* @__PURE__ */ __name(() => ArchitectureType, "ArchitectureType"),
      ArchitectureValues: /* @__PURE__ */ __name(() => ArchitectureValues, "ArchitectureValues"),
      AsnAssociationState: /* @__PURE__ */ __name(() => AsnAssociationState, "AsnAssociationState"),
      AsnState: /* @__PURE__ */ __name(() => AsnState, "AsnState"),
      AssignIpv6AddressesCommand: /* @__PURE__ */ __name(() => AssignIpv6AddressesCommand, "AssignIpv6AddressesCommand"),
      AssignPrivateIpAddressesCommand: /* @__PURE__ */ __name(() => AssignPrivateIpAddressesCommand, "AssignPrivateIpAddressesCommand"),
      AssignPrivateNatGatewayAddressCommand: /* @__PURE__ */ __name(() => AssignPrivateNatGatewayAddressCommand, "AssignPrivateNatGatewayAddressCommand"),
      AssociateAddressCommand: /* @__PURE__ */ __name(() => AssociateAddressCommand, "AssociateAddressCommand"),
      AssociateCapacityReservationBillingOwnerCommand: /* @__PURE__ */ __name(() => AssociateCapacityReservationBillingOwnerCommand, "AssociateCapacityReservationBillingOwnerCommand"),
      AssociateClientVpnTargetNetworkCommand: /* @__PURE__ */ __name(() => AssociateClientVpnTargetNetworkCommand, "AssociateClientVpnTargetNetworkCommand"),
      AssociateDhcpOptionsCommand: /* @__PURE__ */ __name(() => AssociateDhcpOptionsCommand, "AssociateDhcpOptionsCommand"),
      AssociateEnclaveCertificateIamRoleCommand: /* @__PURE__ */ __name(() => AssociateEnclaveCertificateIamRoleCommand, "AssociateEnclaveCertificateIamRoleCommand"),
      AssociateIamInstanceProfileCommand: /* @__PURE__ */ __name(() => AssociateIamInstanceProfileCommand, "AssociateIamInstanceProfileCommand"),
      AssociateInstanceEventWindowCommand: /* @__PURE__ */ __name(() => AssociateInstanceEventWindowCommand, "AssociateInstanceEventWindowCommand"),
      AssociateIpamByoasnCommand: /* @__PURE__ */ __name(() => AssociateIpamByoasnCommand, "AssociateIpamByoasnCommand"),
      AssociateIpamResourceDiscoveryCommand: /* @__PURE__ */ __name(() => AssociateIpamResourceDiscoveryCommand, "AssociateIpamResourceDiscoveryCommand"),
      AssociateNatGatewayAddressCommand: /* @__PURE__ */ __name(() => AssociateNatGatewayAddressCommand, "AssociateNatGatewayAddressCommand"),
      AssociateRouteServerCommand: /* @__PURE__ */ __name(() => AssociateRouteServerCommand, "AssociateRouteServerCommand"),
      AssociateRouteTableCommand: /* @__PURE__ */ __name(() => AssociateRouteTableCommand, "AssociateRouteTableCommand"),
      AssociateSecurityGroupVpcCommand: /* @__PURE__ */ __name(() => AssociateSecurityGroupVpcCommand, "AssociateSecurityGroupVpcCommand"),
      AssociateSubnetCidrBlockCommand: /* @__PURE__ */ __name(() => AssociateSubnetCidrBlockCommand, "AssociateSubnetCidrBlockCommand"),
      AssociateTransitGatewayMulticastDomainCommand: /* @__PURE__ */ __name(() => AssociateTransitGatewayMulticastDomainCommand, "AssociateTransitGatewayMulticastDomainCommand"),
      AssociateTransitGatewayPolicyTableCommand: /* @__PURE__ */ __name(() => AssociateTransitGatewayPolicyTableCommand, "AssociateTransitGatewayPolicyTableCommand"),
      AssociateTransitGatewayRouteTableCommand: /* @__PURE__ */ __name(() => AssociateTransitGatewayRouteTableCommand, "AssociateTransitGatewayRouteTableCommand"),
      AssociateTrunkInterfaceCommand: /* @__PURE__ */ __name(() => AssociateTrunkInterfaceCommand, "AssociateTrunkInterfaceCommand"),
      AssociateVpcCidrBlockCommand: /* @__PURE__ */ __name(() => AssociateVpcCidrBlockCommand, "AssociateVpcCidrBlockCommand"),
      AssociatedNetworkType: /* @__PURE__ */ __name(() => AssociatedNetworkType, "AssociatedNetworkType"),
      AssociationStatusCode: /* @__PURE__ */ __name(() => AssociationStatusCode, "AssociationStatusCode"),
      AttachClassicLinkVpcCommand: /* @__PURE__ */ __name(() => AttachClassicLinkVpcCommand, "AttachClassicLinkVpcCommand"),
      AttachInternetGatewayCommand: /* @__PURE__ */ __name(() => AttachInternetGatewayCommand, "AttachInternetGatewayCommand"),
      AttachNetworkInterfaceCommand: /* @__PURE__ */ __name(() => AttachNetworkInterfaceCommand, "AttachNetworkInterfaceCommand"),
      AttachVerifiedAccessTrustProviderCommand: /* @__PURE__ */ __name(() => AttachVerifiedAccessTrustProviderCommand, "AttachVerifiedAccessTrustProviderCommand"),
      AttachVerifiedAccessTrustProviderResultFilterSensitiveLog: /* @__PURE__ */ __name(() => AttachVerifiedAccessTrustProviderResultFilterSensitiveLog, "AttachVerifiedAccessTrustProviderResultFilterSensitiveLog"),
      AttachVolumeCommand: /* @__PURE__ */ __name(() => AttachVolumeCommand, "AttachVolumeCommand"),
      AttachVpnGatewayCommand: /* @__PURE__ */ __name(() => AttachVpnGatewayCommand, "AttachVpnGatewayCommand"),
      AttachmentStatus: /* @__PURE__ */ __name(() => AttachmentStatus, "AttachmentStatus"),
      AuthorizeClientVpnIngressCommand: /* @__PURE__ */ __name(() => AuthorizeClientVpnIngressCommand, "AuthorizeClientVpnIngressCommand"),
      AuthorizeSecurityGroupEgressCommand: /* @__PURE__ */ __name(() => AuthorizeSecurityGroupEgressCommand, "AuthorizeSecurityGroupEgressCommand"),
      AuthorizeSecurityGroupIngressCommand: /* @__PURE__ */ __name(() => AuthorizeSecurityGroupIngressCommand, "AuthorizeSecurityGroupIngressCommand"),
      AutoAcceptSharedAssociationsValue: /* @__PURE__ */ __name(() => AutoAcceptSharedAssociationsValue, "AutoAcceptSharedAssociationsValue"),
      AutoAcceptSharedAttachmentsValue: /* @__PURE__ */ __name(() => AutoAcceptSharedAttachmentsValue, "AutoAcceptSharedAttachmentsValue"),
      AutoPlacement: /* @__PURE__ */ __name(() => AutoPlacement, "AutoPlacement"),
      AvailabilityZoneOptInStatus: /* @__PURE__ */ __name(() => AvailabilityZoneOptInStatus, "AvailabilityZoneOptInStatus"),
      AvailabilityZoneState: /* @__PURE__ */ __name(() => AvailabilityZoneState, "AvailabilityZoneState"),
      BandwidthWeightingType: /* @__PURE__ */ __name(() => BandwidthWeightingType, "BandwidthWeightingType"),
      BareMetal: /* @__PURE__ */ __name(() => BareMetal, "BareMetal"),
      BatchState: /* @__PURE__ */ __name(() => BatchState, "BatchState"),
      BgpStatus: /* @__PURE__ */ __name(() => BgpStatus, "BgpStatus"),
      BlockPublicAccessMode: /* @__PURE__ */ __name(() => BlockPublicAccessMode, "BlockPublicAccessMode"),
      BootModeType: /* @__PURE__ */ __name(() => BootModeType, "BootModeType"),
      BootModeValues: /* @__PURE__ */ __name(() => BootModeValues, "BootModeValues"),
      BundleInstanceCommand: /* @__PURE__ */ __name(() => BundleInstanceCommand, "BundleInstanceCommand"),
      BundleInstanceRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => BundleInstanceRequestFilterSensitiveLog, "BundleInstanceRequestFilterSensitiveLog"),
      BundleInstanceResultFilterSensitiveLog: /* @__PURE__ */ __name(() => BundleInstanceResultFilterSensitiveLog, "BundleInstanceResultFilterSensitiveLog"),
      BundleTaskFilterSensitiveLog: /* @__PURE__ */ __name(() => BundleTaskFilterSensitiveLog, "BundleTaskFilterSensitiveLog"),
      BundleTaskState: /* @__PURE__ */ __name(() => BundleTaskState, "BundleTaskState"),
      BurstablePerformance: /* @__PURE__ */ __name(() => BurstablePerformance, "BurstablePerformance"),
      ByoipCidrState: /* @__PURE__ */ __name(() => ByoipCidrState, "ByoipCidrState"),
      CallerRole: /* @__PURE__ */ __name(() => CallerRole, "CallerRole"),
      CancelBatchErrorCode: /* @__PURE__ */ __name(() => CancelBatchErrorCode, "CancelBatchErrorCode"),
      CancelBundleTaskCommand: /* @__PURE__ */ __name(() => CancelBundleTaskCommand, "CancelBundleTaskCommand"),
      CancelBundleTaskResultFilterSensitiveLog: /* @__PURE__ */ __name(() => CancelBundleTaskResultFilterSensitiveLog, "CancelBundleTaskResultFilterSensitiveLog"),
      CancelCapacityReservationCommand: /* @__PURE__ */ __name(() => CancelCapacityReservationCommand, "CancelCapacityReservationCommand"),
      CancelCapacityReservationFleetsCommand: /* @__PURE__ */ __name(() => CancelCapacityReservationFleetsCommand, "CancelCapacityReservationFleetsCommand"),
      CancelConversionTaskCommand: /* @__PURE__ */ __name(() => CancelConversionTaskCommand, "CancelConversionTaskCommand"),
      CancelDeclarativePoliciesReportCommand: /* @__PURE__ */ __name(() => CancelDeclarativePoliciesReportCommand, "CancelDeclarativePoliciesReportCommand"),
      CancelExportTaskCommand: /* @__PURE__ */ __name(() => CancelExportTaskCommand, "CancelExportTaskCommand"),
      CancelImageLaunchPermissionCommand: /* @__PURE__ */ __name(() => CancelImageLaunchPermissionCommand, "CancelImageLaunchPermissionCommand"),
      CancelImportTaskCommand: /* @__PURE__ */ __name(() => CancelImportTaskCommand, "CancelImportTaskCommand"),
      CancelReservedInstancesListingCommand: /* @__PURE__ */ __name(() => CancelReservedInstancesListingCommand, "CancelReservedInstancesListingCommand"),
      CancelSpotFleetRequestsCommand: /* @__PURE__ */ __name(() => CancelSpotFleetRequestsCommand, "CancelSpotFleetRequestsCommand"),
      CancelSpotInstanceRequestState: /* @__PURE__ */ __name(() => CancelSpotInstanceRequestState, "CancelSpotInstanceRequestState"),
      CancelSpotInstanceRequestsCommand: /* @__PURE__ */ __name(() => CancelSpotInstanceRequestsCommand, "CancelSpotInstanceRequestsCommand"),
      CapacityBlockExtensionStatus: /* @__PURE__ */ __name(() => CapacityBlockExtensionStatus, "CapacityBlockExtensionStatus"),
      CapacityBlockInterconnectStatus: /* @__PURE__ */ __name(() => CapacityBlockInterconnectStatus, "CapacityBlockInterconnectStatus"),
      CapacityBlockResourceState: /* @__PURE__ */ __name(() => CapacityBlockResourceState, "CapacityBlockResourceState"),
      CapacityReservationBillingRequestStatus: /* @__PURE__ */ __name(() => CapacityReservationBillingRequestStatus, "CapacityReservationBillingRequestStatus"),
      CapacityReservationDeliveryPreference: /* @__PURE__ */ __name(() => CapacityReservationDeliveryPreference, "CapacityReservationDeliveryPreference"),
      CapacityReservationFleetState: /* @__PURE__ */ __name(() => CapacityReservationFleetState, "CapacityReservationFleetState"),
      CapacityReservationInstancePlatform: /* @__PURE__ */ __name(() => CapacityReservationInstancePlatform, "CapacityReservationInstancePlatform"),
      CapacityReservationPreference: /* @__PURE__ */ __name(() => CapacityReservationPreference, "CapacityReservationPreference"),
      CapacityReservationState: /* @__PURE__ */ __name(() => CapacityReservationState, "CapacityReservationState"),
      CapacityReservationTenancy: /* @__PURE__ */ __name(() => CapacityReservationTenancy, "CapacityReservationTenancy"),
      CapacityReservationType: /* @__PURE__ */ __name(() => CapacityReservationType, "CapacityReservationType"),
      CarrierGatewayState: /* @__PURE__ */ __name(() => CarrierGatewayState, "CarrierGatewayState"),
      ClientCertificateRevocationListStatusCode: /* @__PURE__ */ __name(() => ClientCertificateRevocationListStatusCode, "ClientCertificateRevocationListStatusCode"),
      ClientVpnAuthenticationType: /* @__PURE__ */ __name(() => ClientVpnAuthenticationType, "ClientVpnAuthenticationType"),
      ClientVpnAuthorizationRuleStatusCode: /* @__PURE__ */ __name(() => ClientVpnAuthorizationRuleStatusCode, "ClientVpnAuthorizationRuleStatusCode"),
      ClientVpnConnectionStatusCode: /* @__PURE__ */ __name(() => ClientVpnConnectionStatusCode, "ClientVpnConnectionStatusCode"),
      ClientVpnEndpointAttributeStatusCode: /* @__PURE__ */ __name(() => ClientVpnEndpointAttributeStatusCode, "ClientVpnEndpointAttributeStatusCode"),
      ClientVpnEndpointStatusCode: /* @__PURE__ */ __name(() => ClientVpnEndpointStatusCode, "ClientVpnEndpointStatusCode"),
      ClientVpnRouteStatusCode: /* @__PURE__ */ __name(() => ClientVpnRouteStatusCode, "ClientVpnRouteStatusCode"),
      ConfirmProductInstanceCommand: /* @__PURE__ */ __name(() => ConfirmProductInstanceCommand, "ConfirmProductInstanceCommand"),
      ConnectionNotificationState: /* @__PURE__ */ __name(() => ConnectionNotificationState, "ConnectionNotificationState"),
      ConnectionNotificationType: /* @__PURE__ */ __name(() => ConnectionNotificationType, "ConnectionNotificationType"),
      ConnectivityType: /* @__PURE__ */ __name(() => ConnectivityType, "ConnectivityType"),
      ContainerFormat: /* @__PURE__ */ __name(() => ContainerFormat, "ContainerFormat"),
      ConversionTaskFilterSensitiveLog: /* @__PURE__ */ __name(() => ConversionTaskFilterSensitiveLog, "ConversionTaskFilterSensitiveLog"),
      ConversionTaskState: /* @__PURE__ */ __name(() => ConversionTaskState, "ConversionTaskState"),
      CopyFpgaImageCommand: /* @__PURE__ */ __name(() => CopyFpgaImageCommand, "CopyFpgaImageCommand"),
      CopyImageCommand: /* @__PURE__ */ __name(() => CopyImageCommand, "CopyImageCommand"),
      CopySnapshotCommand: /* @__PURE__ */ __name(() => CopySnapshotCommand, "CopySnapshotCommand"),
      CopySnapshotRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => CopySnapshotRequestFilterSensitiveLog, "CopySnapshotRequestFilterSensitiveLog"),
      CopyTagsFromSource: /* @__PURE__ */ __name(() => CopyTagsFromSource, "CopyTagsFromSource"),
      CpuManufacturer: /* @__PURE__ */ __name(() => CpuManufacturer, "CpuManufacturer"),
      CreateCapacityReservationBySplittingCommand: /* @__PURE__ */ __name(() => CreateCapacityReservationBySplittingCommand, "CreateCapacityReservationBySplittingCommand"),
      CreateCapacityReservationCommand: /* @__PURE__ */ __name(() => CreateCapacityReservationCommand, "CreateCapacityReservationCommand"),
      CreateCapacityReservationFleetCommand: /* @__PURE__ */ __name(() => CreateCapacityReservationFleetCommand, "CreateCapacityReservationFleetCommand"),
      CreateCarrierGatewayCommand: /* @__PURE__ */ __name(() => CreateCarrierGatewayCommand, "CreateCarrierGatewayCommand"),
      CreateClientVpnEndpointCommand: /* @__PURE__ */ __name(() => CreateClientVpnEndpointCommand, "CreateClientVpnEndpointCommand"),
      CreateClientVpnRouteCommand: /* @__PURE__ */ __name(() => CreateClientVpnRouteCommand, "CreateClientVpnRouteCommand"),
      CreateCoipCidrCommand: /* @__PURE__ */ __name(() => CreateCoipCidrCommand, "CreateCoipCidrCommand"),
      CreateCoipPoolCommand: /* @__PURE__ */ __name(() => CreateCoipPoolCommand, "CreateCoipPoolCommand"),
      CreateCustomerGatewayCommand: /* @__PURE__ */ __name(() => CreateCustomerGatewayCommand, "CreateCustomerGatewayCommand"),
      CreateDefaultSubnetCommand: /* @__PURE__ */ __name(() => CreateDefaultSubnetCommand, "CreateDefaultSubnetCommand"),
      CreateDefaultVpcCommand: /* @__PURE__ */ __name(() => CreateDefaultVpcCommand, "CreateDefaultVpcCommand"),
      CreateDelegateMacVolumeOwnershipTaskCommand: /* @__PURE__ */ __name(() => CreateDelegateMacVolumeOwnershipTaskCommand, "CreateDelegateMacVolumeOwnershipTaskCommand"),
      CreateDelegateMacVolumeOwnershipTaskRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => CreateDelegateMacVolumeOwnershipTaskRequestFilterSensitiveLog, "CreateDelegateMacVolumeOwnershipTaskRequestFilterSensitiveLog"),
      CreateDhcpOptionsCommand: /* @__PURE__ */ __name(() => CreateDhcpOptionsCommand, "CreateDhcpOptionsCommand"),
      CreateEgressOnlyInternetGatewayCommand: /* @__PURE__ */ __name(() => CreateEgressOnlyInternetGatewayCommand, "CreateEgressOnlyInternetGatewayCommand"),
      CreateFleetCommand: /* @__PURE__ */ __name(() => CreateFleetCommand, "CreateFleetCommand"),
      CreateFlowLogsCommand: /* @__PURE__ */ __name(() => CreateFlowLogsCommand, "CreateFlowLogsCommand"),
      CreateFpgaImageCommand: /* @__PURE__ */ __name(() => CreateFpgaImageCommand, "CreateFpgaImageCommand"),
      CreateImageCommand: /* @__PURE__ */ __name(() => CreateImageCommand, "CreateImageCommand"),
      CreateImageUsageReportCommand: /* @__PURE__ */ __name(() => CreateImageUsageReportCommand, "CreateImageUsageReportCommand"),
      CreateInstanceConnectEndpointCommand: /* @__PURE__ */ __name(() => CreateInstanceConnectEndpointCommand, "CreateInstanceConnectEndpointCommand"),
      CreateInstanceEventWindowCommand: /* @__PURE__ */ __name(() => CreateInstanceEventWindowCommand, "CreateInstanceEventWindowCommand"),
      CreateInstanceExportTaskCommand: /* @__PURE__ */ __name(() => CreateInstanceExportTaskCommand, "CreateInstanceExportTaskCommand"),
      CreateInternetGatewayCommand: /* @__PURE__ */ __name(() => CreateInternetGatewayCommand, "CreateInternetGatewayCommand"),
      CreateIpamCommand: /* @__PURE__ */ __name(() => CreateIpamCommand, "CreateIpamCommand"),
      CreateIpamExternalResourceVerificationTokenCommand: /* @__PURE__ */ __name(() => CreateIpamExternalResourceVerificationTokenCommand, "CreateIpamExternalResourceVerificationTokenCommand"),
      CreateIpamPoolCommand: /* @__PURE__ */ __name(() => CreateIpamPoolCommand, "CreateIpamPoolCommand"),
      CreateIpamResourceDiscoveryCommand: /* @__PURE__ */ __name(() => CreateIpamResourceDiscoveryCommand, "CreateIpamResourceDiscoveryCommand"),
      CreateIpamScopeCommand: /* @__PURE__ */ __name(() => CreateIpamScopeCommand, "CreateIpamScopeCommand"),
      CreateKeyPairCommand: /* @__PURE__ */ __name(() => CreateKeyPairCommand, "CreateKeyPairCommand"),
      CreateLaunchTemplateCommand: /* @__PURE__ */ __name(() => CreateLaunchTemplateCommand, "CreateLaunchTemplateCommand"),
      CreateLaunchTemplateRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => CreateLaunchTemplateRequestFilterSensitiveLog, "CreateLaunchTemplateRequestFilterSensitiveLog"),
      CreateLaunchTemplateVersionCommand: /* @__PURE__ */ __name(() => CreateLaunchTemplateVersionCommand, "CreateLaunchTemplateVersionCommand"),
      CreateLaunchTemplateVersionRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => CreateLaunchTemplateVersionRequestFilterSensitiveLog, "CreateLaunchTemplateVersionRequestFilterSensitiveLog"),
      CreateLaunchTemplateVersionResultFilterSensitiveLog: /* @__PURE__ */ __name(() => CreateLaunchTemplateVersionResultFilterSensitiveLog, "CreateLaunchTemplateVersionResultFilterSensitiveLog"),
      CreateLocalGatewayRouteCommand: /* @__PURE__ */ __name(() => CreateLocalGatewayRouteCommand, "CreateLocalGatewayRouteCommand"),
      CreateLocalGatewayRouteTableCommand: /* @__PURE__ */ __name(() => CreateLocalGatewayRouteTableCommand, "CreateLocalGatewayRouteTableCommand"),
      CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationCommand: /* @__PURE__ */ __name(() => CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationCommand, "CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationCommand"),
      CreateLocalGatewayRouteTableVpcAssociationCommand: /* @__PURE__ */ __name(() => CreateLocalGatewayRouteTableVpcAssociationCommand, "CreateLocalGatewayRouteTableVpcAssociationCommand"),
      CreateLocalGatewayVirtualInterfaceCommand: /* @__PURE__ */ __name(() => CreateLocalGatewayVirtualInterfaceCommand, "CreateLocalGatewayVirtualInterfaceCommand"),
      CreateLocalGatewayVirtualInterfaceGroupCommand: /* @__PURE__ */ __name(() => CreateLocalGatewayVirtualInterfaceGroupCommand, "CreateLocalGatewayVirtualInterfaceGroupCommand"),
      CreateMacSystemIntegrityProtectionModificationTaskCommand: /* @__PURE__ */ __name(() => CreateMacSystemIntegrityProtectionModificationTaskCommand, "CreateMacSystemIntegrityProtectionModificationTaskCommand"),
      CreateMacSystemIntegrityProtectionModificationTaskRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => CreateMacSystemIntegrityProtectionModificationTaskRequestFilterSensitiveLog, "CreateMacSystemIntegrityProtectionModificationTaskRequestFilterSensitiveLog"),
      CreateManagedPrefixListCommand: /* @__PURE__ */ __name(() => CreateManagedPrefixListCommand, "CreateManagedPrefixListCommand"),
      CreateNatGatewayCommand: /* @__PURE__ */ __name(() => CreateNatGatewayCommand, "CreateNatGatewayCommand"),
      CreateNetworkAclCommand: /* @__PURE__ */ __name(() => CreateNetworkAclCommand, "CreateNetworkAclCommand"),
      CreateNetworkAclEntryCommand: /* @__PURE__ */ __name(() => CreateNetworkAclEntryCommand, "CreateNetworkAclEntryCommand"),
      CreateNetworkInsightsAccessScopeCommand: /* @__PURE__ */ __name(() => CreateNetworkInsightsAccessScopeCommand, "CreateNetworkInsightsAccessScopeCommand"),
      CreateNetworkInsightsPathCommand: /* @__PURE__ */ __name(() => CreateNetworkInsightsPathCommand, "CreateNetworkInsightsPathCommand"),
      CreateNetworkInterfaceCommand: /* @__PURE__ */ __name(() => CreateNetworkInterfaceCommand, "CreateNetworkInterfaceCommand"),
      CreateNetworkInterfacePermissionCommand: /* @__PURE__ */ __name(() => CreateNetworkInterfacePermissionCommand, "CreateNetworkInterfacePermissionCommand"),
      CreatePlacementGroupCommand: /* @__PURE__ */ __name(() => CreatePlacementGroupCommand, "CreatePlacementGroupCommand"),
      CreatePublicIpv4PoolCommand: /* @__PURE__ */ __name(() => CreatePublicIpv4PoolCommand, "CreatePublicIpv4PoolCommand"),
      CreateReplaceRootVolumeTaskCommand: /* @__PURE__ */ __name(() => CreateReplaceRootVolumeTaskCommand, "CreateReplaceRootVolumeTaskCommand"),
      CreateReservedInstancesListingCommand: /* @__PURE__ */ __name(() => CreateReservedInstancesListingCommand, "CreateReservedInstancesListingCommand"),
      CreateRestoreImageTaskCommand: /* @__PURE__ */ __name(() => CreateRestoreImageTaskCommand, "CreateRestoreImageTaskCommand"),
      CreateRouteCommand: /* @__PURE__ */ __name(() => CreateRouteCommand, "CreateRouteCommand"),
      CreateRouteServerCommand: /* @__PURE__ */ __name(() => CreateRouteServerCommand, "CreateRouteServerCommand"),
      CreateRouteServerEndpointCommand: /* @__PURE__ */ __name(() => CreateRouteServerEndpointCommand, "CreateRouteServerEndpointCommand"),
      CreateRouteServerPeerCommand: /* @__PURE__ */ __name(() => CreateRouteServerPeerCommand, "CreateRouteServerPeerCommand"),
      CreateRouteTableCommand: /* @__PURE__ */ __name(() => CreateRouteTableCommand, "CreateRouteTableCommand"),
      CreateSecurityGroupCommand: /* @__PURE__ */ __name(() => CreateSecurityGroupCommand, "CreateSecurityGroupCommand"),
      CreateSnapshotCommand: /* @__PURE__ */ __name(() => CreateSnapshotCommand, "CreateSnapshotCommand"),
      CreateSnapshotsCommand: /* @__PURE__ */ __name(() => CreateSnapshotsCommand, "CreateSnapshotsCommand"),
      CreateSpotDatafeedSubscriptionCommand: /* @__PURE__ */ __name(() => CreateSpotDatafeedSubscriptionCommand, "CreateSpotDatafeedSubscriptionCommand"),
      CreateStoreImageTaskCommand: /* @__PURE__ */ __name(() => CreateStoreImageTaskCommand, "CreateStoreImageTaskCommand"),
      CreateSubnetCidrReservationCommand: /* @__PURE__ */ __name(() => CreateSubnetCidrReservationCommand, "CreateSubnetCidrReservationCommand"),
      CreateSubnetCommand: /* @__PURE__ */ __name(() => CreateSubnetCommand, "CreateSubnetCommand"),
      CreateTagsCommand: /* @__PURE__ */ __name(() => CreateTagsCommand, "CreateTagsCommand"),
      CreateTrafficMirrorFilterCommand: /* @__PURE__ */ __name(() => CreateTrafficMirrorFilterCommand, "CreateTrafficMirrorFilterCommand"),
      CreateTrafficMirrorFilterRuleCommand: /* @__PURE__ */ __name(() => CreateTrafficMirrorFilterRuleCommand, "CreateTrafficMirrorFilterRuleCommand"),
      CreateTrafficMirrorSessionCommand: /* @__PURE__ */ __name(() => CreateTrafficMirrorSessionCommand, "CreateTrafficMirrorSessionCommand"),
      CreateTrafficMirrorTargetCommand: /* @__PURE__ */ __name(() => CreateTrafficMirrorTargetCommand, "CreateTrafficMirrorTargetCommand"),
      CreateTransitGatewayCommand: /* @__PURE__ */ __name(() => CreateTransitGatewayCommand, "CreateTransitGatewayCommand"),
      CreateTransitGatewayConnectCommand: /* @__PURE__ */ __name(() => CreateTransitGatewayConnectCommand, "CreateTransitGatewayConnectCommand"),
      CreateTransitGatewayConnectPeerCommand: /* @__PURE__ */ __name(() => CreateTransitGatewayConnectPeerCommand, "CreateTransitGatewayConnectPeerCommand"),
      CreateTransitGatewayMulticastDomainCommand: /* @__PURE__ */ __name(() => CreateTransitGatewayMulticastDomainCommand, "CreateTransitGatewayMulticastDomainCommand"),
      CreateTransitGatewayPeeringAttachmentCommand: /* @__PURE__ */ __name(() => CreateTransitGatewayPeeringAttachmentCommand, "CreateTransitGatewayPeeringAttachmentCommand"),
      CreateTransitGatewayPolicyTableCommand: /* @__PURE__ */ __name(() => CreateTransitGatewayPolicyTableCommand, "CreateTransitGatewayPolicyTableCommand"),
      CreateTransitGatewayPrefixListReferenceCommand: /* @__PURE__ */ __name(() => CreateTransitGatewayPrefixListReferenceCommand, "CreateTransitGatewayPrefixListReferenceCommand"),
      CreateTransitGatewayRouteCommand: /* @__PURE__ */ __name(() => CreateTransitGatewayRouteCommand, "CreateTransitGatewayRouteCommand"),
      CreateTransitGatewayRouteTableAnnouncementCommand: /* @__PURE__ */ __name(() => CreateTransitGatewayRouteTableAnnouncementCommand, "CreateTransitGatewayRouteTableAnnouncementCommand"),
      CreateTransitGatewayRouteTableCommand: /* @__PURE__ */ __name(() => CreateTransitGatewayRouteTableCommand, "CreateTransitGatewayRouteTableCommand"),
      CreateTransitGatewayVpcAttachmentCommand: /* @__PURE__ */ __name(() => CreateTransitGatewayVpcAttachmentCommand, "CreateTransitGatewayVpcAttachmentCommand"),
      CreateVerifiedAccessEndpointCommand: /* @__PURE__ */ __name(() => CreateVerifiedAccessEndpointCommand, "CreateVerifiedAccessEndpointCommand"),
      CreateVerifiedAccessGroupCommand: /* @__PURE__ */ __name(() => CreateVerifiedAccessGroupCommand, "CreateVerifiedAccessGroupCommand"),
      CreateVerifiedAccessInstanceCommand: /* @__PURE__ */ __name(() => CreateVerifiedAccessInstanceCommand, "CreateVerifiedAccessInstanceCommand"),
      CreateVerifiedAccessNativeApplicationOidcOptionsFilterSensitiveLog: /* @__PURE__ */ __name(() => CreateVerifiedAccessNativeApplicationOidcOptionsFilterSensitiveLog, "CreateVerifiedAccessNativeApplicationOidcOptionsFilterSensitiveLog"),
      CreateVerifiedAccessTrustProviderCommand: /* @__PURE__ */ __name(() => CreateVerifiedAccessTrustProviderCommand, "CreateVerifiedAccessTrustProviderCommand"),
      CreateVerifiedAccessTrustProviderOidcOptionsFilterSensitiveLog: /* @__PURE__ */ __name(() => CreateVerifiedAccessTrustProviderOidcOptionsFilterSensitiveLog, "CreateVerifiedAccessTrustProviderOidcOptionsFilterSensitiveLog"),
      CreateVerifiedAccessTrustProviderRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => CreateVerifiedAccessTrustProviderRequestFilterSensitiveLog, "CreateVerifiedAccessTrustProviderRequestFilterSensitiveLog"),
      CreateVerifiedAccessTrustProviderResultFilterSensitiveLog: /* @__PURE__ */ __name(() => CreateVerifiedAccessTrustProviderResultFilterSensitiveLog, "CreateVerifiedAccessTrustProviderResultFilterSensitiveLog"),
      CreateVolumeCommand: /* @__PURE__ */ __name(() => CreateVolumeCommand, "CreateVolumeCommand"),
      CreateVpcBlockPublicAccessExclusionCommand: /* @__PURE__ */ __name(() => CreateVpcBlockPublicAccessExclusionCommand, "CreateVpcBlockPublicAccessExclusionCommand"),
      CreateVpcCommand: /* @__PURE__ */ __name(() => CreateVpcCommand, "CreateVpcCommand"),
      CreateVpcEndpointCommand: /* @__PURE__ */ __name(() => CreateVpcEndpointCommand, "CreateVpcEndpointCommand"),
      CreateVpcEndpointConnectionNotificationCommand: /* @__PURE__ */ __name(() => CreateVpcEndpointConnectionNotificationCommand, "CreateVpcEndpointConnectionNotificationCommand"),
      CreateVpcEndpointServiceConfigurationCommand: /* @__PURE__ */ __name(() => CreateVpcEndpointServiceConfigurationCommand, "CreateVpcEndpointServiceConfigurationCommand"),
      CreateVpcPeeringConnectionCommand: /* @__PURE__ */ __name(() => CreateVpcPeeringConnectionCommand, "CreateVpcPeeringConnectionCommand"),
      CreateVpnConnectionCommand: /* @__PURE__ */ __name(() => CreateVpnConnectionCommand, "CreateVpnConnectionCommand"),
      CreateVpnConnectionRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => CreateVpnConnectionRequestFilterSensitiveLog, "CreateVpnConnectionRequestFilterSensitiveLog"),
      CreateVpnConnectionResultFilterSensitiveLog: /* @__PURE__ */ __name(() => CreateVpnConnectionResultFilterSensitiveLog, "CreateVpnConnectionResultFilterSensitiveLog"),
      CreateVpnConnectionRouteCommand: /* @__PURE__ */ __name(() => CreateVpnConnectionRouteCommand, "CreateVpnConnectionRouteCommand"),
      CreateVpnGatewayCommand: /* @__PURE__ */ __name(() => CreateVpnGatewayCommand, "CreateVpnGatewayCommand"),
      CurrencyCodeValues: /* @__PURE__ */ __name(() => CurrencyCodeValues, "CurrencyCodeValues"),
      DatafeedSubscriptionState: /* @__PURE__ */ __name(() => DatafeedSubscriptionState, "DatafeedSubscriptionState"),
      DefaultInstanceMetadataEndpointState: /* @__PURE__ */ __name(() => DefaultInstanceMetadataEndpointState, "DefaultInstanceMetadataEndpointState"),
      DefaultInstanceMetadataTagsState: /* @__PURE__ */ __name(() => DefaultInstanceMetadataTagsState, "DefaultInstanceMetadataTagsState"),
      DefaultRouteTableAssociationValue: /* @__PURE__ */ __name(() => DefaultRouteTableAssociationValue, "DefaultRouteTableAssociationValue"),
      DefaultRouteTablePropagationValue: /* @__PURE__ */ __name(() => DefaultRouteTablePropagationValue, "DefaultRouteTablePropagationValue"),
      DefaultTargetCapacityType: /* @__PURE__ */ __name(() => DefaultTargetCapacityType, "DefaultTargetCapacityType"),
      DeleteCarrierGatewayCommand: /* @__PURE__ */ __name(() => DeleteCarrierGatewayCommand, "DeleteCarrierGatewayCommand"),
      DeleteClientVpnEndpointCommand: /* @__PURE__ */ __name(() => DeleteClientVpnEndpointCommand, "DeleteClientVpnEndpointCommand"),
      DeleteClientVpnRouteCommand: /* @__PURE__ */ __name(() => DeleteClientVpnRouteCommand, "DeleteClientVpnRouteCommand"),
      DeleteCoipCidrCommand: /* @__PURE__ */ __name(() => DeleteCoipCidrCommand, "DeleteCoipCidrCommand"),
      DeleteCoipPoolCommand: /* @__PURE__ */ __name(() => DeleteCoipPoolCommand, "DeleteCoipPoolCommand"),
      DeleteCustomerGatewayCommand: /* @__PURE__ */ __name(() => DeleteCustomerGatewayCommand, "DeleteCustomerGatewayCommand"),
      DeleteDhcpOptionsCommand: /* @__PURE__ */ __name(() => DeleteDhcpOptionsCommand, "DeleteDhcpOptionsCommand"),
      DeleteEgressOnlyInternetGatewayCommand: /* @__PURE__ */ __name(() => DeleteEgressOnlyInternetGatewayCommand, "DeleteEgressOnlyInternetGatewayCommand"),
      DeleteFleetErrorCode: /* @__PURE__ */ __name(() => DeleteFleetErrorCode, "DeleteFleetErrorCode"),
      DeleteFleetsCommand: /* @__PURE__ */ __name(() => DeleteFleetsCommand, "DeleteFleetsCommand"),
      DeleteFlowLogsCommand: /* @__PURE__ */ __name(() => DeleteFlowLogsCommand, "DeleteFlowLogsCommand"),
      DeleteFpgaImageCommand: /* @__PURE__ */ __name(() => DeleteFpgaImageCommand, "DeleteFpgaImageCommand"),
      DeleteImageUsageReportCommand: /* @__PURE__ */ __name(() => DeleteImageUsageReportCommand, "DeleteImageUsageReportCommand"),
      DeleteInstanceConnectEndpointCommand: /* @__PURE__ */ __name(() => DeleteInstanceConnectEndpointCommand, "DeleteInstanceConnectEndpointCommand"),
      DeleteInstanceEventWindowCommand: /* @__PURE__ */ __name(() => DeleteInstanceEventWindowCommand, "DeleteInstanceEventWindowCommand"),
      DeleteInternetGatewayCommand: /* @__PURE__ */ __name(() => DeleteInternetGatewayCommand, "DeleteInternetGatewayCommand"),
      DeleteIpamCommand: /* @__PURE__ */ __name(() => DeleteIpamCommand, "DeleteIpamCommand"),
      DeleteIpamExternalResourceVerificationTokenCommand: /* @__PURE__ */ __name(() => DeleteIpamExternalResourceVerificationTokenCommand, "DeleteIpamExternalResourceVerificationTokenCommand"),
      DeleteIpamPoolCommand: /* @__PURE__ */ __name(() => DeleteIpamPoolCommand, "DeleteIpamPoolCommand"),
      DeleteIpamResourceDiscoveryCommand: /* @__PURE__ */ __name(() => DeleteIpamResourceDiscoveryCommand, "DeleteIpamResourceDiscoveryCommand"),
      DeleteIpamScopeCommand: /* @__PURE__ */ __name(() => DeleteIpamScopeCommand, "DeleteIpamScopeCommand"),
      DeleteKeyPairCommand: /* @__PURE__ */ __name(() => DeleteKeyPairCommand, "DeleteKeyPairCommand"),
      DeleteLaunchTemplateCommand: /* @__PURE__ */ __name(() => DeleteLaunchTemplateCommand, "DeleteLaunchTemplateCommand"),
      DeleteLaunchTemplateVersionsCommand: /* @__PURE__ */ __name(() => DeleteLaunchTemplateVersionsCommand, "DeleteLaunchTemplateVersionsCommand"),
      DeleteLocalGatewayRouteCommand: /* @__PURE__ */ __name(() => DeleteLocalGatewayRouteCommand, "DeleteLocalGatewayRouteCommand"),
      DeleteLocalGatewayRouteTableCommand: /* @__PURE__ */ __name(() => DeleteLocalGatewayRouteTableCommand, "DeleteLocalGatewayRouteTableCommand"),
      DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationCommand: /* @__PURE__ */ __name(() => DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationCommand, "DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationCommand"),
      DeleteLocalGatewayRouteTableVpcAssociationCommand: /* @__PURE__ */ __name(() => DeleteLocalGatewayRouteTableVpcAssociationCommand, "DeleteLocalGatewayRouteTableVpcAssociationCommand"),
      DeleteLocalGatewayVirtualInterfaceCommand: /* @__PURE__ */ __name(() => DeleteLocalGatewayVirtualInterfaceCommand, "DeleteLocalGatewayVirtualInterfaceCommand"),
      DeleteLocalGatewayVirtualInterfaceGroupCommand: /* @__PURE__ */ __name(() => DeleteLocalGatewayVirtualInterfaceGroupCommand, "DeleteLocalGatewayVirtualInterfaceGroupCommand"),
      DeleteManagedPrefixListCommand: /* @__PURE__ */ __name(() => DeleteManagedPrefixListCommand, "DeleteManagedPrefixListCommand"),
      DeleteNatGatewayCommand: /* @__PURE__ */ __name(() => DeleteNatGatewayCommand, "DeleteNatGatewayCommand"),
      DeleteNetworkAclCommand: /* @__PURE__ */ __name(() => DeleteNetworkAclCommand, "DeleteNetworkAclCommand"),
      DeleteNetworkAclEntryCommand: /* @__PURE__ */ __name(() => DeleteNetworkAclEntryCommand, "DeleteNetworkAclEntryCommand"),
      DeleteNetworkInsightsAccessScopeAnalysisCommand: /* @__PURE__ */ __name(() => DeleteNetworkInsightsAccessScopeAnalysisCommand, "DeleteNetworkInsightsAccessScopeAnalysisCommand"),
      DeleteNetworkInsightsAccessScopeCommand: /* @__PURE__ */ __name(() => DeleteNetworkInsightsAccessScopeCommand, "DeleteNetworkInsightsAccessScopeCommand"),
      DeleteNetworkInsightsAnalysisCommand: /* @__PURE__ */ __name(() => DeleteNetworkInsightsAnalysisCommand, "DeleteNetworkInsightsAnalysisCommand"),
      DeleteNetworkInsightsPathCommand: /* @__PURE__ */ __name(() => DeleteNetworkInsightsPathCommand, "DeleteNetworkInsightsPathCommand"),
      DeleteNetworkInterfaceCommand: /* @__PURE__ */ __name(() => DeleteNetworkInterfaceCommand, "DeleteNetworkInterfaceCommand"),
      DeleteNetworkInterfacePermissionCommand: /* @__PURE__ */ __name(() => DeleteNetworkInterfacePermissionCommand, "DeleteNetworkInterfacePermissionCommand"),
      DeletePlacementGroupCommand: /* @__PURE__ */ __name(() => DeletePlacementGroupCommand, "DeletePlacementGroupCommand"),
      DeletePublicIpv4PoolCommand: /* @__PURE__ */ __name(() => DeletePublicIpv4PoolCommand, "DeletePublicIpv4PoolCommand"),
      DeleteQueuedReservedInstancesCommand: /* @__PURE__ */ __name(() => DeleteQueuedReservedInstancesCommand, "DeleteQueuedReservedInstancesCommand"),
      DeleteQueuedReservedInstancesErrorCode: /* @__PURE__ */ __name(() => DeleteQueuedReservedInstancesErrorCode, "DeleteQueuedReservedInstancesErrorCode"),
      DeleteRouteCommand: /* @__PURE__ */ __name(() => DeleteRouteCommand, "DeleteRouteCommand"),
      DeleteRouteServerCommand: /* @__PURE__ */ __name(() => DeleteRouteServerCommand, "DeleteRouteServerCommand"),
      DeleteRouteServerEndpointCommand: /* @__PURE__ */ __name(() => DeleteRouteServerEndpointCommand, "DeleteRouteServerEndpointCommand"),
      DeleteRouteServerPeerCommand: /* @__PURE__ */ __name(() => DeleteRouteServerPeerCommand, "DeleteRouteServerPeerCommand"),
      DeleteRouteTableCommand: /* @__PURE__ */ __name(() => DeleteRouteTableCommand, "DeleteRouteTableCommand"),
      DeleteSecurityGroupCommand: /* @__PURE__ */ __name(() => DeleteSecurityGroupCommand, "DeleteSecurityGroupCommand"),
      DeleteSnapshotCommand: /* @__PURE__ */ __name(() => DeleteSnapshotCommand, "DeleteSnapshotCommand"),
      DeleteSpotDatafeedSubscriptionCommand: /* @__PURE__ */ __name(() => DeleteSpotDatafeedSubscriptionCommand, "DeleteSpotDatafeedSubscriptionCommand"),
      DeleteSubnetCidrReservationCommand: /* @__PURE__ */ __name(() => DeleteSubnetCidrReservationCommand, "DeleteSubnetCidrReservationCommand"),
      DeleteSubnetCommand: /* @__PURE__ */ __name(() => DeleteSubnetCommand, "DeleteSubnetCommand"),
      DeleteTagsCommand: /* @__PURE__ */ __name(() => DeleteTagsCommand, "DeleteTagsCommand"),
      DeleteTrafficMirrorFilterCommand: /* @__PURE__ */ __name(() => DeleteTrafficMirrorFilterCommand, "DeleteTrafficMirrorFilterCommand"),
      DeleteTrafficMirrorFilterRuleCommand: /* @__PURE__ */ __name(() => DeleteTrafficMirrorFilterRuleCommand, "DeleteTrafficMirrorFilterRuleCommand"),
      DeleteTrafficMirrorSessionCommand: /* @__PURE__ */ __name(() => DeleteTrafficMirrorSessionCommand, "DeleteTrafficMirrorSessionCommand"),
      DeleteTrafficMirrorTargetCommand: /* @__PURE__ */ __name(() => DeleteTrafficMirrorTargetCommand, "DeleteTrafficMirrorTargetCommand"),
      DeleteTransitGatewayCommand: /* @__PURE__ */ __name(() => DeleteTransitGatewayCommand, "DeleteTransitGatewayCommand"),
      DeleteTransitGatewayConnectCommand: /* @__PURE__ */ __name(() => DeleteTransitGatewayConnectCommand, "DeleteTransitGatewayConnectCommand"),
      DeleteTransitGatewayConnectPeerCommand: /* @__PURE__ */ __name(() => DeleteTransitGatewayConnectPeerCommand, "DeleteTransitGatewayConnectPeerCommand"),
      DeleteTransitGatewayMulticastDomainCommand: /* @__PURE__ */ __name(() => DeleteTransitGatewayMulticastDomainCommand, "DeleteTransitGatewayMulticastDomainCommand"),
      DeleteTransitGatewayPeeringAttachmentCommand: /* @__PURE__ */ __name(() => DeleteTransitGatewayPeeringAttachmentCommand, "DeleteTransitGatewayPeeringAttachmentCommand"),
      DeleteTransitGatewayPolicyTableCommand: /* @__PURE__ */ __name(() => DeleteTransitGatewayPolicyTableCommand, "DeleteTransitGatewayPolicyTableCommand"),
      DeleteTransitGatewayPrefixListReferenceCommand: /* @__PURE__ */ __name(() => DeleteTransitGatewayPrefixListReferenceCommand, "DeleteTransitGatewayPrefixListReferenceCommand"),
      DeleteTransitGatewayRouteCommand: /* @__PURE__ */ __name(() => DeleteTransitGatewayRouteCommand, "DeleteTransitGatewayRouteCommand"),
      DeleteTransitGatewayRouteTableAnnouncementCommand: /* @__PURE__ */ __name(() => DeleteTransitGatewayRouteTableAnnouncementCommand, "DeleteTransitGatewayRouteTableAnnouncementCommand"),
      DeleteTransitGatewayRouteTableCommand: /* @__PURE__ */ __name(() => DeleteTransitGatewayRouteTableCommand, "DeleteTransitGatewayRouteTableCommand"),
      DeleteTransitGatewayVpcAttachmentCommand: /* @__PURE__ */ __name(() => DeleteTransitGatewayVpcAttachmentCommand, "DeleteTransitGatewayVpcAttachmentCommand"),
      DeleteVerifiedAccessEndpointCommand: /* @__PURE__ */ __name(() => DeleteVerifiedAccessEndpointCommand, "DeleteVerifiedAccessEndpointCommand"),
      DeleteVerifiedAccessGroupCommand: /* @__PURE__ */ __name(() => DeleteVerifiedAccessGroupCommand, "DeleteVerifiedAccessGroupCommand"),
      DeleteVerifiedAccessInstanceCommand: /* @__PURE__ */ __name(() => DeleteVerifiedAccessInstanceCommand, "DeleteVerifiedAccessInstanceCommand"),
      DeleteVerifiedAccessTrustProviderCommand: /* @__PURE__ */ __name(() => DeleteVerifiedAccessTrustProviderCommand, "DeleteVerifiedAccessTrustProviderCommand"),
      DeleteVerifiedAccessTrustProviderResultFilterSensitiveLog: /* @__PURE__ */ __name(() => DeleteVerifiedAccessTrustProviderResultFilterSensitiveLog, "DeleteVerifiedAccessTrustProviderResultFilterSensitiveLog"),
      DeleteVolumeCommand: /* @__PURE__ */ __name(() => DeleteVolumeCommand, "DeleteVolumeCommand"),
      DeleteVpcBlockPublicAccessExclusionCommand: /* @__PURE__ */ __name(() => DeleteVpcBlockPublicAccessExclusionCommand, "DeleteVpcBlockPublicAccessExclusionCommand"),
      DeleteVpcCommand: /* @__PURE__ */ __name(() => DeleteVpcCommand, "DeleteVpcCommand"),
      DeleteVpcEndpointConnectionNotificationsCommand: /* @__PURE__ */ __name(() => DeleteVpcEndpointConnectionNotificationsCommand, "DeleteVpcEndpointConnectionNotificationsCommand"),
      DeleteVpcEndpointServiceConfigurationsCommand: /* @__PURE__ */ __name(() => DeleteVpcEndpointServiceConfigurationsCommand, "DeleteVpcEndpointServiceConfigurationsCommand"),
      DeleteVpcEndpointsCommand: /* @__PURE__ */ __name(() => DeleteVpcEndpointsCommand, "DeleteVpcEndpointsCommand"),
      DeleteVpcPeeringConnectionCommand: /* @__PURE__ */ __name(() => DeleteVpcPeeringConnectionCommand, "DeleteVpcPeeringConnectionCommand"),
      DeleteVpnConnectionCommand: /* @__PURE__ */ __name(() => DeleteVpnConnectionCommand, "DeleteVpnConnectionCommand"),
      DeleteVpnConnectionRouteCommand: /* @__PURE__ */ __name(() => DeleteVpnConnectionRouteCommand, "DeleteVpnConnectionRouteCommand"),
      DeleteVpnGatewayCommand: /* @__PURE__ */ __name(() => DeleteVpnGatewayCommand, "DeleteVpnGatewayCommand"),
      DeprovisionByoipCidrCommand: /* @__PURE__ */ __name(() => DeprovisionByoipCidrCommand, "DeprovisionByoipCidrCommand"),
      DeprovisionIpamByoasnCommand: /* @__PURE__ */ __name(() => DeprovisionIpamByoasnCommand, "DeprovisionIpamByoasnCommand"),
      DeprovisionIpamPoolCidrCommand: /* @__PURE__ */ __name(() => DeprovisionIpamPoolCidrCommand, "DeprovisionIpamPoolCidrCommand"),
      DeprovisionPublicIpv4PoolCidrCommand: /* @__PURE__ */ __name(() => DeprovisionPublicIpv4PoolCidrCommand, "DeprovisionPublicIpv4PoolCidrCommand"),
      DeregisterImageCommand: /* @__PURE__ */ __name(() => DeregisterImageCommand, "DeregisterImageCommand"),
      DeregisterInstanceEventNotificationAttributesCommand: /* @__PURE__ */ __name(() => DeregisterInstanceEventNotificationAttributesCommand, "DeregisterInstanceEventNotificationAttributesCommand"),
      DeregisterTransitGatewayMulticastGroupMembersCommand: /* @__PURE__ */ __name(() => DeregisterTransitGatewayMulticastGroupMembersCommand, "DeregisterTransitGatewayMulticastGroupMembersCommand"),
      DeregisterTransitGatewayMulticastGroupSourcesCommand: /* @__PURE__ */ __name(() => DeregisterTransitGatewayMulticastGroupSourcesCommand, "DeregisterTransitGatewayMulticastGroupSourcesCommand"),
      DescribeAccountAttributesCommand: /* @__PURE__ */ __name(() => DescribeAccountAttributesCommand, "DescribeAccountAttributesCommand"),
      DescribeAddressTransfersCommand: /* @__PURE__ */ __name(() => DescribeAddressTransfersCommand, "DescribeAddressTransfersCommand"),
      DescribeAddressesAttributeCommand: /* @__PURE__ */ __name(() => DescribeAddressesAttributeCommand, "DescribeAddressesAttributeCommand"),
      DescribeAddressesCommand: /* @__PURE__ */ __name(() => DescribeAddressesCommand, "DescribeAddressesCommand"),
      DescribeAggregateIdFormatCommand: /* @__PURE__ */ __name(() => DescribeAggregateIdFormatCommand, "DescribeAggregateIdFormatCommand"),
      DescribeAvailabilityZonesCommand: /* @__PURE__ */ __name(() => DescribeAvailabilityZonesCommand2, "DescribeAvailabilityZonesCommand"),
      DescribeAwsNetworkPerformanceMetricSubscriptionsCommand: /* @__PURE__ */ __name(() => DescribeAwsNetworkPerformanceMetricSubscriptionsCommand, "DescribeAwsNetworkPerformanceMetricSubscriptionsCommand"),
      DescribeBundleTasksCommand: /* @__PURE__ */ __name(() => DescribeBundleTasksCommand, "DescribeBundleTasksCommand"),
      DescribeBundleTasksResultFilterSensitiveLog: /* @__PURE__ */ __name(() => DescribeBundleTasksResultFilterSensitiveLog, "DescribeBundleTasksResultFilterSensitiveLog"),
      DescribeByoipCidrsCommand: /* @__PURE__ */ __name(() => DescribeByoipCidrsCommand, "DescribeByoipCidrsCommand"),
      DescribeCapacityBlockExtensionHistoryCommand: /* @__PURE__ */ __name(() => DescribeCapacityBlockExtensionHistoryCommand, "DescribeCapacityBlockExtensionHistoryCommand"),
      DescribeCapacityBlockExtensionOfferingsCommand: /* @__PURE__ */ __name(() => DescribeCapacityBlockExtensionOfferingsCommand, "DescribeCapacityBlockExtensionOfferingsCommand"),
      DescribeCapacityBlockOfferingsCommand: /* @__PURE__ */ __name(() => DescribeCapacityBlockOfferingsCommand, "DescribeCapacityBlockOfferingsCommand"),
      DescribeCapacityBlockStatusCommand: /* @__PURE__ */ __name(() => DescribeCapacityBlockStatusCommand, "DescribeCapacityBlockStatusCommand"),
      DescribeCapacityBlocksCommand: /* @__PURE__ */ __name(() => DescribeCapacityBlocksCommand, "DescribeCapacityBlocksCommand"),
      DescribeCapacityReservationBillingRequestsCommand: /* @__PURE__ */ __name(() => DescribeCapacityReservationBillingRequestsCommand, "DescribeCapacityReservationBillingRequestsCommand"),
      DescribeCapacityReservationFleetsCommand: /* @__PURE__ */ __name(() => DescribeCapacityReservationFleetsCommand, "DescribeCapacityReservationFleetsCommand"),
      DescribeCapacityReservationsCommand: /* @__PURE__ */ __name(() => DescribeCapacityReservationsCommand, "DescribeCapacityReservationsCommand"),
      DescribeCarrierGatewaysCommand: /* @__PURE__ */ __name(() => DescribeCarrierGatewaysCommand, "DescribeCarrierGatewaysCommand"),
      DescribeClassicLinkInstancesCommand: /* @__PURE__ */ __name(() => DescribeClassicLinkInstancesCommand, "DescribeClassicLinkInstancesCommand"),
      DescribeClientVpnAuthorizationRulesCommand: /* @__PURE__ */ __name(() => DescribeClientVpnAuthorizationRulesCommand, "DescribeClientVpnAuthorizationRulesCommand"),
      DescribeClientVpnConnectionsCommand: /* @__PURE__ */ __name(() => DescribeClientVpnConnectionsCommand, "DescribeClientVpnConnectionsCommand"),
      DescribeClientVpnEndpointsCommand: /* @__PURE__ */ __name(() => DescribeClientVpnEndpointsCommand, "DescribeClientVpnEndpointsCommand"),
      DescribeClientVpnRoutesCommand: /* @__PURE__ */ __name(() => DescribeClientVpnRoutesCommand, "DescribeClientVpnRoutesCommand"),
      DescribeClientVpnTargetNetworksCommand: /* @__PURE__ */ __name(() => DescribeClientVpnTargetNetworksCommand, "DescribeClientVpnTargetNetworksCommand"),
      DescribeCoipPoolsCommand: /* @__PURE__ */ __name(() => DescribeCoipPoolsCommand, "DescribeCoipPoolsCommand"),
      DescribeConversionTasksCommand: /* @__PURE__ */ __name(() => DescribeConversionTasksCommand, "DescribeConversionTasksCommand"),
      DescribeConversionTasksResultFilterSensitiveLog: /* @__PURE__ */ __name(() => DescribeConversionTasksResultFilterSensitiveLog, "DescribeConversionTasksResultFilterSensitiveLog"),
      DescribeCustomerGatewaysCommand: /* @__PURE__ */ __name(() => DescribeCustomerGatewaysCommand, "DescribeCustomerGatewaysCommand"),
      DescribeDeclarativePoliciesReportsCommand: /* @__PURE__ */ __name(() => DescribeDeclarativePoliciesReportsCommand, "DescribeDeclarativePoliciesReportsCommand"),
      DescribeDhcpOptionsCommand: /* @__PURE__ */ __name(() => DescribeDhcpOptionsCommand, "DescribeDhcpOptionsCommand"),
      DescribeEgressOnlyInternetGatewaysCommand: /* @__PURE__ */ __name(() => DescribeEgressOnlyInternetGatewaysCommand, "DescribeEgressOnlyInternetGatewaysCommand"),
      DescribeElasticGpusCommand: /* @__PURE__ */ __name(() => DescribeElasticGpusCommand, "DescribeElasticGpusCommand"),
      DescribeExportImageTasksCommand: /* @__PURE__ */ __name(() => DescribeExportImageTasksCommand, "DescribeExportImageTasksCommand"),
      DescribeExportTasksCommand: /* @__PURE__ */ __name(() => DescribeExportTasksCommand, "DescribeExportTasksCommand"),
      DescribeFastLaunchImagesCommand: /* @__PURE__ */ __name(() => DescribeFastLaunchImagesCommand, "DescribeFastLaunchImagesCommand"),
      DescribeFastSnapshotRestoresCommand: /* @__PURE__ */ __name(() => DescribeFastSnapshotRestoresCommand, "DescribeFastSnapshotRestoresCommand"),
      DescribeFleetHistoryCommand: /* @__PURE__ */ __name(() => DescribeFleetHistoryCommand, "DescribeFleetHistoryCommand"),
      DescribeFleetInstancesCommand: /* @__PURE__ */ __name(() => DescribeFleetInstancesCommand, "DescribeFleetInstancesCommand"),
      DescribeFleetsCommand: /* @__PURE__ */ __name(() => DescribeFleetsCommand, "DescribeFleetsCommand"),
      DescribeFlowLogsCommand: /* @__PURE__ */ __name(() => DescribeFlowLogsCommand, "DescribeFlowLogsCommand"),
      DescribeFpgaImageAttributeCommand: /* @__PURE__ */ __name(() => DescribeFpgaImageAttributeCommand, "DescribeFpgaImageAttributeCommand"),
      DescribeFpgaImagesCommand: /* @__PURE__ */ __name(() => DescribeFpgaImagesCommand, "DescribeFpgaImagesCommand"),
      DescribeHostReservationOfferingsCommand: /* @__PURE__ */ __name(() => DescribeHostReservationOfferingsCommand, "DescribeHostReservationOfferingsCommand"),
      DescribeHostReservationsCommand: /* @__PURE__ */ __name(() => DescribeHostReservationsCommand, "DescribeHostReservationsCommand"),
      DescribeHostsCommand: /* @__PURE__ */ __name(() => DescribeHostsCommand, "DescribeHostsCommand"),
      DescribeIamInstanceProfileAssociationsCommand: /* @__PURE__ */ __name(() => DescribeIamInstanceProfileAssociationsCommand, "DescribeIamInstanceProfileAssociationsCommand"),
      DescribeIdFormatCommand: /* @__PURE__ */ __name(() => DescribeIdFormatCommand, "DescribeIdFormatCommand"),
      DescribeIdentityIdFormatCommand: /* @__PURE__ */ __name(() => DescribeIdentityIdFormatCommand, "DescribeIdentityIdFormatCommand"),
      DescribeImageAttributeCommand: /* @__PURE__ */ __name(() => DescribeImageAttributeCommand, "DescribeImageAttributeCommand"),
      DescribeImageReferencesCommand: /* @__PURE__ */ __name(() => DescribeImageReferencesCommand, "DescribeImageReferencesCommand"),
      DescribeImageUsageReportEntriesCommand: /* @__PURE__ */ __name(() => DescribeImageUsageReportEntriesCommand, "DescribeImageUsageReportEntriesCommand"),
      DescribeImageUsageReportsCommand: /* @__PURE__ */ __name(() => DescribeImageUsageReportsCommand, "DescribeImageUsageReportsCommand"),
      DescribeImagesCommand: /* @__PURE__ */ __name(() => DescribeImagesCommand3, "DescribeImagesCommand"),
      DescribeImportImageTasksCommand: /* @__PURE__ */ __name(() => DescribeImportImageTasksCommand, "DescribeImportImageTasksCommand"),
      DescribeImportImageTasksResultFilterSensitiveLog: /* @__PURE__ */ __name(() => DescribeImportImageTasksResultFilterSensitiveLog, "DescribeImportImageTasksResultFilterSensitiveLog"),
      DescribeImportSnapshotTasksCommand: /* @__PURE__ */ __name(() => DescribeImportSnapshotTasksCommand, "DescribeImportSnapshotTasksCommand"),
      DescribeImportSnapshotTasksResultFilterSensitiveLog: /* @__PURE__ */ __name(() => DescribeImportSnapshotTasksResultFilterSensitiveLog, "DescribeImportSnapshotTasksResultFilterSensitiveLog"),
      DescribeInstanceAttributeCommand: /* @__PURE__ */ __name(() => DescribeInstanceAttributeCommand, "DescribeInstanceAttributeCommand"),
      DescribeInstanceConnectEndpointsCommand: /* @__PURE__ */ __name(() => DescribeInstanceConnectEndpointsCommand, "DescribeInstanceConnectEndpointsCommand"),
      DescribeInstanceCreditSpecificationsCommand: /* @__PURE__ */ __name(() => DescribeInstanceCreditSpecificationsCommand, "DescribeInstanceCreditSpecificationsCommand"),
      DescribeInstanceEventNotificationAttributesCommand: /* @__PURE__ */ __name(() => DescribeInstanceEventNotificationAttributesCommand, "DescribeInstanceEventNotificationAttributesCommand"),
      DescribeInstanceEventWindowsCommand: /* @__PURE__ */ __name(() => DescribeInstanceEventWindowsCommand, "DescribeInstanceEventWindowsCommand"),
      DescribeInstanceImageMetadataCommand: /* @__PURE__ */ __name(() => DescribeInstanceImageMetadataCommand, "DescribeInstanceImageMetadataCommand"),
      DescribeInstanceStatusCommand: /* @__PURE__ */ __name(() => DescribeInstanceStatusCommand, "DescribeInstanceStatusCommand"),
      DescribeInstanceTopologyCommand: /* @__PURE__ */ __name(() => DescribeInstanceTopologyCommand, "DescribeInstanceTopologyCommand"),
      DescribeInstanceTypeOfferingsCommand: /* @__PURE__ */ __name(() => DescribeInstanceTypeOfferingsCommand, "DescribeInstanceTypeOfferingsCommand"),
      DescribeInstanceTypesCommand: /* @__PURE__ */ __name(() => DescribeInstanceTypesCommand, "DescribeInstanceTypesCommand"),
      DescribeInstancesCommand: /* @__PURE__ */ __name(() => DescribeInstancesCommand2, "DescribeInstancesCommand"),
      DescribeInternetGatewaysCommand: /* @__PURE__ */ __name(() => DescribeInternetGatewaysCommand, "DescribeInternetGatewaysCommand"),
      DescribeIpamByoasnCommand: /* @__PURE__ */ __name(() => DescribeIpamByoasnCommand, "DescribeIpamByoasnCommand"),
      DescribeIpamExternalResourceVerificationTokensCommand: /* @__PURE__ */ __name(() => DescribeIpamExternalResourceVerificationTokensCommand, "DescribeIpamExternalResourceVerificationTokensCommand"),
      DescribeIpamPoolsCommand: /* @__PURE__ */ __name(() => DescribeIpamPoolsCommand, "DescribeIpamPoolsCommand"),
      DescribeIpamResourceDiscoveriesCommand: /* @__PURE__ */ __name(() => DescribeIpamResourceDiscoveriesCommand, "DescribeIpamResourceDiscoveriesCommand"),
      DescribeIpamResourceDiscoveryAssociationsCommand: /* @__PURE__ */ __name(() => DescribeIpamResourceDiscoveryAssociationsCommand, "DescribeIpamResourceDiscoveryAssociationsCommand"),
      DescribeIpamScopesCommand: /* @__PURE__ */ __name(() => DescribeIpamScopesCommand, "DescribeIpamScopesCommand"),
      DescribeIpamsCommand: /* @__PURE__ */ __name(() => DescribeIpamsCommand, "DescribeIpamsCommand"),
      DescribeIpv6PoolsCommand: /* @__PURE__ */ __name(() => DescribeIpv6PoolsCommand, "DescribeIpv6PoolsCommand"),
      DescribeKeyPairsCommand: /* @__PURE__ */ __name(() => DescribeKeyPairsCommand, "DescribeKeyPairsCommand"),
      DescribeLaunchTemplateVersionsCommand: /* @__PURE__ */ __name(() => DescribeLaunchTemplateVersionsCommand, "DescribeLaunchTemplateVersionsCommand"),
      DescribeLaunchTemplateVersionsResultFilterSensitiveLog: /* @__PURE__ */ __name(() => DescribeLaunchTemplateVersionsResultFilterSensitiveLog, "DescribeLaunchTemplateVersionsResultFilterSensitiveLog"),
      DescribeLaunchTemplatesCommand: /* @__PURE__ */ __name(() => DescribeLaunchTemplatesCommand, "DescribeLaunchTemplatesCommand"),
      DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsCommand: /* @__PURE__ */ __name(() => DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsCommand, "DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsCommand"),
      DescribeLocalGatewayRouteTableVpcAssociationsCommand: /* @__PURE__ */ __name(() => DescribeLocalGatewayRouteTableVpcAssociationsCommand, "DescribeLocalGatewayRouteTableVpcAssociationsCommand"),
      DescribeLocalGatewayRouteTablesCommand: /* @__PURE__ */ __name(() => DescribeLocalGatewayRouteTablesCommand, "DescribeLocalGatewayRouteTablesCommand"),
      DescribeLocalGatewayVirtualInterfaceGroupsCommand: /* @__PURE__ */ __name(() => DescribeLocalGatewayVirtualInterfaceGroupsCommand, "DescribeLocalGatewayVirtualInterfaceGroupsCommand"),
      DescribeLocalGatewayVirtualInterfacesCommand: /* @__PURE__ */ __name(() => DescribeLocalGatewayVirtualInterfacesCommand, "DescribeLocalGatewayVirtualInterfacesCommand"),
      DescribeLocalGatewaysCommand: /* @__PURE__ */ __name(() => DescribeLocalGatewaysCommand, "DescribeLocalGatewaysCommand"),
      DescribeLockedSnapshotsCommand: /* @__PURE__ */ __name(() => DescribeLockedSnapshotsCommand, "DescribeLockedSnapshotsCommand"),
      DescribeMacHostsCommand: /* @__PURE__ */ __name(() => DescribeMacHostsCommand, "DescribeMacHostsCommand"),
      DescribeMacModificationTasksCommand: /* @__PURE__ */ __name(() => DescribeMacModificationTasksCommand, "DescribeMacModificationTasksCommand"),
      DescribeManagedPrefixListsCommand: /* @__PURE__ */ __name(() => DescribeManagedPrefixListsCommand, "DescribeManagedPrefixListsCommand"),
      DescribeMovingAddressesCommand: /* @__PURE__ */ __name(() => DescribeMovingAddressesCommand, "DescribeMovingAddressesCommand"),
      DescribeNatGatewaysCommand: /* @__PURE__ */ __name(() => DescribeNatGatewaysCommand, "DescribeNatGatewaysCommand"),
      DescribeNetworkAclsCommand: /* @__PURE__ */ __name(() => DescribeNetworkAclsCommand, "DescribeNetworkAclsCommand"),
      DescribeNetworkInsightsAccessScopeAnalysesCommand: /* @__PURE__ */ __name(() => DescribeNetworkInsightsAccessScopeAnalysesCommand, "DescribeNetworkInsightsAccessScopeAnalysesCommand"),
      DescribeNetworkInsightsAccessScopesCommand: /* @__PURE__ */ __name(() => DescribeNetworkInsightsAccessScopesCommand, "DescribeNetworkInsightsAccessScopesCommand"),
      DescribeNetworkInsightsAnalysesCommand: /* @__PURE__ */ __name(() => DescribeNetworkInsightsAnalysesCommand, "DescribeNetworkInsightsAnalysesCommand"),
      DescribeNetworkInsightsPathsCommand: /* @__PURE__ */ __name(() => DescribeNetworkInsightsPathsCommand, "DescribeNetworkInsightsPathsCommand"),
      DescribeNetworkInterfaceAttributeCommand: /* @__PURE__ */ __name(() => DescribeNetworkInterfaceAttributeCommand, "DescribeNetworkInterfaceAttributeCommand"),
      DescribeNetworkInterfacePermissionsCommand: /* @__PURE__ */ __name(() => DescribeNetworkInterfacePermissionsCommand, "DescribeNetworkInterfacePermissionsCommand"),
      DescribeNetworkInterfacesCommand: /* @__PURE__ */ __name(() => DescribeNetworkInterfacesCommand, "DescribeNetworkInterfacesCommand"),
      DescribeOutpostLagsCommand: /* @__PURE__ */ __name(() => DescribeOutpostLagsCommand, "DescribeOutpostLagsCommand"),
      DescribePlacementGroupsCommand: /* @__PURE__ */ __name(() => DescribePlacementGroupsCommand, "DescribePlacementGroupsCommand"),
      DescribePrefixListsCommand: /* @__PURE__ */ __name(() => DescribePrefixListsCommand, "DescribePrefixListsCommand"),
      DescribePrincipalIdFormatCommand: /* @__PURE__ */ __name(() => DescribePrincipalIdFormatCommand, "DescribePrincipalIdFormatCommand"),
      DescribePublicIpv4PoolsCommand: /* @__PURE__ */ __name(() => DescribePublicIpv4PoolsCommand, "DescribePublicIpv4PoolsCommand"),
      DescribeRegionsCommand: /* @__PURE__ */ __name(() => DescribeRegionsCommand, "DescribeRegionsCommand"),
      DescribeReplaceRootVolumeTasksCommand: /* @__PURE__ */ __name(() => DescribeReplaceRootVolumeTasksCommand, "DescribeReplaceRootVolumeTasksCommand"),
      DescribeReservedInstancesCommand: /* @__PURE__ */ __name(() => DescribeReservedInstancesCommand, "DescribeReservedInstancesCommand"),
      DescribeReservedInstancesListingsCommand: /* @__PURE__ */ __name(() => DescribeReservedInstancesListingsCommand, "DescribeReservedInstancesListingsCommand"),
      DescribeReservedInstancesModificationsCommand: /* @__PURE__ */ __name(() => DescribeReservedInstancesModificationsCommand, "DescribeReservedInstancesModificationsCommand"),
      DescribeReservedInstancesOfferingsCommand: /* @__PURE__ */ __name(() => DescribeReservedInstancesOfferingsCommand, "DescribeReservedInstancesOfferingsCommand"),
      DescribeRouteServerEndpointsCommand: /* @__PURE__ */ __name(() => DescribeRouteServerEndpointsCommand, "DescribeRouteServerEndpointsCommand"),
      DescribeRouteServerPeersCommand: /* @__PURE__ */ __name(() => DescribeRouteServerPeersCommand, "DescribeRouteServerPeersCommand"),
      DescribeRouteServersCommand: /* @__PURE__ */ __name(() => DescribeRouteServersCommand, "DescribeRouteServersCommand"),
      DescribeRouteTablesCommand: /* @__PURE__ */ __name(() => DescribeRouteTablesCommand2, "DescribeRouteTablesCommand"),
      DescribeScheduledInstanceAvailabilityCommand: /* @__PURE__ */ __name(() => DescribeScheduledInstanceAvailabilityCommand, "DescribeScheduledInstanceAvailabilityCommand"),
      DescribeScheduledInstancesCommand: /* @__PURE__ */ __name(() => DescribeScheduledInstancesCommand, "DescribeScheduledInstancesCommand"),
      DescribeSecurityGroupReferencesCommand: /* @__PURE__ */ __name(() => DescribeSecurityGroupReferencesCommand, "DescribeSecurityGroupReferencesCommand"),
      DescribeSecurityGroupRulesCommand: /* @__PURE__ */ __name(() => DescribeSecurityGroupRulesCommand, "DescribeSecurityGroupRulesCommand"),
      DescribeSecurityGroupVpcAssociationsCommand: /* @__PURE__ */ __name(() => DescribeSecurityGroupVpcAssociationsCommand, "DescribeSecurityGroupVpcAssociationsCommand"),
      DescribeSecurityGroupsCommand: /* @__PURE__ */ __name(() => DescribeSecurityGroupsCommand2, "DescribeSecurityGroupsCommand"),
      DescribeServiceLinkVirtualInterfacesCommand: /* @__PURE__ */ __name(() => DescribeServiceLinkVirtualInterfacesCommand, "DescribeServiceLinkVirtualInterfacesCommand"),
      DescribeSnapshotAttributeCommand: /* @__PURE__ */ __name(() => DescribeSnapshotAttributeCommand, "DescribeSnapshotAttributeCommand"),
      DescribeSnapshotTierStatusCommand: /* @__PURE__ */ __name(() => DescribeSnapshotTierStatusCommand, "DescribeSnapshotTierStatusCommand"),
      DescribeSnapshotsCommand: /* @__PURE__ */ __name(() => DescribeSnapshotsCommand, "DescribeSnapshotsCommand"),
      DescribeSpotDatafeedSubscriptionCommand: /* @__PURE__ */ __name(() => DescribeSpotDatafeedSubscriptionCommand, "DescribeSpotDatafeedSubscriptionCommand"),
      DescribeSpotFleetInstancesCommand: /* @__PURE__ */ __name(() => DescribeSpotFleetInstancesCommand, "DescribeSpotFleetInstancesCommand"),
      DescribeSpotFleetRequestHistoryCommand: /* @__PURE__ */ __name(() => DescribeSpotFleetRequestHistoryCommand, "DescribeSpotFleetRequestHistoryCommand"),
      DescribeSpotFleetRequestsCommand: /* @__PURE__ */ __name(() => DescribeSpotFleetRequestsCommand, "DescribeSpotFleetRequestsCommand"),
      DescribeSpotFleetRequestsResponseFilterSensitiveLog: /* @__PURE__ */ __name(() => DescribeSpotFleetRequestsResponseFilterSensitiveLog, "DescribeSpotFleetRequestsResponseFilterSensitiveLog"),
      DescribeSpotInstanceRequestsCommand: /* @__PURE__ */ __name(() => DescribeSpotInstanceRequestsCommand, "DescribeSpotInstanceRequestsCommand"),
      DescribeSpotInstanceRequestsResultFilterSensitiveLog: /* @__PURE__ */ __name(() => DescribeSpotInstanceRequestsResultFilterSensitiveLog, "DescribeSpotInstanceRequestsResultFilterSensitiveLog"),
      DescribeSpotPriceHistoryCommand: /* @__PURE__ */ __name(() => DescribeSpotPriceHistoryCommand, "DescribeSpotPriceHistoryCommand"),
      DescribeStaleSecurityGroupsCommand: /* @__PURE__ */ __name(() => DescribeStaleSecurityGroupsCommand, "DescribeStaleSecurityGroupsCommand"),
      DescribeStoreImageTasksCommand: /* @__PURE__ */ __name(() => DescribeStoreImageTasksCommand, "DescribeStoreImageTasksCommand"),
      DescribeSubnetsCommand: /* @__PURE__ */ __name(() => DescribeSubnetsCommand2, "DescribeSubnetsCommand"),
      DescribeTagsCommand: /* @__PURE__ */ __name(() => DescribeTagsCommand2, "DescribeTagsCommand"),
      DescribeTrafficMirrorFilterRulesCommand: /* @__PURE__ */ __name(() => DescribeTrafficMirrorFilterRulesCommand, "DescribeTrafficMirrorFilterRulesCommand"),
      DescribeTrafficMirrorFiltersCommand: /* @__PURE__ */ __name(() => DescribeTrafficMirrorFiltersCommand, "DescribeTrafficMirrorFiltersCommand"),
      DescribeTrafficMirrorSessionsCommand: /* @__PURE__ */ __name(() => DescribeTrafficMirrorSessionsCommand, "DescribeTrafficMirrorSessionsCommand"),
      DescribeTrafficMirrorTargetsCommand: /* @__PURE__ */ __name(() => DescribeTrafficMirrorTargetsCommand, "DescribeTrafficMirrorTargetsCommand"),
      DescribeTransitGatewayAttachmentsCommand: /* @__PURE__ */ __name(() => DescribeTransitGatewayAttachmentsCommand, "DescribeTransitGatewayAttachmentsCommand"),
      DescribeTransitGatewayConnectPeersCommand: /* @__PURE__ */ __name(() => DescribeTransitGatewayConnectPeersCommand, "DescribeTransitGatewayConnectPeersCommand"),
      DescribeTransitGatewayConnectsCommand: /* @__PURE__ */ __name(() => DescribeTransitGatewayConnectsCommand, "DescribeTransitGatewayConnectsCommand"),
      DescribeTransitGatewayMulticastDomainsCommand: /* @__PURE__ */ __name(() => DescribeTransitGatewayMulticastDomainsCommand, "DescribeTransitGatewayMulticastDomainsCommand"),
      DescribeTransitGatewayPeeringAttachmentsCommand: /* @__PURE__ */ __name(() => DescribeTransitGatewayPeeringAttachmentsCommand, "DescribeTransitGatewayPeeringAttachmentsCommand"),
      DescribeTransitGatewayPolicyTablesCommand: /* @__PURE__ */ __name(() => DescribeTransitGatewayPolicyTablesCommand, "DescribeTransitGatewayPolicyTablesCommand"),
      DescribeTransitGatewayRouteTableAnnouncementsCommand: /* @__PURE__ */ __name(() => DescribeTransitGatewayRouteTableAnnouncementsCommand, "DescribeTransitGatewayRouteTableAnnouncementsCommand"),
      DescribeTransitGatewayRouteTablesCommand: /* @__PURE__ */ __name(() => DescribeTransitGatewayRouteTablesCommand, "DescribeTransitGatewayRouteTablesCommand"),
      DescribeTransitGatewayVpcAttachmentsCommand: /* @__PURE__ */ __name(() => DescribeTransitGatewayVpcAttachmentsCommand, "DescribeTransitGatewayVpcAttachmentsCommand"),
      DescribeTransitGatewaysCommand: /* @__PURE__ */ __name(() => DescribeTransitGatewaysCommand, "DescribeTransitGatewaysCommand"),
      DescribeTrunkInterfaceAssociationsCommand: /* @__PURE__ */ __name(() => DescribeTrunkInterfaceAssociationsCommand, "DescribeTrunkInterfaceAssociationsCommand"),
      DescribeVerifiedAccessEndpointsCommand: /* @__PURE__ */ __name(() => DescribeVerifiedAccessEndpointsCommand, "DescribeVerifiedAccessEndpointsCommand"),
      DescribeVerifiedAccessGroupsCommand: /* @__PURE__ */ __name(() => DescribeVerifiedAccessGroupsCommand, "DescribeVerifiedAccessGroupsCommand"),
      DescribeVerifiedAccessInstanceLoggingConfigurationsCommand: /* @__PURE__ */ __name(() => DescribeVerifiedAccessInstanceLoggingConfigurationsCommand, "DescribeVerifiedAccessInstanceLoggingConfigurationsCommand"),
      DescribeVerifiedAccessInstancesCommand: /* @__PURE__ */ __name(() => DescribeVerifiedAccessInstancesCommand, "DescribeVerifiedAccessInstancesCommand"),
      DescribeVerifiedAccessTrustProvidersCommand: /* @__PURE__ */ __name(() => DescribeVerifiedAccessTrustProvidersCommand, "DescribeVerifiedAccessTrustProvidersCommand"),
      DescribeVerifiedAccessTrustProvidersResultFilterSensitiveLog: /* @__PURE__ */ __name(() => DescribeVerifiedAccessTrustProvidersResultFilterSensitiveLog, "DescribeVerifiedAccessTrustProvidersResultFilterSensitiveLog"),
      DescribeVolumeAttributeCommand: /* @__PURE__ */ __name(() => DescribeVolumeAttributeCommand, "DescribeVolumeAttributeCommand"),
      DescribeVolumeStatusCommand: /* @__PURE__ */ __name(() => DescribeVolumeStatusCommand, "DescribeVolumeStatusCommand"),
      DescribeVolumesCommand: /* @__PURE__ */ __name(() => DescribeVolumesCommand, "DescribeVolumesCommand"),
      DescribeVolumesModificationsCommand: /* @__PURE__ */ __name(() => DescribeVolumesModificationsCommand, "DescribeVolumesModificationsCommand"),
      DescribeVpcAttributeCommand: /* @__PURE__ */ __name(() => DescribeVpcAttributeCommand, "DescribeVpcAttributeCommand"),
      DescribeVpcBlockPublicAccessExclusionsCommand: /* @__PURE__ */ __name(() => DescribeVpcBlockPublicAccessExclusionsCommand, "DescribeVpcBlockPublicAccessExclusionsCommand"),
      DescribeVpcBlockPublicAccessOptionsCommand: /* @__PURE__ */ __name(() => DescribeVpcBlockPublicAccessOptionsCommand, "DescribeVpcBlockPublicAccessOptionsCommand"),
      DescribeVpcClassicLinkCommand: /* @__PURE__ */ __name(() => DescribeVpcClassicLinkCommand, "DescribeVpcClassicLinkCommand"),
      DescribeVpcClassicLinkDnsSupportCommand: /* @__PURE__ */ __name(() => DescribeVpcClassicLinkDnsSupportCommand, "DescribeVpcClassicLinkDnsSupportCommand"),
      DescribeVpcEndpointAssociationsCommand: /* @__PURE__ */ __name(() => DescribeVpcEndpointAssociationsCommand, "DescribeVpcEndpointAssociationsCommand"),
      DescribeVpcEndpointConnectionNotificationsCommand: /* @__PURE__ */ __name(() => DescribeVpcEndpointConnectionNotificationsCommand, "DescribeVpcEndpointConnectionNotificationsCommand"),
      DescribeVpcEndpointConnectionsCommand: /* @__PURE__ */ __name(() => DescribeVpcEndpointConnectionsCommand, "DescribeVpcEndpointConnectionsCommand"),
      DescribeVpcEndpointServiceConfigurationsCommand: /* @__PURE__ */ __name(() => DescribeVpcEndpointServiceConfigurationsCommand, "DescribeVpcEndpointServiceConfigurationsCommand"),
      DescribeVpcEndpointServicePermissionsCommand: /* @__PURE__ */ __name(() => DescribeVpcEndpointServicePermissionsCommand, "DescribeVpcEndpointServicePermissionsCommand"),
      DescribeVpcEndpointServicesCommand: /* @__PURE__ */ __name(() => DescribeVpcEndpointServicesCommand2, "DescribeVpcEndpointServicesCommand"),
      DescribeVpcEndpointsCommand: /* @__PURE__ */ __name(() => DescribeVpcEndpointsCommand, "DescribeVpcEndpointsCommand"),
      DescribeVpcPeeringConnectionsCommand: /* @__PURE__ */ __name(() => DescribeVpcPeeringConnectionsCommand, "DescribeVpcPeeringConnectionsCommand"),
      DescribeVpcsCommand: /* @__PURE__ */ __name(() => DescribeVpcsCommand2, "DescribeVpcsCommand"),
      DescribeVpnConnectionsCommand: /* @__PURE__ */ __name(() => DescribeVpnConnectionsCommand, "DescribeVpnConnectionsCommand"),
      DescribeVpnConnectionsResultFilterSensitiveLog: /* @__PURE__ */ __name(() => DescribeVpnConnectionsResultFilterSensitiveLog, "DescribeVpnConnectionsResultFilterSensitiveLog"),
      DescribeVpnGatewaysCommand: /* @__PURE__ */ __name(() => DescribeVpnGatewaysCommand2, "DescribeVpnGatewaysCommand"),
      DestinationFileFormat: /* @__PURE__ */ __name(() => DestinationFileFormat, "DestinationFileFormat"),
      DetachClassicLinkVpcCommand: /* @__PURE__ */ __name(() => DetachClassicLinkVpcCommand, "DetachClassicLinkVpcCommand"),
      DetachInternetGatewayCommand: /* @__PURE__ */ __name(() => DetachInternetGatewayCommand, "DetachInternetGatewayCommand"),
      DetachNetworkInterfaceCommand: /* @__PURE__ */ __name(() => DetachNetworkInterfaceCommand, "DetachNetworkInterfaceCommand"),
      DetachVerifiedAccessTrustProviderCommand: /* @__PURE__ */ __name(() => DetachVerifiedAccessTrustProviderCommand, "DetachVerifiedAccessTrustProviderCommand"),
      DetachVerifiedAccessTrustProviderResultFilterSensitiveLog: /* @__PURE__ */ __name(() => DetachVerifiedAccessTrustProviderResultFilterSensitiveLog, "DetachVerifiedAccessTrustProviderResultFilterSensitiveLog"),
      DetachVolumeCommand: /* @__PURE__ */ __name(() => DetachVolumeCommand, "DetachVolumeCommand"),
      DetachVpnGatewayCommand: /* @__PURE__ */ __name(() => DetachVpnGatewayCommand, "DetachVpnGatewayCommand"),
      DeviceTrustProviderType: /* @__PURE__ */ __name(() => DeviceTrustProviderType, "DeviceTrustProviderType"),
      DeviceType: /* @__PURE__ */ __name(() => DeviceType, "DeviceType"),
      DisableAddressTransferCommand: /* @__PURE__ */ __name(() => DisableAddressTransferCommand, "DisableAddressTransferCommand"),
      DisableAllowedImagesSettingsCommand: /* @__PURE__ */ __name(() => DisableAllowedImagesSettingsCommand, "DisableAllowedImagesSettingsCommand"),
      DisableAwsNetworkPerformanceMetricSubscriptionCommand: /* @__PURE__ */ __name(() => DisableAwsNetworkPerformanceMetricSubscriptionCommand, "DisableAwsNetworkPerformanceMetricSubscriptionCommand"),
      DisableEbsEncryptionByDefaultCommand: /* @__PURE__ */ __name(() => DisableEbsEncryptionByDefaultCommand, "DisableEbsEncryptionByDefaultCommand"),
      DisableFastLaunchCommand: /* @__PURE__ */ __name(() => DisableFastLaunchCommand, "DisableFastLaunchCommand"),
      DisableFastSnapshotRestoresCommand: /* @__PURE__ */ __name(() => DisableFastSnapshotRestoresCommand, "DisableFastSnapshotRestoresCommand"),
      DisableImageBlockPublicAccessCommand: /* @__PURE__ */ __name(() => DisableImageBlockPublicAccessCommand, "DisableImageBlockPublicAccessCommand"),
      DisableImageCommand: /* @__PURE__ */ __name(() => DisableImageCommand, "DisableImageCommand"),
      DisableImageDeprecationCommand: /* @__PURE__ */ __name(() => DisableImageDeprecationCommand, "DisableImageDeprecationCommand"),
      DisableImageDeregistrationProtectionCommand: /* @__PURE__ */ __name(() => DisableImageDeregistrationProtectionCommand, "DisableImageDeregistrationProtectionCommand"),
      DisableIpamOrganizationAdminAccountCommand: /* @__PURE__ */ __name(() => DisableIpamOrganizationAdminAccountCommand, "DisableIpamOrganizationAdminAccountCommand"),
      DisableRouteServerPropagationCommand: /* @__PURE__ */ __name(() => DisableRouteServerPropagationCommand, "DisableRouteServerPropagationCommand"),
      DisableSerialConsoleAccessCommand: /* @__PURE__ */ __name(() => DisableSerialConsoleAccessCommand, "DisableSerialConsoleAccessCommand"),
      DisableSnapshotBlockPublicAccessCommand: /* @__PURE__ */ __name(() => DisableSnapshotBlockPublicAccessCommand, "DisableSnapshotBlockPublicAccessCommand"),
      DisableTransitGatewayRouteTablePropagationCommand: /* @__PURE__ */ __name(() => DisableTransitGatewayRouteTablePropagationCommand, "DisableTransitGatewayRouteTablePropagationCommand"),
      DisableVgwRoutePropagationCommand: /* @__PURE__ */ __name(() => DisableVgwRoutePropagationCommand, "DisableVgwRoutePropagationCommand"),
      DisableVpcClassicLinkCommand: /* @__PURE__ */ __name(() => DisableVpcClassicLinkCommand, "DisableVpcClassicLinkCommand"),
      DisableVpcClassicLinkDnsSupportCommand: /* @__PURE__ */ __name(() => DisableVpcClassicLinkDnsSupportCommand, "DisableVpcClassicLinkDnsSupportCommand"),
      DisassociateAddressCommand: /* @__PURE__ */ __name(() => DisassociateAddressCommand, "DisassociateAddressCommand"),
      DisassociateCapacityReservationBillingOwnerCommand: /* @__PURE__ */ __name(() => DisassociateCapacityReservationBillingOwnerCommand, "DisassociateCapacityReservationBillingOwnerCommand"),
      DisassociateClientVpnTargetNetworkCommand: /* @__PURE__ */ __name(() => DisassociateClientVpnTargetNetworkCommand, "DisassociateClientVpnTargetNetworkCommand"),
      DisassociateEnclaveCertificateIamRoleCommand: /* @__PURE__ */ __name(() => DisassociateEnclaveCertificateIamRoleCommand, "DisassociateEnclaveCertificateIamRoleCommand"),
      DisassociateIamInstanceProfileCommand: /* @__PURE__ */ __name(() => DisassociateIamInstanceProfileCommand, "DisassociateIamInstanceProfileCommand"),
      DisassociateInstanceEventWindowCommand: /* @__PURE__ */ __name(() => DisassociateInstanceEventWindowCommand, "DisassociateInstanceEventWindowCommand"),
      DisassociateIpamByoasnCommand: /* @__PURE__ */ __name(() => DisassociateIpamByoasnCommand, "DisassociateIpamByoasnCommand"),
      DisassociateIpamResourceDiscoveryCommand: /* @__PURE__ */ __name(() => DisassociateIpamResourceDiscoveryCommand, "DisassociateIpamResourceDiscoveryCommand"),
      DisassociateNatGatewayAddressCommand: /* @__PURE__ */ __name(() => DisassociateNatGatewayAddressCommand, "DisassociateNatGatewayAddressCommand"),
      DisassociateRouteServerCommand: /* @__PURE__ */ __name(() => DisassociateRouteServerCommand, "DisassociateRouteServerCommand"),
      DisassociateRouteTableCommand: /* @__PURE__ */ __name(() => DisassociateRouteTableCommand, "DisassociateRouteTableCommand"),
      DisassociateSecurityGroupVpcCommand: /* @__PURE__ */ __name(() => DisassociateSecurityGroupVpcCommand, "DisassociateSecurityGroupVpcCommand"),
      DisassociateSubnetCidrBlockCommand: /* @__PURE__ */ __name(() => DisassociateSubnetCidrBlockCommand, "DisassociateSubnetCidrBlockCommand"),
      DisassociateTransitGatewayMulticastDomainCommand: /* @__PURE__ */ __name(() => DisassociateTransitGatewayMulticastDomainCommand, "DisassociateTransitGatewayMulticastDomainCommand"),
      DisassociateTransitGatewayPolicyTableCommand: /* @__PURE__ */ __name(() => DisassociateTransitGatewayPolicyTableCommand, "DisassociateTransitGatewayPolicyTableCommand"),
      DisassociateTransitGatewayRouteTableCommand: /* @__PURE__ */ __name(() => DisassociateTransitGatewayRouteTableCommand, "DisassociateTransitGatewayRouteTableCommand"),
      DisassociateTrunkInterfaceCommand: /* @__PURE__ */ __name(() => DisassociateTrunkInterfaceCommand, "DisassociateTrunkInterfaceCommand"),
      DisassociateVpcCidrBlockCommand: /* @__PURE__ */ __name(() => DisassociateVpcCidrBlockCommand, "DisassociateVpcCidrBlockCommand"),
      DiskImageDescriptionFilterSensitiveLog: /* @__PURE__ */ __name(() => DiskImageDescriptionFilterSensitiveLog, "DiskImageDescriptionFilterSensitiveLog"),
      DiskImageDetailFilterSensitiveLog: /* @__PURE__ */ __name(() => DiskImageDetailFilterSensitiveLog, "DiskImageDetailFilterSensitiveLog"),
      DiskImageFilterSensitiveLog: /* @__PURE__ */ __name(() => DiskImageFilterSensitiveLog, "DiskImageFilterSensitiveLog"),
      DiskImageFormat: /* @__PURE__ */ __name(() => DiskImageFormat, "DiskImageFormat"),
      DiskType: /* @__PURE__ */ __name(() => DiskType, "DiskType"),
      DnsNameState: /* @__PURE__ */ __name(() => DnsNameState, "DnsNameState"),
      DnsRecordIpType: /* @__PURE__ */ __name(() => DnsRecordIpType, "DnsRecordIpType"),
      DnsSupportValue: /* @__PURE__ */ __name(() => DnsSupportValue, "DnsSupportValue"),
      DomainType: /* @__PURE__ */ __name(() => DomainType, "DomainType"),
      DynamicRoutingValue: /* @__PURE__ */ __name(() => DynamicRoutingValue, "DynamicRoutingValue"),
      EC2: /* @__PURE__ */ __name(() => EC2, "EC2"),
      EC2Client: /* @__PURE__ */ __name(() => EC2Client2, "EC2Client"),
      EC2ServiceException: /* @__PURE__ */ __name(() => EC2ServiceException, "EC2ServiceException"),
      EbsEncryptionSupport: /* @__PURE__ */ __name(() => EbsEncryptionSupport, "EbsEncryptionSupport"),
      EbsNvmeSupport: /* @__PURE__ */ __name(() => EbsNvmeSupport, "EbsNvmeSupport"),
      EbsOptimizedSupport: /* @__PURE__ */ __name(() => EbsOptimizedSupport, "EbsOptimizedSupport"),
      Ec2InstanceConnectEndpointState: /* @__PURE__ */ __name(() => Ec2InstanceConnectEndpointState, "Ec2InstanceConnectEndpointState"),
      EkPubKeyFormat: /* @__PURE__ */ __name(() => EkPubKeyFormat, "EkPubKeyFormat"),
      EkPubKeyType: /* @__PURE__ */ __name(() => EkPubKeyType, "EkPubKeyType"),
      ElasticGpuState: /* @__PURE__ */ __name(() => ElasticGpuState, "ElasticGpuState"),
      ElasticGpuStatus: /* @__PURE__ */ __name(() => ElasticGpuStatus, "ElasticGpuStatus"),
      EnaSupport: /* @__PURE__ */ __name(() => EnaSupport, "EnaSupport"),
      EnableAddressTransferCommand: /* @__PURE__ */ __name(() => EnableAddressTransferCommand, "EnableAddressTransferCommand"),
      EnableAllowedImagesSettingsCommand: /* @__PURE__ */ __name(() => EnableAllowedImagesSettingsCommand, "EnableAllowedImagesSettingsCommand"),
      EnableAwsNetworkPerformanceMetricSubscriptionCommand: /* @__PURE__ */ __name(() => EnableAwsNetworkPerformanceMetricSubscriptionCommand, "EnableAwsNetworkPerformanceMetricSubscriptionCommand"),
      EnableEbsEncryptionByDefaultCommand: /* @__PURE__ */ __name(() => EnableEbsEncryptionByDefaultCommand, "EnableEbsEncryptionByDefaultCommand"),
      EnableFastLaunchCommand: /* @__PURE__ */ __name(() => EnableFastLaunchCommand, "EnableFastLaunchCommand"),
      EnableFastSnapshotRestoresCommand: /* @__PURE__ */ __name(() => EnableFastSnapshotRestoresCommand, "EnableFastSnapshotRestoresCommand"),
      EnableImageBlockPublicAccessCommand: /* @__PURE__ */ __name(() => EnableImageBlockPublicAccessCommand, "EnableImageBlockPublicAccessCommand"),
      EnableImageCommand: /* @__PURE__ */ __name(() => EnableImageCommand, "EnableImageCommand"),
      EnableImageDeprecationCommand: /* @__PURE__ */ __name(() => EnableImageDeprecationCommand, "EnableImageDeprecationCommand"),
      EnableImageDeregistrationProtectionCommand: /* @__PURE__ */ __name(() => EnableImageDeregistrationProtectionCommand, "EnableImageDeregistrationProtectionCommand"),
      EnableIpamOrganizationAdminAccountCommand: /* @__PURE__ */ __name(() => EnableIpamOrganizationAdminAccountCommand, "EnableIpamOrganizationAdminAccountCommand"),
      EnableReachabilityAnalyzerOrganizationSharingCommand: /* @__PURE__ */ __name(() => EnableReachabilityAnalyzerOrganizationSharingCommand, "EnableReachabilityAnalyzerOrganizationSharingCommand"),
      EnableRouteServerPropagationCommand: /* @__PURE__ */ __name(() => EnableRouteServerPropagationCommand, "EnableRouteServerPropagationCommand"),
      EnableSerialConsoleAccessCommand: /* @__PURE__ */ __name(() => EnableSerialConsoleAccessCommand, "EnableSerialConsoleAccessCommand"),
      EnableSnapshotBlockPublicAccessCommand: /* @__PURE__ */ __name(() => EnableSnapshotBlockPublicAccessCommand, "EnableSnapshotBlockPublicAccessCommand"),
      EnableTransitGatewayRouteTablePropagationCommand: /* @__PURE__ */ __name(() => EnableTransitGatewayRouteTablePropagationCommand, "EnableTransitGatewayRouteTablePropagationCommand"),
      EnableVgwRoutePropagationCommand: /* @__PURE__ */ __name(() => EnableVgwRoutePropagationCommand, "EnableVgwRoutePropagationCommand"),
      EnableVolumeIOCommand: /* @__PURE__ */ __name(() => EnableVolumeIOCommand, "EnableVolumeIOCommand"),
      EnableVpcClassicLinkCommand: /* @__PURE__ */ __name(() => EnableVpcClassicLinkCommand, "EnableVpcClassicLinkCommand"),
      EnableVpcClassicLinkDnsSupportCommand: /* @__PURE__ */ __name(() => EnableVpcClassicLinkDnsSupportCommand, "EnableVpcClassicLinkDnsSupportCommand"),
      EndDateType: /* @__PURE__ */ __name(() => EndDateType, "EndDateType"),
      EndpointIpAddressType: /* @__PURE__ */ __name(() => EndpointIpAddressType, "EndpointIpAddressType"),
      EphemeralNvmeSupport: /* @__PURE__ */ __name(() => EphemeralNvmeSupport, "EphemeralNvmeSupport"),
      EventCode: /* @__PURE__ */ __name(() => EventCode, "EventCode"),
      EventType: /* @__PURE__ */ __name(() => EventType2, "EventType"),
      ExcessCapacityTerminationPolicy: /* @__PURE__ */ __name(() => ExcessCapacityTerminationPolicy, "ExcessCapacityTerminationPolicy"),
      ExportClientVpnClientCertificateRevocationListCommand: /* @__PURE__ */ __name(() => ExportClientVpnClientCertificateRevocationListCommand, "ExportClientVpnClientCertificateRevocationListCommand"),
      ExportClientVpnClientConfigurationCommand: /* @__PURE__ */ __name(() => ExportClientVpnClientConfigurationCommand, "ExportClientVpnClientConfigurationCommand"),
      ExportEnvironment: /* @__PURE__ */ __name(() => ExportEnvironment, "ExportEnvironment"),
      ExportImageCommand: /* @__PURE__ */ __name(() => ExportImageCommand, "ExportImageCommand"),
      ExportTaskState: /* @__PURE__ */ __name(() => ExportTaskState, "ExportTaskState"),
      ExportTransitGatewayRoutesCommand: /* @__PURE__ */ __name(() => ExportTransitGatewayRoutesCommand, "ExportTransitGatewayRoutesCommand"),
      ExportVerifiedAccessInstanceClientConfigurationCommand: /* @__PURE__ */ __name(() => ExportVerifiedAccessInstanceClientConfigurationCommand, "ExportVerifiedAccessInstanceClientConfigurationCommand"),
      ExportVerifiedAccessInstanceClientConfigurationResultFilterSensitiveLog: /* @__PURE__ */ __name(() => ExportVerifiedAccessInstanceClientConfigurationResultFilterSensitiveLog, "ExportVerifiedAccessInstanceClientConfigurationResultFilterSensitiveLog"),
      FastLaunchResourceType: /* @__PURE__ */ __name(() => FastLaunchResourceType, "FastLaunchResourceType"),
      FastLaunchStateCode: /* @__PURE__ */ __name(() => FastLaunchStateCode, "FastLaunchStateCode"),
      FastSnapshotRestoreStateCode: /* @__PURE__ */ __name(() => FastSnapshotRestoreStateCode, "FastSnapshotRestoreStateCode"),
      FindingsFound: /* @__PURE__ */ __name(() => FindingsFound, "FindingsFound"),
      FleetActivityStatus: /* @__PURE__ */ __name(() => FleetActivityStatus, "FleetActivityStatus"),
      FleetCapacityReservationTenancy: /* @__PURE__ */ __name(() => FleetCapacityReservationTenancy, "FleetCapacityReservationTenancy"),
      FleetCapacityReservationUsageStrategy: /* @__PURE__ */ __name(() => FleetCapacityReservationUsageStrategy, "FleetCapacityReservationUsageStrategy"),
      FleetEventType: /* @__PURE__ */ __name(() => FleetEventType, "FleetEventType"),
      FleetExcessCapacityTerminationPolicy: /* @__PURE__ */ __name(() => FleetExcessCapacityTerminationPolicy, "FleetExcessCapacityTerminationPolicy"),
      FleetInstanceMatchCriteria: /* @__PURE__ */ __name(() => FleetInstanceMatchCriteria, "FleetInstanceMatchCriteria"),
      FleetOnDemandAllocationStrategy: /* @__PURE__ */ __name(() => FleetOnDemandAllocationStrategy, "FleetOnDemandAllocationStrategy"),
      FleetReplacementStrategy: /* @__PURE__ */ __name(() => FleetReplacementStrategy, "FleetReplacementStrategy"),
      FleetStateCode: /* @__PURE__ */ __name(() => FleetStateCode, "FleetStateCode"),
      FleetType: /* @__PURE__ */ __name(() => FleetType, "FleetType"),
      FlexibleEnaQueuesSupport: /* @__PURE__ */ __name(() => FlexibleEnaQueuesSupport, "FlexibleEnaQueuesSupport"),
      FlowLogsResourceType: /* @__PURE__ */ __name(() => FlowLogsResourceType, "FlowLogsResourceType"),
      FpgaImageAttributeName: /* @__PURE__ */ __name(() => FpgaImageAttributeName, "FpgaImageAttributeName"),
      FpgaImageStateCode: /* @__PURE__ */ __name(() => FpgaImageStateCode, "FpgaImageStateCode"),
      GatewayAssociationState: /* @__PURE__ */ __name(() => GatewayAssociationState, "GatewayAssociationState"),
      GatewayType: /* @__PURE__ */ __name(() => GatewayType, "GatewayType"),
      GetActiveVpnTunnelStatusCommand: /* @__PURE__ */ __name(() => GetActiveVpnTunnelStatusCommand, "GetActiveVpnTunnelStatusCommand"),
      GetAllowedImagesSettingsCommand: /* @__PURE__ */ __name(() => GetAllowedImagesSettingsCommand, "GetAllowedImagesSettingsCommand"),
      GetAssociatedEnclaveCertificateIamRolesCommand: /* @__PURE__ */ __name(() => GetAssociatedEnclaveCertificateIamRolesCommand, "GetAssociatedEnclaveCertificateIamRolesCommand"),
      GetAssociatedIpv6PoolCidrsCommand: /* @__PURE__ */ __name(() => GetAssociatedIpv6PoolCidrsCommand, "GetAssociatedIpv6PoolCidrsCommand"),
      GetAwsNetworkPerformanceDataCommand: /* @__PURE__ */ __name(() => GetAwsNetworkPerformanceDataCommand, "GetAwsNetworkPerformanceDataCommand"),
      GetCapacityReservationUsageCommand: /* @__PURE__ */ __name(() => GetCapacityReservationUsageCommand, "GetCapacityReservationUsageCommand"),
      GetCoipPoolUsageCommand: /* @__PURE__ */ __name(() => GetCoipPoolUsageCommand, "GetCoipPoolUsageCommand"),
      GetConsoleOutputCommand: /* @__PURE__ */ __name(() => GetConsoleOutputCommand, "GetConsoleOutputCommand"),
      GetConsoleScreenshotCommand: /* @__PURE__ */ __name(() => GetConsoleScreenshotCommand, "GetConsoleScreenshotCommand"),
      GetDeclarativePoliciesReportSummaryCommand: /* @__PURE__ */ __name(() => GetDeclarativePoliciesReportSummaryCommand, "GetDeclarativePoliciesReportSummaryCommand"),
      GetDefaultCreditSpecificationCommand: /* @__PURE__ */ __name(() => GetDefaultCreditSpecificationCommand, "GetDefaultCreditSpecificationCommand"),
      GetEbsDefaultKmsKeyIdCommand: /* @__PURE__ */ __name(() => GetEbsDefaultKmsKeyIdCommand, "GetEbsDefaultKmsKeyIdCommand"),
      GetEbsEncryptionByDefaultCommand: /* @__PURE__ */ __name(() => GetEbsEncryptionByDefaultCommand, "GetEbsEncryptionByDefaultCommand"),
      GetFlowLogsIntegrationTemplateCommand: /* @__PURE__ */ __name(() => GetFlowLogsIntegrationTemplateCommand, "GetFlowLogsIntegrationTemplateCommand"),
      GetGroupsForCapacityReservationCommand: /* @__PURE__ */ __name(() => GetGroupsForCapacityReservationCommand, "GetGroupsForCapacityReservationCommand"),
      GetHostReservationPurchasePreviewCommand: /* @__PURE__ */ __name(() => GetHostReservationPurchasePreviewCommand, "GetHostReservationPurchasePreviewCommand"),
      GetImageBlockPublicAccessStateCommand: /* @__PURE__ */ __name(() => GetImageBlockPublicAccessStateCommand, "GetImageBlockPublicAccessStateCommand"),
      GetInstanceMetadataDefaultsCommand: /* @__PURE__ */ __name(() => GetInstanceMetadataDefaultsCommand, "GetInstanceMetadataDefaultsCommand"),
      GetInstanceTpmEkPubCommand: /* @__PURE__ */ __name(() => GetInstanceTpmEkPubCommand, "GetInstanceTpmEkPubCommand"),
      GetInstanceTpmEkPubResultFilterSensitiveLog: /* @__PURE__ */ __name(() => GetInstanceTpmEkPubResultFilterSensitiveLog, "GetInstanceTpmEkPubResultFilterSensitiveLog"),
      GetInstanceTypesFromInstanceRequirementsCommand: /* @__PURE__ */ __name(() => GetInstanceTypesFromInstanceRequirementsCommand, "GetInstanceTypesFromInstanceRequirementsCommand"),
      GetInstanceUefiDataCommand: /* @__PURE__ */ __name(() => GetInstanceUefiDataCommand, "GetInstanceUefiDataCommand"),
      GetIpamAddressHistoryCommand: /* @__PURE__ */ __name(() => GetIpamAddressHistoryCommand, "GetIpamAddressHistoryCommand"),
      GetIpamDiscoveredAccountsCommand: /* @__PURE__ */ __name(() => GetIpamDiscoveredAccountsCommand, "GetIpamDiscoveredAccountsCommand"),
      GetIpamDiscoveredPublicAddressesCommand: /* @__PURE__ */ __name(() => GetIpamDiscoveredPublicAddressesCommand, "GetIpamDiscoveredPublicAddressesCommand"),
      GetIpamDiscoveredResourceCidrsCommand: /* @__PURE__ */ __name(() => GetIpamDiscoveredResourceCidrsCommand, "GetIpamDiscoveredResourceCidrsCommand"),
      GetIpamPoolAllocationsCommand: /* @__PURE__ */ __name(() => GetIpamPoolAllocationsCommand, "GetIpamPoolAllocationsCommand"),
      GetIpamPoolCidrsCommand: /* @__PURE__ */ __name(() => GetIpamPoolCidrsCommand, "GetIpamPoolCidrsCommand"),
      GetIpamResourceCidrsCommand: /* @__PURE__ */ __name(() => GetIpamResourceCidrsCommand, "GetIpamResourceCidrsCommand"),
      GetLaunchTemplateDataCommand: /* @__PURE__ */ __name(() => GetLaunchTemplateDataCommand, "GetLaunchTemplateDataCommand"),
      GetLaunchTemplateDataResultFilterSensitiveLog: /* @__PURE__ */ __name(() => GetLaunchTemplateDataResultFilterSensitiveLog, "GetLaunchTemplateDataResultFilterSensitiveLog"),
      GetManagedPrefixListAssociationsCommand: /* @__PURE__ */ __name(() => GetManagedPrefixListAssociationsCommand, "GetManagedPrefixListAssociationsCommand"),
      GetManagedPrefixListEntriesCommand: /* @__PURE__ */ __name(() => GetManagedPrefixListEntriesCommand, "GetManagedPrefixListEntriesCommand"),
      GetNetworkInsightsAccessScopeAnalysisFindingsCommand: /* @__PURE__ */ __name(() => GetNetworkInsightsAccessScopeAnalysisFindingsCommand, "GetNetworkInsightsAccessScopeAnalysisFindingsCommand"),
      GetNetworkInsightsAccessScopeContentCommand: /* @__PURE__ */ __name(() => GetNetworkInsightsAccessScopeContentCommand, "GetNetworkInsightsAccessScopeContentCommand"),
      GetPasswordDataCommand: /* @__PURE__ */ __name(() => GetPasswordDataCommand, "GetPasswordDataCommand"),
      GetPasswordDataResultFilterSensitiveLog: /* @__PURE__ */ __name(() => GetPasswordDataResultFilterSensitiveLog, "GetPasswordDataResultFilterSensitiveLog"),
      GetReservedInstancesExchangeQuoteCommand: /* @__PURE__ */ __name(() => GetReservedInstancesExchangeQuoteCommand, "GetReservedInstancesExchangeQuoteCommand"),
      GetRouteServerAssociationsCommand: /* @__PURE__ */ __name(() => GetRouteServerAssociationsCommand, "GetRouteServerAssociationsCommand"),
      GetRouteServerPropagationsCommand: /* @__PURE__ */ __name(() => GetRouteServerPropagationsCommand, "GetRouteServerPropagationsCommand"),
      GetRouteServerRoutingDatabaseCommand: /* @__PURE__ */ __name(() => GetRouteServerRoutingDatabaseCommand, "GetRouteServerRoutingDatabaseCommand"),
      GetSecurityGroupsForVpcCommand: /* @__PURE__ */ __name(() => GetSecurityGroupsForVpcCommand, "GetSecurityGroupsForVpcCommand"),
      GetSerialConsoleAccessStatusCommand: /* @__PURE__ */ __name(() => GetSerialConsoleAccessStatusCommand, "GetSerialConsoleAccessStatusCommand"),
      GetSnapshotBlockPublicAccessStateCommand: /* @__PURE__ */ __name(() => GetSnapshotBlockPublicAccessStateCommand, "GetSnapshotBlockPublicAccessStateCommand"),
      GetSpotPlacementScoresCommand: /* @__PURE__ */ __name(() => GetSpotPlacementScoresCommand, "GetSpotPlacementScoresCommand"),
      GetSubnetCidrReservationsCommand: /* @__PURE__ */ __name(() => GetSubnetCidrReservationsCommand, "GetSubnetCidrReservationsCommand"),
      GetTransitGatewayAttachmentPropagationsCommand: /* @__PURE__ */ __name(() => GetTransitGatewayAttachmentPropagationsCommand, "GetTransitGatewayAttachmentPropagationsCommand"),
      GetTransitGatewayMulticastDomainAssociationsCommand: /* @__PURE__ */ __name(() => GetTransitGatewayMulticastDomainAssociationsCommand, "GetTransitGatewayMulticastDomainAssociationsCommand"),
      GetTransitGatewayPolicyTableAssociationsCommand: /* @__PURE__ */ __name(() => GetTransitGatewayPolicyTableAssociationsCommand, "GetTransitGatewayPolicyTableAssociationsCommand"),
      GetTransitGatewayPolicyTableEntriesCommand: /* @__PURE__ */ __name(() => GetTransitGatewayPolicyTableEntriesCommand, "GetTransitGatewayPolicyTableEntriesCommand"),
      GetTransitGatewayPrefixListReferencesCommand: /* @__PURE__ */ __name(() => GetTransitGatewayPrefixListReferencesCommand, "GetTransitGatewayPrefixListReferencesCommand"),
      GetTransitGatewayRouteTableAssociationsCommand: /* @__PURE__ */ __name(() => GetTransitGatewayRouteTableAssociationsCommand, "GetTransitGatewayRouteTableAssociationsCommand"),
      GetTransitGatewayRouteTablePropagationsCommand: /* @__PURE__ */ __name(() => GetTransitGatewayRouteTablePropagationsCommand, "GetTransitGatewayRouteTablePropagationsCommand"),
      GetVerifiedAccessEndpointPolicyCommand: /* @__PURE__ */ __name(() => GetVerifiedAccessEndpointPolicyCommand, "GetVerifiedAccessEndpointPolicyCommand"),
      GetVerifiedAccessEndpointTargetsCommand: /* @__PURE__ */ __name(() => GetVerifiedAccessEndpointTargetsCommand, "GetVerifiedAccessEndpointTargetsCommand"),
      GetVerifiedAccessGroupPolicyCommand: /* @__PURE__ */ __name(() => GetVerifiedAccessGroupPolicyCommand, "GetVerifiedAccessGroupPolicyCommand"),
      GetVpnConnectionDeviceSampleConfigurationCommand: /* @__PURE__ */ __name(() => GetVpnConnectionDeviceSampleConfigurationCommand, "GetVpnConnectionDeviceSampleConfigurationCommand"),
      GetVpnConnectionDeviceSampleConfigurationResultFilterSensitiveLog: /* @__PURE__ */ __name(() => GetVpnConnectionDeviceSampleConfigurationResultFilterSensitiveLog, "GetVpnConnectionDeviceSampleConfigurationResultFilterSensitiveLog"),
      GetVpnConnectionDeviceTypesCommand: /* @__PURE__ */ __name(() => GetVpnConnectionDeviceTypesCommand, "GetVpnConnectionDeviceTypesCommand"),
      GetVpnTunnelReplacementStatusCommand: /* @__PURE__ */ __name(() => GetVpnTunnelReplacementStatusCommand, "GetVpnTunnelReplacementStatusCommand"),
      HostMaintenance: /* @__PURE__ */ __name(() => HostMaintenance, "HostMaintenance"),
      HostRecovery: /* @__PURE__ */ __name(() => HostRecovery, "HostRecovery"),
      HostTenancy: /* @__PURE__ */ __name(() => HostTenancy, "HostTenancy"),
      HostnameType: /* @__PURE__ */ __name(() => HostnameType, "HostnameType"),
      HttpTokensState: /* @__PURE__ */ __name(() => HttpTokensState, "HttpTokensState"),
      HypervisorType: /* @__PURE__ */ __name(() => HypervisorType, "HypervisorType"),
      IamInstanceProfileAssociationState: /* @__PURE__ */ __name(() => IamInstanceProfileAssociationState, "IamInstanceProfileAssociationState"),
      Igmpv2SupportValue: /* @__PURE__ */ __name(() => Igmpv2SupportValue, "Igmpv2SupportValue"),
      ImageAttributeName: /* @__PURE__ */ __name(() => ImageAttributeName, "ImageAttributeName"),
      ImageBlockPublicAccessDisabledState: /* @__PURE__ */ __name(() => ImageBlockPublicAccessDisabledState, "ImageBlockPublicAccessDisabledState"),
      ImageBlockPublicAccessEnabledState: /* @__PURE__ */ __name(() => ImageBlockPublicAccessEnabledState, "ImageBlockPublicAccessEnabledState"),
      ImageDiskContainerFilterSensitiveLog: /* @__PURE__ */ __name(() => ImageDiskContainerFilterSensitiveLog, "ImageDiskContainerFilterSensitiveLog"),
      ImageReferenceOptionName: /* @__PURE__ */ __name(() => ImageReferenceOptionName, "ImageReferenceOptionName"),
      ImageReferenceResourceType: /* @__PURE__ */ __name(() => ImageReferenceResourceType, "ImageReferenceResourceType"),
      ImageState: /* @__PURE__ */ __name(() => ImageState, "ImageState"),
      ImageTypeValues: /* @__PURE__ */ __name(() => ImageTypeValues, "ImageTypeValues"),
      ImdsSupportValues: /* @__PURE__ */ __name(() => ImdsSupportValues, "ImdsSupportValues"),
      ImportClientVpnClientCertificateRevocationListCommand: /* @__PURE__ */ __name(() => ImportClientVpnClientCertificateRevocationListCommand, "ImportClientVpnClientCertificateRevocationListCommand"),
      ImportImageCommand: /* @__PURE__ */ __name(() => ImportImageCommand, "ImportImageCommand"),
      ImportImageRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => ImportImageRequestFilterSensitiveLog, "ImportImageRequestFilterSensitiveLog"),
      ImportImageResultFilterSensitiveLog: /* @__PURE__ */ __name(() => ImportImageResultFilterSensitiveLog, "ImportImageResultFilterSensitiveLog"),
      ImportImageTaskFilterSensitiveLog: /* @__PURE__ */ __name(() => ImportImageTaskFilterSensitiveLog, "ImportImageTaskFilterSensitiveLog"),
      ImportInstanceCommand: /* @__PURE__ */ __name(() => ImportInstanceCommand, "ImportInstanceCommand"),
      ImportInstanceLaunchSpecificationFilterSensitiveLog: /* @__PURE__ */ __name(() => ImportInstanceLaunchSpecificationFilterSensitiveLog, "ImportInstanceLaunchSpecificationFilterSensitiveLog"),
      ImportInstanceRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => ImportInstanceRequestFilterSensitiveLog, "ImportInstanceRequestFilterSensitiveLog"),
      ImportInstanceResultFilterSensitiveLog: /* @__PURE__ */ __name(() => ImportInstanceResultFilterSensitiveLog, "ImportInstanceResultFilterSensitiveLog"),
      ImportInstanceTaskDetailsFilterSensitiveLog: /* @__PURE__ */ __name(() => ImportInstanceTaskDetailsFilterSensitiveLog, "ImportInstanceTaskDetailsFilterSensitiveLog"),
      ImportInstanceVolumeDetailItemFilterSensitiveLog: /* @__PURE__ */ __name(() => ImportInstanceVolumeDetailItemFilterSensitiveLog, "ImportInstanceVolumeDetailItemFilterSensitiveLog"),
      ImportKeyPairCommand: /* @__PURE__ */ __name(() => ImportKeyPairCommand, "ImportKeyPairCommand"),
      ImportSnapshotCommand: /* @__PURE__ */ __name(() => ImportSnapshotCommand, "ImportSnapshotCommand"),
      ImportSnapshotRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => ImportSnapshotRequestFilterSensitiveLog, "ImportSnapshotRequestFilterSensitiveLog"),
      ImportSnapshotResultFilterSensitiveLog: /* @__PURE__ */ __name(() => ImportSnapshotResultFilterSensitiveLog, "ImportSnapshotResultFilterSensitiveLog"),
      ImportSnapshotTaskFilterSensitiveLog: /* @__PURE__ */ __name(() => ImportSnapshotTaskFilterSensitiveLog, "ImportSnapshotTaskFilterSensitiveLog"),
      ImportVolumeCommand: /* @__PURE__ */ __name(() => ImportVolumeCommand, "ImportVolumeCommand"),
      ImportVolumeRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => ImportVolumeRequestFilterSensitiveLog, "ImportVolumeRequestFilterSensitiveLog"),
      ImportVolumeResultFilterSensitiveLog: /* @__PURE__ */ __name(() => ImportVolumeResultFilterSensitiveLog, "ImportVolumeResultFilterSensitiveLog"),
      ImportVolumeTaskDetailsFilterSensitiveLog: /* @__PURE__ */ __name(() => ImportVolumeTaskDetailsFilterSensitiveLog, "ImportVolumeTaskDetailsFilterSensitiveLog"),
      InitializationType: /* @__PURE__ */ __name(() => InitializationType, "InitializationType"),
      InstanceAttributeName: /* @__PURE__ */ __name(() => InstanceAttributeName, "InstanceAttributeName"),
      InstanceAutoRecoveryState: /* @__PURE__ */ __name(() => InstanceAutoRecoveryState, "InstanceAutoRecoveryState"),
      InstanceBandwidthWeighting: /* @__PURE__ */ __name(() => InstanceBandwidthWeighting, "InstanceBandwidthWeighting"),
      InstanceBootModeValues: /* @__PURE__ */ __name(() => InstanceBootModeValues, "InstanceBootModeValues"),
      InstanceEventWindowState: /* @__PURE__ */ __name(() => InstanceEventWindowState, "InstanceEventWindowState"),
      InstanceGeneration: /* @__PURE__ */ __name(() => InstanceGeneration, "InstanceGeneration"),
      InstanceHealthStatus: /* @__PURE__ */ __name(() => InstanceHealthStatus, "InstanceHealthStatus"),
      InstanceInterruptionBehavior: /* @__PURE__ */ __name(() => InstanceInterruptionBehavior, "InstanceInterruptionBehavior"),
      InstanceLifecycle: /* @__PURE__ */ __name(() => InstanceLifecycle, "InstanceLifecycle"),
      InstanceLifecycleType: /* @__PURE__ */ __name(() => InstanceLifecycleType, "InstanceLifecycleType"),
      InstanceMatchCriteria: /* @__PURE__ */ __name(() => InstanceMatchCriteria, "InstanceMatchCriteria"),
      InstanceMetadataEndpointState: /* @__PURE__ */ __name(() => InstanceMetadataEndpointState, "InstanceMetadataEndpointState"),
      InstanceMetadataOptionsState: /* @__PURE__ */ __name(() => InstanceMetadataOptionsState, "InstanceMetadataOptionsState"),
      InstanceMetadataProtocolState: /* @__PURE__ */ __name(() => InstanceMetadataProtocolState, "InstanceMetadataProtocolState"),
      InstanceMetadataTagsState: /* @__PURE__ */ __name(() => InstanceMetadataTagsState, "InstanceMetadataTagsState"),
      InstanceRebootMigrationState: /* @__PURE__ */ __name(() => InstanceRebootMigrationState, "InstanceRebootMigrationState"),
      InstanceStateName: /* @__PURE__ */ __name(() => InstanceStateName, "InstanceStateName"),
      InstanceStorageEncryptionSupport: /* @__PURE__ */ __name(() => InstanceStorageEncryptionSupport, "InstanceStorageEncryptionSupport"),
      InstanceTypeHypervisor: /* @__PURE__ */ __name(() => InstanceTypeHypervisor, "InstanceTypeHypervisor"),
      InterfacePermissionType: /* @__PURE__ */ __name(() => InterfacePermissionType, "InterfacePermissionType"),
      InterfaceProtocolType: /* @__PURE__ */ __name(() => InterfaceProtocolType, "InterfaceProtocolType"),
      InternetGatewayBlockMode: /* @__PURE__ */ __name(() => InternetGatewayBlockMode, "InternetGatewayBlockMode"),
      InternetGatewayExclusionMode: /* @__PURE__ */ __name(() => InternetGatewayExclusionMode, "InternetGatewayExclusionMode"),
      IpAddressType: /* @__PURE__ */ __name(() => IpAddressType, "IpAddressType"),
      IpSource: /* @__PURE__ */ __name(() => IpSource, "IpSource"),
      IpamAddressHistoryResourceType: /* @__PURE__ */ __name(() => IpamAddressHistoryResourceType, "IpamAddressHistoryResourceType"),
      IpamAssociatedResourceDiscoveryStatus: /* @__PURE__ */ __name(() => IpamAssociatedResourceDiscoveryStatus, "IpamAssociatedResourceDiscoveryStatus"),
      IpamComplianceStatus: /* @__PURE__ */ __name(() => IpamComplianceStatus, "IpamComplianceStatus"),
      IpamDiscoveryFailureCode: /* @__PURE__ */ __name(() => IpamDiscoveryFailureCode, "IpamDiscoveryFailureCode"),
      IpamExternalResourceVerificationTokenState: /* @__PURE__ */ __name(() => IpamExternalResourceVerificationTokenState, "IpamExternalResourceVerificationTokenState"),
      IpamManagementState: /* @__PURE__ */ __name(() => IpamManagementState, "IpamManagementState"),
      IpamMeteredAccount: /* @__PURE__ */ __name(() => IpamMeteredAccount, "IpamMeteredAccount"),
      IpamNetworkInterfaceAttachmentStatus: /* @__PURE__ */ __name(() => IpamNetworkInterfaceAttachmentStatus, "IpamNetworkInterfaceAttachmentStatus"),
      IpamOverlapStatus: /* @__PURE__ */ __name(() => IpamOverlapStatus, "IpamOverlapStatus"),
      IpamPoolAllocationResourceType: /* @__PURE__ */ __name(() => IpamPoolAllocationResourceType, "IpamPoolAllocationResourceType"),
      IpamPoolAwsService: /* @__PURE__ */ __name(() => IpamPoolAwsService, "IpamPoolAwsService"),
      IpamPoolCidrFailureCode: /* @__PURE__ */ __name(() => IpamPoolCidrFailureCode, "IpamPoolCidrFailureCode"),
      IpamPoolCidrState: /* @__PURE__ */ __name(() => IpamPoolCidrState, "IpamPoolCidrState"),
      IpamPoolPublicIpSource: /* @__PURE__ */ __name(() => IpamPoolPublicIpSource, "IpamPoolPublicIpSource"),
      IpamPoolSourceResourceType: /* @__PURE__ */ __name(() => IpamPoolSourceResourceType, "IpamPoolSourceResourceType"),
      IpamPoolState: /* @__PURE__ */ __name(() => IpamPoolState, "IpamPoolState"),
      IpamPublicAddressAssociationStatus: /* @__PURE__ */ __name(() => IpamPublicAddressAssociationStatus, "IpamPublicAddressAssociationStatus"),
      IpamPublicAddressAwsService: /* @__PURE__ */ __name(() => IpamPublicAddressAwsService, "IpamPublicAddressAwsService"),
      IpamPublicAddressType: /* @__PURE__ */ __name(() => IpamPublicAddressType, "IpamPublicAddressType"),
      IpamResourceCidrIpSource: /* @__PURE__ */ __name(() => IpamResourceCidrIpSource, "IpamResourceCidrIpSource"),
      IpamResourceDiscoveryAssociationState: /* @__PURE__ */ __name(() => IpamResourceDiscoveryAssociationState, "IpamResourceDiscoveryAssociationState"),
      IpamResourceDiscoveryState: /* @__PURE__ */ __name(() => IpamResourceDiscoveryState, "IpamResourceDiscoveryState"),
      IpamResourceType: /* @__PURE__ */ __name(() => IpamResourceType, "IpamResourceType"),
      IpamScopeState: /* @__PURE__ */ __name(() => IpamScopeState, "IpamScopeState"),
      IpamScopeType: /* @__PURE__ */ __name(() => IpamScopeType, "IpamScopeType"),
      IpamState: /* @__PURE__ */ __name(() => IpamState, "IpamState"),
      IpamTier: /* @__PURE__ */ __name(() => IpamTier, "IpamTier"),
      Ipv6AddressAttribute: /* @__PURE__ */ __name(() => Ipv6AddressAttribute, "Ipv6AddressAttribute"),
      Ipv6SupportValue: /* @__PURE__ */ __name(() => Ipv6SupportValue, "Ipv6SupportValue"),
      KeyFormat: /* @__PURE__ */ __name(() => KeyFormat, "KeyFormat"),
      KeyPairFilterSensitiveLog: /* @__PURE__ */ __name(() => KeyPairFilterSensitiveLog, "KeyPairFilterSensitiveLog"),
      KeyType: /* @__PURE__ */ __name(() => KeyType, "KeyType"),
      LaunchSpecificationFilterSensitiveLog: /* @__PURE__ */ __name(() => LaunchSpecificationFilterSensitiveLog, "LaunchSpecificationFilterSensitiveLog"),
      LaunchTemplateAutoRecoveryState: /* @__PURE__ */ __name(() => LaunchTemplateAutoRecoveryState, "LaunchTemplateAutoRecoveryState"),
      LaunchTemplateErrorCode: /* @__PURE__ */ __name(() => LaunchTemplateErrorCode, "LaunchTemplateErrorCode"),
      LaunchTemplateHttpTokensState: /* @__PURE__ */ __name(() => LaunchTemplateHttpTokensState, "LaunchTemplateHttpTokensState"),
      LaunchTemplateInstanceMetadataEndpointState: /* @__PURE__ */ __name(() => LaunchTemplateInstanceMetadataEndpointState, "LaunchTemplateInstanceMetadataEndpointState"),
      LaunchTemplateInstanceMetadataOptionsState: /* @__PURE__ */ __name(() => LaunchTemplateInstanceMetadataOptionsState, "LaunchTemplateInstanceMetadataOptionsState"),
      LaunchTemplateInstanceMetadataProtocolIpv6: /* @__PURE__ */ __name(() => LaunchTemplateInstanceMetadataProtocolIpv6, "LaunchTemplateInstanceMetadataProtocolIpv6"),
      LaunchTemplateInstanceMetadataTagsState: /* @__PURE__ */ __name(() => LaunchTemplateInstanceMetadataTagsState, "LaunchTemplateInstanceMetadataTagsState"),
      LaunchTemplateVersionFilterSensitiveLog: /* @__PURE__ */ __name(() => LaunchTemplateVersionFilterSensitiveLog, "LaunchTemplateVersionFilterSensitiveLog"),
      ListImagesInRecycleBinCommand: /* @__PURE__ */ __name(() => ListImagesInRecycleBinCommand, "ListImagesInRecycleBinCommand"),
      ListSnapshotsInRecycleBinCommand: /* @__PURE__ */ __name(() => ListSnapshotsInRecycleBinCommand, "ListSnapshotsInRecycleBinCommand"),
      ListingState: /* @__PURE__ */ __name(() => ListingState, "ListingState"),
      ListingStatus: /* @__PURE__ */ __name(() => ListingStatus, "ListingStatus"),
      LocalGatewayRouteState: /* @__PURE__ */ __name(() => LocalGatewayRouteState, "LocalGatewayRouteState"),
      LocalGatewayRouteTableMode: /* @__PURE__ */ __name(() => LocalGatewayRouteTableMode, "LocalGatewayRouteTableMode"),
      LocalGatewayRouteType: /* @__PURE__ */ __name(() => LocalGatewayRouteType, "LocalGatewayRouteType"),
      LocalGatewayVirtualInterfaceConfigurationState: /* @__PURE__ */ __name(() => LocalGatewayVirtualInterfaceConfigurationState, "LocalGatewayVirtualInterfaceConfigurationState"),
      LocalGatewayVirtualInterfaceGroupConfigurationState: /* @__PURE__ */ __name(() => LocalGatewayVirtualInterfaceGroupConfigurationState, "LocalGatewayVirtualInterfaceGroupConfigurationState"),
      LocalStorage: /* @__PURE__ */ __name(() => LocalStorage, "LocalStorage"),
      LocalStorageType: /* @__PURE__ */ __name(() => LocalStorageType, "LocalStorageType"),
      LocationType: /* @__PURE__ */ __name(() => LocationType, "LocationType"),
      LockMode: /* @__PURE__ */ __name(() => LockMode, "LockMode"),
      LockSnapshotCommand: /* @__PURE__ */ __name(() => LockSnapshotCommand, "LockSnapshotCommand"),
      LockState: /* @__PURE__ */ __name(() => LockState, "LockState"),
      LogDestinationType: /* @__PURE__ */ __name(() => LogDestinationType, "LogDestinationType"),
      MacModificationTaskState: /* @__PURE__ */ __name(() => MacModificationTaskState, "MacModificationTaskState"),
      MacModificationTaskType: /* @__PURE__ */ __name(() => MacModificationTaskType, "MacModificationTaskType"),
      MacSystemIntegrityProtectionSettingStatus: /* @__PURE__ */ __name(() => MacSystemIntegrityProtectionSettingStatus, "MacSystemIntegrityProtectionSettingStatus"),
      ManagedBy: /* @__PURE__ */ __name(() => ManagedBy, "ManagedBy"),
      MarketType: /* @__PURE__ */ __name(() => MarketType, "MarketType"),
      MembershipType: /* @__PURE__ */ __name(() => MembershipType, "MembershipType"),
      MetadataDefaultHttpTokensState: /* @__PURE__ */ __name(() => MetadataDefaultHttpTokensState, "MetadataDefaultHttpTokensState"),
      MetricType: /* @__PURE__ */ __name(() => MetricType, "MetricType"),
      ModifyAddressAttributeCommand: /* @__PURE__ */ __name(() => ModifyAddressAttributeCommand, "ModifyAddressAttributeCommand"),
      ModifyAvailabilityZoneGroupCommand: /* @__PURE__ */ __name(() => ModifyAvailabilityZoneGroupCommand, "ModifyAvailabilityZoneGroupCommand"),
      ModifyAvailabilityZoneOptInStatus: /* @__PURE__ */ __name(() => ModifyAvailabilityZoneOptInStatus, "ModifyAvailabilityZoneOptInStatus"),
      ModifyCapacityReservationCommand: /* @__PURE__ */ __name(() => ModifyCapacityReservationCommand, "ModifyCapacityReservationCommand"),
      ModifyCapacityReservationFleetCommand: /* @__PURE__ */ __name(() => ModifyCapacityReservationFleetCommand, "ModifyCapacityReservationFleetCommand"),
      ModifyClientVpnEndpointCommand: /* @__PURE__ */ __name(() => ModifyClientVpnEndpointCommand, "ModifyClientVpnEndpointCommand"),
      ModifyDefaultCreditSpecificationCommand: /* @__PURE__ */ __name(() => ModifyDefaultCreditSpecificationCommand, "ModifyDefaultCreditSpecificationCommand"),
      ModifyEbsDefaultKmsKeyIdCommand: /* @__PURE__ */ __name(() => ModifyEbsDefaultKmsKeyIdCommand, "ModifyEbsDefaultKmsKeyIdCommand"),
      ModifyFleetCommand: /* @__PURE__ */ __name(() => ModifyFleetCommand, "ModifyFleetCommand"),
      ModifyFpgaImageAttributeCommand: /* @__PURE__ */ __name(() => ModifyFpgaImageAttributeCommand, "ModifyFpgaImageAttributeCommand"),
      ModifyHostsCommand: /* @__PURE__ */ __name(() => ModifyHostsCommand, "ModifyHostsCommand"),
      ModifyIdFormatCommand: /* @__PURE__ */ __name(() => ModifyIdFormatCommand, "ModifyIdFormatCommand"),
      ModifyIdentityIdFormatCommand: /* @__PURE__ */ __name(() => ModifyIdentityIdFormatCommand, "ModifyIdentityIdFormatCommand"),
      ModifyImageAttributeCommand: /* @__PURE__ */ __name(() => ModifyImageAttributeCommand, "ModifyImageAttributeCommand"),
      ModifyInstanceAttributeCommand: /* @__PURE__ */ __name(() => ModifyInstanceAttributeCommand, "ModifyInstanceAttributeCommand"),
      ModifyInstanceCapacityReservationAttributesCommand: /* @__PURE__ */ __name(() => ModifyInstanceCapacityReservationAttributesCommand, "ModifyInstanceCapacityReservationAttributesCommand"),
      ModifyInstanceConnectEndpointCommand: /* @__PURE__ */ __name(() => ModifyInstanceConnectEndpointCommand, "ModifyInstanceConnectEndpointCommand"),
      ModifyInstanceCpuOptionsCommand: /* @__PURE__ */ __name(() => ModifyInstanceCpuOptionsCommand, "ModifyInstanceCpuOptionsCommand"),
      ModifyInstanceCreditSpecificationCommand: /* @__PURE__ */ __name(() => ModifyInstanceCreditSpecificationCommand, "ModifyInstanceCreditSpecificationCommand"),
      ModifyInstanceEventStartTimeCommand: /* @__PURE__ */ __name(() => ModifyInstanceEventStartTimeCommand, "ModifyInstanceEventStartTimeCommand"),
      ModifyInstanceEventWindowCommand: /* @__PURE__ */ __name(() => ModifyInstanceEventWindowCommand, "ModifyInstanceEventWindowCommand"),
      ModifyInstanceMaintenanceOptionsCommand: /* @__PURE__ */ __name(() => ModifyInstanceMaintenanceOptionsCommand, "ModifyInstanceMaintenanceOptionsCommand"),
      ModifyInstanceMetadataDefaultsCommand: /* @__PURE__ */ __name(() => ModifyInstanceMetadataDefaultsCommand, "ModifyInstanceMetadataDefaultsCommand"),
      ModifyInstanceMetadataOptionsCommand: /* @__PURE__ */ __name(() => ModifyInstanceMetadataOptionsCommand, "ModifyInstanceMetadataOptionsCommand"),
      ModifyInstanceNetworkPerformanceOptionsCommand: /* @__PURE__ */ __name(() => ModifyInstanceNetworkPerformanceOptionsCommand, "ModifyInstanceNetworkPerformanceOptionsCommand"),
      ModifyInstancePlacementCommand: /* @__PURE__ */ __name(() => ModifyInstancePlacementCommand, "ModifyInstancePlacementCommand"),
      ModifyIpamCommand: /* @__PURE__ */ __name(() => ModifyIpamCommand, "ModifyIpamCommand"),
      ModifyIpamPoolCommand: /* @__PURE__ */ __name(() => ModifyIpamPoolCommand, "ModifyIpamPoolCommand"),
      ModifyIpamResourceCidrCommand: /* @__PURE__ */ __name(() => ModifyIpamResourceCidrCommand, "ModifyIpamResourceCidrCommand"),
      ModifyIpamResourceDiscoveryCommand: /* @__PURE__ */ __name(() => ModifyIpamResourceDiscoveryCommand, "ModifyIpamResourceDiscoveryCommand"),
      ModifyIpamScopeCommand: /* @__PURE__ */ __name(() => ModifyIpamScopeCommand, "ModifyIpamScopeCommand"),
      ModifyLaunchTemplateCommand: /* @__PURE__ */ __name(() => ModifyLaunchTemplateCommand, "ModifyLaunchTemplateCommand"),
      ModifyLocalGatewayRouteCommand: /* @__PURE__ */ __name(() => ModifyLocalGatewayRouteCommand, "ModifyLocalGatewayRouteCommand"),
      ModifyManagedPrefixListCommand: /* @__PURE__ */ __name(() => ModifyManagedPrefixListCommand, "ModifyManagedPrefixListCommand"),
      ModifyNetworkInterfaceAttributeCommand: /* @__PURE__ */ __name(() => ModifyNetworkInterfaceAttributeCommand, "ModifyNetworkInterfaceAttributeCommand"),
      ModifyPrivateDnsNameOptionsCommand: /* @__PURE__ */ __name(() => ModifyPrivateDnsNameOptionsCommand, "ModifyPrivateDnsNameOptionsCommand"),
      ModifyPublicIpDnsNameOptionsCommand: /* @__PURE__ */ __name(() => ModifyPublicIpDnsNameOptionsCommand, "ModifyPublicIpDnsNameOptionsCommand"),
      ModifyReservedInstancesCommand: /* @__PURE__ */ __name(() => ModifyReservedInstancesCommand, "ModifyReservedInstancesCommand"),
      ModifyRouteServerCommand: /* @__PURE__ */ __name(() => ModifyRouteServerCommand, "ModifyRouteServerCommand"),
      ModifySecurityGroupRulesCommand: /* @__PURE__ */ __name(() => ModifySecurityGroupRulesCommand, "ModifySecurityGroupRulesCommand"),
      ModifySnapshotAttributeCommand: /* @__PURE__ */ __name(() => ModifySnapshotAttributeCommand, "ModifySnapshotAttributeCommand"),
      ModifySnapshotTierCommand: /* @__PURE__ */ __name(() => ModifySnapshotTierCommand, "ModifySnapshotTierCommand"),
      ModifySpotFleetRequestCommand: /* @__PURE__ */ __name(() => ModifySpotFleetRequestCommand, "ModifySpotFleetRequestCommand"),
      ModifySubnetAttributeCommand: /* @__PURE__ */ __name(() => ModifySubnetAttributeCommand, "ModifySubnetAttributeCommand"),
      ModifyTrafficMirrorFilterNetworkServicesCommand: /* @__PURE__ */ __name(() => ModifyTrafficMirrorFilterNetworkServicesCommand, "ModifyTrafficMirrorFilterNetworkServicesCommand"),
      ModifyTrafficMirrorFilterRuleCommand: /* @__PURE__ */ __name(() => ModifyTrafficMirrorFilterRuleCommand, "ModifyTrafficMirrorFilterRuleCommand"),
      ModifyTrafficMirrorSessionCommand: /* @__PURE__ */ __name(() => ModifyTrafficMirrorSessionCommand, "ModifyTrafficMirrorSessionCommand"),
      ModifyTransitGatewayCommand: /* @__PURE__ */ __name(() => ModifyTransitGatewayCommand, "ModifyTransitGatewayCommand"),
      ModifyTransitGatewayPrefixListReferenceCommand: /* @__PURE__ */ __name(() => ModifyTransitGatewayPrefixListReferenceCommand, "ModifyTransitGatewayPrefixListReferenceCommand"),
      ModifyTransitGatewayVpcAttachmentCommand: /* @__PURE__ */ __name(() => ModifyTransitGatewayVpcAttachmentCommand, "ModifyTransitGatewayVpcAttachmentCommand"),
      ModifyVerifiedAccessEndpointCommand: /* @__PURE__ */ __name(() => ModifyVerifiedAccessEndpointCommand, "ModifyVerifiedAccessEndpointCommand"),
      ModifyVerifiedAccessEndpointPolicyCommand: /* @__PURE__ */ __name(() => ModifyVerifiedAccessEndpointPolicyCommand, "ModifyVerifiedAccessEndpointPolicyCommand"),
      ModifyVerifiedAccessGroupCommand: /* @__PURE__ */ __name(() => ModifyVerifiedAccessGroupCommand, "ModifyVerifiedAccessGroupCommand"),
      ModifyVerifiedAccessGroupPolicyCommand: /* @__PURE__ */ __name(() => ModifyVerifiedAccessGroupPolicyCommand, "ModifyVerifiedAccessGroupPolicyCommand"),
      ModifyVerifiedAccessInstanceCommand: /* @__PURE__ */ __name(() => ModifyVerifiedAccessInstanceCommand, "ModifyVerifiedAccessInstanceCommand"),
      ModifyVerifiedAccessInstanceLoggingConfigurationCommand: /* @__PURE__ */ __name(() => ModifyVerifiedAccessInstanceLoggingConfigurationCommand, "ModifyVerifiedAccessInstanceLoggingConfigurationCommand"),
      ModifyVerifiedAccessNativeApplicationOidcOptionsFilterSensitiveLog: /* @__PURE__ */ __name(() => ModifyVerifiedAccessNativeApplicationOidcOptionsFilterSensitiveLog, "ModifyVerifiedAccessNativeApplicationOidcOptionsFilterSensitiveLog"),
      ModifyVerifiedAccessTrustProviderCommand: /* @__PURE__ */ __name(() => ModifyVerifiedAccessTrustProviderCommand, "ModifyVerifiedAccessTrustProviderCommand"),
      ModifyVerifiedAccessTrustProviderOidcOptionsFilterSensitiveLog: /* @__PURE__ */ __name(() => ModifyVerifiedAccessTrustProviderOidcOptionsFilterSensitiveLog, "ModifyVerifiedAccessTrustProviderOidcOptionsFilterSensitiveLog"),
      ModifyVerifiedAccessTrustProviderRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => ModifyVerifiedAccessTrustProviderRequestFilterSensitiveLog, "ModifyVerifiedAccessTrustProviderRequestFilterSensitiveLog"),
      ModifyVerifiedAccessTrustProviderResultFilterSensitiveLog: /* @__PURE__ */ __name(() => ModifyVerifiedAccessTrustProviderResultFilterSensitiveLog, "ModifyVerifiedAccessTrustProviderResultFilterSensitiveLog"),
      ModifyVolumeAttributeCommand: /* @__PURE__ */ __name(() => ModifyVolumeAttributeCommand, "ModifyVolumeAttributeCommand"),
      ModifyVolumeCommand: /* @__PURE__ */ __name(() => ModifyVolumeCommand, "ModifyVolumeCommand"),
      ModifyVpcAttributeCommand: /* @__PURE__ */ __name(() => ModifyVpcAttributeCommand, "ModifyVpcAttributeCommand"),
      ModifyVpcBlockPublicAccessExclusionCommand: /* @__PURE__ */ __name(() => ModifyVpcBlockPublicAccessExclusionCommand, "ModifyVpcBlockPublicAccessExclusionCommand"),
      ModifyVpcBlockPublicAccessOptionsCommand: /* @__PURE__ */ __name(() => ModifyVpcBlockPublicAccessOptionsCommand, "ModifyVpcBlockPublicAccessOptionsCommand"),
      ModifyVpcEndpointCommand: /* @__PURE__ */ __name(() => ModifyVpcEndpointCommand, "ModifyVpcEndpointCommand"),
      ModifyVpcEndpointConnectionNotificationCommand: /* @__PURE__ */ __name(() => ModifyVpcEndpointConnectionNotificationCommand, "ModifyVpcEndpointConnectionNotificationCommand"),
      ModifyVpcEndpointServiceConfigurationCommand: /* @__PURE__ */ __name(() => ModifyVpcEndpointServiceConfigurationCommand, "ModifyVpcEndpointServiceConfigurationCommand"),
      ModifyVpcEndpointServicePayerResponsibilityCommand: /* @__PURE__ */ __name(() => ModifyVpcEndpointServicePayerResponsibilityCommand, "ModifyVpcEndpointServicePayerResponsibilityCommand"),
      ModifyVpcEndpointServicePermissionsCommand: /* @__PURE__ */ __name(() => ModifyVpcEndpointServicePermissionsCommand, "ModifyVpcEndpointServicePermissionsCommand"),
      ModifyVpcPeeringConnectionOptionsCommand: /* @__PURE__ */ __name(() => ModifyVpcPeeringConnectionOptionsCommand, "ModifyVpcPeeringConnectionOptionsCommand"),
      ModifyVpcTenancyCommand: /* @__PURE__ */ __name(() => ModifyVpcTenancyCommand, "ModifyVpcTenancyCommand"),
      ModifyVpnConnectionCommand: /* @__PURE__ */ __name(() => ModifyVpnConnectionCommand, "ModifyVpnConnectionCommand"),
      ModifyVpnConnectionOptionsCommand: /* @__PURE__ */ __name(() => ModifyVpnConnectionOptionsCommand, "ModifyVpnConnectionOptionsCommand"),
      ModifyVpnConnectionOptionsResultFilterSensitiveLog: /* @__PURE__ */ __name(() => ModifyVpnConnectionOptionsResultFilterSensitiveLog, "ModifyVpnConnectionOptionsResultFilterSensitiveLog"),
      ModifyVpnConnectionResultFilterSensitiveLog: /* @__PURE__ */ __name(() => ModifyVpnConnectionResultFilterSensitiveLog, "ModifyVpnConnectionResultFilterSensitiveLog"),
      ModifyVpnTunnelCertificateCommand: /* @__PURE__ */ __name(() => ModifyVpnTunnelCertificateCommand, "ModifyVpnTunnelCertificateCommand"),
      ModifyVpnTunnelCertificateResultFilterSensitiveLog: /* @__PURE__ */ __name(() => ModifyVpnTunnelCertificateResultFilterSensitiveLog, "ModifyVpnTunnelCertificateResultFilterSensitiveLog"),
      ModifyVpnTunnelOptionsCommand: /* @__PURE__ */ __name(() => ModifyVpnTunnelOptionsCommand, "ModifyVpnTunnelOptionsCommand"),
      ModifyVpnTunnelOptionsRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => ModifyVpnTunnelOptionsRequestFilterSensitiveLog, "ModifyVpnTunnelOptionsRequestFilterSensitiveLog"),
      ModifyVpnTunnelOptionsResultFilterSensitiveLog: /* @__PURE__ */ __name(() => ModifyVpnTunnelOptionsResultFilterSensitiveLog, "ModifyVpnTunnelOptionsResultFilterSensitiveLog"),
      ModifyVpnTunnelOptionsSpecificationFilterSensitiveLog: /* @__PURE__ */ __name(() => ModifyVpnTunnelOptionsSpecificationFilterSensitiveLog, "ModifyVpnTunnelOptionsSpecificationFilterSensitiveLog"),
      MonitorInstancesCommand: /* @__PURE__ */ __name(() => MonitorInstancesCommand, "MonitorInstancesCommand"),
      MonitoringState: /* @__PURE__ */ __name(() => MonitoringState, "MonitoringState"),
      MoveAddressToVpcCommand: /* @__PURE__ */ __name(() => MoveAddressToVpcCommand, "MoveAddressToVpcCommand"),
      MoveByoipCidrToIpamCommand: /* @__PURE__ */ __name(() => MoveByoipCidrToIpamCommand, "MoveByoipCidrToIpamCommand"),
      MoveCapacityReservationInstancesCommand: /* @__PURE__ */ __name(() => MoveCapacityReservationInstancesCommand, "MoveCapacityReservationInstancesCommand"),
      MoveStatus: /* @__PURE__ */ __name(() => MoveStatus, "MoveStatus"),
      MulticastSupportValue: /* @__PURE__ */ __name(() => MulticastSupportValue, "MulticastSupportValue"),
      NatGatewayAddressStatus: /* @__PURE__ */ __name(() => NatGatewayAddressStatus, "NatGatewayAddressStatus"),
      NatGatewayState: /* @__PURE__ */ __name(() => NatGatewayState, "NatGatewayState"),
      NetworkInterfaceAttribute: /* @__PURE__ */ __name(() => NetworkInterfaceAttribute, "NetworkInterfaceAttribute"),
      NetworkInterfaceCreationType: /* @__PURE__ */ __name(() => NetworkInterfaceCreationType, "NetworkInterfaceCreationType"),
      NetworkInterfacePermissionStateCode: /* @__PURE__ */ __name(() => NetworkInterfacePermissionStateCode, "NetworkInterfacePermissionStateCode"),
      NetworkInterfaceStatus: /* @__PURE__ */ __name(() => NetworkInterfaceStatus, "NetworkInterfaceStatus"),
      NetworkInterfaceType: /* @__PURE__ */ __name(() => NetworkInterfaceType, "NetworkInterfaceType"),
      NitroEnclavesSupport: /* @__PURE__ */ __name(() => NitroEnclavesSupport, "NitroEnclavesSupport"),
      NitroTpmSupport: /* @__PURE__ */ __name(() => NitroTpmSupport, "NitroTpmSupport"),
      OfferingClassType: /* @__PURE__ */ __name(() => OfferingClassType, "OfferingClassType"),
      OfferingTypeValues: /* @__PURE__ */ __name(() => OfferingTypeValues, "OfferingTypeValues"),
      OidcOptionsFilterSensitiveLog: /* @__PURE__ */ __name(() => OidcOptionsFilterSensitiveLog, "OidcOptionsFilterSensitiveLog"),
      OnDemandAllocationStrategy: /* @__PURE__ */ __name(() => OnDemandAllocationStrategy, "OnDemandAllocationStrategy"),
      OperationType: /* @__PURE__ */ __name(() => OperationType, "OperationType"),
      PartitionLoadFrequency: /* @__PURE__ */ __name(() => PartitionLoadFrequency, "PartitionLoadFrequency"),
      PayerResponsibility: /* @__PURE__ */ __name(() => PayerResponsibility, "PayerResponsibility"),
      PaymentOption: /* @__PURE__ */ __name(() => PaymentOption, "PaymentOption"),
      PeriodType: /* @__PURE__ */ __name(() => PeriodType, "PeriodType"),
      PermissionGroup: /* @__PURE__ */ __name(() => PermissionGroup, "PermissionGroup"),
      PhcSupport: /* @__PURE__ */ __name(() => PhcSupport, "PhcSupport"),
      PlacementGroupState: /* @__PURE__ */ __name(() => PlacementGroupState, "PlacementGroupState"),
      PlacementGroupStrategy: /* @__PURE__ */ __name(() => PlacementGroupStrategy, "PlacementGroupStrategy"),
      PlacementStrategy: /* @__PURE__ */ __name(() => PlacementStrategy, "PlacementStrategy"),
      PlatformValues: /* @__PURE__ */ __name(() => PlatformValues, "PlatformValues"),
      PrefixListState: /* @__PURE__ */ __name(() => PrefixListState, "PrefixListState"),
      PrincipalType: /* @__PURE__ */ __name(() => PrincipalType, "PrincipalType"),
      ProductCodeValues: /* @__PURE__ */ __name(() => ProductCodeValues, "ProductCodeValues"),
      Protocol: /* @__PURE__ */ __name(() => Protocol, "Protocol"),
      ProtocolValue: /* @__PURE__ */ __name(() => ProtocolValue, "ProtocolValue"),
      ProvisionByoipCidrCommand: /* @__PURE__ */ __name(() => ProvisionByoipCidrCommand, "ProvisionByoipCidrCommand"),
      ProvisionIpamByoasnCommand: /* @__PURE__ */ __name(() => ProvisionIpamByoasnCommand, "ProvisionIpamByoasnCommand"),
      ProvisionIpamPoolCidrCommand: /* @__PURE__ */ __name(() => ProvisionIpamPoolCidrCommand, "ProvisionIpamPoolCidrCommand"),
      ProvisionPublicIpv4PoolCidrCommand: /* @__PURE__ */ __name(() => ProvisionPublicIpv4PoolCidrCommand, "ProvisionPublicIpv4PoolCidrCommand"),
      PublicIpDnsOption: /* @__PURE__ */ __name(() => PublicIpDnsOption, "PublicIpDnsOption"),
      PurchaseCapacityBlockCommand: /* @__PURE__ */ __name(() => PurchaseCapacityBlockCommand, "PurchaseCapacityBlockCommand"),
      PurchaseCapacityBlockExtensionCommand: /* @__PURE__ */ __name(() => PurchaseCapacityBlockExtensionCommand, "PurchaseCapacityBlockExtensionCommand"),
      PurchaseHostReservationCommand: /* @__PURE__ */ __name(() => PurchaseHostReservationCommand, "PurchaseHostReservationCommand"),
      PurchaseReservedInstancesOfferingCommand: /* @__PURE__ */ __name(() => PurchaseReservedInstancesOfferingCommand, "PurchaseReservedInstancesOfferingCommand"),
      PurchaseScheduledInstancesCommand: /* @__PURE__ */ __name(() => PurchaseScheduledInstancesCommand, "PurchaseScheduledInstancesCommand"),
      RIProductDescription: /* @__PURE__ */ __name(() => RIProductDescription, "RIProductDescription"),
      RebootInstancesCommand: /* @__PURE__ */ __name(() => RebootInstancesCommand, "RebootInstancesCommand"),
      RebootMigrationSupport: /* @__PURE__ */ __name(() => RebootMigrationSupport, "RebootMigrationSupport"),
      RecurringChargeFrequency: /* @__PURE__ */ __name(() => RecurringChargeFrequency, "RecurringChargeFrequency"),
      RegisterImageCommand: /* @__PURE__ */ __name(() => RegisterImageCommand, "RegisterImageCommand"),
      RegisterInstanceEventNotificationAttributesCommand: /* @__PURE__ */ __name(() => RegisterInstanceEventNotificationAttributesCommand, "RegisterInstanceEventNotificationAttributesCommand"),
      RegisterTransitGatewayMulticastGroupMembersCommand: /* @__PURE__ */ __name(() => RegisterTransitGatewayMulticastGroupMembersCommand, "RegisterTransitGatewayMulticastGroupMembersCommand"),
      RegisterTransitGatewayMulticastGroupSourcesCommand: /* @__PURE__ */ __name(() => RegisterTransitGatewayMulticastGroupSourcesCommand, "RegisterTransitGatewayMulticastGroupSourcesCommand"),
      RejectCapacityReservationBillingOwnershipCommand: /* @__PURE__ */ __name(() => RejectCapacityReservationBillingOwnershipCommand, "RejectCapacityReservationBillingOwnershipCommand"),
      RejectTransitGatewayMulticastDomainAssociationsCommand: /* @__PURE__ */ __name(() => RejectTransitGatewayMulticastDomainAssociationsCommand, "RejectTransitGatewayMulticastDomainAssociationsCommand"),
      RejectTransitGatewayPeeringAttachmentCommand: /* @__PURE__ */ __name(() => RejectTransitGatewayPeeringAttachmentCommand, "RejectTransitGatewayPeeringAttachmentCommand"),
      RejectTransitGatewayVpcAttachmentCommand: /* @__PURE__ */ __name(() => RejectTransitGatewayVpcAttachmentCommand, "RejectTransitGatewayVpcAttachmentCommand"),
      RejectVpcEndpointConnectionsCommand: /* @__PURE__ */ __name(() => RejectVpcEndpointConnectionsCommand, "RejectVpcEndpointConnectionsCommand"),
      RejectVpcPeeringConnectionCommand: /* @__PURE__ */ __name(() => RejectVpcPeeringConnectionCommand, "RejectVpcPeeringConnectionCommand"),
      ReleaseAddressCommand: /* @__PURE__ */ __name(() => ReleaseAddressCommand, "ReleaseAddressCommand"),
      ReleaseHostsCommand: /* @__PURE__ */ __name(() => ReleaseHostsCommand, "ReleaseHostsCommand"),
      ReleaseIpamPoolAllocationCommand: /* @__PURE__ */ __name(() => ReleaseIpamPoolAllocationCommand, "ReleaseIpamPoolAllocationCommand"),
      ReplaceIamInstanceProfileAssociationCommand: /* @__PURE__ */ __name(() => ReplaceIamInstanceProfileAssociationCommand, "ReplaceIamInstanceProfileAssociationCommand"),
      ReplaceImageCriteriaInAllowedImagesSettingsCommand: /* @__PURE__ */ __name(() => ReplaceImageCriteriaInAllowedImagesSettingsCommand, "ReplaceImageCriteriaInAllowedImagesSettingsCommand"),
      ReplaceNetworkAclAssociationCommand: /* @__PURE__ */ __name(() => ReplaceNetworkAclAssociationCommand, "ReplaceNetworkAclAssociationCommand"),
      ReplaceNetworkAclEntryCommand: /* @__PURE__ */ __name(() => ReplaceNetworkAclEntryCommand, "ReplaceNetworkAclEntryCommand"),
      ReplaceRootVolumeTaskState: /* @__PURE__ */ __name(() => ReplaceRootVolumeTaskState, "ReplaceRootVolumeTaskState"),
      ReplaceRouteCommand: /* @__PURE__ */ __name(() => ReplaceRouteCommand, "ReplaceRouteCommand"),
      ReplaceRouteTableAssociationCommand: /* @__PURE__ */ __name(() => ReplaceRouteTableAssociationCommand, "ReplaceRouteTableAssociationCommand"),
      ReplaceTransitGatewayRouteCommand: /* @__PURE__ */ __name(() => ReplaceTransitGatewayRouteCommand, "ReplaceTransitGatewayRouteCommand"),
      ReplaceVpnTunnelCommand: /* @__PURE__ */ __name(() => ReplaceVpnTunnelCommand, "ReplaceVpnTunnelCommand"),
      ReplacementStrategy: /* @__PURE__ */ __name(() => ReplacementStrategy, "ReplacementStrategy"),
      ReportInstanceReasonCodes: /* @__PURE__ */ __name(() => ReportInstanceReasonCodes, "ReportInstanceReasonCodes"),
      ReportInstanceStatusCommand: /* @__PURE__ */ __name(() => ReportInstanceStatusCommand, "ReportInstanceStatusCommand"),
      ReportInstanceStatusRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => ReportInstanceStatusRequestFilterSensitiveLog, "ReportInstanceStatusRequestFilterSensitiveLog"),
      ReportState: /* @__PURE__ */ __name(() => ReportState, "ReportState"),
      ReportStatusType: /* @__PURE__ */ __name(() => ReportStatusType, "ReportStatusType"),
      RequestLaunchTemplateDataFilterSensitiveLog: /* @__PURE__ */ __name(() => RequestLaunchTemplateDataFilterSensitiveLog, "RequestLaunchTemplateDataFilterSensitiveLog"),
      RequestSpotFleetCommand: /* @__PURE__ */ __name(() => RequestSpotFleetCommand, "RequestSpotFleetCommand"),
      RequestSpotFleetRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => RequestSpotFleetRequestFilterSensitiveLog, "RequestSpotFleetRequestFilterSensitiveLog"),
      RequestSpotInstancesCommand: /* @__PURE__ */ __name(() => RequestSpotInstancesCommand, "RequestSpotInstancesCommand"),
      RequestSpotInstancesRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => RequestSpotInstancesRequestFilterSensitiveLog, "RequestSpotInstancesRequestFilterSensitiveLog"),
      RequestSpotInstancesResultFilterSensitiveLog: /* @__PURE__ */ __name(() => RequestSpotInstancesResultFilterSensitiveLog, "RequestSpotInstancesResultFilterSensitiveLog"),
      RequestSpotLaunchSpecificationFilterSensitiveLog: /* @__PURE__ */ __name(() => RequestSpotLaunchSpecificationFilterSensitiveLog, "RequestSpotLaunchSpecificationFilterSensitiveLog"),
      ReservationState: /* @__PURE__ */ __name(() => ReservationState, "ReservationState"),
      ReservedInstanceState: /* @__PURE__ */ __name(() => ReservedInstanceState, "ReservedInstanceState"),
      ResetAddressAttributeCommand: /* @__PURE__ */ __name(() => ResetAddressAttributeCommand, "ResetAddressAttributeCommand"),
      ResetEbsDefaultKmsKeyIdCommand: /* @__PURE__ */ __name(() => ResetEbsDefaultKmsKeyIdCommand, "ResetEbsDefaultKmsKeyIdCommand"),
      ResetFpgaImageAttributeCommand: /* @__PURE__ */ __name(() => ResetFpgaImageAttributeCommand, "ResetFpgaImageAttributeCommand"),
      ResetFpgaImageAttributeName: /* @__PURE__ */ __name(() => ResetFpgaImageAttributeName, "ResetFpgaImageAttributeName"),
      ResetImageAttributeCommand: /* @__PURE__ */ __name(() => ResetImageAttributeCommand, "ResetImageAttributeCommand"),
      ResetImageAttributeName: /* @__PURE__ */ __name(() => ResetImageAttributeName, "ResetImageAttributeName"),
      ResetInstanceAttributeCommand: /* @__PURE__ */ __name(() => ResetInstanceAttributeCommand, "ResetInstanceAttributeCommand"),
      ResetNetworkInterfaceAttributeCommand: /* @__PURE__ */ __name(() => ResetNetworkInterfaceAttributeCommand, "ResetNetworkInterfaceAttributeCommand"),
      ResetSnapshotAttributeCommand: /* @__PURE__ */ __name(() => ResetSnapshotAttributeCommand, "ResetSnapshotAttributeCommand"),
      ResourceType: /* @__PURE__ */ __name(() => ResourceType, "ResourceType"),
      ResponseLaunchTemplateDataFilterSensitiveLog: /* @__PURE__ */ __name(() => ResponseLaunchTemplateDataFilterSensitiveLog, "ResponseLaunchTemplateDataFilterSensitiveLog"),
      RestoreAddressToClassicCommand: /* @__PURE__ */ __name(() => RestoreAddressToClassicCommand, "RestoreAddressToClassicCommand"),
      RestoreImageFromRecycleBinCommand: /* @__PURE__ */ __name(() => RestoreImageFromRecycleBinCommand, "RestoreImageFromRecycleBinCommand"),
      RestoreManagedPrefixListVersionCommand: /* @__PURE__ */ __name(() => RestoreManagedPrefixListVersionCommand, "RestoreManagedPrefixListVersionCommand"),
      RestoreSnapshotFromRecycleBinCommand: /* @__PURE__ */ __name(() => RestoreSnapshotFromRecycleBinCommand, "RestoreSnapshotFromRecycleBinCommand"),
      RestoreSnapshotTierCommand: /* @__PURE__ */ __name(() => RestoreSnapshotTierCommand, "RestoreSnapshotTierCommand"),
      RevokeClientVpnIngressCommand: /* @__PURE__ */ __name(() => RevokeClientVpnIngressCommand, "RevokeClientVpnIngressCommand"),
      RevokeSecurityGroupEgressCommand: /* @__PURE__ */ __name(() => RevokeSecurityGroupEgressCommand, "RevokeSecurityGroupEgressCommand"),
      RevokeSecurityGroupIngressCommand: /* @__PURE__ */ __name(() => RevokeSecurityGroupIngressCommand, "RevokeSecurityGroupIngressCommand"),
      RootDeviceType: /* @__PURE__ */ __name(() => RootDeviceType, "RootDeviceType"),
      RouteOrigin: /* @__PURE__ */ __name(() => RouteOrigin, "RouteOrigin"),
      RouteServerAssociationState: /* @__PURE__ */ __name(() => RouteServerAssociationState, "RouteServerAssociationState"),
      RouteServerBfdState: /* @__PURE__ */ __name(() => RouteServerBfdState, "RouteServerBfdState"),
      RouteServerBgpState: /* @__PURE__ */ __name(() => RouteServerBgpState, "RouteServerBgpState"),
      RouteServerEndpointState: /* @__PURE__ */ __name(() => RouteServerEndpointState, "RouteServerEndpointState"),
      RouteServerPeerLivenessMode: /* @__PURE__ */ __name(() => RouteServerPeerLivenessMode, "RouteServerPeerLivenessMode"),
      RouteServerPeerState: /* @__PURE__ */ __name(() => RouteServerPeerState, "RouteServerPeerState"),
      RouteServerPersistRoutesAction: /* @__PURE__ */ __name(() => RouteServerPersistRoutesAction, "RouteServerPersistRoutesAction"),
      RouteServerPersistRoutesState: /* @__PURE__ */ __name(() => RouteServerPersistRoutesState, "RouteServerPersistRoutesState"),
      RouteServerPropagationState: /* @__PURE__ */ __name(() => RouteServerPropagationState, "RouteServerPropagationState"),
      RouteServerRouteInstallationStatus: /* @__PURE__ */ __name(() => RouteServerRouteInstallationStatus, "RouteServerRouteInstallationStatus"),
      RouteServerRouteStatus: /* @__PURE__ */ __name(() => RouteServerRouteStatus, "RouteServerRouteStatus"),
      RouteServerState: /* @__PURE__ */ __name(() => RouteServerState, "RouteServerState"),
      RouteState: /* @__PURE__ */ __name(() => RouteState, "RouteState"),
      RouteTableAssociationStateCode: /* @__PURE__ */ __name(() => RouteTableAssociationStateCode, "RouteTableAssociationStateCode"),
      RuleAction: /* @__PURE__ */ __name(() => RuleAction, "RuleAction"),
      RunInstancesCommand: /* @__PURE__ */ __name(() => RunInstancesCommand, "RunInstancesCommand"),
      RunInstancesRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => RunInstancesRequestFilterSensitiveLog, "RunInstancesRequestFilterSensitiveLog"),
      RunScheduledInstancesCommand: /* @__PURE__ */ __name(() => RunScheduledInstancesCommand, "RunScheduledInstancesCommand"),
      RunScheduledInstancesRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => RunScheduledInstancesRequestFilterSensitiveLog, "RunScheduledInstancesRequestFilterSensitiveLog"),
      S3StorageFilterSensitiveLog: /* @__PURE__ */ __name(() => S3StorageFilterSensitiveLog, "S3StorageFilterSensitiveLog"),
      SSEType: /* @__PURE__ */ __name(() => SSEType, "SSEType"),
      ScheduledInstancesLaunchSpecificationFilterSensitiveLog: /* @__PURE__ */ __name(() => ScheduledInstancesLaunchSpecificationFilterSensitiveLog, "ScheduledInstancesLaunchSpecificationFilterSensitiveLog"),
      Scope: /* @__PURE__ */ __name(() => Scope, "Scope"),
      SearchLocalGatewayRoutesCommand: /* @__PURE__ */ __name(() => SearchLocalGatewayRoutesCommand, "SearchLocalGatewayRoutesCommand"),
      SearchTransitGatewayMulticastGroupsCommand: /* @__PURE__ */ __name(() => SearchTransitGatewayMulticastGroupsCommand, "SearchTransitGatewayMulticastGroupsCommand"),
      SearchTransitGatewayRoutesCommand: /* @__PURE__ */ __name(() => SearchTransitGatewayRoutesCommand, "SearchTransitGatewayRoutesCommand"),
      SecurityGroupReferencingSupportValue: /* @__PURE__ */ __name(() => SecurityGroupReferencingSupportValue, "SecurityGroupReferencingSupportValue"),
      SecurityGroupVpcAssociationState: /* @__PURE__ */ __name(() => SecurityGroupVpcAssociationState, "SecurityGroupVpcAssociationState"),
      SelfServicePortal: /* @__PURE__ */ __name(() => SelfServicePortal, "SelfServicePortal"),
      SendDiagnosticInterruptCommand: /* @__PURE__ */ __name(() => SendDiagnosticInterruptCommand, "SendDiagnosticInterruptCommand"),
      ServiceConnectivityType: /* @__PURE__ */ __name(() => ServiceConnectivityType, "ServiceConnectivityType"),
      ServiceLinkVirtualInterfaceConfigurationState: /* @__PURE__ */ __name(() => ServiceLinkVirtualInterfaceConfigurationState, "ServiceLinkVirtualInterfaceConfigurationState"),
      ServiceManaged: /* @__PURE__ */ __name(() => ServiceManaged, "ServiceManaged"),
      ServiceState: /* @__PURE__ */ __name(() => ServiceState, "ServiceState"),
      ServiceType: /* @__PURE__ */ __name(() => ServiceType, "ServiceType"),
      ShutdownBehavior: /* @__PURE__ */ __name(() => ShutdownBehavior, "ShutdownBehavior"),
      SnapshotAttributeName: /* @__PURE__ */ __name(() => SnapshotAttributeName, "SnapshotAttributeName"),
      SnapshotBlockPublicAccessState: /* @__PURE__ */ __name(() => SnapshotBlockPublicAccessState, "SnapshotBlockPublicAccessState"),
      SnapshotDetailFilterSensitiveLog: /* @__PURE__ */ __name(() => SnapshotDetailFilterSensitiveLog, "SnapshotDetailFilterSensitiveLog"),
      SnapshotDiskContainerFilterSensitiveLog: /* @__PURE__ */ __name(() => SnapshotDiskContainerFilterSensitiveLog, "SnapshotDiskContainerFilterSensitiveLog"),
      SnapshotLocationEnum: /* @__PURE__ */ __name(() => SnapshotLocationEnum, "SnapshotLocationEnum"),
      SnapshotReturnCodes: /* @__PURE__ */ __name(() => SnapshotReturnCodes, "SnapshotReturnCodes"),
      SnapshotState: /* @__PURE__ */ __name(() => SnapshotState, "SnapshotState"),
      SnapshotTaskDetailFilterSensitiveLog: /* @__PURE__ */ __name(() => SnapshotTaskDetailFilterSensitiveLog, "SnapshotTaskDetailFilterSensitiveLog"),
      SpotAllocationStrategy: /* @__PURE__ */ __name(() => SpotAllocationStrategy, "SpotAllocationStrategy"),
      SpotFleetLaunchSpecificationFilterSensitiveLog: /* @__PURE__ */ __name(() => SpotFleetLaunchSpecificationFilterSensitiveLog, "SpotFleetLaunchSpecificationFilterSensitiveLog"),
      SpotFleetRequestConfigDataFilterSensitiveLog: /* @__PURE__ */ __name(() => SpotFleetRequestConfigDataFilterSensitiveLog, "SpotFleetRequestConfigDataFilterSensitiveLog"),
      SpotFleetRequestConfigFilterSensitiveLog: /* @__PURE__ */ __name(() => SpotFleetRequestConfigFilterSensitiveLog, "SpotFleetRequestConfigFilterSensitiveLog"),
      SpotInstanceInterruptionBehavior: /* @__PURE__ */ __name(() => SpotInstanceInterruptionBehavior, "SpotInstanceInterruptionBehavior"),
      SpotInstanceRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => SpotInstanceRequestFilterSensitiveLog, "SpotInstanceRequestFilterSensitiveLog"),
      SpotInstanceState: /* @__PURE__ */ __name(() => SpotInstanceState, "SpotInstanceState"),
      SpotInstanceType: /* @__PURE__ */ __name(() => SpotInstanceType, "SpotInstanceType"),
      SpreadLevel: /* @__PURE__ */ __name(() => SpreadLevel, "SpreadLevel"),
      StartDeclarativePoliciesReportCommand: /* @__PURE__ */ __name(() => StartDeclarativePoliciesReportCommand, "StartDeclarativePoliciesReportCommand"),
      StartInstancesCommand: /* @__PURE__ */ __name(() => StartInstancesCommand, "StartInstancesCommand"),
      StartNetworkInsightsAccessScopeAnalysisCommand: /* @__PURE__ */ __name(() => StartNetworkInsightsAccessScopeAnalysisCommand, "StartNetworkInsightsAccessScopeAnalysisCommand"),
      StartNetworkInsightsAnalysisCommand: /* @__PURE__ */ __name(() => StartNetworkInsightsAnalysisCommand, "StartNetworkInsightsAnalysisCommand"),
      StartVpcEndpointServicePrivateDnsVerificationCommand: /* @__PURE__ */ __name(() => StartVpcEndpointServicePrivateDnsVerificationCommand, "StartVpcEndpointServicePrivateDnsVerificationCommand"),
      State: /* @__PURE__ */ __name(() => State, "State"),
      StaticSourcesSupportValue: /* @__PURE__ */ __name(() => StaticSourcesSupportValue, "StaticSourcesSupportValue"),
      StatisticType: /* @__PURE__ */ __name(() => StatisticType, "StatisticType"),
      Status: /* @__PURE__ */ __name(() => Status, "Status"),
      StatusName: /* @__PURE__ */ __name(() => StatusName, "StatusName"),
      StatusType: /* @__PURE__ */ __name(() => StatusType, "StatusType"),
      StopInstancesCommand: /* @__PURE__ */ __name(() => StopInstancesCommand, "StopInstancesCommand"),
      StorageFilterSensitiveLog: /* @__PURE__ */ __name(() => StorageFilterSensitiveLog, "StorageFilterSensitiveLog"),
      StorageTier: /* @__PURE__ */ __name(() => StorageTier, "StorageTier"),
      SubnetCidrBlockStateCode: /* @__PURE__ */ __name(() => SubnetCidrBlockStateCode, "SubnetCidrBlockStateCode"),
      SubnetCidrReservationType: /* @__PURE__ */ __name(() => SubnetCidrReservationType, "SubnetCidrReservationType"),
      SubnetState: /* @__PURE__ */ __name(() => SubnetState, "SubnetState"),
      SummaryStatus: /* @__PURE__ */ __name(() => SummaryStatus, "SummaryStatus"),
      SupportedAdditionalProcessorFeature: /* @__PURE__ */ __name(() => SupportedAdditionalProcessorFeature, "SupportedAdditionalProcessorFeature"),
      TargetCapacityUnitType: /* @__PURE__ */ __name(() => TargetCapacityUnitType, "TargetCapacityUnitType"),
      TargetStorageTier: /* @__PURE__ */ __name(() => TargetStorageTier, "TargetStorageTier"),
      TelemetryStatus: /* @__PURE__ */ __name(() => TelemetryStatus, "TelemetryStatus"),
      Tenancy: /* @__PURE__ */ __name(() => Tenancy, "Tenancy"),
      TerminateClientVpnConnectionsCommand: /* @__PURE__ */ __name(() => TerminateClientVpnConnectionsCommand, "TerminateClientVpnConnectionsCommand"),
      TerminateInstancesCommand: /* @__PURE__ */ __name(() => TerminateInstancesCommand, "TerminateInstancesCommand"),
      TieringOperationStatus: /* @__PURE__ */ __name(() => TieringOperationStatus, "TieringOperationStatus"),
      TokenState: /* @__PURE__ */ __name(() => TokenState, "TokenState"),
      TpmSupportValues: /* @__PURE__ */ __name(() => TpmSupportValues, "TpmSupportValues"),
      TrafficDirection: /* @__PURE__ */ __name(() => TrafficDirection, "TrafficDirection"),
      TrafficIpAddressType: /* @__PURE__ */ __name(() => TrafficIpAddressType, "TrafficIpAddressType"),
      TrafficMirrorFilterRuleField: /* @__PURE__ */ __name(() => TrafficMirrorFilterRuleField, "TrafficMirrorFilterRuleField"),
      TrafficMirrorNetworkService: /* @__PURE__ */ __name(() => TrafficMirrorNetworkService, "TrafficMirrorNetworkService"),
      TrafficMirrorRuleAction: /* @__PURE__ */ __name(() => TrafficMirrorRuleAction, "TrafficMirrorRuleAction"),
      TrafficMirrorSessionField: /* @__PURE__ */ __name(() => TrafficMirrorSessionField, "TrafficMirrorSessionField"),
      TrafficMirrorTargetType: /* @__PURE__ */ __name(() => TrafficMirrorTargetType, "TrafficMirrorTargetType"),
      TrafficType: /* @__PURE__ */ __name(() => TrafficType, "TrafficType"),
      TransferType: /* @__PURE__ */ __name(() => TransferType, "TransferType"),
      TransitGatewayAssociationState: /* @__PURE__ */ __name(() => TransitGatewayAssociationState, "TransitGatewayAssociationState"),
      TransitGatewayAttachmentResourceType: /* @__PURE__ */ __name(() => TransitGatewayAttachmentResourceType, "TransitGatewayAttachmentResourceType"),
      TransitGatewayAttachmentState: /* @__PURE__ */ __name(() => TransitGatewayAttachmentState, "TransitGatewayAttachmentState"),
      TransitGatewayConnectPeerState: /* @__PURE__ */ __name(() => TransitGatewayConnectPeerState, "TransitGatewayConnectPeerState"),
      TransitGatewayMulitcastDomainAssociationState: /* @__PURE__ */ __name(() => TransitGatewayMulitcastDomainAssociationState, "TransitGatewayMulitcastDomainAssociationState"),
      TransitGatewayMulticastDomainState: /* @__PURE__ */ __name(() => TransitGatewayMulticastDomainState, "TransitGatewayMulticastDomainState"),
      TransitGatewayPolicyTableState: /* @__PURE__ */ __name(() => TransitGatewayPolicyTableState, "TransitGatewayPolicyTableState"),
      TransitGatewayPrefixListReferenceState: /* @__PURE__ */ __name(() => TransitGatewayPrefixListReferenceState, "TransitGatewayPrefixListReferenceState"),
      TransitGatewayPropagationState: /* @__PURE__ */ __name(() => TransitGatewayPropagationState, "TransitGatewayPropagationState"),
      TransitGatewayRouteState: /* @__PURE__ */ __name(() => TransitGatewayRouteState, "TransitGatewayRouteState"),
      TransitGatewayRouteTableAnnouncementDirection: /* @__PURE__ */ __name(() => TransitGatewayRouteTableAnnouncementDirection, "TransitGatewayRouteTableAnnouncementDirection"),
      TransitGatewayRouteTableAnnouncementState: /* @__PURE__ */ __name(() => TransitGatewayRouteTableAnnouncementState, "TransitGatewayRouteTableAnnouncementState"),
      TransitGatewayRouteTableState: /* @__PURE__ */ __name(() => TransitGatewayRouteTableState, "TransitGatewayRouteTableState"),
      TransitGatewayRouteType: /* @__PURE__ */ __name(() => TransitGatewayRouteType, "TransitGatewayRouteType"),
      TransitGatewayState: /* @__PURE__ */ __name(() => TransitGatewayState, "TransitGatewayState"),
      TransportProtocol: /* @__PURE__ */ __name(() => TransportProtocol, "TransportProtocol"),
      TrustProviderType: /* @__PURE__ */ __name(() => TrustProviderType, "TrustProviderType"),
      TunnelInsideIpVersion: /* @__PURE__ */ __name(() => TunnelInsideIpVersion, "TunnelInsideIpVersion"),
      TunnelOptionFilterSensitiveLog: /* @__PURE__ */ __name(() => TunnelOptionFilterSensitiveLog, "TunnelOptionFilterSensitiveLog"),
      UnassignIpv6AddressesCommand: /* @__PURE__ */ __name(() => UnassignIpv6AddressesCommand, "UnassignIpv6AddressesCommand"),
      UnassignPrivateIpAddressesCommand: /* @__PURE__ */ __name(() => UnassignPrivateIpAddressesCommand, "UnassignPrivateIpAddressesCommand"),
      UnassignPrivateNatGatewayAddressCommand: /* @__PURE__ */ __name(() => UnassignPrivateNatGatewayAddressCommand, "UnassignPrivateNatGatewayAddressCommand"),
      UnlimitedSupportedInstanceFamily: /* @__PURE__ */ __name(() => UnlimitedSupportedInstanceFamily, "UnlimitedSupportedInstanceFamily"),
      UnlockSnapshotCommand: /* @__PURE__ */ __name(() => UnlockSnapshotCommand, "UnlockSnapshotCommand"),
      UnmonitorInstancesCommand: /* @__PURE__ */ __name(() => UnmonitorInstancesCommand, "UnmonitorInstancesCommand"),
      UnsuccessfulInstanceCreditSpecificationErrorCode: /* @__PURE__ */ __name(() => UnsuccessfulInstanceCreditSpecificationErrorCode, "UnsuccessfulInstanceCreditSpecificationErrorCode"),
      UpdateSecurityGroupRuleDescriptionsEgressCommand: /* @__PURE__ */ __name(() => UpdateSecurityGroupRuleDescriptionsEgressCommand, "UpdateSecurityGroupRuleDescriptionsEgressCommand"),
      UpdateSecurityGroupRuleDescriptionsIngressCommand: /* @__PURE__ */ __name(() => UpdateSecurityGroupRuleDescriptionsIngressCommand, "UpdateSecurityGroupRuleDescriptionsIngressCommand"),
      UsageClassType: /* @__PURE__ */ __name(() => UsageClassType, "UsageClassType"),
      UserDataFilterSensitiveLog: /* @__PURE__ */ __name(() => UserDataFilterSensitiveLog, "UserDataFilterSensitiveLog"),
      UserTrustProviderType: /* @__PURE__ */ __name(() => UserTrustProviderType, "UserTrustProviderType"),
      VerificationMethod: /* @__PURE__ */ __name(() => VerificationMethod, "VerificationMethod"),
      VerifiedAccessEndpointAttachmentType: /* @__PURE__ */ __name(() => VerifiedAccessEndpointAttachmentType, "VerifiedAccessEndpointAttachmentType"),
      VerifiedAccessEndpointProtocol: /* @__PURE__ */ __name(() => VerifiedAccessEndpointProtocol, "VerifiedAccessEndpointProtocol"),
      VerifiedAccessEndpointStatusCode: /* @__PURE__ */ __name(() => VerifiedAccessEndpointStatusCode, "VerifiedAccessEndpointStatusCode"),
      VerifiedAccessEndpointType: /* @__PURE__ */ __name(() => VerifiedAccessEndpointType, "VerifiedAccessEndpointType"),
      VerifiedAccessInstanceUserTrustProviderClientConfigurationFilterSensitiveLog: /* @__PURE__ */ __name(() => VerifiedAccessInstanceUserTrustProviderClientConfigurationFilterSensitiveLog, "VerifiedAccessInstanceUserTrustProviderClientConfigurationFilterSensitiveLog"),
      VerifiedAccessLogDeliveryStatusCode: /* @__PURE__ */ __name(() => VerifiedAccessLogDeliveryStatusCode, "VerifiedAccessLogDeliveryStatusCode"),
      VerifiedAccessTrustProviderFilterSensitiveLog: /* @__PURE__ */ __name(() => VerifiedAccessTrustProviderFilterSensitiveLog, "VerifiedAccessTrustProviderFilterSensitiveLog"),
      VirtualizationType: /* @__PURE__ */ __name(() => VirtualizationType, "VirtualizationType"),
      VolumeAttachmentState: /* @__PURE__ */ __name(() => VolumeAttachmentState, "VolumeAttachmentState"),
      VolumeAttributeName: /* @__PURE__ */ __name(() => VolumeAttributeName, "VolumeAttributeName"),
      VolumeModificationState: /* @__PURE__ */ __name(() => VolumeModificationState, "VolumeModificationState"),
      VolumeState: /* @__PURE__ */ __name(() => VolumeState, "VolumeState"),
      VolumeStatusInfoStatus: /* @__PURE__ */ __name(() => VolumeStatusInfoStatus, "VolumeStatusInfoStatus"),
      VolumeStatusName: /* @__PURE__ */ __name(() => VolumeStatusName, "VolumeStatusName"),
      VolumeType: /* @__PURE__ */ __name(() => VolumeType, "VolumeType"),
      VpcAttributeName: /* @__PURE__ */ __name(() => VpcAttributeName, "VpcAttributeName"),
      VpcBlockPublicAccessExclusionState: /* @__PURE__ */ __name(() => VpcBlockPublicAccessExclusionState, "VpcBlockPublicAccessExclusionState"),
      VpcBlockPublicAccessExclusionsAllowed: /* @__PURE__ */ __name(() => VpcBlockPublicAccessExclusionsAllowed, "VpcBlockPublicAccessExclusionsAllowed"),
      VpcBlockPublicAccessState: /* @__PURE__ */ __name(() => VpcBlockPublicAccessState, "VpcBlockPublicAccessState"),
      VpcCidrBlockStateCode: /* @__PURE__ */ __name(() => VpcCidrBlockStateCode, "VpcCidrBlockStateCode"),
      VpcEncryptionControlExclusionState: /* @__PURE__ */ __name(() => VpcEncryptionControlExclusionState, "VpcEncryptionControlExclusionState"),
      VpcEncryptionControlMode: /* @__PURE__ */ __name(() => VpcEncryptionControlMode, "VpcEncryptionControlMode"),
      VpcEncryptionControlState: /* @__PURE__ */ __name(() => VpcEncryptionControlState, "VpcEncryptionControlState"),
      VpcEndpointType: /* @__PURE__ */ __name(() => VpcEndpointType, "VpcEndpointType"),
      VpcPeeringConnectionStateReasonCode: /* @__PURE__ */ __name(() => VpcPeeringConnectionStateReasonCode, "VpcPeeringConnectionStateReasonCode"),
      VpcState: /* @__PURE__ */ __name(() => VpcState, "VpcState"),
      VpcTenancy: /* @__PURE__ */ __name(() => VpcTenancy, "VpcTenancy"),
      VpnConnectionFilterSensitiveLog: /* @__PURE__ */ __name(() => VpnConnectionFilterSensitiveLog, "VpnConnectionFilterSensitiveLog"),
      VpnConnectionOptionsFilterSensitiveLog: /* @__PURE__ */ __name(() => VpnConnectionOptionsFilterSensitiveLog, "VpnConnectionOptionsFilterSensitiveLog"),
      VpnConnectionOptionsSpecificationFilterSensitiveLog: /* @__PURE__ */ __name(() => VpnConnectionOptionsSpecificationFilterSensitiveLog, "VpnConnectionOptionsSpecificationFilterSensitiveLog"),
      VpnEcmpSupportValue: /* @__PURE__ */ __name(() => VpnEcmpSupportValue, "VpnEcmpSupportValue"),
      VpnProtocol: /* @__PURE__ */ __name(() => VpnProtocol, "VpnProtocol"),
      VpnState: /* @__PURE__ */ __name(() => VpnState, "VpnState"),
      VpnStaticRouteSource: /* @__PURE__ */ __name(() => VpnStaticRouteSource, "VpnStaticRouteSource"),
      VpnTunnelOptionsSpecificationFilterSensitiveLog: /* @__PURE__ */ __name(() => VpnTunnelOptionsSpecificationFilterSensitiveLog, "VpnTunnelOptionsSpecificationFilterSensitiveLog"),
      VpnTunnelProvisioningStatus: /* @__PURE__ */ __name(() => VpnTunnelProvisioningStatus, "VpnTunnelProvisioningStatus"),
      WeekDay: /* @__PURE__ */ __name(() => WeekDay, "WeekDay"),
      WithdrawByoipCidrCommand: /* @__PURE__ */ __name(() => WithdrawByoipCidrCommand, "WithdrawByoipCidrCommand"),
      _InstanceType: /* @__PURE__ */ __name(() => _InstanceType, "_InstanceType"),
      __Client: /* @__PURE__ */ __name(() => import_smithy_client28.Client, "__Client"),
      paginateDescribeAddressTransfers: /* @__PURE__ */ __name(() => paginateDescribeAddressTransfers, "paginateDescribeAddressTransfers"),
      paginateDescribeAddressesAttribute: /* @__PURE__ */ __name(() => paginateDescribeAddressesAttribute, "paginateDescribeAddressesAttribute"),
      paginateDescribeAwsNetworkPerformanceMetricSubscriptions: /* @__PURE__ */ __name(() => paginateDescribeAwsNetworkPerformanceMetricSubscriptions, "paginateDescribeAwsNetworkPerformanceMetricSubscriptions"),
      paginateDescribeByoipCidrs: /* @__PURE__ */ __name(() => paginateDescribeByoipCidrs, "paginateDescribeByoipCidrs"),
      paginateDescribeCapacityBlockExtensionHistory: /* @__PURE__ */ __name(() => paginateDescribeCapacityBlockExtensionHistory, "paginateDescribeCapacityBlockExtensionHistory"),
      paginateDescribeCapacityBlockExtensionOfferings: /* @__PURE__ */ __name(() => paginateDescribeCapacityBlockExtensionOfferings, "paginateDescribeCapacityBlockExtensionOfferings"),
      paginateDescribeCapacityBlockOfferings: /* @__PURE__ */ __name(() => paginateDescribeCapacityBlockOfferings, "paginateDescribeCapacityBlockOfferings"),
      paginateDescribeCapacityBlockStatus: /* @__PURE__ */ __name(() => paginateDescribeCapacityBlockStatus, "paginateDescribeCapacityBlockStatus"),
      paginateDescribeCapacityBlocks: /* @__PURE__ */ __name(() => paginateDescribeCapacityBlocks, "paginateDescribeCapacityBlocks"),
      paginateDescribeCapacityReservationBillingRequests: /* @__PURE__ */ __name(() => paginateDescribeCapacityReservationBillingRequests, "paginateDescribeCapacityReservationBillingRequests"),
      paginateDescribeCapacityReservationFleets: /* @__PURE__ */ __name(() => paginateDescribeCapacityReservationFleets, "paginateDescribeCapacityReservationFleets"),
      paginateDescribeCapacityReservations: /* @__PURE__ */ __name(() => paginateDescribeCapacityReservations, "paginateDescribeCapacityReservations"),
      paginateDescribeCarrierGateways: /* @__PURE__ */ __name(() => paginateDescribeCarrierGateways, "paginateDescribeCarrierGateways"),
      paginateDescribeClassicLinkInstances: /* @__PURE__ */ __name(() => paginateDescribeClassicLinkInstances, "paginateDescribeClassicLinkInstances"),
      paginateDescribeClientVpnAuthorizationRules: /* @__PURE__ */ __name(() => paginateDescribeClientVpnAuthorizationRules, "paginateDescribeClientVpnAuthorizationRules"),
      paginateDescribeClientVpnConnections: /* @__PURE__ */ __name(() => paginateDescribeClientVpnConnections, "paginateDescribeClientVpnConnections"),
      paginateDescribeClientVpnEndpoints: /* @__PURE__ */ __name(() => paginateDescribeClientVpnEndpoints, "paginateDescribeClientVpnEndpoints"),
      paginateDescribeClientVpnRoutes: /* @__PURE__ */ __name(() => paginateDescribeClientVpnRoutes, "paginateDescribeClientVpnRoutes"),
      paginateDescribeClientVpnTargetNetworks: /* @__PURE__ */ __name(() => paginateDescribeClientVpnTargetNetworks, "paginateDescribeClientVpnTargetNetworks"),
      paginateDescribeCoipPools: /* @__PURE__ */ __name(() => paginateDescribeCoipPools, "paginateDescribeCoipPools"),
      paginateDescribeDhcpOptions: /* @__PURE__ */ __name(() => paginateDescribeDhcpOptions, "paginateDescribeDhcpOptions"),
      paginateDescribeEgressOnlyInternetGateways: /* @__PURE__ */ __name(() => paginateDescribeEgressOnlyInternetGateways, "paginateDescribeEgressOnlyInternetGateways"),
      paginateDescribeExportImageTasks: /* @__PURE__ */ __name(() => paginateDescribeExportImageTasks, "paginateDescribeExportImageTasks"),
      paginateDescribeFastLaunchImages: /* @__PURE__ */ __name(() => paginateDescribeFastLaunchImages, "paginateDescribeFastLaunchImages"),
      paginateDescribeFastSnapshotRestores: /* @__PURE__ */ __name(() => paginateDescribeFastSnapshotRestores, "paginateDescribeFastSnapshotRestores"),
      paginateDescribeFleets: /* @__PURE__ */ __name(() => paginateDescribeFleets, "paginateDescribeFleets"),
      paginateDescribeFlowLogs: /* @__PURE__ */ __name(() => paginateDescribeFlowLogs, "paginateDescribeFlowLogs"),
      paginateDescribeFpgaImages: /* @__PURE__ */ __name(() => paginateDescribeFpgaImages, "paginateDescribeFpgaImages"),
      paginateDescribeHostReservationOfferings: /* @__PURE__ */ __name(() => paginateDescribeHostReservationOfferings, "paginateDescribeHostReservationOfferings"),
      paginateDescribeHostReservations: /* @__PURE__ */ __name(() => paginateDescribeHostReservations, "paginateDescribeHostReservations"),
      paginateDescribeHosts: /* @__PURE__ */ __name(() => paginateDescribeHosts, "paginateDescribeHosts"),
      paginateDescribeIamInstanceProfileAssociations: /* @__PURE__ */ __name(() => paginateDescribeIamInstanceProfileAssociations, "paginateDescribeIamInstanceProfileAssociations"),
      paginateDescribeImageReferences: /* @__PURE__ */ __name(() => paginateDescribeImageReferences, "paginateDescribeImageReferences"),
      paginateDescribeImageUsageReportEntries: /* @__PURE__ */ __name(() => paginateDescribeImageUsageReportEntries, "paginateDescribeImageUsageReportEntries"),
      paginateDescribeImageUsageReports: /* @__PURE__ */ __name(() => paginateDescribeImageUsageReports, "paginateDescribeImageUsageReports"),
      paginateDescribeImages: /* @__PURE__ */ __name(() => paginateDescribeImages, "paginateDescribeImages"),
      paginateDescribeImportImageTasks: /* @__PURE__ */ __name(() => paginateDescribeImportImageTasks, "paginateDescribeImportImageTasks"),
      paginateDescribeImportSnapshotTasks: /* @__PURE__ */ __name(() => paginateDescribeImportSnapshotTasks, "paginateDescribeImportSnapshotTasks"),
      paginateDescribeInstanceConnectEndpoints: /* @__PURE__ */ __name(() => paginateDescribeInstanceConnectEndpoints, "paginateDescribeInstanceConnectEndpoints"),
      paginateDescribeInstanceCreditSpecifications: /* @__PURE__ */ __name(() => paginateDescribeInstanceCreditSpecifications, "paginateDescribeInstanceCreditSpecifications"),
      paginateDescribeInstanceEventWindows: /* @__PURE__ */ __name(() => paginateDescribeInstanceEventWindows, "paginateDescribeInstanceEventWindows"),
      paginateDescribeInstanceImageMetadata: /* @__PURE__ */ __name(() => paginateDescribeInstanceImageMetadata, "paginateDescribeInstanceImageMetadata"),
      paginateDescribeInstanceStatus: /* @__PURE__ */ __name(() => paginateDescribeInstanceStatus, "paginateDescribeInstanceStatus"),
      paginateDescribeInstanceTopology: /* @__PURE__ */ __name(() => paginateDescribeInstanceTopology, "paginateDescribeInstanceTopology"),
      paginateDescribeInstanceTypeOfferings: /* @__PURE__ */ __name(() => paginateDescribeInstanceTypeOfferings, "paginateDescribeInstanceTypeOfferings"),
      paginateDescribeInstanceTypes: /* @__PURE__ */ __name(() => paginateDescribeInstanceTypes, "paginateDescribeInstanceTypes"),
      paginateDescribeInstances: /* @__PURE__ */ __name(() => paginateDescribeInstances, "paginateDescribeInstances"),
      paginateDescribeInternetGateways: /* @__PURE__ */ __name(() => paginateDescribeInternetGateways, "paginateDescribeInternetGateways"),
      paginateDescribeIpamPools: /* @__PURE__ */ __name(() => paginateDescribeIpamPools, "paginateDescribeIpamPools"),
      paginateDescribeIpamResourceDiscoveries: /* @__PURE__ */ __name(() => paginateDescribeIpamResourceDiscoveries, "paginateDescribeIpamResourceDiscoveries"),
      paginateDescribeIpamResourceDiscoveryAssociations: /* @__PURE__ */ __name(() => paginateDescribeIpamResourceDiscoveryAssociations, "paginateDescribeIpamResourceDiscoveryAssociations"),
      paginateDescribeIpamScopes: /* @__PURE__ */ __name(() => paginateDescribeIpamScopes, "paginateDescribeIpamScopes"),
      paginateDescribeIpams: /* @__PURE__ */ __name(() => paginateDescribeIpams, "paginateDescribeIpams"),
      paginateDescribeIpv6Pools: /* @__PURE__ */ __name(() => paginateDescribeIpv6Pools, "paginateDescribeIpv6Pools"),
      paginateDescribeLaunchTemplateVersions: /* @__PURE__ */ __name(() => paginateDescribeLaunchTemplateVersions, "paginateDescribeLaunchTemplateVersions"),
      paginateDescribeLaunchTemplates: /* @__PURE__ */ __name(() => paginateDescribeLaunchTemplates, "paginateDescribeLaunchTemplates"),
      paginateDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations: /* @__PURE__ */ __name(() => paginateDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations, "paginateDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations"),
      paginateDescribeLocalGatewayRouteTableVpcAssociations: /* @__PURE__ */ __name(() => paginateDescribeLocalGatewayRouteTableVpcAssociations, "paginateDescribeLocalGatewayRouteTableVpcAssociations"),
      paginateDescribeLocalGatewayRouteTables: /* @__PURE__ */ __name(() => paginateDescribeLocalGatewayRouteTables, "paginateDescribeLocalGatewayRouteTables"),
      paginateDescribeLocalGatewayVirtualInterfaceGroups: /* @__PURE__ */ __name(() => paginateDescribeLocalGatewayVirtualInterfaceGroups, "paginateDescribeLocalGatewayVirtualInterfaceGroups"),
      paginateDescribeLocalGatewayVirtualInterfaces: /* @__PURE__ */ __name(() => paginateDescribeLocalGatewayVirtualInterfaces, "paginateDescribeLocalGatewayVirtualInterfaces"),
      paginateDescribeLocalGateways: /* @__PURE__ */ __name(() => paginateDescribeLocalGateways, "paginateDescribeLocalGateways"),
      paginateDescribeMacHosts: /* @__PURE__ */ __name(() => paginateDescribeMacHosts, "paginateDescribeMacHosts"),
      paginateDescribeMacModificationTasks: /* @__PURE__ */ __name(() => paginateDescribeMacModificationTasks, "paginateDescribeMacModificationTasks"),
      paginateDescribeManagedPrefixLists: /* @__PURE__ */ __name(() => paginateDescribeManagedPrefixLists, "paginateDescribeManagedPrefixLists"),
      paginateDescribeMovingAddresses: /* @__PURE__ */ __name(() => paginateDescribeMovingAddresses, "paginateDescribeMovingAddresses"),
      paginateDescribeNatGateways: /* @__PURE__ */ __name(() => paginateDescribeNatGateways, "paginateDescribeNatGateways"),
      paginateDescribeNetworkAcls: /* @__PURE__ */ __name(() => paginateDescribeNetworkAcls, "paginateDescribeNetworkAcls"),
      paginateDescribeNetworkInsightsAccessScopeAnalyses: /* @__PURE__ */ __name(() => paginateDescribeNetworkInsightsAccessScopeAnalyses, "paginateDescribeNetworkInsightsAccessScopeAnalyses"),
      paginateDescribeNetworkInsightsAccessScopes: /* @__PURE__ */ __name(() => paginateDescribeNetworkInsightsAccessScopes, "paginateDescribeNetworkInsightsAccessScopes"),
      paginateDescribeNetworkInsightsAnalyses: /* @__PURE__ */ __name(() => paginateDescribeNetworkInsightsAnalyses, "paginateDescribeNetworkInsightsAnalyses"),
      paginateDescribeNetworkInsightsPaths: /* @__PURE__ */ __name(() => paginateDescribeNetworkInsightsPaths, "paginateDescribeNetworkInsightsPaths"),
      paginateDescribeNetworkInterfacePermissions: /* @__PURE__ */ __name(() => paginateDescribeNetworkInterfacePermissions, "paginateDescribeNetworkInterfacePermissions"),
      paginateDescribeNetworkInterfaces: /* @__PURE__ */ __name(() => paginateDescribeNetworkInterfaces, "paginateDescribeNetworkInterfaces"),
      paginateDescribePrefixLists: /* @__PURE__ */ __name(() => paginateDescribePrefixLists, "paginateDescribePrefixLists"),
      paginateDescribePrincipalIdFormat: /* @__PURE__ */ __name(() => paginateDescribePrincipalIdFormat, "paginateDescribePrincipalIdFormat"),
      paginateDescribePublicIpv4Pools: /* @__PURE__ */ __name(() => paginateDescribePublicIpv4Pools, "paginateDescribePublicIpv4Pools"),
      paginateDescribeReplaceRootVolumeTasks: /* @__PURE__ */ __name(() => paginateDescribeReplaceRootVolumeTasks, "paginateDescribeReplaceRootVolumeTasks"),
      paginateDescribeReservedInstancesModifications: /* @__PURE__ */ __name(() => paginateDescribeReservedInstancesModifications, "paginateDescribeReservedInstancesModifications"),
      paginateDescribeReservedInstancesOfferings: /* @__PURE__ */ __name(() => paginateDescribeReservedInstancesOfferings, "paginateDescribeReservedInstancesOfferings"),
      paginateDescribeRouteServerEndpoints: /* @__PURE__ */ __name(() => paginateDescribeRouteServerEndpoints, "paginateDescribeRouteServerEndpoints"),
      paginateDescribeRouteServerPeers: /* @__PURE__ */ __name(() => paginateDescribeRouteServerPeers, "paginateDescribeRouteServerPeers"),
      paginateDescribeRouteServers: /* @__PURE__ */ __name(() => paginateDescribeRouteServers, "paginateDescribeRouteServers"),
      paginateDescribeRouteTables: /* @__PURE__ */ __name(() => paginateDescribeRouteTables, "paginateDescribeRouteTables"),
      paginateDescribeScheduledInstanceAvailability: /* @__PURE__ */ __name(() => paginateDescribeScheduledInstanceAvailability, "paginateDescribeScheduledInstanceAvailability"),
      paginateDescribeScheduledInstances: /* @__PURE__ */ __name(() => paginateDescribeScheduledInstances, "paginateDescribeScheduledInstances"),
      paginateDescribeSecurityGroupRules: /* @__PURE__ */ __name(() => paginateDescribeSecurityGroupRules, "paginateDescribeSecurityGroupRules"),
      paginateDescribeSecurityGroupVpcAssociations: /* @__PURE__ */ __name(() => paginateDescribeSecurityGroupVpcAssociations, "paginateDescribeSecurityGroupVpcAssociations"),
      paginateDescribeSecurityGroups: /* @__PURE__ */ __name(() => paginateDescribeSecurityGroups, "paginateDescribeSecurityGroups"),
      paginateDescribeSnapshotTierStatus: /* @__PURE__ */ __name(() => paginateDescribeSnapshotTierStatus, "paginateDescribeSnapshotTierStatus"),
      paginateDescribeSnapshots: /* @__PURE__ */ __name(() => paginateDescribeSnapshots, "paginateDescribeSnapshots"),
      paginateDescribeSpotFleetRequests: /* @__PURE__ */ __name(() => paginateDescribeSpotFleetRequests, "paginateDescribeSpotFleetRequests"),
      paginateDescribeSpotInstanceRequests: /* @__PURE__ */ __name(() => paginateDescribeSpotInstanceRequests, "paginateDescribeSpotInstanceRequests"),
      paginateDescribeSpotPriceHistory: /* @__PURE__ */ __name(() => paginateDescribeSpotPriceHistory, "paginateDescribeSpotPriceHistory"),
      paginateDescribeStaleSecurityGroups: /* @__PURE__ */ __name(() => paginateDescribeStaleSecurityGroups, "paginateDescribeStaleSecurityGroups"),
      paginateDescribeStoreImageTasks: /* @__PURE__ */ __name(() => paginateDescribeStoreImageTasks, "paginateDescribeStoreImageTasks"),
      paginateDescribeSubnets: /* @__PURE__ */ __name(() => paginateDescribeSubnets, "paginateDescribeSubnets"),
      paginateDescribeTags: /* @__PURE__ */ __name(() => paginateDescribeTags, "paginateDescribeTags"),
      paginateDescribeTrafficMirrorFilters: /* @__PURE__ */ __name(() => paginateDescribeTrafficMirrorFilters, "paginateDescribeTrafficMirrorFilters"),
      paginateDescribeTrafficMirrorSessions: /* @__PURE__ */ __name(() => paginateDescribeTrafficMirrorSessions, "paginateDescribeTrafficMirrorSessions"),
      paginateDescribeTrafficMirrorTargets: /* @__PURE__ */ __name(() => paginateDescribeTrafficMirrorTargets, "paginateDescribeTrafficMirrorTargets"),
      paginateDescribeTransitGatewayAttachments: /* @__PURE__ */ __name(() => paginateDescribeTransitGatewayAttachments, "paginateDescribeTransitGatewayAttachments"),
      paginateDescribeTransitGatewayConnectPeers: /* @__PURE__ */ __name(() => paginateDescribeTransitGatewayConnectPeers, "paginateDescribeTransitGatewayConnectPeers"),
      paginateDescribeTransitGatewayConnects: /* @__PURE__ */ __name(() => paginateDescribeTransitGatewayConnects, "paginateDescribeTransitGatewayConnects"),
      paginateDescribeTransitGatewayMulticastDomains: /* @__PURE__ */ __name(() => paginateDescribeTransitGatewayMulticastDomains, "paginateDescribeTransitGatewayMulticastDomains"),
      paginateDescribeTransitGatewayPeeringAttachments: /* @__PURE__ */ __name(() => paginateDescribeTransitGatewayPeeringAttachments, "paginateDescribeTransitGatewayPeeringAttachments"),
      paginateDescribeTransitGatewayPolicyTables: /* @__PURE__ */ __name(() => paginateDescribeTransitGatewayPolicyTables, "paginateDescribeTransitGatewayPolicyTables"),
      paginateDescribeTransitGatewayRouteTableAnnouncements: /* @__PURE__ */ __name(() => paginateDescribeTransitGatewayRouteTableAnnouncements, "paginateDescribeTransitGatewayRouteTableAnnouncements"),
      paginateDescribeTransitGatewayRouteTables: /* @__PURE__ */ __name(() => paginateDescribeTransitGatewayRouteTables, "paginateDescribeTransitGatewayRouteTables"),
      paginateDescribeTransitGatewayVpcAttachments: /* @__PURE__ */ __name(() => paginateDescribeTransitGatewayVpcAttachments, "paginateDescribeTransitGatewayVpcAttachments"),
      paginateDescribeTransitGateways: /* @__PURE__ */ __name(() => paginateDescribeTransitGateways, "paginateDescribeTransitGateways"),
      paginateDescribeTrunkInterfaceAssociations: /* @__PURE__ */ __name(() => paginateDescribeTrunkInterfaceAssociations, "paginateDescribeTrunkInterfaceAssociations"),
      paginateDescribeVerifiedAccessEndpoints: /* @__PURE__ */ __name(() => paginateDescribeVerifiedAccessEndpoints, "paginateDescribeVerifiedAccessEndpoints"),
      paginateDescribeVerifiedAccessGroups: /* @__PURE__ */ __name(() => paginateDescribeVerifiedAccessGroups, "paginateDescribeVerifiedAccessGroups"),
      paginateDescribeVerifiedAccessInstanceLoggingConfigurations: /* @__PURE__ */ __name(() => paginateDescribeVerifiedAccessInstanceLoggingConfigurations, "paginateDescribeVerifiedAccessInstanceLoggingConfigurations"),
      paginateDescribeVerifiedAccessInstances: /* @__PURE__ */ __name(() => paginateDescribeVerifiedAccessInstances, "paginateDescribeVerifiedAccessInstances"),
      paginateDescribeVerifiedAccessTrustProviders: /* @__PURE__ */ __name(() => paginateDescribeVerifiedAccessTrustProviders, "paginateDescribeVerifiedAccessTrustProviders"),
      paginateDescribeVolumeStatus: /* @__PURE__ */ __name(() => paginateDescribeVolumeStatus, "paginateDescribeVolumeStatus"),
      paginateDescribeVolumes: /* @__PURE__ */ __name(() => paginateDescribeVolumes, "paginateDescribeVolumes"),
      paginateDescribeVolumesModifications: /* @__PURE__ */ __name(() => paginateDescribeVolumesModifications, "paginateDescribeVolumesModifications"),
      paginateDescribeVpcClassicLinkDnsSupport: /* @__PURE__ */ __name(() => paginateDescribeVpcClassicLinkDnsSupport, "paginateDescribeVpcClassicLinkDnsSupport"),
      paginateDescribeVpcEndpointConnectionNotifications: /* @__PURE__ */ __name(() => paginateDescribeVpcEndpointConnectionNotifications, "paginateDescribeVpcEndpointConnectionNotifications"),
      paginateDescribeVpcEndpointConnections: /* @__PURE__ */ __name(() => paginateDescribeVpcEndpointConnections, "paginateDescribeVpcEndpointConnections"),
      paginateDescribeVpcEndpointServiceConfigurations: /* @__PURE__ */ __name(() => paginateDescribeVpcEndpointServiceConfigurations, "paginateDescribeVpcEndpointServiceConfigurations"),
      paginateDescribeVpcEndpointServicePermissions: /* @__PURE__ */ __name(() => paginateDescribeVpcEndpointServicePermissions, "paginateDescribeVpcEndpointServicePermissions"),
      paginateDescribeVpcEndpoints: /* @__PURE__ */ __name(() => paginateDescribeVpcEndpoints, "paginateDescribeVpcEndpoints"),
      paginateDescribeVpcPeeringConnections: /* @__PURE__ */ __name(() => paginateDescribeVpcPeeringConnections, "paginateDescribeVpcPeeringConnections"),
      paginateDescribeVpcs: /* @__PURE__ */ __name(() => paginateDescribeVpcs, "paginateDescribeVpcs"),
      paginateGetAssociatedIpv6PoolCidrs: /* @__PURE__ */ __name(() => paginateGetAssociatedIpv6PoolCidrs, "paginateGetAssociatedIpv6PoolCidrs"),
      paginateGetAwsNetworkPerformanceData: /* @__PURE__ */ __name(() => paginateGetAwsNetworkPerformanceData, "paginateGetAwsNetworkPerformanceData"),
      paginateGetGroupsForCapacityReservation: /* @__PURE__ */ __name(() => paginateGetGroupsForCapacityReservation, "paginateGetGroupsForCapacityReservation"),
      paginateGetInstanceTypesFromInstanceRequirements: /* @__PURE__ */ __name(() => paginateGetInstanceTypesFromInstanceRequirements, "paginateGetInstanceTypesFromInstanceRequirements"),
      paginateGetIpamAddressHistory: /* @__PURE__ */ __name(() => paginateGetIpamAddressHistory, "paginateGetIpamAddressHistory"),
      paginateGetIpamDiscoveredAccounts: /* @__PURE__ */ __name(() => paginateGetIpamDiscoveredAccounts, "paginateGetIpamDiscoveredAccounts"),
      paginateGetIpamDiscoveredResourceCidrs: /* @__PURE__ */ __name(() => paginateGetIpamDiscoveredResourceCidrs, "paginateGetIpamDiscoveredResourceCidrs"),
      paginateGetIpamPoolAllocations: /* @__PURE__ */ __name(() => paginateGetIpamPoolAllocations, "paginateGetIpamPoolAllocations"),
      paginateGetIpamPoolCidrs: /* @__PURE__ */ __name(() => paginateGetIpamPoolCidrs, "paginateGetIpamPoolCidrs"),
      paginateGetIpamResourceCidrs: /* @__PURE__ */ __name(() => paginateGetIpamResourceCidrs, "paginateGetIpamResourceCidrs"),
      paginateGetManagedPrefixListAssociations: /* @__PURE__ */ __name(() => paginateGetManagedPrefixListAssociations, "paginateGetManagedPrefixListAssociations"),
      paginateGetManagedPrefixListEntries: /* @__PURE__ */ __name(() => paginateGetManagedPrefixListEntries, "paginateGetManagedPrefixListEntries"),
      paginateGetNetworkInsightsAccessScopeAnalysisFindings: /* @__PURE__ */ __name(() => paginateGetNetworkInsightsAccessScopeAnalysisFindings, "paginateGetNetworkInsightsAccessScopeAnalysisFindings"),
      paginateGetSecurityGroupsForVpc: /* @__PURE__ */ __name(() => paginateGetSecurityGroupsForVpc, "paginateGetSecurityGroupsForVpc"),
      paginateGetSpotPlacementScores: /* @__PURE__ */ __name(() => paginateGetSpotPlacementScores, "paginateGetSpotPlacementScores"),
      paginateGetTransitGatewayAttachmentPropagations: /* @__PURE__ */ __name(() => paginateGetTransitGatewayAttachmentPropagations, "paginateGetTransitGatewayAttachmentPropagations"),
      paginateGetTransitGatewayMulticastDomainAssociations: /* @__PURE__ */ __name(() => paginateGetTransitGatewayMulticastDomainAssociations, "paginateGetTransitGatewayMulticastDomainAssociations"),
      paginateGetTransitGatewayPolicyTableAssociations: /* @__PURE__ */ __name(() => paginateGetTransitGatewayPolicyTableAssociations, "paginateGetTransitGatewayPolicyTableAssociations"),
      paginateGetTransitGatewayPrefixListReferences: /* @__PURE__ */ __name(() => paginateGetTransitGatewayPrefixListReferences, "paginateGetTransitGatewayPrefixListReferences"),
      paginateGetTransitGatewayRouteTableAssociations: /* @__PURE__ */ __name(() => paginateGetTransitGatewayRouteTableAssociations, "paginateGetTransitGatewayRouteTableAssociations"),
      paginateGetTransitGatewayRouteTablePropagations: /* @__PURE__ */ __name(() => paginateGetTransitGatewayRouteTablePropagations, "paginateGetTransitGatewayRouteTablePropagations"),
      paginateGetVpnConnectionDeviceTypes: /* @__PURE__ */ __name(() => paginateGetVpnConnectionDeviceTypes, "paginateGetVpnConnectionDeviceTypes"),
      paginateListImagesInRecycleBin: /* @__PURE__ */ __name(() => paginateListImagesInRecycleBin, "paginateListImagesInRecycleBin"),
      paginateListSnapshotsInRecycleBin: /* @__PURE__ */ __name(() => paginateListSnapshotsInRecycleBin, "paginateListSnapshotsInRecycleBin"),
      paginateSearchLocalGatewayRoutes: /* @__PURE__ */ __name(() => paginateSearchLocalGatewayRoutes, "paginateSearchLocalGatewayRoutes"),
      paginateSearchTransitGatewayMulticastGroups: /* @__PURE__ */ __name(() => paginateSearchTransitGatewayMulticastGroups, "paginateSearchTransitGatewayMulticastGroups"),
      waitForBundleTaskComplete: /* @__PURE__ */ __name(() => waitForBundleTaskComplete, "waitForBundleTaskComplete"),
      waitForConversionTaskCancelled: /* @__PURE__ */ __name(() => waitForConversionTaskCancelled, "waitForConversionTaskCancelled"),
      waitForConversionTaskCompleted: /* @__PURE__ */ __name(() => waitForConversionTaskCompleted, "waitForConversionTaskCompleted"),
      waitForConversionTaskDeleted: /* @__PURE__ */ __name(() => waitForConversionTaskDeleted, "waitForConversionTaskDeleted"),
      waitForCustomerGatewayAvailable: /* @__PURE__ */ __name(() => waitForCustomerGatewayAvailable, "waitForCustomerGatewayAvailable"),
      waitForExportTaskCancelled: /* @__PURE__ */ __name(() => waitForExportTaskCancelled, "waitForExportTaskCancelled"),
      waitForExportTaskCompleted: /* @__PURE__ */ __name(() => waitForExportTaskCompleted, "waitForExportTaskCompleted"),
      waitForImageAvailable: /* @__PURE__ */ __name(() => waitForImageAvailable, "waitForImageAvailable"),
      waitForImageExists: /* @__PURE__ */ __name(() => waitForImageExists, "waitForImageExists"),
      waitForImageUsageReportAvailable: /* @__PURE__ */ __name(() => waitForImageUsageReportAvailable, "waitForImageUsageReportAvailable"),
      waitForInstanceExists: /* @__PURE__ */ __name(() => waitForInstanceExists, "waitForInstanceExists"),
      waitForInstanceRunning: /* @__PURE__ */ __name(() => waitForInstanceRunning, "waitForInstanceRunning"),
      waitForInstanceStatusOk: /* @__PURE__ */ __name(() => waitForInstanceStatusOk, "waitForInstanceStatusOk"),
      waitForInstanceStopped: /* @__PURE__ */ __name(() => waitForInstanceStopped, "waitForInstanceStopped"),
      waitForInstanceTerminated: /* @__PURE__ */ __name(() => waitForInstanceTerminated, "waitForInstanceTerminated"),
      waitForInternetGatewayExists: /* @__PURE__ */ __name(() => waitForInternetGatewayExists, "waitForInternetGatewayExists"),
      waitForKeyPairExists: /* @__PURE__ */ __name(() => waitForKeyPairExists, "waitForKeyPairExists"),
      waitForNatGatewayAvailable: /* @__PURE__ */ __name(() => waitForNatGatewayAvailable, "waitForNatGatewayAvailable"),
      waitForNatGatewayDeleted: /* @__PURE__ */ __name(() => waitForNatGatewayDeleted, "waitForNatGatewayDeleted"),
      waitForNetworkInterfaceAvailable: /* @__PURE__ */ __name(() => waitForNetworkInterfaceAvailable, "waitForNetworkInterfaceAvailable"),
      waitForPasswordDataAvailable: /* @__PURE__ */ __name(() => waitForPasswordDataAvailable, "waitForPasswordDataAvailable"),
      waitForSecurityGroupExists: /* @__PURE__ */ __name(() => waitForSecurityGroupExists, "waitForSecurityGroupExists"),
      waitForSecurityGroupVpcAssociationAssociated: /* @__PURE__ */ __name(() => waitForSecurityGroupVpcAssociationAssociated, "waitForSecurityGroupVpcAssociationAssociated"),
      waitForSecurityGroupVpcAssociationDisassociated: /* @__PURE__ */ __name(() => waitForSecurityGroupVpcAssociationDisassociated, "waitForSecurityGroupVpcAssociationDisassociated"),
      waitForSnapshotCompleted: /* @__PURE__ */ __name(() => waitForSnapshotCompleted, "waitForSnapshotCompleted"),
      waitForSnapshotImported: /* @__PURE__ */ __name(() => waitForSnapshotImported, "waitForSnapshotImported"),
      waitForSpotInstanceRequestFulfilled: /* @__PURE__ */ __name(() => waitForSpotInstanceRequestFulfilled, "waitForSpotInstanceRequestFulfilled"),
      waitForStoreImageTaskComplete: /* @__PURE__ */ __name(() => waitForStoreImageTaskComplete, "waitForStoreImageTaskComplete"),
      waitForSubnetAvailable: /* @__PURE__ */ __name(() => waitForSubnetAvailable, "waitForSubnetAvailable"),
      waitForSystemStatusOk: /* @__PURE__ */ __name(() => waitForSystemStatusOk, "waitForSystemStatusOk"),
      waitForVolumeAvailable: /* @__PURE__ */ __name(() => waitForVolumeAvailable, "waitForVolumeAvailable"),
      waitForVolumeDeleted: /* @__PURE__ */ __name(() => waitForVolumeDeleted, "waitForVolumeDeleted"),
      waitForVolumeInUse: /* @__PURE__ */ __name(() => waitForVolumeInUse, "waitForVolumeInUse"),
      waitForVpcAvailable: /* @__PURE__ */ __name(() => waitForVpcAvailable, "waitForVpcAvailable"),
      waitForVpcExists: /* @__PURE__ */ __name(() => waitForVpcExists, "waitForVpcExists"),
      waitForVpcPeeringConnectionDeleted: /* @__PURE__ */ __name(() => waitForVpcPeeringConnectionDeleted, "waitForVpcPeeringConnectionDeleted"),
      waitForVpcPeeringConnectionExists: /* @__PURE__ */ __name(() => waitForVpcPeeringConnectionExists, "waitForVpcPeeringConnectionExists"),
      waitForVpnConnectionAvailable: /* @__PURE__ */ __name(() => waitForVpnConnectionAvailable, "waitForVpnConnectionAvailable"),
      waitForVpnConnectionDeleted: /* @__PURE__ */ __name(() => waitForVpnConnectionDeleted, "waitForVpnConnectionDeleted"),
      waitUntilBundleTaskComplete: /* @__PURE__ */ __name(() => waitUntilBundleTaskComplete, "waitUntilBundleTaskComplete"),
      waitUntilConversionTaskCancelled: /* @__PURE__ */ __name(() => waitUntilConversionTaskCancelled, "waitUntilConversionTaskCancelled"),
      waitUntilConversionTaskCompleted: /* @__PURE__ */ __name(() => waitUntilConversionTaskCompleted, "waitUntilConversionTaskCompleted"),
      waitUntilConversionTaskDeleted: /* @__PURE__ */ __name(() => waitUntilConversionTaskDeleted, "waitUntilConversionTaskDeleted"),
      waitUntilCustomerGatewayAvailable: /* @__PURE__ */ __name(() => waitUntilCustomerGatewayAvailable, "waitUntilCustomerGatewayAvailable"),
      waitUntilExportTaskCancelled: /* @__PURE__ */ __name(() => waitUntilExportTaskCancelled, "waitUntilExportTaskCancelled"),
      waitUntilExportTaskCompleted: /* @__PURE__ */ __name(() => waitUntilExportTaskCompleted, "waitUntilExportTaskCompleted"),
      waitUntilImageAvailable: /* @__PURE__ */ __name(() => waitUntilImageAvailable, "waitUntilImageAvailable"),
      waitUntilImageExists: /* @__PURE__ */ __name(() => waitUntilImageExists, "waitUntilImageExists"),
      waitUntilImageUsageReportAvailable: /* @__PURE__ */ __name(() => waitUntilImageUsageReportAvailable, "waitUntilImageUsageReportAvailable"),
      waitUntilInstanceExists: /* @__PURE__ */ __name(() => waitUntilInstanceExists, "waitUntilInstanceExists"),
      waitUntilInstanceRunning: /* @__PURE__ */ __name(() => waitUntilInstanceRunning, "waitUntilInstanceRunning"),
      waitUntilInstanceStatusOk: /* @__PURE__ */ __name(() => waitUntilInstanceStatusOk, "waitUntilInstanceStatusOk"),
      waitUntilInstanceStopped: /* @__PURE__ */ __name(() => waitUntilInstanceStopped, "waitUntilInstanceStopped"),
      waitUntilInstanceTerminated: /* @__PURE__ */ __name(() => waitUntilInstanceTerminated, "waitUntilInstanceTerminated"),
      waitUntilInternetGatewayExists: /* @__PURE__ */ __name(() => waitUntilInternetGatewayExists, "waitUntilInternetGatewayExists"),
      waitUntilKeyPairExists: /* @__PURE__ */ __name(() => waitUntilKeyPairExists, "waitUntilKeyPairExists"),
      waitUntilNatGatewayAvailable: /* @__PURE__ */ __name(() => waitUntilNatGatewayAvailable, "waitUntilNatGatewayAvailable"),
      waitUntilNatGatewayDeleted: /* @__PURE__ */ __name(() => waitUntilNatGatewayDeleted, "waitUntilNatGatewayDeleted"),
      waitUntilNetworkInterfaceAvailable: /* @__PURE__ */ __name(() => waitUntilNetworkInterfaceAvailable, "waitUntilNetworkInterfaceAvailable"),
      waitUntilPasswordDataAvailable: /* @__PURE__ */ __name(() => waitUntilPasswordDataAvailable, "waitUntilPasswordDataAvailable"),
      waitUntilSecurityGroupExists: /* @__PURE__ */ __name(() => waitUntilSecurityGroupExists, "waitUntilSecurityGroupExists"),
      waitUntilSecurityGroupVpcAssociationAssociated: /* @__PURE__ */ __name(() => waitUntilSecurityGroupVpcAssociationAssociated, "waitUntilSecurityGroupVpcAssociationAssociated"),
      waitUntilSecurityGroupVpcAssociationDisassociated: /* @__PURE__ */ __name(() => waitUntilSecurityGroupVpcAssociationDisassociated, "waitUntilSecurityGroupVpcAssociationDisassociated"),
      waitUntilSnapshotCompleted: /* @__PURE__ */ __name(() => waitUntilSnapshotCompleted, "waitUntilSnapshotCompleted"),
      waitUntilSnapshotImported: /* @__PURE__ */ __name(() => waitUntilSnapshotImported, "waitUntilSnapshotImported"),
      waitUntilSpotInstanceRequestFulfilled: /* @__PURE__ */ __name(() => waitUntilSpotInstanceRequestFulfilled, "waitUntilSpotInstanceRequestFulfilled"),
      waitUntilStoreImageTaskComplete: /* @__PURE__ */ __name(() => waitUntilStoreImageTaskComplete, "waitUntilStoreImageTaskComplete"),
      waitUntilSubnetAvailable: /* @__PURE__ */ __name(() => waitUntilSubnetAvailable, "waitUntilSubnetAvailable"),
      waitUntilSystemStatusOk: /* @__PURE__ */ __name(() => waitUntilSystemStatusOk, "waitUntilSystemStatusOk"),
      waitUntilVolumeAvailable: /* @__PURE__ */ __name(() => waitUntilVolumeAvailable, "waitUntilVolumeAvailable"),
      waitUntilVolumeDeleted: /* @__PURE__ */ __name(() => waitUntilVolumeDeleted, "waitUntilVolumeDeleted"),
      waitUntilVolumeInUse: /* @__PURE__ */ __name(() => waitUntilVolumeInUse, "waitUntilVolumeInUse"),
      waitUntilVpcAvailable: /* @__PURE__ */ __name(() => waitUntilVpcAvailable, "waitUntilVpcAvailable"),
      waitUntilVpcExists: /* @__PURE__ */ __name(() => waitUntilVpcExists, "waitUntilVpcExists"),
      waitUntilVpcPeeringConnectionDeleted: /* @__PURE__ */ __name(() => waitUntilVpcPeeringConnectionDeleted, "waitUntilVpcPeeringConnectionDeleted"),
      waitUntilVpcPeeringConnectionExists: /* @__PURE__ */ __name(() => waitUntilVpcPeeringConnectionExists, "waitUntilVpcPeeringConnectionExists"),
      waitUntilVpnConnectionAvailable: /* @__PURE__ */ __name(() => waitUntilVpnConnectionAvailable, "waitUntilVpnConnectionAvailable"),
      waitUntilVpnConnectionDeleted: /* @__PURE__ */ __name(() => waitUntilVpnConnectionDeleted, "waitUntilVpnConnectionDeleted")
    });
    module2.exports = __toCommonJS2(index_exports);
    var import_middleware_host_header3 = require_dist_cjs3();
    var import_middleware_logger3 = require_dist_cjs4();
    var import_middleware_recursion_detection3 = require_dist_cjs5();
    var import_middleware_user_agent3 = require_dist_cjs28();
    var import_config_resolver6 = require_dist_cjs30();
    var import_core17 = (init_dist_es(), __toCommonJS(dist_es_exports));
    var import_middleware_content_length3 = require_dist_cjs31();
    var import_middleware_endpoint8 = require_dist_cjs34();
    var import_middleware_retry5 = require_dist_cjs37();
    var import_httpAuthSchemeProvider5 = require_httpAuthSchemeProvider12();
    var resolveClientEndpointParameters3 = /* @__PURE__ */ __name2((options) => {
      return Object.assign(options, {
        useDualstackEndpoint: options.useDualstackEndpoint ?? false,
        useFipsEndpoint: options.useFipsEndpoint ?? false,
        defaultSigningName: "ec2"
      });
    }, "resolveClientEndpointParameters");
    var commonParams3 = {
      UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
      Endpoint: { type: "builtInParams", name: "endpoint" },
      Region: { type: "builtInParams", name: "region" },
      UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
    };
    var import_runtimeConfig5 = require_runtimeConfig13();
    var import_region_config_resolver3 = require_dist_cjs45();
    var import_protocol_http16 = require_dist_cjs2();
    var import_smithy_client28 = require_dist_cjs26();
    var getHttpAuthExtensionConfiguration3 = /* @__PURE__ */ __name2((runtimeConfig) => {
      const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
      let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
      let _credentials = runtimeConfig.credentials;
      return {
        setHttpAuthScheme(httpAuthScheme) {
          const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
          if (index === -1) {
            _httpAuthSchemes.push(httpAuthScheme);
          } else {
            _httpAuthSchemes.splice(index, 1, httpAuthScheme);
          }
        },
        httpAuthSchemes() {
          return _httpAuthSchemes;
        },
        setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
          _httpAuthSchemeProvider = httpAuthSchemeProvider;
        },
        httpAuthSchemeProvider() {
          return _httpAuthSchemeProvider;
        },
        setCredentials(credentials) {
          _credentials = credentials;
        },
        credentials() {
          return _credentials;
        }
      };
    }, "getHttpAuthExtensionConfiguration");
    var resolveHttpAuthRuntimeConfig3 = /* @__PURE__ */ __name2((config) => {
      return {
        httpAuthSchemes: config.httpAuthSchemes(),
        httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
        credentials: config.credentials()
      };
    }, "resolveHttpAuthRuntimeConfig");
    var resolveRuntimeExtensions3 = /* @__PURE__ */ __name2((runtimeConfig, extensions) => {
      const extensionConfiguration = Object.assign(
        (0, import_region_config_resolver3.getAwsRegionExtensionConfiguration)(runtimeConfig),
        (0, import_smithy_client28.getDefaultExtensionConfiguration)(runtimeConfig),
        (0, import_protocol_http16.getHttpHandlerExtensionConfiguration)(runtimeConfig),
        getHttpAuthExtensionConfiguration3(runtimeConfig)
      );
      extensions.forEach((extension) => extension.configure(extensionConfiguration));
      return Object.assign(
        runtimeConfig,
        (0, import_region_config_resolver3.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
        (0, import_smithy_client28.resolveDefaultRuntimeConfig)(extensionConfiguration),
        (0, import_protocol_http16.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
        resolveHttpAuthRuntimeConfig3(extensionConfiguration)
      );
    }, "resolveRuntimeExtensions");
    var EC2Client2 = class extends import_smithy_client28.Client {
      static {
        __name(this, "EC2Client");
      }
      static {
        __name2(this, "EC2Client");
      }
      /**
       * The resolved configuration of EC2Client class. This is resolved and normalized from the {@link EC2ClientConfig | constructor configuration interface}.
       */
      config;
      constructor(...[configuration]) {
        const _config_0 = (0, import_runtimeConfig5.getRuntimeConfig)(configuration || {});
        super(_config_0);
        this.initConfig = _config_0;
        const _config_1 = resolveClientEndpointParameters3(_config_0);
        const _config_2 = (0, import_middleware_user_agent3.resolveUserAgentConfig)(_config_1);
        const _config_3 = (0, import_middleware_retry5.resolveRetryConfig)(_config_2);
        const _config_4 = (0, import_config_resolver6.resolveRegionConfig)(_config_3);
        const _config_5 = (0, import_middleware_host_header3.resolveHostHeaderConfig)(_config_4);
        const _config_6 = (0, import_middleware_endpoint8.resolveEndpointConfig)(_config_5);
        const _config_7 = (0, import_httpAuthSchemeProvider5.resolveHttpAuthSchemeConfig)(_config_6);
        const _config_8 = resolveRuntimeExtensions3(_config_7, configuration?.extensions || []);
        this.config = _config_8;
        this.middlewareStack.use((0, import_middleware_user_agent3.getUserAgentPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_retry5.getRetryPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_content_length3.getContentLengthPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_host_header3.getHostHeaderPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_logger3.getLoggerPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_recursion_detection3.getRecursionDetectionPlugin)(this.config));
        this.middlewareStack.use(
          (0, import_core17.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
            httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider5.defaultEC2HttpAuthSchemeParametersProvider,
            identityProviderConfigProvider: /* @__PURE__ */ __name2(async (config) => new import_core17.DefaultIdentityProviderConfig({
              "aws.auth#sigv4": config.credentials
            }), "identityProviderConfigProvider")
          })
        );
        this.middlewareStack.use((0, import_core17.getHttpSigningPlugin)(this.config));
      }
      /**
       * Destroy underlying resources, like sockets. It's usually not necessary to do this.
       * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
       * Otherwise, sockets might stay open for quite a long time before the server terminates them.
       */
      destroy() {
        super.destroy();
      }
    };
    var import_middleware_serde5 = require_dist_cjs7();
    var import_core22 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var import_uuid2 = (init_esm_node(), __toCommonJS(esm_node_exports));
    var EC2ServiceException = class _EC2ServiceException extends import_smithy_client28.ServiceException {
      static {
        __name(this, "_EC2ServiceException");
      }
      static {
        __name2(this, "EC2ServiceException");
      }
      /**
       * @internal
       */
      constructor(options) {
        super(options);
        Object.setPrototypeOf(this, _EC2ServiceException.prototype);
      }
    };
    var se_AcceptAddressTransferCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_AcceptAddressTransferRequest(input, context),
        [_A2]: _AAT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AcceptAddressTransferCommand");
    var se_AcceptCapacityReservationBillingOwnershipCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_AcceptCapacityReservationBillingOwnershipRequest(input, context),
        [_A2]: _ACRBO,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AcceptCapacityReservationBillingOwnershipCommand");
    var se_AcceptReservedInstancesExchangeQuoteCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_AcceptReservedInstancesExchangeQuoteRequest(input, context),
        [_A2]: _ARIEQ,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AcceptReservedInstancesExchangeQuoteCommand");
    var se_AcceptTransitGatewayMulticastDomainAssociationsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_AcceptTransitGatewayMulticastDomainAssociationsRequest(input, context),
        [_A2]: _ATGMDA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AcceptTransitGatewayMulticastDomainAssociationsCommand");
    var se_AcceptTransitGatewayPeeringAttachmentCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_AcceptTransitGatewayPeeringAttachmentRequest(input, context),
        [_A2]: _ATGPA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AcceptTransitGatewayPeeringAttachmentCommand");
    var se_AcceptTransitGatewayVpcAttachmentCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_AcceptTransitGatewayVpcAttachmentRequest(input, context),
        [_A2]: _ATGVA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AcceptTransitGatewayVpcAttachmentCommand");
    var se_AcceptVpcEndpointConnectionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_AcceptVpcEndpointConnectionsRequest(input, context),
        [_A2]: _AVEC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AcceptVpcEndpointConnectionsCommand");
    var se_AcceptVpcPeeringConnectionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_AcceptVpcPeeringConnectionRequest(input, context),
        [_A2]: _AVPC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AcceptVpcPeeringConnectionCommand");
    var se_AdvertiseByoipCidrCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_AdvertiseByoipCidrRequest(input, context),
        [_A2]: _ABC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AdvertiseByoipCidrCommand");
    var se_AllocateAddressCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_AllocateAddressRequest(input, context),
        [_A2]: _AA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AllocateAddressCommand");
    var se_AllocateHostsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_AllocateHostsRequest(input, context),
        [_A2]: _AH,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AllocateHostsCommand");
    var se_AllocateIpamPoolCidrCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_AllocateIpamPoolCidrRequest(input, context),
        [_A2]: _AIPC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AllocateIpamPoolCidrCommand");
    var se_ApplySecurityGroupsToClientVpnTargetNetworkCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ApplySecurityGroupsToClientVpnTargetNetworkRequest(input, context),
        [_A2]: _ASGTCVTN,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ApplySecurityGroupsToClientVpnTargetNetworkCommand");
    var se_AssignIpv6AddressesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_AssignIpv6AddressesRequest(input, context),
        [_A2]: _AIA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AssignIpv6AddressesCommand");
    var se_AssignPrivateIpAddressesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_AssignPrivateIpAddressesRequest(input, context),
        [_A2]: _APIA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AssignPrivateIpAddressesCommand");
    var se_AssignPrivateNatGatewayAddressCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_AssignPrivateNatGatewayAddressRequest(input, context),
        [_A2]: _APNGA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AssignPrivateNatGatewayAddressCommand");
    var se_AssociateAddressCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_AssociateAddressRequest(input, context),
        [_A2]: _AAs,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AssociateAddressCommand");
    var se_AssociateCapacityReservationBillingOwnerCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_AssociateCapacityReservationBillingOwnerRequest(input, context),
        [_A2]: _ACRBOs,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AssociateCapacityReservationBillingOwnerCommand");
    var se_AssociateClientVpnTargetNetworkCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_AssociateClientVpnTargetNetworkRequest(input, context),
        [_A2]: _ACVTN,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AssociateClientVpnTargetNetworkCommand");
    var se_AssociateDhcpOptionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_AssociateDhcpOptionsRequest(input, context),
        [_A2]: _ADO,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AssociateDhcpOptionsCommand");
    var se_AssociateEnclaveCertificateIamRoleCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_AssociateEnclaveCertificateIamRoleRequest(input, context),
        [_A2]: _AECIR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AssociateEnclaveCertificateIamRoleCommand");
    var se_AssociateIamInstanceProfileCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_AssociateIamInstanceProfileRequest(input, context),
        [_A2]: _AIIP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AssociateIamInstanceProfileCommand");
    var se_AssociateInstanceEventWindowCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_AssociateInstanceEventWindowRequest(input, context),
        [_A2]: _AIEW,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AssociateInstanceEventWindowCommand");
    var se_AssociateIpamByoasnCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_AssociateIpamByoasnRequest(input, context),
        [_A2]: _AIB,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AssociateIpamByoasnCommand");
    var se_AssociateIpamResourceDiscoveryCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_AssociateIpamResourceDiscoveryRequest(input, context),
        [_A2]: _AIRD,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AssociateIpamResourceDiscoveryCommand");
    var se_AssociateNatGatewayAddressCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_AssociateNatGatewayAddressRequest(input, context),
        [_A2]: _ANGA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AssociateNatGatewayAddressCommand");
    var se_AssociateRouteServerCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_AssociateRouteServerRequest(input, context),
        [_A2]: _ARS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AssociateRouteServerCommand");
    var se_AssociateRouteTableCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_AssociateRouteTableRequest(input, context),
        [_A2]: _ART,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AssociateRouteTableCommand");
    var se_AssociateSecurityGroupVpcCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_AssociateSecurityGroupVpcRequest(input, context),
        [_A2]: _ASGV,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AssociateSecurityGroupVpcCommand");
    var se_AssociateSubnetCidrBlockCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_AssociateSubnetCidrBlockRequest(input, context),
        [_A2]: _ASCB,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AssociateSubnetCidrBlockCommand");
    var se_AssociateTransitGatewayMulticastDomainCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_AssociateTransitGatewayMulticastDomainRequest(input, context),
        [_A2]: _ATGMD,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AssociateTransitGatewayMulticastDomainCommand");
    var se_AssociateTransitGatewayPolicyTableCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_AssociateTransitGatewayPolicyTableRequest(input, context),
        [_A2]: _ATGPT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AssociateTransitGatewayPolicyTableCommand");
    var se_AssociateTransitGatewayRouteTableCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_AssociateTransitGatewayRouteTableRequest(input, context),
        [_A2]: _ATGRT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AssociateTransitGatewayRouteTableCommand");
    var se_AssociateTrunkInterfaceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_AssociateTrunkInterfaceRequest(input, context),
        [_A2]: _ATI,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AssociateTrunkInterfaceCommand");
    var se_AssociateVpcCidrBlockCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_AssociateVpcCidrBlockRequest(input, context),
        [_A2]: _AVCB,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AssociateVpcCidrBlockCommand");
    var se_AttachClassicLinkVpcCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_AttachClassicLinkVpcRequest(input, context),
        [_A2]: _ACLV,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AttachClassicLinkVpcCommand");
    var se_AttachInternetGatewayCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_AttachInternetGatewayRequest(input, context),
        [_A2]: _AIG,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AttachInternetGatewayCommand");
    var se_AttachNetworkInterfaceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_AttachNetworkInterfaceRequest(input, context),
        [_A2]: _ANI,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AttachNetworkInterfaceCommand");
    var se_AttachVerifiedAccessTrustProviderCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_AttachVerifiedAccessTrustProviderRequest(input, context),
        [_A2]: _AVATP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AttachVerifiedAccessTrustProviderCommand");
    var se_AttachVolumeCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_AttachVolumeRequest(input, context),
        [_A2]: _AV,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AttachVolumeCommand");
    var se_AttachVpnGatewayCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_AttachVpnGatewayRequest(input, context),
        [_A2]: _AVG,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AttachVpnGatewayCommand");
    var se_AuthorizeClientVpnIngressCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_AuthorizeClientVpnIngressRequest(input, context),
        [_A2]: _ACVI,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AuthorizeClientVpnIngressCommand");
    var se_AuthorizeSecurityGroupEgressCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_AuthorizeSecurityGroupEgressRequest(input, context),
        [_A2]: _ASGE,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AuthorizeSecurityGroupEgressCommand");
    var se_AuthorizeSecurityGroupIngressCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_AuthorizeSecurityGroupIngressRequest(input, context),
        [_A2]: _ASGI,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AuthorizeSecurityGroupIngressCommand");
    var se_BundleInstanceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_BundleInstanceRequest(input, context),
        [_A2]: _BI,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_BundleInstanceCommand");
    var se_CancelBundleTaskCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CancelBundleTaskRequest(input, context),
        [_A2]: _CBT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CancelBundleTaskCommand");
    var se_CancelCapacityReservationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CancelCapacityReservationRequest(input, context),
        [_A2]: _CCR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CancelCapacityReservationCommand");
    var se_CancelCapacityReservationFleetsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CancelCapacityReservationFleetsRequest(input, context),
        [_A2]: _CCRF,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CancelCapacityReservationFleetsCommand");
    var se_CancelConversionTaskCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CancelConversionRequest(input, context),
        [_A2]: _CCT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CancelConversionTaskCommand");
    var se_CancelDeclarativePoliciesReportCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CancelDeclarativePoliciesReportRequest(input, context),
        [_A2]: _CDPR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CancelDeclarativePoliciesReportCommand");
    var se_CancelExportTaskCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CancelExportTaskRequest(input, context),
        [_A2]: _CET,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CancelExportTaskCommand");
    var se_CancelImageLaunchPermissionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CancelImageLaunchPermissionRequest(input, context),
        [_A2]: _CILP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CancelImageLaunchPermissionCommand");
    var se_CancelImportTaskCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CancelImportTaskRequest(input, context),
        [_A2]: _CIT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CancelImportTaskCommand");
    var se_CancelReservedInstancesListingCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CancelReservedInstancesListingRequest(input, context),
        [_A2]: _CRIL,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CancelReservedInstancesListingCommand");
    var se_CancelSpotFleetRequestsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CancelSpotFleetRequestsRequest(input, context),
        [_A2]: _CSFR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CancelSpotFleetRequestsCommand");
    var se_CancelSpotInstanceRequestsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CancelSpotInstanceRequestsRequest(input, context),
        [_A2]: _CSIR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CancelSpotInstanceRequestsCommand");
    var se_ConfirmProductInstanceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ConfirmProductInstanceRequest(input, context),
        [_A2]: _CPI,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ConfirmProductInstanceCommand");
    var se_CopyFpgaImageCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CopyFpgaImageRequest(input, context),
        [_A2]: _CFI,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CopyFpgaImageCommand");
    var se_CopyImageCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CopyImageRequest(input, context),
        [_A2]: _CI,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CopyImageCommand");
    var se_CopySnapshotCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CopySnapshotRequest(input, context),
        [_A2]: _CS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CopySnapshotCommand");
    var se_CreateCapacityReservationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateCapacityReservationRequest(input, context),
        [_A2]: _CCRr,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateCapacityReservationCommand");
    var se_CreateCapacityReservationBySplittingCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateCapacityReservationBySplittingRequest(input, context),
        [_A2]: _CCRBS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateCapacityReservationBySplittingCommand");
    var se_CreateCapacityReservationFleetCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateCapacityReservationFleetRequest(input, context),
        [_A2]: _CCRFr,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateCapacityReservationFleetCommand");
    var se_CreateCarrierGatewayCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateCarrierGatewayRequest(input, context),
        [_A2]: _CCG,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateCarrierGatewayCommand");
    var se_CreateClientVpnEndpointCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateClientVpnEndpointRequest(input, context),
        [_A2]: _CCVE,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateClientVpnEndpointCommand");
    var se_CreateClientVpnRouteCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateClientVpnRouteRequest(input, context),
        [_A2]: _CCVR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateClientVpnRouteCommand");
    var se_CreateCoipCidrCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateCoipCidrRequest(input, context),
        [_A2]: _CCC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateCoipCidrCommand");
    var se_CreateCoipPoolCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateCoipPoolRequest(input, context),
        [_A2]: _CCP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateCoipPoolCommand");
    var se_CreateCustomerGatewayCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateCustomerGatewayRequest(input, context),
        [_A2]: _CCGr,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateCustomerGatewayCommand");
    var se_CreateDefaultSubnetCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateDefaultSubnetRequest(input, context),
        [_A2]: _CDS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateDefaultSubnetCommand");
    var se_CreateDefaultVpcCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateDefaultVpcRequest(input, context),
        [_A2]: _CDV,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateDefaultVpcCommand");
    var se_CreateDelegateMacVolumeOwnershipTaskCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateDelegateMacVolumeOwnershipTaskRequest(input, context),
        [_A2]: _CDMVOT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateDelegateMacVolumeOwnershipTaskCommand");
    var se_CreateDhcpOptionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateDhcpOptionsRequest(input, context),
        [_A2]: _CDO,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateDhcpOptionsCommand");
    var se_CreateEgressOnlyInternetGatewayCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateEgressOnlyInternetGatewayRequest(input, context),
        [_A2]: _CEOIG,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateEgressOnlyInternetGatewayCommand");
    var se_CreateFleetCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateFleetRequest(input, context),
        [_A2]: _CF,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateFleetCommand");
    var se_CreateFlowLogsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateFlowLogsRequest(input, context),
        [_A2]: _CFL,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateFlowLogsCommand");
    var se_CreateFpgaImageCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateFpgaImageRequest(input, context),
        [_A2]: _CFIr,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateFpgaImageCommand");
    var se_CreateImageCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateImageRequest(input, context),
        [_A2]: _CIr,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateImageCommand");
    var se_CreateImageUsageReportCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateImageUsageReportRequest(input, context),
        [_A2]: _CIUR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateImageUsageReportCommand");
    var se_CreateInstanceConnectEndpointCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateInstanceConnectEndpointRequest(input, context),
        [_A2]: _CICE,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateInstanceConnectEndpointCommand");
    var se_CreateInstanceEventWindowCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateInstanceEventWindowRequest(input, context),
        [_A2]: _CIEW,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateInstanceEventWindowCommand");
    var se_CreateInstanceExportTaskCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateInstanceExportTaskRequest(input, context),
        [_A2]: _CIET,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateInstanceExportTaskCommand");
    var se_CreateInternetGatewayCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateInternetGatewayRequest(input, context),
        [_A2]: _CIG,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateInternetGatewayCommand");
    var se_CreateIpamCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateIpamRequest(input, context),
        [_A2]: _CIre,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateIpamCommand");
    var se_CreateIpamExternalResourceVerificationTokenCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateIpamExternalResourceVerificationTokenRequest(input, context),
        [_A2]: _CIERVT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateIpamExternalResourceVerificationTokenCommand");
    var se_CreateIpamPoolCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateIpamPoolRequest(input, context),
        [_A2]: _CIP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateIpamPoolCommand");
    var se_CreateIpamResourceDiscoveryCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateIpamResourceDiscoveryRequest(input, context),
        [_A2]: _CIRD,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateIpamResourceDiscoveryCommand");
    var se_CreateIpamScopeCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateIpamScopeRequest(input, context),
        [_A2]: _CIS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateIpamScopeCommand");
    var se_CreateKeyPairCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateKeyPairRequest(input, context),
        [_A2]: _CKP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateKeyPairCommand");
    var se_CreateLaunchTemplateCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateLaunchTemplateRequest(input, context),
        [_A2]: _CLT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateLaunchTemplateCommand");
    var se_CreateLaunchTemplateVersionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateLaunchTemplateVersionRequest(input, context),
        [_A2]: _CLTV,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateLaunchTemplateVersionCommand");
    var se_CreateLocalGatewayRouteCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateLocalGatewayRouteRequest(input, context),
        [_A2]: _CLGR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateLocalGatewayRouteCommand");
    var se_CreateLocalGatewayRouteTableCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateLocalGatewayRouteTableRequest(input, context),
        [_A2]: _CLGRT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateLocalGatewayRouteTableCommand");
    var se_CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest(input, context),
        [_A2]: _CLGRTVIGA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationCommand");
    var se_CreateLocalGatewayRouteTableVpcAssociationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateLocalGatewayRouteTableVpcAssociationRequest(input, context),
        [_A2]: _CLGRTVA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateLocalGatewayRouteTableVpcAssociationCommand");
    var se_CreateLocalGatewayVirtualInterfaceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateLocalGatewayVirtualInterfaceRequest(input, context),
        [_A2]: _CLGVI,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateLocalGatewayVirtualInterfaceCommand");
    var se_CreateLocalGatewayVirtualInterfaceGroupCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateLocalGatewayVirtualInterfaceGroupRequest(input, context),
        [_A2]: _CLGVIG,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateLocalGatewayVirtualInterfaceGroupCommand");
    var se_CreateMacSystemIntegrityProtectionModificationTaskCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateMacSystemIntegrityProtectionModificationTaskRequest(input, context),
        [_A2]: _CMSIPMT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateMacSystemIntegrityProtectionModificationTaskCommand");
    var se_CreateManagedPrefixListCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateManagedPrefixListRequest(input, context),
        [_A2]: _CMPL,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateManagedPrefixListCommand");
    var se_CreateNatGatewayCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateNatGatewayRequest(input, context),
        [_A2]: _CNG,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateNatGatewayCommand");
    var se_CreateNetworkAclCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateNetworkAclRequest(input, context),
        [_A2]: _CNA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateNetworkAclCommand");
    var se_CreateNetworkAclEntryCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateNetworkAclEntryRequest(input, context),
        [_A2]: _CNAE,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateNetworkAclEntryCommand");
    var se_CreateNetworkInsightsAccessScopeCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateNetworkInsightsAccessScopeRequest(input, context),
        [_A2]: _CNIAS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateNetworkInsightsAccessScopeCommand");
    var se_CreateNetworkInsightsPathCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateNetworkInsightsPathRequest(input, context),
        [_A2]: _CNIP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateNetworkInsightsPathCommand");
    var se_CreateNetworkInterfaceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateNetworkInterfaceRequest(input, context),
        [_A2]: _CNI,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateNetworkInterfaceCommand");
    var se_CreateNetworkInterfacePermissionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateNetworkInterfacePermissionRequest(input, context),
        [_A2]: _CNIPr,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateNetworkInterfacePermissionCommand");
    var se_CreatePlacementGroupCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreatePlacementGroupRequest(input, context),
        [_A2]: _CPG,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreatePlacementGroupCommand");
    var se_CreatePublicIpv4PoolCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreatePublicIpv4PoolRequest(input, context),
        [_A2]: _CPIP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreatePublicIpv4PoolCommand");
    var se_CreateReplaceRootVolumeTaskCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateReplaceRootVolumeTaskRequest(input, context),
        [_A2]: _CRRVT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateReplaceRootVolumeTaskCommand");
    var se_CreateReservedInstancesListingCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateReservedInstancesListingRequest(input, context),
        [_A2]: _CRILr,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateReservedInstancesListingCommand");
    var se_CreateRestoreImageTaskCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateRestoreImageTaskRequest(input, context),
        [_A2]: _CRIT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateRestoreImageTaskCommand");
    var se_CreateRouteCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateRouteRequest(input, context),
        [_A2]: _CR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateRouteCommand");
    var se_CreateRouteServerCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateRouteServerRequest(input, context),
        [_A2]: _CRS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateRouteServerCommand");
    var se_CreateRouteServerEndpointCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateRouteServerEndpointRequest(input, context),
        [_A2]: _CRSE,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateRouteServerEndpointCommand");
    var se_CreateRouteServerPeerCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateRouteServerPeerRequest(input, context),
        [_A2]: _CRSP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateRouteServerPeerCommand");
    var se_CreateRouteTableCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateRouteTableRequest(input, context),
        [_A2]: _CRT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateRouteTableCommand");
    var se_CreateSecurityGroupCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateSecurityGroupRequest(input, context),
        [_A2]: _CSG,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateSecurityGroupCommand");
    var se_CreateSnapshotCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateSnapshotRequest(input, context),
        [_A2]: _CSr,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateSnapshotCommand");
    var se_CreateSnapshotsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateSnapshotsRequest(input, context),
        [_A2]: _CSre,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateSnapshotsCommand");
    var se_CreateSpotDatafeedSubscriptionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateSpotDatafeedSubscriptionRequest(input, context),
        [_A2]: _CSDS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateSpotDatafeedSubscriptionCommand");
    var se_CreateStoreImageTaskCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateStoreImageTaskRequest(input, context),
        [_A2]: _CSIT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateStoreImageTaskCommand");
    var se_CreateSubnetCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateSubnetRequest(input, context),
        [_A2]: _CSrea,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateSubnetCommand");
    var se_CreateSubnetCidrReservationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateSubnetCidrReservationRequest(input, context),
        [_A2]: _CSCR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateSubnetCidrReservationCommand");
    var se_CreateTagsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateTagsRequest(input, context),
        [_A2]: _CT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateTagsCommand");
    var se_CreateTrafficMirrorFilterCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateTrafficMirrorFilterRequest(input, context),
        [_A2]: _CTMF,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateTrafficMirrorFilterCommand");
    var se_CreateTrafficMirrorFilterRuleCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateTrafficMirrorFilterRuleRequest(input, context),
        [_A2]: _CTMFR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateTrafficMirrorFilterRuleCommand");
    var se_CreateTrafficMirrorSessionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateTrafficMirrorSessionRequest(input, context),
        [_A2]: _CTMS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateTrafficMirrorSessionCommand");
    var se_CreateTrafficMirrorTargetCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateTrafficMirrorTargetRequest(input, context),
        [_A2]: _CTMT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateTrafficMirrorTargetCommand");
    var se_CreateTransitGatewayCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateTransitGatewayRequest(input, context),
        [_A2]: _CTG,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateTransitGatewayCommand");
    var se_CreateTransitGatewayConnectCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateTransitGatewayConnectRequest(input, context),
        [_A2]: _CTGC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateTransitGatewayConnectCommand");
    var se_CreateTransitGatewayConnectPeerCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateTransitGatewayConnectPeerRequest(input, context),
        [_A2]: _CTGCP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateTransitGatewayConnectPeerCommand");
    var se_CreateTransitGatewayMulticastDomainCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateTransitGatewayMulticastDomainRequest(input, context),
        [_A2]: _CTGMD,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateTransitGatewayMulticastDomainCommand");
    var se_CreateTransitGatewayPeeringAttachmentCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateTransitGatewayPeeringAttachmentRequest(input, context),
        [_A2]: _CTGPA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateTransitGatewayPeeringAttachmentCommand");
    var se_CreateTransitGatewayPolicyTableCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateTransitGatewayPolicyTableRequest(input, context),
        [_A2]: _CTGPT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateTransitGatewayPolicyTableCommand");
    var se_CreateTransitGatewayPrefixListReferenceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateTransitGatewayPrefixListReferenceRequest(input, context),
        [_A2]: _CTGPLR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateTransitGatewayPrefixListReferenceCommand");
    var se_CreateTransitGatewayRouteCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateTransitGatewayRouteRequest(input, context),
        [_A2]: _CTGR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateTransitGatewayRouteCommand");
    var se_CreateTransitGatewayRouteTableCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateTransitGatewayRouteTableRequest(input, context),
        [_A2]: _CTGRT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateTransitGatewayRouteTableCommand");
    var se_CreateTransitGatewayRouteTableAnnouncementCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateTransitGatewayRouteTableAnnouncementRequest(input, context),
        [_A2]: _CTGRTA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateTransitGatewayRouteTableAnnouncementCommand");
    var se_CreateTransitGatewayVpcAttachmentCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateTransitGatewayVpcAttachmentRequest(input, context),
        [_A2]: _CTGVA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateTransitGatewayVpcAttachmentCommand");
    var se_CreateVerifiedAccessEndpointCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateVerifiedAccessEndpointRequest(input, context),
        [_A2]: _CVAE,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateVerifiedAccessEndpointCommand");
    var se_CreateVerifiedAccessGroupCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateVerifiedAccessGroupRequest(input, context),
        [_A2]: _CVAG,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateVerifiedAccessGroupCommand");
    var se_CreateVerifiedAccessInstanceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateVerifiedAccessInstanceRequest(input, context),
        [_A2]: _CVAI,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateVerifiedAccessInstanceCommand");
    var se_CreateVerifiedAccessTrustProviderCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateVerifiedAccessTrustProviderRequest(input, context),
        [_A2]: _CVATP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateVerifiedAccessTrustProviderCommand");
    var se_CreateVolumeCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateVolumeRequest(input, context),
        [_A2]: _CV,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateVolumeCommand");
    var se_CreateVpcCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateVpcRequest(input, context),
        [_A2]: _CVr,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateVpcCommand");
    var se_CreateVpcBlockPublicAccessExclusionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateVpcBlockPublicAccessExclusionRequest(input, context),
        [_A2]: _CVBPAE,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateVpcBlockPublicAccessExclusionCommand");
    var se_CreateVpcEndpointCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateVpcEndpointRequest(input, context),
        [_A2]: _CVE,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateVpcEndpointCommand");
    var se_CreateVpcEndpointConnectionNotificationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateVpcEndpointConnectionNotificationRequest(input, context),
        [_A2]: _CVECN,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateVpcEndpointConnectionNotificationCommand");
    var se_CreateVpcEndpointServiceConfigurationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateVpcEndpointServiceConfigurationRequest(input, context),
        [_A2]: _CVESC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateVpcEndpointServiceConfigurationCommand");
    var se_CreateVpcPeeringConnectionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateVpcPeeringConnectionRequest(input, context),
        [_A2]: _CVPC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateVpcPeeringConnectionCommand");
    var se_CreateVpnConnectionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateVpnConnectionRequest(input, context),
        [_A2]: _CVC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateVpnConnectionCommand");
    var se_CreateVpnConnectionRouteCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateVpnConnectionRouteRequest(input, context),
        [_A2]: _CVCR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateVpnConnectionRouteCommand");
    var se_CreateVpnGatewayCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateVpnGatewayRequest(input, context),
        [_A2]: _CVG,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateVpnGatewayCommand");
    var se_DeleteCarrierGatewayCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteCarrierGatewayRequest(input, context),
        [_A2]: _DCG,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteCarrierGatewayCommand");
    var se_DeleteClientVpnEndpointCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteClientVpnEndpointRequest(input, context),
        [_A2]: _DCVE,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteClientVpnEndpointCommand");
    var se_DeleteClientVpnRouteCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteClientVpnRouteRequest(input, context),
        [_A2]: _DCVR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteClientVpnRouteCommand");
    var se_DeleteCoipCidrCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteCoipCidrRequest(input, context),
        [_A2]: _DCC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteCoipCidrCommand");
    var se_DeleteCoipPoolCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteCoipPoolRequest(input, context),
        [_A2]: _DCP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteCoipPoolCommand");
    var se_DeleteCustomerGatewayCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteCustomerGatewayRequest(input, context),
        [_A2]: _DCGe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteCustomerGatewayCommand");
    var se_DeleteDhcpOptionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteDhcpOptionsRequest(input, context),
        [_A2]: _DDO,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteDhcpOptionsCommand");
    var se_DeleteEgressOnlyInternetGatewayCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteEgressOnlyInternetGatewayRequest(input, context),
        [_A2]: _DEOIG,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteEgressOnlyInternetGatewayCommand");
    var se_DeleteFleetsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteFleetsRequest(input, context),
        [_A2]: _DF,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteFleetsCommand");
    var se_DeleteFlowLogsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteFlowLogsRequest(input, context),
        [_A2]: _DFL,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteFlowLogsCommand");
    var se_DeleteFpgaImageCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteFpgaImageRequest(input, context),
        [_A2]: _DFI,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteFpgaImageCommand");
    var se_DeleteImageUsageReportCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteImageUsageReportRequest(input, context),
        [_A2]: _DIUR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteImageUsageReportCommand");
    var se_DeleteInstanceConnectEndpointCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteInstanceConnectEndpointRequest(input, context),
        [_A2]: _DICE,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteInstanceConnectEndpointCommand");
    var se_DeleteInstanceEventWindowCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteInstanceEventWindowRequest(input, context),
        [_A2]: _DIEW,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteInstanceEventWindowCommand");
    var se_DeleteInternetGatewayCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteInternetGatewayRequest(input, context),
        [_A2]: _DIG,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteInternetGatewayCommand");
    var se_DeleteIpamCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteIpamRequest(input, context),
        [_A2]: _DI,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteIpamCommand");
    var se_DeleteIpamExternalResourceVerificationTokenCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteIpamExternalResourceVerificationTokenRequest(input, context),
        [_A2]: _DIERVT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteIpamExternalResourceVerificationTokenCommand");
    var se_DeleteIpamPoolCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteIpamPoolRequest(input, context),
        [_A2]: _DIP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteIpamPoolCommand");
    var se_DeleteIpamResourceDiscoveryCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteIpamResourceDiscoveryRequest(input, context),
        [_A2]: _DIRD,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteIpamResourceDiscoveryCommand");
    var se_DeleteIpamScopeCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteIpamScopeRequest(input, context),
        [_A2]: _DIS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteIpamScopeCommand");
    var se_DeleteKeyPairCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteKeyPairRequest(input, context),
        [_A2]: _DKP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteKeyPairCommand");
    var se_DeleteLaunchTemplateCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteLaunchTemplateRequest(input, context),
        [_A2]: _DLT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteLaunchTemplateCommand");
    var se_DeleteLaunchTemplateVersionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteLaunchTemplateVersionsRequest(input, context),
        [_A2]: _DLTV,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteLaunchTemplateVersionsCommand");
    var se_DeleteLocalGatewayRouteCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteLocalGatewayRouteRequest(input, context),
        [_A2]: _DLGR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteLocalGatewayRouteCommand");
    var se_DeleteLocalGatewayRouteTableCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteLocalGatewayRouteTableRequest(input, context),
        [_A2]: _DLGRT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteLocalGatewayRouteTableCommand");
    var se_DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest(input, context),
        [_A2]: _DLGRTVIGA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationCommand");
    var se_DeleteLocalGatewayRouteTableVpcAssociationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteLocalGatewayRouteTableVpcAssociationRequest(input, context),
        [_A2]: _DLGRTVA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteLocalGatewayRouteTableVpcAssociationCommand");
    var se_DeleteLocalGatewayVirtualInterfaceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteLocalGatewayVirtualInterfaceRequest(input, context),
        [_A2]: _DLGVI,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteLocalGatewayVirtualInterfaceCommand");
    var se_DeleteLocalGatewayVirtualInterfaceGroupCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteLocalGatewayVirtualInterfaceGroupRequest(input, context),
        [_A2]: _DLGVIG,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteLocalGatewayVirtualInterfaceGroupCommand");
    var se_DeleteManagedPrefixListCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteManagedPrefixListRequest(input, context),
        [_A2]: _DMPL,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteManagedPrefixListCommand");
    var se_DeleteNatGatewayCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteNatGatewayRequest(input, context),
        [_A2]: _DNG,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteNatGatewayCommand");
    var se_DeleteNetworkAclCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteNetworkAclRequest(input, context),
        [_A2]: _DNA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteNetworkAclCommand");
    var se_DeleteNetworkAclEntryCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteNetworkAclEntryRequest(input, context),
        [_A2]: _DNAE,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteNetworkAclEntryCommand");
    var se_DeleteNetworkInsightsAccessScopeCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteNetworkInsightsAccessScopeRequest(input, context),
        [_A2]: _DNIAS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteNetworkInsightsAccessScopeCommand");
    var se_DeleteNetworkInsightsAccessScopeAnalysisCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteNetworkInsightsAccessScopeAnalysisRequest(input, context),
        [_A2]: _DNIASA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteNetworkInsightsAccessScopeAnalysisCommand");
    var se_DeleteNetworkInsightsAnalysisCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteNetworkInsightsAnalysisRequest(input, context),
        [_A2]: _DNIA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteNetworkInsightsAnalysisCommand");
    var se_DeleteNetworkInsightsPathCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteNetworkInsightsPathRequest(input, context),
        [_A2]: _DNIP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteNetworkInsightsPathCommand");
    var se_DeleteNetworkInterfaceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteNetworkInterfaceRequest(input, context),
        [_A2]: _DNI,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteNetworkInterfaceCommand");
    var se_DeleteNetworkInterfacePermissionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteNetworkInterfacePermissionRequest(input, context),
        [_A2]: _DNIPe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteNetworkInterfacePermissionCommand");
    var se_DeletePlacementGroupCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeletePlacementGroupRequest(input, context),
        [_A2]: _DPG,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeletePlacementGroupCommand");
    var se_DeletePublicIpv4PoolCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeletePublicIpv4PoolRequest(input, context),
        [_A2]: _DPIP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeletePublicIpv4PoolCommand");
    var se_DeleteQueuedReservedInstancesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteQueuedReservedInstancesRequest(input, context),
        [_A2]: _DQRI,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteQueuedReservedInstancesCommand");
    var se_DeleteRouteCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteRouteRequest(input, context),
        [_A2]: _DR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteRouteCommand");
    var se_DeleteRouteServerCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteRouteServerRequest(input, context),
        [_A2]: _DRS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteRouteServerCommand");
    var se_DeleteRouteServerEndpointCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteRouteServerEndpointRequest(input, context),
        [_A2]: _DRSE,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteRouteServerEndpointCommand");
    var se_DeleteRouteServerPeerCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteRouteServerPeerRequest(input, context),
        [_A2]: _DRSP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteRouteServerPeerCommand");
    var se_DeleteRouteTableCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteRouteTableRequest(input, context),
        [_A2]: _DRT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteRouteTableCommand");
    var se_DeleteSecurityGroupCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteSecurityGroupRequest(input, context),
        [_A2]: _DSG,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteSecurityGroupCommand");
    var se_DeleteSnapshotCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteSnapshotRequest(input, context),
        [_A2]: _DS2,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteSnapshotCommand");
    var se_DeleteSpotDatafeedSubscriptionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteSpotDatafeedSubscriptionRequest(input, context),
        [_A2]: _DSDS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteSpotDatafeedSubscriptionCommand");
    var se_DeleteSubnetCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteSubnetRequest(input, context),
        [_A2]: _DSe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteSubnetCommand");
    var se_DeleteSubnetCidrReservationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteSubnetCidrReservationRequest(input, context),
        [_A2]: _DSCR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteSubnetCidrReservationCommand");
    var se_DeleteTagsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteTagsRequest(input, context),
        [_A2]: _DT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteTagsCommand");
    var se_DeleteTrafficMirrorFilterCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteTrafficMirrorFilterRequest(input, context),
        [_A2]: _DTMF,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteTrafficMirrorFilterCommand");
    var se_DeleteTrafficMirrorFilterRuleCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteTrafficMirrorFilterRuleRequest(input, context),
        [_A2]: _DTMFR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteTrafficMirrorFilterRuleCommand");
    var se_DeleteTrafficMirrorSessionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteTrafficMirrorSessionRequest(input, context),
        [_A2]: _DTMS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteTrafficMirrorSessionCommand");
    var se_DeleteTrafficMirrorTargetCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteTrafficMirrorTargetRequest(input, context),
        [_A2]: _DTMT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteTrafficMirrorTargetCommand");
    var se_DeleteTransitGatewayCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteTransitGatewayRequest(input, context),
        [_A2]: _DTG,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteTransitGatewayCommand");
    var se_DeleteTransitGatewayConnectCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteTransitGatewayConnectRequest(input, context),
        [_A2]: _DTGC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteTransitGatewayConnectCommand");
    var se_DeleteTransitGatewayConnectPeerCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteTransitGatewayConnectPeerRequest(input, context),
        [_A2]: _DTGCP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteTransitGatewayConnectPeerCommand");
    var se_DeleteTransitGatewayMulticastDomainCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteTransitGatewayMulticastDomainRequest(input, context),
        [_A2]: _DTGMD,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteTransitGatewayMulticastDomainCommand");
    var se_DeleteTransitGatewayPeeringAttachmentCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteTransitGatewayPeeringAttachmentRequest(input, context),
        [_A2]: _DTGPA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteTransitGatewayPeeringAttachmentCommand");
    var se_DeleteTransitGatewayPolicyTableCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteTransitGatewayPolicyTableRequest(input, context),
        [_A2]: _DTGPT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteTransitGatewayPolicyTableCommand");
    var se_DeleteTransitGatewayPrefixListReferenceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteTransitGatewayPrefixListReferenceRequest(input, context),
        [_A2]: _DTGPLR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteTransitGatewayPrefixListReferenceCommand");
    var se_DeleteTransitGatewayRouteCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteTransitGatewayRouteRequest(input, context),
        [_A2]: _DTGR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteTransitGatewayRouteCommand");
    var se_DeleteTransitGatewayRouteTableCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteTransitGatewayRouteTableRequest(input, context),
        [_A2]: _DTGRT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteTransitGatewayRouteTableCommand");
    var se_DeleteTransitGatewayRouteTableAnnouncementCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteTransitGatewayRouteTableAnnouncementRequest(input, context),
        [_A2]: _DTGRTA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteTransitGatewayRouteTableAnnouncementCommand");
    var se_DeleteTransitGatewayVpcAttachmentCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteTransitGatewayVpcAttachmentRequest(input, context),
        [_A2]: _DTGVA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteTransitGatewayVpcAttachmentCommand");
    var se_DeleteVerifiedAccessEndpointCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteVerifiedAccessEndpointRequest(input, context),
        [_A2]: _DVAE,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteVerifiedAccessEndpointCommand");
    var se_DeleteVerifiedAccessGroupCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteVerifiedAccessGroupRequest(input, context),
        [_A2]: _DVAG,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteVerifiedAccessGroupCommand");
    var se_DeleteVerifiedAccessInstanceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteVerifiedAccessInstanceRequest(input, context),
        [_A2]: _DVAI,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteVerifiedAccessInstanceCommand");
    var se_DeleteVerifiedAccessTrustProviderCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteVerifiedAccessTrustProviderRequest(input, context),
        [_A2]: _DVATP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteVerifiedAccessTrustProviderCommand");
    var se_DeleteVolumeCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteVolumeRequest(input, context),
        [_A2]: _DV,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteVolumeCommand");
    var se_DeleteVpcCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteVpcRequest(input, context),
        [_A2]: _DVe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteVpcCommand");
    var se_DeleteVpcBlockPublicAccessExclusionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteVpcBlockPublicAccessExclusionRequest(input, context),
        [_A2]: _DVBPAE,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteVpcBlockPublicAccessExclusionCommand");
    var se_DeleteVpcEndpointConnectionNotificationsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteVpcEndpointConnectionNotificationsRequest(input, context),
        [_A2]: _DVECN,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteVpcEndpointConnectionNotificationsCommand");
    var se_DeleteVpcEndpointsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteVpcEndpointsRequest(input, context),
        [_A2]: _DVE,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteVpcEndpointsCommand");
    var se_DeleteVpcEndpointServiceConfigurationsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteVpcEndpointServiceConfigurationsRequest(input, context),
        [_A2]: _DVESC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteVpcEndpointServiceConfigurationsCommand");
    var se_DeleteVpcPeeringConnectionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteVpcPeeringConnectionRequest(input, context),
        [_A2]: _DVPC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteVpcPeeringConnectionCommand");
    var se_DeleteVpnConnectionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteVpnConnectionRequest(input, context),
        [_A2]: _DVC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteVpnConnectionCommand");
    var se_DeleteVpnConnectionRouteCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteVpnConnectionRouteRequest(input, context),
        [_A2]: _DVCR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteVpnConnectionRouteCommand");
    var se_DeleteVpnGatewayCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteVpnGatewayRequest(input, context),
        [_A2]: _DVG,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteVpnGatewayCommand");
    var se_DeprovisionByoipCidrCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeprovisionByoipCidrRequest(input, context),
        [_A2]: _DBC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeprovisionByoipCidrCommand");
    var se_DeprovisionIpamByoasnCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeprovisionIpamByoasnRequest(input, context),
        [_A2]: _DIB,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeprovisionIpamByoasnCommand");
    var se_DeprovisionIpamPoolCidrCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeprovisionIpamPoolCidrRequest(input, context),
        [_A2]: _DIPC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeprovisionIpamPoolCidrCommand");
    var se_DeprovisionPublicIpv4PoolCidrCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeprovisionPublicIpv4PoolCidrRequest(input, context),
        [_A2]: _DPIPC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeprovisionPublicIpv4PoolCidrCommand");
    var se_DeregisterImageCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeregisterImageRequest(input, context),
        [_A2]: _DIe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeregisterImageCommand");
    var se_DeregisterInstanceEventNotificationAttributesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeregisterInstanceEventNotificationAttributesRequest(input, context),
        [_A2]: _DIENA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeregisterInstanceEventNotificationAttributesCommand");
    var se_DeregisterTransitGatewayMulticastGroupMembersCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeregisterTransitGatewayMulticastGroupMembersRequest(input, context),
        [_A2]: _DTGMGM,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeregisterTransitGatewayMulticastGroupMembersCommand");
    var se_DeregisterTransitGatewayMulticastGroupSourcesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeregisterTransitGatewayMulticastGroupSourcesRequest(input, context),
        [_A2]: _DTGMGS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeregisterTransitGatewayMulticastGroupSourcesCommand");
    var se_DescribeAccountAttributesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeAccountAttributesRequest(input, context),
        [_A2]: _DAA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeAccountAttributesCommand");
    var se_DescribeAddressesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeAddressesRequest(input, context),
        [_A2]: _DA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeAddressesCommand");
    var se_DescribeAddressesAttributeCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeAddressesAttributeRequest(input, context),
        [_A2]: _DAAe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeAddressesAttributeCommand");
    var se_DescribeAddressTransfersCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeAddressTransfersRequest(input, context),
        [_A2]: _DAT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeAddressTransfersCommand");
    var se_DescribeAggregateIdFormatCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeAggregateIdFormatRequest(input, context),
        [_A2]: _DAIF,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeAggregateIdFormatCommand");
    var se_DescribeAvailabilityZonesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeAvailabilityZonesRequest(input, context),
        [_A2]: _DAZ,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeAvailabilityZonesCommand");
    var se_DescribeAwsNetworkPerformanceMetricSubscriptionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeAwsNetworkPerformanceMetricSubscriptionsRequest(input, context),
        [_A2]: _DANPMS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeAwsNetworkPerformanceMetricSubscriptionsCommand");
    var se_DescribeBundleTasksCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeBundleTasksRequest(input, context),
        [_A2]: _DBT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeBundleTasksCommand");
    var se_DescribeByoipCidrsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeByoipCidrsRequest(input, context),
        [_A2]: _DBCe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeByoipCidrsCommand");
    var se_DescribeCapacityBlockExtensionHistoryCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeCapacityBlockExtensionHistoryRequest(input, context),
        [_A2]: _DCBEH,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeCapacityBlockExtensionHistoryCommand");
    var se_DescribeCapacityBlockExtensionOfferingsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeCapacityBlockExtensionOfferingsRequest(input, context),
        [_A2]: _DCBEO,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeCapacityBlockExtensionOfferingsCommand");
    var se_DescribeCapacityBlockOfferingsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeCapacityBlockOfferingsRequest(input, context),
        [_A2]: _DCBO,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeCapacityBlockOfferingsCommand");
    var se_DescribeCapacityBlocksCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeCapacityBlocksRequest(input, context),
        [_A2]: _DCB,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeCapacityBlocksCommand");
    var se_DescribeCapacityBlockStatusCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeCapacityBlockStatusRequest(input, context),
        [_A2]: _DCBS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeCapacityBlockStatusCommand");
    var se_DescribeCapacityReservationBillingRequestsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeCapacityReservationBillingRequestsRequest(input, context),
        [_A2]: _DCRBR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeCapacityReservationBillingRequestsCommand");
    var se_DescribeCapacityReservationFleetsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeCapacityReservationFleetsRequest(input, context),
        [_A2]: _DCRF,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeCapacityReservationFleetsCommand");
    var se_DescribeCapacityReservationsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeCapacityReservationsRequest(input, context),
        [_A2]: _DCR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeCapacityReservationsCommand");
    var se_DescribeCarrierGatewaysCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeCarrierGatewaysRequest(input, context),
        [_A2]: _DCGes,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeCarrierGatewaysCommand");
    var se_DescribeClassicLinkInstancesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeClassicLinkInstancesRequest(input, context),
        [_A2]: _DCLI,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeClassicLinkInstancesCommand");
    var se_DescribeClientVpnAuthorizationRulesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeClientVpnAuthorizationRulesRequest(input, context),
        [_A2]: _DCVAR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeClientVpnAuthorizationRulesCommand");
    var se_DescribeClientVpnConnectionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeClientVpnConnectionsRequest(input, context),
        [_A2]: _DCVC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeClientVpnConnectionsCommand");
    var se_DescribeClientVpnEndpointsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeClientVpnEndpointsRequest(input, context),
        [_A2]: _DCVEe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeClientVpnEndpointsCommand");
    var se_DescribeClientVpnRoutesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeClientVpnRoutesRequest(input, context),
        [_A2]: _DCVRe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeClientVpnRoutesCommand");
    var se_DescribeClientVpnTargetNetworksCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeClientVpnTargetNetworksRequest(input, context),
        [_A2]: _DCVTN,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeClientVpnTargetNetworksCommand");
    var se_DescribeCoipPoolsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeCoipPoolsRequest(input, context),
        [_A2]: _DCPe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeCoipPoolsCommand");
    var se_DescribeConversionTasksCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeConversionTasksRequest(input, context),
        [_A2]: _DCT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeConversionTasksCommand");
    var se_DescribeCustomerGatewaysCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeCustomerGatewaysRequest(input, context),
        [_A2]: _DCGesc,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeCustomerGatewaysCommand");
    var se_DescribeDeclarativePoliciesReportsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeDeclarativePoliciesReportsRequest(input, context),
        [_A2]: _DDPR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeDeclarativePoliciesReportsCommand");
    var se_DescribeDhcpOptionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeDhcpOptionsRequest(input, context),
        [_A2]: _DDOe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeDhcpOptionsCommand");
    var se_DescribeEgressOnlyInternetGatewaysCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeEgressOnlyInternetGatewaysRequest(input, context),
        [_A2]: _DEOIGe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeEgressOnlyInternetGatewaysCommand");
    var se_DescribeElasticGpusCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeElasticGpusRequest(input, context),
        [_A2]: _DEG,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeElasticGpusCommand");
    var se_DescribeExportImageTasksCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeExportImageTasksRequest(input, context),
        [_A2]: _DEIT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeExportImageTasksCommand");
    var se_DescribeExportTasksCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeExportTasksRequest(input, context),
        [_A2]: _DET,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeExportTasksCommand");
    var se_DescribeFastLaunchImagesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeFastLaunchImagesRequest(input, context),
        [_A2]: _DFLI,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeFastLaunchImagesCommand");
    var se_DescribeFastSnapshotRestoresCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeFastSnapshotRestoresRequest(input, context),
        [_A2]: _DFSR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeFastSnapshotRestoresCommand");
    var se_DescribeFleetHistoryCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeFleetHistoryRequest(input, context),
        [_A2]: _DFH,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeFleetHistoryCommand");
    var se_DescribeFleetInstancesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeFleetInstancesRequest(input, context),
        [_A2]: _DFIe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeFleetInstancesCommand");
    var se_DescribeFleetsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeFleetsRequest(input, context),
        [_A2]: _DFe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeFleetsCommand");
    var se_DescribeFlowLogsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeFlowLogsRequest(input, context),
        [_A2]: _DFLe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeFlowLogsCommand");
    var se_DescribeFpgaImageAttributeCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeFpgaImageAttributeRequest(input, context),
        [_A2]: _DFIA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeFpgaImageAttributeCommand");
    var se_DescribeFpgaImagesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeFpgaImagesRequest(input, context),
        [_A2]: _DFIes,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeFpgaImagesCommand");
    var se_DescribeHostReservationOfferingsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeHostReservationOfferingsRequest(input, context),
        [_A2]: _DHRO,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeHostReservationOfferingsCommand");
    var se_DescribeHostReservationsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeHostReservationsRequest(input, context),
        [_A2]: _DHR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeHostReservationsCommand");
    var se_DescribeHostsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeHostsRequest(input, context),
        [_A2]: _DH,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeHostsCommand");
    var se_DescribeIamInstanceProfileAssociationsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeIamInstanceProfileAssociationsRequest(input, context),
        [_A2]: _DIIPA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeIamInstanceProfileAssociationsCommand");
    var se_DescribeIdentityIdFormatCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeIdentityIdFormatRequest(input, context),
        [_A2]: _DIIF,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeIdentityIdFormatCommand");
    var se_DescribeIdFormatCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeIdFormatRequest(input, context),
        [_A2]: _DIF,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeIdFormatCommand");
    var se_DescribeImageAttributeCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeImageAttributeRequest(input, context),
        [_A2]: _DIA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeImageAttributeCommand");
    var se_DescribeImageReferencesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeImageReferencesRequest(input, context),
        [_A2]: _DIR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeImageReferencesCommand");
    var se_DescribeImagesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeImagesRequest(input, context),
        [_A2]: _DIes,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeImagesCommand");
    var se_DescribeImageUsageReportEntriesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeImageUsageReportEntriesRequest(input, context),
        [_A2]: _DIURE,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeImageUsageReportEntriesCommand");
    var se_DescribeImageUsageReportsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeImageUsageReportsRequest(input, context),
        [_A2]: _DIURe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeImageUsageReportsCommand");
    var se_DescribeImportImageTasksCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeImportImageTasksRequest(input, context),
        [_A2]: _DIIT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeImportImageTasksCommand");
    var se_DescribeImportSnapshotTasksCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeImportSnapshotTasksRequest(input, context),
        [_A2]: _DIST,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeImportSnapshotTasksCommand");
    var se_DescribeInstanceAttributeCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeInstanceAttributeRequest(input, context),
        [_A2]: _DIAe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeInstanceAttributeCommand");
    var se_DescribeInstanceConnectEndpointsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeInstanceConnectEndpointsRequest(input, context),
        [_A2]: _DICEe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeInstanceConnectEndpointsCommand");
    var se_DescribeInstanceCreditSpecificationsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeInstanceCreditSpecificationsRequest(input, context),
        [_A2]: _DICS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeInstanceCreditSpecificationsCommand");
    var se_DescribeInstanceEventNotificationAttributesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeInstanceEventNotificationAttributesRequest(input, context),
        [_A2]: _DIENAe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeInstanceEventNotificationAttributesCommand");
    var se_DescribeInstanceEventWindowsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeInstanceEventWindowsRequest(input, context),
        [_A2]: _DIEWe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeInstanceEventWindowsCommand");
    var se_DescribeInstanceImageMetadataCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeInstanceImageMetadataRequest(input, context),
        [_A2]: _DIIM,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeInstanceImageMetadataCommand");
    var se_DescribeInstancesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeInstancesRequest(input, context),
        [_A2]: _DIesc,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeInstancesCommand");
    var se_DescribeInstanceStatusCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeInstanceStatusRequest(input, context),
        [_A2]: _DISe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeInstanceStatusCommand");
    var se_DescribeInstanceTopologyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeInstanceTopologyRequest(input, context),
        [_A2]: _DIT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeInstanceTopologyCommand");
    var se_DescribeInstanceTypeOfferingsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeInstanceTypeOfferingsRequest(input, context),
        [_A2]: _DITO,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeInstanceTypeOfferingsCommand");
    var se_DescribeInstanceTypesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeInstanceTypesRequest(input, context),
        [_A2]: _DITe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeInstanceTypesCommand");
    var se_DescribeInternetGatewaysCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeInternetGatewaysRequest(input, context),
        [_A2]: _DIGe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeInternetGatewaysCommand");
    var se_DescribeIpamByoasnCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeIpamByoasnRequest(input, context),
        [_A2]: _DIBe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeIpamByoasnCommand");
    var se_DescribeIpamExternalResourceVerificationTokensCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeIpamExternalResourceVerificationTokensRequest(input, context),
        [_A2]: _DIERVTe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeIpamExternalResourceVerificationTokensCommand");
    var se_DescribeIpamPoolsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeIpamPoolsRequest(input, context),
        [_A2]: _DIPe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeIpamPoolsCommand");
    var se_DescribeIpamResourceDiscoveriesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeIpamResourceDiscoveriesRequest(input, context),
        [_A2]: _DIRDe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeIpamResourceDiscoveriesCommand");
    var se_DescribeIpamResourceDiscoveryAssociationsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeIpamResourceDiscoveryAssociationsRequest(input, context),
        [_A2]: _DIRDA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeIpamResourceDiscoveryAssociationsCommand");
    var se_DescribeIpamsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeIpamsRequest(input, context),
        [_A2]: _DIescr,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeIpamsCommand");
    var se_DescribeIpamScopesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeIpamScopesRequest(input, context),
        [_A2]: _DISes,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeIpamScopesCommand");
    var se_DescribeIpv6PoolsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeIpv6PoolsRequest(input, context),
        [_A2]: _DIPes,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeIpv6PoolsCommand");
    var se_DescribeKeyPairsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeKeyPairsRequest(input, context),
        [_A2]: _DKPe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeKeyPairsCommand");
    var se_DescribeLaunchTemplatesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeLaunchTemplatesRequest(input, context),
        [_A2]: _DLTe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeLaunchTemplatesCommand");
    var se_DescribeLaunchTemplateVersionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeLaunchTemplateVersionsRequest(input, context),
        [_A2]: _DLTVe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeLaunchTemplateVersionsCommand");
    var se_DescribeLocalGatewayRouteTablesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeLocalGatewayRouteTablesRequest(input, context),
        [_A2]: _DLGRTe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeLocalGatewayRouteTablesCommand");
    var se_DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequest(input, context),
        [_A2]: _DLGRTVIGAe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsCommand");
    var se_DescribeLocalGatewayRouteTableVpcAssociationsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeLocalGatewayRouteTableVpcAssociationsRequest(input, context),
        [_A2]: _DLGRTVAe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeLocalGatewayRouteTableVpcAssociationsCommand");
    var se_DescribeLocalGatewaysCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeLocalGatewaysRequest(input, context),
        [_A2]: _DLG,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeLocalGatewaysCommand");
    var se_DescribeLocalGatewayVirtualInterfaceGroupsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeLocalGatewayVirtualInterfaceGroupsRequest(input, context),
        [_A2]: _DLGVIGe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeLocalGatewayVirtualInterfaceGroupsCommand");
    var se_DescribeLocalGatewayVirtualInterfacesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeLocalGatewayVirtualInterfacesRequest(input, context),
        [_A2]: _DLGVIe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeLocalGatewayVirtualInterfacesCommand");
    var se_DescribeLockedSnapshotsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeLockedSnapshotsRequest(input, context),
        [_A2]: _DLS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeLockedSnapshotsCommand");
    var se_DescribeMacHostsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeMacHostsRequest(input, context),
        [_A2]: _DMH,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeMacHostsCommand");
    var se_DescribeMacModificationTasksCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeMacModificationTasksRequest(input, context),
        [_A2]: _DMMT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeMacModificationTasksCommand");
    var se_DescribeManagedPrefixListsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeManagedPrefixListsRequest(input, context),
        [_A2]: _DMPLe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeManagedPrefixListsCommand");
    var se_DescribeMovingAddressesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeMovingAddressesRequest(input, context),
        [_A2]: _DMA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeMovingAddressesCommand");
    var se_DescribeNatGatewaysCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeNatGatewaysRequest(input, context),
        [_A2]: _DNGe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeNatGatewaysCommand");
    var se_DescribeNetworkAclsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeNetworkAclsRequest(input, context),
        [_A2]: _DNAe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeNetworkAclsCommand");
    var se_DescribeNetworkInsightsAccessScopeAnalysesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeNetworkInsightsAccessScopeAnalysesRequest(input, context),
        [_A2]: _DNIASAe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeNetworkInsightsAccessScopeAnalysesCommand");
    var se_DescribeNetworkInsightsAccessScopesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeNetworkInsightsAccessScopesRequest(input, context),
        [_A2]: _DNIASe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeNetworkInsightsAccessScopesCommand");
    var se_DescribeNetworkInsightsAnalysesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeNetworkInsightsAnalysesRequest(input, context),
        [_A2]: _DNIAe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeNetworkInsightsAnalysesCommand");
    var se_DescribeNetworkInsightsPathsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeNetworkInsightsPathsRequest(input, context),
        [_A2]: _DNIPes,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeNetworkInsightsPathsCommand");
    var se_DescribeNetworkInterfaceAttributeCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeNetworkInterfaceAttributeRequest(input, context),
        [_A2]: _DNIAes,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeNetworkInterfaceAttributeCommand");
    var se_DescribeNetworkInterfacePermissionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeNetworkInterfacePermissionsRequest(input, context),
        [_A2]: _DNIPesc,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeNetworkInterfacePermissionsCommand");
    var se_DescribeNetworkInterfacesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeNetworkInterfacesRequest(input, context),
        [_A2]: _DNIe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeNetworkInterfacesCommand");
    var se_DescribeOutpostLagsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeOutpostLagsRequest(input, context),
        [_A2]: _DOL,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeOutpostLagsCommand");
    var se_DescribePlacementGroupsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribePlacementGroupsRequest(input, context),
        [_A2]: _DPGe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribePlacementGroupsCommand");
    var se_DescribePrefixListsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribePrefixListsRequest(input, context),
        [_A2]: _DPL,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribePrefixListsCommand");
    var se_DescribePrincipalIdFormatCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribePrincipalIdFormatRequest(input, context),
        [_A2]: _DPIF,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribePrincipalIdFormatCommand");
    var se_DescribePublicIpv4PoolsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribePublicIpv4PoolsRequest(input, context),
        [_A2]: _DPIPe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribePublicIpv4PoolsCommand");
    var se_DescribeRegionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeRegionsRequest(input, context),
        [_A2]: _DRe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeRegionsCommand");
    var se_DescribeReplaceRootVolumeTasksCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeReplaceRootVolumeTasksRequest(input, context),
        [_A2]: _DRRVT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeReplaceRootVolumeTasksCommand");
    var se_DescribeReservedInstancesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeReservedInstancesRequest(input, context),
        [_A2]: _DRI,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeReservedInstancesCommand");
    var se_DescribeReservedInstancesListingsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeReservedInstancesListingsRequest(input, context),
        [_A2]: _DRIL,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeReservedInstancesListingsCommand");
    var se_DescribeReservedInstancesModificationsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeReservedInstancesModificationsRequest(input, context),
        [_A2]: _DRIM,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeReservedInstancesModificationsCommand");
    var se_DescribeReservedInstancesOfferingsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeReservedInstancesOfferingsRequest(input, context),
        [_A2]: _DRIO,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeReservedInstancesOfferingsCommand");
    var se_DescribeRouteServerEndpointsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeRouteServerEndpointsRequest(input, context),
        [_A2]: _DRSEe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeRouteServerEndpointsCommand");
    var se_DescribeRouteServerPeersCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeRouteServerPeersRequest(input, context),
        [_A2]: _DRSPe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeRouteServerPeersCommand");
    var se_DescribeRouteServersCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeRouteServersRequest(input, context),
        [_A2]: _DRSe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeRouteServersCommand");
    var se_DescribeRouteTablesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeRouteTablesRequest(input, context),
        [_A2]: _DRTe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeRouteTablesCommand");
    var se_DescribeScheduledInstanceAvailabilityCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeScheduledInstanceAvailabilityRequest(input, context),
        [_A2]: _DSIA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeScheduledInstanceAvailabilityCommand");
    var se_DescribeScheduledInstancesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeScheduledInstancesRequest(input, context),
        [_A2]: _DSI,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeScheduledInstancesCommand");
    var se_DescribeSecurityGroupReferencesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeSecurityGroupReferencesRequest(input, context),
        [_A2]: _DSGR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeSecurityGroupReferencesCommand");
    var se_DescribeSecurityGroupRulesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeSecurityGroupRulesRequest(input, context),
        [_A2]: _DSGRe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeSecurityGroupRulesCommand");
    var se_DescribeSecurityGroupsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeSecurityGroupsRequest(input, context),
        [_A2]: _DSGe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeSecurityGroupsCommand");
    var se_DescribeSecurityGroupVpcAssociationsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeSecurityGroupVpcAssociationsRequest(input, context),
        [_A2]: _DSGVA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeSecurityGroupVpcAssociationsCommand");
    var se_DescribeServiceLinkVirtualInterfacesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeServiceLinkVirtualInterfacesRequest(input, context),
        [_A2]: _DSLVI,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeServiceLinkVirtualInterfacesCommand");
    var se_DescribeSnapshotAttributeCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeSnapshotAttributeRequest(input, context),
        [_A2]: _DSA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeSnapshotAttributeCommand");
    var se_DescribeSnapshotsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeSnapshotsRequest(input, context),
        [_A2]: _DSes,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeSnapshotsCommand");
    var se_DescribeSnapshotTierStatusCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeSnapshotTierStatusRequest(input, context),
        [_A2]: _DSTS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeSnapshotTierStatusCommand");
    var se_DescribeSpotDatafeedSubscriptionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeSpotDatafeedSubscriptionRequest(input, context),
        [_A2]: _DSDSe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeSpotDatafeedSubscriptionCommand");
    var se_DescribeSpotFleetInstancesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeSpotFleetInstancesRequest(input, context),
        [_A2]: _DSFI,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeSpotFleetInstancesCommand");
    var se_DescribeSpotFleetRequestHistoryCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeSpotFleetRequestHistoryRequest(input, context),
        [_A2]: _DSFRH,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeSpotFleetRequestHistoryCommand");
    var se_DescribeSpotFleetRequestsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeSpotFleetRequestsRequest(input, context),
        [_A2]: _DSFR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeSpotFleetRequestsCommand");
    var se_DescribeSpotInstanceRequestsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeSpotInstanceRequestsRequest(input, context),
        [_A2]: _DSIR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeSpotInstanceRequestsCommand");
    var se_DescribeSpotPriceHistoryCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeSpotPriceHistoryRequest(input, context),
        [_A2]: _DSPH,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeSpotPriceHistoryCommand");
    var se_DescribeStaleSecurityGroupsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeStaleSecurityGroupsRequest(input, context),
        [_A2]: _DSSG,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeStaleSecurityGroupsCommand");
    var se_DescribeStoreImageTasksCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeStoreImageTasksRequest(input, context),
        [_A2]: _DSIT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeStoreImageTasksCommand");
    var se_DescribeSubnetsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeSubnetsRequest(input, context),
        [_A2]: _DSesc,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeSubnetsCommand");
    var se_DescribeTagsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeTagsRequest(input, context),
        [_A2]: _DTe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeTagsCommand");
    var se_DescribeTrafficMirrorFilterRulesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeTrafficMirrorFilterRulesRequest(input, context),
        [_A2]: _DTMFRe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeTrafficMirrorFilterRulesCommand");
    var se_DescribeTrafficMirrorFiltersCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeTrafficMirrorFiltersRequest(input, context),
        [_A2]: _DTMFe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeTrafficMirrorFiltersCommand");
    var se_DescribeTrafficMirrorSessionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeTrafficMirrorSessionsRequest(input, context),
        [_A2]: _DTMSe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeTrafficMirrorSessionsCommand");
    var se_DescribeTrafficMirrorTargetsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeTrafficMirrorTargetsRequest(input, context),
        [_A2]: _DTMTe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeTrafficMirrorTargetsCommand");
    var se_DescribeTransitGatewayAttachmentsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeTransitGatewayAttachmentsRequest(input, context),
        [_A2]: _DTGA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeTransitGatewayAttachmentsCommand");
    var se_DescribeTransitGatewayConnectPeersCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeTransitGatewayConnectPeersRequest(input, context),
        [_A2]: _DTGCPe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeTransitGatewayConnectPeersCommand");
    var se_DescribeTransitGatewayConnectsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeTransitGatewayConnectsRequest(input, context),
        [_A2]: _DTGCe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeTransitGatewayConnectsCommand");
    var se_DescribeTransitGatewayMulticastDomainsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeTransitGatewayMulticastDomainsRequest(input, context),
        [_A2]: _DTGMDe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeTransitGatewayMulticastDomainsCommand");
    var se_DescribeTransitGatewayPeeringAttachmentsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeTransitGatewayPeeringAttachmentsRequest(input, context),
        [_A2]: _DTGPAe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeTransitGatewayPeeringAttachmentsCommand");
    var se_DescribeTransitGatewayPolicyTablesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeTransitGatewayPolicyTablesRequest(input, context),
        [_A2]: _DTGPTe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeTransitGatewayPolicyTablesCommand");
    var se_DescribeTransitGatewayRouteTableAnnouncementsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeTransitGatewayRouteTableAnnouncementsRequest(input, context),
        [_A2]: _DTGRTAe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeTransitGatewayRouteTableAnnouncementsCommand");
    var se_DescribeTransitGatewayRouteTablesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeTransitGatewayRouteTablesRequest(input, context),
        [_A2]: _DTGRTe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeTransitGatewayRouteTablesCommand");
    var se_DescribeTransitGatewaysCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeTransitGatewaysRequest(input, context),
        [_A2]: _DTGe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeTransitGatewaysCommand");
    var se_DescribeTransitGatewayVpcAttachmentsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeTransitGatewayVpcAttachmentsRequest(input, context),
        [_A2]: _DTGVAe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeTransitGatewayVpcAttachmentsCommand");
    var se_DescribeTrunkInterfaceAssociationsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeTrunkInterfaceAssociationsRequest(input, context),
        [_A2]: _DTIA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeTrunkInterfaceAssociationsCommand");
    var se_DescribeVerifiedAccessEndpointsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeVerifiedAccessEndpointsRequest(input, context),
        [_A2]: _DVAEe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeVerifiedAccessEndpointsCommand");
    var se_DescribeVerifiedAccessGroupsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeVerifiedAccessGroupsRequest(input, context),
        [_A2]: _DVAGe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeVerifiedAccessGroupsCommand");
    var se_DescribeVerifiedAccessInstanceLoggingConfigurationsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeVerifiedAccessInstanceLoggingConfigurationsRequest(input, context),
        [_A2]: _DVAILC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeVerifiedAccessInstanceLoggingConfigurationsCommand");
    var se_DescribeVerifiedAccessInstancesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeVerifiedAccessInstancesRequest(input, context),
        [_A2]: _DVAIe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeVerifiedAccessInstancesCommand");
    var se_DescribeVerifiedAccessTrustProvidersCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeVerifiedAccessTrustProvidersRequest(input, context),
        [_A2]: _DVATPe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeVerifiedAccessTrustProvidersCommand");
    var se_DescribeVolumeAttributeCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeVolumeAttributeRequest(input, context),
        [_A2]: _DVA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeVolumeAttributeCommand");
    var se_DescribeVolumesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeVolumesRequest(input, context),
        [_A2]: _DVes,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeVolumesCommand");
    var se_DescribeVolumesModificationsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeVolumesModificationsRequest(input, context),
        [_A2]: _DVM,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeVolumesModificationsCommand");
    var se_DescribeVolumeStatusCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeVolumeStatusRequest(input, context),
        [_A2]: _DVS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeVolumeStatusCommand");
    var se_DescribeVpcAttributeCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeVpcAttributeRequest(input, context),
        [_A2]: _DVAe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeVpcAttributeCommand");
    var se_DescribeVpcBlockPublicAccessExclusionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeVpcBlockPublicAccessExclusionsRequest(input, context),
        [_A2]: _DVBPAEe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeVpcBlockPublicAccessExclusionsCommand");
    var se_DescribeVpcBlockPublicAccessOptionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeVpcBlockPublicAccessOptionsRequest(input, context),
        [_A2]: _DVBPAO,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeVpcBlockPublicAccessOptionsCommand");
    var se_DescribeVpcClassicLinkCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeVpcClassicLinkRequest(input, context),
        [_A2]: _DVCL,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeVpcClassicLinkCommand");
    var se_DescribeVpcClassicLinkDnsSupportCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeVpcClassicLinkDnsSupportRequest(input, context),
        [_A2]: _DVCLDS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeVpcClassicLinkDnsSupportCommand");
    var se_DescribeVpcEndpointAssociationsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeVpcEndpointAssociationsRequest(input, context),
        [_A2]: _DVEA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeVpcEndpointAssociationsCommand");
    var se_DescribeVpcEndpointConnectionNotificationsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeVpcEndpointConnectionNotificationsRequest(input, context),
        [_A2]: _DVECNe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeVpcEndpointConnectionNotificationsCommand");
    var se_DescribeVpcEndpointConnectionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeVpcEndpointConnectionsRequest(input, context),
        [_A2]: _DVEC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeVpcEndpointConnectionsCommand");
    var se_DescribeVpcEndpointsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeVpcEndpointsRequest(input, context),
        [_A2]: _DVEe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeVpcEndpointsCommand");
    var se_DescribeVpcEndpointServiceConfigurationsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeVpcEndpointServiceConfigurationsRequest(input, context),
        [_A2]: _DVESCe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeVpcEndpointServiceConfigurationsCommand");
    var se_DescribeVpcEndpointServicePermissionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeVpcEndpointServicePermissionsRequest(input, context),
        [_A2]: _DVESP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeVpcEndpointServicePermissionsCommand");
    var se_DescribeVpcEndpointServicesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeVpcEndpointServicesRequest(input, context),
        [_A2]: _DVES,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeVpcEndpointServicesCommand");
    var se_DescribeVpcPeeringConnectionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeVpcPeeringConnectionsRequest(input, context),
        [_A2]: _DVPCe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeVpcPeeringConnectionsCommand");
    var se_DescribeVpcsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeVpcsRequest(input, context),
        [_A2]: _DVesc,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeVpcsCommand");
    var se_DescribeVpnConnectionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeVpnConnectionsRequest(input, context),
        [_A2]: _DVCe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeVpnConnectionsCommand");
    var se_DescribeVpnGatewaysCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeVpnGatewaysRequest(input, context),
        [_A2]: _DVGe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeVpnGatewaysCommand");
    var se_DetachClassicLinkVpcCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DetachClassicLinkVpcRequest(input, context),
        [_A2]: _DCLV,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DetachClassicLinkVpcCommand");
    var se_DetachInternetGatewayCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DetachInternetGatewayRequest(input, context),
        [_A2]: _DIGet,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DetachInternetGatewayCommand");
    var se_DetachNetworkInterfaceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DetachNetworkInterfaceRequest(input, context),
        [_A2]: _DNIet,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DetachNetworkInterfaceCommand");
    var se_DetachVerifiedAccessTrustProviderCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DetachVerifiedAccessTrustProviderRequest(input, context),
        [_A2]: _DVATPet,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DetachVerifiedAccessTrustProviderCommand");
    var se_DetachVolumeCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DetachVolumeRequest(input, context),
        [_A2]: _DVet,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DetachVolumeCommand");
    var se_DetachVpnGatewayCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DetachVpnGatewayRequest(input, context),
        [_A2]: _DVGet,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DetachVpnGatewayCommand");
    var se_DisableAddressTransferCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DisableAddressTransferRequest(input, context),
        [_A2]: _DATi,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DisableAddressTransferCommand");
    var se_DisableAllowedImagesSettingsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DisableAllowedImagesSettingsRequest(input, context),
        [_A2]: _DAIS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DisableAllowedImagesSettingsCommand");
    var se_DisableAwsNetworkPerformanceMetricSubscriptionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DisableAwsNetworkPerformanceMetricSubscriptionRequest(input, context),
        [_A2]: _DANPMSi,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DisableAwsNetworkPerformanceMetricSubscriptionCommand");
    var se_DisableEbsEncryptionByDefaultCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DisableEbsEncryptionByDefaultRequest(input, context),
        [_A2]: _DEEBD,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DisableEbsEncryptionByDefaultCommand");
    var se_DisableFastLaunchCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DisableFastLaunchRequest(input, context),
        [_A2]: _DFLi,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DisableFastLaunchCommand");
    var se_DisableFastSnapshotRestoresCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DisableFastSnapshotRestoresRequest(input, context),
        [_A2]: _DFSRi,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DisableFastSnapshotRestoresCommand");
    var se_DisableImageCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DisableImageRequest(input, context),
        [_A2]: _DIi,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DisableImageCommand");
    var se_DisableImageBlockPublicAccessCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DisableImageBlockPublicAccessRequest(input, context),
        [_A2]: _DIBPA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DisableImageBlockPublicAccessCommand");
    var se_DisableImageDeprecationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DisableImageDeprecationRequest(input, context),
        [_A2]: _DID,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DisableImageDeprecationCommand");
    var se_DisableImageDeregistrationProtectionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DisableImageDeregistrationProtectionRequest(input, context),
        [_A2]: _DIDP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DisableImageDeregistrationProtectionCommand");
    var se_DisableIpamOrganizationAdminAccountCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DisableIpamOrganizationAdminAccountRequest(input, context),
        [_A2]: _DIOAA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DisableIpamOrganizationAdminAccountCommand");
    var se_DisableRouteServerPropagationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DisableRouteServerPropagationRequest(input, context),
        [_A2]: _DRSPi,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DisableRouteServerPropagationCommand");
    var se_DisableSerialConsoleAccessCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DisableSerialConsoleAccessRequest(input, context),
        [_A2]: _DSCA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DisableSerialConsoleAccessCommand");
    var se_DisableSnapshotBlockPublicAccessCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DisableSnapshotBlockPublicAccessRequest(input, context),
        [_A2]: _DSBPA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DisableSnapshotBlockPublicAccessCommand");
    var se_DisableTransitGatewayRouteTablePropagationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DisableTransitGatewayRouteTablePropagationRequest(input, context),
        [_A2]: _DTGRTP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DisableTransitGatewayRouteTablePropagationCommand");
    var se_DisableVgwRoutePropagationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DisableVgwRoutePropagationRequest(input, context),
        [_A2]: _DVRP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DisableVgwRoutePropagationCommand");
    var se_DisableVpcClassicLinkCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DisableVpcClassicLinkRequest(input, context),
        [_A2]: _DVCLi,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DisableVpcClassicLinkCommand");
    var se_DisableVpcClassicLinkDnsSupportCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DisableVpcClassicLinkDnsSupportRequest(input, context),
        [_A2]: _DVCLDSi,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DisableVpcClassicLinkDnsSupportCommand");
    var se_DisassociateAddressCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DisassociateAddressRequest(input, context),
        [_A2]: _DAi,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DisassociateAddressCommand");
    var se_DisassociateCapacityReservationBillingOwnerCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DisassociateCapacityReservationBillingOwnerRequest(input, context),
        [_A2]: _DCRBO,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DisassociateCapacityReservationBillingOwnerCommand");
    var se_DisassociateClientVpnTargetNetworkCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DisassociateClientVpnTargetNetworkRequest(input, context),
        [_A2]: _DCVTNi,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DisassociateClientVpnTargetNetworkCommand");
    var se_DisassociateEnclaveCertificateIamRoleCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DisassociateEnclaveCertificateIamRoleRequest(input, context),
        [_A2]: _DECIR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DisassociateEnclaveCertificateIamRoleCommand");
    var se_DisassociateIamInstanceProfileCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DisassociateIamInstanceProfileRequest(input, context),
        [_A2]: _DIIP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DisassociateIamInstanceProfileCommand");
    var se_DisassociateInstanceEventWindowCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DisassociateInstanceEventWindowRequest(input, context),
        [_A2]: _DIEWi,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DisassociateInstanceEventWindowCommand");
    var se_DisassociateIpamByoasnCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DisassociateIpamByoasnRequest(input, context),
        [_A2]: _DIBi,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DisassociateIpamByoasnCommand");
    var se_DisassociateIpamResourceDiscoveryCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DisassociateIpamResourceDiscoveryRequest(input, context),
        [_A2]: _DIRDi,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DisassociateIpamResourceDiscoveryCommand");
    var se_DisassociateNatGatewayAddressCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DisassociateNatGatewayAddressRequest(input, context),
        [_A2]: _DNGA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DisassociateNatGatewayAddressCommand");
    var se_DisassociateRouteServerCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DisassociateRouteServerRequest(input, context),
        [_A2]: _DRSi,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DisassociateRouteServerCommand");
    var se_DisassociateRouteTableCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DisassociateRouteTableRequest(input, context),
        [_A2]: _DRTi,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DisassociateRouteTableCommand");
    var se_DisassociateSecurityGroupVpcCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DisassociateSecurityGroupVpcRequest(input, context),
        [_A2]: _DSGV,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DisassociateSecurityGroupVpcCommand");
    var se_DisassociateSubnetCidrBlockCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DisassociateSubnetCidrBlockRequest(input, context),
        [_A2]: _DSCB,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DisassociateSubnetCidrBlockCommand");
    var se_DisassociateTransitGatewayMulticastDomainCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DisassociateTransitGatewayMulticastDomainRequest(input, context),
        [_A2]: _DTGMDi,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DisassociateTransitGatewayMulticastDomainCommand");
    var se_DisassociateTransitGatewayPolicyTableCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DisassociateTransitGatewayPolicyTableRequest(input, context),
        [_A2]: _DTGPTi,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DisassociateTransitGatewayPolicyTableCommand");
    var se_DisassociateTransitGatewayRouteTableCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DisassociateTransitGatewayRouteTableRequest(input, context),
        [_A2]: _DTGRTi,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DisassociateTransitGatewayRouteTableCommand");
    var se_DisassociateTrunkInterfaceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DisassociateTrunkInterfaceRequest(input, context),
        [_A2]: _DTI,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DisassociateTrunkInterfaceCommand");
    var se_DisassociateVpcCidrBlockCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DisassociateVpcCidrBlockRequest(input, context),
        [_A2]: _DVCB,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DisassociateVpcCidrBlockCommand");
    var se_EnableAddressTransferCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_EnableAddressTransferRequest(input, context),
        [_A2]: _EAT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_EnableAddressTransferCommand");
    var se_EnableAllowedImagesSettingsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_EnableAllowedImagesSettingsRequest(input, context),
        [_A2]: _EAIS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_EnableAllowedImagesSettingsCommand");
    var se_EnableAwsNetworkPerformanceMetricSubscriptionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_EnableAwsNetworkPerformanceMetricSubscriptionRequest(input, context),
        [_A2]: _EANPMS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_EnableAwsNetworkPerformanceMetricSubscriptionCommand");
    var se_EnableEbsEncryptionByDefaultCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_EnableEbsEncryptionByDefaultRequest(input, context),
        [_A2]: _EEEBD,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_EnableEbsEncryptionByDefaultCommand");
    var se_EnableFastLaunchCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_EnableFastLaunchRequest(input, context),
        [_A2]: _EFL,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_EnableFastLaunchCommand");
    var se_EnableFastSnapshotRestoresCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_EnableFastSnapshotRestoresRequest(input, context),
        [_A2]: _EFSR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_EnableFastSnapshotRestoresCommand");
    var se_EnableImageCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_EnableImageRequest(input, context),
        [_A2]: _EI2,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_EnableImageCommand");
    var se_EnableImageBlockPublicAccessCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_EnableImageBlockPublicAccessRequest(input, context),
        [_A2]: _EIBPA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_EnableImageBlockPublicAccessCommand");
    var se_EnableImageDeprecationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_EnableImageDeprecationRequest(input, context),
        [_A2]: _EID,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_EnableImageDeprecationCommand");
    var se_EnableImageDeregistrationProtectionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_EnableImageDeregistrationProtectionRequest(input, context),
        [_A2]: _EIDP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_EnableImageDeregistrationProtectionCommand");
    var se_EnableIpamOrganizationAdminAccountCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_EnableIpamOrganizationAdminAccountRequest(input, context),
        [_A2]: _EIOAA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_EnableIpamOrganizationAdminAccountCommand");
    var se_EnableReachabilityAnalyzerOrganizationSharingCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_EnableReachabilityAnalyzerOrganizationSharingRequest(input, context),
        [_A2]: _ERAOS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_EnableReachabilityAnalyzerOrganizationSharingCommand");
    var se_EnableRouteServerPropagationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_EnableRouteServerPropagationRequest(input, context),
        [_A2]: _ERSP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_EnableRouteServerPropagationCommand");
    var se_EnableSerialConsoleAccessCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_EnableSerialConsoleAccessRequest(input, context),
        [_A2]: _ESCA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_EnableSerialConsoleAccessCommand");
    var se_EnableSnapshotBlockPublicAccessCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_EnableSnapshotBlockPublicAccessRequest(input, context),
        [_A2]: _ESBPA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_EnableSnapshotBlockPublicAccessCommand");
    var se_EnableTransitGatewayRouteTablePropagationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_EnableTransitGatewayRouteTablePropagationRequest(input, context),
        [_A2]: _ETGRTP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_EnableTransitGatewayRouteTablePropagationCommand");
    var se_EnableVgwRoutePropagationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_EnableVgwRoutePropagationRequest(input, context),
        [_A2]: _EVRP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_EnableVgwRoutePropagationCommand");
    var se_EnableVolumeIOCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_EnableVolumeIORequest(input, context),
        [_A2]: _EVIO,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_EnableVolumeIOCommand");
    var se_EnableVpcClassicLinkCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_EnableVpcClassicLinkRequest(input, context),
        [_A2]: _EVCL,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_EnableVpcClassicLinkCommand");
    var se_EnableVpcClassicLinkDnsSupportCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_EnableVpcClassicLinkDnsSupportRequest(input, context),
        [_A2]: _EVCLDS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_EnableVpcClassicLinkDnsSupportCommand");
    var se_ExportClientVpnClientCertificateRevocationListCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ExportClientVpnClientCertificateRevocationListRequest(input, context),
        [_A2]: _ECVCCRL,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ExportClientVpnClientCertificateRevocationListCommand");
    var se_ExportClientVpnClientConfigurationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ExportClientVpnClientConfigurationRequest(input, context),
        [_A2]: _ECVCC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ExportClientVpnClientConfigurationCommand");
    var se_ExportImageCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ExportImageRequest(input, context),
        [_A2]: _EIx,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ExportImageCommand");
    var se_ExportTransitGatewayRoutesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ExportTransitGatewayRoutesRequest(input, context),
        [_A2]: _ETGR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ExportTransitGatewayRoutesCommand");
    var se_ExportVerifiedAccessInstanceClientConfigurationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ExportVerifiedAccessInstanceClientConfigurationRequest(input, context),
        [_A2]: _EVAICC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ExportVerifiedAccessInstanceClientConfigurationCommand");
    var se_GetActiveVpnTunnelStatusCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetActiveVpnTunnelStatusRequest(input, context),
        [_A2]: _GAVTS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetActiveVpnTunnelStatusCommand");
    var se_GetAllowedImagesSettingsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetAllowedImagesSettingsRequest(input, context),
        [_A2]: _GAIS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetAllowedImagesSettingsCommand");
    var se_GetAssociatedEnclaveCertificateIamRolesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetAssociatedEnclaveCertificateIamRolesRequest(input, context),
        [_A2]: _GAECIR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetAssociatedEnclaveCertificateIamRolesCommand");
    var se_GetAssociatedIpv6PoolCidrsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetAssociatedIpv6PoolCidrsRequest(input, context),
        [_A2]: _GAIPC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetAssociatedIpv6PoolCidrsCommand");
    var se_GetAwsNetworkPerformanceDataCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetAwsNetworkPerformanceDataRequest(input, context),
        [_A2]: _GANPD,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetAwsNetworkPerformanceDataCommand");
    var se_GetCapacityReservationUsageCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetCapacityReservationUsageRequest(input, context),
        [_A2]: _GCRU,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetCapacityReservationUsageCommand");
    var se_GetCoipPoolUsageCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetCoipPoolUsageRequest(input, context),
        [_A2]: _GCPU,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetCoipPoolUsageCommand");
    var se_GetConsoleOutputCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetConsoleOutputRequest(input, context),
        [_A2]: _GCO,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetConsoleOutputCommand");
    var se_GetConsoleScreenshotCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetConsoleScreenshotRequest(input, context),
        [_A2]: _GCS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetConsoleScreenshotCommand");
    var se_GetDeclarativePoliciesReportSummaryCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetDeclarativePoliciesReportSummaryRequest(input, context),
        [_A2]: _GDPRS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetDeclarativePoliciesReportSummaryCommand");
    var se_GetDefaultCreditSpecificationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetDefaultCreditSpecificationRequest(input, context),
        [_A2]: _GDCS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetDefaultCreditSpecificationCommand");
    var se_GetEbsDefaultKmsKeyIdCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetEbsDefaultKmsKeyIdRequest(input, context),
        [_A2]: _GEDKKI,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetEbsDefaultKmsKeyIdCommand");
    var se_GetEbsEncryptionByDefaultCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetEbsEncryptionByDefaultRequest(input, context),
        [_A2]: _GEEBD,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetEbsEncryptionByDefaultCommand");
    var se_GetFlowLogsIntegrationTemplateCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetFlowLogsIntegrationTemplateRequest(input, context),
        [_A2]: _GFLIT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetFlowLogsIntegrationTemplateCommand");
    var se_GetGroupsForCapacityReservationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetGroupsForCapacityReservationRequest(input, context),
        [_A2]: _GGFCR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetGroupsForCapacityReservationCommand");
    var se_GetHostReservationPurchasePreviewCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetHostReservationPurchasePreviewRequest(input, context),
        [_A2]: _GHRPP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetHostReservationPurchasePreviewCommand");
    var se_GetImageBlockPublicAccessStateCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetImageBlockPublicAccessStateRequest(input, context),
        [_A2]: _GIBPAS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetImageBlockPublicAccessStateCommand");
    var se_GetInstanceMetadataDefaultsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetInstanceMetadataDefaultsRequest(input, context),
        [_A2]: _GIMD,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetInstanceMetadataDefaultsCommand");
    var se_GetInstanceTpmEkPubCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetInstanceTpmEkPubRequest(input, context),
        [_A2]: _GITEP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetInstanceTpmEkPubCommand");
    var se_GetInstanceTypesFromInstanceRequirementsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetInstanceTypesFromInstanceRequirementsRequest(input, context),
        [_A2]: _GITFIR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetInstanceTypesFromInstanceRequirementsCommand");
    var se_GetInstanceUefiDataCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetInstanceUefiDataRequest(input, context),
        [_A2]: _GIUD,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetInstanceUefiDataCommand");
    var se_GetIpamAddressHistoryCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetIpamAddressHistoryRequest(input, context),
        [_A2]: _GIAH,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetIpamAddressHistoryCommand");
    var se_GetIpamDiscoveredAccountsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetIpamDiscoveredAccountsRequest(input, context),
        [_A2]: _GIDA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetIpamDiscoveredAccountsCommand");
    var se_GetIpamDiscoveredPublicAddressesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetIpamDiscoveredPublicAddressesRequest(input, context),
        [_A2]: _GIDPA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetIpamDiscoveredPublicAddressesCommand");
    var se_GetIpamDiscoveredResourceCidrsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetIpamDiscoveredResourceCidrsRequest(input, context),
        [_A2]: _GIDRC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetIpamDiscoveredResourceCidrsCommand");
    var se_GetIpamPoolAllocationsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetIpamPoolAllocationsRequest(input, context),
        [_A2]: _GIPA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetIpamPoolAllocationsCommand");
    var se_GetIpamPoolCidrsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetIpamPoolCidrsRequest(input, context),
        [_A2]: _GIPC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetIpamPoolCidrsCommand");
    var se_GetIpamResourceCidrsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetIpamResourceCidrsRequest(input, context),
        [_A2]: _GIRC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetIpamResourceCidrsCommand");
    var se_GetLaunchTemplateDataCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetLaunchTemplateDataRequest(input, context),
        [_A2]: _GLTD,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetLaunchTemplateDataCommand");
    var se_GetManagedPrefixListAssociationsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetManagedPrefixListAssociationsRequest(input, context),
        [_A2]: _GMPLA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetManagedPrefixListAssociationsCommand");
    var se_GetManagedPrefixListEntriesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetManagedPrefixListEntriesRequest(input, context),
        [_A2]: _GMPLE,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetManagedPrefixListEntriesCommand");
    var se_GetNetworkInsightsAccessScopeAnalysisFindingsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetNetworkInsightsAccessScopeAnalysisFindingsRequest(input, context),
        [_A2]: _GNIASAF,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetNetworkInsightsAccessScopeAnalysisFindingsCommand");
    var se_GetNetworkInsightsAccessScopeContentCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetNetworkInsightsAccessScopeContentRequest(input, context),
        [_A2]: _GNIASC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetNetworkInsightsAccessScopeContentCommand");
    var se_GetPasswordDataCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetPasswordDataRequest(input, context),
        [_A2]: _GPD,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetPasswordDataCommand");
    var se_GetReservedInstancesExchangeQuoteCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetReservedInstancesExchangeQuoteRequest(input, context),
        [_A2]: _GRIEQ,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetReservedInstancesExchangeQuoteCommand");
    var se_GetRouteServerAssociationsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetRouteServerAssociationsRequest(input, context),
        [_A2]: _GRSA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetRouteServerAssociationsCommand");
    var se_GetRouteServerPropagationsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetRouteServerPropagationsRequest(input, context),
        [_A2]: _GRSP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetRouteServerPropagationsCommand");
    var se_GetRouteServerRoutingDatabaseCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetRouteServerRoutingDatabaseRequest(input, context),
        [_A2]: _GRSRD,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetRouteServerRoutingDatabaseCommand");
    var se_GetSecurityGroupsForVpcCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetSecurityGroupsForVpcRequest(input, context),
        [_A2]: _GSGFV,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetSecurityGroupsForVpcCommand");
    var se_GetSerialConsoleAccessStatusCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetSerialConsoleAccessStatusRequest(input, context),
        [_A2]: _GSCAS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetSerialConsoleAccessStatusCommand");
    var se_GetSnapshotBlockPublicAccessStateCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetSnapshotBlockPublicAccessStateRequest(input, context),
        [_A2]: _GSBPAS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetSnapshotBlockPublicAccessStateCommand");
    var se_GetSpotPlacementScoresCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetSpotPlacementScoresRequest(input, context),
        [_A2]: _GSPS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetSpotPlacementScoresCommand");
    var se_GetSubnetCidrReservationsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetSubnetCidrReservationsRequest(input, context),
        [_A2]: _GSCR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetSubnetCidrReservationsCommand");
    var se_GetTransitGatewayAttachmentPropagationsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetTransitGatewayAttachmentPropagationsRequest(input, context),
        [_A2]: _GTGAP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetTransitGatewayAttachmentPropagationsCommand");
    var se_GetTransitGatewayMulticastDomainAssociationsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetTransitGatewayMulticastDomainAssociationsRequest(input, context),
        [_A2]: _GTGMDA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetTransitGatewayMulticastDomainAssociationsCommand");
    var se_GetTransitGatewayPolicyTableAssociationsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetTransitGatewayPolicyTableAssociationsRequest(input, context),
        [_A2]: _GTGPTA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetTransitGatewayPolicyTableAssociationsCommand");
    var se_GetTransitGatewayPolicyTableEntriesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetTransitGatewayPolicyTableEntriesRequest(input, context),
        [_A2]: _GTGPTE,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetTransitGatewayPolicyTableEntriesCommand");
    var se_GetTransitGatewayPrefixListReferencesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetTransitGatewayPrefixListReferencesRequest(input, context),
        [_A2]: _GTGPLR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetTransitGatewayPrefixListReferencesCommand");
    var se_GetTransitGatewayRouteTableAssociationsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetTransitGatewayRouteTableAssociationsRequest(input, context),
        [_A2]: _GTGRTA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetTransitGatewayRouteTableAssociationsCommand");
    var se_GetTransitGatewayRouteTablePropagationsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetTransitGatewayRouteTablePropagationsRequest(input, context),
        [_A2]: _GTGRTP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetTransitGatewayRouteTablePropagationsCommand");
    var se_GetVerifiedAccessEndpointPolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetVerifiedAccessEndpointPolicyRequest(input, context),
        [_A2]: _GVAEP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetVerifiedAccessEndpointPolicyCommand");
    var se_GetVerifiedAccessEndpointTargetsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetVerifiedAccessEndpointTargetsRequest(input, context),
        [_A2]: _GVAET,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetVerifiedAccessEndpointTargetsCommand");
    var se_GetVerifiedAccessGroupPolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetVerifiedAccessGroupPolicyRequest(input, context),
        [_A2]: _GVAGP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetVerifiedAccessGroupPolicyCommand");
    var se_GetVpnConnectionDeviceSampleConfigurationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetVpnConnectionDeviceSampleConfigurationRequest(input, context),
        [_A2]: _GVCDSC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetVpnConnectionDeviceSampleConfigurationCommand");
    var se_GetVpnConnectionDeviceTypesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetVpnConnectionDeviceTypesRequest(input, context),
        [_A2]: _GVCDT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetVpnConnectionDeviceTypesCommand");
    var se_GetVpnTunnelReplacementStatusCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetVpnTunnelReplacementStatusRequest(input, context),
        [_A2]: _GVTRS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetVpnTunnelReplacementStatusCommand");
    var se_ImportClientVpnClientCertificateRevocationListCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ImportClientVpnClientCertificateRevocationListRequest(input, context),
        [_A2]: _ICVCCRL,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ImportClientVpnClientCertificateRevocationListCommand");
    var se_ImportImageCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ImportImageRequest(input, context),
        [_A2]: _II,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ImportImageCommand");
    var se_ImportInstanceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ImportInstanceRequest(input, context),
        [_A2]: _IIm,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ImportInstanceCommand");
    var se_ImportKeyPairCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ImportKeyPairRequest(input, context),
        [_A2]: _IKP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ImportKeyPairCommand");
    var se_ImportSnapshotCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ImportSnapshotRequest(input, context),
        [_A2]: _IS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ImportSnapshotCommand");
    var se_ImportVolumeCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ImportVolumeRequest(input, context),
        [_A2]: _IV,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ImportVolumeCommand");
    var se_ListImagesInRecycleBinCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListImagesInRecycleBinRequest(input, context),
        [_A2]: _LIIRB,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListImagesInRecycleBinCommand");
    var se_ListSnapshotsInRecycleBinCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListSnapshotsInRecycleBinRequest(input, context),
        [_A2]: _LSIRB,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListSnapshotsInRecycleBinCommand");
    var se_LockSnapshotCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_LockSnapshotRequest(input, context),
        [_A2]: _LS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_LockSnapshotCommand");
    var se_ModifyAddressAttributeCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyAddressAttributeRequest(input, context),
        [_A2]: _MAA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyAddressAttributeCommand");
    var se_ModifyAvailabilityZoneGroupCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyAvailabilityZoneGroupRequest(input, context),
        [_A2]: _MAZG,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyAvailabilityZoneGroupCommand");
    var se_ModifyCapacityReservationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyCapacityReservationRequest(input, context),
        [_A2]: _MCR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyCapacityReservationCommand");
    var se_ModifyCapacityReservationFleetCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyCapacityReservationFleetRequest(input, context),
        [_A2]: _MCRF,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyCapacityReservationFleetCommand");
    var se_ModifyClientVpnEndpointCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyClientVpnEndpointRequest(input, context),
        [_A2]: _MCVE,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyClientVpnEndpointCommand");
    var se_ModifyDefaultCreditSpecificationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyDefaultCreditSpecificationRequest(input, context),
        [_A2]: _MDCS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyDefaultCreditSpecificationCommand");
    var se_ModifyEbsDefaultKmsKeyIdCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyEbsDefaultKmsKeyIdRequest(input, context),
        [_A2]: _MEDKKI,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyEbsDefaultKmsKeyIdCommand");
    var se_ModifyFleetCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyFleetRequest(input, context),
        [_A2]: _MF,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyFleetCommand");
    var se_ModifyFpgaImageAttributeCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyFpgaImageAttributeRequest(input, context),
        [_A2]: _MFIA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyFpgaImageAttributeCommand");
    var se_ModifyHostsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyHostsRequest(input, context),
        [_A2]: _MH,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyHostsCommand");
    var se_ModifyIdentityIdFormatCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyIdentityIdFormatRequest(input, context),
        [_A2]: _MIIF,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyIdentityIdFormatCommand");
    var se_ModifyIdFormatCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyIdFormatRequest(input, context),
        [_A2]: _MIF,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyIdFormatCommand");
    var se_ModifyImageAttributeCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyImageAttributeRequest(input, context),
        [_A2]: _MIA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyImageAttributeCommand");
    var se_ModifyInstanceAttributeCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyInstanceAttributeRequest(input, context),
        [_A2]: _MIAo,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyInstanceAttributeCommand");
    var se_ModifyInstanceCapacityReservationAttributesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyInstanceCapacityReservationAttributesRequest(input, context),
        [_A2]: _MICRA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyInstanceCapacityReservationAttributesCommand");
    var se_ModifyInstanceConnectEndpointCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyInstanceConnectEndpointRequest(input, context),
        [_A2]: _MICE,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyInstanceConnectEndpointCommand");
    var se_ModifyInstanceCpuOptionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyInstanceCpuOptionsRequest(input, context),
        [_A2]: _MICO,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyInstanceCpuOptionsCommand");
    var se_ModifyInstanceCreditSpecificationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyInstanceCreditSpecificationRequest(input, context),
        [_A2]: _MICS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyInstanceCreditSpecificationCommand");
    var se_ModifyInstanceEventStartTimeCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyInstanceEventStartTimeRequest(input, context),
        [_A2]: _MIEST,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyInstanceEventStartTimeCommand");
    var se_ModifyInstanceEventWindowCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyInstanceEventWindowRequest(input, context),
        [_A2]: _MIEW,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyInstanceEventWindowCommand");
    var se_ModifyInstanceMaintenanceOptionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyInstanceMaintenanceOptionsRequest(input, context),
        [_A2]: _MIMO,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyInstanceMaintenanceOptionsCommand");
    var se_ModifyInstanceMetadataDefaultsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyInstanceMetadataDefaultsRequest(input, context),
        [_A2]: _MIMD,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyInstanceMetadataDefaultsCommand");
    var se_ModifyInstanceMetadataOptionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyInstanceMetadataOptionsRequest(input, context),
        [_A2]: _MIMOo,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyInstanceMetadataOptionsCommand");
    var se_ModifyInstanceNetworkPerformanceOptionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyInstanceNetworkPerformanceRequest(input, context),
        [_A2]: _MINPO,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyInstanceNetworkPerformanceOptionsCommand");
    var se_ModifyInstancePlacementCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyInstancePlacementRequest(input, context),
        [_A2]: _MIP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyInstancePlacementCommand");
    var se_ModifyIpamCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyIpamRequest(input, context),
        [_A2]: _MI,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyIpamCommand");
    var se_ModifyIpamPoolCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyIpamPoolRequest(input, context),
        [_A2]: _MIPo,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyIpamPoolCommand");
    var se_ModifyIpamResourceCidrCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyIpamResourceCidrRequest(input, context),
        [_A2]: _MIRC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyIpamResourceCidrCommand");
    var se_ModifyIpamResourceDiscoveryCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyIpamResourceDiscoveryRequest(input, context),
        [_A2]: _MIRD,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyIpamResourceDiscoveryCommand");
    var se_ModifyIpamScopeCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyIpamScopeRequest(input, context),
        [_A2]: _MIS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyIpamScopeCommand");
    var se_ModifyLaunchTemplateCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyLaunchTemplateRequest(input, context),
        [_A2]: _MLT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyLaunchTemplateCommand");
    var se_ModifyLocalGatewayRouteCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyLocalGatewayRouteRequest(input, context),
        [_A2]: _MLGR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyLocalGatewayRouteCommand");
    var se_ModifyManagedPrefixListCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyManagedPrefixListRequest(input, context),
        [_A2]: _MMPL,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyManagedPrefixListCommand");
    var se_ModifyNetworkInterfaceAttributeCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyNetworkInterfaceAttributeRequest(input, context),
        [_A2]: _MNIA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyNetworkInterfaceAttributeCommand");
    var se_ModifyPrivateDnsNameOptionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyPrivateDnsNameOptionsRequest(input, context),
        [_A2]: _MPDNO,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyPrivateDnsNameOptionsCommand");
    var se_ModifyPublicIpDnsNameOptionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyPublicIpDnsNameOptionsRequest(input, context),
        [_A2]: _MPIDNO,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyPublicIpDnsNameOptionsCommand");
    var se_ModifyReservedInstancesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyReservedInstancesRequest(input, context),
        [_A2]: _MRI,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyReservedInstancesCommand");
    var se_ModifyRouteServerCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyRouteServerRequest(input, context),
        [_A2]: _MRS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyRouteServerCommand");
    var se_ModifySecurityGroupRulesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifySecurityGroupRulesRequest(input, context),
        [_A2]: _MSGR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifySecurityGroupRulesCommand");
    var se_ModifySnapshotAttributeCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifySnapshotAttributeRequest(input, context),
        [_A2]: _MSA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifySnapshotAttributeCommand");
    var se_ModifySnapshotTierCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifySnapshotTierRequest(input, context),
        [_A2]: _MST,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifySnapshotTierCommand");
    var se_ModifySpotFleetRequestCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifySpotFleetRequestRequest(input, context),
        [_A2]: _MSFR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifySpotFleetRequestCommand");
    var se_ModifySubnetAttributeCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifySubnetAttributeRequest(input, context),
        [_A2]: _MSAo,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifySubnetAttributeCommand");
    var se_ModifyTrafficMirrorFilterNetworkServicesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyTrafficMirrorFilterNetworkServicesRequest(input, context),
        [_A2]: _MTMFNS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyTrafficMirrorFilterNetworkServicesCommand");
    var se_ModifyTrafficMirrorFilterRuleCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyTrafficMirrorFilterRuleRequest(input, context),
        [_A2]: _MTMFR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyTrafficMirrorFilterRuleCommand");
    var se_ModifyTrafficMirrorSessionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyTrafficMirrorSessionRequest(input, context),
        [_A2]: _MTMS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyTrafficMirrorSessionCommand");
    var se_ModifyTransitGatewayCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyTransitGatewayRequest(input, context),
        [_A2]: _MTG,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyTransitGatewayCommand");
    var se_ModifyTransitGatewayPrefixListReferenceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyTransitGatewayPrefixListReferenceRequest(input, context),
        [_A2]: _MTGPLR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyTransitGatewayPrefixListReferenceCommand");
    var se_ModifyTransitGatewayVpcAttachmentCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyTransitGatewayVpcAttachmentRequest(input, context),
        [_A2]: _MTGVA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyTransitGatewayVpcAttachmentCommand");
    var se_ModifyVerifiedAccessEndpointCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyVerifiedAccessEndpointRequest(input, context),
        [_A2]: _MVAE,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyVerifiedAccessEndpointCommand");
    var se_ModifyVerifiedAccessEndpointPolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyVerifiedAccessEndpointPolicyRequest(input, context),
        [_A2]: _MVAEP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyVerifiedAccessEndpointPolicyCommand");
    var se_ModifyVerifiedAccessGroupCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyVerifiedAccessGroupRequest(input, context),
        [_A2]: _MVAG,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyVerifiedAccessGroupCommand");
    var se_ModifyVerifiedAccessGroupPolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyVerifiedAccessGroupPolicyRequest(input, context),
        [_A2]: _MVAGP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyVerifiedAccessGroupPolicyCommand");
    var se_ModifyVerifiedAccessInstanceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyVerifiedAccessInstanceRequest(input, context),
        [_A2]: _MVAI,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyVerifiedAccessInstanceCommand");
    var se_ModifyVerifiedAccessInstanceLoggingConfigurationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyVerifiedAccessInstanceLoggingConfigurationRequest(input, context),
        [_A2]: _MVAILC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyVerifiedAccessInstanceLoggingConfigurationCommand");
    var se_ModifyVerifiedAccessTrustProviderCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyVerifiedAccessTrustProviderRequest(input, context),
        [_A2]: _MVATP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyVerifiedAccessTrustProviderCommand");
    var se_ModifyVolumeCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyVolumeRequest(input, context),
        [_A2]: _MV,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyVolumeCommand");
    var se_ModifyVolumeAttributeCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyVolumeAttributeRequest(input, context),
        [_A2]: _MVA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyVolumeAttributeCommand");
    var se_ModifyVpcAttributeCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyVpcAttributeRequest(input, context),
        [_A2]: _MVAo,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyVpcAttributeCommand");
    var se_ModifyVpcBlockPublicAccessExclusionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyVpcBlockPublicAccessExclusionRequest(input, context),
        [_A2]: _MVBPAE,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyVpcBlockPublicAccessExclusionCommand");
    var se_ModifyVpcBlockPublicAccessOptionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyVpcBlockPublicAccessOptionsRequest(input, context),
        [_A2]: _MVBPAO,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyVpcBlockPublicAccessOptionsCommand");
    var se_ModifyVpcEndpointCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyVpcEndpointRequest(input, context),
        [_A2]: _MVE,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyVpcEndpointCommand");
    var se_ModifyVpcEndpointConnectionNotificationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyVpcEndpointConnectionNotificationRequest(input, context),
        [_A2]: _MVECN,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyVpcEndpointConnectionNotificationCommand");
    var se_ModifyVpcEndpointServiceConfigurationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyVpcEndpointServiceConfigurationRequest(input, context),
        [_A2]: _MVESC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyVpcEndpointServiceConfigurationCommand");
    var se_ModifyVpcEndpointServicePayerResponsibilityCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyVpcEndpointServicePayerResponsibilityRequest(input, context),
        [_A2]: _MVESPR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyVpcEndpointServicePayerResponsibilityCommand");
    var se_ModifyVpcEndpointServicePermissionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyVpcEndpointServicePermissionsRequest(input, context),
        [_A2]: _MVESP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyVpcEndpointServicePermissionsCommand");
    var se_ModifyVpcPeeringConnectionOptionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyVpcPeeringConnectionOptionsRequest(input, context),
        [_A2]: _MVPCO,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyVpcPeeringConnectionOptionsCommand");
    var se_ModifyVpcTenancyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyVpcTenancyRequest(input, context),
        [_A2]: _MVT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyVpcTenancyCommand");
    var se_ModifyVpnConnectionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyVpnConnectionRequest(input, context),
        [_A2]: _MVC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyVpnConnectionCommand");
    var se_ModifyVpnConnectionOptionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyVpnConnectionOptionsRequest(input, context),
        [_A2]: _MVCO,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyVpnConnectionOptionsCommand");
    var se_ModifyVpnTunnelCertificateCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyVpnTunnelCertificateRequest(input, context),
        [_A2]: _MVTC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyVpnTunnelCertificateCommand");
    var se_ModifyVpnTunnelOptionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyVpnTunnelOptionsRequest(input, context),
        [_A2]: _MVTO,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyVpnTunnelOptionsCommand");
    var se_MonitorInstancesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_MonitorInstancesRequest(input, context),
        [_A2]: _MIo,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_MonitorInstancesCommand");
    var se_MoveAddressToVpcCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_MoveAddressToVpcRequest(input, context),
        [_A2]: _MATV,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_MoveAddressToVpcCommand");
    var se_MoveByoipCidrToIpamCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_MoveByoipCidrToIpamRequest(input, context),
        [_A2]: _MBCTI,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_MoveByoipCidrToIpamCommand");
    var se_MoveCapacityReservationInstancesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_MoveCapacityReservationInstancesRequest(input, context),
        [_A2]: _MCRI,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_MoveCapacityReservationInstancesCommand");
    var se_ProvisionByoipCidrCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ProvisionByoipCidrRequest(input, context),
        [_A2]: _PBC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ProvisionByoipCidrCommand");
    var se_ProvisionIpamByoasnCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ProvisionIpamByoasnRequest(input, context),
        [_A2]: _PIB,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ProvisionIpamByoasnCommand");
    var se_ProvisionIpamPoolCidrCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ProvisionIpamPoolCidrRequest(input, context),
        [_A2]: _PIPC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ProvisionIpamPoolCidrCommand");
    var se_ProvisionPublicIpv4PoolCidrCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ProvisionPublicIpv4PoolCidrRequest(input, context),
        [_A2]: _PPIPC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ProvisionPublicIpv4PoolCidrCommand");
    var se_PurchaseCapacityBlockCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_PurchaseCapacityBlockRequest(input, context),
        [_A2]: _PCB,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_PurchaseCapacityBlockCommand");
    var se_PurchaseCapacityBlockExtensionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_PurchaseCapacityBlockExtensionRequest(input, context),
        [_A2]: _PCBE,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_PurchaseCapacityBlockExtensionCommand");
    var se_PurchaseHostReservationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_PurchaseHostReservationRequest(input, context),
        [_A2]: _PHR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_PurchaseHostReservationCommand");
    var se_PurchaseReservedInstancesOfferingCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_PurchaseReservedInstancesOfferingRequest(input, context),
        [_A2]: _PRIO,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_PurchaseReservedInstancesOfferingCommand");
    var se_PurchaseScheduledInstancesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_PurchaseScheduledInstancesRequest(input, context),
        [_A2]: _PSI,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_PurchaseScheduledInstancesCommand");
    var se_RebootInstancesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_RebootInstancesRequest(input, context),
        [_A2]: _RI,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_RebootInstancesCommand");
    var se_RegisterImageCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_RegisterImageRequest(input, context),
        [_A2]: _RIe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_RegisterImageCommand");
    var se_RegisterInstanceEventNotificationAttributesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_RegisterInstanceEventNotificationAttributesRequest(input, context),
        [_A2]: _RIENA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_RegisterInstanceEventNotificationAttributesCommand");
    var se_RegisterTransitGatewayMulticastGroupMembersCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_RegisterTransitGatewayMulticastGroupMembersRequest(input, context),
        [_A2]: _RTGMGM,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_RegisterTransitGatewayMulticastGroupMembersCommand");
    var se_RegisterTransitGatewayMulticastGroupSourcesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_RegisterTransitGatewayMulticastGroupSourcesRequest(input, context),
        [_A2]: _RTGMGS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_RegisterTransitGatewayMulticastGroupSourcesCommand");
    var se_RejectCapacityReservationBillingOwnershipCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_RejectCapacityReservationBillingOwnershipRequest(input, context),
        [_A2]: _RCRBO,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_RejectCapacityReservationBillingOwnershipCommand");
    var se_RejectTransitGatewayMulticastDomainAssociationsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_RejectTransitGatewayMulticastDomainAssociationsRequest(input, context),
        [_A2]: _RTGMDA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_RejectTransitGatewayMulticastDomainAssociationsCommand");
    var se_RejectTransitGatewayPeeringAttachmentCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_RejectTransitGatewayPeeringAttachmentRequest(input, context),
        [_A2]: _RTGPA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_RejectTransitGatewayPeeringAttachmentCommand");
    var se_RejectTransitGatewayVpcAttachmentCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_RejectTransitGatewayVpcAttachmentRequest(input, context),
        [_A2]: _RTGVA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_RejectTransitGatewayVpcAttachmentCommand");
    var se_RejectVpcEndpointConnectionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_RejectVpcEndpointConnectionsRequest(input, context),
        [_A2]: _RVEC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_RejectVpcEndpointConnectionsCommand");
    var se_RejectVpcPeeringConnectionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_RejectVpcPeeringConnectionRequest(input, context),
        [_A2]: _RVPC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_RejectVpcPeeringConnectionCommand");
    var se_ReleaseAddressCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ReleaseAddressRequest(input, context),
        [_A2]: _RA2,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ReleaseAddressCommand");
    var se_ReleaseHostsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ReleaseHostsRequest(input, context),
        [_A2]: _RH,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ReleaseHostsCommand");
    var se_ReleaseIpamPoolAllocationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ReleaseIpamPoolAllocationRequest(input, context),
        [_A2]: _RIPA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ReleaseIpamPoolAllocationCommand");
    var se_ReplaceIamInstanceProfileAssociationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ReplaceIamInstanceProfileAssociationRequest(input, context),
        [_A2]: _RIIPA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ReplaceIamInstanceProfileAssociationCommand");
    var se_ReplaceImageCriteriaInAllowedImagesSettingsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ReplaceImageCriteriaInAllowedImagesSettingsRequest(input, context),
        [_A2]: _RICIAIS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ReplaceImageCriteriaInAllowedImagesSettingsCommand");
    var se_ReplaceNetworkAclAssociationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ReplaceNetworkAclAssociationRequest(input, context),
        [_A2]: _RNAA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ReplaceNetworkAclAssociationCommand");
    var se_ReplaceNetworkAclEntryCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ReplaceNetworkAclEntryRequest(input, context),
        [_A2]: _RNAE,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ReplaceNetworkAclEntryCommand");
    var se_ReplaceRouteCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ReplaceRouteRequest(input, context),
        [_A2]: _RR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ReplaceRouteCommand");
    var se_ReplaceRouteTableAssociationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ReplaceRouteTableAssociationRequest(input, context),
        [_A2]: _RRTA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ReplaceRouteTableAssociationCommand");
    var se_ReplaceTransitGatewayRouteCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ReplaceTransitGatewayRouteRequest(input, context),
        [_A2]: _RTGR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ReplaceTransitGatewayRouteCommand");
    var se_ReplaceVpnTunnelCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ReplaceVpnTunnelRequest(input, context),
        [_A2]: _RVT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ReplaceVpnTunnelCommand");
    var se_ReportInstanceStatusCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ReportInstanceStatusRequest(input, context),
        [_A2]: _RIS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ReportInstanceStatusCommand");
    var se_RequestSpotFleetCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_RequestSpotFleetRequest(input, context),
        [_A2]: _RSF,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_RequestSpotFleetCommand");
    var se_RequestSpotInstancesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_RequestSpotInstancesRequest(input, context),
        [_A2]: _RSI,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_RequestSpotInstancesCommand");
    var se_ResetAddressAttributeCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ResetAddressAttributeRequest(input, context),
        [_A2]: _RAA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ResetAddressAttributeCommand");
    var se_ResetEbsDefaultKmsKeyIdCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ResetEbsDefaultKmsKeyIdRequest(input, context),
        [_A2]: _REDKKI,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ResetEbsDefaultKmsKeyIdCommand");
    var se_ResetFpgaImageAttributeCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ResetFpgaImageAttributeRequest(input, context),
        [_A2]: _RFIA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ResetFpgaImageAttributeCommand");
    var se_ResetImageAttributeCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ResetImageAttributeRequest(input, context),
        [_A2]: _RIA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ResetImageAttributeCommand");
    var se_ResetInstanceAttributeCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ResetInstanceAttributeRequest(input, context),
        [_A2]: _RIAe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ResetInstanceAttributeCommand");
    var se_ResetNetworkInterfaceAttributeCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ResetNetworkInterfaceAttributeRequest(input, context),
        [_A2]: _RNIA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ResetNetworkInterfaceAttributeCommand");
    var se_ResetSnapshotAttributeCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ResetSnapshotAttributeRequest(input, context),
        [_A2]: _RSA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ResetSnapshotAttributeCommand");
    var se_RestoreAddressToClassicCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_RestoreAddressToClassicRequest(input, context),
        [_A2]: _RATC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_RestoreAddressToClassicCommand");
    var se_RestoreImageFromRecycleBinCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_RestoreImageFromRecycleBinRequest(input, context),
        [_A2]: _RIFRB,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_RestoreImageFromRecycleBinCommand");
    var se_RestoreManagedPrefixListVersionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_RestoreManagedPrefixListVersionRequest(input, context),
        [_A2]: _RMPLV,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_RestoreManagedPrefixListVersionCommand");
    var se_RestoreSnapshotFromRecycleBinCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_RestoreSnapshotFromRecycleBinRequest(input, context),
        [_A2]: _RSFRB,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_RestoreSnapshotFromRecycleBinCommand");
    var se_RestoreSnapshotTierCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_RestoreSnapshotTierRequest(input, context),
        [_A2]: _RST,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_RestoreSnapshotTierCommand");
    var se_RevokeClientVpnIngressCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_RevokeClientVpnIngressRequest(input, context),
        [_A2]: _RCVI,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_RevokeClientVpnIngressCommand");
    var se_RevokeSecurityGroupEgressCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_RevokeSecurityGroupEgressRequest(input, context),
        [_A2]: _RSGE,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_RevokeSecurityGroupEgressCommand");
    var se_RevokeSecurityGroupIngressCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_RevokeSecurityGroupIngressRequest(input, context),
        [_A2]: _RSGI,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_RevokeSecurityGroupIngressCommand");
    var se_RunInstancesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_RunInstancesRequest(input, context),
        [_A2]: _RIu,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_RunInstancesCommand");
    var se_RunScheduledInstancesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_RunScheduledInstancesRequest(input, context),
        [_A2]: _RSIu,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_RunScheduledInstancesCommand");
    var se_SearchLocalGatewayRoutesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_SearchLocalGatewayRoutesRequest(input, context),
        [_A2]: _SLGR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_SearchLocalGatewayRoutesCommand");
    var se_SearchTransitGatewayMulticastGroupsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_SearchTransitGatewayMulticastGroupsRequest(input, context),
        [_A2]: _STGMG,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_SearchTransitGatewayMulticastGroupsCommand");
    var se_SearchTransitGatewayRoutesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_SearchTransitGatewayRoutesRequest(input, context),
        [_A2]: _STGR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_SearchTransitGatewayRoutesCommand");
    var se_SendDiagnosticInterruptCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_SendDiagnosticInterruptRequest(input, context),
        [_A2]: _SDI,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_SendDiagnosticInterruptCommand");
    var se_StartDeclarativePoliciesReportCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_StartDeclarativePoliciesReportRequest(input, context),
        [_A2]: _SDPR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_StartDeclarativePoliciesReportCommand");
    var se_StartInstancesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_StartInstancesRequest(input, context),
        [_A2]: _SI2,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_StartInstancesCommand");
    var se_StartNetworkInsightsAccessScopeAnalysisCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_StartNetworkInsightsAccessScopeAnalysisRequest(input, context),
        [_A2]: _SNIASA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_StartNetworkInsightsAccessScopeAnalysisCommand");
    var se_StartNetworkInsightsAnalysisCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_StartNetworkInsightsAnalysisRequest(input, context),
        [_A2]: _SNIA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_StartNetworkInsightsAnalysisCommand");
    var se_StartVpcEndpointServicePrivateDnsVerificationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_StartVpcEndpointServicePrivateDnsVerificationRequest(input, context),
        [_A2]: _SVESPDV,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_StartVpcEndpointServicePrivateDnsVerificationCommand");
    var se_StopInstancesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_StopInstancesRequest(input, context),
        [_A2]: _SIt,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_StopInstancesCommand");
    var se_TerminateClientVpnConnectionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_TerminateClientVpnConnectionsRequest(input, context),
        [_A2]: _TCVC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_TerminateClientVpnConnectionsCommand");
    var se_TerminateInstancesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_TerminateInstancesRequest(input, context),
        [_A2]: _TI,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_TerminateInstancesCommand");
    var se_UnassignIpv6AddressesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_UnassignIpv6AddressesRequest(input, context),
        [_A2]: _UIA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UnassignIpv6AddressesCommand");
    var se_UnassignPrivateIpAddressesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_UnassignPrivateIpAddressesRequest(input, context),
        [_A2]: _UPIA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UnassignPrivateIpAddressesCommand");
    var se_UnassignPrivateNatGatewayAddressCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_UnassignPrivateNatGatewayAddressRequest(input, context),
        [_A2]: _UPNGA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UnassignPrivateNatGatewayAddressCommand");
    var se_UnlockSnapshotCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_UnlockSnapshotRequest(input, context),
        [_A2]: _US,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UnlockSnapshotCommand");
    var se_UnmonitorInstancesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_UnmonitorInstancesRequest(input, context),
        [_A2]: _UI,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UnmonitorInstancesCommand");
    var se_UpdateSecurityGroupRuleDescriptionsEgressCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_UpdateSecurityGroupRuleDescriptionsEgressRequest(input, context),
        [_A2]: _USGRDE,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateSecurityGroupRuleDescriptionsEgressCommand");
    var se_UpdateSecurityGroupRuleDescriptionsIngressCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_UpdateSecurityGroupRuleDescriptionsIngressRequest(input, context),
        [_A2]: _USGRDI,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateSecurityGroupRuleDescriptionsIngressCommand");
    var se_WithdrawByoipCidrCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_WithdrawByoipCidrRequest(input, context),
        [_A2]: _WBC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_WithdrawByoipCidrCommand");
    var de_AcceptAddressTransferCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_AcceptAddressTransferResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_AcceptAddressTransferCommand");
    var de_AcceptCapacityReservationBillingOwnershipCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_AcceptCapacityReservationBillingOwnershipResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_AcceptCapacityReservationBillingOwnershipCommand");
    var de_AcceptReservedInstancesExchangeQuoteCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_AcceptReservedInstancesExchangeQuoteResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_AcceptReservedInstancesExchangeQuoteCommand");
    var de_AcceptTransitGatewayMulticastDomainAssociationsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_AcceptTransitGatewayMulticastDomainAssociationsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_AcceptTransitGatewayMulticastDomainAssociationsCommand");
    var de_AcceptTransitGatewayPeeringAttachmentCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_AcceptTransitGatewayPeeringAttachmentResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_AcceptTransitGatewayPeeringAttachmentCommand");
    var de_AcceptTransitGatewayVpcAttachmentCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_AcceptTransitGatewayVpcAttachmentResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_AcceptTransitGatewayVpcAttachmentCommand");
    var de_AcceptVpcEndpointConnectionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_AcceptVpcEndpointConnectionsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_AcceptVpcEndpointConnectionsCommand");
    var de_AcceptVpcPeeringConnectionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_AcceptVpcPeeringConnectionResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_AcceptVpcPeeringConnectionCommand");
    var de_AdvertiseByoipCidrCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_AdvertiseByoipCidrResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_AdvertiseByoipCidrCommand");
    var de_AllocateAddressCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_AllocateAddressResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_AllocateAddressCommand");
    var de_AllocateHostsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_AllocateHostsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_AllocateHostsCommand");
    var de_AllocateIpamPoolCidrCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_AllocateIpamPoolCidrResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_AllocateIpamPoolCidrCommand");
    var de_ApplySecurityGroupsToClientVpnTargetNetworkCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ApplySecurityGroupsToClientVpnTargetNetworkResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ApplySecurityGroupsToClientVpnTargetNetworkCommand");
    var de_AssignIpv6AddressesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_AssignIpv6AddressesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_AssignIpv6AddressesCommand");
    var de_AssignPrivateIpAddressesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_AssignPrivateIpAddressesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_AssignPrivateIpAddressesCommand");
    var de_AssignPrivateNatGatewayAddressCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_AssignPrivateNatGatewayAddressResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_AssignPrivateNatGatewayAddressCommand");
    var de_AssociateAddressCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_AssociateAddressResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_AssociateAddressCommand");
    var de_AssociateCapacityReservationBillingOwnerCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_AssociateCapacityReservationBillingOwnerResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_AssociateCapacityReservationBillingOwnerCommand");
    var de_AssociateClientVpnTargetNetworkCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_AssociateClientVpnTargetNetworkResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_AssociateClientVpnTargetNetworkCommand");
    var de_AssociateDhcpOptionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_AssociateDhcpOptionsCommand");
    var de_AssociateEnclaveCertificateIamRoleCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_AssociateEnclaveCertificateIamRoleResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_AssociateEnclaveCertificateIamRoleCommand");
    var de_AssociateIamInstanceProfileCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_AssociateIamInstanceProfileResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_AssociateIamInstanceProfileCommand");
    var de_AssociateInstanceEventWindowCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_AssociateInstanceEventWindowResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_AssociateInstanceEventWindowCommand");
    var de_AssociateIpamByoasnCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_AssociateIpamByoasnResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_AssociateIpamByoasnCommand");
    var de_AssociateIpamResourceDiscoveryCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_AssociateIpamResourceDiscoveryResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_AssociateIpamResourceDiscoveryCommand");
    var de_AssociateNatGatewayAddressCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_AssociateNatGatewayAddressResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_AssociateNatGatewayAddressCommand");
    var de_AssociateRouteServerCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_AssociateRouteServerResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_AssociateRouteServerCommand");
    var de_AssociateRouteTableCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_AssociateRouteTableResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_AssociateRouteTableCommand");
    var de_AssociateSecurityGroupVpcCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_AssociateSecurityGroupVpcResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_AssociateSecurityGroupVpcCommand");
    var de_AssociateSubnetCidrBlockCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_AssociateSubnetCidrBlockResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_AssociateSubnetCidrBlockCommand");
    var de_AssociateTransitGatewayMulticastDomainCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_AssociateTransitGatewayMulticastDomainResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_AssociateTransitGatewayMulticastDomainCommand");
    var de_AssociateTransitGatewayPolicyTableCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_AssociateTransitGatewayPolicyTableResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_AssociateTransitGatewayPolicyTableCommand");
    var de_AssociateTransitGatewayRouteTableCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_AssociateTransitGatewayRouteTableResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_AssociateTransitGatewayRouteTableCommand");
    var de_AssociateTrunkInterfaceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_AssociateTrunkInterfaceResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_AssociateTrunkInterfaceCommand");
    var de_AssociateVpcCidrBlockCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_AssociateVpcCidrBlockResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_AssociateVpcCidrBlockCommand");
    var de_AttachClassicLinkVpcCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_AttachClassicLinkVpcResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_AttachClassicLinkVpcCommand");
    var de_AttachInternetGatewayCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_AttachInternetGatewayCommand");
    var de_AttachNetworkInterfaceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_AttachNetworkInterfaceResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_AttachNetworkInterfaceCommand");
    var de_AttachVerifiedAccessTrustProviderCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_AttachVerifiedAccessTrustProviderResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_AttachVerifiedAccessTrustProviderCommand");
    var de_AttachVolumeCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_VolumeAttachment(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_AttachVolumeCommand");
    var de_AttachVpnGatewayCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_AttachVpnGatewayResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_AttachVpnGatewayCommand");
    var de_AuthorizeClientVpnIngressCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_AuthorizeClientVpnIngressResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_AuthorizeClientVpnIngressCommand");
    var de_AuthorizeSecurityGroupEgressCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_AuthorizeSecurityGroupEgressResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_AuthorizeSecurityGroupEgressCommand");
    var de_AuthorizeSecurityGroupIngressCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_AuthorizeSecurityGroupIngressResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_AuthorizeSecurityGroupIngressCommand");
    var de_BundleInstanceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_BundleInstanceResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_BundleInstanceCommand");
    var de_CancelBundleTaskCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CancelBundleTaskResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CancelBundleTaskCommand");
    var de_CancelCapacityReservationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CancelCapacityReservationResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CancelCapacityReservationCommand");
    var de_CancelCapacityReservationFleetsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CancelCapacityReservationFleetsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CancelCapacityReservationFleetsCommand");
    var de_CancelConversionTaskCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_CancelConversionTaskCommand");
    var de_CancelDeclarativePoliciesReportCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CancelDeclarativePoliciesReportResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CancelDeclarativePoliciesReportCommand");
    var de_CancelExportTaskCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_CancelExportTaskCommand");
    var de_CancelImageLaunchPermissionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CancelImageLaunchPermissionResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CancelImageLaunchPermissionCommand");
    var de_CancelImportTaskCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CancelImportTaskResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CancelImportTaskCommand");
    var de_CancelReservedInstancesListingCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CancelReservedInstancesListingResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CancelReservedInstancesListingCommand");
    var de_CancelSpotFleetRequestsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CancelSpotFleetRequestsResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CancelSpotFleetRequestsCommand");
    var de_CancelSpotInstanceRequestsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CancelSpotInstanceRequestsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CancelSpotInstanceRequestsCommand");
    var de_ConfirmProductInstanceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ConfirmProductInstanceResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ConfirmProductInstanceCommand");
    var de_CopyFpgaImageCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CopyFpgaImageResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CopyFpgaImageCommand");
    var de_CopyImageCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CopyImageResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CopyImageCommand");
    var de_CopySnapshotCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CopySnapshotResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CopySnapshotCommand");
    var de_CreateCapacityReservationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateCapacityReservationResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateCapacityReservationCommand");
    var de_CreateCapacityReservationBySplittingCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateCapacityReservationBySplittingResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateCapacityReservationBySplittingCommand");
    var de_CreateCapacityReservationFleetCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateCapacityReservationFleetResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateCapacityReservationFleetCommand");
    var de_CreateCarrierGatewayCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateCarrierGatewayResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateCarrierGatewayCommand");
    var de_CreateClientVpnEndpointCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateClientVpnEndpointResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateClientVpnEndpointCommand");
    var de_CreateClientVpnRouteCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateClientVpnRouteResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateClientVpnRouteCommand");
    var de_CreateCoipCidrCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateCoipCidrResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateCoipCidrCommand");
    var de_CreateCoipPoolCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateCoipPoolResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateCoipPoolCommand");
    var de_CreateCustomerGatewayCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateCustomerGatewayResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateCustomerGatewayCommand");
    var de_CreateDefaultSubnetCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateDefaultSubnetResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateDefaultSubnetCommand");
    var de_CreateDefaultVpcCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateDefaultVpcResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateDefaultVpcCommand");
    var de_CreateDelegateMacVolumeOwnershipTaskCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateDelegateMacVolumeOwnershipTaskResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateDelegateMacVolumeOwnershipTaskCommand");
    var de_CreateDhcpOptionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateDhcpOptionsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateDhcpOptionsCommand");
    var de_CreateEgressOnlyInternetGatewayCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateEgressOnlyInternetGatewayResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateEgressOnlyInternetGatewayCommand");
    var de_CreateFleetCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateFleetResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateFleetCommand");
    var de_CreateFlowLogsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateFlowLogsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateFlowLogsCommand");
    var de_CreateFpgaImageCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateFpgaImageResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateFpgaImageCommand");
    var de_CreateImageCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateImageResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateImageCommand");
    var de_CreateImageUsageReportCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateImageUsageReportResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateImageUsageReportCommand");
    var de_CreateInstanceConnectEndpointCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateInstanceConnectEndpointResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateInstanceConnectEndpointCommand");
    var de_CreateInstanceEventWindowCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateInstanceEventWindowResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateInstanceEventWindowCommand");
    var de_CreateInstanceExportTaskCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateInstanceExportTaskResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateInstanceExportTaskCommand");
    var de_CreateInternetGatewayCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateInternetGatewayResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateInternetGatewayCommand");
    var de_CreateIpamCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateIpamResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateIpamCommand");
    var de_CreateIpamExternalResourceVerificationTokenCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateIpamExternalResourceVerificationTokenResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateIpamExternalResourceVerificationTokenCommand");
    var de_CreateIpamPoolCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateIpamPoolResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateIpamPoolCommand");
    var de_CreateIpamResourceDiscoveryCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateIpamResourceDiscoveryResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateIpamResourceDiscoveryCommand");
    var de_CreateIpamScopeCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateIpamScopeResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateIpamScopeCommand");
    var de_CreateKeyPairCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_KeyPair(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateKeyPairCommand");
    var de_CreateLaunchTemplateCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateLaunchTemplateResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateLaunchTemplateCommand");
    var de_CreateLaunchTemplateVersionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateLaunchTemplateVersionResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateLaunchTemplateVersionCommand");
    var de_CreateLocalGatewayRouteCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateLocalGatewayRouteResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateLocalGatewayRouteCommand");
    var de_CreateLocalGatewayRouteTableCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateLocalGatewayRouteTableResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateLocalGatewayRouteTableCommand");
    var de_CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationCommand");
    var de_CreateLocalGatewayRouteTableVpcAssociationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateLocalGatewayRouteTableVpcAssociationResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateLocalGatewayRouteTableVpcAssociationCommand");
    var de_CreateLocalGatewayVirtualInterfaceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateLocalGatewayVirtualInterfaceResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateLocalGatewayVirtualInterfaceCommand");
    var de_CreateLocalGatewayVirtualInterfaceGroupCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateLocalGatewayVirtualInterfaceGroupResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateLocalGatewayVirtualInterfaceGroupCommand");
    var de_CreateMacSystemIntegrityProtectionModificationTaskCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateMacSystemIntegrityProtectionModificationTaskResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateMacSystemIntegrityProtectionModificationTaskCommand");
    var de_CreateManagedPrefixListCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateManagedPrefixListResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateManagedPrefixListCommand");
    var de_CreateNatGatewayCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateNatGatewayResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateNatGatewayCommand");
    var de_CreateNetworkAclCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateNetworkAclResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateNetworkAclCommand");
    var de_CreateNetworkAclEntryCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_CreateNetworkAclEntryCommand");
    var de_CreateNetworkInsightsAccessScopeCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateNetworkInsightsAccessScopeResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateNetworkInsightsAccessScopeCommand");
    var de_CreateNetworkInsightsPathCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateNetworkInsightsPathResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateNetworkInsightsPathCommand");
    var de_CreateNetworkInterfaceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateNetworkInterfaceResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateNetworkInterfaceCommand");
    var de_CreateNetworkInterfacePermissionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateNetworkInterfacePermissionResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateNetworkInterfacePermissionCommand");
    var de_CreatePlacementGroupCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreatePlacementGroupResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreatePlacementGroupCommand");
    var de_CreatePublicIpv4PoolCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreatePublicIpv4PoolResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreatePublicIpv4PoolCommand");
    var de_CreateReplaceRootVolumeTaskCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateReplaceRootVolumeTaskResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateReplaceRootVolumeTaskCommand");
    var de_CreateReservedInstancesListingCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateReservedInstancesListingResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateReservedInstancesListingCommand");
    var de_CreateRestoreImageTaskCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateRestoreImageTaskResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateRestoreImageTaskCommand");
    var de_CreateRouteCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateRouteResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateRouteCommand");
    var de_CreateRouteServerCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateRouteServerResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateRouteServerCommand");
    var de_CreateRouteServerEndpointCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateRouteServerEndpointResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateRouteServerEndpointCommand");
    var de_CreateRouteServerPeerCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateRouteServerPeerResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateRouteServerPeerCommand");
    var de_CreateRouteTableCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateRouteTableResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateRouteTableCommand");
    var de_CreateSecurityGroupCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateSecurityGroupResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateSecurityGroupCommand");
    var de_CreateSnapshotCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_Snapshot(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateSnapshotCommand");
    var de_CreateSnapshotsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateSnapshotsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateSnapshotsCommand");
    var de_CreateSpotDatafeedSubscriptionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateSpotDatafeedSubscriptionResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateSpotDatafeedSubscriptionCommand");
    var de_CreateStoreImageTaskCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateStoreImageTaskResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateStoreImageTaskCommand");
    var de_CreateSubnetCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateSubnetResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateSubnetCommand");
    var de_CreateSubnetCidrReservationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateSubnetCidrReservationResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateSubnetCidrReservationCommand");
    var de_CreateTagsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_CreateTagsCommand");
    var de_CreateTrafficMirrorFilterCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateTrafficMirrorFilterResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateTrafficMirrorFilterCommand");
    var de_CreateTrafficMirrorFilterRuleCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateTrafficMirrorFilterRuleResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateTrafficMirrorFilterRuleCommand");
    var de_CreateTrafficMirrorSessionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateTrafficMirrorSessionResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateTrafficMirrorSessionCommand");
    var de_CreateTrafficMirrorTargetCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateTrafficMirrorTargetResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateTrafficMirrorTargetCommand");
    var de_CreateTransitGatewayCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateTransitGatewayResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateTransitGatewayCommand");
    var de_CreateTransitGatewayConnectCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateTransitGatewayConnectResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateTransitGatewayConnectCommand");
    var de_CreateTransitGatewayConnectPeerCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateTransitGatewayConnectPeerResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateTransitGatewayConnectPeerCommand");
    var de_CreateTransitGatewayMulticastDomainCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateTransitGatewayMulticastDomainResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateTransitGatewayMulticastDomainCommand");
    var de_CreateTransitGatewayPeeringAttachmentCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateTransitGatewayPeeringAttachmentResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateTransitGatewayPeeringAttachmentCommand");
    var de_CreateTransitGatewayPolicyTableCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateTransitGatewayPolicyTableResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateTransitGatewayPolicyTableCommand");
    var de_CreateTransitGatewayPrefixListReferenceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateTransitGatewayPrefixListReferenceResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateTransitGatewayPrefixListReferenceCommand");
    var de_CreateTransitGatewayRouteCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateTransitGatewayRouteResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateTransitGatewayRouteCommand");
    var de_CreateTransitGatewayRouteTableCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateTransitGatewayRouteTableResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateTransitGatewayRouteTableCommand");
    var de_CreateTransitGatewayRouteTableAnnouncementCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateTransitGatewayRouteTableAnnouncementResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateTransitGatewayRouteTableAnnouncementCommand");
    var de_CreateTransitGatewayVpcAttachmentCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateTransitGatewayVpcAttachmentResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateTransitGatewayVpcAttachmentCommand");
    var de_CreateVerifiedAccessEndpointCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateVerifiedAccessEndpointResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateVerifiedAccessEndpointCommand");
    var de_CreateVerifiedAccessGroupCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateVerifiedAccessGroupResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateVerifiedAccessGroupCommand");
    var de_CreateVerifiedAccessInstanceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateVerifiedAccessInstanceResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateVerifiedAccessInstanceCommand");
    var de_CreateVerifiedAccessTrustProviderCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateVerifiedAccessTrustProviderResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateVerifiedAccessTrustProviderCommand");
    var de_CreateVolumeCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_Volume(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateVolumeCommand");
    var de_CreateVpcCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateVpcResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateVpcCommand");
    var de_CreateVpcBlockPublicAccessExclusionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateVpcBlockPublicAccessExclusionResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateVpcBlockPublicAccessExclusionCommand");
    var de_CreateVpcEndpointCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateVpcEndpointResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateVpcEndpointCommand");
    var de_CreateVpcEndpointConnectionNotificationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateVpcEndpointConnectionNotificationResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateVpcEndpointConnectionNotificationCommand");
    var de_CreateVpcEndpointServiceConfigurationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateVpcEndpointServiceConfigurationResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateVpcEndpointServiceConfigurationCommand");
    var de_CreateVpcPeeringConnectionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateVpcPeeringConnectionResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateVpcPeeringConnectionCommand");
    var de_CreateVpnConnectionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateVpnConnectionResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateVpnConnectionCommand");
    var de_CreateVpnConnectionRouteCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_CreateVpnConnectionRouteCommand");
    var de_CreateVpnGatewayCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateVpnGatewayResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateVpnGatewayCommand");
    var de_DeleteCarrierGatewayCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteCarrierGatewayResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteCarrierGatewayCommand");
    var de_DeleteClientVpnEndpointCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteClientVpnEndpointResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteClientVpnEndpointCommand");
    var de_DeleteClientVpnRouteCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteClientVpnRouteResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteClientVpnRouteCommand");
    var de_DeleteCoipCidrCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteCoipCidrResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteCoipCidrCommand");
    var de_DeleteCoipPoolCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteCoipPoolResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteCoipPoolCommand");
    var de_DeleteCustomerGatewayCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeleteCustomerGatewayCommand");
    var de_DeleteDhcpOptionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeleteDhcpOptionsCommand");
    var de_DeleteEgressOnlyInternetGatewayCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteEgressOnlyInternetGatewayResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteEgressOnlyInternetGatewayCommand");
    var de_DeleteFleetsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteFleetsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteFleetsCommand");
    var de_DeleteFlowLogsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteFlowLogsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteFlowLogsCommand");
    var de_DeleteFpgaImageCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteFpgaImageResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteFpgaImageCommand");
    var de_DeleteImageUsageReportCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteImageUsageReportResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteImageUsageReportCommand");
    var de_DeleteInstanceConnectEndpointCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteInstanceConnectEndpointResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteInstanceConnectEndpointCommand");
    var de_DeleteInstanceEventWindowCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteInstanceEventWindowResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteInstanceEventWindowCommand");
    var de_DeleteInternetGatewayCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeleteInternetGatewayCommand");
    var de_DeleteIpamCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteIpamResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteIpamCommand");
    var de_DeleteIpamExternalResourceVerificationTokenCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteIpamExternalResourceVerificationTokenResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteIpamExternalResourceVerificationTokenCommand");
    var de_DeleteIpamPoolCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteIpamPoolResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteIpamPoolCommand");
    var de_DeleteIpamResourceDiscoveryCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteIpamResourceDiscoveryResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteIpamResourceDiscoveryCommand");
    var de_DeleteIpamScopeCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteIpamScopeResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteIpamScopeCommand");
    var de_DeleteKeyPairCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteKeyPairResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteKeyPairCommand");
    var de_DeleteLaunchTemplateCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteLaunchTemplateResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteLaunchTemplateCommand");
    var de_DeleteLaunchTemplateVersionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteLaunchTemplateVersionsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteLaunchTemplateVersionsCommand");
    var de_DeleteLocalGatewayRouteCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteLocalGatewayRouteResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteLocalGatewayRouteCommand");
    var de_DeleteLocalGatewayRouteTableCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteLocalGatewayRouteTableResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteLocalGatewayRouteTableCommand");
    var de_DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationCommand");
    var de_DeleteLocalGatewayRouteTableVpcAssociationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteLocalGatewayRouteTableVpcAssociationResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteLocalGatewayRouteTableVpcAssociationCommand");
    var de_DeleteLocalGatewayVirtualInterfaceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteLocalGatewayVirtualInterfaceResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteLocalGatewayVirtualInterfaceCommand");
    var de_DeleteLocalGatewayVirtualInterfaceGroupCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteLocalGatewayVirtualInterfaceGroupResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteLocalGatewayVirtualInterfaceGroupCommand");
    var de_DeleteManagedPrefixListCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteManagedPrefixListResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteManagedPrefixListCommand");
    var de_DeleteNatGatewayCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteNatGatewayResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteNatGatewayCommand");
    var de_DeleteNetworkAclCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeleteNetworkAclCommand");
    var de_DeleteNetworkAclEntryCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeleteNetworkAclEntryCommand");
    var de_DeleteNetworkInsightsAccessScopeCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteNetworkInsightsAccessScopeResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteNetworkInsightsAccessScopeCommand");
    var de_DeleteNetworkInsightsAccessScopeAnalysisCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteNetworkInsightsAccessScopeAnalysisResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteNetworkInsightsAccessScopeAnalysisCommand");
    var de_DeleteNetworkInsightsAnalysisCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteNetworkInsightsAnalysisResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteNetworkInsightsAnalysisCommand");
    var de_DeleteNetworkInsightsPathCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteNetworkInsightsPathResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteNetworkInsightsPathCommand");
    var de_DeleteNetworkInterfaceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeleteNetworkInterfaceCommand");
    var de_DeleteNetworkInterfacePermissionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteNetworkInterfacePermissionResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteNetworkInterfacePermissionCommand");
    var de_DeletePlacementGroupCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeletePlacementGroupCommand");
    var de_DeletePublicIpv4PoolCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeletePublicIpv4PoolResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeletePublicIpv4PoolCommand");
    var de_DeleteQueuedReservedInstancesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteQueuedReservedInstancesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteQueuedReservedInstancesCommand");
    var de_DeleteRouteCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeleteRouteCommand");
    var de_DeleteRouteServerCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteRouteServerResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteRouteServerCommand");
    var de_DeleteRouteServerEndpointCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteRouteServerEndpointResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteRouteServerEndpointCommand");
    var de_DeleteRouteServerPeerCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteRouteServerPeerResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteRouteServerPeerCommand");
    var de_DeleteRouteTableCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeleteRouteTableCommand");
    var de_DeleteSecurityGroupCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteSecurityGroupResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteSecurityGroupCommand");
    var de_DeleteSnapshotCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeleteSnapshotCommand");
    var de_DeleteSpotDatafeedSubscriptionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeleteSpotDatafeedSubscriptionCommand");
    var de_DeleteSubnetCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeleteSubnetCommand");
    var de_DeleteSubnetCidrReservationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteSubnetCidrReservationResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteSubnetCidrReservationCommand");
    var de_DeleteTagsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeleteTagsCommand");
    var de_DeleteTrafficMirrorFilterCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteTrafficMirrorFilterResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteTrafficMirrorFilterCommand");
    var de_DeleteTrafficMirrorFilterRuleCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteTrafficMirrorFilterRuleResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteTrafficMirrorFilterRuleCommand");
    var de_DeleteTrafficMirrorSessionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteTrafficMirrorSessionResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteTrafficMirrorSessionCommand");
    var de_DeleteTrafficMirrorTargetCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteTrafficMirrorTargetResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteTrafficMirrorTargetCommand");
    var de_DeleteTransitGatewayCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteTransitGatewayResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteTransitGatewayCommand");
    var de_DeleteTransitGatewayConnectCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteTransitGatewayConnectResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteTransitGatewayConnectCommand");
    var de_DeleteTransitGatewayConnectPeerCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteTransitGatewayConnectPeerResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteTransitGatewayConnectPeerCommand");
    var de_DeleteTransitGatewayMulticastDomainCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteTransitGatewayMulticastDomainResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteTransitGatewayMulticastDomainCommand");
    var de_DeleteTransitGatewayPeeringAttachmentCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteTransitGatewayPeeringAttachmentResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteTransitGatewayPeeringAttachmentCommand");
    var de_DeleteTransitGatewayPolicyTableCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteTransitGatewayPolicyTableResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteTransitGatewayPolicyTableCommand");
    var de_DeleteTransitGatewayPrefixListReferenceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteTransitGatewayPrefixListReferenceResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteTransitGatewayPrefixListReferenceCommand");
    var de_DeleteTransitGatewayRouteCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteTransitGatewayRouteResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteTransitGatewayRouteCommand");
    var de_DeleteTransitGatewayRouteTableCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteTransitGatewayRouteTableResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteTransitGatewayRouteTableCommand");
    var de_DeleteTransitGatewayRouteTableAnnouncementCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteTransitGatewayRouteTableAnnouncementResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteTransitGatewayRouteTableAnnouncementCommand");
    var de_DeleteTransitGatewayVpcAttachmentCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteTransitGatewayVpcAttachmentResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteTransitGatewayVpcAttachmentCommand");
    var de_DeleteVerifiedAccessEndpointCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteVerifiedAccessEndpointResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteVerifiedAccessEndpointCommand");
    var de_DeleteVerifiedAccessGroupCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteVerifiedAccessGroupResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteVerifiedAccessGroupCommand");
    var de_DeleteVerifiedAccessInstanceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteVerifiedAccessInstanceResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteVerifiedAccessInstanceCommand");
    var de_DeleteVerifiedAccessTrustProviderCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteVerifiedAccessTrustProviderResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteVerifiedAccessTrustProviderCommand");
    var de_DeleteVolumeCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeleteVolumeCommand");
    var de_DeleteVpcCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeleteVpcCommand");
    var de_DeleteVpcBlockPublicAccessExclusionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteVpcBlockPublicAccessExclusionResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteVpcBlockPublicAccessExclusionCommand");
    var de_DeleteVpcEndpointConnectionNotificationsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteVpcEndpointConnectionNotificationsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteVpcEndpointConnectionNotificationsCommand");
    var de_DeleteVpcEndpointsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteVpcEndpointsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteVpcEndpointsCommand");
    var de_DeleteVpcEndpointServiceConfigurationsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteVpcEndpointServiceConfigurationsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteVpcEndpointServiceConfigurationsCommand");
    var de_DeleteVpcPeeringConnectionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteVpcPeeringConnectionResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteVpcPeeringConnectionCommand");
    var de_DeleteVpnConnectionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeleteVpnConnectionCommand");
    var de_DeleteVpnConnectionRouteCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeleteVpnConnectionRouteCommand");
    var de_DeleteVpnGatewayCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeleteVpnGatewayCommand");
    var de_DeprovisionByoipCidrCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeprovisionByoipCidrResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeprovisionByoipCidrCommand");
    var de_DeprovisionIpamByoasnCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeprovisionIpamByoasnResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeprovisionIpamByoasnCommand");
    var de_DeprovisionIpamPoolCidrCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeprovisionIpamPoolCidrResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeprovisionIpamPoolCidrCommand");
    var de_DeprovisionPublicIpv4PoolCidrCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeprovisionPublicIpv4PoolCidrResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeprovisionPublicIpv4PoolCidrCommand");
    var de_DeregisterImageCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeregisterImageResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeregisterImageCommand");
    var de_DeregisterInstanceEventNotificationAttributesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeregisterInstanceEventNotificationAttributesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeregisterInstanceEventNotificationAttributesCommand");
    var de_DeregisterTransitGatewayMulticastGroupMembersCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeregisterTransitGatewayMulticastGroupMembersResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeregisterTransitGatewayMulticastGroupMembersCommand");
    var de_DeregisterTransitGatewayMulticastGroupSourcesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeregisterTransitGatewayMulticastGroupSourcesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeregisterTransitGatewayMulticastGroupSourcesCommand");
    var de_DescribeAccountAttributesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeAccountAttributesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeAccountAttributesCommand");
    var de_DescribeAddressesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeAddressesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeAddressesCommand");
    var de_DescribeAddressesAttributeCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeAddressesAttributeResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeAddressesAttributeCommand");
    var de_DescribeAddressTransfersCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeAddressTransfersResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeAddressTransfersCommand");
    var de_DescribeAggregateIdFormatCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeAggregateIdFormatResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeAggregateIdFormatCommand");
    var de_DescribeAvailabilityZonesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeAvailabilityZonesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeAvailabilityZonesCommand");
    var de_DescribeAwsNetworkPerformanceMetricSubscriptionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeAwsNetworkPerformanceMetricSubscriptionsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeAwsNetworkPerformanceMetricSubscriptionsCommand");
    var de_DescribeBundleTasksCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeBundleTasksResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeBundleTasksCommand");
    var de_DescribeByoipCidrsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeByoipCidrsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeByoipCidrsCommand");
    var de_DescribeCapacityBlockExtensionHistoryCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeCapacityBlockExtensionHistoryResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeCapacityBlockExtensionHistoryCommand");
    var de_DescribeCapacityBlockExtensionOfferingsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeCapacityBlockExtensionOfferingsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeCapacityBlockExtensionOfferingsCommand");
    var de_DescribeCapacityBlockOfferingsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeCapacityBlockOfferingsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeCapacityBlockOfferingsCommand");
    var de_DescribeCapacityBlocksCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeCapacityBlocksResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeCapacityBlocksCommand");
    var de_DescribeCapacityBlockStatusCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeCapacityBlockStatusResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeCapacityBlockStatusCommand");
    var de_DescribeCapacityReservationBillingRequestsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeCapacityReservationBillingRequestsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeCapacityReservationBillingRequestsCommand");
    var de_DescribeCapacityReservationFleetsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeCapacityReservationFleetsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeCapacityReservationFleetsCommand");
    var de_DescribeCapacityReservationsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeCapacityReservationsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeCapacityReservationsCommand");
    var de_DescribeCarrierGatewaysCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeCarrierGatewaysResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeCarrierGatewaysCommand");
    var de_DescribeClassicLinkInstancesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeClassicLinkInstancesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeClassicLinkInstancesCommand");
    var de_DescribeClientVpnAuthorizationRulesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeClientVpnAuthorizationRulesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeClientVpnAuthorizationRulesCommand");
    var de_DescribeClientVpnConnectionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeClientVpnConnectionsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeClientVpnConnectionsCommand");
    var de_DescribeClientVpnEndpointsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeClientVpnEndpointsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeClientVpnEndpointsCommand");
    var de_DescribeClientVpnRoutesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeClientVpnRoutesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeClientVpnRoutesCommand");
    var de_DescribeClientVpnTargetNetworksCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeClientVpnTargetNetworksResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeClientVpnTargetNetworksCommand");
    var de_DescribeCoipPoolsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeCoipPoolsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeCoipPoolsCommand");
    var de_DescribeConversionTasksCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeConversionTasksResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeConversionTasksCommand");
    var de_DescribeCustomerGatewaysCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeCustomerGatewaysResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeCustomerGatewaysCommand");
    var de_DescribeDeclarativePoliciesReportsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeDeclarativePoliciesReportsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeDeclarativePoliciesReportsCommand");
    var de_DescribeDhcpOptionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeDhcpOptionsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeDhcpOptionsCommand");
    var de_DescribeEgressOnlyInternetGatewaysCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeEgressOnlyInternetGatewaysResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeEgressOnlyInternetGatewaysCommand");
    var de_DescribeElasticGpusCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeElasticGpusResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeElasticGpusCommand");
    var de_DescribeExportImageTasksCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeExportImageTasksResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeExportImageTasksCommand");
    var de_DescribeExportTasksCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeExportTasksResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeExportTasksCommand");
    var de_DescribeFastLaunchImagesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeFastLaunchImagesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeFastLaunchImagesCommand");
    var de_DescribeFastSnapshotRestoresCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeFastSnapshotRestoresResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeFastSnapshotRestoresCommand");
    var de_DescribeFleetHistoryCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeFleetHistoryResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeFleetHistoryCommand");
    var de_DescribeFleetInstancesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeFleetInstancesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeFleetInstancesCommand");
    var de_DescribeFleetsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeFleetsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeFleetsCommand");
    var de_DescribeFlowLogsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeFlowLogsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeFlowLogsCommand");
    var de_DescribeFpgaImageAttributeCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeFpgaImageAttributeResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeFpgaImageAttributeCommand");
    var de_DescribeFpgaImagesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeFpgaImagesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeFpgaImagesCommand");
    var de_DescribeHostReservationOfferingsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeHostReservationOfferingsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeHostReservationOfferingsCommand");
    var de_DescribeHostReservationsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeHostReservationsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeHostReservationsCommand");
    var de_DescribeHostsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeHostsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeHostsCommand");
    var de_DescribeIamInstanceProfileAssociationsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeIamInstanceProfileAssociationsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeIamInstanceProfileAssociationsCommand");
    var de_DescribeIdentityIdFormatCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeIdentityIdFormatResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeIdentityIdFormatCommand");
    var de_DescribeIdFormatCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeIdFormatResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeIdFormatCommand");
    var de_DescribeImageAttributeCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ImageAttribute(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeImageAttributeCommand");
    var de_DescribeImageReferencesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeImageReferencesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeImageReferencesCommand");
    var de_DescribeImagesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeImagesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeImagesCommand");
    var de_DescribeImageUsageReportEntriesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeImageUsageReportEntriesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeImageUsageReportEntriesCommand");
    var de_DescribeImageUsageReportsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeImageUsageReportsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeImageUsageReportsCommand");
    var de_DescribeImportImageTasksCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeImportImageTasksResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeImportImageTasksCommand");
    var de_DescribeImportSnapshotTasksCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeImportSnapshotTasksResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeImportSnapshotTasksCommand");
    var de_DescribeInstanceAttributeCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_InstanceAttribute(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeInstanceAttributeCommand");
    var de_DescribeInstanceConnectEndpointsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeInstanceConnectEndpointsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeInstanceConnectEndpointsCommand");
    var de_DescribeInstanceCreditSpecificationsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeInstanceCreditSpecificationsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeInstanceCreditSpecificationsCommand");
    var de_DescribeInstanceEventNotificationAttributesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeInstanceEventNotificationAttributesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeInstanceEventNotificationAttributesCommand");
    var de_DescribeInstanceEventWindowsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeInstanceEventWindowsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeInstanceEventWindowsCommand");
    var de_DescribeInstanceImageMetadataCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeInstanceImageMetadataResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeInstanceImageMetadataCommand");
    var de_DescribeInstancesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeInstancesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeInstancesCommand");
    var de_DescribeInstanceStatusCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeInstanceStatusResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeInstanceStatusCommand");
    var de_DescribeInstanceTopologyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeInstanceTopologyResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeInstanceTopologyCommand");
    var de_DescribeInstanceTypeOfferingsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeInstanceTypeOfferingsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeInstanceTypeOfferingsCommand");
    var de_DescribeInstanceTypesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeInstanceTypesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeInstanceTypesCommand");
    var de_DescribeInternetGatewaysCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeInternetGatewaysResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeInternetGatewaysCommand");
    var de_DescribeIpamByoasnCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeIpamByoasnResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeIpamByoasnCommand");
    var de_DescribeIpamExternalResourceVerificationTokensCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeIpamExternalResourceVerificationTokensResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeIpamExternalResourceVerificationTokensCommand");
    var de_DescribeIpamPoolsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeIpamPoolsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeIpamPoolsCommand");
    var de_DescribeIpamResourceDiscoveriesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeIpamResourceDiscoveriesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeIpamResourceDiscoveriesCommand");
    var de_DescribeIpamResourceDiscoveryAssociationsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeIpamResourceDiscoveryAssociationsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeIpamResourceDiscoveryAssociationsCommand");
    var de_DescribeIpamsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeIpamsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeIpamsCommand");
    var de_DescribeIpamScopesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeIpamScopesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeIpamScopesCommand");
    var de_DescribeIpv6PoolsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeIpv6PoolsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeIpv6PoolsCommand");
    var de_DescribeKeyPairsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeKeyPairsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeKeyPairsCommand");
    var de_DescribeLaunchTemplatesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeLaunchTemplatesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeLaunchTemplatesCommand");
    var de_DescribeLaunchTemplateVersionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeLaunchTemplateVersionsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeLaunchTemplateVersionsCommand");
    var de_DescribeLocalGatewayRouteTablesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeLocalGatewayRouteTablesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeLocalGatewayRouteTablesCommand");
    var de_DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsCommand");
    var de_DescribeLocalGatewayRouteTableVpcAssociationsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeLocalGatewayRouteTableVpcAssociationsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeLocalGatewayRouteTableVpcAssociationsCommand");
    var de_DescribeLocalGatewaysCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeLocalGatewaysResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeLocalGatewaysCommand");
    var de_DescribeLocalGatewayVirtualInterfaceGroupsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeLocalGatewayVirtualInterfaceGroupsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeLocalGatewayVirtualInterfaceGroupsCommand");
    var de_DescribeLocalGatewayVirtualInterfacesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeLocalGatewayVirtualInterfacesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeLocalGatewayVirtualInterfacesCommand");
    var de_DescribeLockedSnapshotsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeLockedSnapshotsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeLockedSnapshotsCommand");
    var de_DescribeMacHostsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeMacHostsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeMacHostsCommand");
    var de_DescribeMacModificationTasksCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeMacModificationTasksResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeMacModificationTasksCommand");
    var de_DescribeManagedPrefixListsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeManagedPrefixListsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeManagedPrefixListsCommand");
    var de_DescribeMovingAddressesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeMovingAddressesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeMovingAddressesCommand");
    var de_DescribeNatGatewaysCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeNatGatewaysResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeNatGatewaysCommand");
    var de_DescribeNetworkAclsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeNetworkAclsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeNetworkAclsCommand");
    var de_DescribeNetworkInsightsAccessScopeAnalysesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeNetworkInsightsAccessScopeAnalysesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeNetworkInsightsAccessScopeAnalysesCommand");
    var de_DescribeNetworkInsightsAccessScopesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeNetworkInsightsAccessScopesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeNetworkInsightsAccessScopesCommand");
    var de_DescribeNetworkInsightsAnalysesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeNetworkInsightsAnalysesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeNetworkInsightsAnalysesCommand");
    var de_DescribeNetworkInsightsPathsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeNetworkInsightsPathsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeNetworkInsightsPathsCommand");
    var de_DescribeNetworkInterfaceAttributeCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeNetworkInterfaceAttributeResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeNetworkInterfaceAttributeCommand");
    var de_DescribeNetworkInterfacePermissionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeNetworkInterfacePermissionsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeNetworkInterfacePermissionsCommand");
    var de_DescribeNetworkInterfacesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeNetworkInterfacesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeNetworkInterfacesCommand");
    var de_DescribeOutpostLagsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeOutpostLagsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeOutpostLagsCommand");
    var de_DescribePlacementGroupsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribePlacementGroupsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribePlacementGroupsCommand");
    var de_DescribePrefixListsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribePrefixListsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribePrefixListsCommand");
    var de_DescribePrincipalIdFormatCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribePrincipalIdFormatResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribePrincipalIdFormatCommand");
    var de_DescribePublicIpv4PoolsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribePublicIpv4PoolsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribePublicIpv4PoolsCommand");
    var de_DescribeRegionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeRegionsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeRegionsCommand");
    var de_DescribeReplaceRootVolumeTasksCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeReplaceRootVolumeTasksResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeReplaceRootVolumeTasksCommand");
    var de_DescribeReservedInstancesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeReservedInstancesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeReservedInstancesCommand");
    var de_DescribeReservedInstancesListingsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeReservedInstancesListingsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeReservedInstancesListingsCommand");
    var de_DescribeReservedInstancesModificationsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeReservedInstancesModificationsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeReservedInstancesModificationsCommand");
    var de_DescribeReservedInstancesOfferingsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeReservedInstancesOfferingsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeReservedInstancesOfferingsCommand");
    var de_DescribeRouteServerEndpointsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeRouteServerEndpointsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeRouteServerEndpointsCommand");
    var de_DescribeRouteServerPeersCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeRouteServerPeersResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeRouteServerPeersCommand");
    var de_DescribeRouteServersCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeRouteServersResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeRouteServersCommand");
    var de_DescribeRouteTablesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeRouteTablesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeRouteTablesCommand");
    var de_DescribeScheduledInstanceAvailabilityCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeScheduledInstanceAvailabilityResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeScheduledInstanceAvailabilityCommand");
    var de_DescribeScheduledInstancesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeScheduledInstancesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeScheduledInstancesCommand");
    var de_DescribeSecurityGroupReferencesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeSecurityGroupReferencesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeSecurityGroupReferencesCommand");
    var de_DescribeSecurityGroupRulesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeSecurityGroupRulesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeSecurityGroupRulesCommand");
    var de_DescribeSecurityGroupsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeSecurityGroupsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeSecurityGroupsCommand");
    var de_DescribeSecurityGroupVpcAssociationsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeSecurityGroupVpcAssociationsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeSecurityGroupVpcAssociationsCommand");
    var de_DescribeServiceLinkVirtualInterfacesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeServiceLinkVirtualInterfacesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeServiceLinkVirtualInterfacesCommand");
    var de_DescribeSnapshotAttributeCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeSnapshotAttributeResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeSnapshotAttributeCommand");
    var de_DescribeSnapshotsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeSnapshotsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeSnapshotsCommand");
    var de_DescribeSnapshotTierStatusCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeSnapshotTierStatusResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeSnapshotTierStatusCommand");
    var de_DescribeSpotDatafeedSubscriptionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeSpotDatafeedSubscriptionResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeSpotDatafeedSubscriptionCommand");
    var de_DescribeSpotFleetInstancesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeSpotFleetInstancesResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeSpotFleetInstancesCommand");
    var de_DescribeSpotFleetRequestHistoryCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeSpotFleetRequestHistoryResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeSpotFleetRequestHistoryCommand");
    var de_DescribeSpotFleetRequestsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeSpotFleetRequestsResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeSpotFleetRequestsCommand");
    var de_DescribeSpotInstanceRequestsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeSpotInstanceRequestsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeSpotInstanceRequestsCommand");
    var de_DescribeSpotPriceHistoryCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeSpotPriceHistoryResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeSpotPriceHistoryCommand");
    var de_DescribeStaleSecurityGroupsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeStaleSecurityGroupsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeStaleSecurityGroupsCommand");
    var de_DescribeStoreImageTasksCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeStoreImageTasksResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeStoreImageTasksCommand");
    var de_DescribeSubnetsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeSubnetsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeSubnetsCommand");
    var de_DescribeTagsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeTagsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeTagsCommand");
    var de_DescribeTrafficMirrorFilterRulesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeTrafficMirrorFilterRulesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeTrafficMirrorFilterRulesCommand");
    var de_DescribeTrafficMirrorFiltersCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeTrafficMirrorFiltersResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeTrafficMirrorFiltersCommand");
    var de_DescribeTrafficMirrorSessionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeTrafficMirrorSessionsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeTrafficMirrorSessionsCommand");
    var de_DescribeTrafficMirrorTargetsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeTrafficMirrorTargetsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeTrafficMirrorTargetsCommand");
    var de_DescribeTransitGatewayAttachmentsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeTransitGatewayAttachmentsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeTransitGatewayAttachmentsCommand");
    var de_DescribeTransitGatewayConnectPeersCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeTransitGatewayConnectPeersResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeTransitGatewayConnectPeersCommand");
    var de_DescribeTransitGatewayConnectsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeTransitGatewayConnectsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeTransitGatewayConnectsCommand");
    var de_DescribeTransitGatewayMulticastDomainsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeTransitGatewayMulticastDomainsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeTransitGatewayMulticastDomainsCommand");
    var de_DescribeTransitGatewayPeeringAttachmentsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeTransitGatewayPeeringAttachmentsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeTransitGatewayPeeringAttachmentsCommand");
    var de_DescribeTransitGatewayPolicyTablesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeTransitGatewayPolicyTablesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeTransitGatewayPolicyTablesCommand");
    var de_DescribeTransitGatewayRouteTableAnnouncementsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeTransitGatewayRouteTableAnnouncementsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeTransitGatewayRouteTableAnnouncementsCommand");
    var de_DescribeTransitGatewayRouteTablesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeTransitGatewayRouteTablesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeTransitGatewayRouteTablesCommand");
    var de_DescribeTransitGatewaysCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeTransitGatewaysResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeTransitGatewaysCommand");
    var de_DescribeTransitGatewayVpcAttachmentsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeTransitGatewayVpcAttachmentsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeTransitGatewayVpcAttachmentsCommand");
    var de_DescribeTrunkInterfaceAssociationsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeTrunkInterfaceAssociationsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeTrunkInterfaceAssociationsCommand");
    var de_DescribeVerifiedAccessEndpointsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeVerifiedAccessEndpointsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeVerifiedAccessEndpointsCommand");
    var de_DescribeVerifiedAccessGroupsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeVerifiedAccessGroupsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeVerifiedAccessGroupsCommand");
    var de_DescribeVerifiedAccessInstanceLoggingConfigurationsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeVerifiedAccessInstanceLoggingConfigurationsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeVerifiedAccessInstanceLoggingConfigurationsCommand");
    var de_DescribeVerifiedAccessInstancesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeVerifiedAccessInstancesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeVerifiedAccessInstancesCommand");
    var de_DescribeVerifiedAccessTrustProvidersCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeVerifiedAccessTrustProvidersResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeVerifiedAccessTrustProvidersCommand");
    var de_DescribeVolumeAttributeCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeVolumeAttributeResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeVolumeAttributeCommand");
    var de_DescribeVolumesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeVolumesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeVolumesCommand");
    var de_DescribeVolumesModificationsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeVolumesModificationsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeVolumesModificationsCommand");
    var de_DescribeVolumeStatusCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeVolumeStatusResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeVolumeStatusCommand");
    var de_DescribeVpcAttributeCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeVpcAttributeResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeVpcAttributeCommand");
    var de_DescribeVpcBlockPublicAccessExclusionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeVpcBlockPublicAccessExclusionsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeVpcBlockPublicAccessExclusionsCommand");
    var de_DescribeVpcBlockPublicAccessOptionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeVpcBlockPublicAccessOptionsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeVpcBlockPublicAccessOptionsCommand");
    var de_DescribeVpcClassicLinkCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeVpcClassicLinkResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeVpcClassicLinkCommand");
    var de_DescribeVpcClassicLinkDnsSupportCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeVpcClassicLinkDnsSupportResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeVpcClassicLinkDnsSupportCommand");
    var de_DescribeVpcEndpointAssociationsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeVpcEndpointAssociationsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeVpcEndpointAssociationsCommand");
    var de_DescribeVpcEndpointConnectionNotificationsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeVpcEndpointConnectionNotificationsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeVpcEndpointConnectionNotificationsCommand");
    var de_DescribeVpcEndpointConnectionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeVpcEndpointConnectionsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeVpcEndpointConnectionsCommand");
    var de_DescribeVpcEndpointsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeVpcEndpointsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeVpcEndpointsCommand");
    var de_DescribeVpcEndpointServiceConfigurationsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeVpcEndpointServiceConfigurationsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeVpcEndpointServiceConfigurationsCommand");
    var de_DescribeVpcEndpointServicePermissionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeVpcEndpointServicePermissionsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeVpcEndpointServicePermissionsCommand");
    var de_DescribeVpcEndpointServicesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeVpcEndpointServicesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeVpcEndpointServicesCommand");
    var de_DescribeVpcPeeringConnectionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeVpcPeeringConnectionsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeVpcPeeringConnectionsCommand");
    var de_DescribeVpcsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeVpcsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeVpcsCommand");
    var de_DescribeVpnConnectionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeVpnConnectionsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeVpnConnectionsCommand");
    var de_DescribeVpnGatewaysCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeVpnGatewaysResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeVpnGatewaysCommand");
    var de_DetachClassicLinkVpcCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DetachClassicLinkVpcResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DetachClassicLinkVpcCommand");
    var de_DetachInternetGatewayCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DetachInternetGatewayCommand");
    var de_DetachNetworkInterfaceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DetachNetworkInterfaceCommand");
    var de_DetachVerifiedAccessTrustProviderCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DetachVerifiedAccessTrustProviderResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DetachVerifiedAccessTrustProviderCommand");
    var de_DetachVolumeCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_VolumeAttachment(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DetachVolumeCommand");
    var de_DetachVpnGatewayCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DetachVpnGatewayCommand");
    var de_DisableAddressTransferCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DisableAddressTransferResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DisableAddressTransferCommand");
    var de_DisableAllowedImagesSettingsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DisableAllowedImagesSettingsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DisableAllowedImagesSettingsCommand");
    var de_DisableAwsNetworkPerformanceMetricSubscriptionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DisableAwsNetworkPerformanceMetricSubscriptionResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DisableAwsNetworkPerformanceMetricSubscriptionCommand");
    var de_DisableEbsEncryptionByDefaultCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DisableEbsEncryptionByDefaultResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DisableEbsEncryptionByDefaultCommand");
    var de_DisableFastLaunchCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DisableFastLaunchResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DisableFastLaunchCommand");
    var de_DisableFastSnapshotRestoresCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DisableFastSnapshotRestoresResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DisableFastSnapshotRestoresCommand");
    var de_DisableImageCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DisableImageResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DisableImageCommand");
    var de_DisableImageBlockPublicAccessCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DisableImageBlockPublicAccessResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DisableImageBlockPublicAccessCommand");
    var de_DisableImageDeprecationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DisableImageDeprecationResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DisableImageDeprecationCommand");
    var de_DisableImageDeregistrationProtectionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DisableImageDeregistrationProtectionResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DisableImageDeregistrationProtectionCommand");
    var de_DisableIpamOrganizationAdminAccountCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DisableIpamOrganizationAdminAccountResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DisableIpamOrganizationAdminAccountCommand");
    var de_DisableRouteServerPropagationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DisableRouteServerPropagationResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DisableRouteServerPropagationCommand");
    var de_DisableSerialConsoleAccessCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DisableSerialConsoleAccessResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DisableSerialConsoleAccessCommand");
    var de_DisableSnapshotBlockPublicAccessCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DisableSnapshotBlockPublicAccessResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DisableSnapshotBlockPublicAccessCommand");
    var de_DisableTransitGatewayRouteTablePropagationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DisableTransitGatewayRouteTablePropagationResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DisableTransitGatewayRouteTablePropagationCommand");
    var de_DisableVgwRoutePropagationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DisableVgwRoutePropagationCommand");
    var de_DisableVpcClassicLinkCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DisableVpcClassicLinkResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DisableVpcClassicLinkCommand");
    var de_DisableVpcClassicLinkDnsSupportCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DisableVpcClassicLinkDnsSupportResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DisableVpcClassicLinkDnsSupportCommand");
    var de_DisassociateAddressCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DisassociateAddressCommand");
    var de_DisassociateCapacityReservationBillingOwnerCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DisassociateCapacityReservationBillingOwnerResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DisassociateCapacityReservationBillingOwnerCommand");
    var de_DisassociateClientVpnTargetNetworkCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DisassociateClientVpnTargetNetworkResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DisassociateClientVpnTargetNetworkCommand");
    var de_DisassociateEnclaveCertificateIamRoleCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DisassociateEnclaveCertificateIamRoleResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DisassociateEnclaveCertificateIamRoleCommand");
    var de_DisassociateIamInstanceProfileCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DisassociateIamInstanceProfileResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DisassociateIamInstanceProfileCommand");
    var de_DisassociateInstanceEventWindowCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DisassociateInstanceEventWindowResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DisassociateInstanceEventWindowCommand");
    var de_DisassociateIpamByoasnCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DisassociateIpamByoasnResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DisassociateIpamByoasnCommand");
    var de_DisassociateIpamResourceDiscoveryCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DisassociateIpamResourceDiscoveryResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DisassociateIpamResourceDiscoveryCommand");
    var de_DisassociateNatGatewayAddressCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DisassociateNatGatewayAddressResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DisassociateNatGatewayAddressCommand");
    var de_DisassociateRouteServerCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DisassociateRouteServerResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DisassociateRouteServerCommand");
    var de_DisassociateRouteTableCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DisassociateRouteTableCommand");
    var de_DisassociateSecurityGroupVpcCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DisassociateSecurityGroupVpcResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DisassociateSecurityGroupVpcCommand");
    var de_DisassociateSubnetCidrBlockCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DisassociateSubnetCidrBlockResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DisassociateSubnetCidrBlockCommand");
    var de_DisassociateTransitGatewayMulticastDomainCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DisassociateTransitGatewayMulticastDomainResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DisassociateTransitGatewayMulticastDomainCommand");
    var de_DisassociateTransitGatewayPolicyTableCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DisassociateTransitGatewayPolicyTableResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DisassociateTransitGatewayPolicyTableCommand");
    var de_DisassociateTransitGatewayRouteTableCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DisassociateTransitGatewayRouteTableResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DisassociateTransitGatewayRouteTableCommand");
    var de_DisassociateTrunkInterfaceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DisassociateTrunkInterfaceResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DisassociateTrunkInterfaceCommand");
    var de_DisassociateVpcCidrBlockCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DisassociateVpcCidrBlockResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DisassociateVpcCidrBlockCommand");
    var de_EnableAddressTransferCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_EnableAddressTransferResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_EnableAddressTransferCommand");
    var de_EnableAllowedImagesSettingsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_EnableAllowedImagesSettingsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_EnableAllowedImagesSettingsCommand");
    var de_EnableAwsNetworkPerformanceMetricSubscriptionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_EnableAwsNetworkPerformanceMetricSubscriptionResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_EnableAwsNetworkPerformanceMetricSubscriptionCommand");
    var de_EnableEbsEncryptionByDefaultCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_EnableEbsEncryptionByDefaultResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_EnableEbsEncryptionByDefaultCommand");
    var de_EnableFastLaunchCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_EnableFastLaunchResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_EnableFastLaunchCommand");
    var de_EnableFastSnapshotRestoresCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_EnableFastSnapshotRestoresResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_EnableFastSnapshotRestoresCommand");
    var de_EnableImageCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_EnableImageResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_EnableImageCommand");
    var de_EnableImageBlockPublicAccessCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_EnableImageBlockPublicAccessResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_EnableImageBlockPublicAccessCommand");
    var de_EnableImageDeprecationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_EnableImageDeprecationResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_EnableImageDeprecationCommand");
    var de_EnableImageDeregistrationProtectionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_EnableImageDeregistrationProtectionResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_EnableImageDeregistrationProtectionCommand");
    var de_EnableIpamOrganizationAdminAccountCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_EnableIpamOrganizationAdminAccountResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_EnableIpamOrganizationAdminAccountCommand");
    var de_EnableReachabilityAnalyzerOrganizationSharingCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_EnableReachabilityAnalyzerOrganizationSharingResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_EnableReachabilityAnalyzerOrganizationSharingCommand");
    var de_EnableRouteServerPropagationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_EnableRouteServerPropagationResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_EnableRouteServerPropagationCommand");
    var de_EnableSerialConsoleAccessCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_EnableSerialConsoleAccessResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_EnableSerialConsoleAccessCommand");
    var de_EnableSnapshotBlockPublicAccessCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_EnableSnapshotBlockPublicAccessResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_EnableSnapshotBlockPublicAccessCommand");
    var de_EnableTransitGatewayRouteTablePropagationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_EnableTransitGatewayRouteTablePropagationResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_EnableTransitGatewayRouteTablePropagationCommand");
    var de_EnableVgwRoutePropagationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_EnableVgwRoutePropagationCommand");
    var de_EnableVolumeIOCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_EnableVolumeIOCommand");
    var de_EnableVpcClassicLinkCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_EnableVpcClassicLinkResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_EnableVpcClassicLinkCommand");
    var de_EnableVpcClassicLinkDnsSupportCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_EnableVpcClassicLinkDnsSupportResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_EnableVpcClassicLinkDnsSupportCommand");
    var de_ExportClientVpnClientCertificateRevocationListCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ExportClientVpnClientCertificateRevocationListResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ExportClientVpnClientCertificateRevocationListCommand");
    var de_ExportClientVpnClientConfigurationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ExportClientVpnClientConfigurationResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ExportClientVpnClientConfigurationCommand");
    var de_ExportImageCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ExportImageResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ExportImageCommand");
    var de_ExportTransitGatewayRoutesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ExportTransitGatewayRoutesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ExportTransitGatewayRoutesCommand");
    var de_ExportVerifiedAccessInstanceClientConfigurationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ExportVerifiedAccessInstanceClientConfigurationResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ExportVerifiedAccessInstanceClientConfigurationCommand");
    var de_GetActiveVpnTunnelStatusCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetActiveVpnTunnelStatusResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetActiveVpnTunnelStatusCommand");
    var de_GetAllowedImagesSettingsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetAllowedImagesSettingsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetAllowedImagesSettingsCommand");
    var de_GetAssociatedEnclaveCertificateIamRolesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetAssociatedEnclaveCertificateIamRolesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetAssociatedEnclaveCertificateIamRolesCommand");
    var de_GetAssociatedIpv6PoolCidrsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetAssociatedIpv6PoolCidrsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetAssociatedIpv6PoolCidrsCommand");
    var de_GetAwsNetworkPerformanceDataCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetAwsNetworkPerformanceDataResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetAwsNetworkPerformanceDataCommand");
    var de_GetCapacityReservationUsageCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetCapacityReservationUsageResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetCapacityReservationUsageCommand");
    var de_GetCoipPoolUsageCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetCoipPoolUsageResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetCoipPoolUsageCommand");
    var de_GetConsoleOutputCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetConsoleOutputResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetConsoleOutputCommand");
    var de_GetConsoleScreenshotCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetConsoleScreenshotResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetConsoleScreenshotCommand");
    var de_GetDeclarativePoliciesReportSummaryCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetDeclarativePoliciesReportSummaryResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetDeclarativePoliciesReportSummaryCommand");
    var de_GetDefaultCreditSpecificationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetDefaultCreditSpecificationResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetDefaultCreditSpecificationCommand");
    var de_GetEbsDefaultKmsKeyIdCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetEbsDefaultKmsKeyIdResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetEbsDefaultKmsKeyIdCommand");
    var de_GetEbsEncryptionByDefaultCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetEbsEncryptionByDefaultResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetEbsEncryptionByDefaultCommand");
    var de_GetFlowLogsIntegrationTemplateCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetFlowLogsIntegrationTemplateResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetFlowLogsIntegrationTemplateCommand");
    var de_GetGroupsForCapacityReservationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetGroupsForCapacityReservationResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetGroupsForCapacityReservationCommand");
    var de_GetHostReservationPurchasePreviewCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetHostReservationPurchasePreviewResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetHostReservationPurchasePreviewCommand");
    var de_GetImageBlockPublicAccessStateCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetImageBlockPublicAccessStateResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetImageBlockPublicAccessStateCommand");
    var de_GetInstanceMetadataDefaultsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetInstanceMetadataDefaultsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetInstanceMetadataDefaultsCommand");
    var de_GetInstanceTpmEkPubCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetInstanceTpmEkPubResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetInstanceTpmEkPubCommand");
    var de_GetInstanceTypesFromInstanceRequirementsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetInstanceTypesFromInstanceRequirementsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetInstanceTypesFromInstanceRequirementsCommand");
    var de_GetInstanceUefiDataCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetInstanceUefiDataResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetInstanceUefiDataCommand");
    var de_GetIpamAddressHistoryCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetIpamAddressHistoryResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetIpamAddressHistoryCommand");
    var de_GetIpamDiscoveredAccountsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetIpamDiscoveredAccountsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetIpamDiscoveredAccountsCommand");
    var de_GetIpamDiscoveredPublicAddressesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetIpamDiscoveredPublicAddressesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetIpamDiscoveredPublicAddressesCommand");
    var de_GetIpamDiscoveredResourceCidrsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetIpamDiscoveredResourceCidrsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetIpamDiscoveredResourceCidrsCommand");
    var de_GetIpamPoolAllocationsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetIpamPoolAllocationsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetIpamPoolAllocationsCommand");
    var de_GetIpamPoolCidrsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetIpamPoolCidrsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetIpamPoolCidrsCommand");
    var de_GetIpamResourceCidrsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetIpamResourceCidrsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetIpamResourceCidrsCommand");
    var de_GetLaunchTemplateDataCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetLaunchTemplateDataResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetLaunchTemplateDataCommand");
    var de_GetManagedPrefixListAssociationsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetManagedPrefixListAssociationsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetManagedPrefixListAssociationsCommand");
    var de_GetManagedPrefixListEntriesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetManagedPrefixListEntriesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetManagedPrefixListEntriesCommand");
    var de_GetNetworkInsightsAccessScopeAnalysisFindingsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetNetworkInsightsAccessScopeAnalysisFindingsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetNetworkInsightsAccessScopeAnalysisFindingsCommand");
    var de_GetNetworkInsightsAccessScopeContentCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetNetworkInsightsAccessScopeContentResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetNetworkInsightsAccessScopeContentCommand");
    var de_GetPasswordDataCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetPasswordDataResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetPasswordDataCommand");
    var de_GetReservedInstancesExchangeQuoteCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetReservedInstancesExchangeQuoteResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetReservedInstancesExchangeQuoteCommand");
    var de_GetRouteServerAssociationsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetRouteServerAssociationsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetRouteServerAssociationsCommand");
    var de_GetRouteServerPropagationsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetRouteServerPropagationsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetRouteServerPropagationsCommand");
    var de_GetRouteServerRoutingDatabaseCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetRouteServerRoutingDatabaseResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetRouteServerRoutingDatabaseCommand");
    var de_GetSecurityGroupsForVpcCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetSecurityGroupsForVpcResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetSecurityGroupsForVpcCommand");
    var de_GetSerialConsoleAccessStatusCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetSerialConsoleAccessStatusResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetSerialConsoleAccessStatusCommand");
    var de_GetSnapshotBlockPublicAccessStateCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetSnapshotBlockPublicAccessStateResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetSnapshotBlockPublicAccessStateCommand");
    var de_GetSpotPlacementScoresCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetSpotPlacementScoresResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetSpotPlacementScoresCommand");
    var de_GetSubnetCidrReservationsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetSubnetCidrReservationsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetSubnetCidrReservationsCommand");
    var de_GetTransitGatewayAttachmentPropagationsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetTransitGatewayAttachmentPropagationsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetTransitGatewayAttachmentPropagationsCommand");
    var de_GetTransitGatewayMulticastDomainAssociationsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetTransitGatewayMulticastDomainAssociationsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetTransitGatewayMulticastDomainAssociationsCommand");
    var de_GetTransitGatewayPolicyTableAssociationsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetTransitGatewayPolicyTableAssociationsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetTransitGatewayPolicyTableAssociationsCommand");
    var de_GetTransitGatewayPolicyTableEntriesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetTransitGatewayPolicyTableEntriesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetTransitGatewayPolicyTableEntriesCommand");
    var de_GetTransitGatewayPrefixListReferencesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetTransitGatewayPrefixListReferencesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetTransitGatewayPrefixListReferencesCommand");
    var de_GetTransitGatewayRouteTableAssociationsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetTransitGatewayRouteTableAssociationsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetTransitGatewayRouteTableAssociationsCommand");
    var de_GetTransitGatewayRouteTablePropagationsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetTransitGatewayRouteTablePropagationsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetTransitGatewayRouteTablePropagationsCommand");
    var de_GetVerifiedAccessEndpointPolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetVerifiedAccessEndpointPolicyResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetVerifiedAccessEndpointPolicyCommand");
    var de_GetVerifiedAccessEndpointTargetsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetVerifiedAccessEndpointTargetsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetVerifiedAccessEndpointTargetsCommand");
    var de_GetVerifiedAccessGroupPolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetVerifiedAccessGroupPolicyResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetVerifiedAccessGroupPolicyCommand");
    var de_GetVpnConnectionDeviceSampleConfigurationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetVpnConnectionDeviceSampleConfigurationResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetVpnConnectionDeviceSampleConfigurationCommand");
    var de_GetVpnConnectionDeviceTypesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetVpnConnectionDeviceTypesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetVpnConnectionDeviceTypesCommand");
    var de_GetVpnTunnelReplacementStatusCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetVpnTunnelReplacementStatusResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetVpnTunnelReplacementStatusCommand");
    var de_ImportClientVpnClientCertificateRevocationListCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ImportClientVpnClientCertificateRevocationListResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ImportClientVpnClientCertificateRevocationListCommand");
    var de_ImportImageCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ImportImageResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ImportImageCommand");
    var de_ImportInstanceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ImportInstanceResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ImportInstanceCommand");
    var de_ImportKeyPairCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ImportKeyPairResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ImportKeyPairCommand");
    var de_ImportSnapshotCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ImportSnapshotResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ImportSnapshotCommand");
    var de_ImportVolumeCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ImportVolumeResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ImportVolumeCommand");
    var de_ListImagesInRecycleBinCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListImagesInRecycleBinResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListImagesInRecycleBinCommand");
    var de_ListSnapshotsInRecycleBinCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListSnapshotsInRecycleBinResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListSnapshotsInRecycleBinCommand");
    var de_LockSnapshotCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_LockSnapshotResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_LockSnapshotCommand");
    var de_ModifyAddressAttributeCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyAddressAttributeResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyAddressAttributeCommand");
    var de_ModifyAvailabilityZoneGroupCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyAvailabilityZoneGroupResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyAvailabilityZoneGroupCommand");
    var de_ModifyCapacityReservationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyCapacityReservationResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyCapacityReservationCommand");
    var de_ModifyCapacityReservationFleetCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyCapacityReservationFleetResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyCapacityReservationFleetCommand");
    var de_ModifyClientVpnEndpointCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyClientVpnEndpointResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyClientVpnEndpointCommand");
    var de_ModifyDefaultCreditSpecificationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyDefaultCreditSpecificationResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyDefaultCreditSpecificationCommand");
    var de_ModifyEbsDefaultKmsKeyIdCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyEbsDefaultKmsKeyIdResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyEbsDefaultKmsKeyIdCommand");
    var de_ModifyFleetCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyFleetResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyFleetCommand");
    var de_ModifyFpgaImageAttributeCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyFpgaImageAttributeResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyFpgaImageAttributeCommand");
    var de_ModifyHostsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyHostsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyHostsCommand");
    var de_ModifyIdentityIdFormatCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_ModifyIdentityIdFormatCommand");
    var de_ModifyIdFormatCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_ModifyIdFormatCommand");
    var de_ModifyImageAttributeCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_ModifyImageAttributeCommand");
    var de_ModifyInstanceAttributeCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_ModifyInstanceAttributeCommand");
    var de_ModifyInstanceCapacityReservationAttributesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyInstanceCapacityReservationAttributesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyInstanceCapacityReservationAttributesCommand");
    var de_ModifyInstanceConnectEndpointCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyInstanceConnectEndpointResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyInstanceConnectEndpointCommand");
    var de_ModifyInstanceCpuOptionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyInstanceCpuOptionsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyInstanceCpuOptionsCommand");
    var de_ModifyInstanceCreditSpecificationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyInstanceCreditSpecificationResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyInstanceCreditSpecificationCommand");
    var de_ModifyInstanceEventStartTimeCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyInstanceEventStartTimeResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyInstanceEventStartTimeCommand");
    var de_ModifyInstanceEventWindowCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyInstanceEventWindowResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyInstanceEventWindowCommand");
    var de_ModifyInstanceMaintenanceOptionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyInstanceMaintenanceOptionsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyInstanceMaintenanceOptionsCommand");
    var de_ModifyInstanceMetadataDefaultsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyInstanceMetadataDefaultsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyInstanceMetadataDefaultsCommand");
    var de_ModifyInstanceMetadataOptionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyInstanceMetadataOptionsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyInstanceMetadataOptionsCommand");
    var de_ModifyInstanceNetworkPerformanceOptionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyInstanceNetworkPerformanceResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyInstanceNetworkPerformanceOptionsCommand");
    var de_ModifyInstancePlacementCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyInstancePlacementResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyInstancePlacementCommand");
    var de_ModifyIpamCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyIpamResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyIpamCommand");
    var de_ModifyIpamPoolCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyIpamPoolResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyIpamPoolCommand");
    var de_ModifyIpamResourceCidrCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyIpamResourceCidrResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyIpamResourceCidrCommand");
    var de_ModifyIpamResourceDiscoveryCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyIpamResourceDiscoveryResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyIpamResourceDiscoveryCommand");
    var de_ModifyIpamScopeCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyIpamScopeResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyIpamScopeCommand");
    var de_ModifyLaunchTemplateCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyLaunchTemplateResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyLaunchTemplateCommand");
    var de_ModifyLocalGatewayRouteCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyLocalGatewayRouteResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyLocalGatewayRouteCommand");
    var de_ModifyManagedPrefixListCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyManagedPrefixListResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyManagedPrefixListCommand");
    var de_ModifyNetworkInterfaceAttributeCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_ModifyNetworkInterfaceAttributeCommand");
    var de_ModifyPrivateDnsNameOptionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyPrivateDnsNameOptionsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyPrivateDnsNameOptionsCommand");
    var de_ModifyPublicIpDnsNameOptionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyPublicIpDnsNameOptionsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyPublicIpDnsNameOptionsCommand");
    var de_ModifyReservedInstancesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyReservedInstancesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyReservedInstancesCommand");
    var de_ModifyRouteServerCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyRouteServerResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyRouteServerCommand");
    var de_ModifySecurityGroupRulesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifySecurityGroupRulesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifySecurityGroupRulesCommand");
    var de_ModifySnapshotAttributeCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_ModifySnapshotAttributeCommand");
    var de_ModifySnapshotTierCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifySnapshotTierResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifySnapshotTierCommand");
    var de_ModifySpotFleetRequestCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifySpotFleetRequestResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifySpotFleetRequestCommand");
    var de_ModifySubnetAttributeCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_ModifySubnetAttributeCommand");
    var de_ModifyTrafficMirrorFilterNetworkServicesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyTrafficMirrorFilterNetworkServicesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyTrafficMirrorFilterNetworkServicesCommand");
    var de_ModifyTrafficMirrorFilterRuleCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyTrafficMirrorFilterRuleResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyTrafficMirrorFilterRuleCommand");
    var de_ModifyTrafficMirrorSessionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyTrafficMirrorSessionResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyTrafficMirrorSessionCommand");
    var de_ModifyTransitGatewayCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyTransitGatewayResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyTransitGatewayCommand");
    var de_ModifyTransitGatewayPrefixListReferenceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyTransitGatewayPrefixListReferenceResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyTransitGatewayPrefixListReferenceCommand");
    var de_ModifyTransitGatewayVpcAttachmentCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyTransitGatewayVpcAttachmentResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyTransitGatewayVpcAttachmentCommand");
    var de_ModifyVerifiedAccessEndpointCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyVerifiedAccessEndpointResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyVerifiedAccessEndpointCommand");
    var de_ModifyVerifiedAccessEndpointPolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyVerifiedAccessEndpointPolicyResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyVerifiedAccessEndpointPolicyCommand");
    var de_ModifyVerifiedAccessGroupCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyVerifiedAccessGroupResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyVerifiedAccessGroupCommand");
    var de_ModifyVerifiedAccessGroupPolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyVerifiedAccessGroupPolicyResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyVerifiedAccessGroupPolicyCommand");
    var de_ModifyVerifiedAccessInstanceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyVerifiedAccessInstanceResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyVerifiedAccessInstanceCommand");
    var de_ModifyVerifiedAccessInstanceLoggingConfigurationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyVerifiedAccessInstanceLoggingConfigurationResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyVerifiedAccessInstanceLoggingConfigurationCommand");
    var de_ModifyVerifiedAccessTrustProviderCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyVerifiedAccessTrustProviderResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyVerifiedAccessTrustProviderCommand");
    var de_ModifyVolumeCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyVolumeResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyVolumeCommand");
    var de_ModifyVolumeAttributeCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_ModifyVolumeAttributeCommand");
    var de_ModifyVpcAttributeCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_ModifyVpcAttributeCommand");
    var de_ModifyVpcBlockPublicAccessExclusionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyVpcBlockPublicAccessExclusionResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyVpcBlockPublicAccessExclusionCommand");
    var de_ModifyVpcBlockPublicAccessOptionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyVpcBlockPublicAccessOptionsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyVpcBlockPublicAccessOptionsCommand");
    var de_ModifyVpcEndpointCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyVpcEndpointResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyVpcEndpointCommand");
    var de_ModifyVpcEndpointConnectionNotificationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyVpcEndpointConnectionNotificationResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyVpcEndpointConnectionNotificationCommand");
    var de_ModifyVpcEndpointServiceConfigurationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyVpcEndpointServiceConfigurationResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyVpcEndpointServiceConfigurationCommand");
    var de_ModifyVpcEndpointServicePayerResponsibilityCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyVpcEndpointServicePayerResponsibilityResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyVpcEndpointServicePayerResponsibilityCommand");
    var de_ModifyVpcEndpointServicePermissionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyVpcEndpointServicePermissionsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyVpcEndpointServicePermissionsCommand");
    var de_ModifyVpcPeeringConnectionOptionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyVpcPeeringConnectionOptionsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyVpcPeeringConnectionOptionsCommand");
    var de_ModifyVpcTenancyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyVpcTenancyResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyVpcTenancyCommand");
    var de_ModifyVpnConnectionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyVpnConnectionResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyVpnConnectionCommand");
    var de_ModifyVpnConnectionOptionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyVpnConnectionOptionsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyVpnConnectionOptionsCommand");
    var de_ModifyVpnTunnelCertificateCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyVpnTunnelCertificateResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyVpnTunnelCertificateCommand");
    var de_ModifyVpnTunnelOptionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyVpnTunnelOptionsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyVpnTunnelOptionsCommand");
    var de_MonitorInstancesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_MonitorInstancesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_MonitorInstancesCommand");
    var de_MoveAddressToVpcCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_MoveAddressToVpcResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_MoveAddressToVpcCommand");
    var de_MoveByoipCidrToIpamCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_MoveByoipCidrToIpamResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_MoveByoipCidrToIpamCommand");
    var de_MoveCapacityReservationInstancesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_MoveCapacityReservationInstancesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_MoveCapacityReservationInstancesCommand");
    var de_ProvisionByoipCidrCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ProvisionByoipCidrResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ProvisionByoipCidrCommand");
    var de_ProvisionIpamByoasnCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ProvisionIpamByoasnResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ProvisionIpamByoasnCommand");
    var de_ProvisionIpamPoolCidrCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ProvisionIpamPoolCidrResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ProvisionIpamPoolCidrCommand");
    var de_ProvisionPublicIpv4PoolCidrCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ProvisionPublicIpv4PoolCidrResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ProvisionPublicIpv4PoolCidrCommand");
    var de_PurchaseCapacityBlockCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_PurchaseCapacityBlockResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_PurchaseCapacityBlockCommand");
    var de_PurchaseCapacityBlockExtensionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_PurchaseCapacityBlockExtensionResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_PurchaseCapacityBlockExtensionCommand");
    var de_PurchaseHostReservationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_PurchaseHostReservationResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_PurchaseHostReservationCommand");
    var de_PurchaseReservedInstancesOfferingCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_PurchaseReservedInstancesOfferingResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_PurchaseReservedInstancesOfferingCommand");
    var de_PurchaseScheduledInstancesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_PurchaseScheduledInstancesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_PurchaseScheduledInstancesCommand");
    var de_RebootInstancesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_RebootInstancesCommand");
    var de_RegisterImageCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_RegisterImageResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_RegisterImageCommand");
    var de_RegisterInstanceEventNotificationAttributesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_RegisterInstanceEventNotificationAttributesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_RegisterInstanceEventNotificationAttributesCommand");
    var de_RegisterTransitGatewayMulticastGroupMembersCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_RegisterTransitGatewayMulticastGroupMembersResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_RegisterTransitGatewayMulticastGroupMembersCommand");
    var de_RegisterTransitGatewayMulticastGroupSourcesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_RegisterTransitGatewayMulticastGroupSourcesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_RegisterTransitGatewayMulticastGroupSourcesCommand");
    var de_RejectCapacityReservationBillingOwnershipCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_RejectCapacityReservationBillingOwnershipResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_RejectCapacityReservationBillingOwnershipCommand");
    var de_RejectTransitGatewayMulticastDomainAssociationsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_RejectTransitGatewayMulticastDomainAssociationsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_RejectTransitGatewayMulticastDomainAssociationsCommand");
    var de_RejectTransitGatewayPeeringAttachmentCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_RejectTransitGatewayPeeringAttachmentResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_RejectTransitGatewayPeeringAttachmentCommand");
    var de_RejectTransitGatewayVpcAttachmentCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_RejectTransitGatewayVpcAttachmentResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_RejectTransitGatewayVpcAttachmentCommand");
    var de_RejectVpcEndpointConnectionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_RejectVpcEndpointConnectionsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_RejectVpcEndpointConnectionsCommand");
    var de_RejectVpcPeeringConnectionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_RejectVpcPeeringConnectionResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_RejectVpcPeeringConnectionCommand");
    var de_ReleaseAddressCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_ReleaseAddressCommand");
    var de_ReleaseHostsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ReleaseHostsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ReleaseHostsCommand");
    var de_ReleaseIpamPoolAllocationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ReleaseIpamPoolAllocationResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ReleaseIpamPoolAllocationCommand");
    var de_ReplaceIamInstanceProfileAssociationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ReplaceIamInstanceProfileAssociationResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ReplaceIamInstanceProfileAssociationCommand");
    var de_ReplaceImageCriteriaInAllowedImagesSettingsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ReplaceImageCriteriaInAllowedImagesSettingsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ReplaceImageCriteriaInAllowedImagesSettingsCommand");
    var de_ReplaceNetworkAclAssociationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ReplaceNetworkAclAssociationResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ReplaceNetworkAclAssociationCommand");
    var de_ReplaceNetworkAclEntryCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_ReplaceNetworkAclEntryCommand");
    var de_ReplaceRouteCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_ReplaceRouteCommand");
    var de_ReplaceRouteTableAssociationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ReplaceRouteTableAssociationResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ReplaceRouteTableAssociationCommand");
    var de_ReplaceTransitGatewayRouteCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ReplaceTransitGatewayRouteResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ReplaceTransitGatewayRouteCommand");
    var de_ReplaceVpnTunnelCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ReplaceVpnTunnelResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ReplaceVpnTunnelCommand");
    var de_ReportInstanceStatusCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_ReportInstanceStatusCommand");
    var de_RequestSpotFleetCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_RequestSpotFleetResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_RequestSpotFleetCommand");
    var de_RequestSpotInstancesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_RequestSpotInstancesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_RequestSpotInstancesCommand");
    var de_ResetAddressAttributeCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ResetAddressAttributeResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ResetAddressAttributeCommand");
    var de_ResetEbsDefaultKmsKeyIdCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ResetEbsDefaultKmsKeyIdResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ResetEbsDefaultKmsKeyIdCommand");
    var de_ResetFpgaImageAttributeCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ResetFpgaImageAttributeResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ResetFpgaImageAttributeCommand");
    var de_ResetImageAttributeCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_ResetImageAttributeCommand");
    var de_ResetInstanceAttributeCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_ResetInstanceAttributeCommand");
    var de_ResetNetworkInterfaceAttributeCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_ResetNetworkInterfaceAttributeCommand");
    var de_ResetSnapshotAttributeCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_ResetSnapshotAttributeCommand");
    var de_RestoreAddressToClassicCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_RestoreAddressToClassicResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_RestoreAddressToClassicCommand");
    var de_RestoreImageFromRecycleBinCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_RestoreImageFromRecycleBinResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_RestoreImageFromRecycleBinCommand");
    var de_RestoreManagedPrefixListVersionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_RestoreManagedPrefixListVersionResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_RestoreManagedPrefixListVersionCommand");
    var de_RestoreSnapshotFromRecycleBinCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_RestoreSnapshotFromRecycleBinResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_RestoreSnapshotFromRecycleBinCommand");
    var de_RestoreSnapshotTierCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_RestoreSnapshotTierResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_RestoreSnapshotTierCommand");
    var de_RevokeClientVpnIngressCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_RevokeClientVpnIngressResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_RevokeClientVpnIngressCommand");
    var de_RevokeSecurityGroupEgressCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_RevokeSecurityGroupEgressResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_RevokeSecurityGroupEgressCommand");
    var de_RevokeSecurityGroupIngressCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_RevokeSecurityGroupIngressResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_RevokeSecurityGroupIngressCommand");
    var de_RunInstancesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_Reservation(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_RunInstancesCommand");
    var de_RunScheduledInstancesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_RunScheduledInstancesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_RunScheduledInstancesCommand");
    var de_SearchLocalGatewayRoutesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_SearchLocalGatewayRoutesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_SearchLocalGatewayRoutesCommand");
    var de_SearchTransitGatewayMulticastGroupsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_SearchTransitGatewayMulticastGroupsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_SearchTransitGatewayMulticastGroupsCommand");
    var de_SearchTransitGatewayRoutesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_SearchTransitGatewayRoutesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_SearchTransitGatewayRoutesCommand");
    var de_SendDiagnosticInterruptCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_SendDiagnosticInterruptCommand");
    var de_StartDeclarativePoliciesReportCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_StartDeclarativePoliciesReportResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_StartDeclarativePoliciesReportCommand");
    var de_StartInstancesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_StartInstancesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_StartInstancesCommand");
    var de_StartNetworkInsightsAccessScopeAnalysisCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_StartNetworkInsightsAccessScopeAnalysisResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_StartNetworkInsightsAccessScopeAnalysisCommand");
    var de_StartNetworkInsightsAnalysisCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_StartNetworkInsightsAnalysisResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_StartNetworkInsightsAnalysisCommand");
    var de_StartVpcEndpointServicePrivateDnsVerificationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_StartVpcEndpointServicePrivateDnsVerificationResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_StartVpcEndpointServicePrivateDnsVerificationCommand");
    var de_StopInstancesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_StopInstancesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_StopInstancesCommand");
    var de_TerminateClientVpnConnectionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_TerminateClientVpnConnectionsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_TerminateClientVpnConnectionsCommand");
    var de_TerminateInstancesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_TerminateInstancesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_TerminateInstancesCommand");
    var de_UnassignIpv6AddressesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_UnassignIpv6AddressesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UnassignIpv6AddressesCommand");
    var de_UnassignPrivateIpAddressesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_UnassignPrivateIpAddressesCommand");
    var de_UnassignPrivateNatGatewayAddressCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_UnassignPrivateNatGatewayAddressResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UnassignPrivateNatGatewayAddressCommand");
    var de_UnlockSnapshotCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_UnlockSnapshotResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UnlockSnapshotCommand");
    var de_UnmonitorInstancesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_UnmonitorInstancesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UnmonitorInstancesCommand");
    var de_UpdateSecurityGroupRuleDescriptionsEgressCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_UpdateSecurityGroupRuleDescriptionsEgressResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UpdateSecurityGroupRuleDescriptionsEgressCommand");
    var de_UpdateSecurityGroupRuleDescriptionsIngressCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_UpdateSecurityGroupRuleDescriptionsIngressResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UpdateSecurityGroupRuleDescriptionsIngressCommand");
    var de_WithdrawByoipCidrCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_WithdrawByoipCidrResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_WithdrawByoipCidrCommand");
    var de_CommandError3 = /* @__PURE__ */ __name2(async (output, context) => {
      const parsedOutput = {
        ...output,
        body: await (0, import_core22.parseXmlErrorBody)(output.body, context)
      };
      const errorCode = loadEc2ErrorCode(output, parsedOutput.body);
      const parsedBody = parsedOutput.body;
      return throwDefaultError3({
        output,
        parsedBody: parsedBody.Errors.Error,
        errorCode
      });
    }, "de_CommandError");
    var se_AcceleratorCount = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_M] != null) {
        entries[_M] = input[_M];
      }
      if (input[_Ma] != null) {
        entries[_Ma] = input[_Ma];
      }
      return entries;
    }, "se_AcceleratorCount");
    var se_AcceleratorCountRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_M] != null) {
        entries[_M] = input[_M];
      }
      if (input[_Ma] != null) {
        entries[_Ma] = input[_Ma];
      }
      return entries;
    }, "se_AcceleratorCountRequest");
    var se_AcceleratorManufacturerSet = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_AcceleratorManufacturerSet");
    var se_AcceleratorNameSet = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_AcceleratorNameSet");
    var se_AcceleratorTotalMemoryMiB = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_M] != null) {
        entries[_M] = input[_M];
      }
      if (input[_Ma] != null) {
        entries[_Ma] = input[_Ma];
      }
      return entries;
    }, "se_AcceleratorTotalMemoryMiB");
    var se_AcceleratorTotalMemoryMiBRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_M] != null) {
        entries[_M] = input[_M];
      }
      if (input[_Ma] != null) {
        entries[_Ma] = input[_Ma];
      }
      return entries;
    }, "se_AcceleratorTotalMemoryMiBRequest");
    var se_AcceleratorTypeSet = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_AcceleratorTypeSet");
    var se_AcceptAddressTransferRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Ad] != null) {
        entries[_Ad] = input[_Ad];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_AcceptAddressTransferRequest");
    var se_AcceptCapacityReservationBillingOwnershipRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_CRI] != null) {
        entries[_CRI] = input[_CRI];
      }
      return entries;
    }, "se_AcceptCapacityReservationBillingOwnershipRequest");
    var se_AcceptReservedInstancesExchangeQuoteRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_RII] != null) {
        const memberEntries = se_ReservedInstanceIdSet(input[_RII], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ReservedInstanceId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_TC2] != null) {
        const memberEntries = se_TargetConfigurationRequestSet(input[_TC2], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TargetConfiguration.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_AcceptReservedInstancesExchangeQuoteRequest");
    var se_AcceptTransitGatewayMulticastDomainAssociationsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGMDI] != null) {
        entries[_TGMDI] = input[_TGMDI];
      }
      if (input[_TGAI] != null) {
        entries[_TGAI] = input[_TGAI];
      }
      if (input[_SIu] != null) {
        const memberEntries = se_ValueStringList(input[_SIu], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SubnetIds.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_AcceptTransitGatewayMulticastDomainAssociationsRequest");
    var se_AcceptTransitGatewayPeeringAttachmentRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGAI] != null) {
        entries[_TGAI] = input[_TGAI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_AcceptTransitGatewayPeeringAttachmentRequest");
    var se_AcceptTransitGatewayVpcAttachmentRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGAI] != null) {
        entries[_TGAI] = input[_TGAI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_AcceptTransitGatewayVpcAttachmentRequest");
    var se_AcceptVpcEndpointConnectionsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_SIe] != null) {
        entries[_SIe] = input[_SIe];
      }
      if (input[_VEI] != null) {
        const memberEntries = se_VpcEndpointIdList(input[_VEI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `VpcEndpointId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_AcceptVpcEndpointConnectionsRequest");
    var se_AcceptVpcPeeringConnectionRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_VPCI] != null) {
        entries[_VPCI] = input[_VPCI];
      }
      return entries;
    }, "se_AcceptVpcPeeringConnectionRequest");
    var se_AccessScopePathListRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_AccessScopePathRequest(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Item.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_AccessScopePathListRequest");
    var se_AccessScopePathRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_S] != null) {
        const memberEntries = se_PathStatementRequest(input[_S], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Source.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_D] != null) {
        const memberEntries = se_PathStatementRequest(input[_D], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Destination.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_TR] != null) {
        const memberEntries = se_ThroughResourcesStatementRequestList(input[_TR], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ThroughResource.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_AccessScopePathRequest");
    var se_AccountAttributeNameStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`AttributeName.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_AccountAttributeNameStringList");
    var se_AddIpamOperatingRegion = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RN] != null) {
        entries[_RN] = input[_RN];
      }
      return entries;
    }, "se_AddIpamOperatingRegion");
    var se_AddIpamOperatingRegionSet = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_AddIpamOperatingRegion(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Member.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_AddIpamOperatingRegionSet");
    var se_AddIpamOrganizationalUnitExclusion = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_OEP] != null) {
        entries[_OEP] = input[_OEP];
      }
      return entries;
    }, "se_AddIpamOrganizationalUnitExclusion");
    var se_AddIpamOrganizationalUnitExclusionSet = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_AddIpamOrganizationalUnitExclusion(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Member.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_AddIpamOrganizationalUnitExclusionSet");
    var se_AddPrefixListEntries = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_AddPrefixListEntry(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Member.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_AddPrefixListEntries");
    var se_AddPrefixListEntry = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_C2] != null) {
        entries[_C2] = input[_C2];
      }
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      return entries;
    }, "se_AddPrefixListEntry");
    var se_AdvertiseByoipCidrRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_C2] != null) {
        entries[_C2] = input[_C2];
      }
      if (input[_As] != null) {
        entries[_As] = input[_As];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_NBG] != null) {
        entries[_NBG] = input[_NBG];
      }
      return entries;
    }, "se_AdvertiseByoipCidrRequest");
    var se_AllocateAddressRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Do] != null) {
        entries[_Do] = input[_Do];
      }
      if (input[_Ad] != null) {
        entries[_Ad] = input[_Ad];
      }
      if (input[_PIP] != null) {
        entries[_PIP] = input[_PIP];
      }
      if (input[_NBG] != null) {
        entries[_NBG] = input[_NBG];
      }
      if (input[_COIP] != null) {
        entries[_COIP] = input[_COIP];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_IPI] != null) {
        entries[_IPI] = input[_IPI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_AllocateAddressRequest");
    var se_AllocateHostsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IF] != null) {
        entries[_IF] = input[_IF];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_HR] != null) {
        entries[_HR] = input[_HR];
      }
      if (input[_OA] != null) {
        entries[_OA] = input[_OA];
      }
      if (input[_HM] != null) {
        entries[_HM] = input[_HM];
      }
      if (input[_AI] != null) {
        const memberEntries = se_AssetIdList(input[_AI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AssetId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_AZI] != null) {
        entries[_AZI] = input[_AZI];
      }
      if (input[_AP] != null) {
        entries[_AP] = input[_AP];
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_IT] != null) {
        entries[_IT] = input[_IT];
      }
      if (input[_Q] != null) {
        entries[_Q] = input[_Q];
      }
      if (input[_AZ] != null) {
        entries[_AZ] = input[_AZ];
      }
      return entries;
    }, "se_AllocateHostsRequest");
    var se_AllocateIpamPoolCidrRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_IPI] != null) {
        entries[_IPI] = input[_IPI];
      }
      if (input[_C2] != null) {
        entries[_C2] = input[_C2];
      }
      if (input[_NL] != null) {
        entries[_NL] = input[_NL];
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      if (input[_PNC] != null) {
        entries[_PNC] = input[_PNC];
      }
      if (input[_AC] != null) {
        const memberEntries = se_IpamPoolAllocationAllowedCidrs(input[_AC], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AllowedCidr.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DC] != null) {
        const memberEntries = se_IpamPoolAllocationDisallowedCidrs(input[_DC], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `DisallowedCidr.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_AllocateIpamPoolCidrRequest");
    var se_AllocationIdList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`AllocationId.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_AllocationIdList");
    var se_AllocationIds = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_AllocationIds");
    var se_AllowedInstanceTypeSet = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_AllowedInstanceTypeSet");
    var se_ApplySecurityGroupsToClientVpnTargetNetworkRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CVEI] != null) {
        entries[_CVEI] = input[_CVEI];
      }
      if (input[_VI] != null) {
        entries[_VI] = input[_VI];
      }
      if (input[_SGI] != null) {
        const memberEntries = se_ClientVpnSecurityGroupIdSet(input[_SGI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SecurityGroupId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_ApplySecurityGroupsToClientVpnTargetNetworkRequest");
    var se_ArchitectureTypeSet = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_ArchitectureTypeSet");
    var se_ArnList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_ArnList");
    var se_AsnAuthorizationContext = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Me] != null) {
        entries[_Me] = input[_Me];
      }
      if (input[_Si] != null) {
        entries[_Si] = input[_Si];
      }
      return entries;
    }, "se_AsnAuthorizationContext");
    var se_AssetIdList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_AssetIdList");
    var se_AssignIpv6AddressesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IPC] != null) {
        entries[_IPC] = input[_IPC];
      }
      if (input[_IP] != null) {
        const memberEntries = se_IpPrefixList(input[_IP], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Ipv6Prefix.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_NII] != null) {
        entries[_NII] = input[_NII];
      }
      if (input[_IA] != null) {
        const memberEntries = se_Ipv6AddressList(input[_IA], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Ipv6Addresses.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_IAC] != null) {
        entries[_IAC] = input[_IAC];
      }
      return entries;
    }, "se_AssignIpv6AddressesRequest");
    var se_AssignPrivateIpAddressesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IPp] != null) {
        const memberEntries = se_IpPrefixList(input[_IPp], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Ipv4Prefix.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_IPCp] != null) {
        entries[_IPCp] = input[_IPCp];
      }
      if (input[_NII] != null) {
        entries[_NII] = input[_NII];
      }
      if (input[_PIA] != null) {
        const memberEntries = se_PrivateIpAddressStringList(input[_PIA], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `PrivateIpAddress.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_SPIAC] != null) {
        entries[_SPIAC] = input[_SPIAC];
      }
      if (input[_AR2] != null) {
        entries[_AR2] = input[_AR2];
      }
      return entries;
    }, "se_AssignPrivateIpAddressesRequest");
    var se_AssignPrivateNatGatewayAddressRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_NGI] != null) {
        entries[_NGI] = input[_NGI];
      }
      if (input[_PIA] != null) {
        const memberEntries = se_IpList(input[_PIA], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `PrivateIpAddress.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_PIAC] != null) {
        entries[_PIAC] = input[_PIAC];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_AssignPrivateNatGatewayAddressRequest");
    var se_AssociateAddressRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_AIl] != null) {
        entries[_AIl] = input[_AIl];
      }
      if (input[_IIn] != null) {
        entries[_IIn] = input[_IIn];
      }
      if (input[_PI2] != null) {
        entries[_PI2] = input[_PI2];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_NII] != null) {
        entries[_NII] = input[_NII];
      }
      if (input[_PIAr] != null) {
        entries[_PIAr] = input[_PIAr];
      }
      if (input[_ARl] != null) {
        entries[_ARl] = input[_ARl];
      }
      return entries;
    }, "se_AssociateAddressRequest");
    var se_AssociateCapacityReservationBillingOwnerRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_CRI] != null) {
        entries[_CRI] = input[_CRI];
      }
      if (input[_URBOI] != null) {
        entries[_URBOI] = input[_URBOI];
      }
      return entries;
    }, "se_AssociateCapacityReservationBillingOwnerRequest");
    var se_AssociateClientVpnTargetNetworkRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CVEI] != null) {
        entries[_CVEI] = input[_CVEI];
      }
      if (input[_SIub] != null) {
        entries[_SIub] = input[_SIub];
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_AssociateClientVpnTargetNetworkRequest");
    var se_AssociateDhcpOptionsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DOI] != null) {
        entries[_DOI] = input[_DOI];
      }
      if (input[_VI] != null) {
        entries[_VI] = input[_VI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_AssociateDhcpOptionsRequest");
    var se_AssociateEnclaveCertificateIamRoleRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CA2] != null) {
        entries[_CA2] = input[_CA2];
      }
      if (input[_RAo] != null) {
        entries[_RAo] = input[_RAo];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_AssociateEnclaveCertificateIamRoleRequest");
    var se_AssociateIamInstanceProfileRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IIP] != null) {
        const memberEntries = se_IamInstanceProfileSpecification(input[_IIP], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `IamInstanceProfile.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_IIn] != null) {
        entries[_IIn] = input[_IIn];
      }
      return entries;
    }, "se_AssociateIamInstanceProfileRequest");
    var se_AssociateInstanceEventWindowRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_IEWI] != null) {
        entries[_IEWI] = input[_IEWI];
      }
      if (input[_AT] != null) {
        const memberEntries = se_InstanceEventWindowAssociationRequest(input[_AT], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AssociationTarget.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_AssociateInstanceEventWindowRequest");
    var se_AssociateIpamByoasnRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_As] != null) {
        entries[_As] = input[_As];
      }
      if (input[_C2] != null) {
        entries[_C2] = input[_C2];
      }
      return entries;
    }, "se_AssociateIpamByoasnRequest");
    var se_AssociateIpamResourceDiscoveryRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_IIp] != null) {
        entries[_IIp] = input[_IIp];
      }
      if (input[_IRDI] != null) {
        entries[_IRDI] = input[_IRDI];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      return entries;
    }, "se_AssociateIpamResourceDiscoveryRequest");
    var se_AssociateNatGatewayAddressRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_NGI] != null) {
        entries[_NGI] = input[_NGI];
      }
      if (input[_AIll] != null) {
        const memberEntries = se_AllocationIdList(input[_AIll], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AllocationId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_PIA] != null) {
        const memberEntries = se_IpList(input[_PIA], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `PrivateIpAddress.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_AssociateNatGatewayAddressRequest");
    var se_AssociateRouteServerRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RSIo] != null) {
        entries[_RSIo] = input[_RSIo];
      }
      if (input[_VI] != null) {
        entries[_VI] = input[_VI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_AssociateRouteServerRequest");
    var se_AssociateRouteTableRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_GI] != null) {
        entries[_GI] = input[_GI];
      }
      if (input[_PIP] != null) {
        entries[_PIP] = input[_PIP];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_SIub] != null) {
        entries[_SIub] = input[_SIub];
      }
      if (input[_RTI] != null) {
        entries[_RTI] = input[_RTI];
      }
      return entries;
    }, "se_AssociateRouteTableRequest");
    var se_AssociateSecurityGroupVpcRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_GIr] != null) {
        entries[_GIr] = input[_GIr];
      }
      if (input[_VI] != null) {
        entries[_VI] = input[_VI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_AssociateSecurityGroupVpcRequest");
    var se_AssociateSubnetCidrBlockRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IIPI] != null) {
        entries[_IIPI] = input[_IIPI];
      }
      if (input[_INL] != null) {
        entries[_INL] = input[_INL];
      }
      if (input[_SIub] != null) {
        entries[_SIub] = input[_SIub];
      }
      if (input[_ICB] != null) {
        entries[_ICB] = input[_ICB];
      }
      return entries;
    }, "se_AssociateSubnetCidrBlockRequest");
    var se_AssociateTransitGatewayMulticastDomainRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGMDI] != null) {
        entries[_TGMDI] = input[_TGMDI];
      }
      if (input[_TGAI] != null) {
        entries[_TGAI] = input[_TGAI];
      }
      if (input[_SIu] != null) {
        const memberEntries = se_TransitGatewaySubnetIdList(input[_SIu], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SubnetIds.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_AssociateTransitGatewayMulticastDomainRequest");
    var se_AssociateTransitGatewayPolicyTableRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGPTI] != null) {
        entries[_TGPTI] = input[_TGPTI];
      }
      if (input[_TGAI] != null) {
        entries[_TGAI] = input[_TGAI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_AssociateTransitGatewayPolicyTableRequest");
    var se_AssociateTransitGatewayRouteTableRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGRTI] != null) {
        entries[_TGRTI] = input[_TGRTI];
      }
      if (input[_TGAI] != null) {
        entries[_TGAI] = input[_TGAI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_AssociateTransitGatewayRouteTableRequest");
    var se_AssociateTrunkInterfaceRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_BII] != null) {
        entries[_BII] = input[_BII];
      }
      if (input[_TII] != null) {
        entries[_TII] = input[_TII];
      }
      if (input[_VIl] != null) {
        entries[_VIl] = input[_VIl];
      }
      if (input[_GK] != null) {
        entries[_GK] = input[_GK];
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_AssociateTrunkInterfaceRequest");
    var se_AssociateVpcCidrBlockRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CB] != null) {
        entries[_CB] = input[_CB];
      }
      if (input[_ICBNBG] != null) {
        entries[_ICBNBG] = input[_ICBNBG];
      }
      if (input[_IPpv] != null) {
        entries[_IPpv] = input[_IPpv];
      }
      if (input[_ICB] != null) {
        entries[_ICB] = input[_ICB];
      }
      if (input[_IIPIp] != null) {
        entries[_IIPIp] = input[_IIPIp];
      }
      if (input[_INLp] != null) {
        entries[_INLp] = input[_INLp];
      }
      if (input[_IIPI] != null) {
        entries[_IIPI] = input[_IIPI];
      }
      if (input[_INL] != null) {
        entries[_INL] = input[_INL];
      }
      if (input[_VI] != null) {
        entries[_VI] = input[_VI];
      }
      if (input[_APICB] != null) {
        entries[_APICB] = input[_APICB];
      }
      return entries;
    }, "se_AssociateVpcCidrBlockRequest");
    var se_AssociationIdList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`AssociationId.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_AssociationIdList");
    var se_AthenaIntegration = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IRSDA] != null) {
        entries[_IRSDA] = input[_IRSDA];
      }
      if (input[_PLF] != null) {
        entries[_PLF] = input[_PLF];
      }
      if (input[_PSD] != null) {
        entries[_PSD] = (0, import_smithy_client28.serializeDateTime)(input[_PSD]);
      }
      if (input[_PED] != null) {
        entries[_PED] = (0, import_smithy_client28.serializeDateTime)(input[_PED]);
      }
      return entries;
    }, "se_AthenaIntegration");
    var se_AthenaIntegrationsSet = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_AthenaIntegration(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Item.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_AthenaIntegrationsSet");
    var se_AttachClassicLinkVpcRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_IIn] != null) {
        entries[_IIn] = input[_IIn];
      }
      if (input[_VI] != null) {
        entries[_VI] = input[_VI];
      }
      if (input[_G] != null) {
        const memberEntries = se_GroupIdStringList(input[_G], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SecurityGroupId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_AttachClassicLinkVpcRequest");
    var se_AttachInternetGatewayRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_IGI] != null) {
        entries[_IGI] = input[_IGI];
      }
      if (input[_VI] != null) {
        entries[_VI] = input[_VI];
      }
      return entries;
    }, "se_AttachInternetGatewayRequest");
    var se_AttachNetworkInterfaceRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_NCI] != null) {
        entries[_NCI] = input[_NCI];
      }
      if (input[_ESS] != null) {
        const memberEntries = se_EnaSrdSpecification(input[_ESS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `EnaSrdSpecification.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_EQC] != null) {
        entries[_EQC] = input[_EQC];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_NII] != null) {
        entries[_NII] = input[_NII];
      }
      if (input[_IIn] != null) {
        entries[_IIn] = input[_IIn];
      }
      if (input[_DIev] != null) {
        entries[_DIev] = input[_DIev];
      }
      return entries;
    }, "se_AttachNetworkInterfaceRequest");
    var se_AttachVerifiedAccessTrustProviderRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_VAII] != null) {
        entries[_VAII] = input[_VAII];
      }
      if (input[_VATPI] != null) {
        entries[_VATPI] = input[_VATPI];
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_AttachVerifiedAccessTrustProviderRequest");
    var se_AttachVolumeRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Dev] != null) {
        entries[_Dev] = input[_Dev];
      }
      if (input[_IIn] != null) {
        entries[_IIn] = input[_IIn];
      }
      if (input[_VIo] != null) {
        entries[_VIo] = input[_VIo];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_AttachVolumeRequest");
    var se_AttachVpnGatewayRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_VI] != null) {
        entries[_VI] = input[_VI];
      }
      if (input[_VGI] != null) {
        entries[_VGI] = input[_VGI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_AttachVpnGatewayRequest");
    var se_AttributeBooleanValue = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Va2] != null) {
        entries[_Va2] = input[_Va2];
      }
      return entries;
    }, "se_AttributeBooleanValue");
    var se_AttributeValue = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Va2] != null) {
        entries[_Va2] = input[_Va2];
      }
      return entries;
    }, "se_AttributeValue");
    var se_AuthorizeClientVpnIngressRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CVEI] != null) {
        entries[_CVEI] = input[_CVEI];
      }
      if (input[_TNC] != null) {
        entries[_TNC] = input[_TNC];
      }
      if (input[_AGI] != null) {
        entries[_AGI] = input[_AGI];
      }
      if (input[_AAG] != null) {
        entries[_AAG] = input[_AAG];
      }
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_AuthorizeClientVpnIngressRequest");
    var se_AuthorizeSecurityGroupEgressRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_GIr] != null) {
        entries[_GIr] = input[_GIr];
      }
      if (input[_SSGN] != null) {
        entries[_SSGN] = input[_SSGN];
      }
      if (input[_SSGOI] != null) {
        entries[_SSGOI] = input[_SSGOI];
      }
      if (input[_IPpr] != null) {
        entries[_IPpr] = input[_IPpr];
      }
      if (input[_FP] != null) {
        entries[_FP] = input[_FP];
      }
      if (input[_TP] != null) {
        entries[_TP] = input[_TP];
      }
      if (input[_CIi] != null) {
        entries[_CIi] = input[_CIi];
      }
      if (input[_IPpe] != null) {
        const memberEntries = se_IpPermissionList(input[_IPpe], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `IpPermissions.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_AuthorizeSecurityGroupEgressRequest");
    var se_AuthorizeSecurityGroupIngressRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CIi] != null) {
        entries[_CIi] = input[_CIi];
      }
      if (input[_FP] != null) {
        entries[_FP] = input[_FP];
      }
      if (input[_GIr] != null) {
        entries[_GIr] = input[_GIr];
      }
      if (input[_GN] != null) {
        entries[_GN] = input[_GN];
      }
      if (input[_IPpe] != null) {
        const memberEntries = se_IpPermissionList(input[_IPpe], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `IpPermissions.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_IPpr] != null) {
        entries[_IPpr] = input[_IPpr];
      }
      if (input[_SSGN] != null) {
        entries[_SSGN] = input[_SSGN];
      }
      if (input[_SSGOI] != null) {
        entries[_SSGOI] = input[_SSGOI];
      }
      if (input[_TP] != null) {
        entries[_TP] = input[_TP];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_AuthorizeSecurityGroupIngressRequest");
    var se_AvailabilityZoneStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`AvailabilityZone.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_AvailabilityZoneStringList");
    var se_BaselineEbsBandwidthMbps = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_M] != null) {
        entries[_M] = input[_M];
      }
      if (input[_Ma] != null) {
        entries[_Ma] = input[_Ma];
      }
      return entries;
    }, "se_BaselineEbsBandwidthMbps");
    var se_BaselineEbsBandwidthMbpsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_M] != null) {
        entries[_M] = input[_M];
      }
      if (input[_Ma] != null) {
        entries[_Ma] = input[_Ma];
      }
      return entries;
    }, "se_BaselineEbsBandwidthMbpsRequest");
    var se_BaselinePerformanceFactors = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Cp] != null) {
        const memberEntries = se_CpuPerformanceFactor(input[_Cp], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Cpu.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_BaselinePerformanceFactors");
    var se_BaselinePerformanceFactorsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Cp] != null) {
        const memberEntries = se_CpuPerformanceFactorRequest(input[_Cp], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Cpu.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_BaselinePerformanceFactorsRequest");
    var se_BillingProductList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_BillingProductList");
    var se_BlobAttributeValue = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Va2] != null) {
        entries[_Va2] = context.base64Encoder(input[_Va2]);
      }
      return entries;
    }, "se_BlobAttributeValue");
    var se_BlockDeviceMapping = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_E2] != null) {
        const memberEntries = se_EbsBlockDevice(input[_E2], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Ebs.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_ND] != null) {
        entries[_ND] = input[_ND];
      }
      if (input[_DN] != null) {
        entries[_DN] = input[_DN];
      }
      if (input[_VN] != null) {
        entries[_VN] = input[_VN];
      }
      return entries;
    }, "se_BlockDeviceMapping");
    var se_BlockDeviceMappingList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_BlockDeviceMapping(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Item.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_BlockDeviceMappingList");
    var se_BlockDeviceMappingRequestList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_BlockDeviceMapping(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`BlockDeviceMapping.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_BlockDeviceMappingRequestList");
    var se_BundleIdStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`BundleId.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_BundleIdStringList");
    var se_BundleInstanceRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IIn] != null) {
        entries[_IIn] = input[_IIn];
      }
      if (input[_St] != null) {
        const memberEntries = se_Storage(input[_St], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Storage.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_BundleInstanceRequest");
    var se_CancelBundleTaskRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_BIu] != null) {
        entries[_BIu] = input[_BIu];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_CancelBundleTaskRequest");
    var se_CancelCapacityReservationFleetsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_CRFI] != null) {
        const memberEntries = se_CapacityReservationFleetIdSet(input[_CRFI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `CapacityReservationFleetId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_CancelCapacityReservationFleetsRequest");
    var se_CancelCapacityReservationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CRI] != null) {
        entries[_CRI] = input[_CRI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_CancelCapacityReservationRequest");
    var se_CancelConversionRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_CTI] != null) {
        entries[_CTI] = input[_CTI];
      }
      if (input[_RM] != null) {
        entries[_RM] = input[_RM];
      }
      return entries;
    }, "se_CancelConversionRequest");
    var se_CancelDeclarativePoliciesReportRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_RIep] != null) {
        entries[_RIep] = input[_RIep];
      }
      return entries;
    }, "se_CancelDeclarativePoliciesReportRequest");
    var se_CancelExportTaskRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_ETI] != null) {
        entries[_ETI] = input[_ETI];
      }
      return entries;
    }, "se_CancelExportTaskRequest");
    var se_CancelImageLaunchPermissionRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IIma] != null) {
        entries[_IIma] = input[_IIma];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_CancelImageLaunchPermissionRequest");
    var se_CancelImportTaskRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CRa] != null) {
        entries[_CRa] = input[_CRa];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_ITI] != null) {
        entries[_ITI] = input[_ITI];
      }
      return entries;
    }, "se_CancelImportTaskRequest");
    var se_CancelReservedInstancesListingRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RILI] != null) {
        entries[_RILI] = input[_RILI];
      }
      return entries;
    }, "se_CancelReservedInstancesListingRequest");
    var se_CancelSpotFleetRequestsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_SFRI] != null) {
        const memberEntries = se_SpotFleetRequestIdList(input[_SFRI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SpotFleetRequestId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_TI] != null) {
        entries[_TI] = input[_TI];
      }
      return entries;
    }, "se_CancelSpotFleetRequestsRequest");
    var se_CancelSpotInstanceRequestsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_SIRI] != null) {
        const memberEntries = se_SpotInstanceRequestIdList(input[_SIRI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SpotInstanceRequestId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_CancelSpotInstanceRequestsRequest");
    var se_CapacityBlockIds = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_CapacityBlockIds");
    var se_CapacityReservationFleetIdSet = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_CapacityReservationFleetIdSet");
    var se_CapacityReservationIdSet = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_CapacityReservationIdSet");
    var se_CapacityReservationOptionsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_USs] != null) {
        entries[_USs] = input[_USs];
      }
      return entries;
    }, "se_CapacityReservationOptionsRequest");
    var se_CapacityReservationSpecification = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CRP] != null) {
        entries[_CRP] = input[_CRP];
      }
      if (input[_CRTa] != null) {
        const memberEntries = se_CapacityReservationTarget(input[_CRTa], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `CapacityReservationTarget.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_CapacityReservationSpecification");
    var se_CapacityReservationTarget = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CRI] != null) {
        entries[_CRI] = input[_CRI];
      }
      if (input[_CRRGA] != null) {
        entries[_CRRGA] = input[_CRRGA];
      }
      return entries;
    }, "se_CapacityReservationTarget");
    var se_CarrierGatewayIdSet = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_CarrierGatewayIdSet");
    var se_CertificateAuthenticationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CRCCA] != null) {
        entries[_CRCCA] = input[_CRCCA];
      }
      return entries;
    }, "se_CertificateAuthenticationRequest");
    var se_CidrAuthorizationContext = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Me] != null) {
        entries[_Me] = input[_Me];
      }
      if (input[_Si] != null) {
        entries[_Si] = input[_Si];
      }
      return entries;
    }, "se_CidrAuthorizationContext");
    var se_ClassicLoadBalancer = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_N] != null) {
        entries[_N] = input[_N];
      }
      return entries;
    }, "se_ClassicLoadBalancer");
    var se_ClassicLoadBalancers = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_ClassicLoadBalancer(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Item.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_ClassicLoadBalancers");
    var se_ClassicLoadBalancersConfig = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CLB] != null) {
        const memberEntries = se_ClassicLoadBalancers(input[_CLB], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ClassicLoadBalancers.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_ClassicLoadBalancersConfig");
    var se_ClientConnectOptions = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_En] != null) {
        entries[_En] = input[_En];
      }
      if (input[_LFA] != null) {
        entries[_LFA] = input[_LFA];
      }
      return entries;
    }, "se_ClientConnectOptions");
    var se_ClientData = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Co] != null) {
        entries[_Co] = input[_Co];
      }
      if (input[_UE] != null) {
        entries[_UE] = (0, import_smithy_client28.serializeDateTime)(input[_UE]);
      }
      if (input[_USp] != null) {
        entries[_USp] = (0, import_smithy_client28.serializeFloat)(input[_USp]);
      }
      if (input[_USpl] != null) {
        entries[_USpl] = (0, import_smithy_client28.serializeDateTime)(input[_USpl]);
      }
      return entries;
    }, "se_ClientData");
    var se_ClientLoginBannerOptions = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_En] != null) {
        entries[_En] = input[_En];
      }
      if (input[_BT] != null) {
        entries[_BT] = input[_BT];
      }
      return entries;
    }, "se_ClientLoginBannerOptions");
    var se_ClientRouteEnforcementOptions = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Enf] != null) {
        entries[_Enf] = input[_Enf];
      }
      return entries;
    }, "se_ClientRouteEnforcementOptions");
    var se_ClientVpnAuthenticationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_T2] != null) {
        entries[_T2] = input[_T2];
      }
      if (input[_AD] != null) {
        const memberEntries = se_DirectoryServiceAuthenticationRequest(input[_AD], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ActiveDirectory.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_MA] != null) {
        const memberEntries = se_CertificateAuthenticationRequest(input[_MA], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `MutualAuthentication.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_FA] != null) {
        const memberEntries = se_FederatedAuthenticationRequest(input[_FA], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `FederatedAuthentication.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_ClientVpnAuthenticationRequest");
    var se_ClientVpnAuthenticationRequestList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_ClientVpnAuthenticationRequest(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Member.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_ClientVpnAuthenticationRequestList");
    var se_ClientVpnEndpointIdList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_ClientVpnEndpointIdList");
    var se_ClientVpnSecurityGroupIdSet = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_ClientVpnSecurityGroupIdSet");
    var se_CloudWatchLogOptionsSpecification = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_LE] != null) {
        entries[_LE] = input[_LE];
      }
      if (input[_LGA] != null) {
        entries[_LGA] = input[_LGA];
      }
      if (input[_LOF] != null) {
        entries[_LOF] = input[_LOF];
      }
      return entries;
    }, "se_CloudWatchLogOptionsSpecification");
    var se_CoipPoolIdSet = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_CoipPoolIdSet");
    var se_ConfirmProductInstanceRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IIn] != null) {
        entries[_IIn] = input[_IIn];
      }
      if (input[_PC2] != null) {
        entries[_PC2] = input[_PC2];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_ConfirmProductInstanceRequest");
    var se_ConnectionLogOptions = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_En] != null) {
        entries[_En] = input[_En];
      }
      if (input[_CLG] != null) {
        entries[_CLG] = input[_CLG];
      }
      if (input[_CLS] != null) {
        entries[_CLS] = input[_CLS];
      }
      return entries;
    }, "se_ConnectionLogOptions");
    var se_ConnectionNotificationIdsList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_ConnectionNotificationIdsList");
    var se_ConnectionTrackingSpecificationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TET] != null) {
        entries[_TET] = input[_TET];
      }
      if (input[_UST] != null) {
        entries[_UST] = input[_UST];
      }
      if (input[_UT] != null) {
        entries[_UT] = input[_UT];
      }
      return entries;
    }, "se_ConnectionTrackingSpecificationRequest");
    var se_ConversionIdStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_ConversionIdStringList");
    var se_CopyFpgaImageRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_SFII] != null) {
        entries[_SFII] = input[_SFII];
      }
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      if (input[_N] != null) {
        entries[_N] = input[_N];
      }
      if (input[_SR] != null) {
        entries[_SR] = input[_SR];
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      return entries;
    }, "se_CopyFpgaImageRequest");
    var se_CopyImageRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      if (input[_Enc] != null) {
        entries[_Enc] = input[_Enc];
      }
      if (input[_KKI] != null) {
        entries[_KKI] = input[_KKI];
      }
      if (input[_N] != null) {
        entries[_N] = input[_N];
      }
      if (input[_SII] != null) {
        entries[_SII] = input[_SII];
      }
      if (input[_SR] != null) {
        entries[_SR] = input[_SR];
      }
      if (input[_DOA] != null) {
        entries[_DOA] = input[_DOA];
      }
      if (input[_CITo] != null) {
        entries[_CITo] = input[_CITo];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_SCCDM] != null) {
        entries[_SCCDM] = input[_SCCDM];
      }
      if (input[_DAZe] != null) {
        entries[_DAZe] = input[_DAZe];
      }
      if (input[_DAZI] != null) {
        entries[_DAZI] = input[_DAZI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_CopyImageRequest");
    var se_CopySnapshotRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      if (input[_DOA] != null) {
        entries[_DOA] = input[_DOA];
      }
      if (input[_DRes] != null) {
        entries[_DRes] = input[_DRes];
      }
      if (input[_Enc] != null) {
        entries[_Enc] = input[_Enc];
      }
      if (input[_KKI] != null) {
        entries[_KKI] = input[_KKI];
      }
      if (input[_PU] != null) {
        entries[_PU] = input[_PU];
      }
      if (input[_SR] != null) {
        entries[_SR] = input[_SR];
      }
      if (input[_SSI] != null) {
        entries[_SSI] = input[_SSI];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_CDM] != null) {
        entries[_CDM] = input[_CDM];
      }
      if (input[_DAZe] != null) {
        entries[_DAZe] = input[_DAZe];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_CopySnapshotRequest");
    var se_CpuManufacturerSet = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_CpuManufacturerSet");
    var se_CpuOptionsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CC] != null) {
        entries[_CC] = input[_CC];
      }
      if (input[_TPC] != null) {
        entries[_TPC] = input[_TPC];
      }
      if (input[_ASS] != null) {
        entries[_ASS] = input[_ASS];
      }
      return entries;
    }, "se_CpuOptionsRequest");
    var se_CpuPerformanceFactor = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_R] != null) {
        const memberEntries = se_PerformanceFactorReferenceSet(input[_R], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ReferenceSet.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_CpuPerformanceFactor");
    var se_CpuPerformanceFactorRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_R] != null) {
        const memberEntries = se_PerformanceFactorReferenceSetRequest(input[_R], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Reference.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_CpuPerformanceFactorRequest");
    var se_CreateCapacityReservationBySplittingRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_SCRI] != null) {
        entries[_SCRI] = input[_SCRI];
      }
      if (input[_IC] != null) {
        entries[_IC] = input[_IC];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_CreateCapacityReservationBySplittingRequest");
    var se_CreateCapacityReservationFleetRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_AS] != null) {
        entries[_AS] = input[_AS];
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_ITS] != null) {
        const memberEntries = se_ReservationFleetInstanceSpecificationList(input[_ITS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `InstanceTypeSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Te] != null) {
        entries[_Te] = input[_Te];
      }
      if (input[_TTC] != null) {
        entries[_TTC] = input[_TTC];
      }
      if (input[_ED] != null) {
        entries[_ED] = (0, import_smithy_client28.serializeDateTime)(input[_ED]);
      }
      if (input[_IMC] != null) {
        entries[_IMC] = input[_IMC];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_CreateCapacityReservationFleetRequest");
    var se_CreateCapacityReservationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_IT] != null) {
        entries[_IT] = input[_IT];
      }
      if (input[_IPn] != null) {
        entries[_IPn] = input[_IPn];
      }
      if (input[_AZ] != null) {
        entries[_AZ] = input[_AZ];
      }
      if (input[_AZI] != null) {
        entries[_AZI] = input[_AZI];
      }
      if (input[_Te] != null) {
        entries[_Te] = input[_Te];
      }
      if (input[_IC] != null) {
        entries[_IC] = input[_IC];
      }
      if (input[_EO] != null) {
        entries[_EO] = input[_EO];
      }
      if (input[_ES] != null) {
        entries[_ES] = input[_ES];
      }
      if (input[_ED] != null) {
        entries[_ED] = (0, import_smithy_client28.serializeDateTime)(input[_ED]);
      }
      if (input[_EDT] != null) {
        entries[_EDT] = input[_EDT];
      }
      if (input[_IMC] != null) {
        entries[_IMC] = input[_IMC];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecifications.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_OA] != null) {
        entries[_OA] = input[_OA];
      }
      if (input[_PGA] != null) {
        entries[_PGA] = input[_PGA];
      }
      if (input[_SD] != null) {
        entries[_SD] = (0, import_smithy_client28.serializeDateTime)(input[_SD]);
      }
      if (input[_CD] != null) {
        entries[_CD] = input[_CD];
      }
      if (input[_DP] != null) {
        entries[_DP] = input[_DP];
      }
      return entries;
    }, "se_CreateCapacityReservationRequest");
    var se_CreateCarrierGatewayRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_VI] != null) {
        entries[_VI] = input[_VI];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      return entries;
    }, "se_CreateCarrierGatewayRequest");
    var se_CreateClientVpnEndpointRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CCB] != null) {
        entries[_CCB] = input[_CCB];
      }
      if (input[_SCA] != null) {
        entries[_SCA] = input[_SCA];
      }
      if (input[_AO] != null) {
        const memberEntries = se_ClientVpnAuthenticationRequestList(input[_AO], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Authentication.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_CLO] != null) {
        const memberEntries = se_ConnectionLogOptions(input[_CLO], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ConnectionLogOptions.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_DSn] != null) {
        const memberEntries = se_ValueStringList(input[_DSn], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `DnsServers.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_TPr] != null) {
        entries[_TPr] = input[_TPr];
      }
      if (input[_VP] != null) {
        entries[_VP] = input[_VP];
      }
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      if (input[_ST2] != null) {
        entries[_ST2] = input[_ST2];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_SGI] != null) {
        const memberEntries = se_ClientVpnSecurityGroupIdSet(input[_SGI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SecurityGroupId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_VI] != null) {
        entries[_VI] = input[_VI];
      }
      if (input[_SSP] != null) {
        entries[_SSP] = input[_SSP];
      }
      if (input[_CCO] != null) {
        const memberEntries = se_ClientConnectOptions(input[_CCO], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ClientConnectOptions.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_STH] != null) {
        entries[_STH] = input[_STH];
      }
      if (input[_CLBO] != null) {
        const memberEntries = se_ClientLoginBannerOptions(input[_CLBO], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ClientLoginBannerOptions.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_CREO] != null) {
        const memberEntries = se_ClientRouteEnforcementOptions(input[_CREO], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ClientRouteEnforcementOptions.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_DOST] != null) {
        entries[_DOST] = input[_DOST];
      }
      if (input[_EIAT] != null) {
        entries[_EIAT] = input[_EIAT];
      }
      if (input[_TIAT] != null) {
        entries[_TIAT] = input[_TIAT];
      }
      return entries;
    }, "se_CreateClientVpnEndpointRequest");
    var se_CreateClientVpnRouteRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CVEI] != null) {
        entries[_CVEI] = input[_CVEI];
      }
      if (input[_DCBe] != null) {
        entries[_DCBe] = input[_DCBe];
      }
      if (input[_TVSI] != null) {
        entries[_TVSI] = input[_TVSI];
      }
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_CreateClientVpnRouteRequest");
    var se_CreateCoipCidrRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_C2] != null) {
        entries[_C2] = input[_C2];
      }
      if (input[_CPIo] != null) {
        entries[_CPIo] = input[_CPIo];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_CreateCoipCidrRequest");
    var se_CreateCoipPoolRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_LGRTI] != null) {
        entries[_LGRTI] = input[_LGRTI];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_CreateCoipPoolRequest");
    var se_CreateCustomerGatewayRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_BA] != null) {
        entries[_BA] = input[_BA];
      }
      if (input[_PI2] != null) {
        entries[_PI2] = input[_PI2];
      }
      if (input[_CA2] != null) {
        entries[_CA2] = input[_CA2];
      }
      if (input[_T2] != null) {
        entries[_T2] = input[_T2];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DN] != null) {
        entries[_DN] = input[_DN];
      }
      if (input[_IAp] != null) {
        entries[_IAp] = input[_IAp];
      }
      if (input[_BAE] != null) {
        entries[_BAE] = input[_BAE];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_CreateCustomerGatewayRequest");
    var se_CreateDefaultSubnetRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_AZ] != null) {
        entries[_AZ] = input[_AZ];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_IN] != null) {
        entries[_IN] = input[_IN];
      }
      if (input[_AZI] != null) {
        entries[_AZI] = input[_AZI];
      }
      return entries;
    }, "se_CreateDefaultSubnetRequest");
    var se_CreateDefaultVpcRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_CreateDefaultVpcRequest");
    var se_CreateDelegateMacVolumeOwnershipTaskRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_IIn] != null) {
        entries[_IIn] = input[_IIn];
      }
      if (input[_MC] != null) {
        entries[_MC] = input[_MC];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_CreateDelegateMacVolumeOwnershipTaskRequest");
    var se_CreateDhcpOptionsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DCh] != null) {
        const memberEntries = se_NewDhcpConfigurationList(input[_DCh], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `DhcpConfiguration.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_CreateDhcpOptionsRequest");
    var se_CreateEgressOnlyInternetGatewayRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_VI] != null) {
        entries[_VI] = input[_VI];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_CreateEgressOnlyInternetGatewayRequest");
    var se_CreateFleetRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_SO] != null) {
        const memberEntries = se_SpotOptionsRequest(input[_SO], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SpotOptions.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_ODO] != null) {
        const memberEntries = se_OnDemandOptionsRequest(input[_ODO], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `OnDemandOptions.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_ECTP] != null) {
        entries[_ECTP] = input[_ECTP];
      }
      if (input[_LTC] != null) {
        const memberEntries = se_FleetLaunchTemplateConfigListRequest(input[_LTC], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `LaunchTemplateConfigs.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_TCS] != null) {
        const memberEntries = se_TargetCapacitySpecificationRequest(input[_TCS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TargetCapacitySpecification.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_TIWE] != null) {
        entries[_TIWE] = input[_TIWE];
      }
      if (input[_T2] != null) {
        entries[_T2] = input[_T2];
      }
      if (input[_VF] != null) {
        entries[_VF] = (0, import_smithy_client28.serializeDateTime)(input[_VF]);
      }
      if (input[_VU] != null) {
        entries[_VU] = (0, import_smithy_client28.serializeDateTime)(input[_VU]);
      }
      if (input[_RUI] != null) {
        entries[_RUI] = input[_RUI];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Con] != null) {
        entries[_Con] = input[_Con];
      }
      return entries;
    }, "se_CreateFleetRequest");
    var se_CreateFlowLogsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_DLPA] != null) {
        entries[_DLPA] = input[_DLPA];
      }
      if (input[_DCAR] != null) {
        entries[_DCAR] = input[_DCAR];
      }
      if (input[_LGN] != null) {
        entries[_LGN] = input[_LGN];
      }
      if (input[_RIes] != null) {
        const memberEntries = se_FlowLogResourceIds(input[_RIes], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ResourceId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_RT] != null) {
        entries[_RT] = input[_RT];
      }
      if (input[_TT] != null) {
        entries[_TT] = input[_TT];
      }
      if (input[_LDT] != null) {
        entries[_LDT] = input[_LDT];
      }
      if (input[_LD] != null) {
        entries[_LD] = input[_LD];
      }
      if (input[_LF] != null) {
        entries[_LF] = input[_LF];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MAI] != null) {
        entries[_MAI] = input[_MAI];
      }
      if (input[_DO] != null) {
        const memberEntries = se_DestinationOptionsRequest(input[_DO], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `DestinationOptions.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_CreateFlowLogsRequest");
    var se_CreateFpgaImageRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_ISL] != null) {
        const memberEntries = se_StorageLocation(input[_ISL], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `InputStorageLocation.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_LSL] != null) {
        const memberEntries = se_StorageLocation(input[_LSL], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `LogsStorageLocation.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      if (input[_N] != null) {
        entries[_N] = input[_N];
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_CreateFpgaImageRequest");
    var se_CreateImageRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_SL] != null) {
        entries[_SL] = input[_SL];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_IIn] != null) {
        entries[_IIn] = input[_IIn];
      }
      if (input[_N] != null) {
        entries[_N] = input[_N];
      }
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      if (input[_NR] != null) {
        entries[_NR] = input[_NR];
      }
      if (input[_BDM] != null) {
        const memberEntries = se_BlockDeviceMappingRequestList(input[_BDM], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `BlockDeviceMapping.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_CreateImageRequest");
    var se_CreateImageUsageReportRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IIma] != null) {
        entries[_IIma] = input[_IIma];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_RTe] != null) {
        const memberEntries = se_ImageUsageResourceTypeRequestList(input[_RTe], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ResourceType.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_AIc] != null) {
        const memberEntries = se_ImageUsageReportUserIdStringList(input[_AIc], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AccountId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_CreateImageUsageReportRequest");
    var se_CreateInstanceConnectEndpointRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_SIub] != null) {
        entries[_SIub] = input[_SIub];
      }
      if (input[_SGI] != null) {
        const memberEntries = se_SecurityGroupIdStringListRequest(input[_SGI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SecurityGroupId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_PCI] != null) {
        entries[_PCI] = input[_PCI];
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_IAT] != null) {
        entries[_IAT] = input[_IAT];
      }
      return entries;
    }, "se_CreateInstanceConnectEndpointRequest");
    var se_CreateInstanceEventWindowRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_N] != null) {
        entries[_N] = input[_N];
      }
      if (input[_TRi] != null) {
        const memberEntries = se_InstanceEventWindowTimeRangeRequestSet(input[_TRi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TimeRange.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_CE] != null) {
        entries[_CE] = input[_CE];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_CreateInstanceEventWindowRequest");
    var se_CreateInstanceExportTaskRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      if (input[_IIn] != null) {
        entries[_IIn] = input[_IIn];
      }
      if (input[_TE] != null) {
        entries[_TE] = input[_TE];
      }
      if (input[_ETST] != null) {
        const memberEntries = se_ExportToS3TaskSpecification(input[_ETST], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ExportToS3.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_CreateInstanceExportTaskRequest");
    var se_CreateInternetGatewayRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_CreateInternetGatewayRequest");
    var se_CreateIpamExternalResourceVerificationTokenRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_IIp] != null) {
        entries[_IIp] = input[_IIp];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      return entries;
    }, "se_CreateIpamExternalResourceVerificationTokenRequest");
    var se_CreateIpamPoolRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_ISI] != null) {
        entries[_ISI] = input[_ISI];
      }
      if (input[_L] != null) {
        entries[_L] = input[_L];
      }
      if (input[_SIPI] != null) {
        entries[_SIPI] = input[_SIPI];
      }
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      if (input[_AF] != null) {
        entries[_AF] = input[_AF];
      }
      if (input[_AIu] != null) {
        entries[_AIu] = input[_AIu];
      }
      if (input[_PA2] != null) {
        entries[_PA2] = input[_PA2];
      }
      if (input[_AMNL] != null) {
        entries[_AMNL] = input[_AMNL];
      }
      if (input[_AMNLl] != null) {
        entries[_AMNLl] = input[_AMNLl];
      }
      if (input[_ADNL] != null) {
        entries[_ADNL] = input[_ADNL];
      }
      if (input[_ARTl] != null) {
        const memberEntries = se_RequestIpamResourceTagList(input[_ARTl], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AllocationResourceTag.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_ASw] != null) {
        entries[_ASw] = input[_ASw];
      }
      if (input[_PIS] != null) {
        entries[_PIS] = input[_PIS];
      }
      if (input[_SRo] != null) {
        const memberEntries = se_IpamPoolSourceResourceRequest(input[_SRo], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SourceResource.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_CreateIpamPoolRequest");
    var se_CreateIpamRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      if (input[_OR] != null) {
        const memberEntries = se_AddIpamOperatingRegionSet(input[_OR], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `OperatingRegion.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_Ti] != null) {
        entries[_Ti] = input[_Ti];
      }
      if (input[_EPG] != null) {
        entries[_EPG] = input[_EPG];
      }
      if (input[_MAe] != null) {
        entries[_MAe] = input[_MAe];
      }
      return entries;
    }, "se_CreateIpamRequest");
    var se_CreateIpamResourceDiscoveryRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      if (input[_OR] != null) {
        const memberEntries = se_AddIpamOperatingRegionSet(input[_OR], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `OperatingRegion.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      return entries;
    }, "se_CreateIpamResourceDiscoveryRequest");
    var se_CreateIpamScopeRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_IIp] != null) {
        entries[_IIp] = input[_IIp];
      }
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      return entries;
    }, "se_CreateIpamScopeRequest");
    var se_CreateKeyPairRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_KN] != null) {
        entries[_KN] = input[_KN];
      }
      if (input[_KT] != null) {
        entries[_KT] = input[_KT];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_KF] != null) {
        entries[_KF] = input[_KF];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_CreateKeyPairRequest");
    var se_CreateLaunchTemplateRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_LTN] != null) {
        entries[_LTN] = input[_LTN];
      }
      if (input[_VD] != null) {
        entries[_VD] = input[_VD];
      }
      if (input[_LTD] != null) {
        const memberEntries = se_RequestLaunchTemplateData(input[_LTD], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `LaunchTemplateData.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_O] != null) {
        const memberEntries = se_OperatorRequest(input[_O], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Operator.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_CreateLaunchTemplateRequest");
    var se_CreateLaunchTemplateVersionRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_LTI] != null) {
        entries[_LTI] = input[_LTI];
      }
      if (input[_LTN] != null) {
        entries[_LTN] = input[_LTN];
      }
      if (input[_SV] != null) {
        entries[_SV] = input[_SV];
      }
      if (input[_VD] != null) {
        entries[_VD] = input[_VD];
      }
      if (input[_LTD] != null) {
        const memberEntries = se_RequestLaunchTemplateData(input[_LTD], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `LaunchTemplateData.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_RAe] != null) {
        entries[_RAe] = input[_RAe];
      }
      return entries;
    }, "se_CreateLaunchTemplateVersionRequest");
    var se_CreateLocalGatewayRouteRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DCBe] != null) {
        entries[_DCBe] = input[_DCBe];
      }
      if (input[_LGRTI] != null) {
        entries[_LGRTI] = input[_LGRTI];
      }
      if (input[_LGVIGI] != null) {
        entries[_LGVIGI] = input[_LGVIGI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_NII] != null) {
        entries[_NII] = input[_NII];
      }
      if (input[_DPLI] != null) {
        entries[_DPLI] = input[_DPLI];
      }
      return entries;
    }, "se_CreateLocalGatewayRouteRequest");
    var se_CreateLocalGatewayRouteTableRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_LGI] != null) {
        entries[_LGI] = input[_LGI];
      }
      if (input[_Mo] != null) {
        entries[_Mo] = input[_Mo];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_CreateLocalGatewayRouteTableRequest");
    var se_CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_LGRTI] != null) {
        entries[_LGRTI] = input[_LGRTI];
      }
      if (input[_LGVIGI] != null) {
        entries[_LGVIGI] = input[_LGVIGI];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest");
    var se_CreateLocalGatewayRouteTableVpcAssociationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_LGRTI] != null) {
        entries[_LGRTI] = input[_LGRTI];
      }
      if (input[_VI] != null) {
        entries[_VI] = input[_VI];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_CreateLocalGatewayRouteTableVpcAssociationRequest");
    var se_CreateLocalGatewayVirtualInterfaceGroupRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_LGI] != null) {
        entries[_LGI] = input[_LGI];
      }
      if (input[_LBA] != null) {
        entries[_LBA] = input[_LBA];
      }
      if (input[_LBAE] != null) {
        entries[_LBAE] = input[_LBAE];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_CreateLocalGatewayVirtualInterfaceGroupRequest");
    var se_CreateLocalGatewayVirtualInterfaceRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_LGVIGI] != null) {
        entries[_LGVIGI] = input[_LGVIGI];
      }
      if (input[_OLI] != null) {
        entries[_OLI] = input[_OLI];
      }
      if (input[_Vl] != null) {
        entries[_Vl] = input[_Vl];
      }
      if (input[_LA] != null) {
        entries[_LA] = input[_LA];
      }
      if (input[_PAe] != null) {
        entries[_PAe] = input[_PAe];
      }
      if (input[_PBA] != null) {
        entries[_PBA] = input[_PBA];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_PBAE] != null) {
        entries[_PBAE] = input[_PBAE];
      }
      return entries;
    }, "se_CreateLocalGatewayVirtualInterfaceRequest");
    var se_CreateMacSystemIntegrityProtectionModificationTaskRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_IIn] != null) {
        entries[_IIn] = input[_IIn];
      }
      if (input[_MC] != null) {
        entries[_MC] = input[_MC];
      }
      if (input[_MSIPC] != null) {
        const memberEntries = se_MacSystemIntegrityProtectionConfigurationRequest(input[_MSIPC], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `MacSystemIntegrityProtectionConfiguration.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_MSIPS] != null) {
        entries[_MSIPS] = input[_MSIPS];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_CreateMacSystemIntegrityProtectionModificationTaskRequest");
    var se_CreateManagedPrefixListRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_PLN] != null) {
        entries[_PLN] = input[_PLN];
      }
      if (input[_Ent] != null) {
        const memberEntries = se_AddPrefixListEntries(input[_Ent], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Entry.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_ME] != null) {
        entries[_ME] = input[_ME];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_AF] != null) {
        entries[_AF] = input[_AF];
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      return entries;
    }, "se_CreateManagedPrefixListRequest");
    var se_CreateNatGatewayRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_AIl] != null) {
        entries[_AIl] = input[_AIl];
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_SIub] != null) {
        entries[_SIub] = input[_SIub];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_CTo] != null) {
        entries[_CTo] = input[_CTo];
      }
      if (input[_PIAr] != null) {
        entries[_PIAr] = input[_PIAr];
      }
      if (input[_SAI] != null) {
        const memberEntries = se_AllocationIdList(input[_SAI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SecondaryAllocationId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_SPIA] != null) {
        const memberEntries = se_IpList(input[_SPIA], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SecondaryPrivateIpAddress.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_SPIAC] != null) {
        entries[_SPIAC] = input[_SPIAC];
      }
      return entries;
    }, "se_CreateNatGatewayRequest");
    var se_CreateNetworkAclEntryRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_NAI] != null) {
        entries[_NAI] = input[_NAI];
      }
      if (input[_RNu] != null) {
        entries[_RNu] = input[_RNu];
      }
      if (input[_P2] != null) {
        entries[_P2] = input[_P2];
      }
      if (input[_RAu] != null) {
        entries[_RAu] = input[_RAu];
      }
      if (input[_Eg] != null) {
        entries[_Eg] = input[_Eg];
      }
      if (input[_CB] != null) {
        entries[_CB] = input[_CB];
      }
      if (input[_ICB] != null) {
        entries[_ICB] = input[_ICB];
      }
      if (input[_ITC] != null) {
        const memberEntries = se_IcmpTypeCode(input[_ITC], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Icmp.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_PR] != null) {
        const memberEntries = se_PortRange(input[_PR], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `PortRange.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_CreateNetworkAclEntryRequest");
    var se_CreateNetworkAclRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_VI] != null) {
        entries[_VI] = input[_VI];
      }
      return entries;
    }, "se_CreateNetworkAclRequest");
    var se_CreateNetworkInsightsAccessScopeRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_MP] != null) {
        const memberEntries = se_AccessScopePathListRequest(input[_MP], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `MatchPath.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_EP] != null) {
        const memberEntries = se_AccessScopePathListRequest(input[_EP], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ExcludePath.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_CreateNetworkInsightsAccessScopeRequest");
    var se_CreateNetworkInsightsPathRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SIo] != null) {
        entries[_SIo] = input[_SIo];
      }
      if (input[_DIest] != null) {
        entries[_DIest] = input[_DIest];
      }
      if (input[_S] != null) {
        entries[_S] = input[_S];
      }
      if (input[_D] != null) {
        entries[_D] = input[_D];
      }
      if (input[_P2] != null) {
        entries[_P2] = input[_P2];
      }
      if (input[_DPe] != null) {
        entries[_DPe] = input[_DPe];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_FAS] != null) {
        const memberEntries = se_PathRequestFilter(input[_FAS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `FilterAtSource.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_FAD] != null) {
        const memberEntries = se_PathRequestFilter(input[_FAD], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `FilterAtDestination.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_CreateNetworkInsightsPathRequest");
    var se_CreateNetworkInterfacePermissionRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_NII] != null) {
        entries[_NII] = input[_NII];
      }
      if (input[_AAI] != null) {
        entries[_AAI] = input[_AAI];
      }
      if (input[_ASw] != null) {
        entries[_ASw] = input[_ASw];
      }
      if (input[_Pe] != null) {
        entries[_Pe] = input[_Pe];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_CreateNetworkInterfacePermissionRequest");
    var se_CreateNetworkInterfaceRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IPp] != null) {
        const memberEntries = se_Ipv4PrefixList(input[_IPp], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Ipv4Prefix.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_IPCp] != null) {
        entries[_IPCp] = input[_IPCp];
      }
      if (input[_IP] != null) {
        const memberEntries = se_Ipv6PrefixList(input[_IP], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Ipv6Prefix.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_IPC] != null) {
        entries[_IPC] = input[_IPC];
      }
      if (input[_ITn] != null) {
        entries[_ITn] = input[_ITn];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_EPI] != null) {
        entries[_EPI] = input[_EPI];
      }
      if (input[_CTS] != null) {
        const memberEntries = se_ConnectionTrackingSpecificationRequest(input[_CTS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ConnectionTrackingSpecification.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_O] != null) {
        const memberEntries = se_OperatorRequest(input[_O], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Operator.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_SIub] != null) {
        entries[_SIub] = input[_SIub];
      }
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      if (input[_PIAr] != null) {
        entries[_PIAr] = input[_PIAr];
      }
      if (input[_G] != null) {
        const memberEntries = se_SecurityGroupIdStringList(input[_G], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SecurityGroupId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_PIA] != null) {
        const memberEntries = se_PrivateIpAddressSpecificationList(input[_PIA], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `PrivateIpAddresses.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_SPIAC] != null) {
        entries[_SPIAC] = input[_SPIAC];
      }
      if (input[_IA] != null) {
        const memberEntries = se_InstanceIpv6AddressList(input[_IA], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Ipv6Addresses.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_IAC] != null) {
        entries[_IAC] = input[_IAC];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_CreateNetworkInterfaceRequest");
    var se_CreatePlacementGroupRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_PCa] != null) {
        entries[_PCa] = input[_PCa];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_SLp] != null) {
        entries[_SLp] = input[_SLp];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_GN] != null) {
        entries[_GN] = input[_GN];
      }
      if (input[_Str] != null) {
        entries[_Str] = input[_Str];
      }
      return entries;
    }, "se_CreatePlacementGroupRequest");
    var se_CreatePublicIpv4PoolRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_NBG] != null) {
        entries[_NBG] = input[_NBG];
      }
      return entries;
    }, "se_CreatePublicIpv4PoolRequest");
    var se_CreateReplaceRootVolumeTaskRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IIn] != null) {
        entries[_IIn] = input[_IIn];
      }
      if (input[_SIn] != null) {
        entries[_SIn] = input[_SIn];
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_IIma] != null) {
        entries[_IIma] = input[_IIma];
      }
      if (input[_DRRV] != null) {
        entries[_DRRV] = input[_DRRV];
      }
      if (input[_VIR] != null) {
        entries[_VIR] = input[_VIR];
      }
      return entries;
    }, "se_CreateReplaceRootVolumeTaskRequest");
    var se_CreateReservedInstancesListingRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RIIe] != null) {
        entries[_RIIe] = input[_RIIe];
      }
      if (input[_IC] != null) {
        entries[_IC] = input[_IC];
      }
      if (input[_PS] != null) {
        const memberEntries = se_PriceScheduleSpecificationList(input[_PS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `PriceSchedules.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      return entries;
    }, "se_CreateReservedInstancesListingRequest");
    var se_CreateRestoreImageTaskRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_B] != null) {
        entries[_B] = input[_B];
      }
      if (input[_OK] != null) {
        entries[_OK] = input[_OK];
      }
      if (input[_N] != null) {
        entries[_N] = input[_N];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_CreateRestoreImageTaskRequest");
    var se_CreateRouteRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DPLI] != null) {
        entries[_DPLI] = input[_DPLI];
      }
      if (input[_VEIp] != null) {
        entries[_VEIp] = input[_VEIp];
      }
      if (input[_TGI] != null) {
        entries[_TGI] = input[_TGI];
      }
      if (input[_LGI] != null) {
        entries[_LGI] = input[_LGI];
      }
      if (input[_CGI] != null) {
        entries[_CGI] = input[_CGI];
      }
      if (input[_CNAo] != null) {
        entries[_CNAo] = input[_CNAo];
      }
      if (input[_ONA] != null) {
        entries[_ONA] = input[_ONA];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_RTI] != null) {
        entries[_RTI] = input[_RTI];
      }
      if (input[_DCBe] != null) {
        entries[_DCBe] = input[_DCBe];
      }
      if (input[_GI] != null) {
        entries[_GI] = input[_GI];
      }
      if (input[_DICB] != null) {
        entries[_DICB] = input[_DICB];
      }
      if (input[_EOIGI] != null) {
        entries[_EOIGI] = input[_EOIGI];
      }
      if (input[_IIn] != null) {
        entries[_IIn] = input[_IIn];
      }
      if (input[_NII] != null) {
        entries[_NII] = input[_NII];
      }
      if (input[_VPCI] != null) {
        entries[_VPCI] = input[_VPCI];
      }
      if (input[_NGI] != null) {
        entries[_NGI] = input[_NGI];
      }
      return entries;
    }, "se_CreateRouteRequest");
    var se_CreateRouteServerEndpointRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RSIo] != null) {
        entries[_RSIo] = input[_RSIo];
      }
      if (input[_SIub] != null) {
        entries[_SIub] = input[_SIub];
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_CreateRouteServerEndpointRequest");
    var se_CreateRouteServerPeerRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RSEI] != null) {
        entries[_RSEI] = input[_RSEI];
      }
      if (input[_PAe] != null) {
        entries[_PAe] = input[_PAe];
      }
      if (input[_BO] != null) {
        const memberEntries = se_RouteServerBgpOptionsRequest(input[_BO], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `BgpOptions.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_CreateRouteServerPeerRequest");
    var se_CreateRouteServerRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_ASA] != null) {
        entries[_ASA] = input[_ASA];
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_PRe] != null) {
        entries[_PRe] = input[_PRe];
      }
      if (input[_PRD] != null) {
        entries[_PRD] = input[_PRD];
      }
      if (input[_SNE] != null) {
        entries[_SNE] = input[_SNE];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_CreateRouteServerRequest");
    var se_CreateRouteTableRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_VI] != null) {
        entries[_VI] = input[_VI];
      }
      return entries;
    }, "se_CreateRouteTableRequest");
    var se_CreateSecurityGroupRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_De] != null) {
        entries[_GD] = input[_De];
      }
      if (input[_GN] != null) {
        entries[_GN] = input[_GN];
      }
      if (input[_VI] != null) {
        entries[_VI] = input[_VI];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_CreateSecurityGroupRequest");
    var se_CreateSnapshotRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      if (input[_OA] != null) {
        entries[_OA] = input[_OA];
      }
      if (input[_VIo] != null) {
        entries[_VIo] = input[_VIo];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Lo] != null) {
        entries[_Lo] = input[_Lo];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_CreateSnapshotRequest");
    var se_CreateSnapshotsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      if (input[_ISn] != null) {
        const memberEntries = se_InstanceSpecification(input[_ISn], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `InstanceSpecification.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_OA] != null) {
        entries[_OA] = input[_OA];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_CTFS] != null) {
        entries[_CTFS] = input[_CTFS];
      }
      if (input[_Lo] != null) {
        entries[_Lo] = input[_Lo];
      }
      return entries;
    }, "se_CreateSnapshotsRequest");
    var se_CreateSpotDatafeedSubscriptionRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_B] != null) {
        entries[_B] = input[_B];
      }
      if (input[_Pr2] != null) {
        entries[_Pr2] = input[_Pr2];
      }
      return entries;
    }, "se_CreateSpotDatafeedSubscriptionRequest");
    var se_CreateStoreImageTaskRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IIma] != null) {
        entries[_IIma] = input[_IIma];
      }
      if (input[_B] != null) {
        entries[_B] = input[_B];
      }
      if (input[_SOT] != null) {
        const memberEntries = se_S3ObjectTagList(input[_SOT], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `S3ObjectTag.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_CreateStoreImageTaskRequest");
    var se_CreateSubnetCidrReservationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SIub] != null) {
        entries[_SIub] = input[_SIub];
      }
      if (input[_C2] != null) {
        entries[_C2] = input[_C2];
      }
      if (input[_RTes] != null) {
        entries[_RTes] = input[_RTes];
      }
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_CreateSubnetCidrReservationRequest");
    var se_CreateSubnetRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_AZ] != null) {
        entries[_AZ] = input[_AZ];
      }
      if (input[_AZI] != null) {
        entries[_AZI] = input[_AZI];
      }
      if (input[_CB] != null) {
        entries[_CB] = input[_CB];
      }
      if (input[_ICB] != null) {
        entries[_ICB] = input[_ICB];
      }
      if (input[_OA] != null) {
        entries[_OA] = input[_OA];
      }
      if (input[_VI] != null) {
        entries[_VI] = input[_VI];
      }
      if (input[_IN] != null) {
        entries[_IN] = input[_IN];
      }
      if (input[_IIPIp] != null) {
        entries[_IIPIp] = input[_IIPIp];
      }
      if (input[_INLp] != null) {
        entries[_INLp] = input[_INLp];
      }
      if (input[_IIPI] != null) {
        entries[_IIPI] = input[_IIPI];
      }
      if (input[_INL] != null) {
        entries[_INL] = input[_INL];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_CreateSubnetRequest");
    var se_CreateTagsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_Re] != null) {
        const memberEntries = se_ResourceIdList(input[_Re], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ResourceId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Ta] != null) {
        const memberEntries = se_TagList(input[_Ta], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Tag.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_CreateTagsRequest");
    var se_CreateTrafficMirrorFilterRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      return entries;
    }, "se_CreateTrafficMirrorFilterRequest");
    var se_CreateTrafficMirrorFilterRuleRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TMFI] != null) {
        entries[_TMFI] = input[_TMFI];
      }
      if (input[_TD] != null) {
        entries[_TD] = input[_TD];
      }
      if (input[_RNu] != null) {
        entries[_RNu] = input[_RNu];
      }
      if (input[_RAu] != null) {
        entries[_RAu] = input[_RAu];
      }
      if (input[_DPR] != null) {
        const memberEntries = se_TrafficMirrorPortRangeRequest(input[_DPR], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `DestinationPortRange.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_SPR] != null) {
        const memberEntries = se_TrafficMirrorPortRangeRequest(input[_SPR], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SourcePortRange.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_P2] != null) {
        entries[_P2] = input[_P2];
      }
      if (input[_DCBe] != null) {
        entries[_DCBe] = input[_DCBe];
      }
      if (input[_SCB] != null) {
        entries[_SCB] = input[_SCB];
      }
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_CreateTrafficMirrorFilterRuleRequest");
    var se_CreateTrafficMirrorSessionRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_NII] != null) {
        entries[_NII] = input[_NII];
      }
      if (input[_TMTI] != null) {
        entries[_TMTI] = input[_TMTI];
      }
      if (input[_TMFI] != null) {
        entries[_TMFI] = input[_TMFI];
      }
      if (input[_PL] != null) {
        entries[_PL] = input[_PL];
      }
      if (input[_SN2] != null) {
        entries[_SN2] = input[_SN2];
      }
      if (input[_VNI] != null) {
        entries[_VNI] = input[_VNI];
      }
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      return entries;
    }, "se_CreateTrafficMirrorSessionRequest");
    var se_CreateTrafficMirrorTargetRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_NII] != null) {
        entries[_NII] = input[_NII];
      }
      if (input[_NLBA] != null) {
        entries[_NLBA] = input[_NLBA];
      }
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_GLBEI] != null) {
        entries[_GLBEI] = input[_GLBEI];
      }
      return entries;
    }, "se_CreateTrafficMirrorTargetRequest");
    var se_CreateTransitGatewayConnectPeerRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGAI] != null) {
        entries[_TGAI] = input[_TGAI];
      }
      if (input[_TGA] != null) {
        entries[_TGA] = input[_TGA];
      }
      if (input[_PAe] != null) {
        entries[_PAe] = input[_PAe];
      }
      if (input[_BO] != null) {
        const memberEntries = se_TransitGatewayConnectRequestBgpOptions(input[_BO], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `BgpOptions.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_ICBn] != null) {
        const memberEntries = se_InsideCidrBlocksStringList(input[_ICBn], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `InsideCidrBlocks.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_CreateTransitGatewayConnectPeerRequest");
    var se_CreateTransitGatewayConnectRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TTGAI] != null) {
        entries[_TTGAI] = input[_TTGAI];
      }
      if (input[_Op] != null) {
        const memberEntries = se_CreateTransitGatewayConnectRequestOptions(input[_Op], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Options.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_CreateTransitGatewayConnectRequest");
    var se_CreateTransitGatewayConnectRequestOptions = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_P2] != null) {
        entries[_P2] = input[_P2];
      }
      return entries;
    }, "se_CreateTransitGatewayConnectRequestOptions");
    var se_CreateTransitGatewayMulticastDomainRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGI] != null) {
        entries[_TGI] = input[_TGI];
      }
      if (input[_Op] != null) {
        const memberEntries = se_CreateTransitGatewayMulticastDomainRequestOptions(input[_Op], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Options.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_CreateTransitGatewayMulticastDomainRequest");
    var se_CreateTransitGatewayMulticastDomainRequestOptions = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_ISg] != null) {
        entries[_ISg] = input[_ISg];
      }
      if (input[_SSS] != null) {
        entries[_SSS] = input[_SSS];
      }
      if (input[_AASA] != null) {
        entries[_AASA] = input[_AASA];
      }
      return entries;
    }, "se_CreateTransitGatewayMulticastDomainRequestOptions");
    var se_CreateTransitGatewayPeeringAttachmentRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGI] != null) {
        entries[_TGI] = input[_TGI];
      }
      if (input[_PTGI] != null) {
        entries[_PTGI] = input[_PTGI];
      }
      if (input[_PAI] != null) {
        entries[_PAI] = input[_PAI];
      }
      if (input[_PRee] != null) {
        entries[_PRee] = input[_PRee];
      }
      if (input[_Op] != null) {
        const memberEntries = se_CreateTransitGatewayPeeringAttachmentRequestOptions(input[_Op], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Options.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_CreateTransitGatewayPeeringAttachmentRequest");
    var se_CreateTransitGatewayPeeringAttachmentRequestOptions = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRy] != null) {
        entries[_DRy] = input[_DRy];
      }
      return entries;
    }, "se_CreateTransitGatewayPeeringAttachmentRequestOptions");
    var se_CreateTransitGatewayPolicyTableRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGI] != null) {
        entries[_TGI] = input[_TGI];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecifications.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_CreateTransitGatewayPolicyTableRequest");
    var se_CreateTransitGatewayPrefixListReferenceRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGRTI] != null) {
        entries[_TGRTI] = input[_TGRTI];
      }
      if (input[_PLI] != null) {
        entries[_PLI] = input[_PLI];
      }
      if (input[_TGAI] != null) {
        entries[_TGAI] = input[_TGAI];
      }
      if (input[_Bl] != null) {
        entries[_Bl] = input[_Bl];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_CreateTransitGatewayPrefixListReferenceRequest");
    var se_CreateTransitGatewayRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      if (input[_Op] != null) {
        const memberEntries = se_TransitGatewayRequestOptions(input[_Op], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Options.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_CreateTransitGatewayRequest");
    var se_CreateTransitGatewayRouteRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DCBe] != null) {
        entries[_DCBe] = input[_DCBe];
      }
      if (input[_TGRTI] != null) {
        entries[_TGRTI] = input[_TGRTI];
      }
      if (input[_TGAI] != null) {
        entries[_TGAI] = input[_TGAI];
      }
      if (input[_Bl] != null) {
        entries[_Bl] = input[_Bl];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_CreateTransitGatewayRouteRequest");
    var se_CreateTransitGatewayRouteTableAnnouncementRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGRTI] != null) {
        entries[_TGRTI] = input[_TGRTI];
      }
      if (input[_PAIe] != null) {
        entries[_PAIe] = input[_PAIe];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_CreateTransitGatewayRouteTableAnnouncementRequest");
    var se_CreateTransitGatewayRouteTableRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGI] != null) {
        entries[_TGI] = input[_TGI];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecifications.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_CreateTransitGatewayRouteTableRequest");
    var se_CreateTransitGatewayVpcAttachmentRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGI] != null) {
        entries[_TGI] = input[_TGI];
      }
      if (input[_VI] != null) {
        entries[_VI] = input[_VI];
      }
      if (input[_SIu] != null) {
        const memberEntries = se_TransitGatewaySubnetIdList(input[_SIu], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SubnetIds.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Op] != null) {
        const memberEntries = se_CreateTransitGatewayVpcAttachmentRequestOptions(input[_Op], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Options.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecifications.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_CreateTransitGatewayVpcAttachmentRequest");
    var se_CreateTransitGatewayVpcAttachmentRequestOptions = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DSns] != null) {
        entries[_DSns] = input[_DSns];
      }
      if (input[_SGRS] != null) {
        entries[_SGRS] = input[_SGRS];
      }
      if (input[_ISp] != null) {
        entries[_ISp] = input[_ISp];
      }
      if (input[_AMS] != null) {
        entries[_AMS] = input[_AMS];
      }
      return entries;
    }, "se_CreateTransitGatewayVpcAttachmentRequestOptions");
    var se_CreateVerifiedAccessEndpointCidrOptions = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_P2] != null) {
        entries[_P2] = input[_P2];
      }
      if (input[_SIu] != null) {
        const memberEntries = se_CreateVerifiedAccessEndpointSubnetIdList(input[_SIu], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SubnetId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_C2] != null) {
        entries[_C2] = input[_C2];
      }
      if (input[_PRo] != null) {
        const memberEntries = se_CreateVerifiedAccessEndpointPortRangeList(input[_PRo], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `PortRange.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_CreateVerifiedAccessEndpointCidrOptions");
    var se_CreateVerifiedAccessEndpointEniOptions = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_NII] != null) {
        entries[_NII] = input[_NII];
      }
      if (input[_P2] != null) {
        entries[_P2] = input[_P2];
      }
      if (input[_Po] != null) {
        entries[_Po] = input[_Po];
      }
      if (input[_PRo] != null) {
        const memberEntries = se_CreateVerifiedAccessEndpointPortRangeList(input[_PRo], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `PortRange.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_CreateVerifiedAccessEndpointEniOptions");
    var se_CreateVerifiedAccessEndpointLoadBalancerOptions = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_P2] != null) {
        entries[_P2] = input[_P2];
      }
      if (input[_Po] != null) {
        entries[_Po] = input[_Po];
      }
      if (input[_LBAo] != null) {
        entries[_LBAo] = input[_LBAo];
      }
      if (input[_SIu] != null) {
        const memberEntries = se_CreateVerifiedAccessEndpointSubnetIdList(input[_SIu], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SubnetId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_PRo] != null) {
        const memberEntries = se_CreateVerifiedAccessEndpointPortRangeList(input[_PRo], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `PortRange.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_CreateVerifiedAccessEndpointLoadBalancerOptions");
    var se_CreateVerifiedAccessEndpointPortRange = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_FP] != null) {
        entries[_FP] = input[_FP];
      }
      if (input[_TP] != null) {
        entries[_TP] = input[_TP];
      }
      return entries;
    }, "se_CreateVerifiedAccessEndpointPortRange");
    var se_CreateVerifiedAccessEndpointPortRangeList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_CreateVerifiedAccessEndpointPortRange(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Item.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_CreateVerifiedAccessEndpointPortRangeList");
    var se_CreateVerifiedAccessEndpointRdsOptions = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_P2] != null) {
        entries[_P2] = input[_P2];
      }
      if (input[_Po] != null) {
        entries[_Po] = input[_Po];
      }
      if (input[_RDIA] != null) {
        entries[_RDIA] = input[_RDIA];
      }
      if (input[_RDCA] != null) {
        entries[_RDCA] = input[_RDCA];
      }
      if (input[_RDPA] != null) {
        entries[_RDPA] = input[_RDPA];
      }
      if (input[_RE] != null) {
        entries[_RE] = input[_RE];
      }
      if (input[_SIu] != null) {
        const memberEntries = se_CreateVerifiedAccessEndpointSubnetIdList(input[_SIu], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SubnetId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_CreateVerifiedAccessEndpointRdsOptions");
    var se_CreateVerifiedAccessEndpointRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_VAGI] != null) {
        entries[_VAGI] = input[_VAGI];
      }
      if (input[_ET] != null) {
        entries[_ET] = input[_ET];
      }
      if (input[_ATt] != null) {
        entries[_ATt] = input[_ATt];
      }
      if (input[_DCA] != null) {
        entries[_DCA] = input[_DCA];
      }
      if (input[_ADp] != null) {
        entries[_ADp] = input[_ADp];
      }
      if (input[_EDP] != null) {
        entries[_EDP] = input[_EDP];
      }
      if (input[_SGI] != null) {
        const memberEntries = se_SecurityGroupIdList(input[_SGI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SecurityGroupId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_LBO] != null) {
        const memberEntries = se_CreateVerifiedAccessEndpointLoadBalancerOptions(input[_LBO], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `LoadBalancerOptions.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_NIO] != null) {
        const memberEntries = se_CreateVerifiedAccessEndpointEniOptions(input[_NIO], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `NetworkInterfaceOptions.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      if (input[_PD] != null) {
        entries[_PD] = input[_PD];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_SS] != null) {
        const memberEntries = se_VerifiedAccessSseSpecificationRequest(input[_SS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SseSpecification.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_RO] != null) {
        const memberEntries = se_CreateVerifiedAccessEndpointRdsOptions(input[_RO], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `RdsOptions.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_CO] != null) {
        const memberEntries = se_CreateVerifiedAccessEndpointCidrOptions(input[_CO], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `CidrOptions.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_CreateVerifiedAccessEndpointRequest");
    var se_CreateVerifiedAccessEndpointSubnetIdList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_CreateVerifiedAccessEndpointSubnetIdList");
    var se_CreateVerifiedAccessGroupRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_VAII] != null) {
        entries[_VAII] = input[_VAII];
      }
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      if (input[_PD] != null) {
        entries[_PD] = input[_PD];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_SS] != null) {
        const memberEntries = se_VerifiedAccessSseSpecificationRequest(input[_SS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SseSpecification.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_CreateVerifiedAccessGroupRequest");
    var se_CreateVerifiedAccessInstanceRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_FIPSE] != null) {
        entries[_FIPSE] = input[_FIPSE];
      }
      if (input[_CECSD] != null) {
        entries[_CECSD] = input[_CECSD];
      }
      return entries;
    }, "se_CreateVerifiedAccessInstanceRequest");
    var se_CreateVerifiedAccessNativeApplicationOidcOptions = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_PSKE] != null) {
        entries[_PSKE] = input[_PSKE];
      }
      if (input[_I] != null) {
        entries[_I] = input[_I];
      }
      if (input[_AE] != null) {
        entries[_AE] = input[_AE];
      }
      if (input[_TEo] != null) {
        entries[_TEo] = input[_TEo];
      }
      if (input[_UIE] != null) {
        entries[_UIE] = input[_UIE];
      }
      if (input[_CIl] != null) {
        entries[_CIl] = input[_CIl];
      }
      if (input[_CSl] != null) {
        entries[_CSl] = input[_CSl];
      }
      if (input[_Sc] != null) {
        entries[_Sc] = input[_Sc];
      }
      return entries;
    }, "se_CreateVerifiedAccessNativeApplicationOidcOptions");
    var se_CreateVerifiedAccessTrustProviderDeviceOptions = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TIe] != null) {
        entries[_TIe] = input[_TIe];
      }
      if (input[_PSKU] != null) {
        entries[_PSKU] = input[_PSKU];
      }
      return entries;
    }, "se_CreateVerifiedAccessTrustProviderDeviceOptions");
    var se_CreateVerifiedAccessTrustProviderOidcOptions = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_I] != null) {
        entries[_I] = input[_I];
      }
      if (input[_AE] != null) {
        entries[_AE] = input[_AE];
      }
      if (input[_TEo] != null) {
        entries[_TEo] = input[_TEo];
      }
      if (input[_UIE] != null) {
        entries[_UIE] = input[_UIE];
      }
      if (input[_CIl] != null) {
        entries[_CIl] = input[_CIl];
      }
      if (input[_CSl] != null) {
        entries[_CSl] = input[_CSl];
      }
      if (input[_Sc] != null) {
        entries[_Sc] = input[_Sc];
      }
      return entries;
    }, "se_CreateVerifiedAccessTrustProviderOidcOptions");
    var se_CreateVerifiedAccessTrustProviderRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TPT] != null) {
        entries[_TPT] = input[_TPT];
      }
      if (input[_UTPT] != null) {
        entries[_UTPT] = input[_UTPT];
      }
      if (input[_DTPT] != null) {
        entries[_DTPT] = input[_DTPT];
      }
      if (input[_OO] != null) {
        const memberEntries = se_CreateVerifiedAccessTrustProviderOidcOptions(input[_OO], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `OidcOptions.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_DOe] != null) {
        const memberEntries = se_CreateVerifiedAccessTrustProviderDeviceOptions(input[_DOe], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `DeviceOptions.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_PRN] != null) {
        entries[_PRN] = input[_PRN];
      }
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_SS] != null) {
        const memberEntries = se_VerifiedAccessSseSpecificationRequest(input[_SS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SseSpecification.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_NAOO] != null) {
        const memberEntries = se_CreateVerifiedAccessNativeApplicationOidcOptions(input[_NAOO], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `NativeApplicationOidcOptions.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_CreateVerifiedAccessTrustProviderRequest");
    var se_CreateVolumePermission = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_UIs] != null) {
        entries[_UIs] = input[_UIs];
      }
      if (input[_Gr] != null) {
        entries[_Gr] = input[_Gr];
      }
      return entries;
    }, "se_CreateVolumePermission");
    var se_CreateVolumePermissionList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_CreateVolumePermission(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Item.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_CreateVolumePermissionList");
    var se_CreateVolumePermissionModifications = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Add] != null) {
        const memberEntries = se_CreateVolumePermissionList(input[_Add], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Add.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Rem] != null) {
        const memberEntries = se_CreateVolumePermissionList(input[_Rem], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Remove.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_CreateVolumePermissionModifications");
    var se_CreateVolumeRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_AZ] != null) {
        entries[_AZ] = input[_AZ];
      }
      if (input[_AZI] != null) {
        entries[_AZI] = input[_AZI];
      }
      if (input[_Enc] != null) {
        entries[_Enc] = input[_Enc];
      }
      if (input[_Io] != null) {
        entries[_Io] = input[_Io];
      }
      if (input[_KKI] != null) {
        entries[_KKI] = input[_KKI];
      }
      if (input[_OA] != null) {
        entries[_OA] = input[_OA];
      }
      if (input[_Siz] != null) {
        entries[_Siz] = input[_Siz];
      }
      if (input[_SIn] != null) {
        entries[_SIn] = input[_SIn];
      }
      if (input[_VT] != null) {
        entries[_VT] = input[_VT];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MAE] != null) {
        entries[_MAE] = input[_MAE];
      }
      if (input[_Th] != null) {
        entries[_Th] = input[_Th];
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_VIR] != null) {
        entries[_VIR] = input[_VIR];
      }
      if (input[_O] != null) {
        const memberEntries = se_OperatorRequest(input[_O], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Operator.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_CreateVolumeRequest");
    var se_CreateVpcBlockPublicAccessExclusionRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_SIub] != null) {
        entries[_SIub] = input[_SIub];
      }
      if (input[_VI] != null) {
        entries[_VI] = input[_VI];
      }
      if (input[_IGEM] != null) {
        entries[_IGEM] = input[_IGEM];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_CreateVpcBlockPublicAccessExclusionRequest");
    var se_CreateVpcEndpointConnectionNotificationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_SIe] != null) {
        entries[_SIe] = input[_SIe];
      }
      if (input[_VEIp] != null) {
        entries[_VEIp] = input[_VEIp];
      }
      if (input[_CNAon] != null) {
        entries[_CNAon] = input[_CNAon];
      }
      if (input[_CEo] != null) {
        const memberEntries = se_ValueStringList(input[_CEo], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ConnectionEvents.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      return entries;
    }, "se_CreateVpcEndpointConnectionNotificationRequest");
    var se_CreateVpcEndpointRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_VET] != null) {
        entries[_VET] = input[_VET];
      }
      if (input[_VI] != null) {
        entries[_VI] = input[_VI];
      }
      if (input[_SNe] != null) {
        entries[_SNe] = input[_SNe];
      }
      if (input[_PD] != null) {
        entries[_PD] = input[_PD];
      }
      if (input[_RTIo] != null) {
        const memberEntries = se_VpcEndpointRouteTableIdList(input[_RTIo], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `RouteTableId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_SIu] != null) {
        const memberEntries = se_VpcEndpointSubnetIdList(input[_SIu], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SubnetId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_SGI] != null) {
        const memberEntries = se_VpcEndpointSecurityGroupIdList(input[_SGI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SecurityGroupId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_IAT] != null) {
        entries[_IAT] = input[_IAT];
      }
      if (input[_DOn] != null) {
        const memberEntries = se_DnsOptionsSpecification(input[_DOn], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `DnsOptions.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_PDE] != null) {
        entries[_PDE] = input[_PDE];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_SC] != null) {
        const memberEntries = se_SubnetConfigurationsList(input[_SC], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SubnetConfiguration.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_SNA] != null) {
        entries[_SNA] = input[_SNA];
      }
      if (input[_RCA] != null) {
        entries[_RCA] = input[_RCA];
      }
      if (input[_SRe] != null) {
        entries[_SRe] = input[_SRe];
      }
      return entries;
    }, "se_CreateVpcEndpointRequest");
    var se_CreateVpcEndpointServiceConfigurationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_ARc] != null) {
        entries[_ARc] = input[_ARc];
      }
      if (input[_PDN] != null) {
        entries[_PDN] = input[_PDN];
      }
      if (input[_NLBAe] != null) {
        const memberEntries = se_ValueStringList(input[_NLBAe], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `NetworkLoadBalancerArn.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_GLBA] != null) {
        const memberEntries = se_ValueStringList(input[_GLBA], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `GatewayLoadBalancerArn.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_SIAT] != null) {
        const memberEntries = se_ValueStringList(input[_SIAT], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SupportedIpAddressType.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_SRu] != null) {
        const memberEntries = se_ValueStringList(input[_SRu], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SupportedRegion.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_CreateVpcEndpointServiceConfigurationRequest");
    var se_CreateVpcPeeringConnectionRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_PRee] != null) {
        entries[_PRee] = input[_PRee];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_VI] != null) {
        entries[_VI] = input[_VI];
      }
      if (input[_PVI] != null) {
        entries[_PVI] = input[_PVI];
      }
      if (input[_POI] != null) {
        entries[_POI] = input[_POI];
      }
      return entries;
    }, "se_CreateVpcPeeringConnectionRequest");
    var se_CreateVpcRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CB] != null) {
        entries[_CB] = input[_CB];
      }
      if (input[_IPpv] != null) {
        entries[_IPpv] = input[_IPpv];
      }
      if (input[_ICB] != null) {
        entries[_ICB] = input[_ICB];
      }
      if (input[_IIPIp] != null) {
        entries[_IIPIp] = input[_IIPIp];
      }
      if (input[_INLp] != null) {
        entries[_INLp] = input[_INLp];
      }
      if (input[_IIPI] != null) {
        entries[_IIPI] = input[_IIPI];
      }
      if (input[_INL] != null) {
        entries[_INL] = input[_INL];
      }
      if (input[_ICBNBG] != null) {
        entries[_ICBNBG] = input[_ICBNBG];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_ITns] != null) {
        entries[_ITns] = input[_ITns];
      }
      if (input[_APICB] != null) {
        entries[_APICB] = input[_APICB];
      }
      return entries;
    }, "se_CreateVpcRequest");
    var se_CreateVpnConnectionRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CGIu] != null) {
        entries[_CGIu] = input[_CGIu];
      }
      if (input[_T2] != null) {
        entries[_T2] = input[_T2];
      }
      if (input[_VGI] != null) {
        entries[_VGI] = input[_VGI];
      }
      if (input[_TGI] != null) {
        entries[_TGI] = input[_TGI];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_PSKS] != null) {
        entries[_PSKS] = input[_PSKS];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_Op] != null) {
        const memberEntries = se_VpnConnectionOptionsSpecification(input[_Op], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Options.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_CreateVpnConnectionRequest");
    var se_CreateVpnConnectionRouteRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DCBe] != null) {
        entries[_DCBe] = input[_DCBe];
      }
      if (input[_VCI] != null) {
        entries[_VCI] = input[_VCI];
      }
      return entries;
    }, "se_CreateVpnConnectionRouteRequest");
    var se_CreateVpnGatewayRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_AZ] != null) {
        entries[_AZ] = input[_AZ];
      }
      if (input[_T2] != null) {
        entries[_T2] = input[_T2];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_ASA] != null) {
        entries[_ASA] = input[_ASA];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_CreateVpnGatewayRequest");
    var se_CreditSpecificationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CCp] != null) {
        entries[_CCp] = input[_CCp];
      }
      return entries;
    }, "se_CreditSpecificationRequest");
    var se_CustomerGatewayIdStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`CustomerGatewayId.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_CustomerGatewayIdStringList");
    var se_DataQueries = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_DataQuery(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Member.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_DataQueries");
    var se_DataQuery = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Id] != null) {
        entries[_Id] = input[_Id];
      }
      if (input[_S] != null) {
        entries[_S] = input[_S];
      }
      if (input[_D] != null) {
        entries[_D] = input[_D];
      }
      if (input[_Met] != null) {
        entries[_Met] = input[_Met];
      }
      if (input[_Sta] != null) {
        entries[_Sta] = input[_Sta];
      }
      if (input[_Per] != null) {
        entries[_Per] = input[_Per];
      }
      return entries;
    }, "se_DataQuery");
    var se_DedicatedHostIdList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_DedicatedHostIdList");
    var se_DeleteCarrierGatewayRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CGI] != null) {
        entries[_CGI] = input[_CGI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DeleteCarrierGatewayRequest");
    var se_DeleteClientVpnEndpointRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CVEI] != null) {
        entries[_CVEI] = input[_CVEI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DeleteClientVpnEndpointRequest");
    var se_DeleteClientVpnRouteRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CVEI] != null) {
        entries[_CVEI] = input[_CVEI];
      }
      if (input[_TVSI] != null) {
        entries[_TVSI] = input[_TVSI];
      }
      if (input[_DCBe] != null) {
        entries[_DCBe] = input[_DCBe];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DeleteClientVpnRouteRequest");
    var se_DeleteCoipCidrRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_C2] != null) {
        entries[_C2] = input[_C2];
      }
      if (input[_CPIo] != null) {
        entries[_CPIo] = input[_CPIo];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DeleteCoipCidrRequest");
    var se_DeleteCoipPoolRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CPIo] != null) {
        entries[_CPIo] = input[_CPIo];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DeleteCoipPoolRequest");
    var se_DeleteCustomerGatewayRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CGIu] != null) {
        entries[_CGIu] = input[_CGIu];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DeleteCustomerGatewayRequest");
    var se_DeleteDhcpOptionsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DOI] != null) {
        entries[_DOI] = input[_DOI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DeleteDhcpOptionsRequest");
    var se_DeleteEgressOnlyInternetGatewayRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_EOIGI] != null) {
        entries[_EOIGI] = input[_EOIGI];
      }
      return entries;
    }, "se_DeleteEgressOnlyInternetGatewayRequest");
    var se_DeleteFleetsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_FI] != null) {
        const memberEntries = se_FleetIdSet(input[_FI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `FleetId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_TI] != null) {
        entries[_TI] = input[_TI];
      }
      return entries;
    }, "se_DeleteFleetsRequest");
    var se_DeleteFlowLogsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_FLI] != null) {
        const memberEntries = se_FlowLogIdList(input[_FLI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `FlowLogId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DeleteFlowLogsRequest");
    var se_DeleteFpgaImageRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_FII] != null) {
        entries[_FII] = input[_FII];
      }
      return entries;
    }, "se_DeleteFpgaImageRequest");
    var se_DeleteImageUsageReportRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RIep] != null) {
        entries[_RIep] = input[_RIep];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DeleteImageUsageReportRequest");
    var se_DeleteInstanceConnectEndpointRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_ICEI] != null) {
        entries[_ICEI] = input[_ICEI];
      }
      return entries;
    }, "se_DeleteInstanceConnectEndpointRequest");
    var se_DeleteInstanceEventWindowRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_FD] != null) {
        entries[_FD] = input[_FD];
      }
      if (input[_IEWI] != null) {
        entries[_IEWI] = input[_IEWI];
      }
      return entries;
    }, "se_DeleteInstanceEventWindowRequest");
    var se_DeleteInternetGatewayRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_IGI] != null) {
        entries[_IGI] = input[_IGI];
      }
      return entries;
    }, "se_DeleteInternetGatewayRequest");
    var se_DeleteIpamExternalResourceVerificationTokenRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_IERVTI] != null) {
        entries[_IERVTI] = input[_IERVTI];
      }
      return entries;
    }, "se_DeleteIpamExternalResourceVerificationTokenRequest");
    var se_DeleteIpamPoolRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_IPI] != null) {
        entries[_IPI] = input[_IPI];
      }
      if (input[_Ca] != null) {
        entries[_Ca] = input[_Ca];
      }
      return entries;
    }, "se_DeleteIpamPoolRequest");
    var se_DeleteIpamRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_IIp] != null) {
        entries[_IIp] = input[_IIp];
      }
      if (input[_Ca] != null) {
        entries[_Ca] = input[_Ca];
      }
      return entries;
    }, "se_DeleteIpamRequest");
    var se_DeleteIpamResourceDiscoveryRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_IRDI] != null) {
        entries[_IRDI] = input[_IRDI];
      }
      return entries;
    }, "se_DeleteIpamResourceDiscoveryRequest");
    var se_DeleteIpamScopeRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_ISI] != null) {
        entries[_ISI] = input[_ISI];
      }
      return entries;
    }, "se_DeleteIpamScopeRequest");
    var se_DeleteKeyPairRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_KN] != null) {
        entries[_KN] = input[_KN];
      }
      if (input[_KPI] != null) {
        entries[_KPI] = input[_KPI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DeleteKeyPairRequest");
    var se_DeleteLaunchTemplateRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_LTI] != null) {
        entries[_LTI] = input[_LTI];
      }
      if (input[_LTN] != null) {
        entries[_LTN] = input[_LTN];
      }
      return entries;
    }, "se_DeleteLaunchTemplateRequest");
    var se_DeleteLaunchTemplateVersionsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_LTI] != null) {
        entries[_LTI] = input[_LTI];
      }
      if (input[_LTN] != null) {
        entries[_LTN] = input[_LTN];
      }
      if (input[_Ve] != null) {
        const memberEntries = se_VersionStringList(input[_Ve], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `LaunchTemplateVersion.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DeleteLaunchTemplateVersionsRequest");
    var se_DeleteLocalGatewayRouteRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DCBe] != null) {
        entries[_DCBe] = input[_DCBe];
      }
      if (input[_LGRTI] != null) {
        entries[_LGRTI] = input[_LGRTI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_DPLI] != null) {
        entries[_DPLI] = input[_DPLI];
      }
      return entries;
    }, "se_DeleteLocalGatewayRouteRequest");
    var se_DeleteLocalGatewayRouteTableRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_LGRTI] != null) {
        entries[_LGRTI] = input[_LGRTI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DeleteLocalGatewayRouteTableRequest");
    var se_DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_LGRTVIGAI] != null) {
        entries[_LGRTVIGAI] = input[_LGRTVIGAI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest");
    var se_DeleteLocalGatewayRouteTableVpcAssociationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_LGRTVAI] != null) {
        entries[_LGRTVAI] = input[_LGRTVAI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DeleteLocalGatewayRouteTableVpcAssociationRequest");
    var se_DeleteLocalGatewayVirtualInterfaceGroupRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_LGVIGI] != null) {
        entries[_LGVIGI] = input[_LGVIGI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DeleteLocalGatewayVirtualInterfaceGroupRequest");
    var se_DeleteLocalGatewayVirtualInterfaceRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_LGVII] != null) {
        entries[_LGVII] = input[_LGVII];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DeleteLocalGatewayVirtualInterfaceRequest");
    var se_DeleteManagedPrefixListRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_PLI] != null) {
        entries[_PLI] = input[_PLI];
      }
      return entries;
    }, "se_DeleteManagedPrefixListRequest");
    var se_DeleteNatGatewayRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_NGI] != null) {
        entries[_NGI] = input[_NGI];
      }
      return entries;
    }, "se_DeleteNatGatewayRequest");
    var se_DeleteNetworkAclEntryRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_NAI] != null) {
        entries[_NAI] = input[_NAI];
      }
      if (input[_RNu] != null) {
        entries[_RNu] = input[_RNu];
      }
      if (input[_Eg] != null) {
        entries[_Eg] = input[_Eg];
      }
      return entries;
    }, "se_DeleteNetworkAclEntryRequest");
    var se_DeleteNetworkAclRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_NAI] != null) {
        entries[_NAI] = input[_NAI];
      }
      return entries;
    }, "se_DeleteNetworkAclRequest");
    var se_DeleteNetworkInsightsAccessScopeAnalysisRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_NIASAI] != null) {
        entries[_NIASAI] = input[_NIASAI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DeleteNetworkInsightsAccessScopeAnalysisRequest");
    var se_DeleteNetworkInsightsAccessScopeRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_NIASI] != null) {
        entries[_NIASI] = input[_NIASI];
      }
      return entries;
    }, "se_DeleteNetworkInsightsAccessScopeRequest");
    var se_DeleteNetworkInsightsAnalysisRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_NIAI] != null) {
        entries[_NIAI] = input[_NIAI];
      }
      return entries;
    }, "se_DeleteNetworkInsightsAnalysisRequest");
    var se_DeleteNetworkInsightsPathRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_NIPI] != null) {
        entries[_NIPI] = input[_NIPI];
      }
      return entries;
    }, "se_DeleteNetworkInsightsPathRequest");
    var se_DeleteNetworkInterfacePermissionRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_NIPIe] != null) {
        entries[_NIPIe] = input[_NIPIe];
      }
      if (input[_F] != null) {
        entries[_F] = input[_F];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DeleteNetworkInterfacePermissionRequest");
    var se_DeleteNetworkInterfaceRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_NII] != null) {
        entries[_NII] = input[_NII];
      }
      return entries;
    }, "se_DeleteNetworkInterfaceRequest");
    var se_DeletePlacementGroupRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_GN] != null) {
        entries[_GN] = input[_GN];
      }
      return entries;
    }, "se_DeletePlacementGroupRequest");
    var se_DeletePublicIpv4PoolRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_PIo] != null) {
        entries[_PIo] = input[_PIo];
      }
      if (input[_NBG] != null) {
        entries[_NBG] = input[_NBG];
      }
      return entries;
    }, "se_DeletePublicIpv4PoolRequest");
    var se_DeleteQueuedReservedInstancesIdList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_DeleteQueuedReservedInstancesIdList");
    var se_DeleteQueuedReservedInstancesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_RIIes] != null) {
        const memberEntries = se_DeleteQueuedReservedInstancesIdList(input[_RIIes], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ReservedInstancesId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DeleteQueuedReservedInstancesRequest");
    var se_DeleteRouteRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DPLI] != null) {
        entries[_DPLI] = input[_DPLI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_RTI] != null) {
        entries[_RTI] = input[_RTI];
      }
      if (input[_DCBe] != null) {
        entries[_DCBe] = input[_DCBe];
      }
      if (input[_DICB] != null) {
        entries[_DICB] = input[_DICB];
      }
      return entries;
    }, "se_DeleteRouteRequest");
    var se_DeleteRouteServerEndpointRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RSEI] != null) {
        entries[_RSEI] = input[_RSEI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DeleteRouteServerEndpointRequest");
    var se_DeleteRouteServerPeerRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RSPI] != null) {
        entries[_RSPI] = input[_RSPI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DeleteRouteServerPeerRequest");
    var se_DeleteRouteServerRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RSIo] != null) {
        entries[_RSIo] = input[_RSIo];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DeleteRouteServerRequest");
    var se_DeleteRouteTableRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_RTI] != null) {
        entries[_RTI] = input[_RTI];
      }
      return entries;
    }, "se_DeleteRouteTableRequest");
    var se_DeleteSecurityGroupRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_GIr] != null) {
        entries[_GIr] = input[_GIr];
      }
      if (input[_GN] != null) {
        entries[_GN] = input[_GN];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DeleteSecurityGroupRequest");
    var se_DeleteSnapshotRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SIn] != null) {
        entries[_SIn] = input[_SIn];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DeleteSnapshotRequest");
    var se_DeleteSpotDatafeedSubscriptionRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DeleteSpotDatafeedSubscriptionRequest");
    var se_DeleteSubnetCidrReservationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SCRIu] != null) {
        entries[_SCRIu] = input[_SCRIu];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DeleteSubnetCidrReservationRequest");
    var se_DeleteSubnetRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SIub] != null) {
        entries[_SIub] = input[_SIub];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DeleteSubnetRequest");
    var se_DeleteTagsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_Re] != null) {
        const memberEntries = se_ResourceIdList(input[_Re], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ResourceId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Ta] != null) {
        const memberEntries = se_TagList(input[_Ta], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Tag.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DeleteTagsRequest");
    var se_DeleteTrafficMirrorFilterRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TMFI] != null) {
        entries[_TMFI] = input[_TMFI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DeleteTrafficMirrorFilterRequest");
    var se_DeleteTrafficMirrorFilterRuleRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TMFRI] != null) {
        entries[_TMFRI] = input[_TMFRI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DeleteTrafficMirrorFilterRuleRequest");
    var se_DeleteTrafficMirrorSessionRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TMSI] != null) {
        entries[_TMSI] = input[_TMSI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DeleteTrafficMirrorSessionRequest");
    var se_DeleteTrafficMirrorTargetRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TMTI] != null) {
        entries[_TMTI] = input[_TMTI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DeleteTrafficMirrorTargetRequest");
    var se_DeleteTransitGatewayConnectPeerRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGCPI] != null) {
        entries[_TGCPI] = input[_TGCPI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DeleteTransitGatewayConnectPeerRequest");
    var se_DeleteTransitGatewayConnectRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGAI] != null) {
        entries[_TGAI] = input[_TGAI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DeleteTransitGatewayConnectRequest");
    var se_DeleteTransitGatewayMulticastDomainRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGMDI] != null) {
        entries[_TGMDI] = input[_TGMDI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DeleteTransitGatewayMulticastDomainRequest");
    var se_DeleteTransitGatewayPeeringAttachmentRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGAI] != null) {
        entries[_TGAI] = input[_TGAI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DeleteTransitGatewayPeeringAttachmentRequest");
    var se_DeleteTransitGatewayPolicyTableRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGPTI] != null) {
        entries[_TGPTI] = input[_TGPTI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DeleteTransitGatewayPolicyTableRequest");
    var se_DeleteTransitGatewayPrefixListReferenceRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGRTI] != null) {
        entries[_TGRTI] = input[_TGRTI];
      }
      if (input[_PLI] != null) {
        entries[_PLI] = input[_PLI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DeleteTransitGatewayPrefixListReferenceRequest");
    var se_DeleteTransitGatewayRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGI] != null) {
        entries[_TGI] = input[_TGI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DeleteTransitGatewayRequest");
    var se_DeleteTransitGatewayRouteRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGRTI] != null) {
        entries[_TGRTI] = input[_TGRTI];
      }
      if (input[_DCBe] != null) {
        entries[_DCBe] = input[_DCBe];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DeleteTransitGatewayRouteRequest");
    var se_DeleteTransitGatewayRouteTableAnnouncementRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGRTAI] != null) {
        entries[_TGRTAI] = input[_TGRTAI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DeleteTransitGatewayRouteTableAnnouncementRequest");
    var se_DeleteTransitGatewayRouteTableRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGRTI] != null) {
        entries[_TGRTI] = input[_TGRTI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DeleteTransitGatewayRouteTableRequest");
    var se_DeleteTransitGatewayVpcAttachmentRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGAI] != null) {
        entries[_TGAI] = input[_TGAI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DeleteTransitGatewayVpcAttachmentRequest");
    var se_DeleteVerifiedAccessEndpointRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_VAEI] != null) {
        entries[_VAEI] = input[_VAEI];
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DeleteVerifiedAccessEndpointRequest");
    var se_DeleteVerifiedAccessGroupRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_VAGI] != null) {
        entries[_VAGI] = input[_VAGI];
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DeleteVerifiedAccessGroupRequest");
    var se_DeleteVerifiedAccessInstanceRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_VAII] != null) {
        entries[_VAII] = input[_VAII];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      return entries;
    }, "se_DeleteVerifiedAccessInstanceRequest");
    var se_DeleteVerifiedAccessTrustProviderRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_VATPI] != null) {
        entries[_VATPI] = input[_VATPI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      return entries;
    }, "se_DeleteVerifiedAccessTrustProviderRequest");
    var se_DeleteVolumeRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_VIo] != null) {
        entries[_VIo] = input[_VIo];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DeleteVolumeRequest");
    var se_DeleteVpcBlockPublicAccessExclusionRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_EIxc] != null) {
        entries[_EIxc] = input[_EIxc];
      }
      return entries;
    }, "se_DeleteVpcBlockPublicAccessExclusionRequest");
    var se_DeleteVpcEndpointConnectionNotificationsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_CNIo] != null) {
        const memberEntries = se_ConnectionNotificationIdsList(input[_CNIo], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ConnectionNotificationId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DeleteVpcEndpointConnectionNotificationsRequest");
    var se_DeleteVpcEndpointServiceConfigurationsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_SIer] != null) {
        const memberEntries = se_VpcEndpointServiceIdList(input[_SIer], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ServiceId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DeleteVpcEndpointServiceConfigurationsRequest");
    var se_DeleteVpcEndpointsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_VEI] != null) {
        const memberEntries = se_VpcEndpointIdList(input[_VEI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `VpcEndpointId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DeleteVpcEndpointsRequest");
    var se_DeleteVpcPeeringConnectionRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_VPCI] != null) {
        entries[_VPCI] = input[_VPCI];
      }
      return entries;
    }, "se_DeleteVpcPeeringConnectionRequest");
    var se_DeleteVpcRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_VI] != null) {
        entries[_VI] = input[_VI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DeleteVpcRequest");
    var se_DeleteVpnConnectionRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_VCI] != null) {
        entries[_VCI] = input[_VCI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DeleteVpnConnectionRequest");
    var se_DeleteVpnConnectionRouteRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DCBe] != null) {
        entries[_DCBe] = input[_DCBe];
      }
      if (input[_VCI] != null) {
        entries[_VCI] = input[_VCI];
      }
      return entries;
    }, "se_DeleteVpnConnectionRouteRequest");
    var se_DeleteVpnGatewayRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_VGI] != null) {
        entries[_VGI] = input[_VGI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DeleteVpnGatewayRequest");
    var se_DeprovisionByoipCidrRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_C2] != null) {
        entries[_C2] = input[_C2];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DeprovisionByoipCidrRequest");
    var se_DeprovisionIpamByoasnRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_IIp] != null) {
        entries[_IIp] = input[_IIp];
      }
      if (input[_As] != null) {
        entries[_As] = input[_As];
      }
      return entries;
    }, "se_DeprovisionIpamByoasnRequest");
    var se_DeprovisionIpamPoolCidrRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_IPI] != null) {
        entries[_IPI] = input[_IPI];
      }
      if (input[_C2] != null) {
        entries[_C2] = input[_C2];
      }
      return entries;
    }, "se_DeprovisionIpamPoolCidrRequest");
    var se_DeprovisionPublicIpv4PoolCidrRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_PIo] != null) {
        entries[_PIo] = input[_PIo];
      }
      if (input[_C2] != null) {
        entries[_C2] = input[_C2];
      }
      return entries;
    }, "se_DeprovisionPublicIpv4PoolCidrRequest");
    var se_DeregisterImageRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IIma] != null) {
        entries[_IIma] = input[_IIma];
      }
      if (input[_DAS] != null) {
        entries[_DAS] = input[_DAS];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DeregisterImageRequest");
    var se_DeregisterInstanceEventNotificationAttributesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_ITA] != null) {
        const memberEntries = se_DeregisterInstanceTagAttributeRequest(input[_ITA], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `InstanceTagAttribute.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DeregisterInstanceEventNotificationAttributesRequest");
    var se_DeregisterInstanceTagAttributeRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IATOI] != null) {
        entries[_IATOI] = input[_IATOI];
      }
      if (input[_ITK] != null) {
        const memberEntries = se_InstanceTagKeySet(input[_ITK], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `InstanceTagKey.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DeregisterInstanceTagAttributeRequest");
    var se_DeregisterTransitGatewayMulticastGroupMembersRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGMDI] != null) {
        entries[_TGMDI] = input[_TGMDI];
      }
      if (input[_GIA] != null) {
        entries[_GIA] = input[_GIA];
      }
      if (input[_NIIe] != null) {
        const memberEntries = se_TransitGatewayNetworkInterfaceIdList(input[_NIIe], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `NetworkInterfaceIds.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DeregisterTransitGatewayMulticastGroupMembersRequest");
    var se_DeregisterTransitGatewayMulticastGroupSourcesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGMDI] != null) {
        entries[_TGMDI] = input[_TGMDI];
      }
      if (input[_GIA] != null) {
        entries[_GIA] = input[_GIA];
      }
      if (input[_NIIe] != null) {
        const memberEntries = se_TransitGatewayNetworkInterfaceIdList(input[_NIIe], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `NetworkInterfaceIds.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DeregisterTransitGatewayMulticastGroupSourcesRequest");
    var se_DescribeAccountAttributesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_AN] != null) {
        const memberEntries = se_AccountAttributeNameStringList(input[_AN], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AttributeName.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DescribeAccountAttributesRequest");
    var se_DescribeAddressesAttributeRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_AIll] != null) {
        const memberEntries = se_AllocationIds(input[_AIll], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AllocationId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_At] != null) {
        entries[_At] = input[_At];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeAddressesAttributeRequest");
    var se_DescribeAddressesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_PIu] != null) {
        const memberEntries = se_PublicIpStringList(input[_PIu], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `PublicIp.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_AIll] != null) {
        const memberEntries = se_AllocationIdList(input[_AIll], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AllocationId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DescribeAddressesRequest");
    var se_DescribeAddressTransfersRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_AIll] != null) {
        const memberEntries = se_AllocationIdList(input[_AIll], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AllocationId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeAddressTransfersRequest");
    var se_DescribeAggregateIdFormatRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeAggregateIdFormatRequest");
    var se_DescribeAvailabilityZonesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_ZN] != null) {
        const memberEntries = se_ZoneNameStringList(input[_ZN], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ZoneName.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_ZI] != null) {
        const memberEntries = se_ZoneIdStringList(input[_ZI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ZoneId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_AAZ] != null) {
        entries[_AAZ] = input[_AAZ];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DescribeAvailabilityZonesRequest");
    var se_DescribeAwsNetworkPerformanceMetricSubscriptionsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeAwsNetworkPerformanceMetricSubscriptionsRequest");
    var se_DescribeBundleTasksRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_BIun] != null) {
        const memberEntries = se_BundleIdStringList(input[_BIun], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `BundleId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DescribeBundleTasksRequest");
    var se_DescribeByoipCidrsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      return entries;
    }, "se_DescribeByoipCidrsRequest");
    var se_DescribeCapacityBlockExtensionHistoryRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CRIa] != null) {
        const memberEntries = se_CapacityReservationIdSet(input[_CRIa], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `CapacityReservationId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeCapacityBlockExtensionHistoryRequest");
    var se_DescribeCapacityBlockExtensionOfferingsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_CBEDH] != null) {
        entries[_CBEDH] = input[_CBEDH];
      }
      if (input[_CRI] != null) {
        entries[_CRI] = input[_CRI];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      return entries;
    }, "se_DescribeCapacityBlockExtensionOfferingsRequest");
    var se_DescribeCapacityBlockOfferingsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_IT] != null) {
        entries[_IT] = input[_IT];
      }
      if (input[_IC] != null) {
        entries[_IC] = input[_IC];
      }
      if (input[_SDR] != null) {
        entries[_SDR] = (0, import_smithy_client28.serializeDateTime)(input[_SDR]);
      }
      if (input[_EDR] != null) {
        entries[_EDR] = (0, import_smithy_client28.serializeDateTime)(input[_EDR]);
      }
      if (input[_CDH] != null) {
        entries[_CDH] = input[_CDH];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_UTl] != null) {
        entries[_UTl] = input[_UTl];
      }
      if (input[_UC] != null) {
        entries[_UC] = input[_UC];
      }
      return entries;
    }, "se_DescribeCapacityBlockOfferingsRequest");
    var se_DescribeCapacityBlocksRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CBI] != null) {
        const memberEntries = se_CapacityBlockIds(input[_CBI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `CapacityBlockId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeCapacityBlocksRequest");
    var se_DescribeCapacityBlockStatusRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CBI] != null) {
        const memberEntries = se_CapacityBlockIds(input[_CBI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `CapacityBlockId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeCapacityBlockStatusRequest");
    var se_DescribeCapacityReservationBillingRequestsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CRIa] != null) {
        const memberEntries = se_CapacityReservationIdSet(input[_CRIa], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `CapacityReservationId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Ro] != null) {
        entries[_Ro] = input[_Ro];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeCapacityReservationBillingRequestsRequest");
    var se_DescribeCapacityReservationFleetsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CRFI] != null) {
        const memberEntries = se_CapacityReservationFleetIdSet(input[_CRFI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `CapacityReservationFleetId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeCapacityReservationFleetsRequest");
    var se_DescribeCapacityReservationsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CRIa] != null) {
        const memberEntries = se_CapacityReservationIdSet(input[_CRIa], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `CapacityReservationId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeCapacityReservationsRequest");
    var se_DescribeCarrierGatewaysRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CGIa] != null) {
        const memberEntries = se_CarrierGatewayIdSet(input[_CGIa], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `CarrierGatewayId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeCarrierGatewaysRequest");
    var se_DescribeClassicLinkInstancesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_IIns] != null) {
        const memberEntries = se_InstanceIdStringList(input[_IIns], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `InstanceId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      return entries;
    }, "se_DescribeClassicLinkInstancesRequest");
    var se_DescribeClientVpnAuthorizationRulesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CVEI] != null) {
        entries[_CVEI] = input[_CVEI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      return entries;
    }, "se_DescribeClientVpnAuthorizationRulesRequest");
    var se_DescribeClientVpnConnectionsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CVEI] != null) {
        entries[_CVEI] = input[_CVEI];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeClientVpnConnectionsRequest");
    var se_DescribeClientVpnEndpointsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CVEIl] != null) {
        const memberEntries = se_ClientVpnEndpointIdList(input[_CVEIl], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ClientVpnEndpointId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeClientVpnEndpointsRequest");
    var se_DescribeClientVpnRoutesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CVEI] != null) {
        entries[_CVEI] = input[_CVEI];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeClientVpnRoutesRequest");
    var se_DescribeClientVpnTargetNetworksRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CVEI] != null) {
        entries[_CVEI] = input[_CVEI];
      }
      if (input[_AIs] != null) {
        const memberEntries = se_ValueStringList(input[_AIs], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AssociationIds.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeClientVpnTargetNetworksRequest");
    var se_DescribeCoipPoolsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_PIoo] != null) {
        const memberEntries = se_CoipPoolIdSet(input[_PIoo], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `PoolId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeCoipPoolsRequest");
    var se_DescribeConversionTasksRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_CTIo] != null) {
        const memberEntries = se_ConversionIdStringList(input[_CTIo], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ConversionTaskId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DescribeConversionTasksRequest");
    var se_DescribeCustomerGatewaysRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CGIus] != null) {
        const memberEntries = se_CustomerGatewayIdStringList(input[_CGIus], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `CustomerGatewayId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeCustomerGatewaysRequest");
    var se_DescribeDeclarativePoliciesReportsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_RIepo] != null) {
        const memberEntries = se_ValueStringList(input[_RIepo], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ReportId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DescribeDeclarativePoliciesReportsRequest");
    var se_DescribeDhcpOptionsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DOIh] != null) {
        const memberEntries = se_DhcpOptionsIdStringList(input[_DOIh], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `DhcpOptionsId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DescribeDhcpOptionsRequest");
    var se_DescribeEgressOnlyInternetGatewaysRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_EOIGIg] != null) {
        const memberEntries = se_EgressOnlyInternetGatewayIdList(input[_EOIGIg], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `EgressOnlyInternetGatewayId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DescribeEgressOnlyInternetGatewaysRequest");
    var se_DescribeElasticGpusRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_EGI] != null) {
        const memberEntries = se_ElasticGpuIdSet(input[_EGI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ElasticGpuId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      return entries;
    }, "se_DescribeElasticGpusRequest");
    var se_DescribeExportImageTasksRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_EITI] != null) {
        const memberEntries = se_ExportImageTaskIdList(input[_EITI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ExportImageTaskId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      return entries;
    }, "se_DescribeExportImageTasksRequest");
    var se_DescribeExportTasksRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_ETIx] != null) {
        const memberEntries = se_ExportTaskIdStringList(input[_ETIx], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ExportTaskId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DescribeExportTasksRequest");
    var se_DescribeFastLaunchImagesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IImag] != null) {
        const memberEntries = se_FastLaunchImageIdList(input[_IImag], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ImageId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeFastLaunchImagesRequest");
    var se_DescribeFastSnapshotRestoresRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeFastSnapshotRestoresRequest");
    var se_DescribeFleetHistoryRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_ETv] != null) {
        entries[_ETv] = input[_ETv];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_FIl] != null) {
        entries[_FIl] = input[_FIl];
      }
      if (input[_STt] != null) {
        entries[_STt] = (0, import_smithy_client28.serializeDateTime)(input[_STt]);
      }
      return entries;
    }, "se_DescribeFleetHistoryRequest");
    var se_DescribeFleetInstancesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_FIl] != null) {
        entries[_FIl] = input[_FIl];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DescribeFleetInstancesRequest");
    var se_DescribeFleetsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_FI] != null) {
        const memberEntries = se_FleetIdSet(input[_FI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `FleetId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DescribeFleetsRequest");
    var se_DescribeFlowLogsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_Fil] != null) {
        const memberEntries = se_FilterList(input[_Fil], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_FLI] != null) {
        const memberEntries = se_FlowLogIdList(input[_FLI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `FlowLogId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      return entries;
    }, "se_DescribeFlowLogsRequest");
    var se_DescribeFpgaImageAttributeRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_FII] != null) {
        entries[_FII] = input[_FII];
      }
      if (input[_At] != null) {
        entries[_At] = input[_At];
      }
      return entries;
    }, "se_DescribeFpgaImageAttributeRequest");
    var se_DescribeFpgaImagesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_FIIp] != null) {
        const memberEntries = se_FpgaImageIdList(input[_FIIp], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `FpgaImageId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Ow] != null) {
        const memberEntries = se_OwnerStringList(input[_Ow], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Owner.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      return entries;
    }, "se_DescribeFpgaImagesRequest");
    var se_DescribeHostReservationOfferingsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Fil] != null) {
        const memberEntries = se_FilterList(input[_Fil], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MD] != null) {
        entries[_MD] = input[_MD];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_MDi] != null) {
        entries[_MDi] = input[_MDi];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_OI] != null) {
        entries[_OI] = input[_OI];
      }
      return entries;
    }, "se_DescribeHostReservationOfferingsRequest");
    var se_DescribeHostReservationsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Fil] != null) {
        const memberEntries = se_FilterList(input[_Fil], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_HRIS] != null) {
        const memberEntries = se_HostReservationIdSet(input[_HRIS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `HostReservationIdSet.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      return entries;
    }, "se_DescribeHostReservationsRequest");
    var se_DescribeHostsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_HI] != null) {
        const memberEntries = se_RequestHostIdList(input[_HI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `HostId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_Fil] != null) {
        const memberEntries = se_FilterList(input[_Fil], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DescribeHostsRequest");
    var se_DescribeIamInstanceProfileAssociationsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_AIs] != null) {
        const memberEntries = se_AssociationIdList(input[_AIs], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AssociationId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      return entries;
    }, "se_DescribeIamInstanceProfileAssociationsRequest");
    var se_DescribeIdentityIdFormatRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Res] != null) {
        entries[_Res] = input[_Res];
      }
      if (input[_PAr2] != null) {
        entries[_PAr2] = input[_PAr2];
      }
      return entries;
    }, "se_DescribeIdentityIdFormatRequest");
    var se_DescribeIdFormatRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Res] != null) {
        entries[_Res] = input[_Res];
      }
      return entries;
    }, "se_DescribeIdFormatRequest");
    var se_DescribeImageAttributeRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_At] != null) {
        entries[_At] = input[_At];
      }
      if (input[_IIma] != null) {
        entries[_IIma] = input[_IIma];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeImageAttributeRequest");
    var se_DescribeImageReferencesImageIdStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_DescribeImageReferencesImageIdStringList");
    var se_DescribeImageReferencesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IImag] != null) {
        const memberEntries = se_DescribeImageReferencesImageIdStringList(input[_IImag], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ImageId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_IART] != null) {
        entries[_IART] = input[_IART];
      }
      if (input[_RTe] != null) {
        const memberEntries = se_ResourceTypeRequestList(input[_RTe], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ResourceType.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      return entries;
    }, "se_DescribeImageReferencesRequest");
    var se_DescribeImagesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_EU] != null) {
        const memberEntries = se_ExecutableByStringList(input[_EU], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ExecutableBy.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_IImag] != null) {
        const memberEntries = se_ImageIdStringList(input[_IImag], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ImageId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Ow] != null) {
        const memberEntries = se_OwnerStringList(input[_Ow], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Owner.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_ID] != null) {
        entries[_ID] = input[_ID];
      }
      if (input[_IDn] != null) {
        entries[_IDn] = input[_IDn];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DescribeImagesRequest");
    var se_DescribeImageUsageReportEntriesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IImag] != null) {
        const memberEntries = se_DescribeImageUsageReportsImageIdStringList(input[_IImag], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ImageId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_RIepo] != null) {
        const memberEntries = se_ImageUsageReportIdStringList(input[_RIepo], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ReportId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      return entries;
    }, "se_DescribeImageUsageReportEntriesRequest");
    var se_DescribeImageUsageReportsImageIdStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_DescribeImageUsageReportsImageIdStringList");
    var se_DescribeImageUsageReportsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IImag] != null) {
        const memberEntries = se_DescribeImageUsageReportsImageIdStringList(input[_IImag], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ImageId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_RIepo] != null) {
        const memberEntries = se_ImageUsageReportIdStringList(input[_RIepo], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ReportId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      return entries;
    }, "se_DescribeImageUsageReportsRequest");
    var se_DescribeImportImageTasksRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filters.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_ITIm] != null) {
        const memberEntries = se_ImportTaskIdList(input[_ITIm], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ImportTaskId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      return entries;
    }, "se_DescribeImportImageTasksRequest");
    var se_DescribeImportSnapshotTasksRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filters.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_ITIm] != null) {
        const memberEntries = se_ImportSnapshotTaskIdList(input[_ITIm], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ImportTaskId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      return entries;
    }, "se_DescribeImportSnapshotTasksRequest");
    var se_DescribeInstanceAttributeRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_IIn] != null) {
        entries[_IIn] = input[_IIn];
      }
      if (input[_At] != null) {
        entries[_At] = input[_At];
      }
      return entries;
    }, "se_DescribeInstanceAttributeRequest");
    var se_DescribeInstanceConnectEndpointsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_ICEIn] != null) {
        const memberEntries = se_ValueStringList(input[_ICEIn], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `InstanceConnectEndpointId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DescribeInstanceConnectEndpointsRequest");
    var se_DescribeInstanceCreditSpecificationsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_IIns] != null) {
        const memberEntries = se_InstanceIdStringList(input[_IIns], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `InstanceId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      return entries;
    }, "se_DescribeInstanceCreditSpecificationsRequest");
    var se_DescribeInstanceEventNotificationAttributesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeInstanceEventNotificationAttributesRequest");
    var se_DescribeInstanceEventWindowsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_IEWIn] != null) {
        const memberEntries = se_InstanceEventWindowIdSet(input[_IEWIn], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `InstanceEventWindowId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      return entries;
    }, "se_DescribeInstanceEventWindowsRequest");
    var se_DescribeInstanceImageMetadataRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_IIns] != null) {
        const memberEntries = se_InstanceIdStringList(input[_IIns], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `InstanceId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeInstanceImageMetadataRequest");
    var se_DescribeInstancesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IIns] != null) {
        const memberEntries = se_InstanceIdStringList(input[_IIns], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `InstanceId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      return entries;
    }, "se_DescribeInstancesRequest");
    var se_DescribeInstanceStatusRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IIns] != null) {
        const memberEntries = se_InstanceIdStringList(input[_IIns], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `InstanceId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_IAI] != null) {
        entries[_IAI] = input[_IAI];
      }
      return entries;
    }, "se_DescribeInstanceStatusRequest");
    var se_DescribeInstanceTopologyGroupNameSet = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_DescribeInstanceTopologyGroupNameSet");
    var se_DescribeInstanceTopologyInstanceIdSet = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_DescribeInstanceTopologyInstanceIdSet");
    var se_DescribeInstanceTopologyRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_IIns] != null) {
        const memberEntries = se_DescribeInstanceTopologyInstanceIdSet(input[_IIns], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `InstanceId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_GNr] != null) {
        const memberEntries = se_DescribeInstanceTopologyGroupNameSet(input[_GNr], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `GroupName.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DescribeInstanceTopologyRequest");
    var se_DescribeInstanceTypeOfferingsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_LT] != null) {
        entries[_LT] = input[_LT];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      return entries;
    }, "se_DescribeInstanceTypeOfferingsRequest");
    var se_DescribeInstanceTypesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_ITnst] != null) {
        const memberEntries = se_RequestInstanceTypeList(input[_ITnst], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `InstanceType.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      return entries;
    }, "se_DescribeInstanceTypesRequest");
    var se_DescribeInternetGatewaysRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_IGIn] != null) {
        const memberEntries = se_InternetGatewayIdList(input[_IGIn], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `InternetGatewayId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DescribeInternetGatewaysRequest");
    var se_DescribeIpamByoasnRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      return entries;
    }, "se_DescribeIpamByoasnRequest");
    var se_DescribeIpamExternalResourceVerificationTokensRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_IERVTIp] != null) {
        const memberEntries = se_ValueStringList(input[_IERVTIp], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `IpamExternalResourceVerificationTokenId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DescribeIpamExternalResourceVerificationTokensRequest");
    var se_DescribeIpamPoolsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_IPIp] != null) {
        const memberEntries = se_ValueStringList(input[_IPIp], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `IpamPoolId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DescribeIpamPoolsRequest");
    var se_DescribeIpamResourceDiscoveriesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_IRDIp] != null) {
        const memberEntries = se_ValueStringList(input[_IRDIp], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `IpamResourceDiscoveryId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DescribeIpamResourceDiscoveriesRequest");
    var se_DescribeIpamResourceDiscoveryAssociationsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_IRDAI] != null) {
        const memberEntries = se_ValueStringList(input[_IRDAI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `IpamResourceDiscoveryAssociationId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DescribeIpamResourceDiscoveryAssociationsRequest");
    var se_DescribeIpamScopesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_ISIp] != null) {
        const memberEntries = se_ValueStringList(input[_ISIp], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `IpamScopeId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DescribeIpamScopesRequest");
    var se_DescribeIpamsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_IIpa] != null) {
        const memberEntries = se_ValueStringList(input[_IIpa], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `IpamId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DescribeIpamsRequest");
    var se_DescribeIpv6PoolsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_PIoo] != null) {
        const memberEntries = se_Ipv6PoolIdList(input[_PIoo], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `PoolId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DescribeIpv6PoolsRequest");
    var se_DescribeKeyPairsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_KNe] != null) {
        const memberEntries = se_KeyNameStringList(input[_KNe], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `KeyName.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_KPIe] != null) {
        const memberEntries = se_KeyPairIdStringList(input[_KPIe], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `KeyPairId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_IPK] != null) {
        entries[_IPK] = input[_IPK];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DescribeKeyPairsRequest");
    var se_DescribeLaunchTemplatesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_LTIa] != null) {
        const memberEntries = se_LaunchTemplateIdStringList(input[_LTIa], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `LaunchTemplateId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_LTNa] != null) {
        const memberEntries = se_LaunchTemplateNameStringList(input[_LTNa], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `LaunchTemplateName.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      return entries;
    }, "se_DescribeLaunchTemplatesRequest");
    var se_DescribeLaunchTemplateVersionsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_LTI] != null) {
        entries[_LTI] = input[_LTI];
      }
      if (input[_LTN] != null) {
        entries[_LTN] = input[_LTN];
      }
      if (input[_Ve] != null) {
        const memberEntries = se_VersionStringList(input[_Ve], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `LaunchTemplateVersion.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MVi] != null) {
        entries[_MVi] = input[_MVi];
      }
      if (input[_MVa] != null) {
        entries[_MVa] = input[_MVa];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_RAe] != null) {
        entries[_RAe] = input[_RAe];
      }
      return entries;
    }, "se_DescribeLaunchTemplateVersionsRequest");
    var se_DescribeLocalGatewayRouteTablesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_LGRTIo] != null) {
        const memberEntries = se_LocalGatewayRouteTableIdSet(input[_LGRTIo], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `LocalGatewayRouteTableId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeLocalGatewayRouteTablesRequest");
    var se_DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_LGRTVIGAIo] != null) {
        const memberEntries = se_LocalGatewayRouteTableVirtualInterfaceGroupAssociationIdSet(input[_LGRTVIGAIo], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `LocalGatewayRouteTableVirtualInterfaceGroupAssociationId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequest");
    var se_DescribeLocalGatewayRouteTableVpcAssociationsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_LGRTVAIo] != null) {
        const memberEntries = se_LocalGatewayRouteTableVpcAssociationIdSet(input[_LGRTVAIo], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `LocalGatewayRouteTableVpcAssociationId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeLocalGatewayRouteTableVpcAssociationsRequest");
    var se_DescribeLocalGatewaysRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_LGIo] != null) {
        const memberEntries = se_LocalGatewayIdSet(input[_LGIo], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `LocalGatewayId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeLocalGatewaysRequest");
    var se_DescribeLocalGatewayVirtualInterfaceGroupsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_LGVIGIo] != null) {
        const memberEntries = se_LocalGatewayVirtualInterfaceGroupIdSet(input[_LGVIGIo], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `LocalGatewayVirtualInterfaceGroupId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeLocalGatewayVirtualInterfaceGroupsRequest");
    var se_DescribeLocalGatewayVirtualInterfacesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_LGVIIo] != null) {
        const memberEntries = se_LocalGatewayVirtualInterfaceIdSet(input[_LGVIIo], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `LocalGatewayVirtualInterfaceId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeLocalGatewayVirtualInterfacesRequest");
    var se_DescribeLockedSnapshotsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_SIna] != null) {
        const memberEntries = se_SnapshotIdStringList(input[_SIna], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SnapshotId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeLockedSnapshotsRequest");
    var se_DescribeMacHostsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_HI] != null) {
        const memberEntries = se_RequestHostIdList(input[_HI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `HostId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      return entries;
    }, "se_DescribeMacHostsRequest");
    var se_DescribeMacModificationTasksRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MMTI] != null) {
        const memberEntries = se_MacModificationTaskIdList(input[_MMTI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `MacModificationTaskId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      return entries;
    }, "se_DescribeMacModificationTasksRequest");
    var se_DescribeManagedPrefixListsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_PLIr] != null) {
        const memberEntries = se_ValueStringList(input[_PLIr], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `PrefixListId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DescribeManagedPrefixListsRequest");
    var se_DescribeMovingAddressesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_PIu] != null) {
        const memberEntries = se_ValueStringList(input[_PIu], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `PublicIp.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      return entries;
    }, "se_DescribeMovingAddressesRequest");
    var se_DescribeNatGatewaysRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_Fil] != null) {
        const memberEntries = se_FilterList(input[_Fil], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NGIa] != null) {
        const memberEntries = se_NatGatewayIdStringList(input[_NGIa], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `NatGatewayId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      return entries;
    }, "se_DescribeNatGatewaysRequest");
    var se_DescribeNetworkAclsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_NAIe] != null) {
        const memberEntries = se_NetworkAclIdStringList(input[_NAIe], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `NetworkAclId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DescribeNetworkAclsRequest");
    var se_DescribeNetworkInsightsAccessScopeAnalysesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_NIASAIe] != null) {
        const memberEntries = se_NetworkInsightsAccessScopeAnalysisIdList(input[_NIASAIe], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `NetworkInsightsAccessScopeAnalysisId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_NIASI] != null) {
        entries[_NIASI] = input[_NIASI];
      }
      if (input[_ASTB] != null) {
        entries[_ASTB] = (0, import_smithy_client28.serializeDateTime)(input[_ASTB]);
      }
      if (input[_ASTE] != null) {
        entries[_ASTE] = (0, import_smithy_client28.serializeDateTime)(input[_ASTE]);
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      return entries;
    }, "se_DescribeNetworkInsightsAccessScopeAnalysesRequest");
    var se_DescribeNetworkInsightsAccessScopesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_NIASIe] != null) {
        const memberEntries = se_NetworkInsightsAccessScopeIdList(input[_NIASIe], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `NetworkInsightsAccessScopeId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      return entries;
    }, "se_DescribeNetworkInsightsAccessScopesRequest");
    var se_DescribeNetworkInsightsAnalysesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_NIAIe] != null) {
        const memberEntries = se_NetworkInsightsAnalysisIdList(input[_NIAIe], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `NetworkInsightsAnalysisId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_NIPI] != null) {
        entries[_NIPI] = input[_NIPI];
      }
      if (input[_AST] != null) {
        entries[_AST] = (0, import_smithy_client28.serializeDateTime)(input[_AST]);
      }
      if (input[_AET] != null) {
        entries[_AET] = (0, import_smithy_client28.serializeDateTime)(input[_AET]);
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      return entries;
    }, "se_DescribeNetworkInsightsAnalysesRequest");
    var se_DescribeNetworkInsightsPathsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_NIPIet] != null) {
        const memberEntries = se_NetworkInsightsPathIdList(input[_NIPIet], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `NetworkInsightsPathId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      return entries;
    }, "se_DescribeNetworkInsightsPathsRequest");
    var se_DescribeNetworkInterfaceAttributeRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_NII] != null) {
        entries[_NII] = input[_NII];
      }
      if (input[_At] != null) {
        entries[_At] = input[_At];
      }
      return entries;
    }, "se_DescribeNetworkInterfaceAttributeRequest");
    var se_DescribeNetworkInterfacePermissionsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_NIPIetw] != null) {
        const memberEntries = se_NetworkInterfacePermissionIdList(input[_NIPIetw], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `NetworkInterfacePermissionId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      return entries;
    }, "se_DescribeNetworkInterfacePermissionsRequest");
    var se_DescribeNetworkInterfacesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_NIIe] != null) {
        const memberEntries = se_NetworkInterfaceIdList(input[_NIIe], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `NetworkInterfaceId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DescribeNetworkInterfacesRequest");
    var se_DescribeOutpostLagsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_OLIu] != null) {
        const memberEntries = se_OutpostLagIdSet(input[_OLIu], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `OutpostLagId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeOutpostLagsRequest");
    var se_DescribePlacementGroupsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_GIro] != null) {
        const memberEntries = se_PlacementGroupIdStringList(input[_GIro], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `GroupId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_GNr] != null) {
        const memberEntries = se_PlacementGroupStringList(input[_GNr], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `GroupName.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DescribePlacementGroupsRequest");
    var se_DescribePrefixListsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_PLIr] != null) {
        const memberEntries = se_PrefixListResourceIdStringList(input[_PLIr], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `PrefixListId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DescribePrefixListsRequest");
    var se_DescribePrincipalIdFormatRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_Re] != null) {
        const memberEntries = se_ResourceList(input[_Re], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Resource.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      return entries;
    }, "se_DescribePrincipalIdFormatRequest");
    var se_DescribePublicIpv4PoolsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_PIoo] != null) {
        const memberEntries = se_PublicIpv4PoolIdStringList(input[_PIoo], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `PoolId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DescribePublicIpv4PoolsRequest");
    var se_DescribeRegionsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RNe] != null) {
        const memberEntries = se_RegionNameStringList(input[_RNe], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `RegionName.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_ARll] != null) {
        entries[_ARll] = input[_ARll];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DescribeRegionsRequest");
    var se_DescribeReplaceRootVolumeTasksRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RRVTI] != null) {
        const memberEntries = se_ReplaceRootVolumeTaskIds(input[_RRVTI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ReplaceRootVolumeTaskId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeReplaceRootVolumeTasksRequest");
    var se_DescribeReservedInstancesListingsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RIIe] != null) {
        entries[_RIIe] = input[_RIIe];
      }
      if (input[_RILI] != null) {
        entries[_RILI] = input[_RILI];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DescribeReservedInstancesListingsRequest");
    var se_DescribeReservedInstancesModificationsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RIMI] != null) {
        const memberEntries = se_ReservedInstancesModificationIdStringList(input[_RIMI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ReservedInstancesModificationId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DescribeReservedInstancesModificationsRequest");
    var se_DescribeReservedInstancesOfferingsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_AZ] != null) {
        entries[_AZ] = input[_AZ];
      }
      if (input[_IM] != null) {
        entries[_IM] = input[_IM];
      }
      if (input[_IT] != null) {
        entries[_IT] = input[_IT];
      }
      if (input[_MD] != null) {
        entries[_MD] = input[_MD];
      }
      if (input[_MIC] != null) {
        entries[_MIC] = input[_MIC];
      }
      if (input[_MDi] != null) {
        entries[_MDi] = input[_MDi];
      }
      if (input[_OC] != null) {
        entries[_OC] = input[_OC];
      }
      if (input[_PDr] != null) {
        entries[_PDr] = input[_PDr];
      }
      if (input[_RIOI] != null) {
        const memberEntries = se_ReservedInstancesOfferingIdStringList(input[_RIOI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ReservedInstancesOfferingId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_AZI] != null) {
        entries[_AZI] = input[_AZI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_ITns] != null) {
        entries[_ITns] = input[_ITns];
      }
      if (input[_OT] != null) {
        entries[_OT] = input[_OT];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      return entries;
    }, "se_DescribeReservedInstancesOfferingsRequest");
    var se_DescribeReservedInstancesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_OC] != null) {
        entries[_OC] = input[_OC];
      }
      if (input[_RIIes] != null) {
        const memberEntries = se_ReservedInstancesIdStringList(input[_RIIes], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ReservedInstancesId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_OT] != null) {
        entries[_OT] = input[_OT];
      }
      return entries;
    }, "se_DescribeReservedInstancesRequest");
    var se_DescribeRouteServerEndpointsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RSEIo] != null) {
        const memberEntries = se_RouteServerEndpointIdsList(input[_RSEIo], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `RouteServerEndpointId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeRouteServerEndpointsRequest");
    var se_DescribeRouteServerPeersRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RSPIo] != null) {
        const memberEntries = se_RouteServerPeerIdsList(input[_RSPIo], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `RouteServerPeerId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeRouteServerPeersRequest");
    var se_DescribeRouteServersRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RSIou] != null) {
        const memberEntries = se_RouteServerIdsList(input[_RSIou], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `RouteServerId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeRouteServersRequest");
    var se_DescribeRouteTablesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_RTIo] != null) {
        const memberEntries = se_RouteTableIdStringList(input[_RTIo], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `RouteTableId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DescribeRouteTablesRequest");
    var se_DescribeScheduledInstanceAvailabilityRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_FSSTR] != null) {
        const memberEntries = se_SlotDateTimeRangeRequest(input[_FSSTR], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `FirstSlotStartTimeRange.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_MSDIH] != null) {
        entries[_MSDIH] = input[_MSDIH];
      }
      if (input[_MSDIHi] != null) {
        entries[_MSDIHi] = input[_MSDIHi];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_Rec] != null) {
        const memberEntries = se_ScheduledInstanceRecurrenceRequest(input[_Rec], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Recurrence.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DescribeScheduledInstanceAvailabilityRequest");
    var se_DescribeScheduledInstancesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_SIIc] != null) {
        const memberEntries = se_ScheduledInstanceIdRequestSet(input[_SIIc], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ScheduledInstanceId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_SSTR] != null) {
        const memberEntries = se_SlotStartTimeRangeRequest(input[_SSTR], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SlotStartTimeRange.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DescribeScheduledInstancesRequest");
    var se_DescribeSecurityGroupReferencesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_GIr] != null) {
        const memberEntries = se_GroupIds(input[_GIr], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `GroupId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DescribeSecurityGroupReferencesRequest");
    var se_DescribeSecurityGroupRulesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_SGRI] != null) {
        const memberEntries = se_SecurityGroupRuleIdList(input[_SGRI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SecurityGroupRuleId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      return entries;
    }, "se_DescribeSecurityGroupRulesRequest");
    var se_DescribeSecurityGroupsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_GIro] != null) {
        const memberEntries = se_GroupIdStringList(input[_GIro], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `GroupId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_GNr] != null) {
        const memberEntries = se_GroupNameStringList(input[_GNr], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `GroupName.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DescribeSecurityGroupsRequest");
    var se_DescribeSecurityGroupVpcAssociationsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeSecurityGroupVpcAssociationsRequest");
    var se_DescribeServiceLinkVirtualInterfacesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SLVII] != null) {
        const memberEntries = se_ServiceLinkVirtualInterfaceIdSet(input[_SLVII], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ServiceLinkVirtualInterfaceId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeServiceLinkVirtualInterfacesRequest");
    var se_DescribeSnapshotAttributeRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_At] != null) {
        entries[_At] = input[_At];
      }
      if (input[_SIn] != null) {
        entries[_SIn] = input[_SIn];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeSnapshotAttributeRequest");
    var se_DescribeSnapshotsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_OIw] != null) {
        const memberEntries = se_OwnerStringList(input[_OIw], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Owner.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_RBUI] != null) {
        const memberEntries = se_RestorableByStringList(input[_RBUI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `RestorableBy.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_SIna] != null) {
        const memberEntries = se_SnapshotIdStringList(input[_SIna], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SnapshotId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DescribeSnapshotsRequest");
    var se_DescribeSnapshotTierStatusRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      return entries;
    }, "se_DescribeSnapshotTierStatusRequest");
    var se_DescribeSpotDatafeedSubscriptionRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeSpotDatafeedSubscriptionRequest");
    var se_DescribeSpotFleetInstancesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_SFRIp] != null) {
        entries[_SFRIp] = input[_SFRIp];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      return entries;
    }, "se_DescribeSpotFleetInstancesRequest");
    var se_DescribeSpotFleetRequestHistoryRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_SFRIp] != null) {
        entries[_SFRIp] = input[_SFRIp];
      }
      if (input[_ETv] != null) {
        entries[_ETv] = input[_ETv];
      }
      if (input[_STt] != null) {
        entries[_STt] = (0, import_smithy_client28.serializeDateTime)(input[_STt]);
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      return entries;
    }, "se_DescribeSpotFleetRequestHistoryRequest");
    var se_DescribeSpotFleetRequestsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_SFRI] != null) {
        const memberEntries = se_SpotFleetRequestIdList(input[_SFRI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SpotFleetRequestId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      return entries;
    }, "se_DescribeSpotFleetRequestsRequest");
    var se_DescribeSpotInstanceRequestsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_SIRI] != null) {
        const memberEntries = se_SpotInstanceRequestIdList(input[_SIRI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SpotInstanceRequestId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DescribeSpotInstanceRequestsRequest");
    var se_DescribeSpotPriceHistoryRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_AZI] != null) {
        entries[_AZI] = input[_AZI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_STt] != null) {
        entries[_STt] = (0, import_smithy_client28.serializeDateTime)(input[_STt]);
      }
      if (input[_ETn] != null) {
        entries[_ETn] = (0, import_smithy_client28.serializeDateTime)(input[_ETn]);
      }
      if (input[_ITnst] != null) {
        const memberEntries = se_InstanceTypeList(input[_ITnst], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `InstanceType.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_PDro] != null) {
        const memberEntries = se_ProductDescriptionList(input[_PDro], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ProductDescription.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_AZ] != null) {
        entries[_AZ] = input[_AZ];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      return entries;
    }, "se_DescribeSpotPriceHistoryRequest");
    var se_DescribeStaleSecurityGroupsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_VI] != null) {
        entries[_VI] = input[_VI];
      }
      return entries;
    }, "se_DescribeStaleSecurityGroupsRequest");
    var se_DescribeStoreImageTasksRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IImag] != null) {
        const memberEntries = se_ImageIdList(input[_IImag], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ImageId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      return entries;
    }, "se_DescribeStoreImageTasksRequest");
    var se_DescribeSubnetsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_SIu] != null) {
        const memberEntries = se_SubnetIdStringList(input[_SIu], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SubnetId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeSubnetsRequest");
    var se_DescribeTagsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      return entries;
    }, "se_DescribeTagsRequest");
    var se_DescribeTrafficMirrorFilterRulesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TMFRIr] != null) {
        const memberEntries = se_TrafficMirrorFilterRuleIdList(input[_TMFRIr], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TrafficMirrorFilterRuleId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_TMFI] != null) {
        entries[_TMFI] = input[_TMFI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      return entries;
    }, "se_DescribeTrafficMirrorFilterRulesRequest");
    var se_DescribeTrafficMirrorFiltersRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TMFIr] != null) {
        const memberEntries = se_TrafficMirrorFilterIdList(input[_TMFIr], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TrafficMirrorFilterId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      return entries;
    }, "se_DescribeTrafficMirrorFiltersRequest");
    var se_DescribeTrafficMirrorSessionsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TMSIr] != null) {
        const memberEntries = se_TrafficMirrorSessionIdList(input[_TMSIr], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TrafficMirrorSessionId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      return entries;
    }, "se_DescribeTrafficMirrorSessionsRequest");
    var se_DescribeTrafficMirrorTargetsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TMTIr] != null) {
        const memberEntries = se_TrafficMirrorTargetIdList(input[_TMTIr], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TrafficMirrorTargetId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      return entries;
    }, "se_DescribeTrafficMirrorTargetsRequest");
    var se_DescribeTransitGatewayAttachmentsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGAIr] != null) {
        const memberEntries = se_TransitGatewayAttachmentIdStringList(input[_TGAIr], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TransitGatewayAttachmentIds.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeTransitGatewayAttachmentsRequest");
    var se_DescribeTransitGatewayConnectPeersRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGCPIr] != null) {
        const memberEntries = se_TransitGatewayConnectPeerIdStringList(input[_TGCPIr], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TransitGatewayConnectPeerIds.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeTransitGatewayConnectPeersRequest");
    var se_DescribeTransitGatewayConnectsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGAIr] != null) {
        const memberEntries = se_TransitGatewayAttachmentIdStringList(input[_TGAIr], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TransitGatewayAttachmentIds.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeTransitGatewayConnectsRequest");
    var se_DescribeTransitGatewayMulticastDomainsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGMDIr] != null) {
        const memberEntries = se_TransitGatewayMulticastDomainIdStringList(input[_TGMDIr], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TransitGatewayMulticastDomainIds.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeTransitGatewayMulticastDomainsRequest");
    var se_DescribeTransitGatewayPeeringAttachmentsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGAIr] != null) {
        const memberEntries = se_TransitGatewayAttachmentIdStringList(input[_TGAIr], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TransitGatewayAttachmentIds.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeTransitGatewayPeeringAttachmentsRequest");
    var se_DescribeTransitGatewayPolicyTablesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGPTIr] != null) {
        const memberEntries = se_TransitGatewayPolicyTableIdStringList(input[_TGPTIr], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TransitGatewayPolicyTableIds.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeTransitGatewayPolicyTablesRequest");
    var se_DescribeTransitGatewayRouteTableAnnouncementsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGRTAIr] != null) {
        const memberEntries = se_TransitGatewayRouteTableAnnouncementIdStringList(input[_TGRTAIr], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TransitGatewayRouteTableAnnouncementIds.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeTransitGatewayRouteTableAnnouncementsRequest");
    var se_DescribeTransitGatewayRouteTablesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGRTIr] != null) {
        const memberEntries = se_TransitGatewayRouteTableIdStringList(input[_TGRTIr], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TransitGatewayRouteTableIds.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeTransitGatewayRouteTablesRequest");
    var se_DescribeTransitGatewaysRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGIr] != null) {
        const memberEntries = se_TransitGatewayIdStringList(input[_TGIr], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TransitGatewayIds.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeTransitGatewaysRequest");
    var se_DescribeTransitGatewayVpcAttachmentsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGAIr] != null) {
        const memberEntries = se_TransitGatewayAttachmentIdStringList(input[_TGAIr], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TransitGatewayAttachmentIds.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeTransitGatewayVpcAttachmentsRequest");
    var se_DescribeTrunkInterfaceAssociationsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_AIs] != null) {
        const memberEntries = se_TrunkInterfaceAssociationIdList(input[_AIs], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AssociationId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      return entries;
    }, "se_DescribeTrunkInterfaceAssociationsRequest");
    var se_DescribeVerifiedAccessEndpointsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_VAEIe] != null) {
        const memberEntries = se_VerifiedAccessEndpointIdList(input[_VAEIe], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `VerifiedAccessEndpointId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_VAII] != null) {
        entries[_VAII] = input[_VAII];
      }
      if (input[_VAGI] != null) {
        entries[_VAGI] = input[_VAGI];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeVerifiedAccessEndpointsRequest");
    var se_DescribeVerifiedAccessGroupsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_VAGIe] != null) {
        const memberEntries = se_VerifiedAccessGroupIdList(input[_VAGIe], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `VerifiedAccessGroupId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_VAII] != null) {
        entries[_VAII] = input[_VAII];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeVerifiedAccessGroupsRequest");
    var se_DescribeVerifiedAccessInstanceLoggingConfigurationsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_VAIIe] != null) {
        const memberEntries = se_VerifiedAccessInstanceIdList(input[_VAIIe], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `VerifiedAccessInstanceId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeVerifiedAccessInstanceLoggingConfigurationsRequest");
    var se_DescribeVerifiedAccessInstancesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_VAIIe] != null) {
        const memberEntries = se_VerifiedAccessInstanceIdList(input[_VAIIe], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `VerifiedAccessInstanceId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeVerifiedAccessInstancesRequest");
    var se_DescribeVerifiedAccessTrustProvidersRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_VATPIe] != null) {
        const memberEntries = se_VerifiedAccessTrustProviderIdList(input[_VATPIe], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `VerifiedAccessTrustProviderId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeVerifiedAccessTrustProvidersRequest");
    var se_DescribeVolumeAttributeRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_At] != null) {
        entries[_At] = input[_At];
      }
      if (input[_VIo] != null) {
        entries[_VIo] = input[_VIo];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeVolumeAttributeRequest");
    var se_DescribeVolumesModificationsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_VIol] != null) {
        const memberEntries = se_VolumeIdStringList(input[_VIol], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `VolumeId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      return entries;
    }, "se_DescribeVolumesModificationsRequest");
    var se_DescribeVolumesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_VIol] != null) {
        const memberEntries = se_VolumeIdStringList(input[_VIol], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `VolumeId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      return entries;
    }, "se_DescribeVolumesRequest");
    var se_DescribeVolumeStatusRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_VIol] != null) {
        const memberEntries = se_VolumeIdStringList(input[_VIol], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `VolumeId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DescribeVolumeStatusRequest");
    var se_DescribeVpcAttributeRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_At] != null) {
        entries[_At] = input[_At];
      }
      if (input[_VI] != null) {
        entries[_VI] = input[_VI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeVpcAttributeRequest");
    var se_DescribeVpcBlockPublicAccessExclusionsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_EIxcl] != null) {
        const memberEntries = se_VpcBlockPublicAccessExclusionIdList(input[_EIxcl], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ExclusionId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      return entries;
    }, "se_DescribeVpcBlockPublicAccessExclusionsRequest");
    var se_DescribeVpcBlockPublicAccessOptionsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeVpcBlockPublicAccessOptionsRequest");
    var se_DescribeVpcClassicLinkDnsSupportRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_VIp] != null) {
        const memberEntries = se_VpcClassicLinkIdList(input[_VIp], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `VpcIds.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      return entries;
    }, "se_DescribeVpcClassicLinkDnsSupportRequest");
    var se_DescribeVpcClassicLinkRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_VIp] != null) {
        const memberEntries = se_VpcClassicLinkIdList(input[_VIp], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `VpcId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DescribeVpcClassicLinkRequest");
    var se_DescribeVpcEndpointAssociationsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_VEI] != null) {
        const memberEntries = se_VpcEndpointIdList(input[_VEI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `VpcEndpointId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      return entries;
    }, "se_DescribeVpcEndpointAssociationsRequest");
    var se_DescribeVpcEndpointConnectionNotificationsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_CNIon] != null) {
        entries[_CNIon] = input[_CNIon];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      return entries;
    }, "se_DescribeVpcEndpointConnectionNotificationsRequest");
    var se_DescribeVpcEndpointConnectionsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      return entries;
    }, "se_DescribeVpcEndpointConnectionsRequest");
    var se_DescribeVpcEndpointServiceConfigurationsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_SIer] != null) {
        const memberEntries = se_VpcEndpointServiceIdList(input[_SIer], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ServiceId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      return entries;
    }, "se_DescribeVpcEndpointServiceConfigurationsRequest");
    var se_DescribeVpcEndpointServicePermissionsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_SIe] != null) {
        entries[_SIe] = input[_SIe];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      return entries;
    }, "se_DescribeVpcEndpointServicePermissionsRequest");
    var se_DescribeVpcEndpointServicesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_SNer] != null) {
        const memberEntries = se_ValueStringList(input[_SNer], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ServiceName.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_SRer] != null) {
        const memberEntries = se_ValueStringList(input[_SRer], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ServiceRegion.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DescribeVpcEndpointServicesRequest");
    var se_DescribeVpcEndpointsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_VEI] != null) {
        const memberEntries = se_VpcEndpointIdList(input[_VEI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `VpcEndpointId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      return entries;
    }, "se_DescribeVpcEndpointsRequest");
    var se_DescribeVpcPeeringConnectionsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_VPCIp] != null) {
        const memberEntries = se_VpcPeeringConnectionIdList(input[_VPCIp], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `VpcPeeringConnectionId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DescribeVpcPeeringConnectionsRequest");
    var se_DescribeVpcsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_VIp] != null) {
        const memberEntries = se_VpcIdStringList(input[_VIp], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `VpcId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeVpcsRequest");
    var se_DescribeVpnConnectionsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_VCIp] != null) {
        const memberEntries = se_VpnConnectionIdStringList(input[_VCIp], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `VpnConnectionId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeVpnConnectionsRequest");
    var se_DescribeVpnGatewaysRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_VGIp] != null) {
        const memberEntries = se_VpnGatewayIdStringList(input[_VGIp], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `VpnGatewayId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DescribeVpnGatewaysRequest");
    var se_DestinationOptionsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_FF] != null) {
        entries[_FF] = input[_FF];
      }
      if (input[_HCP] != null) {
        entries[_HCP] = input[_HCP];
      }
      if (input[_PHP] != null) {
        entries[_PHP] = input[_PHP];
      }
      return entries;
    }, "se_DestinationOptionsRequest");
    var se_DetachClassicLinkVpcRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_IIn] != null) {
        entries[_IIn] = input[_IIn];
      }
      if (input[_VI] != null) {
        entries[_VI] = input[_VI];
      }
      return entries;
    }, "se_DetachClassicLinkVpcRequest");
    var se_DetachInternetGatewayRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_IGI] != null) {
        entries[_IGI] = input[_IGI];
      }
      if (input[_VI] != null) {
        entries[_VI] = input[_VI];
      }
      return entries;
    }, "se_DetachInternetGatewayRequest");
    var se_DetachNetworkInterfaceRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_AIt] != null) {
        entries[_AIt] = input[_AIt];
      }
      if (input[_F] != null) {
        entries[_F] = input[_F];
      }
      return entries;
    }, "se_DetachNetworkInterfaceRequest");
    var se_DetachVerifiedAccessTrustProviderRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_VAII] != null) {
        entries[_VAII] = input[_VAII];
      }
      if (input[_VATPI] != null) {
        entries[_VATPI] = input[_VATPI];
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DetachVerifiedAccessTrustProviderRequest");
    var se_DetachVolumeRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Dev] != null) {
        entries[_Dev] = input[_Dev];
      }
      if (input[_F] != null) {
        entries[_F] = input[_F];
      }
      if (input[_IIn] != null) {
        entries[_IIn] = input[_IIn];
      }
      if (input[_VIo] != null) {
        entries[_VIo] = input[_VIo];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DetachVolumeRequest");
    var se_DetachVpnGatewayRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_VI] != null) {
        entries[_VI] = input[_VI];
      }
      if (input[_VGI] != null) {
        entries[_VGI] = input[_VGI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DetachVpnGatewayRequest");
    var se_DhcpOptionsIdStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`DhcpOptionsId.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_DhcpOptionsIdStringList");
    var se_DirectoryServiceAuthenticationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DIir] != null) {
        entries[_DIir] = input[_DIir];
      }
      return entries;
    }, "se_DirectoryServiceAuthenticationRequest");
    var se_DisableAddressTransferRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_AIl] != null) {
        entries[_AIl] = input[_AIl];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DisableAddressTransferRequest");
    var se_DisableAllowedImagesSettingsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DisableAllowedImagesSettingsRequest");
    var se_DisableAwsNetworkPerformanceMetricSubscriptionRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_S] != null) {
        entries[_S] = input[_S];
      }
      if (input[_D] != null) {
        entries[_D] = input[_D];
      }
      if (input[_Met] != null) {
        entries[_Met] = input[_Met];
      }
      if (input[_Sta] != null) {
        entries[_Sta] = input[_Sta];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DisableAwsNetworkPerformanceMetricSubscriptionRequest");
    var se_DisableEbsEncryptionByDefaultRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DisableEbsEncryptionByDefaultRequest");
    var se_DisableFastLaunchRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IIma] != null) {
        entries[_IIma] = input[_IIma];
      }
      if (input[_F] != null) {
        entries[_F] = input[_F];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DisableFastLaunchRequest");
    var se_DisableFastSnapshotRestoresRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_AZv] != null) {
        const memberEntries = se_AvailabilityZoneStringList(input[_AZv], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AvailabilityZone.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_SSIo] != null) {
        const memberEntries = se_SnapshotIdStringList(input[_SSIo], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SourceSnapshotId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DisableFastSnapshotRestoresRequest");
    var se_DisableImageBlockPublicAccessRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DisableImageBlockPublicAccessRequest");
    var se_DisableImageDeprecationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IIma] != null) {
        entries[_IIma] = input[_IIma];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DisableImageDeprecationRequest");
    var se_DisableImageDeregistrationProtectionRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IIma] != null) {
        entries[_IIma] = input[_IIma];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DisableImageDeregistrationProtectionRequest");
    var se_DisableImageRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IIma] != null) {
        entries[_IIma] = input[_IIma];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DisableImageRequest");
    var se_DisableIpamOrganizationAdminAccountRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_DAAI] != null) {
        entries[_DAAI] = input[_DAAI];
      }
      return entries;
    }, "se_DisableIpamOrganizationAdminAccountRequest");
    var se_DisableRouteServerPropagationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RSIo] != null) {
        entries[_RSIo] = input[_RSIo];
      }
      if (input[_RTI] != null) {
        entries[_RTI] = input[_RTI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DisableRouteServerPropagationRequest");
    var se_DisableSerialConsoleAccessRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DisableSerialConsoleAccessRequest");
    var se_DisableSnapshotBlockPublicAccessRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DisableSnapshotBlockPublicAccessRequest");
    var se_DisableTransitGatewayRouteTablePropagationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGRTI] != null) {
        entries[_TGRTI] = input[_TGRTI];
      }
      if (input[_TGAI] != null) {
        entries[_TGAI] = input[_TGAI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_TGRTAI] != null) {
        entries[_TGRTAI] = input[_TGRTAI];
      }
      return entries;
    }, "se_DisableTransitGatewayRouteTablePropagationRequest");
    var se_DisableVgwRoutePropagationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_GI] != null) {
        entries[_GI] = input[_GI];
      }
      if (input[_RTI] != null) {
        entries[_RTI] = input[_RTI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DisableVgwRoutePropagationRequest");
    var se_DisableVpcClassicLinkDnsSupportRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_VI] != null) {
        entries[_VI] = input[_VI];
      }
      return entries;
    }, "se_DisableVpcClassicLinkDnsSupportRequest");
    var se_DisableVpcClassicLinkRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_VI] != null) {
        entries[_VI] = input[_VI];
      }
      return entries;
    }, "se_DisableVpcClassicLinkRequest");
    var se_DisassociateAddressRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_AIss] != null) {
        entries[_AIss] = input[_AIss];
      }
      if (input[_PI2] != null) {
        entries[_PI2] = input[_PI2];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DisassociateAddressRequest");
    var se_DisassociateCapacityReservationBillingOwnerRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_CRI] != null) {
        entries[_CRI] = input[_CRI];
      }
      if (input[_URBOI] != null) {
        entries[_URBOI] = input[_URBOI];
      }
      return entries;
    }, "se_DisassociateCapacityReservationBillingOwnerRequest");
    var se_DisassociateClientVpnTargetNetworkRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CVEI] != null) {
        entries[_CVEI] = input[_CVEI];
      }
      if (input[_AIss] != null) {
        entries[_AIss] = input[_AIss];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DisassociateClientVpnTargetNetworkRequest");
    var se_DisassociateEnclaveCertificateIamRoleRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CA2] != null) {
        entries[_CA2] = input[_CA2];
      }
      if (input[_RAo] != null) {
        entries[_RAo] = input[_RAo];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DisassociateEnclaveCertificateIamRoleRequest");
    var se_DisassociateIamInstanceProfileRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_AIss] != null) {
        entries[_AIss] = input[_AIss];
      }
      return entries;
    }, "se_DisassociateIamInstanceProfileRequest");
    var se_DisassociateInstanceEventWindowRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_IEWI] != null) {
        entries[_IEWI] = input[_IEWI];
      }
      if (input[_AT] != null) {
        const memberEntries = se_InstanceEventWindowDisassociationRequest(input[_AT], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AssociationTarget.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DisassociateInstanceEventWindowRequest");
    var se_DisassociateIpamByoasnRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_As] != null) {
        entries[_As] = input[_As];
      }
      if (input[_C2] != null) {
        entries[_C2] = input[_C2];
      }
      return entries;
    }, "se_DisassociateIpamByoasnRequest");
    var se_DisassociateIpamResourceDiscoveryRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_IRDAIp] != null) {
        entries[_IRDAIp] = input[_IRDAIp];
      }
      return entries;
    }, "se_DisassociateIpamResourceDiscoveryRequest");
    var se_DisassociateNatGatewayAddressRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_NGI] != null) {
        entries[_NGI] = input[_NGI];
      }
      if (input[_AIs] != null) {
        const memberEntries = se_EipAssociationIdList(input[_AIs], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AssociationId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MDDS] != null) {
        entries[_MDDS] = input[_MDDS];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DisassociateNatGatewayAddressRequest");
    var se_DisassociateRouteServerRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RSIo] != null) {
        entries[_RSIo] = input[_RSIo];
      }
      if (input[_VI] != null) {
        entries[_VI] = input[_VI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DisassociateRouteServerRequest");
    var se_DisassociateRouteTableRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_AIss] != null) {
        entries[_AIss] = input[_AIss];
      }
      return entries;
    }, "se_DisassociateRouteTableRequest");
    var se_DisassociateSecurityGroupVpcRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_GIr] != null) {
        entries[_GIr] = input[_GIr];
      }
      if (input[_VI] != null) {
        entries[_VI] = input[_VI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DisassociateSecurityGroupVpcRequest");
    var se_DisassociateSubnetCidrBlockRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_AIss] != null) {
        entries[_AIss] = input[_AIss];
      }
      return entries;
    }, "se_DisassociateSubnetCidrBlockRequest");
    var se_DisassociateTransitGatewayMulticastDomainRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGMDI] != null) {
        entries[_TGMDI] = input[_TGMDI];
      }
      if (input[_TGAI] != null) {
        entries[_TGAI] = input[_TGAI];
      }
      if (input[_SIu] != null) {
        const memberEntries = se_TransitGatewaySubnetIdList(input[_SIu], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SubnetIds.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DisassociateTransitGatewayMulticastDomainRequest");
    var se_DisassociateTransitGatewayPolicyTableRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGPTI] != null) {
        entries[_TGPTI] = input[_TGPTI];
      }
      if (input[_TGAI] != null) {
        entries[_TGAI] = input[_TGAI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DisassociateTransitGatewayPolicyTableRequest");
    var se_DisassociateTransitGatewayRouteTableRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGRTI] != null) {
        entries[_TGRTI] = input[_TGRTI];
      }
      if (input[_TGAI] != null) {
        entries[_TGAI] = input[_TGAI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DisassociateTransitGatewayRouteTableRequest");
    var se_DisassociateTrunkInterfaceRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_AIss] != null) {
        entries[_AIss] = input[_AIss];
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_DisassociateTrunkInterfaceRequest");
    var se_DisassociateVpcCidrBlockRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_AIss] != null) {
        entries[_AIss] = input[_AIss];
      }
      return entries;
    }, "se_DisassociateVpcCidrBlockRequest");
    var se_DiskImage = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      if (input[_Im] != null) {
        const memberEntries = se_DiskImageDetail(input[_Im], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Image.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_Vo] != null) {
        const memberEntries = se_VolumeDetail(input[_Vo], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Volume.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DiskImage");
    var se_DiskImageDetail = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Fo] != null) {
        entries[_Fo] = input[_Fo];
      }
      if (input[_By] != null) {
        entries[_By] = input[_By];
      }
      if (input[_IMU] != null) {
        entries[_IMU] = input[_IMU];
      }
      return entries;
    }, "se_DiskImageDetail");
    var se_DiskImageList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_DiskImage(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Member.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_DiskImageList");
    var se_DnsOptionsSpecification = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRIT] != null) {
        entries[_DRIT] = input[_DRIT];
      }
      if (input[_PDOFIRE] != null) {
        entries[_PDOFIRE] = input[_PDOFIRE];
      }
      return entries;
    }, "se_DnsOptionsSpecification");
    var se_DnsServersOptionsModifyStructure = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CDSu] != null) {
        const memberEntries = se_ValueStringList(input[_CDSu], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `CustomDnsServers.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_En] != null) {
        entries[_En] = input[_En];
      }
      return entries;
    }, "se_DnsServersOptionsModifyStructure");
    var se_EbsBlockDevice = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DOT] != null) {
        entries[_DOT] = input[_DOT];
      }
      if (input[_Io] != null) {
        entries[_Io] = input[_Io];
      }
      if (input[_SIn] != null) {
        entries[_SIn] = input[_SIn];
      }
      if (input[_VS] != null) {
        entries[_VS] = input[_VS];
      }
      if (input[_VT] != null) {
        entries[_VT] = input[_VT];
      }
      if (input[_KKI] != null) {
        entries[_KKI] = input[_KKI];
      }
      if (input[_Th] != null) {
        entries[_Th] = input[_Th];
      }
      if (input[_OA] != null) {
        entries[_OA] = input[_OA];
      }
      if (input[_AZ] != null) {
        entries[_AZ] = input[_AZ];
      }
      if (input[_Enc] != null) {
        entries[_Enc] = input[_Enc];
      }
      if (input[_VIR] != null) {
        entries[_VIR] = input[_VIR];
      }
      if (input[_AZI] != null) {
        entries[_AZI] = input[_AZI];
      }
      return entries;
    }, "se_EbsBlockDevice");
    var se_EbsInstanceBlockDeviceSpecification = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_VIo] != null) {
        entries[_VIo] = input[_VIo];
      }
      if (input[_DOT] != null) {
        entries[_DOT] = input[_DOT];
      }
      return entries;
    }, "se_EbsInstanceBlockDeviceSpecification");
    var se_EgressOnlyInternetGatewayIdList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_EgressOnlyInternetGatewayIdList");
    var se_EipAssociationIdList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_EipAssociationIdList");
    var se_ElasticGpuIdSet = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_ElasticGpuIdSet");
    var se_ElasticGpuSpecification = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_T2] != null) {
        entries[_T2] = input[_T2];
      }
      return entries;
    }, "se_ElasticGpuSpecification");
    var se_ElasticGpuSpecificationList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_ElasticGpuSpecification(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`ElasticGpuSpecification.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_ElasticGpuSpecificationList");
    var se_ElasticGpuSpecifications = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_ElasticGpuSpecification(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Item.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_ElasticGpuSpecifications");
    var se_ElasticInferenceAccelerator = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_T2] != null) {
        entries[_T2] = input[_T2];
      }
      if (input[_Cou] != null) {
        entries[_Cou] = input[_Cou];
      }
      return entries;
    }, "se_ElasticInferenceAccelerator");
    var se_ElasticInferenceAccelerators = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_ElasticInferenceAccelerator(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Item.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_ElasticInferenceAccelerators");
    var se_EnableAddressTransferRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_AIl] != null) {
        entries[_AIl] = input[_AIl];
      }
      if (input[_TAI] != null) {
        entries[_TAI] = input[_TAI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_EnableAddressTransferRequest");
    var se_EnableAllowedImagesSettingsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_AISS] != null) {
        entries[_AISS] = input[_AISS];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_EnableAllowedImagesSettingsRequest");
    var se_EnableAwsNetworkPerformanceMetricSubscriptionRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_S] != null) {
        entries[_S] = input[_S];
      }
      if (input[_D] != null) {
        entries[_D] = input[_D];
      }
      if (input[_Met] != null) {
        entries[_Met] = input[_Met];
      }
      if (input[_Sta] != null) {
        entries[_Sta] = input[_Sta];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_EnableAwsNetworkPerformanceMetricSubscriptionRequest");
    var se_EnableEbsEncryptionByDefaultRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_EnableEbsEncryptionByDefaultRequest");
    var se_EnableFastLaunchRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IIma] != null) {
        entries[_IIma] = input[_IIma];
      }
      if (input[_RT] != null) {
        entries[_RT] = input[_RT];
      }
      if (input[_SCn] != null) {
        const memberEntries = se_FastLaunchSnapshotConfigurationRequest(input[_SCn], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SnapshotConfiguration.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_LTa] != null) {
        const memberEntries = se_FastLaunchLaunchTemplateSpecificationRequest(input[_LTa], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `LaunchTemplate.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_MPL] != null) {
        entries[_MPL] = input[_MPL];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_EnableFastLaunchRequest");
    var se_EnableFastSnapshotRestoresRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_AZv] != null) {
        const memberEntries = se_AvailabilityZoneStringList(input[_AZv], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AvailabilityZone.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_SSIo] != null) {
        const memberEntries = se_SnapshotIdStringList(input[_SSIo], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SourceSnapshotId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_EnableFastSnapshotRestoresRequest");
    var se_EnableImageBlockPublicAccessRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IBPAS] != null) {
        entries[_IBPAS] = input[_IBPAS];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_EnableImageBlockPublicAccessRequest");
    var se_EnableImageDeprecationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IIma] != null) {
        entries[_IIma] = input[_IIma];
      }
      if (input[_DAe] != null) {
        entries[_DAe] = (0, import_smithy_client28.serializeDateTime)(input[_DAe]);
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_EnableImageDeprecationRequest");
    var se_EnableImageDeregistrationProtectionRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IIma] != null) {
        entries[_IIma] = input[_IIma];
      }
      if (input[_WC] != null) {
        entries[_WC] = input[_WC];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_EnableImageDeregistrationProtectionRequest");
    var se_EnableImageRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IIma] != null) {
        entries[_IIma] = input[_IIma];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_EnableImageRequest");
    var se_EnableIpamOrganizationAdminAccountRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_DAAI] != null) {
        entries[_DAAI] = input[_DAAI];
      }
      return entries;
    }, "se_EnableIpamOrganizationAdminAccountRequest");
    var se_EnableReachabilityAnalyzerOrganizationSharingRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_EnableReachabilityAnalyzerOrganizationSharingRequest");
    var se_EnableRouteServerPropagationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RSIo] != null) {
        entries[_RSIo] = input[_RSIo];
      }
      if (input[_RTI] != null) {
        entries[_RTI] = input[_RTI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_EnableRouteServerPropagationRequest");
    var se_EnableSerialConsoleAccessRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_EnableSerialConsoleAccessRequest");
    var se_EnableSnapshotBlockPublicAccessRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Stat] != null) {
        entries[_Stat] = input[_Stat];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_EnableSnapshotBlockPublicAccessRequest");
    var se_EnableTransitGatewayRouteTablePropagationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGRTI] != null) {
        entries[_TGRTI] = input[_TGRTI];
      }
      if (input[_TGAI] != null) {
        entries[_TGAI] = input[_TGAI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_TGRTAI] != null) {
        entries[_TGRTAI] = input[_TGRTAI];
      }
      return entries;
    }, "se_EnableTransitGatewayRouteTablePropagationRequest");
    var se_EnableVgwRoutePropagationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_GI] != null) {
        entries[_GI] = input[_GI];
      }
      if (input[_RTI] != null) {
        entries[_RTI] = input[_RTI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_EnableVgwRoutePropagationRequest");
    var se_EnableVolumeIORequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_VIo] != null) {
        entries[_VIo] = input[_VIo];
      }
      return entries;
    }, "se_EnableVolumeIORequest");
    var se_EnableVpcClassicLinkDnsSupportRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_VI] != null) {
        entries[_VI] = input[_VI];
      }
      return entries;
    }, "se_EnableVpcClassicLinkDnsSupportRequest");
    var se_EnableVpcClassicLinkRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_VI] != null) {
        entries[_VI] = input[_VI];
      }
      return entries;
    }, "se_EnableVpcClassicLinkRequest");
    var se_EnaSrdSpecification = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_ESE] != null) {
        entries[_ESE] = input[_ESE];
      }
      if (input[_ESUS] != null) {
        const memberEntries = se_EnaSrdUdpSpecification(input[_ESUS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `EnaSrdUdpSpecification.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_EnaSrdSpecification");
    var se_EnaSrdSpecificationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_ESE] != null) {
        entries[_ESE] = input[_ESE];
      }
      if (input[_ESUS] != null) {
        const memberEntries = se_EnaSrdUdpSpecificationRequest(input[_ESUS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `EnaSrdUdpSpecification.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_EnaSrdSpecificationRequest");
    var se_EnaSrdUdpSpecification = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_ESUE] != null) {
        entries[_ESUE] = input[_ESUE];
      }
      return entries;
    }, "se_EnaSrdUdpSpecification");
    var se_EnaSrdUdpSpecificationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_ESUE] != null) {
        entries[_ESUE] = input[_ESUE];
      }
      return entries;
    }, "se_EnaSrdUdpSpecificationRequest");
    var se_EnclaveOptionsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_En] != null) {
        entries[_En] = input[_En];
      }
      return entries;
    }, "se_EnclaveOptionsRequest");
    var se_ExcludedInstanceTypeSet = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_ExcludedInstanceTypeSet");
    var se_ExecutableByStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`ExecutableBy.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_ExecutableByStringList");
    var se_ExportClientVpnClientCertificateRevocationListRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CVEI] != null) {
        entries[_CVEI] = input[_CVEI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_ExportClientVpnClientCertificateRevocationListRequest");
    var se_ExportClientVpnClientConfigurationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CVEI] != null) {
        entries[_CVEI] = input[_CVEI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_ExportClientVpnClientConfigurationRequest");
    var se_ExportImageRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      if (input[_DIFi] != null) {
        entries[_DIFi] = input[_DIFi];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_IIma] != null) {
        entries[_IIma] = input[_IIma];
      }
      if (input[_SEL] != null) {
        const memberEntries = se_ExportTaskS3LocationRequest(input[_SEL], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `S3ExportLocation.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_RNo] != null) {
        entries[_RNo] = input[_RNo];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_ExportImageRequest");
    var se_ExportImageTaskIdList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`ExportImageTaskId.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_ExportImageTaskIdList");
    var se_ExportTaskIdStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`ExportTaskId.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_ExportTaskIdStringList");
    var se_ExportTaskS3LocationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SB] != null) {
        entries[_SB] = input[_SB];
      }
      if (input[_SP] != null) {
        entries[_SP] = input[_SP];
      }
      return entries;
    }, "se_ExportTaskS3LocationRequest");
    var se_ExportToS3TaskSpecification = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DIFi] != null) {
        entries[_DIFi] = input[_DIFi];
      }
      if (input[_CFo] != null) {
        entries[_CFo] = input[_CFo];
      }
      if (input[_SB] != null) {
        entries[_SB] = input[_SB];
      }
      if (input[_SP] != null) {
        entries[_SP] = input[_SP];
      }
      return entries;
    }, "se_ExportToS3TaskSpecification");
    var se_ExportTransitGatewayRoutesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGRTI] != null) {
        entries[_TGRTI] = input[_TGRTI];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_SB] != null) {
        entries[_SB] = input[_SB];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_ExportTransitGatewayRoutesRequest");
    var se_ExportVerifiedAccessInstanceClientConfigurationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_VAII] != null) {
        entries[_VAII] = input[_VAII];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_ExportVerifiedAccessInstanceClientConfigurationRequest");
    var se_FastLaunchImageIdList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`ImageId.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_FastLaunchImageIdList");
    var se_FastLaunchLaunchTemplateSpecificationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_LTI] != null) {
        entries[_LTI] = input[_LTI];
      }
      if (input[_LTN] != null) {
        entries[_LTN] = input[_LTN];
      }
      if (input[_V2] != null) {
        entries[_V2] = input[_V2];
      }
      return entries;
    }, "se_FastLaunchLaunchTemplateSpecificationRequest");
    var se_FastLaunchSnapshotConfigurationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TRC] != null) {
        entries[_TRC] = input[_TRC];
      }
      return entries;
    }, "se_FastLaunchSnapshotConfigurationRequest");
    var se_FederatedAuthenticationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SAMLPA] != null) {
        entries[_SAMLPA] = input[_SAMLPA];
      }
      if (input[_SSSAMLPA] != null) {
        entries[_SSSAMLPA] = input[_SSSAMLPA];
      }
      return entries;
    }, "se_FederatedAuthenticationRequest");
    var se_Filter = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_N] != null) {
        entries[_N] = input[_N];
      }
      if (input[_Val] != null) {
        const memberEntries = se_ValueStringList(input[_Val], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Value.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_Filter");
    var se_FilterList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_Filter(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Filter.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_FilterList");
    var se_FleetBlockDeviceMappingRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DN] != null) {
        entries[_DN] = input[_DN];
      }
      if (input[_VN] != null) {
        entries[_VN] = input[_VN];
      }
      if (input[_E2] != null) {
        const memberEntries = se_FleetEbsBlockDeviceRequest(input[_E2], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Ebs.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_ND] != null) {
        entries[_ND] = input[_ND];
      }
      return entries;
    }, "se_FleetBlockDeviceMappingRequest");
    var se_FleetBlockDeviceMappingRequestList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_FleetBlockDeviceMappingRequest(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`BlockDeviceMapping.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_FleetBlockDeviceMappingRequestList");
    var se_FleetEbsBlockDeviceRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Enc] != null) {
        entries[_Enc] = input[_Enc];
      }
      if (input[_DOT] != null) {
        entries[_DOT] = input[_DOT];
      }
      if (input[_Io] != null) {
        entries[_Io] = input[_Io];
      }
      if (input[_Th] != null) {
        entries[_Th] = input[_Th];
      }
      if (input[_KKI] != null) {
        entries[_KKI] = input[_KKI];
      }
      if (input[_SIn] != null) {
        entries[_SIn] = input[_SIn];
      }
      if (input[_VS] != null) {
        entries[_VS] = input[_VS];
      }
      if (input[_VT] != null) {
        entries[_VT] = input[_VT];
      }
      return entries;
    }, "se_FleetEbsBlockDeviceRequest");
    var se_FleetIdSet = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_FleetIdSet");
    var se_FleetLaunchTemplateConfigListRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_FleetLaunchTemplateConfigRequest(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Item.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_FleetLaunchTemplateConfigListRequest");
    var se_FleetLaunchTemplateConfigRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_LTS] != null) {
        const memberEntries = se_FleetLaunchTemplateSpecificationRequest(input[_LTS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `LaunchTemplateSpecification.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_Ov] != null) {
        const memberEntries = se_FleetLaunchTemplateOverridesListRequest(input[_Ov], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Overrides.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_FleetLaunchTemplateConfigRequest");
    var se_FleetLaunchTemplateOverridesListRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_FleetLaunchTemplateOverridesRequest(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Item.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_FleetLaunchTemplateOverridesListRequest");
    var se_FleetLaunchTemplateOverridesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IT] != null) {
        entries[_IT] = input[_IT];
      }
      if (input[_MPa] != null) {
        entries[_MPa] = input[_MPa];
      }
      if (input[_SIub] != null) {
        entries[_SIub] = input[_SIub];
      }
      if (input[_AZ] != null) {
        entries[_AZ] = input[_AZ];
      }
      if (input[_WCe] != null) {
        entries[_WCe] = (0, import_smithy_client28.serializeFloat)(input[_WCe]);
      }
      if (input[_Pri] != null) {
        entries[_Pri] = (0, import_smithy_client28.serializeFloat)(input[_Pri]);
      }
      if (input[_Pl] != null) {
        const memberEntries = se_Placement(input[_Pl], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Placement.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_BDM] != null) {
        const memberEntries = se_FleetBlockDeviceMappingRequestList(input[_BDM], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `BlockDeviceMapping.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_IR] != null) {
        const memberEntries = se_InstanceRequirementsRequest(input[_IR], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `InstanceRequirements.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_IIma] != null) {
        entries[_IIma] = input[_IIma];
      }
      return entries;
    }, "se_FleetLaunchTemplateOverridesRequest");
    var se_FleetLaunchTemplateSpecification = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_LTI] != null) {
        entries[_LTI] = input[_LTI];
      }
      if (input[_LTN] != null) {
        entries[_LTN] = input[_LTN];
      }
      if (input[_V2] != null) {
        entries[_V2] = input[_V2];
      }
      return entries;
    }, "se_FleetLaunchTemplateSpecification");
    var se_FleetLaunchTemplateSpecificationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_LTI] != null) {
        entries[_LTI] = input[_LTI];
      }
      if (input[_LTN] != null) {
        entries[_LTN] = input[_LTN];
      }
      if (input[_V2] != null) {
        entries[_V2] = input[_V2];
      }
      return entries;
    }, "se_FleetLaunchTemplateSpecificationRequest");
    var se_FleetSpotCapacityRebalanceRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RS] != null) {
        entries[_RS] = input[_RS];
      }
      if (input[_TDe] != null) {
        entries[_TDe] = input[_TDe];
      }
      return entries;
    }, "se_FleetSpotCapacityRebalanceRequest");
    var se_FleetSpotMaintenanceStrategiesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CRap] != null) {
        const memberEntries = se_FleetSpotCapacityRebalanceRequest(input[_CRap], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `CapacityRebalance.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_FleetSpotMaintenanceStrategiesRequest");
    var se_FlowLogIdList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_FlowLogIdList");
    var se_FlowLogResourceIds = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_FlowLogResourceIds");
    var se_FpgaImageIdList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_FpgaImageIdList");
    var se_GetActiveVpnTunnelStatusRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_VCI] != null) {
        entries[_VCI] = input[_VCI];
      }
      if (input[_VTOIA] != null) {
        entries[_VTOIA] = input[_VTOIA];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_GetActiveVpnTunnelStatusRequest");
    var se_GetAllowedImagesSettingsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_GetAllowedImagesSettingsRequest");
    var se_GetAssociatedEnclaveCertificateIamRolesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CA2] != null) {
        entries[_CA2] = input[_CA2];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_GetAssociatedEnclaveCertificateIamRolesRequest");
    var se_GetAssociatedIpv6PoolCidrsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_PIo] != null) {
        entries[_PIo] = input[_PIo];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_GetAssociatedIpv6PoolCidrsRequest");
    var se_GetAwsNetworkPerformanceDataRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DQ] != null) {
        const memberEntries = se_DataQueries(input[_DQ], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `DataQuery.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_STt] != null) {
        entries[_STt] = (0, import_smithy_client28.serializeDateTime)(input[_STt]);
      }
      if (input[_ETn] != null) {
        entries[_ETn] = (0, import_smithy_client28.serializeDateTime)(input[_ETn]);
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_GetAwsNetworkPerformanceDataRequest");
    var se_GetCapacityReservationUsageRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CRI] != null) {
        entries[_CRI] = input[_CRI];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_GetCapacityReservationUsageRequest");
    var se_GetCoipPoolUsageRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_PIo] != null) {
        entries[_PIo] = input[_PIo];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_GetCoipPoolUsageRequest");
    var se_GetConsoleOutputRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IIn] != null) {
        entries[_IIn] = input[_IIn];
      }
      if (input[_La] != null) {
        entries[_La] = input[_La];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_GetConsoleOutputRequest");
    var se_GetConsoleScreenshotRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_IIn] != null) {
        entries[_IIn] = input[_IIn];
      }
      if (input[_WU] != null) {
        entries[_WU] = input[_WU];
      }
      return entries;
    }, "se_GetConsoleScreenshotRequest");
    var se_GetDeclarativePoliciesReportSummaryRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_RIep] != null) {
        entries[_RIep] = input[_RIep];
      }
      return entries;
    }, "se_GetDeclarativePoliciesReportSummaryRequest");
    var se_GetDefaultCreditSpecificationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_IF] != null) {
        entries[_IF] = input[_IF];
      }
      return entries;
    }, "se_GetDefaultCreditSpecificationRequest");
    var se_GetEbsDefaultKmsKeyIdRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_GetEbsDefaultKmsKeyIdRequest");
    var se_GetEbsEncryptionByDefaultRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_GetEbsEncryptionByDefaultRequest");
    var se_GetFlowLogsIntegrationTemplateRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_FLIl] != null) {
        entries[_FLIl] = input[_FLIl];
      }
      if (input[_CDSDA] != null) {
        entries[_CDSDA] = input[_CDSDA];
      }
      if (input[_ISnt] != null) {
        const memberEntries = se_IntegrateServices(input[_ISnt], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `IntegrateService.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_GetFlowLogsIntegrationTemplateRequest");
    var se_GetGroupsForCapacityReservationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CRI] != null) {
        entries[_CRI] = input[_CRI];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_GetGroupsForCapacityReservationRequest");
    var se_GetHostReservationPurchasePreviewRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_HIS] != null) {
        const memberEntries = se_RequestHostIdSet(input[_HIS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `HostIdSet.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_OI] != null) {
        entries[_OI] = input[_OI];
      }
      return entries;
    }, "se_GetHostReservationPurchasePreviewRequest");
    var se_GetImageBlockPublicAccessStateRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_GetImageBlockPublicAccessStateRequest");
    var se_GetInstanceMetadataDefaultsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_GetInstanceMetadataDefaultsRequest");
    var se_GetInstanceTpmEkPubRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IIn] != null) {
        entries[_IIn] = input[_IIn];
      }
      if (input[_KT] != null) {
        entries[_KT] = input[_KT];
      }
      if (input[_KF] != null) {
        entries[_KF] = input[_KF];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_GetInstanceTpmEkPubRequest");
    var se_GetInstanceTypesFromInstanceRequirementsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_ATr] != null) {
        const memberEntries = se_ArchitectureTypeSet(input[_ATr], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ArchitectureType.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_VTi] != null) {
        const memberEntries = se_VirtualizationTypeSet(input[_VTi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `VirtualizationType.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_IR] != null) {
        const memberEntries = se_InstanceRequirementsRequest(input[_IR], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `InstanceRequirements.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_Con] != null) {
        entries[_Con] = input[_Con];
      }
      return entries;
    }, "se_GetInstanceTypesFromInstanceRequirementsRequest");
    var se_GetInstanceUefiDataRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IIn] != null) {
        entries[_IIn] = input[_IIn];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_GetInstanceUefiDataRequest");
    var se_GetIpamAddressHistoryRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_C2] != null) {
        entries[_C2] = input[_C2];
      }
      if (input[_ISI] != null) {
        entries[_ISI] = input[_ISI];
      }
      if (input[_VI] != null) {
        entries[_VI] = input[_VI];
      }
      if (input[_STt] != null) {
        entries[_STt] = (0, import_smithy_client28.serializeDateTime)(input[_STt]);
      }
      if (input[_ETn] != null) {
        entries[_ETn] = (0, import_smithy_client28.serializeDateTime)(input[_ETn]);
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      return entries;
    }, "se_GetIpamAddressHistoryRequest");
    var se_GetIpamDiscoveredAccountsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_IRDI] != null) {
        entries[_IRDI] = input[_IRDI];
      }
      if (input[_DRi] != null) {
        entries[_DRi] = input[_DRi];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      return entries;
    }, "se_GetIpamDiscoveredAccountsRequest");
    var se_GetIpamDiscoveredPublicAddressesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_IRDI] != null) {
        entries[_IRDI] = input[_IRDI];
      }
      if (input[_ARd] != null) {
        entries[_ARd] = input[_ARd];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      return entries;
    }, "se_GetIpamDiscoveredPublicAddressesRequest");
    var se_GetIpamDiscoveredResourceCidrsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_IRDI] != null) {
        entries[_IRDI] = input[_IRDI];
      }
      if (input[_RRe] != null) {
        entries[_RRe] = input[_RRe];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      return entries;
    }, "se_GetIpamDiscoveredResourceCidrsRequest");
    var se_GetIpamPoolAllocationsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_IPI] != null) {
        entries[_IPI] = input[_IPI];
      }
      if (input[_IPAI] != null) {
        entries[_IPAI] = input[_IPAI];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      return entries;
    }, "se_GetIpamPoolAllocationsRequest");
    var se_GetIpamPoolCidrsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_IPI] != null) {
        entries[_IPI] = input[_IPI];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      return entries;
    }, "se_GetIpamPoolCidrsRequest");
    var se_GetIpamResourceCidrsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_ISI] != null) {
        entries[_ISI] = input[_ISI];
      }
      if (input[_IPI] != null) {
        entries[_IPI] = input[_IPI];
      }
      if (input[_RIeso] != null) {
        entries[_RIeso] = input[_RIeso];
      }
      if (input[_RT] != null) {
        entries[_RT] = input[_RT];
      }
      if (input[_RTeso] != null) {
        const memberEntries = se_RequestIpamResourceTag(input[_RTeso], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ResourceTag.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_ROe] != null) {
        entries[_ROe] = input[_ROe];
      }
      return entries;
    }, "se_GetIpamResourceCidrsRequest");
    var se_GetLaunchTemplateDataRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_IIn] != null) {
        entries[_IIn] = input[_IIn];
      }
      return entries;
    }, "se_GetLaunchTemplateDataRequest");
    var se_GetManagedPrefixListAssociationsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_PLI] != null) {
        entries[_PLI] = input[_PLI];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      return entries;
    }, "se_GetManagedPrefixListAssociationsRequest");
    var se_GetManagedPrefixListEntriesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_PLI] != null) {
        entries[_PLI] = input[_PLI];
      }
      if (input[_TV] != null) {
        entries[_TV] = input[_TV];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      return entries;
    }, "se_GetManagedPrefixListEntriesRequest");
    var se_GetNetworkInsightsAccessScopeAnalysisFindingsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_NIASAI] != null) {
        entries[_NIASAI] = input[_NIASAI];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_GetNetworkInsightsAccessScopeAnalysisFindingsRequest");
    var se_GetNetworkInsightsAccessScopeContentRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_NIASI] != null) {
        entries[_NIASI] = input[_NIASI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_GetNetworkInsightsAccessScopeContentRequest");
    var se_GetPasswordDataRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IIn] != null) {
        entries[_IIn] = input[_IIn];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_GetPasswordDataRequest");
    var se_GetReservedInstancesExchangeQuoteRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_RII] != null) {
        const memberEntries = se_ReservedInstanceIdSet(input[_RII], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ReservedInstanceId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_TC2] != null) {
        const memberEntries = se_TargetConfigurationRequestSet(input[_TC2], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TargetConfiguration.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_GetReservedInstancesExchangeQuoteRequest");
    var se_GetRouteServerAssociationsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RSIo] != null) {
        entries[_RSIo] = input[_RSIo];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_GetRouteServerAssociationsRequest");
    var se_GetRouteServerPropagationsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RSIo] != null) {
        entries[_RSIo] = input[_RSIo];
      }
      if (input[_RTI] != null) {
        entries[_RTI] = input[_RTI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_GetRouteServerPropagationsRequest");
    var se_GetRouteServerRoutingDatabaseRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RSIo] != null) {
        entries[_RSIo] = input[_RSIo];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_GetRouteServerRoutingDatabaseRequest");
    var se_GetSecurityGroupsForVpcRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_VI] != null) {
        entries[_VI] = input[_VI];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_GetSecurityGroupsForVpcRequest");
    var se_GetSerialConsoleAccessStatusRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_GetSerialConsoleAccessStatusRequest");
    var se_GetSnapshotBlockPublicAccessStateRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_GetSnapshotBlockPublicAccessStateRequest");
    var se_GetSpotPlacementScoresRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_ITnst] != null) {
        const memberEntries = se_InstanceTypes(input[_ITnst], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `InstanceType.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_TCa] != null) {
        entries[_TCa] = input[_TCa];
      }
      if (input[_TCUT] != null) {
        entries[_TCUT] = input[_TCUT];
      }
      if (input[_SAZ] != null) {
        entries[_SAZ] = input[_SAZ];
      }
      if (input[_RNe] != null) {
        const memberEntries = se_RegionNames(input[_RNe], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `RegionName.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_IRWM] != null) {
        const memberEntries = se_InstanceRequirementsWithMetadataRequest(input[_IRWM], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `InstanceRequirementsWithMetadata.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      return entries;
    }, "se_GetSpotPlacementScoresRequest");
    var se_GetSubnetCidrReservationsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_SIub] != null) {
        entries[_SIub] = input[_SIub];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      return entries;
    }, "se_GetSubnetCidrReservationsRequest");
    var se_GetTransitGatewayAttachmentPropagationsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGAI] != null) {
        entries[_TGAI] = input[_TGAI];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_GetTransitGatewayAttachmentPropagationsRequest");
    var se_GetTransitGatewayMulticastDomainAssociationsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGMDI] != null) {
        entries[_TGMDI] = input[_TGMDI];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_GetTransitGatewayMulticastDomainAssociationsRequest");
    var se_GetTransitGatewayPolicyTableAssociationsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGPTI] != null) {
        entries[_TGPTI] = input[_TGPTI];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_GetTransitGatewayPolicyTableAssociationsRequest");
    var se_GetTransitGatewayPolicyTableEntriesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGPTI] != null) {
        entries[_TGPTI] = input[_TGPTI];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_GetTransitGatewayPolicyTableEntriesRequest");
    var se_GetTransitGatewayPrefixListReferencesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGRTI] != null) {
        entries[_TGRTI] = input[_TGRTI];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_GetTransitGatewayPrefixListReferencesRequest");
    var se_GetTransitGatewayRouteTableAssociationsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGRTI] != null) {
        entries[_TGRTI] = input[_TGRTI];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_GetTransitGatewayRouteTableAssociationsRequest");
    var se_GetTransitGatewayRouteTablePropagationsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGRTI] != null) {
        entries[_TGRTI] = input[_TGRTI];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_GetTransitGatewayRouteTablePropagationsRequest");
    var se_GetVerifiedAccessEndpointPolicyRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_VAEI] != null) {
        entries[_VAEI] = input[_VAEI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_GetVerifiedAccessEndpointPolicyRequest");
    var se_GetVerifiedAccessEndpointTargetsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_VAEI] != null) {
        entries[_VAEI] = input[_VAEI];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_GetVerifiedAccessEndpointTargetsRequest");
    var se_GetVerifiedAccessGroupPolicyRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_VAGI] != null) {
        entries[_VAGI] = input[_VAGI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_GetVerifiedAccessGroupPolicyRequest");
    var se_GetVpnConnectionDeviceSampleConfigurationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_VCI] != null) {
        entries[_VCI] = input[_VCI];
      }
      if (input[_VCDTI] != null) {
        entries[_VCDTI] = input[_VCDTI];
      }
      if (input[_IKEV] != null) {
        entries[_IKEV] = input[_IKEV];
      }
      if (input[_STa] != null) {
        entries[_STa] = input[_STa];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_GetVpnConnectionDeviceSampleConfigurationRequest");
    var se_GetVpnConnectionDeviceTypesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_GetVpnConnectionDeviceTypesRequest");
    var se_GetVpnTunnelReplacementStatusRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_VCI] != null) {
        entries[_VCI] = input[_VCI];
      }
      if (input[_VTOIA] != null) {
        entries[_VTOIA] = input[_VTOIA];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_GetVpnTunnelReplacementStatusRequest");
    var se_GroupIdentifier = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_GIr] != null) {
        entries[_GIr] = input[_GIr];
      }
      if (input[_GN] != null) {
        entries[_GN] = input[_GN];
      }
      return entries;
    }, "se_GroupIdentifier");
    var se_GroupIdentifierList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_GroupIdentifier(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Item.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_GroupIdentifierList");
    var se_GroupIds = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_GroupIds");
    var se_GroupIdStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`GroupId.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_GroupIdStringList");
    var se_GroupNameStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`GroupName.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_GroupNameStringList");
    var se_HibernationOptionsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Conf] != null) {
        entries[_Conf] = input[_Conf];
      }
      return entries;
    }, "se_HibernationOptionsRequest");
    var se_HostReservationIdSet = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_HostReservationIdSet");
    var se_IamInstanceProfileSpecification = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Ar2] != null) {
        entries[_Ar2] = input[_Ar2];
      }
      if (input[_N] != null) {
        entries[_N] = input[_N];
      }
      return entries;
    }, "se_IamInstanceProfileSpecification");
    var se_IcmpTypeCode = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Cod] != null) {
        entries[_Cod] = input[_Cod];
      }
      if (input[_T2] != null) {
        entries[_T2] = input[_T2];
      }
      return entries;
    }, "se_IcmpTypeCode");
    var se_IKEVersionsRequestList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_IKEVersionsRequestListValue(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Item.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_IKEVersionsRequestList");
    var se_IKEVersionsRequestListValue = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Va2] != null) {
        entries[_Va2] = input[_Va2];
      }
      return entries;
    }, "se_IKEVersionsRequestListValue");
    var se_ImageCriterionRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IPm] != null) {
        const memberEntries = se_ImageProviderRequestList(input[_IPm], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ImageProvider.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_ImageCriterionRequest");
    var se_ImageCriterionRequestList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_ImageCriterionRequest(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`ImageCriterion.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_ImageCriterionRequestList");
    var se_ImageDiskContainer = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      if (input[_DN] != null) {
        entries[_DN] = input[_DN];
      }
      if (input[_Fo] != null) {
        entries[_Fo] = input[_Fo];
      }
      if (input[_SIn] != null) {
        entries[_SIn] = input[_SIn];
      }
      if (input[_U] != null) {
        entries[_U] = input[_U];
      }
      if (input[_UB] != null) {
        const memberEntries = se_UserBucket(input[_UB], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `UserBucket.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_ImageDiskContainer");
    var se_ImageDiskContainerList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_ImageDiskContainer(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Item.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_ImageDiskContainerList");
    var se_ImageIdList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_ImageIdList");
    var se_ImageIdStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`ImageId.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_ImageIdStringList");
    var se_ImageProviderRequestList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_ImageProviderRequestList");
    var se_ImageUsageReportIdStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_ImageUsageReportIdStringList");
    var se_ImageUsageReportUserIdStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`UserId.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_ImageUsageReportUserIdStringList");
    var se_ImageUsageResourceTypeOptionRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_ON] != null) {
        entries[_ON] = input[_ON];
      }
      if (input[_OV] != null) {
        const memberEntries = se_ImageUsageResourceTypeOptionValuesList(input[_OV], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `OptionValue.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_ImageUsageResourceTypeOptionRequest");
    var se_ImageUsageResourceTypeOptionRequestList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_ImageUsageResourceTypeOptionRequest(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Member.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_ImageUsageResourceTypeOptionRequestList");
    var se_ImageUsageResourceTypeOptionValuesList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_ImageUsageResourceTypeOptionValuesList");
    var se_ImageUsageResourceTypeRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RT] != null) {
        entries[_RT] = input[_RT];
      }
      if (input[_RTO] != null) {
        const memberEntries = se_ImageUsageResourceTypeOptionRequestList(input[_RTO], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ResourceTypeOption.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_ImageUsageResourceTypeRequest");
    var se_ImageUsageResourceTypeRequestList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_ImageUsageResourceTypeRequest(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Member.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_ImageUsageResourceTypeRequestList");
    var se_ImportClientVpnClientCertificateRevocationListRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CVEI] != null) {
        entries[_CVEI] = input[_CVEI];
      }
      if (input[_CRL] != null) {
        entries[_CRL] = input[_CRL];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_ImportClientVpnClientCertificateRevocationListRequest");
    var se_ImportImageLicenseConfigurationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_LCA] != null) {
        entries[_LCA] = input[_LCA];
      }
      return entries;
    }, "se_ImportImageLicenseConfigurationRequest");
    var se_ImportImageLicenseSpecificationListRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_ImportImageLicenseConfigurationRequest(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Item.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_ImportImageLicenseSpecificationListRequest");
    var se_ImportImageRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Arc] != null) {
        entries[_Arc] = input[_Arc];
      }
      if (input[_CDl] != null) {
        const memberEntries = se_ClientData(input[_CDl], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ClientData.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      if (input[_DCi] != null) {
        const memberEntries = se_ImageDiskContainerList(input[_DCi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `DiskContainer.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_Enc] != null) {
        entries[_Enc] = input[_Enc];
      }
      if (input[_H] != null) {
        entries[_H] = input[_H];
      }
      if (input[_KKI] != null) {
        entries[_KKI] = input[_KKI];
      }
      if (input[_LTi] != null) {
        entries[_LTi] = input[_LTi];
      }
      if (input[_Pla] != null) {
        entries[_Pla] = input[_Pla];
      }
      if (input[_RNo] != null) {
        entries[_RNo] = input[_RNo];
      }
      if (input[_LSi] != null) {
        const memberEntries = se_ImportImageLicenseSpecificationListRequest(input[_LSi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `LicenseSpecifications.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_UO] != null) {
        entries[_UO] = input[_UO];
      }
      if (input[_BM] != null) {
        entries[_BM] = input[_BM];
      }
      return entries;
    }, "se_ImportImageRequest");
    var se_ImportInstanceLaunchSpecification = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Arc] != null) {
        entries[_Arc] = input[_Arc];
      }
      if (input[_GNr] != null) {
        const memberEntries = se_SecurityGroupStringList(input[_GNr], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `GroupName.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_GIro] != null) {
        const memberEntries = se_SecurityGroupIdStringList(input[_GIro], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `GroupId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_AId] != null) {
        entries[_AId] = input[_AId];
      }
      if (input[_UD] != null) {
        const memberEntries = se_UserData(input[_UD], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `UserData.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_IT] != null) {
        entries[_IT] = input[_IT];
      }
      if (input[_Pl] != null) {
        const memberEntries = se_Placement(input[_Pl], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Placement.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_Mon] != null) {
        entries[_Mon] = input[_Mon];
      }
      if (input[_SIub] != null) {
        entries[_SIub] = input[_SIub];
      }
      if (input[_IISB] != null) {
        entries[_IISB] = input[_IISB];
      }
      if (input[_PIAr] != null) {
        entries[_PIAr] = input[_PIAr];
      }
      return entries;
    }, "se_ImportInstanceLaunchSpecification");
    var se_ImportInstanceRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      if (input[_LSa] != null) {
        const memberEntries = se_ImportInstanceLaunchSpecification(input[_LSa], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `LaunchSpecification.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_DIis] != null) {
        const memberEntries = se_DiskImageList(input[_DIis], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `DiskImage.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Pla] != null) {
        entries[_Pla] = input[_Pla];
      }
      return entries;
    }, "se_ImportInstanceRequest");
    var se_ImportKeyPairRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_KN] != null) {
        entries[_KN] = input[_KN];
      }
      if (input[_PKM] != null) {
        entries[_PKM] = context.base64Encoder(input[_PKM]);
      }
      return entries;
    }, "se_ImportKeyPairRequest");
    var se_ImportSnapshotRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CDl] != null) {
        const memberEntries = se_ClientData(input[_CDl], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ClientData.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      if (input[_DCis] != null) {
        const memberEntries = se_SnapshotDiskContainer(input[_DCis], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `DiskContainer.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_Enc] != null) {
        entries[_Enc] = input[_Enc];
      }
      if (input[_KKI] != null) {
        entries[_KKI] = input[_KKI];
      }
      if (input[_RNo] != null) {
        entries[_RNo] = input[_RNo];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_ImportSnapshotRequest");
    var se_ImportSnapshotTaskIdList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`ImportTaskId.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_ImportSnapshotTaskIdList");
    var se_ImportTaskIdList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`ImportTaskId.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_ImportTaskIdList");
    var se_ImportVolumeRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_AZI] != null) {
        entries[_AZI] = input[_AZI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_AZ] != null) {
        entries[_AZ] = input[_AZ];
      }
      if (input[_Im] != null) {
        const memberEntries = se_DiskImageDetail(input[_Im], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Image.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      if (input[_Vo] != null) {
        const memberEntries = se_VolumeDetail(input[_Vo], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Volume.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_ImportVolumeRequest");
    var se_InsideCidrBlocksStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_InsideCidrBlocksStringList");
    var se_InstanceBlockDeviceMappingSpecification = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DN] != null) {
        entries[_DN] = input[_DN];
      }
      if (input[_E2] != null) {
        const memberEntries = se_EbsInstanceBlockDeviceSpecification(input[_E2], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Ebs.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_VN] != null) {
        entries[_VN] = input[_VN];
      }
      if (input[_ND] != null) {
        entries[_ND] = input[_ND];
      }
      return entries;
    }, "se_InstanceBlockDeviceMappingSpecification");
    var se_InstanceBlockDeviceMappingSpecificationList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_InstanceBlockDeviceMappingSpecification(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Item.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_InstanceBlockDeviceMappingSpecificationList");
    var se_InstanceCreditSpecificationListRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_InstanceCreditSpecificationRequest(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Item.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_InstanceCreditSpecificationListRequest");
    var se_InstanceCreditSpecificationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IIn] != null) {
        entries[_IIn] = input[_IIn];
      }
      if (input[_CCp] != null) {
        entries[_CCp] = input[_CCp];
      }
      return entries;
    }, "se_InstanceCreditSpecificationRequest");
    var se_InstanceEventWindowAssociationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IIns] != null) {
        const memberEntries = se_InstanceIdList(input[_IIns], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `InstanceId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_ITnsta] != null) {
        const memberEntries = se_TagList(input[_ITnsta], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `InstanceTag.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DHI] != null) {
        const memberEntries = se_DedicatedHostIdList(input[_DHI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `DedicatedHostId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_InstanceEventWindowAssociationRequest");
    var se_InstanceEventWindowDisassociationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IIns] != null) {
        const memberEntries = se_InstanceIdList(input[_IIns], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `InstanceId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_ITnsta] != null) {
        const memberEntries = se_TagList(input[_ITnsta], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `InstanceTag.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DHI] != null) {
        const memberEntries = se_DedicatedHostIdList(input[_DHI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `DedicatedHostId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_InstanceEventWindowDisassociationRequest");
    var se_InstanceEventWindowIdSet = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`InstanceEventWindowId.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_InstanceEventWindowIdSet");
    var se_InstanceEventWindowTimeRangeRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SWD] != null) {
        entries[_SWD] = input[_SWD];
      }
      if (input[_SH] != null) {
        entries[_SH] = input[_SH];
      }
      if (input[_EWD] != null) {
        entries[_EWD] = input[_EWD];
      }
      if (input[_EH] != null) {
        entries[_EH] = input[_EH];
      }
      return entries;
    }, "se_InstanceEventWindowTimeRangeRequest");
    var se_InstanceEventWindowTimeRangeRequestSet = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_InstanceEventWindowTimeRangeRequest(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Member.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_InstanceEventWindowTimeRangeRequestSet");
    var se_InstanceGenerationSet = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_InstanceGenerationSet");
    var se_InstanceIdList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_InstanceIdList");
    var se_InstanceIdStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`InstanceId.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_InstanceIdStringList");
    var se_InstanceIpv6Address = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IApv] != null) {
        entries[_IApv] = input[_IApv];
      }
      if (input[_IPIs] != null) {
        entries[_IPIs] = input[_IPIs];
      }
      return entries;
    }, "se_InstanceIpv6Address");
    var se_InstanceIpv6AddressList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_InstanceIpv6Address(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Item.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_InstanceIpv6AddressList");
    var se_InstanceIpv6AddressListRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_InstanceIpv6AddressRequest(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`InstanceIpv6Address.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_InstanceIpv6AddressListRequest");
    var se_InstanceIpv6AddressRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IApv] != null) {
        entries[_IApv] = input[_IApv];
      }
      return entries;
    }, "se_InstanceIpv6AddressRequest");
    var se_InstanceMaintenanceOptionsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_ARu] != null) {
        entries[_ARu] = input[_ARu];
      }
      return entries;
    }, "se_InstanceMaintenanceOptionsRequest");
    var se_InstanceMarketOptionsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_MT] != null) {
        entries[_MT] = input[_MT];
      }
      if (input[_SO] != null) {
        const memberEntries = se_SpotMarketOptions(input[_SO], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SpotOptions.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_InstanceMarketOptionsRequest");
    var se_InstanceMetadataOptionsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_HT] != null) {
        entries[_HT] = input[_HT];
      }
      if (input[_HPRHL] != null) {
        entries[_HPRHL] = input[_HPRHL];
      }
      if (input[_HE] != null) {
        entries[_HE] = input[_HE];
      }
      if (input[_HPI] != null) {
        entries[_HPI] = input[_HPI];
      }
      if (input[_IMT] != null) {
        entries[_IMT] = input[_IMT];
      }
      return entries;
    }, "se_InstanceMetadataOptionsRequest");
    var se_InstanceNetworkInterfaceSpecification = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_APIAs] != null) {
        entries[_APIAs] = input[_APIAs];
      }
      if (input[_DOT] != null) {
        entries[_DOT] = input[_DOT];
      }
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      if (input[_DIev] != null) {
        entries[_DIev] = input[_DIev];
      }
      if (input[_G] != null) {
        const memberEntries = se_SecurityGroupIdStringList(input[_G], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SecurityGroupId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_IAC] != null) {
        entries[_IAC] = input[_IAC];
      }
      if (input[_IA] != null) {
        const memberEntries = se_InstanceIpv6AddressList(input[_IA], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Ipv6Addresses.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_NII] != null) {
        entries[_NII] = input[_NII];
      }
      if (input[_PIAr] != null) {
        entries[_PIAr] = input[_PIAr];
      }
      if (input[_PIA] != null) {
        const memberEntries = se_PrivateIpAddressSpecificationList(input[_PIA], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `PrivateIpAddresses.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_SPIAC] != null) {
        entries[_SPIAC] = input[_SPIAC];
      }
      if (input[_SIub] != null) {
        entries[_SIub] = input[_SIub];
      }
      if (input[_ACIA] != null) {
        entries[_ACIA] = input[_ACIA];
      }
      if (input[_ITn] != null) {
        entries[_ITn] = input[_ITn];
      }
      if (input[_NCI] != null) {
        entries[_NCI] = input[_NCI];
      }
      if (input[_IPp] != null) {
        const memberEntries = se_Ipv4PrefixList(input[_IPp], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Ipv4Prefix.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_IPCp] != null) {
        entries[_IPCp] = input[_IPCp];
      }
      if (input[_IP] != null) {
        const memberEntries = se_Ipv6PrefixList(input[_IP], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Ipv6Prefix.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_IPC] != null) {
        entries[_IPC] = input[_IPC];
      }
      if (input[_PIr] != null) {
        entries[_PIr] = input[_PIr];
      }
      if (input[_ESS] != null) {
        const memberEntries = se_EnaSrdSpecificationRequest(input[_ESS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `EnaSrdSpecification.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_CTS] != null) {
        const memberEntries = se_ConnectionTrackingSpecificationRequest(input[_CTS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ConnectionTrackingSpecification.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_EQC] != null) {
        entries[_EQC] = input[_EQC];
      }
      return entries;
    }, "se_InstanceNetworkInterfaceSpecification");
    var se_InstanceNetworkInterfaceSpecificationList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_InstanceNetworkInterfaceSpecification(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Item.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_InstanceNetworkInterfaceSpecificationList");
    var se_InstanceNetworkPerformanceOptionsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_BW] != null) {
        entries[_BW] = input[_BW];
      }
      return entries;
    }, "se_InstanceNetworkPerformanceOptionsRequest");
    var se_InstanceRequirements = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_VCC] != null) {
        const memberEntries = se_VCpuCountRange(input[_VCC], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `VCpuCount.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_MMB] != null) {
        const memberEntries = se_MemoryMiB(input[_MMB], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `MemoryMiB.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_CM] != null) {
        const memberEntries = se_CpuManufacturerSet(input[_CM], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `CpuManufacturerSet.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MGBPVC] != null) {
        const memberEntries = se_MemoryGiBPerVCpu(input[_MGBPVC], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `MemoryGiBPerVCpu.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_EIT] != null) {
        const memberEntries = se_ExcludedInstanceTypeSet(input[_EIT], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ExcludedInstanceTypeSet.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_IG] != null) {
        const memberEntries = se_InstanceGenerationSet(input[_IG], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `InstanceGenerationSet.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_SMPPOLP] != null) {
        entries[_SMPPOLP] = input[_SMPPOLP];
      }
      if (input[_ODMPPOLP] != null) {
        entries[_ODMPPOLP] = input[_ODMPPOLP];
      }
      if (input[_BMa] != null) {
        entries[_BMa] = input[_BMa];
      }
      if (input[_BP] != null) {
        entries[_BP] = input[_BP];
      }
      if (input[_RHS] != null) {
        entries[_RHS] = input[_RHS];
      }
      if (input[_NIC] != null) {
        const memberEntries = se_NetworkInterfaceCount(input[_NIC], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `NetworkInterfaceCount.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_LSo] != null) {
        entries[_LSo] = input[_LSo];
      }
      if (input[_LST] != null) {
        const memberEntries = se_LocalStorageTypeSet(input[_LST], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `LocalStorageTypeSet.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_TLSGB] != null) {
        const memberEntries = se_TotalLocalStorageGB(input[_TLSGB], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TotalLocalStorageGB.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_BEBM] != null) {
        const memberEntries = se_BaselineEbsBandwidthMbps(input[_BEBM], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `BaselineEbsBandwidthMbps.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_ATc] != null) {
        const memberEntries = se_AcceleratorTypeSet(input[_ATc], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AcceleratorTypeSet.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_ACc] != null) {
        const memberEntries = se_AcceleratorCount(input[_ACc], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AcceleratorCount.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_AM] != null) {
        const memberEntries = se_AcceleratorManufacturerSet(input[_AM], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AcceleratorManufacturerSet.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_ANc] != null) {
        const memberEntries = se_AcceleratorNameSet(input[_ANc], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AcceleratorNameSet.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_ATMMB] != null) {
        const memberEntries = se_AcceleratorTotalMemoryMiB(input[_ATMMB], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AcceleratorTotalMemoryMiB.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_NBGe] != null) {
        const memberEntries = se_NetworkBandwidthGbps(input[_NBGe], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `NetworkBandwidthGbps.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_AIT] != null) {
        const memberEntries = se_AllowedInstanceTypeSet(input[_AIT], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AllowedInstanceTypeSet.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MSPAPOOODP] != null) {
        entries[_MSPAPOOODP] = input[_MSPAPOOODP];
      }
      if (input[_BPF] != null) {
        const memberEntries = se_BaselinePerformanceFactors(input[_BPF], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `BaselinePerformanceFactors.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_InstanceRequirements");
    var se_InstanceRequirementsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_VCC] != null) {
        const memberEntries = se_VCpuCountRangeRequest(input[_VCC], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `VCpuCount.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_MMB] != null) {
        const memberEntries = se_MemoryMiBRequest(input[_MMB], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `MemoryMiB.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_CM] != null) {
        const memberEntries = se_CpuManufacturerSet(input[_CM], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `CpuManufacturer.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MGBPVC] != null) {
        const memberEntries = se_MemoryGiBPerVCpuRequest(input[_MGBPVC], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `MemoryGiBPerVCpu.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_EIT] != null) {
        const memberEntries = se_ExcludedInstanceTypeSet(input[_EIT], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ExcludedInstanceType.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_IG] != null) {
        const memberEntries = se_InstanceGenerationSet(input[_IG], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `InstanceGeneration.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_SMPPOLP] != null) {
        entries[_SMPPOLP] = input[_SMPPOLP];
      }
      if (input[_ODMPPOLP] != null) {
        entries[_ODMPPOLP] = input[_ODMPPOLP];
      }
      if (input[_BMa] != null) {
        entries[_BMa] = input[_BMa];
      }
      if (input[_BP] != null) {
        entries[_BP] = input[_BP];
      }
      if (input[_RHS] != null) {
        entries[_RHS] = input[_RHS];
      }
      if (input[_NIC] != null) {
        const memberEntries = se_NetworkInterfaceCountRequest(input[_NIC], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `NetworkInterfaceCount.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_LSo] != null) {
        entries[_LSo] = input[_LSo];
      }
      if (input[_LST] != null) {
        const memberEntries = se_LocalStorageTypeSet(input[_LST], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `LocalStorageType.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_TLSGB] != null) {
        const memberEntries = se_TotalLocalStorageGBRequest(input[_TLSGB], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TotalLocalStorageGB.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_BEBM] != null) {
        const memberEntries = se_BaselineEbsBandwidthMbpsRequest(input[_BEBM], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `BaselineEbsBandwidthMbps.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_ATc] != null) {
        const memberEntries = se_AcceleratorTypeSet(input[_ATc], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AcceleratorType.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_ACc] != null) {
        const memberEntries = se_AcceleratorCountRequest(input[_ACc], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AcceleratorCount.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_AM] != null) {
        const memberEntries = se_AcceleratorManufacturerSet(input[_AM], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AcceleratorManufacturer.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_ANc] != null) {
        const memberEntries = se_AcceleratorNameSet(input[_ANc], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AcceleratorName.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_ATMMB] != null) {
        const memberEntries = se_AcceleratorTotalMemoryMiBRequest(input[_ATMMB], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AcceleratorTotalMemoryMiB.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_NBGe] != null) {
        const memberEntries = se_NetworkBandwidthGbpsRequest(input[_NBGe], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `NetworkBandwidthGbps.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_AIT] != null) {
        const memberEntries = se_AllowedInstanceTypeSet(input[_AIT], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AllowedInstanceType.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MSPAPOOODP] != null) {
        entries[_MSPAPOOODP] = input[_MSPAPOOODP];
      }
      if (input[_BPF] != null) {
        const memberEntries = se_BaselinePerformanceFactorsRequest(input[_BPF], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `BaselinePerformanceFactors.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_InstanceRequirementsRequest");
    var se_InstanceRequirementsWithMetadataRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_ATr] != null) {
        const memberEntries = se_ArchitectureTypeSet(input[_ATr], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ArchitectureType.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_VTi] != null) {
        const memberEntries = se_VirtualizationTypeSet(input[_VTi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `VirtualizationType.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_IR] != null) {
        const memberEntries = se_InstanceRequirementsRequest(input[_IR], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `InstanceRequirements.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_InstanceRequirementsWithMetadataRequest");
    var se_InstanceSpecification = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IIn] != null) {
        entries[_IIn] = input[_IIn];
      }
      if (input[_EBV] != null) {
        entries[_EBV] = input[_EBV];
      }
      if (input[_EDVI] != null) {
        const memberEntries = se_VolumeIdStringList(input[_EDVI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ExcludeDataVolumeId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_InstanceSpecification");
    var se_InstanceTagKeySet = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_InstanceTagKeySet");
    var se_InstanceTypeList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_InstanceTypeList");
    var se_InstanceTypes = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_InstanceTypes");
    var se_IntegrateServices = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_AIth] != null) {
        const memberEntries = se_AthenaIntegrationsSet(input[_AIth], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AthenaIntegration.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_IntegrateServices");
    var se_InternetGatewayIdList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_InternetGatewayIdList");
    var se_IpamCidrAuthorizationContext = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Me] != null) {
        entries[_Me] = input[_Me];
      }
      if (input[_Si] != null) {
        entries[_Si] = input[_Si];
      }
      return entries;
    }, "se_IpamCidrAuthorizationContext");
    var se_IpamPoolAllocationAllowedCidrs = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_IpamPoolAllocationAllowedCidrs");
    var se_IpamPoolAllocationDisallowedCidrs = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_IpamPoolAllocationDisallowedCidrs");
    var se_IpamPoolSourceResourceRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RIeso] != null) {
        entries[_RIeso] = input[_RIeso];
      }
      if (input[_RT] != null) {
        entries[_RT] = input[_RT];
      }
      if (input[_RRe] != null) {
        entries[_RRe] = input[_RRe];
      }
      if (input[_ROe] != null) {
        entries[_ROe] = input[_ROe];
      }
      return entries;
    }, "se_IpamPoolSourceResourceRequest");
    var se_IpList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_IpList");
    var se_IpPermission = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IPpr] != null) {
        entries[_IPpr] = input[_IPpr];
      }
      if (input[_FP] != null) {
        entries[_FP] = input[_FP];
      }
      if (input[_TP] != null) {
        entries[_TP] = input[_TP];
      }
      if (input[_UIGP] != null) {
        const memberEntries = se_UserIdGroupPairList(input[_UIGP], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Groups.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_IRp] != null) {
        const memberEntries = se_IpRangeList(input[_IRp], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `IpRanges.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_IRpv] != null) {
        const memberEntries = se_Ipv6RangeList(input[_IRpv], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Ipv6Ranges.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_PLIr] != null) {
        const memberEntries = se_PrefixListIdList(input[_PLIr], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `PrefixListIds.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_IpPermission");
    var se_IpPermissionList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_IpPermission(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Item.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_IpPermissionList");
    var se_IpPrefixList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_IpPrefixList");
    var se_IpRange = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      if (input[_CIi] != null) {
        entries[_CIi] = input[_CIi];
      }
      return entries;
    }, "se_IpRange");
    var se_IpRangeList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_IpRange(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Item.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_IpRangeList");
    var se_Ipv4PrefixList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_Ipv4PrefixSpecificationRequest(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Item.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_Ipv4PrefixList");
    var se_Ipv4PrefixSpecificationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IPpvr] != null) {
        entries[_IPpvr] = input[_IPpvr];
      }
      return entries;
    }, "se_Ipv4PrefixSpecificationRequest");
    var se_Ipv6AddressList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_Ipv6AddressList");
    var se_Ipv6PoolIdList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_Ipv6PoolIdList");
    var se_Ipv6PrefixList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_Ipv6PrefixSpecificationRequest(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Item.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_Ipv6PrefixList");
    var se_Ipv6PrefixSpecificationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IPpvre] != null) {
        entries[_IPpvre] = input[_IPpvre];
      }
      return entries;
    }, "se_Ipv6PrefixSpecificationRequest");
    var se_Ipv6Range = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      if (input[_CIid] != null) {
        entries[_CIid] = input[_CIid];
      }
      return entries;
    }, "se_Ipv6Range");
    var se_Ipv6RangeList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_Ipv6Range(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Item.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_Ipv6RangeList");
    var se_KeyNameStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`KeyName.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_KeyNameStringList");
    var se_KeyPairIdStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`KeyPairId.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_KeyPairIdStringList");
    var se_LaunchPermission = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_OAr] != null) {
        entries[_OAr] = input[_OAr];
      }
      if (input[_OUA] != null) {
        entries[_OUA] = input[_OUA];
      }
      if (input[_UIs] != null) {
        entries[_UIs] = input[_UIs];
      }
      if (input[_Gr] != null) {
        entries[_Gr] = input[_Gr];
      }
      return entries;
    }, "se_LaunchPermission");
    var se_LaunchPermissionList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_LaunchPermission(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Item.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_LaunchPermissionList");
    var se_LaunchPermissionModifications = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Add] != null) {
        const memberEntries = se_LaunchPermissionList(input[_Add], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Add.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Rem] != null) {
        const memberEntries = se_LaunchPermissionList(input[_Rem], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Remove.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_LaunchPermissionModifications");
    var se_LaunchSpecsList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_SpotFleetLaunchSpecification(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Item.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_LaunchSpecsList");
    var se_LaunchTemplateBlockDeviceMappingRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DN] != null) {
        entries[_DN] = input[_DN];
      }
      if (input[_VN] != null) {
        entries[_VN] = input[_VN];
      }
      if (input[_E2] != null) {
        const memberEntries = se_LaunchTemplateEbsBlockDeviceRequest(input[_E2], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Ebs.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_ND] != null) {
        entries[_ND] = input[_ND];
      }
      return entries;
    }, "se_LaunchTemplateBlockDeviceMappingRequest");
    var se_LaunchTemplateBlockDeviceMappingRequestList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_LaunchTemplateBlockDeviceMappingRequest(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`BlockDeviceMapping.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_LaunchTemplateBlockDeviceMappingRequestList");
    var se_LaunchTemplateCapacityReservationSpecificationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CRP] != null) {
        entries[_CRP] = input[_CRP];
      }
      if (input[_CRTa] != null) {
        const memberEntries = se_CapacityReservationTarget(input[_CRTa], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `CapacityReservationTarget.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_LaunchTemplateCapacityReservationSpecificationRequest");
    var se_LaunchTemplateConfig = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_LTS] != null) {
        const memberEntries = se_FleetLaunchTemplateSpecification(input[_LTS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `LaunchTemplateSpecification.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_Ov] != null) {
        const memberEntries = se_LaunchTemplateOverridesList(input[_Ov], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Overrides.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_LaunchTemplateConfig");
    var se_LaunchTemplateConfigList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_LaunchTemplateConfig(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Item.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_LaunchTemplateConfigList");
    var se_LaunchTemplateCpuOptionsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CC] != null) {
        entries[_CC] = input[_CC];
      }
      if (input[_TPC] != null) {
        entries[_TPC] = input[_TPC];
      }
      if (input[_ASS] != null) {
        entries[_ASS] = input[_ASS];
      }
      return entries;
    }, "se_LaunchTemplateCpuOptionsRequest");
    var se_LaunchTemplateEbsBlockDeviceRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Enc] != null) {
        entries[_Enc] = input[_Enc];
      }
      if (input[_DOT] != null) {
        entries[_DOT] = input[_DOT];
      }
      if (input[_Io] != null) {
        entries[_Io] = input[_Io];
      }
      if (input[_KKI] != null) {
        entries[_KKI] = input[_KKI];
      }
      if (input[_SIn] != null) {
        entries[_SIn] = input[_SIn];
      }
      if (input[_VS] != null) {
        entries[_VS] = input[_VS];
      }
      if (input[_VT] != null) {
        entries[_VT] = input[_VT];
      }
      if (input[_Th] != null) {
        entries[_Th] = input[_Th];
      }
      if (input[_VIR] != null) {
        entries[_VIR] = input[_VIR];
      }
      return entries;
    }, "se_LaunchTemplateEbsBlockDeviceRequest");
    var se_LaunchTemplateElasticInferenceAccelerator = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_T2] != null) {
        entries[_T2] = input[_T2];
      }
      if (input[_Cou] != null) {
        entries[_Cou] = input[_Cou];
      }
      return entries;
    }, "se_LaunchTemplateElasticInferenceAccelerator");
    var se_LaunchTemplateElasticInferenceAcceleratorList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_LaunchTemplateElasticInferenceAccelerator(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Item.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_LaunchTemplateElasticInferenceAcceleratorList");
    var se_LaunchTemplateEnclaveOptionsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_En] != null) {
        entries[_En] = input[_En];
      }
      return entries;
    }, "se_LaunchTemplateEnclaveOptionsRequest");
    var se_LaunchTemplateHibernationOptionsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Conf] != null) {
        entries[_Conf] = input[_Conf];
      }
      return entries;
    }, "se_LaunchTemplateHibernationOptionsRequest");
    var se_LaunchTemplateIamInstanceProfileSpecificationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Ar2] != null) {
        entries[_Ar2] = input[_Ar2];
      }
      if (input[_N] != null) {
        entries[_N] = input[_N];
      }
      return entries;
    }, "se_LaunchTemplateIamInstanceProfileSpecificationRequest");
    var se_LaunchTemplateIdStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_LaunchTemplateIdStringList");
    var se_LaunchTemplateInstanceMaintenanceOptionsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_ARu] != null) {
        entries[_ARu] = input[_ARu];
      }
      return entries;
    }, "se_LaunchTemplateInstanceMaintenanceOptionsRequest");
    var se_LaunchTemplateInstanceMarketOptionsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_MT] != null) {
        entries[_MT] = input[_MT];
      }
      if (input[_SO] != null) {
        const memberEntries = se_LaunchTemplateSpotMarketOptionsRequest(input[_SO], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SpotOptions.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_LaunchTemplateInstanceMarketOptionsRequest");
    var se_LaunchTemplateInstanceMetadataOptionsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_HT] != null) {
        entries[_HT] = input[_HT];
      }
      if (input[_HPRHL] != null) {
        entries[_HPRHL] = input[_HPRHL];
      }
      if (input[_HE] != null) {
        entries[_HE] = input[_HE];
      }
      if (input[_HPI] != null) {
        entries[_HPI] = input[_HPI];
      }
      if (input[_IMT] != null) {
        entries[_IMT] = input[_IMT];
      }
      return entries;
    }, "se_LaunchTemplateInstanceMetadataOptionsRequest");
    var se_LaunchTemplateInstanceNetworkInterfaceSpecificationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_ACIA] != null) {
        entries[_ACIA] = input[_ACIA];
      }
      if (input[_APIAs] != null) {
        entries[_APIAs] = input[_APIAs];
      }
      if (input[_DOT] != null) {
        entries[_DOT] = input[_DOT];
      }
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      if (input[_DIev] != null) {
        entries[_DIev] = input[_DIev];
      }
      if (input[_G] != null) {
        const memberEntries = se_SecurityGroupIdStringList(input[_G], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SecurityGroupId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_ITn] != null) {
        entries[_ITn] = input[_ITn];
      }
      if (input[_IAC] != null) {
        entries[_IAC] = input[_IAC];
      }
      if (input[_IA] != null) {
        const memberEntries = se_InstanceIpv6AddressListRequest(input[_IA], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Ipv6Addresses.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_NII] != null) {
        entries[_NII] = input[_NII];
      }
      if (input[_PIAr] != null) {
        entries[_PIAr] = input[_PIAr];
      }
      if (input[_PIA] != null) {
        const memberEntries = se_PrivateIpAddressSpecificationList(input[_PIA], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `PrivateIpAddresses.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_SPIAC] != null) {
        entries[_SPIAC] = input[_SPIAC];
      }
      if (input[_SIub] != null) {
        entries[_SIub] = input[_SIub];
      }
      if (input[_NCI] != null) {
        entries[_NCI] = input[_NCI];
      }
      if (input[_IPp] != null) {
        const memberEntries = se_Ipv4PrefixList(input[_IPp], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Ipv4Prefix.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_IPCp] != null) {
        entries[_IPCp] = input[_IPCp];
      }
      if (input[_IP] != null) {
        const memberEntries = se_Ipv6PrefixList(input[_IP], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Ipv6Prefix.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_IPC] != null) {
        entries[_IPC] = input[_IPC];
      }
      if (input[_PIr] != null) {
        entries[_PIr] = input[_PIr];
      }
      if (input[_ESS] != null) {
        const memberEntries = se_EnaSrdSpecificationRequest(input[_ESS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `EnaSrdSpecification.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_CTS] != null) {
        const memberEntries = se_ConnectionTrackingSpecificationRequest(input[_CTS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ConnectionTrackingSpecification.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_EQC] != null) {
        entries[_EQC] = input[_EQC];
      }
      return entries;
    }, "se_LaunchTemplateInstanceNetworkInterfaceSpecificationRequest");
    var se_LaunchTemplateInstanceNetworkInterfaceSpecificationRequestList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_LaunchTemplateInstanceNetworkInterfaceSpecificationRequest(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`InstanceNetworkInterfaceSpecification.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_LaunchTemplateInstanceNetworkInterfaceSpecificationRequestList");
    var se_LaunchTemplateLicenseConfigurationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_LCA] != null) {
        entries[_LCA] = input[_LCA];
      }
      return entries;
    }, "se_LaunchTemplateLicenseConfigurationRequest");
    var se_LaunchTemplateLicenseSpecificationListRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_LaunchTemplateLicenseConfigurationRequest(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Item.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_LaunchTemplateLicenseSpecificationListRequest");
    var se_LaunchTemplateNameStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_LaunchTemplateNameStringList");
    var se_LaunchTemplateNetworkPerformanceOptionsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_BW] != null) {
        entries[_BW] = input[_BW];
      }
      return entries;
    }, "se_LaunchTemplateNetworkPerformanceOptionsRequest");
    var se_LaunchTemplateOverrides = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IT] != null) {
        entries[_IT] = input[_IT];
      }
      if (input[_SPp] != null) {
        entries[_SPp] = input[_SPp];
      }
      if (input[_SIub] != null) {
        entries[_SIub] = input[_SIub];
      }
      if (input[_AZ] != null) {
        entries[_AZ] = input[_AZ];
      }
      if (input[_WCe] != null) {
        entries[_WCe] = (0, import_smithy_client28.serializeFloat)(input[_WCe]);
      }
      if (input[_Pri] != null) {
        entries[_Pri] = (0, import_smithy_client28.serializeFloat)(input[_Pri]);
      }
      if (input[_IR] != null) {
        const memberEntries = se_InstanceRequirements(input[_IR], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `InstanceRequirements.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_LaunchTemplateOverrides");
    var se_LaunchTemplateOverridesList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_LaunchTemplateOverrides(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Item.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_LaunchTemplateOverridesList");
    var se_LaunchTemplatePlacementRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_AZ] != null) {
        entries[_AZ] = input[_AZ];
      }
      if (input[_AZI] != null) {
        entries[_AZI] = input[_AZI];
      }
      if (input[_Af] != null) {
        entries[_Af] = input[_Af];
      }
      if (input[_GN] != null) {
        entries[_GN] = input[_GN];
      }
      if (input[_HIo] != null) {
        entries[_HIo] = input[_HIo];
      }
      if (input[_Te] != null) {
        entries[_Te] = input[_Te];
      }
      if (input[_SDp] != null) {
        entries[_SDp] = input[_SDp];
      }
      if (input[_HRGA] != null) {
        entries[_HRGA] = input[_HRGA];
      }
      if (input[_PN] != null) {
        entries[_PN] = input[_PN];
      }
      if (input[_GIr] != null) {
        entries[_GIr] = input[_GIr];
      }
      return entries;
    }, "se_LaunchTemplatePlacementRequest");
    var se_LaunchTemplatePrivateDnsNameOptionsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_HTo] != null) {
        entries[_HTo] = input[_HTo];
      }
      if (input[_ERNDAR] != null) {
        entries[_ERNDAR] = input[_ERNDAR];
      }
      if (input[_ERNDAAAAR] != null) {
        entries[_ERNDAAAAR] = input[_ERNDAAAAR];
      }
      return entries;
    }, "se_LaunchTemplatePrivateDnsNameOptionsRequest");
    var se_LaunchTemplatesMonitoringRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_En] != null) {
        entries[_En] = input[_En];
      }
      return entries;
    }, "se_LaunchTemplatesMonitoringRequest");
    var se_LaunchTemplateSpecification = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_LTI] != null) {
        entries[_LTI] = input[_LTI];
      }
      if (input[_LTN] != null) {
        entries[_LTN] = input[_LTN];
      }
      if (input[_V2] != null) {
        entries[_V2] = input[_V2];
      }
      return entries;
    }, "se_LaunchTemplateSpecification");
    var se_LaunchTemplateSpotMarketOptionsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_MPa] != null) {
        entries[_MPa] = input[_MPa];
      }
      if (input[_SIT] != null) {
        entries[_SIT] = input[_SIT];
      }
      if (input[_BDMl] != null) {
        entries[_BDMl] = input[_BDMl];
      }
      if (input[_VU] != null) {
        entries[_VU] = (0, import_smithy_client28.serializeDateTime)(input[_VU]);
      }
      if (input[_IIB] != null) {
        entries[_IIB] = input[_IIB];
      }
      return entries;
    }, "se_LaunchTemplateSpotMarketOptionsRequest");
    var se_LaunchTemplateTagSpecificationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RT] != null) {
        entries[_RT] = input[_RT];
      }
      if (input[_Ta] != null) {
        const memberEntries = se_TagList(input[_Ta], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Tag.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_LaunchTemplateTagSpecificationRequest");
    var se_LaunchTemplateTagSpecificationRequestList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_LaunchTemplateTagSpecificationRequest(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`LaunchTemplateTagSpecificationRequest.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_LaunchTemplateTagSpecificationRequestList");
    var se_LicenseConfigurationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_LCA] != null) {
        entries[_LCA] = input[_LCA];
      }
      return entries;
    }, "se_LicenseConfigurationRequest");
    var se_LicenseSpecificationListRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_LicenseConfigurationRequest(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Item.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_LicenseSpecificationListRequest");
    var se_ListImagesInRecycleBinRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IImag] != null) {
        const memberEntries = se_ImageIdStringList(input[_IImag], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ImageId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_ListImagesInRecycleBinRequest");
    var se_ListSnapshotsInRecycleBinRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_SIna] != null) {
        const memberEntries = se_SnapshotIdStringList(input[_SIna], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SnapshotId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_ListSnapshotsInRecycleBinRequest");
    var se_LoadBalancersConfig = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CLBC] != null) {
        const memberEntries = se_ClassicLoadBalancersConfig(input[_CLBC], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ClassicLoadBalancersConfig.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_TGC] != null) {
        const memberEntries = se_TargetGroupsConfig(input[_TGC], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TargetGroupsConfig.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_LoadBalancersConfig");
    var se_LoadPermissionListRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_LoadPermissionRequest(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Item.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_LoadPermissionListRequest");
    var se_LoadPermissionModifications = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Add] != null) {
        const memberEntries = se_LoadPermissionListRequest(input[_Add], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Add.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Rem] != null) {
        const memberEntries = se_LoadPermissionListRequest(input[_Rem], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Remove.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_LoadPermissionModifications");
    var se_LoadPermissionRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Gr] != null) {
        entries[_Gr] = input[_Gr];
      }
      if (input[_UIs] != null) {
        entries[_UIs] = input[_UIs];
      }
      return entries;
    }, "se_LoadPermissionRequest");
    var se_LocalGatewayIdSet = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_LocalGatewayIdSet");
    var se_LocalGatewayRouteTableIdSet = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_LocalGatewayRouteTableIdSet");
    var se_LocalGatewayRouteTableVirtualInterfaceGroupAssociationIdSet = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_LocalGatewayRouteTableVirtualInterfaceGroupAssociationIdSet");
    var se_LocalGatewayRouteTableVpcAssociationIdSet = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_LocalGatewayRouteTableVpcAssociationIdSet");
    var se_LocalGatewayVirtualInterfaceGroupIdSet = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_LocalGatewayVirtualInterfaceGroupIdSet");
    var se_LocalGatewayVirtualInterfaceIdSet = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_LocalGatewayVirtualInterfaceIdSet");
    var se_LocalStorageTypeSet = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_LocalStorageTypeSet");
    var se_LockSnapshotRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SIn] != null) {
        entries[_SIn] = input[_SIn];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_LM] != null) {
        entries[_LM] = input[_LM];
      }
      if (input[_COP] != null) {
        entries[_COP] = input[_COP];
      }
      if (input[_LDo] != null) {
        entries[_LDo] = input[_LDo];
      }
      if (input[_EDx] != null) {
        entries[_EDx] = (0, import_smithy_client28.serializeDateTime)(input[_EDx]);
      }
      return entries;
    }, "se_LockSnapshotRequest");
    var se_MacModificationTaskIdList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_MacModificationTaskIdList");
    var se_MacSystemIntegrityProtectionConfigurationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_AIp] != null) {
        entries[_AIp] = input[_AIp];
      }
      if (input[_BS] != null) {
        entries[_BS] = input[_BS];
      }
      if (input[_DReb] != null) {
        entries[_DReb] = input[_DReb];
      }
      if (input[_DTR] != null) {
        entries[_DTR] = input[_DTR];
      }
      if (input[_FPi] != null) {
        entries[_FPi] = input[_FPi];
      }
      if (input[_KS] != null) {
        entries[_KS] = input[_KS];
      }
      if (input[_NP] != null) {
        entries[_NP] = input[_NP];
      }
      return entries;
    }, "se_MacSystemIntegrityProtectionConfigurationRequest");
    var se_MemoryGiBPerVCpu = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_M] != null) {
        entries[_M] = (0, import_smithy_client28.serializeFloat)(input[_M]);
      }
      if (input[_Ma] != null) {
        entries[_Ma] = (0, import_smithy_client28.serializeFloat)(input[_Ma]);
      }
      return entries;
    }, "se_MemoryGiBPerVCpu");
    var se_MemoryGiBPerVCpuRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_M] != null) {
        entries[_M] = (0, import_smithy_client28.serializeFloat)(input[_M]);
      }
      if (input[_Ma] != null) {
        entries[_Ma] = (0, import_smithy_client28.serializeFloat)(input[_Ma]);
      }
      return entries;
    }, "se_MemoryGiBPerVCpuRequest");
    var se_MemoryMiB = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_M] != null) {
        entries[_M] = input[_M];
      }
      if (input[_Ma] != null) {
        entries[_Ma] = input[_Ma];
      }
      return entries;
    }, "se_MemoryMiB");
    var se_MemoryMiBRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_M] != null) {
        entries[_M] = input[_M];
      }
      if (input[_Ma] != null) {
        entries[_Ma] = input[_Ma];
      }
      return entries;
    }, "se_MemoryMiBRequest");
    var se_ModifyAddressAttributeRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_AIl] != null) {
        entries[_AIl] = input[_AIl];
      }
      if (input[_DNo] != null) {
        entries[_DNo] = input[_DNo];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_ModifyAddressAttributeRequest");
    var se_ModifyAvailabilityZoneGroupRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_GN] != null) {
        entries[_GN] = input[_GN];
      }
      if (input[_OIS] != null) {
        entries[_OIS] = input[_OIS];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_ModifyAvailabilityZoneGroupRequest");
    var se_ModifyCapacityReservationFleetRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CRFIa] != null) {
        entries[_CRFIa] = input[_CRFIa];
      }
      if (input[_TTC] != null) {
        entries[_TTC] = input[_TTC];
      }
      if (input[_ED] != null) {
        entries[_ED] = (0, import_smithy_client28.serializeDateTime)(input[_ED]);
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_RED] != null) {
        entries[_RED] = input[_RED];
      }
      return entries;
    }, "se_ModifyCapacityReservationFleetRequest");
    var se_ModifyCapacityReservationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CRI] != null) {
        entries[_CRI] = input[_CRI];
      }
      if (input[_IC] != null) {
        entries[_IC] = input[_IC];
      }
      if (input[_ED] != null) {
        entries[_ED] = (0, import_smithy_client28.serializeDateTime)(input[_ED]);
      }
      if (input[_EDT] != null) {
        entries[_EDT] = input[_EDT];
      }
      if (input[_Ac] != null) {
        entries[_Ac] = input[_Ac];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_AId] != null) {
        entries[_AId] = input[_AId];
      }
      if (input[_IMC] != null) {
        entries[_IMC] = input[_IMC];
      }
      return entries;
    }, "se_ModifyCapacityReservationRequest");
    var se_ModifyClientVpnEndpointRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CVEI] != null) {
        entries[_CVEI] = input[_CVEI];
      }
      if (input[_SCA] != null) {
        entries[_SCA] = input[_SCA];
      }
      if (input[_CLO] != null) {
        const memberEntries = se_ConnectionLogOptions(input[_CLO], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ConnectionLogOptions.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_DSn] != null) {
        const memberEntries = se_DnsServersOptionsModifyStructure(input[_DSn], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `DnsServers.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_VP] != null) {
        entries[_VP] = input[_VP];
      }
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      if (input[_ST2] != null) {
        entries[_ST2] = input[_ST2];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_SGI] != null) {
        const memberEntries = se_ClientVpnSecurityGroupIdSet(input[_SGI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SecurityGroupId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_VI] != null) {
        entries[_VI] = input[_VI];
      }
      if (input[_SSP] != null) {
        entries[_SSP] = input[_SSP];
      }
      if (input[_CCO] != null) {
        const memberEntries = se_ClientConnectOptions(input[_CCO], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ClientConnectOptions.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_STH] != null) {
        entries[_STH] = input[_STH];
      }
      if (input[_CLBO] != null) {
        const memberEntries = se_ClientLoginBannerOptions(input[_CLBO], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ClientLoginBannerOptions.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_CREO] != null) {
        const memberEntries = se_ClientRouteEnforcementOptions(input[_CREO], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ClientRouteEnforcementOptions.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_DOST] != null) {
        entries[_DOST] = input[_DOST];
      }
      return entries;
    }, "se_ModifyClientVpnEndpointRequest");
    var se_ModifyDefaultCreditSpecificationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_IF] != null) {
        entries[_IF] = input[_IF];
      }
      if (input[_CCp] != null) {
        entries[_CCp] = input[_CCp];
      }
      return entries;
    }, "se_ModifyDefaultCreditSpecificationRequest");
    var se_ModifyEbsDefaultKmsKeyIdRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_KKI] != null) {
        entries[_KKI] = input[_KKI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_ModifyEbsDefaultKmsKeyIdRequest");
    var se_ModifyFleetRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_ECTP] != null) {
        entries[_ECTP] = input[_ECTP];
      }
      if (input[_LTC] != null) {
        const memberEntries = se_FleetLaunchTemplateConfigListRequest(input[_LTC], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `LaunchTemplateConfig.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_FIl] != null) {
        entries[_FIl] = input[_FIl];
      }
      if (input[_TCS] != null) {
        const memberEntries = se_TargetCapacitySpecificationRequest(input[_TCS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TargetCapacitySpecification.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_Con] != null) {
        entries[_Con] = input[_Con];
      }
      return entries;
    }, "se_ModifyFleetRequest");
    var se_ModifyFpgaImageAttributeRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_FII] != null) {
        entries[_FII] = input[_FII];
      }
      if (input[_At] != null) {
        entries[_At] = input[_At];
      }
      if (input[_OTp] != null) {
        entries[_OTp] = input[_OTp];
      }
      if (input[_UIse] != null) {
        const memberEntries = se_UserIdStringList(input[_UIse], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `UserId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_UG] != null) {
        const memberEntries = se_UserGroupStringList(input[_UG], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `UserGroup.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_PCr] != null) {
        const memberEntries = se_ProductCodeStringList(input[_PCr], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ProductCode.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_LP] != null) {
        const memberEntries = se_LoadPermissionModifications(input[_LP], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `LoadPermission.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      if (input[_N] != null) {
        entries[_N] = input[_N];
      }
      return entries;
    }, "se_ModifyFpgaImageAttributeRequest");
    var se_ModifyHostsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_HR] != null) {
        entries[_HR] = input[_HR];
      }
      if (input[_IT] != null) {
        entries[_IT] = input[_IT];
      }
      if (input[_IF] != null) {
        entries[_IF] = input[_IF];
      }
      if (input[_HM] != null) {
        entries[_HM] = input[_HM];
      }
      if (input[_HI] != null) {
        const memberEntries = se_RequestHostIdList(input[_HI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `HostId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_AP] != null) {
        entries[_AP] = input[_AP];
      }
      return entries;
    }, "se_ModifyHostsRequest");
    var se_ModifyIdentityIdFormatRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Res] != null) {
        entries[_Res] = input[_Res];
      }
      if (input[_ULI] != null) {
        entries[_ULI] = input[_ULI];
      }
      if (input[_PAr2] != null) {
        entries[_PAr2] = input[_PAr2];
      }
      return entries;
    }, "se_ModifyIdentityIdFormatRequest");
    var se_ModifyIdFormatRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Res] != null) {
        entries[_Res] = input[_Res];
      }
      if (input[_ULI] != null) {
        entries[_ULI] = input[_ULI];
      }
      return entries;
    }, "se_ModifyIdFormatRequest");
    var se_ModifyImageAttributeRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_At] != null) {
        entries[_At] = input[_At];
      }
      if (input[_De] != null) {
        const memberEntries = se_AttributeValue(input[_De], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Description.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_IIma] != null) {
        entries[_IIma] = input[_IIma];
      }
      if (input[_LPa] != null) {
        const memberEntries = se_LaunchPermissionModifications(input[_LPa], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `LaunchPermission.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_OTp] != null) {
        entries[_OTp] = input[_OTp];
      }
      if (input[_PCr] != null) {
        const memberEntries = se_ProductCodeStringList(input[_PCr], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ProductCode.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_UG] != null) {
        const memberEntries = se_UserGroupStringList(input[_UG], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `UserGroup.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_UIse] != null) {
        const memberEntries = se_UserIdStringList(input[_UIse], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `UserId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Va2] != null) {
        entries[_Va2] = input[_Va2];
      }
      if (input[_OArg] != null) {
        const memberEntries = se_OrganizationArnStringList(input[_OArg], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `OrganizationArn.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_OUAr] != null) {
        const memberEntries = se_OrganizationalUnitArnStringList(input[_OUAr], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `OrganizationalUnitArn.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_ISm] != null) {
        const memberEntries = se_AttributeValue(input[_ISm], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ImdsSupport.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_ModifyImageAttributeRequest");
    var se_ModifyInstanceAttributeRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SDC] != null) {
        const memberEntries = se_AttributeBooleanValue(input[_SDC], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SourceDestCheck.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_DASi] != null) {
        const memberEntries = se_AttributeBooleanValue(input[_DASi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `DisableApiStop.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_IIn] != null) {
        entries[_IIn] = input[_IIn];
      }
      if (input[_At] != null) {
        entries[_At] = input[_At];
      }
      if (input[_Va2] != null) {
        entries[_Va2] = input[_Va2];
      }
      if (input[_BDM] != null) {
        const memberEntries = se_InstanceBlockDeviceMappingSpecificationList(input[_BDM], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `BlockDeviceMapping.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DATis] != null) {
        const memberEntries = se_AttributeBooleanValue(input[_DATis], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `DisableApiTermination.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_IT] != null) {
        const memberEntries = se_AttributeValue(input[_IT], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `InstanceType.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_K2] != null) {
        const memberEntries = se_AttributeValue(input[_K2], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Kernel.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_Ra] != null) {
        const memberEntries = se_AttributeValue(input[_Ra], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Ramdisk.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_UD] != null) {
        const memberEntries = se_BlobAttributeValue(input[_UD], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `UserData.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_IISB] != null) {
        const memberEntries = se_AttributeValue(input[_IISB], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `InstanceInitiatedShutdownBehavior.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_G] != null) {
        const memberEntries = se_GroupIdStringList(input[_G], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `GroupId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_EO] != null) {
        const memberEntries = se_AttributeBooleanValue(input[_EO], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `EbsOptimized.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_SNS] != null) {
        const memberEntries = se_AttributeValue(input[_SNS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SriovNetSupport.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_ESn] != null) {
        const memberEntries = se_AttributeBooleanValue(input[_ESn], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `EnaSupport.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_ModifyInstanceAttributeRequest");
    var se_ModifyInstanceCapacityReservationAttributesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IIn] != null) {
        entries[_IIn] = input[_IIn];
      }
      if (input[_CRSa] != null) {
        const memberEntries = se_CapacityReservationSpecification(input[_CRSa], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `CapacityReservationSpecification.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_ModifyInstanceCapacityReservationAttributesRequest");
    var se_ModifyInstanceConnectEndpointRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_ICEI] != null) {
        entries[_ICEI] = input[_ICEI];
      }
      if (input[_IAT] != null) {
        entries[_IAT] = input[_IAT];
      }
      if (input[_SGI] != null) {
        const memberEntries = se_SecurityGroupIdStringListRequest(input[_SGI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SecurityGroupId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_PCI] != null) {
        entries[_PCI] = input[_PCI];
      }
      return entries;
    }, "se_ModifyInstanceConnectEndpointRequest");
    var se_ModifyInstanceCpuOptionsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IIn] != null) {
        entries[_IIn] = input[_IIn];
      }
      if (input[_CC] != null) {
        entries[_CC] = input[_CC];
      }
      if (input[_TPC] != null) {
        entries[_TPC] = input[_TPC];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_ModifyInstanceCpuOptionsRequest");
    var se_ModifyInstanceCreditSpecificationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_ICS] != null) {
        const memberEntries = se_InstanceCreditSpecificationListRequest(input[_ICS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `InstanceCreditSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_ModifyInstanceCreditSpecificationRequest");
    var se_ModifyInstanceEventStartTimeRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_IIn] != null) {
        entries[_IIn] = input[_IIn];
      }
      if (input[_IEI] != null) {
        entries[_IEI] = input[_IEI];
      }
      if (input[_NB] != null) {
        entries[_NB] = (0, import_smithy_client28.serializeDateTime)(input[_NB]);
      }
      return entries;
    }, "se_ModifyInstanceEventStartTimeRequest");
    var se_ModifyInstanceEventWindowRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_N] != null) {
        entries[_N] = input[_N];
      }
      if (input[_IEWI] != null) {
        entries[_IEWI] = input[_IEWI];
      }
      if (input[_TRi] != null) {
        const memberEntries = se_InstanceEventWindowTimeRangeRequestSet(input[_TRi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TimeRange.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_CE] != null) {
        entries[_CE] = input[_CE];
      }
      return entries;
    }, "se_ModifyInstanceEventWindowRequest");
    var se_ModifyInstanceMaintenanceOptionsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IIn] != null) {
        entries[_IIn] = input[_IIn];
      }
      if (input[_ARu] != null) {
        entries[_ARu] = input[_ARu];
      }
      if (input[_RMe] != null) {
        entries[_RMe] = input[_RMe];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_ModifyInstanceMaintenanceOptionsRequest");
    var se_ModifyInstanceMetadataDefaultsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_HT] != null) {
        entries[_HT] = input[_HT];
      }
      if (input[_HPRHL] != null) {
        entries[_HPRHL] = input[_HPRHL];
      }
      if (input[_HE] != null) {
        entries[_HE] = input[_HE];
      }
      if (input[_IMT] != null) {
        entries[_IMT] = input[_IMT];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_ModifyInstanceMetadataDefaultsRequest");
    var se_ModifyInstanceMetadataOptionsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IIn] != null) {
        entries[_IIn] = input[_IIn];
      }
      if (input[_HT] != null) {
        entries[_HT] = input[_HT];
      }
      if (input[_HPRHL] != null) {
        entries[_HPRHL] = input[_HPRHL];
      }
      if (input[_HE] != null) {
        entries[_HE] = input[_HE];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_HPI] != null) {
        entries[_HPI] = input[_HPI];
      }
      if (input[_IMT] != null) {
        entries[_IMT] = input[_IMT];
      }
      return entries;
    }, "se_ModifyInstanceMetadataOptionsRequest");
    var se_ModifyInstanceNetworkPerformanceRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IIn] != null) {
        entries[_IIn] = input[_IIn];
      }
      if (input[_BW] != null) {
        entries[_BW] = input[_BW];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_ModifyInstanceNetworkPerformanceRequest");
    var se_ModifyInstancePlacementRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_GN] != null) {
        entries[_GN] = input[_GN];
      }
      if (input[_PN] != null) {
        entries[_PN] = input[_PN];
      }
      if (input[_HRGA] != null) {
        entries[_HRGA] = input[_HRGA];
      }
      if (input[_GIr] != null) {
        entries[_GIr] = input[_GIr];
      }
      if (input[_IIn] != null) {
        entries[_IIn] = input[_IIn];
      }
      if (input[_Te] != null) {
        entries[_Te] = input[_Te];
      }
      if (input[_Af] != null) {
        entries[_Af] = input[_Af];
      }
      if (input[_HIo] != null) {
        entries[_HIo] = input[_HIo];
      }
      return entries;
    }, "se_ModifyInstancePlacementRequest");
    var se_ModifyIpamPoolRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_IPI] != null) {
        entries[_IPI] = input[_IPI];
      }
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      if (input[_AIu] != null) {
        entries[_AIu] = input[_AIu];
      }
      if (input[_AMNL] != null) {
        entries[_AMNL] = input[_AMNL];
      }
      if (input[_AMNLl] != null) {
        entries[_AMNLl] = input[_AMNLl];
      }
      if (input[_ADNL] != null) {
        entries[_ADNL] = input[_ADNL];
      }
      if (input[_CADNL] != null) {
        entries[_CADNL] = input[_CADNL];
      }
      if (input[_AART] != null) {
        const memberEntries = se_RequestIpamResourceTagList(input[_AART], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AddAllocationResourceTag.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_RART] != null) {
        const memberEntries = se_RequestIpamResourceTagList(input[_RART], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `RemoveAllocationResourceTag.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_ModifyIpamPoolRequest");
    var se_ModifyIpamRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_IIp] != null) {
        entries[_IIp] = input[_IIp];
      }
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      if (input[_AOR] != null) {
        const memberEntries = se_AddIpamOperatingRegionSet(input[_AOR], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AddOperatingRegion.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_ROR] != null) {
        const memberEntries = se_RemoveIpamOperatingRegionSet(input[_ROR], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `RemoveOperatingRegion.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Ti] != null) {
        entries[_Ti] = input[_Ti];
      }
      if (input[_EPG] != null) {
        entries[_EPG] = input[_EPG];
      }
      if (input[_MAe] != null) {
        entries[_MAe] = input[_MAe];
      }
      return entries;
    }, "se_ModifyIpamRequest");
    var se_ModifyIpamResourceCidrRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_RIeso] != null) {
        entries[_RIeso] = input[_RIeso];
      }
      if (input[_RC] != null) {
        entries[_RC] = input[_RC];
      }
      if (input[_RRe] != null) {
        entries[_RRe] = input[_RRe];
      }
      if (input[_CISI] != null) {
        entries[_CISI] = input[_CISI];
      }
      if (input[_DISI] != null) {
        entries[_DISI] = input[_DISI];
      }
      if (input[_Moni] != null) {
        entries[_Moni] = input[_Moni];
      }
      return entries;
    }, "se_ModifyIpamResourceCidrRequest");
    var se_ModifyIpamResourceDiscoveryRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_IRDI] != null) {
        entries[_IRDI] = input[_IRDI];
      }
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      if (input[_AOR] != null) {
        const memberEntries = se_AddIpamOperatingRegionSet(input[_AOR], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AddOperatingRegion.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_ROR] != null) {
        const memberEntries = se_RemoveIpamOperatingRegionSet(input[_ROR], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `RemoveOperatingRegion.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_AOUE] != null) {
        const memberEntries = se_AddIpamOrganizationalUnitExclusionSet(input[_AOUE], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AddOrganizationalUnitExclusion.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_ROUE] != null) {
        const memberEntries = se_RemoveIpamOrganizationalUnitExclusionSet(input[_ROUE], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `RemoveOrganizationalUnitExclusion.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_ModifyIpamResourceDiscoveryRequest");
    var se_ModifyIpamScopeRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_ISI] != null) {
        entries[_ISI] = input[_ISI];
      }
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      return entries;
    }, "se_ModifyIpamScopeRequest");
    var se_ModifyLaunchTemplateRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_LTI] != null) {
        entries[_LTI] = input[_LTI];
      }
      if (input[_LTN] != null) {
        entries[_LTN] = input[_LTN];
      }
      if (input[_DVef] != null) {
        entries[_SDV] = input[_DVef];
      }
      return entries;
    }, "se_ModifyLaunchTemplateRequest");
    var se_ModifyLocalGatewayRouteRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DCBe] != null) {
        entries[_DCBe] = input[_DCBe];
      }
      if (input[_LGRTI] != null) {
        entries[_LGRTI] = input[_LGRTI];
      }
      if (input[_LGVIGI] != null) {
        entries[_LGVIGI] = input[_LGVIGI];
      }
      if (input[_NII] != null) {
        entries[_NII] = input[_NII];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_DPLI] != null) {
        entries[_DPLI] = input[_DPLI];
      }
      return entries;
    }, "se_ModifyLocalGatewayRouteRequest");
    var se_ModifyManagedPrefixListRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_PLI] != null) {
        entries[_PLI] = input[_PLI];
      }
      if (input[_CVu] != null) {
        entries[_CVu] = input[_CVu];
      }
      if (input[_PLN] != null) {
        entries[_PLN] = input[_PLN];
      }
      if (input[_AEd] != null) {
        const memberEntries = se_AddPrefixListEntries(input[_AEd], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AddEntry.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_REe] != null) {
        const memberEntries = se_RemovePrefixListEntries(input[_REe], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `RemoveEntry.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_ME] != null) {
        entries[_ME] = input[_ME];
      }
      return entries;
    }, "se_ModifyManagedPrefixListRequest");
    var se_ModifyNetworkInterfaceAttributeRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_ESS] != null) {
        const memberEntries = se_EnaSrdSpecification(input[_ESS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `EnaSrdSpecification.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_EPI] != null) {
        entries[_EPI] = input[_EPI];
      }
      if (input[_CTS] != null) {
        const memberEntries = se_ConnectionTrackingSpecificationRequest(input[_CTS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ConnectionTrackingSpecification.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_APIAs] != null) {
        entries[_APIAs] = input[_APIAs];
      }
      if (input[_ASI] != null) {
        const memberEntries = se_SubnetIdList(input[_ASI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AssociatedSubnetId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_NII] != null) {
        entries[_NII] = input[_NII];
      }
      if (input[_De] != null) {
        const memberEntries = se_AttributeValue(input[_De], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Description.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_SDC] != null) {
        const memberEntries = se_AttributeBooleanValue(input[_SDC], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SourceDestCheck.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_G] != null) {
        const memberEntries = se_SecurityGroupIdStringList(input[_G], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SecurityGroupId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Att] != null) {
        const memberEntries = se_NetworkInterfaceAttachmentChanges(input[_Att], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Attachment.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_ModifyNetworkInterfaceAttributeRequest");
    var se_ModifyPrivateDnsNameOptionsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_IIn] != null) {
        entries[_IIn] = input[_IIn];
      }
      if (input[_PDHT] != null) {
        entries[_PDHT] = input[_PDHT];
      }
      if (input[_ERNDAR] != null) {
        entries[_ERNDAR] = input[_ERNDAR];
      }
      if (input[_ERNDAAAAR] != null) {
        entries[_ERNDAAAAR] = input[_ERNDAAAAR];
      }
      return entries;
    }, "se_ModifyPrivateDnsNameOptionsRequest");
    var se_ModifyPublicIpDnsNameOptionsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_NII] != null) {
        entries[_NII] = input[_NII];
      }
      if (input[_HTo] != null) {
        entries[_HTo] = input[_HTo];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_ModifyPublicIpDnsNameOptionsRequest");
    var se_ModifyReservedInstancesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RIIes] != null) {
        const memberEntries = se_ReservedInstancesIdStringList(input[_RIIes], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ReservedInstancesId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_TC2] != null) {
        const memberEntries = se_ReservedInstancesConfigurationList(input[_TC2], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ReservedInstancesConfigurationSetItemType.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_ModifyReservedInstancesRequest");
    var se_ModifyRouteServerRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RSIo] != null) {
        entries[_RSIo] = input[_RSIo];
      }
      if (input[_PRe] != null) {
        entries[_PRe] = input[_PRe];
      }
      if (input[_PRD] != null) {
        entries[_PRD] = input[_PRD];
      }
      if (input[_SNE] != null) {
        entries[_SNE] = input[_SNE];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_ModifyRouteServerRequest");
    var se_ModifySecurityGroupRulesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_GIr] != null) {
        entries[_GIr] = input[_GIr];
      }
      if (input[_SGR] != null) {
        const memberEntries = se_SecurityGroupRuleUpdateList(input[_SGR], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SecurityGroupRule.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_ModifySecurityGroupRulesRequest");
    var se_ModifySnapshotAttributeRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_At] != null) {
        entries[_At] = input[_At];
      }
      if (input[_CVP] != null) {
        const memberEntries = se_CreateVolumePermissionModifications(input[_CVP], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `CreateVolumePermission.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_GNr] != null) {
        const memberEntries = se_GroupNameStringList(input[_GNr], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `UserGroup.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_OTp] != null) {
        entries[_OTp] = input[_OTp];
      }
      if (input[_SIn] != null) {
        entries[_SIn] = input[_SIn];
      }
      if (input[_UIse] != null) {
        const memberEntries = se_UserIdStringList(input[_UIse], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `UserId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_ModifySnapshotAttributeRequest");
    var se_ModifySnapshotTierRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SIn] != null) {
        entries[_SIn] = input[_SIn];
      }
      if (input[_STto] != null) {
        entries[_STto] = input[_STto];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_ModifySnapshotTierRequest");
    var se_ModifySpotFleetRequestRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_LTC] != null) {
        const memberEntries = se_LaunchTemplateConfigList(input[_LTC], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `LaunchTemplateConfig.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_ODTC] != null) {
        entries[_ODTC] = input[_ODTC];
      }
      if (input[_Con] != null) {
        entries[_Con] = input[_Con];
      }
      if (input[_SFRIp] != null) {
        entries[_SFRIp] = input[_SFRIp];
      }
      if (input[_TCa] != null) {
        entries[_TCa] = input[_TCa];
      }
      if (input[_ECTP] != null) {
        entries[_ECTP] = input[_ECTP];
      }
      return entries;
    }, "se_ModifySpotFleetRequestRequest");
    var se_ModifySubnetAttributeRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_AIAOC] != null) {
        const memberEntries = se_AttributeBooleanValue(input[_AIAOC], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AssignIpv6AddressOnCreation.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_MPIOL] != null) {
        const memberEntries = se_AttributeBooleanValue(input[_MPIOL], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `MapPublicIpOnLaunch.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_SIub] != null) {
        entries[_SIub] = input[_SIub];
      }
      if (input[_MCOIOL] != null) {
        const memberEntries = se_AttributeBooleanValue(input[_MCOIOL], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `MapCustomerOwnedIpOnLaunch.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_COIP] != null) {
        entries[_COIP] = input[_COIP];
      }
      if (input[_EDn] != null) {
        const memberEntries = se_AttributeBooleanValue(input[_EDn], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `EnableDns64.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_PDHTOL] != null) {
        entries[_PDHTOL] = input[_PDHTOL];
      }
      if (input[_ERNDAROL] != null) {
        const memberEntries = se_AttributeBooleanValue(input[_ERNDAROL], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `EnableResourceNameDnsARecordOnLaunch.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_ERNDAAAAROL] != null) {
        const memberEntries = se_AttributeBooleanValue(input[_ERNDAAAAROL], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `EnableResourceNameDnsAAAARecordOnLaunch.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_ELADI] != null) {
        entries[_ELADI] = input[_ELADI];
      }
      if (input[_DLADI] != null) {
        const memberEntries = se_AttributeBooleanValue(input[_DLADI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `DisableLniAtDeviceIndex.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_ModifySubnetAttributeRequest");
    var se_ModifyTrafficMirrorFilterNetworkServicesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TMFI] != null) {
        entries[_TMFI] = input[_TMFI];
      }
      if (input[_ANS] != null) {
        const memberEntries = se_TrafficMirrorNetworkServiceList(input[_ANS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AddNetworkService.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_RNS] != null) {
        const memberEntries = se_TrafficMirrorNetworkServiceList(input[_RNS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `RemoveNetworkService.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_ModifyTrafficMirrorFilterNetworkServicesRequest");
    var se_ModifyTrafficMirrorFilterRuleRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TMFRI] != null) {
        entries[_TMFRI] = input[_TMFRI];
      }
      if (input[_TD] != null) {
        entries[_TD] = input[_TD];
      }
      if (input[_RNu] != null) {
        entries[_RNu] = input[_RNu];
      }
      if (input[_RAu] != null) {
        entries[_RAu] = input[_RAu];
      }
      if (input[_DPR] != null) {
        const memberEntries = se_TrafficMirrorPortRangeRequest(input[_DPR], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `DestinationPortRange.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_SPR] != null) {
        const memberEntries = se_TrafficMirrorPortRangeRequest(input[_SPR], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SourcePortRange.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_P2] != null) {
        entries[_P2] = input[_P2];
      }
      if (input[_DCBe] != null) {
        entries[_DCBe] = input[_DCBe];
      }
      if (input[_SCB] != null) {
        entries[_SCB] = input[_SCB];
      }
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      if (input[_RF] != null) {
        const memberEntries = se_TrafficMirrorFilterRuleFieldList(input[_RF], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `RemoveField.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_ModifyTrafficMirrorFilterRuleRequest");
    var se_ModifyTrafficMirrorSessionRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TMSI] != null) {
        entries[_TMSI] = input[_TMSI];
      }
      if (input[_TMTI] != null) {
        entries[_TMTI] = input[_TMTI];
      }
      if (input[_TMFI] != null) {
        entries[_TMFI] = input[_TMFI];
      }
      if (input[_PL] != null) {
        entries[_PL] = input[_PL];
      }
      if (input[_SN2] != null) {
        entries[_SN2] = input[_SN2];
      }
      if (input[_VNI] != null) {
        entries[_VNI] = input[_VNI];
      }
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      if (input[_RF] != null) {
        const memberEntries = se_TrafficMirrorSessionFieldList(input[_RF], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `RemoveField.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_ModifyTrafficMirrorSessionRequest");
    var se_ModifyTransitGatewayOptions = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_ATGCB] != null) {
        const memberEntries = se_TransitGatewayCidrBlockStringList(input[_ATGCB], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AddTransitGatewayCidrBlocks.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_RTGCB] != null) {
        const memberEntries = se_TransitGatewayCidrBlockStringList(input[_RTGCB], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `RemoveTransitGatewayCidrBlocks.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_VES] != null) {
        entries[_VES] = input[_VES];
      }
      if (input[_DSns] != null) {
        entries[_DSns] = input[_DSns];
      }
      if (input[_SGRS] != null) {
        entries[_SGRS] = input[_SGRS];
      }
      if (input[_AASAu] != null) {
        entries[_AASAu] = input[_AASAu];
      }
      if (input[_DRTA] != null) {
        entries[_DRTA] = input[_DRTA];
      }
      if (input[_ADRTI] != null) {
        entries[_ADRTI] = input[_ADRTI];
      }
      if (input[_DRTP] != null) {
        entries[_DRTP] = input[_DRTP];
      }
      if (input[_PDRTI] != null) {
        entries[_PDRTI] = input[_PDRTI];
      }
      if (input[_ASA] != null) {
        entries[_ASA] = input[_ASA];
      }
      return entries;
    }, "se_ModifyTransitGatewayOptions");
    var se_ModifyTransitGatewayPrefixListReferenceRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGRTI] != null) {
        entries[_TGRTI] = input[_TGRTI];
      }
      if (input[_PLI] != null) {
        entries[_PLI] = input[_PLI];
      }
      if (input[_TGAI] != null) {
        entries[_TGAI] = input[_TGAI];
      }
      if (input[_Bl] != null) {
        entries[_Bl] = input[_Bl];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_ModifyTransitGatewayPrefixListReferenceRequest");
    var se_ModifyTransitGatewayRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGI] != null) {
        entries[_TGI] = input[_TGI];
      }
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      if (input[_Op] != null) {
        const memberEntries = se_ModifyTransitGatewayOptions(input[_Op], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Options.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_ModifyTransitGatewayRequest");
    var se_ModifyTransitGatewayVpcAttachmentRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGAI] != null) {
        entries[_TGAI] = input[_TGAI];
      }
      if (input[_ASId] != null) {
        const memberEntries = se_TransitGatewaySubnetIdList(input[_ASId], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AddSubnetIds.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_RSIe] != null) {
        const memberEntries = se_TransitGatewaySubnetIdList(input[_RSIe], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `RemoveSubnetIds.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Op] != null) {
        const memberEntries = se_ModifyTransitGatewayVpcAttachmentRequestOptions(input[_Op], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Options.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_ModifyTransitGatewayVpcAttachmentRequest");
    var se_ModifyTransitGatewayVpcAttachmentRequestOptions = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DSns] != null) {
        entries[_DSns] = input[_DSns];
      }
      if (input[_SGRS] != null) {
        entries[_SGRS] = input[_SGRS];
      }
      if (input[_ISp] != null) {
        entries[_ISp] = input[_ISp];
      }
      if (input[_AMS] != null) {
        entries[_AMS] = input[_AMS];
      }
      return entries;
    }, "se_ModifyTransitGatewayVpcAttachmentRequestOptions");
    var se_ModifyVerifiedAccessEndpointCidrOptions = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_PRo] != null) {
        const memberEntries = se_ModifyVerifiedAccessEndpointPortRangeList(input[_PRo], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `PortRange.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_ModifyVerifiedAccessEndpointCidrOptions");
    var se_ModifyVerifiedAccessEndpointEniOptions = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_P2] != null) {
        entries[_P2] = input[_P2];
      }
      if (input[_Po] != null) {
        entries[_Po] = input[_Po];
      }
      if (input[_PRo] != null) {
        const memberEntries = se_ModifyVerifiedAccessEndpointPortRangeList(input[_PRo], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `PortRange.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_ModifyVerifiedAccessEndpointEniOptions");
    var se_ModifyVerifiedAccessEndpointLoadBalancerOptions = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SIu] != null) {
        const memberEntries = se_ModifyVerifiedAccessEndpointSubnetIdList(input[_SIu], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SubnetId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_P2] != null) {
        entries[_P2] = input[_P2];
      }
      if (input[_Po] != null) {
        entries[_Po] = input[_Po];
      }
      if (input[_PRo] != null) {
        const memberEntries = se_ModifyVerifiedAccessEndpointPortRangeList(input[_PRo], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `PortRange.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_ModifyVerifiedAccessEndpointLoadBalancerOptions");
    var se_ModifyVerifiedAccessEndpointPolicyRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_VAEI] != null) {
        entries[_VAEI] = input[_VAEI];
      }
      if (input[_PE] != null) {
        entries[_PE] = input[_PE];
      }
      if (input[_PD] != null) {
        entries[_PD] = input[_PD];
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_SS] != null) {
        const memberEntries = se_VerifiedAccessSseSpecificationRequest(input[_SS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SseSpecification.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_ModifyVerifiedAccessEndpointPolicyRequest");
    var se_ModifyVerifiedAccessEndpointPortRange = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_FP] != null) {
        entries[_FP] = input[_FP];
      }
      if (input[_TP] != null) {
        entries[_TP] = input[_TP];
      }
      return entries;
    }, "se_ModifyVerifiedAccessEndpointPortRange");
    var se_ModifyVerifiedAccessEndpointPortRangeList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_ModifyVerifiedAccessEndpointPortRange(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Item.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_ModifyVerifiedAccessEndpointPortRangeList");
    var se_ModifyVerifiedAccessEndpointRdsOptions = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SIu] != null) {
        const memberEntries = se_ModifyVerifiedAccessEndpointSubnetIdList(input[_SIu], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SubnetId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Po] != null) {
        entries[_Po] = input[_Po];
      }
      if (input[_RE] != null) {
        entries[_RE] = input[_RE];
      }
      return entries;
    }, "se_ModifyVerifiedAccessEndpointRdsOptions");
    var se_ModifyVerifiedAccessEndpointRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_VAEI] != null) {
        entries[_VAEI] = input[_VAEI];
      }
      if (input[_VAGI] != null) {
        entries[_VAGI] = input[_VAGI];
      }
      if (input[_LBO] != null) {
        const memberEntries = se_ModifyVerifiedAccessEndpointLoadBalancerOptions(input[_LBO], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `LoadBalancerOptions.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_NIO] != null) {
        const memberEntries = se_ModifyVerifiedAccessEndpointEniOptions(input[_NIO], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `NetworkInterfaceOptions.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_RO] != null) {
        const memberEntries = se_ModifyVerifiedAccessEndpointRdsOptions(input[_RO], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `RdsOptions.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_CO] != null) {
        const memberEntries = se_ModifyVerifiedAccessEndpointCidrOptions(input[_CO], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `CidrOptions.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_ModifyVerifiedAccessEndpointRequest");
    var se_ModifyVerifiedAccessEndpointSubnetIdList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_ModifyVerifiedAccessEndpointSubnetIdList");
    var se_ModifyVerifiedAccessGroupPolicyRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_VAGI] != null) {
        entries[_VAGI] = input[_VAGI];
      }
      if (input[_PE] != null) {
        entries[_PE] = input[_PE];
      }
      if (input[_PD] != null) {
        entries[_PD] = input[_PD];
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_SS] != null) {
        const memberEntries = se_VerifiedAccessSseSpecificationRequest(input[_SS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SseSpecification.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_ModifyVerifiedAccessGroupPolicyRequest");
    var se_ModifyVerifiedAccessGroupRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_VAGI] != null) {
        entries[_VAGI] = input[_VAGI];
      }
      if (input[_VAII] != null) {
        entries[_VAII] = input[_VAII];
      }
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_ModifyVerifiedAccessGroupRequest");
    var se_ModifyVerifiedAccessInstanceLoggingConfigurationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_VAII] != null) {
        entries[_VAII] = input[_VAII];
      }
      if (input[_AL] != null) {
        const memberEntries = se_VerifiedAccessLogOptions(input[_AL], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AccessLogs.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      return entries;
    }, "se_ModifyVerifiedAccessInstanceLoggingConfigurationRequest");
    var se_ModifyVerifiedAccessInstanceRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_VAII] != null) {
        entries[_VAII] = input[_VAII];
      }
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_CECSD] != null) {
        entries[_CECSD] = input[_CECSD];
      }
      return entries;
    }, "se_ModifyVerifiedAccessInstanceRequest");
    var se_ModifyVerifiedAccessNativeApplicationOidcOptions = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_PSKE] != null) {
        entries[_PSKE] = input[_PSKE];
      }
      if (input[_I] != null) {
        entries[_I] = input[_I];
      }
      if (input[_AE] != null) {
        entries[_AE] = input[_AE];
      }
      if (input[_TEo] != null) {
        entries[_TEo] = input[_TEo];
      }
      if (input[_UIE] != null) {
        entries[_UIE] = input[_UIE];
      }
      if (input[_CIl] != null) {
        entries[_CIl] = input[_CIl];
      }
      if (input[_CSl] != null) {
        entries[_CSl] = input[_CSl];
      }
      if (input[_Sc] != null) {
        entries[_Sc] = input[_Sc];
      }
      return entries;
    }, "se_ModifyVerifiedAccessNativeApplicationOidcOptions");
    var se_ModifyVerifiedAccessTrustProviderDeviceOptions = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_PSKU] != null) {
        entries[_PSKU] = input[_PSKU];
      }
      return entries;
    }, "se_ModifyVerifiedAccessTrustProviderDeviceOptions");
    var se_ModifyVerifiedAccessTrustProviderOidcOptions = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_I] != null) {
        entries[_I] = input[_I];
      }
      if (input[_AE] != null) {
        entries[_AE] = input[_AE];
      }
      if (input[_TEo] != null) {
        entries[_TEo] = input[_TEo];
      }
      if (input[_UIE] != null) {
        entries[_UIE] = input[_UIE];
      }
      if (input[_CIl] != null) {
        entries[_CIl] = input[_CIl];
      }
      if (input[_CSl] != null) {
        entries[_CSl] = input[_CSl];
      }
      if (input[_Sc] != null) {
        entries[_Sc] = input[_Sc];
      }
      return entries;
    }, "se_ModifyVerifiedAccessTrustProviderOidcOptions");
    var se_ModifyVerifiedAccessTrustProviderRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_VATPI] != null) {
        entries[_VATPI] = input[_VATPI];
      }
      if (input[_OO] != null) {
        const memberEntries = se_ModifyVerifiedAccessTrustProviderOidcOptions(input[_OO], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `OidcOptions.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_DOe] != null) {
        const memberEntries = se_ModifyVerifiedAccessTrustProviderDeviceOptions(input[_DOe], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `DeviceOptions.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_SS] != null) {
        const memberEntries = se_VerifiedAccessSseSpecificationRequest(input[_SS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SseSpecification.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_NAOO] != null) {
        const memberEntries = se_ModifyVerifiedAccessNativeApplicationOidcOptions(input[_NAOO], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `NativeApplicationOidcOptions.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_ModifyVerifiedAccessTrustProviderRequest");
    var se_ModifyVolumeAttributeRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_AEIO] != null) {
        const memberEntries = se_AttributeBooleanValue(input[_AEIO], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AutoEnableIO.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_VIo] != null) {
        entries[_VIo] = input[_VIo];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_ModifyVolumeAttributeRequest");
    var se_ModifyVolumeRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_VIo] != null) {
        entries[_VIo] = input[_VIo];
      }
      if (input[_Siz] != null) {
        entries[_Siz] = input[_Siz];
      }
      if (input[_VT] != null) {
        entries[_VT] = input[_VT];
      }
      if (input[_Io] != null) {
        entries[_Io] = input[_Io];
      }
      if (input[_Th] != null) {
        entries[_Th] = input[_Th];
      }
      if (input[_MAE] != null) {
        entries[_MAE] = input[_MAE];
      }
      return entries;
    }, "se_ModifyVolumeRequest");
    var se_ModifyVpcAttributeRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_EDH] != null) {
        const memberEntries = se_AttributeBooleanValue(input[_EDH], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `EnableDnsHostnames.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_EDS] != null) {
        const memberEntries = se_AttributeBooleanValue(input[_EDS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `EnableDnsSupport.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_VI] != null) {
        entries[_VI] = input[_VI];
      }
      if (input[_ENAUM] != null) {
        const memberEntries = se_AttributeBooleanValue(input[_ENAUM], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `EnableNetworkAddressUsageMetrics.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_ModifyVpcAttributeRequest");
    var se_ModifyVpcBlockPublicAccessExclusionRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_EIxc] != null) {
        entries[_EIxc] = input[_EIxc];
      }
      if (input[_IGEM] != null) {
        entries[_IGEM] = input[_IGEM];
      }
      return entries;
    }, "se_ModifyVpcBlockPublicAccessExclusionRequest");
    var se_ModifyVpcBlockPublicAccessOptionsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_IGBM] != null) {
        entries[_IGBM] = input[_IGBM];
      }
      return entries;
    }, "se_ModifyVpcBlockPublicAccessOptionsRequest");
    var se_ModifyVpcEndpointConnectionNotificationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_CNIon] != null) {
        entries[_CNIon] = input[_CNIon];
      }
      if (input[_CNAon] != null) {
        entries[_CNAon] = input[_CNAon];
      }
      if (input[_CEo] != null) {
        const memberEntries = se_ValueStringList(input[_CEo], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ConnectionEvents.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_ModifyVpcEndpointConnectionNotificationRequest");
    var se_ModifyVpcEndpointRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_VEIp] != null) {
        entries[_VEIp] = input[_VEIp];
      }
      if (input[_RP] != null) {
        entries[_RP] = input[_RP];
      }
      if (input[_PD] != null) {
        entries[_PD] = input[_PD];
      }
      if (input[_ARTI] != null) {
        const memberEntries = se_VpcEndpointRouteTableIdList(input[_ARTI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AddRouteTableId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_RRTI] != null) {
        const memberEntries = se_VpcEndpointRouteTableIdList(input[_RRTI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `RemoveRouteTableId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_ASId] != null) {
        const memberEntries = se_VpcEndpointSubnetIdList(input[_ASId], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AddSubnetId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_RSIe] != null) {
        const memberEntries = se_VpcEndpointSubnetIdList(input[_RSIe], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `RemoveSubnetId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_ASGId] != null) {
        const memberEntries = se_VpcEndpointSecurityGroupIdList(input[_ASGId], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AddSecurityGroupId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_RSGIe] != null) {
        const memberEntries = se_VpcEndpointSecurityGroupIdList(input[_RSGIe], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `RemoveSecurityGroupId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_IAT] != null) {
        entries[_IAT] = input[_IAT];
      }
      if (input[_DOn] != null) {
        const memberEntries = se_DnsOptionsSpecification(input[_DOn], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `DnsOptions.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_PDE] != null) {
        entries[_PDE] = input[_PDE];
      }
      if (input[_SC] != null) {
        const memberEntries = se_SubnetConfigurationsList(input[_SC], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SubnetConfiguration.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_ModifyVpcEndpointRequest");
    var se_ModifyVpcEndpointServiceConfigurationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_SIe] != null) {
        entries[_SIe] = input[_SIe];
      }
      if (input[_PDN] != null) {
        entries[_PDN] = input[_PDN];
      }
      if (input[_RPDN] != null) {
        entries[_RPDN] = input[_RPDN];
      }
      if (input[_ARc] != null) {
        entries[_ARc] = input[_ARc];
      }
      if (input[_ANLBA] != null) {
        const memberEntries = se_ValueStringList(input[_ANLBA], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AddNetworkLoadBalancerArn.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_RNLBA] != null) {
        const memberEntries = se_ValueStringList(input[_RNLBA], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `RemoveNetworkLoadBalancerArn.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_AGLBA] != null) {
        const memberEntries = se_ValueStringList(input[_AGLBA], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AddGatewayLoadBalancerArn.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_RGLBA] != null) {
        const memberEntries = se_ValueStringList(input[_RGLBA], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `RemoveGatewayLoadBalancerArn.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_ASIAT] != null) {
        const memberEntries = se_ValueStringList(input[_ASIAT], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AddSupportedIpAddressType.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_RSIAT] != null) {
        const memberEntries = se_ValueStringList(input[_RSIAT], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `RemoveSupportedIpAddressType.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_ASR] != null) {
        const memberEntries = se_ValueStringList(input[_ASR], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AddSupportedRegion.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_RSR] != null) {
        const memberEntries = se_ValueStringList(input[_RSR], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `RemoveSupportedRegion.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_ModifyVpcEndpointServiceConfigurationRequest");
    var se_ModifyVpcEndpointServicePayerResponsibilityRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_SIe] != null) {
        entries[_SIe] = input[_SIe];
      }
      if (input[_PRa] != null) {
        entries[_PRa] = input[_PRa];
      }
      return entries;
    }, "se_ModifyVpcEndpointServicePayerResponsibilityRequest");
    var se_ModifyVpcEndpointServicePermissionsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_SIe] != null) {
        entries[_SIe] = input[_SIe];
      }
      if (input[_AAP] != null) {
        const memberEntries = se_ValueStringList(input[_AAP], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AddAllowedPrincipals.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_RAP] != null) {
        const memberEntries = se_ValueStringList(input[_RAP], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `RemoveAllowedPrincipals.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_ModifyVpcEndpointServicePermissionsRequest");
    var se_ModifyVpcPeeringConnectionOptionsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_APCO] != null) {
        const memberEntries = se_PeeringConnectionOptionsRequest(input[_APCO], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AccepterPeeringConnectionOptions.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_RPCO] != null) {
        const memberEntries = se_PeeringConnectionOptionsRequest(input[_RPCO], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `RequesterPeeringConnectionOptions.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_VPCI] != null) {
        entries[_VPCI] = input[_VPCI];
      }
      return entries;
    }, "se_ModifyVpcPeeringConnectionOptionsRequest");
    var se_ModifyVpcTenancyRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_VI] != null) {
        entries[_VI] = input[_VI];
      }
      if (input[_ITns] != null) {
        entries[_ITns] = input[_ITns];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_ModifyVpcTenancyRequest");
    var se_ModifyVpnConnectionOptionsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_VCI] != null) {
        entries[_VCI] = input[_VCI];
      }
      if (input[_LINC] != null) {
        entries[_LINC] = input[_LINC];
      }
      if (input[_RINC] != null) {
        entries[_RINC] = input[_RINC];
      }
      if (input[_LINCo] != null) {
        entries[_LINCo] = input[_LINCo];
      }
      if (input[_RINCe] != null) {
        entries[_RINCe] = input[_RINCe];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_ModifyVpnConnectionOptionsRequest");
    var se_ModifyVpnConnectionRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_VCI] != null) {
        entries[_VCI] = input[_VCI];
      }
      if (input[_TGI] != null) {
        entries[_TGI] = input[_TGI];
      }
      if (input[_CGIu] != null) {
        entries[_CGIu] = input[_CGIu];
      }
      if (input[_VGI] != null) {
        entries[_VGI] = input[_VGI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_ModifyVpnConnectionRequest");
    var se_ModifyVpnTunnelCertificateRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_VCI] != null) {
        entries[_VCI] = input[_VCI];
      }
      if (input[_VTOIA] != null) {
        entries[_VTOIA] = input[_VTOIA];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_ModifyVpnTunnelCertificateRequest");
    var se_ModifyVpnTunnelOptionsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_VCI] != null) {
        entries[_VCI] = input[_VCI];
      }
      if (input[_VTOIA] != null) {
        entries[_VTOIA] = input[_VTOIA];
      }
      if (input[_TO] != null) {
        const memberEntries = se_ModifyVpnTunnelOptionsSpecification(input[_TO], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TunnelOptions.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_STR] != null) {
        entries[_STR] = input[_STR];
      }
      if (input[_PSKS] != null) {
        entries[_PSKS] = input[_PSKS];
      }
      return entries;
    }, "se_ModifyVpnTunnelOptionsRequest");
    var se_ModifyVpnTunnelOptionsSpecification = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TIC] != null) {
        entries[_TIC] = input[_TIC];
      }
      if (input[_TIIC] != null) {
        entries[_TIIC] = input[_TIIC];
      }
      if (input[_PSK] != null) {
        entries[_PSK] = input[_PSK];
      }
      if (input[_PLS] != null) {
        entries[_PLS] = input[_PLS];
      }
      if (input[_PLSh] != null) {
        entries[_PLSh] = input[_PLSh];
      }
      if (input[_RMTS] != null) {
        entries[_RMTS] = input[_RMTS];
      }
      if (input[_RFP] != null) {
        entries[_RFP] = input[_RFP];
      }
      if (input[_RWS] != null) {
        entries[_RWS] = input[_RWS];
      }
      if (input[_DPDTS] != null) {
        entries[_DPDTS] = input[_DPDTS];
      }
      if (input[_DPDTA] != null) {
        entries[_DPDTA] = input[_DPDTA];
      }
      if (input[_PEA] != null) {
        const memberEntries = se_Phase1EncryptionAlgorithmsRequestList(input[_PEA], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Phase1EncryptionAlgorithm.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_PEAh] != null) {
        const memberEntries = se_Phase2EncryptionAlgorithmsRequestList(input[_PEAh], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Phase2EncryptionAlgorithm.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_PIAh] != null) {
        const memberEntries = se_Phase1IntegrityAlgorithmsRequestList(input[_PIAh], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Phase1IntegrityAlgorithm.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_PIAha] != null) {
        const memberEntries = se_Phase2IntegrityAlgorithmsRequestList(input[_PIAha], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Phase2IntegrityAlgorithm.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_PDHGN] != null) {
        const memberEntries = se_Phase1DHGroupNumbersRequestList(input[_PDHGN], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Phase1DHGroupNumber.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_PDHGNh] != null) {
        const memberEntries = se_Phase2DHGroupNumbersRequestList(input[_PDHGNh], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Phase2DHGroupNumber.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_IKEVe] != null) {
        const memberEntries = se_IKEVersionsRequestList(input[_IKEVe], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `IKEVersion.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_SA] != null) {
        entries[_SA] = input[_SA];
      }
      if (input[_LO] != null) {
        const memberEntries = se_VpnTunnelLogOptionsSpecification(input[_LO], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `LogOptions.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_ETLC] != null) {
        entries[_ETLC] = input[_ETLC];
      }
      return entries;
    }, "se_ModifyVpnTunnelOptionsSpecification");
    var se_MonitorInstancesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IIns] != null) {
        const memberEntries = se_InstanceIdStringList(input[_IIns], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `InstanceId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_MonitorInstancesRequest");
    var se_MoveAddressToVpcRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_PI2] != null) {
        entries[_PI2] = input[_PI2];
      }
      return entries;
    }, "se_MoveAddressToVpcRequest");
    var se_MoveByoipCidrToIpamRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_C2] != null) {
        entries[_C2] = input[_C2];
      }
      if (input[_IPI] != null) {
        entries[_IPI] = input[_IPI];
      }
      if (input[_IPO] != null) {
        entries[_IPO] = input[_IPO];
      }
      return entries;
    }, "se_MoveByoipCidrToIpamRequest");
    var se_MoveCapacityReservationInstancesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_SCRI] != null) {
        entries[_SCRI] = input[_SCRI];
      }
      if (input[_DCRI] != null) {
        entries[_DCRI] = input[_DCRI];
      }
      if (input[_IC] != null) {
        entries[_IC] = input[_IC];
      }
      return entries;
    }, "se_MoveCapacityReservationInstancesRequest");
    var se_NatGatewayIdStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_NatGatewayIdStringList");
    var se_NetworkAclIdStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_NetworkAclIdStringList");
    var se_NetworkBandwidthGbps = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_M] != null) {
        entries[_M] = (0, import_smithy_client28.serializeFloat)(input[_M]);
      }
      if (input[_Ma] != null) {
        entries[_Ma] = (0, import_smithy_client28.serializeFloat)(input[_Ma]);
      }
      return entries;
    }, "se_NetworkBandwidthGbps");
    var se_NetworkBandwidthGbpsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_M] != null) {
        entries[_M] = (0, import_smithy_client28.serializeFloat)(input[_M]);
      }
      if (input[_Ma] != null) {
        entries[_Ma] = (0, import_smithy_client28.serializeFloat)(input[_Ma]);
      }
      return entries;
    }, "se_NetworkBandwidthGbpsRequest");
    var se_NetworkInsightsAccessScopeAnalysisIdList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_NetworkInsightsAccessScopeAnalysisIdList");
    var se_NetworkInsightsAccessScopeIdList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_NetworkInsightsAccessScopeIdList");
    var se_NetworkInsightsAnalysisIdList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_NetworkInsightsAnalysisIdList");
    var se_NetworkInsightsPathIdList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_NetworkInsightsPathIdList");
    var se_NetworkInterfaceAttachmentChanges = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DEQC] != null) {
        entries[_DEQC] = input[_DEQC];
      }
      if (input[_EQC] != null) {
        entries[_EQC] = input[_EQC];
      }
      if (input[_AIt] != null) {
        entries[_AIt] = input[_AIt];
      }
      if (input[_DOT] != null) {
        entries[_DOT] = input[_DOT];
      }
      return entries;
    }, "se_NetworkInterfaceAttachmentChanges");
    var se_NetworkInterfaceCount = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_M] != null) {
        entries[_M] = input[_M];
      }
      if (input[_Ma] != null) {
        entries[_Ma] = input[_Ma];
      }
      return entries;
    }, "se_NetworkInterfaceCount");
    var se_NetworkInterfaceCountRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_M] != null) {
        entries[_M] = input[_M];
      }
      if (input[_Ma] != null) {
        entries[_Ma] = input[_Ma];
      }
      return entries;
    }, "se_NetworkInterfaceCountRequest");
    var se_NetworkInterfaceIdList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_NetworkInterfaceIdList");
    var se_NetworkInterfacePermissionIdList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_NetworkInterfacePermissionIdList");
    var se_NewDhcpConfiguration = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Ke] != null) {
        entries[_Ke] = input[_Ke];
      }
      if (input[_Val] != null) {
        const memberEntries = se_ValueStringList(input[_Val], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Value.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_NewDhcpConfiguration");
    var se_NewDhcpConfigurationList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_NewDhcpConfiguration(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Item.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_NewDhcpConfigurationList");
    var se_OccurrenceDayRequestSet = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`OccurenceDay.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_OccurrenceDayRequestSet");
    var se_OnDemandOptionsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_AS] != null) {
        entries[_AS] = input[_AS];
      }
      if (input[_CRO] != null) {
        const memberEntries = se_CapacityReservationOptionsRequest(input[_CRO], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `CapacityReservationOptions.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_SITi] != null) {
        entries[_SITi] = input[_SITi];
      }
      if (input[_SAZ] != null) {
        entries[_SAZ] = input[_SAZ];
      }
      if (input[_MTC] != null) {
        entries[_MTC] = input[_MTC];
      }
      if (input[_MTP] != null) {
        entries[_MTP] = input[_MTP];
      }
      return entries;
    }, "se_OnDemandOptionsRequest");
    var se_OperatorRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Prin] != null) {
        entries[_Prin] = input[_Prin];
      }
      return entries;
    }, "se_OperatorRequest");
    var se_OrganizationalUnitArnStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`OrganizationalUnitArn.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_OrganizationalUnitArnStringList");
    var se_OrganizationArnStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`OrganizationArn.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_OrganizationArnStringList");
    var se_OutpostLagIdSet = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_OutpostLagIdSet");
    var se_OwnerStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Owner.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_OwnerStringList");
    var se_PacketHeaderStatementRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SAo] != null) {
        const memberEntries = se_ValueStringList(input[_SAo], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SourceAddress.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DAes] != null) {
        const memberEntries = se_ValueStringList(input[_DAes], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `DestinationAddress.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_SPo] != null) {
        const memberEntries = se_ValueStringList(input[_SPo], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SourcePort.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DPes] != null) {
        const memberEntries = se_ValueStringList(input[_DPes], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `DestinationPort.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_SPL] != null) {
        const memberEntries = se_ValueStringList(input[_SPL], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SourcePrefixList.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DPLe] != null) {
        const memberEntries = se_ValueStringList(input[_DPLe], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `DestinationPrefixList.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Pro] != null) {
        const memberEntries = se_ProtocolList(input[_Pro], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Protocol.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_PacketHeaderStatementRequest");
    var se_PathRequestFilter = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SAou] != null) {
        entries[_SAou] = input[_SAou];
      }
      if (input[_SPR] != null) {
        const memberEntries = se_RequestFilterPortRange(input[_SPR], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SourcePortRange.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_DAest] != null) {
        entries[_DAest] = input[_DAest];
      }
      if (input[_DPR] != null) {
        const memberEntries = se_RequestFilterPortRange(input[_DPR], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `DestinationPortRange.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_PathRequestFilter");
    var se_PathStatementRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_PHS] != null) {
        const memberEntries = se_PacketHeaderStatementRequest(input[_PHS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `PacketHeaderStatement.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_RSe] != null) {
        const memberEntries = se_ResourceStatementRequest(input[_RSe], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ResourceStatement.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_PathStatementRequest");
    var se_PeeringConnectionOptionsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_ADRFRV] != null) {
        entries[_ADRFRV] = input[_ADRFRV];
      }
      if (input[_AEFLCLTRV] != null) {
        entries[_AEFLCLTRV] = input[_AEFLCLTRV];
      }
      if (input[_AEFLVTRCL] != null) {
        entries[_AEFLVTRCL] = input[_AEFLVTRCL];
      }
      return entries;
    }, "se_PeeringConnectionOptionsRequest");
    var se_PerformanceFactorReference = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IF] != null) {
        entries[_IF] = input[_IF];
      }
      return entries;
    }, "se_PerformanceFactorReference");
    var se_PerformanceFactorReferenceRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IF] != null) {
        entries[_IF] = input[_IF];
      }
      return entries;
    }, "se_PerformanceFactorReferenceRequest");
    var se_PerformanceFactorReferenceSet = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_PerformanceFactorReference(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Item.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_PerformanceFactorReferenceSet");
    var se_PerformanceFactorReferenceSetRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_PerformanceFactorReferenceRequest(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Item.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_PerformanceFactorReferenceSetRequest");
    var se_Phase1DHGroupNumbersRequestList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_Phase1DHGroupNumbersRequestListValue(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Item.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_Phase1DHGroupNumbersRequestList");
    var se_Phase1DHGroupNumbersRequestListValue = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Va2] != null) {
        entries[_Va2] = input[_Va2];
      }
      return entries;
    }, "se_Phase1DHGroupNumbersRequestListValue");
    var se_Phase1EncryptionAlgorithmsRequestList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_Phase1EncryptionAlgorithmsRequestListValue(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Item.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_Phase1EncryptionAlgorithmsRequestList");
    var se_Phase1EncryptionAlgorithmsRequestListValue = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Va2] != null) {
        entries[_Va2] = input[_Va2];
      }
      return entries;
    }, "se_Phase1EncryptionAlgorithmsRequestListValue");
    var se_Phase1IntegrityAlgorithmsRequestList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_Phase1IntegrityAlgorithmsRequestListValue(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Item.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_Phase1IntegrityAlgorithmsRequestList");
    var se_Phase1IntegrityAlgorithmsRequestListValue = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Va2] != null) {
        entries[_Va2] = input[_Va2];
      }
      return entries;
    }, "se_Phase1IntegrityAlgorithmsRequestListValue");
    var se_Phase2DHGroupNumbersRequestList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_Phase2DHGroupNumbersRequestListValue(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Item.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_Phase2DHGroupNumbersRequestList");
    var se_Phase2DHGroupNumbersRequestListValue = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Va2] != null) {
        entries[_Va2] = input[_Va2];
      }
      return entries;
    }, "se_Phase2DHGroupNumbersRequestListValue");
    var se_Phase2EncryptionAlgorithmsRequestList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_Phase2EncryptionAlgorithmsRequestListValue(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Item.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_Phase2EncryptionAlgorithmsRequestList");
    var se_Phase2EncryptionAlgorithmsRequestListValue = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Va2] != null) {
        entries[_Va2] = input[_Va2];
      }
      return entries;
    }, "se_Phase2EncryptionAlgorithmsRequestListValue");
    var se_Phase2IntegrityAlgorithmsRequestList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_Phase2IntegrityAlgorithmsRequestListValue(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Item.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_Phase2IntegrityAlgorithmsRequestList");
    var se_Phase2IntegrityAlgorithmsRequestListValue = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Va2] != null) {
        entries[_Va2] = input[_Va2];
      }
      return entries;
    }, "se_Phase2IntegrityAlgorithmsRequestListValue");
    var se_Placement = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_AZI] != null) {
        entries[_AZI] = input[_AZI];
      }
      if (input[_Af] != null) {
        entries[_Af] = input[_Af];
      }
      if (input[_GN] != null) {
        entries[_GN] = input[_GN];
      }
      if (input[_PN] != null) {
        entries[_PN] = input[_PN];
      }
      if (input[_HIo] != null) {
        entries[_HIo] = input[_HIo];
      }
      if (input[_Te] != null) {
        entries[_Te] = input[_Te];
      }
      if (input[_SDp] != null) {
        entries[_SDp] = input[_SDp];
      }
      if (input[_HRGA] != null) {
        entries[_HRGA] = input[_HRGA];
      }
      if (input[_GIr] != null) {
        entries[_GIr] = input[_GIr];
      }
      if (input[_AZ] != null) {
        entries[_AZ] = input[_AZ];
      }
      return entries;
    }, "se_Placement");
    var se_PlacementGroupIdStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`GroupId.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_PlacementGroupIdStringList");
    var se_PlacementGroupStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_PlacementGroupStringList");
    var se_PortRange = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Fr] != null) {
        entries[_Fr] = input[_Fr];
      }
      if (input[_To] != null) {
        entries[_To] = input[_To];
      }
      return entries;
    }, "se_PortRange");
    var se_PrefixListId = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      if (input[_PLI] != null) {
        entries[_PLI] = input[_PLI];
      }
      return entries;
    }, "se_PrefixListId");
    var se_PrefixListIdList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_PrefixListId(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Item.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_PrefixListIdList");
    var se_PrefixListResourceIdStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_PrefixListResourceIdStringList");
    var se_PriceScheduleSpecification = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Ter] != null) {
        entries[_Ter] = input[_Ter];
      }
      if (input[_Pric] != null) {
        entries[_Pric] = (0, import_smithy_client28.serializeFloat)(input[_Pric]);
      }
      if (input[_CCu] != null) {
        entries[_CCu] = input[_CCu];
      }
      return entries;
    }, "se_PriceScheduleSpecification");
    var se_PriceScheduleSpecificationList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_PriceScheduleSpecification(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Item.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_PriceScheduleSpecificationList");
    var se_PrivateDnsNameOptionsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_HTo] != null) {
        entries[_HTo] = input[_HTo];
      }
      if (input[_ERNDAR] != null) {
        entries[_ERNDAR] = input[_ERNDAR];
      }
      if (input[_ERNDAAAAR] != null) {
        entries[_ERNDAAAAR] = input[_ERNDAAAAR];
      }
      return entries;
    }, "se_PrivateDnsNameOptionsRequest");
    var se_PrivateIpAddressConfigSet = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_ScheduledInstancesPrivateIpAddressConfig(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`PrivateIpAddressConfigSet.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_PrivateIpAddressConfigSet");
    var se_PrivateIpAddressSpecification = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Prim] != null) {
        entries[_Prim] = input[_Prim];
      }
      if (input[_PIAr] != null) {
        entries[_PIAr] = input[_PIAr];
      }
      return entries;
    }, "se_PrivateIpAddressSpecification");
    var se_PrivateIpAddressSpecificationList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_PrivateIpAddressSpecification(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Item.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_PrivateIpAddressSpecificationList");
    var se_PrivateIpAddressStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`PrivateIpAddress.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_PrivateIpAddressStringList");
    var se_ProductCodeStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`ProductCode.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_ProductCodeStringList");
    var se_ProductDescriptionList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_ProductDescriptionList");
    var se_ProtocolList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_ProtocolList");
    var se_ProvisionByoipCidrRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_C2] != null) {
        entries[_C2] = input[_C2];
      }
      if (input[_CAC] != null) {
        const memberEntries = se_CidrAuthorizationContext(input[_CAC], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `CidrAuthorizationContext.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_PA2] != null) {
        entries[_PA2] = input[_PA2];
      }
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_PTS] != null) {
        const memberEntries = se_TagSpecificationList(input[_PTS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `PoolTagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MRu] != null) {
        entries[_MRu] = input[_MRu];
      }
      if (input[_NBG] != null) {
        entries[_NBG] = input[_NBG];
      }
      return entries;
    }, "se_ProvisionByoipCidrRequest");
    var se_ProvisionIpamByoasnRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_IIp] != null) {
        entries[_IIp] = input[_IIp];
      }
      if (input[_As] != null) {
        entries[_As] = input[_As];
      }
      if (input[_AAC] != null) {
        const memberEntries = se_AsnAuthorizationContext(input[_AAC], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AsnAuthorizationContext.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_ProvisionIpamByoasnRequest");
    var se_ProvisionIpamPoolCidrRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_IPI] != null) {
        entries[_IPI] = input[_IPI];
      }
      if (input[_C2] != null) {
        entries[_C2] = input[_C2];
      }
      if (input[_CAC] != null) {
        const memberEntries = se_IpamCidrAuthorizationContext(input[_CAC], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `CidrAuthorizationContext.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_NL] != null) {
        entries[_NL] = input[_NL];
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_VM] != null) {
        entries[_VM] = input[_VM];
      }
      if (input[_IERVTI] != null) {
        entries[_IERVTI] = input[_IERVTI];
      }
      return entries;
    }, "se_ProvisionIpamPoolCidrRequest");
    var se_ProvisionPublicIpv4PoolCidrRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_IPI] != null) {
        entries[_IPI] = input[_IPI];
      }
      if (input[_PIo] != null) {
        entries[_PIo] = input[_PIo];
      }
      if (input[_NL] != null) {
        entries[_NL] = input[_NL];
      }
      if (input[_NBG] != null) {
        entries[_NBG] = input[_NBG];
      }
      return entries;
    }, "se_ProvisionPublicIpv4PoolCidrRequest");
    var se_PublicIpStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`PublicIp.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_PublicIpStringList");
    var se_PublicIpv4PoolIdStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_PublicIpv4PoolIdStringList");
    var se_PurchaseCapacityBlockExtensionRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CBEOI] != null) {
        entries[_CBEOI] = input[_CBEOI];
      }
      if (input[_CRI] != null) {
        entries[_CRI] = input[_CRI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_PurchaseCapacityBlockExtensionRequest");
    var se_PurchaseCapacityBlockRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_CBOI] != null) {
        entries[_CBOI] = input[_CBOI];
      }
      if (input[_IPn] != null) {
        entries[_IPn] = input[_IPn];
      }
      return entries;
    }, "se_PurchaseCapacityBlockRequest");
    var se_PurchaseHostReservationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_CCu] != null) {
        entries[_CCu] = input[_CCu];
      }
      if (input[_HIS] != null) {
        const memberEntries = se_RequestHostIdSet(input[_HIS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `HostIdSet.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_LPi] != null) {
        entries[_LPi] = input[_LPi];
      }
      if (input[_OI] != null) {
        entries[_OI] = input[_OI];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_PurchaseHostReservationRequest");
    var se_PurchaseRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IC] != null) {
        entries[_IC] = input[_IC];
      }
      if (input[_PT] != null) {
        entries[_PT] = input[_PT];
      }
      return entries;
    }, "se_PurchaseRequest");
    var se_PurchaseRequestSet = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_PurchaseRequest(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`PurchaseRequest.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_PurchaseRequestSet");
    var se_PurchaseReservedInstancesOfferingRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IC] != null) {
        entries[_IC] = input[_IC];
      }
      if (input[_RIOIe] != null) {
        entries[_RIOIe] = input[_RIOIe];
      }
      if (input[_PTu] != null) {
        entries[_PTu] = (0, import_smithy_client28.serializeDateTime)(input[_PTu]);
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_LPi] != null) {
        const memberEntries = se_ReservedInstanceLimitPrice(input[_LPi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `LimitPrice.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_PurchaseReservedInstancesOfferingRequest");
    var se_PurchaseScheduledInstancesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_PRu] != null) {
        const memberEntries = se_PurchaseRequestSet(input[_PRu], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `PurchaseRequest.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_PurchaseScheduledInstancesRequest");
    var se_ReasonCodesList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_ReasonCodesList");
    var se_RebootInstancesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IIns] != null) {
        const memberEntries = se_InstanceIdStringList(input[_IIns], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `InstanceId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_RebootInstancesRequest");
    var se_RegionNames = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_RegionNames");
    var se_RegionNameStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`RegionName.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_RegionNameStringList");
    var se_RegisterImageRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IL] != null) {
        entries[_IL] = input[_IL];
      }
      if (input[_BPi] != null) {
        const memberEntries = se_BillingProductList(input[_BPi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `BillingProduct.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_BM] != null) {
        entries[_BM] = input[_BM];
      }
      if (input[_TSp] != null) {
        entries[_TSp] = input[_TSp];
      }
      if (input[_UDe] != null) {
        entries[_UDe] = input[_UDe];
      }
      if (input[_ISm] != null) {
        entries[_ISm] = input[_ISm];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_N] != null) {
        entries[_N] = input[_N];
      }
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      if (input[_Arc] != null) {
        entries[_Arc] = input[_Arc];
      }
      if (input[_KI] != null) {
        entries[_KI] = input[_KI];
      }
      if (input[_RIa] != null) {
        entries[_RIa] = input[_RIa];
      }
      if (input[_RDN] != null) {
        entries[_RDN] = input[_RDN];
      }
      if (input[_BDM] != null) {
        const memberEntries = se_BlockDeviceMappingRequestList(input[_BDM], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `BlockDeviceMapping.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_VTir] != null) {
        entries[_VTir] = input[_VTir];
      }
      if (input[_SNS] != null) {
        entries[_SNS] = input[_SNS];
      }
      if (input[_ESn] != null) {
        entries[_ESn] = input[_ESn];
      }
      return entries;
    }, "se_RegisterImageRequest");
    var se_RegisterInstanceEventNotificationAttributesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_ITA] != null) {
        const memberEntries = se_RegisterInstanceTagAttributeRequest(input[_ITA], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `InstanceTagAttribute.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_RegisterInstanceEventNotificationAttributesRequest");
    var se_RegisterInstanceTagAttributeRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IATOI] != null) {
        entries[_IATOI] = input[_IATOI];
      }
      if (input[_ITK] != null) {
        const memberEntries = se_InstanceTagKeySet(input[_ITK], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `InstanceTagKey.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_RegisterInstanceTagAttributeRequest");
    var se_RegisterTransitGatewayMulticastGroupMembersRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGMDI] != null) {
        entries[_TGMDI] = input[_TGMDI];
      }
      if (input[_GIA] != null) {
        entries[_GIA] = input[_GIA];
      }
      if (input[_NIIe] != null) {
        const memberEntries = se_TransitGatewayNetworkInterfaceIdList(input[_NIIe], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `NetworkInterfaceIds.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_RegisterTransitGatewayMulticastGroupMembersRequest");
    var se_RegisterTransitGatewayMulticastGroupSourcesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGMDI] != null) {
        entries[_TGMDI] = input[_TGMDI];
      }
      if (input[_GIA] != null) {
        entries[_GIA] = input[_GIA];
      }
      if (input[_NIIe] != null) {
        const memberEntries = se_TransitGatewayNetworkInterfaceIdList(input[_NIIe], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `NetworkInterfaceIds.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_RegisterTransitGatewayMulticastGroupSourcesRequest");
    var se_RejectCapacityReservationBillingOwnershipRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_CRI] != null) {
        entries[_CRI] = input[_CRI];
      }
      return entries;
    }, "se_RejectCapacityReservationBillingOwnershipRequest");
    var se_RejectTransitGatewayMulticastDomainAssociationsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGMDI] != null) {
        entries[_TGMDI] = input[_TGMDI];
      }
      if (input[_TGAI] != null) {
        entries[_TGAI] = input[_TGAI];
      }
      if (input[_SIu] != null) {
        const memberEntries = se_ValueStringList(input[_SIu], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SubnetIds.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_RejectTransitGatewayMulticastDomainAssociationsRequest");
    var se_RejectTransitGatewayPeeringAttachmentRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGAI] != null) {
        entries[_TGAI] = input[_TGAI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_RejectTransitGatewayPeeringAttachmentRequest");
    var se_RejectTransitGatewayVpcAttachmentRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGAI] != null) {
        entries[_TGAI] = input[_TGAI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_RejectTransitGatewayVpcAttachmentRequest");
    var se_RejectVpcEndpointConnectionsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_SIe] != null) {
        entries[_SIe] = input[_SIe];
      }
      if (input[_VEI] != null) {
        const memberEntries = se_VpcEndpointIdList(input[_VEI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `VpcEndpointId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_RejectVpcEndpointConnectionsRequest");
    var se_RejectVpcPeeringConnectionRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_VPCI] != null) {
        entries[_VPCI] = input[_VPCI];
      }
      return entries;
    }, "se_RejectVpcPeeringConnectionRequest");
    var se_ReleaseAddressRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_AIl] != null) {
        entries[_AIl] = input[_AIl];
      }
      if (input[_PI2] != null) {
        entries[_PI2] = input[_PI2];
      }
      if (input[_NBG] != null) {
        entries[_NBG] = input[_NBG];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_ReleaseAddressRequest");
    var se_ReleaseHostsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_HI] != null) {
        const memberEntries = se_RequestHostIdList(input[_HI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `HostId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_ReleaseHostsRequest");
    var se_ReleaseIpamPoolAllocationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_IPI] != null) {
        entries[_IPI] = input[_IPI];
      }
      if (input[_C2] != null) {
        entries[_C2] = input[_C2];
      }
      if (input[_IPAI] != null) {
        entries[_IPAI] = input[_IPAI];
      }
      return entries;
    }, "se_ReleaseIpamPoolAllocationRequest");
    var se_RemoveIpamOperatingRegion = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RN] != null) {
        entries[_RN] = input[_RN];
      }
      return entries;
    }, "se_RemoveIpamOperatingRegion");
    var se_RemoveIpamOperatingRegionSet = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_RemoveIpamOperatingRegion(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Member.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_RemoveIpamOperatingRegionSet");
    var se_RemoveIpamOrganizationalUnitExclusion = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_OEP] != null) {
        entries[_OEP] = input[_OEP];
      }
      return entries;
    }, "se_RemoveIpamOrganizationalUnitExclusion");
    var se_RemoveIpamOrganizationalUnitExclusionSet = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_RemoveIpamOrganizationalUnitExclusion(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Member.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_RemoveIpamOrganizationalUnitExclusionSet");
    var se_RemovePrefixListEntries = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_RemovePrefixListEntry(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Member.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_RemovePrefixListEntries");
    var se_RemovePrefixListEntry = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_C2] != null) {
        entries[_C2] = input[_C2];
      }
      return entries;
    }, "se_RemovePrefixListEntry");
    var se_ReplaceIamInstanceProfileAssociationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IIP] != null) {
        const memberEntries = se_IamInstanceProfileSpecification(input[_IIP], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `IamInstanceProfile.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_AIss] != null) {
        entries[_AIss] = input[_AIss];
      }
      return entries;
    }, "se_ReplaceIamInstanceProfileAssociationRequest");
    var se_ReplaceImageCriteriaInAllowedImagesSettingsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_ICm] != null) {
        const memberEntries = se_ImageCriterionRequestList(input[_ICm], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ImageCriterion.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_ReplaceImageCriteriaInAllowedImagesSettingsRequest");
    var se_ReplaceNetworkAclAssociationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_AIss] != null) {
        entries[_AIss] = input[_AIss];
      }
      if (input[_NAI] != null) {
        entries[_NAI] = input[_NAI];
      }
      return entries;
    }, "se_ReplaceNetworkAclAssociationRequest");
    var se_ReplaceNetworkAclEntryRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_NAI] != null) {
        entries[_NAI] = input[_NAI];
      }
      if (input[_RNu] != null) {
        entries[_RNu] = input[_RNu];
      }
      if (input[_P2] != null) {
        entries[_P2] = input[_P2];
      }
      if (input[_RAu] != null) {
        entries[_RAu] = input[_RAu];
      }
      if (input[_Eg] != null) {
        entries[_Eg] = input[_Eg];
      }
      if (input[_CB] != null) {
        entries[_CB] = input[_CB];
      }
      if (input[_ICB] != null) {
        entries[_ICB] = input[_ICB];
      }
      if (input[_ITC] != null) {
        const memberEntries = se_IcmpTypeCode(input[_ITC], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Icmp.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_PR] != null) {
        const memberEntries = se_PortRange(input[_PR], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `PortRange.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_ReplaceNetworkAclEntryRequest");
    var se_ReplaceRootVolumeTaskIds = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`ReplaceRootVolumeTaskId.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_ReplaceRootVolumeTaskIds");
    var se_ReplaceRouteRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DPLI] != null) {
        entries[_DPLI] = input[_DPLI];
      }
      if (input[_VEIp] != null) {
        entries[_VEIp] = input[_VEIp];
      }
      if (input[_LTo] != null) {
        entries[_LTo] = input[_LTo];
      }
      if (input[_TGI] != null) {
        entries[_TGI] = input[_TGI];
      }
      if (input[_LGI] != null) {
        entries[_LGI] = input[_LGI];
      }
      if (input[_CGI] != null) {
        entries[_CGI] = input[_CGI];
      }
      if (input[_CNAo] != null) {
        entries[_CNAo] = input[_CNAo];
      }
      if (input[_ONA] != null) {
        entries[_ONA] = input[_ONA];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_RTI] != null) {
        entries[_RTI] = input[_RTI];
      }
      if (input[_DCBe] != null) {
        entries[_DCBe] = input[_DCBe];
      }
      if (input[_GI] != null) {
        entries[_GI] = input[_GI];
      }
      if (input[_DICB] != null) {
        entries[_DICB] = input[_DICB];
      }
      if (input[_EOIGI] != null) {
        entries[_EOIGI] = input[_EOIGI];
      }
      if (input[_IIn] != null) {
        entries[_IIn] = input[_IIn];
      }
      if (input[_NII] != null) {
        entries[_NII] = input[_NII];
      }
      if (input[_VPCI] != null) {
        entries[_VPCI] = input[_VPCI];
      }
      if (input[_NGI] != null) {
        entries[_NGI] = input[_NGI];
      }
      return entries;
    }, "se_ReplaceRouteRequest");
    var se_ReplaceRouteTableAssociationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_AIss] != null) {
        entries[_AIss] = input[_AIss];
      }
      if (input[_RTI] != null) {
        entries[_RTI] = input[_RTI];
      }
      return entries;
    }, "se_ReplaceRouteTableAssociationRequest");
    var se_ReplaceTransitGatewayRouteRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DCBe] != null) {
        entries[_DCBe] = input[_DCBe];
      }
      if (input[_TGRTI] != null) {
        entries[_TGRTI] = input[_TGRTI];
      }
      if (input[_TGAI] != null) {
        entries[_TGAI] = input[_TGAI];
      }
      if (input[_Bl] != null) {
        entries[_Bl] = input[_Bl];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_ReplaceTransitGatewayRouteRequest");
    var se_ReplaceVpnTunnelRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_VCI] != null) {
        entries[_VCI] = input[_VCI];
      }
      if (input[_VTOIA] != null) {
        entries[_VTOIA] = input[_VTOIA];
      }
      if (input[_APM] != null) {
        entries[_APM] = input[_APM];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_ReplaceVpnTunnelRequest");
    var se_ReportInstanceStatusRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_In] != null) {
        const memberEntries = se_InstanceIdStringList(input[_In], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `InstanceId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Statu] != null) {
        entries[_Statu] = input[_Statu];
      }
      if (input[_STt] != null) {
        entries[_STt] = (0, import_smithy_client28.serializeDateTime)(input[_STt]);
      }
      if (input[_ETn] != null) {
        entries[_ETn] = (0, import_smithy_client28.serializeDateTime)(input[_ETn]);
      }
      if (input[_RCe] != null) {
        const memberEntries = se_ReasonCodesList(input[_RCe], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ReasonCode.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      return entries;
    }, "se_ReportInstanceStatusRequest");
    var se_RequestFilterPortRange = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_FP] != null) {
        entries[_FP] = input[_FP];
      }
      if (input[_TP] != null) {
        entries[_TP] = input[_TP];
      }
      return entries;
    }, "se_RequestFilterPortRange");
    var se_RequestHostIdList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_RequestHostIdList");
    var se_RequestHostIdSet = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_RequestHostIdSet");
    var se_RequestInstanceTypeList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_RequestInstanceTypeList");
    var se_RequestIpamResourceTag = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Ke] != null) {
        entries[_Ke] = input[_Ke];
      }
      if (input[_Va2] != null) {
        entries[_Va2] = input[_Va2];
      }
      return entries;
    }, "se_RequestIpamResourceTag");
    var se_RequestIpamResourceTagList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_RequestIpamResourceTag(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Item.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_RequestIpamResourceTagList");
    var se_RequestLaunchTemplateData = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_KI] != null) {
        entries[_KI] = input[_KI];
      }
      if (input[_EO] != null) {
        entries[_EO] = input[_EO];
      }
      if (input[_IIP] != null) {
        const memberEntries = se_LaunchTemplateIamInstanceProfileSpecificationRequest(input[_IIP], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `IamInstanceProfile.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_BDM] != null) {
        const memberEntries = se_LaunchTemplateBlockDeviceMappingRequestList(input[_BDM], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `BlockDeviceMapping.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_NI] != null) {
        const memberEntries = se_LaunchTemplateInstanceNetworkInterfaceSpecificationRequestList(input[_NI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `NetworkInterface.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_IIma] != null) {
        entries[_IIma] = input[_IIma];
      }
      if (input[_IT] != null) {
        entries[_IT] = input[_IT];
      }
      if (input[_KN] != null) {
        entries[_KN] = input[_KN];
      }
      if (input[_Mon] != null) {
        const memberEntries = se_LaunchTemplatesMonitoringRequest(input[_Mon], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Monitoring.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_Pl] != null) {
        const memberEntries = se_LaunchTemplatePlacementRequest(input[_Pl], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Placement.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_RDI] != null) {
        entries[_RDI] = input[_RDI];
      }
      if (input[_DATis] != null) {
        entries[_DATis] = input[_DATis];
      }
      if (input[_IISB] != null) {
        entries[_IISB] = input[_IISB];
      }
      if (input[_UD] != null) {
        entries[_UD] = input[_UD];
      }
      if (input[_TS] != null) {
        const memberEntries = se_LaunchTemplateTagSpecificationRequestList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_EGS] != null) {
        const memberEntries = se_ElasticGpuSpecificationList(input[_EGS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ElasticGpuSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_EIA] != null) {
        const memberEntries = se_LaunchTemplateElasticInferenceAcceleratorList(input[_EIA], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ElasticInferenceAccelerator.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_SGI] != null) {
        const memberEntries = se_SecurityGroupIdStringList(input[_SGI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SecurityGroupId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_SG] != null) {
        const memberEntries = se_SecurityGroupStringList(input[_SG], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SecurityGroup.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_IMO] != null) {
        const memberEntries = se_LaunchTemplateInstanceMarketOptionsRequest(input[_IMO], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `InstanceMarketOptions.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_CSred] != null) {
        const memberEntries = se_CreditSpecificationRequest(input[_CSred], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `CreditSpecification.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_COp] != null) {
        const memberEntries = se_LaunchTemplateCpuOptionsRequest(input[_COp], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `CpuOptions.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_CRSa] != null) {
        const memberEntries = se_LaunchTemplateCapacityReservationSpecificationRequest(input[_CRSa], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `CapacityReservationSpecification.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_LSi] != null) {
        const memberEntries = se_LaunchTemplateLicenseSpecificationListRequest(input[_LSi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `LicenseSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_HO] != null) {
        const memberEntries = se_LaunchTemplateHibernationOptionsRequest(input[_HO], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `HibernationOptions.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_MO] != null) {
        const memberEntries = se_LaunchTemplateInstanceMetadataOptionsRequest(input[_MO], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `MetadataOptions.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_EOn] != null) {
        const memberEntries = se_LaunchTemplateEnclaveOptionsRequest(input[_EOn], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `EnclaveOptions.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_IR] != null) {
        const memberEntries = se_InstanceRequirementsRequest(input[_IR], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `InstanceRequirements.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_PDNO] != null) {
        const memberEntries = se_LaunchTemplatePrivateDnsNameOptionsRequest(input[_PDNO], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `PrivateDnsNameOptions.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_MOa] != null) {
        const memberEntries = se_LaunchTemplateInstanceMaintenanceOptionsRequest(input[_MOa], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `MaintenanceOptions.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_DASi] != null) {
        entries[_DASi] = input[_DASi];
      }
      if (input[_O] != null) {
        const memberEntries = se_OperatorRequest(input[_O], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Operator.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_NPO] != null) {
        const memberEntries = se_LaunchTemplateNetworkPerformanceOptionsRequest(input[_NPO], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `NetworkPerformanceOptions.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_RequestLaunchTemplateData");
    var se_RequestSpotFleetRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_SFRC] != null) {
        const memberEntries = se_SpotFleetRequestConfigData(input[_SFRC], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SpotFleetRequestConfig.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_RequestSpotFleetRequest");
    var se_RequestSpotInstancesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_LSa] != null) {
        const memberEntries = se_RequestSpotLaunchSpecification(input[_LSa], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `LaunchSpecification.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_IIB] != null) {
        entries[_IIB] = input[_IIB];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_SPp] != null) {
        entries[_SPp] = input[_SPp];
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_IC] != null) {
        entries[_IC] = input[_IC];
      }
      if (input[_T2] != null) {
        entries[_T2] = input[_T2];
      }
      if (input[_VF] != null) {
        entries[_VF] = (0, import_smithy_client28.serializeDateTime)(input[_VF]);
      }
      if (input[_VU] != null) {
        entries[_VU] = (0, import_smithy_client28.serializeDateTime)(input[_VU]);
      }
      if (input[_LG] != null) {
        entries[_LG] = input[_LG];
      }
      if (input[_AZG] != null) {
        entries[_AZG] = input[_AZG];
      }
      if (input[_BDMl] != null) {
        entries[_BDMl] = input[_BDMl];
      }
      return entries;
    }, "se_RequestSpotInstancesRequest");
    var se_RequestSpotLaunchSpecification = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SGI] != null) {
        const memberEntries = se_RequestSpotLaunchSpecificationSecurityGroupIdList(input[_SGI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SecurityGroupId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_SG] != null) {
        const memberEntries = se_RequestSpotLaunchSpecificationSecurityGroupList(input[_SG], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SecurityGroup.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_ATd] != null) {
        entries[_ATd] = input[_ATd];
      }
      if (input[_BDM] != null) {
        const memberEntries = se_BlockDeviceMappingList(input[_BDM], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `BlockDeviceMapping.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_EO] != null) {
        entries[_EO] = input[_EO];
      }
      if (input[_IIP] != null) {
        const memberEntries = se_IamInstanceProfileSpecification(input[_IIP], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `IamInstanceProfile.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_IIma] != null) {
        entries[_IIma] = input[_IIma];
      }
      if (input[_IT] != null) {
        entries[_IT] = input[_IT];
      }
      if (input[_KI] != null) {
        entries[_KI] = input[_KI];
      }
      if (input[_KN] != null) {
        entries[_KN] = input[_KN];
      }
      if (input[_Mon] != null) {
        const memberEntries = se_RunInstancesMonitoringEnabled(input[_Mon], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Monitoring.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_NI] != null) {
        const memberEntries = se_InstanceNetworkInterfaceSpecificationList(input[_NI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `NetworkInterface.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Pl] != null) {
        const memberEntries = se_SpotPlacement(input[_Pl], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Placement.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_RIa] != null) {
        entries[_RIa] = input[_RIa];
      }
      if (input[_SIub] != null) {
        entries[_SIub] = input[_SIub];
      }
      if (input[_UD] != null) {
        entries[_UD] = input[_UD];
      }
      return entries;
    }, "se_RequestSpotLaunchSpecification");
    var se_RequestSpotLaunchSpecificationSecurityGroupIdList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_RequestSpotLaunchSpecificationSecurityGroupIdList");
    var se_RequestSpotLaunchSpecificationSecurityGroupList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_RequestSpotLaunchSpecificationSecurityGroupList");
    var se_ReservationFleetInstanceSpecification = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IT] != null) {
        entries[_IT] = input[_IT];
      }
      if (input[_IPn] != null) {
        entries[_IPn] = input[_IPn];
      }
      if (input[_W] != null) {
        entries[_W] = (0, import_smithy_client28.serializeFloat)(input[_W]);
      }
      if (input[_AZ] != null) {
        entries[_AZ] = input[_AZ];
      }
      if (input[_AZI] != null) {
        entries[_AZI] = input[_AZI];
      }
      if (input[_EO] != null) {
        entries[_EO] = input[_EO];
      }
      if (input[_Pri] != null) {
        entries[_Pri] = input[_Pri];
      }
      return entries;
    }, "se_ReservationFleetInstanceSpecification");
    var se_ReservationFleetInstanceSpecificationList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_ReservationFleetInstanceSpecification(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Member.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_ReservationFleetInstanceSpecificationList");
    var se_ReservedInstanceIdSet = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`ReservedInstanceId.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_ReservedInstanceIdSet");
    var se_ReservedInstanceLimitPrice = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Am] != null) {
        entries[_Am] = (0, import_smithy_client28.serializeFloat)(input[_Am]);
      }
      if (input[_CCu] != null) {
        entries[_CCu] = input[_CCu];
      }
      return entries;
    }, "se_ReservedInstanceLimitPrice");
    var se_ReservedInstancesConfiguration = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_AZ] != null) {
        entries[_AZ] = input[_AZ];
      }
      if (input[_IC] != null) {
        entries[_IC] = input[_IC];
      }
      if (input[_IT] != null) {
        entries[_IT] = input[_IT];
      }
      if (input[_Pla] != null) {
        entries[_Pla] = input[_Pla];
      }
      if (input[_Sc] != null) {
        entries[_Sc] = input[_Sc];
      }
      if (input[_AZI] != null) {
        entries[_AZI] = input[_AZI];
      }
      return entries;
    }, "se_ReservedInstancesConfiguration");
    var se_ReservedInstancesConfigurationList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_ReservedInstancesConfiguration(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Item.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_ReservedInstancesConfigurationList");
    var se_ReservedInstancesIdStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`ReservedInstancesId.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_ReservedInstancesIdStringList");
    var se_ReservedInstancesModificationIdStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`ReservedInstancesModificationId.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_ReservedInstancesModificationIdStringList");
    var se_ReservedInstancesOfferingIdStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_ReservedInstancesOfferingIdStringList");
    var se_ResetAddressAttributeRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_AIl] != null) {
        entries[_AIl] = input[_AIl];
      }
      if (input[_At] != null) {
        entries[_At] = input[_At];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_ResetAddressAttributeRequest");
    var se_ResetEbsDefaultKmsKeyIdRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_ResetEbsDefaultKmsKeyIdRequest");
    var se_ResetFpgaImageAttributeRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_FII] != null) {
        entries[_FII] = input[_FII];
      }
      if (input[_At] != null) {
        entries[_At] = input[_At];
      }
      return entries;
    }, "se_ResetFpgaImageAttributeRequest");
    var se_ResetImageAttributeRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_At] != null) {
        entries[_At] = input[_At];
      }
      if (input[_IIma] != null) {
        entries[_IIma] = input[_IIma];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_ResetImageAttributeRequest");
    var se_ResetInstanceAttributeRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_IIn] != null) {
        entries[_IIn] = input[_IIn];
      }
      if (input[_At] != null) {
        entries[_At] = input[_At];
      }
      return entries;
    }, "se_ResetInstanceAttributeRequest");
    var se_ResetNetworkInterfaceAttributeRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_NII] != null) {
        entries[_NII] = input[_NII];
      }
      if (input[_SDC] != null) {
        entries[_SDC] = input[_SDC];
      }
      return entries;
    }, "se_ResetNetworkInterfaceAttributeRequest");
    var se_ResetSnapshotAttributeRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_At] != null) {
        entries[_At] = input[_At];
      }
      if (input[_SIn] != null) {
        entries[_SIn] = input[_SIn];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_ResetSnapshotAttributeRequest");
    var se_ResourceIdList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_ResourceIdList");
    var se_ResourceList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_ResourceList");
    var se_ResourceStatementRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Re] != null) {
        const memberEntries = se_ValueStringList(input[_Re], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Resource.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_RTe] != null) {
        const memberEntries = se_ValueStringList(input[_RTe], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ResourceType.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_ResourceStatementRequest");
    var se_ResourceTypeOption = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_ON] != null) {
        entries[_ON] = input[_ON];
      }
      if (input[_OV] != null) {
        const memberEntries = se_ResourceTypeOptionValuesList(input[_OV], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `OptionValue.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_ResourceTypeOption");
    var se_ResourceTypeOptionList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_ResourceTypeOption(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Member.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_ResourceTypeOptionList");
    var se_ResourceTypeOptionValuesList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_ResourceTypeOptionValuesList");
    var se_ResourceTypeRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RT] != null) {
        entries[_RT] = input[_RT];
      }
      if (input[_RTO] != null) {
        const memberEntries = se_ResourceTypeOptionList(input[_RTO], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ResourceTypeOption.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_ResourceTypeRequest");
    var se_ResourceTypeRequestList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_ResourceTypeRequest(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Member.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_ResourceTypeRequestList");
    var se_RestorableByStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_RestorableByStringList");
    var se_RestoreAddressToClassicRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_PI2] != null) {
        entries[_PI2] = input[_PI2];
      }
      return entries;
    }, "se_RestoreAddressToClassicRequest");
    var se_RestoreImageFromRecycleBinRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IIma] != null) {
        entries[_IIma] = input[_IIma];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_RestoreImageFromRecycleBinRequest");
    var se_RestoreManagedPrefixListVersionRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_PLI] != null) {
        entries[_PLI] = input[_PLI];
      }
      if (input[_PV] != null) {
        entries[_PV] = input[_PV];
      }
      if (input[_CVu] != null) {
        entries[_CVu] = input[_CVu];
      }
      return entries;
    }, "se_RestoreManagedPrefixListVersionRequest");
    var se_RestoreSnapshotFromRecycleBinRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SIn] != null) {
        entries[_SIn] = input[_SIn];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_RestoreSnapshotFromRecycleBinRequest");
    var se_RestoreSnapshotTierRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SIn] != null) {
        entries[_SIn] = input[_SIn];
      }
      if (input[_TRD] != null) {
        entries[_TRD] = input[_TRD];
      }
      if (input[_PRer] != null) {
        entries[_PRer] = input[_PRer];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_RestoreSnapshotTierRequest");
    var se_RevokeClientVpnIngressRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CVEI] != null) {
        entries[_CVEI] = input[_CVEI];
      }
      if (input[_TNC] != null) {
        entries[_TNC] = input[_TNC];
      }
      if (input[_AGI] != null) {
        entries[_AGI] = input[_AGI];
      }
      if (input[_RAG] != null) {
        entries[_RAG] = input[_RAG];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_RevokeClientVpnIngressRequest");
    var se_RevokeSecurityGroupEgressRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SGRI] != null) {
        const memberEntries = se_SecurityGroupRuleIdList(input[_SGRI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SecurityGroupRuleId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_GIr] != null) {
        entries[_GIr] = input[_GIr];
      }
      if (input[_SSGN] != null) {
        entries[_SSGN] = input[_SSGN];
      }
      if (input[_SSGOI] != null) {
        entries[_SSGOI] = input[_SSGOI];
      }
      if (input[_IPpr] != null) {
        entries[_IPpr] = input[_IPpr];
      }
      if (input[_FP] != null) {
        entries[_FP] = input[_FP];
      }
      if (input[_TP] != null) {
        entries[_TP] = input[_TP];
      }
      if (input[_CIi] != null) {
        entries[_CIi] = input[_CIi];
      }
      if (input[_IPpe] != null) {
        const memberEntries = se_IpPermissionList(input[_IPpe], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `IpPermissions.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_RevokeSecurityGroupEgressRequest");
    var se_RevokeSecurityGroupIngressRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CIi] != null) {
        entries[_CIi] = input[_CIi];
      }
      if (input[_FP] != null) {
        entries[_FP] = input[_FP];
      }
      if (input[_GIr] != null) {
        entries[_GIr] = input[_GIr];
      }
      if (input[_GN] != null) {
        entries[_GN] = input[_GN];
      }
      if (input[_IPpe] != null) {
        const memberEntries = se_IpPermissionList(input[_IPpe], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `IpPermissions.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_IPpr] != null) {
        entries[_IPpr] = input[_IPpr];
      }
      if (input[_SSGN] != null) {
        entries[_SSGN] = input[_SSGN];
      }
      if (input[_SSGOI] != null) {
        entries[_SSGOI] = input[_SSGOI];
      }
      if (input[_TP] != null) {
        entries[_TP] = input[_TP];
      }
      if (input[_SGRI] != null) {
        const memberEntries = se_SecurityGroupRuleIdList(input[_SGRI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SecurityGroupRuleId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_RevokeSecurityGroupIngressRequest");
    var se_RouteServerBgpOptionsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_PAee] != null) {
        entries[_PAee] = input[_PAee];
      }
      if (input[_PLD] != null) {
        entries[_PLD] = input[_PLD];
      }
      return entries;
    }, "se_RouteServerBgpOptionsRequest");
    var se_RouteServerEndpointIdsList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_RouteServerEndpointIdsList");
    var se_RouteServerIdsList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_RouteServerIdsList");
    var se_RouteServerPeerIdsList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_RouteServerPeerIdsList");
    var se_RouteTableIdStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_RouteTableIdStringList");
    var se_RunInstancesMonitoringEnabled = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_En] != null) {
        entries[_En] = input[_En];
      }
      return entries;
    }, "se_RunInstancesMonitoringEnabled");
    var se_RunInstancesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_BDM] != null) {
        const memberEntries = se_BlockDeviceMappingRequestList(input[_BDM], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `BlockDeviceMapping.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_IIma] != null) {
        entries[_IIma] = input[_IIma];
      }
      if (input[_IT] != null) {
        entries[_IT] = input[_IT];
      }
      if (input[_IAC] != null) {
        entries[_IAC] = input[_IAC];
      }
      if (input[_IA] != null) {
        const memberEntries = se_InstanceIpv6AddressList(input[_IA], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Ipv6Address.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_KI] != null) {
        entries[_KI] = input[_KI];
      }
      if (input[_KN] != null) {
        entries[_KN] = input[_KN];
      }
      if (input[_MCa] != null) {
        entries[_MCa] = input[_MCa];
      }
      if (input[_MCi] != null) {
        entries[_MCi] = input[_MCi];
      }
      if (input[_Mon] != null) {
        const memberEntries = se_RunInstancesMonitoringEnabled(input[_Mon], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Monitoring.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_Pl] != null) {
        const memberEntries = se_Placement(input[_Pl], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Placement.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_RIa] != null) {
        entries[_RIa] = input[_RIa];
      }
      if (input[_SGI] != null) {
        const memberEntries = se_SecurityGroupIdStringList(input[_SGI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SecurityGroupId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_SG] != null) {
        const memberEntries = se_SecurityGroupStringList(input[_SG], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SecurityGroup.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_SIub] != null) {
        entries[_SIub] = input[_SIub];
      }
      if (input[_UD] != null) {
        entries[_UD] = input[_UD];
      }
      if (input[_EGSl] != null) {
        const memberEntries = se_ElasticGpuSpecifications(input[_EGSl], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ElasticGpuSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_EIA] != null) {
        const memberEntries = se_ElasticInferenceAccelerators(input[_EIA], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ElasticInferenceAccelerator.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_LTa] != null) {
        const memberEntries = se_LaunchTemplateSpecification(input[_LTa], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `LaunchTemplate.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_IMO] != null) {
        const memberEntries = se_InstanceMarketOptionsRequest(input[_IMO], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `InstanceMarketOptions.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_CSred] != null) {
        const memberEntries = se_CreditSpecificationRequest(input[_CSred], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `CreditSpecification.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_COp] != null) {
        const memberEntries = se_CpuOptionsRequest(input[_COp], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `CpuOptions.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_CRSa] != null) {
        const memberEntries = se_CapacityReservationSpecification(input[_CRSa], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `CapacityReservationSpecification.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_HO] != null) {
        const memberEntries = se_HibernationOptionsRequest(input[_HO], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `HibernationOptions.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_LSi] != null) {
        const memberEntries = se_LicenseSpecificationListRequest(input[_LSi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `LicenseSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MO] != null) {
        const memberEntries = se_InstanceMetadataOptionsRequest(input[_MO], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `MetadataOptions.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_EOn] != null) {
        const memberEntries = se_EnclaveOptionsRequest(input[_EOn], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `EnclaveOptions.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_PDNO] != null) {
        const memberEntries = se_PrivateDnsNameOptionsRequest(input[_PDNO], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `PrivateDnsNameOptions.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_MOa] != null) {
        const memberEntries = se_InstanceMaintenanceOptionsRequest(input[_MOa], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `MaintenanceOptions.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_DASi] != null) {
        entries[_DASi] = input[_DASi];
      }
      if (input[_EPI] != null) {
        entries[_EPI] = input[_EPI];
      }
      if (input[_NPO] != null) {
        const memberEntries = se_InstanceNetworkPerformanceOptionsRequest(input[_NPO], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `NetworkPerformanceOptions.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_O] != null) {
        const memberEntries = se_OperatorRequest(input[_O], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Operator.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_DATis] != null) {
        entries[_DATis] = input[_DATis];
      }
      if (input[_IISB] != null) {
        entries[_IISB] = input[_IISB];
      }
      if (input[_PIAr] != null) {
        entries[_PIAr] = input[_PIAr];
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_AId] != null) {
        entries[_AId] = input[_AId];
      }
      if (input[_NI] != null) {
        const memberEntries = se_InstanceNetworkInterfaceSpecificationList(input[_NI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `NetworkInterface.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_IIP] != null) {
        const memberEntries = se_IamInstanceProfileSpecification(input[_IIP], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `IamInstanceProfile.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_EO] != null) {
        entries[_EO] = input[_EO];
      }
      return entries;
    }, "se_RunInstancesRequest");
    var se_RunScheduledInstancesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_IC] != null) {
        entries[_IC] = input[_IC];
      }
      if (input[_LSa] != null) {
        const memberEntries = se_ScheduledInstancesLaunchSpecification(input[_LSa], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `LaunchSpecification.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_SIIch] != null) {
        entries[_SIIch] = input[_SIIch];
      }
      return entries;
    }, "se_RunScheduledInstancesRequest");
    var se_S3ObjectTag = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Ke] != null) {
        entries[_Ke] = input[_Ke];
      }
      if (input[_Va2] != null) {
        entries[_Va2] = input[_Va2];
      }
      return entries;
    }, "se_S3ObjectTag");
    var se_S3ObjectTagList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_S3ObjectTag(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Item.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_S3ObjectTagList");
    var se_S3Storage = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_AWSAKI] != null) {
        entries[_AWSAKI] = input[_AWSAKI];
      }
      if (input[_B] != null) {
        entries[_B] = input[_B];
      }
      if (input[_Pr2] != null) {
        entries[_Pr2] = input[_Pr2];
      }
      if (input[_UP] != null) {
        entries[_UP] = context.base64Encoder(input[_UP]);
      }
      if (input[_UPS] != null) {
        entries[_UPS] = input[_UPS];
      }
      return entries;
    }, "se_S3Storage");
    var se_ScheduledInstanceIdRequestSet = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`ScheduledInstanceId.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_ScheduledInstanceIdRequestSet");
    var se_ScheduledInstanceRecurrenceRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Fre] != null) {
        entries[_Fre] = input[_Fre];
      }
      if (input[_Int] != null) {
        entries[_Int] = input[_Int];
      }
      if (input[_OD] != null) {
        const memberEntries = se_OccurrenceDayRequestSet(input[_OD], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `OccurrenceDay.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_ORTE] != null) {
        entries[_ORTE] = input[_ORTE];
      }
      if (input[_OU] != null) {
        entries[_OU] = input[_OU];
      }
      return entries;
    }, "se_ScheduledInstanceRecurrenceRequest");
    var se_ScheduledInstancesBlockDeviceMapping = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DN] != null) {
        entries[_DN] = input[_DN];
      }
      if (input[_E2] != null) {
        const memberEntries = se_ScheduledInstancesEbs(input[_E2], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Ebs.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_ND] != null) {
        entries[_ND] = input[_ND];
      }
      if (input[_VN] != null) {
        entries[_VN] = input[_VN];
      }
      return entries;
    }, "se_ScheduledInstancesBlockDeviceMapping");
    var se_ScheduledInstancesBlockDeviceMappingSet = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_ScheduledInstancesBlockDeviceMapping(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`BlockDeviceMapping.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_ScheduledInstancesBlockDeviceMappingSet");
    var se_ScheduledInstancesEbs = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DOT] != null) {
        entries[_DOT] = input[_DOT];
      }
      if (input[_Enc] != null) {
        entries[_Enc] = input[_Enc];
      }
      if (input[_Io] != null) {
        entries[_Io] = input[_Io];
      }
      if (input[_SIn] != null) {
        entries[_SIn] = input[_SIn];
      }
      if (input[_VS] != null) {
        entries[_VS] = input[_VS];
      }
      if (input[_VT] != null) {
        entries[_VT] = input[_VT];
      }
      return entries;
    }, "se_ScheduledInstancesEbs");
    var se_ScheduledInstancesIamInstanceProfile = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Ar2] != null) {
        entries[_Ar2] = input[_Ar2];
      }
      if (input[_N] != null) {
        entries[_N] = input[_N];
      }
      return entries;
    }, "se_ScheduledInstancesIamInstanceProfile");
    var se_ScheduledInstancesIpv6Address = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IApv] != null) {
        entries[_IApv] = input[_IApv];
      }
      return entries;
    }, "se_ScheduledInstancesIpv6Address");
    var se_ScheduledInstancesIpv6AddressList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_ScheduledInstancesIpv6Address(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Ipv6Address.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_ScheduledInstancesIpv6AddressList");
    var se_ScheduledInstancesLaunchSpecification = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_BDM] != null) {
        const memberEntries = se_ScheduledInstancesBlockDeviceMappingSet(input[_BDM], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `BlockDeviceMapping.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_EO] != null) {
        entries[_EO] = input[_EO];
      }
      if (input[_IIP] != null) {
        const memberEntries = se_ScheduledInstancesIamInstanceProfile(input[_IIP], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `IamInstanceProfile.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_IIma] != null) {
        entries[_IIma] = input[_IIma];
      }
      if (input[_IT] != null) {
        entries[_IT] = input[_IT];
      }
      if (input[_KI] != null) {
        entries[_KI] = input[_KI];
      }
      if (input[_KN] != null) {
        entries[_KN] = input[_KN];
      }
      if (input[_Mon] != null) {
        const memberEntries = se_ScheduledInstancesMonitoring(input[_Mon], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Monitoring.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_NI] != null) {
        const memberEntries = se_ScheduledInstancesNetworkInterfaceSet(input[_NI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `NetworkInterface.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Pl] != null) {
        const memberEntries = se_ScheduledInstancesPlacement(input[_Pl], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Placement.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_RIa] != null) {
        entries[_RIa] = input[_RIa];
      }
      if (input[_SGI] != null) {
        const memberEntries = se_ScheduledInstancesSecurityGroupIdSet(input[_SGI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SecurityGroupId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_SIub] != null) {
        entries[_SIub] = input[_SIub];
      }
      if (input[_UD] != null) {
        entries[_UD] = input[_UD];
      }
      return entries;
    }, "se_ScheduledInstancesLaunchSpecification");
    var se_ScheduledInstancesMonitoring = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_En] != null) {
        entries[_En] = input[_En];
      }
      return entries;
    }, "se_ScheduledInstancesMonitoring");
    var se_ScheduledInstancesNetworkInterface = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_APIAs] != null) {
        entries[_APIAs] = input[_APIAs];
      }
      if (input[_DOT] != null) {
        entries[_DOT] = input[_DOT];
      }
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      if (input[_DIev] != null) {
        entries[_DIev] = input[_DIev];
      }
      if (input[_G] != null) {
        const memberEntries = se_ScheduledInstancesSecurityGroupIdSet(input[_G], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Group.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_IAC] != null) {
        entries[_IAC] = input[_IAC];
      }
      if (input[_IA] != null) {
        const memberEntries = se_ScheduledInstancesIpv6AddressList(input[_IA], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Ipv6Address.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_NII] != null) {
        entries[_NII] = input[_NII];
      }
      if (input[_PIAr] != null) {
        entries[_PIAr] = input[_PIAr];
      }
      if (input[_PIACr] != null) {
        const memberEntries = se_PrivateIpAddressConfigSet(input[_PIACr], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `PrivateIpAddressConfig.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_SPIAC] != null) {
        entries[_SPIAC] = input[_SPIAC];
      }
      if (input[_SIub] != null) {
        entries[_SIub] = input[_SIub];
      }
      return entries;
    }, "se_ScheduledInstancesNetworkInterface");
    var se_ScheduledInstancesNetworkInterfaceSet = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_ScheduledInstancesNetworkInterface(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`NetworkInterface.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_ScheduledInstancesNetworkInterfaceSet");
    var se_ScheduledInstancesPlacement = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_AZ] != null) {
        entries[_AZ] = input[_AZ];
      }
      if (input[_GN] != null) {
        entries[_GN] = input[_GN];
      }
      return entries;
    }, "se_ScheduledInstancesPlacement");
    var se_ScheduledInstancesPrivateIpAddressConfig = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Prim] != null) {
        entries[_Prim] = input[_Prim];
      }
      if (input[_PIAr] != null) {
        entries[_PIAr] = input[_PIAr];
      }
      return entries;
    }, "se_ScheduledInstancesPrivateIpAddressConfig");
    var se_ScheduledInstancesSecurityGroupIdSet = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`SecurityGroupId.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_ScheduledInstancesSecurityGroupIdSet");
    var se_SearchLocalGatewayRoutesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_LGRTI] != null) {
        entries[_LGRTI] = input[_LGRTI];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_SearchLocalGatewayRoutesRequest");
    var se_SearchTransitGatewayMulticastGroupsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGMDI] != null) {
        entries[_TGMDI] = input[_TGMDI];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_NT] != null) {
        entries[_NT] = input[_NT];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_SearchTransitGatewayMulticastGroupsRequest");
    var se_SearchTransitGatewayRoutesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGRTI] != null) {
        entries[_TGRTI] = input[_TGRTI];
      }
      if (input[_Fi] != null) {
        const memberEntries = se_FilterList(input[_Fi], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MR] != null) {
        entries[_MR] = input[_MR];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_SearchTransitGatewayRoutesRequest");
    var se_SecurityGroupIdList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_SecurityGroupIdList");
    var se_SecurityGroupIdStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`SecurityGroupId.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_SecurityGroupIdStringList");
    var se_SecurityGroupIdStringListRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`SecurityGroupId.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_SecurityGroupIdStringListRequest");
    var se_SecurityGroupRuleDescription = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SGRIe] != null) {
        entries[_SGRIe] = input[_SGRIe];
      }
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      return entries;
    }, "se_SecurityGroupRuleDescription");
    var se_SecurityGroupRuleDescriptionList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_SecurityGroupRuleDescription(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Item.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_SecurityGroupRuleDescriptionList");
    var se_SecurityGroupRuleIdList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_SecurityGroupRuleIdList");
    var se_SecurityGroupRuleRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IPpr] != null) {
        entries[_IPpr] = input[_IPpr];
      }
      if (input[_FP] != null) {
        entries[_FP] = input[_FP];
      }
      if (input[_TP] != null) {
        entries[_TP] = input[_TP];
      }
      if (input[_CIidr] != null) {
        entries[_CIidr] = input[_CIidr];
      }
      if (input[_CIid] != null) {
        entries[_CIid] = input[_CIid];
      }
      if (input[_PLI] != null) {
        entries[_PLI] = input[_PLI];
      }
      if (input[_RGI] != null) {
        entries[_RGI] = input[_RGI];
      }
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      return entries;
    }, "se_SecurityGroupRuleRequest");
    var se_SecurityGroupRuleUpdate = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SGRIe] != null) {
        entries[_SGRIe] = input[_SGRIe];
      }
      if (input[_SGRe] != null) {
        const memberEntries = se_SecurityGroupRuleRequest(input[_SGRe], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SecurityGroupRule.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_SecurityGroupRuleUpdate");
    var se_SecurityGroupRuleUpdateList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_SecurityGroupRuleUpdate(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Item.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_SecurityGroupRuleUpdateList");
    var se_SecurityGroupStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`SecurityGroup.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_SecurityGroupStringList");
    var se_SendDiagnosticInterruptRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IIn] != null) {
        entries[_IIn] = input[_IIn];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_SendDiagnosticInterruptRequest");
    var se_ServiceLinkVirtualInterfaceIdSet = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_ServiceLinkVirtualInterfaceIdSet");
    var se_SlotDateTimeRangeRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_ETa] != null) {
        entries[_ETa] = (0, import_smithy_client28.serializeDateTime)(input[_ETa]);
      }
      if (input[_LTat] != null) {
        entries[_LTat] = (0, import_smithy_client28.serializeDateTime)(input[_LTat]);
      }
      return entries;
    }, "se_SlotDateTimeRangeRequest");
    var se_SlotStartTimeRangeRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_ETa] != null) {
        entries[_ETa] = (0, import_smithy_client28.serializeDateTime)(input[_ETa]);
      }
      if (input[_LTat] != null) {
        entries[_LTat] = (0, import_smithy_client28.serializeDateTime)(input[_LTat]);
      }
      return entries;
    }, "se_SlotStartTimeRangeRequest");
    var se_SnapshotDiskContainer = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      if (input[_Fo] != null) {
        entries[_Fo] = input[_Fo];
      }
      if (input[_U] != null) {
        entries[_U] = input[_U];
      }
      if (input[_UB] != null) {
        const memberEntries = se_UserBucket(input[_UB], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `UserBucket.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_SnapshotDiskContainer");
    var se_SnapshotIdStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`SnapshotId.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_SnapshotIdStringList");
    var se_SpotCapacityRebalance = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RS] != null) {
        entries[_RS] = input[_RS];
      }
      if (input[_TDe] != null) {
        entries[_TDe] = input[_TDe];
      }
      return entries;
    }, "se_SpotCapacityRebalance");
    var se_SpotFleetLaunchSpecification = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_ATd] != null) {
        entries[_ATd] = input[_ATd];
      }
      if (input[_BDM] != null) {
        const memberEntries = se_BlockDeviceMappingList(input[_BDM], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `BlockDeviceMapping.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_EO] != null) {
        entries[_EO] = input[_EO];
      }
      if (input[_IIP] != null) {
        const memberEntries = se_IamInstanceProfileSpecification(input[_IIP], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `IamInstanceProfile.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_IIma] != null) {
        entries[_IIma] = input[_IIma];
      }
      if (input[_IT] != null) {
        entries[_IT] = input[_IT];
      }
      if (input[_KI] != null) {
        entries[_KI] = input[_KI];
      }
      if (input[_KN] != null) {
        entries[_KN] = input[_KN];
      }
      if (input[_Mon] != null) {
        const memberEntries = se_SpotFleetMonitoring(input[_Mon], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Monitoring.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_NI] != null) {
        const memberEntries = se_InstanceNetworkInterfaceSpecificationList(input[_NI], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `NetworkInterfaceSet.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Pl] != null) {
        const memberEntries = se_SpotPlacement(input[_Pl], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Placement.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_RIa] != null) {
        entries[_RIa] = input[_RIa];
      }
      if (input[_SPp] != null) {
        entries[_SPp] = input[_SPp];
      }
      if (input[_SIub] != null) {
        entries[_SIub] = input[_SIub];
      }
      if (input[_UD] != null) {
        entries[_UD] = input[_UD];
      }
      if (input[_WCe] != null) {
        entries[_WCe] = (0, import_smithy_client28.serializeFloat)(input[_WCe]);
      }
      if (input[_TS] != null) {
        const memberEntries = se_SpotFleetTagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecificationSet.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_IR] != null) {
        const memberEntries = se_InstanceRequirements(input[_IR], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `InstanceRequirements.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_SG] != null) {
        const memberEntries = se_GroupIdentifierList(input[_SG], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `GroupSet.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_SpotFleetLaunchSpecification");
    var se_SpotFleetMonitoring = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_En] != null) {
        entries[_En] = input[_En];
      }
      return entries;
    }, "se_SpotFleetMonitoring");
    var se_SpotFleetRequestConfigData = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_AS] != null) {
        entries[_AS] = input[_AS];
      }
      if (input[_ODAS] != null) {
        entries[_ODAS] = input[_ODAS];
      }
      if (input[_SMS] != null) {
        const memberEntries = se_SpotMaintenanceStrategies(input[_SMS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SpotMaintenanceStrategies.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      if (input[_ECTP] != null) {
        entries[_ECTP] = input[_ECTP];
      }
      if (input[_FC] != null) {
        entries[_FC] = (0, import_smithy_client28.serializeFloat)(input[_FC]);
      }
      if (input[_ODFC] != null) {
        entries[_ODFC] = (0, import_smithy_client28.serializeFloat)(input[_ODFC]);
      }
      if (input[_IFR] != null) {
        entries[_IFR] = input[_IFR];
      }
      if (input[_LSau] != null) {
        const memberEntries = se_LaunchSpecsList(input[_LSau], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `LaunchSpecifications.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_LTC] != null) {
        const memberEntries = se_LaunchTemplateConfigList(input[_LTC], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `LaunchTemplateConfigs.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_SPp] != null) {
        entries[_SPp] = input[_SPp];
      }
      if (input[_TCa] != null) {
        entries[_TCa] = input[_TCa];
      }
      if (input[_ODTC] != null) {
        entries[_ODTC] = input[_ODTC];
      }
      if (input[_ODMTP] != null) {
        entries[_ODMTP] = input[_ODMTP];
      }
      if (input[_SMTP] != null) {
        entries[_SMTP] = input[_SMTP];
      }
      if (input[_TIWE] != null) {
        entries[_TIWE] = input[_TIWE];
      }
      if (input[_T2] != null) {
        entries[_T2] = input[_T2];
      }
      if (input[_VF] != null) {
        entries[_VF] = (0, import_smithy_client28.serializeDateTime)(input[_VF]);
      }
      if (input[_VU] != null) {
        entries[_VU] = (0, import_smithy_client28.serializeDateTime)(input[_VU]);
      }
      if (input[_RUI] != null) {
        entries[_RUI] = input[_RUI];
      }
      if (input[_IIB] != null) {
        entries[_IIB] = input[_IIB];
      }
      if (input[_LBC] != null) {
        const memberEntries = se_LoadBalancersConfig(input[_LBC], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `LoadBalancersConfig.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_IPTUC] != null) {
        entries[_IPTUC] = input[_IPTUC];
      }
      if (input[_Con] != null) {
        entries[_Con] = input[_Con];
      }
      if (input[_TCUT] != null) {
        entries[_TCUT] = input[_TCUT];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_SpotFleetRequestConfigData");
    var se_SpotFleetRequestIdList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_SpotFleetRequestIdList");
    var se_SpotFleetTagSpecification = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RT] != null) {
        entries[_RT] = input[_RT];
      }
      if (input[_Ta] != null) {
        const memberEntries = se_TagList(input[_Ta], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Tag.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_SpotFleetTagSpecification");
    var se_SpotFleetTagSpecificationList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_SpotFleetTagSpecification(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Item.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_SpotFleetTagSpecificationList");
    var se_SpotInstanceRequestIdList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`SpotInstanceRequestId.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_SpotInstanceRequestIdList");
    var se_SpotMaintenanceStrategies = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CRap] != null) {
        const memberEntries = se_SpotCapacityRebalance(input[_CRap], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `CapacityRebalance.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_SpotMaintenanceStrategies");
    var se_SpotMarketOptions = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_MPa] != null) {
        entries[_MPa] = input[_MPa];
      }
      if (input[_SIT] != null) {
        entries[_SIT] = input[_SIT];
      }
      if (input[_BDMl] != null) {
        entries[_BDMl] = input[_BDMl];
      }
      if (input[_VU] != null) {
        entries[_VU] = (0, import_smithy_client28.serializeDateTime)(input[_VU]);
      }
      if (input[_IIB] != null) {
        entries[_IIB] = input[_IIB];
      }
      return entries;
    }, "se_SpotMarketOptions");
    var se_SpotOptionsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_AS] != null) {
        entries[_AS] = input[_AS];
      }
      if (input[_MS] != null) {
        const memberEntries = se_FleetSpotMaintenanceStrategiesRequest(input[_MS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `MaintenanceStrategies.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_IIB] != null) {
        entries[_IIB] = input[_IIB];
      }
      if (input[_IPTUC] != null) {
        entries[_IPTUC] = input[_IPTUC];
      }
      if (input[_SITi] != null) {
        entries[_SITi] = input[_SITi];
      }
      if (input[_SAZ] != null) {
        entries[_SAZ] = input[_SAZ];
      }
      if (input[_MTC] != null) {
        entries[_MTC] = input[_MTC];
      }
      if (input[_MTP] != null) {
        entries[_MTP] = input[_MTP];
      }
      return entries;
    }, "se_SpotOptionsRequest");
    var se_SpotPlacement = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_AZ] != null) {
        entries[_AZ] = input[_AZ];
      }
      if (input[_GN] != null) {
        entries[_GN] = input[_GN];
      }
      if (input[_Te] != null) {
        entries[_Te] = input[_Te];
      }
      return entries;
    }, "se_SpotPlacement");
    var se_StartDeclarativePoliciesReportRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_SB] != null) {
        entries[_SB] = input[_SB];
      }
      if (input[_SP] != null) {
        entries[_SP] = input[_SP];
      }
      if (input[_TIa] != null) {
        entries[_TIa] = input[_TIa];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_StartDeclarativePoliciesReportRequest");
    var se_StartInstancesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IIns] != null) {
        const memberEntries = se_InstanceIdStringList(input[_IIns], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `InstanceId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_AId] != null) {
        entries[_AId] = input[_AId];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_StartInstancesRequest");
    var se_StartNetworkInsightsAccessScopeAnalysisRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_NIASI] != null) {
        entries[_NIASI] = input[_NIASI];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      return entries;
    }, "se_StartNetworkInsightsAccessScopeAnalysisRequest");
    var se_StartNetworkInsightsAnalysisRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_NIPI] != null) {
        entries[_NIPI] = input[_NIPI];
      }
      if (input[_AAd] != null) {
        const memberEntries = se_ValueStringList(input[_AAd], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AdditionalAccount.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_FIA] != null) {
        const memberEntries = se_ArnList(input[_FIA], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `FilterInArn.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_FOA] != null) {
        const memberEntries = se_ArnList(input[_FOA], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `FilterOutArn.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_TS] != null) {
        const memberEntries = se_TagSpecificationList(input[_TS], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_CTl] === void 0) {
        input[_CTl] = (0, import_uuid2.v4)();
      }
      if (input[_CTl] != null) {
        entries[_CTl] = input[_CTl];
      }
      return entries;
    }, "se_StartNetworkInsightsAnalysisRequest");
    var se_StartVpcEndpointServicePrivateDnsVerificationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_SIe] != null) {
        entries[_SIe] = input[_SIe];
      }
      return entries;
    }, "se_StartVpcEndpointServicePrivateDnsVerificationRequest");
    var se_StopInstancesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IIns] != null) {
        const memberEntries = se_InstanceIdStringList(input[_IIns], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `InstanceId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_Hi] != null) {
        entries[_Hi] = input[_Hi];
      }
      if (input[_SOS] != null) {
        entries[_SOS] = input[_SOS];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_F] != null) {
        entries[_F] = input[_F];
      }
      return entries;
    }, "se_StopInstancesRequest");
    var se_Storage = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_S_] != null) {
        const memberEntries = se_S3Storage(input[_S_], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `S3.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_Storage");
    var se_StorageLocation = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_B] != null) {
        entries[_B] = input[_B];
      }
      if (input[_Ke] != null) {
        entries[_Ke] = input[_Ke];
      }
      return entries;
    }, "se_StorageLocation");
    var se_SubnetConfiguration = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SIub] != null) {
        entries[_SIub] = input[_SIub];
      }
      if (input[_Ip] != null) {
        entries[_Ip] = input[_Ip];
      }
      if (input[_Ipv] != null) {
        entries[_Ipv] = input[_Ipv];
      }
      return entries;
    }, "se_SubnetConfiguration");
    var se_SubnetConfigurationsList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_SubnetConfiguration(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Item.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_SubnetConfigurationsList");
    var se_SubnetIdList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`AssociatedSubnetId.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_SubnetIdList");
    var se_SubnetIdStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`SubnetId.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_SubnetIdStringList");
    var se_Tag2 = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Ke] != null) {
        entries[_Ke] = input[_Ke];
      }
      if (input[_Va2] != null) {
        entries[_Va2] = input[_Va2];
      }
      return entries;
    }, "se_Tag");
    var se_TagList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_Tag2(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Item.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_TagList");
    var se_TagSpecification = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RT] != null) {
        entries[_RT] = input[_RT];
      }
      if (input[_Ta] != null) {
        const memberEntries = se_TagList(input[_Ta], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Tag.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_TagSpecification");
    var se_TagSpecificationList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_TagSpecification(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Item.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_TagSpecificationList");
    var se_TargetCapacitySpecificationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TTC] != null) {
        entries[_TTC] = input[_TTC];
      }
      if (input[_ODTC] != null) {
        entries[_ODTC] = input[_ODTC];
      }
      if (input[_STC] != null) {
        entries[_STC] = input[_STC];
      }
      if (input[_DTCT] != null) {
        entries[_DTCT] = input[_DTCT];
      }
      if (input[_TCUT] != null) {
        entries[_TCUT] = input[_TCUT];
      }
      return entries;
    }, "se_TargetCapacitySpecificationRequest");
    var se_TargetConfigurationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IC] != null) {
        entries[_IC] = input[_IC];
      }
      if (input[_OI] != null) {
        entries[_OI] = input[_OI];
      }
      return entries;
    }, "se_TargetConfigurationRequest");
    var se_TargetConfigurationRequestSet = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_TargetConfigurationRequest(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`TargetConfigurationRequest.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_TargetConfigurationRequestSet");
    var se_TargetGroup = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Ar2] != null) {
        entries[_Ar2] = input[_Ar2];
      }
      return entries;
    }, "se_TargetGroup");
    var se_TargetGroups = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_TargetGroup(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Item.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_TargetGroups");
    var se_TargetGroupsConfig = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TG] != null) {
        const memberEntries = se_TargetGroups(input[_TG], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TargetGroups.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_TargetGroupsConfig");
    var se_TerminateClientVpnConnectionsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CVEI] != null) {
        entries[_CVEI] = input[_CVEI];
      }
      if (input[_CIo] != null) {
        entries[_CIo] = input[_CIo];
      }
      if (input[_Us] != null) {
        entries[_Us] = input[_Us];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_TerminateClientVpnConnectionsRequest");
    var se_TerminateInstancesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IIns] != null) {
        const memberEntries = se_InstanceIdStringList(input[_IIns], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `InstanceId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_F] != null) {
        entries[_F] = input[_F];
      }
      if (input[_SOS] != null) {
        entries[_SOS] = input[_SOS];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_TerminateInstancesRequest");
    var se_ThroughResourcesStatementRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RSe] != null) {
        const memberEntries = se_ResourceStatementRequest(input[_RSe], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ResourceStatement.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_ThroughResourcesStatementRequest");
    var se_ThroughResourcesStatementRequestList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_ThroughResourcesStatementRequest(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Item.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_ThroughResourcesStatementRequestList");
    var se_TotalLocalStorageGB = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_M] != null) {
        entries[_M] = (0, import_smithy_client28.serializeFloat)(input[_M]);
      }
      if (input[_Ma] != null) {
        entries[_Ma] = (0, import_smithy_client28.serializeFloat)(input[_Ma]);
      }
      return entries;
    }, "se_TotalLocalStorageGB");
    var se_TotalLocalStorageGBRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_M] != null) {
        entries[_M] = (0, import_smithy_client28.serializeFloat)(input[_M]);
      }
      if (input[_Ma] != null) {
        entries[_Ma] = (0, import_smithy_client28.serializeFloat)(input[_Ma]);
      }
      return entries;
    }, "se_TotalLocalStorageGBRequest");
    var se_TrafficMirrorFilterIdList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_TrafficMirrorFilterIdList");
    var se_TrafficMirrorFilterRuleFieldList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_TrafficMirrorFilterRuleFieldList");
    var se_TrafficMirrorFilterRuleIdList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_TrafficMirrorFilterRuleIdList");
    var se_TrafficMirrorNetworkServiceList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_TrafficMirrorNetworkServiceList");
    var se_TrafficMirrorPortRangeRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_FP] != null) {
        entries[_FP] = input[_FP];
      }
      if (input[_TP] != null) {
        entries[_TP] = input[_TP];
      }
      return entries;
    }, "se_TrafficMirrorPortRangeRequest");
    var se_TrafficMirrorSessionFieldList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_TrafficMirrorSessionFieldList");
    var se_TrafficMirrorSessionIdList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_TrafficMirrorSessionIdList");
    var se_TrafficMirrorTargetIdList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_TrafficMirrorTargetIdList");
    var se_TransitGatewayAttachmentIdStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_TransitGatewayAttachmentIdStringList");
    var se_TransitGatewayCidrBlockStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_TransitGatewayCidrBlockStringList");
    var se_TransitGatewayConnectPeerIdStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_TransitGatewayConnectPeerIdStringList");
    var se_TransitGatewayConnectRequestBgpOptions = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_PAee] != null) {
        entries[_PAee] = input[_PAee];
      }
      return entries;
    }, "se_TransitGatewayConnectRequestBgpOptions");
    var se_TransitGatewayIdStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_TransitGatewayIdStringList");
    var se_TransitGatewayMulticastDomainIdStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_TransitGatewayMulticastDomainIdStringList");
    var se_TransitGatewayNetworkInterfaceIdList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_TransitGatewayNetworkInterfaceIdList");
    var se_TransitGatewayPolicyTableIdStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_TransitGatewayPolicyTableIdStringList");
    var se_TransitGatewayRequestOptions = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_ASA] != null) {
        entries[_ASA] = input[_ASA];
      }
      if (input[_AASAu] != null) {
        entries[_AASAu] = input[_AASAu];
      }
      if (input[_DRTA] != null) {
        entries[_DRTA] = input[_DRTA];
      }
      if (input[_DRTP] != null) {
        entries[_DRTP] = input[_DRTP];
      }
      if (input[_VES] != null) {
        entries[_VES] = input[_VES];
      }
      if (input[_DSns] != null) {
        entries[_DSns] = input[_DSns];
      }
      if (input[_SGRS] != null) {
        entries[_SGRS] = input[_SGRS];
      }
      if (input[_MSu] != null) {
        entries[_MSu] = input[_MSu];
      }
      if (input[_TGCB] != null) {
        const memberEntries = se_TransitGatewayCidrBlockStringList(input[_TGCB], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TransitGatewayCidrBlocks.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_TransitGatewayRequestOptions");
    var se_TransitGatewayRouteTableAnnouncementIdStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_TransitGatewayRouteTableAnnouncementIdStringList");
    var se_TransitGatewayRouteTableIdStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_TransitGatewayRouteTableIdStringList");
    var se_TransitGatewaySubnetIdList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_TransitGatewaySubnetIdList");
    var se_TrunkInterfaceAssociationIdList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_TrunkInterfaceAssociationIdList");
    var se_UnassignIpv6AddressesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IP] != null) {
        const memberEntries = se_IpPrefixList(input[_IP], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Ipv6Prefix.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_NII] != null) {
        entries[_NII] = input[_NII];
      }
      if (input[_IA] != null) {
        const memberEntries = se_Ipv6AddressList(input[_IA], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Ipv6Addresses.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_UnassignIpv6AddressesRequest");
    var se_UnassignPrivateIpAddressesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IPp] != null) {
        const memberEntries = se_IpPrefixList(input[_IPp], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Ipv4Prefix.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_NII] != null) {
        entries[_NII] = input[_NII];
      }
      if (input[_PIA] != null) {
        const memberEntries = se_PrivateIpAddressStringList(input[_PIA], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `PrivateIpAddress.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_UnassignPrivateIpAddressesRequest");
    var se_UnassignPrivateNatGatewayAddressRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_NGI] != null) {
        entries[_NGI] = input[_NGI];
      }
      if (input[_PIA] != null) {
        const memberEntries = se_IpList(input[_PIA], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `PrivateIpAddress.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_MDDS] != null) {
        entries[_MDDS] = input[_MDDS];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_UnassignPrivateNatGatewayAddressRequest");
    var se_UnlockSnapshotRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SIn] != null) {
        entries[_SIn] = input[_SIn];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_UnlockSnapshotRequest");
    var se_UnmonitorInstancesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IIns] != null) {
        const memberEntries = se_InstanceIdStringList(input[_IIns], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `InstanceId.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_UnmonitorInstancesRequest");
    var se_UpdateSecurityGroupRuleDescriptionsEgressRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_GIr] != null) {
        entries[_GIr] = input[_GIr];
      }
      if (input[_GN] != null) {
        entries[_GN] = input[_GN];
      }
      if (input[_IPpe] != null) {
        const memberEntries = se_IpPermissionList(input[_IPpe], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `IpPermissions.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_SGRD] != null) {
        const memberEntries = se_SecurityGroupRuleDescriptionList(input[_SGRD], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SecurityGroupRuleDescription.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_UpdateSecurityGroupRuleDescriptionsEgressRequest");
    var se_UpdateSecurityGroupRuleDescriptionsIngressRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      if (input[_GIr] != null) {
        entries[_GIr] = input[_GIr];
      }
      if (input[_GN] != null) {
        entries[_GN] = input[_GN];
      }
      if (input[_IPpe] != null) {
        const memberEntries = se_IpPermissionList(input[_IPpe], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `IpPermissions.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_SGRD] != null) {
        const memberEntries = se_SecurityGroupRuleDescriptionList(input[_SGRD], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SecurityGroupRuleDescription.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_UpdateSecurityGroupRuleDescriptionsIngressRequest");
    var se_UserBucket = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SB] != null) {
        entries[_SB] = input[_SB];
      }
      if (input[_SK] != null) {
        entries[_SK] = input[_SK];
      }
      return entries;
    }, "se_UserBucket");
    var se_UserData = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Da] != null) {
        entries[_Da] = input[_Da];
      }
      return entries;
    }, "se_UserData");
    var se_UserGroupStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`UserGroup.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_UserGroupStringList");
    var se_UserIdGroupPair = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_De] != null) {
        entries[_De] = input[_De];
      }
      if (input[_UIs] != null) {
        entries[_UIs] = input[_UIs];
      }
      if (input[_GN] != null) {
        entries[_GN] = input[_GN];
      }
      if (input[_GIr] != null) {
        entries[_GIr] = input[_GIr];
      }
      if (input[_VI] != null) {
        entries[_VI] = input[_VI];
      }
      if (input[_VPCI] != null) {
        entries[_VPCI] = input[_VPCI];
      }
      if (input[_PSe] != null) {
        entries[_PSe] = input[_PSe];
      }
      return entries;
    }, "se_UserIdGroupPair");
    var se_UserIdGroupPairList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_UserIdGroupPair(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Item.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_UserIdGroupPairList");
    var se_UserIdStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`UserId.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_UserIdStringList");
    var se_ValueStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_ValueStringList");
    var se_VCpuCountRange = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_M] != null) {
        entries[_M] = input[_M];
      }
      if (input[_Ma] != null) {
        entries[_Ma] = input[_Ma];
      }
      return entries;
    }, "se_VCpuCountRange");
    var se_VCpuCountRangeRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_M] != null) {
        entries[_M] = input[_M];
      }
      if (input[_Ma] != null) {
        entries[_Ma] = input[_Ma];
      }
      return entries;
    }, "se_VCpuCountRangeRequest");
    var se_VerifiedAccessEndpointIdList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_VerifiedAccessEndpointIdList");
    var se_VerifiedAccessGroupIdList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_VerifiedAccessGroupIdList");
    var se_VerifiedAccessInstanceIdList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_VerifiedAccessInstanceIdList");
    var se_VerifiedAccessLogCloudWatchLogsDestinationOptions = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_En] != null) {
        entries[_En] = input[_En];
      }
      if (input[_LGo] != null) {
        entries[_LGo] = input[_LGo];
      }
      return entries;
    }, "se_VerifiedAccessLogCloudWatchLogsDestinationOptions");
    var se_VerifiedAccessLogKinesisDataFirehoseDestinationOptions = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_En] != null) {
        entries[_En] = input[_En];
      }
      if (input[_DSel] != null) {
        entries[_DSel] = input[_DSel];
      }
      return entries;
    }, "se_VerifiedAccessLogKinesisDataFirehoseDestinationOptions");
    var se_VerifiedAccessLogOptions = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_S_] != null) {
        const memberEntries = se_VerifiedAccessLogS3DestinationOptions(input[_S_], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `S3.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_CWL] != null) {
        const memberEntries = se_VerifiedAccessLogCloudWatchLogsDestinationOptions(input[_CWL], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `CloudWatchLogs.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_KDF] != null) {
        const memberEntries = se_VerifiedAccessLogKinesisDataFirehoseDestinationOptions(input[_KDF], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `KinesisDataFirehose.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_LV] != null) {
        entries[_LV] = input[_LV];
      }
      if (input[_ITCn] != null) {
        entries[_ITCn] = input[_ITCn];
      }
      return entries;
    }, "se_VerifiedAccessLogOptions");
    var se_VerifiedAccessLogS3DestinationOptions = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_En] != null) {
        entries[_En] = input[_En];
      }
      if (input[_BN] != null) {
        entries[_BN] = input[_BN];
      }
      if (input[_Pr2] != null) {
        entries[_Pr2] = input[_Pr2];
      }
      if (input[_BOu] != null) {
        entries[_BOu] = input[_BOu];
      }
      return entries;
    }, "se_VerifiedAccessLogS3DestinationOptions");
    var se_VerifiedAccessSseSpecificationRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CMKE] != null) {
        entries[_CMKE] = input[_CMKE];
      }
      if (input[_KKA] != null) {
        entries[_KKA] = input[_KKA];
      }
      return entries;
    }, "se_VerifiedAccessSseSpecificationRequest");
    var se_VerifiedAccessTrustProviderIdList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_VerifiedAccessTrustProviderIdList");
    var se_VersionStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_VersionStringList");
    var se_VirtualizationTypeSet = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_VirtualizationTypeSet");
    var se_VolumeDetail = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Siz] != null) {
        entries[_Siz] = input[_Siz];
      }
      return entries;
    }, "se_VolumeDetail");
    var se_VolumeIdStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`VolumeId.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_VolumeIdStringList");
    var se_VpcBlockPublicAccessExclusionIdList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_VpcBlockPublicAccessExclusionIdList");
    var se_VpcClassicLinkIdList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`VpcId.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_VpcClassicLinkIdList");
    var se_VpcEndpointIdList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_VpcEndpointIdList");
    var se_VpcEndpointRouteTableIdList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_VpcEndpointRouteTableIdList");
    var se_VpcEndpointSecurityGroupIdList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_VpcEndpointSecurityGroupIdList");
    var se_VpcEndpointServiceIdList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_VpcEndpointServiceIdList");
    var se_VpcEndpointSubnetIdList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_VpcEndpointSubnetIdList");
    var se_VpcIdStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`VpcId.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_VpcIdStringList");
    var se_VpcPeeringConnectionIdList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`Item.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_VpcPeeringConnectionIdList");
    var se_VpnConnectionIdStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`VpnConnectionId.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_VpnConnectionIdStringList");
    var se_VpnConnectionOptionsSpecification = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_EA] != null) {
        entries[_EA] = input[_EA];
      }
      if (input[_TIIV] != null) {
        entries[_TIIV] = input[_TIIV];
      }
      if (input[_TO] != null) {
        const memberEntries = se_VpnTunnelOptionsSpecificationsList(input[_TO], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TunnelOptions.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_LINC] != null) {
        entries[_LINC] = input[_LINC];
      }
      if (input[_RINC] != null) {
        entries[_RINC] = input[_RINC];
      }
      if (input[_LINCo] != null) {
        entries[_LINCo] = input[_LINCo];
      }
      if (input[_RINCe] != null) {
        entries[_RINCe] = input[_RINCe];
      }
      if (input[_OIAT] != null) {
        entries[_OIAT] = input[_OIAT];
      }
      if (input[_TTGAI] != null) {
        entries[_TTGAI] = input[_TTGAI];
      }
      if (input[_SRO] != null) {
        entries[_SRO] = input[_SRO];
      }
      return entries;
    }, "se_VpnConnectionOptionsSpecification");
    var se_VpnGatewayIdStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`VpnGatewayId.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_VpnGatewayIdStringList");
    var se_VpnTunnelLogOptionsSpecification = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CWLO] != null) {
        const memberEntries = se_CloudWatchLogOptionsSpecification(input[_CWLO], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `CloudWatchLogOptions.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_VpnTunnelLogOptionsSpecification");
    var se_VpnTunnelOptionsSpecification = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TIC] != null) {
        entries[_TIC] = input[_TIC];
      }
      if (input[_TIIC] != null) {
        entries[_TIIC] = input[_TIIC];
      }
      if (input[_PSK] != null) {
        entries[_PSK] = input[_PSK];
      }
      if (input[_PLS] != null) {
        entries[_PLS] = input[_PLS];
      }
      if (input[_PLSh] != null) {
        entries[_PLSh] = input[_PLSh];
      }
      if (input[_RMTS] != null) {
        entries[_RMTS] = input[_RMTS];
      }
      if (input[_RFP] != null) {
        entries[_RFP] = input[_RFP];
      }
      if (input[_RWS] != null) {
        entries[_RWS] = input[_RWS];
      }
      if (input[_DPDTS] != null) {
        entries[_DPDTS] = input[_DPDTS];
      }
      if (input[_DPDTA] != null) {
        entries[_DPDTA] = input[_DPDTA];
      }
      if (input[_PEA] != null) {
        const memberEntries = se_Phase1EncryptionAlgorithmsRequestList(input[_PEA], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Phase1EncryptionAlgorithm.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_PEAh] != null) {
        const memberEntries = se_Phase2EncryptionAlgorithmsRequestList(input[_PEAh], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Phase2EncryptionAlgorithm.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_PIAh] != null) {
        const memberEntries = se_Phase1IntegrityAlgorithmsRequestList(input[_PIAh], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Phase1IntegrityAlgorithm.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_PIAha] != null) {
        const memberEntries = se_Phase2IntegrityAlgorithmsRequestList(input[_PIAha], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Phase2IntegrityAlgorithm.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_PDHGN] != null) {
        const memberEntries = se_Phase1DHGroupNumbersRequestList(input[_PDHGN], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Phase1DHGroupNumber.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_PDHGNh] != null) {
        const memberEntries = se_Phase2DHGroupNumbersRequestList(input[_PDHGNh], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Phase2DHGroupNumber.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_IKEVe] != null) {
        const memberEntries = se_IKEVersionsRequestList(input[_IKEVe], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `IKEVersion.${key.substring(key.indexOf(".") + 1)}`;
          entries[loc] = value;
        });
      }
      if (input[_SA] != null) {
        entries[_SA] = input[_SA];
      }
      if (input[_LO] != null) {
        const memberEntries = se_VpnTunnelLogOptionsSpecification(input[_LO], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `LogOptions.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_ETLC] != null) {
        entries[_ETLC] = input[_ETLC];
      }
      return entries;
    }, "se_VpnTunnelOptionsSpecification");
    var se_VpnTunnelOptionsSpecificationsList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_VpnTunnelOptionsSpecification(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`Member.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_VpnTunnelOptionsSpecificationsList");
    var se_WithdrawByoipCidrRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_C2] != null) {
        entries[_C2] = input[_C2];
      }
      if (input[_DRr] != null) {
        entries[_DRr] = input[_DRr];
      }
      return entries;
    }, "se_WithdrawByoipCidrRequest");
    var se_ZoneIdStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`ZoneId.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_ZoneIdStringList");
    var se_ZoneNameStringList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`ZoneName.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_ZoneNameStringList");
    var de_AcceleratorCount = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_m2] != null) {
        contents[_M] = (0, import_smithy_client28.strictParseInt32)(output[_m2]);
      }
      if (output[_ma] != null) {
        contents[_Ma] = (0, import_smithy_client28.strictParseInt32)(output[_ma]);
      }
      return contents;
    }, "de_AcceleratorCount");
    var de_AcceleratorManufacturerSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_AcceleratorManufacturerSet");
    var de_AcceleratorNameSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_AcceleratorNameSet");
    var de_AcceleratorTotalMemoryMiB = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_m2] != null) {
        contents[_M] = (0, import_smithy_client28.strictParseInt32)(output[_m2]);
      }
      if (output[_ma] != null) {
        contents[_Ma] = (0, import_smithy_client28.strictParseInt32)(output[_ma]);
      }
      return contents;
    }, "de_AcceleratorTotalMemoryMiB");
    var de_AcceleratorTypeSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_AcceleratorTypeSet");
    var de_AcceptAddressTransferResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aT] != null) {
        contents[_ATdd] = de_AddressTransfer(output[_aT], context);
      }
      return contents;
    }, "de_AcceptAddressTransferResult");
    var de_AcceptCapacityReservationBillingOwnershipResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_Ret] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      return contents;
    }, "de_AcceptCapacityReservationBillingOwnershipResult");
    var de_AcceptReservedInstancesExchangeQuoteResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_eI] != null) {
        contents[_EIxch] = (0, import_smithy_client28.expectString)(output[_eI]);
      }
      return contents;
    }, "de_AcceptReservedInstancesExchangeQuoteResult");
    var de_AcceptTransitGatewayMulticastDomainAssociationsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_a2] != null) {
        contents[_Ass] = de_TransitGatewayMulticastDomainAssociations(output[_a2], context);
      }
      return contents;
    }, "de_AcceptTransitGatewayMulticastDomainAssociationsResult");
    var de_AcceptTransitGatewayPeeringAttachmentResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tGPA] != null) {
        contents[_TGPA] = de_TransitGatewayPeeringAttachment(output[_tGPA], context);
      }
      return contents;
    }, "de_AcceptTransitGatewayPeeringAttachmentResult");
    var de_AcceptTransitGatewayVpcAttachmentResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tGVA] != null) {
        contents[_TGVA] = de_TransitGatewayVpcAttachment(output[_tGVA], context);
      }
      return contents;
    }, "de_AcceptTransitGatewayVpcAttachmentResult");
    var de_AcceptVpcEndpointConnectionsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.unsuccessful === "") {
        contents[_Un] = [];
      } else if (output[_u] != null && output[_u][_i] != null) {
        contents[_Un] = de_UnsuccessfulItemSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_u][_i]), context);
      }
      return contents;
    }, "de_AcceptVpcEndpointConnectionsResult");
    var de_AcceptVpcPeeringConnectionResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_vPC] != null) {
        contents[_VPC] = de_VpcPeeringConnection(output[_vPC], context);
      }
      return contents;
    }, "de_AcceptVpcPeeringConnectionResult");
    var de_AccessScopeAnalysisFinding = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nIASAI] != null) {
        contents[_NIASAI] = (0, import_smithy_client28.expectString)(output[_nIASAI]);
      }
      if (output[_nIASI] != null) {
        contents[_NIASI] = (0, import_smithy_client28.expectString)(output[_nIASI]);
      }
      if (output[_fI] != null) {
        contents[_FIi] = (0, import_smithy_client28.expectString)(output[_fI]);
      }
      if (output.findingComponentSet === "") {
        contents[_FCi] = [];
      } else if (output[_fCS] != null && output[_fCS][_i] != null) {
        contents[_FCi] = de_PathComponentList((0, import_smithy_client28.getArrayIfSingleItem)(output[_fCS][_i]), context);
      }
      return contents;
    }, "de_AccessScopeAnalysisFinding");
    var de_AccessScopeAnalysisFindingList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_AccessScopeAnalysisFinding(entry, context);
      });
    }, "de_AccessScopeAnalysisFindingList");
    var de_AccessScopePath = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_s] != null) {
        contents[_S] = de_PathStatement(output[_s], context);
      }
      if (output[_d] != null) {
        contents[_D] = de_PathStatement(output[_d], context);
      }
      if (output.throughResourceSet === "") {
        contents[_TR] = [];
      } else if (output[_tRS] != null && output[_tRS][_i] != null) {
        contents[_TR] = de_ThroughResourcesStatementList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tRS][_i]), context);
      }
      return contents;
    }, "de_AccessScopePath");
    var de_AccessScopePathList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_AccessScopePath(entry, context);
      });
    }, "de_AccessScopePathList");
    var de_AccountAttribute = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aN] != null) {
        contents[_ANt] = (0, import_smithy_client28.expectString)(output[_aN]);
      }
      if (output.attributeValueSet === "") {
        contents[_AVt] = [];
      } else if (output[_aVS] != null && output[_aVS][_i] != null) {
        contents[_AVt] = de_AccountAttributeValueList((0, import_smithy_client28.getArrayIfSingleItem)(output[_aVS][_i]), context);
      }
      return contents;
    }, "de_AccountAttribute");
    var de_AccountAttributeList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_AccountAttribute(entry, context);
      });
    }, "de_AccountAttributeList");
    var de_AccountAttributeValue = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aV] != null) {
        contents[_AVtt] = (0, import_smithy_client28.expectString)(output[_aV]);
      }
      return contents;
    }, "de_AccountAttributeValue");
    var de_AccountAttributeValueList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_AccountAttributeValue(entry, context);
      });
    }, "de_AccountAttributeValueList");
    var de_ActiveInstance = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iI] != null) {
        contents[_IIn] = (0, import_smithy_client28.expectString)(output[_iI]);
      }
      if (output[_iT] != null) {
        contents[_IT] = (0, import_smithy_client28.expectString)(output[_iT]);
      }
      if (output[_sIRI] != null) {
        contents[_SIRIp] = (0, import_smithy_client28.expectString)(output[_sIRI]);
      }
      if (output[_iH] != null) {
        contents[_IH] = (0, import_smithy_client28.expectString)(output[_iH]);
      }
      return contents;
    }, "de_ActiveInstance");
    var de_ActiveInstanceSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ActiveInstance(entry, context);
      });
    }, "de_ActiveInstanceSet");
    var de_ActiveVpnTunnelStatus = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_pEA] != null) {
        contents[_PEAha] = (0, import_smithy_client28.expectString)(output[_pEA]);
      }
      if (output[_pEAh] != null) {
        contents[_PEAhas] = (0, import_smithy_client28.expectString)(output[_pEAh]);
      }
      if (output[_pIA] != null) {
        contents[_PIAhas] = (0, import_smithy_client28.expectString)(output[_pIA]);
      }
      if (output[_pIAh] != null) {
        contents[_PIAhase] = (0, import_smithy_client28.expectString)(output[_pIAh]);
      }
      if (output[_pDHG] != null) {
        contents[_PDHG] = (0, import_smithy_client28.strictParseInt32)(output[_pDHG]);
      }
      if (output[_pDHGh] != null) {
        contents[_PDHGh] = (0, import_smithy_client28.strictParseInt32)(output[_pDHGh]);
      }
      if (output[_iV] != null) {
        contents[_IVk] = (0, import_smithy_client28.expectString)(output[_iV]);
      }
      if (output[_pS] != null) {
        contents[_PSr] = (0, import_smithy_client28.expectString)(output[_pS]);
      }
      if (output[_pSR] != null) {
        contents[_PSR] = (0, import_smithy_client28.expectString)(output[_pSR]);
      }
      return contents;
    }, "de_ActiveVpnTunnelStatus");
    var de_AddedPrincipal = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_pT] != null) {
        contents[_PTr] = (0, import_smithy_client28.expectString)(output[_pT]);
      }
      if (output[_p] != null) {
        contents[_Prin] = (0, import_smithy_client28.expectString)(output[_p]);
      }
      if (output[_sPI] != null) {
        contents[_SPI] = (0, import_smithy_client28.expectString)(output[_sPI]);
      }
      if (output[_sI] != null) {
        contents[_SIe] = (0, import_smithy_client28.expectString)(output[_sI]);
      }
      return contents;
    }, "de_AddedPrincipal");
    var de_AddedPrincipalSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_AddedPrincipal(entry, context);
      });
    }, "de_AddedPrincipalSet");
    var de_AdditionalDetail = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aDT] != null) {
        contents[_ADT] = (0, import_smithy_client28.expectString)(output[_aDT]);
      }
      if (output[_c] != null) {
        contents[_Com] = de_AnalysisComponent(output[_c], context);
      }
      if (output[_vES] != null) {
        contents[_VESp] = de_AnalysisComponent(output[_vES], context);
      }
      if (output.ruleOptionSet === "") {
        contents[_ROu] = [];
      } else if (output[_rOS] != null && output[_rOS][_i] != null) {
        contents[_ROu] = de_RuleOptionList((0, import_smithy_client28.getArrayIfSingleItem)(output[_rOS][_i]), context);
      }
      if (output.ruleGroupTypePairSet === "") {
        contents[_RGTP] = [];
      } else if (output[_rGTPS] != null && output[_rGTPS][_i] != null) {
        contents[_RGTP] = de_RuleGroupTypePairList((0, import_smithy_client28.getArrayIfSingleItem)(output[_rGTPS][_i]), context);
      }
      if (output.ruleGroupRuleOptionsPairSet === "") {
        contents[_RGROP] = [];
      } else if (output[_rGROPS] != null && output[_rGROPS][_i] != null) {
        contents[_RGROP] = de_RuleGroupRuleOptionsPairList((0, import_smithy_client28.getArrayIfSingleItem)(output[_rGROPS][_i]), context);
      }
      if (output[_sN] != null) {
        contents[_SNe] = (0, import_smithy_client28.expectString)(output[_sN]);
      }
      if (output.loadBalancerSet === "") {
        contents[_LB] = [];
      } else if (output[_lBS] != null && output[_lBS][_i] != null) {
        contents[_LB] = de_AnalysisComponentList((0, import_smithy_client28.getArrayIfSingleItem)(output[_lBS][_i]), context);
      }
      return contents;
    }, "de_AdditionalDetail");
    var de_AdditionalDetailList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_AdditionalDetail(entry, context);
      });
    }, "de_AdditionalDetailList");
    var de_Address = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aI] != null) {
        contents[_AIl] = (0, import_smithy_client28.expectString)(output[_aI]);
      }
      if (output[_aIs] != null) {
        contents[_AIss] = (0, import_smithy_client28.expectString)(output[_aIs]);
      }
      if (output[_do] != null) {
        contents[_Do] = (0, import_smithy_client28.expectString)(output[_do]);
      }
      if (output[_nII] != null) {
        contents[_NII] = (0, import_smithy_client28.expectString)(output[_nII]);
      }
      if (output[_nIOI] != null) {
        contents[_NIOI] = (0, import_smithy_client28.expectString)(output[_nIOI]);
      }
      if (output[_pIAr] != null) {
        contents[_PIAr] = (0, import_smithy_client28.expectString)(output[_pIAr]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_pIP] != null) {
        contents[_PIP] = (0, import_smithy_client28.expectString)(output[_pIP]);
      }
      if (output[_nBG] != null) {
        contents[_NBG] = (0, import_smithy_client28.expectString)(output[_nBG]);
      }
      if (output[_cOI] != null) {
        contents[_COI] = (0, import_smithy_client28.expectString)(output[_cOI]);
      }
      if (output[_cOIP] != null) {
        contents[_COIP] = (0, import_smithy_client28.expectString)(output[_cOIP]);
      }
      if (output[_cI] != null) {
        contents[_CIa] = (0, import_smithy_client28.expectString)(output[_cI]);
      }
      if (output[_sIu] != null) {
        contents[_SIub] = (0, import_smithy_client28.expectString)(output[_sIu]);
      }
      if (output[_sM] != null) {
        contents[_SM] = (0, import_smithy_client28.expectString)(output[_sM]);
      }
      if (output[_iI] != null) {
        contents[_IIn] = (0, import_smithy_client28.expectString)(output[_iI]);
      }
      if (output[_pI] != null) {
        contents[_PI2] = (0, import_smithy_client28.expectString)(output[_pI]);
      }
      return contents;
    }, "de_Address");
    var de_AddressAttribute = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_pI] != null) {
        contents[_PI2] = (0, import_smithy_client28.expectString)(output[_pI]);
      }
      if (output[_aI] != null) {
        contents[_AIl] = (0, import_smithy_client28.expectString)(output[_aI]);
      }
      if (output[_pR] != null) {
        contents[_PRt] = (0, import_smithy_client28.expectString)(output[_pR]);
      }
      if (output[_pRU] != null) {
        contents[_PRU] = de_PtrUpdateStatus(output[_pRU], context);
      }
      return contents;
    }, "de_AddressAttribute");
    var de_AddressList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Address(entry, context);
      });
    }, "de_AddressList");
    var de_AddressSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_AddressAttribute(entry, context);
      });
    }, "de_AddressSet");
    var de_AddressTransfer = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_pI] != null) {
        contents[_PI2] = (0, import_smithy_client28.expectString)(output[_pI]);
      }
      if (output[_aI] != null) {
        contents[_AIl] = (0, import_smithy_client28.expectString)(output[_aI]);
      }
      if (output[_tAI] != null) {
        contents[_TAI] = (0, import_smithy_client28.expectString)(output[_tAI]);
      }
      if (output[_tOET] != null) {
        contents[_TOET] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_tOET]));
      }
      if (output[_tOAT] != null) {
        contents[_TOAT] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_tOAT]));
      }
      if (output[_aTS] != null) {
        contents[_ATS] = (0, import_smithy_client28.expectString)(output[_aTS]);
      }
      return contents;
    }, "de_AddressTransfer");
    var de_AddressTransferList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_AddressTransfer(entry, context);
      });
    }, "de_AddressTransferList");
    var de_AdvertiseByoipCidrResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_bC] != null) {
        contents[_BC] = de_ByoipCidr(output[_bC], context);
      }
      return contents;
    }, "de_AdvertiseByoipCidrResult");
    var de_AllocateAddressResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aI] != null) {
        contents[_AIl] = (0, import_smithy_client28.expectString)(output[_aI]);
      }
      if (output[_pIP] != null) {
        contents[_PIP] = (0, import_smithy_client28.expectString)(output[_pIP]);
      }
      if (output[_nBG] != null) {
        contents[_NBG] = (0, import_smithy_client28.expectString)(output[_nBG]);
      }
      if (output[_do] != null) {
        contents[_Do] = (0, import_smithy_client28.expectString)(output[_do]);
      }
      if (output[_cOI] != null) {
        contents[_COI] = (0, import_smithy_client28.expectString)(output[_cOI]);
      }
      if (output[_cOIP] != null) {
        contents[_COIP] = (0, import_smithy_client28.expectString)(output[_cOIP]);
      }
      if (output[_cI] != null) {
        contents[_CIa] = (0, import_smithy_client28.expectString)(output[_cI]);
      }
      if (output[_pI] != null) {
        contents[_PI2] = (0, import_smithy_client28.expectString)(output[_pI]);
      }
      return contents;
    }, "de_AllocateAddressResult");
    var de_AllocateHostsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.hostIdSet === "") {
        contents[_HI] = [];
      } else if (output[_hIS] != null && output[_hIS][_i] != null) {
        contents[_HI] = de_ResponseHostIdList((0, import_smithy_client28.getArrayIfSingleItem)(output[_hIS][_i]), context);
      }
      return contents;
    }, "de_AllocateHostsResult");
    var de_AllocateIpamPoolCidrResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iPA] != null) {
        contents[_IPA] = de_IpamPoolAllocation(output[_iPA], context);
      }
      return contents;
    }, "de_AllocateIpamPoolCidrResult");
    var de_AllowedInstanceTypeSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_AllowedInstanceTypeSet");
    var de_AllowedPrincipal = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_pT] != null) {
        contents[_PTr] = (0, import_smithy_client28.expectString)(output[_pT]);
      }
      if (output[_p] != null) {
        contents[_Prin] = (0, import_smithy_client28.expectString)(output[_p]);
      }
      if (output[_sPI] != null) {
        contents[_SPI] = (0, import_smithy_client28.expectString)(output[_sPI]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_sI] != null) {
        contents[_SIe] = (0, import_smithy_client28.expectString)(output[_sI]);
      }
      return contents;
    }, "de_AllowedPrincipal");
    var de_AllowedPrincipalSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_AllowedPrincipal(entry, context);
      });
    }, "de_AllowedPrincipalSet");
    var de_AlternatePathHint = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cIo] != null) {
        contents[_CIom] = (0, import_smithy_client28.expectString)(output[_cIo]);
      }
      if (output[_cA] != null) {
        contents[_CAo] = (0, import_smithy_client28.expectString)(output[_cA]);
      }
      return contents;
    }, "de_AlternatePathHint");
    var de_AlternatePathHintList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_AlternatePathHint(entry, context);
      });
    }, "de_AlternatePathHintList");
    var de_AnalysisAclRule = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ci] != null) {
        contents[_C2] = (0, import_smithy_client28.expectString)(output[_ci]);
      }
      if (output[_e] != null) {
        contents[_Eg] = (0, import_smithy_client28.parseBoolean)(output[_e]);
      }
      if (output[_pRo] != null) {
        contents[_PR] = de_PortRange(output[_pRo], context);
      }
      if (output[_pr] != null) {
        contents[_P2] = (0, import_smithy_client28.expectString)(output[_pr]);
      }
      if (output[_rA] != null) {
        contents[_RAu] = (0, import_smithy_client28.expectString)(output[_rA]);
      }
      if (output[_rN] != null) {
        contents[_RNu] = (0, import_smithy_client28.strictParseInt32)(output[_rN]);
      }
      return contents;
    }, "de_AnalysisAclRule");
    var de_AnalysisComponent = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_id] != null) {
        contents[_Id] = (0, import_smithy_client28.expectString)(output[_id]);
      }
      if (output[_ar] != null) {
        contents[_Ar2] = (0, import_smithy_client28.expectString)(output[_ar]);
      }
      if (output[_n] != null) {
        contents[_N] = (0, import_smithy_client28.expectString)(output[_n]);
      }
      return contents;
    }, "de_AnalysisComponent");
    var de_AnalysisComponentList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_AnalysisComponent(entry, context);
      });
    }, "de_AnalysisComponentList");
    var de_AnalysisLoadBalancerListener = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_lBP] != null) {
        contents[_LBP] = (0, import_smithy_client28.strictParseInt32)(output[_lBP]);
      }
      if (output[_iP] != null) {
        contents[_IPns] = (0, import_smithy_client28.strictParseInt32)(output[_iP]);
      }
      return contents;
    }, "de_AnalysisLoadBalancerListener");
    var de_AnalysisLoadBalancerTarget = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ad] != null) {
        contents[_Ad] = (0, import_smithy_client28.expectString)(output[_ad]);
      }
      if (output[_aZ] != null) {
        contents[_AZ] = (0, import_smithy_client28.expectString)(output[_aZ]);
      }
      if (output[_aZI] != null) {
        contents[_AZI] = (0, import_smithy_client28.expectString)(output[_aZI]);
      }
      if (output[_in] != null) {
        contents[_Ins] = de_AnalysisComponent(output[_in], context);
      }
      if (output[_po] != null) {
        contents[_Po] = (0, import_smithy_client28.strictParseInt32)(output[_po]);
      }
      return contents;
    }, "de_AnalysisLoadBalancerTarget");
    var de_AnalysisPacketHeader = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.destinationAddressSet === "") {
        contents[_DAes] = [];
      } else if (output[_dAS] != null && output[_dAS][_i] != null) {
        contents[_DAes] = de_IpAddressList((0, import_smithy_client28.getArrayIfSingleItem)(output[_dAS][_i]), context);
      }
      if (output.destinationPortRangeSet === "") {
        contents[_DPRe] = [];
      } else if (output[_dPRS] != null && output[_dPRS][_i] != null) {
        contents[_DPRe] = de_PortRangeList((0, import_smithy_client28.getArrayIfSingleItem)(output[_dPRS][_i]), context);
      }
      if (output[_pr] != null) {
        contents[_P2] = (0, import_smithy_client28.expectString)(output[_pr]);
      }
      if (output.sourceAddressSet === "") {
        contents[_SAo] = [];
      } else if (output[_sAS] != null && output[_sAS][_i] != null) {
        contents[_SAo] = de_IpAddressList((0, import_smithy_client28.getArrayIfSingleItem)(output[_sAS][_i]), context);
      }
      if (output.sourcePortRangeSet === "") {
        contents[_SPRo] = [];
      } else if (output[_sPRS] != null && output[_sPRS][_i] != null) {
        contents[_SPRo] = de_PortRangeList((0, import_smithy_client28.getArrayIfSingleItem)(output[_sPRS][_i]), context);
      }
      return contents;
    }, "de_AnalysisPacketHeader");
    var de_AnalysisRouteTableRoute = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_dC] != null) {
        contents[_DCe] = (0, import_smithy_client28.expectString)(output[_dC]);
      }
      if (output[_dPLI] != null) {
        contents[_DPLI] = (0, import_smithy_client28.expectString)(output[_dPLI]);
      }
      if (output[_eOIGI] != null) {
        contents[_EOIGI] = (0, import_smithy_client28.expectString)(output[_eOIGI]);
      }
      if (output[_gI] != null) {
        contents[_GI] = (0, import_smithy_client28.expectString)(output[_gI]);
      }
      if (output[_iI] != null) {
        contents[_IIn] = (0, import_smithy_client28.expectString)(output[_iI]);
      }
      if (output[_nGI] != null) {
        contents[_NGI] = (0, import_smithy_client28.expectString)(output[_nGI]);
      }
      if (output[_nII] != null) {
        contents[_NII] = (0, import_smithy_client28.expectString)(output[_nII]);
      }
      if (output[_o] != null) {
        contents[_Or] = (0, import_smithy_client28.expectString)(output[_o]);
      }
      if (output[_tGI] != null) {
        contents[_TGI] = (0, import_smithy_client28.expectString)(output[_tGI]);
      }
      if (output[_vPCI] != null) {
        contents[_VPCI] = (0, import_smithy_client28.expectString)(output[_vPCI]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_cGI] != null) {
        contents[_CGI] = (0, import_smithy_client28.expectString)(output[_cGI]);
      }
      if (output[_cNA] != null) {
        contents[_CNAo] = (0, import_smithy_client28.expectString)(output[_cNA]);
      }
      if (output[_lGI] != null) {
        contents[_LGI] = (0, import_smithy_client28.expectString)(output[_lGI]);
      }
      return contents;
    }, "de_AnalysisRouteTableRoute");
    var de_AnalysisSecurityGroupRule = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ci] != null) {
        contents[_C2] = (0, import_smithy_client28.expectString)(output[_ci]);
      }
      if (output[_di] != null) {
        contents[_Di] = (0, import_smithy_client28.expectString)(output[_di]);
      }
      if (output[_sGI] != null) {
        contents[_SGIe] = (0, import_smithy_client28.expectString)(output[_sGI]);
      }
      if (output[_pRo] != null) {
        contents[_PR] = de_PortRange(output[_pRo], context);
      }
      if (output[_pLI] != null) {
        contents[_PLI] = (0, import_smithy_client28.expectString)(output[_pLI]);
      }
      if (output[_pr] != null) {
        contents[_P2] = (0, import_smithy_client28.expectString)(output[_pr]);
      }
      return contents;
    }, "de_AnalysisSecurityGroupRule");
    var de_ApplySecurityGroupsToClientVpnTargetNetworkResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.securityGroupIds === "") {
        contents[_SGI] = [];
      } else if (output[_sGIe] != null && output[_sGIe][_i] != null) {
        contents[_SGI] = de_ClientVpnSecurityGroupIdSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_sGIe][_i]), context);
      }
      return contents;
    }, "de_ApplySecurityGroupsToClientVpnTargetNetworkResult");
    var de_ArchitectureTypeList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_ArchitectureTypeList");
    var de_ArnList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_ArnList");
    var de_AsnAssociation = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_as] != null) {
        contents[_As] = (0, import_smithy_client28.expectString)(output[_as]);
      }
      if (output[_ci] != null) {
        contents[_C2] = (0, import_smithy_client28.expectString)(output[_ci]);
      }
      if (output[_sMt] != null) {
        contents[_SMt] = (0, import_smithy_client28.expectString)(output[_sMt]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      return contents;
    }, "de_AsnAssociation");
    var de_AsnAssociationSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_AsnAssociation(entry, context);
      });
    }, "de_AsnAssociationSet");
    var de_AsPath = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_AsPath");
    var de_AssignedPrivateIpAddress = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_pIAr] != null) {
        contents[_PIAr] = (0, import_smithy_client28.expectString)(output[_pIAr]);
      }
      return contents;
    }, "de_AssignedPrivateIpAddress");
    var de_AssignedPrivateIpAddressList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_AssignedPrivateIpAddress(entry, context);
      });
    }, "de_AssignedPrivateIpAddressList");
    var de_AssignIpv6AddressesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.assignedIpv6Addresses === "") {
        contents[_AIAs] = [];
      } else if (output[_aIA] != null && output[_aIA][_i] != null) {
        contents[_AIAs] = de_Ipv6AddressList((0, import_smithy_client28.getArrayIfSingleItem)(output[_aIA][_i]), context);
      }
      if (output.assignedIpv6PrefixSet === "") {
        contents[_AIP] = [];
      } else if (output[_aIPS] != null && output[_aIPS][_i] != null) {
        contents[_AIP] = de_IpPrefixList((0, import_smithy_client28.getArrayIfSingleItem)(output[_aIPS][_i]), context);
      }
      if (output[_nII] != null) {
        contents[_NII] = (0, import_smithy_client28.expectString)(output[_nII]);
      }
      return contents;
    }, "de_AssignIpv6AddressesResult");
    var de_AssignPrivateIpAddressesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nII] != null) {
        contents[_NII] = (0, import_smithy_client28.expectString)(output[_nII]);
      }
      if (output.assignedPrivateIpAddressesSet === "") {
        contents[_APIAss] = [];
      } else if (output[_aPIAS] != null && output[_aPIAS][_i] != null) {
        contents[_APIAss] = de_AssignedPrivateIpAddressList((0, import_smithy_client28.getArrayIfSingleItem)(output[_aPIAS][_i]), context);
      }
      if (output.assignedIpv4PrefixSet === "") {
        contents[_AIPs] = [];
      } else if (output[_aIPSs] != null && output[_aIPSs][_i] != null) {
        contents[_AIPs] = de_Ipv4PrefixesList((0, import_smithy_client28.getArrayIfSingleItem)(output[_aIPSs][_i]), context);
      }
      return contents;
    }, "de_AssignPrivateIpAddressesResult");
    var de_AssignPrivateNatGatewayAddressResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nGI] != null) {
        contents[_NGI] = (0, import_smithy_client28.expectString)(output[_nGI]);
      }
      if (output.natGatewayAddressSet === "") {
        contents[_NGA] = [];
      } else if (output[_nGAS] != null && output[_nGAS][_i] != null) {
        contents[_NGA] = de_NatGatewayAddressList((0, import_smithy_client28.getArrayIfSingleItem)(output[_nGAS][_i]), context);
      }
      return contents;
    }, "de_AssignPrivateNatGatewayAddressResult");
    var de_AssociateAddressResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aIs] != null) {
        contents[_AIss] = (0, import_smithy_client28.expectString)(output[_aIs]);
      }
      return contents;
    }, "de_AssociateAddressResult");
    var de_AssociateCapacityReservationBillingOwnerResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_Ret] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      return contents;
    }, "de_AssociateCapacityReservationBillingOwnerResult");
    var de_AssociateClientVpnTargetNetworkResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aIs] != null) {
        contents[_AIss] = (0, import_smithy_client28.expectString)(output[_aIs]);
      }
      if (output[_sta] != null) {
        contents[_Statu] = de_AssociationStatus(output[_sta], context);
      }
      return contents;
    }, "de_AssociateClientVpnTargetNetworkResult");
    var de_AssociatedRole = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aRA] != null) {
        contents[_ARA] = (0, import_smithy_client28.expectString)(output[_aRA]);
      }
      if (output[_cSBN] != null) {
        contents[_CSBN] = (0, import_smithy_client28.expectString)(output[_cSBN]);
      }
      if (output[_cSOK] != null) {
        contents[_CSOK] = (0, import_smithy_client28.expectString)(output[_cSOK]);
      }
      if (output[_eKKI] != null) {
        contents[_EKKI] = (0, import_smithy_client28.expectString)(output[_eKKI]);
      }
      return contents;
    }, "de_AssociatedRole");
    var de_AssociatedRolesList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_AssociatedRole(entry, context);
      });
    }, "de_AssociatedRolesList");
    var de_AssociatedSubnetList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_AssociatedSubnetList");
    var de_AssociatedTargetNetwork = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nI] != null) {
        contents[_NIe] = (0, import_smithy_client28.expectString)(output[_nI]);
      }
      if (output[_nT] != null) {
        contents[_NTe] = (0, import_smithy_client28.expectString)(output[_nT]);
      }
      return contents;
    }, "de_AssociatedTargetNetwork");
    var de_AssociatedTargetNetworkSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_AssociatedTargetNetwork(entry, context);
      });
    }, "de_AssociatedTargetNetworkSet");
    var de_AssociateEnclaveCertificateIamRoleResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cSBN] != null) {
        contents[_CSBN] = (0, import_smithy_client28.expectString)(output[_cSBN]);
      }
      if (output[_cSOK] != null) {
        contents[_CSOK] = (0, import_smithy_client28.expectString)(output[_cSOK]);
      }
      if (output[_eKKI] != null) {
        contents[_EKKI] = (0, import_smithy_client28.expectString)(output[_eKKI]);
      }
      return contents;
    }, "de_AssociateEnclaveCertificateIamRoleResult");
    var de_AssociateIamInstanceProfileResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iIPA] != null) {
        contents[_IIPA] = de_IamInstanceProfileAssociation(output[_iIPA], context);
      }
      return contents;
    }, "de_AssociateIamInstanceProfileResult");
    var de_AssociateInstanceEventWindowResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iEW] != null) {
        contents[_IEW] = de_InstanceEventWindow(output[_iEW], context);
      }
      return contents;
    }, "de_AssociateInstanceEventWindowResult");
    var de_AssociateIpamByoasnResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aA] != null) {
        contents[_AAsn] = de_AsnAssociation(output[_aA], context);
      }
      return contents;
    }, "de_AssociateIpamByoasnResult");
    var de_AssociateIpamResourceDiscoveryResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iRDA] != null) {
        contents[_IRDA] = de_IpamResourceDiscoveryAssociation(output[_iRDA], context);
      }
      return contents;
    }, "de_AssociateIpamResourceDiscoveryResult");
    var de_AssociateNatGatewayAddressResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nGI] != null) {
        contents[_NGI] = (0, import_smithy_client28.expectString)(output[_nGI]);
      }
      if (output.natGatewayAddressSet === "") {
        contents[_NGA] = [];
      } else if (output[_nGAS] != null && output[_nGAS][_i] != null) {
        contents[_NGA] = de_NatGatewayAddressList((0, import_smithy_client28.getArrayIfSingleItem)(output[_nGAS][_i]), context);
      }
      return contents;
    }, "de_AssociateNatGatewayAddressResult");
    var de_AssociateRouteServerResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_rSA] != null) {
        contents[_RSAo] = de_RouteServerAssociation(output[_rSA], context);
      }
      return contents;
    }, "de_AssociateRouteServerResult");
    var de_AssociateRouteTableResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aIs] != null) {
        contents[_AIss] = (0, import_smithy_client28.expectString)(output[_aIs]);
      }
      if (output[_aS] != null) {
        contents[_ASs] = de_RouteTableAssociationState(output[_aS], context);
      }
      return contents;
    }, "de_AssociateRouteTableResult");
    var de_AssociateSecurityGroupVpcResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      return contents;
    }, "de_AssociateSecurityGroupVpcResult");
    var de_AssociateSubnetCidrBlockResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iCBA] != null) {
        contents[_ICBA] = de_SubnetIpv6CidrBlockAssociation(output[_iCBA], context);
      }
      if (output[_sIu] != null) {
        contents[_SIub] = (0, import_smithy_client28.expectString)(output[_sIu]);
      }
      return contents;
    }, "de_AssociateSubnetCidrBlockResult");
    var de_AssociateTransitGatewayMulticastDomainResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_a2] != null) {
        contents[_Ass] = de_TransitGatewayMulticastDomainAssociations(output[_a2], context);
      }
      return contents;
    }, "de_AssociateTransitGatewayMulticastDomainResult");
    var de_AssociateTransitGatewayPolicyTableResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ass] != null) {
        contents[_Asso] = de_TransitGatewayPolicyTableAssociation(output[_ass], context);
      }
      return contents;
    }, "de_AssociateTransitGatewayPolicyTableResult");
    var de_AssociateTransitGatewayRouteTableResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ass] != null) {
        contents[_Asso] = de_TransitGatewayAssociation(output[_ass], context);
      }
      return contents;
    }, "de_AssociateTransitGatewayRouteTableResult");
    var de_AssociateTrunkInterfaceResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iA] != null) {
        contents[_IAn] = de_TrunkInterfaceAssociation(output[_iA], context);
      }
      if (output[_cT] != null) {
        contents[_CTl] = (0, import_smithy_client28.expectString)(output[_cT]);
      }
      return contents;
    }, "de_AssociateTrunkInterfaceResult");
    var de_AssociateVpcCidrBlockResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iCBA] != null) {
        contents[_ICBA] = de_VpcIpv6CidrBlockAssociation(output[_iCBA], context);
      }
      if (output[_cBA] != null) {
        contents[_CBA] = de_VpcCidrBlockAssociation(output[_cBA], context);
      }
      if (output[_vI] != null) {
        contents[_VI] = (0, import_smithy_client28.expectString)(output[_vI]);
      }
      return contents;
    }, "de_AssociateVpcCidrBlockResult");
    var de_AssociationStatus = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_co] != null) {
        contents[_Cod] = (0, import_smithy_client28.expectString)(output[_co]);
      }
      if (output[_me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_me]);
      }
      return contents;
    }, "de_AssociationStatus");
    var de_AttachClassicLinkVpcResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_Ret] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      return contents;
    }, "de_AttachClassicLinkVpcResult");
    var de_AttachmentEnaSrdSpecification = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_eSE] != null) {
        contents[_ESE] = (0, import_smithy_client28.parseBoolean)(output[_eSE]);
      }
      if (output[_eSUS] != null) {
        contents[_ESUS] = de_AttachmentEnaSrdUdpSpecification(output[_eSUS], context);
      }
      return contents;
    }, "de_AttachmentEnaSrdSpecification");
    var de_AttachmentEnaSrdUdpSpecification = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_eSUE] != null) {
        contents[_ESUE] = (0, import_smithy_client28.parseBoolean)(output[_eSUE]);
      }
      return contents;
    }, "de_AttachmentEnaSrdUdpSpecification");
    var de_AttachNetworkInterfaceResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aIt] != null) {
        contents[_AIt] = (0, import_smithy_client28.expectString)(output[_aIt]);
      }
      if (output[_nCI] != null) {
        contents[_NCI] = (0, import_smithy_client28.strictParseInt32)(output[_nCI]);
      }
      return contents;
    }, "de_AttachNetworkInterfaceResult");
    var de_AttachVerifiedAccessTrustProviderResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_vATP] != null) {
        contents[_VATP] = de_VerifiedAccessTrustProvider(output[_vATP], context);
      }
      if (output[_vAI] != null) {
        contents[_VAI] = de_VerifiedAccessInstance(output[_vAI], context);
      }
      return contents;
    }, "de_AttachVerifiedAccessTrustProviderResult");
    var de_AttachVpnGatewayResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_at] != null) {
        contents[_VA] = de_VpcAttachment(output[_at], context);
      }
      return contents;
    }, "de_AttachVpnGatewayResult");
    var de_AttributeBooleanValue = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_v] != null) {
        contents[_Va2] = (0, import_smithy_client28.parseBoolean)(output[_v]);
      }
      return contents;
    }, "de_AttributeBooleanValue");
    var de_AttributeSummary = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aN] != null) {
        contents[_ANt] = (0, import_smithy_client28.expectString)(output[_aN]);
      }
      if (output[_mFV] != null) {
        contents[_MFV] = (0, import_smithy_client28.expectString)(output[_mFV]);
      }
      if (output[_nOMA] != null) {
        contents[_NOMA] = (0, import_smithy_client28.strictParseInt32)(output[_nOMA]);
      }
      if (output[_nOUA] != null) {
        contents[_NOUA] = (0, import_smithy_client28.strictParseInt32)(output[_nOUA]);
      }
      if (output.regionalSummarySet === "") {
        contents[_RSeg] = [];
      } else if (output[_rSS] != null && output[_rSS][_i] != null) {
        contents[_RSeg] = de_RegionalSummaryList((0, import_smithy_client28.getArrayIfSingleItem)(output[_rSS][_i]), context);
      }
      return contents;
    }, "de_AttributeSummary");
    var de_AttributeSummaryList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_AttributeSummary(entry, context);
      });
    }, "de_AttributeSummaryList");
    var de_AttributeValue = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_v] != null) {
        contents[_Va2] = (0, import_smithy_client28.expectString)(output[_v]);
      }
      return contents;
    }, "de_AttributeValue");
    var de_AuthorizationRule = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cVEI] != null) {
        contents[_CVEI] = (0, import_smithy_client28.expectString)(output[_cVEI]);
      }
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      if (output[_gIr] != null) {
        contents[_GIr] = (0, import_smithy_client28.expectString)(output[_gIr]);
      }
      if (output[_aAc] != null) {
        contents[_AAc] = (0, import_smithy_client28.parseBoolean)(output[_aAc]);
      }
      if (output[_dC] != null) {
        contents[_DCe] = (0, import_smithy_client28.expectString)(output[_dC]);
      }
      if (output[_sta] != null) {
        contents[_Statu] = de_ClientVpnAuthorizationRuleStatus(output[_sta], context);
      }
      return contents;
    }, "de_AuthorizationRule");
    var de_AuthorizationRuleSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_AuthorizationRule(entry, context);
      });
    }, "de_AuthorizationRuleSet");
    var de_AuthorizeClientVpnIngressResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sta] != null) {
        contents[_Statu] = de_ClientVpnAuthorizationRuleStatus(output[_sta], context);
      }
      return contents;
    }, "de_AuthorizeClientVpnIngressResult");
    var de_AuthorizeSecurityGroupEgressResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_Ret] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      if (output.securityGroupRuleSet === "") {
        contents[_SGR] = [];
      } else if (output[_sGRS] != null && output[_sGRS][_i] != null) {
        contents[_SGR] = de_SecurityGroupRuleList((0, import_smithy_client28.getArrayIfSingleItem)(output[_sGRS][_i]), context);
      }
      return contents;
    }, "de_AuthorizeSecurityGroupEgressResult");
    var de_AuthorizeSecurityGroupIngressResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_Ret] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      if (output.securityGroupRuleSet === "") {
        contents[_SGR] = [];
      } else if (output[_sGRS] != null && output[_sGRS][_i] != null) {
        contents[_SGR] = de_SecurityGroupRuleList((0, import_smithy_client28.getArrayIfSingleItem)(output[_sGRS][_i]), context);
      }
      return contents;
    }, "de_AuthorizeSecurityGroupIngressResult");
    var de_AvailabilityZone = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_oIS] != null) {
        contents[_OIS] = (0, import_smithy_client28.expectString)(output[_oIS]);
      }
      if (output.messageSet === "") {
        contents[_Mes] = [];
      } else if (output[_mS] != null && output[_mS][_i] != null) {
        contents[_Mes] = de_AvailabilityZoneMessageList((0, import_smithy_client28.getArrayIfSingleItem)(output[_mS][_i]), context);
      }
      if (output[_rNe] != null) {
        contents[_RN] = (0, import_smithy_client28.expectString)(output[_rNe]);
      }
      if (output[_zN] != null) {
        contents[_ZNo] = (0, import_smithy_client28.expectString)(output[_zN]);
      }
      if (output[_zI] != null) {
        contents[_ZIo] = (0, import_smithy_client28.expectString)(output[_zI]);
      }
      if (output[_gN] != null) {
        contents[_GN] = (0, import_smithy_client28.expectString)(output[_gN]);
      }
      if (output[_nBG] != null) {
        contents[_NBG] = (0, import_smithy_client28.expectString)(output[_nBG]);
      }
      if (output[_zT] != null) {
        contents[_ZT] = (0, import_smithy_client28.expectString)(output[_zT]);
      }
      if (output[_pZN] != null) {
        contents[_PZN] = (0, import_smithy_client28.expectString)(output[_pZN]);
      }
      if (output[_pZI] != null) {
        contents[_PZI] = (0, import_smithy_client28.expectString)(output[_pZI]);
      }
      if (output[_gLN] != null) {
        contents[_GLN] = (0, import_smithy_client28.expectString)(output[_gLN]);
      }
      if (output[_zS] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_zS]);
      }
      return contents;
    }, "de_AvailabilityZone");
    var de_AvailabilityZoneList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_AvailabilityZone(entry, context);
      });
    }, "de_AvailabilityZoneList");
    var de_AvailabilityZoneMessage = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_me]);
      }
      return contents;
    }, "de_AvailabilityZoneMessage");
    var de_AvailabilityZoneMessageList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_AvailabilityZoneMessage(entry, context);
      });
    }, "de_AvailabilityZoneMessageList");
    var de_AvailableCapacity = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.availableInstanceCapacity === "") {
        contents[_AIC] = [];
      } else if (output[_aIC] != null && output[_aIC][_i] != null) {
        contents[_AIC] = de_AvailableInstanceCapacityList((0, import_smithy_client28.getArrayIfSingleItem)(output[_aIC][_i]), context);
      }
      if (output[_aVC] != null) {
        contents[_AVC] = (0, import_smithy_client28.strictParseInt32)(output[_aVC]);
      }
      return contents;
    }, "de_AvailableCapacity");
    var de_AvailableInstanceCapacityList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_InstanceCapacity(entry, context);
      });
    }, "de_AvailableInstanceCapacityList");
    var de_BandwidthWeightingTypeList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_BandwidthWeightingTypeList");
    var de_BaselineEbsBandwidthMbps = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_m2] != null) {
        contents[_M] = (0, import_smithy_client28.strictParseInt32)(output[_m2]);
      }
      if (output[_ma] != null) {
        contents[_Ma] = (0, import_smithy_client28.strictParseInt32)(output[_ma]);
      }
      return contents;
    }, "de_BaselineEbsBandwidthMbps");
    var de_BaselinePerformanceFactors = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cp] != null) {
        contents[_Cp] = de_CpuPerformanceFactor(output[_cp], context);
      }
      return contents;
    }, "de_BaselinePerformanceFactors");
    var de_BlockDeviceMapping = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_eb] != null) {
        contents[_E2] = de_EbsBlockDevice(output[_eb], context);
      }
      if (output[_nD] != null) {
        contents[_ND] = (0, import_smithy_client28.expectString)(output[_nD]);
      }
      if (output[_dN] != null) {
        contents[_DN] = (0, import_smithy_client28.expectString)(output[_dN]);
      }
      if (output[_vN] != null) {
        contents[_VN] = (0, import_smithy_client28.expectString)(output[_vN]);
      }
      return contents;
    }, "de_BlockDeviceMapping");
    var de_BlockDeviceMappingList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_BlockDeviceMapping(entry, context);
      });
    }, "de_BlockDeviceMappingList");
    var de_BlockDeviceMappingResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_dN] != null) {
        contents[_DN] = (0, import_smithy_client28.expectString)(output[_dN]);
      }
      if (output[_vN] != null) {
        contents[_VN] = (0, import_smithy_client28.expectString)(output[_vN]);
      }
      if (output[_eb] != null) {
        contents[_E2] = de_EbsBlockDeviceResponse(output[_eb], context);
      }
      if (output[_nD] != null) {
        contents[_ND] = (0, import_smithy_client28.expectString)(output[_nD]);
      }
      return contents;
    }, "de_BlockDeviceMappingResponse");
    var de_BlockDeviceMappingResponseList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_BlockDeviceMappingResponse(entry, context);
      });
    }, "de_BlockDeviceMappingResponseList");
    var de_BlockPublicAccessStates = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iGBM] != null) {
        contents[_IGBM] = (0, import_smithy_client28.expectString)(output[_iGBM]);
      }
      return contents;
    }, "de_BlockPublicAccessStates");
    var de_BootModeTypeList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_BootModeTypeList");
    var de_BundleInstanceResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_bIT] != null) {
        contents[_BTu] = de_BundleTask(output[_bIT], context);
      }
      return contents;
    }, "de_BundleInstanceResult");
    var de_BundleTask = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iI] != null) {
        contents[_IIn] = (0, import_smithy_client28.expectString)(output[_iI]);
      }
      if (output[_bI] != null) {
        contents[_BIu] = (0, import_smithy_client28.expectString)(output[_bI]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_sT] != null) {
        contents[_STt] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_sT]));
      }
      if (output[_uT] != null) {
        contents[_UTp] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_uT]));
      }
      if (output[_sto] != null) {
        contents[_St] = de_Storage(output[_sto], context);
      }
      if (output[_pro] != null) {
        contents[_Prog] = (0, import_smithy_client28.expectString)(output[_pro]);
      }
      if (output[_er] != null) {
        contents[_BTE] = de_BundleTaskError(output[_er], context);
      }
      return contents;
    }, "de_BundleTask");
    var de_BundleTaskError = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_co] != null) {
        contents[_Cod] = (0, import_smithy_client28.expectString)(output[_co]);
      }
      if (output[_me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_me]);
      }
      return contents;
    }, "de_BundleTaskError");
    var de_BundleTaskList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_BundleTask(entry, context);
      });
    }, "de_BundleTaskList");
    var de_Byoasn = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_as] != null) {
        contents[_As] = (0, import_smithy_client28.expectString)(output[_as]);
      }
      if (output[_iIp] != null) {
        contents[_IIp] = (0, import_smithy_client28.expectString)(output[_iIp]);
      }
      if (output[_sMt] != null) {
        contents[_SMt] = (0, import_smithy_client28.expectString)(output[_sMt]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      return contents;
    }, "de_Byoasn");
    var de_ByoasnSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Byoasn(entry, context);
      });
    }, "de_ByoasnSet");
    var de_ByoipCidr = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ci] != null) {
        contents[_C2] = (0, import_smithy_client28.expectString)(output[_ci]);
      }
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      if (output.asnAssociationSet === "") {
        contents[_AAsns] = [];
      } else if (output[_aAS] != null && output[_aAS][_i] != null) {
        contents[_AAsns] = de_AsnAssociationSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_aAS][_i]), context);
      }
      if (output[_sMt] != null) {
        contents[_SMt] = (0, import_smithy_client28.expectString)(output[_sMt]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_nBG] != null) {
        contents[_NBG] = (0, import_smithy_client28.expectString)(output[_nBG]);
      }
      return contents;
    }, "de_ByoipCidr");
    var de_ByoipCidrSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ByoipCidr(entry, context);
      });
    }, "de_ByoipCidrSet");
    var de_CancelBundleTaskResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_bIT] != null) {
        contents[_BTu] = de_BundleTask(output[_bIT], context);
      }
      return contents;
    }, "de_CancelBundleTaskResult");
    var de_CancelCapacityReservationFleetError = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_co] != null) {
        contents[_Cod] = (0, import_smithy_client28.expectString)(output[_co]);
      }
      if (output[_me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_me]);
      }
      return contents;
    }, "de_CancelCapacityReservationFleetError");
    var de_CancelCapacityReservationFleetsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.successfulFleetCancellationSet === "") {
        contents[_SFC] = [];
      } else if (output[_sFCS] != null && output[_sFCS][_i] != null) {
        contents[_SFC] = de_CapacityReservationFleetCancellationStateSet(
          (0, import_smithy_client28.getArrayIfSingleItem)(output[_sFCS][_i]),
          context
        );
      }
      if (output.failedFleetCancellationSet === "") {
        contents[_FFC] = [];
      } else if (output[_fFCS] != null && output[_fFCS][_i] != null) {
        contents[_FFC] = de_FailedCapacityReservationFleetCancellationResultSet(
          (0, import_smithy_client28.getArrayIfSingleItem)(output[_fFCS][_i]),
          context
        );
      }
      return contents;
    }, "de_CancelCapacityReservationFleetsResult");
    var de_CancelCapacityReservationResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_Ret] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      return contents;
    }, "de_CancelCapacityReservationResult");
    var de_CancelDeclarativePoliciesReportResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_Ret] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      return contents;
    }, "de_CancelDeclarativePoliciesReportResult");
    var de_CancelImageLaunchPermissionResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_Ret] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      return contents;
    }, "de_CancelImageLaunchPermissionResult");
    var de_CancelImportTaskResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iTI] != null) {
        contents[_ITI] = (0, import_smithy_client28.expectString)(output[_iTI]);
      }
      if (output[_pSr] != null) {
        contents[_PSre] = (0, import_smithy_client28.expectString)(output[_pSr]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      return contents;
    }, "de_CancelImportTaskResult");
    var de_CancelledSpotInstanceRequest = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sIRI] != null) {
        contents[_SIRIp] = (0, import_smithy_client28.expectString)(output[_sIRI]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      return contents;
    }, "de_CancelledSpotInstanceRequest");
    var de_CancelledSpotInstanceRequestList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_CancelledSpotInstanceRequest(entry, context);
      });
    }, "de_CancelledSpotInstanceRequestList");
    var de_CancelReservedInstancesListingResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.reservedInstancesListingsSet === "") {
        contents[_RIL] = [];
      } else if (output[_rILS] != null && output[_rILS][_i] != null) {
        contents[_RIL] = de_ReservedInstancesListingList((0, import_smithy_client28.getArrayIfSingleItem)(output[_rILS][_i]), context);
      }
      return contents;
    }, "de_CancelReservedInstancesListingResult");
    var de_CancelSpotFleetRequestsError = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_co] != null) {
        contents[_Cod] = (0, import_smithy_client28.expectString)(output[_co]);
      }
      if (output[_me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_me]);
      }
      return contents;
    }, "de_CancelSpotFleetRequestsError");
    var de_CancelSpotFleetRequestsErrorItem = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_er] != null) {
        contents[_Er] = de_CancelSpotFleetRequestsError(output[_er], context);
      }
      if (output[_sFRI] != null) {
        contents[_SFRIp] = (0, import_smithy_client28.expectString)(output[_sFRI]);
      }
      return contents;
    }, "de_CancelSpotFleetRequestsErrorItem");
    var de_CancelSpotFleetRequestsErrorSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_CancelSpotFleetRequestsErrorItem(entry, context);
      });
    }, "de_CancelSpotFleetRequestsErrorSet");
    var de_CancelSpotFleetRequestsResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.successfulFleetRequestSet === "") {
        contents[_SFR] = [];
      } else if (output[_sFRS] != null && output[_sFRS][_i] != null) {
        contents[_SFR] = de_CancelSpotFleetRequestsSuccessSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_sFRS][_i]), context);
      }
      if (output.unsuccessfulFleetRequestSet === "") {
        contents[_UFR] = [];
      } else if (output[_uFRS] != null && output[_uFRS][_i] != null) {
        contents[_UFR] = de_CancelSpotFleetRequestsErrorSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_uFRS][_i]), context);
      }
      return contents;
    }, "de_CancelSpotFleetRequestsResponse");
    var de_CancelSpotFleetRequestsSuccessItem = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cSFRS] != null) {
        contents[_CSFRS] = (0, import_smithy_client28.expectString)(output[_cSFRS]);
      }
      if (output[_pSFRS] != null) {
        contents[_PSFRS] = (0, import_smithy_client28.expectString)(output[_pSFRS]);
      }
      if (output[_sFRI] != null) {
        contents[_SFRIp] = (0, import_smithy_client28.expectString)(output[_sFRI]);
      }
      return contents;
    }, "de_CancelSpotFleetRequestsSuccessItem");
    var de_CancelSpotFleetRequestsSuccessSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_CancelSpotFleetRequestsSuccessItem(entry, context);
      });
    }, "de_CancelSpotFleetRequestsSuccessSet");
    var de_CancelSpotInstanceRequestsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.spotInstanceRequestSet === "") {
        contents[_CSIRa] = [];
      } else if (output[_sIRS] != null && output[_sIRS][_i] != null) {
        contents[_CSIRa] = de_CancelledSpotInstanceRequestList((0, import_smithy_client28.getArrayIfSingleItem)(output[_sIRS][_i]), context);
      }
      return contents;
    }, "de_CancelSpotInstanceRequestsResult");
    var de_CapacityAllocation = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aTl] != null) {
        contents[_ATl] = (0, import_smithy_client28.expectString)(output[_aTl]);
      }
      if (output[_cou] != null) {
        contents[_Cou] = (0, import_smithy_client28.strictParseInt32)(output[_cou]);
      }
      return contents;
    }, "de_CapacityAllocation");
    var de_CapacityAllocations = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_CapacityAllocation(entry, context);
      });
    }, "de_CapacityAllocations");
    var de_CapacityBlock = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cBI] != null) {
        contents[_CBIa] = (0, import_smithy_client28.expectString)(output[_cBI]);
      }
      if (output[_uTl] != null) {
        contents[_UTl] = (0, import_smithy_client28.expectString)(output[_uTl]);
      }
      if (output[_aZ] != null) {
        contents[_AZ] = (0, import_smithy_client28.expectString)(output[_aZ]);
      }
      if (output[_aZI] != null) {
        contents[_AZI] = (0, import_smithy_client28.expectString)(output[_aZI]);
      }
      if (output.capacityReservationIdSet === "") {
        contents[_CRIa] = [];
      } else if (output[_cRIS] != null && output[_cRIS][_i] != null) {
        contents[_CRIa] = de_CapacityReservationIdSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_cRIS][_i]), context);
      }
      if (output[_sD] != null) {
        contents[_SD] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_sD]));
      }
      if (output[_eD] != null) {
        contents[_ED] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_eD]));
      }
      if (output[_cD] != null) {
        contents[_CDr] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_cD]));
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      return contents;
    }, "de_CapacityBlock");
    var de_CapacityBlockExtension = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cRI] != null) {
        contents[_CRI] = (0, import_smithy_client28.expectString)(output[_cRI]);
      }
      if (output[_iT] != null) {
        contents[_IT] = (0, import_smithy_client28.expectString)(output[_iT]);
      }
      if (output[_iC] != null) {
        contents[_IC] = (0, import_smithy_client28.strictParseInt32)(output[_iC]);
      }
      if (output[_aZ] != null) {
        contents[_AZ] = (0, import_smithy_client28.expectString)(output[_aZ]);
      }
      if (output[_aZI] != null) {
        contents[_AZI] = (0, import_smithy_client28.expectString)(output[_aZI]);
      }
      if (output[_cBEOI] != null) {
        contents[_CBEOI] = (0, import_smithy_client28.expectString)(output[_cBEOI]);
      }
      if (output[_cBEDH] != null) {
        contents[_CBEDH] = (0, import_smithy_client28.strictParseInt32)(output[_cBEDH]);
      }
      if (output[_cBES] != null) {
        contents[_CBES] = (0, import_smithy_client28.expectString)(output[_cBES]);
      }
      if (output[_cBEPD] != null) {
        contents[_CBEPD] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_cBEPD]));
      }
      if (output[_cBESD] != null) {
        contents[_CBESD] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_cBESD]));
      }
      if (output[_cBEED] != null) {
        contents[_CBEED] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_cBEED]));
      }
      if (output[_uF] != null) {
        contents[_UF] = (0, import_smithy_client28.expectString)(output[_uF]);
      }
      if (output[_cC] != null) {
        contents[_CCu] = (0, import_smithy_client28.expectString)(output[_cC]);
      }
      return contents;
    }, "de_CapacityBlockExtension");
    var de_CapacityBlockExtensionOffering = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cBEOI] != null) {
        contents[_CBEOI] = (0, import_smithy_client28.expectString)(output[_cBEOI]);
      }
      if (output[_iT] != null) {
        contents[_IT] = (0, import_smithy_client28.expectString)(output[_iT]);
      }
      if (output[_iC] != null) {
        contents[_IC] = (0, import_smithy_client28.strictParseInt32)(output[_iC]);
      }
      if (output[_aZ] != null) {
        contents[_AZ] = (0, import_smithy_client28.expectString)(output[_aZ]);
      }
      if (output[_aZI] != null) {
        contents[_AZI] = (0, import_smithy_client28.expectString)(output[_aZI]);
      }
      if (output[_sD] != null) {
        contents[_SD] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_sD]));
      }
      if (output[_cBESD] != null) {
        contents[_CBESD] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_cBESD]));
      }
      if (output[_cBEED] != null) {
        contents[_CBEED] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_cBEED]));
      }
      if (output[_cBEDH] != null) {
        contents[_CBEDH] = (0, import_smithy_client28.strictParseInt32)(output[_cBEDH]);
      }
      if (output[_uF] != null) {
        contents[_UF] = (0, import_smithy_client28.expectString)(output[_uF]);
      }
      if (output[_cC] != null) {
        contents[_CCu] = (0, import_smithy_client28.expectString)(output[_cC]);
      }
      if (output[_t] != null) {
        contents[_Te] = (0, import_smithy_client28.expectString)(output[_t]);
      }
      return contents;
    }, "de_CapacityBlockExtensionOffering");
    var de_CapacityBlockExtensionOfferingSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_CapacityBlockExtensionOffering(entry, context);
      });
    }, "de_CapacityBlockExtensionOfferingSet");
    var de_CapacityBlockExtensionSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_CapacityBlockExtension(entry, context);
      });
    }, "de_CapacityBlockExtensionSet");
    var de_CapacityBlockOffering = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cBOI] != null) {
        contents[_CBOI] = (0, import_smithy_client28.expectString)(output[_cBOI]);
      }
      if (output[_iT] != null) {
        contents[_IT] = (0, import_smithy_client28.expectString)(output[_iT]);
      }
      if (output[_aZ] != null) {
        contents[_AZ] = (0, import_smithy_client28.expectString)(output[_aZ]);
      }
      if (output[_iC] != null) {
        contents[_IC] = (0, import_smithy_client28.strictParseInt32)(output[_iC]);
      }
      if (output[_sD] != null) {
        contents[_SD] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_sD]));
      }
      if (output[_eD] != null) {
        contents[_ED] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_eD]));
      }
      if (output[_cBDH] != null) {
        contents[_CBDH] = (0, import_smithy_client28.strictParseInt32)(output[_cBDH]);
      }
      if (output[_uF] != null) {
        contents[_UF] = (0, import_smithy_client28.expectString)(output[_uF]);
      }
      if (output[_cC] != null) {
        contents[_CCu] = (0, import_smithy_client28.expectString)(output[_cC]);
      }
      if (output[_t] != null) {
        contents[_Te] = (0, import_smithy_client28.expectString)(output[_t]);
      }
      if (output[_uTl] != null) {
        contents[_UTl] = (0, import_smithy_client28.expectString)(output[_uTl]);
      }
      if (output[_uC] != null) {
        contents[_UC] = (0, import_smithy_client28.strictParseInt32)(output[_uC]);
      }
      if (output[_cBDM] != null) {
        contents[_CBDM] = (0, import_smithy_client28.strictParseInt32)(output[_cBDM]);
      }
      return contents;
    }, "de_CapacityBlockOffering");
    var de_CapacityBlockOfferingSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_CapacityBlockOffering(entry, context);
      });
    }, "de_CapacityBlockOfferingSet");
    var de_CapacityBlockSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_CapacityBlock(entry, context);
      });
    }, "de_CapacityBlockSet");
    var de_CapacityBlockStatus = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cBI] != null) {
        contents[_CBIa] = (0, import_smithy_client28.expectString)(output[_cBI]);
      }
      if (output[_iS] != null) {
        contents[_ISnte] = (0, import_smithy_client28.expectString)(output[_iS]);
      }
      if (output[_tC] != null) {
        contents[_TCo] = (0, import_smithy_client28.strictParseInt32)(output[_tC]);
      }
      if (output[_tAC] != null) {
        contents[_TAC] = (0, import_smithy_client28.strictParseInt32)(output[_tAC]);
      }
      if (output[_tUC] != null) {
        contents[_TUC] = (0, import_smithy_client28.strictParseInt32)(output[_tUC]);
      }
      if (output.capacityReservationStatusSet === "") {
        contents[_CRSap] = [];
      } else if (output[_cRSS] != null && output[_cRSS][_i] != null) {
        contents[_CRSap] = de_CapacityReservationStatusSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_cRSS][_i]), context);
      }
      return contents;
    }, "de_CapacityBlockStatus");
    var de_CapacityBlockStatusSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_CapacityBlockStatus(entry, context);
      });
    }, "de_CapacityBlockStatusSet");
    var de_CapacityReservation = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cRI] != null) {
        contents[_CRI] = (0, import_smithy_client28.expectString)(output[_cRI]);
      }
      if (output[_oI] != null) {
        contents[_OIwn] = (0, import_smithy_client28.expectString)(output[_oI]);
      }
      if (output[_cRA] != null) {
        contents[_CRA] = (0, import_smithy_client28.expectString)(output[_cRA]);
      }
      if (output[_aZI] != null) {
        contents[_AZI] = (0, import_smithy_client28.expectString)(output[_aZI]);
      }
      if (output[_iT] != null) {
        contents[_IT] = (0, import_smithy_client28.expectString)(output[_iT]);
      }
      if (output[_iPn] != null) {
        contents[_IPn] = (0, import_smithy_client28.expectString)(output[_iPn]);
      }
      if (output[_aZ] != null) {
        contents[_AZ] = (0, import_smithy_client28.expectString)(output[_aZ]);
      }
      if (output[_t] != null) {
        contents[_Te] = (0, import_smithy_client28.expectString)(output[_t]);
      }
      if (output[_tIC] != null) {
        contents[_TICo] = (0, import_smithy_client28.strictParseInt32)(output[_tIC]);
      }
      if (output[_aICv] != null) {
        contents[_AICv] = (0, import_smithy_client28.strictParseInt32)(output[_aICv]);
      }
      if (output[_eO] != null) {
        contents[_EO] = (0, import_smithy_client28.parseBoolean)(output[_eO]);
      }
      if (output[_eS] != null) {
        contents[_ES] = (0, import_smithy_client28.parseBoolean)(output[_eS]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_sD] != null) {
        contents[_SD] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_sD]));
      }
      if (output[_eD] != null) {
        contents[_ED] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_eD]));
      }
      if (output[_eDT] != null) {
        contents[_EDT] = (0, import_smithy_client28.expectString)(output[_eDT]);
      }
      if (output[_iMC] != null) {
        contents[_IMC] = (0, import_smithy_client28.expectString)(output[_iMC]);
      }
      if (output[_cD] != null) {
        contents[_CDr] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_cD]));
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_oA] != null) {
        contents[_OA] = (0, import_smithy_client28.expectString)(output[_oA]);
      }
      if (output[_cRFI] != null) {
        contents[_CRFIa] = (0, import_smithy_client28.expectString)(output[_cRFI]);
      }
      if (output[_pGA] != null) {
        contents[_PGA] = (0, import_smithy_client28.expectString)(output[_pGA]);
      }
      if (output.capacityAllocationSet === "") {
        contents[_CAa] = [];
      } else if (output[_cAS] != null && output[_cAS][_i] != null) {
        contents[_CAa] = de_CapacityAllocations((0, import_smithy_client28.getArrayIfSingleItem)(output[_cAS][_i]), context);
      }
      if (output[_rT] != null) {
        contents[_RTes] = (0, import_smithy_client28.expectString)(output[_rT]);
      }
      if (output[_uRBOI] != null) {
        contents[_URBOI] = (0, import_smithy_client28.expectString)(output[_uRBOI]);
      }
      if (output[_cIom] != null) {
        contents[_CIomm] = de_CapacityReservationCommitmentInfo(output[_cIom], context);
      }
      if (output[_dP] != null) {
        contents[_DP] = (0, import_smithy_client28.expectString)(output[_dP]);
      }
      if (output[_cBI] != null) {
        contents[_CBIa] = (0, import_smithy_client28.expectString)(output[_cBI]);
      }
      return contents;
    }, "de_CapacityReservation");
    var de_CapacityReservationBillingRequest = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cRI] != null) {
        contents[_CRI] = (0, import_smithy_client28.expectString)(output[_cRI]);
      }
      if (output[_rB] != null) {
        contents[_RB] = (0, import_smithy_client28.expectString)(output[_rB]);
      }
      if (output[_uRBOI] != null) {
        contents[_URBOI] = (0, import_smithy_client28.expectString)(output[_uRBOI]);
      }
      if (output[_lUT] != null) {
        contents[_LUT] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_lUT]));
      }
      if (output[_sta] != null) {
        contents[_Statu] = (0, import_smithy_client28.expectString)(output[_sta]);
      }
      if (output[_sMt] != null) {
        contents[_SMt] = (0, import_smithy_client28.expectString)(output[_sMt]);
      }
      if (output[_cRIa] != null) {
        contents[_CRIap] = de_CapacityReservationInfo(output[_cRIa], context);
      }
      return contents;
    }, "de_CapacityReservationBillingRequest");
    var de_CapacityReservationBillingRequestSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_CapacityReservationBillingRequest(entry, context);
      });
    }, "de_CapacityReservationBillingRequestSet");
    var de_CapacityReservationCommitmentInfo = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cIC] != null) {
        contents[_CIC] = (0, import_smithy_client28.strictParseInt32)(output[_cIC]);
      }
      if (output[_cED] != null) {
        contents[_CED] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_cED]));
      }
      return contents;
    }, "de_CapacityReservationCommitmentInfo");
    var de_CapacityReservationFleet = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cRFI] != null) {
        contents[_CRFIa] = (0, import_smithy_client28.expectString)(output[_cRFI]);
      }
      if (output[_cRFA] != null) {
        contents[_CRFA] = (0, import_smithy_client28.expectString)(output[_cRFA]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_tTC] != null) {
        contents[_TTC] = (0, import_smithy_client28.strictParseInt32)(output[_tTC]);
      }
      if (output[_tFC] != null) {
        contents[_TFC] = (0, import_smithy_client28.strictParseFloat)(output[_tFC]);
      }
      if (output[_t] != null) {
        contents[_Te] = (0, import_smithy_client28.expectString)(output[_t]);
      }
      if (output[_eD] != null) {
        contents[_ED] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_eD]));
      }
      if (output[_cTr] != null) {
        contents[_CTr] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_cTr]));
      }
      if (output[_iMC] != null) {
        contents[_IMC] = (0, import_smithy_client28.expectString)(output[_iMC]);
      }
      if (output[_aSl] != null) {
        contents[_AS] = (0, import_smithy_client28.expectString)(output[_aSl]);
      }
      if (output.instanceTypeSpecificationSet === "") {
        contents[_ITS] = [];
      } else if (output[_iTSS] != null && output[_iTSS][_i] != null) {
        contents[_ITS] = de_FleetCapacityReservationSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_iTSS][_i]), context);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      return contents;
    }, "de_CapacityReservationFleet");
    var de_CapacityReservationFleetCancellationState = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cFS] != null) {
        contents[_CFS] = (0, import_smithy_client28.expectString)(output[_cFS]);
      }
      if (output[_pFS] != null) {
        contents[_PFS] = (0, import_smithy_client28.expectString)(output[_pFS]);
      }
      if (output[_cRFI] != null) {
        contents[_CRFIa] = (0, import_smithy_client28.expectString)(output[_cRFI]);
      }
      return contents;
    }, "de_CapacityReservationFleetCancellationState");
    var de_CapacityReservationFleetCancellationStateSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_CapacityReservationFleetCancellationState(entry, context);
      });
    }, "de_CapacityReservationFleetCancellationStateSet");
    var de_CapacityReservationFleetSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_CapacityReservationFleet(entry, context);
      });
    }, "de_CapacityReservationFleetSet");
    var de_CapacityReservationGroup = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_gA] != null) {
        contents[_GA] = (0, import_smithy_client28.expectString)(output[_gA]);
      }
      if (output[_oI] != null) {
        contents[_OIwn] = (0, import_smithy_client28.expectString)(output[_oI]);
      }
      return contents;
    }, "de_CapacityReservationGroup");
    var de_CapacityReservationGroupSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_CapacityReservationGroup(entry, context);
      });
    }, "de_CapacityReservationGroupSet");
    var de_CapacityReservationIdSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_CapacityReservationIdSet");
    var de_CapacityReservationInfo = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iT] != null) {
        contents[_IT] = (0, import_smithy_client28.expectString)(output[_iT]);
      }
      if (output[_aZ] != null) {
        contents[_AZ] = (0, import_smithy_client28.expectString)(output[_aZ]);
      }
      if (output[_t] != null) {
        contents[_Te] = (0, import_smithy_client28.expectString)(output[_t]);
      }
      if (output[_aZI] != null) {
        contents[_AZI] = (0, import_smithy_client28.expectString)(output[_aZI]);
      }
      return contents;
    }, "de_CapacityReservationInfo");
    var de_CapacityReservationOptions = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_uS] != null) {
        contents[_USs] = (0, import_smithy_client28.expectString)(output[_uS]);
      }
      return contents;
    }, "de_CapacityReservationOptions");
    var de_CapacityReservationSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_CapacityReservation(entry, context);
      });
    }, "de_CapacityReservationSet");
    var de_CapacityReservationSpecificationResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cRP] != null) {
        contents[_CRP] = (0, import_smithy_client28.expectString)(output[_cRP]);
      }
      if (output[_cRT] != null) {
        contents[_CRTa] = de_CapacityReservationTargetResponse(output[_cRT], context);
      }
      return contents;
    }, "de_CapacityReservationSpecificationResponse");
    var de_CapacityReservationStatus = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cRI] != null) {
        contents[_CRI] = (0, import_smithy_client28.expectString)(output[_cRI]);
      }
      if (output[_tC] != null) {
        contents[_TCo] = (0, import_smithy_client28.strictParseInt32)(output[_tC]);
      }
      if (output[_tAC] != null) {
        contents[_TAC] = (0, import_smithy_client28.strictParseInt32)(output[_tAC]);
      }
      if (output[_tUC] != null) {
        contents[_TUC] = (0, import_smithy_client28.strictParseInt32)(output[_tUC]);
      }
      return contents;
    }, "de_CapacityReservationStatus");
    var de_CapacityReservationStatusSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_CapacityReservationStatus(entry, context);
      });
    }, "de_CapacityReservationStatusSet");
    var de_CapacityReservationTargetResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cRI] != null) {
        contents[_CRI] = (0, import_smithy_client28.expectString)(output[_cRI]);
      }
      if (output[_cRRGA] != null) {
        contents[_CRRGA] = (0, import_smithy_client28.expectString)(output[_cRRGA]);
      }
      return contents;
    }, "de_CapacityReservationTargetResponse");
    var de_CarrierGateway = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cGI] != null) {
        contents[_CGI] = (0, import_smithy_client28.expectString)(output[_cGI]);
      }
      if (output[_vI] != null) {
        contents[_VI] = (0, import_smithy_client28.expectString)(output[_vI]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_oI] != null) {
        contents[_OIwn] = (0, import_smithy_client28.expectString)(output[_oI]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      return contents;
    }, "de_CarrierGateway");
    var de_CarrierGatewaySet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_CarrierGateway(entry, context);
      });
    }, "de_CarrierGatewaySet");
    var de_CertificateAuthentication = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cRCC] != null) {
        contents[_CRCC] = (0, import_smithy_client28.expectString)(output[_cRCC]);
      }
      return contents;
    }, "de_CertificateAuthentication");
    var de_CidrBlock = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cB] != null) {
        contents[_CB] = (0, import_smithy_client28.expectString)(output[_cB]);
      }
      return contents;
    }, "de_CidrBlock");
    var de_CidrBlockSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_CidrBlock(entry, context);
      });
    }, "de_CidrBlockSet");
    var de_ClassicLinkDnsSupport = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cLDS] != null) {
        contents[_CLDS] = (0, import_smithy_client28.parseBoolean)(output[_cLDS]);
      }
      if (output[_vI] != null) {
        contents[_VI] = (0, import_smithy_client28.expectString)(output[_vI]);
      }
      return contents;
    }, "de_ClassicLinkDnsSupport");
    var de_ClassicLinkDnsSupportList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ClassicLinkDnsSupport(entry, context);
      });
    }, "de_ClassicLinkDnsSupportList");
    var de_ClassicLinkInstance = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.groupSet === "") {
        contents[_G] = [];
      } else if (output[_gS] != null && output[_gS][_i] != null) {
        contents[_G] = de_GroupIdentifierList((0, import_smithy_client28.getArrayIfSingleItem)(output[_gS][_i]), context);
      }
      if (output[_iI] != null) {
        contents[_IIn] = (0, import_smithy_client28.expectString)(output[_iI]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_vI] != null) {
        contents[_VI] = (0, import_smithy_client28.expectString)(output[_vI]);
      }
      return contents;
    }, "de_ClassicLinkInstance");
    var de_ClassicLinkInstanceList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ClassicLinkInstance(entry, context);
      });
    }, "de_ClassicLinkInstanceList");
    var de_ClassicLoadBalancer = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_n] != null) {
        contents[_N] = (0, import_smithy_client28.expectString)(output[_n]);
      }
      return contents;
    }, "de_ClassicLoadBalancer");
    var de_ClassicLoadBalancers = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ClassicLoadBalancer(entry, context);
      });
    }, "de_ClassicLoadBalancers");
    var de_ClassicLoadBalancersConfig = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.classicLoadBalancers === "") {
        contents[_CLB] = [];
      } else if (output[_cLB] != null && output[_cLB][_i] != null) {
        contents[_CLB] = de_ClassicLoadBalancers((0, import_smithy_client28.getArrayIfSingleItem)(output[_cLB][_i]), context);
      }
      return contents;
    }, "de_ClassicLoadBalancersConfig");
    var de_ClientCertificateRevocationListStatus = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_co] != null) {
        contents[_Cod] = (0, import_smithy_client28.expectString)(output[_co]);
      }
      if (output[_me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_me]);
      }
      return contents;
    }, "de_ClientCertificateRevocationListStatus");
    var de_ClientConnectResponseOptions = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_en] != null) {
        contents[_En] = (0, import_smithy_client28.parseBoolean)(output[_en]);
      }
      if (output[_lFA] != null) {
        contents[_LFA] = (0, import_smithy_client28.expectString)(output[_lFA]);
      }
      if (output[_sta] != null) {
        contents[_Statu] = de_ClientVpnEndpointAttributeStatus(output[_sta], context);
      }
      return contents;
    }, "de_ClientConnectResponseOptions");
    var de_ClientLoginBannerResponseOptions = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_en] != null) {
        contents[_En] = (0, import_smithy_client28.parseBoolean)(output[_en]);
      }
      if (output[_bT] != null) {
        contents[_BT] = (0, import_smithy_client28.expectString)(output[_bT]);
      }
      return contents;
    }, "de_ClientLoginBannerResponseOptions");
    var de_ClientRouteEnforcementResponseOptions = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_enf] != null) {
        contents[_Enf] = (0, import_smithy_client28.parseBoolean)(output[_enf]);
      }
      return contents;
    }, "de_ClientRouteEnforcementResponseOptions");
    var de_ClientVpnAuthentication = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ty] != null) {
        contents[_T2] = (0, import_smithy_client28.expectString)(output[_ty]);
      }
      if (output[_aD] != null) {
        contents[_AD] = de_DirectoryServiceAuthentication(output[_aD], context);
      }
      if (output[_mA] != null) {
        contents[_MA] = de_CertificateAuthentication(output[_mA], context);
      }
      if (output[_fA] != null) {
        contents[_FA] = de_FederatedAuthentication(output[_fA], context);
      }
      return contents;
    }, "de_ClientVpnAuthentication");
    var de_ClientVpnAuthenticationList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ClientVpnAuthentication(entry, context);
      });
    }, "de_ClientVpnAuthenticationList");
    var de_ClientVpnAuthorizationRuleStatus = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_co] != null) {
        contents[_Cod] = (0, import_smithy_client28.expectString)(output[_co]);
      }
      if (output[_me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_me]);
      }
      return contents;
    }, "de_ClientVpnAuthorizationRuleStatus");
    var de_ClientVpnConnection = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cVEI] != null) {
        contents[_CVEI] = (0, import_smithy_client28.expectString)(output[_cVEI]);
      }
      if (output[_ti] != null) {
        contents[_Tim] = (0, import_smithy_client28.expectString)(output[_ti]);
      }
      if (output[_cIon] != null) {
        contents[_CIo] = (0, import_smithy_client28.expectString)(output[_cIon]);
      }
      if (output[_us] != null) {
        contents[_Us] = (0, import_smithy_client28.expectString)(output[_us]);
      }
      if (output[_cET] != null) {
        contents[_CETo] = (0, import_smithy_client28.expectString)(output[_cET]);
      }
      if (output[_iB] != null) {
        contents[_IB] = (0, import_smithy_client28.expectString)(output[_iB]);
      }
      if (output[_eB] != null) {
        contents[_EB] = (0, import_smithy_client28.expectString)(output[_eB]);
      }
      if (output[_iPng] != null) {
        contents[_IPng] = (0, import_smithy_client28.expectString)(output[_iPng]);
      }
      if (output[_eP] != null) {
        contents[_EPg] = (0, import_smithy_client28.expectString)(output[_eP]);
      }
      if (output[_cIl] != null) {
        contents[_CIli] = (0, import_smithy_client28.expectString)(output[_cIl]);
      }
      if (output[_cIA] != null) {
        contents[_CIA] = (0, import_smithy_client28.expectString)(output[_cIA]);
      }
      if (output[_cN] != null) {
        contents[_CN] = (0, import_smithy_client28.expectString)(output[_cN]);
      }
      if (output[_sta] != null) {
        contents[_Statu] = de_ClientVpnConnectionStatus(output[_sta], context);
      }
      if (output[_cETo] != null) {
        contents[_CETon] = (0, import_smithy_client28.expectString)(output[_cETo]);
      }
      if (output.postureComplianceStatusSet === "") {
        contents[_PCS] = [];
      } else if (output[_pCSS] != null && output[_pCSS][_i] != null) {
        contents[_PCS] = de_ValueStringList((0, import_smithy_client28.getArrayIfSingleItem)(output[_pCSS][_i]), context);
      }
      return contents;
    }, "de_ClientVpnConnection");
    var de_ClientVpnConnectionSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ClientVpnConnection(entry, context);
      });
    }, "de_ClientVpnConnectionSet");
    var de_ClientVpnConnectionStatus = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_co] != null) {
        contents[_Cod] = (0, import_smithy_client28.expectString)(output[_co]);
      }
      if (output[_me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_me]);
      }
      return contents;
    }, "de_ClientVpnConnectionStatus");
    var de_ClientVpnEndpoint = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cVEI] != null) {
        contents[_CVEI] = (0, import_smithy_client28.expectString)(output[_cVEI]);
      }
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      if (output[_sta] != null) {
        contents[_Statu] = de_ClientVpnEndpointStatus(output[_sta], context);
      }
      if (output[_cTre] != null) {
        contents[_CTre] = (0, import_smithy_client28.expectString)(output[_cTre]);
      }
      if (output[_dT] != null) {
        contents[_DTel] = (0, import_smithy_client28.expectString)(output[_dT]);
      }
      if (output[_dNn] != null) {
        contents[_DNn] = (0, import_smithy_client28.expectString)(output[_dNn]);
      }
      if (output[_cCB] != null) {
        contents[_CCB] = (0, import_smithy_client28.expectString)(output[_cCB]);
      }
      if (output.dnsServer === "") {
        contents[_DSn] = [];
      } else if (output[_dS] != null && output[_dS][_i] != null) {
        contents[_DSn] = de_ValueStringList((0, import_smithy_client28.getArrayIfSingleItem)(output[_dS][_i]), context);
      }
      if (output[_sTp] != null) {
        contents[_ST2] = (0, import_smithy_client28.parseBoolean)(output[_sTp]);
      }
      if (output[_vP] != null) {
        contents[_VPp] = (0, import_smithy_client28.expectString)(output[_vP]);
      }
      if (output[_tP] != null) {
        contents[_TPr] = (0, import_smithy_client28.expectString)(output[_tP]);
      }
      if (output[_vPp] != null) {
        contents[_VP] = (0, import_smithy_client28.strictParseInt32)(output[_vPp]);
      }
      if (output.associatedTargetNetwork === "") {
        contents[_ATN] = [];
      } else if (output[_aTN] != null && output[_aTN][_i] != null) {
        contents[_ATN] = de_AssociatedTargetNetworkSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_aTN][_i]), context);
      }
      if (output[_sCA] != null) {
        contents[_SCA] = (0, import_smithy_client28.expectString)(output[_sCA]);
      }
      if (output.authenticationOptions === "") {
        contents[_AO] = [];
      } else if (output[_aO] != null && output[_aO][_i] != null) {
        contents[_AO] = de_ClientVpnAuthenticationList((0, import_smithy_client28.getArrayIfSingleItem)(output[_aO][_i]), context);
      }
      if (output[_cLO] != null) {
        contents[_CLO] = de_ConnectionLogResponseOptions(output[_cLO], context);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output.securityGroupIdSet === "") {
        contents[_SGI] = [];
      } else if (output[_sGIS] != null && output[_sGIS][_i] != null) {
        contents[_SGI] = de_ClientVpnSecurityGroupIdSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_sGIS][_i]), context);
      }
      if (output[_vI] != null) {
        contents[_VI] = (0, import_smithy_client28.expectString)(output[_vI]);
      }
      if (output[_sSPU] != null) {
        contents[_SSPU] = (0, import_smithy_client28.expectString)(output[_sSPU]);
      }
      if (output[_cCO] != null) {
        contents[_CCO] = de_ClientConnectResponseOptions(output[_cCO], context);
      }
      if (output[_sTH] != null) {
        contents[_STH] = (0, import_smithy_client28.strictParseInt32)(output[_sTH]);
      }
      if (output[_cLBO] != null) {
        contents[_CLBO] = de_ClientLoginBannerResponseOptions(output[_cLBO], context);
      }
      if (output[_cREO] != null) {
        contents[_CREO] = de_ClientRouteEnforcementResponseOptions(output[_cREO], context);
      }
      if (output[_dOST] != null) {
        contents[_DOST] = (0, import_smithy_client28.parseBoolean)(output[_dOST]);
      }
      if (output[_eIAT] != null) {
        contents[_EIAT] = (0, import_smithy_client28.expectString)(output[_eIAT]);
      }
      if (output[_tIAT] != null) {
        contents[_TIAT] = (0, import_smithy_client28.expectString)(output[_tIAT]);
      }
      return contents;
    }, "de_ClientVpnEndpoint");
    var de_ClientVpnEndpointAttributeStatus = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_co] != null) {
        contents[_Cod] = (0, import_smithy_client28.expectString)(output[_co]);
      }
      if (output[_me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_me]);
      }
      return contents;
    }, "de_ClientVpnEndpointAttributeStatus");
    var de_ClientVpnEndpointStatus = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_co] != null) {
        contents[_Cod] = (0, import_smithy_client28.expectString)(output[_co]);
      }
      if (output[_me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_me]);
      }
      return contents;
    }, "de_ClientVpnEndpointStatus");
    var de_ClientVpnRoute = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cVEI] != null) {
        contents[_CVEI] = (0, import_smithy_client28.expectString)(output[_cVEI]);
      }
      if (output[_dC] != null) {
        contents[_DCe] = (0, import_smithy_client28.expectString)(output[_dC]);
      }
      if (output[_tSa] != null) {
        contents[_TSa] = (0, import_smithy_client28.expectString)(output[_tSa]);
      }
      if (output[_ty] != null) {
        contents[_T2] = (0, import_smithy_client28.expectString)(output[_ty]);
      }
      if (output[_o] != null) {
        contents[_Or] = (0, import_smithy_client28.expectString)(output[_o]);
      }
      if (output[_sta] != null) {
        contents[_Statu] = de_ClientVpnRouteStatus(output[_sta], context);
      }
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      return contents;
    }, "de_ClientVpnRoute");
    var de_ClientVpnRouteSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ClientVpnRoute(entry, context);
      });
    }, "de_ClientVpnRouteSet");
    var de_ClientVpnRouteStatus = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_co] != null) {
        contents[_Cod] = (0, import_smithy_client28.expectString)(output[_co]);
      }
      if (output[_me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_me]);
      }
      return contents;
    }, "de_ClientVpnRouteStatus");
    var de_ClientVpnSecurityGroupIdSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_ClientVpnSecurityGroupIdSet");
    var de_CloudWatchLogOptions = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_lE] != null) {
        contents[_LE] = (0, import_smithy_client28.parseBoolean)(output[_lE]);
      }
      if (output[_lGA] != null) {
        contents[_LGA] = (0, import_smithy_client28.expectString)(output[_lGA]);
      }
      if (output[_lOF] != null) {
        contents[_LOF] = (0, import_smithy_client28.expectString)(output[_lOF]);
      }
      return contents;
    }, "de_CloudWatchLogOptions");
    var de_CoipAddressUsage = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aI] != null) {
        contents[_AIl] = (0, import_smithy_client28.expectString)(output[_aI]);
      }
      if (output[_aAI] != null) {
        contents[_AAI] = (0, import_smithy_client28.expectString)(output[_aAI]);
      }
      if (output[_aSw] != null) {
        contents[_ASw] = (0, import_smithy_client28.expectString)(output[_aSw]);
      }
      if (output[_cIop] != null) {
        contents[_CIop] = (0, import_smithy_client28.expectString)(output[_cIop]);
      }
      return contents;
    }, "de_CoipAddressUsage");
    var de_CoipAddressUsageSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_CoipAddressUsage(entry, context);
      });
    }, "de_CoipAddressUsageSet");
    var de_CoipCidr = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ci] != null) {
        contents[_C2] = (0, import_smithy_client28.expectString)(output[_ci]);
      }
      if (output[_cPI] != null) {
        contents[_CPIo] = (0, import_smithy_client28.expectString)(output[_cPI]);
      }
      if (output[_lGRTI] != null) {
        contents[_LGRTI] = (0, import_smithy_client28.expectString)(output[_lGRTI]);
      }
      return contents;
    }, "de_CoipCidr");
    var de_CoipPool = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_pIo] != null) {
        contents[_PIo] = (0, import_smithy_client28.expectString)(output[_pIo]);
      }
      if (output.poolCidrSet === "") {
        contents[_PCo] = [];
      } else if (output[_pCS] != null && output[_pCS][_i] != null) {
        contents[_PCo] = de_ValueStringList((0, import_smithy_client28.getArrayIfSingleItem)(output[_pCS][_i]), context);
      }
      if (output[_lGRTI] != null) {
        contents[_LGRTI] = (0, import_smithy_client28.expectString)(output[_lGRTI]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_pA] != null) {
        contents[_PAo] = (0, import_smithy_client28.expectString)(output[_pA]);
      }
      return contents;
    }, "de_CoipPool");
    var de_CoipPoolSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_CoipPool(entry, context);
      });
    }, "de_CoipPoolSet");
    var de_ConfirmProductInstanceResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_Ret] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      if (output[_oI] != null) {
        contents[_OIwn] = (0, import_smithy_client28.expectString)(output[_oI]);
      }
      return contents;
    }, "de_ConfirmProductInstanceResult");
    var de_ConnectionLogResponseOptions = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_En] != null) {
        contents[_En] = (0, import_smithy_client28.parseBoolean)(output[_En]);
      }
      if (output[_CLG] != null) {
        contents[_CLG] = (0, import_smithy_client28.expectString)(output[_CLG]);
      }
      if (output[_CLS] != null) {
        contents[_CLS] = (0, import_smithy_client28.expectString)(output[_CLS]);
      }
      return contents;
    }, "de_ConnectionLogResponseOptions");
    var de_ConnectionNotification = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cNI] != null) {
        contents[_CNIon] = (0, import_smithy_client28.expectString)(output[_cNI]);
      }
      if (output[_sI] != null) {
        contents[_SIe] = (0, import_smithy_client28.expectString)(output[_sI]);
      }
      if (output[_vEI] != null) {
        contents[_VEIp] = (0, import_smithy_client28.expectString)(output[_vEI]);
      }
      if (output[_cNT] != null) {
        contents[_CNT] = (0, import_smithy_client28.expectString)(output[_cNT]);
      }
      if (output[_cNAo] != null) {
        contents[_CNAon] = (0, import_smithy_client28.expectString)(output[_cNAo]);
      }
      if (output.connectionEvents === "") {
        contents[_CEo] = [];
      } else if (output[_cE] != null && output[_cE][_i] != null) {
        contents[_CEo] = de_ValueStringList((0, import_smithy_client28.getArrayIfSingleItem)(output[_cE][_i]), context);
      }
      if (output[_cNS] != null) {
        contents[_CNS] = (0, import_smithy_client28.expectString)(output[_cNS]);
      }
      if (output[_sR] != null) {
        contents[_SRe] = (0, import_smithy_client28.expectString)(output[_sR]);
      }
      return contents;
    }, "de_ConnectionNotification");
    var de_ConnectionNotificationSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ConnectionNotification(entry, context);
      });
    }, "de_ConnectionNotificationSet");
    var de_ConnectionTrackingConfiguration = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tET] != null) {
        contents[_TET] = (0, import_smithy_client28.strictParseInt32)(output[_tET]);
      }
      if (output[_uST] != null) {
        contents[_UST] = (0, import_smithy_client28.strictParseInt32)(output[_uST]);
      }
      if (output[_uTd] != null) {
        contents[_UT] = (0, import_smithy_client28.strictParseInt32)(output[_uTd]);
      }
      return contents;
    }, "de_ConnectionTrackingConfiguration");
    var de_ConnectionTrackingSpecification = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tET] != null) {
        contents[_TET] = (0, import_smithy_client28.strictParseInt32)(output[_tET]);
      }
      if (output[_uTd] != null) {
        contents[_UT] = (0, import_smithy_client28.strictParseInt32)(output[_uTd]);
      }
      if (output[_uST] != null) {
        contents[_UST] = (0, import_smithy_client28.strictParseInt32)(output[_uST]);
      }
      return contents;
    }, "de_ConnectionTrackingSpecification");
    var de_ConnectionTrackingSpecificationRequest = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_TET] != null) {
        contents[_TET] = (0, import_smithy_client28.strictParseInt32)(output[_TET]);
      }
      if (output[_UST] != null) {
        contents[_UST] = (0, import_smithy_client28.strictParseInt32)(output[_UST]);
      }
      if (output[_UT] != null) {
        contents[_UT] = (0, import_smithy_client28.strictParseInt32)(output[_UT]);
      }
      return contents;
    }, "de_ConnectionTrackingSpecificationRequest");
    var de_ConnectionTrackingSpecificationResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tET] != null) {
        contents[_TET] = (0, import_smithy_client28.strictParseInt32)(output[_tET]);
      }
      if (output[_uST] != null) {
        contents[_UST] = (0, import_smithy_client28.strictParseInt32)(output[_uST]);
      }
      if (output[_uTd] != null) {
        contents[_UT] = (0, import_smithy_client28.strictParseInt32)(output[_uTd]);
      }
      return contents;
    }, "de_ConnectionTrackingSpecificationResponse");
    var de_ConversionTask = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cTI] != null) {
        contents[_CTI] = (0, import_smithy_client28.expectString)(output[_cTI]);
      }
      if (output[_eT] != null) {
        contents[_ETx] = (0, import_smithy_client28.expectString)(output[_eT]);
      }
      if (output[_iIm] != null) {
        contents[_IIm] = de_ImportInstanceTaskDetails(output[_iIm], context);
      }
      if (output[_iVm] != null) {
        contents[_IV] = de_ImportVolumeTaskDetails(output[_iVm], context);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_sMt] != null) {
        contents[_SMt] = (0, import_smithy_client28.expectString)(output[_sMt]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      return contents;
    }, "de_ConversionTask");
    var de_CopyFpgaImageResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_fII] != null) {
        contents[_FII] = (0, import_smithy_client28.expectString)(output[_fII]);
      }
      return contents;
    }, "de_CopyFpgaImageResult");
    var de_CopyImageResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iIma] != null) {
        contents[_IIma] = (0, import_smithy_client28.expectString)(output[_iIma]);
      }
      return contents;
    }, "de_CopyImageResult");
    var de_CopySnapshotResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_sIn] != null) {
        contents[_SIn] = (0, import_smithy_client28.expectString)(output[_sIn]);
      }
      return contents;
    }, "de_CopySnapshotResult");
    var de_CoreCountList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.strictParseInt32)(entry);
      });
    }, "de_CoreCountList");
    var de_CpuManufacturerSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_CpuManufacturerSet");
    var de_CpuOptions = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cCo] != null) {
        contents[_CC] = (0, import_smithy_client28.strictParseInt32)(output[_cCo]);
      }
      if (output[_tPC] != null) {
        contents[_TPC] = (0, import_smithy_client28.strictParseInt32)(output[_tPC]);
      }
      if (output[_aSS] != null) {
        contents[_ASS] = (0, import_smithy_client28.expectString)(output[_aSS]);
      }
      return contents;
    }, "de_CpuOptions");
    var de_CpuPerformanceFactor = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.referenceSet === "") {
        contents[_R] = [];
      } else if (output[_rS] != null && output[_rS][_i] != null) {
        contents[_R] = de_PerformanceFactorReferenceSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_rS][_i]), context);
      }
      return contents;
    }, "de_CpuPerformanceFactor");
    var de_CreateCapacityReservationBySplittingResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sCR] != null) {
        contents[_SCR] = de_CapacityReservation(output[_sCR], context);
      }
      if (output[_dCR] != null) {
        contents[_DCRe] = de_CapacityReservation(output[_dCR], context);
      }
      if (output[_iC] != null) {
        contents[_IC] = (0, import_smithy_client28.strictParseInt32)(output[_iC]);
      }
      return contents;
    }, "de_CreateCapacityReservationBySplittingResult");
    var de_CreateCapacityReservationFleetResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cRFI] != null) {
        contents[_CRFIa] = (0, import_smithy_client28.expectString)(output[_cRFI]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_tTC] != null) {
        contents[_TTC] = (0, import_smithy_client28.strictParseInt32)(output[_tTC]);
      }
      if (output[_tFC] != null) {
        contents[_TFC] = (0, import_smithy_client28.strictParseFloat)(output[_tFC]);
      }
      if (output[_iMC] != null) {
        contents[_IMC] = (0, import_smithy_client28.expectString)(output[_iMC]);
      }
      if (output[_aSl] != null) {
        contents[_AS] = (0, import_smithy_client28.expectString)(output[_aSl]);
      }
      if (output[_cTr] != null) {
        contents[_CTr] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_cTr]));
      }
      if (output[_eD] != null) {
        contents[_ED] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_eD]));
      }
      if (output[_t] != null) {
        contents[_Te] = (0, import_smithy_client28.expectString)(output[_t]);
      }
      if (output.fleetCapacityReservationSet === "") {
        contents[_FCR] = [];
      } else if (output[_fCRS] != null && output[_fCRS][_i] != null) {
        contents[_FCR] = de_FleetCapacityReservationSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_fCRS][_i]), context);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      return contents;
    }, "de_CreateCapacityReservationFleetResult");
    var de_CreateCapacityReservationResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cR] != null) {
        contents[_CRapa] = de_CapacityReservation(output[_cR], context);
      }
      return contents;
    }, "de_CreateCapacityReservationResult");
    var de_CreateCarrierGatewayResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cG] != null) {
        contents[_CG] = de_CarrierGateway(output[_cG], context);
      }
      return contents;
    }, "de_CreateCarrierGatewayResult");
    var de_CreateClientVpnEndpointResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cVEI] != null) {
        contents[_CVEI] = (0, import_smithy_client28.expectString)(output[_cVEI]);
      }
      if (output[_sta] != null) {
        contents[_Statu] = de_ClientVpnEndpointStatus(output[_sta], context);
      }
      if (output[_dNn] != null) {
        contents[_DNn] = (0, import_smithy_client28.expectString)(output[_dNn]);
      }
      return contents;
    }, "de_CreateClientVpnEndpointResult");
    var de_CreateClientVpnRouteResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sta] != null) {
        contents[_Statu] = de_ClientVpnRouteStatus(output[_sta], context);
      }
      return contents;
    }, "de_CreateClientVpnRouteResult");
    var de_CreateCoipCidrResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cCoi] != null) {
        contents[_CCo] = de_CoipCidr(output[_cCoi], context);
      }
      return contents;
    }, "de_CreateCoipCidrResult");
    var de_CreateCoipPoolResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cP] != null) {
        contents[_CP] = de_CoipPool(output[_cP], context);
      }
      return contents;
    }, "de_CreateCoipPoolResult");
    var de_CreateCustomerGatewayResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cGu] != null) {
        contents[_CGu] = de_CustomerGateway(output[_cGu], context);
      }
      return contents;
    }, "de_CreateCustomerGatewayResult");
    var de_CreateDefaultSubnetResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_su] != null) {
        contents[_Su] = de_Subnet(output[_su], context);
      }
      return contents;
    }, "de_CreateDefaultSubnetResult");
    var de_CreateDefaultVpcResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_vp] != null) {
        contents[_Vp] = de_Vpc(output[_vp], context);
      }
      return contents;
    }, "de_CreateDefaultVpcResult");
    var de_CreateDelegateMacVolumeOwnershipTaskResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_mMT] != null) {
        contents[_MMT] = de_MacModificationTask(output[_mMT], context);
      }
      return contents;
    }, "de_CreateDelegateMacVolumeOwnershipTaskResult");
    var de_CreateDhcpOptionsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_dO] != null) {
        contents[_DOh] = de_DhcpOptions(output[_dO], context);
      }
      return contents;
    }, "de_CreateDhcpOptionsResult");
    var de_CreateEgressOnlyInternetGatewayResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cT] != null) {
        contents[_CTl] = (0, import_smithy_client28.expectString)(output[_cT]);
      }
      if (output[_eOIG] != null) {
        contents[_EOIG] = de_EgressOnlyInternetGateway(output[_eOIG], context);
      }
      return contents;
    }, "de_CreateEgressOnlyInternetGatewayResult");
    var de_CreateFleetError = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_lTAO] != null) {
        contents[_LTAO] = de_LaunchTemplateAndOverridesResponse(output[_lTAO], context);
      }
      if (output[_l] != null) {
        contents[_Li] = (0, import_smithy_client28.expectString)(output[_l]);
      }
      if (output[_eC] != null) {
        contents[_EC] = (0, import_smithy_client28.expectString)(output[_eC]);
      }
      if (output[_eM] != null) {
        contents[_EM] = (0, import_smithy_client28.expectString)(output[_eM]);
      }
      return contents;
    }, "de_CreateFleetError");
    var de_CreateFleetErrorsSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_CreateFleetError(entry, context);
      });
    }, "de_CreateFleetErrorsSet");
    var de_CreateFleetInstance = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_lTAO] != null) {
        contents[_LTAO] = de_LaunchTemplateAndOverridesResponse(output[_lTAO], context);
      }
      if (output[_l] != null) {
        contents[_Li] = (0, import_smithy_client28.expectString)(output[_l]);
      }
      if (output.instanceIds === "") {
        contents[_IIns] = [];
      } else if (output[_iIn] != null && output[_iIn][_i] != null) {
        contents[_IIns] = de_InstanceIdsSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_iIn][_i]), context);
      }
      if (output[_iT] != null) {
        contents[_IT] = (0, import_smithy_client28.expectString)(output[_iT]);
      }
      if (output[_pl] != null) {
        contents[_Pla] = (0, import_smithy_client28.expectString)(output[_pl]);
      }
      return contents;
    }, "de_CreateFleetInstance");
    var de_CreateFleetInstancesSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_CreateFleetInstance(entry, context);
      });
    }, "de_CreateFleetInstancesSet");
    var de_CreateFleetResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_fIl] != null) {
        contents[_FIl] = (0, import_smithy_client28.expectString)(output[_fIl]);
      }
      if (output.errorSet === "") {
        contents[_Err] = [];
      } else if (output[_eSr] != null && output[_eSr][_i] != null) {
        contents[_Err] = de_CreateFleetErrorsSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_eSr][_i]), context);
      }
      if (output.fleetInstanceSet === "") {
        contents[_In] = [];
      } else if (output[_fIS] != null && output[_fIS][_i] != null) {
        contents[_In] = de_CreateFleetInstancesSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_fIS][_i]), context);
      }
      return contents;
    }, "de_CreateFleetResult");
    var de_CreateFlowLogsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cT] != null) {
        contents[_CTl] = (0, import_smithy_client28.expectString)(output[_cT]);
      }
      if (output.flowLogIdSet === "") {
        contents[_FLI] = [];
      } else if (output[_fLIS] != null && output[_fLIS][_i] != null) {
        contents[_FLI] = de_ValueStringList((0, import_smithy_client28.getArrayIfSingleItem)(output[_fLIS][_i]), context);
      }
      if (output.unsuccessful === "") {
        contents[_Un] = [];
      } else if (output[_u] != null && output[_u][_i] != null) {
        contents[_Un] = de_UnsuccessfulItemSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_u][_i]), context);
      }
      return contents;
    }, "de_CreateFlowLogsResult");
    var de_CreateFpgaImageResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_fII] != null) {
        contents[_FII] = (0, import_smithy_client28.expectString)(output[_fII]);
      }
      if (output[_fIGI] != null) {
        contents[_FIGI] = (0, import_smithy_client28.expectString)(output[_fIGI]);
      }
      return contents;
    }, "de_CreateFpgaImageResult");
    var de_CreateImageResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iIma] != null) {
        contents[_IIma] = (0, import_smithy_client28.expectString)(output[_iIma]);
      }
      return contents;
    }, "de_CreateImageResult");
    var de_CreateImageUsageReportResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_rI] != null) {
        contents[_RIep] = (0, import_smithy_client28.expectString)(output[_rI]);
      }
      return contents;
    }, "de_CreateImageUsageReportResult");
    var de_CreateInstanceConnectEndpointResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iCE] != null) {
        contents[_ICE] = de_Ec2InstanceConnectEndpoint(output[_iCE], context);
      }
      if (output[_cT] != null) {
        contents[_CTl] = (0, import_smithy_client28.expectString)(output[_cT]);
      }
      return contents;
    }, "de_CreateInstanceConnectEndpointResult");
    var de_CreateInstanceEventWindowResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iEW] != null) {
        contents[_IEW] = de_InstanceEventWindow(output[_iEW], context);
      }
      return contents;
    }, "de_CreateInstanceEventWindowResult");
    var de_CreateInstanceExportTaskResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_eTx] != null) {
        contents[_ETxp] = de_ExportTask(output[_eTx], context);
      }
      return contents;
    }, "de_CreateInstanceExportTaskResult");
    var de_CreateInternetGatewayResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iG] != null) {
        contents[_IGn] = de_InternetGateway(output[_iG], context);
      }
      return contents;
    }, "de_CreateInternetGatewayResult");
    var de_CreateIpamExternalResourceVerificationTokenResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iERVT] != null) {
        contents[_IERVT] = de_IpamExternalResourceVerificationToken(output[_iERVT], context);
      }
      return contents;
    }, "de_CreateIpamExternalResourceVerificationTokenResult");
    var de_CreateIpamPoolResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iPp] != null) {
        contents[_IPpa] = de_IpamPool(output[_iPp], context);
      }
      return contents;
    }, "de_CreateIpamPoolResult");
    var de_CreateIpamResourceDiscoveryResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iRD] != null) {
        contents[_IRD] = de_IpamResourceDiscovery(output[_iRD], context);
      }
      return contents;
    }, "de_CreateIpamResourceDiscoveryResult");
    var de_CreateIpamResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ip] != null) {
        contents[_Ipa] = de_Ipam(output[_ip], context);
      }
      return contents;
    }, "de_CreateIpamResult");
    var de_CreateIpamScopeResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iSp] != null) {
        contents[_ISpa] = de_IpamScope(output[_iSp], context);
      }
      return contents;
    }, "de_CreateIpamScopeResult");
    var de_CreateLaunchTemplateResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_lT] != null) {
        contents[_LTa] = de_LaunchTemplate(output[_lT], context);
      }
      if (output[_w] != null) {
        contents[_Wa] = de_ValidationWarning(output[_w], context);
      }
      return contents;
    }, "de_CreateLaunchTemplateResult");
    var de_CreateLaunchTemplateVersionResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_lTV] != null) {
        contents[_LTV] = de_LaunchTemplateVersion(output[_lTV], context);
      }
      if (output[_w] != null) {
        contents[_Wa] = de_ValidationWarning(output[_w], context);
      }
      return contents;
    }, "de_CreateLaunchTemplateVersionResult");
    var de_CreateLocalGatewayRouteResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ro] != null) {
        contents[_Rou] = de_LocalGatewayRoute(output[_ro], context);
      }
      return contents;
    }, "de_CreateLocalGatewayRouteResult");
    var de_CreateLocalGatewayRouteTableResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_lGRT] != null) {
        contents[_LGRT] = de_LocalGatewayRouteTable(output[_lGRT], context);
      }
      return contents;
    }, "de_CreateLocalGatewayRouteTableResult");
    var de_CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_lGRTVIGA] != null) {
        contents[_LGRTVIGA] = de_LocalGatewayRouteTableVirtualInterfaceGroupAssociation(output[_lGRTVIGA], context);
      }
      return contents;
    }, "de_CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationResult");
    var de_CreateLocalGatewayRouteTableVpcAssociationResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_lGRTVA] != null) {
        contents[_LGRTVA] = de_LocalGatewayRouteTableVpcAssociation(output[_lGRTVA], context);
      }
      return contents;
    }, "de_CreateLocalGatewayRouteTableVpcAssociationResult");
    var de_CreateLocalGatewayVirtualInterfaceGroupResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_lGVIG] != null) {
        contents[_LGVIG] = de_LocalGatewayVirtualInterfaceGroup(output[_lGVIG], context);
      }
      return contents;
    }, "de_CreateLocalGatewayVirtualInterfaceGroupResult");
    var de_CreateLocalGatewayVirtualInterfaceResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_lGVI] != null) {
        contents[_LGVI] = de_LocalGatewayVirtualInterface(output[_lGVI], context);
      }
      return contents;
    }, "de_CreateLocalGatewayVirtualInterfaceResult");
    var de_CreateMacSystemIntegrityProtectionModificationTaskResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_mMT] != null) {
        contents[_MMT] = de_MacModificationTask(output[_mMT], context);
      }
      return contents;
    }, "de_CreateMacSystemIntegrityProtectionModificationTaskResult");
    var de_CreateManagedPrefixListResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_pL] != null) {
        contents[_PLr] = de_ManagedPrefixList(output[_pL], context);
      }
      return contents;
    }, "de_CreateManagedPrefixListResult");
    var de_CreateNatGatewayResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cT] != null) {
        contents[_CTl] = (0, import_smithy_client28.expectString)(output[_cT]);
      }
      if (output[_nG] != null) {
        contents[_NG] = de_NatGateway(output[_nG], context);
      }
      return contents;
    }, "de_CreateNatGatewayResult");
    var de_CreateNetworkAclResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nA] != null) {
        contents[_NA] = de_NetworkAcl(output[_nA], context);
      }
      if (output[_cT] != null) {
        contents[_CTl] = (0, import_smithy_client28.expectString)(output[_cT]);
      }
      return contents;
    }, "de_CreateNetworkAclResult");
    var de_CreateNetworkInsightsAccessScopeResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nIAS] != null) {
        contents[_NIAS] = de_NetworkInsightsAccessScope(output[_nIAS], context);
      }
      if (output[_nIASC] != null) {
        contents[_NIASC] = de_NetworkInsightsAccessScopeContent(output[_nIASC], context);
      }
      return contents;
    }, "de_CreateNetworkInsightsAccessScopeResult");
    var de_CreateNetworkInsightsPathResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nIP] != null) {
        contents[_NIP] = de_NetworkInsightsPath(output[_nIP], context);
      }
      return contents;
    }, "de_CreateNetworkInsightsPathResult");
    var de_CreateNetworkInterfacePermissionResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iPnt] != null) {
        contents[_IPnt] = de_NetworkInterfacePermission(output[_iPnt], context);
      }
      return contents;
    }, "de_CreateNetworkInterfacePermissionResult");
    var de_CreateNetworkInterfaceResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nIe] != null) {
        contents[_NIet] = de_NetworkInterface(output[_nIe], context);
      }
      if (output[_cT] != null) {
        contents[_CTl] = (0, import_smithy_client28.expectString)(output[_cT]);
      }
      return contents;
    }, "de_CreateNetworkInterfaceResult");
    var de_CreatePlacementGroupResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_pG] != null) {
        contents[_PG] = de_PlacementGroup(output[_pG], context);
      }
      return contents;
    }, "de_CreatePlacementGroupResult");
    var de_CreatePublicIpv4PoolResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_pIo] != null) {
        contents[_PIo] = (0, import_smithy_client28.expectString)(output[_pIo]);
      }
      return contents;
    }, "de_CreatePublicIpv4PoolResult");
    var de_CreateReplaceRootVolumeTaskResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_rRVT] != null) {
        contents[_RRVT] = de_ReplaceRootVolumeTask(output[_rRVT], context);
      }
      return contents;
    }, "de_CreateReplaceRootVolumeTaskResult");
    var de_CreateReservedInstancesListingResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.reservedInstancesListingsSet === "") {
        contents[_RIL] = [];
      } else if (output[_rILS] != null && output[_rILS][_i] != null) {
        contents[_RIL] = de_ReservedInstancesListingList((0, import_smithy_client28.getArrayIfSingleItem)(output[_rILS][_i]), context);
      }
      return contents;
    }, "de_CreateReservedInstancesListingResult");
    var de_CreateRestoreImageTaskResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iIma] != null) {
        contents[_IIma] = (0, import_smithy_client28.expectString)(output[_iIma]);
      }
      return contents;
    }, "de_CreateRestoreImageTaskResult");
    var de_CreateRouteResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_Ret] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      return contents;
    }, "de_CreateRouteResult");
    var de_CreateRouteServerEndpointResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_rSE] != null) {
        contents[_RSE] = de_RouteServerEndpoint(output[_rSE], context);
      }
      return contents;
    }, "de_CreateRouteServerEndpointResult");
    var de_CreateRouteServerPeerResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_rSP] != null) {
        contents[_RSP] = de_RouteServerPeer(output[_rSP], context);
      }
      return contents;
    }, "de_CreateRouteServerPeerResult");
    var de_CreateRouteServerResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_rSo] != null) {
        contents[_RSo] = de_RouteServer(output[_rSo], context);
      }
      return contents;
    }, "de_CreateRouteServerResult");
    var de_CreateRouteTableResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_rTo] != null) {
        contents[_RTo] = de_RouteTable(output[_rTo], context);
      }
      if (output[_cT] != null) {
        contents[_CTl] = (0, import_smithy_client28.expectString)(output[_cT]);
      }
      return contents;
    }, "de_CreateRouteTableResult");
    var de_CreateSecurityGroupResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_gIr] != null) {
        contents[_GIr] = (0, import_smithy_client28.expectString)(output[_gIr]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_sGA] != null) {
        contents[_SGA] = (0, import_smithy_client28.expectString)(output[_sGA]);
      }
      return contents;
    }, "de_CreateSecurityGroupResult");
    var de_CreateSnapshotsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.snapshotSet === "") {
        contents[_Sn] = [];
      } else if (output[_sS] != null && output[_sS][_i] != null) {
        contents[_Sn] = de_SnapshotSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_sS][_i]), context);
      }
      return contents;
    }, "de_CreateSnapshotsResult");
    var de_CreateSpotDatafeedSubscriptionResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sDS] != null) {
        contents[_SDS] = de_SpotDatafeedSubscription(output[_sDS], context);
      }
      return contents;
    }, "de_CreateSpotDatafeedSubscriptionResult");
    var de_CreateStoreImageTaskResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_oK] != null) {
        contents[_OK] = (0, import_smithy_client28.expectString)(output[_oK]);
      }
      return contents;
    }, "de_CreateStoreImageTaskResult");
    var de_CreateSubnetCidrReservationResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sCRu] != null) {
        contents[_SCRu] = de_SubnetCidrReservation(output[_sCRu], context);
      }
      return contents;
    }, "de_CreateSubnetCidrReservationResult");
    var de_CreateSubnetResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_su] != null) {
        contents[_Su] = de_Subnet(output[_su], context);
      }
      return contents;
    }, "de_CreateSubnetResult");
    var de_CreateTrafficMirrorFilterResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tMF] != null) {
        contents[_TMF] = de_TrafficMirrorFilter(output[_tMF], context);
      }
      if (output[_cT] != null) {
        contents[_CTl] = (0, import_smithy_client28.expectString)(output[_cT]);
      }
      return contents;
    }, "de_CreateTrafficMirrorFilterResult");
    var de_CreateTrafficMirrorFilterRuleResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tMFR] != null) {
        contents[_TMFR] = de_TrafficMirrorFilterRule(output[_tMFR], context);
      }
      if (output[_cT] != null) {
        contents[_CTl] = (0, import_smithy_client28.expectString)(output[_cT]);
      }
      return contents;
    }, "de_CreateTrafficMirrorFilterRuleResult");
    var de_CreateTrafficMirrorSessionResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tMS] != null) {
        contents[_TMS] = de_TrafficMirrorSession(output[_tMS], context);
      }
      if (output[_cT] != null) {
        contents[_CTl] = (0, import_smithy_client28.expectString)(output[_cT]);
      }
      return contents;
    }, "de_CreateTrafficMirrorSessionResult");
    var de_CreateTrafficMirrorTargetResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tMT] != null) {
        contents[_TMT] = de_TrafficMirrorTarget(output[_tMT], context);
      }
      if (output[_cT] != null) {
        contents[_CTl] = (0, import_smithy_client28.expectString)(output[_cT]);
      }
      return contents;
    }, "de_CreateTrafficMirrorTargetResult");
    var de_CreateTransitGatewayConnectPeerResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tGCP] != null) {
        contents[_TGCP] = de_TransitGatewayConnectPeer(output[_tGCP], context);
      }
      return contents;
    }, "de_CreateTransitGatewayConnectPeerResult");
    var de_CreateTransitGatewayConnectResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tGC] != null) {
        contents[_TGCr] = de_TransitGatewayConnect(output[_tGC], context);
      }
      return contents;
    }, "de_CreateTransitGatewayConnectResult");
    var de_CreateTransitGatewayMulticastDomainResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tGMD] != null) {
        contents[_TGMD] = de_TransitGatewayMulticastDomain(output[_tGMD], context);
      }
      return contents;
    }, "de_CreateTransitGatewayMulticastDomainResult");
    var de_CreateTransitGatewayPeeringAttachmentResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tGPA] != null) {
        contents[_TGPA] = de_TransitGatewayPeeringAttachment(output[_tGPA], context);
      }
      return contents;
    }, "de_CreateTransitGatewayPeeringAttachmentResult");
    var de_CreateTransitGatewayPolicyTableResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tGPT] != null) {
        contents[_TGPT] = de_TransitGatewayPolicyTable(output[_tGPT], context);
      }
      return contents;
    }, "de_CreateTransitGatewayPolicyTableResult");
    var de_CreateTransitGatewayPrefixListReferenceResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tGPLR] != null) {
        contents[_TGPLR] = de_TransitGatewayPrefixListReference(output[_tGPLR], context);
      }
      return contents;
    }, "de_CreateTransitGatewayPrefixListReferenceResult");
    var de_CreateTransitGatewayResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tG] != null) {
        contents[_TGr] = de_TransitGateway(output[_tG], context);
      }
      return contents;
    }, "de_CreateTransitGatewayResult");
    var de_CreateTransitGatewayRouteResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ro] != null) {
        contents[_Rou] = de_TransitGatewayRoute(output[_ro], context);
      }
      return contents;
    }, "de_CreateTransitGatewayRouteResult");
    var de_CreateTransitGatewayRouteTableAnnouncementResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tGRTA] != null) {
        contents[_TGRTA] = de_TransitGatewayRouteTableAnnouncement(output[_tGRTA], context);
      }
      return contents;
    }, "de_CreateTransitGatewayRouteTableAnnouncementResult");
    var de_CreateTransitGatewayRouteTableResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tGRT] != null) {
        contents[_TGRT] = de_TransitGatewayRouteTable(output[_tGRT], context);
      }
      return contents;
    }, "de_CreateTransitGatewayRouteTableResult");
    var de_CreateTransitGatewayVpcAttachmentResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tGVA] != null) {
        contents[_TGVA] = de_TransitGatewayVpcAttachment(output[_tGVA], context);
      }
      return contents;
    }, "de_CreateTransitGatewayVpcAttachmentResult");
    var de_CreateVerifiedAccessEndpointResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_vAE] != null) {
        contents[_VAE] = de_VerifiedAccessEndpoint(output[_vAE], context);
      }
      return contents;
    }, "de_CreateVerifiedAccessEndpointResult");
    var de_CreateVerifiedAccessGroupResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_vAG] != null) {
        contents[_VAG] = de_VerifiedAccessGroup(output[_vAG], context);
      }
      return contents;
    }, "de_CreateVerifiedAccessGroupResult");
    var de_CreateVerifiedAccessInstanceResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_vAI] != null) {
        contents[_VAI] = de_VerifiedAccessInstance(output[_vAI], context);
      }
      return contents;
    }, "de_CreateVerifiedAccessInstanceResult");
    var de_CreateVerifiedAccessTrustProviderResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_vATP] != null) {
        contents[_VATP] = de_VerifiedAccessTrustProvider(output[_vATP], context);
      }
      return contents;
    }, "de_CreateVerifiedAccessTrustProviderResult");
    var de_CreateVolumePermission = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_uI] != null) {
        contents[_UIs] = (0, import_smithy_client28.expectString)(output[_uI]);
      }
      if (output[_g] != null) {
        contents[_Gr] = (0, import_smithy_client28.expectString)(output[_g]);
      }
      return contents;
    }, "de_CreateVolumePermission");
    var de_CreateVolumePermissionList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_CreateVolumePermission(entry, context);
      });
    }, "de_CreateVolumePermissionList");
    var de_CreateVpcBlockPublicAccessExclusionResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_vBPAE] != null) {
        contents[_VBPAE] = de_VpcBlockPublicAccessExclusion(output[_vBPAE], context);
      }
      return contents;
    }, "de_CreateVpcBlockPublicAccessExclusionResult");
    var de_CreateVpcEndpointConnectionNotificationResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cNo] != null) {
        contents[_CNo] = de_ConnectionNotification(output[_cNo], context);
      }
      if (output[_cT] != null) {
        contents[_CTl] = (0, import_smithy_client28.expectString)(output[_cT]);
      }
      return contents;
    }, "de_CreateVpcEndpointConnectionNotificationResult");
    var de_CreateVpcEndpointResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_vE] != null) {
        contents[_VE] = de_VpcEndpoint(output[_vE], context);
      }
      if (output[_cT] != null) {
        contents[_CTl] = (0, import_smithy_client28.expectString)(output[_cT]);
      }
      return contents;
    }, "de_CreateVpcEndpointResult");
    var de_CreateVpcEndpointServiceConfigurationResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sC] != null) {
        contents[_SCe] = de_ServiceConfiguration(output[_sC], context);
      }
      if (output[_cT] != null) {
        contents[_CTl] = (0, import_smithy_client28.expectString)(output[_cT]);
      }
      return contents;
    }, "de_CreateVpcEndpointServiceConfigurationResult");
    var de_CreateVpcPeeringConnectionResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_vPC] != null) {
        contents[_VPC] = de_VpcPeeringConnection(output[_vPC], context);
      }
      return contents;
    }, "de_CreateVpcPeeringConnectionResult");
    var de_CreateVpcResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_vp] != null) {
        contents[_Vp] = de_Vpc(output[_vp], context);
      }
      return contents;
    }, "de_CreateVpcResult");
    var de_CreateVpnConnectionResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_vC] != null) {
        contents[_VC] = de_VpnConnection(output[_vC], context);
      }
      return contents;
    }, "de_CreateVpnConnectionResult");
    var de_CreateVpnGatewayResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_vG] != null) {
        contents[_VG] = de_VpnGateway(output[_vG], context);
      }
      return contents;
    }, "de_CreateVpnGatewayResult");
    var de_CreditSpecification = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cCp] != null) {
        contents[_CCp] = (0, import_smithy_client28.expectString)(output[_cCp]);
      }
      return contents;
    }, "de_CreditSpecification");
    var de_CustomerGateway = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cAe] != null) {
        contents[_CA2] = (0, import_smithy_client28.expectString)(output[_cAe]);
      }
      if (output[_dN] != null) {
        contents[_DN] = (0, import_smithy_client28.expectString)(output[_dN]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_bAE] != null) {
        contents[_BAE] = (0, import_smithy_client28.expectString)(output[_bAE]);
      }
      if (output[_cGIu] != null) {
        contents[_CGIu] = (0, import_smithy_client28.expectString)(output[_cGIu]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_ty] != null) {
        contents[_T2] = (0, import_smithy_client28.expectString)(output[_ty]);
      }
      if (output[_iAp] != null) {
        contents[_IAp] = (0, import_smithy_client28.expectString)(output[_iAp]);
      }
      if (output[_bA] != null) {
        contents[_BA] = (0, import_smithy_client28.expectString)(output[_bA]);
      }
      return contents;
    }, "de_CustomerGateway");
    var de_CustomerGatewayList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_CustomerGateway(entry, context);
      });
    }, "de_CustomerGatewayList");
    var de_DataResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_id] != null) {
        contents[_Id] = (0, import_smithy_client28.expectString)(output[_id]);
      }
      if (output[_s] != null) {
        contents[_S] = (0, import_smithy_client28.expectString)(output[_s]);
      }
      if (output[_d] != null) {
        contents[_D] = (0, import_smithy_client28.expectString)(output[_d]);
      }
      if (output[_met] != null) {
        contents[_Met] = (0, import_smithy_client28.expectString)(output[_met]);
      }
      if (output[_stat] != null) {
        contents[_Sta] = (0, import_smithy_client28.expectString)(output[_stat]);
      }
      if (output[_pe] != null) {
        contents[_Per] = (0, import_smithy_client28.expectString)(output[_pe]);
      }
      if (output.metricPointSet === "") {
        contents[_MPe] = [];
      } else if (output[_mPS] != null && output[_mPS][_i] != null) {
        contents[_MPe] = de_MetricPoints((0, import_smithy_client28.getArrayIfSingleItem)(output[_mPS][_i]), context);
      }
      return contents;
    }, "de_DataResponse");
    var de_DataResponses = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_DataResponse(entry, context);
      });
    }, "de_DataResponses");
    var de_DeclarativePoliciesReport = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_rI] != null) {
        contents[_RIep] = (0, import_smithy_client28.expectString)(output[_rI]);
      }
      if (output[_sB] != null) {
        contents[_SB] = (0, import_smithy_client28.expectString)(output[_sB]);
      }
      if (output[_sP] != null) {
        contents[_SP] = (0, import_smithy_client28.expectString)(output[_sP]);
      }
      if (output[_tI] != null) {
        contents[_TIa] = (0, import_smithy_client28.expectString)(output[_tI]);
      }
      if (output[_sT] != null) {
        contents[_STt] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_sT]));
      }
      if (output[_eTn] != null) {
        contents[_ETn] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_eTn]));
      }
      if (output[_sta] != null) {
        contents[_Statu] = (0, import_smithy_client28.expectString)(output[_sta]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      return contents;
    }, "de_DeclarativePoliciesReport");
    var de_DeclarativePoliciesReportList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_DeclarativePoliciesReport(entry, context);
      });
    }, "de_DeclarativePoliciesReportList");
    var de_DedicatedHostIdList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_DedicatedHostIdList");
    var de_DeleteCarrierGatewayResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cG] != null) {
        contents[_CG] = de_CarrierGateway(output[_cG], context);
      }
      return contents;
    }, "de_DeleteCarrierGatewayResult");
    var de_DeleteClientVpnEndpointResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sta] != null) {
        contents[_Statu] = de_ClientVpnEndpointStatus(output[_sta], context);
      }
      return contents;
    }, "de_DeleteClientVpnEndpointResult");
    var de_DeleteClientVpnRouteResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sta] != null) {
        contents[_Statu] = de_ClientVpnRouteStatus(output[_sta], context);
      }
      return contents;
    }, "de_DeleteClientVpnRouteResult");
    var de_DeleteCoipCidrResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cCoi] != null) {
        contents[_CCo] = de_CoipCidr(output[_cCoi], context);
      }
      return contents;
    }, "de_DeleteCoipCidrResult");
    var de_DeleteCoipPoolResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cP] != null) {
        contents[_CP] = de_CoipPool(output[_cP], context);
      }
      return contents;
    }, "de_DeleteCoipPoolResult");
    var de_DeleteEgressOnlyInternetGatewayResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_rC] != null) {
        contents[_RCet] = (0, import_smithy_client28.parseBoolean)(output[_rC]);
      }
      return contents;
    }, "de_DeleteEgressOnlyInternetGatewayResult");
    var de_DeleteFleetError = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_co] != null) {
        contents[_Cod] = (0, import_smithy_client28.expectString)(output[_co]);
      }
      if (output[_me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_me]);
      }
      return contents;
    }, "de_DeleteFleetError");
    var de_DeleteFleetErrorItem = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_er] != null) {
        contents[_Er] = de_DeleteFleetError(output[_er], context);
      }
      if (output[_fIl] != null) {
        contents[_FIl] = (0, import_smithy_client28.expectString)(output[_fIl]);
      }
      return contents;
    }, "de_DeleteFleetErrorItem");
    var de_DeleteFleetErrorSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_DeleteFleetErrorItem(entry, context);
      });
    }, "de_DeleteFleetErrorSet");
    var de_DeleteFleetsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.successfulFleetDeletionSet === "") {
        contents[_SFD] = [];
      } else if (output[_sFDS] != null && output[_sFDS][_i] != null) {
        contents[_SFD] = de_DeleteFleetSuccessSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_sFDS][_i]), context);
      }
      if (output.unsuccessfulFleetDeletionSet === "") {
        contents[_UFD] = [];
      } else if (output[_uFDS] != null && output[_uFDS][_i] != null) {
        contents[_UFD] = de_DeleteFleetErrorSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_uFDS][_i]), context);
      }
      return contents;
    }, "de_DeleteFleetsResult");
    var de_DeleteFleetSuccessItem = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cFS] != null) {
        contents[_CFS] = (0, import_smithy_client28.expectString)(output[_cFS]);
      }
      if (output[_pFS] != null) {
        contents[_PFS] = (0, import_smithy_client28.expectString)(output[_pFS]);
      }
      if (output[_fIl] != null) {
        contents[_FIl] = (0, import_smithy_client28.expectString)(output[_fIl]);
      }
      return contents;
    }, "de_DeleteFleetSuccessItem");
    var de_DeleteFleetSuccessSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_DeleteFleetSuccessItem(entry, context);
      });
    }, "de_DeleteFleetSuccessSet");
    var de_DeleteFlowLogsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.unsuccessful === "") {
        contents[_Un] = [];
      } else if (output[_u] != null && output[_u][_i] != null) {
        contents[_Un] = de_UnsuccessfulItemSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_u][_i]), context);
      }
      return contents;
    }, "de_DeleteFlowLogsResult");
    var de_DeleteFpgaImageResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_Ret] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      return contents;
    }, "de_DeleteFpgaImageResult");
    var de_DeleteImageUsageReportResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_Ret] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      return contents;
    }, "de_DeleteImageUsageReportResult");
    var de_DeleteInstanceConnectEndpointResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iCE] != null) {
        contents[_ICE] = de_Ec2InstanceConnectEndpoint(output[_iCE], context);
      }
      return contents;
    }, "de_DeleteInstanceConnectEndpointResult");
    var de_DeleteInstanceEventWindowResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iEWS] != null) {
        contents[_IEWS] = de_InstanceEventWindowStateChange(output[_iEWS], context);
      }
      return contents;
    }, "de_DeleteInstanceEventWindowResult");
    var de_DeleteIpamExternalResourceVerificationTokenResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iERVT] != null) {
        contents[_IERVT] = de_IpamExternalResourceVerificationToken(output[_iERVT], context);
      }
      return contents;
    }, "de_DeleteIpamExternalResourceVerificationTokenResult");
    var de_DeleteIpamPoolResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iPp] != null) {
        contents[_IPpa] = de_IpamPool(output[_iPp], context);
      }
      return contents;
    }, "de_DeleteIpamPoolResult");
    var de_DeleteIpamResourceDiscoveryResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iRD] != null) {
        contents[_IRD] = de_IpamResourceDiscovery(output[_iRD], context);
      }
      return contents;
    }, "de_DeleteIpamResourceDiscoveryResult");
    var de_DeleteIpamResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ip] != null) {
        contents[_Ipa] = de_Ipam(output[_ip], context);
      }
      return contents;
    }, "de_DeleteIpamResult");
    var de_DeleteIpamScopeResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iSp] != null) {
        contents[_ISpa] = de_IpamScope(output[_iSp], context);
      }
      return contents;
    }, "de_DeleteIpamScopeResult");
    var de_DeleteKeyPairResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_Ret] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      if (output[_kPI] != null) {
        contents[_KPI] = (0, import_smithy_client28.expectString)(output[_kPI]);
      }
      return contents;
    }, "de_DeleteKeyPairResult");
    var de_DeleteLaunchTemplateResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_lT] != null) {
        contents[_LTa] = de_LaunchTemplate(output[_lT], context);
      }
      return contents;
    }, "de_DeleteLaunchTemplateResult");
    var de_DeleteLaunchTemplateVersionsResponseErrorItem = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_lTI] != null) {
        contents[_LTI] = (0, import_smithy_client28.expectString)(output[_lTI]);
      }
      if (output[_lTN] != null) {
        contents[_LTN] = (0, import_smithy_client28.expectString)(output[_lTN]);
      }
      if (output[_vNe] != null) {
        contents[_VNe] = (0, import_smithy_client28.strictParseLong)(output[_vNe]);
      }
      if (output[_rE] != null) {
        contents[_REes] = de_ResponseError(output[_rE], context);
      }
      return contents;
    }, "de_DeleteLaunchTemplateVersionsResponseErrorItem");
    var de_DeleteLaunchTemplateVersionsResponseErrorSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_DeleteLaunchTemplateVersionsResponseErrorItem(entry, context);
      });
    }, "de_DeleteLaunchTemplateVersionsResponseErrorSet");
    var de_DeleteLaunchTemplateVersionsResponseSuccessItem = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_lTI] != null) {
        contents[_LTI] = (0, import_smithy_client28.expectString)(output[_lTI]);
      }
      if (output[_lTN] != null) {
        contents[_LTN] = (0, import_smithy_client28.expectString)(output[_lTN]);
      }
      if (output[_vNe] != null) {
        contents[_VNe] = (0, import_smithy_client28.strictParseLong)(output[_vNe]);
      }
      return contents;
    }, "de_DeleteLaunchTemplateVersionsResponseSuccessItem");
    var de_DeleteLaunchTemplateVersionsResponseSuccessSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_DeleteLaunchTemplateVersionsResponseSuccessItem(entry, context);
      });
    }, "de_DeleteLaunchTemplateVersionsResponseSuccessSet");
    var de_DeleteLaunchTemplateVersionsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.successfullyDeletedLaunchTemplateVersionSet === "") {
        contents[_SDLTV] = [];
      } else if (output[_sDLTVS] != null && output[_sDLTVS][_i] != null) {
        contents[_SDLTV] = de_DeleteLaunchTemplateVersionsResponseSuccessSet(
          (0, import_smithy_client28.getArrayIfSingleItem)(output[_sDLTVS][_i]),
          context
        );
      }
      if (output.unsuccessfullyDeletedLaunchTemplateVersionSet === "") {
        contents[_UDLTV] = [];
      } else if (output[_uDLTVS] != null && output[_uDLTVS][_i] != null) {
        contents[_UDLTV] = de_DeleteLaunchTemplateVersionsResponseErrorSet(
          (0, import_smithy_client28.getArrayIfSingleItem)(output[_uDLTVS][_i]),
          context
        );
      }
      return contents;
    }, "de_DeleteLaunchTemplateVersionsResult");
    var de_DeleteLocalGatewayRouteResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ro] != null) {
        contents[_Rou] = de_LocalGatewayRoute(output[_ro], context);
      }
      return contents;
    }, "de_DeleteLocalGatewayRouteResult");
    var de_DeleteLocalGatewayRouteTableResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_lGRT] != null) {
        contents[_LGRT] = de_LocalGatewayRouteTable(output[_lGRT], context);
      }
      return contents;
    }, "de_DeleteLocalGatewayRouteTableResult");
    var de_DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_lGRTVIGA] != null) {
        contents[_LGRTVIGA] = de_LocalGatewayRouteTableVirtualInterfaceGroupAssociation(output[_lGRTVIGA], context);
      }
      return contents;
    }, "de_DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationResult");
    var de_DeleteLocalGatewayRouteTableVpcAssociationResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_lGRTVA] != null) {
        contents[_LGRTVA] = de_LocalGatewayRouteTableVpcAssociation(output[_lGRTVA], context);
      }
      return contents;
    }, "de_DeleteLocalGatewayRouteTableVpcAssociationResult");
    var de_DeleteLocalGatewayVirtualInterfaceGroupResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_lGVIG] != null) {
        contents[_LGVIG] = de_LocalGatewayVirtualInterfaceGroup(output[_lGVIG], context);
      }
      return contents;
    }, "de_DeleteLocalGatewayVirtualInterfaceGroupResult");
    var de_DeleteLocalGatewayVirtualInterfaceResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_lGVI] != null) {
        contents[_LGVI] = de_LocalGatewayVirtualInterface(output[_lGVI], context);
      }
      return contents;
    }, "de_DeleteLocalGatewayVirtualInterfaceResult");
    var de_DeleteManagedPrefixListResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_pL] != null) {
        contents[_PLr] = de_ManagedPrefixList(output[_pL], context);
      }
      return contents;
    }, "de_DeleteManagedPrefixListResult");
    var de_DeleteNatGatewayResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nGI] != null) {
        contents[_NGI] = (0, import_smithy_client28.expectString)(output[_nGI]);
      }
      return contents;
    }, "de_DeleteNatGatewayResult");
    var de_DeleteNetworkInsightsAccessScopeAnalysisResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nIASAI] != null) {
        contents[_NIASAI] = (0, import_smithy_client28.expectString)(output[_nIASAI]);
      }
      return contents;
    }, "de_DeleteNetworkInsightsAccessScopeAnalysisResult");
    var de_DeleteNetworkInsightsAccessScopeResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nIASI] != null) {
        contents[_NIASI] = (0, import_smithy_client28.expectString)(output[_nIASI]);
      }
      return contents;
    }, "de_DeleteNetworkInsightsAccessScopeResult");
    var de_DeleteNetworkInsightsAnalysisResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nIAI] != null) {
        contents[_NIAI] = (0, import_smithy_client28.expectString)(output[_nIAI]);
      }
      return contents;
    }, "de_DeleteNetworkInsightsAnalysisResult");
    var de_DeleteNetworkInsightsPathResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nIPI] != null) {
        contents[_NIPI] = (0, import_smithy_client28.expectString)(output[_nIPI]);
      }
      return contents;
    }, "de_DeleteNetworkInsightsPathResult");
    var de_DeleteNetworkInterfacePermissionResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_Ret] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      return contents;
    }, "de_DeleteNetworkInterfacePermissionResult");
    var de_DeletePublicIpv4PoolResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_rV] != null) {
        contents[_RV] = (0, import_smithy_client28.parseBoolean)(output[_rV]);
      }
      return contents;
    }, "de_DeletePublicIpv4PoolResult");
    var de_DeleteQueuedReservedInstancesError = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_co] != null) {
        contents[_Cod] = (0, import_smithy_client28.expectString)(output[_co]);
      }
      if (output[_me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_me]);
      }
      return contents;
    }, "de_DeleteQueuedReservedInstancesError");
    var de_DeleteQueuedReservedInstancesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.successfulQueuedPurchaseDeletionSet === "") {
        contents[_SQPD] = [];
      } else if (output[_sQPDS] != null && output[_sQPDS][_i] != null) {
        contents[_SQPD] = de_SuccessfulQueuedPurchaseDeletionSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_sQPDS][_i]), context);
      }
      if (output.failedQueuedPurchaseDeletionSet === "") {
        contents[_FQPD] = [];
      } else if (output[_fQPDS] != null && output[_fQPDS][_i] != null) {
        contents[_FQPD] = de_FailedQueuedPurchaseDeletionSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_fQPDS][_i]), context);
      }
      return contents;
    }, "de_DeleteQueuedReservedInstancesResult");
    var de_DeleteRouteServerEndpointResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_rSE] != null) {
        contents[_RSE] = de_RouteServerEndpoint(output[_rSE], context);
      }
      return contents;
    }, "de_DeleteRouteServerEndpointResult");
    var de_DeleteRouteServerPeerResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_rSP] != null) {
        contents[_RSP] = de_RouteServerPeer(output[_rSP], context);
      }
      return contents;
    }, "de_DeleteRouteServerPeerResult");
    var de_DeleteRouteServerResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_rSo] != null) {
        contents[_RSo] = de_RouteServer(output[_rSo], context);
      }
      return contents;
    }, "de_DeleteRouteServerResult");
    var de_DeleteSecurityGroupResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_Ret] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      if (output[_gIr] != null) {
        contents[_GIr] = (0, import_smithy_client28.expectString)(output[_gIr]);
      }
      return contents;
    }, "de_DeleteSecurityGroupResult");
    var de_DeleteSnapshotResultSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_DeleteSnapshotReturnCode(entry, context);
      });
    }, "de_DeleteSnapshotResultSet");
    var de_DeleteSnapshotReturnCode = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sIn] != null) {
        contents[_SIn] = (0, import_smithy_client28.expectString)(output[_sIn]);
      }
      if (output[_rC] != null) {
        contents[_RCet] = (0, import_smithy_client28.expectString)(output[_rC]);
      }
      return contents;
    }, "de_DeleteSnapshotReturnCode");
    var de_DeleteSubnetCidrReservationResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_dSCR] != null) {
        contents[_DSCRe] = de_SubnetCidrReservation(output[_dSCR], context);
      }
      return contents;
    }, "de_DeleteSubnetCidrReservationResult");
    var de_DeleteTrafficMirrorFilterResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tMFI] != null) {
        contents[_TMFI] = (0, import_smithy_client28.expectString)(output[_tMFI]);
      }
      return contents;
    }, "de_DeleteTrafficMirrorFilterResult");
    var de_DeleteTrafficMirrorFilterRuleResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tMFRI] != null) {
        contents[_TMFRI] = (0, import_smithy_client28.expectString)(output[_tMFRI]);
      }
      return contents;
    }, "de_DeleteTrafficMirrorFilterRuleResult");
    var de_DeleteTrafficMirrorSessionResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tMSI] != null) {
        contents[_TMSI] = (0, import_smithy_client28.expectString)(output[_tMSI]);
      }
      return contents;
    }, "de_DeleteTrafficMirrorSessionResult");
    var de_DeleteTrafficMirrorTargetResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tMTI] != null) {
        contents[_TMTI] = (0, import_smithy_client28.expectString)(output[_tMTI]);
      }
      return contents;
    }, "de_DeleteTrafficMirrorTargetResult");
    var de_DeleteTransitGatewayConnectPeerResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tGCP] != null) {
        contents[_TGCP] = de_TransitGatewayConnectPeer(output[_tGCP], context);
      }
      return contents;
    }, "de_DeleteTransitGatewayConnectPeerResult");
    var de_DeleteTransitGatewayConnectResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tGC] != null) {
        contents[_TGCr] = de_TransitGatewayConnect(output[_tGC], context);
      }
      return contents;
    }, "de_DeleteTransitGatewayConnectResult");
    var de_DeleteTransitGatewayMulticastDomainResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tGMD] != null) {
        contents[_TGMD] = de_TransitGatewayMulticastDomain(output[_tGMD], context);
      }
      return contents;
    }, "de_DeleteTransitGatewayMulticastDomainResult");
    var de_DeleteTransitGatewayPeeringAttachmentResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tGPA] != null) {
        contents[_TGPA] = de_TransitGatewayPeeringAttachment(output[_tGPA], context);
      }
      return contents;
    }, "de_DeleteTransitGatewayPeeringAttachmentResult");
    var de_DeleteTransitGatewayPolicyTableResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tGPT] != null) {
        contents[_TGPT] = de_TransitGatewayPolicyTable(output[_tGPT], context);
      }
      return contents;
    }, "de_DeleteTransitGatewayPolicyTableResult");
    var de_DeleteTransitGatewayPrefixListReferenceResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tGPLR] != null) {
        contents[_TGPLR] = de_TransitGatewayPrefixListReference(output[_tGPLR], context);
      }
      return contents;
    }, "de_DeleteTransitGatewayPrefixListReferenceResult");
    var de_DeleteTransitGatewayResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tG] != null) {
        contents[_TGr] = de_TransitGateway(output[_tG], context);
      }
      return contents;
    }, "de_DeleteTransitGatewayResult");
    var de_DeleteTransitGatewayRouteResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ro] != null) {
        contents[_Rou] = de_TransitGatewayRoute(output[_ro], context);
      }
      return contents;
    }, "de_DeleteTransitGatewayRouteResult");
    var de_DeleteTransitGatewayRouteTableAnnouncementResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tGRTA] != null) {
        contents[_TGRTA] = de_TransitGatewayRouteTableAnnouncement(output[_tGRTA], context);
      }
      return contents;
    }, "de_DeleteTransitGatewayRouteTableAnnouncementResult");
    var de_DeleteTransitGatewayRouteTableResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tGRT] != null) {
        contents[_TGRT] = de_TransitGatewayRouteTable(output[_tGRT], context);
      }
      return contents;
    }, "de_DeleteTransitGatewayRouteTableResult");
    var de_DeleteTransitGatewayVpcAttachmentResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tGVA] != null) {
        contents[_TGVA] = de_TransitGatewayVpcAttachment(output[_tGVA], context);
      }
      return contents;
    }, "de_DeleteTransitGatewayVpcAttachmentResult");
    var de_DeleteVerifiedAccessEndpointResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_vAE] != null) {
        contents[_VAE] = de_VerifiedAccessEndpoint(output[_vAE], context);
      }
      return contents;
    }, "de_DeleteVerifiedAccessEndpointResult");
    var de_DeleteVerifiedAccessGroupResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_vAG] != null) {
        contents[_VAG] = de_VerifiedAccessGroup(output[_vAG], context);
      }
      return contents;
    }, "de_DeleteVerifiedAccessGroupResult");
    var de_DeleteVerifiedAccessInstanceResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_vAI] != null) {
        contents[_VAI] = de_VerifiedAccessInstance(output[_vAI], context);
      }
      return contents;
    }, "de_DeleteVerifiedAccessInstanceResult");
    var de_DeleteVerifiedAccessTrustProviderResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_vATP] != null) {
        contents[_VATP] = de_VerifiedAccessTrustProvider(output[_vATP], context);
      }
      return contents;
    }, "de_DeleteVerifiedAccessTrustProviderResult");
    var de_DeleteVpcBlockPublicAccessExclusionResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_vBPAE] != null) {
        contents[_VBPAE] = de_VpcBlockPublicAccessExclusion(output[_vBPAE], context);
      }
      return contents;
    }, "de_DeleteVpcBlockPublicAccessExclusionResult");
    var de_DeleteVpcEndpointConnectionNotificationsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.unsuccessful === "") {
        contents[_Un] = [];
      } else if (output[_u] != null && output[_u][_i] != null) {
        contents[_Un] = de_UnsuccessfulItemSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_u][_i]), context);
      }
      return contents;
    }, "de_DeleteVpcEndpointConnectionNotificationsResult");
    var de_DeleteVpcEndpointServiceConfigurationsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.unsuccessful === "") {
        contents[_Un] = [];
      } else if (output[_u] != null && output[_u][_i] != null) {
        contents[_Un] = de_UnsuccessfulItemSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_u][_i]), context);
      }
      return contents;
    }, "de_DeleteVpcEndpointServiceConfigurationsResult");
    var de_DeleteVpcEndpointsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.unsuccessful === "") {
        contents[_Un] = [];
      } else if (output[_u] != null && output[_u][_i] != null) {
        contents[_Un] = de_UnsuccessfulItemSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_u][_i]), context);
      }
      return contents;
    }, "de_DeleteVpcEndpointsResult");
    var de_DeleteVpcPeeringConnectionResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_Ret] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      return contents;
    }, "de_DeleteVpcPeeringConnectionResult");
    var de_DeprovisionByoipCidrResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_bC] != null) {
        contents[_BC] = de_ByoipCidr(output[_bC], context);
      }
      return contents;
    }, "de_DeprovisionByoipCidrResult");
    var de_DeprovisionedAddressSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_DeprovisionedAddressSet");
    var de_DeprovisionIpamByoasnResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_b] != null) {
        contents[_Byo] = de_Byoasn(output[_b], context);
      }
      return contents;
    }, "de_DeprovisionIpamByoasnResult");
    var de_DeprovisionIpamPoolCidrResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iPC] != null) {
        contents[_IPCpa] = de_IpamPoolCidr(output[_iPC], context);
      }
      return contents;
    }, "de_DeprovisionIpamPoolCidrResult");
    var de_DeprovisionPublicIpv4PoolCidrResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_pIo] != null) {
        contents[_PIo] = (0, import_smithy_client28.expectString)(output[_pIo]);
      }
      if (output.deprovisionedAddressSet === "") {
        contents[_DAep] = [];
      } else if (output[_dASe] != null && output[_dASe][_i] != null) {
        contents[_DAep] = de_DeprovisionedAddressSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_dASe][_i]), context);
      }
      return contents;
    }, "de_DeprovisionPublicIpv4PoolCidrResult");
    var de_DeregisterImageResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_Ret] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      if (output.deleteSnapshotResultSet === "") {
        contents[_DSR] = [];
      } else if (output[_dSRS] != null && output[_dSRS][_i] != null) {
        contents[_DSR] = de_DeleteSnapshotResultSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_dSRS][_i]), context);
      }
      return contents;
    }, "de_DeregisterImageResult");
    var de_DeregisterInstanceEventNotificationAttributesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iTA] != null) {
        contents[_ITA] = de_InstanceTagNotificationAttribute(output[_iTA], context);
      }
      return contents;
    }, "de_DeregisterInstanceEventNotificationAttributesResult");
    var de_DeregisterTransitGatewayMulticastGroupMembersResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_dMGM] != null) {
        contents[_DMGM] = de_TransitGatewayMulticastDeregisteredGroupMembers(output[_dMGM], context);
      }
      return contents;
    }, "de_DeregisterTransitGatewayMulticastGroupMembersResult");
    var de_DeregisterTransitGatewayMulticastGroupSourcesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_dMGS] != null) {
        contents[_DMGS] = de_TransitGatewayMulticastDeregisteredGroupSources(output[_dMGS], context);
      }
      return contents;
    }, "de_DeregisterTransitGatewayMulticastGroupSourcesResult");
    var de_DescribeAccountAttributesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.accountAttributeSet === "") {
        contents[_AAcc] = [];
      } else if (output[_aASc] != null && output[_aASc][_i] != null) {
        contents[_AAcc] = de_AccountAttributeList((0, import_smithy_client28.getArrayIfSingleItem)(output[_aASc][_i]), context);
      }
      return contents;
    }, "de_DescribeAccountAttributesResult");
    var de_DescribeAddressesAttributeResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.addressSet === "") {
        contents[_Addr] = [];
      } else if (output[_aSd] != null && output[_aSd][_i] != null) {
        contents[_Addr] = de_AddressSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_aSd][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeAddressesAttributeResult");
    var de_DescribeAddressesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.addressesSet === "") {
        contents[_Addr] = [];
      } else if (output[_aSdd] != null && output[_aSdd][_i] != null) {
        contents[_Addr] = de_AddressList((0, import_smithy_client28.getArrayIfSingleItem)(output[_aSdd][_i]), context);
      }
      return contents;
    }, "de_DescribeAddressesResult");
    var de_DescribeAddressTransfersResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.addressTransferSet === "") {
        contents[_ATddr] = [];
      } else if (output[_aTSd] != null && output[_aTSd][_i] != null) {
        contents[_ATddr] = de_AddressTransferList((0, import_smithy_client28.getArrayIfSingleItem)(output[_aTSd][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeAddressTransfersResult");
    var de_DescribeAggregateIdFormatResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_uLIA] != null) {
        contents[_ULIA] = (0, import_smithy_client28.parseBoolean)(output[_uLIA]);
      }
      if (output.statusSet === "") {
        contents[_Status] = [];
      } else if (output[_sSt] != null && output[_sSt][_i] != null) {
        contents[_Status] = de_IdFormatList((0, import_smithy_client28.getArrayIfSingleItem)(output[_sSt][_i]), context);
      }
      return contents;
    }, "de_DescribeAggregateIdFormatResult");
    var de_DescribeAvailabilityZonesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.availabilityZoneInfo === "") {
        contents[_AZv] = [];
      } else if (output[_aZIv] != null && output[_aZIv][_i] != null) {
        contents[_AZv] = de_AvailabilityZoneList((0, import_smithy_client28.getArrayIfSingleItem)(output[_aZIv][_i]), context);
      }
      return contents;
    }, "de_DescribeAvailabilityZonesResult");
    var de_DescribeAwsNetworkPerformanceMetricSubscriptionsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      if (output.subscriptionSet === "") {
        contents[_Sub] = [];
      } else if (output[_sSu] != null && output[_sSu][_i] != null) {
        contents[_Sub] = de_SubscriptionList((0, import_smithy_client28.getArrayIfSingleItem)(output[_sSu][_i]), context);
      }
      return contents;
    }, "de_DescribeAwsNetworkPerformanceMetricSubscriptionsResult");
    var de_DescribeBundleTasksResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.bundleInstanceTasksSet === "") {
        contents[_BTun] = [];
      } else if (output[_bITS] != null && output[_bITS][_i] != null) {
        contents[_BTun] = de_BundleTaskList((0, import_smithy_client28.getArrayIfSingleItem)(output[_bITS][_i]), context);
      }
      return contents;
    }, "de_DescribeBundleTasksResult");
    var de_DescribeByoipCidrsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.byoipCidrSet === "") {
        contents[_BCy] = [];
      } else if (output[_bCS] != null && output[_bCS][_i] != null) {
        contents[_BCy] = de_ByoipCidrSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_bCS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeByoipCidrsResult");
    var de_DescribeCapacityBlockExtensionHistoryResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.capacityBlockExtensionSet === "") {
        contents[_CBE] = [];
      } else if (output[_cBESa] != null && output[_cBESa][_i] != null) {
        contents[_CBE] = de_CapacityBlockExtensionSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_cBESa][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeCapacityBlockExtensionHistoryResult");
    var de_DescribeCapacityBlockExtensionOfferingsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.capacityBlockExtensionOfferingSet === "") {
        contents[_CBEO] = [];
      } else if (output[_cBEOS] != null && output[_cBEOS][_i] != null) {
        contents[_CBEO] = de_CapacityBlockExtensionOfferingSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_cBEOS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeCapacityBlockExtensionOfferingsResult");
    var de_DescribeCapacityBlockOfferingsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.capacityBlockOfferingSet === "") {
        contents[_CBO] = [];
      } else if (output[_cBOS] != null && output[_cBOS][_i] != null) {
        contents[_CBO] = de_CapacityBlockOfferingSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_cBOS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeCapacityBlockOfferingsResult");
    var de_DescribeCapacityBlocksResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.capacityBlockSet === "") {
        contents[_CBa] = [];
      } else if (output[_cBS] != null && output[_cBS][_i] != null) {
        contents[_CBa] = de_CapacityBlockSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_cBS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeCapacityBlocksResult");
    var de_DescribeCapacityBlockStatusResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.capacityBlockStatusSet === "") {
        contents[_CBS] = [];
      } else if (output[_cBSS] != null && output[_cBSS][_i] != null) {
        contents[_CBS] = de_CapacityBlockStatusSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_cBSS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeCapacityBlockStatusResult");
    var de_DescribeCapacityReservationBillingRequestsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      if (output.capacityReservationBillingRequestSet === "") {
        contents[_CRBR] = [];
      } else if (output[_cRBRS] != null && output[_cRBRS][_i] != null) {
        contents[_CRBR] = de_CapacityReservationBillingRequestSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_cRBRS][_i]), context);
      }
      return contents;
    }, "de_DescribeCapacityReservationBillingRequestsResult");
    var de_DescribeCapacityReservationFleetsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.capacityReservationFleetSet === "") {
        contents[_CRF] = [];
      } else if (output[_cRFS] != null && output[_cRFS][_i] != null) {
        contents[_CRF] = de_CapacityReservationFleetSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_cRFS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeCapacityReservationFleetsResult");
    var de_DescribeCapacityReservationsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      if (output.capacityReservationSet === "") {
        contents[_CRapac] = [];
      } else if (output[_cRS] != null && output[_cRS][_i] != null) {
        contents[_CRapac] = de_CapacityReservationSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_cRS][_i]), context);
      }
      return contents;
    }, "de_DescribeCapacityReservationsResult");
    var de_DescribeCarrierGatewaysResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.carrierGatewaySet === "") {
        contents[_CGa] = [];
      } else if (output[_cGS] != null && output[_cGS][_i] != null) {
        contents[_CGa] = de_CarrierGatewaySet((0, import_smithy_client28.getArrayIfSingleItem)(output[_cGS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeCarrierGatewaysResult");
    var de_DescribeClassicLinkInstancesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.instancesSet === "") {
        contents[_In] = [];
      } else if (output[_iSn] != null && output[_iSn][_i] != null) {
        contents[_In] = de_ClassicLinkInstanceList((0, import_smithy_client28.getArrayIfSingleItem)(output[_iSn][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeClassicLinkInstancesResult");
    var de_DescribeClientVpnAuthorizationRulesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.authorizationRule === "") {
        contents[_ARut] = [];
      } else if (output[_aR] != null && output[_aR][_i] != null) {
        contents[_ARut] = de_AuthorizationRuleSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_aR][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeClientVpnAuthorizationRulesResult");
    var de_DescribeClientVpnConnectionsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.connections === "") {
        contents[_Conn] = [];
      } else if (output[_con] != null && output[_con][_i] != null) {
        contents[_Conn] = de_ClientVpnConnectionSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_con][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeClientVpnConnectionsResult");
    var de_DescribeClientVpnEndpointsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.clientVpnEndpoint === "") {
        contents[_CVEl] = [];
      } else if (output[_cVE] != null && output[_cVE][_i] != null) {
        contents[_CVEl] = de_EndpointSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_cVE][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeClientVpnEndpointsResult");
    var de_DescribeClientVpnRoutesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.routes === "") {
        contents[_Rout] = [];
      } else if (output[_rou] != null && output[_rou][_i] != null) {
        contents[_Rout] = de_ClientVpnRouteSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_rou][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeClientVpnRoutesResult");
    var de_DescribeClientVpnTargetNetworksResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.clientVpnTargetNetworks === "") {
        contents[_CVTN] = [];
      } else if (output[_cVTN] != null && output[_cVTN][_i] != null) {
        contents[_CVTN] = de_TargetNetworkSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_cVTN][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeClientVpnTargetNetworksResult");
    var de_DescribeCoipPoolsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.coipPoolSet === "") {
        contents[_CPo] = [];
      } else if (output[_cPS] != null && output[_cPS][_i] != null) {
        contents[_CPo] = de_CoipPoolSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_cPS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeCoipPoolsResult");
    var de_DescribeConversionTaskList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ConversionTask(entry, context);
      });
    }, "de_DescribeConversionTaskList");
    var de_DescribeConversionTasksResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.conversionTasks === "") {
        contents[_CTon] = [];
      } else if (output[_cTo] != null && output[_cTo][_i] != null) {
        contents[_CTon] = de_DescribeConversionTaskList((0, import_smithy_client28.getArrayIfSingleItem)(output[_cTo][_i]), context);
      }
      return contents;
    }, "de_DescribeConversionTasksResult");
    var de_DescribeCustomerGatewaysResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.customerGatewaySet === "") {
        contents[_CGus] = [];
      } else if (output[_cGSu] != null && output[_cGSu][_i] != null) {
        contents[_CGus] = de_CustomerGatewayList((0, import_smithy_client28.getArrayIfSingleItem)(output[_cGSu][_i]), context);
      }
      return contents;
    }, "de_DescribeCustomerGatewaysResult");
    var de_DescribeDeclarativePoliciesReportsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      if (output.reportSet === "") {
        contents[_Rep] = [];
      } else if (output[_rSe] != null && output[_rSe][_i] != null) {
        contents[_Rep] = de_DeclarativePoliciesReportList((0, import_smithy_client28.getArrayIfSingleItem)(output[_rSe][_i]), context);
      }
      return contents;
    }, "de_DescribeDeclarativePoliciesReportsResult");
    var de_DescribeDhcpOptionsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      if (output.dhcpOptionsSet === "") {
        contents[_DOh] = [];
      } else if (output[_dOS] != null && output[_dOS][_i] != null) {
        contents[_DOh] = de_DhcpOptionsList((0, import_smithy_client28.getArrayIfSingleItem)(output[_dOS][_i]), context);
      }
      return contents;
    }, "de_DescribeDhcpOptionsResult");
    var de_DescribeEgressOnlyInternetGatewaysResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.egressOnlyInternetGatewaySet === "") {
        contents[_EOIGg] = [];
      } else if (output[_eOIGS] != null && output[_eOIGS][_i] != null) {
        contents[_EOIGg] = de_EgressOnlyInternetGatewayList((0, import_smithy_client28.getArrayIfSingleItem)(output[_eOIGS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeEgressOnlyInternetGatewaysResult");
    var de_DescribeElasticGpusResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.elasticGpuSet === "") {
        contents[_EGSla] = [];
      } else if (output[_eGS] != null && output[_eGS][_i] != null) {
        contents[_EGSla] = de_ElasticGpuSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_eGS][_i]), context);
      }
      if (output[_mR] != null) {
        contents[_MR] = (0, import_smithy_client28.strictParseInt32)(output[_mR]);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeElasticGpusResult");
    var de_DescribeExportImageTasksResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.exportImageTaskSet === "") {
        contents[_EITx] = [];
      } else if (output[_eITS] != null && output[_eITS][_i] != null) {
        contents[_EITx] = de_ExportImageTaskList((0, import_smithy_client28.getArrayIfSingleItem)(output[_eITS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeExportImageTasksResult");
    var de_DescribeExportTasksResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.exportTaskSet === "") {
        contents[_ETxpo] = [];
      } else if (output[_eTS] != null && output[_eTS][_i] != null) {
        contents[_ETxpo] = de_ExportTaskList((0, import_smithy_client28.getArrayIfSingleItem)(output[_eTS][_i]), context);
      }
      return contents;
    }, "de_DescribeExportTasksResult");
    var de_DescribeFastLaunchImagesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.fastLaunchImageSet === "") {
        contents[_FLIa] = [];
      } else if (output[_fLISa] != null && output[_fLISa][_i] != null) {
        contents[_FLIa] = de_DescribeFastLaunchImagesSuccessSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_fLISa][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeFastLaunchImagesResult");
    var de_DescribeFastLaunchImagesSuccessItem = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iIma] != null) {
        contents[_IIma] = (0, import_smithy_client28.expectString)(output[_iIma]);
      }
      if (output[_rTe] != null) {
        contents[_RT] = (0, import_smithy_client28.expectString)(output[_rTe]);
      }
      if (output[_sCn] != null) {
        contents[_SCn] = de_FastLaunchSnapshotConfigurationResponse(output[_sCn], context);
      }
      if (output[_lT] != null) {
        contents[_LTa] = de_FastLaunchLaunchTemplateSpecificationResponse(output[_lT], context);
      }
      if (output[_mPL] != null) {
        contents[_MPL] = (0, import_smithy_client28.strictParseInt32)(output[_mPL]);
      }
      if (output[_oI] != null) {
        contents[_OIwn] = (0, import_smithy_client28.expectString)(output[_oI]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_sTR] != null) {
        contents[_STRt] = (0, import_smithy_client28.expectString)(output[_sTR]);
      }
      if (output[_sTT] != null) {
        contents[_STT] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_sTT]));
      }
      return contents;
    }, "de_DescribeFastLaunchImagesSuccessItem");
    var de_DescribeFastLaunchImagesSuccessSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_DescribeFastLaunchImagesSuccessItem(entry, context);
      });
    }, "de_DescribeFastLaunchImagesSuccessSet");
    var de_DescribeFastSnapshotRestoresResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.fastSnapshotRestoreSet === "") {
        contents[_FSR] = [];
      } else if (output[_fSRS] != null && output[_fSRS][_i] != null) {
        contents[_FSR] = de_DescribeFastSnapshotRestoreSuccessSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_fSRS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeFastSnapshotRestoresResult");
    var de_DescribeFastSnapshotRestoreSuccessItem = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sIn] != null) {
        contents[_SIn] = (0, import_smithy_client28.expectString)(output[_sIn]);
      }
      if (output[_aZ] != null) {
        contents[_AZ] = (0, import_smithy_client28.expectString)(output[_aZ]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_sTR] != null) {
        contents[_STRt] = (0, import_smithy_client28.expectString)(output[_sTR]);
      }
      if (output[_oI] != null) {
        contents[_OIwn] = (0, import_smithy_client28.expectString)(output[_oI]);
      }
      if (output[_oAw] != null) {
        contents[_OAw] = (0, import_smithy_client28.expectString)(output[_oAw]);
      }
      if (output[_eTna] != null) {
        contents[_ETna] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_eTna]));
      }
      if (output[_oT] != null) {
        contents[_OTpt] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_oT]));
      }
      if (output[_eTnab] != null) {
        contents[_ETnab] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_eTnab]));
      }
      if (output[_dTi] != null) {
        contents[_DTi] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_dTi]));
      }
      if (output[_dTis] != null) {
        contents[_DTis] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_dTis]));
      }
      return contents;
    }, "de_DescribeFastSnapshotRestoreSuccessItem");
    var de_DescribeFastSnapshotRestoreSuccessSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_DescribeFastSnapshotRestoreSuccessItem(entry, context);
      });
    }, "de_DescribeFastSnapshotRestoreSuccessSet");
    var de_DescribeFleetError = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_lTAO] != null) {
        contents[_LTAO] = de_LaunchTemplateAndOverridesResponse(output[_lTAO], context);
      }
      if (output[_l] != null) {
        contents[_Li] = (0, import_smithy_client28.expectString)(output[_l]);
      }
      if (output[_eC] != null) {
        contents[_EC] = (0, import_smithy_client28.expectString)(output[_eC]);
      }
      if (output[_eM] != null) {
        contents[_EM] = (0, import_smithy_client28.expectString)(output[_eM]);
      }
      return contents;
    }, "de_DescribeFleetError");
    var de_DescribeFleetHistoryResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.historyRecordSet === "") {
        contents[_HRi] = [];
      } else if (output[_hRS] != null && output[_hRS][_i] != null) {
        contents[_HRi] = de_HistoryRecordSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_hRS][_i]), context);
      }
      if (output[_lET] != null) {
        contents[_LET] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_lET]));
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      if (output[_fIl] != null) {
        contents[_FIl] = (0, import_smithy_client28.expectString)(output[_fIl]);
      }
      if (output[_sT] != null) {
        contents[_STt] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_sT]));
      }
      return contents;
    }, "de_DescribeFleetHistoryResult");
    var de_DescribeFleetInstancesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.activeInstanceSet === "") {
        contents[_AIct] = [];
      } else if (output[_aIS] != null && output[_aIS][_i] != null) {
        contents[_AIct] = de_ActiveInstanceSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_aIS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      if (output[_fIl] != null) {
        contents[_FIl] = (0, import_smithy_client28.expectString)(output[_fIl]);
      }
      return contents;
    }, "de_DescribeFleetInstancesResult");
    var de_DescribeFleetsErrorSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_DescribeFleetError(entry, context);
      });
    }, "de_DescribeFleetsErrorSet");
    var de_DescribeFleetsInstances = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_lTAO] != null) {
        contents[_LTAO] = de_LaunchTemplateAndOverridesResponse(output[_lTAO], context);
      }
      if (output[_l] != null) {
        contents[_Li] = (0, import_smithy_client28.expectString)(output[_l]);
      }
      if (output.instanceIds === "") {
        contents[_IIns] = [];
      } else if (output[_iIn] != null && output[_iIn][_i] != null) {
        contents[_IIns] = de_InstanceIdsSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_iIn][_i]), context);
      }
      if (output[_iT] != null) {
        contents[_IT] = (0, import_smithy_client28.expectString)(output[_iT]);
      }
      if (output[_pl] != null) {
        contents[_Pla] = (0, import_smithy_client28.expectString)(output[_pl]);
      }
      return contents;
    }, "de_DescribeFleetsInstances");
    var de_DescribeFleetsInstancesSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_DescribeFleetsInstances(entry, context);
      });
    }, "de_DescribeFleetsInstancesSet");
    var de_DescribeFleetsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      if (output.fleetSet === "") {
        contents[_Fl] = [];
      } else if (output[_fS] != null && output[_fS][_i] != null) {
        contents[_Fl] = de_FleetSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_fS][_i]), context);
      }
      return contents;
    }, "de_DescribeFleetsResult");
    var de_DescribeFlowLogsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.flowLogSet === "") {
        contents[_FL] = [];
      } else if (output[_fLS] != null && output[_fLS][_i] != null) {
        contents[_FL] = de_FlowLogSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_fLS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeFlowLogsResult");
    var de_DescribeFpgaImageAttributeResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_fIA] != null) {
        contents[_FIAp] = de_FpgaImageAttribute(output[_fIA], context);
      }
      return contents;
    }, "de_DescribeFpgaImageAttributeResult");
    var de_DescribeFpgaImagesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.fpgaImageSet === "") {
        contents[_FIp] = [];
      } else if (output[_fISp] != null && output[_fISp][_i] != null) {
        contents[_FIp] = de_FpgaImageList((0, import_smithy_client28.getArrayIfSingleItem)(output[_fISp][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeFpgaImagesResult");
    var de_DescribeHostReservationOfferingsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      if (output.offeringSet === "") {
        contents[_OS] = [];
      } else if (output[_oS] != null && output[_oS][_i] != null) {
        contents[_OS] = de_HostOfferingSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_oS][_i]), context);
      }
      return contents;
    }, "de_DescribeHostReservationOfferingsResult");
    var de_DescribeHostReservationsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.hostReservationSet === "") {
        contents[_HRS] = [];
      } else if (output[_hRSo] != null && output[_hRSo][_i] != null) {
        contents[_HRS] = de_HostReservationSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_hRSo][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeHostReservationsResult");
    var de_DescribeHostsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.hostSet === "") {
        contents[_Ho] = [];
      } else if (output[_hS] != null && output[_hS][_i] != null) {
        contents[_Ho] = de_HostList((0, import_smithy_client28.getArrayIfSingleItem)(output[_hS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeHostsResult");
    var de_DescribeIamInstanceProfileAssociationsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.iamInstanceProfileAssociationSet === "") {
        contents[_IIPAa] = [];
      } else if (output[_iIPAS] != null && output[_iIPAS][_i] != null) {
        contents[_IIPAa] = de_IamInstanceProfileAssociationSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_iIPAS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeIamInstanceProfileAssociationsResult");
    var de_DescribeIdentityIdFormatResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.statusSet === "") {
        contents[_Status] = [];
      } else if (output[_sSt] != null && output[_sSt][_i] != null) {
        contents[_Status] = de_IdFormatList((0, import_smithy_client28.getArrayIfSingleItem)(output[_sSt][_i]), context);
      }
      return contents;
    }, "de_DescribeIdentityIdFormatResult");
    var de_DescribeIdFormatResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.statusSet === "") {
        contents[_Status] = [];
      } else if (output[_sSt] != null && output[_sSt][_i] != null) {
        contents[_Status] = de_IdFormatList((0, import_smithy_client28.getArrayIfSingleItem)(output[_sSt][_i]), context);
      }
      return contents;
    }, "de_DescribeIdFormatResult");
    var de_DescribeImageReferencesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      if (output.imageReferenceSet === "") {
        contents[_IRm] = [];
      } else if (output[_iRS] != null && output[_iRS][_i] != null) {
        contents[_IRm] = de_ImageReferenceList((0, import_smithy_client28.getArrayIfSingleItem)(output[_iRS][_i]), context);
      }
      return contents;
    }, "de_DescribeImageReferencesResult");
    var de_DescribeImagesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      if (output.imagesSet === "") {
        contents[_Ima] = [];
      } else if (output[_iSm] != null && output[_iSm][_i] != null) {
        contents[_Ima] = de_ImageList((0, import_smithy_client28.getArrayIfSingleItem)(output[_iSm][_i]), context);
      }
      return contents;
    }, "de_DescribeImagesResult");
    var de_DescribeImageUsageReportEntriesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      if (output.imageUsageReportEntrySet === "") {
        contents[_IURE] = [];
      } else if (output[_iURES] != null && output[_iURES][_i] != null) {
        contents[_IURE] = de_ImageUsageReportEntryList((0, import_smithy_client28.getArrayIfSingleItem)(output[_iURES][_i]), context);
      }
      return contents;
    }, "de_DescribeImageUsageReportEntriesResult");
    var de_DescribeImageUsageReportsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      if (output.imageUsageReportSet === "") {
        contents[_IUR] = [];
      } else if (output[_iURS] != null && output[_iURS][_i] != null) {
        contents[_IUR] = de_ImageUsageReportList((0, import_smithy_client28.getArrayIfSingleItem)(output[_iURS][_i]), context);
      }
      return contents;
    }, "de_DescribeImageUsageReportsResult");
    var de_DescribeImportImageTasksResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.importImageTaskSet === "") {
        contents[_IIT] = [];
      } else if (output[_iITS] != null && output[_iITS][_i] != null) {
        contents[_IIT] = de_ImportImageTaskList((0, import_smithy_client28.getArrayIfSingleItem)(output[_iITS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeImportImageTasksResult");
    var de_DescribeImportSnapshotTasksResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.importSnapshotTaskSet === "") {
        contents[_IST] = [];
      } else if (output[_iSTS] != null && output[_iSTS][_i] != null) {
        contents[_IST] = de_ImportSnapshotTaskList((0, import_smithy_client28.getArrayIfSingleItem)(output[_iSTS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeImportSnapshotTasksResult");
    var de_DescribeInstanceConnectEndpointsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.instanceConnectEndpointSet === "") {
        contents[_ICEn] = [];
      } else if (output[_iCES] != null && output[_iCES][_i] != null) {
        contents[_ICEn] = de_InstanceConnectEndpointSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_iCES][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeInstanceConnectEndpointsResult");
    var de_DescribeInstanceCreditSpecificationsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.instanceCreditSpecificationSet === "") {
        contents[_ICS] = [];
      } else if (output[_iCSS] != null && output[_iCSS][_i] != null) {
        contents[_ICS] = de_InstanceCreditSpecificationList((0, import_smithy_client28.getArrayIfSingleItem)(output[_iCSS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeInstanceCreditSpecificationsResult");
    var de_DescribeInstanceEventNotificationAttributesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iTA] != null) {
        contents[_ITA] = de_InstanceTagNotificationAttribute(output[_iTA], context);
      }
      return contents;
    }, "de_DescribeInstanceEventNotificationAttributesResult");
    var de_DescribeInstanceEventWindowsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.instanceEventWindowSet === "") {
        contents[_IEWn] = [];
      } else if (output[_iEWSn] != null && output[_iEWSn][_i] != null) {
        contents[_IEWn] = de_InstanceEventWindowSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_iEWSn][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeInstanceEventWindowsResult");
    var de_DescribeInstanceImageMetadataResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.instanceImageMetadataSet === "") {
        contents[_IIM] = [];
      } else if (output[_iIMS] != null && output[_iIMS][_i] != null) {
        contents[_IIM] = de_InstanceImageMetadataList((0, import_smithy_client28.getArrayIfSingleItem)(output[_iIMS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeInstanceImageMetadataResult");
    var de_DescribeInstancesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      if (output.reservationSet === "") {
        contents[_Rese] = [];
      } else if (output[_rSes] != null && output[_rSes][_i] != null) {
        contents[_Rese] = de_ReservationList((0, import_smithy_client28.getArrayIfSingleItem)(output[_rSes][_i]), context);
      }
      return contents;
    }, "de_DescribeInstancesResult");
    var de_DescribeInstanceStatusResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.instanceStatusSet === "") {
        contents[_ISns] = [];
      } else if (output[_iSS] != null && output[_iSS][_i] != null) {
        contents[_ISns] = de_InstanceStatusList((0, import_smithy_client28.getArrayIfSingleItem)(output[_iSS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeInstanceStatusResult");
    var de_DescribeInstanceTopologyResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.instanceSet === "") {
        contents[_In] = [];
      } else if (output[_iSns] != null && output[_iSns][_i] != null) {
        contents[_In] = de_InstanceSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_iSns][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeInstanceTopologyResult");
    var de_DescribeInstanceTypeOfferingsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.instanceTypeOfferingSet === "") {
        contents[_ITO] = [];
      } else if (output[_iTOS] != null && output[_iTOS][_i] != null) {
        contents[_ITO] = de_InstanceTypeOfferingsList((0, import_smithy_client28.getArrayIfSingleItem)(output[_iTOS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeInstanceTypeOfferingsResult");
    var de_DescribeInstanceTypesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.instanceTypeSet === "") {
        contents[_ITnst] = [];
      } else if (output[_iTS] != null && output[_iTS][_i] != null) {
        contents[_ITnst] = de_InstanceTypeInfoList((0, import_smithy_client28.getArrayIfSingleItem)(output[_iTS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeInstanceTypesResult");
    var de_DescribeInternetGatewaysResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.internetGatewaySet === "") {
        contents[_IGnt] = [];
      } else if (output[_iGS] != null && output[_iGS][_i] != null) {
        contents[_IGnt] = de_InternetGatewayList((0, import_smithy_client28.getArrayIfSingleItem)(output[_iGS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeInternetGatewaysResult");
    var de_DescribeIpamByoasnResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.byoasnSet === "") {
        contents[_Byoa] = [];
      } else if (output[_bS] != null && output[_bS][_i] != null) {
        contents[_Byoa] = de_ByoasnSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_bS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeIpamByoasnResult");
    var de_DescribeIpamExternalResourceVerificationTokensResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      if (output.ipamExternalResourceVerificationTokenSet === "") {
        contents[_IERVTp] = [];
      } else if (output[_iERVTS] != null && output[_iERVTS][_i] != null) {
        contents[_IERVTp] = de_IpamExternalResourceVerificationTokenSet(
          (0, import_smithy_client28.getArrayIfSingleItem)(output[_iERVTS][_i]),
          context
        );
      }
      return contents;
    }, "de_DescribeIpamExternalResourceVerificationTokensResult");
    var de_DescribeIpamPoolsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      if (output.ipamPoolSet === "") {
        contents[_IPpam] = [];
      } else if (output[_iPS] != null && output[_iPS][_i] != null) {
        contents[_IPpam] = de_IpamPoolSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_iPS][_i]), context);
      }
      return contents;
    }, "de_DescribeIpamPoolsResult");
    var de_DescribeIpamResourceDiscoveriesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.ipamResourceDiscoverySet === "") {
        contents[_IRDp] = [];
      } else if (output[_iRDS] != null && output[_iRDS][_i] != null) {
        contents[_IRDp] = de_IpamResourceDiscoverySet((0, import_smithy_client28.getArrayIfSingleItem)(output[_iRDS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeIpamResourceDiscoveriesResult");
    var de_DescribeIpamResourceDiscoveryAssociationsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.ipamResourceDiscoveryAssociationSet === "") {
        contents[_IRDAp] = [];
      } else if (output[_iRDAS] != null && output[_iRDAS][_i] != null) {
        contents[_IRDAp] = de_IpamResourceDiscoveryAssociationSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_iRDAS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeIpamResourceDiscoveryAssociationsResult");
    var de_DescribeIpamScopesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      if (output.ipamScopeSet === "") {
        contents[_ISpam] = [];
      } else if (output[_iSSp] != null && output[_iSSp][_i] != null) {
        contents[_ISpam] = de_IpamScopeSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_iSSp][_i]), context);
      }
      return contents;
    }, "de_DescribeIpamScopesResult");
    var de_DescribeIpamsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      if (output.ipamSet === "") {
        contents[_Ipam] = [];
      } else if (output[_iSpa] != null && output[_iSpa][_i] != null) {
        contents[_Ipam] = de_IpamSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_iSpa][_i]), context);
      }
      return contents;
    }, "de_DescribeIpamsResult");
    var de_DescribeIpv6PoolsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.ipv6PoolSet === "") {
        contents[_IPpvo] = [];
      } else if (output[_iPSp] != null && output[_iPSp][_i] != null) {
        contents[_IPpvo] = de_Ipv6PoolSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_iPSp][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeIpv6PoolsResult");
    var de_DescribeKeyPairsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.keySet === "") {
        contents[_KP] = [];
      } else if (output[_kS] != null && output[_kS][_i] != null) {
        contents[_KP] = de_KeyPairList((0, import_smithy_client28.getArrayIfSingleItem)(output[_kS][_i]), context);
      }
      return contents;
    }, "de_DescribeKeyPairsResult");
    var de_DescribeLaunchTemplatesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.launchTemplates === "") {
        contents[_LTau] = [];
      } else if (output[_lTa] != null && output[_lTa][_i] != null) {
        contents[_LTau] = de_LaunchTemplateSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_lTa][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeLaunchTemplatesResult");
    var de_DescribeLaunchTemplateVersionsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.launchTemplateVersionSet === "") {
        contents[_LTVa] = [];
      } else if (output[_lTVS] != null && output[_lTVS][_i] != null) {
        contents[_LTVa] = de_LaunchTemplateVersionSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_lTVS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeLaunchTemplateVersionsResult");
    var de_DescribeLocalGatewayRouteTablesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.localGatewayRouteTableSet === "") {
        contents[_LGRTo] = [];
      } else if (output[_lGRTS] != null && output[_lGRTS][_i] != null) {
        contents[_LGRTo] = de_LocalGatewayRouteTableSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_lGRTS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeLocalGatewayRouteTablesResult");
    var de_DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.localGatewayRouteTableVirtualInterfaceGroupAssociationSet === "") {
        contents[_LGRTVIGAo] = [];
      } else if (output[_lGRTVIGAS] != null && output[_lGRTVIGAS][_i] != null) {
        contents[_LGRTVIGAo] = de_LocalGatewayRouteTableVirtualInterfaceGroupAssociationSet(
          (0, import_smithy_client28.getArrayIfSingleItem)(output[_lGRTVIGAS][_i]),
          context
        );
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsResult");
    var de_DescribeLocalGatewayRouteTableVpcAssociationsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.localGatewayRouteTableVpcAssociationSet === "") {
        contents[_LGRTVAo] = [];
      } else if (output[_lGRTVAS] != null && output[_lGRTVAS][_i] != null) {
        contents[_LGRTVAo] = de_LocalGatewayRouteTableVpcAssociationSet(
          (0, import_smithy_client28.getArrayIfSingleItem)(output[_lGRTVAS][_i]),
          context
        );
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeLocalGatewayRouteTableVpcAssociationsResult");
    var de_DescribeLocalGatewaysResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.localGatewaySet === "") {
        contents[_LGoc] = [];
      } else if (output[_lGS] != null && output[_lGS][_i] != null) {
        contents[_LGoc] = de_LocalGatewaySet((0, import_smithy_client28.getArrayIfSingleItem)(output[_lGS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeLocalGatewaysResult");
    var de_DescribeLocalGatewayVirtualInterfaceGroupsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.localGatewayVirtualInterfaceGroupSet === "") {
        contents[_LGVIGo] = [];
      } else if (output[_lGVIGS] != null && output[_lGVIGS][_i] != null) {
        contents[_LGVIGo] = de_LocalGatewayVirtualInterfaceGroupSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_lGVIGS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeLocalGatewayVirtualInterfaceGroupsResult");
    var de_DescribeLocalGatewayVirtualInterfacesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.localGatewayVirtualInterfaceSet === "") {
        contents[_LGVIo] = [];
      } else if (output[_lGVIS] != null && output[_lGVIS][_i] != null) {
        contents[_LGVIo] = de_LocalGatewayVirtualInterfaceSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_lGVIS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeLocalGatewayVirtualInterfacesResult");
    var de_DescribeLockedSnapshotsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.snapshotSet === "") {
        contents[_Sn] = [];
      } else if (output[_sS] != null && output[_sS][_i] != null) {
        contents[_Sn] = de_LockedSnapshotsInfoList((0, import_smithy_client28.getArrayIfSingleItem)(output[_sS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeLockedSnapshotsResult");
    var de_DescribeMacHostsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.macHostSet === "") {
        contents[_MHa] = [];
      } else if (output[_mHS] != null && output[_mHS][_i] != null) {
        contents[_MHa] = de_MacHostList((0, import_smithy_client28.getArrayIfSingleItem)(output[_mHS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeMacHostsResult");
    var de_DescribeMacModificationTasksResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.macModificationTaskSet === "") {
        contents[_MMTa] = [];
      } else if (output[_mMTS] != null && output[_mMTS][_i] != null) {
        contents[_MMTa] = de_MacModificationTaskList((0, import_smithy_client28.getArrayIfSingleItem)(output[_mMTS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeMacModificationTasksResult");
    var de_DescribeManagedPrefixListsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      if (output.prefixListSet === "") {
        contents[_PLre] = [];
      } else if (output[_pLS] != null && output[_pLS][_i] != null) {
        contents[_PLre] = de_ManagedPrefixListSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_pLS][_i]), context);
      }
      return contents;
    }, "de_DescribeManagedPrefixListsResult");
    var de_DescribeMovingAddressesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.movingAddressStatusSet === "") {
        contents[_MAS] = [];
      } else if (output[_mASS] != null && output[_mASS][_i] != null) {
        contents[_MAS] = de_MovingAddressStatusSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_mASS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeMovingAddressesResult");
    var de_DescribeNatGatewaysResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.natGatewaySet === "") {
        contents[_NGa] = [];
      } else if (output[_nGS] != null && output[_nGS][_i] != null) {
        contents[_NGa] = de_NatGatewayList((0, import_smithy_client28.getArrayIfSingleItem)(output[_nGS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeNatGatewaysResult");
    var de_DescribeNetworkAclsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.networkAclSet === "") {
        contents[_NAe] = [];
      } else if (output[_nAS] != null && output[_nAS][_i] != null) {
        contents[_NAe] = de_NetworkAclList((0, import_smithy_client28.getArrayIfSingleItem)(output[_nAS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeNetworkAclsResult");
    var de_DescribeNetworkInsightsAccessScopeAnalysesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.networkInsightsAccessScopeAnalysisSet === "") {
        contents[_NIASA] = [];
      } else if (output[_nIASAS] != null && output[_nIASAS][_i] != null) {
        contents[_NIASA] = de_NetworkInsightsAccessScopeAnalysisList((0, import_smithy_client28.getArrayIfSingleItem)(output[_nIASAS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeNetworkInsightsAccessScopeAnalysesResult");
    var de_DescribeNetworkInsightsAccessScopesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.networkInsightsAccessScopeSet === "") {
        contents[_NIASe] = [];
      } else if (output[_nIASS] != null && output[_nIASS][_i] != null) {
        contents[_NIASe] = de_NetworkInsightsAccessScopeList((0, import_smithy_client28.getArrayIfSingleItem)(output[_nIASS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeNetworkInsightsAccessScopesResult");
    var de_DescribeNetworkInsightsAnalysesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.networkInsightsAnalysisSet === "") {
        contents[_NIA] = [];
      } else if (output[_nIASe] != null && output[_nIASe][_i] != null) {
        contents[_NIA] = de_NetworkInsightsAnalysisList((0, import_smithy_client28.getArrayIfSingleItem)(output[_nIASe][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeNetworkInsightsAnalysesResult");
    var de_DescribeNetworkInsightsPathsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.networkInsightsPathSet === "") {
        contents[_NIPe] = [];
      } else if (output[_nIPS] != null && output[_nIPS][_i] != null) {
        contents[_NIPe] = de_NetworkInsightsPathList((0, import_smithy_client28.getArrayIfSingleItem)(output[_nIPS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeNetworkInsightsPathsResult");
    var de_DescribeNetworkInterfaceAttributeResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_at] != null) {
        contents[_Att] = de_NetworkInterfaceAttachment(output[_at], context);
      }
      if (output[_de] != null) {
        contents[_De] = de_AttributeValue(output[_de], context);
      }
      if (output.groupSet === "") {
        contents[_G] = [];
      } else if (output[_gS] != null && output[_gS][_i] != null) {
        contents[_G] = de_GroupIdentifierList((0, import_smithy_client28.getArrayIfSingleItem)(output[_gS][_i]), context);
      }
      if (output[_nII] != null) {
        contents[_NII] = (0, import_smithy_client28.expectString)(output[_nII]);
      }
      if (output[_sDC] != null) {
        contents[_SDC] = de_AttributeBooleanValue(output[_sDC], context);
      }
      if (output[_aPIA] != null) {
        contents[_APIAs] = (0, import_smithy_client28.parseBoolean)(output[_aPIA]);
      }
      return contents;
    }, "de_DescribeNetworkInterfaceAttributeResult");
    var de_DescribeNetworkInterfacePermissionsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.networkInterfacePermissions === "") {
        contents[_NIPet] = [];
      } else if (output[_nIPe] != null && output[_nIPe][_i] != null) {
        contents[_NIPet] = de_NetworkInterfacePermissionList((0, import_smithy_client28.getArrayIfSingleItem)(output[_nIPe][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeNetworkInterfacePermissionsResult");
    var de_DescribeNetworkInterfacesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.networkInterfaceSet === "") {
        contents[_NI] = [];
      } else if (output[_nIS] != null && output[_nIS][_i] != null) {
        contents[_NI] = de_NetworkInterfaceList((0, import_smithy_client28.getArrayIfSingleItem)(output[_nIS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeNetworkInterfacesResult");
    var de_DescribeOutpostLagsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.outpostLagSet === "") {
        contents[_OL] = [];
      } else if (output[_oLS] != null && output[_oLS][_i] != null) {
        contents[_OL] = de_OutpostLagSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_oLS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeOutpostLagsResult");
    var de_DescribePlacementGroupsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.placementGroupSet === "") {
        contents[_PGl] = [];
      } else if (output[_pGS] != null && output[_pGS][_i] != null) {
        contents[_PGl] = de_PlacementGroupList((0, import_smithy_client28.getArrayIfSingleItem)(output[_pGS][_i]), context);
      }
      return contents;
    }, "de_DescribePlacementGroupsResult");
    var de_DescribePrefixListsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      if (output.prefixListSet === "") {
        contents[_PLre] = [];
      } else if (output[_pLS] != null && output[_pLS][_i] != null) {
        contents[_PLre] = de_PrefixListSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_pLS][_i]), context);
      }
      return contents;
    }, "de_DescribePrefixListsResult");
    var de_DescribePrincipalIdFormatResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.principalSet === "") {
        contents[_Princ] = [];
      } else if (output[_pSri] != null && output[_pSri][_i] != null) {
        contents[_Princ] = de_PrincipalIdFormatList((0, import_smithy_client28.getArrayIfSingleItem)(output[_pSri][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribePrincipalIdFormatResult");
    var de_DescribePublicIpv4PoolsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.publicIpv4PoolSet === "") {
        contents[_PIPu] = [];
      } else if (output[_pIPS] != null && output[_pIPS][_i] != null) {
        contents[_PIPu] = de_PublicIpv4PoolSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_pIPS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribePublicIpv4PoolsResult");
    var de_DescribeRegionsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.regionInfo === "") {
        contents[_Reg] = [];
      } else if (output[_rIe] != null && output[_rIe][_i] != null) {
        contents[_Reg] = de_RegionList((0, import_smithy_client28.getArrayIfSingleItem)(output[_rIe][_i]), context);
      }
      return contents;
    }, "de_DescribeRegionsResult");
    var de_DescribeReplaceRootVolumeTasksResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.replaceRootVolumeTaskSet === "") {
        contents[_RRVTe] = [];
      } else if (output[_rRVTS] != null && output[_rRVTS][_i] != null) {
        contents[_RRVTe] = de_ReplaceRootVolumeTasks((0, import_smithy_client28.getArrayIfSingleItem)(output[_rRVTS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeReplaceRootVolumeTasksResult");
    var de_DescribeReservedInstancesListingsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.reservedInstancesListingsSet === "") {
        contents[_RIL] = [];
      } else if (output[_rILS] != null && output[_rILS][_i] != null) {
        contents[_RIL] = de_ReservedInstancesListingList((0, import_smithy_client28.getArrayIfSingleItem)(output[_rILS][_i]), context);
      }
      return contents;
    }, "de_DescribeReservedInstancesListingsResult");
    var de_DescribeReservedInstancesModificationsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      if (output.reservedInstancesModificationsSet === "") {
        contents[_RIM] = [];
      } else if (output[_rIMS] != null && output[_rIMS][_i] != null) {
        contents[_RIM] = de_ReservedInstancesModificationList((0, import_smithy_client28.getArrayIfSingleItem)(output[_rIMS][_i]), context);
      }
      return contents;
    }, "de_DescribeReservedInstancesModificationsResult");
    var de_DescribeReservedInstancesOfferingsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      if (output.reservedInstancesOfferingsSet === "") {
        contents[_RIO] = [];
      } else if (output[_rIOS] != null && output[_rIOS][_i] != null) {
        contents[_RIO] = de_ReservedInstancesOfferingList((0, import_smithy_client28.getArrayIfSingleItem)(output[_rIOS][_i]), context);
      }
      return contents;
    }, "de_DescribeReservedInstancesOfferingsResult");
    var de_DescribeReservedInstancesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.reservedInstancesSet === "") {
        contents[_RIese] = [];
      } else if (output[_rIS] != null && output[_rIS][_i] != null) {
        contents[_RIese] = de_ReservedInstancesList((0, import_smithy_client28.getArrayIfSingleItem)(output[_rIS][_i]), context);
      }
      return contents;
    }, "de_DescribeReservedInstancesResult");
    var de_DescribeRouteServerEndpointsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.routeServerEndpointSet === "") {
        contents[_RSEo] = [];
      } else if (output[_rSES] != null && output[_rSES][_i] != null) {
        contents[_RSEo] = de_RouteServerEndpointsList((0, import_smithy_client28.getArrayIfSingleItem)(output[_rSES][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeRouteServerEndpointsResult");
    var de_DescribeRouteServerPeersResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.routeServerPeerSet === "") {
        contents[_RSPo] = [];
      } else if (output[_rSPS] != null && output[_rSPS][_i] != null) {
        contents[_RSPo] = de_RouteServerPeersList((0, import_smithy_client28.getArrayIfSingleItem)(output[_rSPS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeRouteServerPeersResult");
    var de_DescribeRouteServersResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.routeServerSet === "") {
        contents[_RSou] = [];
      } else if (output[_rSSo] != null && output[_rSSo][_i] != null) {
        contents[_RSou] = de_RouteServersList((0, import_smithy_client28.getArrayIfSingleItem)(output[_rSSo][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeRouteServersResult");
    var de_DescribeRouteTablesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.routeTableSet === "") {
        contents[_RTou] = [];
      } else if (output[_rTS] != null && output[_rTS][_i] != null) {
        contents[_RTou] = de_RouteTableList((0, import_smithy_client28.getArrayIfSingleItem)(output[_rTS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeRouteTablesResult");
    var de_DescribeScheduledInstanceAvailabilityResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      if (output.scheduledInstanceAvailabilitySet === "") {
        contents[_SIAS] = [];
      } else if (output[_sIAS] != null && output[_sIAS][_i] != null) {
        contents[_SIAS] = de_ScheduledInstanceAvailabilitySet((0, import_smithy_client28.getArrayIfSingleItem)(output[_sIAS][_i]), context);
      }
      return contents;
    }, "de_DescribeScheduledInstanceAvailabilityResult");
    var de_DescribeScheduledInstancesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      if (output.scheduledInstanceSet === "") {
        contents[_SIS] = [];
      } else if (output[_sIS] != null && output[_sIS][_i] != null) {
        contents[_SIS] = de_ScheduledInstanceSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_sIS][_i]), context);
      }
      return contents;
    }, "de_DescribeScheduledInstancesResult");
    var de_DescribeSecurityGroupReferencesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.securityGroupReferenceSet === "") {
        contents[_SGRSe] = [];
      } else if (output[_sGRSe] != null && output[_sGRSe][_i] != null) {
        contents[_SGRSe] = de_SecurityGroupReferences((0, import_smithy_client28.getArrayIfSingleItem)(output[_sGRSe][_i]), context);
      }
      return contents;
    }, "de_DescribeSecurityGroupReferencesResult");
    var de_DescribeSecurityGroupRulesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.securityGroupRuleSet === "") {
        contents[_SGR] = [];
      } else if (output[_sGRS] != null && output[_sGRS][_i] != null) {
        contents[_SGR] = de_SecurityGroupRuleList((0, import_smithy_client28.getArrayIfSingleItem)(output[_sGRS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeSecurityGroupRulesResult");
    var de_DescribeSecurityGroupsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      if (output.securityGroupInfo === "") {
        contents[_SG] = [];
      } else if (output[_sGIec] != null && output[_sGIec][_i] != null) {
        contents[_SG] = de_SecurityGroupList((0, import_smithy_client28.getArrayIfSingleItem)(output[_sGIec][_i]), context);
      }
      return contents;
    }, "de_DescribeSecurityGroupsResult");
    var de_DescribeSecurityGroupVpcAssociationsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.securityGroupVpcAssociationSet === "") {
        contents[_SGVA] = [];
      } else if (output[_sGVAS] != null && output[_sGVAS][_i] != null) {
        contents[_SGVA] = de_SecurityGroupVpcAssociationList((0, import_smithy_client28.getArrayIfSingleItem)(output[_sGVAS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeSecurityGroupVpcAssociationsResult");
    var de_DescribeServiceLinkVirtualInterfacesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.serviceLinkVirtualInterfaceSet === "") {
        contents[_SLVI] = [];
      } else if (output[_sLVIS] != null && output[_sLVIS][_i] != null) {
        contents[_SLVI] = de_ServiceLinkVirtualInterfaceSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_sLVIS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeServiceLinkVirtualInterfacesResult");
    var de_DescribeSnapshotAttributeResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.productCodes === "") {
        contents[_PCr] = [];
      } else if (output[_pC] != null && output[_pC][_i] != null) {
        contents[_PCr] = de_ProductCodeList((0, import_smithy_client28.getArrayIfSingleItem)(output[_pC][_i]), context);
      }
      if (output[_sIn] != null) {
        contents[_SIn] = (0, import_smithy_client28.expectString)(output[_sIn]);
      }
      if (output.createVolumePermission === "") {
        contents[_CVPr] = [];
      } else if (output[_cVP] != null && output[_cVP][_i] != null) {
        contents[_CVPr] = de_CreateVolumePermissionList((0, import_smithy_client28.getArrayIfSingleItem)(output[_cVP][_i]), context);
      }
      return contents;
    }, "de_DescribeSnapshotAttributeResult");
    var de_DescribeSnapshotsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      if (output.snapshotSet === "") {
        contents[_Sn] = [];
      } else if (output[_sS] != null && output[_sS][_i] != null) {
        contents[_Sn] = de_SnapshotList((0, import_smithy_client28.getArrayIfSingleItem)(output[_sS][_i]), context);
      }
      return contents;
    }, "de_DescribeSnapshotsResult");
    var de_DescribeSnapshotTierStatusResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.snapshotTierStatusSet === "") {
        contents[_STS] = [];
      } else if (output[_sTSS] != null && output[_sTSS][_i] != null) {
        contents[_STS] = de_snapshotTierStatusSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_sTSS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeSnapshotTierStatusResult");
    var de_DescribeSpotDatafeedSubscriptionResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sDS] != null) {
        contents[_SDS] = de_SpotDatafeedSubscription(output[_sDS], context);
      }
      return contents;
    }, "de_DescribeSpotDatafeedSubscriptionResult");
    var de_DescribeSpotFleetInstancesResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.activeInstanceSet === "") {
        contents[_AIct] = [];
      } else if (output[_aIS] != null && output[_aIS][_i] != null) {
        contents[_AIct] = de_ActiveInstanceSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_aIS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      if (output[_sFRI] != null) {
        contents[_SFRIp] = (0, import_smithy_client28.expectString)(output[_sFRI]);
      }
      return contents;
    }, "de_DescribeSpotFleetInstancesResponse");
    var de_DescribeSpotFleetRequestHistoryResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.historyRecordSet === "") {
        contents[_HRi] = [];
      } else if (output[_hRS] != null && output[_hRS][_i] != null) {
        contents[_HRi] = de_HistoryRecords((0, import_smithy_client28.getArrayIfSingleItem)(output[_hRS][_i]), context);
      }
      if (output[_lET] != null) {
        contents[_LET] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_lET]));
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      if (output[_sFRI] != null) {
        contents[_SFRIp] = (0, import_smithy_client28.expectString)(output[_sFRI]);
      }
      if (output[_sT] != null) {
        contents[_STt] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_sT]));
      }
      return contents;
    }, "de_DescribeSpotFleetRequestHistoryResponse");
    var de_DescribeSpotFleetRequestsResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      if (output.spotFleetRequestConfigSet === "") {
        contents[_SFRCp] = [];
      } else if (output[_sFRCS] != null && output[_sFRCS][_i] != null) {
        contents[_SFRCp] = de_SpotFleetRequestConfigSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_sFRCS][_i]), context);
      }
      return contents;
    }, "de_DescribeSpotFleetRequestsResponse");
    var de_DescribeSpotInstanceRequestsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.spotInstanceRequestSet === "") {
        contents[_SIR] = [];
      } else if (output[_sIRS] != null && output[_sIRS][_i] != null) {
        contents[_SIR] = de_SpotInstanceRequestList((0, import_smithy_client28.getArrayIfSingleItem)(output[_sIRS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeSpotInstanceRequestsResult");
    var de_DescribeSpotPriceHistoryResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      if (output.spotPriceHistorySet === "") {
        contents[_SPH] = [];
      } else if (output[_sPHS] != null && output[_sPHS][_i] != null) {
        contents[_SPH] = de_SpotPriceHistoryList((0, import_smithy_client28.getArrayIfSingleItem)(output[_sPHS][_i]), context);
      }
      return contents;
    }, "de_DescribeSpotPriceHistoryResult");
    var de_DescribeStaleSecurityGroupsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      if (output.staleSecurityGroupSet === "") {
        contents[_SSGS] = [];
      } else if (output[_sSGS] != null && output[_sSGS][_i] != null) {
        contents[_SSGS] = de_StaleSecurityGroupSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_sSGS][_i]), context);
      }
      return contents;
    }, "de_DescribeStaleSecurityGroupsResult");
    var de_DescribeStoreImageTasksResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.storeImageTaskResultSet === "") {
        contents[_SITR] = [];
      } else if (output[_sITRS] != null && output[_sITRS][_i] != null) {
        contents[_SITR] = de_StoreImageTaskResultSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_sITRS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeStoreImageTasksResult");
    var de_DescribeSubnetsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      if (output.subnetSet === "") {
        contents[_Subn] = [];
      } else if (output[_sSub] != null && output[_sSub][_i] != null) {
        contents[_Subn] = de_SubnetList((0, import_smithy_client28.getArrayIfSingleItem)(output[_sSub][_i]), context);
      }
      return contents;
    }, "de_DescribeSubnetsResult");
    var de_DescribeTagsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagDescriptionList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      return contents;
    }, "de_DescribeTagsResult");
    var de_DescribeTrafficMirrorFilterRulesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.trafficMirrorFilterRuleSet === "") {
        contents[_TMFRr] = [];
      } else if (output[_tMFRS] != null && output[_tMFRS][_i] != null) {
        contents[_TMFRr] = de_TrafficMirrorFilterRuleSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_tMFRS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeTrafficMirrorFilterRulesResult");
    var de_DescribeTrafficMirrorFiltersResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.trafficMirrorFilterSet === "") {
        contents[_TMFr] = [];
      } else if (output[_tMFS] != null && output[_tMFS][_i] != null) {
        contents[_TMFr] = de_TrafficMirrorFilterSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_tMFS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeTrafficMirrorFiltersResult");
    var de_DescribeTrafficMirrorSessionsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.trafficMirrorSessionSet === "") {
        contents[_TMSr] = [];
      } else if (output[_tMSS] != null && output[_tMSS][_i] != null) {
        contents[_TMSr] = de_TrafficMirrorSessionSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_tMSS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeTrafficMirrorSessionsResult");
    var de_DescribeTrafficMirrorTargetsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.trafficMirrorTargetSet === "") {
        contents[_TMTr] = [];
      } else if (output[_tMTS] != null && output[_tMTS][_i] != null) {
        contents[_TMTr] = de_TrafficMirrorTargetSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_tMTS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeTrafficMirrorTargetsResult");
    var de_DescribeTransitGatewayAttachmentsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.transitGatewayAttachments === "") {
        contents[_TGAr] = [];
      } else if (output[_tGA] != null && output[_tGA][_i] != null) {
        contents[_TGAr] = de_TransitGatewayAttachmentList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tGA][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeTransitGatewayAttachmentsResult");
    var de_DescribeTransitGatewayConnectPeersResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.transitGatewayConnectPeerSet === "") {
        contents[_TGCPr] = [];
      } else if (output[_tGCPS] != null && output[_tGCPS][_i] != null) {
        contents[_TGCPr] = de_TransitGatewayConnectPeerList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tGCPS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeTransitGatewayConnectPeersResult");
    var de_DescribeTransitGatewayConnectsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.transitGatewayConnectSet === "") {
        contents[_TGCra] = [];
      } else if (output[_tGCS] != null && output[_tGCS][_i] != null) {
        contents[_TGCra] = de_TransitGatewayConnectList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tGCS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeTransitGatewayConnectsResult");
    var de_DescribeTransitGatewayMulticastDomainsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.transitGatewayMulticastDomains === "") {
        contents[_TGMDr] = [];
      } else if (output[_tGMDr] != null && output[_tGMDr][_i] != null) {
        contents[_TGMDr] = de_TransitGatewayMulticastDomainList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tGMDr][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeTransitGatewayMulticastDomainsResult");
    var de_DescribeTransitGatewayPeeringAttachmentsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.transitGatewayPeeringAttachments === "") {
        contents[_TGPAr] = [];
      } else if (output[_tGPAr] != null && output[_tGPAr][_i] != null) {
        contents[_TGPAr] = de_TransitGatewayPeeringAttachmentList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tGPAr][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeTransitGatewayPeeringAttachmentsResult");
    var de_DescribeTransitGatewayPolicyTablesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.transitGatewayPolicyTables === "") {
        contents[_TGPTr] = [];
      } else if (output[_tGPTr] != null && output[_tGPTr][_i] != null) {
        contents[_TGPTr] = de_TransitGatewayPolicyTableList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tGPTr][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeTransitGatewayPolicyTablesResult");
    var de_DescribeTransitGatewayRouteTableAnnouncementsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.transitGatewayRouteTableAnnouncements === "") {
        contents[_TGRTAr] = [];
      } else if (output[_tGRTAr] != null && output[_tGRTAr][_i] != null) {
        contents[_TGRTAr] = de_TransitGatewayRouteTableAnnouncementList(
          (0, import_smithy_client28.getArrayIfSingleItem)(output[_tGRTAr][_i]),
          context
        );
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeTransitGatewayRouteTableAnnouncementsResult");
    var de_DescribeTransitGatewayRouteTablesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.transitGatewayRouteTables === "") {
        contents[_TGRTr] = [];
      } else if (output[_tGRTr] != null && output[_tGRTr][_i] != null) {
        contents[_TGRTr] = de_TransitGatewayRouteTableList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tGRTr][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeTransitGatewayRouteTablesResult");
    var de_DescribeTransitGatewaysResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.transitGatewaySet === "") {
        contents[_TGra] = [];
      } else if (output[_tGS] != null && output[_tGS][_i] != null) {
        contents[_TGra] = de_TransitGatewayList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tGS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeTransitGatewaysResult");
    var de_DescribeTransitGatewayVpcAttachmentsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.transitGatewayVpcAttachments === "") {
        contents[_TGVAr] = [];
      } else if (output[_tGVAr] != null && output[_tGVAr][_i] != null) {
        contents[_TGVAr] = de_TransitGatewayVpcAttachmentList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tGVAr][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeTransitGatewayVpcAttachmentsResult");
    var de_DescribeTrunkInterfaceAssociationsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.interfaceAssociationSet === "") {
        contents[_IAnt] = [];
      } else if (output[_iAS] != null && output[_iAS][_i] != null) {
        contents[_IAnt] = de_TrunkInterfaceAssociationList((0, import_smithy_client28.getArrayIfSingleItem)(output[_iAS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeTrunkInterfaceAssociationsResult");
    var de_DescribeVerifiedAccessEndpointsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.verifiedAccessEndpointSet === "") {
        contents[_VAEe] = [];
      } else if (output[_vAES] != null && output[_vAES][_i] != null) {
        contents[_VAEe] = de_VerifiedAccessEndpointList((0, import_smithy_client28.getArrayIfSingleItem)(output[_vAES][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeVerifiedAccessEndpointsResult");
    var de_DescribeVerifiedAccessGroupsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.verifiedAccessGroupSet === "") {
        contents[_VAGe] = [];
      } else if (output[_vAGS] != null && output[_vAGS][_i] != null) {
        contents[_VAGe] = de_VerifiedAccessGroupList((0, import_smithy_client28.getArrayIfSingleItem)(output[_vAGS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeVerifiedAccessGroupsResult");
    var de_DescribeVerifiedAccessInstanceLoggingConfigurationsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.loggingConfigurationSet === "") {
        contents[_LC] = [];
      } else if (output[_lCS] != null && output[_lCS][_i] != null) {
        contents[_LC] = de_VerifiedAccessInstanceLoggingConfigurationList(
          (0, import_smithy_client28.getArrayIfSingleItem)(output[_lCS][_i]),
          context
        );
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeVerifiedAccessInstanceLoggingConfigurationsResult");
    var de_DescribeVerifiedAccessInstancesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.verifiedAccessInstanceSet === "") {
        contents[_VAIe] = [];
      } else if (output[_vAIS] != null && output[_vAIS][_i] != null) {
        contents[_VAIe] = de_VerifiedAccessInstanceList((0, import_smithy_client28.getArrayIfSingleItem)(output[_vAIS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeVerifiedAccessInstancesResult");
    var de_DescribeVerifiedAccessTrustProvidersResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.verifiedAccessTrustProviderSet === "") {
        contents[_VATPe] = [];
      } else if (output[_vATPS] != null && output[_vATPS][_i] != null) {
        contents[_VATPe] = de_VerifiedAccessTrustProviderList((0, import_smithy_client28.getArrayIfSingleItem)(output[_vATPS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeVerifiedAccessTrustProvidersResult");
    var de_DescribeVolumeAttributeResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aEIO] != null) {
        contents[_AEIO] = de_AttributeBooleanValue(output[_aEIO], context);
      }
      if (output.productCodes === "") {
        contents[_PCr] = [];
      } else if (output[_pC] != null && output[_pC][_i] != null) {
        contents[_PCr] = de_ProductCodeList((0, import_smithy_client28.getArrayIfSingleItem)(output[_pC][_i]), context);
      }
      if (output[_vIo] != null) {
        contents[_VIo] = (0, import_smithy_client28.expectString)(output[_vIo]);
      }
      return contents;
    }, "de_DescribeVolumeAttributeResult");
    var de_DescribeVolumesModificationsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      if (output.volumeModificationSet === "") {
        contents[_VMo] = [];
      } else if (output[_vMS] != null && output[_vMS][_i] != null) {
        contents[_VMo] = de_VolumeModificationList((0, import_smithy_client28.getArrayIfSingleItem)(output[_vMS][_i]), context);
      }
      return contents;
    }, "de_DescribeVolumesModificationsResult");
    var de_DescribeVolumesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      if (output.volumeSet === "") {
        contents[_Vol] = [];
      } else if (output[_vS] != null && output[_vS][_i] != null) {
        contents[_Vol] = de_VolumeList((0, import_smithy_client28.getArrayIfSingleItem)(output[_vS][_i]), context);
      }
      return contents;
    }, "de_DescribeVolumesResult");
    var de_DescribeVolumeStatusResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      if (output.volumeStatusSet === "") {
        contents[_VSo] = [];
      } else if (output[_vSS] != null && output[_vSS][_i] != null) {
        contents[_VSo] = de_VolumeStatusList((0, import_smithy_client28.getArrayIfSingleItem)(output[_vSS][_i]), context);
      }
      return contents;
    }, "de_DescribeVolumeStatusResult");
    var de_DescribeVpcAttributeResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_eDH] != null) {
        contents[_EDH] = de_AttributeBooleanValue(output[_eDH], context);
      }
      if (output[_eDS] != null) {
        contents[_EDS] = de_AttributeBooleanValue(output[_eDS], context);
      }
      if (output[_eNAUM] != null) {
        contents[_ENAUM] = de_AttributeBooleanValue(output[_eNAUM], context);
      }
      if (output[_vI] != null) {
        contents[_VI] = (0, import_smithy_client28.expectString)(output[_vI]);
      }
      return contents;
    }, "de_DescribeVpcAttributeResult");
    var de_DescribeVpcBlockPublicAccessExclusionsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.vpcBlockPublicAccessExclusionSet === "") {
        contents[_VBPAEp] = [];
      } else if (output[_vBPAES] != null && output[_vBPAES][_i] != null) {
        contents[_VBPAEp] = de_VpcBlockPublicAccessExclusionList((0, import_smithy_client28.getArrayIfSingleItem)(output[_vBPAES][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeVpcBlockPublicAccessExclusionsResult");
    var de_DescribeVpcBlockPublicAccessOptionsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_vBPAO] != null) {
        contents[_VBPAO] = de_VpcBlockPublicAccessOptions(output[_vBPAO], context);
      }
      return contents;
    }, "de_DescribeVpcBlockPublicAccessOptionsResult");
    var de_DescribeVpcClassicLinkDnsSupportResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      if (output.vpcs === "") {
        contents[_Vpc] = [];
      } else if (output[_vpc] != null && output[_vpc][_i] != null) {
        contents[_Vpc] = de_ClassicLinkDnsSupportList((0, import_smithy_client28.getArrayIfSingleItem)(output[_vpc][_i]), context);
      }
      return contents;
    }, "de_DescribeVpcClassicLinkDnsSupportResult");
    var de_DescribeVpcClassicLinkResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.vpcSet === "") {
        contents[_Vpc] = [];
      } else if (output[_vSp] != null && output[_vSp][_i] != null) {
        contents[_Vpc] = de_VpcClassicLinkList((0, import_smithy_client28.getArrayIfSingleItem)(output[_vSp][_i]), context);
      }
      return contents;
    }, "de_DescribeVpcClassicLinkResult");
    var de_DescribeVpcEndpointAssociationsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.vpcEndpointAssociationSet === "") {
        contents[_VEA] = [];
      } else if (output[_vEAS] != null && output[_vEAS][_i] != null) {
        contents[_VEA] = de_VpcEndpointAssociationSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_vEAS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeVpcEndpointAssociationsResult");
    var de_DescribeVpcEndpointConnectionNotificationsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.connectionNotificationSet === "") {
        contents[_CNSo] = [];
      } else if (output[_cNSo] != null && output[_cNSo][_i] != null) {
        contents[_CNSo] = de_ConnectionNotificationSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_cNSo][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeVpcEndpointConnectionNotificationsResult");
    var de_DescribeVpcEndpointConnectionsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.vpcEndpointConnectionSet === "") {
        contents[_VEC] = [];
      } else if (output[_vECS] != null && output[_vECS][_i] != null) {
        contents[_VEC] = de_VpcEndpointConnectionSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_vECS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeVpcEndpointConnectionsResult");
    var de_DescribeVpcEndpointServiceConfigurationsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.serviceConfigurationSet === "") {
        contents[_SCer] = [];
      } else if (output[_sCS] != null && output[_sCS][_i] != null) {
        contents[_SCer] = de_ServiceConfigurationSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_sCS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeVpcEndpointServiceConfigurationsResult");
    var de_DescribeVpcEndpointServicePermissionsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.allowedPrincipals === "") {
        contents[_APl] = [];
      } else if (output[_aP] != null && output[_aP][_i] != null) {
        contents[_APl] = de_AllowedPrincipalSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_aP][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeVpcEndpointServicePermissionsResult");
    var de_DescribeVpcEndpointServicesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.serviceNameSet === "") {
        contents[_SNer] = [];
      } else if (output[_sNS] != null && output[_sNS][_i] != null) {
        contents[_SNer] = de_ValueStringList((0, import_smithy_client28.getArrayIfSingleItem)(output[_sNS][_i]), context);
      }
      if (output.serviceDetailSet === "") {
        contents[_SDe] = [];
      } else if (output[_sDSe] != null && output[_sDSe][_i] != null) {
        contents[_SDe] = de_ServiceDetailSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_sDSe][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeVpcEndpointServicesResult");
    var de_DescribeVpcEndpointsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.vpcEndpointSet === "") {
        contents[_VEp] = [];
      } else if (output[_vESp] != null && output[_vESp][_i] != null) {
        contents[_VEp] = de_VpcEndpointSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_vESp][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeVpcEndpointsResult");
    var de_DescribeVpcPeeringConnectionsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.vpcPeeringConnectionSet === "") {
        contents[_VPCp] = [];
      } else if (output[_vPCS] != null && output[_vPCS][_i] != null) {
        contents[_VPCp] = de_VpcPeeringConnectionList((0, import_smithy_client28.getArrayIfSingleItem)(output[_vPCS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_DescribeVpcPeeringConnectionsResult");
    var de_DescribeVpcsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      if (output.vpcSet === "") {
        contents[_Vpc] = [];
      } else if (output[_vSp] != null && output[_vSp][_i] != null) {
        contents[_Vpc] = de_VpcList((0, import_smithy_client28.getArrayIfSingleItem)(output[_vSp][_i]), context);
      }
      return contents;
    }, "de_DescribeVpcsResult");
    var de_DescribeVpnConnectionsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.vpnConnectionSet === "") {
        contents[_VCp] = [];
      } else if (output[_vCS] != null && output[_vCS][_i] != null) {
        contents[_VCp] = de_VpnConnectionList((0, import_smithy_client28.getArrayIfSingleItem)(output[_vCS][_i]), context);
      }
      return contents;
    }, "de_DescribeVpnConnectionsResult");
    var de_DescribeVpnGatewaysResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.vpnGatewaySet === "") {
        contents[_VGp] = [];
      } else if (output[_vGS] != null && output[_vGS][_i] != null) {
        contents[_VGp] = de_VpnGatewayList((0, import_smithy_client28.getArrayIfSingleItem)(output[_vGS][_i]), context);
      }
      return contents;
    }, "de_DescribeVpnGatewaysResult");
    var de_DestinationOptionsResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_fF] != null) {
        contents[_FF] = (0, import_smithy_client28.expectString)(output[_fF]);
      }
      if (output[_hCP] != null) {
        contents[_HCP] = (0, import_smithy_client28.parseBoolean)(output[_hCP]);
      }
      if (output[_pHP] != null) {
        contents[_PHP] = (0, import_smithy_client28.parseBoolean)(output[_pHP]);
      }
      return contents;
    }, "de_DestinationOptionsResponse");
    var de_DetachClassicLinkVpcResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_Ret] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      return contents;
    }, "de_DetachClassicLinkVpcResult");
    var de_DetachVerifiedAccessTrustProviderResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_vATP] != null) {
        contents[_VATP] = de_VerifiedAccessTrustProvider(output[_vATP], context);
      }
      if (output[_vAI] != null) {
        contents[_VAI] = de_VerifiedAccessInstance(output[_vAI], context);
      }
      return contents;
    }, "de_DetachVerifiedAccessTrustProviderResult");
    var de_DeviceOptions = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tIe] != null) {
        contents[_TIe] = (0, import_smithy_client28.expectString)(output[_tIe]);
      }
      if (output[_pSKU] != null) {
        contents[_PSKU] = (0, import_smithy_client28.expectString)(output[_pSKU]);
      }
      return contents;
    }, "de_DeviceOptions");
    var de_DeviceTrustProviderTypeList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_DeviceTrustProviderTypeList");
    var de_DhcpConfiguration = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_k] != null) {
        contents[_Ke] = (0, import_smithy_client28.expectString)(output[_k]);
      }
      if (output.valueSet === "") {
        contents[_Val] = [];
      } else if (output[_vSa] != null && output[_vSa][_i] != null) {
        contents[_Val] = de_DhcpConfigurationValueList((0, import_smithy_client28.getArrayIfSingleItem)(output[_vSa][_i]), context);
      }
      return contents;
    }, "de_DhcpConfiguration");
    var de_DhcpConfigurationList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_DhcpConfiguration(entry, context);
      });
    }, "de_DhcpConfigurationList");
    var de_DhcpConfigurationValueList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_AttributeValue(entry, context);
      });
    }, "de_DhcpConfigurationValueList");
    var de_DhcpOptions = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_oI] != null) {
        contents[_OIwn] = (0, import_smithy_client28.expectString)(output[_oI]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_dOI] != null) {
        contents[_DOI] = (0, import_smithy_client28.expectString)(output[_dOI]);
      }
      if (output.dhcpConfigurationSet === "") {
        contents[_DCh] = [];
      } else if (output[_dCS] != null && output[_dCS][_i] != null) {
        contents[_DCh] = de_DhcpConfigurationList((0, import_smithy_client28.getArrayIfSingleItem)(output[_dCS][_i]), context);
      }
      return contents;
    }, "de_DhcpOptions");
    var de_DhcpOptionsList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_DhcpOptions(entry, context);
      });
    }, "de_DhcpOptionsList");
    var de_DirectoryServiceAuthentication = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_dI] != null) {
        contents[_DIir] = (0, import_smithy_client28.expectString)(output[_dI]);
      }
      return contents;
    }, "de_DirectoryServiceAuthentication");
    var de_DisableAddressTransferResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aT] != null) {
        contents[_ATdd] = de_AddressTransfer(output[_aT], context);
      }
      return contents;
    }, "de_DisableAddressTransferResult");
    var de_DisableAllowedImagesSettingsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aISS] != null) {
        contents[_AISS] = (0, import_smithy_client28.expectString)(output[_aISS]);
      }
      return contents;
    }, "de_DisableAllowedImagesSettingsResult");
    var de_DisableAwsNetworkPerformanceMetricSubscriptionResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ou] != null) {
        contents[_Ou] = (0, import_smithy_client28.parseBoolean)(output[_ou]);
      }
      return contents;
    }, "de_DisableAwsNetworkPerformanceMetricSubscriptionResult");
    var de_DisableEbsEncryptionByDefaultResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_eEBD] != null) {
        contents[_EEBD] = (0, import_smithy_client28.parseBoolean)(output[_eEBD]);
      }
      return contents;
    }, "de_DisableEbsEncryptionByDefaultResult");
    var de_DisableFastLaunchResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iIma] != null) {
        contents[_IIma] = (0, import_smithy_client28.expectString)(output[_iIma]);
      }
      if (output[_rTe] != null) {
        contents[_RT] = (0, import_smithy_client28.expectString)(output[_rTe]);
      }
      if (output[_sCn] != null) {
        contents[_SCn] = de_FastLaunchSnapshotConfigurationResponse(output[_sCn], context);
      }
      if (output[_lT] != null) {
        contents[_LTa] = de_FastLaunchLaunchTemplateSpecificationResponse(output[_lT], context);
      }
      if (output[_mPL] != null) {
        contents[_MPL] = (0, import_smithy_client28.strictParseInt32)(output[_mPL]);
      }
      if (output[_oI] != null) {
        contents[_OIwn] = (0, import_smithy_client28.expectString)(output[_oI]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_sTR] != null) {
        contents[_STRt] = (0, import_smithy_client28.expectString)(output[_sTR]);
      }
      if (output[_sTT] != null) {
        contents[_STT] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_sTT]));
      }
      return contents;
    }, "de_DisableFastLaunchResult");
    var de_DisableFastSnapshotRestoreErrorItem = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sIn] != null) {
        contents[_SIn] = (0, import_smithy_client28.expectString)(output[_sIn]);
      }
      if (output.fastSnapshotRestoreStateErrorSet === "") {
        contents[_FSRSE] = [];
      } else if (output[_fSRSES] != null && output[_fSRSES][_i] != null) {
        contents[_FSRSE] = de_DisableFastSnapshotRestoreStateErrorSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_fSRSES][_i]), context);
      }
      return contents;
    }, "de_DisableFastSnapshotRestoreErrorItem");
    var de_DisableFastSnapshotRestoreErrorSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_DisableFastSnapshotRestoreErrorItem(entry, context);
      });
    }, "de_DisableFastSnapshotRestoreErrorSet");
    var de_DisableFastSnapshotRestoresResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.successful === "") {
        contents[_Suc] = [];
      } else if (output[_suc] != null && output[_suc][_i] != null) {
        contents[_Suc] = de_DisableFastSnapshotRestoreSuccessSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_suc][_i]), context);
      }
      if (output.unsuccessful === "") {
        contents[_Un] = [];
      } else if (output[_u] != null && output[_u][_i] != null) {
        contents[_Un] = de_DisableFastSnapshotRestoreErrorSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_u][_i]), context);
      }
      return contents;
    }, "de_DisableFastSnapshotRestoresResult");
    var de_DisableFastSnapshotRestoreStateError = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_co] != null) {
        contents[_Cod] = (0, import_smithy_client28.expectString)(output[_co]);
      }
      if (output[_me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_me]);
      }
      return contents;
    }, "de_DisableFastSnapshotRestoreStateError");
    var de_DisableFastSnapshotRestoreStateErrorItem = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aZ] != null) {
        contents[_AZ] = (0, import_smithy_client28.expectString)(output[_aZ]);
      }
      if (output[_er] != null) {
        contents[_Er] = de_DisableFastSnapshotRestoreStateError(output[_er], context);
      }
      return contents;
    }, "de_DisableFastSnapshotRestoreStateErrorItem");
    var de_DisableFastSnapshotRestoreStateErrorSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_DisableFastSnapshotRestoreStateErrorItem(entry, context);
      });
    }, "de_DisableFastSnapshotRestoreStateErrorSet");
    var de_DisableFastSnapshotRestoreSuccessItem = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sIn] != null) {
        contents[_SIn] = (0, import_smithy_client28.expectString)(output[_sIn]);
      }
      if (output[_aZ] != null) {
        contents[_AZ] = (0, import_smithy_client28.expectString)(output[_aZ]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_sTR] != null) {
        contents[_STRt] = (0, import_smithy_client28.expectString)(output[_sTR]);
      }
      if (output[_oI] != null) {
        contents[_OIwn] = (0, import_smithy_client28.expectString)(output[_oI]);
      }
      if (output[_oAw] != null) {
        contents[_OAw] = (0, import_smithy_client28.expectString)(output[_oAw]);
      }
      if (output[_eTna] != null) {
        contents[_ETna] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_eTna]));
      }
      if (output[_oT] != null) {
        contents[_OTpt] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_oT]));
      }
      if (output[_eTnab] != null) {
        contents[_ETnab] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_eTnab]));
      }
      if (output[_dTi] != null) {
        contents[_DTi] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_dTi]));
      }
      if (output[_dTis] != null) {
        contents[_DTis] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_dTis]));
      }
      return contents;
    }, "de_DisableFastSnapshotRestoreSuccessItem");
    var de_DisableFastSnapshotRestoreSuccessSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_DisableFastSnapshotRestoreSuccessItem(entry, context);
      });
    }, "de_DisableFastSnapshotRestoreSuccessSet");
    var de_DisableImageBlockPublicAccessResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iBPAS] != null) {
        contents[_IBPAS] = (0, import_smithy_client28.expectString)(output[_iBPAS]);
      }
      return contents;
    }, "de_DisableImageBlockPublicAccessResult");
    var de_DisableImageDeprecationResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_Ret] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      return contents;
    }, "de_DisableImageDeprecationResult");
    var de_DisableImageDeregistrationProtectionResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_Ret] = (0, import_smithy_client28.expectString)(output[_r]);
      }
      return contents;
    }, "de_DisableImageDeregistrationProtectionResult");
    var de_DisableImageResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_Ret] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      return contents;
    }, "de_DisableImageResult");
    var de_DisableIpamOrganizationAdminAccountResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_succ] != null) {
        contents[_Succ] = (0, import_smithy_client28.parseBoolean)(output[_succ]);
      }
      return contents;
    }, "de_DisableIpamOrganizationAdminAccountResult");
    var de_DisableRouteServerPropagationResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_rSPo] != null) {
        contents[_RSPou] = de_RouteServerPropagation(output[_rSPo], context);
      }
      return contents;
    }, "de_DisableRouteServerPropagationResult");
    var de_DisableSerialConsoleAccessResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sCAE] != null) {
        contents[_SCAE] = (0, import_smithy_client28.parseBoolean)(output[_sCAE]);
      }
      return contents;
    }, "de_DisableSerialConsoleAccessResult");
    var de_DisableSnapshotBlockPublicAccessResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      return contents;
    }, "de_DisableSnapshotBlockPublicAccessResult");
    var de_DisableTransitGatewayRouteTablePropagationResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_prop] != null) {
        contents[_Prop] = de_TransitGatewayPropagation(output[_prop], context);
      }
      return contents;
    }, "de_DisableTransitGatewayRouteTablePropagationResult");
    var de_DisableVpcClassicLinkDnsSupportResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_Ret] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      return contents;
    }, "de_DisableVpcClassicLinkDnsSupportResult");
    var de_DisableVpcClassicLinkResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_Ret] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      return contents;
    }, "de_DisableVpcClassicLinkResult");
    var de_DisassociateCapacityReservationBillingOwnerResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_Ret] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      return contents;
    }, "de_DisassociateCapacityReservationBillingOwnerResult");
    var de_DisassociateClientVpnTargetNetworkResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aIs] != null) {
        contents[_AIss] = (0, import_smithy_client28.expectString)(output[_aIs]);
      }
      if (output[_sta] != null) {
        contents[_Statu] = de_AssociationStatus(output[_sta], context);
      }
      return contents;
    }, "de_DisassociateClientVpnTargetNetworkResult");
    var de_DisassociateEnclaveCertificateIamRoleResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_Ret] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      return contents;
    }, "de_DisassociateEnclaveCertificateIamRoleResult");
    var de_DisassociateIamInstanceProfileResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iIPA] != null) {
        contents[_IIPA] = de_IamInstanceProfileAssociation(output[_iIPA], context);
      }
      return contents;
    }, "de_DisassociateIamInstanceProfileResult");
    var de_DisassociateInstanceEventWindowResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iEW] != null) {
        contents[_IEW] = de_InstanceEventWindow(output[_iEW], context);
      }
      return contents;
    }, "de_DisassociateInstanceEventWindowResult");
    var de_DisassociateIpamByoasnResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aA] != null) {
        contents[_AAsn] = de_AsnAssociation(output[_aA], context);
      }
      return contents;
    }, "de_DisassociateIpamByoasnResult");
    var de_DisassociateIpamResourceDiscoveryResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iRDA] != null) {
        contents[_IRDA] = de_IpamResourceDiscoveryAssociation(output[_iRDA], context);
      }
      return contents;
    }, "de_DisassociateIpamResourceDiscoveryResult");
    var de_DisassociateNatGatewayAddressResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nGI] != null) {
        contents[_NGI] = (0, import_smithy_client28.expectString)(output[_nGI]);
      }
      if (output.natGatewayAddressSet === "") {
        contents[_NGA] = [];
      } else if (output[_nGAS] != null && output[_nGAS][_i] != null) {
        contents[_NGA] = de_NatGatewayAddressList((0, import_smithy_client28.getArrayIfSingleItem)(output[_nGAS][_i]), context);
      }
      return contents;
    }, "de_DisassociateNatGatewayAddressResult");
    var de_DisassociateRouteServerResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_rSA] != null) {
        contents[_RSAo] = de_RouteServerAssociation(output[_rSA], context);
      }
      return contents;
    }, "de_DisassociateRouteServerResult");
    var de_DisassociateSecurityGroupVpcResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      return contents;
    }, "de_DisassociateSecurityGroupVpcResult");
    var de_DisassociateSubnetCidrBlockResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iCBA] != null) {
        contents[_ICBA] = de_SubnetIpv6CidrBlockAssociation(output[_iCBA], context);
      }
      if (output[_sIu] != null) {
        contents[_SIub] = (0, import_smithy_client28.expectString)(output[_sIu]);
      }
      return contents;
    }, "de_DisassociateSubnetCidrBlockResult");
    var de_DisassociateTransitGatewayMulticastDomainResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_a2] != null) {
        contents[_Ass] = de_TransitGatewayMulticastDomainAssociations(output[_a2], context);
      }
      return contents;
    }, "de_DisassociateTransitGatewayMulticastDomainResult");
    var de_DisassociateTransitGatewayPolicyTableResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ass] != null) {
        contents[_Asso] = de_TransitGatewayPolicyTableAssociation(output[_ass], context);
      }
      return contents;
    }, "de_DisassociateTransitGatewayPolicyTableResult");
    var de_DisassociateTransitGatewayRouteTableResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ass] != null) {
        contents[_Asso] = de_TransitGatewayAssociation(output[_ass], context);
      }
      return contents;
    }, "de_DisassociateTransitGatewayRouteTableResult");
    var de_DisassociateTrunkInterfaceResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_Ret] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      if (output[_cT] != null) {
        contents[_CTl] = (0, import_smithy_client28.expectString)(output[_cT]);
      }
      return contents;
    }, "de_DisassociateTrunkInterfaceResult");
    var de_DisassociateVpcCidrBlockResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iCBA] != null) {
        contents[_ICBA] = de_VpcIpv6CidrBlockAssociation(output[_iCBA], context);
      }
      if (output[_cBA] != null) {
        contents[_CBA] = de_VpcCidrBlockAssociation(output[_cBA], context);
      }
      if (output[_vI] != null) {
        contents[_VI] = (0, import_smithy_client28.expectString)(output[_vI]);
      }
      return contents;
    }, "de_DisassociateVpcCidrBlockResult");
    var de_DiskImageDescription = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ch] != null) {
        contents[_Ch] = (0, import_smithy_client28.expectString)(output[_ch]);
      }
      if (output[_f] != null) {
        contents[_Fo] = (0, import_smithy_client28.expectString)(output[_f]);
      }
      if (output[_iMU] != null) {
        contents[_IMU] = (0, import_smithy_client28.expectString)(output[_iMU]);
      }
      if (output[_si] != null) {
        contents[_Siz] = (0, import_smithy_client28.strictParseLong)(output[_si]);
      }
      return contents;
    }, "de_DiskImageDescription");
    var de_DiskImageVolumeDescription = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_id] != null) {
        contents[_Id] = (0, import_smithy_client28.expectString)(output[_id]);
      }
      if (output[_si] != null) {
        contents[_Siz] = (0, import_smithy_client28.strictParseLong)(output[_si]);
      }
      return contents;
    }, "de_DiskImageVolumeDescription");
    var de_DiskInfo = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sIGB] != null) {
        contents[_SIGB] = (0, import_smithy_client28.strictParseLong)(output[_sIGB]);
      }
      if (output[_cou] != null) {
        contents[_Cou] = (0, import_smithy_client28.strictParseInt32)(output[_cou]);
      }
      if (output[_ty] != null) {
        contents[_T2] = (0, import_smithy_client28.expectString)(output[_ty]);
      }
      return contents;
    }, "de_DiskInfo");
    var de_DiskInfoList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_DiskInfo(entry, context);
      });
    }, "de_DiskInfoList");
    var de_DnsEntry = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_dNn] != null) {
        contents[_DNn] = (0, import_smithy_client28.expectString)(output[_dNn]);
      }
      if (output[_hZI] != null) {
        contents[_HZI] = (0, import_smithy_client28.expectString)(output[_hZI]);
      }
      return contents;
    }, "de_DnsEntry");
    var de_DnsEntrySet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_DnsEntry(entry, context);
      });
    }, "de_DnsEntrySet");
    var de_DnsOptions = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_dRIT] != null) {
        contents[_DRIT] = (0, import_smithy_client28.expectString)(output[_dRIT]);
      }
      if (output[_pDOFIRE] != null) {
        contents[_PDOFIRE] = (0, import_smithy_client28.parseBoolean)(output[_pDOFIRE]);
      }
      return contents;
    }, "de_DnsOptions");
    var de_EbsBlockDevice = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_dOT] != null) {
        contents[_DOT] = (0, import_smithy_client28.parseBoolean)(output[_dOT]);
      }
      if (output[_io] != null) {
        contents[_Io] = (0, import_smithy_client28.strictParseInt32)(output[_io]);
      }
      if (output[_sIn] != null) {
        contents[_SIn] = (0, import_smithy_client28.expectString)(output[_sIn]);
      }
      if (output[_vSo] != null) {
        contents[_VS] = (0, import_smithy_client28.strictParseInt32)(output[_vSo]);
      }
      if (output[_vT] != null) {
        contents[_VT] = (0, import_smithy_client28.expectString)(output[_vT]);
      }
      if (output[_kKI] != null) {
        contents[_KKI] = (0, import_smithy_client28.expectString)(output[_kKI]);
      }
      if (output[_th] != null) {
        contents[_Th] = (0, import_smithy_client28.strictParseInt32)(output[_th]);
      }
      if (output[_oA] != null) {
        contents[_OA] = (0, import_smithy_client28.expectString)(output[_oA]);
      }
      if (output[_aZ] != null) {
        contents[_AZ] = (0, import_smithy_client28.expectString)(output[_aZ]);
      }
      if (output[_enc] != null) {
        contents[_Enc] = (0, import_smithy_client28.parseBoolean)(output[_enc]);
      }
      if (output[_VIR] != null) {
        contents[_VIR] = (0, import_smithy_client28.strictParseInt32)(output[_VIR]);
      }
      if (output[_AZI] != null) {
        contents[_AZI] = (0, import_smithy_client28.expectString)(output[_AZI]);
      }
      return contents;
    }, "de_EbsBlockDevice");
    var de_EbsBlockDeviceResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_enc] != null) {
        contents[_Enc] = (0, import_smithy_client28.parseBoolean)(output[_enc]);
      }
      if (output[_dOT] != null) {
        contents[_DOT] = (0, import_smithy_client28.parseBoolean)(output[_dOT]);
      }
      if (output[_io] != null) {
        contents[_Io] = (0, import_smithy_client28.strictParseInt32)(output[_io]);
      }
      if (output[_th] != null) {
        contents[_Th] = (0, import_smithy_client28.strictParseInt32)(output[_th]);
      }
      if (output[_kKI] != null) {
        contents[_KKI] = (0, import_smithy_client28.expectString)(output[_kKI]);
      }
      if (output[_sIn] != null) {
        contents[_SIn] = (0, import_smithy_client28.expectString)(output[_sIn]);
      }
      if (output[_vSo] != null) {
        contents[_VS] = (0, import_smithy_client28.strictParseInt32)(output[_vSo]);
      }
      if (output[_vT] != null) {
        contents[_VT] = (0, import_smithy_client28.expectString)(output[_vT]);
      }
      return contents;
    }, "de_EbsBlockDeviceResponse");
    var de_EbsInfo = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_eOS] != null) {
        contents[_EOS] = (0, import_smithy_client28.expectString)(output[_eOS]);
      }
      if (output[_eSn] != null) {
        contents[_ESnc] = (0, import_smithy_client28.expectString)(output[_eSn]);
      }
      if (output[_eOI] != null) {
        contents[_EOI] = de_EbsOptimizedInfo(output[_eOI], context);
      }
      if (output[_nS] != null) {
        contents[_NS] = (0, import_smithy_client28.expectString)(output[_nS]);
      }
      return contents;
    }, "de_EbsInfo");
    var de_EbsInstanceBlockDevice = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aTt] != null) {
        contents[_ATtt] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_aTt]));
      }
      if (output[_dOT] != null) {
        contents[_DOT] = (0, import_smithy_client28.parseBoolean)(output[_dOT]);
      }
      if (output[_sta] != null) {
        contents[_Statu] = (0, import_smithy_client28.expectString)(output[_sta]);
      }
      if (output[_vIo] != null) {
        contents[_VIo] = (0, import_smithy_client28.expectString)(output[_vIo]);
      }
      if (output[_aRs] != null) {
        contents[_ARs] = (0, import_smithy_client28.expectString)(output[_aRs]);
      }
      if (output[_vOI] != null) {
        contents[_VOI] = (0, import_smithy_client28.expectString)(output[_vOI]);
      }
      if (output[_op] != null) {
        contents[_O] = de_OperatorResponse(output[_op], context);
      }
      return contents;
    }, "de_EbsInstanceBlockDevice");
    var de_EbsOptimizedInfo = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_bBIM] != null) {
        contents[_BBIM] = (0, import_smithy_client28.strictParseInt32)(output[_bBIM]);
      }
      if (output[_bTIMB] != null) {
        contents[_BTIMB] = (0, import_smithy_client28.strictParseFloat)(output[_bTIMB]);
      }
      if (output[_bIa] != null) {
        contents[_BIa] = (0, import_smithy_client28.strictParseInt32)(output[_bIa]);
      }
      if (output[_mBIM] != null) {
        contents[_MBIM] = (0, import_smithy_client28.strictParseInt32)(output[_mBIM]);
      }
      if (output[_mTIMB] != null) {
        contents[_MTIMB] = (0, import_smithy_client28.strictParseFloat)(output[_mTIMB]);
      }
      if (output[_mI] != null) {
        contents[_MIa] = (0, import_smithy_client28.strictParseInt32)(output[_mI]);
      }
      return contents;
    }, "de_EbsOptimizedInfo");
    var de_EbsStatusDetails = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iSmp] != null) {
        contents[_ISmp] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_iSmp]));
      }
      if (output[_n] != null) {
        contents[_N] = (0, import_smithy_client28.expectString)(output[_n]);
      }
      if (output[_sta] != null) {
        contents[_Statu] = (0, import_smithy_client28.expectString)(output[_sta]);
      }
      return contents;
    }, "de_EbsStatusDetails");
    var de_EbsStatusDetailsList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_EbsStatusDetails(entry, context);
      });
    }, "de_EbsStatusDetailsList");
    var de_EbsStatusSummary = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.details === "") {
        contents[_Det] = [];
      } else if (output[_det] != null && output[_det][_i] != null) {
        contents[_Det] = de_EbsStatusDetailsList((0, import_smithy_client28.getArrayIfSingleItem)(output[_det][_i]), context);
      }
      if (output[_sta] != null) {
        contents[_Statu] = (0, import_smithy_client28.expectString)(output[_sta]);
      }
      return contents;
    }, "de_EbsStatusSummary");
    var de_Ec2InstanceConnectEndpoint = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_oI] != null) {
        contents[_OIwn] = (0, import_smithy_client28.expectString)(output[_oI]);
      }
      if (output[_iCEI] != null) {
        contents[_ICEI] = (0, import_smithy_client28.expectString)(output[_iCEI]);
      }
      if (output[_iCEA] != null) {
        contents[_ICEA] = (0, import_smithy_client28.expectString)(output[_iCEA]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_sMta] != null) {
        contents[_SMta] = (0, import_smithy_client28.expectString)(output[_sMta]);
      }
      if (output[_dNn] != null) {
        contents[_DNn] = (0, import_smithy_client28.expectString)(output[_dNn]);
      }
      if (output[_fDN] != null) {
        contents[_FDN] = (0, import_smithy_client28.expectString)(output[_fDN]);
      }
      if (output.networkInterfaceIdSet === "") {
        contents[_NIIe] = [];
      } else if (output[_nIIS] != null && output[_nIIS][_i] != null) {
        contents[_NIIe] = de_NetworkInterfaceIdSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_nIIS][_i]), context);
      }
      if (output[_vI] != null) {
        contents[_VI] = (0, import_smithy_client28.expectString)(output[_vI]);
      }
      if (output[_aZ] != null) {
        contents[_AZ] = (0, import_smithy_client28.expectString)(output[_aZ]);
      }
      if (output[_cAr] != null) {
        contents[_CAr] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_cAr]));
      }
      if (output[_sIu] != null) {
        contents[_SIub] = (0, import_smithy_client28.expectString)(output[_sIu]);
      }
      if (output[_pCI] != null) {
        contents[_PCI] = (0, import_smithy_client28.parseBoolean)(output[_pCI]);
      }
      if (output.securityGroupIdSet === "") {
        contents[_SGI] = [];
      } else if (output[_sGIS] != null && output[_sGIS][_i] != null) {
        contents[_SGI] = de_SecurityGroupIdSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_sGIS][_i]), context);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_iAT] != null) {
        contents[_IAT] = (0, import_smithy_client28.expectString)(output[_iAT]);
      }
      if (output[_pDN] != null) {
        contents[_PDNu] = de_InstanceConnectEndpointPublicDnsNames(output[_pDN], context);
      }
      return contents;
    }, "de_Ec2InstanceConnectEndpoint");
    var de_EfaInfo = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_mEI] != null) {
        contents[_MEI] = (0, import_smithy_client28.strictParseInt32)(output[_mEI]);
      }
      return contents;
    }, "de_EfaInfo");
    var de_EgressOnlyInternetGateway = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.attachmentSet === "") {
        contents[_Atta] = [];
      } else if (output[_aSt] != null && output[_aSt][_i] != null) {
        contents[_Atta] = de_InternetGatewayAttachmentList((0, import_smithy_client28.getArrayIfSingleItem)(output[_aSt][_i]), context);
      }
      if (output[_eOIGI] != null) {
        contents[_EOIGI] = (0, import_smithy_client28.expectString)(output[_eOIGI]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      return contents;
    }, "de_EgressOnlyInternetGateway");
    var de_EgressOnlyInternetGatewayList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_EgressOnlyInternetGateway(entry, context);
      });
    }, "de_EgressOnlyInternetGatewayList");
    var de_ElasticGpuAssociation = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_eGI] != null) {
        contents[_EGIl] = (0, import_smithy_client28.expectString)(output[_eGI]);
      }
      if (output[_eGAI] != null) {
        contents[_EGAI] = (0, import_smithy_client28.expectString)(output[_eGAI]);
      }
      if (output[_eGAS] != null) {
        contents[_EGAS] = (0, import_smithy_client28.expectString)(output[_eGAS]);
      }
      if (output[_eGAT] != null) {
        contents[_EGAT] = (0, import_smithy_client28.expectString)(output[_eGAT]);
      }
      return contents;
    }, "de_ElasticGpuAssociation");
    var de_ElasticGpuAssociationList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ElasticGpuAssociation(entry, context);
      });
    }, "de_ElasticGpuAssociationList");
    var de_ElasticGpuHealth = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sta] != null) {
        contents[_Statu] = (0, import_smithy_client28.expectString)(output[_sta]);
      }
      return contents;
    }, "de_ElasticGpuHealth");
    var de_ElasticGpus = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_eGI] != null) {
        contents[_EGIl] = (0, import_smithy_client28.expectString)(output[_eGI]);
      }
      if (output[_aZ] != null) {
        contents[_AZ] = (0, import_smithy_client28.expectString)(output[_aZ]);
      }
      if (output[_eGT] != null) {
        contents[_EGT] = (0, import_smithy_client28.expectString)(output[_eGT]);
      }
      if (output[_eGH] != null) {
        contents[_EGH] = de_ElasticGpuHealth(output[_eGH], context);
      }
      if (output[_eGSl] != null) {
        contents[_EGSlas] = (0, import_smithy_client28.expectString)(output[_eGSl]);
      }
      if (output[_iI] != null) {
        contents[_IIn] = (0, import_smithy_client28.expectString)(output[_iI]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      return contents;
    }, "de_ElasticGpus");
    var de_ElasticGpuSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ElasticGpus(entry, context);
      });
    }, "de_ElasticGpuSet");
    var de_ElasticGpuSpecificationResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ty] != null) {
        contents[_T2] = (0, import_smithy_client28.expectString)(output[_ty]);
      }
      return contents;
    }, "de_ElasticGpuSpecificationResponse");
    var de_ElasticGpuSpecificationResponseList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ElasticGpuSpecificationResponse(entry, context);
      });
    }, "de_ElasticGpuSpecificationResponseList");
    var de_ElasticInferenceAcceleratorAssociation = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_eIAA] != null) {
        contents[_EIAA] = (0, import_smithy_client28.expectString)(output[_eIAA]);
      }
      if (output[_eIAAI] != null) {
        contents[_EIAAI] = (0, import_smithy_client28.expectString)(output[_eIAAI]);
      }
      if (output[_eIAAS] != null) {
        contents[_EIAAS] = (0, import_smithy_client28.expectString)(output[_eIAAS]);
      }
      if (output[_eIAAT] != null) {
        contents[_EIAAT] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_eIAAT]));
      }
      return contents;
    }, "de_ElasticInferenceAcceleratorAssociation");
    var de_ElasticInferenceAcceleratorAssociationList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ElasticInferenceAcceleratorAssociation(entry, context);
      });
    }, "de_ElasticInferenceAcceleratorAssociationList");
    var de_EnableAddressTransferResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aT] != null) {
        contents[_ATdd] = de_AddressTransfer(output[_aT], context);
      }
      return contents;
    }, "de_EnableAddressTransferResult");
    var de_EnableAllowedImagesSettingsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aISS] != null) {
        contents[_AISS] = (0, import_smithy_client28.expectString)(output[_aISS]);
      }
      return contents;
    }, "de_EnableAllowedImagesSettingsResult");
    var de_EnableAwsNetworkPerformanceMetricSubscriptionResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ou] != null) {
        contents[_Ou] = (0, import_smithy_client28.parseBoolean)(output[_ou]);
      }
      return contents;
    }, "de_EnableAwsNetworkPerformanceMetricSubscriptionResult");
    var de_EnableEbsEncryptionByDefaultResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_eEBD] != null) {
        contents[_EEBD] = (0, import_smithy_client28.parseBoolean)(output[_eEBD]);
      }
      return contents;
    }, "de_EnableEbsEncryptionByDefaultResult");
    var de_EnableFastLaunchResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iIma] != null) {
        contents[_IIma] = (0, import_smithy_client28.expectString)(output[_iIma]);
      }
      if (output[_rTe] != null) {
        contents[_RT] = (0, import_smithy_client28.expectString)(output[_rTe]);
      }
      if (output[_sCn] != null) {
        contents[_SCn] = de_FastLaunchSnapshotConfigurationResponse(output[_sCn], context);
      }
      if (output[_lT] != null) {
        contents[_LTa] = de_FastLaunchLaunchTemplateSpecificationResponse(output[_lT], context);
      }
      if (output[_mPL] != null) {
        contents[_MPL] = (0, import_smithy_client28.strictParseInt32)(output[_mPL]);
      }
      if (output[_oI] != null) {
        contents[_OIwn] = (0, import_smithy_client28.expectString)(output[_oI]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_sTR] != null) {
        contents[_STRt] = (0, import_smithy_client28.expectString)(output[_sTR]);
      }
      if (output[_sTT] != null) {
        contents[_STT] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_sTT]));
      }
      return contents;
    }, "de_EnableFastLaunchResult");
    var de_EnableFastSnapshotRestoreErrorItem = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sIn] != null) {
        contents[_SIn] = (0, import_smithy_client28.expectString)(output[_sIn]);
      }
      if (output.fastSnapshotRestoreStateErrorSet === "") {
        contents[_FSRSE] = [];
      } else if (output[_fSRSES] != null && output[_fSRSES][_i] != null) {
        contents[_FSRSE] = de_EnableFastSnapshotRestoreStateErrorSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_fSRSES][_i]), context);
      }
      return contents;
    }, "de_EnableFastSnapshotRestoreErrorItem");
    var de_EnableFastSnapshotRestoreErrorSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_EnableFastSnapshotRestoreErrorItem(entry, context);
      });
    }, "de_EnableFastSnapshotRestoreErrorSet");
    var de_EnableFastSnapshotRestoresResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.successful === "") {
        contents[_Suc] = [];
      } else if (output[_suc] != null && output[_suc][_i] != null) {
        contents[_Suc] = de_EnableFastSnapshotRestoreSuccessSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_suc][_i]), context);
      }
      if (output.unsuccessful === "") {
        contents[_Un] = [];
      } else if (output[_u] != null && output[_u][_i] != null) {
        contents[_Un] = de_EnableFastSnapshotRestoreErrorSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_u][_i]), context);
      }
      return contents;
    }, "de_EnableFastSnapshotRestoresResult");
    var de_EnableFastSnapshotRestoreStateError = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_co] != null) {
        contents[_Cod] = (0, import_smithy_client28.expectString)(output[_co]);
      }
      if (output[_me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_me]);
      }
      return contents;
    }, "de_EnableFastSnapshotRestoreStateError");
    var de_EnableFastSnapshotRestoreStateErrorItem = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aZ] != null) {
        contents[_AZ] = (0, import_smithy_client28.expectString)(output[_aZ]);
      }
      if (output[_er] != null) {
        contents[_Er] = de_EnableFastSnapshotRestoreStateError(output[_er], context);
      }
      return contents;
    }, "de_EnableFastSnapshotRestoreStateErrorItem");
    var de_EnableFastSnapshotRestoreStateErrorSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_EnableFastSnapshotRestoreStateErrorItem(entry, context);
      });
    }, "de_EnableFastSnapshotRestoreStateErrorSet");
    var de_EnableFastSnapshotRestoreSuccessItem = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sIn] != null) {
        contents[_SIn] = (0, import_smithy_client28.expectString)(output[_sIn]);
      }
      if (output[_aZ] != null) {
        contents[_AZ] = (0, import_smithy_client28.expectString)(output[_aZ]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_sTR] != null) {
        contents[_STRt] = (0, import_smithy_client28.expectString)(output[_sTR]);
      }
      if (output[_oI] != null) {
        contents[_OIwn] = (0, import_smithy_client28.expectString)(output[_oI]);
      }
      if (output[_oAw] != null) {
        contents[_OAw] = (0, import_smithy_client28.expectString)(output[_oAw]);
      }
      if (output[_eTna] != null) {
        contents[_ETna] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_eTna]));
      }
      if (output[_oT] != null) {
        contents[_OTpt] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_oT]));
      }
      if (output[_eTnab] != null) {
        contents[_ETnab] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_eTnab]));
      }
      if (output[_dTi] != null) {
        contents[_DTi] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_dTi]));
      }
      if (output[_dTis] != null) {
        contents[_DTis] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_dTis]));
      }
      return contents;
    }, "de_EnableFastSnapshotRestoreSuccessItem");
    var de_EnableFastSnapshotRestoreSuccessSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_EnableFastSnapshotRestoreSuccessItem(entry, context);
      });
    }, "de_EnableFastSnapshotRestoreSuccessSet");
    var de_EnableImageBlockPublicAccessResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iBPAS] != null) {
        contents[_IBPAS] = (0, import_smithy_client28.expectString)(output[_iBPAS]);
      }
      return contents;
    }, "de_EnableImageBlockPublicAccessResult");
    var de_EnableImageDeprecationResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_Ret] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      return contents;
    }, "de_EnableImageDeprecationResult");
    var de_EnableImageDeregistrationProtectionResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_Ret] = (0, import_smithy_client28.expectString)(output[_r]);
      }
      return contents;
    }, "de_EnableImageDeregistrationProtectionResult");
    var de_EnableImageResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_Ret] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      return contents;
    }, "de_EnableImageResult");
    var de_EnableIpamOrganizationAdminAccountResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_succ] != null) {
        contents[_Succ] = (0, import_smithy_client28.parseBoolean)(output[_succ]);
      }
      return contents;
    }, "de_EnableIpamOrganizationAdminAccountResult");
    var de_EnableReachabilityAnalyzerOrganizationSharingResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_rV] != null) {
        contents[_RV] = (0, import_smithy_client28.parseBoolean)(output[_rV]);
      }
      return contents;
    }, "de_EnableReachabilityAnalyzerOrganizationSharingResult");
    var de_EnableRouteServerPropagationResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_rSPo] != null) {
        contents[_RSPou] = de_RouteServerPropagation(output[_rSPo], context);
      }
      return contents;
    }, "de_EnableRouteServerPropagationResult");
    var de_EnableSerialConsoleAccessResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sCAE] != null) {
        contents[_SCAE] = (0, import_smithy_client28.parseBoolean)(output[_sCAE]);
      }
      return contents;
    }, "de_EnableSerialConsoleAccessResult");
    var de_EnableSnapshotBlockPublicAccessResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      return contents;
    }, "de_EnableSnapshotBlockPublicAccessResult");
    var de_EnableTransitGatewayRouteTablePropagationResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_prop] != null) {
        contents[_Prop] = de_TransitGatewayPropagation(output[_prop], context);
      }
      return contents;
    }, "de_EnableTransitGatewayRouteTablePropagationResult");
    var de_EnableVpcClassicLinkDnsSupportResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_Ret] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      return contents;
    }, "de_EnableVpcClassicLinkDnsSupportResult");
    var de_EnableVpcClassicLinkResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_Ret] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      return contents;
    }, "de_EnableVpcClassicLinkResult");
    var de_EnaSrdSpecificationRequest = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ESE] != null) {
        contents[_ESE] = (0, import_smithy_client28.parseBoolean)(output[_ESE]);
      }
      if (output[_ESUS] != null) {
        contents[_ESUS] = de_EnaSrdUdpSpecificationRequest(output[_ESUS], context);
      }
      return contents;
    }, "de_EnaSrdSpecificationRequest");
    var de_EnaSrdUdpSpecificationRequest = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ESUE] != null) {
        contents[_ESUE] = (0, import_smithy_client28.parseBoolean)(output[_ESUE]);
      }
      return contents;
    }, "de_EnaSrdUdpSpecificationRequest");
    var de_EnclaveOptions = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_en] != null) {
        contents[_En] = (0, import_smithy_client28.parseBoolean)(output[_en]);
      }
      return contents;
    }, "de_EnclaveOptions");
    var de_EndpointSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ClientVpnEndpoint(entry, context);
      });
    }, "de_EndpointSet");
    var de_ErrorSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ValidationError(entry, context);
      });
    }, "de_ErrorSet");
    var de_EventInformation = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_eDv] != null) {
        contents[_EDv] = (0, import_smithy_client28.expectString)(output[_eDv]);
      }
      if (output[_eST] != null) {
        contents[_EST] = (0, import_smithy_client28.expectString)(output[_eST]);
      }
      if (output[_iI] != null) {
        contents[_IIn] = (0, import_smithy_client28.expectString)(output[_iI]);
      }
      return contents;
    }, "de_EventInformation");
    var de_ExcludedInstanceTypeSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_ExcludedInstanceTypeSet");
    var de_Explanation = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ac] != null) {
        contents[_Acl] = de_AnalysisComponent(output[_ac], context);
      }
      if (output[_aRc] != null) {
        contents[_ARcl] = de_AnalysisAclRule(output[_aRc], context);
      }
      if (output[_ad] != null) {
        contents[_Ad] = (0, import_smithy_client28.expectString)(output[_ad]);
      }
      if (output.addressSet === "") {
        contents[_Addr] = [];
      } else if (output[_aSd] != null && output[_aSd][_i] != null) {
        contents[_Addr] = de_IpAddressList((0, import_smithy_client28.getArrayIfSingleItem)(output[_aSd][_i]), context);
      }
      if (output[_aTtt] != null) {
        contents[_ATtta] = de_AnalysisComponent(output[_aTtt], context);
      }
      if (output.availabilityZoneSet === "") {
        contents[_AZv] = [];
      } else if (output[_aZS] != null && output[_aZS][_i] != null) {
        contents[_AZv] = de_ValueStringList((0, import_smithy_client28.getArrayIfSingleItem)(output[_aZS][_i]), context);
      }
      if (output.availabilityZoneIdSet === "") {
        contents[_AZIv] = [];
      } else if (output[_aZIS] != null && output[_aZIS][_i] != null) {
        contents[_AZIv] = de_ValueStringList((0, import_smithy_client28.getArrayIfSingleItem)(output[_aZIS][_i]), context);
      }
      if (output.cidrSet === "") {
        contents[_Ci] = [];
      } else if (output[_cS] != null && output[_cS][_i] != null) {
        contents[_Ci] = de_ValueStringList((0, import_smithy_client28.getArrayIfSingleItem)(output[_cS][_i]), context);
      }
      if (output[_c] != null) {
        contents[_Com] = de_AnalysisComponent(output[_c], context);
      }
      if (output[_cGu] != null) {
        contents[_CGu] = de_AnalysisComponent(output[_cGu], context);
      }
      if (output[_d] != null) {
        contents[_D] = de_AnalysisComponent(output[_d], context);
      }
      if (output[_dV] != null) {
        contents[_DVest] = de_AnalysisComponent(output[_dV], context);
      }
      if (output[_di] != null) {
        contents[_Di] = (0, import_smithy_client28.expectString)(output[_di]);
      }
      if (output[_eCx] != null) {
        contents[_ECx] = (0, import_smithy_client28.expectString)(output[_eCx]);
      }
      if (output[_iRT] != null) {
        contents[_IRT] = de_AnalysisComponent(output[_iRT], context);
      }
      if (output[_iG] != null) {
        contents[_IGn] = de_AnalysisComponent(output[_iG], context);
      }
      if (output[_lBA] != null) {
        contents[_LBAo] = (0, import_smithy_client28.expectString)(output[_lBA]);
      }
      if (output[_cLBL] != null) {
        contents[_CLBL] = de_AnalysisLoadBalancerListener(output[_cLBL], context);
      }
      if (output[_lBLP] != null) {
        contents[_LBLP] = (0, import_smithy_client28.strictParseInt32)(output[_lBLP]);
      }
      if (output[_lBT] != null) {
        contents[_LBT] = de_AnalysisLoadBalancerTarget(output[_lBT], context);
      }
      if (output[_lBTG] != null) {
        contents[_LBTG] = de_AnalysisComponent(output[_lBTG], context);
      }
      if (output.loadBalancerTargetGroupSet === "") {
        contents[_LBTGo] = [];
      } else if (output[_lBTGS] != null && output[_lBTGS][_i] != null) {
        contents[_LBTGo] = de_AnalysisComponentList((0, import_smithy_client28.getArrayIfSingleItem)(output[_lBTGS][_i]), context);
      }
      if (output[_lBTP] != null) {
        contents[_LBTP] = (0, import_smithy_client28.strictParseInt32)(output[_lBTP]);
      }
      if (output[_eLBL] != null) {
        contents[_ELBL] = de_AnalysisComponent(output[_eLBL], context);
      }
      if (output[_mC] != null) {
        contents[_MCis] = (0, import_smithy_client28.expectString)(output[_mC]);
      }
      if (output[_nG] != null) {
        contents[_NG] = de_AnalysisComponent(output[_nG], context);
      }
      if (output[_nIe] != null) {
        contents[_NIet] = de_AnalysisComponent(output[_nIe], context);
      }
      if (output[_pF] != null) {
        contents[_PF] = (0, import_smithy_client28.expectString)(output[_pF]);
      }
      if (output[_vPC] != null) {
        contents[_VPC] = de_AnalysisComponent(output[_vPC], context);
      }
      if (output[_po] != null) {
        contents[_Po] = (0, import_smithy_client28.strictParseInt32)(output[_po]);
      }
      if (output.portRangeSet === "") {
        contents[_PRo] = [];
      } else if (output[_pRS] != null && output[_pRS][_i] != null) {
        contents[_PRo] = de_PortRangeList((0, import_smithy_client28.getArrayIfSingleItem)(output[_pRS][_i]), context);
      }
      if (output[_pL] != null) {
        contents[_PLr] = de_AnalysisComponent(output[_pL], context);
      }
      if (output.protocolSet === "") {
        contents[_Pro] = [];
      } else if (output[_pSro] != null && output[_pSro][_i] != null) {
        contents[_Pro] = de_StringList((0, import_smithy_client28.getArrayIfSingleItem)(output[_pSro][_i]), context);
      }
      if (output[_rTR] != null) {
        contents[_RTR] = de_AnalysisRouteTableRoute(output[_rTR], context);
      }
      if (output[_rTo] != null) {
        contents[_RTo] = de_AnalysisComponent(output[_rTo], context);
      }
      if (output[_sG] != null) {
        contents[_SGe] = de_AnalysisComponent(output[_sG], context);
      }
      if (output[_sGR] != null) {
        contents[_SGRe] = de_AnalysisSecurityGroupRule(output[_sGR], context);
      }
      if (output.securityGroupSet === "") {
        contents[_SG] = [];
      } else if (output[_sGS] != null && output[_sGS][_i] != null) {
        contents[_SG] = de_AnalysisComponentList((0, import_smithy_client28.getArrayIfSingleItem)(output[_sGS][_i]), context);
      }
      if (output[_sV] != null) {
        contents[_SVo] = de_AnalysisComponent(output[_sV], context);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_su] != null) {
        contents[_Su] = de_AnalysisComponent(output[_su], context);
      }
      if (output[_sRT] != null) {
        contents[_SRT] = de_AnalysisComponent(output[_sRT], context);
      }
      if (output[_vp] != null) {
        contents[_Vp] = de_AnalysisComponent(output[_vp], context);
      }
      if (output[_vE] != null) {
        contents[_VE] = de_AnalysisComponent(output[_vE], context);
      }
      if (output[_vC] != null) {
        contents[_VC] = de_AnalysisComponent(output[_vC], context);
      }
      if (output[_vG] != null) {
        contents[_VG] = de_AnalysisComponent(output[_vG], context);
      }
      if (output[_tG] != null) {
        contents[_TGr] = de_AnalysisComponent(output[_tG], context);
      }
      if (output[_tGRT] != null) {
        contents[_TGRT] = de_AnalysisComponent(output[_tGRT], context);
      }
      if (output[_tGRTR] != null) {
        contents[_TGRTR] = de_TransitGatewayRouteTableRoute(output[_tGRTR], context);
      }
      if (output[_tGAr] != null) {
        contents[_TGAra] = de_AnalysisComponent(output[_tGAr], context);
      }
      if (output[_cAo] != null) {
        contents[_CAom] = (0, import_smithy_client28.expectString)(output[_cAo]);
      }
      if (output[_cRo] != null) {
        contents[_CRo] = (0, import_smithy_client28.expectString)(output[_cRo]);
      }
      if (output[_fSR] != null) {
        contents[_FSRi] = de_FirewallStatelessRule(output[_fSR], context);
      }
      if (output[_fSRi] != null) {
        contents[_FSRir] = de_FirewallStatefulRule(output[_fSRi], context);
      }
      return contents;
    }, "de_Explanation");
    var de_ExplanationList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Explanation(entry, context);
      });
    }, "de_ExplanationList");
    var de_ExportClientVpnClientCertificateRevocationListResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cRL] != null) {
        contents[_CRL] = (0, import_smithy_client28.expectString)(output[_cRL]);
      }
      if (output[_sta] != null) {
        contents[_Statu] = de_ClientCertificateRevocationListStatus(output[_sta], context);
      }
      return contents;
    }, "de_ExportClientVpnClientCertificateRevocationListResult");
    var de_ExportClientVpnClientConfigurationResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cCl] != null) {
        contents[_CCl] = (0, import_smithy_client28.expectString)(output[_cCl]);
      }
      return contents;
    }, "de_ExportClientVpnClientConfigurationResult");
    var de_ExportImageResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      if (output[_dIF] != null) {
        contents[_DIFi] = (0, import_smithy_client28.expectString)(output[_dIF]);
      }
      if (output[_eITI] != null) {
        contents[_EITIx] = (0, import_smithy_client28.expectString)(output[_eITI]);
      }
      if (output[_iIma] != null) {
        contents[_IIma] = (0, import_smithy_client28.expectString)(output[_iIma]);
      }
      if (output[_rNo] != null) {
        contents[_RNo] = (0, import_smithy_client28.expectString)(output[_rNo]);
      }
      if (output[_pro] != null) {
        contents[_Prog] = (0, import_smithy_client28.expectString)(output[_pro]);
      }
      if (output[_sEL] != null) {
        contents[_SEL] = de_ExportTaskS3Location(output[_sEL], context);
      }
      if (output[_sta] != null) {
        contents[_Statu] = (0, import_smithy_client28.expectString)(output[_sta]);
      }
      if (output[_sMt] != null) {
        contents[_SMt] = (0, import_smithy_client28.expectString)(output[_sMt]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      return contents;
    }, "de_ExportImageResult");
    var de_ExportImageTask = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      if (output[_eITI] != null) {
        contents[_EITIx] = (0, import_smithy_client28.expectString)(output[_eITI]);
      }
      if (output[_iIma] != null) {
        contents[_IIma] = (0, import_smithy_client28.expectString)(output[_iIma]);
      }
      if (output[_pro] != null) {
        contents[_Prog] = (0, import_smithy_client28.expectString)(output[_pro]);
      }
      if (output[_sEL] != null) {
        contents[_SEL] = de_ExportTaskS3Location(output[_sEL], context);
      }
      if (output[_sta] != null) {
        contents[_Statu] = (0, import_smithy_client28.expectString)(output[_sta]);
      }
      if (output[_sMt] != null) {
        contents[_SMt] = (0, import_smithy_client28.expectString)(output[_sMt]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      return contents;
    }, "de_ExportImageTask");
    var de_ExportImageTaskList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ExportImageTask(entry, context);
      });
    }, "de_ExportImageTaskList");
    var de_ExportTask = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      if (output[_eTI] != null) {
        contents[_ETI] = (0, import_smithy_client28.expectString)(output[_eTI]);
      }
      if (output[_eTSx] != null) {
        contents[_ETST] = de_ExportToS3Task(output[_eTSx], context);
      }
      if (output[_iE] != null) {
        contents[_IED] = de_InstanceExportDetails(output[_iE], context);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_sMt] != null) {
        contents[_SMt] = (0, import_smithy_client28.expectString)(output[_sMt]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      return contents;
    }, "de_ExportTask");
    var de_ExportTaskList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ExportTask(entry, context);
      });
    }, "de_ExportTaskList");
    var de_ExportTaskS3Location = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sB] != null) {
        contents[_SB] = (0, import_smithy_client28.expectString)(output[_sB]);
      }
      if (output[_sP] != null) {
        contents[_SP] = (0, import_smithy_client28.expectString)(output[_sP]);
      }
      return contents;
    }, "de_ExportTaskS3Location");
    var de_ExportToS3Task = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cF] != null) {
        contents[_CFo] = (0, import_smithy_client28.expectString)(output[_cF]);
      }
      if (output[_dIF] != null) {
        contents[_DIFi] = (0, import_smithy_client28.expectString)(output[_dIF]);
      }
      if (output[_sB] != null) {
        contents[_SB] = (0, import_smithy_client28.expectString)(output[_sB]);
      }
      if (output[_sK] != null) {
        contents[_SK] = (0, import_smithy_client28.expectString)(output[_sK]);
      }
      return contents;
    }, "de_ExportToS3Task");
    var de_ExportTransitGatewayRoutesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sL] != null) {
        contents[_SLo] = (0, import_smithy_client28.expectString)(output[_sL]);
      }
      return contents;
    }, "de_ExportTransitGatewayRoutesResult");
    var de_ExportVerifiedAccessInstanceClientConfigurationResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ve] != null) {
        contents[_V2] = (0, import_smithy_client28.expectString)(output[_ve]);
      }
      if (output[_vAII] != null) {
        contents[_VAII] = (0, import_smithy_client28.expectString)(output[_vAII]);
      }
      if (output[_re] != null) {
        contents[_Regi] = (0, import_smithy_client28.expectString)(output[_re]);
      }
      if (output.deviceTrustProviderSet === "") {
        contents[_DTP] = [];
      } else if (output[_dTPS] != null && output[_dTPS][_i] != null) {
        contents[_DTP] = de_DeviceTrustProviderTypeList((0, import_smithy_client28.getArrayIfSingleItem)(output[_dTPS][_i]), context);
      }
      if (output[_uTP] != null) {
        contents[_UTP] = de_VerifiedAccessInstanceUserTrustProviderClientConfiguration(output[_uTP], context);
      }
      if (output.openVpnConfigurationSet === "") {
        contents[_OVC] = [];
      } else if (output[_oVCS] != null && output[_oVCS][_i] != null) {
        contents[_OVC] = de_VerifiedAccessInstanceOpenVpnClientConfigurationList(
          (0, import_smithy_client28.getArrayIfSingleItem)(output[_oVCS][_i]),
          context
        );
      }
      return contents;
    }, "de_ExportVerifiedAccessInstanceClientConfigurationResult");
    var de_FailedCapacityReservationFleetCancellationResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cRFI] != null) {
        contents[_CRFIa] = (0, import_smithy_client28.expectString)(output[_cRFI]);
      }
      if (output[_cCRFE] != null) {
        contents[_CCRFE] = de_CancelCapacityReservationFleetError(output[_cCRFE], context);
      }
      return contents;
    }, "de_FailedCapacityReservationFleetCancellationResult");
    var de_FailedCapacityReservationFleetCancellationResultSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_FailedCapacityReservationFleetCancellationResult(entry, context);
      });
    }, "de_FailedCapacityReservationFleetCancellationResultSet");
    var de_FailedQueuedPurchaseDeletion = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_er] != null) {
        contents[_Er] = de_DeleteQueuedReservedInstancesError(output[_er], context);
      }
      if (output[_rII] != null) {
        contents[_RIIe] = (0, import_smithy_client28.expectString)(output[_rII]);
      }
      return contents;
    }, "de_FailedQueuedPurchaseDeletion");
    var de_FailedQueuedPurchaseDeletionSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_FailedQueuedPurchaseDeletion(entry, context);
      });
    }, "de_FailedQueuedPurchaseDeletionSet");
    var de_FastLaunchLaunchTemplateSpecificationResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_lTI] != null) {
        contents[_LTI] = (0, import_smithy_client28.expectString)(output[_lTI]);
      }
      if (output[_lTN] != null) {
        contents[_LTN] = (0, import_smithy_client28.expectString)(output[_lTN]);
      }
      if (output[_ve] != null) {
        contents[_V2] = (0, import_smithy_client28.expectString)(output[_ve]);
      }
      return contents;
    }, "de_FastLaunchLaunchTemplateSpecificationResponse");
    var de_FastLaunchSnapshotConfigurationResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tRC] != null) {
        contents[_TRC] = (0, import_smithy_client28.strictParseInt32)(output[_tRC]);
      }
      return contents;
    }, "de_FastLaunchSnapshotConfigurationResponse");
    var de_FederatedAuthentication = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sPA] != null) {
        contents[_SPA] = (0, import_smithy_client28.expectString)(output[_sPA]);
      }
      if (output[_sSSPA] != null) {
        contents[_SSSPA] = (0, import_smithy_client28.expectString)(output[_sSSPA]);
      }
      return contents;
    }, "de_FederatedAuthentication");
    var de_FilterPortRange = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_fP] != null) {
        contents[_FP] = (0, import_smithy_client28.strictParseInt32)(output[_fP]);
      }
      if (output[_tPo] != null) {
        contents[_TP] = (0, import_smithy_client28.strictParseInt32)(output[_tPo]);
      }
      return contents;
    }, "de_FilterPortRange");
    var de_FirewallStatefulRule = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_rGA] != null) {
        contents[_RGA] = (0, import_smithy_client28.expectString)(output[_rGA]);
      }
      if (output.sourceSet === "") {
        contents[_So] = [];
      } else if (output[_sSo] != null && output[_sSo][_i] != null) {
        contents[_So] = de_ValueStringList((0, import_smithy_client28.getArrayIfSingleItem)(output[_sSo][_i]), context);
      }
      if (output.destinationSet === "") {
        contents[_Des] = [];
      } else if (output[_dSe] != null && output[_dSe][_i] != null) {
        contents[_Des] = de_ValueStringList((0, import_smithy_client28.getArrayIfSingleItem)(output[_dSe][_i]), context);
      }
      if (output.sourcePortSet === "") {
        contents[_SPo] = [];
      } else if (output[_sPS] != null && output[_sPS][_i] != null) {
        contents[_SPo] = de_PortRangeList((0, import_smithy_client28.getArrayIfSingleItem)(output[_sPS][_i]), context);
      }
      if (output.destinationPortSet === "") {
        contents[_DPes] = [];
      } else if (output[_dPS] != null && output[_dPS][_i] != null) {
        contents[_DPes] = de_PortRangeList((0, import_smithy_client28.getArrayIfSingleItem)(output[_dPS][_i]), context);
      }
      if (output[_pr] != null) {
        contents[_P2] = (0, import_smithy_client28.expectString)(output[_pr]);
      }
      if (output[_rA] != null) {
        contents[_RAu] = (0, import_smithy_client28.expectString)(output[_rA]);
      }
      if (output[_di] != null) {
        contents[_Di] = (0, import_smithy_client28.expectString)(output[_di]);
      }
      return contents;
    }, "de_FirewallStatefulRule");
    var de_FirewallStatelessRule = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_rGA] != null) {
        contents[_RGA] = (0, import_smithy_client28.expectString)(output[_rGA]);
      }
      if (output.sourceSet === "") {
        contents[_So] = [];
      } else if (output[_sSo] != null && output[_sSo][_i] != null) {
        contents[_So] = de_ValueStringList((0, import_smithy_client28.getArrayIfSingleItem)(output[_sSo][_i]), context);
      }
      if (output.destinationSet === "") {
        contents[_Des] = [];
      } else if (output[_dSe] != null && output[_dSe][_i] != null) {
        contents[_Des] = de_ValueStringList((0, import_smithy_client28.getArrayIfSingleItem)(output[_dSe][_i]), context);
      }
      if (output.sourcePortSet === "") {
        contents[_SPo] = [];
      } else if (output[_sPS] != null && output[_sPS][_i] != null) {
        contents[_SPo] = de_PortRangeList((0, import_smithy_client28.getArrayIfSingleItem)(output[_sPS][_i]), context);
      }
      if (output.destinationPortSet === "") {
        contents[_DPes] = [];
      } else if (output[_dPS] != null && output[_dPS][_i] != null) {
        contents[_DPes] = de_PortRangeList((0, import_smithy_client28.getArrayIfSingleItem)(output[_dPS][_i]), context);
      }
      if (output.protocolSet === "") {
        contents[_Pro] = [];
      } else if (output[_pSro] != null && output[_pSro][_i] != null) {
        contents[_Pro] = de_ProtocolIntList((0, import_smithy_client28.getArrayIfSingleItem)(output[_pSro][_i]), context);
      }
      if (output[_rA] != null) {
        contents[_RAu] = (0, import_smithy_client28.expectString)(output[_rA]);
      }
      if (output[_pri] != null) {
        contents[_Pri] = (0, import_smithy_client28.strictParseInt32)(output[_pri]);
      }
      return contents;
    }, "de_FirewallStatelessRule");
    var de_FleetCapacityReservation = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cRI] != null) {
        contents[_CRI] = (0, import_smithy_client28.expectString)(output[_cRI]);
      }
      if (output[_aZI] != null) {
        contents[_AZI] = (0, import_smithy_client28.expectString)(output[_aZI]);
      }
      if (output[_iT] != null) {
        contents[_IT] = (0, import_smithy_client28.expectString)(output[_iT]);
      }
      if (output[_iPn] != null) {
        contents[_IPn] = (0, import_smithy_client28.expectString)(output[_iPn]);
      }
      if (output[_aZ] != null) {
        contents[_AZ] = (0, import_smithy_client28.expectString)(output[_aZ]);
      }
      if (output[_tIC] != null) {
        contents[_TICo] = (0, import_smithy_client28.strictParseInt32)(output[_tIC]);
      }
      if (output[_fC] != null) {
        contents[_FC] = (0, import_smithy_client28.strictParseFloat)(output[_fC]);
      }
      if (output[_eO] != null) {
        contents[_EO] = (0, import_smithy_client28.parseBoolean)(output[_eO]);
      }
      if (output[_cD] != null) {
        contents[_CDr] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_cD]));
      }
      if (output[_we] != null) {
        contents[_W] = (0, import_smithy_client28.strictParseFloat)(output[_we]);
      }
      if (output[_pri] != null) {
        contents[_Pri] = (0, import_smithy_client28.strictParseInt32)(output[_pri]);
      }
      return contents;
    }, "de_FleetCapacityReservation");
    var de_FleetCapacityReservationSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_FleetCapacityReservation(entry, context);
      });
    }, "de_FleetCapacityReservationSet");
    var de_FleetData = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aSc] != null) {
        contents[_ASc] = (0, import_smithy_client28.expectString)(output[_aSc]);
      }
      if (output[_cTr] != null) {
        contents[_CTr] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_cTr]));
      }
      if (output[_fIl] != null) {
        contents[_FIl] = (0, import_smithy_client28.expectString)(output[_fIl]);
      }
      if (output[_fSl] != null) {
        contents[_FS] = (0, import_smithy_client28.expectString)(output[_fSl]);
      }
      if (output[_cT] != null) {
        contents[_CTl] = (0, import_smithy_client28.expectString)(output[_cT]);
      }
      if (output[_eCTP] != null) {
        contents[_ECTP] = (0, import_smithy_client28.expectString)(output[_eCTP]);
      }
      if (output[_fC] != null) {
        contents[_FC] = (0, import_smithy_client28.strictParseFloat)(output[_fC]);
      }
      if (output[_fODC] != null) {
        contents[_FODC] = (0, import_smithy_client28.strictParseFloat)(output[_fODC]);
      }
      if (output.launchTemplateConfigs === "") {
        contents[_LTC] = [];
      } else if (output[_lTC] != null && output[_lTC][_i] != null) {
        contents[_LTC] = de_FleetLaunchTemplateConfigList((0, import_smithy_client28.getArrayIfSingleItem)(output[_lTC][_i]), context);
      }
      if (output[_tCS] != null) {
        contents[_TCS] = de_TargetCapacitySpecification(output[_tCS], context);
      }
      if (output[_tIWE] != null) {
        contents[_TIWE] = (0, import_smithy_client28.parseBoolean)(output[_tIWE]);
      }
      if (output[_ty] != null) {
        contents[_T2] = (0, import_smithy_client28.expectString)(output[_ty]);
      }
      if (output[_vF] != null) {
        contents[_VF] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_vF]));
      }
      if (output[_vU] != null) {
        contents[_VU] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_vU]));
      }
      if (output[_rUI] != null) {
        contents[_RUI] = (0, import_smithy_client28.parseBoolean)(output[_rUI]);
      }
      if (output[_sO] != null) {
        contents[_SO] = de_SpotOptions(output[_sO], context);
      }
      if (output[_oDO] != null) {
        contents[_ODO] = de_OnDemandOptions(output[_oDO], context);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output.errorSet === "") {
        contents[_Err] = [];
      } else if (output[_eSr] != null && output[_eSr][_i] != null) {
        contents[_Err] = de_DescribeFleetsErrorSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_eSr][_i]), context);
      }
      if (output.fleetInstanceSet === "") {
        contents[_In] = [];
      } else if (output[_fIS] != null && output[_fIS][_i] != null) {
        contents[_In] = de_DescribeFleetsInstancesSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_fIS][_i]), context);
      }
      if (output[_cont] != null) {
        contents[_Con] = (0, import_smithy_client28.expectString)(output[_cont]);
      }
      return contents;
    }, "de_FleetData");
    var de_FleetLaunchTemplateConfig = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_lTS] != null) {
        contents[_LTS] = de_FleetLaunchTemplateSpecification(output[_lTS], context);
      }
      if (output.overrides === "") {
        contents[_Ov] = [];
      } else if (output[_ov] != null && output[_ov][_i] != null) {
        contents[_Ov] = de_FleetLaunchTemplateOverridesList((0, import_smithy_client28.getArrayIfSingleItem)(output[_ov][_i]), context);
      }
      return contents;
    }, "de_FleetLaunchTemplateConfig");
    var de_FleetLaunchTemplateConfigList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_FleetLaunchTemplateConfig(entry, context);
      });
    }, "de_FleetLaunchTemplateConfigList");
    var de_FleetLaunchTemplateOverrides = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iT] != null) {
        contents[_IT] = (0, import_smithy_client28.expectString)(output[_iT]);
      }
      if (output[_mP] != null) {
        contents[_MPa] = (0, import_smithy_client28.expectString)(output[_mP]);
      }
      if (output[_sIu] != null) {
        contents[_SIub] = (0, import_smithy_client28.expectString)(output[_sIu]);
      }
      if (output[_aZ] != null) {
        contents[_AZ] = (0, import_smithy_client28.expectString)(output[_aZ]);
      }
      if (output[_wC] != null) {
        contents[_WCe] = (0, import_smithy_client28.strictParseFloat)(output[_wC]);
      }
      if (output[_pri] != null) {
        contents[_Pri] = (0, import_smithy_client28.strictParseFloat)(output[_pri]);
      }
      if (output[_pla] != null) {
        contents[_Pl] = de_PlacementResponse(output[_pla], context);
      }
      if (output[_iR] != null) {
        contents[_IR] = de_InstanceRequirements(output[_iR], context);
      }
      if (output[_iIma] != null) {
        contents[_IIma] = (0, import_smithy_client28.expectString)(output[_iIma]);
      }
      if (output.blockDeviceMappingSet === "") {
        contents[_BDM] = [];
      } else if (output[_bDMS] != null && output[_bDMS][_i] != null) {
        contents[_BDM] = de_BlockDeviceMappingResponseList((0, import_smithy_client28.getArrayIfSingleItem)(output[_bDMS][_i]), context);
      }
      return contents;
    }, "de_FleetLaunchTemplateOverrides");
    var de_FleetLaunchTemplateOverridesList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_FleetLaunchTemplateOverrides(entry, context);
      });
    }, "de_FleetLaunchTemplateOverridesList");
    var de_FleetLaunchTemplateSpecification = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_lTI] != null) {
        contents[_LTI] = (0, import_smithy_client28.expectString)(output[_lTI]);
      }
      if (output[_lTN] != null) {
        contents[_LTN] = (0, import_smithy_client28.expectString)(output[_lTN]);
      }
      if (output[_ve] != null) {
        contents[_V2] = (0, import_smithy_client28.expectString)(output[_ve]);
      }
      return contents;
    }, "de_FleetLaunchTemplateSpecification");
    var de_FleetSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_FleetData(entry, context);
      });
    }, "de_FleetSet");
    var de_FleetSpotCapacityRebalance = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_rSep] != null) {
        contents[_RS] = (0, import_smithy_client28.expectString)(output[_rSep]);
      }
      if (output[_tD] != null) {
        contents[_TDe] = (0, import_smithy_client28.strictParseInt32)(output[_tD]);
      }
      return contents;
    }, "de_FleetSpotCapacityRebalance");
    var de_FleetSpotMaintenanceStrategies = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cRa] != null) {
        contents[_CRap] = de_FleetSpotCapacityRebalance(output[_cRa], context);
      }
      return contents;
    }, "de_FleetSpotMaintenanceStrategies");
    var de_FlowLog = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cTre] != null) {
        contents[_CTre] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_cTre]));
      }
      if (output[_dLEM] != null) {
        contents[_DLEM] = (0, import_smithy_client28.expectString)(output[_dLEM]);
      }
      if (output[_dLPA] != null) {
        contents[_DLPA] = (0, import_smithy_client28.expectString)(output[_dLPA]);
      }
      if (output[_dCAR] != null) {
        contents[_DCAR] = (0, import_smithy_client28.expectString)(output[_dCAR]);
      }
      if (output[_dLS] != null) {
        contents[_DLSe] = (0, import_smithy_client28.expectString)(output[_dLS]);
      }
      if (output[_fLI] != null) {
        contents[_FLIl] = (0, import_smithy_client28.expectString)(output[_fLI]);
      }
      if (output[_fLSl] != null) {
        contents[_FLS] = (0, import_smithy_client28.expectString)(output[_fLSl]);
      }
      if (output[_lGN] != null) {
        contents[_LGN] = (0, import_smithy_client28.expectString)(output[_lGN]);
      }
      if (output[_rIes] != null) {
        contents[_RIeso] = (0, import_smithy_client28.expectString)(output[_rIes]);
      }
      if (output[_tT] != null) {
        contents[_TT] = (0, import_smithy_client28.expectString)(output[_tT]);
      }
      if (output[_lDT] != null) {
        contents[_LDT] = (0, import_smithy_client28.expectString)(output[_lDT]);
      }
      if (output[_lD] != null) {
        contents[_LD] = (0, import_smithy_client28.expectString)(output[_lD]);
      }
      if (output[_lF] != null) {
        contents[_LF] = (0, import_smithy_client28.expectString)(output[_lF]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_mAI] != null) {
        contents[_MAI] = (0, import_smithy_client28.strictParseInt32)(output[_mAI]);
      }
      if (output[_dOe] != null) {
        contents[_DO] = de_DestinationOptionsResponse(output[_dOe], context);
      }
      return contents;
    }, "de_FlowLog");
    var de_FlowLogSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_FlowLog(entry, context);
      });
    }, "de_FlowLogSet");
    var de_FpgaDeviceInfo = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_n] != null) {
        contents[_N] = (0, import_smithy_client28.expectString)(output[_n]);
      }
      if (output[_man] != null) {
        contents[_Man] = (0, import_smithy_client28.expectString)(output[_man]);
      }
      if (output[_cou] != null) {
        contents[_Cou] = (0, import_smithy_client28.strictParseInt32)(output[_cou]);
      }
      if (output[_mIe] != null) {
        contents[_MIe] = de_FpgaDeviceMemoryInfo(output[_mIe], context);
      }
      return contents;
    }, "de_FpgaDeviceInfo");
    var de_FpgaDeviceInfoList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_FpgaDeviceInfo(entry, context);
      });
    }, "de_FpgaDeviceInfoList");
    var de_FpgaDeviceMemoryInfo = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sIMB] != null) {
        contents[_SIMB] = (0, import_smithy_client28.strictParseInt32)(output[_sIMB]);
      }
      return contents;
    }, "de_FpgaDeviceMemoryInfo");
    var de_FpgaImage = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_fII] != null) {
        contents[_FII] = (0, import_smithy_client28.expectString)(output[_fII]);
      }
      if (output[_fIGI] != null) {
        contents[_FIGI] = (0, import_smithy_client28.expectString)(output[_fIGI]);
      }
      if (output[_n] != null) {
        contents[_N] = (0, import_smithy_client28.expectString)(output[_n]);
      }
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      if (output[_sVh] != null) {
        contents[_SVh] = (0, import_smithy_client28.expectString)(output[_sVh]);
      }
      if (output[_pIc] != null) {
        contents[_PIc] = de_PciId(output[_pIc], context);
      }
      if (output[_st] != null) {
        contents[_Stat] = de_FpgaImageState(output[_st], context);
      }
      if (output[_cTr] != null) {
        contents[_CTr] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_cTr]));
      }
      if (output[_uT] != null) {
        contents[_UTp] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_uT]));
      }
      if (output[_oI] != null) {
        contents[_OIwn] = (0, import_smithy_client28.expectString)(output[_oI]);
      }
      if (output[_oAw] != null) {
        contents[_OAw] = (0, import_smithy_client28.expectString)(output[_oAw]);
      }
      if (output.productCodes === "") {
        contents[_PCr] = [];
      } else if (output[_pC] != null && output[_pC][_i] != null) {
        contents[_PCr] = de_ProductCodeList((0, import_smithy_client28.getArrayIfSingleItem)(output[_pC][_i]), context);
      }
      if (output.tags === "") {
        contents[_Ta] = [];
      } else if (output[_ta] != null && output[_ta][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_ta][_i]), context);
      }
      if (output[_pu] != null) {
        contents[_Pu] = (0, import_smithy_client28.parseBoolean)(output[_pu]);
      }
      if (output[_dRS] != null) {
        contents[_DRSa] = (0, import_smithy_client28.parseBoolean)(output[_dRS]);
      }
      if (output.instanceTypes === "") {
        contents[_ITnst] = [];
      } else if (output[_iTn] != null && output[_iTn][_i] != null) {
        contents[_ITnst] = de_InstanceTypesList((0, import_smithy_client28.getArrayIfSingleItem)(output[_iTn][_i]), context);
      }
      return contents;
    }, "de_FpgaImage");
    var de_FpgaImageAttribute = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_fII] != null) {
        contents[_FII] = (0, import_smithy_client28.expectString)(output[_fII]);
      }
      if (output[_n] != null) {
        contents[_N] = (0, import_smithy_client28.expectString)(output[_n]);
      }
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      if (output.loadPermissions === "") {
        contents[_LPo] = [];
      } else if (output[_lP] != null && output[_lP][_i] != null) {
        contents[_LPo] = de_LoadPermissionList((0, import_smithy_client28.getArrayIfSingleItem)(output[_lP][_i]), context);
      }
      if (output.productCodes === "") {
        contents[_PCr] = [];
      } else if (output[_pC] != null && output[_pC][_i] != null) {
        contents[_PCr] = de_ProductCodeList((0, import_smithy_client28.getArrayIfSingleItem)(output[_pC][_i]), context);
      }
      return contents;
    }, "de_FpgaImageAttribute");
    var de_FpgaImageList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_FpgaImage(entry, context);
      });
    }, "de_FpgaImageList");
    var de_FpgaImageState = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_co] != null) {
        contents[_Cod] = (0, import_smithy_client28.expectString)(output[_co]);
      }
      if (output[_me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_me]);
      }
      return contents;
    }, "de_FpgaImageState");
    var de_FpgaInfo = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.fpgas === "") {
        contents[_Fp] = [];
      } else if (output[_fp] != null && output[_fp][_i] != null) {
        contents[_Fp] = de_FpgaDeviceInfoList((0, import_smithy_client28.getArrayIfSingleItem)(output[_fp][_i]), context);
      }
      if (output[_tFMIMB] != null) {
        contents[_TFMIMB] = (0, import_smithy_client28.strictParseInt32)(output[_tFMIMB]);
      }
      return contents;
    }, "de_FpgaInfo");
    var de_GetActiveVpnTunnelStatusResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aVTS] != null) {
        contents[_AVTS] = de_ActiveVpnTunnelStatus(output[_aVTS], context);
      }
      return contents;
    }, "de_GetActiveVpnTunnelStatusResult");
    var de_GetAllowedImagesSettingsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output.imageCriterionSet === "") {
        contents[_ICm] = [];
      } else if (output[_iCS] != null && output[_iCS][_i] != null) {
        contents[_ICm] = de_ImageCriterionList((0, import_smithy_client28.getArrayIfSingleItem)(output[_iCS][_i]), context);
      }
      if (output[_mB] != null) {
        contents[_MB] = (0, import_smithy_client28.expectString)(output[_mB]);
      }
      return contents;
    }, "de_GetAllowedImagesSettingsResult");
    var de_GetAssociatedEnclaveCertificateIamRolesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.associatedRoleSet === "") {
        contents[_ARss] = [];
      } else if (output[_aRS] != null && output[_aRS][_i] != null) {
        contents[_ARss] = de_AssociatedRolesList((0, import_smithy_client28.getArrayIfSingleItem)(output[_aRS][_i]), context);
      }
      return contents;
    }, "de_GetAssociatedEnclaveCertificateIamRolesResult");
    var de_GetAssociatedIpv6PoolCidrsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.ipv6CidrAssociationSet === "") {
        contents[_ICA] = [];
      } else if (output[_iCAS] != null && output[_iCAS][_i] != null) {
        contents[_ICA] = de_Ipv6CidrAssociationSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_iCAS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_GetAssociatedIpv6PoolCidrsResult");
    var de_GetAwsNetworkPerformanceDataResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.dataResponseSet === "") {
        contents[_DRa] = [];
      } else if (output[_dRSa] != null && output[_dRSa][_i] != null) {
        contents[_DRa] = de_DataResponses((0, import_smithy_client28.getArrayIfSingleItem)(output[_dRSa][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_GetAwsNetworkPerformanceDataResult");
    var de_GetCapacityReservationUsageResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      if (output[_cRI] != null) {
        contents[_CRI] = (0, import_smithy_client28.expectString)(output[_cRI]);
      }
      if (output[_iT] != null) {
        contents[_IT] = (0, import_smithy_client28.expectString)(output[_iT]);
      }
      if (output[_tIC] != null) {
        contents[_TICo] = (0, import_smithy_client28.strictParseInt32)(output[_tIC]);
      }
      if (output[_aICv] != null) {
        contents[_AICv] = (0, import_smithy_client28.strictParseInt32)(output[_aICv]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output.instanceUsageSet === "") {
        contents[_IU] = [];
      } else if (output[_iUS] != null && output[_iUS][_i] != null) {
        contents[_IU] = de_InstanceUsageSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_iUS][_i]), context);
      }
      return contents;
    }, "de_GetCapacityReservationUsageResult");
    var de_GetCoipPoolUsageResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cPI] != null) {
        contents[_CPIo] = (0, import_smithy_client28.expectString)(output[_cPI]);
      }
      if (output.coipAddressUsageSet === "") {
        contents[_CAU] = [];
      } else if (output[_cAUS] != null && output[_cAUS][_i] != null) {
        contents[_CAU] = de_CoipAddressUsageSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_cAUS][_i]), context);
      }
      if (output[_lGRTI] != null) {
        contents[_LGRTI] = (0, import_smithy_client28.expectString)(output[_lGRTI]);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_GetCoipPoolUsageResult");
    var de_GetConsoleOutputResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iI] != null) {
        contents[_IIn] = (0, import_smithy_client28.expectString)(output[_iI]);
      }
      if (output[_ti] != null) {
        contents[_Tim] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_ti]));
      }
      if (output[_ou] != null) {
        contents[_Ou] = (0, import_smithy_client28.expectString)(output[_ou]);
      }
      return contents;
    }, "de_GetConsoleOutputResult");
    var de_GetConsoleScreenshotResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iD] != null) {
        contents[_IDm] = (0, import_smithy_client28.expectString)(output[_iD]);
      }
      if (output[_iI] != null) {
        contents[_IIn] = (0, import_smithy_client28.expectString)(output[_iI]);
      }
      return contents;
    }, "de_GetConsoleScreenshotResult");
    var de_GetDeclarativePoliciesReportSummaryResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_rI] != null) {
        contents[_RIep] = (0, import_smithy_client28.expectString)(output[_rI]);
      }
      if (output[_sB] != null) {
        contents[_SB] = (0, import_smithy_client28.expectString)(output[_sB]);
      }
      if (output[_sP] != null) {
        contents[_SP] = (0, import_smithy_client28.expectString)(output[_sP]);
      }
      if (output[_tI] != null) {
        contents[_TIa] = (0, import_smithy_client28.expectString)(output[_tI]);
      }
      if (output[_sT] != null) {
        contents[_STt] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_sT]));
      }
      if (output[_eTn] != null) {
        contents[_ETn] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_eTn]));
      }
      if (output[_nOA] != null) {
        contents[_NOA] = (0, import_smithy_client28.strictParseInt32)(output[_nOA]);
      }
      if (output[_nOFA] != null) {
        contents[_NOFA] = (0, import_smithy_client28.strictParseInt32)(output[_nOFA]);
      }
      if (output.attributeSummarySet === "") {
        contents[_ASt] = [];
      } else if (output[_aSSt] != null && output[_aSSt][_i] != null) {
        contents[_ASt] = de_AttributeSummaryList((0, import_smithy_client28.getArrayIfSingleItem)(output[_aSSt][_i]), context);
      }
      return contents;
    }, "de_GetDeclarativePoliciesReportSummaryResult");
    var de_GetDefaultCreditSpecificationResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iFCS] != null) {
        contents[_IFCS] = de_InstanceFamilyCreditSpecification(output[_iFCS], context);
      }
      return contents;
    }, "de_GetDefaultCreditSpecificationResult");
    var de_GetEbsDefaultKmsKeyIdResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_kKI] != null) {
        contents[_KKI] = (0, import_smithy_client28.expectString)(output[_kKI]);
      }
      return contents;
    }, "de_GetEbsDefaultKmsKeyIdResult");
    var de_GetEbsEncryptionByDefaultResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_eEBD] != null) {
        contents[_EEBD] = (0, import_smithy_client28.parseBoolean)(output[_eEBD]);
      }
      if (output[_sTs] != null) {
        contents[_STs] = (0, import_smithy_client28.expectString)(output[_sTs]);
      }
      return contents;
    }, "de_GetEbsEncryptionByDefaultResult");
    var de_GetFlowLogsIntegrationTemplateResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_res] != null) {
        contents[_Resu] = (0, import_smithy_client28.expectString)(output[_res]);
      }
      return contents;
    }, "de_GetFlowLogsIntegrationTemplateResult");
    var de_GetGroupsForCapacityReservationResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      if (output.capacityReservationGroupSet === "") {
        contents[_CRG] = [];
      } else if (output[_cRGS] != null && output[_cRGS][_i] != null) {
        contents[_CRG] = de_CapacityReservationGroupSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_cRGS][_i]), context);
      }
      return contents;
    }, "de_GetGroupsForCapacityReservationResult");
    var de_GetHostReservationPurchasePreviewResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cC] != null) {
        contents[_CCu] = (0, import_smithy_client28.expectString)(output[_cC]);
      }
      if (output.purchase === "") {
        contents[_Pur] = [];
      } else if (output[_pur] != null && output[_pur][_i] != null) {
        contents[_Pur] = de_PurchaseSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_pur][_i]), context);
      }
      if (output[_tHP] != null) {
        contents[_THP] = (0, import_smithy_client28.expectString)(output[_tHP]);
      }
      if (output[_tUP] != null) {
        contents[_TUP] = (0, import_smithy_client28.expectString)(output[_tUP]);
      }
      return contents;
    }, "de_GetHostReservationPurchasePreviewResult");
    var de_GetImageBlockPublicAccessStateResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iBPAS] != null) {
        contents[_IBPAS] = (0, import_smithy_client28.expectString)(output[_iBPAS]);
      }
      if (output[_mB] != null) {
        contents[_MB] = (0, import_smithy_client28.expectString)(output[_mB]);
      }
      return contents;
    }, "de_GetImageBlockPublicAccessStateResult");
    var de_GetInstanceMetadataDefaultsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aL] != null) {
        contents[_ALc] = de_InstanceMetadataDefaultsResponse(output[_aL], context);
      }
      return contents;
    }, "de_GetInstanceMetadataDefaultsResult");
    var de_GetInstanceTpmEkPubResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iI] != null) {
        contents[_IIn] = (0, import_smithy_client28.expectString)(output[_iI]);
      }
      if (output[_kT] != null) {
        contents[_KT] = (0, import_smithy_client28.expectString)(output[_kT]);
      }
      if (output[_kF] != null) {
        contents[_KF] = (0, import_smithy_client28.expectString)(output[_kF]);
      }
      if (output[_kV] != null) {
        contents[_KV] = (0, import_smithy_client28.expectString)(output[_kV]);
      }
      return contents;
    }, "de_GetInstanceTpmEkPubResult");
    var de_GetInstanceTypesFromInstanceRequirementsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.instanceTypeSet === "") {
        contents[_ITnst] = [];
      } else if (output[_iTS] != null && output[_iTS][_i] != null) {
        contents[_ITnst] = de_InstanceTypeInfoFromInstanceRequirementsSet(
          (0, import_smithy_client28.getArrayIfSingleItem)(output[_iTS][_i]),
          context
        );
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_GetInstanceTypesFromInstanceRequirementsResult");
    var de_GetInstanceUefiDataResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iI] != null) {
        contents[_IIn] = (0, import_smithy_client28.expectString)(output[_iI]);
      }
      if (output[_uD] != null) {
        contents[_UDe] = (0, import_smithy_client28.expectString)(output[_uD]);
      }
      return contents;
    }, "de_GetInstanceUefiDataResult");
    var de_GetIpamAddressHistoryResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.historyRecordSet === "") {
        contents[_HRi] = [];
      } else if (output[_hRS] != null && output[_hRS][_i] != null) {
        contents[_HRi] = de_IpamAddressHistoryRecordSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_hRS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_GetIpamAddressHistoryResult");
    var de_GetIpamDiscoveredAccountsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.ipamDiscoveredAccountSet === "") {
        contents[_IDA] = [];
      } else if (output[_iDAS] != null && output[_iDAS][_i] != null) {
        contents[_IDA] = de_IpamDiscoveredAccountSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_iDAS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_GetIpamDiscoveredAccountsResult");
    var de_GetIpamDiscoveredPublicAddressesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.ipamDiscoveredPublicAddressSet === "") {
        contents[_IDPA] = [];
      } else if (output[_iDPAS] != null && output[_iDPAS][_i] != null) {
        contents[_IDPA] = de_IpamDiscoveredPublicAddressSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_iDPAS][_i]), context);
      }
      if (output[_oST] != null) {
        contents[_OST] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_oST]));
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_GetIpamDiscoveredPublicAddressesResult");
    var de_GetIpamDiscoveredResourceCidrsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.ipamDiscoveredResourceCidrSet === "") {
        contents[_IDRC] = [];
      } else if (output[_iDRCS] != null && output[_iDRCS][_i] != null) {
        contents[_IDRC] = de_IpamDiscoveredResourceCidrSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_iDRCS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_GetIpamDiscoveredResourceCidrsResult");
    var de_GetIpamPoolAllocationsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.ipamPoolAllocationSet === "") {
        contents[_IPAp] = [];
      } else if (output[_iPAS] != null && output[_iPAS][_i] != null) {
        contents[_IPAp] = de_IpamPoolAllocationSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_iPAS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_GetIpamPoolAllocationsResult");
    var de_GetIpamPoolCidrsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.ipamPoolCidrSet === "") {
        contents[_IPCpam] = [];
      } else if (output[_iPCS] != null && output[_iPCS][_i] != null) {
        contents[_IPCpam] = de_IpamPoolCidrSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_iPCS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_GetIpamPoolCidrsResult");
    var de_GetIpamResourceCidrsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      if (output.ipamResourceCidrSet === "") {
        contents[_IRC] = [];
      } else if (output[_iRCS] != null && output[_iRCS][_i] != null) {
        contents[_IRC] = de_IpamResourceCidrSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_iRCS][_i]), context);
      }
      return contents;
    }, "de_GetIpamResourceCidrsResult");
    var de_GetLaunchTemplateDataResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_lTD] != null) {
        contents[_LTD] = de_ResponseLaunchTemplateData(output[_lTD], context);
      }
      return contents;
    }, "de_GetLaunchTemplateDataResult");
    var de_GetManagedPrefixListAssociationsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.prefixListAssociationSet === "") {
        contents[_PLA] = [];
      } else if (output[_pLAS] != null && output[_pLAS][_i] != null) {
        contents[_PLA] = de_PrefixListAssociationSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_pLAS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_GetManagedPrefixListAssociationsResult");
    var de_GetManagedPrefixListEntriesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.entrySet === "") {
        contents[_Ent] = [];
      } else if (output[_eSnt] != null && output[_eSnt][_i] != null) {
        contents[_Ent] = de_PrefixListEntrySet((0, import_smithy_client28.getArrayIfSingleItem)(output[_eSnt][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_GetManagedPrefixListEntriesResult");
    var de_GetNetworkInsightsAccessScopeAnalysisFindingsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nIASAI] != null) {
        contents[_NIASAI] = (0, import_smithy_client28.expectString)(output[_nIASAI]);
      }
      if (output[_aSn] != null) {
        contents[_ASn] = (0, import_smithy_client28.expectString)(output[_aSn]);
      }
      if (output.analysisFindingSet === "") {
        contents[_AFn] = [];
      } else if (output[_aFS] != null && output[_aFS][_i] != null) {
        contents[_AFn] = de_AccessScopeAnalysisFindingList((0, import_smithy_client28.getArrayIfSingleItem)(output[_aFS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_GetNetworkInsightsAccessScopeAnalysisFindingsResult");
    var de_GetNetworkInsightsAccessScopeContentResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nIASC] != null) {
        contents[_NIASC] = de_NetworkInsightsAccessScopeContent(output[_nIASC], context);
      }
      return contents;
    }, "de_GetNetworkInsightsAccessScopeContentResult");
    var de_GetPasswordDataResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iI] != null) {
        contents[_IIn] = (0, import_smithy_client28.expectString)(output[_iI]);
      }
      if (output[_ti] != null) {
        contents[_Tim] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_ti]));
      }
      if (output[_pD] != null) {
        contents[_PDa] = (0, import_smithy_client28.expectString)(output[_pD]);
      }
      return contents;
    }, "de_GetPasswordDataResult");
    var de_GetReservedInstancesExchangeQuoteResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cC] != null) {
        contents[_CCu] = (0, import_smithy_client28.expectString)(output[_cC]);
      }
      if (output[_iVE] != null) {
        contents[_IVE] = (0, import_smithy_client28.parseBoolean)(output[_iVE]);
      }
      if (output[_oRIWEA] != null) {
        contents[_ORIWEA] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_oRIWEA]));
      }
      if (output[_pDa] != null) {
        contents[_PDay] = (0, import_smithy_client28.expectString)(output[_pDa]);
      }
      if (output[_rIVR] != null) {
        contents[_RIVR] = de_ReservationValue(output[_rIVR], context);
      }
      if (output.reservedInstanceValueSet === "") {
        contents[_RIVS] = [];
      } else if (output[_rIVS] != null && output[_rIVS][_i] != null) {
        contents[_RIVS] = de_ReservedInstanceReservationValueSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_rIVS][_i]), context);
      }
      if (output[_tCVR] != null) {
        contents[_TCVR] = de_ReservationValue(output[_tCVR], context);
      }
      if (output.targetConfigurationValueSet === "") {
        contents[_TCVS] = [];
      } else if (output[_tCVS] != null && output[_tCVS][_i] != null) {
        contents[_TCVS] = de_TargetReservationValueSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_tCVS][_i]), context);
      }
      if (output[_vFR] != null) {
        contents[_VFR] = (0, import_smithy_client28.expectString)(output[_vFR]);
      }
      return contents;
    }, "de_GetReservedInstancesExchangeQuoteResult");
    var de_GetRouteServerAssociationsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.routeServerAssociationSet === "") {
        contents[_RSAou] = [];
      } else if (output[_rSAS] != null && output[_rSAS][_i] != null) {
        contents[_RSAou] = de_RouteServerAssociationsList((0, import_smithy_client28.getArrayIfSingleItem)(output[_rSAS][_i]), context);
      }
      return contents;
    }, "de_GetRouteServerAssociationsResult");
    var de_GetRouteServerPropagationsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.routeServerPropagationSet === "") {
        contents[_RSPout] = [];
      } else if (output[_rSPSo] != null && output[_rSPSo][_i] != null) {
        contents[_RSPout] = de_RouteServerPropagationsList((0, import_smithy_client28.getArrayIfSingleItem)(output[_rSPSo][_i]), context);
      }
      return contents;
    }, "de_GetRouteServerPropagationsResult");
    var de_GetRouteServerRoutingDatabaseResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aRP] != null) {
        contents[_ARP] = (0, import_smithy_client28.parseBoolean)(output[_aRP]);
      }
      if (output.routeSet === "") {
        contents[_Rout] = [];
      } else if (output[_rSou] != null && output[_rSou][_i] != null) {
        contents[_Rout] = de_RouteServerRouteList((0, import_smithy_client28.getArrayIfSingleItem)(output[_rSou][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_GetRouteServerRoutingDatabaseResult");
    var de_GetSecurityGroupsForVpcResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      if (output.securityGroupForVpcSet === "") {
        contents[_SGFV] = [];
      } else if (output[_sGFVS] != null && output[_sGFVS][_i] != null) {
        contents[_SGFV] = de_SecurityGroupForVpcList((0, import_smithy_client28.getArrayIfSingleItem)(output[_sGFVS][_i]), context);
      }
      return contents;
    }, "de_GetSecurityGroupsForVpcResult");
    var de_GetSerialConsoleAccessStatusResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sCAE] != null) {
        contents[_SCAE] = (0, import_smithy_client28.parseBoolean)(output[_sCAE]);
      }
      if (output[_mB] != null) {
        contents[_MB] = (0, import_smithy_client28.expectString)(output[_mB]);
      }
      return contents;
    }, "de_GetSerialConsoleAccessStatusResult");
    var de_GetSnapshotBlockPublicAccessStateResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_mB] != null) {
        contents[_MB] = (0, import_smithy_client28.expectString)(output[_mB]);
      }
      return contents;
    }, "de_GetSnapshotBlockPublicAccessStateResult");
    var de_GetSpotPlacementScoresResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.spotPlacementScoreSet === "") {
        contents[_SPS] = [];
      } else if (output[_sPSS] != null && output[_sPSS][_i] != null) {
        contents[_SPS] = de_SpotPlacementScores((0, import_smithy_client28.getArrayIfSingleItem)(output[_sPSS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_GetSpotPlacementScoresResult");
    var de_GetSubnetCidrReservationsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.subnetIpv4CidrReservationSet === "") {
        contents[_SICR] = [];
      } else if (output[_sICRS] != null && output[_sICRS][_i] != null) {
        contents[_SICR] = de_SubnetCidrReservationList((0, import_smithy_client28.getArrayIfSingleItem)(output[_sICRS][_i]), context);
      }
      if (output.subnetIpv6CidrReservationSet === "") {
        contents[_SICRu] = [];
      } else if (output[_sICRSu] != null && output[_sICRSu][_i] != null) {
        contents[_SICRu] = de_SubnetCidrReservationList((0, import_smithy_client28.getArrayIfSingleItem)(output[_sICRSu][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_GetSubnetCidrReservationsResult");
    var de_GetTransitGatewayAttachmentPropagationsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.transitGatewayAttachmentPropagations === "") {
        contents[_TGAP] = [];
      } else if (output[_tGAP] != null && output[_tGAP][_i] != null) {
        contents[_TGAP] = de_TransitGatewayAttachmentPropagationList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tGAP][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_GetTransitGatewayAttachmentPropagationsResult");
    var de_GetTransitGatewayMulticastDomainAssociationsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.multicastDomainAssociations === "") {
        contents[_MDA] = [];
      } else if (output[_mDA] != null && output[_mDA][_i] != null) {
        contents[_MDA] = de_TransitGatewayMulticastDomainAssociationList((0, import_smithy_client28.getArrayIfSingleItem)(output[_mDA][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_GetTransitGatewayMulticastDomainAssociationsResult");
    var de_GetTransitGatewayPolicyTableAssociationsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.associations === "") {
        contents[_Ass] = [];
      } else if (output[_a2] != null && output[_a2][_i] != null) {
        contents[_Ass] = de_TransitGatewayPolicyTableAssociationList((0, import_smithy_client28.getArrayIfSingleItem)(output[_a2][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_GetTransitGatewayPolicyTableAssociationsResult");
    var de_GetTransitGatewayPolicyTableEntriesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.transitGatewayPolicyTableEntries === "") {
        contents[_TGPTE] = [];
      } else if (output[_tGPTE] != null && output[_tGPTE][_i] != null) {
        contents[_TGPTE] = de_TransitGatewayPolicyTableEntryList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tGPTE][_i]), context);
      }
      return contents;
    }, "de_GetTransitGatewayPolicyTableEntriesResult");
    var de_GetTransitGatewayPrefixListReferencesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.transitGatewayPrefixListReferenceSet === "") {
        contents[_TGPLRr] = [];
      } else if (output[_tGPLRS] != null && output[_tGPLRS][_i] != null) {
        contents[_TGPLRr] = de_TransitGatewayPrefixListReferenceSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_tGPLRS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_GetTransitGatewayPrefixListReferencesResult");
    var de_GetTransitGatewayRouteTableAssociationsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.associations === "") {
        contents[_Ass] = [];
      } else if (output[_a2] != null && output[_a2][_i] != null) {
        contents[_Ass] = de_TransitGatewayRouteTableAssociationList((0, import_smithy_client28.getArrayIfSingleItem)(output[_a2][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_GetTransitGatewayRouteTableAssociationsResult");
    var de_GetTransitGatewayRouteTablePropagationsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.transitGatewayRouteTablePropagations === "") {
        contents[_TGRTP] = [];
      } else if (output[_tGRTP] != null && output[_tGRTP][_i] != null) {
        contents[_TGRTP] = de_TransitGatewayRouteTablePropagationList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tGRTP][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_GetTransitGatewayRouteTablePropagationsResult");
    var de_GetVerifiedAccessEndpointPolicyResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_pE] != null) {
        contents[_PE] = (0, import_smithy_client28.parseBoolean)(output[_pE]);
      }
      if (output[_pDo] != null) {
        contents[_PD] = (0, import_smithy_client28.expectString)(output[_pDo]);
      }
      return contents;
    }, "de_GetVerifiedAccessEndpointPolicyResult");
    var de_GetVerifiedAccessEndpointTargetsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.verifiedAccessEndpointTargetSet === "") {
        contents[_VAET] = [];
      } else if (output[_vAETS] != null && output[_vAETS][_i] != null) {
        contents[_VAET] = de_VerifiedAccessEndpointTargetList((0, import_smithy_client28.getArrayIfSingleItem)(output[_vAETS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_GetVerifiedAccessEndpointTargetsResult");
    var de_GetVerifiedAccessGroupPolicyResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_pE] != null) {
        contents[_PE] = (0, import_smithy_client28.parseBoolean)(output[_pE]);
      }
      if (output[_pDo] != null) {
        contents[_PD] = (0, import_smithy_client28.expectString)(output[_pDo]);
      }
      return contents;
    }, "de_GetVerifiedAccessGroupPolicyResult");
    var de_GetVpnConnectionDeviceSampleConfigurationResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_vCDSC] != null) {
        contents[_VCDSC] = (0, import_smithy_client28.expectString)(output[_vCDSC]);
      }
      return contents;
    }, "de_GetVpnConnectionDeviceSampleConfigurationResult");
    var de_GetVpnConnectionDeviceTypesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.vpnConnectionDeviceTypeSet === "") {
        contents[_VCDT] = [];
      } else if (output[_vCDTS] != null && output[_vCDTS][_i] != null) {
        contents[_VCDT] = de_VpnConnectionDeviceTypeList((0, import_smithy_client28.getArrayIfSingleItem)(output[_vCDTS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_GetVpnConnectionDeviceTypesResult");
    var de_GetVpnTunnelReplacementStatusResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_vCI] != null) {
        contents[_VCI] = (0, import_smithy_client28.expectString)(output[_vCI]);
      }
      if (output[_tGI] != null) {
        contents[_TGI] = (0, import_smithy_client28.expectString)(output[_tGI]);
      }
      if (output[_cGIu] != null) {
        contents[_CGIu] = (0, import_smithy_client28.expectString)(output[_cGIu]);
      }
      if (output[_vGI] != null) {
        contents[_VGI] = (0, import_smithy_client28.expectString)(output[_vGI]);
      }
      if (output[_vTOIA] != null) {
        contents[_VTOIA] = (0, import_smithy_client28.expectString)(output[_vTOIA]);
      }
      if (output[_mD] != null) {
        contents[_MDa] = de_MaintenanceDetails(output[_mD], context);
      }
      return contents;
    }, "de_GetVpnTunnelReplacementStatusResult");
    var de_GpuDeviceInfo = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_n] != null) {
        contents[_N] = (0, import_smithy_client28.expectString)(output[_n]);
      }
      if (output[_man] != null) {
        contents[_Man] = (0, import_smithy_client28.expectString)(output[_man]);
      }
      if (output[_cou] != null) {
        contents[_Cou] = (0, import_smithy_client28.strictParseInt32)(output[_cou]);
      }
      if (output[_mIe] != null) {
        contents[_MIe] = de_GpuDeviceMemoryInfo(output[_mIe], context);
      }
      return contents;
    }, "de_GpuDeviceInfo");
    var de_GpuDeviceInfoList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_GpuDeviceInfo(entry, context);
      });
    }, "de_GpuDeviceInfoList");
    var de_GpuDeviceMemoryInfo = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sIMB] != null) {
        contents[_SIMB] = (0, import_smithy_client28.strictParseInt32)(output[_sIMB]);
      }
      return contents;
    }, "de_GpuDeviceMemoryInfo");
    var de_GpuInfo = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.gpus === "") {
        contents[_Gp] = [];
      } else if (output[_gp] != null && output[_gp][_i] != null) {
        contents[_Gp] = de_GpuDeviceInfoList((0, import_smithy_client28.getArrayIfSingleItem)(output[_gp][_i]), context);
      }
      if (output[_tGMIMB] != null) {
        contents[_TGMIMB] = (0, import_smithy_client28.strictParseInt32)(output[_tGMIMB]);
      }
      return contents;
    }, "de_GpuInfo");
    var de_GroupIdentifier = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_gIr] != null) {
        contents[_GIr] = (0, import_smithy_client28.expectString)(output[_gIr]);
      }
      if (output[_gN] != null) {
        contents[_GN] = (0, import_smithy_client28.expectString)(output[_gN]);
      }
      return contents;
    }, "de_GroupIdentifier");
    var de_GroupIdentifierList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_GroupIdentifier(entry, context);
      });
    }, "de_GroupIdentifierList");
    var de_GroupIdentifierSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_SecurityGroupIdentifier(entry, context);
      });
    }, "de_GroupIdentifierSet");
    var de_GroupIdStringList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_GroupIdStringList");
    var de_HibernationOptions = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_conf] != null) {
        contents[_Conf] = (0, import_smithy_client28.parseBoolean)(output[_conf]);
      }
      return contents;
    }, "de_HibernationOptions");
    var de_HistoryRecord = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_eIv] != null) {
        contents[_EIv] = de_EventInformation(output[_eIv], context);
      }
      if (output[_eTv] != null) {
        contents[_ETv] = (0, import_smithy_client28.expectString)(output[_eTv]);
      }
      if (output[_ti] != null) {
        contents[_Tim] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_ti]));
      }
      return contents;
    }, "de_HistoryRecord");
    var de_HistoryRecordEntry = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_eIv] != null) {
        contents[_EIv] = de_EventInformation(output[_eIv], context);
      }
      if (output[_eTv] != null) {
        contents[_ETv] = (0, import_smithy_client28.expectString)(output[_eTv]);
      }
      if (output[_ti] != null) {
        contents[_Tim] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_ti]));
      }
      return contents;
    }, "de_HistoryRecordEntry");
    var de_HistoryRecords = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_HistoryRecord(entry, context);
      });
    }, "de_HistoryRecords");
    var de_HistoryRecordSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_HistoryRecordEntry(entry, context);
      });
    }, "de_HistoryRecordSet");
    var de_Host = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aPu] != null) {
        contents[_AP] = (0, import_smithy_client28.expectString)(output[_aPu]);
      }
      if (output[_aZ] != null) {
        contents[_AZ] = (0, import_smithy_client28.expectString)(output[_aZ]);
      }
      if (output[_aC] != null) {
        contents[_ACv] = de_AvailableCapacity(output[_aC], context);
      }
      if (output[_cT] != null) {
        contents[_CTl] = (0, import_smithy_client28.expectString)(output[_cT]);
      }
      if (output[_hI] != null) {
        contents[_HIo] = (0, import_smithy_client28.expectString)(output[_hI]);
      }
      if (output[_hP] != null) {
        contents[_HP] = de_HostProperties(output[_hP], context);
      }
      if (output[_hRI] != null) {
        contents[_HRI] = (0, import_smithy_client28.expectString)(output[_hRI]);
      }
      if (output.instances === "") {
        contents[_In] = [];
      } else if (output[_ins] != null && output[_ins][_i] != null) {
        contents[_In] = de_HostInstanceList((0, import_smithy_client28.getArrayIfSingleItem)(output[_ins][_i]), context);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_aTll] != null) {
        contents[_ATll] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_aTll]));
      }
      if (output[_rTel] != null) {
        contents[_RTel] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_rTel]));
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_hR] != null) {
        contents[_HR] = (0, import_smithy_client28.expectString)(output[_hR]);
      }
      if (output[_aMIT] != null) {
        contents[_AMIT] = (0, import_smithy_client28.expectString)(output[_aMIT]);
      }
      if (output[_oI] != null) {
        contents[_OIwn] = (0, import_smithy_client28.expectString)(output[_oI]);
      }
      if (output[_aZI] != null) {
        contents[_AZI] = (0, import_smithy_client28.expectString)(output[_aZI]);
      }
      if (output[_mOSLRG] != null) {
        contents[_MOSLRG] = (0, import_smithy_client28.parseBoolean)(output[_mOSLRG]);
      }
      if (output[_oA] != null) {
        contents[_OA] = (0, import_smithy_client28.expectString)(output[_oA]);
      }
      if (output[_hM] != null) {
        contents[_HM] = (0, import_smithy_client28.expectString)(output[_hM]);
      }
      if (output[_aIss] != null) {
        contents[_AIsse] = (0, import_smithy_client28.expectString)(output[_aIss]);
      }
      return contents;
    }, "de_Host");
    var de_HostInstance = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iI] != null) {
        contents[_IIn] = (0, import_smithy_client28.expectString)(output[_iI]);
      }
      if (output[_iT] != null) {
        contents[_IT] = (0, import_smithy_client28.expectString)(output[_iT]);
      }
      if (output[_oI] != null) {
        contents[_OIwn] = (0, import_smithy_client28.expectString)(output[_oI]);
      }
      return contents;
    }, "de_HostInstance");
    var de_HostInstanceList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_HostInstance(entry, context);
      });
    }, "de_HostInstanceList");
    var de_HostList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Host(entry, context);
      });
    }, "de_HostList");
    var de_HostOffering = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cC] != null) {
        contents[_CCu] = (0, import_smithy_client28.expectString)(output[_cC]);
      }
      if (output[_du] != null) {
        contents[_Du] = (0, import_smithy_client28.strictParseInt32)(output[_du]);
      }
      if (output[_hPo] != null) {
        contents[_HPo] = (0, import_smithy_client28.expectString)(output[_hPo]);
      }
      if (output[_iF] != null) {
        contents[_IF] = (0, import_smithy_client28.expectString)(output[_iF]);
      }
      if (output[_oIf] != null) {
        contents[_OI] = (0, import_smithy_client28.expectString)(output[_oIf]);
      }
      if (output[_pO] != null) {
        contents[_PO] = (0, import_smithy_client28.expectString)(output[_pO]);
      }
      if (output[_uP] != null) {
        contents[_UPp] = (0, import_smithy_client28.expectString)(output[_uP]);
      }
      return contents;
    }, "de_HostOffering");
    var de_HostOfferingSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_HostOffering(entry, context);
      });
    }, "de_HostOfferingSet");
    var de_HostProperties = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cor] != null) {
        contents[_Cor] = (0, import_smithy_client28.strictParseInt32)(output[_cor]);
      }
      if (output[_iT] != null) {
        contents[_IT] = (0, import_smithy_client28.expectString)(output[_iT]);
      }
      if (output[_iF] != null) {
        contents[_IF] = (0, import_smithy_client28.expectString)(output[_iF]);
      }
      if (output[_so] != null) {
        contents[_Soc] = (0, import_smithy_client28.strictParseInt32)(output[_so]);
      }
      if (output[_tVC] != null) {
        contents[_TVC] = (0, import_smithy_client28.strictParseInt32)(output[_tVC]);
      }
      return contents;
    }, "de_HostProperties");
    var de_HostReservation = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cou] != null) {
        contents[_Cou] = (0, import_smithy_client28.strictParseInt32)(output[_cou]);
      }
      if (output[_cC] != null) {
        contents[_CCu] = (0, import_smithy_client28.expectString)(output[_cC]);
      }
      if (output[_du] != null) {
        contents[_Du] = (0, import_smithy_client28.strictParseInt32)(output[_du]);
      }
      if (output[_end] != null) {
        contents[_End] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_end]));
      }
      if (output.hostIdSet === "") {
        contents[_HIS] = [];
      } else if (output[_hIS] != null && output[_hIS][_i] != null) {
        contents[_HIS] = de_ResponseHostIdSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_hIS][_i]), context);
      }
      if (output[_hRI] != null) {
        contents[_HRI] = (0, import_smithy_client28.expectString)(output[_hRI]);
      }
      if (output[_hPo] != null) {
        contents[_HPo] = (0, import_smithy_client28.expectString)(output[_hPo]);
      }
      if (output[_iF] != null) {
        contents[_IF] = (0, import_smithy_client28.expectString)(output[_iF]);
      }
      if (output[_oIf] != null) {
        contents[_OI] = (0, import_smithy_client28.expectString)(output[_oIf]);
      }
      if (output[_pO] != null) {
        contents[_PO] = (0, import_smithy_client28.expectString)(output[_pO]);
      }
      if (output[_star] != null) {
        contents[_Star] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_star]));
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_uP] != null) {
        contents[_UPp] = (0, import_smithy_client28.expectString)(output[_uP]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      return contents;
    }, "de_HostReservation");
    var de_HostReservationSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_HostReservation(entry, context);
      });
    }, "de_HostReservationSet");
    var de_IamInstanceProfile = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ar] != null) {
        contents[_Ar2] = (0, import_smithy_client28.expectString)(output[_ar]);
      }
      if (output[_id] != null) {
        contents[_Id] = (0, import_smithy_client28.expectString)(output[_id]);
      }
      return contents;
    }, "de_IamInstanceProfile");
    var de_IamInstanceProfileAssociation = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aIs] != null) {
        contents[_AIss] = (0, import_smithy_client28.expectString)(output[_aIs]);
      }
      if (output[_iI] != null) {
        contents[_IIn] = (0, import_smithy_client28.expectString)(output[_iI]);
      }
      if (output[_iIP] != null) {
        contents[_IIP] = de_IamInstanceProfile(output[_iIP], context);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_ti] != null) {
        contents[_Tim] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_ti]));
      }
      return contents;
    }, "de_IamInstanceProfileAssociation");
    var de_IamInstanceProfileAssociationSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_IamInstanceProfileAssociation(entry, context);
      });
    }, "de_IamInstanceProfileAssociationSet");
    var de_IamInstanceProfileSpecification = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ar] != null) {
        contents[_Ar2] = (0, import_smithy_client28.expectString)(output[_ar]);
      }
      if (output[_n] != null) {
        contents[_N] = (0, import_smithy_client28.expectString)(output[_n]);
      }
      return contents;
    }, "de_IamInstanceProfileSpecification");
    var de_IcmpTypeCode = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_co] != null) {
        contents[_Cod] = (0, import_smithy_client28.strictParseInt32)(output[_co]);
      }
      if (output[_ty] != null) {
        contents[_T2] = (0, import_smithy_client28.strictParseInt32)(output[_ty]);
      }
      return contents;
    }, "de_IcmpTypeCode");
    var de_IdFormat = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_dea] != null) {
        contents[_Dea] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_dea]));
      }
      if (output[_reso] != null) {
        contents[_Res] = (0, import_smithy_client28.expectString)(output[_reso]);
      }
      if (output[_uLI] != null) {
        contents[_ULI] = (0, import_smithy_client28.parseBoolean)(output[_uLI]);
      }
      return contents;
    }, "de_IdFormat");
    var de_IdFormatList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_IdFormat(entry, context);
      });
    }, "de_IdFormatList");
    var de_IKEVersionsList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_IKEVersionsListValue(entry, context);
      });
    }, "de_IKEVersionsList");
    var de_IKEVersionsListValue = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_v] != null) {
        contents[_Va2] = (0, import_smithy_client28.expectString)(output[_v]);
      }
      return contents;
    }, "de_IKEVersionsListValue");
    var de_Image = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_pDl] != null) {
        contents[_PDl] = (0, import_smithy_client28.expectString)(output[_pDl]);
      }
      if (output[_uO] != null) {
        contents[_UO] = (0, import_smithy_client28.expectString)(output[_uO]);
      }
      if (output.blockDeviceMapping === "") {
        contents[_BDM] = [];
      } else if (output[_bDM] != null && output[_bDM][_i] != null) {
        contents[_BDM] = de_BlockDeviceMappingList((0, import_smithy_client28.getArrayIfSingleItem)(output[_bDM][_i]), context);
      }
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      if (output[_eSna] != null) {
        contents[_ESn] = (0, import_smithy_client28.parseBoolean)(output[_eSna]);
      }
      if (output[_h] != null) {
        contents[_H] = (0, import_smithy_client28.expectString)(output[_h]);
      }
      if (output[_iOA] != null) {
        contents[_IOA] = (0, import_smithy_client28.expectString)(output[_iOA]);
      }
      if (output[_n] != null) {
        contents[_N] = (0, import_smithy_client28.expectString)(output[_n]);
      }
      if (output[_rDN] != null) {
        contents[_RDN] = (0, import_smithy_client28.expectString)(output[_rDN]);
      }
      if (output[_rDT] != null) {
        contents[_RDT] = (0, import_smithy_client28.expectString)(output[_rDT]);
      }
      if (output[_sNSr] != null) {
        contents[_SNS] = (0, import_smithy_client28.expectString)(output[_sNSr]);
      }
      if (output[_sRt] != null) {
        contents[_SRt] = de_StateReason(output[_sRt], context);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_vTi] != null) {
        contents[_VTir] = (0, import_smithy_client28.expectString)(output[_vTi]);
      }
      if (output[_bM] != null) {
        contents[_BM] = (0, import_smithy_client28.expectString)(output[_bM]);
      }
      if (output[_tSp] != null) {
        contents[_TSp] = (0, import_smithy_client28.expectString)(output[_tSp]);
      }
      if (output[_dTe] != null) {
        contents[_DTep] = (0, import_smithy_client28.expectString)(output[_dTe]);
      }
      if (output[_iSmd] != null) {
        contents[_ISm] = (0, import_smithy_client28.expectString)(output[_iSmd]);
      }
      if (output[_sII] != null) {
        contents[_SIIo] = (0, import_smithy_client28.expectString)(output[_sII]);
      }
      if (output[_dPe] != null) {
        contents[_DPer] = (0, import_smithy_client28.expectString)(output[_dPe]);
      }
      if (output[_lLT] != null) {
        contents[_LLT] = (0, import_smithy_client28.expectString)(output[_lLT]);
      }
      if (output[_iAm] != null) {
        contents[_IAm] = (0, import_smithy_client28.parseBoolean)(output[_iAm]);
      }
      if (output[_sIIo] != null) {
        contents[_SII] = (0, import_smithy_client28.expectString)(output[_sIIo]);
      }
      if (output[_sIR] != null) {
        contents[_SIRo] = (0, import_smithy_client28.expectString)(output[_sIR]);
      }
      if (output[_fTE] != null) {
        contents[_FTE] = (0, import_smithy_client28.parseBoolean)(output[_fTE]);
      }
      if (output[_iIma] != null) {
        contents[_IIma] = (0, import_smithy_client28.expectString)(output[_iIma]);
      }
      if (output[_iL] != null) {
        contents[_IL] = (0, import_smithy_client28.expectString)(output[_iL]);
      }
      if (output[_iSma] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_iSma]);
      }
      if (output[_iOI] != null) {
        contents[_OIwn] = (0, import_smithy_client28.expectString)(output[_iOI]);
      }
      if (output[_cDr] != null) {
        contents[_CDre] = (0, import_smithy_client28.expectString)(output[_cDr]);
      }
      if (output[_iPs] != null) {
        contents[_Pu] = (0, import_smithy_client28.parseBoolean)(output[_iPs]);
      }
      if (output.productCodes === "") {
        contents[_PCr] = [];
      } else if (output[_pC] != null && output[_pC][_i] != null) {
        contents[_PCr] = de_ProductCodeList((0, import_smithy_client28.getArrayIfSingleItem)(output[_pC][_i]), context);
      }
      if (output[_arc] != null) {
        contents[_Arc] = (0, import_smithy_client28.expectString)(output[_arc]);
      }
      if (output[_iTm] != null) {
        contents[_ITm] = (0, import_smithy_client28.expectString)(output[_iTm]);
      }
      if (output[_kI] != null) {
        contents[_KI] = (0, import_smithy_client28.expectString)(output[_kI]);
      }
      if (output[_rIa] != null) {
        contents[_RIa] = (0, import_smithy_client28.expectString)(output[_rIa]);
      }
      if (output[_pl] != null) {
        contents[_Pla] = (0, import_smithy_client28.expectString)(output[_pl]);
      }
      return contents;
    }, "de_Image");
    var de_ImageAttribute = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_de] != null) {
        contents[_De] = de_AttributeValue(output[_de], context);
      }
      if (output[_ke] != null) {
        contents[_KI] = de_AttributeValue(output[_ke], context);
      }
      if (output[_ra] != null) {
        contents[_RIa] = de_AttributeValue(output[_ra], context);
      }
      if (output[_sNSr] != null) {
        contents[_SNS] = de_AttributeValue(output[_sNSr], context);
      }
      if (output[_bM] != null) {
        contents[_BM] = de_AttributeValue(output[_bM], context);
      }
      if (output[_tSp] != null) {
        contents[_TSp] = de_AttributeValue(output[_tSp], context);
      }
      if (output[_uD] != null) {
        contents[_UDe] = de_AttributeValue(output[_uD], context);
      }
      if (output[_lLT] != null) {
        contents[_LLT] = de_AttributeValue(output[_lLT], context);
      }
      if (output[_iSmd] != null) {
        contents[_ISm] = de_AttributeValue(output[_iSmd], context);
      }
      if (output[_dPe] != null) {
        contents[_DPer] = de_AttributeValue(output[_dPe], context);
      }
      if (output[_iIma] != null) {
        contents[_IIma] = (0, import_smithy_client28.expectString)(output[_iIma]);
      }
      if (output.launchPermission === "") {
        contents[_LPau] = [];
      } else if (output[_lPa] != null && output[_lPa][_i] != null) {
        contents[_LPau] = de_LaunchPermissionList((0, import_smithy_client28.getArrayIfSingleItem)(output[_lPa][_i]), context);
      }
      if (output.productCodes === "") {
        contents[_PCr] = [];
      } else if (output[_pC] != null && output[_pC][_i] != null) {
        contents[_PCr] = de_ProductCodeList((0, import_smithy_client28.getArrayIfSingleItem)(output[_pC][_i]), context);
      }
      if (output.blockDeviceMapping === "") {
        contents[_BDM] = [];
      } else if (output[_bDM] != null && output[_bDM][_i] != null) {
        contents[_BDM] = de_BlockDeviceMappingList((0, import_smithy_client28.getArrayIfSingleItem)(output[_bDM][_i]), context);
      }
      return contents;
    }, "de_ImageAttribute");
    var de_ImageCriterion = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.imageProviderSet === "") {
        contents[_IPm] = [];
      } else if (output[_iPSm] != null && output[_iPSm][_i] != null) {
        contents[_IPm] = de_ImageProviderList((0, import_smithy_client28.getArrayIfSingleItem)(output[_iPSm][_i]), context);
      }
      return contents;
    }, "de_ImageCriterion");
    var de_ImageCriterionList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ImageCriterion(entry, context);
      });
    }, "de_ImageCriterionList");
    var de_ImageList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Image(entry, context);
      });
    }, "de_ImageList");
    var de_ImageMetadata = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iIma] != null) {
        contents[_IIma] = (0, import_smithy_client28.expectString)(output[_iIma]);
      }
      if (output[_n] != null) {
        contents[_N] = (0, import_smithy_client28.expectString)(output[_n]);
      }
      if (output[_iOI] != null) {
        contents[_OIwn] = (0, import_smithy_client28.expectString)(output[_iOI]);
      }
      if (output[_iSma] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_iSma]);
      }
      if (output[_iOA] != null) {
        contents[_IOA] = (0, import_smithy_client28.expectString)(output[_iOA]);
      }
      if (output[_cDr] != null) {
        contents[_CDre] = (0, import_smithy_client28.expectString)(output[_cDr]);
      }
      if (output[_dTe] != null) {
        contents[_DTep] = (0, import_smithy_client28.expectString)(output[_dTe]);
      }
      if (output[_iAm] != null) {
        contents[_IAm] = (0, import_smithy_client28.parseBoolean)(output[_iAm]);
      }
      if (output[_iPs] != null) {
        contents[_IPs] = (0, import_smithy_client28.parseBoolean)(output[_iPs]);
      }
      return contents;
    }, "de_ImageMetadata");
    var de_ImageProviderList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_ImageProviderList");
    var de_ImageRecycleBinInfo = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iIma] != null) {
        contents[_IIma] = (0, import_smithy_client28.expectString)(output[_iIma]);
      }
      if (output[_n] != null) {
        contents[_N] = (0, import_smithy_client28.expectString)(output[_n]);
      }
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      if (output[_rBET] != null) {
        contents[_RBET] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_rBET]));
      }
      if (output[_rBETe] != null) {
        contents[_RBETe] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_rBETe]));
      }
      return contents;
    }, "de_ImageRecycleBinInfo");
    var de_ImageRecycleBinInfoList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ImageRecycleBinInfo(entry, context);
      });
    }, "de_ImageRecycleBinInfoList");
    var de_ImageReference = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iIma] != null) {
        contents[_IIma] = (0, import_smithy_client28.expectString)(output[_iIma]);
      }
      if (output[_rTe] != null) {
        contents[_RT] = (0, import_smithy_client28.expectString)(output[_rTe]);
      }
      if (output[_ar] != null) {
        contents[_Ar2] = (0, import_smithy_client28.expectString)(output[_ar]);
      }
      return contents;
    }, "de_ImageReference");
    var de_ImageReferenceList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ImageReference(entry, context);
      });
    }, "de_ImageReferenceList");
    var de_ImageUsageReport = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iIma] != null) {
        contents[_IIma] = (0, import_smithy_client28.expectString)(output[_iIma]);
      }
      if (output[_rI] != null) {
        contents[_RIep] = (0, import_smithy_client28.expectString)(output[_rI]);
      }
      if (output.resourceTypeSet === "") {
        contents[_RTe] = [];
      } else if (output[_rTSe] != null && output[_rTSe][_i] != null) {
        contents[_RTe] = de_ImageUsageResourceTypeList((0, import_smithy_client28.getArrayIfSingleItem)(output[_rTSe][_i]), context);
      }
      if (output.accountIdSet === "") {
        contents[_AIc] = [];
      } else if (output[_aISc] != null && output[_aISc][_i] != null) {
        contents[_AIc] = de_UserIdList((0, import_smithy_client28.getArrayIfSingleItem)(output[_aISc][_i]), context);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_sRt] != null) {
        contents[_SRt] = (0, import_smithy_client28.expectString)(output[_sRt]);
      }
      if (output[_cTre] != null) {
        contents[_CTre] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_cTre]));
      }
      if (output[_eT] != null) {
        contents[_ETx] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_eT]));
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      return contents;
    }, "de_ImageUsageReport");
    var de_ImageUsageReportEntry = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_rTe] != null) {
        contents[_RT] = (0, import_smithy_client28.expectString)(output[_rTe]);
      }
      if (output[_rI] != null) {
        contents[_RIep] = (0, import_smithy_client28.expectString)(output[_rI]);
      }
      if (output[_uCs] != null) {
        contents[_UCs] = (0, import_smithy_client28.strictParseLong)(output[_uCs]);
      }
      if (output[_aIc] != null) {
        contents[_AIcc] = (0, import_smithy_client28.expectString)(output[_aIc]);
      }
      if (output[_iIma] != null) {
        contents[_IIma] = (0, import_smithy_client28.expectString)(output[_iIma]);
      }
      if (output[_rCT] != null) {
        contents[_RCT] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_rCT]));
      }
      return contents;
    }, "de_ImageUsageReportEntry");
    var de_ImageUsageReportEntryList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ImageUsageReportEntry(entry, context);
      });
    }, "de_ImageUsageReportEntryList");
    var de_ImageUsageReportList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ImageUsageReport(entry, context);
      });
    }, "de_ImageUsageReportList");
    var de_ImageUsageResourceType = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_rTe] != null) {
        contents[_RT] = (0, import_smithy_client28.expectString)(output[_rTe]);
      }
      if (output.resourceTypeOptionSet === "") {
        contents[_RTO] = [];
      } else if (output[_rTOS] != null && output[_rTOS][_i] != null) {
        contents[_RTO] = de_ImageUsageResourceTypeOptionList((0, import_smithy_client28.getArrayIfSingleItem)(output[_rTOS][_i]), context);
      }
      return contents;
    }, "de_ImageUsageResourceType");
    var de_ImageUsageResourceTypeList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ImageUsageResourceType(entry, context);
      });
    }, "de_ImageUsageResourceTypeList");
    var de_ImageUsageResourceTypeOption = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_oN] != null) {
        contents[_ON] = (0, import_smithy_client28.expectString)(output[_oN]);
      }
      if (output.optionValueSet === "") {
        contents[_OV] = [];
      } else if (output[_oVS] != null && output[_oVS][_i] != null) {
        contents[_OV] = de_ImageUsageResourceTypeOptionValuesList((0, import_smithy_client28.getArrayIfSingleItem)(output[_oVS][_i]), context);
      }
      return contents;
    }, "de_ImageUsageResourceTypeOption");
    var de_ImageUsageResourceTypeOptionList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ImageUsageResourceTypeOption(entry, context);
      });
    }, "de_ImageUsageResourceTypeOptionList");
    var de_ImageUsageResourceTypeOptionValuesList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_ImageUsageResourceTypeOptionValuesList");
    var de_ImportClientVpnClientCertificateRevocationListResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_Ret] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      return contents;
    }, "de_ImportClientVpnClientCertificateRevocationListResult");
    var de_ImportImageLicenseConfigurationResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_lCA] != null) {
        contents[_LCA] = (0, import_smithy_client28.expectString)(output[_lCA]);
      }
      return contents;
    }, "de_ImportImageLicenseConfigurationResponse");
    var de_ImportImageLicenseSpecificationListResponse = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ImportImageLicenseConfigurationResponse(entry, context);
      });
    }, "de_ImportImageLicenseSpecificationListResponse");
    var de_ImportImageResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_arc] != null) {
        contents[_Arc] = (0, import_smithy_client28.expectString)(output[_arc]);
      }
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      if (output[_enc] != null) {
        contents[_Enc] = (0, import_smithy_client28.parseBoolean)(output[_enc]);
      }
      if (output[_h] != null) {
        contents[_H] = (0, import_smithy_client28.expectString)(output[_h]);
      }
      if (output[_iIma] != null) {
        contents[_IIma] = (0, import_smithy_client28.expectString)(output[_iIma]);
      }
      if (output[_iTI] != null) {
        contents[_ITI] = (0, import_smithy_client28.expectString)(output[_iTI]);
      }
      if (output[_kKI] != null) {
        contents[_KKI] = (0, import_smithy_client28.expectString)(output[_kKI]);
      }
      if (output[_lTi] != null) {
        contents[_LTi] = (0, import_smithy_client28.expectString)(output[_lTi]);
      }
      if (output[_pl] != null) {
        contents[_Pla] = (0, import_smithy_client28.expectString)(output[_pl]);
      }
      if (output[_pro] != null) {
        contents[_Prog] = (0, import_smithy_client28.expectString)(output[_pro]);
      }
      if (output.snapshotDetailSet === "") {
        contents[_SDn] = [];
      } else if (output[_sDSn] != null && output[_sDSn][_i] != null) {
        contents[_SDn] = de_SnapshotDetailList((0, import_smithy_client28.getArrayIfSingleItem)(output[_sDSn][_i]), context);
      }
      if (output[_sta] != null) {
        contents[_Statu] = (0, import_smithy_client28.expectString)(output[_sta]);
      }
      if (output[_sMt] != null) {
        contents[_SMt] = (0, import_smithy_client28.expectString)(output[_sMt]);
      }
      if (output.licenseSpecifications === "") {
        contents[_LSi] = [];
      } else if (output[_lS] != null && output[_lS][_i] != null) {
        contents[_LSi] = de_ImportImageLicenseSpecificationListResponse((0, import_smithy_client28.getArrayIfSingleItem)(output[_lS][_i]), context);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_uO] != null) {
        contents[_UO] = (0, import_smithy_client28.expectString)(output[_uO]);
      }
      return contents;
    }, "de_ImportImageResult");
    var de_ImportImageTask = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_arc] != null) {
        contents[_Arc] = (0, import_smithy_client28.expectString)(output[_arc]);
      }
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      if (output[_enc] != null) {
        contents[_Enc] = (0, import_smithy_client28.parseBoolean)(output[_enc]);
      }
      if (output[_h] != null) {
        contents[_H] = (0, import_smithy_client28.expectString)(output[_h]);
      }
      if (output[_iIma] != null) {
        contents[_IIma] = (0, import_smithy_client28.expectString)(output[_iIma]);
      }
      if (output[_iTI] != null) {
        contents[_ITI] = (0, import_smithy_client28.expectString)(output[_iTI]);
      }
      if (output[_kKI] != null) {
        contents[_KKI] = (0, import_smithy_client28.expectString)(output[_kKI]);
      }
      if (output[_lTi] != null) {
        contents[_LTi] = (0, import_smithy_client28.expectString)(output[_lTi]);
      }
      if (output[_pl] != null) {
        contents[_Pla] = (0, import_smithy_client28.expectString)(output[_pl]);
      }
      if (output[_pro] != null) {
        contents[_Prog] = (0, import_smithy_client28.expectString)(output[_pro]);
      }
      if (output.snapshotDetailSet === "") {
        contents[_SDn] = [];
      } else if (output[_sDSn] != null && output[_sDSn][_i] != null) {
        contents[_SDn] = de_SnapshotDetailList((0, import_smithy_client28.getArrayIfSingleItem)(output[_sDSn][_i]), context);
      }
      if (output[_sta] != null) {
        contents[_Statu] = (0, import_smithy_client28.expectString)(output[_sta]);
      }
      if (output[_sMt] != null) {
        contents[_SMt] = (0, import_smithy_client28.expectString)(output[_sMt]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output.licenseSpecifications === "") {
        contents[_LSi] = [];
      } else if (output[_lS] != null && output[_lS][_i] != null) {
        contents[_LSi] = de_ImportImageLicenseSpecificationListResponse((0, import_smithy_client28.getArrayIfSingleItem)(output[_lS][_i]), context);
      }
      if (output[_uO] != null) {
        contents[_UO] = (0, import_smithy_client28.expectString)(output[_uO]);
      }
      if (output[_bM] != null) {
        contents[_BM] = (0, import_smithy_client28.expectString)(output[_bM]);
      }
      return contents;
    }, "de_ImportImageTask");
    var de_ImportImageTaskList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ImportImageTask(entry, context);
      });
    }, "de_ImportImageTaskList");
    var de_ImportInstanceResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cTon] != null) {
        contents[_CTonv] = de_ConversionTask(output[_cTon], context);
      }
      return contents;
    }, "de_ImportInstanceResult");
    var de_ImportInstanceTaskDetails = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      if (output[_iI] != null) {
        contents[_IIn] = (0, import_smithy_client28.expectString)(output[_iI]);
      }
      if (output[_pl] != null) {
        contents[_Pla] = (0, import_smithy_client28.expectString)(output[_pl]);
      }
      if (output.volumes === "") {
        contents[_Vol] = [];
      } else if (output[_vo] != null && output[_vo][_i] != null) {
        contents[_Vol] = de_ImportInstanceVolumeDetailSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_vo][_i]), context);
      }
      return contents;
    }, "de_ImportInstanceTaskDetails");
    var de_ImportInstanceVolumeDetailItem = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aZ] != null) {
        contents[_AZ] = (0, import_smithy_client28.expectString)(output[_aZ]);
      }
      if (output[_aZI] != null) {
        contents[_AZI] = (0, import_smithy_client28.expectString)(output[_aZI]);
      }
      if (output[_bCy] != null) {
        contents[_BCyt] = (0, import_smithy_client28.strictParseLong)(output[_bCy]);
      }
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      if (output[_im] != null) {
        contents[_Im] = de_DiskImageDescription(output[_im], context);
      }
      if (output[_sta] != null) {
        contents[_Statu] = (0, import_smithy_client28.expectString)(output[_sta]);
      }
      if (output[_sMt] != null) {
        contents[_SMt] = (0, import_smithy_client28.expectString)(output[_sMt]);
      }
      if (output[_vol] != null) {
        contents[_Vo] = de_DiskImageVolumeDescription(output[_vol], context);
      }
      return contents;
    }, "de_ImportInstanceVolumeDetailItem");
    var de_ImportInstanceVolumeDetailSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ImportInstanceVolumeDetailItem(entry, context);
      });
    }, "de_ImportInstanceVolumeDetailSet");
    var de_ImportKeyPairResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_kFe] != null) {
        contents[_KFe] = (0, import_smithy_client28.expectString)(output[_kFe]);
      }
      if (output[_kN] != null) {
        contents[_KN] = (0, import_smithy_client28.expectString)(output[_kN]);
      }
      if (output[_kPI] != null) {
        contents[_KPI] = (0, import_smithy_client28.expectString)(output[_kPI]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      return contents;
    }, "de_ImportKeyPairResult");
    var de_ImportSnapshotResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      if (output[_iTI] != null) {
        contents[_ITI] = (0, import_smithy_client28.expectString)(output[_iTI]);
      }
      if (output[_sTD] != null) {
        contents[_STD] = de_SnapshotTaskDetail(output[_sTD], context);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      return contents;
    }, "de_ImportSnapshotResult");
    var de_ImportSnapshotTask = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      if (output[_iTI] != null) {
        contents[_ITI] = (0, import_smithy_client28.expectString)(output[_iTI]);
      }
      if (output[_sTD] != null) {
        contents[_STD] = de_SnapshotTaskDetail(output[_sTD], context);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      return contents;
    }, "de_ImportSnapshotTask");
    var de_ImportSnapshotTaskList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ImportSnapshotTask(entry, context);
      });
    }, "de_ImportSnapshotTaskList");
    var de_ImportVolumeResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cTon] != null) {
        contents[_CTonv] = de_ConversionTask(output[_cTon], context);
      }
      return contents;
    }, "de_ImportVolumeResult");
    var de_ImportVolumeTaskDetails = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aZ] != null) {
        contents[_AZ] = (0, import_smithy_client28.expectString)(output[_aZ]);
      }
      if (output[_aZI] != null) {
        contents[_AZI] = (0, import_smithy_client28.expectString)(output[_aZI]);
      }
      if (output[_bCy] != null) {
        contents[_BCyt] = (0, import_smithy_client28.strictParseLong)(output[_bCy]);
      }
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      if (output[_im] != null) {
        contents[_Im] = de_DiskImageDescription(output[_im], context);
      }
      if (output[_vol] != null) {
        contents[_Vo] = de_DiskImageVolumeDescription(output[_vol], context);
      }
      return contents;
    }, "de_ImportVolumeTaskDetails");
    var de_InferenceAcceleratorInfo = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.accelerators === "") {
        contents[_Acc] = [];
      } else if (output[_acc] != null && output[_acc][_mem] != null) {
        contents[_Acc] = de_InferenceDeviceInfoList((0, import_smithy_client28.getArrayIfSingleItem)(output[_acc][_mem]), context);
      }
      if (output[_tIMIMB] != null) {
        contents[_TIMIMB] = (0, import_smithy_client28.strictParseInt32)(output[_tIMIMB]);
      }
      return contents;
    }, "de_InferenceAcceleratorInfo");
    var de_InferenceDeviceInfo = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cou] != null) {
        contents[_Cou] = (0, import_smithy_client28.strictParseInt32)(output[_cou]);
      }
      if (output[_n] != null) {
        contents[_N] = (0, import_smithy_client28.expectString)(output[_n]);
      }
      if (output[_man] != null) {
        contents[_Man] = (0, import_smithy_client28.expectString)(output[_man]);
      }
      if (output[_mIe] != null) {
        contents[_MIe] = de_InferenceDeviceMemoryInfo(output[_mIe], context);
      }
      return contents;
    }, "de_InferenceDeviceInfo");
    var de_InferenceDeviceInfoList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_InferenceDeviceInfo(entry, context);
      });
    }, "de_InferenceDeviceInfoList");
    var de_InferenceDeviceMemoryInfo = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sIMB] != null) {
        contents[_SIMB] = (0, import_smithy_client28.strictParseInt32)(output[_sIMB]);
      }
      return contents;
    }, "de_InferenceDeviceMemoryInfo");
    var de_InitializationStatusDetails = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iTni] != null) {
        contents[_ITni] = (0, import_smithy_client28.expectString)(output[_iTni]);
      }
      if (output[_pro] != null) {
        contents[_Prog] = (0, import_smithy_client28.strictParseLong)(output[_pro]);
      }
      if (output[_eTTCIS] != null) {
        contents[_ETTCIS] = (0, import_smithy_client28.strictParseLong)(output[_eTTCIS]);
      }
      return contents;
    }, "de_InitializationStatusDetails");
    var de_InsideCidrBlocksStringList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_InsideCidrBlocksStringList");
    var de_Instance = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_arc] != null) {
        contents[_Arc] = (0, import_smithy_client28.expectString)(output[_arc]);
      }
      if (output.blockDeviceMapping === "") {
        contents[_BDM] = [];
      } else if (output[_bDM] != null && output[_bDM][_i] != null) {
        contents[_BDM] = de_InstanceBlockDeviceMappingList((0, import_smithy_client28.getArrayIfSingleItem)(output[_bDM][_i]), context);
      }
      if (output[_cT] != null) {
        contents[_CTl] = (0, import_smithy_client28.expectString)(output[_cT]);
      }
      if (output[_eO] != null) {
        contents[_EO] = (0, import_smithy_client28.parseBoolean)(output[_eO]);
      }
      if (output[_eSna] != null) {
        contents[_ESn] = (0, import_smithy_client28.parseBoolean)(output[_eSna]);
      }
      if (output[_h] != null) {
        contents[_H] = (0, import_smithy_client28.expectString)(output[_h]);
      }
      if (output[_iIP] != null) {
        contents[_IIP] = de_IamInstanceProfile(output[_iIP], context);
      }
      if (output[_iLn] != null) {
        contents[_ILn] = (0, import_smithy_client28.expectString)(output[_iLn]);
      }
      if (output.elasticGpuAssociationSet === "") {
        contents[_EGA] = [];
      } else if (output[_eGASl] != null && output[_eGASl][_i] != null) {
        contents[_EGA] = de_ElasticGpuAssociationList((0, import_smithy_client28.getArrayIfSingleItem)(output[_eGASl][_i]), context);
      }
      if (output.elasticInferenceAcceleratorAssociationSet === "") {
        contents[_EIAAl] = [];
      } else if (output[_eIAASl] != null && output[_eIAASl][_i] != null) {
        contents[_EIAAl] = de_ElasticInferenceAcceleratorAssociationList(
          (0, import_smithy_client28.getArrayIfSingleItem)(output[_eIAASl][_i]),
          context
        );
      }
      if (output.networkInterfaceSet === "") {
        contents[_NI] = [];
      } else if (output[_nIS] != null && output[_nIS][_i] != null) {
        contents[_NI] = de_InstanceNetworkInterfaceList((0, import_smithy_client28.getArrayIfSingleItem)(output[_nIS][_i]), context);
      }
      if (output[_oA] != null) {
        contents[_OA] = (0, import_smithy_client28.expectString)(output[_oA]);
      }
      if (output[_rDN] != null) {
        contents[_RDN] = (0, import_smithy_client28.expectString)(output[_rDN]);
      }
      if (output[_rDT] != null) {
        contents[_RDT] = (0, import_smithy_client28.expectString)(output[_rDT]);
      }
      if (output.groupSet === "") {
        contents[_SG] = [];
      } else if (output[_gS] != null && output[_gS][_i] != null) {
        contents[_SG] = de_GroupIdentifierList((0, import_smithy_client28.getArrayIfSingleItem)(output[_gS][_i]), context);
      }
      if (output[_sDC] != null) {
        contents[_SDC] = (0, import_smithy_client28.parseBoolean)(output[_sDC]);
      }
      if (output[_sIRI] != null) {
        contents[_SIRIp] = (0, import_smithy_client28.expectString)(output[_sIRI]);
      }
      if (output[_sNSr] != null) {
        contents[_SNS] = (0, import_smithy_client28.expectString)(output[_sNSr]);
      }
      if (output[_sRt] != null) {
        contents[_SRt] = de_StateReason(output[_sRt], context);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_vTi] != null) {
        contents[_VTir] = (0, import_smithy_client28.expectString)(output[_vTi]);
      }
      if (output[_cO] != null) {
        contents[_COp] = de_CpuOptions(output[_cO], context);
      }
      if (output[_cBI] != null) {
        contents[_CBIa] = (0, import_smithy_client28.expectString)(output[_cBI]);
      }
      if (output[_cRI] != null) {
        contents[_CRI] = (0, import_smithy_client28.expectString)(output[_cRI]);
      }
      if (output[_cRSa] != null) {
        contents[_CRSa] = de_CapacityReservationSpecificationResponse(output[_cRSa], context);
      }
      if (output[_hO] != null) {
        contents[_HO] = de_HibernationOptions(output[_hO], context);
      }
      if (output.licenseSet === "") {
        contents[_Lic] = [];
      } else if (output[_lSi] != null && output[_lSi][_i] != null) {
        contents[_Lic] = de_LicenseList((0, import_smithy_client28.getArrayIfSingleItem)(output[_lSi][_i]), context);
      }
      if (output[_mO] != null) {
        contents[_MO] = de_InstanceMetadataOptionsResponse(output[_mO], context);
      }
      if (output[_eOn] != null) {
        contents[_EOn] = de_EnclaveOptions(output[_eOn], context);
      }
      if (output[_bM] != null) {
        contents[_BM] = (0, import_smithy_client28.expectString)(output[_bM]);
      }
      if (output[_pDl] != null) {
        contents[_PDl] = (0, import_smithy_client28.expectString)(output[_pDl]);
      }
      if (output[_uO] != null) {
        contents[_UO] = (0, import_smithy_client28.expectString)(output[_uO]);
      }
      if (output[_uOUT] != null) {
        contents[_UOUT] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_uOUT]));
      }
      if (output[_pDNO] != null) {
        contents[_PDNO] = de_PrivateDnsNameOptionsResponse(output[_pDNO], context);
      }
      if (output[_iApv] != null) {
        contents[_IApv] = (0, import_smithy_client28.expectString)(output[_iApv]);
      }
      if (output[_tSp] != null) {
        contents[_TSp] = (0, import_smithy_client28.expectString)(output[_tSp]);
      }
      if (output[_mOa] != null) {
        contents[_MOa] = de_InstanceMaintenanceOptions(output[_mOa], context);
      }
      if (output[_cIBM] != null) {
        contents[_CIBM] = (0, import_smithy_client28.expectString)(output[_cIBM]);
      }
      if (output[_nPO] != null) {
        contents[_NPO] = de_InstanceNetworkPerformanceOptions(output[_nPO], context);
      }
      if (output[_op] != null) {
        contents[_O] = de_OperatorResponse(output[_op], context);
      }
      if (output[_iI] != null) {
        contents[_IIn] = (0, import_smithy_client28.expectString)(output[_iI]);
      }
      if (output[_iIma] != null) {
        contents[_IIma] = (0, import_smithy_client28.expectString)(output[_iIma]);
      }
      if (output[_iSnst] != null) {
        contents[_Stat] = de_InstanceState(output[_iSnst], context);
      }
      if (output[_pDNr] != null) {
        contents[_PDN] = (0, import_smithy_client28.expectString)(output[_pDNr]);
      }
      if (output[_dNn] != null) {
        contents[_PDNub] = (0, import_smithy_client28.expectString)(output[_dNn]);
      }
      if (output[_rea] != null) {
        contents[_STRt] = (0, import_smithy_client28.expectString)(output[_rea]);
      }
      if (output[_kN] != null) {
        contents[_KN] = (0, import_smithy_client28.expectString)(output[_kN]);
      }
      if (output[_aLI] != null) {
        contents[_ALI] = (0, import_smithy_client28.strictParseInt32)(output[_aLI]);
      }
      if (output.productCodes === "") {
        contents[_PCr] = [];
      } else if (output[_pC] != null && output[_pC][_i] != null) {
        contents[_PCr] = de_ProductCodeList((0, import_smithy_client28.getArrayIfSingleItem)(output[_pC][_i]), context);
      }
      if (output[_iT] != null) {
        contents[_IT] = (0, import_smithy_client28.expectString)(output[_iT]);
      }
      if (output[_lTau] != null) {
        contents[_LTaun] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_lTau]));
      }
      if (output[_pla] != null) {
        contents[_Pl] = de_Placement(output[_pla], context);
      }
      if (output[_kI] != null) {
        contents[_KI] = (0, import_smithy_client28.expectString)(output[_kI]);
      }
      if (output[_rIa] != null) {
        contents[_RIa] = (0, import_smithy_client28.expectString)(output[_rIa]);
      }
      if (output[_pl] != null) {
        contents[_Pla] = (0, import_smithy_client28.expectString)(output[_pl]);
      }
      if (output[_mo] != null) {
        contents[_Mon] = de_Monitoring(output[_mo], context);
      }
      if (output[_sIu] != null) {
        contents[_SIub] = (0, import_smithy_client28.expectString)(output[_sIu]);
      }
      if (output[_vI] != null) {
        contents[_VI] = (0, import_smithy_client28.expectString)(output[_vI]);
      }
      if (output[_pIAr] != null) {
        contents[_PIAr] = (0, import_smithy_client28.expectString)(output[_pIAr]);
      }
      if (output[_iAp] != null) {
        contents[_PIAu] = (0, import_smithy_client28.expectString)(output[_iAp]);
      }
      return contents;
    }, "de_Instance");
    var de_InstanceAttachmentEnaSrdSpecification = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_eSE] != null) {
        contents[_ESE] = (0, import_smithy_client28.parseBoolean)(output[_eSE]);
      }
      if (output[_eSUS] != null) {
        contents[_ESUS] = de_InstanceAttachmentEnaSrdUdpSpecification(output[_eSUS], context);
      }
      return contents;
    }, "de_InstanceAttachmentEnaSrdSpecification");
    var de_InstanceAttachmentEnaSrdUdpSpecification = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_eSUE] != null) {
        contents[_ESUE] = (0, import_smithy_client28.parseBoolean)(output[_eSUE]);
      }
      return contents;
    }, "de_InstanceAttachmentEnaSrdUdpSpecification");
    var de_InstanceAttribute = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.blockDeviceMapping === "") {
        contents[_BDM] = [];
      } else if (output[_bDM] != null && output[_bDM][_i] != null) {
        contents[_BDM] = de_InstanceBlockDeviceMappingList((0, import_smithy_client28.getArrayIfSingleItem)(output[_bDM][_i]), context);
      }
      if (output[_dAT] != null) {
        contents[_DATis] = de_AttributeBooleanValue(output[_dAT], context);
      }
      if (output[_eSna] != null) {
        contents[_ESn] = de_AttributeBooleanValue(output[_eSna], context);
      }
      if (output[_eOn] != null) {
        contents[_EOn] = de_EnclaveOptions(output[_eOn], context);
      }
      if (output[_eO] != null) {
        contents[_EO] = de_AttributeBooleanValue(output[_eO], context);
      }
      if (output[_iI] != null) {
        contents[_IIn] = (0, import_smithy_client28.expectString)(output[_iI]);
      }
      if (output[_iISB] != null) {
        contents[_IISB] = de_AttributeValue(output[_iISB], context);
      }
      if (output[_iT] != null) {
        contents[_IT] = de_AttributeValue(output[_iT], context);
      }
      if (output[_ke] != null) {
        contents[_KI] = de_AttributeValue(output[_ke], context);
      }
      if (output.productCodes === "") {
        contents[_PCr] = [];
      } else if (output[_pC] != null && output[_pC][_i] != null) {
        contents[_PCr] = de_ProductCodeList((0, import_smithy_client28.getArrayIfSingleItem)(output[_pC][_i]), context);
      }
      if (output[_ra] != null) {
        contents[_RIa] = de_AttributeValue(output[_ra], context);
      }
      if (output[_rDN] != null) {
        contents[_RDN] = de_AttributeValue(output[_rDN], context);
      }
      if (output[_sDC] != null) {
        contents[_SDC] = de_AttributeBooleanValue(output[_sDC], context);
      }
      if (output[_sNSr] != null) {
        contents[_SNS] = de_AttributeValue(output[_sNSr], context);
      }
      if (output[_uDs] != null) {
        contents[_UD] = de_AttributeValue(output[_uDs], context);
      }
      if (output[_dASi] != null) {
        contents[_DASi] = de_AttributeBooleanValue(output[_dASi], context);
      }
      if (output.groupSet === "") {
        contents[_G] = [];
      } else if (output[_gS] != null && output[_gS][_i] != null) {
        contents[_G] = de_GroupIdentifierList((0, import_smithy_client28.getArrayIfSingleItem)(output[_gS][_i]), context);
      }
      return contents;
    }, "de_InstanceAttribute");
    var de_InstanceBlockDeviceMapping = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_dN] != null) {
        contents[_DN] = (0, import_smithy_client28.expectString)(output[_dN]);
      }
      if (output[_eb] != null) {
        contents[_E2] = de_EbsInstanceBlockDevice(output[_eb], context);
      }
      return contents;
    }, "de_InstanceBlockDeviceMapping");
    var de_InstanceBlockDeviceMappingList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_InstanceBlockDeviceMapping(entry, context);
      });
    }, "de_InstanceBlockDeviceMappingList");
    var de_InstanceCapacity = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aC] != null) {
        contents[_ACv] = (0, import_smithy_client28.strictParseInt32)(output[_aC]);
      }
      if (output[_iT] != null) {
        contents[_IT] = (0, import_smithy_client28.expectString)(output[_iT]);
      }
      if (output[_tC] != null) {
        contents[_TCo] = (0, import_smithy_client28.strictParseInt32)(output[_tC]);
      }
      return contents;
    }, "de_InstanceCapacity");
    var de_InstanceConnectEndpointDnsNames = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_dNn] != null) {
        contents[_DNn] = (0, import_smithy_client28.expectString)(output[_dNn]);
      }
      if (output[_fDN] != null) {
        contents[_FDN] = (0, import_smithy_client28.expectString)(output[_fDN]);
      }
      return contents;
    }, "de_InstanceConnectEndpointDnsNames");
    var de_InstanceConnectEndpointPublicDnsNames = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ipv] != null) {
        contents[_Ip] = de_InstanceConnectEndpointDnsNames(output[_ipv], context);
      }
      if (output[_dua] != null) {
        contents[_Dua] = de_InstanceConnectEndpointDnsNames(output[_dua], context);
      }
      return contents;
    }, "de_InstanceConnectEndpointPublicDnsNames");
    var de_InstanceConnectEndpointSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Ec2InstanceConnectEndpoint(entry, context);
      });
    }, "de_InstanceConnectEndpointSet");
    var de_InstanceCount = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iC] != null) {
        contents[_IC] = (0, import_smithy_client28.strictParseInt32)(output[_iC]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      return contents;
    }, "de_InstanceCount");
    var de_InstanceCountList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_InstanceCount(entry, context);
      });
    }, "de_InstanceCountList");
    var de_InstanceCreditSpecification = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iI] != null) {
        contents[_IIn] = (0, import_smithy_client28.expectString)(output[_iI]);
      }
      if (output[_cCp] != null) {
        contents[_CCp] = (0, import_smithy_client28.expectString)(output[_cCp]);
      }
      return contents;
    }, "de_InstanceCreditSpecification");
    var de_InstanceCreditSpecificationList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_InstanceCreditSpecification(entry, context);
      });
    }, "de_InstanceCreditSpecificationList");
    var de_InstanceEventWindow = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iEWI] != null) {
        contents[_IEWI] = (0, import_smithy_client28.expectString)(output[_iEWI]);
      }
      if (output.timeRangeSet === "") {
        contents[_TRi] = [];
      } else if (output[_tRSi] != null && output[_tRSi][_i] != null) {
        contents[_TRi] = de_InstanceEventWindowTimeRangeList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tRSi][_i]), context);
      }
      if (output[_n] != null) {
        contents[_N] = (0, import_smithy_client28.expectString)(output[_n]);
      }
      if (output[_cEr] != null) {
        contents[_CE] = (0, import_smithy_client28.expectString)(output[_cEr]);
      }
      if (output[_aTs] != null) {
        contents[_AT] = de_InstanceEventWindowAssociationTarget(output[_aTs], context);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      return contents;
    }, "de_InstanceEventWindow");
    var de_InstanceEventWindowAssociationTarget = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.instanceIdSet === "") {
        contents[_IIns] = [];
      } else if (output[_iIS] != null && output[_iIS][_i] != null) {
        contents[_IIns] = de_InstanceIdList((0, import_smithy_client28.getArrayIfSingleItem)(output[_iIS][_i]), context);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output.dedicatedHostIdSet === "") {
        contents[_DHI] = [];
      } else if (output[_dHIS] != null && output[_dHIS][_i] != null) {
        contents[_DHI] = de_DedicatedHostIdList((0, import_smithy_client28.getArrayIfSingleItem)(output[_dHIS][_i]), context);
      }
      return contents;
    }, "de_InstanceEventWindowAssociationTarget");
    var de_InstanceEventWindowSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_InstanceEventWindow(entry, context);
      });
    }, "de_InstanceEventWindowSet");
    var de_InstanceEventWindowStateChange = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iEWI] != null) {
        contents[_IEWI] = (0, import_smithy_client28.expectString)(output[_iEWI]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      return contents;
    }, "de_InstanceEventWindowStateChange");
    var de_InstanceEventWindowTimeRange = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sWD] != null) {
        contents[_SWD] = (0, import_smithy_client28.expectString)(output[_sWD]);
      }
      if (output[_sH] != null) {
        contents[_SH] = (0, import_smithy_client28.strictParseInt32)(output[_sH]);
      }
      if (output[_eWD] != null) {
        contents[_EWD] = (0, import_smithy_client28.expectString)(output[_eWD]);
      }
      if (output[_eH] != null) {
        contents[_EH] = (0, import_smithy_client28.strictParseInt32)(output[_eH]);
      }
      return contents;
    }, "de_InstanceEventWindowTimeRange");
    var de_InstanceEventWindowTimeRangeList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_InstanceEventWindowTimeRange(entry, context);
      });
    }, "de_InstanceEventWindowTimeRangeList");
    var de_InstanceExportDetails = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iI] != null) {
        contents[_IIn] = (0, import_smithy_client28.expectString)(output[_iI]);
      }
      if (output[_tE] != null) {
        contents[_TE] = (0, import_smithy_client28.expectString)(output[_tE]);
      }
      return contents;
    }, "de_InstanceExportDetails");
    var de_InstanceFamilyCreditSpecification = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iF] != null) {
        contents[_IF] = (0, import_smithy_client28.expectString)(output[_iF]);
      }
      if (output[_cCp] != null) {
        contents[_CCp] = (0, import_smithy_client28.expectString)(output[_cCp]);
      }
      return contents;
    }, "de_InstanceFamilyCreditSpecification");
    var de_InstanceGenerationSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_InstanceGenerationSet");
    var de_InstanceIdList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_InstanceIdList");
    var de_InstanceIdSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_InstanceIdSet");
    var de_InstanceIdsSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_InstanceIdsSet");
    var de_InstanceImageMetadata = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iI] != null) {
        contents[_IIn] = (0, import_smithy_client28.expectString)(output[_iI]);
      }
      if (output[_iT] != null) {
        contents[_IT] = (0, import_smithy_client28.expectString)(output[_iT]);
      }
      if (output[_lTau] != null) {
        contents[_LTaun] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_lTau]));
      }
      if (output[_aZ] != null) {
        contents[_AZ] = (0, import_smithy_client28.expectString)(output[_aZ]);
      }
      if (output[_zI] != null) {
        contents[_ZIo] = (0, import_smithy_client28.expectString)(output[_zI]);
      }
      if (output[_iSnst] != null) {
        contents[_Stat] = de_InstanceState(output[_iSnst], context);
      }
      if (output[_iOIn] != null) {
        contents[_OIwn] = (0, import_smithy_client28.expectString)(output[_iOIn]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_iM] != null) {
        contents[_IMm] = de_ImageMetadata(output[_iM], context);
      }
      if (output[_op] != null) {
        contents[_O] = de_OperatorResponse(output[_op], context);
      }
      return contents;
    }, "de_InstanceImageMetadata");
    var de_InstanceImageMetadataList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_InstanceImageMetadata(entry, context);
      });
    }, "de_InstanceImageMetadataList");
    var de_InstanceIpv4Prefix = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iPpv] != null) {
        contents[_IPpvr] = (0, import_smithy_client28.expectString)(output[_iPpv]);
      }
      return contents;
    }, "de_InstanceIpv4Prefix");
    var de_InstanceIpv4PrefixList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_InstanceIpv4Prefix(entry, context);
      });
    }, "de_InstanceIpv4PrefixList");
    var de_InstanceIpv6Address = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iApv] != null) {
        contents[_IApv] = (0, import_smithy_client28.expectString)(output[_iApv]);
      }
      if (output[_iPI] != null) {
        contents[_IPIs] = (0, import_smithy_client28.parseBoolean)(output[_iPI]);
      }
      return contents;
    }, "de_InstanceIpv6Address");
    var de_InstanceIpv6AddressList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_InstanceIpv6Address(entry, context);
      });
    }, "de_InstanceIpv6AddressList");
    var de_InstanceIpv6Prefix = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iPpvr] != null) {
        contents[_IPpvre] = (0, import_smithy_client28.expectString)(output[_iPpvr]);
      }
      return contents;
    }, "de_InstanceIpv6Prefix");
    var de_InstanceIpv6PrefixList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_InstanceIpv6Prefix(entry, context);
      });
    }, "de_InstanceIpv6PrefixList");
    var de_InstanceList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Instance(entry, context);
      });
    }, "de_InstanceList");
    var de_InstanceMaintenanceOptions = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aRu] != null) {
        contents[_ARu] = (0, import_smithy_client28.expectString)(output[_aRu]);
      }
      if (output[_rM] != null) {
        contents[_RMe] = (0, import_smithy_client28.expectString)(output[_rM]);
      }
      return contents;
    }, "de_InstanceMaintenanceOptions");
    var de_InstanceMetadataDefaultsResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_hT] != null) {
        contents[_HT] = (0, import_smithy_client28.expectString)(output[_hT]);
      }
      if (output[_hPRHL] != null) {
        contents[_HPRHL] = (0, import_smithy_client28.strictParseInt32)(output[_hPRHL]);
      }
      if (output[_hE] != null) {
        contents[_HE] = (0, import_smithy_client28.expectString)(output[_hE]);
      }
      if (output[_iMT] != null) {
        contents[_IMT] = (0, import_smithy_client28.expectString)(output[_iMT]);
      }
      if (output[_mB] != null) {
        contents[_MB] = (0, import_smithy_client28.expectString)(output[_mB]);
      }
      if (output[_mEM] != null) {
        contents[_MEM] = (0, import_smithy_client28.expectString)(output[_mEM]);
      }
      return contents;
    }, "de_InstanceMetadataDefaultsResponse");
    var de_InstanceMetadataOptionsResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_hT] != null) {
        contents[_HT] = (0, import_smithy_client28.expectString)(output[_hT]);
      }
      if (output[_hPRHL] != null) {
        contents[_HPRHL] = (0, import_smithy_client28.strictParseInt32)(output[_hPRHL]);
      }
      if (output[_hE] != null) {
        contents[_HE] = (0, import_smithy_client28.expectString)(output[_hE]);
      }
      if (output[_hPI] != null) {
        contents[_HPI] = (0, import_smithy_client28.expectString)(output[_hPI]);
      }
      if (output[_iMT] != null) {
        contents[_IMT] = (0, import_smithy_client28.expectString)(output[_iMT]);
      }
      return contents;
    }, "de_InstanceMetadataOptionsResponse");
    var de_InstanceMonitoring = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iI] != null) {
        contents[_IIn] = (0, import_smithy_client28.expectString)(output[_iI]);
      }
      if (output[_mo] != null) {
        contents[_Mon] = de_Monitoring(output[_mo], context);
      }
      return contents;
    }, "de_InstanceMonitoring");
    var de_InstanceMonitoringList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_InstanceMonitoring(entry, context);
      });
    }, "de_InstanceMonitoringList");
    var de_InstanceNetworkInterface = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ass] != null) {
        contents[_Asso] = de_InstanceNetworkInterfaceAssociation(output[_ass], context);
      }
      if (output[_at] != null) {
        contents[_Att] = de_InstanceNetworkInterfaceAttachment(output[_at], context);
      }
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      if (output.groupSet === "") {
        contents[_G] = [];
      } else if (output[_gS] != null && output[_gS][_i] != null) {
        contents[_G] = de_GroupIdentifierList((0, import_smithy_client28.getArrayIfSingleItem)(output[_gS][_i]), context);
      }
      if (output.ipv6AddressesSet === "") {
        contents[_IA] = [];
      } else if (output[_iASp] != null && output[_iASp][_i] != null) {
        contents[_IA] = de_InstanceIpv6AddressList((0, import_smithy_client28.getArrayIfSingleItem)(output[_iASp][_i]), context);
      }
      if (output[_mAa] != null) {
        contents[_MAa] = (0, import_smithy_client28.expectString)(output[_mAa]);
      }
      if (output[_nII] != null) {
        contents[_NII] = (0, import_smithy_client28.expectString)(output[_nII]);
      }
      if (output[_oI] != null) {
        contents[_OIwn] = (0, import_smithy_client28.expectString)(output[_oI]);
      }
      if (output[_pDNr] != null) {
        contents[_PDN] = (0, import_smithy_client28.expectString)(output[_pDNr]);
      }
      if (output[_pIAr] != null) {
        contents[_PIAr] = (0, import_smithy_client28.expectString)(output[_pIAr]);
      }
      if (output.privateIpAddressesSet === "") {
        contents[_PIA] = [];
      } else if (output[_pIAS] != null && output[_pIAS][_i] != null) {
        contents[_PIA] = de_InstancePrivateIpAddressList((0, import_smithy_client28.getArrayIfSingleItem)(output[_pIAS][_i]), context);
      }
      if (output[_sDC] != null) {
        contents[_SDC] = (0, import_smithy_client28.parseBoolean)(output[_sDC]);
      }
      if (output[_sta] != null) {
        contents[_Statu] = (0, import_smithy_client28.expectString)(output[_sta]);
      }
      if (output[_sIu] != null) {
        contents[_SIub] = (0, import_smithy_client28.expectString)(output[_sIu]);
      }
      if (output[_vI] != null) {
        contents[_VI] = (0, import_smithy_client28.expectString)(output[_vI]);
      }
      if (output[_iTnt] != null) {
        contents[_ITn] = (0, import_smithy_client28.expectString)(output[_iTnt]);
      }
      if (output.ipv4PrefixSet === "") {
        contents[_IPp] = [];
      } else if (output[_iPSpv] != null && output[_iPSpv][_i] != null) {
        contents[_IPp] = de_InstanceIpv4PrefixList((0, import_smithy_client28.getArrayIfSingleItem)(output[_iPSpv][_i]), context);
      }
      if (output.ipv6PrefixSet === "") {
        contents[_IP] = [];
      } else if (output[_iPSpvr] != null && output[_iPSpvr][_i] != null) {
        contents[_IP] = de_InstanceIpv6PrefixList((0, import_smithy_client28.getArrayIfSingleItem)(output[_iPSpvr][_i]), context);
      }
      if (output[_cTC] != null) {
        contents[_CTC] = de_ConnectionTrackingSpecificationResponse(output[_cTC], context);
      }
      if (output[_op] != null) {
        contents[_O] = de_OperatorResponse(output[_op], context);
      }
      return contents;
    }, "de_InstanceNetworkInterface");
    var de_InstanceNetworkInterfaceAssociation = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cI] != null) {
        contents[_CIa] = (0, import_smithy_client28.expectString)(output[_cI]);
      }
      if (output[_cOI] != null) {
        contents[_COI] = (0, import_smithy_client28.expectString)(output[_cOI]);
      }
      if (output[_iOIp] != null) {
        contents[_IOI] = (0, import_smithy_client28.expectString)(output[_iOIp]);
      }
      if (output[_pDNu] != null) {
        contents[_PDNub] = (0, import_smithy_client28.expectString)(output[_pDNu]);
      }
      if (output[_pI] != null) {
        contents[_PI2] = (0, import_smithy_client28.expectString)(output[_pI]);
      }
      return contents;
    }, "de_InstanceNetworkInterfaceAssociation");
    var de_InstanceNetworkInterfaceAttachment = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aTt] != null) {
        contents[_ATtt] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_aTt]));
      }
      if (output[_aIt] != null) {
        contents[_AIt] = (0, import_smithy_client28.expectString)(output[_aIt]);
      }
      if (output[_dOT] != null) {
        contents[_DOT] = (0, import_smithy_client28.parseBoolean)(output[_dOT]);
      }
      if (output[_dIe] != null) {
        contents[_DIev] = (0, import_smithy_client28.strictParseInt32)(output[_dIe]);
      }
      if (output[_sta] != null) {
        contents[_Statu] = (0, import_smithy_client28.expectString)(output[_sta]);
      }
      if (output[_nCI] != null) {
        contents[_NCI] = (0, import_smithy_client28.strictParseInt32)(output[_nCI]);
      }
      if (output[_eSS] != null) {
        contents[_ESS] = de_InstanceAttachmentEnaSrdSpecification(output[_eSS], context);
      }
      if (output[_eQC] != null) {
        contents[_EQC] = (0, import_smithy_client28.strictParseInt32)(output[_eQC]);
      }
      return contents;
    }, "de_InstanceNetworkInterfaceAttachment");
    var de_InstanceNetworkInterfaceList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_InstanceNetworkInterface(entry, context);
      });
    }, "de_InstanceNetworkInterfaceList");
    var de_InstanceNetworkInterfaceSpecification = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aPIA] != null) {
        contents[_APIAs] = (0, import_smithy_client28.parseBoolean)(output[_aPIA]);
      }
      if (output[_dOT] != null) {
        contents[_DOT] = (0, import_smithy_client28.parseBoolean)(output[_dOT]);
      }
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      if (output[_dIe] != null) {
        contents[_DIev] = (0, import_smithy_client28.strictParseInt32)(output[_dIe]);
      }
      if (output.SecurityGroupId === "") {
        contents[_G] = [];
      } else if (output[_SGIe] != null && output[_SGIe][_SGIe] != null) {
        contents[_G] = de_SecurityGroupIdStringList((0, import_smithy_client28.getArrayIfSingleItem)(output[_SGIe][_SGIe]), context);
      }
      if (output[_iAC] != null) {
        contents[_IAC] = (0, import_smithy_client28.strictParseInt32)(output[_iAC]);
      }
      if (output.ipv6AddressesSet === "") {
        contents[_IA] = [];
      } else if (output[_iASp] != null && output[_iASp][_i] != null) {
        contents[_IA] = de_InstanceIpv6AddressList((0, import_smithy_client28.getArrayIfSingleItem)(output[_iASp][_i]), context);
      }
      if (output[_nII] != null) {
        contents[_NII] = (0, import_smithy_client28.expectString)(output[_nII]);
      }
      if (output[_pIAr] != null) {
        contents[_PIAr] = (0, import_smithy_client28.expectString)(output[_pIAr]);
      }
      if (output.privateIpAddressesSet === "") {
        contents[_PIA] = [];
      } else if (output[_pIAS] != null && output[_pIAS][_i] != null) {
        contents[_PIA] = de_PrivateIpAddressSpecificationList((0, import_smithy_client28.getArrayIfSingleItem)(output[_pIAS][_i]), context);
      }
      if (output[_sPIAC] != null) {
        contents[_SPIAC] = (0, import_smithy_client28.strictParseInt32)(output[_sPIAC]);
      }
      if (output[_sIu] != null) {
        contents[_SIub] = (0, import_smithy_client28.expectString)(output[_sIu]);
      }
      if (output[_ACIA] != null) {
        contents[_ACIA] = (0, import_smithy_client28.parseBoolean)(output[_ACIA]);
      }
      if (output[_ITn] != null) {
        contents[_ITn] = (0, import_smithy_client28.expectString)(output[_ITn]);
      }
      if (output[_NCI] != null) {
        contents[_NCI] = (0, import_smithy_client28.strictParseInt32)(output[_NCI]);
      }
      if (output.Ipv4Prefix === "") {
        contents[_IPp] = [];
      } else if (output[_IPpvr] != null && output[_IPpvr][_i] != null) {
        contents[_IPp] = de_Ipv4PrefixList((0, import_smithy_client28.getArrayIfSingleItem)(output[_IPpvr][_i]), context);
      }
      if (output[_IPCp] != null) {
        contents[_IPCp] = (0, import_smithy_client28.strictParseInt32)(output[_IPCp]);
      }
      if (output.Ipv6Prefix === "") {
        contents[_IP] = [];
      } else if (output[_IPpvre] != null && output[_IPpvre][_i] != null) {
        contents[_IP] = de_Ipv6PrefixList((0, import_smithy_client28.getArrayIfSingleItem)(output[_IPpvre][_i]), context);
      }
      if (output[_IPC] != null) {
        contents[_IPC] = (0, import_smithy_client28.strictParseInt32)(output[_IPC]);
      }
      if (output[_PIr] != null) {
        contents[_PIr] = (0, import_smithy_client28.parseBoolean)(output[_PIr]);
      }
      if (output[_ESS] != null) {
        contents[_ESS] = de_EnaSrdSpecificationRequest(output[_ESS], context);
      }
      if (output[_CTS] != null) {
        contents[_CTS] = de_ConnectionTrackingSpecificationRequest(output[_CTS], context);
      }
      if (output[_EQC] != null) {
        contents[_EQC] = (0, import_smithy_client28.strictParseInt32)(output[_EQC]);
      }
      return contents;
    }, "de_InstanceNetworkInterfaceSpecification");
    var de_InstanceNetworkInterfaceSpecificationList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_InstanceNetworkInterfaceSpecification(entry, context);
      });
    }, "de_InstanceNetworkInterfaceSpecificationList");
    var de_InstanceNetworkPerformanceOptions = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_bW] != null) {
        contents[_BW] = (0, import_smithy_client28.expectString)(output[_bW]);
      }
      return contents;
    }, "de_InstanceNetworkPerformanceOptions");
    var de_InstancePrivateIpAddress = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ass] != null) {
        contents[_Asso] = de_InstanceNetworkInterfaceAssociation(output[_ass], context);
      }
      if (output[_prim] != null) {
        contents[_Prim] = (0, import_smithy_client28.parseBoolean)(output[_prim]);
      }
      if (output[_pDNr] != null) {
        contents[_PDN] = (0, import_smithy_client28.expectString)(output[_pDNr]);
      }
      if (output[_pIAr] != null) {
        contents[_PIAr] = (0, import_smithy_client28.expectString)(output[_pIAr]);
      }
      return contents;
    }, "de_InstancePrivateIpAddress");
    var de_InstancePrivateIpAddressList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_InstancePrivateIpAddress(entry, context);
      });
    }, "de_InstancePrivateIpAddressList");
    var de_InstanceRequirements = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_vCC] != null) {
        contents[_VCC] = de_VCpuCountRange(output[_vCC], context);
      }
      if (output[_mMB] != null) {
        contents[_MMB] = de_MemoryMiB(output[_mMB], context);
      }
      if (output.cpuManufacturerSet === "") {
        contents[_CM] = [];
      } else if (output[_cMS] != null && output[_cMS][_i] != null) {
        contents[_CM] = de_CpuManufacturerSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_cMS][_i]), context);
      }
      if (output[_mGBPVC] != null) {
        contents[_MGBPVC] = de_MemoryGiBPerVCpu(output[_mGBPVC], context);
      }
      if (output.excludedInstanceTypeSet === "") {
        contents[_EIT] = [];
      } else if (output[_eITSx] != null && output[_eITSx][_i] != null) {
        contents[_EIT] = de_ExcludedInstanceTypeSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_eITSx][_i]), context);
      }
      if (output.instanceGenerationSet === "") {
        contents[_IG] = [];
      } else if (output[_iGSn] != null && output[_iGSn][_i] != null) {
        contents[_IG] = de_InstanceGenerationSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_iGSn][_i]), context);
      }
      if (output[_sMPPOLP] != null) {
        contents[_SMPPOLP] = (0, import_smithy_client28.strictParseInt32)(output[_sMPPOLP]);
      }
      if (output[_oDMPPOLP] != null) {
        contents[_ODMPPOLP] = (0, import_smithy_client28.strictParseInt32)(output[_oDMPPOLP]);
      }
      if (output[_bMa] != null) {
        contents[_BMa] = (0, import_smithy_client28.expectString)(output[_bMa]);
      }
      if (output[_bP] != null) {
        contents[_BP] = (0, import_smithy_client28.expectString)(output[_bP]);
      }
      if (output[_rHS] != null) {
        contents[_RHS] = (0, import_smithy_client28.parseBoolean)(output[_rHS]);
      }
      if (output[_nIC] != null) {
        contents[_NIC] = de_NetworkInterfaceCount(output[_nIC], context);
      }
      if (output[_lSo] != null) {
        contents[_LSo] = (0, import_smithy_client28.expectString)(output[_lSo]);
      }
      if (output.localStorageTypeSet === "") {
        contents[_LST] = [];
      } else if (output[_lSTS] != null && output[_lSTS][_i] != null) {
        contents[_LST] = de_LocalStorageTypeSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_lSTS][_i]), context);
      }
      if (output[_tLSGB] != null) {
        contents[_TLSGB] = de_TotalLocalStorageGB(output[_tLSGB], context);
      }
      if (output[_bEBM] != null) {
        contents[_BEBM] = de_BaselineEbsBandwidthMbps(output[_bEBM], context);
      }
      if (output.acceleratorTypeSet === "") {
        contents[_ATc] = [];
      } else if (output[_aTSc] != null && output[_aTSc][_i] != null) {
        contents[_ATc] = de_AcceleratorTypeSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_aTSc][_i]), context);
      }
      if (output[_aCc] != null) {
        contents[_ACc] = de_AcceleratorCount(output[_aCc], context);
      }
      if (output.acceleratorManufacturerSet === "") {
        contents[_AM] = [];
      } else if (output[_aMS] != null && output[_aMS][_i] != null) {
        contents[_AM] = de_AcceleratorManufacturerSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_aMS][_i]), context);
      }
      if (output.acceleratorNameSet === "") {
        contents[_ANc] = [];
      } else if (output[_aNS] != null && output[_aNS][_i] != null) {
        contents[_ANc] = de_AcceleratorNameSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_aNS][_i]), context);
      }
      if (output[_aTMMB] != null) {
        contents[_ATMMB] = de_AcceleratorTotalMemoryMiB(output[_aTMMB], context);
      }
      if (output[_nBGe] != null) {
        contents[_NBGe] = de_NetworkBandwidthGbps(output[_nBGe], context);
      }
      if (output.allowedInstanceTypeSet === "") {
        contents[_AIT] = [];
      } else if (output[_aITS] != null && output[_aITS][_i] != null) {
        contents[_AIT] = de_AllowedInstanceTypeSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_aITS][_i]), context);
      }
      if (output[_mSPAPOOODP] != null) {
        contents[_MSPAPOOODP] = (0, import_smithy_client28.strictParseInt32)(output[_mSPAPOOODP]);
      }
      if (output[_bPF] != null) {
        contents[_BPF] = de_BaselinePerformanceFactors(output[_bPF], context);
      }
      return contents;
    }, "de_InstanceRequirements");
    var de_InstanceSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_InstanceTopology(entry, context);
      });
    }, "de_InstanceSet");
    var de_InstanceState = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_co] != null) {
        contents[_Cod] = (0, import_smithy_client28.strictParseInt32)(output[_co]);
      }
      if (output[_n] != null) {
        contents[_N] = (0, import_smithy_client28.expectString)(output[_n]);
      }
      return contents;
    }, "de_InstanceState");
    var de_InstanceStateChange = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iI] != null) {
        contents[_IIn] = (0, import_smithy_client28.expectString)(output[_iI]);
      }
      if (output[_cSu] != null) {
        contents[_CSu] = de_InstanceState(output[_cSu], context);
      }
      if (output[_pSr] != null) {
        contents[_PSre] = de_InstanceState(output[_pSr], context);
      }
      return contents;
    }, "de_InstanceStateChange");
    var de_InstanceStateChangeList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_InstanceStateChange(entry, context);
      });
    }, "de_InstanceStateChangeList");
    var de_InstanceStatus = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aZ] != null) {
        contents[_AZ] = (0, import_smithy_client28.expectString)(output[_aZ]);
      }
      if (output[_aZI] != null) {
        contents[_AZI] = (0, import_smithy_client28.expectString)(output[_aZI]);
      }
      if (output[_oA] != null) {
        contents[_OA] = (0, import_smithy_client28.expectString)(output[_oA]);
      }
      if (output[_op] != null) {
        contents[_O] = de_OperatorResponse(output[_op], context);
      }
      if (output.eventsSet === "") {
        contents[_Ev] = [];
      } else if (output[_eSv] != null && output[_eSv][_i] != null) {
        contents[_Ev] = de_InstanceStatusEventList((0, import_smithy_client28.getArrayIfSingleItem)(output[_eSv][_i]), context);
      }
      if (output[_iI] != null) {
        contents[_IIn] = (0, import_smithy_client28.expectString)(output[_iI]);
      }
      if (output[_iSnst] != null) {
        contents[_ISnst] = de_InstanceState(output[_iSnst], context);
      }
      if (output[_iSnsta] != null) {
        contents[_ISnsta] = de_InstanceStatusSummary(output[_iSnsta], context);
      }
      if (output[_sSy] != null) {
        contents[_SSy] = de_InstanceStatusSummary(output[_sSy], context);
      }
      if (output[_aES] != null) {
        contents[_AES] = de_EbsStatusSummary(output[_aES], context);
      }
      return contents;
    }, "de_InstanceStatus");
    var de_InstanceStatusDetails = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iSmp] != null) {
        contents[_ISmp] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_iSmp]));
      }
      if (output[_n] != null) {
        contents[_N] = (0, import_smithy_client28.expectString)(output[_n]);
      }
      if (output[_sta] != null) {
        contents[_Statu] = (0, import_smithy_client28.expectString)(output[_sta]);
      }
      return contents;
    }, "de_InstanceStatusDetails");
    var de_InstanceStatusDetailsList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_InstanceStatusDetails(entry, context);
      });
    }, "de_InstanceStatusDetailsList");
    var de_InstanceStatusEvent = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iEI] != null) {
        contents[_IEI] = (0, import_smithy_client28.expectString)(output[_iEI]);
      }
      if (output[_co] != null) {
        contents[_Cod] = (0, import_smithy_client28.expectString)(output[_co]);
      }
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      if (output[_nAo] != null) {
        contents[_NAo] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_nAo]));
      }
      if (output[_nB] != null) {
        contents[_NB] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_nB]));
      }
      if (output[_nBD] != null) {
        contents[_NBD] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_nBD]));
      }
      return contents;
    }, "de_InstanceStatusEvent");
    var de_InstanceStatusEventList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_InstanceStatusEvent(entry, context);
      });
    }, "de_InstanceStatusEventList");
    var de_InstanceStatusList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_InstanceStatus(entry, context);
      });
    }, "de_InstanceStatusList");
    var de_InstanceStatusSummary = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.details === "") {
        contents[_Det] = [];
      } else if (output[_det] != null && output[_det][_i] != null) {
        contents[_Det] = de_InstanceStatusDetailsList((0, import_smithy_client28.getArrayIfSingleItem)(output[_det][_i]), context);
      }
      if (output[_sta] != null) {
        contents[_Statu] = (0, import_smithy_client28.expectString)(output[_sta]);
      }
      return contents;
    }, "de_InstanceStatusSummary");
    var de_InstanceStorageInfo = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tSIGB] != null) {
        contents[_TSIGB] = (0, import_smithy_client28.strictParseLong)(output[_tSIGB]);
      }
      if (output.disks === "") {
        contents[_Dis] = [];
      } else if (output[_dis] != null && output[_dis][_i] != null) {
        contents[_Dis] = de_DiskInfoList((0, import_smithy_client28.getArrayIfSingleItem)(output[_dis][_i]), context);
      }
      if (output[_nS] != null) {
        contents[_NS] = (0, import_smithy_client28.expectString)(output[_nS]);
      }
      if (output[_eSn] != null) {
        contents[_ESnc] = (0, import_smithy_client28.expectString)(output[_eSn]);
      }
      return contents;
    }, "de_InstanceStorageInfo");
    var de_InstanceTagKeySet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_InstanceTagKeySet");
    var de_InstanceTagNotificationAttribute = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.instanceTagKeySet === "") {
        contents[_ITK] = [];
      } else if (output[_iTKS] != null && output[_iTKS][_i] != null) {
        contents[_ITK] = de_InstanceTagKeySet((0, import_smithy_client28.getArrayIfSingleItem)(output[_iTKS][_i]), context);
      }
      if (output[_iATOI] != null) {
        contents[_IATOI] = (0, import_smithy_client28.parseBoolean)(output[_iATOI]);
      }
      return contents;
    }, "de_InstanceTagNotificationAttribute");
    var de_InstanceTopology = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iI] != null) {
        contents[_IIn] = (0, import_smithy_client28.expectString)(output[_iI]);
      }
      if (output[_iT] != null) {
        contents[_IT] = (0, import_smithy_client28.expectString)(output[_iT]);
      }
      if (output[_gN] != null) {
        contents[_GN] = (0, import_smithy_client28.expectString)(output[_gN]);
      }
      if (output.networkNodeSet === "") {
        contents[_NN] = [];
      } else if (output[_nNS] != null && output[_nNS][_i] != null) {
        contents[_NN] = de_NetworkNodesList((0, import_smithy_client28.getArrayIfSingleItem)(output[_nNS][_i]), context);
      }
      if (output[_aZ] != null) {
        contents[_AZ] = (0, import_smithy_client28.expectString)(output[_aZ]);
      }
      if (output[_zI] != null) {
        contents[_ZIo] = (0, import_smithy_client28.expectString)(output[_zI]);
      }
      if (output[_cBI] != null) {
        contents[_CBIa] = (0, import_smithy_client28.expectString)(output[_cBI]);
      }
      return contents;
    }, "de_InstanceTopology");
    var de_InstanceTypeInfo = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iT] != null) {
        contents[_IT] = (0, import_smithy_client28.expectString)(output[_iT]);
      }
      if (output[_cGur] != null) {
        contents[_CGur] = (0, import_smithy_client28.parseBoolean)(output[_cGur]);
      }
      if (output[_fTE] != null) {
        contents[_FTE] = (0, import_smithy_client28.parseBoolean)(output[_fTE]);
      }
      if (output.supportedUsageClasses === "") {
        contents[_SUC] = [];
      } else if (output[_sUC] != null && output[_sUC][_i] != null) {
        contents[_SUC] = de_UsageClassTypeList((0, import_smithy_client28.getArrayIfSingleItem)(output[_sUC][_i]), context);
      }
      if (output.supportedRootDeviceTypes === "") {
        contents[_SRDT] = [];
      } else if (output[_sRDT] != null && output[_sRDT][_i] != null) {
        contents[_SRDT] = de_RootDeviceTypeList((0, import_smithy_client28.getArrayIfSingleItem)(output[_sRDT][_i]), context);
      }
      if (output.supportedVirtualizationTypes === "") {
        contents[_SVT] = [];
      } else if (output[_sVT] != null && output[_sVT][_i] != null) {
        contents[_SVT] = de_VirtualizationTypeList((0, import_smithy_client28.getArrayIfSingleItem)(output[_sVT][_i]), context);
      }
      if (output[_bMa] != null) {
        contents[_BMa] = (0, import_smithy_client28.parseBoolean)(output[_bMa]);
      }
      if (output[_h] != null) {
        contents[_H] = (0, import_smithy_client28.expectString)(output[_h]);
      }
      if (output[_pIr] != null) {
        contents[_PIro] = de_ProcessorInfo(output[_pIr], context);
      }
      if (output[_vCIp] != null) {
        contents[_VCIpu] = de_VCpuInfo(output[_vCIp], context);
      }
      if (output[_mIe] != null) {
        contents[_MIe] = de_MemoryInfo(output[_mIe], context);
      }
      if (output[_iSSn] != null) {
        contents[_ISS] = (0, import_smithy_client28.parseBoolean)(output[_iSSn]);
      }
      if (output[_iSI] != null) {
        contents[_ISIn] = de_InstanceStorageInfo(output[_iSI], context);
      }
      if (output[_eIb] != null) {
        contents[_EIb] = de_EbsInfo(output[_eIb], context);
      }
      if (output[_nIet] != null) {
        contents[_NIetw] = de_NetworkInfo(output[_nIet], context);
      }
      if (output[_gIp] != null) {
        contents[_GIp] = de_GpuInfo(output[_gIp], context);
      }
      if (output[_fIp] != null) {
        contents[_FIpg] = de_FpgaInfo(output[_fIp], context);
      }
      if (output[_pGI] != null) {
        contents[_PGI] = de_PlacementGroupInfo(output[_pGI], context);
      }
      if (output[_iAI] != null) {
        contents[_IAIn] = de_InferenceAcceleratorInfo(output[_iAI], context);
      }
      if (output[_hSi] != null) {
        contents[_HS] = (0, import_smithy_client28.parseBoolean)(output[_hSi]);
      }
      if (output[_bPS] != null) {
        contents[_BPS] = (0, import_smithy_client28.parseBoolean)(output[_bPS]);
      }
      if (output[_dHS] != null) {
        contents[_DHS] = (0, import_smithy_client28.parseBoolean)(output[_dHS]);
      }
      if (output[_aRSu] != null) {
        contents[_ARSu] = (0, import_smithy_client28.parseBoolean)(output[_aRSu]);
      }
      if (output.supportedBootModes === "") {
        contents[_SBM] = [];
      } else if (output[_sBM] != null && output[_sBM][_i] != null) {
        contents[_SBM] = de_BootModeTypeList((0, import_smithy_client28.getArrayIfSingleItem)(output[_sBM][_i]), context);
      }
      if (output[_nES] != null) {
        contents[_NES] = (0, import_smithy_client28.expectString)(output[_nES]);
      }
      if (output[_nTS] != null) {
        contents[_NTS] = (0, import_smithy_client28.expectString)(output[_nTS]);
      }
      if (output[_nTI] != null) {
        contents[_NTI] = de_NitroTpmInfo(output[_nTI], context);
      }
      if (output[_mAIe] != null) {
        contents[_MAIe] = de_MediaAcceleratorInfo(output[_mAIe], context);
      }
      if (output[_nIeu] != null) {
        contents[_NIeu] = de_NeuronInfo(output[_nIeu], context);
      }
      if (output[_pSh] != null) {
        contents[_PSh] = (0, import_smithy_client28.expectString)(output[_pSh]);
      }
      if (output[_rMS] != null) {
        contents[_RMS] = (0, import_smithy_client28.expectString)(output[_rMS]);
      }
      return contents;
    }, "de_InstanceTypeInfo");
    var de_InstanceTypeInfoFromInstanceRequirements = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iT] != null) {
        contents[_IT] = (0, import_smithy_client28.expectString)(output[_iT]);
      }
      return contents;
    }, "de_InstanceTypeInfoFromInstanceRequirements");
    var de_InstanceTypeInfoFromInstanceRequirementsSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_InstanceTypeInfoFromInstanceRequirements(entry, context);
      });
    }, "de_InstanceTypeInfoFromInstanceRequirementsSet");
    var de_InstanceTypeInfoList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_InstanceTypeInfo(entry, context);
      });
    }, "de_InstanceTypeInfoList");
    var de_InstanceTypeOffering = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iT] != null) {
        contents[_IT] = (0, import_smithy_client28.expectString)(output[_iT]);
      }
      if (output[_lTo] != null) {
        contents[_LT] = (0, import_smithy_client28.expectString)(output[_lTo]);
      }
      if (output[_lo] != null) {
        contents[_Lo] = (0, import_smithy_client28.expectString)(output[_lo]);
      }
      return contents;
    }, "de_InstanceTypeOffering");
    var de_InstanceTypeOfferingsList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_InstanceTypeOffering(entry, context);
      });
    }, "de_InstanceTypeOfferingsList");
    var de_InstanceTypesList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_InstanceTypesList");
    var de_InstanceUsage = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aIc] != null) {
        contents[_AIcc] = (0, import_smithy_client28.expectString)(output[_aIc]);
      }
      if (output[_uIC] != null) {
        contents[_UIC] = (0, import_smithy_client28.strictParseInt32)(output[_uIC]);
      }
      return contents;
    }, "de_InstanceUsage");
    var de_InstanceUsageSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_InstanceUsage(entry, context);
      });
    }, "de_InstanceUsageSet");
    var de_InternetGateway = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.attachmentSet === "") {
        contents[_Atta] = [];
      } else if (output[_aSt] != null && output[_aSt][_i] != null) {
        contents[_Atta] = de_InternetGatewayAttachmentList((0, import_smithy_client28.getArrayIfSingleItem)(output[_aSt][_i]), context);
      }
      if (output[_iGI] != null) {
        contents[_IGI] = (0, import_smithy_client28.expectString)(output[_iGI]);
      }
      if (output[_oI] != null) {
        contents[_OIwn] = (0, import_smithy_client28.expectString)(output[_oI]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      return contents;
    }, "de_InternetGateway");
    var de_InternetGatewayAttachment = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_vI] != null) {
        contents[_VI] = (0, import_smithy_client28.expectString)(output[_vI]);
      }
      return contents;
    }, "de_InternetGatewayAttachment");
    var de_InternetGatewayAttachmentList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_InternetGatewayAttachment(entry, context);
      });
    }, "de_InternetGatewayAttachmentList");
    var de_InternetGatewayList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_InternetGateway(entry, context);
      });
    }, "de_InternetGatewayList");
    var de_IpAddressList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_IpAddressList");
    var de_Ipam = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_oI] != null) {
        contents[_OIwn] = (0, import_smithy_client28.expectString)(output[_oI]);
      }
      if (output[_iIp] != null) {
        contents[_IIp] = (0, import_smithy_client28.expectString)(output[_iIp]);
      }
      if (output[_iApa] != null) {
        contents[_IApa] = (0, import_smithy_client28.expectString)(output[_iApa]);
      }
      if (output[_iRp] != null) {
        contents[_IRpa] = (0, import_smithy_client28.expectString)(output[_iRp]);
      }
      if (output[_pDSI] != null) {
        contents[_PDSI] = (0, import_smithy_client28.expectString)(output[_pDSI]);
      }
      if (output[_pDSIr] != null) {
        contents[_PDSIr] = (0, import_smithy_client28.expectString)(output[_pDSIr]);
      }
      if (output[_sCc] != null) {
        contents[_SCc] = (0, import_smithy_client28.strictParseInt32)(output[_sCc]);
      }
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      if (output.operatingRegionSet === "") {
        contents[_OR] = [];
      } else if (output[_oRS] != null && output[_oRS][_i] != null) {
        contents[_OR] = de_IpamOperatingRegionSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_oRS][_i]), context);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_dRDI] != null) {
        contents[_DRDI] = (0, import_smithy_client28.expectString)(output[_dRDI]);
      }
      if (output[_dRDAI] != null) {
        contents[_DRDAI] = (0, import_smithy_client28.expectString)(output[_dRDAI]);
      }
      if (output[_rDAC] != null) {
        contents[_RDAC] = (0, import_smithy_client28.strictParseInt32)(output[_rDAC]);
      }
      if (output[_sMta] != null) {
        contents[_SMta] = (0, import_smithy_client28.expectString)(output[_sMta]);
      }
      if (output[_tie] != null) {
        contents[_Ti] = (0, import_smithy_client28.expectString)(output[_tie]);
      }
      if (output[_ePG] != null) {
        contents[_EPG] = (0, import_smithy_client28.parseBoolean)(output[_ePG]);
      }
      if (output[_mAe] != null) {
        contents[_MAe] = (0, import_smithy_client28.expectString)(output[_mAe]);
      }
      return contents;
    }, "de_Ipam");
    var de_IpamAddressHistoryRecord = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_rOI] != null) {
        contents[_ROI] = (0, import_smithy_client28.expectString)(output[_rOI]);
      }
      if (output[_rR] != null) {
        contents[_RRe] = (0, import_smithy_client28.expectString)(output[_rR]);
      }
      if (output[_rTe] != null) {
        contents[_RT] = (0, import_smithy_client28.expectString)(output[_rTe]);
      }
      if (output[_rIes] != null) {
        contents[_RIeso] = (0, import_smithy_client28.expectString)(output[_rIes]);
      }
      if (output[_rCe] != null) {
        contents[_RC] = (0, import_smithy_client28.expectString)(output[_rCe]);
      }
      if (output[_rNes] != null) {
        contents[_RNes] = (0, import_smithy_client28.expectString)(output[_rNes]);
      }
      if (output[_rCS] != null) {
        contents[_RCS] = (0, import_smithy_client28.expectString)(output[_rCS]);
      }
      if (output[_rOSe] != null) {
        contents[_ROS] = (0, import_smithy_client28.expectString)(output[_rOSe]);
      }
      if (output[_vI] != null) {
        contents[_VI] = (0, import_smithy_client28.expectString)(output[_vI]);
      }
      if (output[_sST] != null) {
        contents[_SST] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_sST]));
      }
      if (output[_sET] != null) {
        contents[_SET] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_sET]));
      }
      return contents;
    }, "de_IpamAddressHistoryRecord");
    var de_IpamAddressHistoryRecordSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_IpamAddressHistoryRecord(entry, context);
      });
    }, "de_IpamAddressHistoryRecordSet");
    var de_IpamDiscoveredAccount = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aIc] != null) {
        contents[_AIcc] = (0, import_smithy_client28.expectString)(output[_aIc]);
      }
      if (output[_dR] != null) {
        contents[_DRi] = (0, import_smithy_client28.expectString)(output[_dR]);
      }
      if (output[_fR] != null) {
        contents[_FR] = de_IpamDiscoveryFailureReason(output[_fR], context);
      }
      if (output[_lADT] != null) {
        contents[_LADT] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_lADT]));
      }
      if (output[_lSDT] != null) {
        contents[_LSDT] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_lSDT]));
      }
      if (output[_oUI] != null) {
        contents[_OUI] = (0, import_smithy_client28.expectString)(output[_oUI]);
      }
      return contents;
    }, "de_IpamDiscoveredAccount");
    var de_IpamDiscoveredAccountSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_IpamDiscoveredAccount(entry, context);
      });
    }, "de_IpamDiscoveredAccountSet");
    var de_IpamDiscoveredPublicAddress = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iRDI] != null) {
        contents[_IRDI] = (0, import_smithy_client28.expectString)(output[_iRDI]);
      }
      if (output[_aRd] != null) {
        contents[_ARd] = (0, import_smithy_client28.expectString)(output[_aRd]);
      }
      if (output[_ad] != null) {
        contents[_Ad] = (0, import_smithy_client28.expectString)(output[_ad]);
      }
      if (output[_aOI] != null) {
        contents[_AOI] = (0, import_smithy_client28.expectString)(output[_aOI]);
      }
      if (output[_aAId] != null) {
        contents[_AAId] = (0, import_smithy_client28.expectString)(output[_aAId]);
      }
      if (output[_aSs] != null) {
        contents[_ASss] = (0, import_smithy_client28.expectString)(output[_aSs]);
      }
      if (output[_aTd] != null) {
        contents[_ATddre] = (0, import_smithy_client28.expectString)(output[_aTd]);
      }
      if (output[_se] != null) {
        contents[_Se] = (0, import_smithy_client28.expectString)(output[_se]);
      }
      if (output[_sRe] != null) {
        contents[_SRerv] = (0, import_smithy_client28.expectString)(output[_sRe]);
      }
      if (output[_vI] != null) {
        contents[_VI] = (0, import_smithy_client28.expectString)(output[_vI]);
      }
      if (output[_sIu] != null) {
        contents[_SIub] = (0, import_smithy_client28.expectString)(output[_sIu]);
      }
      if (output[_pIPI] != null) {
        contents[_PIPI] = (0, import_smithy_client28.expectString)(output[_pIPI]);
      }
      if (output[_nII] != null) {
        contents[_NII] = (0, import_smithy_client28.expectString)(output[_nII]);
      }
      if (output[_nID] != null) {
        contents[_NID] = (0, import_smithy_client28.expectString)(output[_nID]);
      }
      if (output[_iI] != null) {
        contents[_IIn] = (0, import_smithy_client28.expectString)(output[_iI]);
      }
      if (output[_ta] != null) {
        contents[_Ta] = de_IpamPublicAddressTags(output[_ta], context);
      }
      if (output[_nBG] != null) {
        contents[_NBG] = (0, import_smithy_client28.expectString)(output[_nBG]);
      }
      if (output.securityGroupSet === "") {
        contents[_SG] = [];
      } else if (output[_sGS] != null && output[_sGS][_i] != null) {
        contents[_SG] = de_IpamPublicAddressSecurityGroupList((0, import_smithy_client28.getArrayIfSingleItem)(output[_sGS][_i]), context);
      }
      if (output[_sTa] != null) {
        contents[_STam] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_sTa]));
      }
      return contents;
    }, "de_IpamDiscoveredPublicAddress");
    var de_IpamDiscoveredPublicAddressSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_IpamDiscoveredPublicAddress(entry, context);
      });
    }, "de_IpamDiscoveredPublicAddressSet");
    var de_IpamDiscoveredResourceCidr = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iRDI] != null) {
        contents[_IRDI] = (0, import_smithy_client28.expectString)(output[_iRDI]);
      }
      if (output[_rR] != null) {
        contents[_RRe] = (0, import_smithy_client28.expectString)(output[_rR]);
      }
      if (output[_rIes] != null) {
        contents[_RIeso] = (0, import_smithy_client28.expectString)(output[_rIes]);
      }
      if (output[_rOI] != null) {
        contents[_ROI] = (0, import_smithy_client28.expectString)(output[_rOI]);
      }
      if (output[_rCe] != null) {
        contents[_RC] = (0, import_smithy_client28.expectString)(output[_rCe]);
      }
      if (output[_iSpo] != null) {
        contents[_ISpo] = (0, import_smithy_client28.expectString)(output[_iSpo]);
      }
      if (output[_rTe] != null) {
        contents[_RT] = (0, import_smithy_client28.expectString)(output[_rTe]);
      }
      if (output.resourceTagSet === "") {
        contents[_RTesou] = [];
      } else if (output[_rTSes] != null && output[_rTSes][_i] != null) {
        contents[_RTesou] = de_IpamResourceTagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_rTSes][_i]), context);
      }
      if (output[_iU] != null) {
        contents[_IUp] = (0, import_smithy_client28.strictParseFloat)(output[_iU]);
      }
      if (output[_vI] != null) {
        contents[_VI] = (0, import_smithy_client28.expectString)(output[_vI]);
      }
      if (output[_sIu] != null) {
        contents[_SIub] = (0, import_smithy_client28.expectString)(output[_sIu]);
      }
      if (output[_nIASet] != null) {
        contents[_NIASet] = (0, import_smithy_client28.expectString)(output[_nIASet]);
      }
      if (output[_sTa] != null) {
        contents[_STam] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_sTa]));
      }
      if (output[_aZI] != null) {
        contents[_AZI] = (0, import_smithy_client28.expectString)(output[_aZI]);
      }
      return contents;
    }, "de_IpamDiscoveredResourceCidr");
    var de_IpamDiscoveredResourceCidrSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_IpamDiscoveredResourceCidr(entry, context);
      });
    }, "de_IpamDiscoveredResourceCidrSet");
    var de_IpamDiscoveryFailureReason = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_co] != null) {
        contents[_Cod] = (0, import_smithy_client28.expectString)(output[_co]);
      }
      if (output[_me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_me]);
      }
      return contents;
    }, "de_IpamDiscoveryFailureReason");
    var de_IpamExternalResourceVerificationToken = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iERVTI] != null) {
        contents[_IERVTI] = (0, import_smithy_client28.expectString)(output[_iERVTI]);
      }
      if (output[_iERVTA] != null) {
        contents[_IERVTA] = (0, import_smithy_client28.expectString)(output[_iERVTA]);
      }
      if (output[_iIp] != null) {
        contents[_IIp] = (0, import_smithy_client28.expectString)(output[_iIp]);
      }
      if (output[_iApa] != null) {
        contents[_IApa] = (0, import_smithy_client28.expectString)(output[_iApa]);
      }
      if (output[_iRp] != null) {
        contents[_IRpa] = (0, import_smithy_client28.expectString)(output[_iRp]);
      }
      if (output[_tV] != null) {
        contents[_TVo] = (0, import_smithy_client28.expectString)(output[_tV]);
      }
      if (output[_tN] != null) {
        contents[_TN] = (0, import_smithy_client28.expectString)(output[_tN]);
      }
      if (output[_nAo] != null) {
        contents[_NAo] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_nAo]));
      }
      if (output[_sta] != null) {
        contents[_Statu] = (0, import_smithy_client28.expectString)(output[_sta]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      return contents;
    }, "de_IpamExternalResourceVerificationToken");
    var de_IpamExternalResourceVerificationTokenSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_IpamExternalResourceVerificationToken(entry, context);
      });
    }, "de_IpamExternalResourceVerificationTokenSet");
    var de_IpamOperatingRegion = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_rNe] != null) {
        contents[_RN] = (0, import_smithy_client28.expectString)(output[_rNe]);
      }
      return contents;
    }, "de_IpamOperatingRegion");
    var de_IpamOperatingRegionSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_IpamOperatingRegion(entry, context);
      });
    }, "de_IpamOperatingRegionSet");
    var de_IpamOrganizationalUnitExclusion = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_oEP] != null) {
        contents[_OEP] = (0, import_smithy_client28.expectString)(output[_oEP]);
      }
      return contents;
    }, "de_IpamOrganizationalUnitExclusion");
    var de_IpamOrganizationalUnitExclusionSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_IpamOrganizationalUnitExclusion(entry, context);
      });
    }, "de_IpamOrganizationalUnitExclusionSet");
    var de_IpamPool = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_oI] != null) {
        contents[_OIwn] = (0, import_smithy_client28.expectString)(output[_oI]);
      }
      if (output[_iPIp] != null) {
        contents[_IPI] = (0, import_smithy_client28.expectString)(output[_iPIp]);
      }
      if (output[_sIPI] != null) {
        contents[_SIPI] = (0, import_smithy_client28.expectString)(output[_sIPI]);
      }
      if (output[_iPAp] != null) {
        contents[_IPApa] = (0, import_smithy_client28.expectString)(output[_iPAp]);
      }
      if (output[_iSA] != null) {
        contents[_ISA] = (0, import_smithy_client28.expectString)(output[_iSA]);
      }
      if (output[_iST] != null) {
        contents[_ISTp] = (0, import_smithy_client28.expectString)(output[_iST]);
      }
      if (output[_iApa] != null) {
        contents[_IApa] = (0, import_smithy_client28.expectString)(output[_iApa]);
      }
      if (output[_iRp] != null) {
        contents[_IRpa] = (0, import_smithy_client28.expectString)(output[_iRp]);
      }
      if (output[_loc] != null) {
        contents[_L] = (0, import_smithy_client28.expectString)(output[_loc]);
      }
      if (output[_pDoo] != null) {
        contents[_PDo] = (0, import_smithy_client28.strictParseInt32)(output[_pDoo]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_sMta] != null) {
        contents[_SMta] = (0, import_smithy_client28.expectString)(output[_sMta]);
      }
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      if (output[_aIu] != null) {
        contents[_AIu] = (0, import_smithy_client28.parseBoolean)(output[_aIu]);
      }
      if (output[_pAu] != null) {
        contents[_PA2] = (0, import_smithy_client28.parseBoolean)(output[_pAu]);
      }
      if (output[_aF] != null) {
        contents[_AF] = (0, import_smithy_client28.expectString)(output[_aF]);
      }
      if (output[_aMNL] != null) {
        contents[_AMNL] = (0, import_smithy_client28.strictParseInt32)(output[_aMNL]);
      }
      if (output[_aMNLl] != null) {
        contents[_AMNLl] = (0, import_smithy_client28.strictParseInt32)(output[_aMNLl]);
      }
      if (output[_aDNL] != null) {
        contents[_ADNL] = (0, import_smithy_client28.strictParseInt32)(output[_aDNL]);
      }
      if (output.allocationResourceTagSet === "") {
        contents[_ARTl] = [];
      } else if (output[_aRTS] != null && output[_aRTS][_i] != null) {
        contents[_ARTl] = de_IpamResourceTagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_aRTS][_i]), context);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_aSw] != null) {
        contents[_ASw] = (0, import_smithy_client28.expectString)(output[_aSw]);
      }
      if (output[_pIS] != null) {
        contents[_PIS] = (0, import_smithy_client28.expectString)(output[_pIS]);
      }
      if (output[_sRo] != null) {
        contents[_SRo] = de_IpamPoolSourceResource(output[_sRo], context);
      }
      return contents;
    }, "de_IpamPool");
    var de_IpamPoolAllocation = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ci] != null) {
        contents[_C2] = (0, import_smithy_client28.expectString)(output[_ci]);
      }
      if (output[_iPAI] != null) {
        contents[_IPAI] = (0, import_smithy_client28.expectString)(output[_iPAI]);
      }
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      if (output[_rIes] != null) {
        contents[_RIeso] = (0, import_smithy_client28.expectString)(output[_rIes]);
      }
      if (output[_rTe] != null) {
        contents[_RT] = (0, import_smithy_client28.expectString)(output[_rTe]);
      }
      if (output[_rR] != null) {
        contents[_RRe] = (0, import_smithy_client28.expectString)(output[_rR]);
      }
      if (output[_rO] != null) {
        contents[_ROe] = (0, import_smithy_client28.expectString)(output[_rO]);
      }
      return contents;
    }, "de_IpamPoolAllocation");
    var de_IpamPoolAllocationSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_IpamPoolAllocation(entry, context);
      });
    }, "de_IpamPoolAllocationSet");
    var de_IpamPoolCidr = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ci] != null) {
        contents[_C2] = (0, import_smithy_client28.expectString)(output[_ci]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_fR] != null) {
        contents[_FR] = de_IpamPoolCidrFailureReason(output[_fR], context);
      }
      if (output[_iPCI] != null) {
        contents[_IPCI] = (0, import_smithy_client28.expectString)(output[_iPCI]);
      }
      if (output[_nL] != null) {
        contents[_NL] = (0, import_smithy_client28.strictParseInt32)(output[_nL]);
      }
      return contents;
    }, "de_IpamPoolCidr");
    var de_IpamPoolCidrFailureReason = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_co] != null) {
        contents[_Cod] = (0, import_smithy_client28.expectString)(output[_co]);
      }
      if (output[_me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_me]);
      }
      return contents;
    }, "de_IpamPoolCidrFailureReason");
    var de_IpamPoolCidrSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_IpamPoolCidr(entry, context);
      });
    }, "de_IpamPoolCidrSet");
    var de_IpamPoolSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_IpamPool(entry, context);
      });
    }, "de_IpamPoolSet");
    var de_IpamPoolSourceResource = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_rIes] != null) {
        contents[_RIeso] = (0, import_smithy_client28.expectString)(output[_rIes]);
      }
      if (output[_rTe] != null) {
        contents[_RT] = (0, import_smithy_client28.expectString)(output[_rTe]);
      }
      if (output[_rR] != null) {
        contents[_RRe] = (0, import_smithy_client28.expectString)(output[_rR]);
      }
      if (output[_rO] != null) {
        contents[_ROe] = (0, import_smithy_client28.expectString)(output[_rO]);
      }
      return contents;
    }, "de_IpamPoolSourceResource");
    var de_IpamPublicAddressSecurityGroup = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_gN] != null) {
        contents[_GN] = (0, import_smithy_client28.expectString)(output[_gN]);
      }
      if (output[_gIr] != null) {
        contents[_GIr] = (0, import_smithy_client28.expectString)(output[_gIr]);
      }
      return contents;
    }, "de_IpamPublicAddressSecurityGroup");
    var de_IpamPublicAddressSecurityGroupList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_IpamPublicAddressSecurityGroup(entry, context);
      });
    }, "de_IpamPublicAddressSecurityGroupList");
    var de_IpamPublicAddressTag = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_k] != null) {
        contents[_Ke] = (0, import_smithy_client28.expectString)(output[_k]);
      }
      if (output[_v] != null) {
        contents[_Va2] = (0, import_smithy_client28.expectString)(output[_v]);
      }
      return contents;
    }, "de_IpamPublicAddressTag");
    var de_IpamPublicAddressTagList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_IpamPublicAddressTag(entry, context);
      });
    }, "de_IpamPublicAddressTagList");
    var de_IpamPublicAddressTags = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.eipTagSet === "") {
        contents[_ETi] = [];
      } else if (output[_eTSi] != null && output[_eTSi][_i] != null) {
        contents[_ETi] = de_IpamPublicAddressTagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_eTSi][_i]), context);
      }
      return contents;
    }, "de_IpamPublicAddressTags");
    var de_IpamResourceCidr = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iIp] != null) {
        contents[_IIp] = (0, import_smithy_client28.expectString)(output[_iIp]);
      }
      if (output[_iSIp] != null) {
        contents[_ISI] = (0, import_smithy_client28.expectString)(output[_iSIp]);
      }
      if (output[_iPIp] != null) {
        contents[_IPI] = (0, import_smithy_client28.expectString)(output[_iPIp]);
      }
      if (output[_rR] != null) {
        contents[_RRe] = (0, import_smithy_client28.expectString)(output[_rR]);
      }
      if (output[_rOI] != null) {
        contents[_ROI] = (0, import_smithy_client28.expectString)(output[_rOI]);
      }
      if (output[_rIes] != null) {
        contents[_RIeso] = (0, import_smithy_client28.expectString)(output[_rIes]);
      }
      if (output[_rNes] != null) {
        contents[_RNes] = (0, import_smithy_client28.expectString)(output[_rNes]);
      }
      if (output[_rCe] != null) {
        contents[_RC] = (0, import_smithy_client28.expectString)(output[_rCe]);
      }
      if (output[_rTe] != null) {
        contents[_RT] = (0, import_smithy_client28.expectString)(output[_rTe]);
      }
      if (output.resourceTagSet === "") {
        contents[_RTesou] = [];
      } else if (output[_rTSes] != null && output[_rTSes][_i] != null) {
        contents[_RTesou] = de_IpamResourceTagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_rTSes][_i]), context);
      }
      if (output[_iU] != null) {
        contents[_IUp] = (0, import_smithy_client28.strictParseFloat)(output[_iU]);
      }
      if (output[_cSo] != null) {
        contents[_CSo] = (0, import_smithy_client28.expectString)(output[_cSo]);
      }
      if (output[_mSa] != null) {
        contents[_MSa] = (0, import_smithy_client28.expectString)(output[_mSa]);
      }
      if (output[_oSv] != null) {
        contents[_OSv] = (0, import_smithy_client28.expectString)(output[_oSv]);
      }
      if (output[_vI] != null) {
        contents[_VI] = (0, import_smithy_client28.expectString)(output[_vI]);
      }
      if (output[_aZI] != null) {
        contents[_AZI] = (0, import_smithy_client28.expectString)(output[_aZI]);
      }
      return contents;
    }, "de_IpamResourceCidr");
    var de_IpamResourceCidrSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_IpamResourceCidr(entry, context);
      });
    }, "de_IpamResourceCidrSet");
    var de_IpamResourceDiscovery = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_oI] != null) {
        contents[_OIwn] = (0, import_smithy_client28.expectString)(output[_oI]);
      }
      if (output[_iRDI] != null) {
        contents[_IRDI] = (0, import_smithy_client28.expectString)(output[_iRDI]);
      }
      if (output[_iRDAp] != null) {
        contents[_IRDApa] = (0, import_smithy_client28.expectString)(output[_iRDAp]);
      }
      if (output[_iRDR] != null) {
        contents[_IRDR] = (0, import_smithy_client28.expectString)(output[_iRDR]);
      }
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      if (output.operatingRegionSet === "") {
        contents[_OR] = [];
      } else if (output[_oRS] != null && output[_oRS][_i] != null) {
        contents[_OR] = de_IpamOperatingRegionSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_oRS][_i]), context);
      }
      if (output[_iDs] != null) {
        contents[_IDs] = (0, import_smithy_client28.parseBoolean)(output[_iDs]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output.organizationalUnitExclusionSet === "") {
        contents[_OUE] = [];
      } else if (output[_oUES] != null && output[_oUES][_i] != null) {
        contents[_OUE] = de_IpamOrganizationalUnitExclusionSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_oUES][_i]), context);
      }
      return contents;
    }, "de_IpamResourceDiscovery");
    var de_IpamResourceDiscoveryAssociation = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_oI] != null) {
        contents[_OIwn] = (0, import_smithy_client28.expectString)(output[_oI]);
      }
      if (output[_iRDAI] != null) {
        contents[_IRDAIp] = (0, import_smithy_client28.expectString)(output[_iRDAI]);
      }
      if (output[_iRDAA] != null) {
        contents[_IRDAA] = (0, import_smithy_client28.expectString)(output[_iRDAA]);
      }
      if (output[_iRDI] != null) {
        contents[_IRDI] = (0, import_smithy_client28.expectString)(output[_iRDI]);
      }
      if (output[_iIp] != null) {
        contents[_IIp] = (0, import_smithy_client28.expectString)(output[_iIp]);
      }
      if (output[_iApa] != null) {
        contents[_IApa] = (0, import_smithy_client28.expectString)(output[_iApa]);
      }
      if (output[_iRp] != null) {
        contents[_IRpa] = (0, import_smithy_client28.expectString)(output[_iRp]);
      }
      if (output[_iDs] != null) {
        contents[_IDs] = (0, import_smithy_client28.parseBoolean)(output[_iDs]);
      }
      if (output[_rDS] != null) {
        contents[_RDS] = (0, import_smithy_client28.expectString)(output[_rDS]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      return contents;
    }, "de_IpamResourceDiscoveryAssociation");
    var de_IpamResourceDiscoveryAssociationSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_IpamResourceDiscoveryAssociation(entry, context);
      });
    }, "de_IpamResourceDiscoveryAssociationSet");
    var de_IpamResourceDiscoverySet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_IpamResourceDiscovery(entry, context);
      });
    }, "de_IpamResourceDiscoverySet");
    var de_IpamResourceTag = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_k] != null) {
        contents[_Ke] = (0, import_smithy_client28.expectString)(output[_k]);
      }
      if (output[_v] != null) {
        contents[_Va2] = (0, import_smithy_client28.expectString)(output[_v]);
      }
      return contents;
    }, "de_IpamResourceTag");
    var de_IpamResourceTagList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_IpamResourceTag(entry, context);
      });
    }, "de_IpamResourceTagList");
    var de_IpamScope = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_oI] != null) {
        contents[_OIwn] = (0, import_smithy_client28.expectString)(output[_oI]);
      }
      if (output[_iSIp] != null) {
        contents[_ISI] = (0, import_smithy_client28.expectString)(output[_iSIp]);
      }
      if (output[_iSA] != null) {
        contents[_ISA] = (0, import_smithy_client28.expectString)(output[_iSA]);
      }
      if (output[_iApa] != null) {
        contents[_IApa] = (0, import_smithy_client28.expectString)(output[_iApa]);
      }
      if (output[_iRp] != null) {
        contents[_IRpa] = (0, import_smithy_client28.expectString)(output[_iRp]);
      }
      if (output[_iST] != null) {
        contents[_ISTp] = (0, import_smithy_client28.expectString)(output[_iST]);
      }
      if (output[_iDs] != null) {
        contents[_IDs] = (0, import_smithy_client28.parseBoolean)(output[_iDs]);
      }
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      if (output[_pCo] != null) {
        contents[_PCoo] = (0, import_smithy_client28.strictParseInt32)(output[_pCo]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      return contents;
    }, "de_IpamScope");
    var de_IpamScopeSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_IpamScope(entry, context);
      });
    }, "de_IpamScopeSet");
    var de_IpamSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Ipam(entry, context);
      });
    }, "de_IpamSet");
    var de_IpPermission = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iPpr] != null) {
        contents[_IPpr] = (0, import_smithy_client28.expectString)(output[_iPpr]);
      }
      if (output[_fP] != null) {
        contents[_FP] = (0, import_smithy_client28.strictParseInt32)(output[_fP]);
      }
      if (output[_tPo] != null) {
        contents[_TP] = (0, import_smithy_client28.strictParseInt32)(output[_tPo]);
      }
      if (output.groups === "") {
        contents[_UIGP] = [];
      } else if (output[_gr] != null && output[_gr][_i] != null) {
        contents[_UIGP] = de_UserIdGroupPairList((0, import_smithy_client28.getArrayIfSingleItem)(output[_gr][_i]), context);
      }
      if (output.ipRanges === "") {
        contents[_IRp] = [];
      } else if (output[_iRpa] != null && output[_iRpa][_i] != null) {
        contents[_IRp] = de_IpRangeList((0, import_smithy_client28.getArrayIfSingleItem)(output[_iRpa][_i]), context);
      }
      if (output.ipv6Ranges === "") {
        contents[_IRpv] = [];
      } else if (output[_iRpv] != null && output[_iRpv][_i] != null) {
        contents[_IRpv] = de_Ipv6RangeList((0, import_smithy_client28.getArrayIfSingleItem)(output[_iRpv][_i]), context);
      }
      if (output.prefixListIds === "") {
        contents[_PLIr] = [];
      } else if (output[_pLIr] != null && output[_pLIr][_i] != null) {
        contents[_PLIr] = de_PrefixListIdList((0, import_smithy_client28.getArrayIfSingleItem)(output[_pLIr][_i]), context);
      }
      return contents;
    }, "de_IpPermission");
    var de_IpPermissionList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_IpPermission(entry, context);
      });
    }, "de_IpPermissionList");
    var de_IpPrefixList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_IpPrefixList");
    var de_IpRange = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      if (output[_cIi] != null) {
        contents[_CIi] = (0, import_smithy_client28.expectString)(output[_cIi]);
      }
      return contents;
    }, "de_IpRange");
    var de_IpRangeList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_IpRange(entry, context);
      });
    }, "de_IpRangeList");
    var de_IpRanges = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_IpRanges");
    var de_Ipv4PrefixesList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Ipv4PrefixSpecification(entry, context);
      });
    }, "de_Ipv4PrefixesList");
    var de_Ipv4PrefixList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Ipv4PrefixSpecificationRequest(entry, context);
      });
    }, "de_Ipv4PrefixList");
    var de_Ipv4PrefixListResponse = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Ipv4PrefixSpecificationResponse(entry, context);
      });
    }, "de_Ipv4PrefixListResponse");
    var de_Ipv4PrefixSpecification = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iPpv] != null) {
        contents[_IPpvr] = (0, import_smithy_client28.expectString)(output[_iPpv]);
      }
      return contents;
    }, "de_Ipv4PrefixSpecification");
    var de_Ipv4PrefixSpecificationRequest = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_IPpvr] != null) {
        contents[_IPpvr] = (0, import_smithy_client28.expectString)(output[_IPpvr]);
      }
      return contents;
    }, "de_Ipv4PrefixSpecificationRequest");
    var de_Ipv4PrefixSpecificationResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iPpv] != null) {
        contents[_IPpvr] = (0, import_smithy_client28.expectString)(output[_iPpv]);
      }
      return contents;
    }, "de_Ipv4PrefixSpecificationResponse");
    var de_Ipv6AddressList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_Ipv6AddressList");
    var de_Ipv6CidrAssociation = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iCp] != null) {
        contents[_ICp] = (0, import_smithy_client28.expectString)(output[_iCp]);
      }
      if (output[_aRs] != null) {
        contents[_ARs] = (0, import_smithy_client28.expectString)(output[_aRs]);
      }
      return contents;
    }, "de_Ipv6CidrAssociation");
    var de_Ipv6CidrAssociationSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Ipv6CidrAssociation(entry, context);
      });
    }, "de_Ipv6CidrAssociationSet");
    var de_Ipv6CidrBlock = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iCB] != null) {
        contents[_ICB] = (0, import_smithy_client28.expectString)(output[_iCB]);
      }
      return contents;
    }, "de_Ipv6CidrBlock");
    var de_Ipv6CidrBlockSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Ipv6CidrBlock(entry, context);
      });
    }, "de_Ipv6CidrBlockSet");
    var de_Ipv6Pool = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_pIo] != null) {
        contents[_PIo] = (0, import_smithy_client28.expectString)(output[_pIo]);
      }
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      if (output.poolCidrBlockSet === "") {
        contents[_PCBo] = [];
      } else if (output[_pCBS] != null && output[_pCBS][_i] != null) {
        contents[_PCBo] = de_PoolCidrBlocksSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_pCBS][_i]), context);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      return contents;
    }, "de_Ipv6Pool");
    var de_Ipv6PoolSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Ipv6Pool(entry, context);
      });
    }, "de_Ipv6PoolSet");
    var de_Ipv6PrefixesList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Ipv6PrefixSpecification(entry, context);
      });
    }, "de_Ipv6PrefixesList");
    var de_Ipv6PrefixList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Ipv6PrefixSpecificationRequest(entry, context);
      });
    }, "de_Ipv6PrefixList");
    var de_Ipv6PrefixListResponse = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Ipv6PrefixSpecificationResponse(entry, context);
      });
    }, "de_Ipv6PrefixListResponse");
    var de_Ipv6PrefixSpecification = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iPpvr] != null) {
        contents[_IPpvre] = (0, import_smithy_client28.expectString)(output[_iPpvr]);
      }
      return contents;
    }, "de_Ipv6PrefixSpecification");
    var de_Ipv6PrefixSpecificationRequest = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_IPpvre] != null) {
        contents[_IPpvre] = (0, import_smithy_client28.expectString)(output[_IPpvre]);
      }
      return contents;
    }, "de_Ipv6PrefixSpecificationRequest");
    var de_Ipv6PrefixSpecificationResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iPpvr] != null) {
        contents[_IPpvre] = (0, import_smithy_client28.expectString)(output[_iPpvr]);
      }
      return contents;
    }, "de_Ipv6PrefixSpecificationResponse");
    var de_Ipv6Range = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      if (output[_cIid] != null) {
        contents[_CIid] = (0, import_smithy_client28.expectString)(output[_cIid]);
      }
      return contents;
    }, "de_Ipv6Range");
    var de_Ipv6RangeList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Ipv6Range(entry, context);
      });
    }, "de_Ipv6RangeList");
    var de_KeyPair = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_kPI] != null) {
        contents[_KPI] = (0, import_smithy_client28.expectString)(output[_kPI]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_kN] != null) {
        contents[_KN] = (0, import_smithy_client28.expectString)(output[_kN]);
      }
      if (output[_kFe] != null) {
        contents[_KFe] = (0, import_smithy_client28.expectString)(output[_kFe]);
      }
      if (output[_kM] != null) {
        contents[_KM] = (0, import_smithy_client28.expectString)(output[_kM]);
      }
      return contents;
    }, "de_KeyPair");
    var de_KeyPairInfo = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_kPI] != null) {
        contents[_KPI] = (0, import_smithy_client28.expectString)(output[_kPI]);
      }
      if (output[_kT] != null) {
        contents[_KT] = (0, import_smithy_client28.expectString)(output[_kT]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_pK] != null) {
        contents[_PK] = (0, import_smithy_client28.expectString)(output[_pK]);
      }
      if (output[_cTr] != null) {
        contents[_CTr] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_cTr]));
      }
      if (output[_kN] != null) {
        contents[_KN] = (0, import_smithy_client28.expectString)(output[_kN]);
      }
      if (output[_kFe] != null) {
        contents[_KFe] = (0, import_smithy_client28.expectString)(output[_kFe]);
      }
      return contents;
    }, "de_KeyPairInfo");
    var de_KeyPairList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_KeyPairInfo(entry, context);
      });
    }, "de_KeyPairList");
    var de_LastError = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_me]);
      }
      if (output[_co] != null) {
        contents[_Cod] = (0, import_smithy_client28.expectString)(output[_co]);
      }
      return contents;
    }, "de_LastError");
    var de_LaunchPermission = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_oAr] != null) {
        contents[_OAr] = (0, import_smithy_client28.expectString)(output[_oAr]);
      }
      if (output[_oUA] != null) {
        contents[_OUA] = (0, import_smithy_client28.expectString)(output[_oUA]);
      }
      if (output[_uI] != null) {
        contents[_UIs] = (0, import_smithy_client28.expectString)(output[_uI]);
      }
      if (output[_g] != null) {
        contents[_Gr] = (0, import_smithy_client28.expectString)(output[_g]);
      }
      return contents;
    }, "de_LaunchPermission");
    var de_LaunchPermissionList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_LaunchPermission(entry, context);
      });
    }, "de_LaunchPermissionList");
    var de_LaunchSpecification = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_uDs] != null) {
        contents[_UD] = (0, import_smithy_client28.expectString)(output[_uDs]);
      }
      if (output[_aTdd] != null) {
        contents[_ATd] = (0, import_smithy_client28.expectString)(output[_aTdd]);
      }
      if (output.blockDeviceMapping === "") {
        contents[_BDM] = [];
      } else if (output[_bDM] != null && output[_bDM][_i] != null) {
        contents[_BDM] = de_BlockDeviceMappingList((0, import_smithy_client28.getArrayIfSingleItem)(output[_bDM][_i]), context);
      }
      if (output[_eO] != null) {
        contents[_EO] = (0, import_smithy_client28.parseBoolean)(output[_eO]);
      }
      if (output[_iIP] != null) {
        contents[_IIP] = de_IamInstanceProfileSpecification(output[_iIP], context);
      }
      if (output[_iIma] != null) {
        contents[_IIma] = (0, import_smithy_client28.expectString)(output[_iIma]);
      }
      if (output[_iT] != null) {
        contents[_IT] = (0, import_smithy_client28.expectString)(output[_iT]);
      }
      if (output[_kI] != null) {
        contents[_KI] = (0, import_smithy_client28.expectString)(output[_kI]);
      }
      if (output[_kN] != null) {
        contents[_KN] = (0, import_smithy_client28.expectString)(output[_kN]);
      }
      if (output.networkInterfaceSet === "") {
        contents[_NI] = [];
      } else if (output[_nIS] != null && output[_nIS][_i] != null) {
        contents[_NI] = de_InstanceNetworkInterfaceSpecificationList((0, import_smithy_client28.getArrayIfSingleItem)(output[_nIS][_i]), context);
      }
      if (output[_pla] != null) {
        contents[_Pl] = de_SpotPlacement(output[_pla], context);
      }
      if (output[_rIa] != null) {
        contents[_RIa] = (0, import_smithy_client28.expectString)(output[_rIa]);
      }
      if (output[_sIu] != null) {
        contents[_SIub] = (0, import_smithy_client28.expectString)(output[_sIu]);
      }
      if (output.groupSet === "") {
        contents[_SG] = [];
      } else if (output[_gS] != null && output[_gS][_i] != null) {
        contents[_SG] = de_GroupIdentifierList((0, import_smithy_client28.getArrayIfSingleItem)(output[_gS][_i]), context);
      }
      if (output[_mo] != null) {
        contents[_Mon] = de_RunInstancesMonitoringEnabled(output[_mo], context);
      }
      return contents;
    }, "de_LaunchSpecification");
    var de_LaunchSpecsList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_SpotFleetLaunchSpecification(entry, context);
      });
    }, "de_LaunchSpecsList");
    var de_LaunchTemplate = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_lTI] != null) {
        contents[_LTI] = (0, import_smithy_client28.expectString)(output[_lTI]);
      }
      if (output[_lTN] != null) {
        contents[_LTN] = (0, import_smithy_client28.expectString)(output[_lTN]);
      }
      if (output[_cTr] != null) {
        contents[_CTr] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_cTr]));
      }
      if (output[_cBr] != null) {
        contents[_CBr] = (0, import_smithy_client28.expectString)(output[_cBr]);
      }
      if (output[_dVN] != null) {
        contents[_DVN] = (0, import_smithy_client28.strictParseLong)(output[_dVN]);
      }
      if (output[_lVN] != null) {
        contents[_LVN] = (0, import_smithy_client28.strictParseLong)(output[_lVN]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_op] != null) {
        contents[_O] = de_OperatorResponse(output[_op], context);
      }
      return contents;
    }, "de_LaunchTemplate");
    var de_LaunchTemplateAndOverridesResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_lTS] != null) {
        contents[_LTS] = de_FleetLaunchTemplateSpecification(output[_lTS], context);
      }
      if (output[_ov] != null) {
        contents[_Ov] = de_FleetLaunchTemplateOverrides(output[_ov], context);
      }
      return contents;
    }, "de_LaunchTemplateAndOverridesResponse");
    var de_LaunchTemplateBlockDeviceMapping = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_dN] != null) {
        contents[_DN] = (0, import_smithy_client28.expectString)(output[_dN]);
      }
      if (output[_vN] != null) {
        contents[_VN] = (0, import_smithy_client28.expectString)(output[_vN]);
      }
      if (output[_eb] != null) {
        contents[_E2] = de_LaunchTemplateEbsBlockDevice(output[_eb], context);
      }
      if (output[_nD] != null) {
        contents[_ND] = (0, import_smithy_client28.expectString)(output[_nD]);
      }
      return contents;
    }, "de_LaunchTemplateBlockDeviceMapping");
    var de_LaunchTemplateBlockDeviceMappingList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_LaunchTemplateBlockDeviceMapping(entry, context);
      });
    }, "de_LaunchTemplateBlockDeviceMappingList");
    var de_LaunchTemplateCapacityReservationSpecificationResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cRP] != null) {
        contents[_CRP] = (0, import_smithy_client28.expectString)(output[_cRP]);
      }
      if (output[_cRT] != null) {
        contents[_CRTa] = de_CapacityReservationTargetResponse(output[_cRT], context);
      }
      return contents;
    }, "de_LaunchTemplateCapacityReservationSpecificationResponse");
    var de_LaunchTemplateConfig = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_lTS] != null) {
        contents[_LTS] = de_FleetLaunchTemplateSpecification(output[_lTS], context);
      }
      if (output.overrides === "") {
        contents[_Ov] = [];
      } else if (output[_ov] != null && output[_ov][_i] != null) {
        contents[_Ov] = de_LaunchTemplateOverridesList((0, import_smithy_client28.getArrayIfSingleItem)(output[_ov][_i]), context);
      }
      return contents;
    }, "de_LaunchTemplateConfig");
    var de_LaunchTemplateConfigList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_LaunchTemplateConfig(entry, context);
      });
    }, "de_LaunchTemplateConfigList");
    var de_LaunchTemplateCpuOptions = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cCo] != null) {
        contents[_CC] = (0, import_smithy_client28.strictParseInt32)(output[_cCo]);
      }
      if (output[_tPC] != null) {
        contents[_TPC] = (0, import_smithy_client28.strictParseInt32)(output[_tPC]);
      }
      if (output[_aSS] != null) {
        contents[_ASS] = (0, import_smithy_client28.expectString)(output[_aSS]);
      }
      return contents;
    }, "de_LaunchTemplateCpuOptions");
    var de_LaunchTemplateEbsBlockDevice = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_enc] != null) {
        contents[_Enc] = (0, import_smithy_client28.parseBoolean)(output[_enc]);
      }
      if (output[_dOT] != null) {
        contents[_DOT] = (0, import_smithy_client28.parseBoolean)(output[_dOT]);
      }
      if (output[_io] != null) {
        contents[_Io] = (0, import_smithy_client28.strictParseInt32)(output[_io]);
      }
      if (output[_kKI] != null) {
        contents[_KKI] = (0, import_smithy_client28.expectString)(output[_kKI]);
      }
      if (output[_sIn] != null) {
        contents[_SIn] = (0, import_smithy_client28.expectString)(output[_sIn]);
      }
      if (output[_vSo] != null) {
        contents[_VS] = (0, import_smithy_client28.strictParseInt32)(output[_vSo]);
      }
      if (output[_vT] != null) {
        contents[_VT] = (0, import_smithy_client28.expectString)(output[_vT]);
      }
      if (output[_th] != null) {
        contents[_Th] = (0, import_smithy_client28.strictParseInt32)(output[_th]);
      }
      if (output[_vIR] != null) {
        contents[_VIR] = (0, import_smithy_client28.strictParseInt32)(output[_vIR]);
      }
      return contents;
    }, "de_LaunchTemplateEbsBlockDevice");
    var de_LaunchTemplateElasticInferenceAcceleratorResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ty] != null) {
        contents[_T2] = (0, import_smithy_client28.expectString)(output[_ty]);
      }
      if (output[_cou] != null) {
        contents[_Cou] = (0, import_smithy_client28.strictParseInt32)(output[_cou]);
      }
      return contents;
    }, "de_LaunchTemplateElasticInferenceAcceleratorResponse");
    var de_LaunchTemplateElasticInferenceAcceleratorResponseList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_LaunchTemplateElasticInferenceAcceleratorResponse(entry, context);
      });
    }, "de_LaunchTemplateElasticInferenceAcceleratorResponseList");
    var de_LaunchTemplateEnaSrdSpecification = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_eSE] != null) {
        contents[_ESE] = (0, import_smithy_client28.parseBoolean)(output[_eSE]);
      }
      if (output[_eSUS] != null) {
        contents[_ESUS] = de_LaunchTemplateEnaSrdUdpSpecification(output[_eSUS], context);
      }
      return contents;
    }, "de_LaunchTemplateEnaSrdSpecification");
    var de_LaunchTemplateEnaSrdUdpSpecification = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_eSUE] != null) {
        contents[_ESUE] = (0, import_smithy_client28.parseBoolean)(output[_eSUE]);
      }
      return contents;
    }, "de_LaunchTemplateEnaSrdUdpSpecification");
    var de_LaunchTemplateEnclaveOptions = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_en] != null) {
        contents[_En] = (0, import_smithy_client28.parseBoolean)(output[_en]);
      }
      return contents;
    }, "de_LaunchTemplateEnclaveOptions");
    var de_LaunchTemplateHibernationOptions = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_conf] != null) {
        contents[_Conf] = (0, import_smithy_client28.parseBoolean)(output[_conf]);
      }
      return contents;
    }, "de_LaunchTemplateHibernationOptions");
    var de_LaunchTemplateIamInstanceProfileSpecification = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ar] != null) {
        contents[_Ar2] = (0, import_smithy_client28.expectString)(output[_ar]);
      }
      if (output[_n] != null) {
        contents[_N] = (0, import_smithy_client28.expectString)(output[_n]);
      }
      return contents;
    }, "de_LaunchTemplateIamInstanceProfileSpecification");
    var de_LaunchTemplateInstanceMaintenanceOptions = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aRu] != null) {
        contents[_ARu] = (0, import_smithy_client28.expectString)(output[_aRu]);
      }
      return contents;
    }, "de_LaunchTemplateInstanceMaintenanceOptions");
    var de_LaunchTemplateInstanceMarketOptions = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_mT] != null) {
        contents[_MT] = (0, import_smithy_client28.expectString)(output[_mT]);
      }
      if (output[_sO] != null) {
        contents[_SO] = de_LaunchTemplateSpotMarketOptions(output[_sO], context);
      }
      return contents;
    }, "de_LaunchTemplateInstanceMarketOptions");
    var de_LaunchTemplateInstanceMetadataOptions = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_hT] != null) {
        contents[_HT] = (0, import_smithy_client28.expectString)(output[_hT]);
      }
      if (output[_hPRHL] != null) {
        contents[_HPRHL] = (0, import_smithy_client28.strictParseInt32)(output[_hPRHL]);
      }
      if (output[_hE] != null) {
        contents[_HE] = (0, import_smithy_client28.expectString)(output[_hE]);
      }
      if (output[_hPI] != null) {
        contents[_HPI] = (0, import_smithy_client28.expectString)(output[_hPI]);
      }
      if (output[_iMT] != null) {
        contents[_IMT] = (0, import_smithy_client28.expectString)(output[_iMT]);
      }
      return contents;
    }, "de_LaunchTemplateInstanceMetadataOptions");
    var de_LaunchTemplateInstanceNetworkInterfaceSpecification = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aCIA] != null) {
        contents[_ACIA] = (0, import_smithy_client28.parseBoolean)(output[_aCIA]);
      }
      if (output[_aPIA] != null) {
        contents[_APIAs] = (0, import_smithy_client28.parseBoolean)(output[_aPIA]);
      }
      if (output[_dOT] != null) {
        contents[_DOT] = (0, import_smithy_client28.parseBoolean)(output[_dOT]);
      }
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      if (output[_dIe] != null) {
        contents[_DIev] = (0, import_smithy_client28.strictParseInt32)(output[_dIe]);
      }
      if (output.groupSet === "") {
        contents[_G] = [];
      } else if (output[_gS] != null && output[_gS][_gIr] != null) {
        contents[_G] = de_GroupIdStringList((0, import_smithy_client28.getArrayIfSingleItem)(output[_gS][_gIr]), context);
      }
      if (output[_iTnt] != null) {
        contents[_ITn] = (0, import_smithy_client28.expectString)(output[_iTnt]);
      }
      if (output[_iAC] != null) {
        contents[_IAC] = (0, import_smithy_client28.strictParseInt32)(output[_iAC]);
      }
      if (output.ipv6AddressesSet === "") {
        contents[_IA] = [];
      } else if (output[_iASp] != null && output[_iASp][_i] != null) {
        contents[_IA] = de_InstanceIpv6AddressList((0, import_smithy_client28.getArrayIfSingleItem)(output[_iASp][_i]), context);
      }
      if (output[_nII] != null) {
        contents[_NII] = (0, import_smithy_client28.expectString)(output[_nII]);
      }
      if (output[_pIAr] != null) {
        contents[_PIAr] = (0, import_smithy_client28.expectString)(output[_pIAr]);
      }
      if (output.privateIpAddressesSet === "") {
        contents[_PIA] = [];
      } else if (output[_pIAS] != null && output[_pIAS][_i] != null) {
        contents[_PIA] = de_PrivateIpAddressSpecificationList((0, import_smithy_client28.getArrayIfSingleItem)(output[_pIAS][_i]), context);
      }
      if (output[_sPIAC] != null) {
        contents[_SPIAC] = (0, import_smithy_client28.strictParseInt32)(output[_sPIAC]);
      }
      if (output[_sIu] != null) {
        contents[_SIub] = (0, import_smithy_client28.expectString)(output[_sIu]);
      }
      if (output[_nCI] != null) {
        contents[_NCI] = (0, import_smithy_client28.strictParseInt32)(output[_nCI]);
      }
      if (output.ipv4PrefixSet === "") {
        contents[_IPp] = [];
      } else if (output[_iPSpv] != null && output[_iPSpv][_i] != null) {
        contents[_IPp] = de_Ipv4PrefixListResponse((0, import_smithy_client28.getArrayIfSingleItem)(output[_iPSpv][_i]), context);
      }
      if (output[_iPCp] != null) {
        contents[_IPCp] = (0, import_smithy_client28.strictParseInt32)(output[_iPCp]);
      }
      if (output.ipv6PrefixSet === "") {
        contents[_IP] = [];
      } else if (output[_iPSpvr] != null && output[_iPSpvr][_i] != null) {
        contents[_IP] = de_Ipv6PrefixListResponse((0, import_smithy_client28.getArrayIfSingleItem)(output[_iPSpvr][_i]), context);
      }
      if (output[_iPCpv] != null) {
        contents[_IPC] = (0, import_smithy_client28.strictParseInt32)(output[_iPCpv]);
      }
      if (output[_pIri] != null) {
        contents[_PIr] = (0, import_smithy_client28.parseBoolean)(output[_pIri]);
      }
      if (output[_eSS] != null) {
        contents[_ESS] = de_LaunchTemplateEnaSrdSpecification(output[_eSS], context);
      }
      if (output[_cTS] != null) {
        contents[_CTS] = de_ConnectionTrackingSpecification(output[_cTS], context);
      }
      if (output[_eQC] != null) {
        contents[_EQC] = (0, import_smithy_client28.strictParseInt32)(output[_eQC]);
      }
      return contents;
    }, "de_LaunchTemplateInstanceNetworkInterfaceSpecification");
    var de_LaunchTemplateInstanceNetworkInterfaceSpecificationList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_LaunchTemplateInstanceNetworkInterfaceSpecification(entry, context);
      });
    }, "de_LaunchTemplateInstanceNetworkInterfaceSpecificationList");
    var de_LaunchTemplateLicenseConfiguration = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_lCA] != null) {
        contents[_LCA] = (0, import_smithy_client28.expectString)(output[_lCA]);
      }
      return contents;
    }, "de_LaunchTemplateLicenseConfiguration");
    var de_LaunchTemplateLicenseList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_LaunchTemplateLicenseConfiguration(entry, context);
      });
    }, "de_LaunchTemplateLicenseList");
    var de_LaunchTemplateNetworkPerformanceOptions = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_bW] != null) {
        contents[_BW] = (0, import_smithy_client28.expectString)(output[_bW]);
      }
      return contents;
    }, "de_LaunchTemplateNetworkPerformanceOptions");
    var de_LaunchTemplateOverrides = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iT] != null) {
        contents[_IT] = (0, import_smithy_client28.expectString)(output[_iT]);
      }
      if (output[_sPp] != null) {
        contents[_SPp] = (0, import_smithy_client28.expectString)(output[_sPp]);
      }
      if (output[_sIu] != null) {
        contents[_SIub] = (0, import_smithy_client28.expectString)(output[_sIu]);
      }
      if (output[_aZ] != null) {
        contents[_AZ] = (0, import_smithy_client28.expectString)(output[_aZ]);
      }
      if (output[_wC] != null) {
        contents[_WCe] = (0, import_smithy_client28.strictParseFloat)(output[_wC]);
      }
      if (output[_pri] != null) {
        contents[_Pri] = (0, import_smithy_client28.strictParseFloat)(output[_pri]);
      }
      if (output[_iR] != null) {
        contents[_IR] = de_InstanceRequirements(output[_iR], context);
      }
      return contents;
    }, "de_LaunchTemplateOverrides");
    var de_LaunchTemplateOverridesList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_LaunchTemplateOverrides(entry, context);
      });
    }, "de_LaunchTemplateOverridesList");
    var de_LaunchTemplatePlacement = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aZ] != null) {
        contents[_AZ] = (0, import_smithy_client28.expectString)(output[_aZ]);
      }
      if (output[_aZI] != null) {
        contents[_AZI] = (0, import_smithy_client28.expectString)(output[_aZI]);
      }
      if (output[_af] != null) {
        contents[_Af] = (0, import_smithy_client28.expectString)(output[_af]);
      }
      if (output[_gN] != null) {
        contents[_GN] = (0, import_smithy_client28.expectString)(output[_gN]);
      }
      if (output[_hI] != null) {
        contents[_HIo] = (0, import_smithy_client28.expectString)(output[_hI]);
      }
      if (output[_t] != null) {
        contents[_Te] = (0, import_smithy_client28.expectString)(output[_t]);
      }
      if (output[_sDp] != null) {
        contents[_SDp] = (0, import_smithy_client28.expectString)(output[_sDp]);
      }
      if (output[_hRGA] != null) {
        contents[_HRGA] = (0, import_smithy_client28.expectString)(output[_hRGA]);
      }
      if (output[_pN] != null) {
        contents[_PN] = (0, import_smithy_client28.strictParseInt32)(output[_pN]);
      }
      if (output[_gIr] != null) {
        contents[_GIr] = (0, import_smithy_client28.expectString)(output[_gIr]);
      }
      return contents;
    }, "de_LaunchTemplatePlacement");
    var de_LaunchTemplatePrivateDnsNameOptions = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_hTo] != null) {
        contents[_HTo] = (0, import_smithy_client28.expectString)(output[_hTo]);
      }
      if (output[_eRNDAR] != null) {
        contents[_ERNDAR] = (0, import_smithy_client28.parseBoolean)(output[_eRNDAR]);
      }
      if (output[_eRNDAAAAR] != null) {
        contents[_ERNDAAAAR] = (0, import_smithy_client28.parseBoolean)(output[_eRNDAAAAR]);
      }
      return contents;
    }, "de_LaunchTemplatePrivateDnsNameOptions");
    var de_LaunchTemplateSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_LaunchTemplate(entry, context);
      });
    }, "de_LaunchTemplateSet");
    var de_LaunchTemplatesMonitoring = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_en] != null) {
        contents[_En] = (0, import_smithy_client28.parseBoolean)(output[_en]);
      }
      return contents;
    }, "de_LaunchTemplatesMonitoring");
    var de_LaunchTemplateSpotMarketOptions = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_mP] != null) {
        contents[_MPa] = (0, import_smithy_client28.expectString)(output[_mP]);
      }
      if (output[_sIT] != null) {
        contents[_SIT] = (0, import_smithy_client28.expectString)(output[_sIT]);
      }
      if (output[_bDMl] != null) {
        contents[_BDMl] = (0, import_smithy_client28.strictParseInt32)(output[_bDMl]);
      }
      if (output[_vU] != null) {
        contents[_VU] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_vU]));
      }
      if (output[_iIB] != null) {
        contents[_IIB] = (0, import_smithy_client28.expectString)(output[_iIB]);
      }
      return contents;
    }, "de_LaunchTemplateSpotMarketOptions");
    var de_LaunchTemplateTagSpecification = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_rTe] != null) {
        contents[_RT] = (0, import_smithy_client28.expectString)(output[_rTe]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      return contents;
    }, "de_LaunchTemplateTagSpecification");
    var de_LaunchTemplateTagSpecificationList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_LaunchTemplateTagSpecification(entry, context);
      });
    }, "de_LaunchTemplateTagSpecificationList");
    var de_LaunchTemplateVersion = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_lTI] != null) {
        contents[_LTI] = (0, import_smithy_client28.expectString)(output[_lTI]);
      }
      if (output[_lTN] != null) {
        contents[_LTN] = (0, import_smithy_client28.expectString)(output[_lTN]);
      }
      if (output[_vNe] != null) {
        contents[_VNe] = (0, import_smithy_client28.strictParseLong)(output[_vNe]);
      }
      if (output[_vD] != null) {
        contents[_VD] = (0, import_smithy_client28.expectString)(output[_vD]);
      }
      if (output[_cTr] != null) {
        contents[_CTr] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_cTr]));
      }
      if (output[_cBr] != null) {
        contents[_CBr] = (0, import_smithy_client28.expectString)(output[_cBr]);
      }
      if (output[_dVe] != null) {
        contents[_DVef] = (0, import_smithy_client28.parseBoolean)(output[_dVe]);
      }
      if (output[_lTD] != null) {
        contents[_LTD] = de_ResponseLaunchTemplateData(output[_lTD], context);
      }
      if (output[_op] != null) {
        contents[_O] = de_OperatorResponse(output[_op], context);
      }
      return contents;
    }, "de_LaunchTemplateVersion");
    var de_LaunchTemplateVersionSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_LaunchTemplateVersion(entry, context);
      });
    }, "de_LaunchTemplateVersionSet");
    var de_LicenseConfiguration = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_lCA] != null) {
        contents[_LCA] = (0, import_smithy_client28.expectString)(output[_lCA]);
      }
      return contents;
    }, "de_LicenseConfiguration");
    var de_LicenseList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_LicenseConfiguration(entry, context);
      });
    }, "de_LicenseList");
    var de_ListImagesInRecycleBinResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.imageSet === "") {
        contents[_Ima] = [];
      } else if (output[_iSmag] != null && output[_iSmag][_i] != null) {
        contents[_Ima] = de_ImageRecycleBinInfoList((0, import_smithy_client28.getArrayIfSingleItem)(output[_iSmag][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_ListImagesInRecycleBinResult");
    var de_ListSnapshotsInRecycleBinResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.snapshotSet === "") {
        contents[_Sn] = [];
      } else if (output[_sS] != null && output[_sS][_i] != null) {
        contents[_Sn] = de_SnapshotRecycleBinInfoList((0, import_smithy_client28.getArrayIfSingleItem)(output[_sS][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_ListSnapshotsInRecycleBinResult");
    var de_LoadBalancersConfig = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cLBC] != null) {
        contents[_CLBC] = de_ClassicLoadBalancersConfig(output[_cLBC], context);
      }
      if (output[_tGCa] != null) {
        contents[_TGC] = de_TargetGroupsConfig(output[_tGCa], context);
      }
      return contents;
    }, "de_LoadBalancersConfig");
    var de_LoadPermission = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_uI] != null) {
        contents[_UIs] = (0, import_smithy_client28.expectString)(output[_uI]);
      }
      if (output[_g] != null) {
        contents[_Gr] = (0, import_smithy_client28.expectString)(output[_g]);
      }
      return contents;
    }, "de_LoadPermission");
    var de_LoadPermissionList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_LoadPermission(entry, context);
      });
    }, "de_LoadPermissionList");
    var de_LocalGateway = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_lGI] != null) {
        contents[_LGI] = (0, import_smithy_client28.expectString)(output[_lGI]);
      }
      if (output[_oA] != null) {
        contents[_OA] = (0, import_smithy_client28.expectString)(output[_oA]);
      }
      if (output[_oI] != null) {
        contents[_OIwn] = (0, import_smithy_client28.expectString)(output[_oI]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      return contents;
    }, "de_LocalGateway");
    var de_LocalGatewayRoute = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_dCB] != null) {
        contents[_DCBe] = (0, import_smithy_client28.expectString)(output[_dCB]);
      }
      if (output[_lGVIGI] != null) {
        contents[_LGVIGI] = (0, import_smithy_client28.expectString)(output[_lGVIGI]);
      }
      if (output[_ty] != null) {
        contents[_T2] = (0, import_smithy_client28.expectString)(output[_ty]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_lGRTI] != null) {
        contents[_LGRTI] = (0, import_smithy_client28.expectString)(output[_lGRTI]);
      }
      if (output[_lGRTA] != null) {
        contents[_LGRTA] = (0, import_smithy_client28.expectString)(output[_lGRTA]);
      }
      if (output[_oI] != null) {
        contents[_OIwn] = (0, import_smithy_client28.expectString)(output[_oI]);
      }
      if (output[_sIu] != null) {
        contents[_SIub] = (0, import_smithy_client28.expectString)(output[_sIu]);
      }
      if (output[_cPI] != null) {
        contents[_CPIo] = (0, import_smithy_client28.expectString)(output[_cPI]);
      }
      if (output[_nII] != null) {
        contents[_NII] = (0, import_smithy_client28.expectString)(output[_nII]);
      }
      if (output[_dPLI] != null) {
        contents[_DPLI] = (0, import_smithy_client28.expectString)(output[_dPLI]);
      }
      return contents;
    }, "de_LocalGatewayRoute");
    var de_LocalGatewayRouteList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_LocalGatewayRoute(entry, context);
      });
    }, "de_LocalGatewayRouteList");
    var de_LocalGatewayRouteTable = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_lGRTI] != null) {
        contents[_LGRTI] = (0, import_smithy_client28.expectString)(output[_lGRTI]);
      }
      if (output[_lGRTA] != null) {
        contents[_LGRTA] = (0, import_smithy_client28.expectString)(output[_lGRTA]);
      }
      if (output[_lGI] != null) {
        contents[_LGI] = (0, import_smithy_client28.expectString)(output[_lGI]);
      }
      if (output[_oA] != null) {
        contents[_OA] = (0, import_smithy_client28.expectString)(output[_oA]);
      }
      if (output[_oI] != null) {
        contents[_OIwn] = (0, import_smithy_client28.expectString)(output[_oI]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_mod] != null) {
        contents[_Mo] = (0, import_smithy_client28.expectString)(output[_mod]);
      }
      if (output[_sRt] != null) {
        contents[_SRt] = de_StateReason(output[_sRt], context);
      }
      return contents;
    }, "de_LocalGatewayRouteTable");
    var de_LocalGatewayRouteTableSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_LocalGatewayRouteTable(entry, context);
      });
    }, "de_LocalGatewayRouteTableSet");
    var de_LocalGatewayRouteTableVirtualInterfaceGroupAssociation = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_lGRTVIGAI] != null) {
        contents[_LGRTVIGAI] = (0, import_smithy_client28.expectString)(output[_lGRTVIGAI]);
      }
      if (output[_lGVIGI] != null) {
        contents[_LGVIGI] = (0, import_smithy_client28.expectString)(output[_lGVIGI]);
      }
      if (output[_lGI] != null) {
        contents[_LGI] = (0, import_smithy_client28.expectString)(output[_lGI]);
      }
      if (output[_lGRTI] != null) {
        contents[_LGRTI] = (0, import_smithy_client28.expectString)(output[_lGRTI]);
      }
      if (output[_lGRTA] != null) {
        contents[_LGRTA] = (0, import_smithy_client28.expectString)(output[_lGRTA]);
      }
      if (output[_oI] != null) {
        contents[_OIwn] = (0, import_smithy_client28.expectString)(output[_oI]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      return contents;
    }, "de_LocalGatewayRouteTableVirtualInterfaceGroupAssociation");
    var de_LocalGatewayRouteTableVirtualInterfaceGroupAssociationSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_LocalGatewayRouteTableVirtualInterfaceGroupAssociation(entry, context);
      });
    }, "de_LocalGatewayRouteTableVirtualInterfaceGroupAssociationSet");
    var de_LocalGatewayRouteTableVpcAssociation = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_lGRTVAI] != null) {
        contents[_LGRTVAI] = (0, import_smithy_client28.expectString)(output[_lGRTVAI]);
      }
      if (output[_lGRTI] != null) {
        contents[_LGRTI] = (0, import_smithy_client28.expectString)(output[_lGRTI]);
      }
      if (output[_lGRTA] != null) {
        contents[_LGRTA] = (0, import_smithy_client28.expectString)(output[_lGRTA]);
      }
      if (output[_lGI] != null) {
        contents[_LGI] = (0, import_smithy_client28.expectString)(output[_lGI]);
      }
      if (output[_vI] != null) {
        contents[_VI] = (0, import_smithy_client28.expectString)(output[_vI]);
      }
      if (output[_oI] != null) {
        contents[_OIwn] = (0, import_smithy_client28.expectString)(output[_oI]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      return contents;
    }, "de_LocalGatewayRouteTableVpcAssociation");
    var de_LocalGatewayRouteTableVpcAssociationSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_LocalGatewayRouteTableVpcAssociation(entry, context);
      });
    }, "de_LocalGatewayRouteTableVpcAssociationSet");
    var de_LocalGatewaySet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_LocalGateway(entry, context);
      });
    }, "de_LocalGatewaySet");
    var de_LocalGatewayVirtualInterface = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_lGVII] != null) {
        contents[_LGVII] = (0, import_smithy_client28.expectString)(output[_lGVII]);
      }
      if (output[_lGI] != null) {
        contents[_LGI] = (0, import_smithy_client28.expectString)(output[_lGI]);
      }
      if (output[_lGVIGI] != null) {
        contents[_LGVIGI] = (0, import_smithy_client28.expectString)(output[_lGVIGI]);
      }
      if (output[_lGVIA] != null) {
        contents[_LGVIA] = (0, import_smithy_client28.expectString)(output[_lGVIA]);
      }
      if (output[_oLI] != null) {
        contents[_OLI] = (0, import_smithy_client28.expectString)(output[_oLI]);
      }
      if (output[_vl] != null) {
        contents[_Vl] = (0, import_smithy_client28.strictParseInt32)(output[_vl]);
      }
      if (output[_lA] != null) {
        contents[_LA] = (0, import_smithy_client28.expectString)(output[_lA]);
      }
      if (output[_pAe] != null) {
        contents[_PAe] = (0, import_smithy_client28.expectString)(output[_pAe]);
      }
      if (output[_lBAo] != null) {
        contents[_LBA] = (0, import_smithy_client28.strictParseInt32)(output[_lBAo]);
      }
      if (output[_pBA] != null) {
        contents[_PBA] = (0, import_smithy_client28.strictParseInt32)(output[_pBA]);
      }
      if (output[_pBAE] != null) {
        contents[_PBAE] = (0, import_smithy_client28.strictParseLong)(output[_pBAE]);
      }
      if (output[_oI] != null) {
        contents[_OIwn] = (0, import_smithy_client28.expectString)(output[_oI]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_cSon] != null) {
        contents[_CSon] = (0, import_smithy_client28.expectString)(output[_cSon]);
      }
      return contents;
    }, "de_LocalGatewayVirtualInterface");
    var de_LocalGatewayVirtualInterfaceGroup = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_lGVIGI] != null) {
        contents[_LGVIGI] = (0, import_smithy_client28.expectString)(output[_lGVIGI]);
      }
      if (output.localGatewayVirtualInterfaceIdSet === "") {
        contents[_LGVIIo] = [];
      } else if (output[_lGVIIS] != null && output[_lGVIIS][_i] != null) {
        contents[_LGVIIo] = de_LocalGatewayVirtualInterfaceIdSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_lGVIIS][_i]), context);
      }
      if (output[_lGI] != null) {
        contents[_LGI] = (0, import_smithy_client28.expectString)(output[_lGI]);
      }
      if (output[_oI] != null) {
        contents[_OIwn] = (0, import_smithy_client28.expectString)(output[_oI]);
      }
      if (output[_lBAo] != null) {
        contents[_LBA] = (0, import_smithy_client28.strictParseInt32)(output[_lBAo]);
      }
      if (output[_lBAE] != null) {
        contents[_LBAE] = (0, import_smithy_client28.strictParseLong)(output[_lBAE]);
      }
      if (output[_lGVIGA] != null) {
        contents[_LGVIGA] = (0, import_smithy_client28.expectString)(output[_lGVIGA]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_cSon] != null) {
        contents[_CSon] = (0, import_smithy_client28.expectString)(output[_cSon]);
      }
      return contents;
    }, "de_LocalGatewayVirtualInterfaceGroup");
    var de_LocalGatewayVirtualInterfaceGroupSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_LocalGatewayVirtualInterfaceGroup(entry, context);
      });
    }, "de_LocalGatewayVirtualInterfaceGroupSet");
    var de_LocalGatewayVirtualInterfaceIdSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_LocalGatewayVirtualInterfaceIdSet");
    var de_LocalGatewayVirtualInterfaceSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_LocalGatewayVirtualInterface(entry, context);
      });
    }, "de_LocalGatewayVirtualInterfaceSet");
    var de_LocalStorageTypeSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_LocalStorageTypeSet");
    var de_LockedSnapshotsInfo = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_oI] != null) {
        contents[_OIwn] = (0, import_smithy_client28.expectString)(output[_oI]);
      }
      if (output[_sIn] != null) {
        contents[_SIn] = (0, import_smithy_client28.expectString)(output[_sIn]);
      }
      if (output[_lSoc] != null) {
        contents[_LSoc] = (0, import_smithy_client28.expectString)(output[_lSoc]);
      }
      if (output[_lDo] != null) {
        contents[_LDo] = (0, import_smithy_client28.strictParseInt32)(output[_lDo]);
      }
      if (output[_cOP] != null) {
        contents[_COP] = (0, import_smithy_client28.strictParseInt32)(output[_cOP]);
      }
      if (output[_cOPEO] != null) {
        contents[_COPEO] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_cOPEO]));
      }
      if (output[_lCO] != null) {
        contents[_LCO] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_lCO]));
      }
      if (output[_lDST] != null) {
        contents[_LDST] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_lDST]));
      }
      if (output[_lEO] != null) {
        contents[_LEO] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_lEO]));
      }
      return contents;
    }, "de_LockedSnapshotsInfo");
    var de_LockedSnapshotsInfoList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_LockedSnapshotsInfo(entry, context);
      });
    }, "de_LockedSnapshotsInfoList");
    var de_LockSnapshotResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sIn] != null) {
        contents[_SIn] = (0, import_smithy_client28.expectString)(output[_sIn]);
      }
      if (output[_lSoc] != null) {
        contents[_LSoc] = (0, import_smithy_client28.expectString)(output[_lSoc]);
      }
      if (output[_lDo] != null) {
        contents[_LDo] = (0, import_smithy_client28.strictParseInt32)(output[_lDo]);
      }
      if (output[_cOP] != null) {
        contents[_COP] = (0, import_smithy_client28.strictParseInt32)(output[_cOP]);
      }
      if (output[_cOPEO] != null) {
        contents[_COPEO] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_cOPEO]));
      }
      if (output[_lCO] != null) {
        contents[_LCO] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_lCO]));
      }
      if (output[_lEO] != null) {
        contents[_LEO] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_lEO]));
      }
      if (output[_lDST] != null) {
        contents[_LDST] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_lDST]));
      }
      return contents;
    }, "de_LockSnapshotResult");
    var de_MacHost = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_hI] != null) {
        contents[_HIo] = (0, import_smithy_client28.expectString)(output[_hI]);
      }
      if (output.macOSLatestSupportedVersionSet === "") {
        contents[_MOSLSV] = [];
      } else if (output[_mOSLSVS] != null && output[_mOSLSVS][_i] != null) {
        contents[_MOSLSV] = de_MacOSVersionStringList((0, import_smithy_client28.getArrayIfSingleItem)(output[_mOSLSVS][_i]), context);
      }
      return contents;
    }, "de_MacHost");
    var de_MacHostList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_MacHost(entry, context);
      });
    }, "de_MacHostList");
    var de_MacModificationTask = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iI] != null) {
        contents[_IIn] = (0, import_smithy_client28.expectString)(output[_iI]);
      }
      if (output[_mMTI] != null) {
        contents[_MMTIa] = (0, import_smithy_client28.expectString)(output[_mMTI]);
      }
      if (output[_mSIPC] != null) {
        contents[_MSIPCa] = de_MacSystemIntegrityProtectionConfiguration(output[_mSIPC], context);
      }
      if (output[_sT] != null) {
        contents[_STt] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_sT]));
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_tSas] != null) {
        contents[_TSas] = (0, import_smithy_client28.expectString)(output[_tSas]);
      }
      if (output[_tTa] != null) {
        contents[_TTa] = (0, import_smithy_client28.expectString)(output[_tTa]);
      }
      return contents;
    }, "de_MacModificationTask");
    var de_MacModificationTaskList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_MacModificationTask(entry, context);
      });
    }, "de_MacModificationTaskList");
    var de_MacOSVersionStringList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_MacOSVersionStringList");
    var de_MacSystemIntegrityProtectionConfiguration = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aIp] != null) {
        contents[_AIp] = (0, import_smithy_client28.expectString)(output[_aIp]);
      }
      if (output[_bSa] != null) {
        contents[_BS] = (0, import_smithy_client28.expectString)(output[_bSa]);
      }
      if (output[_dRe] != null) {
        contents[_DReb] = (0, import_smithy_client28.expectString)(output[_dRe]);
      }
      if (output[_dTR] != null) {
        contents[_DTR] = (0, import_smithy_client28.expectString)(output[_dTR]);
      }
      if (output[_fPi] != null) {
        contents[_FPi] = (0, import_smithy_client28.expectString)(output[_fPi]);
      }
      if (output[_kSe] != null) {
        contents[_KS] = (0, import_smithy_client28.expectString)(output[_kSe]);
      }
      if (output[_nP] != null) {
        contents[_NP] = (0, import_smithy_client28.expectString)(output[_nP]);
      }
      if (output[_sta] != null) {
        contents[_Statu] = (0, import_smithy_client28.expectString)(output[_sta]);
      }
      return contents;
    }, "de_MacSystemIntegrityProtectionConfiguration");
    var de_MaintenanceDetails = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_pM] != null) {
        contents[_PM] = (0, import_smithy_client28.expectString)(output[_pM]);
      }
      if (output[_mAAA] != null) {
        contents[_MAAA] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_mAAA]));
      }
      if (output[_lMA] != null) {
        contents[_LMA] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_lMA]));
      }
      return contents;
    }, "de_MaintenanceDetails");
    var de_ManagedPrefixList = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_pLI] != null) {
        contents[_PLI] = (0, import_smithy_client28.expectString)(output[_pLI]);
      }
      if (output[_aF] != null) {
        contents[_AF] = (0, import_smithy_client28.expectString)(output[_aF]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_sMta] != null) {
        contents[_SMta] = (0, import_smithy_client28.expectString)(output[_sMta]);
      }
      if (output[_pLA] != null) {
        contents[_PLAr] = (0, import_smithy_client28.expectString)(output[_pLA]);
      }
      if (output[_pLN] != null) {
        contents[_PLN] = (0, import_smithy_client28.expectString)(output[_pLN]);
      }
      if (output[_mE] != null) {
        contents[_ME] = (0, import_smithy_client28.strictParseInt32)(output[_mE]);
      }
      if (output[_ve] != null) {
        contents[_V2] = (0, import_smithy_client28.strictParseLong)(output[_ve]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_oI] != null) {
        contents[_OIwn] = (0, import_smithy_client28.expectString)(output[_oI]);
      }
      return contents;
    }, "de_ManagedPrefixList");
    var de_ManagedPrefixListSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ManagedPrefixList(entry, context);
      });
    }, "de_ManagedPrefixListSet");
    var de_MediaAcceleratorInfo = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.accelerators === "") {
        contents[_Acc] = [];
      } else if (output[_acc] != null && output[_acc][_i] != null) {
        contents[_Acc] = de_MediaDeviceInfoList((0, import_smithy_client28.getArrayIfSingleItem)(output[_acc][_i]), context);
      }
      if (output[_tMMIMB] != null) {
        contents[_TMMIMB] = (0, import_smithy_client28.strictParseInt32)(output[_tMMIMB]);
      }
      return contents;
    }, "de_MediaAcceleratorInfo");
    var de_MediaDeviceInfo = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cou] != null) {
        contents[_Cou] = (0, import_smithy_client28.strictParseInt32)(output[_cou]);
      }
      if (output[_n] != null) {
        contents[_N] = (0, import_smithy_client28.expectString)(output[_n]);
      }
      if (output[_man] != null) {
        contents[_Man] = (0, import_smithy_client28.expectString)(output[_man]);
      }
      if (output[_mIe] != null) {
        contents[_MIe] = de_MediaDeviceMemoryInfo(output[_mIe], context);
      }
      return contents;
    }, "de_MediaDeviceInfo");
    var de_MediaDeviceInfoList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_MediaDeviceInfo(entry, context);
      });
    }, "de_MediaDeviceInfoList");
    var de_MediaDeviceMemoryInfo = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sIMB] != null) {
        contents[_SIMB] = (0, import_smithy_client28.strictParseInt32)(output[_sIMB]);
      }
      return contents;
    }, "de_MediaDeviceMemoryInfo");
    var de_MemoryGiBPerVCpu = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_m2] != null) {
        contents[_M] = (0, import_smithy_client28.strictParseFloat)(output[_m2]);
      }
      if (output[_ma] != null) {
        contents[_Ma] = (0, import_smithy_client28.strictParseFloat)(output[_ma]);
      }
      return contents;
    }, "de_MemoryGiBPerVCpu");
    var de_MemoryInfo = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sIMB] != null) {
        contents[_SIMB] = (0, import_smithy_client28.strictParseLong)(output[_sIMB]);
      }
      return contents;
    }, "de_MemoryInfo");
    var de_MemoryMiB = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_m2] != null) {
        contents[_M] = (0, import_smithy_client28.strictParseInt32)(output[_m2]);
      }
      if (output[_ma] != null) {
        contents[_Ma] = (0, import_smithy_client28.strictParseInt32)(output[_ma]);
      }
      return contents;
    }, "de_MemoryMiB");
    var de_MetricPoint = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sD] != null) {
        contents[_SD] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_sD]));
      }
      if (output[_eD] != null) {
        contents[_ED] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_eD]));
      }
      if (output[_v] != null) {
        contents[_Va2] = (0, import_smithy_client28.strictParseFloat)(output[_v]);
      }
      if (output[_sta] != null) {
        contents[_Statu] = (0, import_smithy_client28.expectString)(output[_sta]);
      }
      return contents;
    }, "de_MetricPoint");
    var de_MetricPoints = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_MetricPoint(entry, context);
      });
    }, "de_MetricPoints");
    var de_ModifyAddressAttributeResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ad] != null) {
        contents[_Ad] = de_AddressAttribute(output[_ad], context);
      }
      return contents;
    }, "de_ModifyAddressAttributeResult");
    var de_ModifyAvailabilityZoneGroupResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_Ret] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      return contents;
    }, "de_ModifyAvailabilityZoneGroupResult");
    var de_ModifyCapacityReservationFleetResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_Ret] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      return contents;
    }, "de_ModifyCapacityReservationFleetResult");
    var de_ModifyCapacityReservationResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_Ret] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      return contents;
    }, "de_ModifyCapacityReservationResult");
    var de_ModifyClientVpnEndpointResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_Ret] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      return contents;
    }, "de_ModifyClientVpnEndpointResult");
    var de_ModifyDefaultCreditSpecificationResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iFCS] != null) {
        contents[_IFCS] = de_InstanceFamilyCreditSpecification(output[_iFCS], context);
      }
      return contents;
    }, "de_ModifyDefaultCreditSpecificationResult");
    var de_ModifyEbsDefaultKmsKeyIdResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_kKI] != null) {
        contents[_KKI] = (0, import_smithy_client28.expectString)(output[_kKI]);
      }
      return contents;
    }, "de_ModifyEbsDefaultKmsKeyIdResult");
    var de_ModifyFleetResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_Ret] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      return contents;
    }, "de_ModifyFleetResult");
    var de_ModifyFpgaImageAttributeResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_fIA] != null) {
        contents[_FIAp] = de_FpgaImageAttribute(output[_fIA], context);
      }
      return contents;
    }, "de_ModifyFpgaImageAttributeResult");
    var de_ModifyHostsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.successful === "") {
        contents[_Suc] = [];
      } else if (output[_suc] != null && output[_suc][_i] != null) {
        contents[_Suc] = de_ResponseHostIdList((0, import_smithy_client28.getArrayIfSingleItem)(output[_suc][_i]), context);
      }
      if (output.unsuccessful === "") {
        contents[_Un] = [];
      } else if (output[_u] != null && output[_u][_i] != null) {
        contents[_Un] = de_UnsuccessfulItemList((0, import_smithy_client28.getArrayIfSingleItem)(output[_u][_i]), context);
      }
      return contents;
    }, "de_ModifyHostsResult");
    var de_ModifyInstanceCapacityReservationAttributesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_Ret] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      return contents;
    }, "de_ModifyInstanceCapacityReservationAttributesResult");
    var de_ModifyInstanceConnectEndpointResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_Ret] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      return contents;
    }, "de_ModifyInstanceConnectEndpointResult");
    var de_ModifyInstanceCpuOptionsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iI] != null) {
        contents[_IIn] = (0, import_smithy_client28.expectString)(output[_iI]);
      }
      if (output[_cCo] != null) {
        contents[_CC] = (0, import_smithy_client28.strictParseInt32)(output[_cCo]);
      }
      if (output[_tPC] != null) {
        contents[_TPC] = (0, import_smithy_client28.strictParseInt32)(output[_tPC]);
      }
      return contents;
    }, "de_ModifyInstanceCpuOptionsResult");
    var de_ModifyInstanceCreditSpecificationResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.successfulInstanceCreditSpecificationSet === "") {
        contents[_SICS] = [];
      } else if (output[_sICSS] != null && output[_sICSS][_i] != null) {
        contents[_SICS] = de_SuccessfulInstanceCreditSpecificationSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_sICSS][_i]), context);
      }
      if (output.unsuccessfulInstanceCreditSpecificationSet === "") {
        contents[_UICS] = [];
      } else if (output[_uICSS] != null && output[_uICSS][_i] != null) {
        contents[_UICS] = de_UnsuccessfulInstanceCreditSpecificationSet(
          (0, import_smithy_client28.getArrayIfSingleItem)(output[_uICSS][_i]),
          context
        );
      }
      return contents;
    }, "de_ModifyInstanceCreditSpecificationResult");
    var de_ModifyInstanceEventStartTimeResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ev] != null) {
        contents[_Eve] = de_InstanceStatusEvent(output[_ev], context);
      }
      return contents;
    }, "de_ModifyInstanceEventStartTimeResult");
    var de_ModifyInstanceEventWindowResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iEW] != null) {
        contents[_IEW] = de_InstanceEventWindow(output[_iEW], context);
      }
      return contents;
    }, "de_ModifyInstanceEventWindowResult");
    var de_ModifyInstanceMaintenanceOptionsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iI] != null) {
        contents[_IIn] = (0, import_smithy_client28.expectString)(output[_iI]);
      }
      if (output[_aRu] != null) {
        contents[_ARu] = (0, import_smithy_client28.expectString)(output[_aRu]);
      }
      if (output[_rM] != null) {
        contents[_RMe] = (0, import_smithy_client28.expectString)(output[_rM]);
      }
      return contents;
    }, "de_ModifyInstanceMaintenanceOptionsResult");
    var de_ModifyInstanceMetadataDefaultsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_Ret] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      return contents;
    }, "de_ModifyInstanceMetadataDefaultsResult");
    var de_ModifyInstanceMetadataOptionsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iI] != null) {
        contents[_IIn] = (0, import_smithy_client28.expectString)(output[_iI]);
      }
      if (output[_iMO] != null) {
        contents[_IMOn] = de_InstanceMetadataOptionsResponse(output[_iMO], context);
      }
      return contents;
    }, "de_ModifyInstanceMetadataOptionsResult");
    var de_ModifyInstanceNetworkPerformanceResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iI] != null) {
        contents[_IIn] = (0, import_smithy_client28.expectString)(output[_iI]);
      }
      if (output[_bW] != null) {
        contents[_BW] = (0, import_smithy_client28.expectString)(output[_bW]);
      }
      return contents;
    }, "de_ModifyInstanceNetworkPerformanceResult");
    var de_ModifyInstancePlacementResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_Ret] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      return contents;
    }, "de_ModifyInstancePlacementResult");
    var de_ModifyIpamPoolResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iPp] != null) {
        contents[_IPpa] = de_IpamPool(output[_iPp], context);
      }
      return contents;
    }, "de_ModifyIpamPoolResult");
    var de_ModifyIpamResourceCidrResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iRC] != null) {
        contents[_IRCp] = de_IpamResourceCidr(output[_iRC], context);
      }
      return contents;
    }, "de_ModifyIpamResourceCidrResult");
    var de_ModifyIpamResourceDiscoveryResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iRD] != null) {
        contents[_IRD] = de_IpamResourceDiscovery(output[_iRD], context);
      }
      return contents;
    }, "de_ModifyIpamResourceDiscoveryResult");
    var de_ModifyIpamResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ip] != null) {
        contents[_Ipa] = de_Ipam(output[_ip], context);
      }
      return contents;
    }, "de_ModifyIpamResult");
    var de_ModifyIpamScopeResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iSp] != null) {
        contents[_ISpa] = de_IpamScope(output[_iSp], context);
      }
      return contents;
    }, "de_ModifyIpamScopeResult");
    var de_ModifyLaunchTemplateResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_lT] != null) {
        contents[_LTa] = de_LaunchTemplate(output[_lT], context);
      }
      return contents;
    }, "de_ModifyLaunchTemplateResult");
    var de_ModifyLocalGatewayRouteResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ro] != null) {
        contents[_Rou] = de_LocalGatewayRoute(output[_ro], context);
      }
      return contents;
    }, "de_ModifyLocalGatewayRouteResult");
    var de_ModifyManagedPrefixListResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_pL] != null) {
        contents[_PLr] = de_ManagedPrefixList(output[_pL], context);
      }
      return contents;
    }, "de_ModifyManagedPrefixListResult");
    var de_ModifyPrivateDnsNameOptionsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_Ret] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      return contents;
    }, "de_ModifyPrivateDnsNameOptionsResult");
    var de_ModifyPublicIpDnsNameOptionsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_suc] != null) {
        contents[_Suc] = (0, import_smithy_client28.parseBoolean)(output[_suc]);
      }
      return contents;
    }, "de_ModifyPublicIpDnsNameOptionsResult");
    var de_ModifyReservedInstancesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_rIMI] != null) {
        contents[_RIMIe] = (0, import_smithy_client28.expectString)(output[_rIMI]);
      }
      return contents;
    }, "de_ModifyReservedInstancesResult");
    var de_ModifyRouteServerResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_rSo] != null) {
        contents[_RSo] = de_RouteServer(output[_rSo], context);
      }
      return contents;
    }, "de_ModifyRouteServerResult");
    var de_ModifySecurityGroupRulesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_Ret] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      return contents;
    }, "de_ModifySecurityGroupRulesResult");
    var de_ModifySnapshotTierResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sIn] != null) {
        contents[_SIn] = (0, import_smithy_client28.expectString)(output[_sIn]);
      }
      if (output[_tST] != null) {
        contents[_TST] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_tST]));
      }
      return contents;
    }, "de_ModifySnapshotTierResult");
    var de_ModifySpotFleetRequestResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_Ret] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      return contents;
    }, "de_ModifySpotFleetRequestResponse");
    var de_ModifyTrafficMirrorFilterNetworkServicesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tMF] != null) {
        contents[_TMF] = de_TrafficMirrorFilter(output[_tMF], context);
      }
      return contents;
    }, "de_ModifyTrafficMirrorFilterNetworkServicesResult");
    var de_ModifyTrafficMirrorFilterRuleResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tMFR] != null) {
        contents[_TMFR] = de_TrafficMirrorFilterRule(output[_tMFR], context);
      }
      return contents;
    }, "de_ModifyTrafficMirrorFilterRuleResult");
    var de_ModifyTrafficMirrorSessionResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tMS] != null) {
        contents[_TMS] = de_TrafficMirrorSession(output[_tMS], context);
      }
      return contents;
    }, "de_ModifyTrafficMirrorSessionResult");
    var de_ModifyTransitGatewayPrefixListReferenceResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tGPLR] != null) {
        contents[_TGPLR] = de_TransitGatewayPrefixListReference(output[_tGPLR], context);
      }
      return contents;
    }, "de_ModifyTransitGatewayPrefixListReferenceResult");
    var de_ModifyTransitGatewayResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tG] != null) {
        contents[_TGr] = de_TransitGateway(output[_tG], context);
      }
      return contents;
    }, "de_ModifyTransitGatewayResult");
    var de_ModifyTransitGatewayVpcAttachmentResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tGVA] != null) {
        contents[_TGVA] = de_TransitGatewayVpcAttachment(output[_tGVA], context);
      }
      return contents;
    }, "de_ModifyTransitGatewayVpcAttachmentResult");
    var de_ModifyVerifiedAccessEndpointPolicyResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_pE] != null) {
        contents[_PE] = (0, import_smithy_client28.parseBoolean)(output[_pE]);
      }
      if (output[_pDo] != null) {
        contents[_PD] = (0, import_smithy_client28.expectString)(output[_pDo]);
      }
      if (output[_sSs] != null) {
        contents[_SS] = de_VerifiedAccessSseSpecificationResponse(output[_sSs], context);
      }
      return contents;
    }, "de_ModifyVerifiedAccessEndpointPolicyResult");
    var de_ModifyVerifiedAccessEndpointResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_vAE] != null) {
        contents[_VAE] = de_VerifiedAccessEndpoint(output[_vAE], context);
      }
      return contents;
    }, "de_ModifyVerifiedAccessEndpointResult");
    var de_ModifyVerifiedAccessGroupPolicyResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_pE] != null) {
        contents[_PE] = (0, import_smithy_client28.parseBoolean)(output[_pE]);
      }
      if (output[_pDo] != null) {
        contents[_PD] = (0, import_smithy_client28.expectString)(output[_pDo]);
      }
      if (output[_sSs] != null) {
        contents[_SS] = de_VerifiedAccessSseSpecificationResponse(output[_sSs], context);
      }
      return contents;
    }, "de_ModifyVerifiedAccessGroupPolicyResult");
    var de_ModifyVerifiedAccessGroupResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_vAG] != null) {
        contents[_VAG] = de_VerifiedAccessGroup(output[_vAG], context);
      }
      return contents;
    }, "de_ModifyVerifiedAccessGroupResult");
    var de_ModifyVerifiedAccessInstanceLoggingConfigurationResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_lC] != null) {
        contents[_LCo] = de_VerifiedAccessInstanceLoggingConfiguration(output[_lC], context);
      }
      return contents;
    }, "de_ModifyVerifiedAccessInstanceLoggingConfigurationResult");
    var de_ModifyVerifiedAccessInstanceResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_vAI] != null) {
        contents[_VAI] = de_VerifiedAccessInstance(output[_vAI], context);
      }
      return contents;
    }, "de_ModifyVerifiedAccessInstanceResult");
    var de_ModifyVerifiedAccessTrustProviderResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_vATP] != null) {
        contents[_VATP] = de_VerifiedAccessTrustProvider(output[_vATP], context);
      }
      return contents;
    }, "de_ModifyVerifiedAccessTrustProviderResult");
    var de_ModifyVolumeResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_vM] != null) {
        contents[_VMol] = de_VolumeModification(output[_vM], context);
      }
      return contents;
    }, "de_ModifyVolumeResult");
    var de_ModifyVpcBlockPublicAccessExclusionResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_vBPAE] != null) {
        contents[_VBPAE] = de_VpcBlockPublicAccessExclusion(output[_vBPAE], context);
      }
      return contents;
    }, "de_ModifyVpcBlockPublicAccessExclusionResult");
    var de_ModifyVpcBlockPublicAccessOptionsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_vBPAO] != null) {
        contents[_VBPAO] = de_VpcBlockPublicAccessOptions(output[_vBPAO], context);
      }
      return contents;
    }, "de_ModifyVpcBlockPublicAccessOptionsResult");
    var de_ModifyVpcEndpointConnectionNotificationResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_RV] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      return contents;
    }, "de_ModifyVpcEndpointConnectionNotificationResult");
    var de_ModifyVpcEndpointResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_Ret] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      return contents;
    }, "de_ModifyVpcEndpointResult");
    var de_ModifyVpcEndpointServiceConfigurationResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_Ret] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      return contents;
    }, "de_ModifyVpcEndpointServiceConfigurationResult");
    var de_ModifyVpcEndpointServicePayerResponsibilityResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_RV] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      return contents;
    }, "de_ModifyVpcEndpointServicePayerResponsibilityResult");
    var de_ModifyVpcEndpointServicePermissionsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.addedPrincipalSet === "") {
        contents[_APd] = [];
      } else if (output[_aPS] != null && output[_aPS][_i] != null) {
        contents[_APd] = de_AddedPrincipalSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_aPS][_i]), context);
      }
      if (output[_r] != null) {
        contents[_RV] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      return contents;
    }, "de_ModifyVpcEndpointServicePermissionsResult");
    var de_ModifyVpcPeeringConnectionOptionsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aPCO] != null) {
        contents[_APCO] = de_PeeringConnectionOptions(output[_aPCO], context);
      }
      if (output[_rPCO] != null) {
        contents[_RPCO] = de_PeeringConnectionOptions(output[_rPCO], context);
      }
      return contents;
    }, "de_ModifyVpcPeeringConnectionOptionsResult");
    var de_ModifyVpcTenancyResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_RV] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      return contents;
    }, "de_ModifyVpcTenancyResult");
    var de_ModifyVpnConnectionOptionsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_vC] != null) {
        contents[_VC] = de_VpnConnection(output[_vC], context);
      }
      return contents;
    }, "de_ModifyVpnConnectionOptionsResult");
    var de_ModifyVpnConnectionResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_vC] != null) {
        contents[_VC] = de_VpnConnection(output[_vC], context);
      }
      return contents;
    }, "de_ModifyVpnConnectionResult");
    var de_ModifyVpnTunnelCertificateResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_vC] != null) {
        contents[_VC] = de_VpnConnection(output[_vC], context);
      }
      return contents;
    }, "de_ModifyVpnTunnelCertificateResult");
    var de_ModifyVpnTunnelOptionsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_vC] != null) {
        contents[_VC] = de_VpnConnection(output[_vC], context);
      }
      return contents;
    }, "de_ModifyVpnTunnelOptionsResult");
    var de_Monitoring = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      return contents;
    }, "de_Monitoring");
    var de_MonitorInstancesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.instancesSet === "") {
        contents[_IMn] = [];
      } else if (output[_iSn] != null && output[_iSn][_i] != null) {
        contents[_IMn] = de_InstanceMonitoringList((0, import_smithy_client28.getArrayIfSingleItem)(output[_iSn][_i]), context);
      }
      return contents;
    }, "de_MonitorInstancesResult");
    var de_MoveAddressToVpcResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aI] != null) {
        contents[_AIl] = (0, import_smithy_client28.expectString)(output[_aI]);
      }
      if (output[_sta] != null) {
        contents[_Statu] = (0, import_smithy_client28.expectString)(output[_sta]);
      }
      return contents;
    }, "de_MoveAddressToVpcResult");
    var de_MoveByoipCidrToIpamResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_bC] != null) {
        contents[_BC] = de_ByoipCidr(output[_bC], context);
      }
      return contents;
    }, "de_MoveByoipCidrToIpamResult");
    var de_MoveCapacityReservationInstancesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sCR] != null) {
        contents[_SCR] = de_CapacityReservation(output[_sCR], context);
      }
      if (output[_dCR] != null) {
        contents[_DCRe] = de_CapacityReservation(output[_dCR], context);
      }
      if (output[_iC] != null) {
        contents[_IC] = (0, import_smithy_client28.strictParseInt32)(output[_iC]);
      }
      return contents;
    }, "de_MoveCapacityReservationInstancesResult");
    var de_MovingAddressStatus = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_mSo] != null) {
        contents[_MSo] = (0, import_smithy_client28.expectString)(output[_mSo]);
      }
      if (output[_pI] != null) {
        contents[_PI2] = (0, import_smithy_client28.expectString)(output[_pI]);
      }
      return contents;
    }, "de_MovingAddressStatus");
    var de_MovingAddressStatusSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_MovingAddressStatus(entry, context);
      });
    }, "de_MovingAddressStatusSet");
    var de_NatGateway = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cTr] != null) {
        contents[_CTr] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_cTr]));
      }
      if (output[_dTel] != null) {
        contents[_DTele] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_dTel]));
      }
      if (output[_fCa] != null) {
        contents[_FCa] = (0, import_smithy_client28.expectString)(output[_fCa]);
      }
      if (output[_fM] != null) {
        contents[_FM] = (0, import_smithy_client28.expectString)(output[_fM]);
      }
      if (output.natGatewayAddressSet === "") {
        contents[_NGA] = [];
      } else if (output[_nGAS] != null && output[_nGAS][_i] != null) {
        contents[_NGA] = de_NatGatewayAddressList((0, import_smithy_client28.getArrayIfSingleItem)(output[_nGAS][_i]), context);
      }
      if (output[_nGI] != null) {
        contents[_NGI] = (0, import_smithy_client28.expectString)(output[_nGI]);
      }
      if (output[_pB] != null) {
        contents[_PB] = de_ProvisionedBandwidth(output[_pB], context);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_sIu] != null) {
        contents[_SIub] = (0, import_smithy_client28.expectString)(output[_sIu]);
      }
      if (output[_vI] != null) {
        contents[_VI] = (0, import_smithy_client28.expectString)(output[_vI]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_cTonn] != null) {
        contents[_CTo] = (0, import_smithy_client28.expectString)(output[_cTonn]);
      }
      return contents;
    }, "de_NatGateway");
    var de_NatGatewayAddress = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aI] != null) {
        contents[_AIl] = (0, import_smithy_client28.expectString)(output[_aI]);
      }
      if (output[_nII] != null) {
        contents[_NII] = (0, import_smithy_client28.expectString)(output[_nII]);
      }
      if (output[_pIriv] != null) {
        contents[_PIri] = (0, import_smithy_client28.expectString)(output[_pIriv]);
      }
      if (output[_pI] != null) {
        contents[_PI2] = (0, import_smithy_client28.expectString)(output[_pI]);
      }
      if (output[_aIs] != null) {
        contents[_AIss] = (0, import_smithy_client28.expectString)(output[_aIs]);
      }
      if (output[_iPsr] != null) {
        contents[_IPsr] = (0, import_smithy_client28.parseBoolean)(output[_iPsr]);
      }
      if (output[_fM] != null) {
        contents[_FM] = (0, import_smithy_client28.expectString)(output[_fM]);
      }
      if (output[_sta] != null) {
        contents[_Statu] = (0, import_smithy_client28.expectString)(output[_sta]);
      }
      return contents;
    }, "de_NatGatewayAddress");
    var de_NatGatewayAddressList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_NatGatewayAddress(entry, context);
      });
    }, "de_NatGatewayAddressList");
    var de_NatGatewayList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_NatGateway(entry, context);
      });
    }, "de_NatGatewayList");
    var de_NativeApplicationOidcOptions = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_pSKE] != null) {
        contents[_PSKE] = (0, import_smithy_client28.expectString)(output[_pSKE]);
      }
      if (output[_is] != null) {
        contents[_I] = (0, import_smithy_client28.expectString)(output[_is]);
      }
      if (output[_aE] != null) {
        contents[_AE] = (0, import_smithy_client28.expectString)(output[_aE]);
      }
      if (output[_tEo] != null) {
        contents[_TEo] = (0, import_smithy_client28.expectString)(output[_tEo]);
      }
      if (output[_uIE] != null) {
        contents[_UIE] = (0, import_smithy_client28.expectString)(output[_uIE]);
      }
      if (output[_cIli] != null) {
        contents[_CIl] = (0, import_smithy_client28.expectString)(output[_cIli]);
      }
      if (output[_sc] != null) {
        contents[_Sc] = (0, import_smithy_client28.expectString)(output[_sc]);
      }
      return contents;
    }, "de_NativeApplicationOidcOptions");
    var de_NetworkAcl = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.associationSet === "") {
        contents[_Ass] = [];
      } else if (output[_aSss] != null && output[_aSss][_i] != null) {
        contents[_Ass] = de_NetworkAclAssociationList((0, import_smithy_client28.getArrayIfSingleItem)(output[_aSss][_i]), context);
      }
      if (output.entrySet === "") {
        contents[_Ent] = [];
      } else if (output[_eSnt] != null && output[_eSnt][_i] != null) {
        contents[_Ent] = de_NetworkAclEntryList((0, import_smithy_client28.getArrayIfSingleItem)(output[_eSnt][_i]), context);
      }
      if (output[_def] != null) {
        contents[_IDs] = (0, import_smithy_client28.parseBoolean)(output[_def]);
      }
      if (output[_nAI] != null) {
        contents[_NAI] = (0, import_smithy_client28.expectString)(output[_nAI]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_vI] != null) {
        contents[_VI] = (0, import_smithy_client28.expectString)(output[_vI]);
      }
      if (output[_oI] != null) {
        contents[_OIwn] = (0, import_smithy_client28.expectString)(output[_oI]);
      }
      return contents;
    }, "de_NetworkAcl");
    var de_NetworkAclAssociation = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nAAI] != null) {
        contents[_NAAI] = (0, import_smithy_client28.expectString)(output[_nAAI]);
      }
      if (output[_nAI] != null) {
        contents[_NAI] = (0, import_smithy_client28.expectString)(output[_nAI]);
      }
      if (output[_sIu] != null) {
        contents[_SIub] = (0, import_smithy_client28.expectString)(output[_sIu]);
      }
      return contents;
    }, "de_NetworkAclAssociation");
    var de_NetworkAclAssociationList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_NetworkAclAssociation(entry, context);
      });
    }, "de_NetworkAclAssociationList");
    var de_NetworkAclEntry = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cB] != null) {
        contents[_CB] = (0, import_smithy_client28.expectString)(output[_cB]);
      }
      if (output[_e] != null) {
        contents[_Eg] = (0, import_smithy_client28.parseBoolean)(output[_e]);
      }
      if (output[_iTC] != null) {
        contents[_ITC] = de_IcmpTypeCode(output[_iTC], context);
      }
      if (output[_iCB] != null) {
        contents[_ICB] = (0, import_smithy_client28.expectString)(output[_iCB]);
      }
      if (output[_pRo] != null) {
        contents[_PR] = de_PortRange(output[_pRo], context);
      }
      if (output[_pr] != null) {
        contents[_P2] = (0, import_smithy_client28.expectString)(output[_pr]);
      }
      if (output[_rA] != null) {
        contents[_RAu] = (0, import_smithy_client28.expectString)(output[_rA]);
      }
      if (output[_rN] != null) {
        contents[_RNu] = (0, import_smithy_client28.strictParseInt32)(output[_rN]);
      }
      return contents;
    }, "de_NetworkAclEntry");
    var de_NetworkAclEntryList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_NetworkAclEntry(entry, context);
      });
    }, "de_NetworkAclEntryList");
    var de_NetworkAclList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_NetworkAcl(entry, context);
      });
    }, "de_NetworkAclList");
    var de_NetworkBandwidthGbps = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_m2] != null) {
        contents[_M] = (0, import_smithy_client28.strictParseFloat)(output[_m2]);
      }
      if (output[_ma] != null) {
        contents[_Ma] = (0, import_smithy_client28.strictParseFloat)(output[_ma]);
      }
      return contents;
    }, "de_NetworkBandwidthGbps");
    var de_NetworkCardInfo = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nCI] != null) {
        contents[_NCI] = (0, import_smithy_client28.strictParseInt32)(output[_nCI]);
      }
      if (output[_nPe] != null) {
        contents[_NPe] = (0, import_smithy_client28.expectString)(output[_nPe]);
      }
      if (output[_mNI] != null) {
        contents[_MNI] = (0, import_smithy_client28.strictParseInt32)(output[_mNI]);
      }
      if (output[_bBIG] != null) {
        contents[_BBIG] = (0, import_smithy_client28.strictParseFloat)(output[_bBIG]);
      }
      if (output[_pBIG] != null) {
        contents[_PBIG] = (0, import_smithy_client28.strictParseFloat)(output[_pBIG]);
      }
      if (output[_dEQCPI] != null) {
        contents[_DEQCPI] = (0, import_smithy_client28.strictParseInt32)(output[_dEQCPI]);
      }
      if (output[_mEQC] != null) {
        contents[_MEQC] = (0, import_smithy_client28.strictParseInt32)(output[_mEQC]);
      }
      if (output[_mEQCPI] != null) {
        contents[_MEQCPI] = (0, import_smithy_client28.strictParseInt32)(output[_mEQCPI]);
      }
      return contents;
    }, "de_NetworkCardInfo");
    var de_NetworkCardInfoList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_NetworkCardInfo(entry, context);
      });
    }, "de_NetworkCardInfoList");
    var de_NetworkInfo = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nPe] != null) {
        contents[_NPe] = (0, import_smithy_client28.expectString)(output[_nPe]);
      }
      if (output[_mNI] != null) {
        contents[_MNI] = (0, import_smithy_client28.strictParseInt32)(output[_mNI]);
      }
      if (output[_mNC] != null) {
        contents[_MNC] = (0, import_smithy_client28.strictParseInt32)(output[_mNC]);
      }
      if (output[_dNCI] != null) {
        contents[_DNCI] = (0, import_smithy_client28.strictParseInt32)(output[_dNCI]);
      }
      if (output.networkCards === "") {
        contents[_NC] = [];
      } else if (output[_nC] != null && output[_nC][_i] != null) {
        contents[_NC] = de_NetworkCardInfoList((0, import_smithy_client28.getArrayIfSingleItem)(output[_nC][_i]), context);
      }
      if (output[_iAPI] != null) {
        contents[_IAPI] = (0, import_smithy_client28.strictParseInt32)(output[_iAPI]);
      }
      if (output[_iAPIp] != null) {
        contents[_IAPIp] = (0, import_smithy_client28.strictParseInt32)(output[_iAPIp]);
      }
      if (output[_iSpv] != null) {
        contents[_ISpv] = (0, import_smithy_client28.parseBoolean)(output[_iSpv]);
      }
      if (output[_eSna] != null) {
        contents[_ESn] = (0, import_smithy_client28.expectString)(output[_eSna]);
      }
      if (output[_eSf] != null) {
        contents[_ESf] = (0, import_smithy_client28.parseBoolean)(output[_eSf]);
      }
      if (output[_eIf] != null) {
        contents[_EIf] = de_EfaInfo(output[_eIf], context);
      }
      if (output[_eITSn] != null) {
        contents[_EITS] = (0, import_smithy_client28.parseBoolean)(output[_eITSn]);
      }
      if (output[_eSSn] != null) {
        contents[_ESSn] = (0, import_smithy_client28.parseBoolean)(output[_eSSn]);
      }
      if (output.bandwidthWeightings === "") {
        contents[_BWa] = [];
      } else if (output[_bWa] != null && output[_bWa][_i] != null) {
        contents[_BWa] = de_BandwidthWeightingTypeList((0, import_smithy_client28.getArrayIfSingleItem)(output[_bWa][_i]), context);
      }
      if (output[_fEQS] != null) {
        contents[_FEQS] = (0, import_smithy_client28.expectString)(output[_fEQS]);
      }
      return contents;
    }, "de_NetworkInfo");
    var de_NetworkInsightsAccessScope = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nIASI] != null) {
        contents[_NIASI] = (0, import_smithy_client28.expectString)(output[_nIASI]);
      }
      if (output[_nIASA] != null) {
        contents[_NIASAe] = (0, import_smithy_client28.expectString)(output[_nIASA]);
      }
      if (output[_cDre] != null) {
        contents[_CDrea] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_cDre]));
      }
      if (output[_uDp] != null) {
        contents[_UDp] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_uDp]));
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      return contents;
    }, "de_NetworkInsightsAccessScope");
    var de_NetworkInsightsAccessScopeAnalysis = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nIASAI] != null) {
        contents[_NIASAI] = (0, import_smithy_client28.expectString)(output[_nIASAI]);
      }
      if (output[_nIASAA] != null) {
        contents[_NIASAA] = (0, import_smithy_client28.expectString)(output[_nIASAA]);
      }
      if (output[_nIASI] != null) {
        contents[_NIASI] = (0, import_smithy_client28.expectString)(output[_nIASI]);
      }
      if (output[_sta] != null) {
        contents[_Statu] = (0, import_smithy_client28.expectString)(output[_sta]);
      }
      if (output[_sMt] != null) {
        contents[_SMt] = (0, import_smithy_client28.expectString)(output[_sMt]);
      }
      if (output[_wM] != null) {
        contents[_WM] = (0, import_smithy_client28.expectString)(output[_wM]);
      }
      if (output[_sD] != null) {
        contents[_SD] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_sD]));
      }
      if (output[_eD] != null) {
        contents[_ED] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_eD]));
      }
      if (output[_fFi] != null) {
        contents[_FFi] = (0, import_smithy_client28.expectString)(output[_fFi]);
      }
      if (output[_aEC] != null) {
        contents[_AEC] = (0, import_smithy_client28.strictParseInt32)(output[_aEC]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      return contents;
    }, "de_NetworkInsightsAccessScopeAnalysis");
    var de_NetworkInsightsAccessScopeAnalysisList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_NetworkInsightsAccessScopeAnalysis(entry, context);
      });
    }, "de_NetworkInsightsAccessScopeAnalysisList");
    var de_NetworkInsightsAccessScopeContent = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nIASI] != null) {
        contents[_NIASI] = (0, import_smithy_client28.expectString)(output[_nIASI]);
      }
      if (output.matchPathSet === "") {
        contents[_MP] = [];
      } else if (output[_mPSa] != null && output[_mPSa][_i] != null) {
        contents[_MP] = de_AccessScopePathList((0, import_smithy_client28.getArrayIfSingleItem)(output[_mPSa][_i]), context);
      }
      if (output.excludePathSet === "") {
        contents[_EP] = [];
      } else if (output[_ePS] != null && output[_ePS][_i] != null) {
        contents[_EP] = de_AccessScopePathList((0, import_smithy_client28.getArrayIfSingleItem)(output[_ePS][_i]), context);
      }
      return contents;
    }, "de_NetworkInsightsAccessScopeContent");
    var de_NetworkInsightsAccessScopeList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_NetworkInsightsAccessScope(entry, context);
      });
    }, "de_NetworkInsightsAccessScopeList");
    var de_NetworkInsightsAnalysis = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nIAI] != null) {
        contents[_NIAI] = (0, import_smithy_client28.expectString)(output[_nIAI]);
      }
      if (output[_nIAA] != null) {
        contents[_NIAA] = (0, import_smithy_client28.expectString)(output[_nIAA]);
      }
      if (output[_nIPI] != null) {
        contents[_NIPI] = (0, import_smithy_client28.expectString)(output[_nIPI]);
      }
      if (output.additionalAccountSet === "") {
        contents[_AAd] = [];
      } else if (output[_aASd] != null && output[_aASd][_i] != null) {
        contents[_AAd] = de_ValueStringList((0, import_smithy_client28.getArrayIfSingleItem)(output[_aASd][_i]), context);
      }
      if (output.filterInArnSet === "") {
        contents[_FIA] = [];
      } else if (output[_fIAS] != null && output[_fIAS][_i] != null) {
        contents[_FIA] = de_ArnList((0, import_smithy_client28.getArrayIfSingleItem)(output[_fIAS][_i]), context);
      }
      if (output.filterOutArnSet === "") {
        contents[_FOA] = [];
      } else if (output[_fOAS] != null && output[_fOAS][_i] != null) {
        contents[_FOA] = de_ArnList((0, import_smithy_client28.getArrayIfSingleItem)(output[_fOAS][_i]), context);
      }
      if (output[_sD] != null) {
        contents[_SD] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_sD]));
      }
      if (output[_sta] != null) {
        contents[_Statu] = (0, import_smithy_client28.expectString)(output[_sta]);
      }
      if (output[_sMt] != null) {
        contents[_SMt] = (0, import_smithy_client28.expectString)(output[_sMt]);
      }
      if (output[_wM] != null) {
        contents[_WM] = (0, import_smithy_client28.expectString)(output[_wM]);
      }
      if (output[_nPF] != null) {
        contents[_NPF] = (0, import_smithy_client28.parseBoolean)(output[_nPF]);
      }
      if (output.forwardPathComponentSet === "") {
        contents[_FPC] = [];
      } else if (output[_fPCS] != null && output[_fPCS][_i] != null) {
        contents[_FPC] = de_PathComponentList((0, import_smithy_client28.getArrayIfSingleItem)(output[_fPCS][_i]), context);
      }
      if (output.returnPathComponentSet === "") {
        contents[_RPC] = [];
      } else if (output[_rPCS] != null && output[_rPCS][_i] != null) {
        contents[_RPC] = de_PathComponentList((0, import_smithy_client28.getArrayIfSingleItem)(output[_rPCS][_i]), context);
      }
      if (output.explanationSet === "") {
        contents[_Ex] = [];
      } else if (output[_eSx] != null && output[_eSx][_i] != null) {
        contents[_Ex] = de_ExplanationList((0, import_smithy_client28.getArrayIfSingleItem)(output[_eSx][_i]), context);
      }
      if (output.alternatePathHintSet === "") {
        contents[_APH] = [];
      } else if (output[_aPHS] != null && output[_aPHS][_i] != null) {
        contents[_APH] = de_AlternatePathHintList((0, import_smithy_client28.getArrayIfSingleItem)(output[_aPHS][_i]), context);
      }
      if (output.suggestedAccountSet === "") {
        contents[_SAu] = [];
      } else if (output[_sASu] != null && output[_sASu][_i] != null) {
        contents[_SAu] = de_ValueStringList((0, import_smithy_client28.getArrayIfSingleItem)(output[_sASu][_i]), context);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      return contents;
    }, "de_NetworkInsightsAnalysis");
    var de_NetworkInsightsAnalysisList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_NetworkInsightsAnalysis(entry, context);
      });
    }, "de_NetworkInsightsAnalysisList");
    var de_NetworkInsightsPath = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nIPI] != null) {
        contents[_NIPI] = (0, import_smithy_client28.expectString)(output[_nIPI]);
      }
      if (output[_nIPA] != null) {
        contents[_NIPA] = (0, import_smithy_client28.expectString)(output[_nIPA]);
      }
      if (output[_cDre] != null) {
        contents[_CDrea] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_cDre]));
      }
      if (output[_s] != null) {
        contents[_S] = (0, import_smithy_client28.expectString)(output[_s]);
      }
      if (output[_d] != null) {
        contents[_D] = (0, import_smithy_client28.expectString)(output[_d]);
      }
      if (output[_sA] != null) {
        contents[_SAour] = (0, import_smithy_client28.expectString)(output[_sA]);
      }
      if (output[_dA] != null) {
        contents[_DAesti] = (0, import_smithy_client28.expectString)(output[_dA]);
      }
      if (output[_sIo] != null) {
        contents[_SIo] = (0, import_smithy_client28.expectString)(output[_sIo]);
      }
      if (output[_dIes] != null) {
        contents[_DIest] = (0, import_smithy_client28.expectString)(output[_dIes]);
      }
      if (output[_pr] != null) {
        contents[_P2] = (0, import_smithy_client28.expectString)(output[_pr]);
      }
      if (output[_dPes] != null) {
        contents[_DPe] = (0, import_smithy_client28.strictParseInt32)(output[_dPes]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_fAS] != null) {
        contents[_FAS] = de_PathFilter(output[_fAS], context);
      }
      if (output[_fAD] != null) {
        contents[_FAD] = de_PathFilter(output[_fAD], context);
      }
      return contents;
    }, "de_NetworkInsightsPath");
    var de_NetworkInsightsPathList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_NetworkInsightsPath(entry, context);
      });
    }, "de_NetworkInsightsPathList");
    var de_NetworkInterface = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ass] != null) {
        contents[_Asso] = de_NetworkInterfaceAssociation(output[_ass], context);
      }
      if (output[_at] != null) {
        contents[_Att] = de_NetworkInterfaceAttachment(output[_at], context);
      }
      if (output[_aZ] != null) {
        contents[_AZ] = (0, import_smithy_client28.expectString)(output[_aZ]);
      }
      if (output[_cTC] != null) {
        contents[_CTC] = de_ConnectionTrackingConfiguration(output[_cTC], context);
      }
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      if (output.groupSet === "") {
        contents[_G] = [];
      } else if (output[_gS] != null && output[_gS][_i] != null) {
        contents[_G] = de_GroupIdentifierList((0, import_smithy_client28.getArrayIfSingleItem)(output[_gS][_i]), context);
      }
      if (output[_iTnt] != null) {
        contents[_ITn] = (0, import_smithy_client28.expectString)(output[_iTnt]);
      }
      if (output.ipv6AddressesSet === "") {
        contents[_IA] = [];
      } else if (output[_iASp] != null && output[_iASp][_i] != null) {
        contents[_IA] = de_NetworkInterfaceIpv6AddressesList((0, import_smithy_client28.getArrayIfSingleItem)(output[_iASp][_i]), context);
      }
      if (output[_mAa] != null) {
        contents[_MAa] = (0, import_smithy_client28.expectString)(output[_mAa]);
      }
      if (output[_nII] != null) {
        contents[_NII] = (0, import_smithy_client28.expectString)(output[_nII]);
      }
      if (output[_oA] != null) {
        contents[_OA] = (0, import_smithy_client28.expectString)(output[_oA]);
      }
      if (output[_oI] != null) {
        contents[_OIwn] = (0, import_smithy_client28.expectString)(output[_oI]);
      }
      if (output[_pDNr] != null) {
        contents[_PDN] = (0, import_smithy_client28.expectString)(output[_pDNr]);
      }
      if (output[_pDNu] != null) {
        contents[_PDNub] = (0, import_smithy_client28.expectString)(output[_pDNu]);
      }
      if (output[_pIDNO] != null) {
        contents[_PIDNO] = de_PublicIpDnsNameOptions(output[_pIDNO], context);
      }
      if (output[_pIAr] != null) {
        contents[_PIAr] = (0, import_smithy_client28.expectString)(output[_pIAr]);
      }
      if (output.privateIpAddressesSet === "") {
        contents[_PIA] = [];
      } else if (output[_pIAS] != null && output[_pIAS][_i] != null) {
        contents[_PIA] = de_NetworkInterfacePrivateIpAddressList((0, import_smithy_client28.getArrayIfSingleItem)(output[_pIAS][_i]), context);
      }
      if (output.ipv4PrefixSet === "") {
        contents[_IPp] = [];
      } else if (output[_iPSpv] != null && output[_iPSpv][_i] != null) {
        contents[_IPp] = de_Ipv4PrefixesList((0, import_smithy_client28.getArrayIfSingleItem)(output[_iPSpv][_i]), context);
      }
      if (output.ipv6PrefixSet === "") {
        contents[_IP] = [];
      } else if (output[_iPSpvr] != null && output[_iPSpvr][_i] != null) {
        contents[_IP] = de_Ipv6PrefixesList((0, import_smithy_client28.getArrayIfSingleItem)(output[_iPSpvr][_i]), context);
      }
      if (output[_rIeq] != null) {
        contents[_RIeq] = (0, import_smithy_client28.expectString)(output[_rIeq]);
      }
      if (output[_rMe] != null) {
        contents[_RMeq] = (0, import_smithy_client28.parseBoolean)(output[_rMe]);
      }
      if (output[_sDC] != null) {
        contents[_SDC] = (0, import_smithy_client28.parseBoolean)(output[_sDC]);
      }
      if (output[_sta] != null) {
        contents[_Statu] = (0, import_smithy_client28.expectString)(output[_sta]);
      }
      if (output[_sIu] != null) {
        contents[_SIub] = (0, import_smithy_client28.expectString)(output[_sIu]);
      }
      if (output.tagSet === "") {
        contents[_TSag] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_TSag] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_vI] != null) {
        contents[_VI] = (0, import_smithy_client28.expectString)(output[_vI]);
      }
      if (output[_dAIT] != null) {
        contents[_DAIT] = (0, import_smithy_client28.parseBoolean)(output[_dAIT]);
      }
      if (output[_iN] != null) {
        contents[_IN] = (0, import_smithy_client28.parseBoolean)(output[_iN]);
      }
      if (output[_iApv] != null) {
        contents[_IApv] = (0, import_smithy_client28.expectString)(output[_iApv]);
      }
      if (output[_op] != null) {
        contents[_O] = de_OperatorResponse(output[_op], context);
      }
      if (output.associatedSubnetSet === "") {
        contents[_ASsso] = [];
      } else if (output[_aSSs] != null && output[_aSSs][_i] != null) {
        contents[_ASsso] = de_AssociatedSubnetList((0, import_smithy_client28.getArrayIfSingleItem)(output[_aSSs][_i]), context);
      }
      return contents;
    }, "de_NetworkInterface");
    var de_NetworkInterfaceAssociation = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aI] != null) {
        contents[_AIl] = (0, import_smithy_client28.expectString)(output[_aI]);
      }
      if (output[_aIs] != null) {
        contents[_AIss] = (0, import_smithy_client28.expectString)(output[_aIs]);
      }
      if (output[_iOIp] != null) {
        contents[_IOI] = (0, import_smithy_client28.expectString)(output[_iOIp]);
      }
      if (output[_pDNu] != null) {
        contents[_PDNub] = (0, import_smithy_client28.expectString)(output[_pDNu]);
      }
      if (output[_pI] != null) {
        contents[_PI2] = (0, import_smithy_client28.expectString)(output[_pI]);
      }
      if (output[_cOI] != null) {
        contents[_COI] = (0, import_smithy_client28.expectString)(output[_cOI]);
      }
      if (output[_cI] != null) {
        contents[_CIa] = (0, import_smithy_client28.expectString)(output[_cI]);
      }
      return contents;
    }, "de_NetworkInterfaceAssociation");
    var de_NetworkInterfaceAttachment = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aTt] != null) {
        contents[_ATtt] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_aTt]));
      }
      if (output[_aIt] != null) {
        contents[_AIt] = (0, import_smithy_client28.expectString)(output[_aIt]);
      }
      if (output[_dOT] != null) {
        contents[_DOT] = (0, import_smithy_client28.parseBoolean)(output[_dOT]);
      }
      if (output[_dIe] != null) {
        contents[_DIev] = (0, import_smithy_client28.strictParseInt32)(output[_dIe]);
      }
      if (output[_nCI] != null) {
        contents[_NCI] = (0, import_smithy_client28.strictParseInt32)(output[_nCI]);
      }
      if (output[_iI] != null) {
        contents[_IIn] = (0, import_smithy_client28.expectString)(output[_iI]);
      }
      if (output[_iOIn] != null) {
        contents[_IOIn] = (0, import_smithy_client28.expectString)(output[_iOIn]);
      }
      if (output[_sta] != null) {
        contents[_Statu] = (0, import_smithy_client28.expectString)(output[_sta]);
      }
      if (output[_eSS] != null) {
        contents[_ESS] = de_AttachmentEnaSrdSpecification(output[_eSS], context);
      }
      if (output[_eQC] != null) {
        contents[_EQC] = (0, import_smithy_client28.strictParseInt32)(output[_eQC]);
      }
      return contents;
    }, "de_NetworkInterfaceAttachment");
    var de_NetworkInterfaceCount = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_m2] != null) {
        contents[_M] = (0, import_smithy_client28.strictParseInt32)(output[_m2]);
      }
      if (output[_ma] != null) {
        contents[_Ma] = (0, import_smithy_client28.strictParseInt32)(output[_ma]);
      }
      return contents;
    }, "de_NetworkInterfaceCount");
    var de_NetworkInterfaceIdSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_NetworkInterfaceIdSet");
    var de_NetworkInterfaceIpv6Address = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iApv] != null) {
        contents[_IApv] = (0, import_smithy_client28.expectString)(output[_iApv]);
      }
      if (output[_pIDN] != null) {
        contents[_PIDN] = (0, import_smithy_client28.expectString)(output[_pIDN]);
      }
      if (output[_iPI] != null) {
        contents[_IPIs] = (0, import_smithy_client28.parseBoolean)(output[_iPI]);
      }
      return contents;
    }, "de_NetworkInterfaceIpv6Address");
    var de_NetworkInterfaceIpv6AddressesList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_NetworkInterfaceIpv6Address(entry, context);
      });
    }, "de_NetworkInterfaceIpv6AddressesList");
    var de_NetworkInterfaceList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_NetworkInterface(entry, context);
      });
    }, "de_NetworkInterfaceList");
    var de_NetworkInterfacePermission = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nIPIe] != null) {
        contents[_NIPIe] = (0, import_smithy_client28.expectString)(output[_nIPIe]);
      }
      if (output[_nII] != null) {
        contents[_NII] = (0, import_smithy_client28.expectString)(output[_nII]);
      }
      if (output[_aAI] != null) {
        contents[_AAI] = (0, import_smithy_client28.expectString)(output[_aAI]);
      }
      if (output[_aSw] != null) {
        contents[_ASw] = (0, import_smithy_client28.expectString)(output[_aSw]);
      }
      if (output[_per] != null) {
        contents[_Pe] = (0, import_smithy_client28.expectString)(output[_per]);
      }
      if (output[_pSe] != null) {
        contents[_PSer] = de_NetworkInterfacePermissionState(output[_pSe], context);
      }
      return contents;
    }, "de_NetworkInterfacePermission");
    var de_NetworkInterfacePermissionList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_NetworkInterfacePermission(entry, context);
      });
    }, "de_NetworkInterfacePermissionList");
    var de_NetworkInterfacePermissionState = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_sMt] != null) {
        contents[_SMt] = (0, import_smithy_client28.expectString)(output[_sMt]);
      }
      return contents;
    }, "de_NetworkInterfacePermissionState");
    var de_NetworkInterfacePrivateIpAddress = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ass] != null) {
        contents[_Asso] = de_NetworkInterfaceAssociation(output[_ass], context);
      }
      if (output[_prim] != null) {
        contents[_Prim] = (0, import_smithy_client28.parseBoolean)(output[_prim]);
      }
      if (output[_pDNr] != null) {
        contents[_PDN] = (0, import_smithy_client28.expectString)(output[_pDNr]);
      }
      if (output[_pIAr] != null) {
        contents[_PIAr] = (0, import_smithy_client28.expectString)(output[_pIAr]);
      }
      return contents;
    }, "de_NetworkInterfacePrivateIpAddress");
    var de_NetworkInterfacePrivateIpAddressList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_NetworkInterfacePrivateIpAddress(entry, context);
      });
    }, "de_NetworkInterfacePrivateIpAddressList");
    var de_NetworkNodesList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_NetworkNodesList");
    var de_NeuronDeviceCoreInfo = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cou] != null) {
        contents[_Cou] = (0, import_smithy_client28.strictParseInt32)(output[_cou]);
      }
      if (output[_ve] != null) {
        contents[_V2] = (0, import_smithy_client28.strictParseInt32)(output[_ve]);
      }
      return contents;
    }, "de_NeuronDeviceCoreInfo");
    var de_NeuronDeviceInfo = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cou] != null) {
        contents[_Cou] = (0, import_smithy_client28.strictParseInt32)(output[_cou]);
      }
      if (output[_n] != null) {
        contents[_N] = (0, import_smithy_client28.expectString)(output[_n]);
      }
      if (output[_cIor] != null) {
        contents[_CIor] = de_NeuronDeviceCoreInfo(output[_cIor], context);
      }
      if (output[_mIe] != null) {
        contents[_MIe] = de_NeuronDeviceMemoryInfo(output[_mIe], context);
      }
      return contents;
    }, "de_NeuronDeviceInfo");
    var de_NeuronDeviceInfoList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_NeuronDeviceInfo(entry, context);
      });
    }, "de_NeuronDeviceInfoList");
    var de_NeuronDeviceMemoryInfo = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sIMB] != null) {
        contents[_SIMB] = (0, import_smithy_client28.strictParseInt32)(output[_sIMB]);
      }
      return contents;
    }, "de_NeuronDeviceMemoryInfo");
    var de_NeuronInfo = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.neuronDevices === "") {
        contents[_NDe] = [];
      } else if (output[_nDe] != null && output[_nDe][_i] != null) {
        contents[_NDe] = de_NeuronDeviceInfoList((0, import_smithy_client28.getArrayIfSingleItem)(output[_nDe][_i]), context);
      }
      if (output[_tNDMIMB] != null) {
        contents[_TNDMIMB] = (0, import_smithy_client28.strictParseInt32)(output[_tNDMIMB]);
      }
      return contents;
    }, "de_NeuronInfo");
    var de_NitroTpmInfo = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.supportedVersions === "") {
        contents[_SVu] = [];
      } else if (output[_sVu] != null && output[_sVu][_i] != null) {
        contents[_SVu] = de_NitroTpmSupportedVersionsList((0, import_smithy_client28.getArrayIfSingleItem)(output[_sVu][_i]), context);
      }
      return contents;
    }, "de_NitroTpmInfo");
    var de_NitroTpmSupportedVersionsList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_NitroTpmSupportedVersionsList");
    var de_OccurrenceDaySet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.strictParseInt32)(entry);
      });
    }, "de_OccurrenceDaySet");
    var de_OidcOptions = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_is] != null) {
        contents[_I] = (0, import_smithy_client28.expectString)(output[_is]);
      }
      if (output[_aE] != null) {
        contents[_AE] = (0, import_smithy_client28.expectString)(output[_aE]);
      }
      if (output[_tEo] != null) {
        contents[_TEo] = (0, import_smithy_client28.expectString)(output[_tEo]);
      }
      if (output[_uIE] != null) {
        contents[_UIE] = (0, import_smithy_client28.expectString)(output[_uIE]);
      }
      if (output[_cIli] != null) {
        contents[_CIl] = (0, import_smithy_client28.expectString)(output[_cIli]);
      }
      if (output[_cSl] != null) {
        contents[_CSl] = (0, import_smithy_client28.expectString)(output[_cSl]);
      }
      if (output[_sc] != null) {
        contents[_Sc] = (0, import_smithy_client28.expectString)(output[_sc]);
      }
      return contents;
    }, "de_OidcOptions");
    var de_OnDemandOptions = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aSl] != null) {
        contents[_AS] = (0, import_smithy_client28.expectString)(output[_aSl]);
      }
      if (output[_cRO] != null) {
        contents[_CRO] = de_CapacityReservationOptions(output[_cRO], context);
      }
      if (output[_sITi] != null) {
        contents[_SITi] = (0, import_smithy_client28.parseBoolean)(output[_sITi]);
      }
      if (output[_sAZ] != null) {
        contents[_SAZ] = (0, import_smithy_client28.parseBoolean)(output[_sAZ]);
      }
      if (output[_mTC] != null) {
        contents[_MTC] = (0, import_smithy_client28.strictParseInt32)(output[_mTC]);
      }
      if (output[_mTP] != null) {
        contents[_MTP] = (0, import_smithy_client28.expectString)(output[_mTP]);
      }
      return contents;
    }, "de_OnDemandOptions");
    var de_OperatorResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_mana] != null) {
        contents[_Mana] = (0, import_smithy_client28.parseBoolean)(output[_mana]);
      }
      if (output[_p] != null) {
        contents[_Prin] = (0, import_smithy_client28.expectString)(output[_p]);
      }
      return contents;
    }, "de_OperatorResponse");
    var de_OutpostLag = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_oA] != null) {
        contents[_OA] = (0, import_smithy_client28.expectString)(output[_oA]);
      }
      if (output[_oI] != null) {
        contents[_OIwn] = (0, import_smithy_client28.expectString)(output[_oI]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_oLI] != null) {
        contents[_OLI] = (0, import_smithy_client28.expectString)(output[_oLI]);
      }
      if (output.localGatewayVirtualInterfaceIdSet === "") {
        contents[_LGVIIo] = [];
      } else if (output[_lGVIIS] != null && output[_lGVIIS][_i] != null) {
        contents[_LGVIIo] = de_LocalGatewayVirtualInterfaceIdSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_lGVIIS][_i]), context);
      }
      if (output.serviceLinkVirtualInterfaceIdSet === "") {
        contents[_SLVII] = [];
      } else if (output[_sLVIIS] != null && output[_sLVIIS][_i] != null) {
        contents[_SLVII] = de_ServiceLinkVirtualInterfaceIdSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_sLVIIS][_i]), context);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      return contents;
    }, "de_OutpostLag");
    var de_OutpostLagSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_OutpostLag(entry, context);
      });
    }, "de_OutpostLagSet");
    var de_PacketHeaderStatement = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.sourceAddressSet === "") {
        contents[_SAo] = [];
      } else if (output[_sAS] != null && output[_sAS][_i] != null) {
        contents[_SAo] = de_ValueStringList((0, import_smithy_client28.getArrayIfSingleItem)(output[_sAS][_i]), context);
      }
      if (output.destinationAddressSet === "") {
        contents[_DAes] = [];
      } else if (output[_dAS] != null && output[_dAS][_i] != null) {
        contents[_DAes] = de_ValueStringList((0, import_smithy_client28.getArrayIfSingleItem)(output[_dAS][_i]), context);
      }
      if (output.sourcePortSet === "") {
        contents[_SPo] = [];
      } else if (output[_sPS] != null && output[_sPS][_i] != null) {
        contents[_SPo] = de_ValueStringList((0, import_smithy_client28.getArrayIfSingleItem)(output[_sPS][_i]), context);
      }
      if (output.destinationPortSet === "") {
        contents[_DPes] = [];
      } else if (output[_dPS] != null && output[_dPS][_i] != null) {
        contents[_DPes] = de_ValueStringList((0, import_smithy_client28.getArrayIfSingleItem)(output[_dPS][_i]), context);
      }
      if (output.sourcePrefixListSet === "") {
        contents[_SPL] = [];
      } else if (output[_sPLS] != null && output[_sPLS][_i] != null) {
        contents[_SPL] = de_ValueStringList((0, import_smithy_client28.getArrayIfSingleItem)(output[_sPLS][_i]), context);
      }
      if (output.destinationPrefixListSet === "") {
        contents[_DPLe] = [];
      } else if (output[_dPLS] != null && output[_dPLS][_i] != null) {
        contents[_DPLe] = de_ValueStringList((0, import_smithy_client28.getArrayIfSingleItem)(output[_dPLS][_i]), context);
      }
      if (output.protocolSet === "") {
        contents[_Pro] = [];
      } else if (output[_pSro] != null && output[_pSro][_i] != null) {
        contents[_Pro] = de_ProtocolList((0, import_smithy_client28.getArrayIfSingleItem)(output[_pSro][_i]), context);
      }
      return contents;
    }, "de_PacketHeaderStatement");
    var de_PathComponent = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sNe] != null) {
        contents[_SNeq] = (0, import_smithy_client28.strictParseInt32)(output[_sNe]);
      }
      if (output[_aRc] != null) {
        contents[_ARcl] = de_AnalysisAclRule(output[_aRc], context);
      }
      if (output[_aTtt] != null) {
        contents[_ATtta] = de_AnalysisComponent(output[_aTtt], context);
      }
      if (output[_c] != null) {
        contents[_Com] = de_AnalysisComponent(output[_c], context);
      }
      if (output[_dV] != null) {
        contents[_DVest] = de_AnalysisComponent(output[_dV], context);
      }
      if (output[_oH] != null) {
        contents[_OH] = de_AnalysisPacketHeader(output[_oH], context);
      }
      if (output[_iHn] != null) {
        contents[_IHn] = de_AnalysisPacketHeader(output[_iHn], context);
      }
      if (output[_rTR] != null) {
        contents[_RTR] = de_AnalysisRouteTableRoute(output[_rTR], context);
      }
      if (output[_sGR] != null) {
        contents[_SGRe] = de_AnalysisSecurityGroupRule(output[_sGR], context);
      }
      if (output[_sV] != null) {
        contents[_SVo] = de_AnalysisComponent(output[_sV], context);
      }
      if (output[_su] != null) {
        contents[_Su] = de_AnalysisComponent(output[_su], context);
      }
      if (output[_vp] != null) {
        contents[_Vp] = de_AnalysisComponent(output[_vp], context);
      }
      if (output.additionalDetailSet === "") {
        contents[_ADd] = [];
      } else if (output[_aDS] != null && output[_aDS][_i] != null) {
        contents[_ADd] = de_AdditionalDetailList((0, import_smithy_client28.getArrayIfSingleItem)(output[_aDS][_i]), context);
      }
      if (output[_tG] != null) {
        contents[_TGr] = de_AnalysisComponent(output[_tG], context);
      }
      if (output[_tGRTR] != null) {
        contents[_TGRTR] = de_TransitGatewayRouteTableRoute(output[_tGRTR], context);
      }
      if (output.explanationSet === "") {
        contents[_Ex] = [];
      } else if (output[_eSx] != null && output[_eSx][_i] != null) {
        contents[_Ex] = de_ExplanationList((0, import_smithy_client28.getArrayIfSingleItem)(output[_eSx][_i]), context);
      }
      if (output[_eLBL] != null) {
        contents[_ELBL] = de_AnalysisComponent(output[_eLBL], context);
      }
      if (output[_fSR] != null) {
        contents[_FSRi] = de_FirewallStatelessRule(output[_fSR], context);
      }
      if (output[_fSRi] != null) {
        contents[_FSRir] = de_FirewallStatefulRule(output[_fSRi], context);
      }
      if (output[_sN] != null) {
        contents[_SNe] = (0, import_smithy_client28.expectString)(output[_sN]);
      }
      return contents;
    }, "de_PathComponent");
    var de_PathComponentList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_PathComponent(entry, context);
      });
    }, "de_PathComponentList");
    var de_PathFilter = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sAo] != null) {
        contents[_SAou] = (0, import_smithy_client28.expectString)(output[_sAo]);
      }
      if (output[_sPR] != null) {
        contents[_SPR] = de_FilterPortRange(output[_sPR], context);
      }
      if (output[_dAe] != null) {
        contents[_DAest] = (0, import_smithy_client28.expectString)(output[_dAe]);
      }
      if (output[_dPR] != null) {
        contents[_DPR] = de_FilterPortRange(output[_dPR], context);
      }
      return contents;
    }, "de_PathFilter");
    var de_PathStatement = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_pHS] != null) {
        contents[_PHS] = de_PacketHeaderStatement(output[_pHS], context);
      }
      if (output[_rSeso] != null) {
        contents[_RSe] = de_ResourceStatement(output[_rSeso], context);
      }
      return contents;
    }, "de_PathStatement");
    var de_PciId = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_DIevi] != null) {
        contents[_DIevi] = (0, import_smithy_client28.expectString)(output[_DIevi]);
      }
      if (output[_VIe] != null) {
        contents[_VIe] = (0, import_smithy_client28.expectString)(output[_VIe]);
      }
      if (output[_SIubs] != null) {
        contents[_SIubs] = (0, import_smithy_client28.expectString)(output[_SIubs]);
      }
      if (output[_SVI] != null) {
        contents[_SVI] = (0, import_smithy_client28.expectString)(output[_SVI]);
      }
      return contents;
    }, "de_PciId");
    var de_PeeringAttachmentStatus = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_co] != null) {
        contents[_Cod] = (0, import_smithy_client28.expectString)(output[_co]);
      }
      if (output[_me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_me]);
      }
      return contents;
    }, "de_PeeringAttachmentStatus");
    var de_PeeringConnectionOptions = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aDRFRV] != null) {
        contents[_ADRFRV] = (0, import_smithy_client28.parseBoolean)(output[_aDRFRV]);
      }
      if (output[_aEFLCLTRV] != null) {
        contents[_AEFLCLTRV] = (0, import_smithy_client28.parseBoolean)(output[_aEFLCLTRV]);
      }
      if (output[_aEFLVTRCL] != null) {
        contents[_AEFLVTRCL] = (0, import_smithy_client28.parseBoolean)(output[_aEFLVTRCL]);
      }
      return contents;
    }, "de_PeeringConnectionOptions");
    var de_PeeringTgwInfo = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tGI] != null) {
        contents[_TGI] = (0, import_smithy_client28.expectString)(output[_tGI]);
      }
      if (output[_cNIo] != null) {
        contents[_CNIor] = (0, import_smithy_client28.expectString)(output[_cNIo]);
      }
      if (output[_oI] != null) {
        contents[_OIwn] = (0, import_smithy_client28.expectString)(output[_oI]);
      }
      if (output[_re] != null) {
        contents[_Regi] = (0, import_smithy_client28.expectString)(output[_re]);
      }
      return contents;
    }, "de_PeeringTgwInfo");
    var de_PerformanceFactorReference = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iF] != null) {
        contents[_IF] = (0, import_smithy_client28.expectString)(output[_iF]);
      }
      return contents;
    }, "de_PerformanceFactorReference");
    var de_PerformanceFactorReferenceSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_PerformanceFactorReference(entry, context);
      });
    }, "de_PerformanceFactorReferenceSet");
    var de_Phase1DHGroupNumbersList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Phase1DHGroupNumbersListValue(entry, context);
      });
    }, "de_Phase1DHGroupNumbersList");
    var de_Phase1DHGroupNumbersListValue = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_v] != null) {
        contents[_Va2] = (0, import_smithy_client28.strictParseInt32)(output[_v]);
      }
      return contents;
    }, "de_Phase1DHGroupNumbersListValue");
    var de_Phase1EncryptionAlgorithmsList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Phase1EncryptionAlgorithmsListValue(entry, context);
      });
    }, "de_Phase1EncryptionAlgorithmsList");
    var de_Phase1EncryptionAlgorithmsListValue = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_v] != null) {
        contents[_Va2] = (0, import_smithy_client28.expectString)(output[_v]);
      }
      return contents;
    }, "de_Phase1EncryptionAlgorithmsListValue");
    var de_Phase1IntegrityAlgorithmsList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Phase1IntegrityAlgorithmsListValue(entry, context);
      });
    }, "de_Phase1IntegrityAlgorithmsList");
    var de_Phase1IntegrityAlgorithmsListValue = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_v] != null) {
        contents[_Va2] = (0, import_smithy_client28.expectString)(output[_v]);
      }
      return contents;
    }, "de_Phase1IntegrityAlgorithmsListValue");
    var de_Phase2DHGroupNumbersList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Phase2DHGroupNumbersListValue(entry, context);
      });
    }, "de_Phase2DHGroupNumbersList");
    var de_Phase2DHGroupNumbersListValue = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_v] != null) {
        contents[_Va2] = (0, import_smithy_client28.strictParseInt32)(output[_v]);
      }
      return contents;
    }, "de_Phase2DHGroupNumbersListValue");
    var de_Phase2EncryptionAlgorithmsList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Phase2EncryptionAlgorithmsListValue(entry, context);
      });
    }, "de_Phase2EncryptionAlgorithmsList");
    var de_Phase2EncryptionAlgorithmsListValue = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_v] != null) {
        contents[_Va2] = (0, import_smithy_client28.expectString)(output[_v]);
      }
      return contents;
    }, "de_Phase2EncryptionAlgorithmsListValue");
    var de_Phase2IntegrityAlgorithmsList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Phase2IntegrityAlgorithmsListValue(entry, context);
      });
    }, "de_Phase2IntegrityAlgorithmsList");
    var de_Phase2IntegrityAlgorithmsListValue = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_v] != null) {
        contents[_Va2] = (0, import_smithy_client28.expectString)(output[_v]);
      }
      return contents;
    }, "de_Phase2IntegrityAlgorithmsListValue");
    var de_Placement = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aZI] != null) {
        contents[_AZI] = (0, import_smithy_client28.expectString)(output[_aZI]);
      }
      if (output[_af] != null) {
        contents[_Af] = (0, import_smithy_client28.expectString)(output[_af]);
      }
      if (output[_gN] != null) {
        contents[_GN] = (0, import_smithy_client28.expectString)(output[_gN]);
      }
      if (output[_pN] != null) {
        contents[_PN] = (0, import_smithy_client28.strictParseInt32)(output[_pN]);
      }
      if (output[_hI] != null) {
        contents[_HIo] = (0, import_smithy_client28.expectString)(output[_hI]);
      }
      if (output[_t] != null) {
        contents[_Te] = (0, import_smithy_client28.expectString)(output[_t]);
      }
      if (output[_sDp] != null) {
        contents[_SDp] = (0, import_smithy_client28.expectString)(output[_sDp]);
      }
      if (output[_hRGA] != null) {
        contents[_HRGA] = (0, import_smithy_client28.expectString)(output[_hRGA]);
      }
      if (output[_gIr] != null) {
        contents[_GIr] = (0, import_smithy_client28.expectString)(output[_gIr]);
      }
      if (output[_aZ] != null) {
        contents[_AZ] = (0, import_smithy_client28.expectString)(output[_aZ]);
      }
      return contents;
    }, "de_Placement");
    var de_PlacementGroup = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_gN] != null) {
        contents[_GN] = (0, import_smithy_client28.expectString)(output[_gN]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_str] != null) {
        contents[_Str] = (0, import_smithy_client28.expectString)(output[_str]);
      }
      if (output[_pCa] != null) {
        contents[_PCa] = (0, import_smithy_client28.strictParseInt32)(output[_pCa]);
      }
      if (output[_gIr] != null) {
        contents[_GIr] = (0, import_smithy_client28.expectString)(output[_gIr]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_gA] != null) {
        contents[_GA] = (0, import_smithy_client28.expectString)(output[_gA]);
      }
      if (output[_sLp] != null) {
        contents[_SLp] = (0, import_smithy_client28.expectString)(output[_sLp]);
      }
      return contents;
    }, "de_PlacementGroup");
    var de_PlacementGroupInfo = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.supportedStrategies === "") {
        contents[_SSu] = [];
      } else if (output[_sSup] != null && output[_sSup][_i] != null) {
        contents[_SSu] = de_PlacementGroupStrategyList((0, import_smithy_client28.getArrayIfSingleItem)(output[_sSup][_i]), context);
      }
      return contents;
    }, "de_PlacementGroupInfo");
    var de_PlacementGroupList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_PlacementGroup(entry, context);
      });
    }, "de_PlacementGroupList");
    var de_PlacementGroupStrategyList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_PlacementGroupStrategyList");
    var de_PlacementResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_gN] != null) {
        contents[_GN] = (0, import_smithy_client28.expectString)(output[_gN]);
      }
      return contents;
    }, "de_PlacementResponse");
    var de_PoolCidrBlock = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_pCB] != null) {
        contents[_C2] = (0, import_smithy_client28.expectString)(output[_pCB]);
      }
      return contents;
    }, "de_PoolCidrBlock");
    var de_PoolCidrBlocksSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_PoolCidrBlock(entry, context);
      });
    }, "de_PoolCidrBlocksSet");
    var de_PortRange = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_fr] != null) {
        contents[_Fr] = (0, import_smithy_client28.strictParseInt32)(output[_fr]);
      }
      if (output[_to] != null) {
        contents[_To] = (0, import_smithy_client28.strictParseInt32)(output[_to]);
      }
      return contents;
    }, "de_PortRange");
    var de_PortRangeList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_PortRange(entry, context);
      });
    }, "de_PortRangeList");
    var de_PrefixList = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.cidrSet === "") {
        contents[_Ci] = [];
      } else if (output[_cS] != null && output[_cS][_i] != null) {
        contents[_Ci] = de_ValueStringList((0, import_smithy_client28.getArrayIfSingleItem)(output[_cS][_i]), context);
      }
      if (output[_pLI] != null) {
        contents[_PLI] = (0, import_smithy_client28.expectString)(output[_pLI]);
      }
      if (output[_pLN] != null) {
        contents[_PLN] = (0, import_smithy_client28.expectString)(output[_pLN]);
      }
      return contents;
    }, "de_PrefixList");
    var de_PrefixListAssociation = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_rIes] != null) {
        contents[_RIeso] = (0, import_smithy_client28.expectString)(output[_rIes]);
      }
      if (output[_rO] != null) {
        contents[_ROe] = (0, import_smithy_client28.expectString)(output[_rO]);
      }
      return contents;
    }, "de_PrefixListAssociation");
    var de_PrefixListAssociationSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_PrefixListAssociation(entry, context);
      });
    }, "de_PrefixListAssociationSet");
    var de_PrefixListEntry = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ci] != null) {
        contents[_C2] = (0, import_smithy_client28.expectString)(output[_ci]);
      }
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      return contents;
    }, "de_PrefixListEntry");
    var de_PrefixListEntrySet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_PrefixListEntry(entry, context);
      });
    }, "de_PrefixListEntrySet");
    var de_PrefixListId = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      if (output[_pLI] != null) {
        contents[_PLI] = (0, import_smithy_client28.expectString)(output[_pLI]);
      }
      return contents;
    }, "de_PrefixListId");
    var de_PrefixListIdList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_PrefixListId(entry, context);
      });
    }, "de_PrefixListIdList");
    var de_PrefixListIdSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_PrefixListIdSet");
    var de_PrefixListSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_PrefixList(entry, context);
      });
    }, "de_PrefixListSet");
    var de_PriceSchedule = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_act] != null) {
        contents[_Act] = (0, import_smithy_client28.parseBoolean)(output[_act]);
      }
      if (output[_cC] != null) {
        contents[_CCu] = (0, import_smithy_client28.expectString)(output[_cC]);
      }
      if (output[_pric] != null) {
        contents[_Pric] = (0, import_smithy_client28.strictParseFloat)(output[_pric]);
      }
      if (output[_te] != null) {
        contents[_Ter] = (0, import_smithy_client28.strictParseLong)(output[_te]);
      }
      return contents;
    }, "de_PriceSchedule");
    var de_PriceScheduleList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_PriceSchedule(entry, context);
      });
    }, "de_PriceScheduleList");
    var de_PricingDetail = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cou] != null) {
        contents[_Cou] = (0, import_smithy_client28.strictParseInt32)(output[_cou]);
      }
      if (output[_pric] != null) {
        contents[_Pric] = (0, import_smithy_client28.strictParseFloat)(output[_pric]);
      }
      return contents;
    }, "de_PricingDetail");
    var de_PricingDetailsList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_PricingDetail(entry, context);
      });
    }, "de_PricingDetailsList");
    var de_PrincipalIdFormat = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ar] != null) {
        contents[_Ar2] = (0, import_smithy_client28.expectString)(output[_ar]);
      }
      if (output.statusSet === "") {
        contents[_Status] = [];
      } else if (output[_sSt] != null && output[_sSt][_i] != null) {
        contents[_Status] = de_IdFormatList((0, import_smithy_client28.getArrayIfSingleItem)(output[_sSt][_i]), context);
      }
      return contents;
    }, "de_PrincipalIdFormat");
    var de_PrincipalIdFormatList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_PrincipalIdFormat(entry, context);
      });
    }, "de_PrincipalIdFormatList");
    var de_PrivateDnsDetails = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_pDNr] != null) {
        contents[_PDN] = (0, import_smithy_client28.expectString)(output[_pDNr]);
      }
      return contents;
    }, "de_PrivateDnsDetails");
    var de_PrivateDnsDetailsSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_PrivateDnsDetails(entry, context);
      });
    }, "de_PrivateDnsDetailsSet");
    var de_PrivateDnsNameConfiguration = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_ty] != null) {
        contents[_T2] = (0, import_smithy_client28.expectString)(output[_ty]);
      }
      if (output[_v] != null) {
        contents[_Va2] = (0, import_smithy_client28.expectString)(output[_v]);
      }
      if (output[_n] != null) {
        contents[_N] = (0, import_smithy_client28.expectString)(output[_n]);
      }
      return contents;
    }, "de_PrivateDnsNameConfiguration");
    var de_PrivateDnsNameOptionsOnLaunch = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_hTo] != null) {
        contents[_HTo] = (0, import_smithy_client28.expectString)(output[_hTo]);
      }
      if (output[_eRNDAR] != null) {
        contents[_ERNDAR] = (0, import_smithy_client28.parseBoolean)(output[_eRNDAR]);
      }
      if (output[_eRNDAAAAR] != null) {
        contents[_ERNDAAAAR] = (0, import_smithy_client28.parseBoolean)(output[_eRNDAAAAR]);
      }
      return contents;
    }, "de_PrivateDnsNameOptionsOnLaunch");
    var de_PrivateDnsNameOptionsResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_hTo] != null) {
        contents[_HTo] = (0, import_smithy_client28.expectString)(output[_hTo]);
      }
      if (output[_eRNDAR] != null) {
        contents[_ERNDAR] = (0, import_smithy_client28.parseBoolean)(output[_eRNDAR]);
      }
      if (output[_eRNDAAAAR] != null) {
        contents[_ERNDAAAAR] = (0, import_smithy_client28.parseBoolean)(output[_eRNDAAAAR]);
      }
      return contents;
    }, "de_PrivateDnsNameOptionsResponse");
    var de_PrivateIpAddressSpecification = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_prim] != null) {
        contents[_Prim] = (0, import_smithy_client28.parseBoolean)(output[_prim]);
      }
      if (output[_pIAr] != null) {
        contents[_PIAr] = (0, import_smithy_client28.expectString)(output[_pIAr]);
      }
      return contents;
    }, "de_PrivateIpAddressSpecification");
    var de_PrivateIpAddressSpecificationList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_PrivateIpAddressSpecification(entry, context);
      });
    }, "de_PrivateIpAddressSpecificationList");
    var de_ProcessorInfo = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.supportedArchitectures === "") {
        contents[_SAup] = [];
      } else if (output[_sAu] != null && output[_sAu][_i] != null) {
        contents[_SAup] = de_ArchitectureTypeList((0, import_smithy_client28.getArrayIfSingleItem)(output[_sAu][_i]), context);
      }
      if (output[_sCSIG] != null) {
        contents[_SCSIG] = (0, import_smithy_client28.strictParseFloat)(output[_sCSIG]);
      }
      if (output.supportedFeatures === "") {
        contents[_SF] = [];
      } else if (output[_sF] != null && output[_sF][_i] != null) {
        contents[_SF] = de_SupportedAdditionalProcessorFeatureList((0, import_smithy_client28.getArrayIfSingleItem)(output[_sF][_i]), context);
      }
      if (output[_man] != null) {
        contents[_Man] = (0, import_smithy_client28.expectString)(output[_man]);
      }
      return contents;
    }, "de_ProcessorInfo");
    var de_ProductCode = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_pCr] != null) {
        contents[_PCIr] = (0, import_smithy_client28.expectString)(output[_pCr]);
      }
      if (output[_ty] != null) {
        contents[_PCT] = (0, import_smithy_client28.expectString)(output[_ty]);
      }
      return contents;
    }, "de_ProductCode");
    var de_ProductCodeList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ProductCode(entry, context);
      });
    }, "de_ProductCodeList");
    var de_PropagatingVgw = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_gI] != null) {
        contents[_GI] = (0, import_smithy_client28.expectString)(output[_gI]);
      }
      return contents;
    }, "de_PropagatingVgw");
    var de_PropagatingVgwList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_PropagatingVgw(entry, context);
      });
    }, "de_PropagatingVgwList");
    var de_ProtocolIntList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.strictParseInt32)(entry);
      });
    }, "de_ProtocolIntList");
    var de_ProtocolList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_ProtocolList");
    var de_ProvisionByoipCidrResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_bC] != null) {
        contents[_BC] = de_ByoipCidr(output[_bC], context);
      }
      return contents;
    }, "de_ProvisionByoipCidrResult");
    var de_ProvisionedBandwidth = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_pTr] != null) {
        contents[_PTro] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_pTr]));
      }
      if (output[_prov] != null) {
        contents[_Prov] = (0, import_smithy_client28.expectString)(output[_prov]);
      }
      if (output[_rTeq] != null) {
        contents[_RTeq] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_rTeq]));
      }
      if (output[_req] != null) {
        contents[_Req] = (0, import_smithy_client28.expectString)(output[_req]);
      }
      if (output[_sta] != null) {
        contents[_Statu] = (0, import_smithy_client28.expectString)(output[_sta]);
      }
      return contents;
    }, "de_ProvisionedBandwidth");
    var de_ProvisionIpamByoasnResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_b] != null) {
        contents[_Byo] = de_Byoasn(output[_b], context);
      }
      return contents;
    }, "de_ProvisionIpamByoasnResult");
    var de_ProvisionIpamPoolCidrResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iPC] != null) {
        contents[_IPCpa] = de_IpamPoolCidr(output[_iPC], context);
      }
      return contents;
    }, "de_ProvisionIpamPoolCidrResult");
    var de_ProvisionPublicIpv4PoolCidrResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_pIo] != null) {
        contents[_PIo] = (0, import_smithy_client28.expectString)(output[_pIo]);
      }
      if (output[_pAR] != null) {
        contents[_PAR] = de_PublicIpv4PoolRange(output[_pAR], context);
      }
      return contents;
    }, "de_ProvisionPublicIpv4PoolCidrResult");
    var de_PtrUpdateStatus = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_v] != null) {
        contents[_Va2] = (0, import_smithy_client28.expectString)(output[_v]);
      }
      if (output[_sta] != null) {
        contents[_Statu] = (0, import_smithy_client28.expectString)(output[_sta]);
      }
      if (output[_rea] != null) {
        contents[_Rea] = (0, import_smithy_client28.expectString)(output[_rea]);
      }
      return contents;
    }, "de_PtrUpdateStatus");
    var de_PublicIpDnsNameOptions = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_dHT] != null) {
        contents[_DHT] = (0, import_smithy_client28.expectString)(output[_dHT]);
      }
      if (output[_pIDNu] != null) {
        contents[_PIDNu] = (0, import_smithy_client28.expectString)(output[_pIDNu]);
      }
      if (output[_pIDN] != null) {
        contents[_PIDN] = (0, import_smithy_client28.expectString)(output[_pIDN]);
      }
      if (output[_pDSDN] != null) {
        contents[_PDSDN] = (0, import_smithy_client28.expectString)(output[_pDSDN]);
      }
      return contents;
    }, "de_PublicIpDnsNameOptions");
    var de_PublicIpv4Pool = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_pIo] != null) {
        contents[_PIo] = (0, import_smithy_client28.expectString)(output[_pIo]);
      }
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      if (output.poolAddressRangeSet === "") {
        contents[_PARo] = [];
      } else if (output[_pARS] != null && output[_pARS][_i] != null) {
        contents[_PARo] = de_PublicIpv4PoolRangeSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_pARS][_i]), context);
      }
      if (output[_tACo] != null) {
        contents[_TACo] = (0, import_smithy_client28.strictParseInt32)(output[_tACo]);
      }
      if (output[_tAAC] != null) {
        contents[_TAAC] = (0, import_smithy_client28.strictParseInt32)(output[_tAAC]);
      }
      if (output[_nBG] != null) {
        contents[_NBG] = (0, import_smithy_client28.expectString)(output[_nBG]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      return contents;
    }, "de_PublicIpv4Pool");
    var de_PublicIpv4PoolRange = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_fAi] != null) {
        contents[_FAi] = (0, import_smithy_client28.expectString)(output[_fAi]);
      }
      if (output[_lAa] != null) {
        contents[_LAa] = (0, import_smithy_client28.expectString)(output[_lAa]);
      }
      if (output[_aCd] != null) {
        contents[_ACd] = (0, import_smithy_client28.strictParseInt32)(output[_aCd]);
      }
      if (output[_aAC] != null) {
        contents[_AACv] = (0, import_smithy_client28.strictParseInt32)(output[_aAC]);
      }
      return contents;
    }, "de_PublicIpv4PoolRange");
    var de_PublicIpv4PoolRangeSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_PublicIpv4PoolRange(entry, context);
      });
    }, "de_PublicIpv4PoolRangeSet");
    var de_PublicIpv4PoolSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_PublicIpv4Pool(entry, context);
      });
    }, "de_PublicIpv4PoolSet");
    var de_Purchase = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cC] != null) {
        contents[_CCu] = (0, import_smithy_client28.expectString)(output[_cC]);
      }
      if (output[_du] != null) {
        contents[_Du] = (0, import_smithy_client28.strictParseInt32)(output[_du]);
      }
      if (output.hostIdSet === "") {
        contents[_HIS] = [];
      } else if (output[_hIS] != null && output[_hIS][_i] != null) {
        contents[_HIS] = de_ResponseHostIdSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_hIS][_i]), context);
      }
      if (output[_hRI] != null) {
        contents[_HRI] = (0, import_smithy_client28.expectString)(output[_hRI]);
      }
      if (output[_hPo] != null) {
        contents[_HPo] = (0, import_smithy_client28.expectString)(output[_hPo]);
      }
      if (output[_iF] != null) {
        contents[_IF] = (0, import_smithy_client28.expectString)(output[_iF]);
      }
      if (output[_pO] != null) {
        contents[_PO] = (0, import_smithy_client28.expectString)(output[_pO]);
      }
      if (output[_uP] != null) {
        contents[_UPp] = (0, import_smithy_client28.expectString)(output[_uP]);
      }
      return contents;
    }, "de_Purchase");
    var de_PurchaseCapacityBlockExtensionResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.capacityBlockExtensionSet === "") {
        contents[_CBE] = [];
      } else if (output[_cBESa] != null && output[_cBESa][_i] != null) {
        contents[_CBE] = de_CapacityBlockExtensionSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_cBESa][_i]), context);
      }
      return contents;
    }, "de_PurchaseCapacityBlockExtensionResult");
    var de_PurchaseCapacityBlockResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cR] != null) {
        contents[_CRapa] = de_CapacityReservation(output[_cR], context);
      }
      if (output.capacityBlockSet === "") {
        contents[_CBa] = [];
      } else if (output[_cBS] != null && output[_cBS][_i] != null) {
        contents[_CBa] = de_CapacityBlockSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_cBS][_i]), context);
      }
      return contents;
    }, "de_PurchaseCapacityBlockResult");
    var de_PurchasedScheduledInstanceSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ScheduledInstance(entry, context);
      });
    }, "de_PurchasedScheduledInstanceSet");
    var de_PurchaseHostReservationResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cT] != null) {
        contents[_CTl] = (0, import_smithy_client28.expectString)(output[_cT]);
      }
      if (output[_cC] != null) {
        contents[_CCu] = (0, import_smithy_client28.expectString)(output[_cC]);
      }
      if (output.purchase === "") {
        contents[_Pur] = [];
      } else if (output[_pur] != null && output[_pur][_i] != null) {
        contents[_Pur] = de_PurchaseSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_pur][_i]), context);
      }
      if (output[_tHP] != null) {
        contents[_THP] = (0, import_smithy_client28.expectString)(output[_tHP]);
      }
      if (output[_tUP] != null) {
        contents[_TUP] = (0, import_smithy_client28.expectString)(output[_tUP]);
      }
      return contents;
    }, "de_PurchaseHostReservationResult");
    var de_PurchaseReservedInstancesOfferingResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_rII] != null) {
        contents[_RIIe] = (0, import_smithy_client28.expectString)(output[_rII]);
      }
      return contents;
    }, "de_PurchaseReservedInstancesOfferingResult");
    var de_PurchaseScheduledInstancesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.scheduledInstanceSet === "") {
        contents[_SIS] = [];
      } else if (output[_sIS] != null && output[_sIS][_i] != null) {
        contents[_SIS] = de_PurchasedScheduledInstanceSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_sIS][_i]), context);
      }
      return contents;
    }, "de_PurchaseScheduledInstancesResult");
    var de_PurchaseSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Purchase(entry, context);
      });
    }, "de_PurchaseSet");
    var de_RecurringCharge = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_am] != null) {
        contents[_Am] = (0, import_smithy_client28.strictParseFloat)(output[_am]);
      }
      if (output[_fre] != null) {
        contents[_Fre] = (0, import_smithy_client28.expectString)(output[_fre]);
      }
      return contents;
    }, "de_RecurringCharge");
    var de_RecurringChargesList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_RecurringCharge(entry, context);
      });
    }, "de_RecurringChargesList");
    var de_ReferencedSecurityGroup = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_gIr] != null) {
        contents[_GIr] = (0, import_smithy_client28.expectString)(output[_gIr]);
      }
      if (output[_pSee] != null) {
        contents[_PSe] = (0, import_smithy_client28.expectString)(output[_pSee]);
      }
      if (output[_uI] != null) {
        contents[_UIs] = (0, import_smithy_client28.expectString)(output[_uI]);
      }
      if (output[_vI] != null) {
        contents[_VI] = (0, import_smithy_client28.expectString)(output[_vI]);
      }
      if (output[_vPCI] != null) {
        contents[_VPCI] = (0, import_smithy_client28.expectString)(output[_vPCI]);
      }
      return contents;
    }, "de_ReferencedSecurityGroup");
    var de_Region = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_oIS] != null) {
        contents[_OIS] = (0, import_smithy_client28.expectString)(output[_oIS]);
      }
      if (output[_rNe] != null) {
        contents[_RN] = (0, import_smithy_client28.expectString)(output[_rNe]);
      }
      if (output[_rEe] != null) {
        contents[_Endp] = (0, import_smithy_client28.expectString)(output[_rEe]);
      }
      return contents;
    }, "de_Region");
    var de_RegionalSummary = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_rNe] != null) {
        contents[_RN] = (0, import_smithy_client28.expectString)(output[_rNe]);
      }
      if (output[_nOMA] != null) {
        contents[_NOMA] = (0, import_smithy_client28.strictParseInt32)(output[_nOMA]);
      }
      if (output[_nOUA] != null) {
        contents[_NOUA] = (0, import_smithy_client28.strictParseInt32)(output[_nOUA]);
      }
      return contents;
    }, "de_RegionalSummary");
    var de_RegionalSummaryList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_RegionalSummary(entry, context);
      });
    }, "de_RegionalSummaryList");
    var de_RegionList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Region(entry, context);
      });
    }, "de_RegionList");
    var de_RegisterImageResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iIma] != null) {
        contents[_IIma] = (0, import_smithy_client28.expectString)(output[_iIma]);
      }
      return contents;
    }, "de_RegisterImageResult");
    var de_RegisterInstanceEventNotificationAttributesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iTA] != null) {
        contents[_ITA] = de_InstanceTagNotificationAttribute(output[_iTA], context);
      }
      return contents;
    }, "de_RegisterInstanceEventNotificationAttributesResult");
    var de_RegisterTransitGatewayMulticastGroupMembersResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_rMGM] != null) {
        contents[_RMGM] = de_TransitGatewayMulticastRegisteredGroupMembers(output[_rMGM], context);
      }
      return contents;
    }, "de_RegisterTransitGatewayMulticastGroupMembersResult");
    var de_RegisterTransitGatewayMulticastGroupSourcesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_rMGS] != null) {
        contents[_RMGS] = de_TransitGatewayMulticastRegisteredGroupSources(output[_rMGS], context);
      }
      return contents;
    }, "de_RegisterTransitGatewayMulticastGroupSourcesResult");
    var de_RejectCapacityReservationBillingOwnershipResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_Ret] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      return contents;
    }, "de_RejectCapacityReservationBillingOwnershipResult");
    var de_RejectTransitGatewayMulticastDomainAssociationsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_a2] != null) {
        contents[_Ass] = de_TransitGatewayMulticastDomainAssociations(output[_a2], context);
      }
      return contents;
    }, "de_RejectTransitGatewayMulticastDomainAssociationsResult");
    var de_RejectTransitGatewayPeeringAttachmentResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tGPA] != null) {
        contents[_TGPA] = de_TransitGatewayPeeringAttachment(output[_tGPA], context);
      }
      return contents;
    }, "de_RejectTransitGatewayPeeringAttachmentResult");
    var de_RejectTransitGatewayVpcAttachmentResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tGVA] != null) {
        contents[_TGVA] = de_TransitGatewayVpcAttachment(output[_tGVA], context);
      }
      return contents;
    }, "de_RejectTransitGatewayVpcAttachmentResult");
    var de_RejectVpcEndpointConnectionsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.unsuccessful === "") {
        contents[_Un] = [];
      } else if (output[_u] != null && output[_u][_i] != null) {
        contents[_Un] = de_UnsuccessfulItemSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_u][_i]), context);
      }
      return contents;
    }, "de_RejectVpcEndpointConnectionsResult");
    var de_RejectVpcPeeringConnectionResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_Ret] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      return contents;
    }, "de_RejectVpcPeeringConnectionResult");
    var de_ReleaseHostsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.successful === "") {
        contents[_Suc] = [];
      } else if (output[_suc] != null && output[_suc][_i] != null) {
        contents[_Suc] = de_ResponseHostIdList((0, import_smithy_client28.getArrayIfSingleItem)(output[_suc][_i]), context);
      }
      if (output.unsuccessful === "") {
        contents[_Un] = [];
      } else if (output[_u] != null && output[_u][_i] != null) {
        contents[_Un] = de_UnsuccessfulItemList((0, import_smithy_client28.getArrayIfSingleItem)(output[_u][_i]), context);
      }
      return contents;
    }, "de_ReleaseHostsResult");
    var de_ReleaseIpamPoolAllocationResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_succ] != null) {
        contents[_Succ] = (0, import_smithy_client28.parseBoolean)(output[_succ]);
      }
      return contents;
    }, "de_ReleaseIpamPoolAllocationResult");
    var de_ReplaceIamInstanceProfileAssociationResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iIPA] != null) {
        contents[_IIPA] = de_IamInstanceProfileAssociation(output[_iIPA], context);
      }
      return contents;
    }, "de_ReplaceIamInstanceProfileAssociationResult");
    var de_ReplaceImageCriteriaInAllowedImagesSettingsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_RV] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      return contents;
    }, "de_ReplaceImageCriteriaInAllowedImagesSettingsResult");
    var de_ReplaceNetworkAclAssociationResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nAIe] != null) {
        contents[_NAIew] = (0, import_smithy_client28.expectString)(output[_nAIe]);
      }
      return contents;
    }, "de_ReplaceNetworkAclAssociationResult");
    var de_ReplaceRootVolumeTask = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_rRVTI] != null) {
        contents[_RRVTIe] = (0, import_smithy_client28.expectString)(output[_rRVTI]);
      }
      if (output[_iI] != null) {
        contents[_IIn] = (0, import_smithy_client28.expectString)(output[_iI]);
      }
      if (output[_tSas] != null) {
        contents[_TSas] = (0, import_smithy_client28.expectString)(output[_tSas]);
      }
      if (output[_sT] != null) {
        contents[_STt] = (0, import_smithy_client28.expectString)(output[_sT]);
      }
      if (output[_cTom] != null) {
        contents[_CTom] = (0, import_smithy_client28.expectString)(output[_cTom]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_iIma] != null) {
        contents[_IIma] = (0, import_smithy_client28.expectString)(output[_iIma]);
      }
      if (output[_sIn] != null) {
        contents[_SIn] = (0, import_smithy_client28.expectString)(output[_sIn]);
      }
      if (output[_dRRV] != null) {
        contents[_DRRV] = (0, import_smithy_client28.parseBoolean)(output[_dRRV]);
      }
      return contents;
    }, "de_ReplaceRootVolumeTask");
    var de_ReplaceRootVolumeTasks = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ReplaceRootVolumeTask(entry, context);
      });
    }, "de_ReplaceRootVolumeTasks");
    var de_ReplaceRouteTableAssociationResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nAIe] != null) {
        contents[_NAIew] = (0, import_smithy_client28.expectString)(output[_nAIe]);
      }
      if (output[_aS] != null) {
        contents[_ASs] = de_RouteTableAssociationState(output[_aS], context);
      }
      return contents;
    }, "de_ReplaceRouteTableAssociationResult");
    var de_ReplaceTransitGatewayRouteResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ro] != null) {
        contents[_Rou] = de_TransitGatewayRoute(output[_ro], context);
      }
      return contents;
    }, "de_ReplaceTransitGatewayRouteResult");
    var de_ReplaceVpnTunnelResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_Ret] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      return contents;
    }, "de_ReplaceVpnTunnelResult");
    var de_RequestSpotFleetResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sFRI] != null) {
        contents[_SFRIp] = (0, import_smithy_client28.expectString)(output[_sFRI]);
      }
      return contents;
    }, "de_RequestSpotFleetResponse");
    var de_RequestSpotInstancesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.spotInstanceRequestSet === "") {
        contents[_SIR] = [];
      } else if (output[_sIRS] != null && output[_sIRS][_i] != null) {
        contents[_SIR] = de_SpotInstanceRequestList((0, import_smithy_client28.getArrayIfSingleItem)(output[_sIRS][_i]), context);
      }
      return contents;
    }, "de_RequestSpotInstancesResult");
    var de_Reservation = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_rIese] != null) {
        contents[_RIeser] = (0, import_smithy_client28.expectString)(output[_rIese]);
      }
      if (output[_oI] != null) {
        contents[_OIwn] = (0, import_smithy_client28.expectString)(output[_oI]);
      }
      if (output[_rIeq] != null) {
        contents[_RIeq] = (0, import_smithy_client28.expectString)(output[_rIeq]);
      }
      if (output.groupSet === "") {
        contents[_G] = [];
      } else if (output[_gS] != null && output[_gS][_i] != null) {
        contents[_G] = de_GroupIdentifierList((0, import_smithy_client28.getArrayIfSingleItem)(output[_gS][_i]), context);
      }
      if (output.instancesSet === "") {
        contents[_In] = [];
      } else if (output[_iSn] != null && output[_iSn][_i] != null) {
        contents[_In] = de_InstanceList((0, import_smithy_client28.getArrayIfSingleItem)(output[_iSn][_i]), context);
      }
      return contents;
    }, "de_Reservation");
    var de_ReservationList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Reservation(entry, context);
      });
    }, "de_ReservationList");
    var de_ReservationValue = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_hPo] != null) {
        contents[_HPo] = (0, import_smithy_client28.expectString)(output[_hPo]);
      }
      if (output[_rTV] != null) {
        contents[_RTV] = (0, import_smithy_client28.expectString)(output[_rTV]);
      }
      if (output[_rUV] != null) {
        contents[_RUV] = (0, import_smithy_client28.expectString)(output[_rUV]);
      }
      return contents;
    }, "de_ReservationValue");
    var de_ReservedInstanceReservationValue = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_rVe] != null) {
        contents[_RVe] = de_ReservationValue(output[_rVe], context);
      }
      if (output[_rIIe] != null) {
        contents[_RIIese] = (0, import_smithy_client28.expectString)(output[_rIIe]);
      }
      return contents;
    }, "de_ReservedInstanceReservationValue");
    var de_ReservedInstanceReservationValueSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ReservedInstanceReservationValue(entry, context);
      });
    }, "de_ReservedInstanceReservationValueSet");
    var de_ReservedInstances = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cC] != null) {
        contents[_CCu] = (0, import_smithy_client28.expectString)(output[_cC]);
      }
      if (output[_iTns] != null) {
        contents[_ITns] = (0, import_smithy_client28.expectString)(output[_iTns]);
      }
      if (output[_oC] != null) {
        contents[_OC] = (0, import_smithy_client28.expectString)(output[_oC]);
      }
      if (output[_oTf] != null) {
        contents[_OT] = (0, import_smithy_client28.expectString)(output[_oTf]);
      }
      if (output.recurringCharges === "") {
        contents[_RCec] = [];
      } else if (output[_rCec] != null && output[_rCec][_i] != null) {
        contents[_RCec] = de_RecurringChargesList((0, import_smithy_client28.getArrayIfSingleItem)(output[_rCec][_i]), context);
      }
      if (output[_sc] != null) {
        contents[_Sc] = (0, import_smithy_client28.expectString)(output[_sc]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_aZI] != null) {
        contents[_AZI] = (0, import_smithy_client28.expectString)(output[_aZI]);
      }
      if (output[_rII] != null) {
        contents[_RIIe] = (0, import_smithy_client28.expectString)(output[_rII]);
      }
      if (output[_iT] != null) {
        contents[_IT] = (0, import_smithy_client28.expectString)(output[_iT]);
      }
      if (output[_aZ] != null) {
        contents[_AZ] = (0, import_smithy_client28.expectString)(output[_aZ]);
      }
      if (output[_star] != null) {
        contents[_Star] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_star]));
      }
      if (output[_end] != null) {
        contents[_End] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_end]));
      }
      if (output[_du] != null) {
        contents[_Du] = (0, import_smithy_client28.strictParseLong)(output[_du]);
      }
      if (output[_uPs] != null) {
        contents[_UPs] = (0, import_smithy_client28.strictParseFloat)(output[_uPs]);
      }
      if (output[_fPix] != null) {
        contents[_FPix] = (0, import_smithy_client28.strictParseFloat)(output[_fPix]);
      }
      if (output[_iC] != null) {
        contents[_IC] = (0, import_smithy_client28.strictParseInt32)(output[_iC]);
      }
      if (output[_pDr] != null) {
        contents[_PDr] = (0, import_smithy_client28.expectString)(output[_pDr]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      return contents;
    }, "de_ReservedInstances");
    var de_ReservedInstancesConfiguration = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aZ] != null) {
        contents[_AZ] = (0, import_smithy_client28.expectString)(output[_aZ]);
      }
      if (output[_iC] != null) {
        contents[_IC] = (0, import_smithy_client28.strictParseInt32)(output[_iC]);
      }
      if (output[_iT] != null) {
        contents[_IT] = (0, import_smithy_client28.expectString)(output[_iT]);
      }
      if (output[_pl] != null) {
        contents[_Pla] = (0, import_smithy_client28.expectString)(output[_pl]);
      }
      if (output[_sc] != null) {
        contents[_Sc] = (0, import_smithy_client28.expectString)(output[_sc]);
      }
      if (output[_aZI] != null) {
        contents[_AZI] = (0, import_smithy_client28.expectString)(output[_aZI]);
      }
      return contents;
    }, "de_ReservedInstancesConfiguration");
    var de_ReservedInstancesId = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_rII] != null) {
        contents[_RIIe] = (0, import_smithy_client28.expectString)(output[_rII]);
      }
      return contents;
    }, "de_ReservedInstancesId");
    var de_ReservedInstancesList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ReservedInstances(entry, context);
      });
    }, "de_ReservedInstancesList");
    var de_ReservedInstancesListing = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cT] != null) {
        contents[_CTl] = (0, import_smithy_client28.expectString)(output[_cT]);
      }
      if (output[_cD] != null) {
        contents[_CDr] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_cD]));
      }
      if (output.instanceCounts === "") {
        contents[_ICn] = [];
      } else if (output[_iCn] != null && output[_iCn][_i] != null) {
        contents[_ICn] = de_InstanceCountList((0, import_smithy_client28.getArrayIfSingleItem)(output[_iCn][_i]), context);
      }
      if (output.priceSchedules === "") {
        contents[_PS] = [];
      } else if (output[_pSric] != null && output[_pSric][_i] != null) {
        contents[_PS] = de_PriceScheduleList((0, import_smithy_client28.getArrayIfSingleItem)(output[_pSric][_i]), context);
      }
      if (output[_rII] != null) {
        contents[_RIIe] = (0, import_smithy_client28.expectString)(output[_rII]);
      }
      if (output[_rILI] != null) {
        contents[_RILI] = (0, import_smithy_client28.expectString)(output[_rILI]);
      }
      if (output[_sta] != null) {
        contents[_Statu] = (0, import_smithy_client28.expectString)(output[_sta]);
      }
      if (output[_sMt] != null) {
        contents[_SMt] = (0, import_smithy_client28.expectString)(output[_sMt]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_uDpd] != null) {
        contents[_UDpd] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_uDpd]));
      }
      return contents;
    }, "de_ReservedInstancesListing");
    var de_ReservedInstancesListingList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ReservedInstancesListing(entry, context);
      });
    }, "de_ReservedInstancesListingList");
    var de_ReservedInstancesModification = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cT] != null) {
        contents[_CTl] = (0, import_smithy_client28.expectString)(output[_cT]);
      }
      if (output[_cD] != null) {
        contents[_CDr] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_cD]));
      }
      if (output[_eDf] != null) {
        contents[_EDf] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_eDf]));
      }
      if (output.modificationResultSet === "") {
        contents[_MRo] = [];
      } else if (output[_mRS] != null && output[_mRS][_i] != null) {
        contents[_MRo] = de_ReservedInstancesModificationResultList((0, import_smithy_client28.getArrayIfSingleItem)(output[_mRS][_i]), context);
      }
      if (output.reservedInstancesSet === "") {
        contents[_RIIes] = [];
      } else if (output[_rIS] != null && output[_rIS][_i] != null) {
        contents[_RIIes] = de_ReservedIntancesIds((0, import_smithy_client28.getArrayIfSingleItem)(output[_rIS][_i]), context);
      }
      if (output[_rIMI] != null) {
        contents[_RIMIe] = (0, import_smithy_client28.expectString)(output[_rIMI]);
      }
      if (output[_sta] != null) {
        contents[_Statu] = (0, import_smithy_client28.expectString)(output[_sta]);
      }
      if (output[_sMt] != null) {
        contents[_SMt] = (0, import_smithy_client28.expectString)(output[_sMt]);
      }
      if (output[_uDpd] != null) {
        contents[_UDpd] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_uDpd]));
      }
      return contents;
    }, "de_ReservedInstancesModification");
    var de_ReservedInstancesModificationList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ReservedInstancesModification(entry, context);
      });
    }, "de_ReservedInstancesModificationList");
    var de_ReservedInstancesModificationResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_rII] != null) {
        contents[_RIIe] = (0, import_smithy_client28.expectString)(output[_rII]);
      }
      if (output[_tCa] != null) {
        contents[_TCar] = de_ReservedInstancesConfiguration(output[_tCa], context);
      }
      return contents;
    }, "de_ReservedInstancesModificationResult");
    var de_ReservedInstancesModificationResultList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ReservedInstancesModificationResult(entry, context);
      });
    }, "de_ReservedInstancesModificationResultList");
    var de_ReservedInstancesOffering = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cC] != null) {
        contents[_CCu] = (0, import_smithy_client28.expectString)(output[_cC]);
      }
      if (output[_iTns] != null) {
        contents[_ITns] = (0, import_smithy_client28.expectString)(output[_iTns]);
      }
      if (output[_mar] != null) {
        contents[_Mar] = (0, import_smithy_client28.parseBoolean)(output[_mar]);
      }
      if (output[_oC] != null) {
        contents[_OC] = (0, import_smithy_client28.expectString)(output[_oC]);
      }
      if (output[_oTf] != null) {
        contents[_OT] = (0, import_smithy_client28.expectString)(output[_oTf]);
      }
      if (output.pricingDetailsSet === "") {
        contents[_PDri] = [];
      } else if (output[_pDS] != null && output[_pDS][_i] != null) {
        contents[_PDri] = de_PricingDetailsList((0, import_smithy_client28.getArrayIfSingleItem)(output[_pDS][_i]), context);
      }
      if (output.recurringCharges === "") {
        contents[_RCec] = [];
      } else if (output[_rCec] != null && output[_rCec][_i] != null) {
        contents[_RCec] = de_RecurringChargesList((0, import_smithy_client28.getArrayIfSingleItem)(output[_rCec][_i]), context);
      }
      if (output[_sc] != null) {
        contents[_Sc] = (0, import_smithy_client28.expectString)(output[_sc]);
      }
      if (output[_aZI] != null) {
        contents[_AZI] = (0, import_smithy_client28.expectString)(output[_aZI]);
      }
      if (output[_rIOI] != null) {
        contents[_RIOIe] = (0, import_smithy_client28.expectString)(output[_rIOI]);
      }
      if (output[_iT] != null) {
        contents[_IT] = (0, import_smithy_client28.expectString)(output[_iT]);
      }
      if (output[_aZ] != null) {
        contents[_AZ] = (0, import_smithy_client28.expectString)(output[_aZ]);
      }
      if (output[_du] != null) {
        contents[_Du] = (0, import_smithy_client28.strictParseLong)(output[_du]);
      }
      if (output[_uPs] != null) {
        contents[_UPs] = (0, import_smithy_client28.strictParseFloat)(output[_uPs]);
      }
      if (output[_fPix] != null) {
        contents[_FPix] = (0, import_smithy_client28.strictParseFloat)(output[_fPix]);
      }
      if (output[_pDr] != null) {
        contents[_PDr] = (0, import_smithy_client28.expectString)(output[_pDr]);
      }
      return contents;
    }, "de_ReservedInstancesOffering");
    var de_ReservedInstancesOfferingList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ReservedInstancesOffering(entry, context);
      });
    }, "de_ReservedInstancesOfferingList");
    var de_ReservedIntancesIds = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ReservedInstancesId(entry, context);
      });
    }, "de_ReservedIntancesIds");
    var de_ResetAddressAttributeResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ad] != null) {
        contents[_Ad] = de_AddressAttribute(output[_ad], context);
      }
      return contents;
    }, "de_ResetAddressAttributeResult");
    var de_ResetEbsDefaultKmsKeyIdResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_kKI] != null) {
        contents[_KKI] = (0, import_smithy_client28.expectString)(output[_kKI]);
      }
      return contents;
    }, "de_ResetEbsDefaultKmsKeyIdResult");
    var de_ResetFpgaImageAttributeResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_Ret] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      return contents;
    }, "de_ResetFpgaImageAttributeResult");
    var de_ResourceStatement = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.resourceSet === "") {
        contents[_Re] = [];
      } else if (output[_rSesou] != null && output[_rSesou][_i] != null) {
        contents[_Re] = de_ValueStringList((0, import_smithy_client28.getArrayIfSingleItem)(output[_rSesou][_i]), context);
      }
      if (output.resourceTypeSet === "") {
        contents[_RTe] = [];
      } else if (output[_rTSe] != null && output[_rTSe][_i] != null) {
        contents[_RTe] = de_ValueStringList((0, import_smithy_client28.getArrayIfSingleItem)(output[_rTSe][_i]), context);
      }
      return contents;
    }, "de_ResourceStatement");
    var de_ResponseError = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_co] != null) {
        contents[_Cod] = (0, import_smithy_client28.expectString)(output[_co]);
      }
      if (output[_me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_me]);
      }
      return contents;
    }, "de_ResponseError");
    var de_ResponseHostIdList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_ResponseHostIdList");
    var de_ResponseHostIdSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_ResponseHostIdSet");
    var de_ResponseLaunchTemplateData = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_kI] != null) {
        contents[_KI] = (0, import_smithy_client28.expectString)(output[_kI]);
      }
      if (output[_eO] != null) {
        contents[_EO] = (0, import_smithy_client28.parseBoolean)(output[_eO]);
      }
      if (output[_iIP] != null) {
        contents[_IIP] = de_LaunchTemplateIamInstanceProfileSpecification(output[_iIP], context);
      }
      if (output.blockDeviceMappingSet === "") {
        contents[_BDM] = [];
      } else if (output[_bDMS] != null && output[_bDMS][_i] != null) {
        contents[_BDM] = de_LaunchTemplateBlockDeviceMappingList((0, import_smithy_client28.getArrayIfSingleItem)(output[_bDMS][_i]), context);
      }
      if (output.networkInterfaceSet === "") {
        contents[_NI] = [];
      } else if (output[_nIS] != null && output[_nIS][_i] != null) {
        contents[_NI] = de_LaunchTemplateInstanceNetworkInterfaceSpecificationList(
          (0, import_smithy_client28.getArrayIfSingleItem)(output[_nIS][_i]),
          context
        );
      }
      if (output[_iIma] != null) {
        contents[_IIma] = (0, import_smithy_client28.expectString)(output[_iIma]);
      }
      if (output[_iT] != null) {
        contents[_IT] = (0, import_smithy_client28.expectString)(output[_iT]);
      }
      if (output[_kN] != null) {
        contents[_KN] = (0, import_smithy_client28.expectString)(output[_kN]);
      }
      if (output[_mo] != null) {
        contents[_Mon] = de_LaunchTemplatesMonitoring(output[_mo], context);
      }
      if (output[_pla] != null) {
        contents[_Pl] = de_LaunchTemplatePlacement(output[_pla], context);
      }
      if (output[_rDI] != null) {
        contents[_RDI] = (0, import_smithy_client28.expectString)(output[_rDI]);
      }
      if (output[_dAT] != null) {
        contents[_DATis] = (0, import_smithy_client28.parseBoolean)(output[_dAT]);
      }
      if (output[_iISB] != null) {
        contents[_IISB] = (0, import_smithy_client28.expectString)(output[_iISB]);
      }
      if (output[_uDs] != null) {
        contents[_UD] = (0, import_smithy_client28.expectString)(output[_uDs]);
      }
      if (output.tagSpecificationSet === "") {
        contents[_TS] = [];
      } else if (output[_tSS] != null && output[_tSS][_i] != null) {
        contents[_TS] = de_LaunchTemplateTagSpecificationList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tSS][_i]), context);
      }
      if (output.elasticGpuSpecificationSet === "") {
        contents[_EGS] = [];
      } else if (output[_eGSS] != null && output[_eGSS][_i] != null) {
        contents[_EGS] = de_ElasticGpuSpecificationResponseList((0, import_smithy_client28.getArrayIfSingleItem)(output[_eGSS][_i]), context);
      }
      if (output.elasticInferenceAcceleratorSet === "") {
        contents[_EIA] = [];
      } else if (output[_eIAS] != null && output[_eIAS][_i] != null) {
        contents[_EIA] = de_LaunchTemplateElasticInferenceAcceleratorResponseList(
          (0, import_smithy_client28.getArrayIfSingleItem)(output[_eIAS][_i]),
          context
        );
      }
      if (output.securityGroupIdSet === "") {
        contents[_SGI] = [];
      } else if (output[_sGIS] != null && output[_sGIS][_i] != null) {
        contents[_SGI] = de_ValueStringList((0, import_smithy_client28.getArrayIfSingleItem)(output[_sGIS][_i]), context);
      }
      if (output.securityGroupSet === "") {
        contents[_SG] = [];
      } else if (output[_sGS] != null && output[_sGS][_i] != null) {
        contents[_SG] = de_ValueStringList((0, import_smithy_client28.getArrayIfSingleItem)(output[_sGS][_i]), context);
      }
      if (output[_iMOn] != null) {
        contents[_IMO] = de_LaunchTemplateInstanceMarketOptions(output[_iMOn], context);
      }
      if (output[_cSr] != null) {
        contents[_CSred] = de_CreditSpecification(output[_cSr], context);
      }
      if (output[_cO] != null) {
        contents[_COp] = de_LaunchTemplateCpuOptions(output[_cO], context);
      }
      if (output[_cRSa] != null) {
        contents[_CRSa] = de_LaunchTemplateCapacityReservationSpecificationResponse(output[_cRSa], context);
      }
      if (output.licenseSet === "") {
        contents[_LSi] = [];
      } else if (output[_lSi] != null && output[_lSi][_i] != null) {
        contents[_LSi] = de_LaunchTemplateLicenseList((0, import_smithy_client28.getArrayIfSingleItem)(output[_lSi][_i]), context);
      }
      if (output[_hO] != null) {
        contents[_HO] = de_LaunchTemplateHibernationOptions(output[_hO], context);
      }
      if (output[_mO] != null) {
        contents[_MO] = de_LaunchTemplateInstanceMetadataOptions(output[_mO], context);
      }
      if (output[_eOn] != null) {
        contents[_EOn] = de_LaunchTemplateEnclaveOptions(output[_eOn], context);
      }
      if (output[_iR] != null) {
        contents[_IR] = de_InstanceRequirements(output[_iR], context);
      }
      if (output[_pDNO] != null) {
        contents[_PDNO] = de_LaunchTemplatePrivateDnsNameOptions(output[_pDNO], context);
      }
      if (output[_mOa] != null) {
        contents[_MOa] = de_LaunchTemplateInstanceMaintenanceOptions(output[_mOa], context);
      }
      if (output[_dASi] != null) {
        contents[_DASi] = (0, import_smithy_client28.parseBoolean)(output[_dASi]);
      }
      if (output[_op] != null) {
        contents[_O] = de_OperatorResponse(output[_op], context);
      }
      if (output[_nPO] != null) {
        contents[_NPO] = de_LaunchTemplateNetworkPerformanceOptions(output[_nPO], context);
      }
      return contents;
    }, "de_ResponseLaunchTemplateData");
    var de_RestoreAddressToClassicResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_pI] != null) {
        contents[_PI2] = (0, import_smithy_client28.expectString)(output[_pI]);
      }
      if (output[_sta] != null) {
        contents[_Statu] = (0, import_smithy_client28.expectString)(output[_sta]);
      }
      return contents;
    }, "de_RestoreAddressToClassicResult");
    var de_RestoreImageFromRecycleBinResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_Ret] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      return contents;
    }, "de_RestoreImageFromRecycleBinResult");
    var de_RestoreManagedPrefixListVersionResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_pL] != null) {
        contents[_PLr] = de_ManagedPrefixList(output[_pL], context);
      }
      return contents;
    }, "de_RestoreManagedPrefixListVersionResult");
    var de_RestoreSnapshotFromRecycleBinResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sIn] != null) {
        contents[_SIn] = (0, import_smithy_client28.expectString)(output[_sIn]);
      }
      if (output[_oA] != null) {
        contents[_OA] = (0, import_smithy_client28.expectString)(output[_oA]);
      }
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      if (output[_enc] != null) {
        contents[_Enc] = (0, import_smithy_client28.parseBoolean)(output[_enc]);
      }
      if (output[_oI] != null) {
        contents[_OIwn] = (0, import_smithy_client28.expectString)(output[_oI]);
      }
      if (output[_pro] != null) {
        contents[_Prog] = (0, import_smithy_client28.expectString)(output[_pro]);
      }
      if (output[_sT] != null) {
        contents[_STt] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_sT]));
      }
      if (output[_sta] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_sta]);
      }
      if (output[_vIo] != null) {
        contents[_VIo] = (0, import_smithy_client28.expectString)(output[_vIo]);
      }
      if (output[_vSo] != null) {
        contents[_VS] = (0, import_smithy_client28.strictParseInt32)(output[_vSo]);
      }
      if (output[_sTs] != null) {
        contents[_STs] = (0, import_smithy_client28.expectString)(output[_sTs]);
      }
      return contents;
    }, "de_RestoreSnapshotFromRecycleBinResult");
    var de_RestoreSnapshotTierResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sIn] != null) {
        contents[_SIn] = (0, import_smithy_client28.expectString)(output[_sIn]);
      }
      if (output[_rST] != null) {
        contents[_RSTe] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_rST]));
      }
      if (output[_rD] != null) {
        contents[_RD] = (0, import_smithy_client28.strictParseInt32)(output[_rD]);
      }
      if (output[_iPR] != null) {
        contents[_IPR] = (0, import_smithy_client28.parseBoolean)(output[_iPR]);
      }
      return contents;
    }, "de_RestoreSnapshotTierResult");
    var de_RevokeClientVpnIngressResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sta] != null) {
        contents[_Statu] = de_ClientVpnAuthorizationRuleStatus(output[_sta], context);
      }
      return contents;
    }, "de_RevokeClientVpnIngressResult");
    var de_RevokedSecurityGroupRule = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sGRI] != null) {
        contents[_SGRIe] = (0, import_smithy_client28.expectString)(output[_sGRI]);
      }
      if (output[_gIr] != null) {
        contents[_GIr] = (0, import_smithy_client28.expectString)(output[_gIr]);
      }
      if (output[_iEs] != null) {
        contents[_IE] = (0, import_smithy_client28.parseBoolean)(output[_iEs]);
      }
      if (output[_iPpr] != null) {
        contents[_IPpr] = (0, import_smithy_client28.expectString)(output[_iPpr]);
      }
      if (output[_fP] != null) {
        contents[_FP] = (0, import_smithy_client28.strictParseInt32)(output[_fP]);
      }
      if (output[_tPo] != null) {
        contents[_TP] = (0, import_smithy_client28.strictParseInt32)(output[_tPo]);
      }
      if (output[_cIidr] != null) {
        contents[_CIidr] = (0, import_smithy_client28.expectString)(output[_cIidr]);
      }
      if (output[_cIid] != null) {
        contents[_CIid] = (0, import_smithy_client28.expectString)(output[_cIid]);
      }
      if (output[_pLI] != null) {
        contents[_PLI] = (0, import_smithy_client28.expectString)(output[_pLI]);
      }
      if (output[_rGI] != null) {
        contents[_RGI] = (0, import_smithy_client28.expectString)(output[_rGI]);
      }
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      return contents;
    }, "de_RevokedSecurityGroupRule");
    var de_RevokedSecurityGroupRuleList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_RevokedSecurityGroupRule(entry, context);
      });
    }, "de_RevokedSecurityGroupRuleList");
    var de_RevokeSecurityGroupEgressResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_Ret] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      if (output.unknownIpPermissionSet === "") {
        contents[_UIP] = [];
      } else if (output[_uIPS] != null && output[_uIPS][_i] != null) {
        contents[_UIP] = de_IpPermissionList((0, import_smithy_client28.getArrayIfSingleItem)(output[_uIPS][_i]), context);
      }
      if (output.revokedSecurityGroupRuleSet === "") {
        contents[_RSGR] = [];
      } else if (output[_rSGRS] != null && output[_rSGRS][_i] != null) {
        contents[_RSGR] = de_RevokedSecurityGroupRuleList((0, import_smithy_client28.getArrayIfSingleItem)(output[_rSGRS][_i]), context);
      }
      return contents;
    }, "de_RevokeSecurityGroupEgressResult");
    var de_RevokeSecurityGroupIngressResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_Ret] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      if (output.unknownIpPermissionSet === "") {
        contents[_UIP] = [];
      } else if (output[_uIPS] != null && output[_uIPS][_i] != null) {
        contents[_UIP] = de_IpPermissionList((0, import_smithy_client28.getArrayIfSingleItem)(output[_uIPS][_i]), context);
      }
      if (output.revokedSecurityGroupRuleSet === "") {
        contents[_RSGR] = [];
      } else if (output[_rSGRS] != null && output[_rSGRS][_i] != null) {
        contents[_RSGR] = de_RevokedSecurityGroupRuleList((0, import_smithy_client28.getArrayIfSingleItem)(output[_rSGRS][_i]), context);
      }
      return contents;
    }, "de_RevokeSecurityGroupIngressResult");
    var de_RootDeviceTypeList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_RootDeviceTypeList");
    var de_Route = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_dCB] != null) {
        contents[_DCBe] = (0, import_smithy_client28.expectString)(output[_dCB]);
      }
      if (output[_dICB] != null) {
        contents[_DICB] = (0, import_smithy_client28.expectString)(output[_dICB]);
      }
      if (output[_dPLI] != null) {
        contents[_DPLI] = (0, import_smithy_client28.expectString)(output[_dPLI]);
      }
      if (output[_eOIGI] != null) {
        contents[_EOIGI] = (0, import_smithy_client28.expectString)(output[_eOIGI]);
      }
      if (output[_gI] != null) {
        contents[_GI] = (0, import_smithy_client28.expectString)(output[_gI]);
      }
      if (output[_iI] != null) {
        contents[_IIn] = (0, import_smithy_client28.expectString)(output[_iI]);
      }
      if (output[_iOIn] != null) {
        contents[_IOIn] = (0, import_smithy_client28.expectString)(output[_iOIn]);
      }
      if (output[_nGI] != null) {
        contents[_NGI] = (0, import_smithy_client28.expectString)(output[_nGI]);
      }
      if (output[_tGI] != null) {
        contents[_TGI] = (0, import_smithy_client28.expectString)(output[_tGI]);
      }
      if (output[_lGI] != null) {
        contents[_LGI] = (0, import_smithy_client28.expectString)(output[_lGI]);
      }
      if (output[_cGI] != null) {
        contents[_CGI] = (0, import_smithy_client28.expectString)(output[_cGI]);
      }
      if (output[_nII] != null) {
        contents[_NII] = (0, import_smithy_client28.expectString)(output[_nII]);
      }
      if (output[_o] != null) {
        contents[_Or] = (0, import_smithy_client28.expectString)(output[_o]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_vPCI] != null) {
        contents[_VPCI] = (0, import_smithy_client28.expectString)(output[_vPCI]);
      }
      if (output[_cNA] != null) {
        contents[_CNAo] = (0, import_smithy_client28.expectString)(output[_cNA]);
      }
      if (output[_oNA] != null) {
        contents[_ONA] = (0, import_smithy_client28.expectString)(output[_oNA]);
      }
      if (output[_iAp] != null) {
        contents[_IAp] = (0, import_smithy_client28.expectString)(output[_iAp]);
      }
      return contents;
    }, "de_Route");
    var de_RouteList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Route(entry, context);
      });
    }, "de_RouteList");
    var de_RouteServer = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_rSI] != null) {
        contents[_RSIo] = (0, import_smithy_client28.expectString)(output[_rSI]);
      }
      if (output[_aSA] != null) {
        contents[_ASA] = (0, import_smithy_client28.strictParseLong)(output[_aSA]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_pRSe] != null) {
        contents[_PRS] = (0, import_smithy_client28.expectString)(output[_pRSe]);
      }
      if (output[_pRD] != null) {
        contents[_PRD] = (0, import_smithy_client28.strictParseLong)(output[_pRD]);
      }
      if (output[_sNE] != null) {
        contents[_SNE] = (0, import_smithy_client28.parseBoolean)(output[_sNE]);
      }
      if (output[_sTA] != null) {
        contents[_STA] = (0, import_smithy_client28.expectString)(output[_sTA]);
      }
      return contents;
    }, "de_RouteServer");
    var de_RouteServerAssociation = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_rSI] != null) {
        contents[_RSIo] = (0, import_smithy_client28.expectString)(output[_rSI]);
      }
      if (output[_vI] != null) {
        contents[_VI] = (0, import_smithy_client28.expectString)(output[_vI]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      return contents;
    }, "de_RouteServerAssociation");
    var de_RouteServerAssociationsList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_RouteServerAssociation(entry, context);
      });
    }, "de_RouteServerAssociationsList");
    var de_RouteServerBfdStatus = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sta] != null) {
        contents[_Statu] = (0, import_smithy_client28.expectString)(output[_sta]);
      }
      return contents;
    }, "de_RouteServerBfdStatus");
    var de_RouteServerBgpOptions = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_pAee] != null) {
        contents[_PAee] = (0, import_smithy_client28.strictParseLong)(output[_pAee]);
      }
      if (output[_pLD] != null) {
        contents[_PLD] = (0, import_smithy_client28.expectString)(output[_pLD]);
      }
      return contents;
    }, "de_RouteServerBgpOptions");
    var de_RouteServerBgpStatus = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sta] != null) {
        contents[_Statu] = (0, import_smithy_client28.expectString)(output[_sta]);
      }
      return contents;
    }, "de_RouteServerBgpStatus");
    var de_RouteServerEndpoint = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_rSI] != null) {
        contents[_RSIo] = (0, import_smithy_client28.expectString)(output[_rSI]);
      }
      if (output[_rSEI] != null) {
        contents[_RSEI] = (0, import_smithy_client28.expectString)(output[_rSEI]);
      }
      if (output[_vI] != null) {
        contents[_VI] = (0, import_smithy_client28.expectString)(output[_vI]);
      }
      if (output[_sIu] != null) {
        contents[_SIub] = (0, import_smithy_client28.expectString)(output[_sIu]);
      }
      if (output[_eIn] != null) {
        contents[_EIn] = (0, import_smithy_client28.expectString)(output[_eIn]);
      }
      if (output[_eA] != null) {
        contents[_EAn] = (0, import_smithy_client28.expectString)(output[_eA]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_fR] != null) {
        contents[_FR] = (0, import_smithy_client28.expectString)(output[_fR]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      return contents;
    }, "de_RouteServerEndpoint");
    var de_RouteServerEndpointsList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_RouteServerEndpoint(entry, context);
      });
    }, "de_RouteServerEndpointsList");
    var de_RouteServerPeer = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_rSPI] != null) {
        contents[_RSPI] = (0, import_smithy_client28.expectString)(output[_rSPI]);
      }
      if (output[_rSEI] != null) {
        contents[_RSEI] = (0, import_smithy_client28.expectString)(output[_rSEI]);
      }
      if (output[_rSI] != null) {
        contents[_RSIo] = (0, import_smithy_client28.expectString)(output[_rSI]);
      }
      if (output[_vI] != null) {
        contents[_VI] = (0, import_smithy_client28.expectString)(output[_vI]);
      }
      if (output[_sIu] != null) {
        contents[_SIub] = (0, import_smithy_client28.expectString)(output[_sIu]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_fR] != null) {
        contents[_FR] = (0, import_smithy_client28.expectString)(output[_fR]);
      }
      if (output[_eEI] != null) {
        contents[_EEI] = (0, import_smithy_client28.expectString)(output[_eEI]);
      }
      if (output[_eEA] != null) {
        contents[_EEA] = (0, import_smithy_client28.expectString)(output[_eEA]);
      }
      if (output[_pAe] != null) {
        contents[_PAe] = (0, import_smithy_client28.expectString)(output[_pAe]);
      }
      if (output[_bO] != null) {
        contents[_BO] = de_RouteServerBgpOptions(output[_bO], context);
      }
      if (output[_bSg] != null) {
        contents[_BSg] = de_RouteServerBgpStatus(output[_bSg], context);
      }
      if (output[_bSf] != null) {
        contents[_BSf] = de_RouteServerBfdStatus(output[_bSf], context);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      return contents;
    }, "de_RouteServerPeer");
    var de_RouteServerPeersList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_RouteServerPeer(entry, context);
      });
    }, "de_RouteServerPeersList");
    var de_RouteServerPropagation = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_rSI] != null) {
        contents[_RSIo] = (0, import_smithy_client28.expectString)(output[_rSI]);
      }
      if (output[_rTI] != null) {
        contents[_RTI] = (0, import_smithy_client28.expectString)(output[_rTI]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      return contents;
    }, "de_RouteServerPropagation");
    var de_RouteServerPropagationsList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_RouteServerPropagation(entry, context);
      });
    }, "de_RouteServerPropagationsList");
    var de_RouteServerRoute = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_rSEI] != null) {
        contents[_RSEI] = (0, import_smithy_client28.expectString)(output[_rSEI]);
      }
      if (output[_rSPI] != null) {
        contents[_RSPI] = (0, import_smithy_client28.expectString)(output[_rSPI]);
      }
      if (output.routeInstallationDetailSet === "") {
        contents[_RID] = [];
      } else if (output[_rIDS] != null && output[_rIDS][_i] != null) {
        contents[_RID] = de_RouteServerRouteInstallationDetails((0, import_smithy_client28.getArrayIfSingleItem)(output[_rIDS][_i]), context);
      }
      if (output[_rSout] != null) {
        contents[_RSout] = (0, import_smithy_client28.expectString)(output[_rSout]);
      }
      if (output[_pre] != null) {
        contents[_Pr2] = (0, import_smithy_client28.expectString)(output[_pre]);
      }
      if (output.asPathSet === "") {
        contents[_APs] = [];
      } else if (output[_aPSs] != null && output[_aPSs][_i] != null) {
        contents[_APs] = de_AsPath((0, import_smithy_client28.getArrayIfSingleItem)(output[_aPSs][_i]), context);
      }
      if (output[_med] != null) {
        contents[_Med] = (0, import_smithy_client28.strictParseInt32)(output[_med]);
      }
      if (output[_nHI] != null) {
        contents[_NHI] = (0, import_smithy_client28.expectString)(output[_nHI]);
      }
      return contents;
    }, "de_RouteServerRoute");
    var de_RouteServerRouteInstallationDetail = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_rTI] != null) {
        contents[_RTI] = (0, import_smithy_client28.expectString)(output[_rTI]);
      }
      if (output[_rISo] != null) {
        contents[_RISo] = (0, import_smithy_client28.expectString)(output[_rISo]);
      }
      if (output[_rISR] != null) {
        contents[_RISR] = (0, import_smithy_client28.expectString)(output[_rISR]);
      }
      return contents;
    }, "de_RouteServerRouteInstallationDetail");
    var de_RouteServerRouteInstallationDetails = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_RouteServerRouteInstallationDetail(entry, context);
      });
    }, "de_RouteServerRouteInstallationDetails");
    var de_RouteServerRouteList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_RouteServerRoute(entry, context);
      });
    }, "de_RouteServerRouteList");
    var de_RouteServersList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_RouteServer(entry, context);
      });
    }, "de_RouteServersList");
    var de_RouteTable = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.associationSet === "") {
        contents[_Ass] = [];
      } else if (output[_aSss] != null && output[_aSss][_i] != null) {
        contents[_Ass] = de_RouteTableAssociationList((0, import_smithy_client28.getArrayIfSingleItem)(output[_aSss][_i]), context);
      }
      if (output.propagatingVgwSet === "") {
        contents[_PVr] = [];
      } else if (output[_pVS] != null && output[_pVS][_i] != null) {
        contents[_PVr] = de_PropagatingVgwList((0, import_smithy_client28.getArrayIfSingleItem)(output[_pVS][_i]), context);
      }
      if (output[_rTI] != null) {
        contents[_RTI] = (0, import_smithy_client28.expectString)(output[_rTI]);
      }
      if (output.routeSet === "") {
        contents[_Rout] = [];
      } else if (output[_rSou] != null && output[_rSou][_i] != null) {
        contents[_Rout] = de_RouteList((0, import_smithy_client28.getArrayIfSingleItem)(output[_rSou][_i]), context);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_vI] != null) {
        contents[_VI] = (0, import_smithy_client28.expectString)(output[_vI]);
      }
      if (output[_oI] != null) {
        contents[_OIwn] = (0, import_smithy_client28.expectString)(output[_oI]);
      }
      return contents;
    }, "de_RouteTable");
    var de_RouteTableAssociation = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_mai] != null) {
        contents[_Mai] = (0, import_smithy_client28.parseBoolean)(output[_mai]);
      }
      if (output[_rTAI] != null) {
        contents[_RTAI] = (0, import_smithy_client28.expectString)(output[_rTAI]);
      }
      if (output[_rTI] != null) {
        contents[_RTI] = (0, import_smithy_client28.expectString)(output[_rTI]);
      }
      if (output[_sIu] != null) {
        contents[_SIub] = (0, import_smithy_client28.expectString)(output[_sIu]);
      }
      if (output[_gI] != null) {
        contents[_GI] = (0, import_smithy_client28.expectString)(output[_gI]);
      }
      if (output[_pIP] != null) {
        contents[_PIP] = (0, import_smithy_client28.expectString)(output[_pIP]);
      }
      if (output[_aS] != null) {
        contents[_ASs] = de_RouteTableAssociationState(output[_aS], context);
      }
      return contents;
    }, "de_RouteTableAssociation");
    var de_RouteTableAssociationList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_RouteTableAssociation(entry, context);
      });
    }, "de_RouteTableAssociationList");
    var de_RouteTableAssociationState = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_sMt] != null) {
        contents[_SMt] = (0, import_smithy_client28.expectString)(output[_sMt]);
      }
      return contents;
    }, "de_RouteTableAssociationState");
    var de_RouteTableList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_RouteTable(entry, context);
      });
    }, "de_RouteTableList");
    var de_RuleGroupRuleOptionsPair = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_rGA] != null) {
        contents[_RGA] = (0, import_smithy_client28.expectString)(output[_rGA]);
      }
      if (output.ruleOptionSet === "") {
        contents[_ROu] = [];
      } else if (output[_rOS] != null && output[_rOS][_i] != null) {
        contents[_ROu] = de_RuleOptionList((0, import_smithy_client28.getArrayIfSingleItem)(output[_rOS][_i]), context);
      }
      return contents;
    }, "de_RuleGroupRuleOptionsPair");
    var de_RuleGroupRuleOptionsPairList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_RuleGroupRuleOptionsPair(entry, context);
      });
    }, "de_RuleGroupRuleOptionsPairList");
    var de_RuleGroupTypePair = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_rGA] != null) {
        contents[_RGA] = (0, import_smithy_client28.expectString)(output[_rGA]);
      }
      if (output[_rGT] != null) {
        contents[_RGT] = (0, import_smithy_client28.expectString)(output[_rGT]);
      }
      return contents;
    }, "de_RuleGroupTypePair");
    var de_RuleGroupTypePairList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_RuleGroupTypePair(entry, context);
      });
    }, "de_RuleGroupTypePairList");
    var de_RuleOption = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_key] != null) {
        contents[_Key] = (0, import_smithy_client28.expectString)(output[_key]);
      }
      if (output.settingSet === "") {
        contents[_Set] = [];
      } else if (output[_sSe] != null && output[_sSe][_i] != null) {
        contents[_Set] = de_StringList((0, import_smithy_client28.getArrayIfSingleItem)(output[_sSe][_i]), context);
      }
      return contents;
    }, "de_RuleOption");
    var de_RuleOptionList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_RuleOption(entry, context);
      });
    }, "de_RuleOptionList");
    var de_RunInstancesMonitoringEnabled = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_en] != null) {
        contents[_En] = (0, import_smithy_client28.parseBoolean)(output[_en]);
      }
      return contents;
    }, "de_RunInstancesMonitoringEnabled");
    var de_RunScheduledInstancesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.instanceIdSet === "") {
        contents[_IIS] = [];
      } else if (output[_iIS] != null && output[_iIS][_i] != null) {
        contents[_IIS] = de_InstanceIdSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_iIS][_i]), context);
      }
      return contents;
    }, "de_RunScheduledInstancesResult");
    var de_S3Storage = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_AWSAKI] != null) {
        contents[_AWSAKI] = (0, import_smithy_client28.expectString)(output[_AWSAKI]);
      }
      if (output[_bu] != null) {
        contents[_B] = (0, import_smithy_client28.expectString)(output[_bu]);
      }
      if (output[_pre] != null) {
        contents[_Pr2] = (0, import_smithy_client28.expectString)(output[_pre]);
      }
      if (output[_uPp] != null) {
        contents[_UP] = context.base64Decoder(output[_uPp]);
      }
      if (output[_uPS] != null) {
        contents[_UPS] = (0, import_smithy_client28.expectString)(output[_uPS]);
      }
      return contents;
    }, "de_S3Storage");
    var de_ScheduledInstance = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aZ] != null) {
        contents[_AZ] = (0, import_smithy_client28.expectString)(output[_aZ]);
      }
      if (output[_cD] != null) {
        contents[_CDr] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_cD]));
      }
      if (output[_hPo] != null) {
        contents[_HPo] = (0, import_smithy_client28.expectString)(output[_hPo]);
      }
      if (output[_iC] != null) {
        contents[_IC] = (0, import_smithy_client28.strictParseInt32)(output[_iC]);
      }
      if (output[_iT] != null) {
        contents[_IT] = (0, import_smithy_client28.expectString)(output[_iT]);
      }
      if (output[_nPet] != null) {
        contents[_NPet] = (0, import_smithy_client28.expectString)(output[_nPet]);
      }
      if (output[_nSST] != null) {
        contents[_NSST] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_nSST]));
      }
      if (output[_pl] != null) {
        contents[_Pla] = (0, import_smithy_client28.expectString)(output[_pl]);
      }
      if (output[_pSET] != null) {
        contents[_PSET] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_pSET]));
      }
      if (output[_rec] != null) {
        contents[_Rec] = de_ScheduledInstanceRecurrence(output[_rec], context);
      }
      if (output[_sIIc] != null) {
        contents[_SIIch] = (0, import_smithy_client28.expectString)(output[_sIIc]);
      }
      if (output[_sDIH] != null) {
        contents[_SDIH] = (0, import_smithy_client28.strictParseInt32)(output[_sDIH]);
      }
      if (output[_tED] != null) {
        contents[_TED] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_tED]));
      }
      if (output[_tSD] != null) {
        contents[_TSD] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_tSD]));
      }
      if (output[_tSIH] != null) {
        contents[_TSIH] = (0, import_smithy_client28.strictParseInt32)(output[_tSIH]);
      }
      return contents;
    }, "de_ScheduledInstance");
    var de_ScheduledInstanceAvailability = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aZ] != null) {
        contents[_AZ] = (0, import_smithy_client28.expectString)(output[_aZ]);
      }
      if (output[_aICv] != null) {
        contents[_AICv] = (0, import_smithy_client28.strictParseInt32)(output[_aICv]);
      }
      if (output[_fSST] != null) {
        contents[_FSST] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_fSST]));
      }
      if (output[_hPo] != null) {
        contents[_HPo] = (0, import_smithy_client28.expectString)(output[_hPo]);
      }
      if (output[_iT] != null) {
        contents[_IT] = (0, import_smithy_client28.expectString)(output[_iT]);
      }
      if (output[_mTDID] != null) {
        contents[_MTDID] = (0, import_smithy_client28.strictParseInt32)(output[_mTDID]);
      }
      if (output[_mTDIDi] != null) {
        contents[_MTDIDi] = (0, import_smithy_client28.strictParseInt32)(output[_mTDIDi]);
      }
      if (output[_nPet] != null) {
        contents[_NPet] = (0, import_smithy_client28.expectString)(output[_nPet]);
      }
      if (output[_pl] != null) {
        contents[_Pla] = (0, import_smithy_client28.expectString)(output[_pl]);
      }
      if (output[_pTu] != null) {
        contents[_PT] = (0, import_smithy_client28.expectString)(output[_pTu]);
      }
      if (output[_rec] != null) {
        contents[_Rec] = de_ScheduledInstanceRecurrence(output[_rec], context);
      }
      if (output[_sDIH] != null) {
        contents[_SDIH] = (0, import_smithy_client28.strictParseInt32)(output[_sDIH]);
      }
      if (output[_tSIH] != null) {
        contents[_TSIH] = (0, import_smithy_client28.strictParseInt32)(output[_tSIH]);
      }
      return contents;
    }, "de_ScheduledInstanceAvailability");
    var de_ScheduledInstanceAvailabilitySet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ScheduledInstanceAvailability(entry, context);
      });
    }, "de_ScheduledInstanceAvailabilitySet");
    var de_ScheduledInstanceRecurrence = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_fre] != null) {
        contents[_Fre] = (0, import_smithy_client28.expectString)(output[_fre]);
      }
      if (output[_int] != null) {
        contents[_Int] = (0, import_smithy_client28.strictParseInt32)(output[_int]);
      }
      if (output.occurrenceDaySet === "") {
        contents[_ODS] = [];
      } else if (output[_oDS] != null && output[_oDS][_i] != null) {
        contents[_ODS] = de_OccurrenceDaySet((0, import_smithy_client28.getArrayIfSingleItem)(output[_oDS][_i]), context);
      }
      if (output[_oRTE] != null) {
        contents[_ORTE] = (0, import_smithy_client28.parseBoolean)(output[_oRTE]);
      }
      if (output[_oU] != null) {
        contents[_OU] = (0, import_smithy_client28.expectString)(output[_oU]);
      }
      return contents;
    }, "de_ScheduledInstanceRecurrence");
    var de_ScheduledInstanceSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ScheduledInstance(entry, context);
      });
    }, "de_ScheduledInstanceSet");
    var de_SearchLocalGatewayRoutesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.routeSet === "") {
        contents[_Rout] = [];
      } else if (output[_rSou] != null && output[_rSou][_i] != null) {
        contents[_Rout] = de_LocalGatewayRouteList((0, import_smithy_client28.getArrayIfSingleItem)(output[_rSou][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_SearchLocalGatewayRoutesResult");
    var de_SearchTransitGatewayMulticastGroupsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.multicastGroups === "") {
        contents[_MG] = [];
      } else if (output[_mG] != null && output[_mG][_i] != null) {
        contents[_MG] = de_TransitGatewayMulticastGroupList((0, import_smithy_client28.getArrayIfSingleItem)(output[_mG][_i]), context);
      }
      if (output[_nTe] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(output[_nTe]);
      }
      return contents;
    }, "de_SearchTransitGatewayMulticastGroupsResult");
    var de_SearchTransitGatewayRoutesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.routeSet === "") {
        contents[_Rout] = [];
      } else if (output[_rSou] != null && output[_rSou][_i] != null) {
        contents[_Rout] = de_TransitGatewayRouteList((0, import_smithy_client28.getArrayIfSingleItem)(output[_rSou][_i]), context);
      }
      if (output[_aRAd] != null) {
        contents[_ARAd] = (0, import_smithy_client28.parseBoolean)(output[_aRAd]);
      }
      return contents;
    }, "de_SearchTransitGatewayRoutesResult");
    var de_SecurityGroup = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_gIr] != null) {
        contents[_GIr] = (0, import_smithy_client28.expectString)(output[_gIr]);
      }
      if (output.ipPermissionsEgress === "") {
        contents[_IPE] = [];
      } else if (output[_iPE] != null && output[_iPE][_i] != null) {
        contents[_IPE] = de_IpPermissionList((0, import_smithy_client28.getArrayIfSingleItem)(output[_iPE][_i]), context);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_vI] != null) {
        contents[_VI] = (0, import_smithy_client28.expectString)(output[_vI]);
      }
      if (output[_sGA] != null) {
        contents[_SGA] = (0, import_smithy_client28.expectString)(output[_sGA]);
      }
      if (output[_oI] != null) {
        contents[_OIwn] = (0, import_smithy_client28.expectString)(output[_oI]);
      }
      if (output[_gN] != null) {
        contents[_GN] = (0, import_smithy_client28.expectString)(output[_gN]);
      }
      if (output[_gD] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_gD]);
      }
      if (output.ipPermissions === "") {
        contents[_IPpe] = [];
      } else if (output[_iPpe] != null && output[_iPpe][_i] != null) {
        contents[_IPpe] = de_IpPermissionList((0, import_smithy_client28.getArrayIfSingleItem)(output[_iPpe][_i]), context);
      }
      return contents;
    }, "de_SecurityGroup");
    var de_SecurityGroupForVpc = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      if (output[_gN] != null) {
        contents[_GN] = (0, import_smithy_client28.expectString)(output[_gN]);
      }
      if (output[_oI] != null) {
        contents[_OIwn] = (0, import_smithy_client28.expectString)(output[_oI]);
      }
      if (output[_gIr] != null) {
        contents[_GIr] = (0, import_smithy_client28.expectString)(output[_gIr]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_pVI] != null) {
        contents[_PVIr] = (0, import_smithy_client28.expectString)(output[_pVI]);
      }
      return contents;
    }, "de_SecurityGroupForVpc");
    var de_SecurityGroupForVpcList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_SecurityGroupForVpc(entry, context);
      });
    }, "de_SecurityGroupForVpcList");
    var de_SecurityGroupIdentifier = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_gIr] != null) {
        contents[_GIr] = (0, import_smithy_client28.expectString)(output[_gIr]);
      }
      if (output[_gN] != null) {
        contents[_GN] = (0, import_smithy_client28.expectString)(output[_gN]);
      }
      return contents;
    }, "de_SecurityGroupIdentifier");
    var de_SecurityGroupIdList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_SecurityGroupIdList");
    var de_SecurityGroupIdSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_SecurityGroupIdSet");
    var de_SecurityGroupIdStringList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_SecurityGroupIdStringList");
    var de_SecurityGroupList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_SecurityGroup(entry, context);
      });
    }, "de_SecurityGroupList");
    var de_SecurityGroupReference = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_gIr] != null) {
        contents[_GIr] = (0, import_smithy_client28.expectString)(output[_gIr]);
      }
      if (output[_rVI] != null) {
        contents[_RVI] = (0, import_smithy_client28.expectString)(output[_rVI]);
      }
      if (output[_vPCI] != null) {
        contents[_VPCI] = (0, import_smithy_client28.expectString)(output[_vPCI]);
      }
      if (output[_tGI] != null) {
        contents[_TGI] = (0, import_smithy_client28.expectString)(output[_tGI]);
      }
      return contents;
    }, "de_SecurityGroupReference");
    var de_SecurityGroupReferences = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_SecurityGroupReference(entry, context);
      });
    }, "de_SecurityGroupReferences");
    var de_SecurityGroupRule = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sGRI] != null) {
        contents[_SGRIe] = (0, import_smithy_client28.expectString)(output[_sGRI]);
      }
      if (output[_gIr] != null) {
        contents[_GIr] = (0, import_smithy_client28.expectString)(output[_gIr]);
      }
      if (output[_gOI] != null) {
        contents[_GOI] = (0, import_smithy_client28.expectString)(output[_gOI]);
      }
      if (output[_iEs] != null) {
        contents[_IE] = (0, import_smithy_client28.parseBoolean)(output[_iEs]);
      }
      if (output[_iPpr] != null) {
        contents[_IPpr] = (0, import_smithy_client28.expectString)(output[_iPpr]);
      }
      if (output[_fP] != null) {
        contents[_FP] = (0, import_smithy_client28.strictParseInt32)(output[_fP]);
      }
      if (output[_tPo] != null) {
        contents[_TP] = (0, import_smithy_client28.strictParseInt32)(output[_tPo]);
      }
      if (output[_cIidr] != null) {
        contents[_CIidr] = (0, import_smithy_client28.expectString)(output[_cIidr]);
      }
      if (output[_cIid] != null) {
        contents[_CIid] = (0, import_smithy_client28.expectString)(output[_cIid]);
      }
      if (output[_pLI] != null) {
        contents[_PLI] = (0, import_smithy_client28.expectString)(output[_pLI]);
      }
      if (output[_rGIe] != null) {
        contents[_RGIe] = de_ReferencedSecurityGroup(output[_rGIe], context);
      }
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_sGRA] != null) {
        contents[_SGRA] = (0, import_smithy_client28.expectString)(output[_sGRA]);
      }
      return contents;
    }, "de_SecurityGroupRule");
    var de_SecurityGroupRuleList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_SecurityGroupRule(entry, context);
      });
    }, "de_SecurityGroupRuleList");
    var de_SecurityGroupVpcAssociation = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_gIr] != null) {
        contents[_GIr] = (0, import_smithy_client28.expectString)(output[_gIr]);
      }
      if (output[_vI] != null) {
        contents[_VI] = (0, import_smithy_client28.expectString)(output[_vI]);
      }
      if (output[_vOIp] != null) {
        contents[_VOIp] = (0, import_smithy_client28.expectString)(output[_vOIp]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_sRt] != null) {
        contents[_SRt] = (0, import_smithy_client28.expectString)(output[_sRt]);
      }
      if (output[_gOI] != null) {
        contents[_GOI] = (0, import_smithy_client28.expectString)(output[_gOI]);
      }
      return contents;
    }, "de_SecurityGroupVpcAssociation");
    var de_SecurityGroupVpcAssociationList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_SecurityGroupVpcAssociation(entry, context);
      });
    }, "de_SecurityGroupVpcAssociationList");
    var de_ServiceConfiguration = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.serviceType === "") {
        contents[_STe] = [];
      } else if (output[_sTe] != null && output[_sTe][_i] != null) {
        contents[_STe] = de_ServiceTypeDetailSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_sTe][_i]), context);
      }
      if (output[_sI] != null) {
        contents[_SIe] = (0, import_smithy_client28.expectString)(output[_sI]);
      }
      if (output[_sN] != null) {
        contents[_SNe] = (0, import_smithy_client28.expectString)(output[_sN]);
      }
      if (output[_sSer] != null) {
        contents[_SSe] = (0, import_smithy_client28.expectString)(output[_sSer]);
      }
      if (output.availabilityZoneIdSet === "") {
        contents[_AZIv] = [];
      } else if (output[_aZIS] != null && output[_aZIS][_i] != null) {
        contents[_AZIv] = de_ValueStringList((0, import_smithy_client28.getArrayIfSingleItem)(output[_aZIS][_i]), context);
      }
      if (output.availabilityZoneSet === "") {
        contents[_AZv] = [];
      } else if (output[_aZS] != null && output[_aZS][_i] != null) {
        contents[_AZv] = de_ValueStringList((0, import_smithy_client28.getArrayIfSingleItem)(output[_aZS][_i]), context);
      }
      if (output[_aRcc] != null) {
        contents[_ARc] = (0, import_smithy_client28.parseBoolean)(output[_aRcc]);
      }
      if (output[_mVE] != null) {
        contents[_MVEa] = (0, import_smithy_client28.parseBoolean)(output[_mVE]);
      }
      if (output.networkLoadBalancerArnSet === "") {
        contents[_NLBAe] = [];
      } else if (output[_nLBAS] != null && output[_nLBAS][_i] != null) {
        contents[_NLBAe] = de_ValueStringList((0, import_smithy_client28.getArrayIfSingleItem)(output[_nLBAS][_i]), context);
      }
      if (output.gatewayLoadBalancerArnSet === "") {
        contents[_GLBA] = [];
      } else if (output[_gLBAS] != null && output[_gLBAS][_i] != null) {
        contents[_GLBA] = de_ValueStringList((0, import_smithy_client28.getArrayIfSingleItem)(output[_gLBAS][_i]), context);
      }
      if (output.supportedIpAddressTypeSet === "") {
        contents[_SIAT] = [];
      } else if (output[_sIATS] != null && output[_sIATS][_i] != null) {
        contents[_SIAT] = de_SupportedIpAddressTypes((0, import_smithy_client28.getArrayIfSingleItem)(output[_sIATS][_i]), context);
      }
      if (output.baseEndpointDnsNameSet === "") {
        contents[_BEDN] = [];
      } else if (output[_bEDNS] != null && output[_bEDNS][_i] != null) {
        contents[_BEDN] = de_ValueStringList((0, import_smithy_client28.getArrayIfSingleItem)(output[_bEDNS][_i]), context);
      }
      if (output[_pDNr] != null) {
        contents[_PDN] = (0, import_smithy_client28.expectString)(output[_pDNr]);
      }
      if (output[_pDNC] != null) {
        contents[_PDNC] = de_PrivateDnsNameConfiguration(output[_pDNC], context);
      }
      if (output[_pRa] != null) {
        contents[_PRa] = (0, import_smithy_client28.expectString)(output[_pRa]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output.supportedRegionSet === "") {
        contents[_SRu] = [];
      } else if (output[_sRS] != null && output[_sRS][_i] != null) {
        contents[_SRu] = de_SupportedRegionSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_sRS][_i]), context);
      }
      if (output[_rAE] != null) {
        contents[_RAE] = (0, import_smithy_client28.parseBoolean)(output[_rAE]);
      }
      return contents;
    }, "de_ServiceConfiguration");
    var de_ServiceConfigurationSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ServiceConfiguration(entry, context);
      });
    }, "de_ServiceConfigurationSet");
    var de_ServiceDetail = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sN] != null) {
        contents[_SNe] = (0, import_smithy_client28.expectString)(output[_sN]);
      }
      if (output[_sI] != null) {
        contents[_SIe] = (0, import_smithy_client28.expectString)(output[_sI]);
      }
      if (output.serviceType === "") {
        contents[_STe] = [];
      } else if (output[_sTe] != null && output[_sTe][_i] != null) {
        contents[_STe] = de_ServiceTypeDetailSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_sTe][_i]), context);
      }
      if (output[_sR] != null) {
        contents[_SRe] = (0, import_smithy_client28.expectString)(output[_sR]);
      }
      if (output.availabilityZoneIdSet === "") {
        contents[_AZIv] = [];
      } else if (output[_aZIS] != null && output[_aZIS][_i] != null) {
        contents[_AZIv] = de_ValueStringList((0, import_smithy_client28.getArrayIfSingleItem)(output[_aZIS][_i]), context);
      }
      if (output.availabilityZoneSet === "") {
        contents[_AZv] = [];
      } else if (output[_aZS] != null && output[_aZS][_i] != null) {
        contents[_AZv] = de_ValueStringList((0, import_smithy_client28.getArrayIfSingleItem)(output[_aZS][_i]), context);
      }
      if (output[_ow] != null) {
        contents[_Own] = (0, import_smithy_client28.expectString)(output[_ow]);
      }
      if (output.baseEndpointDnsNameSet === "") {
        contents[_BEDN] = [];
      } else if (output[_bEDNS] != null && output[_bEDNS][_i] != null) {
        contents[_BEDN] = de_ValueStringList((0, import_smithy_client28.getArrayIfSingleItem)(output[_bEDNS][_i]), context);
      }
      if (output[_pDNr] != null) {
        contents[_PDN] = (0, import_smithy_client28.expectString)(output[_pDNr]);
      }
      if (output.privateDnsNameSet === "") {
        contents[_PDNr] = [];
      } else if (output[_pDNS] != null && output[_pDNS][_i] != null) {
        contents[_PDNr] = de_PrivateDnsDetailsSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_pDNS][_i]), context);
      }
      if (output[_vEPS] != null) {
        contents[_VEPS] = (0, import_smithy_client28.parseBoolean)(output[_vEPS]);
      }
      if (output[_aRcc] != null) {
        contents[_ARc] = (0, import_smithy_client28.parseBoolean)(output[_aRcc]);
      }
      if (output[_mVE] != null) {
        contents[_MVEa] = (0, import_smithy_client28.parseBoolean)(output[_mVE]);
      }
      if (output[_pRa] != null) {
        contents[_PRa] = (0, import_smithy_client28.expectString)(output[_pRa]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_pDNVS] != null) {
        contents[_PDNVS] = (0, import_smithy_client28.expectString)(output[_pDNVS]);
      }
      if (output.supportedIpAddressTypeSet === "") {
        contents[_SIAT] = [];
      } else if (output[_sIATS] != null && output[_sIATS][_i] != null) {
        contents[_SIAT] = de_SupportedIpAddressTypes((0, import_smithy_client28.getArrayIfSingleItem)(output[_sIATS][_i]), context);
      }
      return contents;
    }, "de_ServiceDetail");
    var de_ServiceDetailSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ServiceDetail(entry, context);
      });
    }, "de_ServiceDetailSet");
    var de_ServiceLinkVirtualInterface = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sLVII] != null) {
        contents[_SLVIIe] = (0, import_smithy_client28.expectString)(output[_sLVII]);
      }
      if (output[_sLVIA] != null) {
        contents[_SLVIA] = (0, import_smithy_client28.expectString)(output[_sLVIA]);
      }
      if (output[_oIu] != null) {
        contents[_OIu] = (0, import_smithy_client28.expectString)(output[_oIu]);
      }
      if (output[_oA] != null) {
        contents[_OA] = (0, import_smithy_client28.expectString)(output[_oA]);
      }
      if (output[_oI] != null) {
        contents[_OIwn] = (0, import_smithy_client28.expectString)(output[_oI]);
      }
      if (output[_lA] != null) {
        contents[_LA] = (0, import_smithy_client28.expectString)(output[_lA]);
      }
      if (output[_pAe] != null) {
        contents[_PAe] = (0, import_smithy_client28.expectString)(output[_pAe]);
      }
      if (output[_pBA] != null) {
        contents[_PBA] = (0, import_smithy_client28.strictParseLong)(output[_pBA]);
      }
      if (output[_vl] != null) {
        contents[_Vl] = (0, import_smithy_client28.strictParseInt32)(output[_vl]);
      }
      if (output[_oLI] != null) {
        contents[_OLI] = (0, import_smithy_client28.expectString)(output[_oLI]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_cSon] != null) {
        contents[_CSon] = (0, import_smithy_client28.expectString)(output[_cSon]);
      }
      return contents;
    }, "de_ServiceLinkVirtualInterface");
    var de_ServiceLinkVirtualInterfaceIdSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_ServiceLinkVirtualInterfaceIdSet");
    var de_ServiceLinkVirtualInterfaceSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ServiceLinkVirtualInterface(entry, context);
      });
    }, "de_ServiceLinkVirtualInterfaceSet");
    var de_ServiceTypeDetail = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sTe] != null) {
        contents[_STe] = (0, import_smithy_client28.expectString)(output[_sTe]);
      }
      return contents;
    }, "de_ServiceTypeDetail");
    var de_ServiceTypeDetailSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ServiceTypeDetail(entry, context);
      });
    }, "de_ServiceTypeDetailSet");
    var de_Snapshot = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_oAw] != null) {
        contents[_OAw] = (0, import_smithy_client28.expectString)(output[_oAw]);
      }
      if (output[_oA] != null) {
        contents[_OA] = (0, import_smithy_client28.expectString)(output[_oA]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_sTt] != null) {
        contents[_STto] = (0, import_smithy_client28.expectString)(output[_sTt]);
      }
      if (output[_rET] != null) {
        contents[_RET] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_rET]));
      }
      if (output[_sTs] != null) {
        contents[_STs] = (0, import_smithy_client28.expectString)(output[_sTs]);
      }
      if (output[_aZ] != null) {
        contents[_AZ] = (0, import_smithy_client28.expectString)(output[_aZ]);
      }
      if (output[_tTr] != null) {
        contents[_TTr] = (0, import_smithy_client28.expectString)(output[_tTr]);
      }
      if (output[_cDM] != null) {
        contents[_CDM] = (0, import_smithy_client28.strictParseInt32)(output[_cDM]);
      }
      if (output[_cTomp] != null) {
        contents[_CTomp] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_cTomp]));
      }
      if (output[_fSSIB] != null) {
        contents[_FSSIB] = (0, import_smithy_client28.strictParseLong)(output[_fSSIB]);
      }
      if (output[_sIn] != null) {
        contents[_SIn] = (0, import_smithy_client28.expectString)(output[_sIn]);
      }
      if (output[_vIo] != null) {
        contents[_VIo] = (0, import_smithy_client28.expectString)(output[_vIo]);
      }
      if (output[_sta] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_sta]);
      }
      if (output[_sMt] != null) {
        contents[_SMta] = (0, import_smithy_client28.expectString)(output[_sMt]);
      }
      if (output[_sT] != null) {
        contents[_STt] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_sT]));
      }
      if (output[_pro] != null) {
        contents[_Prog] = (0, import_smithy_client28.expectString)(output[_pro]);
      }
      if (output[_oI] != null) {
        contents[_OIwn] = (0, import_smithy_client28.expectString)(output[_oI]);
      }
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      if (output[_vSo] != null) {
        contents[_VS] = (0, import_smithy_client28.strictParseInt32)(output[_vSo]);
      }
      if (output[_enc] != null) {
        contents[_Enc] = (0, import_smithy_client28.parseBoolean)(output[_enc]);
      }
      if (output[_kKI] != null) {
        contents[_KKI] = (0, import_smithy_client28.expectString)(output[_kKI]);
      }
      if (output[_dEKI] != null) {
        contents[_DEKI] = (0, import_smithy_client28.expectString)(output[_dEKI]);
      }
      return contents;
    }, "de_Snapshot");
    var de_SnapshotDetail = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      if (output[_dN] != null) {
        contents[_DN] = (0, import_smithy_client28.expectString)(output[_dN]);
      }
      if (output[_dIS] != null) {
        contents[_DISi] = (0, import_smithy_client28.strictParseFloat)(output[_dIS]);
      }
      if (output[_f] != null) {
        contents[_Fo] = (0, import_smithy_client28.expectString)(output[_f]);
      }
      if (output[_pro] != null) {
        contents[_Prog] = (0, import_smithy_client28.expectString)(output[_pro]);
      }
      if (output[_sIn] != null) {
        contents[_SIn] = (0, import_smithy_client28.expectString)(output[_sIn]);
      }
      if (output[_sta] != null) {
        contents[_Statu] = (0, import_smithy_client28.expectString)(output[_sta]);
      }
      if (output[_sMt] != null) {
        contents[_SMt] = (0, import_smithy_client28.expectString)(output[_sMt]);
      }
      if (output[_ur] != null) {
        contents[_U] = (0, import_smithy_client28.expectString)(output[_ur]);
      }
      if (output[_uB] != null) {
        contents[_UB] = de_UserBucketDetails(output[_uB], context);
      }
      return contents;
    }, "de_SnapshotDetail");
    var de_SnapshotDetailList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_SnapshotDetail(entry, context);
      });
    }, "de_SnapshotDetailList");
    var de_SnapshotInfo = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_enc] != null) {
        contents[_Enc] = (0, import_smithy_client28.parseBoolean)(output[_enc]);
      }
      if (output[_vIo] != null) {
        contents[_VIo] = (0, import_smithy_client28.expectString)(output[_vIo]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_vSo] != null) {
        contents[_VS] = (0, import_smithy_client28.strictParseInt32)(output[_vSo]);
      }
      if (output[_sT] != null) {
        contents[_STt] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_sT]));
      }
      if (output[_pro] != null) {
        contents[_Prog] = (0, import_smithy_client28.expectString)(output[_pro]);
      }
      if (output[_oI] != null) {
        contents[_OIwn] = (0, import_smithy_client28.expectString)(output[_oI]);
      }
      if (output[_sIn] != null) {
        contents[_SIn] = (0, import_smithy_client28.expectString)(output[_sIn]);
      }
      if (output[_oA] != null) {
        contents[_OA] = (0, import_smithy_client28.expectString)(output[_oA]);
      }
      if (output[_sTs] != null) {
        contents[_STs] = (0, import_smithy_client28.expectString)(output[_sTs]);
      }
      if (output[_aZ] != null) {
        contents[_AZ] = (0, import_smithy_client28.expectString)(output[_aZ]);
      }
      return contents;
    }, "de_SnapshotInfo");
    var de_SnapshotList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Snapshot(entry, context);
      });
    }, "de_SnapshotList");
    var de_SnapshotRecycleBinInfo = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sIn] != null) {
        contents[_SIn] = (0, import_smithy_client28.expectString)(output[_sIn]);
      }
      if (output[_rBET] != null) {
        contents[_RBET] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_rBET]));
      }
      if (output[_rBETe] != null) {
        contents[_RBETe] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_rBETe]));
      }
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      if (output[_vIo] != null) {
        contents[_VIo] = (0, import_smithy_client28.expectString)(output[_vIo]);
      }
      return contents;
    }, "de_SnapshotRecycleBinInfo");
    var de_SnapshotRecycleBinInfoList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_SnapshotRecycleBinInfo(entry, context);
      });
    }, "de_SnapshotRecycleBinInfoList");
    var de_SnapshotSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_SnapshotInfo(entry, context);
      });
    }, "de_SnapshotSet");
    var de_SnapshotTaskDetail = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      if (output[_dIS] != null) {
        contents[_DISi] = (0, import_smithy_client28.strictParseFloat)(output[_dIS]);
      }
      if (output[_enc] != null) {
        contents[_Enc] = (0, import_smithy_client28.parseBoolean)(output[_enc]);
      }
      if (output[_f] != null) {
        contents[_Fo] = (0, import_smithy_client28.expectString)(output[_f]);
      }
      if (output[_kKI] != null) {
        contents[_KKI] = (0, import_smithy_client28.expectString)(output[_kKI]);
      }
      if (output[_pro] != null) {
        contents[_Prog] = (0, import_smithy_client28.expectString)(output[_pro]);
      }
      if (output[_sIn] != null) {
        contents[_SIn] = (0, import_smithy_client28.expectString)(output[_sIn]);
      }
      if (output[_sta] != null) {
        contents[_Statu] = (0, import_smithy_client28.expectString)(output[_sta]);
      }
      if (output[_sMt] != null) {
        contents[_SMt] = (0, import_smithy_client28.expectString)(output[_sMt]);
      }
      if (output[_ur] != null) {
        contents[_U] = (0, import_smithy_client28.expectString)(output[_ur]);
      }
      if (output[_uB] != null) {
        contents[_UB] = de_UserBucketDetails(output[_uB], context);
      }
      return contents;
    }, "de_SnapshotTaskDetail");
    var de_SnapshotTierStatus = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sIn] != null) {
        contents[_SIn] = (0, import_smithy_client28.expectString)(output[_sIn]);
      }
      if (output[_vIo] != null) {
        contents[_VIo] = (0, import_smithy_client28.expectString)(output[_vIo]);
      }
      if (output[_sta] != null) {
        contents[_Statu] = (0, import_smithy_client28.expectString)(output[_sta]);
      }
      if (output[_oI] != null) {
        contents[_OIwn] = (0, import_smithy_client28.expectString)(output[_oI]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_sTt] != null) {
        contents[_STto] = (0, import_smithy_client28.expectString)(output[_sTt]);
      }
      if (output[_lTST] != null) {
        contents[_LTST] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_lTST]));
      }
      if (output[_lTP] != null) {
        contents[_LTP] = (0, import_smithy_client28.strictParseInt32)(output[_lTP]);
      }
      if (output[_lTOS] != null) {
        contents[_LTOS] = (0, import_smithy_client28.expectString)(output[_lTOS]);
      }
      if (output[_lTOSD] != null) {
        contents[_LTOSD] = (0, import_smithy_client28.expectString)(output[_lTOSD]);
      }
      if (output[_aCT] != null) {
        contents[_ACT] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_aCT]));
      }
      if (output[_rET] != null) {
        contents[_RET] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_rET]));
      }
      return contents;
    }, "de_SnapshotTierStatus");
    var de_snapshotTierStatusSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_SnapshotTierStatus(entry, context);
      });
    }, "de_snapshotTierStatusSet");
    var de_SpotCapacityRebalance = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_rSep] != null) {
        contents[_RS] = (0, import_smithy_client28.expectString)(output[_rSep]);
      }
      if (output[_tD] != null) {
        contents[_TDe] = (0, import_smithy_client28.strictParseInt32)(output[_tD]);
      }
      return contents;
    }, "de_SpotCapacityRebalance");
    var de_SpotDatafeedSubscription = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_bu] != null) {
        contents[_B] = (0, import_smithy_client28.expectString)(output[_bu]);
      }
      if (output[_fa] != null) {
        contents[_Fa] = de_SpotInstanceStateFault(output[_fa], context);
      }
      if (output[_oI] != null) {
        contents[_OIwn] = (0, import_smithy_client28.expectString)(output[_oI]);
      }
      if (output[_pre] != null) {
        contents[_Pr2] = (0, import_smithy_client28.expectString)(output[_pre]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      return contents;
    }, "de_SpotDatafeedSubscription");
    var de_SpotFleetLaunchSpecification = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aTdd] != null) {
        contents[_ATd] = (0, import_smithy_client28.expectString)(output[_aTdd]);
      }
      if (output.blockDeviceMapping === "") {
        contents[_BDM] = [];
      } else if (output[_bDM] != null && output[_bDM][_i] != null) {
        contents[_BDM] = de_BlockDeviceMappingList((0, import_smithy_client28.getArrayIfSingleItem)(output[_bDM][_i]), context);
      }
      if (output[_eO] != null) {
        contents[_EO] = (0, import_smithy_client28.parseBoolean)(output[_eO]);
      }
      if (output[_iIP] != null) {
        contents[_IIP] = de_IamInstanceProfileSpecification(output[_iIP], context);
      }
      if (output[_iIma] != null) {
        contents[_IIma] = (0, import_smithy_client28.expectString)(output[_iIma]);
      }
      if (output[_iT] != null) {
        contents[_IT] = (0, import_smithy_client28.expectString)(output[_iT]);
      }
      if (output[_kI] != null) {
        contents[_KI] = (0, import_smithy_client28.expectString)(output[_kI]);
      }
      if (output[_kN] != null) {
        contents[_KN] = (0, import_smithy_client28.expectString)(output[_kN]);
      }
      if (output[_mo] != null) {
        contents[_Mon] = de_SpotFleetMonitoring(output[_mo], context);
      }
      if (output.networkInterfaceSet === "") {
        contents[_NI] = [];
      } else if (output[_nIS] != null && output[_nIS][_i] != null) {
        contents[_NI] = de_InstanceNetworkInterfaceSpecificationList((0, import_smithy_client28.getArrayIfSingleItem)(output[_nIS][_i]), context);
      }
      if (output[_pla] != null) {
        contents[_Pl] = de_SpotPlacement(output[_pla], context);
      }
      if (output[_rIa] != null) {
        contents[_RIa] = (0, import_smithy_client28.expectString)(output[_rIa]);
      }
      if (output[_sPp] != null) {
        contents[_SPp] = (0, import_smithy_client28.expectString)(output[_sPp]);
      }
      if (output[_sIu] != null) {
        contents[_SIub] = (0, import_smithy_client28.expectString)(output[_sIu]);
      }
      if (output[_uDs] != null) {
        contents[_UD] = (0, import_smithy_client28.expectString)(output[_uDs]);
      }
      if (output[_wC] != null) {
        contents[_WCe] = (0, import_smithy_client28.strictParseFloat)(output[_wC]);
      }
      if (output.tagSpecificationSet === "") {
        contents[_TS] = [];
      } else if (output[_tSS] != null && output[_tSS][_i] != null) {
        contents[_TS] = de_SpotFleetTagSpecificationList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tSS][_i]), context);
      }
      if (output[_iR] != null) {
        contents[_IR] = de_InstanceRequirements(output[_iR], context);
      }
      if (output.groupSet === "") {
        contents[_SG] = [];
      } else if (output[_gS] != null && output[_gS][_i] != null) {
        contents[_SG] = de_GroupIdentifierList((0, import_smithy_client28.getArrayIfSingleItem)(output[_gS][_i]), context);
      }
      return contents;
    }, "de_SpotFleetLaunchSpecification");
    var de_SpotFleetMonitoring = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_en] != null) {
        contents[_En] = (0, import_smithy_client28.parseBoolean)(output[_en]);
      }
      return contents;
    }, "de_SpotFleetMonitoring");
    var de_SpotFleetRequestConfig = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aSc] != null) {
        contents[_ASc] = (0, import_smithy_client28.expectString)(output[_aSc]);
      }
      if (output[_cTr] != null) {
        contents[_CTr] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_cTr]));
      }
      if (output[_sFRC] != null) {
        contents[_SFRC] = de_SpotFleetRequestConfigData(output[_sFRC], context);
      }
      if (output[_sFRI] != null) {
        contents[_SFRIp] = (0, import_smithy_client28.expectString)(output[_sFRI]);
      }
      if (output[_sFRSp] != null) {
        contents[_SFRS] = (0, import_smithy_client28.expectString)(output[_sFRSp]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      return contents;
    }, "de_SpotFleetRequestConfig");
    var de_SpotFleetRequestConfigData = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aSl] != null) {
        contents[_AS] = (0, import_smithy_client28.expectString)(output[_aSl]);
      }
      if (output[_oDAS] != null) {
        contents[_ODAS] = (0, import_smithy_client28.expectString)(output[_oDAS]);
      }
      if (output[_sMS] != null) {
        contents[_SMS] = de_SpotMaintenanceStrategies(output[_sMS], context);
      }
      if (output[_cT] != null) {
        contents[_CTl] = (0, import_smithy_client28.expectString)(output[_cT]);
      }
      if (output[_eCTP] != null) {
        contents[_ECTP] = (0, import_smithy_client28.expectString)(output[_eCTP]);
      }
      if (output[_fC] != null) {
        contents[_FC] = (0, import_smithy_client28.strictParseFloat)(output[_fC]);
      }
      if (output[_oDFC] != null) {
        contents[_ODFC] = (0, import_smithy_client28.strictParseFloat)(output[_oDFC]);
      }
      if (output[_iFR] != null) {
        contents[_IFR] = (0, import_smithy_client28.expectString)(output[_iFR]);
      }
      if (output.launchSpecifications === "") {
        contents[_LSau] = [];
      } else if (output[_lSa] != null && output[_lSa][_i] != null) {
        contents[_LSau] = de_LaunchSpecsList((0, import_smithy_client28.getArrayIfSingleItem)(output[_lSa][_i]), context);
      }
      if (output.launchTemplateConfigs === "") {
        contents[_LTC] = [];
      } else if (output[_lTC] != null && output[_lTC][_i] != null) {
        contents[_LTC] = de_LaunchTemplateConfigList((0, import_smithy_client28.getArrayIfSingleItem)(output[_lTC][_i]), context);
      }
      if (output[_sPp] != null) {
        contents[_SPp] = (0, import_smithy_client28.expectString)(output[_sPp]);
      }
      if (output[_tCar] != null) {
        contents[_TCa] = (0, import_smithy_client28.strictParseInt32)(output[_tCar]);
      }
      if (output[_oDTC] != null) {
        contents[_ODTC] = (0, import_smithy_client28.strictParseInt32)(output[_oDTC]);
      }
      if (output[_oDMTP] != null) {
        contents[_ODMTP] = (0, import_smithy_client28.expectString)(output[_oDMTP]);
      }
      if (output[_sMTP] != null) {
        contents[_SMTP] = (0, import_smithy_client28.expectString)(output[_sMTP]);
      }
      if (output[_tIWE] != null) {
        contents[_TIWE] = (0, import_smithy_client28.parseBoolean)(output[_tIWE]);
      }
      if (output[_ty] != null) {
        contents[_T2] = (0, import_smithy_client28.expectString)(output[_ty]);
      }
      if (output[_vF] != null) {
        contents[_VF] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_vF]));
      }
      if (output[_vU] != null) {
        contents[_VU] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_vU]));
      }
      if (output[_rUI] != null) {
        contents[_RUI] = (0, import_smithy_client28.parseBoolean)(output[_rUI]);
      }
      if (output[_iIB] != null) {
        contents[_IIB] = (0, import_smithy_client28.expectString)(output[_iIB]);
      }
      if (output[_lBC] != null) {
        contents[_LBC] = de_LoadBalancersConfig(output[_lBC], context);
      }
      if (output[_iPTUC] != null) {
        contents[_IPTUC] = (0, import_smithy_client28.strictParseInt32)(output[_iPTUC]);
      }
      if (output[_cont] != null) {
        contents[_Con] = (0, import_smithy_client28.expectString)(output[_cont]);
      }
      if (output[_tCUT] != null) {
        contents[_TCUT] = (0, import_smithy_client28.expectString)(output[_tCUT]);
      }
      if (output.TagSpecification === "") {
        contents[_TS] = [];
      } else if (output[_TSagp] != null && output[_TSagp][_i] != null) {
        contents[_TS] = de_TagSpecificationList((0, import_smithy_client28.getArrayIfSingleItem)(output[_TSagp][_i]), context);
      }
      return contents;
    }, "de_SpotFleetRequestConfigData");
    var de_SpotFleetRequestConfigSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_SpotFleetRequestConfig(entry, context);
      });
    }, "de_SpotFleetRequestConfigSet");
    var de_SpotFleetTagSpecification = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_rTe] != null) {
        contents[_RT] = (0, import_smithy_client28.expectString)(output[_rTe]);
      }
      if (output.tag === "") {
        contents[_Ta] = [];
      } else if (output[_tag] != null && output[_tag][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tag][_i]), context);
      }
      return contents;
    }, "de_SpotFleetTagSpecification");
    var de_SpotFleetTagSpecificationList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_SpotFleetTagSpecification(entry, context);
      });
    }, "de_SpotFleetTagSpecificationList");
    var de_SpotInstanceRequest = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aBHP] != null) {
        contents[_ABHP] = (0, import_smithy_client28.expectString)(output[_aBHP]);
      }
      if (output[_aZG] != null) {
        contents[_AZG] = (0, import_smithy_client28.expectString)(output[_aZG]);
      }
      if (output[_bDMl] != null) {
        contents[_BDMl] = (0, import_smithy_client28.strictParseInt32)(output[_bDMl]);
      }
      if (output[_cTr] != null) {
        contents[_CTr] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_cTr]));
      }
      if (output[_fa] != null) {
        contents[_Fa] = de_SpotInstanceStateFault(output[_fa], context);
      }
      if (output[_iI] != null) {
        contents[_IIn] = (0, import_smithy_client28.expectString)(output[_iI]);
      }
      if (output[_lG] != null) {
        contents[_LG] = (0, import_smithy_client28.expectString)(output[_lG]);
      }
      if (output[_lSau] != null) {
        contents[_LSa] = de_LaunchSpecification(output[_lSau], context);
      }
      if (output[_lAZ] != null) {
        contents[_LAZ] = (0, import_smithy_client28.expectString)(output[_lAZ]);
      }
      if (output[_lAZI] != null) {
        contents[_LAZI] = (0, import_smithy_client28.expectString)(output[_lAZI]);
      }
      if (output[_pDr] != null) {
        contents[_PDr] = (0, import_smithy_client28.expectString)(output[_pDr]);
      }
      if (output[_sIRI] != null) {
        contents[_SIRIp] = (0, import_smithy_client28.expectString)(output[_sIRI]);
      }
      if (output[_sPp] != null) {
        contents[_SPp] = (0, import_smithy_client28.expectString)(output[_sPp]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_sta] != null) {
        contents[_Statu] = de_SpotInstanceStatus(output[_sta], context);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_ty] != null) {
        contents[_T2] = (0, import_smithy_client28.expectString)(output[_ty]);
      }
      if (output[_vF] != null) {
        contents[_VF] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_vF]));
      }
      if (output[_vU] != null) {
        contents[_VU] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_vU]));
      }
      if (output[_iIB] != null) {
        contents[_IIB] = (0, import_smithy_client28.expectString)(output[_iIB]);
      }
      return contents;
    }, "de_SpotInstanceRequest");
    var de_SpotInstanceRequestList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_SpotInstanceRequest(entry, context);
      });
    }, "de_SpotInstanceRequestList");
    var de_SpotInstanceStateFault = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_co] != null) {
        contents[_Cod] = (0, import_smithy_client28.expectString)(output[_co]);
      }
      if (output[_me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_me]);
      }
      return contents;
    }, "de_SpotInstanceStateFault");
    var de_SpotInstanceStatus = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_co] != null) {
        contents[_Cod] = (0, import_smithy_client28.expectString)(output[_co]);
      }
      if (output[_me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_me]);
      }
      if (output[_uT] != null) {
        contents[_UTp] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_uT]));
      }
      return contents;
    }, "de_SpotInstanceStatus");
    var de_SpotMaintenanceStrategies = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cRa] != null) {
        contents[_CRap] = de_SpotCapacityRebalance(output[_cRa], context);
      }
      return contents;
    }, "de_SpotMaintenanceStrategies");
    var de_SpotOptions = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aSl] != null) {
        contents[_AS] = (0, import_smithy_client28.expectString)(output[_aSl]);
      }
      if (output[_mSai] != null) {
        contents[_MS] = de_FleetSpotMaintenanceStrategies(output[_mSai], context);
      }
      if (output[_iIB] != null) {
        contents[_IIB] = (0, import_smithy_client28.expectString)(output[_iIB]);
      }
      if (output[_iPTUC] != null) {
        contents[_IPTUC] = (0, import_smithy_client28.strictParseInt32)(output[_iPTUC]);
      }
      if (output[_sITi] != null) {
        contents[_SITi] = (0, import_smithy_client28.parseBoolean)(output[_sITi]);
      }
      if (output[_sAZ] != null) {
        contents[_SAZ] = (0, import_smithy_client28.parseBoolean)(output[_sAZ]);
      }
      if (output[_mTC] != null) {
        contents[_MTC] = (0, import_smithy_client28.strictParseInt32)(output[_mTC]);
      }
      if (output[_mTP] != null) {
        contents[_MTP] = (0, import_smithy_client28.expectString)(output[_mTP]);
      }
      return contents;
    }, "de_SpotOptions");
    var de_SpotPlacement = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aZ] != null) {
        contents[_AZ] = (0, import_smithy_client28.expectString)(output[_aZ]);
      }
      if (output[_gN] != null) {
        contents[_GN] = (0, import_smithy_client28.expectString)(output[_gN]);
      }
      if (output[_t] != null) {
        contents[_Te] = (0, import_smithy_client28.expectString)(output[_t]);
      }
      return contents;
    }, "de_SpotPlacement");
    var de_SpotPlacementScore = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_re] != null) {
        contents[_Regi] = (0, import_smithy_client28.expectString)(output[_re]);
      }
      if (output[_aZI] != null) {
        contents[_AZI] = (0, import_smithy_client28.expectString)(output[_aZI]);
      }
      if (output[_sco] != null) {
        contents[_Sco] = (0, import_smithy_client28.strictParseInt32)(output[_sco]);
      }
      return contents;
    }, "de_SpotPlacementScore");
    var de_SpotPlacementScores = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_SpotPlacementScore(entry, context);
      });
    }, "de_SpotPlacementScores");
    var de_SpotPrice = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aZ] != null) {
        contents[_AZ] = (0, import_smithy_client28.expectString)(output[_aZ]);
      }
      if (output[_aZI] != null) {
        contents[_AZI] = (0, import_smithy_client28.expectString)(output[_aZI]);
      }
      if (output[_iT] != null) {
        contents[_IT] = (0, import_smithy_client28.expectString)(output[_iT]);
      }
      if (output[_pDr] != null) {
        contents[_PDr] = (0, import_smithy_client28.expectString)(output[_pDr]);
      }
      if (output[_sPp] != null) {
        contents[_SPp] = (0, import_smithy_client28.expectString)(output[_sPp]);
      }
      if (output[_ti] != null) {
        contents[_Tim] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_ti]));
      }
      return contents;
    }, "de_SpotPrice");
    var de_SpotPriceHistoryList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_SpotPrice(entry, context);
      });
    }, "de_SpotPriceHistoryList");
    var de_StaleIpPermission = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_fP] != null) {
        contents[_FP] = (0, import_smithy_client28.strictParseInt32)(output[_fP]);
      }
      if (output[_iPpr] != null) {
        contents[_IPpr] = (0, import_smithy_client28.expectString)(output[_iPpr]);
      }
      if (output.ipRanges === "") {
        contents[_IRp] = [];
      } else if (output[_iRpa] != null && output[_iRpa][_i] != null) {
        contents[_IRp] = de_IpRanges((0, import_smithy_client28.getArrayIfSingleItem)(output[_iRpa][_i]), context);
      }
      if (output.prefixListIds === "") {
        contents[_PLIr] = [];
      } else if (output[_pLIr] != null && output[_pLIr][_i] != null) {
        contents[_PLIr] = de_PrefixListIdSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_pLIr][_i]), context);
      }
      if (output[_tPo] != null) {
        contents[_TP] = (0, import_smithy_client28.strictParseInt32)(output[_tPo]);
      }
      if (output.groups === "") {
        contents[_UIGP] = [];
      } else if (output[_gr] != null && output[_gr][_i] != null) {
        contents[_UIGP] = de_UserIdGroupPairSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_gr][_i]), context);
      }
      return contents;
    }, "de_StaleIpPermission");
    var de_StaleIpPermissionSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_StaleIpPermission(entry, context);
      });
    }, "de_StaleIpPermissionSet");
    var de_StaleSecurityGroup = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      if (output[_gIr] != null) {
        contents[_GIr] = (0, import_smithy_client28.expectString)(output[_gIr]);
      }
      if (output[_gN] != null) {
        contents[_GN] = (0, import_smithy_client28.expectString)(output[_gN]);
      }
      if (output.staleIpPermissions === "") {
        contents[_SIP] = [];
      } else if (output[_sIP] != null && output[_sIP][_i] != null) {
        contents[_SIP] = de_StaleIpPermissionSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_sIP][_i]), context);
      }
      if (output.staleIpPermissionsEgress === "") {
        contents[_SIPE] = [];
      } else if (output[_sIPE] != null && output[_sIPE][_i] != null) {
        contents[_SIPE] = de_StaleIpPermissionSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_sIPE][_i]), context);
      }
      if (output[_vI] != null) {
        contents[_VI] = (0, import_smithy_client28.expectString)(output[_vI]);
      }
      return contents;
    }, "de_StaleSecurityGroup");
    var de_StaleSecurityGroupSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_StaleSecurityGroup(entry, context);
      });
    }, "de_StaleSecurityGroupSet");
    var de_StartDeclarativePoliciesReportResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_rI] != null) {
        contents[_RIep] = (0, import_smithy_client28.expectString)(output[_rI]);
      }
      return contents;
    }, "de_StartDeclarativePoliciesReportResult");
    var de_StartInstancesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.instancesSet === "") {
        contents[_SIta] = [];
      } else if (output[_iSn] != null && output[_iSn][_i] != null) {
        contents[_SIta] = de_InstanceStateChangeList((0, import_smithy_client28.getArrayIfSingleItem)(output[_iSn][_i]), context);
      }
      return contents;
    }, "de_StartInstancesResult");
    var de_StartNetworkInsightsAccessScopeAnalysisResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nIASAe] != null) {
        contents[_NIASAet] = de_NetworkInsightsAccessScopeAnalysis(output[_nIASAe], context);
      }
      return contents;
    }, "de_StartNetworkInsightsAccessScopeAnalysisResult");
    var de_StartNetworkInsightsAnalysisResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nIA] != null) {
        contents[_NIAe] = de_NetworkInsightsAnalysis(output[_nIA], context);
      }
      return contents;
    }, "de_StartNetworkInsightsAnalysisResult");
    var de_StartVpcEndpointServicePrivateDnsVerificationResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_RV] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      return contents;
    }, "de_StartVpcEndpointServicePrivateDnsVerificationResult");
    var de_StateReason = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_co] != null) {
        contents[_Cod] = (0, import_smithy_client28.expectString)(output[_co]);
      }
      if (output[_me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_me]);
      }
      return contents;
    }, "de_StateReason");
    var de_StopInstancesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.instancesSet === "") {
        contents[_SIto] = [];
      } else if (output[_iSn] != null && output[_iSn][_i] != null) {
        contents[_SIto] = de_InstanceStateChangeList((0, import_smithy_client28.getArrayIfSingleItem)(output[_iSn][_i]), context);
      }
      return contents;
    }, "de_StopInstancesResult");
    var de_Storage = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_S_] != null) {
        contents[_S_] = de_S3Storage(output[_S_], context);
      }
      return contents;
    }, "de_Storage");
    var de_StoreImageTaskResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aIm] != null) {
        contents[_AIm] = (0, import_smithy_client28.expectString)(output[_aIm]);
      }
      if (output[_tSTa] != null) {
        contents[_TSTa] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_tSTa]));
      }
      if (output[_bu] != null) {
        contents[_B] = (0, import_smithy_client28.expectString)(output[_bu]);
      }
      if (output[_sKo] != null) {
        contents[_SKo] = (0, import_smithy_client28.expectString)(output[_sKo]);
      }
      if (output[_pP] != null) {
        contents[_PP] = (0, import_smithy_client28.strictParseInt32)(output[_pP]);
      }
      if (output[_sTS] != null) {
        contents[_STSt] = (0, import_smithy_client28.expectString)(output[_sTS]);
      }
      if (output[_sTFR] != null) {
        contents[_STFR] = (0, import_smithy_client28.expectString)(output[_sTFR]);
      }
      return contents;
    }, "de_StoreImageTaskResult");
    var de_StoreImageTaskResultSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_StoreImageTaskResult(entry, context);
      });
    }, "de_StoreImageTaskResultSet");
    var de_StringList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_StringList");
    var de_Subnet = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aZI] != null) {
        contents[_AZI] = (0, import_smithy_client28.expectString)(output[_aZI]);
      }
      if (output[_eLADI] != null) {
        contents[_ELADI] = (0, import_smithy_client28.strictParseInt32)(output[_eLADI]);
      }
      if (output[_mCOIOL] != null) {
        contents[_MCOIOL] = (0, import_smithy_client28.parseBoolean)(output[_mCOIOL]);
      }
      if (output[_cOIP] != null) {
        contents[_COIP] = (0, import_smithy_client28.expectString)(output[_cOIP]);
      }
      if (output[_oI] != null) {
        contents[_OIwn] = (0, import_smithy_client28.expectString)(output[_oI]);
      }
      if (output[_aIAOC] != null) {
        contents[_AIAOC] = (0, import_smithy_client28.parseBoolean)(output[_aIAOC]);
      }
      if (output.ipv6CidrBlockAssociationSet === "") {
        contents[_ICBAS] = [];
      } else if (output[_iCBAS] != null && output[_iCBAS][_i] != null) {
        contents[_ICBAS] = de_SubnetIpv6CidrBlockAssociationSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_iCBAS][_i]), context);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_sAub] != null) {
        contents[_SAub] = (0, import_smithy_client28.expectString)(output[_sAub]);
      }
      if (output[_oA] != null) {
        contents[_OA] = (0, import_smithy_client28.expectString)(output[_oA]);
      }
      if (output[_eDn] != null) {
        contents[_EDn] = (0, import_smithy_client28.parseBoolean)(output[_eDn]);
      }
      if (output[_iN] != null) {
        contents[_IN] = (0, import_smithy_client28.parseBoolean)(output[_iN]);
      }
      if (output[_pDNOOL] != null) {
        contents[_PDNOOL] = de_PrivateDnsNameOptionsOnLaunch(output[_pDNOOL], context);
      }
      if (output[_bPAS] != null) {
        contents[_BPAS] = de_BlockPublicAccessStates(output[_bPAS], context);
      }
      if (output[_ty] != null) {
        contents[_T2] = (0, import_smithy_client28.expectString)(output[_ty]);
      }
      if (output[_sIu] != null) {
        contents[_SIub] = (0, import_smithy_client28.expectString)(output[_sIu]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_vI] != null) {
        contents[_VI] = (0, import_smithy_client28.expectString)(output[_vI]);
      }
      if (output[_cB] != null) {
        contents[_CB] = (0, import_smithy_client28.expectString)(output[_cB]);
      }
      if (output[_aIAC] != null) {
        contents[_AIAC] = (0, import_smithy_client28.strictParseInt32)(output[_aIAC]);
      }
      if (output[_aZ] != null) {
        contents[_AZ] = (0, import_smithy_client28.expectString)(output[_aZ]);
      }
      if (output[_dFA] != null) {
        contents[_DFA] = (0, import_smithy_client28.parseBoolean)(output[_dFA]);
      }
      if (output[_mPIOL] != null) {
        contents[_MPIOL] = (0, import_smithy_client28.parseBoolean)(output[_mPIOL]);
      }
      return contents;
    }, "de_Subnet");
    var de_SubnetAssociation = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sIu] != null) {
        contents[_SIub] = (0, import_smithy_client28.expectString)(output[_sIu]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      return contents;
    }, "de_SubnetAssociation");
    var de_SubnetAssociationList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_SubnetAssociation(entry, context);
      });
    }, "de_SubnetAssociationList");
    var de_SubnetCidrBlockState = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_sMt] != null) {
        contents[_SMt] = (0, import_smithy_client28.expectString)(output[_sMt]);
      }
      return contents;
    }, "de_SubnetCidrBlockState");
    var de_SubnetCidrReservation = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sCRI] != null) {
        contents[_SCRIu] = (0, import_smithy_client28.expectString)(output[_sCRI]);
      }
      if (output[_sIu] != null) {
        contents[_SIub] = (0, import_smithy_client28.expectString)(output[_sIu]);
      }
      if (output[_ci] != null) {
        contents[_C2] = (0, import_smithy_client28.expectString)(output[_ci]);
      }
      if (output[_rT] != null) {
        contents[_RTes] = (0, import_smithy_client28.expectString)(output[_rT]);
      }
      if (output[_oI] != null) {
        contents[_OIwn] = (0, import_smithy_client28.expectString)(output[_oI]);
      }
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      return contents;
    }, "de_SubnetCidrReservation");
    var de_SubnetCidrReservationList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_SubnetCidrReservation(entry, context);
      });
    }, "de_SubnetCidrReservationList");
    var de_SubnetIpPrefixes = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sIu] != null) {
        contents[_SIub] = (0, import_smithy_client28.expectString)(output[_sIu]);
      }
      if (output.ipPrefixSet === "") {
        contents[_IPpre] = [];
      } else if (output[_iPSpr] != null && output[_iPSpr][_i] != null) {
        contents[_IPpre] = de_ValueStringList((0, import_smithy_client28.getArrayIfSingleItem)(output[_iPSpr][_i]), context);
      }
      return contents;
    }, "de_SubnetIpPrefixes");
    var de_SubnetIpPrefixesList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_SubnetIpPrefixes(entry, context);
      });
    }, "de_SubnetIpPrefixesList");
    var de_SubnetIpv6CidrBlockAssociation = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aIs] != null) {
        contents[_AIss] = (0, import_smithy_client28.expectString)(output[_aIs]);
      }
      if (output[_iCB] != null) {
        contents[_ICB] = (0, import_smithy_client28.expectString)(output[_iCB]);
      }
      if (output[_iCBS] != null) {
        contents[_ICBS] = de_SubnetCidrBlockState(output[_iCBS], context);
      }
      if (output[_iAA] != null) {
        contents[_IAA] = (0, import_smithy_client28.expectString)(output[_iAA]);
      }
      if (output[_iSpo] != null) {
        contents[_ISpo] = (0, import_smithy_client28.expectString)(output[_iSpo]);
      }
      return contents;
    }, "de_SubnetIpv6CidrBlockAssociation");
    var de_SubnetIpv6CidrBlockAssociationSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_SubnetIpv6CidrBlockAssociation(entry, context);
      });
    }, "de_SubnetIpv6CidrBlockAssociationSet");
    var de_SubnetList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Subnet(entry, context);
      });
    }, "de_SubnetList");
    var de_Subscription = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_s] != null) {
        contents[_S] = (0, import_smithy_client28.expectString)(output[_s]);
      }
      if (output[_d] != null) {
        contents[_D] = (0, import_smithy_client28.expectString)(output[_d]);
      }
      if (output[_met] != null) {
        contents[_Met] = (0, import_smithy_client28.expectString)(output[_met]);
      }
      if (output[_stat] != null) {
        contents[_Sta] = (0, import_smithy_client28.expectString)(output[_stat]);
      }
      if (output[_pe] != null) {
        contents[_Per] = (0, import_smithy_client28.expectString)(output[_pe]);
      }
      return contents;
    }, "de_Subscription");
    var de_SubscriptionList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Subscription(entry, context);
      });
    }, "de_SubscriptionList");
    var de_SuccessfulInstanceCreditSpecificationItem = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iI] != null) {
        contents[_IIn] = (0, import_smithy_client28.expectString)(output[_iI]);
      }
      return contents;
    }, "de_SuccessfulInstanceCreditSpecificationItem");
    var de_SuccessfulInstanceCreditSpecificationSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_SuccessfulInstanceCreditSpecificationItem(entry, context);
      });
    }, "de_SuccessfulInstanceCreditSpecificationSet");
    var de_SuccessfulQueuedPurchaseDeletion = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_rII] != null) {
        contents[_RIIe] = (0, import_smithy_client28.expectString)(output[_rII]);
      }
      return contents;
    }, "de_SuccessfulQueuedPurchaseDeletion");
    var de_SuccessfulQueuedPurchaseDeletionSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_SuccessfulQueuedPurchaseDeletion(entry, context);
      });
    }, "de_SuccessfulQueuedPurchaseDeletionSet");
    var de_SupportedAdditionalProcessorFeatureList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_SupportedAdditionalProcessorFeatureList");
    var de_SupportedIpAddressTypes = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_SupportedIpAddressTypes");
    var de_SupportedRegionDetail = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_re] != null) {
        contents[_Regi] = (0, import_smithy_client28.expectString)(output[_re]);
      }
      if (output[_sSer] != null) {
        contents[_SSe] = (0, import_smithy_client28.expectString)(output[_sSer]);
      }
      return contents;
    }, "de_SupportedRegionDetail");
    var de_SupportedRegionSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_SupportedRegionDetail(entry, context);
      });
    }, "de_SupportedRegionSet");
    var de_Tag = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_k] != null) {
        contents[_Ke] = (0, import_smithy_client28.expectString)(output[_k]);
      }
      if (output[_v] != null) {
        contents[_Va2] = (0, import_smithy_client28.expectString)(output[_v]);
      }
      return contents;
    }, "de_Tag");
    var de_TagDescription = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_k] != null) {
        contents[_Ke] = (0, import_smithy_client28.expectString)(output[_k]);
      }
      if (output[_rIes] != null) {
        contents[_RIeso] = (0, import_smithy_client28.expectString)(output[_rIes]);
      }
      if (output[_rTe] != null) {
        contents[_RT] = (0, import_smithy_client28.expectString)(output[_rTe]);
      }
      if (output[_v] != null) {
        contents[_Va2] = (0, import_smithy_client28.expectString)(output[_v]);
      }
      return contents;
    }, "de_TagDescription");
    var de_TagDescriptionList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TagDescription(entry, context);
      });
    }, "de_TagDescriptionList");
    var de_TagList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Tag(entry, context);
      });
    }, "de_TagList");
    var de_TagSpecification = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_rTe] != null) {
        contents[_RT] = (0, import_smithy_client28.expectString)(output[_rTe]);
      }
      if (output.Tag === "") {
        contents[_Ta] = [];
      } else if (output[_Tag] != null && output[_Tag][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_Tag][_i]), context);
      }
      return contents;
    }, "de_TagSpecification");
    var de_TagSpecificationList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TagSpecification(entry, context);
      });
    }, "de_TagSpecificationList");
    var de_TargetCapacitySpecification = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tTC] != null) {
        contents[_TTC] = (0, import_smithy_client28.strictParseInt32)(output[_tTC]);
      }
      if (output[_oDTC] != null) {
        contents[_ODTC] = (0, import_smithy_client28.strictParseInt32)(output[_oDTC]);
      }
      if (output[_sTC] != null) {
        contents[_STC] = (0, import_smithy_client28.strictParseInt32)(output[_sTC]);
      }
      if (output[_dTCT] != null) {
        contents[_DTCT] = (0, import_smithy_client28.expectString)(output[_dTCT]);
      }
      if (output[_tCUT] != null) {
        contents[_TCUT] = (0, import_smithy_client28.expectString)(output[_tCUT]);
      }
      return contents;
    }, "de_TargetCapacitySpecification");
    var de_TargetConfiguration = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iC] != null) {
        contents[_IC] = (0, import_smithy_client28.strictParseInt32)(output[_iC]);
      }
      if (output[_oIf] != null) {
        contents[_OI] = (0, import_smithy_client28.expectString)(output[_oIf]);
      }
      return contents;
    }, "de_TargetConfiguration");
    var de_TargetGroup = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ar] != null) {
        contents[_Ar2] = (0, import_smithy_client28.expectString)(output[_ar]);
      }
      return contents;
    }, "de_TargetGroup");
    var de_TargetGroups = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TargetGroup(entry, context);
      });
    }, "de_TargetGroups");
    var de_TargetGroupsConfig = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.targetGroups === "") {
        contents[_TG] = [];
      } else if (output[_tGa] != null && output[_tGa][_i] != null) {
        contents[_TG] = de_TargetGroups((0, import_smithy_client28.getArrayIfSingleItem)(output[_tGa][_i]), context);
      }
      return contents;
    }, "de_TargetGroupsConfig");
    var de_TargetNetwork = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aIs] != null) {
        contents[_AIss] = (0, import_smithy_client28.expectString)(output[_aIs]);
      }
      if (output[_vI] != null) {
        contents[_VI] = (0, import_smithy_client28.expectString)(output[_vI]);
      }
      if (output[_tNI] != null) {
        contents[_TNI] = (0, import_smithy_client28.expectString)(output[_tNI]);
      }
      if (output[_cVEI] != null) {
        contents[_CVEI] = (0, import_smithy_client28.expectString)(output[_cVEI]);
      }
      if (output[_sta] != null) {
        contents[_Statu] = de_AssociationStatus(output[_sta], context);
      }
      if (output.securityGroups === "") {
        contents[_SG] = [];
      } else if (output[_sGe] != null && output[_sGe][_i] != null) {
        contents[_SG] = de_ValueStringList((0, import_smithy_client28.getArrayIfSingleItem)(output[_sGe][_i]), context);
      }
      return contents;
    }, "de_TargetNetwork");
    var de_TargetNetworkSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TargetNetwork(entry, context);
      });
    }, "de_TargetNetworkSet");
    var de_TargetReservationValue = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_rVe] != null) {
        contents[_RVe] = de_ReservationValue(output[_rVe], context);
      }
      if (output[_tCa] != null) {
        contents[_TCar] = de_TargetConfiguration(output[_tCa], context);
      }
      return contents;
    }, "de_TargetReservationValue");
    var de_TargetReservationValueSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TargetReservationValue(entry, context);
      });
    }, "de_TargetReservationValueSet");
    var de_TerminateClientVpnConnectionsResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cVEI] != null) {
        contents[_CVEI] = (0, import_smithy_client28.expectString)(output[_cVEI]);
      }
      if (output[_us] != null) {
        contents[_Us] = (0, import_smithy_client28.expectString)(output[_us]);
      }
      if (output.connectionStatuses === "") {
        contents[_CSonn] = [];
      } else if (output[_cSonn] != null && output[_cSonn][_i] != null) {
        contents[_CSonn] = de_TerminateConnectionStatusSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_cSonn][_i]), context);
      }
      return contents;
    }, "de_TerminateClientVpnConnectionsResult");
    var de_TerminateConnectionStatus = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cIon] != null) {
        contents[_CIo] = (0, import_smithy_client28.expectString)(output[_cIon]);
      }
      if (output[_pSre] != null) {
        contents[_PSrev] = de_ClientVpnConnectionStatus(output[_pSre], context);
      }
      if (output[_cSur] != null) {
        contents[_CSur] = de_ClientVpnConnectionStatus(output[_cSur], context);
      }
      return contents;
    }, "de_TerminateConnectionStatus");
    var de_TerminateConnectionStatusSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TerminateConnectionStatus(entry, context);
      });
    }, "de_TerminateConnectionStatusSet");
    var de_TerminateInstancesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.instancesSet === "") {
        contents[_TIer] = [];
      } else if (output[_iSn] != null && output[_iSn][_i] != null) {
        contents[_TIer] = de_InstanceStateChangeList((0, import_smithy_client28.getArrayIfSingleItem)(output[_iSn][_i]), context);
      }
      return contents;
    }, "de_TerminateInstancesResult");
    var de_ThreadsPerCoreList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.strictParseInt32)(entry);
      });
    }, "de_ThreadsPerCoreList");
    var de_ThroughResourcesStatement = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_rSeso] != null) {
        contents[_RSe] = de_ResourceStatement(output[_rSeso], context);
      }
      return contents;
    }, "de_ThroughResourcesStatement");
    var de_ThroughResourcesStatementList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ThroughResourcesStatement(entry, context);
      });
    }, "de_ThroughResourcesStatementList");
    var de_TotalLocalStorageGB = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_m2] != null) {
        contents[_M] = (0, import_smithy_client28.strictParseFloat)(output[_m2]);
      }
      if (output[_ma] != null) {
        contents[_Ma] = (0, import_smithy_client28.strictParseFloat)(output[_ma]);
      }
      return contents;
    }, "de_TotalLocalStorageGB");
    var de_TrafficMirrorFilter = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tMFI] != null) {
        contents[_TMFI] = (0, import_smithy_client28.expectString)(output[_tMFI]);
      }
      if (output.ingressFilterRuleSet === "") {
        contents[_IFRn] = [];
      } else if (output[_iFRS] != null && output[_iFRS][_i] != null) {
        contents[_IFRn] = de_TrafficMirrorFilterRuleList((0, import_smithy_client28.getArrayIfSingleItem)(output[_iFRS][_i]), context);
      }
      if (output.egressFilterRuleSet === "") {
        contents[_EFR] = [];
      } else if (output[_eFRS] != null && output[_eFRS][_i] != null) {
        contents[_EFR] = de_TrafficMirrorFilterRuleList((0, import_smithy_client28.getArrayIfSingleItem)(output[_eFRS][_i]), context);
      }
      if (output.networkServiceSet === "") {
        contents[_NSe] = [];
      } else if (output[_nSS] != null && output[_nSS][_i] != null) {
        contents[_NSe] = de_TrafficMirrorNetworkServiceList((0, import_smithy_client28.getArrayIfSingleItem)(output[_nSS][_i]), context);
      }
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      return contents;
    }, "de_TrafficMirrorFilter");
    var de_TrafficMirrorFilterRule = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tMFRI] != null) {
        contents[_TMFRI] = (0, import_smithy_client28.expectString)(output[_tMFRI]);
      }
      if (output[_tMFI] != null) {
        contents[_TMFI] = (0, import_smithy_client28.expectString)(output[_tMFI]);
      }
      if (output[_tDr] != null) {
        contents[_TD] = (0, import_smithy_client28.expectString)(output[_tDr]);
      }
      if (output[_rN] != null) {
        contents[_RNu] = (0, import_smithy_client28.strictParseInt32)(output[_rN]);
      }
      if (output[_rA] != null) {
        contents[_RAu] = (0, import_smithy_client28.expectString)(output[_rA]);
      }
      if (output[_pr] != null) {
        contents[_P2] = (0, import_smithy_client28.strictParseInt32)(output[_pr]);
      }
      if (output[_dPR] != null) {
        contents[_DPR] = de_TrafficMirrorPortRange(output[_dPR], context);
      }
      if (output[_sPR] != null) {
        contents[_SPR] = de_TrafficMirrorPortRange(output[_sPR], context);
      }
      if (output[_dCB] != null) {
        contents[_DCBe] = (0, import_smithy_client28.expectString)(output[_dCB]);
      }
      if (output[_sCB] != null) {
        contents[_SCB] = (0, import_smithy_client28.expectString)(output[_sCB]);
      }
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      return contents;
    }, "de_TrafficMirrorFilterRule");
    var de_TrafficMirrorFilterRuleList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TrafficMirrorFilterRule(entry, context);
      });
    }, "de_TrafficMirrorFilterRuleList");
    var de_TrafficMirrorFilterRuleSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TrafficMirrorFilterRule(entry, context);
      });
    }, "de_TrafficMirrorFilterRuleSet");
    var de_TrafficMirrorFilterSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TrafficMirrorFilter(entry, context);
      });
    }, "de_TrafficMirrorFilterSet");
    var de_TrafficMirrorNetworkServiceList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_TrafficMirrorNetworkServiceList");
    var de_TrafficMirrorPortRange = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_fP] != null) {
        contents[_FP] = (0, import_smithy_client28.strictParseInt32)(output[_fP]);
      }
      if (output[_tPo] != null) {
        contents[_TP] = (0, import_smithy_client28.strictParseInt32)(output[_tPo]);
      }
      return contents;
    }, "de_TrafficMirrorPortRange");
    var de_TrafficMirrorSession = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tMSI] != null) {
        contents[_TMSI] = (0, import_smithy_client28.expectString)(output[_tMSI]);
      }
      if (output[_tMTI] != null) {
        contents[_TMTI] = (0, import_smithy_client28.expectString)(output[_tMTI]);
      }
      if (output[_tMFI] != null) {
        contents[_TMFI] = (0, import_smithy_client28.expectString)(output[_tMFI]);
      }
      if (output[_nII] != null) {
        contents[_NII] = (0, import_smithy_client28.expectString)(output[_nII]);
      }
      if (output[_oI] != null) {
        contents[_OIwn] = (0, import_smithy_client28.expectString)(output[_oI]);
      }
      if (output[_pLa] != null) {
        contents[_PL] = (0, import_smithy_client28.strictParseInt32)(output[_pLa]);
      }
      if (output[_sNes] != null) {
        contents[_SN2] = (0, import_smithy_client28.strictParseInt32)(output[_sNes]);
      }
      if (output[_vNI] != null) {
        contents[_VNI] = (0, import_smithy_client28.strictParseInt32)(output[_vNI]);
      }
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      return contents;
    }, "de_TrafficMirrorSession");
    var de_TrafficMirrorSessionSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TrafficMirrorSession(entry, context);
      });
    }, "de_TrafficMirrorSessionSet");
    var de_TrafficMirrorTarget = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tMTI] != null) {
        contents[_TMTI] = (0, import_smithy_client28.expectString)(output[_tMTI]);
      }
      if (output[_nII] != null) {
        contents[_NII] = (0, import_smithy_client28.expectString)(output[_nII]);
      }
      if (output[_nLBA] != null) {
        contents[_NLBA] = (0, import_smithy_client28.expectString)(output[_nLBA]);
      }
      if (output[_ty] != null) {
        contents[_T2] = (0, import_smithy_client28.expectString)(output[_ty]);
      }
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      if (output[_oI] != null) {
        contents[_OIwn] = (0, import_smithy_client28.expectString)(output[_oI]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_gLBEI] != null) {
        contents[_GLBEI] = (0, import_smithy_client28.expectString)(output[_gLBEI]);
      }
      return contents;
    }, "de_TrafficMirrorTarget");
    var de_TrafficMirrorTargetSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TrafficMirrorTarget(entry, context);
      });
    }, "de_TrafficMirrorTargetSet");
    var de_TransitGateway = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tGI] != null) {
        contents[_TGI] = (0, import_smithy_client28.expectString)(output[_tGI]);
      }
      if (output[_tGAra] != null) {
        contents[_TGAran] = (0, import_smithy_client28.expectString)(output[_tGAra]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_oI] != null) {
        contents[_OIwn] = (0, import_smithy_client28.expectString)(output[_oI]);
      }
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      if (output[_cTre] != null) {
        contents[_CTre] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_cTre]));
      }
      if (output[_opt] != null) {
        contents[_Op] = de_TransitGatewayOptions(output[_opt], context);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      return contents;
    }, "de_TransitGateway");
    var de_TransitGatewayAssociation = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tGRTI] != null) {
        contents[_TGRTI] = (0, import_smithy_client28.expectString)(output[_tGRTI]);
      }
      if (output[_tGAI] != null) {
        contents[_TGAI] = (0, import_smithy_client28.expectString)(output[_tGAI]);
      }
      if (output[_rIes] != null) {
        contents[_RIeso] = (0, import_smithy_client28.expectString)(output[_rIes]);
      }
      if (output[_rTe] != null) {
        contents[_RT] = (0, import_smithy_client28.expectString)(output[_rTe]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      return contents;
    }, "de_TransitGatewayAssociation");
    var de_TransitGatewayAttachment = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tGAI] != null) {
        contents[_TGAI] = (0, import_smithy_client28.expectString)(output[_tGAI]);
      }
      if (output[_tGI] != null) {
        contents[_TGI] = (0, import_smithy_client28.expectString)(output[_tGI]);
      }
      if (output[_tGOI] != null) {
        contents[_TGOI] = (0, import_smithy_client28.expectString)(output[_tGOI]);
      }
      if (output[_rOI] != null) {
        contents[_ROI] = (0, import_smithy_client28.expectString)(output[_rOI]);
      }
      if (output[_rTe] != null) {
        contents[_RT] = (0, import_smithy_client28.expectString)(output[_rTe]);
      }
      if (output[_rIes] != null) {
        contents[_RIeso] = (0, import_smithy_client28.expectString)(output[_rIes]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_ass] != null) {
        contents[_Asso] = de_TransitGatewayAttachmentAssociation(output[_ass], context);
      }
      if (output[_cTre] != null) {
        contents[_CTre] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_cTre]));
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      return contents;
    }, "de_TransitGatewayAttachment");
    var de_TransitGatewayAttachmentAssociation = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tGRTI] != null) {
        contents[_TGRTI] = (0, import_smithy_client28.expectString)(output[_tGRTI]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      return contents;
    }, "de_TransitGatewayAttachmentAssociation");
    var de_TransitGatewayAttachmentBgpConfiguration = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tGAran] != null) {
        contents[_TGArans] = (0, import_smithy_client28.strictParseLong)(output[_tGAran]);
      }
      if (output[_pAee] != null) {
        contents[_PAee] = (0, import_smithy_client28.strictParseLong)(output[_pAee]);
      }
      if (output[_tGArans] != null) {
        contents[_TGA] = (0, import_smithy_client28.expectString)(output[_tGArans]);
      }
      if (output[_pAe] != null) {
        contents[_PAe] = (0, import_smithy_client28.expectString)(output[_pAe]);
      }
      if (output[_bSg] != null) {
        contents[_BSg] = (0, import_smithy_client28.expectString)(output[_bSg]);
      }
      return contents;
    }, "de_TransitGatewayAttachmentBgpConfiguration");
    var de_TransitGatewayAttachmentBgpConfigurationList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TransitGatewayAttachmentBgpConfiguration(entry, context);
      });
    }, "de_TransitGatewayAttachmentBgpConfigurationList");
    var de_TransitGatewayAttachmentList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TransitGatewayAttachment(entry, context);
      });
    }, "de_TransitGatewayAttachmentList");
    var de_TransitGatewayAttachmentPropagation = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tGRTI] != null) {
        contents[_TGRTI] = (0, import_smithy_client28.expectString)(output[_tGRTI]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      return contents;
    }, "de_TransitGatewayAttachmentPropagation");
    var de_TransitGatewayAttachmentPropagationList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TransitGatewayAttachmentPropagation(entry, context);
      });
    }, "de_TransitGatewayAttachmentPropagationList");
    var de_TransitGatewayConnect = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tGAI] != null) {
        contents[_TGAI] = (0, import_smithy_client28.expectString)(output[_tGAI]);
      }
      if (output[_tTGAI] != null) {
        contents[_TTGAI] = (0, import_smithy_client28.expectString)(output[_tTGAI]);
      }
      if (output[_tGI] != null) {
        contents[_TGI] = (0, import_smithy_client28.expectString)(output[_tGI]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_cTre] != null) {
        contents[_CTre] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_cTre]));
      }
      if (output[_opt] != null) {
        contents[_Op] = de_TransitGatewayConnectOptions(output[_opt], context);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      return contents;
    }, "de_TransitGatewayConnect");
    var de_TransitGatewayConnectList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TransitGatewayConnect(entry, context);
      });
    }, "de_TransitGatewayConnectList");
    var de_TransitGatewayConnectOptions = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_pr] != null) {
        contents[_P2] = (0, import_smithy_client28.expectString)(output[_pr]);
      }
      return contents;
    }, "de_TransitGatewayConnectOptions");
    var de_TransitGatewayConnectPeer = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tGAI] != null) {
        contents[_TGAI] = (0, import_smithy_client28.expectString)(output[_tGAI]);
      }
      if (output[_tGCPI] != null) {
        contents[_TGCPI] = (0, import_smithy_client28.expectString)(output[_tGCPI]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_cTre] != null) {
        contents[_CTre] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_cTre]));
      }
      if (output[_cPC] != null) {
        contents[_CPC] = de_TransitGatewayConnectPeerConfiguration(output[_cPC], context);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      return contents;
    }, "de_TransitGatewayConnectPeer");
    var de_TransitGatewayConnectPeerConfiguration = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tGArans] != null) {
        contents[_TGA] = (0, import_smithy_client28.expectString)(output[_tGArans]);
      }
      if (output[_pAe] != null) {
        contents[_PAe] = (0, import_smithy_client28.expectString)(output[_pAe]);
      }
      if (output.insideCidrBlocks === "") {
        contents[_ICBn] = [];
      } else if (output[_iCBn] != null && output[_iCBn][_i] != null) {
        contents[_ICBn] = de_InsideCidrBlocksStringList((0, import_smithy_client28.getArrayIfSingleItem)(output[_iCBn][_i]), context);
      }
      if (output[_pr] != null) {
        contents[_P2] = (0, import_smithy_client28.expectString)(output[_pr]);
      }
      if (output.bgpConfigurations === "") {
        contents[_BCg] = [];
      } else if (output[_bCg] != null && output[_bCg][_i] != null) {
        contents[_BCg] = de_TransitGatewayAttachmentBgpConfigurationList((0, import_smithy_client28.getArrayIfSingleItem)(output[_bCg][_i]), context);
      }
      return contents;
    }, "de_TransitGatewayConnectPeerConfiguration");
    var de_TransitGatewayConnectPeerList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TransitGatewayConnectPeer(entry, context);
      });
    }, "de_TransitGatewayConnectPeerList");
    var de_TransitGatewayList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TransitGateway(entry, context);
      });
    }, "de_TransitGatewayList");
    var de_TransitGatewayMulticastDeregisteredGroupMembers = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tGMDI] != null) {
        contents[_TGMDI] = (0, import_smithy_client28.expectString)(output[_tGMDI]);
      }
      if (output.deregisteredNetworkInterfaceIds === "") {
        contents[_DNII] = [];
      } else if (output[_dNII] != null && output[_dNII][_i] != null) {
        contents[_DNII] = de_ValueStringList((0, import_smithy_client28.getArrayIfSingleItem)(output[_dNII][_i]), context);
      }
      if (output[_gIA] != null) {
        contents[_GIA] = (0, import_smithy_client28.expectString)(output[_gIA]);
      }
      return contents;
    }, "de_TransitGatewayMulticastDeregisteredGroupMembers");
    var de_TransitGatewayMulticastDeregisteredGroupSources = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tGMDI] != null) {
        contents[_TGMDI] = (0, import_smithy_client28.expectString)(output[_tGMDI]);
      }
      if (output.deregisteredNetworkInterfaceIds === "") {
        contents[_DNII] = [];
      } else if (output[_dNII] != null && output[_dNII][_i] != null) {
        contents[_DNII] = de_ValueStringList((0, import_smithy_client28.getArrayIfSingleItem)(output[_dNII][_i]), context);
      }
      if (output[_gIA] != null) {
        contents[_GIA] = (0, import_smithy_client28.expectString)(output[_gIA]);
      }
      return contents;
    }, "de_TransitGatewayMulticastDeregisteredGroupSources");
    var de_TransitGatewayMulticastDomain = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tGMDI] != null) {
        contents[_TGMDI] = (0, import_smithy_client28.expectString)(output[_tGMDI]);
      }
      if (output[_tGI] != null) {
        contents[_TGI] = (0, import_smithy_client28.expectString)(output[_tGI]);
      }
      if (output[_tGMDA] != null) {
        contents[_TGMDA] = (0, import_smithy_client28.expectString)(output[_tGMDA]);
      }
      if (output[_oI] != null) {
        contents[_OIwn] = (0, import_smithy_client28.expectString)(output[_oI]);
      }
      if (output[_opt] != null) {
        contents[_Op] = de_TransitGatewayMulticastDomainOptions(output[_opt], context);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_cTre] != null) {
        contents[_CTre] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_cTre]));
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      return contents;
    }, "de_TransitGatewayMulticastDomain");
    var de_TransitGatewayMulticastDomainAssociation = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tGAI] != null) {
        contents[_TGAI] = (0, import_smithy_client28.expectString)(output[_tGAI]);
      }
      if (output[_rIes] != null) {
        contents[_RIeso] = (0, import_smithy_client28.expectString)(output[_rIes]);
      }
      if (output[_rTe] != null) {
        contents[_RT] = (0, import_smithy_client28.expectString)(output[_rTe]);
      }
      if (output[_rOI] != null) {
        contents[_ROI] = (0, import_smithy_client28.expectString)(output[_rOI]);
      }
      if (output[_su] != null) {
        contents[_Su] = de_SubnetAssociation(output[_su], context);
      }
      return contents;
    }, "de_TransitGatewayMulticastDomainAssociation");
    var de_TransitGatewayMulticastDomainAssociationList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TransitGatewayMulticastDomainAssociation(entry, context);
      });
    }, "de_TransitGatewayMulticastDomainAssociationList");
    var de_TransitGatewayMulticastDomainAssociations = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tGMDI] != null) {
        contents[_TGMDI] = (0, import_smithy_client28.expectString)(output[_tGMDI]);
      }
      if (output[_tGAI] != null) {
        contents[_TGAI] = (0, import_smithy_client28.expectString)(output[_tGAI]);
      }
      if (output[_rIes] != null) {
        contents[_RIeso] = (0, import_smithy_client28.expectString)(output[_rIes]);
      }
      if (output[_rTe] != null) {
        contents[_RT] = (0, import_smithy_client28.expectString)(output[_rTe]);
      }
      if (output[_rOI] != null) {
        contents[_ROI] = (0, import_smithy_client28.expectString)(output[_rOI]);
      }
      if (output.subnets === "") {
        contents[_Subn] = [];
      } else if (output[_sub] != null && output[_sub][_i] != null) {
        contents[_Subn] = de_SubnetAssociationList((0, import_smithy_client28.getArrayIfSingleItem)(output[_sub][_i]), context);
      }
      return contents;
    }, "de_TransitGatewayMulticastDomainAssociations");
    var de_TransitGatewayMulticastDomainList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TransitGatewayMulticastDomain(entry, context);
      });
    }, "de_TransitGatewayMulticastDomainList");
    var de_TransitGatewayMulticastDomainOptions = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iSg] != null) {
        contents[_ISg] = (0, import_smithy_client28.expectString)(output[_iSg]);
      }
      if (output[_sSS] != null) {
        contents[_SSS] = (0, import_smithy_client28.expectString)(output[_sSS]);
      }
      if (output[_aASA] != null) {
        contents[_AASA] = (0, import_smithy_client28.expectString)(output[_aASA]);
      }
      return contents;
    }, "de_TransitGatewayMulticastDomainOptions");
    var de_TransitGatewayMulticastGroup = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_gIA] != null) {
        contents[_GIA] = (0, import_smithy_client28.expectString)(output[_gIA]);
      }
      if (output[_tGAI] != null) {
        contents[_TGAI] = (0, import_smithy_client28.expectString)(output[_tGAI]);
      }
      if (output[_sIu] != null) {
        contents[_SIub] = (0, import_smithy_client28.expectString)(output[_sIu]);
      }
      if (output[_rIes] != null) {
        contents[_RIeso] = (0, import_smithy_client28.expectString)(output[_rIes]);
      }
      if (output[_rTe] != null) {
        contents[_RT] = (0, import_smithy_client28.expectString)(output[_rTe]);
      }
      if (output[_rOI] != null) {
        contents[_ROI] = (0, import_smithy_client28.expectString)(output[_rOI]);
      }
      if (output[_nII] != null) {
        contents[_NII] = (0, import_smithy_client28.expectString)(output[_nII]);
      }
      if (output[_gM] != null) {
        contents[_GM] = (0, import_smithy_client28.parseBoolean)(output[_gM]);
      }
      if (output[_gSr] != null) {
        contents[_GS] = (0, import_smithy_client28.parseBoolean)(output[_gSr]);
      }
      if (output[_mTe] != null) {
        contents[_MTe] = (0, import_smithy_client28.expectString)(output[_mTe]);
      }
      if (output[_sTo] != null) {
        contents[_STo] = (0, import_smithy_client28.expectString)(output[_sTo]);
      }
      return contents;
    }, "de_TransitGatewayMulticastGroup");
    var de_TransitGatewayMulticastGroupList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TransitGatewayMulticastGroup(entry, context);
      });
    }, "de_TransitGatewayMulticastGroupList");
    var de_TransitGatewayMulticastRegisteredGroupMembers = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tGMDI] != null) {
        contents[_TGMDI] = (0, import_smithy_client28.expectString)(output[_tGMDI]);
      }
      if (output.registeredNetworkInterfaceIds === "") {
        contents[_RNII] = [];
      } else if (output[_rNII] != null && output[_rNII][_i] != null) {
        contents[_RNII] = de_ValueStringList((0, import_smithy_client28.getArrayIfSingleItem)(output[_rNII][_i]), context);
      }
      if (output[_gIA] != null) {
        contents[_GIA] = (0, import_smithy_client28.expectString)(output[_gIA]);
      }
      return contents;
    }, "de_TransitGatewayMulticastRegisteredGroupMembers");
    var de_TransitGatewayMulticastRegisteredGroupSources = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tGMDI] != null) {
        contents[_TGMDI] = (0, import_smithy_client28.expectString)(output[_tGMDI]);
      }
      if (output.registeredNetworkInterfaceIds === "") {
        contents[_RNII] = [];
      } else if (output[_rNII] != null && output[_rNII][_i] != null) {
        contents[_RNII] = de_ValueStringList((0, import_smithy_client28.getArrayIfSingleItem)(output[_rNII][_i]), context);
      }
      if (output[_gIA] != null) {
        contents[_GIA] = (0, import_smithy_client28.expectString)(output[_gIA]);
      }
      return contents;
    }, "de_TransitGatewayMulticastRegisteredGroupSources");
    var de_TransitGatewayOptions = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aSA] != null) {
        contents[_ASA] = (0, import_smithy_client28.strictParseLong)(output[_aSA]);
      }
      if (output.transitGatewayCidrBlocks === "") {
        contents[_TGCB] = [];
      } else if (output[_tGCB] != null && output[_tGCB][_i] != null) {
        contents[_TGCB] = de_ValueStringList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tGCB][_i]), context);
      }
      if (output[_aASAu] != null) {
        contents[_AASAu] = (0, import_smithy_client28.expectString)(output[_aASAu]);
      }
      if (output[_dRTA] != null) {
        contents[_DRTA] = (0, import_smithy_client28.expectString)(output[_dRTA]);
      }
      if (output[_aDRTI] != null) {
        contents[_ADRTI] = (0, import_smithy_client28.expectString)(output[_aDRTI]);
      }
      if (output[_dRTP] != null) {
        contents[_DRTP] = (0, import_smithy_client28.expectString)(output[_dRTP]);
      }
      if (output[_pDRTI] != null) {
        contents[_PDRTI] = (0, import_smithy_client28.expectString)(output[_pDRTI]);
      }
      if (output[_vESpn] != null) {
        contents[_VES] = (0, import_smithy_client28.expectString)(output[_vESpn]);
      }
      if (output[_dSn] != null) {
        contents[_DSns] = (0, import_smithy_client28.expectString)(output[_dSn]);
      }
      if (output[_sGRSec] != null) {
        contents[_SGRS] = (0, import_smithy_client28.expectString)(output[_sGRSec]);
      }
      if (output[_mSu] != null) {
        contents[_MSu] = (0, import_smithy_client28.expectString)(output[_mSu]);
      }
      return contents;
    }, "de_TransitGatewayOptions");
    var de_TransitGatewayPeeringAttachment = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tGAI] != null) {
        contents[_TGAI] = (0, import_smithy_client28.expectString)(output[_tGAI]);
      }
      if (output[_aTGAI] != null) {
        contents[_ATGAI] = (0, import_smithy_client28.expectString)(output[_aTGAI]);
      }
      if (output[_rTIe] != null) {
        contents[_RTIe] = de_PeeringTgwInfo(output[_rTIe], context);
      }
      if (output[_aTI] != null) {
        contents[_ATIc] = de_PeeringTgwInfo(output[_aTI], context);
      }
      if (output[_opt] != null) {
        contents[_Op] = de_TransitGatewayPeeringAttachmentOptions(output[_opt], context);
      }
      if (output[_sta] != null) {
        contents[_Statu] = de_PeeringAttachmentStatus(output[_sta], context);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_cTre] != null) {
        contents[_CTre] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_cTre]));
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      return contents;
    }, "de_TransitGatewayPeeringAttachment");
    var de_TransitGatewayPeeringAttachmentList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TransitGatewayPeeringAttachment(entry, context);
      });
    }, "de_TransitGatewayPeeringAttachmentList");
    var de_TransitGatewayPeeringAttachmentOptions = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_dRy] != null) {
        contents[_DRy] = (0, import_smithy_client28.expectString)(output[_dRy]);
      }
      return contents;
    }, "de_TransitGatewayPeeringAttachmentOptions");
    var de_TransitGatewayPolicyRule = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sCB] != null) {
        contents[_SCB] = (0, import_smithy_client28.expectString)(output[_sCB]);
      }
      if (output[_sPR] != null) {
        contents[_SPR] = (0, import_smithy_client28.expectString)(output[_sPR]);
      }
      if (output[_dCB] != null) {
        contents[_DCBe] = (0, import_smithy_client28.expectString)(output[_dCB]);
      }
      if (output[_dPR] != null) {
        contents[_DPR] = (0, import_smithy_client28.expectString)(output[_dPR]);
      }
      if (output[_pr] != null) {
        contents[_P2] = (0, import_smithy_client28.expectString)(output[_pr]);
      }
      if (output[_mDe] != null) {
        contents[_MDe] = de_TransitGatewayPolicyRuleMetaData(output[_mDe], context);
      }
      return contents;
    }, "de_TransitGatewayPolicyRule");
    var de_TransitGatewayPolicyRuleMetaData = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_mDK] != null) {
        contents[_MDK] = (0, import_smithy_client28.expectString)(output[_mDK]);
      }
      if (output[_mDV] != null) {
        contents[_MDV] = (0, import_smithy_client28.expectString)(output[_mDV]);
      }
      return contents;
    }, "de_TransitGatewayPolicyRuleMetaData");
    var de_TransitGatewayPolicyTable = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tGPTI] != null) {
        contents[_TGPTI] = (0, import_smithy_client28.expectString)(output[_tGPTI]);
      }
      if (output[_tGI] != null) {
        contents[_TGI] = (0, import_smithy_client28.expectString)(output[_tGI]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_cTre] != null) {
        contents[_CTre] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_cTre]));
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      return contents;
    }, "de_TransitGatewayPolicyTable");
    var de_TransitGatewayPolicyTableAssociation = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tGPTI] != null) {
        contents[_TGPTI] = (0, import_smithy_client28.expectString)(output[_tGPTI]);
      }
      if (output[_tGAI] != null) {
        contents[_TGAI] = (0, import_smithy_client28.expectString)(output[_tGAI]);
      }
      if (output[_rIes] != null) {
        contents[_RIeso] = (0, import_smithy_client28.expectString)(output[_rIes]);
      }
      if (output[_rTe] != null) {
        contents[_RT] = (0, import_smithy_client28.expectString)(output[_rTe]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      return contents;
    }, "de_TransitGatewayPolicyTableAssociation");
    var de_TransitGatewayPolicyTableAssociationList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TransitGatewayPolicyTableAssociation(entry, context);
      });
    }, "de_TransitGatewayPolicyTableAssociationList");
    var de_TransitGatewayPolicyTableEntry = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_pRN] != null) {
        contents[_PRNo] = (0, import_smithy_client28.expectString)(output[_pRN]);
      }
      if (output[_pRol] != null) {
        contents[_PRol] = de_TransitGatewayPolicyRule(output[_pRol], context);
      }
      if (output[_tRTI] != null) {
        contents[_TRTI] = (0, import_smithy_client28.expectString)(output[_tRTI]);
      }
      return contents;
    }, "de_TransitGatewayPolicyTableEntry");
    var de_TransitGatewayPolicyTableEntryList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TransitGatewayPolicyTableEntry(entry, context);
      });
    }, "de_TransitGatewayPolicyTableEntryList");
    var de_TransitGatewayPolicyTableList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TransitGatewayPolicyTable(entry, context);
      });
    }, "de_TransitGatewayPolicyTableList");
    var de_TransitGatewayPrefixListAttachment = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tGAI] != null) {
        contents[_TGAI] = (0, import_smithy_client28.expectString)(output[_tGAI]);
      }
      if (output[_rTe] != null) {
        contents[_RT] = (0, import_smithy_client28.expectString)(output[_rTe]);
      }
      if (output[_rIes] != null) {
        contents[_RIeso] = (0, import_smithy_client28.expectString)(output[_rIes]);
      }
      return contents;
    }, "de_TransitGatewayPrefixListAttachment");
    var de_TransitGatewayPrefixListReference = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tGRTI] != null) {
        contents[_TGRTI] = (0, import_smithy_client28.expectString)(output[_tGRTI]);
      }
      if (output[_pLI] != null) {
        contents[_PLI] = (0, import_smithy_client28.expectString)(output[_pLI]);
      }
      if (output[_pLOI] != null) {
        contents[_PLOI] = (0, import_smithy_client28.expectString)(output[_pLOI]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_bl] != null) {
        contents[_Bl] = (0, import_smithy_client28.parseBoolean)(output[_bl]);
      }
      if (output[_tGAr] != null) {
        contents[_TGAra] = de_TransitGatewayPrefixListAttachment(output[_tGAr], context);
      }
      return contents;
    }, "de_TransitGatewayPrefixListReference");
    var de_TransitGatewayPrefixListReferenceSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TransitGatewayPrefixListReference(entry, context);
      });
    }, "de_TransitGatewayPrefixListReferenceSet");
    var de_TransitGatewayPropagation = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tGAI] != null) {
        contents[_TGAI] = (0, import_smithy_client28.expectString)(output[_tGAI]);
      }
      if (output[_rIes] != null) {
        contents[_RIeso] = (0, import_smithy_client28.expectString)(output[_rIes]);
      }
      if (output[_rTe] != null) {
        contents[_RT] = (0, import_smithy_client28.expectString)(output[_rTe]);
      }
      if (output[_tGRTI] != null) {
        contents[_TGRTI] = (0, import_smithy_client28.expectString)(output[_tGRTI]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_tGRTAI] != null) {
        contents[_TGRTAI] = (0, import_smithy_client28.expectString)(output[_tGRTAI]);
      }
      return contents;
    }, "de_TransitGatewayPropagation");
    var de_TransitGatewayRoute = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_dCB] != null) {
        contents[_DCBe] = (0, import_smithy_client28.expectString)(output[_dCB]);
      }
      if (output[_pLI] != null) {
        contents[_PLI] = (0, import_smithy_client28.expectString)(output[_pLI]);
      }
      if (output[_tGRTAI] != null) {
        contents[_TGRTAI] = (0, import_smithy_client28.expectString)(output[_tGRTAI]);
      }
      if (output.transitGatewayAttachments === "") {
        contents[_TGAr] = [];
      } else if (output[_tGA] != null && output[_tGA][_i] != null) {
        contents[_TGAr] = de_TransitGatewayRouteAttachmentList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tGA][_i]), context);
      }
      if (output[_ty] != null) {
        contents[_T2] = (0, import_smithy_client28.expectString)(output[_ty]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      return contents;
    }, "de_TransitGatewayRoute");
    var de_TransitGatewayRouteAttachment = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_rIes] != null) {
        contents[_RIeso] = (0, import_smithy_client28.expectString)(output[_rIes]);
      }
      if (output[_tGAI] != null) {
        contents[_TGAI] = (0, import_smithy_client28.expectString)(output[_tGAI]);
      }
      if (output[_rTe] != null) {
        contents[_RT] = (0, import_smithy_client28.expectString)(output[_rTe]);
      }
      return contents;
    }, "de_TransitGatewayRouteAttachment");
    var de_TransitGatewayRouteAttachmentList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TransitGatewayRouteAttachment(entry, context);
      });
    }, "de_TransitGatewayRouteAttachmentList");
    var de_TransitGatewayRouteList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TransitGatewayRoute(entry, context);
      });
    }, "de_TransitGatewayRouteList");
    var de_TransitGatewayRouteTable = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tGRTI] != null) {
        contents[_TGRTI] = (0, import_smithy_client28.expectString)(output[_tGRTI]);
      }
      if (output[_tGI] != null) {
        contents[_TGI] = (0, import_smithy_client28.expectString)(output[_tGI]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_dART] != null) {
        contents[_DART] = (0, import_smithy_client28.parseBoolean)(output[_dART]);
      }
      if (output[_dPRT] != null) {
        contents[_DPRT] = (0, import_smithy_client28.parseBoolean)(output[_dPRT]);
      }
      if (output[_cTre] != null) {
        contents[_CTre] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_cTre]));
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      return contents;
    }, "de_TransitGatewayRouteTable");
    var de_TransitGatewayRouteTableAnnouncement = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tGRTAI] != null) {
        contents[_TGRTAI] = (0, import_smithy_client28.expectString)(output[_tGRTAI]);
      }
      if (output[_tGI] != null) {
        contents[_TGI] = (0, import_smithy_client28.expectString)(output[_tGI]);
      }
      if (output[_cNIo] != null) {
        contents[_CNIor] = (0, import_smithy_client28.expectString)(output[_cNIo]);
      }
      if (output[_pTGI] != null) {
        contents[_PTGI] = (0, import_smithy_client28.expectString)(output[_pTGI]);
      }
      if (output[_pCNI] != null) {
        contents[_PCNI] = (0, import_smithy_client28.expectString)(output[_pCNI]);
      }
      if (output[_pAI] != null) {
        contents[_PAIe] = (0, import_smithy_client28.expectString)(output[_pAI]);
      }
      if (output[_aDn] != null) {
        contents[_ADn] = (0, import_smithy_client28.expectString)(output[_aDn]);
      }
      if (output[_tGRTI] != null) {
        contents[_TGRTI] = (0, import_smithy_client28.expectString)(output[_tGRTI]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_cTre] != null) {
        contents[_CTre] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_cTre]));
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      return contents;
    }, "de_TransitGatewayRouteTableAnnouncement");
    var de_TransitGatewayRouteTableAnnouncementList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TransitGatewayRouteTableAnnouncement(entry, context);
      });
    }, "de_TransitGatewayRouteTableAnnouncementList");
    var de_TransitGatewayRouteTableAssociation = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tGAI] != null) {
        contents[_TGAI] = (0, import_smithy_client28.expectString)(output[_tGAI]);
      }
      if (output[_rIes] != null) {
        contents[_RIeso] = (0, import_smithy_client28.expectString)(output[_rIes]);
      }
      if (output[_rTe] != null) {
        contents[_RT] = (0, import_smithy_client28.expectString)(output[_rTe]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      return contents;
    }, "de_TransitGatewayRouteTableAssociation");
    var de_TransitGatewayRouteTableAssociationList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TransitGatewayRouteTableAssociation(entry, context);
      });
    }, "de_TransitGatewayRouteTableAssociationList");
    var de_TransitGatewayRouteTableList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TransitGatewayRouteTable(entry, context);
      });
    }, "de_TransitGatewayRouteTableList");
    var de_TransitGatewayRouteTablePropagation = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tGAI] != null) {
        contents[_TGAI] = (0, import_smithy_client28.expectString)(output[_tGAI]);
      }
      if (output[_rIes] != null) {
        contents[_RIeso] = (0, import_smithy_client28.expectString)(output[_rIes]);
      }
      if (output[_rTe] != null) {
        contents[_RT] = (0, import_smithy_client28.expectString)(output[_rTe]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_tGRTAI] != null) {
        contents[_TGRTAI] = (0, import_smithy_client28.expectString)(output[_tGRTAI]);
      }
      return contents;
    }, "de_TransitGatewayRouteTablePropagation");
    var de_TransitGatewayRouteTablePropagationList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TransitGatewayRouteTablePropagation(entry, context);
      });
    }, "de_TransitGatewayRouteTablePropagationList");
    var de_TransitGatewayRouteTableRoute = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_dC] != null) {
        contents[_DCe] = (0, import_smithy_client28.expectString)(output[_dC]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_rOo] != null) {
        contents[_ROo] = (0, import_smithy_client28.expectString)(output[_rOo]);
      }
      if (output[_pLI] != null) {
        contents[_PLI] = (0, import_smithy_client28.expectString)(output[_pLI]);
      }
      if (output[_aIt] != null) {
        contents[_AIt] = (0, import_smithy_client28.expectString)(output[_aIt]);
      }
      if (output[_rIes] != null) {
        contents[_RIeso] = (0, import_smithy_client28.expectString)(output[_rIes]);
      }
      if (output[_rTe] != null) {
        contents[_RT] = (0, import_smithy_client28.expectString)(output[_rTe]);
      }
      return contents;
    }, "de_TransitGatewayRouteTableRoute");
    var de_TransitGatewayVpcAttachment = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_tGAI] != null) {
        contents[_TGAI] = (0, import_smithy_client28.expectString)(output[_tGAI]);
      }
      if (output[_tGI] != null) {
        contents[_TGI] = (0, import_smithy_client28.expectString)(output[_tGI]);
      }
      if (output[_vI] != null) {
        contents[_VI] = (0, import_smithy_client28.expectString)(output[_vI]);
      }
      if (output[_vOIp] != null) {
        contents[_VOIp] = (0, import_smithy_client28.expectString)(output[_vOIp]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output.subnetIds === "") {
        contents[_SIu] = [];
      } else if (output[_sIub] != null && output[_sIub][_i] != null) {
        contents[_SIu] = de_ValueStringList((0, import_smithy_client28.getArrayIfSingleItem)(output[_sIub][_i]), context);
      }
      if (output[_cTre] != null) {
        contents[_CTre] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_cTre]));
      }
      if (output[_opt] != null) {
        contents[_Op] = de_TransitGatewayVpcAttachmentOptions(output[_opt], context);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      return contents;
    }, "de_TransitGatewayVpcAttachment");
    var de_TransitGatewayVpcAttachmentList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TransitGatewayVpcAttachment(entry, context);
      });
    }, "de_TransitGatewayVpcAttachmentList");
    var de_TransitGatewayVpcAttachmentOptions = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_dSn] != null) {
        contents[_DSns] = (0, import_smithy_client28.expectString)(output[_dSn]);
      }
      if (output[_sGRSec] != null) {
        contents[_SGRS] = (0, import_smithy_client28.expectString)(output[_sGRSec]);
      }
      if (output[_iSpvu] != null) {
        contents[_ISp] = (0, import_smithy_client28.expectString)(output[_iSpvu]);
      }
      if (output[_aMSp] != null) {
        contents[_AMS] = (0, import_smithy_client28.expectString)(output[_aMSp]);
      }
      return contents;
    }, "de_TransitGatewayVpcAttachmentOptions");
    var de_TrunkInterfaceAssociation = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aIs] != null) {
        contents[_AIss] = (0, import_smithy_client28.expectString)(output[_aIs]);
      }
      if (output[_bII] != null) {
        contents[_BII] = (0, import_smithy_client28.expectString)(output[_bII]);
      }
      if (output[_tII] != null) {
        contents[_TII] = (0, import_smithy_client28.expectString)(output[_tII]);
      }
      if (output[_iPnte] != null) {
        contents[_IPnte] = (0, import_smithy_client28.expectString)(output[_iPnte]);
      }
      if (output[_vIl] != null) {
        contents[_VIl] = (0, import_smithy_client28.strictParseInt32)(output[_vIl]);
      }
      if (output[_gK] != null) {
        contents[_GK] = (0, import_smithy_client28.strictParseInt32)(output[_gK]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      return contents;
    }, "de_TrunkInterfaceAssociation");
    var de_TrunkInterfaceAssociationList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TrunkInterfaceAssociation(entry, context);
      });
    }, "de_TrunkInterfaceAssociationList");
    var de_TunnelOption = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_oIA] != null) {
        contents[_OIA] = (0, import_smithy_client28.expectString)(output[_oIA]);
      }
      if (output[_tICu] != null) {
        contents[_TIC] = (0, import_smithy_client28.expectString)(output[_tICu]);
      }
      if (output[_tIIC] != null) {
        contents[_TIIC] = (0, import_smithy_client28.expectString)(output[_tIIC]);
      }
      if (output[_pSK] != null) {
        contents[_PSK] = (0, import_smithy_client28.expectString)(output[_pSK]);
      }
      if (output[_pLSh] != null) {
        contents[_PLS] = (0, import_smithy_client28.strictParseInt32)(output[_pLSh]);
      }
      if (output[_pLSha] != null) {
        contents[_PLSh] = (0, import_smithy_client28.strictParseInt32)(output[_pLSha]);
      }
      if (output[_rMTS] != null) {
        contents[_RMTS] = (0, import_smithy_client28.strictParseInt32)(output[_rMTS]);
      }
      if (output[_rFP] != null) {
        contents[_RFP] = (0, import_smithy_client28.strictParseInt32)(output[_rFP]);
      }
      if (output[_rWS] != null) {
        contents[_RWS] = (0, import_smithy_client28.strictParseInt32)(output[_rWS]);
      }
      if (output[_dTS] != null) {
        contents[_DTS] = (0, import_smithy_client28.strictParseInt32)(output[_dTS]);
      }
      if (output[_dTA] != null) {
        contents[_DTA] = (0, import_smithy_client28.expectString)(output[_dTA]);
      }
      if (output.phase1EncryptionAlgorithmSet === "") {
        contents[_PEA] = [];
      } else if (output[_pEAS] != null && output[_pEAS][_i] != null) {
        contents[_PEA] = de_Phase1EncryptionAlgorithmsList((0, import_smithy_client28.getArrayIfSingleItem)(output[_pEAS][_i]), context);
      }
      if (output.phase2EncryptionAlgorithmSet === "") {
        contents[_PEAh] = [];
      } else if (output[_pEASh] != null && output[_pEASh][_i] != null) {
        contents[_PEAh] = de_Phase2EncryptionAlgorithmsList((0, import_smithy_client28.getArrayIfSingleItem)(output[_pEASh][_i]), context);
      }
      if (output.phase1IntegrityAlgorithmSet === "") {
        contents[_PIAh] = [];
      } else if (output[_pIASh] != null && output[_pIASh][_i] != null) {
        contents[_PIAh] = de_Phase1IntegrityAlgorithmsList((0, import_smithy_client28.getArrayIfSingleItem)(output[_pIASh][_i]), context);
      }
      if (output.phase2IntegrityAlgorithmSet === "") {
        contents[_PIAha] = [];
      } else if (output[_pIASha] != null && output[_pIASha][_i] != null) {
        contents[_PIAha] = de_Phase2IntegrityAlgorithmsList((0, import_smithy_client28.getArrayIfSingleItem)(output[_pIASha][_i]), context);
      }
      if (output.phase1DHGroupNumberSet === "") {
        contents[_PDHGN] = [];
      } else if (output[_pDHGNS] != null && output[_pDHGNS][_i] != null) {
        contents[_PDHGN] = de_Phase1DHGroupNumbersList((0, import_smithy_client28.getArrayIfSingleItem)(output[_pDHGNS][_i]), context);
      }
      if (output.phase2DHGroupNumberSet === "") {
        contents[_PDHGNh] = [];
      } else if (output[_pDHGNSh] != null && output[_pDHGNSh][_i] != null) {
        contents[_PDHGNh] = de_Phase2DHGroupNumbersList((0, import_smithy_client28.getArrayIfSingleItem)(output[_pDHGNSh][_i]), context);
      }
      if (output.ikeVersionSet === "") {
        contents[_IVke] = [];
      } else if (output[_iVS] != null && output[_iVS][_i] != null) {
        contents[_IVke] = de_IKEVersionsList((0, import_smithy_client28.getArrayIfSingleItem)(output[_iVS][_i]), context);
      }
      if (output[_sAt] != null) {
        contents[_SA] = (0, import_smithy_client28.expectString)(output[_sAt]);
      }
      if (output[_lO] != null) {
        contents[_LO] = de_VpnTunnelLogOptions(output[_lO], context);
      }
      if (output[_eTLC] != null) {
        contents[_ETLC] = (0, import_smithy_client28.parseBoolean)(output[_eTLC]);
      }
      return contents;
    }, "de_TunnelOption");
    var de_TunnelOptionsList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TunnelOption(entry, context);
      });
    }, "de_TunnelOptionsList");
    var de_UnassignIpv6AddressesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nII] != null) {
        contents[_NII] = (0, import_smithy_client28.expectString)(output[_nII]);
      }
      if (output.unassignedIpv6Addresses === "") {
        contents[_UIAn] = [];
      } else if (output[_uIA] != null && output[_uIA][_i] != null) {
        contents[_UIAn] = de_Ipv6AddressList((0, import_smithy_client28.getArrayIfSingleItem)(output[_uIA][_i]), context);
      }
      if (output.unassignedIpv6PrefixSet === "") {
        contents[_UIPn] = [];
      } else if (output[_uIPSn] != null && output[_uIPSn][_i] != null) {
        contents[_UIPn] = de_IpPrefixList((0, import_smithy_client28.getArrayIfSingleItem)(output[_uIPSn][_i]), context);
      }
      return contents;
    }, "de_UnassignIpv6AddressesResult");
    var de_UnassignPrivateNatGatewayAddressResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nGI] != null) {
        contents[_NGI] = (0, import_smithy_client28.expectString)(output[_nGI]);
      }
      if (output.natGatewayAddressSet === "") {
        contents[_NGA] = [];
      } else if (output[_nGAS] != null && output[_nGAS][_i] != null) {
        contents[_NGA] = de_NatGatewayAddressList((0, import_smithy_client28.getArrayIfSingleItem)(output[_nGAS][_i]), context);
      }
      return contents;
    }, "de_UnassignPrivateNatGatewayAddressResult");
    var de_UnlockSnapshotResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sIn] != null) {
        contents[_SIn] = (0, import_smithy_client28.expectString)(output[_sIn]);
      }
      return contents;
    }, "de_UnlockSnapshotResult");
    var de_UnmonitorInstancesResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.instancesSet === "") {
        contents[_IMn] = [];
      } else if (output[_iSn] != null && output[_iSn][_i] != null) {
        contents[_IMn] = de_InstanceMonitoringList((0, import_smithy_client28.getArrayIfSingleItem)(output[_iSn][_i]), context);
      }
      return contents;
    }, "de_UnmonitorInstancesResult");
    var de_UnsuccessfulInstanceCreditSpecificationItem = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iI] != null) {
        contents[_IIn] = (0, import_smithy_client28.expectString)(output[_iI]);
      }
      if (output[_er] != null) {
        contents[_Er] = de_UnsuccessfulInstanceCreditSpecificationItemError(output[_er], context);
      }
      return contents;
    }, "de_UnsuccessfulInstanceCreditSpecificationItem");
    var de_UnsuccessfulInstanceCreditSpecificationItemError = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_co] != null) {
        contents[_Cod] = (0, import_smithy_client28.expectString)(output[_co]);
      }
      if (output[_me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_me]);
      }
      return contents;
    }, "de_UnsuccessfulInstanceCreditSpecificationItemError");
    var de_UnsuccessfulInstanceCreditSpecificationSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_UnsuccessfulInstanceCreditSpecificationItem(entry, context);
      });
    }, "de_UnsuccessfulInstanceCreditSpecificationSet");
    var de_UnsuccessfulItem = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_er] != null) {
        contents[_Er] = de_UnsuccessfulItemError(output[_er], context);
      }
      if (output[_rIes] != null) {
        contents[_RIeso] = (0, import_smithy_client28.expectString)(output[_rIes]);
      }
      return contents;
    }, "de_UnsuccessfulItem");
    var de_UnsuccessfulItemError = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_co] != null) {
        contents[_Cod] = (0, import_smithy_client28.expectString)(output[_co]);
      }
      if (output[_me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_me]);
      }
      return contents;
    }, "de_UnsuccessfulItemError");
    var de_UnsuccessfulItemList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_UnsuccessfulItem(entry, context);
      });
    }, "de_UnsuccessfulItemList");
    var de_UnsuccessfulItemSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_UnsuccessfulItem(entry, context);
      });
    }, "de_UnsuccessfulItemSet");
    var de_UpdateSecurityGroupRuleDescriptionsEgressResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_Ret] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      return contents;
    }, "de_UpdateSecurityGroupRuleDescriptionsEgressResult");
    var de_UpdateSecurityGroupRuleDescriptionsIngressResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_r] != null) {
        contents[_Ret] = (0, import_smithy_client28.parseBoolean)(output[_r]);
      }
      return contents;
    }, "de_UpdateSecurityGroupRuleDescriptionsIngressResult");
    var de_UsageClassTypeList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_UsageClassTypeList");
    var de_UserBucketDetails = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sB] != null) {
        contents[_SB] = (0, import_smithy_client28.expectString)(output[_sB]);
      }
      if (output[_sK] != null) {
        contents[_SK] = (0, import_smithy_client28.expectString)(output[_sK]);
      }
      return contents;
    }, "de_UserBucketDetails");
    var de_UserIdGroupPair = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      if (output[_uI] != null) {
        contents[_UIs] = (0, import_smithy_client28.expectString)(output[_uI]);
      }
      if (output[_gN] != null) {
        contents[_GN] = (0, import_smithy_client28.expectString)(output[_gN]);
      }
      if (output[_gIr] != null) {
        contents[_GIr] = (0, import_smithy_client28.expectString)(output[_gIr]);
      }
      if (output[_vI] != null) {
        contents[_VI] = (0, import_smithy_client28.expectString)(output[_vI]);
      }
      if (output[_vPCI] != null) {
        contents[_VPCI] = (0, import_smithy_client28.expectString)(output[_vPCI]);
      }
      if (output[_pSee] != null) {
        contents[_PSe] = (0, import_smithy_client28.expectString)(output[_pSee]);
      }
      return contents;
    }, "de_UserIdGroupPair");
    var de_UserIdGroupPairList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_UserIdGroupPair(entry, context);
      });
    }, "de_UserIdGroupPairList");
    var de_UserIdGroupPairSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_UserIdGroupPair(entry, context);
      });
    }, "de_UserIdGroupPairSet");
    var de_UserIdList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_UserIdList");
    var de_ValidationError = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_co] != null) {
        contents[_Cod] = (0, import_smithy_client28.expectString)(output[_co]);
      }
      if (output[_me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_me]);
      }
      return contents;
    }, "de_ValidationError");
    var de_ValidationWarning = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.errorSet === "") {
        contents[_Err] = [];
      } else if (output[_eSr] != null && output[_eSr][_i] != null) {
        contents[_Err] = de_ErrorSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_eSr][_i]), context);
      }
      return contents;
    }, "de_ValidationWarning");
    var de_ValueStringList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_ValueStringList");
    var de_VCpuCountRange = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_m2] != null) {
        contents[_M] = (0, import_smithy_client28.strictParseInt32)(output[_m2]);
      }
      if (output[_ma] != null) {
        contents[_Ma] = (0, import_smithy_client28.strictParseInt32)(output[_ma]);
      }
      return contents;
    }, "de_VCpuCountRange");
    var de_VCpuInfo = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_dVC] != null) {
        contents[_DVCef] = (0, import_smithy_client28.strictParseInt32)(output[_dVC]);
      }
      if (output[_dCe] != null) {
        contents[_DCef] = (0, import_smithy_client28.strictParseInt32)(output[_dCe]);
      }
      if (output[_dTPC] != null) {
        contents[_DTPC] = (0, import_smithy_client28.strictParseInt32)(output[_dTPC]);
      }
      if (output.validCores === "") {
        contents[_VCa] = [];
      } else if (output[_vCa] != null && output[_vCa][_i] != null) {
        contents[_VCa] = de_CoreCountList((0, import_smithy_client28.getArrayIfSingleItem)(output[_vCa][_i]), context);
      }
      if (output.validThreadsPerCore === "") {
        contents[_VTPC] = [];
      } else if (output[_vTPC] != null && output[_vTPC][_i] != null) {
        contents[_VTPC] = de_ThreadsPerCoreList((0, import_smithy_client28.getArrayIfSingleItem)(output[_vTPC][_i]), context);
      }
      return contents;
    }, "de_VCpuInfo");
    var de_VerifiedAccessEndpoint = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_vAII] != null) {
        contents[_VAII] = (0, import_smithy_client28.expectString)(output[_vAII]);
      }
      if (output[_vAGI] != null) {
        contents[_VAGI] = (0, import_smithy_client28.expectString)(output[_vAGI]);
      }
      if (output[_vAEI] != null) {
        contents[_VAEI] = (0, import_smithy_client28.expectString)(output[_vAEI]);
      }
      if (output[_aDp] != null) {
        contents[_ADp] = (0, import_smithy_client28.expectString)(output[_aDp]);
      }
      if (output[_eTnd] != null) {
        contents[_ET] = (0, import_smithy_client28.expectString)(output[_eTnd]);
      }
      if (output[_aTtta] != null) {
        contents[_ATt] = (0, import_smithy_client28.expectString)(output[_aTtta]);
      }
      if (output[_dCA] != null) {
        contents[_DCA] = (0, import_smithy_client28.expectString)(output[_dCA]);
      }
      if (output[_eDnd] != null) {
        contents[_EDnd] = (0, import_smithy_client28.expectString)(output[_eDnd]);
      }
      if (output[_dVD] != null) {
        contents[_DVD] = (0, import_smithy_client28.expectString)(output[_dVD]);
      }
      if (output.securityGroupIdSet === "") {
        contents[_SGI] = [];
      } else if (output[_sGIS] != null && output[_sGIS][_i] != null) {
        contents[_SGI] = de_SecurityGroupIdList((0, import_smithy_client28.getArrayIfSingleItem)(output[_sGIS][_i]), context);
      }
      if (output[_lBO] != null) {
        contents[_LBO] = de_VerifiedAccessEndpointLoadBalancerOptions(output[_lBO], context);
      }
      if (output[_nIO] != null) {
        contents[_NIO] = de_VerifiedAccessEndpointEniOptions(output[_nIO], context);
      }
      if (output[_sta] != null) {
        contents[_Statu] = de_VerifiedAccessEndpointStatus(output[_sta], context);
      }
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      if (output[_cTre] != null) {
        contents[_CTre] = (0, import_smithy_client28.expectString)(output[_cTre]);
      }
      if (output[_lUTa] != null) {
        contents[_LUTa] = (0, import_smithy_client28.expectString)(output[_lUTa]);
      }
      if (output[_dT] != null) {
        contents[_DTel] = (0, import_smithy_client28.expectString)(output[_dT]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_sSs] != null) {
        contents[_SS] = de_VerifiedAccessSseSpecificationResponse(output[_sSs], context);
      }
      if (output[_rOd] != null) {
        contents[_RO] = de_VerifiedAccessEndpointRdsOptions(output[_rOd], context);
      }
      if (output[_cOi] != null) {
        contents[_CO] = de_VerifiedAccessEndpointCidrOptions(output[_cOi], context);
      }
      return contents;
    }, "de_VerifiedAccessEndpoint");
    var de_VerifiedAccessEndpointCidrOptions = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ci] != null) {
        contents[_C2] = (0, import_smithy_client28.expectString)(output[_ci]);
      }
      if (output.portRangeSet === "") {
        contents[_PRo] = [];
      } else if (output[_pRS] != null && output[_pRS][_i] != null) {
        contents[_PRo] = de_VerifiedAccessEndpointPortRangeList((0, import_smithy_client28.getArrayIfSingleItem)(output[_pRS][_i]), context);
      }
      if (output[_pr] != null) {
        contents[_P2] = (0, import_smithy_client28.expectString)(output[_pr]);
      }
      if (output.subnetIdSet === "") {
        contents[_SIu] = [];
      } else if (output[_sISu] != null && output[_sISu][_i] != null) {
        contents[_SIu] = de_VerifiedAccessEndpointSubnetIdList((0, import_smithy_client28.getArrayIfSingleItem)(output[_sISu][_i]), context);
      }
      return contents;
    }, "de_VerifiedAccessEndpointCidrOptions");
    var de_VerifiedAccessEndpointEniOptions = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_nII] != null) {
        contents[_NII] = (0, import_smithy_client28.expectString)(output[_nII]);
      }
      if (output[_pr] != null) {
        contents[_P2] = (0, import_smithy_client28.expectString)(output[_pr]);
      }
      if (output[_po] != null) {
        contents[_Po] = (0, import_smithy_client28.strictParseInt32)(output[_po]);
      }
      if (output.portRangeSet === "") {
        contents[_PRo] = [];
      } else if (output[_pRS] != null && output[_pRS][_i] != null) {
        contents[_PRo] = de_VerifiedAccessEndpointPortRangeList((0, import_smithy_client28.getArrayIfSingleItem)(output[_pRS][_i]), context);
      }
      return contents;
    }, "de_VerifiedAccessEndpointEniOptions");
    var de_VerifiedAccessEndpointList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_VerifiedAccessEndpoint(entry, context);
      });
    }, "de_VerifiedAccessEndpointList");
    var de_VerifiedAccessEndpointLoadBalancerOptions = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_pr] != null) {
        contents[_P2] = (0, import_smithy_client28.expectString)(output[_pr]);
      }
      if (output[_po] != null) {
        contents[_Po] = (0, import_smithy_client28.strictParseInt32)(output[_po]);
      }
      if (output[_lBA] != null) {
        contents[_LBAo] = (0, import_smithy_client28.expectString)(output[_lBA]);
      }
      if (output.subnetIdSet === "") {
        contents[_SIu] = [];
      } else if (output[_sISu] != null && output[_sISu][_i] != null) {
        contents[_SIu] = de_VerifiedAccessEndpointSubnetIdList((0, import_smithy_client28.getArrayIfSingleItem)(output[_sISu][_i]), context);
      }
      if (output.portRangeSet === "") {
        contents[_PRo] = [];
      } else if (output[_pRS] != null && output[_pRS][_i] != null) {
        contents[_PRo] = de_VerifiedAccessEndpointPortRangeList((0, import_smithy_client28.getArrayIfSingleItem)(output[_pRS][_i]), context);
      }
      return contents;
    }, "de_VerifiedAccessEndpointLoadBalancerOptions");
    var de_VerifiedAccessEndpointPortRange = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_fP] != null) {
        contents[_FP] = (0, import_smithy_client28.strictParseInt32)(output[_fP]);
      }
      if (output[_tPo] != null) {
        contents[_TP] = (0, import_smithy_client28.strictParseInt32)(output[_tPo]);
      }
      return contents;
    }, "de_VerifiedAccessEndpointPortRange");
    var de_VerifiedAccessEndpointPortRangeList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_VerifiedAccessEndpointPortRange(entry, context);
      });
    }, "de_VerifiedAccessEndpointPortRangeList");
    var de_VerifiedAccessEndpointRdsOptions = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_pr] != null) {
        contents[_P2] = (0, import_smithy_client28.expectString)(output[_pr]);
      }
      if (output[_po] != null) {
        contents[_Po] = (0, import_smithy_client28.strictParseInt32)(output[_po]);
      }
      if (output[_rDIA] != null) {
        contents[_RDIA] = (0, import_smithy_client28.expectString)(output[_rDIA]);
      }
      if (output[_rDCA] != null) {
        contents[_RDCA] = (0, import_smithy_client28.expectString)(output[_rDCA]);
      }
      if (output[_rDPA] != null) {
        contents[_RDPA] = (0, import_smithy_client28.expectString)(output[_rDPA]);
      }
      if (output[_rEd] != null) {
        contents[_RE] = (0, import_smithy_client28.expectString)(output[_rEd]);
      }
      if (output.subnetIdSet === "") {
        contents[_SIu] = [];
      } else if (output[_sISu] != null && output[_sISu][_i] != null) {
        contents[_SIu] = de_VerifiedAccessEndpointSubnetIdList((0, import_smithy_client28.getArrayIfSingleItem)(output[_sISu][_i]), context);
      }
      return contents;
    }, "de_VerifiedAccessEndpointRdsOptions");
    var de_VerifiedAccessEndpointStatus = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_co] != null) {
        contents[_Cod] = (0, import_smithy_client28.expectString)(output[_co]);
      }
      if (output[_me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_me]);
      }
      return contents;
    }, "de_VerifiedAccessEndpointStatus");
    var de_VerifiedAccessEndpointSubnetIdList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_VerifiedAccessEndpointSubnetIdList");
    var de_VerifiedAccessEndpointTarget = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_vAEI] != null) {
        contents[_VAEI] = (0, import_smithy_client28.expectString)(output[_vAEI]);
      }
      if (output[_vAETIA] != null) {
        contents[_VAETIA] = (0, import_smithy_client28.expectString)(output[_vAETIA]);
      }
      if (output[_vAETD] != null) {
        contents[_VAETD] = (0, import_smithy_client28.expectString)(output[_vAETD]);
      }
      return contents;
    }, "de_VerifiedAccessEndpointTarget");
    var de_VerifiedAccessEndpointTargetList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_VerifiedAccessEndpointTarget(entry, context);
      });
    }, "de_VerifiedAccessEndpointTargetList");
    var de_VerifiedAccessGroup = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_vAGI] != null) {
        contents[_VAGI] = (0, import_smithy_client28.expectString)(output[_vAGI]);
      }
      if (output[_vAII] != null) {
        contents[_VAII] = (0, import_smithy_client28.expectString)(output[_vAII]);
      }
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      if (output[_ow] != null) {
        contents[_Own] = (0, import_smithy_client28.expectString)(output[_ow]);
      }
      if (output[_vAGA] != null) {
        contents[_VAGA] = (0, import_smithy_client28.expectString)(output[_vAGA]);
      }
      if (output[_cTre] != null) {
        contents[_CTre] = (0, import_smithy_client28.expectString)(output[_cTre]);
      }
      if (output[_lUTa] != null) {
        contents[_LUTa] = (0, import_smithy_client28.expectString)(output[_lUTa]);
      }
      if (output[_dT] != null) {
        contents[_DTel] = (0, import_smithy_client28.expectString)(output[_dT]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_sSs] != null) {
        contents[_SS] = de_VerifiedAccessSseSpecificationResponse(output[_sSs], context);
      }
      return contents;
    }, "de_VerifiedAccessGroup");
    var de_VerifiedAccessGroupList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_VerifiedAccessGroup(entry, context);
      });
    }, "de_VerifiedAccessGroupList");
    var de_VerifiedAccessInstance = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_vAII] != null) {
        contents[_VAII] = (0, import_smithy_client28.expectString)(output[_vAII]);
      }
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      if (output.verifiedAccessTrustProviderSet === "") {
        contents[_VATPe] = [];
      } else if (output[_vATPS] != null && output[_vATPS][_i] != null) {
        contents[_VATPe] = de_VerifiedAccessTrustProviderCondensedList((0, import_smithy_client28.getArrayIfSingleItem)(output[_vATPS][_i]), context);
      }
      if (output[_cTre] != null) {
        contents[_CTre] = (0, import_smithy_client28.expectString)(output[_cTre]);
      }
      if (output[_lUTa] != null) {
        contents[_LUTa] = (0, import_smithy_client28.expectString)(output[_lUTa]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_fE] != null) {
        contents[_FE] = (0, import_smithy_client28.parseBoolean)(output[_fE]);
      }
      if (output[_cECSD] != null) {
        contents[_CECSD] = de_VerifiedAccessInstanceCustomSubDomain(output[_cECSD], context);
      }
      return contents;
    }, "de_VerifiedAccessInstance");
    var de_VerifiedAccessInstanceCustomSubDomain = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sDu] != null) {
        contents[_SDu] = (0, import_smithy_client28.expectString)(output[_sDu]);
      }
      if (output.nameserverSet === "") {
        contents[_Na] = [];
      } else if (output[_nSa] != null && output[_nSa][_i] != null) {
        contents[_Na] = de_ValueStringList((0, import_smithy_client28.getArrayIfSingleItem)(output[_nSa][_i]), context);
      }
      return contents;
    }, "de_VerifiedAccessInstanceCustomSubDomain");
    var de_VerifiedAccessInstanceList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_VerifiedAccessInstance(entry, context);
      });
    }, "de_VerifiedAccessInstanceList");
    var de_VerifiedAccessInstanceLoggingConfiguration = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_vAII] != null) {
        contents[_VAII] = (0, import_smithy_client28.expectString)(output[_vAII]);
      }
      if (output[_aLc] != null) {
        contents[_AL] = de_VerifiedAccessLogs(output[_aLc], context);
      }
      return contents;
    }, "de_VerifiedAccessInstanceLoggingConfiguration");
    var de_VerifiedAccessInstanceLoggingConfigurationList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_VerifiedAccessInstanceLoggingConfiguration(entry, context);
      });
    }, "de_VerifiedAccessInstanceLoggingConfigurationList");
    var de_VerifiedAccessInstanceOpenVpnClientConfiguration = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_confi] != null) {
        contents[_Confi] = (0, import_smithy_client28.expectString)(output[_confi]);
      }
      if (output.routeSet === "") {
        contents[_Rout] = [];
      } else if (output[_rSou] != null && output[_rSou][_i] != null) {
        contents[_Rout] = de_VerifiedAccessInstanceOpenVpnClientConfigurationRouteList(
          (0, import_smithy_client28.getArrayIfSingleItem)(output[_rSou][_i]),
          context
        );
      }
      return contents;
    }, "de_VerifiedAccessInstanceOpenVpnClientConfiguration");
    var de_VerifiedAccessInstanceOpenVpnClientConfigurationList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_VerifiedAccessInstanceOpenVpnClientConfiguration(entry, context);
      });
    }, "de_VerifiedAccessInstanceOpenVpnClientConfigurationList");
    var de_VerifiedAccessInstanceOpenVpnClientConfigurationRoute = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ci] != null) {
        contents[_C2] = (0, import_smithy_client28.expectString)(output[_ci]);
      }
      return contents;
    }, "de_VerifiedAccessInstanceOpenVpnClientConfigurationRoute");
    var de_VerifiedAccessInstanceOpenVpnClientConfigurationRouteList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_VerifiedAccessInstanceOpenVpnClientConfigurationRoute(entry, context);
      });
    }, "de_VerifiedAccessInstanceOpenVpnClientConfigurationRouteList");
    var de_VerifiedAccessInstanceUserTrustProviderClientConfiguration = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ty] != null) {
        contents[_T2] = (0, import_smithy_client28.expectString)(output[_ty]);
      }
      if (output[_scop] != null) {
        contents[_Scop] = (0, import_smithy_client28.expectString)(output[_scop]);
      }
      if (output[_is] != null) {
        contents[_I] = (0, import_smithy_client28.expectString)(output[_is]);
      }
      if (output[_aE] != null) {
        contents[_AE] = (0, import_smithy_client28.expectString)(output[_aE]);
      }
      if (output[_pSKE] != null) {
        contents[_PSKE] = (0, import_smithy_client28.expectString)(output[_pSKE]);
      }
      if (output[_tEo] != null) {
        contents[_TEo] = (0, import_smithy_client28.expectString)(output[_tEo]);
      }
      if (output[_uIE] != null) {
        contents[_UIE] = (0, import_smithy_client28.expectString)(output[_uIE]);
      }
      if (output[_cIli] != null) {
        contents[_CIl] = (0, import_smithy_client28.expectString)(output[_cIli]);
      }
      if (output[_cSl] != null) {
        contents[_CSl] = (0, import_smithy_client28.expectString)(output[_cSl]);
      }
      if (output[_pEk] != null) {
        contents[_PEk] = (0, import_smithy_client28.parseBoolean)(output[_pEk]);
      }
      return contents;
    }, "de_VerifiedAccessInstanceUserTrustProviderClientConfiguration");
    var de_VerifiedAccessLogCloudWatchLogsDestination = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_en] != null) {
        contents[_En] = (0, import_smithy_client28.parseBoolean)(output[_en]);
      }
      if (output[_dSel] != null) {
        contents[_DSeli] = de_VerifiedAccessLogDeliveryStatus(output[_dSel], context);
      }
      if (output[_lGo] != null) {
        contents[_LGo] = (0, import_smithy_client28.expectString)(output[_lGo]);
      }
      return contents;
    }, "de_VerifiedAccessLogCloudWatchLogsDestination");
    var de_VerifiedAccessLogDeliveryStatus = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_co] != null) {
        contents[_Cod] = (0, import_smithy_client28.expectString)(output[_co]);
      }
      if (output[_me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_me]);
      }
      return contents;
    }, "de_VerifiedAccessLogDeliveryStatus");
    var de_VerifiedAccessLogKinesisDataFirehoseDestination = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_en] != null) {
        contents[_En] = (0, import_smithy_client28.parseBoolean)(output[_en]);
      }
      if (output[_dSel] != null) {
        contents[_DSeli] = de_VerifiedAccessLogDeliveryStatus(output[_dSel], context);
      }
      if (output[_dSeli] != null) {
        contents[_DSel] = (0, import_smithy_client28.expectString)(output[_dSeli]);
      }
      return contents;
    }, "de_VerifiedAccessLogKinesisDataFirehoseDestination");
    var de_VerifiedAccessLogs = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_s_] != null) {
        contents[_S_] = de_VerifiedAccessLogS3Destination(output[_s_], context);
      }
      if (output[_cWL] != null) {
        contents[_CWL] = de_VerifiedAccessLogCloudWatchLogsDestination(output[_cWL], context);
      }
      if (output[_kDF] != null) {
        contents[_KDF] = de_VerifiedAccessLogKinesisDataFirehoseDestination(output[_kDF], context);
      }
      if (output[_lV] != null) {
        contents[_LV] = (0, import_smithy_client28.expectString)(output[_lV]);
      }
      if (output[_iTCn] != null) {
        contents[_ITCn] = (0, import_smithy_client28.parseBoolean)(output[_iTCn]);
      }
      return contents;
    }, "de_VerifiedAccessLogs");
    var de_VerifiedAccessLogS3Destination = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_en] != null) {
        contents[_En] = (0, import_smithy_client28.parseBoolean)(output[_en]);
      }
      if (output[_dSel] != null) {
        contents[_DSeli] = de_VerifiedAccessLogDeliveryStatus(output[_dSel], context);
      }
      if (output[_bN] != null) {
        contents[_BN] = (0, import_smithy_client28.expectString)(output[_bN]);
      }
      if (output[_pre] != null) {
        contents[_Pr2] = (0, import_smithy_client28.expectString)(output[_pre]);
      }
      if (output[_bOu] != null) {
        contents[_BOu] = (0, import_smithy_client28.expectString)(output[_bOu]);
      }
      return contents;
    }, "de_VerifiedAccessLogS3Destination");
    var de_VerifiedAccessSseSpecificationResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cMKE] != null) {
        contents[_CMKE] = (0, import_smithy_client28.parseBoolean)(output[_cMKE]);
      }
      if (output[_kKA] != null) {
        contents[_KKA] = (0, import_smithy_client28.expectString)(output[_kKA]);
      }
      return contents;
    }, "de_VerifiedAccessSseSpecificationResponse");
    var de_VerifiedAccessTrustProvider = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_vATPI] != null) {
        contents[_VATPI] = (0, import_smithy_client28.expectString)(output[_vATPI]);
      }
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      if (output[_tPT] != null) {
        contents[_TPT] = (0, import_smithy_client28.expectString)(output[_tPT]);
      }
      if (output[_uTPT] != null) {
        contents[_UTPT] = (0, import_smithy_client28.expectString)(output[_uTPT]);
      }
      if (output[_dTPT] != null) {
        contents[_DTPT] = (0, import_smithy_client28.expectString)(output[_dTPT]);
      }
      if (output[_oO] != null) {
        contents[_OO] = de_OidcOptions(output[_oO], context);
      }
      if (output[_dOev] != null) {
        contents[_DOe] = de_DeviceOptions(output[_dOev], context);
      }
      if (output[_pRNo] != null) {
        contents[_PRN] = (0, import_smithy_client28.expectString)(output[_pRNo]);
      }
      if (output[_cTre] != null) {
        contents[_CTre] = (0, import_smithy_client28.expectString)(output[_cTre]);
      }
      if (output[_lUTa] != null) {
        contents[_LUTa] = (0, import_smithy_client28.expectString)(output[_lUTa]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_sSs] != null) {
        contents[_SS] = de_VerifiedAccessSseSpecificationResponse(output[_sSs], context);
      }
      if (output[_nAOO] != null) {
        contents[_NAOO] = de_NativeApplicationOidcOptions(output[_nAOO], context);
      }
      return contents;
    }, "de_VerifiedAccessTrustProvider");
    var de_VerifiedAccessTrustProviderCondensed = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_vATPI] != null) {
        contents[_VATPI] = (0, import_smithy_client28.expectString)(output[_vATPI]);
      }
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      if (output[_tPT] != null) {
        contents[_TPT] = (0, import_smithy_client28.expectString)(output[_tPT]);
      }
      if (output[_uTPT] != null) {
        contents[_UTPT] = (0, import_smithy_client28.expectString)(output[_uTPT]);
      }
      if (output[_dTPT] != null) {
        contents[_DTPT] = (0, import_smithy_client28.expectString)(output[_dTPT]);
      }
      return contents;
    }, "de_VerifiedAccessTrustProviderCondensed");
    var de_VerifiedAccessTrustProviderCondensedList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_VerifiedAccessTrustProviderCondensed(entry, context);
      });
    }, "de_VerifiedAccessTrustProviderCondensedList");
    var de_VerifiedAccessTrustProviderList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_VerifiedAccessTrustProvider(entry, context);
      });
    }, "de_VerifiedAccessTrustProviderList");
    var de_VgwTelemetry = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aRC] != null) {
        contents[_ARC] = (0, import_smithy_client28.strictParseInt32)(output[_aRC]);
      }
      if (output[_lSC] != null) {
        contents[_LSC] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_lSC]));
      }
      if (output[_oIA] != null) {
        contents[_OIA] = (0, import_smithy_client28.expectString)(output[_oIA]);
      }
      if (output[_sta] != null) {
        contents[_Statu] = (0, import_smithy_client28.expectString)(output[_sta]);
      }
      if (output[_sMt] != null) {
        contents[_SMt] = (0, import_smithy_client28.expectString)(output[_sMt]);
      }
      if (output[_cAe] != null) {
        contents[_CA2] = (0, import_smithy_client28.expectString)(output[_cAe]);
      }
      return contents;
    }, "de_VgwTelemetry");
    var de_VgwTelemetryList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_VgwTelemetry(entry, context);
      });
    }, "de_VgwTelemetryList");
    var de_VirtualizationTypeList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_VirtualizationTypeList");
    var de_Volume = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aZI] != null) {
        contents[_AZI] = (0, import_smithy_client28.expectString)(output[_aZI]);
      }
      if (output[_oA] != null) {
        contents[_OA] = (0, import_smithy_client28.expectString)(output[_oA]);
      }
      if (output[_io] != null) {
        contents[_Io] = (0, import_smithy_client28.strictParseInt32)(output[_io]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_vT] != null) {
        contents[_VT] = (0, import_smithy_client28.expectString)(output[_vT]);
      }
      if (output[_fRa] != null) {
        contents[_FRa] = (0, import_smithy_client28.parseBoolean)(output[_fRa]);
      }
      if (output[_mAE] != null) {
        contents[_MAE] = (0, import_smithy_client28.parseBoolean)(output[_mAE]);
      }
      if (output[_th] != null) {
        contents[_Th] = (0, import_smithy_client28.strictParseInt32)(output[_th]);
      }
      if (output[_sTs] != null) {
        contents[_STs] = (0, import_smithy_client28.expectString)(output[_sTs]);
      }
      if (output[_op] != null) {
        contents[_O] = de_OperatorResponse(output[_op], context);
      }
      if (output[_vIR] != null) {
        contents[_VIR] = (0, import_smithy_client28.strictParseInt32)(output[_vIR]);
      }
      if (output[_vIo] != null) {
        contents[_VIo] = (0, import_smithy_client28.expectString)(output[_vIo]);
      }
      if (output[_si] != null) {
        contents[_Siz] = (0, import_smithy_client28.strictParseInt32)(output[_si]);
      }
      if (output[_sIn] != null) {
        contents[_SIn] = (0, import_smithy_client28.expectString)(output[_sIn]);
      }
      if (output[_aZ] != null) {
        contents[_AZ] = (0, import_smithy_client28.expectString)(output[_aZ]);
      }
      if (output[_sta] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_sta]);
      }
      if (output[_cTr] != null) {
        contents[_CTr] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_cTr]));
      }
      if (output.attachmentSet === "") {
        contents[_Atta] = [];
      } else if (output[_aSt] != null && output[_aSt][_i] != null) {
        contents[_Atta] = de_VolumeAttachmentList((0, import_smithy_client28.getArrayIfSingleItem)(output[_aSt][_i]), context);
      }
      if (output[_enc] != null) {
        contents[_Enc] = (0, import_smithy_client28.parseBoolean)(output[_enc]);
      }
      if (output[_kKI] != null) {
        contents[_KKI] = (0, import_smithy_client28.expectString)(output[_kKI]);
      }
      return contents;
    }, "de_Volume");
    var de_VolumeAttachment = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_dOT] != null) {
        contents[_DOT] = (0, import_smithy_client28.parseBoolean)(output[_dOT]);
      }
      if (output[_aRs] != null) {
        contents[_ARs] = (0, import_smithy_client28.expectString)(output[_aRs]);
      }
      if (output[_iOS] != null) {
        contents[_IOS] = (0, import_smithy_client28.expectString)(output[_iOS]);
      }
      if (output[_vIo] != null) {
        contents[_VIo] = (0, import_smithy_client28.expectString)(output[_vIo]);
      }
      if (output[_iI] != null) {
        contents[_IIn] = (0, import_smithy_client28.expectString)(output[_iI]);
      }
      if (output[_dev] != null) {
        contents[_Dev] = (0, import_smithy_client28.expectString)(output[_dev]);
      }
      if (output[_sta] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_sta]);
      }
      if (output[_aTt] != null) {
        contents[_ATtt] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_aTt]));
      }
      return contents;
    }, "de_VolumeAttachment");
    var de_VolumeAttachmentList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_VolumeAttachment(entry, context);
      });
    }, "de_VolumeAttachmentList");
    var de_VolumeList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Volume(entry, context);
      });
    }, "de_VolumeList");
    var de_VolumeModification = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_vIo] != null) {
        contents[_VIo] = (0, import_smithy_client28.expectString)(output[_vIo]);
      }
      if (output[_mSod] != null) {
        contents[_MSod] = (0, import_smithy_client28.expectString)(output[_mSod]);
      }
      if (output[_sMt] != null) {
        contents[_SMt] = (0, import_smithy_client28.expectString)(output[_sMt]);
      }
      if (output[_tSar] != null) {
        contents[_TSar] = (0, import_smithy_client28.strictParseInt32)(output[_tSar]);
      }
      if (output[_tIa] != null) {
        contents[_TIar] = (0, import_smithy_client28.strictParseInt32)(output[_tIa]);
      }
      if (output[_tVT] != null) {
        contents[_TVT] = (0, import_smithy_client28.expectString)(output[_tVT]);
      }
      if (output[_tTar] != null) {
        contents[_TTar] = (0, import_smithy_client28.strictParseInt32)(output[_tTar]);
      }
      if (output[_tMAE] != null) {
        contents[_TMAE] = (0, import_smithy_client28.parseBoolean)(output[_tMAE]);
      }
      if (output[_oSr] != null) {
        contents[_OSr] = (0, import_smithy_client28.strictParseInt32)(output[_oSr]);
      }
      if (output[_oIr] != null) {
        contents[_OIr] = (0, import_smithy_client28.strictParseInt32)(output[_oIr]);
      }
      if (output[_oVT] != null) {
        contents[_OVT] = (0, import_smithy_client28.expectString)(output[_oVT]);
      }
      if (output[_oTr] != null) {
        contents[_OTr] = (0, import_smithy_client28.strictParseInt32)(output[_oTr]);
      }
      if (output[_oMAE] != null) {
        contents[_OMAE] = (0, import_smithy_client28.parseBoolean)(output[_oMAE]);
      }
      if (output[_pro] != null) {
        contents[_Prog] = (0, import_smithy_client28.strictParseLong)(output[_pro]);
      }
      if (output[_sT] != null) {
        contents[_STt] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_sT]));
      }
      if (output[_eTn] != null) {
        contents[_ETn] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_eTn]));
      }
      return contents;
    }, "de_VolumeModification");
    var de_VolumeModificationList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_VolumeModification(entry, context);
      });
    }, "de_VolumeModificationList");
    var de_VolumeStatusAction = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_co] != null) {
        contents[_Cod] = (0, import_smithy_client28.expectString)(output[_co]);
      }
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      if (output[_eIve] != null) {
        contents[_EIve] = (0, import_smithy_client28.expectString)(output[_eIve]);
      }
      if (output[_eTv] != null) {
        contents[_ETv] = (0, import_smithy_client28.expectString)(output[_eTv]);
      }
      return contents;
    }, "de_VolumeStatusAction");
    var de_VolumeStatusActionsList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_VolumeStatusAction(entry, context);
      });
    }, "de_VolumeStatusActionsList");
    var de_VolumeStatusAttachmentStatus = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iPo] != null) {
        contents[_IPo] = (0, import_smithy_client28.expectString)(output[_iPo]);
      }
      if (output[_iI] != null) {
        contents[_IIn] = (0, import_smithy_client28.expectString)(output[_iI]);
      }
      return contents;
    }, "de_VolumeStatusAttachmentStatus");
    var de_VolumeStatusAttachmentStatusList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_VolumeStatusAttachmentStatus(entry, context);
      });
    }, "de_VolumeStatusAttachmentStatusList");
    var de_VolumeStatusDetails = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_n] != null) {
        contents[_N] = (0, import_smithy_client28.expectString)(output[_n]);
      }
      if (output[_sta] != null) {
        contents[_Statu] = (0, import_smithy_client28.expectString)(output[_sta]);
      }
      return contents;
    }, "de_VolumeStatusDetails");
    var de_VolumeStatusDetailsList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_VolumeStatusDetails(entry, context);
      });
    }, "de_VolumeStatusDetailsList");
    var de_VolumeStatusEvent = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_de] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_de]);
      }
      if (output[_eIve] != null) {
        contents[_EIve] = (0, import_smithy_client28.expectString)(output[_eIve]);
      }
      if (output[_eTv] != null) {
        contents[_ETv] = (0, import_smithy_client28.expectString)(output[_eTv]);
      }
      if (output[_nAo] != null) {
        contents[_NAo] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_nAo]));
      }
      if (output[_nB] != null) {
        contents[_NB] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_nB]));
      }
      if (output[_iI] != null) {
        contents[_IIn] = (0, import_smithy_client28.expectString)(output[_iI]);
      }
      return contents;
    }, "de_VolumeStatusEvent");
    var de_VolumeStatusEventsList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_VolumeStatusEvent(entry, context);
      });
    }, "de_VolumeStatusEventsList");
    var de_VolumeStatusInfo = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.details === "") {
        contents[_Det] = [];
      } else if (output[_det] != null && output[_det][_i] != null) {
        contents[_Det] = de_VolumeStatusDetailsList((0, import_smithy_client28.getArrayIfSingleItem)(output[_det][_i]), context);
      }
      if (output[_sta] != null) {
        contents[_Statu] = (0, import_smithy_client28.expectString)(output[_sta]);
      }
      return contents;
    }, "de_VolumeStatusInfo");
    var de_VolumeStatusItem = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.actionsSet === "") {
        contents[_Acti] = [];
      } else if (output[_aSct] != null && output[_aSct][_i] != null) {
        contents[_Acti] = de_VolumeStatusActionsList((0, import_smithy_client28.getArrayIfSingleItem)(output[_aSct][_i]), context);
      }
      if (output[_aZ] != null) {
        contents[_AZ] = (0, import_smithy_client28.expectString)(output[_aZ]);
      }
      if (output[_oA] != null) {
        contents[_OA] = (0, import_smithy_client28.expectString)(output[_oA]);
      }
      if (output.eventsSet === "") {
        contents[_Ev] = [];
      } else if (output[_eSv] != null && output[_eSv][_i] != null) {
        contents[_Ev] = de_VolumeStatusEventsList((0, import_smithy_client28.getArrayIfSingleItem)(output[_eSv][_i]), context);
      }
      if (output[_vIo] != null) {
        contents[_VIo] = (0, import_smithy_client28.expectString)(output[_vIo]);
      }
      if (output[_vSol] != null) {
        contents[_VSol] = de_VolumeStatusInfo(output[_vSol], context);
      }
      if (output.attachmentStatuses === "") {
        contents[_AStt] = [];
      } else if (output[_aStt] != null && output[_aStt][_i] != null) {
        contents[_AStt] = de_VolumeStatusAttachmentStatusList((0, import_smithy_client28.getArrayIfSingleItem)(output[_aStt][_i]), context);
      }
      if (output[_iSD] != null) {
        contents[_ISD] = de_InitializationStatusDetails(output[_iSD], context);
      }
      if (output[_aZI] != null) {
        contents[_AZI] = (0, import_smithy_client28.expectString)(output[_aZI]);
      }
      return contents;
    }, "de_VolumeStatusItem");
    var de_VolumeStatusList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_VolumeStatusItem(entry, context);
      });
    }, "de_VolumeStatusList");
    var de_Vpc = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_oI] != null) {
        contents[_OIwn] = (0, import_smithy_client28.expectString)(output[_oI]);
      }
      if (output[_iTns] != null) {
        contents[_ITns] = (0, import_smithy_client28.expectString)(output[_iTns]);
      }
      if (output.ipv6CidrBlockAssociationSet === "") {
        contents[_ICBAS] = [];
      } else if (output[_iCBAS] != null && output[_iCBAS][_i] != null) {
        contents[_ICBAS] = de_VpcIpv6CidrBlockAssociationSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_iCBAS][_i]), context);
      }
      if (output.cidrBlockAssociationSet === "") {
        contents[_CBAS] = [];
      } else if (output[_cBAS] != null && output[_cBAS][_i] != null) {
        contents[_CBAS] = de_VpcCidrBlockAssociationSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_cBAS][_i]), context);
      }
      if (output[_iDs] != null) {
        contents[_IDs] = (0, import_smithy_client28.parseBoolean)(output[_iDs]);
      }
      if (output[_eCn] != null) {
        contents[_ECn] = de_VpcEncryptionControl(output[_eCn], context);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_bPAS] != null) {
        contents[_BPAS] = de_BlockPublicAccessStates(output[_bPAS], context);
      }
      if (output[_vI] != null) {
        contents[_VI] = (0, import_smithy_client28.expectString)(output[_vI]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_cB] != null) {
        contents[_CB] = (0, import_smithy_client28.expectString)(output[_cB]);
      }
      if (output[_dOI] != null) {
        contents[_DOI] = (0, import_smithy_client28.expectString)(output[_dOI]);
      }
      return contents;
    }, "de_Vpc");
    var de_VpcAttachment = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_vI] != null) {
        contents[_VI] = (0, import_smithy_client28.expectString)(output[_vI]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      return contents;
    }, "de_VpcAttachment");
    var de_VpcAttachmentList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_VpcAttachment(entry, context);
      });
    }, "de_VpcAttachmentList");
    var de_VpcBlockPublicAccessExclusion = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_eIx] != null) {
        contents[_EIxc] = (0, import_smithy_client28.expectString)(output[_eIx]);
      }
      if (output[_iGEM] != null) {
        contents[_IGEM] = (0, import_smithy_client28.expectString)(output[_iGEM]);
      }
      if (output[_rAe] != null) {
        contents[_RAes] = (0, import_smithy_client28.expectString)(output[_rAe]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_rea] != null) {
        contents[_Rea] = (0, import_smithy_client28.expectString)(output[_rea]);
      }
      if (output[_cTrea] != null) {
        contents[_CTrea] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_cTrea]));
      }
      if (output[_lUTas] != null) {
        contents[_LUTas] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_lUTas]));
      }
      if (output[_dTele] != null) {
        contents[_DTelet] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_dTele]));
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      return contents;
    }, "de_VpcBlockPublicAccessExclusion");
    var de_VpcBlockPublicAccessExclusionList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_VpcBlockPublicAccessExclusion(entry, context);
      });
    }, "de_VpcBlockPublicAccessExclusionList");
    var de_VpcBlockPublicAccessOptions = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aAI] != null) {
        contents[_AAI] = (0, import_smithy_client28.expectString)(output[_aAI]);
      }
      if (output[_aRw] != null) {
        contents[_ARw] = (0, import_smithy_client28.expectString)(output[_aRw]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_iGBM] != null) {
        contents[_IGBM] = (0, import_smithy_client28.expectString)(output[_iGBM]);
      }
      if (output[_rea] != null) {
        contents[_Rea] = (0, import_smithy_client28.expectString)(output[_rea]);
      }
      if (output[_lUTas] != null) {
        contents[_LUTas] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_lUTas]));
      }
      if (output[_mB] != null) {
        contents[_MB] = (0, import_smithy_client28.expectString)(output[_mB]);
      }
      if (output[_eAx] != null) {
        contents[_EAx] = (0, import_smithy_client28.expectString)(output[_eAx]);
      }
      return contents;
    }, "de_VpcBlockPublicAccessOptions");
    var de_VpcCidrBlockAssociation = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aIs] != null) {
        contents[_AIss] = (0, import_smithy_client28.expectString)(output[_aIs]);
      }
      if (output[_cB] != null) {
        contents[_CB] = (0, import_smithy_client28.expectString)(output[_cB]);
      }
      if (output[_cBSi] != null) {
        contents[_CBSi] = de_VpcCidrBlockState(output[_cBSi], context);
      }
      return contents;
    }, "de_VpcCidrBlockAssociation");
    var de_VpcCidrBlockAssociationSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_VpcCidrBlockAssociation(entry, context);
      });
    }, "de_VpcCidrBlockAssociationSet");
    var de_VpcCidrBlockState = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_sMt] != null) {
        contents[_SMt] = (0, import_smithy_client28.expectString)(output[_sMt]);
      }
      return contents;
    }, "de_VpcCidrBlockState");
    var de_VpcClassicLink = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cLE] != null) {
        contents[_CLE] = (0, import_smithy_client28.parseBoolean)(output[_cLE]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_vI] != null) {
        contents[_VI] = (0, import_smithy_client28.expectString)(output[_vI]);
      }
      return contents;
    }, "de_VpcClassicLink");
    var de_VpcClassicLinkList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_VpcClassicLink(entry, context);
      });
    }, "de_VpcClassicLinkList");
    var de_VpcEncryptionControl = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_vI] != null) {
        contents[_VI] = (0, import_smithy_client28.expectString)(output[_vI]);
      }
      if (output[_vECI] != null) {
        contents[_VECI] = (0, import_smithy_client28.expectString)(output[_vECI]);
      }
      if (output[_mod] != null) {
        contents[_Mo] = (0, import_smithy_client28.expectString)(output[_mod]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_sMta] != null) {
        contents[_SMta] = (0, import_smithy_client28.expectString)(output[_sMta]);
      }
      if (output[_rEes] != null) {
        contents[_REeso] = de_VpcEncryptionControlExclusions(output[_rEes], context);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      return contents;
    }, "de_VpcEncryptionControl");
    var de_VpcEncryptionControlExclusion = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_sMta] != null) {
        contents[_SMta] = (0, import_smithy_client28.expectString)(output[_sMta]);
      }
      return contents;
    }, "de_VpcEncryptionControlExclusion");
    var de_VpcEncryptionControlExclusions = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_iG] != null) {
        contents[_IGn] = de_VpcEncryptionControlExclusion(output[_iG], context);
      }
      if (output[_eOIG] != null) {
        contents[_EOIG] = de_VpcEncryptionControlExclusion(output[_eOIG], context);
      }
      if (output[_nG] != null) {
        contents[_NG] = de_VpcEncryptionControlExclusion(output[_nG], context);
      }
      if (output[_vPG] != null) {
        contents[_VPG] = de_VpcEncryptionControlExclusion(output[_vPG], context);
      }
      if (output[_vPpc] != null) {
        contents[_VPpc] = de_VpcEncryptionControlExclusion(output[_vPpc], context);
      }
      return contents;
    }, "de_VpcEncryptionControlExclusions");
    var de_VpcEndpoint = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_vEI] != null) {
        contents[_VEIp] = (0, import_smithy_client28.expectString)(output[_vEI]);
      }
      if (output[_vET] != null) {
        contents[_VET] = (0, import_smithy_client28.expectString)(output[_vET]);
      }
      if (output[_vI] != null) {
        contents[_VI] = (0, import_smithy_client28.expectString)(output[_vI]);
      }
      if (output[_sN] != null) {
        contents[_SNe] = (0, import_smithy_client28.expectString)(output[_sN]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_pDo] != null) {
        contents[_PD] = (0, import_smithy_client28.expectString)(output[_pDo]);
      }
      if (output.routeTableIdSet === "") {
        contents[_RTIo] = [];
      } else if (output[_rTIS] != null && output[_rTIS][_i] != null) {
        contents[_RTIo] = de_ValueStringList((0, import_smithy_client28.getArrayIfSingleItem)(output[_rTIS][_i]), context);
      }
      if (output.subnetIdSet === "") {
        contents[_SIu] = [];
      } else if (output[_sISu] != null && output[_sISu][_i] != null) {
        contents[_SIu] = de_ValueStringList((0, import_smithy_client28.getArrayIfSingleItem)(output[_sISu][_i]), context);
      }
      if (output.groupSet === "") {
        contents[_G] = [];
      } else if (output[_gS] != null && output[_gS][_i] != null) {
        contents[_G] = de_GroupIdentifierSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_gS][_i]), context);
      }
      if (output[_iAT] != null) {
        contents[_IAT] = (0, import_smithy_client28.expectString)(output[_iAT]);
      }
      if (output[_dOn] != null) {
        contents[_DOn] = de_DnsOptions(output[_dOn], context);
      }
      if (output[_pDE] != null) {
        contents[_PDE] = (0, import_smithy_client28.parseBoolean)(output[_pDE]);
      }
      if (output[_rMe] != null) {
        contents[_RMeq] = (0, import_smithy_client28.parseBoolean)(output[_rMe]);
      }
      if (output.networkInterfaceIdSet === "") {
        contents[_NIIe] = [];
      } else if (output[_nIIS] != null && output[_nIIS][_i] != null) {
        contents[_NIIe] = de_ValueStringList((0, import_smithy_client28.getArrayIfSingleItem)(output[_nIIS][_i]), context);
      }
      if (output.dnsEntrySet === "") {
        contents[_DE] = [];
      } else if (output[_dES] != null && output[_dES][_i] != null) {
        contents[_DE] = de_DnsEntrySet((0, import_smithy_client28.getArrayIfSingleItem)(output[_dES][_i]), context);
      }
      if (output[_cTrea] != null) {
        contents[_CTrea] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_cTrea]));
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_oI] != null) {
        contents[_OIwn] = (0, import_smithy_client28.expectString)(output[_oI]);
      }
      if (output[_lEa] != null) {
        contents[_LEa] = de_LastError(output[_lEa], context);
      }
      if (output.ipv4PrefixSet === "") {
        contents[_IPp] = [];
      } else if (output[_iPSpv] != null && output[_iPSpv][_i] != null) {
        contents[_IPp] = de_SubnetIpPrefixesList((0, import_smithy_client28.getArrayIfSingleItem)(output[_iPSpv][_i]), context);
      }
      if (output.ipv6PrefixSet === "") {
        contents[_IP] = [];
      } else if (output[_iPSpvr] != null && output[_iPSpvr][_i] != null) {
        contents[_IP] = de_SubnetIpPrefixesList((0, import_smithy_client28.getArrayIfSingleItem)(output[_iPSpvr][_i]), context);
      }
      if (output[_fR] != null) {
        contents[_FR] = (0, import_smithy_client28.expectString)(output[_fR]);
      }
      if (output[_sNA] != null) {
        contents[_SNA] = (0, import_smithy_client28.expectString)(output[_sNA]);
      }
      if (output[_rCA] != null) {
        contents[_RCA] = (0, import_smithy_client28.expectString)(output[_rCA]);
      }
      if (output[_sR] != null) {
        contents[_SRe] = (0, import_smithy_client28.expectString)(output[_sR]);
      }
      return contents;
    }, "de_VpcEndpoint");
    var de_VpcEndpointAssociation = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_id] != null) {
        contents[_Id] = (0, import_smithy_client28.expectString)(output[_id]);
      }
      if (output[_vEI] != null) {
        contents[_VEIp] = (0, import_smithy_client28.expectString)(output[_vEI]);
      }
      if (output[_sNA] != null) {
        contents[_SNA] = (0, import_smithy_client28.expectString)(output[_sNA]);
      }
      if (output[_sNN] != null) {
        contents[_SNN] = (0, import_smithy_client28.expectString)(output[_sNN]);
      }
      if (output[_aRAs] != null) {
        contents[_ARAs] = (0, import_smithy_client28.expectString)(output[_aRAs]);
      }
      if (output[_fR] != null) {
        contents[_FR] = (0, import_smithy_client28.expectString)(output[_fR]);
      }
      if (output[_fCa] != null) {
        contents[_FCa] = (0, import_smithy_client28.expectString)(output[_fCa]);
      }
      if (output[_dE] != null) {
        contents[_DEn] = de_DnsEntry(output[_dE], context);
      }
      if (output[_pDEr] != null) {
        contents[_PDEr] = de_DnsEntry(output[_pDEr], context);
      }
      if (output[_aRAss] != null) {
        contents[_ARAss] = (0, import_smithy_client28.expectString)(output[_aRAss]);
      }
      if (output[_rCGA] != null) {
        contents[_RCGA] = (0, import_smithy_client28.expectString)(output[_rCGA]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      return contents;
    }, "de_VpcEndpointAssociation");
    var de_VpcEndpointAssociationSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_VpcEndpointAssociation(entry, context);
      });
    }, "de_VpcEndpointAssociationSet");
    var de_VpcEndpointConnection = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_sI] != null) {
        contents[_SIe] = (0, import_smithy_client28.expectString)(output[_sI]);
      }
      if (output[_vEI] != null) {
        contents[_VEIp] = (0, import_smithy_client28.expectString)(output[_vEI]);
      }
      if (output[_vEO] != null) {
        contents[_VEO] = (0, import_smithy_client28.expectString)(output[_vEO]);
      }
      if (output[_vESpc] != null) {
        contents[_VESpc] = (0, import_smithy_client28.expectString)(output[_vESpc]);
      }
      if (output[_cTrea] != null) {
        contents[_CTrea] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_cTrea]));
      }
      if (output.dnsEntrySet === "") {
        contents[_DE] = [];
      } else if (output[_dES] != null && output[_dES][_i] != null) {
        contents[_DE] = de_DnsEntrySet((0, import_smithy_client28.getArrayIfSingleItem)(output[_dES][_i]), context);
      }
      if (output.networkLoadBalancerArnSet === "") {
        contents[_NLBAe] = [];
      } else if (output[_nLBAS] != null && output[_nLBAS][_i] != null) {
        contents[_NLBAe] = de_ValueStringList((0, import_smithy_client28.getArrayIfSingleItem)(output[_nLBAS][_i]), context);
      }
      if (output.gatewayLoadBalancerArnSet === "") {
        contents[_GLBA] = [];
      } else if (output[_gLBAS] != null && output[_gLBAS][_i] != null) {
        contents[_GLBA] = de_ValueStringList((0, import_smithy_client28.getArrayIfSingleItem)(output[_gLBAS][_i]), context);
      }
      if (output[_iAT] != null) {
        contents[_IAT] = (0, import_smithy_client28.expectString)(output[_iAT]);
      }
      if (output[_vECIp] != null) {
        contents[_VECIp] = (0, import_smithy_client28.expectString)(output[_vECIp]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_vER] != null) {
        contents[_VER] = (0, import_smithy_client28.expectString)(output[_vER]);
      }
      return contents;
    }, "de_VpcEndpointConnection");
    var de_VpcEndpointConnectionSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_VpcEndpointConnection(entry, context);
      });
    }, "de_VpcEndpointConnectionSet");
    var de_VpcEndpointSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_VpcEndpoint(entry, context);
      });
    }, "de_VpcEndpointSet");
    var de_VpcIpv6CidrBlockAssociation = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aIs] != null) {
        contents[_AIss] = (0, import_smithy_client28.expectString)(output[_aIs]);
      }
      if (output[_iCB] != null) {
        contents[_ICB] = (0, import_smithy_client28.expectString)(output[_iCB]);
      }
      if (output[_iCBS] != null) {
        contents[_ICBS] = de_VpcCidrBlockState(output[_iCBS], context);
      }
      if (output[_nBG] != null) {
        contents[_NBG] = (0, import_smithy_client28.expectString)(output[_nBG]);
      }
      if (output[_iPpvo] != null) {
        contents[_IPpv] = (0, import_smithy_client28.expectString)(output[_iPpvo]);
      }
      if (output[_iAA] != null) {
        contents[_IAA] = (0, import_smithy_client28.expectString)(output[_iAA]);
      }
      if (output[_iSpo] != null) {
        contents[_ISpo] = (0, import_smithy_client28.expectString)(output[_iSpo]);
      }
      return contents;
    }, "de_VpcIpv6CidrBlockAssociation");
    var de_VpcIpv6CidrBlockAssociationSet = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_VpcIpv6CidrBlockAssociation(entry, context);
      });
    }, "de_VpcIpv6CidrBlockAssociationSet");
    var de_VpcList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Vpc(entry, context);
      });
    }, "de_VpcList");
    var de_VpcPeeringConnection = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aVI] != null) {
        contents[_AVI] = de_VpcPeeringConnectionVpcInfo(output[_aVI], context);
      }
      if (output[_eT] != null) {
        contents[_ETx] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_eT]));
      }
      if (output[_rVIe] != null) {
        contents[_RVIe] = de_VpcPeeringConnectionVpcInfo(output[_rVIe], context);
      }
      if (output[_sta] != null) {
        contents[_Statu] = de_VpcPeeringConnectionStateReason(output[_sta], context);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_vPCI] != null) {
        contents[_VPCI] = (0, import_smithy_client28.expectString)(output[_vPCI]);
      }
      return contents;
    }, "de_VpcPeeringConnection");
    var de_VpcPeeringConnectionList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_VpcPeeringConnection(entry, context);
      });
    }, "de_VpcPeeringConnectionList");
    var de_VpcPeeringConnectionOptionsDescription = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aDRFRV] != null) {
        contents[_ADRFRV] = (0, import_smithy_client28.parseBoolean)(output[_aDRFRV]);
      }
      if (output[_aEFLCLTRV] != null) {
        contents[_AEFLCLTRV] = (0, import_smithy_client28.parseBoolean)(output[_aEFLCLTRV]);
      }
      if (output[_aEFLVTRCL] != null) {
        contents[_AEFLVTRCL] = (0, import_smithy_client28.parseBoolean)(output[_aEFLVTRCL]);
      }
      return contents;
    }, "de_VpcPeeringConnectionOptionsDescription");
    var de_VpcPeeringConnectionStateReason = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_co] != null) {
        contents[_Cod] = (0, import_smithy_client28.expectString)(output[_co]);
      }
      if (output[_me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_me]);
      }
      return contents;
    }, "de_VpcPeeringConnectionStateReason");
    var de_VpcPeeringConnectionVpcInfo = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cB] != null) {
        contents[_CB] = (0, import_smithy_client28.expectString)(output[_cB]);
      }
      if (output.ipv6CidrBlockSet === "") {
        contents[_ICBSp] = [];
      } else if (output[_iCBSp] != null && output[_iCBSp][_i] != null) {
        contents[_ICBSp] = de_Ipv6CidrBlockSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_iCBSp][_i]), context);
      }
      if (output.cidrBlockSet === "") {
        contents[_CBSid] = [];
      } else if (output[_cBSid] != null && output[_cBSid][_i] != null) {
        contents[_CBSid] = de_CidrBlockSet((0, import_smithy_client28.getArrayIfSingleItem)(output[_cBSid][_i]), context);
      }
      if (output[_oI] != null) {
        contents[_OIwn] = (0, import_smithy_client28.expectString)(output[_oI]);
      }
      if (output[_pOe] != null) {
        contents[_POe] = de_VpcPeeringConnectionOptionsDescription(output[_pOe], context);
      }
      if (output[_vI] != null) {
        contents[_VI] = (0, import_smithy_client28.expectString)(output[_vI]);
      }
      if (output[_re] != null) {
        contents[_Regi] = (0, import_smithy_client28.expectString)(output[_re]);
      }
      return contents;
    }, "de_VpcPeeringConnectionVpcInfo");
    var de_VpnConnection = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ca] != null) {
        contents[_Cat] = (0, import_smithy_client28.expectString)(output[_ca]);
      }
      if (output[_tGI] != null) {
        contents[_TGI] = (0, import_smithy_client28.expectString)(output[_tGI]);
      }
      if (output[_cNA] != null) {
        contents[_CNAo] = (0, import_smithy_client28.expectString)(output[_cNA]);
      }
      if (output[_cNAA] != null) {
        contents[_CNAA] = (0, import_smithy_client28.expectString)(output[_cNAA]);
      }
      if (output[_gAS] != null) {
        contents[_GAS] = (0, import_smithy_client28.expectString)(output[_gAS]);
      }
      if (output[_opt] != null) {
        contents[_Op] = de_VpnConnectionOptions(output[_opt], context);
      }
      if (output.routes === "") {
        contents[_Rout] = [];
      } else if (output[_rou] != null && output[_rou][_i] != null) {
        contents[_Rout] = de_VpnStaticRouteList((0, import_smithy_client28.getArrayIfSingleItem)(output[_rou][_i]), context);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output.vgwTelemetry === "") {
        contents[_VTg] = [];
      } else if (output[_vTg] != null && output[_vTg][_i] != null) {
        contents[_VTg] = de_VgwTelemetryList((0, import_smithy_client28.getArrayIfSingleItem)(output[_vTg][_i]), context);
      }
      if (output[_pSKA] != null) {
        contents[_PSKA] = (0, import_smithy_client28.expectString)(output[_pSKA]);
      }
      if (output[_vCI] != null) {
        contents[_VCI] = (0, import_smithy_client28.expectString)(output[_vCI]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_cGC] != null) {
        contents[_CGC] = (0, import_smithy_client28.expectString)(output[_cGC]);
      }
      if (output[_ty] != null) {
        contents[_T2] = (0, import_smithy_client28.expectString)(output[_ty]);
      }
      if (output[_cGIu] != null) {
        contents[_CGIu] = (0, import_smithy_client28.expectString)(output[_cGIu]);
      }
      if (output[_vGI] != null) {
        contents[_VGI] = (0, import_smithy_client28.expectString)(output[_vGI]);
      }
      return contents;
    }, "de_VpnConnection");
    var de_VpnConnectionDeviceType = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_vCDTI] != null) {
        contents[_VCDTI] = (0, import_smithy_client28.expectString)(output[_vCDTI]);
      }
      if (output[_ven] != null) {
        contents[_Ven] = (0, import_smithy_client28.expectString)(output[_ven]);
      }
      if (output[_pl] != null) {
        contents[_Pla] = (0, import_smithy_client28.expectString)(output[_pl]);
      }
      if (output[_sof] != null) {
        contents[_Sof] = (0, import_smithy_client28.expectString)(output[_sof]);
      }
      return contents;
    }, "de_VpnConnectionDeviceType");
    var de_VpnConnectionDeviceTypeList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_VpnConnectionDeviceType(entry, context);
      });
    }, "de_VpnConnectionDeviceTypeList");
    var de_VpnConnectionList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_VpnConnection(entry, context);
      });
    }, "de_VpnConnectionList");
    var de_VpnConnectionOptions = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_eAn] != null) {
        contents[_EA] = (0, import_smithy_client28.parseBoolean)(output[_eAn]);
      }
      if (output[_sRO] != null) {
        contents[_SRO] = (0, import_smithy_client28.parseBoolean)(output[_sRO]);
      }
      if (output[_lINC] != null) {
        contents[_LINC] = (0, import_smithy_client28.expectString)(output[_lINC]);
      }
      if (output[_rINC] != null) {
        contents[_RINC] = (0, import_smithy_client28.expectString)(output[_rINC]);
      }
      if (output[_lINCo] != null) {
        contents[_LINCo] = (0, import_smithy_client28.expectString)(output[_lINCo]);
      }
      if (output[_rINCe] != null) {
        contents[_RINCe] = (0, import_smithy_client28.expectString)(output[_rINCe]);
      }
      if (output[_oIAT] != null) {
        contents[_OIAT] = (0, import_smithy_client28.expectString)(output[_oIAT]);
      }
      if (output[_tTGAI] != null) {
        contents[_TTGAI] = (0, import_smithy_client28.expectString)(output[_tTGAI]);
      }
      if (output[_tIIV] != null) {
        contents[_TIIV] = (0, import_smithy_client28.expectString)(output[_tIIV]);
      }
      if (output.tunnelOptionSet === "") {
        contents[_TO] = [];
      } else if (output[_tOS] != null && output[_tOS][_i] != null) {
        contents[_TO] = de_TunnelOptionsList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tOS][_i]), context);
      }
      return contents;
    }, "de_VpnConnectionOptions");
    var de_VpnGateway = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_aSA] != null) {
        contents[_ASA] = (0, import_smithy_client28.strictParseLong)(output[_aSA]);
      }
      if (output.tagSet === "") {
        contents[_Ta] = [];
      } else if (output[_tS] != null && output[_tS][_i] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_tS][_i]), context);
      }
      if (output[_vGI] != null) {
        contents[_VGI] = (0, import_smithy_client28.expectString)(output[_vGI]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      if (output[_ty] != null) {
        contents[_T2] = (0, import_smithy_client28.expectString)(output[_ty]);
      }
      if (output[_aZ] != null) {
        contents[_AZ] = (0, import_smithy_client28.expectString)(output[_aZ]);
      }
      if (output.attachments === "") {
        contents[_VAp] = [];
      } else if (output[_att] != null && output[_att][_i] != null) {
        contents[_VAp] = de_VpcAttachmentList((0, import_smithy_client28.getArrayIfSingleItem)(output[_att][_i]), context);
      }
      return contents;
    }, "de_VpnGateway");
    var de_VpnGatewayList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_VpnGateway(entry, context);
      });
    }, "de_VpnGatewayList");
    var de_VpnStaticRoute = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_dCB] != null) {
        contents[_DCBe] = (0, import_smithy_client28.expectString)(output[_dCB]);
      }
      if (output[_s] != null) {
        contents[_S] = (0, import_smithy_client28.expectString)(output[_s]);
      }
      if (output[_st] != null) {
        contents[_Stat] = (0, import_smithy_client28.expectString)(output[_st]);
      }
      return contents;
    }, "de_VpnStaticRoute");
    var de_VpnStaticRouteList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_VpnStaticRoute(entry, context);
      });
    }, "de_VpnStaticRouteList");
    var de_VpnTunnelLogOptions = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_cWLO] != null) {
        contents[_CWLO] = de_CloudWatchLogOptions(output[_cWLO], context);
      }
      return contents;
    }, "de_VpnTunnelLogOptions");
    var de_WithdrawByoipCidrResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_bC] != null) {
        contents[_BC] = de_ByoipCidr(output[_bC], context);
      }
      return contents;
    }, "de_WithdrawByoipCidrResult");
    var deserializeMetadata3 = /* @__PURE__ */ __name2((output) => ({
      httpStatusCode: output.statusCode,
      requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
      extendedRequestId: output.headers["x-amz-id-2"],
      cfId: output.headers["x-amz-cf-id"]
    }), "deserializeMetadata");
    var throwDefaultError3 = (0, import_smithy_client28.withBaseException)(EC2ServiceException);
    var buildHttpRpcRequest2 = /* @__PURE__ */ __name2(async (context, headers, path38, resolvedHostname, body) => {
      const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
      const contents = {
        protocol,
        hostname,
        port,
        method: "POST",
        path: basePath.endsWith("/") ? basePath.slice(0, -1) + path38 : basePath + path38,
        headers
      };
      if (resolvedHostname !== void 0) {
        contents.hostname = resolvedHostname;
      }
      if (body !== void 0) {
        contents.body = body;
      }
      return new import_protocol_http16.HttpRequest(contents);
    }, "buildHttpRpcRequest");
    var SHARED_HEADERS2 = {
      "content-type": "application/x-www-form-urlencoded"
    };
    var _3 = "2016-11-15";
    var _A2 = "Action";
    var _AA = "AllocateAddress";
    var _AAC = "AsnAuthorizationContext";
    var _AACv = "AvailableAddressCount";
    var _AAG = "AuthorizeAllGroups";
    var _AAI = "AwsAccountId";
    var _AAId = "AddressAllocationId";
    var _AAP = "AddAllowedPrincipals";
    var _AART = "AddAllocationResourceTags";
    var _AASA = "AutoAcceptSharedAssociations";
    var _AASAu = "AutoAcceptSharedAttachments";
    var _AAT = "AcceptAddressTransfer";
    var _AAZ = "AllAvailabilityZones";
    var _AAc = "AccessAll";
    var _AAcc = "AccountAttributes";
    var _AAd = "AdditionalAccounts";
    var _AAs = "AssociateAddress";
    var _AAsn = "AsnAssociation";
    var _AAsns = "AsnAssociations";
    var _ABC = "AdvertiseByoipCidr";
    var _ABHP = "ActualBlockHourlyPrice";
    var _AC = "AllowedCidrs";
    var _ACIA = "AssociateCarrierIpAddress";
    var _ACLV = "AttachClassicLinkVpc";
    var _ACRBO = "AcceptCapacityReservationBillingOwnership";
    var _ACRBOs = "AssociateCapacityReservationBillingOwner";
    var _ACT = "ArchivalCompleteTime";
    var _ACVI = "AuthorizeClientVpnIngress";
    var _ACVTN = "AssociateClientVpnTargetNetwork";
    var _ACc = "AcceleratorCount";
    var _ACd = "AddressCount";
    var _ACv = "AvailableCapacity";
    var _AD = "ActiveDirectory";
    var _ADNL = "AllocationDefaultNetmaskLength";
    var _ADO = "AssociateDhcpOptions";
    var _ADRFRV = "AllowDnsResolutionFromRemoteVpc";
    var _ADRTI = "AssociationDefaultRouteTableId";
    var _ADT = "AdditionalDetailType";
    var _ADd = "AdditionalDetails";
    var _ADn = "AnnouncementDirection";
    var _ADp = "ApplicationDomain";
    var _AE = "AuthorizationEndpoint";
    var _AEC = "AnalyzedEniCount";
    var _AECIR = "AssociateEnclaveCertificateIamRole";
    var _AEFLCLTRV = "AllowEgressFromLocalClassicLinkToRemoteVpc";
    var _AEFLVTRCL = "AllowEgressFromLocalVpcToRemoteClassicLink";
    var _AEIO = "AutoEnableIO";
    var _AES = "AttachedEbsStatus";
    var _AET = "AnalysisEndTime";
    var _AEd = "AddEntries";
    var _AF = "AddressFamily";
    var _AFn = "AnalysisFindings";
    var _AGI = "AccessGroupId";
    var _AGLBA = "AddGatewayLoadBalancerArns";
    var _AH = "AllocateHosts";
    var _AI = "AssetIds";
    var _AIA = "AssignIpv6Addresses";
    var _AIAC = "AvailableIpAddressCount";
    var _AIAOC = "AssignIpv6AddressOnCreation";
    var _AIAs = "AssignedIpv6Addresses";
    var _AIB = "AssociateIpamByoasn";
    var _AIC = "AvailableInstanceCapacity";
    var _AICv = "AvailableInstanceCount";
    var _AIEW = "AssociateInstanceEventWindow";
    var _AIG = "AttachInternetGateway";
    var _AIIP = "AssociateIamInstanceProfile";
    var _AIP = "AssignedIpv6Prefixes";
    var _AIPC = "AllocateIpamPoolCidr";
    var _AIPs = "AssignedIpv4Prefixes";
    var _AIRD = "AssociateIpamResourceDiscovery";
    var _AISS = "AllowedImagesSettingsState";
    var _AIT = "AllowedInstanceTypes";
    var _AIc = "AccountIds";
    var _AIcc = "AccountId";
    var _AIct = "ActiveInstances";
    var _AId = "AdditionalInfo";
    var _AIl = "AllocationId";
    var _AIll = "AllocationIds";
    var _AIm = "AmiId";
    var _AIp = "AppleInternal";
    var _AIs = "AssociationIds";
    var _AIss = "AssociationId";
    var _AIsse = "AssetId";
    var _AIt = "AttachmentId";
    var _AIth = "AthenaIntegrations";
    var _AIu = "AutoImport";
    var _AL = "AccessLogs";
    var _ALI = "AmiLaunchIndex";
    var _ALc = "AccountLevel";
    var _AM = "AcceleratorManufacturers";
    var _AMIT = "AllowsMultipleInstanceTypes";
    var _AMNL = "AllocationMinNetmaskLength";
    var _AMNLl = "AllocationMaxNetmaskLength";
    var _AMS = "ApplianceModeSupport";
    var _AN = "AttributeNames";
    var _ANGA = "AssociateNatGatewayAddress";
    var _ANI = "AttachNetworkInterface";
    var _ANLBA = "AddNetworkLoadBalancerArns";
    var _ANS = "AddNetworkServices";
    var _ANc = "AcceleratorNames";
    var _ANt = "AttributeName";
    var _AO = "AuthenticationOptions";
    var _AOI = "AddressOwnerId";
    var _AOR = "AddOperatingRegions";
    var _AOUE = "AddOrganizationalUnitExclusions";
    var _AP = "AutoPlacement";
    var _APCO = "AccepterPeeringConnectionOptions";
    var _APH = "AlternatePathHints";
    var _APIA = "AssignPrivateIpAddresses";
    var _APIAs = "AssociatePublicIpAddress";
    var _APIAss = "AssignedPrivateIpAddresses";
    var _APICB = "AmazonProvidedIpv6CidrBlock";
    var _APM = "ApplyPendingMaintenance";
    var _APNGA = "AssignPrivateNatGatewayAddress";
    var _APd = "AddedPrincipals";
    var _APl = "AllowedPrincipals";
    var _APs = "AsPaths";
    var _AR2 = "AllowReassignment";
    var _ARA = "AssociatedRoleArn";
    var _ARAd = "AdditionalRoutesAvailable";
    var _ARAs = "AssociatedResourceAccessibility";
    var _ARAss = "AssociatedResourceArn";
    var _ARC = "AcceptedRouteCount";
    var _ARIEQ = "AcceptReservedInstancesExchangeQuote";
    var _ARP = "AreRoutesPersisted";
    var _ARS = "AssociateRouteServer";
    var _ARSu = "AutoRecoverySupported";
    var _ART = "AssociateRouteTable";
    var _ARTI = "AddRouteTableIds";
    var _ARTl = "AllocationResourceTags";
    var _ARc = "AcceptanceRequired";
    var _ARcl = "AclRule";
    var _ARd = "AddressRegion";
    var _ARl = "AllowReassociation";
    var _ARll = "AllRegions";
    var _ARs = "AssociatedResource";
    var _ARss = "AssociatedRoles";
    var _ARu = "AutoRecovery";
    var _ARut = "AuthorizationRules";
    var _ARw = "AwsRegion";
    var _AS = "AllocationStrategy";
    var _ASA = "AmazonSideAsn";
    var _ASCB = "AssociateSubnetCidrBlock";
    var _ASGE = "AuthorizeSecurityGroupEgress";
    var _ASGI = "AuthorizeSecurityGroupIngress";
    var _ASGId = "AddSecurityGroupIds";
    var _ASGTCVTN = "ApplySecurityGroupsToClientVpnTargetNetwork";
    var _ASGV = "AssociateSecurityGroupVpc";
    var _ASI = "AssociatedSubnetIds";
    var _ASIAT = "AddSupportedIpAddressTypes";
    var _ASId = "AddSubnetIds";
    var _ASR = "AddSupportedRegions";
    var _ASS = "AmdSevSnp";
    var _AST = "AnalysisStartTime";
    var _ASTB = "AnalysisStartTimeBegin";
    var _ASTE = "AnalysisStartTimeEnd";
    var _ASc = "ActivityStatus";
    var _ASn = "AnalysisStatus";
    var _ASs = "AssociationState";
    var _ASss = "AssociationStatus";
    var _ASsso = "AssociatedSubnets";
    var _ASt = "AttributeSummaries";
    var _AStt = "AttachmentStatuses";
    var _ASw = "AwsService";
    var _AT = "AssociationTarget";
    var _ATGAI = "AccepterTransitGatewayAttachmentId";
    var _ATGCB = "AddTransitGatewayCidrBlocks";
    var _ATGMD = "AssociateTransitGatewayMulticastDomain";
    var _ATGMDA = "AcceptTransitGatewayMulticastDomainAssociations";
    var _ATGPA = "AcceptTransitGatewayPeeringAttachment";
    var _ATGPT = "AssociateTransitGatewayPolicyTable";
    var _ATGRT = "AssociateTransitGatewayRouteTable";
    var _ATGVA = "AcceptTransitGatewayVpcAttachment";
    var _ATI = "AssociateTrunkInterface";
    var _ATIc = "AccepterTgwInfo";
    var _ATMMB = "AcceleratorTotalMemoryMiB";
    var _ATN = "AssociatedTargetNetworks";
    var _ATS = "AddressTransferStatus";
    var _ATc = "AcceleratorTypes";
    var _ATd = "AddressingType";
    var _ATdd = "AddressTransfer";
    var _ATddr = "AddressTransfers";
    var _ATddre = "AddressType";
    var _ATl = "AllocationType";
    var _ATll = "AllocationTime";
    var _ATr = "ArchitectureTypes";
    var _ATt = "AttachmentType";
    var _ATtt = "AttachTime";
    var _ATtta = "AttachedTo";
    var _AV = "AttachVolume";
    var _AVATP = "AttachVerifiedAccessTrustProvider";
    var _AVC = "AvailableVCpus";
    var _AVCB = "AssociateVpcCidrBlock";
    var _AVEC = "AcceptVpcEndpointConnections";
    var _AVG = "AttachVpnGateway";
    var _AVI = "AccepterVpcInfo";
    var _AVPC = "AcceptVpcPeeringConnection";
    var _AVTS = "ActiveVpnTunnelStatus";
    var _AVt = "AttributeValues";
    var _AVtt = "AttributeValue";
    var _AWSAKI = "AWSAccessKeyId";
    var _AZ = "AvailabilityZone";
    var _AZG = "AvailabilityZoneGroup";
    var _AZI = "AvailabilityZoneId";
    var _AZIv = "AvailabilityZoneIds";
    var _AZv = "AvailabilityZones";
    var _Ac = "Accept";
    var _Acc = "Accelerators";
    var _Acl = "Acl";
    var _Act = "Active";
    var _Acti = "Actions";
    var _Ad = "Address";
    var _Add = "Add";
    var _Addr = "Addresses";
    var _Af = "Affinity";
    var _Am = "Amount";
    var _Ar2 = "Arn";
    var _Arc = "Architecture";
    var _As = "Asn";
    var _Ass = "Associations";
    var _Asso = "Association";
    var _At = "Attribute";
    var _Att = "Attachment";
    var _Atta = "Attachments";
    var _B = "Bucket";
    var _BA = "BgpAsn";
    var _BAE = "BgpAsnExtended";
    var _BBIG = "BaselineBandwidthInGbps";
    var _BBIM = "BaselineBandwidthInMbps";
    var _BC = "ByoipCidr";
    var _BCg = "BgpConfigurations";
    var _BCy = "ByoipCidrs";
    var _BCyt = "BytesConverted";
    var _BDM = "BlockDeviceMappings";
    var _BDMl = "BlockDurationMinutes";
    var _BEBM = "BaselineEbsBandwidthMbps";
    var _BEDN = "BaseEndpointDnsNames";
    var _BI = "BundleInstance";
    var _BII = "BranchInterfaceId";
    var _BIa = "BaselineIops";
    var _BIu = "BundleId";
    var _BIun = "BundleIds";
    var _BM = "BootMode";
    var _BMa = "BareMetal";
    var _BN = "BucketName";
    var _BO = "BgpOptions";
    var _BOu = "BucketOwner";
    var _BP = "BurstablePerformance";
    var _BPAS = "BlockPublicAccessStates";
    var _BPF = "BaselinePerformanceFactors";
    var _BPS = "BurstablePerformanceSupported";
    var _BPi = "BillingProducts";
    var _BS = "BaseSystem";
    var _BSf = "BfdStatus";
    var _BSg = "BgpStatus";
    var _BT = "BannerText";
    var _BTE = "BundleTaskError";
    var _BTIMB = "BaselineThroughputInMBps";
    var _BTu = "BundleTask";
    var _BTun = "BundleTasks";
    var _BW = "BandwidthWeighting";
    var _BWa = "BandwidthWeightings";
    var _Bl = "Blackhole";
    var _By = "Bytes";
    var _Byo = "Byoasn";
    var _Byoa = "Byoasns";
    var _C2 = "Cidr";
    var _CA2 = "CertificateArn";
    var _CAC = "CidrAuthorizationContext";
    var _CADNL = "ClearAllocationDefaultNetmaskLength";
    var _CAU = "CoipAddressUsages";
    var _CAa = "CapacityAllocations";
    var _CAo = "ComponentArn";
    var _CAom = "ComponentAccount";
    var _CAr = "CreatedAt";
    var _CB = "CidrBlock";
    var _CBA = "CidrBlockAssociation";
    var _CBAS = "CidrBlockAssociationSet";
    var _CBDH = "CapacityBlockDurationHours";
    var _CBDM = "CapacityBlockDurationMinutes";
    var _CBE = "CapacityBlockExtensions";
    var _CBEDH = "CapacityBlockExtensionDurationHours";
    var _CBEED = "CapacityBlockExtensionEndDate";
    var _CBEO = "CapacityBlockExtensionOfferings";
    var _CBEOI = "CapacityBlockExtensionOfferingId";
    var _CBEPD = "CapacityBlockExtensionPurchaseDate";
    var _CBES = "CapacityBlockExtensionStatus";
    var _CBESD = "CapacityBlockExtensionStartDate";
    var _CBI = "CapacityBlockIds";
    var _CBIa = "CapacityBlockId";
    var _CBO = "CapacityBlockOfferings";
    var _CBOI = "CapacityBlockOfferingId";
    var _CBS = "CapacityBlockStatuses";
    var _CBSi = "CidrBlockState";
    var _CBSid = "CidrBlockSet";
    var _CBT = "CancelBundleTask";
    var _CBa = "CapacityBlocks";
    var _CBr = "CreatedBy";
    var _CC = "CoreCount";
    var _CCB = "ClientCidrBlock";
    var _CCC = "CreateCoipCidr";
    var _CCG = "CreateCarrierGateway";
    var _CCGr = "CreateCustomerGateway";
    var _CCO = "ClientConnectOptions";
    var _CCP = "CreateCoipPool";
    var _CCR = "CancelCapacityReservation";
    var _CCRBS = "CreateCapacityReservationBySplitting";
    var _CCRF = "CancelCapacityReservationFleets";
    var _CCRFE = "CancelCapacityReservationFleetError";
    var _CCRFr = "CreateCapacityReservationFleet";
    var _CCRr = "CreateCapacityReservation";
    var _CCT = "CancelConversionTask";
    var _CCVE = "CreateClientVpnEndpoint";
    var _CCVR = "CreateClientVpnRoute";
    var _CCl = "ClientConfiguration";
    var _CCo = "CoipCidr";
    var _CCp = "CpuCredits";
    var _CCu = "CurrencyCode";
    var _CD = "CommitmentDuration";
    var _CDH = "CapacityDurationHours";
    var _CDM = "CompletionDurationMinutes";
    var _CDMVOT = "CreateDelegateMacVolumeOwnershipTask";
    var _CDO = "CreateDhcpOptions";
    var _CDPR = "CancelDeclarativePoliciesReport";
    var _CDS = "CreateDefaultSubnet";
    var _CDSDA = "ConfigDeliveryS3DestinationArn";
    var _CDSu = "CustomDnsServers";
    var _CDV = "CreateDefaultVpc";
    var _CDl = "ClientData";
    var _CDr = "CreateDate";
    var _CDre = "CreationDate";
    var _CDrea = "CreatedDate";
    var _CE = "CronExpression";
    var _CECSD = "CidrEndpointsCustomSubDomain";
    var _CED = "CommitmentEndDate";
    var _CEOIG = "CreateEgressOnlyInternetGateway";
    var _CET = "CancelExportTask";
    var _CETo = "ConnectionEstablishedTime";
    var _CETon = "ConnectionEndTime";
    var _CEo = "ConnectionEvents";
    var _CF = "CreateFleet";
    var _CFI = "CopyFpgaImage";
    var _CFIr = "CreateFpgaImage";
    var _CFL = "CreateFlowLogs";
    var _CFS = "CurrentFleetState";
    var _CFo = "ContainerFormat";
    var _CG = "CarrierGateway";
    var _CGC = "CustomerGatewayConfiguration";
    var _CGI = "CarrierGatewayId";
    var _CGIa = "CarrierGatewayIds";
    var _CGIu = "CustomerGatewayId";
    var _CGIus = "CustomerGatewayIds";
    var _CGa = "CarrierGateways";
    var _CGu = "CustomerGateway";
    var _CGur = "CurrentGeneration";
    var _CGus = "CustomerGateways";
    var _CI = "CopyImage";
    var _CIA = "ClientIpv6Address";
    var _CIBM = "CurrentInstanceBootMode";
    var _CIC = "CommittedInstanceCount";
    var _CICE = "CreateInstanceConnectEndpoint";
    var _CIERVT = "CreateIpamExternalResourceVerificationToken";
    var _CIET = "CreateInstanceExportTask";
    var _CIEW = "CreateInstanceEventWindow";
    var _CIG = "CreateInternetGateway";
    var _CILP = "CancelImageLaunchPermission";
    var _CIP = "CreateIpamPool";
    var _CIRD = "CreateIpamResourceDiscovery";
    var _CIS = "CreateIpamScope";
    var _CISI = "CurrentIpamScopeId";
    var _CIT = "CancelImportTask";
    var _CITo = "CopyImageTags";
    var _CIUR = "CreateImageUsageReport";
    var _CIa = "CarrierIp";
    var _CIi = "CidrIp";
    var _CIid = "CidrIpv6";
    var _CIidr = "CidrIpv4";
    var _CIl = "ClientId";
    var _CIli = "ClientIp";
    var _CIo = "ConnectionId";
    var _CIom = "ComponentId";
    var _CIomm = "CommitmentInfo";
    var _CIop = "CoIp";
    var _CIor = "CoreInfo";
    var _CIr = "CreateImage";
    var _CIre = "CreateIpam";
    var _CKP = "CreateKeyPair";
    var _CLB = "ClassicLoadBalancers";
    var _CLBC = "ClassicLoadBalancersConfig";
    var _CLBL = "ClassicLoadBalancerListener";
    var _CLBO = "ClientLoginBannerOptions";
    var _CLDS = "ClassicLinkDnsSupported";
    var _CLE = "ClassicLinkEnabled";
    var _CLG = "CloudwatchLogGroup";
    var _CLGR = "CreateLocalGatewayRoute";
    var _CLGRT = "CreateLocalGatewayRouteTable";
    var _CLGRTVA = "CreateLocalGatewayRouteTableVpcAssociation";
    var _CLGRTVIGA = "CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation";
    var _CLGVI = "CreateLocalGatewayVirtualInterface";
    var _CLGVIG = "CreateLocalGatewayVirtualInterfaceGroup";
    var _CLO = "ConnectionLogOptions";
    var _CLS = "CloudwatchLogStream";
    var _CLT = "CreateLaunchTemplate";
    var _CLTV = "CreateLaunchTemplateVersion";
    var _CM = "CpuManufacturers";
    var _CMKE = "CustomerManagedKeyEnabled";
    var _CMPL = "CreateManagedPrefixList";
    var _CMSIPMT = "CreateMacSystemIntegrityProtectionModificationTask";
    var _CN = "CommonName";
    var _CNA = "CreateNetworkAcl";
    var _CNAA = "CoreNetworkAttachmentArn";
    var _CNAE = "CreateNetworkAclEntry";
    var _CNAo = "CoreNetworkArn";
    var _CNAon = "ConnectionNotificationArn";
    var _CNG = "CreateNatGateway";
    var _CNI = "CreateNetworkInterface";
    var _CNIAS = "CreateNetworkInsightsAccessScope";
    var _CNIP = "CreateNetworkInsightsPath";
    var _CNIPr = "CreateNetworkInterfacePermission";
    var _CNIo = "ConnectionNotificationIds";
    var _CNIon = "ConnectionNotificationId";
    var _CNIor = "CoreNetworkId";
    var _CNS = "ConnectionNotificationState";
    var _CNSo = "ConnectionNotificationSet";
    var _CNT = "ConnectionNotificationType";
    var _CNo = "ConnectionNotification";
    var _CO = "CidrOptions";
    var _COI = "CustomerOwnedIp";
    var _COIP = "CustomerOwnedIpv4Pool";
    var _COP = "CoolOffPeriod";
    var _COPEO = "CoolOffPeriodExpiresOn";
    var _COp = "CpuOptions";
    var _CP = "CoipPool";
    var _CPC = "ConnectPeerConfiguration";
    var _CPG = "CreatePlacementGroup";
    var _CPI = "ConfirmProductInstance";
    var _CPIP = "CreatePublicIpv4Pool";
    var _CPIo = "CoipPoolId";
    var _CPo = "CoipPools";
    var _CR = "CreateRoute";
    var _CRA = "CapacityReservationArn";
    var _CRBR = "CapacityReservationBillingRequests";
    var _CRCC = "ClientRootCertificateChain";
    var _CRCCA = "ClientRootCertificateChainArn";
    var _CREO = "ClientRouteEnforcementOptions";
    var _CRF = "CapacityReservationFleets";
    var _CRFA = "CapacityReservationFleetArn";
    var _CRFI = "CapacityReservationFleetIds";
    var _CRFIa = "CapacityReservationFleetId";
    var _CRG = "CapacityReservationGroups";
    var _CRI = "CapacityReservationId";
    var _CRIL = "CancelReservedInstancesListing";
    var _CRILr = "CreateReservedInstancesListing";
    var _CRIT = "CreateRestoreImageTask";
    var _CRIa = "CapacityReservationIds";
    var _CRIap = "CapacityReservationInfo";
    var _CRL = "CertificateRevocationList";
    var _CRO = "CapacityReservationOptions";
    var _CRP = "CapacityReservationPreference";
    var _CRRGA = "CapacityReservationResourceGroupArn";
    var _CRRVT = "CreateReplaceRootVolumeTask";
    var _CRS = "CreateRouteServer";
    var _CRSE = "CreateRouteServerEndpoint";
    var _CRSP = "CreateRouteServerPeer";
    var _CRSa = "CapacityReservationSpecification";
    var _CRSap = "CapacityReservationStatuses";
    var _CRT = "CreateRouteTable";
    var _CRTa = "CapacityReservationTarget";
    var _CRa = "CancelReason";
    var _CRap = "CapacityRebalance";
    var _CRapa = "CapacityReservation";
    var _CRapac = "CapacityReservations";
    var _CRo = "ComponentRegion";
    var _CS = "CopySnapshot";
    var _CSBN = "CertificateS3BucketName";
    var _CSCR = "CreateSubnetCidrReservation";
    var _CSDS = "CreateSpotDatafeedSubscription";
    var _CSFR = "CancelSpotFleetRequests";
    var _CSFRS = "CurrentSpotFleetRequestState";
    var _CSG = "CreateSecurityGroup";
    var _CSIR = "CancelSpotInstanceRequests";
    var _CSIRa = "CancelledSpotInstanceRequests";
    var _CSIT = "CreateStoreImageTask";
    var _CSOK = "CertificateS3ObjectKey";
    var _CSl = "ClientSecret";
    var _CSo = "ComplianceStatus";
    var _CSon = "ConfigurationState";
    var _CSonn = "ConnectionStatuses";
    var _CSr = "CreateSnapshot";
    var _CSre = "CreateSnapshots";
    var _CSrea = "CreateSubnet";
    var _CSred = "CreditSpecification";
    var _CSu = "CurrentState";
    var _CSur = "CurrentStatus";
    var _CT = "CreateTags";
    var _CTC = "ConnectionTrackingConfiguration";
    var _CTFS = "CopyTagsFromSource";
    var _CTG = "CreateTransitGateway";
    var _CTGC = "CreateTransitGatewayConnect";
    var _CTGCP = "CreateTransitGatewayConnectPeer";
    var _CTGMD = "CreateTransitGatewayMulticastDomain";
    var _CTGPA = "CreateTransitGatewayPeeringAttachment";
    var _CTGPLR = "CreateTransitGatewayPrefixListReference";
    var _CTGPT = "CreateTransitGatewayPolicyTable";
    var _CTGR = "CreateTransitGatewayRoute";
    var _CTGRT = "CreateTransitGatewayRouteTable";
    var _CTGRTA = "CreateTransitGatewayRouteTableAnnouncement";
    var _CTGVA = "CreateTransitGatewayVpcAttachment";
    var _CTI = "ConversionTaskId";
    var _CTIo = "ConversionTaskIds";
    var _CTMF = "CreateTrafficMirrorFilter";
    var _CTMFR = "CreateTrafficMirrorFilterRule";
    var _CTMS = "CreateTrafficMirrorSession";
    var _CTMT = "CreateTrafficMirrorTarget";
    var _CTS = "ConnectionTrackingSpecification";
    var _CTl = "ClientToken";
    var _CTo = "ConnectivityType";
    var _CTom = "CompleteTime";
    var _CTomp = "CompletionTime";
    var _CTon = "ConversionTasks";
    var _CTonv = "ConversionTask";
    var _CTr = "CreateTime";
    var _CTre = "CreationTime";
    var _CTrea = "CreationTimestamp";
    var _CV = "CreateVolume";
    var _CVAE = "CreateVerifiedAccessEndpoint";
    var _CVAG = "CreateVerifiedAccessGroup";
    var _CVAI = "CreateVerifiedAccessInstance";
    var _CVATP = "CreateVerifiedAccessTrustProvider";
    var _CVBPAE = "CreateVpcBlockPublicAccessExclusion";
    var _CVC = "CreateVpnConnection";
    var _CVCR = "CreateVpnConnectionRoute";
    var _CVE = "CreateVpcEndpoint";
    var _CVECN = "CreateVpcEndpointConnectionNotification";
    var _CVEI = "ClientVpnEndpointId";
    var _CVEIl = "ClientVpnEndpointIds";
    var _CVESC = "CreateVpcEndpointServiceConfiguration";
    var _CVEl = "ClientVpnEndpoints";
    var _CVG = "CreateVpnGateway";
    var _CVP = "CreateVolumePermission";
    var _CVPC = "CreateVpcPeeringConnection";
    var _CVPr = "CreateVolumePermissions";
    var _CVTN = "ClientVpnTargetNetworks";
    var _CVr = "CreateVpc";
    var _CVu = "CurrentVersion";
    var _CWL = "CloudWatchLogs";
    var _CWLO = "CloudWatchLogOptions";
    var _Ca = "Cascade";
    var _Cat = "Category";
    var _Ch = "Checksum";
    var _Ci = "Cidrs";
    var _Co = "Comment";
    var _Cod = "Code";
    var _Com = "Component";
    var _Con = "Context";
    var _Conf = "Configured";
    var _Confi = "Config";
    var _Conn = "Connections";
    var _Cor = "Cores";
    var _Cou = "Count";
    var _Cp = "Cpu";
    var _D = "Destination";
    var _DA = "DescribeAddresses";
    var _DAA = "DescribeAccountAttributes";
    var _DAAI = "DelegatedAdminAccountId";
    var _DAAe = "DescribeAddressesAttribute";
    var _DAIF = "DescribeAggregateIdFormat";
    var _DAIS = "DisableAllowedImagesSettings";
    var _DAIT = "DenyAllIgwTraffic";
    var _DANPMS = "DescribeAwsNetworkPerformanceMetricSubscriptions";
    var _DANPMSi = "DisableAwsNetworkPerformanceMetricSubscription";
    var _DART = "DefaultAssociationRouteTable";
    var _DAS = "DeleteAssociatedSnapshots";
    var _DASi = "DisableApiStop";
    var _DAT = "DescribeAddressTransfers";
    var _DATi = "DisableAddressTransfer";
    var _DATis = "DisableApiTermination";
    var _DAZ = "DescribeAvailabilityZones";
    var _DAZI = "DestinationAvailabilityZoneId";
    var _DAZe = "DestinationAvailabilityZone";
    var _DAe = "DeprecateAt";
    var _DAep = "DeprovisionedAddresses";
    var _DAes = "DestinationAddresses";
    var _DAest = "DestinationAddress";
    var _DAesti = "DestinationArn";
    var _DAi = "DisassociateAddress";
    var _DBC = "DeprovisionByoipCidr";
    var _DBCe = "DescribeByoipCidrs";
    var _DBT = "DescribeBundleTasks";
    var _DC = "DisallowedCidrs";
    var _DCA = "DomainCertificateArn";
    var _DCAR = "DeliverCrossAccountRole";
    var _DCB = "DescribeCapacityBlocks";
    var _DCBEH = "DescribeCapacityBlockExtensionHistory";
    var _DCBEO = "DescribeCapacityBlockExtensionOfferings";
    var _DCBO = "DescribeCapacityBlockOfferings";
    var _DCBS = "DescribeCapacityBlockStatus";
    var _DCBe = "DestinationCidrBlock";
    var _DCC = "DeleteCoipCidr";
    var _DCG = "DeleteCarrierGateway";
    var _DCGe = "DeleteCustomerGateway";
    var _DCGes = "DescribeCarrierGateways";
    var _DCGesc = "DescribeCustomerGateways";
    var _DCLI = "DescribeClassicLinkInstances";
    var _DCLV = "DetachClassicLinkVpc";
    var _DCP = "DeleteCoipPool";
    var _DCPe = "DescribeCoipPools";
    var _DCR = "DescribeCapacityReservations";
    var _DCRBO = "DisassociateCapacityReservationBillingOwner";
    var _DCRBR = "DescribeCapacityReservationBillingRequests";
    var _DCRF = "DescribeCapacityReservationFleets";
    var _DCRI = "DestinationCapacityReservationId";
    var _DCRe = "DestinationCapacityReservation";
    var _DCT = "DescribeConversionTasks";
    var _DCVAR = "DescribeClientVpnAuthorizationRules";
    var _DCVC = "DescribeClientVpnConnections";
    var _DCVE = "DeleteClientVpnEndpoint";
    var _DCVEe = "DescribeClientVpnEndpoints";
    var _DCVR = "DeleteClientVpnRoute";
    var _DCVRe = "DescribeClientVpnRoutes";
    var _DCVTN = "DescribeClientVpnTargetNetworks";
    var _DCVTNi = "DisassociateClientVpnTargetNetwork";
    var _DCe = "DestinationCidr";
    var _DCef = "DefaultCores";
    var _DCh = "DhcpConfigurations";
    var _DCi = "DiskContainers";
    var _DCis = "DiskContainer";
    var _DDO = "DeleteDhcpOptions";
    var _DDOe = "DescribeDhcpOptions";
    var _DDPR = "DescribeDeclarativePoliciesReports";
    var _DE = "DnsEntries";
    var _DECIR = "DisassociateEnclaveCertificateIamRole";
    var _DEEBD = "DisableEbsEncryptionByDefault";
    var _DEG = "DescribeElasticGpus";
    var _DEIT = "DescribeExportImageTasks";
    var _DEKI = "DataEncryptionKeyId";
    var _DEOIG = "DeleteEgressOnlyInternetGateway";
    var _DEOIGe = "DescribeEgressOnlyInternetGateways";
    var _DEQC = "DefaultEnaQueueCount";
    var _DEQCPI = "DefaultEnaQueueCountPerInterface";
    var _DET = "DescribeExportTasks";
    var _DEn = "DnsEntry";
    var _DF = "DeleteFleets";
    var _DFA = "DefaultForAz";
    var _DFH = "DescribeFleetHistory";
    var _DFI = "DeleteFpgaImage";
    var _DFIA = "DescribeFpgaImageAttribute";
    var _DFIe = "DescribeFleetInstances";
    var _DFIes = "DescribeFpgaImages";
    var _DFL = "DeleteFlowLogs";
    var _DFLI = "DescribeFastLaunchImages";
    var _DFLe = "DescribeFlowLogs";
    var _DFLi = "DisableFastLaunch";
    var _DFSR = "DescribeFastSnapshotRestores";
    var _DFSRi = "DisableFastSnapshotRestores";
    var _DFe = "DescribeFleets";
    var _DH = "DescribeHosts";
    var _DHI = "DedicatedHostIds";
    var _DHR = "DescribeHostReservations";
    var _DHRO = "DescribeHostReservationOfferings";
    var _DHS = "DedicatedHostsSupported";
    var _DHT = "DnsHostnameType";
    var _DI = "DeleteIpam";
    var _DIA = "DescribeImageAttribute";
    var _DIAe = "DescribeInstanceAttribute";
    var _DIB = "DeprovisionIpamByoasn";
    var _DIBPA = "DisableImageBlockPublicAccess";
    var _DIBe = "DescribeIpamByoasn";
    var _DIBi = "DisassociateIpamByoasn";
    var _DICB = "DestinationIpv6CidrBlock";
    var _DICE = "DeleteInstanceConnectEndpoint";
    var _DICEe = "DescribeInstanceConnectEndpoints";
    var _DICS = "DescribeInstanceCreditSpecifications";
    var _DID = "DisableImageDeprecation";
    var _DIDP = "DisableImageDeregistrationProtection";
    var _DIENA = "DeregisterInstanceEventNotificationAttributes";
    var _DIENAe = "DescribeInstanceEventNotificationAttributes";
    var _DIERVT = "DeleteIpamExternalResourceVerificationToken";
    var _DIERVTe = "DescribeIpamExternalResourceVerificationTokens";
    var _DIEW = "DeleteInstanceEventWindow";
    var _DIEWe = "DescribeInstanceEventWindows";
    var _DIEWi = "DisassociateInstanceEventWindow";
    var _DIF = "DescribeIdFormat";
    var _DIFi = "DiskImageFormat";
    var _DIG = "DeleteInternetGateway";
    var _DIGe = "DescribeInternetGateways";
    var _DIGet = "DetachInternetGateway";
    var _DIIF = "DescribeIdentityIdFormat";
    var _DIIM = "DescribeInstanceImageMetadata";
    var _DIIP = "DisassociateIamInstanceProfile";
    var _DIIPA = "DescribeIamInstanceProfileAssociations";
    var _DIIT = "DescribeImportImageTasks";
    var _DIOAA = "DisableIpamOrganizationAdminAccount";
    var _DIP = "DeleteIpamPool";
    var _DIPC = "DeprovisionIpamPoolCidr";
    var _DIPe = "DescribeIpamPools";
    var _DIPes = "DescribeIpv6Pools";
    var _DIR = "DescribeImageReferences";
    var _DIRD = "DeleteIpamResourceDiscovery";
    var _DIRDA = "DescribeIpamResourceDiscoveryAssociations";
    var _DIRDe = "DescribeIpamResourceDiscoveries";
    var _DIRDi = "DisassociateIpamResourceDiscovery";
    var _DIS = "DeleteIpamScope";
    var _DISI = "DestinationIpamScopeId";
    var _DIST = "DescribeImportSnapshotTasks";
    var _DISe = "DescribeInstanceStatus";
    var _DISes = "DescribeIpamScopes";
    var _DISi = "DiskImageSize";
    var _DIT = "DescribeInstanceTopology";
    var _DITO = "DescribeInstanceTypeOfferings";
    var _DITe = "DescribeInstanceTypes";
    var _DIUR = "DeleteImageUsageReport";
    var _DIURE = "DescribeImageUsageReportEntries";
    var _DIURe = "DescribeImageUsageReports";
    var _DIe = "DeregisterImage";
    var _DIes = "DescribeImages";
    var _DIesc = "DescribeInstances";
    var _DIescr = "DescribeIpams";
    var _DIest = "DestinationIp";
    var _DIev = "DeviceIndex";
    var _DIevi = "DeviceId";
    var _DIi = "DisableImage";
    var _DIir = "DirectoryId";
    var _DIis = "DiskImages";
    var _DKP = "DeleteKeyPair";
    var _DKPe = "DescribeKeyPairs";
    var _DLADI = "DisableLniAtDeviceIndex";
    var _DLEM = "DeliverLogsErrorMessage";
    var _DLG = "DescribeLocalGateways";
    var _DLGR = "DeleteLocalGatewayRoute";
    var _DLGRT = "DeleteLocalGatewayRouteTable";
    var _DLGRTVA = "DeleteLocalGatewayRouteTableVpcAssociation";
    var _DLGRTVAe = "DescribeLocalGatewayRouteTableVpcAssociations";
    var _DLGRTVIGA = "DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation";
    var _DLGRTVIGAe = "DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations";
    var _DLGRTe = "DescribeLocalGatewayRouteTables";
    var _DLGVI = "DeleteLocalGatewayVirtualInterface";
    var _DLGVIG = "DeleteLocalGatewayVirtualInterfaceGroup";
    var _DLGVIGe = "DescribeLocalGatewayVirtualInterfaceGroups";
    var _DLGVIe = "DescribeLocalGatewayVirtualInterfaces";
    var _DLPA = "DeliverLogsPermissionArn";
    var _DLS = "DescribeLockedSnapshots";
    var _DLSe = "DeliverLogsStatus";
    var _DLT = "DeleteLaunchTemplate";
    var _DLTV = "DeleteLaunchTemplateVersions";
    var _DLTVe = "DescribeLaunchTemplateVersions";
    var _DLTe = "DescribeLaunchTemplates";
    var _DMA = "DescribeMovingAddresses";
    var _DMGM = "DeregisteredMulticastGroupMembers";
    var _DMGS = "DeregisteredMulticastGroupSources";
    var _DMH = "DescribeMacHosts";
    var _DMMT = "DescribeMacModificationTasks";
    var _DMPL = "DeleteManagedPrefixList";
    var _DMPLe = "DescribeManagedPrefixLists";
    var _DN = "DeviceName";
    var _DNA = "DeleteNetworkAcl";
    var _DNAE = "DeleteNetworkAclEntry";
    var _DNAe = "DescribeNetworkAcls";
    var _DNCI = "DefaultNetworkCardIndex";
    var _DNG = "DeleteNatGateway";
    var _DNGA = "DisassociateNatGatewayAddress";
    var _DNGe = "DescribeNatGateways";
    var _DNI = "DeleteNetworkInterface";
    var _DNIA = "DeleteNetworkInsightsAnalysis";
    var _DNIAS = "DeleteNetworkInsightsAccessScope";
    var _DNIASA = "DeleteNetworkInsightsAccessScopeAnalysis";
    var _DNIASAe = "DescribeNetworkInsightsAccessScopeAnalyses";
    var _DNIASe = "DescribeNetworkInsightsAccessScopes";
    var _DNIAe = "DescribeNetworkInsightsAnalyses";
    var _DNIAes = "DescribeNetworkInterfaceAttribute";
    var _DNII = "DeregisteredNetworkInterfaceIds";
    var _DNIP = "DeleteNetworkInsightsPath";
    var _DNIPe = "DeleteNetworkInterfacePermission";
    var _DNIPes = "DescribeNetworkInsightsPaths";
    var _DNIPesc = "DescribeNetworkInterfacePermissions";
    var _DNIe = "DescribeNetworkInterfaces";
    var _DNIet = "DetachNetworkInterface";
    var _DNn = "DnsName";
    var _DNo = "DomainName";
    var _DO = "DestinationOptions";
    var _DOA = "DestinationOutpostArn";
    var _DOI = "DhcpOptionsId";
    var _DOIh = "DhcpOptionsIds";
    var _DOL = "DescribeOutpostLags";
    var _DOST = "DisconnectOnSessionTimeout";
    var _DOT = "DeleteOnTermination";
    var _DOe = "DeviceOptions";
    var _DOh = "DhcpOptions";
    var _DOn = "DnsOptions";
    var _DP = "DeliveryPreference";
    var _DPDTA = "DPDTimeoutAction";
    var _DPDTS = "DPDTimeoutSeconds";
    var _DPG = "DeletePlacementGroup";
    var _DPGe = "DescribePlacementGroups";
    var _DPIF = "DescribePrincipalIdFormat";
    var _DPIP = "DeletePublicIpv4Pool";
    var _DPIPC = "DeprovisionPublicIpv4PoolCidr";
    var _DPIPe = "DescribePublicIpv4Pools";
    var _DPL = "DescribePrefixLists";
    var _DPLI = "DestinationPrefixListId";
    var _DPLe = "DestinationPrefixLists";
    var _DPR = "DestinationPortRange";
    var _DPRT = "DefaultPropagationRouteTable";
    var _DPRe = "DestinationPortRanges";
    var _DPe = "DestinationPort";
    var _DPer = "DeregistrationProtection";
    var _DPes = "DestinationPorts";
    var _DQ = "DataQueries";
    var _DQRI = "DeleteQueuedReservedInstances";
    var _DR = "DeleteRoute";
    var _DRDAI = "DefaultResourceDiscoveryAssociationId";
    var _DRDI = "DefaultResourceDiscoveryId";
    var _DRI = "DescribeReservedInstances";
    var _DRIL = "DescribeReservedInstancesListings";
    var _DRIM = "DescribeReservedInstancesModifications";
    var _DRIO = "DescribeReservedInstancesOfferings";
    var _DRIT = "DnsRecordIpType";
    var _DRRV = "DeleteReplacedRootVolume";
    var _DRRVT = "DescribeReplaceRootVolumeTasks";
    var _DRS = "DeleteRouteServer";
    var _DRSE = "DeleteRouteServerEndpoint";
    var _DRSEe = "DescribeRouteServerEndpoints";
    var _DRSP = "DeleteRouteServerPeer";
    var _DRSPe = "DescribeRouteServerPeers";
    var _DRSPi = "DisableRouteServerPropagation";
    var _DRSa = "DataRetentionSupport";
    var _DRSe = "DescribeRouteServers";
    var _DRSi = "DisassociateRouteServer";
    var _DRT = "DeleteRouteTable";
    var _DRTA = "DefaultRouteTableAssociation";
    var _DRTP = "DefaultRouteTablePropagation";
    var _DRTe = "DescribeRouteTables";
    var _DRTi = "DisassociateRouteTable";
    var _DRa = "DataResponses";
    var _DRe = "DescribeRegions";
    var _DReb = "DebuggingRestrictions";
    var _DRes = "DestinationRegion";
    var _DRi = "DiscoveryRegion";
    var _DRr = "DryRun";
    var _DRy = "DynamicRouting";
    var _DS2 = "DeleteSnapshot";
    var _DSA = "DescribeSnapshotAttribute";
    var _DSBPA = "DisableSnapshotBlockPublicAccess";
    var _DSCA = "DisableSerialConsoleAccess";
    var _DSCB = "DisassociateSubnetCidrBlock";
    var _DSCR = "DeleteSubnetCidrReservation";
    var _DSCRe = "DeletedSubnetCidrReservation";
    var _DSDS = "DeleteSpotDatafeedSubscription";
    var _DSDSe = "DescribeSpotDatafeedSubscription";
    var _DSFI = "DescribeSpotFleetInstances";
    var _DSFR = "DescribeSpotFleetRequests";
    var _DSFRH = "DescribeSpotFleetRequestHistory";
    var _DSG = "DeleteSecurityGroup";
    var _DSGR = "DescribeSecurityGroupReferences";
    var _DSGRe = "DescribeSecurityGroupRules";
    var _DSGV = "DisassociateSecurityGroupVpc";
    var _DSGVA = "DescribeSecurityGroupVpcAssociations";
    var _DSGe = "DescribeSecurityGroups";
    var _DSI = "DescribeScheduledInstances";
    var _DSIA = "DescribeScheduledInstanceAvailability";
    var _DSIR = "DescribeSpotInstanceRequests";
    var _DSIT = "DescribeStoreImageTasks";
    var _DSLVI = "DescribeServiceLinkVirtualInterfaces";
    var _DSPH = "DescribeSpotPriceHistory";
    var _DSR = "DeleteSnapshotResults";
    var _DSSG = "DescribeStaleSecurityGroups";
    var _DSTS = "DescribeSnapshotTierStatus";
    var _DSe = "DeleteSubnet";
    var _DSel = "DeliveryStream";
    var _DSeli = "DeliveryStatus";
    var _DSes = "DescribeSnapshots";
    var _DSesc = "DescribeSubnets";
    var _DSn = "DnsServers";
    var _DSns = "DnsSupport";
    var _DT = "DeleteTags";
    var _DTA = "DpdTimeoutAction";
    var _DTCT = "DefaultTargetCapacityType";
    var _DTG = "DeleteTransitGateway";
    var _DTGA = "DescribeTransitGatewayAttachments";
    var _DTGC = "DeleteTransitGatewayConnect";
    var _DTGCP = "DeleteTransitGatewayConnectPeer";
    var _DTGCPe = "DescribeTransitGatewayConnectPeers";
    var _DTGCe = "DescribeTransitGatewayConnects";
    var _DTGMD = "DeleteTransitGatewayMulticastDomain";
    var _DTGMDe = "DescribeTransitGatewayMulticastDomains";
    var _DTGMDi = "DisassociateTransitGatewayMulticastDomain";
    var _DTGMGM = "DeregisterTransitGatewayMulticastGroupMembers";
    var _DTGMGS = "DeregisterTransitGatewayMulticastGroupSources";
    var _DTGPA = "DeleteTransitGatewayPeeringAttachment";
    var _DTGPAe = "DescribeTransitGatewayPeeringAttachments";
    var _DTGPLR = "DeleteTransitGatewayPrefixListReference";
    var _DTGPT = "DeleteTransitGatewayPolicyTable";
    var _DTGPTe = "DescribeTransitGatewayPolicyTables";
    var _DTGPTi = "DisassociateTransitGatewayPolicyTable";
    var _DTGR = "DeleteTransitGatewayRoute";
    var _DTGRT = "DeleteTransitGatewayRouteTable";
    var _DTGRTA = "DeleteTransitGatewayRouteTableAnnouncement";
    var _DTGRTAe = "DescribeTransitGatewayRouteTableAnnouncements";
    var _DTGRTP = "DisableTransitGatewayRouteTablePropagation";
    var _DTGRTe = "DescribeTransitGatewayRouteTables";
    var _DTGRTi = "DisassociateTransitGatewayRouteTable";
    var _DTGVA = "DeleteTransitGatewayVpcAttachment";
    var _DTGVAe = "DescribeTransitGatewayVpcAttachments";
    var _DTGe = "DescribeTransitGateways";
    var _DTI = "DisassociateTrunkInterface";
    var _DTIA = "DescribeTrunkInterfaceAssociations";
    var _DTMF = "DeleteTrafficMirrorFilter";
    var _DTMFR = "DeleteTrafficMirrorFilterRule";
    var _DTMFRe = "DescribeTrafficMirrorFilterRules";
    var _DTMFe = "DescribeTrafficMirrorFilters";
    var _DTMS = "DeleteTrafficMirrorSession";
    var _DTMSe = "DescribeTrafficMirrorSessions";
    var _DTMT = "DeleteTrafficMirrorTarget";
    var _DTMTe = "DescribeTrafficMirrorTargets";
    var _DTP = "DeviceTrustProviders";
    var _DTPC = "DefaultThreadsPerCore";
    var _DTPT = "DeviceTrustProviderType";
    var _DTR = "DTraceRestrictions";
    var _DTS = "DpdTimeoutSeconds";
    var _DTe = "DescribeTags";
    var _DTel = "DeletionTime";
    var _DTele = "DeleteTime";
    var _DTelet = "DeletionTimestamp";
    var _DTep = "DeprecationTime";
    var _DTi = "DisablingTime";
    var _DTis = "DisabledTime";
    var _DV = "DeleteVolume";
    var _DVA = "DescribeVolumeAttribute";
    var _DVAE = "DeleteVerifiedAccessEndpoint";
    var _DVAEe = "DescribeVerifiedAccessEndpoints";
    var _DVAG = "DeleteVerifiedAccessGroup";
    var _DVAGe = "DescribeVerifiedAccessGroups";
    var _DVAI = "DeleteVerifiedAccessInstance";
    var _DVAILC = "DescribeVerifiedAccessInstanceLoggingConfigurations";
    var _DVAIe = "DescribeVerifiedAccessInstances";
    var _DVATP = "DeleteVerifiedAccessTrustProvider";
    var _DVATPe = "DescribeVerifiedAccessTrustProviders";
    var _DVATPet = "DetachVerifiedAccessTrustProvider";
    var _DVAe = "DescribeVpcAttribute";
    var _DVBPAE = "DeleteVpcBlockPublicAccessExclusion";
    var _DVBPAEe = "DescribeVpcBlockPublicAccessExclusions";
    var _DVBPAO = "DescribeVpcBlockPublicAccessOptions";
    var _DVC = "DeleteVpnConnection";
    var _DVCB = "DisassociateVpcCidrBlock";
    var _DVCL = "DescribeVpcClassicLink";
    var _DVCLDS = "DescribeVpcClassicLinkDnsSupport";
    var _DVCLDSi = "DisableVpcClassicLinkDnsSupport";
    var _DVCLi = "DisableVpcClassicLink";
    var _DVCR = "DeleteVpnConnectionRoute";
    var _DVCe = "DescribeVpnConnections";
    var _DVCef = "DefaultVCpus";
    var _DVD = "DeviceValidationDomain";
    var _DVE = "DeleteVpcEndpoints";
    var _DVEA = "DescribeVpcEndpointAssociations";
    var _DVEC = "DescribeVpcEndpointConnections";
    var _DVECN = "DeleteVpcEndpointConnectionNotifications";
    var _DVECNe = "DescribeVpcEndpointConnectionNotifications";
    var _DVES = "DescribeVpcEndpointServices";
    var _DVESC = "DeleteVpcEndpointServiceConfigurations";
    var _DVESCe = "DescribeVpcEndpointServiceConfigurations";
    var _DVESP = "DescribeVpcEndpointServicePermissions";
    var _DVEe = "DescribeVpcEndpoints";
    var _DVG = "DeleteVpnGateway";
    var _DVGe = "DescribeVpnGateways";
    var _DVGet = "DetachVpnGateway";
    var _DVM = "DescribeVolumesModifications";
    var _DVN = "DefaultVersionNumber";
    var _DVPC = "DeleteVpcPeeringConnection";
    var _DVPCe = "DescribeVpcPeeringConnections";
    var _DVRP = "DisableVgwRoutePropagation";
    var _DVS = "DescribeVolumeStatus";
    var _DVe = "DeleteVpc";
    var _DVef = "DefaultVersion";
    var _DVes = "DescribeVolumes";
    var _DVesc = "DescribeVpcs";
    var _DVest = "DestinationVpc";
    var _DVet = "DetachVolume";
    var _Da = "Data";
    var _De = "Description";
    var _Dea = "Deadline";
    var _Des = "Destinations";
    var _Det = "Details";
    var _Dev = "Device";
    var _Di = "Direction";
    var _Dis = "Disks";
    var _Do = "Domain";
    var _Du = "Duration";
    var _Dua = "Dualstack";
    var _E2 = "Ebs";
    var _EA = "EnableAcceleration";
    var _EAIS = "EnableAllowedImagesSettings";
    var _EANPMS = "EnableAwsNetworkPerformanceMetricSubscription";
    var _EAT = "EnableAddressTransfer";
    var _EAn = "EniAddress";
    var _EAx = "ExclusionsAllowed";
    var _EB = "EgressBytes";
    var _EBV = "ExcludeBootVolume";
    var _EC = "ErrorCode";
    var _ECTP = "ExcessCapacityTerminationPolicy";
    var _ECVCC = "ExportClientVpnClientConfiguration";
    var _ECVCCRL = "ExportClientVpnClientCertificateRevocationList";
    var _ECn = "EncryptionControl";
    var _ECx = "ExplanationCode";
    var _ED = "EndDate";
    var _EDH = "EnableDnsHostnames";
    var _EDP = "EndpointDomainPrefix";
    var _EDR = "EndDateRange";
    var _EDS = "EnableDnsSupport";
    var _EDT = "EndDateType";
    var _EDVI = "ExcludeDataVolumeIds";
    var _EDf = "EffectiveDate";
    var _EDn = "EnableDns64";
    var _EDnd = "EndpointDomain";
    var _EDv = "EventDescription";
    var _EDx = "ExpirationDate";
    var _EEA = "EndpointEniAddress";
    var _EEBD = "EbsEncryptionByDefault";
    var _EEEBD = "EnableEbsEncryptionByDefault";
    var _EEI = "EndpointEniId";
    var _EFL = "EnableFastLaunch";
    var _EFR = "EgressFilterRules";
    var _EFSR = "EnableFastSnapshotRestores";
    var _EGA = "ElasticGpuAssociations";
    var _EGAI = "ElasticGpuAssociationId";
    var _EGAS = "ElasticGpuAssociationState";
    var _EGAT = "ElasticGpuAssociationTime";
    var _EGH = "ElasticGpuHealth";
    var _EGI = "ElasticGpuIds";
    var _EGIl = "ElasticGpuId";
    var _EGS = "ElasticGpuSpecifications";
    var _EGSl = "ElasticGpuSpecification";
    var _EGSla = "ElasticGpuSet";
    var _EGSlas = "ElasticGpuState";
    var _EGT = "ElasticGpuType";
    var _EH = "EndHour";
    var _EI2 = "EnableImage";
    var _EIA = "ElasticInferenceAccelerators";
    var _EIAA = "ElasticInferenceAcceleratorArn";
    var _EIAAI = "ElasticInferenceAcceleratorAssociationId";
    var _EIAAS = "ElasticInferenceAcceleratorAssociationState";
    var _EIAAT = "ElasticInferenceAcceleratorAssociationTime";
    var _EIAAl = "ElasticInferenceAcceleratorAssociations";
    var _EIAT = "EndpointIpAddressType";
    var _EIBPA = "EnableImageBlockPublicAccess";
    var _EID = "EnableImageDeprecation";
    var _EIDP = "EnableImageDeregistrationProtection";
    var _EIOAA = "EnableIpamOrganizationAdminAccount";
    var _EIT = "ExcludedInstanceTypes";
    var _EITI = "ExportImageTaskIds";
    var _EITIx = "ExportImageTaskId";
    var _EITS = "EncryptionInTransitSupported";
    var _EITx = "ExportImageTasks";
    var _EIb = "EbsInfo";
    var _EIf = "EfaInfo";
    var _EIn = "EniId";
    var _EIv = "EventInformation";
    var _EIve = "EventId";
    var _EIx = "ExportImage";
    var _EIxc = "ExclusionId";
    var _EIxch = "ExchangeId";
    var _EIxcl = "ExclusionIds";
    var _EKKI = "EncryptionKmsKeyId";
    var _ELADI = "EnableLniAtDeviceIndex";
    var _ELBL = "ElasticLoadBalancerListener";
    var _EM = "ErrorMessage";
    var _ENAUM = "EnableNetworkAddressUsageMetrics";
    var _EO = "EbsOptimized";
    var _EOI = "EbsOptimizedInfo";
    var _EOIG = "EgressOnlyInternetGateway";
    var _EOIGI = "EgressOnlyInternetGatewayId";
    var _EOIGIg = "EgressOnlyInternetGatewayIds";
    var _EOIGg = "EgressOnlyInternetGateways";
    var _EOS = "EbsOptimizedSupport";
    var _EOn = "EnclaveOptions";
    var _EP = "ExcludePaths";
    var _EPG = "EnablePrivateGua";
    var _EPI = "EnablePrimaryIpv6";
    var _EPg = "EgressPackets";
    var _EQC = "EnaQueueCount";
    var _ERAOS = "EnableReachabilityAnalyzerOrganizationSharing";
    var _ERNDAAAAR = "EnableResourceNameDnsAAAARecord";
    var _ERNDAAAAROL = "EnableResourceNameDnsAAAARecordOnLaunch";
    var _ERNDAR = "EnableResourceNameDnsARecord";
    var _ERNDAROL = "EnableResourceNameDnsARecordOnLaunch";
    var _ERSP = "EnableRouteServerPropagation";
    var _ES = "EphemeralStorage";
    var _ESBPA = "EnableSnapshotBlockPublicAccess";
    var _ESCA = "EnableSerialConsoleAccess";
    var _ESE = "EnaSrdEnabled";
    var _ESS = "EnaSrdSpecification";
    var _ESSn = "EnaSrdSupported";
    var _EST = "EventSubType";
    var _ESUE = "EnaSrdUdpEnabled";
    var _ESUS = "EnaSrdUdpSpecification";
    var _ESf = "EfaSupported";
    var _ESn = "EnaSupport";
    var _ESnc = "EncryptionSupport";
    var _ET = "EndpointType";
    var _ETGR = "ExportTransitGatewayRoutes";
    var _ETGRTP = "EnableTransitGatewayRouteTablePropagation";
    var _ETI = "ExportTaskId";
    var _ETIx = "ExportTaskIds";
    var _ETLC = "EnableTunnelLifecycleControl";
    var _ETST = "ExportToS3Task";
    var _ETTCIS = "EstimatedTimeToCompleteInSeconds";
    var _ETa = "EarliestTime";
    var _ETi = "EipTags";
    var _ETn = "EndTime";
    var _ETna = "EnablingTime";
    var _ETnab = "EnabledTime";
    var _ETv = "EventType";
    var _ETx = "ExpirationTime";
    var _ETxp = "ExportTask";
    var _ETxpo = "ExportTasks";
    var _EU = "ExecutableUsers";
    var _EVAICC = "ExportVerifiedAccessInstanceClientConfiguration";
    var _EVCL = "EnableVpcClassicLink";
    var _EVCLDS = "EnableVpcClassicLinkDnsSupport";
    var _EVIO = "EnableVolumeIO";
    var _EVRP = "EnableVgwRoutePropagation";
    var _EWD = "EndWeekDay";
    var _Eg = "Egress";
    var _En = "Enabled";
    var _Enc = "Encrypted";
    var _End = "End";
    var _Endp = "Endpoint";
    var _Enf = "Enforced";
    var _Ent = "Entries";
    var _Er = "Error";
    var _Err = "Errors";
    var _Ev = "Events";
    var _Eve = "Event";
    var _Ex = "Explanations";
    var _F = "Force";
    var _FA = "FederatedAuthentication";
    var _FAD = "FilterAtDestination";
    var _FAS = "FilterAtSource";
    var _FAi = "FirstAddress";
    var _FC = "FulfilledCapacity";
    var _FCR = "FleetCapacityReservations";
    var _FCa = "FailureCode";
    var _FCi = "FindingComponents";
    var _FD = "ForceDelete";
    var _FDN = "FipsDnsName";
    var _FE = "FipsEnabled";
    var _FEQS = "FlexibleEnaQueuesSupport";
    var _FF = "FileFormat";
    var _FFC = "FailedFleetCancellations";
    var _FFi = "FindingsFound";
    var _FI = "FleetIds";
    var _FIA = "FilterInArns";
    var _FIAp = "FpgaImageAttribute";
    var _FIGI = "FpgaImageGlobalId";
    var _FII = "FpgaImageId";
    var _FIIp = "FpgaImageIds";
    var _FIPSE = "FIPSEnabled";
    var _FIi = "FindingId";
    var _FIl = "FleetId";
    var _FIp = "FpgaImages";
    var _FIpg = "FpgaInfo";
    var _FL = "FlowLogs";
    var _FLI = "FlowLogIds";
    var _FLIa = "FastLaunchImages";
    var _FLIl = "FlowLogId";
    var _FLS = "FlowLogStatus";
    var _FM = "FailureMessage";
    var _FOA = "FilterOutArns";
    var _FODC = "FulfilledOnDemandCapacity";
    var _FP = "FromPort";
    var _FPC = "ForwardPathComponents";
    var _FPi = "FilesystemProtections";
    var _FPix = "FixedPrice";
    var _FQPD = "FailedQueuedPurchaseDeletions";
    var _FR = "FailureReason";
    var _FRa = "FastRestored";
    var _FS = "FleetState";
    var _FSR = "FastSnapshotRestores";
    var _FSRSE = "FastSnapshotRestoreStateErrors";
    var _FSRi = "FirewallStatelessRule";
    var _FSRir = "FirewallStatefulRule";
    var _FSSIB = "FullSnapshotSizeInBytes";
    var _FSST = "FirstSlotStartTime";
    var _FSSTR = "FirstSlotStartTimeRange";
    var _FTE = "FreeTierEligible";
    var _Fa = "Fault";
    var _Fi = "Filters";
    var _Fil = "Filter";
    var _Fl = "Fleets";
    var _Fo = "Format";
    var _Fp = "Fpgas";
    var _Fr = "From";
    var _Fre = "Frequency";
    var _G = "Groups";
    var _GA = "GroupArn";
    var _GAECIR = "GetAssociatedEnclaveCertificateIamRoles";
    var _GAIPC = "GetAssociatedIpv6PoolCidrs";
    var _GAIS = "GetAllowedImagesSettings";
    var _GANPD = "GetAwsNetworkPerformanceData";
    var _GAS = "GatewayAssociationState";
    var _GAVTS = "GetActiveVpnTunnelStatus";
    var _GCO = "GetConsoleOutput";
    var _GCPU = "GetCoipPoolUsage";
    var _GCRU = "GetCapacityReservationUsage";
    var _GCS = "GetConsoleScreenshot";
    var _GD = "GroupDescription";
    var _GDCS = "GetDefaultCreditSpecification";
    var _GDPRS = "GetDeclarativePoliciesReportSummary";
    var _GEDKKI = "GetEbsDefaultKmsKeyId";
    var _GEEBD = "GetEbsEncryptionByDefault";
    var _GFLIT = "GetFlowLogsIntegrationTemplate";
    var _GGFCR = "GetGroupsForCapacityReservation";
    var _GHRPP = "GetHostReservationPurchasePreview";
    var _GI = "GatewayId";
    var _GIA = "GroupIpAddress";
    var _GIAH = "GetIpamAddressHistory";
    var _GIBPAS = "GetImageBlockPublicAccessState";
    var _GIDA = "GetIpamDiscoveredAccounts";
    var _GIDPA = "GetIpamDiscoveredPublicAddresses";
    var _GIDRC = "GetIpamDiscoveredResourceCidrs";
    var _GIMD = "GetInstanceMetadataDefaults";
    var _GIPA = "GetIpamPoolAllocations";
    var _GIPC = "GetIpamPoolCidrs";
    var _GIRC = "GetIpamResourceCidrs";
    var _GITEP = "GetInstanceTpmEkPub";
    var _GITFIR = "GetInstanceTypesFromInstanceRequirements";
    var _GIUD = "GetInstanceUefiData";
    var _GIp = "GpuInfo";
    var _GIr = "GroupId";
    var _GIro = "GroupIds";
    var _GK = "GreKey";
    var _GLBA = "GatewayLoadBalancerArns";
    var _GLBEI = "GatewayLoadBalancerEndpointId";
    var _GLN = "GroupLongName";
    var _GLTD = "GetLaunchTemplateData";
    var _GM = "GroupMember";
    var _GMPLA = "GetManagedPrefixListAssociations";
    var _GMPLE = "GetManagedPrefixListEntries";
    var _GN = "GroupName";
    var _GNIASAF = "GetNetworkInsightsAccessScopeAnalysisFindings";
    var _GNIASC = "GetNetworkInsightsAccessScopeContent";
    var _GNr = "GroupNames";
    var _GOI = "GroupOwnerId";
    var _GPD = "GetPasswordData";
    var _GRIEQ = "GetReservedInstancesExchangeQuote";
    var _GRSA = "GetRouteServerAssociations";
    var _GRSP = "GetRouteServerPropagations";
    var _GRSRD = "GetRouteServerRoutingDatabase";
    var _GS = "GroupSource";
    var _GSBPAS = "GetSnapshotBlockPublicAccessState";
    var _GSCAS = "GetSerialConsoleAccessStatus";
    var _GSCR = "GetSubnetCidrReservations";
    var _GSGFV = "GetSecurityGroupsForVpc";
    var _GSPS = "GetSpotPlacementScores";
    var _GTGAP = "GetTransitGatewayAttachmentPropagations";
    var _GTGMDA = "GetTransitGatewayMulticastDomainAssociations";
    var _GTGPLR = "GetTransitGatewayPrefixListReferences";
    var _GTGPTA = "GetTransitGatewayPolicyTableAssociations";
    var _GTGPTE = "GetTransitGatewayPolicyTableEntries";
    var _GTGRTA = "GetTransitGatewayRouteTableAssociations";
    var _GTGRTP = "GetTransitGatewayRouteTablePropagations";
    var _GVAEP = "GetVerifiedAccessEndpointPolicy";
    var _GVAET = "GetVerifiedAccessEndpointTargets";
    var _GVAGP = "GetVerifiedAccessGroupPolicy";
    var _GVCDSC = "GetVpnConnectionDeviceSampleConfiguration";
    var _GVCDT = "GetVpnConnectionDeviceTypes";
    var _GVTRS = "GetVpnTunnelReplacementStatus";
    var _Gp = "Gpus";
    var _Gr = "Group";
    var _H = "Hypervisor";
    var _HCP = "HiveCompatiblePartitions";
    var _HE = "HttpEndpoint";
    var _HI = "HostIds";
    var _HIS = "HostIdSet";
    var _HIo = "HostId";
    var _HM = "HostMaintenance";
    var _HO = "HibernationOptions";
    var _HP = "HostProperties";
    var _HPI = "HttpProtocolIpv6";
    var _HPRHL = "HttpPutResponseHopLimit";
    var _HPo = "HourlyPrice";
    var _HR = "HostRecovery";
    var _HRGA = "HostResourceGroupArn";
    var _HRI = "HostReservationId";
    var _HRIS = "HostReservationIdSet";
    var _HRS = "HostReservationSet";
    var _HRi = "HistoryRecords";
    var _HS = "HibernationSupported";
    var _HT = "HttpTokens";
    var _HTo = "HostnameType";
    var _HZI = "HostedZoneId";
    var _Hi = "Hibernate";
    var _Ho = "Hosts";
    var _I = "Issuer";
    var _IA = "Ipv6Addresses";
    var _IAA = "Ipv6AddressAttribute";
    var _IAC = "Ipv6AddressCount";
    var _IAI = "IncludeAllInstances";
    var _IAIn = "InferenceAcceleratorInfo";
    var _IAPI = "Ipv4AddressesPerInterface";
    var _IAPIp = "Ipv6AddressesPerInterface";
    var _IART = "IncludeAllResourceTypes";
    var _IAT = "IpAddressType";
    var _IATOI = "IncludeAllTagsOfInstance";
    var _IAm = "ImageAllowed";
    var _IAn = "InterfaceAssociation";
    var _IAnt = "InterfaceAssociations";
    var _IAp = "IpAddress";
    var _IApa = "IpamArn";
    var _IApv = "Ipv6Address";
    var _IB = "IngressBytes";
    var _IBPAS = "ImageBlockPublicAccessState";
    var _IC = "InstanceCount";
    var _ICA = "Ipv6CidrAssociations";
    var _ICB = "Ipv6CidrBlock";
    var _ICBA = "Ipv6CidrBlockAssociation";
    var _ICBAS = "Ipv6CidrBlockAssociationSet";
    var _ICBNBG = "Ipv6CidrBlockNetworkBorderGroup";
    var _ICBS = "Ipv6CidrBlockState";
    var _ICBSp = "Ipv6CidrBlockSet";
    var _ICBn = "InsideCidrBlocks";
    var _ICE = "InstanceConnectEndpoint";
    var _ICEA = "InstanceConnectEndpointArn";
    var _ICEI = "InstanceConnectEndpointId";
    var _ICEIn = "InstanceConnectEndpointIds";
    var _ICEn = "InstanceConnectEndpoints";
    var _ICS = "InstanceCreditSpecifications";
    var _ICVCCRL = "ImportClientVpnClientCertificateRevocationList";
    var _ICm = "ImageCriteria";
    var _ICn = "InstanceCounts";
    var _ICp = "Ipv6Cidr";
    var _ID = "IncludeDeprecated";
    var _IDA = "IpamDiscoveredAccounts";
    var _IDPA = "IpamDiscoveredPublicAddresses";
    var _IDRC = "IpamDiscoveredResourceCidrs";
    var _IDm = "ImageData";
    var _IDn = "IncludeDisabled";
    var _IDs = "IsDefault";
    var _IE = "IsEgress";
    var _IED = "InstanceExportDetails";
    var _IEI = "InstanceEventId";
    var _IERVT = "IpamExternalResourceVerificationToken";
    var _IERVTA = "IpamExternalResourceVerificationTokenArn";
    var _IERVTI = "IpamExternalResourceVerificationTokenId";
    var _IERVTIp = "IpamExternalResourceVerificationTokenIds";
    var _IERVTp = "IpamExternalResourceVerificationTokens";
    var _IEW = "InstanceEventWindow";
    var _IEWI = "InstanceEventWindowId";
    var _IEWIn = "InstanceEventWindowIds";
    var _IEWS = "InstanceEventWindowState";
    var _IEWn = "InstanceEventWindows";
    var _IF = "InstanceFamily";
    var _IFCS = "InstanceFamilyCreditSpecification";
    var _IFR = "IamFleetRole";
    var _IFRn = "IngressFilterRules";
    var _IG = "InstanceGenerations";
    var _IGBM = "InternetGatewayBlockMode";
    var _IGEM = "InternetGatewayExclusionMode";
    var _IGI = "InternetGatewayId";
    var _IGIn = "InternetGatewayIds";
    var _IGn = "InternetGateway";
    var _IGnt = "InternetGateways";
    var _IH = "InstanceHealth";
    var _IHn = "InboundHeader";
    var _II = "ImportImage";
    var _IIB = "InstanceInterruptionBehavior";
    var _IIM = "InstanceImageMetadata";
    var _IIP = "IamInstanceProfile";
    var _IIPA = "IamInstanceProfileAssociation";
    var _IIPAa = "IamInstanceProfileAssociations";
    var _IIPI = "Ipv6IpamPoolId";
    var _IIPIp = "Ipv4IpamPoolId";
    var _IIS = "InstanceIdSet";
    var _IISB = "InstanceInitiatedShutdownBehavior";
    var _IIT = "ImportImageTasks";
    var _IIm = "ImportInstance";
    var _IIma = "ImageId";
    var _IImag = "ImageIds";
    var _IIn = "InstanceId";
    var _IIns = "InstanceIds";
    var _IIp = "IpamId";
    var _IIpa = "IpamIds";
    var _IKEV = "InternetKeyExchangeVersion";
    var _IKEVe = "IKEVersions";
    var _IKP = "ImportKeyPair";
    var _IL = "ImageLocation";
    var _ILn = "InstanceLifecycle";
    var _IM = "IncludeMarketplace";
    var _IMC = "InstanceMatchCriteria";
    var _IMO = "InstanceMarketOptions";
    var _IMOn = "InstanceMetadataOptions";
    var _IMT = "InstanceMetadataTags";
    var _IMU = "ImportManifestUrl";
    var _IMm = "ImageMetadata";
    var _IMn = "InstanceMonitorings";
    var _IN = "Ipv6Native";
    var _INL = "Ipv6NetmaskLength";
    var _INLp = "Ipv4NetmaskLength";
    var _IOA = "ImageOwnerAlias";
    var _IOI = "IpOwnerId";
    var _IOIn = "InstanceOwnerId";
    var _IOS = "InstanceOwningService";
    var _IP = "Ipv6Prefixes";
    var _IPA = "IpamPoolAllocation";
    var _IPAI = "IpamPoolAllocationId";
    var _IPAp = "IpamPoolAllocations";
    var _IPApa = "IpamPoolArn";
    var _IPC = "Ipv6PrefixCount";
    var _IPCI = "IpamPoolCidrId";
    var _IPCp = "Ipv4PrefixCount";
    var _IPCpa = "IpamPoolCidr";
    var _IPCpam = "IpamPoolCidrs";
    var _IPE = "IpPermissionsEgress";
    var _IPI = "IpamPoolId";
    var _IPIp = "IpamPoolIds";
    var _IPIs = "IsPrimaryIpv6";
    var _IPK = "IncludePublicKey";
    var _IPO = "IpamPoolOwner";
    var _IPR = "IsPermanentRestore";
    var _IPTUC = "InstancePoolsToUseCount";
    var _IPm = "ImageProviders";
    var _IPn = "InstancePlatform";
    var _IPng = "IngressPackets";
    var _IPns = "InstancePort";
    var _IPnt = "InterfacePermission";
    var _IPnte = "InterfaceProtocol";
    var _IPo = "IoPerformance";
    var _IPp = "Ipv4Prefixes";
    var _IPpa = "IpamPool";
    var _IPpam = "IpamPools";
    var _IPpe = "IpPermissions";
    var _IPpr = "IpProtocol";
    var _IPpre = "IpPrefixes";
    var _IPpv = "Ipv6Pool";
    var _IPpvo = "Ipv6Pools";
    var _IPpvr = "Ipv4Prefix";
    var _IPpvre = "Ipv6Prefix";
    var _IPs = "IsPublic";
    var _IPsr = "IsPrimary";
    var _IR = "InstanceRequirements";
    var _IRC = "IpamResourceCidrs";
    var _IRCp = "IpamResourceCidr";
    var _IRD = "IpamResourceDiscovery";
    var _IRDA = "IpamResourceDiscoveryAssociation";
    var _IRDAA = "IpamResourceDiscoveryAssociationArn";
    var _IRDAI = "IpamResourceDiscoveryAssociationIds";
    var _IRDAIp = "IpamResourceDiscoveryAssociationId";
    var _IRDAp = "IpamResourceDiscoveryAssociations";
    var _IRDApa = "IpamResourceDiscoveryArn";
    var _IRDI = "IpamResourceDiscoveryId";
    var _IRDIp = "IpamResourceDiscoveryIds";
    var _IRDR = "IpamResourceDiscoveryRegion";
    var _IRDp = "IpamResourceDiscoveries";
    var _IRSDA = "IntegrationResultS3DestinationArn";
    var _IRT = "IngressRouteTable";
    var _IRWM = "InstanceRequirementsWithMetadata";
    var _IRm = "ImageReferences";
    var _IRp = "IpRanges";
    var _IRpa = "IpamRegion";
    var _IRpv = "Ipv6Ranges";
    var _IS = "ImportSnapshot";
    var _ISA = "IpamScopeArn";
    var _ISD = "InitializationStatusDetails";
    var _ISI = "IpamScopeId";
    var _ISIn = "InstanceStorageInfo";
    var _ISIp = "IpamScopeIds";
    var _ISL = "InputStorageLocation";
    var _ISS = "InstanceStorageSupported";
    var _IST = "ImportSnapshotTasks";
    var _ISTp = "IpamScopeType";
    var _ISg = "Igmpv2Support";
    var _ISm = "ImdsSupport";
    var _ISmp = "ImpairedSince";
    var _ISn = "InstanceSpecification";
    var _ISns = "InstanceStatuses";
    var _ISnst = "InstanceState";
    var _ISnsta = "InstanceStatus";
    var _ISnt = "IntegrateServices";
    var _ISnte = "InterconnectStatus";
    var _ISp = "Ipv6Support";
    var _ISpa = "IpamScope";
    var _ISpam = "IpamScopes";
    var _ISpo = "IpSource";
    var _ISpv = "Ipv6Supported";
    var _IT = "InstanceType";
    var _ITA = "InstanceTagAttribute";
    var _ITC = "IcmpTypeCode";
    var _ITCn = "IncludeTrustContext";
    var _ITI = "ImportTaskId";
    var _ITIm = "ImportTaskIds";
    var _ITK = "InstanceTagKeys";
    var _ITO = "InstanceTypeOfferings";
    var _ITS = "InstanceTypeSpecifications";
    var _ITm = "ImageType";
    var _ITn = "InterfaceType";
    var _ITni = "InitializationType";
    var _ITns = "InstanceTenancy";
    var _ITnst = "InstanceTypes";
    var _ITnsta = "InstanceTags";
    var _IU = "InstanceUsages";
    var _IUR = "ImageUsageReports";
    var _IURE = "ImageUsageReportEntries";
    var _IUp = "IpUsage";
    var _IV = "ImportVolume";
    var _IVE = "IsValidExchange";
    var _IVk = "IkeVersion";
    var _IVke = "IkeVersions";
    var _Id = "Id";
    var _Im = "Image";
    var _Ima = "Images";
    var _In = "Instances";
    var _Ins = "Instance";
    var _Int = "Interval";
    var _Io = "Iops";
    var _Ip = "Ipv4";
    var _Ipa = "Ipam";
    var _Ipam = "Ipams";
    var _Ipv = "Ipv6";
    var _K2 = "Kernel";
    var _KDF = "KinesisDataFirehose";
    var _KF = "KeyFormat";
    var _KFe = "KeyFingerprint";
    var _KI = "KernelId";
    var _KKA = "KmsKeyArn";
    var _KKI = "KmsKeyId";
    var _KM = "KeyMaterial";
    var _KN = "KeyName";
    var _KNe = "KeyNames";
    var _KP = "KeyPairs";
    var _KPI = "KeyPairId";
    var _KPIe = "KeyPairIds";
    var _KS = "KextSigning";
    var _KT = "KeyType";
    var _KV = "KeyValue";
    var _Ke = "Key";
    var _Key = "Keyword";
    var _L = "Locale";
    var _LA = "LocalAddress";
    var _LADT = "LastAttemptedDiscoveryTime";
    var _LAZ = "LaunchedAvailabilityZone";
    var _LAZI = "LaunchedAvailabilityZoneId";
    var _LAa = "LastAddress";
    var _LB = "LoadBalancers";
    var _LBA = "LocalBgpAsn";
    var _LBAE = "LocalBgpAsnExtended";
    var _LBAo = "LoadBalancerArn";
    var _LBC = "LoadBalancersConfig";
    var _LBLP = "LoadBalancerListenerPort";
    var _LBO = "LoadBalancerOptions";
    var _LBP = "LoadBalancerPort";
    var _LBT = "LoadBalancerTarget";
    var _LBTG = "LoadBalancerTargetGroup";
    var _LBTGo = "LoadBalancerTargetGroups";
    var _LBTP = "LoadBalancerTargetPort";
    var _LC = "LoggingConfigurations";
    var _LCA = "LicenseConfigurationArn";
    var _LCO = "LockCreatedOn";
    var _LCo = "LoggingConfiguration";
    var _LD = "LogDestination";
    var _LDST = "LockDurationStartTime";
    var _LDT = "LogDestinationType";
    var _LDo = "LockDuration";
    var _LE = "LogEnabled";
    var _LEO = "LockExpiresOn";
    var _LET = "LastEvaluatedTime";
    var _LEa = "LastError";
    var _LF = "LogFormat";
    var _LFA = "LambdaFunctionArn";
    var _LG = "LaunchGroup";
    var _LGA = "LogGroupArn";
    var _LGI = "LocalGatewayId";
    var _LGIo = "LocalGatewayIds";
    var _LGN = "LogGroupName";
    var _LGRT = "LocalGatewayRouteTable";
    var _LGRTA = "LocalGatewayRouteTableArn";
    var _LGRTI = "LocalGatewayRouteTableId";
    var _LGRTIo = "LocalGatewayRouteTableIds";
    var _LGRTVA = "LocalGatewayRouteTableVpcAssociation";
    var _LGRTVAI = "LocalGatewayRouteTableVpcAssociationId";
    var _LGRTVAIo = "LocalGatewayRouteTableVpcAssociationIds";
    var _LGRTVAo = "LocalGatewayRouteTableVpcAssociations";
    var _LGRTVIGA = "LocalGatewayRouteTableVirtualInterfaceGroupAssociation";
    var _LGRTVIGAI = "LocalGatewayRouteTableVirtualInterfaceGroupAssociationId";
    var _LGRTVIGAIo = "LocalGatewayRouteTableVirtualInterfaceGroupAssociationIds";
    var _LGRTVIGAo = "LocalGatewayRouteTableVirtualInterfaceGroupAssociations";
    var _LGRTo = "LocalGatewayRouteTables";
    var _LGVI = "LocalGatewayVirtualInterface";
    var _LGVIA = "LocalGatewayVirtualInterfaceArn";
    var _LGVIG = "LocalGatewayVirtualInterfaceGroup";
    var _LGVIGA = "LocalGatewayVirtualInterfaceGroupArn";
    var _LGVIGI = "LocalGatewayVirtualInterfaceGroupId";
    var _LGVIGIo = "LocalGatewayVirtualInterfaceGroupIds";
    var _LGVIGo = "LocalGatewayVirtualInterfaceGroups";
    var _LGVII = "LocalGatewayVirtualInterfaceId";
    var _LGVIIo = "LocalGatewayVirtualInterfaceIds";
    var _LGVIo = "LocalGatewayVirtualInterfaces";
    var _LGo = "LogGroup";
    var _LGoc = "LocalGateways";
    var _LIIRB = "ListImagesInRecycleBin";
    var _LINC = "LocalIpv4NetworkCidr";
    var _LINCo = "LocalIpv6NetworkCidr";
    var _LLT = "LastLaunchedTime";
    var _LM = "LockMode";
    var _LMA = "LastMaintenanceApplied";
    var _LO = "LogOptions";
    var _LOF = "LogOutputFormat";
    var _LP = "LoadPermission";
    var _LPa = "LaunchPermission";
    var _LPau = "LaunchPermissions";
    var _LPi = "LimitPrice";
    var _LPo = "LoadPermissions";
    var _LS = "LockSnapshot";
    var _LSC = "LastStatusChange";
    var _LSDT = "LastSuccessfulDiscoveryTime";
    var _LSIRB = "ListSnapshotsInRecycleBin";
    var _LSL = "LogsStorageLocation";
    var _LST = "LocalStorageTypes";
    var _LSa = "LaunchSpecification";
    var _LSau = "LaunchSpecifications";
    var _LSi = "LicenseSpecifications";
    var _LSo = "LocalStorage";
    var _LSoc = "LockState";
    var _LT = "LocationType";
    var _LTAO = "LaunchTemplateAndOverrides";
    var _LTC = "LaunchTemplateConfigs";
    var _LTD = "LaunchTemplateData";
    var _LTI = "LaunchTemplateId";
    var _LTIa = "LaunchTemplateIds";
    var _LTN = "LaunchTemplateName";
    var _LTNa = "LaunchTemplateNames";
    var _LTOS = "LastTieringOperationStatus";
    var _LTOSD = "LastTieringOperationStatusDetail";
    var _LTP = "LastTieringProgress";
    var _LTS = "LaunchTemplateSpecification";
    var _LTST = "LastTieringStartTime";
    var _LTV = "LaunchTemplateVersion";
    var _LTVa = "LaunchTemplateVersions";
    var _LTa = "LaunchTemplate";
    var _LTat = "LatestTime";
    var _LTau = "LaunchTemplates";
    var _LTaun = "LaunchTime";
    var _LTi = "LicenseType";
    var _LTo = "LocalTarget";
    var _LUT = "LastUpdateTime";
    var _LUTa = "LastUpdatedTime";
    var _LUTas = "LastUpdateTimestamp";
    var _LV = "LogVersion";
    var _LVN = "LatestVersionNumber";
    var _La = "Latest";
    var _Li = "Lifecycle";
    var _Lic = "Licenses";
    var _Lo = "Location";
    var _M = "Min";
    var _MA = "MutualAuthentication";
    var _MAA = "ModifyAddressAttribute";
    var _MAAA = "MaintenanceAutoAppliedAfter";
    var _MAE = "MultiAttachEnabled";
    var _MAI = "MaxAggregationInterval";
    var _MAIe = "MediaAcceleratorInfo";
    var _MAS = "MovingAddressStatuses";
    var _MATV = "MoveAddressToVpc";
    var _MAZG = "ModifyAvailabilityZoneGroup";
    var _MAa = "MacAddress";
    var _MAe = "MeteredAccount";
    var _MB = "ManagedBy";
    var _MBCTI = "MoveByoipCidrToIpam";
    var _MBIM = "MaximumBandwidthInMbps";
    var _MC = "MacCredentials";
    var _MCOIOL = "MapCustomerOwnedIpOnLaunch";
    var _MCR = "ModifyCapacityReservation";
    var _MCRF = "ModifyCapacityReservationFleet";
    var _MCRI = "MoveCapacityReservationInstances";
    var _MCVE = "ModifyClientVpnEndpoint";
    var _MCa = "MaxCount";
    var _MCi = "MinCount";
    var _MCis = "MissingComponent";
    var _MD = "MaxDuration";
    var _MDA = "MulticastDomainAssociations";
    var _MDCS = "ModifyDefaultCreditSpecification";
    var _MDDS = "MaxDrainDurationSeconds";
    var _MDK = "MetaDataKey";
    var _MDV = "MetaDataValue";
    var _MDa = "MaintenanceDetails";
    var _MDe = "MetaData";
    var _MDi = "MinDuration";
    var _ME = "MaxEntries";
    var _MEDKKI = "ModifyEbsDefaultKmsKeyId";
    var _MEI = "MaximumEfaInterfaces";
    var _MEM = "ManagedExceptionMessage";
    var _MEQC = "MaximumEnaQueueCount";
    var _MEQCPI = "MaximumEnaQueueCountPerInterface";
    var _MF = "ModifyFleet";
    var _MFIA = "ModifyFpgaImageAttribute";
    var _MFV = "MostFrequentValue";
    var _MG = "MulticastGroups";
    var _MGBPVC = "MemoryGiBPerVCpu";
    var _MH = "ModifyHosts";
    var _MHa = "MacHosts";
    var _MI = "ModifyIpam";
    var _MIA = "ModifyImageAttribute";
    var _MIAo = "ModifyInstanceAttribute";
    var _MIC = "MaxInstanceCount";
    var _MICE = "ModifyInstanceConnectEndpoint";
    var _MICO = "ModifyInstanceCpuOptions";
    var _MICRA = "ModifyInstanceCapacityReservationAttributes";
    var _MICS = "ModifyInstanceCreditSpecification";
    var _MIEST = "ModifyInstanceEventStartTime";
    var _MIEW = "ModifyInstanceEventWindow";
    var _MIF = "ModifyIdFormat";
    var _MIIF = "ModifyIdentityIdFormat";
    var _MIMD = "ModifyInstanceMetadataDefaults";
    var _MIMO = "ModifyInstanceMaintenanceOptions";
    var _MIMOo = "ModifyInstanceMetadataOptions";
    var _MINPO = "ModifyInstanceNetworkPerformanceOptions";
    var _MIP = "ModifyInstancePlacement";
    var _MIPo = "ModifyIpamPool";
    var _MIRC = "ModifyIpamResourceCidr";
    var _MIRD = "ModifyIpamResourceDiscovery";
    var _MIS = "ModifyIpamScope";
    var _MIa = "MaximumIops";
    var _MIe = "MemoryInfo";
    var _MIo = "MonitorInstances";
    var _MLGR = "ModifyLocalGatewayRoute";
    var _MLT = "ModifyLaunchTemplate";
    var _MMB = "MemoryMiB";
    var _MMPL = "ModifyManagedPrefixList";
    var _MMT = "MacModificationTask";
    var _MMTI = "MacModificationTaskIds";
    var _MMTIa = "MacModificationTaskId";
    var _MMTa = "MacModificationTasks";
    var _MNC = "MaximumNetworkCards";
    var _MNI = "MaximumNetworkInterfaces";
    var _MNIA = "ModifyNetworkInterfaceAttribute";
    var _MO = "MetadataOptions";
    var _MOSLRG = "MemberOfServiceLinkedResourceGroup";
    var _MOSLSV = "MacOSLatestSupportedVersions";
    var _MOa = "MaintenanceOptions";
    var _MP = "MatchPaths";
    var _MPDNO = "ModifyPrivateDnsNameOptions";
    var _MPIDNO = "ModifyPublicIpDnsNameOptions";
    var _MPIOL = "MapPublicIpOnLaunch";
    var _MPL = "MaxParallelLaunches";
    var _MPa = "MaxPrice";
    var _MPe = "MetricPoints";
    var _MR = "MaxResults";
    var _MRI = "ModifyReservedInstances";
    var _MRS = "ModifyRouteServer";
    var _MRo = "ModificationResults";
    var _MRu = "MultiRegion";
    var _MS = "MaintenanceStrategies";
    var _MSA = "ModifySnapshotAttribute";
    var _MSAo = "ModifySubnetAttribute";
    var _MSDIH = "MaxSlotDurationInHours";
    var _MSDIHi = "MinSlotDurationInHours";
    var _MSFR = "ModifySpotFleetRequest";
    var _MSGR = "ModifySecurityGroupRules";
    var _MSIPC = "MacSystemIntegrityProtectionConfiguration";
    var _MSIPCa = "MacSystemIntegrityProtectionConfig";
    var _MSIPS = "MacSystemIntegrityProtectionStatus";
    var _MSPAPOOODP = "MaxSpotPriceAsPercentageOfOptimalOnDemandPrice";
    var _MST = "ModifySnapshotTier";
    var _MSa = "ManagementState";
    var _MSo = "MoveStatus";
    var _MSod = "ModificationState";
    var _MSu = "MulticastSupport";
    var _MT = "MarketType";
    var _MTC = "MinTargetCapacity";
    var _MTDID = "MaxTermDurationInDays";
    var _MTDIDi = "MinTermDurationInDays";
    var _MTG = "ModifyTransitGateway";
    var _MTGPLR = "ModifyTransitGatewayPrefixListReference";
    var _MTGVA = "ModifyTransitGatewayVpcAttachment";
    var _MTIMB = "MaximumThroughputInMBps";
    var _MTMFNS = "ModifyTrafficMirrorFilterNetworkServices";
    var _MTMFR = "ModifyTrafficMirrorFilterRule";
    var _MTMS = "ModifyTrafficMirrorSession";
    var _MTP = "MaxTotalPrice";
    var _MTe = "MemberType";
    var _MV = "ModifyVolume";
    var _MVA = "ModifyVolumeAttribute";
    var _MVAE = "ModifyVerifiedAccessEndpoint";
    var _MVAEP = "ModifyVerifiedAccessEndpointPolicy";
    var _MVAG = "ModifyVerifiedAccessGroup";
    var _MVAGP = "ModifyVerifiedAccessGroupPolicy";
    var _MVAI = "ModifyVerifiedAccessInstance";
    var _MVAILC = "ModifyVerifiedAccessInstanceLoggingConfiguration";
    var _MVATP = "ModifyVerifiedAccessTrustProvider";
    var _MVAo = "ModifyVpcAttribute";
    var _MVBPAE = "ModifyVpcBlockPublicAccessExclusion";
    var _MVBPAO = "ModifyVpcBlockPublicAccessOptions";
    var _MVC = "ModifyVpnConnection";
    var _MVCO = "ModifyVpnConnectionOptions";
    var _MVE = "ModifyVpcEndpoint";
    var _MVECN = "ModifyVpcEndpointConnectionNotification";
    var _MVESC = "ModifyVpcEndpointServiceConfiguration";
    var _MVESP = "ModifyVpcEndpointServicePermissions";
    var _MVESPR = "ModifyVpcEndpointServicePayerResponsibility";
    var _MVEa = "ManagesVpcEndpoints";
    var _MVPCO = "ModifyVpcPeeringConnectionOptions";
    var _MVT = "ModifyVpcTenancy";
    var _MVTC = "ModifyVpnTunnelCertificate";
    var _MVTO = "ModifyVpnTunnelOptions";
    var _MVa = "MaxVersion";
    var _MVi = "MinVersion";
    var _Ma = "Max";
    var _Mai = "Main";
    var _Man = "Manufacturer";
    var _Mana = "Managed";
    var _Mar = "Marketplace";
    var _Me = "Message";
    var _Med = "Med";
    var _Mes = "Messages";
    var _Met = "Metric";
    var _Mo = "Mode";
    var _Mon = "Monitoring";
    var _Moni = "Monitored";
    var _N = "Name";
    var _NA = "NetworkAcl";
    var _NAAI = "NetworkAclAssociationId";
    var _NAI = "NetworkAclId";
    var _NAIe = "NetworkAclIds";
    var _NAIew = "NewAssociationId";
    var _NAOO = "NativeApplicationOidcOptions";
    var _NAe = "NetworkAcls";
    var _NAo = "NotAfter";
    var _NB = "NotBefore";
    var _NBD = "NotBeforeDeadline";
    var _NBG = "NetworkBorderGroup";
    var _NBGe = "NetworkBandwidthGbps";
    var _NC = "NetworkCards";
    var _NCI = "NetworkCardIndex";
    var _ND = "NoDevice";
    var _NDe = "NeuronDevices";
    var _NES = "NitroEnclavesSupport";
    var _NG = "NatGateway";
    var _NGA = "NatGatewayAddresses";
    var _NGI = "NatGatewayId";
    var _NGIa = "NatGatewayIds";
    var _NGa = "NatGateways";
    var _NHI = "NextHopIp";
    var _NI = "NetworkInterfaces";
    var _NIA = "NetworkInsightsAnalyses";
    var _NIAA = "NetworkInsightsAnalysisArn";
    var _NIAI = "NetworkInsightsAnalysisId";
    var _NIAIe = "NetworkInsightsAnalysisIds";
    var _NIAS = "NetworkInsightsAccessScope";
    var _NIASA = "NetworkInsightsAccessScopeAnalyses";
    var _NIASAA = "NetworkInsightsAccessScopeAnalysisArn";
    var _NIASAI = "NetworkInsightsAccessScopeAnalysisId";
    var _NIASAIe = "NetworkInsightsAccessScopeAnalysisIds";
    var _NIASAe = "NetworkInsightsAccessScopeArn";
    var _NIASAet = "NetworkInsightsAccessScopeAnalysis";
    var _NIASC = "NetworkInsightsAccessScopeContent";
    var _NIASI = "NetworkInsightsAccessScopeId";
    var _NIASIe = "NetworkInsightsAccessScopeIds";
    var _NIASe = "NetworkInsightsAccessScopes";
    var _NIASet = "NetworkInterfaceAttachmentStatus";
    var _NIAe = "NetworkInsightsAnalysis";
    var _NIC = "NetworkInterfaceCount";
    var _NID = "NetworkInterfaceDescription";
    var _NII = "NetworkInterfaceId";
    var _NIIe = "NetworkInterfaceIds";
    var _NIO = "NetworkInterfaceOptions";
    var _NIOI = "NetworkInterfaceOwnerId";
    var _NIP = "NetworkInsightsPath";
    var _NIPA = "NetworkInsightsPathArn";
    var _NIPI = "NetworkInsightsPathId";
    var _NIPIe = "NetworkInterfacePermissionId";
    var _NIPIet = "NetworkInsightsPathIds";
    var _NIPIetw = "NetworkInterfacePermissionIds";
    var _NIPe = "NetworkInsightsPaths";
    var _NIPet = "NetworkInterfacePermissions";
    var _NIe = "NetworkId";
    var _NIet = "NetworkInterface";
    var _NIetw = "NetworkInfo";
    var _NIeu = "NeuronInfo";
    var _NL = "NetmaskLength";
    var _NLBA = "NetworkLoadBalancerArn";
    var _NLBAe = "NetworkLoadBalancerArns";
    var _NN = "NetworkNodes";
    var _NOA = "NumberOfAccounts";
    var _NOFA = "NumberOfFailedAccounts";
    var _NOMA = "NumberOfMatchedAccounts";
    var _NOUA = "NumberOfUnmatchedAccounts";
    var _NP = "NvramProtections";
    var _NPF = "NetworkPathFound";
    var _NPO = "NetworkPerformanceOptions";
    var _NPe = "NetworkPerformance";
    var _NPet = "NetworkPlatform";
    var _NR = "NoReboot";
    var _NS = "NvmeSupport";
    var _NSST = "NextSlotStartTime";
    var _NSe = "NetworkServices";
    var _NT = "NextToken";
    var _NTI = "NitroTpmInfo";
    var _NTS = "NitroTpmSupport";
    var _NTe = "NetworkType";
    var _Na = "Nameservers";
    var _O = "Operator";
    var _OA = "OutpostArn";
    var _OAr = "OrganizationArn";
    var _OArg = "OrganizationArns";
    var _OAw = "OwnerAlias";
    var _OC = "OfferingClass";
    var _OD = "OccurrenceDays";
    var _ODAS = "OnDemandAllocationStrategy";
    var _ODFC = "OnDemandFulfilledCapacity";
    var _ODMPPOLP = "OnDemandMaxPricePercentageOverLowestPrice";
    var _ODMTP = "OnDemandMaxTotalPrice";
    var _ODO = "OnDemandOptions";
    var _ODS = "OccurrenceDaySet";
    var _ODTC = "OnDemandTargetCapacity";
    var _OEP = "OrganizationsEntityPath";
    var _OH = "OutboundHeader";
    var _OI = "OfferingId";
    var _OIA = "OutsideIpAddress";
    var _OIAT = "OutsideIpAddressType";
    var _OIS = "OptInStatus";
    var _OIr = "OriginalIops";
    var _OIu = "OutpostId";
    var _OIw = "OwnerIds";
    var _OIwn = "OwnerId";
    var _OK = "ObjectKey";
    var _OL = "OutpostLags";
    var _OLI = "OutpostLagId";
    var _OLIu = "OutpostLagIds";
    var _OMAE = "OriginalMultiAttachEnabled";
    var _ON = "OptionName";
    var _ONA = "OdbNetworkArn";
    var _OO = "OidcOptions";
    var _OR = "OperatingRegions";
    var _ORIWEA = "OutputReservedInstancesWillExpireAt";
    var _ORTE = "OccurrenceRelativeToEnd";
    var _OS = "OfferingSet";
    var _OST = "OldestSampleTime";
    var _OSr = "OriginalSize";
    var _OSv = "OverlapStatus";
    var _OT = "OfferingType";
    var _OTp = "OperationType";
    var _OTpt = "OptimizingTime";
    var _OTr = "OriginalThroughput";
    var _OU = "OccurrenceUnit";
    var _OUA = "OrganizationalUnitArn";
    var _OUAr = "OrganizationalUnitArns";
    var _OUE = "OrganizationalUnitExclusions";
    var _OUI = "OrganizationalUnitId";
    var _OV = "OptionValues";
    var _OVC = "OpenVpnConfigurations";
    var _OVT = "OriginalVolumeType";
    var _Op = "Options";
    var _Or = "Origin";
    var _Ou = "Output";
    var _Ov = "Overrides";
    var _Ow = "Owners";
    var _Own = "Owner";
    var _P2 = "Protocol";
    var _PA2 = "PubliclyAdvertisable";
    var _PAI = "PeerAccountId";
    var _PAIe = "PeeringAttachmentId";
    var _PAR = "PoolAddressRange";
    var _PARo = "PoolAddressRanges";
    var _PAe = "PeerAddress";
    var _PAee = "PeerAsn";
    var _PAo = "PoolArn";
    var _PAr2 = "PrincipalArn";
    var _PB = "ProvisionedBandwidth";
    var _PBA = "PeerBgpAsn";
    var _PBAE = "PeerBgpAsnExtended";
    var _PBC = "ProvisionByoipCidr";
    var _PBIG = "PeakBandwidthInGbps";
    var _PC2 = "ProductCode";
    var _PCB = "PurchaseCapacityBlock";
    var _PCBE = "PurchaseCapacityBlockExtension";
    var _PCBo = "PoolCidrBlocks";
    var _PCI = "PreserveClientIp";
    var _PCIr = "ProductCodeId";
    var _PCNI = "PeerCoreNetworkId";
    var _PCS = "PostureComplianceStatuses";
    var _PCT = "ProductCodeType";
    var _PCa = "PartitionCount";
    var _PCo = "PoolCidrs";
    var _PCoo = "PoolCount";
    var _PCr = "ProductCodes";
    var _PD = "PolicyDocument";
    var _PDE = "PrivateDnsEnabled";
    var _PDEr = "PrivateDnsEntry";
    var _PDHG = "Phase1DHGroup";
    var _PDHGN = "Phase1DHGroupNumbers";
    var _PDHGNh = "Phase2DHGroupNumbers";
    var _PDHGh = "Phase2DHGroup";
    var _PDHT = "PrivateDnsHostnameType";
    var _PDHTOL = "PrivateDnsHostnameTypeOnLaunch";
    var _PDN = "PrivateDnsName";
    var _PDNC = "PrivateDnsNameConfiguration";
    var _PDNO = "PrivateDnsNameOptions";
    var _PDNOOL = "PrivateDnsNameOptionsOnLaunch";
    var _PDNVS = "PrivateDnsNameVerificationState";
    var _PDNr = "PrivateDnsNames";
    var _PDNu = "PublicDnsNames";
    var _PDNub = "PublicDnsName";
    var _PDOFIRE = "PrivateDnsOnlyForInboundResolverEndpoint";
    var _PDRTI = "PropagationDefaultRouteTableId";
    var _PDSDN = "PublicDualStackDnsName";
    var _PDSI = "PublicDefaultScopeId";
    var _PDSIr = "PrivateDefaultScopeId";
    var _PDa = "PasswordData";
    var _PDay = "PaymentDue";
    var _PDl = "PlatformDetails";
    var _PDo = "PoolDepth";
    var _PDr = "ProductDescription";
    var _PDri = "PricingDetails";
    var _PDro = "ProductDescriptions";
    var _PE = "PolicyEnabled";
    var _PEA = "Phase1EncryptionAlgorithms";
    var _PEAh = "Phase2EncryptionAlgorithms";
    var _PEAha = "Phase1EncryptionAlgorithm";
    var _PEAhas = "Phase2EncryptionAlgorithm";
    var _PED = "PartitionEndDate";
    var _PEk = "PkceEnabled";
    var _PF = "PacketField";
    var _PFS = "PreviousFleetState";
    var _PG = "PlacementGroup";
    var _PGA = "PlacementGroupArn";
    var _PGI = "PlacementGroupInfo";
    var _PGl = "PlacementGroups";
    var _PHP = "PerHourPartition";
    var _PHR = "PurchaseHostReservation";
    var _PHS = "PacketHeaderStatement";
    var _PI2 = "PublicIp";
    var _PIA = "PrivateIpAddresses";
    var _PIAC = "PrivateIpAddressCount";
    var _PIACr = "PrivateIpAddressConfigs";
    var _PIAh = "Phase1IntegrityAlgorithms";
    var _PIAha = "Phase2IntegrityAlgorithms";
    var _PIAhas = "Phase1IntegrityAlgorithm";
    var _PIAhase = "Phase2IntegrityAlgorithm";
    var _PIAr = "PrivateIpAddress";
    var _PIAu = "PublicIpAddress";
    var _PIB = "ProvisionIpamByoasn";
    var _PIDN = "PublicIpv6DnsName";
    var _PIDNO = "PublicIpDnsNameOptions";
    var _PIDNu = "PublicIpv4DnsName";
    var _PIP = "PublicIpv4Pool";
    var _PIPC = "ProvisionIpamPoolCidr";
    var _PIPI = "PublicIpv4PoolId";
    var _PIPu = "PublicIpv4Pools";
    var _PIS = "PublicIpSource";
    var _PIc = "PciId";
    var _PIo = "PoolId";
    var _PIoo = "PoolIds";
    var _PIr = "PrimaryIpv6";
    var _PIri = "PrivateIp";
    var _PIro = "ProcessorInfo";
    var _PIu = "PublicIps";
    var _PK = "PublicKey";
    var _PKM = "PublicKeyMaterial";
    var _PL = "PacketLength";
    var _PLA = "PrefixListAssociations";
    var _PLAr = "PrefixListArn";
    var _PLD = "PeerLivenessDetection";
    var _PLF = "PartitionLoadFrequency";
    var _PLI = "PrefixListId";
    var _PLIr = "PrefixListIds";
    var _PLN = "PrefixListName";
    var _PLOI = "PrefixListOwnerId";
    var _PLS = "Phase1LifetimeSeconds";
    var _PLSh = "Phase2LifetimeSeconds";
    var _PLr = "PrefixList";
    var _PLre = "PrefixLists";
    var _PM = "PendingMaintenance";
    var _PN = "PartitionNumber";
    var _PNC = "PreviewNextCidr";
    var _PO = "PaymentOption";
    var _POI = "PeerOwnerId";
    var _POe = "PeeringOptions";
    var _PP = "ProgressPercentage";
    var _PPIPC = "ProvisionPublicIpv4PoolCidr";
    var _PR = "PortRange";
    var _PRD = "PersistRoutesDuration";
    var _PRIO = "PurchaseReservedInstancesOffering";
    var _PRN = "PolicyReferenceName";
    var _PRNo = "PolicyRuleNumber";
    var _PRS = "PersistRoutesState";
    var _PRU = "PtrRecordUpdate";
    var _PRa = "PayerResponsibility";
    var _PRe = "PersistRoutes";
    var _PRee = "PeerRegion";
    var _PRer = "PermanentRestore";
    var _PRo = "PortRanges";
    var _PRol = "PolicyRule";
    var _PRt = "PtrRecord";
    var _PRu = "PurchaseRequests";
    var _PS = "PriceSchedules";
    var _PSD = "PartitionStartDate";
    var _PSET = "PreviousSlotEndTime";
    var _PSFRS = "PreviousSpotFleetRequestState";
    var _PSI = "PurchaseScheduledInstances";
    var _PSK = "PreSharedKey";
    var _PSKA = "PreSharedKeyArn";
    var _PSKE = "PublicSigningKeyEndpoint";
    var _PSKS = "PreSharedKeyStorage";
    var _PSKU = "PublicSigningKeyUrl";
    var _PSR = "ProvisioningStatusReason";
    var _PSe = "PeeringStatus";
    var _PSer = "PermissionState";
    var _PSh = "PhcSupport";
    var _PSr = "ProvisioningStatus";
    var _PSre = "PreviousState";
    var _PSrev = "PreviousStatus";
    var _PT = "PurchaseToken";
    var _PTGI = "PeerTransitGatewayId";
    var _PTS = "PoolTagSpecifications";
    var _PTr = "PrincipalType";
    var _PTro = "ProvisionTime";
    var _PTu = "PurchaseTime";
    var _PU = "PresignedUrl";
    var _PV = "PreviousVersion";
    var _PVI = "PeerVpcId";
    var _PVIr = "PrimaryVpcId";
    var _PVr = "PropagatingVgws";
    var _PZI = "ParentZoneId";
    var _PZN = "ParentZoneName";
    var _Pe = "Permission";
    var _Per = "Period";
    var _Pl = "Placement";
    var _Pla = "Platform";
    var _Po = "Port";
    var _Pr2 = "Prefix";
    var _Pri = "Priority";
    var _Pric = "Price";
    var _Prim = "Primary";
    var _Prin = "Principal";
    var _Princ = "Principals";
    var _Pro = "Protocols";
    var _Prog = "Progress";
    var _Prop = "Propagation";
    var _Prov = "Provisioned";
    var _Pu = "Public";
    var _Pur = "Purchase";
    var _Q = "Quantity";
    var _R = "References";
    var _RA2 = "ReleaseAddress";
    var _RAA = "ResetAddressAttribute";
    var _RAE = "RemoteAccessEnabled";
    var _RAG = "RevokeAllGroups";
    var _RAP = "RemoveAllowedPrincipals";
    var _RART = "RemoveAllocationResourceTags";
    var _RATC = "RestoreAddressToClassic";
    var _RAe = "ResolveAlias";
    var _RAes = "ResourceArn";
    var _RAo = "RoleArn";
    var _RAu = "RuleAction";
    var _RB = "RequestedBy";
    var _RBET = "RecycleBinEnterTime";
    var _RBETe = "RecycleBinExitTime";
    var _RBUI = "RestorableByUserIds";
    var _RC = "ResourceCidr";
    var _RCA = "ResourceConfigurationArn";
    var _RCGA = "ResourceConfigurationGroupArn";
    var _RCRBO = "RejectCapacityReservationBillingOwnership";
    var _RCS = "ResourceComplianceStatus";
    var _RCT = "ReportCreationTime";
    var _RCVI = "RevokeClientVpnIngress";
    var _RCe = "ReasonCodes";
    var _RCec = "RecurringCharges";
    var _RCet = "ReturnCode";
    var _RD = "RestoreDuration";
    var _RDAC = "ResourceDiscoveryAssociationCount";
    var _RDCA = "RdsDbClusterArn";
    var _RDI = "RamDiskId";
    var _RDIA = "RdsDbInstanceArn";
    var _RDN = "RootDeviceName";
    var _RDPA = "RdsDbProxyArn";
    var _RDS = "ResourceDiscoveryStatus";
    var _RDT = "RootDeviceType";
    var _RE = "RdsEndpoint";
    var _RED = "RemoveEndDate";
    var _REDKKI = "ResetEbsDefaultKmsKeyId";
    var _RET = "RestoreExpiryTime";
    var _REe = "RemoveEntries";
    var _REes = "ResponseError";
    var _REeso = "ResourceExclusions";
    var _RF = "RemoveFields";
    var _RFIA = "ResetFpgaImageAttribute";
    var _RFP = "RekeyFuzzPercentage";
    var _RGA = "RuleGroupArn";
    var _RGI = "ReferencedGroupId";
    var _RGIe = "ReferencedGroupInfo";
    var _RGLBA = "RemoveGatewayLoadBalancerArns";
    var _RGROP = "RuleGroupRuleOptionsPairs";
    var _RGT = "RuleGroupType";
    var _RGTP = "RuleGroupTypePairs";
    var _RH = "ReleaseHosts";
    var _RHS = "RequireHibernateSupport";
    var _RI = "RebootInstances";
    var _RIA = "ResetImageAttribute";
    var _RIAe = "ResetInstanceAttribute";
    var _RICIAIS = "ReplaceImageCriteriaInAllowedImagesSettings";
    var _RID = "RouteInstallationDetails";
    var _RIENA = "RegisterInstanceEventNotificationAttributes";
    var _RIFRB = "RestoreImageFromRecycleBin";
    var _RII = "ReservedInstanceIds";
    var _RIIPA = "ReplaceIamInstanceProfileAssociation";
    var _RIIe = "ReservedInstancesId";
    var _RIIes = "ReservedInstancesIds";
    var _RIIese = "ReservedInstanceId";
    var _RIL = "ReservedInstancesListings";
    var _RILI = "ReservedInstancesListingId";
    var _RIM = "ReservedInstancesModifications";
    var _RIMI = "ReservedInstancesModificationIds";
    var _RIMIe = "ReservedInstancesModificationId";
    var _RINC = "RemoteIpv4NetworkCidr";
    var _RINCe = "RemoteIpv6NetworkCidr";
    var _RIO = "ReservedInstancesOfferings";
    var _RIOI = "ReservedInstancesOfferingIds";
    var _RIOIe = "ReservedInstancesOfferingId";
    var _RIPA = "ReleaseIpamPoolAllocation";
    var _RIS = "ReportInstanceStatus";
    var _RISR = "RouteInstallationStatusReason";
    var _RISo = "RouteInstallationStatus";
    var _RIVR = "ReservedInstanceValueRollup";
    var _RIVS = "ReservedInstanceValueSet";
    var _RIa = "RamdiskId";
    var _RIe = "RegisterImage";
    var _RIep = "ReportId";
    var _RIepo = "ReportIds";
    var _RIeq = "RequesterId";
    var _RIes = "ResourceIds";
    var _RIese = "ReservedInstances";
    var _RIeser = "ReservationId";
    var _RIeso = "ResourceId";
    var _RIu = "RunInstances";
    var _RM = "ReasonMessage";
    var _RMGM = "RegisteredMulticastGroupMembers";
    var _RMGS = "RegisteredMulticastGroupSources";
    var _RMPLV = "RestoreManagedPrefixListVersion";
    var _RMS = "RebootMigrationSupport";
    var _RMTS = "RekeyMarginTimeSeconds";
    var _RMe = "RebootMigration";
    var _RMeq = "RequesterManaged";
    var _RN = "RegionName";
    var _RNAA = "ReplaceNetworkAclAssociation";
    var _RNAE = "ReplaceNetworkAclEntry";
    var _RNIA = "ResetNetworkInterfaceAttribute";
    var _RNII = "RegisteredNetworkInterfaceIds";
    var _RNLBA = "RemoveNetworkLoadBalancerArns";
    var _RNS = "RemoveNetworkServices";
    var _RNe = "RegionNames";
    var _RNes = "ResourceName";
    var _RNo = "RoleName";
    var _RNu = "RuleNumber";
    var _RO = "RdsOptions";
    var _ROI = "ResourceOwnerId";
    var _ROR = "RemoveOperatingRegions";
    var _ROS = "ResourceOverlapStatus";
    var _ROUE = "RemoveOrganizationalUnitExclusions";
    var _ROe = "ResourceOwner";
    var _ROo = "RouteOrigin";
    var _ROu = "RuleOptions";
    var _RP = "ResetPolicy";
    var _RPC = "ReturnPathComponents";
    var _RPCO = "RequesterPeeringConnectionOptions";
    var _RPDN = "RemovePrivateDnsName";
    var _RR = "ReplaceRoute";
    var _RRTA = "ReplaceRouteTableAssociation";
    var _RRTI = "RemoveRouteTableIds";
    var _RRVT = "ReplaceRootVolumeTask";
    var _RRVTI = "ReplaceRootVolumeTaskIds";
    var _RRVTIe = "ReplaceRootVolumeTaskId";
    var _RRVTe = "ReplaceRootVolumeTasks";
    var _RRe = "ResourceRegion";
    var _RS = "ReplacementStrategy";
    var _RSA = "ResetSnapshotAttribute";
    var _RSAo = "RouteServerAssociation";
    var _RSAou = "RouteServerAssociations";
    var _RSE = "RouteServerEndpoint";
    var _RSEI = "RouteServerEndpointId";
    var _RSEIo = "RouteServerEndpointIds";
    var _RSEo = "RouteServerEndpoints";
    var _RSF = "RequestSpotFleet";
    var _RSFRB = "RestoreSnapshotFromRecycleBin";
    var _RSGE = "RevokeSecurityGroupEgress";
    var _RSGI = "RevokeSecurityGroupIngress";
    var _RSGIe = "RemoveSecurityGroupIds";
    var _RSGR = "RevokedSecurityGroupRules";
    var _RSI = "RequestSpotInstances";
    var _RSIAT = "RemoveSupportedIpAddressTypes";
    var _RSIe = "RemoveSubnetIds";
    var _RSIo = "RouteServerId";
    var _RSIou = "RouteServerIds";
    var _RSIu = "RunScheduledInstances";
    var _RSP = "RouteServerPeer";
    var _RSPI = "RouteServerPeerId";
    var _RSPIo = "RouteServerPeerIds";
    var _RSPo = "RouteServerPeers";
    var _RSPou = "RouteServerPropagation";
    var _RSPout = "RouteServerPropagations";
    var _RSR = "RemoveSupportedRegions";
    var _RST = "RestoreSnapshotTier";
    var _RSTe = "RestoreStartTime";
    var _RSe = "ResourceStatement";
    var _RSeg = "RegionalSummaries";
    var _RSo = "RouteServer";
    var _RSou = "RouteServers";
    var _RSout = "RouteStatus";
    var _RT = "ResourceType";
    var _RTAI = "RouteTableAssociationId";
    var _RTGCB = "RemoveTransitGatewayCidrBlocks";
    var _RTGMDA = "RejectTransitGatewayMulticastDomainAssociations";
    var _RTGMGM = "RegisterTransitGatewayMulticastGroupMembers";
    var _RTGMGS = "RegisterTransitGatewayMulticastGroupSources";
    var _RTGPA = "RejectTransitGatewayPeeringAttachment";
    var _RTGR = "ReplaceTransitGatewayRoute";
    var _RTGVA = "RejectTransitGatewayVpcAttachment";
    var _RTI = "RouteTableId";
    var _RTIe = "RequesterTgwInfo";
    var _RTIo = "RouteTableIds";
    var _RTO = "ResourceTypeOptions";
    var _RTR = "RouteTableRoute";
    var _RTV = "RemainingTotalValue";
    var _RTe = "ResourceTypes";
    var _RTel = "ReleaseTime";
    var _RTeq = "RequestTime";
    var _RTes = "ReservationType";
    var _RTeso = "ResourceTag";
    var _RTesou = "ResourceTags";
    var _RTo = "RouteTable";
    var _RTou = "RouteTables";
    var _RUI = "ReplaceUnhealthyInstances";
    var _RUV = "RemainingUpfrontValue";
    var _RV = "ReturnValue";
    var _RVEC = "RejectVpcEndpointConnections";
    var _RVI = "ReferencingVpcId";
    var _RVIe = "RequesterVpcInfo";
    var _RVPC = "RejectVpcPeeringConnection";
    var _RVT = "ReplaceVpnTunnel";
    var _RVe = "ReservationValue";
    var _RWS = "ReplayWindowSize";
    var _Ra = "Ramdisk";
    var _Re = "Resources";
    var _Rea = "Reason";
    var _Rec = "Recurrence";
    var _Reg = "Regions";
    var _Regi = "Region";
    var _Rem = "Remove";
    var _Rep = "Reports";
    var _Req = "Requested";
    var _Res = "Resource";
    var _Rese = "Reservations";
    var _Resu = "Result";
    var _Ret = "Return";
    var _Ro = "Role";
    var _Rou = "Route";
    var _Rout = "Routes";
    var _S = "Source";
    var _SA = "StartupAction";
    var _SAI = "SecondaryAllocationIds";
    var _SAMLPA = "SAMLProviderArn";
    var _SAZ = "SingleAvailabilityZone";
    var _SAo = "SourceAddresses";
    var _SAou = "SourceAddress";
    var _SAour = "SourceArn";
    var _SAu = "SuggestedAccounts";
    var _SAub = "SubnetArn";
    var _SAup = "SupportedArchitectures";
    var _SB = "S3Bucket";
    var _SBM = "SupportedBootModes";
    var _SC = "SubnetConfigurations";
    var _SCA = "ServerCertificateArn";
    var _SCAE = "SerialConsoleAccessEnabled";
    var _SCB = "SourceCidrBlock";
    var _SCCDM = "SnapshotCopyCompletionDurationMinutes";
    var _SCR = "SourceCapacityReservation";
    var _SCRI = "SourceCapacityReservationId";
    var _SCRIu = "SubnetCidrReservationId";
    var _SCRu = "SubnetCidrReservation";
    var _SCSIG = "SustainedClockSpeedInGhz";
    var _SCc = "ScopeCount";
    var _SCe = "ServiceConfiguration";
    var _SCer = "ServiceConfigurations";
    var _SCn = "SnapshotConfiguration";
    var _SD = "StartDate";
    var _SDC = "SourceDestCheck";
    var _SDI = "SendDiagnosticInterrupt";
    var _SDIH = "SlotDurationInHours";
    var _SDLTV = "SuccessfullyDeletedLaunchTemplateVersions";
    var _SDPR = "StartDeclarativePoliciesReport";
    var _SDR = "StartDateRange";
    var _SDS = "SpotDatafeedSubscription";
    var _SDV = "SetDefaultVersion";
    var _SDe = "ServiceDetails";
    var _SDn = "SnapshotDetails";
    var _SDp = "SpreadDomain";
    var _SDu = "SubDomain";
    var _SEL = "S3ExportLocation";
    var _SET = "SampledEndTime";
    var _SF = "SupportedFeatures";
    var _SFC = "SuccessfulFleetCancellations";
    var _SFD = "SuccessfulFleetDeletions";
    var _SFII = "SourceFpgaImageId";
    var _SFR = "SuccessfulFleetRequests";
    var _SFRC = "SpotFleetRequestConfig";
    var _SFRCp = "SpotFleetRequestConfigs";
    var _SFRI = "SpotFleetRequestIds";
    var _SFRIp = "SpotFleetRequestId";
    var _SFRS = "SpotFleetRequestState";
    var _SG = "SecurityGroups";
    var _SGA = "SecurityGroupArn";
    var _SGFV = "SecurityGroupForVpcs";
    var _SGI = "SecurityGroupIds";
    var _SGIe = "SecurityGroupId";
    var _SGR = "SecurityGroupRules";
    var _SGRA = "SecurityGroupRuleArn";
    var _SGRD = "SecurityGroupRuleDescriptions";
    var _SGRI = "SecurityGroupRuleIds";
    var _SGRIe = "SecurityGroupRuleId";
    var _SGRS = "SecurityGroupReferencingSupport";
    var _SGRSe = "SecurityGroupReferenceSet";
    var _SGRe = "SecurityGroupRule";
    var _SGVA = "SecurityGroupVpcAssociations";
    var _SGe = "SecurityGroup";
    var _SH = "StartHour";
    var _SI2 = "StartInstances";
    var _SIAS = "ScheduledInstanceAvailabilitySet";
    var _SIAT = "SupportedIpAddressTypes";
    var _SICR = "SubnetIpv4CidrReservations";
    var _SICRu = "SubnetIpv6CidrReservations";
    var _SICS = "SuccessfulInstanceCreditSpecifications";
    var _SIGB = "SizeInGB";
    var _SII = "SourceImageId";
    var _SIIc = "ScheduledInstanceIds";
    var _SIIch = "ScheduledInstanceId";
    var _SIIo = "SourceInstanceId";
    var _SIMB = "SizeInMiB";
    var _SIP = "StaleIpPermissions";
    var _SIPE = "StaleIpPermissionsEgress";
    var _SIPI = "SourceIpamPoolId";
    var _SIR = "SpotInstanceRequests";
    var _SIRI = "SpotInstanceRequestIds";
    var _SIRIp = "SpotInstanceRequestId";
    var _SIRo = "SourceImageRegion";
    var _SIS = "ScheduledInstanceSet";
    var _SIT = "SpotInstanceType";
    var _SITR = "StoreImageTaskResults";
    var _SITi = "SingleInstanceType";
    var _SIe = "ServiceId";
    var _SIer = "ServiceIds";
    var _SIn = "SnapshotId";
    var _SIna = "SnapshotIds";
    var _SIo = "SourceIp";
    var _SIt = "StopInstances";
    var _SIta = "StartingInstances";
    var _SIto = "StoppingInstances";
    var _SIu = "SubnetIds";
    var _SIub = "SubnetId";
    var _SIubs = "SubsystemId";
    var _SK = "S3Key";
    var _SKo = "S3objectKey";
    var _SL = "SnapshotLocation";
    var _SLGR = "SearchLocalGatewayRoutes";
    var _SLVI = "ServiceLinkVirtualInterfaces";
    var _SLVIA = "ServiceLinkVirtualInterfaceArn";
    var _SLVII = "ServiceLinkVirtualInterfaceIds";
    var _SLVIIe = "ServiceLinkVirtualInterfaceId";
    var _SLo = "S3Location";
    var _SLp = "SpreadLevel";
    var _SM = "ServiceManaged";
    var _SMPPOLP = "SpotMaxPricePercentageOverLowestPrice";
    var _SMS = "SpotMaintenanceStrategies";
    var _SMTP = "SpotMaxTotalPrice";
    var _SMt = "StatusMessage";
    var _SMta = "StateMessage";
    var _SN2 = "SessionNumber";
    var _SNA = "ServiceNetworkArn";
    var _SNE = "SnsNotificationsEnabled";
    var _SNIA = "StartNetworkInsightsAnalysis";
    var _SNIASA = "StartNetworkInsightsAccessScopeAnalysis";
    var _SNN = "ServiceNetworkName";
    var _SNS = "SriovNetSupport";
    var _SNe = "ServiceName";
    var _SNeq = "SequenceNumber";
    var _SNer = "ServiceNames";
    var _SO = "SpotOptions";
    var _SOS = "SkipOsShutdown";
    var _SOT = "S3ObjectTags";
    var _SP = "S3Prefix";
    var _SPA = "SamlProviderArn";
    var _SPH = "SpotPriceHistory";
    var _SPI = "ServicePermissionId";
    var _SPIA = "SecondaryPrivateIpAddresses";
    var _SPIAC = "SecondaryPrivateIpAddressCount";
    var _SPL = "SourcePrefixLists";
    var _SPR = "SourcePortRange";
    var _SPRo = "SourcePortRanges";
    var _SPS = "SpotPlacementScores";
    var _SPo = "SourcePorts";
    var _SPp = "SpotPrice";
    var _SQPD = "SuccessfulQueuedPurchaseDeletions";
    var _SR = "SourceRegion";
    var _SRDT = "SupportedRootDeviceTypes";
    var _SRO = "StaticRoutesOnly";
    var _SRT = "SubnetRouteTable";
    var _SRe = "ServiceRegion";
    var _SRer = "ServiceRegions";
    var _SRerv = "ServiceResource";
    var _SRo = "SourceResource";
    var _SRt = "StateReason";
    var _SRu = "SupportedRegions";
    var _SS = "SseSpecification";
    var _SSGN = "SourceSecurityGroupName";
    var _SSGOI = "SourceSecurityGroupOwnerId";
    var _SSGS = "StaleSecurityGroupSet";
    var _SSI = "SourceSnapshotId";
    var _SSIo = "SourceSnapshotIds";
    var _SSP = "SelfServicePortal";
    var _SSPU = "SelfServicePortalUrl";
    var _SSS = "StaticSourcesSupport";
    var _SSSAMLPA = "SelfServiceSAMLProviderArn";
    var _SSSPA = "SelfServiceSamlProviderArn";
    var _SST = "SampledStartTime";
    var _SSTR = "SlotStartTimeRange";
    var _SSe = "ServiceState";
    var _SSu = "SupportedStrategies";
    var _SSy = "SystemStatus";
    var _ST2 = "SplitTunnel";
    var _STA = "SnsTopicArn";
    var _STC = "SpotTargetCapacity";
    var _STD = "SnapshotTaskDetail";
    var _STFR = "StoreTaskFailureReason";
    var _STGMG = "SearchTransitGatewayMulticastGroups";
    var _STGR = "SearchTransitGatewayRoutes";
    var _STH = "SessionTimeoutHours";
    var _STR = "SkipTunnelReplacement";
    var _STRt = "StateTransitionReason";
    var _STS = "SnapshotTierStatuses";
    var _STSt = "StoreTaskState";
    var _STT = "StateTransitionTime";
    var _STa = "SampleType";
    var _STam = "SampleTime";
    var _STe = "ServiceType";
    var _STo = "SourceType";
    var _STs = "SseType";
    var _STt = "StartTime";
    var _STto = "StorageTier";
    var _SUC = "SupportedUsageClasses";
    var _SV = "SourceVersion";
    var _SVESPDV = "StartVpcEndpointServicePrivateDnsVerification";
    var _SVI = "SubsystemVendorId";
    var _SVT = "SupportedVirtualizationTypes";
    var _SVh = "ShellVersion";
    var _SVo = "SourceVpc";
    var _SVu = "SupportedVersions";
    var _SWD = "StartWeekDay";
    var _S_ = "S3";
    var _Sc = "Scope";
    var _Sco = "Score";
    var _Scop = "Scopes";
    var _Se = "Service";
    var _Set = "Settings";
    var _Si = "Signature";
    var _Siz = "Size";
    var _Sn = "Snapshots";
    var _So = "Sources";
    var _Soc = "Sockets";
    var _Sof = "Software";
    var _St = "Storage";
    var _Sta = "Statistic";
    var _Star = "Start";
    var _Stat = "State";
    var _Statu = "Status";
    var _Status = "Statuses";
    var _Str = "Strategy";
    var _Su = "Subnet";
    var _Sub = "Subscriptions";
    var _Subn = "Subnets";
    var _Suc = "Successful";
    var _Succ = "Success";
    var _T2 = "Type";
    var _TAAC = "TotalAvailableAddressCount";
    var _TAC = "TotalAvailableCapacity";
    var _TACo = "TotalAddressCount";
    var _TAI = "TransferAccountId";
    var _TC2 = "TargetConfigurations";
    var _TCS = "TargetCapacitySpecification";
    var _TCUT = "TargetCapacityUnitType";
    var _TCVC = "TerminateClientVpnConnections";
    var _TCVR = "TargetConfigurationValueRollup";
    var _TCVS = "TargetConfigurationValueSet";
    var _TCa = "TargetCapacity";
    var _TCar = "TargetConfiguration";
    var _TCo = "TotalCapacity";
    var _TD = "TrafficDirection";
    var _TDe = "TerminationDelay";
    var _TE = "TargetEnvironment";
    var _TED = "TermEndDate";
    var _TET = "TcpEstablishedTimeout";
    var _TEo = "TokenEndpoint";
    var _TFC = "TotalFulfilledCapacity";
    var _TFMIMB = "TotalFpgaMemoryInMiB";
    var _TG = "TargetGroups";
    var _TGA = "TransitGatewayAddress";
    var _TGAI = "TransitGatewayAttachmentId";
    var _TGAIr = "TransitGatewayAttachmentIds";
    var _TGAP = "TransitGatewayAttachmentPropagations";
    var _TGAr = "TransitGatewayAttachments";
    var _TGAra = "TransitGatewayAttachment";
    var _TGAran = "TransitGatewayArn";
    var _TGArans = "TransitGatewayAsn";
    var _TGC = "TargetGroupsConfig";
    var _TGCB = "TransitGatewayCidrBlocks";
    var _TGCP = "TransitGatewayConnectPeer";
    var _TGCPI = "TransitGatewayConnectPeerId";
    var _TGCPIr = "TransitGatewayConnectPeerIds";
    var _TGCPr = "TransitGatewayConnectPeers";
    var _TGCr = "TransitGatewayConnect";
    var _TGCra = "TransitGatewayConnects";
    var _TGI = "TransitGatewayId";
    var _TGIr = "TransitGatewayIds";
    var _TGMD = "TransitGatewayMulticastDomain";
    var _TGMDA = "TransitGatewayMulticastDomainArn";
    var _TGMDI = "TransitGatewayMulticastDomainId";
    var _TGMDIr = "TransitGatewayMulticastDomainIds";
    var _TGMDr = "TransitGatewayMulticastDomains";
    var _TGMIMB = "TotalGpuMemoryInMiB";
    var _TGOI = "TransitGatewayOwnerId";
    var _TGPA = "TransitGatewayPeeringAttachment";
    var _TGPAr = "TransitGatewayPeeringAttachments";
    var _TGPLR = "TransitGatewayPrefixListReference";
    var _TGPLRr = "TransitGatewayPrefixListReferences";
    var _TGPT = "TransitGatewayPolicyTable";
    var _TGPTE = "TransitGatewayPolicyTableEntries";
    var _TGPTI = "TransitGatewayPolicyTableId";
    var _TGPTIr = "TransitGatewayPolicyTableIds";
    var _TGPTr = "TransitGatewayPolicyTables";
    var _TGRT = "TransitGatewayRouteTable";
    var _TGRTA = "TransitGatewayRouteTableAnnouncement";
    var _TGRTAI = "TransitGatewayRouteTableAnnouncementId";
    var _TGRTAIr = "TransitGatewayRouteTableAnnouncementIds";
    var _TGRTAr = "TransitGatewayRouteTableAnnouncements";
    var _TGRTI = "TransitGatewayRouteTableId";
    var _TGRTIr = "TransitGatewayRouteTableIds";
    var _TGRTP = "TransitGatewayRouteTablePropagations";
    var _TGRTR = "TransitGatewayRouteTableRoute";
    var _TGRTr = "TransitGatewayRouteTables";
    var _TGVA = "TransitGatewayVpcAttachment";
    var _TGVAr = "TransitGatewayVpcAttachments";
    var _TGr = "TransitGateway";
    var _TGra = "TransitGateways";
    var _THP = "TotalHourlyPrice";
    var _TI = "TerminateInstances";
    var _TIAT = "TrafficIpAddressType";
    var _TIC = "TunnelInsideCidr";
    var _TICo = "TotalInstanceCount";
    var _TII = "TrunkInterfaceId";
    var _TIIC = "TunnelInsideIpv6Cidr";
    var _TIIV = "TunnelInsideIpVersion";
    var _TIMIMB = "TotalInferenceMemoryInMiB";
    var _TIWE = "TerminateInstancesWithExpiration";
    var _TIa = "TargetId";
    var _TIar = "TargetIops";
    var _TIe = "TenantId";
    var _TIer = "TerminatingInstances";
    var _TLSGB = "TotalLocalStorageGB";
    var _TMAE = "TargetMultiAttachEnabled";
    var _TMF = "TrafficMirrorFilter";
    var _TMFI = "TrafficMirrorFilterId";
    var _TMFIr = "TrafficMirrorFilterIds";
    var _TMFR = "TrafficMirrorFilterRule";
    var _TMFRI = "TrafficMirrorFilterRuleId";
    var _TMFRIr = "TrafficMirrorFilterRuleIds";
    var _TMFRr = "TrafficMirrorFilterRules";
    var _TMFr = "TrafficMirrorFilters";
    var _TMMIMB = "TotalMediaMemoryInMiB";
    var _TMS = "TrafficMirrorSession";
    var _TMSI = "TrafficMirrorSessionId";
    var _TMSIr = "TrafficMirrorSessionIds";
    var _TMSr = "TrafficMirrorSessions";
    var _TMT = "TrafficMirrorTarget";
    var _TMTI = "TrafficMirrorTargetId";
    var _TMTIr = "TrafficMirrorTargetIds";
    var _TMTr = "TrafficMirrorTargets";
    var _TN = "TokenName";
    var _TNC = "TargetNetworkCidr";
    var _TNDMIMB = "TotalNeuronDeviceMemoryInMiB";
    var _TNI = "TargetNetworkId";
    var _TO = "TunnelOptions";
    var _TOAT = "TransferOfferAcceptedTimestamp";
    var _TOET = "TransferOfferExpirationTimestamp";
    var _TP = "ToPort";
    var _TPC = "ThreadsPerCore";
    var _TPT = "TrustProviderType";
    var _TPr = "TransportProtocol";
    var _TR = "ThroughResources";
    var _TRC = "TargetResourceCount";
    var _TRD = "TemporaryRestoreDays";
    var _TRTI = "TargetRouteTableId";
    var _TRi = "TimeRanges";
    var _TS = "TagSpecifications";
    var _TSD = "TermStartDate";
    var _TSIGB = "TotalSizeInGB";
    var _TSIH = "TotalScheduledInstanceHours";
    var _TST = "TieringStartTime";
    var _TSTa = "TaskStartTime";
    var _TSa = "TargetSubnet";
    var _TSag = "TagSet";
    var _TSagp = "TagSpecification";
    var _TSar = "TargetSize";
    var _TSas = "TaskState";
    var _TSp = "TpmSupport";
    var _TT = "TrafficType";
    var _TTC = "TotalTargetCapacity";
    var _TTGAI = "TransportTransitGatewayAttachmentId";
    var _TTa = "TaskType";
    var _TTar = "TargetThroughput";
    var _TTr = "TransferType";
    var _TUC = "TotalUnavailableCapacity";
    var _TUP = "TotalUpfrontPrice";
    var _TV = "TargetVersion";
    var _TVC = "TotalVCpus";
    var _TVSI = "TargetVpcSubnetId";
    var _TVT = "TargetVolumeType";
    var _TVo = "TokenValue";
    var _Ta = "Tags";
    var _Tag = "Tag";
    var _Te = "Tenancy";
    var _Ter = "Term";
    var _Th = "Throughput";
    var _Ti = "Tier";
    var _Tim = "Timestamp";
    var _To = "To";
    var _U = "Url";
    var _UB = "UserBucket";
    var _UC = "UltraserverCount";
    var _UCs = "UsageCount";
    var _UD = "UserData";
    var _UDLTV = "UnsuccessfullyDeletedLaunchTemplateVersions";
    var _UDe = "UefiData";
    var _UDp = "UpdatedDate";
    var _UDpd = "UpdateDate";
    var _UE = "UploadEnd";
    var _UF = "UpfrontFee";
    var _UFD = "UnsuccessfulFleetDeletions";
    var _UFR = "UnsuccessfulFleetRequests";
    var _UG = "UserGroups";
    var _UI = "UnmonitorInstances";
    var _UIA = "UnassignIpv6Addresses";
    var _UIAn = "UnassignedIpv6Addresses";
    var _UIC = "UsedInstanceCount";
    var _UICS = "UnsuccessfulInstanceCreditSpecifications";
    var _UIE = "UserInfoEndpoint";
    var _UIGP = "UserIdGroupPairs";
    var _UIP = "UnknownIpPermissions";
    var _UIPn = "UnassignedIpv6Prefixes";
    var _UIs = "UserId";
    var _UIse = "UserIds";
    var _ULI = "UseLongIds";
    var _ULIA = "UseLongIdsAggregated";
    var _UO = "UsageOperation";
    var _UOUT = "UsageOperationUpdateTime";
    var _UP = "UploadPolicy";
    var _UPIA = "UnassignPrivateIpAddresses";
    var _UPNGA = "UnassignPrivateNatGatewayAddress";
    var _UPS = "UploadPolicySignature";
    var _UPp = "UpfrontPrice";
    var _UPs = "UsagePrice";
    var _URBOI = "UnusedReservationBillingOwnerId";
    var _US = "UnlockSnapshot";
    var _USGRDE = "UpdateSecurityGroupRuleDescriptionsEgress";
    var _USGRDI = "UpdateSecurityGroupRuleDescriptionsIngress";
    var _UST = "UdpStreamTimeout";
    var _USp = "UploadSize";
    var _USpl = "UploadStart";
    var _USs = "UsageStrategy";
    var _UT = "UdpTimeout";
    var _UTP = "UserTrustProvider";
    var _UTPT = "UserTrustProviderType";
    var _UTl = "UltraserverType";
    var _UTp = "UpdateTime";
    var _Un = "Unsuccessful";
    var _Us = "Username";
    var _V2 = "Version";
    var _VA = "VpcAttachment";
    var _VAE = "VerifiedAccessEndpoint";
    var _VAEI = "VerifiedAccessEndpointId";
    var _VAEIe = "VerifiedAccessEndpointIds";
    var _VAET = "VerifiedAccessEndpointTargets";
    var _VAETD = "VerifiedAccessEndpointTargetDns";
    var _VAETIA = "VerifiedAccessEndpointTargetIpAddress";
    var _VAEe = "VerifiedAccessEndpoints";
    var _VAG = "VerifiedAccessGroup";
    var _VAGA = "VerifiedAccessGroupArn";
    var _VAGI = "VerifiedAccessGroupId";
    var _VAGIe = "VerifiedAccessGroupIds";
    var _VAGe = "VerifiedAccessGroups";
    var _VAI = "VerifiedAccessInstance";
    var _VAII = "VerifiedAccessInstanceId";
    var _VAIIe = "VerifiedAccessInstanceIds";
    var _VAIe = "VerifiedAccessInstances";
    var _VATP = "VerifiedAccessTrustProvider";
    var _VATPI = "VerifiedAccessTrustProviderId";
    var _VATPIe = "VerifiedAccessTrustProviderIds";
    var _VATPe = "VerifiedAccessTrustProviders";
    var _VAp = "VpcAttachments";
    var _VBPAE = "VpcBlockPublicAccessExclusion";
    var _VBPAEp = "VpcBlockPublicAccessExclusions";
    var _VBPAO = "VpcBlockPublicAccessOptions";
    var _VC = "VpnConnection";
    var _VCC = "VCpuCount";
    var _VCDSC = "VpnConnectionDeviceSampleConfiguration";
    var _VCDT = "VpnConnectionDeviceTypes";
    var _VCDTI = "VpnConnectionDeviceTypeId";
    var _VCI = "VpnConnectionId";
    var _VCIp = "VpnConnectionIds";
    var _VCIpu = "VCpuInfo";
    var _VCa = "ValidCores";
    var _VCp = "VpnConnections";
    var _VD = "VersionDescription";
    var _VE = "VpcEndpoint";
    var _VEA = "VpcEndpointAssociations";
    var _VEC = "VpcEndpointConnections";
    var _VECI = "VpcEncryptionControlId";
    var _VECIp = "VpcEndpointConnectionId";
    var _VEI = "VpcEndpointIds";
    var _VEIp = "VpcEndpointId";
    var _VEO = "VpcEndpointOwner";
    var _VEPS = "VpcEndpointPolicySupported";
    var _VER = "VpcEndpointRegion";
    var _VES = "VpnEcmpSupport";
    var _VESp = "VpcEndpointService";
    var _VESpc = "VpcEndpointState";
    var _VET = "VpcEndpointType";
    var _VEp = "VpcEndpoints";
    var _VF = "ValidFrom";
    var _VFR = "ValidationFailureReason";
    var _VG = "VpnGateway";
    var _VGI = "VpnGatewayId";
    var _VGIp = "VpnGatewayIds";
    var _VGp = "VpnGateways";
    var _VI = "VpcId";
    var _VIR = "VolumeInitializationRate";
    var _VIe = "VendorId";
    var _VIl = "VlanId";
    var _VIo = "VolumeId";
    var _VIol = "VolumeIds";
    var _VIp = "VpcIds";
    var _VM = "VerificationMethod";
    var _VMo = "VolumesModifications";
    var _VMol = "VolumeModification";
    var _VN = "VirtualName";
    var _VNI = "VirtualNetworkId";
    var _VNe = "VersionNumber";
    var _VOI = "VolumeOwnerId";
    var _VOIp = "VpcOwnerId";
    var _VP = "VpnPort";
    var _VPC = "VpcPeeringConnection";
    var _VPCI = "VpcPeeringConnectionId";
    var _VPCIp = "VpcPeeringConnectionIds";
    var _VPCp = "VpcPeeringConnections";
    var _VPG = "VirtualPrivateGateway";
    var _VPp = "VpnProtocol";
    var _VPpc = "VpcPeering";
    var _VS = "VolumeSize";
    var _VSo = "VolumeStatuses";
    var _VSol = "VolumeStatus";
    var _VT = "VolumeType";
    var _VTOIA = "VpnTunnelOutsideIpAddress";
    var _VTPC = "ValidThreadsPerCore";
    var _VTg = "VgwTelemetry";
    var _VTi = "VirtualizationTypes";
    var _VTir = "VirtualizationType";
    var _VU = "ValidUntil";
    var _Va2 = "Value";
    var _Val = "Values";
    var _Ve = "Versions";
    var _Ven = "Vendor";
    var _Vl = "Vlan";
    var _Vo = "Volume";
    var _Vol = "Volumes";
    var _Vp = "Vpc";
    var _Vpc = "Vpcs";
    var _W = "Weight";
    var _WBC = "WithdrawByoipCidr";
    var _WC = "WithCooldown";
    var _WCe = "WeightedCapacity";
    var _WM = "WarningMessage";
    var _WU = "WakeUp";
    var _Wa = "Warning";
    var _ZI = "ZoneIds";
    var _ZIo = "ZoneId";
    var _ZN = "ZoneNames";
    var _ZNo = "ZoneName";
    var _ZT = "ZoneType";
    var _a2 = "associations";
    var _aA = "asnAssociation";
    var _aAC = "availableAddressCount";
    var _aAI = "awsAccountId";
    var _aAId = "addressAllocationId";
    var _aAS = "asnAssociationSet";
    var _aASA = "autoAcceptSharedAssociations";
    var _aASAu = "autoAcceptSharedAttachments";
    var _aASc = "accountAttributeSet";
    var _aASd = "additionalAccountSet";
    var _aAc = "accessAll";
    var _aBHP = "actualBlockHourlyPrice";
    var _aC = "availableCapacity";
    var _aCIA = "associateCarrierIpAddress";
    var _aCT = "archivalCompleteTime";
    var _aCc = "acceleratorCount";
    var _aCd = "addressCount";
    var _aD = "activeDirectory";
    var _aDNL = "allocationDefaultNetmaskLength";
    var _aDRFRV = "allowDnsResolutionFromRemoteVpc";
    var _aDRTI = "associationDefaultRouteTableId";
    var _aDS = "additionalDetailSet";
    var _aDT = "additionalDetailType";
    var _aDn = "announcementDirection";
    var _aDp = "applicationDomain";
    var _aE = "authorizationEndpoint";
    var _aEC = "analyzedEniCount";
    var _aEFLCLTRV = "allowEgressFromLocalClassicLinkToRemoteVpc";
    var _aEFLVTRCL = "allowEgressFromLocalVpcToRemoteClassicLink";
    var _aEIO = "autoEnableIO";
    var _aES = "attachedEbsStatus";
    var _aF = "addressFamily";
    var _aFS = "analysisFindingSet";
    var _aI = "allocationId";
    var _aIA = "assignedIpv6Addresses";
    var _aIAC = "availableIpAddressCount";
    var _aIAOC = "assignIpv6AddressOnCreation";
    var _aIC = "availableInstanceCapacity";
    var _aICv = "availableInstanceCount";
    var _aIPS = "assignedIpv6PrefixSet";
    var _aIPSs = "assignedIpv4PrefixSet";
    var _aIS = "activeInstanceSet";
    var _aISS = "allowedImagesSettingsState";
    var _aISc = "accountIdSet";
    var _aITS = "allowedInstanceTypeSet";
    var _aIc = "accountId";
    var _aIm = "amiId";
    var _aIp = "appleInternal";
    var _aIs = "associationId";
    var _aIss = "assetId";
    var _aIt = "attachmentId";
    var _aIu = "autoImport";
    var _aL = "accountLevel";
    var _aLI = "amiLaunchIndex";
    var _aLc = "accessLogs";
    var _aMIT = "allowsMultipleInstanceTypes";
    var _aMNL = "allocationMinNetmaskLength";
    var _aMNLl = "allocationMaxNetmaskLength";
    var _aMS = "acceleratorManufacturerSet";
    var _aMSp = "applianceModeSupport";
    var _aN = "attributeName";
    var _aNS = "acceleratorNameSet";
    var _aO = "authenticationOptions";
    var _aOI = "addressOwnerId";
    var _aP = "allowedPrincipals";
    var _aPCO = "accepterPeeringConnectionOptions";
    var _aPHS = "alternatePathHintSet";
    var _aPIA = "associatePublicIpAddress";
    var _aPIAS = "assignedPrivateIpAddressesSet";
    var _aPS = "addedPrincipalSet";
    var _aPSs = "asPathSet";
    var _aPu = "autoPlacement";
    var _aR = "authorizationRule";
    var _aRA = "associatedRoleArn";
    var _aRAd = "additionalRoutesAvailable";
    var _aRAs = "associatedResourceAccessibility";
    var _aRAss = "associatedResourceArn";
    var _aRC = "acceptedRouteCount";
    var _aRP = "areRoutesPersisted";
    var _aRS = "associatedRoleSet";
    var _aRSu = "autoRecoverySupported";
    var _aRTS = "allocationResourceTagSet";
    var _aRc = "aclRule";
    var _aRcc = "acceptanceRequired";
    var _aRd = "addressRegion";
    var _aRs = "associatedResource";
    var _aRu = "autoRecovery";
    var _aRw = "awsRegion";
    var _aS = "associationState";
    var _aSA = "amazonSideAsn";
    var _aSS = "amdSevSnp";
    var _aSSs = "associatedSubnetSet";
    var _aSSt = "attributeSummarySet";
    var _aSc = "activityStatus";
    var _aSct = "actionsSet";
    var _aSd = "addressSet";
    var _aSdd = "addressesSet";
    var _aSl = "allocationStrategy";
    var _aSn = "analysisStatus";
    var _aSs = "associationStatus";
    var _aSss = "associationSet";
    var _aSt = "attachmentSet";
    var _aStt = "attachmentStatuses";
    var _aSw = "awsService";
    var _aT = "addressTransfer";
    var _aTGAI = "accepterTransitGatewayAttachmentId";
    var _aTI = "accepterTgwInfo";
    var _aTMMB = "acceleratorTotalMemoryMiB";
    var _aTN = "associatedTargetNetwork";
    var _aTS = "addressTransferStatus";
    var _aTSc = "acceleratorTypeSet";
    var _aTSd = "addressTransferSet";
    var _aTd = "addressType";
    var _aTdd = "addressingType";
    var _aTl = "allocationType";
    var _aTll = "allocationTime";
    var _aTs = "associationTarget";
    var _aTt = "attachTime";
    var _aTtt = "attachedTo";
    var _aTtta = "attachmentType";
    var _aV = "attributeValue";
    var _aVC = "availableVCpus";
    var _aVI = "accepterVpcInfo";
    var _aVS = "attributeValueSet";
    var _aVTS = "activeVpnTunnelStatus";
    var _aZ = "availabilityZone";
    var _aZG = "availabilityZoneGroup";
    var _aZI = "availabilityZoneId";
    var _aZIS = "availabilityZoneIdSet";
    var _aZIv = "availabilityZoneInfo";
    var _aZS = "availabilityZoneSet";
    var _ac = "acl";
    var _acc = "accelerators";
    var _act = "active";
    var _ad = "address";
    var _af = "affinity";
    var _am = "amount";
    var _ar = "arn";
    var _arc = "architecture";
    var _as = "asn";
    var _ass = "association";
    var _at = "attachment";
    var _att = "attachments";
    var _b = "byoasn";
    var _bA = "bgpAsn";
    var _bAE = "bgpAsnExtended";
    var _bBIG = "baselineBandwidthInGbps";
    var _bBIM = "baselineBandwidthInMbps";
    var _bC = "byoipCidr";
    var _bCS = "byoipCidrSet";
    var _bCg = "bgpConfigurations";
    var _bCy = "bytesConverted";
    var _bDM = "blockDeviceMapping";
    var _bDMS = "blockDeviceMappingSet";
    var _bDMl = "blockDurationMinutes";
    var _bEBM = "baselineEbsBandwidthMbps";
    var _bEDNS = "baseEndpointDnsNameSet";
    var _bI = "bundleId";
    var _bII = "branchInterfaceId";
    var _bIT = "bundleInstanceTask";
    var _bITS = "bundleInstanceTasksSet";
    var _bIa = "baselineIops";
    var _bM = "bootMode";
    var _bMa = "bareMetal";
    var _bN = "bucketName";
    var _bO = "bgpOptions";
    var _bOu = "bucketOwner";
    var _bP = "burstablePerformance";
    var _bPAS = "blockPublicAccessStates";
    var _bPF = "baselinePerformanceFactors";
    var _bPS = "burstablePerformanceSupported";
    var _bS = "byoasnSet";
    var _bSa = "baseSystem";
    var _bSf = "bfdStatus";
    var _bSg = "bgpStatus";
    var _bT = "bannerText";
    var _bTIMB = "baselineThroughputInMBps";
    var _bW = "bandwidthWeighting";
    var _bWa = "bandwidthWeightings";
    var _bl = "blackhole";
    var _bu = "bucket";
    var _c = "component";
    var _cA = "componentArn";
    var _cAS = "capacityAllocationSet";
    var _cAUS = "coipAddressUsageSet";
    var _cAe = "certificateArn";
    var _cAo = "componentAccount";
    var _cAr = "createdAt";
    var _cB = "cidrBlock";
    var _cBA = "cidrBlockAssociation";
    var _cBAS = "cidrBlockAssociationSet";
    var _cBDH = "capacityBlockDurationHours";
    var _cBDM = "capacityBlockDurationMinutes";
    var _cBEDH = "capacityBlockExtensionDurationHours";
    var _cBEED = "capacityBlockExtensionEndDate";
    var _cBEOI = "capacityBlockExtensionOfferingId";
    var _cBEOS = "capacityBlockExtensionOfferingSet";
    var _cBEPD = "capacityBlockExtensionPurchaseDate";
    var _cBES = "capacityBlockExtensionStatus";
    var _cBESD = "capacityBlockExtensionStartDate";
    var _cBESa = "capacityBlockExtensionSet";
    var _cBI = "capacityBlockId";
    var _cBOI = "capacityBlockOfferingId";
    var _cBOS = "capacityBlockOfferingSet";
    var _cBS = "capacityBlockSet";
    var _cBSS = "capacityBlockStatusSet";
    var _cBSi = "cidrBlockState";
    var _cBSid = "cidrBlockSet";
    var _cBr = "createdBy";
    var _cC = "currencyCode";
    var _cCB = "clientCidrBlock";
    var _cCO = "clientConnectOptions";
    var _cCRFE = "cancelCapacityReservationFleetError";
    var _cCl = "clientConfiguration";
    var _cCo = "coreCount";
    var _cCoi = "coipCidr";
    var _cCp = "cpuCredits";
    var _cD = "createDate";
    var _cDM = "completionDurationMinutes";
    var _cDr = "creationDate";
    var _cDre = "createdDate";
    var _cE = "connectionEvents";
    var _cECSD = "cidrEndpointsCustomSubDomain";
    var _cED = "commitmentEndDate";
    var _cET = "connectionEstablishedTime";
    var _cETo = "connectionEndTime";
    var _cEr = "cronExpression";
    var _cF = "containerFormat";
    var _cFS = "currentFleetState";
    var _cG = "carrierGateway";
    var _cGC = "customerGatewayConfiguration";
    var _cGI = "carrierGatewayId";
    var _cGIu = "customerGatewayId";
    var _cGS = "carrierGatewaySet";
    var _cGSu = "customerGatewaySet";
    var _cGu = "customerGateway";
    var _cGur = "currentGeneration";
    var _cI = "carrierIp";
    var _cIA = "clientIpv6Address";
    var _cIBM = "currentInstanceBootMode";
    var _cIC = "committedInstanceCount";
    var _cIi = "cidrIp";
    var _cIid = "cidrIpv6";
    var _cIidr = "cidrIpv4";
    var _cIl = "clientIp";
    var _cIli = "clientId";
    var _cIo = "componentId";
    var _cIom = "commitmentInfo";
    var _cIon = "connectionId";
    var _cIop = "coIp";
    var _cIor = "coreInfo";
    var _cLB = "classicLoadBalancers";
    var _cLBC = "classicLoadBalancersConfig";
    var _cLBL = "classicLoadBalancerListener";
    var _cLBO = "clientLoginBannerOptions";
    var _cLDS = "classicLinkDnsSupported";
    var _cLE = "classicLinkEnabled";
    var _cLO = "connectionLogOptions";
    var _cMKE = "customerManagedKeyEnabled";
    var _cMS = "cpuManufacturerSet";
    var _cN = "commonName";
    var _cNA = "coreNetworkArn";
    var _cNAA = "coreNetworkAttachmentArn";
    var _cNAo = "connectionNotificationArn";
    var _cNI = "connectionNotificationId";
    var _cNIo = "coreNetworkId";
    var _cNS = "connectionNotificationState";
    var _cNSo = "connectionNotificationSet";
    var _cNT = "connectionNotificationType";
    var _cNo = "connectionNotification";
    var _cO = "cpuOptions";
    var _cOI = "customerOwnedIp";
    var _cOIP = "customerOwnedIpv4Pool";
    var _cOP = "coolOffPeriod";
    var _cOPEO = "coolOffPeriodExpiresOn";
    var _cOi = "cidrOptions";
    var _cP = "coipPool";
    var _cPC = "connectPeerConfiguration";
    var _cPI = "coipPoolId";
    var _cPS = "coipPoolSet";
    var _cR = "capacityReservation";
    var _cRA = "capacityReservationArn";
    var _cRBRS = "capacityReservationBillingRequestSet";
    var _cRCC = "clientRootCertificateChain";
    var _cREO = "clientRouteEnforcementOptions";
    var _cRFA = "capacityReservationFleetArn";
    var _cRFI = "capacityReservationFleetId";
    var _cRFS = "capacityReservationFleetSet";
    var _cRGS = "capacityReservationGroupSet";
    var _cRI = "capacityReservationId";
    var _cRIS = "capacityReservationIdSet";
    var _cRIa = "capacityReservationInfo";
    var _cRL = "certificateRevocationList";
    var _cRO = "capacityReservationOptions";
    var _cRP = "capacityReservationPreference";
    var _cRRGA = "capacityReservationResourceGroupArn";
    var _cRS = "capacityReservationSet";
    var _cRSS = "capacityReservationStatusSet";
    var _cRSa = "capacityReservationSpecification";
    var _cRT = "capacityReservationTarget";
    var _cRa = "capacityRebalance";
    var _cRo = "componentRegion";
    var _cS = "cidrSet";
    var _cSBN = "certificateS3BucketName";
    var _cSFRS = "currentSpotFleetRequestState";
    var _cSOK = "certificateS3ObjectKey";
    var _cSl = "clientSecret";
    var _cSo = "complianceStatus";
    var _cSon = "configurationState";
    var _cSonn = "connectionStatuses";
    var _cSr = "creditSpecification";
    var _cSu = "currentState";
    var _cSur = "currentStatus";
    var _cT = "clientToken";
    var _cTC = "connectionTrackingConfiguration";
    var _cTI = "conversionTaskId";
    var _cTS = "connectionTrackingSpecification";
    var _cTo = "conversionTasks";
    var _cTom = "completeTime";
    var _cTomp = "completionTime";
    var _cTon = "conversionTask";
    var _cTonn = "connectivityType";
    var _cTr = "createTime";
    var _cTre = "creationTime";
    var _cTrea = "creationTimestamp";
    var _cVE = "clientVpnEndpoint";
    var _cVEI = "clientVpnEndpointId";
    var _cVP = "createVolumePermission";
    var _cVTN = "clientVpnTargetNetworks";
    var _cWL = "cloudWatchLogs";
    var _cWLO = "cloudWatchLogOptions";
    var _ca = "category";
    var _ch = "checksum";
    var _ci = "cidr";
    var _co = "code";
    var _con = "connections";
    var _conf = "configured";
    var _confi = "config";
    var _cont = "context";
    var _cor = "cores";
    var _cou = "count";
    var _cp = "cpu";
    var _d = "destination";
    var _dA = "destinationArn";
    var _dAIT = "denyAllIgwTraffic";
    var _dART = "defaultAssociationRouteTable";
    var _dAS = "destinationAddressSet";
    var _dASe = "deprovisionedAddressSet";
    var _dASi = "disableApiStop";
    var _dAT = "disableApiTermination";
    var _dAe = "destinationAddress";
    var _dC = "destinationCidr";
    var _dCA = "domainCertificateArn";
    var _dCAR = "deliverCrossAccountRole";
    var _dCB = "destinationCidrBlock";
    var _dCR = "destinationCapacityReservation";
    var _dCS = "dhcpConfigurationSet";
    var _dCe = "defaultCores";
    var _dE = "dnsEntry";
    var _dEKI = "dataEncryptionKeyId";
    var _dEQCPI = "defaultEnaQueueCountPerInterface";
    var _dES = "dnsEntrySet";
    var _dFA = "defaultForAz";
    var _dHIS = "dedicatedHostIdSet";
    var _dHS = "dedicatedHostsSupported";
    var _dHT = "dnsHostnameType";
    var _dI = "directoryId";
    var _dICB = "destinationIpv6CidrBlock";
    var _dIF = "diskImageFormat";
    var _dIS = "diskImageSize";
    var _dIe = "deviceIndex";
    var _dIes = "destinationIp";
    var _dLEM = "deliverLogsErrorMessage";
    var _dLPA = "deliverLogsPermissionArn";
    var _dLS = "deliverLogsStatus";
    var _dMGM = "deregisteredMulticastGroupMembers";
    var _dMGS = "deregisteredMulticastGroupSources";
    var _dN = "deviceName";
    var _dNCI = "defaultNetworkCardIndex";
    var _dNII = "deregisteredNetworkInterfaceIds";
    var _dNn = "dnsName";
    var _dO = "dhcpOptions";
    var _dOI = "dhcpOptionsId";
    var _dOS = "dhcpOptionsSet";
    var _dOST = "disconnectOnSessionTimeout";
    var _dOT = "deleteOnTermination";
    var _dOe = "destinationOptions";
    var _dOev = "deviceOptions";
    var _dOn = "dnsOptions";
    var _dP = "deliveryPreference";
    var _dPLI = "destinationPrefixListId";
    var _dPLS = "destinationPrefixListSet";
    var _dPR = "destinationPortRange";
    var _dPRS = "destinationPortRangeSet";
    var _dPRT = "defaultPropagationRouteTable";
    var _dPS = "destinationPortSet";
    var _dPe = "deregistrationProtection";
    var _dPes = "destinationPort";
    var _dR = "discoveryRegion";
    var _dRDAI = "defaultResourceDiscoveryAssociationId";
    var _dRDI = "defaultResourceDiscoveryId";
    var _dRIT = "dnsRecordIpType";
    var _dRRV = "deleteReplacedRootVolume";
    var _dRS = "dataRetentionSupport";
    var _dRSa = "dataResponseSet";
    var _dRTA = "defaultRouteTableAssociation";
    var _dRTP = "defaultRouteTablePropagation";
    var _dRe = "debuggingRestrictions";
    var _dRy = "dynamicRouting";
    var _dS = "dnsServer";
    var _dSCR = "deletedSubnetCidrReservation";
    var _dSRS = "deleteSnapshotResultSet";
    var _dSe = "destinationSet";
    var _dSel = "deliveryStatus";
    var _dSeli = "deliveryStream";
    var _dSn = "dnsSupport";
    var _dT = "deletionTime";
    var _dTA = "dpdTimeoutAction";
    var _dTCT = "defaultTargetCapacityType";
    var _dTPC = "defaultThreadsPerCore";
    var _dTPS = "deviceTrustProviderSet";
    var _dTPT = "deviceTrustProviderType";
    var _dTR = "dTraceRestrictions";
    var _dTS = "dpdTimeoutSeconds";
    var _dTe = "deprecationTime";
    var _dTel = "deleteTime";
    var _dTele = "deletionTimestamp";
    var _dTi = "disablingTime";
    var _dTis = "disabledTime";
    var _dV = "destinationVpc";
    var _dVC = "defaultVCpus";
    var _dVD = "deviceValidationDomain";
    var _dVN = "defaultVersionNumber";
    var _dVe = "defaultVersion";
    var _de = "description";
    var _dea = "deadline";
    var _def = "default";
    var _det = "details";
    var _dev = "device";
    var _di = "direction";
    var _dis = "disks";
    var _do = "domain";
    var _du = "duration";
    var _dua = "dualstack";
    var _e = "egress";
    var _eA = "eniAddress";
    var _eAn = "enableAcceleration";
    var _eAx = "exclusionsAllowed";
    var _eB = "egressBytes";
    var _eC = "errorCode";
    var _eCTP = "excessCapacityTerminationPolicy";
    var _eCn = "encryptionControl";
    var _eCx = "explanationCode";
    var _eD = "endDate";
    var _eDH = "enableDnsHostnames";
    var _eDS = "enableDnsSupport";
    var _eDT = "endDateType";
    var _eDf = "effectiveDate";
    var _eDn = "enableDns64";
    var _eDnd = "endpointDomain";
    var _eDv = "eventDescription";
    var _eEA = "endpointEniAddress";
    var _eEBD = "ebsEncryptionByDefault";
    var _eEI = "endpointEniId";
    var _eFRS = "egressFilterRuleSet";
    var _eGAI = "elasticGpuAssociationId";
    var _eGAS = "elasticGpuAssociationState";
    var _eGASl = "elasticGpuAssociationSet";
    var _eGAT = "elasticGpuAssociationTime";
    var _eGH = "elasticGpuHealth";
    var _eGI = "elasticGpuId";
    var _eGS = "elasticGpuSet";
    var _eGSS = "elasticGpuSpecificationSet";
    var _eGSl = "elasticGpuState";
    var _eGT = "elasticGpuType";
    var _eH = "endHour";
    var _eI = "exchangeId";
    var _eIAA = "elasticInferenceAcceleratorArn";
    var _eIAAI = "elasticInferenceAcceleratorAssociationId";
    var _eIAAS = "elasticInferenceAcceleratorAssociationState";
    var _eIAASl = "elasticInferenceAcceleratorAssociationSet";
    var _eIAAT = "elasticInferenceAcceleratorAssociationTime";
    var _eIAS = "elasticInferenceAcceleratorSet";
    var _eIAT = "endpointIpAddressType";
    var _eITI = "exportImageTaskId";
    var _eITS = "exportImageTaskSet";
    var _eITSn = "encryptionInTransitSupported";
    var _eITSx = "excludedInstanceTypeSet";
    var _eIb = "ebsInfo";
    var _eIf = "efaInfo";
    var _eIn = "eniId";
    var _eIv = "eventInformation";
    var _eIve = "eventId";
    var _eIx = "exclusionId";
    var _eKKI = "encryptionKmsKeyId";
    var _eLADI = "enableLniAtDeviceIndex";
    var _eLBL = "elasticLoadBalancerListener";
    var _eM = "errorMessage";
    var _eNAUM = "enableNetworkAddressUsageMetrics";
    var _eO = "ebsOptimized";
    var _eOI = "ebsOptimizedInfo";
    var _eOIG = "egressOnlyInternetGateway";
    var _eOIGI = "egressOnlyInternetGatewayId";
    var _eOIGS = "egressOnlyInternetGatewaySet";
    var _eOS = "ebsOptimizedSupport";
    var _eOn = "enclaveOptions";
    var _eP = "egressPackets";
    var _ePG = "enablePrivateGua";
    var _ePS = "excludePathSet";
    var _eQC = "enaQueueCount";
    var _eRNDAAAAR = "enableResourceNameDnsAAAARecord";
    var _eRNDAR = "enableResourceNameDnsARecord";
    var _eS = "ephemeralStorage";
    var _eSE = "enaSrdEnabled";
    var _eSS = "enaSrdSpecification";
    var _eSSn = "enaSrdSupported";
    var _eST = "eventSubType";
    var _eSUE = "enaSrdUdpEnabled";
    var _eSUS = "enaSrdUdpSpecification";
    var _eSf = "efaSupported";
    var _eSn = "encryptionSupport";
    var _eSna = "enaSupport";
    var _eSnt = "entrySet";
    var _eSr = "errorSet";
    var _eSv = "eventsSet";
    var _eSx = "explanationSet";
    var _eT = "expirationTime";
    var _eTI = "exportTaskId";
    var _eTLC = "enableTunnelLifecycleControl";
    var _eTS = "exportTaskSet";
    var _eTSi = "eipTagSet";
    var _eTSx = "exportToS3";
    var _eTTCIS = "estimatedTimeToCompleteInSeconds";
    var _eTn = "endTime";
    var _eTna = "enablingTime";
    var _eTnab = "enabledTime";
    var _eTnd = "endpointType";
    var _eTv = "eventType";
    var _eTx = "exportTask";
    var _eWD = "endWeekDay";
    var _eb = "ebs";
    var _en = "enabled";
    var _enc = "encrypted";
    var _end = "end";
    var _enf = "enforced";
    var _er = "error";
    var _ev = "event";
    var _f = "format";
    var _fA = "federatedAuthentication";
    var _fAD = "filterAtDestination";
    var _fAS = "filterAtSource";
    var _fAi = "firstAddress";
    var _fC = "fulfilledCapacity";
    var _fCRS = "fleetCapacityReservationSet";
    var _fCS = "findingComponentSet";
    var _fCa = "failureCode";
    var _fDN = "fipsDnsName";
    var _fE = "fipsEnabled";
    var _fEQS = "flexibleEnaQueuesSupport";
    var _fF = "fileFormat";
    var _fFCS = "failedFleetCancellationSet";
    var _fFi = "findingsFound";
    var _fI = "findingId";
    var _fIA = "fpgaImageAttribute";
    var _fIAS = "filterInArnSet";
    var _fIGI = "fpgaImageGlobalId";
    var _fII = "fpgaImageId";
    var _fIS = "fleetInstanceSet";
    var _fISp = "fpgaImageSet";
    var _fIl = "fleetId";
    var _fIp = "fpgaInfo";
    var _fLI = "flowLogId";
    var _fLIS = "flowLogIdSet";
    var _fLISa = "fastLaunchImageSet";
    var _fLS = "flowLogSet";
    var _fLSl = "flowLogStatus";
    var _fM = "failureMessage";
    var _fOAS = "filterOutArnSet";
    var _fODC = "fulfilledOnDemandCapacity";
    var _fP = "fromPort";
    var _fPCS = "forwardPathComponentSet";
    var _fPi = "filesystemProtections";
    var _fPix = "fixedPrice";
    var _fQPDS = "failedQueuedPurchaseDeletionSet";
    var _fR = "failureReason";
    var _fRa = "fastRestored";
    var _fS = "fleetSet";
    var _fSR = "firewallStatelessRule";
    var _fSRS = "fastSnapshotRestoreSet";
    var _fSRSES = "fastSnapshotRestoreStateErrorSet";
    var _fSRi = "firewallStatefulRule";
    var _fSSIB = "fullSnapshotSizeInBytes";
    var _fSST = "firstSlotStartTime";
    var _fSl = "fleetState";
    var _fTE = "freeTierEligible";
    var _fa = "fault";
    var _fp = "fpgas";
    var _fr = "from";
    var _fre = "frequency";
    var _g = "group";
    var _gA = "groupArn";
    var _gAS = "gatewayAssociationState";
    var _gD = "groupDescription";
    var _gI = "gatewayId";
    var _gIA = "groupIpAddress";
    var _gIp = "gpuInfo";
    var _gIr = "groupId";
    var _gK = "greKey";
    var _gLBAS = "gatewayLoadBalancerArnSet";
    var _gLBEI = "gatewayLoadBalancerEndpointId";
    var _gLN = "groupLongName";
    var _gM = "groupMember";
    var _gN = "groupName";
    var _gOI = "groupOwnerId";
    var _gS = "groupSet";
    var _gSr = "groupSource";
    var _gp = "gpus";
    var _gr = "groups";
    var _h = "hypervisor";
    var _hCP = "hiveCompatiblePartitions";
    var _hE = "httpEndpoint";
    var _hI = "hostId";
    var _hIS = "hostIdSet";
    var _hM = "hostMaintenance";
    var _hO = "hibernationOptions";
    var _hP = "hostProperties";
    var _hPI = "httpProtocolIpv6";
    var _hPRHL = "httpPutResponseHopLimit";
    var _hPo = "hourlyPrice";
    var _hR = "hostRecovery";
    var _hRGA = "hostResourceGroupArn";
    var _hRI = "hostReservationId";
    var _hRS = "historyRecordSet";
    var _hRSo = "hostReservationSet";
    var _hS = "hostSet";
    var _hSi = "hibernationSupported";
    var _hT = "httpTokens";
    var _hTo = "hostnameType";
    var _hZI = "hostedZoneId";
    var _i = "item";
    var _iA = "interfaceAssociation";
    var _iAA = "ipv6AddressAttribute";
    var _iAC = "ipv6AddressCount";
    var _iAI = "inferenceAcceleratorInfo";
    var _iAPI = "ipv4AddressesPerInterface";
    var _iAPIp = "ipv6AddressesPerInterface";
    var _iAS = "interfaceAssociationSet";
    var _iASp = "ipv6AddressesSet";
    var _iAT = "ipAddressType";
    var _iATOI = "includeAllTagsOfInstance";
    var _iAm = "imageAllowed";
    var _iAp = "ipAddress";
    var _iApa = "ipamArn";
    var _iApv = "ipv6Address";
    var _iB = "ingressBytes";
    var _iBPAS = "imageBlockPublicAccessState";
    var _iC = "instanceCount";
    var _iCAS = "ipv6CidrAssociationSet";
    var _iCB = "ipv6CidrBlock";
    var _iCBA = "ipv6CidrBlockAssociation";
    var _iCBAS = "ipv6CidrBlockAssociationSet";
    var _iCBS = "ipv6CidrBlockState";
    var _iCBSp = "ipv6CidrBlockSet";
    var _iCBn = "insideCidrBlocks";
    var _iCE = "instanceConnectEndpoint";
    var _iCEA = "instanceConnectEndpointArn";
    var _iCEI = "instanceConnectEndpointId";
    var _iCES = "instanceConnectEndpointSet";
    var _iCS = "imageCriterionSet";
    var _iCSS = "instanceCreditSpecificationSet";
    var _iCn = "instanceCounts";
    var _iCp = "ipv6Cidr";
    var _iD = "imageData";
    var _iDAS = "ipamDiscoveredAccountSet";
    var _iDPAS = "ipamDiscoveredPublicAddressSet";
    var _iDRCS = "ipamDiscoveredResourceCidrSet";
    var _iDs = "isDefault";
    var _iE = "instanceExport";
    var _iEI = "instanceEventId";
    var _iERVT = "ipamExternalResourceVerificationToken";
    var _iERVTA = "ipamExternalResourceVerificationTokenArn";
    var _iERVTI = "ipamExternalResourceVerificationTokenId";
    var _iERVTS = "ipamExternalResourceVerificationTokenSet";
    var _iEW = "instanceEventWindow";
    var _iEWI = "instanceEventWindowId";
    var _iEWS = "instanceEventWindowState";
    var _iEWSn = "instanceEventWindowSet";
    var _iEs = "isEgress";
    var _iF = "instanceFamily";
    var _iFCS = "instanceFamilyCreditSpecification";
    var _iFR = "iamFleetRole";
    var _iFRS = "ingressFilterRuleSet";
    var _iG = "internetGateway";
    var _iGBM = "internetGatewayBlockMode";
    var _iGEM = "internetGatewayExclusionMode";
    var _iGI = "internetGatewayId";
    var _iGS = "internetGatewaySet";
    var _iGSn = "instanceGenerationSet";
    var _iH = "instanceHealth";
    var _iHn = "inboundHeader";
    var _iI = "instanceId";
    var _iIB = "instanceInterruptionBehavior";
    var _iIMS = "instanceImageMetadataSet";
    var _iIP = "iamInstanceProfile";
    var _iIPA = "iamInstanceProfileAssociation";
    var _iIPAS = "iamInstanceProfileAssociationSet";
    var _iIS = "instanceIdSet";
    var _iISB = "instanceInitiatedShutdownBehavior";
    var _iITS = "importImageTaskSet";
    var _iIm = "importInstance";
    var _iIma = "imageId";
    var _iIn = "instanceIds";
    var _iIp = "ipamId";
    var _iL = "imageLocation";
    var _iLn = "instanceLifecycle";
    var _iM = "imageMetadata";
    var _iMC = "instanceMatchCriteria";
    var _iMO = "instanceMetadataOptions";
    var _iMOn = "instanceMarketOptions";
    var _iMT = "instanceMetadataTags";
    var _iMU = "importManifestUrl";
    var _iN = "ipv6Native";
    var _iOA = "imageOwnerAlias";
    var _iOI = "imageOwnerId";
    var _iOIn = "instanceOwnerId";
    var _iOIp = "ipOwnerId";
    var _iOS = "instanceOwningService";
    var _iP = "instancePort";
    var _iPA = "ipamPoolAllocation";
    var _iPAI = "ipamPoolAllocationId";
    var _iPAS = "ipamPoolAllocationSet";
    var _iPAp = "ipamPoolArn";
    var _iPC = "ipamPoolCidr";
    var _iPCI = "ipamPoolCidrId";
    var _iPCS = "ipamPoolCidrSet";
    var _iPCp = "ipv4PrefixCount";
    var _iPCpv = "ipv6PrefixCount";
    var _iPE = "ipPermissionsEgress";
    var _iPI = "isPrimaryIpv6";
    var _iPIp = "ipamPoolId";
    var _iPR = "isPermanentRestore";
    var _iPS = "ipamPoolSet";
    var _iPSm = "imageProviderSet";
    var _iPSp = "ipv6PoolSet";
    var _iPSpr = "ipPrefixSet";
    var _iPSpv = "ipv4PrefixSet";
    var _iPSpvr = "ipv6PrefixSet";
    var _iPTUC = "instancePoolsToUseCount";
    var _iPn = "instancePlatform";
    var _iPng = "ingressPackets";
    var _iPnt = "interfacePermission";
    var _iPnte = "interfaceProtocol";
    var _iPo = "ioPerformance";
    var _iPp = "ipamPool";
    var _iPpe = "ipPermissions";
    var _iPpr = "ipProtocol";
    var _iPpv = "ipv4Prefix";
    var _iPpvo = "ipv6Pool";
    var _iPpvr = "ipv6Prefix";
    var _iPs = "isPublic";
    var _iPsr = "isPrimary";
    var _iR = "instanceRequirements";
    var _iRC = "ipamResourceCidr";
    var _iRCS = "ipamResourceCidrSet";
    var _iRD = "ipamResourceDiscovery";
    var _iRDA = "ipamResourceDiscoveryAssociation";
    var _iRDAA = "ipamResourceDiscoveryAssociationArn";
    var _iRDAI = "ipamResourceDiscoveryAssociationId";
    var _iRDAS = "ipamResourceDiscoveryAssociationSet";
    var _iRDAp = "ipamResourceDiscoveryArn";
    var _iRDI = "ipamResourceDiscoveryId";
    var _iRDR = "ipamResourceDiscoveryRegion";
    var _iRDS = "ipamResourceDiscoverySet";
    var _iRS = "imageReferenceSet";
    var _iRT = "ingressRouteTable";
    var _iRp = "ipamRegion";
    var _iRpa = "ipRanges";
    var _iRpv = "ipv6Ranges";
    var _iS = "interconnectStatus";
    var _iSA = "ipamScopeArn";
    var _iSD = "initializationStatusDetails";
    var _iSI = "instanceStorageInfo";
    var _iSIp = "ipamScopeId";
    var _iSS = "instanceStatusSet";
    var _iSSn = "instanceStorageSupported";
    var _iSSp = "ipamScopeSet";
    var _iST = "ipamScopeType";
    var _iSTS = "importSnapshotTaskSet";
    var _iSg = "igmpv2Support";
    var _iSm = "imagesSet";
    var _iSma = "imageState";
    var _iSmag = "imageSet";
    var _iSmd = "imdsSupport";
    var _iSmp = "impairedSince";
    var _iSn = "instancesSet";
    var _iSns = "instanceSet";
    var _iSnst = "instanceState";
    var _iSnsta = "instanceStatus";
    var _iSp = "ipamScope";
    var _iSpa = "ipamSet";
    var _iSpo = "ipSource";
    var _iSpv = "ipv6Supported";
    var _iSpvu = "ipv6Support";
    var _iT = "instanceType";
    var _iTA = "instanceTagAttribute";
    var _iTC = "icmpTypeCode";
    var _iTCn = "includeTrustContext";
    var _iTI = "importTaskId";
    var _iTKS = "instanceTagKeySet";
    var _iTOS = "instanceTypeOfferingSet";
    var _iTS = "instanceTypeSet";
    var _iTSS = "instanceTypeSpecificationSet";
    var _iTm = "imageType";
    var _iTn = "instanceTypes";
    var _iTni = "initializationType";
    var _iTns = "instanceTenancy";
    var _iTnt = "interfaceType";
    var _iU = "ipUsage";
    var _iURES = "imageUsageReportEntrySet";
    var _iURS = "imageUsageReportSet";
    var _iUS = "instanceUsageSet";
    var _iV = "ikeVersion";
    var _iVE = "isValidExchange";
    var _iVS = "ikeVersionSet";
    var _iVm = "importVolume";
    var _id = "id";
    var _im = "image";
    var _in = "instance";
    var _ins = "instances";
    var _int = "interval";
    var _io = "iops";
    var _ip = "ipam";
    var _ipv = "ipv4";
    var _is = "issuer";
    var _k = "key";
    var _kDF = "kinesisDataFirehose";
    var _kF = "keyFormat";
    var _kFe = "keyFingerprint";
    var _kI = "kernelId";
    var _kKA = "kmsKeyArn";
    var _kKI = "kmsKeyId";
    var _kM = "keyMaterial";
    var _kN = "keyName";
    var _kPI = "keyPairId";
    var _kS = "keySet";
    var _kSe = "kextSigning";
    var _kT = "keyType";
    var _kV = "keyValue";
    var _ke = "kernel";
    var _key = "keyword";
    var _l = "lifecycle";
    var _lA = "localAddress";
    var _lADT = "lastAttemptedDiscoveryTime";
    var _lAZ = "launchedAvailabilityZone";
    var _lAZI = "launchedAvailabilityZoneId";
    var _lAa = "lastAddress";
    var _lBA = "loadBalancerArn";
    var _lBAE = "localBgpAsnExtended";
    var _lBAo = "localBgpAsn";
    var _lBC = "loadBalancersConfig";
    var _lBLP = "loadBalancerListenerPort";
    var _lBO = "loadBalancerOptions";
    var _lBP = "loadBalancerPort";
    var _lBS = "loadBalancerSet";
    var _lBT = "loadBalancerTarget";
    var _lBTG = "loadBalancerTargetGroup";
    var _lBTGS = "loadBalancerTargetGroupSet";
    var _lBTP = "loadBalancerTargetPort";
    var _lC = "loggingConfiguration";
    var _lCA = "licenseConfigurationArn";
    var _lCO = "lockCreatedOn";
    var _lCS = "loggingConfigurationSet";
    var _lD = "logDestination";
    var _lDST = "lockDurationStartTime";
    var _lDT = "logDestinationType";
    var _lDo = "lockDuration";
    var _lE = "logEnabled";
    var _lEO = "lockExpiresOn";
    var _lET = "lastEvaluatedTime";
    var _lEa = "lastError";
    var _lF = "logFormat";
    var _lFA = "lambdaFunctionArn";
    var _lG = "launchGroup";
    var _lGA = "logGroupArn";
    var _lGI = "localGatewayId";
    var _lGN = "logGroupName";
    var _lGRT = "localGatewayRouteTable";
    var _lGRTA = "localGatewayRouteTableArn";
    var _lGRTI = "localGatewayRouteTableId";
    var _lGRTS = "localGatewayRouteTableSet";
    var _lGRTVA = "localGatewayRouteTableVpcAssociation";
    var _lGRTVAI = "localGatewayRouteTableVpcAssociationId";
    var _lGRTVAS = "localGatewayRouteTableVpcAssociationSet";
    var _lGRTVIGA = "localGatewayRouteTableVirtualInterfaceGroupAssociation";
    var _lGRTVIGAI = "localGatewayRouteTableVirtualInterfaceGroupAssociationId";
    var _lGRTVIGAS = "localGatewayRouteTableVirtualInterfaceGroupAssociationSet";
    var _lGS = "localGatewaySet";
    var _lGVI = "localGatewayVirtualInterface";
    var _lGVIA = "localGatewayVirtualInterfaceArn";
    var _lGVIG = "localGatewayVirtualInterfaceGroup";
    var _lGVIGA = "localGatewayVirtualInterfaceGroupArn";
    var _lGVIGI = "localGatewayVirtualInterfaceGroupId";
    var _lGVIGS = "localGatewayVirtualInterfaceGroupSet";
    var _lGVII = "localGatewayVirtualInterfaceId";
    var _lGVIIS = "localGatewayVirtualInterfaceIdSet";
    var _lGVIS = "localGatewayVirtualInterfaceSet";
    var _lGo = "logGroup";
    var _lINC = "localIpv4NetworkCidr";
    var _lINCo = "localIpv6NetworkCidr";
    var _lLT = "lastLaunchedTime";
    var _lMA = "lastMaintenanceApplied";
    var _lO = "logOptions";
    var _lOF = "logOutputFormat";
    var _lP = "loadPermissions";
    var _lPa = "launchPermission";
    var _lS = "licenseSpecifications";
    var _lSC = "lastStatusChange";
    var _lSDT = "lastSuccessfulDiscoveryTime";
    var _lSTS = "localStorageTypeSet";
    var _lSa = "launchSpecifications";
    var _lSau = "launchSpecification";
    var _lSi = "licenseSet";
    var _lSo = "localStorage";
    var _lSoc = "lockState";
    var _lT = "launchTemplate";
    var _lTAO = "launchTemplateAndOverrides";
    var _lTC = "launchTemplateConfigs";
    var _lTD = "launchTemplateData";
    var _lTI = "launchTemplateId";
    var _lTN = "launchTemplateName";
    var _lTOS = "lastTieringOperationStatus";
    var _lTOSD = "lastTieringOperationStatusDetail";
    var _lTP = "lastTieringProgress";
    var _lTS = "launchTemplateSpecification";
    var _lTST = "lastTieringStartTime";
    var _lTV = "launchTemplateVersion";
    var _lTVS = "launchTemplateVersionSet";
    var _lTa = "launchTemplates";
    var _lTau = "launchTime";
    var _lTi = "licenseType";
    var _lTo = "locationType";
    var _lUT = "lastUpdateTime";
    var _lUTa = "lastUpdatedTime";
    var _lUTas = "lastUpdateTimestamp";
    var _lV = "logVersion";
    var _lVN = "latestVersionNumber";
    var _lo = "location";
    var _loc = "locale";
    var _m2 = "min";
    var _mA = "mutualAuthentication";
    var _mAAA = "maintenanceAutoAppliedAfter";
    var _mAE = "multiAttachEnabled";
    var _mAI = "maxAggregationInterval";
    var _mAIe = "mediaAcceleratorInfo";
    var _mASS = "movingAddressStatusSet";
    var _mAa = "macAddress";
    var _mAe = "meteredAccount";
    var _mB = "managedBy";
    var _mBIM = "maximumBandwidthInMbps";
    var _mC = "missingComponent";
    var _mCOIOL = "mapCustomerOwnedIpOnLaunch";
    var _mD = "maintenanceDetails";
    var _mDA = "multicastDomainAssociations";
    var _mDK = "metaDataKey";
    var _mDV = "metaDataValue";
    var _mDe = "metaData";
    var _mE = "maxEntries";
    var _mEI = "maximumEfaInterfaces";
    var _mEM = "managedExceptionMessage";
    var _mEQC = "maximumEnaQueueCount";
    var _mEQCPI = "maximumEnaQueueCountPerInterface";
    var _mFV = "mostFrequentValue";
    var _mG = "multicastGroups";
    var _mGBPVC = "memoryGiBPerVCpu";
    var _mHS = "macHostSet";
    var _mI = "maximumIops";
    var _mIe = "memoryInfo";
    var _mMB = "memoryMiB";
    var _mMT = "macModificationTask";
    var _mMTI = "macModificationTaskId";
    var _mMTS = "macModificationTaskSet";
    var _mNC = "maximumNetworkCards";
    var _mNI = "maximumNetworkInterfaces";
    var _mO = "metadataOptions";
    var _mOSLRG = "memberOfServiceLinkedResourceGroup";
    var _mOSLSVS = "macOSLatestSupportedVersionSet";
    var _mOa = "maintenanceOptions";
    var _mP = "maxPrice";
    var _mPIOL = "mapPublicIpOnLaunch";
    var _mPL = "maxParallelLaunches";
    var _mPS = "metricPointSet";
    var _mPSa = "matchPathSet";
    var _mR = "maxResults";
    var _mRS = "modificationResultSet";
    var _mS = "messageSet";
    var _mSIPC = "macSystemIntegrityProtectionConfig";
    var _mSPAPOOODP = "maxSpotPriceAsPercentageOfOptimalOnDemandPrice";
    var _mSa = "managementState";
    var _mSai = "maintenanceStrategies";
    var _mSo = "moveStatus";
    var _mSod = "modificationState";
    var _mSu = "multicastSupport";
    var _mT = "marketType";
    var _mTC = "minTargetCapacity";
    var _mTDID = "maxTermDurationInDays";
    var _mTDIDi = "minTermDurationInDays";
    var _mTIMB = "maximumThroughputInMBps";
    var _mTP = "maxTotalPrice";
    var _mTe = "memberType";
    var _mVE = "managesVpcEndpoints";
    var _ma = "max";
    var _mai = "main";
    var _man = "manufacturer";
    var _mana = "managed";
    var _mar = "marketplace";
    var _me = "message";
    var _med = "med";
    var _mem = "member";
    var _met = "metric";
    var _mo = "monitoring";
    var _mod = "mode";
    var _n = "name";
    var _nA = "networkAcl";
    var _nAAI = "networkAclAssociationId";
    var _nAI = "networkAclId";
    var _nAIe = "newAssociationId";
    var _nAOO = "nativeApplicationOidcOptions";
    var _nAS = "networkAclSet";
    var _nAo = "notAfter";
    var _nB = "notBefore";
    var _nBD = "notBeforeDeadline";
    var _nBG = "networkBorderGroup";
    var _nBGe = "networkBandwidthGbps";
    var _nC = "networkCards";
    var _nCI = "networkCardIndex";
    var _nD = "noDevice";
    var _nDe = "neuronDevices";
    var _nES = "nitroEnclavesSupport";
    var _nG = "natGateway";
    var _nGAS = "natGatewayAddressSet";
    var _nGI = "natGatewayId";
    var _nGS = "natGatewaySet";
    var _nHI = "nextHopIp";
    var _nI = "networkId";
    var _nIA = "networkInsightsAnalysis";
    var _nIAA = "networkInsightsAnalysisArn";
    var _nIAI = "networkInsightsAnalysisId";
    var _nIAS = "networkInsightsAccessScope";
    var _nIASA = "networkInsightsAccessScopeArn";
    var _nIASAA = "networkInsightsAccessScopeAnalysisArn";
    var _nIASAI = "networkInsightsAccessScopeAnalysisId";
    var _nIASAS = "networkInsightsAccessScopeAnalysisSet";
    var _nIASAe = "networkInsightsAccessScopeAnalysis";
    var _nIASC = "networkInsightsAccessScopeContent";
    var _nIASI = "networkInsightsAccessScopeId";
    var _nIASS = "networkInsightsAccessScopeSet";
    var _nIASe = "networkInsightsAnalysisSet";
    var _nIASet = "networkInterfaceAttachmentStatus";
    var _nIC = "networkInterfaceCount";
    var _nID = "networkInterfaceDescription";
    var _nII = "networkInterfaceId";
    var _nIIS = "networkInterfaceIdSet";
    var _nIO = "networkInterfaceOptions";
    var _nIOI = "networkInterfaceOwnerId";
    var _nIP = "networkInsightsPath";
    var _nIPA = "networkInsightsPathArn";
    var _nIPI = "networkInsightsPathId";
    var _nIPIe = "networkInterfacePermissionId";
    var _nIPS = "networkInsightsPathSet";
    var _nIPe = "networkInterfacePermissions";
    var _nIS = "networkInterfaceSet";
    var _nIe = "networkInterface";
    var _nIet = "networkInfo";
    var _nIeu = "neuronInfo";
    var _nL = "netmaskLength";
    var _nLBA = "networkLoadBalancerArn";
    var _nLBAS = "networkLoadBalancerArnSet";
    var _nNS = "networkNodeSet";
    var _nOA = "numberOfAccounts";
    var _nOFA = "numberOfFailedAccounts";
    var _nOMA = "numberOfMatchedAccounts";
    var _nOUA = "numberOfUnmatchedAccounts";
    var _nP = "nvramProtections";
    var _nPF = "networkPathFound";
    var _nPO = "networkPerformanceOptions";
    var _nPe = "networkPerformance";
    var _nPet = "networkPlatform";
    var _nS = "nvmeSupport";
    var _nSS = "networkServiceSet";
    var _nSST = "nextSlotStartTime";
    var _nSa = "nameserverSet";
    var _nT = "networkType";
    var _nTI = "nitroTpmInfo";
    var _nTS = "nitroTpmSupport";
    var _nTe = "nextToken";
    var _o = "origin";
    var _oA = "outpostArn";
    var _oAr = "organizationArn";
    var _oAw = "ownerAlias";
    var _oC = "offeringClass";
    var _oDAS = "onDemandAllocationStrategy";
    var _oDFC = "onDemandFulfilledCapacity";
    var _oDMPPOLP = "onDemandMaxPricePercentageOverLowestPrice";
    var _oDMTP = "onDemandMaxTotalPrice";
    var _oDO = "onDemandOptions";
    var _oDS = "occurrenceDaySet";
    var _oDTC = "onDemandTargetCapacity";
    var _oEP = "organizationsEntityPath";
    var _oH = "outboundHeader";
    var _oI = "ownerId";
    var _oIA = "outsideIpAddress";
    var _oIAT = "outsideIpAddressType";
    var _oIS = "optInStatus";
    var _oIf = "offeringId";
    var _oIr = "originalIops";
    var _oIu = "outpostId";
    var _oK = "objectKey";
    var _oLI = "outpostLagId";
    var _oLS = "outpostLagSet";
    var _oMAE = "originalMultiAttachEnabled";
    var _oN = "optionName";
    var _oNA = "odbNetworkArn";
    var _oO = "oidcOptions";
    var _oRIWEA = "outputReservedInstancesWillExpireAt";
    var _oRS = "operatingRegionSet";
    var _oRTE = "occurrenceRelativeToEnd";
    var _oS = "offeringSet";
    var _oST = "oldestSampleTime";
    var _oSr = "originalSize";
    var _oSv = "overlapStatus";
    var _oT = "optimizingTime";
    var _oTf = "offeringType";
    var _oTr = "originalThroughput";
    var _oU = "occurrenceUnit";
    var _oUA = "organizationalUnitArn";
    var _oUES = "organizationalUnitExclusionSet";
    var _oUI = "organizationalUnitId";
    var _oVCS = "openVpnConfigurationSet";
    var _oVS = "optionValueSet";
    var _oVT = "originalVolumeType";
    var _op = "operator";
    var _opt = "options";
    var _ou = "output";
    var _ov = "overrides";
    var _ow = "owner";
    var _p = "principal";
    var _pA = "poolArn";
    var _pAI = "peeringAttachmentId";
    var _pAR = "poolAddressRange";
    var _pARS = "poolAddressRangeSet";
    var _pAe = "peerAddress";
    var _pAee = "peerAsn";
    var _pAu = "publiclyAdvertisable";
    var _pB = "provisionedBandwidth";
    var _pBA = "peerBgpAsn";
    var _pBAE = "peerBgpAsnExtended";
    var _pBIG = "peakBandwidthInGbps";
    var _pC = "productCodes";
    var _pCB = "poolCidrBlock";
    var _pCBS = "poolCidrBlockSet";
    var _pCI = "preserveClientIp";
    var _pCNI = "peerCoreNetworkId";
    var _pCS = "poolCidrSet";
    var _pCSS = "postureComplianceStatusSet";
    var _pCa = "partitionCount";
    var _pCo = "poolCount";
    var _pCr = "productCode";
    var _pD = "passwordData";
    var _pDE = "privateDnsEnabled";
    var _pDEr = "privateDnsEntry";
    var _pDHG = "phase1DHGroup";
    var _pDHGNS = "phase1DHGroupNumberSet";
    var _pDHGNSh = "phase2DHGroupNumberSet";
    var _pDHGh = "phase2DHGroup";
    var _pDN = "publicDnsNames";
    var _pDNC = "privateDnsNameConfiguration";
    var _pDNO = "privateDnsNameOptions";
    var _pDNOOL = "privateDnsNameOptionsOnLaunch";
    var _pDNS = "privateDnsNameSet";
    var _pDNVS = "privateDnsNameVerificationState";
    var _pDNr = "privateDnsName";
    var _pDNu = "publicDnsName";
    var _pDOFIRE = "privateDnsOnlyForInboundResolverEndpoint";
    var _pDRTI = "propagationDefaultRouteTableId";
    var _pDS = "pricingDetailsSet";
    var _pDSDN = "publicDualStackDnsName";
    var _pDSI = "publicDefaultScopeId";
    var _pDSIr = "privateDefaultScopeId";
    var _pDa = "paymentDue";
    var _pDl = "platformDetails";
    var _pDo = "policyDocument";
    var _pDoo = "poolDepth";
    var _pDr = "productDescription";
    var _pE = "policyEnabled";
    var _pEA = "phase1EncryptionAlgorithm";
    var _pEAS = "phase1EncryptionAlgorithmSet";
    var _pEASh = "phase2EncryptionAlgorithmSet";
    var _pEAh = "phase2EncryptionAlgorithm";
    var _pEk = "pkceEnabled";
    var _pF = "packetField";
    var _pFS = "previousFleetState";
    var _pG = "placementGroup";
    var _pGA = "placementGroupArn";
    var _pGI = "placementGroupInfo";
    var _pGS = "placementGroupSet";
    var _pHP = "perHourPartition";
    var _pHS = "packetHeaderStatement";
    var _pI = "publicIp";
    var _pIA = "phase1IntegrityAlgorithm";
    var _pIAS = "privateIpAddressesSet";
    var _pIASh = "phase1IntegrityAlgorithmSet";
    var _pIASha = "phase2IntegrityAlgorithmSet";
    var _pIAh = "phase2IntegrityAlgorithm";
    var _pIAr = "privateIpAddress";
    var _pIDN = "publicIpv6DnsName";
    var _pIDNO = "publicIpDnsNameOptions";
    var _pIDNu = "publicIpv4DnsName";
    var _pIP = "publicIpv4Pool";
    var _pIPI = "publicIpv4PoolId";
    var _pIPS = "publicIpv4PoolSet";
    var _pIS = "publicIpSource";
    var _pIc = "pciId";
    var _pIo = "poolId";
    var _pIr = "processorInfo";
    var _pIri = "primaryIpv6";
    var _pIriv = "privateIp";
    var _pK = "publicKey";
    var _pL = "prefixList";
    var _pLA = "prefixListArn";
    var _pLAS = "prefixListAssociationSet";
    var _pLD = "peerLivenessDetection";
    var _pLI = "prefixListId";
    var _pLIr = "prefixListIds";
    var _pLN = "prefixListName";
    var _pLOI = "prefixListOwnerId";
    var _pLS = "prefixListSet";
    var _pLSh = "phase1LifetimeSeconds";
    var _pLSha = "phase2LifetimeSeconds";
    var _pLa = "packetLength";
    var _pM = "pendingMaintenance";
    var _pN = "partitionNumber";
    var _pO = "paymentOption";
    var _pOe = "peeringOptions";
    var _pP = "progressPercentage";
    var _pR = "ptrRecord";
    var _pRD = "persistRoutesDuration";
    var _pRN = "policyRuleNumber";
    var _pRNo = "policyReferenceName";
    var _pRS = "portRangeSet";
    var _pRSe = "persistRoutesState";
    var _pRU = "ptrRecordUpdate";
    var _pRa = "payerResponsibility";
    var _pRo = "portRange";
    var _pRol = "policyRule";
    var _pS = "provisioningStatus";
    var _pSET = "previousSlotEndTime";
    var _pSFRS = "previousSpotFleetRequestState";
    var _pSK = "preSharedKey";
    var _pSKA = "preSharedKeyArn";
    var _pSKE = "publicSigningKeyEndpoint";
    var _pSKU = "publicSigningKeyUrl";
    var _pSR = "provisioningStatusReason";
    var _pSe = "permissionState";
    var _pSee = "peeringStatus";
    var _pSh = "phcSupport";
    var _pSr = "previousState";
    var _pSre = "previousStatus";
    var _pSri = "principalSet";
    var _pSric = "priceSchedules";
    var _pSro = "protocolSet";
    var _pT = "principalType";
    var _pTGI = "peerTransitGatewayId";
    var _pTr = "provisionTime";
    var _pTu = "purchaseToken";
    var _pVI = "primaryVpcId";
    var _pVS = "propagatingVgwSet";
    var _pZI = "parentZoneId";
    var _pZN = "parentZoneName";
    var _pe = "period";
    var _per = "permission";
    var _pl = "platform";
    var _pla = "placement";
    var _po = "port";
    var _pr = "protocol";
    var _pre = "prefix";
    var _pri = "priority";
    var _pric = "price";
    var _prim = "primary";
    var _pro = "progress";
    var _prop = "propagation";
    var _prov = "provisioned";
    var _pu = "public";
    var _pur = "purchase";
    var _r = "return";
    var _rA = "ruleAction";
    var _rAE = "remoteAccessEnabled";
    var _rAe = "resourceArn";
    var _rB = "requestedBy";
    var _rBET = "recycleBinEnterTime";
    var _rBETe = "recycleBinExitTime";
    var _rC = "returnCode";
    var _rCA = "resourceConfigurationArn";
    var _rCGA = "resourceConfigurationGroupArn";
    var _rCS = "resourceComplianceStatus";
    var _rCT = "reportCreationTime";
    var _rCe = "resourceCidr";
    var _rCec = "recurringCharges";
    var _rD = "restoreDuration";
    var _rDAC = "resourceDiscoveryAssociationCount";
    var _rDCA = "rdsDbClusterArn";
    var _rDI = "ramDiskId";
    var _rDIA = "rdsDbInstanceArn";
    var _rDN = "rootDeviceName";
    var _rDPA = "rdsDbProxyArn";
    var _rDS = "resourceDiscoveryStatus";
    var _rDT = "rootDeviceType";
    var _rE = "responseError";
    var _rET = "restoreExpiryTime";
    var _rEd = "rdsEndpoint";
    var _rEe = "regionEndpoint";
    var _rEes = "resourceExclusions";
    var _rFP = "rekeyFuzzPercentage";
    var _rGA = "ruleGroupArn";
    var _rGI = "referencedGroupId";
    var _rGIe = "referencedGroupInfo";
    var _rGROPS = "ruleGroupRuleOptionsPairSet";
    var _rGT = "ruleGroupType";
    var _rGTPS = "ruleGroupTypePairSet";
    var _rHS = "requireHibernateSupport";
    var _rI = "reportId";
    var _rIDS = "routeInstallationDetailSet";
    var _rII = "reservedInstancesId";
    var _rIIe = "reservedInstanceId";
    var _rILI = "reservedInstancesListingId";
    var _rILS = "reservedInstancesListingsSet";
    var _rIMI = "reservedInstancesModificationId";
    var _rIMS = "reservedInstancesModificationsSet";
    var _rINC = "remoteIpv4NetworkCidr";
    var _rINCe = "remoteIpv6NetworkCidr";
    var _rIOI = "reservedInstancesOfferingId";
    var _rIOS = "reservedInstancesOfferingsSet";
    var _rIS = "reservedInstancesSet";
    var _rISR = "routeInstallationStatusReason";
    var _rISo = "routeInstallationStatus";
    var _rIVR = "reservedInstanceValueRollup";
    var _rIVS = "reservedInstanceValueSet";
    var _rIa = "ramdiskId";
    var _rIe = "regionInfo";
    var _rIeq = "requesterId";
    var _rIes = "resourceId";
    var _rIese = "reservationId";
    var _rM = "rebootMigration";
    var _rMGM = "registeredMulticastGroupMembers";
    var _rMGS = "registeredMulticastGroupSources";
    var _rMS = "rebootMigrationSupport";
    var _rMTS = "rekeyMarginTimeSeconds";
    var _rMe = "requesterManaged";
    var _rN = "ruleNumber";
    var _rNII = "registeredNetworkInterfaceIds";
    var _rNe = "regionName";
    var _rNes = "resourceName";
    var _rNo = "roleName";
    var _rO = "resourceOwner";
    var _rOI = "resourceOwnerId";
    var _rOS = "ruleOptionSet";
    var _rOSe = "resourceOverlapStatus";
    var _rOd = "rdsOptions";
    var _rOo = "routeOrigin";
    var _rPCO = "requesterPeeringConnectionOptions";
    var _rPCS = "returnPathComponentSet";
    var _rR = "resourceRegion";
    var _rRVT = "replaceRootVolumeTask";
    var _rRVTI = "replaceRootVolumeTaskId";
    var _rRVTS = "replaceRootVolumeTaskSet";
    var _rS = "referenceSet";
    var _rSA = "routeServerAssociation";
    var _rSAS = "routeServerAssociationSet";
    var _rSE = "routeServerEndpoint";
    var _rSEI = "routeServerEndpointId";
    var _rSES = "routeServerEndpointSet";
    var _rSGRS = "revokedSecurityGroupRuleSet";
    var _rSI = "routeServerId";
    var _rSP = "routeServerPeer";
    var _rSPI = "routeServerPeerId";
    var _rSPS = "routeServerPeerSet";
    var _rSPSo = "routeServerPropagationSet";
    var _rSPo = "routeServerPropagation";
    var _rSS = "regionalSummarySet";
    var _rSSo = "routeServerSet";
    var _rST = "restoreStartTime";
    var _rSe = "reportSet";
    var _rSep = "replacementStrategy";
    var _rSes = "reservationSet";
    var _rSeso = "resourceStatement";
    var _rSesou = "resourceSet";
    var _rSo = "routeServer";
    var _rSou = "routeSet";
    var _rSout = "routeStatus";
    var _rT = "reservationType";
    var _rTAI = "routeTableAssociationId";
    var _rTI = "routeTableId";
    var _rTIS = "routeTableIdSet";
    var _rTIe = "requesterTgwInfo";
    var _rTOS = "resourceTypeOptionSet";
    var _rTR = "routeTableRoute";
    var _rTS = "routeTableSet";
    var _rTSe = "resourceTypeSet";
    var _rTSes = "resourceTagSet";
    var _rTV = "remainingTotalValue";
    var _rTe = "resourceType";
    var _rTel = "releaseTime";
    var _rTeq = "requestTime";
    var _rTo = "routeTable";
    var _rUI = "replaceUnhealthyInstances";
    var _rUV = "remainingUpfrontValue";
    var _rV = "returnValue";
    var _rVI = "referencingVpcId";
    var _rVIe = "requesterVpcInfo";
    var _rVe = "reservationValue";
    var _rWS = "replayWindowSize";
    var _ra = "ramdisk";
    var _re = "region";
    var _rea = "reason";
    var _rec = "recurrence";
    var _req = "requested";
    var _res = "result";
    var _reso = "resource";
    var _ro = "route";
    var _rou = "routes";
    var _s = "source";
    var _sA = "sourceArn";
    var _sAS = "sourceAddressSet";
    var _sASu = "suggestedAccountSet";
    var _sAZ = "singleAvailabilityZone";
    var _sAo = "sourceAddress";
    var _sAt = "startupAction";
    var _sAu = "supportedArchitectures";
    var _sAub = "subnetArn";
    var _sB = "s3Bucket";
    var _sBM = "supportedBootModes";
    var _sC = "serviceConfiguration";
    var _sCA = "serverCertificateArn";
    var _sCAE = "serialConsoleAccessEnabled";
    var _sCB = "sourceCidrBlock";
    var _sCR = "sourceCapacityReservation";
    var _sCRI = "subnetCidrReservationId";
    var _sCRu = "subnetCidrReservation";
    var _sCS = "serviceConfigurationSet";
    var _sCSIG = "sustainedClockSpeedInGhz";
    var _sCc = "scopeCount";
    var _sCn = "snapshotConfiguration";
    var _sD = "startDate";
    var _sDC = "sourceDestCheck";
    var _sDIH = "slotDurationInHours";
    var _sDLTVS = "successfullyDeletedLaunchTemplateVersionSet";
    var _sDS = "spotDatafeedSubscription";
    var _sDSe = "serviceDetailSet";
    var _sDSn = "snapshotDetailSet";
    var _sDp = "spreadDomain";
    var _sDu = "subDomain";
    var _sEL = "s3ExportLocation";
    var _sET = "sampledEndTime";
    var _sF = "supportedFeatures";
    var _sFCS = "successfulFleetCancellationSet";
    var _sFDS = "successfulFleetDeletionSet";
    var _sFRC = "spotFleetRequestConfig";
    var _sFRCS = "spotFleetRequestConfigSet";
    var _sFRI = "spotFleetRequestId";
    var _sFRS = "successfulFleetRequestSet";
    var _sFRSp = "spotFleetRequestState";
    var _sG = "securityGroup";
    var _sGA = "securityGroupArn";
    var _sGFVS = "securityGroupForVpcSet";
    var _sGI = "securityGroupId";
    var _sGIS = "securityGroupIdSet";
    var _sGIe = "securityGroupIds";
    var _sGIec = "securityGroupInfo";
    var _sGR = "securityGroupRule";
    var _sGRA = "securityGroupRuleArn";
    var _sGRI = "securityGroupRuleId";
    var _sGRS = "securityGroupRuleSet";
    var _sGRSe = "securityGroupReferenceSet";
    var _sGRSec = "securityGroupReferencingSupport";
    var _sGS = "securityGroupSet";
    var _sGVAS = "securityGroupVpcAssociationSet";
    var _sGe = "securityGroups";
    var _sH = "startHour";
    var _sI = "serviceId";
    var _sIAS = "scheduledInstanceAvailabilitySet";
    var _sIATS = "supportedIpAddressTypeSet";
    var _sICRS = "subnetIpv4CidrReservationSet";
    var _sICRSu = "subnetIpv6CidrReservationSet";
    var _sICSS = "successfulInstanceCreditSpecificationSet";
    var _sIGB = "sizeInGB";
    var _sII = "sourceInstanceId";
    var _sIIc = "scheduledInstanceId";
    var _sIIo = "sourceImageId";
    var _sIMB = "sizeInMiB";
    var _sIP = "staleIpPermissions";
    var _sIPE = "staleIpPermissionsEgress";
    var _sIPI = "sourceIpamPoolId";
    var _sIR = "sourceImageRegion";
    var _sIRI = "spotInstanceRequestId";
    var _sIRS = "spotInstanceRequestSet";
    var _sIS = "scheduledInstanceSet";
    var _sISu = "subnetIdSet";
    var _sIT = "spotInstanceType";
    var _sITRS = "storeImageTaskResultSet";
    var _sITi = "singleInstanceType";
    var _sIn = "snapshotId";
    var _sIo = "sourceIp";
    var _sIu = "subnetId";
    var _sIub = "subnetIds";
    var _sK = "s3Key";
    var _sKo = "s3objectKey";
    var _sL = "s3Location";
    var _sLVIA = "serviceLinkVirtualInterfaceArn";
    var _sLVII = "serviceLinkVirtualInterfaceId";
    var _sLVIIS = "serviceLinkVirtualInterfaceIdSet";
    var _sLVIS = "serviceLinkVirtualInterfaceSet";
    var _sLp = "spreadLevel";
    var _sM = "serviceManaged";
    var _sMPPOLP = "spotMaxPricePercentageOverLowestPrice";
    var _sMS = "spotMaintenanceStrategies";
    var _sMTP = "spotMaxTotalPrice";
    var _sMt = "statusMessage";
    var _sMta = "stateMessage";
    var _sN = "serviceName";
    var _sNA = "serviceNetworkArn";
    var _sNE = "snsNotificationsEnabled";
    var _sNN = "serviceNetworkName";
    var _sNS = "serviceNameSet";
    var _sNSr = "sriovNetSupport";
    var _sNe = "sequenceNumber";
    var _sNes = "sessionNumber";
    var _sO = "spotOptions";
    var _sP = "s3Prefix";
    var _sPA = "samlProviderArn";
    var _sPHS = "spotPriceHistorySet";
    var _sPI = "servicePermissionId";
    var _sPIAC = "secondaryPrivateIpAddressCount";
    var _sPLS = "sourcePrefixListSet";
    var _sPR = "sourcePortRange";
    var _sPRS = "sourcePortRangeSet";
    var _sPS = "sourcePortSet";
    var _sPSS = "spotPlacementScoreSet";
    var _sPp = "spotPrice";
    var _sQPDS = "successfulQueuedPurchaseDeletionSet";
    var _sR = "serviceRegion";
    var _sRDT = "supportedRootDeviceTypes";
    var _sRO = "staticRoutesOnly";
    var _sRS = "supportedRegionSet";
    var _sRT = "subnetRouteTable";
    var _sRe = "serviceResource";
    var _sRo = "sourceResource";
    var _sRt = "stateReason";
    var _sS = "snapshotSet";
    var _sSGS = "staleSecurityGroupSet";
    var _sSPU = "selfServicePortalUrl";
    var _sSS = "staticSourcesSupport";
    var _sSSPA = "selfServiceSamlProviderArn";
    var _sST = "sampledStartTime";
    var _sSe = "settingSet";
    var _sSer = "serviceState";
    var _sSo = "sourceSet";
    var _sSs = "sseSpecification";
    var _sSt = "statusSet";
    var _sSu = "subscriptionSet";
    var _sSub = "subnetSet";
    var _sSup = "supportedStrategies";
    var _sSy = "systemStatus";
    var _sT = "startTime";
    var _sTA = "snsTopicArn";
    var _sTC = "spotTargetCapacity";
    var _sTD = "snapshotTaskDetail";
    var _sTFR = "storeTaskFailureReason";
    var _sTH = "sessionTimeoutHours";
    var _sTR = "stateTransitionReason";
    var _sTS = "storeTaskState";
    var _sTSS = "snapshotTierStatusSet";
    var _sTT = "stateTransitionTime";
    var _sTa = "sampleTime";
    var _sTe = "serviceType";
    var _sTo = "sourceType";
    var _sTp = "splitTunnel";
    var _sTs = "sseType";
    var _sTt = "storageTier";
    var _sUC = "supportedUsageClasses";
    var _sV = "sourceVpc";
    var _sVT = "supportedVirtualizationTypes";
    var _sVh = "shellVersion";
    var _sVu = "supportedVersions";
    var _sWD = "startWeekDay";
    var _s_ = "s3";
    var _sc = "scope";
    var _sco = "score";
    var _scop = "scopes";
    var _se = "service";
    var _si = "size";
    var _so = "sockets";
    var _sof = "software";
    var _st = "state";
    var _sta = "status";
    var _star = "start";
    var _stat = "statistic";
    var _sto = "storage";
    var _str = "strategy";
    var _su = "subnet";
    var _sub = "subnets";
    var _suc = "successful";
    var _succ = "success";
    var _t = "tenancy";
    var _tAAC = "totalAvailableAddressCount";
    var _tAC = "totalAvailableCapacity";
    var _tACo = "totalAddressCount";
    var _tAI = "transferAccountId";
    var _tC = "totalCapacity";
    var _tCS = "targetCapacitySpecification";
    var _tCUT = "targetCapacityUnitType";
    var _tCVR = "targetConfigurationValueRollup";
    var _tCVS = "targetConfigurationValueSet";
    var _tCa = "targetConfiguration";
    var _tCar = "targetCapacity";
    var _tD = "terminationDelay";
    var _tDr = "trafficDirection";
    var _tE = "targetEnvironment";
    var _tED = "termEndDate";
    var _tET = "tcpEstablishedTimeout";
    var _tEo = "tokenEndpoint";
    var _tFC = "totalFulfilledCapacity";
    var _tFMIMB = "totalFpgaMemoryInMiB";
    var _tG = "transitGateway";
    var _tGA = "transitGatewayAttachments";
    var _tGAI = "transitGatewayAttachmentId";
    var _tGAP = "transitGatewayAttachmentPropagations";
    var _tGAr = "transitGatewayAttachment";
    var _tGAra = "transitGatewayArn";
    var _tGAran = "transitGatewayAsn";
    var _tGArans = "transitGatewayAddress";
    var _tGC = "transitGatewayConnect";
    var _tGCB = "transitGatewayCidrBlocks";
    var _tGCP = "transitGatewayConnectPeer";
    var _tGCPI = "transitGatewayConnectPeerId";
    var _tGCPS = "transitGatewayConnectPeerSet";
    var _tGCS = "transitGatewayConnectSet";
    var _tGCa = "targetGroupsConfig";
    var _tGI = "transitGatewayId";
    var _tGMD = "transitGatewayMulticastDomain";
    var _tGMDA = "transitGatewayMulticastDomainArn";
    var _tGMDI = "transitGatewayMulticastDomainId";
    var _tGMDr = "transitGatewayMulticastDomains";
    var _tGMIMB = "totalGpuMemoryInMiB";
    var _tGOI = "transitGatewayOwnerId";
    var _tGPA = "transitGatewayPeeringAttachment";
    var _tGPAr = "transitGatewayPeeringAttachments";
    var _tGPLR = "transitGatewayPrefixListReference";
    var _tGPLRS = "transitGatewayPrefixListReferenceSet";
    var _tGPT = "transitGatewayPolicyTable";
    var _tGPTE = "transitGatewayPolicyTableEntries";
    var _tGPTI = "transitGatewayPolicyTableId";
    var _tGPTr = "transitGatewayPolicyTables";
    var _tGRT = "transitGatewayRouteTable";
    var _tGRTA = "transitGatewayRouteTableAnnouncement";
    var _tGRTAI = "transitGatewayRouteTableAnnouncementId";
    var _tGRTAr = "transitGatewayRouteTableAnnouncements";
    var _tGRTI = "transitGatewayRouteTableId";
    var _tGRTP = "transitGatewayRouteTablePropagations";
    var _tGRTR = "transitGatewayRouteTableRoute";
    var _tGRTr = "transitGatewayRouteTables";
    var _tGS = "transitGatewaySet";
    var _tGVA = "transitGatewayVpcAttachment";
    var _tGVAr = "transitGatewayVpcAttachments";
    var _tGa = "targetGroups";
    var _tHP = "totalHourlyPrice";
    var _tI = "targetId";
    var _tIAT = "trafficIpAddressType";
    var _tIC = "totalInstanceCount";
    var _tICu = "tunnelInsideCidr";
    var _tII = "trunkInterfaceId";
    var _tIIC = "tunnelInsideIpv6Cidr";
    var _tIIV = "tunnelInsideIpVersion";
    var _tIMIMB = "totalInferenceMemoryInMiB";
    var _tIWE = "terminateInstancesWithExpiration";
    var _tIa = "targetIops";
    var _tIe = "tenantId";
    var _tLSGB = "totalLocalStorageGB";
    var _tMAE = "targetMultiAttachEnabled";
    var _tMF = "trafficMirrorFilter";
    var _tMFI = "trafficMirrorFilterId";
    var _tMFR = "trafficMirrorFilterRule";
    var _tMFRI = "trafficMirrorFilterRuleId";
    var _tMFRS = "trafficMirrorFilterRuleSet";
    var _tMFS = "trafficMirrorFilterSet";
    var _tMMIMB = "totalMediaMemoryInMiB";
    var _tMS = "trafficMirrorSession";
    var _tMSI = "trafficMirrorSessionId";
    var _tMSS = "trafficMirrorSessionSet";
    var _tMT = "trafficMirrorTarget";
    var _tMTI = "trafficMirrorTargetId";
    var _tMTS = "trafficMirrorTargetSet";
    var _tN = "tokenName";
    var _tNDMIMB = "totalNeuronDeviceMemoryInMiB";
    var _tNI = "targetNetworkId";
    var _tOAT = "transferOfferAcceptedTimestamp";
    var _tOET = "transferOfferExpirationTimestamp";
    var _tOS = "tunnelOptionSet";
    var _tP = "transportProtocol";
    var _tPC = "threadsPerCore";
    var _tPT = "trustProviderType";
    var _tPo = "toPort";
    var _tRC = "targetResourceCount";
    var _tRS = "throughResourceSet";
    var _tRSi = "timeRangeSet";
    var _tRTI = "targetRouteTableId";
    var _tS = "tagSet";
    var _tSD = "termStartDate";
    var _tSIGB = "totalSizeInGB";
    var _tSIH = "totalScheduledInstanceHours";
    var _tSS = "tagSpecificationSet";
    var _tST = "tieringStartTime";
    var _tSTa = "taskStartTime";
    var _tSa = "targetSubnet";
    var _tSar = "targetSize";
    var _tSas = "taskState";
    var _tSp = "tpmSupport";
    var _tT = "trafficType";
    var _tTC = "totalTargetCapacity";
    var _tTGAI = "transportTransitGatewayAttachmentId";
    var _tTa = "taskType";
    var _tTar = "targetThroughput";
    var _tTr = "transferType";
    var _tUC = "totalUnavailableCapacity";
    var _tUP = "totalUpfrontPrice";
    var _tV = "tokenValue";
    var _tVC = "totalVCpus";
    var _tVT = "targetVolumeType";
    var _ta = "tags";
    var _tag = "tag";
    var _te = "term";
    var _th = "throughput";
    var _ti = "timestamp";
    var _tie = "tier";
    var _to = "to";
    var _ty = "type";
    var _u = "unsuccessful";
    var _uB = "userBucket";
    var _uC = "ultraserverCount";
    var _uCs = "usageCount";
    var _uD = "uefiData";
    var _uDLTVS = "unsuccessfullyDeletedLaunchTemplateVersionSet";
    var _uDp = "updatedDate";
    var _uDpd = "updateDate";
    var _uDs = "userData";
    var _uF = "upfrontFee";
    var _uFDS = "unsuccessfulFleetDeletionSet";
    var _uFRS = "unsuccessfulFleetRequestSet";
    var _uI = "userId";
    var _uIA = "unassignedIpv6Addresses";
    var _uIC = "usedInstanceCount";
    var _uICSS = "unsuccessfulInstanceCreditSpecificationSet";
    var _uIE = "userInfoEndpoint";
    var _uIPS = "unknownIpPermissionSet";
    var _uIPSn = "unassignedIpv6PrefixSet";
    var _uLI = "useLongIds";
    var _uLIA = "useLongIdsAggregated";
    var _uO = "usageOperation";
    var _uOUT = "usageOperationUpdateTime";
    var _uP = "upfrontPrice";
    var _uPS = "uploadPolicySignature";
    var _uPp = "uploadPolicy";
    var _uPs = "usagePrice";
    var _uRBOI = "unusedReservationBillingOwnerId";
    var _uS = "usageStrategy";
    var _uST = "udpStreamTimeout";
    var _uT = "updateTime";
    var _uTP = "userTrustProvider";
    var _uTPT = "userTrustProviderType";
    var _uTd = "udpTimeout";
    var _uTl = "ultraserverType";
    var _ur = "url";
    var _us = "username";
    var _v = "value";
    var _vAE = "verifiedAccessEndpoint";
    var _vAEI = "verifiedAccessEndpointId";
    var _vAES = "verifiedAccessEndpointSet";
    var _vAETD = "verifiedAccessEndpointTargetDns";
    var _vAETIA = "verifiedAccessEndpointTargetIpAddress";
    var _vAETS = "verifiedAccessEndpointTargetSet";
    var _vAG = "verifiedAccessGroup";
    var _vAGA = "verifiedAccessGroupArn";
    var _vAGI = "verifiedAccessGroupId";
    var _vAGS = "verifiedAccessGroupSet";
    var _vAI = "verifiedAccessInstance";
    var _vAII = "verifiedAccessInstanceId";
    var _vAIS = "verifiedAccessInstanceSet";
    var _vATP = "verifiedAccessTrustProvider";
    var _vATPI = "verifiedAccessTrustProviderId";
    var _vATPS = "verifiedAccessTrustProviderSet";
    var _vBPAE = "vpcBlockPublicAccessExclusion";
    var _vBPAES = "vpcBlockPublicAccessExclusionSet";
    var _vBPAO = "vpcBlockPublicAccessOptions";
    var _vC = "vpnConnection";
    var _vCC = "vCpuCount";
    var _vCDSC = "vpnConnectionDeviceSampleConfiguration";
    var _vCDTI = "vpnConnectionDeviceTypeId";
    var _vCDTS = "vpnConnectionDeviceTypeSet";
    var _vCI = "vpnConnectionId";
    var _vCIp = "vCpuInfo";
    var _vCS = "vpnConnectionSet";
    var _vCa = "validCores";
    var _vD = "versionDescription";
    var _vE = "vpcEndpoint";
    var _vEAS = "vpcEndpointAssociationSet";
    var _vECI = "vpcEncryptionControlId";
    var _vECIp = "vpcEndpointConnectionId";
    var _vECS = "vpcEndpointConnectionSet";
    var _vEI = "vpcEndpointId";
    var _vEO = "vpcEndpointOwner";
    var _vEPS = "vpcEndpointPolicySupported";
    var _vER = "vpcEndpointRegion";
    var _vES = "vpcEndpointService";
    var _vESp = "vpcEndpointSet";
    var _vESpc = "vpcEndpointState";
    var _vESpn = "vpnEcmpSupport";
    var _vET = "vpcEndpointType";
    var _vF = "validFrom";
    var _vFR = "validationFailureReason";
    var _vG = "vpnGateway";
    var _vGI = "vpnGatewayId";
    var _vGS = "vpnGatewaySet";
    var _vI = "vpcId";
    var _vIR = "volumeInitializationRate";
    var _vIl = "vlanId";
    var _vIo = "volumeId";
    var _vM = "volumeModification";
    var _vMS = "volumeModificationSet";
    var _vN = "virtualName";
    var _vNI = "virtualNetworkId";
    var _vNe = "versionNumber";
    var _vOI = "volumeOwnerId";
    var _vOIp = "vpcOwnerId";
    var _vP = "vpnProtocol";
    var _vPC = "vpcPeeringConnection";
    var _vPCI = "vpcPeeringConnectionId";
    var _vPCS = "vpcPeeringConnectionSet";
    var _vPG = "virtualPrivateGateway";
    var _vPp = "vpnPort";
    var _vPpc = "vpcPeering";
    var _vS = "volumeSet";
    var _vSS = "volumeStatusSet";
    var _vSa = "valueSet";
    var _vSo = "volumeSize";
    var _vSol = "volumeStatus";
    var _vSp = "vpcSet";
    var _vT = "volumeType";
    var _vTOIA = "vpnTunnelOutsideIpAddress";
    var _vTPC = "validThreadsPerCore";
    var _vTg = "vgwTelemetry";
    var _vTi = "virtualizationType";
    var _vU = "validUntil";
    var _ve = "version";
    var _ven = "vendor";
    var _vl = "vlan";
    var _vo = "volumes";
    var _vol = "volume";
    var _vp = "vpc";
    var _vpc = "vpcs";
    var _w = "warning";
    var _wC = "weightedCapacity";
    var _wM = "warningMessage";
    var _we = "weight";
    var _zI = "zoneId";
    var _zN = "zoneName";
    var _zS = "zoneState";
    var _zT = "zoneType";
    var buildFormUrlencodedString2 = /* @__PURE__ */ __name2((formEntries) => Object.entries(formEntries).map(([key, value]) => (0, import_smithy_client28.extendedEncodeURIComponent)(key) + "=" + (0, import_smithy_client28.extendedEncodeURIComponent)(value)).join("&"), "buildFormUrlencodedString");
    var loadEc2ErrorCode = /* @__PURE__ */ __name2((output, data3) => {
      if (data3.Errors.Error?.Code !== void 0) {
        return data3.Errors.Error.Code;
      }
      if (output.statusCode == 404) {
        return "NotFound";
      }
    }, "loadEc2ErrorCode");
    var AcceptAddressTransferCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "AcceptAddressTransfer", {}).n("EC2Client", "AcceptAddressTransferCommand").f(void 0, void 0).ser(se_AcceptAddressTransferCommand).de(de_AcceptAddressTransferCommand).build() {
      static {
        __name(this, "AcceptAddressTransferCommand");
      }
      static {
        __name2(this, "AcceptAddressTransferCommand");
      }
    };
    var AcceptCapacityReservationBillingOwnershipCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "AcceptCapacityReservationBillingOwnership", {}).n("EC2Client", "AcceptCapacityReservationBillingOwnershipCommand").f(void 0, void 0).ser(se_AcceptCapacityReservationBillingOwnershipCommand).de(de_AcceptCapacityReservationBillingOwnershipCommand).build() {
      static {
        __name(this, "AcceptCapacityReservationBillingOwnershipCommand");
      }
      static {
        __name2(this, "AcceptCapacityReservationBillingOwnershipCommand");
      }
    };
    var AcceptReservedInstancesExchangeQuoteCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "AcceptReservedInstancesExchangeQuote", {}).n("EC2Client", "AcceptReservedInstancesExchangeQuoteCommand").f(void 0, void 0).ser(se_AcceptReservedInstancesExchangeQuoteCommand).de(de_AcceptReservedInstancesExchangeQuoteCommand).build() {
      static {
        __name(this, "AcceptReservedInstancesExchangeQuoteCommand");
      }
      static {
        __name2(this, "AcceptReservedInstancesExchangeQuoteCommand");
      }
    };
    var AcceptTransitGatewayMulticastDomainAssociationsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "AcceptTransitGatewayMulticastDomainAssociations", {}).n("EC2Client", "AcceptTransitGatewayMulticastDomainAssociationsCommand").f(void 0, void 0).ser(se_AcceptTransitGatewayMulticastDomainAssociationsCommand).de(de_AcceptTransitGatewayMulticastDomainAssociationsCommand).build() {
      static {
        __name(this, "AcceptTransitGatewayMulticastDomainAssociationsCommand");
      }
      static {
        __name2(this, "AcceptTransitGatewayMulticastDomainAssociationsCommand");
      }
    };
    var AcceptTransitGatewayPeeringAttachmentCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "AcceptTransitGatewayPeeringAttachment", {}).n("EC2Client", "AcceptTransitGatewayPeeringAttachmentCommand").f(void 0, void 0).ser(se_AcceptTransitGatewayPeeringAttachmentCommand).de(de_AcceptTransitGatewayPeeringAttachmentCommand).build() {
      static {
        __name(this, "AcceptTransitGatewayPeeringAttachmentCommand");
      }
      static {
        __name2(this, "AcceptTransitGatewayPeeringAttachmentCommand");
      }
    };
    var AcceptTransitGatewayVpcAttachmentCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "AcceptTransitGatewayVpcAttachment", {}).n("EC2Client", "AcceptTransitGatewayVpcAttachmentCommand").f(void 0, void 0).ser(se_AcceptTransitGatewayVpcAttachmentCommand).de(de_AcceptTransitGatewayVpcAttachmentCommand).build() {
      static {
        __name(this, "AcceptTransitGatewayVpcAttachmentCommand");
      }
      static {
        __name2(this, "AcceptTransitGatewayVpcAttachmentCommand");
      }
    };
    var AcceptVpcEndpointConnectionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "AcceptVpcEndpointConnections", {}).n("EC2Client", "AcceptVpcEndpointConnectionsCommand").f(void 0, void 0).ser(se_AcceptVpcEndpointConnectionsCommand).de(de_AcceptVpcEndpointConnectionsCommand).build() {
      static {
        __name(this, "AcceptVpcEndpointConnectionsCommand");
      }
      static {
        __name2(this, "AcceptVpcEndpointConnectionsCommand");
      }
    };
    var AcceptVpcPeeringConnectionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "AcceptVpcPeeringConnection", {}).n("EC2Client", "AcceptVpcPeeringConnectionCommand").f(void 0, void 0).ser(se_AcceptVpcPeeringConnectionCommand).de(de_AcceptVpcPeeringConnectionCommand).build() {
      static {
        __name(this, "AcceptVpcPeeringConnectionCommand");
      }
      static {
        __name2(this, "AcceptVpcPeeringConnectionCommand");
      }
    };
    var AdvertiseByoipCidrCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "AdvertiseByoipCidr", {}).n("EC2Client", "AdvertiseByoipCidrCommand").f(void 0, void 0).ser(se_AdvertiseByoipCidrCommand).de(de_AdvertiseByoipCidrCommand).build() {
      static {
        __name(this, "AdvertiseByoipCidrCommand");
      }
      static {
        __name2(this, "AdvertiseByoipCidrCommand");
      }
    };
    var AllocateAddressCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "AllocateAddress", {}).n("EC2Client", "AllocateAddressCommand").f(void 0, void 0).ser(se_AllocateAddressCommand).de(de_AllocateAddressCommand).build() {
      static {
        __name(this, "AllocateAddressCommand");
      }
      static {
        __name2(this, "AllocateAddressCommand");
      }
    };
    var AllocateHostsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "AllocateHosts", {}).n("EC2Client", "AllocateHostsCommand").f(void 0, void 0).ser(se_AllocateHostsCommand).de(de_AllocateHostsCommand).build() {
      static {
        __name(this, "AllocateHostsCommand");
      }
      static {
        __name2(this, "AllocateHostsCommand");
      }
    };
    var AllocateIpamPoolCidrCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "AllocateIpamPoolCidr", {}).n("EC2Client", "AllocateIpamPoolCidrCommand").f(void 0, void 0).ser(se_AllocateIpamPoolCidrCommand).de(de_AllocateIpamPoolCidrCommand).build() {
      static {
        __name(this, "AllocateIpamPoolCidrCommand");
      }
      static {
        __name2(this, "AllocateIpamPoolCidrCommand");
      }
    };
    var ApplySecurityGroupsToClientVpnTargetNetworkCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ApplySecurityGroupsToClientVpnTargetNetwork", {}).n("EC2Client", "ApplySecurityGroupsToClientVpnTargetNetworkCommand").f(void 0, void 0).ser(se_ApplySecurityGroupsToClientVpnTargetNetworkCommand).de(de_ApplySecurityGroupsToClientVpnTargetNetworkCommand).build() {
      static {
        __name(this, "ApplySecurityGroupsToClientVpnTargetNetworkCommand");
      }
      static {
        __name2(this, "ApplySecurityGroupsToClientVpnTargetNetworkCommand");
      }
    };
    var AssignIpv6AddressesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "AssignIpv6Addresses", {}).n("EC2Client", "AssignIpv6AddressesCommand").f(void 0, void 0).ser(se_AssignIpv6AddressesCommand).de(de_AssignIpv6AddressesCommand).build() {
      static {
        __name(this, "AssignIpv6AddressesCommand");
      }
      static {
        __name2(this, "AssignIpv6AddressesCommand");
      }
    };
    var AssignPrivateIpAddressesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "AssignPrivateIpAddresses", {}).n("EC2Client", "AssignPrivateIpAddressesCommand").f(void 0, void 0).ser(se_AssignPrivateIpAddressesCommand).de(de_AssignPrivateIpAddressesCommand).build() {
      static {
        __name(this, "AssignPrivateIpAddressesCommand");
      }
      static {
        __name2(this, "AssignPrivateIpAddressesCommand");
      }
    };
    var AssignPrivateNatGatewayAddressCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "AssignPrivateNatGatewayAddress", {}).n("EC2Client", "AssignPrivateNatGatewayAddressCommand").f(void 0, void 0).ser(se_AssignPrivateNatGatewayAddressCommand).de(de_AssignPrivateNatGatewayAddressCommand).build() {
      static {
        __name(this, "AssignPrivateNatGatewayAddressCommand");
      }
      static {
        __name2(this, "AssignPrivateNatGatewayAddressCommand");
      }
    };
    var AssociateAddressCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "AssociateAddress", {}).n("EC2Client", "AssociateAddressCommand").f(void 0, void 0).ser(se_AssociateAddressCommand).de(de_AssociateAddressCommand).build() {
      static {
        __name(this, "AssociateAddressCommand");
      }
      static {
        __name2(this, "AssociateAddressCommand");
      }
    };
    var AssociateCapacityReservationBillingOwnerCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "AssociateCapacityReservationBillingOwner", {}).n("EC2Client", "AssociateCapacityReservationBillingOwnerCommand").f(void 0, void 0).ser(se_AssociateCapacityReservationBillingOwnerCommand).de(de_AssociateCapacityReservationBillingOwnerCommand).build() {
      static {
        __name(this, "AssociateCapacityReservationBillingOwnerCommand");
      }
      static {
        __name2(this, "AssociateCapacityReservationBillingOwnerCommand");
      }
    };
    var AssociateClientVpnTargetNetworkCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "AssociateClientVpnTargetNetwork", {}).n("EC2Client", "AssociateClientVpnTargetNetworkCommand").f(void 0, void 0).ser(se_AssociateClientVpnTargetNetworkCommand).de(de_AssociateClientVpnTargetNetworkCommand).build() {
      static {
        __name(this, "AssociateClientVpnTargetNetworkCommand");
      }
      static {
        __name2(this, "AssociateClientVpnTargetNetworkCommand");
      }
    };
    var AssociateDhcpOptionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "AssociateDhcpOptions", {}).n("EC2Client", "AssociateDhcpOptionsCommand").f(void 0, void 0).ser(se_AssociateDhcpOptionsCommand).de(de_AssociateDhcpOptionsCommand).build() {
      static {
        __name(this, "AssociateDhcpOptionsCommand");
      }
      static {
        __name2(this, "AssociateDhcpOptionsCommand");
      }
    };
    var AssociateEnclaveCertificateIamRoleCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "AssociateEnclaveCertificateIamRole", {}).n("EC2Client", "AssociateEnclaveCertificateIamRoleCommand").f(void 0, void 0).ser(se_AssociateEnclaveCertificateIamRoleCommand).de(de_AssociateEnclaveCertificateIamRoleCommand).build() {
      static {
        __name(this, "AssociateEnclaveCertificateIamRoleCommand");
      }
      static {
        __name2(this, "AssociateEnclaveCertificateIamRoleCommand");
      }
    };
    var AssociateIamInstanceProfileCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "AssociateIamInstanceProfile", {}).n("EC2Client", "AssociateIamInstanceProfileCommand").f(void 0, void 0).ser(se_AssociateIamInstanceProfileCommand).de(de_AssociateIamInstanceProfileCommand).build() {
      static {
        __name(this, "AssociateIamInstanceProfileCommand");
      }
      static {
        __name2(this, "AssociateIamInstanceProfileCommand");
      }
    };
    var AssociateInstanceEventWindowCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "AssociateInstanceEventWindow", {}).n("EC2Client", "AssociateInstanceEventWindowCommand").f(void 0, void 0).ser(se_AssociateInstanceEventWindowCommand).de(de_AssociateInstanceEventWindowCommand).build() {
      static {
        __name(this, "AssociateInstanceEventWindowCommand");
      }
      static {
        __name2(this, "AssociateInstanceEventWindowCommand");
      }
    };
    var AssociateIpamByoasnCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "AssociateIpamByoasn", {}).n("EC2Client", "AssociateIpamByoasnCommand").f(void 0, void 0).ser(se_AssociateIpamByoasnCommand).de(de_AssociateIpamByoasnCommand).build() {
      static {
        __name(this, "AssociateIpamByoasnCommand");
      }
      static {
        __name2(this, "AssociateIpamByoasnCommand");
      }
    };
    var AssociateIpamResourceDiscoveryCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "AssociateIpamResourceDiscovery", {}).n("EC2Client", "AssociateIpamResourceDiscoveryCommand").f(void 0, void 0).ser(se_AssociateIpamResourceDiscoveryCommand).de(de_AssociateIpamResourceDiscoveryCommand).build() {
      static {
        __name(this, "AssociateIpamResourceDiscoveryCommand");
      }
      static {
        __name2(this, "AssociateIpamResourceDiscoveryCommand");
      }
    };
    var AssociateNatGatewayAddressCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "AssociateNatGatewayAddress", {}).n("EC2Client", "AssociateNatGatewayAddressCommand").f(void 0, void 0).ser(se_AssociateNatGatewayAddressCommand).de(de_AssociateNatGatewayAddressCommand).build() {
      static {
        __name(this, "AssociateNatGatewayAddressCommand");
      }
      static {
        __name2(this, "AssociateNatGatewayAddressCommand");
      }
    };
    var AssociateRouteServerCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "AssociateRouteServer", {}).n("EC2Client", "AssociateRouteServerCommand").f(void 0, void 0).ser(se_AssociateRouteServerCommand).de(de_AssociateRouteServerCommand).build() {
      static {
        __name(this, "AssociateRouteServerCommand");
      }
      static {
        __name2(this, "AssociateRouteServerCommand");
      }
    };
    var AssociateRouteTableCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "AssociateRouteTable", {}).n("EC2Client", "AssociateRouteTableCommand").f(void 0, void 0).ser(se_AssociateRouteTableCommand).de(de_AssociateRouteTableCommand).build() {
      static {
        __name(this, "AssociateRouteTableCommand");
      }
      static {
        __name2(this, "AssociateRouteTableCommand");
      }
    };
    var AssociateSecurityGroupVpcCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "AssociateSecurityGroupVpc", {}).n("EC2Client", "AssociateSecurityGroupVpcCommand").f(void 0, void 0).ser(se_AssociateSecurityGroupVpcCommand).de(de_AssociateSecurityGroupVpcCommand).build() {
      static {
        __name(this, "AssociateSecurityGroupVpcCommand");
      }
      static {
        __name2(this, "AssociateSecurityGroupVpcCommand");
      }
    };
    var AssociateSubnetCidrBlockCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "AssociateSubnetCidrBlock", {}).n("EC2Client", "AssociateSubnetCidrBlockCommand").f(void 0, void 0).ser(se_AssociateSubnetCidrBlockCommand).de(de_AssociateSubnetCidrBlockCommand).build() {
      static {
        __name(this, "AssociateSubnetCidrBlockCommand");
      }
      static {
        __name2(this, "AssociateSubnetCidrBlockCommand");
      }
    };
    var AssociateTransitGatewayMulticastDomainCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "AssociateTransitGatewayMulticastDomain", {}).n("EC2Client", "AssociateTransitGatewayMulticastDomainCommand").f(void 0, void 0).ser(se_AssociateTransitGatewayMulticastDomainCommand).de(de_AssociateTransitGatewayMulticastDomainCommand).build() {
      static {
        __name(this, "AssociateTransitGatewayMulticastDomainCommand");
      }
      static {
        __name2(this, "AssociateTransitGatewayMulticastDomainCommand");
      }
    };
    var AssociateTransitGatewayPolicyTableCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "AssociateTransitGatewayPolicyTable", {}).n("EC2Client", "AssociateTransitGatewayPolicyTableCommand").f(void 0, void 0).ser(se_AssociateTransitGatewayPolicyTableCommand).de(de_AssociateTransitGatewayPolicyTableCommand).build() {
      static {
        __name(this, "AssociateTransitGatewayPolicyTableCommand");
      }
      static {
        __name2(this, "AssociateTransitGatewayPolicyTableCommand");
      }
    };
    var AssociateTransitGatewayRouteTableCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "AssociateTransitGatewayRouteTable", {}).n("EC2Client", "AssociateTransitGatewayRouteTableCommand").f(void 0, void 0).ser(se_AssociateTransitGatewayRouteTableCommand).de(de_AssociateTransitGatewayRouteTableCommand).build() {
      static {
        __name(this, "AssociateTransitGatewayRouteTableCommand");
      }
      static {
        __name2(this, "AssociateTransitGatewayRouteTableCommand");
      }
    };
    var AssociateTrunkInterfaceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "AssociateTrunkInterface", {}).n("EC2Client", "AssociateTrunkInterfaceCommand").f(void 0, void 0).ser(se_AssociateTrunkInterfaceCommand).de(de_AssociateTrunkInterfaceCommand).build() {
      static {
        __name(this, "AssociateTrunkInterfaceCommand");
      }
      static {
        __name2(this, "AssociateTrunkInterfaceCommand");
      }
    };
    var AssociateVpcCidrBlockCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "AssociateVpcCidrBlock", {}).n("EC2Client", "AssociateVpcCidrBlockCommand").f(void 0, void 0).ser(se_AssociateVpcCidrBlockCommand).de(de_AssociateVpcCidrBlockCommand).build() {
      static {
        __name(this, "AssociateVpcCidrBlockCommand");
      }
      static {
        __name2(this, "AssociateVpcCidrBlockCommand");
      }
    };
    var AttachClassicLinkVpcCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "AttachClassicLinkVpc", {}).n("EC2Client", "AttachClassicLinkVpcCommand").f(void 0, void 0).ser(se_AttachClassicLinkVpcCommand).de(de_AttachClassicLinkVpcCommand).build() {
      static {
        __name(this, "AttachClassicLinkVpcCommand");
      }
      static {
        __name2(this, "AttachClassicLinkVpcCommand");
      }
    };
    var AttachInternetGatewayCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "AttachInternetGateway", {}).n("EC2Client", "AttachInternetGatewayCommand").f(void 0, void 0).ser(se_AttachInternetGatewayCommand).de(de_AttachInternetGatewayCommand).build() {
      static {
        __name(this, "AttachInternetGatewayCommand");
      }
      static {
        __name2(this, "AttachInternetGatewayCommand");
      }
    };
    var AttachNetworkInterfaceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "AttachNetworkInterface", {}).n("EC2Client", "AttachNetworkInterfaceCommand").f(void 0, void 0).ser(se_AttachNetworkInterfaceCommand).de(de_AttachNetworkInterfaceCommand).build() {
      static {
        __name(this, "AttachNetworkInterfaceCommand");
      }
      static {
        __name2(this, "AttachNetworkInterfaceCommand");
      }
    };
    var AcceleratorManufacturer = {
      AMAZON_WEB_SERVICES: "amazon-web-services",
      AMD: "amd",
      HABANA: "habana",
      NVIDIA: "nvidia",
      XILINX: "xilinx"
    };
    var AcceleratorName = {
      A100: "a100",
      A10G: "a10g",
      H100: "h100",
      INFERENTIA: "inferentia",
      K520: "k520",
      K80: "k80",
      M60: "m60",
      RADEON_PRO_V520: "radeon-pro-v520",
      T4: "t4",
      T4G: "t4g",
      V100: "v100",
      VU9P: "vu9p"
    };
    var AcceleratorType = {
      FPGA: "fpga",
      GPU: "gpu",
      INFERENCE: "inference"
    };
    var ResourceType = {
      capacity_block: "capacity-block",
      capacity_reservation: "capacity-reservation",
      capacity_reservation_fleet: "capacity-reservation-fleet",
      carrier_gateway: "carrier-gateway",
      client_vpn_endpoint: "client-vpn-endpoint",
      coip_pool: "coip-pool",
      customer_gateway: "customer-gateway",
      declarative_policies_report: "declarative-policies-report",
      dedicated_host: "dedicated-host",
      dhcp_options: "dhcp-options",
      egress_only_internet_gateway: "egress-only-internet-gateway",
      elastic_gpu: "elastic-gpu",
      elastic_ip: "elastic-ip",
      export_image_task: "export-image-task",
      export_instance_task: "export-instance-task",
      fleet: "fleet",
      fpga_image: "fpga-image",
      host_reservation: "host-reservation",
      image: "image",
      image_usage_report: "image-usage-report",
      import_image_task: "import-image-task",
      import_snapshot_task: "import-snapshot-task",
      instance: "instance",
      instance_connect_endpoint: "instance-connect-endpoint",
      instance_event_window: "instance-event-window",
      internet_gateway: "internet-gateway",
      ipam: "ipam",
      ipam_external_resource_verification_token: "ipam-external-resource-verification-token",
      ipam_pool: "ipam-pool",
      ipam_resource_discovery: "ipam-resource-discovery",
      ipam_resource_discovery_association: "ipam-resource-discovery-association",
      ipam_scope: "ipam-scope",
      ipv4pool_ec2: "ipv4pool-ec2",
      ipv6pool_ec2: "ipv6pool-ec2",
      key_pair: "key-pair",
      launch_template: "launch-template",
      local_gateway: "local-gateway",
      local_gateway_route_table: "local-gateway-route-table",
      local_gateway_route_table_virtual_interface_group_association: "local-gateway-route-table-virtual-interface-group-association",
      local_gateway_route_table_vpc_association: "local-gateway-route-table-vpc-association",
      local_gateway_virtual_interface: "local-gateway-virtual-interface",
      local_gateway_virtual_interface_group: "local-gateway-virtual-interface-group",
      mac_modification_task: "mac-modification-task",
      natgateway: "natgateway",
      network_acl: "network-acl",
      network_insights_access_scope: "network-insights-access-scope",
      network_insights_access_scope_analysis: "network-insights-access-scope-analysis",
      network_insights_analysis: "network-insights-analysis",
      network_insights_path: "network-insights-path",
      network_interface: "network-interface",
      outpost_lag: "outpost-lag",
      placement_group: "placement-group",
      prefix_list: "prefix-list",
      replace_root_volume_task: "replace-root-volume-task",
      reserved_instances: "reserved-instances",
      route_server: "route-server",
      route_server_endpoint: "route-server-endpoint",
      route_server_peer: "route-server-peer",
      route_table: "route-table",
      security_group: "security-group",
      security_group_rule: "security-group-rule",
      service_link_virtual_interface: "service-link-virtual-interface",
      snapshot: "snapshot",
      spot_fleet_request: "spot-fleet-request",
      spot_instances_request: "spot-instances-request",
      subnet: "subnet",
      subnet_cidr_reservation: "subnet-cidr-reservation",
      traffic_mirror_filter: "traffic-mirror-filter",
      traffic_mirror_filter_rule: "traffic-mirror-filter-rule",
      traffic_mirror_session: "traffic-mirror-session",
      traffic_mirror_target: "traffic-mirror-target",
      transit_gateway: "transit-gateway",
      transit_gateway_attachment: "transit-gateway-attachment",
      transit_gateway_connect_peer: "transit-gateway-connect-peer",
      transit_gateway_multicast_domain: "transit-gateway-multicast-domain",
      transit_gateway_policy_table: "transit-gateway-policy-table",
      transit_gateway_route_table: "transit-gateway-route-table",
      transit_gateway_route_table_announcement: "transit-gateway-route-table-announcement",
      verified_access_endpoint: "verified-access-endpoint",
      verified_access_endpoint_target: "verified-access-endpoint-target",
      verified_access_group: "verified-access-group",
      verified_access_instance: "verified-access-instance",
      verified_access_policy: "verified-access-policy",
      verified_access_trust_provider: "verified-access-trust-provider",
      volume: "volume",
      vpc: "vpc",
      vpc_block_public_access_exclusion: "vpc-block-public-access-exclusion",
      vpc_endpoint: "vpc-endpoint",
      vpc_endpoint_connection: "vpc-endpoint-connection",
      vpc_endpoint_connection_device_type: "vpc-endpoint-connection-device-type",
      vpc_endpoint_service: "vpc-endpoint-service",
      vpc_endpoint_service_permission: "vpc-endpoint-service-permission",
      vpc_flow_log: "vpc-flow-log",
      vpc_peering_connection: "vpc-peering-connection",
      vpn_connection: "vpn-connection",
      vpn_connection_device_type: "vpn-connection-device-type",
      vpn_gateway: "vpn-gateway"
    };
    var AddressTransferStatus = {
      accepted: "accepted",
      disabled: "disabled",
      pending: "pending"
    };
    var TransitGatewayAttachmentResourceType = {
      connect: "connect",
      direct_connect_gateway: "direct-connect-gateway",
      network_function: "network-function",
      peering: "peering",
      tgw_peering: "tgw-peering",
      vpc: "vpc",
      vpn: "vpn"
    };
    var TransitGatewayMulitcastDomainAssociationState = {
      associated: "associated",
      associating: "associating",
      disassociated: "disassociated",
      disassociating: "disassociating",
      failed: "failed",
      pendingAcceptance: "pendingAcceptance",
      rejected: "rejected"
    };
    var DynamicRoutingValue = {
      disable: "disable",
      enable: "enable"
    };
    var TransitGatewayAttachmentState = {
      available: "available",
      deleted: "deleted",
      deleting: "deleting",
      failed: "failed",
      failing: "failing",
      initiating: "initiating",
      initiatingRequest: "initiatingRequest",
      modifying: "modifying",
      pending: "pending",
      pendingAcceptance: "pendingAcceptance",
      rejected: "rejected",
      rejecting: "rejecting",
      rollingBack: "rollingBack"
    };
    var ApplianceModeSupportValue = {
      disable: "disable",
      enable: "enable"
    };
    var DnsSupportValue = {
      disable: "disable",
      enable: "enable"
    };
    var Ipv6SupportValue = {
      disable: "disable",
      enable: "enable"
    };
    var SecurityGroupReferencingSupportValue = {
      disable: "disable",
      enable: "enable"
    };
    var VpcPeeringConnectionStateReasonCode = {
      active: "active",
      deleted: "deleted",
      deleting: "deleting",
      expired: "expired",
      failed: "failed",
      initiating_request: "initiating-request",
      pending_acceptance: "pending-acceptance",
      provisioning: "provisioning",
      rejected: "rejected"
    };
    var Protocol = {
      tcp: "tcp",
      udp: "udp"
    };
    var AccountAttributeName = {
      default_vpc: "default-vpc",
      supported_platforms: "supported-platforms"
    };
    var InstanceHealthStatus = {
      HEALTHY_STATUS: "healthy",
      UNHEALTHY_STATUS: "unhealthy"
    };
    var VpnTunnelProvisioningStatus = {
      available: "available",
      failed: "failed",
      pending: "pending"
    };
    var ActivityStatus = {
      ERROR: "error",
      FULFILLED: "fulfilled",
      PENDING_FULFILLMENT: "pending_fulfillment",
      PENDING_TERMINATION: "pending_termination"
    };
    var PrincipalType = {
      Account: "Account",
      All: "All",
      OrganizationUnit: "OrganizationUnit",
      Role: "Role",
      Service: "Service",
      User: "User"
    };
    var DomainType = {
      standard: "standard",
      vpc: "vpc"
    };
    var ServiceManaged = {
      alb: "alb",
      nlb: "nlb",
      rnat: "rnat"
    };
    var AddressAttributeName = {
      domain_name: "domain-name"
    };
    var AddressFamily = {
      ipv4: "ipv4",
      ipv6: "ipv6"
    };
    var AsnAssociationState = {
      associated: "associated",
      disassociated: "disassociated",
      failed_association: "failed-association",
      failed_disassociation: "failed-disassociation",
      pending_association: "pending-association",
      pending_disassociation: "pending-disassociation"
    };
    var ByoipCidrState = {
      advertised: "advertised",
      deprovisioned: "deprovisioned",
      failed_deprovision: "failed-deprovision",
      failed_provision: "failed-provision",
      pending_deprovision: "pending-deprovision",
      pending_provision: "pending-provision",
      provisioned: "provisioned",
      provisioned_not_publicly_advertisable: "provisioned-not-publicly-advertisable"
    };
    var Affinity = {
      default: "default",
      host: "host"
    };
    var AutoPlacement = {
      off: "off",
      on: "on"
    };
    var HostMaintenance = {
      off: "off",
      on: "on"
    };
    var HostRecovery = {
      off: "off",
      on: "on"
    };
    var IpamPoolAllocationResourceType = {
      custom: "custom",
      ec2_public_ipv4_pool: "ec2-public-ipv4-pool",
      eip: "eip",
      ipam_pool: "ipam-pool",
      subnet: "subnet",
      vpc: "vpc"
    };
    var AllocationState = {
      available: "available",
      pending: "pending",
      permanent_failure: "permanent-failure",
      released: "released",
      released_permanent_failure: "released-permanent-failure",
      under_assessment: "under-assessment"
    };
    var AllocationStrategy = {
      CAPACITY_OPTIMIZED: "capacityOptimized",
      CAPACITY_OPTIMIZED_PRIORITIZED: "capacityOptimizedPrioritized",
      DIVERSIFIED: "diversified",
      LOWEST_PRICE: "lowestPrice",
      PRICE_CAPACITY_OPTIMIZED: "priceCapacityOptimized"
    };
    var AllocationType = {
      future: "future",
      used: "used"
    };
    var AllowedImagesSettingsDisabledState = {
      disabled: "disabled"
    };
    var AllowedImagesSettingsEnabledState = {
      audit_mode: "audit-mode",
      enabled: "enabled"
    };
    var AllowsMultipleInstanceTypes = {
      off: "off",
      on: "on"
    };
    var NatGatewayAddressStatus = {
      ASSIGNING: "assigning",
      ASSOCIATING: "associating",
      DISASSOCIATING: "disassociating",
      FAILED: "failed",
      SUCCEEDED: "succeeded",
      UNASSIGNING: "unassigning"
    };
    var AssociationStatusCode = {
      associated: "associated",
      associating: "associating",
      association_failed: "association-failed",
      disassociated: "disassociated",
      disassociating: "disassociating"
    };
    var IamInstanceProfileAssociationState = {
      ASSOCIATED: "associated",
      ASSOCIATING: "associating",
      DISASSOCIATED: "disassociated",
      DISASSOCIATING: "disassociating"
    };
    var InstanceEventWindowState = {
      active: "active",
      creating: "creating",
      deleted: "deleted",
      deleting: "deleting"
    };
    var WeekDay = {
      friday: "friday",
      monday: "monday",
      saturday: "saturday",
      sunday: "sunday",
      thursday: "thursday",
      tuesday: "tuesday",
      wednesday: "wednesday"
    };
    var IpamAssociatedResourceDiscoveryStatus = {
      ACTIVE: "active",
      NOT_FOUND: "not-found"
    };
    var IpamResourceDiscoveryAssociationState = {
      ASSOCIATE_COMPLETE: "associate-complete",
      ASSOCIATE_FAILED: "associate-failed",
      ASSOCIATE_IN_PROGRESS: "associate-in-progress",
      DISASSOCIATE_COMPLETE: "disassociate-complete",
      DISASSOCIATE_FAILED: "disassociate-failed",
      DISASSOCIATE_IN_PROGRESS: "disassociate-in-progress",
      ISOLATE_COMPLETE: "isolate-complete",
      ISOLATE_IN_PROGRESS: "isolate-in-progress",
      RESTORE_IN_PROGRESS: "restore-in-progress"
    };
    var RouteServerAssociationState = {
      ASSOCIATED: "associated",
      ASSOCIATING: "associating",
      DISASSOCIATING: "disassociating"
    };
    var RouteTableAssociationStateCode = {
      associated: "associated",
      associating: "associating",
      disassociated: "disassociated",
      disassociating: "disassociating",
      failed: "failed"
    };
    var SecurityGroupVpcAssociationState = {
      associated: "associated",
      associating: "associating",
      association_failed: "association-failed",
      disassociated: "disassociated",
      disassociating: "disassociating",
      disassociation_failed: "disassociation-failed"
    };
    var IpSource = {
      amazon: "amazon",
      byoip: "byoip",
      none: "none"
    };
    var Ipv6AddressAttribute = {
      private: "private",
      public: "public"
    };
    var SubnetCidrBlockStateCode = {
      associated: "associated",
      associating: "associating",
      disassociated: "disassociated",
      disassociating: "disassociating",
      failed: "failed",
      failing: "failing"
    };
    var TransitGatewayAssociationState = {
      associated: "associated",
      associating: "associating",
      disassociated: "disassociated",
      disassociating: "disassociating"
    };
    var InterfaceProtocolType = {
      GRE: "GRE",
      VLAN: "VLAN"
    };
    var VpcCidrBlockStateCode = {
      associated: "associated",
      associating: "associating",
      disassociated: "disassociated",
      disassociating: "disassociating",
      failed: "failed",
      failing: "failing"
    };
    var DeviceTrustProviderType = {
      crowdstrike: "crowdstrike",
      jamf: "jamf",
      jumpcloud: "jumpcloud"
    };
    var TrustProviderType = {
      device: "device",
      user: "user"
    };
    var UserTrustProviderType = {
      iam_identity_center: "iam-identity-center",
      oidc: "oidc"
    };
    var VolumeAttachmentState = {
      attached: "attached",
      attaching: "attaching",
      busy: "busy",
      detached: "detached",
      detaching: "detaching"
    };
    var AttachmentStatus = {
      attached: "attached",
      attaching: "attaching",
      detached: "detached",
      detaching: "detaching"
    };
    var ClientVpnAuthorizationRuleStatusCode = {
      active: "active",
      authorizing: "authorizing",
      failed: "failed",
      revoking: "revoking"
    };
    var BundleTaskState = {
      bundling: "bundling",
      cancelling: "cancelling",
      complete: "complete",
      failed: "failed",
      pending: "pending",
      storing: "storing",
      waiting_for_shutdown: "waiting-for-shutdown"
    };
    var CapacityReservationFleetState = {
      ACTIVE: "active",
      CANCELLED: "cancelled",
      CANCELLING: "cancelling",
      EXPIRED: "expired",
      EXPIRING: "expiring",
      FAILED: "failed",
      MODIFYING: "modifying",
      PARTIALLY_FULFILLED: "partially_fulfilled",
      SUBMITTED: "submitted"
    };
    var ListingState = {
      available: "available",
      cancelled: "cancelled",
      pending: "pending",
      sold: "sold"
    };
    var CurrencyCodeValues = {
      USD: "USD"
    };
    var ListingStatus = {
      active: "active",
      cancelled: "cancelled",
      closed: "closed",
      pending: "pending"
    };
    var BatchState = {
      ACTIVE: "active",
      CANCELLED: "cancelled",
      CANCELLED_RUNNING: "cancelled_running",
      CANCELLED_TERMINATING_INSTANCES: "cancelled_terminating",
      FAILED: "failed",
      MODIFYING: "modifying",
      SUBMITTED: "submitted"
    };
    var CancelBatchErrorCode = {
      FLEET_REQUEST_ID_DOES_NOT_EXIST: "fleetRequestIdDoesNotExist",
      FLEET_REQUEST_ID_MALFORMED: "fleetRequestIdMalformed",
      FLEET_REQUEST_NOT_IN_CANCELLABLE_STATE: "fleetRequestNotInCancellableState",
      UNEXPECTED_ERROR: "unexpectedError"
    };
    var CancelSpotInstanceRequestState = {
      active: "active",
      cancelled: "cancelled",
      closed: "closed",
      completed: "completed",
      open: "open"
    };
    var OidcOptionsFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.ClientSecret && { ClientSecret: import_smithy_client28.SENSITIVE_STRING }
    }), "OidcOptionsFilterSensitiveLog");
    var VerifiedAccessTrustProviderFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.OidcOptions && { OidcOptions: OidcOptionsFilterSensitiveLog(obj.OidcOptions) }
    }), "VerifiedAccessTrustProviderFilterSensitiveLog");
    var AttachVerifiedAccessTrustProviderResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.VerifiedAccessTrustProvider && {
        VerifiedAccessTrustProvider: VerifiedAccessTrustProviderFilterSensitiveLog(obj.VerifiedAccessTrustProvider)
      }
    }), "AttachVerifiedAccessTrustProviderResultFilterSensitiveLog");
    var S3StorageFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.UploadPolicySignature && { UploadPolicySignature: import_smithy_client28.SENSITIVE_STRING }
    }), "S3StorageFilterSensitiveLog");
    var StorageFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.S3 && { S3: S3StorageFilterSensitiveLog(obj.S3) }
    }), "StorageFilterSensitiveLog");
    var BundleInstanceRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Storage && { Storage: StorageFilterSensitiveLog(obj.Storage) }
    }), "BundleInstanceRequestFilterSensitiveLog");
    var BundleTaskFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Storage && { Storage: StorageFilterSensitiveLog(obj.Storage) }
    }), "BundleTaskFilterSensitiveLog");
    var BundleInstanceResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.BundleTask && { BundleTask: BundleTaskFilterSensitiveLog(obj.BundleTask) }
    }), "BundleInstanceResultFilterSensitiveLog");
    var CancelBundleTaskResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.BundleTask && { BundleTask: BundleTaskFilterSensitiveLog(obj.BundleTask) }
    }), "CancelBundleTaskResultFilterSensitiveLog");
    var AttachVerifiedAccessTrustProviderCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "AttachVerifiedAccessTrustProvider", {}).n("EC2Client", "AttachVerifiedAccessTrustProviderCommand").f(void 0, AttachVerifiedAccessTrustProviderResultFilterSensitiveLog).ser(se_AttachVerifiedAccessTrustProviderCommand).de(de_AttachVerifiedAccessTrustProviderCommand).build() {
      static {
        __name(this, "AttachVerifiedAccessTrustProviderCommand");
      }
      static {
        __name2(this, "AttachVerifiedAccessTrustProviderCommand");
      }
    };
    var AttachVolumeCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "AttachVolume", {}).n("EC2Client", "AttachVolumeCommand").f(void 0, void 0).ser(se_AttachVolumeCommand).de(de_AttachVolumeCommand).build() {
      static {
        __name(this, "AttachVolumeCommand");
      }
      static {
        __name2(this, "AttachVolumeCommand");
      }
    };
    var AttachVpnGatewayCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "AttachVpnGateway", {}).n("EC2Client", "AttachVpnGatewayCommand").f(void 0, void 0).ser(se_AttachVpnGatewayCommand).de(de_AttachVpnGatewayCommand).build() {
      static {
        __name(this, "AttachVpnGatewayCommand");
      }
      static {
        __name2(this, "AttachVpnGatewayCommand");
      }
    };
    var AuthorizeClientVpnIngressCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "AuthorizeClientVpnIngress", {}).n("EC2Client", "AuthorizeClientVpnIngressCommand").f(void 0, void 0).ser(se_AuthorizeClientVpnIngressCommand).de(de_AuthorizeClientVpnIngressCommand).build() {
      static {
        __name(this, "AuthorizeClientVpnIngressCommand");
      }
      static {
        __name2(this, "AuthorizeClientVpnIngressCommand");
      }
    };
    var AuthorizeSecurityGroupEgressCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "AuthorizeSecurityGroupEgress", {}).n("EC2Client", "AuthorizeSecurityGroupEgressCommand").f(void 0, void 0).ser(se_AuthorizeSecurityGroupEgressCommand).de(de_AuthorizeSecurityGroupEgressCommand).build() {
      static {
        __name(this, "AuthorizeSecurityGroupEgressCommand");
      }
      static {
        __name2(this, "AuthorizeSecurityGroupEgressCommand");
      }
    };
    var AuthorizeSecurityGroupIngressCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "AuthorizeSecurityGroupIngress", {}).n("EC2Client", "AuthorizeSecurityGroupIngressCommand").f(void 0, void 0).ser(se_AuthorizeSecurityGroupIngressCommand).de(de_AuthorizeSecurityGroupIngressCommand).build() {
      static {
        __name(this, "AuthorizeSecurityGroupIngressCommand");
      }
      static {
        __name2(this, "AuthorizeSecurityGroupIngressCommand");
      }
    };
    var BundleInstanceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "BundleInstance", {}).n("EC2Client", "BundleInstanceCommand").f(BundleInstanceRequestFilterSensitiveLog, BundleInstanceResultFilterSensitiveLog).ser(se_BundleInstanceCommand).de(de_BundleInstanceCommand).build() {
      static {
        __name(this, "BundleInstanceCommand");
      }
      static {
        __name2(this, "BundleInstanceCommand");
      }
    };
    var CancelBundleTaskCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CancelBundleTask", {}).n("EC2Client", "CancelBundleTaskCommand").f(void 0, CancelBundleTaskResultFilterSensitiveLog).ser(se_CancelBundleTaskCommand).de(de_CancelBundleTaskCommand).build() {
      static {
        __name(this, "CancelBundleTaskCommand");
      }
      static {
        __name2(this, "CancelBundleTaskCommand");
      }
    };
    var CancelCapacityReservationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CancelCapacityReservation", {}).n("EC2Client", "CancelCapacityReservationCommand").f(void 0, void 0).ser(se_CancelCapacityReservationCommand).de(de_CancelCapacityReservationCommand).build() {
      static {
        __name(this, "CancelCapacityReservationCommand");
      }
      static {
        __name2(this, "CancelCapacityReservationCommand");
      }
    };
    var CancelCapacityReservationFleetsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CancelCapacityReservationFleets", {}).n("EC2Client", "CancelCapacityReservationFleetsCommand").f(void 0, void 0).ser(se_CancelCapacityReservationFleetsCommand).de(de_CancelCapacityReservationFleetsCommand).build() {
      static {
        __name(this, "CancelCapacityReservationFleetsCommand");
      }
      static {
        __name2(this, "CancelCapacityReservationFleetsCommand");
      }
    };
    var CancelConversionTaskCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CancelConversionTask", {}).n("EC2Client", "CancelConversionTaskCommand").f(void 0, void 0).ser(se_CancelConversionTaskCommand).de(de_CancelConversionTaskCommand).build() {
      static {
        __name(this, "CancelConversionTaskCommand");
      }
      static {
        __name2(this, "CancelConversionTaskCommand");
      }
    };
    var CancelDeclarativePoliciesReportCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CancelDeclarativePoliciesReport", {}).n("EC2Client", "CancelDeclarativePoliciesReportCommand").f(void 0, void 0).ser(se_CancelDeclarativePoliciesReportCommand).de(de_CancelDeclarativePoliciesReportCommand).build() {
      static {
        __name(this, "CancelDeclarativePoliciesReportCommand");
      }
      static {
        __name2(this, "CancelDeclarativePoliciesReportCommand");
      }
    };
    var CancelExportTaskCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CancelExportTask", {}).n("EC2Client", "CancelExportTaskCommand").f(void 0, void 0).ser(se_CancelExportTaskCommand).de(de_CancelExportTaskCommand).build() {
      static {
        __name(this, "CancelExportTaskCommand");
      }
      static {
        __name2(this, "CancelExportTaskCommand");
      }
    };
    var CancelImageLaunchPermissionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CancelImageLaunchPermission", {}).n("EC2Client", "CancelImageLaunchPermissionCommand").f(void 0, void 0).ser(se_CancelImageLaunchPermissionCommand).de(de_CancelImageLaunchPermissionCommand).build() {
      static {
        __name(this, "CancelImageLaunchPermissionCommand");
      }
      static {
        __name2(this, "CancelImageLaunchPermissionCommand");
      }
    };
    var CancelImportTaskCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CancelImportTask", {}).n("EC2Client", "CancelImportTaskCommand").f(void 0, void 0).ser(se_CancelImportTaskCommand).de(de_CancelImportTaskCommand).build() {
      static {
        __name(this, "CancelImportTaskCommand");
      }
      static {
        __name2(this, "CancelImportTaskCommand");
      }
    };
    var CancelReservedInstancesListingCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CancelReservedInstancesListing", {}).n("EC2Client", "CancelReservedInstancesListingCommand").f(void 0, void 0).ser(se_CancelReservedInstancesListingCommand).de(de_CancelReservedInstancesListingCommand).build() {
      static {
        __name(this, "CancelReservedInstancesListingCommand");
      }
      static {
        __name2(this, "CancelReservedInstancesListingCommand");
      }
    };
    var CancelSpotFleetRequestsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CancelSpotFleetRequests", {}).n("EC2Client", "CancelSpotFleetRequestsCommand").f(void 0, void 0).ser(se_CancelSpotFleetRequestsCommand).de(de_CancelSpotFleetRequestsCommand).build() {
      static {
        __name(this, "CancelSpotFleetRequestsCommand");
      }
      static {
        __name2(this, "CancelSpotFleetRequestsCommand");
      }
    };
    var CancelSpotInstanceRequestsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CancelSpotInstanceRequests", {}).n("EC2Client", "CancelSpotInstanceRequestsCommand").f(void 0, void 0).ser(se_CancelSpotInstanceRequestsCommand).de(de_CancelSpotInstanceRequestsCommand).build() {
      static {
        __name(this, "CancelSpotInstanceRequestsCommand");
      }
      static {
        __name2(this, "CancelSpotInstanceRequestsCommand");
      }
    };
    var ConfirmProductInstanceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ConfirmProductInstance", {}).n("EC2Client", "ConfirmProductInstanceCommand").f(void 0, void 0).ser(se_ConfirmProductInstanceCommand).de(de_ConfirmProductInstanceCommand).build() {
      static {
        __name(this, "ConfirmProductInstanceCommand");
      }
      static {
        __name2(this, "ConfirmProductInstanceCommand");
      }
    };
    var CopyFpgaImageCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CopyFpgaImage", {}).n("EC2Client", "CopyFpgaImageCommand").f(void 0, void 0).ser(se_CopyFpgaImageCommand).de(de_CopyFpgaImageCommand).build() {
      static {
        __name(this, "CopyFpgaImageCommand");
      }
      static {
        __name2(this, "CopyFpgaImageCommand");
      }
    };
    var CopyImageCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CopyImage", {}).n("EC2Client", "CopyImageCommand").f(void 0, void 0).ser(se_CopyImageCommand).de(de_CopyImageCommand).build() {
      static {
        __name(this, "CopyImageCommand");
      }
      static {
        __name2(this, "CopyImageCommand");
      }
    };
    var import_middleware_sdk_ec2 = require_dist_cjs86();
    var CapacityReservationDeliveryPreference = {
      FIXED: "fixed",
      INCREMENTAL: "incremental"
    };
    var EndDateType = {
      limited: "limited",
      unlimited: "unlimited"
    };
    var InstanceMatchCriteria = {
      open: "open",
      targeted: "targeted"
    };
    var CapacityReservationInstancePlatform = {
      LINUX_UNIX: "Linux/UNIX",
      LINUX_WITH_SQL_SERVER_ENTERPRISE: "Linux with SQL Server Enterprise",
      LINUX_WITH_SQL_SERVER_STANDARD: "Linux with SQL Server Standard",
      LINUX_WITH_SQL_SERVER_WEB: "Linux with SQL Server Web",
      RED_HAT_ENTERPRISE_LINUX: "Red Hat Enterprise Linux",
      RHEL_WITH_HA: "RHEL with HA",
      RHEL_WITH_HA_AND_SQL_SERVER_ENTERPRISE: "RHEL with HA and SQL Server Enterprise",
      RHEL_WITH_HA_AND_SQL_SERVER_STANDARD: "RHEL with HA and SQL Server Standard",
      RHEL_WITH_SQL_SERVER_ENTERPRISE: "RHEL with SQL Server Enterprise",
      RHEL_WITH_SQL_SERVER_STANDARD: "RHEL with SQL Server Standard",
      RHEL_WITH_SQL_SERVER_WEB: "RHEL with SQL Server Web",
      SUSE_LINUX: "SUSE Linux",
      UBUNTU_PRO_LINUX: "Ubuntu Pro",
      WINDOWS: "Windows",
      WINDOWS_WITH_SQL_SERVER: "Windows with SQL Server",
      WINDOWS_WITH_SQL_SERVER_ENTERPRISE: "Windows with SQL Server Enterprise",
      WINDOWS_WITH_SQL_SERVER_STANDARD: "Windows with SQL Server Standard",
      WINDOWS_WITH_SQL_SERVER_WEB: "Windows with SQL Server Web"
    };
    var CapacityReservationTenancy = {
      dedicated: "dedicated",
      default: "default"
    };
    var CapacityReservationType = {
      CAPACITY_BLOCK: "capacity-block",
      DEFAULT: "default"
    };
    var CapacityReservationState = {
      active: "active",
      assessing: "assessing",
      cancelled: "cancelled",
      delayed: "delayed",
      expired: "expired",
      failed: "failed",
      payment_failed: "payment-failed",
      payment_pending: "payment-pending",
      pending: "pending",
      scheduled: "scheduled",
      unavailable: "unavailable",
      unsupported: "unsupported"
    };
    var FleetInstanceMatchCriteria = {
      open: "open"
    };
    var _InstanceType = {
      a1_2xlarge: "a1.2xlarge",
      a1_4xlarge: "a1.4xlarge",
      a1_large: "a1.large",
      a1_medium: "a1.medium",
      a1_metal: "a1.metal",
      a1_xlarge: "a1.xlarge",
      c1_medium: "c1.medium",
      c1_xlarge: "c1.xlarge",
      c3_2xlarge: "c3.2xlarge",
      c3_4xlarge: "c3.4xlarge",
      c3_8xlarge: "c3.8xlarge",
      c3_large: "c3.large",
      c3_xlarge: "c3.xlarge",
      c4_2xlarge: "c4.2xlarge",
      c4_4xlarge: "c4.4xlarge",
      c4_8xlarge: "c4.8xlarge",
      c4_large: "c4.large",
      c4_xlarge: "c4.xlarge",
      c5_12xlarge: "c5.12xlarge",
      c5_18xlarge: "c5.18xlarge",
      c5_24xlarge: "c5.24xlarge",
      c5_2xlarge: "c5.2xlarge",
      c5_4xlarge: "c5.4xlarge",
      c5_9xlarge: "c5.9xlarge",
      c5_large: "c5.large",
      c5_metal: "c5.metal",
      c5_xlarge: "c5.xlarge",
      c5a_12xlarge: "c5a.12xlarge",
      c5a_16xlarge: "c5a.16xlarge",
      c5a_24xlarge: "c5a.24xlarge",
      c5a_2xlarge: "c5a.2xlarge",
      c5a_4xlarge: "c5a.4xlarge",
      c5a_8xlarge: "c5a.8xlarge",
      c5a_large: "c5a.large",
      c5a_xlarge: "c5a.xlarge",
      c5ad_12xlarge: "c5ad.12xlarge",
      c5ad_16xlarge: "c5ad.16xlarge",
      c5ad_24xlarge: "c5ad.24xlarge",
      c5ad_2xlarge: "c5ad.2xlarge",
      c5ad_4xlarge: "c5ad.4xlarge",
      c5ad_8xlarge: "c5ad.8xlarge",
      c5ad_large: "c5ad.large",
      c5ad_xlarge: "c5ad.xlarge",
      c5d_12xlarge: "c5d.12xlarge",
      c5d_18xlarge: "c5d.18xlarge",
      c5d_24xlarge: "c5d.24xlarge",
      c5d_2xlarge: "c5d.2xlarge",
      c5d_4xlarge: "c5d.4xlarge",
      c5d_9xlarge: "c5d.9xlarge",
      c5d_large: "c5d.large",
      c5d_metal: "c5d.metal",
      c5d_xlarge: "c5d.xlarge",
      c5n_18xlarge: "c5n.18xlarge",
      c5n_2xlarge: "c5n.2xlarge",
      c5n_4xlarge: "c5n.4xlarge",
      c5n_9xlarge: "c5n.9xlarge",
      c5n_large: "c5n.large",
      c5n_metal: "c5n.metal",
      c5n_xlarge: "c5n.xlarge",
      c6a_12xlarge: "c6a.12xlarge",
      c6a_16xlarge: "c6a.16xlarge",
      c6a_24xlarge: "c6a.24xlarge",
      c6a_2xlarge: "c6a.2xlarge",
      c6a_32xlarge: "c6a.32xlarge",
      c6a_48xlarge: "c6a.48xlarge",
      c6a_4xlarge: "c6a.4xlarge",
      c6a_8xlarge: "c6a.8xlarge",
      c6a_large: "c6a.large",
      c6a_metal: "c6a.metal",
      c6a_xlarge: "c6a.xlarge",
      c6g_12xlarge: "c6g.12xlarge",
      c6g_16xlarge: "c6g.16xlarge",
      c6g_2xlarge: "c6g.2xlarge",
      c6g_4xlarge: "c6g.4xlarge",
      c6g_8xlarge: "c6g.8xlarge",
      c6g_large: "c6g.large",
      c6g_medium: "c6g.medium",
      c6g_metal: "c6g.metal",
      c6g_xlarge: "c6g.xlarge",
      c6gd_12xlarge: "c6gd.12xlarge",
      c6gd_16xlarge: "c6gd.16xlarge",
      c6gd_2xlarge: "c6gd.2xlarge",
      c6gd_4xlarge: "c6gd.4xlarge",
      c6gd_8xlarge: "c6gd.8xlarge",
      c6gd_large: "c6gd.large",
      c6gd_medium: "c6gd.medium",
      c6gd_metal: "c6gd.metal",
      c6gd_xlarge: "c6gd.xlarge",
      c6gn_12xlarge: "c6gn.12xlarge",
      c6gn_16xlarge: "c6gn.16xlarge",
      c6gn_2xlarge: "c6gn.2xlarge",
      c6gn_4xlarge: "c6gn.4xlarge",
      c6gn_8xlarge: "c6gn.8xlarge",
      c6gn_large: "c6gn.large",
      c6gn_medium: "c6gn.medium",
      c6gn_xlarge: "c6gn.xlarge",
      c6i_12xlarge: "c6i.12xlarge",
      c6i_16xlarge: "c6i.16xlarge",
      c6i_24xlarge: "c6i.24xlarge",
      c6i_2xlarge: "c6i.2xlarge",
      c6i_32xlarge: "c6i.32xlarge",
      c6i_4xlarge: "c6i.4xlarge",
      c6i_8xlarge: "c6i.8xlarge",
      c6i_large: "c6i.large",
      c6i_metal: "c6i.metal",
      c6i_xlarge: "c6i.xlarge",
      c6id_12xlarge: "c6id.12xlarge",
      c6id_16xlarge: "c6id.16xlarge",
      c6id_24xlarge: "c6id.24xlarge",
      c6id_2xlarge: "c6id.2xlarge",
      c6id_32xlarge: "c6id.32xlarge",
      c6id_4xlarge: "c6id.4xlarge",
      c6id_8xlarge: "c6id.8xlarge",
      c6id_large: "c6id.large",
      c6id_metal: "c6id.metal",
      c6id_xlarge: "c6id.xlarge",
      c6in_12xlarge: "c6in.12xlarge",
      c6in_16xlarge: "c6in.16xlarge",
      c6in_24xlarge: "c6in.24xlarge",
      c6in_2xlarge: "c6in.2xlarge",
      c6in_32xlarge: "c6in.32xlarge",
      c6in_4xlarge: "c6in.4xlarge",
      c6in_8xlarge: "c6in.8xlarge",
      c6in_large: "c6in.large",
      c6in_metal: "c6in.metal",
      c6in_xlarge: "c6in.xlarge",
      c7a_12xlarge: "c7a.12xlarge",
      c7a_16xlarge: "c7a.16xlarge",
      c7a_24xlarge: "c7a.24xlarge",
      c7a_2xlarge: "c7a.2xlarge",
      c7a_32xlarge: "c7a.32xlarge",
      c7a_48xlarge: "c7a.48xlarge",
      c7a_4xlarge: "c7a.4xlarge",
      c7a_8xlarge: "c7a.8xlarge",
      c7a_large: "c7a.large",
      c7a_medium: "c7a.medium",
      c7a_metal_48xl: "c7a.metal-48xl",
      c7a_xlarge: "c7a.xlarge",
      c7g_12xlarge: "c7g.12xlarge",
      c7g_16xlarge: "c7g.16xlarge",
      c7g_2xlarge: "c7g.2xlarge",
      c7g_4xlarge: "c7g.4xlarge",
      c7g_8xlarge: "c7g.8xlarge",
      c7g_large: "c7g.large",
      c7g_medium: "c7g.medium",
      c7g_metal: "c7g.metal",
      c7g_xlarge: "c7g.xlarge",
      c7gd_12xlarge: "c7gd.12xlarge",
      c7gd_16xlarge: "c7gd.16xlarge",
      c7gd_2xlarge: "c7gd.2xlarge",
      c7gd_4xlarge: "c7gd.4xlarge",
      c7gd_8xlarge: "c7gd.8xlarge",
      c7gd_large: "c7gd.large",
      c7gd_medium: "c7gd.medium",
      c7gd_metal: "c7gd.metal",
      c7gd_xlarge: "c7gd.xlarge",
      c7gn_12xlarge: "c7gn.12xlarge",
      c7gn_16xlarge: "c7gn.16xlarge",
      c7gn_2xlarge: "c7gn.2xlarge",
      c7gn_4xlarge: "c7gn.4xlarge",
      c7gn_8xlarge: "c7gn.8xlarge",
      c7gn_large: "c7gn.large",
      c7gn_medium: "c7gn.medium",
      c7gn_metal: "c7gn.metal",
      c7gn_xlarge: "c7gn.xlarge",
      c7i_12xlarge: "c7i.12xlarge",
      c7i_16xlarge: "c7i.16xlarge",
      c7i_24xlarge: "c7i.24xlarge",
      c7i_2xlarge: "c7i.2xlarge",
      c7i_48xlarge: "c7i.48xlarge",
      c7i_4xlarge: "c7i.4xlarge",
      c7i_8xlarge: "c7i.8xlarge",
      c7i_flex_12xlarge: "c7i-flex.12xlarge",
      c7i_flex_16xlarge: "c7i-flex.16xlarge",
      c7i_flex_2xlarge: "c7i-flex.2xlarge",
      c7i_flex_4xlarge: "c7i-flex.4xlarge",
      c7i_flex_8xlarge: "c7i-flex.8xlarge",
      c7i_flex_large: "c7i-flex.large",
      c7i_flex_xlarge: "c7i-flex.xlarge",
      c7i_large: "c7i.large",
      c7i_metal_24xl: "c7i.metal-24xl",
      c7i_metal_48xl: "c7i.metal-48xl",
      c7i_xlarge: "c7i.xlarge",
      c8g_12xlarge: "c8g.12xlarge",
      c8g_16xlarge: "c8g.16xlarge",
      c8g_24xlarge: "c8g.24xlarge",
      c8g_2xlarge: "c8g.2xlarge",
      c8g_48xlarge: "c8g.48xlarge",
      c8g_4xlarge: "c8g.4xlarge",
      c8g_8xlarge: "c8g.8xlarge",
      c8g_large: "c8g.large",
      c8g_medium: "c8g.medium",
      c8g_metal_24xl: "c8g.metal-24xl",
      c8g_metal_48xl: "c8g.metal-48xl",
      c8g_xlarge: "c8g.xlarge",
      c8gd_12xlarge: "c8gd.12xlarge",
      c8gd_16xlarge: "c8gd.16xlarge",
      c8gd_24xlarge: "c8gd.24xlarge",
      c8gd_2xlarge: "c8gd.2xlarge",
      c8gd_48xlarge: "c8gd.48xlarge",
      c8gd_4xlarge: "c8gd.4xlarge",
      c8gd_8xlarge: "c8gd.8xlarge",
      c8gd_large: "c8gd.large",
      c8gd_medium: "c8gd.medium",
      c8gd_metal_24xl: "c8gd.metal-24xl",
      c8gd_metal_48xl: "c8gd.metal-48xl",
      c8gd_xlarge: "c8gd.xlarge",
      c8gn_12xlarge: "c8gn.12xlarge",
      c8gn_16xlarge: "c8gn.16xlarge",
      c8gn_24xlarge: "c8gn.24xlarge",
      c8gn_2xlarge: "c8gn.2xlarge",
      c8gn_48xlarge: "c8gn.48xlarge",
      c8gn_4xlarge: "c8gn.4xlarge",
      c8gn_8xlarge: "c8gn.8xlarge",
      c8gn_large: "c8gn.large",
      c8gn_medium: "c8gn.medium",
      c8gn_metal_24xl: "c8gn.metal-24xl",
      c8gn_metal_48xl: "c8gn.metal-48xl",
      c8gn_xlarge: "c8gn.xlarge",
      cc1_4xlarge: "cc1.4xlarge",
      cc2_8xlarge: "cc2.8xlarge",
      cg1_4xlarge: "cg1.4xlarge",
      cr1_8xlarge: "cr1.8xlarge",
      d2_2xlarge: "d2.2xlarge",
      d2_4xlarge: "d2.4xlarge",
      d2_8xlarge: "d2.8xlarge",
      d2_xlarge: "d2.xlarge",
      d3_2xlarge: "d3.2xlarge",
      d3_4xlarge: "d3.4xlarge",
      d3_8xlarge: "d3.8xlarge",
      d3_xlarge: "d3.xlarge",
      d3en_12xlarge: "d3en.12xlarge",
      d3en_2xlarge: "d3en.2xlarge",
      d3en_4xlarge: "d3en.4xlarge",
      d3en_6xlarge: "d3en.6xlarge",
      d3en_8xlarge: "d3en.8xlarge",
      d3en_xlarge: "d3en.xlarge",
      dl1_24xlarge: "dl1.24xlarge",
      dl2q_24xlarge: "dl2q.24xlarge",
      f1_16xlarge: "f1.16xlarge",
      f1_2xlarge: "f1.2xlarge",
      f1_4xlarge: "f1.4xlarge",
      f2_12xlarge: "f2.12xlarge",
      f2_48xlarge: "f2.48xlarge",
      f2_6xlarge: "f2.6xlarge",
      g2_2xlarge: "g2.2xlarge",
      g2_8xlarge: "g2.8xlarge",
      g3_16xlarge: "g3.16xlarge",
      g3_4xlarge: "g3.4xlarge",
      g3_8xlarge: "g3.8xlarge",
      g3s_xlarge: "g3s.xlarge",
      g4ad_16xlarge: "g4ad.16xlarge",
      g4ad_2xlarge: "g4ad.2xlarge",
      g4ad_4xlarge: "g4ad.4xlarge",
      g4ad_8xlarge: "g4ad.8xlarge",
      g4ad_xlarge: "g4ad.xlarge",
      g4dn_12xlarge: "g4dn.12xlarge",
      g4dn_16xlarge: "g4dn.16xlarge",
      g4dn_2xlarge: "g4dn.2xlarge",
      g4dn_4xlarge: "g4dn.4xlarge",
      g4dn_8xlarge: "g4dn.8xlarge",
      g4dn_metal: "g4dn.metal",
      g4dn_xlarge: "g4dn.xlarge",
      g5_12xlarge: "g5.12xlarge",
      g5_16xlarge: "g5.16xlarge",
      g5_24xlarge: "g5.24xlarge",
      g5_2xlarge: "g5.2xlarge",
      g5_48xlarge: "g5.48xlarge",
      g5_4xlarge: "g5.4xlarge",
      g5_8xlarge: "g5.8xlarge",
      g5_xlarge: "g5.xlarge",
      g5g_16xlarge: "g5g.16xlarge",
      g5g_2xlarge: "g5g.2xlarge",
      g5g_4xlarge: "g5g.4xlarge",
      g5g_8xlarge: "g5g.8xlarge",
      g5g_metal: "g5g.metal",
      g5g_xlarge: "g5g.xlarge",
      g6_12xlarge: "g6.12xlarge",
      g6_16xlarge: "g6.16xlarge",
      g6_24xlarge: "g6.24xlarge",
      g6_2xlarge: "g6.2xlarge",
      g6_48xlarge: "g6.48xlarge",
      g6_4xlarge: "g6.4xlarge",
      g6_8xlarge: "g6.8xlarge",
      g6_xlarge: "g6.xlarge",
      g6e_12xlarge: "g6e.12xlarge",
      g6e_16xlarge: "g6e.16xlarge",
      g6e_24xlarge: "g6e.24xlarge",
      g6e_2xlarge: "g6e.2xlarge",
      g6e_48xlarge: "g6e.48xlarge",
      g6e_4xlarge: "g6e.4xlarge",
      g6e_8xlarge: "g6e.8xlarge",
      g6e_xlarge: "g6e.xlarge",
      gr6_4xlarge: "gr6.4xlarge",
      gr6_8xlarge: "gr6.8xlarge",
      h1_16xlarge: "h1.16xlarge",
      h1_2xlarge: "h1.2xlarge",
      h1_4xlarge: "h1.4xlarge",
      h1_8xlarge: "h1.8xlarge",
      hi1_4xlarge: "hi1.4xlarge",
      hpc6a_48xlarge: "hpc6a.48xlarge",
      hpc6id_32xlarge: "hpc6id.32xlarge",
      hpc7a_12xlarge: "hpc7a.12xlarge",
      hpc7a_24xlarge: "hpc7a.24xlarge",
      hpc7a_48xlarge: "hpc7a.48xlarge",
      hpc7a_96xlarge: "hpc7a.96xlarge",
      hpc7g_16xlarge: "hpc7g.16xlarge",
      hpc7g_4xlarge: "hpc7g.4xlarge",
      hpc7g_8xlarge: "hpc7g.8xlarge",
      hs1_8xlarge: "hs1.8xlarge",
      i2_2xlarge: "i2.2xlarge",
      i2_4xlarge: "i2.4xlarge",
      i2_8xlarge: "i2.8xlarge",
      i2_xlarge: "i2.xlarge",
      i3_16xlarge: "i3.16xlarge",
      i3_2xlarge: "i3.2xlarge",
      i3_4xlarge: "i3.4xlarge",
      i3_8xlarge: "i3.8xlarge",
      i3_large: "i3.large",
      i3_metal: "i3.metal",
      i3_xlarge: "i3.xlarge",
      i3en_12xlarge: "i3en.12xlarge",
      i3en_24xlarge: "i3en.24xlarge",
      i3en_2xlarge: "i3en.2xlarge",
      i3en_3xlarge: "i3en.3xlarge",
      i3en_6xlarge: "i3en.6xlarge",
      i3en_large: "i3en.large",
      i3en_metal: "i3en.metal",
      i3en_xlarge: "i3en.xlarge",
      i4g_16xlarge: "i4g.16xlarge",
      i4g_2xlarge: "i4g.2xlarge",
      i4g_4xlarge: "i4g.4xlarge",
      i4g_8xlarge: "i4g.8xlarge",
      i4g_large: "i4g.large",
      i4g_xlarge: "i4g.xlarge",
      i4i_12xlarge: "i4i.12xlarge",
      i4i_16xlarge: "i4i.16xlarge",
      i4i_24xlarge: "i4i.24xlarge",
      i4i_2xlarge: "i4i.2xlarge",
      i4i_32xlarge: "i4i.32xlarge",
      i4i_4xlarge: "i4i.4xlarge",
      i4i_8xlarge: "i4i.8xlarge",
      i4i_large: "i4i.large",
      i4i_metal: "i4i.metal",
      i4i_xlarge: "i4i.xlarge",
      i7i_12xlarge: "i7i.12xlarge",
      i7i_16xlarge: "i7i.16xlarge",
      i7i_24xlarge: "i7i.24xlarge",
      i7i_2xlarge: "i7i.2xlarge",
      i7i_48xlarge: "i7i.48xlarge",
      i7i_4xlarge: "i7i.4xlarge",
      i7i_8xlarge: "i7i.8xlarge",
      i7i_large: "i7i.large",
      i7i_metal_24xl: "i7i.metal-24xl",
      i7i_metal_48xl: "i7i.metal-48xl",
      i7i_xlarge: "i7i.xlarge",
      i7ie_12xlarge: "i7ie.12xlarge",
      i7ie_18xlarge: "i7ie.18xlarge",
      i7ie_24xlarge: "i7ie.24xlarge",
      i7ie_2xlarge: "i7ie.2xlarge",
      i7ie_3xlarge: "i7ie.3xlarge",
      i7ie_48xlarge: "i7ie.48xlarge",
      i7ie_6xlarge: "i7ie.6xlarge",
      i7ie_large: "i7ie.large",
      i7ie_metal_24xl: "i7ie.metal-24xl",
      i7ie_metal_48xl: "i7ie.metal-48xl",
      i7ie_xlarge: "i7ie.xlarge",
      i8g_12xlarge: "i8g.12xlarge",
      i8g_16xlarge: "i8g.16xlarge",
      i8g_24xlarge: "i8g.24xlarge",
      i8g_2xlarge: "i8g.2xlarge",
      i8g_48xlarge: "i8g.48xlarge",
      i8g_4xlarge: "i8g.4xlarge",
      i8g_8xlarge: "i8g.8xlarge",
      i8g_large: "i8g.large",
      i8g_metal_24xl: "i8g.metal-24xl",
      i8g_xlarge: "i8g.xlarge",
      im4gn_16xlarge: "im4gn.16xlarge",
      im4gn_2xlarge: "im4gn.2xlarge",
      im4gn_4xlarge: "im4gn.4xlarge",
      im4gn_8xlarge: "im4gn.8xlarge",
      im4gn_large: "im4gn.large",
      im4gn_xlarge: "im4gn.xlarge",
      inf1_24xlarge: "inf1.24xlarge",
      inf1_2xlarge: "inf1.2xlarge",
      inf1_6xlarge: "inf1.6xlarge",
      inf1_xlarge: "inf1.xlarge",
      inf2_24xlarge: "inf2.24xlarge",
      inf2_48xlarge: "inf2.48xlarge",
      inf2_8xlarge: "inf2.8xlarge",
      inf2_xlarge: "inf2.xlarge",
      is4gen_2xlarge: "is4gen.2xlarge",
      is4gen_4xlarge: "is4gen.4xlarge",
      is4gen_8xlarge: "is4gen.8xlarge",
      is4gen_large: "is4gen.large",
      is4gen_medium: "is4gen.medium",
      is4gen_xlarge: "is4gen.xlarge",
      m1_large: "m1.large",
      m1_medium: "m1.medium",
      m1_small: "m1.small",
      m1_xlarge: "m1.xlarge",
      m2_2xlarge: "m2.2xlarge",
      m2_4xlarge: "m2.4xlarge",
      m2_xlarge: "m2.xlarge",
      m3_2xlarge: "m3.2xlarge",
      m3_large: "m3.large",
      m3_medium: "m3.medium",
      m3_xlarge: "m3.xlarge",
      m4_10xlarge: "m4.10xlarge",
      m4_16xlarge: "m4.16xlarge",
      m4_2xlarge: "m4.2xlarge",
      m4_4xlarge: "m4.4xlarge",
      m4_large: "m4.large",
      m4_xlarge: "m4.xlarge",
      m5_12xlarge: "m5.12xlarge",
      m5_16xlarge: "m5.16xlarge",
      m5_24xlarge: "m5.24xlarge",
      m5_2xlarge: "m5.2xlarge",
      m5_4xlarge: "m5.4xlarge",
      m5_8xlarge: "m5.8xlarge",
      m5_large: "m5.large",
      m5_metal: "m5.metal",
      m5_xlarge: "m5.xlarge",
      m5a_12xlarge: "m5a.12xlarge",
      m5a_16xlarge: "m5a.16xlarge",
      m5a_24xlarge: "m5a.24xlarge",
      m5a_2xlarge: "m5a.2xlarge",
      m5a_4xlarge: "m5a.4xlarge",
      m5a_8xlarge: "m5a.8xlarge",
      m5a_large: "m5a.large",
      m5a_xlarge: "m5a.xlarge",
      m5ad_12xlarge: "m5ad.12xlarge",
      m5ad_16xlarge: "m5ad.16xlarge",
      m5ad_24xlarge: "m5ad.24xlarge",
      m5ad_2xlarge: "m5ad.2xlarge",
      m5ad_4xlarge: "m5ad.4xlarge",
      m5ad_8xlarge: "m5ad.8xlarge",
      m5ad_large: "m5ad.large",
      m5ad_xlarge: "m5ad.xlarge",
      m5d_12xlarge: "m5d.12xlarge",
      m5d_16xlarge: "m5d.16xlarge",
      m5d_24xlarge: "m5d.24xlarge",
      m5d_2xlarge: "m5d.2xlarge",
      m5d_4xlarge: "m5d.4xlarge",
      m5d_8xlarge: "m5d.8xlarge",
      m5d_large: "m5d.large",
      m5d_metal: "m5d.metal",
      m5d_xlarge: "m5d.xlarge",
      m5dn_12xlarge: "m5dn.12xlarge",
      m5dn_16xlarge: "m5dn.16xlarge",
      m5dn_24xlarge: "m5dn.24xlarge",
      m5dn_2xlarge: "m5dn.2xlarge",
      m5dn_4xlarge: "m5dn.4xlarge",
      m5dn_8xlarge: "m5dn.8xlarge",
      m5dn_large: "m5dn.large",
      m5dn_metal: "m5dn.metal",
      m5dn_xlarge: "m5dn.xlarge",
      m5n_12xlarge: "m5n.12xlarge",
      m5n_16xlarge: "m5n.16xlarge",
      m5n_24xlarge: "m5n.24xlarge",
      m5n_2xlarge: "m5n.2xlarge",
      m5n_4xlarge: "m5n.4xlarge",
      m5n_8xlarge: "m5n.8xlarge",
      m5n_large: "m5n.large",
      m5n_metal: "m5n.metal",
      m5n_xlarge: "m5n.xlarge",
      m5zn_12xlarge: "m5zn.12xlarge",
      m5zn_2xlarge: "m5zn.2xlarge",
      m5zn_3xlarge: "m5zn.3xlarge",
      m5zn_6xlarge: "m5zn.6xlarge",
      m5zn_large: "m5zn.large",
      m5zn_metal: "m5zn.metal",
      m5zn_xlarge: "m5zn.xlarge",
      m6a_12xlarge: "m6a.12xlarge",
      m6a_16xlarge: "m6a.16xlarge",
      m6a_24xlarge: "m6a.24xlarge",
      m6a_2xlarge: "m6a.2xlarge",
      m6a_32xlarge: "m6a.32xlarge",
      m6a_48xlarge: "m6a.48xlarge",
      m6a_4xlarge: "m6a.4xlarge",
      m6a_8xlarge: "m6a.8xlarge",
      m6a_large: "m6a.large",
      m6a_metal: "m6a.metal",
      m6a_xlarge: "m6a.xlarge",
      m6g_12xlarge: "m6g.12xlarge",
      m6g_16xlarge: "m6g.16xlarge",
      m6g_2xlarge: "m6g.2xlarge",
      m6g_4xlarge: "m6g.4xlarge",
      m6g_8xlarge: "m6g.8xlarge",
      m6g_large: "m6g.large",
      m6g_medium: "m6g.medium",
      m6g_metal: "m6g.metal",
      m6g_xlarge: "m6g.xlarge",
      m6gd_12xlarge: "m6gd.12xlarge",
      m6gd_16xlarge: "m6gd.16xlarge",
      m6gd_2xlarge: "m6gd.2xlarge",
      m6gd_4xlarge: "m6gd.4xlarge",
      m6gd_8xlarge: "m6gd.8xlarge",
      m6gd_large: "m6gd.large",
      m6gd_medium: "m6gd.medium",
      m6gd_metal: "m6gd.metal",
      m6gd_xlarge: "m6gd.xlarge",
      m6i_12xlarge: "m6i.12xlarge",
      m6i_16xlarge: "m6i.16xlarge",
      m6i_24xlarge: "m6i.24xlarge",
      m6i_2xlarge: "m6i.2xlarge",
      m6i_32xlarge: "m6i.32xlarge",
      m6i_4xlarge: "m6i.4xlarge",
      m6i_8xlarge: "m6i.8xlarge",
      m6i_large: "m6i.large",
      m6i_metal: "m6i.metal",
      m6i_xlarge: "m6i.xlarge",
      m6id_12xlarge: "m6id.12xlarge",
      m6id_16xlarge: "m6id.16xlarge",
      m6id_24xlarge: "m6id.24xlarge",
      m6id_2xlarge: "m6id.2xlarge",
      m6id_32xlarge: "m6id.32xlarge",
      m6id_4xlarge: "m6id.4xlarge",
      m6id_8xlarge: "m6id.8xlarge",
      m6id_large: "m6id.large",
      m6id_metal: "m6id.metal",
      m6id_xlarge: "m6id.xlarge",
      m6idn_12xlarge: "m6idn.12xlarge",
      m6idn_16xlarge: "m6idn.16xlarge",
      m6idn_24xlarge: "m6idn.24xlarge",
      m6idn_2xlarge: "m6idn.2xlarge",
      m6idn_32xlarge: "m6idn.32xlarge",
      m6idn_4xlarge: "m6idn.4xlarge",
      m6idn_8xlarge: "m6idn.8xlarge",
      m6idn_large: "m6idn.large",
      m6idn_metal: "m6idn.metal",
      m6idn_xlarge: "m6idn.xlarge",
      m6in_12xlarge: "m6in.12xlarge",
      m6in_16xlarge: "m6in.16xlarge",
      m6in_24xlarge: "m6in.24xlarge",
      m6in_2xlarge: "m6in.2xlarge",
      m6in_32xlarge: "m6in.32xlarge",
      m6in_4xlarge: "m6in.4xlarge",
      m6in_8xlarge: "m6in.8xlarge",
      m6in_large: "m6in.large",
      m6in_metal: "m6in.metal",
      m6in_xlarge: "m6in.xlarge",
      m7a_12xlarge: "m7a.12xlarge",
      m7a_16xlarge: "m7a.16xlarge",
      m7a_24xlarge: "m7a.24xlarge",
      m7a_2xlarge: "m7a.2xlarge",
      m7a_32xlarge: "m7a.32xlarge",
      m7a_48xlarge: "m7a.48xlarge",
      m7a_4xlarge: "m7a.4xlarge",
      m7a_8xlarge: "m7a.8xlarge",
      m7a_large: "m7a.large",
      m7a_medium: "m7a.medium",
      m7a_metal_48xl: "m7a.metal-48xl",
      m7a_xlarge: "m7a.xlarge",
      m7g_12xlarge: "m7g.12xlarge",
      m7g_16xlarge: "m7g.16xlarge",
      m7g_2xlarge: "m7g.2xlarge",
      m7g_4xlarge: "m7g.4xlarge",
      m7g_8xlarge: "m7g.8xlarge",
      m7g_large: "m7g.large",
      m7g_medium: "m7g.medium",
      m7g_metal: "m7g.metal",
      m7g_xlarge: "m7g.xlarge",
      m7gd_12xlarge: "m7gd.12xlarge",
      m7gd_16xlarge: "m7gd.16xlarge",
      m7gd_2xlarge: "m7gd.2xlarge",
      m7gd_4xlarge: "m7gd.4xlarge",
      m7gd_8xlarge: "m7gd.8xlarge",
      m7gd_large: "m7gd.large",
      m7gd_medium: "m7gd.medium",
      m7gd_metal: "m7gd.metal",
      m7gd_xlarge: "m7gd.xlarge",
      m7i_12xlarge: "m7i.12xlarge",
      m7i_16xlarge: "m7i.16xlarge",
      m7i_24xlarge: "m7i.24xlarge",
      m7i_2xlarge: "m7i.2xlarge",
      m7i_48xlarge: "m7i.48xlarge",
      m7i_4xlarge: "m7i.4xlarge",
      m7i_8xlarge: "m7i.8xlarge",
      m7i_flex_12xlarge: "m7i-flex.12xlarge",
      m7i_flex_16xlarge: "m7i-flex.16xlarge",
      m7i_flex_2xlarge: "m7i-flex.2xlarge",
      m7i_flex_4xlarge: "m7i-flex.4xlarge",
      m7i_flex_8xlarge: "m7i-flex.8xlarge",
      m7i_flex_large: "m7i-flex.large",
      m7i_flex_xlarge: "m7i-flex.xlarge",
      m7i_large: "m7i.large",
      m7i_metal_24xl: "m7i.metal-24xl",
      m7i_metal_48xl: "m7i.metal-48xl",
      m7i_xlarge: "m7i.xlarge",
      m8g_12xlarge: "m8g.12xlarge",
      m8g_16xlarge: "m8g.16xlarge",
      m8g_24xlarge: "m8g.24xlarge",
      m8g_2xlarge: "m8g.2xlarge",
      m8g_48xlarge: "m8g.48xlarge",
      m8g_4xlarge: "m8g.4xlarge",
      m8g_8xlarge: "m8g.8xlarge",
      m8g_large: "m8g.large",
      m8g_medium: "m8g.medium",
      m8g_metal_24xl: "m8g.metal-24xl",
      m8g_metal_48xl: "m8g.metal-48xl",
      m8g_xlarge: "m8g.xlarge",
      m8gd_12xlarge: "m8gd.12xlarge",
      m8gd_16xlarge: "m8gd.16xlarge",
      m8gd_24xlarge: "m8gd.24xlarge",
      m8gd_2xlarge: "m8gd.2xlarge",
      m8gd_48xlarge: "m8gd.48xlarge",
      m8gd_4xlarge: "m8gd.4xlarge",
      m8gd_8xlarge: "m8gd.8xlarge",
      m8gd_large: "m8gd.large",
      m8gd_medium: "m8gd.medium",
      m8gd_metal_24xl: "m8gd.metal-24xl",
      m8gd_metal_48xl: "m8gd.metal-48xl",
      m8gd_xlarge: "m8gd.xlarge",
      mac1_metal: "mac1.metal",
      mac2_m1ultra_metal: "mac2-m1ultra.metal",
      mac2_m2_metal: "mac2-m2.metal",
      mac2_m2pro_metal: "mac2-m2pro.metal",
      mac2_metal: "mac2.metal",
      p2_16xlarge: "p2.16xlarge",
      p2_8xlarge: "p2.8xlarge",
      p2_xlarge: "p2.xlarge",
      p3_16xlarge: "p3.16xlarge",
      p3_2xlarge: "p3.2xlarge",
      p3_8xlarge: "p3.8xlarge",
      p3dn_24xlarge: "p3dn.24xlarge",
      p4d_24xlarge: "p4d.24xlarge",
      p4de_24xlarge: "p4de.24xlarge",
      p5_48xlarge: "p5.48xlarge",
      p5e_48xlarge: "p5e.48xlarge",
      p5en_48xlarge: "p5en.48xlarge",
      p6_b200_48xlarge: "p6-b200.48xlarge",
      p6e_gb200_36xlarge: "p6e-gb200.36xlarge",
      r3_2xlarge: "r3.2xlarge",
      r3_4xlarge: "r3.4xlarge",
      r3_8xlarge: "r3.8xlarge",
      r3_large: "r3.large",
      r3_xlarge: "r3.xlarge",
      r4_16xlarge: "r4.16xlarge",
      r4_2xlarge: "r4.2xlarge",
      r4_4xlarge: "r4.4xlarge",
      r4_8xlarge: "r4.8xlarge",
      r4_large: "r4.large",
      r4_xlarge: "r4.xlarge",
      r5_12xlarge: "r5.12xlarge",
      r5_16xlarge: "r5.16xlarge",
      r5_24xlarge: "r5.24xlarge",
      r5_2xlarge: "r5.2xlarge",
      r5_4xlarge: "r5.4xlarge",
      r5_8xlarge: "r5.8xlarge",
      r5_large: "r5.large",
      r5_metal: "r5.metal",
      r5_xlarge: "r5.xlarge",
      r5a_12xlarge: "r5a.12xlarge",
      r5a_16xlarge: "r5a.16xlarge",
      r5a_24xlarge: "r5a.24xlarge",
      r5a_2xlarge: "r5a.2xlarge",
      r5a_4xlarge: "r5a.4xlarge",
      r5a_8xlarge: "r5a.8xlarge",
      r5a_large: "r5a.large",
      r5a_xlarge: "r5a.xlarge",
      r5ad_12xlarge: "r5ad.12xlarge",
      r5ad_16xlarge: "r5ad.16xlarge",
      r5ad_24xlarge: "r5ad.24xlarge",
      r5ad_2xlarge: "r5ad.2xlarge",
      r5ad_4xlarge: "r5ad.4xlarge",
      r5ad_8xlarge: "r5ad.8xlarge",
      r5ad_large: "r5ad.large",
      r5ad_xlarge: "r5ad.xlarge",
      r5b_12xlarge: "r5b.12xlarge",
      r5b_16xlarge: "r5b.16xlarge",
      r5b_24xlarge: "r5b.24xlarge",
      r5b_2xlarge: "r5b.2xlarge",
      r5b_4xlarge: "r5b.4xlarge",
      r5b_8xlarge: "r5b.8xlarge",
      r5b_large: "r5b.large",
      r5b_metal: "r5b.metal",
      r5b_xlarge: "r5b.xlarge",
      r5d_12xlarge: "r5d.12xlarge",
      r5d_16xlarge: "r5d.16xlarge",
      r5d_24xlarge: "r5d.24xlarge",
      r5d_2xlarge: "r5d.2xlarge",
      r5d_4xlarge: "r5d.4xlarge",
      r5d_8xlarge: "r5d.8xlarge",
      r5d_large: "r5d.large",
      r5d_metal: "r5d.metal",
      r5d_xlarge: "r5d.xlarge",
      r5dn_12xlarge: "r5dn.12xlarge",
      r5dn_16xlarge: "r5dn.16xlarge",
      r5dn_24xlarge: "r5dn.24xlarge",
      r5dn_2xlarge: "r5dn.2xlarge",
      r5dn_4xlarge: "r5dn.4xlarge",
      r5dn_8xlarge: "r5dn.8xlarge",
      r5dn_large: "r5dn.large",
      r5dn_metal: "r5dn.metal",
      r5dn_xlarge: "r5dn.xlarge",
      r5n_12xlarge: "r5n.12xlarge",
      r5n_16xlarge: "r5n.16xlarge",
      r5n_24xlarge: "r5n.24xlarge",
      r5n_2xlarge: "r5n.2xlarge",
      r5n_4xlarge: "r5n.4xlarge",
      r5n_8xlarge: "r5n.8xlarge",
      r5n_large: "r5n.large",
      r5n_metal: "r5n.metal",
      r5n_xlarge: "r5n.xlarge",
      r6a_12xlarge: "r6a.12xlarge",
      r6a_16xlarge: "r6a.16xlarge",
      r6a_24xlarge: "r6a.24xlarge",
      r6a_2xlarge: "r6a.2xlarge",
      r6a_32xlarge: "r6a.32xlarge",
      r6a_48xlarge: "r6a.48xlarge",
      r6a_4xlarge: "r6a.4xlarge",
      r6a_8xlarge: "r6a.8xlarge",
      r6a_large: "r6a.large",
      r6a_metal: "r6a.metal",
      r6a_xlarge: "r6a.xlarge",
      r6g_12xlarge: "r6g.12xlarge",
      r6g_16xlarge: "r6g.16xlarge",
      r6g_2xlarge: "r6g.2xlarge",
      r6g_4xlarge: "r6g.4xlarge",
      r6g_8xlarge: "r6g.8xlarge",
      r6g_large: "r6g.large",
      r6g_medium: "r6g.medium",
      r6g_metal: "r6g.metal",
      r6g_xlarge: "r6g.xlarge",
      r6gd_12xlarge: "r6gd.12xlarge",
      r6gd_16xlarge: "r6gd.16xlarge",
      r6gd_2xlarge: "r6gd.2xlarge",
      r6gd_4xlarge: "r6gd.4xlarge",
      r6gd_8xlarge: "r6gd.8xlarge",
      r6gd_large: "r6gd.large",
      r6gd_medium: "r6gd.medium",
      r6gd_metal: "r6gd.metal",
      r6gd_xlarge: "r6gd.xlarge",
      r6i_12xlarge: "r6i.12xlarge",
      r6i_16xlarge: "r6i.16xlarge",
      r6i_24xlarge: "r6i.24xlarge",
      r6i_2xlarge: "r6i.2xlarge",
      r6i_32xlarge: "r6i.32xlarge",
      r6i_4xlarge: "r6i.4xlarge",
      r6i_8xlarge: "r6i.8xlarge",
      r6i_large: "r6i.large",
      r6i_metal: "r6i.metal",
      r6i_xlarge: "r6i.xlarge",
      r6id_12xlarge: "r6id.12xlarge",
      r6id_16xlarge: "r6id.16xlarge",
      r6id_24xlarge: "r6id.24xlarge",
      r6id_2xlarge: "r6id.2xlarge",
      r6id_32xlarge: "r6id.32xlarge",
      r6id_4xlarge: "r6id.4xlarge",
      r6id_8xlarge: "r6id.8xlarge",
      r6id_large: "r6id.large",
      r6id_metal: "r6id.metal",
      r6id_xlarge: "r6id.xlarge",
      r6idn_12xlarge: "r6idn.12xlarge",
      r6idn_16xlarge: "r6idn.16xlarge",
      r6idn_24xlarge: "r6idn.24xlarge",
      r6idn_2xlarge: "r6idn.2xlarge",
      r6idn_32xlarge: "r6idn.32xlarge",
      r6idn_4xlarge: "r6idn.4xlarge",
      r6idn_8xlarge: "r6idn.8xlarge",
      r6idn_large: "r6idn.large",
      r6idn_metal: "r6idn.metal",
      r6idn_xlarge: "r6idn.xlarge",
      r6in_12xlarge: "r6in.12xlarge",
      r6in_16xlarge: "r6in.16xlarge",
      r6in_24xlarge: "r6in.24xlarge",
      r6in_2xlarge: "r6in.2xlarge",
      r6in_32xlarge: "r6in.32xlarge",
      r6in_4xlarge: "r6in.4xlarge",
      r6in_8xlarge: "r6in.8xlarge",
      r6in_large: "r6in.large",
      r6in_metal: "r6in.metal",
      r6in_xlarge: "r6in.xlarge",
      r7a_12xlarge: "r7a.12xlarge",
      r7a_16xlarge: "r7a.16xlarge",
      r7a_24xlarge: "r7a.24xlarge",
      r7a_2xlarge: "r7a.2xlarge",
      r7a_32xlarge: "r7a.32xlarge",
      r7a_48xlarge: "r7a.48xlarge",
      r7a_4xlarge: "r7a.4xlarge",
      r7a_8xlarge: "r7a.8xlarge",
      r7a_large: "r7a.large",
      r7a_medium: "r7a.medium",
      r7a_metal_48xl: "r7a.metal-48xl",
      r7a_xlarge: "r7a.xlarge",
      r7g_12xlarge: "r7g.12xlarge",
      r7g_16xlarge: "r7g.16xlarge",
      r7g_2xlarge: "r7g.2xlarge",
      r7g_4xlarge: "r7g.4xlarge",
      r7g_8xlarge: "r7g.8xlarge",
      r7g_large: "r7g.large",
      r7g_medium: "r7g.medium",
      r7g_metal: "r7g.metal",
      r7g_xlarge: "r7g.xlarge",
      r7gd_12xlarge: "r7gd.12xlarge",
      r7gd_16xlarge: "r7gd.16xlarge",
      r7gd_2xlarge: "r7gd.2xlarge",
      r7gd_4xlarge: "r7gd.4xlarge",
      r7gd_8xlarge: "r7gd.8xlarge",
      r7gd_large: "r7gd.large",
      r7gd_medium: "r7gd.medium",
      r7gd_metal: "r7gd.metal",
      r7gd_xlarge: "r7gd.xlarge",
      r7i_12xlarge: "r7i.12xlarge",
      r7i_16xlarge: "r7i.16xlarge",
      r7i_24xlarge: "r7i.24xlarge",
      r7i_2xlarge: "r7i.2xlarge",
      r7i_48xlarge: "r7i.48xlarge",
      r7i_4xlarge: "r7i.4xlarge",
      r7i_8xlarge: "r7i.8xlarge",
      r7i_large: "r7i.large",
      r7i_metal_24xl: "r7i.metal-24xl",
      r7i_metal_48xl: "r7i.metal-48xl",
      r7i_xlarge: "r7i.xlarge",
      r7iz_12xlarge: "r7iz.12xlarge",
      r7iz_16xlarge: "r7iz.16xlarge",
      r7iz_2xlarge: "r7iz.2xlarge",
      r7iz_32xlarge: "r7iz.32xlarge",
      r7iz_4xlarge: "r7iz.4xlarge",
      r7iz_8xlarge: "r7iz.8xlarge",
      r7iz_large: "r7iz.large",
      r7iz_metal_16xl: "r7iz.metal-16xl",
      r7iz_metal_32xl: "r7iz.metal-32xl",
      r7iz_xlarge: "r7iz.xlarge",
      r8g_12xlarge: "r8g.12xlarge",
      r8g_16xlarge: "r8g.16xlarge",
      r8g_24xlarge: "r8g.24xlarge",
      r8g_2xlarge: "r8g.2xlarge",
      r8g_48xlarge: "r8g.48xlarge",
      r8g_4xlarge: "r8g.4xlarge",
      r8g_8xlarge: "r8g.8xlarge",
      r8g_large: "r8g.large",
      r8g_medium: "r8g.medium",
      r8g_metal_24xl: "r8g.metal-24xl",
      r8g_metal_48xl: "r8g.metal-48xl",
      r8g_xlarge: "r8g.xlarge",
      r8gd_12xlarge: "r8gd.12xlarge",
      r8gd_16xlarge: "r8gd.16xlarge",
      r8gd_24xlarge: "r8gd.24xlarge",
      r8gd_2xlarge: "r8gd.2xlarge",
      r8gd_48xlarge: "r8gd.48xlarge",
      r8gd_4xlarge: "r8gd.4xlarge",
      r8gd_8xlarge: "r8gd.8xlarge",
      r8gd_large: "r8gd.large",
      r8gd_medium: "r8gd.medium",
      r8gd_metal_24xl: "r8gd.metal-24xl",
      r8gd_metal_48xl: "r8gd.metal-48xl",
      r8gd_xlarge: "r8gd.xlarge",
      t1_micro: "t1.micro",
      t2_2xlarge: "t2.2xlarge",
      t2_large: "t2.large",
      t2_medium: "t2.medium",
      t2_micro: "t2.micro",
      t2_nano: "t2.nano",
      t2_small: "t2.small",
      t2_xlarge: "t2.xlarge",
      t3_2xlarge: "t3.2xlarge",
      t3_large: "t3.large",
      t3_medium: "t3.medium",
      t3_micro: "t3.micro",
      t3_nano: "t3.nano",
      t3_small: "t3.small",
      t3_xlarge: "t3.xlarge",
      t3a_2xlarge: "t3a.2xlarge",
      t3a_large: "t3a.large",
      t3a_medium: "t3a.medium",
      t3a_micro: "t3a.micro",
      t3a_nano: "t3a.nano",
      t3a_small: "t3a.small",
      t3a_xlarge: "t3a.xlarge",
      t4g_2xlarge: "t4g.2xlarge",
      t4g_large: "t4g.large",
      t4g_medium: "t4g.medium",
      t4g_micro: "t4g.micro",
      t4g_nano: "t4g.nano",
      t4g_small: "t4g.small",
      t4g_xlarge: "t4g.xlarge",
      trn1_2xlarge: "trn1.2xlarge",
      trn1_32xlarge: "trn1.32xlarge",
      trn1n_32xlarge: "trn1n.32xlarge",
      trn2_48xlarge: "trn2.48xlarge",
      u7i_12tb_224xlarge: "u7i-12tb.224xlarge",
      u7i_6tb_112xlarge: "u7i-6tb.112xlarge",
      u7i_8tb_112xlarge: "u7i-8tb.112xlarge",
      u7ib_12tb_224xlarge: "u7ib-12tb.224xlarge",
      u7in_16tb_224xlarge: "u7in-16tb.224xlarge",
      u7in_24tb_224xlarge: "u7in-24tb.224xlarge",
      u7in_32tb_224xlarge: "u7in-32tb.224xlarge",
      u7inh_32tb_480xlarge: "u7inh-32tb.480xlarge",
      u_12tb1_112xlarge: "u-12tb1.112xlarge",
      u_12tb1_metal: "u-12tb1.metal",
      u_18tb1_112xlarge: "u-18tb1.112xlarge",
      u_18tb1_metal: "u-18tb1.metal",
      u_24tb1_112xlarge: "u-24tb1.112xlarge",
      u_24tb1_metal: "u-24tb1.metal",
      u_3tb1_56xlarge: "u-3tb1.56xlarge",
      u_6tb1_112xlarge: "u-6tb1.112xlarge",
      u_6tb1_56xlarge: "u-6tb1.56xlarge",
      u_6tb1_metal: "u-6tb1.metal",
      u_9tb1_112xlarge: "u-9tb1.112xlarge",
      u_9tb1_metal: "u-9tb1.metal",
      vt1_24xlarge: "vt1.24xlarge",
      vt1_3xlarge: "vt1.3xlarge",
      vt1_6xlarge: "vt1.6xlarge",
      x1_16xlarge: "x1.16xlarge",
      x1_32xlarge: "x1.32xlarge",
      x1e_16xlarge: "x1e.16xlarge",
      x1e_2xlarge: "x1e.2xlarge",
      x1e_32xlarge: "x1e.32xlarge",
      x1e_4xlarge: "x1e.4xlarge",
      x1e_8xlarge: "x1e.8xlarge",
      x1e_xlarge: "x1e.xlarge",
      x2gd_12xlarge: "x2gd.12xlarge",
      x2gd_16xlarge: "x2gd.16xlarge",
      x2gd_2xlarge: "x2gd.2xlarge",
      x2gd_4xlarge: "x2gd.4xlarge",
      x2gd_8xlarge: "x2gd.8xlarge",
      x2gd_large: "x2gd.large",
      x2gd_medium: "x2gd.medium",
      x2gd_metal: "x2gd.metal",
      x2gd_xlarge: "x2gd.xlarge",
      x2idn_16xlarge: "x2idn.16xlarge",
      x2idn_24xlarge: "x2idn.24xlarge",
      x2idn_32xlarge: "x2idn.32xlarge",
      x2idn_metal: "x2idn.metal",
      x2iedn_16xlarge: "x2iedn.16xlarge",
      x2iedn_24xlarge: "x2iedn.24xlarge",
      x2iedn_2xlarge: "x2iedn.2xlarge",
      x2iedn_32xlarge: "x2iedn.32xlarge",
      x2iedn_4xlarge: "x2iedn.4xlarge",
      x2iedn_8xlarge: "x2iedn.8xlarge",
      x2iedn_metal: "x2iedn.metal",
      x2iedn_xlarge: "x2iedn.xlarge",
      x2iezn_12xlarge: "x2iezn.12xlarge",
      x2iezn_2xlarge: "x2iezn.2xlarge",
      x2iezn_4xlarge: "x2iezn.4xlarge",
      x2iezn_6xlarge: "x2iezn.6xlarge",
      x2iezn_8xlarge: "x2iezn.8xlarge",
      x2iezn_metal: "x2iezn.metal",
      x8g_12xlarge: "x8g.12xlarge",
      x8g_16xlarge: "x8g.16xlarge",
      x8g_24xlarge: "x8g.24xlarge",
      x8g_2xlarge: "x8g.2xlarge",
      x8g_48xlarge: "x8g.48xlarge",
      x8g_4xlarge: "x8g.4xlarge",
      x8g_8xlarge: "x8g.8xlarge",
      x8g_large: "x8g.large",
      x8g_medium: "x8g.medium",
      x8g_metal_24xl: "x8g.metal-24xl",
      x8g_metal_48xl: "x8g.metal-48xl",
      x8g_xlarge: "x8g.xlarge",
      z1d_12xlarge: "z1d.12xlarge",
      z1d_2xlarge: "z1d.2xlarge",
      z1d_3xlarge: "z1d.3xlarge",
      z1d_6xlarge: "z1d.6xlarge",
      z1d_large: "z1d.large",
      z1d_metal: "z1d.metal",
      z1d_xlarge: "z1d.xlarge"
    };
    var FleetCapacityReservationTenancy = {
      default: "default"
    };
    var CarrierGatewayState = {
      available: "available",
      deleted: "deleted",
      deleting: "deleting",
      pending: "pending"
    };
    var ClientVpnAuthenticationType = {
      certificate_authentication: "certificate-authentication",
      directory_service_authentication: "directory-service-authentication",
      federated_authentication: "federated-authentication"
    };
    var EndpointIpAddressType = {
      dual_stack: "dual-stack",
      ipv4: "ipv4",
      ipv6: "ipv6"
    };
    var SelfServicePortal = {
      disabled: "disabled",
      enabled: "enabled"
    };
    var TrafficIpAddressType = {
      dual_stack: "dual-stack",
      ipv4: "ipv4",
      ipv6: "ipv6"
    };
    var TransportProtocol = {
      tcp: "tcp",
      udp: "udp"
    };
    var ClientVpnEndpointStatusCode = {
      available: "available",
      deleted: "deleted",
      deleting: "deleting",
      pending_associate: "pending-associate"
    };
    var ClientVpnRouteStatusCode = {
      active: "active",
      creating: "creating",
      deleting: "deleting",
      failed: "failed"
    };
    var GatewayType = {
      ipsec_1: "ipsec.1"
    };
    var BlockPublicAccessMode = {
      block_bidirectional: "block-bidirectional",
      block_ingress: "block-ingress",
      off: "off"
    };
    var HostnameType = {
      ip_name: "ip-name",
      resource_name: "resource-name"
    };
    var SubnetState = {
      available: "available",
      failed: "failed",
      failed_insufficient_capacity: "failed-insufficient-capacity",
      pending: "pending",
      unavailable: "unavailable"
    };
    var VpcEncryptionControlMode = {
      enforce: "enforce",
      monitor: "monitor"
    };
    var VpcEncryptionControlExclusionState = {
      disabled: "disabled",
      disabling: "disabling",
      enabled: "enabled",
      enabling: "enabling"
    };
    var VpcEncryptionControlState = {
      available: "available",
      creating: "creating",
      delete_failed: "delete-failed",
      deleted: "deleted",
      deleting: "deleting",
      enforce_failed: "enforce-failed",
      enforce_in_progress: "enforce-in-progress",
      monitor_failed: "monitor-failed",
      monitor_in_progress: "monitor-in-progress"
    };
    var Tenancy = {
      dedicated: "dedicated",
      default: "default",
      host: "host"
    };
    var VpcState = {
      available: "available",
      pending: "pending"
    };
    var MacSystemIntegrityProtectionSettingStatus = {
      disabled: "disabled",
      enabled: "enabled"
    };
    var MacModificationTaskState = {
      failed: "failed",
      inprogress: "in-progress",
      pending: "pending",
      successful: "successful"
    };
    var MacModificationTaskType = {
      SIPModification: "sip-modification",
      VolumeOwnershipDelegation: "volume-ownership-delegation"
    };
    var FleetExcessCapacityTerminationPolicy = {
      NO_TERMINATION: "no-termination",
      TERMINATION: "termination"
    };
    var VolumeType = {
      gp2: "gp2",
      gp3: "gp3",
      io1: "io1",
      io2: "io2",
      sc1: "sc1",
      st1: "st1",
      standard: "standard"
    };
    var BareMetal = {
      EXCLUDED: "excluded",
      INCLUDED: "included",
      REQUIRED: "required"
    };
    var BurstablePerformance = {
      EXCLUDED: "excluded",
      INCLUDED: "included",
      REQUIRED: "required"
    };
    var CpuManufacturer = {
      AMAZON_WEB_SERVICES: "amazon-web-services",
      AMD: "amd",
      APPLE: "apple",
      INTEL: "intel"
    };
    var InstanceGeneration = {
      CURRENT: "current",
      PREVIOUS: "previous"
    };
    var LocalStorage = {
      EXCLUDED: "excluded",
      INCLUDED: "included",
      REQUIRED: "required"
    };
    var LocalStorageType = {
      HDD: "hdd",
      SSD: "ssd"
    };
    var FleetOnDemandAllocationStrategy = {
      LOWEST_PRICE: "lowest-price",
      PRIORITIZED: "prioritized"
    };
    var FleetCapacityReservationUsageStrategy = {
      USE_CAPACITY_RESERVATIONS_FIRST: "use-capacity-reservations-first"
    };
    var SpotAllocationStrategy = {
      CAPACITY_OPTIMIZED: "capacity-optimized",
      CAPACITY_OPTIMIZED_PRIORITIZED: "capacity-optimized-prioritized",
      DIVERSIFIED: "diversified",
      LOWEST_PRICE: "lowest-price",
      PRICE_CAPACITY_OPTIMIZED: "price-capacity-optimized"
    };
    var SpotInstanceInterruptionBehavior = {
      hibernate: "hibernate",
      stop: "stop",
      terminate: "terminate"
    };
    var FleetReplacementStrategy = {
      LAUNCH: "launch",
      LAUNCH_BEFORE_TERMINATE: "launch-before-terminate"
    };
    var DefaultTargetCapacityType = {
      CAPACITY_BLOCK: "capacity-block",
      ON_DEMAND: "on-demand",
      SPOT: "spot"
    };
    var TargetCapacityUnitType = {
      MEMORY_MIB: "memory-mib",
      UNITS: "units",
      VCPU: "vcpu"
    };
    var FleetType = {
      INSTANT: "instant",
      MAINTAIN: "maintain",
      REQUEST: "request"
    };
    var InstanceLifecycle = {
      ON_DEMAND: "on-demand",
      SPOT: "spot"
    };
    var PlatformValues = {
      Windows: "Windows"
    };
    var DestinationFileFormat = {
      parquet: "parquet",
      plain_text: "plain-text"
    };
    var LogDestinationType = {
      cloud_watch_logs: "cloud-watch-logs",
      kinesis_data_firehose: "kinesis-data-firehose",
      s3: "s3"
    };
    var FlowLogsResourceType = {
      NetworkInterface: "NetworkInterface",
      Subnet: "Subnet",
      TransitGateway: "TransitGateway",
      TransitGatewayAttachment: "TransitGatewayAttachment",
      VPC: "VPC"
    };
    var TrafficType = {
      ACCEPT: "ACCEPT",
      ALL: "ALL",
      REJECT: "REJECT"
    };
    var SnapshotLocationEnum = {
      LOCAL: "local",
      REGIONAL: "regional"
    };
    var IpAddressType = {
      dualstack: "dualstack",
      ipv4: "ipv4",
      ipv6: "ipv6"
    };
    var Ec2InstanceConnectEndpointState = {
      create_complete: "create-complete",
      create_failed: "create-failed",
      create_in_progress: "create-in-progress",
      delete_complete: "delete-complete",
      delete_failed: "delete-failed",
      delete_in_progress: "delete-in-progress",
      update_complete: "update-complete",
      update_failed: "update-failed",
      update_in_progress: "update-in-progress"
    };
    var ContainerFormat = {
      ova: "ova"
    };
    var DiskImageFormat = {
      RAW: "RAW",
      VHD: "VHD",
      VMDK: "VMDK"
    };
    var ExportEnvironment = {
      citrix: "citrix",
      microsoft: "microsoft",
      vmware: "vmware"
    };
    var ExportTaskState = {
      active: "active",
      cancelled: "cancelled",
      cancelling: "cancelling",
      completed: "completed"
    };
    var IpamMeteredAccount = {
      ipam_owner: "ipam-owner",
      resource_owner: "resource-owner"
    };
    var IpamTier = {
      advanced: "advanced",
      free: "free"
    };
    var IpamState = {
      create_complete: "create-complete",
      create_failed: "create-failed",
      create_in_progress: "create-in-progress",
      delete_complete: "delete-complete",
      delete_failed: "delete-failed",
      delete_in_progress: "delete-in-progress",
      isolate_complete: "isolate-complete",
      isolate_in_progress: "isolate-in-progress",
      modify_complete: "modify-complete",
      modify_failed: "modify-failed",
      modify_in_progress: "modify-in-progress",
      restore_in_progress: "restore-in-progress"
    };
    var IpamExternalResourceVerificationTokenState = {
      CREATE_COMPLETE: "create-complete",
      CREATE_FAILED: "create-failed",
      CREATE_IN_PROGRESS: "create-in-progress",
      DELETE_COMPLETE: "delete-complete",
      DELETE_FAILED: "delete-failed",
      DELETE_IN_PROGRESS: "delete-in-progress"
    };
    var TokenState = {
      expired: "expired",
      valid: "valid"
    };
    var IpamPoolAwsService = {
      ec2: "ec2"
    };
    var IpamPoolPublicIpSource = {
      amazon: "amazon",
      byoip: "byoip"
    };
    var IpamPoolSourceResourceType = {
      vpc: "vpc"
    };
    var IpamScopeType = {
      private: "private",
      public: "public"
    };
    var IpamPoolState = {
      create_complete: "create-complete",
      create_failed: "create-failed",
      create_in_progress: "create-in-progress",
      delete_complete: "delete-complete",
      delete_failed: "delete-failed",
      delete_in_progress: "delete-in-progress",
      isolate_complete: "isolate-complete",
      isolate_in_progress: "isolate-in-progress",
      modify_complete: "modify-complete",
      modify_failed: "modify-failed",
      modify_in_progress: "modify-in-progress",
      restore_in_progress: "restore-in-progress"
    };
    var IpamResourceDiscoveryState = {
      CREATE_COMPLETE: "create-complete",
      CREATE_FAILED: "create-failed",
      CREATE_IN_PROGRESS: "create-in-progress",
      DELETE_COMPLETE: "delete-complete",
      DELETE_FAILED: "delete-failed",
      DELETE_IN_PROGRESS: "delete-in-progress",
      ISOLATE_COMPLETE: "isolate-complete",
      ISOLATE_IN_PROGRESS: "isolate-in-progress",
      MODIFY_COMPLETE: "modify-complete",
      MODIFY_FAILED: "modify-failed",
      MODIFY_IN_PROGRESS: "modify-in-progress",
      RESTORE_IN_PROGRESS: "restore-in-progress"
    };
    var IpamScopeState = {
      create_complete: "create-complete",
      create_failed: "create-failed",
      create_in_progress: "create-in-progress",
      delete_complete: "delete-complete",
      delete_failed: "delete-failed",
      delete_in_progress: "delete-in-progress",
      isolate_complete: "isolate-complete",
      isolate_in_progress: "isolate-in-progress",
      modify_complete: "modify-complete",
      modify_failed: "modify-failed",
      modify_in_progress: "modify-in-progress",
      restore_in_progress: "restore-in-progress"
    };
    var KeyFormat = {
      pem: "pem",
      ppk: "ppk"
    };
    var KeyType = {
      ed25519: "ed25519",
      rsa: "rsa"
    };
    var CapacityReservationPreference = {
      capacity_reservations_only: "capacity-reservations-only",
      none: "none",
      open: "open"
    };
    var AmdSevSnpSpecification = {
      disabled: "disabled",
      enabled: "enabled"
    };
    var ShutdownBehavior = {
      stop: "stop",
      terminate: "terminate"
    };
    var MarketType = {
      capacity_block: "capacity-block",
      spot: "spot"
    };
    var InstanceInterruptionBehavior = {
      hibernate: "hibernate",
      stop: "stop",
      terminate: "terminate"
    };
    var SpotInstanceType = {
      one_time: "one-time",
      persistent: "persistent"
    };
    var LaunchTemplateAutoRecoveryState = {
      default: "default",
      disabled: "disabled"
    };
    var LaunchTemplateInstanceMetadataEndpointState = {
      disabled: "disabled",
      enabled: "enabled"
    };
    var LaunchTemplateInstanceMetadataProtocolIpv6 = {
      disabled: "disabled",
      enabled: "enabled"
    };
    var LaunchTemplateHttpTokensState = {
      optional: "optional",
      required: "required"
    };
    var LaunchTemplateInstanceMetadataTagsState = {
      disabled: "disabled",
      enabled: "enabled"
    };
    var InstanceBandwidthWeighting = {
      DEFAULT: "default",
      EBS_1: "ebs-1",
      VPC_1: "vpc-1"
    };
    var CopySnapshotRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.PresignedUrl && { PresignedUrl: import_smithy_client28.SENSITIVE_STRING }
    }), "CopySnapshotRequestFilterSensitiveLog");
    var CreateDelegateMacVolumeOwnershipTaskRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.MacCredentials && { MacCredentials: import_smithy_client28.SENSITIVE_STRING }
    }), "CreateDelegateMacVolumeOwnershipTaskRequestFilterSensitiveLog");
    var KeyPairFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.KeyMaterial && { KeyMaterial: import_smithy_client28.SENSITIVE_STRING }
    }), "KeyPairFilterSensitiveLog");
    var RequestLaunchTemplateDataFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.UserData && { UserData: import_smithy_client28.SENSITIVE_STRING }
    }), "RequestLaunchTemplateDataFilterSensitiveLog");
    var CreateLaunchTemplateRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.LaunchTemplateData && {
        LaunchTemplateData: RequestLaunchTemplateDataFilterSensitiveLog(obj.LaunchTemplateData)
      }
    }), "CreateLaunchTemplateRequestFilterSensitiveLog");
    var CreateLaunchTemplateVersionRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.LaunchTemplateData && {
        LaunchTemplateData: RequestLaunchTemplateDataFilterSensitiveLog(obj.LaunchTemplateData)
      }
    }), "CreateLaunchTemplateVersionRequestFilterSensitiveLog");
    var CopySnapshotCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_ec2.getCopySnapshotPresignedUrlPlugin)(config)
      ];
    }).s("AmazonEC2", "CopySnapshot", {}).n("EC2Client", "CopySnapshotCommand").f(CopySnapshotRequestFilterSensitiveLog, void 0).ser(se_CopySnapshotCommand).de(de_CopySnapshotCommand).build() {
      static {
        __name(this, "CopySnapshotCommand");
      }
      static {
        __name2(this, "CopySnapshotCommand");
      }
    };
    var CreateCapacityReservationBySplittingCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateCapacityReservationBySplitting", {}).n("EC2Client", "CreateCapacityReservationBySplittingCommand").f(void 0, void 0).ser(se_CreateCapacityReservationBySplittingCommand).de(de_CreateCapacityReservationBySplittingCommand).build() {
      static {
        __name(this, "CreateCapacityReservationBySplittingCommand");
      }
      static {
        __name2(this, "CreateCapacityReservationBySplittingCommand");
      }
    };
    var CreateCapacityReservationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateCapacityReservation", {}).n("EC2Client", "CreateCapacityReservationCommand").f(void 0, void 0).ser(se_CreateCapacityReservationCommand).de(de_CreateCapacityReservationCommand).build() {
      static {
        __name(this, "CreateCapacityReservationCommand");
      }
      static {
        __name2(this, "CreateCapacityReservationCommand");
      }
    };
    var CreateCapacityReservationFleetCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateCapacityReservationFleet", {}).n("EC2Client", "CreateCapacityReservationFleetCommand").f(void 0, void 0).ser(se_CreateCapacityReservationFleetCommand).de(de_CreateCapacityReservationFleetCommand).build() {
      static {
        __name(this, "CreateCapacityReservationFleetCommand");
      }
      static {
        __name2(this, "CreateCapacityReservationFleetCommand");
      }
    };
    var CreateCarrierGatewayCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateCarrierGateway", {}).n("EC2Client", "CreateCarrierGatewayCommand").f(void 0, void 0).ser(se_CreateCarrierGatewayCommand).de(de_CreateCarrierGatewayCommand).build() {
      static {
        __name(this, "CreateCarrierGatewayCommand");
      }
      static {
        __name2(this, "CreateCarrierGatewayCommand");
      }
    };
    var CreateClientVpnEndpointCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateClientVpnEndpoint", {}).n("EC2Client", "CreateClientVpnEndpointCommand").f(void 0, void 0).ser(se_CreateClientVpnEndpointCommand).de(de_CreateClientVpnEndpointCommand).build() {
      static {
        __name(this, "CreateClientVpnEndpointCommand");
      }
      static {
        __name2(this, "CreateClientVpnEndpointCommand");
      }
    };
    var CreateClientVpnRouteCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateClientVpnRoute", {}).n("EC2Client", "CreateClientVpnRouteCommand").f(void 0, void 0).ser(se_CreateClientVpnRouteCommand).de(de_CreateClientVpnRouteCommand).build() {
      static {
        __name(this, "CreateClientVpnRouteCommand");
      }
      static {
        __name2(this, "CreateClientVpnRouteCommand");
      }
    };
    var CreateCoipCidrCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateCoipCidr", {}).n("EC2Client", "CreateCoipCidrCommand").f(void 0, void 0).ser(se_CreateCoipCidrCommand).de(de_CreateCoipCidrCommand).build() {
      static {
        __name(this, "CreateCoipCidrCommand");
      }
      static {
        __name2(this, "CreateCoipCidrCommand");
      }
    };
    var CreateCoipPoolCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateCoipPool", {}).n("EC2Client", "CreateCoipPoolCommand").f(void 0, void 0).ser(se_CreateCoipPoolCommand).de(de_CreateCoipPoolCommand).build() {
      static {
        __name(this, "CreateCoipPoolCommand");
      }
      static {
        __name2(this, "CreateCoipPoolCommand");
      }
    };
    var CreateCustomerGatewayCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateCustomerGateway", {}).n("EC2Client", "CreateCustomerGatewayCommand").f(void 0, void 0).ser(se_CreateCustomerGatewayCommand).de(de_CreateCustomerGatewayCommand).build() {
      static {
        __name(this, "CreateCustomerGatewayCommand");
      }
      static {
        __name2(this, "CreateCustomerGatewayCommand");
      }
    };
    var CreateDefaultSubnetCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateDefaultSubnet", {}).n("EC2Client", "CreateDefaultSubnetCommand").f(void 0, void 0).ser(se_CreateDefaultSubnetCommand).de(de_CreateDefaultSubnetCommand).build() {
      static {
        __name(this, "CreateDefaultSubnetCommand");
      }
      static {
        __name2(this, "CreateDefaultSubnetCommand");
      }
    };
    var CreateDefaultVpcCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateDefaultVpc", {}).n("EC2Client", "CreateDefaultVpcCommand").f(void 0, void 0).ser(se_CreateDefaultVpcCommand).de(de_CreateDefaultVpcCommand).build() {
      static {
        __name(this, "CreateDefaultVpcCommand");
      }
      static {
        __name2(this, "CreateDefaultVpcCommand");
      }
    };
    var CreateDelegateMacVolumeOwnershipTaskCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateDelegateMacVolumeOwnershipTask", {}).n("EC2Client", "CreateDelegateMacVolumeOwnershipTaskCommand").f(CreateDelegateMacVolumeOwnershipTaskRequestFilterSensitiveLog, void 0).ser(se_CreateDelegateMacVolumeOwnershipTaskCommand).de(de_CreateDelegateMacVolumeOwnershipTaskCommand).build() {
      static {
        __name(this, "CreateDelegateMacVolumeOwnershipTaskCommand");
      }
      static {
        __name2(this, "CreateDelegateMacVolumeOwnershipTaskCommand");
      }
    };
    var CreateDhcpOptionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateDhcpOptions", {}).n("EC2Client", "CreateDhcpOptionsCommand").f(void 0, void 0).ser(se_CreateDhcpOptionsCommand).de(de_CreateDhcpOptionsCommand).build() {
      static {
        __name(this, "CreateDhcpOptionsCommand");
      }
      static {
        __name2(this, "CreateDhcpOptionsCommand");
      }
    };
    var CreateEgressOnlyInternetGatewayCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateEgressOnlyInternetGateway", {}).n("EC2Client", "CreateEgressOnlyInternetGatewayCommand").f(void 0, void 0).ser(se_CreateEgressOnlyInternetGatewayCommand).de(de_CreateEgressOnlyInternetGatewayCommand).build() {
      static {
        __name(this, "CreateEgressOnlyInternetGatewayCommand");
      }
      static {
        __name2(this, "CreateEgressOnlyInternetGatewayCommand");
      }
    };
    var CreateFleetCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateFleet", {}).n("EC2Client", "CreateFleetCommand").f(void 0, void 0).ser(se_CreateFleetCommand).de(de_CreateFleetCommand).build() {
      static {
        __name(this, "CreateFleetCommand");
      }
      static {
        __name2(this, "CreateFleetCommand");
      }
    };
    var CreateFlowLogsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateFlowLogs", {}).n("EC2Client", "CreateFlowLogsCommand").f(void 0, void 0).ser(se_CreateFlowLogsCommand).de(de_CreateFlowLogsCommand).build() {
      static {
        __name(this, "CreateFlowLogsCommand");
      }
      static {
        __name2(this, "CreateFlowLogsCommand");
      }
    };
    var CreateFpgaImageCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateFpgaImage", {}).n("EC2Client", "CreateFpgaImageCommand").f(void 0, void 0).ser(se_CreateFpgaImageCommand).de(de_CreateFpgaImageCommand).build() {
      static {
        __name(this, "CreateFpgaImageCommand");
      }
      static {
        __name2(this, "CreateFpgaImageCommand");
      }
    };
    var CreateImageCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateImage", {}).n("EC2Client", "CreateImageCommand").f(void 0, void 0).ser(se_CreateImageCommand).de(de_CreateImageCommand).build() {
      static {
        __name(this, "CreateImageCommand");
      }
      static {
        __name2(this, "CreateImageCommand");
      }
    };
    var CreateImageUsageReportCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateImageUsageReport", {}).n("EC2Client", "CreateImageUsageReportCommand").f(void 0, void 0).ser(se_CreateImageUsageReportCommand).de(de_CreateImageUsageReportCommand).build() {
      static {
        __name(this, "CreateImageUsageReportCommand");
      }
      static {
        __name2(this, "CreateImageUsageReportCommand");
      }
    };
    var CreateInstanceConnectEndpointCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateInstanceConnectEndpoint", {}).n("EC2Client", "CreateInstanceConnectEndpointCommand").f(void 0, void 0).ser(se_CreateInstanceConnectEndpointCommand).de(de_CreateInstanceConnectEndpointCommand).build() {
      static {
        __name(this, "CreateInstanceConnectEndpointCommand");
      }
      static {
        __name2(this, "CreateInstanceConnectEndpointCommand");
      }
    };
    var CreateInstanceEventWindowCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateInstanceEventWindow", {}).n("EC2Client", "CreateInstanceEventWindowCommand").f(void 0, void 0).ser(se_CreateInstanceEventWindowCommand).de(de_CreateInstanceEventWindowCommand).build() {
      static {
        __name(this, "CreateInstanceEventWindowCommand");
      }
      static {
        __name2(this, "CreateInstanceEventWindowCommand");
      }
    };
    var CreateInstanceExportTaskCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateInstanceExportTask", {}).n("EC2Client", "CreateInstanceExportTaskCommand").f(void 0, void 0).ser(se_CreateInstanceExportTaskCommand).de(de_CreateInstanceExportTaskCommand).build() {
      static {
        __name(this, "CreateInstanceExportTaskCommand");
      }
      static {
        __name2(this, "CreateInstanceExportTaskCommand");
      }
    };
    var CreateInternetGatewayCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateInternetGateway", {}).n("EC2Client", "CreateInternetGatewayCommand").f(void 0, void 0).ser(se_CreateInternetGatewayCommand).de(de_CreateInternetGatewayCommand).build() {
      static {
        __name(this, "CreateInternetGatewayCommand");
      }
      static {
        __name2(this, "CreateInternetGatewayCommand");
      }
    };
    var CreateIpamCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateIpam", {}).n("EC2Client", "CreateIpamCommand").f(void 0, void 0).ser(se_CreateIpamCommand).de(de_CreateIpamCommand).build() {
      static {
        __name(this, "CreateIpamCommand");
      }
      static {
        __name2(this, "CreateIpamCommand");
      }
    };
    var CreateIpamExternalResourceVerificationTokenCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateIpamExternalResourceVerificationToken", {}).n("EC2Client", "CreateIpamExternalResourceVerificationTokenCommand").f(void 0, void 0).ser(se_CreateIpamExternalResourceVerificationTokenCommand).de(de_CreateIpamExternalResourceVerificationTokenCommand).build() {
      static {
        __name(this, "CreateIpamExternalResourceVerificationTokenCommand");
      }
      static {
        __name2(this, "CreateIpamExternalResourceVerificationTokenCommand");
      }
    };
    var CreateIpamPoolCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateIpamPool", {}).n("EC2Client", "CreateIpamPoolCommand").f(void 0, void 0).ser(se_CreateIpamPoolCommand).de(de_CreateIpamPoolCommand).build() {
      static {
        __name(this, "CreateIpamPoolCommand");
      }
      static {
        __name2(this, "CreateIpamPoolCommand");
      }
    };
    var CreateIpamResourceDiscoveryCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateIpamResourceDiscovery", {}).n("EC2Client", "CreateIpamResourceDiscoveryCommand").f(void 0, void 0).ser(se_CreateIpamResourceDiscoveryCommand).de(de_CreateIpamResourceDiscoveryCommand).build() {
      static {
        __name(this, "CreateIpamResourceDiscoveryCommand");
      }
      static {
        __name2(this, "CreateIpamResourceDiscoveryCommand");
      }
    };
    var CreateIpamScopeCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateIpamScope", {}).n("EC2Client", "CreateIpamScopeCommand").f(void 0, void 0).ser(se_CreateIpamScopeCommand).de(de_CreateIpamScopeCommand).build() {
      static {
        __name(this, "CreateIpamScopeCommand");
      }
      static {
        __name2(this, "CreateIpamScopeCommand");
      }
    };
    var CreateKeyPairCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateKeyPair", {}).n("EC2Client", "CreateKeyPairCommand").f(void 0, KeyPairFilterSensitiveLog).ser(se_CreateKeyPairCommand).de(de_CreateKeyPairCommand).build() {
      static {
        __name(this, "CreateKeyPairCommand");
      }
      static {
        __name2(this, "CreateKeyPairCommand");
      }
    };
    var CreateLaunchTemplateCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateLaunchTemplate", {}).n("EC2Client", "CreateLaunchTemplateCommand").f(CreateLaunchTemplateRequestFilterSensitiveLog, void 0).ser(se_CreateLaunchTemplateCommand).de(de_CreateLaunchTemplateCommand).build() {
      static {
        __name(this, "CreateLaunchTemplateCommand");
      }
      static {
        __name2(this, "CreateLaunchTemplateCommand");
      }
    };
    var LaunchTemplateInstanceMetadataOptionsState = {
      applied: "applied",
      pending: "pending"
    };
    var LocalGatewayRouteState = {
      active: "active",
      blackhole: "blackhole",
      deleted: "deleted",
      deleting: "deleting",
      pending: "pending"
    };
    var LocalGatewayRouteType = {
      propagated: "propagated",
      static: "static"
    };
    var LocalGatewayRouteTableMode = {
      coip: "coip",
      direct_vpc_routing: "direct-vpc-routing"
    };
    var LocalGatewayVirtualInterfaceConfigurationState = {
      available: "available",
      deleted: "deleted",
      deleting: "deleting",
      pending: "pending"
    };
    var LocalGatewayVirtualInterfaceGroupConfigurationState = {
      available: "available",
      deleted: "deleted",
      deleting: "deleting",
      incomplete: "incomplete",
      pending: "pending"
    };
    var PrefixListState = {
      create_complete: "create-complete",
      create_failed: "create-failed",
      create_in_progress: "create-in-progress",
      delete_complete: "delete-complete",
      delete_failed: "delete-failed",
      delete_in_progress: "delete-in-progress",
      modify_complete: "modify-complete",
      modify_failed: "modify-failed",
      modify_in_progress: "modify-in-progress",
      restore_complete: "restore-complete",
      restore_failed: "restore-failed",
      restore_in_progress: "restore-in-progress"
    };
    var ConnectivityType = {
      PRIVATE: "private",
      PUBLIC: "public"
    };
    var NatGatewayState = {
      AVAILABLE: "available",
      DELETED: "deleted",
      DELETING: "deleting",
      FAILED: "failed",
      PENDING: "pending"
    };
    var RuleAction = {
      allow: "allow",
      deny: "deny"
    };
    var NetworkInterfaceCreationType = {
      branch: "branch",
      efa: "efa",
      efa_only: "efa-only",
      trunk: "trunk"
    };
    var NetworkInterfaceType = {
      api_gateway_managed: "api_gateway_managed",
      aws_codestar_connections_managed: "aws_codestar_connections_managed",
      branch: "branch",
      efa: "efa",
      efa_only: "efa-only",
      gateway_load_balancer: "gateway_load_balancer",
      gateway_load_balancer_endpoint: "gateway_load_balancer_endpoint",
      global_accelerator_managed: "global_accelerator_managed",
      interface: "interface",
      iot_rules_managed: "iot_rules_managed",
      lambda: "lambda",
      load_balancer: "load_balancer",
      natGateway: "natGateway",
      network_load_balancer: "network_load_balancer",
      quicksight: "quicksight",
      transit_gateway: "transit_gateway",
      trunk: "trunk",
      vpc_endpoint: "vpc_endpoint"
    };
    var NetworkInterfaceStatus = {
      associated: "associated",
      attaching: "attaching",
      available: "available",
      detaching: "detaching",
      in_use: "in-use"
    };
    var InterfacePermissionType = {
      EIP_ASSOCIATE: "EIP-ASSOCIATE",
      INSTANCE_ATTACH: "INSTANCE-ATTACH"
    };
    var NetworkInterfacePermissionStateCode = {
      granted: "granted",
      pending: "pending",
      revoked: "revoked",
      revoking: "revoking"
    };
    var SpreadLevel = {
      host: "host",
      rack: "rack"
    };
    var PlacementStrategy = {
      cluster: "cluster",
      partition: "partition",
      spread: "spread"
    };
    var PlacementGroupState = {
      available: "available",
      deleted: "deleted",
      deleting: "deleting",
      pending: "pending"
    };
    var ReplaceRootVolumeTaskState = {
      failed: "failed",
      failed_detached: "failed-detached",
      failing: "failing",
      in_progress: "in-progress",
      pending: "pending",
      succeeded: "succeeded"
    };
    var RouteServerPersistRoutesAction = {
      DISABLE: "disable",
      ENABLE: "enable",
      RESET: "reset"
    };
    var RouteServerPersistRoutesState = {
      DISABLED: "disabled",
      DISABLING: "disabling",
      ENABLED: "enabled",
      ENABLING: "enabling",
      MODIFYING: "modifying",
      RESETTING: "resetting"
    };
    var RouteServerState = {
      AVAILABLE: "available",
      DELETED: "deleted",
      DELETING: "deleting",
      MODIFYING: "modifying",
      PENDING: "pending"
    };
    var RouteServerEndpointState = {
      AVAILABLE: "available",
      DELETED: "deleted",
      DELETE_FAILED: "delete-failed",
      DELETING: "deleting",
      FAILED: "failed",
      FAILING: "failing",
      PENDING: "pending"
    };
    var RouteServerPeerLivenessMode = {
      BFD: "bfd",
      BGP_KEEPALIVE: "bgp-keepalive"
    };
    var RouteServerBfdState = {
      DOWN: "down",
      UP: "up"
    };
    var RouteServerBgpState = {
      DOWN: "down",
      UP: "up"
    };
    var RouteServerPeerState = {
      AVAILABLE: "available",
      DELETED: "deleted",
      DELETING: "deleting",
      FAILED: "failed",
      FAILING: "failing",
      PENDING: "pending"
    };
    var RouteOrigin = {
      Advertisement: "Advertisement",
      CreateRoute: "CreateRoute",
      CreateRouteTable: "CreateRouteTable",
      EnableVgwRoutePropagation: "EnableVgwRoutePropagation"
    };
    var RouteState = {
      active: "active",
      blackhole: "blackhole",
      filtered: "filtered"
    };
    var SSEType = {
      none: "none",
      sse_ebs: "sse-ebs",
      sse_kms: "sse-kms"
    };
    var SnapshotState = {
      completed: "completed",
      error: "error",
      pending: "pending",
      recoverable: "recoverable",
      recovering: "recovering"
    };
    var StorageTier = {
      archive: "archive",
      standard: "standard"
    };
    var TransferType = {
      standard: "standard",
      time_based: "time-based"
    };
    var CopyTagsFromSource = {
      volume: "volume"
    };
    var DatafeedSubscriptionState = {
      Active: "Active",
      Inactive: "Inactive"
    };
    var SubnetCidrReservationType = {
      explicit: "explicit",
      prefix: "prefix"
    };
    var TrafficMirrorRuleAction = {
      accept: "accept",
      reject: "reject"
    };
    var TrafficDirection = {
      egress: "egress",
      ingress: "ingress"
    };
    var TrafficMirrorNetworkService = {
      amazon_dns: "amazon-dns"
    };
    var TrafficMirrorTargetType = {
      gateway_load_balancer_endpoint: "gateway-load-balancer-endpoint",
      network_interface: "network-interface",
      network_load_balancer: "network-load-balancer"
    };
    var AutoAcceptSharedAttachmentsValue = {
      disable: "disable",
      enable: "enable"
    };
    var DefaultRouteTableAssociationValue = {
      disable: "disable",
      enable: "enable"
    };
    var DefaultRouteTablePropagationValue = {
      disable: "disable",
      enable: "enable"
    };
    var MulticastSupportValue = {
      disable: "disable",
      enable: "enable"
    };
    var VpnEcmpSupportValue = {
      disable: "disable",
      enable: "enable"
    };
    var TransitGatewayState = {
      available: "available",
      deleted: "deleted",
      deleting: "deleting",
      modifying: "modifying",
      pending: "pending"
    };
    var ProtocolValue = {
      gre: "gre"
    };
    var BgpStatus = {
      down: "down",
      up: "up"
    };
    var TransitGatewayConnectPeerState = {
      available: "available",
      deleted: "deleted",
      deleting: "deleting",
      pending: "pending"
    };
    var AutoAcceptSharedAssociationsValue = {
      disable: "disable",
      enable: "enable"
    };
    var Igmpv2SupportValue = {
      disable: "disable",
      enable: "enable"
    };
    var StaticSourcesSupportValue = {
      disable: "disable",
      enable: "enable"
    };
    var TransitGatewayMulticastDomainState = {
      available: "available",
      deleted: "deleted",
      deleting: "deleting",
      pending: "pending"
    };
    var TransitGatewayPolicyTableState = {
      available: "available",
      deleted: "deleted",
      deleting: "deleting",
      pending: "pending"
    };
    var TransitGatewayPrefixListReferenceState = {
      available: "available",
      deleting: "deleting",
      modifying: "modifying",
      pending: "pending"
    };
    var TransitGatewayRouteState = {
      active: "active",
      blackhole: "blackhole",
      deleted: "deleted",
      deleting: "deleting",
      pending: "pending"
    };
    var TransitGatewayRouteType = {
      propagated: "propagated",
      static: "static"
    };
    var TransitGatewayRouteTableState = {
      available: "available",
      deleted: "deleted",
      deleting: "deleting",
      pending: "pending"
    };
    var TransitGatewayRouteTableAnnouncementDirection = {
      incoming: "incoming",
      outgoing: "outgoing"
    };
    var TransitGatewayRouteTableAnnouncementState = {
      available: "available",
      deleted: "deleted",
      deleting: "deleting",
      failed: "failed",
      failing: "failing",
      pending: "pending"
    };
    var VerifiedAccessEndpointAttachmentType = {
      vpc: "vpc"
    };
    var VerifiedAccessEndpointProtocol = {
      http: "http",
      https: "https",
      tcp: "tcp"
    };
    var VerifiedAccessEndpointType = {
      cidr: "cidr",
      load_balancer: "load-balancer",
      network_interface: "network-interface",
      rds: "rds"
    };
    var VerifiedAccessEndpointStatusCode = {
      active: "active",
      deleted: "deleted",
      deleting: "deleting",
      pending: "pending",
      updating: "updating"
    };
    var VolumeState = {
      available: "available",
      creating: "creating",
      deleted: "deleted",
      deleting: "deleting",
      error: "error",
      in_use: "in-use"
    };
    var InternetGatewayExclusionMode = {
      allow_bidirectional: "allow-bidirectional",
      allow_egress: "allow-egress"
    };
    var VpcBlockPublicAccessExclusionState = {
      create_complete: "create-complete",
      create_failed: "create-failed",
      create_in_progress: "create-in-progress",
      delete_complete: "delete-complete",
      delete_in_progress: "delete-in-progress",
      disable_complete: "disable-complete",
      disable_in_progress: "disable-in-progress",
      update_complete: "update-complete",
      update_failed: "update-failed",
      update_in_progress: "update-in-progress"
    };
    var DnsRecordIpType = {
      dualstack: "dualstack",
      ipv4: "ipv4",
      ipv6: "ipv6",
      service_defined: "service-defined"
    };
    var VpcEndpointType = {
      Gateway: "Gateway",
      GatewayLoadBalancer: "GatewayLoadBalancer",
      Interface: "Interface",
      Resource: "Resource",
      ServiceNetwork: "ServiceNetwork"
    };
    var ResponseLaunchTemplateDataFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.UserData && { UserData: import_smithy_client28.SENSITIVE_STRING }
    }), "ResponseLaunchTemplateDataFilterSensitiveLog");
    var LaunchTemplateVersionFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.LaunchTemplateData && {
        LaunchTemplateData: ResponseLaunchTemplateDataFilterSensitiveLog(obj.LaunchTemplateData)
      }
    }), "LaunchTemplateVersionFilterSensitiveLog");
    var CreateLaunchTemplateVersionResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.LaunchTemplateVersion && {
        LaunchTemplateVersion: LaunchTemplateVersionFilterSensitiveLog(obj.LaunchTemplateVersion)
      }
    }), "CreateLaunchTemplateVersionResultFilterSensitiveLog");
    var CreateMacSystemIntegrityProtectionModificationTaskRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.MacCredentials && { MacCredentials: import_smithy_client28.SENSITIVE_STRING }
    }), "CreateMacSystemIntegrityProtectionModificationTaskRequestFilterSensitiveLog");
    var CreateVerifiedAccessNativeApplicationOidcOptionsFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.ClientSecret && { ClientSecret: import_smithy_client28.SENSITIVE_STRING }
    }), "CreateVerifiedAccessNativeApplicationOidcOptionsFilterSensitiveLog");
    var CreateVerifiedAccessTrustProviderOidcOptionsFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.ClientSecret && { ClientSecret: import_smithy_client28.SENSITIVE_STRING }
    }), "CreateVerifiedAccessTrustProviderOidcOptionsFilterSensitiveLog");
    var CreateVerifiedAccessTrustProviderRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.OidcOptions && {
        OidcOptions: CreateVerifiedAccessTrustProviderOidcOptionsFilterSensitiveLog(obj.OidcOptions)
      },
      ...obj.NativeApplicationOidcOptions && {
        NativeApplicationOidcOptions: CreateVerifiedAccessNativeApplicationOidcOptionsFilterSensitiveLog(
          obj.NativeApplicationOidcOptions
        )
      }
    }), "CreateVerifiedAccessTrustProviderRequestFilterSensitiveLog");
    var CreateVerifiedAccessTrustProviderResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.VerifiedAccessTrustProvider && {
        VerifiedAccessTrustProvider: VerifiedAccessTrustProviderFilterSensitiveLog(obj.VerifiedAccessTrustProvider)
      }
    }), "CreateVerifiedAccessTrustProviderResultFilterSensitiveLog");
    var CreateLaunchTemplateVersionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateLaunchTemplateVersion", {}).n("EC2Client", "CreateLaunchTemplateVersionCommand").f(CreateLaunchTemplateVersionRequestFilterSensitiveLog, CreateLaunchTemplateVersionResultFilterSensitiveLog).ser(se_CreateLaunchTemplateVersionCommand).de(de_CreateLaunchTemplateVersionCommand).build() {
      static {
        __name(this, "CreateLaunchTemplateVersionCommand");
      }
      static {
        __name2(this, "CreateLaunchTemplateVersionCommand");
      }
    };
    var CreateLocalGatewayRouteCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateLocalGatewayRoute", {}).n("EC2Client", "CreateLocalGatewayRouteCommand").f(void 0, void 0).ser(se_CreateLocalGatewayRouteCommand).de(de_CreateLocalGatewayRouteCommand).build() {
      static {
        __name(this, "CreateLocalGatewayRouteCommand");
      }
      static {
        __name2(this, "CreateLocalGatewayRouteCommand");
      }
    };
    var CreateLocalGatewayRouteTableCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateLocalGatewayRouteTable", {}).n("EC2Client", "CreateLocalGatewayRouteTableCommand").f(void 0, void 0).ser(se_CreateLocalGatewayRouteTableCommand).de(de_CreateLocalGatewayRouteTableCommand).build() {
      static {
        __name(this, "CreateLocalGatewayRouteTableCommand");
      }
      static {
        __name2(this, "CreateLocalGatewayRouteTableCommand");
      }
    };
    var CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation", {}).n("EC2Client", "CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationCommand").f(void 0, void 0).ser(se_CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationCommand).de(de_CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationCommand).build() {
      static {
        __name(this, "CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationCommand");
      }
      static {
        __name2(this, "CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationCommand");
      }
    };
    var CreateLocalGatewayRouteTableVpcAssociationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateLocalGatewayRouteTableVpcAssociation", {}).n("EC2Client", "CreateLocalGatewayRouteTableVpcAssociationCommand").f(void 0, void 0).ser(se_CreateLocalGatewayRouteTableVpcAssociationCommand).de(de_CreateLocalGatewayRouteTableVpcAssociationCommand).build() {
      static {
        __name(this, "CreateLocalGatewayRouteTableVpcAssociationCommand");
      }
      static {
        __name2(this, "CreateLocalGatewayRouteTableVpcAssociationCommand");
      }
    };
    var CreateLocalGatewayVirtualInterfaceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateLocalGatewayVirtualInterface", {}).n("EC2Client", "CreateLocalGatewayVirtualInterfaceCommand").f(void 0, void 0).ser(se_CreateLocalGatewayVirtualInterfaceCommand).de(de_CreateLocalGatewayVirtualInterfaceCommand).build() {
      static {
        __name(this, "CreateLocalGatewayVirtualInterfaceCommand");
      }
      static {
        __name2(this, "CreateLocalGatewayVirtualInterfaceCommand");
      }
    };
    var CreateLocalGatewayVirtualInterfaceGroupCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateLocalGatewayVirtualInterfaceGroup", {}).n("EC2Client", "CreateLocalGatewayVirtualInterfaceGroupCommand").f(void 0, void 0).ser(se_CreateLocalGatewayVirtualInterfaceGroupCommand).de(de_CreateLocalGatewayVirtualInterfaceGroupCommand).build() {
      static {
        __name(this, "CreateLocalGatewayVirtualInterfaceGroupCommand");
      }
      static {
        __name2(this, "CreateLocalGatewayVirtualInterfaceGroupCommand");
      }
    };
    var CreateMacSystemIntegrityProtectionModificationTaskCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateMacSystemIntegrityProtectionModificationTask", {}).n("EC2Client", "CreateMacSystemIntegrityProtectionModificationTaskCommand").f(CreateMacSystemIntegrityProtectionModificationTaskRequestFilterSensitiveLog, void 0).ser(se_CreateMacSystemIntegrityProtectionModificationTaskCommand).de(de_CreateMacSystemIntegrityProtectionModificationTaskCommand).build() {
      static {
        __name(this, "CreateMacSystemIntegrityProtectionModificationTaskCommand");
      }
      static {
        __name2(this, "CreateMacSystemIntegrityProtectionModificationTaskCommand");
      }
    };
    var CreateManagedPrefixListCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateManagedPrefixList", {}).n("EC2Client", "CreateManagedPrefixListCommand").f(void 0, void 0).ser(se_CreateManagedPrefixListCommand).de(de_CreateManagedPrefixListCommand).build() {
      static {
        __name(this, "CreateManagedPrefixListCommand");
      }
      static {
        __name2(this, "CreateManagedPrefixListCommand");
      }
    };
    var CreateNatGatewayCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateNatGateway", {}).n("EC2Client", "CreateNatGatewayCommand").f(void 0, void 0).ser(se_CreateNatGatewayCommand).de(de_CreateNatGatewayCommand).build() {
      static {
        __name(this, "CreateNatGatewayCommand");
      }
      static {
        __name2(this, "CreateNatGatewayCommand");
      }
    };
    var CreateNetworkAclCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateNetworkAcl", {}).n("EC2Client", "CreateNetworkAclCommand").f(void 0, void 0).ser(se_CreateNetworkAclCommand).de(de_CreateNetworkAclCommand).build() {
      static {
        __name(this, "CreateNetworkAclCommand");
      }
      static {
        __name2(this, "CreateNetworkAclCommand");
      }
    };
    var CreateNetworkAclEntryCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateNetworkAclEntry", {}).n("EC2Client", "CreateNetworkAclEntryCommand").f(void 0, void 0).ser(se_CreateNetworkAclEntryCommand).de(de_CreateNetworkAclEntryCommand).build() {
      static {
        __name(this, "CreateNetworkAclEntryCommand");
      }
      static {
        __name2(this, "CreateNetworkAclEntryCommand");
      }
    };
    var CreateNetworkInsightsAccessScopeCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateNetworkInsightsAccessScope", {}).n("EC2Client", "CreateNetworkInsightsAccessScopeCommand").f(void 0, void 0).ser(se_CreateNetworkInsightsAccessScopeCommand).de(de_CreateNetworkInsightsAccessScopeCommand).build() {
      static {
        __name(this, "CreateNetworkInsightsAccessScopeCommand");
      }
      static {
        __name2(this, "CreateNetworkInsightsAccessScopeCommand");
      }
    };
    var CreateNetworkInsightsPathCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateNetworkInsightsPath", {}).n("EC2Client", "CreateNetworkInsightsPathCommand").f(void 0, void 0).ser(se_CreateNetworkInsightsPathCommand).de(de_CreateNetworkInsightsPathCommand).build() {
      static {
        __name(this, "CreateNetworkInsightsPathCommand");
      }
      static {
        __name2(this, "CreateNetworkInsightsPathCommand");
      }
    };
    var CreateNetworkInterfaceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateNetworkInterface", {}).n("EC2Client", "CreateNetworkInterfaceCommand").f(void 0, void 0).ser(se_CreateNetworkInterfaceCommand).de(de_CreateNetworkInterfaceCommand).build() {
      static {
        __name(this, "CreateNetworkInterfaceCommand");
      }
      static {
        __name2(this, "CreateNetworkInterfaceCommand");
      }
    };
    var CreateNetworkInterfacePermissionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateNetworkInterfacePermission", {}).n("EC2Client", "CreateNetworkInterfacePermissionCommand").f(void 0, void 0).ser(se_CreateNetworkInterfacePermissionCommand).de(de_CreateNetworkInterfacePermissionCommand).build() {
      static {
        __name(this, "CreateNetworkInterfacePermissionCommand");
      }
      static {
        __name2(this, "CreateNetworkInterfacePermissionCommand");
      }
    };
    var CreatePlacementGroupCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreatePlacementGroup", {}).n("EC2Client", "CreatePlacementGroupCommand").f(void 0, void 0).ser(se_CreatePlacementGroupCommand).de(de_CreatePlacementGroupCommand).build() {
      static {
        __name(this, "CreatePlacementGroupCommand");
      }
      static {
        __name2(this, "CreatePlacementGroupCommand");
      }
    };
    var CreatePublicIpv4PoolCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreatePublicIpv4Pool", {}).n("EC2Client", "CreatePublicIpv4PoolCommand").f(void 0, void 0).ser(se_CreatePublicIpv4PoolCommand).de(de_CreatePublicIpv4PoolCommand).build() {
      static {
        __name(this, "CreatePublicIpv4PoolCommand");
      }
      static {
        __name2(this, "CreatePublicIpv4PoolCommand");
      }
    };
    var CreateReplaceRootVolumeTaskCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateReplaceRootVolumeTask", {}).n("EC2Client", "CreateReplaceRootVolumeTaskCommand").f(void 0, void 0).ser(se_CreateReplaceRootVolumeTaskCommand).de(de_CreateReplaceRootVolumeTaskCommand).build() {
      static {
        __name(this, "CreateReplaceRootVolumeTaskCommand");
      }
      static {
        __name2(this, "CreateReplaceRootVolumeTaskCommand");
      }
    };
    var CreateReservedInstancesListingCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateReservedInstancesListing", {}).n("EC2Client", "CreateReservedInstancesListingCommand").f(void 0, void 0).ser(se_CreateReservedInstancesListingCommand).de(de_CreateReservedInstancesListingCommand).build() {
      static {
        __name(this, "CreateReservedInstancesListingCommand");
      }
      static {
        __name2(this, "CreateReservedInstancesListingCommand");
      }
    };
    var CreateRestoreImageTaskCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateRestoreImageTask", {}).n("EC2Client", "CreateRestoreImageTaskCommand").f(void 0, void 0).ser(se_CreateRestoreImageTaskCommand).de(de_CreateRestoreImageTaskCommand).build() {
      static {
        __name(this, "CreateRestoreImageTaskCommand");
      }
      static {
        __name2(this, "CreateRestoreImageTaskCommand");
      }
    };
    var CreateRouteCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateRoute", {}).n("EC2Client", "CreateRouteCommand").f(void 0, void 0).ser(se_CreateRouteCommand).de(de_CreateRouteCommand).build() {
      static {
        __name(this, "CreateRouteCommand");
      }
      static {
        __name2(this, "CreateRouteCommand");
      }
    };
    var CreateRouteServerCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateRouteServer", {}).n("EC2Client", "CreateRouteServerCommand").f(void 0, void 0).ser(se_CreateRouteServerCommand).de(de_CreateRouteServerCommand).build() {
      static {
        __name(this, "CreateRouteServerCommand");
      }
      static {
        __name2(this, "CreateRouteServerCommand");
      }
    };
    var CreateRouteServerEndpointCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateRouteServerEndpoint", {}).n("EC2Client", "CreateRouteServerEndpointCommand").f(void 0, void 0).ser(se_CreateRouteServerEndpointCommand).de(de_CreateRouteServerEndpointCommand).build() {
      static {
        __name(this, "CreateRouteServerEndpointCommand");
      }
      static {
        __name2(this, "CreateRouteServerEndpointCommand");
      }
    };
    var CreateRouteServerPeerCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateRouteServerPeer", {}).n("EC2Client", "CreateRouteServerPeerCommand").f(void 0, void 0).ser(se_CreateRouteServerPeerCommand).de(de_CreateRouteServerPeerCommand).build() {
      static {
        __name(this, "CreateRouteServerPeerCommand");
      }
      static {
        __name2(this, "CreateRouteServerPeerCommand");
      }
    };
    var CreateRouteTableCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateRouteTable", {}).n("EC2Client", "CreateRouteTableCommand").f(void 0, void 0).ser(se_CreateRouteTableCommand).de(de_CreateRouteTableCommand).build() {
      static {
        __name(this, "CreateRouteTableCommand");
      }
      static {
        __name2(this, "CreateRouteTableCommand");
      }
    };
    var CreateSecurityGroupCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateSecurityGroup", {}).n("EC2Client", "CreateSecurityGroupCommand").f(void 0, void 0).ser(se_CreateSecurityGroupCommand).de(de_CreateSecurityGroupCommand).build() {
      static {
        __name(this, "CreateSecurityGroupCommand");
      }
      static {
        __name2(this, "CreateSecurityGroupCommand");
      }
    };
    var CreateSnapshotCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateSnapshot", {}).n("EC2Client", "CreateSnapshotCommand").f(void 0, void 0).ser(se_CreateSnapshotCommand).de(de_CreateSnapshotCommand).build() {
      static {
        __name(this, "CreateSnapshotCommand");
      }
      static {
        __name2(this, "CreateSnapshotCommand");
      }
    };
    var CreateSnapshotsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateSnapshots", {}).n("EC2Client", "CreateSnapshotsCommand").f(void 0, void 0).ser(se_CreateSnapshotsCommand).de(de_CreateSnapshotsCommand).build() {
      static {
        __name(this, "CreateSnapshotsCommand");
      }
      static {
        __name2(this, "CreateSnapshotsCommand");
      }
    };
    var CreateSpotDatafeedSubscriptionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateSpotDatafeedSubscription", {}).n("EC2Client", "CreateSpotDatafeedSubscriptionCommand").f(void 0, void 0).ser(se_CreateSpotDatafeedSubscriptionCommand).de(de_CreateSpotDatafeedSubscriptionCommand).build() {
      static {
        __name(this, "CreateSpotDatafeedSubscriptionCommand");
      }
      static {
        __name2(this, "CreateSpotDatafeedSubscriptionCommand");
      }
    };
    var CreateStoreImageTaskCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateStoreImageTask", {}).n("EC2Client", "CreateStoreImageTaskCommand").f(void 0, void 0).ser(se_CreateStoreImageTaskCommand).de(de_CreateStoreImageTaskCommand).build() {
      static {
        __name(this, "CreateStoreImageTaskCommand");
      }
      static {
        __name2(this, "CreateStoreImageTaskCommand");
      }
    };
    var CreateSubnetCidrReservationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateSubnetCidrReservation", {}).n("EC2Client", "CreateSubnetCidrReservationCommand").f(void 0, void 0).ser(se_CreateSubnetCidrReservationCommand).de(de_CreateSubnetCidrReservationCommand).build() {
      static {
        __name(this, "CreateSubnetCidrReservationCommand");
      }
      static {
        __name2(this, "CreateSubnetCidrReservationCommand");
      }
    };
    var CreateSubnetCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateSubnet", {}).n("EC2Client", "CreateSubnetCommand").f(void 0, void 0).ser(se_CreateSubnetCommand).de(de_CreateSubnetCommand).build() {
      static {
        __name(this, "CreateSubnetCommand");
      }
      static {
        __name2(this, "CreateSubnetCommand");
      }
    };
    var CreateTagsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateTags", {}).n("EC2Client", "CreateTagsCommand").f(void 0, void 0).ser(se_CreateTagsCommand).de(de_CreateTagsCommand).build() {
      static {
        __name(this, "CreateTagsCommand");
      }
      static {
        __name2(this, "CreateTagsCommand");
      }
    };
    var CreateTrafficMirrorFilterCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateTrafficMirrorFilter", {}).n("EC2Client", "CreateTrafficMirrorFilterCommand").f(void 0, void 0).ser(se_CreateTrafficMirrorFilterCommand).de(de_CreateTrafficMirrorFilterCommand).build() {
      static {
        __name(this, "CreateTrafficMirrorFilterCommand");
      }
      static {
        __name2(this, "CreateTrafficMirrorFilterCommand");
      }
    };
    var CreateTrafficMirrorFilterRuleCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateTrafficMirrorFilterRule", {}).n("EC2Client", "CreateTrafficMirrorFilterRuleCommand").f(void 0, void 0).ser(se_CreateTrafficMirrorFilterRuleCommand).de(de_CreateTrafficMirrorFilterRuleCommand).build() {
      static {
        __name(this, "CreateTrafficMirrorFilterRuleCommand");
      }
      static {
        __name2(this, "CreateTrafficMirrorFilterRuleCommand");
      }
    };
    var CreateTrafficMirrorSessionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateTrafficMirrorSession", {}).n("EC2Client", "CreateTrafficMirrorSessionCommand").f(void 0, void 0).ser(se_CreateTrafficMirrorSessionCommand).de(de_CreateTrafficMirrorSessionCommand).build() {
      static {
        __name(this, "CreateTrafficMirrorSessionCommand");
      }
      static {
        __name2(this, "CreateTrafficMirrorSessionCommand");
      }
    };
    var CreateTrafficMirrorTargetCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateTrafficMirrorTarget", {}).n("EC2Client", "CreateTrafficMirrorTargetCommand").f(void 0, void 0).ser(se_CreateTrafficMirrorTargetCommand).de(de_CreateTrafficMirrorTargetCommand).build() {
      static {
        __name(this, "CreateTrafficMirrorTargetCommand");
      }
      static {
        __name2(this, "CreateTrafficMirrorTargetCommand");
      }
    };
    var CreateTransitGatewayCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateTransitGateway", {}).n("EC2Client", "CreateTransitGatewayCommand").f(void 0, void 0).ser(se_CreateTransitGatewayCommand).de(de_CreateTransitGatewayCommand).build() {
      static {
        __name(this, "CreateTransitGatewayCommand");
      }
      static {
        __name2(this, "CreateTransitGatewayCommand");
      }
    };
    var CreateTransitGatewayConnectCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateTransitGatewayConnect", {}).n("EC2Client", "CreateTransitGatewayConnectCommand").f(void 0, void 0).ser(se_CreateTransitGatewayConnectCommand).de(de_CreateTransitGatewayConnectCommand).build() {
      static {
        __name(this, "CreateTransitGatewayConnectCommand");
      }
      static {
        __name2(this, "CreateTransitGatewayConnectCommand");
      }
    };
    var CreateTransitGatewayConnectPeerCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateTransitGatewayConnectPeer", {}).n("EC2Client", "CreateTransitGatewayConnectPeerCommand").f(void 0, void 0).ser(se_CreateTransitGatewayConnectPeerCommand).de(de_CreateTransitGatewayConnectPeerCommand).build() {
      static {
        __name(this, "CreateTransitGatewayConnectPeerCommand");
      }
      static {
        __name2(this, "CreateTransitGatewayConnectPeerCommand");
      }
    };
    var CreateTransitGatewayMulticastDomainCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateTransitGatewayMulticastDomain", {}).n("EC2Client", "CreateTransitGatewayMulticastDomainCommand").f(void 0, void 0).ser(se_CreateTransitGatewayMulticastDomainCommand).de(de_CreateTransitGatewayMulticastDomainCommand).build() {
      static {
        __name(this, "CreateTransitGatewayMulticastDomainCommand");
      }
      static {
        __name2(this, "CreateTransitGatewayMulticastDomainCommand");
      }
    };
    var CreateTransitGatewayPeeringAttachmentCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateTransitGatewayPeeringAttachment", {}).n("EC2Client", "CreateTransitGatewayPeeringAttachmentCommand").f(void 0, void 0).ser(se_CreateTransitGatewayPeeringAttachmentCommand).de(de_CreateTransitGatewayPeeringAttachmentCommand).build() {
      static {
        __name(this, "CreateTransitGatewayPeeringAttachmentCommand");
      }
      static {
        __name2(this, "CreateTransitGatewayPeeringAttachmentCommand");
      }
    };
    var CreateTransitGatewayPolicyTableCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateTransitGatewayPolicyTable", {}).n("EC2Client", "CreateTransitGatewayPolicyTableCommand").f(void 0, void 0).ser(se_CreateTransitGatewayPolicyTableCommand).de(de_CreateTransitGatewayPolicyTableCommand).build() {
      static {
        __name(this, "CreateTransitGatewayPolicyTableCommand");
      }
      static {
        __name2(this, "CreateTransitGatewayPolicyTableCommand");
      }
    };
    var CreateTransitGatewayPrefixListReferenceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateTransitGatewayPrefixListReference", {}).n("EC2Client", "CreateTransitGatewayPrefixListReferenceCommand").f(void 0, void 0).ser(se_CreateTransitGatewayPrefixListReferenceCommand).de(de_CreateTransitGatewayPrefixListReferenceCommand).build() {
      static {
        __name(this, "CreateTransitGatewayPrefixListReferenceCommand");
      }
      static {
        __name2(this, "CreateTransitGatewayPrefixListReferenceCommand");
      }
    };
    var CreateTransitGatewayRouteCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateTransitGatewayRoute", {}).n("EC2Client", "CreateTransitGatewayRouteCommand").f(void 0, void 0).ser(se_CreateTransitGatewayRouteCommand).de(de_CreateTransitGatewayRouteCommand).build() {
      static {
        __name(this, "CreateTransitGatewayRouteCommand");
      }
      static {
        __name2(this, "CreateTransitGatewayRouteCommand");
      }
    };
    var CreateTransitGatewayRouteTableAnnouncementCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateTransitGatewayRouteTableAnnouncement", {}).n("EC2Client", "CreateTransitGatewayRouteTableAnnouncementCommand").f(void 0, void 0).ser(se_CreateTransitGatewayRouteTableAnnouncementCommand).de(de_CreateTransitGatewayRouteTableAnnouncementCommand).build() {
      static {
        __name(this, "CreateTransitGatewayRouteTableAnnouncementCommand");
      }
      static {
        __name2(this, "CreateTransitGatewayRouteTableAnnouncementCommand");
      }
    };
    var CreateTransitGatewayRouteTableCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateTransitGatewayRouteTable", {}).n("EC2Client", "CreateTransitGatewayRouteTableCommand").f(void 0, void 0).ser(se_CreateTransitGatewayRouteTableCommand).de(de_CreateTransitGatewayRouteTableCommand).build() {
      static {
        __name(this, "CreateTransitGatewayRouteTableCommand");
      }
      static {
        __name2(this, "CreateTransitGatewayRouteTableCommand");
      }
    };
    var CreateTransitGatewayVpcAttachmentCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateTransitGatewayVpcAttachment", {}).n("EC2Client", "CreateTransitGatewayVpcAttachmentCommand").f(void 0, void 0).ser(se_CreateTransitGatewayVpcAttachmentCommand).de(de_CreateTransitGatewayVpcAttachmentCommand).build() {
      static {
        __name(this, "CreateTransitGatewayVpcAttachmentCommand");
      }
      static {
        __name2(this, "CreateTransitGatewayVpcAttachmentCommand");
      }
    };
    var CreateVerifiedAccessEndpointCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateVerifiedAccessEndpoint", {}).n("EC2Client", "CreateVerifiedAccessEndpointCommand").f(void 0, void 0).ser(se_CreateVerifiedAccessEndpointCommand).de(de_CreateVerifiedAccessEndpointCommand).build() {
      static {
        __name(this, "CreateVerifiedAccessEndpointCommand");
      }
      static {
        __name2(this, "CreateVerifiedAccessEndpointCommand");
      }
    };
    var CreateVerifiedAccessGroupCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateVerifiedAccessGroup", {}).n("EC2Client", "CreateVerifiedAccessGroupCommand").f(void 0, void 0).ser(se_CreateVerifiedAccessGroupCommand).de(de_CreateVerifiedAccessGroupCommand).build() {
      static {
        __name(this, "CreateVerifiedAccessGroupCommand");
      }
      static {
        __name2(this, "CreateVerifiedAccessGroupCommand");
      }
    };
    var CreateVerifiedAccessInstanceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateVerifiedAccessInstance", {}).n("EC2Client", "CreateVerifiedAccessInstanceCommand").f(void 0, void 0).ser(se_CreateVerifiedAccessInstanceCommand).de(de_CreateVerifiedAccessInstanceCommand).build() {
      static {
        __name(this, "CreateVerifiedAccessInstanceCommand");
      }
      static {
        __name2(this, "CreateVerifiedAccessInstanceCommand");
      }
    };
    var CreateVerifiedAccessTrustProviderCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateVerifiedAccessTrustProvider", {}).n("EC2Client", "CreateVerifiedAccessTrustProviderCommand").f(
      CreateVerifiedAccessTrustProviderRequestFilterSensitiveLog,
      CreateVerifiedAccessTrustProviderResultFilterSensitiveLog
    ).ser(se_CreateVerifiedAccessTrustProviderCommand).de(de_CreateVerifiedAccessTrustProviderCommand).build() {
      static {
        __name(this, "CreateVerifiedAccessTrustProviderCommand");
      }
      static {
        __name2(this, "CreateVerifiedAccessTrustProviderCommand");
      }
    };
    var CreateVolumeCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateVolume", {}).n("EC2Client", "CreateVolumeCommand").f(void 0, void 0).ser(se_CreateVolumeCommand).de(de_CreateVolumeCommand).build() {
      static {
        __name(this, "CreateVolumeCommand");
      }
      static {
        __name2(this, "CreateVolumeCommand");
      }
    };
    var CreateVpcBlockPublicAccessExclusionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateVpcBlockPublicAccessExclusion", {}).n("EC2Client", "CreateVpcBlockPublicAccessExclusionCommand").f(void 0, void 0).ser(se_CreateVpcBlockPublicAccessExclusionCommand).de(de_CreateVpcBlockPublicAccessExclusionCommand).build() {
      static {
        __name(this, "CreateVpcBlockPublicAccessExclusionCommand");
      }
      static {
        __name2(this, "CreateVpcBlockPublicAccessExclusionCommand");
      }
    };
    var CreateVpcCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateVpc", {}).n("EC2Client", "CreateVpcCommand").f(void 0, void 0).ser(se_CreateVpcCommand).de(de_CreateVpcCommand).build() {
      static {
        __name(this, "CreateVpcCommand");
      }
      static {
        __name2(this, "CreateVpcCommand");
      }
    };
    var CreateVpcEndpointCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateVpcEndpoint", {}).n("EC2Client", "CreateVpcEndpointCommand").f(void 0, void 0).ser(se_CreateVpcEndpointCommand).de(de_CreateVpcEndpointCommand).build() {
      static {
        __name(this, "CreateVpcEndpointCommand");
      }
      static {
        __name2(this, "CreateVpcEndpointCommand");
      }
    };
    var CreateVpcEndpointConnectionNotificationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateVpcEndpointConnectionNotification", {}).n("EC2Client", "CreateVpcEndpointConnectionNotificationCommand").f(void 0, void 0).ser(se_CreateVpcEndpointConnectionNotificationCommand).de(de_CreateVpcEndpointConnectionNotificationCommand).build() {
      static {
        __name(this, "CreateVpcEndpointConnectionNotificationCommand");
      }
      static {
        __name2(this, "CreateVpcEndpointConnectionNotificationCommand");
      }
    };
    var CreateVpcEndpointServiceConfigurationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateVpcEndpointServiceConfiguration", {}).n("EC2Client", "CreateVpcEndpointServiceConfigurationCommand").f(void 0, void 0).ser(se_CreateVpcEndpointServiceConfigurationCommand).de(de_CreateVpcEndpointServiceConfigurationCommand).build() {
      static {
        __name(this, "CreateVpcEndpointServiceConfigurationCommand");
      }
      static {
        __name2(this, "CreateVpcEndpointServiceConfigurationCommand");
      }
    };
    var CreateVpcPeeringConnectionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateVpcPeeringConnection", {}).n("EC2Client", "CreateVpcPeeringConnectionCommand").f(void 0, void 0).ser(se_CreateVpcPeeringConnectionCommand).de(de_CreateVpcPeeringConnectionCommand).build() {
      static {
        __name(this, "CreateVpcPeeringConnectionCommand");
      }
      static {
        __name2(this, "CreateVpcPeeringConnectionCommand");
      }
    };
    var State = {
      Available: "Available",
      Deleted: "Deleted",
      Deleting: "Deleting",
      Expired: "Expired",
      Failed: "Failed",
      Partial: "Partial",
      Pending: "Pending",
      PendingAcceptance: "PendingAcceptance",
      Rejected: "Rejected"
    };
    var ConnectionNotificationState = {
      Disabled: "Disabled",
      Enabled: "Enabled"
    };
    var ConnectionNotificationType = {
      Topic: "Topic"
    };
    var PayerResponsibility = {
      ServiceOwner: "ServiceOwner"
    };
    var DnsNameState = {
      Failed: "failed",
      PendingVerification: "pendingVerification",
      Verified: "verified"
    };
    var ServiceState = {
      Available: "Available",
      Deleted: "Deleted",
      Deleting: "Deleting",
      Failed: "Failed",
      Pending: "Pending"
    };
    var ServiceType = {
      Gateway: "Gateway",
      GatewayLoadBalancer: "GatewayLoadBalancer",
      Interface: "Interface"
    };
    var ServiceConnectivityType = {
      ipv4: "ipv4",
      ipv6: "ipv6"
    };
    var TunnelInsideIpVersion = {
      ipv4: "ipv4",
      ipv6: "ipv6"
    };
    var GatewayAssociationState = {
      associated: "associated",
      associating: "associating",
      disassociating: "disassociating",
      not_associated: "not-associated"
    };
    var VpnStaticRouteSource = {
      Static: "Static"
    };
    var VpnState = {
      available: "available",
      deleted: "deleted",
      deleting: "deleting",
      pending: "pending"
    };
    var TelemetryStatus = {
      DOWN: "DOWN",
      UP: "UP"
    };
    var FleetStateCode = {
      ACTIVE: "active",
      DELETED: "deleted",
      DELETED_RUNNING: "deleted_running",
      DELETED_TERMINATING_INSTANCES: "deleted_terminating",
      FAILED: "failed",
      MODIFYING: "modifying",
      SUBMITTED: "submitted"
    };
    var DeleteFleetErrorCode = {
      FLEET_ID_DOES_NOT_EXIST: "fleetIdDoesNotExist",
      FLEET_ID_MALFORMED: "fleetIdMalformed",
      FLEET_NOT_IN_DELETABLE_STATE: "fleetNotInDeletableState",
      UNEXPECTED_ERROR: "unexpectedError"
    };
    var LaunchTemplateErrorCode = {
      LAUNCH_TEMPLATE_ID_DOES_NOT_EXIST: "launchTemplateIdDoesNotExist",
      LAUNCH_TEMPLATE_ID_MALFORMED: "launchTemplateIdMalformed",
      LAUNCH_TEMPLATE_NAME_DOES_NOT_EXIST: "launchTemplateNameDoesNotExist",
      LAUNCH_TEMPLATE_NAME_MALFORMED: "launchTemplateNameMalformed",
      LAUNCH_TEMPLATE_VERSION_DOES_NOT_EXIST: "launchTemplateVersionDoesNotExist",
      UNEXPECTED_ERROR: "unexpectedError"
    };
    var DeleteQueuedReservedInstancesErrorCode = {
      RESERVED_INSTANCES_ID_INVALID: "reserved-instances-id-invalid",
      RESERVED_INSTANCES_NOT_IN_QUEUED_STATE: "reserved-instances-not-in-queued-state",
      UNEXPECTED_ERROR: "unexpected-error"
    };
    var AsnState = {
      deprovisioned: "deprovisioned",
      failed_deprovision: "failed-deprovision",
      failed_provision: "failed-provision",
      pending_deprovision: "pending-deprovision",
      pending_provision: "pending-provision",
      provisioned: "provisioned"
    };
    var IpamPoolCidrFailureCode = {
      cidr_not_available: "cidr-not-available",
      limit_exceeded: "limit-exceeded"
    };
    var IpamPoolCidrState = {
      deprovisioned: "deprovisioned",
      failed_deprovision: "failed-deprovision",
      failed_import: "failed-import",
      failed_provision: "failed-provision",
      pending_deprovision: "pending-deprovision",
      pending_import: "pending-import",
      pending_provision: "pending-provision",
      provisioned: "provisioned"
    };
    var SnapshotReturnCodes = {
      ERROR_CODE_CLIENT_ERROR: "client-error",
      ERROR_CODE_INTERNAL_ERROR: "internal-error",
      ERROR_MISSING_PERMISSIONS: "missing-permissions",
      SUCCESS: "success",
      WARN_SKIPPED: "skipped"
    };
    var AvailabilityZoneOptInStatus = {
      not_opted_in: "not-opted-in",
      opt_in_not_required: "opt-in-not-required",
      opted_in: "opted-in"
    };
    var AvailabilityZoneState = {
      available: "available",
      constrained: "constrained",
      impaired: "impaired",
      information: "information",
      unavailable: "unavailable"
    };
    var MetricType = {
      aggregate_latency: "aggregate-latency"
    };
    var PeriodType = {
      fifteen_minutes: "fifteen-minutes",
      five_minutes: "five-minutes",
      one_day: "one-day",
      one_hour: "one-hour",
      one_week: "one-week",
      three_hours: "three-hours"
    };
    var StatisticType = {
      p50: "p50"
    };
    var CapacityBlockExtensionStatus = {
      PAYMENT_FAILED: "payment-failed",
      PAYMENT_PENDING: "payment-pending",
      PAYMENT_SUCCEEDED: "payment-succeeded"
    };
    var CapacityBlockResourceState = {
      active: "active",
      cancelled: "cancelled",
      expired: "expired",
      failed: "failed",
      payment_failed: "payment-failed",
      payment_pending: "payment-pending",
      scheduled: "scheduled",
      unavailable: "unavailable"
    };
    var CapacityBlockInterconnectStatus = {
      impaired: "impaired",
      insufficient_data: "insufficient-data",
      ok: "ok"
    };
    var CallerRole = {
      odcr_owner: "odcr-owner",
      unused_reservation_billing_owner: "unused-reservation-billing-owner"
    };
    var VpnTunnelOptionsSpecificationFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.PreSharedKey && { PreSharedKey: import_smithy_client28.SENSITIVE_STRING }
    }), "VpnTunnelOptionsSpecificationFilterSensitiveLog");
    var VpnConnectionOptionsSpecificationFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.TunnelOptions && {
        TunnelOptions: obj.TunnelOptions.map((item) => VpnTunnelOptionsSpecificationFilterSensitiveLog(item))
      }
    }), "VpnConnectionOptionsSpecificationFilterSensitiveLog");
    var CreateVpnConnectionRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Options && { Options: VpnConnectionOptionsSpecificationFilterSensitiveLog(obj.Options) }
    }), "CreateVpnConnectionRequestFilterSensitiveLog");
    var TunnelOptionFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.PreSharedKey && { PreSharedKey: import_smithy_client28.SENSITIVE_STRING }
    }), "TunnelOptionFilterSensitiveLog");
    var VpnConnectionOptionsFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.TunnelOptions && { TunnelOptions: obj.TunnelOptions.map((item) => TunnelOptionFilterSensitiveLog(item)) }
    }), "VpnConnectionOptionsFilterSensitiveLog");
    var VpnConnectionFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Options && { Options: VpnConnectionOptionsFilterSensitiveLog(obj.Options) },
      ...obj.CustomerGatewayConfiguration && { CustomerGatewayConfiguration: import_smithy_client28.SENSITIVE_STRING }
    }), "VpnConnectionFilterSensitiveLog");
    var CreateVpnConnectionResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.VpnConnection && { VpnConnection: VpnConnectionFilterSensitiveLog(obj.VpnConnection) }
    }), "CreateVpnConnectionResultFilterSensitiveLog");
    var DeleteVerifiedAccessTrustProviderResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.VerifiedAccessTrustProvider && {
        VerifiedAccessTrustProvider: VerifiedAccessTrustProviderFilterSensitiveLog(obj.VerifiedAccessTrustProvider)
      }
    }), "DeleteVerifiedAccessTrustProviderResultFilterSensitiveLog");
    var DescribeBundleTasksResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.BundleTasks && { BundleTasks: obj.BundleTasks.map((item) => BundleTaskFilterSensitiveLog(item)) }
    }), "DescribeBundleTasksResultFilterSensitiveLog");
    var CreateVpnConnectionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateVpnConnection", {}).n("EC2Client", "CreateVpnConnectionCommand").f(CreateVpnConnectionRequestFilterSensitiveLog, CreateVpnConnectionResultFilterSensitiveLog).ser(se_CreateVpnConnectionCommand).de(de_CreateVpnConnectionCommand).build() {
      static {
        __name(this, "CreateVpnConnectionCommand");
      }
      static {
        __name2(this, "CreateVpnConnectionCommand");
      }
    };
    var CreateVpnConnectionRouteCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateVpnConnectionRoute", {}).n("EC2Client", "CreateVpnConnectionRouteCommand").f(void 0, void 0).ser(se_CreateVpnConnectionRouteCommand).de(de_CreateVpnConnectionRouteCommand).build() {
      static {
        __name(this, "CreateVpnConnectionRouteCommand");
      }
      static {
        __name2(this, "CreateVpnConnectionRouteCommand");
      }
    };
    var CreateVpnGatewayCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "CreateVpnGateway", {}).n("EC2Client", "CreateVpnGatewayCommand").f(void 0, void 0).ser(se_CreateVpnGatewayCommand).de(de_CreateVpnGatewayCommand).build() {
      static {
        __name(this, "CreateVpnGatewayCommand");
      }
      static {
        __name2(this, "CreateVpnGatewayCommand");
      }
    };
    var DeleteCarrierGatewayCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteCarrierGateway", {}).n("EC2Client", "DeleteCarrierGatewayCommand").f(void 0, void 0).ser(se_DeleteCarrierGatewayCommand).de(de_DeleteCarrierGatewayCommand).build() {
      static {
        __name(this, "DeleteCarrierGatewayCommand");
      }
      static {
        __name2(this, "DeleteCarrierGatewayCommand");
      }
    };
    var DeleteClientVpnEndpointCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteClientVpnEndpoint", {}).n("EC2Client", "DeleteClientVpnEndpointCommand").f(void 0, void 0).ser(se_DeleteClientVpnEndpointCommand).de(de_DeleteClientVpnEndpointCommand).build() {
      static {
        __name(this, "DeleteClientVpnEndpointCommand");
      }
      static {
        __name2(this, "DeleteClientVpnEndpointCommand");
      }
    };
    var DeleteClientVpnRouteCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteClientVpnRoute", {}).n("EC2Client", "DeleteClientVpnRouteCommand").f(void 0, void 0).ser(se_DeleteClientVpnRouteCommand).de(de_DeleteClientVpnRouteCommand).build() {
      static {
        __name(this, "DeleteClientVpnRouteCommand");
      }
      static {
        __name2(this, "DeleteClientVpnRouteCommand");
      }
    };
    var DeleteCoipCidrCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteCoipCidr", {}).n("EC2Client", "DeleteCoipCidrCommand").f(void 0, void 0).ser(se_DeleteCoipCidrCommand).de(de_DeleteCoipCidrCommand).build() {
      static {
        __name(this, "DeleteCoipCidrCommand");
      }
      static {
        __name2(this, "DeleteCoipCidrCommand");
      }
    };
    var DeleteCoipPoolCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteCoipPool", {}).n("EC2Client", "DeleteCoipPoolCommand").f(void 0, void 0).ser(se_DeleteCoipPoolCommand).de(de_DeleteCoipPoolCommand).build() {
      static {
        __name(this, "DeleteCoipPoolCommand");
      }
      static {
        __name2(this, "DeleteCoipPoolCommand");
      }
    };
    var DeleteCustomerGatewayCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteCustomerGateway", {}).n("EC2Client", "DeleteCustomerGatewayCommand").f(void 0, void 0).ser(se_DeleteCustomerGatewayCommand).de(de_DeleteCustomerGatewayCommand).build() {
      static {
        __name(this, "DeleteCustomerGatewayCommand");
      }
      static {
        __name2(this, "DeleteCustomerGatewayCommand");
      }
    };
    var DeleteDhcpOptionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteDhcpOptions", {}).n("EC2Client", "DeleteDhcpOptionsCommand").f(void 0, void 0).ser(se_DeleteDhcpOptionsCommand).de(de_DeleteDhcpOptionsCommand).build() {
      static {
        __name(this, "DeleteDhcpOptionsCommand");
      }
      static {
        __name2(this, "DeleteDhcpOptionsCommand");
      }
    };
    var DeleteEgressOnlyInternetGatewayCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteEgressOnlyInternetGateway", {}).n("EC2Client", "DeleteEgressOnlyInternetGatewayCommand").f(void 0, void 0).ser(se_DeleteEgressOnlyInternetGatewayCommand).de(de_DeleteEgressOnlyInternetGatewayCommand).build() {
      static {
        __name(this, "DeleteEgressOnlyInternetGatewayCommand");
      }
      static {
        __name2(this, "DeleteEgressOnlyInternetGatewayCommand");
      }
    };
    var DeleteFleetsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteFleets", {}).n("EC2Client", "DeleteFleetsCommand").f(void 0, void 0).ser(se_DeleteFleetsCommand).de(de_DeleteFleetsCommand).build() {
      static {
        __name(this, "DeleteFleetsCommand");
      }
      static {
        __name2(this, "DeleteFleetsCommand");
      }
    };
    var DeleteFlowLogsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteFlowLogs", {}).n("EC2Client", "DeleteFlowLogsCommand").f(void 0, void 0).ser(se_DeleteFlowLogsCommand).de(de_DeleteFlowLogsCommand).build() {
      static {
        __name(this, "DeleteFlowLogsCommand");
      }
      static {
        __name2(this, "DeleteFlowLogsCommand");
      }
    };
    var DeleteFpgaImageCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteFpgaImage", {}).n("EC2Client", "DeleteFpgaImageCommand").f(void 0, void 0).ser(se_DeleteFpgaImageCommand).de(de_DeleteFpgaImageCommand).build() {
      static {
        __name(this, "DeleteFpgaImageCommand");
      }
      static {
        __name2(this, "DeleteFpgaImageCommand");
      }
    };
    var DeleteImageUsageReportCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteImageUsageReport", {}).n("EC2Client", "DeleteImageUsageReportCommand").f(void 0, void 0).ser(se_DeleteImageUsageReportCommand).de(de_DeleteImageUsageReportCommand).build() {
      static {
        __name(this, "DeleteImageUsageReportCommand");
      }
      static {
        __name2(this, "DeleteImageUsageReportCommand");
      }
    };
    var DeleteInstanceConnectEndpointCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteInstanceConnectEndpoint", {}).n("EC2Client", "DeleteInstanceConnectEndpointCommand").f(void 0, void 0).ser(se_DeleteInstanceConnectEndpointCommand).de(de_DeleteInstanceConnectEndpointCommand).build() {
      static {
        __name(this, "DeleteInstanceConnectEndpointCommand");
      }
      static {
        __name2(this, "DeleteInstanceConnectEndpointCommand");
      }
    };
    var DeleteInstanceEventWindowCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteInstanceEventWindow", {}).n("EC2Client", "DeleteInstanceEventWindowCommand").f(void 0, void 0).ser(se_DeleteInstanceEventWindowCommand).de(de_DeleteInstanceEventWindowCommand).build() {
      static {
        __name(this, "DeleteInstanceEventWindowCommand");
      }
      static {
        __name2(this, "DeleteInstanceEventWindowCommand");
      }
    };
    var DeleteInternetGatewayCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteInternetGateway", {}).n("EC2Client", "DeleteInternetGatewayCommand").f(void 0, void 0).ser(se_DeleteInternetGatewayCommand).de(de_DeleteInternetGatewayCommand).build() {
      static {
        __name(this, "DeleteInternetGatewayCommand");
      }
      static {
        __name2(this, "DeleteInternetGatewayCommand");
      }
    };
    var DeleteIpamCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteIpam", {}).n("EC2Client", "DeleteIpamCommand").f(void 0, void 0).ser(se_DeleteIpamCommand).de(de_DeleteIpamCommand).build() {
      static {
        __name(this, "DeleteIpamCommand");
      }
      static {
        __name2(this, "DeleteIpamCommand");
      }
    };
    var DeleteIpamExternalResourceVerificationTokenCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteIpamExternalResourceVerificationToken", {}).n("EC2Client", "DeleteIpamExternalResourceVerificationTokenCommand").f(void 0, void 0).ser(se_DeleteIpamExternalResourceVerificationTokenCommand).de(de_DeleteIpamExternalResourceVerificationTokenCommand).build() {
      static {
        __name(this, "DeleteIpamExternalResourceVerificationTokenCommand");
      }
      static {
        __name2(this, "DeleteIpamExternalResourceVerificationTokenCommand");
      }
    };
    var DeleteIpamPoolCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteIpamPool", {}).n("EC2Client", "DeleteIpamPoolCommand").f(void 0, void 0).ser(se_DeleteIpamPoolCommand).de(de_DeleteIpamPoolCommand).build() {
      static {
        __name(this, "DeleteIpamPoolCommand");
      }
      static {
        __name2(this, "DeleteIpamPoolCommand");
      }
    };
    var DeleteIpamResourceDiscoveryCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteIpamResourceDiscovery", {}).n("EC2Client", "DeleteIpamResourceDiscoveryCommand").f(void 0, void 0).ser(se_DeleteIpamResourceDiscoveryCommand).de(de_DeleteIpamResourceDiscoveryCommand).build() {
      static {
        __name(this, "DeleteIpamResourceDiscoveryCommand");
      }
      static {
        __name2(this, "DeleteIpamResourceDiscoveryCommand");
      }
    };
    var DeleteIpamScopeCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteIpamScope", {}).n("EC2Client", "DeleteIpamScopeCommand").f(void 0, void 0).ser(se_DeleteIpamScopeCommand).de(de_DeleteIpamScopeCommand).build() {
      static {
        __name(this, "DeleteIpamScopeCommand");
      }
      static {
        __name2(this, "DeleteIpamScopeCommand");
      }
    };
    var DeleteKeyPairCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteKeyPair", {}).n("EC2Client", "DeleteKeyPairCommand").f(void 0, void 0).ser(se_DeleteKeyPairCommand).de(de_DeleteKeyPairCommand).build() {
      static {
        __name(this, "DeleteKeyPairCommand");
      }
      static {
        __name2(this, "DeleteKeyPairCommand");
      }
    };
    var DeleteLaunchTemplateCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteLaunchTemplate", {}).n("EC2Client", "DeleteLaunchTemplateCommand").f(void 0, void 0).ser(se_DeleteLaunchTemplateCommand).de(de_DeleteLaunchTemplateCommand).build() {
      static {
        __name(this, "DeleteLaunchTemplateCommand");
      }
      static {
        __name2(this, "DeleteLaunchTemplateCommand");
      }
    };
    var DeleteLaunchTemplateVersionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteLaunchTemplateVersions", {}).n("EC2Client", "DeleteLaunchTemplateVersionsCommand").f(void 0, void 0).ser(se_DeleteLaunchTemplateVersionsCommand).de(de_DeleteLaunchTemplateVersionsCommand).build() {
      static {
        __name(this, "DeleteLaunchTemplateVersionsCommand");
      }
      static {
        __name2(this, "DeleteLaunchTemplateVersionsCommand");
      }
    };
    var DeleteLocalGatewayRouteCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteLocalGatewayRoute", {}).n("EC2Client", "DeleteLocalGatewayRouteCommand").f(void 0, void 0).ser(se_DeleteLocalGatewayRouteCommand).de(de_DeleteLocalGatewayRouteCommand).build() {
      static {
        __name(this, "DeleteLocalGatewayRouteCommand");
      }
      static {
        __name2(this, "DeleteLocalGatewayRouteCommand");
      }
    };
    var DeleteLocalGatewayRouteTableCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteLocalGatewayRouteTable", {}).n("EC2Client", "DeleteLocalGatewayRouteTableCommand").f(void 0, void 0).ser(se_DeleteLocalGatewayRouteTableCommand).de(de_DeleteLocalGatewayRouteTableCommand).build() {
      static {
        __name(this, "DeleteLocalGatewayRouteTableCommand");
      }
      static {
        __name2(this, "DeleteLocalGatewayRouteTableCommand");
      }
    };
    var DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation", {}).n("EC2Client", "DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationCommand").f(void 0, void 0).ser(se_DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationCommand).de(de_DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationCommand).build() {
      static {
        __name(this, "DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationCommand");
      }
      static {
        __name2(this, "DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationCommand");
      }
    };
    var DeleteLocalGatewayRouteTableVpcAssociationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteLocalGatewayRouteTableVpcAssociation", {}).n("EC2Client", "DeleteLocalGatewayRouteTableVpcAssociationCommand").f(void 0, void 0).ser(se_DeleteLocalGatewayRouteTableVpcAssociationCommand).de(de_DeleteLocalGatewayRouteTableVpcAssociationCommand).build() {
      static {
        __name(this, "DeleteLocalGatewayRouteTableVpcAssociationCommand");
      }
      static {
        __name2(this, "DeleteLocalGatewayRouteTableVpcAssociationCommand");
      }
    };
    var DeleteLocalGatewayVirtualInterfaceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteLocalGatewayVirtualInterface", {}).n("EC2Client", "DeleteLocalGatewayVirtualInterfaceCommand").f(void 0, void 0).ser(se_DeleteLocalGatewayVirtualInterfaceCommand).de(de_DeleteLocalGatewayVirtualInterfaceCommand).build() {
      static {
        __name(this, "DeleteLocalGatewayVirtualInterfaceCommand");
      }
      static {
        __name2(this, "DeleteLocalGatewayVirtualInterfaceCommand");
      }
    };
    var DeleteLocalGatewayVirtualInterfaceGroupCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteLocalGatewayVirtualInterfaceGroup", {}).n("EC2Client", "DeleteLocalGatewayVirtualInterfaceGroupCommand").f(void 0, void 0).ser(se_DeleteLocalGatewayVirtualInterfaceGroupCommand).de(de_DeleteLocalGatewayVirtualInterfaceGroupCommand).build() {
      static {
        __name(this, "DeleteLocalGatewayVirtualInterfaceGroupCommand");
      }
      static {
        __name2(this, "DeleteLocalGatewayVirtualInterfaceGroupCommand");
      }
    };
    var DeleteManagedPrefixListCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteManagedPrefixList", {}).n("EC2Client", "DeleteManagedPrefixListCommand").f(void 0, void 0).ser(se_DeleteManagedPrefixListCommand).de(de_DeleteManagedPrefixListCommand).build() {
      static {
        __name(this, "DeleteManagedPrefixListCommand");
      }
      static {
        __name2(this, "DeleteManagedPrefixListCommand");
      }
    };
    var DeleteNatGatewayCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteNatGateway", {}).n("EC2Client", "DeleteNatGatewayCommand").f(void 0, void 0).ser(se_DeleteNatGatewayCommand).de(de_DeleteNatGatewayCommand).build() {
      static {
        __name(this, "DeleteNatGatewayCommand");
      }
      static {
        __name2(this, "DeleteNatGatewayCommand");
      }
    };
    var DeleteNetworkAclCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteNetworkAcl", {}).n("EC2Client", "DeleteNetworkAclCommand").f(void 0, void 0).ser(se_DeleteNetworkAclCommand).de(de_DeleteNetworkAclCommand).build() {
      static {
        __name(this, "DeleteNetworkAclCommand");
      }
      static {
        __name2(this, "DeleteNetworkAclCommand");
      }
    };
    var DeleteNetworkAclEntryCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteNetworkAclEntry", {}).n("EC2Client", "DeleteNetworkAclEntryCommand").f(void 0, void 0).ser(se_DeleteNetworkAclEntryCommand).de(de_DeleteNetworkAclEntryCommand).build() {
      static {
        __name(this, "DeleteNetworkAclEntryCommand");
      }
      static {
        __name2(this, "DeleteNetworkAclEntryCommand");
      }
    };
    var DeleteNetworkInsightsAccessScopeAnalysisCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteNetworkInsightsAccessScopeAnalysis", {}).n("EC2Client", "DeleteNetworkInsightsAccessScopeAnalysisCommand").f(void 0, void 0).ser(se_DeleteNetworkInsightsAccessScopeAnalysisCommand).de(de_DeleteNetworkInsightsAccessScopeAnalysisCommand).build() {
      static {
        __name(this, "DeleteNetworkInsightsAccessScopeAnalysisCommand");
      }
      static {
        __name2(this, "DeleteNetworkInsightsAccessScopeAnalysisCommand");
      }
    };
    var DeleteNetworkInsightsAccessScopeCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteNetworkInsightsAccessScope", {}).n("EC2Client", "DeleteNetworkInsightsAccessScopeCommand").f(void 0, void 0).ser(se_DeleteNetworkInsightsAccessScopeCommand).de(de_DeleteNetworkInsightsAccessScopeCommand).build() {
      static {
        __name(this, "DeleteNetworkInsightsAccessScopeCommand");
      }
      static {
        __name2(this, "DeleteNetworkInsightsAccessScopeCommand");
      }
    };
    var DeleteNetworkInsightsAnalysisCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteNetworkInsightsAnalysis", {}).n("EC2Client", "DeleteNetworkInsightsAnalysisCommand").f(void 0, void 0).ser(se_DeleteNetworkInsightsAnalysisCommand).de(de_DeleteNetworkInsightsAnalysisCommand).build() {
      static {
        __name(this, "DeleteNetworkInsightsAnalysisCommand");
      }
      static {
        __name2(this, "DeleteNetworkInsightsAnalysisCommand");
      }
    };
    var DeleteNetworkInsightsPathCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteNetworkInsightsPath", {}).n("EC2Client", "DeleteNetworkInsightsPathCommand").f(void 0, void 0).ser(se_DeleteNetworkInsightsPathCommand).de(de_DeleteNetworkInsightsPathCommand).build() {
      static {
        __name(this, "DeleteNetworkInsightsPathCommand");
      }
      static {
        __name2(this, "DeleteNetworkInsightsPathCommand");
      }
    };
    var DeleteNetworkInterfaceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteNetworkInterface", {}).n("EC2Client", "DeleteNetworkInterfaceCommand").f(void 0, void 0).ser(se_DeleteNetworkInterfaceCommand).de(de_DeleteNetworkInterfaceCommand).build() {
      static {
        __name(this, "DeleteNetworkInterfaceCommand");
      }
      static {
        __name2(this, "DeleteNetworkInterfaceCommand");
      }
    };
    var DeleteNetworkInterfacePermissionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteNetworkInterfacePermission", {}).n("EC2Client", "DeleteNetworkInterfacePermissionCommand").f(void 0, void 0).ser(se_DeleteNetworkInterfacePermissionCommand).de(de_DeleteNetworkInterfacePermissionCommand).build() {
      static {
        __name(this, "DeleteNetworkInterfacePermissionCommand");
      }
      static {
        __name2(this, "DeleteNetworkInterfacePermissionCommand");
      }
    };
    var DeletePlacementGroupCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeletePlacementGroup", {}).n("EC2Client", "DeletePlacementGroupCommand").f(void 0, void 0).ser(se_DeletePlacementGroupCommand).de(de_DeletePlacementGroupCommand).build() {
      static {
        __name(this, "DeletePlacementGroupCommand");
      }
      static {
        __name2(this, "DeletePlacementGroupCommand");
      }
    };
    var DeletePublicIpv4PoolCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeletePublicIpv4Pool", {}).n("EC2Client", "DeletePublicIpv4PoolCommand").f(void 0, void 0).ser(se_DeletePublicIpv4PoolCommand).de(de_DeletePublicIpv4PoolCommand).build() {
      static {
        __name(this, "DeletePublicIpv4PoolCommand");
      }
      static {
        __name2(this, "DeletePublicIpv4PoolCommand");
      }
    };
    var DeleteQueuedReservedInstancesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteQueuedReservedInstances", {}).n("EC2Client", "DeleteQueuedReservedInstancesCommand").f(void 0, void 0).ser(se_DeleteQueuedReservedInstancesCommand).de(de_DeleteQueuedReservedInstancesCommand).build() {
      static {
        __name(this, "DeleteQueuedReservedInstancesCommand");
      }
      static {
        __name2(this, "DeleteQueuedReservedInstancesCommand");
      }
    };
    var DeleteRouteCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteRoute", {}).n("EC2Client", "DeleteRouteCommand").f(void 0, void 0).ser(se_DeleteRouteCommand).de(de_DeleteRouteCommand).build() {
      static {
        __name(this, "DeleteRouteCommand");
      }
      static {
        __name2(this, "DeleteRouteCommand");
      }
    };
    var DeleteRouteServerCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteRouteServer", {}).n("EC2Client", "DeleteRouteServerCommand").f(void 0, void 0).ser(se_DeleteRouteServerCommand).de(de_DeleteRouteServerCommand).build() {
      static {
        __name(this, "DeleteRouteServerCommand");
      }
      static {
        __name2(this, "DeleteRouteServerCommand");
      }
    };
    var DeleteRouteServerEndpointCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteRouteServerEndpoint", {}).n("EC2Client", "DeleteRouteServerEndpointCommand").f(void 0, void 0).ser(se_DeleteRouteServerEndpointCommand).de(de_DeleteRouteServerEndpointCommand).build() {
      static {
        __name(this, "DeleteRouteServerEndpointCommand");
      }
      static {
        __name2(this, "DeleteRouteServerEndpointCommand");
      }
    };
    var DeleteRouteServerPeerCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteRouteServerPeer", {}).n("EC2Client", "DeleteRouteServerPeerCommand").f(void 0, void 0).ser(se_DeleteRouteServerPeerCommand).de(de_DeleteRouteServerPeerCommand).build() {
      static {
        __name(this, "DeleteRouteServerPeerCommand");
      }
      static {
        __name2(this, "DeleteRouteServerPeerCommand");
      }
    };
    var DeleteRouteTableCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteRouteTable", {}).n("EC2Client", "DeleteRouteTableCommand").f(void 0, void 0).ser(se_DeleteRouteTableCommand).de(de_DeleteRouteTableCommand).build() {
      static {
        __name(this, "DeleteRouteTableCommand");
      }
      static {
        __name2(this, "DeleteRouteTableCommand");
      }
    };
    var DeleteSecurityGroupCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteSecurityGroup", {}).n("EC2Client", "DeleteSecurityGroupCommand").f(void 0, void 0).ser(se_DeleteSecurityGroupCommand).de(de_DeleteSecurityGroupCommand).build() {
      static {
        __name(this, "DeleteSecurityGroupCommand");
      }
      static {
        __name2(this, "DeleteSecurityGroupCommand");
      }
    };
    var DeleteSnapshotCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteSnapshot", {}).n("EC2Client", "DeleteSnapshotCommand").f(void 0, void 0).ser(se_DeleteSnapshotCommand).de(de_DeleteSnapshotCommand).build() {
      static {
        __name(this, "DeleteSnapshotCommand");
      }
      static {
        __name2(this, "DeleteSnapshotCommand");
      }
    };
    var DeleteSpotDatafeedSubscriptionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteSpotDatafeedSubscription", {}).n("EC2Client", "DeleteSpotDatafeedSubscriptionCommand").f(void 0, void 0).ser(se_DeleteSpotDatafeedSubscriptionCommand).de(de_DeleteSpotDatafeedSubscriptionCommand).build() {
      static {
        __name(this, "DeleteSpotDatafeedSubscriptionCommand");
      }
      static {
        __name2(this, "DeleteSpotDatafeedSubscriptionCommand");
      }
    };
    var DeleteSubnetCidrReservationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteSubnetCidrReservation", {}).n("EC2Client", "DeleteSubnetCidrReservationCommand").f(void 0, void 0).ser(se_DeleteSubnetCidrReservationCommand).de(de_DeleteSubnetCidrReservationCommand).build() {
      static {
        __name(this, "DeleteSubnetCidrReservationCommand");
      }
      static {
        __name2(this, "DeleteSubnetCidrReservationCommand");
      }
    };
    var DeleteSubnetCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteSubnet", {}).n("EC2Client", "DeleteSubnetCommand").f(void 0, void 0).ser(se_DeleteSubnetCommand).de(de_DeleteSubnetCommand).build() {
      static {
        __name(this, "DeleteSubnetCommand");
      }
      static {
        __name2(this, "DeleteSubnetCommand");
      }
    };
    var DeleteTagsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteTags", {}).n("EC2Client", "DeleteTagsCommand").f(void 0, void 0).ser(se_DeleteTagsCommand).de(de_DeleteTagsCommand).build() {
      static {
        __name(this, "DeleteTagsCommand");
      }
      static {
        __name2(this, "DeleteTagsCommand");
      }
    };
    var DeleteTrafficMirrorFilterCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteTrafficMirrorFilter", {}).n("EC2Client", "DeleteTrafficMirrorFilterCommand").f(void 0, void 0).ser(se_DeleteTrafficMirrorFilterCommand).de(de_DeleteTrafficMirrorFilterCommand).build() {
      static {
        __name(this, "DeleteTrafficMirrorFilterCommand");
      }
      static {
        __name2(this, "DeleteTrafficMirrorFilterCommand");
      }
    };
    var DeleteTrafficMirrorFilterRuleCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteTrafficMirrorFilterRule", {}).n("EC2Client", "DeleteTrafficMirrorFilterRuleCommand").f(void 0, void 0).ser(se_DeleteTrafficMirrorFilterRuleCommand).de(de_DeleteTrafficMirrorFilterRuleCommand).build() {
      static {
        __name(this, "DeleteTrafficMirrorFilterRuleCommand");
      }
      static {
        __name2(this, "DeleteTrafficMirrorFilterRuleCommand");
      }
    };
    var DeleteTrafficMirrorSessionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteTrafficMirrorSession", {}).n("EC2Client", "DeleteTrafficMirrorSessionCommand").f(void 0, void 0).ser(se_DeleteTrafficMirrorSessionCommand).de(de_DeleteTrafficMirrorSessionCommand).build() {
      static {
        __name(this, "DeleteTrafficMirrorSessionCommand");
      }
      static {
        __name2(this, "DeleteTrafficMirrorSessionCommand");
      }
    };
    var DeleteTrafficMirrorTargetCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteTrafficMirrorTarget", {}).n("EC2Client", "DeleteTrafficMirrorTargetCommand").f(void 0, void 0).ser(se_DeleteTrafficMirrorTargetCommand).de(de_DeleteTrafficMirrorTargetCommand).build() {
      static {
        __name(this, "DeleteTrafficMirrorTargetCommand");
      }
      static {
        __name2(this, "DeleteTrafficMirrorTargetCommand");
      }
    };
    var DeleteTransitGatewayCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteTransitGateway", {}).n("EC2Client", "DeleteTransitGatewayCommand").f(void 0, void 0).ser(se_DeleteTransitGatewayCommand).de(de_DeleteTransitGatewayCommand).build() {
      static {
        __name(this, "DeleteTransitGatewayCommand");
      }
      static {
        __name2(this, "DeleteTransitGatewayCommand");
      }
    };
    var DeleteTransitGatewayConnectCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteTransitGatewayConnect", {}).n("EC2Client", "DeleteTransitGatewayConnectCommand").f(void 0, void 0).ser(se_DeleteTransitGatewayConnectCommand).de(de_DeleteTransitGatewayConnectCommand).build() {
      static {
        __name(this, "DeleteTransitGatewayConnectCommand");
      }
      static {
        __name2(this, "DeleteTransitGatewayConnectCommand");
      }
    };
    var DeleteTransitGatewayConnectPeerCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteTransitGatewayConnectPeer", {}).n("EC2Client", "DeleteTransitGatewayConnectPeerCommand").f(void 0, void 0).ser(se_DeleteTransitGatewayConnectPeerCommand).de(de_DeleteTransitGatewayConnectPeerCommand).build() {
      static {
        __name(this, "DeleteTransitGatewayConnectPeerCommand");
      }
      static {
        __name2(this, "DeleteTransitGatewayConnectPeerCommand");
      }
    };
    var DeleteTransitGatewayMulticastDomainCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteTransitGatewayMulticastDomain", {}).n("EC2Client", "DeleteTransitGatewayMulticastDomainCommand").f(void 0, void 0).ser(se_DeleteTransitGatewayMulticastDomainCommand).de(de_DeleteTransitGatewayMulticastDomainCommand).build() {
      static {
        __name(this, "DeleteTransitGatewayMulticastDomainCommand");
      }
      static {
        __name2(this, "DeleteTransitGatewayMulticastDomainCommand");
      }
    };
    var DeleteTransitGatewayPeeringAttachmentCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteTransitGatewayPeeringAttachment", {}).n("EC2Client", "DeleteTransitGatewayPeeringAttachmentCommand").f(void 0, void 0).ser(se_DeleteTransitGatewayPeeringAttachmentCommand).de(de_DeleteTransitGatewayPeeringAttachmentCommand).build() {
      static {
        __name(this, "DeleteTransitGatewayPeeringAttachmentCommand");
      }
      static {
        __name2(this, "DeleteTransitGatewayPeeringAttachmentCommand");
      }
    };
    var DeleteTransitGatewayPolicyTableCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteTransitGatewayPolicyTable", {}).n("EC2Client", "DeleteTransitGatewayPolicyTableCommand").f(void 0, void 0).ser(se_DeleteTransitGatewayPolicyTableCommand).de(de_DeleteTransitGatewayPolicyTableCommand).build() {
      static {
        __name(this, "DeleteTransitGatewayPolicyTableCommand");
      }
      static {
        __name2(this, "DeleteTransitGatewayPolicyTableCommand");
      }
    };
    var DeleteTransitGatewayPrefixListReferenceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteTransitGatewayPrefixListReference", {}).n("EC2Client", "DeleteTransitGatewayPrefixListReferenceCommand").f(void 0, void 0).ser(se_DeleteTransitGatewayPrefixListReferenceCommand).de(de_DeleteTransitGatewayPrefixListReferenceCommand).build() {
      static {
        __name(this, "DeleteTransitGatewayPrefixListReferenceCommand");
      }
      static {
        __name2(this, "DeleteTransitGatewayPrefixListReferenceCommand");
      }
    };
    var DeleteTransitGatewayRouteCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteTransitGatewayRoute", {}).n("EC2Client", "DeleteTransitGatewayRouteCommand").f(void 0, void 0).ser(se_DeleteTransitGatewayRouteCommand).de(de_DeleteTransitGatewayRouteCommand).build() {
      static {
        __name(this, "DeleteTransitGatewayRouteCommand");
      }
      static {
        __name2(this, "DeleteTransitGatewayRouteCommand");
      }
    };
    var DeleteTransitGatewayRouteTableAnnouncementCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteTransitGatewayRouteTableAnnouncement", {}).n("EC2Client", "DeleteTransitGatewayRouteTableAnnouncementCommand").f(void 0, void 0).ser(se_DeleteTransitGatewayRouteTableAnnouncementCommand).de(de_DeleteTransitGatewayRouteTableAnnouncementCommand).build() {
      static {
        __name(this, "DeleteTransitGatewayRouteTableAnnouncementCommand");
      }
      static {
        __name2(this, "DeleteTransitGatewayRouteTableAnnouncementCommand");
      }
    };
    var DeleteTransitGatewayRouteTableCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteTransitGatewayRouteTable", {}).n("EC2Client", "DeleteTransitGatewayRouteTableCommand").f(void 0, void 0).ser(se_DeleteTransitGatewayRouteTableCommand).de(de_DeleteTransitGatewayRouteTableCommand).build() {
      static {
        __name(this, "DeleteTransitGatewayRouteTableCommand");
      }
      static {
        __name2(this, "DeleteTransitGatewayRouteTableCommand");
      }
    };
    var DeleteTransitGatewayVpcAttachmentCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteTransitGatewayVpcAttachment", {}).n("EC2Client", "DeleteTransitGatewayVpcAttachmentCommand").f(void 0, void 0).ser(se_DeleteTransitGatewayVpcAttachmentCommand).de(de_DeleteTransitGatewayVpcAttachmentCommand).build() {
      static {
        __name(this, "DeleteTransitGatewayVpcAttachmentCommand");
      }
      static {
        __name2(this, "DeleteTransitGatewayVpcAttachmentCommand");
      }
    };
    var DeleteVerifiedAccessEndpointCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteVerifiedAccessEndpoint", {}).n("EC2Client", "DeleteVerifiedAccessEndpointCommand").f(void 0, void 0).ser(se_DeleteVerifiedAccessEndpointCommand).de(de_DeleteVerifiedAccessEndpointCommand).build() {
      static {
        __name(this, "DeleteVerifiedAccessEndpointCommand");
      }
      static {
        __name2(this, "DeleteVerifiedAccessEndpointCommand");
      }
    };
    var DeleteVerifiedAccessGroupCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteVerifiedAccessGroup", {}).n("EC2Client", "DeleteVerifiedAccessGroupCommand").f(void 0, void 0).ser(se_DeleteVerifiedAccessGroupCommand).de(de_DeleteVerifiedAccessGroupCommand).build() {
      static {
        __name(this, "DeleteVerifiedAccessGroupCommand");
      }
      static {
        __name2(this, "DeleteVerifiedAccessGroupCommand");
      }
    };
    var DeleteVerifiedAccessInstanceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteVerifiedAccessInstance", {}).n("EC2Client", "DeleteVerifiedAccessInstanceCommand").f(void 0, void 0).ser(se_DeleteVerifiedAccessInstanceCommand).de(de_DeleteVerifiedAccessInstanceCommand).build() {
      static {
        __name(this, "DeleteVerifiedAccessInstanceCommand");
      }
      static {
        __name2(this, "DeleteVerifiedAccessInstanceCommand");
      }
    };
    var DeleteVerifiedAccessTrustProviderCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteVerifiedAccessTrustProvider", {}).n("EC2Client", "DeleteVerifiedAccessTrustProviderCommand").f(void 0, DeleteVerifiedAccessTrustProviderResultFilterSensitiveLog).ser(se_DeleteVerifiedAccessTrustProviderCommand).de(de_DeleteVerifiedAccessTrustProviderCommand).build() {
      static {
        __name(this, "DeleteVerifiedAccessTrustProviderCommand");
      }
      static {
        __name2(this, "DeleteVerifiedAccessTrustProviderCommand");
      }
    };
    var DeleteVolumeCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteVolume", {}).n("EC2Client", "DeleteVolumeCommand").f(void 0, void 0).ser(se_DeleteVolumeCommand).de(de_DeleteVolumeCommand).build() {
      static {
        __name(this, "DeleteVolumeCommand");
      }
      static {
        __name2(this, "DeleteVolumeCommand");
      }
    };
    var DeleteVpcBlockPublicAccessExclusionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteVpcBlockPublicAccessExclusion", {}).n("EC2Client", "DeleteVpcBlockPublicAccessExclusionCommand").f(void 0, void 0).ser(se_DeleteVpcBlockPublicAccessExclusionCommand).de(de_DeleteVpcBlockPublicAccessExclusionCommand).build() {
      static {
        __name(this, "DeleteVpcBlockPublicAccessExclusionCommand");
      }
      static {
        __name2(this, "DeleteVpcBlockPublicAccessExclusionCommand");
      }
    };
    var DeleteVpcCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteVpc", {}).n("EC2Client", "DeleteVpcCommand").f(void 0, void 0).ser(se_DeleteVpcCommand).de(de_DeleteVpcCommand).build() {
      static {
        __name(this, "DeleteVpcCommand");
      }
      static {
        __name2(this, "DeleteVpcCommand");
      }
    };
    var DeleteVpcEndpointConnectionNotificationsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteVpcEndpointConnectionNotifications", {}).n("EC2Client", "DeleteVpcEndpointConnectionNotificationsCommand").f(void 0, void 0).ser(se_DeleteVpcEndpointConnectionNotificationsCommand).de(de_DeleteVpcEndpointConnectionNotificationsCommand).build() {
      static {
        __name(this, "DeleteVpcEndpointConnectionNotificationsCommand");
      }
      static {
        __name2(this, "DeleteVpcEndpointConnectionNotificationsCommand");
      }
    };
    var DeleteVpcEndpointsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteVpcEndpoints", {}).n("EC2Client", "DeleteVpcEndpointsCommand").f(void 0, void 0).ser(se_DeleteVpcEndpointsCommand).de(de_DeleteVpcEndpointsCommand).build() {
      static {
        __name(this, "DeleteVpcEndpointsCommand");
      }
      static {
        __name2(this, "DeleteVpcEndpointsCommand");
      }
    };
    var DeleteVpcEndpointServiceConfigurationsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteVpcEndpointServiceConfigurations", {}).n("EC2Client", "DeleteVpcEndpointServiceConfigurationsCommand").f(void 0, void 0).ser(se_DeleteVpcEndpointServiceConfigurationsCommand).de(de_DeleteVpcEndpointServiceConfigurationsCommand).build() {
      static {
        __name(this, "DeleteVpcEndpointServiceConfigurationsCommand");
      }
      static {
        __name2(this, "DeleteVpcEndpointServiceConfigurationsCommand");
      }
    };
    var DeleteVpcPeeringConnectionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteVpcPeeringConnection", {}).n("EC2Client", "DeleteVpcPeeringConnectionCommand").f(void 0, void 0).ser(se_DeleteVpcPeeringConnectionCommand).de(de_DeleteVpcPeeringConnectionCommand).build() {
      static {
        __name(this, "DeleteVpcPeeringConnectionCommand");
      }
      static {
        __name2(this, "DeleteVpcPeeringConnectionCommand");
      }
    };
    var DeleteVpnConnectionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteVpnConnection", {}).n("EC2Client", "DeleteVpnConnectionCommand").f(void 0, void 0).ser(se_DeleteVpnConnectionCommand).de(de_DeleteVpnConnectionCommand).build() {
      static {
        __name(this, "DeleteVpnConnectionCommand");
      }
      static {
        __name2(this, "DeleteVpnConnectionCommand");
      }
    };
    var DeleteVpnConnectionRouteCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteVpnConnectionRoute", {}).n("EC2Client", "DeleteVpnConnectionRouteCommand").f(void 0, void 0).ser(se_DeleteVpnConnectionRouteCommand).de(de_DeleteVpnConnectionRouteCommand).build() {
      static {
        __name(this, "DeleteVpnConnectionRouteCommand");
      }
      static {
        __name2(this, "DeleteVpnConnectionRouteCommand");
      }
    };
    var DeleteVpnGatewayCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeleteVpnGateway", {}).n("EC2Client", "DeleteVpnGatewayCommand").f(void 0, void 0).ser(se_DeleteVpnGatewayCommand).de(de_DeleteVpnGatewayCommand).build() {
      static {
        __name(this, "DeleteVpnGatewayCommand");
      }
      static {
        __name2(this, "DeleteVpnGatewayCommand");
      }
    };
    var DeprovisionByoipCidrCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeprovisionByoipCidr", {}).n("EC2Client", "DeprovisionByoipCidrCommand").f(void 0, void 0).ser(se_DeprovisionByoipCidrCommand).de(de_DeprovisionByoipCidrCommand).build() {
      static {
        __name(this, "DeprovisionByoipCidrCommand");
      }
      static {
        __name2(this, "DeprovisionByoipCidrCommand");
      }
    };
    var DeprovisionIpamByoasnCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeprovisionIpamByoasn", {}).n("EC2Client", "DeprovisionIpamByoasnCommand").f(void 0, void 0).ser(se_DeprovisionIpamByoasnCommand).de(de_DeprovisionIpamByoasnCommand).build() {
      static {
        __name(this, "DeprovisionIpamByoasnCommand");
      }
      static {
        __name2(this, "DeprovisionIpamByoasnCommand");
      }
    };
    var DeprovisionIpamPoolCidrCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeprovisionIpamPoolCidr", {}).n("EC2Client", "DeprovisionIpamPoolCidrCommand").f(void 0, void 0).ser(se_DeprovisionIpamPoolCidrCommand).de(de_DeprovisionIpamPoolCidrCommand).build() {
      static {
        __name(this, "DeprovisionIpamPoolCidrCommand");
      }
      static {
        __name2(this, "DeprovisionIpamPoolCidrCommand");
      }
    };
    var DeprovisionPublicIpv4PoolCidrCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeprovisionPublicIpv4PoolCidr", {}).n("EC2Client", "DeprovisionPublicIpv4PoolCidrCommand").f(void 0, void 0).ser(se_DeprovisionPublicIpv4PoolCidrCommand).de(de_DeprovisionPublicIpv4PoolCidrCommand).build() {
      static {
        __name(this, "DeprovisionPublicIpv4PoolCidrCommand");
      }
      static {
        __name2(this, "DeprovisionPublicIpv4PoolCidrCommand");
      }
    };
    var DeregisterImageCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeregisterImage", {}).n("EC2Client", "DeregisterImageCommand").f(void 0, void 0).ser(se_DeregisterImageCommand).de(de_DeregisterImageCommand).build() {
      static {
        __name(this, "DeregisterImageCommand");
      }
      static {
        __name2(this, "DeregisterImageCommand");
      }
    };
    var DeregisterInstanceEventNotificationAttributesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeregisterInstanceEventNotificationAttributes", {}).n("EC2Client", "DeregisterInstanceEventNotificationAttributesCommand").f(void 0, void 0).ser(se_DeregisterInstanceEventNotificationAttributesCommand).de(de_DeregisterInstanceEventNotificationAttributesCommand).build() {
      static {
        __name(this, "DeregisterInstanceEventNotificationAttributesCommand");
      }
      static {
        __name2(this, "DeregisterInstanceEventNotificationAttributesCommand");
      }
    };
    var DeregisterTransitGatewayMulticastGroupMembersCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeregisterTransitGatewayMulticastGroupMembers", {}).n("EC2Client", "DeregisterTransitGatewayMulticastGroupMembersCommand").f(void 0, void 0).ser(se_DeregisterTransitGatewayMulticastGroupMembersCommand).de(de_DeregisterTransitGatewayMulticastGroupMembersCommand).build() {
      static {
        __name(this, "DeregisterTransitGatewayMulticastGroupMembersCommand");
      }
      static {
        __name2(this, "DeregisterTransitGatewayMulticastGroupMembersCommand");
      }
    };
    var DeregisterTransitGatewayMulticastGroupSourcesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DeregisterTransitGatewayMulticastGroupSources", {}).n("EC2Client", "DeregisterTransitGatewayMulticastGroupSourcesCommand").f(void 0, void 0).ser(se_DeregisterTransitGatewayMulticastGroupSourcesCommand).de(de_DeregisterTransitGatewayMulticastGroupSourcesCommand).build() {
      static {
        __name(this, "DeregisterTransitGatewayMulticastGroupSourcesCommand");
      }
      static {
        __name2(this, "DeregisterTransitGatewayMulticastGroupSourcesCommand");
      }
    };
    var DescribeAccountAttributesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeAccountAttributes", {}).n("EC2Client", "DescribeAccountAttributesCommand").f(void 0, void 0).ser(se_DescribeAccountAttributesCommand).de(de_DescribeAccountAttributesCommand).build() {
      static {
        __name(this, "DescribeAccountAttributesCommand");
      }
      static {
        __name2(this, "DescribeAccountAttributesCommand");
      }
    };
    var DescribeAddressesAttributeCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeAddressesAttribute", {}).n("EC2Client", "DescribeAddressesAttributeCommand").f(void 0, void 0).ser(se_DescribeAddressesAttributeCommand).de(de_DescribeAddressesAttributeCommand).build() {
      static {
        __name(this, "DescribeAddressesAttributeCommand");
      }
      static {
        __name2(this, "DescribeAddressesAttributeCommand");
      }
    };
    var DescribeAddressesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeAddresses", {}).n("EC2Client", "DescribeAddressesCommand").f(void 0, void 0).ser(se_DescribeAddressesCommand).de(de_DescribeAddressesCommand).build() {
      static {
        __name(this, "DescribeAddressesCommand");
      }
      static {
        __name2(this, "DescribeAddressesCommand");
      }
    };
    var DescribeAddressTransfersCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeAddressTransfers", {}).n("EC2Client", "DescribeAddressTransfersCommand").f(void 0, void 0).ser(se_DescribeAddressTransfersCommand).de(de_DescribeAddressTransfersCommand).build() {
      static {
        __name(this, "DescribeAddressTransfersCommand");
      }
      static {
        __name2(this, "DescribeAddressTransfersCommand");
      }
    };
    var DescribeAggregateIdFormatCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeAggregateIdFormat", {}).n("EC2Client", "DescribeAggregateIdFormatCommand").f(void 0, void 0).ser(se_DescribeAggregateIdFormatCommand).de(de_DescribeAggregateIdFormatCommand).build() {
      static {
        __name(this, "DescribeAggregateIdFormatCommand");
      }
      static {
        __name2(this, "DescribeAggregateIdFormatCommand");
      }
    };
    var DescribeAvailabilityZonesCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeAvailabilityZones", {}).n("EC2Client", "DescribeAvailabilityZonesCommand").f(void 0, void 0).ser(se_DescribeAvailabilityZonesCommand).de(de_DescribeAvailabilityZonesCommand).build() {
      static {
        __name(this, "DescribeAvailabilityZonesCommand");
      }
      static {
        __name2(this, "DescribeAvailabilityZonesCommand");
      }
    };
    var DescribeAwsNetworkPerformanceMetricSubscriptionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeAwsNetworkPerformanceMetricSubscriptions", {}).n("EC2Client", "DescribeAwsNetworkPerformanceMetricSubscriptionsCommand").f(void 0, void 0).ser(se_DescribeAwsNetworkPerformanceMetricSubscriptionsCommand).de(de_DescribeAwsNetworkPerformanceMetricSubscriptionsCommand).build() {
      static {
        __name(this, "DescribeAwsNetworkPerformanceMetricSubscriptionsCommand");
      }
      static {
        __name2(this, "DescribeAwsNetworkPerformanceMetricSubscriptionsCommand");
      }
    };
    var DescribeBundleTasksCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeBundleTasks", {}).n("EC2Client", "DescribeBundleTasksCommand").f(void 0, DescribeBundleTasksResultFilterSensitiveLog).ser(se_DescribeBundleTasksCommand).de(de_DescribeBundleTasksCommand).build() {
      static {
        __name(this, "DescribeBundleTasksCommand");
      }
      static {
        __name2(this, "DescribeBundleTasksCommand");
      }
    };
    var DescribeByoipCidrsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeByoipCidrs", {}).n("EC2Client", "DescribeByoipCidrsCommand").f(void 0, void 0).ser(se_DescribeByoipCidrsCommand).de(de_DescribeByoipCidrsCommand).build() {
      static {
        __name(this, "DescribeByoipCidrsCommand");
      }
      static {
        __name2(this, "DescribeByoipCidrsCommand");
      }
    };
    var DescribeCapacityBlockExtensionHistoryCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeCapacityBlockExtensionHistory", {}).n("EC2Client", "DescribeCapacityBlockExtensionHistoryCommand").f(void 0, void 0).ser(se_DescribeCapacityBlockExtensionHistoryCommand).de(de_DescribeCapacityBlockExtensionHistoryCommand).build() {
      static {
        __name(this, "DescribeCapacityBlockExtensionHistoryCommand");
      }
      static {
        __name2(this, "DescribeCapacityBlockExtensionHistoryCommand");
      }
    };
    var DescribeCapacityBlockExtensionOfferingsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeCapacityBlockExtensionOfferings", {}).n("EC2Client", "DescribeCapacityBlockExtensionOfferingsCommand").f(void 0, void 0).ser(se_DescribeCapacityBlockExtensionOfferingsCommand).de(de_DescribeCapacityBlockExtensionOfferingsCommand).build() {
      static {
        __name(this, "DescribeCapacityBlockExtensionOfferingsCommand");
      }
      static {
        __name2(this, "DescribeCapacityBlockExtensionOfferingsCommand");
      }
    };
    var DescribeCapacityBlockOfferingsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeCapacityBlockOfferings", {}).n("EC2Client", "DescribeCapacityBlockOfferingsCommand").f(void 0, void 0).ser(se_DescribeCapacityBlockOfferingsCommand).de(de_DescribeCapacityBlockOfferingsCommand).build() {
      static {
        __name(this, "DescribeCapacityBlockOfferingsCommand");
      }
      static {
        __name2(this, "DescribeCapacityBlockOfferingsCommand");
      }
    };
    var DescribeCapacityBlocksCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeCapacityBlocks", {}).n("EC2Client", "DescribeCapacityBlocksCommand").f(void 0, void 0).ser(se_DescribeCapacityBlocksCommand).de(de_DescribeCapacityBlocksCommand).build() {
      static {
        __name(this, "DescribeCapacityBlocksCommand");
      }
      static {
        __name2(this, "DescribeCapacityBlocksCommand");
      }
    };
    var DescribeCapacityBlockStatusCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeCapacityBlockStatus", {}).n("EC2Client", "DescribeCapacityBlockStatusCommand").f(void 0, void 0).ser(se_DescribeCapacityBlockStatusCommand).de(de_DescribeCapacityBlockStatusCommand).build() {
      static {
        __name(this, "DescribeCapacityBlockStatusCommand");
      }
      static {
        __name2(this, "DescribeCapacityBlockStatusCommand");
      }
    };
    var DescribeCapacityReservationBillingRequestsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeCapacityReservationBillingRequests", {}).n("EC2Client", "DescribeCapacityReservationBillingRequestsCommand").f(void 0, void 0).ser(se_DescribeCapacityReservationBillingRequestsCommand).de(de_DescribeCapacityReservationBillingRequestsCommand).build() {
      static {
        __name(this, "DescribeCapacityReservationBillingRequestsCommand");
      }
      static {
        __name2(this, "DescribeCapacityReservationBillingRequestsCommand");
      }
    };
    var DescribeCapacityReservationFleetsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeCapacityReservationFleets", {}).n("EC2Client", "DescribeCapacityReservationFleetsCommand").f(void 0, void 0).ser(se_DescribeCapacityReservationFleetsCommand).de(de_DescribeCapacityReservationFleetsCommand).build() {
      static {
        __name(this, "DescribeCapacityReservationFleetsCommand");
      }
      static {
        __name2(this, "DescribeCapacityReservationFleetsCommand");
      }
    };
    var DescribeCapacityReservationsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeCapacityReservations", {}).n("EC2Client", "DescribeCapacityReservationsCommand").f(void 0, void 0).ser(se_DescribeCapacityReservationsCommand).de(de_DescribeCapacityReservationsCommand).build() {
      static {
        __name(this, "DescribeCapacityReservationsCommand");
      }
      static {
        __name2(this, "DescribeCapacityReservationsCommand");
      }
    };
    var DescribeCarrierGatewaysCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeCarrierGateways", {}).n("EC2Client", "DescribeCarrierGatewaysCommand").f(void 0, void 0).ser(se_DescribeCarrierGatewaysCommand).de(de_DescribeCarrierGatewaysCommand).build() {
      static {
        __name(this, "DescribeCarrierGatewaysCommand");
      }
      static {
        __name2(this, "DescribeCarrierGatewaysCommand");
      }
    };
    var DescribeClassicLinkInstancesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeClassicLinkInstances", {}).n("EC2Client", "DescribeClassicLinkInstancesCommand").f(void 0, void 0).ser(se_DescribeClassicLinkInstancesCommand).de(de_DescribeClassicLinkInstancesCommand).build() {
      static {
        __name(this, "DescribeClassicLinkInstancesCommand");
      }
      static {
        __name2(this, "DescribeClassicLinkInstancesCommand");
      }
    };
    var DescribeClientVpnAuthorizationRulesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeClientVpnAuthorizationRules", {}).n("EC2Client", "DescribeClientVpnAuthorizationRulesCommand").f(void 0, void 0).ser(se_DescribeClientVpnAuthorizationRulesCommand).de(de_DescribeClientVpnAuthorizationRulesCommand).build() {
      static {
        __name(this, "DescribeClientVpnAuthorizationRulesCommand");
      }
      static {
        __name2(this, "DescribeClientVpnAuthorizationRulesCommand");
      }
    };
    var DescribeClientVpnConnectionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeClientVpnConnections", {}).n("EC2Client", "DescribeClientVpnConnectionsCommand").f(void 0, void 0).ser(se_DescribeClientVpnConnectionsCommand).de(de_DescribeClientVpnConnectionsCommand).build() {
      static {
        __name(this, "DescribeClientVpnConnectionsCommand");
      }
      static {
        __name2(this, "DescribeClientVpnConnectionsCommand");
      }
    };
    var DescribeClientVpnEndpointsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeClientVpnEndpoints", {}).n("EC2Client", "DescribeClientVpnEndpointsCommand").f(void 0, void 0).ser(se_DescribeClientVpnEndpointsCommand).de(de_DescribeClientVpnEndpointsCommand).build() {
      static {
        __name(this, "DescribeClientVpnEndpointsCommand");
      }
      static {
        __name2(this, "DescribeClientVpnEndpointsCommand");
      }
    };
    var DescribeClientVpnRoutesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeClientVpnRoutes", {}).n("EC2Client", "DescribeClientVpnRoutesCommand").f(void 0, void 0).ser(se_DescribeClientVpnRoutesCommand).de(de_DescribeClientVpnRoutesCommand).build() {
      static {
        __name(this, "DescribeClientVpnRoutesCommand");
      }
      static {
        __name2(this, "DescribeClientVpnRoutesCommand");
      }
    };
    var DescribeClientVpnTargetNetworksCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeClientVpnTargetNetworks", {}).n("EC2Client", "DescribeClientVpnTargetNetworksCommand").f(void 0, void 0).ser(se_DescribeClientVpnTargetNetworksCommand).de(de_DescribeClientVpnTargetNetworksCommand).build() {
      static {
        __name(this, "DescribeClientVpnTargetNetworksCommand");
      }
      static {
        __name2(this, "DescribeClientVpnTargetNetworksCommand");
      }
    };
    var DescribeCoipPoolsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeCoipPools", {}).n("EC2Client", "DescribeCoipPoolsCommand").f(void 0, void 0).ser(se_DescribeCoipPoolsCommand).de(de_DescribeCoipPoolsCommand).build() {
      static {
        __name(this, "DescribeCoipPoolsCommand");
      }
      static {
        __name2(this, "DescribeCoipPoolsCommand");
      }
    };
    var CapacityReservationBillingRequestStatus = {
      accepted: "accepted",
      cancelled: "cancelled",
      expired: "expired",
      pending: "pending",
      rejected: "rejected",
      revoked: "revoked"
    };
    var ClientVpnConnectionStatusCode = {
      active: "active",
      failed_to_terminate: "failed-to-terminate",
      terminated: "terminated",
      terminating: "terminating"
    };
    var AssociatedNetworkType = {
      vpc: "vpc"
    };
    var ClientVpnEndpointAttributeStatusCode = {
      applied: "applied",
      applying: "applying"
    };
    var VpnProtocol = {
      openvpn: "openvpn"
    };
    var ConversionTaskState = {
      active: "active",
      cancelled: "cancelled",
      cancelling: "cancelling",
      completed: "completed"
    };
    var ReportState = {
      cancelled: "cancelled",
      complete: "complete",
      error: "error",
      running: "running"
    };
    var ElasticGpuStatus = {
      Impaired: "IMPAIRED",
      Ok: "OK"
    };
    var ElasticGpuState = {
      Attached: "ATTACHED"
    };
    var FastLaunchResourceType = {
      SNAPSHOT: "snapshot"
    };
    var FastLaunchStateCode = {
      disabling: "disabling",
      disabling_failed: "disabling-failed",
      enabled: "enabled",
      enabled_failed: "enabled-failed",
      enabling: "enabling",
      enabling_failed: "enabling-failed"
    };
    var FastSnapshotRestoreStateCode = {
      disabled: "disabled",
      disabling: "disabling",
      enabled: "enabled",
      enabling: "enabling",
      optimizing: "optimizing"
    };
    var FleetEventType = {
      FLEET_CHANGE: "fleet-change",
      INSTANCE_CHANGE: "instance-change",
      SERVICE_ERROR: "service-error"
    };
    var FleetActivityStatus = {
      ERROR: "error",
      FULFILLED: "fulfilled",
      PENDING_FULFILLMENT: "pending_fulfillment",
      PENDING_TERMINATION: "pending_termination"
    };
    var FpgaImageAttributeName = {
      description: "description",
      loadPermission: "loadPermission",
      name: "name",
      productCodes: "productCodes"
    };
    var PermissionGroup = {
      all: "all"
    };
    var ProductCodeValues = {
      devpay: "devpay",
      marketplace: "marketplace"
    };
    var FpgaImageStateCode = {
      available: "available",
      failed: "failed",
      pending: "pending",
      unavailable: "unavailable"
    };
    var PaymentOption = {
      ALL_UPFRONT: "AllUpfront",
      NO_UPFRONT: "NoUpfront",
      PARTIAL_UPFRONT: "PartialUpfront"
    };
    var ReservationState = {
      ACTIVE: "active",
      PAYMENT_FAILED: "payment-failed",
      PAYMENT_PENDING: "payment-pending",
      RETIRED: "retired"
    };
    var ImageAttributeName = {
      blockDeviceMapping: "blockDeviceMapping",
      bootMode: "bootMode",
      deregistrationProtection: "deregistrationProtection",
      description: "description",
      imdsSupport: "imdsSupport",
      kernel: "kernel",
      lastLaunchedTime: "lastLaunchedTime",
      launchPermission: "launchPermission",
      productCodes: "productCodes",
      ramdisk: "ramdisk",
      sriovNetSupport: "sriovNetSupport",
      tpmSupport: "tpmSupport",
      uefiData: "uefiData"
    };
    var ImageReferenceResourceType = {
      EC2_INSTANCE: "ec2:Instance",
      EC2_LAUNCH_TEMPLATE: "ec2:LaunchTemplate",
      IMAGE_BUILDER_CONTAINER_RECIPE: "imagebuilder:ContainerRecipe",
      IMAGE_BUILDER_IMAGE_RECIPE: "imagebuilder:ImageRecipe",
      SSM_PARAMETER: "ssm:Parameter"
    };
    var ImageReferenceOptionName = {
      STATE_NAME: "state-name",
      VERSION_DEPTH: "version-depth"
    };
    var ArchitectureValues = {
      arm64: "arm64",
      arm64_mac: "arm64_mac",
      i386: "i386",
      x86_64: "x86_64",
      x86_64_mac: "x86_64_mac"
    };
    var BootModeValues = {
      legacy_bios: "legacy-bios",
      uefi: "uefi",
      uefi_preferred: "uefi-preferred"
    };
    var HypervisorType = {
      ovm: "ovm",
      xen: "xen"
    };
    var ImageTypeValues = {
      kernel: "kernel",
      machine: "machine",
      ramdisk: "ramdisk"
    };
    var ImdsSupportValues = {
      v2_0: "v2.0"
    };
    var DeviceType = {
      ebs: "ebs",
      instance_store: "instance-store"
    };
    var ImageState = {
      available: "available",
      deregistered: "deregistered",
      disabled: "disabled",
      error: "error",
      failed: "failed",
      invalid: "invalid",
      pending: "pending",
      transient: "transient"
    };
    var TpmSupportValues = {
      v2_0: "v2.0"
    };
    var VirtualizationType = {
      hvm: "hvm",
      paravirtual: "paravirtual"
    };
    var InstanceAttributeName = {
      blockDeviceMapping: "blockDeviceMapping",
      disableApiStop: "disableApiStop",
      disableApiTermination: "disableApiTermination",
      ebsOptimized: "ebsOptimized",
      enaSupport: "enaSupport",
      enclaveOptions: "enclaveOptions",
      groupSet: "groupSet",
      instanceInitiatedShutdownBehavior: "instanceInitiatedShutdownBehavior",
      instanceType: "instanceType",
      kernel: "kernel",
      productCodes: "productCodes",
      ramdisk: "ramdisk",
      rootDeviceName: "rootDeviceName",
      sourceDestCheck: "sourceDestCheck",
      sriovNetSupport: "sriovNetSupport",
      userData: "userData"
    };
    var InstanceStateName = {
      pending: "pending",
      running: "running",
      shutting_down: "shutting-down",
      stopped: "stopped",
      stopping: "stopping",
      terminated: "terminated"
    };
    var InstanceBootModeValues = {
      legacy_bios: "legacy-bios",
      uefi: "uefi"
    };
    var InstanceLifecycleType = {
      capacity_block: "capacity-block",
      scheduled: "scheduled",
      spot: "spot"
    };
    var InstanceAutoRecoveryState = {
      default: "default",
      disabled: "disabled"
    };
    var InstanceRebootMigrationState = {
      default: "default",
      disabled: "disabled"
    };
    var InstanceMetadataEndpointState = {
      disabled: "disabled",
      enabled: "enabled"
    };
    var InstanceMetadataProtocolState = {
      disabled: "disabled",
      enabled: "enabled"
    };
    var HttpTokensState = {
      optional: "optional",
      required: "required"
    };
    var InstanceMetadataTagsState = {
      disabled: "disabled",
      enabled: "enabled"
    };
    var InstanceMetadataOptionsState = {
      applied: "applied",
      pending: "pending"
    };
    var MonitoringState = {
      disabled: "disabled",
      disabling: "disabling",
      enabled: "enabled",
      pending: "pending"
    };
    var StatusName = {
      reachability: "reachability"
    };
    var StatusType = {
      failed: "failed",
      initializing: "initializing",
      insufficient_data: "insufficient-data",
      passed: "passed"
    };
    var SummaryStatus = {
      impaired: "impaired",
      initializing: "initializing",
      insufficient_data: "insufficient-data",
      not_applicable: "not-applicable",
      ok: "ok"
    };
    var EventCode = {
      instance_reboot: "instance-reboot",
      instance_retirement: "instance-retirement",
      instance_stop: "instance-stop",
      system_maintenance: "system-maintenance",
      system_reboot: "system-reboot"
    };
    var LocationType = {
      availability_zone: "availability-zone",
      availability_zone_id: "availability-zone-id",
      outpost: "outpost",
      region: "region"
    };
    var EbsOptimizedSupport = {
      default: "default",
      supported: "supported",
      unsupported: "unsupported"
    };
    var EbsEncryptionSupport = {
      supported: "supported",
      unsupported: "unsupported"
    };
    var EbsNvmeSupport = {
      REQUIRED: "required",
      SUPPORTED: "supported",
      UNSUPPORTED: "unsupported"
    };
    var InstanceTypeHypervisor = {
      NITRO: "nitro",
      XEN: "xen"
    };
    var DiskType = {
      hdd: "hdd",
      ssd: "ssd"
    };
    var InstanceStorageEncryptionSupport = {
      required: "required",
      unsupported: "unsupported"
    };
    var EphemeralNvmeSupport = {
      REQUIRED: "required",
      SUPPORTED: "supported",
      UNSUPPORTED: "unsupported"
    };
    var BandwidthWeightingType = {
      DEFAULT: "default",
      EBS_1: "ebs-1",
      VPC_1: "vpc-1"
    };
    var EnaSupport = {
      required: "required",
      supported: "supported",
      unsupported: "unsupported"
    };
    var FlexibleEnaQueuesSupport = {
      SUPPORTED: "supported",
      UNSUPPORTED: "unsupported"
    };
    var NitroEnclavesSupport = {
      SUPPORTED: "supported",
      UNSUPPORTED: "unsupported"
    };
    var DiskImageDescriptionFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.ImportManifestUrl && { ImportManifestUrl: import_smithy_client28.SENSITIVE_STRING }
    }), "DiskImageDescriptionFilterSensitiveLog");
    var ImportInstanceVolumeDetailItemFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Image && { Image: DiskImageDescriptionFilterSensitiveLog(obj.Image) }
    }), "ImportInstanceVolumeDetailItemFilterSensitiveLog");
    var ImportInstanceTaskDetailsFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Volumes && { Volumes: obj.Volumes.map((item) => ImportInstanceVolumeDetailItemFilterSensitiveLog(item)) }
    }), "ImportInstanceTaskDetailsFilterSensitiveLog");
    var ImportVolumeTaskDetailsFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Image && { Image: DiskImageDescriptionFilterSensitiveLog(obj.Image) }
    }), "ImportVolumeTaskDetailsFilterSensitiveLog");
    var ConversionTaskFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.ImportInstance && { ImportInstance: ImportInstanceTaskDetailsFilterSensitiveLog(obj.ImportInstance) },
      ...obj.ImportVolume && { ImportVolume: ImportVolumeTaskDetailsFilterSensitiveLog(obj.ImportVolume) }
    }), "ConversionTaskFilterSensitiveLog");
    var DescribeConversionTasksResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.ConversionTasks && {
        ConversionTasks: obj.ConversionTasks.map((item) => ConversionTaskFilterSensitiveLog(item))
      }
    }), "DescribeConversionTasksResultFilterSensitiveLog");
    var SnapshotDetailFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Url && { Url: import_smithy_client28.SENSITIVE_STRING }
    }), "SnapshotDetailFilterSensitiveLog");
    var ImportImageTaskFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.SnapshotDetails && {
        SnapshotDetails: obj.SnapshotDetails.map((item) => SnapshotDetailFilterSensitiveLog(item))
      }
    }), "ImportImageTaskFilterSensitiveLog");
    var DescribeImportImageTasksResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj
    }), "DescribeImportImageTasksResultFilterSensitiveLog");
    var SnapshotTaskDetailFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Url && { Url: import_smithy_client28.SENSITIVE_STRING }
    }), "SnapshotTaskDetailFilterSensitiveLog");
    var ImportSnapshotTaskFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.SnapshotTaskDetail && { SnapshotTaskDetail: SnapshotTaskDetailFilterSensitiveLog(obj.SnapshotTaskDetail) }
    }), "ImportSnapshotTaskFilterSensitiveLog");
    var DescribeImportSnapshotTasksResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.ImportSnapshotTasks && {
        ImportSnapshotTasks: obj.ImportSnapshotTasks.map((item) => ImportSnapshotTaskFilterSensitiveLog(item))
      }
    }), "DescribeImportSnapshotTasksResultFilterSensitiveLog");
    var DescribeConversionTasksCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeConversionTasks", {}).n("EC2Client", "DescribeConversionTasksCommand").f(void 0, DescribeConversionTasksResultFilterSensitiveLog).ser(se_DescribeConversionTasksCommand).de(de_DescribeConversionTasksCommand).build() {
      static {
        __name(this, "DescribeConversionTasksCommand");
      }
      static {
        __name2(this, "DescribeConversionTasksCommand");
      }
    };
    var DescribeCustomerGatewaysCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeCustomerGateways", {}).n("EC2Client", "DescribeCustomerGatewaysCommand").f(void 0, void 0).ser(se_DescribeCustomerGatewaysCommand).de(de_DescribeCustomerGatewaysCommand).build() {
      static {
        __name(this, "DescribeCustomerGatewaysCommand");
      }
      static {
        __name2(this, "DescribeCustomerGatewaysCommand");
      }
    };
    var DescribeDeclarativePoliciesReportsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeDeclarativePoliciesReports", {}).n("EC2Client", "DescribeDeclarativePoliciesReportsCommand").f(void 0, void 0).ser(se_DescribeDeclarativePoliciesReportsCommand).de(de_DescribeDeclarativePoliciesReportsCommand).build() {
      static {
        __name(this, "DescribeDeclarativePoliciesReportsCommand");
      }
      static {
        __name2(this, "DescribeDeclarativePoliciesReportsCommand");
      }
    };
    var DescribeDhcpOptionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeDhcpOptions", {}).n("EC2Client", "DescribeDhcpOptionsCommand").f(void 0, void 0).ser(se_DescribeDhcpOptionsCommand).de(de_DescribeDhcpOptionsCommand).build() {
      static {
        __name(this, "DescribeDhcpOptionsCommand");
      }
      static {
        __name2(this, "DescribeDhcpOptionsCommand");
      }
    };
    var DescribeEgressOnlyInternetGatewaysCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeEgressOnlyInternetGateways", {}).n("EC2Client", "DescribeEgressOnlyInternetGatewaysCommand").f(void 0, void 0).ser(se_DescribeEgressOnlyInternetGatewaysCommand).de(de_DescribeEgressOnlyInternetGatewaysCommand).build() {
      static {
        __name(this, "DescribeEgressOnlyInternetGatewaysCommand");
      }
      static {
        __name2(this, "DescribeEgressOnlyInternetGatewaysCommand");
      }
    };
    var DescribeElasticGpusCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeElasticGpus", {}).n("EC2Client", "DescribeElasticGpusCommand").f(void 0, void 0).ser(se_DescribeElasticGpusCommand).de(de_DescribeElasticGpusCommand).build() {
      static {
        __name(this, "DescribeElasticGpusCommand");
      }
      static {
        __name2(this, "DescribeElasticGpusCommand");
      }
    };
    var DescribeExportImageTasksCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeExportImageTasks", {}).n("EC2Client", "DescribeExportImageTasksCommand").f(void 0, void 0).ser(se_DescribeExportImageTasksCommand).de(de_DescribeExportImageTasksCommand).build() {
      static {
        __name(this, "DescribeExportImageTasksCommand");
      }
      static {
        __name2(this, "DescribeExportImageTasksCommand");
      }
    };
    var DescribeExportTasksCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeExportTasks", {}).n("EC2Client", "DescribeExportTasksCommand").f(void 0, void 0).ser(se_DescribeExportTasksCommand).de(de_DescribeExportTasksCommand).build() {
      static {
        __name(this, "DescribeExportTasksCommand");
      }
      static {
        __name2(this, "DescribeExportTasksCommand");
      }
    };
    var DescribeFastLaunchImagesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeFastLaunchImages", {}).n("EC2Client", "DescribeFastLaunchImagesCommand").f(void 0, void 0).ser(se_DescribeFastLaunchImagesCommand).de(de_DescribeFastLaunchImagesCommand).build() {
      static {
        __name(this, "DescribeFastLaunchImagesCommand");
      }
      static {
        __name2(this, "DescribeFastLaunchImagesCommand");
      }
    };
    var DescribeFastSnapshotRestoresCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeFastSnapshotRestores", {}).n("EC2Client", "DescribeFastSnapshotRestoresCommand").f(void 0, void 0).ser(se_DescribeFastSnapshotRestoresCommand).de(de_DescribeFastSnapshotRestoresCommand).build() {
      static {
        __name(this, "DescribeFastSnapshotRestoresCommand");
      }
      static {
        __name2(this, "DescribeFastSnapshotRestoresCommand");
      }
    };
    var DescribeFleetHistoryCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeFleetHistory", {}).n("EC2Client", "DescribeFleetHistoryCommand").f(void 0, void 0).ser(se_DescribeFleetHistoryCommand).de(de_DescribeFleetHistoryCommand).build() {
      static {
        __name(this, "DescribeFleetHistoryCommand");
      }
      static {
        __name2(this, "DescribeFleetHistoryCommand");
      }
    };
    var DescribeFleetInstancesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeFleetInstances", {}).n("EC2Client", "DescribeFleetInstancesCommand").f(void 0, void 0).ser(se_DescribeFleetInstancesCommand).de(de_DescribeFleetInstancesCommand).build() {
      static {
        __name(this, "DescribeFleetInstancesCommand");
      }
      static {
        __name2(this, "DescribeFleetInstancesCommand");
      }
    };
    var DescribeFleetsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeFleets", {}).n("EC2Client", "DescribeFleetsCommand").f(void 0, void 0).ser(se_DescribeFleetsCommand).de(de_DescribeFleetsCommand).build() {
      static {
        __name(this, "DescribeFleetsCommand");
      }
      static {
        __name2(this, "DescribeFleetsCommand");
      }
    };
    var DescribeFlowLogsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeFlowLogs", {}).n("EC2Client", "DescribeFlowLogsCommand").f(void 0, void 0).ser(se_DescribeFlowLogsCommand).de(de_DescribeFlowLogsCommand).build() {
      static {
        __name(this, "DescribeFlowLogsCommand");
      }
      static {
        __name2(this, "DescribeFlowLogsCommand");
      }
    };
    var DescribeFpgaImageAttributeCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeFpgaImageAttribute", {}).n("EC2Client", "DescribeFpgaImageAttributeCommand").f(void 0, void 0).ser(se_DescribeFpgaImageAttributeCommand).de(de_DescribeFpgaImageAttributeCommand).build() {
      static {
        __name(this, "DescribeFpgaImageAttributeCommand");
      }
      static {
        __name2(this, "DescribeFpgaImageAttributeCommand");
      }
    };
    var DescribeFpgaImagesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeFpgaImages", {}).n("EC2Client", "DescribeFpgaImagesCommand").f(void 0, void 0).ser(se_DescribeFpgaImagesCommand).de(de_DescribeFpgaImagesCommand).build() {
      static {
        __name(this, "DescribeFpgaImagesCommand");
      }
      static {
        __name2(this, "DescribeFpgaImagesCommand");
      }
    };
    var DescribeHostReservationOfferingsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeHostReservationOfferings", {}).n("EC2Client", "DescribeHostReservationOfferingsCommand").f(void 0, void 0).ser(se_DescribeHostReservationOfferingsCommand).de(de_DescribeHostReservationOfferingsCommand).build() {
      static {
        __name(this, "DescribeHostReservationOfferingsCommand");
      }
      static {
        __name2(this, "DescribeHostReservationOfferingsCommand");
      }
    };
    var DescribeHostReservationsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeHostReservations", {}).n("EC2Client", "DescribeHostReservationsCommand").f(void 0, void 0).ser(se_DescribeHostReservationsCommand).de(de_DescribeHostReservationsCommand).build() {
      static {
        __name(this, "DescribeHostReservationsCommand");
      }
      static {
        __name2(this, "DescribeHostReservationsCommand");
      }
    };
    var DescribeHostsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeHosts", {}).n("EC2Client", "DescribeHostsCommand").f(void 0, void 0).ser(se_DescribeHostsCommand).de(de_DescribeHostsCommand).build() {
      static {
        __name(this, "DescribeHostsCommand");
      }
      static {
        __name2(this, "DescribeHostsCommand");
      }
    };
    var DescribeIamInstanceProfileAssociationsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeIamInstanceProfileAssociations", {}).n("EC2Client", "DescribeIamInstanceProfileAssociationsCommand").f(void 0, void 0).ser(se_DescribeIamInstanceProfileAssociationsCommand).de(de_DescribeIamInstanceProfileAssociationsCommand).build() {
      static {
        __name(this, "DescribeIamInstanceProfileAssociationsCommand");
      }
      static {
        __name2(this, "DescribeIamInstanceProfileAssociationsCommand");
      }
    };
    var DescribeIdentityIdFormatCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeIdentityIdFormat", {}).n("EC2Client", "DescribeIdentityIdFormatCommand").f(void 0, void 0).ser(se_DescribeIdentityIdFormatCommand).de(de_DescribeIdentityIdFormatCommand).build() {
      static {
        __name(this, "DescribeIdentityIdFormatCommand");
      }
      static {
        __name2(this, "DescribeIdentityIdFormatCommand");
      }
    };
    var DescribeIdFormatCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeIdFormat", {}).n("EC2Client", "DescribeIdFormatCommand").f(void 0, void 0).ser(se_DescribeIdFormatCommand).de(de_DescribeIdFormatCommand).build() {
      static {
        __name(this, "DescribeIdFormatCommand");
      }
      static {
        __name2(this, "DescribeIdFormatCommand");
      }
    };
    var DescribeImageAttributeCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeImageAttribute", {}).n("EC2Client", "DescribeImageAttributeCommand").f(void 0, void 0).ser(se_DescribeImageAttributeCommand).de(de_DescribeImageAttributeCommand).build() {
      static {
        __name(this, "DescribeImageAttributeCommand");
      }
      static {
        __name2(this, "DescribeImageAttributeCommand");
      }
    };
    var DescribeImageReferencesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeImageReferences", {}).n("EC2Client", "DescribeImageReferencesCommand").f(void 0, void 0).ser(se_DescribeImageReferencesCommand).de(de_DescribeImageReferencesCommand).build() {
      static {
        __name(this, "DescribeImageReferencesCommand");
      }
      static {
        __name2(this, "DescribeImageReferencesCommand");
      }
    };
    var DescribeImagesCommand3 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeImages", {}).n("EC2Client", "DescribeImagesCommand").f(void 0, void 0).ser(se_DescribeImagesCommand).de(de_DescribeImagesCommand).build() {
      static {
        __name(this, "DescribeImagesCommand");
      }
      static {
        __name2(this, "DescribeImagesCommand");
      }
    };
    var DescribeImageUsageReportEntriesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeImageUsageReportEntries", {}).n("EC2Client", "DescribeImageUsageReportEntriesCommand").f(void 0, void 0).ser(se_DescribeImageUsageReportEntriesCommand).de(de_DescribeImageUsageReportEntriesCommand).build() {
      static {
        __name(this, "DescribeImageUsageReportEntriesCommand");
      }
      static {
        __name2(this, "DescribeImageUsageReportEntriesCommand");
      }
    };
    var DescribeImageUsageReportsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeImageUsageReports", {}).n("EC2Client", "DescribeImageUsageReportsCommand").f(void 0, void 0).ser(se_DescribeImageUsageReportsCommand).de(de_DescribeImageUsageReportsCommand).build() {
      static {
        __name(this, "DescribeImageUsageReportsCommand");
      }
      static {
        __name2(this, "DescribeImageUsageReportsCommand");
      }
    };
    var DescribeImportImageTasksCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeImportImageTasks", {}).n("EC2Client", "DescribeImportImageTasksCommand").f(void 0, DescribeImportImageTasksResultFilterSensitiveLog).ser(se_DescribeImportImageTasksCommand).de(de_DescribeImportImageTasksCommand).build() {
      static {
        __name(this, "DescribeImportImageTasksCommand");
      }
      static {
        __name2(this, "DescribeImportImageTasksCommand");
      }
    };
    var DescribeImportSnapshotTasksCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeImportSnapshotTasks", {}).n("EC2Client", "DescribeImportSnapshotTasksCommand").f(void 0, DescribeImportSnapshotTasksResultFilterSensitiveLog).ser(se_DescribeImportSnapshotTasksCommand).de(de_DescribeImportSnapshotTasksCommand).build() {
      static {
        __name(this, "DescribeImportSnapshotTasksCommand");
      }
      static {
        __name2(this, "DescribeImportSnapshotTasksCommand");
      }
    };
    var DescribeInstanceAttributeCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeInstanceAttribute", {}).n("EC2Client", "DescribeInstanceAttributeCommand").f(void 0, void 0).ser(se_DescribeInstanceAttributeCommand).de(de_DescribeInstanceAttributeCommand).build() {
      static {
        __name(this, "DescribeInstanceAttributeCommand");
      }
      static {
        __name2(this, "DescribeInstanceAttributeCommand");
      }
    };
    var DescribeInstanceConnectEndpointsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeInstanceConnectEndpoints", {}).n("EC2Client", "DescribeInstanceConnectEndpointsCommand").f(void 0, void 0).ser(se_DescribeInstanceConnectEndpointsCommand).de(de_DescribeInstanceConnectEndpointsCommand).build() {
      static {
        __name(this, "DescribeInstanceConnectEndpointsCommand");
      }
      static {
        __name2(this, "DescribeInstanceConnectEndpointsCommand");
      }
    };
    var DescribeInstanceCreditSpecificationsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeInstanceCreditSpecifications", {}).n("EC2Client", "DescribeInstanceCreditSpecificationsCommand").f(void 0, void 0).ser(se_DescribeInstanceCreditSpecificationsCommand).de(de_DescribeInstanceCreditSpecificationsCommand).build() {
      static {
        __name(this, "DescribeInstanceCreditSpecificationsCommand");
      }
      static {
        __name2(this, "DescribeInstanceCreditSpecificationsCommand");
      }
    };
    var DescribeInstanceEventNotificationAttributesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeInstanceEventNotificationAttributes", {}).n("EC2Client", "DescribeInstanceEventNotificationAttributesCommand").f(void 0, void 0).ser(se_DescribeInstanceEventNotificationAttributesCommand).de(de_DescribeInstanceEventNotificationAttributesCommand).build() {
      static {
        __name(this, "DescribeInstanceEventNotificationAttributesCommand");
      }
      static {
        __name2(this, "DescribeInstanceEventNotificationAttributesCommand");
      }
    };
    var DescribeInstanceEventWindowsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeInstanceEventWindows", {}).n("EC2Client", "DescribeInstanceEventWindowsCommand").f(void 0, void 0).ser(se_DescribeInstanceEventWindowsCommand).de(de_DescribeInstanceEventWindowsCommand).build() {
      static {
        __name(this, "DescribeInstanceEventWindowsCommand");
      }
      static {
        __name2(this, "DescribeInstanceEventWindowsCommand");
      }
    };
    var DescribeInstanceImageMetadataCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeInstanceImageMetadata", {}).n("EC2Client", "DescribeInstanceImageMetadataCommand").f(void 0, void 0).ser(se_DescribeInstanceImageMetadataCommand).de(de_DescribeInstanceImageMetadataCommand).build() {
      static {
        __name(this, "DescribeInstanceImageMetadataCommand");
      }
      static {
        __name2(this, "DescribeInstanceImageMetadataCommand");
      }
    };
    var DescribeInstancesCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeInstances", {}).n("EC2Client", "DescribeInstancesCommand").f(void 0, void 0).ser(se_DescribeInstancesCommand).de(de_DescribeInstancesCommand).build() {
      static {
        __name(this, "DescribeInstancesCommand");
      }
      static {
        __name2(this, "DescribeInstancesCommand");
      }
    };
    var DescribeInstanceStatusCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeInstanceStatus", {}).n("EC2Client", "DescribeInstanceStatusCommand").f(void 0, void 0).ser(se_DescribeInstanceStatusCommand).de(de_DescribeInstanceStatusCommand).build() {
      static {
        __name(this, "DescribeInstanceStatusCommand");
      }
      static {
        __name2(this, "DescribeInstanceStatusCommand");
      }
    };
    var DescribeInstanceTopologyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeInstanceTopology", {}).n("EC2Client", "DescribeInstanceTopologyCommand").f(void 0, void 0).ser(se_DescribeInstanceTopologyCommand).de(de_DescribeInstanceTopologyCommand).build() {
      static {
        __name(this, "DescribeInstanceTopologyCommand");
      }
      static {
        __name2(this, "DescribeInstanceTopologyCommand");
      }
    };
    var DescribeInstanceTypeOfferingsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeInstanceTypeOfferings", {}).n("EC2Client", "DescribeInstanceTypeOfferingsCommand").f(void 0, void 0).ser(se_DescribeInstanceTypeOfferingsCommand).de(de_DescribeInstanceTypeOfferingsCommand).build() {
      static {
        __name(this, "DescribeInstanceTypeOfferingsCommand");
      }
      static {
        __name2(this, "DescribeInstanceTypeOfferingsCommand");
      }
    };
    var DescribeInstanceTypesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeInstanceTypes", {}).n("EC2Client", "DescribeInstanceTypesCommand").f(void 0, void 0).ser(se_DescribeInstanceTypesCommand).de(de_DescribeInstanceTypesCommand).build() {
      static {
        __name(this, "DescribeInstanceTypesCommand");
      }
      static {
        __name2(this, "DescribeInstanceTypesCommand");
      }
    };
    var DescribeInternetGatewaysCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeInternetGateways", {}).n("EC2Client", "DescribeInternetGatewaysCommand").f(void 0, void 0).ser(se_DescribeInternetGatewaysCommand).de(de_DescribeInternetGatewaysCommand).build() {
      static {
        __name(this, "DescribeInternetGatewaysCommand");
      }
      static {
        __name2(this, "DescribeInternetGatewaysCommand");
      }
    };
    var DescribeIpamByoasnCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeIpamByoasn", {}).n("EC2Client", "DescribeIpamByoasnCommand").f(void 0, void 0).ser(se_DescribeIpamByoasnCommand).de(de_DescribeIpamByoasnCommand).build() {
      static {
        __name(this, "DescribeIpamByoasnCommand");
      }
      static {
        __name2(this, "DescribeIpamByoasnCommand");
      }
    };
    var DescribeIpamExternalResourceVerificationTokensCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeIpamExternalResourceVerificationTokens", {}).n("EC2Client", "DescribeIpamExternalResourceVerificationTokensCommand").f(void 0, void 0).ser(se_DescribeIpamExternalResourceVerificationTokensCommand).de(de_DescribeIpamExternalResourceVerificationTokensCommand).build() {
      static {
        __name(this, "DescribeIpamExternalResourceVerificationTokensCommand");
      }
      static {
        __name2(this, "DescribeIpamExternalResourceVerificationTokensCommand");
      }
    };
    var DescribeIpamPoolsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeIpamPools", {}).n("EC2Client", "DescribeIpamPoolsCommand").f(void 0, void 0).ser(se_DescribeIpamPoolsCommand).de(de_DescribeIpamPoolsCommand).build() {
      static {
        __name(this, "DescribeIpamPoolsCommand");
      }
      static {
        __name2(this, "DescribeIpamPoolsCommand");
      }
    };
    var DescribeIpamResourceDiscoveriesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeIpamResourceDiscoveries", {}).n("EC2Client", "DescribeIpamResourceDiscoveriesCommand").f(void 0, void 0).ser(se_DescribeIpamResourceDiscoveriesCommand).de(de_DescribeIpamResourceDiscoveriesCommand).build() {
      static {
        __name(this, "DescribeIpamResourceDiscoveriesCommand");
      }
      static {
        __name2(this, "DescribeIpamResourceDiscoveriesCommand");
      }
    };
    var DescribeIpamResourceDiscoveryAssociationsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeIpamResourceDiscoveryAssociations", {}).n("EC2Client", "DescribeIpamResourceDiscoveryAssociationsCommand").f(void 0, void 0).ser(se_DescribeIpamResourceDiscoveryAssociationsCommand).de(de_DescribeIpamResourceDiscoveryAssociationsCommand).build() {
      static {
        __name(this, "DescribeIpamResourceDiscoveryAssociationsCommand");
      }
      static {
        __name2(this, "DescribeIpamResourceDiscoveryAssociationsCommand");
      }
    };
    var DescribeIpamsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeIpams", {}).n("EC2Client", "DescribeIpamsCommand").f(void 0, void 0).ser(se_DescribeIpamsCommand).de(de_DescribeIpamsCommand).build() {
      static {
        __name(this, "DescribeIpamsCommand");
      }
      static {
        __name2(this, "DescribeIpamsCommand");
      }
    };
    var DescribeIpamScopesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeIpamScopes", {}).n("EC2Client", "DescribeIpamScopesCommand").f(void 0, void 0).ser(se_DescribeIpamScopesCommand).de(de_DescribeIpamScopesCommand).build() {
      static {
        __name(this, "DescribeIpamScopesCommand");
      }
      static {
        __name2(this, "DescribeIpamScopesCommand");
      }
    };
    var DescribeIpv6PoolsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeIpv6Pools", {}).n("EC2Client", "DescribeIpv6PoolsCommand").f(void 0, void 0).ser(se_DescribeIpv6PoolsCommand).de(de_DescribeIpv6PoolsCommand).build() {
      static {
        __name(this, "DescribeIpv6PoolsCommand");
      }
      static {
        __name2(this, "DescribeIpv6PoolsCommand");
      }
    };
    var DescribeKeyPairsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeKeyPairs", {}).n("EC2Client", "DescribeKeyPairsCommand").f(void 0, void 0).ser(se_DescribeKeyPairsCommand).de(de_DescribeKeyPairsCommand).build() {
      static {
        __name(this, "DescribeKeyPairsCommand");
      }
      static {
        __name2(this, "DescribeKeyPairsCommand");
      }
    };
    var DescribeLaunchTemplatesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeLaunchTemplates", {}).n("EC2Client", "DescribeLaunchTemplatesCommand").f(void 0, void 0).ser(se_DescribeLaunchTemplatesCommand).de(de_DescribeLaunchTemplatesCommand).build() {
      static {
        __name(this, "DescribeLaunchTemplatesCommand");
      }
      static {
        __name2(this, "DescribeLaunchTemplatesCommand");
      }
    };
    var NitroTpmSupport = {
      SUPPORTED: "supported",
      UNSUPPORTED: "unsupported"
    };
    var PhcSupport = {
      SUPPORTED: "supported",
      UNSUPPORTED: "unsupported"
    };
    var PlacementGroupStrategy = {
      cluster: "cluster",
      partition: "partition",
      spread: "spread"
    };
    var ArchitectureType = {
      arm64: "arm64",
      arm64_mac: "arm64_mac",
      i386: "i386",
      x86_64: "x86_64",
      x86_64_mac: "x86_64_mac"
    };
    var SupportedAdditionalProcessorFeature = {
      AMD_SEV_SNP: "amd-sev-snp"
    };
    var RebootMigrationSupport = {
      SUPPORTED: "supported",
      UNSUPPORTED: "unsupported"
    };
    var BootModeType = {
      legacy_bios: "legacy-bios",
      uefi: "uefi"
    };
    var RootDeviceType = {
      ebs: "ebs",
      instance_store: "instance-store"
    };
    var UsageClassType = {
      capacity_block: "capacity-block",
      on_demand: "on-demand",
      spot: "spot"
    };
    var LockState = {
      compliance: "compliance",
      compliance_cooloff: "compliance-cooloff",
      expired: "expired",
      governance: "governance"
    };
    var MoveStatus = {
      movingToVpc: "movingToVpc",
      restoringToClassic: "restoringToClassic"
    };
    var FindingsFound = {
      false: "false",
      true: "true",
      unknown: "unknown"
    };
    var AnalysisStatus = {
      failed: "failed",
      running: "running",
      succeeded: "succeeded"
    };
    var NetworkInterfaceAttribute = {
      associatePublicIpAddress: "associatePublicIpAddress",
      attachment: "attachment",
      description: "description",
      groupSet: "groupSet",
      sourceDestCheck: "sourceDestCheck"
    };
    var OfferingClassType = {
      CONVERTIBLE: "convertible",
      STANDARD: "standard"
    };
    var OfferingTypeValues = {
      All_Upfront: "All Upfront",
      Heavy_Utilization: "Heavy Utilization",
      Light_Utilization: "Light Utilization",
      Medium_Utilization: "Medium Utilization",
      No_Upfront: "No Upfront",
      Partial_Upfront: "Partial Upfront"
    };
    var RIProductDescription = {
      Linux_UNIX: "Linux/UNIX",
      Linux_UNIX_Amazon_VPC_: "Linux/UNIX (Amazon VPC)",
      Windows: "Windows",
      Windows_Amazon_VPC_: "Windows (Amazon VPC)"
    };
    var RecurringChargeFrequency = {
      Hourly: "Hourly"
    };
    var Scope = {
      AVAILABILITY_ZONE: "Availability Zone",
      REGIONAL: "Region"
    };
    var ReservedInstanceState = {
      active: "active",
      payment_failed: "payment-failed",
      payment_pending: "payment-pending",
      queued: "queued",
      queued_deleted: "queued-deleted",
      retired: "retired"
    };
    var ServiceLinkVirtualInterfaceConfigurationState = {
      available: "available",
      deleted: "deleted",
      deleting: "deleting",
      pending: "pending"
    };
    var SnapshotAttributeName = {
      createVolumePermission: "createVolumePermission",
      productCodes: "productCodes"
    };
    var TieringOperationStatus = {
      archival_completed: "archival-completed",
      archival_failed: "archival-failed",
      archival_in_progress: "archival-in-progress",
      permanent_restore_completed: "permanent-restore-completed",
      permanent_restore_failed: "permanent-restore-failed",
      permanent_restore_in_progress: "permanent-restore-in-progress",
      temporary_restore_completed: "temporary-restore-completed",
      temporary_restore_failed: "temporary-restore-failed",
      temporary_restore_in_progress: "temporary-restore-in-progress"
    };
    var EventType2 = {
      BATCH_CHANGE: "fleetRequestChange",
      ERROR: "error",
      INFORMATION: "information",
      INSTANCE_CHANGE: "instanceChange"
    };
    var ExcessCapacityTerminationPolicy = {
      DEFAULT: "default",
      NO_TERMINATION: "noTermination"
    };
    var OnDemandAllocationStrategy = {
      LOWEST_PRICE: "lowestPrice",
      PRIORITIZED: "prioritized"
    };
    var ReplacementStrategy = {
      LAUNCH: "launch",
      LAUNCH_BEFORE_TERMINATE: "launch-before-terminate"
    };
    var SpotInstanceState = {
      active: "active",
      cancelled: "cancelled",
      closed: "closed",
      disabled: "disabled",
      failed: "failed",
      open: "open"
    };
    var VerifiedAccessLogDeliveryStatusCode = {
      FAILED: "failed",
      SUCCESS: "success"
    };
    var VolumeAttributeName = {
      autoEnableIO: "autoEnableIO",
      productCodes: "productCodes"
    };
    var VolumeModificationState = {
      completed: "completed",
      failed: "failed",
      modifying: "modifying",
      optimizing: "optimizing"
    };
    var InitializationType = {
      default: "default",
      provisioned_rate: "provisioned-rate"
    };
    var VolumeStatusName = {
      initialization_state: "initialization-state",
      io_enabled: "io-enabled",
      io_performance: "io-performance"
    };
    var VolumeStatusInfoStatus = {
      impaired: "impaired",
      insufficient_data: "insufficient-data",
      ok: "ok",
      warning: "warning"
    };
    var VpcAttributeName = {
      enableDnsHostnames: "enableDnsHostnames",
      enableDnsSupport: "enableDnsSupport",
      enableNetworkAddressUsageMetrics: "enableNetworkAddressUsageMetrics"
    };
    var DescribeLaunchTemplateVersionsResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.LaunchTemplateVersions && {
        LaunchTemplateVersions: obj.LaunchTemplateVersions.map((item) => LaunchTemplateVersionFilterSensitiveLog(item))
      }
    }), "DescribeLaunchTemplateVersionsResultFilterSensitiveLog");
    var SpotFleetLaunchSpecificationFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.UserData && { UserData: import_smithy_client28.SENSITIVE_STRING }
    }), "SpotFleetLaunchSpecificationFilterSensitiveLog");
    var SpotFleetRequestConfigDataFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.LaunchSpecifications && {
        LaunchSpecifications: obj.LaunchSpecifications.map((item) => SpotFleetLaunchSpecificationFilterSensitiveLog(item))
      }
    }), "SpotFleetRequestConfigDataFilterSensitiveLog");
    var SpotFleetRequestConfigFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.SpotFleetRequestConfig && {
        SpotFleetRequestConfig: SpotFleetRequestConfigDataFilterSensitiveLog(obj.SpotFleetRequestConfig)
      }
    }), "SpotFleetRequestConfigFilterSensitiveLog");
    var DescribeSpotFleetRequestsResponseFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj
    }), "DescribeSpotFleetRequestsResponseFilterSensitiveLog");
    var LaunchSpecificationFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.UserData && { UserData: import_smithy_client28.SENSITIVE_STRING }
    }), "LaunchSpecificationFilterSensitiveLog");
    var SpotInstanceRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.LaunchSpecification && {
        LaunchSpecification: LaunchSpecificationFilterSensitiveLog(obj.LaunchSpecification)
      }
    }), "SpotInstanceRequestFilterSensitiveLog");
    var DescribeSpotInstanceRequestsResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.SpotInstanceRequests && {
        SpotInstanceRequests: obj.SpotInstanceRequests.map((item) => SpotInstanceRequestFilterSensitiveLog(item))
      }
    }), "DescribeSpotInstanceRequestsResultFilterSensitiveLog");
    var DescribeVerifiedAccessTrustProvidersResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.VerifiedAccessTrustProviders && {
        VerifiedAccessTrustProviders: obj.VerifiedAccessTrustProviders.map(
          (item) => VerifiedAccessTrustProviderFilterSensitiveLog(item)
        )
      }
    }), "DescribeVerifiedAccessTrustProvidersResultFilterSensitiveLog");
    var DescribeLaunchTemplateVersionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeLaunchTemplateVersions", {}).n("EC2Client", "DescribeLaunchTemplateVersionsCommand").f(void 0, DescribeLaunchTemplateVersionsResultFilterSensitiveLog).ser(se_DescribeLaunchTemplateVersionsCommand).de(de_DescribeLaunchTemplateVersionsCommand).build() {
      static {
        __name(this, "DescribeLaunchTemplateVersionsCommand");
      }
      static {
        __name2(this, "DescribeLaunchTemplateVersionsCommand");
      }
    };
    var DescribeLocalGatewayRouteTablesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeLocalGatewayRouteTables", {}).n("EC2Client", "DescribeLocalGatewayRouteTablesCommand").f(void 0, void 0).ser(se_DescribeLocalGatewayRouteTablesCommand).de(de_DescribeLocalGatewayRouteTablesCommand).build() {
      static {
        __name(this, "DescribeLocalGatewayRouteTablesCommand");
      }
      static {
        __name2(this, "DescribeLocalGatewayRouteTablesCommand");
      }
    };
    var DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations", {}).n("EC2Client", "DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsCommand").f(void 0, void 0).ser(se_DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsCommand).de(de_DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsCommand).build() {
      static {
        __name(this, "DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsCommand");
      }
      static {
        __name2(this, "DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsCommand");
      }
    };
    var DescribeLocalGatewayRouteTableVpcAssociationsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeLocalGatewayRouteTableVpcAssociations", {}).n("EC2Client", "DescribeLocalGatewayRouteTableVpcAssociationsCommand").f(void 0, void 0).ser(se_DescribeLocalGatewayRouteTableVpcAssociationsCommand).de(de_DescribeLocalGatewayRouteTableVpcAssociationsCommand).build() {
      static {
        __name(this, "DescribeLocalGatewayRouteTableVpcAssociationsCommand");
      }
      static {
        __name2(this, "DescribeLocalGatewayRouteTableVpcAssociationsCommand");
      }
    };
    var DescribeLocalGatewaysCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeLocalGateways", {}).n("EC2Client", "DescribeLocalGatewaysCommand").f(void 0, void 0).ser(se_DescribeLocalGatewaysCommand).de(de_DescribeLocalGatewaysCommand).build() {
      static {
        __name(this, "DescribeLocalGatewaysCommand");
      }
      static {
        __name2(this, "DescribeLocalGatewaysCommand");
      }
    };
    var DescribeLocalGatewayVirtualInterfaceGroupsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeLocalGatewayVirtualInterfaceGroups", {}).n("EC2Client", "DescribeLocalGatewayVirtualInterfaceGroupsCommand").f(void 0, void 0).ser(se_DescribeLocalGatewayVirtualInterfaceGroupsCommand).de(de_DescribeLocalGatewayVirtualInterfaceGroupsCommand).build() {
      static {
        __name(this, "DescribeLocalGatewayVirtualInterfaceGroupsCommand");
      }
      static {
        __name2(this, "DescribeLocalGatewayVirtualInterfaceGroupsCommand");
      }
    };
    var DescribeLocalGatewayVirtualInterfacesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeLocalGatewayVirtualInterfaces", {}).n("EC2Client", "DescribeLocalGatewayVirtualInterfacesCommand").f(void 0, void 0).ser(se_DescribeLocalGatewayVirtualInterfacesCommand).de(de_DescribeLocalGatewayVirtualInterfacesCommand).build() {
      static {
        __name(this, "DescribeLocalGatewayVirtualInterfacesCommand");
      }
      static {
        __name2(this, "DescribeLocalGatewayVirtualInterfacesCommand");
      }
    };
    var DescribeLockedSnapshotsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeLockedSnapshots", {}).n("EC2Client", "DescribeLockedSnapshotsCommand").f(void 0, void 0).ser(se_DescribeLockedSnapshotsCommand).de(de_DescribeLockedSnapshotsCommand).build() {
      static {
        __name(this, "DescribeLockedSnapshotsCommand");
      }
      static {
        __name2(this, "DescribeLockedSnapshotsCommand");
      }
    };
    var DescribeMacHostsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeMacHosts", {}).n("EC2Client", "DescribeMacHostsCommand").f(void 0, void 0).ser(se_DescribeMacHostsCommand).de(de_DescribeMacHostsCommand).build() {
      static {
        __name(this, "DescribeMacHostsCommand");
      }
      static {
        __name2(this, "DescribeMacHostsCommand");
      }
    };
    var DescribeMacModificationTasksCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeMacModificationTasks", {}).n("EC2Client", "DescribeMacModificationTasksCommand").f(void 0, void 0).ser(se_DescribeMacModificationTasksCommand).de(de_DescribeMacModificationTasksCommand).build() {
      static {
        __name(this, "DescribeMacModificationTasksCommand");
      }
      static {
        __name2(this, "DescribeMacModificationTasksCommand");
      }
    };
    var DescribeManagedPrefixListsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeManagedPrefixLists", {}).n("EC2Client", "DescribeManagedPrefixListsCommand").f(void 0, void 0).ser(se_DescribeManagedPrefixListsCommand).de(de_DescribeManagedPrefixListsCommand).build() {
      static {
        __name(this, "DescribeManagedPrefixListsCommand");
      }
      static {
        __name2(this, "DescribeManagedPrefixListsCommand");
      }
    };
    var DescribeMovingAddressesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeMovingAddresses", {}).n("EC2Client", "DescribeMovingAddressesCommand").f(void 0, void 0).ser(se_DescribeMovingAddressesCommand).de(de_DescribeMovingAddressesCommand).build() {
      static {
        __name(this, "DescribeMovingAddressesCommand");
      }
      static {
        __name2(this, "DescribeMovingAddressesCommand");
      }
    };
    var DescribeNatGatewaysCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeNatGateways", {}).n("EC2Client", "DescribeNatGatewaysCommand").f(void 0, void 0).ser(se_DescribeNatGatewaysCommand).de(de_DescribeNatGatewaysCommand).build() {
      static {
        __name(this, "DescribeNatGatewaysCommand");
      }
      static {
        __name2(this, "DescribeNatGatewaysCommand");
      }
    };
    var DescribeNetworkAclsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeNetworkAcls", {}).n("EC2Client", "DescribeNetworkAclsCommand").f(void 0, void 0).ser(se_DescribeNetworkAclsCommand).de(de_DescribeNetworkAclsCommand).build() {
      static {
        __name(this, "DescribeNetworkAclsCommand");
      }
      static {
        __name2(this, "DescribeNetworkAclsCommand");
      }
    };
    var DescribeNetworkInsightsAccessScopeAnalysesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeNetworkInsightsAccessScopeAnalyses", {}).n("EC2Client", "DescribeNetworkInsightsAccessScopeAnalysesCommand").f(void 0, void 0).ser(se_DescribeNetworkInsightsAccessScopeAnalysesCommand).de(de_DescribeNetworkInsightsAccessScopeAnalysesCommand).build() {
      static {
        __name(this, "DescribeNetworkInsightsAccessScopeAnalysesCommand");
      }
      static {
        __name2(this, "DescribeNetworkInsightsAccessScopeAnalysesCommand");
      }
    };
    var DescribeNetworkInsightsAccessScopesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeNetworkInsightsAccessScopes", {}).n("EC2Client", "DescribeNetworkInsightsAccessScopesCommand").f(void 0, void 0).ser(se_DescribeNetworkInsightsAccessScopesCommand).de(de_DescribeNetworkInsightsAccessScopesCommand).build() {
      static {
        __name(this, "DescribeNetworkInsightsAccessScopesCommand");
      }
      static {
        __name2(this, "DescribeNetworkInsightsAccessScopesCommand");
      }
    };
    var DescribeNetworkInsightsAnalysesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeNetworkInsightsAnalyses", {}).n("EC2Client", "DescribeNetworkInsightsAnalysesCommand").f(void 0, void 0).ser(se_DescribeNetworkInsightsAnalysesCommand).de(de_DescribeNetworkInsightsAnalysesCommand).build() {
      static {
        __name(this, "DescribeNetworkInsightsAnalysesCommand");
      }
      static {
        __name2(this, "DescribeNetworkInsightsAnalysesCommand");
      }
    };
    var DescribeNetworkInsightsPathsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeNetworkInsightsPaths", {}).n("EC2Client", "DescribeNetworkInsightsPathsCommand").f(void 0, void 0).ser(se_DescribeNetworkInsightsPathsCommand).de(de_DescribeNetworkInsightsPathsCommand).build() {
      static {
        __name(this, "DescribeNetworkInsightsPathsCommand");
      }
      static {
        __name2(this, "DescribeNetworkInsightsPathsCommand");
      }
    };
    var DescribeNetworkInterfaceAttributeCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeNetworkInterfaceAttribute", {}).n("EC2Client", "DescribeNetworkInterfaceAttributeCommand").f(void 0, void 0).ser(se_DescribeNetworkInterfaceAttributeCommand).de(de_DescribeNetworkInterfaceAttributeCommand).build() {
      static {
        __name(this, "DescribeNetworkInterfaceAttributeCommand");
      }
      static {
        __name2(this, "DescribeNetworkInterfaceAttributeCommand");
      }
    };
    var DescribeNetworkInterfacePermissionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeNetworkInterfacePermissions", {}).n("EC2Client", "DescribeNetworkInterfacePermissionsCommand").f(void 0, void 0).ser(se_DescribeNetworkInterfacePermissionsCommand).de(de_DescribeNetworkInterfacePermissionsCommand).build() {
      static {
        __name(this, "DescribeNetworkInterfacePermissionsCommand");
      }
      static {
        __name2(this, "DescribeNetworkInterfacePermissionsCommand");
      }
    };
    var DescribeNetworkInterfacesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeNetworkInterfaces", {}).n("EC2Client", "DescribeNetworkInterfacesCommand").f(void 0, void 0).ser(se_DescribeNetworkInterfacesCommand).de(de_DescribeNetworkInterfacesCommand).build() {
      static {
        __name(this, "DescribeNetworkInterfacesCommand");
      }
      static {
        __name2(this, "DescribeNetworkInterfacesCommand");
      }
    };
    var DescribeOutpostLagsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeOutpostLags", {}).n("EC2Client", "DescribeOutpostLagsCommand").f(void 0, void 0).ser(se_DescribeOutpostLagsCommand).de(de_DescribeOutpostLagsCommand).build() {
      static {
        __name(this, "DescribeOutpostLagsCommand");
      }
      static {
        __name2(this, "DescribeOutpostLagsCommand");
      }
    };
    var DescribePlacementGroupsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribePlacementGroups", {}).n("EC2Client", "DescribePlacementGroupsCommand").f(void 0, void 0).ser(se_DescribePlacementGroupsCommand).de(de_DescribePlacementGroupsCommand).build() {
      static {
        __name(this, "DescribePlacementGroupsCommand");
      }
      static {
        __name2(this, "DescribePlacementGroupsCommand");
      }
    };
    var DescribePrefixListsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribePrefixLists", {}).n("EC2Client", "DescribePrefixListsCommand").f(void 0, void 0).ser(se_DescribePrefixListsCommand).de(de_DescribePrefixListsCommand).build() {
      static {
        __name(this, "DescribePrefixListsCommand");
      }
      static {
        __name2(this, "DescribePrefixListsCommand");
      }
    };
    var DescribePrincipalIdFormatCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribePrincipalIdFormat", {}).n("EC2Client", "DescribePrincipalIdFormatCommand").f(void 0, void 0).ser(se_DescribePrincipalIdFormatCommand).de(de_DescribePrincipalIdFormatCommand).build() {
      static {
        __name(this, "DescribePrincipalIdFormatCommand");
      }
      static {
        __name2(this, "DescribePrincipalIdFormatCommand");
      }
    };
    var DescribePublicIpv4PoolsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribePublicIpv4Pools", {}).n("EC2Client", "DescribePublicIpv4PoolsCommand").f(void 0, void 0).ser(se_DescribePublicIpv4PoolsCommand).de(de_DescribePublicIpv4PoolsCommand).build() {
      static {
        __name(this, "DescribePublicIpv4PoolsCommand");
      }
      static {
        __name2(this, "DescribePublicIpv4PoolsCommand");
      }
    };
    var DescribeRegionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeRegions", {}).n("EC2Client", "DescribeRegionsCommand").f(void 0, void 0).ser(se_DescribeRegionsCommand).de(de_DescribeRegionsCommand).build() {
      static {
        __name(this, "DescribeRegionsCommand");
      }
      static {
        __name2(this, "DescribeRegionsCommand");
      }
    };
    var DescribeReplaceRootVolumeTasksCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeReplaceRootVolumeTasks", {}).n("EC2Client", "DescribeReplaceRootVolumeTasksCommand").f(void 0, void 0).ser(se_DescribeReplaceRootVolumeTasksCommand).de(de_DescribeReplaceRootVolumeTasksCommand).build() {
      static {
        __name(this, "DescribeReplaceRootVolumeTasksCommand");
      }
      static {
        __name2(this, "DescribeReplaceRootVolumeTasksCommand");
      }
    };
    var DescribeReservedInstancesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeReservedInstances", {}).n("EC2Client", "DescribeReservedInstancesCommand").f(void 0, void 0).ser(se_DescribeReservedInstancesCommand).de(de_DescribeReservedInstancesCommand).build() {
      static {
        __name(this, "DescribeReservedInstancesCommand");
      }
      static {
        __name2(this, "DescribeReservedInstancesCommand");
      }
    };
    var DescribeReservedInstancesListingsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeReservedInstancesListings", {}).n("EC2Client", "DescribeReservedInstancesListingsCommand").f(void 0, void 0).ser(se_DescribeReservedInstancesListingsCommand).de(de_DescribeReservedInstancesListingsCommand).build() {
      static {
        __name(this, "DescribeReservedInstancesListingsCommand");
      }
      static {
        __name2(this, "DescribeReservedInstancesListingsCommand");
      }
    };
    var DescribeReservedInstancesModificationsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeReservedInstancesModifications", {}).n("EC2Client", "DescribeReservedInstancesModificationsCommand").f(void 0, void 0).ser(se_DescribeReservedInstancesModificationsCommand).de(de_DescribeReservedInstancesModificationsCommand).build() {
      static {
        __name(this, "DescribeReservedInstancesModificationsCommand");
      }
      static {
        __name2(this, "DescribeReservedInstancesModificationsCommand");
      }
    };
    var DescribeReservedInstancesOfferingsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeReservedInstancesOfferings", {}).n("EC2Client", "DescribeReservedInstancesOfferingsCommand").f(void 0, void 0).ser(se_DescribeReservedInstancesOfferingsCommand).de(de_DescribeReservedInstancesOfferingsCommand).build() {
      static {
        __name(this, "DescribeReservedInstancesOfferingsCommand");
      }
      static {
        __name2(this, "DescribeReservedInstancesOfferingsCommand");
      }
    };
    var DescribeRouteServerEndpointsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeRouteServerEndpoints", {}).n("EC2Client", "DescribeRouteServerEndpointsCommand").f(void 0, void 0).ser(se_DescribeRouteServerEndpointsCommand).de(de_DescribeRouteServerEndpointsCommand).build() {
      static {
        __name(this, "DescribeRouteServerEndpointsCommand");
      }
      static {
        __name2(this, "DescribeRouteServerEndpointsCommand");
      }
    };
    var DescribeRouteServerPeersCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeRouteServerPeers", {}).n("EC2Client", "DescribeRouteServerPeersCommand").f(void 0, void 0).ser(se_DescribeRouteServerPeersCommand).de(de_DescribeRouteServerPeersCommand).build() {
      static {
        __name(this, "DescribeRouteServerPeersCommand");
      }
      static {
        __name2(this, "DescribeRouteServerPeersCommand");
      }
    };
    var DescribeRouteServersCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeRouteServers", {}).n("EC2Client", "DescribeRouteServersCommand").f(void 0, void 0).ser(se_DescribeRouteServersCommand).de(de_DescribeRouteServersCommand).build() {
      static {
        __name(this, "DescribeRouteServersCommand");
      }
      static {
        __name2(this, "DescribeRouteServersCommand");
      }
    };
    var DescribeRouteTablesCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeRouteTables", {}).n("EC2Client", "DescribeRouteTablesCommand").f(void 0, void 0).ser(se_DescribeRouteTablesCommand).de(de_DescribeRouteTablesCommand).build() {
      static {
        __name(this, "DescribeRouteTablesCommand");
      }
      static {
        __name2(this, "DescribeRouteTablesCommand");
      }
    };
    var DescribeScheduledInstanceAvailabilityCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeScheduledInstanceAvailability", {}).n("EC2Client", "DescribeScheduledInstanceAvailabilityCommand").f(void 0, void 0).ser(se_DescribeScheduledInstanceAvailabilityCommand).de(de_DescribeScheduledInstanceAvailabilityCommand).build() {
      static {
        __name(this, "DescribeScheduledInstanceAvailabilityCommand");
      }
      static {
        __name2(this, "DescribeScheduledInstanceAvailabilityCommand");
      }
    };
    var DescribeScheduledInstancesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeScheduledInstances", {}).n("EC2Client", "DescribeScheduledInstancesCommand").f(void 0, void 0).ser(se_DescribeScheduledInstancesCommand).de(de_DescribeScheduledInstancesCommand).build() {
      static {
        __name(this, "DescribeScheduledInstancesCommand");
      }
      static {
        __name2(this, "DescribeScheduledInstancesCommand");
      }
    };
    var DescribeSecurityGroupReferencesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeSecurityGroupReferences", {}).n("EC2Client", "DescribeSecurityGroupReferencesCommand").f(void 0, void 0).ser(se_DescribeSecurityGroupReferencesCommand).de(de_DescribeSecurityGroupReferencesCommand).build() {
      static {
        __name(this, "DescribeSecurityGroupReferencesCommand");
      }
      static {
        __name2(this, "DescribeSecurityGroupReferencesCommand");
      }
    };
    var DescribeSecurityGroupRulesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeSecurityGroupRules", {}).n("EC2Client", "DescribeSecurityGroupRulesCommand").f(void 0, void 0).ser(se_DescribeSecurityGroupRulesCommand).de(de_DescribeSecurityGroupRulesCommand).build() {
      static {
        __name(this, "DescribeSecurityGroupRulesCommand");
      }
      static {
        __name2(this, "DescribeSecurityGroupRulesCommand");
      }
    };
    var DescribeSecurityGroupsCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeSecurityGroups", {}).n("EC2Client", "DescribeSecurityGroupsCommand").f(void 0, void 0).ser(se_DescribeSecurityGroupsCommand).de(de_DescribeSecurityGroupsCommand).build() {
      static {
        __name(this, "DescribeSecurityGroupsCommand");
      }
      static {
        __name2(this, "DescribeSecurityGroupsCommand");
      }
    };
    var DescribeSecurityGroupVpcAssociationsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeSecurityGroupVpcAssociations", {}).n("EC2Client", "DescribeSecurityGroupVpcAssociationsCommand").f(void 0, void 0).ser(se_DescribeSecurityGroupVpcAssociationsCommand).de(de_DescribeSecurityGroupVpcAssociationsCommand).build() {
      static {
        __name(this, "DescribeSecurityGroupVpcAssociationsCommand");
      }
      static {
        __name2(this, "DescribeSecurityGroupVpcAssociationsCommand");
      }
    };
    var DescribeServiceLinkVirtualInterfacesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeServiceLinkVirtualInterfaces", {}).n("EC2Client", "DescribeServiceLinkVirtualInterfacesCommand").f(void 0, void 0).ser(se_DescribeServiceLinkVirtualInterfacesCommand).de(de_DescribeServiceLinkVirtualInterfacesCommand).build() {
      static {
        __name(this, "DescribeServiceLinkVirtualInterfacesCommand");
      }
      static {
        __name2(this, "DescribeServiceLinkVirtualInterfacesCommand");
      }
    };
    var DescribeSnapshotAttributeCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeSnapshotAttribute", {}).n("EC2Client", "DescribeSnapshotAttributeCommand").f(void 0, void 0).ser(se_DescribeSnapshotAttributeCommand).de(de_DescribeSnapshotAttributeCommand).build() {
      static {
        __name(this, "DescribeSnapshotAttributeCommand");
      }
      static {
        __name2(this, "DescribeSnapshotAttributeCommand");
      }
    };
    var DescribeSnapshotsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeSnapshots", {}).n("EC2Client", "DescribeSnapshotsCommand").f(void 0, void 0).ser(se_DescribeSnapshotsCommand).de(de_DescribeSnapshotsCommand).build() {
      static {
        __name(this, "DescribeSnapshotsCommand");
      }
      static {
        __name2(this, "DescribeSnapshotsCommand");
      }
    };
    var DescribeSnapshotTierStatusCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeSnapshotTierStatus", {}).n("EC2Client", "DescribeSnapshotTierStatusCommand").f(void 0, void 0).ser(se_DescribeSnapshotTierStatusCommand).de(de_DescribeSnapshotTierStatusCommand).build() {
      static {
        __name(this, "DescribeSnapshotTierStatusCommand");
      }
      static {
        __name2(this, "DescribeSnapshotTierStatusCommand");
      }
    };
    var DescribeSpotDatafeedSubscriptionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeSpotDatafeedSubscription", {}).n("EC2Client", "DescribeSpotDatafeedSubscriptionCommand").f(void 0, void 0).ser(se_DescribeSpotDatafeedSubscriptionCommand).de(de_DescribeSpotDatafeedSubscriptionCommand).build() {
      static {
        __name(this, "DescribeSpotDatafeedSubscriptionCommand");
      }
      static {
        __name2(this, "DescribeSpotDatafeedSubscriptionCommand");
      }
    };
    var DescribeSpotFleetInstancesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeSpotFleetInstances", {}).n("EC2Client", "DescribeSpotFleetInstancesCommand").f(void 0, void 0).ser(se_DescribeSpotFleetInstancesCommand).de(de_DescribeSpotFleetInstancesCommand).build() {
      static {
        __name(this, "DescribeSpotFleetInstancesCommand");
      }
      static {
        __name2(this, "DescribeSpotFleetInstancesCommand");
      }
    };
    var DescribeSpotFleetRequestHistoryCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeSpotFleetRequestHistory", {}).n("EC2Client", "DescribeSpotFleetRequestHistoryCommand").f(void 0, void 0).ser(se_DescribeSpotFleetRequestHistoryCommand).de(de_DescribeSpotFleetRequestHistoryCommand).build() {
      static {
        __name(this, "DescribeSpotFleetRequestHistoryCommand");
      }
      static {
        __name2(this, "DescribeSpotFleetRequestHistoryCommand");
      }
    };
    var DescribeSpotFleetRequestsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeSpotFleetRequests", {}).n("EC2Client", "DescribeSpotFleetRequestsCommand").f(void 0, DescribeSpotFleetRequestsResponseFilterSensitiveLog).ser(se_DescribeSpotFleetRequestsCommand).de(de_DescribeSpotFleetRequestsCommand).build() {
      static {
        __name(this, "DescribeSpotFleetRequestsCommand");
      }
      static {
        __name2(this, "DescribeSpotFleetRequestsCommand");
      }
    };
    var DescribeSpotInstanceRequestsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeSpotInstanceRequests", {}).n("EC2Client", "DescribeSpotInstanceRequestsCommand").f(void 0, DescribeSpotInstanceRequestsResultFilterSensitiveLog).ser(se_DescribeSpotInstanceRequestsCommand).de(de_DescribeSpotInstanceRequestsCommand).build() {
      static {
        __name(this, "DescribeSpotInstanceRequestsCommand");
      }
      static {
        __name2(this, "DescribeSpotInstanceRequestsCommand");
      }
    };
    var DescribeSpotPriceHistoryCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeSpotPriceHistory", {}).n("EC2Client", "DescribeSpotPriceHistoryCommand").f(void 0, void 0).ser(se_DescribeSpotPriceHistoryCommand).de(de_DescribeSpotPriceHistoryCommand).build() {
      static {
        __name(this, "DescribeSpotPriceHistoryCommand");
      }
      static {
        __name2(this, "DescribeSpotPriceHistoryCommand");
      }
    };
    var DescribeStaleSecurityGroupsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeStaleSecurityGroups", {}).n("EC2Client", "DescribeStaleSecurityGroupsCommand").f(void 0, void 0).ser(se_DescribeStaleSecurityGroupsCommand).de(de_DescribeStaleSecurityGroupsCommand).build() {
      static {
        __name(this, "DescribeStaleSecurityGroupsCommand");
      }
      static {
        __name2(this, "DescribeStaleSecurityGroupsCommand");
      }
    };
    var DescribeStoreImageTasksCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeStoreImageTasks", {}).n("EC2Client", "DescribeStoreImageTasksCommand").f(void 0, void 0).ser(se_DescribeStoreImageTasksCommand).de(de_DescribeStoreImageTasksCommand).build() {
      static {
        __name(this, "DescribeStoreImageTasksCommand");
      }
      static {
        __name2(this, "DescribeStoreImageTasksCommand");
      }
    };
    var DescribeSubnetsCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeSubnets", {}).n("EC2Client", "DescribeSubnetsCommand").f(void 0, void 0).ser(se_DescribeSubnetsCommand).de(de_DescribeSubnetsCommand).build() {
      static {
        __name(this, "DescribeSubnetsCommand");
      }
      static {
        __name2(this, "DescribeSubnetsCommand");
      }
    };
    var DescribeTagsCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeTags", {}).n("EC2Client", "DescribeTagsCommand").f(void 0, void 0).ser(se_DescribeTagsCommand).de(de_DescribeTagsCommand).build() {
      static {
        __name(this, "DescribeTagsCommand");
      }
      static {
        __name2(this, "DescribeTagsCommand");
      }
    };
    var DescribeTrafficMirrorFilterRulesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeTrafficMirrorFilterRules", {}).n("EC2Client", "DescribeTrafficMirrorFilterRulesCommand").f(void 0, void 0).ser(se_DescribeTrafficMirrorFilterRulesCommand).de(de_DescribeTrafficMirrorFilterRulesCommand).build() {
      static {
        __name(this, "DescribeTrafficMirrorFilterRulesCommand");
      }
      static {
        __name2(this, "DescribeTrafficMirrorFilterRulesCommand");
      }
    };
    var DescribeTrafficMirrorFiltersCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeTrafficMirrorFilters", {}).n("EC2Client", "DescribeTrafficMirrorFiltersCommand").f(void 0, void 0).ser(se_DescribeTrafficMirrorFiltersCommand).de(de_DescribeTrafficMirrorFiltersCommand).build() {
      static {
        __name(this, "DescribeTrafficMirrorFiltersCommand");
      }
      static {
        __name2(this, "DescribeTrafficMirrorFiltersCommand");
      }
    };
    var DescribeTrafficMirrorSessionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeTrafficMirrorSessions", {}).n("EC2Client", "DescribeTrafficMirrorSessionsCommand").f(void 0, void 0).ser(se_DescribeTrafficMirrorSessionsCommand).de(de_DescribeTrafficMirrorSessionsCommand).build() {
      static {
        __name(this, "DescribeTrafficMirrorSessionsCommand");
      }
      static {
        __name2(this, "DescribeTrafficMirrorSessionsCommand");
      }
    };
    var DescribeTrafficMirrorTargetsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeTrafficMirrorTargets", {}).n("EC2Client", "DescribeTrafficMirrorTargetsCommand").f(void 0, void 0).ser(se_DescribeTrafficMirrorTargetsCommand).de(de_DescribeTrafficMirrorTargetsCommand).build() {
      static {
        __name(this, "DescribeTrafficMirrorTargetsCommand");
      }
      static {
        __name2(this, "DescribeTrafficMirrorTargetsCommand");
      }
    };
    var DescribeTransitGatewayAttachmentsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeTransitGatewayAttachments", {}).n("EC2Client", "DescribeTransitGatewayAttachmentsCommand").f(void 0, void 0).ser(se_DescribeTransitGatewayAttachmentsCommand).de(de_DescribeTransitGatewayAttachmentsCommand).build() {
      static {
        __name(this, "DescribeTransitGatewayAttachmentsCommand");
      }
      static {
        __name2(this, "DescribeTransitGatewayAttachmentsCommand");
      }
    };
    var DescribeTransitGatewayConnectPeersCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeTransitGatewayConnectPeers", {}).n("EC2Client", "DescribeTransitGatewayConnectPeersCommand").f(void 0, void 0).ser(se_DescribeTransitGatewayConnectPeersCommand).de(de_DescribeTransitGatewayConnectPeersCommand).build() {
      static {
        __name(this, "DescribeTransitGatewayConnectPeersCommand");
      }
      static {
        __name2(this, "DescribeTransitGatewayConnectPeersCommand");
      }
    };
    var DescribeTransitGatewayConnectsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeTransitGatewayConnects", {}).n("EC2Client", "DescribeTransitGatewayConnectsCommand").f(void 0, void 0).ser(se_DescribeTransitGatewayConnectsCommand).de(de_DescribeTransitGatewayConnectsCommand).build() {
      static {
        __name(this, "DescribeTransitGatewayConnectsCommand");
      }
      static {
        __name2(this, "DescribeTransitGatewayConnectsCommand");
      }
    };
    var DescribeTransitGatewayMulticastDomainsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeTransitGatewayMulticastDomains", {}).n("EC2Client", "DescribeTransitGatewayMulticastDomainsCommand").f(void 0, void 0).ser(se_DescribeTransitGatewayMulticastDomainsCommand).de(de_DescribeTransitGatewayMulticastDomainsCommand).build() {
      static {
        __name(this, "DescribeTransitGatewayMulticastDomainsCommand");
      }
      static {
        __name2(this, "DescribeTransitGatewayMulticastDomainsCommand");
      }
    };
    var DescribeTransitGatewayPeeringAttachmentsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeTransitGatewayPeeringAttachments", {}).n("EC2Client", "DescribeTransitGatewayPeeringAttachmentsCommand").f(void 0, void 0).ser(se_DescribeTransitGatewayPeeringAttachmentsCommand).de(de_DescribeTransitGatewayPeeringAttachmentsCommand).build() {
      static {
        __name(this, "DescribeTransitGatewayPeeringAttachmentsCommand");
      }
      static {
        __name2(this, "DescribeTransitGatewayPeeringAttachmentsCommand");
      }
    };
    var DescribeTransitGatewayPolicyTablesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeTransitGatewayPolicyTables", {}).n("EC2Client", "DescribeTransitGatewayPolicyTablesCommand").f(void 0, void 0).ser(se_DescribeTransitGatewayPolicyTablesCommand).de(de_DescribeTransitGatewayPolicyTablesCommand).build() {
      static {
        __name(this, "DescribeTransitGatewayPolicyTablesCommand");
      }
      static {
        __name2(this, "DescribeTransitGatewayPolicyTablesCommand");
      }
    };
    var DescribeTransitGatewayRouteTableAnnouncementsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeTransitGatewayRouteTableAnnouncements", {}).n("EC2Client", "DescribeTransitGatewayRouteTableAnnouncementsCommand").f(void 0, void 0).ser(se_DescribeTransitGatewayRouteTableAnnouncementsCommand).de(de_DescribeTransitGatewayRouteTableAnnouncementsCommand).build() {
      static {
        __name(this, "DescribeTransitGatewayRouteTableAnnouncementsCommand");
      }
      static {
        __name2(this, "DescribeTransitGatewayRouteTableAnnouncementsCommand");
      }
    };
    var DescribeTransitGatewayRouteTablesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeTransitGatewayRouteTables", {}).n("EC2Client", "DescribeTransitGatewayRouteTablesCommand").f(void 0, void 0).ser(se_DescribeTransitGatewayRouteTablesCommand).de(de_DescribeTransitGatewayRouteTablesCommand).build() {
      static {
        __name(this, "DescribeTransitGatewayRouteTablesCommand");
      }
      static {
        __name2(this, "DescribeTransitGatewayRouteTablesCommand");
      }
    };
    var DescribeTransitGatewaysCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeTransitGateways", {}).n("EC2Client", "DescribeTransitGatewaysCommand").f(void 0, void 0).ser(se_DescribeTransitGatewaysCommand).de(de_DescribeTransitGatewaysCommand).build() {
      static {
        __name(this, "DescribeTransitGatewaysCommand");
      }
      static {
        __name2(this, "DescribeTransitGatewaysCommand");
      }
    };
    var DescribeTransitGatewayVpcAttachmentsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeTransitGatewayVpcAttachments", {}).n("EC2Client", "DescribeTransitGatewayVpcAttachmentsCommand").f(void 0, void 0).ser(se_DescribeTransitGatewayVpcAttachmentsCommand).de(de_DescribeTransitGatewayVpcAttachmentsCommand).build() {
      static {
        __name(this, "DescribeTransitGatewayVpcAttachmentsCommand");
      }
      static {
        __name2(this, "DescribeTransitGatewayVpcAttachmentsCommand");
      }
    };
    var DescribeTrunkInterfaceAssociationsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeTrunkInterfaceAssociations", {}).n("EC2Client", "DescribeTrunkInterfaceAssociationsCommand").f(void 0, void 0).ser(se_DescribeTrunkInterfaceAssociationsCommand).de(de_DescribeTrunkInterfaceAssociationsCommand).build() {
      static {
        __name(this, "DescribeTrunkInterfaceAssociationsCommand");
      }
      static {
        __name2(this, "DescribeTrunkInterfaceAssociationsCommand");
      }
    };
    var DescribeVerifiedAccessEndpointsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeVerifiedAccessEndpoints", {}).n("EC2Client", "DescribeVerifiedAccessEndpointsCommand").f(void 0, void 0).ser(se_DescribeVerifiedAccessEndpointsCommand).de(de_DescribeVerifiedAccessEndpointsCommand).build() {
      static {
        __name(this, "DescribeVerifiedAccessEndpointsCommand");
      }
      static {
        __name2(this, "DescribeVerifiedAccessEndpointsCommand");
      }
    };
    var DescribeVerifiedAccessGroupsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeVerifiedAccessGroups", {}).n("EC2Client", "DescribeVerifiedAccessGroupsCommand").f(void 0, void 0).ser(se_DescribeVerifiedAccessGroupsCommand).de(de_DescribeVerifiedAccessGroupsCommand).build() {
      static {
        __name(this, "DescribeVerifiedAccessGroupsCommand");
      }
      static {
        __name2(this, "DescribeVerifiedAccessGroupsCommand");
      }
    };
    var DescribeVerifiedAccessInstanceLoggingConfigurationsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeVerifiedAccessInstanceLoggingConfigurations", {}).n("EC2Client", "DescribeVerifiedAccessInstanceLoggingConfigurationsCommand").f(void 0, void 0).ser(se_DescribeVerifiedAccessInstanceLoggingConfigurationsCommand).de(de_DescribeVerifiedAccessInstanceLoggingConfigurationsCommand).build() {
      static {
        __name(this, "DescribeVerifiedAccessInstanceLoggingConfigurationsCommand");
      }
      static {
        __name2(this, "DescribeVerifiedAccessInstanceLoggingConfigurationsCommand");
      }
    };
    var DescribeVerifiedAccessInstancesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeVerifiedAccessInstances", {}).n("EC2Client", "DescribeVerifiedAccessInstancesCommand").f(void 0, void 0).ser(se_DescribeVerifiedAccessInstancesCommand).de(de_DescribeVerifiedAccessInstancesCommand).build() {
      static {
        __name(this, "DescribeVerifiedAccessInstancesCommand");
      }
      static {
        __name2(this, "DescribeVerifiedAccessInstancesCommand");
      }
    };
    var DescribeVerifiedAccessTrustProvidersCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeVerifiedAccessTrustProviders", {}).n("EC2Client", "DescribeVerifiedAccessTrustProvidersCommand").f(void 0, DescribeVerifiedAccessTrustProvidersResultFilterSensitiveLog).ser(se_DescribeVerifiedAccessTrustProvidersCommand).de(de_DescribeVerifiedAccessTrustProvidersCommand).build() {
      static {
        __name(this, "DescribeVerifiedAccessTrustProvidersCommand");
      }
      static {
        __name2(this, "DescribeVerifiedAccessTrustProvidersCommand");
      }
    };
    var DescribeVolumeAttributeCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeVolumeAttribute", {}).n("EC2Client", "DescribeVolumeAttributeCommand").f(void 0, void 0).ser(se_DescribeVolumeAttributeCommand).de(de_DescribeVolumeAttributeCommand).build() {
      static {
        __name(this, "DescribeVolumeAttributeCommand");
      }
      static {
        __name2(this, "DescribeVolumeAttributeCommand");
      }
    };
    var DescribeVolumesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeVolumes", {}).n("EC2Client", "DescribeVolumesCommand").f(void 0, void 0).ser(se_DescribeVolumesCommand).de(de_DescribeVolumesCommand).build() {
      static {
        __name(this, "DescribeVolumesCommand");
      }
      static {
        __name2(this, "DescribeVolumesCommand");
      }
    };
    var DescribeVolumesModificationsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeVolumesModifications", {}).n("EC2Client", "DescribeVolumesModificationsCommand").f(void 0, void 0).ser(se_DescribeVolumesModificationsCommand).de(de_DescribeVolumesModificationsCommand).build() {
      static {
        __name(this, "DescribeVolumesModificationsCommand");
      }
      static {
        __name2(this, "DescribeVolumesModificationsCommand");
      }
    };
    var DescribeVolumeStatusCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeVolumeStatus", {}).n("EC2Client", "DescribeVolumeStatusCommand").f(void 0, void 0).ser(se_DescribeVolumeStatusCommand).de(de_DescribeVolumeStatusCommand).build() {
      static {
        __name(this, "DescribeVolumeStatusCommand");
      }
      static {
        __name2(this, "DescribeVolumeStatusCommand");
      }
    };
    var DescribeVpcAttributeCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeVpcAttribute", {}).n("EC2Client", "DescribeVpcAttributeCommand").f(void 0, void 0).ser(se_DescribeVpcAttributeCommand).de(de_DescribeVpcAttributeCommand).build() {
      static {
        __name(this, "DescribeVpcAttributeCommand");
      }
      static {
        __name2(this, "DescribeVpcAttributeCommand");
      }
    };
    var DescribeVpcBlockPublicAccessExclusionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeVpcBlockPublicAccessExclusions", {}).n("EC2Client", "DescribeVpcBlockPublicAccessExclusionsCommand").f(void 0, void 0).ser(se_DescribeVpcBlockPublicAccessExclusionsCommand).de(de_DescribeVpcBlockPublicAccessExclusionsCommand).build() {
      static {
        __name(this, "DescribeVpcBlockPublicAccessExclusionsCommand");
      }
      static {
        __name2(this, "DescribeVpcBlockPublicAccessExclusionsCommand");
      }
    };
    var DescribeVpcBlockPublicAccessOptionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeVpcBlockPublicAccessOptions", {}).n("EC2Client", "DescribeVpcBlockPublicAccessOptionsCommand").f(void 0, void 0).ser(se_DescribeVpcBlockPublicAccessOptionsCommand).de(de_DescribeVpcBlockPublicAccessOptionsCommand).build() {
      static {
        __name(this, "DescribeVpcBlockPublicAccessOptionsCommand");
      }
      static {
        __name2(this, "DescribeVpcBlockPublicAccessOptionsCommand");
      }
    };
    var DescribeVpcClassicLinkCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeVpcClassicLink", {}).n("EC2Client", "DescribeVpcClassicLinkCommand").f(void 0, void 0).ser(se_DescribeVpcClassicLinkCommand).de(de_DescribeVpcClassicLinkCommand).build() {
      static {
        __name(this, "DescribeVpcClassicLinkCommand");
      }
      static {
        __name2(this, "DescribeVpcClassicLinkCommand");
      }
    };
    var DescribeVpcClassicLinkDnsSupportCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeVpcClassicLinkDnsSupport", {}).n("EC2Client", "DescribeVpcClassicLinkDnsSupportCommand").f(void 0, void 0).ser(se_DescribeVpcClassicLinkDnsSupportCommand).de(de_DescribeVpcClassicLinkDnsSupportCommand).build() {
      static {
        __name(this, "DescribeVpcClassicLinkDnsSupportCommand");
      }
      static {
        __name2(this, "DescribeVpcClassicLinkDnsSupportCommand");
      }
    };
    var DescribeVpcEndpointAssociationsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeVpcEndpointAssociations", {}).n("EC2Client", "DescribeVpcEndpointAssociationsCommand").f(void 0, void 0).ser(se_DescribeVpcEndpointAssociationsCommand).de(de_DescribeVpcEndpointAssociationsCommand).build() {
      static {
        __name(this, "DescribeVpcEndpointAssociationsCommand");
      }
      static {
        __name2(this, "DescribeVpcEndpointAssociationsCommand");
      }
    };
    var DescribeVpcEndpointConnectionNotificationsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeVpcEndpointConnectionNotifications", {}).n("EC2Client", "DescribeVpcEndpointConnectionNotificationsCommand").f(void 0, void 0).ser(se_DescribeVpcEndpointConnectionNotificationsCommand).de(de_DescribeVpcEndpointConnectionNotificationsCommand).build() {
      static {
        __name(this, "DescribeVpcEndpointConnectionNotificationsCommand");
      }
      static {
        __name2(this, "DescribeVpcEndpointConnectionNotificationsCommand");
      }
    };
    var DescribeVpcEndpointConnectionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeVpcEndpointConnections", {}).n("EC2Client", "DescribeVpcEndpointConnectionsCommand").f(void 0, void 0).ser(se_DescribeVpcEndpointConnectionsCommand).de(de_DescribeVpcEndpointConnectionsCommand).build() {
      static {
        __name(this, "DescribeVpcEndpointConnectionsCommand");
      }
      static {
        __name2(this, "DescribeVpcEndpointConnectionsCommand");
      }
    };
    var DescribeVpcEndpointsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeVpcEndpoints", {}).n("EC2Client", "DescribeVpcEndpointsCommand").f(void 0, void 0).ser(se_DescribeVpcEndpointsCommand).de(de_DescribeVpcEndpointsCommand).build() {
      static {
        __name(this, "DescribeVpcEndpointsCommand");
      }
      static {
        __name2(this, "DescribeVpcEndpointsCommand");
      }
    };
    var DescribeVpcEndpointServiceConfigurationsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeVpcEndpointServiceConfigurations", {}).n("EC2Client", "DescribeVpcEndpointServiceConfigurationsCommand").f(void 0, void 0).ser(se_DescribeVpcEndpointServiceConfigurationsCommand).de(de_DescribeVpcEndpointServiceConfigurationsCommand).build() {
      static {
        __name(this, "DescribeVpcEndpointServiceConfigurationsCommand");
      }
      static {
        __name2(this, "DescribeVpcEndpointServiceConfigurationsCommand");
      }
    };
    var DescribeVpcEndpointServicePermissionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeVpcEndpointServicePermissions", {}).n("EC2Client", "DescribeVpcEndpointServicePermissionsCommand").f(void 0, void 0).ser(se_DescribeVpcEndpointServicePermissionsCommand).de(de_DescribeVpcEndpointServicePermissionsCommand).build() {
      static {
        __name(this, "DescribeVpcEndpointServicePermissionsCommand");
      }
      static {
        __name2(this, "DescribeVpcEndpointServicePermissionsCommand");
      }
    };
    var DescribeVpcEndpointServicesCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeVpcEndpointServices", {}).n("EC2Client", "DescribeVpcEndpointServicesCommand").f(void 0, void 0).ser(se_DescribeVpcEndpointServicesCommand).de(de_DescribeVpcEndpointServicesCommand).build() {
      static {
        __name(this, "DescribeVpcEndpointServicesCommand");
      }
      static {
        __name2(this, "DescribeVpcEndpointServicesCommand");
      }
    };
    var DescribeVpcPeeringConnectionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeVpcPeeringConnections", {}).n("EC2Client", "DescribeVpcPeeringConnectionsCommand").f(void 0, void 0).ser(se_DescribeVpcPeeringConnectionsCommand).de(de_DescribeVpcPeeringConnectionsCommand).build() {
      static {
        __name(this, "DescribeVpcPeeringConnectionsCommand");
      }
      static {
        __name2(this, "DescribeVpcPeeringConnectionsCommand");
      }
    };
    var DescribeVpcsCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeVpcs", {}).n("EC2Client", "DescribeVpcsCommand").f(void 0, void 0).ser(se_DescribeVpcsCommand).de(de_DescribeVpcsCommand).build() {
      static {
        __name(this, "DescribeVpcsCommand");
      }
      static {
        __name2(this, "DescribeVpcsCommand");
      }
    };
    var VpcBlockPublicAccessExclusionsAllowed = {
      allowed: "allowed",
      not_allowed: "not-allowed"
    };
    var InternetGatewayBlockMode = {
      block_bidirectional: "block-bidirectional",
      block_ingress: "block-ingress",
      off: "off"
    };
    var ManagedBy = {
      account: "account",
      declarative_policy: "declarative-policy"
    };
    var VpcBlockPublicAccessState = {
      default_state: "default-state",
      update_complete: "update-complete",
      update_in_progress: "update-in-progress"
    };
    var ImageBlockPublicAccessDisabledState = {
      unblocked: "unblocked"
    };
    var RouteServerPropagationState = {
      AVAILABLE: "available",
      DELETING: "deleting",
      PENDING: "pending"
    };
    var SnapshotBlockPublicAccessState = {
      block_all_sharing: "block-all-sharing",
      block_new_sharing: "block-new-sharing",
      unblocked: "unblocked"
    };
    var TransitGatewayPropagationState = {
      disabled: "disabled",
      disabling: "disabling",
      enabled: "enabled",
      enabling: "enabling"
    };
    var ImageBlockPublicAccessEnabledState = {
      block_new_sharing: "block-new-sharing"
    };
    var ClientCertificateRevocationListStatusCode = {
      active: "active",
      pending: "pending"
    };
    var UnlimitedSupportedInstanceFamily = {
      t2: "t2",
      t3: "t3",
      t3a: "t3a",
      t4g: "t4g"
    };
    var PartitionLoadFrequency = {
      DAILY: "daily",
      MONTHLY: "monthly",
      NONE: "none",
      WEEKLY: "weekly"
    };
    var EkPubKeyFormat = {
      der: "der",
      tpmt: "tpmt"
    };
    var EkPubKeyType = {
      ECC_SEC_P384: "ecc-sec-p384",
      RSA_2048: "rsa-2048"
    };
    var IpamComplianceStatus = {
      compliant: "compliant",
      ignored: "ignored",
      noncompliant: "noncompliant",
      unmanaged: "unmanaged"
    };
    var IpamOverlapStatus = {
      ignored: "ignored",
      nonoverlapping: "nonoverlapping",
      overlapping: "overlapping"
    };
    var IpamAddressHistoryResourceType = {
      eip: "eip",
      instance: "instance",
      network_interface: "network-interface",
      subnet: "subnet",
      vpc: "vpc"
    };
    var IpamDiscoveryFailureCode = {
      assume_role_failure: "assume-role-failure",
      throttling_failure: "throttling-failure",
      unauthorized_failure: "unauthorized-failure"
    };
    var IpamPublicAddressType = {
      AMAZON_OWNED_CONTIG: "amazon-owned-contig",
      AMAZON_OWNED_EIP: "amazon-owned-eip",
      BYOIP: "byoip",
      EC2_PUBLIC_IP: "ec2-public-ip",
      SERVICE_MANAGED_BYOIP: "service-managed-byoip",
      SERVICE_MANAGED_IP: "service-managed-ip"
    };
    var IpamPublicAddressAssociationStatus = {
      ASSOCIATED: "associated",
      DISASSOCIATED: "disassociated"
    };
    var IpamPublicAddressAwsService = {
      AGA: "global-accelerator",
      DMS: "database-migration-service",
      EC2_LB: "load-balancer",
      ECS: "elastic-container-service",
      NAT_GATEWAY: "nat-gateway",
      OTHER: "other",
      RDS: "relational-database-service",
      REDSHIFT: "redshift",
      S2S_VPN: "site-to-site-vpn"
    };
    var IpamResourceCidrIpSource = {
      amazon: "amazon",
      byoip: "byoip",
      none: "none"
    };
    var IpamNetworkInterfaceAttachmentStatus = {
      available: "available",
      in_use: "in-use"
    };
    var IpamResourceType = {
      eip: "eip",
      eni: "eni",
      ipv6_pool: "ipv6-pool",
      public_ipv4_pool: "public-ipv4-pool",
      subnet: "subnet",
      vpc: "vpc"
    };
    var IpamManagementState = {
      ignored: "ignored",
      managed: "managed",
      unmanaged: "unmanaged"
    };
    var DescribeVpnConnectionsResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.VpnConnections && {
        VpnConnections: obj.VpnConnections.map((item) => VpnConnectionFilterSensitiveLog(item))
      }
    }), "DescribeVpnConnectionsResultFilterSensitiveLog");
    var DetachVerifiedAccessTrustProviderResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.VerifiedAccessTrustProvider && {
        VerifiedAccessTrustProvider: VerifiedAccessTrustProviderFilterSensitiveLog(obj.VerifiedAccessTrustProvider)
      }
    }), "DetachVerifiedAccessTrustProviderResultFilterSensitiveLog");
    var VerifiedAccessInstanceUserTrustProviderClientConfigurationFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.ClientSecret && { ClientSecret: import_smithy_client28.SENSITIVE_STRING }
    }), "VerifiedAccessInstanceUserTrustProviderClientConfigurationFilterSensitiveLog");
    var ExportVerifiedAccessInstanceClientConfigurationResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.UserTrustProvider && {
        UserTrustProvider: VerifiedAccessInstanceUserTrustProviderClientConfigurationFilterSensitiveLog(
          obj.UserTrustProvider
        )
      }
    }), "ExportVerifiedAccessInstanceClientConfigurationResultFilterSensitiveLog");
    var GetInstanceTpmEkPubResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.KeyValue && { KeyValue: import_smithy_client28.SENSITIVE_STRING }
    }), "GetInstanceTpmEkPubResultFilterSensitiveLog");
    var GetLaunchTemplateDataResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.LaunchTemplateData && {
        LaunchTemplateData: ResponseLaunchTemplateDataFilterSensitiveLog(obj.LaunchTemplateData)
      }
    }), "GetLaunchTemplateDataResultFilterSensitiveLog");
    var DescribeVpnConnectionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeVpnConnections", {}).n("EC2Client", "DescribeVpnConnectionsCommand").f(void 0, DescribeVpnConnectionsResultFilterSensitiveLog).ser(se_DescribeVpnConnectionsCommand).de(de_DescribeVpnConnectionsCommand).build() {
      static {
        __name(this, "DescribeVpnConnectionsCommand");
      }
      static {
        __name2(this, "DescribeVpnConnectionsCommand");
      }
    };
    var DescribeVpnGatewaysCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DescribeVpnGateways", {}).n("EC2Client", "DescribeVpnGatewaysCommand").f(void 0, void 0).ser(se_DescribeVpnGatewaysCommand).de(de_DescribeVpnGatewaysCommand).build() {
      static {
        __name(this, "DescribeVpnGatewaysCommand");
      }
      static {
        __name2(this, "DescribeVpnGatewaysCommand");
      }
    };
    var DetachClassicLinkVpcCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DetachClassicLinkVpc", {}).n("EC2Client", "DetachClassicLinkVpcCommand").f(void 0, void 0).ser(se_DetachClassicLinkVpcCommand).de(de_DetachClassicLinkVpcCommand).build() {
      static {
        __name(this, "DetachClassicLinkVpcCommand");
      }
      static {
        __name2(this, "DetachClassicLinkVpcCommand");
      }
    };
    var DetachInternetGatewayCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DetachInternetGateway", {}).n("EC2Client", "DetachInternetGatewayCommand").f(void 0, void 0).ser(se_DetachInternetGatewayCommand).de(de_DetachInternetGatewayCommand).build() {
      static {
        __name(this, "DetachInternetGatewayCommand");
      }
      static {
        __name2(this, "DetachInternetGatewayCommand");
      }
    };
    var DetachNetworkInterfaceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DetachNetworkInterface", {}).n("EC2Client", "DetachNetworkInterfaceCommand").f(void 0, void 0).ser(se_DetachNetworkInterfaceCommand).de(de_DetachNetworkInterfaceCommand).build() {
      static {
        __name(this, "DetachNetworkInterfaceCommand");
      }
      static {
        __name2(this, "DetachNetworkInterfaceCommand");
      }
    };
    var DetachVerifiedAccessTrustProviderCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DetachVerifiedAccessTrustProvider", {}).n("EC2Client", "DetachVerifiedAccessTrustProviderCommand").f(void 0, DetachVerifiedAccessTrustProviderResultFilterSensitiveLog).ser(se_DetachVerifiedAccessTrustProviderCommand).de(de_DetachVerifiedAccessTrustProviderCommand).build() {
      static {
        __name(this, "DetachVerifiedAccessTrustProviderCommand");
      }
      static {
        __name2(this, "DetachVerifiedAccessTrustProviderCommand");
      }
    };
    var DetachVolumeCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DetachVolume", {}).n("EC2Client", "DetachVolumeCommand").f(void 0, void 0).ser(se_DetachVolumeCommand).de(de_DetachVolumeCommand).build() {
      static {
        __name(this, "DetachVolumeCommand");
      }
      static {
        __name2(this, "DetachVolumeCommand");
      }
    };
    var DetachVpnGatewayCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DetachVpnGateway", {}).n("EC2Client", "DetachVpnGatewayCommand").f(void 0, void 0).ser(se_DetachVpnGatewayCommand).de(de_DetachVpnGatewayCommand).build() {
      static {
        __name(this, "DetachVpnGatewayCommand");
      }
      static {
        __name2(this, "DetachVpnGatewayCommand");
      }
    };
    var DisableAddressTransferCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DisableAddressTransfer", {}).n("EC2Client", "DisableAddressTransferCommand").f(void 0, void 0).ser(se_DisableAddressTransferCommand).de(de_DisableAddressTransferCommand).build() {
      static {
        __name(this, "DisableAddressTransferCommand");
      }
      static {
        __name2(this, "DisableAddressTransferCommand");
      }
    };
    var DisableAllowedImagesSettingsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DisableAllowedImagesSettings", {}).n("EC2Client", "DisableAllowedImagesSettingsCommand").f(void 0, void 0).ser(se_DisableAllowedImagesSettingsCommand).de(de_DisableAllowedImagesSettingsCommand).build() {
      static {
        __name(this, "DisableAllowedImagesSettingsCommand");
      }
      static {
        __name2(this, "DisableAllowedImagesSettingsCommand");
      }
    };
    var DisableAwsNetworkPerformanceMetricSubscriptionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DisableAwsNetworkPerformanceMetricSubscription", {}).n("EC2Client", "DisableAwsNetworkPerformanceMetricSubscriptionCommand").f(void 0, void 0).ser(se_DisableAwsNetworkPerformanceMetricSubscriptionCommand).de(de_DisableAwsNetworkPerformanceMetricSubscriptionCommand).build() {
      static {
        __name(this, "DisableAwsNetworkPerformanceMetricSubscriptionCommand");
      }
      static {
        __name2(this, "DisableAwsNetworkPerformanceMetricSubscriptionCommand");
      }
    };
    var DisableEbsEncryptionByDefaultCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DisableEbsEncryptionByDefault", {}).n("EC2Client", "DisableEbsEncryptionByDefaultCommand").f(void 0, void 0).ser(se_DisableEbsEncryptionByDefaultCommand).de(de_DisableEbsEncryptionByDefaultCommand).build() {
      static {
        __name(this, "DisableEbsEncryptionByDefaultCommand");
      }
      static {
        __name2(this, "DisableEbsEncryptionByDefaultCommand");
      }
    };
    var DisableFastLaunchCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DisableFastLaunch", {}).n("EC2Client", "DisableFastLaunchCommand").f(void 0, void 0).ser(se_DisableFastLaunchCommand).de(de_DisableFastLaunchCommand).build() {
      static {
        __name(this, "DisableFastLaunchCommand");
      }
      static {
        __name2(this, "DisableFastLaunchCommand");
      }
    };
    var DisableFastSnapshotRestoresCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DisableFastSnapshotRestores", {}).n("EC2Client", "DisableFastSnapshotRestoresCommand").f(void 0, void 0).ser(se_DisableFastSnapshotRestoresCommand).de(de_DisableFastSnapshotRestoresCommand).build() {
      static {
        __name(this, "DisableFastSnapshotRestoresCommand");
      }
      static {
        __name2(this, "DisableFastSnapshotRestoresCommand");
      }
    };
    var DisableImageBlockPublicAccessCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DisableImageBlockPublicAccess", {}).n("EC2Client", "DisableImageBlockPublicAccessCommand").f(void 0, void 0).ser(se_DisableImageBlockPublicAccessCommand).de(de_DisableImageBlockPublicAccessCommand).build() {
      static {
        __name(this, "DisableImageBlockPublicAccessCommand");
      }
      static {
        __name2(this, "DisableImageBlockPublicAccessCommand");
      }
    };
    var DisableImageCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DisableImage", {}).n("EC2Client", "DisableImageCommand").f(void 0, void 0).ser(se_DisableImageCommand).de(de_DisableImageCommand).build() {
      static {
        __name(this, "DisableImageCommand");
      }
      static {
        __name2(this, "DisableImageCommand");
      }
    };
    var DisableImageDeprecationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DisableImageDeprecation", {}).n("EC2Client", "DisableImageDeprecationCommand").f(void 0, void 0).ser(se_DisableImageDeprecationCommand).de(de_DisableImageDeprecationCommand).build() {
      static {
        __name(this, "DisableImageDeprecationCommand");
      }
      static {
        __name2(this, "DisableImageDeprecationCommand");
      }
    };
    var DisableImageDeregistrationProtectionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DisableImageDeregistrationProtection", {}).n("EC2Client", "DisableImageDeregistrationProtectionCommand").f(void 0, void 0).ser(se_DisableImageDeregistrationProtectionCommand).de(de_DisableImageDeregistrationProtectionCommand).build() {
      static {
        __name(this, "DisableImageDeregistrationProtectionCommand");
      }
      static {
        __name2(this, "DisableImageDeregistrationProtectionCommand");
      }
    };
    var DisableIpamOrganizationAdminAccountCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DisableIpamOrganizationAdminAccount", {}).n("EC2Client", "DisableIpamOrganizationAdminAccountCommand").f(void 0, void 0).ser(se_DisableIpamOrganizationAdminAccountCommand).de(de_DisableIpamOrganizationAdminAccountCommand).build() {
      static {
        __name(this, "DisableIpamOrganizationAdminAccountCommand");
      }
      static {
        __name2(this, "DisableIpamOrganizationAdminAccountCommand");
      }
    };
    var DisableRouteServerPropagationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DisableRouteServerPropagation", {}).n("EC2Client", "DisableRouteServerPropagationCommand").f(void 0, void 0).ser(se_DisableRouteServerPropagationCommand).de(de_DisableRouteServerPropagationCommand).build() {
      static {
        __name(this, "DisableRouteServerPropagationCommand");
      }
      static {
        __name2(this, "DisableRouteServerPropagationCommand");
      }
    };
    var DisableSerialConsoleAccessCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DisableSerialConsoleAccess", {}).n("EC2Client", "DisableSerialConsoleAccessCommand").f(void 0, void 0).ser(se_DisableSerialConsoleAccessCommand).de(de_DisableSerialConsoleAccessCommand).build() {
      static {
        __name(this, "DisableSerialConsoleAccessCommand");
      }
      static {
        __name2(this, "DisableSerialConsoleAccessCommand");
      }
    };
    var DisableSnapshotBlockPublicAccessCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DisableSnapshotBlockPublicAccess", {}).n("EC2Client", "DisableSnapshotBlockPublicAccessCommand").f(void 0, void 0).ser(se_DisableSnapshotBlockPublicAccessCommand).de(de_DisableSnapshotBlockPublicAccessCommand).build() {
      static {
        __name(this, "DisableSnapshotBlockPublicAccessCommand");
      }
      static {
        __name2(this, "DisableSnapshotBlockPublicAccessCommand");
      }
    };
    var DisableTransitGatewayRouteTablePropagationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DisableTransitGatewayRouteTablePropagation", {}).n("EC2Client", "DisableTransitGatewayRouteTablePropagationCommand").f(void 0, void 0).ser(se_DisableTransitGatewayRouteTablePropagationCommand).de(de_DisableTransitGatewayRouteTablePropagationCommand).build() {
      static {
        __name(this, "DisableTransitGatewayRouteTablePropagationCommand");
      }
      static {
        __name2(this, "DisableTransitGatewayRouteTablePropagationCommand");
      }
    };
    var DisableVgwRoutePropagationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DisableVgwRoutePropagation", {}).n("EC2Client", "DisableVgwRoutePropagationCommand").f(void 0, void 0).ser(se_DisableVgwRoutePropagationCommand).de(de_DisableVgwRoutePropagationCommand).build() {
      static {
        __name(this, "DisableVgwRoutePropagationCommand");
      }
      static {
        __name2(this, "DisableVgwRoutePropagationCommand");
      }
    };
    var DisableVpcClassicLinkCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DisableVpcClassicLink", {}).n("EC2Client", "DisableVpcClassicLinkCommand").f(void 0, void 0).ser(se_DisableVpcClassicLinkCommand).de(de_DisableVpcClassicLinkCommand).build() {
      static {
        __name(this, "DisableVpcClassicLinkCommand");
      }
      static {
        __name2(this, "DisableVpcClassicLinkCommand");
      }
    };
    var DisableVpcClassicLinkDnsSupportCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DisableVpcClassicLinkDnsSupport", {}).n("EC2Client", "DisableVpcClassicLinkDnsSupportCommand").f(void 0, void 0).ser(se_DisableVpcClassicLinkDnsSupportCommand).de(de_DisableVpcClassicLinkDnsSupportCommand).build() {
      static {
        __name(this, "DisableVpcClassicLinkDnsSupportCommand");
      }
      static {
        __name2(this, "DisableVpcClassicLinkDnsSupportCommand");
      }
    };
    var DisassociateAddressCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DisassociateAddress", {}).n("EC2Client", "DisassociateAddressCommand").f(void 0, void 0).ser(se_DisassociateAddressCommand).de(de_DisassociateAddressCommand).build() {
      static {
        __name(this, "DisassociateAddressCommand");
      }
      static {
        __name2(this, "DisassociateAddressCommand");
      }
    };
    var DisassociateCapacityReservationBillingOwnerCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DisassociateCapacityReservationBillingOwner", {}).n("EC2Client", "DisassociateCapacityReservationBillingOwnerCommand").f(void 0, void 0).ser(se_DisassociateCapacityReservationBillingOwnerCommand).de(de_DisassociateCapacityReservationBillingOwnerCommand).build() {
      static {
        __name(this, "DisassociateCapacityReservationBillingOwnerCommand");
      }
      static {
        __name2(this, "DisassociateCapacityReservationBillingOwnerCommand");
      }
    };
    var DisassociateClientVpnTargetNetworkCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DisassociateClientVpnTargetNetwork", {}).n("EC2Client", "DisassociateClientVpnTargetNetworkCommand").f(void 0, void 0).ser(se_DisassociateClientVpnTargetNetworkCommand).de(de_DisassociateClientVpnTargetNetworkCommand).build() {
      static {
        __name(this, "DisassociateClientVpnTargetNetworkCommand");
      }
      static {
        __name2(this, "DisassociateClientVpnTargetNetworkCommand");
      }
    };
    var DisassociateEnclaveCertificateIamRoleCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DisassociateEnclaveCertificateIamRole", {}).n("EC2Client", "DisassociateEnclaveCertificateIamRoleCommand").f(void 0, void 0).ser(se_DisassociateEnclaveCertificateIamRoleCommand).de(de_DisassociateEnclaveCertificateIamRoleCommand).build() {
      static {
        __name(this, "DisassociateEnclaveCertificateIamRoleCommand");
      }
      static {
        __name2(this, "DisassociateEnclaveCertificateIamRoleCommand");
      }
    };
    var DisassociateIamInstanceProfileCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DisassociateIamInstanceProfile", {}).n("EC2Client", "DisassociateIamInstanceProfileCommand").f(void 0, void 0).ser(se_DisassociateIamInstanceProfileCommand).de(de_DisassociateIamInstanceProfileCommand).build() {
      static {
        __name(this, "DisassociateIamInstanceProfileCommand");
      }
      static {
        __name2(this, "DisassociateIamInstanceProfileCommand");
      }
    };
    var DisassociateInstanceEventWindowCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DisassociateInstanceEventWindow", {}).n("EC2Client", "DisassociateInstanceEventWindowCommand").f(void 0, void 0).ser(se_DisassociateInstanceEventWindowCommand).de(de_DisassociateInstanceEventWindowCommand).build() {
      static {
        __name(this, "DisassociateInstanceEventWindowCommand");
      }
      static {
        __name2(this, "DisassociateInstanceEventWindowCommand");
      }
    };
    var DisassociateIpamByoasnCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DisassociateIpamByoasn", {}).n("EC2Client", "DisassociateIpamByoasnCommand").f(void 0, void 0).ser(se_DisassociateIpamByoasnCommand).de(de_DisassociateIpamByoasnCommand).build() {
      static {
        __name(this, "DisassociateIpamByoasnCommand");
      }
      static {
        __name2(this, "DisassociateIpamByoasnCommand");
      }
    };
    var DisassociateIpamResourceDiscoveryCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DisassociateIpamResourceDiscovery", {}).n("EC2Client", "DisassociateIpamResourceDiscoveryCommand").f(void 0, void 0).ser(se_DisassociateIpamResourceDiscoveryCommand).de(de_DisassociateIpamResourceDiscoveryCommand).build() {
      static {
        __name(this, "DisassociateIpamResourceDiscoveryCommand");
      }
      static {
        __name2(this, "DisassociateIpamResourceDiscoveryCommand");
      }
    };
    var DisassociateNatGatewayAddressCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DisassociateNatGatewayAddress", {}).n("EC2Client", "DisassociateNatGatewayAddressCommand").f(void 0, void 0).ser(se_DisassociateNatGatewayAddressCommand).de(de_DisassociateNatGatewayAddressCommand).build() {
      static {
        __name(this, "DisassociateNatGatewayAddressCommand");
      }
      static {
        __name2(this, "DisassociateNatGatewayAddressCommand");
      }
    };
    var DisassociateRouteServerCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DisassociateRouteServer", {}).n("EC2Client", "DisassociateRouteServerCommand").f(void 0, void 0).ser(se_DisassociateRouteServerCommand).de(de_DisassociateRouteServerCommand).build() {
      static {
        __name(this, "DisassociateRouteServerCommand");
      }
      static {
        __name2(this, "DisassociateRouteServerCommand");
      }
    };
    var DisassociateRouteTableCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DisassociateRouteTable", {}).n("EC2Client", "DisassociateRouteTableCommand").f(void 0, void 0).ser(se_DisassociateRouteTableCommand).de(de_DisassociateRouteTableCommand).build() {
      static {
        __name(this, "DisassociateRouteTableCommand");
      }
      static {
        __name2(this, "DisassociateRouteTableCommand");
      }
    };
    var DisassociateSecurityGroupVpcCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DisassociateSecurityGroupVpc", {}).n("EC2Client", "DisassociateSecurityGroupVpcCommand").f(void 0, void 0).ser(se_DisassociateSecurityGroupVpcCommand).de(de_DisassociateSecurityGroupVpcCommand).build() {
      static {
        __name(this, "DisassociateSecurityGroupVpcCommand");
      }
      static {
        __name2(this, "DisassociateSecurityGroupVpcCommand");
      }
    };
    var DisassociateSubnetCidrBlockCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DisassociateSubnetCidrBlock", {}).n("EC2Client", "DisassociateSubnetCidrBlockCommand").f(void 0, void 0).ser(se_DisassociateSubnetCidrBlockCommand).de(de_DisassociateSubnetCidrBlockCommand).build() {
      static {
        __name(this, "DisassociateSubnetCidrBlockCommand");
      }
      static {
        __name2(this, "DisassociateSubnetCidrBlockCommand");
      }
    };
    var DisassociateTransitGatewayMulticastDomainCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DisassociateTransitGatewayMulticastDomain", {}).n("EC2Client", "DisassociateTransitGatewayMulticastDomainCommand").f(void 0, void 0).ser(se_DisassociateTransitGatewayMulticastDomainCommand).de(de_DisassociateTransitGatewayMulticastDomainCommand).build() {
      static {
        __name(this, "DisassociateTransitGatewayMulticastDomainCommand");
      }
      static {
        __name2(this, "DisassociateTransitGatewayMulticastDomainCommand");
      }
    };
    var DisassociateTransitGatewayPolicyTableCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DisassociateTransitGatewayPolicyTable", {}).n("EC2Client", "DisassociateTransitGatewayPolicyTableCommand").f(void 0, void 0).ser(se_DisassociateTransitGatewayPolicyTableCommand).de(de_DisassociateTransitGatewayPolicyTableCommand).build() {
      static {
        __name(this, "DisassociateTransitGatewayPolicyTableCommand");
      }
      static {
        __name2(this, "DisassociateTransitGatewayPolicyTableCommand");
      }
    };
    var DisassociateTransitGatewayRouteTableCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DisassociateTransitGatewayRouteTable", {}).n("EC2Client", "DisassociateTransitGatewayRouteTableCommand").f(void 0, void 0).ser(se_DisassociateTransitGatewayRouteTableCommand).de(de_DisassociateTransitGatewayRouteTableCommand).build() {
      static {
        __name(this, "DisassociateTransitGatewayRouteTableCommand");
      }
      static {
        __name2(this, "DisassociateTransitGatewayRouteTableCommand");
      }
    };
    var DisassociateTrunkInterfaceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DisassociateTrunkInterface", {}).n("EC2Client", "DisassociateTrunkInterfaceCommand").f(void 0, void 0).ser(se_DisassociateTrunkInterfaceCommand).de(de_DisassociateTrunkInterfaceCommand).build() {
      static {
        __name(this, "DisassociateTrunkInterfaceCommand");
      }
      static {
        __name2(this, "DisassociateTrunkInterfaceCommand");
      }
    };
    var DisassociateVpcCidrBlockCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "DisassociateVpcCidrBlock", {}).n("EC2Client", "DisassociateVpcCidrBlockCommand").f(void 0, void 0).ser(se_DisassociateVpcCidrBlockCommand).de(de_DisassociateVpcCidrBlockCommand).build() {
      static {
        __name(this, "DisassociateVpcCidrBlockCommand");
      }
      static {
        __name2(this, "DisassociateVpcCidrBlockCommand");
      }
    };
    var EnableAddressTransferCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "EnableAddressTransfer", {}).n("EC2Client", "EnableAddressTransferCommand").f(void 0, void 0).ser(se_EnableAddressTransferCommand).de(de_EnableAddressTransferCommand).build() {
      static {
        __name(this, "EnableAddressTransferCommand");
      }
      static {
        __name2(this, "EnableAddressTransferCommand");
      }
    };
    var EnableAllowedImagesSettingsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "EnableAllowedImagesSettings", {}).n("EC2Client", "EnableAllowedImagesSettingsCommand").f(void 0, void 0).ser(se_EnableAllowedImagesSettingsCommand).de(de_EnableAllowedImagesSettingsCommand).build() {
      static {
        __name(this, "EnableAllowedImagesSettingsCommand");
      }
      static {
        __name2(this, "EnableAllowedImagesSettingsCommand");
      }
    };
    var EnableAwsNetworkPerformanceMetricSubscriptionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "EnableAwsNetworkPerformanceMetricSubscription", {}).n("EC2Client", "EnableAwsNetworkPerformanceMetricSubscriptionCommand").f(void 0, void 0).ser(se_EnableAwsNetworkPerformanceMetricSubscriptionCommand).de(de_EnableAwsNetworkPerformanceMetricSubscriptionCommand).build() {
      static {
        __name(this, "EnableAwsNetworkPerformanceMetricSubscriptionCommand");
      }
      static {
        __name2(this, "EnableAwsNetworkPerformanceMetricSubscriptionCommand");
      }
    };
    var EnableEbsEncryptionByDefaultCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "EnableEbsEncryptionByDefault", {}).n("EC2Client", "EnableEbsEncryptionByDefaultCommand").f(void 0, void 0).ser(se_EnableEbsEncryptionByDefaultCommand).de(de_EnableEbsEncryptionByDefaultCommand).build() {
      static {
        __name(this, "EnableEbsEncryptionByDefaultCommand");
      }
      static {
        __name2(this, "EnableEbsEncryptionByDefaultCommand");
      }
    };
    var EnableFastLaunchCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "EnableFastLaunch", {}).n("EC2Client", "EnableFastLaunchCommand").f(void 0, void 0).ser(se_EnableFastLaunchCommand).de(de_EnableFastLaunchCommand).build() {
      static {
        __name(this, "EnableFastLaunchCommand");
      }
      static {
        __name2(this, "EnableFastLaunchCommand");
      }
    };
    var EnableFastSnapshotRestoresCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "EnableFastSnapshotRestores", {}).n("EC2Client", "EnableFastSnapshotRestoresCommand").f(void 0, void 0).ser(se_EnableFastSnapshotRestoresCommand).de(de_EnableFastSnapshotRestoresCommand).build() {
      static {
        __name(this, "EnableFastSnapshotRestoresCommand");
      }
      static {
        __name2(this, "EnableFastSnapshotRestoresCommand");
      }
    };
    var EnableImageBlockPublicAccessCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "EnableImageBlockPublicAccess", {}).n("EC2Client", "EnableImageBlockPublicAccessCommand").f(void 0, void 0).ser(se_EnableImageBlockPublicAccessCommand).de(de_EnableImageBlockPublicAccessCommand).build() {
      static {
        __name(this, "EnableImageBlockPublicAccessCommand");
      }
      static {
        __name2(this, "EnableImageBlockPublicAccessCommand");
      }
    };
    var EnableImageCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "EnableImage", {}).n("EC2Client", "EnableImageCommand").f(void 0, void 0).ser(se_EnableImageCommand).de(de_EnableImageCommand).build() {
      static {
        __name(this, "EnableImageCommand");
      }
      static {
        __name2(this, "EnableImageCommand");
      }
    };
    var EnableImageDeprecationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "EnableImageDeprecation", {}).n("EC2Client", "EnableImageDeprecationCommand").f(void 0, void 0).ser(se_EnableImageDeprecationCommand).de(de_EnableImageDeprecationCommand).build() {
      static {
        __name(this, "EnableImageDeprecationCommand");
      }
      static {
        __name2(this, "EnableImageDeprecationCommand");
      }
    };
    var EnableImageDeregistrationProtectionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "EnableImageDeregistrationProtection", {}).n("EC2Client", "EnableImageDeregistrationProtectionCommand").f(void 0, void 0).ser(se_EnableImageDeregistrationProtectionCommand).de(de_EnableImageDeregistrationProtectionCommand).build() {
      static {
        __name(this, "EnableImageDeregistrationProtectionCommand");
      }
      static {
        __name2(this, "EnableImageDeregistrationProtectionCommand");
      }
    };
    var EnableIpamOrganizationAdminAccountCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "EnableIpamOrganizationAdminAccount", {}).n("EC2Client", "EnableIpamOrganizationAdminAccountCommand").f(void 0, void 0).ser(se_EnableIpamOrganizationAdminAccountCommand).de(de_EnableIpamOrganizationAdminAccountCommand).build() {
      static {
        __name(this, "EnableIpamOrganizationAdminAccountCommand");
      }
      static {
        __name2(this, "EnableIpamOrganizationAdminAccountCommand");
      }
    };
    var EnableReachabilityAnalyzerOrganizationSharingCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "EnableReachabilityAnalyzerOrganizationSharing", {}).n("EC2Client", "EnableReachabilityAnalyzerOrganizationSharingCommand").f(void 0, void 0).ser(se_EnableReachabilityAnalyzerOrganizationSharingCommand).de(de_EnableReachabilityAnalyzerOrganizationSharingCommand).build() {
      static {
        __name(this, "EnableReachabilityAnalyzerOrganizationSharingCommand");
      }
      static {
        __name2(this, "EnableReachabilityAnalyzerOrganizationSharingCommand");
      }
    };
    var EnableRouteServerPropagationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "EnableRouteServerPropagation", {}).n("EC2Client", "EnableRouteServerPropagationCommand").f(void 0, void 0).ser(se_EnableRouteServerPropagationCommand).de(de_EnableRouteServerPropagationCommand).build() {
      static {
        __name(this, "EnableRouteServerPropagationCommand");
      }
      static {
        __name2(this, "EnableRouteServerPropagationCommand");
      }
    };
    var EnableSerialConsoleAccessCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "EnableSerialConsoleAccess", {}).n("EC2Client", "EnableSerialConsoleAccessCommand").f(void 0, void 0).ser(se_EnableSerialConsoleAccessCommand).de(de_EnableSerialConsoleAccessCommand).build() {
      static {
        __name(this, "EnableSerialConsoleAccessCommand");
      }
      static {
        __name2(this, "EnableSerialConsoleAccessCommand");
      }
    };
    var EnableSnapshotBlockPublicAccessCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "EnableSnapshotBlockPublicAccess", {}).n("EC2Client", "EnableSnapshotBlockPublicAccessCommand").f(void 0, void 0).ser(se_EnableSnapshotBlockPublicAccessCommand).de(de_EnableSnapshotBlockPublicAccessCommand).build() {
      static {
        __name(this, "EnableSnapshotBlockPublicAccessCommand");
      }
      static {
        __name2(this, "EnableSnapshotBlockPublicAccessCommand");
      }
    };
    var EnableTransitGatewayRouteTablePropagationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "EnableTransitGatewayRouteTablePropagation", {}).n("EC2Client", "EnableTransitGatewayRouteTablePropagationCommand").f(void 0, void 0).ser(se_EnableTransitGatewayRouteTablePropagationCommand).de(de_EnableTransitGatewayRouteTablePropagationCommand).build() {
      static {
        __name(this, "EnableTransitGatewayRouteTablePropagationCommand");
      }
      static {
        __name2(this, "EnableTransitGatewayRouteTablePropagationCommand");
      }
    };
    var EnableVgwRoutePropagationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "EnableVgwRoutePropagation", {}).n("EC2Client", "EnableVgwRoutePropagationCommand").f(void 0, void 0).ser(se_EnableVgwRoutePropagationCommand).de(de_EnableVgwRoutePropagationCommand).build() {
      static {
        __name(this, "EnableVgwRoutePropagationCommand");
      }
      static {
        __name2(this, "EnableVgwRoutePropagationCommand");
      }
    };
    var EnableVolumeIOCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "EnableVolumeIO", {}).n("EC2Client", "EnableVolumeIOCommand").f(void 0, void 0).ser(se_EnableVolumeIOCommand).de(de_EnableVolumeIOCommand).build() {
      static {
        __name(this, "EnableVolumeIOCommand");
      }
      static {
        __name2(this, "EnableVolumeIOCommand");
      }
    };
    var EnableVpcClassicLinkCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "EnableVpcClassicLink", {}).n("EC2Client", "EnableVpcClassicLinkCommand").f(void 0, void 0).ser(se_EnableVpcClassicLinkCommand).de(de_EnableVpcClassicLinkCommand).build() {
      static {
        __name(this, "EnableVpcClassicLinkCommand");
      }
      static {
        __name2(this, "EnableVpcClassicLinkCommand");
      }
    };
    var EnableVpcClassicLinkDnsSupportCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "EnableVpcClassicLinkDnsSupport", {}).n("EC2Client", "EnableVpcClassicLinkDnsSupportCommand").f(void 0, void 0).ser(se_EnableVpcClassicLinkDnsSupportCommand).de(de_EnableVpcClassicLinkDnsSupportCommand).build() {
      static {
        __name(this, "EnableVpcClassicLinkDnsSupportCommand");
      }
      static {
        __name2(this, "EnableVpcClassicLinkDnsSupportCommand");
      }
    };
    var ExportClientVpnClientCertificateRevocationListCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ExportClientVpnClientCertificateRevocationList", {}).n("EC2Client", "ExportClientVpnClientCertificateRevocationListCommand").f(void 0, void 0).ser(se_ExportClientVpnClientCertificateRevocationListCommand).de(de_ExportClientVpnClientCertificateRevocationListCommand).build() {
      static {
        __name(this, "ExportClientVpnClientCertificateRevocationListCommand");
      }
      static {
        __name2(this, "ExportClientVpnClientCertificateRevocationListCommand");
      }
    };
    var ExportClientVpnClientConfigurationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ExportClientVpnClientConfiguration", {}).n("EC2Client", "ExportClientVpnClientConfigurationCommand").f(void 0, void 0).ser(se_ExportClientVpnClientConfigurationCommand).de(de_ExportClientVpnClientConfigurationCommand).build() {
      static {
        __name(this, "ExportClientVpnClientConfigurationCommand");
      }
      static {
        __name2(this, "ExportClientVpnClientConfigurationCommand");
      }
    };
    var ExportImageCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ExportImage", {}).n("EC2Client", "ExportImageCommand").f(void 0, void 0).ser(se_ExportImageCommand).de(de_ExportImageCommand).build() {
      static {
        __name(this, "ExportImageCommand");
      }
      static {
        __name2(this, "ExportImageCommand");
      }
    };
    var ExportTransitGatewayRoutesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ExportTransitGatewayRoutes", {}).n("EC2Client", "ExportTransitGatewayRoutesCommand").f(void 0, void 0).ser(se_ExportTransitGatewayRoutesCommand).de(de_ExportTransitGatewayRoutesCommand).build() {
      static {
        __name(this, "ExportTransitGatewayRoutesCommand");
      }
      static {
        __name2(this, "ExportTransitGatewayRoutesCommand");
      }
    };
    var ExportVerifiedAccessInstanceClientConfigurationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ExportVerifiedAccessInstanceClientConfiguration", {}).n("EC2Client", "ExportVerifiedAccessInstanceClientConfigurationCommand").f(void 0, ExportVerifiedAccessInstanceClientConfigurationResultFilterSensitiveLog).ser(se_ExportVerifiedAccessInstanceClientConfigurationCommand).de(de_ExportVerifiedAccessInstanceClientConfigurationCommand).build() {
      static {
        __name(this, "ExportVerifiedAccessInstanceClientConfigurationCommand");
      }
      static {
        __name2(this, "ExportVerifiedAccessInstanceClientConfigurationCommand");
      }
    };
    var GetActiveVpnTunnelStatusCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "GetActiveVpnTunnelStatus", {}).n("EC2Client", "GetActiveVpnTunnelStatusCommand").f(void 0, void 0).ser(se_GetActiveVpnTunnelStatusCommand).de(de_GetActiveVpnTunnelStatusCommand).build() {
      static {
        __name(this, "GetActiveVpnTunnelStatusCommand");
      }
      static {
        __name2(this, "GetActiveVpnTunnelStatusCommand");
      }
    };
    var GetAllowedImagesSettingsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "GetAllowedImagesSettings", {}).n("EC2Client", "GetAllowedImagesSettingsCommand").f(void 0, void 0).ser(se_GetAllowedImagesSettingsCommand).de(de_GetAllowedImagesSettingsCommand).build() {
      static {
        __name(this, "GetAllowedImagesSettingsCommand");
      }
      static {
        __name2(this, "GetAllowedImagesSettingsCommand");
      }
    };
    var GetAssociatedEnclaveCertificateIamRolesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "GetAssociatedEnclaveCertificateIamRoles", {}).n("EC2Client", "GetAssociatedEnclaveCertificateIamRolesCommand").f(void 0, void 0).ser(se_GetAssociatedEnclaveCertificateIamRolesCommand).de(de_GetAssociatedEnclaveCertificateIamRolesCommand).build() {
      static {
        __name(this, "GetAssociatedEnclaveCertificateIamRolesCommand");
      }
      static {
        __name2(this, "GetAssociatedEnclaveCertificateIamRolesCommand");
      }
    };
    var GetAssociatedIpv6PoolCidrsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "GetAssociatedIpv6PoolCidrs", {}).n("EC2Client", "GetAssociatedIpv6PoolCidrsCommand").f(void 0, void 0).ser(se_GetAssociatedIpv6PoolCidrsCommand).de(de_GetAssociatedIpv6PoolCidrsCommand).build() {
      static {
        __name(this, "GetAssociatedIpv6PoolCidrsCommand");
      }
      static {
        __name2(this, "GetAssociatedIpv6PoolCidrsCommand");
      }
    };
    var GetAwsNetworkPerformanceDataCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "GetAwsNetworkPerformanceData", {}).n("EC2Client", "GetAwsNetworkPerformanceDataCommand").f(void 0, void 0).ser(se_GetAwsNetworkPerformanceDataCommand).de(de_GetAwsNetworkPerformanceDataCommand).build() {
      static {
        __name(this, "GetAwsNetworkPerformanceDataCommand");
      }
      static {
        __name2(this, "GetAwsNetworkPerformanceDataCommand");
      }
    };
    var GetCapacityReservationUsageCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "GetCapacityReservationUsage", {}).n("EC2Client", "GetCapacityReservationUsageCommand").f(void 0, void 0).ser(se_GetCapacityReservationUsageCommand).de(de_GetCapacityReservationUsageCommand).build() {
      static {
        __name(this, "GetCapacityReservationUsageCommand");
      }
      static {
        __name2(this, "GetCapacityReservationUsageCommand");
      }
    };
    var GetCoipPoolUsageCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "GetCoipPoolUsage", {}).n("EC2Client", "GetCoipPoolUsageCommand").f(void 0, void 0).ser(se_GetCoipPoolUsageCommand).de(de_GetCoipPoolUsageCommand).build() {
      static {
        __name(this, "GetCoipPoolUsageCommand");
      }
      static {
        __name2(this, "GetCoipPoolUsageCommand");
      }
    };
    var GetConsoleOutputCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "GetConsoleOutput", {}).n("EC2Client", "GetConsoleOutputCommand").f(void 0, void 0).ser(se_GetConsoleOutputCommand).de(de_GetConsoleOutputCommand).build() {
      static {
        __name(this, "GetConsoleOutputCommand");
      }
      static {
        __name2(this, "GetConsoleOutputCommand");
      }
    };
    var GetConsoleScreenshotCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "GetConsoleScreenshot", {}).n("EC2Client", "GetConsoleScreenshotCommand").f(void 0, void 0).ser(se_GetConsoleScreenshotCommand).de(de_GetConsoleScreenshotCommand).build() {
      static {
        __name(this, "GetConsoleScreenshotCommand");
      }
      static {
        __name2(this, "GetConsoleScreenshotCommand");
      }
    };
    var GetDeclarativePoliciesReportSummaryCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "GetDeclarativePoliciesReportSummary", {}).n("EC2Client", "GetDeclarativePoliciesReportSummaryCommand").f(void 0, void 0).ser(se_GetDeclarativePoliciesReportSummaryCommand).de(de_GetDeclarativePoliciesReportSummaryCommand).build() {
      static {
        __name(this, "GetDeclarativePoliciesReportSummaryCommand");
      }
      static {
        __name2(this, "GetDeclarativePoliciesReportSummaryCommand");
      }
    };
    var GetDefaultCreditSpecificationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "GetDefaultCreditSpecification", {}).n("EC2Client", "GetDefaultCreditSpecificationCommand").f(void 0, void 0).ser(se_GetDefaultCreditSpecificationCommand).de(de_GetDefaultCreditSpecificationCommand).build() {
      static {
        __name(this, "GetDefaultCreditSpecificationCommand");
      }
      static {
        __name2(this, "GetDefaultCreditSpecificationCommand");
      }
    };
    var GetEbsDefaultKmsKeyIdCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "GetEbsDefaultKmsKeyId", {}).n("EC2Client", "GetEbsDefaultKmsKeyIdCommand").f(void 0, void 0).ser(se_GetEbsDefaultKmsKeyIdCommand).de(de_GetEbsDefaultKmsKeyIdCommand).build() {
      static {
        __name(this, "GetEbsDefaultKmsKeyIdCommand");
      }
      static {
        __name2(this, "GetEbsDefaultKmsKeyIdCommand");
      }
    };
    var GetEbsEncryptionByDefaultCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "GetEbsEncryptionByDefault", {}).n("EC2Client", "GetEbsEncryptionByDefaultCommand").f(void 0, void 0).ser(se_GetEbsEncryptionByDefaultCommand).de(de_GetEbsEncryptionByDefaultCommand).build() {
      static {
        __name(this, "GetEbsEncryptionByDefaultCommand");
      }
      static {
        __name2(this, "GetEbsEncryptionByDefaultCommand");
      }
    };
    var GetFlowLogsIntegrationTemplateCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "GetFlowLogsIntegrationTemplate", {}).n("EC2Client", "GetFlowLogsIntegrationTemplateCommand").f(void 0, void 0).ser(se_GetFlowLogsIntegrationTemplateCommand).de(de_GetFlowLogsIntegrationTemplateCommand).build() {
      static {
        __name(this, "GetFlowLogsIntegrationTemplateCommand");
      }
      static {
        __name2(this, "GetFlowLogsIntegrationTemplateCommand");
      }
    };
    var GetGroupsForCapacityReservationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "GetGroupsForCapacityReservation", {}).n("EC2Client", "GetGroupsForCapacityReservationCommand").f(void 0, void 0).ser(se_GetGroupsForCapacityReservationCommand).de(de_GetGroupsForCapacityReservationCommand).build() {
      static {
        __name(this, "GetGroupsForCapacityReservationCommand");
      }
      static {
        __name2(this, "GetGroupsForCapacityReservationCommand");
      }
    };
    var GetHostReservationPurchasePreviewCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "GetHostReservationPurchasePreview", {}).n("EC2Client", "GetHostReservationPurchasePreviewCommand").f(void 0, void 0).ser(se_GetHostReservationPurchasePreviewCommand).de(de_GetHostReservationPurchasePreviewCommand).build() {
      static {
        __name(this, "GetHostReservationPurchasePreviewCommand");
      }
      static {
        __name2(this, "GetHostReservationPurchasePreviewCommand");
      }
    };
    var GetImageBlockPublicAccessStateCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "GetImageBlockPublicAccessState", {}).n("EC2Client", "GetImageBlockPublicAccessStateCommand").f(void 0, void 0).ser(se_GetImageBlockPublicAccessStateCommand).de(de_GetImageBlockPublicAccessStateCommand).build() {
      static {
        __name(this, "GetImageBlockPublicAccessStateCommand");
      }
      static {
        __name2(this, "GetImageBlockPublicAccessStateCommand");
      }
    };
    var GetInstanceMetadataDefaultsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "GetInstanceMetadataDefaults", {}).n("EC2Client", "GetInstanceMetadataDefaultsCommand").f(void 0, void 0).ser(se_GetInstanceMetadataDefaultsCommand).de(de_GetInstanceMetadataDefaultsCommand).build() {
      static {
        __name(this, "GetInstanceMetadataDefaultsCommand");
      }
      static {
        __name2(this, "GetInstanceMetadataDefaultsCommand");
      }
    };
    var GetInstanceTpmEkPubCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "GetInstanceTpmEkPub", {}).n("EC2Client", "GetInstanceTpmEkPubCommand").f(void 0, GetInstanceTpmEkPubResultFilterSensitiveLog).ser(se_GetInstanceTpmEkPubCommand).de(de_GetInstanceTpmEkPubCommand).build() {
      static {
        __name(this, "GetInstanceTpmEkPubCommand");
      }
      static {
        __name2(this, "GetInstanceTpmEkPubCommand");
      }
    };
    var GetInstanceTypesFromInstanceRequirementsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "GetInstanceTypesFromInstanceRequirements", {}).n("EC2Client", "GetInstanceTypesFromInstanceRequirementsCommand").f(void 0, void 0).ser(se_GetInstanceTypesFromInstanceRequirementsCommand).de(de_GetInstanceTypesFromInstanceRequirementsCommand).build() {
      static {
        __name(this, "GetInstanceTypesFromInstanceRequirementsCommand");
      }
      static {
        __name2(this, "GetInstanceTypesFromInstanceRequirementsCommand");
      }
    };
    var GetInstanceUefiDataCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "GetInstanceUefiData", {}).n("EC2Client", "GetInstanceUefiDataCommand").f(void 0, void 0).ser(se_GetInstanceUefiDataCommand).de(de_GetInstanceUefiDataCommand).build() {
      static {
        __name(this, "GetInstanceUefiDataCommand");
      }
      static {
        __name2(this, "GetInstanceUefiDataCommand");
      }
    };
    var GetIpamAddressHistoryCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "GetIpamAddressHistory", {}).n("EC2Client", "GetIpamAddressHistoryCommand").f(void 0, void 0).ser(se_GetIpamAddressHistoryCommand).de(de_GetIpamAddressHistoryCommand).build() {
      static {
        __name(this, "GetIpamAddressHistoryCommand");
      }
      static {
        __name2(this, "GetIpamAddressHistoryCommand");
      }
    };
    var GetIpamDiscoveredAccountsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "GetIpamDiscoveredAccounts", {}).n("EC2Client", "GetIpamDiscoveredAccountsCommand").f(void 0, void 0).ser(se_GetIpamDiscoveredAccountsCommand).de(de_GetIpamDiscoveredAccountsCommand).build() {
      static {
        __name(this, "GetIpamDiscoveredAccountsCommand");
      }
      static {
        __name2(this, "GetIpamDiscoveredAccountsCommand");
      }
    };
    var GetIpamDiscoveredPublicAddressesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "GetIpamDiscoveredPublicAddresses", {}).n("EC2Client", "GetIpamDiscoveredPublicAddressesCommand").f(void 0, void 0).ser(se_GetIpamDiscoveredPublicAddressesCommand).de(de_GetIpamDiscoveredPublicAddressesCommand).build() {
      static {
        __name(this, "GetIpamDiscoveredPublicAddressesCommand");
      }
      static {
        __name2(this, "GetIpamDiscoveredPublicAddressesCommand");
      }
    };
    var GetIpamDiscoveredResourceCidrsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "GetIpamDiscoveredResourceCidrs", {}).n("EC2Client", "GetIpamDiscoveredResourceCidrsCommand").f(void 0, void 0).ser(se_GetIpamDiscoveredResourceCidrsCommand).de(de_GetIpamDiscoveredResourceCidrsCommand).build() {
      static {
        __name(this, "GetIpamDiscoveredResourceCidrsCommand");
      }
      static {
        __name2(this, "GetIpamDiscoveredResourceCidrsCommand");
      }
    };
    var GetIpamPoolAllocationsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "GetIpamPoolAllocations", {}).n("EC2Client", "GetIpamPoolAllocationsCommand").f(void 0, void 0).ser(se_GetIpamPoolAllocationsCommand).de(de_GetIpamPoolAllocationsCommand).build() {
      static {
        __name(this, "GetIpamPoolAllocationsCommand");
      }
      static {
        __name2(this, "GetIpamPoolAllocationsCommand");
      }
    };
    var GetIpamPoolCidrsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "GetIpamPoolCidrs", {}).n("EC2Client", "GetIpamPoolCidrsCommand").f(void 0, void 0).ser(se_GetIpamPoolCidrsCommand).de(de_GetIpamPoolCidrsCommand).build() {
      static {
        __name(this, "GetIpamPoolCidrsCommand");
      }
      static {
        __name2(this, "GetIpamPoolCidrsCommand");
      }
    };
    var GetIpamResourceCidrsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "GetIpamResourceCidrs", {}).n("EC2Client", "GetIpamResourceCidrsCommand").f(void 0, void 0).ser(se_GetIpamResourceCidrsCommand).de(de_GetIpamResourceCidrsCommand).build() {
      static {
        __name(this, "GetIpamResourceCidrsCommand");
      }
      static {
        __name2(this, "GetIpamResourceCidrsCommand");
      }
    };
    var GetLaunchTemplateDataCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "GetLaunchTemplateData", {}).n("EC2Client", "GetLaunchTemplateDataCommand").f(void 0, GetLaunchTemplateDataResultFilterSensitiveLog).ser(se_GetLaunchTemplateDataCommand).de(de_GetLaunchTemplateDataCommand).build() {
      static {
        __name(this, "GetLaunchTemplateDataCommand");
      }
      static {
        __name2(this, "GetLaunchTemplateDataCommand");
      }
    };
    var GetManagedPrefixListAssociationsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "GetManagedPrefixListAssociations", {}).n("EC2Client", "GetManagedPrefixListAssociationsCommand").f(void 0, void 0).ser(se_GetManagedPrefixListAssociationsCommand).de(de_GetManagedPrefixListAssociationsCommand).build() {
      static {
        __name(this, "GetManagedPrefixListAssociationsCommand");
      }
      static {
        __name2(this, "GetManagedPrefixListAssociationsCommand");
      }
    };
    var GetManagedPrefixListEntriesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "GetManagedPrefixListEntries", {}).n("EC2Client", "GetManagedPrefixListEntriesCommand").f(void 0, void 0).ser(se_GetManagedPrefixListEntriesCommand).de(de_GetManagedPrefixListEntriesCommand).build() {
      static {
        __name(this, "GetManagedPrefixListEntriesCommand");
      }
      static {
        __name2(this, "GetManagedPrefixListEntriesCommand");
      }
    };
    var GetNetworkInsightsAccessScopeAnalysisFindingsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "GetNetworkInsightsAccessScopeAnalysisFindings", {}).n("EC2Client", "GetNetworkInsightsAccessScopeAnalysisFindingsCommand").f(void 0, void 0).ser(se_GetNetworkInsightsAccessScopeAnalysisFindingsCommand).de(de_GetNetworkInsightsAccessScopeAnalysisFindingsCommand).build() {
      static {
        __name(this, "GetNetworkInsightsAccessScopeAnalysisFindingsCommand");
      }
      static {
        __name2(this, "GetNetworkInsightsAccessScopeAnalysisFindingsCommand");
      }
    };
    var GetNetworkInsightsAccessScopeContentCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "GetNetworkInsightsAccessScopeContent", {}).n("EC2Client", "GetNetworkInsightsAccessScopeContentCommand").f(void 0, void 0).ser(se_GetNetworkInsightsAccessScopeContentCommand).de(de_GetNetworkInsightsAccessScopeContentCommand).build() {
      static {
        __name(this, "GetNetworkInsightsAccessScopeContentCommand");
      }
      static {
        __name2(this, "GetNetworkInsightsAccessScopeContentCommand");
      }
    };
    var RouteServerRouteInstallationStatus = {
      INSTALLED: "installed",
      REJECTED: "rejected"
    };
    var RouteServerRouteStatus = {
      IN_FIB: "in-fib",
      IN_RIB: "in-rib"
    };
    var LockMode = {
      compliance: "compliance",
      governance: "governance"
    };
    var ModifyAvailabilityZoneOptInStatus = {
      not_opted_in: "not-opted-in",
      opted_in: "opted-in"
    };
    var OperationType = {
      add: "add",
      remove: "remove"
    };
    var UnsuccessfulInstanceCreditSpecificationErrorCode = {
      INCORRECT_INSTANCE_STATE: "IncorrectInstanceState",
      INSTANCE_CREDIT_SPECIFICATION_NOT_SUPPORTED: "InstanceCreditSpecification.NotSupported",
      INSTANCE_NOT_FOUND: "InvalidInstanceID.NotFound",
      INVALID_INSTANCE_ID: "InvalidInstanceID.Malformed"
    };
    var DefaultInstanceMetadataEndpointState = {
      disabled: "disabled",
      enabled: "enabled",
      no_preference: "no-preference"
    };
    var MetadataDefaultHttpTokensState = {
      no_preference: "no-preference",
      optional: "optional",
      required: "required"
    };
    var DefaultInstanceMetadataTagsState = {
      disabled: "disabled",
      enabled: "enabled",
      no_preference: "no-preference"
    };
    var HostTenancy = {
      dedicated: "dedicated",
      default: "default",
      host: "host"
    };
    var PublicIpDnsOption = {
      public_dual_stack_dns_name: "public-dual-stack-dns-name",
      public_ipv4_dns_name: "public-ipv4-dns-name",
      public_ipv6_dns_name: "public-ipv6-dns-name"
    };
    var TargetStorageTier = {
      archive: "archive"
    };
    var TrafficMirrorFilterRuleField = {
      description: "description",
      destination_port_range: "destination-port-range",
      protocol: "protocol",
      source_port_range: "source-port-range"
    };
    var TrafficMirrorSessionField = {
      description: "description",
      packet_length: "packet-length",
      virtual_network_id: "virtual-network-id"
    };
    var VpcTenancy = {
      default: "default"
    };
    var Status = {
      inClassic: "InClassic",
      inVpc: "InVpc",
      moveInProgress: "MoveInProgress"
    };
    var VerificationMethod = {
      dns_token: "dns-token",
      remarks_x509: "remarks-x509"
    };
    var GetPasswordDataResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.PasswordData && { PasswordData: import_smithy_client28.SENSITIVE_STRING }
    }), "GetPasswordDataResultFilterSensitiveLog");
    var GetVpnConnectionDeviceSampleConfigurationResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.VpnConnectionDeviceSampleConfiguration && { VpnConnectionDeviceSampleConfiguration: import_smithy_client28.SENSITIVE_STRING }
    }), "GetVpnConnectionDeviceSampleConfigurationResultFilterSensitiveLog");
    var ImageDiskContainerFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Url && { Url: import_smithy_client28.SENSITIVE_STRING }
    }), "ImageDiskContainerFilterSensitiveLog");
    var ImportImageRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.DiskContainers && {
        DiskContainers: obj.DiskContainers.map((item) => ImageDiskContainerFilterSensitiveLog(item))
      }
    }), "ImportImageRequestFilterSensitiveLog");
    var ImportImageResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.SnapshotDetails && {
        SnapshotDetails: obj.SnapshotDetails.map((item) => SnapshotDetailFilterSensitiveLog(item))
      }
    }), "ImportImageResultFilterSensitiveLog");
    var DiskImageDetailFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.ImportManifestUrl && { ImportManifestUrl: import_smithy_client28.SENSITIVE_STRING }
    }), "DiskImageDetailFilterSensitiveLog");
    var DiskImageFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Image && { Image: DiskImageDetailFilterSensitiveLog(obj.Image) }
    }), "DiskImageFilterSensitiveLog");
    var UserDataFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj
    }), "UserDataFilterSensitiveLog");
    var ImportInstanceLaunchSpecificationFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.UserData && { UserData: import_smithy_client28.SENSITIVE_STRING }
    }), "ImportInstanceLaunchSpecificationFilterSensitiveLog");
    var ImportInstanceRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.LaunchSpecification && {
        LaunchSpecification: ImportInstanceLaunchSpecificationFilterSensitiveLog(obj.LaunchSpecification)
      },
      ...obj.DiskImages && { DiskImages: obj.DiskImages.map((item) => DiskImageFilterSensitiveLog(item)) }
    }), "ImportInstanceRequestFilterSensitiveLog");
    var ImportInstanceResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.ConversionTask && { ConversionTask: ConversionTaskFilterSensitiveLog(obj.ConversionTask) }
    }), "ImportInstanceResultFilterSensitiveLog");
    var SnapshotDiskContainerFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Url && { Url: import_smithy_client28.SENSITIVE_STRING }
    }), "SnapshotDiskContainerFilterSensitiveLog");
    var ImportSnapshotRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.DiskContainer && { DiskContainer: SnapshotDiskContainerFilterSensitiveLog(obj.DiskContainer) }
    }), "ImportSnapshotRequestFilterSensitiveLog");
    var ImportSnapshotResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.SnapshotTaskDetail && { SnapshotTaskDetail: SnapshotTaskDetailFilterSensitiveLog(obj.SnapshotTaskDetail) }
    }), "ImportSnapshotResultFilterSensitiveLog");
    var ImportVolumeRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Image && { Image: DiskImageDetailFilterSensitiveLog(obj.Image) }
    }), "ImportVolumeRequestFilterSensitiveLog");
    var ImportVolumeResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.ConversionTask && { ConversionTask: ConversionTaskFilterSensitiveLog(obj.ConversionTask) }
    }), "ImportVolumeResultFilterSensitiveLog");
    var ModifyVerifiedAccessNativeApplicationOidcOptionsFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.ClientSecret && { ClientSecret: import_smithy_client28.SENSITIVE_STRING }
    }), "ModifyVerifiedAccessNativeApplicationOidcOptionsFilterSensitiveLog");
    var ModifyVerifiedAccessTrustProviderOidcOptionsFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.ClientSecret && { ClientSecret: import_smithy_client28.SENSITIVE_STRING }
    }), "ModifyVerifiedAccessTrustProviderOidcOptionsFilterSensitiveLog");
    var ModifyVerifiedAccessTrustProviderRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.OidcOptions && {
        OidcOptions: ModifyVerifiedAccessTrustProviderOidcOptionsFilterSensitiveLog(obj.OidcOptions)
      },
      ...obj.NativeApplicationOidcOptions && {
        NativeApplicationOidcOptions: ModifyVerifiedAccessNativeApplicationOidcOptionsFilterSensitiveLog(
          obj.NativeApplicationOidcOptions
        )
      }
    }), "ModifyVerifiedAccessTrustProviderRequestFilterSensitiveLog");
    var ModifyVerifiedAccessTrustProviderResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.VerifiedAccessTrustProvider && {
        VerifiedAccessTrustProvider: VerifiedAccessTrustProviderFilterSensitiveLog(obj.VerifiedAccessTrustProvider)
      }
    }), "ModifyVerifiedAccessTrustProviderResultFilterSensitiveLog");
    var ModifyVpnConnectionResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.VpnConnection && { VpnConnection: VpnConnectionFilterSensitiveLog(obj.VpnConnection) }
    }), "ModifyVpnConnectionResultFilterSensitiveLog");
    var ModifyVpnConnectionOptionsResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.VpnConnection && { VpnConnection: VpnConnectionFilterSensitiveLog(obj.VpnConnection) }
    }), "ModifyVpnConnectionOptionsResultFilterSensitiveLog");
    var ModifyVpnTunnelCertificateResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.VpnConnection && { VpnConnection: VpnConnectionFilterSensitiveLog(obj.VpnConnection) }
    }), "ModifyVpnTunnelCertificateResultFilterSensitiveLog");
    var ModifyVpnTunnelOptionsSpecificationFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.PreSharedKey && { PreSharedKey: import_smithy_client28.SENSITIVE_STRING }
    }), "ModifyVpnTunnelOptionsSpecificationFilterSensitiveLog");
    var ModifyVpnTunnelOptionsRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.TunnelOptions && { TunnelOptions: import_smithy_client28.SENSITIVE_STRING }
    }), "ModifyVpnTunnelOptionsRequestFilterSensitiveLog");
    var ModifyVpnTunnelOptionsResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.VpnConnection && { VpnConnection: VpnConnectionFilterSensitiveLog(obj.VpnConnection) }
    }), "ModifyVpnTunnelOptionsResultFilterSensitiveLog");
    var GetPasswordDataCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "GetPasswordData", {}).n("EC2Client", "GetPasswordDataCommand").f(void 0, GetPasswordDataResultFilterSensitiveLog).ser(se_GetPasswordDataCommand).de(de_GetPasswordDataCommand).build() {
      static {
        __name(this, "GetPasswordDataCommand");
      }
      static {
        __name2(this, "GetPasswordDataCommand");
      }
    };
    var GetReservedInstancesExchangeQuoteCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "GetReservedInstancesExchangeQuote", {}).n("EC2Client", "GetReservedInstancesExchangeQuoteCommand").f(void 0, void 0).ser(se_GetReservedInstancesExchangeQuoteCommand).de(de_GetReservedInstancesExchangeQuoteCommand).build() {
      static {
        __name(this, "GetReservedInstancesExchangeQuoteCommand");
      }
      static {
        __name2(this, "GetReservedInstancesExchangeQuoteCommand");
      }
    };
    var GetRouteServerAssociationsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "GetRouteServerAssociations", {}).n("EC2Client", "GetRouteServerAssociationsCommand").f(void 0, void 0).ser(se_GetRouteServerAssociationsCommand).de(de_GetRouteServerAssociationsCommand).build() {
      static {
        __name(this, "GetRouteServerAssociationsCommand");
      }
      static {
        __name2(this, "GetRouteServerAssociationsCommand");
      }
    };
    var GetRouteServerPropagationsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "GetRouteServerPropagations", {}).n("EC2Client", "GetRouteServerPropagationsCommand").f(void 0, void 0).ser(se_GetRouteServerPropagationsCommand).de(de_GetRouteServerPropagationsCommand).build() {
      static {
        __name(this, "GetRouteServerPropagationsCommand");
      }
      static {
        __name2(this, "GetRouteServerPropagationsCommand");
      }
    };
    var GetRouteServerRoutingDatabaseCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "GetRouteServerRoutingDatabase", {}).n("EC2Client", "GetRouteServerRoutingDatabaseCommand").f(void 0, void 0).ser(se_GetRouteServerRoutingDatabaseCommand).de(de_GetRouteServerRoutingDatabaseCommand).build() {
      static {
        __name(this, "GetRouteServerRoutingDatabaseCommand");
      }
      static {
        __name2(this, "GetRouteServerRoutingDatabaseCommand");
      }
    };
    var GetSecurityGroupsForVpcCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "GetSecurityGroupsForVpc", {}).n("EC2Client", "GetSecurityGroupsForVpcCommand").f(void 0, void 0).ser(se_GetSecurityGroupsForVpcCommand).de(de_GetSecurityGroupsForVpcCommand).build() {
      static {
        __name(this, "GetSecurityGroupsForVpcCommand");
      }
      static {
        __name2(this, "GetSecurityGroupsForVpcCommand");
      }
    };
    var GetSerialConsoleAccessStatusCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "GetSerialConsoleAccessStatus", {}).n("EC2Client", "GetSerialConsoleAccessStatusCommand").f(void 0, void 0).ser(se_GetSerialConsoleAccessStatusCommand).de(de_GetSerialConsoleAccessStatusCommand).build() {
      static {
        __name(this, "GetSerialConsoleAccessStatusCommand");
      }
      static {
        __name2(this, "GetSerialConsoleAccessStatusCommand");
      }
    };
    var GetSnapshotBlockPublicAccessStateCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "GetSnapshotBlockPublicAccessState", {}).n("EC2Client", "GetSnapshotBlockPublicAccessStateCommand").f(void 0, void 0).ser(se_GetSnapshotBlockPublicAccessStateCommand).de(de_GetSnapshotBlockPublicAccessStateCommand).build() {
      static {
        __name(this, "GetSnapshotBlockPublicAccessStateCommand");
      }
      static {
        __name2(this, "GetSnapshotBlockPublicAccessStateCommand");
      }
    };
    var GetSpotPlacementScoresCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "GetSpotPlacementScores", {}).n("EC2Client", "GetSpotPlacementScoresCommand").f(void 0, void 0).ser(se_GetSpotPlacementScoresCommand).de(de_GetSpotPlacementScoresCommand).build() {
      static {
        __name(this, "GetSpotPlacementScoresCommand");
      }
      static {
        __name2(this, "GetSpotPlacementScoresCommand");
      }
    };
    var GetSubnetCidrReservationsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "GetSubnetCidrReservations", {}).n("EC2Client", "GetSubnetCidrReservationsCommand").f(void 0, void 0).ser(se_GetSubnetCidrReservationsCommand).de(de_GetSubnetCidrReservationsCommand).build() {
      static {
        __name(this, "GetSubnetCidrReservationsCommand");
      }
      static {
        __name2(this, "GetSubnetCidrReservationsCommand");
      }
    };
    var GetTransitGatewayAttachmentPropagationsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "GetTransitGatewayAttachmentPropagations", {}).n("EC2Client", "GetTransitGatewayAttachmentPropagationsCommand").f(void 0, void 0).ser(se_GetTransitGatewayAttachmentPropagationsCommand).de(de_GetTransitGatewayAttachmentPropagationsCommand).build() {
      static {
        __name(this, "GetTransitGatewayAttachmentPropagationsCommand");
      }
      static {
        __name2(this, "GetTransitGatewayAttachmentPropagationsCommand");
      }
    };
    var GetTransitGatewayMulticastDomainAssociationsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "GetTransitGatewayMulticastDomainAssociations", {}).n("EC2Client", "GetTransitGatewayMulticastDomainAssociationsCommand").f(void 0, void 0).ser(se_GetTransitGatewayMulticastDomainAssociationsCommand).de(de_GetTransitGatewayMulticastDomainAssociationsCommand).build() {
      static {
        __name(this, "GetTransitGatewayMulticastDomainAssociationsCommand");
      }
      static {
        __name2(this, "GetTransitGatewayMulticastDomainAssociationsCommand");
      }
    };
    var GetTransitGatewayPolicyTableAssociationsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "GetTransitGatewayPolicyTableAssociations", {}).n("EC2Client", "GetTransitGatewayPolicyTableAssociationsCommand").f(void 0, void 0).ser(se_GetTransitGatewayPolicyTableAssociationsCommand).de(de_GetTransitGatewayPolicyTableAssociationsCommand).build() {
      static {
        __name(this, "GetTransitGatewayPolicyTableAssociationsCommand");
      }
      static {
        __name2(this, "GetTransitGatewayPolicyTableAssociationsCommand");
      }
    };
    var GetTransitGatewayPolicyTableEntriesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "GetTransitGatewayPolicyTableEntries", {}).n("EC2Client", "GetTransitGatewayPolicyTableEntriesCommand").f(void 0, void 0).ser(se_GetTransitGatewayPolicyTableEntriesCommand).de(de_GetTransitGatewayPolicyTableEntriesCommand).build() {
      static {
        __name(this, "GetTransitGatewayPolicyTableEntriesCommand");
      }
      static {
        __name2(this, "GetTransitGatewayPolicyTableEntriesCommand");
      }
    };
    var GetTransitGatewayPrefixListReferencesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "GetTransitGatewayPrefixListReferences", {}).n("EC2Client", "GetTransitGatewayPrefixListReferencesCommand").f(void 0, void 0).ser(se_GetTransitGatewayPrefixListReferencesCommand).de(de_GetTransitGatewayPrefixListReferencesCommand).build() {
      static {
        __name(this, "GetTransitGatewayPrefixListReferencesCommand");
      }
      static {
        __name2(this, "GetTransitGatewayPrefixListReferencesCommand");
      }
    };
    var GetTransitGatewayRouteTableAssociationsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "GetTransitGatewayRouteTableAssociations", {}).n("EC2Client", "GetTransitGatewayRouteTableAssociationsCommand").f(void 0, void 0).ser(se_GetTransitGatewayRouteTableAssociationsCommand).de(de_GetTransitGatewayRouteTableAssociationsCommand).build() {
      static {
        __name(this, "GetTransitGatewayRouteTableAssociationsCommand");
      }
      static {
        __name2(this, "GetTransitGatewayRouteTableAssociationsCommand");
      }
    };
    var GetTransitGatewayRouteTablePropagationsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "GetTransitGatewayRouteTablePropagations", {}).n("EC2Client", "GetTransitGatewayRouteTablePropagationsCommand").f(void 0, void 0).ser(se_GetTransitGatewayRouteTablePropagationsCommand).de(de_GetTransitGatewayRouteTablePropagationsCommand).build() {
      static {
        __name(this, "GetTransitGatewayRouteTablePropagationsCommand");
      }
      static {
        __name2(this, "GetTransitGatewayRouteTablePropagationsCommand");
      }
    };
    var GetVerifiedAccessEndpointPolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "GetVerifiedAccessEndpointPolicy", {}).n("EC2Client", "GetVerifiedAccessEndpointPolicyCommand").f(void 0, void 0).ser(se_GetVerifiedAccessEndpointPolicyCommand).de(de_GetVerifiedAccessEndpointPolicyCommand).build() {
      static {
        __name(this, "GetVerifiedAccessEndpointPolicyCommand");
      }
      static {
        __name2(this, "GetVerifiedAccessEndpointPolicyCommand");
      }
    };
    var GetVerifiedAccessEndpointTargetsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "GetVerifiedAccessEndpointTargets", {}).n("EC2Client", "GetVerifiedAccessEndpointTargetsCommand").f(void 0, void 0).ser(se_GetVerifiedAccessEndpointTargetsCommand).de(de_GetVerifiedAccessEndpointTargetsCommand).build() {
      static {
        __name(this, "GetVerifiedAccessEndpointTargetsCommand");
      }
      static {
        __name2(this, "GetVerifiedAccessEndpointTargetsCommand");
      }
    };
    var GetVerifiedAccessGroupPolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "GetVerifiedAccessGroupPolicy", {}).n("EC2Client", "GetVerifiedAccessGroupPolicyCommand").f(void 0, void 0).ser(se_GetVerifiedAccessGroupPolicyCommand).de(de_GetVerifiedAccessGroupPolicyCommand).build() {
      static {
        __name(this, "GetVerifiedAccessGroupPolicyCommand");
      }
      static {
        __name2(this, "GetVerifiedAccessGroupPolicyCommand");
      }
    };
    var GetVpnConnectionDeviceSampleConfigurationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "GetVpnConnectionDeviceSampleConfiguration", {}).n("EC2Client", "GetVpnConnectionDeviceSampleConfigurationCommand").f(void 0, GetVpnConnectionDeviceSampleConfigurationResultFilterSensitiveLog).ser(se_GetVpnConnectionDeviceSampleConfigurationCommand).de(de_GetVpnConnectionDeviceSampleConfigurationCommand).build() {
      static {
        __name(this, "GetVpnConnectionDeviceSampleConfigurationCommand");
      }
      static {
        __name2(this, "GetVpnConnectionDeviceSampleConfigurationCommand");
      }
    };
    var GetVpnConnectionDeviceTypesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "GetVpnConnectionDeviceTypes", {}).n("EC2Client", "GetVpnConnectionDeviceTypesCommand").f(void 0, void 0).ser(se_GetVpnConnectionDeviceTypesCommand).de(de_GetVpnConnectionDeviceTypesCommand).build() {
      static {
        __name(this, "GetVpnConnectionDeviceTypesCommand");
      }
      static {
        __name2(this, "GetVpnConnectionDeviceTypesCommand");
      }
    };
    var GetVpnTunnelReplacementStatusCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "GetVpnTunnelReplacementStatus", {}).n("EC2Client", "GetVpnTunnelReplacementStatusCommand").f(void 0, void 0).ser(se_GetVpnTunnelReplacementStatusCommand).de(de_GetVpnTunnelReplacementStatusCommand).build() {
      static {
        __name(this, "GetVpnTunnelReplacementStatusCommand");
      }
      static {
        __name2(this, "GetVpnTunnelReplacementStatusCommand");
      }
    };
    var ImportClientVpnClientCertificateRevocationListCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ImportClientVpnClientCertificateRevocationList", {}).n("EC2Client", "ImportClientVpnClientCertificateRevocationListCommand").f(void 0, void 0).ser(se_ImportClientVpnClientCertificateRevocationListCommand).de(de_ImportClientVpnClientCertificateRevocationListCommand).build() {
      static {
        __name(this, "ImportClientVpnClientCertificateRevocationListCommand");
      }
      static {
        __name2(this, "ImportClientVpnClientCertificateRevocationListCommand");
      }
    };
    var ImportImageCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ImportImage", {}).n("EC2Client", "ImportImageCommand").f(ImportImageRequestFilterSensitiveLog, ImportImageResultFilterSensitiveLog).ser(se_ImportImageCommand).de(de_ImportImageCommand).build() {
      static {
        __name(this, "ImportImageCommand");
      }
      static {
        __name2(this, "ImportImageCommand");
      }
    };
    var ImportInstanceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ImportInstance", {}).n("EC2Client", "ImportInstanceCommand").f(ImportInstanceRequestFilterSensitiveLog, ImportInstanceResultFilterSensitiveLog).ser(se_ImportInstanceCommand).de(de_ImportInstanceCommand).build() {
      static {
        __name(this, "ImportInstanceCommand");
      }
      static {
        __name2(this, "ImportInstanceCommand");
      }
    };
    var ImportKeyPairCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ImportKeyPair", {}).n("EC2Client", "ImportKeyPairCommand").f(void 0, void 0).ser(se_ImportKeyPairCommand).de(de_ImportKeyPairCommand).build() {
      static {
        __name(this, "ImportKeyPairCommand");
      }
      static {
        __name2(this, "ImportKeyPairCommand");
      }
    };
    var ImportSnapshotCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ImportSnapshot", {}).n("EC2Client", "ImportSnapshotCommand").f(ImportSnapshotRequestFilterSensitiveLog, ImportSnapshotResultFilterSensitiveLog).ser(se_ImportSnapshotCommand).de(de_ImportSnapshotCommand).build() {
      static {
        __name(this, "ImportSnapshotCommand");
      }
      static {
        __name2(this, "ImportSnapshotCommand");
      }
    };
    var ImportVolumeCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ImportVolume", {}).n("EC2Client", "ImportVolumeCommand").f(ImportVolumeRequestFilterSensitiveLog, ImportVolumeResultFilterSensitiveLog).ser(se_ImportVolumeCommand).de(de_ImportVolumeCommand).build() {
      static {
        __name(this, "ImportVolumeCommand");
      }
      static {
        __name2(this, "ImportVolumeCommand");
      }
    };
    var ListImagesInRecycleBinCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ListImagesInRecycleBin", {}).n("EC2Client", "ListImagesInRecycleBinCommand").f(void 0, void 0).ser(se_ListImagesInRecycleBinCommand).de(de_ListImagesInRecycleBinCommand).build() {
      static {
        __name(this, "ListImagesInRecycleBinCommand");
      }
      static {
        __name2(this, "ListImagesInRecycleBinCommand");
      }
    };
    var ListSnapshotsInRecycleBinCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ListSnapshotsInRecycleBin", {}).n("EC2Client", "ListSnapshotsInRecycleBinCommand").f(void 0, void 0).ser(se_ListSnapshotsInRecycleBinCommand).de(de_ListSnapshotsInRecycleBinCommand).build() {
      static {
        __name(this, "ListSnapshotsInRecycleBinCommand");
      }
      static {
        __name2(this, "ListSnapshotsInRecycleBinCommand");
      }
    };
    var LockSnapshotCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "LockSnapshot", {}).n("EC2Client", "LockSnapshotCommand").f(void 0, void 0).ser(se_LockSnapshotCommand).de(de_LockSnapshotCommand).build() {
      static {
        __name(this, "LockSnapshotCommand");
      }
      static {
        __name2(this, "LockSnapshotCommand");
      }
    };
    var ModifyAddressAttributeCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyAddressAttribute", {}).n("EC2Client", "ModifyAddressAttributeCommand").f(void 0, void 0).ser(se_ModifyAddressAttributeCommand).de(de_ModifyAddressAttributeCommand).build() {
      static {
        __name(this, "ModifyAddressAttributeCommand");
      }
      static {
        __name2(this, "ModifyAddressAttributeCommand");
      }
    };
    var ModifyAvailabilityZoneGroupCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyAvailabilityZoneGroup", {}).n("EC2Client", "ModifyAvailabilityZoneGroupCommand").f(void 0, void 0).ser(se_ModifyAvailabilityZoneGroupCommand).de(de_ModifyAvailabilityZoneGroupCommand).build() {
      static {
        __name(this, "ModifyAvailabilityZoneGroupCommand");
      }
      static {
        __name2(this, "ModifyAvailabilityZoneGroupCommand");
      }
    };
    var ModifyCapacityReservationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyCapacityReservation", {}).n("EC2Client", "ModifyCapacityReservationCommand").f(void 0, void 0).ser(se_ModifyCapacityReservationCommand).de(de_ModifyCapacityReservationCommand).build() {
      static {
        __name(this, "ModifyCapacityReservationCommand");
      }
      static {
        __name2(this, "ModifyCapacityReservationCommand");
      }
    };
    var ModifyCapacityReservationFleetCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyCapacityReservationFleet", {}).n("EC2Client", "ModifyCapacityReservationFleetCommand").f(void 0, void 0).ser(se_ModifyCapacityReservationFleetCommand).de(de_ModifyCapacityReservationFleetCommand).build() {
      static {
        __name(this, "ModifyCapacityReservationFleetCommand");
      }
      static {
        __name2(this, "ModifyCapacityReservationFleetCommand");
      }
    };
    var ModifyClientVpnEndpointCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyClientVpnEndpoint", {}).n("EC2Client", "ModifyClientVpnEndpointCommand").f(void 0, void 0).ser(se_ModifyClientVpnEndpointCommand).de(de_ModifyClientVpnEndpointCommand).build() {
      static {
        __name(this, "ModifyClientVpnEndpointCommand");
      }
      static {
        __name2(this, "ModifyClientVpnEndpointCommand");
      }
    };
    var ModifyDefaultCreditSpecificationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyDefaultCreditSpecification", {}).n("EC2Client", "ModifyDefaultCreditSpecificationCommand").f(void 0, void 0).ser(se_ModifyDefaultCreditSpecificationCommand).de(de_ModifyDefaultCreditSpecificationCommand).build() {
      static {
        __name(this, "ModifyDefaultCreditSpecificationCommand");
      }
      static {
        __name2(this, "ModifyDefaultCreditSpecificationCommand");
      }
    };
    var ModifyEbsDefaultKmsKeyIdCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyEbsDefaultKmsKeyId", {}).n("EC2Client", "ModifyEbsDefaultKmsKeyIdCommand").f(void 0, void 0).ser(se_ModifyEbsDefaultKmsKeyIdCommand).de(de_ModifyEbsDefaultKmsKeyIdCommand).build() {
      static {
        __name(this, "ModifyEbsDefaultKmsKeyIdCommand");
      }
      static {
        __name2(this, "ModifyEbsDefaultKmsKeyIdCommand");
      }
    };
    var ModifyFleetCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyFleet", {}).n("EC2Client", "ModifyFleetCommand").f(void 0, void 0).ser(se_ModifyFleetCommand).de(de_ModifyFleetCommand).build() {
      static {
        __name(this, "ModifyFleetCommand");
      }
      static {
        __name2(this, "ModifyFleetCommand");
      }
    };
    var ModifyFpgaImageAttributeCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyFpgaImageAttribute", {}).n("EC2Client", "ModifyFpgaImageAttributeCommand").f(void 0, void 0).ser(se_ModifyFpgaImageAttributeCommand).de(de_ModifyFpgaImageAttributeCommand).build() {
      static {
        __name(this, "ModifyFpgaImageAttributeCommand");
      }
      static {
        __name2(this, "ModifyFpgaImageAttributeCommand");
      }
    };
    var ModifyHostsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyHosts", {}).n("EC2Client", "ModifyHostsCommand").f(void 0, void 0).ser(se_ModifyHostsCommand).de(de_ModifyHostsCommand).build() {
      static {
        __name(this, "ModifyHostsCommand");
      }
      static {
        __name2(this, "ModifyHostsCommand");
      }
    };
    var ModifyIdentityIdFormatCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyIdentityIdFormat", {}).n("EC2Client", "ModifyIdentityIdFormatCommand").f(void 0, void 0).ser(se_ModifyIdentityIdFormatCommand).de(de_ModifyIdentityIdFormatCommand).build() {
      static {
        __name(this, "ModifyIdentityIdFormatCommand");
      }
      static {
        __name2(this, "ModifyIdentityIdFormatCommand");
      }
    };
    var ModifyIdFormatCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyIdFormat", {}).n("EC2Client", "ModifyIdFormatCommand").f(void 0, void 0).ser(se_ModifyIdFormatCommand).de(de_ModifyIdFormatCommand).build() {
      static {
        __name(this, "ModifyIdFormatCommand");
      }
      static {
        __name2(this, "ModifyIdFormatCommand");
      }
    };
    var ModifyImageAttributeCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyImageAttribute", {}).n("EC2Client", "ModifyImageAttributeCommand").f(void 0, void 0).ser(se_ModifyImageAttributeCommand).de(de_ModifyImageAttributeCommand).build() {
      static {
        __name(this, "ModifyImageAttributeCommand");
      }
      static {
        __name2(this, "ModifyImageAttributeCommand");
      }
    };
    var ModifyInstanceAttributeCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyInstanceAttribute", {}).n("EC2Client", "ModifyInstanceAttributeCommand").f(void 0, void 0).ser(se_ModifyInstanceAttributeCommand).de(de_ModifyInstanceAttributeCommand).build() {
      static {
        __name(this, "ModifyInstanceAttributeCommand");
      }
      static {
        __name2(this, "ModifyInstanceAttributeCommand");
      }
    };
    var ModifyInstanceCapacityReservationAttributesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyInstanceCapacityReservationAttributes", {}).n("EC2Client", "ModifyInstanceCapacityReservationAttributesCommand").f(void 0, void 0).ser(se_ModifyInstanceCapacityReservationAttributesCommand).de(de_ModifyInstanceCapacityReservationAttributesCommand).build() {
      static {
        __name(this, "ModifyInstanceCapacityReservationAttributesCommand");
      }
      static {
        __name2(this, "ModifyInstanceCapacityReservationAttributesCommand");
      }
    };
    var ModifyInstanceConnectEndpointCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyInstanceConnectEndpoint", {}).n("EC2Client", "ModifyInstanceConnectEndpointCommand").f(void 0, void 0).ser(se_ModifyInstanceConnectEndpointCommand).de(de_ModifyInstanceConnectEndpointCommand).build() {
      static {
        __name(this, "ModifyInstanceConnectEndpointCommand");
      }
      static {
        __name2(this, "ModifyInstanceConnectEndpointCommand");
      }
    };
    var ModifyInstanceCpuOptionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyInstanceCpuOptions", {}).n("EC2Client", "ModifyInstanceCpuOptionsCommand").f(void 0, void 0).ser(se_ModifyInstanceCpuOptionsCommand).de(de_ModifyInstanceCpuOptionsCommand).build() {
      static {
        __name(this, "ModifyInstanceCpuOptionsCommand");
      }
      static {
        __name2(this, "ModifyInstanceCpuOptionsCommand");
      }
    };
    var ModifyInstanceCreditSpecificationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyInstanceCreditSpecification", {}).n("EC2Client", "ModifyInstanceCreditSpecificationCommand").f(void 0, void 0).ser(se_ModifyInstanceCreditSpecificationCommand).de(de_ModifyInstanceCreditSpecificationCommand).build() {
      static {
        __name(this, "ModifyInstanceCreditSpecificationCommand");
      }
      static {
        __name2(this, "ModifyInstanceCreditSpecificationCommand");
      }
    };
    var ModifyInstanceEventStartTimeCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyInstanceEventStartTime", {}).n("EC2Client", "ModifyInstanceEventStartTimeCommand").f(void 0, void 0).ser(se_ModifyInstanceEventStartTimeCommand).de(de_ModifyInstanceEventStartTimeCommand).build() {
      static {
        __name(this, "ModifyInstanceEventStartTimeCommand");
      }
      static {
        __name2(this, "ModifyInstanceEventStartTimeCommand");
      }
    };
    var ModifyInstanceEventWindowCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyInstanceEventWindow", {}).n("EC2Client", "ModifyInstanceEventWindowCommand").f(void 0, void 0).ser(se_ModifyInstanceEventWindowCommand).de(de_ModifyInstanceEventWindowCommand).build() {
      static {
        __name(this, "ModifyInstanceEventWindowCommand");
      }
      static {
        __name2(this, "ModifyInstanceEventWindowCommand");
      }
    };
    var ModifyInstanceMaintenanceOptionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyInstanceMaintenanceOptions", {}).n("EC2Client", "ModifyInstanceMaintenanceOptionsCommand").f(void 0, void 0).ser(se_ModifyInstanceMaintenanceOptionsCommand).de(de_ModifyInstanceMaintenanceOptionsCommand).build() {
      static {
        __name(this, "ModifyInstanceMaintenanceOptionsCommand");
      }
      static {
        __name2(this, "ModifyInstanceMaintenanceOptionsCommand");
      }
    };
    var ModifyInstanceMetadataDefaultsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyInstanceMetadataDefaults", {}).n("EC2Client", "ModifyInstanceMetadataDefaultsCommand").f(void 0, void 0).ser(se_ModifyInstanceMetadataDefaultsCommand).de(de_ModifyInstanceMetadataDefaultsCommand).build() {
      static {
        __name(this, "ModifyInstanceMetadataDefaultsCommand");
      }
      static {
        __name2(this, "ModifyInstanceMetadataDefaultsCommand");
      }
    };
    var ModifyInstanceMetadataOptionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyInstanceMetadataOptions", {}).n("EC2Client", "ModifyInstanceMetadataOptionsCommand").f(void 0, void 0).ser(se_ModifyInstanceMetadataOptionsCommand).de(de_ModifyInstanceMetadataOptionsCommand).build() {
      static {
        __name(this, "ModifyInstanceMetadataOptionsCommand");
      }
      static {
        __name2(this, "ModifyInstanceMetadataOptionsCommand");
      }
    };
    var ModifyInstanceNetworkPerformanceOptionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyInstanceNetworkPerformanceOptions", {}).n("EC2Client", "ModifyInstanceNetworkPerformanceOptionsCommand").f(void 0, void 0).ser(se_ModifyInstanceNetworkPerformanceOptionsCommand).de(de_ModifyInstanceNetworkPerformanceOptionsCommand).build() {
      static {
        __name(this, "ModifyInstanceNetworkPerformanceOptionsCommand");
      }
      static {
        __name2(this, "ModifyInstanceNetworkPerformanceOptionsCommand");
      }
    };
    var ModifyInstancePlacementCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyInstancePlacement", {}).n("EC2Client", "ModifyInstancePlacementCommand").f(void 0, void 0).ser(se_ModifyInstancePlacementCommand).de(de_ModifyInstancePlacementCommand).build() {
      static {
        __name(this, "ModifyInstancePlacementCommand");
      }
      static {
        __name2(this, "ModifyInstancePlacementCommand");
      }
    };
    var ModifyIpamCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyIpam", {}).n("EC2Client", "ModifyIpamCommand").f(void 0, void 0).ser(se_ModifyIpamCommand).de(de_ModifyIpamCommand).build() {
      static {
        __name(this, "ModifyIpamCommand");
      }
      static {
        __name2(this, "ModifyIpamCommand");
      }
    };
    var ModifyIpamPoolCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyIpamPool", {}).n("EC2Client", "ModifyIpamPoolCommand").f(void 0, void 0).ser(se_ModifyIpamPoolCommand).de(de_ModifyIpamPoolCommand).build() {
      static {
        __name(this, "ModifyIpamPoolCommand");
      }
      static {
        __name2(this, "ModifyIpamPoolCommand");
      }
    };
    var ModifyIpamResourceCidrCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyIpamResourceCidr", {}).n("EC2Client", "ModifyIpamResourceCidrCommand").f(void 0, void 0).ser(se_ModifyIpamResourceCidrCommand).de(de_ModifyIpamResourceCidrCommand).build() {
      static {
        __name(this, "ModifyIpamResourceCidrCommand");
      }
      static {
        __name2(this, "ModifyIpamResourceCidrCommand");
      }
    };
    var ModifyIpamResourceDiscoveryCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyIpamResourceDiscovery", {}).n("EC2Client", "ModifyIpamResourceDiscoveryCommand").f(void 0, void 0).ser(se_ModifyIpamResourceDiscoveryCommand).de(de_ModifyIpamResourceDiscoveryCommand).build() {
      static {
        __name(this, "ModifyIpamResourceDiscoveryCommand");
      }
      static {
        __name2(this, "ModifyIpamResourceDiscoveryCommand");
      }
    };
    var ModifyIpamScopeCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyIpamScope", {}).n("EC2Client", "ModifyIpamScopeCommand").f(void 0, void 0).ser(se_ModifyIpamScopeCommand).de(de_ModifyIpamScopeCommand).build() {
      static {
        __name(this, "ModifyIpamScopeCommand");
      }
      static {
        __name2(this, "ModifyIpamScopeCommand");
      }
    };
    var ModifyLaunchTemplateCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyLaunchTemplate", {}).n("EC2Client", "ModifyLaunchTemplateCommand").f(void 0, void 0).ser(se_ModifyLaunchTemplateCommand).de(de_ModifyLaunchTemplateCommand).build() {
      static {
        __name(this, "ModifyLaunchTemplateCommand");
      }
      static {
        __name2(this, "ModifyLaunchTemplateCommand");
      }
    };
    var ModifyLocalGatewayRouteCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyLocalGatewayRoute", {}).n("EC2Client", "ModifyLocalGatewayRouteCommand").f(void 0, void 0).ser(se_ModifyLocalGatewayRouteCommand).de(de_ModifyLocalGatewayRouteCommand).build() {
      static {
        __name(this, "ModifyLocalGatewayRouteCommand");
      }
      static {
        __name2(this, "ModifyLocalGatewayRouteCommand");
      }
    };
    var ModifyManagedPrefixListCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyManagedPrefixList", {}).n("EC2Client", "ModifyManagedPrefixListCommand").f(void 0, void 0).ser(se_ModifyManagedPrefixListCommand).de(de_ModifyManagedPrefixListCommand).build() {
      static {
        __name(this, "ModifyManagedPrefixListCommand");
      }
      static {
        __name2(this, "ModifyManagedPrefixListCommand");
      }
    };
    var ModifyNetworkInterfaceAttributeCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyNetworkInterfaceAttribute", {}).n("EC2Client", "ModifyNetworkInterfaceAttributeCommand").f(void 0, void 0).ser(se_ModifyNetworkInterfaceAttributeCommand).de(de_ModifyNetworkInterfaceAttributeCommand).build() {
      static {
        __name(this, "ModifyNetworkInterfaceAttributeCommand");
      }
      static {
        __name2(this, "ModifyNetworkInterfaceAttributeCommand");
      }
    };
    var ModifyPrivateDnsNameOptionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyPrivateDnsNameOptions", {}).n("EC2Client", "ModifyPrivateDnsNameOptionsCommand").f(void 0, void 0).ser(se_ModifyPrivateDnsNameOptionsCommand).de(de_ModifyPrivateDnsNameOptionsCommand).build() {
      static {
        __name(this, "ModifyPrivateDnsNameOptionsCommand");
      }
      static {
        __name2(this, "ModifyPrivateDnsNameOptionsCommand");
      }
    };
    var ModifyPublicIpDnsNameOptionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyPublicIpDnsNameOptions", {}).n("EC2Client", "ModifyPublicIpDnsNameOptionsCommand").f(void 0, void 0).ser(se_ModifyPublicIpDnsNameOptionsCommand).de(de_ModifyPublicIpDnsNameOptionsCommand).build() {
      static {
        __name(this, "ModifyPublicIpDnsNameOptionsCommand");
      }
      static {
        __name2(this, "ModifyPublicIpDnsNameOptionsCommand");
      }
    };
    var ModifyReservedInstancesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyReservedInstances", {}).n("EC2Client", "ModifyReservedInstancesCommand").f(void 0, void 0).ser(se_ModifyReservedInstancesCommand).de(de_ModifyReservedInstancesCommand).build() {
      static {
        __name(this, "ModifyReservedInstancesCommand");
      }
      static {
        __name2(this, "ModifyReservedInstancesCommand");
      }
    };
    var ModifyRouteServerCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyRouteServer", {}).n("EC2Client", "ModifyRouteServerCommand").f(void 0, void 0).ser(se_ModifyRouteServerCommand).de(de_ModifyRouteServerCommand).build() {
      static {
        __name(this, "ModifyRouteServerCommand");
      }
      static {
        __name2(this, "ModifyRouteServerCommand");
      }
    };
    var ModifySecurityGroupRulesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifySecurityGroupRules", {}).n("EC2Client", "ModifySecurityGroupRulesCommand").f(void 0, void 0).ser(se_ModifySecurityGroupRulesCommand).de(de_ModifySecurityGroupRulesCommand).build() {
      static {
        __name(this, "ModifySecurityGroupRulesCommand");
      }
      static {
        __name2(this, "ModifySecurityGroupRulesCommand");
      }
    };
    var ModifySnapshotAttributeCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifySnapshotAttribute", {}).n("EC2Client", "ModifySnapshotAttributeCommand").f(void 0, void 0).ser(se_ModifySnapshotAttributeCommand).de(de_ModifySnapshotAttributeCommand).build() {
      static {
        __name(this, "ModifySnapshotAttributeCommand");
      }
      static {
        __name2(this, "ModifySnapshotAttributeCommand");
      }
    };
    var ModifySnapshotTierCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifySnapshotTier", {}).n("EC2Client", "ModifySnapshotTierCommand").f(void 0, void 0).ser(se_ModifySnapshotTierCommand).de(de_ModifySnapshotTierCommand).build() {
      static {
        __name(this, "ModifySnapshotTierCommand");
      }
      static {
        __name2(this, "ModifySnapshotTierCommand");
      }
    };
    var ModifySpotFleetRequestCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifySpotFleetRequest", {}).n("EC2Client", "ModifySpotFleetRequestCommand").f(void 0, void 0).ser(se_ModifySpotFleetRequestCommand).de(de_ModifySpotFleetRequestCommand).build() {
      static {
        __name(this, "ModifySpotFleetRequestCommand");
      }
      static {
        __name2(this, "ModifySpotFleetRequestCommand");
      }
    };
    var ModifySubnetAttributeCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifySubnetAttribute", {}).n("EC2Client", "ModifySubnetAttributeCommand").f(void 0, void 0).ser(se_ModifySubnetAttributeCommand).de(de_ModifySubnetAttributeCommand).build() {
      static {
        __name(this, "ModifySubnetAttributeCommand");
      }
      static {
        __name2(this, "ModifySubnetAttributeCommand");
      }
    };
    var ModifyTrafficMirrorFilterNetworkServicesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyTrafficMirrorFilterNetworkServices", {}).n("EC2Client", "ModifyTrafficMirrorFilterNetworkServicesCommand").f(void 0, void 0).ser(se_ModifyTrafficMirrorFilterNetworkServicesCommand).de(de_ModifyTrafficMirrorFilterNetworkServicesCommand).build() {
      static {
        __name(this, "ModifyTrafficMirrorFilterNetworkServicesCommand");
      }
      static {
        __name2(this, "ModifyTrafficMirrorFilterNetworkServicesCommand");
      }
    };
    var ModifyTrafficMirrorFilterRuleCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyTrafficMirrorFilterRule", {}).n("EC2Client", "ModifyTrafficMirrorFilterRuleCommand").f(void 0, void 0).ser(se_ModifyTrafficMirrorFilterRuleCommand).de(de_ModifyTrafficMirrorFilterRuleCommand).build() {
      static {
        __name(this, "ModifyTrafficMirrorFilterRuleCommand");
      }
      static {
        __name2(this, "ModifyTrafficMirrorFilterRuleCommand");
      }
    };
    var ModifyTrafficMirrorSessionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyTrafficMirrorSession", {}).n("EC2Client", "ModifyTrafficMirrorSessionCommand").f(void 0, void 0).ser(se_ModifyTrafficMirrorSessionCommand).de(de_ModifyTrafficMirrorSessionCommand).build() {
      static {
        __name(this, "ModifyTrafficMirrorSessionCommand");
      }
      static {
        __name2(this, "ModifyTrafficMirrorSessionCommand");
      }
    };
    var ModifyTransitGatewayCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyTransitGateway", {}).n("EC2Client", "ModifyTransitGatewayCommand").f(void 0, void 0).ser(se_ModifyTransitGatewayCommand).de(de_ModifyTransitGatewayCommand).build() {
      static {
        __name(this, "ModifyTransitGatewayCommand");
      }
      static {
        __name2(this, "ModifyTransitGatewayCommand");
      }
    };
    var ModifyTransitGatewayPrefixListReferenceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyTransitGatewayPrefixListReference", {}).n("EC2Client", "ModifyTransitGatewayPrefixListReferenceCommand").f(void 0, void 0).ser(se_ModifyTransitGatewayPrefixListReferenceCommand).de(de_ModifyTransitGatewayPrefixListReferenceCommand).build() {
      static {
        __name(this, "ModifyTransitGatewayPrefixListReferenceCommand");
      }
      static {
        __name2(this, "ModifyTransitGatewayPrefixListReferenceCommand");
      }
    };
    var ModifyTransitGatewayVpcAttachmentCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyTransitGatewayVpcAttachment", {}).n("EC2Client", "ModifyTransitGatewayVpcAttachmentCommand").f(void 0, void 0).ser(se_ModifyTransitGatewayVpcAttachmentCommand).de(de_ModifyTransitGatewayVpcAttachmentCommand).build() {
      static {
        __name(this, "ModifyTransitGatewayVpcAttachmentCommand");
      }
      static {
        __name2(this, "ModifyTransitGatewayVpcAttachmentCommand");
      }
    };
    var ModifyVerifiedAccessEndpointCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyVerifiedAccessEndpoint", {}).n("EC2Client", "ModifyVerifiedAccessEndpointCommand").f(void 0, void 0).ser(se_ModifyVerifiedAccessEndpointCommand).de(de_ModifyVerifiedAccessEndpointCommand).build() {
      static {
        __name(this, "ModifyVerifiedAccessEndpointCommand");
      }
      static {
        __name2(this, "ModifyVerifiedAccessEndpointCommand");
      }
    };
    var ModifyVerifiedAccessEndpointPolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyVerifiedAccessEndpointPolicy", {}).n("EC2Client", "ModifyVerifiedAccessEndpointPolicyCommand").f(void 0, void 0).ser(se_ModifyVerifiedAccessEndpointPolicyCommand).de(de_ModifyVerifiedAccessEndpointPolicyCommand).build() {
      static {
        __name(this, "ModifyVerifiedAccessEndpointPolicyCommand");
      }
      static {
        __name2(this, "ModifyVerifiedAccessEndpointPolicyCommand");
      }
    };
    var ModifyVerifiedAccessGroupCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyVerifiedAccessGroup", {}).n("EC2Client", "ModifyVerifiedAccessGroupCommand").f(void 0, void 0).ser(se_ModifyVerifiedAccessGroupCommand).de(de_ModifyVerifiedAccessGroupCommand).build() {
      static {
        __name(this, "ModifyVerifiedAccessGroupCommand");
      }
      static {
        __name2(this, "ModifyVerifiedAccessGroupCommand");
      }
    };
    var ModifyVerifiedAccessGroupPolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyVerifiedAccessGroupPolicy", {}).n("EC2Client", "ModifyVerifiedAccessGroupPolicyCommand").f(void 0, void 0).ser(se_ModifyVerifiedAccessGroupPolicyCommand).de(de_ModifyVerifiedAccessGroupPolicyCommand).build() {
      static {
        __name(this, "ModifyVerifiedAccessGroupPolicyCommand");
      }
      static {
        __name2(this, "ModifyVerifiedAccessGroupPolicyCommand");
      }
    };
    var ModifyVerifiedAccessInstanceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyVerifiedAccessInstance", {}).n("EC2Client", "ModifyVerifiedAccessInstanceCommand").f(void 0, void 0).ser(se_ModifyVerifiedAccessInstanceCommand).de(de_ModifyVerifiedAccessInstanceCommand).build() {
      static {
        __name(this, "ModifyVerifiedAccessInstanceCommand");
      }
      static {
        __name2(this, "ModifyVerifiedAccessInstanceCommand");
      }
    };
    var ModifyVerifiedAccessInstanceLoggingConfigurationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyVerifiedAccessInstanceLoggingConfiguration", {}).n("EC2Client", "ModifyVerifiedAccessInstanceLoggingConfigurationCommand").f(void 0, void 0).ser(se_ModifyVerifiedAccessInstanceLoggingConfigurationCommand).de(de_ModifyVerifiedAccessInstanceLoggingConfigurationCommand).build() {
      static {
        __name(this, "ModifyVerifiedAccessInstanceLoggingConfigurationCommand");
      }
      static {
        __name2(this, "ModifyVerifiedAccessInstanceLoggingConfigurationCommand");
      }
    };
    var ModifyVerifiedAccessTrustProviderCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyVerifiedAccessTrustProvider", {}).n("EC2Client", "ModifyVerifiedAccessTrustProviderCommand").f(
      ModifyVerifiedAccessTrustProviderRequestFilterSensitiveLog,
      ModifyVerifiedAccessTrustProviderResultFilterSensitiveLog
    ).ser(se_ModifyVerifiedAccessTrustProviderCommand).de(de_ModifyVerifiedAccessTrustProviderCommand).build() {
      static {
        __name(this, "ModifyVerifiedAccessTrustProviderCommand");
      }
      static {
        __name2(this, "ModifyVerifiedAccessTrustProviderCommand");
      }
    };
    var ModifyVolumeAttributeCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyVolumeAttribute", {}).n("EC2Client", "ModifyVolumeAttributeCommand").f(void 0, void 0).ser(se_ModifyVolumeAttributeCommand).de(de_ModifyVolumeAttributeCommand).build() {
      static {
        __name(this, "ModifyVolumeAttributeCommand");
      }
      static {
        __name2(this, "ModifyVolumeAttributeCommand");
      }
    };
    var ModifyVolumeCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyVolume", {}).n("EC2Client", "ModifyVolumeCommand").f(void 0, void 0).ser(se_ModifyVolumeCommand).de(de_ModifyVolumeCommand).build() {
      static {
        __name(this, "ModifyVolumeCommand");
      }
      static {
        __name2(this, "ModifyVolumeCommand");
      }
    };
    var ModifyVpcAttributeCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyVpcAttribute", {}).n("EC2Client", "ModifyVpcAttributeCommand").f(void 0, void 0).ser(se_ModifyVpcAttributeCommand).de(de_ModifyVpcAttributeCommand).build() {
      static {
        __name(this, "ModifyVpcAttributeCommand");
      }
      static {
        __name2(this, "ModifyVpcAttributeCommand");
      }
    };
    var ModifyVpcBlockPublicAccessExclusionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyVpcBlockPublicAccessExclusion", {}).n("EC2Client", "ModifyVpcBlockPublicAccessExclusionCommand").f(void 0, void 0).ser(se_ModifyVpcBlockPublicAccessExclusionCommand).de(de_ModifyVpcBlockPublicAccessExclusionCommand).build() {
      static {
        __name(this, "ModifyVpcBlockPublicAccessExclusionCommand");
      }
      static {
        __name2(this, "ModifyVpcBlockPublicAccessExclusionCommand");
      }
    };
    var ModifyVpcBlockPublicAccessOptionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyVpcBlockPublicAccessOptions", {}).n("EC2Client", "ModifyVpcBlockPublicAccessOptionsCommand").f(void 0, void 0).ser(se_ModifyVpcBlockPublicAccessOptionsCommand).de(de_ModifyVpcBlockPublicAccessOptionsCommand).build() {
      static {
        __name(this, "ModifyVpcBlockPublicAccessOptionsCommand");
      }
      static {
        __name2(this, "ModifyVpcBlockPublicAccessOptionsCommand");
      }
    };
    var ModifyVpcEndpointCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyVpcEndpoint", {}).n("EC2Client", "ModifyVpcEndpointCommand").f(void 0, void 0).ser(se_ModifyVpcEndpointCommand).de(de_ModifyVpcEndpointCommand).build() {
      static {
        __name(this, "ModifyVpcEndpointCommand");
      }
      static {
        __name2(this, "ModifyVpcEndpointCommand");
      }
    };
    var ModifyVpcEndpointConnectionNotificationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyVpcEndpointConnectionNotification", {}).n("EC2Client", "ModifyVpcEndpointConnectionNotificationCommand").f(void 0, void 0).ser(se_ModifyVpcEndpointConnectionNotificationCommand).de(de_ModifyVpcEndpointConnectionNotificationCommand).build() {
      static {
        __name(this, "ModifyVpcEndpointConnectionNotificationCommand");
      }
      static {
        __name2(this, "ModifyVpcEndpointConnectionNotificationCommand");
      }
    };
    var ModifyVpcEndpointServiceConfigurationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyVpcEndpointServiceConfiguration", {}).n("EC2Client", "ModifyVpcEndpointServiceConfigurationCommand").f(void 0, void 0).ser(se_ModifyVpcEndpointServiceConfigurationCommand).de(de_ModifyVpcEndpointServiceConfigurationCommand).build() {
      static {
        __name(this, "ModifyVpcEndpointServiceConfigurationCommand");
      }
      static {
        __name2(this, "ModifyVpcEndpointServiceConfigurationCommand");
      }
    };
    var ModifyVpcEndpointServicePayerResponsibilityCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyVpcEndpointServicePayerResponsibility", {}).n("EC2Client", "ModifyVpcEndpointServicePayerResponsibilityCommand").f(void 0, void 0).ser(se_ModifyVpcEndpointServicePayerResponsibilityCommand).de(de_ModifyVpcEndpointServicePayerResponsibilityCommand).build() {
      static {
        __name(this, "ModifyVpcEndpointServicePayerResponsibilityCommand");
      }
      static {
        __name2(this, "ModifyVpcEndpointServicePayerResponsibilityCommand");
      }
    };
    var ModifyVpcEndpointServicePermissionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyVpcEndpointServicePermissions", {}).n("EC2Client", "ModifyVpcEndpointServicePermissionsCommand").f(void 0, void 0).ser(se_ModifyVpcEndpointServicePermissionsCommand).de(de_ModifyVpcEndpointServicePermissionsCommand).build() {
      static {
        __name(this, "ModifyVpcEndpointServicePermissionsCommand");
      }
      static {
        __name2(this, "ModifyVpcEndpointServicePermissionsCommand");
      }
    };
    var ModifyVpcPeeringConnectionOptionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyVpcPeeringConnectionOptions", {}).n("EC2Client", "ModifyVpcPeeringConnectionOptionsCommand").f(void 0, void 0).ser(se_ModifyVpcPeeringConnectionOptionsCommand).de(de_ModifyVpcPeeringConnectionOptionsCommand).build() {
      static {
        __name(this, "ModifyVpcPeeringConnectionOptionsCommand");
      }
      static {
        __name2(this, "ModifyVpcPeeringConnectionOptionsCommand");
      }
    };
    var ModifyVpcTenancyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyVpcTenancy", {}).n("EC2Client", "ModifyVpcTenancyCommand").f(void 0, void 0).ser(se_ModifyVpcTenancyCommand).de(de_ModifyVpcTenancyCommand).build() {
      static {
        __name(this, "ModifyVpcTenancyCommand");
      }
      static {
        __name2(this, "ModifyVpcTenancyCommand");
      }
    };
    var ModifyVpnConnectionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyVpnConnection", {}).n("EC2Client", "ModifyVpnConnectionCommand").f(void 0, ModifyVpnConnectionResultFilterSensitiveLog).ser(se_ModifyVpnConnectionCommand).de(de_ModifyVpnConnectionCommand).build() {
      static {
        __name(this, "ModifyVpnConnectionCommand");
      }
      static {
        __name2(this, "ModifyVpnConnectionCommand");
      }
    };
    var ModifyVpnConnectionOptionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyVpnConnectionOptions", {}).n("EC2Client", "ModifyVpnConnectionOptionsCommand").f(void 0, ModifyVpnConnectionOptionsResultFilterSensitiveLog).ser(se_ModifyVpnConnectionOptionsCommand).de(de_ModifyVpnConnectionOptionsCommand).build() {
      static {
        __name(this, "ModifyVpnConnectionOptionsCommand");
      }
      static {
        __name2(this, "ModifyVpnConnectionOptionsCommand");
      }
    };
    var ModifyVpnTunnelCertificateCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyVpnTunnelCertificate", {}).n("EC2Client", "ModifyVpnTunnelCertificateCommand").f(void 0, ModifyVpnTunnelCertificateResultFilterSensitiveLog).ser(se_ModifyVpnTunnelCertificateCommand).de(de_ModifyVpnTunnelCertificateCommand).build() {
      static {
        __name(this, "ModifyVpnTunnelCertificateCommand");
      }
      static {
        __name2(this, "ModifyVpnTunnelCertificateCommand");
      }
    };
    var ModifyVpnTunnelOptionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ModifyVpnTunnelOptions", {}).n("EC2Client", "ModifyVpnTunnelOptionsCommand").f(ModifyVpnTunnelOptionsRequestFilterSensitiveLog, ModifyVpnTunnelOptionsResultFilterSensitiveLog).ser(se_ModifyVpnTunnelOptionsCommand).de(de_ModifyVpnTunnelOptionsCommand).build() {
      static {
        __name(this, "ModifyVpnTunnelOptionsCommand");
      }
      static {
        __name2(this, "ModifyVpnTunnelOptionsCommand");
      }
    };
    var MonitorInstancesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "MonitorInstances", {}).n("EC2Client", "MonitorInstancesCommand").f(void 0, void 0).ser(se_MonitorInstancesCommand).de(de_MonitorInstancesCommand).build() {
      static {
        __name(this, "MonitorInstancesCommand");
      }
      static {
        __name2(this, "MonitorInstancesCommand");
      }
    };
    var MoveAddressToVpcCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "MoveAddressToVpc", {}).n("EC2Client", "MoveAddressToVpcCommand").f(void 0, void 0).ser(se_MoveAddressToVpcCommand).de(de_MoveAddressToVpcCommand).build() {
      static {
        __name(this, "MoveAddressToVpcCommand");
      }
      static {
        __name2(this, "MoveAddressToVpcCommand");
      }
    };
    var MoveByoipCidrToIpamCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "MoveByoipCidrToIpam", {}).n("EC2Client", "MoveByoipCidrToIpamCommand").f(void 0, void 0).ser(se_MoveByoipCidrToIpamCommand).de(de_MoveByoipCidrToIpamCommand).build() {
      static {
        __name(this, "MoveByoipCidrToIpamCommand");
      }
      static {
        __name2(this, "MoveByoipCidrToIpamCommand");
      }
    };
    var MoveCapacityReservationInstancesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "MoveCapacityReservationInstances", {}).n("EC2Client", "MoveCapacityReservationInstancesCommand").f(void 0, void 0).ser(se_MoveCapacityReservationInstancesCommand).de(de_MoveCapacityReservationInstancesCommand).build() {
      static {
        __name(this, "MoveCapacityReservationInstancesCommand");
      }
      static {
        __name2(this, "MoveCapacityReservationInstancesCommand");
      }
    };
    var ProvisionByoipCidrCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ProvisionByoipCidr", {}).n("EC2Client", "ProvisionByoipCidrCommand").f(void 0, void 0).ser(se_ProvisionByoipCidrCommand).de(de_ProvisionByoipCidrCommand).build() {
      static {
        __name(this, "ProvisionByoipCidrCommand");
      }
      static {
        __name2(this, "ProvisionByoipCidrCommand");
      }
    };
    var ProvisionIpamByoasnCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ProvisionIpamByoasn", {}).n("EC2Client", "ProvisionIpamByoasnCommand").f(void 0, void 0).ser(se_ProvisionIpamByoasnCommand).de(de_ProvisionIpamByoasnCommand).build() {
      static {
        __name(this, "ProvisionIpamByoasnCommand");
      }
      static {
        __name2(this, "ProvisionIpamByoasnCommand");
      }
    };
    var ProvisionIpamPoolCidrCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ProvisionIpamPoolCidr", {}).n("EC2Client", "ProvisionIpamPoolCidrCommand").f(void 0, void 0).ser(se_ProvisionIpamPoolCidrCommand).de(de_ProvisionIpamPoolCidrCommand).build() {
      static {
        __name(this, "ProvisionIpamPoolCidrCommand");
      }
      static {
        __name2(this, "ProvisionIpamPoolCidrCommand");
      }
    };
    var ProvisionPublicIpv4PoolCidrCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ProvisionPublicIpv4PoolCidr", {}).n("EC2Client", "ProvisionPublicIpv4PoolCidrCommand").f(void 0, void 0).ser(se_ProvisionPublicIpv4PoolCidrCommand).de(de_ProvisionPublicIpv4PoolCidrCommand).build() {
      static {
        __name(this, "ProvisionPublicIpv4PoolCidrCommand");
      }
      static {
        __name2(this, "ProvisionPublicIpv4PoolCidrCommand");
      }
    };
    var PurchaseCapacityBlockCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "PurchaseCapacityBlock", {}).n("EC2Client", "PurchaseCapacityBlockCommand").f(void 0, void 0).ser(se_PurchaseCapacityBlockCommand).de(de_PurchaseCapacityBlockCommand).build() {
      static {
        __name(this, "PurchaseCapacityBlockCommand");
      }
      static {
        __name2(this, "PurchaseCapacityBlockCommand");
      }
    };
    var PurchaseCapacityBlockExtensionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "PurchaseCapacityBlockExtension", {}).n("EC2Client", "PurchaseCapacityBlockExtensionCommand").f(void 0, void 0).ser(se_PurchaseCapacityBlockExtensionCommand).de(de_PurchaseCapacityBlockExtensionCommand).build() {
      static {
        __name(this, "PurchaseCapacityBlockExtensionCommand");
      }
      static {
        __name2(this, "PurchaseCapacityBlockExtensionCommand");
      }
    };
    var PurchaseHostReservationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "PurchaseHostReservation", {}).n("EC2Client", "PurchaseHostReservationCommand").f(void 0, void 0).ser(se_PurchaseHostReservationCommand).de(de_PurchaseHostReservationCommand).build() {
      static {
        __name(this, "PurchaseHostReservationCommand");
      }
      static {
        __name2(this, "PurchaseHostReservationCommand");
      }
    };
    var PurchaseReservedInstancesOfferingCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "PurchaseReservedInstancesOffering", {}).n("EC2Client", "PurchaseReservedInstancesOfferingCommand").f(void 0, void 0).ser(se_PurchaseReservedInstancesOfferingCommand).de(de_PurchaseReservedInstancesOfferingCommand).build() {
      static {
        __name(this, "PurchaseReservedInstancesOfferingCommand");
      }
      static {
        __name2(this, "PurchaseReservedInstancesOfferingCommand");
      }
    };
    var PurchaseScheduledInstancesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "PurchaseScheduledInstances", {}).n("EC2Client", "PurchaseScheduledInstancesCommand").f(void 0, void 0).ser(se_PurchaseScheduledInstancesCommand).de(de_PurchaseScheduledInstancesCommand).build() {
      static {
        __name(this, "PurchaseScheduledInstancesCommand");
      }
      static {
        __name2(this, "PurchaseScheduledInstancesCommand");
      }
    };
    var RebootInstancesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "RebootInstances", {}).n("EC2Client", "RebootInstancesCommand").f(void 0, void 0).ser(se_RebootInstancesCommand).de(de_RebootInstancesCommand).build() {
      static {
        __name(this, "RebootInstancesCommand");
      }
      static {
        __name2(this, "RebootInstancesCommand");
      }
    };
    var RegisterImageCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "RegisterImage", {}).n("EC2Client", "RegisterImageCommand").f(void 0, void 0).ser(se_RegisterImageCommand).de(de_RegisterImageCommand).build() {
      static {
        __name(this, "RegisterImageCommand");
      }
      static {
        __name2(this, "RegisterImageCommand");
      }
    };
    var RegisterInstanceEventNotificationAttributesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "RegisterInstanceEventNotificationAttributes", {}).n("EC2Client", "RegisterInstanceEventNotificationAttributesCommand").f(void 0, void 0).ser(se_RegisterInstanceEventNotificationAttributesCommand).de(de_RegisterInstanceEventNotificationAttributesCommand).build() {
      static {
        __name(this, "RegisterInstanceEventNotificationAttributesCommand");
      }
      static {
        __name2(this, "RegisterInstanceEventNotificationAttributesCommand");
      }
    };
    var RegisterTransitGatewayMulticastGroupMembersCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "RegisterTransitGatewayMulticastGroupMembers", {}).n("EC2Client", "RegisterTransitGatewayMulticastGroupMembersCommand").f(void 0, void 0).ser(se_RegisterTransitGatewayMulticastGroupMembersCommand).de(de_RegisterTransitGatewayMulticastGroupMembersCommand).build() {
      static {
        __name(this, "RegisterTransitGatewayMulticastGroupMembersCommand");
      }
      static {
        __name2(this, "RegisterTransitGatewayMulticastGroupMembersCommand");
      }
    };
    var RegisterTransitGatewayMulticastGroupSourcesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "RegisterTransitGatewayMulticastGroupSources", {}).n("EC2Client", "RegisterTransitGatewayMulticastGroupSourcesCommand").f(void 0, void 0).ser(se_RegisterTransitGatewayMulticastGroupSourcesCommand).de(de_RegisterTransitGatewayMulticastGroupSourcesCommand).build() {
      static {
        __name(this, "RegisterTransitGatewayMulticastGroupSourcesCommand");
      }
      static {
        __name2(this, "RegisterTransitGatewayMulticastGroupSourcesCommand");
      }
    };
    var RejectCapacityReservationBillingOwnershipCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "RejectCapacityReservationBillingOwnership", {}).n("EC2Client", "RejectCapacityReservationBillingOwnershipCommand").f(void 0, void 0).ser(se_RejectCapacityReservationBillingOwnershipCommand).de(de_RejectCapacityReservationBillingOwnershipCommand).build() {
      static {
        __name(this, "RejectCapacityReservationBillingOwnershipCommand");
      }
      static {
        __name2(this, "RejectCapacityReservationBillingOwnershipCommand");
      }
    };
    var RejectTransitGatewayMulticastDomainAssociationsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "RejectTransitGatewayMulticastDomainAssociations", {}).n("EC2Client", "RejectTransitGatewayMulticastDomainAssociationsCommand").f(void 0, void 0).ser(se_RejectTransitGatewayMulticastDomainAssociationsCommand).de(de_RejectTransitGatewayMulticastDomainAssociationsCommand).build() {
      static {
        __name(this, "RejectTransitGatewayMulticastDomainAssociationsCommand");
      }
      static {
        __name2(this, "RejectTransitGatewayMulticastDomainAssociationsCommand");
      }
    };
    var RejectTransitGatewayPeeringAttachmentCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "RejectTransitGatewayPeeringAttachment", {}).n("EC2Client", "RejectTransitGatewayPeeringAttachmentCommand").f(void 0, void 0).ser(se_RejectTransitGatewayPeeringAttachmentCommand).de(de_RejectTransitGatewayPeeringAttachmentCommand).build() {
      static {
        __name(this, "RejectTransitGatewayPeeringAttachmentCommand");
      }
      static {
        __name2(this, "RejectTransitGatewayPeeringAttachmentCommand");
      }
    };
    var RejectTransitGatewayVpcAttachmentCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "RejectTransitGatewayVpcAttachment", {}).n("EC2Client", "RejectTransitGatewayVpcAttachmentCommand").f(void 0, void 0).ser(se_RejectTransitGatewayVpcAttachmentCommand).de(de_RejectTransitGatewayVpcAttachmentCommand).build() {
      static {
        __name(this, "RejectTransitGatewayVpcAttachmentCommand");
      }
      static {
        __name2(this, "RejectTransitGatewayVpcAttachmentCommand");
      }
    };
    var RejectVpcEndpointConnectionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "RejectVpcEndpointConnections", {}).n("EC2Client", "RejectVpcEndpointConnectionsCommand").f(void 0, void 0).ser(se_RejectVpcEndpointConnectionsCommand).de(de_RejectVpcEndpointConnectionsCommand).build() {
      static {
        __name(this, "RejectVpcEndpointConnectionsCommand");
      }
      static {
        __name2(this, "RejectVpcEndpointConnectionsCommand");
      }
    };
    var RejectVpcPeeringConnectionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "RejectVpcPeeringConnection", {}).n("EC2Client", "RejectVpcPeeringConnectionCommand").f(void 0, void 0).ser(se_RejectVpcPeeringConnectionCommand).de(de_RejectVpcPeeringConnectionCommand).build() {
      static {
        __name(this, "RejectVpcPeeringConnectionCommand");
      }
      static {
        __name2(this, "RejectVpcPeeringConnectionCommand");
      }
    };
    var ReleaseAddressCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ReleaseAddress", {}).n("EC2Client", "ReleaseAddressCommand").f(void 0, void 0).ser(se_ReleaseAddressCommand).de(de_ReleaseAddressCommand).build() {
      static {
        __name(this, "ReleaseAddressCommand");
      }
      static {
        __name2(this, "ReleaseAddressCommand");
      }
    };
    var ReleaseHostsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ReleaseHosts", {}).n("EC2Client", "ReleaseHostsCommand").f(void 0, void 0).ser(se_ReleaseHostsCommand).de(de_ReleaseHostsCommand).build() {
      static {
        __name(this, "ReleaseHostsCommand");
      }
      static {
        __name2(this, "ReleaseHostsCommand");
      }
    };
    var ReleaseIpamPoolAllocationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ReleaseIpamPoolAllocation", {}).n("EC2Client", "ReleaseIpamPoolAllocationCommand").f(void 0, void 0).ser(se_ReleaseIpamPoolAllocationCommand).de(de_ReleaseIpamPoolAllocationCommand).build() {
      static {
        __name(this, "ReleaseIpamPoolAllocationCommand");
      }
      static {
        __name2(this, "ReleaseIpamPoolAllocationCommand");
      }
    };
    var ReplaceIamInstanceProfileAssociationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ReplaceIamInstanceProfileAssociation", {}).n("EC2Client", "ReplaceIamInstanceProfileAssociationCommand").f(void 0, void 0).ser(se_ReplaceIamInstanceProfileAssociationCommand).de(de_ReplaceIamInstanceProfileAssociationCommand).build() {
      static {
        __name(this, "ReplaceIamInstanceProfileAssociationCommand");
      }
      static {
        __name2(this, "ReplaceIamInstanceProfileAssociationCommand");
      }
    };
    var ReplaceImageCriteriaInAllowedImagesSettingsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ReplaceImageCriteriaInAllowedImagesSettings", {}).n("EC2Client", "ReplaceImageCriteriaInAllowedImagesSettingsCommand").f(void 0, void 0).ser(se_ReplaceImageCriteriaInAllowedImagesSettingsCommand).de(de_ReplaceImageCriteriaInAllowedImagesSettingsCommand).build() {
      static {
        __name(this, "ReplaceImageCriteriaInAllowedImagesSettingsCommand");
      }
      static {
        __name2(this, "ReplaceImageCriteriaInAllowedImagesSettingsCommand");
      }
    };
    var ReplaceNetworkAclAssociationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ReplaceNetworkAclAssociation", {}).n("EC2Client", "ReplaceNetworkAclAssociationCommand").f(void 0, void 0).ser(se_ReplaceNetworkAclAssociationCommand).de(de_ReplaceNetworkAclAssociationCommand).build() {
      static {
        __name(this, "ReplaceNetworkAclAssociationCommand");
      }
      static {
        __name2(this, "ReplaceNetworkAclAssociationCommand");
      }
    };
    var ReplaceNetworkAclEntryCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ReplaceNetworkAclEntry", {}).n("EC2Client", "ReplaceNetworkAclEntryCommand").f(void 0, void 0).ser(se_ReplaceNetworkAclEntryCommand).de(de_ReplaceNetworkAclEntryCommand).build() {
      static {
        __name(this, "ReplaceNetworkAclEntryCommand");
      }
      static {
        __name2(this, "ReplaceNetworkAclEntryCommand");
      }
    };
    var ReplaceRouteCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ReplaceRoute", {}).n("EC2Client", "ReplaceRouteCommand").f(void 0, void 0).ser(se_ReplaceRouteCommand).de(de_ReplaceRouteCommand).build() {
      static {
        __name(this, "ReplaceRouteCommand");
      }
      static {
        __name2(this, "ReplaceRouteCommand");
      }
    };
    var ReplaceRouteTableAssociationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ReplaceRouteTableAssociation", {}).n("EC2Client", "ReplaceRouteTableAssociationCommand").f(void 0, void 0).ser(se_ReplaceRouteTableAssociationCommand).de(de_ReplaceRouteTableAssociationCommand).build() {
      static {
        __name(this, "ReplaceRouteTableAssociationCommand");
      }
      static {
        __name2(this, "ReplaceRouteTableAssociationCommand");
      }
    };
    var ReplaceTransitGatewayRouteCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ReplaceTransitGatewayRoute", {}).n("EC2Client", "ReplaceTransitGatewayRouteCommand").f(void 0, void 0).ser(se_ReplaceTransitGatewayRouteCommand).de(de_ReplaceTransitGatewayRouteCommand).build() {
      static {
        __name(this, "ReplaceTransitGatewayRouteCommand");
      }
      static {
        __name2(this, "ReplaceTransitGatewayRouteCommand");
      }
    };
    var ReplaceVpnTunnelCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ReplaceVpnTunnel", {}).n("EC2Client", "ReplaceVpnTunnelCommand").f(void 0, void 0).ser(se_ReplaceVpnTunnelCommand).de(de_ReplaceVpnTunnelCommand).build() {
      static {
        __name(this, "ReplaceVpnTunnelCommand");
      }
      static {
        __name2(this, "ReplaceVpnTunnelCommand");
      }
    };
    var ReportInstanceReasonCodes = {
      instance_stuck_in_state: "instance-stuck-in-state",
      not_accepting_credentials: "not-accepting-credentials",
      other: "other",
      password_not_available: "password-not-available",
      performance_ebs_volume: "performance-ebs-volume",
      performance_instance_store: "performance-instance-store",
      performance_network: "performance-network",
      performance_other: "performance-other",
      unresponsive: "unresponsive"
    };
    var ReportStatusType = {
      impaired: "impaired",
      ok: "ok"
    };
    var ResetFpgaImageAttributeName = {
      loadPermission: "loadPermission"
    };
    var ResetImageAttributeName = {
      launchPermission: "launchPermission"
    };
    var MembershipType = {
      igmp: "igmp",
      static: "static"
    };
    var ReportInstanceStatusRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Description && { Description: import_smithy_client28.SENSITIVE_STRING }
    }), "ReportInstanceStatusRequestFilterSensitiveLog");
    var RequestSpotFleetRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.SpotFleetRequestConfig && {
        SpotFleetRequestConfig: SpotFleetRequestConfigDataFilterSensitiveLog(obj.SpotFleetRequestConfig)
      }
    }), "RequestSpotFleetRequestFilterSensitiveLog");
    var RequestSpotLaunchSpecificationFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.UserData && { UserData: import_smithy_client28.SENSITIVE_STRING }
    }), "RequestSpotLaunchSpecificationFilterSensitiveLog");
    var RequestSpotInstancesRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.LaunchSpecification && {
        LaunchSpecification: RequestSpotLaunchSpecificationFilterSensitiveLog(obj.LaunchSpecification)
      }
    }), "RequestSpotInstancesRequestFilterSensitiveLog");
    var RequestSpotInstancesResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.SpotInstanceRequests && {
        SpotInstanceRequests: obj.SpotInstanceRequests.map((item) => SpotInstanceRequestFilterSensitiveLog(item))
      }
    }), "RequestSpotInstancesResultFilterSensitiveLog");
    var RunInstancesRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.UserData && { UserData: import_smithy_client28.SENSITIVE_STRING }
    }), "RunInstancesRequestFilterSensitiveLog");
    var ScheduledInstancesLaunchSpecificationFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj
    }), "ScheduledInstancesLaunchSpecificationFilterSensitiveLog");
    var RunScheduledInstancesRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.LaunchSpecification && { LaunchSpecification: import_smithy_client28.SENSITIVE_STRING }
    }), "RunScheduledInstancesRequestFilterSensitiveLog");
    var ReportInstanceStatusCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ReportInstanceStatus", {}).n("EC2Client", "ReportInstanceStatusCommand").f(ReportInstanceStatusRequestFilterSensitiveLog, void 0).ser(se_ReportInstanceStatusCommand).de(de_ReportInstanceStatusCommand).build() {
      static {
        __name(this, "ReportInstanceStatusCommand");
      }
      static {
        __name2(this, "ReportInstanceStatusCommand");
      }
    };
    var RequestSpotFleetCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "RequestSpotFleet", {}).n("EC2Client", "RequestSpotFleetCommand").f(RequestSpotFleetRequestFilterSensitiveLog, void 0).ser(se_RequestSpotFleetCommand).de(de_RequestSpotFleetCommand).build() {
      static {
        __name(this, "RequestSpotFleetCommand");
      }
      static {
        __name2(this, "RequestSpotFleetCommand");
      }
    };
    var RequestSpotInstancesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "RequestSpotInstances", {}).n("EC2Client", "RequestSpotInstancesCommand").f(RequestSpotInstancesRequestFilterSensitiveLog, RequestSpotInstancesResultFilterSensitiveLog).ser(se_RequestSpotInstancesCommand).de(de_RequestSpotInstancesCommand).build() {
      static {
        __name(this, "RequestSpotInstancesCommand");
      }
      static {
        __name2(this, "RequestSpotInstancesCommand");
      }
    };
    var ResetAddressAttributeCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ResetAddressAttribute", {}).n("EC2Client", "ResetAddressAttributeCommand").f(void 0, void 0).ser(se_ResetAddressAttributeCommand).de(de_ResetAddressAttributeCommand).build() {
      static {
        __name(this, "ResetAddressAttributeCommand");
      }
      static {
        __name2(this, "ResetAddressAttributeCommand");
      }
    };
    var ResetEbsDefaultKmsKeyIdCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ResetEbsDefaultKmsKeyId", {}).n("EC2Client", "ResetEbsDefaultKmsKeyIdCommand").f(void 0, void 0).ser(se_ResetEbsDefaultKmsKeyIdCommand).de(de_ResetEbsDefaultKmsKeyIdCommand).build() {
      static {
        __name(this, "ResetEbsDefaultKmsKeyIdCommand");
      }
      static {
        __name2(this, "ResetEbsDefaultKmsKeyIdCommand");
      }
    };
    var ResetFpgaImageAttributeCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ResetFpgaImageAttribute", {}).n("EC2Client", "ResetFpgaImageAttributeCommand").f(void 0, void 0).ser(se_ResetFpgaImageAttributeCommand).de(de_ResetFpgaImageAttributeCommand).build() {
      static {
        __name(this, "ResetFpgaImageAttributeCommand");
      }
      static {
        __name2(this, "ResetFpgaImageAttributeCommand");
      }
    };
    var ResetImageAttributeCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ResetImageAttribute", {}).n("EC2Client", "ResetImageAttributeCommand").f(void 0, void 0).ser(se_ResetImageAttributeCommand).de(de_ResetImageAttributeCommand).build() {
      static {
        __name(this, "ResetImageAttributeCommand");
      }
      static {
        __name2(this, "ResetImageAttributeCommand");
      }
    };
    var ResetInstanceAttributeCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ResetInstanceAttribute", {}).n("EC2Client", "ResetInstanceAttributeCommand").f(void 0, void 0).ser(se_ResetInstanceAttributeCommand).de(de_ResetInstanceAttributeCommand).build() {
      static {
        __name(this, "ResetInstanceAttributeCommand");
      }
      static {
        __name2(this, "ResetInstanceAttributeCommand");
      }
    };
    var ResetNetworkInterfaceAttributeCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ResetNetworkInterfaceAttribute", {}).n("EC2Client", "ResetNetworkInterfaceAttributeCommand").f(void 0, void 0).ser(se_ResetNetworkInterfaceAttributeCommand).de(de_ResetNetworkInterfaceAttributeCommand).build() {
      static {
        __name(this, "ResetNetworkInterfaceAttributeCommand");
      }
      static {
        __name2(this, "ResetNetworkInterfaceAttributeCommand");
      }
    };
    var ResetSnapshotAttributeCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "ResetSnapshotAttribute", {}).n("EC2Client", "ResetSnapshotAttributeCommand").f(void 0, void 0).ser(se_ResetSnapshotAttributeCommand).de(de_ResetSnapshotAttributeCommand).build() {
      static {
        __name(this, "ResetSnapshotAttributeCommand");
      }
      static {
        __name2(this, "ResetSnapshotAttributeCommand");
      }
    };
    var RestoreAddressToClassicCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "RestoreAddressToClassic", {}).n("EC2Client", "RestoreAddressToClassicCommand").f(void 0, void 0).ser(se_RestoreAddressToClassicCommand).de(de_RestoreAddressToClassicCommand).build() {
      static {
        __name(this, "RestoreAddressToClassicCommand");
      }
      static {
        __name2(this, "RestoreAddressToClassicCommand");
      }
    };
    var RestoreImageFromRecycleBinCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "RestoreImageFromRecycleBin", {}).n("EC2Client", "RestoreImageFromRecycleBinCommand").f(void 0, void 0).ser(se_RestoreImageFromRecycleBinCommand).de(de_RestoreImageFromRecycleBinCommand).build() {
      static {
        __name(this, "RestoreImageFromRecycleBinCommand");
      }
      static {
        __name2(this, "RestoreImageFromRecycleBinCommand");
      }
    };
    var RestoreManagedPrefixListVersionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "RestoreManagedPrefixListVersion", {}).n("EC2Client", "RestoreManagedPrefixListVersionCommand").f(void 0, void 0).ser(se_RestoreManagedPrefixListVersionCommand).de(de_RestoreManagedPrefixListVersionCommand).build() {
      static {
        __name(this, "RestoreManagedPrefixListVersionCommand");
      }
      static {
        __name2(this, "RestoreManagedPrefixListVersionCommand");
      }
    };
    var RestoreSnapshotFromRecycleBinCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "RestoreSnapshotFromRecycleBin", {}).n("EC2Client", "RestoreSnapshotFromRecycleBinCommand").f(void 0, void 0).ser(se_RestoreSnapshotFromRecycleBinCommand).de(de_RestoreSnapshotFromRecycleBinCommand).build() {
      static {
        __name(this, "RestoreSnapshotFromRecycleBinCommand");
      }
      static {
        __name2(this, "RestoreSnapshotFromRecycleBinCommand");
      }
    };
    var RestoreSnapshotTierCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "RestoreSnapshotTier", {}).n("EC2Client", "RestoreSnapshotTierCommand").f(void 0, void 0).ser(se_RestoreSnapshotTierCommand).de(de_RestoreSnapshotTierCommand).build() {
      static {
        __name(this, "RestoreSnapshotTierCommand");
      }
      static {
        __name2(this, "RestoreSnapshotTierCommand");
      }
    };
    var RevokeClientVpnIngressCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "RevokeClientVpnIngress", {}).n("EC2Client", "RevokeClientVpnIngressCommand").f(void 0, void 0).ser(se_RevokeClientVpnIngressCommand).de(de_RevokeClientVpnIngressCommand).build() {
      static {
        __name(this, "RevokeClientVpnIngressCommand");
      }
      static {
        __name2(this, "RevokeClientVpnIngressCommand");
      }
    };
    var RevokeSecurityGroupEgressCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "RevokeSecurityGroupEgress", {}).n("EC2Client", "RevokeSecurityGroupEgressCommand").f(void 0, void 0).ser(se_RevokeSecurityGroupEgressCommand).de(de_RevokeSecurityGroupEgressCommand).build() {
      static {
        __name(this, "RevokeSecurityGroupEgressCommand");
      }
      static {
        __name2(this, "RevokeSecurityGroupEgressCommand");
      }
    };
    var RevokeSecurityGroupIngressCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "RevokeSecurityGroupIngress", {}).n("EC2Client", "RevokeSecurityGroupIngressCommand").f(void 0, void 0).ser(se_RevokeSecurityGroupIngressCommand).de(de_RevokeSecurityGroupIngressCommand).build() {
      static {
        __name(this, "RevokeSecurityGroupIngressCommand");
      }
      static {
        __name2(this, "RevokeSecurityGroupIngressCommand");
      }
    };
    var RunInstancesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "RunInstances", {}).n("EC2Client", "RunInstancesCommand").f(RunInstancesRequestFilterSensitiveLog, void 0).ser(se_RunInstancesCommand).de(de_RunInstancesCommand).build() {
      static {
        __name(this, "RunInstancesCommand");
      }
      static {
        __name2(this, "RunInstancesCommand");
      }
    };
    var RunScheduledInstancesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "RunScheduledInstances", {}).n("EC2Client", "RunScheduledInstancesCommand").f(RunScheduledInstancesRequestFilterSensitiveLog, void 0).ser(se_RunScheduledInstancesCommand).de(de_RunScheduledInstancesCommand).build() {
      static {
        __name(this, "RunScheduledInstancesCommand");
      }
      static {
        __name2(this, "RunScheduledInstancesCommand");
      }
    };
    var SearchLocalGatewayRoutesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "SearchLocalGatewayRoutes", {}).n("EC2Client", "SearchLocalGatewayRoutesCommand").f(void 0, void 0).ser(se_SearchLocalGatewayRoutesCommand).de(de_SearchLocalGatewayRoutesCommand).build() {
      static {
        __name(this, "SearchLocalGatewayRoutesCommand");
      }
      static {
        __name2(this, "SearchLocalGatewayRoutesCommand");
      }
    };
    var SearchTransitGatewayMulticastGroupsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "SearchTransitGatewayMulticastGroups", {}).n("EC2Client", "SearchTransitGatewayMulticastGroupsCommand").f(void 0, void 0).ser(se_SearchTransitGatewayMulticastGroupsCommand).de(de_SearchTransitGatewayMulticastGroupsCommand).build() {
      static {
        __name(this, "SearchTransitGatewayMulticastGroupsCommand");
      }
      static {
        __name2(this, "SearchTransitGatewayMulticastGroupsCommand");
      }
    };
    var SearchTransitGatewayRoutesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "SearchTransitGatewayRoutes", {}).n("EC2Client", "SearchTransitGatewayRoutesCommand").f(void 0, void 0).ser(se_SearchTransitGatewayRoutesCommand).de(de_SearchTransitGatewayRoutesCommand).build() {
      static {
        __name(this, "SearchTransitGatewayRoutesCommand");
      }
      static {
        __name2(this, "SearchTransitGatewayRoutesCommand");
      }
    };
    var SendDiagnosticInterruptCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "SendDiagnosticInterrupt", {}).n("EC2Client", "SendDiagnosticInterruptCommand").f(void 0, void 0).ser(se_SendDiagnosticInterruptCommand).de(de_SendDiagnosticInterruptCommand).build() {
      static {
        __name(this, "SendDiagnosticInterruptCommand");
      }
      static {
        __name2(this, "SendDiagnosticInterruptCommand");
      }
    };
    var StartDeclarativePoliciesReportCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "StartDeclarativePoliciesReport", {}).n("EC2Client", "StartDeclarativePoliciesReportCommand").f(void 0, void 0).ser(se_StartDeclarativePoliciesReportCommand).de(de_StartDeclarativePoliciesReportCommand).build() {
      static {
        __name(this, "StartDeclarativePoliciesReportCommand");
      }
      static {
        __name2(this, "StartDeclarativePoliciesReportCommand");
      }
    };
    var StartInstancesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "StartInstances", {}).n("EC2Client", "StartInstancesCommand").f(void 0, void 0).ser(se_StartInstancesCommand).de(de_StartInstancesCommand).build() {
      static {
        __name(this, "StartInstancesCommand");
      }
      static {
        __name2(this, "StartInstancesCommand");
      }
    };
    var StartNetworkInsightsAccessScopeAnalysisCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "StartNetworkInsightsAccessScopeAnalysis", {}).n("EC2Client", "StartNetworkInsightsAccessScopeAnalysisCommand").f(void 0, void 0).ser(se_StartNetworkInsightsAccessScopeAnalysisCommand).de(de_StartNetworkInsightsAccessScopeAnalysisCommand).build() {
      static {
        __name(this, "StartNetworkInsightsAccessScopeAnalysisCommand");
      }
      static {
        __name2(this, "StartNetworkInsightsAccessScopeAnalysisCommand");
      }
    };
    var StartNetworkInsightsAnalysisCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "StartNetworkInsightsAnalysis", {}).n("EC2Client", "StartNetworkInsightsAnalysisCommand").f(void 0, void 0).ser(se_StartNetworkInsightsAnalysisCommand).de(de_StartNetworkInsightsAnalysisCommand).build() {
      static {
        __name(this, "StartNetworkInsightsAnalysisCommand");
      }
      static {
        __name2(this, "StartNetworkInsightsAnalysisCommand");
      }
    };
    var StartVpcEndpointServicePrivateDnsVerificationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "StartVpcEndpointServicePrivateDnsVerification", {}).n("EC2Client", "StartVpcEndpointServicePrivateDnsVerificationCommand").f(void 0, void 0).ser(se_StartVpcEndpointServicePrivateDnsVerificationCommand).de(de_StartVpcEndpointServicePrivateDnsVerificationCommand).build() {
      static {
        __name(this, "StartVpcEndpointServicePrivateDnsVerificationCommand");
      }
      static {
        __name2(this, "StartVpcEndpointServicePrivateDnsVerificationCommand");
      }
    };
    var StopInstancesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "StopInstances", {}).n("EC2Client", "StopInstancesCommand").f(void 0, void 0).ser(se_StopInstancesCommand).de(de_StopInstancesCommand).build() {
      static {
        __name(this, "StopInstancesCommand");
      }
      static {
        __name2(this, "StopInstancesCommand");
      }
    };
    var TerminateClientVpnConnectionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "TerminateClientVpnConnections", {}).n("EC2Client", "TerminateClientVpnConnectionsCommand").f(void 0, void 0).ser(se_TerminateClientVpnConnectionsCommand).de(de_TerminateClientVpnConnectionsCommand).build() {
      static {
        __name(this, "TerminateClientVpnConnectionsCommand");
      }
      static {
        __name2(this, "TerminateClientVpnConnectionsCommand");
      }
    };
    var TerminateInstancesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "TerminateInstances", {}).n("EC2Client", "TerminateInstancesCommand").f(void 0, void 0).ser(se_TerminateInstancesCommand).de(de_TerminateInstancesCommand).build() {
      static {
        __name(this, "TerminateInstancesCommand");
      }
      static {
        __name2(this, "TerminateInstancesCommand");
      }
    };
    var UnassignIpv6AddressesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "UnassignIpv6Addresses", {}).n("EC2Client", "UnassignIpv6AddressesCommand").f(void 0, void 0).ser(se_UnassignIpv6AddressesCommand).de(de_UnassignIpv6AddressesCommand).build() {
      static {
        __name(this, "UnassignIpv6AddressesCommand");
      }
      static {
        __name2(this, "UnassignIpv6AddressesCommand");
      }
    };
    var UnassignPrivateIpAddressesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "UnassignPrivateIpAddresses", {}).n("EC2Client", "UnassignPrivateIpAddressesCommand").f(void 0, void 0).ser(se_UnassignPrivateIpAddressesCommand).de(de_UnassignPrivateIpAddressesCommand).build() {
      static {
        __name(this, "UnassignPrivateIpAddressesCommand");
      }
      static {
        __name2(this, "UnassignPrivateIpAddressesCommand");
      }
    };
    var UnassignPrivateNatGatewayAddressCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "UnassignPrivateNatGatewayAddress", {}).n("EC2Client", "UnassignPrivateNatGatewayAddressCommand").f(void 0, void 0).ser(se_UnassignPrivateNatGatewayAddressCommand).de(de_UnassignPrivateNatGatewayAddressCommand).build() {
      static {
        __name(this, "UnassignPrivateNatGatewayAddressCommand");
      }
      static {
        __name2(this, "UnassignPrivateNatGatewayAddressCommand");
      }
    };
    var UnlockSnapshotCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "UnlockSnapshot", {}).n("EC2Client", "UnlockSnapshotCommand").f(void 0, void 0).ser(se_UnlockSnapshotCommand).de(de_UnlockSnapshotCommand).build() {
      static {
        __name(this, "UnlockSnapshotCommand");
      }
      static {
        __name2(this, "UnlockSnapshotCommand");
      }
    };
    var UnmonitorInstancesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "UnmonitorInstances", {}).n("EC2Client", "UnmonitorInstancesCommand").f(void 0, void 0).ser(se_UnmonitorInstancesCommand).de(de_UnmonitorInstancesCommand).build() {
      static {
        __name(this, "UnmonitorInstancesCommand");
      }
      static {
        __name2(this, "UnmonitorInstancesCommand");
      }
    };
    var UpdateSecurityGroupRuleDescriptionsEgressCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "UpdateSecurityGroupRuleDescriptionsEgress", {}).n("EC2Client", "UpdateSecurityGroupRuleDescriptionsEgressCommand").f(void 0, void 0).ser(se_UpdateSecurityGroupRuleDescriptionsEgressCommand).de(de_UpdateSecurityGroupRuleDescriptionsEgressCommand).build() {
      static {
        __name(this, "UpdateSecurityGroupRuleDescriptionsEgressCommand");
      }
      static {
        __name2(this, "UpdateSecurityGroupRuleDescriptionsEgressCommand");
      }
    };
    var UpdateSecurityGroupRuleDescriptionsIngressCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "UpdateSecurityGroupRuleDescriptionsIngress", {}).n("EC2Client", "UpdateSecurityGroupRuleDescriptionsIngressCommand").f(void 0, void 0).ser(se_UpdateSecurityGroupRuleDescriptionsIngressCommand).de(de_UpdateSecurityGroupRuleDescriptionsIngressCommand).build() {
      static {
        __name(this, "UpdateSecurityGroupRuleDescriptionsIngressCommand");
      }
      static {
        __name2(this, "UpdateSecurityGroupRuleDescriptionsIngressCommand");
      }
    };
    var WithdrawByoipCidrCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2", "WithdrawByoipCidr", {}).n("EC2Client", "WithdrawByoipCidrCommand").f(void 0, void 0).ser(se_WithdrawByoipCidrCommand).de(de_WithdrawByoipCidrCommand).build() {
      static {
        __name(this, "WithdrawByoipCidrCommand");
      }
      static {
        __name2(this, "WithdrawByoipCidrCommand");
      }
    };
    var commands3 = {
      AcceptAddressTransferCommand,
      AcceptCapacityReservationBillingOwnershipCommand,
      AcceptReservedInstancesExchangeQuoteCommand,
      AcceptTransitGatewayMulticastDomainAssociationsCommand,
      AcceptTransitGatewayPeeringAttachmentCommand,
      AcceptTransitGatewayVpcAttachmentCommand,
      AcceptVpcEndpointConnectionsCommand,
      AcceptVpcPeeringConnectionCommand,
      AdvertiseByoipCidrCommand,
      AllocateAddressCommand,
      AllocateHostsCommand,
      AllocateIpamPoolCidrCommand,
      ApplySecurityGroupsToClientVpnTargetNetworkCommand,
      AssignIpv6AddressesCommand,
      AssignPrivateIpAddressesCommand,
      AssignPrivateNatGatewayAddressCommand,
      AssociateAddressCommand,
      AssociateCapacityReservationBillingOwnerCommand,
      AssociateClientVpnTargetNetworkCommand,
      AssociateDhcpOptionsCommand,
      AssociateEnclaveCertificateIamRoleCommand,
      AssociateIamInstanceProfileCommand,
      AssociateInstanceEventWindowCommand,
      AssociateIpamByoasnCommand,
      AssociateIpamResourceDiscoveryCommand,
      AssociateNatGatewayAddressCommand,
      AssociateRouteServerCommand,
      AssociateRouteTableCommand,
      AssociateSecurityGroupVpcCommand,
      AssociateSubnetCidrBlockCommand,
      AssociateTransitGatewayMulticastDomainCommand,
      AssociateTransitGatewayPolicyTableCommand,
      AssociateTransitGatewayRouteTableCommand,
      AssociateTrunkInterfaceCommand,
      AssociateVpcCidrBlockCommand,
      AttachClassicLinkVpcCommand,
      AttachInternetGatewayCommand,
      AttachNetworkInterfaceCommand,
      AttachVerifiedAccessTrustProviderCommand,
      AttachVolumeCommand,
      AttachVpnGatewayCommand,
      AuthorizeClientVpnIngressCommand,
      AuthorizeSecurityGroupEgressCommand,
      AuthorizeSecurityGroupIngressCommand,
      BundleInstanceCommand,
      CancelBundleTaskCommand,
      CancelCapacityReservationCommand,
      CancelCapacityReservationFleetsCommand,
      CancelConversionTaskCommand,
      CancelDeclarativePoliciesReportCommand,
      CancelExportTaskCommand,
      CancelImageLaunchPermissionCommand,
      CancelImportTaskCommand,
      CancelReservedInstancesListingCommand,
      CancelSpotFleetRequestsCommand,
      CancelSpotInstanceRequestsCommand,
      ConfirmProductInstanceCommand,
      CopyFpgaImageCommand,
      CopyImageCommand,
      CopySnapshotCommand,
      CreateCapacityReservationCommand,
      CreateCapacityReservationBySplittingCommand,
      CreateCapacityReservationFleetCommand,
      CreateCarrierGatewayCommand,
      CreateClientVpnEndpointCommand,
      CreateClientVpnRouteCommand,
      CreateCoipCidrCommand,
      CreateCoipPoolCommand,
      CreateCustomerGatewayCommand,
      CreateDefaultSubnetCommand,
      CreateDefaultVpcCommand,
      CreateDelegateMacVolumeOwnershipTaskCommand,
      CreateDhcpOptionsCommand,
      CreateEgressOnlyInternetGatewayCommand,
      CreateFleetCommand,
      CreateFlowLogsCommand,
      CreateFpgaImageCommand,
      CreateImageCommand,
      CreateImageUsageReportCommand,
      CreateInstanceConnectEndpointCommand,
      CreateInstanceEventWindowCommand,
      CreateInstanceExportTaskCommand,
      CreateInternetGatewayCommand,
      CreateIpamCommand,
      CreateIpamExternalResourceVerificationTokenCommand,
      CreateIpamPoolCommand,
      CreateIpamResourceDiscoveryCommand,
      CreateIpamScopeCommand,
      CreateKeyPairCommand,
      CreateLaunchTemplateCommand,
      CreateLaunchTemplateVersionCommand,
      CreateLocalGatewayRouteCommand,
      CreateLocalGatewayRouteTableCommand,
      CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationCommand,
      CreateLocalGatewayRouteTableVpcAssociationCommand,
      CreateLocalGatewayVirtualInterfaceCommand,
      CreateLocalGatewayVirtualInterfaceGroupCommand,
      CreateMacSystemIntegrityProtectionModificationTaskCommand,
      CreateManagedPrefixListCommand,
      CreateNatGatewayCommand,
      CreateNetworkAclCommand,
      CreateNetworkAclEntryCommand,
      CreateNetworkInsightsAccessScopeCommand,
      CreateNetworkInsightsPathCommand,
      CreateNetworkInterfaceCommand,
      CreateNetworkInterfacePermissionCommand,
      CreatePlacementGroupCommand,
      CreatePublicIpv4PoolCommand,
      CreateReplaceRootVolumeTaskCommand,
      CreateReservedInstancesListingCommand,
      CreateRestoreImageTaskCommand,
      CreateRouteCommand,
      CreateRouteServerCommand,
      CreateRouteServerEndpointCommand,
      CreateRouteServerPeerCommand,
      CreateRouteTableCommand,
      CreateSecurityGroupCommand,
      CreateSnapshotCommand,
      CreateSnapshotsCommand,
      CreateSpotDatafeedSubscriptionCommand,
      CreateStoreImageTaskCommand,
      CreateSubnetCommand,
      CreateSubnetCidrReservationCommand,
      CreateTagsCommand,
      CreateTrafficMirrorFilterCommand,
      CreateTrafficMirrorFilterRuleCommand,
      CreateTrafficMirrorSessionCommand,
      CreateTrafficMirrorTargetCommand,
      CreateTransitGatewayCommand,
      CreateTransitGatewayConnectCommand,
      CreateTransitGatewayConnectPeerCommand,
      CreateTransitGatewayMulticastDomainCommand,
      CreateTransitGatewayPeeringAttachmentCommand,
      CreateTransitGatewayPolicyTableCommand,
      CreateTransitGatewayPrefixListReferenceCommand,
      CreateTransitGatewayRouteCommand,
      CreateTransitGatewayRouteTableCommand,
      CreateTransitGatewayRouteTableAnnouncementCommand,
      CreateTransitGatewayVpcAttachmentCommand,
      CreateVerifiedAccessEndpointCommand,
      CreateVerifiedAccessGroupCommand,
      CreateVerifiedAccessInstanceCommand,
      CreateVerifiedAccessTrustProviderCommand,
      CreateVolumeCommand,
      CreateVpcCommand,
      CreateVpcBlockPublicAccessExclusionCommand,
      CreateVpcEndpointCommand,
      CreateVpcEndpointConnectionNotificationCommand,
      CreateVpcEndpointServiceConfigurationCommand,
      CreateVpcPeeringConnectionCommand,
      CreateVpnConnectionCommand,
      CreateVpnConnectionRouteCommand,
      CreateVpnGatewayCommand,
      DeleteCarrierGatewayCommand,
      DeleteClientVpnEndpointCommand,
      DeleteClientVpnRouteCommand,
      DeleteCoipCidrCommand,
      DeleteCoipPoolCommand,
      DeleteCustomerGatewayCommand,
      DeleteDhcpOptionsCommand,
      DeleteEgressOnlyInternetGatewayCommand,
      DeleteFleetsCommand,
      DeleteFlowLogsCommand,
      DeleteFpgaImageCommand,
      DeleteImageUsageReportCommand,
      DeleteInstanceConnectEndpointCommand,
      DeleteInstanceEventWindowCommand,
      DeleteInternetGatewayCommand,
      DeleteIpamCommand,
      DeleteIpamExternalResourceVerificationTokenCommand,
      DeleteIpamPoolCommand,
      DeleteIpamResourceDiscoveryCommand,
      DeleteIpamScopeCommand,
      DeleteKeyPairCommand,
      DeleteLaunchTemplateCommand,
      DeleteLaunchTemplateVersionsCommand,
      DeleteLocalGatewayRouteCommand,
      DeleteLocalGatewayRouteTableCommand,
      DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationCommand,
      DeleteLocalGatewayRouteTableVpcAssociationCommand,
      DeleteLocalGatewayVirtualInterfaceCommand,
      DeleteLocalGatewayVirtualInterfaceGroupCommand,
      DeleteManagedPrefixListCommand,
      DeleteNatGatewayCommand,
      DeleteNetworkAclCommand,
      DeleteNetworkAclEntryCommand,
      DeleteNetworkInsightsAccessScopeCommand,
      DeleteNetworkInsightsAccessScopeAnalysisCommand,
      DeleteNetworkInsightsAnalysisCommand,
      DeleteNetworkInsightsPathCommand,
      DeleteNetworkInterfaceCommand,
      DeleteNetworkInterfacePermissionCommand,
      DeletePlacementGroupCommand,
      DeletePublicIpv4PoolCommand,
      DeleteQueuedReservedInstancesCommand,
      DeleteRouteCommand,
      DeleteRouteServerCommand,
      DeleteRouteServerEndpointCommand,
      DeleteRouteServerPeerCommand,
      DeleteRouteTableCommand,
      DeleteSecurityGroupCommand,
      DeleteSnapshotCommand,
      DeleteSpotDatafeedSubscriptionCommand,
      DeleteSubnetCommand,
      DeleteSubnetCidrReservationCommand,
      DeleteTagsCommand,
      DeleteTrafficMirrorFilterCommand,
      DeleteTrafficMirrorFilterRuleCommand,
      DeleteTrafficMirrorSessionCommand,
      DeleteTrafficMirrorTargetCommand,
      DeleteTransitGatewayCommand,
      DeleteTransitGatewayConnectCommand,
      DeleteTransitGatewayConnectPeerCommand,
      DeleteTransitGatewayMulticastDomainCommand,
      DeleteTransitGatewayPeeringAttachmentCommand,
      DeleteTransitGatewayPolicyTableCommand,
      DeleteTransitGatewayPrefixListReferenceCommand,
      DeleteTransitGatewayRouteCommand,
      DeleteTransitGatewayRouteTableCommand,
      DeleteTransitGatewayRouteTableAnnouncementCommand,
      DeleteTransitGatewayVpcAttachmentCommand,
      DeleteVerifiedAccessEndpointCommand,
      DeleteVerifiedAccessGroupCommand,
      DeleteVerifiedAccessInstanceCommand,
      DeleteVerifiedAccessTrustProviderCommand,
      DeleteVolumeCommand,
      DeleteVpcCommand,
      DeleteVpcBlockPublicAccessExclusionCommand,
      DeleteVpcEndpointConnectionNotificationsCommand,
      DeleteVpcEndpointsCommand,
      DeleteVpcEndpointServiceConfigurationsCommand,
      DeleteVpcPeeringConnectionCommand,
      DeleteVpnConnectionCommand,
      DeleteVpnConnectionRouteCommand,
      DeleteVpnGatewayCommand,
      DeprovisionByoipCidrCommand,
      DeprovisionIpamByoasnCommand,
      DeprovisionIpamPoolCidrCommand,
      DeprovisionPublicIpv4PoolCidrCommand,
      DeregisterImageCommand,
      DeregisterInstanceEventNotificationAttributesCommand,
      DeregisterTransitGatewayMulticastGroupMembersCommand,
      DeregisterTransitGatewayMulticastGroupSourcesCommand,
      DescribeAccountAttributesCommand,
      DescribeAddressesCommand,
      DescribeAddressesAttributeCommand,
      DescribeAddressTransfersCommand,
      DescribeAggregateIdFormatCommand,
      DescribeAvailabilityZonesCommand: DescribeAvailabilityZonesCommand2,
      DescribeAwsNetworkPerformanceMetricSubscriptionsCommand,
      DescribeBundleTasksCommand,
      DescribeByoipCidrsCommand,
      DescribeCapacityBlockExtensionHistoryCommand,
      DescribeCapacityBlockExtensionOfferingsCommand,
      DescribeCapacityBlockOfferingsCommand,
      DescribeCapacityBlocksCommand,
      DescribeCapacityBlockStatusCommand,
      DescribeCapacityReservationBillingRequestsCommand,
      DescribeCapacityReservationFleetsCommand,
      DescribeCapacityReservationsCommand,
      DescribeCarrierGatewaysCommand,
      DescribeClassicLinkInstancesCommand,
      DescribeClientVpnAuthorizationRulesCommand,
      DescribeClientVpnConnectionsCommand,
      DescribeClientVpnEndpointsCommand,
      DescribeClientVpnRoutesCommand,
      DescribeClientVpnTargetNetworksCommand,
      DescribeCoipPoolsCommand,
      DescribeConversionTasksCommand,
      DescribeCustomerGatewaysCommand,
      DescribeDeclarativePoliciesReportsCommand,
      DescribeDhcpOptionsCommand,
      DescribeEgressOnlyInternetGatewaysCommand,
      DescribeElasticGpusCommand,
      DescribeExportImageTasksCommand,
      DescribeExportTasksCommand,
      DescribeFastLaunchImagesCommand,
      DescribeFastSnapshotRestoresCommand,
      DescribeFleetHistoryCommand,
      DescribeFleetInstancesCommand,
      DescribeFleetsCommand,
      DescribeFlowLogsCommand,
      DescribeFpgaImageAttributeCommand,
      DescribeFpgaImagesCommand,
      DescribeHostReservationOfferingsCommand,
      DescribeHostReservationsCommand,
      DescribeHostsCommand,
      DescribeIamInstanceProfileAssociationsCommand,
      DescribeIdentityIdFormatCommand,
      DescribeIdFormatCommand,
      DescribeImageAttributeCommand,
      DescribeImageReferencesCommand,
      DescribeImagesCommand: DescribeImagesCommand3,
      DescribeImageUsageReportEntriesCommand,
      DescribeImageUsageReportsCommand,
      DescribeImportImageTasksCommand,
      DescribeImportSnapshotTasksCommand,
      DescribeInstanceAttributeCommand,
      DescribeInstanceConnectEndpointsCommand,
      DescribeInstanceCreditSpecificationsCommand,
      DescribeInstanceEventNotificationAttributesCommand,
      DescribeInstanceEventWindowsCommand,
      DescribeInstanceImageMetadataCommand,
      DescribeInstancesCommand: DescribeInstancesCommand2,
      DescribeInstanceStatusCommand,
      DescribeInstanceTopologyCommand,
      DescribeInstanceTypeOfferingsCommand,
      DescribeInstanceTypesCommand,
      DescribeInternetGatewaysCommand,
      DescribeIpamByoasnCommand,
      DescribeIpamExternalResourceVerificationTokensCommand,
      DescribeIpamPoolsCommand,
      DescribeIpamResourceDiscoveriesCommand,
      DescribeIpamResourceDiscoveryAssociationsCommand,
      DescribeIpamsCommand,
      DescribeIpamScopesCommand,
      DescribeIpv6PoolsCommand,
      DescribeKeyPairsCommand,
      DescribeLaunchTemplatesCommand,
      DescribeLaunchTemplateVersionsCommand,
      DescribeLocalGatewayRouteTablesCommand,
      DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsCommand,
      DescribeLocalGatewayRouteTableVpcAssociationsCommand,
      DescribeLocalGatewaysCommand,
      DescribeLocalGatewayVirtualInterfaceGroupsCommand,
      DescribeLocalGatewayVirtualInterfacesCommand,
      DescribeLockedSnapshotsCommand,
      DescribeMacHostsCommand,
      DescribeMacModificationTasksCommand,
      DescribeManagedPrefixListsCommand,
      DescribeMovingAddressesCommand,
      DescribeNatGatewaysCommand,
      DescribeNetworkAclsCommand,
      DescribeNetworkInsightsAccessScopeAnalysesCommand,
      DescribeNetworkInsightsAccessScopesCommand,
      DescribeNetworkInsightsAnalysesCommand,
      DescribeNetworkInsightsPathsCommand,
      DescribeNetworkInterfaceAttributeCommand,
      DescribeNetworkInterfacePermissionsCommand,
      DescribeNetworkInterfacesCommand,
      DescribeOutpostLagsCommand,
      DescribePlacementGroupsCommand,
      DescribePrefixListsCommand,
      DescribePrincipalIdFormatCommand,
      DescribePublicIpv4PoolsCommand,
      DescribeRegionsCommand,
      DescribeReplaceRootVolumeTasksCommand,
      DescribeReservedInstancesCommand,
      DescribeReservedInstancesListingsCommand,
      DescribeReservedInstancesModificationsCommand,
      DescribeReservedInstancesOfferingsCommand,
      DescribeRouteServerEndpointsCommand,
      DescribeRouteServerPeersCommand,
      DescribeRouteServersCommand,
      DescribeRouteTablesCommand: DescribeRouteTablesCommand2,
      DescribeScheduledInstanceAvailabilityCommand,
      DescribeScheduledInstancesCommand,
      DescribeSecurityGroupReferencesCommand,
      DescribeSecurityGroupRulesCommand,
      DescribeSecurityGroupsCommand: DescribeSecurityGroupsCommand2,
      DescribeSecurityGroupVpcAssociationsCommand,
      DescribeServiceLinkVirtualInterfacesCommand,
      DescribeSnapshotAttributeCommand,
      DescribeSnapshotsCommand,
      DescribeSnapshotTierStatusCommand,
      DescribeSpotDatafeedSubscriptionCommand,
      DescribeSpotFleetInstancesCommand,
      DescribeSpotFleetRequestHistoryCommand,
      DescribeSpotFleetRequestsCommand,
      DescribeSpotInstanceRequestsCommand,
      DescribeSpotPriceHistoryCommand,
      DescribeStaleSecurityGroupsCommand,
      DescribeStoreImageTasksCommand,
      DescribeSubnetsCommand: DescribeSubnetsCommand2,
      DescribeTagsCommand: DescribeTagsCommand2,
      DescribeTrafficMirrorFilterRulesCommand,
      DescribeTrafficMirrorFiltersCommand,
      DescribeTrafficMirrorSessionsCommand,
      DescribeTrafficMirrorTargetsCommand,
      DescribeTransitGatewayAttachmentsCommand,
      DescribeTransitGatewayConnectPeersCommand,
      DescribeTransitGatewayConnectsCommand,
      DescribeTransitGatewayMulticastDomainsCommand,
      DescribeTransitGatewayPeeringAttachmentsCommand,
      DescribeTransitGatewayPolicyTablesCommand,
      DescribeTransitGatewayRouteTableAnnouncementsCommand,
      DescribeTransitGatewayRouteTablesCommand,
      DescribeTransitGatewaysCommand,
      DescribeTransitGatewayVpcAttachmentsCommand,
      DescribeTrunkInterfaceAssociationsCommand,
      DescribeVerifiedAccessEndpointsCommand,
      DescribeVerifiedAccessGroupsCommand,
      DescribeVerifiedAccessInstanceLoggingConfigurationsCommand,
      DescribeVerifiedAccessInstancesCommand,
      DescribeVerifiedAccessTrustProvidersCommand,
      DescribeVolumeAttributeCommand,
      DescribeVolumesCommand,
      DescribeVolumesModificationsCommand,
      DescribeVolumeStatusCommand,
      DescribeVpcAttributeCommand,
      DescribeVpcBlockPublicAccessExclusionsCommand,
      DescribeVpcBlockPublicAccessOptionsCommand,
      DescribeVpcClassicLinkCommand,
      DescribeVpcClassicLinkDnsSupportCommand,
      DescribeVpcEndpointAssociationsCommand,
      DescribeVpcEndpointConnectionNotificationsCommand,
      DescribeVpcEndpointConnectionsCommand,
      DescribeVpcEndpointsCommand,
      DescribeVpcEndpointServiceConfigurationsCommand,
      DescribeVpcEndpointServicePermissionsCommand,
      DescribeVpcEndpointServicesCommand: DescribeVpcEndpointServicesCommand2,
      DescribeVpcPeeringConnectionsCommand,
      DescribeVpcsCommand: DescribeVpcsCommand2,
      DescribeVpnConnectionsCommand,
      DescribeVpnGatewaysCommand: DescribeVpnGatewaysCommand2,
      DetachClassicLinkVpcCommand,
      DetachInternetGatewayCommand,
      DetachNetworkInterfaceCommand,
      DetachVerifiedAccessTrustProviderCommand,
      DetachVolumeCommand,
      DetachVpnGatewayCommand,
      DisableAddressTransferCommand,
      DisableAllowedImagesSettingsCommand,
      DisableAwsNetworkPerformanceMetricSubscriptionCommand,
      DisableEbsEncryptionByDefaultCommand,
      DisableFastLaunchCommand,
      DisableFastSnapshotRestoresCommand,
      DisableImageCommand,
      DisableImageBlockPublicAccessCommand,
      DisableImageDeprecationCommand,
      DisableImageDeregistrationProtectionCommand,
      DisableIpamOrganizationAdminAccountCommand,
      DisableRouteServerPropagationCommand,
      DisableSerialConsoleAccessCommand,
      DisableSnapshotBlockPublicAccessCommand,
      DisableTransitGatewayRouteTablePropagationCommand,
      DisableVgwRoutePropagationCommand,
      DisableVpcClassicLinkCommand,
      DisableVpcClassicLinkDnsSupportCommand,
      DisassociateAddressCommand,
      DisassociateCapacityReservationBillingOwnerCommand,
      DisassociateClientVpnTargetNetworkCommand,
      DisassociateEnclaveCertificateIamRoleCommand,
      DisassociateIamInstanceProfileCommand,
      DisassociateInstanceEventWindowCommand,
      DisassociateIpamByoasnCommand,
      DisassociateIpamResourceDiscoveryCommand,
      DisassociateNatGatewayAddressCommand,
      DisassociateRouteServerCommand,
      DisassociateRouteTableCommand,
      DisassociateSecurityGroupVpcCommand,
      DisassociateSubnetCidrBlockCommand,
      DisassociateTransitGatewayMulticastDomainCommand,
      DisassociateTransitGatewayPolicyTableCommand,
      DisassociateTransitGatewayRouteTableCommand,
      DisassociateTrunkInterfaceCommand,
      DisassociateVpcCidrBlockCommand,
      EnableAddressTransferCommand,
      EnableAllowedImagesSettingsCommand,
      EnableAwsNetworkPerformanceMetricSubscriptionCommand,
      EnableEbsEncryptionByDefaultCommand,
      EnableFastLaunchCommand,
      EnableFastSnapshotRestoresCommand,
      EnableImageCommand,
      EnableImageBlockPublicAccessCommand,
      EnableImageDeprecationCommand,
      EnableImageDeregistrationProtectionCommand,
      EnableIpamOrganizationAdminAccountCommand,
      EnableReachabilityAnalyzerOrganizationSharingCommand,
      EnableRouteServerPropagationCommand,
      EnableSerialConsoleAccessCommand,
      EnableSnapshotBlockPublicAccessCommand,
      EnableTransitGatewayRouteTablePropagationCommand,
      EnableVgwRoutePropagationCommand,
      EnableVolumeIOCommand,
      EnableVpcClassicLinkCommand,
      EnableVpcClassicLinkDnsSupportCommand,
      ExportClientVpnClientCertificateRevocationListCommand,
      ExportClientVpnClientConfigurationCommand,
      ExportImageCommand,
      ExportTransitGatewayRoutesCommand,
      ExportVerifiedAccessInstanceClientConfigurationCommand,
      GetActiveVpnTunnelStatusCommand,
      GetAllowedImagesSettingsCommand,
      GetAssociatedEnclaveCertificateIamRolesCommand,
      GetAssociatedIpv6PoolCidrsCommand,
      GetAwsNetworkPerformanceDataCommand,
      GetCapacityReservationUsageCommand,
      GetCoipPoolUsageCommand,
      GetConsoleOutputCommand,
      GetConsoleScreenshotCommand,
      GetDeclarativePoliciesReportSummaryCommand,
      GetDefaultCreditSpecificationCommand,
      GetEbsDefaultKmsKeyIdCommand,
      GetEbsEncryptionByDefaultCommand,
      GetFlowLogsIntegrationTemplateCommand,
      GetGroupsForCapacityReservationCommand,
      GetHostReservationPurchasePreviewCommand,
      GetImageBlockPublicAccessStateCommand,
      GetInstanceMetadataDefaultsCommand,
      GetInstanceTpmEkPubCommand,
      GetInstanceTypesFromInstanceRequirementsCommand,
      GetInstanceUefiDataCommand,
      GetIpamAddressHistoryCommand,
      GetIpamDiscoveredAccountsCommand,
      GetIpamDiscoveredPublicAddressesCommand,
      GetIpamDiscoveredResourceCidrsCommand,
      GetIpamPoolAllocationsCommand,
      GetIpamPoolCidrsCommand,
      GetIpamResourceCidrsCommand,
      GetLaunchTemplateDataCommand,
      GetManagedPrefixListAssociationsCommand,
      GetManagedPrefixListEntriesCommand,
      GetNetworkInsightsAccessScopeAnalysisFindingsCommand,
      GetNetworkInsightsAccessScopeContentCommand,
      GetPasswordDataCommand,
      GetReservedInstancesExchangeQuoteCommand,
      GetRouteServerAssociationsCommand,
      GetRouteServerPropagationsCommand,
      GetRouteServerRoutingDatabaseCommand,
      GetSecurityGroupsForVpcCommand,
      GetSerialConsoleAccessStatusCommand,
      GetSnapshotBlockPublicAccessStateCommand,
      GetSpotPlacementScoresCommand,
      GetSubnetCidrReservationsCommand,
      GetTransitGatewayAttachmentPropagationsCommand,
      GetTransitGatewayMulticastDomainAssociationsCommand,
      GetTransitGatewayPolicyTableAssociationsCommand,
      GetTransitGatewayPolicyTableEntriesCommand,
      GetTransitGatewayPrefixListReferencesCommand,
      GetTransitGatewayRouteTableAssociationsCommand,
      GetTransitGatewayRouteTablePropagationsCommand,
      GetVerifiedAccessEndpointPolicyCommand,
      GetVerifiedAccessEndpointTargetsCommand,
      GetVerifiedAccessGroupPolicyCommand,
      GetVpnConnectionDeviceSampleConfigurationCommand,
      GetVpnConnectionDeviceTypesCommand,
      GetVpnTunnelReplacementStatusCommand,
      ImportClientVpnClientCertificateRevocationListCommand,
      ImportImageCommand,
      ImportInstanceCommand,
      ImportKeyPairCommand,
      ImportSnapshotCommand,
      ImportVolumeCommand,
      ListImagesInRecycleBinCommand,
      ListSnapshotsInRecycleBinCommand,
      LockSnapshotCommand,
      ModifyAddressAttributeCommand,
      ModifyAvailabilityZoneGroupCommand,
      ModifyCapacityReservationCommand,
      ModifyCapacityReservationFleetCommand,
      ModifyClientVpnEndpointCommand,
      ModifyDefaultCreditSpecificationCommand,
      ModifyEbsDefaultKmsKeyIdCommand,
      ModifyFleetCommand,
      ModifyFpgaImageAttributeCommand,
      ModifyHostsCommand,
      ModifyIdentityIdFormatCommand,
      ModifyIdFormatCommand,
      ModifyImageAttributeCommand,
      ModifyInstanceAttributeCommand,
      ModifyInstanceCapacityReservationAttributesCommand,
      ModifyInstanceConnectEndpointCommand,
      ModifyInstanceCpuOptionsCommand,
      ModifyInstanceCreditSpecificationCommand,
      ModifyInstanceEventStartTimeCommand,
      ModifyInstanceEventWindowCommand,
      ModifyInstanceMaintenanceOptionsCommand,
      ModifyInstanceMetadataDefaultsCommand,
      ModifyInstanceMetadataOptionsCommand,
      ModifyInstanceNetworkPerformanceOptionsCommand,
      ModifyInstancePlacementCommand,
      ModifyIpamCommand,
      ModifyIpamPoolCommand,
      ModifyIpamResourceCidrCommand,
      ModifyIpamResourceDiscoveryCommand,
      ModifyIpamScopeCommand,
      ModifyLaunchTemplateCommand,
      ModifyLocalGatewayRouteCommand,
      ModifyManagedPrefixListCommand,
      ModifyNetworkInterfaceAttributeCommand,
      ModifyPrivateDnsNameOptionsCommand,
      ModifyPublicIpDnsNameOptionsCommand,
      ModifyReservedInstancesCommand,
      ModifyRouteServerCommand,
      ModifySecurityGroupRulesCommand,
      ModifySnapshotAttributeCommand,
      ModifySnapshotTierCommand,
      ModifySpotFleetRequestCommand,
      ModifySubnetAttributeCommand,
      ModifyTrafficMirrorFilterNetworkServicesCommand,
      ModifyTrafficMirrorFilterRuleCommand,
      ModifyTrafficMirrorSessionCommand,
      ModifyTransitGatewayCommand,
      ModifyTransitGatewayPrefixListReferenceCommand,
      ModifyTransitGatewayVpcAttachmentCommand,
      ModifyVerifiedAccessEndpointCommand,
      ModifyVerifiedAccessEndpointPolicyCommand,
      ModifyVerifiedAccessGroupCommand,
      ModifyVerifiedAccessGroupPolicyCommand,
      ModifyVerifiedAccessInstanceCommand,
      ModifyVerifiedAccessInstanceLoggingConfigurationCommand,
      ModifyVerifiedAccessTrustProviderCommand,
      ModifyVolumeCommand,
      ModifyVolumeAttributeCommand,
      ModifyVpcAttributeCommand,
      ModifyVpcBlockPublicAccessExclusionCommand,
      ModifyVpcBlockPublicAccessOptionsCommand,
      ModifyVpcEndpointCommand,
      ModifyVpcEndpointConnectionNotificationCommand,
      ModifyVpcEndpointServiceConfigurationCommand,
      ModifyVpcEndpointServicePayerResponsibilityCommand,
      ModifyVpcEndpointServicePermissionsCommand,
      ModifyVpcPeeringConnectionOptionsCommand,
      ModifyVpcTenancyCommand,
      ModifyVpnConnectionCommand,
      ModifyVpnConnectionOptionsCommand,
      ModifyVpnTunnelCertificateCommand,
      ModifyVpnTunnelOptionsCommand,
      MonitorInstancesCommand,
      MoveAddressToVpcCommand,
      MoveByoipCidrToIpamCommand,
      MoveCapacityReservationInstancesCommand,
      ProvisionByoipCidrCommand,
      ProvisionIpamByoasnCommand,
      ProvisionIpamPoolCidrCommand,
      ProvisionPublicIpv4PoolCidrCommand,
      PurchaseCapacityBlockCommand,
      PurchaseCapacityBlockExtensionCommand,
      PurchaseHostReservationCommand,
      PurchaseReservedInstancesOfferingCommand,
      PurchaseScheduledInstancesCommand,
      RebootInstancesCommand,
      RegisterImageCommand,
      RegisterInstanceEventNotificationAttributesCommand,
      RegisterTransitGatewayMulticastGroupMembersCommand,
      RegisterTransitGatewayMulticastGroupSourcesCommand,
      RejectCapacityReservationBillingOwnershipCommand,
      RejectTransitGatewayMulticastDomainAssociationsCommand,
      RejectTransitGatewayPeeringAttachmentCommand,
      RejectTransitGatewayVpcAttachmentCommand,
      RejectVpcEndpointConnectionsCommand,
      RejectVpcPeeringConnectionCommand,
      ReleaseAddressCommand,
      ReleaseHostsCommand,
      ReleaseIpamPoolAllocationCommand,
      ReplaceIamInstanceProfileAssociationCommand,
      ReplaceImageCriteriaInAllowedImagesSettingsCommand,
      ReplaceNetworkAclAssociationCommand,
      ReplaceNetworkAclEntryCommand,
      ReplaceRouteCommand,
      ReplaceRouteTableAssociationCommand,
      ReplaceTransitGatewayRouteCommand,
      ReplaceVpnTunnelCommand,
      ReportInstanceStatusCommand,
      RequestSpotFleetCommand,
      RequestSpotInstancesCommand,
      ResetAddressAttributeCommand,
      ResetEbsDefaultKmsKeyIdCommand,
      ResetFpgaImageAttributeCommand,
      ResetImageAttributeCommand,
      ResetInstanceAttributeCommand,
      ResetNetworkInterfaceAttributeCommand,
      ResetSnapshotAttributeCommand,
      RestoreAddressToClassicCommand,
      RestoreImageFromRecycleBinCommand,
      RestoreManagedPrefixListVersionCommand,
      RestoreSnapshotFromRecycleBinCommand,
      RestoreSnapshotTierCommand,
      RevokeClientVpnIngressCommand,
      RevokeSecurityGroupEgressCommand,
      RevokeSecurityGroupIngressCommand,
      RunInstancesCommand,
      RunScheduledInstancesCommand,
      SearchLocalGatewayRoutesCommand,
      SearchTransitGatewayMulticastGroupsCommand,
      SearchTransitGatewayRoutesCommand,
      SendDiagnosticInterruptCommand,
      StartDeclarativePoliciesReportCommand,
      StartInstancesCommand,
      StartNetworkInsightsAccessScopeAnalysisCommand,
      StartNetworkInsightsAnalysisCommand,
      StartVpcEndpointServicePrivateDnsVerificationCommand,
      StopInstancesCommand,
      TerminateClientVpnConnectionsCommand,
      TerminateInstancesCommand,
      UnassignIpv6AddressesCommand,
      UnassignPrivateIpAddressesCommand,
      UnassignPrivateNatGatewayAddressCommand,
      UnlockSnapshotCommand,
      UnmonitorInstancesCommand,
      UpdateSecurityGroupRuleDescriptionsEgressCommand,
      UpdateSecurityGroupRuleDescriptionsIngressCommand,
      WithdrawByoipCidrCommand
    };
    var EC2 = class extends EC2Client2 {
      static {
        __name(this, "EC2");
      }
      static {
        __name2(this, "EC2");
      }
    };
    (0, import_smithy_client28.createAggregatedClient)(commands3, EC2);
    var paginateDescribeAddressTransfers = (0, import_core17.createPaginator)(EC2Client2, DescribeAddressTransfersCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeAddressesAttribute = (0, import_core17.createPaginator)(EC2Client2, DescribeAddressesAttributeCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeAwsNetworkPerformanceMetricSubscriptions = (0, import_core17.createPaginator)(EC2Client2, DescribeAwsNetworkPerformanceMetricSubscriptionsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeByoipCidrs = (0, import_core17.createPaginator)(EC2Client2, DescribeByoipCidrsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeCapacityBlockExtensionHistory = (0, import_core17.createPaginator)(EC2Client2, DescribeCapacityBlockExtensionHistoryCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeCapacityBlockExtensionOfferings = (0, import_core17.createPaginator)(EC2Client2, DescribeCapacityBlockExtensionOfferingsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeCapacityBlockOfferings = (0, import_core17.createPaginator)(EC2Client2, DescribeCapacityBlockOfferingsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeCapacityBlockStatus = (0, import_core17.createPaginator)(EC2Client2, DescribeCapacityBlockStatusCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeCapacityBlocks = (0, import_core17.createPaginator)(EC2Client2, DescribeCapacityBlocksCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeCapacityReservationBillingRequests = (0, import_core17.createPaginator)(EC2Client2, DescribeCapacityReservationBillingRequestsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeCapacityReservationFleets = (0, import_core17.createPaginator)(EC2Client2, DescribeCapacityReservationFleetsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeCapacityReservations = (0, import_core17.createPaginator)(EC2Client2, DescribeCapacityReservationsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeCarrierGateways = (0, import_core17.createPaginator)(EC2Client2, DescribeCarrierGatewaysCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeClassicLinkInstances = (0, import_core17.createPaginator)(EC2Client2, DescribeClassicLinkInstancesCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeClientVpnAuthorizationRules = (0, import_core17.createPaginator)(EC2Client2, DescribeClientVpnAuthorizationRulesCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeClientVpnConnections = (0, import_core17.createPaginator)(EC2Client2, DescribeClientVpnConnectionsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeClientVpnEndpoints = (0, import_core17.createPaginator)(EC2Client2, DescribeClientVpnEndpointsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeClientVpnRoutes = (0, import_core17.createPaginator)(EC2Client2, DescribeClientVpnRoutesCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeClientVpnTargetNetworks = (0, import_core17.createPaginator)(EC2Client2, DescribeClientVpnTargetNetworksCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeCoipPools = (0, import_core17.createPaginator)(EC2Client2, DescribeCoipPoolsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeDhcpOptions = (0, import_core17.createPaginator)(EC2Client2, DescribeDhcpOptionsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeEgressOnlyInternetGateways = (0, import_core17.createPaginator)(EC2Client2, DescribeEgressOnlyInternetGatewaysCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeExportImageTasks = (0, import_core17.createPaginator)(EC2Client2, DescribeExportImageTasksCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeFastLaunchImages = (0, import_core17.createPaginator)(EC2Client2, DescribeFastLaunchImagesCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeFastSnapshotRestores = (0, import_core17.createPaginator)(EC2Client2, DescribeFastSnapshotRestoresCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeFleets = (0, import_core17.createPaginator)(EC2Client2, DescribeFleetsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeFlowLogs = (0, import_core17.createPaginator)(EC2Client2, DescribeFlowLogsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeFpgaImages = (0, import_core17.createPaginator)(EC2Client2, DescribeFpgaImagesCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeHostReservationOfferings = (0, import_core17.createPaginator)(EC2Client2, DescribeHostReservationOfferingsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeHostReservations = (0, import_core17.createPaginator)(EC2Client2, DescribeHostReservationsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeHosts = (0, import_core17.createPaginator)(EC2Client2, DescribeHostsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeIamInstanceProfileAssociations = (0, import_core17.createPaginator)(EC2Client2, DescribeIamInstanceProfileAssociationsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeImageReferences = (0, import_core17.createPaginator)(EC2Client2, DescribeImageReferencesCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeImageUsageReportEntries = (0, import_core17.createPaginator)(EC2Client2, DescribeImageUsageReportEntriesCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeImageUsageReports = (0, import_core17.createPaginator)(EC2Client2, DescribeImageUsageReportsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeImages = (0, import_core17.createPaginator)(EC2Client2, DescribeImagesCommand3, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeImportImageTasks = (0, import_core17.createPaginator)(EC2Client2, DescribeImportImageTasksCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeImportSnapshotTasks = (0, import_core17.createPaginator)(EC2Client2, DescribeImportSnapshotTasksCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeInstanceConnectEndpoints = (0, import_core17.createPaginator)(EC2Client2, DescribeInstanceConnectEndpointsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeInstanceCreditSpecifications = (0, import_core17.createPaginator)(EC2Client2, DescribeInstanceCreditSpecificationsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeInstanceEventWindows = (0, import_core17.createPaginator)(EC2Client2, DescribeInstanceEventWindowsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeInstanceImageMetadata = (0, import_core17.createPaginator)(EC2Client2, DescribeInstanceImageMetadataCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeInstanceStatus = (0, import_core17.createPaginator)(EC2Client2, DescribeInstanceStatusCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeInstanceTopology = (0, import_core17.createPaginator)(EC2Client2, DescribeInstanceTopologyCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeInstanceTypeOfferings = (0, import_core17.createPaginator)(EC2Client2, DescribeInstanceTypeOfferingsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeInstanceTypes = (0, import_core17.createPaginator)(EC2Client2, DescribeInstanceTypesCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeInstances = (0, import_core17.createPaginator)(EC2Client2, DescribeInstancesCommand2, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeInternetGateways = (0, import_core17.createPaginator)(EC2Client2, DescribeInternetGatewaysCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeIpamPools = (0, import_core17.createPaginator)(EC2Client2, DescribeIpamPoolsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeIpamResourceDiscoveries = (0, import_core17.createPaginator)(EC2Client2, DescribeIpamResourceDiscoveriesCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeIpamResourceDiscoveryAssociations = (0, import_core17.createPaginator)(EC2Client2, DescribeIpamResourceDiscoveryAssociationsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeIpamScopes = (0, import_core17.createPaginator)(EC2Client2, DescribeIpamScopesCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeIpams = (0, import_core17.createPaginator)(EC2Client2, DescribeIpamsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeIpv6Pools = (0, import_core17.createPaginator)(EC2Client2, DescribeIpv6PoolsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeLaunchTemplateVersions = (0, import_core17.createPaginator)(EC2Client2, DescribeLaunchTemplateVersionsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeLaunchTemplates = (0, import_core17.createPaginator)(EC2Client2, DescribeLaunchTemplatesCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations = (0, import_core17.createPaginator)(
      EC2Client2,
      DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsCommand,
      "NextToken",
      "NextToken",
      "MaxResults"
    );
    var paginateDescribeLocalGatewayRouteTableVpcAssociations = (0, import_core17.createPaginator)(EC2Client2, DescribeLocalGatewayRouteTableVpcAssociationsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeLocalGatewayRouteTables = (0, import_core17.createPaginator)(EC2Client2, DescribeLocalGatewayRouteTablesCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeLocalGatewayVirtualInterfaceGroups = (0, import_core17.createPaginator)(EC2Client2, DescribeLocalGatewayVirtualInterfaceGroupsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeLocalGatewayVirtualInterfaces = (0, import_core17.createPaginator)(EC2Client2, DescribeLocalGatewayVirtualInterfacesCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeLocalGateways = (0, import_core17.createPaginator)(EC2Client2, DescribeLocalGatewaysCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeMacHosts = (0, import_core17.createPaginator)(EC2Client2, DescribeMacHostsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeMacModificationTasks = (0, import_core17.createPaginator)(EC2Client2, DescribeMacModificationTasksCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeManagedPrefixLists = (0, import_core17.createPaginator)(EC2Client2, DescribeManagedPrefixListsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeMovingAddresses = (0, import_core17.createPaginator)(EC2Client2, DescribeMovingAddressesCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeNatGateways = (0, import_core17.createPaginator)(EC2Client2, DescribeNatGatewaysCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeNetworkAcls = (0, import_core17.createPaginator)(EC2Client2, DescribeNetworkAclsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeNetworkInsightsAccessScopeAnalyses = (0, import_core17.createPaginator)(EC2Client2, DescribeNetworkInsightsAccessScopeAnalysesCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeNetworkInsightsAccessScopes = (0, import_core17.createPaginator)(EC2Client2, DescribeNetworkInsightsAccessScopesCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeNetworkInsightsAnalyses = (0, import_core17.createPaginator)(EC2Client2, DescribeNetworkInsightsAnalysesCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeNetworkInsightsPaths = (0, import_core17.createPaginator)(EC2Client2, DescribeNetworkInsightsPathsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeNetworkInterfacePermissions = (0, import_core17.createPaginator)(EC2Client2, DescribeNetworkInterfacePermissionsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeNetworkInterfaces = (0, import_core17.createPaginator)(EC2Client2, DescribeNetworkInterfacesCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribePrefixLists = (0, import_core17.createPaginator)(EC2Client2, DescribePrefixListsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribePrincipalIdFormat = (0, import_core17.createPaginator)(EC2Client2, DescribePrincipalIdFormatCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribePublicIpv4Pools = (0, import_core17.createPaginator)(EC2Client2, DescribePublicIpv4PoolsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeReplaceRootVolumeTasks = (0, import_core17.createPaginator)(EC2Client2, DescribeReplaceRootVolumeTasksCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeReservedInstancesModifications = (0, import_core17.createPaginator)(EC2Client2, DescribeReservedInstancesModificationsCommand, "NextToken", "NextToken", "");
    var paginateDescribeReservedInstancesOfferings = (0, import_core17.createPaginator)(EC2Client2, DescribeReservedInstancesOfferingsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeRouteServerEndpoints = (0, import_core17.createPaginator)(EC2Client2, DescribeRouteServerEndpointsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeRouteServerPeers = (0, import_core17.createPaginator)(EC2Client2, DescribeRouteServerPeersCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeRouteServers = (0, import_core17.createPaginator)(EC2Client2, DescribeRouteServersCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeRouteTables = (0, import_core17.createPaginator)(EC2Client2, DescribeRouteTablesCommand2, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeScheduledInstanceAvailability = (0, import_core17.createPaginator)(EC2Client2, DescribeScheduledInstanceAvailabilityCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeScheduledInstances = (0, import_core17.createPaginator)(EC2Client2, DescribeScheduledInstancesCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeSecurityGroupRules = (0, import_core17.createPaginator)(EC2Client2, DescribeSecurityGroupRulesCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeSecurityGroupVpcAssociations = (0, import_core17.createPaginator)(EC2Client2, DescribeSecurityGroupVpcAssociationsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeSecurityGroups = (0, import_core17.createPaginator)(EC2Client2, DescribeSecurityGroupsCommand2, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeSnapshotTierStatus = (0, import_core17.createPaginator)(EC2Client2, DescribeSnapshotTierStatusCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeSnapshots = (0, import_core17.createPaginator)(EC2Client2, DescribeSnapshotsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeSpotFleetRequests = (0, import_core17.createPaginator)(EC2Client2, DescribeSpotFleetRequestsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeSpotInstanceRequests = (0, import_core17.createPaginator)(EC2Client2, DescribeSpotInstanceRequestsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeSpotPriceHistory = (0, import_core17.createPaginator)(EC2Client2, DescribeSpotPriceHistoryCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeStaleSecurityGroups = (0, import_core17.createPaginator)(EC2Client2, DescribeStaleSecurityGroupsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeStoreImageTasks = (0, import_core17.createPaginator)(EC2Client2, DescribeStoreImageTasksCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeSubnets = (0, import_core17.createPaginator)(EC2Client2, DescribeSubnetsCommand2, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeTags = (0, import_core17.createPaginator)(EC2Client2, DescribeTagsCommand2, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeTrafficMirrorFilters = (0, import_core17.createPaginator)(EC2Client2, DescribeTrafficMirrorFiltersCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeTrafficMirrorSessions = (0, import_core17.createPaginator)(EC2Client2, DescribeTrafficMirrorSessionsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeTrafficMirrorTargets = (0, import_core17.createPaginator)(EC2Client2, DescribeTrafficMirrorTargetsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeTransitGatewayAttachments = (0, import_core17.createPaginator)(EC2Client2, DescribeTransitGatewayAttachmentsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeTransitGatewayConnectPeers = (0, import_core17.createPaginator)(EC2Client2, DescribeTransitGatewayConnectPeersCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeTransitGatewayConnects = (0, import_core17.createPaginator)(EC2Client2, DescribeTransitGatewayConnectsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeTransitGatewayMulticastDomains = (0, import_core17.createPaginator)(EC2Client2, DescribeTransitGatewayMulticastDomainsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeTransitGatewayPeeringAttachments = (0, import_core17.createPaginator)(EC2Client2, DescribeTransitGatewayPeeringAttachmentsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeTransitGatewayPolicyTables = (0, import_core17.createPaginator)(EC2Client2, DescribeTransitGatewayPolicyTablesCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeTransitGatewayRouteTableAnnouncements = (0, import_core17.createPaginator)(EC2Client2, DescribeTransitGatewayRouteTableAnnouncementsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeTransitGatewayRouteTables = (0, import_core17.createPaginator)(EC2Client2, DescribeTransitGatewayRouteTablesCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeTransitGatewayVpcAttachments = (0, import_core17.createPaginator)(EC2Client2, DescribeTransitGatewayVpcAttachmentsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeTransitGateways = (0, import_core17.createPaginator)(EC2Client2, DescribeTransitGatewaysCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeTrunkInterfaceAssociations = (0, import_core17.createPaginator)(EC2Client2, DescribeTrunkInterfaceAssociationsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeVerifiedAccessEndpoints = (0, import_core17.createPaginator)(EC2Client2, DescribeVerifiedAccessEndpointsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeVerifiedAccessGroups = (0, import_core17.createPaginator)(EC2Client2, DescribeVerifiedAccessGroupsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeVerifiedAccessInstanceLoggingConfigurations = (0, import_core17.createPaginator)(EC2Client2, DescribeVerifiedAccessInstanceLoggingConfigurationsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeVerifiedAccessInstances = (0, import_core17.createPaginator)(EC2Client2, DescribeVerifiedAccessInstancesCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeVerifiedAccessTrustProviders = (0, import_core17.createPaginator)(EC2Client2, DescribeVerifiedAccessTrustProvidersCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeVolumeStatus = (0, import_core17.createPaginator)(EC2Client2, DescribeVolumeStatusCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeVolumesModifications = (0, import_core17.createPaginator)(EC2Client2, DescribeVolumesModificationsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeVolumes = (0, import_core17.createPaginator)(EC2Client2, DescribeVolumesCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeVpcClassicLinkDnsSupport = (0, import_core17.createPaginator)(EC2Client2, DescribeVpcClassicLinkDnsSupportCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeVpcEndpointConnectionNotifications = (0, import_core17.createPaginator)(EC2Client2, DescribeVpcEndpointConnectionNotificationsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeVpcEndpointConnections = (0, import_core17.createPaginator)(EC2Client2, DescribeVpcEndpointConnectionsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeVpcEndpointServiceConfigurations = (0, import_core17.createPaginator)(EC2Client2, DescribeVpcEndpointServiceConfigurationsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeVpcEndpointServicePermissions = (0, import_core17.createPaginator)(EC2Client2, DescribeVpcEndpointServicePermissionsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeVpcEndpoints = (0, import_core17.createPaginator)(EC2Client2, DescribeVpcEndpointsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeVpcPeeringConnections = (0, import_core17.createPaginator)(EC2Client2, DescribeVpcPeeringConnectionsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeVpcs = (0, import_core17.createPaginator)(EC2Client2, DescribeVpcsCommand2, "NextToken", "NextToken", "MaxResults");
    var paginateGetAssociatedIpv6PoolCidrs = (0, import_core17.createPaginator)(EC2Client2, GetAssociatedIpv6PoolCidrsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateGetAwsNetworkPerformanceData = (0, import_core17.createPaginator)(EC2Client2, GetAwsNetworkPerformanceDataCommand, "NextToken", "NextToken", "MaxResults");
    var paginateGetGroupsForCapacityReservation = (0, import_core17.createPaginator)(EC2Client2, GetGroupsForCapacityReservationCommand, "NextToken", "NextToken", "MaxResults");
    var paginateGetInstanceTypesFromInstanceRequirements = (0, import_core17.createPaginator)(EC2Client2, GetInstanceTypesFromInstanceRequirementsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateGetIpamAddressHistory = (0, import_core17.createPaginator)(EC2Client2, GetIpamAddressHistoryCommand, "NextToken", "NextToken", "MaxResults");
    var paginateGetIpamDiscoveredAccounts = (0, import_core17.createPaginator)(EC2Client2, GetIpamDiscoveredAccountsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateGetIpamDiscoveredResourceCidrs = (0, import_core17.createPaginator)(EC2Client2, GetIpamDiscoveredResourceCidrsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateGetIpamPoolAllocations = (0, import_core17.createPaginator)(EC2Client2, GetIpamPoolAllocationsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateGetIpamPoolCidrs = (0, import_core17.createPaginator)(EC2Client2, GetIpamPoolCidrsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateGetIpamResourceCidrs = (0, import_core17.createPaginator)(EC2Client2, GetIpamResourceCidrsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateGetManagedPrefixListAssociations = (0, import_core17.createPaginator)(EC2Client2, GetManagedPrefixListAssociationsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateGetManagedPrefixListEntries = (0, import_core17.createPaginator)(EC2Client2, GetManagedPrefixListEntriesCommand, "NextToken", "NextToken", "MaxResults");
    var paginateGetNetworkInsightsAccessScopeAnalysisFindings = (0, import_core17.createPaginator)(EC2Client2, GetNetworkInsightsAccessScopeAnalysisFindingsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateGetSecurityGroupsForVpc = (0, import_core17.createPaginator)(EC2Client2, GetSecurityGroupsForVpcCommand, "NextToken", "NextToken", "MaxResults");
    var paginateGetSpotPlacementScores = (0, import_core17.createPaginator)(EC2Client2, GetSpotPlacementScoresCommand, "NextToken", "NextToken", "MaxResults");
    var paginateGetTransitGatewayAttachmentPropagations = (0, import_core17.createPaginator)(EC2Client2, GetTransitGatewayAttachmentPropagationsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateGetTransitGatewayMulticastDomainAssociations = (0, import_core17.createPaginator)(EC2Client2, GetTransitGatewayMulticastDomainAssociationsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateGetTransitGatewayPolicyTableAssociations = (0, import_core17.createPaginator)(EC2Client2, GetTransitGatewayPolicyTableAssociationsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateGetTransitGatewayPrefixListReferences = (0, import_core17.createPaginator)(EC2Client2, GetTransitGatewayPrefixListReferencesCommand, "NextToken", "NextToken", "MaxResults");
    var paginateGetTransitGatewayRouteTableAssociations = (0, import_core17.createPaginator)(EC2Client2, GetTransitGatewayRouteTableAssociationsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateGetTransitGatewayRouteTablePropagations = (0, import_core17.createPaginator)(EC2Client2, GetTransitGatewayRouteTablePropagationsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateGetVpnConnectionDeviceTypes = (0, import_core17.createPaginator)(EC2Client2, GetVpnConnectionDeviceTypesCommand, "NextToken", "NextToken", "MaxResults");
    var paginateListImagesInRecycleBin = (0, import_core17.createPaginator)(EC2Client2, ListImagesInRecycleBinCommand, "NextToken", "NextToken", "MaxResults");
    var paginateListSnapshotsInRecycleBin = (0, import_core17.createPaginator)(EC2Client2, ListSnapshotsInRecycleBinCommand, "NextToken", "NextToken", "MaxResults");
    var paginateSearchLocalGatewayRoutes = (0, import_core17.createPaginator)(EC2Client2, SearchLocalGatewayRoutesCommand, "NextToken", "NextToken", "MaxResults");
    var paginateSearchTransitGatewayMulticastGroups = (0, import_core17.createPaginator)(EC2Client2, SearchTransitGatewayMulticastGroupsCommand, "NextToken", "NextToken", "MaxResults");
    var import_util_waiter = require_dist_cjs53();
    var checkState = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeBundleTasksCommand(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.BundleTasks);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.State;
            });
            return projection_3;
          }, "returnComparator");
          let allStringEq_5 = returnComparator().length > 0;
          for (const element_4 of returnComparator()) {
            allStringEq_5 = allStringEq_5 && element_4 == "complete";
          }
          if (allStringEq_5) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.BundleTasks);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.State;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "failed") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForBundleTaskComplete = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
    }, "waitForBundleTaskComplete");
    var waitUntilBundleTaskComplete = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilBundleTaskComplete");
    var checkState2 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeConversionTasksCommand(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.ConversionTasks);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.State;
            });
            return projection_3;
          }, "returnComparator");
          let allStringEq_5 = returnComparator().length > 0;
          for (const element_4 of returnComparator()) {
            allStringEq_5 = allStringEq_5 && element_4 == "cancelled";
          }
          if (allStringEq_5) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForConversionTaskCancelled = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2);
    }, "waitForConversionTaskCancelled");
    var waitUntilConversionTaskCancelled = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilConversionTaskCancelled");
    var checkState3 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeConversionTasksCommand(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.ConversionTasks);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.State;
            });
            return projection_3;
          }, "returnComparator");
          let allStringEq_5 = returnComparator().length > 0;
          for (const element_4 of returnComparator()) {
            allStringEq_5 = allStringEq_5 && element_4 == "completed";
          }
          if (allStringEq_5) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.ConversionTasks);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.State;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "cancelled") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.ConversionTasks);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.State;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "cancelling") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForConversionTaskCompleted = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState3);
    }, "waitForConversionTaskCompleted");
    var waitUntilConversionTaskCompleted = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState3);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilConversionTaskCompleted");
    var checkState4 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeConversionTasksCommand(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.ConversionTasks);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.State;
            });
            return projection_3;
          }, "returnComparator");
          let allStringEq_5 = returnComparator().length > 0;
          for (const element_4 of returnComparator()) {
            allStringEq_5 = allStringEq_5 && element_4 == "deleted";
          }
          if (allStringEq_5) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForConversionTaskDeleted = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState4);
    }, "waitForConversionTaskDeleted");
    var waitUntilConversionTaskDeleted = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState4);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilConversionTaskDeleted");
    var checkState5 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeCustomerGatewaysCommand(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.CustomerGateways);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.State;
            });
            return projection_3;
          }, "returnComparator");
          let allStringEq_5 = returnComparator().length > 0;
          for (const element_4 of returnComparator()) {
            allStringEq_5 = allStringEq_5 && element_4 == "available";
          }
          if (allStringEq_5) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.CustomerGateways);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.State;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "deleted") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.CustomerGateways);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.State;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "deleting") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForCustomerGatewayAvailable = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState5);
    }, "waitForCustomerGatewayAvailable");
    var waitUntilCustomerGatewayAvailable = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState5);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilCustomerGatewayAvailable");
    var checkState6 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeExportTasksCommand(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.ExportTasks);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.State;
            });
            return projection_3;
          }, "returnComparator");
          let allStringEq_5 = returnComparator().length > 0;
          for (const element_4 of returnComparator()) {
            allStringEq_5 = allStringEq_5 && element_4 == "cancelled";
          }
          if (allStringEq_5) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForExportTaskCancelled = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState6);
    }, "waitForExportTaskCancelled");
    var waitUntilExportTaskCancelled = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState6);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilExportTaskCancelled");
    var checkState7 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeExportTasksCommand(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.ExportTasks);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.State;
            });
            return projection_3;
          }, "returnComparator");
          let allStringEq_5 = returnComparator().length > 0;
          for (const element_4 of returnComparator()) {
            allStringEq_5 = allStringEq_5 && element_4 == "completed";
          }
          if (allStringEq_5) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForExportTaskCompleted = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState7);
    }, "waitForExportTaskCompleted");
    var waitUntilExportTaskCompleted = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState7);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilExportTaskCompleted");
    var checkState8 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeImagesCommand3(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Images);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.State;
            });
            return projection_3;
          }, "returnComparator");
          let allStringEq_5 = returnComparator().length > 0;
          for (const element_4 of returnComparator()) {
            allStringEq_5 = allStringEq_5 && element_4 == "available";
          }
          if (allStringEq_5) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Images);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.State;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "failed") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForImageAvailable = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState8);
    }, "waitForImageAvailable");
    var waitUntilImageAvailable = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState8);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilImageAvailable");
    var checkState9 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeImagesCommand3(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Images);
            return flat_1.length > 0;
          }, "returnComparator");
          if (returnComparator() == true) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
        if (exception.name && exception.name == "InvalidAMIID.NotFound") {
          return { state: import_util_waiter.WaiterState.RETRY, reason };
        }
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForImageExists = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState9);
    }, "waitForImageExists");
    var waitUntilImageExists = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState9);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilImageExists");
    var checkState10 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeImageUsageReportsCommand(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.ImageUsageReports);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.State;
            });
            return projection_3;
          }, "returnComparator");
          let allStringEq_5 = returnComparator().length > 0;
          for (const element_4 of returnComparator()) {
            allStringEq_5 = allStringEq_5 && element_4 == "available";
          }
          if (allStringEq_5) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.ImageUsageReports);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.State;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "failed") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForImageUsageReportAvailable = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState10);
    }, "waitForImageUsageReportAvailable");
    var waitUntilImageUsageReportAvailable = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState10);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilImageUsageReportAvailable");
    var checkState11 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeInstancesCommand2(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Reservations);
            return flat_1.length > 0;
          }, "returnComparator");
          if (returnComparator() == true) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
        if (exception.name && exception.name == "InvalidInstanceID.NotFound") {
          return { state: import_util_waiter.WaiterState.RETRY, reason };
        }
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForInstanceExists = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 5, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState11);
    }, "waitForInstanceExists");
    var waitUntilInstanceExists = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 5, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState11);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilInstanceExists");
    var checkState12 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeInstancesCommand2(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Reservations);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.Instances;
            });
            const flat_4 = [].concat(...projection_3);
            const projection_6 = flat_4.map((element_5) => {
              return element_5.State.Name;
            });
            return projection_6;
          }, "returnComparator");
          let allStringEq_8 = returnComparator().length > 0;
          for (const element_7 of returnComparator()) {
            allStringEq_8 = allStringEq_8 && element_7 == "running";
          }
          if (allStringEq_8) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Reservations);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.Instances;
            });
            const flat_4 = [].concat(...projection_3);
            const projection_6 = flat_4.map((element_5) => {
              return element_5.State.Name;
            });
            return projection_6;
          }, "returnComparator");
          for (const anyStringEq_7 of returnComparator()) {
            if (anyStringEq_7 == "shutting-down") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Reservations);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.Instances;
            });
            const flat_4 = [].concat(...projection_3);
            const projection_6 = flat_4.map((element_5) => {
              return element_5.State.Name;
            });
            return projection_6;
          }, "returnComparator");
          for (const anyStringEq_7 of returnComparator()) {
            if (anyStringEq_7 == "terminated") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Reservations);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.Instances;
            });
            const flat_4 = [].concat(...projection_3);
            const projection_6 = flat_4.map((element_5) => {
              return element_5.State.Name;
            });
            return projection_6;
          }, "returnComparator");
          for (const anyStringEq_7 of returnComparator()) {
            if (anyStringEq_7 == "stopping") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
        if (exception.name && exception.name == "InvalidInstanceID.NotFound") {
          return { state: import_util_waiter.WaiterState.RETRY, reason };
        }
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForInstanceRunning = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState12);
    }, "waitForInstanceRunning");
    var waitUntilInstanceRunning = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState12);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilInstanceRunning");
    var checkState13 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeInstanceStatusCommand(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.InstanceStatuses);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.InstanceStatus.Status;
            });
            return projection_3;
          }, "returnComparator");
          let allStringEq_5 = returnComparator().length > 0;
          for (const element_4 of returnComparator()) {
            allStringEq_5 = allStringEq_5 && element_4 == "ok";
          }
          if (allStringEq_5) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
        if (exception.name && exception.name == "InvalidInstanceID.NotFound") {
          return { state: import_util_waiter.WaiterState.RETRY, reason };
        }
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForInstanceStatusOk = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState13);
    }, "waitForInstanceStatusOk");
    var waitUntilInstanceStatusOk = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState13);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilInstanceStatusOk");
    var checkState14 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeInstancesCommand2(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Reservations);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.Instances;
            });
            const flat_4 = [].concat(...projection_3);
            const projection_6 = flat_4.map((element_5) => {
              return element_5.State.Name;
            });
            return projection_6;
          }, "returnComparator");
          let allStringEq_8 = returnComparator().length > 0;
          for (const element_7 of returnComparator()) {
            allStringEq_8 = allStringEq_8 && element_7 == "stopped";
          }
          if (allStringEq_8) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Reservations);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.Instances;
            });
            const flat_4 = [].concat(...projection_3);
            const projection_6 = flat_4.map((element_5) => {
              return element_5.State.Name;
            });
            return projection_6;
          }, "returnComparator");
          for (const anyStringEq_7 of returnComparator()) {
            if (anyStringEq_7 == "pending") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Reservations);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.Instances;
            });
            const flat_4 = [].concat(...projection_3);
            const projection_6 = flat_4.map((element_5) => {
              return element_5.State.Name;
            });
            return projection_6;
          }, "returnComparator");
          for (const anyStringEq_7 of returnComparator()) {
            if (anyStringEq_7 == "terminated") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForInstanceStopped = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState14);
    }, "waitForInstanceStopped");
    var waitUntilInstanceStopped = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState14);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilInstanceStopped");
    var checkState15 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeInstancesCommand2(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Reservations);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.Instances;
            });
            const flat_4 = [].concat(...projection_3);
            const projection_6 = flat_4.map((element_5) => {
              return element_5.State.Name;
            });
            return projection_6;
          }, "returnComparator");
          let allStringEq_8 = returnComparator().length > 0;
          for (const element_7 of returnComparator()) {
            allStringEq_8 = allStringEq_8 && element_7 == "terminated";
          }
          if (allStringEq_8) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Reservations);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.Instances;
            });
            const flat_4 = [].concat(...projection_3);
            const projection_6 = flat_4.map((element_5) => {
              return element_5.State.Name;
            });
            return projection_6;
          }, "returnComparator");
          for (const anyStringEq_7 of returnComparator()) {
            if (anyStringEq_7 == "pending") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Reservations);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.Instances;
            });
            const flat_4 = [].concat(...projection_3);
            const projection_6 = flat_4.map((element_5) => {
              return element_5.State.Name;
            });
            return projection_6;
          }, "returnComparator");
          for (const anyStringEq_7 of returnComparator()) {
            if (anyStringEq_7 == "stopping") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForInstanceTerminated = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState15);
    }, "waitForInstanceTerminated");
    var waitUntilInstanceTerminated = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState15);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilInstanceTerminated");
    var checkState16 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeInternetGatewaysCommand(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.InternetGateways);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.InternetGatewayId;
            });
            return projection_3.length > 0;
          }, "returnComparator");
          if (returnComparator() == true) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
        if (exception.name && exception.name == "InvalidInternetGateway.NotFound") {
          return { state: import_util_waiter.WaiterState.RETRY, reason };
        }
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForInternetGatewayExists = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 5, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState16);
    }, "waitForInternetGatewayExists");
    var waitUntilInternetGatewayExists = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 5, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState16);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilInternetGatewayExists");
    var checkState17 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeKeyPairsCommand(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.KeyPairs);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.KeyName;
            });
            return projection_3.length > 0;
          }, "returnComparator");
          if (returnComparator() == true) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
        if (exception.name && exception.name == "InvalidKeyPair.NotFound") {
          return { state: import_util_waiter.WaiterState.RETRY, reason };
        }
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForKeyPairExists = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 5, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState17);
    }, "waitForKeyPairExists");
    var waitUntilKeyPairExists = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 5, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState17);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilKeyPairExists");
    var checkState18 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeNatGatewaysCommand(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.NatGateways);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.State;
            });
            return projection_3;
          }, "returnComparator");
          let allStringEq_5 = returnComparator().length > 0;
          for (const element_4 of returnComparator()) {
            allStringEq_5 = allStringEq_5 && element_4 == "available";
          }
          if (allStringEq_5) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.NatGateways);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.State;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "failed") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.NatGateways);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.State;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "deleting") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.NatGateways);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.State;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "deleted") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
        if (exception.name && exception.name == "NatGatewayNotFound") {
          return { state: import_util_waiter.WaiterState.RETRY, reason };
        }
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForNatGatewayAvailable = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState18);
    }, "waitForNatGatewayAvailable");
    var waitUntilNatGatewayAvailable = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState18);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilNatGatewayAvailable");
    var checkState19 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeNatGatewaysCommand(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.NatGateways);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.State;
            });
            return projection_3;
          }, "returnComparator");
          let allStringEq_5 = returnComparator().length > 0;
          for (const element_4 of returnComparator()) {
            allStringEq_5 = allStringEq_5 && element_4 == "deleted";
          }
          if (allStringEq_5) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
        if (exception.name && exception.name == "NatGatewayNotFound") {
          return { state: import_util_waiter.WaiterState.SUCCESS, reason };
        }
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForNatGatewayDeleted = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState19);
    }, "waitForNatGatewayDeleted");
    var waitUntilNatGatewayDeleted = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState19);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilNatGatewayDeleted");
    var checkState20 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeNetworkInterfacesCommand(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.NetworkInterfaces);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.Status;
            });
            return projection_3;
          }, "returnComparator");
          let allStringEq_5 = returnComparator().length > 0;
          for (const element_4 of returnComparator()) {
            allStringEq_5 = allStringEq_5 && element_4 == "available";
          }
          if (allStringEq_5) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
        if (exception.name && exception.name == "InvalidNetworkInterfaceID.NotFound") {
          return { state: import_util_waiter.WaiterState.FAILURE, reason };
        }
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForNetworkInterfaceAvailable = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 20, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState20);
    }, "waitForNetworkInterfaceAvailable");
    var waitUntilNetworkInterfaceAvailable = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 20, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState20);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilNetworkInterfaceAvailable");
    var checkState21 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeImportSnapshotTasksCommand(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.ImportSnapshotTasks);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.SnapshotTaskDetail.Status;
            });
            return projection_3;
          }, "returnComparator");
          let allStringEq_5 = returnComparator().length > 0;
          for (const element_4 of returnComparator()) {
            allStringEq_5 = allStringEq_5 && element_4 == "completed";
          }
          if (allStringEq_5) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.ImportSnapshotTasks);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.SnapshotTaskDetail.Status;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "error") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForSnapshotImported = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState21);
    }, "waitForSnapshotImported");
    var waitUntilSnapshotImported = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState21);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilSnapshotImported");
    var checkState22 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeSecurityGroupsCommand2(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.SecurityGroups);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.GroupId;
            });
            return projection_3.length > 0;
          }, "returnComparator");
          if (returnComparator() == true) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
        if (exception.name && exception.name == "InvalidGroup.NotFound") {
          return { state: import_util_waiter.WaiterState.RETRY, reason };
        }
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForSecurityGroupExists = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 5, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState22);
    }, "waitForSecurityGroupExists");
    var waitUntilSecurityGroupExists = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 5, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState22);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilSecurityGroupExists");
    var checkState23 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeSecurityGroupVpcAssociationsCommand(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.SecurityGroupVpcAssociations);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.State;
            });
            return projection_3;
          }, "returnComparator");
          let allStringEq_5 = returnComparator().length > 0;
          for (const element_4 of returnComparator()) {
            allStringEq_5 = allStringEq_5 && element_4 == "associated";
          }
          if (allStringEq_5) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.SecurityGroupVpcAssociations);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.State;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "associating") {
              return { state: import_util_waiter.WaiterState.RETRY, reason };
            }
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.SecurityGroupVpcAssociations);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.State;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "association-failed") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForSecurityGroupVpcAssociationAssociated = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 10, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState23);
    }, "waitForSecurityGroupVpcAssociationAssociated");
    var waitUntilSecurityGroupVpcAssociationAssociated = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 10, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState23);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilSecurityGroupVpcAssociationAssociated");
    var checkState24 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeSecurityGroupVpcAssociationsCommand(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.SecurityGroupVpcAssociations);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.State;
            });
            return projection_3;
          }, "returnComparator");
          let allStringEq_5 = returnComparator().length > 0;
          for (const element_4 of returnComparator()) {
            allStringEq_5 = allStringEq_5 && element_4 == "disassociated";
          }
          if (allStringEq_5) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.SecurityGroupVpcAssociations);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.State;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "disassociating") {
              return { state: import_util_waiter.WaiterState.RETRY, reason };
            }
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.SecurityGroupVpcAssociations);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.State;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "disassociation-failed") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.SecurityGroupVpcAssociations);
            return flat_1.length == 0;
          }, "returnComparator");
          if (returnComparator() == true) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForSecurityGroupVpcAssociationDisassociated = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 10, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState24);
    }, "waitForSecurityGroupVpcAssociationDisassociated");
    var waitUntilSecurityGroupVpcAssociationDisassociated = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 10, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState24);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilSecurityGroupVpcAssociationDisassociated");
    var checkState25 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeSnapshotsCommand(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Snapshots);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.State;
            });
            return projection_3;
          }, "returnComparator");
          let allStringEq_5 = returnComparator().length > 0;
          for (const element_4 of returnComparator()) {
            allStringEq_5 = allStringEq_5 && element_4 == "completed";
          }
          if (allStringEq_5) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Snapshots);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.State;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "error") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForSnapshotCompleted = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState25);
    }, "waitForSnapshotCompleted");
    var waitUntilSnapshotCompleted = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState25);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilSnapshotCompleted");
    var checkState26 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeSpotInstanceRequestsCommand(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.SpotInstanceRequests);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.Status.Code;
            });
            return projection_3;
          }, "returnComparator");
          let allStringEq_5 = returnComparator().length > 0;
          for (const element_4 of returnComparator()) {
            allStringEq_5 = allStringEq_5 && element_4 == "fulfilled";
          }
          if (allStringEq_5) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.SpotInstanceRequests);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.Status.Code;
            });
            return projection_3;
          }, "returnComparator");
          let allStringEq_5 = returnComparator().length > 0;
          for (const element_4 of returnComparator()) {
            allStringEq_5 = allStringEq_5 && element_4 == "request-canceled-and-instance-running";
          }
          if (allStringEq_5) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.SpotInstanceRequests);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.Status.Code;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "schedule-expired") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.SpotInstanceRequests);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.Status.Code;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "canceled-before-fulfillment") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.SpotInstanceRequests);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.Status.Code;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "bad-parameters") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.SpotInstanceRequests);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.Status.Code;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "system-error") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
        if (exception.name && exception.name == "InvalidSpotInstanceRequestID.NotFound") {
          return { state: import_util_waiter.WaiterState.RETRY, reason };
        }
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForSpotInstanceRequestFulfilled = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState26);
    }, "waitForSpotInstanceRequestFulfilled");
    var waitUntilSpotInstanceRequestFulfilled = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState26);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilSpotInstanceRequestFulfilled");
    var checkState27 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeInstanceStatusCommand(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.InstanceStatuses);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.SystemStatus.Status;
            });
            return projection_3;
          }, "returnComparator");
          let allStringEq_5 = returnComparator().length > 0;
          for (const element_4 of returnComparator()) {
            allStringEq_5 = allStringEq_5 && element_4 == "ok";
          }
          if (allStringEq_5) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForSystemStatusOk = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState27);
    }, "waitForSystemStatusOk");
    var waitUntilSystemStatusOk = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState27);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilSystemStatusOk");
    var checkState28 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeStoreImageTasksCommand(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.StoreImageTaskResults);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.StoreTaskState;
            });
            return projection_3;
          }, "returnComparator");
          let allStringEq_5 = returnComparator().length > 0;
          for (const element_4 of returnComparator()) {
            allStringEq_5 = allStringEq_5 && element_4 == "Completed";
          }
          if (allStringEq_5) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.StoreImageTaskResults);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.StoreTaskState;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "Failed") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.StoreImageTaskResults);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.StoreTaskState;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "InProgress") {
              return { state: import_util_waiter.WaiterState.RETRY, reason };
            }
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForStoreImageTaskComplete = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 5, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState28);
    }, "waitForStoreImageTaskComplete");
    var waitUntilStoreImageTaskComplete = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 5, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState28);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilStoreImageTaskComplete");
    var checkState29 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new GetPasswordDataCommand(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            return result2.PasswordData.length > 0;
          }, "returnComparator");
          if (returnComparator() == true) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForPasswordDataAvailable = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState29);
    }, "waitForPasswordDataAvailable");
    var waitUntilPasswordDataAvailable = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState29);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilPasswordDataAvailable");
    var checkState30 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeSubnetsCommand2(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Subnets);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.State;
            });
            return projection_3;
          }, "returnComparator");
          let allStringEq_5 = returnComparator().length > 0;
          for (const element_4 of returnComparator()) {
            allStringEq_5 = allStringEq_5 && element_4 == "available";
          }
          if (allStringEq_5) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForSubnetAvailable = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState30);
    }, "waitForSubnetAvailable");
    var waitUntilSubnetAvailable = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState30);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilSubnetAvailable");
    var checkState31 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeVolumesCommand(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Volumes);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.State;
            });
            return projection_3;
          }, "returnComparator");
          let allStringEq_5 = returnComparator().length > 0;
          for (const element_4 of returnComparator()) {
            allStringEq_5 = allStringEq_5 && element_4 == "available";
          }
          if (allStringEq_5) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Volumes);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.State;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "deleted") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForVolumeAvailable = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState31);
    }, "waitForVolumeAvailable");
    var waitUntilVolumeAvailable = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState31);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilVolumeAvailable");
    var checkState32 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeVolumesCommand(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Volumes);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.State;
            });
            return projection_3;
          }, "returnComparator");
          let allStringEq_5 = returnComparator().length > 0;
          for (const element_4 of returnComparator()) {
            allStringEq_5 = allStringEq_5 && element_4 == "deleted";
          }
          if (allStringEq_5) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
        if (exception.name && exception.name == "InvalidVolume.NotFound") {
          return { state: import_util_waiter.WaiterState.SUCCESS, reason };
        }
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForVolumeDeleted = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState32);
    }, "waitForVolumeDeleted");
    var waitUntilVolumeDeleted = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState32);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilVolumeDeleted");
    var checkState33 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeVolumesCommand(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Volumes);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.State;
            });
            return projection_3;
          }, "returnComparator");
          let allStringEq_5 = returnComparator().length > 0;
          for (const element_4 of returnComparator()) {
            allStringEq_5 = allStringEq_5 && element_4 == "in-use";
          }
          if (allStringEq_5) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Volumes);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.State;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "deleted") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForVolumeInUse = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState33);
    }, "waitForVolumeInUse");
    var waitUntilVolumeInUse = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState33);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilVolumeInUse");
    var checkState34 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeVpcsCommand2(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.Vpcs);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.State;
            });
            return projection_3;
          }, "returnComparator");
          let allStringEq_5 = returnComparator().length > 0;
          for (const element_4 of returnComparator()) {
            allStringEq_5 = allStringEq_5 && element_4 == "available";
          }
          if (allStringEq_5) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForVpcAvailable = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState34);
    }, "waitForVpcAvailable");
    var waitUntilVpcAvailable = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState34);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilVpcAvailable");
    var checkState35 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeVpcsCommand2(input));
        reason = result2;
        return { state: import_util_waiter.WaiterState.SUCCESS, reason };
      } catch (exception) {
        reason = exception;
        if (exception.name && exception.name == "InvalidVpcID.NotFound") {
          return { state: import_util_waiter.WaiterState.RETRY, reason };
        }
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForVpcExists = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 1, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState35);
    }, "waitForVpcExists");
    var waitUntilVpcExists = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 1, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState35);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilVpcExists");
    var checkState36 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeVpcPeeringConnectionsCommand(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.VpcPeeringConnections);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.Status.Code;
            });
            return projection_3;
          }, "returnComparator");
          let allStringEq_5 = returnComparator().length > 0;
          for (const element_4 of returnComparator()) {
            allStringEq_5 = allStringEq_5 && element_4 == "deleted";
          }
          if (allStringEq_5) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
        if (exception.name && exception.name == "InvalidVpcPeeringConnectionID.NotFound") {
          return { state: import_util_waiter.WaiterState.SUCCESS, reason };
        }
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForVpcPeeringConnectionDeleted = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState36);
    }, "waitForVpcPeeringConnectionDeleted");
    var waitUntilVpcPeeringConnectionDeleted = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState36);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilVpcPeeringConnectionDeleted");
    var checkState37 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeVpcPeeringConnectionsCommand(input));
        reason = result2;
        return { state: import_util_waiter.WaiterState.SUCCESS, reason };
      } catch (exception) {
        reason = exception;
        if (exception.name && exception.name == "InvalidVpcPeeringConnectionID.NotFound") {
          return { state: import_util_waiter.WaiterState.RETRY, reason };
        }
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForVpcPeeringConnectionExists = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState37);
    }, "waitForVpcPeeringConnectionExists");
    var waitUntilVpcPeeringConnectionExists = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState37);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilVpcPeeringConnectionExists");
    var checkState38 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeVpnConnectionsCommand(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.VpnConnections);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.State;
            });
            return projection_3;
          }, "returnComparator");
          let allStringEq_5 = returnComparator().length > 0;
          for (const element_4 of returnComparator()) {
            allStringEq_5 = allStringEq_5 && element_4 == "available";
          }
          if (allStringEq_5) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.VpnConnections);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.State;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "deleting") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.VpnConnections);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.State;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "deleted") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForVpnConnectionAvailable = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState38);
    }, "waitForVpnConnectionAvailable");
    var waitUntilVpnConnectionAvailable = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState38);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilVpnConnectionAvailable");
    var checkState39 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeVpnConnectionsCommand(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.VpnConnections);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.State;
            });
            return projection_3;
          }, "returnComparator");
          let allStringEq_5 = returnComparator().length > 0;
          for (const element_4 of returnComparator()) {
            allStringEq_5 = allStringEq_5 && element_4 == "deleted";
          }
          if (allStringEq_5) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.VpnConnections);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.State;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "pending") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForVpnConnectionDeleted = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState39);
    }, "waitForVpnConnectionDeleted");
    var waitUntilVpnConnectionDeleted = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState39);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilVpnConnectionDeleted");
  }
});

// ../../node_modules/@aws-sdk/client-ecs/dist-cjs/auth/httpAuthSchemeProvider.js
var require_httpAuthSchemeProvider13 = __commonJS({
  "../../node_modules/@aws-sdk/client-ecs/dist-cjs/auth/httpAuthSchemeProvider.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.resolveHttpAuthSchemeConfig = exports2.defaultECSHttpAuthSchemeProvider = exports2.defaultECSHttpAuthSchemeParametersProvider = void 0;
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var util_middleware_1 = require_dist_cjs6();
    var defaultECSHttpAuthSchemeParametersProvider = /* @__PURE__ */ __name(async (config, context, input) => {
      return {
        operation: (0, util_middleware_1.getSmithyContext)(context).operation,
        region: await (0, util_middleware_1.normalizeProvider)(config.region)() || (() => {
          throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
        })()
      };
    }, "defaultECSHttpAuthSchemeParametersProvider");
    exports2.defaultECSHttpAuthSchemeParametersProvider = defaultECSHttpAuthSchemeParametersProvider;
    function createAwsAuthSigv4HttpAuthOption3(authParameters) {
      return {
        schemeId: "aws.auth#sigv4",
        signingProperties: {
          name: "ecs",
          region: authParameters.region
        },
        propertiesExtractor: /* @__PURE__ */ __name((config, context) => ({
          signingProperties: {
            config,
            context
          }
        }), "propertiesExtractor")
      };
    }
    __name(createAwsAuthSigv4HttpAuthOption3, "createAwsAuthSigv4HttpAuthOption");
    var defaultECSHttpAuthSchemeProvider = /* @__PURE__ */ __name((authParameters) => {
      const options = [];
      switch (authParameters.operation) {
        default: {
          options.push(createAwsAuthSigv4HttpAuthOption3(authParameters));
        }
      }
      return options;
    }, "defaultECSHttpAuthSchemeProvider");
    exports2.defaultECSHttpAuthSchemeProvider = defaultECSHttpAuthSchemeProvider;
    var resolveHttpAuthSchemeConfig3 = /* @__PURE__ */ __name((config) => {
      const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
      return Object.assign(config_0, {
        authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? [])
      });
    }, "resolveHttpAuthSchemeConfig");
    exports2.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig3;
  }
});

// ../../node_modules/@aws-sdk/client-ecs/package.json
var require_package13 = __commonJS({
  "../../node_modules/@aws-sdk/client-ecs/package.json"(exports2, module2) {
    module2.exports = {
      name: "@aws-sdk/client-ecs",
      description: "AWS SDK for JavaScript Ecs Client for Node.js, Browser and React Native",
      version: "3.879.0",
      scripts: {
        build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
        "build:cjs": "node ../../scripts/compilation/inline client-ecs",
        "build:es": "tsc -p tsconfig.es.json",
        "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
        "build:types": "tsc -p tsconfig.types.json",
        "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
        clean: "rimraf ./dist-* && rimraf *.tsbuildinfo",
        "extract:docs": "api-extractor run --local",
        "generate:client": "node ../../scripts/generate-clients/single-service --solo ecs"
      },
      main: "./dist-cjs/index.js",
      types: "./dist-types/index.d.ts",
      module: "./dist-es/index.js",
      sideEffects: false,
      dependencies: {
        "@aws-crypto/sha256-browser": "5.2.0",
        "@aws-crypto/sha256-js": "5.2.0",
        "@aws-sdk/core": "3.879.0",
        "@aws-sdk/credential-provider-node": "3.879.0",
        "@aws-sdk/middleware-host-header": "3.873.0",
        "@aws-sdk/middleware-logger": "3.876.0",
        "@aws-sdk/middleware-recursion-detection": "3.873.0",
        "@aws-sdk/middleware-user-agent": "3.879.0",
        "@aws-sdk/region-config-resolver": "3.873.0",
        "@aws-sdk/types": "3.862.0",
        "@aws-sdk/util-endpoints": "3.879.0",
        "@aws-sdk/util-user-agent-browser": "3.873.0",
        "@aws-sdk/util-user-agent-node": "3.879.0",
        "@smithy/config-resolver": "^4.1.5",
        "@smithy/core": "^3.9.0",
        "@smithy/fetch-http-handler": "^5.1.1",
        "@smithy/hash-node": "^4.0.5",
        "@smithy/invalid-dependency": "^4.0.5",
        "@smithy/middleware-content-length": "^4.0.5",
        "@smithy/middleware-endpoint": "^4.1.19",
        "@smithy/middleware-retry": "^4.1.20",
        "@smithy/middleware-serde": "^4.0.9",
        "@smithy/middleware-stack": "^4.0.5",
        "@smithy/node-config-provider": "^4.1.4",
        "@smithy/node-http-handler": "^4.1.1",
        "@smithy/protocol-http": "^5.1.3",
        "@smithy/smithy-client": "^4.5.0",
        "@smithy/types": "^4.3.2",
        "@smithy/url-parser": "^4.0.5",
        "@smithy/util-base64": "^4.0.0",
        "@smithy/util-body-length-browser": "^4.0.0",
        "@smithy/util-body-length-node": "^4.0.0",
        "@smithy/util-defaults-mode-browser": "^4.0.27",
        "@smithy/util-defaults-mode-node": "^4.0.27",
        "@smithy/util-endpoints": "^3.0.7",
        "@smithy/util-middleware": "^4.0.5",
        "@smithy/util-retry": "^4.0.7",
        "@smithy/util-utf8": "^4.0.0",
        "@smithy/util-waiter": "^4.0.7",
        "@types/uuid": "^9.0.1",
        tslib: "^2.6.2",
        uuid: "^9.0.1"
      },
      devDependencies: {
        "@tsconfig/node18": "18.2.4",
        "@types/node": "^18.19.69",
        concurrently: "7.0.0",
        "downlevel-dts": "0.10.1",
        rimraf: "3.0.2",
        typescript: "~5.8.3"
      },
      engines: {
        node: ">=18.0.0"
      },
      typesVersions: {
        "<4.0": {
          "dist-types/*": [
            "dist-types/ts3.4/*"
          ]
        }
      },
      files: [
        "dist-*/**"
      ],
      author: {
        name: "AWS SDK for JavaScript Team",
        url: "https://aws.amazon.com/javascript/"
      },
      license: "Apache-2.0",
      browser: {
        "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
      },
      "react-native": {
        "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
      },
      homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ecs",
      repository: {
        type: "git",
        url: "https://github.com/aws/aws-sdk-js-v3.git",
        directory: "clients/client-ecs"
      }
    };
  }
});

// ../../node_modules/@aws-sdk/client-ecs/dist-cjs/endpoint/ruleset.js
var require_ruleset13 = __commonJS({
  "../../node_modules/@aws-sdk/client-ecs/dist-cjs/endpoint/ruleset.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.ruleSet = void 0;
    var s3 = "required";
    var t3 = "fn";
    var u3 = "argv";
    var v6 = "ref";
    var a3 = true;
    var b3 = "isSet";
    var c3 = "booleanEquals";
    var d3 = "error";
    var e3 = "endpoint";
    var f3 = "tree";
    var g3 = "PartitionResult";
    var h3 = { [s3]: false, "type": "String" };
    var i3 = { [s3]: true, "default": false, "type": "Boolean" };
    var j3 = { [v6]: "Endpoint" };
    var k3 = { [t3]: c3, [u3]: [{ [v6]: "UseFIPS" }, true] };
    var l3 = { [t3]: c3, [u3]: [{ [v6]: "UseDualStack" }, true] };
    var m3 = {};
    var n3 = { [t3]: "getAttr", [u3]: [{ [v6]: g3 }, "supportsFIPS"] };
    var o3 = { [t3]: c3, [u3]: [true, { [t3]: "getAttr", [u3]: [{ [v6]: g3 }, "supportsDualStack"] }] };
    var p3 = [k3];
    var q3 = [l3];
    var r3 = [{ [v6]: "Region" }];
    var _data3 = { version: "1.0", parameters: { Region: h3, UseDualStack: i3, UseFIPS: i3, Endpoint: h3 }, rules: [{ conditions: [{ [t3]: b3, [u3]: [j3] }], rules: [{ conditions: p3, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d3 }, { conditions: q3, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d3 }, { endpoint: { url: j3, properties: m3, headers: m3 }, type: e3 }], type: f3 }, { conditions: [{ [t3]: b3, [u3]: r3 }], rules: [{ conditions: [{ [t3]: "aws.partition", [u3]: r3, assign: g3 }], rules: [{ conditions: [k3, l3], rules: [{ conditions: [{ [t3]: c3, [u3]: [a3, n3] }, o3], rules: [{ endpoint: { url: "https://ecs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m3, headers: m3 }, type: e3 }], type: f3 }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d3 }], type: f3 }, { conditions: p3, rules: [{ conditions: [{ [t3]: c3, [u3]: [n3, a3] }], rules: [{ endpoint: { url: "https://ecs-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m3, headers: m3 }, type: e3 }], type: f3 }, { error: "FIPS is enabled but this partition does not support FIPS", type: d3 }], type: f3 }, { conditions: q3, rules: [{ conditions: [o3], rules: [{ endpoint: { url: "https://ecs.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m3, headers: m3 }, type: e3 }], type: f3 }, { error: "DualStack is enabled but this partition does not support DualStack", type: d3 }], type: f3 }, { endpoint: { url: "https://ecs.{Region}.{PartitionResult#dnsSuffix}", properties: m3, headers: m3 }, type: e3 }], type: f3 }], type: f3 }, { error: "Invalid Configuration: Missing Region", type: d3 }] };
    exports2.ruleSet = _data3;
  }
});

// ../../node_modules/@aws-sdk/client-ecs/dist-cjs/endpoint/endpointResolver.js
var require_endpointResolver13 = __commonJS({
  "../../node_modules/@aws-sdk/client-ecs/dist-cjs/endpoint/endpointResolver.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.defaultEndpointResolver = void 0;
    var util_endpoints_1 = require_dist_cjs21();
    var util_endpoints_2 = require_dist_cjs18();
    var ruleset_1 = require_ruleset13();
    var cache3 = new util_endpoints_2.EndpointCache({
      size: 50,
      params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"]
    });
    var defaultEndpointResolver3 = /* @__PURE__ */ __name((endpointParams, context = {}) => {
      return cache3.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
        endpointParams,
        logger: context.logger
      }));
    }, "defaultEndpointResolver");
    exports2.defaultEndpointResolver = defaultEndpointResolver3;
    util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
  }
});

// ../../node_modules/@aws-sdk/client-ecs/dist-cjs/runtimeConfig.shared.js
var require_runtimeConfig_shared14 = __commonJS({
  "../../node_modules/@aws-sdk/client-ecs/dist-cjs/runtimeConfig.shared.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.getRuntimeConfig = void 0;
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var smithy_client_1 = require_dist_cjs26();
    var url_parser_1 = require_dist_cjs20();
    var util_base64_1 = require_dist_cjs11();
    var util_utf8_1 = require_dist_cjs10();
    var httpAuthSchemeProvider_1 = require_httpAuthSchemeProvider13();
    var endpointResolver_1 = require_endpointResolver13();
    var getRuntimeConfig5 = /* @__PURE__ */ __name((config) => {
      return {
        apiVersion: "2014-11-13",
        base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
        base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
        disableHostPrefix: config?.disableHostPrefix ?? false,
        endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
        extensions: config?.extensions ?? [],
        httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultECSHttpAuthSchemeProvider,
        httpAuthSchemes: config?.httpAuthSchemes ?? [
          {
            schemeId: "aws.auth#sigv4",
            identityProvider: /* @__PURE__ */ __name((ipc) => ipc.getIdentityProvider("aws.auth#sigv4"), "identityProvider"),
            signer: new core_1.AwsSdkSigV4Signer()
          }
        ],
        logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
        serviceId: config?.serviceId ?? "ECS",
        urlParser: config?.urlParser ?? url_parser_1.parseUrl,
        utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
        utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8
      };
    }, "getRuntimeConfig");
    exports2.getRuntimeConfig = getRuntimeConfig5;
  }
});

// ../../node_modules/@aws-sdk/client-ecs/dist-cjs/runtimeConfig.js
var require_runtimeConfig14 = __commonJS({
  "../../node_modules/@aws-sdk/client-ecs/dist-cjs/runtimeConfig.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.getRuntimeConfig = void 0;
    var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
    var package_json_1 = tslib_1.__importDefault(require_package13());
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var credential_provider_node_1 = require_dist_cjs52();
    var util_user_agent_node_1 = require_dist_cjs41();
    var config_resolver_1 = require_dist_cjs30();
    var hash_node_1 = require_dist_cjs42();
    var middleware_retry_1 = require_dist_cjs37();
    var node_config_provider_1 = require_dist_cjs33();
    var node_http_handler_1 = require_dist_cjs14();
    var util_body_length_node_1 = require_dist_cjs43();
    var util_retry_1 = require_dist_cjs36();
    var runtimeConfig_shared_1 = require_runtimeConfig_shared14();
    var smithy_client_1 = require_dist_cjs26();
    var util_defaults_mode_node_1 = require_dist_cjs44();
    var smithy_client_2 = require_dist_cjs26();
    var getRuntimeConfig5 = /* @__PURE__ */ __name((config) => {
      (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
      const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
      const defaultConfigProvider = /* @__PURE__ */ __name(() => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode), "defaultConfigProvider");
      const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
      (0, core_1.emitWarningIfUnsupportedVersion)(process.version);
      const loaderConfig = {
        profile: config?.profile,
        logger: clientSharedValues.logger
      };
      return {
        ...clientSharedValues,
        ...config,
        runtime: "node",
        defaultsMode,
        authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
        bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
        credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
        defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
        maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
        region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
        requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
        retryMode: config?.retryMode ?? (0, node_config_provider_1.loadConfig)({
          ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
          default: /* @__PURE__ */ __name(async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE, "default")
        }, config),
        sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
        streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
        useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
        useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
        userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig)
      };
    }, "getRuntimeConfig");
    exports2.getRuntimeConfig = getRuntimeConfig5;
  }
});

// ../../node_modules/@aws-sdk/client-ecs/dist-cjs/index.js
var require_dist_cjs88 = __commonJS({
  "../../node_modules/@aws-sdk/client-ecs/dist-cjs/index.js"(exports2, module2) {
    "use strict";
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var index_exports = {};
    __export2(index_exports, {
      AccessDeniedException: /* @__PURE__ */ __name(() => AccessDeniedException2, "AccessDeniedException"),
      AgentUpdateStatus: /* @__PURE__ */ __name(() => AgentUpdateStatus, "AgentUpdateStatus"),
      ApplicationProtocol: /* @__PURE__ */ __name(() => ApplicationProtocol, "ApplicationProtocol"),
      AssignPublicIp: /* @__PURE__ */ __name(() => AssignPublicIp, "AssignPublicIp"),
      AttributeLimitExceededException: /* @__PURE__ */ __name(() => AttributeLimitExceededException, "AttributeLimitExceededException"),
      AvailabilityZoneRebalancing: /* @__PURE__ */ __name(() => AvailabilityZoneRebalancing, "AvailabilityZoneRebalancing"),
      BlockedException: /* @__PURE__ */ __name(() => BlockedException, "BlockedException"),
      CPUArchitecture: /* @__PURE__ */ __name(() => CPUArchitecture, "CPUArchitecture"),
      CapacityProviderField: /* @__PURE__ */ __name(() => CapacityProviderField, "CapacityProviderField"),
      CapacityProviderStatus: /* @__PURE__ */ __name(() => CapacityProviderStatus, "CapacityProviderStatus"),
      CapacityProviderUpdateStatus: /* @__PURE__ */ __name(() => CapacityProviderUpdateStatus, "CapacityProviderUpdateStatus"),
      ClientException: /* @__PURE__ */ __name(() => ClientException, "ClientException"),
      ClusterContainsContainerInstancesException: /* @__PURE__ */ __name(() => ClusterContainsContainerInstancesException, "ClusterContainsContainerInstancesException"),
      ClusterContainsServicesException: /* @__PURE__ */ __name(() => ClusterContainsServicesException, "ClusterContainsServicesException"),
      ClusterContainsTasksException: /* @__PURE__ */ __name(() => ClusterContainsTasksException, "ClusterContainsTasksException"),
      ClusterField: /* @__PURE__ */ __name(() => ClusterField, "ClusterField"),
      ClusterNotFoundException: /* @__PURE__ */ __name(() => ClusterNotFoundException, "ClusterNotFoundException"),
      ClusterSettingName: /* @__PURE__ */ __name(() => ClusterSettingName, "ClusterSettingName"),
      Compatibility: /* @__PURE__ */ __name(() => Compatibility, "Compatibility"),
      ConflictException: /* @__PURE__ */ __name(() => ConflictException, "ConflictException"),
      Connectivity: /* @__PURE__ */ __name(() => Connectivity, "Connectivity"),
      ContainerCondition: /* @__PURE__ */ __name(() => ContainerCondition, "ContainerCondition"),
      ContainerInstanceField: /* @__PURE__ */ __name(() => ContainerInstanceField, "ContainerInstanceField"),
      ContainerInstanceStatus: /* @__PURE__ */ __name(() => ContainerInstanceStatus, "ContainerInstanceStatus"),
      CreateCapacityProviderCommand: /* @__PURE__ */ __name(() => CreateCapacityProviderCommand, "CreateCapacityProviderCommand"),
      CreateClusterCommand: /* @__PURE__ */ __name(() => CreateClusterCommand, "CreateClusterCommand"),
      CreateServiceCommand: /* @__PURE__ */ __name(() => CreateServiceCommand, "CreateServiceCommand"),
      CreateTaskSetCommand: /* @__PURE__ */ __name(() => CreateTaskSetCommand, "CreateTaskSetCommand"),
      DeleteAccountSettingCommand: /* @__PURE__ */ __name(() => DeleteAccountSettingCommand, "DeleteAccountSettingCommand"),
      DeleteAttributesCommand: /* @__PURE__ */ __name(() => DeleteAttributesCommand, "DeleteAttributesCommand"),
      DeleteCapacityProviderCommand: /* @__PURE__ */ __name(() => DeleteCapacityProviderCommand, "DeleteCapacityProviderCommand"),
      DeleteClusterCommand: /* @__PURE__ */ __name(() => DeleteClusterCommand, "DeleteClusterCommand"),
      DeleteServiceCommand: /* @__PURE__ */ __name(() => DeleteServiceCommand, "DeleteServiceCommand"),
      DeleteTaskDefinitionsCommand: /* @__PURE__ */ __name(() => DeleteTaskDefinitionsCommand, "DeleteTaskDefinitionsCommand"),
      DeleteTaskSetCommand: /* @__PURE__ */ __name(() => DeleteTaskSetCommand, "DeleteTaskSetCommand"),
      DeploymentControllerType: /* @__PURE__ */ __name(() => DeploymentControllerType, "DeploymentControllerType"),
      DeploymentLifecycleHookStage: /* @__PURE__ */ __name(() => DeploymentLifecycleHookStage, "DeploymentLifecycleHookStage"),
      DeploymentRolloutState: /* @__PURE__ */ __name(() => DeploymentRolloutState, "DeploymentRolloutState"),
      DeploymentStrategy: /* @__PURE__ */ __name(() => DeploymentStrategy, "DeploymentStrategy"),
      DeregisterContainerInstanceCommand: /* @__PURE__ */ __name(() => DeregisterContainerInstanceCommand, "DeregisterContainerInstanceCommand"),
      DeregisterTaskDefinitionCommand: /* @__PURE__ */ __name(() => DeregisterTaskDefinitionCommand, "DeregisterTaskDefinitionCommand"),
      DescribeCapacityProvidersCommand: /* @__PURE__ */ __name(() => DescribeCapacityProvidersCommand, "DescribeCapacityProvidersCommand"),
      DescribeClustersCommand: /* @__PURE__ */ __name(() => DescribeClustersCommand, "DescribeClustersCommand"),
      DescribeContainerInstancesCommand: /* @__PURE__ */ __name(() => DescribeContainerInstancesCommand, "DescribeContainerInstancesCommand"),
      DescribeServiceDeploymentsCommand: /* @__PURE__ */ __name(() => DescribeServiceDeploymentsCommand, "DescribeServiceDeploymentsCommand"),
      DescribeServiceRevisionsCommand: /* @__PURE__ */ __name(() => DescribeServiceRevisionsCommand, "DescribeServiceRevisionsCommand"),
      DescribeServicesCommand: /* @__PURE__ */ __name(() => DescribeServicesCommand, "DescribeServicesCommand"),
      DescribeTaskDefinitionCommand: /* @__PURE__ */ __name(() => DescribeTaskDefinitionCommand, "DescribeTaskDefinitionCommand"),
      DescribeTaskSetsCommand: /* @__PURE__ */ __name(() => DescribeTaskSetsCommand, "DescribeTaskSetsCommand"),
      DescribeTasksCommand: /* @__PURE__ */ __name(() => DescribeTasksCommand, "DescribeTasksCommand"),
      DesiredStatus: /* @__PURE__ */ __name(() => DesiredStatus, "DesiredStatus"),
      DeviceCgroupPermission: /* @__PURE__ */ __name(() => DeviceCgroupPermission, "DeviceCgroupPermission"),
      DiscoverPollEndpointCommand: /* @__PURE__ */ __name(() => DiscoverPollEndpointCommand, "DiscoverPollEndpointCommand"),
      EBSResourceType: /* @__PURE__ */ __name(() => EBSResourceType, "EBSResourceType"),
      ECS: /* @__PURE__ */ __name(() => ECS, "ECS"),
      ECSClient: /* @__PURE__ */ __name(() => ECSClient2, "ECSClient"),
      ECSServiceException: /* @__PURE__ */ __name(() => ECSServiceException, "ECSServiceException"),
      EFSAuthorizationConfigIAM: /* @__PURE__ */ __name(() => EFSAuthorizationConfigIAM, "EFSAuthorizationConfigIAM"),
      EFSTransitEncryption: /* @__PURE__ */ __name(() => EFSTransitEncryption, "EFSTransitEncryption"),
      EnvironmentFileType: /* @__PURE__ */ __name(() => EnvironmentFileType, "EnvironmentFileType"),
      ExecuteCommandCommand: /* @__PURE__ */ __name(() => ExecuteCommandCommand, "ExecuteCommandCommand"),
      ExecuteCommandLogging: /* @__PURE__ */ __name(() => ExecuteCommandLogging, "ExecuteCommandLogging"),
      ExecuteCommandResponseFilterSensitiveLog: /* @__PURE__ */ __name(() => ExecuteCommandResponseFilterSensitiveLog, "ExecuteCommandResponseFilterSensitiveLog"),
      FirelensConfigurationType: /* @__PURE__ */ __name(() => FirelensConfigurationType, "FirelensConfigurationType"),
      GetTaskProtectionCommand: /* @__PURE__ */ __name(() => GetTaskProtectionCommand, "GetTaskProtectionCommand"),
      HealthStatus: /* @__PURE__ */ __name(() => HealthStatus, "HealthStatus"),
      InstanceHealthCheckState: /* @__PURE__ */ __name(() => InstanceHealthCheckState, "InstanceHealthCheckState"),
      InstanceHealthCheckType: /* @__PURE__ */ __name(() => InstanceHealthCheckType, "InstanceHealthCheckType"),
      InvalidParameterException: /* @__PURE__ */ __name(() => InvalidParameterException, "InvalidParameterException"),
      IpcMode: /* @__PURE__ */ __name(() => IpcMode, "IpcMode"),
      LaunchType: /* @__PURE__ */ __name(() => LaunchType, "LaunchType"),
      LimitExceededException: /* @__PURE__ */ __name(() => LimitExceededException, "LimitExceededException"),
      ListAccountSettingsCommand: /* @__PURE__ */ __name(() => ListAccountSettingsCommand, "ListAccountSettingsCommand"),
      ListAttributesCommand: /* @__PURE__ */ __name(() => ListAttributesCommand, "ListAttributesCommand"),
      ListClustersCommand: /* @__PURE__ */ __name(() => ListClustersCommand2, "ListClustersCommand"),
      ListContainerInstancesCommand: /* @__PURE__ */ __name(() => ListContainerInstancesCommand, "ListContainerInstancesCommand"),
      ListServiceDeploymentsCommand: /* @__PURE__ */ __name(() => ListServiceDeploymentsCommand, "ListServiceDeploymentsCommand"),
      ListServicesByNamespaceCommand: /* @__PURE__ */ __name(() => ListServicesByNamespaceCommand, "ListServicesByNamespaceCommand"),
      ListServicesCommand: /* @__PURE__ */ __name(() => ListServicesCommand, "ListServicesCommand"),
      ListTagsForResourceCommand: /* @__PURE__ */ __name(() => ListTagsForResourceCommand, "ListTagsForResourceCommand"),
      ListTaskDefinitionFamiliesCommand: /* @__PURE__ */ __name(() => ListTaskDefinitionFamiliesCommand, "ListTaskDefinitionFamiliesCommand"),
      ListTaskDefinitionsCommand: /* @__PURE__ */ __name(() => ListTaskDefinitionsCommand, "ListTaskDefinitionsCommand"),
      ListTasksCommand: /* @__PURE__ */ __name(() => ListTasksCommand, "ListTasksCommand"),
      LogDriver: /* @__PURE__ */ __name(() => LogDriver, "LogDriver"),
      ManagedAgentName: /* @__PURE__ */ __name(() => ManagedAgentName, "ManagedAgentName"),
      ManagedDraining: /* @__PURE__ */ __name(() => ManagedDraining, "ManagedDraining"),
      ManagedScalingStatus: /* @__PURE__ */ __name(() => ManagedScalingStatus, "ManagedScalingStatus"),
      ManagedTerminationProtection: /* @__PURE__ */ __name(() => ManagedTerminationProtection, "ManagedTerminationProtection"),
      MissingVersionException: /* @__PURE__ */ __name(() => MissingVersionException, "MissingVersionException"),
      NamespaceNotFoundException: /* @__PURE__ */ __name(() => NamespaceNotFoundException, "NamespaceNotFoundException"),
      NetworkMode: /* @__PURE__ */ __name(() => NetworkMode, "NetworkMode"),
      NoUpdateAvailableException: /* @__PURE__ */ __name(() => NoUpdateAvailableException, "NoUpdateAvailableException"),
      OSFamily: /* @__PURE__ */ __name(() => OSFamily, "OSFamily"),
      PidMode: /* @__PURE__ */ __name(() => PidMode, "PidMode"),
      PlacementConstraintType: /* @__PURE__ */ __name(() => PlacementConstraintType, "PlacementConstraintType"),
      PlacementStrategyType: /* @__PURE__ */ __name(() => PlacementStrategyType, "PlacementStrategyType"),
      PlatformDeviceType: /* @__PURE__ */ __name(() => PlatformDeviceType, "PlatformDeviceType"),
      PlatformTaskDefinitionIncompatibilityException: /* @__PURE__ */ __name(() => PlatformTaskDefinitionIncompatibilityException, "PlatformTaskDefinitionIncompatibilityException"),
      PlatformUnknownException: /* @__PURE__ */ __name(() => PlatformUnknownException, "PlatformUnknownException"),
      PropagateTags: /* @__PURE__ */ __name(() => PropagateTags, "PropagateTags"),
      ProxyConfigurationType: /* @__PURE__ */ __name(() => ProxyConfigurationType, "ProxyConfigurationType"),
      PutAccountSettingCommand: /* @__PURE__ */ __name(() => PutAccountSettingCommand, "PutAccountSettingCommand"),
      PutAccountSettingDefaultCommand: /* @__PURE__ */ __name(() => PutAccountSettingDefaultCommand, "PutAccountSettingDefaultCommand"),
      PutAttributesCommand: /* @__PURE__ */ __name(() => PutAttributesCommand, "PutAttributesCommand"),
      PutClusterCapacityProvidersCommand: /* @__PURE__ */ __name(() => PutClusterCapacityProvidersCommand, "PutClusterCapacityProvidersCommand"),
      RegisterContainerInstanceCommand: /* @__PURE__ */ __name(() => RegisterContainerInstanceCommand, "RegisterContainerInstanceCommand"),
      RegisterTaskDefinitionCommand: /* @__PURE__ */ __name(() => RegisterTaskDefinitionCommand2, "RegisterTaskDefinitionCommand"),
      ResourceInUseException: /* @__PURE__ */ __name(() => ResourceInUseException, "ResourceInUseException"),
      ResourceNotFoundException: /* @__PURE__ */ __name(() => ResourceNotFoundException2, "ResourceNotFoundException"),
      ResourceType: /* @__PURE__ */ __name(() => ResourceType, "ResourceType"),
      RunTaskCommand: /* @__PURE__ */ __name(() => RunTaskCommand, "RunTaskCommand"),
      ScaleUnit: /* @__PURE__ */ __name(() => ScaleUnit, "ScaleUnit"),
      SchedulingStrategy: /* @__PURE__ */ __name(() => SchedulingStrategy, "SchedulingStrategy"),
      Scope: /* @__PURE__ */ __name(() => Scope, "Scope"),
      ServerException: /* @__PURE__ */ __name(() => ServerException, "ServerException"),
      ServiceDeploymentLifecycleStage: /* @__PURE__ */ __name(() => ServiceDeploymentLifecycleStage, "ServiceDeploymentLifecycleStage"),
      ServiceDeploymentNotFoundException: /* @__PURE__ */ __name(() => ServiceDeploymentNotFoundException, "ServiceDeploymentNotFoundException"),
      ServiceDeploymentRollbackMonitorsStatus: /* @__PURE__ */ __name(() => ServiceDeploymentRollbackMonitorsStatus, "ServiceDeploymentRollbackMonitorsStatus"),
      ServiceDeploymentStatus: /* @__PURE__ */ __name(() => ServiceDeploymentStatus, "ServiceDeploymentStatus"),
      ServiceField: /* @__PURE__ */ __name(() => ServiceField, "ServiceField"),
      ServiceNotActiveException: /* @__PURE__ */ __name(() => ServiceNotActiveException, "ServiceNotActiveException"),
      ServiceNotFoundException: /* @__PURE__ */ __name(() => ServiceNotFoundException, "ServiceNotFoundException"),
      SessionFilterSensitiveLog: /* @__PURE__ */ __name(() => SessionFilterSensitiveLog, "SessionFilterSensitiveLog"),
      SettingName: /* @__PURE__ */ __name(() => SettingName, "SettingName"),
      SettingType: /* @__PURE__ */ __name(() => SettingType, "SettingType"),
      SortOrder: /* @__PURE__ */ __name(() => SortOrder, "SortOrder"),
      StabilityStatus: /* @__PURE__ */ __name(() => StabilityStatus, "StabilityStatus"),
      StartTaskCommand: /* @__PURE__ */ __name(() => StartTaskCommand, "StartTaskCommand"),
      StopServiceDeploymentCommand: /* @__PURE__ */ __name(() => StopServiceDeploymentCommand, "StopServiceDeploymentCommand"),
      StopServiceDeploymentStopType: /* @__PURE__ */ __name(() => StopServiceDeploymentStopType, "StopServiceDeploymentStopType"),
      StopTaskCommand: /* @__PURE__ */ __name(() => StopTaskCommand, "StopTaskCommand"),
      SubmitAttachmentStateChangesCommand: /* @__PURE__ */ __name(() => SubmitAttachmentStateChangesCommand, "SubmitAttachmentStateChangesCommand"),
      SubmitContainerStateChangeCommand: /* @__PURE__ */ __name(() => SubmitContainerStateChangeCommand, "SubmitContainerStateChangeCommand"),
      SubmitTaskStateChangeCommand: /* @__PURE__ */ __name(() => SubmitTaskStateChangeCommand, "SubmitTaskStateChangeCommand"),
      TagResourceCommand: /* @__PURE__ */ __name(() => TagResourceCommand, "TagResourceCommand"),
      TargetNotConnectedException: /* @__PURE__ */ __name(() => TargetNotConnectedException, "TargetNotConnectedException"),
      TargetNotFoundException: /* @__PURE__ */ __name(() => TargetNotFoundException, "TargetNotFoundException"),
      TargetType: /* @__PURE__ */ __name(() => TargetType, "TargetType"),
      TaskDefinitionFamilyStatus: /* @__PURE__ */ __name(() => TaskDefinitionFamilyStatus, "TaskDefinitionFamilyStatus"),
      TaskDefinitionField: /* @__PURE__ */ __name(() => TaskDefinitionField, "TaskDefinitionField"),
      TaskDefinitionPlacementConstraintType: /* @__PURE__ */ __name(() => TaskDefinitionPlacementConstraintType, "TaskDefinitionPlacementConstraintType"),
      TaskDefinitionStatus: /* @__PURE__ */ __name(() => TaskDefinitionStatus, "TaskDefinitionStatus"),
      TaskField: /* @__PURE__ */ __name(() => TaskField, "TaskField"),
      TaskFilesystemType: /* @__PURE__ */ __name(() => TaskFilesystemType, "TaskFilesystemType"),
      TaskSetField: /* @__PURE__ */ __name(() => TaskSetField, "TaskSetField"),
      TaskSetNotFoundException: /* @__PURE__ */ __name(() => TaskSetNotFoundException, "TaskSetNotFoundException"),
      TaskStopCode: /* @__PURE__ */ __name(() => TaskStopCode, "TaskStopCode"),
      TransportProtocol: /* @__PURE__ */ __name(() => TransportProtocol, "TransportProtocol"),
      UlimitName: /* @__PURE__ */ __name(() => UlimitName, "UlimitName"),
      UnsupportedFeatureException: /* @__PURE__ */ __name(() => UnsupportedFeatureException, "UnsupportedFeatureException"),
      UntagResourceCommand: /* @__PURE__ */ __name(() => UntagResourceCommand, "UntagResourceCommand"),
      UpdateCapacityProviderCommand: /* @__PURE__ */ __name(() => UpdateCapacityProviderCommand, "UpdateCapacityProviderCommand"),
      UpdateClusterCommand: /* @__PURE__ */ __name(() => UpdateClusterCommand, "UpdateClusterCommand"),
      UpdateClusterSettingsCommand: /* @__PURE__ */ __name(() => UpdateClusterSettingsCommand, "UpdateClusterSettingsCommand"),
      UpdateContainerAgentCommand: /* @__PURE__ */ __name(() => UpdateContainerAgentCommand, "UpdateContainerAgentCommand"),
      UpdateContainerInstancesStateCommand: /* @__PURE__ */ __name(() => UpdateContainerInstancesStateCommand, "UpdateContainerInstancesStateCommand"),
      UpdateInProgressException: /* @__PURE__ */ __name(() => UpdateInProgressException, "UpdateInProgressException"),
      UpdateServiceCommand: /* @__PURE__ */ __name(() => UpdateServiceCommand2, "UpdateServiceCommand"),
      UpdateServicePrimaryTaskSetCommand: /* @__PURE__ */ __name(() => UpdateServicePrimaryTaskSetCommand, "UpdateServicePrimaryTaskSetCommand"),
      UpdateTaskProtectionCommand: /* @__PURE__ */ __name(() => UpdateTaskProtectionCommand, "UpdateTaskProtectionCommand"),
      UpdateTaskSetCommand: /* @__PURE__ */ __name(() => UpdateTaskSetCommand, "UpdateTaskSetCommand"),
      VersionConsistency: /* @__PURE__ */ __name(() => VersionConsistency, "VersionConsistency"),
      __Client: /* @__PURE__ */ __name(() => import_smithy_client28.Client, "__Client"),
      paginateListAccountSettings: /* @__PURE__ */ __name(() => paginateListAccountSettings, "paginateListAccountSettings"),
      paginateListAttributes: /* @__PURE__ */ __name(() => paginateListAttributes, "paginateListAttributes"),
      paginateListClusters: /* @__PURE__ */ __name(() => paginateListClusters, "paginateListClusters"),
      paginateListContainerInstances: /* @__PURE__ */ __name(() => paginateListContainerInstances, "paginateListContainerInstances"),
      paginateListServices: /* @__PURE__ */ __name(() => paginateListServices, "paginateListServices"),
      paginateListServicesByNamespace: /* @__PURE__ */ __name(() => paginateListServicesByNamespace, "paginateListServicesByNamespace"),
      paginateListTaskDefinitionFamilies: /* @__PURE__ */ __name(() => paginateListTaskDefinitionFamilies, "paginateListTaskDefinitionFamilies"),
      paginateListTaskDefinitions: /* @__PURE__ */ __name(() => paginateListTaskDefinitions, "paginateListTaskDefinitions"),
      paginateListTasks: /* @__PURE__ */ __name(() => paginateListTasks, "paginateListTasks"),
      waitForServicesInactive: /* @__PURE__ */ __name(() => waitForServicesInactive, "waitForServicesInactive"),
      waitForServicesStable: /* @__PURE__ */ __name(() => waitForServicesStable, "waitForServicesStable"),
      waitForTasksRunning: /* @__PURE__ */ __name(() => waitForTasksRunning, "waitForTasksRunning"),
      waitForTasksStopped: /* @__PURE__ */ __name(() => waitForTasksStopped, "waitForTasksStopped"),
      waitUntilServicesInactive: /* @__PURE__ */ __name(() => waitUntilServicesInactive, "waitUntilServicesInactive"),
      waitUntilServicesStable: /* @__PURE__ */ __name(() => waitUntilServicesStable2, "waitUntilServicesStable"),
      waitUntilTasksRunning: /* @__PURE__ */ __name(() => waitUntilTasksRunning, "waitUntilTasksRunning"),
      waitUntilTasksStopped: /* @__PURE__ */ __name(() => waitUntilTasksStopped, "waitUntilTasksStopped")
    });
    module2.exports = __toCommonJS2(index_exports);
    var import_middleware_host_header3 = require_dist_cjs3();
    var import_middleware_logger3 = require_dist_cjs4();
    var import_middleware_recursion_detection3 = require_dist_cjs5();
    var import_middleware_user_agent3 = require_dist_cjs28();
    var import_config_resolver6 = require_dist_cjs30();
    var import_core17 = (init_dist_es(), __toCommonJS(dist_es_exports));
    var import_middleware_content_length3 = require_dist_cjs31();
    var import_middleware_endpoint8 = require_dist_cjs34();
    var import_middleware_retry5 = require_dist_cjs37();
    var import_httpAuthSchemeProvider5 = require_httpAuthSchemeProvider13();
    var resolveClientEndpointParameters3 = /* @__PURE__ */ __name2((options) => {
      return Object.assign(options, {
        useDualstackEndpoint: options.useDualstackEndpoint ?? false,
        useFipsEndpoint: options.useFipsEndpoint ?? false,
        defaultSigningName: "ecs"
      });
    }, "resolveClientEndpointParameters");
    var commonParams3 = {
      UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
      Endpoint: { type: "builtInParams", name: "endpoint" },
      Region: { type: "builtInParams", name: "region" },
      UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
    };
    var import_runtimeConfig5 = require_runtimeConfig14();
    var import_region_config_resolver3 = require_dist_cjs45();
    var import_protocol_http16 = require_dist_cjs2();
    var import_smithy_client28 = require_dist_cjs26();
    var getHttpAuthExtensionConfiguration3 = /* @__PURE__ */ __name2((runtimeConfig) => {
      const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
      let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
      let _credentials = runtimeConfig.credentials;
      return {
        setHttpAuthScheme(httpAuthScheme) {
          const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
          if (index === -1) {
            _httpAuthSchemes.push(httpAuthScheme);
          } else {
            _httpAuthSchemes.splice(index, 1, httpAuthScheme);
          }
        },
        httpAuthSchemes() {
          return _httpAuthSchemes;
        },
        setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
          _httpAuthSchemeProvider = httpAuthSchemeProvider;
        },
        httpAuthSchemeProvider() {
          return _httpAuthSchemeProvider;
        },
        setCredentials(credentials) {
          _credentials = credentials;
        },
        credentials() {
          return _credentials;
        }
      };
    }, "getHttpAuthExtensionConfiguration");
    var resolveHttpAuthRuntimeConfig3 = /* @__PURE__ */ __name2((config) => {
      return {
        httpAuthSchemes: config.httpAuthSchemes(),
        httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
        credentials: config.credentials()
      };
    }, "resolveHttpAuthRuntimeConfig");
    var resolveRuntimeExtensions3 = /* @__PURE__ */ __name2((runtimeConfig, extensions) => {
      const extensionConfiguration = Object.assign(
        (0, import_region_config_resolver3.getAwsRegionExtensionConfiguration)(runtimeConfig),
        (0, import_smithy_client28.getDefaultExtensionConfiguration)(runtimeConfig),
        (0, import_protocol_http16.getHttpHandlerExtensionConfiguration)(runtimeConfig),
        getHttpAuthExtensionConfiguration3(runtimeConfig)
      );
      extensions.forEach((extension) => extension.configure(extensionConfiguration));
      return Object.assign(
        runtimeConfig,
        (0, import_region_config_resolver3.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
        (0, import_smithy_client28.resolveDefaultRuntimeConfig)(extensionConfiguration),
        (0, import_protocol_http16.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
        resolveHttpAuthRuntimeConfig3(extensionConfiguration)
      );
    }, "resolveRuntimeExtensions");
    var ECSClient2 = class extends import_smithy_client28.Client {
      static {
        __name(this, "ECSClient");
      }
      static {
        __name2(this, "ECSClient");
      }
      /**
       * The resolved configuration of ECSClient class. This is resolved and normalized from the {@link ECSClientConfig | constructor configuration interface}.
       */
      config;
      constructor(...[configuration]) {
        const _config_0 = (0, import_runtimeConfig5.getRuntimeConfig)(configuration || {});
        super(_config_0);
        this.initConfig = _config_0;
        const _config_1 = resolveClientEndpointParameters3(_config_0);
        const _config_2 = (0, import_middleware_user_agent3.resolveUserAgentConfig)(_config_1);
        const _config_3 = (0, import_middleware_retry5.resolveRetryConfig)(_config_2);
        const _config_4 = (0, import_config_resolver6.resolveRegionConfig)(_config_3);
        const _config_5 = (0, import_middleware_host_header3.resolveHostHeaderConfig)(_config_4);
        const _config_6 = (0, import_middleware_endpoint8.resolveEndpointConfig)(_config_5);
        const _config_7 = (0, import_httpAuthSchemeProvider5.resolveHttpAuthSchemeConfig)(_config_6);
        const _config_8 = resolveRuntimeExtensions3(_config_7, configuration?.extensions || []);
        this.config = _config_8;
        this.middlewareStack.use((0, import_middleware_user_agent3.getUserAgentPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_retry5.getRetryPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_content_length3.getContentLengthPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_host_header3.getHostHeaderPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_logger3.getLoggerPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_recursion_detection3.getRecursionDetectionPlugin)(this.config));
        this.middlewareStack.use(
          (0, import_core17.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
            httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider5.defaultECSHttpAuthSchemeParametersProvider,
            identityProviderConfigProvider: /* @__PURE__ */ __name2(async (config) => new import_core17.DefaultIdentityProviderConfig({
              "aws.auth#sigv4": config.credentials
            }), "identityProviderConfigProvider")
          })
        );
        this.middlewareStack.use((0, import_core17.getHttpSigningPlugin)(this.config));
      }
      /**
       * Destroy underlying resources, like sockets. It's usually not necessary to do this.
       * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
       * Otherwise, sockets might stay open for quite a long time before the server terminates them.
       */
      destroy() {
        super.destroy();
      }
    };
    var import_middleware_serde5 = require_dist_cjs7();
    var import_core22 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var import_uuid2 = (init_esm_node(), __toCommonJS(esm_node_exports));
    var ECSServiceException = class _ECSServiceException extends import_smithy_client28.ServiceException {
      static {
        __name(this, "_ECSServiceException");
      }
      static {
        __name2(this, "ECSServiceException");
      }
      /**
       * @internal
       */
      constructor(options) {
        super(options);
        Object.setPrototypeOf(this, _ECSServiceException.prototype);
      }
    };
    var AccessDeniedException2 = class _AccessDeniedException extends ECSServiceException {
      static {
        __name(this, "_AccessDeniedException");
      }
      static {
        __name2(this, "AccessDeniedException");
      }
      name = "AccessDeniedException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "AccessDeniedException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _AccessDeniedException.prototype);
      }
    };
    var AgentUpdateStatus = {
      FAILED: "FAILED",
      PENDING: "PENDING",
      STAGED: "STAGED",
      STAGING: "STAGING",
      UPDATED: "UPDATED",
      UPDATING: "UPDATING"
    };
    var ClientException = class _ClientException extends ECSServiceException {
      static {
        __name(this, "_ClientException");
      }
      static {
        __name2(this, "ClientException");
      }
      name = "ClientException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ClientException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ClientException.prototype);
      }
    };
    var ManagedDraining = {
      DISABLED: "DISABLED",
      ENABLED: "ENABLED"
    };
    var ManagedScalingStatus = {
      DISABLED: "DISABLED",
      ENABLED: "ENABLED"
    };
    var ManagedTerminationProtection = {
      DISABLED: "DISABLED",
      ENABLED: "ENABLED"
    };
    var CapacityProviderStatus = {
      ACTIVE: "ACTIVE",
      INACTIVE: "INACTIVE"
    };
    var CapacityProviderUpdateStatus = {
      DELETE_COMPLETE: "DELETE_COMPLETE",
      DELETE_FAILED: "DELETE_FAILED",
      DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
      UPDATE_COMPLETE: "UPDATE_COMPLETE",
      UPDATE_FAILED: "UPDATE_FAILED",
      UPDATE_IN_PROGRESS: "UPDATE_IN_PROGRESS"
    };
    var InvalidParameterException = class _InvalidParameterException extends ECSServiceException {
      static {
        __name(this, "_InvalidParameterException");
      }
      static {
        __name2(this, "InvalidParameterException");
      }
      name = "InvalidParameterException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidParameterException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidParameterException.prototype);
      }
    };
    var LimitExceededException = class _LimitExceededException extends ECSServiceException {
      static {
        __name(this, "_LimitExceededException");
      }
      static {
        __name2(this, "LimitExceededException");
      }
      name = "LimitExceededException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "LimitExceededException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _LimitExceededException.prototype);
      }
    };
    var ServerException = class _ServerException extends ECSServiceException {
      static {
        __name(this, "_ServerException");
      }
      static {
        __name2(this, "ServerException");
      }
      name = "ServerException";
      $fault = "server";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ServerException",
          $fault: "server",
          ...opts
        });
        Object.setPrototypeOf(this, _ServerException.prototype);
      }
    };
    var UpdateInProgressException = class _UpdateInProgressException extends ECSServiceException {
      static {
        __name(this, "_UpdateInProgressException");
      }
      static {
        __name2(this, "UpdateInProgressException");
      }
      name = "UpdateInProgressException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "UpdateInProgressException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _UpdateInProgressException.prototype);
      }
    };
    var ExecuteCommandLogging = {
      DEFAULT: "DEFAULT",
      NONE: "NONE",
      OVERRIDE: "OVERRIDE"
    };
    var ClusterSettingName = {
      CONTAINER_INSIGHTS: "containerInsights"
    };
    var NamespaceNotFoundException = class _NamespaceNotFoundException extends ECSServiceException {
      static {
        __name(this, "_NamespaceNotFoundException");
      }
      static {
        __name2(this, "NamespaceNotFoundException");
      }
      name = "NamespaceNotFoundException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "NamespaceNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _NamespaceNotFoundException.prototype);
      }
    };
    var ClusterNotFoundException = class _ClusterNotFoundException extends ECSServiceException {
      static {
        __name(this, "_ClusterNotFoundException");
      }
      static {
        __name2(this, "ClusterNotFoundException");
      }
      name = "ClusterNotFoundException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ClusterNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ClusterNotFoundException.prototype);
      }
    };
    var AvailabilityZoneRebalancing = {
      DISABLED: "DISABLED",
      ENABLED: "ENABLED"
    };
    var DeploymentLifecycleHookStage = {
      POST_PRODUCTION_TRAFFIC_SHIFT: "POST_PRODUCTION_TRAFFIC_SHIFT",
      POST_SCALE_UP: "POST_SCALE_UP",
      POST_TEST_TRAFFIC_SHIFT: "POST_TEST_TRAFFIC_SHIFT",
      PRE_SCALE_UP: "PRE_SCALE_UP",
      PRODUCTION_TRAFFIC_SHIFT: "PRODUCTION_TRAFFIC_SHIFT",
      RECONCILE_SERVICE: "RECONCILE_SERVICE",
      TEST_TRAFFIC_SHIFT: "TEST_TRAFFIC_SHIFT"
    };
    var DeploymentStrategy = {
      BLUE_GREEN: "BLUE_GREEN",
      ROLLING: "ROLLING"
    };
    var DeploymentControllerType = {
      CODE_DEPLOY: "CODE_DEPLOY",
      ECS: "ECS",
      EXTERNAL: "EXTERNAL"
    };
    var LaunchType = {
      EC2: "EC2",
      EXTERNAL: "EXTERNAL",
      FARGATE: "FARGATE"
    };
    var AssignPublicIp = {
      DISABLED: "DISABLED",
      ENABLED: "ENABLED"
    };
    var PlacementConstraintType = {
      DISTINCT_INSTANCE: "distinctInstance",
      MEMBER_OF: "memberOf"
    };
    var PlacementStrategyType = {
      BINPACK: "binpack",
      RANDOM: "random",
      SPREAD: "spread"
    };
    var PropagateTags = {
      NONE: "NONE",
      SERVICE: "SERVICE",
      TASK_DEFINITION: "TASK_DEFINITION"
    };
    var SchedulingStrategy = {
      DAEMON: "DAEMON",
      REPLICA: "REPLICA"
    };
    var LogDriver = {
      AWSFIRELENS: "awsfirelens",
      AWSLOGS: "awslogs",
      FLUENTD: "fluentd",
      GELF: "gelf",
      JOURNALD: "journald",
      JSON_FILE: "json-file",
      SPLUNK: "splunk",
      SYSLOG: "syslog"
    };
    var TaskFilesystemType = {
      EXT3: "ext3",
      EXT4: "ext4",
      NTFS: "ntfs",
      XFS: "xfs"
    };
    var EBSResourceType = {
      VOLUME: "volume"
    };
    var DeploymentRolloutState = {
      COMPLETED: "COMPLETED",
      FAILED: "FAILED",
      IN_PROGRESS: "IN_PROGRESS"
    };
    var ScaleUnit = {
      PERCENT: "PERCENT"
    };
    var StabilityStatus = {
      STABILIZING: "STABILIZING",
      STEADY_STATE: "STEADY_STATE"
    };
    var PlatformTaskDefinitionIncompatibilityException = class _PlatformTaskDefinitionIncompatibilityException extends ECSServiceException {
      static {
        __name(this, "_PlatformTaskDefinitionIncompatibilityException");
      }
      static {
        __name2(this, "PlatformTaskDefinitionIncompatibilityException");
      }
      name = "PlatformTaskDefinitionIncompatibilityException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "PlatformTaskDefinitionIncompatibilityException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _PlatformTaskDefinitionIncompatibilityException.prototype);
      }
    };
    var PlatformUnknownException = class _PlatformUnknownException extends ECSServiceException {
      static {
        __name(this, "_PlatformUnknownException");
      }
      static {
        __name2(this, "PlatformUnknownException");
      }
      name = "PlatformUnknownException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "PlatformUnknownException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _PlatformUnknownException.prototype);
      }
    };
    var UnsupportedFeatureException = class _UnsupportedFeatureException extends ECSServiceException {
      static {
        __name(this, "_UnsupportedFeatureException");
      }
      static {
        __name2(this, "UnsupportedFeatureException");
      }
      name = "UnsupportedFeatureException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "UnsupportedFeatureException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _UnsupportedFeatureException.prototype);
      }
    };
    var ServiceNotActiveException = class _ServiceNotActiveException extends ECSServiceException {
      static {
        __name(this, "_ServiceNotActiveException");
      }
      static {
        __name2(this, "ServiceNotActiveException");
      }
      name = "ServiceNotActiveException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ServiceNotActiveException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ServiceNotActiveException.prototype);
      }
    };
    var ServiceNotFoundException = class _ServiceNotFoundException extends ECSServiceException {
      static {
        __name(this, "_ServiceNotFoundException");
      }
      static {
        __name2(this, "ServiceNotFoundException");
      }
      name = "ServiceNotFoundException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ServiceNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ServiceNotFoundException.prototype);
      }
    };
    var SettingName = {
      AWSVPC_TRUNKING: "awsvpcTrunking",
      CONTAINER_INSIGHTS: "containerInsights",
      CONTAINER_INSTANCE_LONG_ARN_FORMAT: "containerInstanceLongArnFormat",
      DEFAULT_LOG_DRIVER_MODE: "defaultLogDriverMode",
      FARGATE_FIPS_MODE: "fargateFIPSMode",
      FARGATE_TASK_RETIREMENT_WAIT_PERIOD: "fargateTaskRetirementWaitPeriod",
      GUARD_DUTY_ACTIVATE: "guardDutyActivate",
      SERVICE_LONG_ARN_FORMAT: "serviceLongArnFormat",
      TAG_RESOURCE_AUTHORIZATION: "tagResourceAuthorization",
      TASK_LONG_ARN_FORMAT: "taskLongArnFormat"
    };
    var SettingType = {
      AWS_MANAGED: "aws_managed",
      USER: "user"
    };
    var TargetType = {
      CONTAINER_INSTANCE: "container-instance"
    };
    var TargetNotFoundException = class _TargetNotFoundException extends ECSServiceException {
      static {
        __name(this, "_TargetNotFoundException");
      }
      static {
        __name2(this, "TargetNotFoundException");
      }
      name = "TargetNotFoundException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "TargetNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _TargetNotFoundException.prototype);
      }
    };
    var ClusterContainsContainerInstancesException = class _ClusterContainsContainerInstancesException extends ECSServiceException {
      static {
        __name(this, "_ClusterContainsContainerInstancesException");
      }
      static {
        __name2(this, "ClusterContainsContainerInstancesException");
      }
      name = "ClusterContainsContainerInstancesException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ClusterContainsContainerInstancesException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ClusterContainsContainerInstancesException.prototype);
      }
    };
    var ClusterContainsServicesException = class _ClusterContainsServicesException extends ECSServiceException {
      static {
        __name(this, "_ClusterContainsServicesException");
      }
      static {
        __name2(this, "ClusterContainsServicesException");
      }
      name = "ClusterContainsServicesException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ClusterContainsServicesException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ClusterContainsServicesException.prototype);
      }
    };
    var ClusterContainsTasksException = class _ClusterContainsTasksException extends ECSServiceException {
      static {
        __name(this, "_ClusterContainsTasksException");
      }
      static {
        __name2(this, "ClusterContainsTasksException");
      }
      name = "ClusterContainsTasksException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ClusterContainsTasksException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ClusterContainsTasksException.prototype);
      }
    };
    var Compatibility = {
      EC2: "EC2",
      EXTERNAL: "EXTERNAL",
      FARGATE: "FARGATE"
    };
    var ContainerCondition = {
      COMPLETE: "COMPLETE",
      HEALTHY: "HEALTHY",
      START: "START",
      SUCCESS: "SUCCESS"
    };
    var EnvironmentFileType = {
      S3: "s3"
    };
    var FirelensConfigurationType = {
      FLUENTBIT: "fluentbit",
      FLUENTD: "fluentd"
    };
    var DeviceCgroupPermission = {
      MKNOD: "mknod",
      READ: "read",
      WRITE: "write"
    };
    var ApplicationProtocol = {
      GRPC: "grpc",
      HTTP: "http",
      HTTP2: "http2"
    };
    var TransportProtocol = {
      TCP: "tcp",
      UDP: "udp"
    };
    var ResourceType = {
      GPU: "GPU",
      INFERENCE_ACCELERATOR: "InferenceAccelerator"
    };
    var UlimitName = {
      CORE: "core",
      CPU: "cpu",
      DATA: "data",
      FSIZE: "fsize",
      LOCKS: "locks",
      MEMLOCK: "memlock",
      MSGQUEUE: "msgqueue",
      NICE: "nice",
      NOFILE: "nofile",
      NPROC: "nproc",
      RSS: "rss",
      RTPRIO: "rtprio",
      RTTIME: "rttime",
      SIGPENDING: "sigpending",
      STACK: "stack"
    };
    var VersionConsistency = {
      DISABLED: "disabled",
      ENABLED: "enabled"
    };
    var IpcMode = {
      HOST: "host",
      NONE: "none",
      TASK: "task"
    };
    var NetworkMode = {
      AWSVPC: "awsvpc",
      BRIDGE: "bridge",
      HOST: "host",
      NONE: "none"
    };
    var PidMode = {
      HOST: "host",
      TASK: "task"
    };
    var TaskDefinitionPlacementConstraintType = {
      MEMBER_OF: "memberOf"
    };
    var ProxyConfigurationType = {
      APPMESH: "APPMESH"
    };
    var CPUArchitecture = {
      ARM64: "ARM64",
      X86_64: "X86_64"
    };
    var OSFamily = {
      LINUX: "LINUX",
      WINDOWS_SERVER_2004_CORE: "WINDOWS_SERVER_2004_CORE",
      WINDOWS_SERVER_2016_FULL: "WINDOWS_SERVER_2016_FULL",
      WINDOWS_SERVER_2019_CORE: "WINDOWS_SERVER_2019_CORE",
      WINDOWS_SERVER_2019_FULL: "WINDOWS_SERVER_2019_FULL",
      WINDOWS_SERVER_2022_CORE: "WINDOWS_SERVER_2022_CORE",
      WINDOWS_SERVER_2022_FULL: "WINDOWS_SERVER_2022_FULL",
      WINDOWS_SERVER_2025_CORE: "WINDOWS_SERVER_2025_CORE",
      WINDOWS_SERVER_2025_FULL: "WINDOWS_SERVER_2025_FULL",
      WINDOWS_SERVER_20H2_CORE: "WINDOWS_SERVER_20H2_CORE"
    };
    var TaskDefinitionStatus = {
      ACTIVE: "ACTIVE",
      DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
      INACTIVE: "INACTIVE"
    };
    var Scope = {
      SHARED: "shared",
      TASK: "task"
    };
    var EFSAuthorizationConfigIAM = {
      DISABLED: "DISABLED",
      ENABLED: "ENABLED"
    };
    var EFSTransitEncryption = {
      DISABLED: "DISABLED",
      ENABLED: "ENABLED"
    };
    var TaskSetNotFoundException = class _TaskSetNotFoundException extends ECSServiceException {
      static {
        __name(this, "_TaskSetNotFoundException");
      }
      static {
        __name2(this, "TaskSetNotFoundException");
      }
      name = "TaskSetNotFoundException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "TaskSetNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _TaskSetNotFoundException.prototype);
      }
    };
    var InstanceHealthCheckState = {
      IMPAIRED: "IMPAIRED",
      INITIALIZING: "INITIALIZING",
      INSUFFICIENT_DATA: "INSUFFICIENT_DATA",
      OK: "OK"
    };
    var InstanceHealthCheckType = {
      CONTAINER_RUNTIME: "CONTAINER_RUNTIME"
    };
    var CapacityProviderField = {
      TAGS: "TAGS"
    };
    var ClusterField = {
      ATTACHMENTS: "ATTACHMENTS",
      CONFIGURATIONS: "CONFIGURATIONS",
      SETTINGS: "SETTINGS",
      STATISTICS: "STATISTICS",
      TAGS: "TAGS"
    };
    var ContainerInstanceField = {
      CONTAINER_INSTANCE_HEALTH: "CONTAINER_INSTANCE_HEALTH",
      TAGS: "TAGS"
    };
    var ServiceDeploymentRollbackMonitorsStatus = {
      DISABLED: "DISABLED",
      MONITORING: "MONITORING",
      MONITORING_COMPLETE: "MONITORING_COMPLETE",
      TRIGGERED: "TRIGGERED"
    };
    var ServiceDeploymentLifecycleStage = {
      BAKE_TIME: "BAKE_TIME",
      CLEAN_UP: "CLEAN_UP",
      POST_PRODUCTION_TRAFFIC_SHIFT: "POST_PRODUCTION_TRAFFIC_SHIFT",
      POST_SCALE_UP: "POST_SCALE_UP",
      POST_TEST_TRAFFIC_SHIFT: "POST_TEST_TRAFFIC_SHIFT",
      PRE_SCALE_UP: "PRE_SCALE_UP",
      PRODUCTION_TRAFFIC_SHIFT: "PRODUCTION_TRAFFIC_SHIFT",
      RECONCILE_SERVICE: "RECONCILE_SERVICE",
      SCALE_UP: "SCALE_UP",
      TEST_TRAFFIC_SHIFT: "TEST_TRAFFIC_SHIFT"
    };
    var ServiceDeploymentStatus = {
      IN_PROGRESS: "IN_PROGRESS",
      PENDING: "PENDING",
      ROLLBACK_FAILED: "ROLLBACK_FAILED",
      ROLLBACK_IN_PROGRESS: "ROLLBACK_IN_PROGRESS",
      ROLLBACK_REQUESTED: "ROLLBACK_REQUESTED",
      ROLLBACK_SUCCESSFUL: "ROLLBACK_SUCCESSFUL",
      STOPPED: "STOPPED",
      STOP_REQUESTED: "STOP_REQUESTED",
      SUCCESSFUL: "SUCCESSFUL"
    };
    var ServiceField = {
      TAGS: "TAGS"
    };
    var TaskDefinitionField = {
      TAGS: "TAGS"
    };
    var TaskField = {
      TAGS: "TAGS"
    };
    var Connectivity = {
      CONNECTED: "CONNECTED",
      DISCONNECTED: "DISCONNECTED"
    };
    var HealthStatus = {
      HEALTHY: "HEALTHY",
      UNHEALTHY: "UNHEALTHY",
      UNKNOWN: "UNKNOWN"
    };
    var ManagedAgentName = {
      ExecuteCommandAgent: "ExecuteCommandAgent"
    };
    var TaskStopCode = {
      ESSENTIAL_CONTAINER_EXITED: "EssentialContainerExited",
      SERVICE_SCHEDULER_INITIATED: "ServiceSchedulerInitiated",
      SPOT_INTERRUPTION: "SpotInterruption",
      TASK_FAILED_TO_START: "TaskFailedToStart",
      TERMINATION_NOTICE: "TerminationNotice",
      USER_INITIATED: "UserInitiated"
    };
    var TaskSetField = {
      TAGS: "TAGS"
    };
    var TargetNotConnectedException = class _TargetNotConnectedException extends ECSServiceException {
      static {
        __name(this, "_TargetNotConnectedException");
      }
      static {
        __name2(this, "TargetNotConnectedException");
      }
      name = "TargetNotConnectedException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "TargetNotConnectedException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _TargetNotConnectedException.prototype);
      }
    };
    var ResourceNotFoundException2 = class _ResourceNotFoundException extends ECSServiceException {
      static {
        __name(this, "_ResourceNotFoundException");
      }
      static {
        __name2(this, "ResourceNotFoundException");
      }
      name = "ResourceNotFoundException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ResourceNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
      }
    };
    var ContainerInstanceStatus = {
      ACTIVE: "ACTIVE",
      DEREGISTERING: "DEREGISTERING",
      DRAINING: "DRAINING",
      REGISTERING: "REGISTERING",
      REGISTRATION_FAILED: "REGISTRATION_FAILED"
    };
    var TaskDefinitionFamilyStatus = {
      ACTIVE: "ACTIVE",
      ALL: "ALL",
      INACTIVE: "INACTIVE"
    };
    var SortOrder = {
      ASC: "ASC",
      DESC: "DESC"
    };
    var DesiredStatus = {
      PENDING: "PENDING",
      RUNNING: "RUNNING",
      STOPPED: "STOPPED"
    };
    var AttributeLimitExceededException = class _AttributeLimitExceededException extends ECSServiceException {
      static {
        __name(this, "_AttributeLimitExceededException");
      }
      static {
        __name2(this, "AttributeLimitExceededException");
      }
      name = "AttributeLimitExceededException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "AttributeLimitExceededException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _AttributeLimitExceededException.prototype);
      }
    };
    var ResourceInUseException = class _ResourceInUseException extends ECSServiceException {
      static {
        __name(this, "_ResourceInUseException");
      }
      static {
        __name2(this, "ResourceInUseException");
      }
      name = "ResourceInUseException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ResourceInUseException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ResourceInUseException.prototype);
      }
    };
    var PlatformDeviceType = {
      GPU: "GPU"
    };
    var BlockedException = class _BlockedException extends ECSServiceException {
      static {
        __name(this, "_BlockedException");
      }
      static {
        __name2(this, "BlockedException");
      }
      name = "BlockedException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "BlockedException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _BlockedException.prototype);
      }
    };
    var ConflictException = class _ConflictException extends ECSServiceException {
      static {
        __name(this, "_ConflictException");
      }
      static {
        __name2(this, "ConflictException");
      }
      name = "ConflictException";
      $fault = "client";
      /**
       * <p>The existing task ARNs which are already associated with the
       * 				<code>clientToken</code>.</p>
       * @public
       */
      resourceIds;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ConflictException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ConflictException.prototype);
        this.resourceIds = opts.resourceIds;
      }
    };
    var ServiceDeploymentNotFoundException = class _ServiceDeploymentNotFoundException extends ECSServiceException {
      static {
        __name(this, "_ServiceDeploymentNotFoundException");
      }
      static {
        __name2(this, "ServiceDeploymentNotFoundException");
      }
      name = "ServiceDeploymentNotFoundException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ServiceDeploymentNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ServiceDeploymentNotFoundException.prototype);
      }
    };
    var StopServiceDeploymentStopType = {
      ABORT: "ABORT",
      ROLLBACK: "ROLLBACK"
    };
    var SessionFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.tokenValue && { tokenValue: import_smithy_client28.SENSITIVE_STRING }
    }), "SessionFilterSensitiveLog");
    var ExecuteCommandResponseFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.session && { session: SessionFilterSensitiveLog(obj.session) }
    }), "ExecuteCommandResponseFilterSensitiveLog");
    var MissingVersionException = class _MissingVersionException extends ECSServiceException {
      static {
        __name(this, "_MissingVersionException");
      }
      static {
        __name2(this, "MissingVersionException");
      }
      name = "MissingVersionException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "MissingVersionException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _MissingVersionException.prototype);
      }
    };
    var NoUpdateAvailableException = class _NoUpdateAvailableException extends ECSServiceException {
      static {
        __name(this, "_NoUpdateAvailableException");
      }
      static {
        __name2(this, "NoUpdateAvailableException");
      }
      name = "NoUpdateAvailableException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "NoUpdateAvailableException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _NoUpdateAvailableException.prototype);
      }
    };
    var se_CreateCapacityProviderCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("CreateCapacityProvider");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateCapacityProviderCommand");
    var se_CreateClusterCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("CreateCluster");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateClusterCommand");
    var se_CreateServiceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("CreateService");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateServiceCommand");
    var se_CreateTaskSetCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("CreateTaskSet");
      let body;
      body = JSON.stringify(se_CreateTaskSetRequest(input, context));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateTaskSetCommand");
    var se_DeleteAccountSettingCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteAccountSetting");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteAccountSettingCommand");
    var se_DeleteAttributesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteAttributes");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteAttributesCommand");
    var se_DeleteCapacityProviderCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteCapacityProvider");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteCapacityProviderCommand");
    var se_DeleteClusterCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteCluster");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteClusterCommand");
    var se_DeleteServiceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteService");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteServiceCommand");
    var se_DeleteTaskDefinitionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteTaskDefinitions");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteTaskDefinitionsCommand");
    var se_DeleteTaskSetCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteTaskSet");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteTaskSetCommand");
    var se_DeregisterContainerInstanceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeregisterContainerInstance");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeregisterContainerInstanceCommand");
    var se_DeregisterTaskDefinitionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeregisterTaskDefinition");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeregisterTaskDefinitionCommand");
    var se_DescribeCapacityProvidersCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeCapacityProviders");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeCapacityProvidersCommand");
    var se_DescribeClustersCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeClusters");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeClustersCommand");
    var se_DescribeContainerInstancesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeContainerInstances");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeContainerInstancesCommand");
    var se_DescribeServiceDeploymentsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeServiceDeployments");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeServiceDeploymentsCommand");
    var se_DescribeServiceRevisionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeServiceRevisions");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeServiceRevisionsCommand");
    var se_DescribeServicesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeServices");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeServicesCommand");
    var se_DescribeTaskDefinitionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeTaskDefinition");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeTaskDefinitionCommand");
    var se_DescribeTasksCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeTasks");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeTasksCommand");
    var se_DescribeTaskSetsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeTaskSets");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeTaskSetsCommand");
    var se_DiscoverPollEndpointCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DiscoverPollEndpoint");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DiscoverPollEndpointCommand");
    var se_ExecuteCommandCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ExecuteCommand");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ExecuteCommandCommand");
    var se_GetTaskProtectionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetTaskProtection");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetTaskProtectionCommand");
    var se_ListAccountSettingsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListAccountSettings");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListAccountSettingsCommand");
    var se_ListAttributesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListAttributes");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListAttributesCommand");
    var se_ListClustersCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListClusters");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListClustersCommand");
    var se_ListContainerInstancesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListContainerInstances");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListContainerInstancesCommand");
    var se_ListServiceDeploymentsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListServiceDeployments");
      let body;
      body = JSON.stringify(se_ListServiceDeploymentsRequest(input, context));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListServiceDeploymentsCommand");
    var se_ListServicesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListServices");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListServicesCommand");
    var se_ListServicesByNamespaceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListServicesByNamespace");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListServicesByNamespaceCommand");
    var se_ListTagsForResourceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListTagsForResource");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListTagsForResourceCommand");
    var se_ListTaskDefinitionFamiliesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListTaskDefinitionFamilies");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListTaskDefinitionFamiliesCommand");
    var se_ListTaskDefinitionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListTaskDefinitions");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListTaskDefinitionsCommand");
    var se_ListTasksCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListTasks");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListTasksCommand");
    var se_PutAccountSettingCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("PutAccountSetting");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_PutAccountSettingCommand");
    var se_PutAccountSettingDefaultCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("PutAccountSettingDefault");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_PutAccountSettingDefaultCommand");
    var se_PutAttributesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("PutAttributes");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_PutAttributesCommand");
    var se_PutClusterCapacityProvidersCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("PutClusterCapacityProviders");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_PutClusterCapacityProvidersCommand");
    var se_RegisterContainerInstanceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("RegisterContainerInstance");
      let body;
      body = JSON.stringify(se_RegisterContainerInstanceRequest(input, context));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_RegisterContainerInstanceCommand");
    var se_RegisterTaskDefinitionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("RegisterTaskDefinition");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_RegisterTaskDefinitionCommand");
    var se_RunTaskCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("RunTask");
      let body;
      body = JSON.stringify(se_RunTaskRequest(input, context));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_RunTaskCommand");
    var se_StartTaskCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("StartTask");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_StartTaskCommand");
    var se_StopServiceDeploymentCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("StopServiceDeployment");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_StopServiceDeploymentCommand");
    var se_StopTaskCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("StopTask");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_StopTaskCommand");
    var se_SubmitAttachmentStateChangesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("SubmitAttachmentStateChanges");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_SubmitAttachmentStateChangesCommand");
    var se_SubmitContainerStateChangeCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("SubmitContainerStateChange");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_SubmitContainerStateChangeCommand");
    var se_SubmitTaskStateChangeCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("SubmitTaskStateChange");
      let body;
      body = JSON.stringify(se_SubmitTaskStateChangeRequest(input, context));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_SubmitTaskStateChangeCommand");
    var se_TagResourceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("TagResource");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_TagResourceCommand");
    var se_UntagResourceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("UntagResource");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UntagResourceCommand");
    var se_UpdateCapacityProviderCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("UpdateCapacityProvider");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateCapacityProviderCommand");
    var se_UpdateClusterCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("UpdateCluster");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateClusterCommand");
    var se_UpdateClusterSettingsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("UpdateClusterSettings");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateClusterSettingsCommand");
    var se_UpdateContainerAgentCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("UpdateContainerAgent");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateContainerAgentCommand");
    var se_UpdateContainerInstancesStateCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("UpdateContainerInstancesState");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateContainerInstancesStateCommand");
    var se_UpdateServiceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("UpdateService");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateServiceCommand");
    var se_UpdateServicePrimaryTaskSetCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("UpdateServicePrimaryTaskSet");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateServicePrimaryTaskSetCommand");
    var se_UpdateTaskProtectionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("UpdateTaskProtection");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateTaskProtectionCommand");
    var se_UpdateTaskSetCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("UpdateTaskSet");
      let body;
      body = JSON.stringify(se_UpdateTaskSetRequest(input, context));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateTaskSetCommand");
    var de_CreateCapacityProviderCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateCapacityProviderCommand");
    var de_CreateClusterCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateClusterCommand");
    var de_CreateServiceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_CreateServiceResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateServiceCommand");
    var de_CreateTaskSetCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_CreateTaskSetResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateTaskSetCommand");
    var de_DeleteAccountSettingCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteAccountSettingCommand");
    var de_DeleteAttributesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteAttributesCommand");
    var de_DeleteCapacityProviderCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteCapacityProviderCommand");
    var de_DeleteClusterCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteClusterCommand");
    var de_DeleteServiceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DeleteServiceResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteServiceCommand");
    var de_DeleteTaskDefinitionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DeleteTaskDefinitionsResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteTaskDefinitionsCommand");
    var de_DeleteTaskSetCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DeleteTaskSetResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteTaskSetCommand");
    var de_DeregisterContainerInstanceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DeregisterContainerInstanceResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeregisterContainerInstanceCommand");
    var de_DeregisterTaskDefinitionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DeregisterTaskDefinitionResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeregisterTaskDefinitionCommand");
    var de_DescribeCapacityProvidersCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeCapacityProvidersCommand");
    var de_DescribeClustersCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeClustersCommand");
    var de_DescribeContainerInstancesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DescribeContainerInstancesResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeContainerInstancesCommand");
    var de_DescribeServiceDeploymentsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DescribeServiceDeploymentsResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeServiceDeploymentsCommand");
    var de_DescribeServiceRevisionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DescribeServiceRevisionsResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeServiceRevisionsCommand");
    var de_DescribeServicesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DescribeServicesResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeServicesCommand");
    var de_DescribeTaskDefinitionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DescribeTaskDefinitionResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeTaskDefinitionCommand");
    var de_DescribeTasksCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DescribeTasksResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeTasksCommand");
    var de_DescribeTaskSetsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DescribeTaskSetsResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeTaskSetsCommand");
    var de_DiscoverPollEndpointCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DiscoverPollEndpointCommand");
    var de_ExecuteCommandCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ExecuteCommandCommand");
    var de_GetTaskProtectionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_GetTaskProtectionResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetTaskProtectionCommand");
    var de_ListAccountSettingsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListAccountSettingsCommand");
    var de_ListAttributesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListAttributesCommand");
    var de_ListClustersCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListClustersCommand");
    var de_ListContainerInstancesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListContainerInstancesCommand");
    var de_ListServiceDeploymentsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_ListServiceDeploymentsResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListServiceDeploymentsCommand");
    var de_ListServicesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListServicesCommand");
    var de_ListServicesByNamespaceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListServicesByNamespaceCommand");
    var de_ListTagsForResourceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListTagsForResourceCommand");
    var de_ListTaskDefinitionFamiliesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListTaskDefinitionFamiliesCommand");
    var de_ListTaskDefinitionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListTaskDefinitionsCommand");
    var de_ListTasksCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListTasksCommand");
    var de_PutAccountSettingCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_PutAccountSettingCommand");
    var de_PutAccountSettingDefaultCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_PutAccountSettingDefaultCommand");
    var de_PutAttributesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_PutAttributesCommand");
    var de_PutClusterCapacityProvidersCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_PutClusterCapacityProvidersCommand");
    var de_RegisterContainerInstanceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_RegisterContainerInstanceResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_RegisterContainerInstanceCommand");
    var de_RegisterTaskDefinitionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_RegisterTaskDefinitionResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_RegisterTaskDefinitionCommand");
    var de_RunTaskCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_RunTaskResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_RunTaskCommand");
    var de_StartTaskCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_StartTaskResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_StartTaskCommand");
    var de_StopServiceDeploymentCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_StopServiceDeploymentCommand");
    var de_StopTaskCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_StopTaskResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_StopTaskCommand");
    var de_SubmitAttachmentStateChangesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_SubmitAttachmentStateChangesCommand");
    var de_SubmitContainerStateChangeCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_SubmitContainerStateChangeCommand");
    var de_SubmitTaskStateChangeCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_SubmitTaskStateChangeCommand");
    var de_TagResourceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_TagResourceCommand");
    var de_UntagResourceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UntagResourceCommand");
    var de_UpdateCapacityProviderCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UpdateCapacityProviderCommand");
    var de_UpdateClusterCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UpdateClusterCommand");
    var de_UpdateClusterSettingsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UpdateClusterSettingsCommand");
    var de_UpdateContainerAgentCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_UpdateContainerAgentResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UpdateContainerAgentCommand");
    var de_UpdateContainerInstancesStateCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_UpdateContainerInstancesStateResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UpdateContainerInstancesStateCommand");
    var de_UpdateServiceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_UpdateServiceResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UpdateServiceCommand");
    var de_UpdateServicePrimaryTaskSetCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_UpdateServicePrimaryTaskSetResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UpdateServicePrimaryTaskSetCommand");
    var de_UpdateTaskProtectionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_UpdateTaskProtectionResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UpdateTaskProtectionCommand");
    var de_UpdateTaskSetCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_UpdateTaskSetResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UpdateTaskSetCommand");
    var de_CommandError3 = /* @__PURE__ */ __name2(async (output, context) => {
      const parsedOutput = {
        ...output,
        body: await (0, import_core22.parseJsonErrorBody)(output.body, context)
      };
      const errorCode = (0, import_core22.loadRestJsonErrorCode)(output, parsedOutput.body);
      switch (errorCode) {
        case "ClientException":
        case "com.amazonaws.ecs#ClientException":
          throw await de_ClientExceptionRes(parsedOutput, context);
        case "InvalidParameterException":
        case "com.amazonaws.ecs#InvalidParameterException":
          throw await de_InvalidParameterExceptionRes(parsedOutput, context);
        case "LimitExceededException":
        case "com.amazonaws.ecs#LimitExceededException":
          throw await de_LimitExceededExceptionRes(parsedOutput, context);
        case "ServerException":
        case "com.amazonaws.ecs#ServerException":
          throw await de_ServerExceptionRes(parsedOutput, context);
        case "UpdateInProgressException":
        case "com.amazonaws.ecs#UpdateInProgressException":
          throw await de_UpdateInProgressExceptionRes(parsedOutput, context);
        case "NamespaceNotFoundException":
        case "com.amazonaws.ecs#NamespaceNotFoundException":
          throw await de_NamespaceNotFoundExceptionRes(parsedOutput, context);
        case "AccessDeniedException":
        case "com.amazonaws.ecs#AccessDeniedException":
          throw await de_AccessDeniedExceptionRes2(parsedOutput, context);
        case "ClusterNotFoundException":
        case "com.amazonaws.ecs#ClusterNotFoundException":
          throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
        case "PlatformTaskDefinitionIncompatibilityException":
        case "com.amazonaws.ecs#PlatformTaskDefinitionIncompatibilityException":
          throw await de_PlatformTaskDefinitionIncompatibilityExceptionRes(parsedOutput, context);
        case "PlatformUnknownException":
        case "com.amazonaws.ecs#PlatformUnknownException":
          throw await de_PlatformUnknownExceptionRes(parsedOutput, context);
        case "UnsupportedFeatureException":
        case "com.amazonaws.ecs#UnsupportedFeatureException":
          throw await de_UnsupportedFeatureExceptionRes(parsedOutput, context);
        case "ServiceNotActiveException":
        case "com.amazonaws.ecs#ServiceNotActiveException":
          throw await de_ServiceNotActiveExceptionRes(parsedOutput, context);
        case "ServiceNotFoundException":
        case "com.amazonaws.ecs#ServiceNotFoundException":
          throw await de_ServiceNotFoundExceptionRes(parsedOutput, context);
        case "TargetNotFoundException":
        case "com.amazonaws.ecs#TargetNotFoundException":
          throw await de_TargetNotFoundExceptionRes(parsedOutput, context);
        case "ClusterContainsContainerInstancesException":
        case "com.amazonaws.ecs#ClusterContainsContainerInstancesException":
          throw await de_ClusterContainsContainerInstancesExceptionRes(parsedOutput, context);
        case "ClusterContainsServicesException":
        case "com.amazonaws.ecs#ClusterContainsServicesException":
          throw await de_ClusterContainsServicesExceptionRes(parsedOutput, context);
        case "ClusterContainsTasksException":
        case "com.amazonaws.ecs#ClusterContainsTasksException":
          throw await de_ClusterContainsTasksExceptionRes(parsedOutput, context);
        case "TaskSetNotFoundException":
        case "com.amazonaws.ecs#TaskSetNotFoundException":
          throw await de_TaskSetNotFoundExceptionRes(parsedOutput, context);
        case "TargetNotConnectedException":
        case "com.amazonaws.ecs#TargetNotConnectedException":
          throw await de_TargetNotConnectedExceptionRes(parsedOutput, context);
        case "ResourceNotFoundException":
        case "com.amazonaws.ecs#ResourceNotFoundException":
          throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
        case "AttributeLimitExceededException":
        case "com.amazonaws.ecs#AttributeLimitExceededException":
          throw await de_AttributeLimitExceededExceptionRes(parsedOutput, context);
        case "ResourceInUseException":
        case "com.amazonaws.ecs#ResourceInUseException":
          throw await de_ResourceInUseExceptionRes(parsedOutput, context);
        case "BlockedException":
        case "com.amazonaws.ecs#BlockedException":
          throw await de_BlockedExceptionRes(parsedOutput, context);
        case "ConflictException":
        case "com.amazonaws.ecs#ConflictException":
          throw await de_ConflictExceptionRes(parsedOutput, context);
        case "ServiceDeploymentNotFoundException":
        case "com.amazonaws.ecs#ServiceDeploymentNotFoundException":
          throw await de_ServiceDeploymentNotFoundExceptionRes(parsedOutput, context);
        case "MissingVersionException":
        case "com.amazonaws.ecs#MissingVersionException":
          throw await de_MissingVersionExceptionRes(parsedOutput, context);
        case "NoUpdateAvailableException":
        case "com.amazonaws.ecs#NoUpdateAvailableException":
          throw await de_NoUpdateAvailableExceptionRes(parsedOutput, context);
        default:
          const parsedBody = parsedOutput.body;
          return throwDefaultError3({
            output,
            parsedBody,
            errorCode
          });
      }
    }, "de_CommandError");
    var de_AccessDeniedExceptionRes2 = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new AccessDeniedException2({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_AccessDeniedExceptionRes");
    var de_AttributeLimitExceededExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new AttributeLimitExceededException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_AttributeLimitExceededExceptionRes");
    var de_BlockedExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new BlockedException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_BlockedExceptionRes");
    var de_ClientExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ClientException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ClientExceptionRes");
    var de_ClusterContainsContainerInstancesExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ClusterContainsContainerInstancesException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ClusterContainsContainerInstancesExceptionRes");
    var de_ClusterContainsServicesExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ClusterContainsServicesException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ClusterContainsServicesExceptionRes");
    var de_ClusterContainsTasksExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ClusterContainsTasksException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ClusterContainsTasksExceptionRes");
    var de_ClusterNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ClusterNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ClusterNotFoundExceptionRes");
    var de_ConflictExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ConflictException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ConflictExceptionRes");
    var de_InvalidParameterExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidParameterException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidParameterExceptionRes");
    var de_LimitExceededExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new LimitExceededException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_LimitExceededExceptionRes");
    var de_MissingVersionExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new MissingVersionException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_MissingVersionExceptionRes");
    var de_NamespaceNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new NamespaceNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_NamespaceNotFoundExceptionRes");
    var de_NoUpdateAvailableExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new NoUpdateAvailableException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_NoUpdateAvailableExceptionRes");
    var de_PlatformTaskDefinitionIncompatibilityExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new PlatformTaskDefinitionIncompatibilityException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_PlatformTaskDefinitionIncompatibilityExceptionRes");
    var de_PlatformUnknownExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new PlatformUnknownException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_PlatformUnknownExceptionRes");
    var de_ResourceInUseExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ResourceInUseException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ResourceInUseExceptionRes");
    var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ResourceNotFoundException2({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ResourceNotFoundExceptionRes");
    var de_ServerExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ServerException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ServerExceptionRes");
    var de_ServiceDeploymentNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ServiceDeploymentNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ServiceDeploymentNotFoundExceptionRes");
    var de_ServiceNotActiveExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ServiceNotActiveException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ServiceNotActiveExceptionRes");
    var de_ServiceNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ServiceNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ServiceNotFoundExceptionRes");
    var de_TargetNotConnectedExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new TargetNotConnectedException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_TargetNotConnectedExceptionRes");
    var de_TargetNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new TargetNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_TargetNotFoundExceptionRes");
    var de_TaskSetNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new TaskSetNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_TaskSetNotFoundExceptionRes");
    var de_UnsupportedFeatureExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new UnsupportedFeatureException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_UnsupportedFeatureExceptionRes");
    var de_UpdateInProgressExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new UpdateInProgressException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_UpdateInProgressExceptionRes");
    var se_CreatedAt = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        after: /* @__PURE__ */ __name2((_3) => _3.getTime() / 1e3, "after"),
        before: /* @__PURE__ */ __name2((_3) => _3.getTime() / 1e3, "before")
      });
    }, "se_CreatedAt");
    var se_CreateTaskSetRequest = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        capacityProviderStrategy: import_smithy_client28._json,
        clientToken: [],
        cluster: [],
        externalId: [],
        launchType: [],
        loadBalancers: import_smithy_client28._json,
        networkConfiguration: import_smithy_client28._json,
        platformVersion: [],
        scale: /* @__PURE__ */ __name2((_3) => se_Scale(_3, context), "scale"),
        service: [],
        serviceRegistries: import_smithy_client28._json,
        tags: import_smithy_client28._json,
        taskDefinition: []
      });
    }, "se_CreateTaskSetRequest");
    var se_ListServiceDeploymentsRequest = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        cluster: [],
        createdAt: /* @__PURE__ */ __name2((_3) => se_CreatedAt(_3, context), "createdAt"),
        maxResults: [],
        nextToken: [],
        service: [],
        status: import_smithy_client28._json
      });
    }, "se_ListServiceDeploymentsRequest");
    var se_RegisterContainerInstanceRequest = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        attributes: import_smithy_client28._json,
        cluster: [],
        containerInstanceArn: [],
        instanceIdentityDocument: [],
        instanceIdentityDocumentSignature: [],
        platformDevices: import_smithy_client28._json,
        tags: import_smithy_client28._json,
        totalResources: /* @__PURE__ */ __name2((_3) => se_Resources(_3, context), "totalResources"),
        versionInfo: import_smithy_client28._json
      });
    }, "se_RegisterContainerInstanceRequest");
    var se_Resource = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        doubleValue: import_smithy_client28.serializeFloat,
        integerValue: [],
        longValue: [],
        name: [],
        stringSetValue: import_smithy_client28._json,
        type: []
      });
    }, "se_Resource");
    var se_Resources = /* @__PURE__ */ __name2((input, context) => {
      return input.filter((e3) => e3 != null).map((entry) => {
        return se_Resource(entry, context);
      });
    }, "se_Resources");
    var se_RunTaskRequest = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        capacityProviderStrategy: import_smithy_client28._json,
        clientToken: [true, (_3) => _3 ?? (0, import_uuid2.v4)()],
        cluster: [],
        count: [],
        enableECSManagedTags: [],
        enableExecuteCommand: [],
        group: [],
        launchType: [],
        networkConfiguration: import_smithy_client28._json,
        overrides: import_smithy_client28._json,
        placementConstraints: import_smithy_client28._json,
        placementStrategy: import_smithy_client28._json,
        platformVersion: [],
        propagateTags: [],
        referenceId: [],
        startedBy: [],
        tags: import_smithy_client28._json,
        taskDefinition: [],
        volumeConfigurations: import_smithy_client28._json
      });
    }, "se_RunTaskRequest");
    var se_Scale = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        unit: [],
        value: import_smithy_client28.serializeFloat
      });
    }, "se_Scale");
    var se_SubmitTaskStateChangeRequest = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        attachments: import_smithy_client28._json,
        cluster: [],
        containers: import_smithy_client28._json,
        executionStoppedAt: /* @__PURE__ */ __name2((_3) => _3.getTime() / 1e3, "executionStoppedAt"),
        managedAgents: import_smithy_client28._json,
        pullStartedAt: /* @__PURE__ */ __name2((_3) => _3.getTime() / 1e3, "pullStartedAt"),
        pullStoppedAt: /* @__PURE__ */ __name2((_3) => _3.getTime() / 1e3, "pullStoppedAt"),
        reason: [],
        status: [],
        task: []
      });
    }, "se_SubmitTaskStateChangeRequest");
    var se_UpdateTaskSetRequest = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        cluster: [],
        scale: /* @__PURE__ */ __name2((_3) => se_Scale(_3, context), "scale"),
        service: [],
        taskSet: []
      });
    }, "se_UpdateTaskSetRequest");
    var de_Container = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        containerArn: import_smithy_client28.expectString,
        cpu: import_smithy_client28.expectString,
        exitCode: import_smithy_client28.expectInt32,
        gpuIds: import_smithy_client28._json,
        healthStatus: import_smithy_client28.expectString,
        image: import_smithy_client28.expectString,
        imageDigest: import_smithy_client28.expectString,
        lastStatus: import_smithy_client28.expectString,
        managedAgents: /* @__PURE__ */ __name2((_3) => de_ManagedAgents(_3, context), "managedAgents"),
        memory: import_smithy_client28.expectString,
        memoryReservation: import_smithy_client28.expectString,
        name: import_smithy_client28.expectString,
        networkBindings: import_smithy_client28._json,
        networkInterfaces: import_smithy_client28._json,
        reason: import_smithy_client28.expectString,
        runtimeId: import_smithy_client28.expectString,
        taskArn: import_smithy_client28.expectString
      });
    }, "de_Container");
    var de_ContainerInstance = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        agentConnected: import_smithy_client28.expectBoolean,
        agentUpdateStatus: import_smithy_client28.expectString,
        attachments: import_smithy_client28._json,
        attributes: import_smithy_client28._json,
        capacityProviderName: import_smithy_client28.expectString,
        containerInstanceArn: import_smithy_client28.expectString,
        ec2InstanceId: import_smithy_client28.expectString,
        healthStatus: /* @__PURE__ */ __name2((_3) => de_ContainerInstanceHealthStatus(_3, context), "healthStatus"),
        pendingTasksCount: import_smithy_client28.expectInt32,
        registeredAt: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "registeredAt"),
        registeredResources: /* @__PURE__ */ __name2((_3) => de_Resources(_3, context), "registeredResources"),
        remainingResources: /* @__PURE__ */ __name2((_3) => de_Resources(_3, context), "remainingResources"),
        runningTasksCount: import_smithy_client28.expectInt32,
        status: import_smithy_client28.expectString,
        statusReason: import_smithy_client28.expectString,
        tags: import_smithy_client28._json,
        version: import_smithy_client28.expectLong,
        versionInfo: import_smithy_client28._json
      });
    }, "de_ContainerInstance");
    var de_ContainerInstanceHealthStatus = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        details: /* @__PURE__ */ __name2((_3) => de_InstanceHealthCheckResultList(_3, context), "details"),
        overallStatus: import_smithy_client28.expectString
      });
    }, "de_ContainerInstanceHealthStatus");
    var de_ContainerInstances = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ContainerInstance(entry, context);
      });
      return retVal;
    }, "de_ContainerInstances");
    var de_Containers = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Container(entry, context);
      });
      return retVal;
    }, "de_Containers");
    var de_CreateServiceResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        service: /* @__PURE__ */ __name2((_3) => de_Service(_3, context), "service")
      });
    }, "de_CreateServiceResponse");
    var de_CreateTaskSetResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        taskSet: /* @__PURE__ */ __name2((_3) => de_TaskSet(_3, context), "taskSet")
      });
    }, "de_CreateTaskSetResponse");
    var de_DeleteServiceResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        service: /* @__PURE__ */ __name2((_3) => de_Service(_3, context), "service")
      });
    }, "de_DeleteServiceResponse");
    var de_DeleteTaskDefinitionsResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        failures: import_smithy_client28._json,
        taskDefinitions: /* @__PURE__ */ __name2((_3) => de_TaskDefinitionList(_3, context), "taskDefinitions")
      });
    }, "de_DeleteTaskDefinitionsResponse");
    var de_DeleteTaskSetResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        taskSet: /* @__PURE__ */ __name2((_3) => de_TaskSet(_3, context), "taskSet")
      });
    }, "de_DeleteTaskSetResponse");
    var de_Deployment = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        capacityProviderStrategy: import_smithy_client28._json,
        createdAt: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "createdAt"),
        desiredCount: import_smithy_client28.expectInt32,
        failedTasks: import_smithy_client28.expectInt32,
        fargateEphemeralStorage: import_smithy_client28._json,
        id: import_smithy_client28.expectString,
        launchType: import_smithy_client28.expectString,
        networkConfiguration: import_smithy_client28._json,
        pendingCount: import_smithy_client28.expectInt32,
        platformFamily: import_smithy_client28.expectString,
        platformVersion: import_smithy_client28.expectString,
        rolloutState: import_smithy_client28.expectString,
        rolloutStateReason: import_smithy_client28.expectString,
        runningCount: import_smithy_client28.expectInt32,
        serviceConnectConfiguration: import_smithy_client28._json,
        serviceConnectResources: import_smithy_client28._json,
        status: import_smithy_client28.expectString,
        taskDefinition: import_smithy_client28.expectString,
        updatedAt: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "updatedAt"),
        volumeConfigurations: import_smithy_client28._json,
        vpcLatticeConfigurations: import_smithy_client28._json
      });
    }, "de_Deployment");
    var de_Deployments = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Deployment(entry, context);
      });
      return retVal;
    }, "de_Deployments");
    var de_DeregisterContainerInstanceResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        containerInstance: /* @__PURE__ */ __name2((_3) => de_ContainerInstance(_3, context), "containerInstance")
      });
    }, "de_DeregisterContainerInstanceResponse");
    var de_DeregisterTaskDefinitionResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        taskDefinition: /* @__PURE__ */ __name2((_3) => de_TaskDefinition(_3, context), "taskDefinition")
      });
    }, "de_DeregisterTaskDefinitionResponse");
    var de_DescribeContainerInstancesResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        containerInstances: /* @__PURE__ */ __name2((_3) => de_ContainerInstances(_3, context), "containerInstances"),
        failures: import_smithy_client28._json
      });
    }, "de_DescribeContainerInstancesResponse");
    var de_DescribeServiceDeploymentsResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        failures: import_smithy_client28._json,
        serviceDeployments: /* @__PURE__ */ __name2((_3) => de_ServiceDeployments(_3, context), "serviceDeployments")
      });
    }, "de_DescribeServiceDeploymentsResponse");
    var de_DescribeServiceRevisionsResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        failures: import_smithy_client28._json,
        serviceRevisions: /* @__PURE__ */ __name2((_3) => de_ServiceRevisions(_3, context), "serviceRevisions")
      });
    }, "de_DescribeServiceRevisionsResponse");
    var de_DescribeServicesResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        failures: import_smithy_client28._json,
        services: /* @__PURE__ */ __name2((_3) => de_Services(_3, context), "services")
      });
    }, "de_DescribeServicesResponse");
    var de_DescribeTaskDefinitionResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        tags: import_smithy_client28._json,
        taskDefinition: /* @__PURE__ */ __name2((_3) => de_TaskDefinition(_3, context), "taskDefinition")
      });
    }, "de_DescribeTaskDefinitionResponse");
    var de_DescribeTaskSetsResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        failures: import_smithy_client28._json,
        taskSets: /* @__PURE__ */ __name2((_3) => de_TaskSets(_3, context), "taskSets")
      });
    }, "de_DescribeTaskSetsResponse");
    var de_DescribeTasksResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        failures: import_smithy_client28._json,
        tasks: /* @__PURE__ */ __name2((_3) => de_Tasks(_3, context), "tasks")
      });
    }, "de_DescribeTasksResponse");
    var de_GetTaskProtectionResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        failures: import_smithy_client28._json,
        protectedTasks: /* @__PURE__ */ __name2((_3) => de_ProtectedTasks(_3, context), "protectedTasks")
      });
    }, "de_GetTaskProtectionResponse");
    var de_InstanceHealthCheckResult = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        lastStatusChange: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "lastStatusChange"),
        lastUpdated: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "lastUpdated"),
        status: import_smithy_client28.expectString,
        type: import_smithy_client28.expectString
      });
    }, "de_InstanceHealthCheckResult");
    var de_InstanceHealthCheckResultList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_InstanceHealthCheckResult(entry, context);
      });
      return retVal;
    }, "de_InstanceHealthCheckResultList");
    var de_ListServiceDeploymentsResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        nextToken: import_smithy_client28.expectString,
        serviceDeployments: /* @__PURE__ */ __name2((_3) => de_ServiceDeploymentsBrief(_3, context), "serviceDeployments")
      });
    }, "de_ListServiceDeploymentsResponse");
    var de_ManagedAgent = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        lastStartedAt: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "lastStartedAt"),
        lastStatus: import_smithy_client28.expectString,
        name: import_smithy_client28.expectString,
        reason: import_smithy_client28.expectString
      });
    }, "de_ManagedAgent");
    var de_ManagedAgents = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ManagedAgent(entry, context);
      });
      return retVal;
    }, "de_ManagedAgents");
    var de_ProtectedTask = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        expirationDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "expirationDate"),
        protectionEnabled: import_smithy_client28.expectBoolean,
        taskArn: import_smithy_client28.expectString
      });
    }, "de_ProtectedTask");
    var de_ProtectedTasks = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ProtectedTask(entry, context);
      });
      return retVal;
    }, "de_ProtectedTasks");
    var de_RegisterContainerInstanceResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        containerInstance: /* @__PURE__ */ __name2((_3) => de_ContainerInstance(_3, context), "containerInstance")
      });
    }, "de_RegisterContainerInstanceResponse");
    var de_RegisterTaskDefinitionResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        tags: import_smithy_client28._json,
        taskDefinition: /* @__PURE__ */ __name2((_3) => de_TaskDefinition(_3, context), "taskDefinition")
      });
    }, "de_RegisterTaskDefinitionResponse");
    var de_Resource = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        doubleValue: import_smithy_client28.limitedParseDouble,
        integerValue: import_smithy_client28.expectInt32,
        longValue: import_smithy_client28.expectLong,
        name: import_smithy_client28.expectString,
        stringSetValue: import_smithy_client28._json,
        type: import_smithy_client28.expectString
      });
    }, "de_Resource");
    var de_Resources = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Resource(entry, context);
      });
      return retVal;
    }, "de_Resources");
    var de_Rollback = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        reason: import_smithy_client28.expectString,
        serviceRevisionArn: import_smithy_client28.expectString,
        startedAt: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "startedAt")
      });
    }, "de_Rollback");
    var de_RunTaskResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        failures: import_smithy_client28._json,
        tasks: /* @__PURE__ */ __name2((_3) => de_Tasks(_3, context), "tasks")
      });
    }, "de_RunTaskResponse");
    var de_Scale = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        unit: import_smithy_client28.expectString,
        value: import_smithy_client28.limitedParseDouble
      });
    }, "de_Scale");
    var de_Service = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        availabilityZoneRebalancing: import_smithy_client28.expectString,
        capacityProviderStrategy: import_smithy_client28._json,
        clusterArn: import_smithy_client28.expectString,
        createdAt: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "createdAt"),
        createdBy: import_smithy_client28.expectString,
        deploymentConfiguration: import_smithy_client28._json,
        deploymentController: import_smithy_client28._json,
        deployments: /* @__PURE__ */ __name2((_3) => de_Deployments(_3, context), "deployments"),
        desiredCount: import_smithy_client28.expectInt32,
        enableECSManagedTags: import_smithy_client28.expectBoolean,
        enableExecuteCommand: import_smithy_client28.expectBoolean,
        events: /* @__PURE__ */ __name2((_3) => de_ServiceEvents(_3, context), "events"),
        healthCheckGracePeriodSeconds: import_smithy_client28.expectInt32,
        launchType: import_smithy_client28.expectString,
        loadBalancers: import_smithy_client28._json,
        networkConfiguration: import_smithy_client28._json,
        pendingCount: import_smithy_client28.expectInt32,
        placementConstraints: import_smithy_client28._json,
        placementStrategy: import_smithy_client28._json,
        platformFamily: import_smithy_client28.expectString,
        platformVersion: import_smithy_client28.expectString,
        propagateTags: import_smithy_client28.expectString,
        roleArn: import_smithy_client28.expectString,
        runningCount: import_smithy_client28.expectInt32,
        schedulingStrategy: import_smithy_client28.expectString,
        serviceArn: import_smithy_client28.expectString,
        serviceName: import_smithy_client28.expectString,
        serviceRegistries: import_smithy_client28._json,
        status: import_smithy_client28.expectString,
        tags: import_smithy_client28._json,
        taskDefinition: import_smithy_client28.expectString,
        taskSets: /* @__PURE__ */ __name2((_3) => de_TaskSets(_3, context), "taskSets")
      });
    }, "de_Service");
    var de_ServiceDeployment = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        alarms: import_smithy_client28._json,
        clusterArn: import_smithy_client28.expectString,
        createdAt: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "createdAt"),
        deploymentCircuitBreaker: import_smithy_client28._json,
        deploymentConfiguration: import_smithy_client28._json,
        finishedAt: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "finishedAt"),
        lifecycleStage: import_smithy_client28.expectString,
        rollback: /* @__PURE__ */ __name2((_3) => de_Rollback(_3, context), "rollback"),
        serviceArn: import_smithy_client28.expectString,
        serviceDeploymentArn: import_smithy_client28.expectString,
        sourceServiceRevisions: import_smithy_client28._json,
        startedAt: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "startedAt"),
        status: import_smithy_client28.expectString,
        statusReason: import_smithy_client28.expectString,
        stoppedAt: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "stoppedAt"),
        targetServiceRevision: import_smithy_client28._json,
        updatedAt: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "updatedAt")
      });
    }, "de_ServiceDeployment");
    var de_ServiceDeploymentBrief = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        clusterArn: import_smithy_client28.expectString,
        createdAt: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "createdAt"),
        finishedAt: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "finishedAt"),
        serviceArn: import_smithy_client28.expectString,
        serviceDeploymentArn: import_smithy_client28.expectString,
        startedAt: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "startedAt"),
        status: import_smithy_client28.expectString,
        statusReason: import_smithy_client28.expectString,
        targetServiceRevisionArn: import_smithy_client28.expectString
      });
    }, "de_ServiceDeploymentBrief");
    var de_ServiceDeployments = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ServiceDeployment(entry, context);
      });
      return retVal;
    }, "de_ServiceDeployments");
    var de_ServiceDeploymentsBrief = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ServiceDeploymentBrief(entry, context);
      });
      return retVal;
    }, "de_ServiceDeploymentsBrief");
    var de_ServiceEvent = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        createdAt: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "createdAt"),
        id: import_smithy_client28.expectString,
        message: import_smithy_client28.expectString
      });
    }, "de_ServiceEvent");
    var de_ServiceEvents = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ServiceEvent(entry, context);
      });
      return retVal;
    }, "de_ServiceEvents");
    var de_ServiceRevision = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        capacityProviderStrategy: import_smithy_client28._json,
        clusterArn: import_smithy_client28.expectString,
        containerImages: import_smithy_client28._json,
        createdAt: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "createdAt"),
        fargateEphemeralStorage: import_smithy_client28._json,
        guardDutyEnabled: import_smithy_client28.expectBoolean,
        launchType: import_smithy_client28.expectString,
        loadBalancers: import_smithy_client28._json,
        networkConfiguration: import_smithy_client28._json,
        platformFamily: import_smithy_client28.expectString,
        platformVersion: import_smithy_client28.expectString,
        resolvedConfiguration: import_smithy_client28._json,
        serviceArn: import_smithy_client28.expectString,
        serviceConnectConfiguration: import_smithy_client28._json,
        serviceRegistries: import_smithy_client28._json,
        serviceRevisionArn: import_smithy_client28.expectString,
        taskDefinition: import_smithy_client28.expectString,
        volumeConfigurations: import_smithy_client28._json,
        vpcLatticeConfigurations: import_smithy_client28._json
      });
    }, "de_ServiceRevision");
    var de_ServiceRevisions = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ServiceRevision(entry, context);
      });
      return retVal;
    }, "de_ServiceRevisions");
    var de_Services = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Service(entry, context);
      });
      return retVal;
    }, "de_Services");
    var de_StartTaskResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        failures: import_smithy_client28._json,
        tasks: /* @__PURE__ */ __name2((_3) => de_Tasks(_3, context), "tasks")
      });
    }, "de_StartTaskResponse");
    var de_StopTaskResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        task: /* @__PURE__ */ __name2((_3) => de_Task(_3, context), "task")
      });
    }, "de_StopTaskResponse");
    var de_Task = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        attachments: import_smithy_client28._json,
        attributes: import_smithy_client28._json,
        availabilityZone: import_smithy_client28.expectString,
        capacityProviderName: import_smithy_client28.expectString,
        clusterArn: import_smithy_client28.expectString,
        connectivity: import_smithy_client28.expectString,
        connectivityAt: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "connectivityAt"),
        containerInstanceArn: import_smithy_client28.expectString,
        containers: /* @__PURE__ */ __name2((_3) => de_Containers(_3, context), "containers"),
        cpu: import_smithy_client28.expectString,
        createdAt: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "createdAt"),
        desiredStatus: import_smithy_client28.expectString,
        enableExecuteCommand: import_smithy_client28.expectBoolean,
        ephemeralStorage: import_smithy_client28._json,
        executionStoppedAt: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "executionStoppedAt"),
        fargateEphemeralStorage: import_smithy_client28._json,
        group: import_smithy_client28.expectString,
        healthStatus: import_smithy_client28.expectString,
        inferenceAccelerators: import_smithy_client28._json,
        lastStatus: import_smithy_client28.expectString,
        launchType: import_smithy_client28.expectString,
        memory: import_smithy_client28.expectString,
        overrides: import_smithy_client28._json,
        platformFamily: import_smithy_client28.expectString,
        platformVersion: import_smithy_client28.expectString,
        pullStartedAt: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "pullStartedAt"),
        pullStoppedAt: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "pullStoppedAt"),
        startedAt: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "startedAt"),
        startedBy: import_smithy_client28.expectString,
        stopCode: import_smithy_client28.expectString,
        stoppedAt: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "stoppedAt"),
        stoppedReason: import_smithy_client28.expectString,
        stoppingAt: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "stoppingAt"),
        tags: import_smithy_client28._json,
        taskArn: import_smithy_client28.expectString,
        taskDefinitionArn: import_smithy_client28.expectString,
        version: import_smithy_client28.expectLong
      });
    }, "de_Task");
    var de_TaskDefinition = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        compatibilities: import_smithy_client28._json,
        containerDefinitions: import_smithy_client28._json,
        cpu: import_smithy_client28.expectString,
        deregisteredAt: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "deregisteredAt"),
        enableFaultInjection: import_smithy_client28.expectBoolean,
        ephemeralStorage: import_smithy_client28._json,
        executionRoleArn: import_smithy_client28.expectString,
        family: import_smithy_client28.expectString,
        inferenceAccelerators: import_smithy_client28._json,
        ipcMode: import_smithy_client28.expectString,
        memory: import_smithy_client28.expectString,
        networkMode: import_smithy_client28.expectString,
        pidMode: import_smithy_client28.expectString,
        placementConstraints: import_smithy_client28._json,
        proxyConfiguration: import_smithy_client28._json,
        registeredAt: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "registeredAt"),
        registeredBy: import_smithy_client28.expectString,
        requiresAttributes: import_smithy_client28._json,
        requiresCompatibilities: import_smithy_client28._json,
        revision: import_smithy_client28.expectInt32,
        runtimePlatform: import_smithy_client28._json,
        status: import_smithy_client28.expectString,
        taskDefinitionArn: import_smithy_client28.expectString,
        taskRoleArn: import_smithy_client28.expectString,
        volumes: import_smithy_client28._json
      });
    }, "de_TaskDefinition");
    var de_TaskDefinitionList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TaskDefinition(entry, context);
      });
      return retVal;
    }, "de_TaskDefinitionList");
    var de_Tasks = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Task(entry, context);
      });
      return retVal;
    }, "de_Tasks");
    var de_TaskSet = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        capacityProviderStrategy: import_smithy_client28._json,
        clusterArn: import_smithy_client28.expectString,
        computedDesiredCount: import_smithy_client28.expectInt32,
        createdAt: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "createdAt"),
        externalId: import_smithy_client28.expectString,
        fargateEphemeralStorage: import_smithy_client28._json,
        id: import_smithy_client28.expectString,
        launchType: import_smithy_client28.expectString,
        loadBalancers: import_smithy_client28._json,
        networkConfiguration: import_smithy_client28._json,
        pendingCount: import_smithy_client28.expectInt32,
        platformFamily: import_smithy_client28.expectString,
        platformVersion: import_smithy_client28.expectString,
        runningCount: import_smithy_client28.expectInt32,
        scale: /* @__PURE__ */ __name2((_3) => de_Scale(_3, context), "scale"),
        serviceArn: import_smithy_client28.expectString,
        serviceRegistries: import_smithy_client28._json,
        stabilityStatus: import_smithy_client28.expectString,
        stabilityStatusAt: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "stabilityStatusAt"),
        startedBy: import_smithy_client28.expectString,
        status: import_smithy_client28.expectString,
        tags: import_smithy_client28._json,
        taskDefinition: import_smithy_client28.expectString,
        taskSetArn: import_smithy_client28.expectString,
        updatedAt: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "updatedAt")
      });
    }, "de_TaskSet");
    var de_TaskSets = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TaskSet(entry, context);
      });
      return retVal;
    }, "de_TaskSets");
    var de_UpdateContainerAgentResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        containerInstance: /* @__PURE__ */ __name2((_3) => de_ContainerInstance(_3, context), "containerInstance")
      });
    }, "de_UpdateContainerAgentResponse");
    var de_UpdateContainerInstancesStateResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        containerInstances: /* @__PURE__ */ __name2((_3) => de_ContainerInstances(_3, context), "containerInstances"),
        failures: import_smithy_client28._json
      });
    }, "de_UpdateContainerInstancesStateResponse");
    var de_UpdateServicePrimaryTaskSetResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        taskSet: /* @__PURE__ */ __name2((_3) => de_TaskSet(_3, context), "taskSet")
      });
    }, "de_UpdateServicePrimaryTaskSetResponse");
    var de_UpdateServiceResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        service: /* @__PURE__ */ __name2((_3) => de_Service(_3, context), "service")
      });
    }, "de_UpdateServiceResponse");
    var de_UpdateTaskProtectionResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        failures: import_smithy_client28._json,
        protectedTasks: /* @__PURE__ */ __name2((_3) => de_ProtectedTasks(_3, context), "protectedTasks")
      });
    }, "de_UpdateTaskProtectionResponse");
    var de_UpdateTaskSetResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        taskSet: /* @__PURE__ */ __name2((_3) => de_TaskSet(_3, context), "taskSet")
      });
    }, "de_UpdateTaskSetResponse");
    var deserializeMetadata3 = /* @__PURE__ */ __name2((output) => ({
      httpStatusCode: output.statusCode,
      requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
      extendedRequestId: output.headers["x-amz-id-2"],
      cfId: output.headers["x-amz-cf-id"]
    }), "deserializeMetadata");
    var throwDefaultError3 = (0, import_smithy_client28.withBaseException)(ECSServiceException);
    var buildHttpRpcRequest2 = /* @__PURE__ */ __name2(async (context, headers, path38, resolvedHostname, body) => {
      const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
      const contents = {
        protocol,
        hostname,
        port,
        method: "POST",
        path: basePath.endsWith("/") ? basePath.slice(0, -1) + path38 : basePath + path38,
        headers
      };
      if (resolvedHostname !== void 0) {
        contents.hostname = resolvedHostname;
      }
      if (body !== void 0) {
        contents.body = body;
      }
      return new import_protocol_http16.HttpRequest(contents);
    }, "buildHttpRpcRequest");
    function sharedHeaders(operation) {
      return {
        "content-type": "application/x-amz-json-1.1",
        "x-amz-target": `AmazonEC2ContainerServiceV20141113.${operation}`
      };
    }
    __name(sharedHeaders, "sharedHeaders");
    __name2(sharedHeaders, "sharedHeaders");
    var CreateCapacityProviderCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "CreateCapacityProvider", {}).n("ECSClient", "CreateCapacityProviderCommand").f(void 0, void 0).ser(se_CreateCapacityProviderCommand).de(de_CreateCapacityProviderCommand).build() {
      static {
        __name(this, "CreateCapacityProviderCommand");
      }
      static {
        __name2(this, "CreateCapacityProviderCommand");
      }
    };
    var CreateClusterCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "CreateCluster", {}).n("ECSClient", "CreateClusterCommand").f(void 0, void 0).ser(se_CreateClusterCommand).de(de_CreateClusterCommand).build() {
      static {
        __name(this, "CreateClusterCommand");
      }
      static {
        __name2(this, "CreateClusterCommand");
      }
    };
    var CreateServiceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "CreateService", {}).n("ECSClient", "CreateServiceCommand").f(void 0, void 0).ser(se_CreateServiceCommand).de(de_CreateServiceCommand).build() {
      static {
        __name(this, "CreateServiceCommand");
      }
      static {
        __name2(this, "CreateServiceCommand");
      }
    };
    var CreateTaskSetCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "CreateTaskSet", {}).n("ECSClient", "CreateTaskSetCommand").f(void 0, void 0).ser(se_CreateTaskSetCommand).de(de_CreateTaskSetCommand).build() {
      static {
        __name(this, "CreateTaskSetCommand");
      }
      static {
        __name2(this, "CreateTaskSetCommand");
      }
    };
    var DeleteAccountSettingCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "DeleteAccountSetting", {}).n("ECSClient", "DeleteAccountSettingCommand").f(void 0, void 0).ser(se_DeleteAccountSettingCommand).de(de_DeleteAccountSettingCommand).build() {
      static {
        __name(this, "DeleteAccountSettingCommand");
      }
      static {
        __name2(this, "DeleteAccountSettingCommand");
      }
    };
    var DeleteAttributesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "DeleteAttributes", {}).n("ECSClient", "DeleteAttributesCommand").f(void 0, void 0).ser(se_DeleteAttributesCommand).de(de_DeleteAttributesCommand).build() {
      static {
        __name(this, "DeleteAttributesCommand");
      }
      static {
        __name2(this, "DeleteAttributesCommand");
      }
    };
    var DeleteCapacityProviderCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "DeleteCapacityProvider", {}).n("ECSClient", "DeleteCapacityProviderCommand").f(void 0, void 0).ser(se_DeleteCapacityProviderCommand).de(de_DeleteCapacityProviderCommand).build() {
      static {
        __name(this, "DeleteCapacityProviderCommand");
      }
      static {
        __name2(this, "DeleteCapacityProviderCommand");
      }
    };
    var DeleteClusterCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "DeleteCluster", {}).n("ECSClient", "DeleteClusterCommand").f(void 0, void 0).ser(se_DeleteClusterCommand).de(de_DeleteClusterCommand).build() {
      static {
        __name(this, "DeleteClusterCommand");
      }
      static {
        __name2(this, "DeleteClusterCommand");
      }
    };
    var DeleteServiceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "DeleteService", {}).n("ECSClient", "DeleteServiceCommand").f(void 0, void 0).ser(se_DeleteServiceCommand).de(de_DeleteServiceCommand).build() {
      static {
        __name(this, "DeleteServiceCommand");
      }
      static {
        __name2(this, "DeleteServiceCommand");
      }
    };
    var DeleteTaskDefinitionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "DeleteTaskDefinitions", {}).n("ECSClient", "DeleteTaskDefinitionsCommand").f(void 0, void 0).ser(se_DeleteTaskDefinitionsCommand).de(de_DeleteTaskDefinitionsCommand).build() {
      static {
        __name(this, "DeleteTaskDefinitionsCommand");
      }
      static {
        __name2(this, "DeleteTaskDefinitionsCommand");
      }
    };
    var DeleteTaskSetCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "DeleteTaskSet", {}).n("ECSClient", "DeleteTaskSetCommand").f(void 0, void 0).ser(se_DeleteTaskSetCommand).de(de_DeleteTaskSetCommand).build() {
      static {
        __name(this, "DeleteTaskSetCommand");
      }
      static {
        __name2(this, "DeleteTaskSetCommand");
      }
    };
    var DeregisterContainerInstanceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "DeregisterContainerInstance", {}).n("ECSClient", "DeregisterContainerInstanceCommand").f(void 0, void 0).ser(se_DeregisterContainerInstanceCommand).de(de_DeregisterContainerInstanceCommand).build() {
      static {
        __name(this, "DeregisterContainerInstanceCommand");
      }
      static {
        __name2(this, "DeregisterContainerInstanceCommand");
      }
    };
    var DeregisterTaskDefinitionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "DeregisterTaskDefinition", {}).n("ECSClient", "DeregisterTaskDefinitionCommand").f(void 0, void 0).ser(se_DeregisterTaskDefinitionCommand).de(de_DeregisterTaskDefinitionCommand).build() {
      static {
        __name(this, "DeregisterTaskDefinitionCommand");
      }
      static {
        __name2(this, "DeregisterTaskDefinitionCommand");
      }
    };
    var DescribeCapacityProvidersCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "DescribeCapacityProviders", {}).n("ECSClient", "DescribeCapacityProvidersCommand").f(void 0, void 0).ser(se_DescribeCapacityProvidersCommand).de(de_DescribeCapacityProvidersCommand).build() {
      static {
        __name(this, "DescribeCapacityProvidersCommand");
      }
      static {
        __name2(this, "DescribeCapacityProvidersCommand");
      }
    };
    var DescribeClustersCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "DescribeClusters", {}).n("ECSClient", "DescribeClustersCommand").f(void 0, void 0).ser(se_DescribeClustersCommand).de(de_DescribeClustersCommand).build() {
      static {
        __name(this, "DescribeClustersCommand");
      }
      static {
        __name2(this, "DescribeClustersCommand");
      }
    };
    var DescribeContainerInstancesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "DescribeContainerInstances", {}).n("ECSClient", "DescribeContainerInstancesCommand").f(void 0, void 0).ser(se_DescribeContainerInstancesCommand).de(de_DescribeContainerInstancesCommand).build() {
      static {
        __name(this, "DescribeContainerInstancesCommand");
      }
      static {
        __name2(this, "DescribeContainerInstancesCommand");
      }
    };
    var DescribeServiceDeploymentsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "DescribeServiceDeployments", {}).n("ECSClient", "DescribeServiceDeploymentsCommand").f(void 0, void 0).ser(se_DescribeServiceDeploymentsCommand).de(de_DescribeServiceDeploymentsCommand).build() {
      static {
        __name(this, "DescribeServiceDeploymentsCommand");
      }
      static {
        __name2(this, "DescribeServiceDeploymentsCommand");
      }
    };
    var DescribeServiceRevisionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "DescribeServiceRevisions", {}).n("ECSClient", "DescribeServiceRevisionsCommand").f(void 0, void 0).ser(se_DescribeServiceRevisionsCommand).de(de_DescribeServiceRevisionsCommand).build() {
      static {
        __name(this, "DescribeServiceRevisionsCommand");
      }
      static {
        __name2(this, "DescribeServiceRevisionsCommand");
      }
    };
    var DescribeServicesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "DescribeServices", {}).n("ECSClient", "DescribeServicesCommand").f(void 0, void 0).ser(se_DescribeServicesCommand).de(de_DescribeServicesCommand).build() {
      static {
        __name(this, "DescribeServicesCommand");
      }
      static {
        __name2(this, "DescribeServicesCommand");
      }
    };
    var DescribeTaskDefinitionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "DescribeTaskDefinition", {}).n("ECSClient", "DescribeTaskDefinitionCommand").f(void 0, void 0).ser(se_DescribeTaskDefinitionCommand).de(de_DescribeTaskDefinitionCommand).build() {
      static {
        __name(this, "DescribeTaskDefinitionCommand");
      }
      static {
        __name2(this, "DescribeTaskDefinitionCommand");
      }
    };
    var DescribeTasksCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "DescribeTasks", {}).n("ECSClient", "DescribeTasksCommand").f(void 0, void 0).ser(se_DescribeTasksCommand).de(de_DescribeTasksCommand).build() {
      static {
        __name(this, "DescribeTasksCommand");
      }
      static {
        __name2(this, "DescribeTasksCommand");
      }
    };
    var DescribeTaskSetsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "DescribeTaskSets", {}).n("ECSClient", "DescribeTaskSetsCommand").f(void 0, void 0).ser(se_DescribeTaskSetsCommand).de(de_DescribeTaskSetsCommand).build() {
      static {
        __name(this, "DescribeTaskSetsCommand");
      }
      static {
        __name2(this, "DescribeTaskSetsCommand");
      }
    };
    var DiscoverPollEndpointCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "DiscoverPollEndpoint", {}).n("ECSClient", "DiscoverPollEndpointCommand").f(void 0, void 0).ser(se_DiscoverPollEndpointCommand).de(de_DiscoverPollEndpointCommand).build() {
      static {
        __name(this, "DiscoverPollEndpointCommand");
      }
      static {
        __name2(this, "DiscoverPollEndpointCommand");
      }
    };
    var ExecuteCommandCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "ExecuteCommand", {}).n("ECSClient", "ExecuteCommandCommand").f(void 0, ExecuteCommandResponseFilterSensitiveLog).ser(se_ExecuteCommandCommand).de(de_ExecuteCommandCommand).build() {
      static {
        __name(this, "ExecuteCommandCommand");
      }
      static {
        __name2(this, "ExecuteCommandCommand");
      }
    };
    var GetTaskProtectionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "GetTaskProtection", {}).n("ECSClient", "GetTaskProtectionCommand").f(void 0, void 0).ser(se_GetTaskProtectionCommand).de(de_GetTaskProtectionCommand).build() {
      static {
        __name(this, "GetTaskProtectionCommand");
      }
      static {
        __name2(this, "GetTaskProtectionCommand");
      }
    };
    var ListAccountSettingsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "ListAccountSettings", {}).n("ECSClient", "ListAccountSettingsCommand").f(void 0, void 0).ser(se_ListAccountSettingsCommand).de(de_ListAccountSettingsCommand).build() {
      static {
        __name(this, "ListAccountSettingsCommand");
      }
      static {
        __name2(this, "ListAccountSettingsCommand");
      }
    };
    var ListAttributesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "ListAttributes", {}).n("ECSClient", "ListAttributesCommand").f(void 0, void 0).ser(se_ListAttributesCommand).de(de_ListAttributesCommand).build() {
      static {
        __name(this, "ListAttributesCommand");
      }
      static {
        __name2(this, "ListAttributesCommand");
      }
    };
    var ListClustersCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "ListClusters", {}).n("ECSClient", "ListClustersCommand").f(void 0, void 0).ser(se_ListClustersCommand).de(de_ListClustersCommand).build() {
      static {
        __name(this, "ListClustersCommand");
      }
      static {
        __name2(this, "ListClustersCommand");
      }
    };
    var ListContainerInstancesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "ListContainerInstances", {}).n("ECSClient", "ListContainerInstancesCommand").f(void 0, void 0).ser(se_ListContainerInstancesCommand).de(de_ListContainerInstancesCommand).build() {
      static {
        __name(this, "ListContainerInstancesCommand");
      }
      static {
        __name2(this, "ListContainerInstancesCommand");
      }
    };
    var ListServiceDeploymentsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "ListServiceDeployments", {}).n("ECSClient", "ListServiceDeploymentsCommand").f(void 0, void 0).ser(se_ListServiceDeploymentsCommand).de(de_ListServiceDeploymentsCommand).build() {
      static {
        __name(this, "ListServiceDeploymentsCommand");
      }
      static {
        __name2(this, "ListServiceDeploymentsCommand");
      }
    };
    var ListServicesByNamespaceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "ListServicesByNamespace", {}).n("ECSClient", "ListServicesByNamespaceCommand").f(void 0, void 0).ser(se_ListServicesByNamespaceCommand).de(de_ListServicesByNamespaceCommand).build() {
      static {
        __name(this, "ListServicesByNamespaceCommand");
      }
      static {
        __name2(this, "ListServicesByNamespaceCommand");
      }
    };
    var ListServicesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "ListServices", {}).n("ECSClient", "ListServicesCommand").f(void 0, void 0).ser(se_ListServicesCommand).de(de_ListServicesCommand).build() {
      static {
        __name(this, "ListServicesCommand");
      }
      static {
        __name2(this, "ListServicesCommand");
      }
    };
    var ListTagsForResourceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "ListTagsForResource", {}).n("ECSClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
      static {
        __name(this, "ListTagsForResourceCommand");
      }
      static {
        __name2(this, "ListTagsForResourceCommand");
      }
    };
    var ListTaskDefinitionFamiliesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "ListTaskDefinitionFamilies", {}).n("ECSClient", "ListTaskDefinitionFamiliesCommand").f(void 0, void 0).ser(se_ListTaskDefinitionFamiliesCommand).de(de_ListTaskDefinitionFamiliesCommand).build() {
      static {
        __name(this, "ListTaskDefinitionFamiliesCommand");
      }
      static {
        __name2(this, "ListTaskDefinitionFamiliesCommand");
      }
    };
    var ListTaskDefinitionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "ListTaskDefinitions", {}).n("ECSClient", "ListTaskDefinitionsCommand").f(void 0, void 0).ser(se_ListTaskDefinitionsCommand).de(de_ListTaskDefinitionsCommand).build() {
      static {
        __name(this, "ListTaskDefinitionsCommand");
      }
      static {
        __name2(this, "ListTaskDefinitionsCommand");
      }
    };
    var ListTasksCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "ListTasks", {}).n("ECSClient", "ListTasksCommand").f(void 0, void 0).ser(se_ListTasksCommand).de(de_ListTasksCommand).build() {
      static {
        __name(this, "ListTasksCommand");
      }
      static {
        __name2(this, "ListTasksCommand");
      }
    };
    var PutAccountSettingCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "PutAccountSetting", {}).n("ECSClient", "PutAccountSettingCommand").f(void 0, void 0).ser(se_PutAccountSettingCommand).de(de_PutAccountSettingCommand).build() {
      static {
        __name(this, "PutAccountSettingCommand");
      }
      static {
        __name2(this, "PutAccountSettingCommand");
      }
    };
    var PutAccountSettingDefaultCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "PutAccountSettingDefault", {}).n("ECSClient", "PutAccountSettingDefaultCommand").f(void 0, void 0).ser(se_PutAccountSettingDefaultCommand).de(de_PutAccountSettingDefaultCommand).build() {
      static {
        __name(this, "PutAccountSettingDefaultCommand");
      }
      static {
        __name2(this, "PutAccountSettingDefaultCommand");
      }
    };
    var PutAttributesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "PutAttributes", {}).n("ECSClient", "PutAttributesCommand").f(void 0, void 0).ser(se_PutAttributesCommand).de(de_PutAttributesCommand).build() {
      static {
        __name(this, "PutAttributesCommand");
      }
      static {
        __name2(this, "PutAttributesCommand");
      }
    };
    var PutClusterCapacityProvidersCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "PutClusterCapacityProviders", {}).n("ECSClient", "PutClusterCapacityProvidersCommand").f(void 0, void 0).ser(se_PutClusterCapacityProvidersCommand).de(de_PutClusterCapacityProvidersCommand).build() {
      static {
        __name(this, "PutClusterCapacityProvidersCommand");
      }
      static {
        __name2(this, "PutClusterCapacityProvidersCommand");
      }
    };
    var RegisterContainerInstanceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "RegisterContainerInstance", {}).n("ECSClient", "RegisterContainerInstanceCommand").f(void 0, void 0).ser(se_RegisterContainerInstanceCommand).de(de_RegisterContainerInstanceCommand).build() {
      static {
        __name(this, "RegisterContainerInstanceCommand");
      }
      static {
        __name2(this, "RegisterContainerInstanceCommand");
      }
    };
    var RegisterTaskDefinitionCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "RegisterTaskDefinition", {}).n("ECSClient", "RegisterTaskDefinitionCommand").f(void 0, void 0).ser(se_RegisterTaskDefinitionCommand).de(de_RegisterTaskDefinitionCommand).build() {
      static {
        __name(this, "RegisterTaskDefinitionCommand");
      }
      static {
        __name2(this, "RegisterTaskDefinitionCommand");
      }
    };
    var RunTaskCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "RunTask", {}).n("ECSClient", "RunTaskCommand").f(void 0, void 0).ser(se_RunTaskCommand).de(de_RunTaskCommand).build() {
      static {
        __name(this, "RunTaskCommand");
      }
      static {
        __name2(this, "RunTaskCommand");
      }
    };
    var StartTaskCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "StartTask", {}).n("ECSClient", "StartTaskCommand").f(void 0, void 0).ser(se_StartTaskCommand).de(de_StartTaskCommand).build() {
      static {
        __name(this, "StartTaskCommand");
      }
      static {
        __name2(this, "StartTaskCommand");
      }
    };
    var StopServiceDeploymentCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "StopServiceDeployment", {}).n("ECSClient", "StopServiceDeploymentCommand").f(void 0, void 0).ser(se_StopServiceDeploymentCommand).de(de_StopServiceDeploymentCommand).build() {
      static {
        __name(this, "StopServiceDeploymentCommand");
      }
      static {
        __name2(this, "StopServiceDeploymentCommand");
      }
    };
    var StopTaskCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "StopTask", {}).n("ECSClient", "StopTaskCommand").f(void 0, void 0).ser(se_StopTaskCommand).de(de_StopTaskCommand).build() {
      static {
        __name(this, "StopTaskCommand");
      }
      static {
        __name2(this, "StopTaskCommand");
      }
    };
    var SubmitAttachmentStateChangesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "SubmitAttachmentStateChanges", {}).n("ECSClient", "SubmitAttachmentStateChangesCommand").f(void 0, void 0).ser(se_SubmitAttachmentStateChangesCommand).de(de_SubmitAttachmentStateChangesCommand).build() {
      static {
        __name(this, "SubmitAttachmentStateChangesCommand");
      }
      static {
        __name2(this, "SubmitAttachmentStateChangesCommand");
      }
    };
    var SubmitContainerStateChangeCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "SubmitContainerStateChange", {}).n("ECSClient", "SubmitContainerStateChangeCommand").f(void 0, void 0).ser(se_SubmitContainerStateChangeCommand).de(de_SubmitContainerStateChangeCommand).build() {
      static {
        __name(this, "SubmitContainerStateChangeCommand");
      }
      static {
        __name2(this, "SubmitContainerStateChangeCommand");
      }
    };
    var SubmitTaskStateChangeCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "SubmitTaskStateChange", {}).n("ECSClient", "SubmitTaskStateChangeCommand").f(void 0, void 0).ser(se_SubmitTaskStateChangeCommand).de(de_SubmitTaskStateChangeCommand).build() {
      static {
        __name(this, "SubmitTaskStateChangeCommand");
      }
      static {
        __name2(this, "SubmitTaskStateChangeCommand");
      }
    };
    var TagResourceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "TagResource", {}).n("ECSClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
      static {
        __name(this, "TagResourceCommand");
      }
      static {
        __name2(this, "TagResourceCommand");
      }
    };
    var UntagResourceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "UntagResource", {}).n("ECSClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
      static {
        __name(this, "UntagResourceCommand");
      }
      static {
        __name2(this, "UntagResourceCommand");
      }
    };
    var UpdateCapacityProviderCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "UpdateCapacityProvider", {}).n("ECSClient", "UpdateCapacityProviderCommand").f(void 0, void 0).ser(se_UpdateCapacityProviderCommand).de(de_UpdateCapacityProviderCommand).build() {
      static {
        __name(this, "UpdateCapacityProviderCommand");
      }
      static {
        __name2(this, "UpdateCapacityProviderCommand");
      }
    };
    var UpdateClusterCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "UpdateCluster", {}).n("ECSClient", "UpdateClusterCommand").f(void 0, void 0).ser(se_UpdateClusterCommand).de(de_UpdateClusterCommand).build() {
      static {
        __name(this, "UpdateClusterCommand");
      }
      static {
        __name2(this, "UpdateClusterCommand");
      }
    };
    var UpdateClusterSettingsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "UpdateClusterSettings", {}).n("ECSClient", "UpdateClusterSettingsCommand").f(void 0, void 0).ser(se_UpdateClusterSettingsCommand).de(de_UpdateClusterSettingsCommand).build() {
      static {
        __name(this, "UpdateClusterSettingsCommand");
      }
      static {
        __name2(this, "UpdateClusterSettingsCommand");
      }
    };
    var UpdateContainerAgentCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "UpdateContainerAgent", {}).n("ECSClient", "UpdateContainerAgentCommand").f(void 0, void 0).ser(se_UpdateContainerAgentCommand).de(de_UpdateContainerAgentCommand).build() {
      static {
        __name(this, "UpdateContainerAgentCommand");
      }
      static {
        __name2(this, "UpdateContainerAgentCommand");
      }
    };
    var UpdateContainerInstancesStateCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "UpdateContainerInstancesState", {}).n("ECSClient", "UpdateContainerInstancesStateCommand").f(void 0, void 0).ser(se_UpdateContainerInstancesStateCommand).de(de_UpdateContainerInstancesStateCommand).build() {
      static {
        __name(this, "UpdateContainerInstancesStateCommand");
      }
      static {
        __name2(this, "UpdateContainerInstancesStateCommand");
      }
    };
    var UpdateServiceCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "UpdateService", {}).n("ECSClient", "UpdateServiceCommand").f(void 0, void 0).ser(se_UpdateServiceCommand).de(de_UpdateServiceCommand).build() {
      static {
        __name(this, "UpdateServiceCommand");
      }
      static {
        __name2(this, "UpdateServiceCommand");
      }
    };
    var UpdateServicePrimaryTaskSetCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "UpdateServicePrimaryTaskSet", {}).n("ECSClient", "UpdateServicePrimaryTaskSetCommand").f(void 0, void 0).ser(se_UpdateServicePrimaryTaskSetCommand).de(de_UpdateServicePrimaryTaskSetCommand).build() {
      static {
        __name(this, "UpdateServicePrimaryTaskSetCommand");
      }
      static {
        __name2(this, "UpdateServicePrimaryTaskSetCommand");
      }
    };
    var UpdateTaskProtectionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "UpdateTaskProtection", {}).n("ECSClient", "UpdateTaskProtectionCommand").f(void 0, void 0).ser(se_UpdateTaskProtectionCommand).de(de_UpdateTaskProtectionCommand).build() {
      static {
        __name(this, "UpdateTaskProtectionCommand");
      }
      static {
        __name2(this, "UpdateTaskProtectionCommand");
      }
    };
    var UpdateTaskSetCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AmazonEC2ContainerServiceV20141113", "UpdateTaskSet", {}).n("ECSClient", "UpdateTaskSetCommand").f(void 0, void 0).ser(se_UpdateTaskSetCommand).de(de_UpdateTaskSetCommand).build() {
      static {
        __name(this, "UpdateTaskSetCommand");
      }
      static {
        __name2(this, "UpdateTaskSetCommand");
      }
    };
    var commands3 = {
      CreateCapacityProviderCommand,
      CreateClusterCommand,
      CreateServiceCommand,
      CreateTaskSetCommand,
      DeleteAccountSettingCommand,
      DeleteAttributesCommand,
      DeleteCapacityProviderCommand,
      DeleteClusterCommand,
      DeleteServiceCommand,
      DeleteTaskDefinitionsCommand,
      DeleteTaskSetCommand,
      DeregisterContainerInstanceCommand,
      DeregisterTaskDefinitionCommand,
      DescribeCapacityProvidersCommand,
      DescribeClustersCommand,
      DescribeContainerInstancesCommand,
      DescribeServiceDeploymentsCommand,
      DescribeServiceRevisionsCommand,
      DescribeServicesCommand,
      DescribeTaskDefinitionCommand,
      DescribeTasksCommand,
      DescribeTaskSetsCommand,
      DiscoverPollEndpointCommand,
      ExecuteCommandCommand,
      GetTaskProtectionCommand,
      ListAccountSettingsCommand,
      ListAttributesCommand,
      ListClustersCommand: ListClustersCommand2,
      ListContainerInstancesCommand,
      ListServiceDeploymentsCommand,
      ListServicesCommand,
      ListServicesByNamespaceCommand,
      ListTagsForResourceCommand,
      ListTaskDefinitionFamiliesCommand,
      ListTaskDefinitionsCommand,
      ListTasksCommand,
      PutAccountSettingCommand,
      PutAccountSettingDefaultCommand,
      PutAttributesCommand,
      PutClusterCapacityProvidersCommand,
      RegisterContainerInstanceCommand,
      RegisterTaskDefinitionCommand: RegisterTaskDefinitionCommand2,
      RunTaskCommand,
      StartTaskCommand,
      StopServiceDeploymentCommand,
      StopTaskCommand,
      SubmitAttachmentStateChangesCommand,
      SubmitContainerStateChangeCommand,
      SubmitTaskStateChangeCommand,
      TagResourceCommand,
      UntagResourceCommand,
      UpdateCapacityProviderCommand,
      UpdateClusterCommand,
      UpdateClusterSettingsCommand,
      UpdateContainerAgentCommand,
      UpdateContainerInstancesStateCommand,
      UpdateServiceCommand: UpdateServiceCommand2,
      UpdateServicePrimaryTaskSetCommand,
      UpdateTaskProtectionCommand,
      UpdateTaskSetCommand
    };
    var ECS = class extends ECSClient2 {
      static {
        __name(this, "ECS");
      }
      static {
        __name2(this, "ECS");
      }
    };
    (0, import_smithy_client28.createAggregatedClient)(commands3, ECS);
    var paginateListAccountSettings = (0, import_core17.createPaginator)(ECSClient2, ListAccountSettingsCommand, "nextToken", "nextToken", "maxResults");
    var paginateListAttributes = (0, import_core17.createPaginator)(ECSClient2, ListAttributesCommand, "nextToken", "nextToken", "maxResults");
    var paginateListClusters = (0, import_core17.createPaginator)(ECSClient2, ListClustersCommand2, "nextToken", "nextToken", "maxResults");
    var paginateListContainerInstances = (0, import_core17.createPaginator)(ECSClient2, ListContainerInstancesCommand, "nextToken", "nextToken", "maxResults");
    var paginateListServicesByNamespace = (0, import_core17.createPaginator)(ECSClient2, ListServicesByNamespaceCommand, "nextToken", "nextToken", "maxResults");
    var paginateListServices = (0, import_core17.createPaginator)(ECSClient2, ListServicesCommand, "nextToken", "nextToken", "maxResults");
    var paginateListTaskDefinitionFamilies = (0, import_core17.createPaginator)(ECSClient2, ListTaskDefinitionFamiliesCommand, "nextToken", "nextToken", "maxResults");
    var paginateListTaskDefinitions = (0, import_core17.createPaginator)(ECSClient2, ListTaskDefinitionsCommand, "nextToken", "nextToken", "maxResults");
    var paginateListTasks = (0, import_core17.createPaginator)(ECSClient2, ListTasksCommand, "nextToken", "nextToken", "maxResults");
    var import_util_waiter = require_dist_cjs53();
    var checkState = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeServicesCommand(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.failures);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.reason;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "MISSING") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.services);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.status;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "INACTIVE") {
              return { state: import_util_waiter.WaiterState.SUCCESS, reason };
            }
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForServicesInactive = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
    }, "waitForServicesInactive");
    var waitUntilServicesInactive = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilServicesInactive");
    var checkState2 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeServicesCommand(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.failures);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.reason;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "MISSING") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.services);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.status;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "DRAINING") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.services);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.status;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "INACTIVE") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const filterRes_2 = result2.services.filter((element_1) => {
              return !(element_1.deployments.length == 1 && element_1.runningCount == element_1.desiredCount);
            });
            return filterRes_2.length == 0;
          }, "returnComparator");
          if (returnComparator() == true) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForServicesStable = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2);
    }, "waitForServicesStable");
    var waitUntilServicesStable2 = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilServicesStable");
    var checkState3 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeTasksCommand(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.tasks);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.lastStatus;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "STOPPED") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.failures);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.reason;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "MISSING") {
              return { state: import_util_waiter.WaiterState.FAILURE, reason };
            }
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.tasks);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.lastStatus;
            });
            return projection_3;
          }, "returnComparator");
          let allStringEq_5 = returnComparator().length > 0;
          for (const element_4 of returnComparator()) {
            allStringEq_5 = allStringEq_5 && element_4 == "RUNNING";
          }
          if (allStringEq_5) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForTasksRunning = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 6, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState3);
    }, "waitForTasksRunning");
    var waitUntilTasksRunning = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 6, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState3);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilTasksRunning");
    var checkState4 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeTasksCommand(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.tasks);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.lastStatus;
            });
            return projection_3;
          }, "returnComparator");
          let allStringEq_5 = returnComparator().length > 0;
          for (const element_4 of returnComparator()) {
            allStringEq_5 = allStringEq_5 && element_4 == "STOPPED";
          }
          if (allStringEq_5) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForTasksStopped = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 6, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState4);
    }, "waitForTasksStopped");
    var waitUntilTasksStopped = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 6, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState4);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilTasksStopped");
  }
});

// ../../node_modules/@aws-sdk/client-elastic-load-balancing-v2/dist-cjs/auth/httpAuthSchemeProvider.js
var require_httpAuthSchemeProvider14 = __commonJS({
  "../../node_modules/@aws-sdk/client-elastic-load-balancing-v2/dist-cjs/auth/httpAuthSchemeProvider.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.resolveHttpAuthSchemeConfig = exports2.defaultElasticLoadBalancingV2HttpAuthSchemeProvider = exports2.defaultElasticLoadBalancingV2HttpAuthSchemeParametersProvider = void 0;
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var util_middleware_1 = require_dist_cjs6();
    var defaultElasticLoadBalancingV2HttpAuthSchemeParametersProvider = /* @__PURE__ */ __name(async (config, context, input) => {
      return {
        operation: (0, util_middleware_1.getSmithyContext)(context).operation,
        region: await (0, util_middleware_1.normalizeProvider)(config.region)() || (() => {
          throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
        })()
      };
    }, "defaultElasticLoadBalancingV2HttpAuthSchemeParametersProvider");
    exports2.defaultElasticLoadBalancingV2HttpAuthSchemeParametersProvider = defaultElasticLoadBalancingV2HttpAuthSchemeParametersProvider;
    function createAwsAuthSigv4HttpAuthOption3(authParameters) {
      return {
        schemeId: "aws.auth#sigv4",
        signingProperties: {
          name: "elasticloadbalancing",
          region: authParameters.region
        },
        propertiesExtractor: /* @__PURE__ */ __name((config, context) => ({
          signingProperties: {
            config,
            context
          }
        }), "propertiesExtractor")
      };
    }
    __name(createAwsAuthSigv4HttpAuthOption3, "createAwsAuthSigv4HttpAuthOption");
    var defaultElasticLoadBalancingV2HttpAuthSchemeProvider = /* @__PURE__ */ __name((authParameters) => {
      const options = [];
      switch (authParameters.operation) {
        default: {
          options.push(createAwsAuthSigv4HttpAuthOption3(authParameters));
        }
      }
      return options;
    }, "defaultElasticLoadBalancingV2HttpAuthSchemeProvider");
    exports2.defaultElasticLoadBalancingV2HttpAuthSchemeProvider = defaultElasticLoadBalancingV2HttpAuthSchemeProvider;
    var resolveHttpAuthSchemeConfig3 = /* @__PURE__ */ __name((config) => {
      const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
      return Object.assign(config_0, {
        authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? [])
      });
    }, "resolveHttpAuthSchemeConfig");
    exports2.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig3;
  }
});

// ../../node_modules/@aws-sdk/client-elastic-load-balancing-v2/package.json
var require_package14 = __commonJS({
  "../../node_modules/@aws-sdk/client-elastic-load-balancing-v2/package.json"(exports2, module2) {
    module2.exports = {
      name: "@aws-sdk/client-elastic-load-balancing-v2",
      description: "AWS SDK for JavaScript Elastic Load Balancing V2 Client for Node.js, Browser and React Native",
      version: "3.879.0",
      scripts: {
        build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
        "build:cjs": "node ../../scripts/compilation/inline client-elastic-load-balancing-v2",
        "build:es": "tsc -p tsconfig.es.json",
        "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
        "build:types": "tsc -p tsconfig.types.json",
        "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
        clean: "rimraf ./dist-* && rimraf *.tsbuildinfo",
        "extract:docs": "api-extractor run --local",
        "generate:client": "node ../../scripts/generate-clients/single-service --solo elastic-load-balancing-v2"
      },
      main: "./dist-cjs/index.js",
      types: "./dist-types/index.d.ts",
      module: "./dist-es/index.js",
      sideEffects: false,
      dependencies: {
        "@aws-crypto/sha256-browser": "5.2.0",
        "@aws-crypto/sha256-js": "5.2.0",
        "@aws-sdk/core": "3.879.0",
        "@aws-sdk/credential-provider-node": "3.879.0",
        "@aws-sdk/middleware-host-header": "3.873.0",
        "@aws-sdk/middleware-logger": "3.876.0",
        "@aws-sdk/middleware-recursion-detection": "3.873.0",
        "@aws-sdk/middleware-user-agent": "3.879.0",
        "@aws-sdk/region-config-resolver": "3.873.0",
        "@aws-sdk/types": "3.862.0",
        "@aws-sdk/util-endpoints": "3.879.0",
        "@aws-sdk/util-user-agent-browser": "3.873.0",
        "@aws-sdk/util-user-agent-node": "3.879.0",
        "@smithy/config-resolver": "^4.1.5",
        "@smithy/core": "^3.9.0",
        "@smithy/fetch-http-handler": "^5.1.1",
        "@smithy/hash-node": "^4.0.5",
        "@smithy/invalid-dependency": "^4.0.5",
        "@smithy/middleware-content-length": "^4.0.5",
        "@smithy/middleware-endpoint": "^4.1.19",
        "@smithy/middleware-retry": "^4.1.20",
        "@smithy/middleware-serde": "^4.0.9",
        "@smithy/middleware-stack": "^4.0.5",
        "@smithy/node-config-provider": "^4.1.4",
        "@smithy/node-http-handler": "^4.1.1",
        "@smithy/protocol-http": "^5.1.3",
        "@smithy/smithy-client": "^4.5.0",
        "@smithy/types": "^4.3.2",
        "@smithy/url-parser": "^4.0.5",
        "@smithy/util-base64": "^4.0.0",
        "@smithy/util-body-length-browser": "^4.0.0",
        "@smithy/util-body-length-node": "^4.0.0",
        "@smithy/util-defaults-mode-browser": "^4.0.27",
        "@smithy/util-defaults-mode-node": "^4.0.27",
        "@smithy/util-endpoints": "^3.0.7",
        "@smithy/util-middleware": "^4.0.5",
        "@smithy/util-retry": "^4.0.7",
        "@smithy/util-utf8": "^4.0.0",
        "@smithy/util-waiter": "^4.0.7",
        tslib: "^2.6.2"
      },
      devDependencies: {
        "@tsconfig/node18": "18.2.4",
        "@types/node": "^18.19.69",
        concurrently: "7.0.0",
        "downlevel-dts": "0.10.1",
        rimraf: "3.0.2",
        typescript: "~5.8.3"
      },
      engines: {
        node: ">=18.0.0"
      },
      typesVersions: {
        "<4.0": {
          "dist-types/*": [
            "dist-types/ts3.4/*"
          ]
        }
      },
      files: [
        "dist-*/**"
      ],
      author: {
        name: "AWS SDK for JavaScript Team",
        url: "https://aws.amazon.com/javascript/"
      },
      license: "Apache-2.0",
      browser: {
        "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
      },
      "react-native": {
        "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
      },
      homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-elastic-load-balancing-v2",
      repository: {
        type: "git",
        url: "https://github.com/aws/aws-sdk-js-v3.git",
        directory: "clients/client-elastic-load-balancing-v2"
      }
    };
  }
});

// ../../node_modules/@aws-sdk/client-elastic-load-balancing-v2/dist-cjs/endpoint/ruleset.js
var require_ruleset14 = __commonJS({
  "../../node_modules/@aws-sdk/client-elastic-load-balancing-v2/dist-cjs/endpoint/ruleset.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.ruleSet = void 0;
    var u3 = "required";
    var v6 = "fn";
    var w3 = "argv";
    var x3 = "ref";
    var a3 = true;
    var b3 = "isSet";
    var c3 = "booleanEquals";
    var d3 = "error";
    var e3 = "endpoint";
    var f3 = "tree";
    var g3 = "PartitionResult";
    var h3 = "getAttr";
    var i3 = { [u3]: false, "type": "String" };
    var j3 = { [u3]: true, "default": false, "type": "Boolean" };
    var k3 = { [x3]: "Endpoint" };
    var l3 = { [v6]: c3, [w3]: [{ [x3]: "UseFIPS" }, true] };
    var m3 = { [v6]: c3, [w3]: [{ [x3]: "UseDualStack" }, true] };
    var n3 = {};
    var o3 = { [v6]: h3, [w3]: [{ [x3]: g3 }, "supportsFIPS"] };
    var p3 = { [x3]: g3 };
    var q3 = { [v6]: c3, [w3]: [true, { [v6]: h3, [w3]: [p3, "supportsDualStack"] }] };
    var r3 = [l3];
    var s3 = [m3];
    var t3 = [{ [x3]: "Region" }];
    var _data3 = { version: "1.0", parameters: { Region: i3, UseDualStack: j3, UseFIPS: j3, Endpoint: i3 }, rules: [{ conditions: [{ [v6]: b3, [w3]: [k3] }], rules: [{ conditions: r3, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d3 }, { conditions: s3, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d3 }, { endpoint: { url: k3, properties: n3, headers: n3 }, type: e3 }], type: f3 }, { conditions: [{ [v6]: b3, [w3]: t3 }], rules: [{ conditions: [{ [v6]: "aws.partition", [w3]: t3, assign: g3 }], rules: [{ conditions: [l3, m3], rules: [{ conditions: [{ [v6]: c3, [w3]: [a3, o3] }, q3], rules: [{ endpoint: { url: "https://elasticloadbalancing-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n3, headers: n3 }, type: e3 }], type: f3 }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d3 }], type: f3 }, { conditions: r3, rules: [{ conditions: [{ [v6]: c3, [w3]: [o3, a3] }], rules: [{ conditions: [{ [v6]: "stringEquals", [w3]: [{ [v6]: h3, [w3]: [p3, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://elasticloadbalancing.{Region}.amazonaws.com", properties: n3, headers: n3 }, type: e3 }, { endpoint: { url: "https://elasticloadbalancing-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n3, headers: n3 }, type: e3 }], type: f3 }, { error: "FIPS is enabled but this partition does not support FIPS", type: d3 }], type: f3 }, { conditions: s3, rules: [{ conditions: [q3], rules: [{ endpoint: { url: "https://elasticloadbalancing.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n3, headers: n3 }, type: e3 }], type: f3 }, { error: "DualStack is enabled but this partition does not support DualStack", type: d3 }], type: f3 }, { endpoint: { url: "https://elasticloadbalancing.{Region}.{PartitionResult#dnsSuffix}", properties: n3, headers: n3 }, type: e3 }], type: f3 }], type: f3 }, { error: "Invalid Configuration: Missing Region", type: d3 }] };
    exports2.ruleSet = _data3;
  }
});

// ../../node_modules/@aws-sdk/client-elastic-load-balancing-v2/dist-cjs/endpoint/endpointResolver.js
var require_endpointResolver14 = __commonJS({
  "../../node_modules/@aws-sdk/client-elastic-load-balancing-v2/dist-cjs/endpoint/endpointResolver.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.defaultEndpointResolver = void 0;
    var util_endpoints_1 = require_dist_cjs21();
    var util_endpoints_2 = require_dist_cjs18();
    var ruleset_1 = require_ruleset14();
    var cache3 = new util_endpoints_2.EndpointCache({
      size: 50,
      params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"]
    });
    var defaultEndpointResolver3 = /* @__PURE__ */ __name((endpointParams, context = {}) => {
      return cache3.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
        endpointParams,
        logger: context.logger
      }));
    }, "defaultEndpointResolver");
    exports2.defaultEndpointResolver = defaultEndpointResolver3;
    util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
  }
});

// ../../node_modules/@aws-sdk/client-elastic-load-balancing-v2/dist-cjs/runtimeConfig.shared.js
var require_runtimeConfig_shared15 = __commonJS({
  "../../node_modules/@aws-sdk/client-elastic-load-balancing-v2/dist-cjs/runtimeConfig.shared.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.getRuntimeConfig = void 0;
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var smithy_client_1 = require_dist_cjs26();
    var url_parser_1 = require_dist_cjs20();
    var util_base64_1 = require_dist_cjs11();
    var util_utf8_1 = require_dist_cjs10();
    var httpAuthSchemeProvider_1 = require_httpAuthSchemeProvider14();
    var endpointResolver_1 = require_endpointResolver14();
    var getRuntimeConfig5 = /* @__PURE__ */ __name((config) => {
      return {
        apiVersion: "2015-12-01",
        base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
        base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
        disableHostPrefix: config?.disableHostPrefix ?? false,
        endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
        extensions: config?.extensions ?? [],
        httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultElasticLoadBalancingV2HttpAuthSchemeProvider,
        httpAuthSchemes: config?.httpAuthSchemes ?? [
          {
            schemeId: "aws.auth#sigv4",
            identityProvider: /* @__PURE__ */ __name((ipc) => ipc.getIdentityProvider("aws.auth#sigv4"), "identityProvider"),
            signer: new core_1.AwsSdkSigV4Signer()
          }
        ],
        logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
        serviceId: config?.serviceId ?? "Elastic Load Balancing v2",
        urlParser: config?.urlParser ?? url_parser_1.parseUrl,
        utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
        utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8
      };
    }, "getRuntimeConfig");
    exports2.getRuntimeConfig = getRuntimeConfig5;
  }
});

// ../../node_modules/@aws-sdk/client-elastic-load-balancing-v2/dist-cjs/runtimeConfig.js
var require_runtimeConfig15 = __commonJS({
  "../../node_modules/@aws-sdk/client-elastic-load-balancing-v2/dist-cjs/runtimeConfig.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.getRuntimeConfig = void 0;
    var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
    var package_json_1 = tslib_1.__importDefault(require_package14());
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var credential_provider_node_1 = require_dist_cjs52();
    var util_user_agent_node_1 = require_dist_cjs41();
    var config_resolver_1 = require_dist_cjs30();
    var hash_node_1 = require_dist_cjs42();
    var middleware_retry_1 = require_dist_cjs37();
    var node_config_provider_1 = require_dist_cjs33();
    var node_http_handler_1 = require_dist_cjs14();
    var util_body_length_node_1 = require_dist_cjs43();
    var util_retry_1 = require_dist_cjs36();
    var runtimeConfig_shared_1 = require_runtimeConfig_shared15();
    var smithy_client_1 = require_dist_cjs26();
    var util_defaults_mode_node_1 = require_dist_cjs44();
    var smithy_client_2 = require_dist_cjs26();
    var getRuntimeConfig5 = /* @__PURE__ */ __name((config) => {
      (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
      const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
      const defaultConfigProvider = /* @__PURE__ */ __name(() => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode), "defaultConfigProvider");
      const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
      (0, core_1.emitWarningIfUnsupportedVersion)(process.version);
      const loaderConfig = {
        profile: config?.profile,
        logger: clientSharedValues.logger
      };
      return {
        ...clientSharedValues,
        ...config,
        runtime: "node",
        defaultsMode,
        authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
        bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
        credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
        defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
        maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
        region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
        requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
        retryMode: config?.retryMode ?? (0, node_config_provider_1.loadConfig)({
          ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
          default: /* @__PURE__ */ __name(async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE, "default")
        }, config),
        sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
        streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
        useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
        useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
        userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig)
      };
    }, "getRuntimeConfig");
    exports2.getRuntimeConfig = getRuntimeConfig5;
  }
});

// ../../node_modules/@aws-sdk/client-elastic-load-balancing-v2/dist-cjs/index.js
var require_dist_cjs89 = __commonJS({
  "../../node_modules/@aws-sdk/client-elastic-load-balancing-v2/dist-cjs/index.js"(exports2, module2) {
    "use strict";
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var index_exports = {};
    __export2(index_exports, {
      ALPNPolicyNotSupportedException: /* @__PURE__ */ __name(() => ALPNPolicyNotSupportedException, "ALPNPolicyNotSupportedException"),
      ActionTypeEnum: /* @__PURE__ */ __name(() => ActionTypeEnum, "ActionTypeEnum"),
      AddListenerCertificatesCommand: /* @__PURE__ */ __name(() => AddListenerCertificatesCommand, "AddListenerCertificatesCommand"),
      AddTagsCommand: /* @__PURE__ */ __name(() => AddTagsCommand, "AddTagsCommand"),
      AddTrustStoreRevocationsCommand: /* @__PURE__ */ __name(() => AddTrustStoreRevocationsCommand, "AddTrustStoreRevocationsCommand"),
      AdvertiseTrustStoreCaNamesEnum: /* @__PURE__ */ __name(() => AdvertiseTrustStoreCaNamesEnum, "AdvertiseTrustStoreCaNamesEnum"),
      AllocationIdNotFoundException: /* @__PURE__ */ __name(() => AllocationIdNotFoundException, "AllocationIdNotFoundException"),
      AnomalyResultEnum: /* @__PURE__ */ __name(() => AnomalyResultEnum, "AnomalyResultEnum"),
      AuthenticateCognitoActionConditionalBehaviorEnum: /* @__PURE__ */ __name(() => AuthenticateCognitoActionConditionalBehaviorEnum, "AuthenticateCognitoActionConditionalBehaviorEnum"),
      AuthenticateOidcActionConditionalBehaviorEnum: /* @__PURE__ */ __name(() => AuthenticateOidcActionConditionalBehaviorEnum, "AuthenticateOidcActionConditionalBehaviorEnum"),
      AvailabilityZoneNotSupportedException: /* @__PURE__ */ __name(() => AvailabilityZoneNotSupportedException, "AvailabilityZoneNotSupportedException"),
      CaCertificatesBundleNotFoundException: /* @__PURE__ */ __name(() => CaCertificatesBundleNotFoundException, "CaCertificatesBundleNotFoundException"),
      CapacityDecreaseRequestsLimitExceededException: /* @__PURE__ */ __name(() => CapacityDecreaseRequestsLimitExceededException, "CapacityDecreaseRequestsLimitExceededException"),
      CapacityReservationPendingException: /* @__PURE__ */ __name(() => CapacityReservationPendingException, "CapacityReservationPendingException"),
      CapacityReservationStateEnum: /* @__PURE__ */ __name(() => CapacityReservationStateEnum, "CapacityReservationStateEnum"),
      CapacityUnitsLimitExceededException: /* @__PURE__ */ __name(() => CapacityUnitsLimitExceededException, "CapacityUnitsLimitExceededException"),
      CertificateNotFoundException: /* @__PURE__ */ __name(() => CertificateNotFoundException, "CertificateNotFoundException"),
      CreateListenerCommand: /* @__PURE__ */ __name(() => CreateListenerCommand, "CreateListenerCommand"),
      CreateLoadBalancerCommand: /* @__PURE__ */ __name(() => CreateLoadBalancerCommand, "CreateLoadBalancerCommand"),
      CreateRuleCommand: /* @__PURE__ */ __name(() => CreateRuleCommand, "CreateRuleCommand"),
      CreateTargetGroupCommand: /* @__PURE__ */ __name(() => CreateTargetGroupCommand, "CreateTargetGroupCommand"),
      CreateTrustStoreCommand: /* @__PURE__ */ __name(() => CreateTrustStoreCommand, "CreateTrustStoreCommand"),
      DeleteAssociationSameAccountException: /* @__PURE__ */ __name(() => DeleteAssociationSameAccountException, "DeleteAssociationSameAccountException"),
      DeleteListenerCommand: /* @__PURE__ */ __name(() => DeleteListenerCommand, "DeleteListenerCommand"),
      DeleteLoadBalancerCommand: /* @__PURE__ */ __name(() => DeleteLoadBalancerCommand, "DeleteLoadBalancerCommand"),
      DeleteRuleCommand: /* @__PURE__ */ __name(() => DeleteRuleCommand, "DeleteRuleCommand"),
      DeleteSharedTrustStoreAssociationCommand: /* @__PURE__ */ __name(() => DeleteSharedTrustStoreAssociationCommand, "DeleteSharedTrustStoreAssociationCommand"),
      DeleteTargetGroupCommand: /* @__PURE__ */ __name(() => DeleteTargetGroupCommand, "DeleteTargetGroupCommand"),
      DeleteTrustStoreCommand: /* @__PURE__ */ __name(() => DeleteTrustStoreCommand, "DeleteTrustStoreCommand"),
      DeregisterTargetsCommand: /* @__PURE__ */ __name(() => DeregisterTargetsCommand, "DeregisterTargetsCommand"),
      DescribeAccountLimitsCommand: /* @__PURE__ */ __name(() => DescribeAccountLimitsCommand, "DescribeAccountLimitsCommand"),
      DescribeCapacityReservationCommand: /* @__PURE__ */ __name(() => DescribeCapacityReservationCommand, "DescribeCapacityReservationCommand"),
      DescribeListenerAttributesCommand: /* @__PURE__ */ __name(() => DescribeListenerAttributesCommand, "DescribeListenerAttributesCommand"),
      DescribeListenerCertificatesCommand: /* @__PURE__ */ __name(() => DescribeListenerCertificatesCommand, "DescribeListenerCertificatesCommand"),
      DescribeListenersCommand: /* @__PURE__ */ __name(() => DescribeListenersCommand2, "DescribeListenersCommand"),
      DescribeLoadBalancerAttributesCommand: /* @__PURE__ */ __name(() => DescribeLoadBalancerAttributesCommand, "DescribeLoadBalancerAttributesCommand"),
      DescribeLoadBalancersCommand: /* @__PURE__ */ __name(() => DescribeLoadBalancersCommand2, "DescribeLoadBalancersCommand"),
      DescribeRulesCommand: /* @__PURE__ */ __name(() => DescribeRulesCommand, "DescribeRulesCommand"),
      DescribeSSLPoliciesCommand: /* @__PURE__ */ __name(() => DescribeSSLPoliciesCommand, "DescribeSSLPoliciesCommand"),
      DescribeTagsCommand: /* @__PURE__ */ __name(() => DescribeTagsCommand2, "DescribeTagsCommand"),
      DescribeTargetGroupAttributesCommand: /* @__PURE__ */ __name(() => DescribeTargetGroupAttributesCommand, "DescribeTargetGroupAttributesCommand"),
      DescribeTargetGroupsCommand: /* @__PURE__ */ __name(() => DescribeTargetGroupsCommand, "DescribeTargetGroupsCommand"),
      DescribeTargetHealthCommand: /* @__PURE__ */ __name(() => DescribeTargetHealthCommand, "DescribeTargetHealthCommand"),
      DescribeTargetHealthInputIncludeEnum: /* @__PURE__ */ __name(() => DescribeTargetHealthInputIncludeEnum, "DescribeTargetHealthInputIncludeEnum"),
      DescribeTrustStoreAssociationsCommand: /* @__PURE__ */ __name(() => DescribeTrustStoreAssociationsCommand, "DescribeTrustStoreAssociationsCommand"),
      DescribeTrustStoreRevocationsCommand: /* @__PURE__ */ __name(() => DescribeTrustStoreRevocationsCommand, "DescribeTrustStoreRevocationsCommand"),
      DescribeTrustStoresCommand: /* @__PURE__ */ __name(() => DescribeTrustStoresCommand, "DescribeTrustStoresCommand"),
      DuplicateListenerException: /* @__PURE__ */ __name(() => DuplicateListenerException, "DuplicateListenerException"),
      DuplicateLoadBalancerNameException: /* @__PURE__ */ __name(() => DuplicateLoadBalancerNameException, "DuplicateLoadBalancerNameException"),
      DuplicateTagKeysException: /* @__PURE__ */ __name(() => DuplicateTagKeysException, "DuplicateTagKeysException"),
      DuplicateTargetGroupNameException: /* @__PURE__ */ __name(() => DuplicateTargetGroupNameException, "DuplicateTargetGroupNameException"),
      DuplicateTrustStoreNameException: /* @__PURE__ */ __name(() => DuplicateTrustStoreNameException, "DuplicateTrustStoreNameException"),
      ElasticLoadBalancingV2: /* @__PURE__ */ __name(() => ElasticLoadBalancingV2, "ElasticLoadBalancingV2"),
      ElasticLoadBalancingV2Client: /* @__PURE__ */ __name(() => ElasticLoadBalancingV2Client2, "ElasticLoadBalancingV2Client"),
      ElasticLoadBalancingV2ServiceException: /* @__PURE__ */ __name(() => ElasticLoadBalancingV2ServiceException, "ElasticLoadBalancingV2ServiceException"),
      EnablePrefixForIpv6SourceNatEnum: /* @__PURE__ */ __name(() => EnablePrefixForIpv6SourceNatEnum, "EnablePrefixForIpv6SourceNatEnum"),
      EnforceSecurityGroupInboundRulesOnPrivateLinkTrafficEnum: /* @__PURE__ */ __name(() => EnforceSecurityGroupInboundRulesOnPrivateLinkTrafficEnum, "EnforceSecurityGroupInboundRulesOnPrivateLinkTrafficEnum"),
      GetResourcePolicyCommand: /* @__PURE__ */ __name(() => GetResourcePolicyCommand, "GetResourcePolicyCommand"),
      GetTrustStoreCaCertificatesBundleCommand: /* @__PURE__ */ __name(() => GetTrustStoreCaCertificatesBundleCommand, "GetTrustStoreCaCertificatesBundleCommand"),
      GetTrustStoreRevocationContentCommand: /* @__PURE__ */ __name(() => GetTrustStoreRevocationContentCommand, "GetTrustStoreRevocationContentCommand"),
      HealthUnavailableException: /* @__PURE__ */ __name(() => HealthUnavailableException, "HealthUnavailableException"),
      IncompatibleProtocolsException: /* @__PURE__ */ __name(() => IncompatibleProtocolsException, "IncompatibleProtocolsException"),
      InsufficientCapacityException: /* @__PURE__ */ __name(() => InsufficientCapacityException, "InsufficientCapacityException"),
      InvalidCaCertificatesBundleException: /* @__PURE__ */ __name(() => InvalidCaCertificatesBundleException, "InvalidCaCertificatesBundleException"),
      InvalidConfigurationRequestException: /* @__PURE__ */ __name(() => InvalidConfigurationRequestException, "InvalidConfigurationRequestException"),
      InvalidLoadBalancerActionException: /* @__PURE__ */ __name(() => InvalidLoadBalancerActionException, "InvalidLoadBalancerActionException"),
      InvalidRevocationContentException: /* @__PURE__ */ __name(() => InvalidRevocationContentException, "InvalidRevocationContentException"),
      InvalidSchemeException: /* @__PURE__ */ __name(() => InvalidSchemeException, "InvalidSchemeException"),
      InvalidSecurityGroupException: /* @__PURE__ */ __name(() => InvalidSecurityGroupException, "InvalidSecurityGroupException"),
      InvalidSubnetException: /* @__PURE__ */ __name(() => InvalidSubnetException, "InvalidSubnetException"),
      InvalidTargetException: /* @__PURE__ */ __name(() => InvalidTargetException, "InvalidTargetException"),
      IpAddressType: /* @__PURE__ */ __name(() => IpAddressType, "IpAddressType"),
      ListenerNotFoundException: /* @__PURE__ */ __name(() => ListenerNotFoundException, "ListenerNotFoundException"),
      LoadBalancerNotFoundException: /* @__PURE__ */ __name(() => LoadBalancerNotFoundException, "LoadBalancerNotFoundException"),
      LoadBalancerSchemeEnum: /* @__PURE__ */ __name(() => LoadBalancerSchemeEnum, "LoadBalancerSchemeEnum"),
      LoadBalancerStateEnum: /* @__PURE__ */ __name(() => LoadBalancerStateEnum, "LoadBalancerStateEnum"),
      LoadBalancerTypeEnum: /* @__PURE__ */ __name(() => LoadBalancerTypeEnum, "LoadBalancerTypeEnum"),
      MitigationInEffectEnum: /* @__PURE__ */ __name(() => MitigationInEffectEnum, "MitigationInEffectEnum"),
      ModifyCapacityReservationCommand: /* @__PURE__ */ __name(() => ModifyCapacityReservationCommand, "ModifyCapacityReservationCommand"),
      ModifyIpPoolsCommand: /* @__PURE__ */ __name(() => ModifyIpPoolsCommand, "ModifyIpPoolsCommand"),
      ModifyListenerAttributesCommand: /* @__PURE__ */ __name(() => ModifyListenerAttributesCommand, "ModifyListenerAttributesCommand"),
      ModifyListenerCommand: /* @__PURE__ */ __name(() => ModifyListenerCommand, "ModifyListenerCommand"),
      ModifyLoadBalancerAttributesCommand: /* @__PURE__ */ __name(() => ModifyLoadBalancerAttributesCommand, "ModifyLoadBalancerAttributesCommand"),
      ModifyRuleCommand: /* @__PURE__ */ __name(() => ModifyRuleCommand, "ModifyRuleCommand"),
      ModifyTargetGroupAttributesCommand: /* @__PURE__ */ __name(() => ModifyTargetGroupAttributesCommand, "ModifyTargetGroupAttributesCommand"),
      ModifyTargetGroupCommand: /* @__PURE__ */ __name(() => ModifyTargetGroupCommand, "ModifyTargetGroupCommand"),
      ModifyTrustStoreCommand: /* @__PURE__ */ __name(() => ModifyTrustStoreCommand, "ModifyTrustStoreCommand"),
      OperationNotPermittedException: /* @__PURE__ */ __name(() => OperationNotPermittedException, "OperationNotPermittedException"),
      PriorRequestNotCompleteException: /* @__PURE__ */ __name(() => PriorRequestNotCompleteException, "PriorRequestNotCompleteException"),
      PriorityInUseException: /* @__PURE__ */ __name(() => PriorityInUseException, "PriorityInUseException"),
      ProtocolEnum: /* @__PURE__ */ __name(() => ProtocolEnum, "ProtocolEnum"),
      RedirectActionStatusCodeEnum: /* @__PURE__ */ __name(() => RedirectActionStatusCodeEnum, "RedirectActionStatusCodeEnum"),
      RegisterTargetsCommand: /* @__PURE__ */ __name(() => RegisterTargetsCommand, "RegisterTargetsCommand"),
      RemoveIpamPoolEnum: /* @__PURE__ */ __name(() => RemoveIpamPoolEnum, "RemoveIpamPoolEnum"),
      RemoveListenerCertificatesCommand: /* @__PURE__ */ __name(() => RemoveListenerCertificatesCommand, "RemoveListenerCertificatesCommand"),
      RemoveTagsCommand: /* @__PURE__ */ __name(() => RemoveTagsCommand, "RemoveTagsCommand"),
      RemoveTrustStoreRevocationsCommand: /* @__PURE__ */ __name(() => RemoveTrustStoreRevocationsCommand, "RemoveTrustStoreRevocationsCommand"),
      ResourceInUseException: /* @__PURE__ */ __name(() => ResourceInUseException, "ResourceInUseException"),
      ResourceNotFoundException: /* @__PURE__ */ __name(() => ResourceNotFoundException2, "ResourceNotFoundException"),
      RevocationContentNotFoundException: /* @__PURE__ */ __name(() => RevocationContentNotFoundException, "RevocationContentNotFoundException"),
      RevocationIdNotFoundException: /* @__PURE__ */ __name(() => RevocationIdNotFoundException, "RevocationIdNotFoundException"),
      RevocationType: /* @__PURE__ */ __name(() => RevocationType, "RevocationType"),
      RuleNotFoundException: /* @__PURE__ */ __name(() => RuleNotFoundException, "RuleNotFoundException"),
      SSLPolicyNotFoundException: /* @__PURE__ */ __name(() => SSLPolicyNotFoundException, "SSLPolicyNotFoundException"),
      SetIpAddressTypeCommand: /* @__PURE__ */ __name(() => SetIpAddressTypeCommand, "SetIpAddressTypeCommand"),
      SetRulePrioritiesCommand: /* @__PURE__ */ __name(() => SetRulePrioritiesCommand, "SetRulePrioritiesCommand"),
      SetSecurityGroupsCommand: /* @__PURE__ */ __name(() => SetSecurityGroupsCommand, "SetSecurityGroupsCommand"),
      SetSubnetsCommand: /* @__PURE__ */ __name(() => SetSubnetsCommand, "SetSubnetsCommand"),
      SubnetNotFoundException: /* @__PURE__ */ __name(() => SubnetNotFoundException, "SubnetNotFoundException"),
      TargetAdministrativeOverrideReasonEnum: /* @__PURE__ */ __name(() => TargetAdministrativeOverrideReasonEnum, "TargetAdministrativeOverrideReasonEnum"),
      TargetAdministrativeOverrideStateEnum: /* @__PURE__ */ __name(() => TargetAdministrativeOverrideStateEnum, "TargetAdministrativeOverrideStateEnum"),
      TargetGroupAssociationLimitException: /* @__PURE__ */ __name(() => TargetGroupAssociationLimitException, "TargetGroupAssociationLimitException"),
      TargetGroupIpAddressTypeEnum: /* @__PURE__ */ __name(() => TargetGroupIpAddressTypeEnum, "TargetGroupIpAddressTypeEnum"),
      TargetGroupNotFoundException: /* @__PURE__ */ __name(() => TargetGroupNotFoundException, "TargetGroupNotFoundException"),
      TargetHealthReasonEnum: /* @__PURE__ */ __name(() => TargetHealthReasonEnum, "TargetHealthReasonEnum"),
      TargetHealthStateEnum: /* @__PURE__ */ __name(() => TargetHealthStateEnum, "TargetHealthStateEnum"),
      TargetTypeEnum: /* @__PURE__ */ __name(() => TargetTypeEnum, "TargetTypeEnum"),
      TooManyActionsException: /* @__PURE__ */ __name(() => TooManyActionsException, "TooManyActionsException"),
      TooManyCertificatesException: /* @__PURE__ */ __name(() => TooManyCertificatesException, "TooManyCertificatesException"),
      TooManyListenersException: /* @__PURE__ */ __name(() => TooManyListenersException, "TooManyListenersException"),
      TooManyLoadBalancersException: /* @__PURE__ */ __name(() => TooManyLoadBalancersException, "TooManyLoadBalancersException"),
      TooManyRegistrationsForTargetIdException: /* @__PURE__ */ __name(() => TooManyRegistrationsForTargetIdException, "TooManyRegistrationsForTargetIdException"),
      TooManyRulesException: /* @__PURE__ */ __name(() => TooManyRulesException, "TooManyRulesException"),
      TooManyTagsException: /* @__PURE__ */ __name(() => TooManyTagsException, "TooManyTagsException"),
      TooManyTargetGroupsException: /* @__PURE__ */ __name(() => TooManyTargetGroupsException, "TooManyTargetGroupsException"),
      TooManyTargetsException: /* @__PURE__ */ __name(() => TooManyTargetsException, "TooManyTargetsException"),
      TooManyTrustStoreRevocationEntriesException: /* @__PURE__ */ __name(() => TooManyTrustStoreRevocationEntriesException, "TooManyTrustStoreRevocationEntriesException"),
      TooManyTrustStoresException: /* @__PURE__ */ __name(() => TooManyTrustStoresException, "TooManyTrustStoresException"),
      TooManyUniqueTargetGroupsPerLoadBalancerException: /* @__PURE__ */ __name(() => TooManyUniqueTargetGroupsPerLoadBalancerException, "TooManyUniqueTargetGroupsPerLoadBalancerException"),
      TrustStoreAssociationNotFoundException: /* @__PURE__ */ __name(() => TrustStoreAssociationNotFoundException, "TrustStoreAssociationNotFoundException"),
      TrustStoreAssociationStatusEnum: /* @__PURE__ */ __name(() => TrustStoreAssociationStatusEnum, "TrustStoreAssociationStatusEnum"),
      TrustStoreInUseException: /* @__PURE__ */ __name(() => TrustStoreInUseException, "TrustStoreInUseException"),
      TrustStoreNotFoundException: /* @__PURE__ */ __name(() => TrustStoreNotFoundException, "TrustStoreNotFoundException"),
      TrustStoreNotReadyException: /* @__PURE__ */ __name(() => TrustStoreNotReadyException, "TrustStoreNotReadyException"),
      TrustStoreStatus: /* @__PURE__ */ __name(() => TrustStoreStatus, "TrustStoreStatus"),
      UnsupportedProtocolException: /* @__PURE__ */ __name(() => UnsupportedProtocolException, "UnsupportedProtocolException"),
      __Client: /* @__PURE__ */ __name(() => import_smithy_client28.Client, "__Client"),
      paginateDescribeAccountLimits: /* @__PURE__ */ __name(() => paginateDescribeAccountLimits, "paginateDescribeAccountLimits"),
      paginateDescribeListenerCertificates: /* @__PURE__ */ __name(() => paginateDescribeListenerCertificates, "paginateDescribeListenerCertificates"),
      paginateDescribeListeners: /* @__PURE__ */ __name(() => paginateDescribeListeners2, "paginateDescribeListeners"),
      paginateDescribeLoadBalancers: /* @__PURE__ */ __name(() => paginateDescribeLoadBalancers2, "paginateDescribeLoadBalancers"),
      paginateDescribeRules: /* @__PURE__ */ __name(() => paginateDescribeRules, "paginateDescribeRules"),
      paginateDescribeTargetGroups: /* @__PURE__ */ __name(() => paginateDescribeTargetGroups, "paginateDescribeTargetGroups"),
      paginateDescribeTrustStoreAssociations: /* @__PURE__ */ __name(() => paginateDescribeTrustStoreAssociations, "paginateDescribeTrustStoreAssociations"),
      paginateDescribeTrustStoreRevocations: /* @__PURE__ */ __name(() => paginateDescribeTrustStoreRevocations, "paginateDescribeTrustStoreRevocations"),
      paginateDescribeTrustStores: /* @__PURE__ */ __name(() => paginateDescribeTrustStores, "paginateDescribeTrustStores"),
      waitForLoadBalancerAvailable: /* @__PURE__ */ __name(() => waitForLoadBalancerAvailable, "waitForLoadBalancerAvailable"),
      waitForLoadBalancerExists: /* @__PURE__ */ __name(() => waitForLoadBalancerExists, "waitForLoadBalancerExists"),
      waitForLoadBalancersDeleted: /* @__PURE__ */ __name(() => waitForLoadBalancersDeleted, "waitForLoadBalancersDeleted"),
      waitForTargetDeregistered: /* @__PURE__ */ __name(() => waitForTargetDeregistered, "waitForTargetDeregistered"),
      waitForTargetInService: /* @__PURE__ */ __name(() => waitForTargetInService, "waitForTargetInService"),
      waitUntilLoadBalancerAvailable: /* @__PURE__ */ __name(() => waitUntilLoadBalancerAvailable, "waitUntilLoadBalancerAvailable"),
      waitUntilLoadBalancerExists: /* @__PURE__ */ __name(() => waitUntilLoadBalancerExists, "waitUntilLoadBalancerExists"),
      waitUntilLoadBalancersDeleted: /* @__PURE__ */ __name(() => waitUntilLoadBalancersDeleted, "waitUntilLoadBalancersDeleted"),
      waitUntilTargetDeregistered: /* @__PURE__ */ __name(() => waitUntilTargetDeregistered, "waitUntilTargetDeregistered"),
      waitUntilTargetInService: /* @__PURE__ */ __name(() => waitUntilTargetInService, "waitUntilTargetInService")
    });
    module2.exports = __toCommonJS2(index_exports);
    var import_middleware_host_header3 = require_dist_cjs3();
    var import_middleware_logger3 = require_dist_cjs4();
    var import_middleware_recursion_detection3 = require_dist_cjs5();
    var import_middleware_user_agent3 = require_dist_cjs28();
    var import_config_resolver6 = require_dist_cjs30();
    var import_core17 = (init_dist_es(), __toCommonJS(dist_es_exports));
    var import_middleware_content_length3 = require_dist_cjs31();
    var import_middleware_endpoint8 = require_dist_cjs34();
    var import_middleware_retry5 = require_dist_cjs37();
    var import_httpAuthSchemeProvider5 = require_httpAuthSchemeProvider14();
    var resolveClientEndpointParameters3 = /* @__PURE__ */ __name2((options) => {
      return Object.assign(options, {
        useDualstackEndpoint: options.useDualstackEndpoint ?? false,
        useFipsEndpoint: options.useFipsEndpoint ?? false,
        defaultSigningName: "elasticloadbalancing"
      });
    }, "resolveClientEndpointParameters");
    var commonParams3 = {
      UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
      Endpoint: { type: "builtInParams", name: "endpoint" },
      Region: { type: "builtInParams", name: "region" },
      UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
    };
    var import_runtimeConfig5 = require_runtimeConfig15();
    var import_region_config_resolver3 = require_dist_cjs45();
    var import_protocol_http16 = require_dist_cjs2();
    var import_smithy_client28 = require_dist_cjs26();
    var getHttpAuthExtensionConfiguration3 = /* @__PURE__ */ __name2((runtimeConfig) => {
      const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
      let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
      let _credentials = runtimeConfig.credentials;
      return {
        setHttpAuthScheme(httpAuthScheme) {
          const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
          if (index === -1) {
            _httpAuthSchemes.push(httpAuthScheme);
          } else {
            _httpAuthSchemes.splice(index, 1, httpAuthScheme);
          }
        },
        httpAuthSchemes() {
          return _httpAuthSchemes;
        },
        setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
          _httpAuthSchemeProvider = httpAuthSchemeProvider;
        },
        httpAuthSchemeProvider() {
          return _httpAuthSchemeProvider;
        },
        setCredentials(credentials) {
          _credentials = credentials;
        },
        credentials() {
          return _credentials;
        }
      };
    }, "getHttpAuthExtensionConfiguration");
    var resolveHttpAuthRuntimeConfig3 = /* @__PURE__ */ __name2((config) => {
      return {
        httpAuthSchemes: config.httpAuthSchemes(),
        httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
        credentials: config.credentials()
      };
    }, "resolveHttpAuthRuntimeConfig");
    var resolveRuntimeExtensions3 = /* @__PURE__ */ __name2((runtimeConfig, extensions) => {
      const extensionConfiguration = Object.assign(
        (0, import_region_config_resolver3.getAwsRegionExtensionConfiguration)(runtimeConfig),
        (0, import_smithy_client28.getDefaultExtensionConfiguration)(runtimeConfig),
        (0, import_protocol_http16.getHttpHandlerExtensionConfiguration)(runtimeConfig),
        getHttpAuthExtensionConfiguration3(runtimeConfig)
      );
      extensions.forEach((extension) => extension.configure(extensionConfiguration));
      return Object.assign(
        runtimeConfig,
        (0, import_region_config_resolver3.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
        (0, import_smithy_client28.resolveDefaultRuntimeConfig)(extensionConfiguration),
        (0, import_protocol_http16.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
        resolveHttpAuthRuntimeConfig3(extensionConfiguration)
      );
    }, "resolveRuntimeExtensions");
    var ElasticLoadBalancingV2Client2 = class extends import_smithy_client28.Client {
      static {
        __name(this, "ElasticLoadBalancingV2Client");
      }
      static {
        __name2(this, "ElasticLoadBalancingV2Client");
      }
      /**
       * The resolved configuration of ElasticLoadBalancingV2Client class. This is resolved and normalized from the {@link ElasticLoadBalancingV2ClientConfig | constructor configuration interface}.
       */
      config;
      constructor(...[configuration]) {
        const _config_0 = (0, import_runtimeConfig5.getRuntimeConfig)(configuration || {});
        super(_config_0);
        this.initConfig = _config_0;
        const _config_1 = resolveClientEndpointParameters3(_config_0);
        const _config_2 = (0, import_middleware_user_agent3.resolveUserAgentConfig)(_config_1);
        const _config_3 = (0, import_middleware_retry5.resolveRetryConfig)(_config_2);
        const _config_4 = (0, import_config_resolver6.resolveRegionConfig)(_config_3);
        const _config_5 = (0, import_middleware_host_header3.resolveHostHeaderConfig)(_config_4);
        const _config_6 = (0, import_middleware_endpoint8.resolveEndpointConfig)(_config_5);
        const _config_7 = (0, import_httpAuthSchemeProvider5.resolveHttpAuthSchemeConfig)(_config_6);
        const _config_8 = resolveRuntimeExtensions3(_config_7, configuration?.extensions || []);
        this.config = _config_8;
        this.middlewareStack.use((0, import_middleware_user_agent3.getUserAgentPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_retry5.getRetryPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_content_length3.getContentLengthPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_host_header3.getHostHeaderPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_logger3.getLoggerPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_recursion_detection3.getRecursionDetectionPlugin)(this.config));
        this.middlewareStack.use(
          (0, import_core17.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
            httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider5.defaultElasticLoadBalancingV2HttpAuthSchemeParametersProvider,
            identityProviderConfigProvider: /* @__PURE__ */ __name2(async (config) => new import_core17.DefaultIdentityProviderConfig({
              "aws.auth#sigv4": config.credentials
            }), "identityProviderConfigProvider")
          })
        );
        this.middlewareStack.use((0, import_core17.getHttpSigningPlugin)(this.config));
      }
      /**
       * Destroy underlying resources, like sockets. It's usually not necessary to do this.
       * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
       * Otherwise, sockets might stay open for quite a long time before the server terminates them.
       */
      destroy() {
        super.destroy();
      }
    };
    var import_middleware_serde5 = require_dist_cjs7();
    var import_core22 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var ElasticLoadBalancingV2ServiceException = class _ElasticLoadBalancingV2ServiceException extends import_smithy_client28.ServiceException {
      static {
        __name(this, "_ElasticLoadBalancingV2ServiceException");
      }
      static {
        __name2(this, "ElasticLoadBalancingV2ServiceException");
      }
      /**
       * @internal
       */
      constructor(options) {
        super(options);
        Object.setPrototypeOf(this, _ElasticLoadBalancingV2ServiceException.prototype);
      }
    };
    var AuthenticateCognitoActionConditionalBehaviorEnum = {
      ALLOW: "allow",
      AUTHENTICATE: "authenticate",
      DENY: "deny"
    };
    var AuthenticateOidcActionConditionalBehaviorEnum = {
      ALLOW: "allow",
      AUTHENTICATE: "authenticate",
      DENY: "deny"
    };
    var RedirectActionStatusCodeEnum = {
      HTTP_301: "HTTP_301",
      HTTP_302: "HTTP_302"
    };
    var ActionTypeEnum = {
      AUTHENTICATE_COGNITO: "authenticate-cognito",
      AUTHENTICATE_OIDC: "authenticate-oidc",
      FIXED_RESPONSE: "fixed-response",
      FORWARD: "forward",
      REDIRECT: "redirect"
    };
    var CertificateNotFoundException = class _CertificateNotFoundException extends ElasticLoadBalancingV2ServiceException {
      static {
        __name(this, "_CertificateNotFoundException");
      }
      static {
        __name2(this, "CertificateNotFoundException");
      }
      name = "CertificateNotFoundException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "CertificateNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _CertificateNotFoundException.prototype);
        this.Message = opts.Message;
      }
    };
    var ListenerNotFoundException = class _ListenerNotFoundException extends ElasticLoadBalancingV2ServiceException {
      static {
        __name(this, "_ListenerNotFoundException");
      }
      static {
        __name2(this, "ListenerNotFoundException");
      }
      name = "ListenerNotFoundException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ListenerNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ListenerNotFoundException.prototype);
        this.Message = opts.Message;
      }
    };
    var TooManyCertificatesException = class _TooManyCertificatesException extends ElasticLoadBalancingV2ServiceException {
      static {
        __name(this, "_TooManyCertificatesException");
      }
      static {
        __name2(this, "TooManyCertificatesException");
      }
      name = "TooManyCertificatesException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "TooManyCertificatesException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _TooManyCertificatesException.prototype);
        this.Message = opts.Message;
      }
    };
    var DuplicateTagKeysException = class _DuplicateTagKeysException extends ElasticLoadBalancingV2ServiceException {
      static {
        __name(this, "_DuplicateTagKeysException");
      }
      static {
        __name2(this, "DuplicateTagKeysException");
      }
      name = "DuplicateTagKeysException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "DuplicateTagKeysException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _DuplicateTagKeysException.prototype);
        this.Message = opts.Message;
      }
    };
    var LoadBalancerNotFoundException = class _LoadBalancerNotFoundException extends ElasticLoadBalancingV2ServiceException {
      static {
        __name(this, "_LoadBalancerNotFoundException");
      }
      static {
        __name2(this, "LoadBalancerNotFoundException");
      }
      name = "LoadBalancerNotFoundException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "LoadBalancerNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _LoadBalancerNotFoundException.prototype);
        this.Message = opts.Message;
      }
    };
    var RuleNotFoundException = class _RuleNotFoundException extends ElasticLoadBalancingV2ServiceException {
      static {
        __name(this, "_RuleNotFoundException");
      }
      static {
        __name2(this, "RuleNotFoundException");
      }
      name = "RuleNotFoundException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "RuleNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _RuleNotFoundException.prototype);
        this.Message = opts.Message;
      }
    };
    var TargetGroupNotFoundException = class _TargetGroupNotFoundException extends ElasticLoadBalancingV2ServiceException {
      static {
        __name(this, "_TargetGroupNotFoundException");
      }
      static {
        __name2(this, "TargetGroupNotFoundException");
      }
      name = "TargetGroupNotFoundException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "TargetGroupNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _TargetGroupNotFoundException.prototype);
        this.Message = opts.Message;
      }
    };
    var TooManyTagsException = class _TooManyTagsException extends ElasticLoadBalancingV2ServiceException {
      static {
        __name(this, "_TooManyTagsException");
      }
      static {
        __name2(this, "TooManyTagsException");
      }
      name = "TooManyTagsException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "TooManyTagsException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _TooManyTagsException.prototype);
        this.Message = opts.Message;
      }
    };
    var TrustStoreNotFoundException = class _TrustStoreNotFoundException extends ElasticLoadBalancingV2ServiceException {
      static {
        __name(this, "_TrustStoreNotFoundException");
      }
      static {
        __name2(this, "TrustStoreNotFoundException");
      }
      name = "TrustStoreNotFoundException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "TrustStoreNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _TrustStoreNotFoundException.prototype);
        this.Message = opts.Message;
      }
    };
    var RevocationType = {
      CRL: "CRL"
    };
    var InvalidRevocationContentException = class _InvalidRevocationContentException extends ElasticLoadBalancingV2ServiceException {
      static {
        __name(this, "_InvalidRevocationContentException");
      }
      static {
        __name2(this, "InvalidRevocationContentException");
      }
      name = "InvalidRevocationContentException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidRevocationContentException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidRevocationContentException.prototype);
        this.Message = opts.Message;
      }
    };
    var RevocationContentNotFoundException = class _RevocationContentNotFoundException extends ElasticLoadBalancingV2ServiceException {
      static {
        __name(this, "_RevocationContentNotFoundException");
      }
      static {
        __name2(this, "RevocationContentNotFoundException");
      }
      name = "RevocationContentNotFoundException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "RevocationContentNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _RevocationContentNotFoundException.prototype);
        this.Message = opts.Message;
      }
    };
    var TooManyTrustStoreRevocationEntriesException = class _TooManyTrustStoreRevocationEntriesException extends ElasticLoadBalancingV2ServiceException {
      static {
        __name(this, "_TooManyTrustStoreRevocationEntriesException");
      }
      static {
        __name2(this, "TooManyTrustStoreRevocationEntriesException");
      }
      name = "TooManyTrustStoreRevocationEntriesException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "TooManyTrustStoreRevocationEntriesException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _TooManyTrustStoreRevocationEntriesException.prototype);
        this.Message = opts.Message;
      }
    };
    var TargetAdministrativeOverrideReasonEnum = {
      INTERNAL_ERROR: "AdministrativeOverride.Unknown",
      NO_OVERRIDE_ENGAGED: "AdministrativeOverride.NoOverride",
      ZONAL_SHIFT_DELEGATED_TO_DNS: "AdministrativeOverride.ZonalShiftDelegatedToDns",
      ZONAL_SHIFT_ENGAGED: "AdministrativeOverride.ZonalShiftActive"
    };
    var TargetAdministrativeOverrideStateEnum = {
      NO_OVERRIDE: "no_override",
      UNKNOWN: "unknown",
      ZONAL_SHIFT_ACTIVE: "zonal_shift_active",
      ZONAL_SHIFT_DELEGATED_TO_DNS: "zonal_shift_delegated_to_dns"
    };
    var AdvertiseTrustStoreCaNamesEnum = {
      off: "off",
      on: "on"
    };
    var AllocationIdNotFoundException = class _AllocationIdNotFoundException extends ElasticLoadBalancingV2ServiceException {
      static {
        __name(this, "_AllocationIdNotFoundException");
      }
      static {
        __name2(this, "AllocationIdNotFoundException");
      }
      name = "AllocationIdNotFoundException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "AllocationIdNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _AllocationIdNotFoundException.prototype);
        this.Message = opts.Message;
      }
    };
    var ALPNPolicyNotSupportedException = class _ALPNPolicyNotSupportedException extends ElasticLoadBalancingV2ServiceException {
      static {
        __name(this, "_ALPNPolicyNotSupportedException");
      }
      static {
        __name2(this, "ALPNPolicyNotSupportedException");
      }
      name = "ALPNPolicyNotSupportedException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ALPNPolicyNotSupportedException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ALPNPolicyNotSupportedException.prototype);
        this.Message = opts.Message;
      }
    };
    var MitigationInEffectEnum = {
      NO: "no",
      YES: "yes"
    };
    var AnomalyResultEnum = {
      ANOMALOUS: "anomalous",
      NORMAL: "normal"
    };
    var AvailabilityZoneNotSupportedException = class _AvailabilityZoneNotSupportedException extends ElasticLoadBalancingV2ServiceException {
      static {
        __name(this, "_AvailabilityZoneNotSupportedException");
      }
      static {
        __name2(this, "AvailabilityZoneNotSupportedException");
      }
      name = "AvailabilityZoneNotSupportedException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "AvailabilityZoneNotSupportedException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _AvailabilityZoneNotSupportedException.prototype);
        this.Message = opts.Message;
      }
    };
    var CaCertificatesBundleNotFoundException = class _CaCertificatesBundleNotFoundException extends ElasticLoadBalancingV2ServiceException {
      static {
        __name(this, "_CaCertificatesBundleNotFoundException");
      }
      static {
        __name2(this, "CaCertificatesBundleNotFoundException");
      }
      name = "CaCertificatesBundleNotFoundException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "CaCertificatesBundleNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _CaCertificatesBundleNotFoundException.prototype);
        this.Message = opts.Message;
      }
    };
    var CapacityDecreaseRequestsLimitExceededException = class _CapacityDecreaseRequestsLimitExceededException extends ElasticLoadBalancingV2ServiceException {
      static {
        __name(this, "_CapacityDecreaseRequestsLimitExceededException");
      }
      static {
        __name2(this, "CapacityDecreaseRequestsLimitExceededException");
      }
      name = "CapacityDecreaseRequestsLimitExceededException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "CapacityDecreaseRequestsLimitExceededException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _CapacityDecreaseRequestsLimitExceededException.prototype);
        this.Message = opts.Message;
      }
    };
    var CapacityReservationPendingException = class _CapacityReservationPendingException extends ElasticLoadBalancingV2ServiceException {
      static {
        __name(this, "_CapacityReservationPendingException");
      }
      static {
        __name2(this, "CapacityReservationPendingException");
      }
      name = "CapacityReservationPendingException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "CapacityReservationPendingException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _CapacityReservationPendingException.prototype);
        this.Message = opts.Message;
      }
    };
    var CapacityReservationStateEnum = {
      FAILED: "failed",
      PENDING: "pending",
      PROVISIONED: "provisioned",
      REBALANCING: "rebalancing"
    };
    var CapacityUnitsLimitExceededException = class _CapacityUnitsLimitExceededException extends ElasticLoadBalancingV2ServiceException {
      static {
        __name(this, "_CapacityUnitsLimitExceededException");
      }
      static {
        __name2(this, "CapacityUnitsLimitExceededException");
      }
      name = "CapacityUnitsLimitExceededException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "CapacityUnitsLimitExceededException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _CapacityUnitsLimitExceededException.prototype);
        this.Message = opts.Message;
      }
    };
    var TrustStoreAssociationStatusEnum = {
      ACTIVE: "active",
      REMOVED: "removed"
    };
    var ProtocolEnum = {
      GENEVE: "GENEVE",
      HTTP: "HTTP",
      HTTPS: "HTTPS",
      TCP: "TCP",
      TCP_UDP: "TCP_UDP",
      TLS: "TLS",
      UDP: "UDP"
    };
    var DuplicateListenerException = class _DuplicateListenerException extends ElasticLoadBalancingV2ServiceException {
      static {
        __name(this, "_DuplicateListenerException");
      }
      static {
        __name2(this, "DuplicateListenerException");
      }
      name = "DuplicateListenerException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "DuplicateListenerException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _DuplicateListenerException.prototype);
        this.Message = opts.Message;
      }
    };
    var IncompatibleProtocolsException = class _IncompatibleProtocolsException extends ElasticLoadBalancingV2ServiceException {
      static {
        __name(this, "_IncompatibleProtocolsException");
      }
      static {
        __name2(this, "IncompatibleProtocolsException");
      }
      name = "IncompatibleProtocolsException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "IncompatibleProtocolsException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _IncompatibleProtocolsException.prototype);
        this.Message = opts.Message;
      }
    };
    var InvalidConfigurationRequestException = class _InvalidConfigurationRequestException extends ElasticLoadBalancingV2ServiceException {
      static {
        __name(this, "_InvalidConfigurationRequestException");
      }
      static {
        __name2(this, "InvalidConfigurationRequestException");
      }
      name = "InvalidConfigurationRequestException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidConfigurationRequestException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidConfigurationRequestException.prototype);
        this.Message = opts.Message;
      }
    };
    var InvalidLoadBalancerActionException = class _InvalidLoadBalancerActionException extends ElasticLoadBalancingV2ServiceException {
      static {
        __name(this, "_InvalidLoadBalancerActionException");
      }
      static {
        __name2(this, "InvalidLoadBalancerActionException");
      }
      name = "InvalidLoadBalancerActionException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidLoadBalancerActionException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidLoadBalancerActionException.prototype);
        this.Message = opts.Message;
      }
    };
    var SSLPolicyNotFoundException = class _SSLPolicyNotFoundException extends ElasticLoadBalancingV2ServiceException {
      static {
        __name(this, "_SSLPolicyNotFoundException");
      }
      static {
        __name2(this, "SSLPolicyNotFoundException");
      }
      name = "SSLPolicyNotFoundException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "SSLPolicyNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _SSLPolicyNotFoundException.prototype);
        this.Message = opts.Message;
      }
    };
    var TargetGroupAssociationLimitException = class _TargetGroupAssociationLimitException extends ElasticLoadBalancingV2ServiceException {
      static {
        __name(this, "_TargetGroupAssociationLimitException");
      }
      static {
        __name2(this, "TargetGroupAssociationLimitException");
      }
      name = "TargetGroupAssociationLimitException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "TargetGroupAssociationLimitException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _TargetGroupAssociationLimitException.prototype);
        this.Message = opts.Message;
      }
    };
    var TooManyActionsException = class _TooManyActionsException extends ElasticLoadBalancingV2ServiceException {
      static {
        __name(this, "_TooManyActionsException");
      }
      static {
        __name2(this, "TooManyActionsException");
      }
      name = "TooManyActionsException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "TooManyActionsException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _TooManyActionsException.prototype);
        this.Message = opts.Message;
      }
    };
    var TooManyListenersException = class _TooManyListenersException extends ElasticLoadBalancingV2ServiceException {
      static {
        __name(this, "_TooManyListenersException");
      }
      static {
        __name2(this, "TooManyListenersException");
      }
      name = "TooManyListenersException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "TooManyListenersException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _TooManyListenersException.prototype);
        this.Message = opts.Message;
      }
    };
    var TooManyRegistrationsForTargetIdException = class _TooManyRegistrationsForTargetIdException extends ElasticLoadBalancingV2ServiceException {
      static {
        __name(this, "_TooManyRegistrationsForTargetIdException");
      }
      static {
        __name2(this, "TooManyRegistrationsForTargetIdException");
      }
      name = "TooManyRegistrationsForTargetIdException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "TooManyRegistrationsForTargetIdException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _TooManyRegistrationsForTargetIdException.prototype);
        this.Message = opts.Message;
      }
    };
    var TooManyTargetsException = class _TooManyTargetsException extends ElasticLoadBalancingV2ServiceException {
      static {
        __name(this, "_TooManyTargetsException");
      }
      static {
        __name2(this, "TooManyTargetsException");
      }
      name = "TooManyTargetsException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "TooManyTargetsException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _TooManyTargetsException.prototype);
        this.Message = opts.Message;
      }
    };
    var TooManyUniqueTargetGroupsPerLoadBalancerException = class _TooManyUniqueTargetGroupsPerLoadBalancerException extends ElasticLoadBalancingV2ServiceException {
      static {
        __name(this, "_TooManyUniqueTargetGroupsPerLoadBalancerException");
      }
      static {
        __name2(this, "TooManyUniqueTargetGroupsPerLoadBalancerException");
      }
      name = "TooManyUniqueTargetGroupsPerLoadBalancerException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "TooManyUniqueTargetGroupsPerLoadBalancerException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _TooManyUniqueTargetGroupsPerLoadBalancerException.prototype);
        this.Message = opts.Message;
      }
    };
    var TrustStoreNotReadyException = class _TrustStoreNotReadyException extends ElasticLoadBalancingV2ServiceException {
      static {
        __name(this, "_TrustStoreNotReadyException");
      }
      static {
        __name2(this, "TrustStoreNotReadyException");
      }
      name = "TrustStoreNotReadyException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "TrustStoreNotReadyException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _TrustStoreNotReadyException.prototype);
        this.Message = opts.Message;
      }
    };
    var UnsupportedProtocolException = class _UnsupportedProtocolException extends ElasticLoadBalancingV2ServiceException {
      static {
        __name(this, "_UnsupportedProtocolException");
      }
      static {
        __name2(this, "UnsupportedProtocolException");
      }
      name = "UnsupportedProtocolException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "UnsupportedProtocolException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _UnsupportedProtocolException.prototype);
        this.Message = opts.Message;
      }
    };
    var EnablePrefixForIpv6SourceNatEnum = {
      OFF: "off",
      ON: "on"
    };
    var IpAddressType = {
      DUALSTACK: "dualstack",
      DUALSTACK_WITHOUT_PUBLIC_IPV4: "dualstack-without-public-ipv4",
      IPV4: "ipv4"
    };
    var LoadBalancerSchemeEnum = {
      INTERNAL: "internal",
      INTERNET_FACING: "internet-facing"
    };
    var LoadBalancerTypeEnum = {
      APPLICATION: "application",
      GATEWAY: "gateway",
      NETWORK: "network"
    };
    var LoadBalancerStateEnum = {
      ACTIVE: "active",
      ACTIVE_IMPAIRED: "active_impaired",
      FAILED: "failed",
      PROVISIONING: "provisioning"
    };
    var DuplicateLoadBalancerNameException = class _DuplicateLoadBalancerNameException extends ElasticLoadBalancingV2ServiceException {
      static {
        __name(this, "_DuplicateLoadBalancerNameException");
      }
      static {
        __name2(this, "DuplicateLoadBalancerNameException");
      }
      name = "DuplicateLoadBalancerNameException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "DuplicateLoadBalancerNameException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _DuplicateLoadBalancerNameException.prototype);
        this.Message = opts.Message;
      }
    };
    var InvalidSchemeException = class _InvalidSchemeException extends ElasticLoadBalancingV2ServiceException {
      static {
        __name(this, "_InvalidSchemeException");
      }
      static {
        __name2(this, "InvalidSchemeException");
      }
      name = "InvalidSchemeException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidSchemeException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidSchemeException.prototype);
        this.Message = opts.Message;
      }
    };
    var InvalidSecurityGroupException = class _InvalidSecurityGroupException extends ElasticLoadBalancingV2ServiceException {
      static {
        __name(this, "_InvalidSecurityGroupException");
      }
      static {
        __name2(this, "InvalidSecurityGroupException");
      }
      name = "InvalidSecurityGroupException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidSecurityGroupException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidSecurityGroupException.prototype);
        this.Message = opts.Message;
      }
    };
    var InvalidSubnetException = class _InvalidSubnetException extends ElasticLoadBalancingV2ServiceException {
      static {
        __name(this, "_InvalidSubnetException");
      }
      static {
        __name2(this, "InvalidSubnetException");
      }
      name = "InvalidSubnetException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidSubnetException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidSubnetException.prototype);
        this.Message = opts.Message;
      }
    };
    var OperationNotPermittedException = class _OperationNotPermittedException extends ElasticLoadBalancingV2ServiceException {
      static {
        __name(this, "_OperationNotPermittedException");
      }
      static {
        __name2(this, "OperationNotPermittedException");
      }
      name = "OperationNotPermittedException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "OperationNotPermittedException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _OperationNotPermittedException.prototype);
        this.Message = opts.Message;
      }
    };
    var ResourceInUseException = class _ResourceInUseException extends ElasticLoadBalancingV2ServiceException {
      static {
        __name(this, "_ResourceInUseException");
      }
      static {
        __name2(this, "ResourceInUseException");
      }
      name = "ResourceInUseException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ResourceInUseException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ResourceInUseException.prototype);
        this.Message = opts.Message;
      }
    };
    var SubnetNotFoundException = class _SubnetNotFoundException extends ElasticLoadBalancingV2ServiceException {
      static {
        __name(this, "_SubnetNotFoundException");
      }
      static {
        __name2(this, "SubnetNotFoundException");
      }
      name = "SubnetNotFoundException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "SubnetNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _SubnetNotFoundException.prototype);
        this.Message = opts.Message;
      }
    };
    var TooManyLoadBalancersException = class _TooManyLoadBalancersException extends ElasticLoadBalancingV2ServiceException {
      static {
        __name(this, "_TooManyLoadBalancersException");
      }
      static {
        __name2(this, "TooManyLoadBalancersException");
      }
      name = "TooManyLoadBalancersException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "TooManyLoadBalancersException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _TooManyLoadBalancersException.prototype);
        this.Message = opts.Message;
      }
    };
    var PriorityInUseException = class _PriorityInUseException extends ElasticLoadBalancingV2ServiceException {
      static {
        __name(this, "_PriorityInUseException");
      }
      static {
        __name2(this, "PriorityInUseException");
      }
      name = "PriorityInUseException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "PriorityInUseException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _PriorityInUseException.prototype);
        this.Message = opts.Message;
      }
    };
    var TooManyRulesException = class _TooManyRulesException extends ElasticLoadBalancingV2ServiceException {
      static {
        __name(this, "_TooManyRulesException");
      }
      static {
        __name2(this, "TooManyRulesException");
      }
      name = "TooManyRulesException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "TooManyRulesException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _TooManyRulesException.prototype);
        this.Message = opts.Message;
      }
    };
    var TooManyTargetGroupsException = class _TooManyTargetGroupsException extends ElasticLoadBalancingV2ServiceException {
      static {
        __name(this, "_TooManyTargetGroupsException");
      }
      static {
        __name2(this, "TooManyTargetGroupsException");
      }
      name = "TooManyTargetGroupsException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "TooManyTargetGroupsException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _TooManyTargetGroupsException.prototype);
        this.Message = opts.Message;
      }
    };
    var TargetGroupIpAddressTypeEnum = {
      IPV4: "ipv4",
      IPV6: "ipv6"
    };
    var TargetTypeEnum = {
      ALB: "alb",
      INSTANCE: "instance",
      IP: "ip",
      LAMBDA: "lambda"
    };
    var DuplicateTargetGroupNameException = class _DuplicateTargetGroupNameException extends ElasticLoadBalancingV2ServiceException {
      static {
        __name(this, "_DuplicateTargetGroupNameException");
      }
      static {
        __name2(this, "DuplicateTargetGroupNameException");
      }
      name = "DuplicateTargetGroupNameException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "DuplicateTargetGroupNameException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _DuplicateTargetGroupNameException.prototype);
        this.Message = opts.Message;
      }
    };
    var TrustStoreStatus = {
      ACTIVE: "ACTIVE",
      CREATING: "CREATING"
    };
    var DuplicateTrustStoreNameException = class _DuplicateTrustStoreNameException extends ElasticLoadBalancingV2ServiceException {
      static {
        __name(this, "_DuplicateTrustStoreNameException");
      }
      static {
        __name2(this, "DuplicateTrustStoreNameException");
      }
      name = "DuplicateTrustStoreNameException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "DuplicateTrustStoreNameException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _DuplicateTrustStoreNameException.prototype);
        this.Message = opts.Message;
      }
    };
    var InvalidCaCertificatesBundleException = class _InvalidCaCertificatesBundleException extends ElasticLoadBalancingV2ServiceException {
      static {
        __name(this, "_InvalidCaCertificatesBundleException");
      }
      static {
        __name2(this, "InvalidCaCertificatesBundleException");
      }
      name = "InvalidCaCertificatesBundleException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidCaCertificatesBundleException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidCaCertificatesBundleException.prototype);
        this.Message = opts.Message;
      }
    };
    var TooManyTrustStoresException = class _TooManyTrustStoresException extends ElasticLoadBalancingV2ServiceException {
      static {
        __name(this, "_TooManyTrustStoresException");
      }
      static {
        __name2(this, "TooManyTrustStoresException");
      }
      name = "TooManyTrustStoresException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "TooManyTrustStoresException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _TooManyTrustStoresException.prototype);
        this.Message = opts.Message;
      }
    };
    var DeleteAssociationSameAccountException = class _DeleteAssociationSameAccountException extends ElasticLoadBalancingV2ServiceException {
      static {
        __name(this, "_DeleteAssociationSameAccountException");
      }
      static {
        __name2(this, "DeleteAssociationSameAccountException");
      }
      name = "DeleteAssociationSameAccountException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "DeleteAssociationSameAccountException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _DeleteAssociationSameAccountException.prototype);
        this.Message = opts.Message;
      }
    };
    var TrustStoreAssociationNotFoundException = class _TrustStoreAssociationNotFoundException extends ElasticLoadBalancingV2ServiceException {
      static {
        __name(this, "_TrustStoreAssociationNotFoundException");
      }
      static {
        __name2(this, "TrustStoreAssociationNotFoundException");
      }
      name = "TrustStoreAssociationNotFoundException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "TrustStoreAssociationNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _TrustStoreAssociationNotFoundException.prototype);
        this.Message = opts.Message;
      }
    };
    var TrustStoreInUseException = class _TrustStoreInUseException extends ElasticLoadBalancingV2ServiceException {
      static {
        __name(this, "_TrustStoreInUseException");
      }
      static {
        __name2(this, "TrustStoreInUseException");
      }
      name = "TrustStoreInUseException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "TrustStoreInUseException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _TrustStoreInUseException.prototype);
        this.Message = opts.Message;
      }
    };
    var InvalidTargetException = class _InvalidTargetException extends ElasticLoadBalancingV2ServiceException {
      static {
        __name(this, "_InvalidTargetException");
      }
      static {
        __name2(this, "InvalidTargetException");
      }
      name = "InvalidTargetException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidTargetException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidTargetException.prototype);
        this.Message = opts.Message;
      }
    };
    var DescribeTargetHealthInputIncludeEnum = {
      ALL: "All",
      ANOMALY: "AnomalyDetection"
    };
    var TargetHealthReasonEnum = {
      DEREGISTRATION_IN_PROGRESS: "Target.DeregistrationInProgress",
      FAILED_HEALTH_CHECKS: "Target.FailedHealthChecks",
      HEALTH_CHECK_DISABLED: "Target.HealthCheckDisabled",
      INITIAL_HEALTH_CHECKING: "Elb.InitialHealthChecking",
      INTERNAL_ERROR: "Elb.InternalError",
      INVALID_STATE: "Target.InvalidState",
      IP_UNUSABLE: "Target.IpUnusable",
      NOT_IN_USE: "Target.NotInUse",
      NOT_REGISTERED: "Target.NotRegistered",
      REGISTRATION_IN_PROGRESS: "Elb.RegistrationInProgress",
      RESPONSE_CODE_MISMATCH: "Target.ResponseCodeMismatch",
      TIMEOUT: "Target.Timeout"
    };
    var TargetHealthStateEnum = {
      DRAINING: "draining",
      HEALTHY: "healthy",
      INITIAL: "initial",
      UNAVAILABLE: "unavailable",
      UNHEALTHY: "unhealthy",
      UNHEALTHY_DRAINING: "unhealthy.draining",
      UNUSED: "unused"
    };
    var HealthUnavailableException = class _HealthUnavailableException extends ElasticLoadBalancingV2ServiceException {
      static {
        __name(this, "_HealthUnavailableException");
      }
      static {
        __name2(this, "HealthUnavailableException");
      }
      name = "HealthUnavailableException";
      $fault = "server";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "HealthUnavailableException",
          $fault: "server",
          ...opts
        });
        Object.setPrototypeOf(this, _HealthUnavailableException.prototype);
        this.Message = opts.Message;
      }
    };
    var RevocationIdNotFoundException = class _RevocationIdNotFoundException extends ElasticLoadBalancingV2ServiceException {
      static {
        __name(this, "_RevocationIdNotFoundException");
      }
      static {
        __name2(this, "RevocationIdNotFoundException");
      }
      name = "RevocationIdNotFoundException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "RevocationIdNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _RevocationIdNotFoundException.prototype);
        this.Message = opts.Message;
      }
    };
    var ResourceNotFoundException2 = class _ResourceNotFoundException extends ElasticLoadBalancingV2ServiceException {
      static {
        __name(this, "_ResourceNotFoundException");
      }
      static {
        __name2(this, "ResourceNotFoundException");
      }
      name = "ResourceNotFoundException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ResourceNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
        this.Message = opts.Message;
      }
    };
    var InsufficientCapacityException = class _InsufficientCapacityException extends ElasticLoadBalancingV2ServiceException {
      static {
        __name(this, "_InsufficientCapacityException");
      }
      static {
        __name2(this, "InsufficientCapacityException");
      }
      name = "InsufficientCapacityException";
      $fault = "server";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InsufficientCapacityException",
          $fault: "server",
          ...opts
        });
        Object.setPrototypeOf(this, _InsufficientCapacityException.prototype);
        this.Message = opts.Message;
      }
    };
    var PriorRequestNotCompleteException = class _PriorRequestNotCompleteException extends ElasticLoadBalancingV2ServiceException {
      static {
        __name(this, "_PriorRequestNotCompleteException");
      }
      static {
        __name2(this, "PriorRequestNotCompleteException");
      }
      name = "PriorRequestNotCompleteException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "PriorRequestNotCompleteException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _PriorRequestNotCompleteException.prototype);
        this.Message = opts.Message;
      }
    };
    var RemoveIpamPoolEnum = {
      ipv4: "ipv4"
    };
    var EnforceSecurityGroupInboundRulesOnPrivateLinkTrafficEnum = {
      off: "off",
      on: "on"
    };
    var se_AddListenerCertificatesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_AddListenerCertificatesInput(input, context),
        [_A2]: _ALC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AddListenerCertificatesCommand");
    var se_AddTagsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_AddTagsInput(input, context),
        [_A2]: _AT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AddTagsCommand");
    var se_AddTrustStoreRevocationsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_AddTrustStoreRevocationsInput(input, context),
        [_A2]: _ATSR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AddTrustStoreRevocationsCommand");
    var se_CreateListenerCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateListenerInput(input, context),
        [_A2]: _CL,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateListenerCommand");
    var se_CreateLoadBalancerCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateLoadBalancerInput(input, context),
        [_A2]: _CLB,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateLoadBalancerCommand");
    var se_CreateRuleCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateRuleInput(input, context),
        [_A2]: _CR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateRuleCommand");
    var se_CreateTargetGroupCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateTargetGroupInput(input, context),
        [_A2]: _CTG,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateTargetGroupCommand");
    var se_CreateTrustStoreCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateTrustStoreInput(input, context),
        [_A2]: _CTS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateTrustStoreCommand");
    var se_DeleteListenerCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteListenerInput(input, context),
        [_A2]: _DL,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteListenerCommand");
    var se_DeleteLoadBalancerCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteLoadBalancerInput(input, context),
        [_A2]: _DLB,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteLoadBalancerCommand");
    var se_DeleteRuleCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteRuleInput(input, context),
        [_A2]: _DR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteRuleCommand");
    var se_DeleteSharedTrustStoreAssociationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteSharedTrustStoreAssociationInput(input, context),
        [_A2]: _DSTSA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteSharedTrustStoreAssociationCommand");
    var se_DeleteTargetGroupCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteTargetGroupInput(input, context),
        [_A2]: _DTG,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteTargetGroupCommand");
    var se_DeleteTrustStoreCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteTrustStoreInput(input, context),
        [_A2]: _DTS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteTrustStoreCommand");
    var se_DeregisterTargetsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeregisterTargetsInput(input, context),
        [_A2]: _DT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeregisterTargetsCommand");
    var se_DescribeAccountLimitsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeAccountLimitsInput(input, context),
        [_A2]: _DAL,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeAccountLimitsCommand");
    var se_DescribeCapacityReservationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeCapacityReservationInput(input, context),
        [_A2]: _DCR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeCapacityReservationCommand");
    var se_DescribeListenerAttributesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeListenerAttributesInput(input, context),
        [_A2]: _DLA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeListenerAttributesCommand");
    var se_DescribeListenerCertificatesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeListenerCertificatesInput(input, context),
        [_A2]: _DLC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeListenerCertificatesCommand");
    var se_DescribeListenersCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeListenersInput(input, context),
        [_A2]: _DLe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeListenersCommand");
    var se_DescribeLoadBalancerAttributesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeLoadBalancerAttributesInput(input, context),
        [_A2]: _DLBA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeLoadBalancerAttributesCommand");
    var se_DescribeLoadBalancersCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeLoadBalancersInput(input, context),
        [_A2]: _DLBe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeLoadBalancersCommand");
    var se_DescribeRulesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeRulesInput(input, context),
        [_A2]: _DRe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeRulesCommand");
    var se_DescribeSSLPoliciesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeSSLPoliciesInput(input, context),
        [_A2]: _DSSLP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeSSLPoliciesCommand");
    var se_DescribeTagsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeTagsInput(input, context),
        [_A2]: _DTe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeTagsCommand");
    var se_DescribeTargetGroupAttributesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeTargetGroupAttributesInput(input, context),
        [_A2]: _DTGA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeTargetGroupAttributesCommand");
    var se_DescribeTargetGroupsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeTargetGroupsInput(input, context),
        [_A2]: _DTGe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeTargetGroupsCommand");
    var se_DescribeTargetHealthCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeTargetHealthInput(input, context),
        [_A2]: _DTH,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeTargetHealthCommand");
    var se_DescribeTrustStoreAssociationsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeTrustStoreAssociationsInput(input, context),
        [_A2]: _DTSA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeTrustStoreAssociationsCommand");
    var se_DescribeTrustStoreRevocationsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeTrustStoreRevocationsInput(input, context),
        [_A2]: _DTSR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeTrustStoreRevocationsCommand");
    var se_DescribeTrustStoresCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DescribeTrustStoresInput(input, context),
        [_A2]: _DTSe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeTrustStoresCommand");
    var se_GetResourcePolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetResourcePolicyInput(input, context),
        [_A2]: _GRP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetResourcePolicyCommand");
    var se_GetTrustStoreCaCertificatesBundleCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetTrustStoreCaCertificatesBundleInput(input, context),
        [_A2]: _GTSCCB,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetTrustStoreCaCertificatesBundleCommand");
    var se_GetTrustStoreRevocationContentCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetTrustStoreRevocationContentInput(input, context),
        [_A2]: _GTSRC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetTrustStoreRevocationContentCommand");
    var se_ModifyCapacityReservationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyCapacityReservationInput(input, context),
        [_A2]: _MCR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyCapacityReservationCommand");
    var se_ModifyIpPoolsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyIpPoolsInput(input, context),
        [_A2]: _MIP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyIpPoolsCommand");
    var se_ModifyListenerCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyListenerInput(input, context),
        [_A2]: _ML,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyListenerCommand");
    var se_ModifyListenerAttributesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyListenerAttributesInput(input, context),
        [_A2]: _MLA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyListenerAttributesCommand");
    var se_ModifyLoadBalancerAttributesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyLoadBalancerAttributesInput(input, context),
        [_A2]: _MLBA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyLoadBalancerAttributesCommand");
    var se_ModifyRuleCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyRuleInput(input, context),
        [_A2]: _MR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyRuleCommand");
    var se_ModifyTargetGroupCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyTargetGroupInput(input, context),
        [_A2]: _MTG,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyTargetGroupCommand");
    var se_ModifyTargetGroupAttributesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyTargetGroupAttributesInput(input, context),
        [_A2]: _MTGA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyTargetGroupAttributesCommand");
    var se_ModifyTrustStoreCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ModifyTrustStoreInput(input, context),
        [_A2]: _MTS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyTrustStoreCommand");
    var se_RegisterTargetsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_RegisterTargetsInput(input, context),
        [_A2]: _RT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_RegisterTargetsCommand");
    var se_RemoveListenerCertificatesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_RemoveListenerCertificatesInput(input, context),
        [_A2]: _RLC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_RemoveListenerCertificatesCommand");
    var se_RemoveTagsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_RemoveTagsInput(input, context),
        [_A2]: _RTe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_RemoveTagsCommand");
    var se_RemoveTrustStoreRevocationsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_RemoveTrustStoreRevocationsInput(input, context),
        [_A2]: _RTSR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_RemoveTrustStoreRevocationsCommand");
    var se_SetIpAddressTypeCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_SetIpAddressTypeInput(input, context),
        [_A2]: _SIAT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_SetIpAddressTypeCommand");
    var se_SetRulePrioritiesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_SetRulePrioritiesInput(input, context),
        [_A2]: _SRP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_SetRulePrioritiesCommand");
    var se_SetSecurityGroupsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_SetSecurityGroupsInput(input, context),
        [_A2]: _SSG,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_SetSecurityGroupsCommand");
    var se_SetSubnetsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_SetSubnetsInput(input, context),
        [_A2]: _SS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_SetSubnetsCommand");
    var de_AddListenerCertificatesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_AddListenerCertificatesOutput(data3.AddListenerCertificatesResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_AddListenerCertificatesCommand");
    var de_AddTagsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_AddTagsOutput(data3.AddTagsResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_AddTagsCommand");
    var de_AddTrustStoreRevocationsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_AddTrustStoreRevocationsOutput(data3.AddTrustStoreRevocationsResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_AddTrustStoreRevocationsCommand");
    var de_CreateListenerCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateListenerOutput(data3.CreateListenerResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateListenerCommand");
    var de_CreateLoadBalancerCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateLoadBalancerOutput(data3.CreateLoadBalancerResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateLoadBalancerCommand");
    var de_CreateRuleCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateRuleOutput(data3.CreateRuleResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateRuleCommand");
    var de_CreateTargetGroupCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateTargetGroupOutput(data3.CreateTargetGroupResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateTargetGroupCommand");
    var de_CreateTrustStoreCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateTrustStoreOutput(data3.CreateTrustStoreResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateTrustStoreCommand");
    var de_DeleteListenerCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteListenerOutput(data3.DeleteListenerResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteListenerCommand");
    var de_DeleteLoadBalancerCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteLoadBalancerOutput(data3.DeleteLoadBalancerResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteLoadBalancerCommand");
    var de_DeleteRuleCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteRuleOutput(data3.DeleteRuleResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteRuleCommand");
    var de_DeleteSharedTrustStoreAssociationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteSharedTrustStoreAssociationOutput(data3.DeleteSharedTrustStoreAssociationResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteSharedTrustStoreAssociationCommand");
    var de_DeleteTargetGroupCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteTargetGroupOutput(data3.DeleteTargetGroupResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteTargetGroupCommand");
    var de_DeleteTrustStoreCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteTrustStoreOutput(data3.DeleteTrustStoreResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteTrustStoreCommand");
    var de_DeregisterTargetsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeregisterTargetsOutput(data3.DeregisterTargetsResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeregisterTargetsCommand");
    var de_DescribeAccountLimitsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeAccountLimitsOutput(data3.DescribeAccountLimitsResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeAccountLimitsCommand");
    var de_DescribeCapacityReservationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeCapacityReservationOutput(data3.DescribeCapacityReservationResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeCapacityReservationCommand");
    var de_DescribeListenerAttributesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeListenerAttributesOutput(data3.DescribeListenerAttributesResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeListenerAttributesCommand");
    var de_DescribeListenerCertificatesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeListenerCertificatesOutput(data3.DescribeListenerCertificatesResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeListenerCertificatesCommand");
    var de_DescribeListenersCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeListenersOutput(data3.DescribeListenersResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeListenersCommand");
    var de_DescribeLoadBalancerAttributesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeLoadBalancerAttributesOutput(data3.DescribeLoadBalancerAttributesResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeLoadBalancerAttributesCommand");
    var de_DescribeLoadBalancersCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeLoadBalancersOutput(data3.DescribeLoadBalancersResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeLoadBalancersCommand");
    var de_DescribeRulesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeRulesOutput(data3.DescribeRulesResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeRulesCommand");
    var de_DescribeSSLPoliciesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeSSLPoliciesOutput(data3.DescribeSSLPoliciesResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeSSLPoliciesCommand");
    var de_DescribeTagsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeTagsOutput(data3.DescribeTagsResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeTagsCommand");
    var de_DescribeTargetGroupAttributesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeTargetGroupAttributesOutput(data3.DescribeTargetGroupAttributesResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeTargetGroupAttributesCommand");
    var de_DescribeTargetGroupsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeTargetGroupsOutput(data3.DescribeTargetGroupsResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeTargetGroupsCommand");
    var de_DescribeTargetHealthCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeTargetHealthOutput(data3.DescribeTargetHealthResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeTargetHealthCommand");
    var de_DescribeTrustStoreAssociationsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeTrustStoreAssociationsOutput(data3.DescribeTrustStoreAssociationsResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeTrustStoreAssociationsCommand");
    var de_DescribeTrustStoreRevocationsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeTrustStoreRevocationsOutput(data3.DescribeTrustStoreRevocationsResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeTrustStoreRevocationsCommand");
    var de_DescribeTrustStoresCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DescribeTrustStoresOutput(data3.DescribeTrustStoresResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeTrustStoresCommand");
    var de_GetResourcePolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetResourcePolicyOutput(data3.GetResourcePolicyResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetResourcePolicyCommand");
    var de_GetTrustStoreCaCertificatesBundleCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetTrustStoreCaCertificatesBundleOutput(data3.GetTrustStoreCaCertificatesBundleResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetTrustStoreCaCertificatesBundleCommand");
    var de_GetTrustStoreRevocationContentCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetTrustStoreRevocationContentOutput(data3.GetTrustStoreRevocationContentResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetTrustStoreRevocationContentCommand");
    var de_ModifyCapacityReservationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyCapacityReservationOutput(data3.ModifyCapacityReservationResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyCapacityReservationCommand");
    var de_ModifyIpPoolsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyIpPoolsOutput(data3.ModifyIpPoolsResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyIpPoolsCommand");
    var de_ModifyListenerCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyListenerOutput(data3.ModifyListenerResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyListenerCommand");
    var de_ModifyListenerAttributesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyListenerAttributesOutput(data3.ModifyListenerAttributesResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyListenerAttributesCommand");
    var de_ModifyLoadBalancerAttributesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyLoadBalancerAttributesOutput(data3.ModifyLoadBalancerAttributesResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyLoadBalancerAttributesCommand");
    var de_ModifyRuleCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyRuleOutput(data3.ModifyRuleResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyRuleCommand");
    var de_ModifyTargetGroupCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyTargetGroupOutput(data3.ModifyTargetGroupResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyTargetGroupCommand");
    var de_ModifyTargetGroupAttributesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyTargetGroupAttributesOutput(data3.ModifyTargetGroupAttributesResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyTargetGroupAttributesCommand");
    var de_ModifyTrustStoreCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ModifyTrustStoreOutput(data3.ModifyTrustStoreResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyTrustStoreCommand");
    var de_RegisterTargetsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_RegisterTargetsOutput(data3.RegisterTargetsResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_RegisterTargetsCommand");
    var de_RemoveListenerCertificatesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_RemoveListenerCertificatesOutput(data3.RemoveListenerCertificatesResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_RemoveListenerCertificatesCommand");
    var de_RemoveTagsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_RemoveTagsOutput(data3.RemoveTagsResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_RemoveTagsCommand");
    var de_RemoveTrustStoreRevocationsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_RemoveTrustStoreRevocationsOutput(data3.RemoveTrustStoreRevocationsResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_RemoveTrustStoreRevocationsCommand");
    var de_SetIpAddressTypeCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_SetIpAddressTypeOutput(data3.SetIpAddressTypeResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_SetIpAddressTypeCommand");
    var de_SetRulePrioritiesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_SetRulePrioritiesOutput(data3.SetRulePrioritiesResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_SetRulePrioritiesCommand");
    var de_SetSecurityGroupsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_SetSecurityGroupsOutput(data3.SetSecurityGroupsResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_SetSecurityGroupsCommand");
    var de_SetSubnetsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_SetSubnetsOutput(data3.SetSubnetsResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_SetSubnetsCommand");
    var de_CommandError3 = /* @__PURE__ */ __name2(async (output, context) => {
      const parsedOutput = {
        ...output,
        body: await (0, import_core22.parseXmlErrorBody)(output.body, context)
      };
      const errorCode = loadQueryErrorCode2(output, parsedOutput.body);
      switch (errorCode) {
        case "CertificateNotFound":
        case "com.amazonaws.elasticloadbalancingv2#CertificateNotFoundException":
          throw await de_CertificateNotFoundExceptionRes(parsedOutput, context);
        case "ListenerNotFound":
        case "com.amazonaws.elasticloadbalancingv2#ListenerNotFoundException":
          throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
        case "TooManyCertificates":
        case "com.amazonaws.elasticloadbalancingv2#TooManyCertificatesException":
          throw await de_TooManyCertificatesExceptionRes(parsedOutput, context);
        case "DuplicateTagKeys":
        case "com.amazonaws.elasticloadbalancingv2#DuplicateTagKeysException":
          throw await de_DuplicateTagKeysExceptionRes(parsedOutput, context);
        case "LoadBalancerNotFound":
        case "com.amazonaws.elasticloadbalancingv2#LoadBalancerNotFoundException":
          throw await de_LoadBalancerNotFoundExceptionRes(parsedOutput, context);
        case "RuleNotFound":
        case "com.amazonaws.elasticloadbalancingv2#RuleNotFoundException":
          throw await de_RuleNotFoundExceptionRes(parsedOutput, context);
        case "TargetGroupNotFound":
        case "com.amazonaws.elasticloadbalancingv2#TargetGroupNotFoundException":
          throw await de_TargetGroupNotFoundExceptionRes(parsedOutput, context);
        case "TooManyTags":
        case "com.amazonaws.elasticloadbalancingv2#TooManyTagsException":
          throw await de_TooManyTagsExceptionRes(parsedOutput, context);
        case "TrustStoreNotFound":
        case "com.amazonaws.elasticloadbalancingv2#TrustStoreNotFoundException":
          throw await de_TrustStoreNotFoundExceptionRes(parsedOutput, context);
        case "InvalidRevocationContent":
        case "com.amazonaws.elasticloadbalancingv2#InvalidRevocationContentException":
          throw await de_InvalidRevocationContentExceptionRes(parsedOutput, context);
        case "RevocationContentNotFound":
        case "com.amazonaws.elasticloadbalancingv2#RevocationContentNotFoundException":
          throw await de_RevocationContentNotFoundExceptionRes(parsedOutput, context);
        case "TooManyTrustStoreRevocationEntries":
        case "com.amazonaws.elasticloadbalancingv2#TooManyTrustStoreRevocationEntriesException":
          throw await de_TooManyTrustStoreRevocationEntriesExceptionRes(parsedOutput, context);
        case "ALPNPolicyNotFound":
        case "com.amazonaws.elasticloadbalancingv2#ALPNPolicyNotSupportedException":
          throw await de_ALPNPolicyNotSupportedExceptionRes(parsedOutput, context);
        case "DuplicateListener":
        case "com.amazonaws.elasticloadbalancingv2#DuplicateListenerException":
          throw await de_DuplicateListenerExceptionRes(parsedOutput, context);
        case "IncompatibleProtocols":
        case "com.amazonaws.elasticloadbalancingv2#IncompatibleProtocolsException":
          throw await de_IncompatibleProtocolsExceptionRes(parsedOutput, context);
        case "InvalidConfigurationRequest":
        case "com.amazonaws.elasticloadbalancingv2#InvalidConfigurationRequestException":
          throw await de_InvalidConfigurationRequestExceptionRes(parsedOutput, context);
        case "InvalidLoadBalancerAction":
        case "com.amazonaws.elasticloadbalancingv2#InvalidLoadBalancerActionException":
          throw await de_InvalidLoadBalancerActionExceptionRes(parsedOutput, context);
        case "SSLPolicyNotFound":
        case "com.amazonaws.elasticloadbalancingv2#SSLPolicyNotFoundException":
          throw await de_SSLPolicyNotFoundExceptionRes(parsedOutput, context);
        case "TargetGroupAssociationLimit":
        case "com.amazonaws.elasticloadbalancingv2#TargetGroupAssociationLimitException":
          throw await de_TargetGroupAssociationLimitExceptionRes(parsedOutput, context);
        case "TooManyActions":
        case "com.amazonaws.elasticloadbalancingv2#TooManyActionsException":
          throw await de_TooManyActionsExceptionRes(parsedOutput, context);
        case "TooManyListeners":
        case "com.amazonaws.elasticloadbalancingv2#TooManyListenersException":
          throw await de_TooManyListenersExceptionRes(parsedOutput, context);
        case "TooManyRegistrationsForTargetId":
        case "com.amazonaws.elasticloadbalancingv2#TooManyRegistrationsForTargetIdException":
          throw await de_TooManyRegistrationsForTargetIdExceptionRes(parsedOutput, context);
        case "TooManyTargets":
        case "com.amazonaws.elasticloadbalancingv2#TooManyTargetsException":
          throw await de_TooManyTargetsExceptionRes(parsedOutput, context);
        case "TooManyUniqueTargetGroupsPerLoadBalancer":
        case "com.amazonaws.elasticloadbalancingv2#TooManyUniqueTargetGroupsPerLoadBalancerException":
          throw await de_TooManyUniqueTargetGroupsPerLoadBalancerExceptionRes(parsedOutput, context);
        case "TrustStoreNotReady":
        case "com.amazonaws.elasticloadbalancingv2#TrustStoreNotReadyException":
          throw await de_TrustStoreNotReadyExceptionRes(parsedOutput, context);
        case "UnsupportedProtocol":
        case "com.amazonaws.elasticloadbalancingv2#UnsupportedProtocolException":
          throw await de_UnsupportedProtocolExceptionRes(parsedOutput, context);
        case "AllocationIdNotFound":
        case "com.amazonaws.elasticloadbalancingv2#AllocationIdNotFoundException":
          throw await de_AllocationIdNotFoundExceptionRes(parsedOutput, context);
        case "AvailabilityZoneNotSupported":
        case "com.amazonaws.elasticloadbalancingv2#AvailabilityZoneNotSupportedException":
          throw await de_AvailabilityZoneNotSupportedExceptionRes(parsedOutput, context);
        case "DuplicateLoadBalancerName":
        case "com.amazonaws.elasticloadbalancingv2#DuplicateLoadBalancerNameException":
          throw await de_DuplicateLoadBalancerNameExceptionRes(parsedOutput, context);
        case "InvalidScheme":
        case "com.amazonaws.elasticloadbalancingv2#InvalidSchemeException":
          throw await de_InvalidSchemeExceptionRes(parsedOutput, context);
        case "InvalidSecurityGroup":
        case "com.amazonaws.elasticloadbalancingv2#InvalidSecurityGroupException":
          throw await de_InvalidSecurityGroupExceptionRes(parsedOutput, context);
        case "InvalidSubnet":
        case "com.amazonaws.elasticloadbalancingv2#InvalidSubnetException":
          throw await de_InvalidSubnetExceptionRes(parsedOutput, context);
        case "OperationNotPermitted":
        case "com.amazonaws.elasticloadbalancingv2#OperationNotPermittedException":
          throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
        case "ResourceInUse":
        case "com.amazonaws.elasticloadbalancingv2#ResourceInUseException":
          throw await de_ResourceInUseExceptionRes(parsedOutput, context);
        case "SubnetNotFound":
        case "com.amazonaws.elasticloadbalancingv2#SubnetNotFoundException":
          throw await de_SubnetNotFoundExceptionRes(parsedOutput, context);
        case "TooManyLoadBalancers":
        case "com.amazonaws.elasticloadbalancingv2#TooManyLoadBalancersException":
          throw await de_TooManyLoadBalancersExceptionRes(parsedOutput, context);
        case "PriorityInUse":
        case "com.amazonaws.elasticloadbalancingv2#PriorityInUseException":
          throw await de_PriorityInUseExceptionRes(parsedOutput, context);
        case "TooManyRules":
        case "com.amazonaws.elasticloadbalancingv2#TooManyRulesException":
          throw await de_TooManyRulesExceptionRes(parsedOutput, context);
        case "TooManyTargetGroups":
        case "com.amazonaws.elasticloadbalancingv2#TooManyTargetGroupsException":
          throw await de_TooManyTargetGroupsExceptionRes(parsedOutput, context);
        case "DuplicateTargetGroupName":
        case "com.amazonaws.elasticloadbalancingv2#DuplicateTargetGroupNameException":
          throw await de_DuplicateTargetGroupNameExceptionRes(parsedOutput, context);
        case "CaCertificatesBundleNotFound":
        case "com.amazonaws.elasticloadbalancingv2#CaCertificatesBundleNotFoundException":
          throw await de_CaCertificatesBundleNotFoundExceptionRes(parsedOutput, context);
        case "DuplicateTrustStoreName":
        case "com.amazonaws.elasticloadbalancingv2#DuplicateTrustStoreNameException":
          throw await de_DuplicateTrustStoreNameExceptionRes(parsedOutput, context);
        case "InvalidCaCertificatesBundle":
        case "com.amazonaws.elasticloadbalancingv2#InvalidCaCertificatesBundleException":
          throw await de_InvalidCaCertificatesBundleExceptionRes(parsedOutput, context);
        case "TooManyTrustStores":
        case "com.amazonaws.elasticloadbalancingv2#TooManyTrustStoresException":
          throw await de_TooManyTrustStoresExceptionRes(parsedOutput, context);
        case "AssociationNotFound":
        case "com.amazonaws.elasticloadbalancingv2#TrustStoreAssociationNotFoundException":
          throw await de_TrustStoreAssociationNotFoundExceptionRes(parsedOutput, context);
        case "DeleteAssociationSameAccount":
        case "com.amazonaws.elasticloadbalancingv2#DeleteAssociationSameAccountException":
          throw await de_DeleteAssociationSameAccountExceptionRes(parsedOutput, context);
        case "TrustStoreInUse":
        case "com.amazonaws.elasticloadbalancingv2#TrustStoreInUseException":
          throw await de_TrustStoreInUseExceptionRes(parsedOutput, context);
        case "InvalidTarget":
        case "com.amazonaws.elasticloadbalancingv2#InvalidTargetException":
          throw await de_InvalidTargetExceptionRes(parsedOutput, context);
        case "HealthUnavailable":
        case "com.amazonaws.elasticloadbalancingv2#HealthUnavailableException":
          throw await de_HealthUnavailableExceptionRes(parsedOutput, context);
        case "RevocationIdNotFound":
        case "com.amazonaws.elasticloadbalancingv2#RevocationIdNotFoundException":
          throw await de_RevocationIdNotFoundExceptionRes(parsedOutput, context);
        case "ResourceNotFound":
        case "com.amazonaws.elasticloadbalancingv2#ResourceNotFoundException":
          throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
        case "CapacityDecreaseRequestLimitExceeded":
        case "com.amazonaws.elasticloadbalancingv2#CapacityDecreaseRequestsLimitExceededException":
          throw await de_CapacityDecreaseRequestsLimitExceededExceptionRes(parsedOutput, context);
        case "CapacityReservationPending":
        case "com.amazonaws.elasticloadbalancingv2#CapacityReservationPendingException":
          throw await de_CapacityReservationPendingExceptionRes(parsedOutput, context);
        case "CapacityUnitsLimitExceeded":
        case "com.amazonaws.elasticloadbalancingv2#CapacityUnitsLimitExceededException":
          throw await de_CapacityUnitsLimitExceededExceptionRes(parsedOutput, context);
        case "InsufficientCapacity":
        case "com.amazonaws.elasticloadbalancingv2#InsufficientCapacityException":
          throw await de_InsufficientCapacityExceptionRes(parsedOutput, context);
        case "PriorRequestNotComplete":
        case "com.amazonaws.elasticloadbalancingv2#PriorRequestNotCompleteException":
          throw await de_PriorRequestNotCompleteExceptionRes(parsedOutput, context);
        default:
          const parsedBody = parsedOutput.body;
          return throwDefaultError3({
            output,
            parsedBody: parsedBody.Error,
            errorCode
          });
      }
    }, "de_CommandError");
    var de_AllocationIdNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_AllocationIdNotFoundException(body.Error, context);
      const exception = new AllocationIdNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_AllocationIdNotFoundExceptionRes");
    var de_ALPNPolicyNotSupportedExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_ALPNPolicyNotSupportedException(body.Error, context);
      const exception = new ALPNPolicyNotSupportedException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ALPNPolicyNotSupportedExceptionRes");
    var de_AvailabilityZoneNotSupportedExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_AvailabilityZoneNotSupportedException(body.Error, context);
      const exception = new AvailabilityZoneNotSupportedException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_AvailabilityZoneNotSupportedExceptionRes");
    var de_CaCertificatesBundleNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_CaCertificatesBundleNotFoundException(body.Error, context);
      const exception = new CaCertificatesBundleNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_CaCertificatesBundleNotFoundExceptionRes");
    var de_CapacityDecreaseRequestsLimitExceededExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_CapacityDecreaseRequestsLimitExceededException(body.Error, context);
      const exception = new CapacityDecreaseRequestsLimitExceededException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_CapacityDecreaseRequestsLimitExceededExceptionRes");
    var de_CapacityReservationPendingExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_CapacityReservationPendingException(body.Error, context);
      const exception = new CapacityReservationPendingException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_CapacityReservationPendingExceptionRes");
    var de_CapacityUnitsLimitExceededExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_CapacityUnitsLimitExceededException(body.Error, context);
      const exception = new CapacityUnitsLimitExceededException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_CapacityUnitsLimitExceededExceptionRes");
    var de_CertificateNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_CertificateNotFoundException(body.Error, context);
      const exception = new CertificateNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_CertificateNotFoundExceptionRes");
    var de_DeleteAssociationSameAccountExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_DeleteAssociationSameAccountException(body.Error, context);
      const exception = new DeleteAssociationSameAccountException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_DeleteAssociationSameAccountExceptionRes");
    var de_DuplicateListenerExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_DuplicateListenerException(body.Error, context);
      const exception = new DuplicateListenerException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_DuplicateListenerExceptionRes");
    var de_DuplicateLoadBalancerNameExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_DuplicateLoadBalancerNameException(body.Error, context);
      const exception = new DuplicateLoadBalancerNameException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_DuplicateLoadBalancerNameExceptionRes");
    var de_DuplicateTagKeysExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_DuplicateTagKeysException(body.Error, context);
      const exception = new DuplicateTagKeysException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_DuplicateTagKeysExceptionRes");
    var de_DuplicateTargetGroupNameExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_DuplicateTargetGroupNameException(body.Error, context);
      const exception = new DuplicateTargetGroupNameException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_DuplicateTargetGroupNameExceptionRes");
    var de_DuplicateTrustStoreNameExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_DuplicateTrustStoreNameException(body.Error, context);
      const exception = new DuplicateTrustStoreNameException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_DuplicateTrustStoreNameExceptionRes");
    var de_HealthUnavailableExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_HealthUnavailableException(body.Error, context);
      const exception = new HealthUnavailableException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_HealthUnavailableExceptionRes");
    var de_IncompatibleProtocolsExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_IncompatibleProtocolsException(body.Error, context);
      const exception = new IncompatibleProtocolsException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_IncompatibleProtocolsExceptionRes");
    var de_InsufficientCapacityExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_InsufficientCapacityException(body.Error, context);
      const exception = new InsufficientCapacityException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InsufficientCapacityExceptionRes");
    var de_InvalidCaCertificatesBundleExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_InvalidCaCertificatesBundleException(body.Error, context);
      const exception = new InvalidCaCertificatesBundleException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidCaCertificatesBundleExceptionRes");
    var de_InvalidConfigurationRequestExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_InvalidConfigurationRequestException(body.Error, context);
      const exception = new InvalidConfigurationRequestException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidConfigurationRequestExceptionRes");
    var de_InvalidLoadBalancerActionExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_InvalidLoadBalancerActionException(body.Error, context);
      const exception = new InvalidLoadBalancerActionException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidLoadBalancerActionExceptionRes");
    var de_InvalidRevocationContentExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_InvalidRevocationContentException(body.Error, context);
      const exception = new InvalidRevocationContentException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidRevocationContentExceptionRes");
    var de_InvalidSchemeExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_InvalidSchemeException(body.Error, context);
      const exception = new InvalidSchemeException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidSchemeExceptionRes");
    var de_InvalidSecurityGroupExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_InvalidSecurityGroupException(body.Error, context);
      const exception = new InvalidSecurityGroupException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidSecurityGroupExceptionRes");
    var de_InvalidSubnetExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_InvalidSubnetException(body.Error, context);
      const exception = new InvalidSubnetException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidSubnetExceptionRes");
    var de_InvalidTargetExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_InvalidTargetException(body.Error, context);
      const exception = new InvalidTargetException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidTargetExceptionRes");
    var de_ListenerNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_ListenerNotFoundException(body.Error, context);
      const exception = new ListenerNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ListenerNotFoundExceptionRes");
    var de_LoadBalancerNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_LoadBalancerNotFoundException(body.Error, context);
      const exception = new LoadBalancerNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_LoadBalancerNotFoundExceptionRes");
    var de_OperationNotPermittedExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_OperationNotPermittedException(body.Error, context);
      const exception = new OperationNotPermittedException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_OperationNotPermittedExceptionRes");
    var de_PriorityInUseExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_PriorityInUseException(body.Error, context);
      const exception = new PriorityInUseException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_PriorityInUseExceptionRes");
    var de_PriorRequestNotCompleteExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_PriorRequestNotCompleteException(body.Error, context);
      const exception = new PriorRequestNotCompleteException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_PriorRequestNotCompleteExceptionRes");
    var de_ResourceInUseExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_ResourceInUseException(body.Error, context);
      const exception = new ResourceInUseException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ResourceInUseExceptionRes");
    var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_ResourceNotFoundException(body.Error, context);
      const exception = new ResourceNotFoundException2({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ResourceNotFoundExceptionRes");
    var de_RevocationContentNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_RevocationContentNotFoundException(body.Error, context);
      const exception = new RevocationContentNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_RevocationContentNotFoundExceptionRes");
    var de_RevocationIdNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_RevocationIdNotFoundException(body.Error, context);
      const exception = new RevocationIdNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_RevocationIdNotFoundExceptionRes");
    var de_RuleNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_RuleNotFoundException(body.Error, context);
      const exception = new RuleNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_RuleNotFoundExceptionRes");
    var de_SSLPolicyNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_SSLPolicyNotFoundException(body.Error, context);
      const exception = new SSLPolicyNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_SSLPolicyNotFoundExceptionRes");
    var de_SubnetNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_SubnetNotFoundException(body.Error, context);
      const exception = new SubnetNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_SubnetNotFoundExceptionRes");
    var de_TargetGroupAssociationLimitExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_TargetGroupAssociationLimitException(body.Error, context);
      const exception = new TargetGroupAssociationLimitException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_TargetGroupAssociationLimitExceptionRes");
    var de_TargetGroupNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_TargetGroupNotFoundException(body.Error, context);
      const exception = new TargetGroupNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_TargetGroupNotFoundExceptionRes");
    var de_TooManyActionsExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_TooManyActionsException(body.Error, context);
      const exception = new TooManyActionsException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_TooManyActionsExceptionRes");
    var de_TooManyCertificatesExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_TooManyCertificatesException(body.Error, context);
      const exception = new TooManyCertificatesException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_TooManyCertificatesExceptionRes");
    var de_TooManyListenersExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_TooManyListenersException(body.Error, context);
      const exception = new TooManyListenersException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_TooManyListenersExceptionRes");
    var de_TooManyLoadBalancersExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_TooManyLoadBalancersException(body.Error, context);
      const exception = new TooManyLoadBalancersException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_TooManyLoadBalancersExceptionRes");
    var de_TooManyRegistrationsForTargetIdExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_TooManyRegistrationsForTargetIdException(body.Error, context);
      const exception = new TooManyRegistrationsForTargetIdException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_TooManyRegistrationsForTargetIdExceptionRes");
    var de_TooManyRulesExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_TooManyRulesException(body.Error, context);
      const exception = new TooManyRulesException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_TooManyRulesExceptionRes");
    var de_TooManyTagsExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_TooManyTagsException(body.Error, context);
      const exception = new TooManyTagsException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_TooManyTagsExceptionRes");
    var de_TooManyTargetGroupsExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_TooManyTargetGroupsException(body.Error, context);
      const exception = new TooManyTargetGroupsException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_TooManyTargetGroupsExceptionRes");
    var de_TooManyTargetsExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_TooManyTargetsException(body.Error, context);
      const exception = new TooManyTargetsException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_TooManyTargetsExceptionRes");
    var de_TooManyTrustStoreRevocationEntriesExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_TooManyTrustStoreRevocationEntriesException(body.Error, context);
      const exception = new TooManyTrustStoreRevocationEntriesException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_TooManyTrustStoreRevocationEntriesExceptionRes");
    var de_TooManyTrustStoresExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_TooManyTrustStoresException(body.Error, context);
      const exception = new TooManyTrustStoresException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_TooManyTrustStoresExceptionRes");
    var de_TooManyUniqueTargetGroupsPerLoadBalancerExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_TooManyUniqueTargetGroupsPerLoadBalancerException(body.Error, context);
      const exception = new TooManyUniqueTargetGroupsPerLoadBalancerException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_TooManyUniqueTargetGroupsPerLoadBalancerExceptionRes");
    var de_TrustStoreAssociationNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_TrustStoreAssociationNotFoundException(body.Error, context);
      const exception = new TrustStoreAssociationNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_TrustStoreAssociationNotFoundExceptionRes");
    var de_TrustStoreInUseExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_TrustStoreInUseException(body.Error, context);
      const exception = new TrustStoreInUseException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_TrustStoreInUseExceptionRes");
    var de_TrustStoreNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_TrustStoreNotFoundException(body.Error, context);
      const exception = new TrustStoreNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_TrustStoreNotFoundExceptionRes");
    var de_TrustStoreNotReadyExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_TrustStoreNotReadyException(body.Error, context);
      const exception = new TrustStoreNotReadyException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_TrustStoreNotReadyExceptionRes");
    var de_UnsupportedProtocolExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_UnsupportedProtocolException(body.Error, context);
      const exception = new UnsupportedProtocolException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_UnsupportedProtocolExceptionRes");
    var se_Action = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_T2] != null) {
        entries[_T2] = input[_T2];
      }
      if (input[_TGA] != null) {
        entries[_TGA] = input[_TGA];
      }
      if (input[_AOC] != null) {
        const memberEntries = se_AuthenticateOidcActionConfig(input[_AOC], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AuthenticateOidcConfig.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_ACC] != null) {
        const memberEntries = se_AuthenticateCognitoActionConfig(input[_ACC], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AuthenticateCognitoConfig.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_O] != null) {
        entries[_O] = input[_O];
      }
      if (input[_RC] != null) {
        const memberEntries = se_RedirectActionConfig(input[_RC], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `RedirectConfig.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_FRC] != null) {
        const memberEntries = se_FixedResponseActionConfig(input[_FRC], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `FixedResponseConfig.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_FC] != null) {
        const memberEntries = se_ForwardActionConfig(input[_FC], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ForwardConfig.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_Action");
    var se_Actions = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_Action(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`member.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_Actions");
    var se_AddListenerCertificatesInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_LA] != null) {
        entries[_LA] = input[_LA];
      }
      if (input[_C2] != null) {
        const memberEntries = se_CertificateList(input[_C2], context);
        if (input[_C2]?.length === 0) {
          entries.Certificates = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Certificates.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_AddListenerCertificatesInput");
    var se_AddTagsInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RA2] != null) {
        const memberEntries = se_ResourceArns(input[_RA2], context);
        if (input[_RA2]?.length === 0) {
          entries.ResourceArns = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ResourceArns.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_Ta] != null) {
        const memberEntries = se_TagList(input[_Ta], context);
        if (input[_Ta]?.length === 0) {
          entries.Tags = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Tags.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_AddTagsInput");
    var se_AddTrustStoreRevocationsInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TSA] != null) {
        entries[_TSA] = input[_TSA];
      }
      if (input[_RCe] != null) {
        const memberEntries = se_RevocationContents(input[_RCe], context);
        if (input[_RCe]?.length === 0) {
          entries.RevocationContents = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `RevocationContents.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_AddTrustStoreRevocationsInput");
    var se_AlpnPolicyName = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_AlpnPolicyName");
    var se_AuthenticateCognitoActionAuthenticationRequestExtraParams = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      Object.keys(input).filter((key) => input[key] != null).forEach((key) => {
        entries[`entry.${counter}.key`] = key;
        entries[`entry.${counter}.value`] = input[key];
        counter++;
      });
      return entries;
    }, "se_AuthenticateCognitoActionAuthenticationRequestExtraParams");
    var se_AuthenticateCognitoActionConfig = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_UPA] != null) {
        entries[_UPA] = input[_UPA];
      }
      if (input[_UPCI] != null) {
        entries[_UPCI] = input[_UPCI];
      }
      if (input[_UPD] != null) {
        entries[_UPD] = input[_UPD];
      }
      if (input[_SCN] != null) {
        entries[_SCN] = input[_SCN];
      }
      if (input[_S] != null) {
        entries[_S] = input[_S];
      }
      if (input[_ST2] != null) {
        entries[_ST2] = input[_ST2];
      }
      if (input[_AREP] != null) {
        const memberEntries = se_AuthenticateCognitoActionAuthenticationRequestExtraParams(input[_AREP], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AuthenticationRequestExtraParams.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_OUR] != null) {
        entries[_OUR] = input[_OUR];
      }
      return entries;
    }, "se_AuthenticateCognitoActionConfig");
    var se_AuthenticateOidcActionAuthenticationRequestExtraParams = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      Object.keys(input).filter((key) => input[key] != null).forEach((key) => {
        entries[`entry.${counter}.key`] = key;
        entries[`entry.${counter}.value`] = input[key];
        counter++;
      });
      return entries;
    }, "se_AuthenticateOidcActionAuthenticationRequestExtraParams");
    var se_AuthenticateOidcActionConfig = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_I] != null) {
        entries[_I] = input[_I];
      }
      if (input[_AE] != null) {
        entries[_AE] = input[_AE];
      }
      if (input[_TE] != null) {
        entries[_TE] = input[_TE];
      }
      if (input[_UIE] != null) {
        entries[_UIE] = input[_UIE];
      }
      if (input[_CI] != null) {
        entries[_CI] = input[_CI];
      }
      if (input[_CS] != null) {
        entries[_CS] = input[_CS];
      }
      if (input[_SCN] != null) {
        entries[_SCN] = input[_SCN];
      }
      if (input[_S] != null) {
        entries[_S] = input[_S];
      }
      if (input[_ST2] != null) {
        entries[_ST2] = input[_ST2];
      }
      if (input[_AREP] != null) {
        const memberEntries = se_AuthenticateOidcActionAuthenticationRequestExtraParams(input[_AREP], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AuthenticationRequestExtraParams.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_OUR] != null) {
        entries[_OUR] = input[_OUR];
      }
      if (input[_UECS] != null) {
        entries[_UECS] = input[_UECS];
      }
      return entries;
    }, "se_AuthenticateOidcActionConfig");
    var se_Certificate = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CA2] != null) {
        entries[_CA2] = input[_CA2];
      }
      if (input[_ID] != null) {
        entries[_ID] = input[_ID];
      }
      return entries;
    }, "se_Certificate");
    var se_CertificateList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_Certificate(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`member.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_CertificateList");
    var se_CreateListenerInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_LBA] != null) {
        entries[_LBA] = input[_LBA];
      }
      if (input[_P2] != null) {
        entries[_P2] = input[_P2];
      }
      if (input[_Po] != null) {
        entries[_Po] = input[_Po];
      }
      if (input[_SP] != null) {
        entries[_SP] = input[_SP];
      }
      if (input[_C2] != null) {
        const memberEntries = se_CertificateList(input[_C2], context);
        if (input[_C2]?.length === 0) {
          entries.Certificates = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Certificates.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_DA] != null) {
        const memberEntries = se_Actions(input[_DA], context);
        if (input[_DA]?.length === 0) {
          entries.DefaultActions = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `DefaultActions.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_AP] != null) {
        const memberEntries = se_AlpnPolicyName(input[_AP], context);
        if (input[_AP]?.length === 0) {
          entries.AlpnPolicy = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AlpnPolicy.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_Ta] != null) {
        const memberEntries = se_TagList(input[_Ta], context);
        if (input[_Ta]?.length === 0) {
          entries.Tags = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Tags.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_MA] != null) {
        const memberEntries = se_MutualAuthenticationAttributes(input[_MA], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `MutualAuthentication.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_CreateListenerInput");
    var se_CreateLoadBalancerInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_N] != null) {
        entries[_N] = input[_N];
      }
      if (input[_Su] != null) {
        const memberEntries = se_Subnets(input[_Su], context);
        if (input[_Su]?.length === 0) {
          entries.Subnets = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Subnets.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_SM] != null) {
        const memberEntries = se_SubnetMappings(input[_SM], context);
        if (input[_SM]?.length === 0) {
          entries.SubnetMappings = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SubnetMappings.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_SG] != null) {
        const memberEntries = se_SecurityGroups(input[_SG], context);
        if (input[_SG]?.length === 0) {
          entries.SecurityGroups = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SecurityGroups.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_Sc] != null) {
        entries[_Sc] = input[_Sc];
      }
      if (input[_Ta] != null) {
        const memberEntries = se_TagList(input[_Ta], context);
        if (input[_Ta]?.length === 0) {
          entries.Tags = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Tags.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_T2] != null) {
        entries[_T2] = input[_T2];
      }
      if (input[_IAT] != null) {
        entries[_IAT] = input[_IAT];
      }
      if (input[_COIP] != null) {
        entries[_COIP] = input[_COIP];
      }
      if (input[_EPFISN] != null) {
        entries[_EPFISN] = input[_EPFISN];
      }
      if (input[_IP] != null) {
        const memberEntries = se_IpamPools(input[_IP], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `IpamPools.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_CreateLoadBalancerInput");
    var se_CreateRuleInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_LA] != null) {
        entries[_LA] = input[_LA];
      }
      if (input[_Co] != null) {
        const memberEntries = se_RuleConditionList(input[_Co], context);
        if (input[_Co]?.length === 0) {
          entries.Conditions = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Conditions.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_Pr2] != null) {
        entries[_Pr2] = input[_Pr2];
      }
      if (input[_Ac] != null) {
        const memberEntries = se_Actions(input[_Ac], context);
        if (input[_Ac]?.length === 0) {
          entries.Actions = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Actions.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_Ta] != null) {
        const memberEntries = se_TagList(input[_Ta], context);
        if (input[_Ta]?.length === 0) {
          entries.Tags = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Tags.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_CreateRuleInput");
    var se_CreateTargetGroupInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_N] != null) {
        entries[_N] = input[_N];
      }
      if (input[_P2] != null) {
        entries[_P2] = input[_P2];
      }
      if (input[_PV] != null) {
        entries[_PV] = input[_PV];
      }
      if (input[_Po] != null) {
        entries[_Po] = input[_Po];
      }
      if (input[_VI] != null) {
        entries[_VI] = input[_VI];
      }
      if (input[_HCP] != null) {
        entries[_HCP] = input[_HCP];
      }
      if (input[_HCPe] != null) {
        entries[_HCPe] = input[_HCPe];
      }
      if (input[_HCE] != null) {
        entries[_HCE] = input[_HCE];
      }
      if (input[_HCPea] != null) {
        entries[_HCPea] = input[_HCPea];
      }
      if (input[_HCIS] != null) {
        entries[_HCIS] = input[_HCIS];
      }
      if (input[_HCTS] != null) {
        entries[_HCTS] = input[_HCTS];
      }
      if (input[_HTC] != null) {
        entries[_HTC] = input[_HTC];
      }
      if (input[_UTC] != null) {
        entries[_UTC] = input[_UTC];
      }
      if (input[_M] != null) {
        const memberEntries = se_Matcher(input[_M], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Matcher.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_TT] != null) {
        entries[_TT] = input[_TT];
      }
      if (input[_Ta] != null) {
        const memberEntries = se_TagList(input[_Ta], context);
        if (input[_Ta]?.length === 0) {
          entries.Tags = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Tags.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_IAT] != null) {
        entries[_IAT] = input[_IAT];
      }
      return entries;
    }, "se_CreateTargetGroupInput");
    var se_CreateTrustStoreInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_N] != null) {
        entries[_N] = input[_N];
      }
      if (input[_CCBSB] != null) {
        entries[_CCBSB] = input[_CCBSB];
      }
      if (input[_CCBSK] != null) {
        entries[_CCBSK] = input[_CCBSK];
      }
      if (input[_CCBSOV] != null) {
        entries[_CCBSOV] = input[_CCBSOV];
      }
      if (input[_Ta] != null) {
        const memberEntries = se_TagList(input[_Ta], context);
        if (input[_Ta]?.length === 0) {
          entries.Tags = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Tags.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_CreateTrustStoreInput");
    var se_DeleteListenerInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_LA] != null) {
        entries[_LA] = input[_LA];
      }
      return entries;
    }, "se_DeleteListenerInput");
    var se_DeleteLoadBalancerInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_LBA] != null) {
        entries[_LBA] = input[_LBA];
      }
      return entries;
    }, "se_DeleteLoadBalancerInput");
    var se_DeleteRuleInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RAu] != null) {
        entries[_RAu] = input[_RAu];
      }
      return entries;
    }, "se_DeleteRuleInput");
    var se_DeleteSharedTrustStoreAssociationInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TSA] != null) {
        entries[_TSA] = input[_TSA];
      }
      if (input[_RAe] != null) {
        entries[_RAe] = input[_RAe];
      }
      return entries;
    }, "se_DeleteSharedTrustStoreAssociationInput");
    var se_DeleteTargetGroupInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGA] != null) {
        entries[_TGA] = input[_TGA];
      }
      return entries;
    }, "se_DeleteTargetGroupInput");
    var se_DeleteTrustStoreInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TSA] != null) {
        entries[_TSA] = input[_TSA];
      }
      return entries;
    }, "se_DeleteTrustStoreInput");
    var se_DeregisterTargetsInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGA] != null) {
        entries[_TGA] = input[_TGA];
      }
      if (input[_Tar] != null) {
        const memberEntries = se_TargetDescriptions(input[_Tar], context);
        if (input[_Tar]?.length === 0) {
          entries.Targets = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Targets.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DeregisterTargetsInput");
    var se_DescribeAccountLimitsInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Ma] != null) {
        entries[_Ma] = input[_Ma];
      }
      if (input[_PS] != null) {
        entries[_PS] = input[_PS];
      }
      return entries;
    }, "se_DescribeAccountLimitsInput");
    var se_DescribeCapacityReservationInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_LBA] != null) {
        entries[_LBA] = input[_LBA];
      }
      return entries;
    }, "se_DescribeCapacityReservationInput");
    var se_DescribeListenerAttributesInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_LA] != null) {
        entries[_LA] = input[_LA];
      }
      return entries;
    }, "se_DescribeListenerAttributesInput");
    var se_DescribeListenerCertificatesInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_LA] != null) {
        entries[_LA] = input[_LA];
      }
      if (input[_Ma] != null) {
        entries[_Ma] = input[_Ma];
      }
      if (input[_PS] != null) {
        entries[_PS] = input[_PS];
      }
      return entries;
    }, "se_DescribeListenerCertificatesInput");
    var se_DescribeListenersInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_LBA] != null) {
        entries[_LBA] = input[_LBA];
      }
      if (input[_LAi] != null) {
        const memberEntries = se_ListenerArns(input[_LAi], context);
        if (input[_LAi]?.length === 0) {
          entries.ListenerArns = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ListenerArns.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_Ma] != null) {
        entries[_Ma] = input[_Ma];
      }
      if (input[_PS] != null) {
        entries[_PS] = input[_PS];
      }
      return entries;
    }, "se_DescribeListenersInput");
    var se_DescribeLoadBalancerAttributesInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_LBA] != null) {
        entries[_LBA] = input[_LBA];
      }
      return entries;
    }, "se_DescribeLoadBalancerAttributesInput");
    var se_DescribeLoadBalancersInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_LBAo] != null) {
        const memberEntries = se_LoadBalancerArns(input[_LBAo], context);
        if (input[_LBAo]?.length === 0) {
          entries.LoadBalancerArns = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `LoadBalancerArns.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_Na] != null) {
        const memberEntries = se_LoadBalancerNames(input[_Na], context);
        if (input[_Na]?.length === 0) {
          entries.Names = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Names.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_Ma] != null) {
        entries[_Ma] = input[_Ma];
      }
      if (input[_PS] != null) {
        entries[_PS] = input[_PS];
      }
      return entries;
    }, "se_DescribeLoadBalancersInput");
    var se_DescribeRulesInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_LA] != null) {
        entries[_LA] = input[_LA];
      }
      if (input[_RAul] != null) {
        const memberEntries = se_RuleArns(input[_RAul], context);
        if (input[_RAul]?.length === 0) {
          entries.RuleArns = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `RuleArns.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_Ma] != null) {
        entries[_Ma] = input[_Ma];
      }
      if (input[_PS] != null) {
        entries[_PS] = input[_PS];
      }
      return entries;
    }, "se_DescribeRulesInput");
    var se_DescribeSSLPoliciesInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Na] != null) {
        const memberEntries = se_SslPolicyNames(input[_Na], context);
        if (input[_Na]?.length === 0) {
          entries.Names = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Names.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_Ma] != null) {
        entries[_Ma] = input[_Ma];
      }
      if (input[_PS] != null) {
        entries[_PS] = input[_PS];
      }
      if (input[_LBT] != null) {
        entries[_LBT] = input[_LBT];
      }
      return entries;
    }, "se_DescribeSSLPoliciesInput");
    var se_DescribeTagsInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RA2] != null) {
        const memberEntries = se_ResourceArns(input[_RA2], context);
        if (input[_RA2]?.length === 0) {
          entries.ResourceArns = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ResourceArns.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DescribeTagsInput");
    var se_DescribeTargetGroupAttributesInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGA] != null) {
        entries[_TGA] = input[_TGA];
      }
      return entries;
    }, "se_DescribeTargetGroupAttributesInput");
    var se_DescribeTargetGroupsInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_LBA] != null) {
        entries[_LBA] = input[_LBA];
      }
      if (input[_TGAa] != null) {
        const memberEntries = se_TargetGroupArns(input[_TGAa], context);
        if (input[_TGAa]?.length === 0) {
          entries.TargetGroupArns = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TargetGroupArns.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_Na] != null) {
        const memberEntries = se_TargetGroupNames(input[_Na], context);
        if (input[_Na]?.length === 0) {
          entries.Names = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Names.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_Ma] != null) {
        entries[_Ma] = input[_Ma];
      }
      if (input[_PS] != null) {
        entries[_PS] = input[_PS];
      }
      return entries;
    }, "se_DescribeTargetGroupsInput");
    var se_DescribeTargetHealthInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGA] != null) {
        entries[_TGA] = input[_TGA];
      }
      if (input[_Tar] != null) {
        const memberEntries = se_TargetDescriptions(input[_Tar], context);
        if (input[_Tar]?.length === 0) {
          entries.Targets = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Targets.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_In] != null) {
        const memberEntries = se_ListOfDescribeTargetHealthIncludeOptions(input[_In], context);
        if (input[_In]?.length === 0) {
          entries.Include = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Include.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_DescribeTargetHealthInput");
    var se_DescribeTrustStoreAssociationsInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TSA] != null) {
        entries[_TSA] = input[_TSA];
      }
      if (input[_Ma] != null) {
        entries[_Ma] = input[_Ma];
      }
      if (input[_PS] != null) {
        entries[_PS] = input[_PS];
      }
      return entries;
    }, "se_DescribeTrustStoreAssociationsInput");
    var se_DescribeTrustStoreRevocationsInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TSA] != null) {
        entries[_TSA] = input[_TSA];
      }
      if (input[_RI] != null) {
        const memberEntries = se_RevocationIds(input[_RI], context);
        if (input[_RI]?.length === 0) {
          entries.RevocationIds = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `RevocationIds.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_Ma] != null) {
        entries[_Ma] = input[_Ma];
      }
      if (input[_PS] != null) {
        entries[_PS] = input[_PS];
      }
      return entries;
    }, "se_DescribeTrustStoreRevocationsInput");
    var se_DescribeTrustStoresInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TSAr] != null) {
        const memberEntries = se_TrustStoreArns(input[_TSAr], context);
        if (input[_TSAr]?.length === 0) {
          entries.TrustStoreArns = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TrustStoreArns.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_Na] != null) {
        const memberEntries = se_TrustStoreNames(input[_Na], context);
        if (input[_Na]?.length === 0) {
          entries.Names = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Names.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_Ma] != null) {
        entries[_Ma] = input[_Ma];
      }
      if (input[_PS] != null) {
        entries[_PS] = input[_PS];
      }
      return entries;
    }, "se_DescribeTrustStoresInput");
    var se_FixedResponseActionConfig = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_MB] != null) {
        entries[_MB] = input[_MB];
      }
      if (input[_SC] != null) {
        entries[_SC] = input[_SC];
      }
      if (input[_CT] != null) {
        entries[_CT] = input[_CT];
      }
      return entries;
    }, "se_FixedResponseActionConfig");
    var se_ForwardActionConfig = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TG] != null) {
        const memberEntries = se_TargetGroupList(input[_TG], context);
        if (input[_TG]?.length === 0) {
          entries.TargetGroups = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TargetGroups.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_TGSC] != null) {
        const memberEntries = se_TargetGroupStickinessConfig(input[_TGSC], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TargetGroupStickinessConfig.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_ForwardActionConfig");
    var se_GetResourcePolicyInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RAe] != null) {
        entries[_RAe] = input[_RAe];
      }
      return entries;
    }, "se_GetResourcePolicyInput");
    var se_GetTrustStoreCaCertificatesBundleInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TSA] != null) {
        entries[_TSA] = input[_TSA];
      }
      return entries;
    }, "se_GetTrustStoreCaCertificatesBundleInput");
    var se_GetTrustStoreRevocationContentInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TSA] != null) {
        entries[_TSA] = input[_TSA];
      }
      if (input[_RIe] != null) {
        entries[_RIe] = input[_RIe];
      }
      return entries;
    }, "se_GetTrustStoreRevocationContentInput");
    var se_HostHeaderConditionConfig = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Va2] != null) {
        const memberEntries = se_ListOfString(input[_Va2], context);
        if (input[_Va2]?.length === 0) {
          entries.Values = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Values.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_HostHeaderConditionConfig");
    var se_HttpHeaderConditionConfig = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_HHN] != null) {
        entries[_HHN] = input[_HHN];
      }
      if (input[_Va2] != null) {
        const memberEntries = se_ListOfString(input[_Va2], context);
        if (input[_Va2]?.length === 0) {
          entries.Values = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Values.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_HttpHeaderConditionConfig");
    var se_HttpRequestMethodConditionConfig = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Va2] != null) {
        const memberEntries = se_ListOfString(input[_Va2], context);
        if (input[_Va2]?.length === 0) {
          entries.Values = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Values.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_HttpRequestMethodConditionConfig");
    var se_IpamPools = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IIPI] != null) {
        entries[_IIPI] = input[_IIPI];
      }
      return entries;
    }, "se_IpamPools");
    var se_ListenerArns = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_ListenerArns");
    var se_ListenerAttribute = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_K2] != null) {
        entries[_K2] = input[_K2];
      }
      if (input[_Val] != null) {
        entries[_Val] = input[_Val];
      }
      return entries;
    }, "se_ListenerAttribute");
    var se_ListenerAttributes = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_ListenerAttribute(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`member.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_ListenerAttributes");
    var se_ListOfDescribeTargetHealthIncludeOptions = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_ListOfDescribeTargetHealthIncludeOptions");
    var se_ListOfString = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_ListOfString");
    var se_LoadBalancerArns = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_LoadBalancerArns");
    var se_LoadBalancerAttribute = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_K2] != null) {
        entries[_K2] = input[_K2];
      }
      if (input[_Val] != null) {
        entries[_Val] = input[_Val];
      }
      return entries;
    }, "se_LoadBalancerAttribute");
    var se_LoadBalancerAttributes = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_LoadBalancerAttribute(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`member.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_LoadBalancerAttributes");
    var se_LoadBalancerNames = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_LoadBalancerNames");
    var se_Matcher = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_HC] != null) {
        entries[_HC] = input[_HC];
      }
      if (input[_GC] != null) {
        entries[_GC] = input[_GC];
      }
      return entries;
    }, "se_Matcher");
    var se_MinimumLoadBalancerCapacity = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CU] != null) {
        entries[_CU] = input[_CU];
      }
      return entries;
    }, "se_MinimumLoadBalancerCapacity");
    var se_ModifyCapacityReservationInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_LBA] != null) {
        entries[_LBA] = input[_LBA];
      }
      if (input[_MLBC] != null) {
        const memberEntries = se_MinimumLoadBalancerCapacity(input[_MLBC], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `MinimumLoadBalancerCapacity.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_RCR] != null) {
        entries[_RCR] = input[_RCR];
      }
      return entries;
    }, "se_ModifyCapacityReservationInput");
    var se_ModifyIpPoolsInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_LBA] != null) {
        entries[_LBA] = input[_LBA];
      }
      if (input[_IP] != null) {
        const memberEntries = se_IpamPools(input[_IP], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `IpamPools.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_RIP] != null) {
        const memberEntries = se_RemoveIpamPools(input[_RIP], context);
        if (input[_RIP]?.length === 0) {
          entries.RemoveIpamPools = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `RemoveIpamPools.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_ModifyIpPoolsInput");
    var se_ModifyListenerAttributesInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_LA] != null) {
        entries[_LA] = input[_LA];
      }
      if (input[_At] != null) {
        const memberEntries = se_ListenerAttributes(input[_At], context);
        if (input[_At]?.length === 0) {
          entries.Attributes = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Attributes.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_ModifyListenerAttributesInput");
    var se_ModifyListenerInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_LA] != null) {
        entries[_LA] = input[_LA];
      }
      if (input[_Po] != null) {
        entries[_Po] = input[_Po];
      }
      if (input[_P2] != null) {
        entries[_P2] = input[_P2];
      }
      if (input[_SP] != null) {
        entries[_SP] = input[_SP];
      }
      if (input[_C2] != null) {
        const memberEntries = se_CertificateList(input[_C2], context);
        if (input[_C2]?.length === 0) {
          entries.Certificates = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Certificates.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_DA] != null) {
        const memberEntries = se_Actions(input[_DA], context);
        if (input[_DA]?.length === 0) {
          entries.DefaultActions = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `DefaultActions.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_AP] != null) {
        const memberEntries = se_AlpnPolicyName(input[_AP], context);
        if (input[_AP]?.length === 0) {
          entries.AlpnPolicy = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `AlpnPolicy.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_MA] != null) {
        const memberEntries = se_MutualAuthenticationAttributes(input[_MA], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `MutualAuthentication.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_ModifyListenerInput");
    var se_ModifyLoadBalancerAttributesInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_LBA] != null) {
        entries[_LBA] = input[_LBA];
      }
      if (input[_At] != null) {
        const memberEntries = se_LoadBalancerAttributes(input[_At], context);
        if (input[_At]?.length === 0) {
          entries.Attributes = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Attributes.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_ModifyLoadBalancerAttributesInput");
    var se_ModifyRuleInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RAu] != null) {
        entries[_RAu] = input[_RAu];
      }
      if (input[_Co] != null) {
        const memberEntries = se_RuleConditionList(input[_Co], context);
        if (input[_Co]?.length === 0) {
          entries.Conditions = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Conditions.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_Ac] != null) {
        const memberEntries = se_Actions(input[_Ac], context);
        if (input[_Ac]?.length === 0) {
          entries.Actions = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Actions.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_ModifyRuleInput");
    var se_ModifyTargetGroupAttributesInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGA] != null) {
        entries[_TGA] = input[_TGA];
      }
      if (input[_At] != null) {
        const memberEntries = se_TargetGroupAttributes(input[_At], context);
        if (input[_At]?.length === 0) {
          entries.Attributes = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Attributes.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_ModifyTargetGroupAttributesInput");
    var se_ModifyTargetGroupInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGA] != null) {
        entries[_TGA] = input[_TGA];
      }
      if (input[_HCP] != null) {
        entries[_HCP] = input[_HCP];
      }
      if (input[_HCPe] != null) {
        entries[_HCPe] = input[_HCPe];
      }
      if (input[_HCPea] != null) {
        entries[_HCPea] = input[_HCPea];
      }
      if (input[_HCE] != null) {
        entries[_HCE] = input[_HCE];
      }
      if (input[_HCIS] != null) {
        entries[_HCIS] = input[_HCIS];
      }
      if (input[_HCTS] != null) {
        entries[_HCTS] = input[_HCTS];
      }
      if (input[_HTC] != null) {
        entries[_HTC] = input[_HTC];
      }
      if (input[_UTC] != null) {
        entries[_UTC] = input[_UTC];
      }
      if (input[_M] != null) {
        const memberEntries = se_Matcher(input[_M], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Matcher.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_ModifyTargetGroupInput");
    var se_ModifyTrustStoreInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TSA] != null) {
        entries[_TSA] = input[_TSA];
      }
      if (input[_CCBSB] != null) {
        entries[_CCBSB] = input[_CCBSB];
      }
      if (input[_CCBSK] != null) {
        entries[_CCBSK] = input[_CCBSK];
      }
      if (input[_CCBSOV] != null) {
        entries[_CCBSOV] = input[_CCBSOV];
      }
      return entries;
    }, "se_ModifyTrustStoreInput");
    var se_MutualAuthenticationAttributes = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Mo] != null) {
        entries[_Mo] = input[_Mo];
      }
      if (input[_TSA] != null) {
        entries[_TSA] = input[_TSA];
      }
      if (input[_ICCE] != null) {
        entries[_ICCE] = input[_ICCE];
      }
      if (input[_TSAS] != null) {
        entries[_TSAS] = input[_TSAS];
      }
      if (input[_ATSCN] != null) {
        entries[_ATSCN] = input[_ATSCN];
      }
      return entries;
    }, "se_MutualAuthenticationAttributes");
    var se_PathPatternConditionConfig = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Va2] != null) {
        const memberEntries = se_ListOfString(input[_Va2], context);
        if (input[_Va2]?.length === 0) {
          entries.Values = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Values.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_PathPatternConditionConfig");
    var se_QueryStringConditionConfig = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Va2] != null) {
        const memberEntries = se_QueryStringKeyValuePairList(input[_Va2], context);
        if (input[_Va2]?.length === 0) {
          entries.Values = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Values.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_QueryStringConditionConfig");
    var se_QueryStringKeyValuePair = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_K2] != null) {
        entries[_K2] = input[_K2];
      }
      if (input[_Val] != null) {
        entries[_Val] = input[_Val];
      }
      return entries;
    }, "se_QueryStringKeyValuePair");
    var se_QueryStringKeyValuePairList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_QueryStringKeyValuePair(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`member.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_QueryStringKeyValuePairList");
    var se_RedirectActionConfig = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_P2] != null) {
        entries[_P2] = input[_P2];
      }
      if (input[_Po] != null) {
        entries[_Po] = input[_Po];
      }
      if (input[_H] != null) {
        entries[_H] = input[_H];
      }
      if (input[_Pa] != null) {
        entries[_Pa] = input[_Pa];
      }
      if (input[_Q] != null) {
        entries[_Q] = input[_Q];
      }
      if (input[_SC] != null) {
        entries[_SC] = input[_SC];
      }
      return entries;
    }, "se_RedirectActionConfig");
    var se_RegisterTargetsInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGA] != null) {
        entries[_TGA] = input[_TGA];
      }
      if (input[_Tar] != null) {
        const memberEntries = se_TargetDescriptions(input[_Tar], context);
        if (input[_Tar]?.length === 0) {
          entries.Targets = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Targets.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_RegisterTargetsInput");
    var se_RemoveIpamPools = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_RemoveIpamPools");
    var se_RemoveListenerCertificatesInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_LA] != null) {
        entries[_LA] = input[_LA];
      }
      if (input[_C2] != null) {
        const memberEntries = se_CertificateList(input[_C2], context);
        if (input[_C2]?.length === 0) {
          entries.Certificates = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Certificates.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_RemoveListenerCertificatesInput");
    var se_RemoveTagsInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RA2] != null) {
        const memberEntries = se_ResourceArns(input[_RA2], context);
        if (input[_RA2]?.length === 0) {
          entries.ResourceArns = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ResourceArns.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_TK] != null) {
        const memberEntries = se_TagKeys(input[_TK], context);
        if (input[_TK]?.length === 0) {
          entries.TagKeys = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagKeys.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_RemoveTagsInput");
    var se_RemoveTrustStoreRevocationsInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TSA] != null) {
        entries[_TSA] = input[_TSA];
      }
      if (input[_RI] != null) {
        const memberEntries = se_RevocationIds(input[_RI], context);
        if (input[_RI]?.length === 0) {
          entries.RevocationIds = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `RevocationIds.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_RemoveTrustStoreRevocationsInput");
    var se_ResourceArns = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_ResourceArns");
    var se_RevocationContent = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SB] != null) {
        entries[_SB] = input[_SB];
      }
      if (input[_SK] != null) {
        entries[_SK] = input[_SK];
      }
      if (input[_SOV] != null) {
        entries[_SOV] = input[_SOV];
      }
      if (input[_RTev] != null) {
        entries[_RTev] = input[_RTev];
      }
      return entries;
    }, "se_RevocationContent");
    var se_RevocationContents = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_RevocationContent(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`member.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_RevocationContents");
    var se_RevocationIds = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_RevocationIds");
    var se_RuleArns = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_RuleArns");
    var se_RuleCondition = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_F] != null) {
        entries[_F] = input[_F];
      }
      if (input[_Va2] != null) {
        const memberEntries = se_ListOfString(input[_Va2], context);
        if (input[_Va2]?.length === 0) {
          entries.Values = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Values.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_HHC] != null) {
        const memberEntries = se_HostHeaderConditionConfig(input[_HHC], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `HostHeaderConfig.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_PPC] != null) {
        const memberEntries = se_PathPatternConditionConfig(input[_PPC], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `PathPatternConfig.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_HHCt] != null) {
        const memberEntries = se_HttpHeaderConditionConfig(input[_HHCt], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `HttpHeaderConfig.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_QSC] != null) {
        const memberEntries = se_QueryStringConditionConfig(input[_QSC], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `QueryStringConfig.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_HRMC] != null) {
        const memberEntries = se_HttpRequestMethodConditionConfig(input[_HRMC], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `HttpRequestMethodConfig.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_SIC] != null) {
        const memberEntries = se_SourceIpConditionConfig(input[_SIC], context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SourceIpConfig.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_RuleCondition");
    var se_RuleConditionList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_RuleCondition(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`member.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_RuleConditionList");
    var se_RulePriorityList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_RulePriorityPair(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`member.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_RulePriorityList");
    var se_RulePriorityPair = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RAu] != null) {
        entries[_RAu] = input[_RAu];
      }
      if (input[_Pr2] != null) {
        entries[_Pr2] = input[_Pr2];
      }
      return entries;
    }, "se_RulePriorityPair");
    var se_SecurityGroups = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_SecurityGroups");
    var se_SetIpAddressTypeInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_LBA] != null) {
        entries[_LBA] = input[_LBA];
      }
      if (input[_IAT] != null) {
        entries[_IAT] = input[_IAT];
      }
      return entries;
    }, "se_SetIpAddressTypeInput");
    var se_SetRulePrioritiesInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RP] != null) {
        const memberEntries = se_RulePriorityList(input[_RP], context);
        if (input[_RP]?.length === 0) {
          entries.RulePriorities = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `RulePriorities.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_SetRulePrioritiesInput");
    var se_SetSecurityGroupsInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_LBA] != null) {
        entries[_LBA] = input[_LBA];
      }
      if (input[_SG] != null) {
        const memberEntries = se_SecurityGroups(input[_SG], context);
        if (input[_SG]?.length === 0) {
          entries.SecurityGroups = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SecurityGroups.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_ESGIROPLT] != null) {
        entries[_ESGIROPLT] = input[_ESGIROPLT];
      }
      return entries;
    }, "se_SetSecurityGroupsInput");
    var se_SetSubnetsInput = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_LBA] != null) {
        entries[_LBA] = input[_LBA];
      }
      if (input[_Su] != null) {
        const memberEntries = se_Subnets(input[_Su], context);
        if (input[_Su]?.length === 0) {
          entries.Subnets = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Subnets.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_SM] != null) {
        const memberEntries = se_SubnetMappings(input[_SM], context);
        if (input[_SM]?.length === 0) {
          entries.SubnetMappings = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `SubnetMappings.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_IAT] != null) {
        entries[_IAT] = input[_IAT];
      }
      if (input[_EPFISN] != null) {
        entries[_EPFISN] = input[_EPFISN];
      }
      return entries;
    }, "se_SetSubnetsInput");
    var se_SourceIpConditionConfig = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Va2] != null) {
        const memberEntries = se_ListOfString(input[_Va2], context);
        if (input[_Va2]?.length === 0) {
          entries.Values = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Values.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_SourceIpConditionConfig");
    var se_SslPolicyNames = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_SslPolicyNames");
    var se_SubnetMapping = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SI2] != null) {
        entries[_SI2] = input[_SI2];
      }
      if (input[_AI] != null) {
        entries[_AI] = input[_AI];
      }
      if (input[_PIPA] != null) {
        entries[_PIPA] = input[_PIPA];
      }
      if (input[_IPA] != null) {
        entries[_IPA] = input[_IPA];
      }
      if (input[_SNIP] != null) {
        entries[_SNIP] = input[_SNIP];
      }
      return entries;
    }, "se_SubnetMapping");
    var se_SubnetMappings = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_SubnetMapping(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`member.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_SubnetMappings");
    var se_Subnets = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_Subnets");
    var se_Tag2 = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_K2] != null) {
        entries[_K2] = input[_K2];
      }
      if (input[_Val] != null) {
        entries[_Val] = input[_Val];
      }
      return entries;
    }, "se_Tag");
    var se_TagKeys = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_TagKeys");
    var se_TagList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_Tag2(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`member.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_TagList");
    var se_TargetDescription = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Id] != null) {
        entries[_Id] = input[_Id];
      }
      if (input[_Po] != null) {
        entries[_Po] = input[_Po];
      }
      if (input[_AZ] != null) {
        entries[_AZ] = input[_AZ];
      }
      return entries;
    }, "se_TargetDescription");
    var se_TargetDescriptions = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_TargetDescription(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`member.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_TargetDescriptions");
    var se_TargetGroupArns = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_TargetGroupArns");
    var se_TargetGroupAttribute = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_K2] != null) {
        entries[_K2] = input[_K2];
      }
      if (input[_Val] != null) {
        entries[_Val] = input[_Val];
      }
      return entries;
    }, "se_TargetGroupAttribute");
    var se_TargetGroupAttributes = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_TargetGroupAttribute(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`member.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_TargetGroupAttributes");
    var se_TargetGroupList = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_TargetGroupTuple(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`member.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_TargetGroupList");
    var se_TargetGroupNames = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_TargetGroupNames");
    var se_TargetGroupStickinessConfig = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_E2] != null) {
        entries[_E2] = input[_E2];
      }
      if (input[_DS2] != null) {
        entries[_DS2] = input[_DS2];
      }
      return entries;
    }, "se_TargetGroupStickinessConfig");
    var se_TargetGroupTuple = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_TGA] != null) {
        entries[_TGA] = input[_TGA];
      }
      if (input[_W] != null) {
        entries[_W] = input[_W];
      }
      return entries;
    }, "se_TargetGroupTuple");
    var se_TrustStoreArns = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_TrustStoreArns");
    var se_TrustStoreNames = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_TrustStoreNames");
    var de_Action = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_T2] != null) {
        contents[_T2] = (0, import_smithy_client28.expectString)(output[_T2]);
      }
      if (output[_TGA] != null) {
        contents[_TGA] = (0, import_smithy_client28.expectString)(output[_TGA]);
      }
      if (output[_AOC] != null) {
        contents[_AOC] = de_AuthenticateOidcActionConfig(output[_AOC], context);
      }
      if (output[_ACC] != null) {
        contents[_ACC] = de_AuthenticateCognitoActionConfig(output[_ACC], context);
      }
      if (output[_O] != null) {
        contents[_O] = (0, import_smithy_client28.strictParseInt32)(output[_O]);
      }
      if (output[_RC] != null) {
        contents[_RC] = de_RedirectActionConfig(output[_RC], context);
      }
      if (output[_FRC] != null) {
        contents[_FRC] = de_FixedResponseActionConfig(output[_FRC], context);
      }
      if (output[_FC] != null) {
        contents[_FC] = de_ForwardActionConfig(output[_FC], context);
      }
      return contents;
    }, "de_Action");
    var de_Actions = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Action(entry, context);
      });
    }, "de_Actions");
    var de_AddListenerCertificatesOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.Certificates === "") {
        contents[_C2] = [];
      } else if (output[_C2] != null && output[_C2][_m2] != null) {
        contents[_C2] = de_CertificateList((0, import_smithy_client28.getArrayIfSingleItem)(output[_C2][_m2]), context);
      }
      return contents;
    }, "de_AddListenerCertificatesOutput");
    var de_AddTagsOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      return contents;
    }, "de_AddTagsOutput");
    var de_AddTrustStoreRevocationsOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.TrustStoreRevocations === "") {
        contents[_TSR] = [];
      } else if (output[_TSR] != null && output[_TSR][_m2] != null) {
        contents[_TSR] = de_TrustStoreRevocations((0, import_smithy_client28.getArrayIfSingleItem)(output[_TSR][_m2]), context);
      }
      return contents;
    }, "de_AddTrustStoreRevocationsOutput");
    var de_AdministrativeOverride = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_St] != null) {
        contents[_St] = (0, import_smithy_client28.expectString)(output[_St]);
      }
      if (output[_R] != null) {
        contents[_R] = (0, import_smithy_client28.expectString)(output[_R]);
      }
      if (output[_D] != null) {
        contents[_D] = (0, import_smithy_client28.expectString)(output[_D]);
      }
      return contents;
    }, "de_AdministrativeOverride");
    var de_AllocationIdNotFoundException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_AllocationIdNotFoundException");
    var de_AlpnPolicyName = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_AlpnPolicyName");
    var de_ALPNPolicyNotSupportedException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_ALPNPolicyNotSupportedException");
    var de_AnomalyDetection = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Re] != null) {
        contents[_Re] = (0, import_smithy_client28.expectString)(output[_Re]);
      }
      if (output[_MIE] != null) {
        contents[_MIE] = (0, import_smithy_client28.expectString)(output[_MIE]);
      }
      return contents;
    }, "de_AnomalyDetection");
    var de_AuthenticateCognitoActionAuthenticationRequestExtraParams = /* @__PURE__ */ __name2((output, context) => {
      return output.reduce((acc, pair) => {
        if (pair["value"] === null) {
          return acc;
        }
        acc[pair["key"]] = (0, import_smithy_client28.expectString)(pair["value"]);
        return acc;
      }, {});
    }, "de_AuthenticateCognitoActionAuthenticationRequestExtraParams");
    var de_AuthenticateCognitoActionConfig = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_UPA] != null) {
        contents[_UPA] = (0, import_smithy_client28.expectString)(output[_UPA]);
      }
      if (output[_UPCI] != null) {
        contents[_UPCI] = (0, import_smithy_client28.expectString)(output[_UPCI]);
      }
      if (output[_UPD] != null) {
        contents[_UPD] = (0, import_smithy_client28.expectString)(output[_UPD]);
      }
      if (output[_SCN] != null) {
        contents[_SCN] = (0, import_smithy_client28.expectString)(output[_SCN]);
      }
      if (output[_S] != null) {
        contents[_S] = (0, import_smithy_client28.expectString)(output[_S]);
      }
      if (output[_ST2] != null) {
        contents[_ST2] = (0, import_smithy_client28.strictParseLong)(output[_ST2]);
      }
      if (output.AuthenticationRequestExtraParams === "") {
        contents[_AREP] = {};
      } else if (output[_AREP] != null && output[_AREP][_e] != null) {
        contents[_AREP] = de_AuthenticateCognitoActionAuthenticationRequestExtraParams(
          (0, import_smithy_client28.getArrayIfSingleItem)(output[_AREP][_e]),
          context
        );
      }
      if (output[_OUR] != null) {
        contents[_OUR] = (0, import_smithy_client28.expectString)(output[_OUR]);
      }
      return contents;
    }, "de_AuthenticateCognitoActionConfig");
    var de_AuthenticateOidcActionAuthenticationRequestExtraParams = /* @__PURE__ */ __name2((output, context) => {
      return output.reduce((acc, pair) => {
        if (pair["value"] === null) {
          return acc;
        }
        acc[pair["key"]] = (0, import_smithy_client28.expectString)(pair["value"]);
        return acc;
      }, {});
    }, "de_AuthenticateOidcActionAuthenticationRequestExtraParams");
    var de_AuthenticateOidcActionConfig = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_I] != null) {
        contents[_I] = (0, import_smithy_client28.expectString)(output[_I]);
      }
      if (output[_AE] != null) {
        contents[_AE] = (0, import_smithy_client28.expectString)(output[_AE]);
      }
      if (output[_TE] != null) {
        contents[_TE] = (0, import_smithy_client28.expectString)(output[_TE]);
      }
      if (output[_UIE] != null) {
        contents[_UIE] = (0, import_smithy_client28.expectString)(output[_UIE]);
      }
      if (output[_CI] != null) {
        contents[_CI] = (0, import_smithy_client28.expectString)(output[_CI]);
      }
      if (output[_CS] != null) {
        contents[_CS] = (0, import_smithy_client28.expectString)(output[_CS]);
      }
      if (output[_SCN] != null) {
        contents[_SCN] = (0, import_smithy_client28.expectString)(output[_SCN]);
      }
      if (output[_S] != null) {
        contents[_S] = (0, import_smithy_client28.expectString)(output[_S]);
      }
      if (output[_ST2] != null) {
        contents[_ST2] = (0, import_smithy_client28.strictParseLong)(output[_ST2]);
      }
      if (output.AuthenticationRequestExtraParams === "") {
        contents[_AREP] = {};
      } else if (output[_AREP] != null && output[_AREP][_e] != null) {
        contents[_AREP] = de_AuthenticateOidcActionAuthenticationRequestExtraParams(
          (0, import_smithy_client28.getArrayIfSingleItem)(output[_AREP][_e]),
          context
        );
      }
      if (output[_OUR] != null) {
        contents[_OUR] = (0, import_smithy_client28.expectString)(output[_OUR]);
      }
      if (output[_UECS] != null) {
        contents[_UECS] = (0, import_smithy_client28.parseBoolean)(output[_UECS]);
      }
      return contents;
    }, "de_AuthenticateOidcActionConfig");
    var de_AvailabilityZone = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ZN] != null) {
        contents[_ZN] = (0, import_smithy_client28.expectString)(output[_ZN]);
      }
      if (output[_SI2] != null) {
        contents[_SI2] = (0, import_smithy_client28.expectString)(output[_SI2]);
      }
      if (output[_OI] != null) {
        contents[_OI] = (0, import_smithy_client28.expectString)(output[_OI]);
      }
      if (output.LoadBalancerAddresses === "") {
        contents[_LBAoa] = [];
      } else if (output[_LBAoa] != null && output[_LBAoa][_m2] != null) {
        contents[_LBAoa] = de_LoadBalancerAddresses((0, import_smithy_client28.getArrayIfSingleItem)(output[_LBAoa][_m2]), context);
      }
      if (output.SourceNatIpv6Prefixes === "") {
        contents[_SNIPo] = [];
      } else if (output[_SNIPo] != null && output[_SNIPo][_m2] != null) {
        contents[_SNIPo] = de_SourceNatIpv6Prefixes((0, import_smithy_client28.getArrayIfSingleItem)(output[_SNIPo][_m2]), context);
      }
      return contents;
    }, "de_AvailabilityZone");
    var de_AvailabilityZoneNotSupportedException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_AvailabilityZoneNotSupportedException");
    var de_AvailabilityZones = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_AvailabilityZone(entry, context);
      });
    }, "de_AvailabilityZones");
    var de_CaCertificatesBundleNotFoundException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_CaCertificatesBundleNotFoundException");
    var de_CapacityDecreaseRequestsLimitExceededException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_CapacityDecreaseRequestsLimitExceededException");
    var de_CapacityReservationPendingException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_CapacityReservationPendingException");
    var de_CapacityReservationStatus = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Cod] != null) {
        contents[_Cod] = (0, import_smithy_client28.expectString)(output[_Cod]);
      }
      if (output[_R] != null) {
        contents[_R] = (0, import_smithy_client28.expectString)(output[_R]);
      }
      return contents;
    }, "de_CapacityReservationStatus");
    var de_CapacityUnitsLimitExceededException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_CapacityUnitsLimitExceededException");
    var de_Certificate = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_CA2] != null) {
        contents[_CA2] = (0, import_smithy_client28.expectString)(output[_CA2]);
      }
      if (output[_ID] != null) {
        contents[_ID] = (0, import_smithy_client28.parseBoolean)(output[_ID]);
      }
      return contents;
    }, "de_Certificate");
    var de_CertificateList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Certificate(entry, context);
      });
    }, "de_CertificateList");
    var de_CertificateNotFoundException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_CertificateNotFoundException");
    var de_Cipher = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_N] != null) {
        contents[_N] = (0, import_smithy_client28.expectString)(output[_N]);
      }
      if (output[_Pr2] != null) {
        contents[_Pr2] = (0, import_smithy_client28.strictParseInt32)(output[_Pr2]);
      }
      return contents;
    }, "de_Cipher");
    var de_Ciphers = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Cipher(entry, context);
      });
    }, "de_Ciphers");
    var de_CreateListenerOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.Listeners === "") {
        contents[_L] = [];
      } else if (output[_L] != null && output[_L][_m2] != null) {
        contents[_L] = de_Listeners((0, import_smithy_client28.getArrayIfSingleItem)(output[_L][_m2]), context);
      }
      return contents;
    }, "de_CreateListenerOutput");
    var de_CreateLoadBalancerOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.LoadBalancers === "") {
        contents[_LB] = [];
      } else if (output[_LB] != null && output[_LB][_m2] != null) {
        contents[_LB] = de_LoadBalancers((0, import_smithy_client28.getArrayIfSingleItem)(output[_LB][_m2]), context);
      }
      return contents;
    }, "de_CreateLoadBalancerOutput");
    var de_CreateRuleOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.Rules === "") {
        contents[_Ru] = [];
      } else if (output[_Ru] != null && output[_Ru][_m2] != null) {
        contents[_Ru] = de_Rules((0, import_smithy_client28.getArrayIfSingleItem)(output[_Ru][_m2]), context);
      }
      return contents;
    }, "de_CreateRuleOutput");
    var de_CreateTargetGroupOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.TargetGroups === "") {
        contents[_TG] = [];
      } else if (output[_TG] != null && output[_TG][_m2] != null) {
        contents[_TG] = de_TargetGroups((0, import_smithy_client28.getArrayIfSingleItem)(output[_TG][_m2]), context);
      }
      return contents;
    }, "de_CreateTargetGroupOutput");
    var de_CreateTrustStoreOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.TrustStores === "") {
        contents[_TS] = [];
      } else if (output[_TS] != null && output[_TS][_m2] != null) {
        contents[_TS] = de_TrustStores((0, import_smithy_client28.getArrayIfSingleItem)(output[_TS][_m2]), context);
      }
      return contents;
    }, "de_CreateTrustStoreOutput");
    var de_DeleteAssociationSameAccountException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_DeleteAssociationSameAccountException");
    var de_DeleteListenerOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      return contents;
    }, "de_DeleteListenerOutput");
    var de_DeleteLoadBalancerOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      return contents;
    }, "de_DeleteLoadBalancerOutput");
    var de_DeleteRuleOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      return contents;
    }, "de_DeleteRuleOutput");
    var de_DeleteSharedTrustStoreAssociationOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      return contents;
    }, "de_DeleteSharedTrustStoreAssociationOutput");
    var de_DeleteTargetGroupOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      return contents;
    }, "de_DeleteTargetGroupOutput");
    var de_DeleteTrustStoreOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      return contents;
    }, "de_DeleteTrustStoreOutput");
    var de_DeregisterTargetsOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      return contents;
    }, "de_DeregisterTargetsOutput");
    var de_DescribeAccountLimitsOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.Limits === "") {
        contents[_Li] = [];
      } else if (output[_Li] != null && output[_Li][_m2] != null) {
        contents[_Li] = de_Limits((0, import_smithy_client28.getArrayIfSingleItem)(output[_Li][_m2]), context);
      }
      if (output[_NM] != null) {
        contents[_NM] = (0, import_smithy_client28.expectString)(output[_NM]);
      }
      return contents;
    }, "de_DescribeAccountLimitsOutput");
    var de_DescribeCapacityReservationOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_LMT] != null) {
        contents[_LMT] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_LMT]));
      }
      if (output[_DRR] != null) {
        contents[_DRR] = (0, import_smithy_client28.strictParseInt32)(output[_DRR]);
      }
      if (output[_MLBC] != null) {
        contents[_MLBC] = de_MinimumLoadBalancerCapacity(output[_MLBC], context);
      }
      if (output.CapacityReservationState === "") {
        contents[_CRS] = [];
      } else if (output[_CRS] != null && output[_CRS][_m2] != null) {
        contents[_CRS] = de_ZonalCapacityReservationStates((0, import_smithy_client28.getArrayIfSingleItem)(output[_CRS][_m2]), context);
      }
      return contents;
    }, "de_DescribeCapacityReservationOutput");
    var de_DescribeListenerAttributesOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.Attributes === "") {
        contents[_At] = [];
      } else if (output[_At] != null && output[_At][_m2] != null) {
        contents[_At] = de_ListenerAttributes((0, import_smithy_client28.getArrayIfSingleItem)(output[_At][_m2]), context);
      }
      return contents;
    }, "de_DescribeListenerAttributesOutput");
    var de_DescribeListenerCertificatesOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.Certificates === "") {
        contents[_C2] = [];
      } else if (output[_C2] != null && output[_C2][_m2] != null) {
        contents[_C2] = de_CertificateList((0, import_smithy_client28.getArrayIfSingleItem)(output[_C2][_m2]), context);
      }
      if (output[_NM] != null) {
        contents[_NM] = (0, import_smithy_client28.expectString)(output[_NM]);
      }
      return contents;
    }, "de_DescribeListenerCertificatesOutput");
    var de_DescribeListenersOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.Listeners === "") {
        contents[_L] = [];
      } else if (output[_L] != null && output[_L][_m2] != null) {
        contents[_L] = de_Listeners((0, import_smithy_client28.getArrayIfSingleItem)(output[_L][_m2]), context);
      }
      if (output[_NM] != null) {
        contents[_NM] = (0, import_smithy_client28.expectString)(output[_NM]);
      }
      return contents;
    }, "de_DescribeListenersOutput");
    var de_DescribeLoadBalancerAttributesOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.Attributes === "") {
        contents[_At] = [];
      } else if (output[_At] != null && output[_At][_m2] != null) {
        contents[_At] = de_LoadBalancerAttributes((0, import_smithy_client28.getArrayIfSingleItem)(output[_At][_m2]), context);
      }
      return contents;
    }, "de_DescribeLoadBalancerAttributesOutput");
    var de_DescribeLoadBalancersOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.LoadBalancers === "") {
        contents[_LB] = [];
      } else if (output[_LB] != null && output[_LB][_m2] != null) {
        contents[_LB] = de_LoadBalancers((0, import_smithy_client28.getArrayIfSingleItem)(output[_LB][_m2]), context);
      }
      if (output[_NM] != null) {
        contents[_NM] = (0, import_smithy_client28.expectString)(output[_NM]);
      }
      return contents;
    }, "de_DescribeLoadBalancersOutput");
    var de_DescribeRulesOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.Rules === "") {
        contents[_Ru] = [];
      } else if (output[_Ru] != null && output[_Ru][_m2] != null) {
        contents[_Ru] = de_Rules((0, import_smithy_client28.getArrayIfSingleItem)(output[_Ru][_m2]), context);
      }
      if (output[_NM] != null) {
        contents[_NM] = (0, import_smithy_client28.expectString)(output[_NM]);
      }
      return contents;
    }, "de_DescribeRulesOutput");
    var de_DescribeSSLPoliciesOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.SslPolicies === "") {
        contents[_SPs] = [];
      } else if (output[_SPs] != null && output[_SPs][_m2] != null) {
        contents[_SPs] = de_SslPolicies((0, import_smithy_client28.getArrayIfSingleItem)(output[_SPs][_m2]), context);
      }
      if (output[_NM] != null) {
        contents[_NM] = (0, import_smithy_client28.expectString)(output[_NM]);
      }
      return contents;
    }, "de_DescribeSSLPoliciesOutput");
    var de_DescribeTagsOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.TagDescriptions === "") {
        contents[_TD] = [];
      } else if (output[_TD] != null && output[_TD][_m2] != null) {
        contents[_TD] = de_TagDescriptions((0, import_smithy_client28.getArrayIfSingleItem)(output[_TD][_m2]), context);
      }
      return contents;
    }, "de_DescribeTagsOutput");
    var de_DescribeTargetGroupAttributesOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.Attributes === "") {
        contents[_At] = [];
      } else if (output[_At] != null && output[_At][_m2] != null) {
        contents[_At] = de_TargetGroupAttributes((0, import_smithy_client28.getArrayIfSingleItem)(output[_At][_m2]), context);
      }
      return contents;
    }, "de_DescribeTargetGroupAttributesOutput");
    var de_DescribeTargetGroupsOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.TargetGroups === "") {
        contents[_TG] = [];
      } else if (output[_TG] != null && output[_TG][_m2] != null) {
        contents[_TG] = de_TargetGroups((0, import_smithy_client28.getArrayIfSingleItem)(output[_TG][_m2]), context);
      }
      if (output[_NM] != null) {
        contents[_NM] = (0, import_smithy_client28.expectString)(output[_NM]);
      }
      return contents;
    }, "de_DescribeTargetGroupsOutput");
    var de_DescribeTargetHealthOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.TargetHealthDescriptions === "") {
        contents[_THD] = [];
      } else if (output[_THD] != null && output[_THD][_m2] != null) {
        contents[_THD] = de_TargetHealthDescriptions((0, import_smithy_client28.getArrayIfSingleItem)(output[_THD][_m2]), context);
      }
      return contents;
    }, "de_DescribeTargetHealthOutput");
    var de_DescribeTrustStoreAssociationsOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.TrustStoreAssociations === "") {
        contents[_TSAru] = [];
      } else if (output[_TSAru] != null && output[_TSAru][_m2] != null) {
        contents[_TSAru] = de_TrustStoreAssociations((0, import_smithy_client28.getArrayIfSingleItem)(output[_TSAru][_m2]), context);
      }
      if (output[_NM] != null) {
        contents[_NM] = (0, import_smithy_client28.expectString)(output[_NM]);
      }
      return contents;
    }, "de_DescribeTrustStoreAssociationsOutput");
    var de_DescribeTrustStoreRevocation = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_TSA] != null) {
        contents[_TSA] = (0, import_smithy_client28.expectString)(output[_TSA]);
      }
      if (output[_RIe] != null) {
        contents[_RIe] = (0, import_smithy_client28.strictParseLong)(output[_RIe]);
      }
      if (output[_RTev] != null) {
        contents[_RTev] = (0, import_smithy_client28.expectString)(output[_RTev]);
      }
      if (output[_NORE] != null) {
        contents[_NORE] = (0, import_smithy_client28.strictParseLong)(output[_NORE]);
      }
      return contents;
    }, "de_DescribeTrustStoreRevocation");
    var de_DescribeTrustStoreRevocationResponse = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_DescribeTrustStoreRevocation(entry, context);
      });
    }, "de_DescribeTrustStoreRevocationResponse");
    var de_DescribeTrustStoreRevocationsOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.TrustStoreRevocations === "") {
        contents[_TSR] = [];
      } else if (output[_TSR] != null && output[_TSR][_m2] != null) {
        contents[_TSR] = de_DescribeTrustStoreRevocationResponse((0, import_smithy_client28.getArrayIfSingleItem)(output[_TSR][_m2]), context);
      }
      if (output[_NM] != null) {
        contents[_NM] = (0, import_smithy_client28.expectString)(output[_NM]);
      }
      return contents;
    }, "de_DescribeTrustStoreRevocationsOutput");
    var de_DescribeTrustStoresOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.TrustStores === "") {
        contents[_TS] = [];
      } else if (output[_TS] != null && output[_TS][_m2] != null) {
        contents[_TS] = de_TrustStores((0, import_smithy_client28.getArrayIfSingleItem)(output[_TS][_m2]), context);
      }
      if (output[_NM] != null) {
        contents[_NM] = (0, import_smithy_client28.expectString)(output[_NM]);
      }
      return contents;
    }, "de_DescribeTrustStoresOutput");
    var de_DuplicateListenerException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_DuplicateListenerException");
    var de_DuplicateLoadBalancerNameException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_DuplicateLoadBalancerNameException");
    var de_DuplicateTagKeysException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_DuplicateTagKeysException");
    var de_DuplicateTargetGroupNameException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_DuplicateTargetGroupNameException");
    var de_DuplicateTrustStoreNameException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_DuplicateTrustStoreNameException");
    var de_FixedResponseActionConfig = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_MB] != null) {
        contents[_MB] = (0, import_smithy_client28.expectString)(output[_MB]);
      }
      if (output[_SC] != null) {
        contents[_SC] = (0, import_smithy_client28.expectString)(output[_SC]);
      }
      if (output[_CT] != null) {
        contents[_CT] = (0, import_smithy_client28.expectString)(output[_CT]);
      }
      return contents;
    }, "de_FixedResponseActionConfig");
    var de_ForwardActionConfig = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.TargetGroups === "") {
        contents[_TG] = [];
      } else if (output[_TG] != null && output[_TG][_m2] != null) {
        contents[_TG] = de_TargetGroupList((0, import_smithy_client28.getArrayIfSingleItem)(output[_TG][_m2]), context);
      }
      if (output[_TGSC] != null) {
        contents[_TGSC] = de_TargetGroupStickinessConfig(output[_TGSC], context);
      }
      return contents;
    }, "de_ForwardActionConfig");
    var de_GetResourcePolicyOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Pol] != null) {
        contents[_Pol] = (0, import_smithy_client28.expectString)(output[_Pol]);
      }
      return contents;
    }, "de_GetResourcePolicyOutput");
    var de_GetTrustStoreCaCertificatesBundleOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Lo] != null) {
        contents[_Lo] = (0, import_smithy_client28.expectString)(output[_Lo]);
      }
      return contents;
    }, "de_GetTrustStoreCaCertificatesBundleOutput");
    var de_GetTrustStoreRevocationContentOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Lo] != null) {
        contents[_Lo] = (0, import_smithy_client28.expectString)(output[_Lo]);
      }
      return contents;
    }, "de_GetTrustStoreRevocationContentOutput");
    var de_HealthUnavailableException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_HealthUnavailableException");
    var de_HostHeaderConditionConfig = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.Values === "") {
        contents[_Va2] = [];
      } else if (output[_Va2] != null && output[_Va2][_m2] != null) {
        contents[_Va2] = de_ListOfString((0, import_smithy_client28.getArrayIfSingleItem)(output[_Va2][_m2]), context);
      }
      return contents;
    }, "de_HostHeaderConditionConfig");
    var de_HttpHeaderConditionConfig = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_HHN] != null) {
        contents[_HHN] = (0, import_smithy_client28.expectString)(output[_HHN]);
      }
      if (output.Values === "") {
        contents[_Va2] = [];
      } else if (output[_Va2] != null && output[_Va2][_m2] != null) {
        contents[_Va2] = de_ListOfString((0, import_smithy_client28.getArrayIfSingleItem)(output[_Va2][_m2]), context);
      }
      return contents;
    }, "de_HttpHeaderConditionConfig");
    var de_HttpRequestMethodConditionConfig = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.Values === "") {
        contents[_Va2] = [];
      } else if (output[_Va2] != null && output[_Va2][_m2] != null) {
        contents[_Va2] = de_ListOfString((0, import_smithy_client28.getArrayIfSingleItem)(output[_Va2][_m2]), context);
      }
      return contents;
    }, "de_HttpRequestMethodConditionConfig");
    var de_IncompatibleProtocolsException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_IncompatibleProtocolsException");
    var de_InsufficientCapacityException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_InsufficientCapacityException");
    var de_InvalidCaCertificatesBundleException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_InvalidCaCertificatesBundleException");
    var de_InvalidConfigurationRequestException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_InvalidConfigurationRequestException");
    var de_InvalidLoadBalancerActionException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_InvalidLoadBalancerActionException");
    var de_InvalidRevocationContentException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_InvalidRevocationContentException");
    var de_InvalidSchemeException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_InvalidSchemeException");
    var de_InvalidSecurityGroupException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_InvalidSecurityGroupException");
    var de_InvalidSubnetException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_InvalidSubnetException");
    var de_InvalidTargetException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_InvalidTargetException");
    var de_IpamPools = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_IIPI] != null) {
        contents[_IIPI] = (0, import_smithy_client28.expectString)(output[_IIPI]);
      }
      return contents;
    }, "de_IpamPools");
    var de_Limit = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_N] != null) {
        contents[_N] = (0, import_smithy_client28.expectString)(output[_N]);
      }
      if (output[_Max] != null) {
        contents[_Max] = (0, import_smithy_client28.expectString)(output[_Max]);
      }
      return contents;
    }, "de_Limit");
    var de_Limits = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Limit(entry, context);
      });
    }, "de_Limits");
    var de_Listener = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_LA] != null) {
        contents[_LA] = (0, import_smithy_client28.expectString)(output[_LA]);
      }
      if (output[_LBA] != null) {
        contents[_LBA] = (0, import_smithy_client28.expectString)(output[_LBA]);
      }
      if (output[_Po] != null) {
        contents[_Po] = (0, import_smithy_client28.strictParseInt32)(output[_Po]);
      }
      if (output[_P2] != null) {
        contents[_P2] = (0, import_smithy_client28.expectString)(output[_P2]);
      }
      if (output.Certificates === "") {
        contents[_C2] = [];
      } else if (output[_C2] != null && output[_C2][_m2] != null) {
        contents[_C2] = de_CertificateList((0, import_smithy_client28.getArrayIfSingleItem)(output[_C2][_m2]), context);
      }
      if (output[_SP] != null) {
        contents[_SP] = (0, import_smithy_client28.expectString)(output[_SP]);
      }
      if (output.DefaultActions === "") {
        contents[_DA] = [];
      } else if (output[_DA] != null && output[_DA][_m2] != null) {
        contents[_DA] = de_Actions((0, import_smithy_client28.getArrayIfSingleItem)(output[_DA][_m2]), context);
      }
      if (output.AlpnPolicy === "") {
        contents[_AP] = [];
      } else if (output[_AP] != null && output[_AP][_m2] != null) {
        contents[_AP] = de_AlpnPolicyName((0, import_smithy_client28.getArrayIfSingleItem)(output[_AP][_m2]), context);
      }
      if (output[_MA] != null) {
        contents[_MA] = de_MutualAuthenticationAttributes(output[_MA], context);
      }
      return contents;
    }, "de_Listener");
    var de_ListenerAttribute = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_K2] != null) {
        contents[_K2] = (0, import_smithy_client28.expectString)(output[_K2]);
      }
      if (output[_Val] != null) {
        contents[_Val] = (0, import_smithy_client28.expectString)(output[_Val]);
      }
      return contents;
    }, "de_ListenerAttribute");
    var de_ListenerAttributes = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ListenerAttribute(entry, context);
      });
    }, "de_ListenerAttributes");
    var de_ListenerNotFoundException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_ListenerNotFoundException");
    var de_Listeners = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Listener(entry, context);
      });
    }, "de_Listeners");
    var de_ListOfString = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_ListOfString");
    var de_LoadBalancer = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_LBA] != null) {
        contents[_LBA] = (0, import_smithy_client28.expectString)(output[_LBA]);
      }
      if (output[_DNSN] != null) {
        contents[_DNSN] = (0, import_smithy_client28.expectString)(output[_DNSN]);
      }
      if (output[_CHZI] != null) {
        contents[_CHZI] = (0, import_smithy_client28.expectString)(output[_CHZI]);
      }
      if (output[_CTr] != null) {
        contents[_CTr] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_CTr]));
      }
      if (output[_LBN] != null) {
        contents[_LBN] = (0, import_smithy_client28.expectString)(output[_LBN]);
      }
      if (output[_Sc] != null) {
        contents[_Sc] = (0, import_smithy_client28.expectString)(output[_Sc]);
      }
      if (output[_VI] != null) {
        contents[_VI] = (0, import_smithy_client28.expectString)(output[_VI]);
      }
      if (output[_St] != null) {
        contents[_St] = de_LoadBalancerState(output[_St], context);
      }
      if (output[_T2] != null) {
        contents[_T2] = (0, import_smithy_client28.expectString)(output[_T2]);
      }
      if (output.AvailabilityZones === "") {
        contents[_AZv] = [];
      } else if (output[_AZv] != null && output[_AZv][_m2] != null) {
        contents[_AZv] = de_AvailabilityZones((0, import_smithy_client28.getArrayIfSingleItem)(output[_AZv][_m2]), context);
      }
      if (output.SecurityGroups === "") {
        contents[_SG] = [];
      } else if (output[_SG] != null && output[_SG][_m2] != null) {
        contents[_SG] = de_SecurityGroups((0, import_smithy_client28.getArrayIfSingleItem)(output[_SG][_m2]), context);
      }
      if (output[_IAT] != null) {
        contents[_IAT] = (0, import_smithy_client28.expectString)(output[_IAT]);
      }
      if (output[_COIP] != null) {
        contents[_COIP] = (0, import_smithy_client28.expectString)(output[_COIP]);
      }
      if (output[_ESGIROPLT] != null) {
        contents[_ESGIROPLT] = (0, import_smithy_client28.expectString)(output[_ESGIROPLT]);
      }
      if (output[_EPFISN] != null) {
        contents[_EPFISN] = (0, import_smithy_client28.expectString)(output[_EPFISN]);
      }
      if (output[_IP] != null) {
        contents[_IP] = de_IpamPools(output[_IP], context);
      }
      return contents;
    }, "de_LoadBalancer");
    var de_LoadBalancerAddress = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_IA] != null) {
        contents[_IA] = (0, import_smithy_client28.expectString)(output[_IA]);
      }
      if (output[_AI] != null) {
        contents[_AI] = (0, import_smithy_client28.expectString)(output[_AI]);
      }
      if (output[_PIPA] != null) {
        contents[_PIPA] = (0, import_smithy_client28.expectString)(output[_PIPA]);
      }
      if (output[_IPA] != null) {
        contents[_IPA] = (0, import_smithy_client28.expectString)(output[_IPA]);
      }
      return contents;
    }, "de_LoadBalancerAddress");
    var de_LoadBalancerAddresses = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_LoadBalancerAddress(entry, context);
      });
    }, "de_LoadBalancerAddresses");
    var de_LoadBalancerArns = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_LoadBalancerArns");
    var de_LoadBalancerAttribute = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_K2] != null) {
        contents[_K2] = (0, import_smithy_client28.expectString)(output[_K2]);
      }
      if (output[_Val] != null) {
        contents[_Val] = (0, import_smithy_client28.expectString)(output[_Val]);
      }
      return contents;
    }, "de_LoadBalancerAttribute");
    var de_LoadBalancerAttributes = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_LoadBalancerAttribute(entry, context);
      });
    }, "de_LoadBalancerAttributes");
    var de_LoadBalancerNotFoundException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_LoadBalancerNotFoundException");
    var de_LoadBalancers = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_LoadBalancer(entry, context);
      });
    }, "de_LoadBalancers");
    var de_LoadBalancerState = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Cod] != null) {
        contents[_Cod] = (0, import_smithy_client28.expectString)(output[_Cod]);
      }
      if (output[_R] != null) {
        contents[_R] = (0, import_smithy_client28.expectString)(output[_R]);
      }
      return contents;
    }, "de_LoadBalancerState");
    var de_Matcher = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_HC] != null) {
        contents[_HC] = (0, import_smithy_client28.expectString)(output[_HC]);
      }
      if (output[_GC] != null) {
        contents[_GC] = (0, import_smithy_client28.expectString)(output[_GC]);
      }
      return contents;
    }, "de_Matcher");
    var de_MinimumLoadBalancerCapacity = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_CU] != null) {
        contents[_CU] = (0, import_smithy_client28.strictParseInt32)(output[_CU]);
      }
      return contents;
    }, "de_MinimumLoadBalancerCapacity");
    var de_ModifyCapacityReservationOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_LMT] != null) {
        contents[_LMT] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_LMT]));
      }
      if (output[_DRR] != null) {
        contents[_DRR] = (0, import_smithy_client28.strictParseInt32)(output[_DRR]);
      }
      if (output[_MLBC] != null) {
        contents[_MLBC] = de_MinimumLoadBalancerCapacity(output[_MLBC], context);
      }
      if (output.CapacityReservationState === "") {
        contents[_CRS] = [];
      } else if (output[_CRS] != null && output[_CRS][_m2] != null) {
        contents[_CRS] = de_ZonalCapacityReservationStates((0, import_smithy_client28.getArrayIfSingleItem)(output[_CRS][_m2]), context);
      }
      return contents;
    }, "de_ModifyCapacityReservationOutput");
    var de_ModifyIpPoolsOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_IP] != null) {
        contents[_IP] = de_IpamPools(output[_IP], context);
      }
      return contents;
    }, "de_ModifyIpPoolsOutput");
    var de_ModifyListenerAttributesOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.Attributes === "") {
        contents[_At] = [];
      } else if (output[_At] != null && output[_At][_m2] != null) {
        contents[_At] = de_ListenerAttributes((0, import_smithy_client28.getArrayIfSingleItem)(output[_At][_m2]), context);
      }
      return contents;
    }, "de_ModifyListenerAttributesOutput");
    var de_ModifyListenerOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.Listeners === "") {
        contents[_L] = [];
      } else if (output[_L] != null && output[_L][_m2] != null) {
        contents[_L] = de_Listeners((0, import_smithy_client28.getArrayIfSingleItem)(output[_L][_m2]), context);
      }
      return contents;
    }, "de_ModifyListenerOutput");
    var de_ModifyLoadBalancerAttributesOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.Attributes === "") {
        contents[_At] = [];
      } else if (output[_At] != null && output[_At][_m2] != null) {
        contents[_At] = de_LoadBalancerAttributes((0, import_smithy_client28.getArrayIfSingleItem)(output[_At][_m2]), context);
      }
      return contents;
    }, "de_ModifyLoadBalancerAttributesOutput");
    var de_ModifyRuleOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.Rules === "") {
        contents[_Ru] = [];
      } else if (output[_Ru] != null && output[_Ru][_m2] != null) {
        contents[_Ru] = de_Rules((0, import_smithy_client28.getArrayIfSingleItem)(output[_Ru][_m2]), context);
      }
      return contents;
    }, "de_ModifyRuleOutput");
    var de_ModifyTargetGroupAttributesOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.Attributes === "") {
        contents[_At] = [];
      } else if (output[_At] != null && output[_At][_m2] != null) {
        contents[_At] = de_TargetGroupAttributes((0, import_smithy_client28.getArrayIfSingleItem)(output[_At][_m2]), context);
      }
      return contents;
    }, "de_ModifyTargetGroupAttributesOutput");
    var de_ModifyTargetGroupOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.TargetGroups === "") {
        contents[_TG] = [];
      } else if (output[_TG] != null && output[_TG][_m2] != null) {
        contents[_TG] = de_TargetGroups((0, import_smithy_client28.getArrayIfSingleItem)(output[_TG][_m2]), context);
      }
      return contents;
    }, "de_ModifyTargetGroupOutput");
    var de_ModifyTrustStoreOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.TrustStores === "") {
        contents[_TS] = [];
      } else if (output[_TS] != null && output[_TS][_m2] != null) {
        contents[_TS] = de_TrustStores((0, import_smithy_client28.getArrayIfSingleItem)(output[_TS][_m2]), context);
      }
      return contents;
    }, "de_ModifyTrustStoreOutput");
    var de_MutualAuthenticationAttributes = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Mo] != null) {
        contents[_Mo] = (0, import_smithy_client28.expectString)(output[_Mo]);
      }
      if (output[_TSA] != null) {
        contents[_TSA] = (0, import_smithy_client28.expectString)(output[_TSA]);
      }
      if (output[_ICCE] != null) {
        contents[_ICCE] = (0, import_smithy_client28.parseBoolean)(output[_ICCE]);
      }
      if (output[_TSAS] != null) {
        contents[_TSAS] = (0, import_smithy_client28.expectString)(output[_TSAS]);
      }
      if (output[_ATSCN] != null) {
        contents[_ATSCN] = (0, import_smithy_client28.expectString)(output[_ATSCN]);
      }
      return contents;
    }, "de_MutualAuthenticationAttributes");
    var de_OperationNotPermittedException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_OperationNotPermittedException");
    var de_PathPatternConditionConfig = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.Values === "") {
        contents[_Va2] = [];
      } else if (output[_Va2] != null && output[_Va2][_m2] != null) {
        contents[_Va2] = de_ListOfString((0, import_smithy_client28.getArrayIfSingleItem)(output[_Va2][_m2]), context);
      }
      return contents;
    }, "de_PathPatternConditionConfig");
    var de_PriorityInUseException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_PriorityInUseException");
    var de_PriorRequestNotCompleteException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_PriorRequestNotCompleteException");
    var de_QueryStringConditionConfig = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.Values === "") {
        contents[_Va2] = [];
      } else if (output[_Va2] != null && output[_Va2][_m2] != null) {
        contents[_Va2] = de_QueryStringKeyValuePairList((0, import_smithy_client28.getArrayIfSingleItem)(output[_Va2][_m2]), context);
      }
      return contents;
    }, "de_QueryStringConditionConfig");
    var de_QueryStringKeyValuePair = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_K2] != null) {
        contents[_K2] = (0, import_smithy_client28.expectString)(output[_K2]);
      }
      if (output[_Val] != null) {
        contents[_Val] = (0, import_smithy_client28.expectString)(output[_Val]);
      }
      return contents;
    }, "de_QueryStringKeyValuePair");
    var de_QueryStringKeyValuePairList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_QueryStringKeyValuePair(entry, context);
      });
    }, "de_QueryStringKeyValuePairList");
    var de_RedirectActionConfig = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_P2] != null) {
        contents[_P2] = (0, import_smithy_client28.expectString)(output[_P2]);
      }
      if (output[_Po] != null) {
        contents[_Po] = (0, import_smithy_client28.expectString)(output[_Po]);
      }
      if (output[_H] != null) {
        contents[_H] = (0, import_smithy_client28.expectString)(output[_H]);
      }
      if (output[_Pa] != null) {
        contents[_Pa] = (0, import_smithy_client28.expectString)(output[_Pa]);
      }
      if (output[_Q] != null) {
        contents[_Q] = (0, import_smithy_client28.expectString)(output[_Q]);
      }
      if (output[_SC] != null) {
        contents[_SC] = (0, import_smithy_client28.expectString)(output[_SC]);
      }
      return contents;
    }, "de_RedirectActionConfig");
    var de_RegisterTargetsOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      return contents;
    }, "de_RegisterTargetsOutput");
    var de_RemoveListenerCertificatesOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      return contents;
    }, "de_RemoveListenerCertificatesOutput");
    var de_RemoveTagsOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      return contents;
    }, "de_RemoveTagsOutput");
    var de_RemoveTrustStoreRevocationsOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      return contents;
    }, "de_RemoveTrustStoreRevocationsOutput");
    var de_ResourceInUseException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_ResourceInUseException");
    var de_ResourceNotFoundException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_ResourceNotFoundException");
    var de_RevocationContentNotFoundException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_RevocationContentNotFoundException");
    var de_RevocationIdNotFoundException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_RevocationIdNotFoundException");
    var de_Rule = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_RAu] != null) {
        contents[_RAu] = (0, import_smithy_client28.expectString)(output[_RAu]);
      }
      if (output[_Pr2] != null) {
        contents[_Pr2] = (0, import_smithy_client28.expectString)(output[_Pr2]);
      }
      if (output.Conditions === "") {
        contents[_Co] = [];
      } else if (output[_Co] != null && output[_Co][_m2] != null) {
        contents[_Co] = de_RuleConditionList((0, import_smithy_client28.getArrayIfSingleItem)(output[_Co][_m2]), context);
      }
      if (output.Actions === "") {
        contents[_Ac] = [];
      } else if (output[_Ac] != null && output[_Ac][_m2] != null) {
        contents[_Ac] = de_Actions((0, import_smithy_client28.getArrayIfSingleItem)(output[_Ac][_m2]), context);
      }
      if (output[_ID] != null) {
        contents[_ID] = (0, import_smithy_client28.parseBoolean)(output[_ID]);
      }
      return contents;
    }, "de_Rule");
    var de_RuleCondition = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_F] != null) {
        contents[_F] = (0, import_smithy_client28.expectString)(output[_F]);
      }
      if (output.Values === "") {
        contents[_Va2] = [];
      } else if (output[_Va2] != null && output[_Va2][_m2] != null) {
        contents[_Va2] = de_ListOfString((0, import_smithy_client28.getArrayIfSingleItem)(output[_Va2][_m2]), context);
      }
      if (output[_HHC] != null) {
        contents[_HHC] = de_HostHeaderConditionConfig(output[_HHC], context);
      }
      if (output[_PPC] != null) {
        contents[_PPC] = de_PathPatternConditionConfig(output[_PPC], context);
      }
      if (output[_HHCt] != null) {
        contents[_HHCt] = de_HttpHeaderConditionConfig(output[_HHCt], context);
      }
      if (output[_QSC] != null) {
        contents[_QSC] = de_QueryStringConditionConfig(output[_QSC], context);
      }
      if (output[_HRMC] != null) {
        contents[_HRMC] = de_HttpRequestMethodConditionConfig(output[_HRMC], context);
      }
      if (output[_SIC] != null) {
        contents[_SIC] = de_SourceIpConditionConfig(output[_SIC], context);
      }
      return contents;
    }, "de_RuleCondition");
    var de_RuleConditionList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_RuleCondition(entry, context);
      });
    }, "de_RuleConditionList");
    var de_RuleNotFoundException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_RuleNotFoundException");
    var de_Rules = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Rule(entry, context);
      });
    }, "de_Rules");
    var de_SecurityGroups = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_SecurityGroups");
    var de_SetIpAddressTypeOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_IAT] != null) {
        contents[_IAT] = (0, import_smithy_client28.expectString)(output[_IAT]);
      }
      return contents;
    }, "de_SetIpAddressTypeOutput");
    var de_SetRulePrioritiesOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.Rules === "") {
        contents[_Ru] = [];
      } else if (output[_Ru] != null && output[_Ru][_m2] != null) {
        contents[_Ru] = de_Rules((0, import_smithy_client28.getArrayIfSingleItem)(output[_Ru][_m2]), context);
      }
      return contents;
    }, "de_SetRulePrioritiesOutput");
    var de_SetSecurityGroupsOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.SecurityGroupIds === "") {
        contents[_SGI] = [];
      } else if (output[_SGI] != null && output[_SGI][_m2] != null) {
        contents[_SGI] = de_SecurityGroups((0, import_smithy_client28.getArrayIfSingleItem)(output[_SGI][_m2]), context);
      }
      if (output[_ESGIROPLT] != null) {
        contents[_ESGIROPLT] = (0, import_smithy_client28.expectString)(output[_ESGIROPLT]);
      }
      return contents;
    }, "de_SetSecurityGroupsOutput");
    var de_SetSubnetsOutput = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.AvailabilityZones === "") {
        contents[_AZv] = [];
      } else if (output[_AZv] != null && output[_AZv][_m2] != null) {
        contents[_AZv] = de_AvailabilityZones((0, import_smithy_client28.getArrayIfSingleItem)(output[_AZv][_m2]), context);
      }
      if (output[_IAT] != null) {
        contents[_IAT] = (0, import_smithy_client28.expectString)(output[_IAT]);
      }
      if (output[_EPFISN] != null) {
        contents[_EPFISN] = (0, import_smithy_client28.expectString)(output[_EPFISN]);
      }
      return contents;
    }, "de_SetSubnetsOutput");
    var de_SourceIpConditionConfig = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.Values === "") {
        contents[_Va2] = [];
      } else if (output[_Va2] != null && output[_Va2][_m2] != null) {
        contents[_Va2] = de_ListOfString((0, import_smithy_client28.getArrayIfSingleItem)(output[_Va2][_m2]), context);
      }
      return contents;
    }, "de_SourceIpConditionConfig");
    var de_SourceNatIpv6Prefixes = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_SourceNatIpv6Prefixes");
    var de_SslPolicies = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_SslPolicy(entry, context);
      });
    }, "de_SslPolicies");
    var de_SslPolicy = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.SslProtocols === "") {
        contents[_SPsl] = [];
      } else if (output[_SPsl] != null && output[_SPsl][_m2] != null) {
        contents[_SPsl] = de_SslProtocols((0, import_smithy_client28.getArrayIfSingleItem)(output[_SPsl][_m2]), context);
      }
      if (output.Ciphers === "") {
        contents[_Ci] = [];
      } else if (output[_Ci] != null && output[_Ci][_m2] != null) {
        contents[_Ci] = de_Ciphers((0, import_smithy_client28.getArrayIfSingleItem)(output[_Ci][_m2]), context);
      }
      if (output[_N] != null) {
        contents[_N] = (0, import_smithy_client28.expectString)(output[_N]);
      }
      if (output.SupportedLoadBalancerTypes === "") {
        contents[_SLBT] = [];
      } else if (output[_SLBT] != null && output[_SLBT][_m2] != null) {
        contents[_SLBT] = de_ListOfString((0, import_smithy_client28.getArrayIfSingleItem)(output[_SLBT][_m2]), context);
      }
      return contents;
    }, "de_SslPolicy");
    var de_SSLPolicyNotFoundException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_SSLPolicyNotFoundException");
    var de_SslProtocols = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_SslProtocols");
    var de_SubnetNotFoundException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_SubnetNotFoundException");
    var de_Tag = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_K2] != null) {
        contents[_K2] = (0, import_smithy_client28.expectString)(output[_K2]);
      }
      if (output[_Val] != null) {
        contents[_Val] = (0, import_smithy_client28.expectString)(output[_Val]);
      }
      return contents;
    }, "de_Tag");
    var de_TagDescription = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_RAe] != null) {
        contents[_RAe] = (0, import_smithy_client28.expectString)(output[_RAe]);
      }
      if (output.Tags === "") {
        contents[_Ta] = [];
      } else if (output[_Ta] != null && output[_Ta][_m2] != null) {
        contents[_Ta] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_Ta][_m2]), context);
      }
      return contents;
    }, "de_TagDescription");
    var de_TagDescriptions = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TagDescription(entry, context);
      });
    }, "de_TagDescriptions");
    var de_TagList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Tag(entry, context);
      });
    }, "de_TagList");
    var de_TargetDescription = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Id] != null) {
        contents[_Id] = (0, import_smithy_client28.expectString)(output[_Id]);
      }
      if (output[_Po] != null) {
        contents[_Po] = (0, import_smithy_client28.strictParseInt32)(output[_Po]);
      }
      if (output[_AZ] != null) {
        contents[_AZ] = (0, import_smithy_client28.expectString)(output[_AZ]);
      }
      return contents;
    }, "de_TargetDescription");
    var de_TargetGroup = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_TGA] != null) {
        contents[_TGA] = (0, import_smithy_client28.expectString)(output[_TGA]);
      }
      if (output[_TGN] != null) {
        contents[_TGN] = (0, import_smithy_client28.expectString)(output[_TGN]);
      }
      if (output[_P2] != null) {
        contents[_P2] = (0, import_smithy_client28.expectString)(output[_P2]);
      }
      if (output[_Po] != null) {
        contents[_Po] = (0, import_smithy_client28.strictParseInt32)(output[_Po]);
      }
      if (output[_VI] != null) {
        contents[_VI] = (0, import_smithy_client28.expectString)(output[_VI]);
      }
      if (output[_HCP] != null) {
        contents[_HCP] = (0, import_smithy_client28.expectString)(output[_HCP]);
      }
      if (output[_HCPe] != null) {
        contents[_HCPe] = (0, import_smithy_client28.expectString)(output[_HCPe]);
      }
      if (output[_HCE] != null) {
        contents[_HCE] = (0, import_smithy_client28.parseBoolean)(output[_HCE]);
      }
      if (output[_HCIS] != null) {
        contents[_HCIS] = (0, import_smithy_client28.strictParseInt32)(output[_HCIS]);
      }
      if (output[_HCTS] != null) {
        contents[_HCTS] = (0, import_smithy_client28.strictParseInt32)(output[_HCTS]);
      }
      if (output[_HTC] != null) {
        contents[_HTC] = (0, import_smithy_client28.strictParseInt32)(output[_HTC]);
      }
      if (output[_UTC] != null) {
        contents[_UTC] = (0, import_smithy_client28.strictParseInt32)(output[_UTC]);
      }
      if (output[_HCPea] != null) {
        contents[_HCPea] = (0, import_smithy_client28.expectString)(output[_HCPea]);
      }
      if (output[_M] != null) {
        contents[_M] = de_Matcher(output[_M], context);
      }
      if (output.LoadBalancerArns === "") {
        contents[_LBAo] = [];
      } else if (output[_LBAo] != null && output[_LBAo][_m2] != null) {
        contents[_LBAo] = de_LoadBalancerArns((0, import_smithy_client28.getArrayIfSingleItem)(output[_LBAo][_m2]), context);
      }
      if (output[_TT] != null) {
        contents[_TT] = (0, import_smithy_client28.expectString)(output[_TT]);
      }
      if (output[_PV] != null) {
        contents[_PV] = (0, import_smithy_client28.expectString)(output[_PV]);
      }
      if (output[_IAT] != null) {
        contents[_IAT] = (0, import_smithy_client28.expectString)(output[_IAT]);
      }
      return contents;
    }, "de_TargetGroup");
    var de_TargetGroupAssociationLimitException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_TargetGroupAssociationLimitException");
    var de_TargetGroupAttribute = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_K2] != null) {
        contents[_K2] = (0, import_smithy_client28.expectString)(output[_K2]);
      }
      if (output[_Val] != null) {
        contents[_Val] = (0, import_smithy_client28.expectString)(output[_Val]);
      }
      return contents;
    }, "de_TargetGroupAttribute");
    var de_TargetGroupAttributes = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TargetGroupAttribute(entry, context);
      });
    }, "de_TargetGroupAttributes");
    var de_TargetGroupList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TargetGroupTuple(entry, context);
      });
    }, "de_TargetGroupList");
    var de_TargetGroupNotFoundException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_TargetGroupNotFoundException");
    var de_TargetGroups = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TargetGroup(entry, context);
      });
    }, "de_TargetGroups");
    var de_TargetGroupStickinessConfig = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_E2] != null) {
        contents[_E2] = (0, import_smithy_client28.parseBoolean)(output[_E2]);
      }
      if (output[_DS2] != null) {
        contents[_DS2] = (0, import_smithy_client28.strictParseInt32)(output[_DS2]);
      }
      return contents;
    }, "de_TargetGroupStickinessConfig");
    var de_TargetGroupTuple = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_TGA] != null) {
        contents[_TGA] = (0, import_smithy_client28.expectString)(output[_TGA]);
      }
      if (output[_W] != null) {
        contents[_W] = (0, import_smithy_client28.strictParseInt32)(output[_W]);
      }
      return contents;
    }, "de_TargetGroupTuple");
    var de_TargetHealth = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_St] != null) {
        contents[_St] = (0, import_smithy_client28.expectString)(output[_St]);
      }
      if (output[_R] != null) {
        contents[_R] = (0, import_smithy_client28.expectString)(output[_R]);
      }
      if (output[_D] != null) {
        contents[_D] = (0, import_smithy_client28.expectString)(output[_D]);
      }
      return contents;
    }, "de_TargetHealth");
    var de_TargetHealthDescription = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Targ] != null) {
        contents[_Targ] = de_TargetDescription(output[_Targ], context);
      }
      if (output[_HCPe] != null) {
        contents[_HCPe] = (0, import_smithy_client28.expectString)(output[_HCPe]);
      }
      if (output[_TH] != null) {
        contents[_TH] = de_TargetHealth(output[_TH], context);
      }
      if (output[_AD] != null) {
        contents[_AD] = de_AnomalyDetection(output[_AD], context);
      }
      if (output[_AO] != null) {
        contents[_AO] = de_AdministrativeOverride(output[_AO], context);
      }
      return contents;
    }, "de_TargetHealthDescription");
    var de_TargetHealthDescriptions = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TargetHealthDescription(entry, context);
      });
    }, "de_TargetHealthDescriptions");
    var de_TooManyActionsException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_TooManyActionsException");
    var de_TooManyCertificatesException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_TooManyCertificatesException");
    var de_TooManyListenersException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_TooManyListenersException");
    var de_TooManyLoadBalancersException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_TooManyLoadBalancersException");
    var de_TooManyRegistrationsForTargetIdException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_TooManyRegistrationsForTargetIdException");
    var de_TooManyRulesException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_TooManyRulesException");
    var de_TooManyTagsException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_TooManyTagsException");
    var de_TooManyTargetGroupsException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_TooManyTargetGroupsException");
    var de_TooManyTargetsException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_TooManyTargetsException");
    var de_TooManyTrustStoreRevocationEntriesException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_TooManyTrustStoreRevocationEntriesException");
    var de_TooManyTrustStoresException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_TooManyTrustStoresException");
    var de_TooManyUniqueTargetGroupsPerLoadBalancerException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_TooManyUniqueTargetGroupsPerLoadBalancerException");
    var de_TrustStore = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_N] != null) {
        contents[_N] = (0, import_smithy_client28.expectString)(output[_N]);
      }
      if (output[_TSA] != null) {
        contents[_TSA] = (0, import_smithy_client28.expectString)(output[_TSA]);
      }
      if (output[_Sta] != null) {
        contents[_Sta] = (0, import_smithy_client28.expectString)(output[_Sta]);
      }
      if (output[_NOCC] != null) {
        contents[_NOCC] = (0, import_smithy_client28.strictParseInt32)(output[_NOCC]);
      }
      if (output[_TRE] != null) {
        contents[_TRE] = (0, import_smithy_client28.strictParseLong)(output[_TRE]);
      }
      return contents;
    }, "de_TrustStore");
    var de_TrustStoreAssociation = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_RAe] != null) {
        contents[_RAe] = (0, import_smithy_client28.expectString)(output[_RAe]);
      }
      return contents;
    }, "de_TrustStoreAssociation");
    var de_TrustStoreAssociationNotFoundException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_TrustStoreAssociationNotFoundException");
    var de_TrustStoreAssociations = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TrustStoreAssociation(entry, context);
      });
    }, "de_TrustStoreAssociations");
    var de_TrustStoreInUseException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_TrustStoreInUseException");
    var de_TrustStoreNotFoundException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_TrustStoreNotFoundException");
    var de_TrustStoreNotReadyException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_TrustStoreNotReadyException");
    var de_TrustStoreRevocation = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_TSA] != null) {
        contents[_TSA] = (0, import_smithy_client28.expectString)(output[_TSA]);
      }
      if (output[_RIe] != null) {
        contents[_RIe] = (0, import_smithy_client28.strictParseLong)(output[_RIe]);
      }
      if (output[_RTev] != null) {
        contents[_RTev] = (0, import_smithy_client28.expectString)(output[_RTev]);
      }
      if (output[_NORE] != null) {
        contents[_NORE] = (0, import_smithy_client28.strictParseLong)(output[_NORE]);
      }
      return contents;
    }, "de_TrustStoreRevocation");
    var de_TrustStoreRevocations = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TrustStoreRevocation(entry, context);
      });
    }, "de_TrustStoreRevocations");
    var de_TrustStores = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TrustStore(entry, context);
      });
    }, "de_TrustStores");
    var de_UnsupportedProtocolException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_UnsupportedProtocolException");
    var de_ZonalCapacityReservationState = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_St] != null) {
        contents[_St] = de_CapacityReservationStatus(output[_St], context);
      }
      if (output[_AZ] != null) {
        contents[_AZ] = (0, import_smithy_client28.expectString)(output[_AZ]);
      }
      if (output[_ECU] != null) {
        contents[_ECU] = (0, import_smithy_client28.strictParseFloat)(output[_ECU]);
      }
      return contents;
    }, "de_ZonalCapacityReservationState");
    var de_ZonalCapacityReservationStates = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ZonalCapacityReservationState(entry, context);
      });
    }, "de_ZonalCapacityReservationStates");
    var deserializeMetadata3 = /* @__PURE__ */ __name2((output) => ({
      httpStatusCode: output.statusCode,
      requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
      extendedRequestId: output.headers["x-amz-id-2"],
      cfId: output.headers["x-amz-cf-id"]
    }), "deserializeMetadata");
    var throwDefaultError3 = (0, import_smithy_client28.withBaseException)(ElasticLoadBalancingV2ServiceException);
    var buildHttpRpcRequest2 = /* @__PURE__ */ __name2(async (context, headers, path38, resolvedHostname, body) => {
      const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
      const contents = {
        protocol,
        hostname,
        port,
        method: "POST",
        path: basePath.endsWith("/") ? basePath.slice(0, -1) + path38 : basePath + path38,
        headers
      };
      if (resolvedHostname !== void 0) {
        contents.hostname = resolvedHostname;
      }
      if (body !== void 0) {
        contents.body = body;
      }
      return new import_protocol_http16.HttpRequest(contents);
    }, "buildHttpRpcRequest");
    var SHARED_HEADERS2 = {
      "content-type": "application/x-www-form-urlencoded"
    };
    var _3 = "2015-12-01";
    var _A2 = "Action";
    var _ACC = "AuthenticateCognitoConfig";
    var _AD = "AnomalyDetection";
    var _AE = "AuthorizationEndpoint";
    var _AI = "AllocationId";
    var _ALC = "AddListenerCertificates";
    var _AO = "AdministrativeOverride";
    var _AOC = "AuthenticateOidcConfig";
    var _AP = "AlpnPolicy";
    var _AREP = "AuthenticationRequestExtraParams";
    var _AT = "AddTags";
    var _ATSCN = "AdvertiseTrustStoreCaNames";
    var _ATSR = "AddTrustStoreRevocations";
    var _AZ = "AvailabilityZone";
    var _AZv = "AvailabilityZones";
    var _Ac = "Actions";
    var _At = "Attributes";
    var _C2 = "Certificates";
    var _CA2 = "CertificateArn";
    var _CCBSB = "CaCertificatesBundleS3Bucket";
    var _CCBSK = "CaCertificatesBundleS3Key";
    var _CCBSOV = "CaCertificatesBundleS3ObjectVersion";
    var _CHZI = "CanonicalHostedZoneId";
    var _CI = "ClientId";
    var _CL = "CreateListener";
    var _CLB = "CreateLoadBalancer";
    var _COIP = "CustomerOwnedIpv4Pool";
    var _CR = "CreateRule";
    var _CRS = "CapacityReservationState";
    var _CS = "ClientSecret";
    var _CT = "ContentType";
    var _CTG = "CreateTargetGroup";
    var _CTS = "CreateTrustStore";
    var _CTr = "CreatedTime";
    var _CU = "CapacityUnits";
    var _Ci = "Ciphers";
    var _Co = "Conditions";
    var _Cod = "Code";
    var _D = "Description";
    var _DA = "DefaultActions";
    var _DAL = "DescribeAccountLimits";
    var _DCR = "DescribeCapacityReservation";
    var _DL = "DeleteListener";
    var _DLA = "DescribeListenerAttributes";
    var _DLB = "DeleteLoadBalancer";
    var _DLBA = "DescribeLoadBalancerAttributes";
    var _DLBe = "DescribeLoadBalancers";
    var _DLC = "DescribeListenerCertificates";
    var _DLe = "DescribeListeners";
    var _DNSN = "DNSName";
    var _DR = "DeleteRule";
    var _DRR = "DecreaseRequestsRemaining";
    var _DRe = "DescribeRules";
    var _DS2 = "DurationSeconds";
    var _DSSLP = "DescribeSSLPolicies";
    var _DSTSA = "DeleteSharedTrustStoreAssociation";
    var _DT = "DeregisterTargets";
    var _DTG = "DeleteTargetGroup";
    var _DTGA = "DescribeTargetGroupAttributes";
    var _DTGe = "DescribeTargetGroups";
    var _DTH = "DescribeTargetHealth";
    var _DTS = "DeleteTrustStore";
    var _DTSA = "DescribeTrustStoreAssociations";
    var _DTSR = "DescribeTrustStoreRevocations";
    var _DTSe = "DescribeTrustStores";
    var _DTe = "DescribeTags";
    var _E2 = "Enabled";
    var _ECU = "EffectiveCapacityUnits";
    var _EPFISN = "EnablePrefixForIpv6SourceNat";
    var _ESGIROPLT = "EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic";
    var _F = "Field";
    var _FC = "ForwardConfig";
    var _FRC = "FixedResponseConfig";
    var _GC = "GrpcCode";
    var _GRP = "GetResourcePolicy";
    var _GTSCCB = "GetTrustStoreCaCertificatesBundle";
    var _GTSRC = "GetTrustStoreRevocationContent";
    var _H = "Host";
    var _HC = "HttpCode";
    var _HCE = "HealthCheckEnabled";
    var _HCIS = "HealthCheckIntervalSeconds";
    var _HCP = "HealthCheckProtocol";
    var _HCPe = "HealthCheckPort";
    var _HCPea = "HealthCheckPath";
    var _HCTS = "HealthCheckTimeoutSeconds";
    var _HHC = "HostHeaderConfig";
    var _HHCt = "HttpHeaderConfig";
    var _HHN = "HttpHeaderName";
    var _HRMC = "HttpRequestMethodConfig";
    var _HTC = "HealthyThresholdCount";
    var _I = "Issuer";
    var _IA = "IpAddress";
    var _IAT = "IpAddressType";
    var _ICCE = "IgnoreClientCertificateExpiry";
    var _ID = "IsDefault";
    var _IIPI = "Ipv4IpamPoolId";
    var _IP = "IpamPools";
    var _IPA = "IPv6Address";
    var _Id = "Id";
    var _In = "Include";
    var _K2 = "Key";
    var _L = "Listeners";
    var _LA = "ListenerArn";
    var _LAi = "ListenerArns";
    var _LB = "LoadBalancers";
    var _LBA = "LoadBalancerArn";
    var _LBAo = "LoadBalancerArns";
    var _LBAoa = "LoadBalancerAddresses";
    var _LBN = "LoadBalancerName";
    var _LBT = "LoadBalancerType";
    var _LMT = "LastModifiedTime";
    var _Li = "Limits";
    var _Lo = "Location";
    var _M = "Matcher";
    var _MA = "MutualAuthentication";
    var _MB = "MessageBody";
    var _MCR = "ModifyCapacityReservation";
    var _MIE = "MitigationInEffect";
    var _MIP = "ModifyIpPools";
    var _ML = "ModifyListener";
    var _MLA = "ModifyListenerAttributes";
    var _MLBA = "ModifyLoadBalancerAttributes";
    var _MLBC = "MinimumLoadBalancerCapacity";
    var _MR = "ModifyRule";
    var _MTG = "ModifyTargetGroup";
    var _MTGA = "ModifyTargetGroupAttributes";
    var _MTS = "ModifyTrustStore";
    var _Ma = "Marker";
    var _Max = "Max";
    var _Me = "Message";
    var _Mo = "Mode";
    var _N = "Name";
    var _NM = "NextMarker";
    var _NOCC = "NumberOfCaCertificates";
    var _NORE = "NumberOfRevokedEntries";
    var _Na = "Names";
    var _O = "Order";
    var _OI = "OutpostId";
    var _OUR = "OnUnauthenticatedRequest";
    var _P2 = "Protocol";
    var _PIPA = "PrivateIPv4Address";
    var _PPC = "PathPatternConfig";
    var _PS = "PageSize";
    var _PV = "ProtocolVersion";
    var _Pa = "Path";
    var _Po = "Port";
    var _Pol = "Policy";
    var _Pr2 = "Priority";
    var _Q = "Query";
    var _QSC = "QueryStringConfig";
    var _R = "Reason";
    var _RA2 = "ResourceArns";
    var _RAe = "ResourceArn";
    var _RAu = "RuleArn";
    var _RAul = "RuleArns";
    var _RC = "RedirectConfig";
    var _RCR = "ResetCapacityReservation";
    var _RCe = "RevocationContents";
    var _RI = "RevocationIds";
    var _RIP = "RemoveIpamPools";
    var _RIe = "RevocationId";
    var _RLC = "RemoveListenerCertificates";
    var _RP = "RulePriorities";
    var _RT = "RegisterTargets";
    var _RTSR = "RemoveTrustStoreRevocations";
    var _RTe = "RemoveTags";
    var _RTev = "RevocationType";
    var _Re = "Result";
    var _Ru = "Rules";
    var _S = "Scope";
    var _SB = "S3Bucket";
    var _SC = "StatusCode";
    var _SCN = "SessionCookieName";
    var _SG = "SecurityGroups";
    var _SGI = "SecurityGroupIds";
    var _SI2 = "SubnetId";
    var _SIAT = "SetIpAddressType";
    var _SIC = "SourceIpConfig";
    var _SK = "S3Key";
    var _SLBT = "SupportedLoadBalancerTypes";
    var _SM = "SubnetMappings";
    var _SNIP = "SourceNatIpv6Prefix";
    var _SNIPo = "SourceNatIpv6Prefixes";
    var _SOV = "S3ObjectVersion";
    var _SP = "SslPolicy";
    var _SPs = "SslPolicies";
    var _SPsl = "SslProtocols";
    var _SRP = "SetRulePriorities";
    var _SS = "SetSubnets";
    var _SSG = "SetSecurityGroups";
    var _ST2 = "SessionTimeout";
    var _Sc = "Scheme";
    var _St = "State";
    var _Sta = "Status";
    var _Su = "Subnets";
    var _T2 = "Type";
    var _TD = "TagDescriptions";
    var _TE = "TokenEndpoint";
    var _TG = "TargetGroups";
    var _TGA = "TargetGroupArn";
    var _TGAa = "TargetGroupArns";
    var _TGN = "TargetGroupName";
    var _TGSC = "TargetGroupStickinessConfig";
    var _TH = "TargetHealth";
    var _THD = "TargetHealthDescriptions";
    var _TK = "TagKeys";
    var _TRE = "TotalRevokedEntries";
    var _TS = "TrustStores";
    var _TSA = "TrustStoreArn";
    var _TSAS = "TrustStoreAssociationStatus";
    var _TSAr = "TrustStoreArns";
    var _TSAru = "TrustStoreAssociations";
    var _TSR = "TrustStoreRevocations";
    var _TT = "TargetType";
    var _Ta = "Tags";
    var _Tar = "Targets";
    var _Targ = "Target";
    var _UECS = "UseExistingClientSecret";
    var _UIE = "UserInfoEndpoint";
    var _UPA = "UserPoolArn";
    var _UPCI = "UserPoolClientId";
    var _UPD = "UserPoolDomain";
    var _UTC = "UnhealthyThresholdCount";
    var _V2 = "Version";
    var _VI = "VpcId";
    var _Va2 = "Values";
    var _Val = "Value";
    var _W = "Weight";
    var _ZN = "ZoneName";
    var _e = "entry";
    var _m2 = "member";
    var buildFormUrlencodedString2 = /* @__PURE__ */ __name2((formEntries) => Object.entries(formEntries).map(([key, value]) => (0, import_smithy_client28.extendedEncodeURIComponent)(key) + "=" + (0, import_smithy_client28.extendedEncodeURIComponent)(value)).join("&"), "buildFormUrlencodedString");
    var loadQueryErrorCode2 = /* @__PURE__ */ __name2((output, data3) => {
      if (data3.Error?.Code !== void 0) {
        return data3.Error.Code;
      }
      if (output.statusCode == 404) {
        return "NotFound";
      }
    }, "loadQueryErrorCode");
    var AddListenerCertificatesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("ElasticLoadBalancing_v10", "AddListenerCertificates", {}).n("ElasticLoadBalancingV2Client", "AddListenerCertificatesCommand").f(void 0, void 0).ser(se_AddListenerCertificatesCommand).de(de_AddListenerCertificatesCommand).build() {
      static {
        __name(this, "AddListenerCertificatesCommand");
      }
      static {
        __name2(this, "AddListenerCertificatesCommand");
      }
    };
    var AddTagsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("ElasticLoadBalancing_v10", "AddTags", {}).n("ElasticLoadBalancingV2Client", "AddTagsCommand").f(void 0, void 0).ser(se_AddTagsCommand).de(de_AddTagsCommand).build() {
      static {
        __name(this, "AddTagsCommand");
      }
      static {
        __name2(this, "AddTagsCommand");
      }
    };
    var AddTrustStoreRevocationsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("ElasticLoadBalancing_v10", "AddTrustStoreRevocations", {}).n("ElasticLoadBalancingV2Client", "AddTrustStoreRevocationsCommand").f(void 0, void 0).ser(se_AddTrustStoreRevocationsCommand).de(de_AddTrustStoreRevocationsCommand).build() {
      static {
        __name(this, "AddTrustStoreRevocationsCommand");
      }
      static {
        __name2(this, "AddTrustStoreRevocationsCommand");
      }
    };
    var CreateListenerCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("ElasticLoadBalancing_v10", "CreateListener", {}).n("ElasticLoadBalancingV2Client", "CreateListenerCommand").f(void 0, void 0).ser(se_CreateListenerCommand).de(de_CreateListenerCommand).build() {
      static {
        __name(this, "CreateListenerCommand");
      }
      static {
        __name2(this, "CreateListenerCommand");
      }
    };
    var CreateLoadBalancerCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("ElasticLoadBalancing_v10", "CreateLoadBalancer", {}).n("ElasticLoadBalancingV2Client", "CreateLoadBalancerCommand").f(void 0, void 0).ser(se_CreateLoadBalancerCommand).de(de_CreateLoadBalancerCommand).build() {
      static {
        __name(this, "CreateLoadBalancerCommand");
      }
      static {
        __name2(this, "CreateLoadBalancerCommand");
      }
    };
    var CreateRuleCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("ElasticLoadBalancing_v10", "CreateRule", {}).n("ElasticLoadBalancingV2Client", "CreateRuleCommand").f(void 0, void 0).ser(se_CreateRuleCommand).de(de_CreateRuleCommand).build() {
      static {
        __name(this, "CreateRuleCommand");
      }
      static {
        __name2(this, "CreateRuleCommand");
      }
    };
    var CreateTargetGroupCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("ElasticLoadBalancing_v10", "CreateTargetGroup", {}).n("ElasticLoadBalancingV2Client", "CreateTargetGroupCommand").f(void 0, void 0).ser(se_CreateTargetGroupCommand).de(de_CreateTargetGroupCommand).build() {
      static {
        __name(this, "CreateTargetGroupCommand");
      }
      static {
        __name2(this, "CreateTargetGroupCommand");
      }
    };
    var CreateTrustStoreCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("ElasticLoadBalancing_v10", "CreateTrustStore", {}).n("ElasticLoadBalancingV2Client", "CreateTrustStoreCommand").f(void 0, void 0).ser(se_CreateTrustStoreCommand).de(de_CreateTrustStoreCommand).build() {
      static {
        __name(this, "CreateTrustStoreCommand");
      }
      static {
        __name2(this, "CreateTrustStoreCommand");
      }
    };
    var DeleteListenerCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("ElasticLoadBalancing_v10", "DeleteListener", {}).n("ElasticLoadBalancingV2Client", "DeleteListenerCommand").f(void 0, void 0).ser(se_DeleteListenerCommand).de(de_DeleteListenerCommand).build() {
      static {
        __name(this, "DeleteListenerCommand");
      }
      static {
        __name2(this, "DeleteListenerCommand");
      }
    };
    var DeleteLoadBalancerCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("ElasticLoadBalancing_v10", "DeleteLoadBalancer", {}).n("ElasticLoadBalancingV2Client", "DeleteLoadBalancerCommand").f(void 0, void 0).ser(se_DeleteLoadBalancerCommand).de(de_DeleteLoadBalancerCommand).build() {
      static {
        __name(this, "DeleteLoadBalancerCommand");
      }
      static {
        __name2(this, "DeleteLoadBalancerCommand");
      }
    };
    var DeleteRuleCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("ElasticLoadBalancing_v10", "DeleteRule", {}).n("ElasticLoadBalancingV2Client", "DeleteRuleCommand").f(void 0, void 0).ser(se_DeleteRuleCommand).de(de_DeleteRuleCommand).build() {
      static {
        __name(this, "DeleteRuleCommand");
      }
      static {
        __name2(this, "DeleteRuleCommand");
      }
    };
    var DeleteSharedTrustStoreAssociationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("ElasticLoadBalancing_v10", "DeleteSharedTrustStoreAssociation", {}).n("ElasticLoadBalancingV2Client", "DeleteSharedTrustStoreAssociationCommand").f(void 0, void 0).ser(se_DeleteSharedTrustStoreAssociationCommand).de(de_DeleteSharedTrustStoreAssociationCommand).build() {
      static {
        __name(this, "DeleteSharedTrustStoreAssociationCommand");
      }
      static {
        __name2(this, "DeleteSharedTrustStoreAssociationCommand");
      }
    };
    var DeleteTargetGroupCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("ElasticLoadBalancing_v10", "DeleteTargetGroup", {}).n("ElasticLoadBalancingV2Client", "DeleteTargetGroupCommand").f(void 0, void 0).ser(se_DeleteTargetGroupCommand).de(de_DeleteTargetGroupCommand).build() {
      static {
        __name(this, "DeleteTargetGroupCommand");
      }
      static {
        __name2(this, "DeleteTargetGroupCommand");
      }
    };
    var DeleteTrustStoreCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("ElasticLoadBalancing_v10", "DeleteTrustStore", {}).n("ElasticLoadBalancingV2Client", "DeleteTrustStoreCommand").f(void 0, void 0).ser(se_DeleteTrustStoreCommand).de(de_DeleteTrustStoreCommand).build() {
      static {
        __name(this, "DeleteTrustStoreCommand");
      }
      static {
        __name2(this, "DeleteTrustStoreCommand");
      }
    };
    var DeregisterTargetsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("ElasticLoadBalancing_v10", "DeregisterTargets", {}).n("ElasticLoadBalancingV2Client", "DeregisterTargetsCommand").f(void 0, void 0).ser(se_DeregisterTargetsCommand).de(de_DeregisterTargetsCommand).build() {
      static {
        __name(this, "DeregisterTargetsCommand");
      }
      static {
        __name2(this, "DeregisterTargetsCommand");
      }
    };
    var DescribeAccountLimitsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("ElasticLoadBalancing_v10", "DescribeAccountLimits", {}).n("ElasticLoadBalancingV2Client", "DescribeAccountLimitsCommand").f(void 0, void 0).ser(se_DescribeAccountLimitsCommand).de(de_DescribeAccountLimitsCommand).build() {
      static {
        __name(this, "DescribeAccountLimitsCommand");
      }
      static {
        __name2(this, "DescribeAccountLimitsCommand");
      }
    };
    var DescribeCapacityReservationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("ElasticLoadBalancing_v10", "DescribeCapacityReservation", {}).n("ElasticLoadBalancingV2Client", "DescribeCapacityReservationCommand").f(void 0, void 0).ser(se_DescribeCapacityReservationCommand).de(de_DescribeCapacityReservationCommand).build() {
      static {
        __name(this, "DescribeCapacityReservationCommand");
      }
      static {
        __name2(this, "DescribeCapacityReservationCommand");
      }
    };
    var DescribeListenerAttributesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("ElasticLoadBalancing_v10", "DescribeListenerAttributes", {}).n("ElasticLoadBalancingV2Client", "DescribeListenerAttributesCommand").f(void 0, void 0).ser(se_DescribeListenerAttributesCommand).de(de_DescribeListenerAttributesCommand).build() {
      static {
        __name(this, "DescribeListenerAttributesCommand");
      }
      static {
        __name2(this, "DescribeListenerAttributesCommand");
      }
    };
    var DescribeListenerCertificatesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("ElasticLoadBalancing_v10", "DescribeListenerCertificates", {}).n("ElasticLoadBalancingV2Client", "DescribeListenerCertificatesCommand").f(void 0, void 0).ser(se_DescribeListenerCertificatesCommand).de(de_DescribeListenerCertificatesCommand).build() {
      static {
        __name(this, "DescribeListenerCertificatesCommand");
      }
      static {
        __name2(this, "DescribeListenerCertificatesCommand");
      }
    };
    var DescribeListenersCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("ElasticLoadBalancing_v10", "DescribeListeners", {}).n("ElasticLoadBalancingV2Client", "DescribeListenersCommand").f(void 0, void 0).ser(se_DescribeListenersCommand).de(de_DescribeListenersCommand).build() {
      static {
        __name(this, "DescribeListenersCommand");
      }
      static {
        __name2(this, "DescribeListenersCommand");
      }
    };
    var DescribeLoadBalancerAttributesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("ElasticLoadBalancing_v10", "DescribeLoadBalancerAttributes", {}).n("ElasticLoadBalancingV2Client", "DescribeLoadBalancerAttributesCommand").f(void 0, void 0).ser(se_DescribeLoadBalancerAttributesCommand).de(de_DescribeLoadBalancerAttributesCommand).build() {
      static {
        __name(this, "DescribeLoadBalancerAttributesCommand");
      }
      static {
        __name2(this, "DescribeLoadBalancerAttributesCommand");
      }
    };
    var DescribeLoadBalancersCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("ElasticLoadBalancing_v10", "DescribeLoadBalancers", {}).n("ElasticLoadBalancingV2Client", "DescribeLoadBalancersCommand").f(void 0, void 0).ser(se_DescribeLoadBalancersCommand).de(de_DescribeLoadBalancersCommand).build() {
      static {
        __name(this, "DescribeLoadBalancersCommand");
      }
      static {
        __name2(this, "DescribeLoadBalancersCommand");
      }
    };
    var DescribeRulesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("ElasticLoadBalancing_v10", "DescribeRules", {}).n("ElasticLoadBalancingV2Client", "DescribeRulesCommand").f(void 0, void 0).ser(se_DescribeRulesCommand).de(de_DescribeRulesCommand).build() {
      static {
        __name(this, "DescribeRulesCommand");
      }
      static {
        __name2(this, "DescribeRulesCommand");
      }
    };
    var DescribeSSLPoliciesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("ElasticLoadBalancing_v10", "DescribeSSLPolicies", {}).n("ElasticLoadBalancingV2Client", "DescribeSSLPoliciesCommand").f(void 0, void 0).ser(se_DescribeSSLPoliciesCommand).de(de_DescribeSSLPoliciesCommand).build() {
      static {
        __name(this, "DescribeSSLPoliciesCommand");
      }
      static {
        __name2(this, "DescribeSSLPoliciesCommand");
      }
    };
    var DescribeTagsCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("ElasticLoadBalancing_v10", "DescribeTags", {}).n("ElasticLoadBalancingV2Client", "DescribeTagsCommand").f(void 0, void 0).ser(se_DescribeTagsCommand).de(de_DescribeTagsCommand).build() {
      static {
        __name(this, "DescribeTagsCommand");
      }
      static {
        __name2(this, "DescribeTagsCommand");
      }
    };
    var DescribeTargetGroupAttributesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("ElasticLoadBalancing_v10", "DescribeTargetGroupAttributes", {}).n("ElasticLoadBalancingV2Client", "DescribeTargetGroupAttributesCommand").f(void 0, void 0).ser(se_DescribeTargetGroupAttributesCommand).de(de_DescribeTargetGroupAttributesCommand).build() {
      static {
        __name(this, "DescribeTargetGroupAttributesCommand");
      }
      static {
        __name2(this, "DescribeTargetGroupAttributesCommand");
      }
    };
    var DescribeTargetGroupsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("ElasticLoadBalancing_v10", "DescribeTargetGroups", {}).n("ElasticLoadBalancingV2Client", "DescribeTargetGroupsCommand").f(void 0, void 0).ser(se_DescribeTargetGroupsCommand).de(de_DescribeTargetGroupsCommand).build() {
      static {
        __name(this, "DescribeTargetGroupsCommand");
      }
      static {
        __name2(this, "DescribeTargetGroupsCommand");
      }
    };
    var DescribeTargetHealthCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("ElasticLoadBalancing_v10", "DescribeTargetHealth", {}).n("ElasticLoadBalancingV2Client", "DescribeTargetHealthCommand").f(void 0, void 0).ser(se_DescribeTargetHealthCommand).de(de_DescribeTargetHealthCommand).build() {
      static {
        __name(this, "DescribeTargetHealthCommand");
      }
      static {
        __name2(this, "DescribeTargetHealthCommand");
      }
    };
    var DescribeTrustStoreAssociationsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("ElasticLoadBalancing_v10", "DescribeTrustStoreAssociations", {}).n("ElasticLoadBalancingV2Client", "DescribeTrustStoreAssociationsCommand").f(void 0, void 0).ser(se_DescribeTrustStoreAssociationsCommand).de(de_DescribeTrustStoreAssociationsCommand).build() {
      static {
        __name(this, "DescribeTrustStoreAssociationsCommand");
      }
      static {
        __name2(this, "DescribeTrustStoreAssociationsCommand");
      }
    };
    var DescribeTrustStoreRevocationsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("ElasticLoadBalancing_v10", "DescribeTrustStoreRevocations", {}).n("ElasticLoadBalancingV2Client", "DescribeTrustStoreRevocationsCommand").f(void 0, void 0).ser(se_DescribeTrustStoreRevocationsCommand).de(de_DescribeTrustStoreRevocationsCommand).build() {
      static {
        __name(this, "DescribeTrustStoreRevocationsCommand");
      }
      static {
        __name2(this, "DescribeTrustStoreRevocationsCommand");
      }
    };
    var DescribeTrustStoresCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("ElasticLoadBalancing_v10", "DescribeTrustStores", {}).n("ElasticLoadBalancingV2Client", "DescribeTrustStoresCommand").f(void 0, void 0).ser(se_DescribeTrustStoresCommand).de(de_DescribeTrustStoresCommand).build() {
      static {
        __name(this, "DescribeTrustStoresCommand");
      }
      static {
        __name2(this, "DescribeTrustStoresCommand");
      }
    };
    var GetResourcePolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("ElasticLoadBalancing_v10", "GetResourcePolicy", {}).n("ElasticLoadBalancingV2Client", "GetResourcePolicyCommand").f(void 0, void 0).ser(se_GetResourcePolicyCommand).de(de_GetResourcePolicyCommand).build() {
      static {
        __name(this, "GetResourcePolicyCommand");
      }
      static {
        __name2(this, "GetResourcePolicyCommand");
      }
    };
    var GetTrustStoreCaCertificatesBundleCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("ElasticLoadBalancing_v10", "GetTrustStoreCaCertificatesBundle", {}).n("ElasticLoadBalancingV2Client", "GetTrustStoreCaCertificatesBundleCommand").f(void 0, void 0).ser(se_GetTrustStoreCaCertificatesBundleCommand).de(de_GetTrustStoreCaCertificatesBundleCommand).build() {
      static {
        __name(this, "GetTrustStoreCaCertificatesBundleCommand");
      }
      static {
        __name2(this, "GetTrustStoreCaCertificatesBundleCommand");
      }
    };
    var GetTrustStoreRevocationContentCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("ElasticLoadBalancing_v10", "GetTrustStoreRevocationContent", {}).n("ElasticLoadBalancingV2Client", "GetTrustStoreRevocationContentCommand").f(void 0, void 0).ser(se_GetTrustStoreRevocationContentCommand).de(de_GetTrustStoreRevocationContentCommand).build() {
      static {
        __name(this, "GetTrustStoreRevocationContentCommand");
      }
      static {
        __name2(this, "GetTrustStoreRevocationContentCommand");
      }
    };
    var ModifyCapacityReservationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("ElasticLoadBalancing_v10", "ModifyCapacityReservation", {}).n("ElasticLoadBalancingV2Client", "ModifyCapacityReservationCommand").f(void 0, void 0).ser(se_ModifyCapacityReservationCommand).de(de_ModifyCapacityReservationCommand).build() {
      static {
        __name(this, "ModifyCapacityReservationCommand");
      }
      static {
        __name2(this, "ModifyCapacityReservationCommand");
      }
    };
    var ModifyIpPoolsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("ElasticLoadBalancing_v10", "ModifyIpPools", {}).n("ElasticLoadBalancingV2Client", "ModifyIpPoolsCommand").f(void 0, void 0).ser(se_ModifyIpPoolsCommand).de(de_ModifyIpPoolsCommand).build() {
      static {
        __name(this, "ModifyIpPoolsCommand");
      }
      static {
        __name2(this, "ModifyIpPoolsCommand");
      }
    };
    var ModifyListenerAttributesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("ElasticLoadBalancing_v10", "ModifyListenerAttributes", {}).n("ElasticLoadBalancingV2Client", "ModifyListenerAttributesCommand").f(void 0, void 0).ser(se_ModifyListenerAttributesCommand).de(de_ModifyListenerAttributesCommand).build() {
      static {
        __name(this, "ModifyListenerAttributesCommand");
      }
      static {
        __name2(this, "ModifyListenerAttributesCommand");
      }
    };
    var ModifyListenerCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("ElasticLoadBalancing_v10", "ModifyListener", {}).n("ElasticLoadBalancingV2Client", "ModifyListenerCommand").f(void 0, void 0).ser(se_ModifyListenerCommand).de(de_ModifyListenerCommand).build() {
      static {
        __name(this, "ModifyListenerCommand");
      }
      static {
        __name2(this, "ModifyListenerCommand");
      }
    };
    var ModifyLoadBalancerAttributesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("ElasticLoadBalancing_v10", "ModifyLoadBalancerAttributes", {}).n("ElasticLoadBalancingV2Client", "ModifyLoadBalancerAttributesCommand").f(void 0, void 0).ser(se_ModifyLoadBalancerAttributesCommand).de(de_ModifyLoadBalancerAttributesCommand).build() {
      static {
        __name(this, "ModifyLoadBalancerAttributesCommand");
      }
      static {
        __name2(this, "ModifyLoadBalancerAttributesCommand");
      }
    };
    var ModifyRuleCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("ElasticLoadBalancing_v10", "ModifyRule", {}).n("ElasticLoadBalancingV2Client", "ModifyRuleCommand").f(void 0, void 0).ser(se_ModifyRuleCommand).de(de_ModifyRuleCommand).build() {
      static {
        __name(this, "ModifyRuleCommand");
      }
      static {
        __name2(this, "ModifyRuleCommand");
      }
    };
    var ModifyTargetGroupAttributesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("ElasticLoadBalancing_v10", "ModifyTargetGroupAttributes", {}).n("ElasticLoadBalancingV2Client", "ModifyTargetGroupAttributesCommand").f(void 0, void 0).ser(se_ModifyTargetGroupAttributesCommand).de(de_ModifyTargetGroupAttributesCommand).build() {
      static {
        __name(this, "ModifyTargetGroupAttributesCommand");
      }
      static {
        __name2(this, "ModifyTargetGroupAttributesCommand");
      }
    };
    var ModifyTargetGroupCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("ElasticLoadBalancing_v10", "ModifyTargetGroup", {}).n("ElasticLoadBalancingV2Client", "ModifyTargetGroupCommand").f(void 0, void 0).ser(se_ModifyTargetGroupCommand).de(de_ModifyTargetGroupCommand).build() {
      static {
        __name(this, "ModifyTargetGroupCommand");
      }
      static {
        __name2(this, "ModifyTargetGroupCommand");
      }
    };
    var ModifyTrustStoreCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("ElasticLoadBalancing_v10", "ModifyTrustStore", {}).n("ElasticLoadBalancingV2Client", "ModifyTrustStoreCommand").f(void 0, void 0).ser(se_ModifyTrustStoreCommand).de(de_ModifyTrustStoreCommand).build() {
      static {
        __name(this, "ModifyTrustStoreCommand");
      }
      static {
        __name2(this, "ModifyTrustStoreCommand");
      }
    };
    var RegisterTargetsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("ElasticLoadBalancing_v10", "RegisterTargets", {}).n("ElasticLoadBalancingV2Client", "RegisterTargetsCommand").f(void 0, void 0).ser(se_RegisterTargetsCommand).de(de_RegisterTargetsCommand).build() {
      static {
        __name(this, "RegisterTargetsCommand");
      }
      static {
        __name2(this, "RegisterTargetsCommand");
      }
    };
    var RemoveListenerCertificatesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("ElasticLoadBalancing_v10", "RemoveListenerCertificates", {}).n("ElasticLoadBalancingV2Client", "RemoveListenerCertificatesCommand").f(void 0, void 0).ser(se_RemoveListenerCertificatesCommand).de(de_RemoveListenerCertificatesCommand).build() {
      static {
        __name(this, "RemoveListenerCertificatesCommand");
      }
      static {
        __name2(this, "RemoveListenerCertificatesCommand");
      }
    };
    var RemoveTagsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("ElasticLoadBalancing_v10", "RemoveTags", {}).n("ElasticLoadBalancingV2Client", "RemoveTagsCommand").f(void 0, void 0).ser(se_RemoveTagsCommand).de(de_RemoveTagsCommand).build() {
      static {
        __name(this, "RemoveTagsCommand");
      }
      static {
        __name2(this, "RemoveTagsCommand");
      }
    };
    var RemoveTrustStoreRevocationsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("ElasticLoadBalancing_v10", "RemoveTrustStoreRevocations", {}).n("ElasticLoadBalancingV2Client", "RemoveTrustStoreRevocationsCommand").f(void 0, void 0).ser(se_RemoveTrustStoreRevocationsCommand).de(de_RemoveTrustStoreRevocationsCommand).build() {
      static {
        __name(this, "RemoveTrustStoreRevocationsCommand");
      }
      static {
        __name2(this, "RemoveTrustStoreRevocationsCommand");
      }
    };
    var SetIpAddressTypeCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("ElasticLoadBalancing_v10", "SetIpAddressType", {}).n("ElasticLoadBalancingV2Client", "SetIpAddressTypeCommand").f(void 0, void 0).ser(se_SetIpAddressTypeCommand).de(de_SetIpAddressTypeCommand).build() {
      static {
        __name(this, "SetIpAddressTypeCommand");
      }
      static {
        __name2(this, "SetIpAddressTypeCommand");
      }
    };
    var SetRulePrioritiesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("ElasticLoadBalancing_v10", "SetRulePriorities", {}).n("ElasticLoadBalancingV2Client", "SetRulePrioritiesCommand").f(void 0, void 0).ser(se_SetRulePrioritiesCommand).de(de_SetRulePrioritiesCommand).build() {
      static {
        __name(this, "SetRulePrioritiesCommand");
      }
      static {
        __name2(this, "SetRulePrioritiesCommand");
      }
    };
    var SetSecurityGroupsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("ElasticLoadBalancing_v10", "SetSecurityGroups", {}).n("ElasticLoadBalancingV2Client", "SetSecurityGroupsCommand").f(void 0, void 0).ser(se_SetSecurityGroupsCommand).de(de_SetSecurityGroupsCommand).build() {
      static {
        __name(this, "SetSecurityGroupsCommand");
      }
      static {
        __name2(this, "SetSecurityGroupsCommand");
      }
    };
    var SetSubnetsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("ElasticLoadBalancing_v10", "SetSubnets", {}).n("ElasticLoadBalancingV2Client", "SetSubnetsCommand").f(void 0, void 0).ser(se_SetSubnetsCommand).de(de_SetSubnetsCommand).build() {
      static {
        __name(this, "SetSubnetsCommand");
      }
      static {
        __name2(this, "SetSubnetsCommand");
      }
    };
    var commands3 = {
      AddListenerCertificatesCommand,
      AddTagsCommand,
      AddTrustStoreRevocationsCommand,
      CreateListenerCommand,
      CreateLoadBalancerCommand,
      CreateRuleCommand,
      CreateTargetGroupCommand,
      CreateTrustStoreCommand,
      DeleteListenerCommand,
      DeleteLoadBalancerCommand,
      DeleteRuleCommand,
      DeleteSharedTrustStoreAssociationCommand,
      DeleteTargetGroupCommand,
      DeleteTrustStoreCommand,
      DeregisterTargetsCommand,
      DescribeAccountLimitsCommand,
      DescribeCapacityReservationCommand,
      DescribeListenerAttributesCommand,
      DescribeListenerCertificatesCommand,
      DescribeListenersCommand: DescribeListenersCommand2,
      DescribeLoadBalancerAttributesCommand,
      DescribeLoadBalancersCommand: DescribeLoadBalancersCommand2,
      DescribeRulesCommand,
      DescribeSSLPoliciesCommand,
      DescribeTagsCommand: DescribeTagsCommand2,
      DescribeTargetGroupAttributesCommand,
      DescribeTargetGroupsCommand,
      DescribeTargetHealthCommand,
      DescribeTrustStoreAssociationsCommand,
      DescribeTrustStoreRevocationsCommand,
      DescribeTrustStoresCommand,
      GetResourcePolicyCommand,
      GetTrustStoreCaCertificatesBundleCommand,
      GetTrustStoreRevocationContentCommand,
      ModifyCapacityReservationCommand,
      ModifyIpPoolsCommand,
      ModifyListenerCommand,
      ModifyListenerAttributesCommand,
      ModifyLoadBalancerAttributesCommand,
      ModifyRuleCommand,
      ModifyTargetGroupCommand,
      ModifyTargetGroupAttributesCommand,
      ModifyTrustStoreCommand,
      RegisterTargetsCommand,
      RemoveListenerCertificatesCommand,
      RemoveTagsCommand,
      RemoveTrustStoreRevocationsCommand,
      SetIpAddressTypeCommand,
      SetRulePrioritiesCommand,
      SetSecurityGroupsCommand,
      SetSubnetsCommand
    };
    var ElasticLoadBalancingV2 = class extends ElasticLoadBalancingV2Client2 {
      static {
        __name(this, "ElasticLoadBalancingV2");
      }
      static {
        __name2(this, "ElasticLoadBalancingV2");
      }
    };
    (0, import_smithy_client28.createAggregatedClient)(commands3, ElasticLoadBalancingV2);
    var paginateDescribeAccountLimits = (0, import_core17.createPaginator)(ElasticLoadBalancingV2Client2, DescribeAccountLimitsCommand, "Marker", "NextMarker", "");
    var paginateDescribeListenerCertificates = (0, import_core17.createPaginator)(ElasticLoadBalancingV2Client2, DescribeListenerCertificatesCommand, "Marker", "NextMarker", "");
    var paginateDescribeListeners2 = (0, import_core17.createPaginator)(ElasticLoadBalancingV2Client2, DescribeListenersCommand2, "Marker", "NextMarker", "");
    var paginateDescribeLoadBalancers2 = (0, import_core17.createPaginator)(ElasticLoadBalancingV2Client2, DescribeLoadBalancersCommand2, "Marker", "NextMarker", "");
    var paginateDescribeRules = (0, import_core17.createPaginator)(ElasticLoadBalancingV2Client2, DescribeRulesCommand, "Marker", "NextMarker", "");
    var paginateDescribeTargetGroups = (0, import_core17.createPaginator)(ElasticLoadBalancingV2Client2, DescribeTargetGroupsCommand, "Marker", "NextMarker", "");
    var paginateDescribeTrustStoreAssociations = (0, import_core17.createPaginator)(ElasticLoadBalancingV2Client2, DescribeTrustStoreAssociationsCommand, "Marker", "NextMarker", "PageSize");
    var paginateDescribeTrustStoreRevocations = (0, import_core17.createPaginator)(ElasticLoadBalancingV2Client2, DescribeTrustStoreRevocationsCommand, "Marker", "NextMarker", "PageSize");
    var paginateDescribeTrustStores = (0, import_core17.createPaginator)(ElasticLoadBalancingV2Client2, DescribeTrustStoresCommand, "Marker", "NextMarker", "PageSize");
    var import_util_waiter = require_dist_cjs53();
    var checkState = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeLoadBalancersCommand2(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.LoadBalancers);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.State.Code;
            });
            return projection_3;
          }, "returnComparator");
          let allStringEq_5 = returnComparator().length > 0;
          for (const element_4 of returnComparator()) {
            allStringEq_5 = allStringEq_5 && element_4 == "active";
          }
          if (allStringEq_5) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.LoadBalancers);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.State.Code;
            });
            return projection_3;
          }, "returnComparator");
          for (const anyStringEq_4 of returnComparator()) {
            if (anyStringEq_4 == "provisioning") {
              return { state: import_util_waiter.WaiterState.RETRY, reason };
            }
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
        if (exception.name && exception.name == "LoadBalancerNotFoundException") {
          return { state: import_util_waiter.WaiterState.RETRY, reason };
        }
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForLoadBalancerAvailable = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
    }, "waitForLoadBalancerAvailable");
    var waitUntilLoadBalancerAvailable = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilLoadBalancerAvailable");
    var checkState2 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeLoadBalancersCommand2(input));
        reason = result2;
        return { state: import_util_waiter.WaiterState.SUCCESS, reason };
      } catch (exception) {
        reason = exception;
        if (exception.name && exception.name == "LoadBalancerNotFoundException") {
          return { state: import_util_waiter.WaiterState.RETRY, reason };
        }
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForLoadBalancerExists = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2);
    }, "waitForLoadBalancerExists");
    var waitUntilLoadBalancerExists = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilLoadBalancerExists");
    var checkState3 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeLoadBalancersCommand2(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.LoadBalancers);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.State.Code;
            });
            return projection_3;
          }, "returnComparator");
          let allStringEq_5 = returnComparator().length > 0;
          for (const element_4 of returnComparator()) {
            allStringEq_5 = allStringEq_5 && element_4 == "active";
          }
          if (allStringEq_5) {
            return { state: import_util_waiter.WaiterState.RETRY, reason };
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
        if (exception.name && exception.name == "LoadBalancerNotFoundException") {
          return { state: import_util_waiter.WaiterState.SUCCESS, reason };
        }
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForLoadBalancersDeleted = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState3);
    }, "waitForLoadBalancersDeleted");
    var waitUntilLoadBalancersDeleted = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState3);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilLoadBalancersDeleted");
    var checkState4 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeTargetHealthCommand(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.TargetHealthDescriptions);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.TargetHealth.State;
            });
            return projection_3;
          }, "returnComparator");
          let allStringEq_5 = returnComparator().length > 0;
          for (const element_4 of returnComparator()) {
            allStringEq_5 = allStringEq_5 && element_4 == "unused";
          }
          if (allStringEq_5) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
        if (exception.name && exception.name == "InvalidTargetException") {
          return { state: import_util_waiter.WaiterState.SUCCESS, reason };
        }
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForTargetDeregistered = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState4);
    }, "waitForTargetDeregistered");
    var waitUntilTargetDeregistered = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState4);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilTargetDeregistered");
    var checkState5 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new DescribeTargetHealthCommand(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            const flat_1 = [].concat(...result2.TargetHealthDescriptions);
            const projection_3 = flat_1.map((element_2) => {
              return element_2.TargetHealth.State;
            });
            return projection_3;
          }, "returnComparator");
          let allStringEq_5 = returnComparator().length > 0;
          for (const element_4 of returnComparator()) {
            allStringEq_5 = allStringEq_5 && element_4 == "healthy";
          }
          if (allStringEq_5) {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
        if (exception.name && exception.name == "InvalidInstance") {
          return { state: import_util_waiter.WaiterState.RETRY, reason };
        }
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForTargetInService = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState5);
    }, "waitForTargetInService");
    var waitUntilTargetInService = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 15, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState5);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilTargetInService");
  }
});

// ../../node_modules/@aws-sdk/client-iam/dist-cjs/auth/httpAuthSchemeProvider.js
var require_httpAuthSchemeProvider15 = __commonJS({
  "../../node_modules/@aws-sdk/client-iam/dist-cjs/auth/httpAuthSchemeProvider.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.resolveHttpAuthSchemeConfig = exports2.defaultIAMHttpAuthSchemeProvider = exports2.defaultIAMHttpAuthSchemeParametersProvider = void 0;
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var util_middleware_1 = require_dist_cjs6();
    var defaultIAMHttpAuthSchemeParametersProvider = /* @__PURE__ */ __name(async (config, context, input) => {
      return {
        operation: (0, util_middleware_1.getSmithyContext)(context).operation,
        region: await (0, util_middleware_1.normalizeProvider)(config.region)() || (() => {
          throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
        })()
      };
    }, "defaultIAMHttpAuthSchemeParametersProvider");
    exports2.defaultIAMHttpAuthSchemeParametersProvider = defaultIAMHttpAuthSchemeParametersProvider;
    function createAwsAuthSigv4HttpAuthOption3(authParameters) {
      return {
        schemeId: "aws.auth#sigv4",
        signingProperties: {
          name: "iam",
          region: authParameters.region
        },
        propertiesExtractor: /* @__PURE__ */ __name((config, context) => ({
          signingProperties: {
            config,
            context
          }
        }), "propertiesExtractor")
      };
    }
    __name(createAwsAuthSigv4HttpAuthOption3, "createAwsAuthSigv4HttpAuthOption");
    var defaultIAMHttpAuthSchemeProvider = /* @__PURE__ */ __name((authParameters) => {
      const options = [];
      switch (authParameters.operation) {
        default: {
          options.push(createAwsAuthSigv4HttpAuthOption3(authParameters));
        }
      }
      return options;
    }, "defaultIAMHttpAuthSchemeProvider");
    exports2.defaultIAMHttpAuthSchemeProvider = defaultIAMHttpAuthSchemeProvider;
    var resolveHttpAuthSchemeConfig3 = /* @__PURE__ */ __name((config) => {
      const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
      return Object.assign(config_0, {
        authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? [])
      });
    }, "resolveHttpAuthSchemeConfig");
    exports2.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig3;
  }
});

// ../../node_modules/@aws-sdk/client-iam/package.json
var require_package15 = __commonJS({
  "../../node_modules/@aws-sdk/client-iam/package.json"(exports2, module2) {
    module2.exports = {
      name: "@aws-sdk/client-iam",
      description: "AWS SDK for JavaScript Iam Client for Node.js, Browser and React Native",
      version: "3.879.0",
      scripts: {
        build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
        "build:cjs": "node ../../scripts/compilation/inline client-iam",
        "build:es": "tsc -p tsconfig.es.json",
        "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
        "build:types": "tsc -p tsconfig.types.json",
        "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
        clean: "rimraf ./dist-* && rimraf *.tsbuildinfo",
        "extract:docs": "api-extractor run --local",
        "generate:client": "node ../../scripts/generate-clients/single-service --solo iam"
      },
      main: "./dist-cjs/index.js",
      types: "./dist-types/index.d.ts",
      module: "./dist-es/index.js",
      sideEffects: false,
      dependencies: {
        "@aws-crypto/sha256-browser": "5.2.0",
        "@aws-crypto/sha256-js": "5.2.0",
        "@aws-sdk/core": "3.879.0",
        "@aws-sdk/credential-provider-node": "3.879.0",
        "@aws-sdk/middleware-host-header": "3.873.0",
        "@aws-sdk/middleware-logger": "3.876.0",
        "@aws-sdk/middleware-recursion-detection": "3.873.0",
        "@aws-sdk/middleware-user-agent": "3.879.0",
        "@aws-sdk/region-config-resolver": "3.873.0",
        "@aws-sdk/types": "3.862.0",
        "@aws-sdk/util-endpoints": "3.879.0",
        "@aws-sdk/util-user-agent-browser": "3.873.0",
        "@aws-sdk/util-user-agent-node": "3.879.0",
        "@smithy/config-resolver": "^4.1.5",
        "@smithy/core": "^3.9.0",
        "@smithy/fetch-http-handler": "^5.1.1",
        "@smithy/hash-node": "^4.0.5",
        "@smithy/invalid-dependency": "^4.0.5",
        "@smithy/middleware-content-length": "^4.0.5",
        "@smithy/middleware-endpoint": "^4.1.19",
        "@smithy/middleware-retry": "^4.1.20",
        "@smithy/middleware-serde": "^4.0.9",
        "@smithy/middleware-stack": "^4.0.5",
        "@smithy/node-config-provider": "^4.1.4",
        "@smithy/node-http-handler": "^4.1.1",
        "@smithy/protocol-http": "^5.1.3",
        "@smithy/smithy-client": "^4.5.0",
        "@smithy/types": "^4.3.2",
        "@smithy/url-parser": "^4.0.5",
        "@smithy/util-base64": "^4.0.0",
        "@smithy/util-body-length-browser": "^4.0.0",
        "@smithy/util-body-length-node": "^4.0.0",
        "@smithy/util-defaults-mode-browser": "^4.0.27",
        "@smithy/util-defaults-mode-node": "^4.0.27",
        "@smithy/util-endpoints": "^3.0.7",
        "@smithy/util-middleware": "^4.0.5",
        "@smithy/util-retry": "^4.0.7",
        "@smithy/util-utf8": "^4.0.0",
        "@smithy/util-waiter": "^4.0.7",
        tslib: "^2.6.2"
      },
      devDependencies: {
        "@tsconfig/node18": "18.2.4",
        "@types/node": "^18.19.69",
        concurrently: "7.0.0",
        "downlevel-dts": "0.10.1",
        rimraf: "3.0.2",
        typescript: "~5.8.3"
      },
      engines: {
        node: ">=18.0.0"
      },
      typesVersions: {
        "<4.0": {
          "dist-types/*": [
            "dist-types/ts3.4/*"
          ]
        }
      },
      files: [
        "dist-*/**"
      ],
      author: {
        name: "AWS SDK for JavaScript Team",
        url: "https://aws.amazon.com/javascript/"
      },
      license: "Apache-2.0",
      browser: {
        "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
      },
      "react-native": {
        "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
      },
      homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-iam",
      repository: {
        type: "git",
        url: "https://github.com/aws/aws-sdk-js-v3.git",
        directory: "clients/client-iam"
      }
    };
  }
});

// ../../node_modules/@aws-sdk/client-iam/dist-cjs/endpoint/ruleset.js
var require_ruleset15 = __commonJS({
  "../../node_modules/@aws-sdk/client-iam/dist-cjs/endpoint/ruleset.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.ruleSet = void 0;
    var H2 = "required";
    var I2 = "fn";
    var J2 = "argv";
    var K = "ref";
    var L = "properties";
    var M = "headers";
    var N = "authSchemes";
    var O = "name";
    var P = "signingRegion";
    var a3 = true;
    var b3 = "isSet";
    var c3 = "booleanEquals";
    var d3 = "error";
    var e3 = "endpoint";
    var f3 = "tree";
    var g3 = "PartitionResult";
    var h3 = "stringEquals";
    var i3 = "sigv4";
    var j3 = { [H2]: true, "default": false, "type": "Boolean" };
    var k3 = { [H2]: false, "type": "String" };
    var l3 = { [K]: "Endpoint" };
    var m3 = { [I2]: c3, [J2]: [{ [K]: "UseFIPS" }, true] };
    var n3 = { [I2]: c3, [J2]: [{ [K]: "UseDualStack" }, true] };
    var o3 = {};
    var p3 = { [I2]: h3, [J2]: [{ [I2]: "getAttr", [J2]: [{ [K]: g3 }, "name"] }, "aws"] };
    var q3 = { [I2]: "getAttr", [J2]: [{ [K]: g3 }, "name"] };
    var r3 = { [I2]: c3, [J2]: [{ [K]: "UseFIPS" }, false] };
    var s3 = { [N]: [{ [O]: i3, [P]: "us-east-1" }] };
    var t3 = { [I2]: h3, [J2]: [q3, "aws-cn"] };
    var u3 = { [N]: [{ [O]: i3, [P]: "cn-north-1" }] };
    var v6 = { [I2]: c3, [J2]: [{ [K]: "UseDualStack" }, false] };
    var w3 = { [I2]: h3, [J2]: [q3, "aws-us-gov"] };
    var x3 = { "url": "https://iam.us-gov.api.aws", [L]: { [N]: [{ [O]: i3, [P]: "us-gov-west-1" }] }, [M]: {} };
    var y2 = { "url": "https://iam.us-gov.amazonaws.com", [L]: { [N]: [{ [O]: i3, [P]: "us-gov-west-1" }] }, [M]: {} };
    var z2 = { [I2]: h3, [J2]: [q3, "aws-iso"] };
    var A2 = { [N]: [{ [O]: i3, [P]: "us-iso-east-1" }] };
    var B2 = { [I2]: h3, [J2]: [q3, "aws-iso-b"] };
    var C2 = { [N]: [{ [O]: i3, [P]: "us-isob-east-1" }] };
    var D2 = { [I2]: "getAttr", [J2]: [{ [K]: g3 }, "supportsFIPS"] };
    var E2 = { [I2]: c3, [J2]: [true, { [I2]: "getAttr", [J2]: [{ [K]: g3 }, "supportsDualStack"] }] };
    var F2 = { [N]: [{ [O]: i3, [P]: "{PartitionResult#implicitGlobalRegion}" }] };
    var G2 = [{ [K]: "Region" }];
    var _data3 = { version: "1.0", parameters: { UseDualStack: j3, UseFIPS: j3, Endpoint: k3, Region: k3 }, rules: [{ conditions: [{ [I2]: b3, [J2]: [l3] }], rules: [{ conditions: [m3], error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d3 }, { rules: [{ conditions: [n3], error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d3 }, { endpoint: { url: l3, [L]: o3, [M]: o3 }, type: e3 }], type: f3 }], type: f3 }, { rules: [{ conditions: [{ [I2]: b3, [J2]: G2 }], rules: [{ conditions: [{ [I2]: "aws.partition", [J2]: G2, assign: g3 }], rules: [{ conditions: [p3, r3, n3], endpoint: { url: "https://iam.global.api.aws", [L]: s3, [M]: o3 }, type: e3 }, { conditions: [p3, m3, n3], endpoint: { url: "https://iam-fips.global.api.aws", [L]: s3, [M]: o3 }, type: e3 }, { conditions: [t3, r3, n3], endpoint: { url: "https://iam.global.api.amazonwebservices.com.cn", [L]: u3, [M]: o3 }, type: e3 }, { conditions: [t3, r3, v6], endpoint: { url: "https://iam.cn-north-1.amazonaws.com.cn", [L]: u3, [M]: o3 }, type: e3 }, { conditions: [w3, r3, n3], endpoint: x3, type: e3 }, { conditions: [w3, m3, n3], endpoint: x3, type: e3 }, { conditions: [w3, r3, v6], endpoint: y2, type: e3 }, { conditions: [w3, m3, v6], endpoint: y2, type: e3 }, { conditions: [z2, r3, v6], endpoint: { url: "https://iam.us-iso-east-1.c2s.ic.gov", [L]: A2, [M]: o3 }, type: e3 }, { conditions: [z2, m3, v6], endpoint: { url: "https://iam-fips.us-iso-east-1.c2s.ic.gov", [L]: A2, [M]: o3 }, type: e3 }, { conditions: [B2, r3, v6], endpoint: { url: "https://iam.us-isob-east-1.sc2s.sgov.gov", [L]: C2, [M]: o3 }, type: e3 }, { conditions: [B2, m3, v6], endpoint: { url: "https://iam-fips.us-isob-east-1.sc2s.sgov.gov", [L]: C2, [M]: o3 }, type: e3 }, { conditions: [{ [I2]: h3, [J2]: [q3, "aws-iso-e"] }, r3, v6], endpoint: { url: "https://iam.eu-isoe-west-1.cloud.adc-e.uk", [L]: { [N]: [{ [O]: i3, [P]: "eu-isoe-west-1" }] }, [M]: o3 }, type: e3 }, { conditions: [{ [I2]: h3, [J2]: [q3, "aws-iso-f"] }, r3, v6], endpoint: { url: "https://iam.us-isof-south-1.csp.hci.ic.gov", [L]: { [N]: [{ [O]: i3, [P]: "us-isof-south-1" }] }, [M]: o3 }, type: e3 }, { conditions: [{ [I2]: h3, [J2]: [q3, "aws-eusc"] }, r3, v6], endpoint: { url: "https://iam.eusc-de-east-1.amazonaws.eu", [L]: { [N]: [{ [O]: i3, [P]: "eusc-de-east-1" }] }, [M]: o3 }, type: e3 }, { conditions: [m3, n3], rules: [{ conditions: [{ [I2]: c3, [J2]: [a3, D2] }, E2], rules: [{ endpoint: { url: "https://iam-fips.{PartitionResult#dualStackDnsSuffix}", [L]: F2, [M]: o3 }, type: e3 }], type: f3 }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d3 }], type: f3 }, { conditions: [m3, v6], rules: [{ conditions: [{ [I2]: c3, [J2]: [D2, a3] }], rules: [{ endpoint: { url: "https://iam-fips.{PartitionResult#dnsSuffix}", [L]: F2, [M]: o3 }, type: e3 }], type: f3 }, { error: "FIPS is enabled but this partition does not support FIPS", type: d3 }], type: f3 }, { conditions: [r3, n3], rules: [{ conditions: [E2], rules: [{ endpoint: { url: "https://iam.{PartitionResult#dualStackDnsSuffix}", [L]: F2, [M]: o3 }, type: e3 }], type: f3 }, { error: "DualStack is enabled but this partition does not support DualStack", type: d3 }], type: f3 }, { endpoint: { url: "https://iam.{PartitionResult#dnsSuffix}", [L]: F2, [M]: o3 }, type: e3 }], type: f3 }], type: f3 }, { error: "Invalid Configuration: Missing Region", type: d3 }], type: f3 }] };
    exports2.ruleSet = _data3;
  }
});

// ../../node_modules/@aws-sdk/client-iam/dist-cjs/endpoint/endpointResolver.js
var require_endpointResolver15 = __commonJS({
  "../../node_modules/@aws-sdk/client-iam/dist-cjs/endpoint/endpointResolver.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.defaultEndpointResolver = void 0;
    var util_endpoints_1 = require_dist_cjs21();
    var util_endpoints_2 = require_dist_cjs18();
    var ruleset_1 = require_ruleset15();
    var cache3 = new util_endpoints_2.EndpointCache({
      size: 50,
      params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"]
    });
    var defaultEndpointResolver3 = /* @__PURE__ */ __name((endpointParams, context = {}) => {
      return cache3.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
        endpointParams,
        logger: context.logger
      }));
    }, "defaultEndpointResolver");
    exports2.defaultEndpointResolver = defaultEndpointResolver3;
    util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
  }
});

// ../../node_modules/@aws-sdk/client-iam/dist-cjs/runtimeConfig.shared.js
var require_runtimeConfig_shared16 = __commonJS({
  "../../node_modules/@aws-sdk/client-iam/dist-cjs/runtimeConfig.shared.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.getRuntimeConfig = void 0;
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var smithy_client_1 = require_dist_cjs26();
    var url_parser_1 = require_dist_cjs20();
    var util_base64_1 = require_dist_cjs11();
    var util_utf8_1 = require_dist_cjs10();
    var httpAuthSchemeProvider_1 = require_httpAuthSchemeProvider15();
    var endpointResolver_1 = require_endpointResolver15();
    var getRuntimeConfig5 = /* @__PURE__ */ __name((config) => {
      return {
        apiVersion: "2010-05-08",
        base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
        base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
        disableHostPrefix: config?.disableHostPrefix ?? false,
        endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
        extensions: config?.extensions ?? [],
        httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultIAMHttpAuthSchemeProvider,
        httpAuthSchemes: config?.httpAuthSchemes ?? [
          {
            schemeId: "aws.auth#sigv4",
            identityProvider: /* @__PURE__ */ __name((ipc) => ipc.getIdentityProvider("aws.auth#sigv4"), "identityProvider"),
            signer: new core_1.AwsSdkSigV4Signer()
          }
        ],
        logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
        serviceId: config?.serviceId ?? "IAM",
        urlParser: config?.urlParser ?? url_parser_1.parseUrl,
        utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
        utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8
      };
    }, "getRuntimeConfig");
    exports2.getRuntimeConfig = getRuntimeConfig5;
  }
});

// ../../node_modules/@aws-sdk/client-iam/dist-cjs/runtimeConfig.js
var require_runtimeConfig16 = __commonJS({
  "../../node_modules/@aws-sdk/client-iam/dist-cjs/runtimeConfig.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.getRuntimeConfig = void 0;
    var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
    var package_json_1 = tslib_1.__importDefault(require_package15());
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var credential_provider_node_1 = require_dist_cjs52();
    var util_user_agent_node_1 = require_dist_cjs41();
    var config_resolver_1 = require_dist_cjs30();
    var hash_node_1 = require_dist_cjs42();
    var middleware_retry_1 = require_dist_cjs37();
    var node_config_provider_1 = require_dist_cjs33();
    var node_http_handler_1 = require_dist_cjs14();
    var util_body_length_node_1 = require_dist_cjs43();
    var util_retry_1 = require_dist_cjs36();
    var runtimeConfig_shared_1 = require_runtimeConfig_shared16();
    var smithy_client_1 = require_dist_cjs26();
    var util_defaults_mode_node_1 = require_dist_cjs44();
    var smithy_client_2 = require_dist_cjs26();
    var getRuntimeConfig5 = /* @__PURE__ */ __name((config) => {
      (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
      const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
      const defaultConfigProvider = /* @__PURE__ */ __name(() => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode), "defaultConfigProvider");
      const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
      (0, core_1.emitWarningIfUnsupportedVersion)(process.version);
      const loaderConfig = {
        profile: config?.profile,
        logger: clientSharedValues.logger
      };
      return {
        ...clientSharedValues,
        ...config,
        runtime: "node",
        defaultsMode,
        authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
        bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
        credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
        defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
        maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
        region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
        requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
        retryMode: config?.retryMode ?? (0, node_config_provider_1.loadConfig)({
          ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
          default: /* @__PURE__ */ __name(async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE, "default")
        }, config),
        sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
        streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
        useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
        useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
        userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig)
      };
    }, "getRuntimeConfig");
    exports2.getRuntimeConfig = getRuntimeConfig5;
  }
});

// ../../node_modules/@aws-sdk/client-iam/dist-cjs/index.js
var require_dist_cjs90 = __commonJS({
  "../../node_modules/@aws-sdk/client-iam/dist-cjs/index.js"(exports2, module2) {
    "use strict";
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var index_exports = {};
    __export2(index_exports, {
      AccessAdvisorUsageGranularityType: /* @__PURE__ */ __name(() => AccessAdvisorUsageGranularityType, "AccessAdvisorUsageGranularityType"),
      AccessKeyFilterSensitiveLog: /* @__PURE__ */ __name(() => AccessKeyFilterSensitiveLog, "AccessKeyFilterSensitiveLog"),
      AccountNotManagementOrDelegatedAdministratorException: /* @__PURE__ */ __name(() => AccountNotManagementOrDelegatedAdministratorException, "AccountNotManagementOrDelegatedAdministratorException"),
      AddClientIDToOpenIDConnectProviderCommand: /* @__PURE__ */ __name(() => AddClientIDToOpenIDConnectProviderCommand, "AddClientIDToOpenIDConnectProviderCommand"),
      AddRoleToInstanceProfileCommand: /* @__PURE__ */ __name(() => AddRoleToInstanceProfileCommand, "AddRoleToInstanceProfileCommand"),
      AddUserToGroupCommand: /* @__PURE__ */ __name(() => AddUserToGroupCommand, "AddUserToGroupCommand"),
      AssertionEncryptionModeType: /* @__PURE__ */ __name(() => AssertionEncryptionModeType, "AssertionEncryptionModeType"),
      AssignmentStatusType: /* @__PURE__ */ __name(() => AssignmentStatusType, "AssignmentStatusType"),
      AttachGroupPolicyCommand: /* @__PURE__ */ __name(() => AttachGroupPolicyCommand, "AttachGroupPolicyCommand"),
      AttachRolePolicyCommand: /* @__PURE__ */ __name(() => AttachRolePolicyCommand, "AttachRolePolicyCommand"),
      AttachUserPolicyCommand: /* @__PURE__ */ __name(() => AttachUserPolicyCommand, "AttachUserPolicyCommand"),
      CallerIsNotManagementAccountException: /* @__PURE__ */ __name(() => CallerIsNotManagementAccountException, "CallerIsNotManagementAccountException"),
      ChangePasswordCommand: /* @__PURE__ */ __name(() => ChangePasswordCommand, "ChangePasswordCommand"),
      ChangePasswordRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => ChangePasswordRequestFilterSensitiveLog, "ChangePasswordRequestFilterSensitiveLog"),
      ConcurrentModificationException: /* @__PURE__ */ __name(() => ConcurrentModificationException, "ConcurrentModificationException"),
      ContextKeyTypeEnum: /* @__PURE__ */ __name(() => ContextKeyTypeEnum, "ContextKeyTypeEnum"),
      CreateAccessKeyCommand: /* @__PURE__ */ __name(() => CreateAccessKeyCommand, "CreateAccessKeyCommand"),
      CreateAccessKeyResponseFilterSensitiveLog: /* @__PURE__ */ __name(() => CreateAccessKeyResponseFilterSensitiveLog, "CreateAccessKeyResponseFilterSensitiveLog"),
      CreateAccountAliasCommand: /* @__PURE__ */ __name(() => CreateAccountAliasCommand, "CreateAccountAliasCommand"),
      CreateGroupCommand: /* @__PURE__ */ __name(() => CreateGroupCommand, "CreateGroupCommand"),
      CreateInstanceProfileCommand: /* @__PURE__ */ __name(() => CreateInstanceProfileCommand, "CreateInstanceProfileCommand"),
      CreateLoginProfileCommand: /* @__PURE__ */ __name(() => CreateLoginProfileCommand, "CreateLoginProfileCommand"),
      CreateLoginProfileRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => CreateLoginProfileRequestFilterSensitiveLog, "CreateLoginProfileRequestFilterSensitiveLog"),
      CreateOpenIDConnectProviderCommand: /* @__PURE__ */ __name(() => CreateOpenIDConnectProviderCommand, "CreateOpenIDConnectProviderCommand"),
      CreatePolicyCommand: /* @__PURE__ */ __name(() => CreatePolicyCommand2, "CreatePolicyCommand"),
      CreatePolicyVersionCommand: /* @__PURE__ */ __name(() => CreatePolicyVersionCommand, "CreatePolicyVersionCommand"),
      CreateRoleCommand: /* @__PURE__ */ __name(() => CreateRoleCommand, "CreateRoleCommand"),
      CreateSAMLProviderCommand: /* @__PURE__ */ __name(() => CreateSAMLProviderCommand, "CreateSAMLProviderCommand"),
      CreateSAMLProviderRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => CreateSAMLProviderRequestFilterSensitiveLog, "CreateSAMLProviderRequestFilterSensitiveLog"),
      CreateServiceLinkedRoleCommand: /* @__PURE__ */ __name(() => CreateServiceLinkedRoleCommand, "CreateServiceLinkedRoleCommand"),
      CreateServiceSpecificCredentialCommand: /* @__PURE__ */ __name(() => CreateServiceSpecificCredentialCommand, "CreateServiceSpecificCredentialCommand"),
      CreateServiceSpecificCredentialResponseFilterSensitiveLog: /* @__PURE__ */ __name(() => CreateServiceSpecificCredentialResponseFilterSensitiveLog, "CreateServiceSpecificCredentialResponseFilterSensitiveLog"),
      CreateUserCommand: /* @__PURE__ */ __name(() => CreateUserCommand, "CreateUserCommand"),
      CreateVirtualMFADeviceCommand: /* @__PURE__ */ __name(() => CreateVirtualMFADeviceCommand, "CreateVirtualMFADeviceCommand"),
      CreateVirtualMFADeviceResponseFilterSensitiveLog: /* @__PURE__ */ __name(() => CreateVirtualMFADeviceResponseFilterSensitiveLog, "CreateVirtualMFADeviceResponseFilterSensitiveLog"),
      CredentialReportExpiredException: /* @__PURE__ */ __name(() => CredentialReportExpiredException, "CredentialReportExpiredException"),
      CredentialReportNotPresentException: /* @__PURE__ */ __name(() => CredentialReportNotPresentException, "CredentialReportNotPresentException"),
      CredentialReportNotReadyException: /* @__PURE__ */ __name(() => CredentialReportNotReadyException, "CredentialReportNotReadyException"),
      DeactivateMFADeviceCommand: /* @__PURE__ */ __name(() => DeactivateMFADeviceCommand, "DeactivateMFADeviceCommand"),
      DeleteAccessKeyCommand: /* @__PURE__ */ __name(() => DeleteAccessKeyCommand, "DeleteAccessKeyCommand"),
      DeleteAccountAliasCommand: /* @__PURE__ */ __name(() => DeleteAccountAliasCommand, "DeleteAccountAliasCommand"),
      DeleteAccountPasswordPolicyCommand: /* @__PURE__ */ __name(() => DeleteAccountPasswordPolicyCommand, "DeleteAccountPasswordPolicyCommand"),
      DeleteConflictException: /* @__PURE__ */ __name(() => DeleteConflictException, "DeleteConflictException"),
      DeleteGroupCommand: /* @__PURE__ */ __name(() => DeleteGroupCommand, "DeleteGroupCommand"),
      DeleteGroupPolicyCommand: /* @__PURE__ */ __name(() => DeleteGroupPolicyCommand, "DeleteGroupPolicyCommand"),
      DeleteInstanceProfileCommand: /* @__PURE__ */ __name(() => DeleteInstanceProfileCommand, "DeleteInstanceProfileCommand"),
      DeleteLoginProfileCommand: /* @__PURE__ */ __name(() => DeleteLoginProfileCommand, "DeleteLoginProfileCommand"),
      DeleteOpenIDConnectProviderCommand: /* @__PURE__ */ __name(() => DeleteOpenIDConnectProviderCommand, "DeleteOpenIDConnectProviderCommand"),
      DeletePolicyCommand: /* @__PURE__ */ __name(() => DeletePolicyCommand, "DeletePolicyCommand"),
      DeletePolicyVersionCommand: /* @__PURE__ */ __name(() => DeletePolicyVersionCommand, "DeletePolicyVersionCommand"),
      DeleteRoleCommand: /* @__PURE__ */ __name(() => DeleteRoleCommand, "DeleteRoleCommand"),
      DeleteRolePermissionsBoundaryCommand: /* @__PURE__ */ __name(() => DeleteRolePermissionsBoundaryCommand, "DeleteRolePermissionsBoundaryCommand"),
      DeleteRolePolicyCommand: /* @__PURE__ */ __name(() => DeleteRolePolicyCommand, "DeleteRolePolicyCommand"),
      DeleteSAMLProviderCommand: /* @__PURE__ */ __name(() => DeleteSAMLProviderCommand, "DeleteSAMLProviderCommand"),
      DeleteSSHPublicKeyCommand: /* @__PURE__ */ __name(() => DeleteSSHPublicKeyCommand, "DeleteSSHPublicKeyCommand"),
      DeleteServerCertificateCommand: /* @__PURE__ */ __name(() => DeleteServerCertificateCommand, "DeleteServerCertificateCommand"),
      DeleteServiceLinkedRoleCommand: /* @__PURE__ */ __name(() => DeleteServiceLinkedRoleCommand, "DeleteServiceLinkedRoleCommand"),
      DeleteServiceSpecificCredentialCommand: /* @__PURE__ */ __name(() => DeleteServiceSpecificCredentialCommand, "DeleteServiceSpecificCredentialCommand"),
      DeleteSigningCertificateCommand: /* @__PURE__ */ __name(() => DeleteSigningCertificateCommand, "DeleteSigningCertificateCommand"),
      DeleteUserCommand: /* @__PURE__ */ __name(() => DeleteUserCommand, "DeleteUserCommand"),
      DeleteUserPermissionsBoundaryCommand: /* @__PURE__ */ __name(() => DeleteUserPermissionsBoundaryCommand, "DeleteUserPermissionsBoundaryCommand"),
      DeleteUserPolicyCommand: /* @__PURE__ */ __name(() => DeleteUserPolicyCommand, "DeleteUserPolicyCommand"),
      DeleteVirtualMFADeviceCommand: /* @__PURE__ */ __name(() => DeleteVirtualMFADeviceCommand, "DeleteVirtualMFADeviceCommand"),
      DeletionTaskStatusType: /* @__PURE__ */ __name(() => DeletionTaskStatusType, "DeletionTaskStatusType"),
      DetachGroupPolicyCommand: /* @__PURE__ */ __name(() => DetachGroupPolicyCommand, "DetachGroupPolicyCommand"),
      DetachRolePolicyCommand: /* @__PURE__ */ __name(() => DetachRolePolicyCommand, "DetachRolePolicyCommand"),
      DetachUserPolicyCommand: /* @__PURE__ */ __name(() => DetachUserPolicyCommand, "DetachUserPolicyCommand"),
      DisableOrganizationsRootCredentialsManagementCommand: /* @__PURE__ */ __name(() => DisableOrganizationsRootCredentialsManagementCommand, "DisableOrganizationsRootCredentialsManagementCommand"),
      DisableOrganizationsRootSessionsCommand: /* @__PURE__ */ __name(() => DisableOrganizationsRootSessionsCommand, "DisableOrganizationsRootSessionsCommand"),
      DuplicateCertificateException: /* @__PURE__ */ __name(() => DuplicateCertificateException, "DuplicateCertificateException"),
      DuplicateSSHPublicKeyException: /* @__PURE__ */ __name(() => DuplicateSSHPublicKeyException, "DuplicateSSHPublicKeyException"),
      EnableMFADeviceCommand: /* @__PURE__ */ __name(() => EnableMFADeviceCommand, "EnableMFADeviceCommand"),
      EnableOrganizationsRootCredentialsManagementCommand: /* @__PURE__ */ __name(() => EnableOrganizationsRootCredentialsManagementCommand, "EnableOrganizationsRootCredentialsManagementCommand"),
      EnableOrganizationsRootSessionsCommand: /* @__PURE__ */ __name(() => EnableOrganizationsRootSessionsCommand, "EnableOrganizationsRootSessionsCommand"),
      EncodingType: /* @__PURE__ */ __name(() => EncodingType, "EncodingType"),
      EntityAlreadyExistsException: /* @__PURE__ */ __name(() => EntityAlreadyExistsException, "EntityAlreadyExistsException"),
      EntityTemporarilyUnmodifiableException: /* @__PURE__ */ __name(() => EntityTemporarilyUnmodifiableException, "EntityTemporarilyUnmodifiableException"),
      EntityType: /* @__PURE__ */ __name(() => EntityType, "EntityType"),
      FeatureType: /* @__PURE__ */ __name(() => FeatureType, "FeatureType"),
      GenerateCredentialReportCommand: /* @__PURE__ */ __name(() => GenerateCredentialReportCommand, "GenerateCredentialReportCommand"),
      GenerateOrganizationsAccessReportCommand: /* @__PURE__ */ __name(() => GenerateOrganizationsAccessReportCommand, "GenerateOrganizationsAccessReportCommand"),
      GenerateServiceLastAccessedDetailsCommand: /* @__PURE__ */ __name(() => GenerateServiceLastAccessedDetailsCommand, "GenerateServiceLastAccessedDetailsCommand"),
      GetAccessKeyLastUsedCommand: /* @__PURE__ */ __name(() => GetAccessKeyLastUsedCommand, "GetAccessKeyLastUsedCommand"),
      GetAccountAuthorizationDetailsCommand: /* @__PURE__ */ __name(() => GetAccountAuthorizationDetailsCommand, "GetAccountAuthorizationDetailsCommand"),
      GetAccountPasswordPolicyCommand: /* @__PURE__ */ __name(() => GetAccountPasswordPolicyCommand, "GetAccountPasswordPolicyCommand"),
      GetAccountSummaryCommand: /* @__PURE__ */ __name(() => GetAccountSummaryCommand, "GetAccountSummaryCommand"),
      GetContextKeysForCustomPolicyCommand: /* @__PURE__ */ __name(() => GetContextKeysForCustomPolicyCommand, "GetContextKeysForCustomPolicyCommand"),
      GetContextKeysForPrincipalPolicyCommand: /* @__PURE__ */ __name(() => GetContextKeysForPrincipalPolicyCommand, "GetContextKeysForPrincipalPolicyCommand"),
      GetCredentialReportCommand: /* @__PURE__ */ __name(() => GetCredentialReportCommand, "GetCredentialReportCommand"),
      GetGroupCommand: /* @__PURE__ */ __name(() => GetGroupCommand, "GetGroupCommand"),
      GetGroupPolicyCommand: /* @__PURE__ */ __name(() => GetGroupPolicyCommand, "GetGroupPolicyCommand"),
      GetInstanceProfileCommand: /* @__PURE__ */ __name(() => GetInstanceProfileCommand, "GetInstanceProfileCommand"),
      GetLoginProfileCommand: /* @__PURE__ */ __name(() => GetLoginProfileCommand, "GetLoginProfileCommand"),
      GetMFADeviceCommand: /* @__PURE__ */ __name(() => GetMFADeviceCommand, "GetMFADeviceCommand"),
      GetOpenIDConnectProviderCommand: /* @__PURE__ */ __name(() => GetOpenIDConnectProviderCommand, "GetOpenIDConnectProviderCommand"),
      GetOrganizationsAccessReportCommand: /* @__PURE__ */ __name(() => GetOrganizationsAccessReportCommand, "GetOrganizationsAccessReportCommand"),
      GetPolicyCommand: /* @__PURE__ */ __name(() => GetPolicyCommand2, "GetPolicyCommand"),
      GetPolicyVersionCommand: /* @__PURE__ */ __name(() => GetPolicyVersionCommand, "GetPolicyVersionCommand"),
      GetRoleCommand: /* @__PURE__ */ __name(() => GetRoleCommand2, "GetRoleCommand"),
      GetRolePolicyCommand: /* @__PURE__ */ __name(() => GetRolePolicyCommand, "GetRolePolicyCommand"),
      GetSAMLProviderCommand: /* @__PURE__ */ __name(() => GetSAMLProviderCommand, "GetSAMLProviderCommand"),
      GetSSHPublicKeyCommand: /* @__PURE__ */ __name(() => GetSSHPublicKeyCommand, "GetSSHPublicKeyCommand"),
      GetServerCertificateCommand: /* @__PURE__ */ __name(() => GetServerCertificateCommand, "GetServerCertificateCommand"),
      GetServiceLastAccessedDetailsCommand: /* @__PURE__ */ __name(() => GetServiceLastAccessedDetailsCommand, "GetServiceLastAccessedDetailsCommand"),
      GetServiceLastAccessedDetailsWithEntitiesCommand: /* @__PURE__ */ __name(() => GetServiceLastAccessedDetailsWithEntitiesCommand, "GetServiceLastAccessedDetailsWithEntitiesCommand"),
      GetServiceLinkedRoleDeletionStatusCommand: /* @__PURE__ */ __name(() => GetServiceLinkedRoleDeletionStatusCommand, "GetServiceLinkedRoleDeletionStatusCommand"),
      GetUserCommand: /* @__PURE__ */ __name(() => GetUserCommand, "GetUserCommand"),
      GetUserPolicyCommand: /* @__PURE__ */ __name(() => GetUserPolicyCommand, "GetUserPolicyCommand"),
      GlobalEndpointTokenVersion: /* @__PURE__ */ __name(() => GlobalEndpointTokenVersion, "GlobalEndpointTokenVersion"),
      IAM: /* @__PURE__ */ __name(() => IAM, "IAM"),
      IAMClient: /* @__PURE__ */ __name(() => IAMClient2, "IAMClient"),
      IAMServiceException: /* @__PURE__ */ __name(() => IAMServiceException, "IAMServiceException"),
      InvalidAuthenticationCodeException: /* @__PURE__ */ __name(() => InvalidAuthenticationCodeException, "InvalidAuthenticationCodeException"),
      InvalidCertificateException: /* @__PURE__ */ __name(() => InvalidCertificateException, "InvalidCertificateException"),
      InvalidInputException: /* @__PURE__ */ __name(() => InvalidInputException, "InvalidInputException"),
      InvalidPublicKeyException: /* @__PURE__ */ __name(() => InvalidPublicKeyException, "InvalidPublicKeyException"),
      InvalidUserTypeException: /* @__PURE__ */ __name(() => InvalidUserTypeException, "InvalidUserTypeException"),
      JobStatusType: /* @__PURE__ */ __name(() => JobStatusType, "JobStatusType"),
      KeyPairMismatchException: /* @__PURE__ */ __name(() => KeyPairMismatchException, "KeyPairMismatchException"),
      LimitExceededException: /* @__PURE__ */ __name(() => LimitExceededException, "LimitExceededException"),
      ListAccessKeysCommand: /* @__PURE__ */ __name(() => ListAccessKeysCommand, "ListAccessKeysCommand"),
      ListAccountAliasesCommand: /* @__PURE__ */ __name(() => ListAccountAliasesCommand, "ListAccountAliasesCommand"),
      ListAttachedGroupPoliciesCommand: /* @__PURE__ */ __name(() => ListAttachedGroupPoliciesCommand, "ListAttachedGroupPoliciesCommand"),
      ListAttachedRolePoliciesCommand: /* @__PURE__ */ __name(() => ListAttachedRolePoliciesCommand, "ListAttachedRolePoliciesCommand"),
      ListAttachedUserPoliciesCommand: /* @__PURE__ */ __name(() => ListAttachedUserPoliciesCommand, "ListAttachedUserPoliciesCommand"),
      ListEntitiesForPolicyCommand: /* @__PURE__ */ __name(() => ListEntitiesForPolicyCommand, "ListEntitiesForPolicyCommand"),
      ListGroupPoliciesCommand: /* @__PURE__ */ __name(() => ListGroupPoliciesCommand, "ListGroupPoliciesCommand"),
      ListGroupsCommand: /* @__PURE__ */ __name(() => ListGroupsCommand, "ListGroupsCommand"),
      ListGroupsForUserCommand: /* @__PURE__ */ __name(() => ListGroupsForUserCommand, "ListGroupsForUserCommand"),
      ListInstanceProfileTagsCommand: /* @__PURE__ */ __name(() => ListInstanceProfileTagsCommand, "ListInstanceProfileTagsCommand"),
      ListInstanceProfilesCommand: /* @__PURE__ */ __name(() => ListInstanceProfilesCommand, "ListInstanceProfilesCommand"),
      ListInstanceProfilesForRoleCommand: /* @__PURE__ */ __name(() => ListInstanceProfilesForRoleCommand, "ListInstanceProfilesForRoleCommand"),
      ListMFADeviceTagsCommand: /* @__PURE__ */ __name(() => ListMFADeviceTagsCommand, "ListMFADeviceTagsCommand"),
      ListMFADevicesCommand: /* @__PURE__ */ __name(() => ListMFADevicesCommand, "ListMFADevicesCommand"),
      ListOpenIDConnectProviderTagsCommand: /* @__PURE__ */ __name(() => ListOpenIDConnectProviderTagsCommand, "ListOpenIDConnectProviderTagsCommand"),
      ListOpenIDConnectProvidersCommand: /* @__PURE__ */ __name(() => ListOpenIDConnectProvidersCommand, "ListOpenIDConnectProvidersCommand"),
      ListOrganizationsFeaturesCommand: /* @__PURE__ */ __name(() => ListOrganizationsFeaturesCommand, "ListOrganizationsFeaturesCommand"),
      ListPoliciesCommand: /* @__PURE__ */ __name(() => ListPoliciesCommand, "ListPoliciesCommand"),
      ListPoliciesGrantingServiceAccessCommand: /* @__PURE__ */ __name(() => ListPoliciesGrantingServiceAccessCommand, "ListPoliciesGrantingServiceAccessCommand"),
      ListPolicyTagsCommand: /* @__PURE__ */ __name(() => ListPolicyTagsCommand, "ListPolicyTagsCommand"),
      ListPolicyVersionsCommand: /* @__PURE__ */ __name(() => ListPolicyVersionsCommand, "ListPolicyVersionsCommand"),
      ListRolePoliciesCommand: /* @__PURE__ */ __name(() => ListRolePoliciesCommand, "ListRolePoliciesCommand"),
      ListRoleTagsCommand: /* @__PURE__ */ __name(() => ListRoleTagsCommand, "ListRoleTagsCommand"),
      ListRolesCommand: /* @__PURE__ */ __name(() => ListRolesCommand, "ListRolesCommand"),
      ListSAMLProviderTagsCommand: /* @__PURE__ */ __name(() => ListSAMLProviderTagsCommand, "ListSAMLProviderTagsCommand"),
      ListSAMLProvidersCommand: /* @__PURE__ */ __name(() => ListSAMLProvidersCommand, "ListSAMLProvidersCommand"),
      ListSSHPublicKeysCommand: /* @__PURE__ */ __name(() => ListSSHPublicKeysCommand, "ListSSHPublicKeysCommand"),
      ListServerCertificateTagsCommand: /* @__PURE__ */ __name(() => ListServerCertificateTagsCommand, "ListServerCertificateTagsCommand"),
      ListServerCertificatesCommand: /* @__PURE__ */ __name(() => ListServerCertificatesCommand, "ListServerCertificatesCommand"),
      ListServiceSpecificCredentialsCommand: /* @__PURE__ */ __name(() => ListServiceSpecificCredentialsCommand, "ListServiceSpecificCredentialsCommand"),
      ListSigningCertificatesCommand: /* @__PURE__ */ __name(() => ListSigningCertificatesCommand, "ListSigningCertificatesCommand"),
      ListUserPoliciesCommand: /* @__PURE__ */ __name(() => ListUserPoliciesCommand, "ListUserPoliciesCommand"),
      ListUserTagsCommand: /* @__PURE__ */ __name(() => ListUserTagsCommand, "ListUserTagsCommand"),
      ListUsersCommand: /* @__PURE__ */ __name(() => ListUsersCommand, "ListUsersCommand"),
      ListVirtualMFADevicesCommand: /* @__PURE__ */ __name(() => ListVirtualMFADevicesCommand, "ListVirtualMFADevicesCommand"),
      ListVirtualMFADevicesResponseFilterSensitiveLog: /* @__PURE__ */ __name(() => ListVirtualMFADevicesResponseFilterSensitiveLog, "ListVirtualMFADevicesResponseFilterSensitiveLog"),
      MalformedCertificateException: /* @__PURE__ */ __name(() => MalformedCertificateException, "MalformedCertificateException"),
      MalformedPolicyDocumentException: /* @__PURE__ */ __name(() => MalformedPolicyDocumentException2, "MalformedPolicyDocumentException"),
      NoSuchEntityException: /* @__PURE__ */ __name(() => NoSuchEntityException, "NoSuchEntityException"),
      OpenIdIdpCommunicationErrorException: /* @__PURE__ */ __name(() => OpenIdIdpCommunicationErrorException, "OpenIdIdpCommunicationErrorException"),
      OrganizationNotFoundException: /* @__PURE__ */ __name(() => OrganizationNotFoundException, "OrganizationNotFoundException"),
      OrganizationNotInAllFeaturesModeException: /* @__PURE__ */ __name(() => OrganizationNotInAllFeaturesModeException, "OrganizationNotInAllFeaturesModeException"),
      PasswordPolicyViolationException: /* @__PURE__ */ __name(() => PasswordPolicyViolationException, "PasswordPolicyViolationException"),
      PermissionsBoundaryAttachmentType: /* @__PURE__ */ __name(() => PermissionsBoundaryAttachmentType, "PermissionsBoundaryAttachmentType"),
      PolicyEvaluationDecisionType: /* @__PURE__ */ __name(() => PolicyEvaluationDecisionType, "PolicyEvaluationDecisionType"),
      PolicyEvaluationException: /* @__PURE__ */ __name(() => PolicyEvaluationException, "PolicyEvaluationException"),
      PolicyNotAttachableException: /* @__PURE__ */ __name(() => PolicyNotAttachableException, "PolicyNotAttachableException"),
      PolicyOwnerEntityType: /* @__PURE__ */ __name(() => PolicyOwnerEntityType, "PolicyOwnerEntityType"),
      PolicyScopeType: /* @__PURE__ */ __name(() => PolicyScopeType, "PolicyScopeType"),
      PolicySourceType: /* @__PURE__ */ __name(() => PolicySourceType, "PolicySourceType"),
      PolicyType: /* @__PURE__ */ __name(() => PolicyType, "PolicyType"),
      PolicyUsageType: /* @__PURE__ */ __name(() => PolicyUsageType, "PolicyUsageType"),
      PutGroupPolicyCommand: /* @__PURE__ */ __name(() => PutGroupPolicyCommand, "PutGroupPolicyCommand"),
      PutRolePermissionsBoundaryCommand: /* @__PURE__ */ __name(() => PutRolePermissionsBoundaryCommand, "PutRolePermissionsBoundaryCommand"),
      PutRolePolicyCommand: /* @__PURE__ */ __name(() => PutRolePolicyCommand, "PutRolePolicyCommand"),
      PutUserPermissionsBoundaryCommand: /* @__PURE__ */ __name(() => PutUserPermissionsBoundaryCommand, "PutUserPermissionsBoundaryCommand"),
      PutUserPolicyCommand: /* @__PURE__ */ __name(() => PutUserPolicyCommand, "PutUserPolicyCommand"),
      RemoveClientIDFromOpenIDConnectProviderCommand: /* @__PURE__ */ __name(() => RemoveClientIDFromOpenIDConnectProviderCommand, "RemoveClientIDFromOpenIDConnectProviderCommand"),
      RemoveRoleFromInstanceProfileCommand: /* @__PURE__ */ __name(() => RemoveRoleFromInstanceProfileCommand, "RemoveRoleFromInstanceProfileCommand"),
      RemoveUserFromGroupCommand: /* @__PURE__ */ __name(() => RemoveUserFromGroupCommand, "RemoveUserFromGroupCommand"),
      ReportFormatType: /* @__PURE__ */ __name(() => ReportFormatType, "ReportFormatType"),
      ReportGenerationLimitExceededException: /* @__PURE__ */ __name(() => ReportGenerationLimitExceededException, "ReportGenerationLimitExceededException"),
      ReportStateType: /* @__PURE__ */ __name(() => ReportStateType, "ReportStateType"),
      ResetServiceSpecificCredentialCommand: /* @__PURE__ */ __name(() => ResetServiceSpecificCredentialCommand, "ResetServiceSpecificCredentialCommand"),
      ResetServiceSpecificCredentialResponseFilterSensitiveLog: /* @__PURE__ */ __name(() => ResetServiceSpecificCredentialResponseFilterSensitiveLog, "ResetServiceSpecificCredentialResponseFilterSensitiveLog"),
      ResyncMFADeviceCommand: /* @__PURE__ */ __name(() => ResyncMFADeviceCommand, "ResyncMFADeviceCommand"),
      ServiceAccessNotEnabledException: /* @__PURE__ */ __name(() => ServiceAccessNotEnabledException, "ServiceAccessNotEnabledException"),
      ServiceFailureException: /* @__PURE__ */ __name(() => ServiceFailureException, "ServiceFailureException"),
      ServiceNotSupportedException: /* @__PURE__ */ __name(() => ServiceNotSupportedException, "ServiceNotSupportedException"),
      ServiceSpecificCredentialFilterSensitiveLog: /* @__PURE__ */ __name(() => ServiceSpecificCredentialFilterSensitiveLog, "ServiceSpecificCredentialFilterSensitiveLog"),
      SetDefaultPolicyVersionCommand: /* @__PURE__ */ __name(() => SetDefaultPolicyVersionCommand, "SetDefaultPolicyVersionCommand"),
      SetSecurityTokenServicePreferencesCommand: /* @__PURE__ */ __name(() => SetSecurityTokenServicePreferencesCommand, "SetSecurityTokenServicePreferencesCommand"),
      SimulateCustomPolicyCommand: /* @__PURE__ */ __name(() => SimulateCustomPolicyCommand, "SimulateCustomPolicyCommand"),
      SimulatePrincipalPolicyCommand: /* @__PURE__ */ __name(() => SimulatePrincipalPolicyCommand, "SimulatePrincipalPolicyCommand"),
      SortKeyType: /* @__PURE__ */ __name(() => SortKeyType, "SortKeyType"),
      StatusType: /* @__PURE__ */ __name(() => StatusType, "StatusType"),
      SummaryKeyType: /* @__PURE__ */ __name(() => SummaryKeyType, "SummaryKeyType"),
      TagInstanceProfileCommand: /* @__PURE__ */ __name(() => TagInstanceProfileCommand, "TagInstanceProfileCommand"),
      TagMFADeviceCommand: /* @__PURE__ */ __name(() => TagMFADeviceCommand, "TagMFADeviceCommand"),
      TagOpenIDConnectProviderCommand: /* @__PURE__ */ __name(() => TagOpenIDConnectProviderCommand, "TagOpenIDConnectProviderCommand"),
      TagPolicyCommand: /* @__PURE__ */ __name(() => TagPolicyCommand, "TagPolicyCommand"),
      TagRoleCommand: /* @__PURE__ */ __name(() => TagRoleCommand, "TagRoleCommand"),
      TagSAMLProviderCommand: /* @__PURE__ */ __name(() => TagSAMLProviderCommand, "TagSAMLProviderCommand"),
      TagServerCertificateCommand: /* @__PURE__ */ __name(() => TagServerCertificateCommand, "TagServerCertificateCommand"),
      TagUserCommand: /* @__PURE__ */ __name(() => TagUserCommand, "TagUserCommand"),
      UnmodifiableEntityException: /* @__PURE__ */ __name(() => UnmodifiableEntityException, "UnmodifiableEntityException"),
      UnrecognizedPublicKeyEncodingException: /* @__PURE__ */ __name(() => UnrecognizedPublicKeyEncodingException, "UnrecognizedPublicKeyEncodingException"),
      UntagInstanceProfileCommand: /* @__PURE__ */ __name(() => UntagInstanceProfileCommand, "UntagInstanceProfileCommand"),
      UntagMFADeviceCommand: /* @__PURE__ */ __name(() => UntagMFADeviceCommand, "UntagMFADeviceCommand"),
      UntagOpenIDConnectProviderCommand: /* @__PURE__ */ __name(() => UntagOpenIDConnectProviderCommand, "UntagOpenIDConnectProviderCommand"),
      UntagPolicyCommand: /* @__PURE__ */ __name(() => UntagPolicyCommand, "UntagPolicyCommand"),
      UntagRoleCommand: /* @__PURE__ */ __name(() => UntagRoleCommand, "UntagRoleCommand"),
      UntagSAMLProviderCommand: /* @__PURE__ */ __name(() => UntagSAMLProviderCommand, "UntagSAMLProviderCommand"),
      UntagServerCertificateCommand: /* @__PURE__ */ __name(() => UntagServerCertificateCommand, "UntagServerCertificateCommand"),
      UntagUserCommand: /* @__PURE__ */ __name(() => UntagUserCommand, "UntagUserCommand"),
      UpdateAccessKeyCommand: /* @__PURE__ */ __name(() => UpdateAccessKeyCommand, "UpdateAccessKeyCommand"),
      UpdateAccountPasswordPolicyCommand: /* @__PURE__ */ __name(() => UpdateAccountPasswordPolicyCommand, "UpdateAccountPasswordPolicyCommand"),
      UpdateAssumeRolePolicyCommand: /* @__PURE__ */ __name(() => UpdateAssumeRolePolicyCommand, "UpdateAssumeRolePolicyCommand"),
      UpdateGroupCommand: /* @__PURE__ */ __name(() => UpdateGroupCommand, "UpdateGroupCommand"),
      UpdateLoginProfileCommand: /* @__PURE__ */ __name(() => UpdateLoginProfileCommand, "UpdateLoginProfileCommand"),
      UpdateLoginProfileRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => UpdateLoginProfileRequestFilterSensitiveLog, "UpdateLoginProfileRequestFilterSensitiveLog"),
      UpdateOpenIDConnectProviderThumbprintCommand: /* @__PURE__ */ __name(() => UpdateOpenIDConnectProviderThumbprintCommand, "UpdateOpenIDConnectProviderThumbprintCommand"),
      UpdateRoleCommand: /* @__PURE__ */ __name(() => UpdateRoleCommand, "UpdateRoleCommand"),
      UpdateRoleDescriptionCommand: /* @__PURE__ */ __name(() => UpdateRoleDescriptionCommand, "UpdateRoleDescriptionCommand"),
      UpdateSAMLProviderCommand: /* @__PURE__ */ __name(() => UpdateSAMLProviderCommand, "UpdateSAMLProviderCommand"),
      UpdateSAMLProviderRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => UpdateSAMLProviderRequestFilterSensitiveLog, "UpdateSAMLProviderRequestFilterSensitiveLog"),
      UpdateSSHPublicKeyCommand: /* @__PURE__ */ __name(() => UpdateSSHPublicKeyCommand, "UpdateSSHPublicKeyCommand"),
      UpdateServerCertificateCommand: /* @__PURE__ */ __name(() => UpdateServerCertificateCommand, "UpdateServerCertificateCommand"),
      UpdateServiceSpecificCredentialCommand: /* @__PURE__ */ __name(() => UpdateServiceSpecificCredentialCommand, "UpdateServiceSpecificCredentialCommand"),
      UpdateSigningCertificateCommand: /* @__PURE__ */ __name(() => UpdateSigningCertificateCommand, "UpdateSigningCertificateCommand"),
      UpdateUserCommand: /* @__PURE__ */ __name(() => UpdateUserCommand, "UpdateUserCommand"),
      UploadSSHPublicKeyCommand: /* @__PURE__ */ __name(() => UploadSSHPublicKeyCommand, "UploadSSHPublicKeyCommand"),
      UploadServerCertificateCommand: /* @__PURE__ */ __name(() => UploadServerCertificateCommand, "UploadServerCertificateCommand"),
      UploadServerCertificateRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => UploadServerCertificateRequestFilterSensitiveLog, "UploadServerCertificateRequestFilterSensitiveLog"),
      UploadSigningCertificateCommand: /* @__PURE__ */ __name(() => UploadSigningCertificateCommand, "UploadSigningCertificateCommand"),
      VirtualMFADeviceFilterSensitiveLog: /* @__PURE__ */ __name(() => VirtualMFADeviceFilterSensitiveLog, "VirtualMFADeviceFilterSensitiveLog"),
      __Client: /* @__PURE__ */ __name(() => import_smithy_client28.Client, "__Client"),
      paginateGetAccountAuthorizationDetails: /* @__PURE__ */ __name(() => paginateGetAccountAuthorizationDetails, "paginateGetAccountAuthorizationDetails"),
      paginateGetGroup: /* @__PURE__ */ __name(() => paginateGetGroup, "paginateGetGroup"),
      paginateListAccessKeys: /* @__PURE__ */ __name(() => paginateListAccessKeys, "paginateListAccessKeys"),
      paginateListAccountAliases: /* @__PURE__ */ __name(() => paginateListAccountAliases, "paginateListAccountAliases"),
      paginateListAttachedGroupPolicies: /* @__PURE__ */ __name(() => paginateListAttachedGroupPolicies, "paginateListAttachedGroupPolicies"),
      paginateListAttachedRolePolicies: /* @__PURE__ */ __name(() => paginateListAttachedRolePolicies, "paginateListAttachedRolePolicies"),
      paginateListAttachedUserPolicies: /* @__PURE__ */ __name(() => paginateListAttachedUserPolicies, "paginateListAttachedUserPolicies"),
      paginateListEntitiesForPolicy: /* @__PURE__ */ __name(() => paginateListEntitiesForPolicy, "paginateListEntitiesForPolicy"),
      paginateListGroupPolicies: /* @__PURE__ */ __name(() => paginateListGroupPolicies, "paginateListGroupPolicies"),
      paginateListGroups: /* @__PURE__ */ __name(() => paginateListGroups, "paginateListGroups"),
      paginateListGroupsForUser: /* @__PURE__ */ __name(() => paginateListGroupsForUser, "paginateListGroupsForUser"),
      paginateListInstanceProfileTags: /* @__PURE__ */ __name(() => paginateListInstanceProfileTags, "paginateListInstanceProfileTags"),
      paginateListInstanceProfiles: /* @__PURE__ */ __name(() => paginateListInstanceProfiles, "paginateListInstanceProfiles"),
      paginateListInstanceProfilesForRole: /* @__PURE__ */ __name(() => paginateListInstanceProfilesForRole, "paginateListInstanceProfilesForRole"),
      paginateListMFADeviceTags: /* @__PURE__ */ __name(() => paginateListMFADeviceTags, "paginateListMFADeviceTags"),
      paginateListMFADevices: /* @__PURE__ */ __name(() => paginateListMFADevices, "paginateListMFADevices"),
      paginateListOpenIDConnectProviderTags: /* @__PURE__ */ __name(() => paginateListOpenIDConnectProviderTags, "paginateListOpenIDConnectProviderTags"),
      paginateListPolicies: /* @__PURE__ */ __name(() => paginateListPolicies, "paginateListPolicies"),
      paginateListPolicyTags: /* @__PURE__ */ __name(() => paginateListPolicyTags, "paginateListPolicyTags"),
      paginateListPolicyVersions: /* @__PURE__ */ __name(() => paginateListPolicyVersions, "paginateListPolicyVersions"),
      paginateListRolePolicies: /* @__PURE__ */ __name(() => paginateListRolePolicies, "paginateListRolePolicies"),
      paginateListRoleTags: /* @__PURE__ */ __name(() => paginateListRoleTags, "paginateListRoleTags"),
      paginateListRoles: /* @__PURE__ */ __name(() => paginateListRoles, "paginateListRoles"),
      paginateListSAMLProviderTags: /* @__PURE__ */ __name(() => paginateListSAMLProviderTags, "paginateListSAMLProviderTags"),
      paginateListSSHPublicKeys: /* @__PURE__ */ __name(() => paginateListSSHPublicKeys, "paginateListSSHPublicKeys"),
      paginateListServerCertificateTags: /* @__PURE__ */ __name(() => paginateListServerCertificateTags, "paginateListServerCertificateTags"),
      paginateListServerCertificates: /* @__PURE__ */ __name(() => paginateListServerCertificates, "paginateListServerCertificates"),
      paginateListSigningCertificates: /* @__PURE__ */ __name(() => paginateListSigningCertificates, "paginateListSigningCertificates"),
      paginateListUserPolicies: /* @__PURE__ */ __name(() => paginateListUserPolicies, "paginateListUserPolicies"),
      paginateListUserTags: /* @__PURE__ */ __name(() => paginateListUserTags, "paginateListUserTags"),
      paginateListUsers: /* @__PURE__ */ __name(() => paginateListUsers, "paginateListUsers"),
      paginateListVirtualMFADevices: /* @__PURE__ */ __name(() => paginateListVirtualMFADevices, "paginateListVirtualMFADevices"),
      paginateSimulateCustomPolicy: /* @__PURE__ */ __name(() => paginateSimulateCustomPolicy, "paginateSimulateCustomPolicy"),
      paginateSimulatePrincipalPolicy: /* @__PURE__ */ __name(() => paginateSimulatePrincipalPolicy, "paginateSimulatePrincipalPolicy"),
      waitForInstanceProfileExists: /* @__PURE__ */ __name(() => waitForInstanceProfileExists, "waitForInstanceProfileExists"),
      waitForPolicyExists: /* @__PURE__ */ __name(() => waitForPolicyExists, "waitForPolicyExists"),
      waitForRoleExists: /* @__PURE__ */ __name(() => waitForRoleExists, "waitForRoleExists"),
      waitForUserExists: /* @__PURE__ */ __name(() => waitForUserExists, "waitForUserExists"),
      waitUntilInstanceProfileExists: /* @__PURE__ */ __name(() => waitUntilInstanceProfileExists, "waitUntilInstanceProfileExists"),
      waitUntilPolicyExists: /* @__PURE__ */ __name(() => waitUntilPolicyExists, "waitUntilPolicyExists"),
      waitUntilRoleExists: /* @__PURE__ */ __name(() => waitUntilRoleExists, "waitUntilRoleExists"),
      waitUntilUserExists: /* @__PURE__ */ __name(() => waitUntilUserExists, "waitUntilUserExists")
    });
    module2.exports = __toCommonJS2(index_exports);
    var import_middleware_host_header3 = require_dist_cjs3();
    var import_middleware_logger3 = require_dist_cjs4();
    var import_middleware_recursion_detection3 = require_dist_cjs5();
    var import_middleware_user_agent3 = require_dist_cjs28();
    var import_config_resolver6 = require_dist_cjs30();
    var import_core17 = (init_dist_es(), __toCommonJS(dist_es_exports));
    var import_middleware_content_length3 = require_dist_cjs31();
    var import_middleware_endpoint8 = require_dist_cjs34();
    var import_middleware_retry5 = require_dist_cjs37();
    var import_httpAuthSchemeProvider5 = require_httpAuthSchemeProvider15();
    var resolveClientEndpointParameters3 = /* @__PURE__ */ __name2((options) => {
      return Object.assign(options, {
        useDualstackEndpoint: options.useDualstackEndpoint ?? false,
        useFipsEndpoint: options.useFipsEndpoint ?? false,
        defaultSigningName: "iam"
      });
    }, "resolveClientEndpointParameters");
    var commonParams3 = {
      UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
      Endpoint: { type: "builtInParams", name: "endpoint" },
      Region: { type: "builtInParams", name: "region" },
      UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
    };
    var import_runtimeConfig5 = require_runtimeConfig16();
    var import_region_config_resolver3 = require_dist_cjs45();
    var import_protocol_http16 = require_dist_cjs2();
    var import_smithy_client28 = require_dist_cjs26();
    var getHttpAuthExtensionConfiguration3 = /* @__PURE__ */ __name2((runtimeConfig) => {
      const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
      let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
      let _credentials = runtimeConfig.credentials;
      return {
        setHttpAuthScheme(httpAuthScheme) {
          const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
          if (index === -1) {
            _httpAuthSchemes.push(httpAuthScheme);
          } else {
            _httpAuthSchemes.splice(index, 1, httpAuthScheme);
          }
        },
        httpAuthSchemes() {
          return _httpAuthSchemes;
        },
        setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
          _httpAuthSchemeProvider = httpAuthSchemeProvider;
        },
        httpAuthSchemeProvider() {
          return _httpAuthSchemeProvider;
        },
        setCredentials(credentials) {
          _credentials = credentials;
        },
        credentials() {
          return _credentials;
        }
      };
    }, "getHttpAuthExtensionConfiguration");
    var resolveHttpAuthRuntimeConfig3 = /* @__PURE__ */ __name2((config) => {
      return {
        httpAuthSchemes: config.httpAuthSchemes(),
        httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
        credentials: config.credentials()
      };
    }, "resolveHttpAuthRuntimeConfig");
    var resolveRuntimeExtensions3 = /* @__PURE__ */ __name2((runtimeConfig, extensions) => {
      const extensionConfiguration = Object.assign(
        (0, import_region_config_resolver3.getAwsRegionExtensionConfiguration)(runtimeConfig),
        (0, import_smithy_client28.getDefaultExtensionConfiguration)(runtimeConfig),
        (0, import_protocol_http16.getHttpHandlerExtensionConfiguration)(runtimeConfig),
        getHttpAuthExtensionConfiguration3(runtimeConfig)
      );
      extensions.forEach((extension) => extension.configure(extensionConfiguration));
      return Object.assign(
        runtimeConfig,
        (0, import_region_config_resolver3.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
        (0, import_smithy_client28.resolveDefaultRuntimeConfig)(extensionConfiguration),
        (0, import_protocol_http16.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
        resolveHttpAuthRuntimeConfig3(extensionConfiguration)
      );
    }, "resolveRuntimeExtensions");
    var IAMClient2 = class extends import_smithy_client28.Client {
      static {
        __name(this, "IAMClient");
      }
      static {
        __name2(this, "IAMClient");
      }
      /**
       * The resolved configuration of IAMClient class. This is resolved and normalized from the {@link IAMClientConfig | constructor configuration interface}.
       */
      config;
      constructor(...[configuration]) {
        const _config_0 = (0, import_runtimeConfig5.getRuntimeConfig)(configuration || {});
        super(_config_0);
        this.initConfig = _config_0;
        const _config_1 = resolveClientEndpointParameters3(_config_0);
        const _config_2 = (0, import_middleware_user_agent3.resolveUserAgentConfig)(_config_1);
        const _config_3 = (0, import_middleware_retry5.resolveRetryConfig)(_config_2);
        const _config_4 = (0, import_config_resolver6.resolveRegionConfig)(_config_3);
        const _config_5 = (0, import_middleware_host_header3.resolveHostHeaderConfig)(_config_4);
        const _config_6 = (0, import_middleware_endpoint8.resolveEndpointConfig)(_config_5);
        const _config_7 = (0, import_httpAuthSchemeProvider5.resolveHttpAuthSchemeConfig)(_config_6);
        const _config_8 = resolveRuntimeExtensions3(_config_7, configuration?.extensions || []);
        this.config = _config_8;
        this.middlewareStack.use((0, import_middleware_user_agent3.getUserAgentPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_retry5.getRetryPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_content_length3.getContentLengthPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_host_header3.getHostHeaderPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_logger3.getLoggerPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_recursion_detection3.getRecursionDetectionPlugin)(this.config));
        this.middlewareStack.use(
          (0, import_core17.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
            httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider5.defaultIAMHttpAuthSchemeParametersProvider,
            identityProviderConfigProvider: /* @__PURE__ */ __name2(async (config) => new import_core17.DefaultIdentityProviderConfig({
              "aws.auth#sigv4": config.credentials
            }), "identityProviderConfigProvider")
          })
        );
        this.middlewareStack.use((0, import_core17.getHttpSigningPlugin)(this.config));
      }
      /**
       * Destroy underlying resources, like sockets. It's usually not necessary to do this.
       * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
       * Otherwise, sockets might stay open for quite a long time before the server terminates them.
       */
      destroy() {
        super.destroy();
      }
    };
    var import_middleware_serde5 = require_dist_cjs7();
    var import_core22 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var IAMServiceException = class _IAMServiceException extends import_smithy_client28.ServiceException {
      static {
        __name(this, "_IAMServiceException");
      }
      static {
        __name2(this, "IAMServiceException");
      }
      /**
       * @internal
       */
      constructor(options) {
        super(options);
        Object.setPrototypeOf(this, _IAMServiceException.prototype);
      }
    };
    var AccessAdvisorUsageGranularityType = {
      ACTION_LEVEL: "ACTION_LEVEL",
      SERVICE_LEVEL: "SERVICE_LEVEL"
    };
    var StatusType = {
      Active: "Active",
      Expired: "Expired",
      Inactive: "Inactive"
    };
    var AccountNotManagementOrDelegatedAdministratorException = class _AccountNotManagementOrDelegatedAdministratorException extends IAMServiceException {
      static {
        __name(this, "_AccountNotManagementOrDelegatedAdministratorException");
      }
      static {
        __name2(this, "AccountNotManagementOrDelegatedAdministratorException");
      }
      name = "AccountNotManagementOrDelegatedAdministratorException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "AccountNotManagementOrDelegatedAdministratorException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _AccountNotManagementOrDelegatedAdministratorException.prototype);
        this.Message = opts.Message;
      }
    };
    var InvalidInputException = class _InvalidInputException extends IAMServiceException {
      static {
        __name(this, "_InvalidInputException");
      }
      static {
        __name2(this, "InvalidInputException");
      }
      name = "InvalidInputException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidInputException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidInputException.prototype);
      }
    };
    var LimitExceededException = class _LimitExceededException extends IAMServiceException {
      static {
        __name(this, "_LimitExceededException");
      }
      static {
        __name2(this, "LimitExceededException");
      }
      name = "LimitExceededException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "LimitExceededException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _LimitExceededException.prototype);
      }
    };
    var NoSuchEntityException = class _NoSuchEntityException extends IAMServiceException {
      static {
        __name(this, "_NoSuchEntityException");
      }
      static {
        __name2(this, "NoSuchEntityException");
      }
      name = "NoSuchEntityException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "NoSuchEntityException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _NoSuchEntityException.prototype);
      }
    };
    var ServiceFailureException = class _ServiceFailureException extends IAMServiceException {
      static {
        __name(this, "_ServiceFailureException");
      }
      static {
        __name2(this, "ServiceFailureException");
      }
      name = "ServiceFailureException";
      $fault = "server";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ServiceFailureException",
          $fault: "server",
          ...opts
        });
        Object.setPrototypeOf(this, _ServiceFailureException.prototype);
      }
    };
    var EntityAlreadyExistsException = class _EntityAlreadyExistsException extends IAMServiceException {
      static {
        __name(this, "_EntityAlreadyExistsException");
      }
      static {
        __name2(this, "EntityAlreadyExistsException");
      }
      name = "EntityAlreadyExistsException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "EntityAlreadyExistsException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _EntityAlreadyExistsException.prototype);
      }
    };
    var UnmodifiableEntityException = class _UnmodifiableEntityException extends IAMServiceException {
      static {
        __name(this, "_UnmodifiableEntityException");
      }
      static {
        __name2(this, "UnmodifiableEntityException");
      }
      name = "UnmodifiableEntityException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "UnmodifiableEntityException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _UnmodifiableEntityException.prototype);
      }
    };
    var AssertionEncryptionModeType = {
      Allowed: "Allowed",
      Required: "Required"
    };
    var AssignmentStatusType = {
      Any: "Any",
      Assigned: "Assigned",
      Unassigned: "Unassigned"
    };
    var PermissionsBoundaryAttachmentType = {
      Policy: "PermissionsBoundaryPolicy"
    };
    var PolicyNotAttachableException = class _PolicyNotAttachableException extends IAMServiceException {
      static {
        __name(this, "_PolicyNotAttachableException");
      }
      static {
        __name2(this, "PolicyNotAttachableException");
      }
      name = "PolicyNotAttachableException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "PolicyNotAttachableException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _PolicyNotAttachableException.prototype);
      }
    };
    var EntityTemporarilyUnmodifiableException = class _EntityTemporarilyUnmodifiableException extends IAMServiceException {
      static {
        __name(this, "_EntityTemporarilyUnmodifiableException");
      }
      static {
        __name2(this, "EntityTemporarilyUnmodifiableException");
      }
      name = "EntityTemporarilyUnmodifiableException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "EntityTemporarilyUnmodifiableException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _EntityTemporarilyUnmodifiableException.prototype);
      }
    };
    var InvalidUserTypeException = class _InvalidUserTypeException extends IAMServiceException {
      static {
        __name(this, "_InvalidUserTypeException");
      }
      static {
        __name2(this, "InvalidUserTypeException");
      }
      name = "InvalidUserTypeException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidUserTypeException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidUserTypeException.prototype);
      }
    };
    var PasswordPolicyViolationException = class _PasswordPolicyViolationException extends IAMServiceException {
      static {
        __name(this, "_PasswordPolicyViolationException");
      }
      static {
        __name2(this, "PasswordPolicyViolationException");
      }
      name = "PasswordPolicyViolationException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "PasswordPolicyViolationException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _PasswordPolicyViolationException.prototype);
      }
    };
    var ConcurrentModificationException = class _ConcurrentModificationException extends IAMServiceException {
      static {
        __name(this, "_ConcurrentModificationException");
      }
      static {
        __name2(this, "ConcurrentModificationException");
      }
      name = "ConcurrentModificationException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ConcurrentModificationException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ConcurrentModificationException.prototype);
      }
    };
    var OpenIdIdpCommunicationErrorException = class _OpenIdIdpCommunicationErrorException extends IAMServiceException {
      static {
        __name(this, "_OpenIdIdpCommunicationErrorException");
      }
      static {
        __name2(this, "OpenIdIdpCommunicationErrorException");
      }
      name = "OpenIdIdpCommunicationErrorException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "OpenIdIdpCommunicationErrorException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _OpenIdIdpCommunicationErrorException.prototype);
      }
    };
    var MalformedPolicyDocumentException2 = class _MalformedPolicyDocumentException extends IAMServiceException {
      static {
        __name(this, "_MalformedPolicyDocumentException");
      }
      static {
        __name2(this, "MalformedPolicyDocumentException");
      }
      name = "MalformedPolicyDocumentException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "MalformedPolicyDocumentException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _MalformedPolicyDocumentException.prototype);
      }
    };
    var ServiceNotSupportedException = class _ServiceNotSupportedException extends IAMServiceException {
      static {
        __name(this, "_ServiceNotSupportedException");
      }
      static {
        __name2(this, "ServiceNotSupportedException");
      }
      name = "ServiceNotSupportedException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ServiceNotSupportedException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ServiceNotSupportedException.prototype);
      }
    };
    var DeleteConflictException = class _DeleteConflictException extends IAMServiceException {
      static {
        __name(this, "_DeleteConflictException");
      }
      static {
        __name2(this, "DeleteConflictException");
      }
      name = "DeleteConflictException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "DeleteConflictException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _DeleteConflictException.prototype);
      }
    };
    var FeatureType = {
      ROOT_CREDENTIALS_MANAGEMENT: "RootCredentialsManagement",
      ROOT_SESSIONS: "RootSessions"
    };
    var OrganizationNotFoundException = class _OrganizationNotFoundException extends IAMServiceException {
      static {
        __name(this, "_OrganizationNotFoundException");
      }
      static {
        __name2(this, "OrganizationNotFoundException");
      }
      name = "OrganizationNotFoundException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "OrganizationNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _OrganizationNotFoundException.prototype);
        this.Message = opts.Message;
      }
    };
    var OrganizationNotInAllFeaturesModeException = class _OrganizationNotInAllFeaturesModeException extends IAMServiceException {
      static {
        __name(this, "_OrganizationNotInAllFeaturesModeException");
      }
      static {
        __name2(this, "OrganizationNotInAllFeaturesModeException");
      }
      name = "OrganizationNotInAllFeaturesModeException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "OrganizationNotInAllFeaturesModeException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _OrganizationNotInAllFeaturesModeException.prototype);
        this.Message = opts.Message;
      }
    };
    var ServiceAccessNotEnabledException = class _ServiceAccessNotEnabledException extends IAMServiceException {
      static {
        __name(this, "_ServiceAccessNotEnabledException");
      }
      static {
        __name2(this, "ServiceAccessNotEnabledException");
      }
      name = "ServiceAccessNotEnabledException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ServiceAccessNotEnabledException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ServiceAccessNotEnabledException.prototype);
        this.Message = opts.Message;
      }
    };
    var InvalidAuthenticationCodeException = class _InvalidAuthenticationCodeException extends IAMServiceException {
      static {
        __name(this, "_InvalidAuthenticationCodeException");
      }
      static {
        __name2(this, "InvalidAuthenticationCodeException");
      }
      name = "InvalidAuthenticationCodeException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidAuthenticationCodeException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidAuthenticationCodeException.prototype);
      }
    };
    var CallerIsNotManagementAccountException = class _CallerIsNotManagementAccountException extends IAMServiceException {
      static {
        __name(this, "_CallerIsNotManagementAccountException");
      }
      static {
        __name2(this, "CallerIsNotManagementAccountException");
      }
      name = "CallerIsNotManagementAccountException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "CallerIsNotManagementAccountException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _CallerIsNotManagementAccountException.prototype);
        this.Message = opts.Message;
      }
    };
    var ReportStateType = {
      COMPLETE: "COMPLETE",
      INPROGRESS: "INPROGRESS",
      STARTED: "STARTED"
    };
    var ReportGenerationLimitExceededException = class _ReportGenerationLimitExceededException extends IAMServiceException {
      static {
        __name(this, "_ReportGenerationLimitExceededException");
      }
      static {
        __name2(this, "ReportGenerationLimitExceededException");
      }
      name = "ReportGenerationLimitExceededException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ReportGenerationLimitExceededException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ReportGenerationLimitExceededException.prototype);
      }
    };
    var EntityType = {
      AWSManagedPolicy: "AWSManagedPolicy",
      Group: "Group",
      LocalManagedPolicy: "LocalManagedPolicy",
      Role: "Role",
      User: "User"
    };
    var SummaryKeyType = {
      AccessKeysPerUserQuota: "AccessKeysPerUserQuota",
      AccountAccessKeysPresent: "AccountAccessKeysPresent",
      AccountMFAEnabled: "AccountMFAEnabled",
      AccountPasswordPresent: "AccountPasswordPresent",
      AccountSigningCertificatesPresent: "AccountSigningCertificatesPresent",
      AttachedPoliciesPerGroupQuota: "AttachedPoliciesPerGroupQuota",
      AttachedPoliciesPerRoleQuota: "AttachedPoliciesPerRoleQuota",
      AttachedPoliciesPerUserQuota: "AttachedPoliciesPerUserQuota",
      GlobalEndpointTokenVersion: "GlobalEndpointTokenVersion",
      GroupPolicySizeQuota: "GroupPolicySizeQuota",
      Groups: "Groups",
      GroupsPerUserQuota: "GroupsPerUserQuota",
      GroupsQuota: "GroupsQuota",
      MFADevices: "MFADevices",
      MFADevicesInUse: "MFADevicesInUse",
      Policies: "Policies",
      PoliciesQuota: "PoliciesQuota",
      PolicySizeQuota: "PolicySizeQuota",
      PolicyVersionsInUse: "PolicyVersionsInUse",
      PolicyVersionsInUseQuota: "PolicyVersionsInUseQuota",
      ServerCertificates: "ServerCertificates",
      ServerCertificatesQuota: "ServerCertificatesQuota",
      SigningCertificatesPerUserQuota: "SigningCertificatesPerUserQuota",
      UserPolicySizeQuota: "UserPolicySizeQuota",
      Users: "Users",
      UsersQuota: "UsersQuota",
      VersionsPerPolicyQuota: "VersionsPerPolicyQuota"
    };
    var CredentialReportExpiredException = class _CredentialReportExpiredException extends IAMServiceException {
      static {
        __name(this, "_CredentialReportExpiredException");
      }
      static {
        __name2(this, "CredentialReportExpiredException");
      }
      name = "CredentialReportExpiredException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "CredentialReportExpiredException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _CredentialReportExpiredException.prototype);
      }
    };
    var CredentialReportNotPresentException = class _CredentialReportNotPresentException extends IAMServiceException {
      static {
        __name(this, "_CredentialReportNotPresentException");
      }
      static {
        __name2(this, "CredentialReportNotPresentException");
      }
      name = "CredentialReportNotPresentException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "CredentialReportNotPresentException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _CredentialReportNotPresentException.prototype);
      }
    };
    var CredentialReportNotReadyException = class _CredentialReportNotReadyException extends IAMServiceException {
      static {
        __name(this, "_CredentialReportNotReadyException");
      }
      static {
        __name2(this, "CredentialReportNotReadyException");
      }
      name = "CredentialReportNotReadyException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "CredentialReportNotReadyException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _CredentialReportNotReadyException.prototype);
      }
    };
    var ReportFormatType = {
      text_csv: "text/csv"
    };
    var SortKeyType = {
      LAST_AUTHENTICATED_TIME_ASCENDING: "LAST_AUTHENTICATED_TIME_ASCENDING",
      LAST_AUTHENTICATED_TIME_DESCENDING: "LAST_AUTHENTICATED_TIME_DESCENDING",
      SERVICE_NAMESPACE_ASCENDING: "SERVICE_NAMESPACE_ASCENDING",
      SERVICE_NAMESPACE_DESCENDING: "SERVICE_NAMESPACE_DESCENDING"
    };
    var JobStatusType = {
      COMPLETED: "COMPLETED",
      FAILED: "FAILED",
      IN_PROGRESS: "IN_PROGRESS"
    };
    var PolicyOwnerEntityType = {
      GROUP: "GROUP",
      ROLE: "ROLE",
      USER: "USER"
    };
    var DeletionTaskStatusType = {
      FAILED: "FAILED",
      IN_PROGRESS: "IN_PROGRESS",
      NOT_STARTED: "NOT_STARTED",
      SUCCEEDED: "SUCCEEDED"
    };
    var EncodingType = {
      PEM: "PEM",
      SSH: "SSH"
    };
    var UnrecognizedPublicKeyEncodingException = class _UnrecognizedPublicKeyEncodingException extends IAMServiceException {
      static {
        __name(this, "_UnrecognizedPublicKeyEncodingException");
      }
      static {
        __name2(this, "UnrecognizedPublicKeyEncodingException");
      }
      name = "UnrecognizedPublicKeyEncodingException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "UnrecognizedPublicKeyEncodingException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _UnrecognizedPublicKeyEncodingException.prototype);
      }
    };
    var PolicyUsageType = {
      PermissionsBoundary: "PermissionsBoundary",
      PermissionsPolicy: "PermissionsPolicy"
    };
    var PolicyScopeType = {
      AWS: "AWS",
      All: "All",
      Local: "Local"
    };
    var PolicyType = {
      INLINE: "INLINE",
      MANAGED: "MANAGED"
    };
    var GlobalEndpointTokenVersion = {
      v1Token: "v1Token",
      v2Token: "v2Token"
    };
    var PolicyEvaluationException = class _PolicyEvaluationException extends IAMServiceException {
      static {
        __name(this, "_PolicyEvaluationException");
      }
      static {
        __name2(this, "PolicyEvaluationException");
      }
      name = "PolicyEvaluationException";
      $fault = "server";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "PolicyEvaluationException",
          $fault: "server",
          ...opts
        });
        Object.setPrototypeOf(this, _PolicyEvaluationException.prototype);
      }
    };
    var ContextKeyTypeEnum = {
      BINARY: "binary",
      BINARY_LIST: "binaryList",
      BOOLEAN: "boolean",
      BOOLEAN_LIST: "booleanList",
      DATE: "date",
      DATE_LIST: "dateList",
      IP: "ip",
      IP_LIST: "ipList",
      NUMERIC: "numeric",
      NUMERIC_LIST: "numericList",
      STRING: "string",
      STRING_LIST: "stringList"
    };
    var AccessKeyFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.SecretAccessKey && { SecretAccessKey: import_smithy_client28.SENSITIVE_STRING }
    }), "AccessKeyFilterSensitiveLog");
    var ChangePasswordRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.OldPassword && { OldPassword: import_smithy_client28.SENSITIVE_STRING },
      ...obj.NewPassword && { NewPassword: import_smithy_client28.SENSITIVE_STRING }
    }), "ChangePasswordRequestFilterSensitiveLog");
    var CreateAccessKeyResponseFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.AccessKey && { AccessKey: AccessKeyFilterSensitiveLog(obj.AccessKey) }
    }), "CreateAccessKeyResponseFilterSensitiveLog");
    var CreateLoginProfileRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Password && { Password: import_smithy_client28.SENSITIVE_STRING }
    }), "CreateLoginProfileRequestFilterSensitiveLog");
    var CreateSAMLProviderRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.AddPrivateKey && { AddPrivateKey: import_smithy_client28.SENSITIVE_STRING }
    }), "CreateSAMLProviderRequestFilterSensitiveLog");
    var ServiceSpecificCredentialFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.ServicePassword && { ServicePassword: import_smithy_client28.SENSITIVE_STRING },
      ...obj.ServiceCredentialSecret && { ServiceCredentialSecret: import_smithy_client28.SENSITIVE_STRING }
    }), "ServiceSpecificCredentialFilterSensitiveLog");
    var CreateServiceSpecificCredentialResponseFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.ServiceSpecificCredential && {
        ServiceSpecificCredential: ServiceSpecificCredentialFilterSensitiveLog(obj.ServiceSpecificCredential)
      }
    }), "CreateServiceSpecificCredentialResponseFilterSensitiveLog");
    var VirtualMFADeviceFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Base32StringSeed && { Base32StringSeed: import_smithy_client28.SENSITIVE_STRING },
      ...obj.QRCodePNG && { QRCodePNG: import_smithy_client28.SENSITIVE_STRING }
    }), "VirtualMFADeviceFilterSensitiveLog");
    var CreateVirtualMFADeviceResponseFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.VirtualMFADevice && { VirtualMFADevice: VirtualMFADeviceFilterSensitiveLog(obj.VirtualMFADevice) }
    }), "CreateVirtualMFADeviceResponseFilterSensitiveLog");
    var ListVirtualMFADevicesResponseFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.VirtualMFADevices && {
        VirtualMFADevices: obj.VirtualMFADevices.map((item) => VirtualMFADeviceFilterSensitiveLog(item))
      }
    }), "ListVirtualMFADevicesResponseFilterSensitiveLog");
    var ResetServiceSpecificCredentialResponseFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.ServiceSpecificCredential && {
        ServiceSpecificCredential: ServiceSpecificCredentialFilterSensitiveLog(obj.ServiceSpecificCredential)
      }
    }), "ResetServiceSpecificCredentialResponseFilterSensitiveLog");
    var PolicyEvaluationDecisionType = {
      ALLOWED: "allowed",
      EXPLICIT_DENY: "explicitDeny",
      IMPLICIT_DENY: "implicitDeny"
    };
    var PolicySourceType = {
      AWS_MANAGED: "aws-managed",
      GROUP: "group",
      NONE: "none",
      RESOURCE: "resource",
      ROLE: "role",
      USER: "user",
      USER_MANAGED: "user-managed"
    };
    var KeyPairMismatchException = class _KeyPairMismatchException extends IAMServiceException {
      static {
        __name(this, "_KeyPairMismatchException");
      }
      static {
        __name2(this, "KeyPairMismatchException");
      }
      name = "KeyPairMismatchException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "KeyPairMismatchException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _KeyPairMismatchException.prototype);
      }
    };
    var MalformedCertificateException = class _MalformedCertificateException extends IAMServiceException {
      static {
        __name(this, "_MalformedCertificateException");
      }
      static {
        __name2(this, "MalformedCertificateException");
      }
      name = "MalformedCertificateException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "MalformedCertificateException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _MalformedCertificateException.prototype);
      }
    };
    var DuplicateCertificateException = class _DuplicateCertificateException extends IAMServiceException {
      static {
        __name(this, "_DuplicateCertificateException");
      }
      static {
        __name2(this, "DuplicateCertificateException");
      }
      name = "DuplicateCertificateException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "DuplicateCertificateException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _DuplicateCertificateException.prototype);
      }
    };
    var InvalidCertificateException = class _InvalidCertificateException extends IAMServiceException {
      static {
        __name(this, "_InvalidCertificateException");
      }
      static {
        __name2(this, "InvalidCertificateException");
      }
      name = "InvalidCertificateException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidCertificateException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidCertificateException.prototype);
      }
    };
    var DuplicateSSHPublicKeyException = class _DuplicateSSHPublicKeyException extends IAMServiceException {
      static {
        __name(this, "_DuplicateSSHPublicKeyException");
      }
      static {
        __name2(this, "DuplicateSSHPublicKeyException");
      }
      name = "DuplicateSSHPublicKeyException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "DuplicateSSHPublicKeyException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _DuplicateSSHPublicKeyException.prototype);
      }
    };
    var InvalidPublicKeyException = class _InvalidPublicKeyException extends IAMServiceException {
      static {
        __name(this, "_InvalidPublicKeyException");
      }
      static {
        __name2(this, "InvalidPublicKeyException");
      }
      name = "InvalidPublicKeyException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidPublicKeyException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidPublicKeyException.prototype);
      }
    };
    var UpdateLoginProfileRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Password && { Password: import_smithy_client28.SENSITIVE_STRING }
    }), "UpdateLoginProfileRequestFilterSensitiveLog");
    var UpdateSAMLProviderRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.AddPrivateKey && { AddPrivateKey: import_smithy_client28.SENSITIVE_STRING }
    }), "UpdateSAMLProviderRequestFilterSensitiveLog");
    var UploadServerCertificateRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.PrivateKey && { PrivateKey: import_smithy_client28.SENSITIVE_STRING }
    }), "UploadServerCertificateRequestFilterSensitiveLog");
    var se_AddClientIDToOpenIDConnectProviderCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_AddClientIDToOpenIDConnectProviderRequest(input, context),
        [_A2]: _ACIDTOIDCP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AddClientIDToOpenIDConnectProviderCommand");
    var se_AddRoleToInstanceProfileCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_AddRoleToInstanceProfileRequest(input, context),
        [_A2]: _ARTIP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AddRoleToInstanceProfileCommand");
    var se_AddUserToGroupCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_AddUserToGroupRequest(input, context),
        [_A2]: _AUTG,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AddUserToGroupCommand");
    var se_AttachGroupPolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_AttachGroupPolicyRequest(input, context),
        [_A2]: _AGP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AttachGroupPolicyCommand");
    var se_AttachRolePolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_AttachRolePolicyRequest(input, context),
        [_A2]: _ARP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AttachRolePolicyCommand");
    var se_AttachUserPolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_AttachUserPolicyRequest(input, context),
        [_A2]: _AUP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AttachUserPolicyCommand");
    var se_ChangePasswordCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ChangePasswordRequest(input, context),
        [_A2]: _CP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ChangePasswordCommand");
    var se_CreateAccessKeyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateAccessKeyRequest(input, context),
        [_A2]: _CAK,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateAccessKeyCommand");
    var se_CreateAccountAliasCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateAccountAliasRequest(input, context),
        [_A2]: _CAA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateAccountAliasCommand");
    var se_CreateGroupCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateGroupRequest(input, context),
        [_A2]: _CG,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateGroupCommand");
    var se_CreateInstanceProfileCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateInstanceProfileRequest(input, context),
        [_A2]: _CIP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateInstanceProfileCommand");
    var se_CreateLoginProfileCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateLoginProfileRequest(input, context),
        [_A2]: _CLP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateLoginProfileCommand");
    var se_CreateOpenIDConnectProviderCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateOpenIDConnectProviderRequest(input, context),
        [_A2]: _COIDCP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateOpenIDConnectProviderCommand");
    var se_CreatePolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreatePolicyRequest(input, context),
        [_A2]: _CPr,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreatePolicyCommand");
    var se_CreatePolicyVersionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreatePolicyVersionRequest(input, context),
        [_A2]: _CPV,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreatePolicyVersionCommand");
    var se_CreateRoleCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateRoleRequest(input, context),
        [_A2]: _CR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateRoleCommand");
    var se_CreateSAMLProviderCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateSAMLProviderRequest(input, context),
        [_A2]: _CSAMLP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateSAMLProviderCommand");
    var se_CreateServiceLinkedRoleCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateServiceLinkedRoleRequest(input, context),
        [_A2]: _CSLR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateServiceLinkedRoleCommand");
    var se_CreateServiceSpecificCredentialCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateServiceSpecificCredentialRequest(input, context),
        [_A2]: _CSSC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateServiceSpecificCredentialCommand");
    var se_CreateUserCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateUserRequest(input, context),
        [_A2]: _CU,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateUserCommand");
    var se_CreateVirtualMFADeviceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_CreateVirtualMFADeviceRequest(input, context),
        [_A2]: _CVMFAD,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateVirtualMFADeviceCommand");
    var se_DeactivateMFADeviceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeactivateMFADeviceRequest(input, context),
        [_A2]: _DMFAD,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeactivateMFADeviceCommand");
    var se_DeleteAccessKeyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteAccessKeyRequest(input, context),
        [_A2]: _DAK,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteAccessKeyCommand");
    var se_DeleteAccountAliasCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteAccountAliasRequest(input, context),
        [_A2]: _DAA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteAccountAliasCommand");
    var se_DeleteAccountPasswordPolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      const body = buildFormUrlencodedString2({
        [_A2]: _DAPP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteAccountPasswordPolicyCommand");
    var se_DeleteGroupCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteGroupRequest(input, context),
        [_A2]: _DG,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteGroupCommand");
    var se_DeleteGroupPolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteGroupPolicyRequest(input, context),
        [_A2]: _DGP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteGroupPolicyCommand");
    var se_DeleteInstanceProfileCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteInstanceProfileRequest(input, context),
        [_A2]: _DIP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteInstanceProfileCommand");
    var se_DeleteLoginProfileCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteLoginProfileRequest(input, context),
        [_A2]: _DLP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteLoginProfileCommand");
    var se_DeleteOpenIDConnectProviderCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteOpenIDConnectProviderRequest(input, context),
        [_A2]: _DOIDCP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteOpenIDConnectProviderCommand");
    var se_DeletePolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeletePolicyRequest(input, context),
        [_A2]: _DP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeletePolicyCommand");
    var se_DeletePolicyVersionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeletePolicyVersionRequest(input, context),
        [_A2]: _DPV,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeletePolicyVersionCommand");
    var se_DeleteRoleCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteRoleRequest(input, context),
        [_A2]: _DR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteRoleCommand");
    var se_DeleteRolePermissionsBoundaryCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteRolePermissionsBoundaryRequest(input, context),
        [_A2]: _DRPB,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteRolePermissionsBoundaryCommand");
    var se_DeleteRolePolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteRolePolicyRequest(input, context),
        [_A2]: _DRP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteRolePolicyCommand");
    var se_DeleteSAMLProviderCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteSAMLProviderRequest(input, context),
        [_A2]: _DSAMLP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteSAMLProviderCommand");
    var se_DeleteServerCertificateCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteServerCertificateRequest(input, context),
        [_A2]: _DSC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteServerCertificateCommand");
    var se_DeleteServiceLinkedRoleCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteServiceLinkedRoleRequest(input, context),
        [_A2]: _DSLR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteServiceLinkedRoleCommand");
    var se_DeleteServiceSpecificCredentialCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteServiceSpecificCredentialRequest(input, context),
        [_A2]: _DSSC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteServiceSpecificCredentialCommand");
    var se_DeleteSigningCertificateCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteSigningCertificateRequest(input, context),
        [_A2]: _DSCe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteSigningCertificateCommand");
    var se_DeleteSSHPublicKeyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteSSHPublicKeyRequest(input, context),
        [_A2]: _DSSHPK,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteSSHPublicKeyCommand");
    var se_DeleteUserCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteUserRequest(input, context),
        [_A2]: _DU,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteUserCommand");
    var se_DeleteUserPermissionsBoundaryCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteUserPermissionsBoundaryRequest(input, context),
        [_A2]: _DUPB,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteUserPermissionsBoundaryCommand");
    var se_DeleteUserPolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteUserPolicyRequest(input, context),
        [_A2]: _DUP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteUserPolicyCommand");
    var se_DeleteVirtualMFADeviceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DeleteVirtualMFADeviceRequest(input, context),
        [_A2]: _DVMFAD,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteVirtualMFADeviceCommand");
    var se_DetachGroupPolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DetachGroupPolicyRequest(input, context),
        [_A2]: _DGPe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DetachGroupPolicyCommand");
    var se_DetachRolePolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DetachRolePolicyRequest(input, context),
        [_A2]: _DRPe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DetachRolePolicyCommand");
    var se_DetachUserPolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DetachUserPolicyRequest(input, context),
        [_A2]: _DUPe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DetachUserPolicyCommand");
    var se_DisableOrganizationsRootCredentialsManagementCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DisableOrganizationsRootCredentialsManagementRequest(input, context),
        [_A2]: _DORCM,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DisableOrganizationsRootCredentialsManagementCommand");
    var se_DisableOrganizationsRootSessionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_DisableOrganizationsRootSessionsRequest(input, context),
        [_A2]: _DORS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DisableOrganizationsRootSessionsCommand");
    var se_EnableMFADeviceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_EnableMFADeviceRequest(input, context),
        [_A2]: _EMFAD,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_EnableMFADeviceCommand");
    var se_EnableOrganizationsRootCredentialsManagementCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_EnableOrganizationsRootCredentialsManagementRequest(input, context),
        [_A2]: _EORCM,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_EnableOrganizationsRootCredentialsManagementCommand");
    var se_EnableOrganizationsRootSessionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_EnableOrganizationsRootSessionsRequest(input, context),
        [_A2]: _EORS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_EnableOrganizationsRootSessionsCommand");
    var se_GenerateCredentialReportCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      const body = buildFormUrlencodedString2({
        [_A2]: _GCR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GenerateCredentialReportCommand");
    var se_GenerateOrganizationsAccessReportCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GenerateOrganizationsAccessReportRequest(input, context),
        [_A2]: _GOAR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GenerateOrganizationsAccessReportCommand");
    var se_GenerateServiceLastAccessedDetailsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GenerateServiceLastAccessedDetailsRequest(input, context),
        [_A2]: _GSLAD,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GenerateServiceLastAccessedDetailsCommand");
    var se_GetAccessKeyLastUsedCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetAccessKeyLastUsedRequest(input, context),
        [_A2]: _GAKLU,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetAccessKeyLastUsedCommand");
    var se_GetAccountAuthorizationDetailsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetAccountAuthorizationDetailsRequest(input, context),
        [_A2]: _GAAD,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetAccountAuthorizationDetailsCommand");
    var se_GetAccountPasswordPolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      const body = buildFormUrlencodedString2({
        [_A2]: _GAPP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetAccountPasswordPolicyCommand");
    var se_GetAccountSummaryCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      const body = buildFormUrlencodedString2({
        [_A2]: _GAS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetAccountSummaryCommand");
    var se_GetContextKeysForCustomPolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetContextKeysForCustomPolicyRequest(input, context),
        [_A2]: _GCKFCP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetContextKeysForCustomPolicyCommand");
    var se_GetContextKeysForPrincipalPolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetContextKeysForPrincipalPolicyRequest(input, context),
        [_A2]: _GCKFPP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetContextKeysForPrincipalPolicyCommand");
    var se_GetCredentialReportCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      const body = buildFormUrlencodedString2({
        [_A2]: _GCRe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetCredentialReportCommand");
    var se_GetGroupCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetGroupRequest(input, context),
        [_A2]: _GG,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetGroupCommand");
    var se_GetGroupPolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetGroupPolicyRequest(input, context),
        [_A2]: _GGP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetGroupPolicyCommand");
    var se_GetInstanceProfileCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetInstanceProfileRequest(input, context),
        [_A2]: _GIP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetInstanceProfileCommand");
    var se_GetLoginProfileCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetLoginProfileRequest(input, context),
        [_A2]: _GLP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetLoginProfileCommand");
    var se_GetMFADeviceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetMFADeviceRequest(input, context),
        [_A2]: _GMFAD,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetMFADeviceCommand");
    var se_GetOpenIDConnectProviderCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetOpenIDConnectProviderRequest(input, context),
        [_A2]: _GOIDCP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetOpenIDConnectProviderCommand");
    var se_GetOrganizationsAccessReportCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetOrganizationsAccessReportRequest(input, context),
        [_A2]: _GOARe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetOrganizationsAccessReportCommand");
    var se_GetPolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetPolicyRequest(input, context),
        [_A2]: _GP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetPolicyCommand");
    var se_GetPolicyVersionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetPolicyVersionRequest(input, context),
        [_A2]: _GPV,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetPolicyVersionCommand");
    var se_GetRoleCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetRoleRequest(input, context),
        [_A2]: _GR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetRoleCommand");
    var se_GetRolePolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetRolePolicyRequest(input, context),
        [_A2]: _GRP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetRolePolicyCommand");
    var se_GetSAMLProviderCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetSAMLProviderRequest(input, context),
        [_A2]: _GSAMLP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetSAMLProviderCommand");
    var se_GetServerCertificateCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetServerCertificateRequest(input, context),
        [_A2]: _GSC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetServerCertificateCommand");
    var se_GetServiceLastAccessedDetailsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetServiceLastAccessedDetailsRequest(input, context),
        [_A2]: _GSLADe,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetServiceLastAccessedDetailsCommand");
    var se_GetServiceLastAccessedDetailsWithEntitiesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetServiceLastAccessedDetailsWithEntitiesRequest(input, context),
        [_A2]: _GSLADWE,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetServiceLastAccessedDetailsWithEntitiesCommand");
    var se_GetServiceLinkedRoleDeletionStatusCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetServiceLinkedRoleDeletionStatusRequest(input, context),
        [_A2]: _GSLRDS,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetServiceLinkedRoleDeletionStatusCommand");
    var se_GetSSHPublicKeyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetSSHPublicKeyRequest(input, context),
        [_A2]: _GSSHPK,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetSSHPublicKeyCommand");
    var se_GetUserCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetUserRequest(input, context),
        [_A2]: _GU,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetUserCommand");
    var se_GetUserPolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_GetUserPolicyRequest(input, context),
        [_A2]: _GUP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetUserPolicyCommand");
    var se_ListAccessKeysCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListAccessKeysRequest(input, context),
        [_A2]: _LAK,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListAccessKeysCommand");
    var se_ListAccountAliasesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListAccountAliasesRequest(input, context),
        [_A2]: _LAA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListAccountAliasesCommand");
    var se_ListAttachedGroupPoliciesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListAttachedGroupPoliciesRequest(input, context),
        [_A2]: _LAGP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListAttachedGroupPoliciesCommand");
    var se_ListAttachedRolePoliciesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListAttachedRolePoliciesRequest(input, context),
        [_A2]: _LARP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListAttachedRolePoliciesCommand");
    var se_ListAttachedUserPoliciesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListAttachedUserPoliciesRequest(input, context),
        [_A2]: _LAUP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListAttachedUserPoliciesCommand");
    var se_ListEntitiesForPolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListEntitiesForPolicyRequest(input, context),
        [_A2]: _LEFP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListEntitiesForPolicyCommand");
    var se_ListGroupPoliciesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListGroupPoliciesRequest(input, context),
        [_A2]: _LGP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListGroupPoliciesCommand");
    var se_ListGroupsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListGroupsRequest(input, context),
        [_A2]: _LG,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListGroupsCommand");
    var se_ListGroupsForUserCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListGroupsForUserRequest(input, context),
        [_A2]: _LGFU,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListGroupsForUserCommand");
    var se_ListInstanceProfilesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListInstanceProfilesRequest(input, context),
        [_A2]: _LIP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListInstanceProfilesCommand");
    var se_ListInstanceProfilesForRoleCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListInstanceProfilesForRoleRequest(input, context),
        [_A2]: _LIPFR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListInstanceProfilesForRoleCommand");
    var se_ListInstanceProfileTagsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListInstanceProfileTagsRequest(input, context),
        [_A2]: _LIPT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListInstanceProfileTagsCommand");
    var se_ListMFADevicesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListMFADevicesRequest(input, context),
        [_A2]: _LMFAD,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListMFADevicesCommand");
    var se_ListMFADeviceTagsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListMFADeviceTagsRequest(input, context),
        [_A2]: _LMFADT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListMFADeviceTagsCommand");
    var se_ListOpenIDConnectProvidersCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListOpenIDConnectProvidersRequest(input, context),
        [_A2]: _LOIDCP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListOpenIDConnectProvidersCommand");
    var se_ListOpenIDConnectProviderTagsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListOpenIDConnectProviderTagsRequest(input, context),
        [_A2]: _LOIDCPT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListOpenIDConnectProviderTagsCommand");
    var se_ListOrganizationsFeaturesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListOrganizationsFeaturesRequest(input, context),
        [_A2]: _LOF,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListOrganizationsFeaturesCommand");
    var se_ListPoliciesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListPoliciesRequest(input, context),
        [_A2]: _LP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListPoliciesCommand");
    var se_ListPoliciesGrantingServiceAccessCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListPoliciesGrantingServiceAccessRequest(input, context),
        [_A2]: _LPGSA,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListPoliciesGrantingServiceAccessCommand");
    var se_ListPolicyTagsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListPolicyTagsRequest(input, context),
        [_A2]: _LPT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListPolicyTagsCommand");
    var se_ListPolicyVersionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListPolicyVersionsRequest(input, context),
        [_A2]: _LPV,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListPolicyVersionsCommand");
    var se_ListRolePoliciesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListRolePoliciesRequest(input, context),
        [_A2]: _LRP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListRolePoliciesCommand");
    var se_ListRolesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListRolesRequest(input, context),
        [_A2]: _LR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListRolesCommand");
    var se_ListRoleTagsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListRoleTagsRequest(input, context),
        [_A2]: _LRT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListRoleTagsCommand");
    var se_ListSAMLProvidersCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListSAMLProvidersRequest(input, context),
        [_A2]: _LSAMLP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListSAMLProvidersCommand");
    var se_ListSAMLProviderTagsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListSAMLProviderTagsRequest(input, context),
        [_A2]: _LSAMLPT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListSAMLProviderTagsCommand");
    var se_ListServerCertificatesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListServerCertificatesRequest(input, context),
        [_A2]: _LSC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListServerCertificatesCommand");
    var se_ListServerCertificateTagsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListServerCertificateTagsRequest(input, context),
        [_A2]: _LSCT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListServerCertificateTagsCommand");
    var se_ListServiceSpecificCredentialsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListServiceSpecificCredentialsRequest(input, context),
        [_A2]: _LSSC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListServiceSpecificCredentialsCommand");
    var se_ListSigningCertificatesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListSigningCertificatesRequest(input, context),
        [_A2]: _LSCi,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListSigningCertificatesCommand");
    var se_ListSSHPublicKeysCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListSSHPublicKeysRequest(input, context),
        [_A2]: _LSSHPK,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListSSHPublicKeysCommand");
    var se_ListUserPoliciesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListUserPoliciesRequest(input, context),
        [_A2]: _LUP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListUserPoliciesCommand");
    var se_ListUsersCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListUsersRequest(input, context),
        [_A2]: _LU,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListUsersCommand");
    var se_ListUserTagsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListUserTagsRequest(input, context),
        [_A2]: _LUT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListUserTagsCommand");
    var se_ListVirtualMFADevicesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ListVirtualMFADevicesRequest(input, context),
        [_A2]: _LVMFAD,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListVirtualMFADevicesCommand");
    var se_PutGroupPolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_PutGroupPolicyRequest(input, context),
        [_A2]: _PGP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_PutGroupPolicyCommand");
    var se_PutRolePermissionsBoundaryCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_PutRolePermissionsBoundaryRequest(input, context),
        [_A2]: _PRPB,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_PutRolePermissionsBoundaryCommand");
    var se_PutRolePolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_PutRolePolicyRequest(input, context),
        [_A2]: _PRP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_PutRolePolicyCommand");
    var se_PutUserPermissionsBoundaryCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_PutUserPermissionsBoundaryRequest(input, context),
        [_A2]: _PUPB,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_PutUserPermissionsBoundaryCommand");
    var se_PutUserPolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_PutUserPolicyRequest(input, context),
        [_A2]: _PUP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_PutUserPolicyCommand");
    var se_RemoveClientIDFromOpenIDConnectProviderCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_RemoveClientIDFromOpenIDConnectProviderRequest(input, context),
        [_A2]: _RCIDFOIDCP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_RemoveClientIDFromOpenIDConnectProviderCommand");
    var se_RemoveRoleFromInstanceProfileCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_RemoveRoleFromInstanceProfileRequest(input, context),
        [_A2]: _RRFIP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_RemoveRoleFromInstanceProfileCommand");
    var se_RemoveUserFromGroupCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_RemoveUserFromGroupRequest(input, context),
        [_A2]: _RUFG,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_RemoveUserFromGroupCommand");
    var se_ResetServiceSpecificCredentialCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ResetServiceSpecificCredentialRequest(input, context),
        [_A2]: _RSSC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ResetServiceSpecificCredentialCommand");
    var se_ResyncMFADeviceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_ResyncMFADeviceRequest(input, context),
        [_A2]: _RMFAD,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ResyncMFADeviceCommand");
    var se_SetDefaultPolicyVersionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_SetDefaultPolicyVersionRequest(input, context),
        [_A2]: _SDPV,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_SetDefaultPolicyVersionCommand");
    var se_SetSecurityTokenServicePreferencesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_SetSecurityTokenServicePreferencesRequest(input, context),
        [_A2]: _SSTSP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_SetSecurityTokenServicePreferencesCommand");
    var se_SimulateCustomPolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_SimulateCustomPolicyRequest(input, context),
        [_A2]: _SCP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_SimulateCustomPolicyCommand");
    var se_SimulatePrincipalPolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_SimulatePrincipalPolicyRequest(input, context),
        [_A2]: _SPP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_SimulatePrincipalPolicyCommand");
    var se_TagInstanceProfileCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_TagInstanceProfileRequest(input, context),
        [_A2]: _TIP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_TagInstanceProfileCommand");
    var se_TagMFADeviceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_TagMFADeviceRequest(input, context),
        [_A2]: _TMFAD,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_TagMFADeviceCommand");
    var se_TagOpenIDConnectProviderCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_TagOpenIDConnectProviderRequest(input, context),
        [_A2]: _TOIDCP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_TagOpenIDConnectProviderCommand");
    var se_TagPolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_TagPolicyRequest(input, context),
        [_A2]: _TP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_TagPolicyCommand");
    var se_TagRoleCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_TagRoleRequest(input, context),
        [_A2]: _TR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_TagRoleCommand");
    var se_TagSAMLProviderCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_TagSAMLProviderRequest(input, context),
        [_A2]: _TSAMLP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_TagSAMLProviderCommand");
    var se_TagServerCertificateCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_TagServerCertificateRequest(input, context),
        [_A2]: _TSC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_TagServerCertificateCommand");
    var se_TagUserCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_TagUserRequest(input, context),
        [_A2]: _TU,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_TagUserCommand");
    var se_UntagInstanceProfileCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_UntagInstanceProfileRequest(input, context),
        [_A2]: _UIP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UntagInstanceProfileCommand");
    var se_UntagMFADeviceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_UntagMFADeviceRequest(input, context),
        [_A2]: _UMFAD,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UntagMFADeviceCommand");
    var se_UntagOpenIDConnectProviderCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_UntagOpenIDConnectProviderRequest(input, context),
        [_A2]: _UOIDCP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UntagOpenIDConnectProviderCommand");
    var se_UntagPolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_UntagPolicyRequest(input, context),
        [_A2]: _UP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UntagPolicyCommand");
    var se_UntagRoleCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_UntagRoleRequest(input, context),
        [_A2]: _UR,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UntagRoleCommand");
    var se_UntagSAMLProviderCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_UntagSAMLProviderRequest(input, context),
        [_A2]: _USAMLP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UntagSAMLProviderCommand");
    var se_UntagServerCertificateCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_UntagServerCertificateRequest(input, context),
        [_A2]: _USC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UntagServerCertificateCommand");
    var se_UntagUserCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_UntagUserRequest(input, context),
        [_A2]: _UU,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UntagUserCommand");
    var se_UpdateAccessKeyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_UpdateAccessKeyRequest(input, context),
        [_A2]: _UAK,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateAccessKeyCommand");
    var se_UpdateAccountPasswordPolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_UpdateAccountPasswordPolicyRequest(input, context),
        [_A2]: _UAPP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateAccountPasswordPolicyCommand");
    var se_UpdateAssumeRolePolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_UpdateAssumeRolePolicyRequest(input, context),
        [_A2]: _UARP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateAssumeRolePolicyCommand");
    var se_UpdateGroupCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_UpdateGroupRequest(input, context),
        [_A2]: _UG,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateGroupCommand");
    var se_UpdateLoginProfileCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_UpdateLoginProfileRequest(input, context),
        [_A2]: _ULP,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateLoginProfileCommand");
    var se_UpdateOpenIDConnectProviderThumbprintCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_UpdateOpenIDConnectProviderThumbprintRequest(input, context),
        [_A2]: _UOIDCPT,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateOpenIDConnectProviderThumbprintCommand");
    var se_UpdateRoleCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_UpdateRoleRequest(input, context),
        [_A2]: _URp,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateRoleCommand");
    var se_UpdateRoleDescriptionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_UpdateRoleDescriptionRequest(input, context),
        [_A2]: _URD,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateRoleDescriptionCommand");
    var se_UpdateSAMLProviderCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_UpdateSAMLProviderRequest(input, context),
        [_A2]: _USAMLPp,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateSAMLProviderCommand");
    var se_UpdateServerCertificateCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_UpdateServerCertificateRequest(input, context),
        [_A2]: _USCp,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateServerCertificateCommand");
    var se_UpdateServiceSpecificCredentialCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_UpdateServiceSpecificCredentialRequest(input, context),
        [_A2]: _USSC,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateServiceSpecificCredentialCommand");
    var se_UpdateSigningCertificateCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_UpdateSigningCertificateRequest(input, context),
        [_A2]: _USCpd,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateSigningCertificateCommand");
    var se_UpdateSSHPublicKeyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_UpdateSSHPublicKeyRequest(input, context),
        [_A2]: _USSHPK,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateSSHPublicKeyCommand");
    var se_UpdateUserCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_UpdateUserRequest(input, context),
        [_A2]: _UUp,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateUserCommand");
    var se_UploadServerCertificateCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_UploadServerCertificateRequest(input, context),
        [_A2]: _USCpl,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UploadServerCertificateCommand");
    var se_UploadSigningCertificateCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_UploadSigningCertificateRequest(input, context),
        [_A2]: _USCplo,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UploadSigningCertificateCommand");
    var se_UploadSSHPublicKeyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = SHARED_HEADERS2;
      let body;
      body = buildFormUrlencodedString2({
        ...se_UploadSSHPublicKeyRequest(input, context),
        [_A2]: _USSHPKp,
        [_V2]: _3
      });
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UploadSSHPublicKeyCommand");
    var de_AddClientIDToOpenIDConnectProviderCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_AddClientIDToOpenIDConnectProviderCommand");
    var de_AddRoleToInstanceProfileCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_AddRoleToInstanceProfileCommand");
    var de_AddUserToGroupCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_AddUserToGroupCommand");
    var de_AttachGroupPolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_AttachGroupPolicyCommand");
    var de_AttachRolePolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_AttachRolePolicyCommand");
    var de_AttachUserPolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_AttachUserPolicyCommand");
    var de_ChangePasswordCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_ChangePasswordCommand");
    var de_CreateAccessKeyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateAccessKeyResponse(data3.CreateAccessKeyResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateAccessKeyCommand");
    var de_CreateAccountAliasCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_CreateAccountAliasCommand");
    var de_CreateGroupCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateGroupResponse(data3.CreateGroupResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateGroupCommand");
    var de_CreateInstanceProfileCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateInstanceProfileResponse(data3.CreateInstanceProfileResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateInstanceProfileCommand");
    var de_CreateLoginProfileCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateLoginProfileResponse(data3.CreateLoginProfileResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateLoginProfileCommand");
    var de_CreateOpenIDConnectProviderCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateOpenIDConnectProviderResponse(data3.CreateOpenIDConnectProviderResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateOpenIDConnectProviderCommand");
    var de_CreatePolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreatePolicyResponse(data3.CreatePolicyResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreatePolicyCommand");
    var de_CreatePolicyVersionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreatePolicyVersionResponse(data3.CreatePolicyVersionResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreatePolicyVersionCommand");
    var de_CreateRoleCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateRoleResponse(data3.CreateRoleResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateRoleCommand");
    var de_CreateSAMLProviderCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateSAMLProviderResponse(data3.CreateSAMLProviderResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateSAMLProviderCommand");
    var de_CreateServiceLinkedRoleCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateServiceLinkedRoleResponse(data3.CreateServiceLinkedRoleResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateServiceLinkedRoleCommand");
    var de_CreateServiceSpecificCredentialCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateServiceSpecificCredentialResponse(data3.CreateServiceSpecificCredentialResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateServiceSpecificCredentialCommand");
    var de_CreateUserCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateUserResponse(data3.CreateUserResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateUserCommand");
    var de_CreateVirtualMFADeviceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_CreateVirtualMFADeviceResponse(data3.CreateVirtualMFADeviceResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateVirtualMFADeviceCommand");
    var de_DeactivateMFADeviceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeactivateMFADeviceCommand");
    var de_DeleteAccessKeyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeleteAccessKeyCommand");
    var de_DeleteAccountAliasCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeleteAccountAliasCommand");
    var de_DeleteAccountPasswordPolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeleteAccountPasswordPolicyCommand");
    var de_DeleteGroupCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeleteGroupCommand");
    var de_DeleteGroupPolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeleteGroupPolicyCommand");
    var de_DeleteInstanceProfileCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeleteInstanceProfileCommand");
    var de_DeleteLoginProfileCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeleteLoginProfileCommand");
    var de_DeleteOpenIDConnectProviderCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeleteOpenIDConnectProviderCommand");
    var de_DeletePolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeletePolicyCommand");
    var de_DeletePolicyVersionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeletePolicyVersionCommand");
    var de_DeleteRoleCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeleteRoleCommand");
    var de_DeleteRolePermissionsBoundaryCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeleteRolePermissionsBoundaryCommand");
    var de_DeleteRolePolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeleteRolePolicyCommand");
    var de_DeleteSAMLProviderCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeleteSAMLProviderCommand");
    var de_DeleteServerCertificateCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeleteServerCertificateCommand");
    var de_DeleteServiceLinkedRoleCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DeleteServiceLinkedRoleResponse(data3.DeleteServiceLinkedRoleResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteServiceLinkedRoleCommand");
    var de_DeleteServiceSpecificCredentialCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeleteServiceSpecificCredentialCommand");
    var de_DeleteSigningCertificateCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeleteSigningCertificateCommand");
    var de_DeleteSSHPublicKeyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeleteSSHPublicKeyCommand");
    var de_DeleteUserCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeleteUserCommand");
    var de_DeleteUserPermissionsBoundaryCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeleteUserPermissionsBoundaryCommand");
    var de_DeleteUserPolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeleteUserPolicyCommand");
    var de_DeleteVirtualMFADeviceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeleteVirtualMFADeviceCommand");
    var de_DetachGroupPolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DetachGroupPolicyCommand");
    var de_DetachRolePolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DetachRolePolicyCommand");
    var de_DetachUserPolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DetachUserPolicyCommand");
    var de_DisableOrganizationsRootCredentialsManagementCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DisableOrganizationsRootCredentialsManagementResponse(
        data3.DisableOrganizationsRootCredentialsManagementResult,
        context
      );
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DisableOrganizationsRootCredentialsManagementCommand");
    var de_DisableOrganizationsRootSessionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_DisableOrganizationsRootSessionsResponse(data3.DisableOrganizationsRootSessionsResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DisableOrganizationsRootSessionsCommand");
    var de_EnableMFADeviceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_EnableMFADeviceCommand");
    var de_EnableOrganizationsRootCredentialsManagementCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_EnableOrganizationsRootCredentialsManagementResponse(
        data3.EnableOrganizationsRootCredentialsManagementResult,
        context
      );
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_EnableOrganizationsRootCredentialsManagementCommand");
    var de_EnableOrganizationsRootSessionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_EnableOrganizationsRootSessionsResponse(data3.EnableOrganizationsRootSessionsResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_EnableOrganizationsRootSessionsCommand");
    var de_GenerateCredentialReportCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GenerateCredentialReportResponse(data3.GenerateCredentialReportResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GenerateCredentialReportCommand");
    var de_GenerateOrganizationsAccessReportCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GenerateOrganizationsAccessReportResponse(data3.GenerateOrganizationsAccessReportResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GenerateOrganizationsAccessReportCommand");
    var de_GenerateServiceLastAccessedDetailsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GenerateServiceLastAccessedDetailsResponse(data3.GenerateServiceLastAccessedDetailsResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GenerateServiceLastAccessedDetailsCommand");
    var de_GetAccessKeyLastUsedCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetAccessKeyLastUsedResponse(data3.GetAccessKeyLastUsedResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetAccessKeyLastUsedCommand");
    var de_GetAccountAuthorizationDetailsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetAccountAuthorizationDetailsResponse(data3.GetAccountAuthorizationDetailsResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetAccountAuthorizationDetailsCommand");
    var de_GetAccountPasswordPolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetAccountPasswordPolicyResponse(data3.GetAccountPasswordPolicyResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetAccountPasswordPolicyCommand");
    var de_GetAccountSummaryCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetAccountSummaryResponse(data3.GetAccountSummaryResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetAccountSummaryCommand");
    var de_GetContextKeysForCustomPolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetContextKeysForPolicyResponse(data3.GetContextKeysForCustomPolicyResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetContextKeysForCustomPolicyCommand");
    var de_GetContextKeysForPrincipalPolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetContextKeysForPolicyResponse(data3.GetContextKeysForPrincipalPolicyResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetContextKeysForPrincipalPolicyCommand");
    var de_GetCredentialReportCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetCredentialReportResponse(data3.GetCredentialReportResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetCredentialReportCommand");
    var de_GetGroupCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetGroupResponse(data3.GetGroupResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetGroupCommand");
    var de_GetGroupPolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetGroupPolicyResponse(data3.GetGroupPolicyResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetGroupPolicyCommand");
    var de_GetInstanceProfileCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetInstanceProfileResponse(data3.GetInstanceProfileResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetInstanceProfileCommand");
    var de_GetLoginProfileCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetLoginProfileResponse(data3.GetLoginProfileResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetLoginProfileCommand");
    var de_GetMFADeviceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetMFADeviceResponse(data3.GetMFADeviceResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetMFADeviceCommand");
    var de_GetOpenIDConnectProviderCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetOpenIDConnectProviderResponse(data3.GetOpenIDConnectProviderResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetOpenIDConnectProviderCommand");
    var de_GetOrganizationsAccessReportCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetOrganizationsAccessReportResponse(data3.GetOrganizationsAccessReportResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetOrganizationsAccessReportCommand");
    var de_GetPolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetPolicyResponse(data3.GetPolicyResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetPolicyCommand");
    var de_GetPolicyVersionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetPolicyVersionResponse(data3.GetPolicyVersionResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetPolicyVersionCommand");
    var de_GetRoleCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetRoleResponse(data3.GetRoleResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetRoleCommand");
    var de_GetRolePolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetRolePolicyResponse(data3.GetRolePolicyResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetRolePolicyCommand");
    var de_GetSAMLProviderCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetSAMLProviderResponse(data3.GetSAMLProviderResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetSAMLProviderCommand");
    var de_GetServerCertificateCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetServerCertificateResponse(data3.GetServerCertificateResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetServerCertificateCommand");
    var de_GetServiceLastAccessedDetailsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetServiceLastAccessedDetailsResponse(data3.GetServiceLastAccessedDetailsResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetServiceLastAccessedDetailsCommand");
    var de_GetServiceLastAccessedDetailsWithEntitiesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetServiceLastAccessedDetailsWithEntitiesResponse(
        data3.GetServiceLastAccessedDetailsWithEntitiesResult,
        context
      );
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetServiceLastAccessedDetailsWithEntitiesCommand");
    var de_GetServiceLinkedRoleDeletionStatusCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetServiceLinkedRoleDeletionStatusResponse(data3.GetServiceLinkedRoleDeletionStatusResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetServiceLinkedRoleDeletionStatusCommand");
    var de_GetSSHPublicKeyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetSSHPublicKeyResponse(data3.GetSSHPublicKeyResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetSSHPublicKeyCommand");
    var de_GetUserCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetUserResponse(data3.GetUserResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetUserCommand");
    var de_GetUserPolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_GetUserPolicyResponse(data3.GetUserPolicyResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetUserPolicyCommand");
    var de_ListAccessKeysCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListAccessKeysResponse(data3.ListAccessKeysResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListAccessKeysCommand");
    var de_ListAccountAliasesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListAccountAliasesResponse(data3.ListAccountAliasesResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListAccountAliasesCommand");
    var de_ListAttachedGroupPoliciesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListAttachedGroupPoliciesResponse(data3.ListAttachedGroupPoliciesResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListAttachedGroupPoliciesCommand");
    var de_ListAttachedRolePoliciesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListAttachedRolePoliciesResponse(data3.ListAttachedRolePoliciesResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListAttachedRolePoliciesCommand");
    var de_ListAttachedUserPoliciesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListAttachedUserPoliciesResponse(data3.ListAttachedUserPoliciesResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListAttachedUserPoliciesCommand");
    var de_ListEntitiesForPolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListEntitiesForPolicyResponse(data3.ListEntitiesForPolicyResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListEntitiesForPolicyCommand");
    var de_ListGroupPoliciesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListGroupPoliciesResponse(data3.ListGroupPoliciesResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListGroupPoliciesCommand");
    var de_ListGroupsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListGroupsResponse(data3.ListGroupsResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListGroupsCommand");
    var de_ListGroupsForUserCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListGroupsForUserResponse(data3.ListGroupsForUserResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListGroupsForUserCommand");
    var de_ListInstanceProfilesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListInstanceProfilesResponse(data3.ListInstanceProfilesResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListInstanceProfilesCommand");
    var de_ListInstanceProfilesForRoleCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListInstanceProfilesForRoleResponse(data3.ListInstanceProfilesForRoleResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListInstanceProfilesForRoleCommand");
    var de_ListInstanceProfileTagsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListInstanceProfileTagsResponse(data3.ListInstanceProfileTagsResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListInstanceProfileTagsCommand");
    var de_ListMFADevicesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListMFADevicesResponse(data3.ListMFADevicesResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListMFADevicesCommand");
    var de_ListMFADeviceTagsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListMFADeviceTagsResponse(data3.ListMFADeviceTagsResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListMFADeviceTagsCommand");
    var de_ListOpenIDConnectProvidersCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListOpenIDConnectProvidersResponse(data3.ListOpenIDConnectProvidersResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListOpenIDConnectProvidersCommand");
    var de_ListOpenIDConnectProviderTagsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListOpenIDConnectProviderTagsResponse(data3.ListOpenIDConnectProviderTagsResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListOpenIDConnectProviderTagsCommand");
    var de_ListOrganizationsFeaturesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListOrganizationsFeaturesResponse(data3.ListOrganizationsFeaturesResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListOrganizationsFeaturesCommand");
    var de_ListPoliciesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListPoliciesResponse(data3.ListPoliciesResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListPoliciesCommand");
    var de_ListPoliciesGrantingServiceAccessCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListPoliciesGrantingServiceAccessResponse(data3.ListPoliciesGrantingServiceAccessResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListPoliciesGrantingServiceAccessCommand");
    var de_ListPolicyTagsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListPolicyTagsResponse(data3.ListPolicyTagsResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListPolicyTagsCommand");
    var de_ListPolicyVersionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListPolicyVersionsResponse(data3.ListPolicyVersionsResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListPolicyVersionsCommand");
    var de_ListRolePoliciesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListRolePoliciesResponse(data3.ListRolePoliciesResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListRolePoliciesCommand");
    var de_ListRolesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListRolesResponse(data3.ListRolesResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListRolesCommand");
    var de_ListRoleTagsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListRoleTagsResponse(data3.ListRoleTagsResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListRoleTagsCommand");
    var de_ListSAMLProvidersCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListSAMLProvidersResponse(data3.ListSAMLProvidersResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListSAMLProvidersCommand");
    var de_ListSAMLProviderTagsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListSAMLProviderTagsResponse(data3.ListSAMLProviderTagsResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListSAMLProviderTagsCommand");
    var de_ListServerCertificatesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListServerCertificatesResponse(data3.ListServerCertificatesResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListServerCertificatesCommand");
    var de_ListServerCertificateTagsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListServerCertificateTagsResponse(data3.ListServerCertificateTagsResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListServerCertificateTagsCommand");
    var de_ListServiceSpecificCredentialsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListServiceSpecificCredentialsResponse(data3.ListServiceSpecificCredentialsResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListServiceSpecificCredentialsCommand");
    var de_ListSigningCertificatesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListSigningCertificatesResponse(data3.ListSigningCertificatesResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListSigningCertificatesCommand");
    var de_ListSSHPublicKeysCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListSSHPublicKeysResponse(data3.ListSSHPublicKeysResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListSSHPublicKeysCommand");
    var de_ListUserPoliciesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListUserPoliciesResponse(data3.ListUserPoliciesResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListUserPoliciesCommand");
    var de_ListUsersCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListUsersResponse(data3.ListUsersResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListUsersCommand");
    var de_ListUserTagsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListUserTagsResponse(data3.ListUserTagsResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListUserTagsCommand");
    var de_ListVirtualMFADevicesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ListVirtualMFADevicesResponse(data3.ListVirtualMFADevicesResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListVirtualMFADevicesCommand");
    var de_PutGroupPolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_PutGroupPolicyCommand");
    var de_PutRolePermissionsBoundaryCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_PutRolePermissionsBoundaryCommand");
    var de_PutRolePolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_PutRolePolicyCommand");
    var de_PutUserPermissionsBoundaryCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_PutUserPermissionsBoundaryCommand");
    var de_PutUserPolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_PutUserPolicyCommand");
    var de_RemoveClientIDFromOpenIDConnectProviderCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_RemoveClientIDFromOpenIDConnectProviderCommand");
    var de_RemoveRoleFromInstanceProfileCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_RemoveRoleFromInstanceProfileCommand");
    var de_RemoveUserFromGroupCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_RemoveUserFromGroupCommand");
    var de_ResetServiceSpecificCredentialCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_ResetServiceSpecificCredentialResponse(data3.ResetServiceSpecificCredentialResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ResetServiceSpecificCredentialCommand");
    var de_ResyncMFADeviceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_ResyncMFADeviceCommand");
    var de_SetDefaultPolicyVersionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_SetDefaultPolicyVersionCommand");
    var de_SetSecurityTokenServicePreferencesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_SetSecurityTokenServicePreferencesCommand");
    var de_SimulateCustomPolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_SimulatePolicyResponse(data3.SimulateCustomPolicyResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_SimulateCustomPolicyCommand");
    var de_SimulatePrincipalPolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_SimulatePolicyResponse(data3.SimulatePrincipalPolicyResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_SimulatePrincipalPolicyCommand");
    var de_TagInstanceProfileCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_TagInstanceProfileCommand");
    var de_TagMFADeviceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_TagMFADeviceCommand");
    var de_TagOpenIDConnectProviderCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_TagOpenIDConnectProviderCommand");
    var de_TagPolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_TagPolicyCommand");
    var de_TagRoleCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_TagRoleCommand");
    var de_TagSAMLProviderCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_TagSAMLProviderCommand");
    var de_TagServerCertificateCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_TagServerCertificateCommand");
    var de_TagUserCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_TagUserCommand");
    var de_UntagInstanceProfileCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_UntagInstanceProfileCommand");
    var de_UntagMFADeviceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_UntagMFADeviceCommand");
    var de_UntagOpenIDConnectProviderCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_UntagOpenIDConnectProviderCommand");
    var de_UntagPolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_UntagPolicyCommand");
    var de_UntagRoleCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_UntagRoleCommand");
    var de_UntagSAMLProviderCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_UntagSAMLProviderCommand");
    var de_UntagServerCertificateCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_UntagServerCertificateCommand");
    var de_UntagUserCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_UntagUserCommand");
    var de_UpdateAccessKeyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_UpdateAccessKeyCommand");
    var de_UpdateAccountPasswordPolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_UpdateAccountPasswordPolicyCommand");
    var de_UpdateAssumeRolePolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_UpdateAssumeRolePolicyCommand");
    var de_UpdateGroupCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_UpdateGroupCommand");
    var de_UpdateLoginProfileCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_UpdateLoginProfileCommand");
    var de_UpdateOpenIDConnectProviderThumbprintCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_UpdateOpenIDConnectProviderThumbprintCommand");
    var de_UpdateRoleCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_UpdateRoleResponse(data3.UpdateRoleResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UpdateRoleCommand");
    var de_UpdateRoleDescriptionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_UpdateRoleDescriptionResponse(data3.UpdateRoleDescriptionResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UpdateRoleDescriptionCommand");
    var de_UpdateSAMLProviderCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_UpdateSAMLProviderResponse(data3.UpdateSAMLProviderResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UpdateSAMLProviderCommand");
    var de_UpdateServerCertificateCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_UpdateServerCertificateCommand");
    var de_UpdateServiceSpecificCredentialCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_UpdateServiceSpecificCredentialCommand");
    var de_UpdateSigningCertificateCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_UpdateSigningCertificateCommand");
    var de_UpdateSSHPublicKeyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_UpdateSSHPublicKeyCommand");
    var de_UpdateUserCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_UpdateUserCommand");
    var de_UploadServerCertificateCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_UploadServerCertificateResponse(data3.UploadServerCertificateResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UploadServerCertificateCommand");
    var de_UploadSigningCertificateCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_UploadSigningCertificateResponse(data3.UploadSigningCertificateResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UploadSigningCertificateCommand");
    var de_UploadSSHPublicKeyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseXmlBody)(output.body, context);
      let contents = {};
      contents = de_UploadSSHPublicKeyResponse(data3.UploadSSHPublicKeyResult, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UploadSSHPublicKeyCommand");
    var de_CommandError3 = /* @__PURE__ */ __name2(async (output, context) => {
      const parsedOutput = {
        ...output,
        body: await (0, import_core22.parseXmlErrorBody)(output.body, context)
      };
      const errorCode = loadQueryErrorCode2(output, parsedOutput.body);
      switch (errorCode) {
        case "InvalidInput":
        case "com.amazonaws.iam#InvalidInputException":
          throw await de_InvalidInputExceptionRes(parsedOutput, context);
        case "LimitExceeded":
        case "com.amazonaws.iam#LimitExceededException":
          throw await de_LimitExceededExceptionRes(parsedOutput, context);
        case "NoSuchEntity":
        case "com.amazonaws.iam#NoSuchEntityException":
          throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
        case "ServiceFailure":
        case "com.amazonaws.iam#ServiceFailureException":
          throw await de_ServiceFailureExceptionRes(parsedOutput, context);
        case "EntityAlreadyExists":
        case "com.amazonaws.iam#EntityAlreadyExistsException":
          throw await de_EntityAlreadyExistsExceptionRes(parsedOutput, context);
        case "UnmodifiableEntity":
        case "com.amazonaws.iam#UnmodifiableEntityException":
          throw await de_UnmodifiableEntityExceptionRes(parsedOutput, context);
        case "PolicyNotAttachable":
        case "com.amazonaws.iam#PolicyNotAttachableException":
          throw await de_PolicyNotAttachableExceptionRes(parsedOutput, context);
        case "EntityTemporarilyUnmodifiable":
        case "com.amazonaws.iam#EntityTemporarilyUnmodifiableException":
          throw await de_EntityTemporarilyUnmodifiableExceptionRes(parsedOutput, context);
        case "InvalidUserType":
        case "com.amazonaws.iam#InvalidUserTypeException":
          throw await de_InvalidUserTypeExceptionRes(parsedOutput, context);
        case "PasswordPolicyViolation":
        case "com.amazonaws.iam#PasswordPolicyViolationException":
          throw await de_PasswordPolicyViolationExceptionRes(parsedOutput, context);
        case "ConcurrentModification":
        case "com.amazonaws.iam#ConcurrentModificationException":
          throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
        case "OpenIdIdpCommunicationError":
        case "com.amazonaws.iam#OpenIdIdpCommunicationErrorException":
          throw await de_OpenIdIdpCommunicationErrorExceptionRes(parsedOutput, context);
        case "MalformedPolicyDocument":
        case "com.amazonaws.iam#MalformedPolicyDocumentException":
          throw await de_MalformedPolicyDocumentExceptionRes2(parsedOutput, context);
        case "NotSupportedService":
        case "com.amazonaws.iam#ServiceNotSupportedException":
          throw await de_ServiceNotSupportedExceptionRes(parsedOutput, context);
        case "DeleteConflict":
        case "com.amazonaws.iam#DeleteConflictException":
          throw await de_DeleteConflictExceptionRes(parsedOutput, context);
        case "AccountNotManagementOrDelegatedAdministratorException":
        case "com.amazonaws.iam#AccountNotManagementOrDelegatedAdministratorException":
          throw await de_AccountNotManagementOrDelegatedAdministratorExceptionRes(parsedOutput, context);
        case "OrganizationNotFoundException":
        case "com.amazonaws.iam#OrganizationNotFoundException":
          throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
        case "OrganizationNotInAllFeaturesModeException":
        case "com.amazonaws.iam#OrganizationNotInAllFeaturesModeException":
          throw await de_OrganizationNotInAllFeaturesModeExceptionRes(parsedOutput, context);
        case "ServiceAccessNotEnabledException":
        case "com.amazonaws.iam#ServiceAccessNotEnabledException":
          throw await de_ServiceAccessNotEnabledExceptionRes(parsedOutput, context);
        case "InvalidAuthenticationCode":
        case "com.amazonaws.iam#InvalidAuthenticationCodeException":
          throw await de_InvalidAuthenticationCodeExceptionRes(parsedOutput, context);
        case "CallerIsNotManagementAccountException":
        case "com.amazonaws.iam#CallerIsNotManagementAccountException":
          throw await de_CallerIsNotManagementAccountExceptionRes(parsedOutput, context);
        case "ReportGenerationLimitExceeded":
        case "com.amazonaws.iam#ReportGenerationLimitExceededException":
          throw await de_ReportGenerationLimitExceededExceptionRes(parsedOutput, context);
        case "ReportExpired":
        case "com.amazonaws.iam#CredentialReportExpiredException":
          throw await de_CredentialReportExpiredExceptionRes(parsedOutput, context);
        case "ReportInProgress":
        case "com.amazonaws.iam#CredentialReportNotReadyException":
          throw await de_CredentialReportNotReadyExceptionRes(parsedOutput, context);
        case "ReportNotPresent":
        case "com.amazonaws.iam#CredentialReportNotPresentException":
          throw await de_CredentialReportNotPresentExceptionRes(parsedOutput, context);
        case "UnrecognizedPublicKeyEncoding":
        case "com.amazonaws.iam#UnrecognizedPublicKeyEncodingException":
          throw await de_UnrecognizedPublicKeyEncodingExceptionRes(parsedOutput, context);
        case "PolicyEvaluation":
        case "com.amazonaws.iam#PolicyEvaluationException":
          throw await de_PolicyEvaluationExceptionRes(parsedOutput, context);
        case "KeyPairMismatch":
        case "com.amazonaws.iam#KeyPairMismatchException":
          throw await de_KeyPairMismatchExceptionRes(parsedOutput, context);
        case "MalformedCertificate":
        case "com.amazonaws.iam#MalformedCertificateException":
          throw await de_MalformedCertificateExceptionRes(parsedOutput, context);
        case "DuplicateCertificate":
        case "com.amazonaws.iam#DuplicateCertificateException":
          throw await de_DuplicateCertificateExceptionRes(parsedOutput, context);
        case "InvalidCertificate":
        case "com.amazonaws.iam#InvalidCertificateException":
          throw await de_InvalidCertificateExceptionRes(parsedOutput, context);
        case "DuplicateSSHPublicKey":
        case "com.amazonaws.iam#DuplicateSSHPublicKeyException":
          throw await de_DuplicateSSHPublicKeyExceptionRes(parsedOutput, context);
        case "InvalidPublicKey":
        case "com.amazonaws.iam#InvalidPublicKeyException":
          throw await de_InvalidPublicKeyExceptionRes(parsedOutput, context);
        default:
          const parsedBody = parsedOutput.body;
          return throwDefaultError3({
            output,
            parsedBody: parsedBody.Error,
            errorCode
          });
      }
    }, "de_CommandError");
    var de_AccountNotManagementOrDelegatedAdministratorExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_AccountNotManagementOrDelegatedAdministratorException(body.Error, context);
      const exception = new AccountNotManagementOrDelegatedAdministratorException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_AccountNotManagementOrDelegatedAdministratorExceptionRes");
    var de_CallerIsNotManagementAccountExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_CallerIsNotManagementAccountException(body.Error, context);
      const exception = new CallerIsNotManagementAccountException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_CallerIsNotManagementAccountExceptionRes");
    var de_ConcurrentModificationExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_ConcurrentModificationException(body.Error, context);
      const exception = new ConcurrentModificationException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ConcurrentModificationExceptionRes");
    var de_CredentialReportExpiredExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_CredentialReportExpiredException(body.Error, context);
      const exception = new CredentialReportExpiredException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_CredentialReportExpiredExceptionRes");
    var de_CredentialReportNotPresentExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_CredentialReportNotPresentException(body.Error, context);
      const exception = new CredentialReportNotPresentException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_CredentialReportNotPresentExceptionRes");
    var de_CredentialReportNotReadyExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_CredentialReportNotReadyException(body.Error, context);
      const exception = new CredentialReportNotReadyException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_CredentialReportNotReadyExceptionRes");
    var de_DeleteConflictExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_DeleteConflictException(body.Error, context);
      const exception = new DeleteConflictException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_DeleteConflictExceptionRes");
    var de_DuplicateCertificateExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_DuplicateCertificateException(body.Error, context);
      const exception = new DuplicateCertificateException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_DuplicateCertificateExceptionRes");
    var de_DuplicateSSHPublicKeyExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_DuplicateSSHPublicKeyException(body.Error, context);
      const exception = new DuplicateSSHPublicKeyException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_DuplicateSSHPublicKeyExceptionRes");
    var de_EntityAlreadyExistsExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_EntityAlreadyExistsException(body.Error, context);
      const exception = new EntityAlreadyExistsException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_EntityAlreadyExistsExceptionRes");
    var de_EntityTemporarilyUnmodifiableExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_EntityTemporarilyUnmodifiableException(body.Error, context);
      const exception = new EntityTemporarilyUnmodifiableException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_EntityTemporarilyUnmodifiableExceptionRes");
    var de_InvalidAuthenticationCodeExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_InvalidAuthenticationCodeException(body.Error, context);
      const exception = new InvalidAuthenticationCodeException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidAuthenticationCodeExceptionRes");
    var de_InvalidCertificateExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_InvalidCertificateException(body.Error, context);
      const exception = new InvalidCertificateException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidCertificateExceptionRes");
    var de_InvalidInputExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_InvalidInputException(body.Error, context);
      const exception = new InvalidInputException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidInputExceptionRes");
    var de_InvalidPublicKeyExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_InvalidPublicKeyException(body.Error, context);
      const exception = new InvalidPublicKeyException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidPublicKeyExceptionRes");
    var de_InvalidUserTypeExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_InvalidUserTypeException(body.Error, context);
      const exception = new InvalidUserTypeException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidUserTypeExceptionRes");
    var de_KeyPairMismatchExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_KeyPairMismatchException(body.Error, context);
      const exception = new KeyPairMismatchException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_KeyPairMismatchExceptionRes");
    var de_LimitExceededExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_LimitExceededException(body.Error, context);
      const exception = new LimitExceededException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_LimitExceededExceptionRes");
    var de_MalformedCertificateExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_MalformedCertificateException(body.Error, context);
      const exception = new MalformedCertificateException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_MalformedCertificateExceptionRes");
    var de_MalformedPolicyDocumentExceptionRes2 = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_MalformedPolicyDocumentException2(body.Error, context);
      const exception = new MalformedPolicyDocumentException2({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_MalformedPolicyDocumentExceptionRes");
    var de_NoSuchEntityExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_NoSuchEntityException(body.Error, context);
      const exception = new NoSuchEntityException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_NoSuchEntityExceptionRes");
    var de_OpenIdIdpCommunicationErrorExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_OpenIdIdpCommunicationErrorException(body.Error, context);
      const exception = new OpenIdIdpCommunicationErrorException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_OpenIdIdpCommunicationErrorExceptionRes");
    var de_OrganizationNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_OrganizationNotFoundException(body.Error, context);
      const exception = new OrganizationNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_OrganizationNotFoundExceptionRes");
    var de_OrganizationNotInAllFeaturesModeExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_OrganizationNotInAllFeaturesModeException(body.Error, context);
      const exception = new OrganizationNotInAllFeaturesModeException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_OrganizationNotInAllFeaturesModeExceptionRes");
    var de_PasswordPolicyViolationExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_PasswordPolicyViolationException(body.Error, context);
      const exception = new PasswordPolicyViolationException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_PasswordPolicyViolationExceptionRes");
    var de_PolicyEvaluationExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_PolicyEvaluationException(body.Error, context);
      const exception = new PolicyEvaluationException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_PolicyEvaluationExceptionRes");
    var de_PolicyNotAttachableExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_PolicyNotAttachableException(body.Error, context);
      const exception = new PolicyNotAttachableException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_PolicyNotAttachableExceptionRes");
    var de_ReportGenerationLimitExceededExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_ReportGenerationLimitExceededException(body.Error, context);
      const exception = new ReportGenerationLimitExceededException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ReportGenerationLimitExceededExceptionRes");
    var de_ServiceAccessNotEnabledExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_ServiceAccessNotEnabledException(body.Error, context);
      const exception = new ServiceAccessNotEnabledException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ServiceAccessNotEnabledExceptionRes");
    var de_ServiceFailureExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_ServiceFailureException(body.Error, context);
      const exception = new ServiceFailureException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ServiceFailureExceptionRes");
    var de_ServiceNotSupportedExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_ServiceNotSupportedException(body.Error, context);
      const exception = new ServiceNotSupportedException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ServiceNotSupportedExceptionRes");
    var de_UnmodifiableEntityExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_UnmodifiableEntityException(body.Error, context);
      const exception = new UnmodifiableEntityException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_UnmodifiableEntityExceptionRes");
    var de_UnrecognizedPublicKeyEncodingExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = de_UnrecognizedPublicKeyEncodingException(body.Error, context);
      const exception = new UnrecognizedPublicKeyEncodingException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_UnrecognizedPublicKeyEncodingExceptionRes");
    var se_ActionNameListType = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_ActionNameListType");
    var se_AddClientIDToOpenIDConnectProviderRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_OIDCPA] != null) {
        entries[_OIDCPA] = input[_OIDCPA];
      }
      if (input[_CID] != null) {
        entries[_CID] = input[_CID];
      }
      return entries;
    }, "se_AddClientIDToOpenIDConnectProviderRequest");
    var se_AddRoleToInstanceProfileRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IPN] != null) {
        entries[_IPN] = input[_IPN];
      }
      if (input[_RN] != null) {
        entries[_RN] = input[_RN];
      }
      return entries;
    }, "se_AddRoleToInstanceProfileRequest");
    var se_AddUserToGroupRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_GN] != null) {
        entries[_GN] = input[_GN];
      }
      if (input[_UN] != null) {
        entries[_UN] = input[_UN];
      }
      return entries;
    }, "se_AddUserToGroupRequest");
    var se_AttachGroupPolicyRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_GN] != null) {
        entries[_GN] = input[_GN];
      }
      if (input[_PA2] != null) {
        entries[_PA2] = input[_PA2];
      }
      return entries;
    }, "se_AttachGroupPolicyRequest");
    var se_AttachRolePolicyRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RN] != null) {
        entries[_RN] = input[_RN];
      }
      if (input[_PA2] != null) {
        entries[_PA2] = input[_PA2];
      }
      return entries;
    }, "se_AttachRolePolicyRequest");
    var se_AttachUserPolicyRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_UN] != null) {
        entries[_UN] = input[_UN];
      }
      if (input[_PA2] != null) {
        entries[_PA2] = input[_PA2];
      }
      return entries;
    }, "se_AttachUserPolicyRequest");
    var se_ChangePasswordRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_OP] != null) {
        entries[_OP] = input[_OP];
      }
      if (input[_NP] != null) {
        entries[_NP] = input[_NP];
      }
      return entries;
    }, "se_ChangePasswordRequest");
    var se_clientIDListType = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_clientIDListType");
    var se_ContextEntry = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_CKN] != null) {
        entries[_CKN] = input[_CKN];
      }
      if (input[_CKV] != null) {
        const memberEntries = se_ContextKeyValueListType(input[_CKV], context);
        if (input[_CKV]?.length === 0) {
          entries.ContextKeyValues = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ContextKeyValues.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_CKT] != null) {
        entries[_CKT] = input[_CKT];
      }
      return entries;
    }, "se_ContextEntry");
    var se_ContextEntryListType = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_ContextEntry(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`member.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_ContextEntryListType");
    var se_ContextKeyValueListType = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_ContextKeyValueListType");
    var se_CreateAccessKeyRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_UN] != null) {
        entries[_UN] = input[_UN];
      }
      return entries;
    }, "se_CreateAccessKeyRequest");
    var se_CreateAccountAliasRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_AA] != null) {
        entries[_AA] = input[_AA];
      }
      return entries;
    }, "se_CreateAccountAliasRequest");
    var se_CreateGroupRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_P2] != null) {
        entries[_P2] = input[_P2];
      }
      if (input[_GN] != null) {
        entries[_GN] = input[_GN];
      }
      return entries;
    }, "se_CreateGroupRequest");
    var se_CreateInstanceProfileRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IPN] != null) {
        entries[_IPN] = input[_IPN];
      }
      if (input[_P2] != null) {
        entries[_P2] = input[_P2];
      }
      if (input[_T2] != null) {
        const memberEntries = se_tagListType2(input[_T2], context);
        if (input[_T2]?.length === 0) {
          entries.Tags = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Tags.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_CreateInstanceProfileRequest");
    var se_CreateLoginProfileRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_UN] != null) {
        entries[_UN] = input[_UN];
      }
      if (input[_Pa] != null) {
        entries[_Pa] = input[_Pa];
      }
      if (input[_PRR] != null) {
        entries[_PRR] = input[_PRR];
      }
      return entries;
    }, "se_CreateLoginProfileRequest");
    var se_CreateOpenIDConnectProviderRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_U] != null) {
        entries[_U] = input[_U];
      }
      if (input[_CIDL] != null) {
        const memberEntries = se_clientIDListType(input[_CIDL], context);
        if (input[_CIDL]?.length === 0) {
          entries.ClientIDList = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ClientIDList.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_TL] != null) {
        const memberEntries = se_thumbprintListType(input[_TL], context);
        if (input[_TL]?.length === 0) {
          entries.ThumbprintList = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ThumbprintList.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_T2] != null) {
        const memberEntries = se_tagListType2(input[_T2], context);
        if (input[_T2]?.length === 0) {
          entries.Tags = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Tags.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_CreateOpenIDConnectProviderRequest");
    var se_CreatePolicyRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_PN] != null) {
        entries[_PN] = input[_PN];
      }
      if (input[_P2] != null) {
        entries[_P2] = input[_P2];
      }
      if (input[_PD] != null) {
        entries[_PD] = input[_PD];
      }
      if (input[_D] != null) {
        entries[_D] = input[_D];
      }
      if (input[_T2] != null) {
        const memberEntries = se_tagListType2(input[_T2], context);
        if (input[_T2]?.length === 0) {
          entries.Tags = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Tags.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_CreatePolicyRequest");
    var se_CreatePolicyVersionRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_PA2] != null) {
        entries[_PA2] = input[_PA2];
      }
      if (input[_PD] != null) {
        entries[_PD] = input[_PD];
      }
      if (input[_SAD] != null) {
        entries[_SAD] = input[_SAD];
      }
      return entries;
    }, "se_CreatePolicyVersionRequest");
    var se_CreateRoleRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_P2] != null) {
        entries[_P2] = input[_P2];
      }
      if (input[_RN] != null) {
        entries[_RN] = input[_RN];
      }
      if (input[_ARPD] != null) {
        entries[_ARPD] = input[_ARPD];
      }
      if (input[_D] != null) {
        entries[_D] = input[_D];
      }
      if (input[_MSD] != null) {
        entries[_MSD] = input[_MSD];
      }
      if (input[_PB] != null) {
        entries[_PB] = input[_PB];
      }
      if (input[_T2] != null) {
        const memberEntries = se_tagListType2(input[_T2], context);
        if (input[_T2]?.length === 0) {
          entries.Tags = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Tags.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_CreateRoleRequest");
    var se_CreateSAMLProviderRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SAMLMD] != null) {
        entries[_SAMLMD] = input[_SAMLMD];
      }
      if (input[_N] != null) {
        entries[_N] = input[_N];
      }
      if (input[_T2] != null) {
        const memberEntries = se_tagListType2(input[_T2], context);
        if (input[_T2]?.length === 0) {
          entries.Tags = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Tags.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_AEM] != null) {
        entries[_AEM] = input[_AEM];
      }
      if (input[_APK] != null) {
        entries[_APK] = input[_APK];
      }
      return entries;
    }, "se_CreateSAMLProviderRequest");
    var se_CreateServiceLinkedRoleRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_AWSSN] != null) {
        entries[_AWSSN] = input[_AWSSN];
      }
      if (input[_D] != null) {
        entries[_D] = input[_D];
      }
      if (input[_CS] != null) {
        entries[_CS] = input[_CS];
      }
      return entries;
    }, "se_CreateServiceLinkedRoleRequest");
    var se_CreateServiceSpecificCredentialRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_UN] != null) {
        entries[_UN] = input[_UN];
      }
      if (input[_SN2] != null) {
        entries[_SN2] = input[_SN2];
      }
      if (input[_CAD] != null) {
        entries[_CAD] = input[_CAD];
      }
      return entries;
    }, "se_CreateServiceSpecificCredentialRequest");
    var se_CreateUserRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_P2] != null) {
        entries[_P2] = input[_P2];
      }
      if (input[_UN] != null) {
        entries[_UN] = input[_UN];
      }
      if (input[_PB] != null) {
        entries[_PB] = input[_PB];
      }
      if (input[_T2] != null) {
        const memberEntries = se_tagListType2(input[_T2], context);
        if (input[_T2]?.length === 0) {
          entries.Tags = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Tags.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_CreateUserRequest");
    var se_CreateVirtualMFADeviceRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_P2] != null) {
        entries[_P2] = input[_P2];
      }
      if (input[_VMFADN] != null) {
        entries[_VMFADN] = input[_VMFADN];
      }
      if (input[_T2] != null) {
        const memberEntries = se_tagListType2(input[_T2], context);
        if (input[_T2]?.length === 0) {
          entries.Tags = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Tags.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_CreateVirtualMFADeviceRequest");
    var se_DeactivateMFADeviceRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_UN] != null) {
        entries[_UN] = input[_UN];
      }
      if (input[_SNe] != null) {
        entries[_SNe] = input[_SNe];
      }
      return entries;
    }, "se_DeactivateMFADeviceRequest");
    var se_DeleteAccessKeyRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_UN] != null) {
        entries[_UN] = input[_UN];
      }
      if (input[_AKI2] != null) {
        entries[_AKI2] = input[_AKI2];
      }
      return entries;
    }, "se_DeleteAccessKeyRequest");
    var se_DeleteAccountAliasRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_AA] != null) {
        entries[_AA] = input[_AA];
      }
      return entries;
    }, "se_DeleteAccountAliasRequest");
    var se_DeleteGroupPolicyRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_GN] != null) {
        entries[_GN] = input[_GN];
      }
      if (input[_PN] != null) {
        entries[_PN] = input[_PN];
      }
      return entries;
    }, "se_DeleteGroupPolicyRequest");
    var se_DeleteGroupRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_GN] != null) {
        entries[_GN] = input[_GN];
      }
      return entries;
    }, "se_DeleteGroupRequest");
    var se_DeleteInstanceProfileRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IPN] != null) {
        entries[_IPN] = input[_IPN];
      }
      return entries;
    }, "se_DeleteInstanceProfileRequest");
    var se_DeleteLoginProfileRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_UN] != null) {
        entries[_UN] = input[_UN];
      }
      return entries;
    }, "se_DeleteLoginProfileRequest");
    var se_DeleteOpenIDConnectProviderRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_OIDCPA] != null) {
        entries[_OIDCPA] = input[_OIDCPA];
      }
      return entries;
    }, "se_DeleteOpenIDConnectProviderRequest");
    var se_DeletePolicyRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_PA2] != null) {
        entries[_PA2] = input[_PA2];
      }
      return entries;
    }, "se_DeletePolicyRequest");
    var se_DeletePolicyVersionRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_PA2] != null) {
        entries[_PA2] = input[_PA2];
      }
      if (input[_VI] != null) {
        entries[_VI] = input[_VI];
      }
      return entries;
    }, "se_DeletePolicyVersionRequest");
    var se_DeleteRolePermissionsBoundaryRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RN] != null) {
        entries[_RN] = input[_RN];
      }
      return entries;
    }, "se_DeleteRolePermissionsBoundaryRequest");
    var se_DeleteRolePolicyRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RN] != null) {
        entries[_RN] = input[_RN];
      }
      if (input[_PN] != null) {
        entries[_PN] = input[_PN];
      }
      return entries;
    }, "se_DeleteRolePolicyRequest");
    var se_DeleteRoleRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RN] != null) {
        entries[_RN] = input[_RN];
      }
      return entries;
    }, "se_DeleteRoleRequest");
    var se_DeleteSAMLProviderRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SAMLPA] != null) {
        entries[_SAMLPA] = input[_SAMLPA];
      }
      return entries;
    }, "se_DeleteSAMLProviderRequest");
    var se_DeleteServerCertificateRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SCN] != null) {
        entries[_SCN] = input[_SCN];
      }
      return entries;
    }, "se_DeleteServerCertificateRequest");
    var se_DeleteServiceLinkedRoleRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RN] != null) {
        entries[_RN] = input[_RN];
      }
      return entries;
    }, "se_DeleteServiceLinkedRoleRequest");
    var se_DeleteServiceSpecificCredentialRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_UN] != null) {
        entries[_UN] = input[_UN];
      }
      if (input[_SSCI] != null) {
        entries[_SSCI] = input[_SSCI];
      }
      return entries;
    }, "se_DeleteServiceSpecificCredentialRequest");
    var se_DeleteSigningCertificateRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_UN] != null) {
        entries[_UN] = input[_UN];
      }
      if (input[_CI] != null) {
        entries[_CI] = input[_CI];
      }
      return entries;
    }, "se_DeleteSigningCertificateRequest");
    var se_DeleteSSHPublicKeyRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_UN] != null) {
        entries[_UN] = input[_UN];
      }
      if (input[_SSHPKI] != null) {
        entries[_SSHPKI] = input[_SSHPKI];
      }
      return entries;
    }, "se_DeleteSSHPublicKeyRequest");
    var se_DeleteUserPermissionsBoundaryRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_UN] != null) {
        entries[_UN] = input[_UN];
      }
      return entries;
    }, "se_DeleteUserPermissionsBoundaryRequest");
    var se_DeleteUserPolicyRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_UN] != null) {
        entries[_UN] = input[_UN];
      }
      if (input[_PN] != null) {
        entries[_PN] = input[_PN];
      }
      return entries;
    }, "se_DeleteUserPolicyRequest");
    var se_DeleteUserRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_UN] != null) {
        entries[_UN] = input[_UN];
      }
      return entries;
    }, "se_DeleteUserRequest");
    var se_DeleteVirtualMFADeviceRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SNe] != null) {
        entries[_SNe] = input[_SNe];
      }
      return entries;
    }, "se_DeleteVirtualMFADeviceRequest");
    var se_DetachGroupPolicyRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_GN] != null) {
        entries[_GN] = input[_GN];
      }
      if (input[_PA2] != null) {
        entries[_PA2] = input[_PA2];
      }
      return entries;
    }, "se_DetachGroupPolicyRequest");
    var se_DetachRolePolicyRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RN] != null) {
        entries[_RN] = input[_RN];
      }
      if (input[_PA2] != null) {
        entries[_PA2] = input[_PA2];
      }
      return entries;
    }, "se_DetachRolePolicyRequest");
    var se_DetachUserPolicyRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_UN] != null) {
        entries[_UN] = input[_UN];
      }
      if (input[_PA2] != null) {
        entries[_PA2] = input[_PA2];
      }
      return entries;
    }, "se_DetachUserPolicyRequest");
    var se_DisableOrganizationsRootCredentialsManagementRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      return entries;
    }, "se_DisableOrganizationsRootCredentialsManagementRequest");
    var se_DisableOrganizationsRootSessionsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      return entries;
    }, "se_DisableOrganizationsRootSessionsRequest");
    var se_EnableMFADeviceRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_UN] != null) {
        entries[_UN] = input[_UN];
      }
      if (input[_SNe] != null) {
        entries[_SNe] = input[_SNe];
      }
      if (input[_AC] != null) {
        entries[_AC] = input[_AC];
      }
      if (input[_ACu] != null) {
        entries[_ACu] = input[_ACu];
      }
      return entries;
    }, "se_EnableMFADeviceRequest");
    var se_EnableOrganizationsRootCredentialsManagementRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      return entries;
    }, "se_EnableOrganizationsRootCredentialsManagementRequest");
    var se_EnableOrganizationsRootSessionsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      return entries;
    }, "se_EnableOrganizationsRootSessionsRequest");
    var se_entityListType = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_entityListType");
    var se_GenerateOrganizationsAccessReportRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_EP] != null) {
        entries[_EP] = input[_EP];
      }
      if (input[_OPI] != null) {
        entries[_OPI] = input[_OPI];
      }
      return entries;
    }, "se_GenerateOrganizationsAccessReportRequest");
    var se_GenerateServiceLastAccessedDetailsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_Ar2] != null) {
        entries[_Ar2] = input[_Ar2];
      }
      if (input[_G] != null) {
        entries[_G] = input[_G];
      }
      return entries;
    }, "se_GenerateServiceLastAccessedDetailsRequest");
    var se_GetAccessKeyLastUsedRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_AKI2] != null) {
        entries[_AKI2] = input[_AKI2];
      }
      return entries;
    }, "se_GetAccessKeyLastUsedRequest");
    var se_GetAccountAuthorizationDetailsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_F] != null) {
        const memberEntries = se_entityListType(input[_F], context);
        if (input[_F]?.length === 0) {
          entries.Filter = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Filter.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_MI] != null) {
        entries[_MI] = input[_MI];
      }
      if (input[_M] != null) {
        entries[_M] = input[_M];
      }
      return entries;
    }, "se_GetAccountAuthorizationDetailsRequest");
    var se_GetContextKeysForCustomPolicyRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_PIL] != null) {
        const memberEntries = se_SimulationPolicyListType(input[_PIL], context);
        if (input[_PIL]?.length === 0) {
          entries.PolicyInputList = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `PolicyInputList.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_GetContextKeysForCustomPolicyRequest");
    var se_GetContextKeysForPrincipalPolicyRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_PSA] != null) {
        entries[_PSA] = input[_PSA];
      }
      if (input[_PIL] != null) {
        const memberEntries = se_SimulationPolicyListType(input[_PIL], context);
        if (input[_PIL]?.length === 0) {
          entries.PolicyInputList = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `PolicyInputList.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_GetContextKeysForPrincipalPolicyRequest");
    var se_GetGroupPolicyRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_GN] != null) {
        entries[_GN] = input[_GN];
      }
      if (input[_PN] != null) {
        entries[_PN] = input[_PN];
      }
      return entries;
    }, "se_GetGroupPolicyRequest");
    var se_GetGroupRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_GN] != null) {
        entries[_GN] = input[_GN];
      }
      if (input[_M] != null) {
        entries[_M] = input[_M];
      }
      if (input[_MI] != null) {
        entries[_MI] = input[_MI];
      }
      return entries;
    }, "se_GetGroupRequest");
    var se_GetInstanceProfileRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IPN] != null) {
        entries[_IPN] = input[_IPN];
      }
      return entries;
    }, "se_GetInstanceProfileRequest");
    var se_GetLoginProfileRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_UN] != null) {
        entries[_UN] = input[_UN];
      }
      return entries;
    }, "se_GetLoginProfileRequest");
    var se_GetMFADeviceRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SNe] != null) {
        entries[_SNe] = input[_SNe];
      }
      if (input[_UN] != null) {
        entries[_UN] = input[_UN];
      }
      return entries;
    }, "se_GetMFADeviceRequest");
    var se_GetOpenIDConnectProviderRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_OIDCPA] != null) {
        entries[_OIDCPA] = input[_OIDCPA];
      }
      return entries;
    }, "se_GetOpenIDConnectProviderRequest");
    var se_GetOrganizationsAccessReportRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_JI] != null) {
        entries[_JI] = input[_JI];
      }
      if (input[_MI] != null) {
        entries[_MI] = input[_MI];
      }
      if (input[_M] != null) {
        entries[_M] = input[_M];
      }
      if (input[_SK] != null) {
        entries[_SK] = input[_SK];
      }
      return entries;
    }, "se_GetOrganizationsAccessReportRequest");
    var se_GetPolicyRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_PA2] != null) {
        entries[_PA2] = input[_PA2];
      }
      return entries;
    }, "se_GetPolicyRequest");
    var se_GetPolicyVersionRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_PA2] != null) {
        entries[_PA2] = input[_PA2];
      }
      if (input[_VI] != null) {
        entries[_VI] = input[_VI];
      }
      return entries;
    }, "se_GetPolicyVersionRequest");
    var se_GetRolePolicyRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RN] != null) {
        entries[_RN] = input[_RN];
      }
      if (input[_PN] != null) {
        entries[_PN] = input[_PN];
      }
      return entries;
    }, "se_GetRolePolicyRequest");
    var se_GetRoleRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RN] != null) {
        entries[_RN] = input[_RN];
      }
      return entries;
    }, "se_GetRoleRequest");
    var se_GetSAMLProviderRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SAMLPA] != null) {
        entries[_SAMLPA] = input[_SAMLPA];
      }
      return entries;
    }, "se_GetSAMLProviderRequest");
    var se_GetServerCertificateRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SCN] != null) {
        entries[_SCN] = input[_SCN];
      }
      return entries;
    }, "se_GetServerCertificateRequest");
    var se_GetServiceLastAccessedDetailsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_JI] != null) {
        entries[_JI] = input[_JI];
      }
      if (input[_MI] != null) {
        entries[_MI] = input[_MI];
      }
      if (input[_M] != null) {
        entries[_M] = input[_M];
      }
      return entries;
    }, "se_GetServiceLastAccessedDetailsRequest");
    var se_GetServiceLastAccessedDetailsWithEntitiesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_JI] != null) {
        entries[_JI] = input[_JI];
      }
      if (input[_SNer] != null) {
        entries[_SNer] = input[_SNer];
      }
      if (input[_MI] != null) {
        entries[_MI] = input[_MI];
      }
      if (input[_M] != null) {
        entries[_M] = input[_M];
      }
      return entries;
    }, "se_GetServiceLastAccessedDetailsWithEntitiesRequest");
    var se_GetServiceLinkedRoleDeletionStatusRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_DTI] != null) {
        entries[_DTI] = input[_DTI];
      }
      return entries;
    }, "se_GetServiceLinkedRoleDeletionStatusRequest");
    var se_GetSSHPublicKeyRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_UN] != null) {
        entries[_UN] = input[_UN];
      }
      if (input[_SSHPKI] != null) {
        entries[_SSHPKI] = input[_SSHPKI];
      }
      if (input[_E2] != null) {
        entries[_E2] = input[_E2];
      }
      return entries;
    }, "se_GetSSHPublicKeyRequest");
    var se_GetUserPolicyRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_UN] != null) {
        entries[_UN] = input[_UN];
      }
      if (input[_PN] != null) {
        entries[_PN] = input[_PN];
      }
      return entries;
    }, "se_GetUserPolicyRequest");
    var se_GetUserRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_UN] != null) {
        entries[_UN] = input[_UN];
      }
      return entries;
    }, "se_GetUserRequest");
    var se_ListAccessKeysRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_UN] != null) {
        entries[_UN] = input[_UN];
      }
      if (input[_M] != null) {
        entries[_M] = input[_M];
      }
      if (input[_MI] != null) {
        entries[_MI] = input[_MI];
      }
      return entries;
    }, "se_ListAccessKeysRequest");
    var se_ListAccountAliasesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_M] != null) {
        entries[_M] = input[_M];
      }
      if (input[_MI] != null) {
        entries[_MI] = input[_MI];
      }
      return entries;
    }, "se_ListAccountAliasesRequest");
    var se_ListAttachedGroupPoliciesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_GN] != null) {
        entries[_GN] = input[_GN];
      }
      if (input[_PP] != null) {
        entries[_PP] = input[_PP];
      }
      if (input[_M] != null) {
        entries[_M] = input[_M];
      }
      if (input[_MI] != null) {
        entries[_MI] = input[_MI];
      }
      return entries;
    }, "se_ListAttachedGroupPoliciesRequest");
    var se_ListAttachedRolePoliciesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RN] != null) {
        entries[_RN] = input[_RN];
      }
      if (input[_PP] != null) {
        entries[_PP] = input[_PP];
      }
      if (input[_M] != null) {
        entries[_M] = input[_M];
      }
      if (input[_MI] != null) {
        entries[_MI] = input[_MI];
      }
      return entries;
    }, "se_ListAttachedRolePoliciesRequest");
    var se_ListAttachedUserPoliciesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_UN] != null) {
        entries[_UN] = input[_UN];
      }
      if (input[_PP] != null) {
        entries[_PP] = input[_PP];
      }
      if (input[_M] != null) {
        entries[_M] = input[_M];
      }
      if (input[_MI] != null) {
        entries[_MI] = input[_MI];
      }
      return entries;
    }, "se_ListAttachedUserPoliciesRequest");
    var se_ListEntitiesForPolicyRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_PA2] != null) {
        entries[_PA2] = input[_PA2];
      }
      if (input[_EF] != null) {
        entries[_EF] = input[_EF];
      }
      if (input[_PP] != null) {
        entries[_PP] = input[_PP];
      }
      if (input[_PUF] != null) {
        entries[_PUF] = input[_PUF];
      }
      if (input[_M] != null) {
        entries[_M] = input[_M];
      }
      if (input[_MI] != null) {
        entries[_MI] = input[_MI];
      }
      return entries;
    }, "se_ListEntitiesForPolicyRequest");
    var se_ListGroupPoliciesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_GN] != null) {
        entries[_GN] = input[_GN];
      }
      if (input[_M] != null) {
        entries[_M] = input[_M];
      }
      if (input[_MI] != null) {
        entries[_MI] = input[_MI];
      }
      return entries;
    }, "se_ListGroupPoliciesRequest");
    var se_ListGroupsForUserRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_UN] != null) {
        entries[_UN] = input[_UN];
      }
      if (input[_M] != null) {
        entries[_M] = input[_M];
      }
      if (input[_MI] != null) {
        entries[_MI] = input[_MI];
      }
      return entries;
    }, "se_ListGroupsForUserRequest");
    var se_ListGroupsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_PP] != null) {
        entries[_PP] = input[_PP];
      }
      if (input[_M] != null) {
        entries[_M] = input[_M];
      }
      if (input[_MI] != null) {
        entries[_MI] = input[_MI];
      }
      return entries;
    }, "se_ListGroupsRequest");
    var se_ListInstanceProfilesForRoleRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RN] != null) {
        entries[_RN] = input[_RN];
      }
      if (input[_M] != null) {
        entries[_M] = input[_M];
      }
      if (input[_MI] != null) {
        entries[_MI] = input[_MI];
      }
      return entries;
    }, "se_ListInstanceProfilesForRoleRequest");
    var se_ListInstanceProfilesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_PP] != null) {
        entries[_PP] = input[_PP];
      }
      if (input[_M] != null) {
        entries[_M] = input[_M];
      }
      if (input[_MI] != null) {
        entries[_MI] = input[_MI];
      }
      return entries;
    }, "se_ListInstanceProfilesRequest");
    var se_ListInstanceProfileTagsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IPN] != null) {
        entries[_IPN] = input[_IPN];
      }
      if (input[_M] != null) {
        entries[_M] = input[_M];
      }
      if (input[_MI] != null) {
        entries[_MI] = input[_MI];
      }
      return entries;
    }, "se_ListInstanceProfileTagsRequest");
    var se_ListMFADevicesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_UN] != null) {
        entries[_UN] = input[_UN];
      }
      if (input[_M] != null) {
        entries[_M] = input[_M];
      }
      if (input[_MI] != null) {
        entries[_MI] = input[_MI];
      }
      return entries;
    }, "se_ListMFADevicesRequest");
    var se_ListMFADeviceTagsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SNe] != null) {
        entries[_SNe] = input[_SNe];
      }
      if (input[_M] != null) {
        entries[_M] = input[_M];
      }
      if (input[_MI] != null) {
        entries[_MI] = input[_MI];
      }
      return entries;
    }, "se_ListMFADeviceTagsRequest");
    var se_ListOpenIDConnectProvidersRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      return entries;
    }, "se_ListOpenIDConnectProvidersRequest");
    var se_ListOpenIDConnectProviderTagsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_OIDCPA] != null) {
        entries[_OIDCPA] = input[_OIDCPA];
      }
      if (input[_M] != null) {
        entries[_M] = input[_M];
      }
      if (input[_MI] != null) {
        entries[_MI] = input[_MI];
      }
      return entries;
    }, "se_ListOpenIDConnectProviderTagsRequest");
    var se_ListOrganizationsFeaturesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      return entries;
    }, "se_ListOrganizationsFeaturesRequest");
    var se_ListPoliciesGrantingServiceAccessRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_M] != null) {
        entries[_M] = input[_M];
      }
      if (input[_Ar2] != null) {
        entries[_Ar2] = input[_Ar2];
      }
      if (input[_SNerv] != null) {
        const memberEntries = se_serviceNamespaceListType(input[_SNerv], context);
        if (input[_SNerv]?.length === 0) {
          entries.ServiceNamespaces = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ServiceNamespaces.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_ListPoliciesGrantingServiceAccessRequest");
    var se_ListPoliciesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_S] != null) {
        entries[_S] = input[_S];
      }
      if (input[_OA] != null) {
        entries[_OA] = input[_OA];
      }
      if (input[_PP] != null) {
        entries[_PP] = input[_PP];
      }
      if (input[_PUF] != null) {
        entries[_PUF] = input[_PUF];
      }
      if (input[_M] != null) {
        entries[_M] = input[_M];
      }
      if (input[_MI] != null) {
        entries[_MI] = input[_MI];
      }
      return entries;
    }, "se_ListPoliciesRequest");
    var se_ListPolicyTagsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_PA2] != null) {
        entries[_PA2] = input[_PA2];
      }
      if (input[_M] != null) {
        entries[_M] = input[_M];
      }
      if (input[_MI] != null) {
        entries[_MI] = input[_MI];
      }
      return entries;
    }, "se_ListPolicyTagsRequest");
    var se_ListPolicyVersionsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_PA2] != null) {
        entries[_PA2] = input[_PA2];
      }
      if (input[_M] != null) {
        entries[_M] = input[_M];
      }
      if (input[_MI] != null) {
        entries[_MI] = input[_MI];
      }
      return entries;
    }, "se_ListPolicyVersionsRequest");
    var se_ListRolePoliciesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RN] != null) {
        entries[_RN] = input[_RN];
      }
      if (input[_M] != null) {
        entries[_M] = input[_M];
      }
      if (input[_MI] != null) {
        entries[_MI] = input[_MI];
      }
      return entries;
    }, "se_ListRolePoliciesRequest");
    var se_ListRolesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_PP] != null) {
        entries[_PP] = input[_PP];
      }
      if (input[_M] != null) {
        entries[_M] = input[_M];
      }
      if (input[_MI] != null) {
        entries[_MI] = input[_MI];
      }
      return entries;
    }, "se_ListRolesRequest");
    var se_ListRoleTagsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RN] != null) {
        entries[_RN] = input[_RN];
      }
      if (input[_M] != null) {
        entries[_M] = input[_M];
      }
      if (input[_MI] != null) {
        entries[_MI] = input[_MI];
      }
      return entries;
    }, "se_ListRoleTagsRequest");
    var se_ListSAMLProvidersRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      return entries;
    }, "se_ListSAMLProvidersRequest");
    var se_ListSAMLProviderTagsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SAMLPA] != null) {
        entries[_SAMLPA] = input[_SAMLPA];
      }
      if (input[_M] != null) {
        entries[_M] = input[_M];
      }
      if (input[_MI] != null) {
        entries[_MI] = input[_MI];
      }
      return entries;
    }, "se_ListSAMLProviderTagsRequest");
    var se_ListServerCertificatesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_PP] != null) {
        entries[_PP] = input[_PP];
      }
      if (input[_M] != null) {
        entries[_M] = input[_M];
      }
      if (input[_MI] != null) {
        entries[_MI] = input[_MI];
      }
      return entries;
    }, "se_ListServerCertificatesRequest");
    var se_ListServerCertificateTagsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SCN] != null) {
        entries[_SCN] = input[_SCN];
      }
      if (input[_M] != null) {
        entries[_M] = input[_M];
      }
      if (input[_MI] != null) {
        entries[_MI] = input[_MI];
      }
      return entries;
    }, "se_ListServerCertificateTagsRequest");
    var se_ListServiceSpecificCredentialsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_UN] != null) {
        entries[_UN] = input[_UN];
      }
      if (input[_SN2] != null) {
        entries[_SN2] = input[_SN2];
      }
      if (input[_AU] != null) {
        entries[_AU] = input[_AU];
      }
      if (input[_M] != null) {
        entries[_M] = input[_M];
      }
      if (input[_MI] != null) {
        entries[_MI] = input[_MI];
      }
      return entries;
    }, "se_ListServiceSpecificCredentialsRequest");
    var se_ListSigningCertificatesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_UN] != null) {
        entries[_UN] = input[_UN];
      }
      if (input[_M] != null) {
        entries[_M] = input[_M];
      }
      if (input[_MI] != null) {
        entries[_MI] = input[_MI];
      }
      return entries;
    }, "se_ListSigningCertificatesRequest");
    var se_ListSSHPublicKeysRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_UN] != null) {
        entries[_UN] = input[_UN];
      }
      if (input[_M] != null) {
        entries[_M] = input[_M];
      }
      if (input[_MI] != null) {
        entries[_MI] = input[_MI];
      }
      return entries;
    }, "se_ListSSHPublicKeysRequest");
    var se_ListUserPoliciesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_UN] != null) {
        entries[_UN] = input[_UN];
      }
      if (input[_M] != null) {
        entries[_M] = input[_M];
      }
      if (input[_MI] != null) {
        entries[_MI] = input[_MI];
      }
      return entries;
    }, "se_ListUserPoliciesRequest");
    var se_ListUsersRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_PP] != null) {
        entries[_PP] = input[_PP];
      }
      if (input[_M] != null) {
        entries[_M] = input[_M];
      }
      if (input[_MI] != null) {
        entries[_MI] = input[_MI];
      }
      return entries;
    }, "se_ListUsersRequest");
    var se_ListUserTagsRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_UN] != null) {
        entries[_UN] = input[_UN];
      }
      if (input[_M] != null) {
        entries[_M] = input[_M];
      }
      if (input[_MI] != null) {
        entries[_MI] = input[_MI];
      }
      return entries;
    }, "se_ListUserTagsRequest");
    var se_ListVirtualMFADevicesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_AS] != null) {
        entries[_AS] = input[_AS];
      }
      if (input[_M] != null) {
        entries[_M] = input[_M];
      }
      if (input[_MI] != null) {
        entries[_MI] = input[_MI];
      }
      return entries;
    }, "se_ListVirtualMFADevicesRequest");
    var se_PutGroupPolicyRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_GN] != null) {
        entries[_GN] = input[_GN];
      }
      if (input[_PN] != null) {
        entries[_PN] = input[_PN];
      }
      if (input[_PD] != null) {
        entries[_PD] = input[_PD];
      }
      return entries;
    }, "se_PutGroupPolicyRequest");
    var se_PutRolePermissionsBoundaryRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RN] != null) {
        entries[_RN] = input[_RN];
      }
      if (input[_PB] != null) {
        entries[_PB] = input[_PB];
      }
      return entries;
    }, "se_PutRolePermissionsBoundaryRequest");
    var se_PutRolePolicyRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RN] != null) {
        entries[_RN] = input[_RN];
      }
      if (input[_PN] != null) {
        entries[_PN] = input[_PN];
      }
      if (input[_PD] != null) {
        entries[_PD] = input[_PD];
      }
      return entries;
    }, "se_PutRolePolicyRequest");
    var se_PutUserPermissionsBoundaryRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_UN] != null) {
        entries[_UN] = input[_UN];
      }
      if (input[_PB] != null) {
        entries[_PB] = input[_PB];
      }
      return entries;
    }, "se_PutUserPermissionsBoundaryRequest");
    var se_PutUserPolicyRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_UN] != null) {
        entries[_UN] = input[_UN];
      }
      if (input[_PN] != null) {
        entries[_PN] = input[_PN];
      }
      if (input[_PD] != null) {
        entries[_PD] = input[_PD];
      }
      return entries;
    }, "se_PutUserPolicyRequest");
    var se_RemoveClientIDFromOpenIDConnectProviderRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_OIDCPA] != null) {
        entries[_OIDCPA] = input[_OIDCPA];
      }
      if (input[_CID] != null) {
        entries[_CID] = input[_CID];
      }
      return entries;
    }, "se_RemoveClientIDFromOpenIDConnectProviderRequest");
    var se_RemoveRoleFromInstanceProfileRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IPN] != null) {
        entries[_IPN] = input[_IPN];
      }
      if (input[_RN] != null) {
        entries[_RN] = input[_RN];
      }
      return entries;
    }, "se_RemoveRoleFromInstanceProfileRequest");
    var se_RemoveUserFromGroupRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_GN] != null) {
        entries[_GN] = input[_GN];
      }
      if (input[_UN] != null) {
        entries[_UN] = input[_UN];
      }
      return entries;
    }, "se_RemoveUserFromGroupRequest");
    var se_ResetServiceSpecificCredentialRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_UN] != null) {
        entries[_UN] = input[_UN];
      }
      if (input[_SSCI] != null) {
        entries[_SSCI] = input[_SSCI];
      }
      return entries;
    }, "se_ResetServiceSpecificCredentialRequest");
    var se_ResourceNameListType = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_ResourceNameListType");
    var se_ResyncMFADeviceRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_UN] != null) {
        entries[_UN] = input[_UN];
      }
      if (input[_SNe] != null) {
        entries[_SNe] = input[_SNe];
      }
      if (input[_AC] != null) {
        entries[_AC] = input[_AC];
      }
      if (input[_ACu] != null) {
        entries[_ACu] = input[_ACu];
      }
      return entries;
    }, "se_ResyncMFADeviceRequest");
    var se_serviceNamespaceListType = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_serviceNamespaceListType");
    var se_SetDefaultPolicyVersionRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_PA2] != null) {
        entries[_PA2] = input[_PA2];
      }
      if (input[_VI] != null) {
        entries[_VI] = input[_VI];
      }
      return entries;
    }, "se_SetDefaultPolicyVersionRequest");
    var se_SetSecurityTokenServicePreferencesRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_GETV] != null) {
        entries[_GETV] = input[_GETV];
      }
      return entries;
    }, "se_SetSecurityTokenServicePreferencesRequest");
    var se_SimulateCustomPolicyRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_PIL] != null) {
        const memberEntries = se_SimulationPolicyListType(input[_PIL], context);
        if (input[_PIL]?.length === 0) {
          entries.PolicyInputList = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `PolicyInputList.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_PBPIL] != null) {
        const memberEntries = se_SimulationPolicyListType(input[_PBPIL], context);
        if (input[_PBPIL]?.length === 0) {
          entries.PermissionsBoundaryPolicyInputList = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `PermissionsBoundaryPolicyInputList.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_AN] != null) {
        const memberEntries = se_ActionNameListType(input[_AN], context);
        if (input[_AN]?.length === 0) {
          entries.ActionNames = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ActionNames.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_RA2] != null) {
        const memberEntries = se_ResourceNameListType(input[_RA2], context);
        if (input[_RA2]?.length === 0) {
          entries.ResourceArns = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ResourceArns.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_RP] != null) {
        entries[_RP] = input[_RP];
      }
      if (input[_RO] != null) {
        entries[_RO] = input[_RO];
      }
      if (input[_CA2] != null) {
        entries[_CA2] = input[_CA2];
      }
      if (input[_CE] != null) {
        const memberEntries = se_ContextEntryListType(input[_CE], context);
        if (input[_CE]?.length === 0) {
          entries.ContextEntries = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ContextEntries.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_RHO] != null) {
        entries[_RHO] = input[_RHO];
      }
      if (input[_MI] != null) {
        entries[_MI] = input[_MI];
      }
      if (input[_M] != null) {
        entries[_M] = input[_M];
      }
      return entries;
    }, "se_SimulateCustomPolicyRequest");
    var se_SimulatePrincipalPolicyRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_PSA] != null) {
        entries[_PSA] = input[_PSA];
      }
      if (input[_PIL] != null) {
        const memberEntries = se_SimulationPolicyListType(input[_PIL], context);
        if (input[_PIL]?.length === 0) {
          entries.PolicyInputList = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `PolicyInputList.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_PBPIL] != null) {
        const memberEntries = se_SimulationPolicyListType(input[_PBPIL], context);
        if (input[_PBPIL]?.length === 0) {
          entries.PermissionsBoundaryPolicyInputList = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `PermissionsBoundaryPolicyInputList.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_AN] != null) {
        const memberEntries = se_ActionNameListType(input[_AN], context);
        if (input[_AN]?.length === 0) {
          entries.ActionNames = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ActionNames.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_RA2] != null) {
        const memberEntries = se_ResourceNameListType(input[_RA2], context);
        if (input[_RA2]?.length === 0) {
          entries.ResourceArns = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ResourceArns.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_RP] != null) {
        entries[_RP] = input[_RP];
      }
      if (input[_RO] != null) {
        entries[_RO] = input[_RO];
      }
      if (input[_CA2] != null) {
        entries[_CA2] = input[_CA2];
      }
      if (input[_CE] != null) {
        const memberEntries = se_ContextEntryListType(input[_CE], context);
        if (input[_CE]?.length === 0) {
          entries.ContextEntries = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ContextEntries.${key}`;
          entries[loc] = value;
        });
      }
      if (input[_RHO] != null) {
        entries[_RHO] = input[_RHO];
      }
      if (input[_MI] != null) {
        entries[_MI] = input[_MI];
      }
      if (input[_M] != null) {
        entries[_M] = input[_M];
      }
      return entries;
    }, "se_SimulatePrincipalPolicyRequest");
    var se_SimulationPolicyListType = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_SimulationPolicyListType");
    var se_Tag2 = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_K2] != null) {
        entries[_K2] = input[_K2];
      }
      if (input[_Va2] != null) {
        entries[_Va2] = input[_Va2];
      }
      return entries;
    }, "se_Tag");
    var se_TagInstanceProfileRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IPN] != null) {
        entries[_IPN] = input[_IPN];
      }
      if (input[_T2] != null) {
        const memberEntries = se_tagListType2(input[_T2], context);
        if (input[_T2]?.length === 0) {
          entries.Tags = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Tags.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_TagInstanceProfileRequest");
    var se_tagKeyListType2 = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_tagKeyListType");
    var se_tagListType2 = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        const memberEntries = se_Tag2(entry, context);
        Object.entries(memberEntries).forEach(([key, value]) => {
          entries[`member.${counter}.${key}`] = value;
        });
        counter++;
      }
      return entries;
    }, "se_tagListType");
    var se_TagMFADeviceRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SNe] != null) {
        entries[_SNe] = input[_SNe];
      }
      if (input[_T2] != null) {
        const memberEntries = se_tagListType2(input[_T2], context);
        if (input[_T2]?.length === 0) {
          entries.Tags = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Tags.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_TagMFADeviceRequest");
    var se_TagOpenIDConnectProviderRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_OIDCPA] != null) {
        entries[_OIDCPA] = input[_OIDCPA];
      }
      if (input[_T2] != null) {
        const memberEntries = se_tagListType2(input[_T2], context);
        if (input[_T2]?.length === 0) {
          entries.Tags = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Tags.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_TagOpenIDConnectProviderRequest");
    var se_TagPolicyRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_PA2] != null) {
        entries[_PA2] = input[_PA2];
      }
      if (input[_T2] != null) {
        const memberEntries = se_tagListType2(input[_T2], context);
        if (input[_T2]?.length === 0) {
          entries.Tags = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Tags.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_TagPolicyRequest");
    var se_TagRoleRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RN] != null) {
        entries[_RN] = input[_RN];
      }
      if (input[_T2] != null) {
        const memberEntries = se_tagListType2(input[_T2], context);
        if (input[_T2]?.length === 0) {
          entries.Tags = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Tags.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_TagRoleRequest");
    var se_TagSAMLProviderRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SAMLPA] != null) {
        entries[_SAMLPA] = input[_SAMLPA];
      }
      if (input[_T2] != null) {
        const memberEntries = se_tagListType2(input[_T2], context);
        if (input[_T2]?.length === 0) {
          entries.Tags = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Tags.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_TagSAMLProviderRequest");
    var se_TagServerCertificateRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SCN] != null) {
        entries[_SCN] = input[_SCN];
      }
      if (input[_T2] != null) {
        const memberEntries = se_tagListType2(input[_T2], context);
        if (input[_T2]?.length === 0) {
          entries.Tags = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Tags.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_TagServerCertificateRequest");
    var se_TagUserRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_UN] != null) {
        entries[_UN] = input[_UN];
      }
      if (input[_T2] != null) {
        const memberEntries = se_tagListType2(input[_T2], context);
        if (input[_T2]?.length === 0) {
          entries.Tags = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Tags.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_TagUserRequest");
    var se_thumbprintListType = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      let counter = 1;
      for (const entry of input) {
        if (entry === null) {
          continue;
        }
        entries[`member.${counter}`] = entry;
        counter++;
      }
      return entries;
    }, "se_thumbprintListType");
    var se_UntagInstanceProfileRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_IPN] != null) {
        entries[_IPN] = input[_IPN];
      }
      if (input[_TK] != null) {
        const memberEntries = se_tagKeyListType2(input[_TK], context);
        if (input[_TK]?.length === 0) {
          entries.TagKeys = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagKeys.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_UntagInstanceProfileRequest");
    var se_UntagMFADeviceRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SNe] != null) {
        entries[_SNe] = input[_SNe];
      }
      if (input[_TK] != null) {
        const memberEntries = se_tagKeyListType2(input[_TK], context);
        if (input[_TK]?.length === 0) {
          entries.TagKeys = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagKeys.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_UntagMFADeviceRequest");
    var se_UntagOpenIDConnectProviderRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_OIDCPA] != null) {
        entries[_OIDCPA] = input[_OIDCPA];
      }
      if (input[_TK] != null) {
        const memberEntries = se_tagKeyListType2(input[_TK], context);
        if (input[_TK]?.length === 0) {
          entries.TagKeys = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagKeys.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_UntagOpenIDConnectProviderRequest");
    var se_UntagPolicyRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_PA2] != null) {
        entries[_PA2] = input[_PA2];
      }
      if (input[_TK] != null) {
        const memberEntries = se_tagKeyListType2(input[_TK], context);
        if (input[_TK]?.length === 0) {
          entries.TagKeys = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagKeys.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_UntagPolicyRequest");
    var se_UntagRoleRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RN] != null) {
        entries[_RN] = input[_RN];
      }
      if (input[_TK] != null) {
        const memberEntries = se_tagKeyListType2(input[_TK], context);
        if (input[_TK]?.length === 0) {
          entries.TagKeys = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagKeys.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_UntagRoleRequest");
    var se_UntagSAMLProviderRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SAMLPA] != null) {
        entries[_SAMLPA] = input[_SAMLPA];
      }
      if (input[_TK] != null) {
        const memberEntries = se_tagKeyListType2(input[_TK], context);
        if (input[_TK]?.length === 0) {
          entries.TagKeys = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagKeys.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_UntagSAMLProviderRequest");
    var se_UntagServerCertificateRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SCN] != null) {
        entries[_SCN] = input[_SCN];
      }
      if (input[_TK] != null) {
        const memberEntries = se_tagKeyListType2(input[_TK], context);
        if (input[_TK]?.length === 0) {
          entries.TagKeys = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagKeys.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_UntagServerCertificateRequest");
    var se_UntagUserRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_UN] != null) {
        entries[_UN] = input[_UN];
      }
      if (input[_TK] != null) {
        const memberEntries = se_tagKeyListType2(input[_TK], context);
        if (input[_TK]?.length === 0) {
          entries.TagKeys = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `TagKeys.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_UntagUserRequest");
    var se_UpdateAccessKeyRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_UN] != null) {
        entries[_UN] = input[_UN];
      }
      if (input[_AKI2] != null) {
        entries[_AKI2] = input[_AKI2];
      }
      if (input[_St] != null) {
        entries[_St] = input[_St];
      }
      return entries;
    }, "se_UpdateAccessKeyRequest");
    var se_UpdateAccountPasswordPolicyRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_MPL] != null) {
        entries[_MPL] = input[_MPL];
      }
      if (input[_RS] != null) {
        entries[_RS] = input[_RS];
      }
      if (input[_RNe] != null) {
        entries[_RNe] = input[_RNe];
      }
      if (input[_RUC] != null) {
        entries[_RUC] = input[_RUC];
      }
      if (input[_RLC] != null) {
        entries[_RLC] = input[_RLC];
      }
      if (input[_AUTCP] != null) {
        entries[_AUTCP] = input[_AUTCP];
      }
      if (input[_MPA] != null) {
        entries[_MPA] = input[_MPA];
      }
      if (input[_PRPa] != null) {
        entries[_PRPa] = input[_PRPa];
      }
      if (input[_HE] != null) {
        entries[_HE] = input[_HE];
      }
      return entries;
    }, "se_UpdateAccountPasswordPolicyRequest");
    var se_UpdateAssumeRolePolicyRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RN] != null) {
        entries[_RN] = input[_RN];
      }
      if (input[_PD] != null) {
        entries[_PD] = input[_PD];
      }
      return entries;
    }, "se_UpdateAssumeRolePolicyRequest");
    var se_UpdateGroupRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_GN] != null) {
        entries[_GN] = input[_GN];
      }
      if (input[_NPe] != null) {
        entries[_NPe] = input[_NPe];
      }
      if (input[_NGN] != null) {
        entries[_NGN] = input[_NGN];
      }
      return entries;
    }, "se_UpdateGroupRequest");
    var se_UpdateLoginProfileRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_UN] != null) {
        entries[_UN] = input[_UN];
      }
      if (input[_Pa] != null) {
        entries[_Pa] = input[_Pa];
      }
      if (input[_PRR] != null) {
        entries[_PRR] = input[_PRR];
      }
      return entries;
    }, "se_UpdateLoginProfileRequest");
    var se_UpdateOpenIDConnectProviderThumbprintRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_OIDCPA] != null) {
        entries[_OIDCPA] = input[_OIDCPA];
      }
      if (input[_TL] != null) {
        const memberEntries = se_thumbprintListType(input[_TL], context);
        if (input[_TL]?.length === 0) {
          entries.ThumbprintList = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `ThumbprintList.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_UpdateOpenIDConnectProviderThumbprintRequest");
    var se_UpdateRoleDescriptionRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RN] != null) {
        entries[_RN] = input[_RN];
      }
      if (input[_D] != null) {
        entries[_D] = input[_D];
      }
      return entries;
    }, "se_UpdateRoleDescriptionRequest");
    var se_UpdateRoleRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_RN] != null) {
        entries[_RN] = input[_RN];
      }
      if (input[_D] != null) {
        entries[_D] = input[_D];
      }
      if (input[_MSD] != null) {
        entries[_MSD] = input[_MSD];
      }
      return entries;
    }, "se_UpdateRoleRequest");
    var se_UpdateSAMLProviderRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SAMLMD] != null) {
        entries[_SAMLMD] = input[_SAMLMD];
      }
      if (input[_SAMLPA] != null) {
        entries[_SAMLPA] = input[_SAMLPA];
      }
      if (input[_AEM] != null) {
        entries[_AEM] = input[_AEM];
      }
      if (input[_APK] != null) {
        entries[_APK] = input[_APK];
      }
      if (input[_RPK] != null) {
        entries[_RPK] = input[_RPK];
      }
      return entries;
    }, "se_UpdateSAMLProviderRequest");
    var se_UpdateServerCertificateRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_SCN] != null) {
        entries[_SCN] = input[_SCN];
      }
      if (input[_NPe] != null) {
        entries[_NPe] = input[_NPe];
      }
      if (input[_NSCN] != null) {
        entries[_NSCN] = input[_NSCN];
      }
      return entries;
    }, "se_UpdateServerCertificateRequest");
    var se_UpdateServiceSpecificCredentialRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_UN] != null) {
        entries[_UN] = input[_UN];
      }
      if (input[_SSCI] != null) {
        entries[_SSCI] = input[_SSCI];
      }
      if (input[_St] != null) {
        entries[_St] = input[_St];
      }
      return entries;
    }, "se_UpdateServiceSpecificCredentialRequest");
    var se_UpdateSigningCertificateRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_UN] != null) {
        entries[_UN] = input[_UN];
      }
      if (input[_CI] != null) {
        entries[_CI] = input[_CI];
      }
      if (input[_St] != null) {
        entries[_St] = input[_St];
      }
      return entries;
    }, "se_UpdateSigningCertificateRequest");
    var se_UpdateSSHPublicKeyRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_UN] != null) {
        entries[_UN] = input[_UN];
      }
      if (input[_SSHPKI] != null) {
        entries[_SSHPKI] = input[_SSHPKI];
      }
      if (input[_St] != null) {
        entries[_St] = input[_St];
      }
      return entries;
    }, "se_UpdateSSHPublicKeyRequest");
    var se_UpdateUserRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_UN] != null) {
        entries[_UN] = input[_UN];
      }
      if (input[_NPe] != null) {
        entries[_NPe] = input[_NPe];
      }
      if (input[_NUN] != null) {
        entries[_NUN] = input[_NUN];
      }
      return entries;
    }, "se_UpdateUserRequest");
    var se_UploadServerCertificateRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_P2] != null) {
        entries[_P2] = input[_P2];
      }
      if (input[_SCN] != null) {
        entries[_SCN] = input[_SCN];
      }
      if (input[_CB] != null) {
        entries[_CB] = input[_CB];
      }
      if (input[_PK] != null) {
        entries[_PK] = input[_PK];
      }
      if (input[_CC] != null) {
        entries[_CC] = input[_CC];
      }
      if (input[_T2] != null) {
        const memberEntries = se_tagListType2(input[_T2], context);
        if (input[_T2]?.length === 0) {
          entries.Tags = [];
        }
        Object.entries(memberEntries).forEach(([key, value]) => {
          const loc = `Tags.${key}`;
          entries[loc] = value;
        });
      }
      return entries;
    }, "se_UploadServerCertificateRequest");
    var se_UploadSigningCertificateRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_UN] != null) {
        entries[_UN] = input[_UN];
      }
      if (input[_CB] != null) {
        entries[_CB] = input[_CB];
      }
      return entries;
    }, "se_UploadSigningCertificateRequest");
    var se_UploadSSHPublicKeyRequest = /* @__PURE__ */ __name2((input, context) => {
      const entries = {};
      if (input[_UN] != null) {
        entries[_UN] = input[_UN];
      }
      if (input[_SSHPKB] != null) {
        entries[_SSHPKB] = input[_SSHPKB];
      }
      return entries;
    }, "se_UploadSSHPublicKeyRequest");
    var de_AccessDetail = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_SN2] != null) {
        contents[_SN2] = (0, import_smithy_client28.expectString)(output[_SN2]);
      }
      if (output[_SNer] != null) {
        contents[_SNer] = (0, import_smithy_client28.expectString)(output[_SNer]);
      }
      if (output[_R] != null) {
        contents[_R] = (0, import_smithy_client28.expectString)(output[_R]);
      }
      if (output[_EP] != null) {
        contents[_EP] = (0, import_smithy_client28.expectString)(output[_EP]);
      }
      if (output[_LAT] != null) {
        contents[_LAT] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_LAT]));
      }
      if (output[_TAE] != null) {
        contents[_TAE] = (0, import_smithy_client28.strictParseInt32)(output[_TAE]);
      }
      return contents;
    }, "de_AccessDetail");
    var de_AccessDetails = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_AccessDetail(entry, context);
      });
    }, "de_AccessDetails");
    var de_AccessKey = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_UN] != null) {
        contents[_UN] = (0, import_smithy_client28.expectString)(output[_UN]);
      }
      if (output[_AKI2] != null) {
        contents[_AKI2] = (0, import_smithy_client28.expectString)(output[_AKI2]);
      }
      if (output[_St] != null) {
        contents[_St] = (0, import_smithy_client28.expectString)(output[_St]);
      }
      if (output[_SAK2] != null) {
        contents[_SAK2] = (0, import_smithy_client28.expectString)(output[_SAK2]);
      }
      if (output[_CD] != null) {
        contents[_CD] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_CD]));
      }
      return contents;
    }, "de_AccessKey");
    var de_AccessKeyLastUsed = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_LUD] != null) {
        contents[_LUD] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_LUD]));
      }
      if (output[_SN2] != null) {
        contents[_SN2] = (0, import_smithy_client28.expectString)(output[_SN2]);
      }
      if (output[_R] != null) {
        contents[_R] = (0, import_smithy_client28.expectString)(output[_R]);
      }
      return contents;
    }, "de_AccessKeyLastUsed");
    var de_AccessKeyMetadata = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_UN] != null) {
        contents[_UN] = (0, import_smithy_client28.expectString)(output[_UN]);
      }
      if (output[_AKI2] != null) {
        contents[_AKI2] = (0, import_smithy_client28.expectString)(output[_AKI2]);
      }
      if (output[_St] != null) {
        contents[_St] = (0, import_smithy_client28.expectString)(output[_St]);
      }
      if (output[_CD] != null) {
        contents[_CD] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_CD]));
      }
      return contents;
    }, "de_AccessKeyMetadata");
    var de_accessKeyMetadataListType = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_AccessKeyMetadata(entry, context);
      });
    }, "de_accessKeyMetadataListType");
    var de_accountAliasListType = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_accountAliasListType");
    var de_AccountNotManagementOrDelegatedAdministratorException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_AccountNotManagementOrDelegatedAdministratorException");
    var de_ArnListType = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_ArnListType");
    var de_AttachedPermissionsBoundary = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_PBT] != null) {
        contents[_PBT] = (0, import_smithy_client28.expectString)(output[_PBT]);
      }
      if (output[_PBA] != null) {
        contents[_PBA] = (0, import_smithy_client28.expectString)(output[_PBA]);
      }
      return contents;
    }, "de_AttachedPermissionsBoundary");
    var de_attachedPoliciesListType = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_AttachedPolicy(entry, context);
      });
    }, "de_attachedPoliciesListType");
    var de_AttachedPolicy = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_PN] != null) {
        contents[_PN] = (0, import_smithy_client28.expectString)(output[_PN]);
      }
      if (output[_PA2] != null) {
        contents[_PA2] = (0, import_smithy_client28.expectString)(output[_PA2]);
      }
      return contents;
    }, "de_AttachedPolicy");
    var de_CallerIsNotManagementAccountException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_CallerIsNotManagementAccountException");
    var de_certificateListType = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_SigningCertificate(entry, context);
      });
    }, "de_certificateListType");
    var de_CertificationMapType = /* @__PURE__ */ __name2((output, context) => {
      return output.reduce((acc, pair) => {
        if (pair["value"] === null) {
          return acc;
        }
        acc[pair["key"]] = (0, import_smithy_client28.expectString)(pair["value"]);
        return acc;
      }, {});
    }, "de_CertificationMapType");
    var de_clientIDListType = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_clientIDListType");
    var de_ConcurrentModificationException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_m2] != null) {
        contents[_m2] = (0, import_smithy_client28.expectString)(output[_m2]);
      }
      return contents;
    }, "de_ConcurrentModificationException");
    var de_ContextKeyNamesResultListType = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_ContextKeyNamesResultListType");
    var de_CreateAccessKeyResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_AK] != null) {
        contents[_AK] = de_AccessKey(output[_AK], context);
      }
      return contents;
    }, "de_CreateAccessKeyResponse");
    var de_CreateGroupResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Gr] != null) {
        contents[_Gr] = de_Group(output[_Gr], context);
      }
      return contents;
    }, "de_CreateGroupResponse");
    var de_CreateInstanceProfileResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_IP] != null) {
        contents[_IP] = de_InstanceProfile(output[_IP], context);
      }
      return contents;
    }, "de_CreateInstanceProfileResponse");
    var de_CreateLoginProfileResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_LPo] != null) {
        contents[_LPo] = de_LoginProfile(output[_LPo], context);
      }
      return contents;
    }, "de_CreateLoginProfileResponse");
    var de_CreateOpenIDConnectProviderResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_OIDCPA] != null) {
        contents[_OIDCPA] = (0, import_smithy_client28.expectString)(output[_OIDCPA]);
      }
      if (output.Tags === "") {
        contents[_T2] = [];
      } else if (output[_T2] != null && output[_T2][_me] != null) {
        contents[_T2] = de_tagListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_T2][_me]), context);
      }
      return contents;
    }, "de_CreateOpenIDConnectProviderResponse");
    var de_CreatePolicyResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Po] != null) {
        contents[_Po] = de_Policy(output[_Po], context);
      }
      return contents;
    }, "de_CreatePolicyResponse");
    var de_CreatePolicyVersionResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_PV] != null) {
        contents[_PV] = de_PolicyVersion(output[_PV], context);
      }
      return contents;
    }, "de_CreatePolicyVersionResponse");
    var de_CreateRoleResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Ro] != null) {
        contents[_Ro] = de_Role(output[_Ro], context);
      }
      return contents;
    }, "de_CreateRoleResponse");
    var de_CreateSAMLProviderResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_SAMLPA] != null) {
        contents[_SAMLPA] = (0, import_smithy_client28.expectString)(output[_SAMLPA]);
      }
      if (output.Tags === "") {
        contents[_T2] = [];
      } else if (output[_T2] != null && output[_T2][_me] != null) {
        contents[_T2] = de_tagListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_T2][_me]), context);
      }
      return contents;
    }, "de_CreateSAMLProviderResponse");
    var de_CreateServiceLinkedRoleResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Ro] != null) {
        contents[_Ro] = de_Role(output[_Ro], context);
      }
      return contents;
    }, "de_CreateServiceLinkedRoleResponse");
    var de_CreateServiceSpecificCredentialResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_SSC] != null) {
        contents[_SSC] = de_ServiceSpecificCredential(output[_SSC], context);
      }
      return contents;
    }, "de_CreateServiceSpecificCredentialResponse");
    var de_CreateUserResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Us] != null) {
        contents[_Us] = de_User(output[_Us], context);
      }
      return contents;
    }, "de_CreateUserResponse");
    var de_CreateVirtualMFADeviceResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_VMFAD] != null) {
        contents[_VMFAD] = de_VirtualMFADevice(output[_VMFAD], context);
      }
      return contents;
    }, "de_CreateVirtualMFADeviceResponse");
    var de_CredentialReportExpiredException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_m2] != null) {
        contents[_m2] = (0, import_smithy_client28.expectString)(output[_m2]);
      }
      return contents;
    }, "de_CredentialReportExpiredException");
    var de_CredentialReportNotPresentException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_m2] != null) {
        contents[_m2] = (0, import_smithy_client28.expectString)(output[_m2]);
      }
      return contents;
    }, "de_CredentialReportNotPresentException");
    var de_CredentialReportNotReadyException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_m2] != null) {
        contents[_m2] = (0, import_smithy_client28.expectString)(output[_m2]);
      }
      return contents;
    }, "de_CredentialReportNotReadyException");
    var de_DeleteConflictException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_m2] != null) {
        contents[_m2] = (0, import_smithy_client28.expectString)(output[_m2]);
      }
      return contents;
    }, "de_DeleteConflictException");
    var de_DeleteServiceLinkedRoleResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_DTI] != null) {
        contents[_DTI] = (0, import_smithy_client28.expectString)(output[_DTI]);
      }
      return contents;
    }, "de_DeleteServiceLinkedRoleResponse");
    var de_DeletionTaskFailureReasonType = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Re] != null) {
        contents[_Re] = (0, import_smithy_client28.expectString)(output[_Re]);
      }
      if (output.RoleUsageList === "") {
        contents[_RUL] = [];
      } else if (output[_RUL] != null && output[_RUL][_me] != null) {
        contents[_RUL] = de_RoleUsageListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_RUL][_me]), context);
      }
      return contents;
    }, "de_DeletionTaskFailureReasonType");
    var de_DisableOrganizationsRootCredentialsManagementResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_OI] != null) {
        contents[_OI] = (0, import_smithy_client28.expectString)(output[_OI]);
      }
      if (output.EnabledFeatures === "") {
        contents[_EFn] = [];
      } else if (output[_EFn] != null && output[_EFn][_me] != null) {
        contents[_EFn] = de_FeaturesListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_EFn][_me]), context);
      }
      return contents;
    }, "de_DisableOrganizationsRootCredentialsManagementResponse");
    var de_DisableOrganizationsRootSessionsResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_OI] != null) {
        contents[_OI] = (0, import_smithy_client28.expectString)(output[_OI]);
      }
      if (output.EnabledFeatures === "") {
        contents[_EFn] = [];
      } else if (output[_EFn] != null && output[_EFn][_me] != null) {
        contents[_EFn] = de_FeaturesListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_EFn][_me]), context);
      }
      return contents;
    }, "de_DisableOrganizationsRootSessionsResponse");
    var de_DuplicateCertificateException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_m2] != null) {
        contents[_m2] = (0, import_smithy_client28.expectString)(output[_m2]);
      }
      return contents;
    }, "de_DuplicateCertificateException");
    var de_DuplicateSSHPublicKeyException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_m2] != null) {
        contents[_m2] = (0, import_smithy_client28.expectString)(output[_m2]);
      }
      return contents;
    }, "de_DuplicateSSHPublicKeyException");
    var de_EnableOrganizationsRootCredentialsManagementResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_OI] != null) {
        contents[_OI] = (0, import_smithy_client28.expectString)(output[_OI]);
      }
      if (output.EnabledFeatures === "") {
        contents[_EFn] = [];
      } else if (output[_EFn] != null && output[_EFn][_me] != null) {
        contents[_EFn] = de_FeaturesListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_EFn][_me]), context);
      }
      return contents;
    }, "de_EnableOrganizationsRootCredentialsManagementResponse");
    var de_EnableOrganizationsRootSessionsResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_OI] != null) {
        contents[_OI] = (0, import_smithy_client28.expectString)(output[_OI]);
      }
      if (output.EnabledFeatures === "") {
        contents[_EFn] = [];
      } else if (output[_EFn] != null && output[_EFn][_me] != null) {
        contents[_EFn] = de_FeaturesListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_EFn][_me]), context);
      }
      return contents;
    }, "de_EnableOrganizationsRootSessionsResponse");
    var de_EntityAlreadyExistsException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_m2] != null) {
        contents[_m2] = (0, import_smithy_client28.expectString)(output[_m2]);
      }
      return contents;
    }, "de_EntityAlreadyExistsException");
    var de_EntityDetails = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_EI2] != null) {
        contents[_EI2] = de_EntityInfo(output[_EI2], context);
      }
      if (output[_LA] != null) {
        contents[_LA] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_LA]));
      }
      return contents;
    }, "de_EntityDetails");
    var de_entityDetailsListType = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_EntityDetails(entry, context);
      });
    }, "de_entityDetailsListType");
    var de_EntityInfo = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Ar2] != null) {
        contents[_Ar2] = (0, import_smithy_client28.expectString)(output[_Ar2]);
      }
      if (output[_N] != null) {
        contents[_N] = (0, import_smithy_client28.expectString)(output[_N]);
      }
      if (output[_Ty] != null) {
        contents[_Ty] = (0, import_smithy_client28.expectString)(output[_Ty]);
      }
      if (output[_I] != null) {
        contents[_I] = (0, import_smithy_client28.expectString)(output[_I]);
      }
      if (output[_P2] != null) {
        contents[_P2] = (0, import_smithy_client28.expectString)(output[_P2]);
      }
      return contents;
    }, "de_EntityInfo");
    var de_EntityTemporarilyUnmodifiableException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_m2] != null) {
        contents[_m2] = (0, import_smithy_client28.expectString)(output[_m2]);
      }
      return contents;
    }, "de_EntityTemporarilyUnmodifiableException");
    var de_ErrorDetails = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      if (output[_C2] != null) {
        contents[_C2] = (0, import_smithy_client28.expectString)(output[_C2]);
      }
      return contents;
    }, "de_ErrorDetails");
    var de_EvalDecisionDetailsType = /* @__PURE__ */ __name2((output, context) => {
      return output.reduce((acc, pair) => {
        if (pair["value"] === null) {
          return acc;
        }
        acc[pair["key"]] = (0, import_smithy_client28.expectString)(pair["value"]);
        return acc;
      }, {});
    }, "de_EvalDecisionDetailsType");
    var de_EvaluationResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_EAN] != null) {
        contents[_EAN] = (0, import_smithy_client28.expectString)(output[_EAN]);
      }
      if (output[_ERN] != null) {
        contents[_ERN] = (0, import_smithy_client28.expectString)(output[_ERN]);
      }
      if (output[_ED] != null) {
        contents[_ED] = (0, import_smithy_client28.expectString)(output[_ED]);
      }
      if (output.MatchedStatements === "") {
        contents[_MS] = [];
      } else if (output[_MS] != null && output[_MS][_me] != null) {
        contents[_MS] = de_StatementListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_MS][_me]), context);
      }
      if (output.MissingContextValues === "") {
        contents[_MCV] = [];
      } else if (output[_MCV] != null && output[_MCV][_me] != null) {
        contents[_MCV] = de_ContextKeyNamesResultListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_MCV][_me]), context);
      }
      if (output[_ODD] != null) {
        contents[_ODD] = de_OrganizationsDecisionDetail(output[_ODD], context);
      }
      if (output[_PBDD] != null) {
        contents[_PBDD] = de_PermissionsBoundaryDecisionDetail(output[_PBDD], context);
      }
      if (output.EvalDecisionDetails === "") {
        contents[_EDD] = {};
      } else if (output[_EDD] != null && output[_EDD][_e] != null) {
        contents[_EDD] = de_EvalDecisionDetailsType((0, import_smithy_client28.getArrayIfSingleItem)(output[_EDD][_e]), context);
      }
      if (output.ResourceSpecificResults === "") {
        contents[_RSR] = [];
      } else if (output[_RSR] != null && output[_RSR][_me] != null) {
        contents[_RSR] = de_ResourceSpecificResultListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_RSR][_me]), context);
      }
      return contents;
    }, "de_EvaluationResult");
    var de_EvaluationResultsListType = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_EvaluationResult(entry, context);
      });
    }, "de_EvaluationResultsListType");
    var de_FeaturesListType = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_FeaturesListType");
    var de_GenerateCredentialReportResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Sta] != null) {
        contents[_Sta] = (0, import_smithy_client28.expectString)(output[_Sta]);
      }
      if (output[_D] != null) {
        contents[_D] = (0, import_smithy_client28.expectString)(output[_D]);
      }
      return contents;
    }, "de_GenerateCredentialReportResponse");
    var de_GenerateOrganizationsAccessReportResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_JI] != null) {
        contents[_JI] = (0, import_smithy_client28.expectString)(output[_JI]);
      }
      return contents;
    }, "de_GenerateOrganizationsAccessReportResponse");
    var de_GenerateServiceLastAccessedDetailsResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_JI] != null) {
        contents[_JI] = (0, import_smithy_client28.expectString)(output[_JI]);
      }
      return contents;
    }, "de_GenerateServiceLastAccessedDetailsResponse");
    var de_GetAccessKeyLastUsedResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_UN] != null) {
        contents[_UN] = (0, import_smithy_client28.expectString)(output[_UN]);
      }
      if (output[_AKLU] != null) {
        contents[_AKLU] = de_AccessKeyLastUsed(output[_AKLU], context);
      }
      return contents;
    }, "de_GetAccessKeyLastUsedResponse");
    var de_GetAccountAuthorizationDetailsResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.UserDetailList === "") {
        contents[_UDL] = [];
      } else if (output[_UDL] != null && output[_UDL][_me] != null) {
        contents[_UDL] = de_userDetailListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_UDL][_me]), context);
      }
      if (output.GroupDetailList === "") {
        contents[_GDL] = [];
      } else if (output[_GDL] != null && output[_GDL][_me] != null) {
        contents[_GDL] = de_groupDetailListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_GDL][_me]), context);
      }
      if (output.RoleDetailList === "") {
        contents[_RDL] = [];
      } else if (output[_RDL] != null && output[_RDL][_me] != null) {
        contents[_RDL] = de_roleDetailListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_RDL][_me]), context);
      }
      if (output.Policies === "") {
        contents[_Pol] = [];
      } else if (output[_Pol] != null && output[_Pol][_me] != null) {
        contents[_Pol] = de_ManagedPolicyDetailListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_Pol][_me]), context);
      }
      if (output[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(output[_IT]);
      }
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_GetAccountAuthorizationDetailsResponse");
    var de_GetAccountPasswordPolicyResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_PPa] != null) {
        contents[_PPa] = de_PasswordPolicy(output[_PPa], context);
      }
      return contents;
    }, "de_GetAccountPasswordPolicyResponse");
    var de_GetAccountSummaryResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.SummaryMap === "") {
        contents[_SM] = {};
      } else if (output[_SM] != null && output[_SM][_e] != null) {
        contents[_SM] = de_summaryMapType((0, import_smithy_client28.getArrayIfSingleItem)(output[_SM][_e]), context);
      }
      return contents;
    }, "de_GetAccountSummaryResponse");
    var de_GetContextKeysForPolicyResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.ContextKeyNames === "") {
        contents[_CKNo] = [];
      } else if (output[_CKNo] != null && output[_CKNo][_me] != null) {
        contents[_CKNo] = de_ContextKeyNamesResultListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_CKNo][_me]), context);
      }
      return contents;
    }, "de_GetContextKeysForPolicyResponse");
    var de_GetCredentialReportResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Co] != null) {
        contents[_Co] = context.base64Decoder(output[_Co]);
      }
      if (output[_RF] != null) {
        contents[_RF] = (0, import_smithy_client28.expectString)(output[_RF]);
      }
      if (output[_GT] != null) {
        contents[_GT] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_GT]));
      }
      return contents;
    }, "de_GetCredentialReportResponse");
    var de_GetGroupPolicyResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_GN] != null) {
        contents[_GN] = (0, import_smithy_client28.expectString)(output[_GN]);
      }
      if (output[_PN] != null) {
        contents[_PN] = (0, import_smithy_client28.expectString)(output[_PN]);
      }
      if (output[_PD] != null) {
        contents[_PD] = (0, import_smithy_client28.expectString)(output[_PD]);
      }
      return contents;
    }, "de_GetGroupPolicyResponse");
    var de_GetGroupResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Gr] != null) {
        contents[_Gr] = de_Group(output[_Gr], context);
      }
      if (output.Users === "") {
        contents[_Use] = [];
      } else if (output[_Use] != null && output[_Use][_me] != null) {
        contents[_Use] = de_userListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_Use][_me]), context);
      }
      if (output[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(output[_IT]);
      }
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_GetGroupResponse");
    var de_GetInstanceProfileResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_IP] != null) {
        contents[_IP] = de_InstanceProfile(output[_IP], context);
      }
      return contents;
    }, "de_GetInstanceProfileResponse");
    var de_GetLoginProfileResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_LPo] != null) {
        contents[_LPo] = de_LoginProfile(output[_LPo], context);
      }
      return contents;
    }, "de_GetLoginProfileResponse");
    var de_GetMFADeviceResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_UN] != null) {
        contents[_UN] = (0, import_smithy_client28.expectString)(output[_UN]);
      }
      if (output[_SNe] != null) {
        contents[_SNe] = (0, import_smithy_client28.expectString)(output[_SNe]);
      }
      if (output[_EDn] != null) {
        contents[_EDn] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_EDn]));
      }
      if (output.Certifications === "") {
        contents[_Ce] = {};
      } else if (output[_Ce] != null && output[_Ce][_e] != null) {
        contents[_Ce] = de_CertificationMapType((0, import_smithy_client28.getArrayIfSingleItem)(output[_Ce][_e]), context);
      }
      return contents;
    }, "de_GetMFADeviceResponse");
    var de_GetOpenIDConnectProviderResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_U] != null) {
        contents[_U] = (0, import_smithy_client28.expectString)(output[_U]);
      }
      if (output.ClientIDList === "") {
        contents[_CIDL] = [];
      } else if (output[_CIDL] != null && output[_CIDL][_me] != null) {
        contents[_CIDL] = de_clientIDListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_CIDL][_me]), context);
      }
      if (output.ThumbprintList === "") {
        contents[_TL] = [];
      } else if (output[_TL] != null && output[_TL][_me] != null) {
        contents[_TL] = de_thumbprintListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_TL][_me]), context);
      }
      if (output[_CD] != null) {
        contents[_CD] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_CD]));
      }
      if (output.Tags === "") {
        contents[_T2] = [];
      } else if (output[_T2] != null && output[_T2][_me] != null) {
        contents[_T2] = de_tagListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_T2][_me]), context);
      }
      return contents;
    }, "de_GetOpenIDConnectProviderResponse");
    var de_GetOrganizationsAccessReportResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_JS] != null) {
        contents[_JS] = (0, import_smithy_client28.expectString)(output[_JS]);
      }
      if (output[_JCD] != null) {
        contents[_JCD] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_JCD]));
      }
      if (output[_JCDo] != null) {
        contents[_JCDo] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_JCDo]));
      }
      if (output[_NOSA] != null) {
        contents[_NOSA] = (0, import_smithy_client28.strictParseInt32)(output[_NOSA]);
      }
      if (output[_NOSNA] != null) {
        contents[_NOSNA] = (0, import_smithy_client28.strictParseInt32)(output[_NOSNA]);
      }
      if (output.AccessDetails === "") {
        contents[_AD] = [];
      } else if (output[_AD] != null && output[_AD][_me] != null) {
        contents[_AD] = de_AccessDetails((0, import_smithy_client28.getArrayIfSingleItem)(output[_AD][_me]), context);
      }
      if (output[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(output[_IT]);
      }
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      if (output[_EDr] != null) {
        contents[_EDr] = de_ErrorDetails(output[_EDr], context);
      }
      return contents;
    }, "de_GetOrganizationsAccessReportResponse");
    var de_GetPolicyResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Po] != null) {
        contents[_Po] = de_Policy(output[_Po], context);
      }
      return contents;
    }, "de_GetPolicyResponse");
    var de_GetPolicyVersionResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_PV] != null) {
        contents[_PV] = de_PolicyVersion(output[_PV], context);
      }
      return contents;
    }, "de_GetPolicyVersionResponse");
    var de_GetRolePolicyResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_RN] != null) {
        contents[_RN] = (0, import_smithy_client28.expectString)(output[_RN]);
      }
      if (output[_PN] != null) {
        contents[_PN] = (0, import_smithy_client28.expectString)(output[_PN]);
      }
      if (output[_PD] != null) {
        contents[_PD] = (0, import_smithy_client28.expectString)(output[_PD]);
      }
      return contents;
    }, "de_GetRolePolicyResponse");
    var de_GetRoleResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Ro] != null) {
        contents[_Ro] = de_Role(output[_Ro], context);
      }
      return contents;
    }, "de_GetRoleResponse");
    var de_GetSAMLProviderResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_SAMLPUUID] != null) {
        contents[_SAMLPUUID] = (0, import_smithy_client28.expectString)(output[_SAMLPUUID]);
      }
      if (output[_SAMLMD] != null) {
        contents[_SAMLMD] = (0, import_smithy_client28.expectString)(output[_SAMLMD]);
      }
      if (output[_CD] != null) {
        contents[_CD] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_CD]));
      }
      if (output[_VU] != null) {
        contents[_VU] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_VU]));
      }
      if (output.Tags === "") {
        contents[_T2] = [];
      } else if (output[_T2] != null && output[_T2][_me] != null) {
        contents[_T2] = de_tagListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_T2][_me]), context);
      }
      if (output[_AEM] != null) {
        contents[_AEM] = (0, import_smithy_client28.expectString)(output[_AEM]);
      }
      if (output.PrivateKeyList === "") {
        contents[_PKL] = [];
      } else if (output[_PKL] != null && output[_PKL][_me] != null) {
        contents[_PKL] = de_privateKeyList((0, import_smithy_client28.getArrayIfSingleItem)(output[_PKL][_me]), context);
      }
      return contents;
    }, "de_GetSAMLProviderResponse");
    var de_GetServerCertificateResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_SC] != null) {
        contents[_SC] = de_ServerCertificate(output[_SC], context);
      }
      return contents;
    }, "de_GetServerCertificateResponse");
    var de_GetServiceLastAccessedDetailsResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_JS] != null) {
        contents[_JS] = (0, import_smithy_client28.expectString)(output[_JS]);
      }
      if (output[_JT] != null) {
        contents[_JT] = (0, import_smithy_client28.expectString)(output[_JT]);
      }
      if (output[_JCD] != null) {
        contents[_JCD] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_JCD]));
      }
      if (output.ServicesLastAccessed === "") {
        contents[_SLA] = [];
      } else if (output[_SLA] != null && output[_SLA][_me] != null) {
        contents[_SLA] = de_ServicesLastAccessed((0, import_smithy_client28.getArrayIfSingleItem)(output[_SLA][_me]), context);
      }
      if (output[_JCDo] != null) {
        contents[_JCDo] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_JCDo]));
      }
      if (output[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(output[_IT]);
      }
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      if (output[_Er] != null) {
        contents[_Er] = de_ErrorDetails(output[_Er], context);
      }
      return contents;
    }, "de_GetServiceLastAccessedDetailsResponse");
    var de_GetServiceLastAccessedDetailsWithEntitiesResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_JS] != null) {
        contents[_JS] = (0, import_smithy_client28.expectString)(output[_JS]);
      }
      if (output[_JCD] != null) {
        contents[_JCD] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_JCD]));
      }
      if (output[_JCDo] != null) {
        contents[_JCDo] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_JCDo]));
      }
      if (output.EntityDetailsList === "") {
        contents[_EDL] = [];
      } else if (output[_EDL] != null && output[_EDL][_me] != null) {
        contents[_EDL] = de_entityDetailsListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_EDL][_me]), context);
      }
      if (output[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(output[_IT]);
      }
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      if (output[_Er] != null) {
        contents[_Er] = de_ErrorDetails(output[_Er], context);
      }
      return contents;
    }, "de_GetServiceLastAccessedDetailsWithEntitiesResponse");
    var de_GetServiceLinkedRoleDeletionStatusResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_St] != null) {
        contents[_St] = (0, import_smithy_client28.expectString)(output[_St]);
      }
      if (output[_Re] != null) {
        contents[_Re] = de_DeletionTaskFailureReasonType(output[_Re], context);
      }
      return contents;
    }, "de_GetServiceLinkedRoleDeletionStatusResponse");
    var de_GetSSHPublicKeyResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_SSHPK] != null) {
        contents[_SSHPK] = de_SSHPublicKey(output[_SSHPK], context);
      }
      return contents;
    }, "de_GetSSHPublicKeyResponse");
    var de_GetUserPolicyResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_UN] != null) {
        contents[_UN] = (0, import_smithy_client28.expectString)(output[_UN]);
      }
      if (output[_PN] != null) {
        contents[_PN] = (0, import_smithy_client28.expectString)(output[_PN]);
      }
      if (output[_PD] != null) {
        contents[_PD] = (0, import_smithy_client28.expectString)(output[_PD]);
      }
      return contents;
    }, "de_GetUserPolicyResponse");
    var de_GetUserResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Us] != null) {
        contents[_Us] = de_User(output[_Us], context);
      }
      return contents;
    }, "de_GetUserResponse");
    var de_Group = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_P2] != null) {
        contents[_P2] = (0, import_smithy_client28.expectString)(output[_P2]);
      }
      if (output[_GN] != null) {
        contents[_GN] = (0, import_smithy_client28.expectString)(output[_GN]);
      }
      if (output[_GI] != null) {
        contents[_GI] = (0, import_smithy_client28.expectString)(output[_GI]);
      }
      if (output[_Ar2] != null) {
        contents[_Ar2] = (0, import_smithy_client28.expectString)(output[_Ar2]);
      }
      if (output[_CD] != null) {
        contents[_CD] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_CD]));
      }
      return contents;
    }, "de_Group");
    var de_GroupDetail = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_P2] != null) {
        contents[_P2] = (0, import_smithy_client28.expectString)(output[_P2]);
      }
      if (output[_GN] != null) {
        contents[_GN] = (0, import_smithy_client28.expectString)(output[_GN]);
      }
      if (output[_GI] != null) {
        contents[_GI] = (0, import_smithy_client28.expectString)(output[_GI]);
      }
      if (output[_Ar2] != null) {
        contents[_Ar2] = (0, import_smithy_client28.expectString)(output[_Ar2]);
      }
      if (output[_CD] != null) {
        contents[_CD] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_CD]));
      }
      if (output.GroupPolicyList === "") {
        contents[_GPL] = [];
      } else if (output[_GPL] != null && output[_GPL][_me] != null) {
        contents[_GPL] = de_policyDetailListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_GPL][_me]), context);
      }
      if (output.AttachedManagedPolicies === "") {
        contents[_AMP] = [];
      } else if (output[_AMP] != null && output[_AMP][_me] != null) {
        contents[_AMP] = de_attachedPoliciesListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_AMP][_me]), context);
      }
      return contents;
    }, "de_GroupDetail");
    var de_groupDetailListType = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_GroupDetail(entry, context);
      });
    }, "de_groupDetailListType");
    var de_groupListType = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Group(entry, context);
      });
    }, "de_groupListType");
    var de_groupNameListType = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_groupNameListType");
    var de_InstanceProfile = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_P2] != null) {
        contents[_P2] = (0, import_smithy_client28.expectString)(output[_P2]);
      }
      if (output[_IPN] != null) {
        contents[_IPN] = (0, import_smithy_client28.expectString)(output[_IPN]);
      }
      if (output[_IPI] != null) {
        contents[_IPI] = (0, import_smithy_client28.expectString)(output[_IPI]);
      }
      if (output[_Ar2] != null) {
        contents[_Ar2] = (0, import_smithy_client28.expectString)(output[_Ar2]);
      }
      if (output[_CD] != null) {
        contents[_CD] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_CD]));
      }
      if (output.Roles === "") {
        contents[_Rol] = [];
      } else if (output[_Rol] != null && output[_Rol][_me] != null) {
        contents[_Rol] = de_roleListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_Rol][_me]), context);
      }
      if (output.Tags === "") {
        contents[_T2] = [];
      } else if (output[_T2] != null && output[_T2][_me] != null) {
        contents[_T2] = de_tagListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_T2][_me]), context);
      }
      return contents;
    }, "de_InstanceProfile");
    var de_instanceProfileListType = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_InstanceProfile(entry, context);
      });
    }, "de_instanceProfileListType");
    var de_InvalidAuthenticationCodeException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_m2] != null) {
        contents[_m2] = (0, import_smithy_client28.expectString)(output[_m2]);
      }
      return contents;
    }, "de_InvalidAuthenticationCodeException");
    var de_InvalidCertificateException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_m2] != null) {
        contents[_m2] = (0, import_smithy_client28.expectString)(output[_m2]);
      }
      return contents;
    }, "de_InvalidCertificateException");
    var de_InvalidInputException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_m2] != null) {
        contents[_m2] = (0, import_smithy_client28.expectString)(output[_m2]);
      }
      return contents;
    }, "de_InvalidInputException");
    var de_InvalidPublicKeyException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_m2] != null) {
        contents[_m2] = (0, import_smithy_client28.expectString)(output[_m2]);
      }
      return contents;
    }, "de_InvalidPublicKeyException");
    var de_InvalidUserTypeException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_m2] != null) {
        contents[_m2] = (0, import_smithy_client28.expectString)(output[_m2]);
      }
      return contents;
    }, "de_InvalidUserTypeException");
    var de_KeyPairMismatchException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_m2] != null) {
        contents[_m2] = (0, import_smithy_client28.expectString)(output[_m2]);
      }
      return contents;
    }, "de_KeyPairMismatchException");
    var de_LimitExceededException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_m2] != null) {
        contents[_m2] = (0, import_smithy_client28.expectString)(output[_m2]);
      }
      return contents;
    }, "de_LimitExceededException");
    var de_ListAccessKeysResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.AccessKeyMetadata === "") {
        contents[_AKM] = [];
      } else if (output[_AKM] != null && output[_AKM][_me] != null) {
        contents[_AKM] = de_accessKeyMetadataListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_AKM][_me]), context);
      }
      if (output[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(output[_IT]);
      }
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_ListAccessKeysResponse");
    var de_ListAccountAliasesResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.AccountAliases === "") {
        contents[_AAc] = [];
      } else if (output[_AAc] != null && output[_AAc][_me] != null) {
        contents[_AAc] = de_accountAliasListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_AAc][_me]), context);
      }
      if (output[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(output[_IT]);
      }
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_ListAccountAliasesResponse");
    var de_ListAttachedGroupPoliciesResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.AttachedPolicies === "") {
        contents[_AP] = [];
      } else if (output[_AP] != null && output[_AP][_me] != null) {
        contents[_AP] = de_attachedPoliciesListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_AP][_me]), context);
      }
      if (output[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(output[_IT]);
      }
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_ListAttachedGroupPoliciesResponse");
    var de_ListAttachedRolePoliciesResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.AttachedPolicies === "") {
        contents[_AP] = [];
      } else if (output[_AP] != null && output[_AP][_me] != null) {
        contents[_AP] = de_attachedPoliciesListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_AP][_me]), context);
      }
      if (output[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(output[_IT]);
      }
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_ListAttachedRolePoliciesResponse");
    var de_ListAttachedUserPoliciesResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.AttachedPolicies === "") {
        contents[_AP] = [];
      } else if (output[_AP] != null && output[_AP][_me] != null) {
        contents[_AP] = de_attachedPoliciesListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_AP][_me]), context);
      }
      if (output[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(output[_IT]);
      }
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_ListAttachedUserPoliciesResponse");
    var de_ListEntitiesForPolicyResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.PolicyGroups === "") {
        contents[_PG] = [];
      } else if (output[_PG] != null && output[_PG][_me] != null) {
        contents[_PG] = de_PolicyGroupListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_PG][_me]), context);
      }
      if (output.PolicyUsers === "") {
        contents[_PU] = [];
      } else if (output[_PU] != null && output[_PU][_me] != null) {
        contents[_PU] = de_PolicyUserListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_PU][_me]), context);
      }
      if (output.PolicyRoles === "") {
        contents[_PR] = [];
      } else if (output[_PR] != null && output[_PR][_me] != null) {
        contents[_PR] = de_PolicyRoleListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_PR][_me]), context);
      }
      if (output[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(output[_IT]);
      }
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_ListEntitiesForPolicyResponse");
    var de_ListGroupPoliciesResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.PolicyNames === "") {
        contents[_PNo] = [];
      } else if (output[_PNo] != null && output[_PNo][_me] != null) {
        contents[_PNo] = de_policyNameListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_PNo][_me]), context);
      }
      if (output[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(output[_IT]);
      }
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_ListGroupPoliciesResponse");
    var de_ListGroupsForUserResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.Groups === "") {
        contents[_Gro] = [];
      } else if (output[_Gro] != null && output[_Gro][_me] != null) {
        contents[_Gro] = de_groupListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_Gro][_me]), context);
      }
      if (output[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(output[_IT]);
      }
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_ListGroupsForUserResponse");
    var de_ListGroupsResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.Groups === "") {
        contents[_Gro] = [];
      } else if (output[_Gro] != null && output[_Gro][_me] != null) {
        contents[_Gro] = de_groupListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_Gro][_me]), context);
      }
      if (output[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(output[_IT]);
      }
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_ListGroupsResponse");
    var de_ListInstanceProfilesForRoleResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.InstanceProfiles === "") {
        contents[_IPn] = [];
      } else if (output[_IPn] != null && output[_IPn][_me] != null) {
        contents[_IPn] = de_instanceProfileListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_IPn][_me]), context);
      }
      if (output[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(output[_IT]);
      }
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_ListInstanceProfilesForRoleResponse");
    var de_ListInstanceProfilesResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.InstanceProfiles === "") {
        contents[_IPn] = [];
      } else if (output[_IPn] != null && output[_IPn][_me] != null) {
        contents[_IPn] = de_instanceProfileListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_IPn][_me]), context);
      }
      if (output[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(output[_IT]);
      }
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_ListInstanceProfilesResponse");
    var de_ListInstanceProfileTagsResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.Tags === "") {
        contents[_T2] = [];
      } else if (output[_T2] != null && output[_T2][_me] != null) {
        contents[_T2] = de_tagListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_T2][_me]), context);
      }
      if (output[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(output[_IT]);
      }
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_ListInstanceProfileTagsResponse");
    var de_ListMFADevicesResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.MFADevices === "") {
        contents[_MFAD] = [];
      } else if (output[_MFAD] != null && output[_MFAD][_me] != null) {
        contents[_MFAD] = de_mfaDeviceListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_MFAD][_me]), context);
      }
      if (output[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(output[_IT]);
      }
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_ListMFADevicesResponse");
    var de_ListMFADeviceTagsResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.Tags === "") {
        contents[_T2] = [];
      } else if (output[_T2] != null && output[_T2][_me] != null) {
        contents[_T2] = de_tagListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_T2][_me]), context);
      }
      if (output[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(output[_IT]);
      }
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_ListMFADeviceTagsResponse");
    var de_ListOpenIDConnectProvidersResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.OpenIDConnectProviderList === "") {
        contents[_OIDCPL] = [];
      } else if (output[_OIDCPL] != null && output[_OIDCPL][_me] != null) {
        contents[_OIDCPL] = de_OpenIDConnectProviderListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_OIDCPL][_me]), context);
      }
      return contents;
    }, "de_ListOpenIDConnectProvidersResponse");
    var de_ListOpenIDConnectProviderTagsResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.Tags === "") {
        contents[_T2] = [];
      } else if (output[_T2] != null && output[_T2][_me] != null) {
        contents[_T2] = de_tagListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_T2][_me]), context);
      }
      if (output[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(output[_IT]);
      }
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_ListOpenIDConnectProviderTagsResponse");
    var de_ListOrganizationsFeaturesResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_OI] != null) {
        contents[_OI] = (0, import_smithy_client28.expectString)(output[_OI]);
      }
      if (output.EnabledFeatures === "") {
        contents[_EFn] = [];
      } else if (output[_EFn] != null && output[_EFn][_me] != null) {
        contents[_EFn] = de_FeaturesListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_EFn][_me]), context);
      }
      return contents;
    }, "de_ListOrganizationsFeaturesResponse");
    var de_ListPoliciesGrantingServiceAccessEntry = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_SNer] != null) {
        contents[_SNer] = (0, import_smithy_client28.expectString)(output[_SNer]);
      }
      if (output.Policies === "") {
        contents[_Pol] = [];
      } else if (output[_Pol] != null && output[_Pol][_me] != null) {
        contents[_Pol] = de_policyGrantingServiceAccessListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_Pol][_me]), context);
      }
      return contents;
    }, "de_ListPoliciesGrantingServiceAccessEntry");
    var de_ListPoliciesGrantingServiceAccessResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.PoliciesGrantingServiceAccess === "") {
        contents[_PGSA] = [];
      } else if (output[_PGSA] != null && output[_PGSA][_me] != null) {
        contents[_PGSA] = de_listPolicyGrantingServiceAccessResponseListType(
          (0, import_smithy_client28.getArrayIfSingleItem)(output[_PGSA][_me]),
          context
        );
      }
      if (output[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(output[_IT]);
      }
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_ListPoliciesGrantingServiceAccessResponse");
    var de_ListPoliciesResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.Policies === "") {
        contents[_Pol] = [];
      } else if (output[_Pol] != null && output[_Pol][_me] != null) {
        contents[_Pol] = de_policyListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_Pol][_me]), context);
      }
      if (output[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(output[_IT]);
      }
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_ListPoliciesResponse");
    var de_listPolicyGrantingServiceAccessResponseListType = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ListPoliciesGrantingServiceAccessEntry(entry, context);
      });
    }, "de_listPolicyGrantingServiceAccessResponseListType");
    var de_ListPolicyTagsResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.Tags === "") {
        contents[_T2] = [];
      } else if (output[_T2] != null && output[_T2][_me] != null) {
        contents[_T2] = de_tagListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_T2][_me]), context);
      }
      if (output[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(output[_IT]);
      }
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_ListPolicyTagsResponse");
    var de_ListPolicyVersionsResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.Versions === "") {
        contents[_Ve] = [];
      } else if (output[_Ve] != null && output[_Ve][_me] != null) {
        contents[_Ve] = de_policyDocumentVersionListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_Ve][_me]), context);
      }
      if (output[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(output[_IT]);
      }
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_ListPolicyVersionsResponse");
    var de_ListRolePoliciesResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.PolicyNames === "") {
        contents[_PNo] = [];
      } else if (output[_PNo] != null && output[_PNo][_me] != null) {
        contents[_PNo] = de_policyNameListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_PNo][_me]), context);
      }
      if (output[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(output[_IT]);
      }
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_ListRolePoliciesResponse");
    var de_ListRolesResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.Roles === "") {
        contents[_Rol] = [];
      } else if (output[_Rol] != null && output[_Rol][_me] != null) {
        contents[_Rol] = de_roleListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_Rol][_me]), context);
      }
      if (output[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(output[_IT]);
      }
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_ListRolesResponse");
    var de_ListRoleTagsResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.Tags === "") {
        contents[_T2] = [];
      } else if (output[_T2] != null && output[_T2][_me] != null) {
        contents[_T2] = de_tagListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_T2][_me]), context);
      }
      if (output[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(output[_IT]);
      }
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_ListRoleTagsResponse");
    var de_ListSAMLProvidersResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.SAMLProviderList === "") {
        contents[_SAMLPL] = [];
      } else if (output[_SAMLPL] != null && output[_SAMLPL][_me] != null) {
        contents[_SAMLPL] = de_SAMLProviderListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_SAMLPL][_me]), context);
      }
      return contents;
    }, "de_ListSAMLProvidersResponse");
    var de_ListSAMLProviderTagsResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.Tags === "") {
        contents[_T2] = [];
      } else if (output[_T2] != null && output[_T2][_me] != null) {
        contents[_T2] = de_tagListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_T2][_me]), context);
      }
      if (output[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(output[_IT]);
      }
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_ListSAMLProviderTagsResponse");
    var de_ListServerCertificatesResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.ServerCertificateMetadataList === "") {
        contents[_SCML] = [];
      } else if (output[_SCML] != null && output[_SCML][_me] != null) {
        contents[_SCML] = de_serverCertificateMetadataListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_SCML][_me]), context);
      }
      if (output[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(output[_IT]);
      }
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_ListServerCertificatesResponse");
    var de_ListServerCertificateTagsResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.Tags === "") {
        contents[_T2] = [];
      } else if (output[_T2] != null && output[_T2][_me] != null) {
        contents[_T2] = de_tagListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_T2][_me]), context);
      }
      if (output[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(output[_IT]);
      }
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_ListServerCertificateTagsResponse");
    var de_ListServiceSpecificCredentialsResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.ServiceSpecificCredentials === "") {
        contents[_SSCe] = [];
      } else if (output[_SSCe] != null && output[_SSCe][_me] != null) {
        contents[_SSCe] = de_ServiceSpecificCredentialsListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_SSCe][_me]), context);
      }
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      if (output[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(output[_IT]);
      }
      return contents;
    }, "de_ListServiceSpecificCredentialsResponse");
    var de_ListSigningCertificatesResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.Certificates === "") {
        contents[_Cer] = [];
      } else if (output[_Cer] != null && output[_Cer][_me] != null) {
        contents[_Cer] = de_certificateListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_Cer][_me]), context);
      }
      if (output[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(output[_IT]);
      }
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_ListSigningCertificatesResponse");
    var de_ListSSHPublicKeysResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.SSHPublicKeys === "") {
        contents[_SSHPKu] = [];
      } else if (output[_SSHPKu] != null && output[_SSHPKu][_me] != null) {
        contents[_SSHPKu] = de_SSHPublicKeyListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_SSHPKu][_me]), context);
      }
      if (output[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(output[_IT]);
      }
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_ListSSHPublicKeysResponse");
    var de_ListUserPoliciesResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.PolicyNames === "") {
        contents[_PNo] = [];
      } else if (output[_PNo] != null && output[_PNo][_me] != null) {
        contents[_PNo] = de_policyNameListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_PNo][_me]), context);
      }
      if (output[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(output[_IT]);
      }
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_ListUserPoliciesResponse");
    var de_ListUsersResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.Users === "") {
        contents[_Use] = [];
      } else if (output[_Use] != null && output[_Use][_me] != null) {
        contents[_Use] = de_userListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_Use][_me]), context);
      }
      if (output[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(output[_IT]);
      }
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_ListUsersResponse");
    var de_ListUserTagsResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.Tags === "") {
        contents[_T2] = [];
      } else if (output[_T2] != null && output[_T2][_me] != null) {
        contents[_T2] = de_tagListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_T2][_me]), context);
      }
      if (output[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(output[_IT]);
      }
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_ListUserTagsResponse");
    var de_ListVirtualMFADevicesResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.VirtualMFADevices === "") {
        contents[_VMFADi] = [];
      } else if (output[_VMFADi] != null && output[_VMFADi][_me] != null) {
        contents[_VMFADi] = de_virtualMFADeviceListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_VMFADi][_me]), context);
      }
      if (output[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(output[_IT]);
      }
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_ListVirtualMFADevicesResponse");
    var de_LoginProfile = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_UN] != null) {
        contents[_UN] = (0, import_smithy_client28.expectString)(output[_UN]);
      }
      if (output[_CD] != null) {
        contents[_CD] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_CD]));
      }
      if (output[_PRR] != null) {
        contents[_PRR] = (0, import_smithy_client28.parseBoolean)(output[_PRR]);
      }
      return contents;
    }, "de_LoginProfile");
    var de_MalformedCertificateException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_m2] != null) {
        contents[_m2] = (0, import_smithy_client28.expectString)(output[_m2]);
      }
      return contents;
    }, "de_MalformedCertificateException");
    var de_MalformedPolicyDocumentException2 = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_m2] != null) {
        contents[_m2] = (0, import_smithy_client28.expectString)(output[_m2]);
      }
      return contents;
    }, "de_MalformedPolicyDocumentException");
    var de_ManagedPolicyDetail = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_PN] != null) {
        contents[_PN] = (0, import_smithy_client28.expectString)(output[_PN]);
      }
      if (output[_PI2] != null) {
        contents[_PI2] = (0, import_smithy_client28.expectString)(output[_PI2]);
      }
      if (output[_Ar2] != null) {
        contents[_Ar2] = (0, import_smithy_client28.expectString)(output[_Ar2]);
      }
      if (output[_P2] != null) {
        contents[_P2] = (0, import_smithy_client28.expectString)(output[_P2]);
      }
      if (output[_DVI] != null) {
        contents[_DVI] = (0, import_smithy_client28.expectString)(output[_DVI]);
      }
      if (output[_ACt] != null) {
        contents[_ACt] = (0, import_smithy_client28.strictParseInt32)(output[_ACt]);
      }
      if (output[_PBUC] != null) {
        contents[_PBUC] = (0, import_smithy_client28.strictParseInt32)(output[_PBUC]);
      }
      if (output[_IA] != null) {
        contents[_IA] = (0, import_smithy_client28.parseBoolean)(output[_IA]);
      }
      if (output[_D] != null) {
        contents[_D] = (0, import_smithy_client28.expectString)(output[_D]);
      }
      if (output[_CD] != null) {
        contents[_CD] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_CD]));
      }
      if (output[_UD] != null) {
        contents[_UD] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_UD]));
      }
      if (output.PolicyVersionList === "") {
        contents[_PVL] = [];
      } else if (output[_PVL] != null && output[_PVL][_me] != null) {
        contents[_PVL] = de_policyDocumentVersionListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_PVL][_me]), context);
      }
      return contents;
    }, "de_ManagedPolicyDetail");
    var de_ManagedPolicyDetailListType = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ManagedPolicyDetail(entry, context);
      });
    }, "de_ManagedPolicyDetailListType");
    var de_MFADevice = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_UN] != null) {
        contents[_UN] = (0, import_smithy_client28.expectString)(output[_UN]);
      }
      if (output[_SNe] != null) {
        contents[_SNe] = (0, import_smithy_client28.expectString)(output[_SNe]);
      }
      if (output[_EDn] != null) {
        contents[_EDn] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_EDn]));
      }
      return contents;
    }, "de_MFADevice");
    var de_mfaDeviceListType = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_MFADevice(entry, context);
      });
    }, "de_mfaDeviceListType");
    var de_NoSuchEntityException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_m2] != null) {
        contents[_m2] = (0, import_smithy_client28.expectString)(output[_m2]);
      }
      return contents;
    }, "de_NoSuchEntityException");
    var de_OpenIDConnectProviderListEntry = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Ar2] != null) {
        contents[_Ar2] = (0, import_smithy_client28.expectString)(output[_Ar2]);
      }
      return contents;
    }, "de_OpenIDConnectProviderListEntry");
    var de_OpenIDConnectProviderListType = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_OpenIDConnectProviderListEntry(entry, context);
      });
    }, "de_OpenIDConnectProviderListType");
    var de_OpenIdIdpCommunicationErrorException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_m2] != null) {
        contents[_m2] = (0, import_smithy_client28.expectString)(output[_m2]);
      }
      return contents;
    }, "de_OpenIdIdpCommunicationErrorException");
    var de_OrganizationNotFoundException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_OrganizationNotFoundException");
    var de_OrganizationNotInAllFeaturesModeException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_OrganizationNotInAllFeaturesModeException");
    var de_OrganizationsDecisionDetail = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ABO] != null) {
        contents[_ABO] = (0, import_smithy_client28.parseBoolean)(output[_ABO]);
      }
      return contents;
    }, "de_OrganizationsDecisionDetail");
    var de_PasswordPolicy = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_MPL] != null) {
        contents[_MPL] = (0, import_smithy_client28.strictParseInt32)(output[_MPL]);
      }
      if (output[_RS] != null) {
        contents[_RS] = (0, import_smithy_client28.parseBoolean)(output[_RS]);
      }
      if (output[_RNe] != null) {
        contents[_RNe] = (0, import_smithy_client28.parseBoolean)(output[_RNe]);
      }
      if (output[_RUC] != null) {
        contents[_RUC] = (0, import_smithy_client28.parseBoolean)(output[_RUC]);
      }
      if (output[_RLC] != null) {
        contents[_RLC] = (0, import_smithy_client28.parseBoolean)(output[_RLC]);
      }
      if (output[_AUTCP] != null) {
        contents[_AUTCP] = (0, import_smithy_client28.parseBoolean)(output[_AUTCP]);
      }
      if (output[_EPx] != null) {
        contents[_EPx] = (0, import_smithy_client28.parseBoolean)(output[_EPx]);
      }
      if (output[_MPA] != null) {
        contents[_MPA] = (0, import_smithy_client28.strictParseInt32)(output[_MPA]);
      }
      if (output[_PRPa] != null) {
        contents[_PRPa] = (0, import_smithy_client28.strictParseInt32)(output[_PRPa]);
      }
      if (output[_HE] != null) {
        contents[_HE] = (0, import_smithy_client28.parseBoolean)(output[_HE]);
      }
      return contents;
    }, "de_PasswordPolicy");
    var de_PasswordPolicyViolationException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_m2] != null) {
        contents[_m2] = (0, import_smithy_client28.expectString)(output[_m2]);
      }
      return contents;
    }, "de_PasswordPolicyViolationException");
    var de_PermissionsBoundaryDecisionDetail = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ABPB] != null) {
        contents[_ABPB] = (0, import_smithy_client28.parseBoolean)(output[_ABPB]);
      }
      return contents;
    }, "de_PermissionsBoundaryDecisionDetail");
    var de_Policy = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_PN] != null) {
        contents[_PN] = (0, import_smithy_client28.expectString)(output[_PN]);
      }
      if (output[_PI2] != null) {
        contents[_PI2] = (0, import_smithy_client28.expectString)(output[_PI2]);
      }
      if (output[_Ar2] != null) {
        contents[_Ar2] = (0, import_smithy_client28.expectString)(output[_Ar2]);
      }
      if (output[_P2] != null) {
        contents[_P2] = (0, import_smithy_client28.expectString)(output[_P2]);
      }
      if (output[_DVI] != null) {
        contents[_DVI] = (0, import_smithy_client28.expectString)(output[_DVI]);
      }
      if (output[_ACt] != null) {
        contents[_ACt] = (0, import_smithy_client28.strictParseInt32)(output[_ACt]);
      }
      if (output[_PBUC] != null) {
        contents[_PBUC] = (0, import_smithy_client28.strictParseInt32)(output[_PBUC]);
      }
      if (output[_IA] != null) {
        contents[_IA] = (0, import_smithy_client28.parseBoolean)(output[_IA]);
      }
      if (output[_D] != null) {
        contents[_D] = (0, import_smithy_client28.expectString)(output[_D]);
      }
      if (output[_CD] != null) {
        contents[_CD] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_CD]));
      }
      if (output[_UD] != null) {
        contents[_UD] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_UD]));
      }
      if (output.Tags === "") {
        contents[_T2] = [];
      } else if (output[_T2] != null && output[_T2][_me] != null) {
        contents[_T2] = de_tagListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_T2][_me]), context);
      }
      return contents;
    }, "de_Policy");
    var de_PolicyDetail = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_PN] != null) {
        contents[_PN] = (0, import_smithy_client28.expectString)(output[_PN]);
      }
      if (output[_PD] != null) {
        contents[_PD] = (0, import_smithy_client28.expectString)(output[_PD]);
      }
      return contents;
    }, "de_PolicyDetail");
    var de_policyDetailListType = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_PolicyDetail(entry, context);
      });
    }, "de_policyDetailListType");
    var de_policyDocumentVersionListType = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_PolicyVersion(entry, context);
      });
    }, "de_policyDocumentVersionListType");
    var de_PolicyEvaluationException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_m2] != null) {
        contents[_m2] = (0, import_smithy_client28.expectString)(output[_m2]);
      }
      return contents;
    }, "de_PolicyEvaluationException");
    var de_PolicyGrantingServiceAccess = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_PN] != null) {
        contents[_PN] = (0, import_smithy_client28.expectString)(output[_PN]);
      }
      if (output[_PT] != null) {
        contents[_PT] = (0, import_smithy_client28.expectString)(output[_PT]);
      }
      if (output[_PA2] != null) {
        contents[_PA2] = (0, import_smithy_client28.expectString)(output[_PA2]);
      }
      if (output[_ET] != null) {
        contents[_ET] = (0, import_smithy_client28.expectString)(output[_ET]);
      }
      if (output[_EN] != null) {
        contents[_EN] = (0, import_smithy_client28.expectString)(output[_EN]);
      }
      return contents;
    }, "de_PolicyGrantingServiceAccess");
    var de_policyGrantingServiceAccessListType = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_PolicyGrantingServiceAccess(entry, context);
      });
    }, "de_policyGrantingServiceAccessListType");
    var de_PolicyGroup = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_GN] != null) {
        contents[_GN] = (0, import_smithy_client28.expectString)(output[_GN]);
      }
      if (output[_GI] != null) {
        contents[_GI] = (0, import_smithy_client28.expectString)(output[_GI]);
      }
      return contents;
    }, "de_PolicyGroup");
    var de_PolicyGroupListType = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_PolicyGroup(entry, context);
      });
    }, "de_PolicyGroupListType");
    var de_policyListType = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Policy(entry, context);
      });
    }, "de_policyListType");
    var de_policyNameListType = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_policyNameListType");
    var de_PolicyNotAttachableException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_m2] != null) {
        contents[_m2] = (0, import_smithy_client28.expectString)(output[_m2]);
      }
      return contents;
    }, "de_PolicyNotAttachableException");
    var de_PolicyRole = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_RN] != null) {
        contents[_RN] = (0, import_smithy_client28.expectString)(output[_RN]);
      }
      if (output[_RI] != null) {
        contents[_RI] = (0, import_smithy_client28.expectString)(output[_RI]);
      }
      return contents;
    }, "de_PolicyRole");
    var de_PolicyRoleListType = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_PolicyRole(entry, context);
      });
    }, "de_PolicyRoleListType");
    var de_PolicyUser = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_UN] != null) {
        contents[_UN] = (0, import_smithy_client28.expectString)(output[_UN]);
      }
      if (output[_UI] != null) {
        contents[_UI] = (0, import_smithy_client28.expectString)(output[_UI]);
      }
      return contents;
    }, "de_PolicyUser");
    var de_PolicyUserListType = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_PolicyUser(entry, context);
      });
    }, "de_PolicyUserListType");
    var de_PolicyVersion = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Do] != null) {
        contents[_Do] = (0, import_smithy_client28.expectString)(output[_Do]);
      }
      if (output[_VI] != null) {
        contents[_VI] = (0, import_smithy_client28.expectString)(output[_VI]);
      }
      if (output[_IDV] != null) {
        contents[_IDV] = (0, import_smithy_client28.parseBoolean)(output[_IDV]);
      }
      if (output[_CD] != null) {
        contents[_CD] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_CD]));
      }
      return contents;
    }, "de_PolicyVersion");
    var de_Position = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_L] != null) {
        contents[_L] = (0, import_smithy_client28.strictParseInt32)(output[_L]);
      }
      if (output[_Col] != null) {
        contents[_Col] = (0, import_smithy_client28.strictParseInt32)(output[_Col]);
      }
      return contents;
    }, "de_Position");
    var de_privateKeyList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_SAMLPrivateKey(entry, context);
      });
    }, "de_privateKeyList");
    var de_ReportGenerationLimitExceededException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_m2] != null) {
        contents[_m2] = (0, import_smithy_client28.expectString)(output[_m2]);
      }
      return contents;
    }, "de_ReportGenerationLimitExceededException");
    var de_ResetServiceSpecificCredentialResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_SSC] != null) {
        contents[_SSC] = de_ServiceSpecificCredential(output[_SSC], context);
      }
      return contents;
    }, "de_ResetServiceSpecificCredentialResponse");
    var de_ResourceSpecificResult = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ERN] != null) {
        contents[_ERN] = (0, import_smithy_client28.expectString)(output[_ERN]);
      }
      if (output[_ERD] != null) {
        contents[_ERD] = (0, import_smithy_client28.expectString)(output[_ERD]);
      }
      if (output.MatchedStatements === "") {
        contents[_MS] = [];
      } else if (output[_MS] != null && output[_MS][_me] != null) {
        contents[_MS] = de_StatementListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_MS][_me]), context);
      }
      if (output.MissingContextValues === "") {
        contents[_MCV] = [];
      } else if (output[_MCV] != null && output[_MCV][_me] != null) {
        contents[_MCV] = de_ContextKeyNamesResultListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_MCV][_me]), context);
      }
      if (output.EvalDecisionDetails === "") {
        contents[_EDD] = {};
      } else if (output[_EDD] != null && output[_EDD][_e] != null) {
        contents[_EDD] = de_EvalDecisionDetailsType((0, import_smithy_client28.getArrayIfSingleItem)(output[_EDD][_e]), context);
      }
      if (output[_PBDD] != null) {
        contents[_PBDD] = de_PermissionsBoundaryDecisionDetail(output[_PBDD], context);
      }
      return contents;
    }, "de_ResourceSpecificResult");
    var de_ResourceSpecificResultListType = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ResourceSpecificResult(entry, context);
      });
    }, "de_ResourceSpecificResultListType");
    var de_Role = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_P2] != null) {
        contents[_P2] = (0, import_smithy_client28.expectString)(output[_P2]);
      }
      if (output[_RN] != null) {
        contents[_RN] = (0, import_smithy_client28.expectString)(output[_RN]);
      }
      if (output[_RI] != null) {
        contents[_RI] = (0, import_smithy_client28.expectString)(output[_RI]);
      }
      if (output[_Ar2] != null) {
        contents[_Ar2] = (0, import_smithy_client28.expectString)(output[_Ar2]);
      }
      if (output[_CD] != null) {
        contents[_CD] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_CD]));
      }
      if (output[_ARPD] != null) {
        contents[_ARPD] = (0, import_smithy_client28.expectString)(output[_ARPD]);
      }
      if (output[_D] != null) {
        contents[_D] = (0, import_smithy_client28.expectString)(output[_D]);
      }
      if (output[_MSD] != null) {
        contents[_MSD] = (0, import_smithy_client28.strictParseInt32)(output[_MSD]);
      }
      if (output[_PB] != null) {
        contents[_PB] = de_AttachedPermissionsBoundary(output[_PB], context);
      }
      if (output.Tags === "") {
        contents[_T2] = [];
      } else if (output[_T2] != null && output[_T2][_me] != null) {
        contents[_T2] = de_tagListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_T2][_me]), context);
      }
      if (output[_RLU] != null) {
        contents[_RLU] = de_RoleLastUsed(output[_RLU], context);
      }
      return contents;
    }, "de_Role");
    var de_RoleDetail = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_P2] != null) {
        contents[_P2] = (0, import_smithy_client28.expectString)(output[_P2]);
      }
      if (output[_RN] != null) {
        contents[_RN] = (0, import_smithy_client28.expectString)(output[_RN]);
      }
      if (output[_RI] != null) {
        contents[_RI] = (0, import_smithy_client28.expectString)(output[_RI]);
      }
      if (output[_Ar2] != null) {
        contents[_Ar2] = (0, import_smithy_client28.expectString)(output[_Ar2]);
      }
      if (output[_CD] != null) {
        contents[_CD] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_CD]));
      }
      if (output[_ARPD] != null) {
        contents[_ARPD] = (0, import_smithy_client28.expectString)(output[_ARPD]);
      }
      if (output.InstanceProfileList === "") {
        contents[_IPL] = [];
      } else if (output[_IPL] != null && output[_IPL][_me] != null) {
        contents[_IPL] = de_instanceProfileListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_IPL][_me]), context);
      }
      if (output.RolePolicyList === "") {
        contents[_RPL] = [];
      } else if (output[_RPL] != null && output[_RPL][_me] != null) {
        contents[_RPL] = de_policyDetailListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_RPL][_me]), context);
      }
      if (output.AttachedManagedPolicies === "") {
        contents[_AMP] = [];
      } else if (output[_AMP] != null && output[_AMP][_me] != null) {
        contents[_AMP] = de_attachedPoliciesListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_AMP][_me]), context);
      }
      if (output[_PB] != null) {
        contents[_PB] = de_AttachedPermissionsBoundary(output[_PB], context);
      }
      if (output.Tags === "") {
        contents[_T2] = [];
      } else if (output[_T2] != null && output[_T2][_me] != null) {
        contents[_T2] = de_tagListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_T2][_me]), context);
      }
      if (output[_RLU] != null) {
        contents[_RLU] = de_RoleLastUsed(output[_RLU], context);
      }
      return contents;
    }, "de_RoleDetail");
    var de_roleDetailListType = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_RoleDetail(entry, context);
      });
    }, "de_roleDetailListType");
    var de_RoleLastUsed = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_LUD] != null) {
        contents[_LUD] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_LUD]));
      }
      if (output[_R] != null) {
        contents[_R] = (0, import_smithy_client28.expectString)(output[_R]);
      }
      return contents;
    }, "de_RoleLastUsed");
    var de_roleListType = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Role(entry, context);
      });
    }, "de_roleListType");
    var de_RoleUsageListType = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_RoleUsageType(entry, context);
      });
    }, "de_RoleUsageListType");
    var de_RoleUsageType = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_R] != null) {
        contents[_R] = (0, import_smithy_client28.expectString)(output[_R]);
      }
      if (output.Resources === "") {
        contents[_Res] = [];
      } else if (output[_Res] != null && output[_Res][_me] != null) {
        contents[_Res] = de_ArnListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_Res][_me]), context);
      }
      return contents;
    }, "de_RoleUsageType");
    var de_SAMLPrivateKey = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_KI] != null) {
        contents[_KI] = (0, import_smithy_client28.expectString)(output[_KI]);
      }
      if (output[_Ti] != null) {
        contents[_Ti] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_Ti]));
      }
      return contents;
    }, "de_SAMLPrivateKey");
    var de_SAMLProviderListEntry = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Ar2] != null) {
        contents[_Ar2] = (0, import_smithy_client28.expectString)(output[_Ar2]);
      }
      if (output[_VU] != null) {
        contents[_VU] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_VU]));
      }
      if (output[_CD] != null) {
        contents[_CD] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_CD]));
      }
      return contents;
    }, "de_SAMLProviderListEntry");
    var de_SAMLProviderListType = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_SAMLProviderListEntry(entry, context);
      });
    }, "de_SAMLProviderListType");
    var de_ServerCertificate = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_SCM] != null) {
        contents[_SCM] = de_ServerCertificateMetadata(output[_SCM], context);
      }
      if (output[_CB] != null) {
        contents[_CB] = (0, import_smithy_client28.expectString)(output[_CB]);
      }
      if (output[_CC] != null) {
        contents[_CC] = (0, import_smithy_client28.expectString)(output[_CC]);
      }
      if (output.Tags === "") {
        contents[_T2] = [];
      } else if (output[_T2] != null && output[_T2][_me] != null) {
        contents[_T2] = de_tagListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_T2][_me]), context);
      }
      return contents;
    }, "de_ServerCertificate");
    var de_ServerCertificateMetadata = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_P2] != null) {
        contents[_P2] = (0, import_smithy_client28.expectString)(output[_P2]);
      }
      if (output[_SCN] != null) {
        contents[_SCN] = (0, import_smithy_client28.expectString)(output[_SCN]);
      }
      if (output[_SCI] != null) {
        contents[_SCI] = (0, import_smithy_client28.expectString)(output[_SCI]);
      }
      if (output[_Ar2] != null) {
        contents[_Ar2] = (0, import_smithy_client28.expectString)(output[_Ar2]);
      }
      if (output[_UDp] != null) {
        contents[_UDp] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_UDp]));
      }
      if (output[_Ex] != null) {
        contents[_Ex] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_Ex]));
      }
      return contents;
    }, "de_ServerCertificateMetadata");
    var de_serverCertificateMetadataListType = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ServerCertificateMetadata(entry, context);
      });
    }, "de_serverCertificateMetadataListType");
    var de_ServiceAccessNotEnabledException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      return contents;
    }, "de_ServiceAccessNotEnabledException");
    var de_ServiceFailureException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_m2] != null) {
        contents[_m2] = (0, import_smithy_client28.expectString)(output[_m2]);
      }
      return contents;
    }, "de_ServiceFailureException");
    var de_ServiceLastAccessed = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_SN2] != null) {
        contents[_SN2] = (0, import_smithy_client28.expectString)(output[_SN2]);
      }
      if (output[_LA] != null) {
        contents[_LA] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_LA]));
      }
      if (output[_SNer] != null) {
        contents[_SNer] = (0, import_smithy_client28.expectString)(output[_SNer]);
      }
      if (output[_LAE] != null) {
        contents[_LAE] = (0, import_smithy_client28.expectString)(output[_LAE]);
      }
      if (output[_LAR] != null) {
        contents[_LAR] = (0, import_smithy_client28.expectString)(output[_LAR]);
      }
      if (output[_TAE] != null) {
        contents[_TAE] = (0, import_smithy_client28.strictParseInt32)(output[_TAE]);
      }
      if (output.TrackedActionsLastAccessed === "") {
        contents[_TALA] = [];
      } else if (output[_TALA] != null && output[_TALA][_me] != null) {
        contents[_TALA] = de_TrackedActionsLastAccessed((0, import_smithy_client28.getArrayIfSingleItem)(output[_TALA][_me]), context);
      }
      return contents;
    }, "de_ServiceLastAccessed");
    var de_ServiceNotSupportedException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_m2] != null) {
        contents[_m2] = (0, import_smithy_client28.expectString)(output[_m2]);
      }
      return contents;
    }, "de_ServiceNotSupportedException");
    var de_ServicesLastAccessed = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ServiceLastAccessed(entry, context);
      });
    }, "de_ServicesLastAccessed");
    var de_ServiceSpecificCredential = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_CD] != null) {
        contents[_CD] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_CD]));
      }
      if (output[_EDx] != null) {
        contents[_EDx] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_EDx]));
      }
      if (output[_SN2] != null) {
        contents[_SN2] = (0, import_smithy_client28.expectString)(output[_SN2]);
      }
      if (output[_SUN] != null) {
        contents[_SUN] = (0, import_smithy_client28.expectString)(output[_SUN]);
      }
      if (output[_SP] != null) {
        contents[_SP] = (0, import_smithy_client28.expectString)(output[_SP]);
      }
      if (output[_SCA] != null) {
        contents[_SCA] = (0, import_smithy_client28.expectString)(output[_SCA]);
      }
      if (output[_SCS] != null) {
        contents[_SCS] = (0, import_smithy_client28.expectString)(output[_SCS]);
      }
      if (output[_SSCI] != null) {
        contents[_SSCI] = (0, import_smithy_client28.expectString)(output[_SSCI]);
      }
      if (output[_UN] != null) {
        contents[_UN] = (0, import_smithy_client28.expectString)(output[_UN]);
      }
      if (output[_St] != null) {
        contents[_St] = (0, import_smithy_client28.expectString)(output[_St]);
      }
      return contents;
    }, "de_ServiceSpecificCredential");
    var de_ServiceSpecificCredentialMetadata = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_UN] != null) {
        contents[_UN] = (0, import_smithy_client28.expectString)(output[_UN]);
      }
      if (output[_St] != null) {
        contents[_St] = (0, import_smithy_client28.expectString)(output[_St]);
      }
      if (output[_SUN] != null) {
        contents[_SUN] = (0, import_smithy_client28.expectString)(output[_SUN]);
      }
      if (output[_SCA] != null) {
        contents[_SCA] = (0, import_smithy_client28.expectString)(output[_SCA]);
      }
      if (output[_CD] != null) {
        contents[_CD] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_CD]));
      }
      if (output[_EDx] != null) {
        contents[_EDx] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_EDx]));
      }
      if (output[_SSCI] != null) {
        contents[_SSCI] = (0, import_smithy_client28.expectString)(output[_SSCI]);
      }
      if (output[_SN2] != null) {
        contents[_SN2] = (0, import_smithy_client28.expectString)(output[_SN2]);
      }
      return contents;
    }, "de_ServiceSpecificCredentialMetadata");
    var de_ServiceSpecificCredentialsListType = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ServiceSpecificCredentialMetadata(entry, context);
      });
    }, "de_ServiceSpecificCredentialsListType");
    var de_SigningCertificate = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_UN] != null) {
        contents[_UN] = (0, import_smithy_client28.expectString)(output[_UN]);
      }
      if (output[_CI] != null) {
        contents[_CI] = (0, import_smithy_client28.expectString)(output[_CI]);
      }
      if (output[_CB] != null) {
        contents[_CB] = (0, import_smithy_client28.expectString)(output[_CB]);
      }
      if (output[_St] != null) {
        contents[_St] = (0, import_smithy_client28.expectString)(output[_St]);
      }
      if (output[_UDp] != null) {
        contents[_UDp] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_UDp]));
      }
      return contents;
    }, "de_SigningCertificate");
    var de_SimulatePolicyResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output.EvaluationResults === "") {
        contents[_ER] = [];
      } else if (output[_ER] != null && output[_ER][_me] != null) {
        contents[_ER] = de_EvaluationResultsListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_ER][_me]), context);
      }
      if (output[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(output[_IT]);
      }
      if (output[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(output[_M]);
      }
      return contents;
    }, "de_SimulatePolicyResponse");
    var de_SSHPublicKey = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_UN] != null) {
        contents[_UN] = (0, import_smithy_client28.expectString)(output[_UN]);
      }
      if (output[_SSHPKI] != null) {
        contents[_SSHPKI] = (0, import_smithy_client28.expectString)(output[_SSHPKI]);
      }
      if (output[_Fi] != null) {
        contents[_Fi] = (0, import_smithy_client28.expectString)(output[_Fi]);
      }
      if (output[_SSHPKB] != null) {
        contents[_SSHPKB] = (0, import_smithy_client28.expectString)(output[_SSHPKB]);
      }
      if (output[_St] != null) {
        contents[_St] = (0, import_smithy_client28.expectString)(output[_St]);
      }
      if (output[_UDp] != null) {
        contents[_UDp] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_UDp]));
      }
      return contents;
    }, "de_SSHPublicKey");
    var de_SSHPublicKeyListType = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_SSHPublicKeyMetadata(entry, context);
      });
    }, "de_SSHPublicKeyListType");
    var de_SSHPublicKeyMetadata = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_UN] != null) {
        contents[_UN] = (0, import_smithy_client28.expectString)(output[_UN]);
      }
      if (output[_SSHPKI] != null) {
        contents[_SSHPKI] = (0, import_smithy_client28.expectString)(output[_SSHPKI]);
      }
      if (output[_St] != null) {
        contents[_St] = (0, import_smithy_client28.expectString)(output[_St]);
      }
      if (output[_UDp] != null) {
        contents[_UDp] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_UDp]));
      }
      return contents;
    }, "de_SSHPublicKeyMetadata");
    var de_Statement = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_SPI] != null) {
        contents[_SPI] = (0, import_smithy_client28.expectString)(output[_SPI]);
      }
      if (output[_SPT] != null) {
        contents[_SPT] = (0, import_smithy_client28.expectString)(output[_SPT]);
      }
      if (output[_SPt] != null) {
        contents[_SPt] = de_Position(output[_SPt], context);
      }
      if (output[_EPn] != null) {
        contents[_EPn] = de_Position(output[_EPn], context);
      }
      return contents;
    }, "de_Statement");
    var de_StatementListType = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Statement(entry, context);
      });
    }, "de_StatementListType");
    var de_summaryMapType = /* @__PURE__ */ __name2((output, context) => {
      return output.reduce((acc, pair) => {
        if (pair["value"] === null) {
          return acc;
        }
        acc[pair["key"]] = (0, import_smithy_client28.strictParseInt32)(pair["value"]);
        return acc;
      }, {});
    }, "de_summaryMapType");
    var de_Tag = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_K2] != null) {
        contents[_K2] = (0, import_smithy_client28.expectString)(output[_K2]);
      }
      if (output[_Va2] != null) {
        contents[_Va2] = (0, import_smithy_client28.expectString)(output[_Va2]);
      }
      return contents;
    }, "de_Tag");
    var de_tagListType = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Tag(entry, context);
      });
    }, "de_tagListType");
    var de_thumbprintListType = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_thumbprintListType");
    var de_TrackedActionLastAccessed = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_ANc] != null) {
        contents[_ANc] = (0, import_smithy_client28.expectString)(output[_ANc]);
      }
      if (output[_LAEa] != null) {
        contents[_LAEa] = (0, import_smithy_client28.expectString)(output[_LAEa]);
      }
      if (output[_LATa] != null) {
        contents[_LATa] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_LATa]));
      }
      if (output[_LARa] != null) {
        contents[_LARa] = (0, import_smithy_client28.expectString)(output[_LARa]);
      }
      return contents;
    }, "de_TrackedActionLastAccessed");
    var de_TrackedActionsLastAccessed = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TrackedActionLastAccessed(entry, context);
      });
    }, "de_TrackedActionsLastAccessed");
    var de_UnmodifiableEntityException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_m2] != null) {
        contents[_m2] = (0, import_smithy_client28.expectString)(output[_m2]);
      }
      return contents;
    }, "de_UnmodifiableEntityException");
    var de_UnrecognizedPublicKeyEncodingException = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_m2] != null) {
        contents[_m2] = (0, import_smithy_client28.expectString)(output[_m2]);
      }
      return contents;
    }, "de_UnrecognizedPublicKeyEncodingException");
    var de_UpdateRoleDescriptionResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Ro] != null) {
        contents[_Ro] = de_Role(output[_Ro], context);
      }
      return contents;
    }, "de_UpdateRoleDescriptionResponse");
    var de_UpdateRoleResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      return contents;
    }, "de_UpdateRoleResponse");
    var de_UpdateSAMLProviderResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_SAMLPA] != null) {
        contents[_SAMLPA] = (0, import_smithy_client28.expectString)(output[_SAMLPA]);
      }
      return contents;
    }, "de_UpdateSAMLProviderResponse");
    var de_UploadServerCertificateResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_SCM] != null) {
        contents[_SCM] = de_ServerCertificateMetadata(output[_SCM], context);
      }
      if (output.Tags === "") {
        contents[_T2] = [];
      } else if (output[_T2] != null && output[_T2][_me] != null) {
        contents[_T2] = de_tagListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_T2][_me]), context);
      }
      return contents;
    }, "de_UploadServerCertificateResponse");
    var de_UploadSigningCertificateResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Cert] != null) {
        contents[_Cert] = de_SigningCertificate(output[_Cert], context);
      }
      return contents;
    }, "de_UploadSigningCertificateResponse");
    var de_UploadSSHPublicKeyResponse = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_SSHPK] != null) {
        contents[_SSHPK] = de_SSHPublicKey(output[_SSHPK], context);
      }
      return contents;
    }, "de_UploadSSHPublicKeyResponse");
    var de_User = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_P2] != null) {
        contents[_P2] = (0, import_smithy_client28.expectString)(output[_P2]);
      }
      if (output[_UN] != null) {
        contents[_UN] = (0, import_smithy_client28.expectString)(output[_UN]);
      }
      if (output[_UI] != null) {
        contents[_UI] = (0, import_smithy_client28.expectString)(output[_UI]);
      }
      if (output[_Ar2] != null) {
        contents[_Ar2] = (0, import_smithy_client28.expectString)(output[_Ar2]);
      }
      if (output[_CD] != null) {
        contents[_CD] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_CD]));
      }
      if (output[_PLU] != null) {
        contents[_PLU] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_PLU]));
      }
      if (output[_PB] != null) {
        contents[_PB] = de_AttachedPermissionsBoundary(output[_PB], context);
      }
      if (output.Tags === "") {
        contents[_T2] = [];
      } else if (output[_T2] != null && output[_T2][_me] != null) {
        contents[_T2] = de_tagListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_T2][_me]), context);
      }
      return contents;
    }, "de_User");
    var de_UserDetail = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_P2] != null) {
        contents[_P2] = (0, import_smithy_client28.expectString)(output[_P2]);
      }
      if (output[_UN] != null) {
        contents[_UN] = (0, import_smithy_client28.expectString)(output[_UN]);
      }
      if (output[_UI] != null) {
        contents[_UI] = (0, import_smithy_client28.expectString)(output[_UI]);
      }
      if (output[_Ar2] != null) {
        contents[_Ar2] = (0, import_smithy_client28.expectString)(output[_Ar2]);
      }
      if (output[_CD] != null) {
        contents[_CD] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_CD]));
      }
      if (output.UserPolicyList === "") {
        contents[_UPL] = [];
      } else if (output[_UPL] != null && output[_UPL][_me] != null) {
        contents[_UPL] = de_policyDetailListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_UPL][_me]), context);
      }
      if (output.GroupList === "") {
        contents[_GL] = [];
      } else if (output[_GL] != null && output[_GL][_me] != null) {
        contents[_GL] = de_groupNameListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_GL][_me]), context);
      }
      if (output.AttachedManagedPolicies === "") {
        contents[_AMP] = [];
      } else if (output[_AMP] != null && output[_AMP][_me] != null) {
        contents[_AMP] = de_attachedPoliciesListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_AMP][_me]), context);
      }
      if (output[_PB] != null) {
        contents[_PB] = de_AttachedPermissionsBoundary(output[_PB], context);
      }
      if (output.Tags === "") {
        contents[_T2] = [];
      } else if (output[_T2] != null && output[_T2][_me] != null) {
        contents[_T2] = de_tagListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_T2][_me]), context);
      }
      return contents;
    }, "de_UserDetail");
    var de_userDetailListType = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_UserDetail(entry, context);
      });
    }, "de_userDetailListType");
    var de_userListType = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_User(entry, context);
      });
    }, "de_userListType");
    var de_VirtualMFADevice = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_SNe] != null) {
        contents[_SNe] = (0, import_smithy_client28.expectString)(output[_SNe]);
      }
      if (output[_BSS] != null) {
        contents[_BSS] = context.base64Decoder(output[_BSS]);
      }
      if (output[_QRCPNG] != null) {
        contents[_QRCPNG] = context.base64Decoder(output[_QRCPNG]);
      }
      if (output[_Us] != null) {
        contents[_Us] = de_User(output[_Us], context);
      }
      if (output[_EDn] != null) {
        contents[_EDn] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_EDn]));
      }
      if (output.Tags === "") {
        contents[_T2] = [];
      } else if (output[_T2] != null && output[_T2][_me] != null) {
        contents[_T2] = de_tagListType((0, import_smithy_client28.getArrayIfSingleItem)(output[_T2][_me]), context);
      }
      return contents;
    }, "de_VirtualMFADevice");
    var de_virtualMFADeviceListType = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_VirtualMFADevice(entry, context);
      });
    }, "de_virtualMFADeviceListType");
    var deserializeMetadata3 = /* @__PURE__ */ __name2((output) => ({
      httpStatusCode: output.statusCode,
      requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
      extendedRequestId: output.headers["x-amz-id-2"],
      cfId: output.headers["x-amz-cf-id"]
    }), "deserializeMetadata");
    var throwDefaultError3 = (0, import_smithy_client28.withBaseException)(IAMServiceException);
    var buildHttpRpcRequest2 = /* @__PURE__ */ __name2(async (context, headers, path38, resolvedHostname, body) => {
      const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
      const contents = {
        protocol,
        hostname,
        port,
        method: "POST",
        path: basePath.endsWith("/") ? basePath.slice(0, -1) + path38 : basePath + path38,
        headers
      };
      if (resolvedHostname !== void 0) {
        contents.hostname = resolvedHostname;
      }
      if (body !== void 0) {
        contents.body = body;
      }
      return new import_protocol_http16.HttpRequest(contents);
    }, "buildHttpRpcRequest");
    var SHARED_HEADERS2 = {
      "content-type": "application/x-www-form-urlencoded"
    };
    var _3 = "2010-05-08";
    var _A2 = "Action";
    var _AA = "AccountAlias";
    var _AAc = "AccountAliases";
    var _ABO = "AllowedByOrganizations";
    var _ABPB = "AllowedByPermissionsBoundary";
    var _AC = "AuthenticationCode1";
    var _ACIDTOIDCP = "AddClientIDToOpenIDConnectProvider";
    var _ACt = "AttachmentCount";
    var _ACu = "AuthenticationCode2";
    var _AD = "AccessDetails";
    var _AEM = "AssertionEncryptionMode";
    var _AGP = "AttachGroupPolicy";
    var _AK = "AccessKey";
    var _AKI2 = "AccessKeyId";
    var _AKLU = "AccessKeyLastUsed";
    var _AKM = "AccessKeyMetadata";
    var _AMP = "AttachedManagedPolicies";
    var _AN = "ActionNames";
    var _ANc = "ActionName";
    var _AP = "AttachedPolicies";
    var _APK = "AddPrivateKey";
    var _ARP = "AttachRolePolicy";
    var _ARPD = "AssumeRolePolicyDocument";
    var _ARTIP = "AddRoleToInstanceProfile";
    var _AS = "AssignmentStatus";
    var _AU = "AllUsers";
    var _AUP = "AttachUserPolicy";
    var _AUTCP = "AllowUsersToChangePassword";
    var _AUTG = "AddUserToGroup";
    var _AWSSN = "AWSServiceName";
    var _Ar2 = "Arn";
    var _BSS = "Base32StringSeed";
    var _C2 = "Code";
    var _CA2 = "CallerArn";
    var _CAA = "CreateAccountAlias";
    var _CAD = "CredentialAgeDays";
    var _CAK = "CreateAccessKey";
    var _CB = "CertificateBody";
    var _CC = "CertificateChain";
    var _CD = "CreateDate";
    var _CE = "ContextEntries";
    var _CG = "CreateGroup";
    var _CI = "CertificateId";
    var _CID = "ClientID";
    var _CIDL = "ClientIDList";
    var _CIP = "CreateInstanceProfile";
    var _CKN = "ContextKeyName";
    var _CKNo = "ContextKeyNames";
    var _CKT = "ContextKeyType";
    var _CKV = "ContextKeyValues";
    var _CLP = "CreateLoginProfile";
    var _COIDCP = "CreateOpenIDConnectProvider";
    var _CP = "ChangePassword";
    var _CPV = "CreatePolicyVersion";
    var _CPr = "CreatePolicy";
    var _CR = "CreateRole";
    var _CS = "CustomSuffix";
    var _CSAMLP = "CreateSAMLProvider";
    var _CSLR = "CreateServiceLinkedRole";
    var _CSSC = "CreateServiceSpecificCredential";
    var _CU = "CreateUser";
    var _CVMFAD = "CreateVirtualMFADevice";
    var _Ce = "Certifications";
    var _Cer = "Certificates";
    var _Cert = "Certificate";
    var _Co = "Content";
    var _Col = "Column";
    var _D = "Description";
    var _DAA = "DeleteAccountAlias";
    var _DAK = "DeleteAccessKey";
    var _DAPP = "DeleteAccountPasswordPolicy";
    var _DG = "DeleteGroup";
    var _DGP = "DeleteGroupPolicy";
    var _DGPe = "DetachGroupPolicy";
    var _DIP = "DeleteInstanceProfile";
    var _DLP = "DeleteLoginProfile";
    var _DMFAD = "DeactivateMFADevice";
    var _DOIDCP = "DeleteOpenIDConnectProvider";
    var _DORCM = "DisableOrganizationsRootCredentialsManagement";
    var _DORS = "DisableOrganizationsRootSessions";
    var _DP = "DeletePolicy";
    var _DPV = "DeletePolicyVersion";
    var _DR = "DeleteRole";
    var _DRP = "DeleteRolePolicy";
    var _DRPB = "DeleteRolePermissionsBoundary";
    var _DRPe = "DetachRolePolicy";
    var _DSAMLP = "DeleteSAMLProvider";
    var _DSC = "DeleteServerCertificate";
    var _DSCe = "DeleteSigningCertificate";
    var _DSLR = "DeleteServiceLinkedRole";
    var _DSSC = "DeleteServiceSpecificCredential";
    var _DSSHPK = "DeleteSSHPublicKey";
    var _DTI = "DeletionTaskId";
    var _DU = "DeleteUser";
    var _DUP = "DeleteUserPolicy";
    var _DUPB = "DeleteUserPermissionsBoundary";
    var _DUPe = "DetachUserPolicy";
    var _DVI = "DefaultVersionId";
    var _DVMFAD = "DeleteVirtualMFADevice";
    var _Do = "Document";
    var _E2 = "Encoding";
    var _EAN = "EvalActionName";
    var _ED = "EvalDecision";
    var _EDD = "EvalDecisionDetails";
    var _EDL = "EntityDetailsList";
    var _EDn = "EnableDate";
    var _EDr = "ErrorDetails";
    var _EDx = "ExpirationDate";
    var _EF = "EntityFilter";
    var _EFn = "EnabledFeatures";
    var _EI2 = "EntityInfo";
    var _EMFAD = "EnableMFADevice";
    var _EN = "EntityName";
    var _EORCM = "EnableOrganizationsRootCredentialsManagement";
    var _EORS = "EnableOrganizationsRootSessions";
    var _EP = "EntityPath";
    var _EPn = "EndPosition";
    var _EPx = "ExpirePasswords";
    var _ER = "EvaluationResults";
    var _ERD = "EvalResourceDecision";
    var _ERN = "EvalResourceName";
    var _ET = "EntityType";
    var _Er = "Error";
    var _Ex = "Expiration";
    var _F = "Filter";
    var _Fi = "Fingerprint";
    var _G = "Granularity";
    var _GAAD = "GetAccountAuthorizationDetails";
    var _GAKLU = "GetAccessKeyLastUsed";
    var _GAPP = "GetAccountPasswordPolicy";
    var _GAS = "GetAccountSummary";
    var _GCKFCP = "GetContextKeysForCustomPolicy";
    var _GCKFPP = "GetContextKeysForPrincipalPolicy";
    var _GCR = "GenerateCredentialReport";
    var _GCRe = "GetCredentialReport";
    var _GDL = "GroupDetailList";
    var _GETV = "GlobalEndpointTokenVersion";
    var _GG = "GetGroup";
    var _GGP = "GetGroupPolicy";
    var _GI = "GroupId";
    var _GIP = "GetInstanceProfile";
    var _GL = "GroupList";
    var _GLP = "GetLoginProfile";
    var _GMFAD = "GetMFADevice";
    var _GN = "GroupName";
    var _GOAR = "GenerateOrganizationsAccessReport";
    var _GOARe = "GetOrganizationsAccessReport";
    var _GOIDCP = "GetOpenIDConnectProvider";
    var _GP = "GetPolicy";
    var _GPL = "GroupPolicyList";
    var _GPV = "GetPolicyVersion";
    var _GR = "GetRole";
    var _GRP = "GetRolePolicy";
    var _GSAMLP = "GetSAMLProvider";
    var _GSC = "GetServerCertificate";
    var _GSLAD = "GenerateServiceLastAccessedDetails";
    var _GSLADWE = "GetServiceLastAccessedDetailsWithEntities";
    var _GSLADe = "GetServiceLastAccessedDetails";
    var _GSLRDS = "GetServiceLinkedRoleDeletionStatus";
    var _GSSHPK = "GetSSHPublicKey";
    var _GT = "GeneratedTime";
    var _GU = "GetUser";
    var _GUP = "GetUserPolicy";
    var _Gr = "Group";
    var _Gro = "Groups";
    var _HE = "HardExpiry";
    var _I = "Id";
    var _IA = "IsAttachable";
    var _IDV = "IsDefaultVersion";
    var _IP = "InstanceProfile";
    var _IPI = "InstanceProfileId";
    var _IPL = "InstanceProfileList";
    var _IPN = "InstanceProfileName";
    var _IPn = "InstanceProfiles";
    var _IT = "IsTruncated";
    var _JCD = "JobCreationDate";
    var _JCDo = "JobCompletionDate";
    var _JI = "JobId";
    var _JS = "JobStatus";
    var _JT = "JobType";
    var _K2 = "Key";
    var _KI = "KeyId";
    var _L = "Line";
    var _LA = "LastAuthenticated";
    var _LAA = "ListAccountAliases";
    var _LAE = "LastAuthenticatedEntity";
    var _LAEa = "LastAccessedEntity";
    var _LAGP = "ListAttachedGroupPolicies";
    var _LAK = "ListAccessKeys";
    var _LAR = "LastAuthenticatedRegion";
    var _LARP = "ListAttachedRolePolicies";
    var _LARa = "LastAccessedRegion";
    var _LAT = "LastAuthenticatedTime";
    var _LATa = "LastAccessedTime";
    var _LAUP = "ListAttachedUserPolicies";
    var _LEFP = "ListEntitiesForPolicy";
    var _LG = "ListGroups";
    var _LGFU = "ListGroupsForUser";
    var _LGP = "ListGroupPolicies";
    var _LIP = "ListInstanceProfiles";
    var _LIPFR = "ListInstanceProfilesForRole";
    var _LIPT = "ListInstanceProfileTags";
    var _LMFAD = "ListMFADevices";
    var _LMFADT = "ListMFADeviceTags";
    var _LOF = "ListOrganizationsFeatures";
    var _LOIDCP = "ListOpenIDConnectProviders";
    var _LOIDCPT = "ListOpenIDConnectProviderTags";
    var _LP = "ListPolicies";
    var _LPGSA = "ListPoliciesGrantingServiceAccess";
    var _LPT = "ListPolicyTags";
    var _LPV = "ListPolicyVersions";
    var _LPo = "LoginProfile";
    var _LR = "ListRoles";
    var _LRP = "ListRolePolicies";
    var _LRT = "ListRoleTags";
    var _LSAMLP = "ListSAMLProviders";
    var _LSAMLPT = "ListSAMLProviderTags";
    var _LSC = "ListServerCertificates";
    var _LSCT = "ListServerCertificateTags";
    var _LSCi = "ListSigningCertificates";
    var _LSSC = "ListServiceSpecificCredentials";
    var _LSSHPK = "ListSSHPublicKeys";
    var _LU = "ListUsers";
    var _LUD = "LastUsedDate";
    var _LUP = "ListUserPolicies";
    var _LUT = "ListUserTags";
    var _LVMFAD = "ListVirtualMFADevices";
    var _M = "Marker";
    var _MCV = "MissingContextValues";
    var _MFAD = "MFADevices";
    var _MI = "MaxItems";
    var _MPA = "MaxPasswordAge";
    var _MPL = "MinimumPasswordLength";
    var _MS = "MatchedStatements";
    var _MSD = "MaxSessionDuration";
    var _Me = "Message";
    var _N = "Name";
    var _NGN = "NewGroupName";
    var _NOSA = "NumberOfServicesAccessible";
    var _NOSNA = "NumberOfServicesNotAccessed";
    var _NP = "NewPassword";
    var _NPe = "NewPath";
    var _NSCN = "NewServerCertificateName";
    var _NUN = "NewUserName";
    var _OA = "OnlyAttached";
    var _ODD = "OrganizationsDecisionDetail";
    var _OI = "OrganizationId";
    var _OIDCPA = "OpenIDConnectProviderArn";
    var _OIDCPL = "OpenIDConnectProviderList";
    var _OP = "OldPassword";
    var _OPI = "OrganizationsPolicyId";
    var _P2 = "Path";
    var _PA2 = "PolicyArn";
    var _PB = "PermissionsBoundary";
    var _PBA = "PermissionsBoundaryArn";
    var _PBDD = "PermissionsBoundaryDecisionDetail";
    var _PBPIL = "PermissionsBoundaryPolicyInputList";
    var _PBT = "PermissionsBoundaryType";
    var _PBUC = "PermissionsBoundaryUsageCount";
    var _PD = "PolicyDocument";
    var _PG = "PolicyGroups";
    var _PGP = "PutGroupPolicy";
    var _PGSA = "PoliciesGrantingServiceAccess";
    var _PI2 = "PolicyId";
    var _PIL = "PolicyInputList";
    var _PK = "PrivateKey";
    var _PKL = "PrivateKeyList";
    var _PLU = "PasswordLastUsed";
    var _PN = "PolicyName";
    var _PNo = "PolicyNames";
    var _PP = "PathPrefix";
    var _PPa = "PasswordPolicy";
    var _PR = "PolicyRoles";
    var _PRP = "PutRolePolicy";
    var _PRPB = "PutRolePermissionsBoundary";
    var _PRPa = "PasswordReusePrevention";
    var _PRR = "PasswordResetRequired";
    var _PSA = "PolicySourceArn";
    var _PT = "PolicyType";
    var _PU = "PolicyUsers";
    var _PUF = "PolicyUsageFilter";
    var _PUP = "PutUserPolicy";
    var _PUPB = "PutUserPermissionsBoundary";
    var _PV = "PolicyVersion";
    var _PVL = "PolicyVersionList";
    var _Pa = "Password";
    var _Po = "Policy";
    var _Pol = "Policies";
    var _QRCPNG = "QRCodePNG";
    var _R = "Region";
    var _RA2 = "ResourceArns";
    var _RCIDFOIDCP = "RemoveClientIDFromOpenIDConnectProvider";
    var _RDL = "RoleDetailList";
    var _RF = "ReportFormat";
    var _RHO = "ResourceHandlingOption";
    var _RI = "RoleId";
    var _RLC = "RequireLowercaseCharacters";
    var _RLU = "RoleLastUsed";
    var _RMFAD = "ResyncMFADevice";
    var _RN = "RoleName";
    var _RNe = "RequireNumbers";
    var _RO = "ResourceOwner";
    var _RP = "ResourcePolicy";
    var _RPK = "RemovePrivateKey";
    var _RPL = "RolePolicyList";
    var _RRFIP = "RemoveRoleFromInstanceProfile";
    var _RS = "RequireSymbols";
    var _RSR = "ResourceSpecificResults";
    var _RSSC = "ResetServiceSpecificCredential";
    var _RUC = "RequireUppercaseCharacters";
    var _RUFG = "RemoveUserFromGroup";
    var _RUL = "RoleUsageList";
    var _Re = "Reason";
    var _Res = "Resources";
    var _Ro = "Role";
    var _Rol = "Roles";
    var _S = "Scope";
    var _SAD = "SetAsDefault";
    var _SAK2 = "SecretAccessKey";
    var _SAMLMD = "SAMLMetadataDocument";
    var _SAMLPA = "SAMLProviderArn";
    var _SAMLPL = "SAMLProviderList";
    var _SAMLPUUID = "SAMLProviderUUID";
    var _SC = "ServerCertificate";
    var _SCA = "ServiceCredentialAlias";
    var _SCI = "ServerCertificateId";
    var _SCM = "ServerCertificateMetadata";
    var _SCML = "ServerCertificateMetadataList";
    var _SCN = "ServerCertificateName";
    var _SCP = "SimulateCustomPolicy";
    var _SCS = "ServiceCredentialSecret";
    var _SDPV = "SetDefaultPolicyVersion";
    var _SK = "SortKey";
    var _SLA = "ServicesLastAccessed";
    var _SM = "SummaryMap";
    var _SN2 = "ServiceName";
    var _SNe = "SerialNumber";
    var _SNer = "ServiceNamespace";
    var _SNerv = "ServiceNamespaces";
    var _SP = "ServicePassword";
    var _SPI = "SourcePolicyId";
    var _SPP = "SimulatePrincipalPolicy";
    var _SPT = "SourcePolicyType";
    var _SPt = "StartPosition";
    var _SSC = "ServiceSpecificCredential";
    var _SSCI = "ServiceSpecificCredentialId";
    var _SSCe = "ServiceSpecificCredentials";
    var _SSHPK = "SSHPublicKey";
    var _SSHPKB = "SSHPublicKeyBody";
    var _SSHPKI = "SSHPublicKeyId";
    var _SSHPKu = "SSHPublicKeys";
    var _SSTSP = "SetSecurityTokenServicePreferences";
    var _SUN = "ServiceUserName";
    var _St = "Status";
    var _Sta = "State";
    var _T2 = "Tags";
    var _TAE = "TotalAuthenticatedEntities";
    var _TALA = "TrackedActionsLastAccessed";
    var _TIP = "TagInstanceProfile";
    var _TK = "TagKeys";
    var _TL = "ThumbprintList";
    var _TMFAD = "TagMFADevice";
    var _TOIDCP = "TagOpenIDConnectProvider";
    var _TP = "TagPolicy";
    var _TR = "TagRole";
    var _TSAMLP = "TagSAMLProvider";
    var _TSC = "TagServerCertificate";
    var _TU = "TagUser";
    var _Ti = "Timestamp";
    var _Ty = "Type";
    var _U = "Url";
    var _UAK = "UpdateAccessKey";
    var _UAPP = "UpdateAccountPasswordPolicy";
    var _UARP = "UpdateAssumeRolePolicy";
    var _UD = "UpdateDate";
    var _UDL = "UserDetailList";
    var _UDp = "UploadDate";
    var _UG = "UpdateGroup";
    var _UI = "UserId";
    var _UIP = "UntagInstanceProfile";
    var _ULP = "UpdateLoginProfile";
    var _UMFAD = "UntagMFADevice";
    var _UN = "UserName";
    var _UOIDCP = "UntagOpenIDConnectProvider";
    var _UOIDCPT = "UpdateOpenIDConnectProviderThumbprint";
    var _UP = "UntagPolicy";
    var _UPL = "UserPolicyList";
    var _UR = "UntagRole";
    var _URD = "UpdateRoleDescription";
    var _URp = "UpdateRole";
    var _USAMLP = "UntagSAMLProvider";
    var _USAMLPp = "UpdateSAMLProvider";
    var _USC = "UntagServerCertificate";
    var _USCp = "UpdateServerCertificate";
    var _USCpd = "UpdateSigningCertificate";
    var _USCpl = "UploadServerCertificate";
    var _USCplo = "UploadSigningCertificate";
    var _USSC = "UpdateServiceSpecificCredential";
    var _USSHPK = "UpdateSSHPublicKey";
    var _USSHPKp = "UploadSSHPublicKey";
    var _UU = "UntagUser";
    var _UUp = "UpdateUser";
    var _Us = "User";
    var _Use = "Users";
    var _V2 = "Version";
    var _VI = "VersionId";
    var _VMFAD = "VirtualMFADevice";
    var _VMFADN = "VirtualMFADeviceName";
    var _VMFADi = "VirtualMFADevices";
    var _VU = "ValidUntil";
    var _Va2 = "Value";
    var _Ve = "Versions";
    var _e = "entry";
    var _m2 = "message";
    var _me = "member";
    var buildFormUrlencodedString2 = /* @__PURE__ */ __name2((formEntries) => Object.entries(formEntries).map(([key, value]) => (0, import_smithy_client28.extendedEncodeURIComponent)(key) + "=" + (0, import_smithy_client28.extendedEncodeURIComponent)(value)).join("&"), "buildFormUrlencodedString");
    var loadQueryErrorCode2 = /* @__PURE__ */ __name2((output, data3) => {
      if (data3.Error?.Code !== void 0) {
        return data3.Error.Code;
      }
      if (output.statusCode == 404) {
        return "NotFound";
      }
    }, "loadQueryErrorCode");
    var AddClientIDToOpenIDConnectProviderCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "AddClientIDToOpenIDConnectProvider", {}).n("IAMClient", "AddClientIDToOpenIDConnectProviderCommand").f(void 0, void 0).ser(se_AddClientIDToOpenIDConnectProviderCommand).de(de_AddClientIDToOpenIDConnectProviderCommand).build() {
      static {
        __name(this, "AddClientIDToOpenIDConnectProviderCommand");
      }
      static {
        __name2(this, "AddClientIDToOpenIDConnectProviderCommand");
      }
    };
    var AddRoleToInstanceProfileCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "AddRoleToInstanceProfile", {}).n("IAMClient", "AddRoleToInstanceProfileCommand").f(void 0, void 0).ser(se_AddRoleToInstanceProfileCommand).de(de_AddRoleToInstanceProfileCommand).build() {
      static {
        __name(this, "AddRoleToInstanceProfileCommand");
      }
      static {
        __name2(this, "AddRoleToInstanceProfileCommand");
      }
    };
    var AddUserToGroupCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "AddUserToGroup", {}).n("IAMClient", "AddUserToGroupCommand").f(void 0, void 0).ser(se_AddUserToGroupCommand).de(de_AddUserToGroupCommand).build() {
      static {
        __name(this, "AddUserToGroupCommand");
      }
      static {
        __name2(this, "AddUserToGroupCommand");
      }
    };
    var AttachGroupPolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "AttachGroupPolicy", {}).n("IAMClient", "AttachGroupPolicyCommand").f(void 0, void 0).ser(se_AttachGroupPolicyCommand).de(de_AttachGroupPolicyCommand).build() {
      static {
        __name(this, "AttachGroupPolicyCommand");
      }
      static {
        __name2(this, "AttachGroupPolicyCommand");
      }
    };
    var AttachRolePolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "AttachRolePolicy", {}).n("IAMClient", "AttachRolePolicyCommand").f(void 0, void 0).ser(se_AttachRolePolicyCommand).de(de_AttachRolePolicyCommand).build() {
      static {
        __name(this, "AttachRolePolicyCommand");
      }
      static {
        __name2(this, "AttachRolePolicyCommand");
      }
    };
    var AttachUserPolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "AttachUserPolicy", {}).n("IAMClient", "AttachUserPolicyCommand").f(void 0, void 0).ser(se_AttachUserPolicyCommand).de(de_AttachUserPolicyCommand).build() {
      static {
        __name(this, "AttachUserPolicyCommand");
      }
      static {
        __name2(this, "AttachUserPolicyCommand");
      }
    };
    var ChangePasswordCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "ChangePassword", {}).n("IAMClient", "ChangePasswordCommand").f(ChangePasswordRequestFilterSensitiveLog, void 0).ser(se_ChangePasswordCommand).de(de_ChangePasswordCommand).build() {
      static {
        __name(this, "ChangePasswordCommand");
      }
      static {
        __name2(this, "ChangePasswordCommand");
      }
    };
    var CreateAccessKeyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "CreateAccessKey", {}).n("IAMClient", "CreateAccessKeyCommand").f(void 0, CreateAccessKeyResponseFilterSensitiveLog).ser(se_CreateAccessKeyCommand).de(de_CreateAccessKeyCommand).build() {
      static {
        __name(this, "CreateAccessKeyCommand");
      }
      static {
        __name2(this, "CreateAccessKeyCommand");
      }
    };
    var CreateAccountAliasCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "CreateAccountAlias", {}).n("IAMClient", "CreateAccountAliasCommand").f(void 0, void 0).ser(se_CreateAccountAliasCommand).de(de_CreateAccountAliasCommand).build() {
      static {
        __name(this, "CreateAccountAliasCommand");
      }
      static {
        __name2(this, "CreateAccountAliasCommand");
      }
    };
    var CreateGroupCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "CreateGroup", {}).n("IAMClient", "CreateGroupCommand").f(void 0, void 0).ser(se_CreateGroupCommand).de(de_CreateGroupCommand).build() {
      static {
        __name(this, "CreateGroupCommand");
      }
      static {
        __name2(this, "CreateGroupCommand");
      }
    };
    var CreateInstanceProfileCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "CreateInstanceProfile", {}).n("IAMClient", "CreateInstanceProfileCommand").f(void 0, void 0).ser(se_CreateInstanceProfileCommand).de(de_CreateInstanceProfileCommand).build() {
      static {
        __name(this, "CreateInstanceProfileCommand");
      }
      static {
        __name2(this, "CreateInstanceProfileCommand");
      }
    };
    var CreateLoginProfileCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "CreateLoginProfile", {}).n("IAMClient", "CreateLoginProfileCommand").f(CreateLoginProfileRequestFilterSensitiveLog, void 0).ser(se_CreateLoginProfileCommand).de(de_CreateLoginProfileCommand).build() {
      static {
        __name(this, "CreateLoginProfileCommand");
      }
      static {
        __name2(this, "CreateLoginProfileCommand");
      }
    };
    var CreateOpenIDConnectProviderCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "CreateOpenIDConnectProvider", {}).n("IAMClient", "CreateOpenIDConnectProviderCommand").f(void 0, void 0).ser(se_CreateOpenIDConnectProviderCommand).de(de_CreateOpenIDConnectProviderCommand).build() {
      static {
        __name(this, "CreateOpenIDConnectProviderCommand");
      }
      static {
        __name2(this, "CreateOpenIDConnectProviderCommand");
      }
    };
    var CreatePolicyCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "CreatePolicy", {}).n("IAMClient", "CreatePolicyCommand").f(void 0, void 0).ser(se_CreatePolicyCommand).de(de_CreatePolicyCommand).build() {
      static {
        __name(this, "CreatePolicyCommand");
      }
      static {
        __name2(this, "CreatePolicyCommand");
      }
    };
    var CreatePolicyVersionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "CreatePolicyVersion", {}).n("IAMClient", "CreatePolicyVersionCommand").f(void 0, void 0).ser(se_CreatePolicyVersionCommand).de(de_CreatePolicyVersionCommand).build() {
      static {
        __name(this, "CreatePolicyVersionCommand");
      }
      static {
        __name2(this, "CreatePolicyVersionCommand");
      }
    };
    var CreateRoleCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "CreateRole", {}).n("IAMClient", "CreateRoleCommand").f(void 0, void 0).ser(se_CreateRoleCommand).de(de_CreateRoleCommand).build() {
      static {
        __name(this, "CreateRoleCommand");
      }
      static {
        __name2(this, "CreateRoleCommand");
      }
    };
    var CreateSAMLProviderCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "CreateSAMLProvider", {}).n("IAMClient", "CreateSAMLProviderCommand").f(CreateSAMLProviderRequestFilterSensitiveLog, void 0).ser(se_CreateSAMLProviderCommand).de(de_CreateSAMLProviderCommand).build() {
      static {
        __name(this, "CreateSAMLProviderCommand");
      }
      static {
        __name2(this, "CreateSAMLProviderCommand");
      }
    };
    var CreateServiceLinkedRoleCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "CreateServiceLinkedRole", {}).n("IAMClient", "CreateServiceLinkedRoleCommand").f(void 0, void 0).ser(se_CreateServiceLinkedRoleCommand).de(de_CreateServiceLinkedRoleCommand).build() {
      static {
        __name(this, "CreateServiceLinkedRoleCommand");
      }
      static {
        __name2(this, "CreateServiceLinkedRoleCommand");
      }
    };
    var CreateServiceSpecificCredentialCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "CreateServiceSpecificCredential", {}).n("IAMClient", "CreateServiceSpecificCredentialCommand").f(void 0, CreateServiceSpecificCredentialResponseFilterSensitiveLog).ser(se_CreateServiceSpecificCredentialCommand).de(de_CreateServiceSpecificCredentialCommand).build() {
      static {
        __name(this, "CreateServiceSpecificCredentialCommand");
      }
      static {
        __name2(this, "CreateServiceSpecificCredentialCommand");
      }
    };
    var CreateUserCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "CreateUser", {}).n("IAMClient", "CreateUserCommand").f(void 0, void 0).ser(se_CreateUserCommand).de(de_CreateUserCommand).build() {
      static {
        __name(this, "CreateUserCommand");
      }
      static {
        __name2(this, "CreateUserCommand");
      }
    };
    var CreateVirtualMFADeviceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "CreateVirtualMFADevice", {}).n("IAMClient", "CreateVirtualMFADeviceCommand").f(void 0, CreateVirtualMFADeviceResponseFilterSensitiveLog).ser(se_CreateVirtualMFADeviceCommand).de(de_CreateVirtualMFADeviceCommand).build() {
      static {
        __name(this, "CreateVirtualMFADeviceCommand");
      }
      static {
        __name2(this, "CreateVirtualMFADeviceCommand");
      }
    };
    var DeactivateMFADeviceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "DeactivateMFADevice", {}).n("IAMClient", "DeactivateMFADeviceCommand").f(void 0, void 0).ser(se_DeactivateMFADeviceCommand).de(de_DeactivateMFADeviceCommand).build() {
      static {
        __name(this, "DeactivateMFADeviceCommand");
      }
      static {
        __name2(this, "DeactivateMFADeviceCommand");
      }
    };
    var DeleteAccessKeyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "DeleteAccessKey", {}).n("IAMClient", "DeleteAccessKeyCommand").f(void 0, void 0).ser(se_DeleteAccessKeyCommand).de(de_DeleteAccessKeyCommand).build() {
      static {
        __name(this, "DeleteAccessKeyCommand");
      }
      static {
        __name2(this, "DeleteAccessKeyCommand");
      }
    };
    var DeleteAccountAliasCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "DeleteAccountAlias", {}).n("IAMClient", "DeleteAccountAliasCommand").f(void 0, void 0).ser(se_DeleteAccountAliasCommand).de(de_DeleteAccountAliasCommand).build() {
      static {
        __name(this, "DeleteAccountAliasCommand");
      }
      static {
        __name2(this, "DeleteAccountAliasCommand");
      }
    };
    var DeleteAccountPasswordPolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "DeleteAccountPasswordPolicy", {}).n("IAMClient", "DeleteAccountPasswordPolicyCommand").f(void 0, void 0).ser(se_DeleteAccountPasswordPolicyCommand).de(de_DeleteAccountPasswordPolicyCommand).build() {
      static {
        __name(this, "DeleteAccountPasswordPolicyCommand");
      }
      static {
        __name2(this, "DeleteAccountPasswordPolicyCommand");
      }
    };
    var DeleteGroupCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "DeleteGroup", {}).n("IAMClient", "DeleteGroupCommand").f(void 0, void 0).ser(se_DeleteGroupCommand).de(de_DeleteGroupCommand).build() {
      static {
        __name(this, "DeleteGroupCommand");
      }
      static {
        __name2(this, "DeleteGroupCommand");
      }
    };
    var DeleteGroupPolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "DeleteGroupPolicy", {}).n("IAMClient", "DeleteGroupPolicyCommand").f(void 0, void 0).ser(se_DeleteGroupPolicyCommand).de(de_DeleteGroupPolicyCommand).build() {
      static {
        __name(this, "DeleteGroupPolicyCommand");
      }
      static {
        __name2(this, "DeleteGroupPolicyCommand");
      }
    };
    var DeleteInstanceProfileCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "DeleteInstanceProfile", {}).n("IAMClient", "DeleteInstanceProfileCommand").f(void 0, void 0).ser(se_DeleteInstanceProfileCommand).de(de_DeleteInstanceProfileCommand).build() {
      static {
        __name(this, "DeleteInstanceProfileCommand");
      }
      static {
        __name2(this, "DeleteInstanceProfileCommand");
      }
    };
    var DeleteLoginProfileCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "DeleteLoginProfile", {}).n("IAMClient", "DeleteLoginProfileCommand").f(void 0, void 0).ser(se_DeleteLoginProfileCommand).de(de_DeleteLoginProfileCommand).build() {
      static {
        __name(this, "DeleteLoginProfileCommand");
      }
      static {
        __name2(this, "DeleteLoginProfileCommand");
      }
    };
    var DeleteOpenIDConnectProviderCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "DeleteOpenIDConnectProvider", {}).n("IAMClient", "DeleteOpenIDConnectProviderCommand").f(void 0, void 0).ser(se_DeleteOpenIDConnectProviderCommand).de(de_DeleteOpenIDConnectProviderCommand).build() {
      static {
        __name(this, "DeleteOpenIDConnectProviderCommand");
      }
      static {
        __name2(this, "DeleteOpenIDConnectProviderCommand");
      }
    };
    var DeletePolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "DeletePolicy", {}).n("IAMClient", "DeletePolicyCommand").f(void 0, void 0).ser(se_DeletePolicyCommand).de(de_DeletePolicyCommand).build() {
      static {
        __name(this, "DeletePolicyCommand");
      }
      static {
        __name2(this, "DeletePolicyCommand");
      }
    };
    var DeletePolicyVersionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "DeletePolicyVersion", {}).n("IAMClient", "DeletePolicyVersionCommand").f(void 0, void 0).ser(se_DeletePolicyVersionCommand).de(de_DeletePolicyVersionCommand).build() {
      static {
        __name(this, "DeletePolicyVersionCommand");
      }
      static {
        __name2(this, "DeletePolicyVersionCommand");
      }
    };
    var DeleteRoleCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "DeleteRole", {}).n("IAMClient", "DeleteRoleCommand").f(void 0, void 0).ser(se_DeleteRoleCommand).de(de_DeleteRoleCommand).build() {
      static {
        __name(this, "DeleteRoleCommand");
      }
      static {
        __name2(this, "DeleteRoleCommand");
      }
    };
    var DeleteRolePermissionsBoundaryCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "DeleteRolePermissionsBoundary", {}).n("IAMClient", "DeleteRolePermissionsBoundaryCommand").f(void 0, void 0).ser(se_DeleteRolePermissionsBoundaryCommand).de(de_DeleteRolePermissionsBoundaryCommand).build() {
      static {
        __name(this, "DeleteRolePermissionsBoundaryCommand");
      }
      static {
        __name2(this, "DeleteRolePermissionsBoundaryCommand");
      }
    };
    var DeleteRolePolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "DeleteRolePolicy", {}).n("IAMClient", "DeleteRolePolicyCommand").f(void 0, void 0).ser(se_DeleteRolePolicyCommand).de(de_DeleteRolePolicyCommand).build() {
      static {
        __name(this, "DeleteRolePolicyCommand");
      }
      static {
        __name2(this, "DeleteRolePolicyCommand");
      }
    };
    var DeleteSAMLProviderCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "DeleteSAMLProvider", {}).n("IAMClient", "DeleteSAMLProviderCommand").f(void 0, void 0).ser(se_DeleteSAMLProviderCommand).de(de_DeleteSAMLProviderCommand).build() {
      static {
        __name(this, "DeleteSAMLProviderCommand");
      }
      static {
        __name2(this, "DeleteSAMLProviderCommand");
      }
    };
    var DeleteServerCertificateCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "DeleteServerCertificate", {}).n("IAMClient", "DeleteServerCertificateCommand").f(void 0, void 0).ser(se_DeleteServerCertificateCommand).de(de_DeleteServerCertificateCommand).build() {
      static {
        __name(this, "DeleteServerCertificateCommand");
      }
      static {
        __name2(this, "DeleteServerCertificateCommand");
      }
    };
    var DeleteServiceLinkedRoleCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "DeleteServiceLinkedRole", {}).n("IAMClient", "DeleteServiceLinkedRoleCommand").f(void 0, void 0).ser(se_DeleteServiceLinkedRoleCommand).de(de_DeleteServiceLinkedRoleCommand).build() {
      static {
        __name(this, "DeleteServiceLinkedRoleCommand");
      }
      static {
        __name2(this, "DeleteServiceLinkedRoleCommand");
      }
    };
    var DeleteServiceSpecificCredentialCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "DeleteServiceSpecificCredential", {}).n("IAMClient", "DeleteServiceSpecificCredentialCommand").f(void 0, void 0).ser(se_DeleteServiceSpecificCredentialCommand).de(de_DeleteServiceSpecificCredentialCommand).build() {
      static {
        __name(this, "DeleteServiceSpecificCredentialCommand");
      }
      static {
        __name2(this, "DeleteServiceSpecificCredentialCommand");
      }
    };
    var DeleteSigningCertificateCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "DeleteSigningCertificate", {}).n("IAMClient", "DeleteSigningCertificateCommand").f(void 0, void 0).ser(se_DeleteSigningCertificateCommand).de(de_DeleteSigningCertificateCommand).build() {
      static {
        __name(this, "DeleteSigningCertificateCommand");
      }
      static {
        __name2(this, "DeleteSigningCertificateCommand");
      }
    };
    var DeleteSSHPublicKeyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "DeleteSSHPublicKey", {}).n("IAMClient", "DeleteSSHPublicKeyCommand").f(void 0, void 0).ser(se_DeleteSSHPublicKeyCommand).de(de_DeleteSSHPublicKeyCommand).build() {
      static {
        __name(this, "DeleteSSHPublicKeyCommand");
      }
      static {
        __name2(this, "DeleteSSHPublicKeyCommand");
      }
    };
    var DeleteUserCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "DeleteUser", {}).n("IAMClient", "DeleteUserCommand").f(void 0, void 0).ser(se_DeleteUserCommand).de(de_DeleteUserCommand).build() {
      static {
        __name(this, "DeleteUserCommand");
      }
      static {
        __name2(this, "DeleteUserCommand");
      }
    };
    var DeleteUserPermissionsBoundaryCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "DeleteUserPermissionsBoundary", {}).n("IAMClient", "DeleteUserPermissionsBoundaryCommand").f(void 0, void 0).ser(se_DeleteUserPermissionsBoundaryCommand).de(de_DeleteUserPermissionsBoundaryCommand).build() {
      static {
        __name(this, "DeleteUserPermissionsBoundaryCommand");
      }
      static {
        __name2(this, "DeleteUserPermissionsBoundaryCommand");
      }
    };
    var DeleteUserPolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "DeleteUserPolicy", {}).n("IAMClient", "DeleteUserPolicyCommand").f(void 0, void 0).ser(se_DeleteUserPolicyCommand).de(de_DeleteUserPolicyCommand).build() {
      static {
        __name(this, "DeleteUserPolicyCommand");
      }
      static {
        __name2(this, "DeleteUserPolicyCommand");
      }
    };
    var DeleteVirtualMFADeviceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "DeleteVirtualMFADevice", {}).n("IAMClient", "DeleteVirtualMFADeviceCommand").f(void 0, void 0).ser(se_DeleteVirtualMFADeviceCommand).de(de_DeleteVirtualMFADeviceCommand).build() {
      static {
        __name(this, "DeleteVirtualMFADeviceCommand");
      }
      static {
        __name2(this, "DeleteVirtualMFADeviceCommand");
      }
    };
    var DetachGroupPolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "DetachGroupPolicy", {}).n("IAMClient", "DetachGroupPolicyCommand").f(void 0, void 0).ser(se_DetachGroupPolicyCommand).de(de_DetachGroupPolicyCommand).build() {
      static {
        __name(this, "DetachGroupPolicyCommand");
      }
      static {
        __name2(this, "DetachGroupPolicyCommand");
      }
    };
    var DetachRolePolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "DetachRolePolicy", {}).n("IAMClient", "DetachRolePolicyCommand").f(void 0, void 0).ser(se_DetachRolePolicyCommand).de(de_DetachRolePolicyCommand).build() {
      static {
        __name(this, "DetachRolePolicyCommand");
      }
      static {
        __name2(this, "DetachRolePolicyCommand");
      }
    };
    var DetachUserPolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "DetachUserPolicy", {}).n("IAMClient", "DetachUserPolicyCommand").f(void 0, void 0).ser(se_DetachUserPolicyCommand).de(de_DetachUserPolicyCommand).build() {
      static {
        __name(this, "DetachUserPolicyCommand");
      }
      static {
        __name2(this, "DetachUserPolicyCommand");
      }
    };
    var DisableOrganizationsRootCredentialsManagementCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "DisableOrganizationsRootCredentialsManagement", {}).n("IAMClient", "DisableOrganizationsRootCredentialsManagementCommand").f(void 0, void 0).ser(se_DisableOrganizationsRootCredentialsManagementCommand).de(de_DisableOrganizationsRootCredentialsManagementCommand).build() {
      static {
        __name(this, "DisableOrganizationsRootCredentialsManagementCommand");
      }
      static {
        __name2(this, "DisableOrganizationsRootCredentialsManagementCommand");
      }
    };
    var DisableOrganizationsRootSessionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "DisableOrganizationsRootSessions", {}).n("IAMClient", "DisableOrganizationsRootSessionsCommand").f(void 0, void 0).ser(se_DisableOrganizationsRootSessionsCommand).de(de_DisableOrganizationsRootSessionsCommand).build() {
      static {
        __name(this, "DisableOrganizationsRootSessionsCommand");
      }
      static {
        __name2(this, "DisableOrganizationsRootSessionsCommand");
      }
    };
    var EnableMFADeviceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "EnableMFADevice", {}).n("IAMClient", "EnableMFADeviceCommand").f(void 0, void 0).ser(se_EnableMFADeviceCommand).de(de_EnableMFADeviceCommand).build() {
      static {
        __name(this, "EnableMFADeviceCommand");
      }
      static {
        __name2(this, "EnableMFADeviceCommand");
      }
    };
    var EnableOrganizationsRootCredentialsManagementCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "EnableOrganizationsRootCredentialsManagement", {}).n("IAMClient", "EnableOrganizationsRootCredentialsManagementCommand").f(void 0, void 0).ser(se_EnableOrganizationsRootCredentialsManagementCommand).de(de_EnableOrganizationsRootCredentialsManagementCommand).build() {
      static {
        __name(this, "EnableOrganizationsRootCredentialsManagementCommand");
      }
      static {
        __name2(this, "EnableOrganizationsRootCredentialsManagementCommand");
      }
    };
    var EnableOrganizationsRootSessionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "EnableOrganizationsRootSessions", {}).n("IAMClient", "EnableOrganizationsRootSessionsCommand").f(void 0, void 0).ser(se_EnableOrganizationsRootSessionsCommand).de(de_EnableOrganizationsRootSessionsCommand).build() {
      static {
        __name(this, "EnableOrganizationsRootSessionsCommand");
      }
      static {
        __name2(this, "EnableOrganizationsRootSessionsCommand");
      }
    };
    var GenerateCredentialReportCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "GenerateCredentialReport", {}).n("IAMClient", "GenerateCredentialReportCommand").f(void 0, void 0).ser(se_GenerateCredentialReportCommand).de(de_GenerateCredentialReportCommand).build() {
      static {
        __name(this, "GenerateCredentialReportCommand");
      }
      static {
        __name2(this, "GenerateCredentialReportCommand");
      }
    };
    var GenerateOrganizationsAccessReportCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "GenerateOrganizationsAccessReport", {}).n("IAMClient", "GenerateOrganizationsAccessReportCommand").f(void 0, void 0).ser(se_GenerateOrganizationsAccessReportCommand).de(de_GenerateOrganizationsAccessReportCommand).build() {
      static {
        __name(this, "GenerateOrganizationsAccessReportCommand");
      }
      static {
        __name2(this, "GenerateOrganizationsAccessReportCommand");
      }
    };
    var GenerateServiceLastAccessedDetailsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "GenerateServiceLastAccessedDetails", {}).n("IAMClient", "GenerateServiceLastAccessedDetailsCommand").f(void 0, void 0).ser(se_GenerateServiceLastAccessedDetailsCommand).de(de_GenerateServiceLastAccessedDetailsCommand).build() {
      static {
        __name(this, "GenerateServiceLastAccessedDetailsCommand");
      }
      static {
        __name2(this, "GenerateServiceLastAccessedDetailsCommand");
      }
    };
    var GetAccessKeyLastUsedCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "GetAccessKeyLastUsed", {}).n("IAMClient", "GetAccessKeyLastUsedCommand").f(void 0, void 0).ser(se_GetAccessKeyLastUsedCommand).de(de_GetAccessKeyLastUsedCommand).build() {
      static {
        __name(this, "GetAccessKeyLastUsedCommand");
      }
      static {
        __name2(this, "GetAccessKeyLastUsedCommand");
      }
    };
    var GetAccountAuthorizationDetailsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "GetAccountAuthorizationDetails", {}).n("IAMClient", "GetAccountAuthorizationDetailsCommand").f(void 0, void 0).ser(se_GetAccountAuthorizationDetailsCommand).de(de_GetAccountAuthorizationDetailsCommand).build() {
      static {
        __name(this, "GetAccountAuthorizationDetailsCommand");
      }
      static {
        __name2(this, "GetAccountAuthorizationDetailsCommand");
      }
    };
    var GetAccountPasswordPolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "GetAccountPasswordPolicy", {}).n("IAMClient", "GetAccountPasswordPolicyCommand").f(void 0, void 0).ser(se_GetAccountPasswordPolicyCommand).de(de_GetAccountPasswordPolicyCommand).build() {
      static {
        __name(this, "GetAccountPasswordPolicyCommand");
      }
      static {
        __name2(this, "GetAccountPasswordPolicyCommand");
      }
    };
    var GetAccountSummaryCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "GetAccountSummary", {}).n("IAMClient", "GetAccountSummaryCommand").f(void 0, void 0).ser(se_GetAccountSummaryCommand).de(de_GetAccountSummaryCommand).build() {
      static {
        __name(this, "GetAccountSummaryCommand");
      }
      static {
        __name2(this, "GetAccountSummaryCommand");
      }
    };
    var GetContextKeysForCustomPolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "GetContextKeysForCustomPolicy", {}).n("IAMClient", "GetContextKeysForCustomPolicyCommand").f(void 0, void 0).ser(se_GetContextKeysForCustomPolicyCommand).de(de_GetContextKeysForCustomPolicyCommand).build() {
      static {
        __name(this, "GetContextKeysForCustomPolicyCommand");
      }
      static {
        __name2(this, "GetContextKeysForCustomPolicyCommand");
      }
    };
    var GetContextKeysForPrincipalPolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "GetContextKeysForPrincipalPolicy", {}).n("IAMClient", "GetContextKeysForPrincipalPolicyCommand").f(void 0, void 0).ser(se_GetContextKeysForPrincipalPolicyCommand).de(de_GetContextKeysForPrincipalPolicyCommand).build() {
      static {
        __name(this, "GetContextKeysForPrincipalPolicyCommand");
      }
      static {
        __name2(this, "GetContextKeysForPrincipalPolicyCommand");
      }
    };
    var GetCredentialReportCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "GetCredentialReport", {}).n("IAMClient", "GetCredentialReportCommand").f(void 0, void 0).ser(se_GetCredentialReportCommand).de(de_GetCredentialReportCommand).build() {
      static {
        __name(this, "GetCredentialReportCommand");
      }
      static {
        __name2(this, "GetCredentialReportCommand");
      }
    };
    var GetGroupCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "GetGroup", {}).n("IAMClient", "GetGroupCommand").f(void 0, void 0).ser(se_GetGroupCommand).de(de_GetGroupCommand).build() {
      static {
        __name(this, "GetGroupCommand");
      }
      static {
        __name2(this, "GetGroupCommand");
      }
    };
    var GetGroupPolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "GetGroupPolicy", {}).n("IAMClient", "GetGroupPolicyCommand").f(void 0, void 0).ser(se_GetGroupPolicyCommand).de(de_GetGroupPolicyCommand).build() {
      static {
        __name(this, "GetGroupPolicyCommand");
      }
      static {
        __name2(this, "GetGroupPolicyCommand");
      }
    };
    var GetInstanceProfileCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "GetInstanceProfile", {}).n("IAMClient", "GetInstanceProfileCommand").f(void 0, void 0).ser(se_GetInstanceProfileCommand).de(de_GetInstanceProfileCommand).build() {
      static {
        __name(this, "GetInstanceProfileCommand");
      }
      static {
        __name2(this, "GetInstanceProfileCommand");
      }
    };
    var GetLoginProfileCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "GetLoginProfile", {}).n("IAMClient", "GetLoginProfileCommand").f(void 0, void 0).ser(se_GetLoginProfileCommand).de(de_GetLoginProfileCommand).build() {
      static {
        __name(this, "GetLoginProfileCommand");
      }
      static {
        __name2(this, "GetLoginProfileCommand");
      }
    };
    var GetMFADeviceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "GetMFADevice", {}).n("IAMClient", "GetMFADeviceCommand").f(void 0, void 0).ser(se_GetMFADeviceCommand).de(de_GetMFADeviceCommand).build() {
      static {
        __name(this, "GetMFADeviceCommand");
      }
      static {
        __name2(this, "GetMFADeviceCommand");
      }
    };
    var GetOpenIDConnectProviderCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "GetOpenIDConnectProvider", {}).n("IAMClient", "GetOpenIDConnectProviderCommand").f(void 0, void 0).ser(se_GetOpenIDConnectProviderCommand).de(de_GetOpenIDConnectProviderCommand).build() {
      static {
        __name(this, "GetOpenIDConnectProviderCommand");
      }
      static {
        __name2(this, "GetOpenIDConnectProviderCommand");
      }
    };
    var GetOrganizationsAccessReportCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "GetOrganizationsAccessReport", {}).n("IAMClient", "GetOrganizationsAccessReportCommand").f(void 0, void 0).ser(se_GetOrganizationsAccessReportCommand).de(de_GetOrganizationsAccessReportCommand).build() {
      static {
        __name(this, "GetOrganizationsAccessReportCommand");
      }
      static {
        __name2(this, "GetOrganizationsAccessReportCommand");
      }
    };
    var GetPolicyCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "GetPolicy", {}).n("IAMClient", "GetPolicyCommand").f(void 0, void 0).ser(se_GetPolicyCommand).de(de_GetPolicyCommand).build() {
      static {
        __name(this, "GetPolicyCommand");
      }
      static {
        __name2(this, "GetPolicyCommand");
      }
    };
    var GetPolicyVersionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "GetPolicyVersion", {}).n("IAMClient", "GetPolicyVersionCommand").f(void 0, void 0).ser(se_GetPolicyVersionCommand).de(de_GetPolicyVersionCommand).build() {
      static {
        __name(this, "GetPolicyVersionCommand");
      }
      static {
        __name2(this, "GetPolicyVersionCommand");
      }
    };
    var GetRoleCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "GetRole", {}).n("IAMClient", "GetRoleCommand").f(void 0, void 0).ser(se_GetRoleCommand).de(de_GetRoleCommand).build() {
      static {
        __name(this, "GetRoleCommand");
      }
      static {
        __name2(this, "GetRoleCommand");
      }
    };
    var GetRolePolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "GetRolePolicy", {}).n("IAMClient", "GetRolePolicyCommand").f(void 0, void 0).ser(se_GetRolePolicyCommand).de(de_GetRolePolicyCommand).build() {
      static {
        __name(this, "GetRolePolicyCommand");
      }
      static {
        __name2(this, "GetRolePolicyCommand");
      }
    };
    var GetSAMLProviderCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "GetSAMLProvider", {}).n("IAMClient", "GetSAMLProviderCommand").f(void 0, void 0).ser(se_GetSAMLProviderCommand).de(de_GetSAMLProviderCommand).build() {
      static {
        __name(this, "GetSAMLProviderCommand");
      }
      static {
        __name2(this, "GetSAMLProviderCommand");
      }
    };
    var GetServerCertificateCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "GetServerCertificate", {}).n("IAMClient", "GetServerCertificateCommand").f(void 0, void 0).ser(se_GetServerCertificateCommand).de(de_GetServerCertificateCommand).build() {
      static {
        __name(this, "GetServerCertificateCommand");
      }
      static {
        __name2(this, "GetServerCertificateCommand");
      }
    };
    var GetServiceLastAccessedDetailsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "GetServiceLastAccessedDetails", {}).n("IAMClient", "GetServiceLastAccessedDetailsCommand").f(void 0, void 0).ser(se_GetServiceLastAccessedDetailsCommand).de(de_GetServiceLastAccessedDetailsCommand).build() {
      static {
        __name(this, "GetServiceLastAccessedDetailsCommand");
      }
      static {
        __name2(this, "GetServiceLastAccessedDetailsCommand");
      }
    };
    var GetServiceLastAccessedDetailsWithEntitiesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "GetServiceLastAccessedDetailsWithEntities", {}).n("IAMClient", "GetServiceLastAccessedDetailsWithEntitiesCommand").f(void 0, void 0).ser(se_GetServiceLastAccessedDetailsWithEntitiesCommand).de(de_GetServiceLastAccessedDetailsWithEntitiesCommand).build() {
      static {
        __name(this, "GetServiceLastAccessedDetailsWithEntitiesCommand");
      }
      static {
        __name2(this, "GetServiceLastAccessedDetailsWithEntitiesCommand");
      }
    };
    var GetServiceLinkedRoleDeletionStatusCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "GetServiceLinkedRoleDeletionStatus", {}).n("IAMClient", "GetServiceLinkedRoleDeletionStatusCommand").f(void 0, void 0).ser(se_GetServiceLinkedRoleDeletionStatusCommand).de(de_GetServiceLinkedRoleDeletionStatusCommand).build() {
      static {
        __name(this, "GetServiceLinkedRoleDeletionStatusCommand");
      }
      static {
        __name2(this, "GetServiceLinkedRoleDeletionStatusCommand");
      }
    };
    var GetSSHPublicKeyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "GetSSHPublicKey", {}).n("IAMClient", "GetSSHPublicKeyCommand").f(void 0, void 0).ser(se_GetSSHPublicKeyCommand).de(de_GetSSHPublicKeyCommand).build() {
      static {
        __name(this, "GetSSHPublicKeyCommand");
      }
      static {
        __name2(this, "GetSSHPublicKeyCommand");
      }
    };
    var GetUserCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "GetUser", {}).n("IAMClient", "GetUserCommand").f(void 0, void 0).ser(se_GetUserCommand).de(de_GetUserCommand).build() {
      static {
        __name(this, "GetUserCommand");
      }
      static {
        __name2(this, "GetUserCommand");
      }
    };
    var GetUserPolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "GetUserPolicy", {}).n("IAMClient", "GetUserPolicyCommand").f(void 0, void 0).ser(se_GetUserPolicyCommand).de(de_GetUserPolicyCommand).build() {
      static {
        __name(this, "GetUserPolicyCommand");
      }
      static {
        __name2(this, "GetUserPolicyCommand");
      }
    };
    var ListAccessKeysCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "ListAccessKeys", {}).n("IAMClient", "ListAccessKeysCommand").f(void 0, void 0).ser(se_ListAccessKeysCommand).de(de_ListAccessKeysCommand).build() {
      static {
        __name(this, "ListAccessKeysCommand");
      }
      static {
        __name2(this, "ListAccessKeysCommand");
      }
    };
    var ListAccountAliasesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "ListAccountAliases", {}).n("IAMClient", "ListAccountAliasesCommand").f(void 0, void 0).ser(se_ListAccountAliasesCommand).de(de_ListAccountAliasesCommand).build() {
      static {
        __name(this, "ListAccountAliasesCommand");
      }
      static {
        __name2(this, "ListAccountAliasesCommand");
      }
    };
    var ListAttachedGroupPoliciesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "ListAttachedGroupPolicies", {}).n("IAMClient", "ListAttachedGroupPoliciesCommand").f(void 0, void 0).ser(se_ListAttachedGroupPoliciesCommand).de(de_ListAttachedGroupPoliciesCommand).build() {
      static {
        __name(this, "ListAttachedGroupPoliciesCommand");
      }
      static {
        __name2(this, "ListAttachedGroupPoliciesCommand");
      }
    };
    var ListAttachedRolePoliciesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "ListAttachedRolePolicies", {}).n("IAMClient", "ListAttachedRolePoliciesCommand").f(void 0, void 0).ser(se_ListAttachedRolePoliciesCommand).de(de_ListAttachedRolePoliciesCommand).build() {
      static {
        __name(this, "ListAttachedRolePoliciesCommand");
      }
      static {
        __name2(this, "ListAttachedRolePoliciesCommand");
      }
    };
    var ListAttachedUserPoliciesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "ListAttachedUserPolicies", {}).n("IAMClient", "ListAttachedUserPoliciesCommand").f(void 0, void 0).ser(se_ListAttachedUserPoliciesCommand).de(de_ListAttachedUserPoliciesCommand).build() {
      static {
        __name(this, "ListAttachedUserPoliciesCommand");
      }
      static {
        __name2(this, "ListAttachedUserPoliciesCommand");
      }
    };
    var ListEntitiesForPolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "ListEntitiesForPolicy", {}).n("IAMClient", "ListEntitiesForPolicyCommand").f(void 0, void 0).ser(se_ListEntitiesForPolicyCommand).de(de_ListEntitiesForPolicyCommand).build() {
      static {
        __name(this, "ListEntitiesForPolicyCommand");
      }
      static {
        __name2(this, "ListEntitiesForPolicyCommand");
      }
    };
    var ListGroupPoliciesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "ListGroupPolicies", {}).n("IAMClient", "ListGroupPoliciesCommand").f(void 0, void 0).ser(se_ListGroupPoliciesCommand).de(de_ListGroupPoliciesCommand).build() {
      static {
        __name(this, "ListGroupPoliciesCommand");
      }
      static {
        __name2(this, "ListGroupPoliciesCommand");
      }
    };
    var ListGroupsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "ListGroups", {}).n("IAMClient", "ListGroupsCommand").f(void 0, void 0).ser(se_ListGroupsCommand).de(de_ListGroupsCommand).build() {
      static {
        __name(this, "ListGroupsCommand");
      }
      static {
        __name2(this, "ListGroupsCommand");
      }
    };
    var ListGroupsForUserCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "ListGroupsForUser", {}).n("IAMClient", "ListGroupsForUserCommand").f(void 0, void 0).ser(se_ListGroupsForUserCommand).de(de_ListGroupsForUserCommand).build() {
      static {
        __name(this, "ListGroupsForUserCommand");
      }
      static {
        __name2(this, "ListGroupsForUserCommand");
      }
    };
    var ListInstanceProfilesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "ListInstanceProfiles", {}).n("IAMClient", "ListInstanceProfilesCommand").f(void 0, void 0).ser(se_ListInstanceProfilesCommand).de(de_ListInstanceProfilesCommand).build() {
      static {
        __name(this, "ListInstanceProfilesCommand");
      }
      static {
        __name2(this, "ListInstanceProfilesCommand");
      }
    };
    var ListInstanceProfilesForRoleCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "ListInstanceProfilesForRole", {}).n("IAMClient", "ListInstanceProfilesForRoleCommand").f(void 0, void 0).ser(se_ListInstanceProfilesForRoleCommand).de(de_ListInstanceProfilesForRoleCommand).build() {
      static {
        __name(this, "ListInstanceProfilesForRoleCommand");
      }
      static {
        __name2(this, "ListInstanceProfilesForRoleCommand");
      }
    };
    var ListInstanceProfileTagsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "ListInstanceProfileTags", {}).n("IAMClient", "ListInstanceProfileTagsCommand").f(void 0, void 0).ser(se_ListInstanceProfileTagsCommand).de(de_ListInstanceProfileTagsCommand).build() {
      static {
        __name(this, "ListInstanceProfileTagsCommand");
      }
      static {
        __name2(this, "ListInstanceProfileTagsCommand");
      }
    };
    var ListMFADevicesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "ListMFADevices", {}).n("IAMClient", "ListMFADevicesCommand").f(void 0, void 0).ser(se_ListMFADevicesCommand).de(de_ListMFADevicesCommand).build() {
      static {
        __name(this, "ListMFADevicesCommand");
      }
      static {
        __name2(this, "ListMFADevicesCommand");
      }
    };
    var ListMFADeviceTagsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "ListMFADeviceTags", {}).n("IAMClient", "ListMFADeviceTagsCommand").f(void 0, void 0).ser(se_ListMFADeviceTagsCommand).de(de_ListMFADeviceTagsCommand).build() {
      static {
        __name(this, "ListMFADeviceTagsCommand");
      }
      static {
        __name2(this, "ListMFADeviceTagsCommand");
      }
    };
    var ListOpenIDConnectProvidersCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "ListOpenIDConnectProviders", {}).n("IAMClient", "ListOpenIDConnectProvidersCommand").f(void 0, void 0).ser(se_ListOpenIDConnectProvidersCommand).de(de_ListOpenIDConnectProvidersCommand).build() {
      static {
        __name(this, "ListOpenIDConnectProvidersCommand");
      }
      static {
        __name2(this, "ListOpenIDConnectProvidersCommand");
      }
    };
    var ListOpenIDConnectProviderTagsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "ListOpenIDConnectProviderTags", {}).n("IAMClient", "ListOpenIDConnectProviderTagsCommand").f(void 0, void 0).ser(se_ListOpenIDConnectProviderTagsCommand).de(de_ListOpenIDConnectProviderTagsCommand).build() {
      static {
        __name(this, "ListOpenIDConnectProviderTagsCommand");
      }
      static {
        __name2(this, "ListOpenIDConnectProviderTagsCommand");
      }
    };
    var ListOrganizationsFeaturesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "ListOrganizationsFeatures", {}).n("IAMClient", "ListOrganizationsFeaturesCommand").f(void 0, void 0).ser(se_ListOrganizationsFeaturesCommand).de(de_ListOrganizationsFeaturesCommand).build() {
      static {
        __name(this, "ListOrganizationsFeaturesCommand");
      }
      static {
        __name2(this, "ListOrganizationsFeaturesCommand");
      }
    };
    var ListPoliciesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "ListPolicies", {}).n("IAMClient", "ListPoliciesCommand").f(void 0, void 0).ser(se_ListPoliciesCommand).de(de_ListPoliciesCommand).build() {
      static {
        __name(this, "ListPoliciesCommand");
      }
      static {
        __name2(this, "ListPoliciesCommand");
      }
    };
    var ListPoliciesGrantingServiceAccessCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "ListPoliciesGrantingServiceAccess", {}).n("IAMClient", "ListPoliciesGrantingServiceAccessCommand").f(void 0, void 0).ser(se_ListPoliciesGrantingServiceAccessCommand).de(de_ListPoliciesGrantingServiceAccessCommand).build() {
      static {
        __name(this, "ListPoliciesGrantingServiceAccessCommand");
      }
      static {
        __name2(this, "ListPoliciesGrantingServiceAccessCommand");
      }
    };
    var ListPolicyTagsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "ListPolicyTags", {}).n("IAMClient", "ListPolicyTagsCommand").f(void 0, void 0).ser(se_ListPolicyTagsCommand).de(de_ListPolicyTagsCommand).build() {
      static {
        __name(this, "ListPolicyTagsCommand");
      }
      static {
        __name2(this, "ListPolicyTagsCommand");
      }
    };
    var ListPolicyVersionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "ListPolicyVersions", {}).n("IAMClient", "ListPolicyVersionsCommand").f(void 0, void 0).ser(se_ListPolicyVersionsCommand).de(de_ListPolicyVersionsCommand).build() {
      static {
        __name(this, "ListPolicyVersionsCommand");
      }
      static {
        __name2(this, "ListPolicyVersionsCommand");
      }
    };
    var ListRolePoliciesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "ListRolePolicies", {}).n("IAMClient", "ListRolePoliciesCommand").f(void 0, void 0).ser(se_ListRolePoliciesCommand).de(de_ListRolePoliciesCommand).build() {
      static {
        __name(this, "ListRolePoliciesCommand");
      }
      static {
        __name2(this, "ListRolePoliciesCommand");
      }
    };
    var ListRolesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "ListRoles", {}).n("IAMClient", "ListRolesCommand").f(void 0, void 0).ser(se_ListRolesCommand).de(de_ListRolesCommand).build() {
      static {
        __name(this, "ListRolesCommand");
      }
      static {
        __name2(this, "ListRolesCommand");
      }
    };
    var ListRoleTagsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "ListRoleTags", {}).n("IAMClient", "ListRoleTagsCommand").f(void 0, void 0).ser(se_ListRoleTagsCommand).de(de_ListRoleTagsCommand).build() {
      static {
        __name(this, "ListRoleTagsCommand");
      }
      static {
        __name2(this, "ListRoleTagsCommand");
      }
    };
    var ListSAMLProvidersCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "ListSAMLProviders", {}).n("IAMClient", "ListSAMLProvidersCommand").f(void 0, void 0).ser(se_ListSAMLProvidersCommand).de(de_ListSAMLProvidersCommand).build() {
      static {
        __name(this, "ListSAMLProvidersCommand");
      }
      static {
        __name2(this, "ListSAMLProvidersCommand");
      }
    };
    var ListSAMLProviderTagsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "ListSAMLProviderTags", {}).n("IAMClient", "ListSAMLProviderTagsCommand").f(void 0, void 0).ser(se_ListSAMLProviderTagsCommand).de(de_ListSAMLProviderTagsCommand).build() {
      static {
        __name(this, "ListSAMLProviderTagsCommand");
      }
      static {
        __name2(this, "ListSAMLProviderTagsCommand");
      }
    };
    var ListServerCertificatesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "ListServerCertificates", {}).n("IAMClient", "ListServerCertificatesCommand").f(void 0, void 0).ser(se_ListServerCertificatesCommand).de(de_ListServerCertificatesCommand).build() {
      static {
        __name(this, "ListServerCertificatesCommand");
      }
      static {
        __name2(this, "ListServerCertificatesCommand");
      }
    };
    var ListServerCertificateTagsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "ListServerCertificateTags", {}).n("IAMClient", "ListServerCertificateTagsCommand").f(void 0, void 0).ser(se_ListServerCertificateTagsCommand).de(de_ListServerCertificateTagsCommand).build() {
      static {
        __name(this, "ListServerCertificateTagsCommand");
      }
      static {
        __name2(this, "ListServerCertificateTagsCommand");
      }
    };
    var ListServiceSpecificCredentialsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "ListServiceSpecificCredentials", {}).n("IAMClient", "ListServiceSpecificCredentialsCommand").f(void 0, void 0).ser(se_ListServiceSpecificCredentialsCommand).de(de_ListServiceSpecificCredentialsCommand).build() {
      static {
        __name(this, "ListServiceSpecificCredentialsCommand");
      }
      static {
        __name2(this, "ListServiceSpecificCredentialsCommand");
      }
    };
    var ListSigningCertificatesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "ListSigningCertificates", {}).n("IAMClient", "ListSigningCertificatesCommand").f(void 0, void 0).ser(se_ListSigningCertificatesCommand).de(de_ListSigningCertificatesCommand).build() {
      static {
        __name(this, "ListSigningCertificatesCommand");
      }
      static {
        __name2(this, "ListSigningCertificatesCommand");
      }
    };
    var ListSSHPublicKeysCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "ListSSHPublicKeys", {}).n("IAMClient", "ListSSHPublicKeysCommand").f(void 0, void 0).ser(se_ListSSHPublicKeysCommand).de(de_ListSSHPublicKeysCommand).build() {
      static {
        __name(this, "ListSSHPublicKeysCommand");
      }
      static {
        __name2(this, "ListSSHPublicKeysCommand");
      }
    };
    var ListUserPoliciesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "ListUserPolicies", {}).n("IAMClient", "ListUserPoliciesCommand").f(void 0, void 0).ser(se_ListUserPoliciesCommand).de(de_ListUserPoliciesCommand).build() {
      static {
        __name(this, "ListUserPoliciesCommand");
      }
      static {
        __name2(this, "ListUserPoliciesCommand");
      }
    };
    var ListUsersCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "ListUsers", {}).n("IAMClient", "ListUsersCommand").f(void 0, void 0).ser(se_ListUsersCommand).de(de_ListUsersCommand).build() {
      static {
        __name(this, "ListUsersCommand");
      }
      static {
        __name2(this, "ListUsersCommand");
      }
    };
    var ListUserTagsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "ListUserTags", {}).n("IAMClient", "ListUserTagsCommand").f(void 0, void 0).ser(se_ListUserTagsCommand).de(de_ListUserTagsCommand).build() {
      static {
        __name(this, "ListUserTagsCommand");
      }
      static {
        __name2(this, "ListUserTagsCommand");
      }
    };
    var ListVirtualMFADevicesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "ListVirtualMFADevices", {}).n("IAMClient", "ListVirtualMFADevicesCommand").f(void 0, ListVirtualMFADevicesResponseFilterSensitiveLog).ser(se_ListVirtualMFADevicesCommand).de(de_ListVirtualMFADevicesCommand).build() {
      static {
        __name(this, "ListVirtualMFADevicesCommand");
      }
      static {
        __name2(this, "ListVirtualMFADevicesCommand");
      }
    };
    var PutGroupPolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "PutGroupPolicy", {}).n("IAMClient", "PutGroupPolicyCommand").f(void 0, void 0).ser(se_PutGroupPolicyCommand).de(de_PutGroupPolicyCommand).build() {
      static {
        __name(this, "PutGroupPolicyCommand");
      }
      static {
        __name2(this, "PutGroupPolicyCommand");
      }
    };
    var PutRolePermissionsBoundaryCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "PutRolePermissionsBoundary", {}).n("IAMClient", "PutRolePermissionsBoundaryCommand").f(void 0, void 0).ser(se_PutRolePermissionsBoundaryCommand).de(de_PutRolePermissionsBoundaryCommand).build() {
      static {
        __name(this, "PutRolePermissionsBoundaryCommand");
      }
      static {
        __name2(this, "PutRolePermissionsBoundaryCommand");
      }
    };
    var PutRolePolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "PutRolePolicy", {}).n("IAMClient", "PutRolePolicyCommand").f(void 0, void 0).ser(se_PutRolePolicyCommand).de(de_PutRolePolicyCommand).build() {
      static {
        __name(this, "PutRolePolicyCommand");
      }
      static {
        __name2(this, "PutRolePolicyCommand");
      }
    };
    var PutUserPermissionsBoundaryCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "PutUserPermissionsBoundary", {}).n("IAMClient", "PutUserPermissionsBoundaryCommand").f(void 0, void 0).ser(se_PutUserPermissionsBoundaryCommand).de(de_PutUserPermissionsBoundaryCommand).build() {
      static {
        __name(this, "PutUserPermissionsBoundaryCommand");
      }
      static {
        __name2(this, "PutUserPermissionsBoundaryCommand");
      }
    };
    var PutUserPolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "PutUserPolicy", {}).n("IAMClient", "PutUserPolicyCommand").f(void 0, void 0).ser(se_PutUserPolicyCommand).de(de_PutUserPolicyCommand).build() {
      static {
        __name(this, "PutUserPolicyCommand");
      }
      static {
        __name2(this, "PutUserPolicyCommand");
      }
    };
    var RemoveClientIDFromOpenIDConnectProviderCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "RemoveClientIDFromOpenIDConnectProvider", {}).n("IAMClient", "RemoveClientIDFromOpenIDConnectProviderCommand").f(void 0, void 0).ser(se_RemoveClientIDFromOpenIDConnectProviderCommand).de(de_RemoveClientIDFromOpenIDConnectProviderCommand).build() {
      static {
        __name(this, "RemoveClientIDFromOpenIDConnectProviderCommand");
      }
      static {
        __name2(this, "RemoveClientIDFromOpenIDConnectProviderCommand");
      }
    };
    var RemoveRoleFromInstanceProfileCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "RemoveRoleFromInstanceProfile", {}).n("IAMClient", "RemoveRoleFromInstanceProfileCommand").f(void 0, void 0).ser(se_RemoveRoleFromInstanceProfileCommand).de(de_RemoveRoleFromInstanceProfileCommand).build() {
      static {
        __name(this, "RemoveRoleFromInstanceProfileCommand");
      }
      static {
        __name2(this, "RemoveRoleFromInstanceProfileCommand");
      }
    };
    var RemoveUserFromGroupCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "RemoveUserFromGroup", {}).n("IAMClient", "RemoveUserFromGroupCommand").f(void 0, void 0).ser(se_RemoveUserFromGroupCommand).de(de_RemoveUserFromGroupCommand).build() {
      static {
        __name(this, "RemoveUserFromGroupCommand");
      }
      static {
        __name2(this, "RemoveUserFromGroupCommand");
      }
    };
    var ResetServiceSpecificCredentialCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "ResetServiceSpecificCredential", {}).n("IAMClient", "ResetServiceSpecificCredentialCommand").f(void 0, ResetServiceSpecificCredentialResponseFilterSensitiveLog).ser(se_ResetServiceSpecificCredentialCommand).de(de_ResetServiceSpecificCredentialCommand).build() {
      static {
        __name(this, "ResetServiceSpecificCredentialCommand");
      }
      static {
        __name2(this, "ResetServiceSpecificCredentialCommand");
      }
    };
    var ResyncMFADeviceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "ResyncMFADevice", {}).n("IAMClient", "ResyncMFADeviceCommand").f(void 0, void 0).ser(se_ResyncMFADeviceCommand).de(de_ResyncMFADeviceCommand).build() {
      static {
        __name(this, "ResyncMFADeviceCommand");
      }
      static {
        __name2(this, "ResyncMFADeviceCommand");
      }
    };
    var SetDefaultPolicyVersionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "SetDefaultPolicyVersion", {}).n("IAMClient", "SetDefaultPolicyVersionCommand").f(void 0, void 0).ser(se_SetDefaultPolicyVersionCommand).de(de_SetDefaultPolicyVersionCommand).build() {
      static {
        __name(this, "SetDefaultPolicyVersionCommand");
      }
      static {
        __name2(this, "SetDefaultPolicyVersionCommand");
      }
    };
    var SetSecurityTokenServicePreferencesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "SetSecurityTokenServicePreferences", {}).n("IAMClient", "SetSecurityTokenServicePreferencesCommand").f(void 0, void 0).ser(se_SetSecurityTokenServicePreferencesCommand).de(de_SetSecurityTokenServicePreferencesCommand).build() {
      static {
        __name(this, "SetSecurityTokenServicePreferencesCommand");
      }
      static {
        __name2(this, "SetSecurityTokenServicePreferencesCommand");
      }
    };
    var SimulateCustomPolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "SimulateCustomPolicy", {}).n("IAMClient", "SimulateCustomPolicyCommand").f(void 0, void 0).ser(se_SimulateCustomPolicyCommand).de(de_SimulateCustomPolicyCommand).build() {
      static {
        __name(this, "SimulateCustomPolicyCommand");
      }
      static {
        __name2(this, "SimulateCustomPolicyCommand");
      }
    };
    var SimulatePrincipalPolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "SimulatePrincipalPolicy", {}).n("IAMClient", "SimulatePrincipalPolicyCommand").f(void 0, void 0).ser(se_SimulatePrincipalPolicyCommand).de(de_SimulatePrincipalPolicyCommand).build() {
      static {
        __name(this, "SimulatePrincipalPolicyCommand");
      }
      static {
        __name2(this, "SimulatePrincipalPolicyCommand");
      }
    };
    var TagInstanceProfileCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "TagInstanceProfile", {}).n("IAMClient", "TagInstanceProfileCommand").f(void 0, void 0).ser(se_TagInstanceProfileCommand).de(de_TagInstanceProfileCommand).build() {
      static {
        __name(this, "TagInstanceProfileCommand");
      }
      static {
        __name2(this, "TagInstanceProfileCommand");
      }
    };
    var TagMFADeviceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "TagMFADevice", {}).n("IAMClient", "TagMFADeviceCommand").f(void 0, void 0).ser(se_TagMFADeviceCommand).de(de_TagMFADeviceCommand).build() {
      static {
        __name(this, "TagMFADeviceCommand");
      }
      static {
        __name2(this, "TagMFADeviceCommand");
      }
    };
    var TagOpenIDConnectProviderCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "TagOpenIDConnectProvider", {}).n("IAMClient", "TagOpenIDConnectProviderCommand").f(void 0, void 0).ser(se_TagOpenIDConnectProviderCommand).de(de_TagOpenIDConnectProviderCommand).build() {
      static {
        __name(this, "TagOpenIDConnectProviderCommand");
      }
      static {
        __name2(this, "TagOpenIDConnectProviderCommand");
      }
    };
    var TagPolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "TagPolicy", {}).n("IAMClient", "TagPolicyCommand").f(void 0, void 0).ser(se_TagPolicyCommand).de(de_TagPolicyCommand).build() {
      static {
        __name(this, "TagPolicyCommand");
      }
      static {
        __name2(this, "TagPolicyCommand");
      }
    };
    var TagRoleCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "TagRole", {}).n("IAMClient", "TagRoleCommand").f(void 0, void 0).ser(se_TagRoleCommand).de(de_TagRoleCommand).build() {
      static {
        __name(this, "TagRoleCommand");
      }
      static {
        __name2(this, "TagRoleCommand");
      }
    };
    var TagSAMLProviderCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "TagSAMLProvider", {}).n("IAMClient", "TagSAMLProviderCommand").f(void 0, void 0).ser(se_TagSAMLProviderCommand).de(de_TagSAMLProviderCommand).build() {
      static {
        __name(this, "TagSAMLProviderCommand");
      }
      static {
        __name2(this, "TagSAMLProviderCommand");
      }
    };
    var TagServerCertificateCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "TagServerCertificate", {}).n("IAMClient", "TagServerCertificateCommand").f(void 0, void 0).ser(se_TagServerCertificateCommand).de(de_TagServerCertificateCommand).build() {
      static {
        __name(this, "TagServerCertificateCommand");
      }
      static {
        __name2(this, "TagServerCertificateCommand");
      }
    };
    var TagUserCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "TagUser", {}).n("IAMClient", "TagUserCommand").f(void 0, void 0).ser(se_TagUserCommand).de(de_TagUserCommand).build() {
      static {
        __name(this, "TagUserCommand");
      }
      static {
        __name2(this, "TagUserCommand");
      }
    };
    var UntagInstanceProfileCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "UntagInstanceProfile", {}).n("IAMClient", "UntagInstanceProfileCommand").f(void 0, void 0).ser(se_UntagInstanceProfileCommand).de(de_UntagInstanceProfileCommand).build() {
      static {
        __name(this, "UntagInstanceProfileCommand");
      }
      static {
        __name2(this, "UntagInstanceProfileCommand");
      }
    };
    var UntagMFADeviceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "UntagMFADevice", {}).n("IAMClient", "UntagMFADeviceCommand").f(void 0, void 0).ser(se_UntagMFADeviceCommand).de(de_UntagMFADeviceCommand).build() {
      static {
        __name(this, "UntagMFADeviceCommand");
      }
      static {
        __name2(this, "UntagMFADeviceCommand");
      }
    };
    var UntagOpenIDConnectProviderCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "UntagOpenIDConnectProvider", {}).n("IAMClient", "UntagOpenIDConnectProviderCommand").f(void 0, void 0).ser(se_UntagOpenIDConnectProviderCommand).de(de_UntagOpenIDConnectProviderCommand).build() {
      static {
        __name(this, "UntagOpenIDConnectProviderCommand");
      }
      static {
        __name2(this, "UntagOpenIDConnectProviderCommand");
      }
    };
    var UntagPolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "UntagPolicy", {}).n("IAMClient", "UntagPolicyCommand").f(void 0, void 0).ser(se_UntagPolicyCommand).de(de_UntagPolicyCommand).build() {
      static {
        __name(this, "UntagPolicyCommand");
      }
      static {
        __name2(this, "UntagPolicyCommand");
      }
    };
    var UntagRoleCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "UntagRole", {}).n("IAMClient", "UntagRoleCommand").f(void 0, void 0).ser(se_UntagRoleCommand).de(de_UntagRoleCommand).build() {
      static {
        __name(this, "UntagRoleCommand");
      }
      static {
        __name2(this, "UntagRoleCommand");
      }
    };
    var UntagSAMLProviderCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "UntagSAMLProvider", {}).n("IAMClient", "UntagSAMLProviderCommand").f(void 0, void 0).ser(se_UntagSAMLProviderCommand).de(de_UntagSAMLProviderCommand).build() {
      static {
        __name(this, "UntagSAMLProviderCommand");
      }
      static {
        __name2(this, "UntagSAMLProviderCommand");
      }
    };
    var UntagServerCertificateCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "UntagServerCertificate", {}).n("IAMClient", "UntagServerCertificateCommand").f(void 0, void 0).ser(se_UntagServerCertificateCommand).de(de_UntagServerCertificateCommand).build() {
      static {
        __name(this, "UntagServerCertificateCommand");
      }
      static {
        __name2(this, "UntagServerCertificateCommand");
      }
    };
    var UntagUserCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "UntagUser", {}).n("IAMClient", "UntagUserCommand").f(void 0, void 0).ser(se_UntagUserCommand).de(de_UntagUserCommand).build() {
      static {
        __name(this, "UntagUserCommand");
      }
      static {
        __name2(this, "UntagUserCommand");
      }
    };
    var UpdateAccessKeyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "UpdateAccessKey", {}).n("IAMClient", "UpdateAccessKeyCommand").f(void 0, void 0).ser(se_UpdateAccessKeyCommand).de(de_UpdateAccessKeyCommand).build() {
      static {
        __name(this, "UpdateAccessKeyCommand");
      }
      static {
        __name2(this, "UpdateAccessKeyCommand");
      }
    };
    var UpdateAccountPasswordPolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "UpdateAccountPasswordPolicy", {}).n("IAMClient", "UpdateAccountPasswordPolicyCommand").f(void 0, void 0).ser(se_UpdateAccountPasswordPolicyCommand).de(de_UpdateAccountPasswordPolicyCommand).build() {
      static {
        __name(this, "UpdateAccountPasswordPolicyCommand");
      }
      static {
        __name2(this, "UpdateAccountPasswordPolicyCommand");
      }
    };
    var UpdateAssumeRolePolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "UpdateAssumeRolePolicy", {}).n("IAMClient", "UpdateAssumeRolePolicyCommand").f(void 0, void 0).ser(se_UpdateAssumeRolePolicyCommand).de(de_UpdateAssumeRolePolicyCommand).build() {
      static {
        __name(this, "UpdateAssumeRolePolicyCommand");
      }
      static {
        __name2(this, "UpdateAssumeRolePolicyCommand");
      }
    };
    var UpdateGroupCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "UpdateGroup", {}).n("IAMClient", "UpdateGroupCommand").f(void 0, void 0).ser(se_UpdateGroupCommand).de(de_UpdateGroupCommand).build() {
      static {
        __name(this, "UpdateGroupCommand");
      }
      static {
        __name2(this, "UpdateGroupCommand");
      }
    };
    var UpdateLoginProfileCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "UpdateLoginProfile", {}).n("IAMClient", "UpdateLoginProfileCommand").f(UpdateLoginProfileRequestFilterSensitiveLog, void 0).ser(se_UpdateLoginProfileCommand).de(de_UpdateLoginProfileCommand).build() {
      static {
        __name(this, "UpdateLoginProfileCommand");
      }
      static {
        __name2(this, "UpdateLoginProfileCommand");
      }
    };
    var UpdateOpenIDConnectProviderThumbprintCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "UpdateOpenIDConnectProviderThumbprint", {}).n("IAMClient", "UpdateOpenIDConnectProviderThumbprintCommand").f(void 0, void 0).ser(se_UpdateOpenIDConnectProviderThumbprintCommand).de(de_UpdateOpenIDConnectProviderThumbprintCommand).build() {
      static {
        __name(this, "UpdateOpenIDConnectProviderThumbprintCommand");
      }
      static {
        __name2(this, "UpdateOpenIDConnectProviderThumbprintCommand");
      }
    };
    var UpdateRoleCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "UpdateRole", {}).n("IAMClient", "UpdateRoleCommand").f(void 0, void 0).ser(se_UpdateRoleCommand).de(de_UpdateRoleCommand).build() {
      static {
        __name(this, "UpdateRoleCommand");
      }
      static {
        __name2(this, "UpdateRoleCommand");
      }
    };
    var UpdateRoleDescriptionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "UpdateRoleDescription", {}).n("IAMClient", "UpdateRoleDescriptionCommand").f(void 0, void 0).ser(se_UpdateRoleDescriptionCommand).de(de_UpdateRoleDescriptionCommand).build() {
      static {
        __name(this, "UpdateRoleDescriptionCommand");
      }
      static {
        __name2(this, "UpdateRoleDescriptionCommand");
      }
    };
    var UpdateSAMLProviderCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "UpdateSAMLProvider", {}).n("IAMClient", "UpdateSAMLProviderCommand").f(UpdateSAMLProviderRequestFilterSensitiveLog, void 0).ser(se_UpdateSAMLProviderCommand).de(de_UpdateSAMLProviderCommand).build() {
      static {
        __name(this, "UpdateSAMLProviderCommand");
      }
      static {
        __name2(this, "UpdateSAMLProviderCommand");
      }
    };
    var UpdateServerCertificateCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "UpdateServerCertificate", {}).n("IAMClient", "UpdateServerCertificateCommand").f(void 0, void 0).ser(se_UpdateServerCertificateCommand).de(de_UpdateServerCertificateCommand).build() {
      static {
        __name(this, "UpdateServerCertificateCommand");
      }
      static {
        __name2(this, "UpdateServerCertificateCommand");
      }
    };
    var UpdateServiceSpecificCredentialCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "UpdateServiceSpecificCredential", {}).n("IAMClient", "UpdateServiceSpecificCredentialCommand").f(void 0, void 0).ser(se_UpdateServiceSpecificCredentialCommand).de(de_UpdateServiceSpecificCredentialCommand).build() {
      static {
        __name(this, "UpdateServiceSpecificCredentialCommand");
      }
      static {
        __name2(this, "UpdateServiceSpecificCredentialCommand");
      }
    };
    var UpdateSigningCertificateCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "UpdateSigningCertificate", {}).n("IAMClient", "UpdateSigningCertificateCommand").f(void 0, void 0).ser(se_UpdateSigningCertificateCommand).de(de_UpdateSigningCertificateCommand).build() {
      static {
        __name(this, "UpdateSigningCertificateCommand");
      }
      static {
        __name2(this, "UpdateSigningCertificateCommand");
      }
    };
    var UpdateSSHPublicKeyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "UpdateSSHPublicKey", {}).n("IAMClient", "UpdateSSHPublicKeyCommand").f(void 0, void 0).ser(se_UpdateSSHPublicKeyCommand).de(de_UpdateSSHPublicKeyCommand).build() {
      static {
        __name(this, "UpdateSSHPublicKeyCommand");
      }
      static {
        __name2(this, "UpdateSSHPublicKeyCommand");
      }
    };
    var UpdateUserCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "UpdateUser", {}).n("IAMClient", "UpdateUserCommand").f(void 0, void 0).ser(se_UpdateUserCommand).de(de_UpdateUserCommand).build() {
      static {
        __name(this, "UpdateUserCommand");
      }
      static {
        __name2(this, "UpdateUserCommand");
      }
    };
    var UploadServerCertificateCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "UploadServerCertificate", {}).n("IAMClient", "UploadServerCertificateCommand").f(UploadServerCertificateRequestFilterSensitiveLog, void 0).ser(se_UploadServerCertificateCommand).de(de_UploadServerCertificateCommand).build() {
      static {
        __name(this, "UploadServerCertificateCommand");
      }
      static {
        __name2(this, "UploadServerCertificateCommand");
      }
    };
    var UploadSigningCertificateCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "UploadSigningCertificate", {}).n("IAMClient", "UploadSigningCertificateCommand").f(void 0, void 0).ser(se_UploadSigningCertificateCommand).de(de_UploadSigningCertificateCommand).build() {
      static {
        __name(this, "UploadSigningCertificateCommand");
      }
      static {
        __name2(this, "UploadSigningCertificateCommand");
      }
    };
    var UploadSSHPublicKeyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSIdentityManagementV20100508", "UploadSSHPublicKey", {}).n("IAMClient", "UploadSSHPublicKeyCommand").f(void 0, void 0).ser(se_UploadSSHPublicKeyCommand).de(de_UploadSSHPublicKeyCommand).build() {
      static {
        __name(this, "UploadSSHPublicKeyCommand");
      }
      static {
        __name2(this, "UploadSSHPublicKeyCommand");
      }
    };
    var commands3 = {
      AddClientIDToOpenIDConnectProviderCommand,
      AddRoleToInstanceProfileCommand,
      AddUserToGroupCommand,
      AttachGroupPolicyCommand,
      AttachRolePolicyCommand,
      AttachUserPolicyCommand,
      ChangePasswordCommand,
      CreateAccessKeyCommand,
      CreateAccountAliasCommand,
      CreateGroupCommand,
      CreateInstanceProfileCommand,
      CreateLoginProfileCommand,
      CreateOpenIDConnectProviderCommand,
      CreatePolicyCommand: CreatePolicyCommand2,
      CreatePolicyVersionCommand,
      CreateRoleCommand,
      CreateSAMLProviderCommand,
      CreateServiceLinkedRoleCommand,
      CreateServiceSpecificCredentialCommand,
      CreateUserCommand,
      CreateVirtualMFADeviceCommand,
      DeactivateMFADeviceCommand,
      DeleteAccessKeyCommand,
      DeleteAccountAliasCommand,
      DeleteAccountPasswordPolicyCommand,
      DeleteGroupCommand,
      DeleteGroupPolicyCommand,
      DeleteInstanceProfileCommand,
      DeleteLoginProfileCommand,
      DeleteOpenIDConnectProviderCommand,
      DeletePolicyCommand,
      DeletePolicyVersionCommand,
      DeleteRoleCommand,
      DeleteRolePermissionsBoundaryCommand,
      DeleteRolePolicyCommand,
      DeleteSAMLProviderCommand,
      DeleteServerCertificateCommand,
      DeleteServiceLinkedRoleCommand,
      DeleteServiceSpecificCredentialCommand,
      DeleteSigningCertificateCommand,
      DeleteSSHPublicKeyCommand,
      DeleteUserCommand,
      DeleteUserPermissionsBoundaryCommand,
      DeleteUserPolicyCommand,
      DeleteVirtualMFADeviceCommand,
      DetachGroupPolicyCommand,
      DetachRolePolicyCommand,
      DetachUserPolicyCommand,
      DisableOrganizationsRootCredentialsManagementCommand,
      DisableOrganizationsRootSessionsCommand,
      EnableMFADeviceCommand,
      EnableOrganizationsRootCredentialsManagementCommand,
      EnableOrganizationsRootSessionsCommand,
      GenerateCredentialReportCommand,
      GenerateOrganizationsAccessReportCommand,
      GenerateServiceLastAccessedDetailsCommand,
      GetAccessKeyLastUsedCommand,
      GetAccountAuthorizationDetailsCommand,
      GetAccountPasswordPolicyCommand,
      GetAccountSummaryCommand,
      GetContextKeysForCustomPolicyCommand,
      GetContextKeysForPrincipalPolicyCommand,
      GetCredentialReportCommand,
      GetGroupCommand,
      GetGroupPolicyCommand,
      GetInstanceProfileCommand,
      GetLoginProfileCommand,
      GetMFADeviceCommand,
      GetOpenIDConnectProviderCommand,
      GetOrganizationsAccessReportCommand,
      GetPolicyCommand: GetPolicyCommand2,
      GetPolicyVersionCommand,
      GetRoleCommand: GetRoleCommand2,
      GetRolePolicyCommand,
      GetSAMLProviderCommand,
      GetServerCertificateCommand,
      GetServiceLastAccessedDetailsCommand,
      GetServiceLastAccessedDetailsWithEntitiesCommand,
      GetServiceLinkedRoleDeletionStatusCommand,
      GetSSHPublicKeyCommand,
      GetUserCommand,
      GetUserPolicyCommand,
      ListAccessKeysCommand,
      ListAccountAliasesCommand,
      ListAttachedGroupPoliciesCommand,
      ListAttachedRolePoliciesCommand,
      ListAttachedUserPoliciesCommand,
      ListEntitiesForPolicyCommand,
      ListGroupPoliciesCommand,
      ListGroupsCommand,
      ListGroupsForUserCommand,
      ListInstanceProfilesCommand,
      ListInstanceProfilesForRoleCommand,
      ListInstanceProfileTagsCommand,
      ListMFADevicesCommand,
      ListMFADeviceTagsCommand,
      ListOpenIDConnectProvidersCommand,
      ListOpenIDConnectProviderTagsCommand,
      ListOrganizationsFeaturesCommand,
      ListPoliciesCommand,
      ListPoliciesGrantingServiceAccessCommand,
      ListPolicyTagsCommand,
      ListPolicyVersionsCommand,
      ListRolePoliciesCommand,
      ListRolesCommand,
      ListRoleTagsCommand,
      ListSAMLProvidersCommand,
      ListSAMLProviderTagsCommand,
      ListServerCertificatesCommand,
      ListServerCertificateTagsCommand,
      ListServiceSpecificCredentialsCommand,
      ListSigningCertificatesCommand,
      ListSSHPublicKeysCommand,
      ListUserPoliciesCommand,
      ListUsersCommand,
      ListUserTagsCommand,
      ListVirtualMFADevicesCommand,
      PutGroupPolicyCommand,
      PutRolePermissionsBoundaryCommand,
      PutRolePolicyCommand,
      PutUserPermissionsBoundaryCommand,
      PutUserPolicyCommand,
      RemoveClientIDFromOpenIDConnectProviderCommand,
      RemoveRoleFromInstanceProfileCommand,
      RemoveUserFromGroupCommand,
      ResetServiceSpecificCredentialCommand,
      ResyncMFADeviceCommand,
      SetDefaultPolicyVersionCommand,
      SetSecurityTokenServicePreferencesCommand,
      SimulateCustomPolicyCommand,
      SimulatePrincipalPolicyCommand,
      TagInstanceProfileCommand,
      TagMFADeviceCommand,
      TagOpenIDConnectProviderCommand,
      TagPolicyCommand,
      TagRoleCommand,
      TagSAMLProviderCommand,
      TagServerCertificateCommand,
      TagUserCommand,
      UntagInstanceProfileCommand,
      UntagMFADeviceCommand,
      UntagOpenIDConnectProviderCommand,
      UntagPolicyCommand,
      UntagRoleCommand,
      UntagSAMLProviderCommand,
      UntagServerCertificateCommand,
      UntagUserCommand,
      UpdateAccessKeyCommand,
      UpdateAccountPasswordPolicyCommand,
      UpdateAssumeRolePolicyCommand,
      UpdateGroupCommand,
      UpdateLoginProfileCommand,
      UpdateOpenIDConnectProviderThumbprintCommand,
      UpdateRoleCommand,
      UpdateRoleDescriptionCommand,
      UpdateSAMLProviderCommand,
      UpdateServerCertificateCommand,
      UpdateServiceSpecificCredentialCommand,
      UpdateSigningCertificateCommand,
      UpdateSSHPublicKeyCommand,
      UpdateUserCommand,
      UploadServerCertificateCommand,
      UploadSigningCertificateCommand,
      UploadSSHPublicKeyCommand
    };
    var IAM = class extends IAMClient2 {
      static {
        __name(this, "IAM");
      }
      static {
        __name2(this, "IAM");
      }
    };
    (0, import_smithy_client28.createAggregatedClient)(commands3, IAM);
    var paginateGetAccountAuthorizationDetails = (0, import_core17.createPaginator)(IAMClient2, GetAccountAuthorizationDetailsCommand, "Marker", "Marker", "MaxItems");
    var paginateGetGroup = (0, import_core17.createPaginator)(IAMClient2, GetGroupCommand, "Marker", "Marker", "MaxItems");
    var paginateListAccessKeys = (0, import_core17.createPaginator)(IAMClient2, ListAccessKeysCommand, "Marker", "Marker", "MaxItems");
    var paginateListAccountAliases = (0, import_core17.createPaginator)(IAMClient2, ListAccountAliasesCommand, "Marker", "Marker", "MaxItems");
    var paginateListAttachedGroupPolicies = (0, import_core17.createPaginator)(IAMClient2, ListAttachedGroupPoliciesCommand, "Marker", "Marker", "MaxItems");
    var paginateListAttachedRolePolicies = (0, import_core17.createPaginator)(IAMClient2, ListAttachedRolePoliciesCommand, "Marker", "Marker", "MaxItems");
    var paginateListAttachedUserPolicies = (0, import_core17.createPaginator)(IAMClient2, ListAttachedUserPoliciesCommand, "Marker", "Marker", "MaxItems");
    var paginateListEntitiesForPolicy = (0, import_core17.createPaginator)(IAMClient2, ListEntitiesForPolicyCommand, "Marker", "Marker", "MaxItems");
    var paginateListGroupPolicies = (0, import_core17.createPaginator)(IAMClient2, ListGroupPoliciesCommand, "Marker", "Marker", "MaxItems");
    var paginateListGroupsForUser = (0, import_core17.createPaginator)(IAMClient2, ListGroupsForUserCommand, "Marker", "Marker", "MaxItems");
    var paginateListGroups = (0, import_core17.createPaginator)(IAMClient2, ListGroupsCommand, "Marker", "Marker", "MaxItems");
    var paginateListInstanceProfileTags = (0, import_core17.createPaginator)(IAMClient2, ListInstanceProfileTagsCommand, "Marker", "Marker", "MaxItems");
    var paginateListInstanceProfilesForRole = (0, import_core17.createPaginator)(IAMClient2, ListInstanceProfilesForRoleCommand, "Marker", "Marker", "MaxItems");
    var paginateListInstanceProfiles = (0, import_core17.createPaginator)(IAMClient2, ListInstanceProfilesCommand, "Marker", "Marker", "MaxItems");
    var paginateListMFADeviceTags = (0, import_core17.createPaginator)(IAMClient2, ListMFADeviceTagsCommand, "Marker", "Marker", "MaxItems");
    var paginateListMFADevices = (0, import_core17.createPaginator)(IAMClient2, ListMFADevicesCommand, "Marker", "Marker", "MaxItems");
    var paginateListOpenIDConnectProviderTags = (0, import_core17.createPaginator)(IAMClient2, ListOpenIDConnectProviderTagsCommand, "Marker", "Marker", "MaxItems");
    var paginateListPolicies = (0, import_core17.createPaginator)(IAMClient2, ListPoliciesCommand, "Marker", "Marker", "MaxItems");
    var paginateListPolicyTags = (0, import_core17.createPaginator)(IAMClient2, ListPolicyTagsCommand, "Marker", "Marker", "MaxItems");
    var paginateListPolicyVersions = (0, import_core17.createPaginator)(IAMClient2, ListPolicyVersionsCommand, "Marker", "Marker", "MaxItems");
    var paginateListRolePolicies = (0, import_core17.createPaginator)(IAMClient2, ListRolePoliciesCommand, "Marker", "Marker", "MaxItems");
    var paginateListRoleTags = (0, import_core17.createPaginator)(IAMClient2, ListRoleTagsCommand, "Marker", "Marker", "MaxItems");
    var paginateListRoles = (0, import_core17.createPaginator)(IAMClient2, ListRolesCommand, "Marker", "Marker", "MaxItems");
    var paginateListSAMLProviderTags = (0, import_core17.createPaginator)(IAMClient2, ListSAMLProviderTagsCommand, "Marker", "Marker", "MaxItems");
    var paginateListSSHPublicKeys = (0, import_core17.createPaginator)(IAMClient2, ListSSHPublicKeysCommand, "Marker", "Marker", "MaxItems");
    var paginateListServerCertificateTags = (0, import_core17.createPaginator)(IAMClient2, ListServerCertificateTagsCommand, "Marker", "Marker", "MaxItems");
    var paginateListServerCertificates = (0, import_core17.createPaginator)(IAMClient2, ListServerCertificatesCommand, "Marker", "Marker", "MaxItems");
    var paginateListSigningCertificates = (0, import_core17.createPaginator)(IAMClient2, ListSigningCertificatesCommand, "Marker", "Marker", "MaxItems");
    var paginateListUserPolicies = (0, import_core17.createPaginator)(IAMClient2, ListUserPoliciesCommand, "Marker", "Marker", "MaxItems");
    var paginateListUserTags = (0, import_core17.createPaginator)(IAMClient2, ListUserTagsCommand, "Marker", "Marker", "MaxItems");
    var paginateListUsers = (0, import_core17.createPaginator)(IAMClient2, ListUsersCommand, "Marker", "Marker", "MaxItems");
    var paginateListVirtualMFADevices = (0, import_core17.createPaginator)(IAMClient2, ListVirtualMFADevicesCommand, "Marker", "Marker", "MaxItems");
    var paginateSimulateCustomPolicy = (0, import_core17.createPaginator)(IAMClient2, SimulateCustomPolicyCommand, "Marker", "Marker", "MaxItems");
    var paginateSimulatePrincipalPolicy = (0, import_core17.createPaginator)(IAMClient2, SimulatePrincipalPolicyCommand, "Marker", "Marker", "MaxItems");
    var import_util_waiter = require_dist_cjs53();
    var checkState = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new GetInstanceProfileCommand(input));
        reason = result2;
        return { state: import_util_waiter.WaiterState.SUCCESS, reason };
      } catch (exception) {
        reason = exception;
        if (exception.name && exception.name == "NoSuchEntityException") {
          return { state: import_util_waiter.WaiterState.RETRY, reason };
        }
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForInstanceProfileExists = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 1, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
    }, "waitForInstanceProfileExists");
    var waitUntilInstanceProfileExists = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 1, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilInstanceProfileExists");
    var checkState2 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new GetPolicyCommand2(input));
        reason = result2;
        return { state: import_util_waiter.WaiterState.SUCCESS, reason };
      } catch (exception) {
        reason = exception;
        if (exception.name && exception.name == "NoSuchEntityException") {
          return { state: import_util_waiter.WaiterState.RETRY, reason };
        }
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForPolicyExists = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 1, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2);
    }, "waitForPolicyExists");
    var waitUntilPolicyExists = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 1, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilPolicyExists");
    var checkState3 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new GetRoleCommand2(input));
        reason = result2;
        return { state: import_util_waiter.WaiterState.SUCCESS, reason };
      } catch (exception) {
        reason = exception;
        if (exception.name && exception.name == "NoSuchEntityException") {
          return { state: import_util_waiter.WaiterState.RETRY, reason };
        }
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForRoleExists = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 1, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState3);
    }, "waitForRoleExists");
    var waitUntilRoleExists = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 1, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState3);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilRoleExists");
    var checkState4 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new GetUserCommand(input));
        reason = result2;
        return { state: import_util_waiter.WaiterState.SUCCESS, reason };
      } catch (exception) {
        reason = exception;
        if (exception.name && exception.name == "NoSuchEntityException") {
          return { state: import_util_waiter.WaiterState.RETRY, reason };
        }
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForUserExists = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 1, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState4);
    }, "waitForUserExists");
    var waitUntilUserExists = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 1, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState4);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilUserExists");
  }
});

// ../../node_modules/@aws-sdk/client-kms/dist-cjs/auth/httpAuthSchemeProvider.js
var require_httpAuthSchemeProvider16 = __commonJS({
  "../../node_modules/@aws-sdk/client-kms/dist-cjs/auth/httpAuthSchemeProvider.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.resolveHttpAuthSchemeConfig = exports2.defaultKMSHttpAuthSchemeProvider = exports2.defaultKMSHttpAuthSchemeParametersProvider = void 0;
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var util_middleware_1 = require_dist_cjs6();
    var defaultKMSHttpAuthSchemeParametersProvider = /* @__PURE__ */ __name(async (config, context, input) => {
      return {
        operation: (0, util_middleware_1.getSmithyContext)(context).operation,
        region: await (0, util_middleware_1.normalizeProvider)(config.region)() || (() => {
          throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
        })()
      };
    }, "defaultKMSHttpAuthSchemeParametersProvider");
    exports2.defaultKMSHttpAuthSchemeParametersProvider = defaultKMSHttpAuthSchemeParametersProvider;
    function createAwsAuthSigv4HttpAuthOption3(authParameters) {
      return {
        schemeId: "aws.auth#sigv4",
        signingProperties: {
          name: "kms",
          region: authParameters.region
        },
        propertiesExtractor: /* @__PURE__ */ __name((config, context) => ({
          signingProperties: {
            config,
            context
          }
        }), "propertiesExtractor")
      };
    }
    __name(createAwsAuthSigv4HttpAuthOption3, "createAwsAuthSigv4HttpAuthOption");
    var defaultKMSHttpAuthSchemeProvider = /* @__PURE__ */ __name((authParameters) => {
      const options = [];
      switch (authParameters.operation) {
        default: {
          options.push(createAwsAuthSigv4HttpAuthOption3(authParameters));
        }
      }
      return options;
    }, "defaultKMSHttpAuthSchemeProvider");
    exports2.defaultKMSHttpAuthSchemeProvider = defaultKMSHttpAuthSchemeProvider;
    var resolveHttpAuthSchemeConfig3 = /* @__PURE__ */ __name((config) => {
      const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
      return Object.assign(config_0, {
        authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? [])
      });
    }, "resolveHttpAuthSchemeConfig");
    exports2.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig3;
  }
});

// ../../node_modules/@aws-sdk/client-kms/package.json
var require_package16 = __commonJS({
  "../../node_modules/@aws-sdk/client-kms/package.json"(exports2, module2) {
    module2.exports = {
      name: "@aws-sdk/client-kms",
      description: "AWS SDK for JavaScript Kms Client for Node.js, Browser and React Native",
      version: "3.879.0",
      scripts: {
        build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
        "build:cjs": "node ../../scripts/compilation/inline client-kms",
        "build:es": "tsc -p tsconfig.es.json",
        "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
        "build:types": "tsc -p tsconfig.types.json",
        "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
        clean: "rimraf ./dist-* && rimraf *.tsbuildinfo",
        "extract:docs": "api-extractor run --local",
        "generate:client": "node ../../scripts/generate-clients/single-service --solo kms"
      },
      main: "./dist-cjs/index.js",
      types: "./dist-types/index.d.ts",
      module: "./dist-es/index.js",
      sideEffects: false,
      dependencies: {
        "@aws-crypto/sha256-browser": "5.2.0",
        "@aws-crypto/sha256-js": "5.2.0",
        "@aws-sdk/core": "3.879.0",
        "@aws-sdk/credential-provider-node": "3.879.0",
        "@aws-sdk/middleware-host-header": "3.873.0",
        "@aws-sdk/middleware-logger": "3.876.0",
        "@aws-sdk/middleware-recursion-detection": "3.873.0",
        "@aws-sdk/middleware-user-agent": "3.879.0",
        "@aws-sdk/region-config-resolver": "3.873.0",
        "@aws-sdk/types": "3.862.0",
        "@aws-sdk/util-endpoints": "3.879.0",
        "@aws-sdk/util-user-agent-browser": "3.873.0",
        "@aws-sdk/util-user-agent-node": "3.879.0",
        "@smithy/config-resolver": "^4.1.5",
        "@smithy/core": "^3.9.0",
        "@smithy/fetch-http-handler": "^5.1.1",
        "@smithy/hash-node": "^4.0.5",
        "@smithy/invalid-dependency": "^4.0.5",
        "@smithy/middleware-content-length": "^4.0.5",
        "@smithy/middleware-endpoint": "^4.1.19",
        "@smithy/middleware-retry": "^4.1.20",
        "@smithy/middleware-serde": "^4.0.9",
        "@smithy/middleware-stack": "^4.0.5",
        "@smithy/node-config-provider": "^4.1.4",
        "@smithy/node-http-handler": "^4.1.1",
        "@smithy/protocol-http": "^5.1.3",
        "@smithy/smithy-client": "^4.5.0",
        "@smithy/types": "^4.3.2",
        "@smithy/url-parser": "^4.0.5",
        "@smithy/util-base64": "^4.0.0",
        "@smithy/util-body-length-browser": "^4.0.0",
        "@smithy/util-body-length-node": "^4.0.0",
        "@smithy/util-defaults-mode-browser": "^4.0.27",
        "@smithy/util-defaults-mode-node": "^4.0.27",
        "@smithy/util-endpoints": "^3.0.7",
        "@smithy/util-middleware": "^4.0.5",
        "@smithy/util-retry": "^4.0.7",
        "@smithy/util-utf8": "^4.0.0",
        tslib: "^2.6.2"
      },
      devDependencies: {
        "@tsconfig/node18": "18.2.4",
        "@types/node": "^18.19.69",
        concurrently: "7.0.0",
        "downlevel-dts": "0.10.1",
        rimraf: "3.0.2",
        typescript: "~5.8.3"
      },
      engines: {
        node: ">=18.0.0"
      },
      typesVersions: {
        "<4.0": {
          "dist-types/*": [
            "dist-types/ts3.4/*"
          ]
        }
      },
      files: [
        "dist-*/**"
      ],
      author: {
        name: "AWS SDK for JavaScript Team",
        url: "https://aws.amazon.com/javascript/"
      },
      license: "Apache-2.0",
      browser: {
        "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
      },
      "react-native": {
        "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
      },
      homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-kms",
      repository: {
        type: "git",
        url: "https://github.com/aws/aws-sdk-js-v3.git",
        directory: "clients/client-kms"
      }
    };
  }
});

// ../../node_modules/@aws-sdk/client-kms/dist-cjs/endpoint/ruleset.js
var require_ruleset16 = __commonJS({
  "../../node_modules/@aws-sdk/client-kms/dist-cjs/endpoint/ruleset.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.ruleSet = void 0;
    var s3 = "required";
    var t3 = "fn";
    var u3 = "argv";
    var v6 = "ref";
    var a3 = true;
    var b3 = "isSet";
    var c3 = "booleanEquals";
    var d3 = "error";
    var e3 = "endpoint";
    var f3 = "tree";
    var g3 = "PartitionResult";
    var h3 = { [s3]: false, "type": "String" };
    var i3 = { [s3]: true, "default": false, "type": "Boolean" };
    var j3 = { [v6]: "Endpoint" };
    var k3 = { [t3]: c3, [u3]: [{ [v6]: "UseFIPS" }, true] };
    var l3 = { [t3]: c3, [u3]: [{ [v6]: "UseDualStack" }, true] };
    var m3 = {};
    var n3 = { [t3]: "getAttr", [u3]: [{ [v6]: g3 }, "supportsFIPS"] };
    var o3 = { [t3]: c3, [u3]: [true, { [t3]: "getAttr", [u3]: [{ [v6]: g3 }, "supportsDualStack"] }] };
    var p3 = [k3];
    var q3 = [l3];
    var r3 = [{ [v6]: "Region" }];
    var _data3 = { version: "1.0", parameters: { Region: h3, UseDualStack: i3, UseFIPS: i3, Endpoint: h3 }, rules: [{ conditions: [{ [t3]: b3, [u3]: [j3] }], rules: [{ conditions: p3, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d3 }, { conditions: q3, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d3 }, { endpoint: { url: j3, properties: m3, headers: m3 }, type: e3 }], type: f3 }, { conditions: [{ [t3]: b3, [u3]: r3 }], rules: [{ conditions: [{ [t3]: "aws.partition", [u3]: r3, assign: g3 }], rules: [{ conditions: [k3, l3], rules: [{ conditions: [{ [t3]: c3, [u3]: [a3, n3] }, o3], rules: [{ endpoint: { url: "https://kms-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m3, headers: m3 }, type: e3 }], type: f3 }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d3 }], type: f3 }, { conditions: p3, rules: [{ conditions: [{ [t3]: c3, [u3]: [n3, a3] }], rules: [{ endpoint: { url: "https://kms-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m3, headers: m3 }, type: e3 }], type: f3 }, { error: "FIPS is enabled but this partition does not support FIPS", type: d3 }], type: f3 }, { conditions: q3, rules: [{ conditions: [o3], rules: [{ endpoint: { url: "https://kms.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m3, headers: m3 }, type: e3 }], type: f3 }, { error: "DualStack is enabled but this partition does not support DualStack", type: d3 }], type: f3 }, { endpoint: { url: "https://kms.{Region}.{PartitionResult#dnsSuffix}", properties: m3, headers: m3 }, type: e3 }], type: f3 }], type: f3 }, { error: "Invalid Configuration: Missing Region", type: d3 }] };
    exports2.ruleSet = _data3;
  }
});

// ../../node_modules/@aws-sdk/client-kms/dist-cjs/endpoint/endpointResolver.js
var require_endpointResolver16 = __commonJS({
  "../../node_modules/@aws-sdk/client-kms/dist-cjs/endpoint/endpointResolver.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.defaultEndpointResolver = void 0;
    var util_endpoints_1 = require_dist_cjs21();
    var util_endpoints_2 = require_dist_cjs18();
    var ruleset_1 = require_ruleset16();
    var cache3 = new util_endpoints_2.EndpointCache({
      size: 50,
      params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"]
    });
    var defaultEndpointResolver3 = /* @__PURE__ */ __name((endpointParams, context = {}) => {
      return cache3.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
        endpointParams,
        logger: context.logger
      }));
    }, "defaultEndpointResolver");
    exports2.defaultEndpointResolver = defaultEndpointResolver3;
    util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
  }
});

// ../../node_modules/@aws-sdk/client-kms/dist-cjs/runtimeConfig.shared.js
var require_runtimeConfig_shared17 = __commonJS({
  "../../node_modules/@aws-sdk/client-kms/dist-cjs/runtimeConfig.shared.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.getRuntimeConfig = void 0;
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var smithy_client_1 = require_dist_cjs26();
    var url_parser_1 = require_dist_cjs20();
    var util_base64_1 = require_dist_cjs11();
    var util_utf8_1 = require_dist_cjs10();
    var httpAuthSchemeProvider_1 = require_httpAuthSchemeProvider16();
    var endpointResolver_1 = require_endpointResolver16();
    var getRuntimeConfig5 = /* @__PURE__ */ __name((config) => {
      return {
        apiVersion: "2014-11-01",
        base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
        base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
        disableHostPrefix: config?.disableHostPrefix ?? false,
        endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
        extensions: config?.extensions ?? [],
        httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultKMSHttpAuthSchemeProvider,
        httpAuthSchemes: config?.httpAuthSchemes ?? [
          {
            schemeId: "aws.auth#sigv4",
            identityProvider: /* @__PURE__ */ __name((ipc) => ipc.getIdentityProvider("aws.auth#sigv4"), "identityProvider"),
            signer: new core_1.AwsSdkSigV4Signer()
          }
        ],
        logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
        serviceId: config?.serviceId ?? "KMS",
        urlParser: config?.urlParser ?? url_parser_1.parseUrl,
        utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
        utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8
      };
    }, "getRuntimeConfig");
    exports2.getRuntimeConfig = getRuntimeConfig5;
  }
});

// ../../node_modules/@aws-sdk/client-kms/dist-cjs/runtimeConfig.js
var require_runtimeConfig17 = __commonJS({
  "../../node_modules/@aws-sdk/client-kms/dist-cjs/runtimeConfig.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.getRuntimeConfig = void 0;
    var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
    var package_json_1 = tslib_1.__importDefault(require_package16());
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var credential_provider_node_1 = require_dist_cjs52();
    var util_user_agent_node_1 = require_dist_cjs41();
    var config_resolver_1 = require_dist_cjs30();
    var hash_node_1 = require_dist_cjs42();
    var middleware_retry_1 = require_dist_cjs37();
    var node_config_provider_1 = require_dist_cjs33();
    var node_http_handler_1 = require_dist_cjs14();
    var util_body_length_node_1 = require_dist_cjs43();
    var util_retry_1 = require_dist_cjs36();
    var runtimeConfig_shared_1 = require_runtimeConfig_shared17();
    var smithy_client_1 = require_dist_cjs26();
    var util_defaults_mode_node_1 = require_dist_cjs44();
    var smithy_client_2 = require_dist_cjs26();
    var getRuntimeConfig5 = /* @__PURE__ */ __name((config) => {
      (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
      const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
      const defaultConfigProvider = /* @__PURE__ */ __name(() => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode), "defaultConfigProvider");
      const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
      (0, core_1.emitWarningIfUnsupportedVersion)(process.version);
      const loaderConfig = {
        profile: config?.profile,
        logger: clientSharedValues.logger
      };
      return {
        ...clientSharedValues,
        ...config,
        runtime: "node",
        defaultsMode,
        authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
        bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
        credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
        defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
        maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
        region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
        requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
        retryMode: config?.retryMode ?? (0, node_config_provider_1.loadConfig)({
          ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
          default: /* @__PURE__ */ __name(async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE, "default")
        }, config),
        sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
        streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
        useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
        useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
        userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig)
      };
    }, "getRuntimeConfig");
    exports2.getRuntimeConfig = getRuntimeConfig5;
  }
});

// ../../node_modules/@aws-sdk/client-kms/dist-cjs/index.js
var require_dist_cjs91 = __commonJS({
  "../../node_modules/@aws-sdk/client-kms/dist-cjs/index.js"(exports2, module2) {
    "use strict";
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var index_exports = {};
    __export2(index_exports, {
      AlgorithmSpec: /* @__PURE__ */ __name(() => AlgorithmSpec, "AlgorithmSpec"),
      AlreadyExistsException: /* @__PURE__ */ __name(() => AlreadyExistsException, "AlreadyExistsException"),
      CancelKeyDeletionCommand: /* @__PURE__ */ __name(() => CancelKeyDeletionCommand, "CancelKeyDeletionCommand"),
      CloudHsmClusterInUseException: /* @__PURE__ */ __name(() => CloudHsmClusterInUseException, "CloudHsmClusterInUseException"),
      CloudHsmClusterInvalidConfigurationException: /* @__PURE__ */ __name(() => CloudHsmClusterInvalidConfigurationException, "CloudHsmClusterInvalidConfigurationException"),
      CloudHsmClusterNotActiveException: /* @__PURE__ */ __name(() => CloudHsmClusterNotActiveException, "CloudHsmClusterNotActiveException"),
      CloudHsmClusterNotFoundException: /* @__PURE__ */ __name(() => CloudHsmClusterNotFoundException, "CloudHsmClusterNotFoundException"),
      CloudHsmClusterNotRelatedException: /* @__PURE__ */ __name(() => CloudHsmClusterNotRelatedException, "CloudHsmClusterNotRelatedException"),
      ConflictException: /* @__PURE__ */ __name(() => ConflictException, "ConflictException"),
      ConnectCustomKeyStoreCommand: /* @__PURE__ */ __name(() => ConnectCustomKeyStoreCommand, "ConnectCustomKeyStoreCommand"),
      ConnectionErrorCodeType: /* @__PURE__ */ __name(() => ConnectionErrorCodeType, "ConnectionErrorCodeType"),
      ConnectionStateType: /* @__PURE__ */ __name(() => ConnectionStateType, "ConnectionStateType"),
      CreateAliasCommand: /* @__PURE__ */ __name(() => CreateAliasCommand, "CreateAliasCommand"),
      CreateCustomKeyStoreCommand: /* @__PURE__ */ __name(() => CreateCustomKeyStoreCommand, "CreateCustomKeyStoreCommand"),
      CreateCustomKeyStoreRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => CreateCustomKeyStoreRequestFilterSensitiveLog, "CreateCustomKeyStoreRequestFilterSensitiveLog"),
      CreateGrantCommand: /* @__PURE__ */ __name(() => CreateGrantCommand, "CreateGrantCommand"),
      CreateKeyCommand: /* @__PURE__ */ __name(() => CreateKeyCommand, "CreateKeyCommand"),
      CustomKeyStoreHasCMKsException: /* @__PURE__ */ __name(() => CustomKeyStoreHasCMKsException, "CustomKeyStoreHasCMKsException"),
      CustomKeyStoreInvalidStateException: /* @__PURE__ */ __name(() => CustomKeyStoreInvalidStateException, "CustomKeyStoreInvalidStateException"),
      CustomKeyStoreNameInUseException: /* @__PURE__ */ __name(() => CustomKeyStoreNameInUseException, "CustomKeyStoreNameInUseException"),
      CustomKeyStoreNotFoundException: /* @__PURE__ */ __name(() => CustomKeyStoreNotFoundException, "CustomKeyStoreNotFoundException"),
      CustomKeyStoreType: /* @__PURE__ */ __name(() => CustomKeyStoreType, "CustomKeyStoreType"),
      CustomKeyStoresListEntryFilterSensitiveLog: /* @__PURE__ */ __name(() => CustomKeyStoresListEntryFilterSensitiveLog, "CustomKeyStoresListEntryFilterSensitiveLog"),
      CustomerMasterKeySpec: /* @__PURE__ */ __name(() => CustomerMasterKeySpec, "CustomerMasterKeySpec"),
      DataKeyPairSpec: /* @__PURE__ */ __name(() => DataKeyPairSpec, "DataKeyPairSpec"),
      DataKeySpec: /* @__PURE__ */ __name(() => DataKeySpec, "DataKeySpec"),
      DecryptCommand: /* @__PURE__ */ __name(() => DecryptCommand, "DecryptCommand"),
      DecryptResponseFilterSensitiveLog: /* @__PURE__ */ __name(() => DecryptResponseFilterSensitiveLog, "DecryptResponseFilterSensitiveLog"),
      DeleteAliasCommand: /* @__PURE__ */ __name(() => DeleteAliasCommand, "DeleteAliasCommand"),
      DeleteCustomKeyStoreCommand: /* @__PURE__ */ __name(() => DeleteCustomKeyStoreCommand, "DeleteCustomKeyStoreCommand"),
      DeleteImportedKeyMaterialCommand: /* @__PURE__ */ __name(() => DeleteImportedKeyMaterialCommand, "DeleteImportedKeyMaterialCommand"),
      DependencyTimeoutException: /* @__PURE__ */ __name(() => DependencyTimeoutException, "DependencyTimeoutException"),
      DeriveSharedSecretCommand: /* @__PURE__ */ __name(() => DeriveSharedSecretCommand, "DeriveSharedSecretCommand"),
      DeriveSharedSecretResponseFilterSensitiveLog: /* @__PURE__ */ __name(() => DeriveSharedSecretResponseFilterSensitiveLog, "DeriveSharedSecretResponseFilterSensitiveLog"),
      DescribeCustomKeyStoresCommand: /* @__PURE__ */ __name(() => DescribeCustomKeyStoresCommand, "DescribeCustomKeyStoresCommand"),
      DescribeCustomKeyStoresResponseFilterSensitiveLog: /* @__PURE__ */ __name(() => DescribeCustomKeyStoresResponseFilterSensitiveLog, "DescribeCustomKeyStoresResponseFilterSensitiveLog"),
      DescribeKeyCommand: /* @__PURE__ */ __name(() => DescribeKeyCommand2, "DescribeKeyCommand"),
      DisableKeyCommand: /* @__PURE__ */ __name(() => DisableKeyCommand, "DisableKeyCommand"),
      DisableKeyRotationCommand: /* @__PURE__ */ __name(() => DisableKeyRotationCommand, "DisableKeyRotationCommand"),
      DisabledException: /* @__PURE__ */ __name(() => DisabledException, "DisabledException"),
      DisconnectCustomKeyStoreCommand: /* @__PURE__ */ __name(() => DisconnectCustomKeyStoreCommand, "DisconnectCustomKeyStoreCommand"),
      DryRunOperationException: /* @__PURE__ */ __name(() => DryRunOperationException, "DryRunOperationException"),
      EnableKeyCommand: /* @__PURE__ */ __name(() => EnableKeyCommand, "EnableKeyCommand"),
      EnableKeyRotationCommand: /* @__PURE__ */ __name(() => EnableKeyRotationCommand, "EnableKeyRotationCommand"),
      EncryptCommand: /* @__PURE__ */ __name(() => EncryptCommand, "EncryptCommand"),
      EncryptRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => EncryptRequestFilterSensitiveLog, "EncryptRequestFilterSensitiveLog"),
      EncryptionAlgorithmSpec: /* @__PURE__ */ __name(() => EncryptionAlgorithmSpec, "EncryptionAlgorithmSpec"),
      ExpirationModelType: /* @__PURE__ */ __name(() => ExpirationModelType, "ExpirationModelType"),
      ExpiredImportTokenException: /* @__PURE__ */ __name(() => ExpiredImportTokenException, "ExpiredImportTokenException"),
      GenerateDataKeyCommand: /* @__PURE__ */ __name(() => GenerateDataKeyCommand, "GenerateDataKeyCommand"),
      GenerateDataKeyPairCommand: /* @__PURE__ */ __name(() => GenerateDataKeyPairCommand, "GenerateDataKeyPairCommand"),
      GenerateDataKeyPairResponseFilterSensitiveLog: /* @__PURE__ */ __name(() => GenerateDataKeyPairResponseFilterSensitiveLog, "GenerateDataKeyPairResponseFilterSensitiveLog"),
      GenerateDataKeyPairWithoutPlaintextCommand: /* @__PURE__ */ __name(() => GenerateDataKeyPairWithoutPlaintextCommand, "GenerateDataKeyPairWithoutPlaintextCommand"),
      GenerateDataKeyResponseFilterSensitiveLog: /* @__PURE__ */ __name(() => GenerateDataKeyResponseFilterSensitiveLog, "GenerateDataKeyResponseFilterSensitiveLog"),
      GenerateDataKeyWithoutPlaintextCommand: /* @__PURE__ */ __name(() => GenerateDataKeyWithoutPlaintextCommand, "GenerateDataKeyWithoutPlaintextCommand"),
      GenerateMacCommand: /* @__PURE__ */ __name(() => GenerateMacCommand, "GenerateMacCommand"),
      GenerateMacRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => GenerateMacRequestFilterSensitiveLog, "GenerateMacRequestFilterSensitiveLog"),
      GenerateRandomCommand: /* @__PURE__ */ __name(() => GenerateRandomCommand, "GenerateRandomCommand"),
      GenerateRandomResponseFilterSensitiveLog: /* @__PURE__ */ __name(() => GenerateRandomResponseFilterSensitiveLog, "GenerateRandomResponseFilterSensitiveLog"),
      GetKeyPolicyCommand: /* @__PURE__ */ __name(() => GetKeyPolicyCommand, "GetKeyPolicyCommand"),
      GetKeyRotationStatusCommand: /* @__PURE__ */ __name(() => GetKeyRotationStatusCommand, "GetKeyRotationStatusCommand"),
      GetParametersForImportCommand: /* @__PURE__ */ __name(() => GetParametersForImportCommand, "GetParametersForImportCommand"),
      GetParametersForImportResponseFilterSensitiveLog: /* @__PURE__ */ __name(() => GetParametersForImportResponseFilterSensitiveLog, "GetParametersForImportResponseFilterSensitiveLog"),
      GetPublicKeyCommand: /* @__PURE__ */ __name(() => GetPublicKeyCommand, "GetPublicKeyCommand"),
      GrantOperation: /* @__PURE__ */ __name(() => GrantOperation, "GrantOperation"),
      ImportKeyMaterialCommand: /* @__PURE__ */ __name(() => ImportKeyMaterialCommand, "ImportKeyMaterialCommand"),
      ImportState: /* @__PURE__ */ __name(() => ImportState, "ImportState"),
      ImportType: /* @__PURE__ */ __name(() => ImportType, "ImportType"),
      IncludeKeyMaterial: /* @__PURE__ */ __name(() => IncludeKeyMaterial, "IncludeKeyMaterial"),
      IncorrectKeyException: /* @__PURE__ */ __name(() => IncorrectKeyException, "IncorrectKeyException"),
      IncorrectKeyMaterialException: /* @__PURE__ */ __name(() => IncorrectKeyMaterialException, "IncorrectKeyMaterialException"),
      IncorrectTrustAnchorException: /* @__PURE__ */ __name(() => IncorrectTrustAnchorException, "IncorrectTrustAnchorException"),
      InvalidAliasNameException: /* @__PURE__ */ __name(() => InvalidAliasNameException, "InvalidAliasNameException"),
      InvalidArnException: /* @__PURE__ */ __name(() => InvalidArnException, "InvalidArnException"),
      InvalidCiphertextException: /* @__PURE__ */ __name(() => InvalidCiphertextException, "InvalidCiphertextException"),
      InvalidGrantIdException: /* @__PURE__ */ __name(() => InvalidGrantIdException, "InvalidGrantIdException"),
      InvalidGrantTokenException: /* @__PURE__ */ __name(() => InvalidGrantTokenException, "InvalidGrantTokenException"),
      InvalidImportTokenException: /* @__PURE__ */ __name(() => InvalidImportTokenException, "InvalidImportTokenException"),
      InvalidKeyUsageException: /* @__PURE__ */ __name(() => InvalidKeyUsageException, "InvalidKeyUsageException"),
      InvalidMarkerException: /* @__PURE__ */ __name(() => InvalidMarkerException, "InvalidMarkerException"),
      KMS: /* @__PURE__ */ __name(() => KMS, "KMS"),
      KMSClient: /* @__PURE__ */ __name(() => KMSClient2, "KMSClient"),
      KMSInternalException: /* @__PURE__ */ __name(() => KMSInternalException, "KMSInternalException"),
      KMSInvalidMacException: /* @__PURE__ */ __name(() => KMSInvalidMacException, "KMSInvalidMacException"),
      KMSInvalidSignatureException: /* @__PURE__ */ __name(() => KMSInvalidSignatureException, "KMSInvalidSignatureException"),
      KMSInvalidStateException: /* @__PURE__ */ __name(() => KMSInvalidStateException, "KMSInvalidStateException"),
      KMSServiceException: /* @__PURE__ */ __name(() => KMSServiceException, "KMSServiceException"),
      KeyAgreementAlgorithmSpec: /* @__PURE__ */ __name(() => KeyAgreementAlgorithmSpec, "KeyAgreementAlgorithmSpec"),
      KeyEncryptionMechanism: /* @__PURE__ */ __name(() => KeyEncryptionMechanism, "KeyEncryptionMechanism"),
      KeyManagerType: /* @__PURE__ */ __name(() => KeyManagerType, "KeyManagerType"),
      KeyMaterialState: /* @__PURE__ */ __name(() => KeyMaterialState, "KeyMaterialState"),
      KeySpec: /* @__PURE__ */ __name(() => KeySpec, "KeySpec"),
      KeyState: /* @__PURE__ */ __name(() => KeyState, "KeyState"),
      KeyUnavailableException: /* @__PURE__ */ __name(() => KeyUnavailableException, "KeyUnavailableException"),
      KeyUsageType: /* @__PURE__ */ __name(() => KeyUsageType, "KeyUsageType"),
      LimitExceededException: /* @__PURE__ */ __name(() => LimitExceededException, "LimitExceededException"),
      ListAliasesCommand: /* @__PURE__ */ __name(() => ListAliasesCommand2, "ListAliasesCommand"),
      ListGrantsCommand: /* @__PURE__ */ __name(() => ListGrantsCommand, "ListGrantsCommand"),
      ListKeyPoliciesCommand: /* @__PURE__ */ __name(() => ListKeyPoliciesCommand, "ListKeyPoliciesCommand"),
      ListKeyRotationsCommand: /* @__PURE__ */ __name(() => ListKeyRotationsCommand, "ListKeyRotationsCommand"),
      ListKeysCommand: /* @__PURE__ */ __name(() => ListKeysCommand, "ListKeysCommand"),
      ListResourceTagsCommand: /* @__PURE__ */ __name(() => ListResourceTagsCommand, "ListResourceTagsCommand"),
      ListRetirableGrantsCommand: /* @__PURE__ */ __name(() => ListRetirableGrantsCommand, "ListRetirableGrantsCommand"),
      MacAlgorithmSpec: /* @__PURE__ */ __name(() => MacAlgorithmSpec, "MacAlgorithmSpec"),
      MalformedPolicyDocumentException: /* @__PURE__ */ __name(() => MalformedPolicyDocumentException2, "MalformedPolicyDocumentException"),
      MessageType: /* @__PURE__ */ __name(() => MessageType, "MessageType"),
      MultiRegionKeyType: /* @__PURE__ */ __name(() => MultiRegionKeyType, "MultiRegionKeyType"),
      NotFoundException: /* @__PURE__ */ __name(() => NotFoundException, "NotFoundException"),
      OriginType: /* @__PURE__ */ __name(() => OriginType, "OriginType"),
      PutKeyPolicyCommand: /* @__PURE__ */ __name(() => PutKeyPolicyCommand, "PutKeyPolicyCommand"),
      ReEncryptCommand: /* @__PURE__ */ __name(() => ReEncryptCommand, "ReEncryptCommand"),
      ReplicateKeyCommand: /* @__PURE__ */ __name(() => ReplicateKeyCommand, "ReplicateKeyCommand"),
      RetireGrantCommand: /* @__PURE__ */ __name(() => RetireGrantCommand, "RetireGrantCommand"),
      RevokeGrantCommand: /* @__PURE__ */ __name(() => RevokeGrantCommand, "RevokeGrantCommand"),
      RotateKeyOnDemandCommand: /* @__PURE__ */ __name(() => RotateKeyOnDemandCommand, "RotateKeyOnDemandCommand"),
      RotationType: /* @__PURE__ */ __name(() => RotationType, "RotationType"),
      ScheduleKeyDeletionCommand: /* @__PURE__ */ __name(() => ScheduleKeyDeletionCommand, "ScheduleKeyDeletionCommand"),
      SignCommand: /* @__PURE__ */ __name(() => SignCommand, "SignCommand"),
      SignRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => SignRequestFilterSensitiveLog, "SignRequestFilterSensitiveLog"),
      SigningAlgorithmSpec: /* @__PURE__ */ __name(() => SigningAlgorithmSpec, "SigningAlgorithmSpec"),
      TagException: /* @__PURE__ */ __name(() => TagException, "TagException"),
      TagResourceCommand: /* @__PURE__ */ __name(() => TagResourceCommand, "TagResourceCommand"),
      UnsupportedOperationException: /* @__PURE__ */ __name(() => UnsupportedOperationException, "UnsupportedOperationException"),
      UntagResourceCommand: /* @__PURE__ */ __name(() => UntagResourceCommand, "UntagResourceCommand"),
      UpdateAliasCommand: /* @__PURE__ */ __name(() => UpdateAliasCommand2, "UpdateAliasCommand"),
      UpdateCustomKeyStoreCommand: /* @__PURE__ */ __name(() => UpdateCustomKeyStoreCommand, "UpdateCustomKeyStoreCommand"),
      UpdateCustomKeyStoreRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => UpdateCustomKeyStoreRequestFilterSensitiveLog, "UpdateCustomKeyStoreRequestFilterSensitiveLog"),
      UpdateKeyDescriptionCommand: /* @__PURE__ */ __name(() => UpdateKeyDescriptionCommand, "UpdateKeyDescriptionCommand"),
      UpdatePrimaryRegionCommand: /* @__PURE__ */ __name(() => UpdatePrimaryRegionCommand, "UpdatePrimaryRegionCommand"),
      VerifyCommand: /* @__PURE__ */ __name(() => VerifyCommand, "VerifyCommand"),
      VerifyMacCommand: /* @__PURE__ */ __name(() => VerifyMacCommand, "VerifyMacCommand"),
      VerifyMacRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => VerifyMacRequestFilterSensitiveLog, "VerifyMacRequestFilterSensitiveLog"),
      VerifyRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => VerifyRequestFilterSensitiveLog, "VerifyRequestFilterSensitiveLog"),
      WrappingKeySpec: /* @__PURE__ */ __name(() => WrappingKeySpec, "WrappingKeySpec"),
      XksKeyAlreadyInUseException: /* @__PURE__ */ __name(() => XksKeyAlreadyInUseException, "XksKeyAlreadyInUseException"),
      XksKeyInvalidConfigurationException: /* @__PURE__ */ __name(() => XksKeyInvalidConfigurationException, "XksKeyInvalidConfigurationException"),
      XksKeyNotFoundException: /* @__PURE__ */ __name(() => XksKeyNotFoundException, "XksKeyNotFoundException"),
      XksProxyAuthenticationCredentialTypeFilterSensitiveLog: /* @__PURE__ */ __name(() => XksProxyAuthenticationCredentialTypeFilterSensitiveLog, "XksProxyAuthenticationCredentialTypeFilterSensitiveLog"),
      XksProxyConfigurationTypeFilterSensitiveLog: /* @__PURE__ */ __name(() => XksProxyConfigurationTypeFilterSensitiveLog, "XksProxyConfigurationTypeFilterSensitiveLog"),
      XksProxyConnectivityType: /* @__PURE__ */ __name(() => XksProxyConnectivityType, "XksProxyConnectivityType"),
      XksProxyIncorrectAuthenticationCredentialException: /* @__PURE__ */ __name(() => XksProxyIncorrectAuthenticationCredentialException, "XksProxyIncorrectAuthenticationCredentialException"),
      XksProxyInvalidConfigurationException: /* @__PURE__ */ __name(() => XksProxyInvalidConfigurationException, "XksProxyInvalidConfigurationException"),
      XksProxyInvalidResponseException: /* @__PURE__ */ __name(() => XksProxyInvalidResponseException, "XksProxyInvalidResponseException"),
      XksProxyUriEndpointInUseException: /* @__PURE__ */ __name(() => XksProxyUriEndpointInUseException, "XksProxyUriEndpointInUseException"),
      XksProxyUriInUseException: /* @__PURE__ */ __name(() => XksProxyUriInUseException, "XksProxyUriInUseException"),
      XksProxyUriUnreachableException: /* @__PURE__ */ __name(() => XksProxyUriUnreachableException, "XksProxyUriUnreachableException"),
      XksProxyVpcEndpointServiceInUseException: /* @__PURE__ */ __name(() => XksProxyVpcEndpointServiceInUseException, "XksProxyVpcEndpointServiceInUseException"),
      XksProxyVpcEndpointServiceInvalidConfigurationException: /* @__PURE__ */ __name(() => XksProxyVpcEndpointServiceInvalidConfigurationException, "XksProxyVpcEndpointServiceInvalidConfigurationException"),
      XksProxyVpcEndpointServiceNotFoundException: /* @__PURE__ */ __name(() => XksProxyVpcEndpointServiceNotFoundException, "XksProxyVpcEndpointServiceNotFoundException"),
      __Client: /* @__PURE__ */ __name(() => import_smithy_client28.Client, "__Client"),
      paginateDescribeCustomKeyStores: /* @__PURE__ */ __name(() => paginateDescribeCustomKeyStores, "paginateDescribeCustomKeyStores"),
      paginateListAliases: /* @__PURE__ */ __name(() => paginateListAliases, "paginateListAliases"),
      paginateListGrants: /* @__PURE__ */ __name(() => paginateListGrants, "paginateListGrants"),
      paginateListKeyPolicies: /* @__PURE__ */ __name(() => paginateListKeyPolicies, "paginateListKeyPolicies"),
      paginateListKeyRotations: /* @__PURE__ */ __name(() => paginateListKeyRotations, "paginateListKeyRotations"),
      paginateListKeys: /* @__PURE__ */ __name(() => paginateListKeys, "paginateListKeys"),
      paginateListResourceTags: /* @__PURE__ */ __name(() => paginateListResourceTags, "paginateListResourceTags"),
      paginateListRetirableGrants: /* @__PURE__ */ __name(() => paginateListRetirableGrants, "paginateListRetirableGrants")
    });
    module2.exports = __toCommonJS2(index_exports);
    var import_middleware_host_header3 = require_dist_cjs3();
    var import_middleware_logger3 = require_dist_cjs4();
    var import_middleware_recursion_detection3 = require_dist_cjs5();
    var import_middleware_user_agent3 = require_dist_cjs28();
    var import_config_resolver6 = require_dist_cjs30();
    var import_core17 = (init_dist_es(), __toCommonJS(dist_es_exports));
    var import_middleware_content_length3 = require_dist_cjs31();
    var import_middleware_endpoint8 = require_dist_cjs34();
    var import_middleware_retry5 = require_dist_cjs37();
    var import_httpAuthSchemeProvider5 = require_httpAuthSchemeProvider16();
    var resolveClientEndpointParameters3 = /* @__PURE__ */ __name2((options) => {
      return Object.assign(options, {
        useDualstackEndpoint: options.useDualstackEndpoint ?? false,
        useFipsEndpoint: options.useFipsEndpoint ?? false,
        defaultSigningName: "kms"
      });
    }, "resolveClientEndpointParameters");
    var commonParams3 = {
      UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
      Endpoint: { type: "builtInParams", name: "endpoint" },
      Region: { type: "builtInParams", name: "region" },
      UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
    };
    var import_runtimeConfig5 = require_runtimeConfig17();
    var import_region_config_resolver3 = require_dist_cjs45();
    var import_protocol_http16 = require_dist_cjs2();
    var import_smithy_client28 = require_dist_cjs26();
    var getHttpAuthExtensionConfiguration3 = /* @__PURE__ */ __name2((runtimeConfig) => {
      const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
      let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
      let _credentials = runtimeConfig.credentials;
      return {
        setHttpAuthScheme(httpAuthScheme) {
          const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
          if (index === -1) {
            _httpAuthSchemes.push(httpAuthScheme);
          } else {
            _httpAuthSchemes.splice(index, 1, httpAuthScheme);
          }
        },
        httpAuthSchemes() {
          return _httpAuthSchemes;
        },
        setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
          _httpAuthSchemeProvider = httpAuthSchemeProvider;
        },
        httpAuthSchemeProvider() {
          return _httpAuthSchemeProvider;
        },
        setCredentials(credentials) {
          _credentials = credentials;
        },
        credentials() {
          return _credentials;
        }
      };
    }, "getHttpAuthExtensionConfiguration");
    var resolveHttpAuthRuntimeConfig3 = /* @__PURE__ */ __name2((config) => {
      return {
        httpAuthSchemes: config.httpAuthSchemes(),
        httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
        credentials: config.credentials()
      };
    }, "resolveHttpAuthRuntimeConfig");
    var resolveRuntimeExtensions3 = /* @__PURE__ */ __name2((runtimeConfig, extensions) => {
      const extensionConfiguration = Object.assign(
        (0, import_region_config_resolver3.getAwsRegionExtensionConfiguration)(runtimeConfig),
        (0, import_smithy_client28.getDefaultExtensionConfiguration)(runtimeConfig),
        (0, import_protocol_http16.getHttpHandlerExtensionConfiguration)(runtimeConfig),
        getHttpAuthExtensionConfiguration3(runtimeConfig)
      );
      extensions.forEach((extension) => extension.configure(extensionConfiguration));
      return Object.assign(
        runtimeConfig,
        (0, import_region_config_resolver3.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
        (0, import_smithy_client28.resolveDefaultRuntimeConfig)(extensionConfiguration),
        (0, import_protocol_http16.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
        resolveHttpAuthRuntimeConfig3(extensionConfiguration)
      );
    }, "resolveRuntimeExtensions");
    var KMSClient2 = class extends import_smithy_client28.Client {
      static {
        __name(this, "KMSClient");
      }
      static {
        __name2(this, "KMSClient");
      }
      /**
       * The resolved configuration of KMSClient class. This is resolved and normalized from the {@link KMSClientConfig | constructor configuration interface}.
       */
      config;
      constructor(...[configuration]) {
        const _config_0 = (0, import_runtimeConfig5.getRuntimeConfig)(configuration || {});
        super(_config_0);
        this.initConfig = _config_0;
        const _config_1 = resolveClientEndpointParameters3(_config_0);
        const _config_2 = (0, import_middleware_user_agent3.resolveUserAgentConfig)(_config_1);
        const _config_3 = (0, import_middleware_retry5.resolveRetryConfig)(_config_2);
        const _config_4 = (0, import_config_resolver6.resolveRegionConfig)(_config_3);
        const _config_5 = (0, import_middleware_host_header3.resolveHostHeaderConfig)(_config_4);
        const _config_6 = (0, import_middleware_endpoint8.resolveEndpointConfig)(_config_5);
        const _config_7 = (0, import_httpAuthSchemeProvider5.resolveHttpAuthSchemeConfig)(_config_6);
        const _config_8 = resolveRuntimeExtensions3(_config_7, configuration?.extensions || []);
        this.config = _config_8;
        this.middlewareStack.use((0, import_middleware_user_agent3.getUserAgentPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_retry5.getRetryPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_content_length3.getContentLengthPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_host_header3.getHostHeaderPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_logger3.getLoggerPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_recursion_detection3.getRecursionDetectionPlugin)(this.config));
        this.middlewareStack.use(
          (0, import_core17.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
            httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider5.defaultKMSHttpAuthSchemeParametersProvider,
            identityProviderConfigProvider: /* @__PURE__ */ __name2(async (config) => new import_core17.DefaultIdentityProviderConfig({
              "aws.auth#sigv4": config.credentials
            }), "identityProviderConfigProvider")
          })
        );
        this.middlewareStack.use((0, import_core17.getHttpSigningPlugin)(this.config));
      }
      /**
       * Destroy underlying resources, like sockets. It's usually not necessary to do this.
       * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
       * Otherwise, sockets might stay open for quite a long time before the server terminates them.
       */
      destroy() {
        super.destroy();
      }
    };
    var import_middleware_serde5 = require_dist_cjs7();
    var import_core22 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var KMSServiceException = class _KMSServiceException extends import_smithy_client28.ServiceException {
      static {
        __name(this, "_KMSServiceException");
      }
      static {
        __name2(this, "KMSServiceException");
      }
      /**
       * @internal
       */
      constructor(options) {
        super(options);
        Object.setPrototypeOf(this, _KMSServiceException.prototype);
      }
    };
    var AlgorithmSpec = {
      RSAES_OAEP_SHA_1: "RSAES_OAEP_SHA_1",
      RSAES_OAEP_SHA_256: "RSAES_OAEP_SHA_256",
      RSAES_PKCS1_V1_5: "RSAES_PKCS1_V1_5",
      RSA_AES_KEY_WRAP_SHA_1: "RSA_AES_KEY_WRAP_SHA_1",
      RSA_AES_KEY_WRAP_SHA_256: "RSA_AES_KEY_WRAP_SHA_256",
      SM2PKE: "SM2PKE"
    };
    var AlreadyExistsException = class _AlreadyExistsException extends KMSServiceException {
      static {
        __name(this, "_AlreadyExistsException");
      }
      static {
        __name2(this, "AlreadyExistsException");
      }
      name = "AlreadyExistsException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "AlreadyExistsException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _AlreadyExistsException.prototype);
      }
    };
    var DependencyTimeoutException = class _DependencyTimeoutException extends KMSServiceException {
      static {
        __name(this, "_DependencyTimeoutException");
      }
      static {
        __name2(this, "DependencyTimeoutException");
      }
      name = "DependencyTimeoutException";
      $fault = "server";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "DependencyTimeoutException",
          $fault: "server",
          ...opts
        });
        Object.setPrototypeOf(this, _DependencyTimeoutException.prototype);
      }
    };
    var InvalidArnException = class _InvalidArnException extends KMSServiceException {
      static {
        __name(this, "_InvalidArnException");
      }
      static {
        __name2(this, "InvalidArnException");
      }
      name = "InvalidArnException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidArnException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidArnException.prototype);
      }
    };
    var KMSInternalException = class _KMSInternalException extends KMSServiceException {
      static {
        __name(this, "_KMSInternalException");
      }
      static {
        __name2(this, "KMSInternalException");
      }
      name = "KMSInternalException";
      $fault = "server";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "KMSInternalException",
          $fault: "server",
          ...opts
        });
        Object.setPrototypeOf(this, _KMSInternalException.prototype);
      }
    };
    var KMSInvalidStateException = class _KMSInvalidStateException extends KMSServiceException {
      static {
        __name(this, "_KMSInvalidStateException");
      }
      static {
        __name2(this, "KMSInvalidStateException");
      }
      name = "KMSInvalidStateException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "KMSInvalidStateException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _KMSInvalidStateException.prototype);
      }
    };
    var NotFoundException = class _NotFoundException extends KMSServiceException {
      static {
        __name(this, "_NotFoundException");
      }
      static {
        __name2(this, "NotFoundException");
      }
      name = "NotFoundException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "NotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _NotFoundException.prototype);
      }
    };
    var CloudHsmClusterInUseException = class _CloudHsmClusterInUseException extends KMSServiceException {
      static {
        __name(this, "_CloudHsmClusterInUseException");
      }
      static {
        __name2(this, "CloudHsmClusterInUseException");
      }
      name = "CloudHsmClusterInUseException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "CloudHsmClusterInUseException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _CloudHsmClusterInUseException.prototype);
      }
    };
    var CloudHsmClusterInvalidConfigurationException = class _CloudHsmClusterInvalidConfigurationException extends KMSServiceException {
      static {
        __name(this, "_CloudHsmClusterInvalidConfigurationException");
      }
      static {
        __name2(this, "CloudHsmClusterInvalidConfigurationException");
      }
      name = "CloudHsmClusterInvalidConfigurationException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "CloudHsmClusterInvalidConfigurationException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _CloudHsmClusterInvalidConfigurationException.prototype);
      }
    };
    var CloudHsmClusterNotActiveException = class _CloudHsmClusterNotActiveException extends KMSServiceException {
      static {
        __name(this, "_CloudHsmClusterNotActiveException");
      }
      static {
        __name2(this, "CloudHsmClusterNotActiveException");
      }
      name = "CloudHsmClusterNotActiveException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "CloudHsmClusterNotActiveException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _CloudHsmClusterNotActiveException.prototype);
      }
    };
    var CloudHsmClusterNotFoundException = class _CloudHsmClusterNotFoundException extends KMSServiceException {
      static {
        __name(this, "_CloudHsmClusterNotFoundException");
      }
      static {
        __name2(this, "CloudHsmClusterNotFoundException");
      }
      name = "CloudHsmClusterNotFoundException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "CloudHsmClusterNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _CloudHsmClusterNotFoundException.prototype);
      }
    };
    var CloudHsmClusterNotRelatedException = class _CloudHsmClusterNotRelatedException extends KMSServiceException {
      static {
        __name(this, "_CloudHsmClusterNotRelatedException");
      }
      static {
        __name2(this, "CloudHsmClusterNotRelatedException");
      }
      name = "CloudHsmClusterNotRelatedException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "CloudHsmClusterNotRelatedException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _CloudHsmClusterNotRelatedException.prototype);
      }
    };
    var ConflictException = class _ConflictException extends KMSServiceException {
      static {
        __name(this, "_ConflictException");
      }
      static {
        __name2(this, "ConflictException");
      }
      name = "ConflictException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ConflictException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ConflictException.prototype);
      }
    };
    var CustomKeyStoreInvalidStateException = class _CustomKeyStoreInvalidStateException extends KMSServiceException {
      static {
        __name(this, "_CustomKeyStoreInvalidStateException");
      }
      static {
        __name2(this, "CustomKeyStoreInvalidStateException");
      }
      name = "CustomKeyStoreInvalidStateException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "CustomKeyStoreInvalidStateException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _CustomKeyStoreInvalidStateException.prototype);
      }
    };
    var CustomKeyStoreNotFoundException = class _CustomKeyStoreNotFoundException extends KMSServiceException {
      static {
        __name(this, "_CustomKeyStoreNotFoundException");
      }
      static {
        __name2(this, "CustomKeyStoreNotFoundException");
      }
      name = "CustomKeyStoreNotFoundException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "CustomKeyStoreNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _CustomKeyStoreNotFoundException.prototype);
      }
    };
    var ConnectionErrorCodeType = {
      CLUSTER_NOT_FOUND: "CLUSTER_NOT_FOUND",
      INSUFFICIENT_CLOUDHSM_HSMS: "INSUFFICIENT_CLOUDHSM_HSMS",
      INSUFFICIENT_FREE_ADDRESSES_IN_SUBNET: "INSUFFICIENT_FREE_ADDRESSES_IN_SUBNET",
      INTERNAL_ERROR: "INTERNAL_ERROR",
      INVALID_CREDENTIALS: "INVALID_CREDENTIALS",
      NETWORK_ERRORS: "NETWORK_ERRORS",
      SUBNET_NOT_FOUND: "SUBNET_NOT_FOUND",
      USER_LOCKED_OUT: "USER_LOCKED_OUT",
      USER_LOGGED_IN: "USER_LOGGED_IN",
      USER_NOT_FOUND: "USER_NOT_FOUND",
      XKS_PROXY_ACCESS_DENIED: "XKS_PROXY_ACCESS_DENIED",
      XKS_PROXY_INVALID_CONFIGURATION: "XKS_PROXY_INVALID_CONFIGURATION",
      XKS_PROXY_INVALID_RESPONSE: "XKS_PROXY_INVALID_RESPONSE",
      XKS_PROXY_INVALID_TLS_CONFIGURATION: "XKS_PROXY_INVALID_TLS_CONFIGURATION",
      XKS_PROXY_NOT_REACHABLE: "XKS_PROXY_NOT_REACHABLE",
      XKS_PROXY_TIMED_OUT: "XKS_PROXY_TIMED_OUT",
      XKS_VPC_ENDPOINT_SERVICE_INVALID_CONFIGURATION: "XKS_VPC_ENDPOINT_SERVICE_INVALID_CONFIGURATION",
      XKS_VPC_ENDPOINT_SERVICE_NOT_FOUND: "XKS_VPC_ENDPOINT_SERVICE_NOT_FOUND"
    };
    var ConnectionStateType = {
      CONNECTED: "CONNECTED",
      CONNECTING: "CONNECTING",
      DISCONNECTED: "DISCONNECTED",
      DISCONNECTING: "DISCONNECTING",
      FAILED: "FAILED"
    };
    var InvalidAliasNameException = class _InvalidAliasNameException extends KMSServiceException {
      static {
        __name(this, "_InvalidAliasNameException");
      }
      static {
        __name2(this, "InvalidAliasNameException");
      }
      name = "InvalidAliasNameException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidAliasNameException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidAliasNameException.prototype);
      }
    };
    var LimitExceededException = class _LimitExceededException extends KMSServiceException {
      static {
        __name(this, "_LimitExceededException");
      }
      static {
        __name2(this, "LimitExceededException");
      }
      name = "LimitExceededException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "LimitExceededException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _LimitExceededException.prototype);
      }
    };
    var CustomKeyStoreType = {
      AWS_CLOUDHSM: "AWS_CLOUDHSM",
      EXTERNAL_KEY_STORE: "EXTERNAL_KEY_STORE"
    };
    var XksProxyConnectivityType = {
      PUBLIC_ENDPOINT: "PUBLIC_ENDPOINT",
      VPC_ENDPOINT_SERVICE: "VPC_ENDPOINT_SERVICE"
    };
    var CustomKeyStoreNameInUseException = class _CustomKeyStoreNameInUseException extends KMSServiceException {
      static {
        __name(this, "_CustomKeyStoreNameInUseException");
      }
      static {
        __name2(this, "CustomKeyStoreNameInUseException");
      }
      name = "CustomKeyStoreNameInUseException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "CustomKeyStoreNameInUseException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _CustomKeyStoreNameInUseException.prototype);
      }
    };
    var IncorrectTrustAnchorException = class _IncorrectTrustAnchorException extends KMSServiceException {
      static {
        __name(this, "_IncorrectTrustAnchorException");
      }
      static {
        __name2(this, "IncorrectTrustAnchorException");
      }
      name = "IncorrectTrustAnchorException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "IncorrectTrustAnchorException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _IncorrectTrustAnchorException.prototype);
      }
    };
    var XksProxyIncorrectAuthenticationCredentialException = class _XksProxyIncorrectAuthenticationCredentialException extends KMSServiceException {
      static {
        __name(this, "_XksProxyIncorrectAuthenticationCredentialException");
      }
      static {
        __name2(this, "XksProxyIncorrectAuthenticationCredentialException");
      }
      name = "XksProxyIncorrectAuthenticationCredentialException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "XksProxyIncorrectAuthenticationCredentialException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _XksProxyIncorrectAuthenticationCredentialException.prototype);
      }
    };
    var XksProxyInvalidConfigurationException = class _XksProxyInvalidConfigurationException extends KMSServiceException {
      static {
        __name(this, "_XksProxyInvalidConfigurationException");
      }
      static {
        __name2(this, "XksProxyInvalidConfigurationException");
      }
      name = "XksProxyInvalidConfigurationException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "XksProxyInvalidConfigurationException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _XksProxyInvalidConfigurationException.prototype);
      }
    };
    var XksProxyInvalidResponseException = class _XksProxyInvalidResponseException extends KMSServiceException {
      static {
        __name(this, "_XksProxyInvalidResponseException");
      }
      static {
        __name2(this, "XksProxyInvalidResponseException");
      }
      name = "XksProxyInvalidResponseException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "XksProxyInvalidResponseException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _XksProxyInvalidResponseException.prototype);
      }
    };
    var XksProxyUriEndpointInUseException = class _XksProxyUriEndpointInUseException extends KMSServiceException {
      static {
        __name(this, "_XksProxyUriEndpointInUseException");
      }
      static {
        __name2(this, "XksProxyUriEndpointInUseException");
      }
      name = "XksProxyUriEndpointInUseException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "XksProxyUriEndpointInUseException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _XksProxyUriEndpointInUseException.prototype);
      }
    };
    var XksProxyUriInUseException = class _XksProxyUriInUseException extends KMSServiceException {
      static {
        __name(this, "_XksProxyUriInUseException");
      }
      static {
        __name2(this, "XksProxyUriInUseException");
      }
      name = "XksProxyUriInUseException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "XksProxyUriInUseException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _XksProxyUriInUseException.prototype);
      }
    };
    var XksProxyUriUnreachableException = class _XksProxyUriUnreachableException extends KMSServiceException {
      static {
        __name(this, "_XksProxyUriUnreachableException");
      }
      static {
        __name2(this, "XksProxyUriUnreachableException");
      }
      name = "XksProxyUriUnreachableException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "XksProxyUriUnreachableException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _XksProxyUriUnreachableException.prototype);
      }
    };
    var XksProxyVpcEndpointServiceInUseException = class _XksProxyVpcEndpointServiceInUseException extends KMSServiceException {
      static {
        __name(this, "_XksProxyVpcEndpointServiceInUseException");
      }
      static {
        __name2(this, "XksProxyVpcEndpointServiceInUseException");
      }
      name = "XksProxyVpcEndpointServiceInUseException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "XksProxyVpcEndpointServiceInUseException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _XksProxyVpcEndpointServiceInUseException.prototype);
      }
    };
    var XksProxyVpcEndpointServiceInvalidConfigurationException = class _XksProxyVpcEndpointServiceInvalidConfigurationException extends KMSServiceException {
      static {
        __name(this, "_XksProxyVpcEndpointServiceInvalidConfigurationException");
      }
      static {
        __name2(this, "XksProxyVpcEndpointServiceInvalidConfigurationException");
      }
      name = "XksProxyVpcEndpointServiceInvalidConfigurationException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "XksProxyVpcEndpointServiceInvalidConfigurationException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _XksProxyVpcEndpointServiceInvalidConfigurationException.prototype);
      }
    };
    var XksProxyVpcEndpointServiceNotFoundException = class _XksProxyVpcEndpointServiceNotFoundException extends KMSServiceException {
      static {
        __name(this, "_XksProxyVpcEndpointServiceNotFoundException");
      }
      static {
        __name2(this, "XksProxyVpcEndpointServiceNotFoundException");
      }
      name = "XksProxyVpcEndpointServiceNotFoundException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "XksProxyVpcEndpointServiceNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _XksProxyVpcEndpointServiceNotFoundException.prototype);
      }
    };
    var GrantOperation = {
      CreateGrant: "CreateGrant",
      Decrypt: "Decrypt",
      DeriveSharedSecret: "DeriveSharedSecret",
      DescribeKey: "DescribeKey",
      Encrypt: "Encrypt",
      GenerateDataKey: "GenerateDataKey",
      GenerateDataKeyPair: "GenerateDataKeyPair",
      GenerateDataKeyPairWithoutPlaintext: "GenerateDataKeyPairWithoutPlaintext",
      GenerateDataKeyWithoutPlaintext: "GenerateDataKeyWithoutPlaintext",
      GenerateMac: "GenerateMac",
      GetPublicKey: "GetPublicKey",
      ReEncryptFrom: "ReEncryptFrom",
      ReEncryptTo: "ReEncryptTo",
      RetireGrant: "RetireGrant",
      Sign: "Sign",
      Verify: "Verify",
      VerifyMac: "VerifyMac"
    };
    var DisabledException = class _DisabledException extends KMSServiceException {
      static {
        __name(this, "_DisabledException");
      }
      static {
        __name2(this, "DisabledException");
      }
      name = "DisabledException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "DisabledException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _DisabledException.prototype);
      }
    };
    var DryRunOperationException = class _DryRunOperationException extends KMSServiceException {
      static {
        __name(this, "_DryRunOperationException");
      }
      static {
        __name2(this, "DryRunOperationException");
      }
      name = "DryRunOperationException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "DryRunOperationException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _DryRunOperationException.prototype);
      }
    };
    var InvalidGrantTokenException = class _InvalidGrantTokenException extends KMSServiceException {
      static {
        __name(this, "_InvalidGrantTokenException");
      }
      static {
        __name2(this, "InvalidGrantTokenException");
      }
      name = "InvalidGrantTokenException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidGrantTokenException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidGrantTokenException.prototype);
      }
    };
    var CustomerMasterKeySpec = {
      ECC_NIST_P256: "ECC_NIST_P256",
      ECC_NIST_P384: "ECC_NIST_P384",
      ECC_NIST_P521: "ECC_NIST_P521",
      ECC_SECG_P256K1: "ECC_SECG_P256K1",
      HMAC_224: "HMAC_224",
      HMAC_256: "HMAC_256",
      HMAC_384: "HMAC_384",
      HMAC_512: "HMAC_512",
      RSA_2048: "RSA_2048",
      RSA_3072: "RSA_3072",
      RSA_4096: "RSA_4096",
      SM2: "SM2",
      SYMMETRIC_DEFAULT: "SYMMETRIC_DEFAULT"
    };
    var KeySpec = {
      ECC_NIST_P256: "ECC_NIST_P256",
      ECC_NIST_P384: "ECC_NIST_P384",
      ECC_NIST_P521: "ECC_NIST_P521",
      ECC_SECG_P256K1: "ECC_SECG_P256K1",
      HMAC_224: "HMAC_224",
      HMAC_256: "HMAC_256",
      HMAC_384: "HMAC_384",
      HMAC_512: "HMAC_512",
      ML_DSA_44: "ML_DSA_44",
      ML_DSA_65: "ML_DSA_65",
      ML_DSA_87: "ML_DSA_87",
      RSA_2048: "RSA_2048",
      RSA_3072: "RSA_3072",
      RSA_4096: "RSA_4096",
      SM2: "SM2",
      SYMMETRIC_DEFAULT: "SYMMETRIC_DEFAULT"
    };
    var KeyUsageType = {
      ENCRYPT_DECRYPT: "ENCRYPT_DECRYPT",
      GENERATE_VERIFY_MAC: "GENERATE_VERIFY_MAC",
      KEY_AGREEMENT: "KEY_AGREEMENT",
      SIGN_VERIFY: "SIGN_VERIFY"
    };
    var OriginType = {
      AWS_CLOUDHSM: "AWS_CLOUDHSM",
      AWS_KMS: "AWS_KMS",
      EXTERNAL: "EXTERNAL",
      EXTERNAL_KEY_STORE: "EXTERNAL_KEY_STORE"
    };
    var EncryptionAlgorithmSpec = {
      RSAES_OAEP_SHA_1: "RSAES_OAEP_SHA_1",
      RSAES_OAEP_SHA_256: "RSAES_OAEP_SHA_256",
      SM2PKE: "SM2PKE",
      SYMMETRIC_DEFAULT: "SYMMETRIC_DEFAULT"
    };
    var ExpirationModelType = {
      KEY_MATERIAL_DOES_NOT_EXPIRE: "KEY_MATERIAL_DOES_NOT_EXPIRE",
      KEY_MATERIAL_EXPIRES: "KEY_MATERIAL_EXPIRES"
    };
    var KeyAgreementAlgorithmSpec = {
      ECDH: "ECDH"
    };
    var KeyManagerType = {
      AWS: "AWS",
      CUSTOMER: "CUSTOMER"
    };
    var KeyState = {
      Creating: "Creating",
      Disabled: "Disabled",
      Enabled: "Enabled",
      PendingDeletion: "PendingDeletion",
      PendingImport: "PendingImport",
      PendingReplicaDeletion: "PendingReplicaDeletion",
      Unavailable: "Unavailable",
      Updating: "Updating"
    };
    var MacAlgorithmSpec = {
      HMAC_SHA_224: "HMAC_SHA_224",
      HMAC_SHA_256: "HMAC_SHA_256",
      HMAC_SHA_384: "HMAC_SHA_384",
      HMAC_SHA_512: "HMAC_SHA_512"
    };
    var MultiRegionKeyType = {
      PRIMARY: "PRIMARY",
      REPLICA: "REPLICA"
    };
    var SigningAlgorithmSpec = {
      ECDSA_SHA_256: "ECDSA_SHA_256",
      ECDSA_SHA_384: "ECDSA_SHA_384",
      ECDSA_SHA_512: "ECDSA_SHA_512",
      ML_DSA_SHAKE_256: "ML_DSA_SHAKE_256",
      RSASSA_PKCS1_V1_5_SHA_256: "RSASSA_PKCS1_V1_5_SHA_256",
      RSASSA_PKCS1_V1_5_SHA_384: "RSASSA_PKCS1_V1_5_SHA_384",
      RSASSA_PKCS1_V1_5_SHA_512: "RSASSA_PKCS1_V1_5_SHA_512",
      RSASSA_PSS_SHA_256: "RSASSA_PSS_SHA_256",
      RSASSA_PSS_SHA_384: "RSASSA_PSS_SHA_384",
      RSASSA_PSS_SHA_512: "RSASSA_PSS_SHA_512",
      SM2DSA: "SM2DSA"
    };
    var MalformedPolicyDocumentException2 = class _MalformedPolicyDocumentException extends KMSServiceException {
      static {
        __name(this, "_MalformedPolicyDocumentException");
      }
      static {
        __name2(this, "MalformedPolicyDocumentException");
      }
      name = "MalformedPolicyDocumentException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "MalformedPolicyDocumentException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _MalformedPolicyDocumentException.prototype);
      }
    };
    var TagException = class _TagException extends KMSServiceException {
      static {
        __name(this, "_TagException");
      }
      static {
        __name2(this, "TagException");
      }
      name = "TagException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "TagException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _TagException.prototype);
      }
    };
    var UnsupportedOperationException = class _UnsupportedOperationException extends KMSServiceException {
      static {
        __name(this, "_UnsupportedOperationException");
      }
      static {
        __name2(this, "UnsupportedOperationException");
      }
      name = "UnsupportedOperationException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "UnsupportedOperationException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _UnsupportedOperationException.prototype);
      }
    };
    var XksKeyAlreadyInUseException = class _XksKeyAlreadyInUseException extends KMSServiceException {
      static {
        __name(this, "_XksKeyAlreadyInUseException");
      }
      static {
        __name2(this, "XksKeyAlreadyInUseException");
      }
      name = "XksKeyAlreadyInUseException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "XksKeyAlreadyInUseException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _XksKeyAlreadyInUseException.prototype);
      }
    };
    var XksKeyInvalidConfigurationException = class _XksKeyInvalidConfigurationException extends KMSServiceException {
      static {
        __name(this, "_XksKeyInvalidConfigurationException");
      }
      static {
        __name2(this, "XksKeyInvalidConfigurationException");
      }
      name = "XksKeyInvalidConfigurationException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "XksKeyInvalidConfigurationException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _XksKeyInvalidConfigurationException.prototype);
      }
    };
    var XksKeyNotFoundException = class _XksKeyNotFoundException extends KMSServiceException {
      static {
        __name(this, "_XksKeyNotFoundException");
      }
      static {
        __name2(this, "XksKeyNotFoundException");
      }
      name = "XksKeyNotFoundException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "XksKeyNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _XksKeyNotFoundException.prototype);
      }
    };
    var CustomKeyStoreHasCMKsException = class _CustomKeyStoreHasCMKsException extends KMSServiceException {
      static {
        __name(this, "_CustomKeyStoreHasCMKsException");
      }
      static {
        __name2(this, "CustomKeyStoreHasCMKsException");
      }
      name = "CustomKeyStoreHasCMKsException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "CustomKeyStoreHasCMKsException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _CustomKeyStoreHasCMKsException.prototype);
      }
    };
    var DataKeyPairSpec = {
      ECC_NIST_P256: "ECC_NIST_P256",
      ECC_NIST_P384: "ECC_NIST_P384",
      ECC_NIST_P521: "ECC_NIST_P521",
      ECC_SECG_P256K1: "ECC_SECG_P256K1",
      RSA_2048: "RSA_2048",
      RSA_3072: "RSA_3072",
      RSA_4096: "RSA_4096",
      SM2: "SM2"
    };
    var DataKeySpec = {
      AES_128: "AES_128",
      AES_256: "AES_256"
    };
    var KeyEncryptionMechanism = {
      RSAES_OAEP_SHA_256: "RSAES_OAEP_SHA_256"
    };
    var IncorrectKeyException = class _IncorrectKeyException extends KMSServiceException {
      static {
        __name(this, "_IncorrectKeyException");
      }
      static {
        __name2(this, "IncorrectKeyException");
      }
      name = "IncorrectKeyException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "IncorrectKeyException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _IncorrectKeyException.prototype);
      }
    };
    var InvalidCiphertextException = class _InvalidCiphertextException extends KMSServiceException {
      static {
        __name(this, "_InvalidCiphertextException");
      }
      static {
        __name2(this, "InvalidCiphertextException");
      }
      name = "InvalidCiphertextException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidCiphertextException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidCiphertextException.prototype);
      }
    };
    var InvalidKeyUsageException = class _InvalidKeyUsageException extends KMSServiceException {
      static {
        __name(this, "_InvalidKeyUsageException");
      }
      static {
        __name2(this, "InvalidKeyUsageException");
      }
      name = "InvalidKeyUsageException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidKeyUsageException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidKeyUsageException.prototype);
      }
    };
    var KeyUnavailableException = class _KeyUnavailableException extends KMSServiceException {
      static {
        __name(this, "_KeyUnavailableException");
      }
      static {
        __name2(this, "KeyUnavailableException");
      }
      name = "KeyUnavailableException";
      $fault = "server";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "KeyUnavailableException",
          $fault: "server",
          ...opts
        });
        Object.setPrototypeOf(this, _KeyUnavailableException.prototype);
      }
    };
    var InvalidMarkerException = class _InvalidMarkerException extends KMSServiceException {
      static {
        __name(this, "_InvalidMarkerException");
      }
      static {
        __name2(this, "InvalidMarkerException");
      }
      name = "InvalidMarkerException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidMarkerException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidMarkerException.prototype);
      }
    };
    var ExpiredImportTokenException = class _ExpiredImportTokenException extends KMSServiceException {
      static {
        __name(this, "_ExpiredImportTokenException");
      }
      static {
        __name2(this, "ExpiredImportTokenException");
      }
      name = "ExpiredImportTokenException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ExpiredImportTokenException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ExpiredImportTokenException.prototype);
      }
    };
    var WrappingKeySpec = {
      RSA_2048: "RSA_2048",
      RSA_3072: "RSA_3072",
      RSA_4096: "RSA_4096",
      SM2: "SM2"
    };
    var ImportType = {
      EXISTING_KEY_MATERIAL: "EXISTING_KEY_MATERIAL",
      NEW_KEY_MATERIAL: "NEW_KEY_MATERIAL"
    };
    var IncorrectKeyMaterialException = class _IncorrectKeyMaterialException extends KMSServiceException {
      static {
        __name(this, "_IncorrectKeyMaterialException");
      }
      static {
        __name2(this, "IncorrectKeyMaterialException");
      }
      name = "IncorrectKeyMaterialException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "IncorrectKeyMaterialException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _IncorrectKeyMaterialException.prototype);
      }
    };
    var InvalidImportTokenException = class _InvalidImportTokenException extends KMSServiceException {
      static {
        __name(this, "_InvalidImportTokenException");
      }
      static {
        __name2(this, "InvalidImportTokenException");
      }
      name = "InvalidImportTokenException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidImportTokenException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidImportTokenException.prototype);
      }
    };
    var ImportState = {
      IMPORTED: "IMPORTED",
      PENDING_IMPORT: "PENDING_IMPORT"
    };
    var IncludeKeyMaterial = {
      ALL_KEY_MATERIAL: "ALL_KEY_MATERIAL",
      ROTATIONS_ONLY: "ROTATIONS_ONLY"
    };
    var InvalidGrantIdException = class _InvalidGrantIdException extends KMSServiceException {
      static {
        __name(this, "_InvalidGrantIdException");
      }
      static {
        __name2(this, "InvalidGrantIdException");
      }
      name = "InvalidGrantIdException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidGrantIdException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidGrantIdException.prototype);
      }
    };
    var KeyMaterialState = {
      CURRENT: "CURRENT",
      NON_CURRENT: "NON_CURRENT",
      PENDING_ROTATION: "PENDING_ROTATION"
    };
    var KMSInvalidMacException = class _KMSInvalidMacException extends KMSServiceException {
      static {
        __name(this, "_KMSInvalidMacException");
      }
      static {
        __name2(this, "KMSInvalidMacException");
      }
      name = "KMSInvalidMacException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "KMSInvalidMacException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _KMSInvalidMacException.prototype);
      }
    };
    var KMSInvalidSignatureException = class _KMSInvalidSignatureException extends KMSServiceException {
      static {
        __name(this, "_KMSInvalidSignatureException");
      }
      static {
        __name2(this, "KMSInvalidSignatureException");
      }
      name = "KMSInvalidSignatureException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "KMSInvalidSignatureException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _KMSInvalidSignatureException.prototype);
      }
    };
    var RotationType = {
      AUTOMATIC: "AUTOMATIC",
      ON_DEMAND: "ON_DEMAND"
    };
    var MessageType = {
      DIGEST: "DIGEST",
      EXTERNAL_MU: "EXTERNAL_MU",
      RAW: "RAW"
    };
    var XksProxyAuthenticationCredentialTypeFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.AccessKeyId && { AccessKeyId: import_smithy_client28.SENSITIVE_STRING },
      ...obj.RawSecretAccessKey && { RawSecretAccessKey: import_smithy_client28.SENSITIVE_STRING }
    }), "XksProxyAuthenticationCredentialTypeFilterSensitiveLog");
    var CreateCustomKeyStoreRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.KeyStorePassword && { KeyStorePassword: import_smithy_client28.SENSITIVE_STRING },
      ...obj.XksProxyAuthenticationCredential && {
        XksProxyAuthenticationCredential: XksProxyAuthenticationCredentialTypeFilterSensitiveLog(
          obj.XksProxyAuthenticationCredential
        )
      }
    }), "CreateCustomKeyStoreRequestFilterSensitiveLog");
    var XksProxyConfigurationTypeFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.AccessKeyId && { AccessKeyId: import_smithy_client28.SENSITIVE_STRING }
    }), "XksProxyConfigurationTypeFilterSensitiveLog");
    var CustomKeyStoresListEntryFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.XksProxyConfiguration && {
        XksProxyConfiguration: XksProxyConfigurationTypeFilterSensitiveLog(obj.XksProxyConfiguration)
      }
    }), "CustomKeyStoresListEntryFilterSensitiveLog");
    var DecryptResponseFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Plaintext && { Plaintext: import_smithy_client28.SENSITIVE_STRING }
    }), "DecryptResponseFilterSensitiveLog");
    var DeriveSharedSecretResponseFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.SharedSecret && { SharedSecret: import_smithy_client28.SENSITIVE_STRING }
    }), "DeriveSharedSecretResponseFilterSensitiveLog");
    var DescribeCustomKeyStoresResponseFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.CustomKeyStores && {
        CustomKeyStores: obj.CustomKeyStores.map((item) => CustomKeyStoresListEntryFilterSensitiveLog(item))
      }
    }), "DescribeCustomKeyStoresResponseFilterSensitiveLog");
    var EncryptRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Plaintext && { Plaintext: import_smithy_client28.SENSITIVE_STRING }
    }), "EncryptRequestFilterSensitiveLog");
    var GenerateDataKeyResponseFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Plaintext && { Plaintext: import_smithy_client28.SENSITIVE_STRING }
    }), "GenerateDataKeyResponseFilterSensitiveLog");
    var GenerateDataKeyPairResponseFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.PrivateKeyPlaintext && { PrivateKeyPlaintext: import_smithy_client28.SENSITIVE_STRING }
    }), "GenerateDataKeyPairResponseFilterSensitiveLog");
    var GenerateMacRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Message && { Message: import_smithy_client28.SENSITIVE_STRING }
    }), "GenerateMacRequestFilterSensitiveLog");
    var GenerateRandomResponseFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Plaintext && { Plaintext: import_smithy_client28.SENSITIVE_STRING }
    }), "GenerateRandomResponseFilterSensitiveLog");
    var GetParametersForImportResponseFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.PublicKey && { PublicKey: import_smithy_client28.SENSITIVE_STRING }
    }), "GetParametersForImportResponseFilterSensitiveLog");
    var SignRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Message && { Message: import_smithy_client28.SENSITIVE_STRING }
    }), "SignRequestFilterSensitiveLog");
    var UpdateCustomKeyStoreRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.KeyStorePassword && { KeyStorePassword: import_smithy_client28.SENSITIVE_STRING },
      ...obj.XksProxyAuthenticationCredential && {
        XksProxyAuthenticationCredential: XksProxyAuthenticationCredentialTypeFilterSensitiveLog(
          obj.XksProxyAuthenticationCredential
        )
      }
    }), "UpdateCustomKeyStoreRequestFilterSensitiveLog");
    var VerifyRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Message && { Message: import_smithy_client28.SENSITIVE_STRING }
    }), "VerifyRequestFilterSensitiveLog");
    var VerifyMacRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Message && { Message: import_smithy_client28.SENSITIVE_STRING }
    }), "VerifyMacRequestFilterSensitiveLog");
    var se_CancelKeyDeletionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("CancelKeyDeletion");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CancelKeyDeletionCommand");
    var se_ConnectCustomKeyStoreCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ConnectCustomKeyStore");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ConnectCustomKeyStoreCommand");
    var se_CreateAliasCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("CreateAlias");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateAliasCommand");
    var se_CreateCustomKeyStoreCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("CreateCustomKeyStore");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateCustomKeyStoreCommand");
    var se_CreateGrantCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("CreateGrant");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateGrantCommand");
    var se_CreateKeyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("CreateKey");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateKeyCommand");
    var se_DecryptCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("Decrypt");
      let body;
      body = JSON.stringify(se_DecryptRequest(input, context));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DecryptCommand");
    var se_DeleteAliasCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteAlias");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteAliasCommand");
    var se_DeleteCustomKeyStoreCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteCustomKeyStore");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteCustomKeyStoreCommand");
    var se_DeleteImportedKeyMaterialCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteImportedKeyMaterial");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteImportedKeyMaterialCommand");
    var se_DeriveSharedSecretCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeriveSharedSecret");
      let body;
      body = JSON.stringify(se_DeriveSharedSecretRequest(input, context));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeriveSharedSecretCommand");
    var se_DescribeCustomKeyStoresCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeCustomKeyStores");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeCustomKeyStoresCommand");
    var se_DescribeKeyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeKey");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeKeyCommand");
    var se_DisableKeyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DisableKey");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DisableKeyCommand");
    var se_DisableKeyRotationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DisableKeyRotation");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DisableKeyRotationCommand");
    var se_DisconnectCustomKeyStoreCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DisconnectCustomKeyStore");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DisconnectCustomKeyStoreCommand");
    var se_EnableKeyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("EnableKey");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_EnableKeyCommand");
    var se_EnableKeyRotationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("EnableKeyRotation");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_EnableKeyRotationCommand");
    var se_EncryptCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("Encrypt");
      let body;
      body = JSON.stringify(se_EncryptRequest(input, context));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_EncryptCommand");
    var se_GenerateDataKeyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GenerateDataKey");
      let body;
      body = JSON.stringify(se_GenerateDataKeyRequest(input, context));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GenerateDataKeyCommand");
    var se_GenerateDataKeyPairCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GenerateDataKeyPair");
      let body;
      body = JSON.stringify(se_GenerateDataKeyPairRequest(input, context));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GenerateDataKeyPairCommand");
    var se_GenerateDataKeyPairWithoutPlaintextCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GenerateDataKeyPairWithoutPlaintext");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GenerateDataKeyPairWithoutPlaintextCommand");
    var se_GenerateDataKeyWithoutPlaintextCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GenerateDataKeyWithoutPlaintext");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GenerateDataKeyWithoutPlaintextCommand");
    var se_GenerateMacCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GenerateMac");
      let body;
      body = JSON.stringify(se_GenerateMacRequest(input, context));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GenerateMacCommand");
    var se_GenerateRandomCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GenerateRandom");
      let body;
      body = JSON.stringify(se_GenerateRandomRequest(input, context));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GenerateRandomCommand");
    var se_GetKeyPolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetKeyPolicy");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetKeyPolicyCommand");
    var se_GetKeyRotationStatusCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetKeyRotationStatus");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetKeyRotationStatusCommand");
    var se_GetParametersForImportCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetParametersForImport");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetParametersForImportCommand");
    var se_GetPublicKeyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetPublicKey");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetPublicKeyCommand");
    var se_ImportKeyMaterialCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ImportKeyMaterial");
      let body;
      body = JSON.stringify(se_ImportKeyMaterialRequest(input, context));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ImportKeyMaterialCommand");
    var se_ListAliasesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListAliases");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListAliasesCommand");
    var se_ListGrantsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListGrants");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListGrantsCommand");
    var se_ListKeyPoliciesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListKeyPolicies");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListKeyPoliciesCommand");
    var se_ListKeyRotationsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListKeyRotations");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListKeyRotationsCommand");
    var se_ListKeysCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListKeys");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListKeysCommand");
    var se_ListResourceTagsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListResourceTags");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListResourceTagsCommand");
    var se_ListRetirableGrantsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListRetirableGrants");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListRetirableGrantsCommand");
    var se_PutKeyPolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("PutKeyPolicy");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_PutKeyPolicyCommand");
    var se_ReEncryptCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ReEncrypt");
      let body;
      body = JSON.stringify(se_ReEncryptRequest(input, context));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ReEncryptCommand");
    var se_ReplicateKeyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ReplicateKey");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ReplicateKeyCommand");
    var se_RetireGrantCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("RetireGrant");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_RetireGrantCommand");
    var se_RevokeGrantCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("RevokeGrant");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_RevokeGrantCommand");
    var se_RotateKeyOnDemandCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("RotateKeyOnDemand");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_RotateKeyOnDemandCommand");
    var se_ScheduleKeyDeletionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ScheduleKeyDeletion");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ScheduleKeyDeletionCommand");
    var se_SignCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("Sign");
      let body;
      body = JSON.stringify(se_SignRequest(input, context));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_SignCommand");
    var se_TagResourceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("TagResource");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_TagResourceCommand");
    var se_UntagResourceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("UntagResource");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UntagResourceCommand");
    var se_UpdateAliasCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("UpdateAlias");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateAliasCommand");
    var se_UpdateCustomKeyStoreCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("UpdateCustomKeyStore");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateCustomKeyStoreCommand");
    var se_UpdateKeyDescriptionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("UpdateKeyDescription");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateKeyDescriptionCommand");
    var se_UpdatePrimaryRegionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("UpdatePrimaryRegion");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdatePrimaryRegionCommand");
    var se_VerifyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("Verify");
      let body;
      body = JSON.stringify(se_VerifyRequest(input, context));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_VerifyCommand");
    var se_VerifyMacCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("VerifyMac");
      let body;
      body = JSON.stringify(se_VerifyMacRequest(input, context));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_VerifyMacCommand");
    var de_CancelKeyDeletionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CancelKeyDeletionCommand");
    var de_ConnectCustomKeyStoreCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ConnectCustomKeyStoreCommand");
    var de_CreateAliasCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_CreateAliasCommand");
    var de_CreateCustomKeyStoreCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateCustomKeyStoreCommand");
    var de_CreateGrantCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateGrantCommand");
    var de_CreateKeyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_CreateKeyResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateKeyCommand");
    var de_DecryptCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DecryptResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DecryptCommand");
    var de_DeleteAliasCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DeleteAliasCommand");
    var de_DeleteCustomKeyStoreCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteCustomKeyStoreCommand");
    var de_DeleteImportedKeyMaterialCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteImportedKeyMaterialCommand");
    var de_DeriveSharedSecretCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DeriveSharedSecretResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeriveSharedSecretCommand");
    var de_DescribeCustomKeyStoresCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DescribeCustomKeyStoresResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeCustomKeyStoresCommand");
    var de_DescribeKeyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DescribeKeyResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeKeyCommand");
    var de_DisableKeyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DisableKeyCommand");
    var de_DisableKeyRotationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_DisableKeyRotationCommand");
    var de_DisconnectCustomKeyStoreCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DisconnectCustomKeyStoreCommand");
    var de_EnableKeyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_EnableKeyCommand");
    var de_EnableKeyRotationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_EnableKeyRotationCommand");
    var de_EncryptCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_EncryptResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_EncryptCommand");
    var de_GenerateDataKeyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_GenerateDataKeyResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GenerateDataKeyCommand");
    var de_GenerateDataKeyPairCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_GenerateDataKeyPairResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GenerateDataKeyPairCommand");
    var de_GenerateDataKeyPairWithoutPlaintextCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_GenerateDataKeyPairWithoutPlaintextResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GenerateDataKeyPairWithoutPlaintextCommand");
    var de_GenerateDataKeyWithoutPlaintextCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_GenerateDataKeyWithoutPlaintextResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GenerateDataKeyWithoutPlaintextCommand");
    var de_GenerateMacCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_GenerateMacResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GenerateMacCommand");
    var de_GenerateRandomCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_GenerateRandomResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GenerateRandomCommand");
    var de_GetKeyPolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetKeyPolicyCommand");
    var de_GetKeyRotationStatusCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_GetKeyRotationStatusResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetKeyRotationStatusCommand");
    var de_GetParametersForImportCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_GetParametersForImportResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetParametersForImportCommand");
    var de_GetPublicKeyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_GetPublicKeyResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetPublicKeyCommand");
    var de_ImportKeyMaterialCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ImportKeyMaterialCommand");
    var de_ListAliasesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_ListAliasesResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListAliasesCommand");
    var de_ListGrantsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_ListGrantsResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListGrantsCommand");
    var de_ListKeyPoliciesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListKeyPoliciesCommand");
    var de_ListKeyRotationsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_ListKeyRotationsResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListKeyRotationsCommand");
    var de_ListKeysCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListKeysCommand");
    var de_ListResourceTagsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListResourceTagsCommand");
    var de_ListRetirableGrantsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_ListGrantsResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListRetirableGrantsCommand");
    var de_PutKeyPolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_PutKeyPolicyCommand");
    var de_ReEncryptCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_ReEncryptResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ReEncryptCommand");
    var de_ReplicateKeyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_ReplicateKeyResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ReplicateKeyCommand");
    var de_RetireGrantCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_RetireGrantCommand");
    var de_RevokeGrantCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_RevokeGrantCommand");
    var de_RotateKeyOnDemandCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_RotateKeyOnDemandCommand");
    var de_ScheduleKeyDeletionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_ScheduleKeyDeletionResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ScheduleKeyDeletionCommand");
    var de_SignCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_SignResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_SignCommand");
    var de_TagResourceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_TagResourceCommand");
    var de_UntagResourceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_UntagResourceCommand");
    var de_UpdateAliasCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_UpdateAliasCommand");
    var de_UpdateCustomKeyStoreCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UpdateCustomKeyStoreCommand");
    var de_UpdateKeyDescriptionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_UpdateKeyDescriptionCommand");
    var de_UpdatePrimaryRegionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      await (0, import_smithy_client28.collectBody)(output.body, context);
      const response = {
        $metadata: deserializeMetadata3(output)
      };
      return response;
    }, "de_UpdatePrimaryRegionCommand");
    var de_VerifyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_VerifyCommand");
    var de_VerifyMacCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_VerifyMacCommand");
    var de_CommandError3 = /* @__PURE__ */ __name2(async (output, context) => {
      const parsedOutput = {
        ...output,
        body: await (0, import_core22.parseJsonErrorBody)(output.body, context)
      };
      const errorCode = (0, import_core22.loadRestJsonErrorCode)(output, parsedOutput.body);
      switch (errorCode) {
        case "DependencyTimeoutException":
        case "com.amazonaws.kms#DependencyTimeoutException":
          throw await de_DependencyTimeoutExceptionRes(parsedOutput, context);
        case "InvalidArnException":
        case "com.amazonaws.kms#InvalidArnException":
          throw await de_InvalidArnExceptionRes(parsedOutput, context);
        case "KMSInternalException":
        case "com.amazonaws.kms#KMSInternalException":
          throw await de_KMSInternalExceptionRes(parsedOutput, context);
        case "KMSInvalidStateException":
        case "com.amazonaws.kms#KMSInvalidStateException":
          throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
        case "NotFoundException":
        case "com.amazonaws.kms#NotFoundException":
          throw await de_NotFoundExceptionRes(parsedOutput, context);
        case "CloudHsmClusterInvalidConfigurationException":
        case "com.amazonaws.kms#CloudHsmClusterInvalidConfigurationException":
          throw await de_CloudHsmClusterInvalidConfigurationExceptionRes(parsedOutput, context);
        case "CloudHsmClusterNotActiveException":
        case "com.amazonaws.kms#CloudHsmClusterNotActiveException":
          throw await de_CloudHsmClusterNotActiveExceptionRes(parsedOutput, context);
        case "CustomKeyStoreInvalidStateException":
        case "com.amazonaws.kms#CustomKeyStoreInvalidStateException":
          throw await de_CustomKeyStoreInvalidStateExceptionRes(parsedOutput, context);
        case "CustomKeyStoreNotFoundException":
        case "com.amazonaws.kms#CustomKeyStoreNotFoundException":
          throw await de_CustomKeyStoreNotFoundExceptionRes(parsedOutput, context);
        case "AlreadyExistsException":
        case "com.amazonaws.kms#AlreadyExistsException":
          throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
        case "InvalidAliasNameException":
        case "com.amazonaws.kms#InvalidAliasNameException":
          throw await de_InvalidAliasNameExceptionRes(parsedOutput, context);
        case "LimitExceededException":
        case "com.amazonaws.kms#LimitExceededException":
          throw await de_LimitExceededExceptionRes(parsedOutput, context);
        case "CloudHsmClusterInUseException":
        case "com.amazonaws.kms#CloudHsmClusterInUseException":
          throw await de_CloudHsmClusterInUseExceptionRes(parsedOutput, context);
        case "CloudHsmClusterNotFoundException":
        case "com.amazonaws.kms#CloudHsmClusterNotFoundException":
          throw await de_CloudHsmClusterNotFoundExceptionRes(parsedOutput, context);
        case "CustomKeyStoreNameInUseException":
        case "com.amazonaws.kms#CustomKeyStoreNameInUseException":
          throw await de_CustomKeyStoreNameInUseExceptionRes(parsedOutput, context);
        case "IncorrectTrustAnchorException":
        case "com.amazonaws.kms#IncorrectTrustAnchorException":
          throw await de_IncorrectTrustAnchorExceptionRes(parsedOutput, context);
        case "XksProxyIncorrectAuthenticationCredentialException":
        case "com.amazonaws.kms#XksProxyIncorrectAuthenticationCredentialException":
          throw await de_XksProxyIncorrectAuthenticationCredentialExceptionRes(parsedOutput, context);
        case "XksProxyInvalidConfigurationException":
        case "com.amazonaws.kms#XksProxyInvalidConfigurationException":
          throw await de_XksProxyInvalidConfigurationExceptionRes(parsedOutput, context);
        case "XksProxyInvalidResponseException":
        case "com.amazonaws.kms#XksProxyInvalidResponseException":
          throw await de_XksProxyInvalidResponseExceptionRes(parsedOutput, context);
        case "XksProxyUriEndpointInUseException":
        case "com.amazonaws.kms#XksProxyUriEndpointInUseException":
          throw await de_XksProxyUriEndpointInUseExceptionRes(parsedOutput, context);
        case "XksProxyUriInUseException":
        case "com.amazonaws.kms#XksProxyUriInUseException":
          throw await de_XksProxyUriInUseExceptionRes(parsedOutput, context);
        case "XksProxyUriUnreachableException":
        case "com.amazonaws.kms#XksProxyUriUnreachableException":
          throw await de_XksProxyUriUnreachableExceptionRes(parsedOutput, context);
        case "XksProxyVpcEndpointServiceInUseException":
        case "com.amazonaws.kms#XksProxyVpcEndpointServiceInUseException":
          throw await de_XksProxyVpcEndpointServiceInUseExceptionRes(parsedOutput, context);
        case "XksProxyVpcEndpointServiceInvalidConfigurationException":
        case "com.amazonaws.kms#XksProxyVpcEndpointServiceInvalidConfigurationException":
          throw await de_XksProxyVpcEndpointServiceInvalidConfigurationExceptionRes(parsedOutput, context);
        case "XksProxyVpcEndpointServiceNotFoundException":
        case "com.amazonaws.kms#XksProxyVpcEndpointServiceNotFoundException":
          throw await de_XksProxyVpcEndpointServiceNotFoundExceptionRes(parsedOutput, context);
        case "DisabledException":
        case "com.amazonaws.kms#DisabledException":
          throw await de_DisabledExceptionRes(parsedOutput, context);
        case "DryRunOperationException":
        case "com.amazonaws.kms#DryRunOperationException":
          throw await de_DryRunOperationExceptionRes(parsedOutput, context);
        case "InvalidGrantTokenException":
        case "com.amazonaws.kms#InvalidGrantTokenException":
          throw await de_InvalidGrantTokenExceptionRes(parsedOutput, context);
        case "MalformedPolicyDocumentException":
        case "com.amazonaws.kms#MalformedPolicyDocumentException":
          throw await de_MalformedPolicyDocumentExceptionRes2(parsedOutput, context);
        case "TagException":
        case "com.amazonaws.kms#TagException":
          throw await de_TagExceptionRes(parsedOutput, context);
        case "UnsupportedOperationException":
        case "com.amazonaws.kms#UnsupportedOperationException":
          throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
        case "XksKeyAlreadyInUseException":
        case "com.amazonaws.kms#XksKeyAlreadyInUseException":
          throw await de_XksKeyAlreadyInUseExceptionRes(parsedOutput, context);
        case "XksKeyInvalidConfigurationException":
        case "com.amazonaws.kms#XksKeyInvalidConfigurationException":
          throw await de_XksKeyInvalidConfigurationExceptionRes(parsedOutput, context);
        case "XksKeyNotFoundException":
        case "com.amazonaws.kms#XksKeyNotFoundException":
          throw await de_XksKeyNotFoundExceptionRes(parsedOutput, context);
        case "IncorrectKeyException":
        case "com.amazonaws.kms#IncorrectKeyException":
          throw await de_IncorrectKeyExceptionRes(parsedOutput, context);
        case "InvalidCiphertextException":
        case "com.amazonaws.kms#InvalidCiphertextException":
          throw await de_InvalidCiphertextExceptionRes(parsedOutput, context);
        case "InvalidKeyUsageException":
        case "com.amazonaws.kms#InvalidKeyUsageException":
          throw await de_InvalidKeyUsageExceptionRes(parsedOutput, context);
        case "KeyUnavailableException":
        case "com.amazonaws.kms#KeyUnavailableException":
          throw await de_KeyUnavailableExceptionRes(parsedOutput, context);
        case "CustomKeyStoreHasCMKsException":
        case "com.amazonaws.kms#CustomKeyStoreHasCMKsException":
          throw await de_CustomKeyStoreHasCMKsExceptionRes(parsedOutput, context);
        case "InvalidMarkerException":
        case "com.amazonaws.kms#InvalidMarkerException":
          throw await de_InvalidMarkerExceptionRes(parsedOutput, context);
        case "ExpiredImportTokenException":
        case "com.amazonaws.kms#ExpiredImportTokenException":
          throw await de_ExpiredImportTokenExceptionRes(parsedOutput, context);
        case "IncorrectKeyMaterialException":
        case "com.amazonaws.kms#IncorrectKeyMaterialException":
          throw await de_IncorrectKeyMaterialExceptionRes(parsedOutput, context);
        case "InvalidImportTokenException":
        case "com.amazonaws.kms#InvalidImportTokenException":
          throw await de_InvalidImportTokenExceptionRes(parsedOutput, context);
        case "InvalidGrantIdException":
        case "com.amazonaws.kms#InvalidGrantIdException":
          throw await de_InvalidGrantIdExceptionRes(parsedOutput, context);
        case "ConflictException":
        case "com.amazonaws.kms#ConflictException":
          throw await de_ConflictExceptionRes(parsedOutput, context);
        case "CloudHsmClusterNotRelatedException":
        case "com.amazonaws.kms#CloudHsmClusterNotRelatedException":
          throw await de_CloudHsmClusterNotRelatedExceptionRes(parsedOutput, context);
        case "KMSInvalidSignatureException":
        case "com.amazonaws.kms#KMSInvalidSignatureException":
          throw await de_KMSInvalidSignatureExceptionRes(parsedOutput, context);
        case "KMSInvalidMacException":
        case "com.amazonaws.kms#KMSInvalidMacException":
          throw await de_KMSInvalidMacExceptionRes(parsedOutput, context);
        default:
          const parsedBody = parsedOutput.body;
          return throwDefaultError3({
            output,
            parsedBody,
            errorCode
          });
      }
    }, "de_CommandError");
    var de_AlreadyExistsExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new AlreadyExistsException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_AlreadyExistsExceptionRes");
    var de_CloudHsmClusterInUseExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new CloudHsmClusterInUseException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_CloudHsmClusterInUseExceptionRes");
    var de_CloudHsmClusterInvalidConfigurationExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new CloudHsmClusterInvalidConfigurationException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_CloudHsmClusterInvalidConfigurationExceptionRes");
    var de_CloudHsmClusterNotActiveExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new CloudHsmClusterNotActiveException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_CloudHsmClusterNotActiveExceptionRes");
    var de_CloudHsmClusterNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new CloudHsmClusterNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_CloudHsmClusterNotFoundExceptionRes");
    var de_CloudHsmClusterNotRelatedExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new CloudHsmClusterNotRelatedException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_CloudHsmClusterNotRelatedExceptionRes");
    var de_ConflictExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ConflictException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ConflictExceptionRes");
    var de_CustomKeyStoreHasCMKsExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new CustomKeyStoreHasCMKsException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_CustomKeyStoreHasCMKsExceptionRes");
    var de_CustomKeyStoreInvalidStateExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new CustomKeyStoreInvalidStateException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_CustomKeyStoreInvalidStateExceptionRes");
    var de_CustomKeyStoreNameInUseExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new CustomKeyStoreNameInUseException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_CustomKeyStoreNameInUseExceptionRes");
    var de_CustomKeyStoreNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new CustomKeyStoreNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_CustomKeyStoreNotFoundExceptionRes");
    var de_DependencyTimeoutExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new DependencyTimeoutException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_DependencyTimeoutExceptionRes");
    var de_DisabledExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new DisabledException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_DisabledExceptionRes");
    var de_DryRunOperationExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new DryRunOperationException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_DryRunOperationExceptionRes");
    var de_ExpiredImportTokenExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ExpiredImportTokenException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ExpiredImportTokenExceptionRes");
    var de_IncorrectKeyExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new IncorrectKeyException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_IncorrectKeyExceptionRes");
    var de_IncorrectKeyMaterialExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new IncorrectKeyMaterialException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_IncorrectKeyMaterialExceptionRes");
    var de_IncorrectTrustAnchorExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new IncorrectTrustAnchorException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_IncorrectTrustAnchorExceptionRes");
    var de_InvalidAliasNameExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidAliasNameException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidAliasNameExceptionRes");
    var de_InvalidArnExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidArnException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidArnExceptionRes");
    var de_InvalidCiphertextExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidCiphertextException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidCiphertextExceptionRes");
    var de_InvalidGrantIdExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidGrantIdException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidGrantIdExceptionRes");
    var de_InvalidGrantTokenExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidGrantTokenException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidGrantTokenExceptionRes");
    var de_InvalidImportTokenExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidImportTokenException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidImportTokenExceptionRes");
    var de_InvalidKeyUsageExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidKeyUsageException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidKeyUsageExceptionRes");
    var de_InvalidMarkerExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidMarkerException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidMarkerExceptionRes");
    var de_KeyUnavailableExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new KeyUnavailableException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_KeyUnavailableExceptionRes");
    var de_KMSInternalExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new KMSInternalException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_KMSInternalExceptionRes");
    var de_KMSInvalidMacExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new KMSInvalidMacException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_KMSInvalidMacExceptionRes");
    var de_KMSInvalidSignatureExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new KMSInvalidSignatureException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_KMSInvalidSignatureExceptionRes");
    var de_KMSInvalidStateExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new KMSInvalidStateException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_KMSInvalidStateExceptionRes");
    var de_LimitExceededExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new LimitExceededException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_LimitExceededExceptionRes");
    var de_MalformedPolicyDocumentExceptionRes2 = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new MalformedPolicyDocumentException2({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_MalformedPolicyDocumentExceptionRes");
    var de_NotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new NotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_NotFoundExceptionRes");
    var de_TagExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new TagException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_TagExceptionRes");
    var de_UnsupportedOperationExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new UnsupportedOperationException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_UnsupportedOperationExceptionRes");
    var de_XksKeyAlreadyInUseExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new XksKeyAlreadyInUseException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_XksKeyAlreadyInUseExceptionRes");
    var de_XksKeyInvalidConfigurationExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new XksKeyInvalidConfigurationException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_XksKeyInvalidConfigurationExceptionRes");
    var de_XksKeyNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new XksKeyNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_XksKeyNotFoundExceptionRes");
    var de_XksProxyIncorrectAuthenticationCredentialExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new XksProxyIncorrectAuthenticationCredentialException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_XksProxyIncorrectAuthenticationCredentialExceptionRes");
    var de_XksProxyInvalidConfigurationExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new XksProxyInvalidConfigurationException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_XksProxyInvalidConfigurationExceptionRes");
    var de_XksProxyInvalidResponseExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new XksProxyInvalidResponseException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_XksProxyInvalidResponseExceptionRes");
    var de_XksProxyUriEndpointInUseExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new XksProxyUriEndpointInUseException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_XksProxyUriEndpointInUseExceptionRes");
    var de_XksProxyUriInUseExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new XksProxyUriInUseException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_XksProxyUriInUseExceptionRes");
    var de_XksProxyUriUnreachableExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new XksProxyUriUnreachableException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_XksProxyUriUnreachableExceptionRes");
    var de_XksProxyVpcEndpointServiceInUseExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new XksProxyVpcEndpointServiceInUseException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_XksProxyVpcEndpointServiceInUseExceptionRes");
    var de_XksProxyVpcEndpointServiceInvalidConfigurationExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new XksProxyVpcEndpointServiceInvalidConfigurationException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_XksProxyVpcEndpointServiceInvalidConfigurationExceptionRes");
    var de_XksProxyVpcEndpointServiceNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new XksProxyVpcEndpointServiceNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_XksProxyVpcEndpointServiceNotFoundExceptionRes");
    var se_DecryptRequest = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        CiphertextBlob: context.base64Encoder,
        DryRun: [],
        EncryptionAlgorithm: [],
        EncryptionContext: import_smithy_client28._json,
        GrantTokens: import_smithy_client28._json,
        KeyId: [],
        Recipient: /* @__PURE__ */ __name2((_3) => se_RecipientInfo(_3, context), "Recipient")
      });
    }, "se_DecryptRequest");
    var se_DeriveSharedSecretRequest = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        DryRun: [],
        GrantTokens: import_smithy_client28._json,
        KeyAgreementAlgorithm: [],
        KeyId: [],
        PublicKey: context.base64Encoder,
        Recipient: /* @__PURE__ */ __name2((_3) => se_RecipientInfo(_3, context), "Recipient")
      });
    }, "se_DeriveSharedSecretRequest");
    var se_EncryptRequest = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        DryRun: [],
        EncryptionAlgorithm: [],
        EncryptionContext: import_smithy_client28._json,
        GrantTokens: import_smithy_client28._json,
        KeyId: [],
        Plaintext: context.base64Encoder
      });
    }, "se_EncryptRequest");
    var se_GenerateDataKeyPairRequest = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        DryRun: [],
        EncryptionContext: import_smithy_client28._json,
        GrantTokens: import_smithy_client28._json,
        KeyId: [],
        KeyPairSpec: [],
        Recipient: /* @__PURE__ */ __name2((_3) => se_RecipientInfo(_3, context), "Recipient")
      });
    }, "se_GenerateDataKeyPairRequest");
    var se_GenerateDataKeyRequest = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        DryRun: [],
        EncryptionContext: import_smithy_client28._json,
        GrantTokens: import_smithy_client28._json,
        KeyId: [],
        KeySpec: [],
        NumberOfBytes: [],
        Recipient: /* @__PURE__ */ __name2((_3) => se_RecipientInfo(_3, context), "Recipient")
      });
    }, "se_GenerateDataKeyRequest");
    var se_GenerateMacRequest = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        DryRun: [],
        GrantTokens: import_smithy_client28._json,
        KeyId: [],
        MacAlgorithm: [],
        Message: context.base64Encoder
      });
    }, "se_GenerateMacRequest");
    var se_GenerateRandomRequest = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        CustomKeyStoreId: [],
        NumberOfBytes: [],
        Recipient: /* @__PURE__ */ __name2((_3) => se_RecipientInfo(_3, context), "Recipient")
      });
    }, "se_GenerateRandomRequest");
    var se_ImportKeyMaterialRequest = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        EncryptedKeyMaterial: context.base64Encoder,
        ExpirationModel: [],
        ImportToken: context.base64Encoder,
        ImportType: [],
        KeyId: [],
        KeyMaterialDescription: [],
        KeyMaterialId: [],
        ValidTo: /* @__PURE__ */ __name2((_3) => _3.getTime() / 1e3, "ValidTo")
      });
    }, "se_ImportKeyMaterialRequest");
    var se_RecipientInfo = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        AttestationDocument: context.base64Encoder,
        KeyEncryptionAlgorithm: []
      });
    }, "se_RecipientInfo");
    var se_ReEncryptRequest = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        CiphertextBlob: context.base64Encoder,
        DestinationEncryptionAlgorithm: [],
        DestinationEncryptionContext: import_smithy_client28._json,
        DestinationKeyId: [],
        DryRun: [],
        GrantTokens: import_smithy_client28._json,
        SourceEncryptionAlgorithm: [],
        SourceEncryptionContext: import_smithy_client28._json,
        SourceKeyId: []
      });
    }, "se_ReEncryptRequest");
    var se_SignRequest = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        DryRun: [],
        GrantTokens: import_smithy_client28._json,
        KeyId: [],
        Message: context.base64Encoder,
        MessageType: [],
        SigningAlgorithm: []
      });
    }, "se_SignRequest");
    var se_VerifyMacRequest = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        DryRun: [],
        GrantTokens: import_smithy_client28._json,
        KeyId: [],
        Mac: context.base64Encoder,
        MacAlgorithm: [],
        Message: context.base64Encoder
      });
    }, "se_VerifyMacRequest");
    var se_VerifyRequest = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        DryRun: [],
        GrantTokens: import_smithy_client28._json,
        KeyId: [],
        Message: context.base64Encoder,
        MessageType: [],
        Signature: context.base64Encoder,
        SigningAlgorithm: []
      });
    }, "se_VerifyRequest");
    var de_AliasList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_AliasListEntry(entry, context);
      });
      return retVal;
    }, "de_AliasList");
    var de_AliasListEntry = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        AliasArn: import_smithy_client28.expectString,
        AliasName: import_smithy_client28.expectString,
        CreationDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "CreationDate"),
        LastUpdatedDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "LastUpdatedDate"),
        TargetKeyId: import_smithy_client28.expectString
      });
    }, "de_AliasListEntry");
    var de_CreateKeyResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        KeyMetadata: /* @__PURE__ */ __name2((_3) => de_KeyMetadata(_3, context), "KeyMetadata")
      });
    }, "de_CreateKeyResponse");
    var de_CustomKeyStoresList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_CustomKeyStoresListEntry(entry, context);
      });
      return retVal;
    }, "de_CustomKeyStoresList");
    var de_CustomKeyStoresListEntry = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        CloudHsmClusterId: import_smithy_client28.expectString,
        ConnectionErrorCode: import_smithy_client28.expectString,
        ConnectionState: import_smithy_client28.expectString,
        CreationDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "CreationDate"),
        CustomKeyStoreId: import_smithy_client28.expectString,
        CustomKeyStoreName: import_smithy_client28.expectString,
        CustomKeyStoreType: import_smithy_client28.expectString,
        TrustAnchorCertificate: import_smithy_client28.expectString,
        XksProxyConfiguration: import_smithy_client28._json
      });
    }, "de_CustomKeyStoresListEntry");
    var de_DecryptResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        CiphertextForRecipient: context.base64Decoder,
        EncryptionAlgorithm: import_smithy_client28.expectString,
        KeyId: import_smithy_client28.expectString,
        KeyMaterialId: import_smithy_client28.expectString,
        Plaintext: context.base64Decoder
      });
    }, "de_DecryptResponse");
    var de_DeriveSharedSecretResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        CiphertextForRecipient: context.base64Decoder,
        KeyAgreementAlgorithm: import_smithy_client28.expectString,
        KeyId: import_smithy_client28.expectString,
        KeyOrigin: import_smithy_client28.expectString,
        SharedSecret: context.base64Decoder
      });
    }, "de_DeriveSharedSecretResponse");
    var de_DescribeCustomKeyStoresResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        CustomKeyStores: /* @__PURE__ */ __name2((_3) => de_CustomKeyStoresList(_3, context), "CustomKeyStores"),
        NextMarker: import_smithy_client28.expectString,
        Truncated: import_smithy_client28.expectBoolean
      });
    }, "de_DescribeCustomKeyStoresResponse");
    var de_DescribeKeyResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        KeyMetadata: /* @__PURE__ */ __name2((_3) => de_KeyMetadata(_3, context), "KeyMetadata")
      });
    }, "de_DescribeKeyResponse");
    var de_EncryptResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        CiphertextBlob: context.base64Decoder,
        EncryptionAlgorithm: import_smithy_client28.expectString,
        KeyId: import_smithy_client28.expectString
      });
    }, "de_EncryptResponse");
    var de_GenerateDataKeyPairResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        CiphertextForRecipient: context.base64Decoder,
        KeyId: import_smithy_client28.expectString,
        KeyMaterialId: import_smithy_client28.expectString,
        KeyPairSpec: import_smithy_client28.expectString,
        PrivateKeyCiphertextBlob: context.base64Decoder,
        PrivateKeyPlaintext: context.base64Decoder,
        PublicKey: context.base64Decoder
      });
    }, "de_GenerateDataKeyPairResponse");
    var de_GenerateDataKeyPairWithoutPlaintextResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        KeyId: import_smithy_client28.expectString,
        KeyMaterialId: import_smithy_client28.expectString,
        KeyPairSpec: import_smithy_client28.expectString,
        PrivateKeyCiphertextBlob: context.base64Decoder,
        PublicKey: context.base64Decoder
      });
    }, "de_GenerateDataKeyPairWithoutPlaintextResponse");
    var de_GenerateDataKeyResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        CiphertextBlob: context.base64Decoder,
        CiphertextForRecipient: context.base64Decoder,
        KeyId: import_smithy_client28.expectString,
        KeyMaterialId: import_smithy_client28.expectString,
        Plaintext: context.base64Decoder
      });
    }, "de_GenerateDataKeyResponse");
    var de_GenerateDataKeyWithoutPlaintextResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        CiphertextBlob: context.base64Decoder,
        KeyId: import_smithy_client28.expectString,
        KeyMaterialId: import_smithy_client28.expectString
      });
    }, "de_GenerateDataKeyWithoutPlaintextResponse");
    var de_GenerateMacResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        KeyId: import_smithy_client28.expectString,
        Mac: context.base64Decoder,
        MacAlgorithm: import_smithy_client28.expectString
      });
    }, "de_GenerateMacResponse");
    var de_GenerateRandomResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        CiphertextForRecipient: context.base64Decoder,
        Plaintext: context.base64Decoder
      });
    }, "de_GenerateRandomResponse");
    var de_GetKeyRotationStatusResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        KeyId: import_smithy_client28.expectString,
        KeyRotationEnabled: import_smithy_client28.expectBoolean,
        NextRotationDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "NextRotationDate"),
        OnDemandRotationStartDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "OnDemandRotationStartDate"),
        RotationPeriodInDays: import_smithy_client28.expectInt32
      });
    }, "de_GetKeyRotationStatusResponse");
    var de_GetParametersForImportResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        ImportToken: context.base64Decoder,
        KeyId: import_smithy_client28.expectString,
        ParametersValidTo: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "ParametersValidTo"),
        PublicKey: context.base64Decoder
      });
    }, "de_GetParametersForImportResponse");
    var de_GetPublicKeyResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        CustomerMasterKeySpec: import_smithy_client28.expectString,
        EncryptionAlgorithms: import_smithy_client28._json,
        KeyAgreementAlgorithms: import_smithy_client28._json,
        KeyId: import_smithy_client28.expectString,
        KeySpec: import_smithy_client28.expectString,
        KeyUsage: import_smithy_client28.expectString,
        PublicKey: context.base64Decoder,
        SigningAlgorithms: import_smithy_client28._json
      });
    }, "de_GetPublicKeyResponse");
    var de_GrantList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_GrantListEntry(entry, context);
      });
      return retVal;
    }, "de_GrantList");
    var de_GrantListEntry = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        Constraints: import_smithy_client28._json,
        CreationDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "CreationDate"),
        GrantId: import_smithy_client28.expectString,
        GranteePrincipal: import_smithy_client28.expectString,
        IssuingAccount: import_smithy_client28.expectString,
        KeyId: import_smithy_client28.expectString,
        Name: import_smithy_client28.expectString,
        Operations: import_smithy_client28._json,
        RetiringPrincipal: import_smithy_client28.expectString
      });
    }, "de_GrantListEntry");
    var de_KeyMetadata = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        AWSAccountId: import_smithy_client28.expectString,
        Arn: import_smithy_client28.expectString,
        CloudHsmClusterId: import_smithy_client28.expectString,
        CreationDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "CreationDate"),
        CurrentKeyMaterialId: import_smithy_client28.expectString,
        CustomKeyStoreId: import_smithy_client28.expectString,
        CustomerMasterKeySpec: import_smithy_client28.expectString,
        DeletionDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "DeletionDate"),
        Description: import_smithy_client28.expectString,
        Enabled: import_smithy_client28.expectBoolean,
        EncryptionAlgorithms: import_smithy_client28._json,
        ExpirationModel: import_smithy_client28.expectString,
        KeyAgreementAlgorithms: import_smithy_client28._json,
        KeyId: import_smithy_client28.expectString,
        KeyManager: import_smithy_client28.expectString,
        KeySpec: import_smithy_client28.expectString,
        KeyState: import_smithy_client28.expectString,
        KeyUsage: import_smithy_client28.expectString,
        MacAlgorithms: import_smithy_client28._json,
        MultiRegion: import_smithy_client28.expectBoolean,
        MultiRegionConfiguration: import_smithy_client28._json,
        Origin: import_smithy_client28.expectString,
        PendingDeletionWindowInDays: import_smithy_client28.expectInt32,
        SigningAlgorithms: import_smithy_client28._json,
        ValidTo: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "ValidTo"),
        XksKeyConfiguration: import_smithy_client28._json
      });
    }, "de_KeyMetadata");
    var de_ListAliasesResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        Aliases: /* @__PURE__ */ __name2((_3) => de_AliasList(_3, context), "Aliases"),
        NextMarker: import_smithy_client28.expectString,
        Truncated: import_smithy_client28.expectBoolean
      });
    }, "de_ListAliasesResponse");
    var de_ListGrantsResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        Grants: /* @__PURE__ */ __name2((_3) => de_GrantList(_3, context), "Grants"),
        NextMarker: import_smithy_client28.expectString,
        Truncated: import_smithy_client28.expectBoolean
      });
    }, "de_ListGrantsResponse");
    var de_ListKeyRotationsResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        NextMarker: import_smithy_client28.expectString,
        Rotations: /* @__PURE__ */ __name2((_3) => de_RotationsList(_3, context), "Rotations"),
        Truncated: import_smithy_client28.expectBoolean
      });
    }, "de_ListKeyRotationsResponse");
    var de_ReEncryptResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        CiphertextBlob: context.base64Decoder,
        DestinationEncryptionAlgorithm: import_smithy_client28.expectString,
        DestinationKeyMaterialId: import_smithy_client28.expectString,
        KeyId: import_smithy_client28.expectString,
        SourceEncryptionAlgorithm: import_smithy_client28.expectString,
        SourceKeyId: import_smithy_client28.expectString,
        SourceKeyMaterialId: import_smithy_client28.expectString
      });
    }, "de_ReEncryptResponse");
    var de_ReplicateKeyResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        ReplicaKeyMetadata: /* @__PURE__ */ __name2((_3) => de_KeyMetadata(_3, context), "ReplicaKeyMetadata"),
        ReplicaPolicy: import_smithy_client28.expectString,
        ReplicaTags: import_smithy_client28._json
      });
    }, "de_ReplicateKeyResponse");
    var de_RotationsList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_RotationsListEntry(entry, context);
      });
      return retVal;
    }, "de_RotationsList");
    var de_RotationsListEntry = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        ExpirationModel: import_smithy_client28.expectString,
        ImportState: import_smithy_client28.expectString,
        KeyId: import_smithy_client28.expectString,
        KeyMaterialDescription: import_smithy_client28.expectString,
        KeyMaterialId: import_smithy_client28.expectString,
        KeyMaterialState: import_smithy_client28.expectString,
        RotationDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "RotationDate"),
        RotationType: import_smithy_client28.expectString,
        ValidTo: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "ValidTo")
      });
    }, "de_RotationsListEntry");
    var de_ScheduleKeyDeletionResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        DeletionDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "DeletionDate"),
        KeyId: import_smithy_client28.expectString,
        KeyState: import_smithy_client28.expectString,
        PendingWindowInDays: import_smithy_client28.expectInt32
      });
    }, "de_ScheduleKeyDeletionResponse");
    var de_SignResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        KeyId: import_smithy_client28.expectString,
        Signature: context.base64Decoder,
        SigningAlgorithm: import_smithy_client28.expectString
      });
    }, "de_SignResponse");
    var deserializeMetadata3 = /* @__PURE__ */ __name2((output) => ({
      httpStatusCode: output.statusCode,
      requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
      extendedRequestId: output.headers["x-amz-id-2"],
      cfId: output.headers["x-amz-cf-id"]
    }), "deserializeMetadata");
    var throwDefaultError3 = (0, import_smithy_client28.withBaseException)(KMSServiceException);
    var buildHttpRpcRequest2 = /* @__PURE__ */ __name2(async (context, headers, path38, resolvedHostname, body) => {
      const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
      const contents = {
        protocol,
        hostname,
        port,
        method: "POST",
        path: basePath.endsWith("/") ? basePath.slice(0, -1) + path38 : basePath + path38,
        headers
      };
      if (resolvedHostname !== void 0) {
        contents.hostname = resolvedHostname;
      }
      if (body !== void 0) {
        contents.body = body;
      }
      return new import_protocol_http16.HttpRequest(contents);
    }, "buildHttpRpcRequest");
    function sharedHeaders(operation) {
      return {
        "content-type": "application/x-amz-json-1.1",
        "x-amz-target": `TrentService.${operation}`
      };
    }
    __name(sharedHeaders, "sharedHeaders");
    __name2(sharedHeaders, "sharedHeaders");
    var CancelKeyDeletionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("TrentService", "CancelKeyDeletion", {}).n("KMSClient", "CancelKeyDeletionCommand").f(void 0, void 0).ser(se_CancelKeyDeletionCommand).de(de_CancelKeyDeletionCommand).build() {
      static {
        __name(this, "CancelKeyDeletionCommand");
      }
      static {
        __name2(this, "CancelKeyDeletionCommand");
      }
    };
    var ConnectCustomKeyStoreCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("TrentService", "ConnectCustomKeyStore", {}).n("KMSClient", "ConnectCustomKeyStoreCommand").f(void 0, void 0).ser(se_ConnectCustomKeyStoreCommand).de(de_ConnectCustomKeyStoreCommand).build() {
      static {
        __name(this, "ConnectCustomKeyStoreCommand");
      }
      static {
        __name2(this, "ConnectCustomKeyStoreCommand");
      }
    };
    var CreateAliasCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("TrentService", "CreateAlias", {}).n("KMSClient", "CreateAliasCommand").f(void 0, void 0).ser(se_CreateAliasCommand).de(de_CreateAliasCommand).build() {
      static {
        __name(this, "CreateAliasCommand");
      }
      static {
        __name2(this, "CreateAliasCommand");
      }
    };
    var CreateCustomKeyStoreCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("TrentService", "CreateCustomKeyStore", {}).n("KMSClient", "CreateCustomKeyStoreCommand").f(CreateCustomKeyStoreRequestFilterSensitiveLog, void 0).ser(se_CreateCustomKeyStoreCommand).de(de_CreateCustomKeyStoreCommand).build() {
      static {
        __name(this, "CreateCustomKeyStoreCommand");
      }
      static {
        __name2(this, "CreateCustomKeyStoreCommand");
      }
    };
    var CreateGrantCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("TrentService", "CreateGrant", {}).n("KMSClient", "CreateGrantCommand").f(void 0, void 0).ser(se_CreateGrantCommand).de(de_CreateGrantCommand).build() {
      static {
        __name(this, "CreateGrantCommand");
      }
      static {
        __name2(this, "CreateGrantCommand");
      }
    };
    var CreateKeyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("TrentService", "CreateKey", {}).n("KMSClient", "CreateKeyCommand").f(void 0, void 0).ser(se_CreateKeyCommand).de(de_CreateKeyCommand).build() {
      static {
        __name(this, "CreateKeyCommand");
      }
      static {
        __name2(this, "CreateKeyCommand");
      }
    };
    var DecryptCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("TrentService", "Decrypt", {}).n("KMSClient", "DecryptCommand").f(void 0, DecryptResponseFilterSensitiveLog).ser(se_DecryptCommand).de(de_DecryptCommand).build() {
      static {
        __name(this, "DecryptCommand");
      }
      static {
        __name2(this, "DecryptCommand");
      }
    };
    var DeleteAliasCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("TrentService", "DeleteAlias", {}).n("KMSClient", "DeleteAliasCommand").f(void 0, void 0).ser(se_DeleteAliasCommand).de(de_DeleteAliasCommand).build() {
      static {
        __name(this, "DeleteAliasCommand");
      }
      static {
        __name2(this, "DeleteAliasCommand");
      }
    };
    var DeleteCustomKeyStoreCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("TrentService", "DeleteCustomKeyStore", {}).n("KMSClient", "DeleteCustomKeyStoreCommand").f(void 0, void 0).ser(se_DeleteCustomKeyStoreCommand).de(de_DeleteCustomKeyStoreCommand).build() {
      static {
        __name(this, "DeleteCustomKeyStoreCommand");
      }
      static {
        __name2(this, "DeleteCustomKeyStoreCommand");
      }
    };
    var DeleteImportedKeyMaterialCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("TrentService", "DeleteImportedKeyMaterial", {}).n("KMSClient", "DeleteImportedKeyMaterialCommand").f(void 0, void 0).ser(se_DeleteImportedKeyMaterialCommand).de(de_DeleteImportedKeyMaterialCommand).build() {
      static {
        __name(this, "DeleteImportedKeyMaterialCommand");
      }
      static {
        __name2(this, "DeleteImportedKeyMaterialCommand");
      }
    };
    var DeriveSharedSecretCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("TrentService", "DeriveSharedSecret", {}).n("KMSClient", "DeriveSharedSecretCommand").f(void 0, DeriveSharedSecretResponseFilterSensitiveLog).ser(se_DeriveSharedSecretCommand).de(de_DeriveSharedSecretCommand).build() {
      static {
        __name(this, "DeriveSharedSecretCommand");
      }
      static {
        __name2(this, "DeriveSharedSecretCommand");
      }
    };
    var DescribeCustomKeyStoresCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("TrentService", "DescribeCustomKeyStores", {}).n("KMSClient", "DescribeCustomKeyStoresCommand").f(void 0, DescribeCustomKeyStoresResponseFilterSensitiveLog).ser(se_DescribeCustomKeyStoresCommand).de(de_DescribeCustomKeyStoresCommand).build() {
      static {
        __name(this, "DescribeCustomKeyStoresCommand");
      }
      static {
        __name2(this, "DescribeCustomKeyStoresCommand");
      }
    };
    var DescribeKeyCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("TrentService", "DescribeKey", {}).n("KMSClient", "DescribeKeyCommand").f(void 0, void 0).ser(se_DescribeKeyCommand).de(de_DescribeKeyCommand).build() {
      static {
        __name(this, "DescribeKeyCommand");
      }
      static {
        __name2(this, "DescribeKeyCommand");
      }
    };
    var DisableKeyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("TrentService", "DisableKey", {}).n("KMSClient", "DisableKeyCommand").f(void 0, void 0).ser(se_DisableKeyCommand).de(de_DisableKeyCommand).build() {
      static {
        __name(this, "DisableKeyCommand");
      }
      static {
        __name2(this, "DisableKeyCommand");
      }
    };
    var DisableKeyRotationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("TrentService", "DisableKeyRotation", {}).n("KMSClient", "DisableKeyRotationCommand").f(void 0, void 0).ser(se_DisableKeyRotationCommand).de(de_DisableKeyRotationCommand).build() {
      static {
        __name(this, "DisableKeyRotationCommand");
      }
      static {
        __name2(this, "DisableKeyRotationCommand");
      }
    };
    var DisconnectCustomKeyStoreCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("TrentService", "DisconnectCustomKeyStore", {}).n("KMSClient", "DisconnectCustomKeyStoreCommand").f(void 0, void 0).ser(se_DisconnectCustomKeyStoreCommand).de(de_DisconnectCustomKeyStoreCommand).build() {
      static {
        __name(this, "DisconnectCustomKeyStoreCommand");
      }
      static {
        __name2(this, "DisconnectCustomKeyStoreCommand");
      }
    };
    var EnableKeyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("TrentService", "EnableKey", {}).n("KMSClient", "EnableKeyCommand").f(void 0, void 0).ser(se_EnableKeyCommand).de(de_EnableKeyCommand).build() {
      static {
        __name(this, "EnableKeyCommand");
      }
      static {
        __name2(this, "EnableKeyCommand");
      }
    };
    var EnableKeyRotationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("TrentService", "EnableKeyRotation", {}).n("KMSClient", "EnableKeyRotationCommand").f(void 0, void 0).ser(se_EnableKeyRotationCommand).de(de_EnableKeyRotationCommand).build() {
      static {
        __name(this, "EnableKeyRotationCommand");
      }
      static {
        __name2(this, "EnableKeyRotationCommand");
      }
    };
    var EncryptCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("TrentService", "Encrypt", {}).n("KMSClient", "EncryptCommand").f(EncryptRequestFilterSensitiveLog, void 0).ser(se_EncryptCommand).de(de_EncryptCommand).build() {
      static {
        __name(this, "EncryptCommand");
      }
      static {
        __name2(this, "EncryptCommand");
      }
    };
    var GenerateDataKeyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("TrentService", "GenerateDataKey", {}).n("KMSClient", "GenerateDataKeyCommand").f(void 0, GenerateDataKeyResponseFilterSensitiveLog).ser(se_GenerateDataKeyCommand).de(de_GenerateDataKeyCommand).build() {
      static {
        __name(this, "GenerateDataKeyCommand");
      }
      static {
        __name2(this, "GenerateDataKeyCommand");
      }
    };
    var GenerateDataKeyPairCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("TrentService", "GenerateDataKeyPair", {}).n("KMSClient", "GenerateDataKeyPairCommand").f(void 0, GenerateDataKeyPairResponseFilterSensitiveLog).ser(se_GenerateDataKeyPairCommand).de(de_GenerateDataKeyPairCommand).build() {
      static {
        __name(this, "GenerateDataKeyPairCommand");
      }
      static {
        __name2(this, "GenerateDataKeyPairCommand");
      }
    };
    var GenerateDataKeyPairWithoutPlaintextCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("TrentService", "GenerateDataKeyPairWithoutPlaintext", {}).n("KMSClient", "GenerateDataKeyPairWithoutPlaintextCommand").f(void 0, void 0).ser(se_GenerateDataKeyPairWithoutPlaintextCommand).de(de_GenerateDataKeyPairWithoutPlaintextCommand).build() {
      static {
        __name(this, "GenerateDataKeyPairWithoutPlaintextCommand");
      }
      static {
        __name2(this, "GenerateDataKeyPairWithoutPlaintextCommand");
      }
    };
    var GenerateDataKeyWithoutPlaintextCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("TrentService", "GenerateDataKeyWithoutPlaintext", {}).n("KMSClient", "GenerateDataKeyWithoutPlaintextCommand").f(void 0, void 0).ser(se_GenerateDataKeyWithoutPlaintextCommand).de(de_GenerateDataKeyWithoutPlaintextCommand).build() {
      static {
        __name(this, "GenerateDataKeyWithoutPlaintextCommand");
      }
      static {
        __name2(this, "GenerateDataKeyWithoutPlaintextCommand");
      }
    };
    var GenerateMacCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("TrentService", "GenerateMac", {}).n("KMSClient", "GenerateMacCommand").f(GenerateMacRequestFilterSensitiveLog, void 0).ser(se_GenerateMacCommand).de(de_GenerateMacCommand).build() {
      static {
        __name(this, "GenerateMacCommand");
      }
      static {
        __name2(this, "GenerateMacCommand");
      }
    };
    var GenerateRandomCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("TrentService", "GenerateRandom", {}).n("KMSClient", "GenerateRandomCommand").f(void 0, GenerateRandomResponseFilterSensitiveLog).ser(se_GenerateRandomCommand).de(de_GenerateRandomCommand).build() {
      static {
        __name(this, "GenerateRandomCommand");
      }
      static {
        __name2(this, "GenerateRandomCommand");
      }
    };
    var GetKeyPolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("TrentService", "GetKeyPolicy", {}).n("KMSClient", "GetKeyPolicyCommand").f(void 0, void 0).ser(se_GetKeyPolicyCommand).de(de_GetKeyPolicyCommand).build() {
      static {
        __name(this, "GetKeyPolicyCommand");
      }
      static {
        __name2(this, "GetKeyPolicyCommand");
      }
    };
    var GetKeyRotationStatusCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("TrentService", "GetKeyRotationStatus", {}).n("KMSClient", "GetKeyRotationStatusCommand").f(void 0, void 0).ser(se_GetKeyRotationStatusCommand).de(de_GetKeyRotationStatusCommand).build() {
      static {
        __name(this, "GetKeyRotationStatusCommand");
      }
      static {
        __name2(this, "GetKeyRotationStatusCommand");
      }
    };
    var GetParametersForImportCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("TrentService", "GetParametersForImport", {}).n("KMSClient", "GetParametersForImportCommand").f(void 0, GetParametersForImportResponseFilterSensitiveLog).ser(se_GetParametersForImportCommand).de(de_GetParametersForImportCommand).build() {
      static {
        __name(this, "GetParametersForImportCommand");
      }
      static {
        __name2(this, "GetParametersForImportCommand");
      }
    };
    var GetPublicKeyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("TrentService", "GetPublicKey", {}).n("KMSClient", "GetPublicKeyCommand").f(void 0, void 0).ser(se_GetPublicKeyCommand).de(de_GetPublicKeyCommand).build() {
      static {
        __name(this, "GetPublicKeyCommand");
      }
      static {
        __name2(this, "GetPublicKeyCommand");
      }
    };
    var ImportKeyMaterialCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("TrentService", "ImportKeyMaterial", {}).n("KMSClient", "ImportKeyMaterialCommand").f(void 0, void 0).ser(se_ImportKeyMaterialCommand).de(de_ImportKeyMaterialCommand).build() {
      static {
        __name(this, "ImportKeyMaterialCommand");
      }
      static {
        __name2(this, "ImportKeyMaterialCommand");
      }
    };
    var ListAliasesCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("TrentService", "ListAliases", {}).n("KMSClient", "ListAliasesCommand").f(void 0, void 0).ser(se_ListAliasesCommand).de(de_ListAliasesCommand).build() {
      static {
        __name(this, "ListAliasesCommand");
      }
      static {
        __name2(this, "ListAliasesCommand");
      }
    };
    var ListGrantsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("TrentService", "ListGrants", {}).n("KMSClient", "ListGrantsCommand").f(void 0, void 0).ser(se_ListGrantsCommand).de(de_ListGrantsCommand).build() {
      static {
        __name(this, "ListGrantsCommand");
      }
      static {
        __name2(this, "ListGrantsCommand");
      }
    };
    var ListKeyPoliciesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("TrentService", "ListKeyPolicies", {}).n("KMSClient", "ListKeyPoliciesCommand").f(void 0, void 0).ser(se_ListKeyPoliciesCommand).de(de_ListKeyPoliciesCommand).build() {
      static {
        __name(this, "ListKeyPoliciesCommand");
      }
      static {
        __name2(this, "ListKeyPoliciesCommand");
      }
    };
    var ListKeyRotationsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("TrentService", "ListKeyRotations", {}).n("KMSClient", "ListKeyRotationsCommand").f(void 0, void 0).ser(se_ListKeyRotationsCommand).de(de_ListKeyRotationsCommand).build() {
      static {
        __name(this, "ListKeyRotationsCommand");
      }
      static {
        __name2(this, "ListKeyRotationsCommand");
      }
    };
    var ListKeysCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("TrentService", "ListKeys", {}).n("KMSClient", "ListKeysCommand").f(void 0, void 0).ser(se_ListKeysCommand).de(de_ListKeysCommand).build() {
      static {
        __name(this, "ListKeysCommand");
      }
      static {
        __name2(this, "ListKeysCommand");
      }
    };
    var ListResourceTagsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("TrentService", "ListResourceTags", {}).n("KMSClient", "ListResourceTagsCommand").f(void 0, void 0).ser(se_ListResourceTagsCommand).de(de_ListResourceTagsCommand).build() {
      static {
        __name(this, "ListResourceTagsCommand");
      }
      static {
        __name2(this, "ListResourceTagsCommand");
      }
    };
    var ListRetirableGrantsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("TrentService", "ListRetirableGrants", {}).n("KMSClient", "ListRetirableGrantsCommand").f(void 0, void 0).ser(se_ListRetirableGrantsCommand).de(de_ListRetirableGrantsCommand).build() {
      static {
        __name(this, "ListRetirableGrantsCommand");
      }
      static {
        __name2(this, "ListRetirableGrantsCommand");
      }
    };
    var PutKeyPolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("TrentService", "PutKeyPolicy", {}).n("KMSClient", "PutKeyPolicyCommand").f(void 0, void 0).ser(se_PutKeyPolicyCommand).de(de_PutKeyPolicyCommand).build() {
      static {
        __name(this, "PutKeyPolicyCommand");
      }
      static {
        __name2(this, "PutKeyPolicyCommand");
      }
    };
    var ReEncryptCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("TrentService", "ReEncrypt", {}).n("KMSClient", "ReEncryptCommand").f(void 0, void 0).ser(se_ReEncryptCommand).de(de_ReEncryptCommand).build() {
      static {
        __name(this, "ReEncryptCommand");
      }
      static {
        __name2(this, "ReEncryptCommand");
      }
    };
    var ReplicateKeyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("TrentService", "ReplicateKey", {}).n("KMSClient", "ReplicateKeyCommand").f(void 0, void 0).ser(se_ReplicateKeyCommand).de(de_ReplicateKeyCommand).build() {
      static {
        __name(this, "ReplicateKeyCommand");
      }
      static {
        __name2(this, "ReplicateKeyCommand");
      }
    };
    var RetireGrantCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("TrentService", "RetireGrant", {}).n("KMSClient", "RetireGrantCommand").f(void 0, void 0).ser(se_RetireGrantCommand).de(de_RetireGrantCommand).build() {
      static {
        __name(this, "RetireGrantCommand");
      }
      static {
        __name2(this, "RetireGrantCommand");
      }
    };
    var RevokeGrantCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("TrentService", "RevokeGrant", {}).n("KMSClient", "RevokeGrantCommand").f(void 0, void 0).ser(se_RevokeGrantCommand).de(de_RevokeGrantCommand).build() {
      static {
        __name(this, "RevokeGrantCommand");
      }
      static {
        __name2(this, "RevokeGrantCommand");
      }
    };
    var RotateKeyOnDemandCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("TrentService", "RotateKeyOnDemand", {}).n("KMSClient", "RotateKeyOnDemandCommand").f(void 0, void 0).ser(se_RotateKeyOnDemandCommand).de(de_RotateKeyOnDemandCommand).build() {
      static {
        __name(this, "RotateKeyOnDemandCommand");
      }
      static {
        __name2(this, "RotateKeyOnDemandCommand");
      }
    };
    var ScheduleKeyDeletionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("TrentService", "ScheduleKeyDeletion", {}).n("KMSClient", "ScheduleKeyDeletionCommand").f(void 0, void 0).ser(se_ScheduleKeyDeletionCommand).de(de_ScheduleKeyDeletionCommand).build() {
      static {
        __name(this, "ScheduleKeyDeletionCommand");
      }
      static {
        __name2(this, "ScheduleKeyDeletionCommand");
      }
    };
    var SignCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("TrentService", "Sign", {}).n("KMSClient", "SignCommand").f(SignRequestFilterSensitiveLog, void 0).ser(se_SignCommand).de(de_SignCommand).build() {
      static {
        __name(this, "SignCommand");
      }
      static {
        __name2(this, "SignCommand");
      }
    };
    var TagResourceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("TrentService", "TagResource", {}).n("KMSClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
      static {
        __name(this, "TagResourceCommand");
      }
      static {
        __name2(this, "TagResourceCommand");
      }
    };
    var UntagResourceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("TrentService", "UntagResource", {}).n("KMSClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
      static {
        __name(this, "UntagResourceCommand");
      }
      static {
        __name2(this, "UntagResourceCommand");
      }
    };
    var UpdateAliasCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("TrentService", "UpdateAlias", {}).n("KMSClient", "UpdateAliasCommand").f(void 0, void 0).ser(se_UpdateAliasCommand).de(de_UpdateAliasCommand).build() {
      static {
        __name(this, "UpdateAliasCommand");
      }
      static {
        __name2(this, "UpdateAliasCommand");
      }
    };
    var UpdateCustomKeyStoreCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("TrentService", "UpdateCustomKeyStore", {}).n("KMSClient", "UpdateCustomKeyStoreCommand").f(UpdateCustomKeyStoreRequestFilterSensitiveLog, void 0).ser(se_UpdateCustomKeyStoreCommand).de(de_UpdateCustomKeyStoreCommand).build() {
      static {
        __name(this, "UpdateCustomKeyStoreCommand");
      }
      static {
        __name2(this, "UpdateCustomKeyStoreCommand");
      }
    };
    var UpdateKeyDescriptionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("TrentService", "UpdateKeyDescription", {}).n("KMSClient", "UpdateKeyDescriptionCommand").f(void 0, void 0).ser(se_UpdateKeyDescriptionCommand).de(de_UpdateKeyDescriptionCommand).build() {
      static {
        __name(this, "UpdateKeyDescriptionCommand");
      }
      static {
        __name2(this, "UpdateKeyDescriptionCommand");
      }
    };
    var UpdatePrimaryRegionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("TrentService", "UpdatePrimaryRegion", {}).n("KMSClient", "UpdatePrimaryRegionCommand").f(void 0, void 0).ser(se_UpdatePrimaryRegionCommand).de(de_UpdatePrimaryRegionCommand).build() {
      static {
        __name(this, "UpdatePrimaryRegionCommand");
      }
      static {
        __name2(this, "UpdatePrimaryRegionCommand");
      }
    };
    var VerifyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("TrentService", "Verify", {}).n("KMSClient", "VerifyCommand").f(VerifyRequestFilterSensitiveLog, void 0).ser(se_VerifyCommand).de(de_VerifyCommand).build() {
      static {
        __name(this, "VerifyCommand");
      }
      static {
        __name2(this, "VerifyCommand");
      }
    };
    var VerifyMacCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("TrentService", "VerifyMac", {}).n("KMSClient", "VerifyMacCommand").f(VerifyMacRequestFilterSensitiveLog, void 0).ser(se_VerifyMacCommand).de(de_VerifyMacCommand).build() {
      static {
        __name(this, "VerifyMacCommand");
      }
      static {
        __name2(this, "VerifyMacCommand");
      }
    };
    var commands3 = {
      CancelKeyDeletionCommand,
      ConnectCustomKeyStoreCommand,
      CreateAliasCommand,
      CreateCustomKeyStoreCommand,
      CreateGrantCommand,
      CreateKeyCommand,
      DecryptCommand,
      DeleteAliasCommand,
      DeleteCustomKeyStoreCommand,
      DeleteImportedKeyMaterialCommand,
      DeriveSharedSecretCommand,
      DescribeCustomKeyStoresCommand,
      DescribeKeyCommand: DescribeKeyCommand2,
      DisableKeyCommand,
      DisableKeyRotationCommand,
      DisconnectCustomKeyStoreCommand,
      EnableKeyCommand,
      EnableKeyRotationCommand,
      EncryptCommand,
      GenerateDataKeyCommand,
      GenerateDataKeyPairCommand,
      GenerateDataKeyPairWithoutPlaintextCommand,
      GenerateDataKeyWithoutPlaintextCommand,
      GenerateMacCommand,
      GenerateRandomCommand,
      GetKeyPolicyCommand,
      GetKeyRotationStatusCommand,
      GetParametersForImportCommand,
      GetPublicKeyCommand,
      ImportKeyMaterialCommand,
      ListAliasesCommand: ListAliasesCommand2,
      ListGrantsCommand,
      ListKeyPoliciesCommand,
      ListKeyRotationsCommand,
      ListKeysCommand,
      ListResourceTagsCommand,
      ListRetirableGrantsCommand,
      PutKeyPolicyCommand,
      ReEncryptCommand,
      ReplicateKeyCommand,
      RetireGrantCommand,
      RevokeGrantCommand,
      RotateKeyOnDemandCommand,
      ScheduleKeyDeletionCommand,
      SignCommand,
      TagResourceCommand,
      UntagResourceCommand,
      UpdateAliasCommand: UpdateAliasCommand2,
      UpdateCustomKeyStoreCommand,
      UpdateKeyDescriptionCommand,
      UpdatePrimaryRegionCommand,
      VerifyCommand,
      VerifyMacCommand
    };
    var KMS = class extends KMSClient2 {
      static {
        __name(this, "KMS");
      }
      static {
        __name2(this, "KMS");
      }
    };
    (0, import_smithy_client28.createAggregatedClient)(commands3, KMS);
    var paginateDescribeCustomKeyStores = (0, import_core17.createPaginator)(KMSClient2, DescribeCustomKeyStoresCommand, "Marker", "NextMarker", "Limit");
    var paginateListAliases = (0, import_core17.createPaginator)(KMSClient2, ListAliasesCommand2, "Marker", "NextMarker", "Limit");
    var paginateListGrants = (0, import_core17.createPaginator)(KMSClient2, ListGrantsCommand, "Marker", "NextMarker", "Limit");
    var paginateListKeyPolicies = (0, import_core17.createPaginator)(KMSClient2, ListKeyPoliciesCommand, "Marker", "NextMarker", "Limit");
    var paginateListKeyRotations = (0, import_core17.createPaginator)(KMSClient2, ListKeyRotationsCommand, "Marker", "NextMarker", "Limit");
    var paginateListKeys = (0, import_core17.createPaginator)(KMSClient2, ListKeysCommand, "Marker", "NextMarker", "Limit");
    var paginateListResourceTags = (0, import_core17.createPaginator)(KMSClient2, ListResourceTagsCommand, "Marker", "NextMarker", "Limit");
    var paginateListRetirableGrants = (0, import_core17.createPaginator)(KMSClient2, ListRetirableGrantsCommand, "Marker", "NextMarker", "Limit");
  }
});

// ../../node_modules/@aws-sdk/client-lambda/dist-cjs/auth/httpAuthSchemeProvider.js
var require_httpAuthSchemeProvider17 = __commonJS({
  "../../node_modules/@aws-sdk/client-lambda/dist-cjs/auth/httpAuthSchemeProvider.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.resolveHttpAuthSchemeConfig = exports2.defaultLambdaHttpAuthSchemeProvider = exports2.defaultLambdaHttpAuthSchemeParametersProvider = void 0;
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var util_middleware_1 = require_dist_cjs6();
    var defaultLambdaHttpAuthSchemeParametersProvider = /* @__PURE__ */ __name(async (config, context, input) => {
      return {
        operation: (0, util_middleware_1.getSmithyContext)(context).operation,
        region: await (0, util_middleware_1.normalizeProvider)(config.region)() || (() => {
          throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
        })()
      };
    }, "defaultLambdaHttpAuthSchemeParametersProvider");
    exports2.defaultLambdaHttpAuthSchemeParametersProvider = defaultLambdaHttpAuthSchemeParametersProvider;
    function createAwsAuthSigv4HttpAuthOption3(authParameters) {
      return {
        schemeId: "aws.auth#sigv4",
        signingProperties: {
          name: "lambda",
          region: authParameters.region
        },
        propertiesExtractor: /* @__PURE__ */ __name((config, context) => ({
          signingProperties: {
            config,
            context
          }
        }), "propertiesExtractor")
      };
    }
    __name(createAwsAuthSigv4HttpAuthOption3, "createAwsAuthSigv4HttpAuthOption");
    var defaultLambdaHttpAuthSchemeProvider = /* @__PURE__ */ __name((authParameters) => {
      const options = [];
      switch (authParameters.operation) {
        default: {
          options.push(createAwsAuthSigv4HttpAuthOption3(authParameters));
        }
      }
      return options;
    }, "defaultLambdaHttpAuthSchemeProvider");
    exports2.defaultLambdaHttpAuthSchemeProvider = defaultLambdaHttpAuthSchemeProvider;
    var resolveHttpAuthSchemeConfig3 = /* @__PURE__ */ __name((config) => {
      const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
      return Object.assign(config_0, {
        authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? [])
      });
    }, "resolveHttpAuthSchemeConfig");
    exports2.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig3;
  }
});

// ../../node_modules/@aws-sdk/client-lambda/package.json
var require_package17 = __commonJS({
  "../../node_modules/@aws-sdk/client-lambda/package.json"(exports2, module2) {
    module2.exports = {
      name: "@aws-sdk/client-lambda",
      description: "AWS SDK for JavaScript Lambda Client for Node.js, Browser and React Native",
      version: "3.879.0",
      scripts: {
        build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
        "build:cjs": "node ../../scripts/compilation/inline client-lambda",
        "build:es": "tsc -p tsconfig.es.json",
        "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
        "build:types": "tsc -p tsconfig.types.json",
        "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
        clean: "rimraf ./dist-* && rimraf *.tsbuildinfo",
        "extract:docs": "api-extractor run --local",
        "generate:client": "node ../../scripts/generate-clients/single-service --solo lambda"
      },
      main: "./dist-cjs/index.js",
      types: "./dist-types/index.d.ts",
      module: "./dist-es/index.js",
      sideEffects: false,
      dependencies: {
        "@aws-crypto/sha256-browser": "5.2.0",
        "@aws-crypto/sha256-js": "5.2.0",
        "@aws-sdk/core": "3.879.0",
        "@aws-sdk/credential-provider-node": "3.879.0",
        "@aws-sdk/middleware-host-header": "3.873.0",
        "@aws-sdk/middleware-logger": "3.876.0",
        "@aws-sdk/middleware-recursion-detection": "3.873.0",
        "@aws-sdk/middleware-user-agent": "3.879.0",
        "@aws-sdk/region-config-resolver": "3.873.0",
        "@aws-sdk/types": "3.862.0",
        "@aws-sdk/util-endpoints": "3.879.0",
        "@aws-sdk/util-user-agent-browser": "3.873.0",
        "@aws-sdk/util-user-agent-node": "3.879.0",
        "@smithy/config-resolver": "^4.1.5",
        "@smithy/core": "^3.9.0",
        "@smithy/eventstream-serde-browser": "^4.0.5",
        "@smithy/eventstream-serde-config-resolver": "^4.1.3",
        "@smithy/eventstream-serde-node": "^4.0.5",
        "@smithy/fetch-http-handler": "^5.1.1",
        "@smithy/hash-node": "^4.0.5",
        "@smithy/invalid-dependency": "^4.0.5",
        "@smithy/middleware-content-length": "^4.0.5",
        "@smithy/middleware-endpoint": "^4.1.19",
        "@smithy/middleware-retry": "^4.1.20",
        "@smithy/middleware-serde": "^4.0.9",
        "@smithy/middleware-stack": "^4.0.5",
        "@smithy/node-config-provider": "^4.1.4",
        "@smithy/node-http-handler": "^4.1.1",
        "@smithy/protocol-http": "^5.1.3",
        "@smithy/smithy-client": "^4.5.0",
        "@smithy/types": "^4.3.2",
        "@smithy/url-parser": "^4.0.5",
        "@smithy/util-base64": "^4.0.0",
        "@smithy/util-body-length-browser": "^4.0.0",
        "@smithy/util-body-length-node": "^4.0.0",
        "@smithy/util-defaults-mode-browser": "^4.0.27",
        "@smithy/util-defaults-mode-node": "^4.0.27",
        "@smithy/util-endpoints": "^3.0.7",
        "@smithy/util-middleware": "^4.0.5",
        "@smithy/util-retry": "^4.0.7",
        "@smithy/util-stream": "^4.2.4",
        "@smithy/util-utf8": "^4.0.0",
        "@smithy/util-waiter": "^4.0.7",
        tslib: "^2.6.2"
      },
      devDependencies: {
        "@tsconfig/node18": "18.2.4",
        "@types/node": "^18.19.69",
        concurrently: "7.0.0",
        "downlevel-dts": "0.10.1",
        rimraf: "3.0.2",
        typescript: "~5.8.3"
      },
      engines: {
        node: ">=18.0.0"
      },
      typesVersions: {
        "<4.0": {
          "dist-types/*": [
            "dist-types/ts3.4/*"
          ]
        }
      },
      files: [
        "dist-*/**"
      ],
      author: {
        name: "AWS SDK for JavaScript Team",
        url: "https://aws.amazon.com/javascript/"
      },
      license: "Apache-2.0",
      browser: {
        "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
      },
      "react-native": {
        "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
      },
      homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-lambda",
      repository: {
        type: "git",
        url: "https://github.com/aws/aws-sdk-js-v3.git",
        directory: "clients/client-lambda"
      }
    };
  }
});

// ../../node_modules/@aws-sdk/client-lambda/dist-cjs/endpoint/ruleset.js
var require_ruleset17 = __commonJS({
  "../../node_modules/@aws-sdk/client-lambda/dist-cjs/endpoint/ruleset.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.ruleSet = void 0;
    var s3 = "required";
    var t3 = "fn";
    var u3 = "argv";
    var v6 = "ref";
    var a3 = true;
    var b3 = "isSet";
    var c3 = "booleanEquals";
    var d3 = "error";
    var e3 = "endpoint";
    var f3 = "tree";
    var g3 = "PartitionResult";
    var h3 = { [s3]: false, "type": "String" };
    var i3 = { [s3]: true, "default": false, "type": "Boolean" };
    var j3 = { [v6]: "Endpoint" };
    var k3 = { [t3]: c3, [u3]: [{ [v6]: "UseFIPS" }, true] };
    var l3 = { [t3]: c3, [u3]: [{ [v6]: "UseDualStack" }, true] };
    var m3 = {};
    var n3 = { [t3]: "getAttr", [u3]: [{ [v6]: g3 }, "supportsFIPS"] };
    var o3 = { [t3]: c3, [u3]: [true, { [t3]: "getAttr", [u3]: [{ [v6]: g3 }, "supportsDualStack"] }] };
    var p3 = [k3];
    var q3 = [l3];
    var r3 = [{ [v6]: "Region" }];
    var _data3 = { version: "1.0", parameters: { Region: h3, UseDualStack: i3, UseFIPS: i3, Endpoint: h3 }, rules: [{ conditions: [{ [t3]: b3, [u3]: [j3] }], rules: [{ conditions: p3, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d3 }, { conditions: q3, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d3 }, { endpoint: { url: j3, properties: m3, headers: m3 }, type: e3 }], type: f3 }, { conditions: [{ [t3]: b3, [u3]: r3 }], rules: [{ conditions: [{ [t3]: "aws.partition", [u3]: r3, assign: g3 }], rules: [{ conditions: [k3, l3], rules: [{ conditions: [{ [t3]: c3, [u3]: [a3, n3] }, o3], rules: [{ endpoint: { url: "https://lambda-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m3, headers: m3 }, type: e3 }], type: f3 }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d3 }], type: f3 }, { conditions: p3, rules: [{ conditions: [{ [t3]: c3, [u3]: [n3, a3] }], rules: [{ endpoint: { url: "https://lambda-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m3, headers: m3 }, type: e3 }], type: f3 }, { error: "FIPS is enabled but this partition does not support FIPS", type: d3 }], type: f3 }, { conditions: q3, rules: [{ conditions: [o3], rules: [{ endpoint: { url: "https://lambda.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m3, headers: m3 }, type: e3 }], type: f3 }, { error: "DualStack is enabled but this partition does not support DualStack", type: d3 }], type: f3 }, { endpoint: { url: "https://lambda.{Region}.{PartitionResult#dnsSuffix}", properties: m3, headers: m3 }, type: e3 }], type: f3 }], type: f3 }, { error: "Invalid Configuration: Missing Region", type: d3 }] };
    exports2.ruleSet = _data3;
  }
});

// ../../node_modules/@aws-sdk/client-lambda/dist-cjs/endpoint/endpointResolver.js
var require_endpointResolver17 = __commonJS({
  "../../node_modules/@aws-sdk/client-lambda/dist-cjs/endpoint/endpointResolver.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.defaultEndpointResolver = void 0;
    var util_endpoints_1 = require_dist_cjs21();
    var util_endpoints_2 = require_dist_cjs18();
    var ruleset_1 = require_ruleset17();
    var cache3 = new util_endpoints_2.EndpointCache({
      size: 50,
      params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"]
    });
    var defaultEndpointResolver3 = /* @__PURE__ */ __name((endpointParams, context = {}) => {
      return cache3.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
        endpointParams,
        logger: context.logger
      }));
    }, "defaultEndpointResolver");
    exports2.defaultEndpointResolver = defaultEndpointResolver3;
    util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
  }
});

// ../../node_modules/@aws-sdk/client-lambda/dist-cjs/runtimeConfig.shared.js
var require_runtimeConfig_shared18 = __commonJS({
  "../../node_modules/@aws-sdk/client-lambda/dist-cjs/runtimeConfig.shared.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.getRuntimeConfig = void 0;
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var smithy_client_1 = require_dist_cjs26();
    var url_parser_1 = require_dist_cjs20();
    var util_base64_1 = require_dist_cjs11();
    var util_utf8_1 = require_dist_cjs10();
    var httpAuthSchemeProvider_1 = require_httpAuthSchemeProvider17();
    var endpointResolver_1 = require_endpointResolver17();
    var getRuntimeConfig5 = /* @__PURE__ */ __name((config) => {
      return {
        apiVersion: "2015-03-31",
        base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
        base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
        disableHostPrefix: config?.disableHostPrefix ?? false,
        endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
        extensions: config?.extensions ?? [],
        httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultLambdaHttpAuthSchemeProvider,
        httpAuthSchemes: config?.httpAuthSchemes ?? [
          {
            schemeId: "aws.auth#sigv4",
            identityProvider: /* @__PURE__ */ __name((ipc) => ipc.getIdentityProvider("aws.auth#sigv4"), "identityProvider"),
            signer: new core_1.AwsSdkSigV4Signer()
          }
        ],
        logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
        serviceId: config?.serviceId ?? "Lambda",
        urlParser: config?.urlParser ?? url_parser_1.parseUrl,
        utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
        utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8
      };
    }, "getRuntimeConfig");
    exports2.getRuntimeConfig = getRuntimeConfig5;
  }
});

// ../../node_modules/@aws-sdk/client-lambda/dist-cjs/runtimeConfig.js
var require_runtimeConfig18 = __commonJS({
  "../../node_modules/@aws-sdk/client-lambda/dist-cjs/runtimeConfig.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.getRuntimeConfig = void 0;
    var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
    var package_json_1 = tslib_1.__importDefault(require_package17());
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var credential_provider_node_1 = require_dist_cjs52();
    var util_user_agent_node_1 = require_dist_cjs41();
    var config_resolver_1 = require_dist_cjs30();
    var eventstream_serde_node_1 = require_dist_cjs67();
    var hash_node_1 = require_dist_cjs42();
    var middleware_retry_1 = require_dist_cjs37();
    var node_config_provider_1 = require_dist_cjs33();
    var node_http_handler_1 = require_dist_cjs14();
    var util_body_length_node_1 = require_dist_cjs43();
    var util_retry_1 = require_dist_cjs36();
    var runtimeConfig_shared_1 = require_runtimeConfig_shared18();
    var smithy_client_1 = require_dist_cjs26();
    var util_defaults_mode_node_1 = require_dist_cjs44();
    var smithy_client_2 = require_dist_cjs26();
    var getRuntimeConfig5 = /* @__PURE__ */ __name((config) => {
      (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
      const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
      const defaultConfigProvider = /* @__PURE__ */ __name(() => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode), "defaultConfigProvider");
      const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
      (0, core_1.emitWarningIfUnsupportedVersion)(process.version);
      const loaderConfig = {
        profile: config?.profile,
        logger: clientSharedValues.logger
      };
      return {
        ...clientSharedValues,
        ...config,
        runtime: "node",
        defaultsMode,
        authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
        bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
        credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
        defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
        eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventstream_serde_node_1.eventStreamSerdeProvider,
        maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
        region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
        requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
        retryMode: config?.retryMode ?? (0, node_config_provider_1.loadConfig)({
          ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
          default: /* @__PURE__ */ __name(async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE, "default")
        }, config),
        sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
        streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
        useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
        useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
        userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig)
      };
    }, "getRuntimeConfig");
    exports2.getRuntimeConfig = getRuntimeConfig5;
  }
});

// ../../node_modules/@aws-sdk/client-lambda/dist-cjs/index.js
var require_dist_cjs92 = __commonJS({
  "../../node_modules/@aws-sdk/client-lambda/dist-cjs/index.js"(exports2, module2) {
    "use strict";
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var index_exports = {};
    __export2(index_exports, {
      AddLayerVersionPermissionCommand: /* @__PURE__ */ __name(() => AddLayerVersionPermissionCommand, "AddLayerVersionPermissionCommand"),
      AddPermissionCommand: /* @__PURE__ */ __name(() => AddPermissionCommand, "AddPermissionCommand"),
      ApplicationLogLevel: /* @__PURE__ */ __name(() => ApplicationLogLevel, "ApplicationLogLevel"),
      Architecture: /* @__PURE__ */ __name(() => Architecture, "Architecture"),
      CodeSigningConfigNotFoundException: /* @__PURE__ */ __name(() => CodeSigningConfigNotFoundException, "CodeSigningConfigNotFoundException"),
      CodeSigningPolicy: /* @__PURE__ */ __name(() => CodeSigningPolicy, "CodeSigningPolicy"),
      CodeStorageExceededException: /* @__PURE__ */ __name(() => CodeStorageExceededException, "CodeStorageExceededException"),
      CodeVerificationFailedException: /* @__PURE__ */ __name(() => CodeVerificationFailedException, "CodeVerificationFailedException"),
      CreateAliasCommand: /* @__PURE__ */ __name(() => CreateAliasCommand, "CreateAliasCommand"),
      CreateCodeSigningConfigCommand: /* @__PURE__ */ __name(() => CreateCodeSigningConfigCommand, "CreateCodeSigningConfigCommand"),
      CreateEventSourceMappingCommand: /* @__PURE__ */ __name(() => CreateEventSourceMappingCommand, "CreateEventSourceMappingCommand"),
      CreateFunctionCommand: /* @__PURE__ */ __name(() => CreateFunctionCommand, "CreateFunctionCommand"),
      CreateFunctionRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => CreateFunctionRequestFilterSensitiveLog, "CreateFunctionRequestFilterSensitiveLog"),
      CreateFunctionUrlConfigCommand: /* @__PURE__ */ __name(() => CreateFunctionUrlConfigCommand, "CreateFunctionUrlConfigCommand"),
      DeleteAliasCommand: /* @__PURE__ */ __name(() => DeleteAliasCommand, "DeleteAliasCommand"),
      DeleteCodeSigningConfigCommand: /* @__PURE__ */ __name(() => DeleteCodeSigningConfigCommand, "DeleteCodeSigningConfigCommand"),
      DeleteEventSourceMappingCommand: /* @__PURE__ */ __name(() => DeleteEventSourceMappingCommand, "DeleteEventSourceMappingCommand"),
      DeleteFunctionCodeSigningConfigCommand: /* @__PURE__ */ __name(() => DeleteFunctionCodeSigningConfigCommand, "DeleteFunctionCodeSigningConfigCommand"),
      DeleteFunctionCommand: /* @__PURE__ */ __name(() => DeleteFunctionCommand, "DeleteFunctionCommand"),
      DeleteFunctionConcurrencyCommand: /* @__PURE__ */ __name(() => DeleteFunctionConcurrencyCommand, "DeleteFunctionConcurrencyCommand"),
      DeleteFunctionEventInvokeConfigCommand: /* @__PURE__ */ __name(() => DeleteFunctionEventInvokeConfigCommand, "DeleteFunctionEventInvokeConfigCommand"),
      DeleteFunctionUrlConfigCommand: /* @__PURE__ */ __name(() => DeleteFunctionUrlConfigCommand, "DeleteFunctionUrlConfigCommand"),
      DeleteLayerVersionCommand: /* @__PURE__ */ __name(() => DeleteLayerVersionCommand, "DeleteLayerVersionCommand"),
      DeleteProvisionedConcurrencyConfigCommand: /* @__PURE__ */ __name(() => DeleteProvisionedConcurrencyConfigCommand, "DeleteProvisionedConcurrencyConfigCommand"),
      EC2AccessDeniedException: /* @__PURE__ */ __name(() => EC2AccessDeniedException, "EC2AccessDeniedException"),
      EC2ThrottledException: /* @__PURE__ */ __name(() => EC2ThrottledException, "EC2ThrottledException"),
      EC2UnexpectedException: /* @__PURE__ */ __name(() => EC2UnexpectedException, "EC2UnexpectedException"),
      EFSIOException: /* @__PURE__ */ __name(() => EFSIOException, "EFSIOException"),
      EFSMountConnectivityException: /* @__PURE__ */ __name(() => EFSMountConnectivityException, "EFSMountConnectivityException"),
      EFSMountFailureException: /* @__PURE__ */ __name(() => EFSMountFailureException, "EFSMountFailureException"),
      EFSMountTimeoutException: /* @__PURE__ */ __name(() => EFSMountTimeoutException, "EFSMountTimeoutException"),
      ENILimitReachedException: /* @__PURE__ */ __name(() => ENILimitReachedException, "ENILimitReachedException"),
      EndPointType: /* @__PURE__ */ __name(() => EndPointType, "EndPointType"),
      EnvironmentErrorFilterSensitiveLog: /* @__PURE__ */ __name(() => EnvironmentErrorFilterSensitiveLog, "EnvironmentErrorFilterSensitiveLog"),
      EnvironmentFilterSensitiveLog: /* @__PURE__ */ __name(() => EnvironmentFilterSensitiveLog, "EnvironmentFilterSensitiveLog"),
      EnvironmentResponseFilterSensitiveLog: /* @__PURE__ */ __name(() => EnvironmentResponseFilterSensitiveLog, "EnvironmentResponseFilterSensitiveLog"),
      EventSourceMappingMetric: /* @__PURE__ */ __name(() => EventSourceMappingMetric, "EventSourceMappingMetric"),
      EventSourcePosition: /* @__PURE__ */ __name(() => EventSourcePosition, "EventSourcePosition"),
      FullDocument: /* @__PURE__ */ __name(() => FullDocument, "FullDocument"),
      FunctionCodeFilterSensitiveLog: /* @__PURE__ */ __name(() => FunctionCodeFilterSensitiveLog, "FunctionCodeFilterSensitiveLog"),
      FunctionConfigurationFilterSensitiveLog: /* @__PURE__ */ __name(() => FunctionConfigurationFilterSensitiveLog, "FunctionConfigurationFilterSensitiveLog"),
      FunctionResponseType: /* @__PURE__ */ __name(() => FunctionResponseType, "FunctionResponseType"),
      FunctionUrlAuthType: /* @__PURE__ */ __name(() => FunctionUrlAuthType, "FunctionUrlAuthType"),
      FunctionVersion: /* @__PURE__ */ __name(() => FunctionVersion, "FunctionVersion"),
      GetAccountSettingsCommand: /* @__PURE__ */ __name(() => GetAccountSettingsCommand, "GetAccountSettingsCommand"),
      GetAliasCommand: /* @__PURE__ */ __name(() => GetAliasCommand, "GetAliasCommand"),
      GetCodeSigningConfigCommand: /* @__PURE__ */ __name(() => GetCodeSigningConfigCommand, "GetCodeSigningConfigCommand"),
      GetEventSourceMappingCommand: /* @__PURE__ */ __name(() => GetEventSourceMappingCommand, "GetEventSourceMappingCommand"),
      GetFunctionCodeSigningConfigCommand: /* @__PURE__ */ __name(() => GetFunctionCodeSigningConfigCommand, "GetFunctionCodeSigningConfigCommand"),
      GetFunctionCommand: /* @__PURE__ */ __name(() => GetFunctionCommand, "GetFunctionCommand"),
      GetFunctionConcurrencyCommand: /* @__PURE__ */ __name(() => GetFunctionConcurrencyCommand, "GetFunctionConcurrencyCommand"),
      GetFunctionConfigurationCommand: /* @__PURE__ */ __name(() => GetFunctionConfigurationCommand, "GetFunctionConfigurationCommand"),
      GetFunctionEventInvokeConfigCommand: /* @__PURE__ */ __name(() => GetFunctionEventInvokeConfigCommand, "GetFunctionEventInvokeConfigCommand"),
      GetFunctionRecursionConfigCommand: /* @__PURE__ */ __name(() => GetFunctionRecursionConfigCommand, "GetFunctionRecursionConfigCommand"),
      GetFunctionResponseFilterSensitiveLog: /* @__PURE__ */ __name(() => GetFunctionResponseFilterSensitiveLog, "GetFunctionResponseFilterSensitiveLog"),
      GetFunctionUrlConfigCommand: /* @__PURE__ */ __name(() => GetFunctionUrlConfigCommand, "GetFunctionUrlConfigCommand"),
      GetLayerVersionByArnCommand: /* @__PURE__ */ __name(() => GetLayerVersionByArnCommand, "GetLayerVersionByArnCommand"),
      GetLayerVersionCommand: /* @__PURE__ */ __name(() => GetLayerVersionCommand, "GetLayerVersionCommand"),
      GetLayerVersionPolicyCommand: /* @__PURE__ */ __name(() => GetLayerVersionPolicyCommand, "GetLayerVersionPolicyCommand"),
      GetPolicyCommand: /* @__PURE__ */ __name(() => GetPolicyCommand2, "GetPolicyCommand"),
      GetProvisionedConcurrencyConfigCommand: /* @__PURE__ */ __name(() => GetProvisionedConcurrencyConfigCommand, "GetProvisionedConcurrencyConfigCommand"),
      GetRuntimeManagementConfigCommand: /* @__PURE__ */ __name(() => GetRuntimeManagementConfigCommand, "GetRuntimeManagementConfigCommand"),
      ImageConfigErrorFilterSensitiveLog: /* @__PURE__ */ __name(() => ImageConfigErrorFilterSensitiveLog, "ImageConfigErrorFilterSensitiveLog"),
      ImageConfigResponseFilterSensitiveLog: /* @__PURE__ */ __name(() => ImageConfigResponseFilterSensitiveLog, "ImageConfigResponseFilterSensitiveLog"),
      InvalidCodeSignatureException: /* @__PURE__ */ __name(() => InvalidCodeSignatureException, "InvalidCodeSignatureException"),
      InvalidParameterValueException: /* @__PURE__ */ __name(() => InvalidParameterValueException, "InvalidParameterValueException"),
      InvalidRequestContentException: /* @__PURE__ */ __name(() => InvalidRequestContentException, "InvalidRequestContentException"),
      InvalidRuntimeException: /* @__PURE__ */ __name(() => InvalidRuntimeException, "InvalidRuntimeException"),
      InvalidSecurityGroupIDException: /* @__PURE__ */ __name(() => InvalidSecurityGroupIDException, "InvalidSecurityGroupIDException"),
      InvalidSubnetIDException: /* @__PURE__ */ __name(() => InvalidSubnetIDException, "InvalidSubnetIDException"),
      InvalidZipFileException: /* @__PURE__ */ __name(() => InvalidZipFileException, "InvalidZipFileException"),
      InvocationRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => InvocationRequestFilterSensitiveLog, "InvocationRequestFilterSensitiveLog"),
      InvocationResponseFilterSensitiveLog: /* @__PURE__ */ __name(() => InvocationResponseFilterSensitiveLog, "InvocationResponseFilterSensitiveLog"),
      InvocationType: /* @__PURE__ */ __name(() => InvocationType, "InvocationType"),
      InvokeAsyncCommand: /* @__PURE__ */ __name(() => InvokeAsyncCommand, "InvokeAsyncCommand"),
      InvokeAsyncRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => InvokeAsyncRequestFilterSensitiveLog, "InvokeAsyncRequestFilterSensitiveLog"),
      InvokeCommand: /* @__PURE__ */ __name(() => InvokeCommand2, "InvokeCommand"),
      InvokeMode: /* @__PURE__ */ __name(() => InvokeMode, "InvokeMode"),
      InvokeResponseStreamUpdateFilterSensitiveLog: /* @__PURE__ */ __name(() => InvokeResponseStreamUpdateFilterSensitiveLog, "InvokeResponseStreamUpdateFilterSensitiveLog"),
      InvokeWithResponseStreamCommand: /* @__PURE__ */ __name(() => InvokeWithResponseStreamCommand, "InvokeWithResponseStreamCommand"),
      InvokeWithResponseStreamRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => InvokeWithResponseStreamRequestFilterSensitiveLog, "InvokeWithResponseStreamRequestFilterSensitiveLog"),
      InvokeWithResponseStreamResponseEvent: /* @__PURE__ */ __name(() => InvokeWithResponseStreamResponseEvent, "InvokeWithResponseStreamResponseEvent"),
      InvokeWithResponseStreamResponseEventFilterSensitiveLog: /* @__PURE__ */ __name(() => InvokeWithResponseStreamResponseEventFilterSensitiveLog, "InvokeWithResponseStreamResponseEventFilterSensitiveLog"),
      InvokeWithResponseStreamResponseFilterSensitiveLog: /* @__PURE__ */ __name(() => InvokeWithResponseStreamResponseFilterSensitiveLog, "InvokeWithResponseStreamResponseFilterSensitiveLog"),
      KMSAccessDeniedException: /* @__PURE__ */ __name(() => KMSAccessDeniedException, "KMSAccessDeniedException"),
      KMSDisabledException: /* @__PURE__ */ __name(() => KMSDisabledException, "KMSDisabledException"),
      KMSInvalidStateException: /* @__PURE__ */ __name(() => KMSInvalidStateException, "KMSInvalidStateException"),
      KMSNotFoundException: /* @__PURE__ */ __name(() => KMSNotFoundException, "KMSNotFoundException"),
      KafkaSchemaRegistryAuthType: /* @__PURE__ */ __name(() => KafkaSchemaRegistryAuthType, "KafkaSchemaRegistryAuthType"),
      KafkaSchemaValidationAttribute: /* @__PURE__ */ __name(() => KafkaSchemaValidationAttribute, "KafkaSchemaValidationAttribute"),
      Lambda: /* @__PURE__ */ __name(() => Lambda, "Lambda"),
      LambdaClient: /* @__PURE__ */ __name(() => LambdaClient2, "LambdaClient"),
      LambdaServiceException: /* @__PURE__ */ __name(() => LambdaServiceException, "LambdaServiceException"),
      LastUpdateStatus: /* @__PURE__ */ __name(() => LastUpdateStatus, "LastUpdateStatus"),
      LastUpdateStatusReasonCode: /* @__PURE__ */ __name(() => LastUpdateStatusReasonCode, "LastUpdateStatusReasonCode"),
      LayerVersionContentInputFilterSensitiveLog: /* @__PURE__ */ __name(() => LayerVersionContentInputFilterSensitiveLog, "LayerVersionContentInputFilterSensitiveLog"),
      ListAliasesCommand: /* @__PURE__ */ __name(() => ListAliasesCommand2, "ListAliasesCommand"),
      ListCodeSigningConfigsCommand: /* @__PURE__ */ __name(() => ListCodeSigningConfigsCommand, "ListCodeSigningConfigsCommand"),
      ListEventSourceMappingsCommand: /* @__PURE__ */ __name(() => ListEventSourceMappingsCommand, "ListEventSourceMappingsCommand"),
      ListFunctionEventInvokeConfigsCommand: /* @__PURE__ */ __name(() => ListFunctionEventInvokeConfigsCommand, "ListFunctionEventInvokeConfigsCommand"),
      ListFunctionUrlConfigsCommand: /* @__PURE__ */ __name(() => ListFunctionUrlConfigsCommand, "ListFunctionUrlConfigsCommand"),
      ListFunctionsByCodeSigningConfigCommand: /* @__PURE__ */ __name(() => ListFunctionsByCodeSigningConfigCommand, "ListFunctionsByCodeSigningConfigCommand"),
      ListFunctionsCommand: /* @__PURE__ */ __name(() => ListFunctionsCommand, "ListFunctionsCommand"),
      ListFunctionsResponseFilterSensitiveLog: /* @__PURE__ */ __name(() => ListFunctionsResponseFilterSensitiveLog, "ListFunctionsResponseFilterSensitiveLog"),
      ListLayerVersionsCommand: /* @__PURE__ */ __name(() => ListLayerVersionsCommand, "ListLayerVersionsCommand"),
      ListLayersCommand: /* @__PURE__ */ __name(() => ListLayersCommand, "ListLayersCommand"),
      ListProvisionedConcurrencyConfigsCommand: /* @__PURE__ */ __name(() => ListProvisionedConcurrencyConfigsCommand, "ListProvisionedConcurrencyConfigsCommand"),
      ListTagsCommand: /* @__PURE__ */ __name(() => ListTagsCommand, "ListTagsCommand"),
      ListVersionsByFunctionCommand: /* @__PURE__ */ __name(() => ListVersionsByFunctionCommand, "ListVersionsByFunctionCommand"),
      ListVersionsByFunctionResponseFilterSensitiveLog: /* @__PURE__ */ __name(() => ListVersionsByFunctionResponseFilterSensitiveLog, "ListVersionsByFunctionResponseFilterSensitiveLog"),
      LogFormat: /* @__PURE__ */ __name(() => LogFormat, "LogFormat"),
      LogType: /* @__PURE__ */ __name(() => LogType, "LogType"),
      PackageType: /* @__PURE__ */ __name(() => PackageType, "PackageType"),
      PolicyLengthExceededException: /* @__PURE__ */ __name(() => PolicyLengthExceededException, "PolicyLengthExceededException"),
      PreconditionFailedException: /* @__PURE__ */ __name(() => PreconditionFailedException, "PreconditionFailedException"),
      ProvisionedConcurrencyConfigNotFoundException: /* @__PURE__ */ __name(() => ProvisionedConcurrencyConfigNotFoundException, "ProvisionedConcurrencyConfigNotFoundException"),
      ProvisionedConcurrencyStatusEnum: /* @__PURE__ */ __name(() => ProvisionedConcurrencyStatusEnum, "ProvisionedConcurrencyStatusEnum"),
      PublishLayerVersionCommand: /* @__PURE__ */ __name(() => PublishLayerVersionCommand, "PublishLayerVersionCommand"),
      PublishLayerVersionRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => PublishLayerVersionRequestFilterSensitiveLog, "PublishLayerVersionRequestFilterSensitiveLog"),
      PublishVersionCommand: /* @__PURE__ */ __name(() => PublishVersionCommand2, "PublishVersionCommand"),
      PutFunctionCodeSigningConfigCommand: /* @__PURE__ */ __name(() => PutFunctionCodeSigningConfigCommand, "PutFunctionCodeSigningConfigCommand"),
      PutFunctionConcurrencyCommand: /* @__PURE__ */ __name(() => PutFunctionConcurrencyCommand, "PutFunctionConcurrencyCommand"),
      PutFunctionEventInvokeConfigCommand: /* @__PURE__ */ __name(() => PutFunctionEventInvokeConfigCommand, "PutFunctionEventInvokeConfigCommand"),
      PutFunctionRecursionConfigCommand: /* @__PURE__ */ __name(() => PutFunctionRecursionConfigCommand, "PutFunctionRecursionConfigCommand"),
      PutProvisionedConcurrencyConfigCommand: /* @__PURE__ */ __name(() => PutProvisionedConcurrencyConfigCommand, "PutProvisionedConcurrencyConfigCommand"),
      PutRuntimeManagementConfigCommand: /* @__PURE__ */ __name(() => PutRuntimeManagementConfigCommand, "PutRuntimeManagementConfigCommand"),
      RecursiveInvocationException: /* @__PURE__ */ __name(() => RecursiveInvocationException, "RecursiveInvocationException"),
      RecursiveLoop: /* @__PURE__ */ __name(() => RecursiveLoop, "RecursiveLoop"),
      RemoveLayerVersionPermissionCommand: /* @__PURE__ */ __name(() => RemoveLayerVersionPermissionCommand, "RemoveLayerVersionPermissionCommand"),
      RemovePermissionCommand: /* @__PURE__ */ __name(() => RemovePermissionCommand, "RemovePermissionCommand"),
      RequestTooLargeException: /* @__PURE__ */ __name(() => RequestTooLargeException, "RequestTooLargeException"),
      ResourceConflictException: /* @__PURE__ */ __name(() => ResourceConflictException, "ResourceConflictException"),
      ResourceInUseException: /* @__PURE__ */ __name(() => ResourceInUseException, "ResourceInUseException"),
      ResourceNotFoundException: /* @__PURE__ */ __name(() => ResourceNotFoundException2, "ResourceNotFoundException"),
      ResourceNotReadyException: /* @__PURE__ */ __name(() => ResourceNotReadyException, "ResourceNotReadyException"),
      ResponseStreamingInvocationType: /* @__PURE__ */ __name(() => ResponseStreamingInvocationType, "ResponseStreamingInvocationType"),
      Runtime: /* @__PURE__ */ __name(() => Runtime, "Runtime"),
      RuntimeVersionConfigFilterSensitiveLog: /* @__PURE__ */ __name(() => RuntimeVersionConfigFilterSensitiveLog, "RuntimeVersionConfigFilterSensitiveLog"),
      RuntimeVersionErrorFilterSensitiveLog: /* @__PURE__ */ __name(() => RuntimeVersionErrorFilterSensitiveLog, "RuntimeVersionErrorFilterSensitiveLog"),
      SchemaRegistryEventRecordFormat: /* @__PURE__ */ __name(() => SchemaRegistryEventRecordFormat, "SchemaRegistryEventRecordFormat"),
      ServiceException: /* @__PURE__ */ __name(() => ServiceException, "ServiceException"),
      SnapStartApplyOn: /* @__PURE__ */ __name(() => SnapStartApplyOn, "SnapStartApplyOn"),
      SnapStartException: /* @__PURE__ */ __name(() => SnapStartException, "SnapStartException"),
      SnapStartNotReadyException: /* @__PURE__ */ __name(() => SnapStartNotReadyException, "SnapStartNotReadyException"),
      SnapStartOptimizationStatus: /* @__PURE__ */ __name(() => SnapStartOptimizationStatus, "SnapStartOptimizationStatus"),
      SnapStartTimeoutException: /* @__PURE__ */ __name(() => SnapStartTimeoutException, "SnapStartTimeoutException"),
      SourceAccessType: /* @__PURE__ */ __name(() => SourceAccessType, "SourceAccessType"),
      State: /* @__PURE__ */ __name(() => State, "State"),
      StateReasonCode: /* @__PURE__ */ __name(() => StateReasonCode, "StateReasonCode"),
      SubnetIPAddressLimitReachedException: /* @__PURE__ */ __name(() => SubnetIPAddressLimitReachedException, "SubnetIPAddressLimitReachedException"),
      SystemLogLevel: /* @__PURE__ */ __name(() => SystemLogLevel, "SystemLogLevel"),
      TagResourceCommand: /* @__PURE__ */ __name(() => TagResourceCommand, "TagResourceCommand"),
      ThrottleReason: /* @__PURE__ */ __name(() => ThrottleReason, "ThrottleReason"),
      TooManyRequestsException: /* @__PURE__ */ __name(() => TooManyRequestsException, "TooManyRequestsException"),
      TracingMode: /* @__PURE__ */ __name(() => TracingMode, "TracingMode"),
      UnsupportedMediaTypeException: /* @__PURE__ */ __name(() => UnsupportedMediaTypeException, "UnsupportedMediaTypeException"),
      UntagResourceCommand: /* @__PURE__ */ __name(() => UntagResourceCommand, "UntagResourceCommand"),
      UpdateAliasCommand: /* @__PURE__ */ __name(() => UpdateAliasCommand2, "UpdateAliasCommand"),
      UpdateCodeSigningConfigCommand: /* @__PURE__ */ __name(() => UpdateCodeSigningConfigCommand, "UpdateCodeSigningConfigCommand"),
      UpdateEventSourceMappingCommand: /* @__PURE__ */ __name(() => UpdateEventSourceMappingCommand, "UpdateEventSourceMappingCommand"),
      UpdateFunctionCodeCommand: /* @__PURE__ */ __name(() => UpdateFunctionCodeCommand2, "UpdateFunctionCodeCommand"),
      UpdateFunctionCodeRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => UpdateFunctionCodeRequestFilterSensitiveLog, "UpdateFunctionCodeRequestFilterSensitiveLog"),
      UpdateFunctionConfigurationCommand: /* @__PURE__ */ __name(() => UpdateFunctionConfigurationCommand2, "UpdateFunctionConfigurationCommand"),
      UpdateFunctionConfigurationRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => UpdateFunctionConfigurationRequestFilterSensitiveLog, "UpdateFunctionConfigurationRequestFilterSensitiveLog"),
      UpdateFunctionEventInvokeConfigCommand: /* @__PURE__ */ __name(() => UpdateFunctionEventInvokeConfigCommand, "UpdateFunctionEventInvokeConfigCommand"),
      UpdateFunctionUrlConfigCommand: /* @__PURE__ */ __name(() => UpdateFunctionUrlConfigCommand, "UpdateFunctionUrlConfigCommand"),
      UpdateRuntimeOn: /* @__PURE__ */ __name(() => UpdateRuntimeOn, "UpdateRuntimeOn"),
      __Client: /* @__PURE__ */ __name(() => import_smithy_client28.Client, "__Client"),
      paginateListAliases: /* @__PURE__ */ __name(() => paginateListAliases, "paginateListAliases"),
      paginateListCodeSigningConfigs: /* @__PURE__ */ __name(() => paginateListCodeSigningConfigs, "paginateListCodeSigningConfigs"),
      paginateListEventSourceMappings: /* @__PURE__ */ __name(() => paginateListEventSourceMappings, "paginateListEventSourceMappings"),
      paginateListFunctionEventInvokeConfigs: /* @__PURE__ */ __name(() => paginateListFunctionEventInvokeConfigs, "paginateListFunctionEventInvokeConfigs"),
      paginateListFunctionUrlConfigs: /* @__PURE__ */ __name(() => paginateListFunctionUrlConfigs, "paginateListFunctionUrlConfigs"),
      paginateListFunctions: /* @__PURE__ */ __name(() => paginateListFunctions2, "paginateListFunctions"),
      paginateListFunctionsByCodeSigningConfig: /* @__PURE__ */ __name(() => paginateListFunctionsByCodeSigningConfig, "paginateListFunctionsByCodeSigningConfig"),
      paginateListLayerVersions: /* @__PURE__ */ __name(() => paginateListLayerVersions, "paginateListLayerVersions"),
      paginateListLayers: /* @__PURE__ */ __name(() => paginateListLayers, "paginateListLayers"),
      paginateListProvisionedConcurrencyConfigs: /* @__PURE__ */ __name(() => paginateListProvisionedConcurrencyConfigs, "paginateListProvisionedConcurrencyConfigs"),
      paginateListVersionsByFunction: /* @__PURE__ */ __name(() => paginateListVersionsByFunction, "paginateListVersionsByFunction"),
      waitForFunctionActive: /* @__PURE__ */ __name(() => waitForFunctionActive, "waitForFunctionActive"),
      waitForFunctionActiveV2: /* @__PURE__ */ __name(() => waitForFunctionActiveV2, "waitForFunctionActiveV2"),
      waitForFunctionExists: /* @__PURE__ */ __name(() => waitForFunctionExists, "waitForFunctionExists"),
      waitForFunctionUpdated: /* @__PURE__ */ __name(() => waitForFunctionUpdated, "waitForFunctionUpdated"),
      waitForFunctionUpdatedV2: /* @__PURE__ */ __name(() => waitForFunctionUpdatedV2, "waitForFunctionUpdatedV2"),
      waitForPublishedVersionActive: /* @__PURE__ */ __name(() => waitForPublishedVersionActive, "waitForPublishedVersionActive"),
      waitUntilFunctionActive: /* @__PURE__ */ __name(() => waitUntilFunctionActive, "waitUntilFunctionActive"),
      waitUntilFunctionActiveV2: /* @__PURE__ */ __name(() => waitUntilFunctionActiveV2, "waitUntilFunctionActiveV2"),
      waitUntilFunctionExists: /* @__PURE__ */ __name(() => waitUntilFunctionExists, "waitUntilFunctionExists"),
      waitUntilFunctionUpdated: /* @__PURE__ */ __name(() => waitUntilFunctionUpdated, "waitUntilFunctionUpdated"),
      waitUntilFunctionUpdatedV2: /* @__PURE__ */ __name(() => waitUntilFunctionUpdatedV22, "waitUntilFunctionUpdatedV2"),
      waitUntilPublishedVersionActive: /* @__PURE__ */ __name(() => waitUntilPublishedVersionActive, "waitUntilPublishedVersionActive")
    });
    module2.exports = __toCommonJS2(index_exports);
    var import_middleware_host_header3 = require_dist_cjs3();
    var import_middleware_logger3 = require_dist_cjs4();
    var import_middleware_recursion_detection3 = require_dist_cjs5();
    var import_middleware_user_agent3 = require_dist_cjs28();
    var import_config_resolver6 = require_dist_cjs30();
    var import_core17 = (init_dist_es(), __toCommonJS(dist_es_exports));
    var import_eventstream_serde_config_resolver = require_dist_cjs62();
    var import_middleware_content_length3 = require_dist_cjs31();
    var import_middleware_endpoint8 = require_dist_cjs34();
    var import_middleware_retry5 = require_dist_cjs37();
    var import_httpAuthSchemeProvider5 = require_httpAuthSchemeProvider17();
    var resolveClientEndpointParameters3 = /* @__PURE__ */ __name2((options) => {
      return Object.assign(options, {
        useDualstackEndpoint: options.useDualstackEndpoint ?? false,
        useFipsEndpoint: options.useFipsEndpoint ?? false,
        defaultSigningName: "lambda"
      });
    }, "resolveClientEndpointParameters");
    var commonParams3 = {
      UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
      Endpoint: { type: "builtInParams", name: "endpoint" },
      Region: { type: "builtInParams", name: "region" },
      UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
    };
    var import_runtimeConfig5 = require_runtimeConfig18();
    var import_region_config_resolver3 = require_dist_cjs45();
    var import_protocol_http16 = require_dist_cjs2();
    var import_smithy_client28 = require_dist_cjs26();
    var getHttpAuthExtensionConfiguration3 = /* @__PURE__ */ __name2((runtimeConfig) => {
      const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
      let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
      let _credentials = runtimeConfig.credentials;
      return {
        setHttpAuthScheme(httpAuthScheme) {
          const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
          if (index === -1) {
            _httpAuthSchemes.push(httpAuthScheme);
          } else {
            _httpAuthSchemes.splice(index, 1, httpAuthScheme);
          }
        },
        httpAuthSchemes() {
          return _httpAuthSchemes;
        },
        setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
          _httpAuthSchemeProvider = httpAuthSchemeProvider;
        },
        httpAuthSchemeProvider() {
          return _httpAuthSchemeProvider;
        },
        setCredentials(credentials) {
          _credentials = credentials;
        },
        credentials() {
          return _credentials;
        }
      };
    }, "getHttpAuthExtensionConfiguration");
    var resolveHttpAuthRuntimeConfig3 = /* @__PURE__ */ __name2((config) => {
      return {
        httpAuthSchemes: config.httpAuthSchemes(),
        httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
        credentials: config.credentials()
      };
    }, "resolveHttpAuthRuntimeConfig");
    var resolveRuntimeExtensions3 = /* @__PURE__ */ __name2((runtimeConfig, extensions) => {
      const extensionConfiguration = Object.assign(
        (0, import_region_config_resolver3.getAwsRegionExtensionConfiguration)(runtimeConfig),
        (0, import_smithy_client28.getDefaultExtensionConfiguration)(runtimeConfig),
        (0, import_protocol_http16.getHttpHandlerExtensionConfiguration)(runtimeConfig),
        getHttpAuthExtensionConfiguration3(runtimeConfig)
      );
      extensions.forEach((extension) => extension.configure(extensionConfiguration));
      return Object.assign(
        runtimeConfig,
        (0, import_region_config_resolver3.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
        (0, import_smithy_client28.resolveDefaultRuntimeConfig)(extensionConfiguration),
        (0, import_protocol_http16.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
        resolveHttpAuthRuntimeConfig3(extensionConfiguration)
      );
    }, "resolveRuntimeExtensions");
    var LambdaClient2 = class extends import_smithy_client28.Client {
      static {
        __name(this, "LambdaClient");
      }
      static {
        __name2(this, "LambdaClient");
      }
      /**
       * The resolved configuration of LambdaClient class. This is resolved and normalized from the {@link LambdaClientConfig | constructor configuration interface}.
       */
      config;
      constructor(...[configuration]) {
        const _config_0 = (0, import_runtimeConfig5.getRuntimeConfig)(configuration || {});
        super(_config_0);
        this.initConfig = _config_0;
        const _config_1 = resolveClientEndpointParameters3(_config_0);
        const _config_2 = (0, import_middleware_user_agent3.resolveUserAgentConfig)(_config_1);
        const _config_3 = (0, import_middleware_retry5.resolveRetryConfig)(_config_2);
        const _config_4 = (0, import_config_resolver6.resolveRegionConfig)(_config_3);
        const _config_5 = (0, import_middleware_host_header3.resolveHostHeaderConfig)(_config_4);
        const _config_6 = (0, import_middleware_endpoint8.resolveEndpointConfig)(_config_5);
        const _config_7 = (0, import_eventstream_serde_config_resolver.resolveEventStreamSerdeConfig)(_config_6);
        const _config_8 = (0, import_httpAuthSchemeProvider5.resolveHttpAuthSchemeConfig)(_config_7);
        const _config_9 = resolveRuntimeExtensions3(_config_8, configuration?.extensions || []);
        this.config = _config_9;
        this.middlewareStack.use((0, import_middleware_user_agent3.getUserAgentPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_retry5.getRetryPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_content_length3.getContentLengthPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_host_header3.getHostHeaderPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_logger3.getLoggerPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_recursion_detection3.getRecursionDetectionPlugin)(this.config));
        this.middlewareStack.use(
          (0, import_core17.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
            httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider5.defaultLambdaHttpAuthSchemeParametersProvider,
            identityProviderConfigProvider: /* @__PURE__ */ __name2(async (config) => new import_core17.DefaultIdentityProviderConfig({
              "aws.auth#sigv4": config.credentials
            }), "identityProviderConfigProvider")
          })
        );
        this.middlewareStack.use((0, import_core17.getHttpSigningPlugin)(this.config));
      }
      /**
       * Destroy underlying resources, like sockets. It's usually not necessary to do this.
       * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
       * Otherwise, sockets might stay open for quite a long time before the server terminates them.
       */
      destroy() {
        super.destroy();
      }
    };
    var import_middleware_serde5 = require_dist_cjs7();
    var import_core22 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var LambdaServiceException = class _LambdaServiceException extends import_smithy_client28.ServiceException {
      static {
        __name(this, "_LambdaServiceException");
      }
      static {
        __name2(this, "LambdaServiceException");
      }
      /**
       * @internal
       */
      constructor(options) {
        super(options);
        Object.setPrototypeOf(this, _LambdaServiceException.prototype);
      }
    };
    var InvalidParameterValueException = class _InvalidParameterValueException extends LambdaServiceException {
      static {
        __name(this, "_InvalidParameterValueException");
      }
      static {
        __name2(this, "InvalidParameterValueException");
      }
      name = "InvalidParameterValueException";
      $fault = "client";
      /**
       * <p>The exception type.</p>
       * @public
       */
      Type;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidParameterValueException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidParameterValueException.prototype);
        this.Type = opts.Type;
      }
    };
    var PolicyLengthExceededException = class _PolicyLengthExceededException extends LambdaServiceException {
      static {
        __name(this, "_PolicyLengthExceededException");
      }
      static {
        __name2(this, "PolicyLengthExceededException");
      }
      name = "PolicyLengthExceededException";
      $fault = "client";
      Type;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "PolicyLengthExceededException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _PolicyLengthExceededException.prototype);
        this.Type = opts.Type;
      }
    };
    var PreconditionFailedException = class _PreconditionFailedException extends LambdaServiceException {
      static {
        __name(this, "_PreconditionFailedException");
      }
      static {
        __name2(this, "PreconditionFailedException");
      }
      name = "PreconditionFailedException";
      $fault = "client";
      /**
       * <p>The exception type.</p>
       * @public
       */
      Type;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "PreconditionFailedException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _PreconditionFailedException.prototype);
        this.Type = opts.Type;
      }
    };
    var ResourceConflictException = class _ResourceConflictException extends LambdaServiceException {
      static {
        __name(this, "_ResourceConflictException");
      }
      static {
        __name2(this, "ResourceConflictException");
      }
      name = "ResourceConflictException";
      $fault = "client";
      /**
       * <p>The exception type.</p>
       * @public
       */
      Type;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ResourceConflictException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ResourceConflictException.prototype);
        this.Type = opts.Type;
      }
    };
    var ResourceNotFoundException2 = class _ResourceNotFoundException extends LambdaServiceException {
      static {
        __name(this, "_ResourceNotFoundException");
      }
      static {
        __name2(this, "ResourceNotFoundException");
      }
      name = "ResourceNotFoundException";
      $fault = "client";
      Type;
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ResourceNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
        this.Type = opts.Type;
        this.Message = opts.Message;
      }
    };
    var ServiceException = class _ServiceException extends LambdaServiceException {
      static {
        __name(this, "_ServiceException");
      }
      static {
        __name2(this, "ServiceException");
      }
      name = "ServiceException";
      $fault = "server";
      Type;
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ServiceException",
          $fault: "server",
          ...opts
        });
        Object.setPrototypeOf(this, _ServiceException.prototype);
        this.Type = opts.Type;
        this.Message = opts.Message;
      }
    };
    var ThrottleReason = {
      CallerRateLimitExceeded: "CallerRateLimitExceeded",
      ConcurrentInvocationLimitExceeded: "ConcurrentInvocationLimitExceeded",
      ConcurrentSnapshotCreateLimitExceeded: "ConcurrentSnapshotCreateLimitExceeded",
      FunctionInvocationRateLimitExceeded: "FunctionInvocationRateLimitExceeded",
      ReservedFunctionConcurrentInvocationLimitExceeded: "ReservedFunctionConcurrentInvocationLimitExceeded",
      ReservedFunctionInvocationRateLimitExceeded: "ReservedFunctionInvocationRateLimitExceeded"
    };
    var TooManyRequestsException = class _TooManyRequestsException extends LambdaServiceException {
      static {
        __name(this, "_TooManyRequestsException");
      }
      static {
        __name2(this, "TooManyRequestsException");
      }
      name = "TooManyRequestsException";
      $fault = "client";
      /**
       * <p>The number of seconds the caller should wait before retrying.</p>
       * @public
       */
      retryAfterSeconds;
      Type;
      Reason;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "TooManyRequestsException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _TooManyRequestsException.prototype);
        this.retryAfterSeconds = opts.retryAfterSeconds;
        this.Type = opts.Type;
        this.Reason = opts.Reason;
      }
    };
    var FunctionUrlAuthType = {
      AWS_IAM: "AWS_IAM",
      NONE: "NONE"
    };
    var KafkaSchemaRegistryAuthType = {
      BASIC_AUTH: "BASIC_AUTH",
      CLIENT_CERTIFICATE_TLS_AUTH: "CLIENT_CERTIFICATE_TLS_AUTH",
      SERVER_ROOT_CA_CERTIFICATE: "SERVER_ROOT_CA_CERTIFICATE"
    };
    var SchemaRegistryEventRecordFormat = {
      JSON: "JSON",
      SOURCE: "SOURCE"
    };
    var KafkaSchemaValidationAttribute = {
      KEY: "KEY",
      VALUE: "VALUE"
    };
    var ApplicationLogLevel = {
      Debug: "DEBUG",
      Error: "ERROR",
      Fatal: "FATAL",
      Info: "INFO",
      Trace: "TRACE",
      Warn: "WARN"
    };
    var Architecture = {
      arm64: "arm64",
      x86_64: "x86_64"
    };
    var CodeSigningPolicy = {
      Enforce: "Enforce",
      Warn: "Warn"
    };
    var FullDocument = {
      Default: "Default",
      UpdateLookup: "UpdateLookup"
    };
    var FunctionResponseType = {
      ReportBatchItemFailures: "ReportBatchItemFailures"
    };
    var EventSourceMappingMetric = {
      EventCount: "EventCount"
    };
    var EndPointType = {
      KAFKA_BOOTSTRAP_SERVERS: "KAFKA_BOOTSTRAP_SERVERS"
    };
    var SourceAccessType = {
      BASIC_AUTH: "BASIC_AUTH",
      CLIENT_CERTIFICATE_TLS_AUTH: "CLIENT_CERTIFICATE_TLS_AUTH",
      SASL_SCRAM_256_AUTH: "SASL_SCRAM_256_AUTH",
      SASL_SCRAM_512_AUTH: "SASL_SCRAM_512_AUTH",
      SERVER_ROOT_CA_CERTIFICATE: "SERVER_ROOT_CA_CERTIFICATE",
      VIRTUAL_HOST: "VIRTUAL_HOST",
      VPC_SECURITY_GROUP: "VPC_SECURITY_GROUP",
      VPC_SUBNET: "VPC_SUBNET"
    };
    var EventSourcePosition = {
      AT_TIMESTAMP: "AT_TIMESTAMP",
      LATEST: "LATEST",
      TRIM_HORIZON: "TRIM_HORIZON"
    };
    var ResourceInUseException = class _ResourceInUseException extends LambdaServiceException {
      static {
        __name(this, "_ResourceInUseException");
      }
      static {
        __name2(this, "ResourceInUseException");
      }
      name = "ResourceInUseException";
      $fault = "client";
      Type;
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ResourceInUseException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ResourceInUseException.prototype);
        this.Type = opts.Type;
        this.Message = opts.Message;
      }
    };
    var CodeSigningConfigNotFoundException = class _CodeSigningConfigNotFoundException extends LambdaServiceException {
      static {
        __name(this, "_CodeSigningConfigNotFoundException");
      }
      static {
        __name2(this, "CodeSigningConfigNotFoundException");
      }
      name = "CodeSigningConfigNotFoundException";
      $fault = "client";
      Type;
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "CodeSigningConfigNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _CodeSigningConfigNotFoundException.prototype);
        this.Type = opts.Type;
        this.Message = opts.Message;
      }
    };
    var CodeStorageExceededException = class _CodeStorageExceededException extends LambdaServiceException {
      static {
        __name(this, "_CodeStorageExceededException");
      }
      static {
        __name2(this, "CodeStorageExceededException");
      }
      name = "CodeStorageExceededException";
      $fault = "client";
      /**
       * <p>The exception type.</p>
       * @public
       */
      Type;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "CodeStorageExceededException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _CodeStorageExceededException.prototype);
        this.Type = opts.Type;
      }
    };
    var CodeVerificationFailedException = class _CodeVerificationFailedException extends LambdaServiceException {
      static {
        __name(this, "_CodeVerificationFailedException");
      }
      static {
        __name2(this, "CodeVerificationFailedException");
      }
      name = "CodeVerificationFailedException";
      $fault = "client";
      Type;
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "CodeVerificationFailedException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _CodeVerificationFailedException.prototype);
        this.Type = opts.Type;
        this.Message = opts.Message;
      }
    };
    var LogFormat = {
      Json: "JSON",
      Text: "Text"
    };
    var SystemLogLevel = {
      Debug: "DEBUG",
      Info: "INFO",
      Warn: "WARN"
    };
    var PackageType = {
      Image: "Image",
      Zip: "Zip"
    };
    var Runtime = {
      dotnet6: "dotnet6",
      dotnet8: "dotnet8",
      dotnetcore10: "dotnetcore1.0",
      dotnetcore20: "dotnetcore2.0",
      dotnetcore21: "dotnetcore2.1",
      dotnetcore31: "dotnetcore3.1",
      go1x: "go1.x",
      java11: "java11",
      java17: "java17",
      java21: "java21",
      java8: "java8",
      java8al2: "java8.al2",
      nodejs: "nodejs",
      nodejs10x: "nodejs10.x",
      nodejs12x: "nodejs12.x",
      nodejs14x: "nodejs14.x",
      nodejs16x: "nodejs16.x",
      nodejs18x: "nodejs18.x",
      nodejs20x: "nodejs20.x",
      nodejs22x: "nodejs22.x",
      nodejs43: "nodejs4.3",
      nodejs43edge: "nodejs4.3-edge",
      nodejs610: "nodejs6.10",
      nodejs810: "nodejs8.10",
      provided: "provided",
      providedal2: "provided.al2",
      providedal2023: "provided.al2023",
      python27: "python2.7",
      python310: "python3.10",
      python311: "python3.11",
      python312: "python3.12",
      python313: "python3.13",
      python36: "python3.6",
      python37: "python3.7",
      python38: "python3.8",
      python39: "python3.9",
      ruby25: "ruby2.5",
      ruby27: "ruby2.7",
      ruby32: "ruby3.2",
      ruby33: "ruby3.3",
      ruby34: "ruby3.4"
    };
    var SnapStartApplyOn = {
      None: "None",
      PublishedVersions: "PublishedVersions"
    };
    var TracingMode = {
      Active: "Active",
      PassThrough: "PassThrough"
    };
    var LastUpdateStatus = {
      Failed: "Failed",
      InProgress: "InProgress",
      Successful: "Successful"
    };
    var LastUpdateStatusReasonCode = {
      DisabledKMSKey: "DisabledKMSKey",
      EFSIOError: "EFSIOError",
      EFSMountConnectivityError: "EFSMountConnectivityError",
      EFSMountFailure: "EFSMountFailure",
      EFSMountTimeout: "EFSMountTimeout",
      EniLimitExceeded: "EniLimitExceeded",
      FunctionError: "FunctionError",
      ImageAccessDenied: "ImageAccessDenied",
      ImageDeleted: "ImageDeleted",
      InsufficientRolePermissions: "InsufficientRolePermissions",
      InternalError: "InternalError",
      InvalidConfiguration: "InvalidConfiguration",
      InvalidImage: "InvalidImage",
      InvalidRuntime: "InvalidRuntime",
      InvalidSecurityGroup: "InvalidSecurityGroup",
      InvalidStateKMSKey: "InvalidStateKMSKey",
      InvalidSubnet: "InvalidSubnet",
      InvalidZipFileException: "InvalidZipFileException",
      KMSKeyAccessDenied: "KMSKeyAccessDenied",
      KMSKeyNotFound: "KMSKeyNotFound",
      SubnetOutOfIPAddresses: "SubnetOutOfIPAddresses"
    };
    var SnapStartOptimizationStatus = {
      Off: "Off",
      On: "On"
    };
    var State = {
      Active: "Active",
      Failed: "Failed",
      Inactive: "Inactive",
      Pending: "Pending"
    };
    var StateReasonCode = {
      Creating: "Creating",
      DisabledKMSKey: "DisabledKMSKey",
      EFSIOError: "EFSIOError",
      EFSMountConnectivityError: "EFSMountConnectivityError",
      EFSMountFailure: "EFSMountFailure",
      EFSMountTimeout: "EFSMountTimeout",
      EniLimitExceeded: "EniLimitExceeded",
      FunctionError: "FunctionError",
      Idle: "Idle",
      ImageAccessDenied: "ImageAccessDenied",
      ImageDeleted: "ImageDeleted",
      InsufficientRolePermissions: "InsufficientRolePermissions",
      InternalError: "InternalError",
      InvalidConfiguration: "InvalidConfiguration",
      InvalidImage: "InvalidImage",
      InvalidRuntime: "InvalidRuntime",
      InvalidSecurityGroup: "InvalidSecurityGroup",
      InvalidStateKMSKey: "InvalidStateKMSKey",
      InvalidSubnet: "InvalidSubnet",
      InvalidZipFileException: "InvalidZipFileException",
      KMSKeyAccessDenied: "KMSKeyAccessDenied",
      KMSKeyNotFound: "KMSKeyNotFound",
      Restoring: "Restoring",
      SubnetOutOfIPAddresses: "SubnetOutOfIPAddresses"
    };
    var InvalidCodeSignatureException = class _InvalidCodeSignatureException extends LambdaServiceException {
      static {
        __name(this, "_InvalidCodeSignatureException");
      }
      static {
        __name2(this, "InvalidCodeSignatureException");
      }
      name = "InvalidCodeSignatureException";
      $fault = "client";
      Type;
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidCodeSignatureException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidCodeSignatureException.prototype);
        this.Type = opts.Type;
        this.Message = opts.Message;
      }
    };
    var InvokeMode = {
      BUFFERED: "BUFFERED",
      RESPONSE_STREAM: "RESPONSE_STREAM"
    };
    var RecursiveLoop = {
      Allow: "Allow",
      Terminate: "Terminate"
    };
    var UpdateRuntimeOn = {
      Auto: "Auto",
      FunctionUpdate: "FunctionUpdate",
      Manual: "Manual"
    };
    var EC2AccessDeniedException = class _EC2AccessDeniedException extends LambdaServiceException {
      static {
        __name(this, "_EC2AccessDeniedException");
      }
      static {
        __name2(this, "EC2AccessDeniedException");
      }
      name = "EC2AccessDeniedException";
      $fault = "server";
      Type;
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "EC2AccessDeniedException",
          $fault: "server",
          ...opts
        });
        Object.setPrototypeOf(this, _EC2AccessDeniedException.prototype);
        this.Type = opts.Type;
        this.Message = opts.Message;
      }
    };
    var EC2ThrottledException = class _EC2ThrottledException extends LambdaServiceException {
      static {
        __name(this, "_EC2ThrottledException");
      }
      static {
        __name2(this, "EC2ThrottledException");
      }
      name = "EC2ThrottledException";
      $fault = "server";
      Type;
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "EC2ThrottledException",
          $fault: "server",
          ...opts
        });
        Object.setPrototypeOf(this, _EC2ThrottledException.prototype);
        this.Type = opts.Type;
        this.Message = opts.Message;
      }
    };
    var EC2UnexpectedException = class _EC2UnexpectedException extends LambdaServiceException {
      static {
        __name(this, "_EC2UnexpectedException");
      }
      static {
        __name2(this, "EC2UnexpectedException");
      }
      name = "EC2UnexpectedException";
      $fault = "server";
      Type;
      Message;
      EC2ErrorCode;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "EC2UnexpectedException",
          $fault: "server",
          ...opts
        });
        Object.setPrototypeOf(this, _EC2UnexpectedException.prototype);
        this.Type = opts.Type;
        this.Message = opts.Message;
        this.EC2ErrorCode = opts.EC2ErrorCode;
      }
    };
    var EFSIOException = class _EFSIOException extends LambdaServiceException {
      static {
        __name(this, "_EFSIOException");
      }
      static {
        __name2(this, "EFSIOException");
      }
      name = "EFSIOException";
      $fault = "client";
      Type;
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "EFSIOException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _EFSIOException.prototype);
        this.Type = opts.Type;
        this.Message = opts.Message;
      }
    };
    var EFSMountConnectivityException = class _EFSMountConnectivityException extends LambdaServiceException {
      static {
        __name(this, "_EFSMountConnectivityException");
      }
      static {
        __name2(this, "EFSMountConnectivityException");
      }
      name = "EFSMountConnectivityException";
      $fault = "client";
      Type;
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "EFSMountConnectivityException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _EFSMountConnectivityException.prototype);
        this.Type = opts.Type;
        this.Message = opts.Message;
      }
    };
    var EFSMountFailureException = class _EFSMountFailureException extends LambdaServiceException {
      static {
        __name(this, "_EFSMountFailureException");
      }
      static {
        __name2(this, "EFSMountFailureException");
      }
      name = "EFSMountFailureException";
      $fault = "client";
      Type;
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "EFSMountFailureException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _EFSMountFailureException.prototype);
        this.Type = opts.Type;
        this.Message = opts.Message;
      }
    };
    var EFSMountTimeoutException = class _EFSMountTimeoutException extends LambdaServiceException {
      static {
        __name(this, "_EFSMountTimeoutException");
      }
      static {
        __name2(this, "EFSMountTimeoutException");
      }
      name = "EFSMountTimeoutException";
      $fault = "client";
      Type;
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "EFSMountTimeoutException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _EFSMountTimeoutException.prototype);
        this.Type = opts.Type;
        this.Message = opts.Message;
      }
    };
    var ENILimitReachedException = class _ENILimitReachedException extends LambdaServiceException {
      static {
        __name(this, "_ENILimitReachedException");
      }
      static {
        __name2(this, "ENILimitReachedException");
      }
      name = "ENILimitReachedException";
      $fault = "server";
      Type;
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ENILimitReachedException",
          $fault: "server",
          ...opts
        });
        Object.setPrototypeOf(this, _ENILimitReachedException.prototype);
        this.Type = opts.Type;
        this.Message = opts.Message;
      }
    };
    var InvalidRequestContentException = class _InvalidRequestContentException extends LambdaServiceException {
      static {
        __name(this, "_InvalidRequestContentException");
      }
      static {
        __name2(this, "InvalidRequestContentException");
      }
      name = "InvalidRequestContentException";
      $fault = "client";
      /**
       * <p>The exception type.</p>
       * @public
       */
      Type;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidRequestContentException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidRequestContentException.prototype);
        this.Type = opts.Type;
      }
    };
    var InvalidRuntimeException = class _InvalidRuntimeException extends LambdaServiceException {
      static {
        __name(this, "_InvalidRuntimeException");
      }
      static {
        __name2(this, "InvalidRuntimeException");
      }
      name = "InvalidRuntimeException";
      $fault = "server";
      Type;
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidRuntimeException",
          $fault: "server",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidRuntimeException.prototype);
        this.Type = opts.Type;
        this.Message = opts.Message;
      }
    };
    var InvalidSecurityGroupIDException = class _InvalidSecurityGroupIDException extends LambdaServiceException {
      static {
        __name(this, "_InvalidSecurityGroupIDException");
      }
      static {
        __name2(this, "InvalidSecurityGroupIDException");
      }
      name = "InvalidSecurityGroupIDException";
      $fault = "server";
      Type;
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidSecurityGroupIDException",
          $fault: "server",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidSecurityGroupIDException.prototype);
        this.Type = opts.Type;
        this.Message = opts.Message;
      }
    };
    var InvalidSubnetIDException = class _InvalidSubnetIDException extends LambdaServiceException {
      static {
        __name(this, "_InvalidSubnetIDException");
      }
      static {
        __name2(this, "InvalidSubnetIDException");
      }
      name = "InvalidSubnetIDException";
      $fault = "server";
      Type;
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidSubnetIDException",
          $fault: "server",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidSubnetIDException.prototype);
        this.Type = opts.Type;
        this.Message = opts.Message;
      }
    };
    var InvalidZipFileException = class _InvalidZipFileException extends LambdaServiceException {
      static {
        __name(this, "_InvalidZipFileException");
      }
      static {
        __name2(this, "InvalidZipFileException");
      }
      name = "InvalidZipFileException";
      $fault = "server";
      Type;
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidZipFileException",
          $fault: "server",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidZipFileException.prototype);
        this.Type = opts.Type;
        this.Message = opts.Message;
      }
    };
    var InvocationType = {
      DryRun: "DryRun",
      Event: "Event",
      RequestResponse: "RequestResponse"
    };
    var LogType = {
      None: "None",
      Tail: "Tail"
    };
    var KMSAccessDeniedException = class _KMSAccessDeniedException extends LambdaServiceException {
      static {
        __name(this, "_KMSAccessDeniedException");
      }
      static {
        __name2(this, "KMSAccessDeniedException");
      }
      name = "KMSAccessDeniedException";
      $fault = "server";
      Type;
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "KMSAccessDeniedException",
          $fault: "server",
          ...opts
        });
        Object.setPrototypeOf(this, _KMSAccessDeniedException.prototype);
        this.Type = opts.Type;
        this.Message = opts.Message;
      }
    };
    var KMSDisabledException = class _KMSDisabledException extends LambdaServiceException {
      static {
        __name(this, "_KMSDisabledException");
      }
      static {
        __name2(this, "KMSDisabledException");
      }
      name = "KMSDisabledException";
      $fault = "server";
      Type;
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "KMSDisabledException",
          $fault: "server",
          ...opts
        });
        Object.setPrototypeOf(this, _KMSDisabledException.prototype);
        this.Type = opts.Type;
        this.Message = opts.Message;
      }
    };
    var KMSInvalidStateException = class _KMSInvalidStateException extends LambdaServiceException {
      static {
        __name(this, "_KMSInvalidStateException");
      }
      static {
        __name2(this, "KMSInvalidStateException");
      }
      name = "KMSInvalidStateException";
      $fault = "server";
      Type;
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "KMSInvalidStateException",
          $fault: "server",
          ...opts
        });
        Object.setPrototypeOf(this, _KMSInvalidStateException.prototype);
        this.Type = opts.Type;
        this.Message = opts.Message;
      }
    };
    var KMSNotFoundException = class _KMSNotFoundException extends LambdaServiceException {
      static {
        __name(this, "_KMSNotFoundException");
      }
      static {
        __name2(this, "KMSNotFoundException");
      }
      name = "KMSNotFoundException";
      $fault = "server";
      Type;
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "KMSNotFoundException",
          $fault: "server",
          ...opts
        });
        Object.setPrototypeOf(this, _KMSNotFoundException.prototype);
        this.Type = opts.Type;
        this.Message = opts.Message;
      }
    };
    var RecursiveInvocationException = class _RecursiveInvocationException extends LambdaServiceException {
      static {
        __name(this, "_RecursiveInvocationException");
      }
      static {
        __name2(this, "RecursiveInvocationException");
      }
      name = "RecursiveInvocationException";
      $fault = "client";
      /**
       * <p>The exception type.</p>
       * @public
       */
      Type;
      /**
       * <p>The exception message.</p>
       * @public
       */
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "RecursiveInvocationException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _RecursiveInvocationException.prototype);
        this.Type = opts.Type;
        this.Message = opts.Message;
      }
    };
    var RequestTooLargeException = class _RequestTooLargeException extends LambdaServiceException {
      static {
        __name(this, "_RequestTooLargeException");
      }
      static {
        __name2(this, "RequestTooLargeException");
      }
      name = "RequestTooLargeException";
      $fault = "client";
      Type;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "RequestTooLargeException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _RequestTooLargeException.prototype);
        this.Type = opts.Type;
      }
    };
    var ResourceNotReadyException = class _ResourceNotReadyException extends LambdaServiceException {
      static {
        __name(this, "_ResourceNotReadyException");
      }
      static {
        __name2(this, "ResourceNotReadyException");
      }
      name = "ResourceNotReadyException";
      $fault = "server";
      /**
       * <p>The exception type.</p>
       * @public
       */
      Type;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ResourceNotReadyException",
          $fault: "server",
          ...opts
        });
        Object.setPrototypeOf(this, _ResourceNotReadyException.prototype);
        this.Type = opts.Type;
      }
    };
    var SnapStartException = class _SnapStartException extends LambdaServiceException {
      static {
        __name(this, "_SnapStartException");
      }
      static {
        __name2(this, "SnapStartException");
      }
      name = "SnapStartException";
      $fault = "client";
      Type;
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "SnapStartException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _SnapStartException.prototype);
        this.Type = opts.Type;
        this.Message = opts.Message;
      }
    };
    var SnapStartNotReadyException = class _SnapStartNotReadyException extends LambdaServiceException {
      static {
        __name(this, "_SnapStartNotReadyException");
      }
      static {
        __name2(this, "SnapStartNotReadyException");
      }
      name = "SnapStartNotReadyException";
      $fault = "client";
      Type;
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "SnapStartNotReadyException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _SnapStartNotReadyException.prototype);
        this.Type = opts.Type;
        this.Message = opts.Message;
      }
    };
    var SnapStartTimeoutException = class _SnapStartTimeoutException extends LambdaServiceException {
      static {
        __name(this, "_SnapStartTimeoutException");
      }
      static {
        __name2(this, "SnapStartTimeoutException");
      }
      name = "SnapStartTimeoutException";
      $fault = "client";
      Type;
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "SnapStartTimeoutException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _SnapStartTimeoutException.prototype);
        this.Type = opts.Type;
        this.Message = opts.Message;
      }
    };
    var SubnetIPAddressLimitReachedException = class _SubnetIPAddressLimitReachedException extends LambdaServiceException {
      static {
        __name(this, "_SubnetIPAddressLimitReachedException");
      }
      static {
        __name2(this, "SubnetIPAddressLimitReachedException");
      }
      name = "SubnetIPAddressLimitReachedException";
      $fault = "server";
      Type;
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "SubnetIPAddressLimitReachedException",
          $fault: "server",
          ...opts
        });
        Object.setPrototypeOf(this, _SubnetIPAddressLimitReachedException.prototype);
        this.Type = opts.Type;
        this.Message = opts.Message;
      }
    };
    var UnsupportedMediaTypeException = class _UnsupportedMediaTypeException extends LambdaServiceException {
      static {
        __name(this, "_UnsupportedMediaTypeException");
      }
      static {
        __name2(this, "UnsupportedMediaTypeException");
      }
      name = "UnsupportedMediaTypeException";
      $fault = "client";
      Type;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "UnsupportedMediaTypeException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _UnsupportedMediaTypeException.prototype);
        this.Type = opts.Type;
      }
    };
    var ResponseStreamingInvocationType = {
      DryRun: "DryRun",
      RequestResponse: "RequestResponse"
    };
    var InvokeWithResponseStreamResponseEvent;
    ((InvokeWithResponseStreamResponseEvent3) => {
      InvokeWithResponseStreamResponseEvent3.visit = /* @__PURE__ */ __name2((value, visitor) => {
        if (value.PayloadChunk !== void 0) return visitor.PayloadChunk(value.PayloadChunk);
        if (value.InvokeComplete !== void 0) return visitor.InvokeComplete(value.InvokeComplete);
        return visitor._(value.$unknown[0], value.$unknown[1]);
      }, "visit");
    })(InvokeWithResponseStreamResponseEvent || (InvokeWithResponseStreamResponseEvent = {}));
    var FunctionVersion = {
      ALL: "ALL"
    };
    var ProvisionedConcurrencyStatusEnum = {
      FAILED: "FAILED",
      IN_PROGRESS: "IN_PROGRESS",
      READY: "READY"
    };
    var ProvisionedConcurrencyConfigNotFoundException = class _ProvisionedConcurrencyConfigNotFoundException extends LambdaServiceException {
      static {
        __name(this, "_ProvisionedConcurrencyConfigNotFoundException");
      }
      static {
        __name2(this, "ProvisionedConcurrencyConfigNotFoundException");
      }
      name = "ProvisionedConcurrencyConfigNotFoundException";
      $fault = "client";
      Type;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ProvisionedConcurrencyConfigNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ProvisionedConcurrencyConfigNotFoundException.prototype);
        this.Type = opts.Type;
      }
    };
    var FunctionCodeFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.ZipFile && { ZipFile: import_smithy_client28.SENSITIVE_STRING }
    }), "FunctionCodeFilterSensitiveLog");
    var EnvironmentFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Variables && { Variables: import_smithy_client28.SENSITIVE_STRING }
    }), "EnvironmentFilterSensitiveLog");
    var CreateFunctionRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Code && { Code: FunctionCodeFilterSensitiveLog(obj.Code) },
      ...obj.Environment && { Environment: EnvironmentFilterSensitiveLog(obj.Environment) }
    }), "CreateFunctionRequestFilterSensitiveLog");
    var EnvironmentErrorFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Message && { Message: import_smithy_client28.SENSITIVE_STRING }
    }), "EnvironmentErrorFilterSensitiveLog");
    var EnvironmentResponseFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Variables && { Variables: import_smithy_client28.SENSITIVE_STRING },
      ...obj.Error && { Error: EnvironmentErrorFilterSensitiveLog(obj.Error) }
    }), "EnvironmentResponseFilterSensitiveLog");
    var ImageConfigErrorFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Message && { Message: import_smithy_client28.SENSITIVE_STRING }
    }), "ImageConfigErrorFilterSensitiveLog");
    var ImageConfigResponseFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Error && { Error: ImageConfigErrorFilterSensitiveLog(obj.Error) }
    }), "ImageConfigResponseFilterSensitiveLog");
    var RuntimeVersionErrorFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Message && { Message: import_smithy_client28.SENSITIVE_STRING }
    }), "RuntimeVersionErrorFilterSensitiveLog");
    var RuntimeVersionConfigFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Error && { Error: RuntimeVersionErrorFilterSensitiveLog(obj.Error) }
    }), "RuntimeVersionConfigFilterSensitiveLog");
    var FunctionConfigurationFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Environment && { Environment: EnvironmentResponseFilterSensitiveLog(obj.Environment) },
      ...obj.ImageConfigResponse && {
        ImageConfigResponse: ImageConfigResponseFilterSensitiveLog(obj.ImageConfigResponse)
      },
      ...obj.RuntimeVersionConfig && {
        RuntimeVersionConfig: RuntimeVersionConfigFilterSensitiveLog(obj.RuntimeVersionConfig)
      }
    }), "FunctionConfigurationFilterSensitiveLog");
    var GetFunctionResponseFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Configuration && { Configuration: FunctionConfigurationFilterSensitiveLog(obj.Configuration) }
    }), "GetFunctionResponseFilterSensitiveLog");
    var InvocationRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Payload && { Payload: import_smithy_client28.SENSITIVE_STRING }
    }), "InvocationRequestFilterSensitiveLog");
    var InvocationResponseFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Payload && { Payload: import_smithy_client28.SENSITIVE_STRING }
    }), "InvocationResponseFilterSensitiveLog");
    var InvokeAsyncRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj
    }), "InvokeAsyncRequestFilterSensitiveLog");
    var InvokeWithResponseStreamRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Payload && { Payload: import_smithy_client28.SENSITIVE_STRING }
    }), "InvokeWithResponseStreamRequestFilterSensitiveLog");
    var InvokeResponseStreamUpdateFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Payload && { Payload: import_smithy_client28.SENSITIVE_STRING }
    }), "InvokeResponseStreamUpdateFilterSensitiveLog");
    var InvokeWithResponseStreamResponseEventFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => {
      if (obj.PayloadChunk !== void 0)
        return { PayloadChunk: InvokeResponseStreamUpdateFilterSensitiveLog(obj.PayloadChunk) };
      if (obj.InvokeComplete !== void 0) return { InvokeComplete: obj.InvokeComplete };
      if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
    }, "InvokeWithResponseStreamResponseEventFilterSensitiveLog");
    var InvokeWithResponseStreamResponseFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.EventStream && { EventStream: "STREAMING_CONTENT" }
    }), "InvokeWithResponseStreamResponseFilterSensitiveLog");
    var ListFunctionsResponseFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Functions && { Functions: obj.Functions.map((item) => FunctionConfigurationFilterSensitiveLog(item)) }
    }), "ListFunctionsResponseFilterSensitiveLog");
    var UpdateFunctionCodeRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.ZipFile && { ZipFile: import_smithy_client28.SENSITIVE_STRING }
    }), "UpdateFunctionCodeRequestFilterSensitiveLog");
    var UpdateFunctionConfigurationRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Environment && { Environment: EnvironmentFilterSensitiveLog(obj.Environment) }
    }), "UpdateFunctionConfigurationRequestFilterSensitiveLog");
    var ListVersionsByFunctionResponseFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Versions && { Versions: obj.Versions.map((item) => FunctionConfigurationFilterSensitiveLog(item)) }
    }), "ListVersionsByFunctionResponseFilterSensitiveLog");
    var LayerVersionContentInputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.ZipFile && { ZipFile: import_smithy_client28.SENSITIVE_STRING }
    }), "LayerVersionContentInputFilterSensitiveLog");
    var PublishLayerVersionRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Content && { Content: LayerVersionContentInputFilterSensitiveLog(obj.Content) }
    }), "PublishLayerVersionRequestFilterSensitiveLog");
    var se_AddLayerVersionPermissionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/json"
      };
      b3.bp("/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy");
      b3.p("LayerName", () => input.LayerName, "{LayerName}", false);
      b3.p("VersionNumber", () => input.VersionNumber.toString(), "{VersionNumber}", false);
      const query = (0, import_smithy_client28.map)({
        [_RI]: [, input[_RI]]
      });
      let body;
      body = JSON.stringify(
        (0, import_smithy_client28.take)(input, {
          Action: [],
          OrganizationId: [],
          Principal: [],
          StatementId: []
        })
      );
      b3.m("POST").h(headers).q(query).b(body);
      return b3.build();
    }, "se_AddLayerVersionPermissionCommand");
    var se_AddPermissionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/json"
      };
      b3.bp("/2015-03-31/functions/{FunctionName}/policy");
      b3.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
      const query = (0, import_smithy_client28.map)({
        [_Q]: [, input[_Q]]
      });
      let body;
      body = JSON.stringify(
        (0, import_smithy_client28.take)(input, {
          Action: [],
          EventSourceToken: [],
          FunctionUrlAuthType: [],
          Principal: [],
          PrincipalOrgID: [],
          RevisionId: [],
          SourceAccount: [],
          SourceArn: [],
          StatementId: []
        })
      );
      b3.m("POST").h(headers).q(query).b(body);
      return b3.build();
    }, "se_AddPermissionCommand");
    var se_CreateAliasCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/json"
      };
      b3.bp("/2015-03-31/functions/{FunctionName}/aliases");
      b3.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
      let body;
      body = JSON.stringify(
        (0, import_smithy_client28.take)(input, {
          Description: [],
          FunctionVersion: [],
          Name: [],
          RoutingConfig: /* @__PURE__ */ __name2((_3) => se_AliasRoutingConfiguration(_3, context), "RoutingConfig")
        })
      );
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_CreateAliasCommand");
    var se_CreateCodeSigningConfigCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/json"
      };
      b3.bp("/2020-04-22/code-signing-configs");
      let body;
      body = JSON.stringify(
        (0, import_smithy_client28.take)(input, {
          AllowedPublishers: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "AllowedPublishers"),
          CodeSigningPolicies: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "CodeSigningPolicies"),
          Description: [],
          Tags: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "Tags")
        })
      );
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_CreateCodeSigningConfigCommand");
    var se_CreateEventSourceMappingCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/json"
      };
      b3.bp("/2015-03-31/event-source-mappings");
      let body;
      body = JSON.stringify(
        (0, import_smithy_client28.take)(input, {
          AmazonManagedKafkaEventSourceConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "AmazonManagedKafkaEventSourceConfig"),
          BatchSize: [],
          BisectBatchOnFunctionError: [],
          DestinationConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "DestinationConfig"),
          DocumentDBEventSourceConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "DocumentDBEventSourceConfig"),
          Enabled: [],
          EventSourceArn: [],
          FilterCriteria: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "FilterCriteria"),
          FunctionName: [],
          FunctionResponseTypes: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "FunctionResponseTypes"),
          KMSKeyArn: [],
          MaximumBatchingWindowInSeconds: [],
          MaximumRecordAgeInSeconds: [],
          MaximumRetryAttempts: [],
          MetricsConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "MetricsConfig"),
          ParallelizationFactor: [],
          ProvisionedPollerConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "ProvisionedPollerConfig"),
          Queues: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "Queues"),
          ScalingConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "ScalingConfig"),
          SelfManagedEventSource: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "SelfManagedEventSource"),
          SelfManagedKafkaEventSourceConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "SelfManagedKafkaEventSourceConfig"),
          SourceAccessConfigurations: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "SourceAccessConfigurations"),
          StartingPosition: [],
          StartingPositionTimestamp: /* @__PURE__ */ __name2((_3) => _3.getTime() / 1e3, "StartingPositionTimestamp"),
          Tags: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "Tags"),
          Topics: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "Topics"),
          TumblingWindowInSeconds: []
        })
      );
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_CreateEventSourceMappingCommand");
    var se_CreateFunctionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/json"
      };
      b3.bp("/2015-03-31/functions");
      let body;
      body = JSON.stringify(
        (0, import_smithy_client28.take)(input, {
          Architectures: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "Architectures"),
          Code: /* @__PURE__ */ __name2((_3) => se_FunctionCode(_3, context), "Code"),
          CodeSigningConfigArn: [],
          DeadLetterConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "DeadLetterConfig"),
          Description: [],
          Environment: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "Environment"),
          EphemeralStorage: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "EphemeralStorage"),
          FileSystemConfigs: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "FileSystemConfigs"),
          FunctionName: [],
          Handler: [],
          ImageConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "ImageConfig"),
          KMSKeyArn: [],
          Layers: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "Layers"),
          LoggingConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "LoggingConfig"),
          MemorySize: [],
          PackageType: [],
          Publish: [],
          Role: [],
          Runtime: [],
          SnapStart: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "SnapStart"),
          Tags: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "Tags"),
          Timeout: [],
          TracingConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "TracingConfig"),
          VpcConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "VpcConfig")
        })
      );
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_CreateFunctionCommand");
    var se_CreateFunctionUrlConfigCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/json"
      };
      b3.bp("/2021-10-31/functions/{FunctionName}/url");
      b3.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
      const query = (0, import_smithy_client28.map)({
        [_Q]: [, input[_Q]]
      });
      let body;
      body = JSON.stringify(
        (0, import_smithy_client28.take)(input, {
          AuthType: [],
          Cors: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "Cors"),
          InvokeMode: []
        })
      );
      b3.m("POST").h(headers).q(query).b(body);
      return b3.build();
    }, "se_CreateFunctionUrlConfigCommand");
    var se_DeleteAliasCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2015-03-31/functions/{FunctionName}/aliases/{Name}");
      b3.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
      b3.p("Name", () => input.Name, "{Name}", false);
      let body;
      b3.m("DELETE").h(headers).b(body);
      return b3.build();
    }, "se_DeleteAliasCommand");
    var se_DeleteCodeSigningConfigCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2020-04-22/code-signing-configs/{CodeSigningConfigArn}");
      b3.p("CodeSigningConfigArn", () => input.CodeSigningConfigArn, "{CodeSigningConfigArn}", false);
      let body;
      b3.m("DELETE").h(headers).b(body);
      return b3.build();
    }, "se_DeleteCodeSigningConfigCommand");
    var se_DeleteEventSourceMappingCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2015-03-31/event-source-mappings/{UUID}");
      b3.p("UUID", () => input.UUID, "{UUID}", false);
      let body;
      b3.m("DELETE").h(headers).b(body);
      return b3.build();
    }, "se_DeleteEventSourceMappingCommand");
    var se_DeleteFunctionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2015-03-31/functions/{FunctionName}");
      b3.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
      const query = (0, import_smithy_client28.map)({
        [_Q]: [, input[_Q]]
      });
      let body;
      b3.m("DELETE").h(headers).q(query).b(body);
      return b3.build();
    }, "se_DeleteFunctionCommand");
    var se_DeleteFunctionCodeSigningConfigCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2020-06-30/functions/{FunctionName}/code-signing-config");
      b3.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
      let body;
      b3.m("DELETE").h(headers).b(body);
      return b3.build();
    }, "se_DeleteFunctionCodeSigningConfigCommand");
    var se_DeleteFunctionConcurrencyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2017-10-31/functions/{FunctionName}/concurrency");
      b3.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
      let body;
      b3.m("DELETE").h(headers).b(body);
      return b3.build();
    }, "se_DeleteFunctionConcurrencyCommand");
    var se_DeleteFunctionEventInvokeConfigCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2019-09-25/functions/{FunctionName}/event-invoke-config");
      b3.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
      const query = (0, import_smithy_client28.map)({
        [_Q]: [, input[_Q]]
      });
      let body;
      b3.m("DELETE").h(headers).q(query).b(body);
      return b3.build();
    }, "se_DeleteFunctionEventInvokeConfigCommand");
    var se_DeleteFunctionUrlConfigCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2021-10-31/functions/{FunctionName}/url");
      b3.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
      const query = (0, import_smithy_client28.map)({
        [_Q]: [, input[_Q]]
      });
      let body;
      b3.m("DELETE").h(headers).q(query).b(body);
      return b3.build();
    }, "se_DeleteFunctionUrlConfigCommand");
    var se_DeleteLayerVersionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2018-10-31/layers/{LayerName}/versions/{VersionNumber}");
      b3.p("LayerName", () => input.LayerName, "{LayerName}", false);
      b3.p("VersionNumber", () => input.VersionNumber.toString(), "{VersionNumber}", false);
      let body;
      b3.m("DELETE").h(headers).b(body);
      return b3.build();
    }, "se_DeleteLayerVersionCommand");
    var se_DeleteProvisionedConcurrencyConfigCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2019-09-30/functions/{FunctionName}/provisioned-concurrency");
      b3.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
      const query = (0, import_smithy_client28.map)({
        [_Q]: [, (0, import_smithy_client28.expectNonNull)(input[_Q], `Qualifier`)]
      });
      let body;
      b3.m("DELETE").h(headers).q(query).b(body);
      return b3.build();
    }, "se_DeleteProvisionedConcurrencyConfigCommand");
    var se_GetAccountSettingsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2016-08-19/account-settings");
      let body;
      b3.m("GET").h(headers).b(body);
      return b3.build();
    }, "se_GetAccountSettingsCommand");
    var se_GetAliasCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2015-03-31/functions/{FunctionName}/aliases/{Name}");
      b3.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
      b3.p("Name", () => input.Name, "{Name}", false);
      let body;
      b3.m("GET").h(headers).b(body);
      return b3.build();
    }, "se_GetAliasCommand");
    var se_GetCodeSigningConfigCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2020-04-22/code-signing-configs/{CodeSigningConfigArn}");
      b3.p("CodeSigningConfigArn", () => input.CodeSigningConfigArn, "{CodeSigningConfigArn}", false);
      let body;
      b3.m("GET").h(headers).b(body);
      return b3.build();
    }, "se_GetCodeSigningConfigCommand");
    var se_GetEventSourceMappingCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2015-03-31/event-source-mappings/{UUID}");
      b3.p("UUID", () => input.UUID, "{UUID}", false);
      let body;
      b3.m("GET").h(headers).b(body);
      return b3.build();
    }, "se_GetEventSourceMappingCommand");
    var se_GetFunctionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2015-03-31/functions/{FunctionName}");
      b3.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
      const query = (0, import_smithy_client28.map)({
        [_Q]: [, input[_Q]]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_GetFunctionCommand");
    var se_GetFunctionCodeSigningConfigCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2020-06-30/functions/{FunctionName}/code-signing-config");
      b3.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
      let body;
      b3.m("GET").h(headers).b(body);
      return b3.build();
    }, "se_GetFunctionCodeSigningConfigCommand");
    var se_GetFunctionConcurrencyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2019-09-30/functions/{FunctionName}/concurrency");
      b3.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
      let body;
      b3.m("GET").h(headers).b(body);
      return b3.build();
    }, "se_GetFunctionConcurrencyCommand");
    var se_GetFunctionConfigurationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2015-03-31/functions/{FunctionName}/configuration");
      b3.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
      const query = (0, import_smithy_client28.map)({
        [_Q]: [, input[_Q]]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_GetFunctionConfigurationCommand");
    var se_GetFunctionEventInvokeConfigCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2019-09-25/functions/{FunctionName}/event-invoke-config");
      b3.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
      const query = (0, import_smithy_client28.map)({
        [_Q]: [, input[_Q]]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_GetFunctionEventInvokeConfigCommand");
    var se_GetFunctionRecursionConfigCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2024-08-31/functions/{FunctionName}/recursion-config");
      b3.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
      let body;
      b3.m("GET").h(headers).b(body);
      return b3.build();
    }, "se_GetFunctionRecursionConfigCommand");
    var se_GetFunctionUrlConfigCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2021-10-31/functions/{FunctionName}/url");
      b3.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
      const query = (0, import_smithy_client28.map)({
        [_Q]: [, input[_Q]]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_GetFunctionUrlConfigCommand");
    var se_GetLayerVersionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2018-10-31/layers/{LayerName}/versions/{VersionNumber}");
      b3.p("LayerName", () => input.LayerName, "{LayerName}", false);
      b3.p("VersionNumber", () => input.VersionNumber.toString(), "{VersionNumber}", false);
      let body;
      b3.m("GET").h(headers).b(body);
      return b3.build();
    }, "se_GetLayerVersionCommand");
    var se_GetLayerVersionByArnCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2018-10-31/layers");
      const query = (0, import_smithy_client28.map)({
        [_f]: [, "LayerVersion"],
        [_A2]: [, (0, import_smithy_client28.expectNonNull)(input[_A2], `Arn`)]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_GetLayerVersionByArnCommand");
    var se_GetLayerVersionPolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy");
      b3.p("LayerName", () => input.LayerName, "{LayerName}", false);
      b3.p("VersionNumber", () => input.VersionNumber.toString(), "{VersionNumber}", false);
      let body;
      b3.m("GET").h(headers).b(body);
      return b3.build();
    }, "se_GetLayerVersionPolicyCommand");
    var se_GetPolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2015-03-31/functions/{FunctionName}/policy");
      b3.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
      const query = (0, import_smithy_client28.map)({
        [_Q]: [, input[_Q]]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_GetPolicyCommand");
    var se_GetProvisionedConcurrencyConfigCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2019-09-30/functions/{FunctionName}/provisioned-concurrency");
      b3.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
      const query = (0, import_smithy_client28.map)({
        [_Q]: [, (0, import_smithy_client28.expectNonNull)(input[_Q], `Qualifier`)]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_GetProvisionedConcurrencyConfigCommand");
    var se_GetRuntimeManagementConfigCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2021-07-20/functions/{FunctionName}/runtime-management-config");
      b3.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
      const query = (0, import_smithy_client28.map)({
        [_Q]: [, input[_Q]]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_GetRuntimeManagementConfigCommand");
    var se_InvokeCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        "content-type": "application/octet-stream",
        [_xait]: input[_IT],
        [_xalt]: input[_LT],
        [_xacc]: input[_CC]
      });
      b3.bp("/2015-03-31/functions/{FunctionName}/invocations");
      b3.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
      const query = (0, import_smithy_client28.map)({
        [_Q]: [, input[_Q]]
      });
      let body;
      if (input.Payload !== void 0) {
        body = input.Payload;
      }
      b3.m("POST").h(headers).q(query).b(body);
      return b3.build();
    }, "se_InvokeCommand");
    var se_InvokeAsyncCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/octet-stream"
      };
      b3.bp("/2014-11-13/functions/{FunctionName}/invoke-async");
      b3.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
      let body;
      if (input.InvokeArgs !== void 0) {
        body = input.InvokeArgs;
      }
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_InvokeAsyncCommand");
    var se_InvokeWithResponseStreamCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = (0, import_smithy_client28.map)({}, import_smithy_client28.isSerializableHeaderValue, {
        "content-type": "application/octet-stream",
        [_xait]: input[_IT],
        [_xalt]: input[_LT],
        [_xacc]: input[_CC]
      });
      b3.bp("/2021-11-15/functions/{FunctionName}/response-streaming-invocations");
      b3.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
      const query = (0, import_smithy_client28.map)({
        [_Q]: [, input[_Q]]
      });
      let body;
      if (input.Payload !== void 0) {
        body = input.Payload;
      }
      b3.m("POST").h(headers).q(query).b(body);
      return b3.build();
    }, "se_InvokeWithResponseStreamCommand");
    var se_ListAliasesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2015-03-31/functions/{FunctionName}/aliases");
      b3.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
      const query = (0, import_smithy_client28.map)({
        [_FV]: [, input[_FV]],
        [_M]: [, input[_M]],
        [_MI]: [() => input.MaxItems !== void 0, () => input[_MI].toString()]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_ListAliasesCommand");
    var se_ListCodeSigningConfigsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2020-04-22/code-signing-configs");
      const query = (0, import_smithy_client28.map)({
        [_M]: [, input[_M]],
        [_MI]: [() => input.MaxItems !== void 0, () => input[_MI].toString()]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_ListCodeSigningConfigsCommand");
    var se_ListEventSourceMappingsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2015-03-31/event-source-mappings");
      const query = (0, import_smithy_client28.map)({
        [_ESA]: [, input[_ESA]],
        [_FN]: [, input[_FN]],
        [_M]: [, input[_M]],
        [_MI]: [() => input.MaxItems !== void 0, () => input[_MI].toString()]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_ListEventSourceMappingsCommand");
    var se_ListFunctionEventInvokeConfigsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2019-09-25/functions/{FunctionName}/event-invoke-config/list");
      b3.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
      const query = (0, import_smithy_client28.map)({
        [_M]: [, input[_M]],
        [_MI]: [() => input.MaxItems !== void 0, () => input[_MI].toString()]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_ListFunctionEventInvokeConfigsCommand");
    var se_ListFunctionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2015-03-31/functions");
      const query = (0, import_smithy_client28.map)({
        [_MR]: [, input[_MR]],
        [_FV]: [, input[_FV]],
        [_M]: [, input[_M]],
        [_MI]: [() => input.MaxItems !== void 0, () => input[_MI].toString()]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_ListFunctionsCommand");
    var se_ListFunctionsByCodeSigningConfigCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2020-04-22/code-signing-configs/{CodeSigningConfigArn}/functions");
      b3.p("CodeSigningConfigArn", () => input.CodeSigningConfigArn, "{CodeSigningConfigArn}", false);
      const query = (0, import_smithy_client28.map)({
        [_M]: [, input[_M]],
        [_MI]: [() => input.MaxItems !== void 0, () => input[_MI].toString()]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_ListFunctionsByCodeSigningConfigCommand");
    var se_ListFunctionUrlConfigsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2021-10-31/functions/{FunctionName}/urls");
      b3.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
      const query = (0, import_smithy_client28.map)({
        [_M]: [, input[_M]],
        [_MI]: [() => input.MaxItems !== void 0, () => input[_MI].toString()]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_ListFunctionUrlConfigsCommand");
    var se_ListLayersCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2018-10-31/layers");
      const query = (0, import_smithy_client28.map)({
        [_CR]: [, input[_CR]],
        [_M]: [, input[_M]],
        [_MI]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
        [_CA2]: [, input[_CA2]]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_ListLayersCommand");
    var se_ListLayerVersionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2018-10-31/layers/{LayerName}/versions");
      b3.p("LayerName", () => input.LayerName, "{LayerName}", false);
      const query = (0, import_smithy_client28.map)({
        [_CR]: [, input[_CR]],
        [_M]: [, input[_M]],
        [_MI]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
        [_CA2]: [, input[_CA2]]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_ListLayerVersionsCommand");
    var se_ListProvisionedConcurrencyConfigsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2019-09-30/functions/{FunctionName}/provisioned-concurrency");
      b3.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
      const query = (0, import_smithy_client28.map)({
        [_L]: [, "ALL"],
        [_M]: [, input[_M]],
        [_MI]: [() => input.MaxItems !== void 0, () => input[_MI].toString()]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_ListProvisionedConcurrencyConfigsCommand");
    var se_ListTagsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2017-03-31/tags/{Resource}");
      b3.p("Resource", () => input.Resource, "{Resource}", false);
      let body;
      b3.m("GET").h(headers).b(body);
      return b3.build();
    }, "se_ListTagsCommand");
    var se_ListVersionsByFunctionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2015-03-31/functions/{FunctionName}/versions");
      b3.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
      const query = (0, import_smithy_client28.map)({
        [_M]: [, input[_M]],
        [_MI]: [() => input.MaxItems !== void 0, () => input[_MI].toString()]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_ListVersionsByFunctionCommand");
    var se_PublishLayerVersionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/json"
      };
      b3.bp("/2018-10-31/layers/{LayerName}/versions");
      b3.p("LayerName", () => input.LayerName, "{LayerName}", false);
      let body;
      body = JSON.stringify(
        (0, import_smithy_client28.take)(input, {
          CompatibleArchitectures: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "CompatibleArchitectures"),
          CompatibleRuntimes: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "CompatibleRuntimes"),
          Content: /* @__PURE__ */ __name2((_3) => se_LayerVersionContentInput(_3, context), "Content"),
          Description: [],
          LicenseInfo: []
        })
      );
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_PublishLayerVersionCommand");
    var se_PublishVersionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/json"
      };
      b3.bp("/2015-03-31/functions/{FunctionName}/versions");
      b3.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
      let body;
      body = JSON.stringify(
        (0, import_smithy_client28.take)(input, {
          CodeSha256: [],
          Description: [],
          RevisionId: []
        })
      );
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_PublishVersionCommand");
    var se_PutFunctionCodeSigningConfigCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/json"
      };
      b3.bp("/2020-06-30/functions/{FunctionName}/code-signing-config");
      b3.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
      let body;
      body = JSON.stringify(
        (0, import_smithy_client28.take)(input, {
          CodeSigningConfigArn: []
        })
      );
      b3.m("PUT").h(headers).b(body);
      return b3.build();
    }, "se_PutFunctionCodeSigningConfigCommand");
    var se_PutFunctionConcurrencyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/json"
      };
      b3.bp("/2017-10-31/functions/{FunctionName}/concurrency");
      b3.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
      let body;
      body = JSON.stringify(
        (0, import_smithy_client28.take)(input, {
          ReservedConcurrentExecutions: []
        })
      );
      b3.m("PUT").h(headers).b(body);
      return b3.build();
    }, "se_PutFunctionConcurrencyCommand");
    var se_PutFunctionEventInvokeConfigCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/json"
      };
      b3.bp("/2019-09-25/functions/{FunctionName}/event-invoke-config");
      b3.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
      const query = (0, import_smithy_client28.map)({
        [_Q]: [, input[_Q]]
      });
      let body;
      body = JSON.stringify(
        (0, import_smithy_client28.take)(input, {
          DestinationConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "DestinationConfig"),
          MaximumEventAgeInSeconds: [],
          MaximumRetryAttempts: []
        })
      );
      b3.m("PUT").h(headers).q(query).b(body);
      return b3.build();
    }, "se_PutFunctionEventInvokeConfigCommand");
    var se_PutFunctionRecursionConfigCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/json"
      };
      b3.bp("/2024-08-31/functions/{FunctionName}/recursion-config");
      b3.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
      let body;
      body = JSON.stringify(
        (0, import_smithy_client28.take)(input, {
          RecursiveLoop: []
        })
      );
      b3.m("PUT").h(headers).b(body);
      return b3.build();
    }, "se_PutFunctionRecursionConfigCommand");
    var se_PutProvisionedConcurrencyConfigCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/json"
      };
      b3.bp("/2019-09-30/functions/{FunctionName}/provisioned-concurrency");
      b3.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
      const query = (0, import_smithy_client28.map)({
        [_Q]: [, (0, import_smithy_client28.expectNonNull)(input[_Q], `Qualifier`)]
      });
      let body;
      body = JSON.stringify(
        (0, import_smithy_client28.take)(input, {
          ProvisionedConcurrentExecutions: []
        })
      );
      b3.m("PUT").h(headers).q(query).b(body);
      return b3.build();
    }, "se_PutProvisionedConcurrencyConfigCommand");
    var se_PutRuntimeManagementConfigCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/json"
      };
      b3.bp("/2021-07-20/functions/{FunctionName}/runtime-management-config");
      b3.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
      const query = (0, import_smithy_client28.map)({
        [_Q]: [, input[_Q]]
      });
      let body;
      body = JSON.stringify(
        (0, import_smithy_client28.take)(input, {
          RuntimeVersionArn: [],
          UpdateRuntimeOn: []
        })
      );
      b3.m("PUT").h(headers).q(query).b(body);
      return b3.build();
    }, "se_PutRuntimeManagementConfigCommand");
    var se_RemoveLayerVersionPermissionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy/{StatementId}");
      b3.p("LayerName", () => input.LayerName, "{LayerName}", false);
      b3.p("VersionNumber", () => input.VersionNumber.toString(), "{VersionNumber}", false);
      b3.p("StatementId", () => input.StatementId, "{StatementId}", false);
      const query = (0, import_smithy_client28.map)({
        [_RI]: [, input[_RI]]
      });
      let body;
      b3.m("DELETE").h(headers).q(query).b(body);
      return b3.build();
    }, "se_RemoveLayerVersionPermissionCommand");
    var se_RemovePermissionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2015-03-31/functions/{FunctionName}/policy/{StatementId}");
      b3.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
      b3.p("StatementId", () => input.StatementId, "{StatementId}", false);
      const query = (0, import_smithy_client28.map)({
        [_Q]: [, input[_Q]],
        [_RI]: [, input[_RI]]
      });
      let body;
      b3.m("DELETE").h(headers).q(query).b(body);
      return b3.build();
    }, "se_RemovePermissionCommand");
    var se_TagResourceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/json"
      };
      b3.bp("/2017-03-31/tags/{Resource}");
      b3.p("Resource", () => input.Resource, "{Resource}", false);
      let body;
      body = JSON.stringify(
        (0, import_smithy_client28.take)(input, {
          Tags: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "Tags")
        })
      );
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_TagResourceCommand");
    var se_UntagResourceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2017-03-31/tags/{Resource}");
      b3.p("Resource", () => input.Resource, "{Resource}", false);
      const query = (0, import_smithy_client28.map)({
        [_tK]: [(0, import_smithy_client28.expectNonNull)(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []]
      });
      let body;
      b3.m("DELETE").h(headers).q(query).b(body);
      return b3.build();
    }, "se_UntagResourceCommand");
    var se_UpdateAliasCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/json"
      };
      b3.bp("/2015-03-31/functions/{FunctionName}/aliases/{Name}");
      b3.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
      b3.p("Name", () => input.Name, "{Name}", false);
      let body;
      body = JSON.stringify(
        (0, import_smithy_client28.take)(input, {
          Description: [],
          FunctionVersion: [],
          RevisionId: [],
          RoutingConfig: /* @__PURE__ */ __name2((_3) => se_AliasRoutingConfiguration(_3, context), "RoutingConfig")
        })
      );
      b3.m("PUT").h(headers).b(body);
      return b3.build();
    }, "se_UpdateAliasCommand");
    var se_UpdateCodeSigningConfigCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/json"
      };
      b3.bp("/2020-04-22/code-signing-configs/{CodeSigningConfigArn}");
      b3.p("CodeSigningConfigArn", () => input.CodeSigningConfigArn, "{CodeSigningConfigArn}", false);
      let body;
      body = JSON.stringify(
        (0, import_smithy_client28.take)(input, {
          AllowedPublishers: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "AllowedPublishers"),
          CodeSigningPolicies: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "CodeSigningPolicies"),
          Description: []
        })
      );
      b3.m("PUT").h(headers).b(body);
      return b3.build();
    }, "se_UpdateCodeSigningConfigCommand");
    var se_UpdateEventSourceMappingCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/json"
      };
      b3.bp("/2015-03-31/event-source-mappings/{UUID}");
      b3.p("UUID", () => input.UUID, "{UUID}", false);
      let body;
      body = JSON.stringify(
        (0, import_smithy_client28.take)(input, {
          AmazonManagedKafkaEventSourceConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "AmazonManagedKafkaEventSourceConfig"),
          BatchSize: [],
          BisectBatchOnFunctionError: [],
          DestinationConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "DestinationConfig"),
          DocumentDBEventSourceConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "DocumentDBEventSourceConfig"),
          Enabled: [],
          FilterCriteria: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "FilterCriteria"),
          FunctionName: [],
          FunctionResponseTypes: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "FunctionResponseTypes"),
          KMSKeyArn: [],
          MaximumBatchingWindowInSeconds: [],
          MaximumRecordAgeInSeconds: [],
          MaximumRetryAttempts: [],
          MetricsConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "MetricsConfig"),
          ParallelizationFactor: [],
          ProvisionedPollerConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "ProvisionedPollerConfig"),
          ScalingConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "ScalingConfig"),
          SelfManagedKafkaEventSourceConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "SelfManagedKafkaEventSourceConfig"),
          SourceAccessConfigurations: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "SourceAccessConfigurations"),
          TumblingWindowInSeconds: []
        })
      );
      b3.m("PUT").h(headers).b(body);
      return b3.build();
    }, "se_UpdateEventSourceMappingCommand");
    var se_UpdateFunctionCodeCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/json"
      };
      b3.bp("/2015-03-31/functions/{FunctionName}/code");
      b3.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
      let body;
      body = JSON.stringify(
        (0, import_smithy_client28.take)(input, {
          Architectures: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "Architectures"),
          DryRun: [],
          ImageUri: [],
          Publish: [],
          RevisionId: [],
          S3Bucket: [],
          S3Key: [],
          S3ObjectVersion: [],
          SourceKMSKeyArn: [],
          ZipFile: /* @__PURE__ */ __name2((_3) => context.base64Encoder(_3), "ZipFile")
        })
      );
      b3.m("PUT").h(headers).b(body);
      return b3.build();
    }, "se_UpdateFunctionCodeCommand");
    var se_UpdateFunctionConfigurationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/json"
      };
      b3.bp("/2015-03-31/functions/{FunctionName}/configuration");
      b3.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
      let body;
      body = JSON.stringify(
        (0, import_smithy_client28.take)(input, {
          DeadLetterConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "DeadLetterConfig"),
          Description: [],
          Environment: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "Environment"),
          EphemeralStorage: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "EphemeralStorage"),
          FileSystemConfigs: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "FileSystemConfigs"),
          Handler: [],
          ImageConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "ImageConfig"),
          KMSKeyArn: [],
          Layers: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "Layers"),
          LoggingConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "LoggingConfig"),
          MemorySize: [],
          RevisionId: [],
          Role: [],
          Runtime: [],
          SnapStart: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "SnapStart"),
          Timeout: [],
          TracingConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "TracingConfig"),
          VpcConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "VpcConfig")
        })
      );
      b3.m("PUT").h(headers).b(body);
      return b3.build();
    }, "se_UpdateFunctionConfigurationCommand");
    var se_UpdateFunctionEventInvokeConfigCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/json"
      };
      b3.bp("/2019-09-25/functions/{FunctionName}/event-invoke-config");
      b3.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
      const query = (0, import_smithy_client28.map)({
        [_Q]: [, input[_Q]]
      });
      let body;
      body = JSON.stringify(
        (0, import_smithy_client28.take)(input, {
          DestinationConfig: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "DestinationConfig"),
          MaximumEventAgeInSeconds: [],
          MaximumRetryAttempts: []
        })
      );
      b3.m("POST").h(headers).q(query).b(body);
      return b3.build();
    }, "se_UpdateFunctionEventInvokeConfigCommand");
    var se_UpdateFunctionUrlConfigCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/json"
      };
      b3.bp("/2021-10-31/functions/{FunctionName}/url");
      b3.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
      const query = (0, import_smithy_client28.map)({
        [_Q]: [, input[_Q]]
      });
      let body;
      body = JSON.stringify(
        (0, import_smithy_client28.take)(input, {
          AuthType: [],
          Cors: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)(_3), "Cors"),
          InvokeMode: []
        })
      );
      b3.m("PUT").h(headers).q(query).b(body);
      return b3.build();
    }, "se_UpdateFunctionUrlConfigCommand");
    var de_AddLayerVersionPermissionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 201 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        RevisionId: import_smithy_client28.expectString,
        Statement: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_AddLayerVersionPermissionCommand");
    var de_AddPermissionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 201 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        Statement: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_AddPermissionCommand");
    var de_CreateAliasCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 201 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        AliasArn: import_smithy_client28.expectString,
        Description: import_smithy_client28.expectString,
        FunctionVersion: import_smithy_client28.expectString,
        Name: import_smithy_client28.expectString,
        RevisionId: import_smithy_client28.expectString,
        RoutingConfig: /* @__PURE__ */ __name2((_3) => de_AliasRoutingConfiguration(_3, context), "RoutingConfig")
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_CreateAliasCommand");
    var de_CreateCodeSigningConfigCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 201 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        CodeSigningConfig: import_smithy_client28._json
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_CreateCodeSigningConfigCommand");
    var de_CreateEventSourceMappingCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 202 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        AmazonManagedKafkaEventSourceConfig: import_smithy_client28._json,
        BatchSize: import_smithy_client28.expectInt32,
        BisectBatchOnFunctionError: import_smithy_client28.expectBoolean,
        DestinationConfig: import_smithy_client28._json,
        DocumentDBEventSourceConfig: import_smithy_client28._json,
        EventSourceArn: import_smithy_client28.expectString,
        EventSourceMappingArn: import_smithy_client28.expectString,
        FilterCriteria: import_smithy_client28._json,
        FilterCriteriaError: import_smithy_client28._json,
        FunctionArn: import_smithy_client28.expectString,
        FunctionResponseTypes: import_smithy_client28._json,
        KMSKeyArn: import_smithy_client28.expectString,
        LastModified: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "LastModified"),
        LastProcessingResult: import_smithy_client28.expectString,
        MaximumBatchingWindowInSeconds: import_smithy_client28.expectInt32,
        MaximumRecordAgeInSeconds: import_smithy_client28.expectInt32,
        MaximumRetryAttempts: import_smithy_client28.expectInt32,
        MetricsConfig: import_smithy_client28._json,
        ParallelizationFactor: import_smithy_client28.expectInt32,
        ProvisionedPollerConfig: import_smithy_client28._json,
        Queues: import_smithy_client28._json,
        ScalingConfig: import_smithy_client28._json,
        SelfManagedEventSource: import_smithy_client28._json,
        SelfManagedKafkaEventSourceConfig: import_smithy_client28._json,
        SourceAccessConfigurations: import_smithy_client28._json,
        StartingPosition: import_smithy_client28.expectString,
        StartingPositionTimestamp: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "StartingPositionTimestamp"),
        State: import_smithy_client28.expectString,
        StateTransitionReason: import_smithy_client28.expectString,
        Topics: import_smithy_client28._json,
        TumblingWindowInSeconds: import_smithy_client28.expectInt32,
        UUID: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_CreateEventSourceMappingCommand");
    var de_CreateFunctionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 201 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        Architectures: import_smithy_client28._json,
        CodeSha256: import_smithy_client28.expectString,
        CodeSize: import_smithy_client28.expectLong,
        DeadLetterConfig: import_smithy_client28._json,
        Description: import_smithy_client28.expectString,
        Environment: import_smithy_client28._json,
        EphemeralStorage: import_smithy_client28._json,
        FileSystemConfigs: import_smithy_client28._json,
        FunctionArn: import_smithy_client28.expectString,
        FunctionName: import_smithy_client28.expectString,
        Handler: import_smithy_client28.expectString,
        ImageConfigResponse: import_smithy_client28._json,
        KMSKeyArn: import_smithy_client28.expectString,
        LastModified: import_smithy_client28.expectString,
        LastUpdateStatus: import_smithy_client28.expectString,
        LastUpdateStatusReason: import_smithy_client28.expectString,
        LastUpdateStatusReasonCode: import_smithy_client28.expectString,
        Layers: import_smithy_client28._json,
        LoggingConfig: import_smithy_client28._json,
        MasterArn: import_smithy_client28.expectString,
        MemorySize: import_smithy_client28.expectInt32,
        PackageType: import_smithy_client28.expectString,
        RevisionId: import_smithy_client28.expectString,
        Role: import_smithy_client28.expectString,
        Runtime: import_smithy_client28.expectString,
        RuntimeVersionConfig: import_smithy_client28._json,
        SigningJobArn: import_smithy_client28.expectString,
        SigningProfileVersionArn: import_smithy_client28.expectString,
        SnapStart: import_smithy_client28._json,
        State: import_smithy_client28.expectString,
        StateReason: import_smithy_client28.expectString,
        StateReasonCode: import_smithy_client28.expectString,
        Timeout: import_smithy_client28.expectInt32,
        TracingConfig: import_smithy_client28._json,
        Version: import_smithy_client28.expectString,
        VpcConfig: import_smithy_client28._json
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_CreateFunctionCommand");
    var de_CreateFunctionUrlConfigCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 201 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        AuthType: import_smithy_client28.expectString,
        Cors: import_smithy_client28._json,
        CreationTime: import_smithy_client28.expectString,
        FunctionArn: import_smithy_client28.expectString,
        FunctionUrl: import_smithy_client28.expectString,
        InvokeMode: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_CreateFunctionUrlConfigCommand");
    var de_DeleteAliasCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 204 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_DeleteAliasCommand");
    var de_DeleteCodeSigningConfigCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 204 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_DeleteCodeSigningConfigCommand");
    var de_DeleteEventSourceMappingCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 202 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        AmazonManagedKafkaEventSourceConfig: import_smithy_client28._json,
        BatchSize: import_smithy_client28.expectInt32,
        BisectBatchOnFunctionError: import_smithy_client28.expectBoolean,
        DestinationConfig: import_smithy_client28._json,
        DocumentDBEventSourceConfig: import_smithy_client28._json,
        EventSourceArn: import_smithy_client28.expectString,
        EventSourceMappingArn: import_smithy_client28.expectString,
        FilterCriteria: import_smithy_client28._json,
        FilterCriteriaError: import_smithy_client28._json,
        FunctionArn: import_smithy_client28.expectString,
        FunctionResponseTypes: import_smithy_client28._json,
        KMSKeyArn: import_smithy_client28.expectString,
        LastModified: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "LastModified"),
        LastProcessingResult: import_smithy_client28.expectString,
        MaximumBatchingWindowInSeconds: import_smithy_client28.expectInt32,
        MaximumRecordAgeInSeconds: import_smithy_client28.expectInt32,
        MaximumRetryAttempts: import_smithy_client28.expectInt32,
        MetricsConfig: import_smithy_client28._json,
        ParallelizationFactor: import_smithy_client28.expectInt32,
        ProvisionedPollerConfig: import_smithy_client28._json,
        Queues: import_smithy_client28._json,
        ScalingConfig: import_smithy_client28._json,
        SelfManagedEventSource: import_smithy_client28._json,
        SelfManagedKafkaEventSourceConfig: import_smithy_client28._json,
        SourceAccessConfigurations: import_smithy_client28._json,
        StartingPosition: import_smithy_client28.expectString,
        StartingPositionTimestamp: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "StartingPositionTimestamp"),
        State: import_smithy_client28.expectString,
        StateTransitionReason: import_smithy_client28.expectString,
        Topics: import_smithy_client28._json,
        TumblingWindowInSeconds: import_smithy_client28.expectInt32,
        UUID: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_DeleteEventSourceMappingCommand");
    var de_DeleteFunctionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 204 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_DeleteFunctionCommand");
    var de_DeleteFunctionCodeSigningConfigCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 204 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_DeleteFunctionCodeSigningConfigCommand");
    var de_DeleteFunctionConcurrencyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 204 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_DeleteFunctionConcurrencyCommand");
    var de_DeleteFunctionEventInvokeConfigCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 204 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_DeleteFunctionEventInvokeConfigCommand");
    var de_DeleteFunctionUrlConfigCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 204 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_DeleteFunctionUrlConfigCommand");
    var de_DeleteLayerVersionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 204 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_DeleteLayerVersionCommand");
    var de_DeleteProvisionedConcurrencyConfigCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 204 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_DeleteProvisionedConcurrencyConfigCommand");
    var de_GetAccountSettingsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        AccountLimit: import_smithy_client28._json,
        AccountUsage: import_smithy_client28._json
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_GetAccountSettingsCommand");
    var de_GetAliasCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        AliasArn: import_smithy_client28.expectString,
        Description: import_smithy_client28.expectString,
        FunctionVersion: import_smithy_client28.expectString,
        Name: import_smithy_client28.expectString,
        RevisionId: import_smithy_client28.expectString,
        RoutingConfig: /* @__PURE__ */ __name2((_3) => de_AliasRoutingConfiguration(_3, context), "RoutingConfig")
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_GetAliasCommand");
    var de_GetCodeSigningConfigCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        CodeSigningConfig: import_smithy_client28._json
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_GetCodeSigningConfigCommand");
    var de_GetEventSourceMappingCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        AmazonManagedKafkaEventSourceConfig: import_smithy_client28._json,
        BatchSize: import_smithy_client28.expectInt32,
        BisectBatchOnFunctionError: import_smithy_client28.expectBoolean,
        DestinationConfig: import_smithy_client28._json,
        DocumentDBEventSourceConfig: import_smithy_client28._json,
        EventSourceArn: import_smithy_client28.expectString,
        EventSourceMappingArn: import_smithy_client28.expectString,
        FilterCriteria: import_smithy_client28._json,
        FilterCriteriaError: import_smithy_client28._json,
        FunctionArn: import_smithy_client28.expectString,
        FunctionResponseTypes: import_smithy_client28._json,
        KMSKeyArn: import_smithy_client28.expectString,
        LastModified: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "LastModified"),
        LastProcessingResult: import_smithy_client28.expectString,
        MaximumBatchingWindowInSeconds: import_smithy_client28.expectInt32,
        MaximumRecordAgeInSeconds: import_smithy_client28.expectInt32,
        MaximumRetryAttempts: import_smithy_client28.expectInt32,
        MetricsConfig: import_smithy_client28._json,
        ParallelizationFactor: import_smithy_client28.expectInt32,
        ProvisionedPollerConfig: import_smithy_client28._json,
        Queues: import_smithy_client28._json,
        ScalingConfig: import_smithy_client28._json,
        SelfManagedEventSource: import_smithy_client28._json,
        SelfManagedKafkaEventSourceConfig: import_smithy_client28._json,
        SourceAccessConfigurations: import_smithy_client28._json,
        StartingPosition: import_smithy_client28.expectString,
        StartingPositionTimestamp: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "StartingPositionTimestamp"),
        State: import_smithy_client28.expectString,
        StateTransitionReason: import_smithy_client28.expectString,
        Topics: import_smithy_client28._json,
        TumblingWindowInSeconds: import_smithy_client28.expectInt32,
        UUID: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_GetEventSourceMappingCommand");
    var de_GetFunctionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        Code: import_smithy_client28._json,
        Concurrency: import_smithy_client28._json,
        Configuration: import_smithy_client28._json,
        Tags: import_smithy_client28._json,
        TagsError: import_smithy_client28._json
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_GetFunctionCommand");
    var de_GetFunctionCodeSigningConfigCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        CodeSigningConfigArn: import_smithy_client28.expectString,
        FunctionName: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_GetFunctionCodeSigningConfigCommand");
    var de_GetFunctionConcurrencyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        ReservedConcurrentExecutions: import_smithy_client28.expectInt32
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_GetFunctionConcurrencyCommand");
    var de_GetFunctionConfigurationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        Architectures: import_smithy_client28._json,
        CodeSha256: import_smithy_client28.expectString,
        CodeSize: import_smithy_client28.expectLong,
        DeadLetterConfig: import_smithy_client28._json,
        Description: import_smithy_client28.expectString,
        Environment: import_smithy_client28._json,
        EphemeralStorage: import_smithy_client28._json,
        FileSystemConfigs: import_smithy_client28._json,
        FunctionArn: import_smithy_client28.expectString,
        FunctionName: import_smithy_client28.expectString,
        Handler: import_smithy_client28.expectString,
        ImageConfigResponse: import_smithy_client28._json,
        KMSKeyArn: import_smithy_client28.expectString,
        LastModified: import_smithy_client28.expectString,
        LastUpdateStatus: import_smithy_client28.expectString,
        LastUpdateStatusReason: import_smithy_client28.expectString,
        LastUpdateStatusReasonCode: import_smithy_client28.expectString,
        Layers: import_smithy_client28._json,
        LoggingConfig: import_smithy_client28._json,
        MasterArn: import_smithy_client28.expectString,
        MemorySize: import_smithy_client28.expectInt32,
        PackageType: import_smithy_client28.expectString,
        RevisionId: import_smithy_client28.expectString,
        Role: import_smithy_client28.expectString,
        Runtime: import_smithy_client28.expectString,
        RuntimeVersionConfig: import_smithy_client28._json,
        SigningJobArn: import_smithy_client28.expectString,
        SigningProfileVersionArn: import_smithy_client28.expectString,
        SnapStart: import_smithy_client28._json,
        State: import_smithy_client28.expectString,
        StateReason: import_smithy_client28.expectString,
        StateReasonCode: import_smithy_client28.expectString,
        Timeout: import_smithy_client28.expectInt32,
        TracingConfig: import_smithy_client28._json,
        Version: import_smithy_client28.expectString,
        VpcConfig: import_smithy_client28._json
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_GetFunctionConfigurationCommand");
    var de_GetFunctionEventInvokeConfigCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        DestinationConfig: import_smithy_client28._json,
        FunctionArn: import_smithy_client28.expectString,
        LastModified: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "LastModified"),
        MaximumEventAgeInSeconds: import_smithy_client28.expectInt32,
        MaximumRetryAttempts: import_smithy_client28.expectInt32
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_GetFunctionEventInvokeConfigCommand");
    var de_GetFunctionRecursionConfigCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        RecursiveLoop: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_GetFunctionRecursionConfigCommand");
    var de_GetFunctionUrlConfigCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        AuthType: import_smithy_client28.expectString,
        Cors: import_smithy_client28._json,
        CreationTime: import_smithy_client28.expectString,
        FunctionArn: import_smithy_client28.expectString,
        FunctionUrl: import_smithy_client28.expectString,
        InvokeMode: import_smithy_client28.expectString,
        LastModifiedTime: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_GetFunctionUrlConfigCommand");
    var de_GetLayerVersionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        CompatibleArchitectures: import_smithy_client28._json,
        CompatibleRuntimes: import_smithy_client28._json,
        Content: import_smithy_client28._json,
        CreatedDate: import_smithy_client28.expectString,
        Description: import_smithy_client28.expectString,
        LayerArn: import_smithy_client28.expectString,
        LayerVersionArn: import_smithy_client28.expectString,
        LicenseInfo: import_smithy_client28.expectString,
        Version: import_smithy_client28.expectLong
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_GetLayerVersionCommand");
    var de_GetLayerVersionByArnCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        CompatibleArchitectures: import_smithy_client28._json,
        CompatibleRuntimes: import_smithy_client28._json,
        Content: import_smithy_client28._json,
        CreatedDate: import_smithy_client28.expectString,
        Description: import_smithy_client28.expectString,
        LayerArn: import_smithy_client28.expectString,
        LayerVersionArn: import_smithy_client28.expectString,
        LicenseInfo: import_smithy_client28.expectString,
        Version: import_smithy_client28.expectLong
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_GetLayerVersionByArnCommand");
    var de_GetLayerVersionPolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        Policy: import_smithy_client28.expectString,
        RevisionId: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_GetLayerVersionPolicyCommand");
    var de_GetPolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        Policy: import_smithy_client28.expectString,
        RevisionId: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_GetPolicyCommand");
    var de_GetProvisionedConcurrencyConfigCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        AllocatedProvisionedConcurrentExecutions: import_smithy_client28.expectInt32,
        AvailableProvisionedConcurrentExecutions: import_smithy_client28.expectInt32,
        LastModified: import_smithy_client28.expectString,
        RequestedProvisionedConcurrentExecutions: import_smithy_client28.expectInt32,
        Status: import_smithy_client28.expectString,
        StatusReason: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_GetProvisionedConcurrencyConfigCommand");
    var de_GetRuntimeManagementConfigCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        FunctionArn: import_smithy_client28.expectString,
        RuntimeVersionArn: import_smithy_client28.expectString,
        UpdateRuntimeOn: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_GetRuntimeManagementConfigCommand");
    var de_InvokeCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output),
        [_FE]: [, output.headers[_xafe]],
        [_LR]: [, output.headers[_xalr]],
        [_EV]: [, output.headers[_xaev]]
      });
      const data3 = await (0, import_smithy_client28.collectBody)(output.body, context);
      contents.Payload = data3;
      (0, import_smithy_client28.map)(contents, {
        StatusCode: [, output.statusCode]
      });
      return contents;
    }, "de_InvokeCommand");
    var de_InvokeAsyncCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 202 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      (0, import_smithy_client28.map)(contents, {
        Status: [, output.statusCode]
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_InvokeAsyncCommand");
    var de_InvokeWithResponseStreamCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output),
        [_EV]: [, output.headers[_xaev]],
        [_RSCT]: [, output.headers[_ct]]
      });
      const data3 = output.body;
      contents.EventStream = de_InvokeWithResponseStreamResponseEvent(data3, context);
      (0, import_smithy_client28.map)(contents, {
        StatusCode: [, output.statusCode]
      });
      return contents;
    }, "de_InvokeWithResponseStreamCommand");
    var de_ListAliasesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        Aliases: /* @__PURE__ */ __name2((_3) => de_AliasList(_3, context), "Aliases"),
        NextMarker: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_ListAliasesCommand");
    var de_ListCodeSigningConfigsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        CodeSigningConfigs: import_smithy_client28._json,
        NextMarker: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_ListCodeSigningConfigsCommand");
    var de_ListEventSourceMappingsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        EventSourceMappings: /* @__PURE__ */ __name2((_3) => de_EventSourceMappingsList(_3, context), "EventSourceMappings"),
        NextMarker: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_ListEventSourceMappingsCommand");
    var de_ListFunctionEventInvokeConfigsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        FunctionEventInvokeConfigs: /* @__PURE__ */ __name2((_3) => de_FunctionEventInvokeConfigList(_3, context), "FunctionEventInvokeConfigs"),
        NextMarker: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_ListFunctionEventInvokeConfigsCommand");
    var de_ListFunctionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        Functions: import_smithy_client28._json,
        NextMarker: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_ListFunctionsCommand");
    var de_ListFunctionsByCodeSigningConfigCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        FunctionArns: import_smithy_client28._json,
        NextMarker: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_ListFunctionsByCodeSigningConfigCommand");
    var de_ListFunctionUrlConfigsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        FunctionUrlConfigs: import_smithy_client28._json,
        NextMarker: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_ListFunctionUrlConfigsCommand");
    var de_ListLayersCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        Layers: import_smithy_client28._json,
        NextMarker: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_ListLayersCommand");
    var de_ListLayerVersionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        LayerVersions: import_smithy_client28._json,
        NextMarker: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_ListLayerVersionsCommand");
    var de_ListProvisionedConcurrencyConfigsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        NextMarker: import_smithy_client28.expectString,
        ProvisionedConcurrencyConfigs: import_smithy_client28._json
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_ListProvisionedConcurrencyConfigsCommand");
    var de_ListTagsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        Tags: import_smithy_client28._json
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_ListTagsCommand");
    var de_ListVersionsByFunctionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        NextMarker: import_smithy_client28.expectString,
        Versions: import_smithy_client28._json
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_ListVersionsByFunctionCommand");
    var de_PublishLayerVersionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 201 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        CompatibleArchitectures: import_smithy_client28._json,
        CompatibleRuntimes: import_smithy_client28._json,
        Content: import_smithy_client28._json,
        CreatedDate: import_smithy_client28.expectString,
        Description: import_smithy_client28.expectString,
        LayerArn: import_smithy_client28.expectString,
        LayerVersionArn: import_smithy_client28.expectString,
        LicenseInfo: import_smithy_client28.expectString,
        Version: import_smithy_client28.expectLong
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_PublishLayerVersionCommand");
    var de_PublishVersionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 201 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        Architectures: import_smithy_client28._json,
        CodeSha256: import_smithy_client28.expectString,
        CodeSize: import_smithy_client28.expectLong,
        DeadLetterConfig: import_smithy_client28._json,
        Description: import_smithy_client28.expectString,
        Environment: import_smithy_client28._json,
        EphemeralStorage: import_smithy_client28._json,
        FileSystemConfigs: import_smithy_client28._json,
        FunctionArn: import_smithy_client28.expectString,
        FunctionName: import_smithy_client28.expectString,
        Handler: import_smithy_client28.expectString,
        ImageConfigResponse: import_smithy_client28._json,
        KMSKeyArn: import_smithy_client28.expectString,
        LastModified: import_smithy_client28.expectString,
        LastUpdateStatus: import_smithy_client28.expectString,
        LastUpdateStatusReason: import_smithy_client28.expectString,
        LastUpdateStatusReasonCode: import_smithy_client28.expectString,
        Layers: import_smithy_client28._json,
        LoggingConfig: import_smithy_client28._json,
        MasterArn: import_smithy_client28.expectString,
        MemorySize: import_smithy_client28.expectInt32,
        PackageType: import_smithy_client28.expectString,
        RevisionId: import_smithy_client28.expectString,
        Role: import_smithy_client28.expectString,
        Runtime: import_smithy_client28.expectString,
        RuntimeVersionConfig: import_smithy_client28._json,
        SigningJobArn: import_smithy_client28.expectString,
        SigningProfileVersionArn: import_smithy_client28.expectString,
        SnapStart: import_smithy_client28._json,
        State: import_smithy_client28.expectString,
        StateReason: import_smithy_client28.expectString,
        StateReasonCode: import_smithy_client28.expectString,
        Timeout: import_smithy_client28.expectInt32,
        TracingConfig: import_smithy_client28._json,
        Version: import_smithy_client28.expectString,
        VpcConfig: import_smithy_client28._json
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_PublishVersionCommand");
    var de_PutFunctionCodeSigningConfigCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        CodeSigningConfigArn: import_smithy_client28.expectString,
        FunctionName: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_PutFunctionCodeSigningConfigCommand");
    var de_PutFunctionConcurrencyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        ReservedConcurrentExecutions: import_smithy_client28.expectInt32
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_PutFunctionConcurrencyCommand");
    var de_PutFunctionEventInvokeConfigCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        DestinationConfig: import_smithy_client28._json,
        FunctionArn: import_smithy_client28.expectString,
        LastModified: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "LastModified"),
        MaximumEventAgeInSeconds: import_smithy_client28.expectInt32,
        MaximumRetryAttempts: import_smithy_client28.expectInt32
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_PutFunctionEventInvokeConfigCommand");
    var de_PutFunctionRecursionConfigCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        RecursiveLoop: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_PutFunctionRecursionConfigCommand");
    var de_PutProvisionedConcurrencyConfigCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 202 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        AllocatedProvisionedConcurrentExecutions: import_smithy_client28.expectInt32,
        AvailableProvisionedConcurrentExecutions: import_smithy_client28.expectInt32,
        LastModified: import_smithy_client28.expectString,
        RequestedProvisionedConcurrentExecutions: import_smithy_client28.expectInt32,
        Status: import_smithy_client28.expectString,
        StatusReason: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_PutProvisionedConcurrencyConfigCommand");
    var de_PutRuntimeManagementConfigCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        FunctionArn: import_smithy_client28.expectString,
        RuntimeVersionArn: import_smithy_client28.expectString,
        UpdateRuntimeOn: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_PutRuntimeManagementConfigCommand");
    var de_RemoveLayerVersionPermissionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 204 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_RemoveLayerVersionPermissionCommand");
    var de_RemovePermissionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 204 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_RemovePermissionCommand");
    var de_TagResourceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 204 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_TagResourceCommand");
    var de_UntagResourceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 204 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_UntagResourceCommand");
    var de_UpdateAliasCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        AliasArn: import_smithy_client28.expectString,
        Description: import_smithy_client28.expectString,
        FunctionVersion: import_smithy_client28.expectString,
        Name: import_smithy_client28.expectString,
        RevisionId: import_smithy_client28.expectString,
        RoutingConfig: /* @__PURE__ */ __name2((_3) => de_AliasRoutingConfiguration(_3, context), "RoutingConfig")
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_UpdateAliasCommand");
    var de_UpdateCodeSigningConfigCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        CodeSigningConfig: import_smithy_client28._json
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_UpdateCodeSigningConfigCommand");
    var de_UpdateEventSourceMappingCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 202 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        AmazonManagedKafkaEventSourceConfig: import_smithy_client28._json,
        BatchSize: import_smithy_client28.expectInt32,
        BisectBatchOnFunctionError: import_smithy_client28.expectBoolean,
        DestinationConfig: import_smithy_client28._json,
        DocumentDBEventSourceConfig: import_smithy_client28._json,
        EventSourceArn: import_smithy_client28.expectString,
        EventSourceMappingArn: import_smithy_client28.expectString,
        FilterCriteria: import_smithy_client28._json,
        FilterCriteriaError: import_smithy_client28._json,
        FunctionArn: import_smithy_client28.expectString,
        FunctionResponseTypes: import_smithy_client28._json,
        KMSKeyArn: import_smithy_client28.expectString,
        LastModified: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "LastModified"),
        LastProcessingResult: import_smithy_client28.expectString,
        MaximumBatchingWindowInSeconds: import_smithy_client28.expectInt32,
        MaximumRecordAgeInSeconds: import_smithy_client28.expectInt32,
        MaximumRetryAttempts: import_smithy_client28.expectInt32,
        MetricsConfig: import_smithy_client28._json,
        ParallelizationFactor: import_smithy_client28.expectInt32,
        ProvisionedPollerConfig: import_smithy_client28._json,
        Queues: import_smithy_client28._json,
        ScalingConfig: import_smithy_client28._json,
        SelfManagedEventSource: import_smithy_client28._json,
        SelfManagedKafkaEventSourceConfig: import_smithy_client28._json,
        SourceAccessConfigurations: import_smithy_client28._json,
        StartingPosition: import_smithy_client28.expectString,
        StartingPositionTimestamp: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "StartingPositionTimestamp"),
        State: import_smithy_client28.expectString,
        StateTransitionReason: import_smithy_client28.expectString,
        Topics: import_smithy_client28._json,
        TumblingWindowInSeconds: import_smithy_client28.expectInt32,
        UUID: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_UpdateEventSourceMappingCommand");
    var de_UpdateFunctionCodeCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        Architectures: import_smithy_client28._json,
        CodeSha256: import_smithy_client28.expectString,
        CodeSize: import_smithy_client28.expectLong,
        DeadLetterConfig: import_smithy_client28._json,
        Description: import_smithy_client28.expectString,
        Environment: import_smithy_client28._json,
        EphemeralStorage: import_smithy_client28._json,
        FileSystemConfigs: import_smithy_client28._json,
        FunctionArn: import_smithy_client28.expectString,
        FunctionName: import_smithy_client28.expectString,
        Handler: import_smithy_client28.expectString,
        ImageConfigResponse: import_smithy_client28._json,
        KMSKeyArn: import_smithy_client28.expectString,
        LastModified: import_smithy_client28.expectString,
        LastUpdateStatus: import_smithy_client28.expectString,
        LastUpdateStatusReason: import_smithy_client28.expectString,
        LastUpdateStatusReasonCode: import_smithy_client28.expectString,
        Layers: import_smithy_client28._json,
        LoggingConfig: import_smithy_client28._json,
        MasterArn: import_smithy_client28.expectString,
        MemorySize: import_smithy_client28.expectInt32,
        PackageType: import_smithy_client28.expectString,
        RevisionId: import_smithy_client28.expectString,
        Role: import_smithy_client28.expectString,
        Runtime: import_smithy_client28.expectString,
        RuntimeVersionConfig: import_smithy_client28._json,
        SigningJobArn: import_smithy_client28.expectString,
        SigningProfileVersionArn: import_smithy_client28.expectString,
        SnapStart: import_smithy_client28._json,
        State: import_smithy_client28.expectString,
        StateReason: import_smithy_client28.expectString,
        StateReasonCode: import_smithy_client28.expectString,
        Timeout: import_smithy_client28.expectInt32,
        TracingConfig: import_smithy_client28._json,
        Version: import_smithy_client28.expectString,
        VpcConfig: import_smithy_client28._json
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_UpdateFunctionCodeCommand");
    var de_UpdateFunctionConfigurationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        Architectures: import_smithy_client28._json,
        CodeSha256: import_smithy_client28.expectString,
        CodeSize: import_smithy_client28.expectLong,
        DeadLetterConfig: import_smithy_client28._json,
        Description: import_smithy_client28.expectString,
        Environment: import_smithy_client28._json,
        EphemeralStorage: import_smithy_client28._json,
        FileSystemConfigs: import_smithy_client28._json,
        FunctionArn: import_smithy_client28.expectString,
        FunctionName: import_smithy_client28.expectString,
        Handler: import_smithy_client28.expectString,
        ImageConfigResponse: import_smithy_client28._json,
        KMSKeyArn: import_smithy_client28.expectString,
        LastModified: import_smithy_client28.expectString,
        LastUpdateStatus: import_smithy_client28.expectString,
        LastUpdateStatusReason: import_smithy_client28.expectString,
        LastUpdateStatusReasonCode: import_smithy_client28.expectString,
        Layers: import_smithy_client28._json,
        LoggingConfig: import_smithy_client28._json,
        MasterArn: import_smithy_client28.expectString,
        MemorySize: import_smithy_client28.expectInt32,
        PackageType: import_smithy_client28.expectString,
        RevisionId: import_smithy_client28.expectString,
        Role: import_smithy_client28.expectString,
        Runtime: import_smithy_client28.expectString,
        RuntimeVersionConfig: import_smithy_client28._json,
        SigningJobArn: import_smithy_client28.expectString,
        SigningProfileVersionArn: import_smithy_client28.expectString,
        SnapStart: import_smithy_client28._json,
        State: import_smithy_client28.expectString,
        StateReason: import_smithy_client28.expectString,
        StateReasonCode: import_smithy_client28.expectString,
        Timeout: import_smithy_client28.expectInt32,
        TracingConfig: import_smithy_client28._json,
        Version: import_smithy_client28.expectString,
        VpcConfig: import_smithy_client28._json
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_UpdateFunctionConfigurationCommand");
    var de_UpdateFunctionEventInvokeConfigCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        DestinationConfig: import_smithy_client28._json,
        FunctionArn: import_smithy_client28.expectString,
        LastModified: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "LastModified"),
        MaximumEventAgeInSeconds: import_smithy_client28.expectInt32,
        MaximumRetryAttempts: import_smithy_client28.expectInt32
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_UpdateFunctionEventInvokeConfigCommand");
    var de_UpdateFunctionUrlConfigCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body");
      const doc = (0, import_smithy_client28.take)(data3, {
        AuthType: import_smithy_client28.expectString,
        Cors: import_smithy_client28._json,
        CreationTime: import_smithy_client28.expectString,
        FunctionArn: import_smithy_client28.expectString,
        FunctionUrl: import_smithy_client28.expectString,
        InvokeMode: import_smithy_client28.expectString,
        LastModifiedTime: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      return contents;
    }, "de_UpdateFunctionUrlConfigCommand");
    var de_CommandError3 = /* @__PURE__ */ __name2(async (output, context) => {
      const parsedOutput = {
        ...output,
        body: await (0, import_core22.parseJsonErrorBody)(output.body, context)
      };
      const errorCode = (0, import_core22.loadRestJsonErrorCode)(output, parsedOutput.body);
      switch (errorCode) {
        case "InvalidParameterValueException":
        case "com.amazonaws.lambda#InvalidParameterValueException":
          throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
        case "PolicyLengthExceededException":
        case "com.amazonaws.lambda#PolicyLengthExceededException":
          throw await de_PolicyLengthExceededExceptionRes(parsedOutput, context);
        case "PreconditionFailedException":
        case "com.amazonaws.lambda#PreconditionFailedException":
          throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
        case "ResourceConflictException":
        case "com.amazonaws.lambda#ResourceConflictException":
          throw await de_ResourceConflictExceptionRes(parsedOutput, context);
        case "ResourceNotFoundException":
        case "com.amazonaws.lambda#ResourceNotFoundException":
          throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
        case "ServiceException":
        case "com.amazonaws.lambda#ServiceException":
          throw await de_ServiceExceptionRes(parsedOutput, context);
        case "TooManyRequestsException":
        case "com.amazonaws.lambda#TooManyRequestsException":
          throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
        case "CodeSigningConfigNotFoundException":
        case "com.amazonaws.lambda#CodeSigningConfigNotFoundException":
          throw await de_CodeSigningConfigNotFoundExceptionRes(parsedOutput, context);
        case "CodeStorageExceededException":
        case "com.amazonaws.lambda#CodeStorageExceededException":
          throw await de_CodeStorageExceededExceptionRes(parsedOutput, context);
        case "CodeVerificationFailedException":
        case "com.amazonaws.lambda#CodeVerificationFailedException":
          throw await de_CodeVerificationFailedExceptionRes(parsedOutput, context);
        case "InvalidCodeSignatureException":
        case "com.amazonaws.lambda#InvalidCodeSignatureException":
          throw await de_InvalidCodeSignatureExceptionRes(parsedOutput, context);
        case "ResourceInUseException":
        case "com.amazonaws.lambda#ResourceInUseException":
          throw await de_ResourceInUseExceptionRes(parsedOutput, context);
        case "ProvisionedConcurrencyConfigNotFoundException":
        case "com.amazonaws.lambda#ProvisionedConcurrencyConfigNotFoundException":
          throw await de_ProvisionedConcurrencyConfigNotFoundExceptionRes(parsedOutput, context);
        case "EC2AccessDeniedException":
        case "com.amazonaws.lambda#EC2AccessDeniedException":
          throw await de_EC2AccessDeniedExceptionRes(parsedOutput, context);
        case "EC2ThrottledException":
        case "com.amazonaws.lambda#EC2ThrottledException":
          throw await de_EC2ThrottledExceptionRes(parsedOutput, context);
        case "EC2UnexpectedException":
        case "com.amazonaws.lambda#EC2UnexpectedException":
          throw await de_EC2UnexpectedExceptionRes(parsedOutput, context);
        case "EFSIOException":
        case "com.amazonaws.lambda#EFSIOException":
          throw await de_EFSIOExceptionRes(parsedOutput, context);
        case "EFSMountConnectivityException":
        case "com.amazonaws.lambda#EFSMountConnectivityException":
          throw await de_EFSMountConnectivityExceptionRes(parsedOutput, context);
        case "EFSMountFailureException":
        case "com.amazonaws.lambda#EFSMountFailureException":
          throw await de_EFSMountFailureExceptionRes(parsedOutput, context);
        case "EFSMountTimeoutException":
        case "com.amazonaws.lambda#EFSMountTimeoutException":
          throw await de_EFSMountTimeoutExceptionRes(parsedOutput, context);
        case "ENILimitReachedException":
        case "com.amazonaws.lambda#ENILimitReachedException":
          throw await de_ENILimitReachedExceptionRes(parsedOutput, context);
        case "InvalidRequestContentException":
        case "com.amazonaws.lambda#InvalidRequestContentException":
          throw await de_InvalidRequestContentExceptionRes(parsedOutput, context);
        case "InvalidRuntimeException":
        case "com.amazonaws.lambda#InvalidRuntimeException":
          throw await de_InvalidRuntimeExceptionRes(parsedOutput, context);
        case "InvalidSecurityGroupIDException":
        case "com.amazonaws.lambda#InvalidSecurityGroupIDException":
          throw await de_InvalidSecurityGroupIDExceptionRes(parsedOutput, context);
        case "InvalidSubnetIDException":
        case "com.amazonaws.lambda#InvalidSubnetIDException":
          throw await de_InvalidSubnetIDExceptionRes(parsedOutput, context);
        case "InvalidZipFileException":
        case "com.amazonaws.lambda#InvalidZipFileException":
          throw await de_InvalidZipFileExceptionRes(parsedOutput, context);
        case "KMSAccessDeniedException":
        case "com.amazonaws.lambda#KMSAccessDeniedException":
          throw await de_KMSAccessDeniedExceptionRes(parsedOutput, context);
        case "KMSDisabledException":
        case "com.amazonaws.lambda#KMSDisabledException":
          throw await de_KMSDisabledExceptionRes(parsedOutput, context);
        case "KMSInvalidStateException":
        case "com.amazonaws.lambda#KMSInvalidStateException":
          throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
        case "KMSNotFoundException":
        case "com.amazonaws.lambda#KMSNotFoundException":
          throw await de_KMSNotFoundExceptionRes(parsedOutput, context);
        case "RecursiveInvocationException":
        case "com.amazonaws.lambda#RecursiveInvocationException":
          throw await de_RecursiveInvocationExceptionRes(parsedOutput, context);
        case "RequestTooLargeException":
        case "com.amazonaws.lambda#RequestTooLargeException":
          throw await de_RequestTooLargeExceptionRes(parsedOutput, context);
        case "ResourceNotReadyException":
        case "com.amazonaws.lambda#ResourceNotReadyException":
          throw await de_ResourceNotReadyExceptionRes(parsedOutput, context);
        case "SnapStartException":
        case "com.amazonaws.lambda#SnapStartException":
          throw await de_SnapStartExceptionRes(parsedOutput, context);
        case "SnapStartNotReadyException":
        case "com.amazonaws.lambda#SnapStartNotReadyException":
          throw await de_SnapStartNotReadyExceptionRes(parsedOutput, context);
        case "SnapStartTimeoutException":
        case "com.amazonaws.lambda#SnapStartTimeoutException":
          throw await de_SnapStartTimeoutExceptionRes(parsedOutput, context);
        case "SubnetIPAddressLimitReachedException":
        case "com.amazonaws.lambda#SubnetIPAddressLimitReachedException":
          throw await de_SubnetIPAddressLimitReachedExceptionRes(parsedOutput, context);
        case "UnsupportedMediaTypeException":
        case "com.amazonaws.lambda#UnsupportedMediaTypeException":
          throw await de_UnsupportedMediaTypeExceptionRes(parsedOutput, context);
        default:
          const parsedBody = parsedOutput.body;
          return throwDefaultError3({
            output,
            parsedBody,
            errorCode
          });
      }
    }, "de_CommandError");
    var throwDefaultError3 = (0, import_smithy_client28.withBaseException)(LambdaServiceException);
    var de_CodeSigningConfigNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client28.take)(data3, {
        Message: import_smithy_client28.expectString,
        Type: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      const exception = new CodeSigningConfigNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_CodeSigningConfigNotFoundExceptionRes");
    var de_CodeStorageExceededExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client28.take)(data3, {
        Type: import_smithy_client28.expectString,
        message: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      const exception = new CodeStorageExceededException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_CodeStorageExceededExceptionRes");
    var de_CodeVerificationFailedExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client28.take)(data3, {
        Message: import_smithy_client28.expectString,
        Type: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      const exception = new CodeVerificationFailedException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_CodeVerificationFailedExceptionRes");
    var de_EC2AccessDeniedExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client28.take)(data3, {
        Message: import_smithy_client28.expectString,
        Type: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      const exception = new EC2AccessDeniedException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_EC2AccessDeniedExceptionRes");
    var de_EC2ThrottledExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client28.take)(data3, {
        Message: import_smithy_client28.expectString,
        Type: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      const exception = new EC2ThrottledException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_EC2ThrottledExceptionRes");
    var de_EC2UnexpectedExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client28.take)(data3, {
        EC2ErrorCode: import_smithy_client28.expectString,
        Message: import_smithy_client28.expectString,
        Type: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      const exception = new EC2UnexpectedException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_EC2UnexpectedExceptionRes");
    var de_EFSIOExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client28.take)(data3, {
        Message: import_smithy_client28.expectString,
        Type: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      const exception = new EFSIOException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_EFSIOExceptionRes");
    var de_EFSMountConnectivityExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client28.take)(data3, {
        Message: import_smithy_client28.expectString,
        Type: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      const exception = new EFSMountConnectivityException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_EFSMountConnectivityExceptionRes");
    var de_EFSMountFailureExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client28.take)(data3, {
        Message: import_smithy_client28.expectString,
        Type: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      const exception = new EFSMountFailureException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_EFSMountFailureExceptionRes");
    var de_EFSMountTimeoutExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client28.take)(data3, {
        Message: import_smithy_client28.expectString,
        Type: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      const exception = new EFSMountTimeoutException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_EFSMountTimeoutExceptionRes");
    var de_ENILimitReachedExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client28.take)(data3, {
        Message: import_smithy_client28.expectString,
        Type: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      const exception = new ENILimitReachedException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_ENILimitReachedExceptionRes");
    var de_InvalidCodeSignatureExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client28.take)(data3, {
        Message: import_smithy_client28.expectString,
        Type: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      const exception = new InvalidCodeSignatureException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_InvalidCodeSignatureExceptionRes");
    var de_InvalidParameterValueExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client28.take)(data3, {
        Type: import_smithy_client28.expectString,
        message: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      const exception = new InvalidParameterValueException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_InvalidParameterValueExceptionRes");
    var de_InvalidRequestContentExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client28.take)(data3, {
        Type: import_smithy_client28.expectString,
        message: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      const exception = new InvalidRequestContentException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_InvalidRequestContentExceptionRes");
    var de_InvalidRuntimeExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client28.take)(data3, {
        Message: import_smithy_client28.expectString,
        Type: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      const exception = new InvalidRuntimeException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_InvalidRuntimeExceptionRes");
    var de_InvalidSecurityGroupIDExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client28.take)(data3, {
        Message: import_smithy_client28.expectString,
        Type: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      const exception = new InvalidSecurityGroupIDException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_InvalidSecurityGroupIDExceptionRes");
    var de_InvalidSubnetIDExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client28.take)(data3, {
        Message: import_smithy_client28.expectString,
        Type: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      const exception = new InvalidSubnetIDException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_InvalidSubnetIDExceptionRes");
    var de_InvalidZipFileExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client28.take)(data3, {
        Message: import_smithy_client28.expectString,
        Type: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      const exception = new InvalidZipFileException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_InvalidZipFileExceptionRes");
    var de_KMSAccessDeniedExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client28.take)(data3, {
        Message: import_smithy_client28.expectString,
        Type: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      const exception = new KMSAccessDeniedException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_KMSAccessDeniedExceptionRes");
    var de_KMSDisabledExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client28.take)(data3, {
        Message: import_smithy_client28.expectString,
        Type: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      const exception = new KMSDisabledException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_KMSDisabledExceptionRes");
    var de_KMSInvalidStateExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client28.take)(data3, {
        Message: import_smithy_client28.expectString,
        Type: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      const exception = new KMSInvalidStateException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_KMSInvalidStateExceptionRes");
    var de_KMSNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client28.take)(data3, {
        Message: import_smithy_client28.expectString,
        Type: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      const exception = new KMSNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_KMSNotFoundExceptionRes");
    var de_PolicyLengthExceededExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client28.take)(data3, {
        Type: import_smithy_client28.expectString,
        message: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      const exception = new PolicyLengthExceededException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_PolicyLengthExceededExceptionRes");
    var de_PreconditionFailedExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client28.take)(data3, {
        Type: import_smithy_client28.expectString,
        message: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      const exception = new PreconditionFailedException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_PreconditionFailedExceptionRes");
    var de_ProvisionedConcurrencyConfigNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client28.take)(data3, {
        Type: import_smithy_client28.expectString,
        message: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      const exception = new ProvisionedConcurrencyConfigNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_ProvisionedConcurrencyConfigNotFoundExceptionRes");
    var de_RecursiveInvocationExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client28.take)(data3, {
        Message: import_smithy_client28.expectString,
        Type: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      const exception = new RecursiveInvocationException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_RecursiveInvocationExceptionRes");
    var de_RequestTooLargeExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client28.take)(data3, {
        Type: import_smithy_client28.expectString,
        message: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      const exception = new RequestTooLargeException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_RequestTooLargeExceptionRes");
    var de_ResourceConflictExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client28.take)(data3, {
        Type: import_smithy_client28.expectString,
        message: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      const exception = new ResourceConflictException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_ResourceConflictExceptionRes");
    var de_ResourceInUseExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client28.take)(data3, {
        Message: import_smithy_client28.expectString,
        Type: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      const exception = new ResourceInUseException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_ResourceInUseExceptionRes");
    var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client28.take)(data3, {
        Message: import_smithy_client28.expectString,
        Type: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      const exception = new ResourceNotFoundException2({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_ResourceNotFoundExceptionRes");
    var de_ResourceNotReadyExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client28.take)(data3, {
        Type: import_smithy_client28.expectString,
        message: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      const exception = new ResourceNotReadyException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_ResourceNotReadyExceptionRes");
    var de_ServiceExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client28.take)(data3, {
        Message: import_smithy_client28.expectString,
        Type: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      const exception = new ServiceException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_ServiceExceptionRes");
    var de_SnapStartExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client28.take)(data3, {
        Message: import_smithy_client28.expectString,
        Type: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      const exception = new SnapStartException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_SnapStartExceptionRes");
    var de_SnapStartNotReadyExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client28.take)(data3, {
        Message: import_smithy_client28.expectString,
        Type: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      const exception = new SnapStartNotReadyException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_SnapStartNotReadyExceptionRes");
    var de_SnapStartTimeoutExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client28.take)(data3, {
        Message: import_smithy_client28.expectString,
        Type: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      const exception = new SnapStartTimeoutException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_SnapStartTimeoutExceptionRes");
    var de_SubnetIPAddressLimitReachedExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client28.take)(data3, {
        Message: import_smithy_client28.expectString,
        Type: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      const exception = new SubnetIPAddressLimitReachedException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_SubnetIPAddressLimitReachedExceptionRes");
    var de_TooManyRequestsExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({
        [_rAS]: [, parsedOutput.headers[_ra]]
      });
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client28.take)(data3, {
        Reason: import_smithy_client28.expectString,
        Type: import_smithy_client28.expectString,
        message: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      const exception = new TooManyRequestsException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_TooManyRequestsExceptionRes");
    var de_UnsupportedMediaTypeExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body;
      const doc = (0, import_smithy_client28.take)(data3, {
        Type: import_smithy_client28.expectString,
        message: import_smithy_client28.expectString
      });
      Object.assign(contents, doc);
      const exception = new UnsupportedMediaTypeException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body);
    }, "de_UnsupportedMediaTypeExceptionRes");
    var de_InvokeWithResponseStreamResponseEvent = /* @__PURE__ */ __name2((output, context) => {
      return context.eventStreamMarshaller.deserialize(output, async (event) => {
        if (event["PayloadChunk"] != null) {
          return {
            PayloadChunk: await de_InvokeResponseStreamUpdate_event(event["PayloadChunk"], context)
          };
        }
        if (event["InvokeComplete"] != null) {
          return {
            InvokeComplete: await de_InvokeWithResponseStreamCompleteEvent_event(event["InvokeComplete"], context)
          };
        }
        return { $unknown: event };
      });
    }, "de_InvokeWithResponseStreamResponseEvent");
    var de_InvokeResponseStreamUpdate_event = /* @__PURE__ */ __name2(async (output, context) => {
      const contents = {};
      contents.Payload = output.body;
      return contents;
    }, "de_InvokeResponseStreamUpdate_event");
    var de_InvokeWithResponseStreamCompleteEvent_event = /* @__PURE__ */ __name2(async (output, context) => {
      const contents = {};
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      Object.assign(contents, (0, import_smithy_client28._json)(data3));
      return contents;
    }, "de_InvokeWithResponseStreamCompleteEvent_event");
    var se_AdditionalVersionWeights = /* @__PURE__ */ __name2((input, context) => {
      return Object.entries(input).reduce((acc, [key, value]) => {
        if (value === null) {
          return acc;
        }
        acc[key] = (0, import_smithy_client28.serializeFloat)(value);
        return acc;
      }, {});
    }, "se_AdditionalVersionWeights");
    var se_AliasRoutingConfiguration = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        AdditionalVersionWeights: /* @__PURE__ */ __name2((_3) => se_AdditionalVersionWeights(_3, context), "AdditionalVersionWeights")
      });
    }, "se_AliasRoutingConfiguration");
    var se_FunctionCode = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        ImageUri: [],
        S3Bucket: [],
        S3Key: [],
        S3ObjectVersion: [],
        SourceKMSKeyArn: [],
        ZipFile: context.base64Encoder
      });
    }, "se_FunctionCode");
    var se_LayerVersionContentInput = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        S3Bucket: [],
        S3Key: [],
        S3ObjectVersion: [],
        ZipFile: context.base64Encoder
      });
    }, "se_LayerVersionContentInput");
    var de_AdditionalVersionWeights = /* @__PURE__ */ __name2((output, context) => {
      return Object.entries(output).reduce((acc, [key, value]) => {
        if (value === null) {
          return acc;
        }
        acc[key] = (0, import_smithy_client28.limitedParseDouble)(value);
        return acc;
      }, {});
    }, "de_AdditionalVersionWeights");
    var de_AliasConfiguration = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        AliasArn: import_smithy_client28.expectString,
        Description: import_smithy_client28.expectString,
        FunctionVersion: import_smithy_client28.expectString,
        Name: import_smithy_client28.expectString,
        RevisionId: import_smithy_client28.expectString,
        RoutingConfig: /* @__PURE__ */ __name2((_3) => de_AliasRoutingConfiguration(_3, context), "RoutingConfig")
      });
    }, "de_AliasConfiguration");
    var de_AliasList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_AliasConfiguration(entry, context);
      });
      return retVal;
    }, "de_AliasList");
    var de_AliasRoutingConfiguration = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        AdditionalVersionWeights: /* @__PURE__ */ __name2((_3) => de_AdditionalVersionWeights(_3, context), "AdditionalVersionWeights")
      });
    }, "de_AliasRoutingConfiguration");
    var de_EventSourceMappingConfiguration = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        AmazonManagedKafkaEventSourceConfig: import_smithy_client28._json,
        BatchSize: import_smithy_client28.expectInt32,
        BisectBatchOnFunctionError: import_smithy_client28.expectBoolean,
        DestinationConfig: import_smithy_client28._json,
        DocumentDBEventSourceConfig: import_smithy_client28._json,
        EventSourceArn: import_smithy_client28.expectString,
        EventSourceMappingArn: import_smithy_client28.expectString,
        FilterCriteria: import_smithy_client28._json,
        FilterCriteriaError: import_smithy_client28._json,
        FunctionArn: import_smithy_client28.expectString,
        FunctionResponseTypes: import_smithy_client28._json,
        KMSKeyArn: import_smithy_client28.expectString,
        LastModified: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "LastModified"),
        LastProcessingResult: import_smithy_client28.expectString,
        MaximumBatchingWindowInSeconds: import_smithy_client28.expectInt32,
        MaximumRecordAgeInSeconds: import_smithy_client28.expectInt32,
        MaximumRetryAttempts: import_smithy_client28.expectInt32,
        MetricsConfig: import_smithy_client28._json,
        ParallelizationFactor: import_smithy_client28.expectInt32,
        ProvisionedPollerConfig: import_smithy_client28._json,
        Queues: import_smithy_client28._json,
        ScalingConfig: import_smithy_client28._json,
        SelfManagedEventSource: import_smithy_client28._json,
        SelfManagedKafkaEventSourceConfig: import_smithy_client28._json,
        SourceAccessConfigurations: import_smithy_client28._json,
        StartingPosition: import_smithy_client28.expectString,
        StartingPositionTimestamp: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "StartingPositionTimestamp"),
        State: import_smithy_client28.expectString,
        StateTransitionReason: import_smithy_client28.expectString,
        Topics: import_smithy_client28._json,
        TumblingWindowInSeconds: import_smithy_client28.expectInt32,
        UUID: import_smithy_client28.expectString
      });
    }, "de_EventSourceMappingConfiguration");
    var de_EventSourceMappingsList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_EventSourceMappingConfiguration(entry, context);
      });
      return retVal;
    }, "de_EventSourceMappingsList");
    var de_FunctionEventInvokeConfig = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        DestinationConfig: import_smithy_client28._json,
        FunctionArn: import_smithy_client28.expectString,
        LastModified: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "LastModified"),
        MaximumEventAgeInSeconds: import_smithy_client28.expectInt32,
        MaximumRetryAttempts: import_smithy_client28.expectInt32
      });
    }, "de_FunctionEventInvokeConfig");
    var de_FunctionEventInvokeConfigList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_FunctionEventInvokeConfig(entry, context);
      });
      return retVal;
    }, "de_FunctionEventInvokeConfigList");
    var deserializeMetadata3 = /* @__PURE__ */ __name2((output) => ({
      httpStatusCode: output.statusCode,
      requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
      extendedRequestId: output.headers["x-amz-id-2"],
      cfId: output.headers["x-amz-cf-id"]
    }), "deserializeMetadata");
    var _A2 = "Arn";
    var _CA2 = "CompatibleArchitecture";
    var _CC = "ClientContext";
    var _CR = "CompatibleRuntime";
    var _ESA = "EventSourceArn";
    var _EV = "ExecutedVersion";
    var _FE = "FunctionError";
    var _FN = "FunctionName";
    var _FV = "FunctionVersion";
    var _IT = "InvocationType";
    var _L = "List";
    var _LR = "LogResult";
    var _LT = "LogType";
    var _M = "Marker";
    var _MI = "MaxItems";
    var _MR = "MasterRegion";
    var _Q = "Qualifier";
    var _RI = "RevisionId";
    var _RSCT = "ResponseStreamContentType";
    var _TK = "TagKeys";
    var _ct = "content-type";
    var _f = "find";
    var _rAS = "retryAfterSeconds";
    var _ra = "retry-after";
    var _tK = "tagKeys";
    var _xacc = "x-amz-client-context";
    var _xaev = "x-amz-executed-version";
    var _xafe = "x-amz-function-error";
    var _xait = "x-amz-invocation-type";
    var _xalr = "x-amz-log-result";
    var _xalt = "x-amz-log-type";
    var AddLayerVersionPermissionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "AddLayerVersionPermission", {}).n("LambdaClient", "AddLayerVersionPermissionCommand").f(void 0, void 0).ser(se_AddLayerVersionPermissionCommand).de(de_AddLayerVersionPermissionCommand).build() {
      static {
        __name(this, "AddLayerVersionPermissionCommand");
      }
      static {
        __name2(this, "AddLayerVersionPermissionCommand");
      }
    };
    var AddPermissionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "AddPermission", {}).n("LambdaClient", "AddPermissionCommand").f(void 0, void 0).ser(se_AddPermissionCommand).de(de_AddPermissionCommand).build() {
      static {
        __name(this, "AddPermissionCommand");
      }
      static {
        __name2(this, "AddPermissionCommand");
      }
    };
    var CreateAliasCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "CreateAlias", {}).n("LambdaClient", "CreateAliasCommand").f(void 0, void 0).ser(se_CreateAliasCommand).de(de_CreateAliasCommand).build() {
      static {
        __name(this, "CreateAliasCommand");
      }
      static {
        __name2(this, "CreateAliasCommand");
      }
    };
    var CreateCodeSigningConfigCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "CreateCodeSigningConfig", {}).n("LambdaClient", "CreateCodeSigningConfigCommand").f(void 0, void 0).ser(se_CreateCodeSigningConfigCommand).de(de_CreateCodeSigningConfigCommand).build() {
      static {
        __name(this, "CreateCodeSigningConfigCommand");
      }
      static {
        __name2(this, "CreateCodeSigningConfigCommand");
      }
    };
    var CreateEventSourceMappingCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "CreateEventSourceMapping", {}).n("LambdaClient", "CreateEventSourceMappingCommand").f(void 0, void 0).ser(se_CreateEventSourceMappingCommand).de(de_CreateEventSourceMappingCommand).build() {
      static {
        __name(this, "CreateEventSourceMappingCommand");
      }
      static {
        __name2(this, "CreateEventSourceMappingCommand");
      }
    };
    var CreateFunctionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "CreateFunction", {}).n("LambdaClient", "CreateFunctionCommand").f(CreateFunctionRequestFilterSensitiveLog, FunctionConfigurationFilterSensitiveLog).ser(se_CreateFunctionCommand).de(de_CreateFunctionCommand).build() {
      static {
        __name(this, "CreateFunctionCommand");
      }
      static {
        __name2(this, "CreateFunctionCommand");
      }
    };
    var CreateFunctionUrlConfigCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "CreateFunctionUrlConfig", {}).n("LambdaClient", "CreateFunctionUrlConfigCommand").f(void 0, void 0).ser(se_CreateFunctionUrlConfigCommand).de(de_CreateFunctionUrlConfigCommand).build() {
      static {
        __name(this, "CreateFunctionUrlConfigCommand");
      }
      static {
        __name2(this, "CreateFunctionUrlConfigCommand");
      }
    };
    var DeleteAliasCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "DeleteAlias", {}).n("LambdaClient", "DeleteAliasCommand").f(void 0, void 0).ser(se_DeleteAliasCommand).de(de_DeleteAliasCommand).build() {
      static {
        __name(this, "DeleteAliasCommand");
      }
      static {
        __name2(this, "DeleteAliasCommand");
      }
    };
    var DeleteCodeSigningConfigCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "DeleteCodeSigningConfig", {}).n("LambdaClient", "DeleteCodeSigningConfigCommand").f(void 0, void 0).ser(se_DeleteCodeSigningConfigCommand).de(de_DeleteCodeSigningConfigCommand).build() {
      static {
        __name(this, "DeleteCodeSigningConfigCommand");
      }
      static {
        __name2(this, "DeleteCodeSigningConfigCommand");
      }
    };
    var DeleteEventSourceMappingCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "DeleteEventSourceMapping", {}).n("LambdaClient", "DeleteEventSourceMappingCommand").f(void 0, void 0).ser(se_DeleteEventSourceMappingCommand).de(de_DeleteEventSourceMappingCommand).build() {
      static {
        __name(this, "DeleteEventSourceMappingCommand");
      }
      static {
        __name2(this, "DeleteEventSourceMappingCommand");
      }
    };
    var DeleteFunctionCodeSigningConfigCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "DeleteFunctionCodeSigningConfig", {}).n("LambdaClient", "DeleteFunctionCodeSigningConfigCommand").f(void 0, void 0).ser(se_DeleteFunctionCodeSigningConfigCommand).de(de_DeleteFunctionCodeSigningConfigCommand).build() {
      static {
        __name(this, "DeleteFunctionCodeSigningConfigCommand");
      }
      static {
        __name2(this, "DeleteFunctionCodeSigningConfigCommand");
      }
    };
    var DeleteFunctionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "DeleteFunction", {}).n("LambdaClient", "DeleteFunctionCommand").f(void 0, void 0).ser(se_DeleteFunctionCommand).de(de_DeleteFunctionCommand).build() {
      static {
        __name(this, "DeleteFunctionCommand");
      }
      static {
        __name2(this, "DeleteFunctionCommand");
      }
    };
    var DeleteFunctionConcurrencyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "DeleteFunctionConcurrency", {}).n("LambdaClient", "DeleteFunctionConcurrencyCommand").f(void 0, void 0).ser(se_DeleteFunctionConcurrencyCommand).de(de_DeleteFunctionConcurrencyCommand).build() {
      static {
        __name(this, "DeleteFunctionConcurrencyCommand");
      }
      static {
        __name2(this, "DeleteFunctionConcurrencyCommand");
      }
    };
    var DeleteFunctionEventInvokeConfigCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "DeleteFunctionEventInvokeConfig", {}).n("LambdaClient", "DeleteFunctionEventInvokeConfigCommand").f(void 0, void 0).ser(se_DeleteFunctionEventInvokeConfigCommand).de(de_DeleteFunctionEventInvokeConfigCommand).build() {
      static {
        __name(this, "DeleteFunctionEventInvokeConfigCommand");
      }
      static {
        __name2(this, "DeleteFunctionEventInvokeConfigCommand");
      }
    };
    var DeleteFunctionUrlConfigCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "DeleteFunctionUrlConfig", {}).n("LambdaClient", "DeleteFunctionUrlConfigCommand").f(void 0, void 0).ser(se_DeleteFunctionUrlConfigCommand).de(de_DeleteFunctionUrlConfigCommand).build() {
      static {
        __name(this, "DeleteFunctionUrlConfigCommand");
      }
      static {
        __name2(this, "DeleteFunctionUrlConfigCommand");
      }
    };
    var DeleteLayerVersionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "DeleteLayerVersion", {}).n("LambdaClient", "DeleteLayerVersionCommand").f(void 0, void 0).ser(se_DeleteLayerVersionCommand).de(de_DeleteLayerVersionCommand).build() {
      static {
        __name(this, "DeleteLayerVersionCommand");
      }
      static {
        __name2(this, "DeleteLayerVersionCommand");
      }
    };
    var DeleteProvisionedConcurrencyConfigCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "DeleteProvisionedConcurrencyConfig", {}).n("LambdaClient", "DeleteProvisionedConcurrencyConfigCommand").f(void 0, void 0).ser(se_DeleteProvisionedConcurrencyConfigCommand).de(de_DeleteProvisionedConcurrencyConfigCommand).build() {
      static {
        __name(this, "DeleteProvisionedConcurrencyConfigCommand");
      }
      static {
        __name2(this, "DeleteProvisionedConcurrencyConfigCommand");
      }
    };
    var GetAccountSettingsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "GetAccountSettings", {}).n("LambdaClient", "GetAccountSettingsCommand").f(void 0, void 0).ser(se_GetAccountSettingsCommand).de(de_GetAccountSettingsCommand).build() {
      static {
        __name(this, "GetAccountSettingsCommand");
      }
      static {
        __name2(this, "GetAccountSettingsCommand");
      }
    };
    var GetAliasCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "GetAlias", {}).n("LambdaClient", "GetAliasCommand").f(void 0, void 0).ser(se_GetAliasCommand).de(de_GetAliasCommand).build() {
      static {
        __name(this, "GetAliasCommand");
      }
      static {
        __name2(this, "GetAliasCommand");
      }
    };
    var GetCodeSigningConfigCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "GetCodeSigningConfig", {}).n("LambdaClient", "GetCodeSigningConfigCommand").f(void 0, void 0).ser(se_GetCodeSigningConfigCommand).de(de_GetCodeSigningConfigCommand).build() {
      static {
        __name(this, "GetCodeSigningConfigCommand");
      }
      static {
        __name2(this, "GetCodeSigningConfigCommand");
      }
    };
    var GetEventSourceMappingCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "GetEventSourceMapping", {}).n("LambdaClient", "GetEventSourceMappingCommand").f(void 0, void 0).ser(se_GetEventSourceMappingCommand).de(de_GetEventSourceMappingCommand).build() {
      static {
        __name(this, "GetEventSourceMappingCommand");
      }
      static {
        __name2(this, "GetEventSourceMappingCommand");
      }
    };
    var GetFunctionCodeSigningConfigCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "GetFunctionCodeSigningConfig", {}).n("LambdaClient", "GetFunctionCodeSigningConfigCommand").f(void 0, void 0).ser(se_GetFunctionCodeSigningConfigCommand).de(de_GetFunctionCodeSigningConfigCommand).build() {
      static {
        __name(this, "GetFunctionCodeSigningConfigCommand");
      }
      static {
        __name2(this, "GetFunctionCodeSigningConfigCommand");
      }
    };
    var GetFunctionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "GetFunction", {}).n("LambdaClient", "GetFunctionCommand").f(void 0, GetFunctionResponseFilterSensitiveLog).ser(se_GetFunctionCommand).de(de_GetFunctionCommand).build() {
      static {
        __name(this, "GetFunctionCommand");
      }
      static {
        __name2(this, "GetFunctionCommand");
      }
    };
    var GetFunctionConcurrencyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "GetFunctionConcurrency", {}).n("LambdaClient", "GetFunctionConcurrencyCommand").f(void 0, void 0).ser(se_GetFunctionConcurrencyCommand).de(de_GetFunctionConcurrencyCommand).build() {
      static {
        __name(this, "GetFunctionConcurrencyCommand");
      }
      static {
        __name2(this, "GetFunctionConcurrencyCommand");
      }
    };
    var GetFunctionConfigurationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "GetFunctionConfiguration", {}).n("LambdaClient", "GetFunctionConfigurationCommand").f(void 0, FunctionConfigurationFilterSensitiveLog).ser(se_GetFunctionConfigurationCommand).de(de_GetFunctionConfigurationCommand).build() {
      static {
        __name(this, "GetFunctionConfigurationCommand");
      }
      static {
        __name2(this, "GetFunctionConfigurationCommand");
      }
    };
    var GetFunctionEventInvokeConfigCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "GetFunctionEventInvokeConfig", {}).n("LambdaClient", "GetFunctionEventInvokeConfigCommand").f(void 0, void 0).ser(se_GetFunctionEventInvokeConfigCommand).de(de_GetFunctionEventInvokeConfigCommand).build() {
      static {
        __name(this, "GetFunctionEventInvokeConfigCommand");
      }
      static {
        __name2(this, "GetFunctionEventInvokeConfigCommand");
      }
    };
    var GetFunctionRecursionConfigCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "GetFunctionRecursionConfig", {}).n("LambdaClient", "GetFunctionRecursionConfigCommand").f(void 0, void 0).ser(se_GetFunctionRecursionConfigCommand).de(de_GetFunctionRecursionConfigCommand).build() {
      static {
        __name(this, "GetFunctionRecursionConfigCommand");
      }
      static {
        __name2(this, "GetFunctionRecursionConfigCommand");
      }
    };
    var GetFunctionUrlConfigCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "GetFunctionUrlConfig", {}).n("LambdaClient", "GetFunctionUrlConfigCommand").f(void 0, void 0).ser(se_GetFunctionUrlConfigCommand).de(de_GetFunctionUrlConfigCommand).build() {
      static {
        __name(this, "GetFunctionUrlConfigCommand");
      }
      static {
        __name2(this, "GetFunctionUrlConfigCommand");
      }
    };
    var GetLayerVersionByArnCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "GetLayerVersionByArn", {}).n("LambdaClient", "GetLayerVersionByArnCommand").f(void 0, void 0).ser(se_GetLayerVersionByArnCommand).de(de_GetLayerVersionByArnCommand).build() {
      static {
        __name(this, "GetLayerVersionByArnCommand");
      }
      static {
        __name2(this, "GetLayerVersionByArnCommand");
      }
    };
    var GetLayerVersionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "GetLayerVersion", {}).n("LambdaClient", "GetLayerVersionCommand").f(void 0, void 0).ser(se_GetLayerVersionCommand).de(de_GetLayerVersionCommand).build() {
      static {
        __name(this, "GetLayerVersionCommand");
      }
      static {
        __name2(this, "GetLayerVersionCommand");
      }
    };
    var GetLayerVersionPolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "GetLayerVersionPolicy", {}).n("LambdaClient", "GetLayerVersionPolicyCommand").f(void 0, void 0).ser(se_GetLayerVersionPolicyCommand).de(de_GetLayerVersionPolicyCommand).build() {
      static {
        __name(this, "GetLayerVersionPolicyCommand");
      }
      static {
        __name2(this, "GetLayerVersionPolicyCommand");
      }
    };
    var GetPolicyCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "GetPolicy", {}).n("LambdaClient", "GetPolicyCommand").f(void 0, void 0).ser(se_GetPolicyCommand).de(de_GetPolicyCommand).build() {
      static {
        __name(this, "GetPolicyCommand");
      }
      static {
        __name2(this, "GetPolicyCommand");
      }
    };
    var GetProvisionedConcurrencyConfigCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "GetProvisionedConcurrencyConfig", {}).n("LambdaClient", "GetProvisionedConcurrencyConfigCommand").f(void 0, void 0).ser(se_GetProvisionedConcurrencyConfigCommand).de(de_GetProvisionedConcurrencyConfigCommand).build() {
      static {
        __name(this, "GetProvisionedConcurrencyConfigCommand");
      }
      static {
        __name2(this, "GetProvisionedConcurrencyConfigCommand");
      }
    };
    var GetRuntimeManagementConfigCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "GetRuntimeManagementConfig", {}).n("LambdaClient", "GetRuntimeManagementConfigCommand").f(void 0, void 0).ser(se_GetRuntimeManagementConfigCommand).de(de_GetRuntimeManagementConfigCommand).build() {
      static {
        __name(this, "GetRuntimeManagementConfigCommand");
      }
      static {
        __name2(this, "GetRuntimeManagementConfigCommand");
      }
    };
    var InvokeAsyncCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "InvokeAsync", {}).n("LambdaClient", "InvokeAsyncCommand").f(InvokeAsyncRequestFilterSensitiveLog, void 0).ser(se_InvokeAsyncCommand).de(de_InvokeAsyncCommand).build() {
      static {
        __name(this, "InvokeAsyncCommand");
      }
      static {
        __name2(this, "InvokeAsyncCommand");
      }
    };
    var InvokeCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "Invoke", {}).n("LambdaClient", "InvokeCommand").f(InvocationRequestFilterSensitiveLog, InvocationResponseFilterSensitiveLog).ser(se_InvokeCommand).de(de_InvokeCommand).build() {
      static {
        __name(this, "InvokeCommand");
      }
      static {
        __name2(this, "InvokeCommand");
      }
    };
    var InvokeWithResponseStreamCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "InvokeWithResponseStream", {
      /**
       * @internal
       */
      eventStream: {
        output: true
      }
    }).n("LambdaClient", "InvokeWithResponseStreamCommand").f(InvokeWithResponseStreamRequestFilterSensitiveLog, InvokeWithResponseStreamResponseFilterSensitiveLog).ser(se_InvokeWithResponseStreamCommand).de(de_InvokeWithResponseStreamCommand).build() {
      static {
        __name(this, "InvokeWithResponseStreamCommand");
      }
      static {
        __name2(this, "InvokeWithResponseStreamCommand");
      }
    };
    var ListAliasesCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "ListAliases", {}).n("LambdaClient", "ListAliasesCommand").f(void 0, void 0).ser(se_ListAliasesCommand).de(de_ListAliasesCommand).build() {
      static {
        __name(this, "ListAliasesCommand");
      }
      static {
        __name2(this, "ListAliasesCommand");
      }
    };
    var ListCodeSigningConfigsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "ListCodeSigningConfigs", {}).n("LambdaClient", "ListCodeSigningConfigsCommand").f(void 0, void 0).ser(se_ListCodeSigningConfigsCommand).de(de_ListCodeSigningConfigsCommand).build() {
      static {
        __name(this, "ListCodeSigningConfigsCommand");
      }
      static {
        __name2(this, "ListCodeSigningConfigsCommand");
      }
    };
    var ListEventSourceMappingsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "ListEventSourceMappings", {}).n("LambdaClient", "ListEventSourceMappingsCommand").f(void 0, void 0).ser(se_ListEventSourceMappingsCommand).de(de_ListEventSourceMappingsCommand).build() {
      static {
        __name(this, "ListEventSourceMappingsCommand");
      }
      static {
        __name2(this, "ListEventSourceMappingsCommand");
      }
    };
    var ListFunctionEventInvokeConfigsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "ListFunctionEventInvokeConfigs", {}).n("LambdaClient", "ListFunctionEventInvokeConfigsCommand").f(void 0, void 0).ser(se_ListFunctionEventInvokeConfigsCommand).de(de_ListFunctionEventInvokeConfigsCommand).build() {
      static {
        __name(this, "ListFunctionEventInvokeConfigsCommand");
      }
      static {
        __name2(this, "ListFunctionEventInvokeConfigsCommand");
      }
    };
    var ListFunctionsByCodeSigningConfigCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "ListFunctionsByCodeSigningConfig", {}).n("LambdaClient", "ListFunctionsByCodeSigningConfigCommand").f(void 0, void 0).ser(se_ListFunctionsByCodeSigningConfigCommand).de(de_ListFunctionsByCodeSigningConfigCommand).build() {
      static {
        __name(this, "ListFunctionsByCodeSigningConfigCommand");
      }
      static {
        __name2(this, "ListFunctionsByCodeSigningConfigCommand");
      }
    };
    var ListFunctionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "ListFunctions", {}).n("LambdaClient", "ListFunctionsCommand").f(void 0, ListFunctionsResponseFilterSensitiveLog).ser(se_ListFunctionsCommand).de(de_ListFunctionsCommand).build() {
      static {
        __name(this, "ListFunctionsCommand");
      }
      static {
        __name2(this, "ListFunctionsCommand");
      }
    };
    var ListFunctionUrlConfigsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "ListFunctionUrlConfigs", {}).n("LambdaClient", "ListFunctionUrlConfigsCommand").f(void 0, void 0).ser(se_ListFunctionUrlConfigsCommand).de(de_ListFunctionUrlConfigsCommand).build() {
      static {
        __name(this, "ListFunctionUrlConfigsCommand");
      }
      static {
        __name2(this, "ListFunctionUrlConfigsCommand");
      }
    };
    var ListLayersCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "ListLayers", {}).n("LambdaClient", "ListLayersCommand").f(void 0, void 0).ser(se_ListLayersCommand).de(de_ListLayersCommand).build() {
      static {
        __name(this, "ListLayersCommand");
      }
      static {
        __name2(this, "ListLayersCommand");
      }
    };
    var ListLayerVersionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "ListLayerVersions", {}).n("LambdaClient", "ListLayerVersionsCommand").f(void 0, void 0).ser(se_ListLayerVersionsCommand).de(de_ListLayerVersionsCommand).build() {
      static {
        __name(this, "ListLayerVersionsCommand");
      }
      static {
        __name2(this, "ListLayerVersionsCommand");
      }
    };
    var ListProvisionedConcurrencyConfigsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "ListProvisionedConcurrencyConfigs", {}).n("LambdaClient", "ListProvisionedConcurrencyConfigsCommand").f(void 0, void 0).ser(se_ListProvisionedConcurrencyConfigsCommand).de(de_ListProvisionedConcurrencyConfigsCommand).build() {
      static {
        __name(this, "ListProvisionedConcurrencyConfigsCommand");
      }
      static {
        __name2(this, "ListProvisionedConcurrencyConfigsCommand");
      }
    };
    var ListTagsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "ListTags", {}).n("LambdaClient", "ListTagsCommand").f(void 0, void 0).ser(se_ListTagsCommand).de(de_ListTagsCommand).build() {
      static {
        __name(this, "ListTagsCommand");
      }
      static {
        __name2(this, "ListTagsCommand");
      }
    };
    var ListVersionsByFunctionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "ListVersionsByFunction", {}).n("LambdaClient", "ListVersionsByFunctionCommand").f(void 0, ListVersionsByFunctionResponseFilterSensitiveLog).ser(se_ListVersionsByFunctionCommand).de(de_ListVersionsByFunctionCommand).build() {
      static {
        __name(this, "ListVersionsByFunctionCommand");
      }
      static {
        __name2(this, "ListVersionsByFunctionCommand");
      }
    };
    var PublishLayerVersionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "PublishLayerVersion", {}).n("LambdaClient", "PublishLayerVersionCommand").f(PublishLayerVersionRequestFilterSensitiveLog, void 0).ser(se_PublishLayerVersionCommand).de(de_PublishLayerVersionCommand).build() {
      static {
        __name(this, "PublishLayerVersionCommand");
      }
      static {
        __name2(this, "PublishLayerVersionCommand");
      }
    };
    var PublishVersionCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "PublishVersion", {}).n("LambdaClient", "PublishVersionCommand").f(void 0, FunctionConfigurationFilterSensitiveLog).ser(se_PublishVersionCommand).de(de_PublishVersionCommand).build() {
      static {
        __name(this, "PublishVersionCommand");
      }
      static {
        __name2(this, "PublishVersionCommand");
      }
    };
    var PutFunctionCodeSigningConfigCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "PutFunctionCodeSigningConfig", {}).n("LambdaClient", "PutFunctionCodeSigningConfigCommand").f(void 0, void 0).ser(se_PutFunctionCodeSigningConfigCommand).de(de_PutFunctionCodeSigningConfigCommand).build() {
      static {
        __name(this, "PutFunctionCodeSigningConfigCommand");
      }
      static {
        __name2(this, "PutFunctionCodeSigningConfigCommand");
      }
    };
    var PutFunctionConcurrencyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "PutFunctionConcurrency", {}).n("LambdaClient", "PutFunctionConcurrencyCommand").f(void 0, void 0).ser(se_PutFunctionConcurrencyCommand).de(de_PutFunctionConcurrencyCommand).build() {
      static {
        __name(this, "PutFunctionConcurrencyCommand");
      }
      static {
        __name2(this, "PutFunctionConcurrencyCommand");
      }
    };
    var PutFunctionEventInvokeConfigCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "PutFunctionEventInvokeConfig", {}).n("LambdaClient", "PutFunctionEventInvokeConfigCommand").f(void 0, void 0).ser(se_PutFunctionEventInvokeConfigCommand).de(de_PutFunctionEventInvokeConfigCommand).build() {
      static {
        __name(this, "PutFunctionEventInvokeConfigCommand");
      }
      static {
        __name2(this, "PutFunctionEventInvokeConfigCommand");
      }
    };
    var PutFunctionRecursionConfigCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "PutFunctionRecursionConfig", {}).n("LambdaClient", "PutFunctionRecursionConfigCommand").f(void 0, void 0).ser(se_PutFunctionRecursionConfigCommand).de(de_PutFunctionRecursionConfigCommand).build() {
      static {
        __name(this, "PutFunctionRecursionConfigCommand");
      }
      static {
        __name2(this, "PutFunctionRecursionConfigCommand");
      }
    };
    var PutProvisionedConcurrencyConfigCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "PutProvisionedConcurrencyConfig", {}).n("LambdaClient", "PutProvisionedConcurrencyConfigCommand").f(void 0, void 0).ser(se_PutProvisionedConcurrencyConfigCommand).de(de_PutProvisionedConcurrencyConfigCommand).build() {
      static {
        __name(this, "PutProvisionedConcurrencyConfigCommand");
      }
      static {
        __name2(this, "PutProvisionedConcurrencyConfigCommand");
      }
    };
    var PutRuntimeManagementConfigCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "PutRuntimeManagementConfig", {}).n("LambdaClient", "PutRuntimeManagementConfigCommand").f(void 0, void 0).ser(se_PutRuntimeManagementConfigCommand).de(de_PutRuntimeManagementConfigCommand).build() {
      static {
        __name(this, "PutRuntimeManagementConfigCommand");
      }
      static {
        __name2(this, "PutRuntimeManagementConfigCommand");
      }
    };
    var RemoveLayerVersionPermissionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "RemoveLayerVersionPermission", {}).n("LambdaClient", "RemoveLayerVersionPermissionCommand").f(void 0, void 0).ser(se_RemoveLayerVersionPermissionCommand).de(de_RemoveLayerVersionPermissionCommand).build() {
      static {
        __name(this, "RemoveLayerVersionPermissionCommand");
      }
      static {
        __name2(this, "RemoveLayerVersionPermissionCommand");
      }
    };
    var RemovePermissionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "RemovePermission", {}).n("LambdaClient", "RemovePermissionCommand").f(void 0, void 0).ser(se_RemovePermissionCommand).de(de_RemovePermissionCommand).build() {
      static {
        __name(this, "RemovePermissionCommand");
      }
      static {
        __name2(this, "RemovePermissionCommand");
      }
    };
    var TagResourceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "TagResource", {}).n("LambdaClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
      static {
        __name(this, "TagResourceCommand");
      }
      static {
        __name2(this, "TagResourceCommand");
      }
    };
    var UntagResourceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "UntagResource", {}).n("LambdaClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
      static {
        __name(this, "UntagResourceCommand");
      }
      static {
        __name2(this, "UntagResourceCommand");
      }
    };
    var UpdateAliasCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "UpdateAlias", {}).n("LambdaClient", "UpdateAliasCommand").f(void 0, void 0).ser(se_UpdateAliasCommand).de(de_UpdateAliasCommand).build() {
      static {
        __name(this, "UpdateAliasCommand");
      }
      static {
        __name2(this, "UpdateAliasCommand");
      }
    };
    var UpdateCodeSigningConfigCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "UpdateCodeSigningConfig", {}).n("LambdaClient", "UpdateCodeSigningConfigCommand").f(void 0, void 0).ser(se_UpdateCodeSigningConfigCommand).de(de_UpdateCodeSigningConfigCommand).build() {
      static {
        __name(this, "UpdateCodeSigningConfigCommand");
      }
      static {
        __name2(this, "UpdateCodeSigningConfigCommand");
      }
    };
    var UpdateEventSourceMappingCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "UpdateEventSourceMapping", {}).n("LambdaClient", "UpdateEventSourceMappingCommand").f(void 0, void 0).ser(se_UpdateEventSourceMappingCommand).de(de_UpdateEventSourceMappingCommand).build() {
      static {
        __name(this, "UpdateEventSourceMappingCommand");
      }
      static {
        __name2(this, "UpdateEventSourceMappingCommand");
      }
    };
    var UpdateFunctionCodeCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "UpdateFunctionCode", {}).n("LambdaClient", "UpdateFunctionCodeCommand").f(UpdateFunctionCodeRequestFilterSensitiveLog, FunctionConfigurationFilterSensitiveLog).ser(se_UpdateFunctionCodeCommand).de(de_UpdateFunctionCodeCommand).build() {
      static {
        __name(this, "UpdateFunctionCodeCommand");
      }
      static {
        __name2(this, "UpdateFunctionCodeCommand");
      }
    };
    var UpdateFunctionConfigurationCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "UpdateFunctionConfiguration", {}).n("LambdaClient", "UpdateFunctionConfigurationCommand").f(UpdateFunctionConfigurationRequestFilterSensitiveLog, FunctionConfigurationFilterSensitiveLog).ser(se_UpdateFunctionConfigurationCommand).de(de_UpdateFunctionConfigurationCommand).build() {
      static {
        __name(this, "UpdateFunctionConfigurationCommand");
      }
      static {
        __name2(this, "UpdateFunctionConfigurationCommand");
      }
    };
    var UpdateFunctionEventInvokeConfigCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "UpdateFunctionEventInvokeConfig", {}).n("LambdaClient", "UpdateFunctionEventInvokeConfigCommand").f(void 0, void 0).ser(se_UpdateFunctionEventInvokeConfigCommand).de(de_UpdateFunctionEventInvokeConfigCommand).build() {
      static {
        __name(this, "UpdateFunctionEventInvokeConfigCommand");
      }
      static {
        __name2(this, "UpdateFunctionEventInvokeConfigCommand");
      }
    };
    var UpdateFunctionUrlConfigCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSGirApiService", "UpdateFunctionUrlConfig", {}).n("LambdaClient", "UpdateFunctionUrlConfigCommand").f(void 0, void 0).ser(se_UpdateFunctionUrlConfigCommand).de(de_UpdateFunctionUrlConfigCommand).build() {
      static {
        __name(this, "UpdateFunctionUrlConfigCommand");
      }
      static {
        __name2(this, "UpdateFunctionUrlConfigCommand");
      }
    };
    var commands3 = {
      AddLayerVersionPermissionCommand,
      AddPermissionCommand,
      CreateAliasCommand,
      CreateCodeSigningConfigCommand,
      CreateEventSourceMappingCommand,
      CreateFunctionCommand,
      CreateFunctionUrlConfigCommand,
      DeleteAliasCommand,
      DeleteCodeSigningConfigCommand,
      DeleteEventSourceMappingCommand,
      DeleteFunctionCommand,
      DeleteFunctionCodeSigningConfigCommand,
      DeleteFunctionConcurrencyCommand,
      DeleteFunctionEventInvokeConfigCommand,
      DeleteFunctionUrlConfigCommand,
      DeleteLayerVersionCommand,
      DeleteProvisionedConcurrencyConfigCommand,
      GetAccountSettingsCommand,
      GetAliasCommand,
      GetCodeSigningConfigCommand,
      GetEventSourceMappingCommand,
      GetFunctionCommand,
      GetFunctionCodeSigningConfigCommand,
      GetFunctionConcurrencyCommand,
      GetFunctionConfigurationCommand,
      GetFunctionEventInvokeConfigCommand,
      GetFunctionRecursionConfigCommand,
      GetFunctionUrlConfigCommand,
      GetLayerVersionCommand,
      GetLayerVersionByArnCommand,
      GetLayerVersionPolicyCommand,
      GetPolicyCommand: GetPolicyCommand2,
      GetProvisionedConcurrencyConfigCommand,
      GetRuntimeManagementConfigCommand,
      InvokeCommand: InvokeCommand2,
      InvokeAsyncCommand,
      InvokeWithResponseStreamCommand,
      ListAliasesCommand: ListAliasesCommand2,
      ListCodeSigningConfigsCommand,
      ListEventSourceMappingsCommand,
      ListFunctionEventInvokeConfigsCommand,
      ListFunctionsCommand,
      ListFunctionsByCodeSigningConfigCommand,
      ListFunctionUrlConfigsCommand,
      ListLayersCommand,
      ListLayerVersionsCommand,
      ListProvisionedConcurrencyConfigsCommand,
      ListTagsCommand,
      ListVersionsByFunctionCommand,
      PublishLayerVersionCommand,
      PublishVersionCommand: PublishVersionCommand2,
      PutFunctionCodeSigningConfigCommand,
      PutFunctionConcurrencyCommand,
      PutFunctionEventInvokeConfigCommand,
      PutFunctionRecursionConfigCommand,
      PutProvisionedConcurrencyConfigCommand,
      PutRuntimeManagementConfigCommand,
      RemoveLayerVersionPermissionCommand,
      RemovePermissionCommand,
      TagResourceCommand,
      UntagResourceCommand,
      UpdateAliasCommand: UpdateAliasCommand2,
      UpdateCodeSigningConfigCommand,
      UpdateEventSourceMappingCommand,
      UpdateFunctionCodeCommand: UpdateFunctionCodeCommand2,
      UpdateFunctionConfigurationCommand: UpdateFunctionConfigurationCommand2,
      UpdateFunctionEventInvokeConfigCommand,
      UpdateFunctionUrlConfigCommand
    };
    var Lambda = class extends LambdaClient2 {
      static {
        __name(this, "Lambda");
      }
      static {
        __name2(this, "Lambda");
      }
    };
    (0, import_smithy_client28.createAggregatedClient)(commands3, Lambda);
    var paginateListAliases = (0, import_core17.createPaginator)(LambdaClient2, ListAliasesCommand2, "Marker", "NextMarker", "MaxItems");
    var paginateListCodeSigningConfigs = (0, import_core17.createPaginator)(LambdaClient2, ListCodeSigningConfigsCommand, "Marker", "NextMarker", "MaxItems");
    var paginateListEventSourceMappings = (0, import_core17.createPaginator)(LambdaClient2, ListEventSourceMappingsCommand, "Marker", "NextMarker", "MaxItems");
    var paginateListFunctionEventInvokeConfigs = (0, import_core17.createPaginator)(LambdaClient2, ListFunctionEventInvokeConfigsCommand, "Marker", "NextMarker", "MaxItems");
    var paginateListFunctionUrlConfigs = (0, import_core17.createPaginator)(LambdaClient2, ListFunctionUrlConfigsCommand, "Marker", "NextMarker", "MaxItems");
    var paginateListFunctionsByCodeSigningConfig = (0, import_core17.createPaginator)(LambdaClient2, ListFunctionsByCodeSigningConfigCommand, "Marker", "NextMarker", "MaxItems");
    var paginateListFunctions2 = (0, import_core17.createPaginator)(LambdaClient2, ListFunctionsCommand, "Marker", "NextMarker", "MaxItems");
    var paginateListLayerVersions = (0, import_core17.createPaginator)(LambdaClient2, ListLayerVersionsCommand, "Marker", "NextMarker", "MaxItems");
    var paginateListLayers = (0, import_core17.createPaginator)(LambdaClient2, ListLayersCommand, "Marker", "NextMarker", "MaxItems");
    var paginateListProvisionedConcurrencyConfigs = (0, import_core17.createPaginator)(LambdaClient2, ListProvisionedConcurrencyConfigsCommand, "Marker", "NextMarker", "MaxItems");
    var paginateListVersionsByFunction = (0, import_core17.createPaginator)(LambdaClient2, ListVersionsByFunctionCommand, "Marker", "NextMarker", "MaxItems");
    var import_util_waiter = require_dist_cjs53();
    var checkState = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new GetFunctionConfigurationCommand(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            return result2.State;
          }, "returnComparator");
          if (returnComparator() === "Active") {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            return result2.State;
          }, "returnComparator");
          if (returnComparator() === "Failed") {
            return { state: import_util_waiter.WaiterState.FAILURE, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            return result2.State;
          }, "returnComparator");
          if (returnComparator() === "Pending") {
            return { state: import_util_waiter.WaiterState.RETRY, reason };
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForFunctionActive = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 5, maxDelay: 300 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
    }, "waitForFunctionActive");
    var waitUntilFunctionActive = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 5, maxDelay: 300 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilFunctionActive");
    var checkState2 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new GetFunctionCommand(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            return result2.Configuration.State;
          }, "returnComparator");
          if (returnComparator() === "Active") {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            return result2.Configuration.State;
          }, "returnComparator");
          if (returnComparator() === "Failed") {
            return { state: import_util_waiter.WaiterState.FAILURE, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            return result2.Configuration.State;
          }, "returnComparator");
          if (returnComparator() === "Pending") {
            return { state: import_util_waiter.WaiterState.RETRY, reason };
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForFunctionActiveV2 = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 1, maxDelay: 300 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2);
    }, "waitForFunctionActiveV2");
    var waitUntilFunctionActiveV2 = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 1, maxDelay: 300 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilFunctionActiveV2");
    var checkState3 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new GetFunctionCommand(input));
        reason = result2;
        return { state: import_util_waiter.WaiterState.SUCCESS, reason };
      } catch (exception) {
        reason = exception;
        if (exception.name && exception.name == "ResourceNotFoundException") {
          return { state: import_util_waiter.WaiterState.RETRY, reason };
        }
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForFunctionExists = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 1, maxDelay: 20 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState3);
    }, "waitForFunctionExists");
    var waitUntilFunctionExists = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 1, maxDelay: 20 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState3);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilFunctionExists");
    var checkState4 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new GetFunctionConfigurationCommand(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            return result2.LastUpdateStatus;
          }, "returnComparator");
          if (returnComparator() === "Successful") {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            return result2.LastUpdateStatus;
          }, "returnComparator");
          if (returnComparator() === "Failed") {
            return { state: import_util_waiter.WaiterState.FAILURE, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            return result2.LastUpdateStatus;
          }, "returnComparator");
          if (returnComparator() === "InProgress") {
            return { state: import_util_waiter.WaiterState.RETRY, reason };
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForFunctionUpdated = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 5, maxDelay: 300 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState4);
    }, "waitForFunctionUpdated");
    var waitUntilFunctionUpdated = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 5, maxDelay: 300 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState4);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilFunctionUpdated");
    var checkState5 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new GetFunctionCommand(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            return result2.Configuration.LastUpdateStatus;
          }, "returnComparator");
          if (returnComparator() === "Successful") {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            return result2.Configuration.LastUpdateStatus;
          }, "returnComparator");
          if (returnComparator() === "Failed") {
            return { state: import_util_waiter.WaiterState.FAILURE, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            return result2.Configuration.LastUpdateStatus;
          }, "returnComparator");
          if (returnComparator() === "InProgress") {
            return { state: import_util_waiter.WaiterState.RETRY, reason };
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForFunctionUpdatedV2 = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 1, maxDelay: 300 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState5);
    }, "waitForFunctionUpdatedV2");
    var waitUntilFunctionUpdatedV22 = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 1, maxDelay: 300 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState5);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilFunctionUpdatedV2");
    var checkState6 = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new GetFunctionConfigurationCommand(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            return result2.State;
          }, "returnComparator");
          if (returnComparator() === "Active") {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            return result2.State;
          }, "returnComparator");
          if (returnComparator() === "Failed") {
            return { state: import_util_waiter.WaiterState.FAILURE, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            return result2.State;
          }, "returnComparator");
          if (returnComparator() === "Pending") {
            return { state: import_util_waiter.WaiterState.RETRY, reason };
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForPublishedVersionActive = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 5, maxDelay: 1560 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState6);
    }, "waitForPublishedVersionActive");
    var waitUntilPublishedVersionActive = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 5, maxDelay: 1560 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState6);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilPublishedVersionActive");
  }
});

// ../../node_modules/@aws-sdk/client-route-53/dist-cjs/auth/httpAuthSchemeProvider.js
var require_httpAuthSchemeProvider18 = __commonJS({
  "../../node_modules/@aws-sdk/client-route-53/dist-cjs/auth/httpAuthSchemeProvider.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.resolveHttpAuthSchemeConfig = exports2.defaultRoute53HttpAuthSchemeProvider = exports2.defaultRoute53HttpAuthSchemeParametersProvider = void 0;
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var util_middleware_1 = require_dist_cjs6();
    var defaultRoute53HttpAuthSchemeParametersProvider = /* @__PURE__ */ __name(async (config, context, input) => {
      return {
        operation: (0, util_middleware_1.getSmithyContext)(context).operation,
        region: await (0, util_middleware_1.normalizeProvider)(config.region)() || (() => {
          throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
        })()
      };
    }, "defaultRoute53HttpAuthSchemeParametersProvider");
    exports2.defaultRoute53HttpAuthSchemeParametersProvider = defaultRoute53HttpAuthSchemeParametersProvider;
    function createAwsAuthSigv4HttpAuthOption3(authParameters) {
      return {
        schemeId: "aws.auth#sigv4",
        signingProperties: {
          name: "route53",
          region: authParameters.region
        },
        propertiesExtractor: /* @__PURE__ */ __name((config, context) => ({
          signingProperties: {
            config,
            context
          }
        }), "propertiesExtractor")
      };
    }
    __name(createAwsAuthSigv4HttpAuthOption3, "createAwsAuthSigv4HttpAuthOption");
    var defaultRoute53HttpAuthSchemeProvider = /* @__PURE__ */ __name((authParameters) => {
      const options = [];
      switch (authParameters.operation) {
        default: {
          options.push(createAwsAuthSigv4HttpAuthOption3(authParameters));
        }
      }
      return options;
    }, "defaultRoute53HttpAuthSchemeProvider");
    exports2.defaultRoute53HttpAuthSchemeProvider = defaultRoute53HttpAuthSchemeProvider;
    var resolveHttpAuthSchemeConfig3 = /* @__PURE__ */ __name((config) => {
      const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
      return Object.assign(config_0, {
        authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? [])
      });
    }, "resolveHttpAuthSchemeConfig");
    exports2.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig3;
  }
});

// ../../node_modules/@aws-sdk/client-route-53/package.json
var require_package18 = __commonJS({
  "../../node_modules/@aws-sdk/client-route-53/package.json"(exports2, module2) {
    module2.exports = {
      name: "@aws-sdk/client-route-53",
      description: "AWS SDK for JavaScript Route 53 Client for Node.js, Browser and React Native",
      version: "3.879.0",
      scripts: {
        build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
        "build:cjs": "node ../../scripts/compilation/inline client-route-53",
        "build:es": "tsc -p tsconfig.es.json",
        "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
        "build:types": "tsc -p tsconfig.types.json",
        "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
        clean: "rimraf ./dist-* && rimraf *.tsbuildinfo",
        "extract:docs": "api-extractor run --local",
        "generate:client": "node ../../scripts/generate-clients/single-service --solo route-53"
      },
      main: "./dist-cjs/index.js",
      types: "./dist-types/index.d.ts",
      module: "./dist-es/index.js",
      sideEffects: false,
      dependencies: {
        "@aws-crypto/sha256-browser": "5.2.0",
        "@aws-crypto/sha256-js": "5.2.0",
        "@aws-sdk/core": "3.879.0",
        "@aws-sdk/credential-provider-node": "3.879.0",
        "@aws-sdk/middleware-host-header": "3.873.0",
        "@aws-sdk/middleware-logger": "3.876.0",
        "@aws-sdk/middleware-recursion-detection": "3.873.0",
        "@aws-sdk/middleware-sdk-route53": "3.873.0",
        "@aws-sdk/middleware-user-agent": "3.879.0",
        "@aws-sdk/region-config-resolver": "3.873.0",
        "@aws-sdk/types": "3.862.0",
        "@aws-sdk/util-endpoints": "3.879.0",
        "@aws-sdk/util-user-agent-browser": "3.873.0",
        "@aws-sdk/util-user-agent-node": "3.879.0",
        "@aws-sdk/xml-builder": "3.873.0",
        "@smithy/config-resolver": "^4.1.5",
        "@smithy/core": "^3.9.0",
        "@smithy/fetch-http-handler": "^5.1.1",
        "@smithy/hash-node": "^4.0.5",
        "@smithy/invalid-dependency": "^4.0.5",
        "@smithy/middleware-content-length": "^4.0.5",
        "@smithy/middleware-endpoint": "^4.1.19",
        "@smithy/middleware-retry": "^4.1.20",
        "@smithy/middleware-serde": "^4.0.9",
        "@smithy/middleware-stack": "^4.0.5",
        "@smithy/node-config-provider": "^4.1.4",
        "@smithy/node-http-handler": "^4.1.1",
        "@smithy/protocol-http": "^5.1.3",
        "@smithy/smithy-client": "^4.5.0",
        "@smithy/types": "^4.3.2",
        "@smithy/url-parser": "^4.0.5",
        "@smithy/util-base64": "^4.0.0",
        "@smithy/util-body-length-browser": "^4.0.0",
        "@smithy/util-body-length-node": "^4.0.0",
        "@smithy/util-defaults-mode-browser": "^4.0.27",
        "@smithy/util-defaults-mode-node": "^4.0.27",
        "@smithy/util-endpoints": "^3.0.7",
        "@smithy/util-middleware": "^4.0.5",
        "@smithy/util-retry": "^4.0.7",
        "@smithy/util-utf8": "^4.0.0",
        "@smithy/util-waiter": "^4.0.7",
        tslib: "^2.6.2"
      },
      devDependencies: {
        "@tsconfig/node18": "18.2.4",
        "@types/node": "^18.19.69",
        concurrently: "7.0.0",
        "downlevel-dts": "0.10.1",
        rimraf: "3.0.2",
        typescript: "~5.8.3"
      },
      engines: {
        node: ">=18.0.0"
      },
      typesVersions: {
        "<4.0": {
          "dist-types/*": [
            "dist-types/ts3.4/*"
          ]
        }
      },
      files: [
        "dist-*/**"
      ],
      author: {
        name: "AWS SDK for JavaScript Team",
        url: "https://aws.amazon.com/javascript/"
      },
      license: "Apache-2.0",
      browser: {
        "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
      },
      "react-native": {
        "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
      },
      homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-route-53",
      repository: {
        type: "git",
        url: "https://github.com/aws/aws-sdk-js-v3.git",
        directory: "clients/client-route-53"
      }
    };
  }
});

// ../../node_modules/@aws-sdk/client-route-53/dist-cjs/endpoint/ruleset.js
var require_ruleset18 = __commonJS({
  "../../node_modules/@aws-sdk/client-route-53/dist-cjs/endpoint/ruleset.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.ruleSet = void 0;
    var C2 = "required";
    var D2 = "fn";
    var E2 = "argv";
    var F2 = "ref";
    var G2 = "authSchemes";
    var H2 = "signingName";
    var I2 = "signingRegion";
    var a3 = true;
    var b3 = "isSet";
    var c3 = "booleanEquals";
    var d3 = "error";
    var e3 = "endpoint";
    var f3 = "tree";
    var g3 = "PartitionResult";
    var h3 = "stringEquals";
    var i3 = "sigv4";
    var j3 = "route53";
    var k3 = { [C2]: false, "type": "String" };
    var l3 = { [C2]: true, "default": false, "type": "Boolean" };
    var m3 = { [F2]: "Endpoint" };
    var n3 = { [D2]: c3, [E2]: [{ [F2]: "UseFIPS" }, true] };
    var o3 = { [D2]: c3, [E2]: [{ [F2]: "UseDualStack" }, true] };
    var p3 = {};
    var q3 = { [D2]: h3, [E2]: [{ [D2]: "getAttr", [E2]: [{ [F2]: g3 }, "name"] }, "aws"] };
    var r3 = { [D2]: "getAttr", [E2]: [{ [F2]: g3 }, "name"] };
    var s3 = { [D2]: c3, [E2]: [{ [F2]: "UseFIPS" }, false] };
    var t3 = { [D2]: c3, [E2]: [{ [F2]: "UseDualStack" }, false] };
    var u3 = { [G2]: [{ "name": i3, [H2]: j3, [I2]: "us-east-1" }] };
    var v6 = { [D2]: h3, [E2]: [r3, "aws-us-gov"] };
    var w3 = { "url": "https://route53.us-gov.amazonaws.com", "properties": { [G2]: [{ "name": i3, [H2]: j3, [I2]: "us-gov-west-1" }] }, "headers": {} };
    var x3 = { [D2]: "getAttr", [E2]: [{ [F2]: g3 }, "supportsFIPS"] };
    var y2 = { [D2]: c3, [E2]: [true, { [D2]: "getAttr", [E2]: [{ [F2]: g3 }, "supportsDualStack"] }] };
    var z2 = [n3];
    var A2 = [o3];
    var B2 = [{ [F2]: "Region" }];
    var _data3 = { version: "1.0", parameters: { Region: k3, UseDualStack: l3, UseFIPS: l3, Endpoint: k3 }, rules: [{ conditions: [{ [D2]: b3, [E2]: [m3] }], rules: [{ conditions: z2, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d3 }, { conditions: A2, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d3 }, { endpoint: { url: m3, properties: p3, headers: p3 }, type: e3 }], type: f3 }, { conditions: [{ [D2]: b3, [E2]: B2 }], rules: [{ conditions: [{ [D2]: "aws.partition", [E2]: B2, assign: g3 }], rules: [{ conditions: [q3, s3, t3], endpoint: { url: "https://route53.amazonaws.com", properties: u3, headers: p3 }, type: e3 }, { conditions: [q3, n3, t3], endpoint: { url: "https://route53-fips.amazonaws.com", properties: u3, headers: p3 }, type: e3 }, { conditions: [{ [D2]: h3, [E2]: [r3, "aws-cn"] }, s3, t3], endpoint: { url: "https://route53.amazonaws.com.cn", properties: { [G2]: [{ name: i3, [H2]: j3, [I2]: "cn-northwest-1" }] }, headers: p3 }, type: e3 }, { conditions: [v6, s3, t3], endpoint: w3, type: e3 }, { conditions: [v6, n3, t3], endpoint: w3, type: e3 }, { conditions: [{ [D2]: h3, [E2]: [r3, "aws-iso"] }, s3, t3], endpoint: { url: "https://route53.c2s.ic.gov", properties: { [G2]: [{ name: i3, [H2]: j3, [I2]: "us-iso-east-1" }] }, headers: p3 }, type: e3 }, { conditions: [{ [D2]: h3, [E2]: [r3, "aws-iso-b"] }, s3, t3], endpoint: { url: "https://route53.sc2s.sgov.gov", properties: { [G2]: [{ name: i3, [H2]: j3, [I2]: "us-isob-east-1" }] }, headers: p3 }, type: e3 }, { conditions: [{ [D2]: h3, [E2]: [r3, "aws-iso-e"] }, s3, t3], endpoint: { url: "https://route53.cloud.adc-e.uk", properties: { [G2]: [{ name: i3, [H2]: j3, [I2]: "eu-isoe-west-1" }] }, headers: p3 }, type: e3 }, { conditions: [{ [D2]: h3, [E2]: [r3, "aws-iso-f"] }, s3, t3], endpoint: { url: "https://route53.csp.hci.ic.gov", properties: { [G2]: [{ name: i3, [H2]: j3, [I2]: "us-isof-south-1" }] }, headers: p3 }, type: e3 }, { conditions: [{ [D2]: h3, [E2]: [r3, "aws-eusc"] }, s3, t3], endpoint: { url: "https://route53.amazonaws.eu", properties: { [G2]: [{ name: i3, [H2]: j3, [I2]: "eusc-de-east-1" }] }, headers: p3 }, type: e3 }, { conditions: [n3, o3], rules: [{ conditions: [{ [D2]: c3, [E2]: [a3, x3] }, y2], rules: [{ endpoint: { url: "https://route53-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: p3, headers: p3 }, type: e3 }], type: f3 }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d3 }], type: f3 }, { conditions: z2, rules: [{ conditions: [{ [D2]: c3, [E2]: [x3, a3] }], rules: [{ endpoint: { url: "https://route53-fips.{Region}.{PartitionResult#dnsSuffix}", properties: p3, headers: p3 }, type: e3 }], type: f3 }, { error: "FIPS is enabled but this partition does not support FIPS", type: d3 }], type: f3 }, { conditions: A2, rules: [{ conditions: [y2], rules: [{ endpoint: { url: "https://route53.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: p3, headers: p3 }, type: e3 }], type: f3 }, { error: "DualStack is enabled but this partition does not support DualStack", type: d3 }], type: f3 }, { endpoint: { url: "https://route53.{Region}.{PartitionResult#dnsSuffix}", properties: p3, headers: p3 }, type: e3 }], type: f3 }], type: f3 }, { error: "Invalid Configuration: Missing Region", type: d3 }] };
    exports2.ruleSet = _data3;
  }
});

// ../../node_modules/@aws-sdk/client-route-53/dist-cjs/endpoint/endpointResolver.js
var require_endpointResolver18 = __commonJS({
  "../../node_modules/@aws-sdk/client-route-53/dist-cjs/endpoint/endpointResolver.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.defaultEndpointResolver = void 0;
    var util_endpoints_1 = require_dist_cjs21();
    var util_endpoints_2 = require_dist_cjs18();
    var ruleset_1 = require_ruleset18();
    var cache3 = new util_endpoints_2.EndpointCache({
      size: 50,
      params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"]
    });
    var defaultEndpointResolver3 = /* @__PURE__ */ __name((endpointParams, context = {}) => {
      return cache3.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
        endpointParams,
        logger: context.logger
      }));
    }, "defaultEndpointResolver");
    exports2.defaultEndpointResolver = defaultEndpointResolver3;
    util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
  }
});

// ../../node_modules/@aws-sdk/client-route-53/dist-cjs/runtimeConfig.shared.js
var require_runtimeConfig_shared19 = __commonJS({
  "../../node_modules/@aws-sdk/client-route-53/dist-cjs/runtimeConfig.shared.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.getRuntimeConfig = void 0;
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var smithy_client_1 = require_dist_cjs26();
    var url_parser_1 = require_dist_cjs20();
    var util_base64_1 = require_dist_cjs11();
    var util_utf8_1 = require_dist_cjs10();
    var httpAuthSchemeProvider_1 = require_httpAuthSchemeProvider18();
    var endpointResolver_1 = require_endpointResolver18();
    var getRuntimeConfig5 = /* @__PURE__ */ __name((config) => {
      return {
        apiVersion: "2013-04-01",
        base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
        base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
        disableHostPrefix: config?.disableHostPrefix ?? false,
        endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
        extensions: config?.extensions ?? [],
        httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultRoute53HttpAuthSchemeProvider,
        httpAuthSchemes: config?.httpAuthSchemes ?? [
          {
            schemeId: "aws.auth#sigv4",
            identityProvider: /* @__PURE__ */ __name((ipc) => ipc.getIdentityProvider("aws.auth#sigv4"), "identityProvider"),
            signer: new core_1.AwsSdkSigV4Signer()
          }
        ],
        logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
        serviceId: config?.serviceId ?? "Route 53",
        urlParser: config?.urlParser ?? url_parser_1.parseUrl,
        utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
        utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8
      };
    }, "getRuntimeConfig");
    exports2.getRuntimeConfig = getRuntimeConfig5;
  }
});

// ../../node_modules/@aws-sdk/client-route-53/dist-cjs/runtimeConfig.js
var require_runtimeConfig19 = __commonJS({
  "../../node_modules/@aws-sdk/client-route-53/dist-cjs/runtimeConfig.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.getRuntimeConfig = void 0;
    var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
    var package_json_1 = tslib_1.__importDefault(require_package18());
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var credential_provider_node_1 = require_dist_cjs52();
    var util_user_agent_node_1 = require_dist_cjs41();
    var config_resolver_1 = require_dist_cjs30();
    var hash_node_1 = require_dist_cjs42();
    var middleware_retry_1 = require_dist_cjs37();
    var node_config_provider_1 = require_dist_cjs33();
    var node_http_handler_1 = require_dist_cjs14();
    var util_body_length_node_1 = require_dist_cjs43();
    var util_retry_1 = require_dist_cjs36();
    var runtimeConfig_shared_1 = require_runtimeConfig_shared19();
    var smithy_client_1 = require_dist_cjs26();
    var util_defaults_mode_node_1 = require_dist_cjs44();
    var smithy_client_2 = require_dist_cjs26();
    var getRuntimeConfig5 = /* @__PURE__ */ __name((config) => {
      (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
      const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
      const defaultConfigProvider = /* @__PURE__ */ __name(() => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode), "defaultConfigProvider");
      const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
      (0, core_1.emitWarningIfUnsupportedVersion)(process.version);
      const loaderConfig = {
        profile: config?.profile,
        logger: clientSharedValues.logger
      };
      return {
        ...clientSharedValues,
        ...config,
        runtime: "node",
        defaultsMode,
        authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
        bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
        credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
        defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
        maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
        region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
        requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
        retryMode: config?.retryMode ?? (0, node_config_provider_1.loadConfig)({
          ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
          default: /* @__PURE__ */ __name(async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE, "default")
        }, config),
        sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
        streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
        useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
        useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
        userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig)
      };
    }, "getRuntimeConfig");
    exports2.getRuntimeConfig = getRuntimeConfig5;
  }
});

// ../../node_modules/@aws-sdk/middleware-sdk-route53/dist-cjs/index.js
var require_dist_cjs93 = __commonJS({
  "../../node_modules/@aws-sdk/middleware-sdk-route53/dist-cjs/index.js"(exports2, module2) {
    "use strict";
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var index_exports = {};
    __export2(index_exports, {
      changeResourceRecordSetsMiddleware: /* @__PURE__ */ __name(() => changeResourceRecordSetsMiddleware, "changeResourceRecordSetsMiddleware"),
      changeResourceRecordSetsMiddlewareOptions: /* @__PURE__ */ __name(() => changeResourceRecordSetsMiddlewareOptions, "changeResourceRecordSetsMiddlewareOptions"),
      getChangeResourceRecordSetsPlugin: /* @__PURE__ */ __name(() => getChangeResourceRecordSetsPlugin, "getChangeResourceRecordSetsPlugin"),
      getIdNormalizerPlugin: /* @__PURE__ */ __name(() => getIdNormalizerPlugin, "getIdNormalizerPlugin"),
      idNormalizerMiddleware: /* @__PURE__ */ __name(() => idNormalizerMiddleware, "idNormalizerMiddleware"),
      idNormalizerMiddlewareOptions: /* @__PURE__ */ __name(() => idNormalizerMiddlewareOptions, "idNormalizerMiddlewareOptions")
    });
    module2.exports = __toCommonJS2(index_exports);
    var IDENTIFIER_PREFIX_PATTERN = /^\/(hostedzone|change|delegationset)\//;
    function changeResourceRecordSetsMiddleware() {
      return (next) => async (args) => {
        const { ChangeBatch } = args.input;
        const Changes = [];
        for (const change of ChangeBatch.Changes) {
          const { AliasTarget } = change.ResourceRecordSet;
          if (AliasTarget) {
            Changes.push({
              ...change,
              ResourceRecordSet: {
                ...change.ResourceRecordSet,
                AliasTarget: {
                  ...AliasTarget,
                  HostedZoneId: AliasTarget.HostedZoneId.replace(IDENTIFIER_PREFIX_PATTERN, "")
                }
              }
            });
          } else {
            Changes.push(change);
          }
        }
        return next({
          ...args,
          input: {
            ...args.input,
            ChangeBatch: {
              ...ChangeBatch,
              Changes
            }
          }
        });
      };
    }
    __name(changeResourceRecordSetsMiddleware, "changeResourceRecordSetsMiddleware");
    __name2(changeResourceRecordSetsMiddleware, "changeResourceRecordSetsMiddleware");
    var changeResourceRecordSetsMiddlewareOptions = {
      step: "initialize",
      tags: ["ROUTE53_IDS", "CHANGE_RESOURCE_RECORD_SETS"],
      name: "changeResourceRecordSetsMiddleware",
      override: true
    };
    var getChangeResourceRecordSetsPlugin = /* @__PURE__ */ __name2((unused) => ({
      applyToStack: /* @__PURE__ */ __name2((clientStack) => {
        clientStack.add(changeResourceRecordSetsMiddleware(), changeResourceRecordSetsMiddlewareOptions);
      }, "applyToStack")
    }), "getChangeResourceRecordSetsPlugin");
    var IDENTIFIER_PARAMETERS = ["DelegationSetId", "HostedZoneId", "Id"];
    function idNormalizerMiddleware() {
      return (next) => async (args) => {
        const input = { ...args.input };
        for (const paramName of IDENTIFIER_PARAMETERS) {
          const param = input[paramName];
          if (param) {
            input[paramName] = param.replace(IDENTIFIER_PREFIX_PATTERN, "");
          }
        }
        return next({
          ...args,
          input
        });
      };
    }
    __name(idNormalizerMiddleware, "idNormalizerMiddleware");
    __name2(idNormalizerMiddleware, "idNormalizerMiddleware");
    var idNormalizerMiddlewareOptions = {
      step: "initialize",
      tags: ["ROUTE53_IDS"],
      name: "idNormalizerMiddleware",
      override: true
    };
    var getIdNormalizerPlugin = /* @__PURE__ */ __name2((unused) => ({
      applyToStack: /* @__PURE__ */ __name2((clientStack) => {
        clientStack.add(idNormalizerMiddleware(), idNormalizerMiddlewareOptions);
      }, "applyToStack")
    }), "getIdNormalizerPlugin");
  }
});

// ../../node_modules/@aws-sdk/client-route-53/dist-cjs/index.js
var require_dist_cjs94 = __commonJS({
  "../../node_modules/@aws-sdk/client-route-53/dist-cjs/index.js"(exports2, module2) {
    "use strict";
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var index_exports = {};
    __export2(index_exports, {
      AccountLimitType: /* @__PURE__ */ __name(() => AccountLimitType, "AccountLimitType"),
      ActivateKeySigningKeyCommand: /* @__PURE__ */ __name(() => ActivateKeySigningKeyCommand, "ActivateKeySigningKeyCommand"),
      AssociateVPCWithHostedZoneCommand: /* @__PURE__ */ __name(() => AssociateVPCWithHostedZoneCommand, "AssociateVPCWithHostedZoneCommand"),
      ChangeAction: /* @__PURE__ */ __name(() => ChangeAction, "ChangeAction"),
      ChangeCidrCollectionCommand: /* @__PURE__ */ __name(() => ChangeCidrCollectionCommand, "ChangeCidrCollectionCommand"),
      ChangeResourceRecordSetsCommand: /* @__PURE__ */ __name(() => ChangeResourceRecordSetsCommand, "ChangeResourceRecordSetsCommand"),
      ChangeStatus: /* @__PURE__ */ __name(() => ChangeStatus, "ChangeStatus"),
      ChangeTagsForResourceCommand: /* @__PURE__ */ __name(() => ChangeTagsForResourceCommand, "ChangeTagsForResourceCommand"),
      CidrBlockInUseException: /* @__PURE__ */ __name(() => CidrBlockInUseException, "CidrBlockInUseException"),
      CidrCollectionAlreadyExistsException: /* @__PURE__ */ __name(() => CidrCollectionAlreadyExistsException, "CidrCollectionAlreadyExistsException"),
      CidrCollectionChangeAction: /* @__PURE__ */ __name(() => CidrCollectionChangeAction, "CidrCollectionChangeAction"),
      CidrCollectionInUseException: /* @__PURE__ */ __name(() => CidrCollectionInUseException, "CidrCollectionInUseException"),
      CidrCollectionVersionMismatchException: /* @__PURE__ */ __name(() => CidrCollectionVersionMismatchException, "CidrCollectionVersionMismatchException"),
      CloudWatchRegion: /* @__PURE__ */ __name(() => CloudWatchRegion, "CloudWatchRegion"),
      ComparisonOperator: /* @__PURE__ */ __name(() => ComparisonOperator, "ComparisonOperator"),
      ConcurrentModification: /* @__PURE__ */ __name(() => ConcurrentModification, "ConcurrentModification"),
      ConflictingDomainExists: /* @__PURE__ */ __name(() => ConflictingDomainExists, "ConflictingDomainExists"),
      ConflictingTypes: /* @__PURE__ */ __name(() => ConflictingTypes, "ConflictingTypes"),
      CreateCidrCollectionCommand: /* @__PURE__ */ __name(() => CreateCidrCollectionCommand, "CreateCidrCollectionCommand"),
      CreateHealthCheckCommand: /* @__PURE__ */ __name(() => CreateHealthCheckCommand, "CreateHealthCheckCommand"),
      CreateHostedZoneCommand: /* @__PURE__ */ __name(() => CreateHostedZoneCommand, "CreateHostedZoneCommand"),
      CreateKeySigningKeyCommand: /* @__PURE__ */ __name(() => CreateKeySigningKeyCommand, "CreateKeySigningKeyCommand"),
      CreateQueryLoggingConfigCommand: /* @__PURE__ */ __name(() => CreateQueryLoggingConfigCommand, "CreateQueryLoggingConfigCommand"),
      CreateReusableDelegationSetCommand: /* @__PURE__ */ __name(() => CreateReusableDelegationSetCommand, "CreateReusableDelegationSetCommand"),
      CreateTrafficPolicyCommand: /* @__PURE__ */ __name(() => CreateTrafficPolicyCommand, "CreateTrafficPolicyCommand"),
      CreateTrafficPolicyInstanceCommand: /* @__PURE__ */ __name(() => CreateTrafficPolicyInstanceCommand, "CreateTrafficPolicyInstanceCommand"),
      CreateTrafficPolicyVersionCommand: /* @__PURE__ */ __name(() => CreateTrafficPolicyVersionCommand, "CreateTrafficPolicyVersionCommand"),
      CreateVPCAssociationAuthorizationCommand: /* @__PURE__ */ __name(() => CreateVPCAssociationAuthorizationCommand, "CreateVPCAssociationAuthorizationCommand"),
      DNSSECNotFound: /* @__PURE__ */ __name(() => DNSSECNotFound, "DNSSECNotFound"),
      DeactivateKeySigningKeyCommand: /* @__PURE__ */ __name(() => DeactivateKeySigningKeyCommand, "DeactivateKeySigningKeyCommand"),
      DelegationSetAlreadyCreated: /* @__PURE__ */ __name(() => DelegationSetAlreadyCreated, "DelegationSetAlreadyCreated"),
      DelegationSetAlreadyReusable: /* @__PURE__ */ __name(() => DelegationSetAlreadyReusable, "DelegationSetAlreadyReusable"),
      DelegationSetInUse: /* @__PURE__ */ __name(() => DelegationSetInUse, "DelegationSetInUse"),
      DelegationSetNotAvailable: /* @__PURE__ */ __name(() => DelegationSetNotAvailable, "DelegationSetNotAvailable"),
      DelegationSetNotReusable: /* @__PURE__ */ __name(() => DelegationSetNotReusable, "DelegationSetNotReusable"),
      DeleteCidrCollectionCommand: /* @__PURE__ */ __name(() => DeleteCidrCollectionCommand, "DeleteCidrCollectionCommand"),
      DeleteHealthCheckCommand: /* @__PURE__ */ __name(() => DeleteHealthCheckCommand, "DeleteHealthCheckCommand"),
      DeleteHostedZoneCommand: /* @__PURE__ */ __name(() => DeleteHostedZoneCommand, "DeleteHostedZoneCommand"),
      DeleteKeySigningKeyCommand: /* @__PURE__ */ __name(() => DeleteKeySigningKeyCommand, "DeleteKeySigningKeyCommand"),
      DeleteQueryLoggingConfigCommand: /* @__PURE__ */ __name(() => DeleteQueryLoggingConfigCommand, "DeleteQueryLoggingConfigCommand"),
      DeleteReusableDelegationSetCommand: /* @__PURE__ */ __name(() => DeleteReusableDelegationSetCommand, "DeleteReusableDelegationSetCommand"),
      DeleteTrafficPolicyCommand: /* @__PURE__ */ __name(() => DeleteTrafficPolicyCommand, "DeleteTrafficPolicyCommand"),
      DeleteTrafficPolicyInstanceCommand: /* @__PURE__ */ __name(() => DeleteTrafficPolicyInstanceCommand, "DeleteTrafficPolicyInstanceCommand"),
      DeleteVPCAssociationAuthorizationCommand: /* @__PURE__ */ __name(() => DeleteVPCAssociationAuthorizationCommand, "DeleteVPCAssociationAuthorizationCommand"),
      DisableHostedZoneDNSSECCommand: /* @__PURE__ */ __name(() => DisableHostedZoneDNSSECCommand, "DisableHostedZoneDNSSECCommand"),
      DisassociateVPCFromHostedZoneCommand: /* @__PURE__ */ __name(() => DisassociateVPCFromHostedZoneCommand, "DisassociateVPCFromHostedZoneCommand"),
      EnableHostedZoneDNSSECCommand: /* @__PURE__ */ __name(() => EnableHostedZoneDNSSECCommand, "EnableHostedZoneDNSSECCommand"),
      GetAccountLimitCommand: /* @__PURE__ */ __name(() => GetAccountLimitCommand, "GetAccountLimitCommand"),
      GetChangeCommand: /* @__PURE__ */ __name(() => GetChangeCommand, "GetChangeCommand"),
      GetCheckerIpRangesCommand: /* @__PURE__ */ __name(() => GetCheckerIpRangesCommand, "GetCheckerIpRangesCommand"),
      GetDNSSECCommand: /* @__PURE__ */ __name(() => GetDNSSECCommand, "GetDNSSECCommand"),
      GetGeoLocationCommand: /* @__PURE__ */ __name(() => GetGeoLocationCommand, "GetGeoLocationCommand"),
      GetHealthCheckCommand: /* @__PURE__ */ __name(() => GetHealthCheckCommand, "GetHealthCheckCommand"),
      GetHealthCheckCountCommand: /* @__PURE__ */ __name(() => GetHealthCheckCountCommand, "GetHealthCheckCountCommand"),
      GetHealthCheckLastFailureReasonCommand: /* @__PURE__ */ __name(() => GetHealthCheckLastFailureReasonCommand, "GetHealthCheckLastFailureReasonCommand"),
      GetHealthCheckStatusCommand: /* @__PURE__ */ __name(() => GetHealthCheckStatusCommand, "GetHealthCheckStatusCommand"),
      GetHostedZoneCommand: /* @__PURE__ */ __name(() => GetHostedZoneCommand2, "GetHostedZoneCommand"),
      GetHostedZoneCountCommand: /* @__PURE__ */ __name(() => GetHostedZoneCountCommand, "GetHostedZoneCountCommand"),
      GetHostedZoneLimitCommand: /* @__PURE__ */ __name(() => GetHostedZoneLimitCommand, "GetHostedZoneLimitCommand"),
      GetQueryLoggingConfigCommand: /* @__PURE__ */ __name(() => GetQueryLoggingConfigCommand, "GetQueryLoggingConfigCommand"),
      GetReusableDelegationSetCommand: /* @__PURE__ */ __name(() => GetReusableDelegationSetCommand, "GetReusableDelegationSetCommand"),
      GetReusableDelegationSetLimitCommand: /* @__PURE__ */ __name(() => GetReusableDelegationSetLimitCommand, "GetReusableDelegationSetLimitCommand"),
      GetTrafficPolicyCommand: /* @__PURE__ */ __name(() => GetTrafficPolicyCommand, "GetTrafficPolicyCommand"),
      GetTrafficPolicyInstanceCommand: /* @__PURE__ */ __name(() => GetTrafficPolicyInstanceCommand, "GetTrafficPolicyInstanceCommand"),
      GetTrafficPolicyInstanceCountCommand: /* @__PURE__ */ __name(() => GetTrafficPolicyInstanceCountCommand, "GetTrafficPolicyInstanceCountCommand"),
      HealthCheckAlreadyExists: /* @__PURE__ */ __name(() => HealthCheckAlreadyExists, "HealthCheckAlreadyExists"),
      HealthCheckInUse: /* @__PURE__ */ __name(() => HealthCheckInUse, "HealthCheckInUse"),
      HealthCheckRegion: /* @__PURE__ */ __name(() => HealthCheckRegion, "HealthCheckRegion"),
      HealthCheckType: /* @__PURE__ */ __name(() => HealthCheckType, "HealthCheckType"),
      HealthCheckVersionMismatch: /* @__PURE__ */ __name(() => HealthCheckVersionMismatch, "HealthCheckVersionMismatch"),
      HostedZoneAlreadyExists: /* @__PURE__ */ __name(() => HostedZoneAlreadyExists, "HostedZoneAlreadyExists"),
      HostedZoneLimitType: /* @__PURE__ */ __name(() => HostedZoneLimitType, "HostedZoneLimitType"),
      HostedZoneNotEmpty: /* @__PURE__ */ __name(() => HostedZoneNotEmpty, "HostedZoneNotEmpty"),
      HostedZoneNotFound: /* @__PURE__ */ __name(() => HostedZoneNotFound, "HostedZoneNotFound"),
      HostedZoneNotPrivate: /* @__PURE__ */ __name(() => HostedZoneNotPrivate, "HostedZoneNotPrivate"),
      HostedZonePartiallyDelegated: /* @__PURE__ */ __name(() => HostedZonePartiallyDelegated, "HostedZonePartiallyDelegated"),
      HostedZoneType: /* @__PURE__ */ __name(() => HostedZoneType, "HostedZoneType"),
      IncompatibleVersion: /* @__PURE__ */ __name(() => IncompatibleVersion, "IncompatibleVersion"),
      InsufficientCloudWatchLogsResourcePolicy: /* @__PURE__ */ __name(() => InsufficientCloudWatchLogsResourcePolicy, "InsufficientCloudWatchLogsResourcePolicy"),
      InsufficientDataHealthStatus: /* @__PURE__ */ __name(() => InsufficientDataHealthStatus, "InsufficientDataHealthStatus"),
      InvalidArgument: /* @__PURE__ */ __name(() => InvalidArgument, "InvalidArgument"),
      InvalidChangeBatch: /* @__PURE__ */ __name(() => InvalidChangeBatch, "InvalidChangeBatch"),
      InvalidDomainName: /* @__PURE__ */ __name(() => InvalidDomainName, "InvalidDomainName"),
      InvalidInput: /* @__PURE__ */ __name(() => InvalidInput, "InvalidInput"),
      InvalidKMSArn: /* @__PURE__ */ __name(() => InvalidKMSArn, "InvalidKMSArn"),
      InvalidKeySigningKeyName: /* @__PURE__ */ __name(() => InvalidKeySigningKeyName, "InvalidKeySigningKeyName"),
      InvalidKeySigningKeyStatus: /* @__PURE__ */ __name(() => InvalidKeySigningKeyStatus, "InvalidKeySigningKeyStatus"),
      InvalidPaginationToken: /* @__PURE__ */ __name(() => InvalidPaginationToken, "InvalidPaginationToken"),
      InvalidSigningStatus: /* @__PURE__ */ __name(() => InvalidSigningStatus, "InvalidSigningStatus"),
      InvalidTrafficPolicyDocument: /* @__PURE__ */ __name(() => InvalidTrafficPolicyDocument, "InvalidTrafficPolicyDocument"),
      InvalidVPCId: /* @__PURE__ */ __name(() => InvalidVPCId, "InvalidVPCId"),
      KeySigningKeyAlreadyExists: /* @__PURE__ */ __name(() => KeySigningKeyAlreadyExists, "KeySigningKeyAlreadyExists"),
      KeySigningKeyInParentDSRecord: /* @__PURE__ */ __name(() => KeySigningKeyInParentDSRecord, "KeySigningKeyInParentDSRecord"),
      KeySigningKeyInUse: /* @__PURE__ */ __name(() => KeySigningKeyInUse, "KeySigningKeyInUse"),
      KeySigningKeyWithActiveStatusNotFound: /* @__PURE__ */ __name(() => KeySigningKeyWithActiveStatusNotFound, "KeySigningKeyWithActiveStatusNotFound"),
      LastVPCAssociation: /* @__PURE__ */ __name(() => LastVPCAssociation, "LastVPCAssociation"),
      LimitsExceeded: /* @__PURE__ */ __name(() => LimitsExceeded, "LimitsExceeded"),
      ListCidrBlocksCommand: /* @__PURE__ */ __name(() => ListCidrBlocksCommand, "ListCidrBlocksCommand"),
      ListCidrCollectionsCommand: /* @__PURE__ */ __name(() => ListCidrCollectionsCommand, "ListCidrCollectionsCommand"),
      ListCidrLocationsCommand: /* @__PURE__ */ __name(() => ListCidrLocationsCommand, "ListCidrLocationsCommand"),
      ListGeoLocationsCommand: /* @__PURE__ */ __name(() => ListGeoLocationsCommand, "ListGeoLocationsCommand"),
      ListHealthChecksCommand: /* @__PURE__ */ __name(() => ListHealthChecksCommand, "ListHealthChecksCommand"),
      ListHostedZonesByNameCommand: /* @__PURE__ */ __name(() => ListHostedZonesByNameCommand2, "ListHostedZonesByNameCommand"),
      ListHostedZonesByVPCCommand: /* @__PURE__ */ __name(() => ListHostedZonesByVPCCommand, "ListHostedZonesByVPCCommand"),
      ListHostedZonesCommand: /* @__PURE__ */ __name(() => ListHostedZonesCommand2, "ListHostedZonesCommand"),
      ListQueryLoggingConfigsCommand: /* @__PURE__ */ __name(() => ListQueryLoggingConfigsCommand, "ListQueryLoggingConfigsCommand"),
      ListResourceRecordSetsCommand: /* @__PURE__ */ __name(() => ListResourceRecordSetsCommand, "ListResourceRecordSetsCommand"),
      ListReusableDelegationSetsCommand: /* @__PURE__ */ __name(() => ListReusableDelegationSetsCommand, "ListReusableDelegationSetsCommand"),
      ListTagsForResourceCommand: /* @__PURE__ */ __name(() => ListTagsForResourceCommand, "ListTagsForResourceCommand"),
      ListTagsForResourcesCommand: /* @__PURE__ */ __name(() => ListTagsForResourcesCommand, "ListTagsForResourcesCommand"),
      ListTrafficPoliciesCommand: /* @__PURE__ */ __name(() => ListTrafficPoliciesCommand, "ListTrafficPoliciesCommand"),
      ListTrafficPolicyInstancesByHostedZoneCommand: /* @__PURE__ */ __name(() => ListTrafficPolicyInstancesByHostedZoneCommand, "ListTrafficPolicyInstancesByHostedZoneCommand"),
      ListTrafficPolicyInstancesByPolicyCommand: /* @__PURE__ */ __name(() => ListTrafficPolicyInstancesByPolicyCommand, "ListTrafficPolicyInstancesByPolicyCommand"),
      ListTrafficPolicyInstancesCommand: /* @__PURE__ */ __name(() => ListTrafficPolicyInstancesCommand, "ListTrafficPolicyInstancesCommand"),
      ListTrafficPolicyVersionsCommand: /* @__PURE__ */ __name(() => ListTrafficPolicyVersionsCommand, "ListTrafficPolicyVersionsCommand"),
      ListVPCAssociationAuthorizationsCommand: /* @__PURE__ */ __name(() => ListVPCAssociationAuthorizationsCommand, "ListVPCAssociationAuthorizationsCommand"),
      NoSuchChange: /* @__PURE__ */ __name(() => NoSuchChange, "NoSuchChange"),
      NoSuchCidrCollectionException: /* @__PURE__ */ __name(() => NoSuchCidrCollectionException, "NoSuchCidrCollectionException"),
      NoSuchCidrLocationException: /* @__PURE__ */ __name(() => NoSuchCidrLocationException, "NoSuchCidrLocationException"),
      NoSuchCloudWatchLogsLogGroup: /* @__PURE__ */ __name(() => NoSuchCloudWatchLogsLogGroup, "NoSuchCloudWatchLogsLogGroup"),
      NoSuchDelegationSet: /* @__PURE__ */ __name(() => NoSuchDelegationSet, "NoSuchDelegationSet"),
      NoSuchGeoLocation: /* @__PURE__ */ __name(() => NoSuchGeoLocation, "NoSuchGeoLocation"),
      NoSuchHealthCheck: /* @__PURE__ */ __name(() => NoSuchHealthCheck, "NoSuchHealthCheck"),
      NoSuchHostedZone: /* @__PURE__ */ __name(() => NoSuchHostedZone, "NoSuchHostedZone"),
      NoSuchKeySigningKey: /* @__PURE__ */ __name(() => NoSuchKeySigningKey, "NoSuchKeySigningKey"),
      NoSuchQueryLoggingConfig: /* @__PURE__ */ __name(() => NoSuchQueryLoggingConfig, "NoSuchQueryLoggingConfig"),
      NoSuchTrafficPolicy: /* @__PURE__ */ __name(() => NoSuchTrafficPolicy, "NoSuchTrafficPolicy"),
      NoSuchTrafficPolicyInstance: /* @__PURE__ */ __name(() => NoSuchTrafficPolicyInstance, "NoSuchTrafficPolicyInstance"),
      NotAuthorizedException: /* @__PURE__ */ __name(() => NotAuthorizedException, "NotAuthorizedException"),
      PriorRequestNotComplete: /* @__PURE__ */ __name(() => PriorRequestNotComplete, "PriorRequestNotComplete"),
      PublicZoneVPCAssociation: /* @__PURE__ */ __name(() => PublicZoneVPCAssociation, "PublicZoneVPCAssociation"),
      QueryLoggingConfigAlreadyExists: /* @__PURE__ */ __name(() => QueryLoggingConfigAlreadyExists, "QueryLoggingConfigAlreadyExists"),
      RRType: /* @__PURE__ */ __name(() => RRType, "RRType"),
      ResettableElementName: /* @__PURE__ */ __name(() => ResettableElementName, "ResettableElementName"),
      ResourceRecordSetFailover: /* @__PURE__ */ __name(() => ResourceRecordSetFailover, "ResourceRecordSetFailover"),
      ResourceRecordSetRegion: /* @__PURE__ */ __name(() => ResourceRecordSetRegion, "ResourceRecordSetRegion"),
      ReusableDelegationSetLimitType: /* @__PURE__ */ __name(() => ReusableDelegationSetLimitType, "ReusableDelegationSetLimitType"),
      Route53: /* @__PURE__ */ __name(() => Route53, "Route53"),
      Route53Client: /* @__PURE__ */ __name(() => Route53Client2, "Route53Client"),
      Route53ServiceException: /* @__PURE__ */ __name(() => Route53ServiceException, "Route53ServiceException"),
      Statistic: /* @__PURE__ */ __name(() => Statistic, "Statistic"),
      TagResourceType: /* @__PURE__ */ __name(() => TagResourceType, "TagResourceType"),
      TestDNSAnswerCommand: /* @__PURE__ */ __name(() => TestDNSAnswerCommand, "TestDNSAnswerCommand"),
      ThrottlingException: /* @__PURE__ */ __name(() => ThrottlingException, "ThrottlingException"),
      TooManyHealthChecks: /* @__PURE__ */ __name(() => TooManyHealthChecks, "TooManyHealthChecks"),
      TooManyHostedZones: /* @__PURE__ */ __name(() => TooManyHostedZones, "TooManyHostedZones"),
      TooManyKeySigningKeys: /* @__PURE__ */ __name(() => TooManyKeySigningKeys, "TooManyKeySigningKeys"),
      TooManyTrafficPolicies: /* @__PURE__ */ __name(() => TooManyTrafficPolicies, "TooManyTrafficPolicies"),
      TooManyTrafficPolicyInstances: /* @__PURE__ */ __name(() => TooManyTrafficPolicyInstances, "TooManyTrafficPolicyInstances"),
      TooManyTrafficPolicyVersionsForCurrentPolicy: /* @__PURE__ */ __name(() => TooManyTrafficPolicyVersionsForCurrentPolicy, "TooManyTrafficPolicyVersionsForCurrentPolicy"),
      TooManyVPCAssociationAuthorizations: /* @__PURE__ */ __name(() => TooManyVPCAssociationAuthorizations, "TooManyVPCAssociationAuthorizations"),
      TrafficPolicyAlreadyExists: /* @__PURE__ */ __name(() => TrafficPolicyAlreadyExists, "TrafficPolicyAlreadyExists"),
      TrafficPolicyInUse: /* @__PURE__ */ __name(() => TrafficPolicyInUse, "TrafficPolicyInUse"),
      TrafficPolicyInstanceAlreadyExists: /* @__PURE__ */ __name(() => TrafficPolicyInstanceAlreadyExists, "TrafficPolicyInstanceAlreadyExists"),
      UpdateHealthCheckCommand: /* @__PURE__ */ __name(() => UpdateHealthCheckCommand, "UpdateHealthCheckCommand"),
      UpdateHostedZoneCommentCommand: /* @__PURE__ */ __name(() => UpdateHostedZoneCommentCommand, "UpdateHostedZoneCommentCommand"),
      UpdateTrafficPolicyCommentCommand: /* @__PURE__ */ __name(() => UpdateTrafficPolicyCommentCommand, "UpdateTrafficPolicyCommentCommand"),
      UpdateTrafficPolicyInstanceCommand: /* @__PURE__ */ __name(() => UpdateTrafficPolicyInstanceCommand, "UpdateTrafficPolicyInstanceCommand"),
      VPCAssociationAuthorizationNotFound: /* @__PURE__ */ __name(() => VPCAssociationAuthorizationNotFound, "VPCAssociationAuthorizationNotFound"),
      VPCAssociationNotFound: /* @__PURE__ */ __name(() => VPCAssociationNotFound, "VPCAssociationNotFound"),
      VPCRegion: /* @__PURE__ */ __name(() => VPCRegion, "VPCRegion"),
      __Client: /* @__PURE__ */ __name(() => import_smithy_client28.Client, "__Client"),
      paginateListCidrBlocks: /* @__PURE__ */ __name(() => paginateListCidrBlocks, "paginateListCidrBlocks"),
      paginateListCidrCollections: /* @__PURE__ */ __name(() => paginateListCidrCollections, "paginateListCidrCollections"),
      paginateListCidrLocations: /* @__PURE__ */ __name(() => paginateListCidrLocations, "paginateListCidrLocations"),
      paginateListHealthChecks: /* @__PURE__ */ __name(() => paginateListHealthChecks, "paginateListHealthChecks"),
      paginateListHostedZones: /* @__PURE__ */ __name(() => paginateListHostedZones, "paginateListHostedZones"),
      paginateListQueryLoggingConfigs: /* @__PURE__ */ __name(() => paginateListQueryLoggingConfigs, "paginateListQueryLoggingConfigs"),
      waitForResourceRecordSetsChanged: /* @__PURE__ */ __name(() => waitForResourceRecordSetsChanged, "waitForResourceRecordSetsChanged"),
      waitUntilResourceRecordSetsChanged: /* @__PURE__ */ __name(() => waitUntilResourceRecordSetsChanged, "waitUntilResourceRecordSetsChanged")
    });
    module2.exports = __toCommonJS2(index_exports);
    var import_middleware_host_header3 = require_dist_cjs3();
    var import_middleware_logger3 = require_dist_cjs4();
    var import_middleware_recursion_detection3 = require_dist_cjs5();
    var import_middleware_user_agent3 = require_dist_cjs28();
    var import_config_resolver6 = require_dist_cjs30();
    var import_core17 = (init_dist_es(), __toCommonJS(dist_es_exports));
    var import_middleware_content_length3 = require_dist_cjs31();
    var import_middleware_endpoint8 = require_dist_cjs34();
    var import_middleware_retry5 = require_dist_cjs37();
    var import_httpAuthSchemeProvider5 = require_httpAuthSchemeProvider18();
    var resolveClientEndpointParameters3 = /* @__PURE__ */ __name2((options) => {
      return Object.assign(options, {
        useDualstackEndpoint: options.useDualstackEndpoint ?? false,
        useFipsEndpoint: options.useFipsEndpoint ?? false,
        defaultSigningName: "route53"
      });
    }, "resolveClientEndpointParameters");
    var commonParams3 = {
      UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
      Endpoint: { type: "builtInParams", name: "endpoint" },
      Region: { type: "builtInParams", name: "region" },
      UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
    };
    var import_runtimeConfig5 = require_runtimeConfig19();
    var import_region_config_resolver3 = require_dist_cjs45();
    var import_protocol_http16 = require_dist_cjs2();
    var import_smithy_client28 = require_dist_cjs26();
    var getHttpAuthExtensionConfiguration3 = /* @__PURE__ */ __name2((runtimeConfig) => {
      const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
      let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
      let _credentials = runtimeConfig.credentials;
      return {
        setHttpAuthScheme(httpAuthScheme) {
          const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
          if (index === -1) {
            _httpAuthSchemes.push(httpAuthScheme);
          } else {
            _httpAuthSchemes.splice(index, 1, httpAuthScheme);
          }
        },
        httpAuthSchemes() {
          return _httpAuthSchemes;
        },
        setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
          _httpAuthSchemeProvider = httpAuthSchemeProvider;
        },
        httpAuthSchemeProvider() {
          return _httpAuthSchemeProvider;
        },
        setCredentials(credentials) {
          _credentials = credentials;
        },
        credentials() {
          return _credentials;
        }
      };
    }, "getHttpAuthExtensionConfiguration");
    var resolveHttpAuthRuntimeConfig3 = /* @__PURE__ */ __name2((config) => {
      return {
        httpAuthSchemes: config.httpAuthSchemes(),
        httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
        credentials: config.credentials()
      };
    }, "resolveHttpAuthRuntimeConfig");
    var resolveRuntimeExtensions3 = /* @__PURE__ */ __name2((runtimeConfig, extensions) => {
      const extensionConfiguration = Object.assign(
        (0, import_region_config_resolver3.getAwsRegionExtensionConfiguration)(runtimeConfig),
        (0, import_smithy_client28.getDefaultExtensionConfiguration)(runtimeConfig),
        (0, import_protocol_http16.getHttpHandlerExtensionConfiguration)(runtimeConfig),
        getHttpAuthExtensionConfiguration3(runtimeConfig)
      );
      extensions.forEach((extension) => extension.configure(extensionConfiguration));
      return Object.assign(
        runtimeConfig,
        (0, import_region_config_resolver3.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
        (0, import_smithy_client28.resolveDefaultRuntimeConfig)(extensionConfiguration),
        (0, import_protocol_http16.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
        resolveHttpAuthRuntimeConfig3(extensionConfiguration)
      );
    }, "resolveRuntimeExtensions");
    var Route53Client2 = class extends import_smithy_client28.Client {
      static {
        __name(this, "Route53Client");
      }
      static {
        __name2(this, "Route53Client");
      }
      /**
       * The resolved configuration of Route53Client class. This is resolved and normalized from the {@link Route53ClientConfig | constructor configuration interface}.
       */
      config;
      constructor(...[configuration]) {
        const _config_0 = (0, import_runtimeConfig5.getRuntimeConfig)(configuration || {});
        super(_config_0);
        this.initConfig = _config_0;
        const _config_1 = resolveClientEndpointParameters3(_config_0);
        const _config_2 = (0, import_middleware_user_agent3.resolveUserAgentConfig)(_config_1);
        const _config_3 = (0, import_middleware_retry5.resolveRetryConfig)(_config_2);
        const _config_4 = (0, import_config_resolver6.resolveRegionConfig)(_config_3);
        const _config_5 = (0, import_middleware_host_header3.resolveHostHeaderConfig)(_config_4);
        const _config_6 = (0, import_middleware_endpoint8.resolveEndpointConfig)(_config_5);
        const _config_7 = (0, import_httpAuthSchemeProvider5.resolveHttpAuthSchemeConfig)(_config_6);
        const _config_8 = resolveRuntimeExtensions3(_config_7, configuration?.extensions || []);
        this.config = _config_8;
        this.middlewareStack.use((0, import_middleware_user_agent3.getUserAgentPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_retry5.getRetryPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_content_length3.getContentLengthPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_host_header3.getHostHeaderPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_logger3.getLoggerPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_recursion_detection3.getRecursionDetectionPlugin)(this.config));
        this.middlewareStack.use(
          (0, import_core17.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
            httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider5.defaultRoute53HttpAuthSchemeParametersProvider,
            identityProviderConfigProvider: /* @__PURE__ */ __name2(async (config) => new import_core17.DefaultIdentityProviderConfig({
              "aws.auth#sigv4": config.credentials
            }), "identityProviderConfigProvider")
          })
        );
        this.middlewareStack.use((0, import_core17.getHttpSigningPlugin)(this.config));
      }
      /**
       * Destroy underlying resources, like sockets. It's usually not necessary to do this.
       * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
       * Otherwise, sockets might stay open for quite a long time before the server terminates them.
       */
      destroy() {
        super.destroy();
      }
    };
    var import_middleware_sdk_route53 = require_dist_cjs93();
    var import_middleware_serde5 = require_dist_cjs7();
    var import_core22 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var import_xml_builder2 = require_dist_cjs27();
    var Route53ServiceException = class _Route53ServiceException extends import_smithy_client28.ServiceException {
      static {
        __name(this, "_Route53ServiceException");
      }
      static {
        __name2(this, "Route53ServiceException");
      }
      /**
       * @internal
       */
      constructor(options) {
        super(options);
        Object.setPrototypeOf(this, _Route53ServiceException.prototype);
      }
    };
    var AccountLimitType = {
      MAX_HEALTH_CHECKS_BY_OWNER: "MAX_HEALTH_CHECKS_BY_OWNER",
      MAX_HOSTED_ZONES_BY_OWNER: "MAX_HOSTED_ZONES_BY_OWNER",
      MAX_REUSABLE_DELEGATION_SETS_BY_OWNER: "MAX_REUSABLE_DELEGATION_SETS_BY_OWNER",
      MAX_TRAFFIC_POLICIES_BY_OWNER: "MAX_TRAFFIC_POLICIES_BY_OWNER",
      MAX_TRAFFIC_POLICY_INSTANCES_BY_OWNER: "MAX_TRAFFIC_POLICY_INSTANCES_BY_OWNER"
    };
    var ChangeStatus = {
      INSYNC: "INSYNC",
      PENDING: "PENDING"
    };
    var ConcurrentModification = class _ConcurrentModification extends Route53ServiceException {
      static {
        __name(this, "_ConcurrentModification");
      }
      static {
        __name2(this, "ConcurrentModification");
      }
      name = "ConcurrentModification";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ConcurrentModification",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ConcurrentModification.prototype);
      }
    };
    var InvalidInput = class _InvalidInput extends Route53ServiceException {
      static {
        __name(this, "_InvalidInput");
      }
      static {
        __name2(this, "InvalidInput");
      }
      name = "InvalidInput";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidInput",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidInput.prototype);
      }
    };
    var InvalidKeySigningKeyStatus = class _InvalidKeySigningKeyStatus extends Route53ServiceException {
      static {
        __name(this, "_InvalidKeySigningKeyStatus");
      }
      static {
        __name2(this, "InvalidKeySigningKeyStatus");
      }
      name = "InvalidKeySigningKeyStatus";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidKeySigningKeyStatus",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidKeySigningKeyStatus.prototype);
      }
    };
    var InvalidKMSArn = class _InvalidKMSArn extends Route53ServiceException {
      static {
        __name(this, "_InvalidKMSArn");
      }
      static {
        __name2(this, "InvalidKMSArn");
      }
      name = "InvalidKMSArn";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidKMSArn",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidKMSArn.prototype);
      }
    };
    var InvalidSigningStatus = class _InvalidSigningStatus extends Route53ServiceException {
      static {
        __name(this, "_InvalidSigningStatus");
      }
      static {
        __name2(this, "InvalidSigningStatus");
      }
      name = "InvalidSigningStatus";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidSigningStatus",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidSigningStatus.prototype);
      }
    };
    var NoSuchKeySigningKey = class _NoSuchKeySigningKey extends Route53ServiceException {
      static {
        __name(this, "_NoSuchKeySigningKey");
      }
      static {
        __name2(this, "NoSuchKeySigningKey");
      }
      name = "NoSuchKeySigningKey";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "NoSuchKeySigningKey",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _NoSuchKeySigningKey.prototype);
      }
    };
    var CloudWatchRegion = {
      af_south_1: "af-south-1",
      ap_east_1: "ap-east-1",
      ap_east_2: "ap-east-2",
      ap_northeast_1: "ap-northeast-1",
      ap_northeast_2: "ap-northeast-2",
      ap_northeast_3: "ap-northeast-3",
      ap_south_1: "ap-south-1",
      ap_south_2: "ap-south-2",
      ap_southeast_1: "ap-southeast-1",
      ap_southeast_2: "ap-southeast-2",
      ap_southeast_3: "ap-southeast-3",
      ap_southeast_4: "ap-southeast-4",
      ap_southeast_5: "ap-southeast-5",
      ap_southeast_7: "ap-southeast-7",
      ca_central_1: "ca-central-1",
      ca_west_1: "ca-west-1",
      cn_north_1: "cn-north-1",
      cn_northwest_1: "cn-northwest-1",
      eu_central_1: "eu-central-1",
      eu_central_2: "eu-central-2",
      eu_isoe_west_1: "eu-isoe-west-1",
      eu_north_1: "eu-north-1",
      eu_south_1: "eu-south-1",
      eu_south_2: "eu-south-2",
      eu_west_1: "eu-west-1",
      eu_west_2: "eu-west-2",
      eu_west_3: "eu-west-3",
      il_central_1: "il-central-1",
      me_central_1: "me-central-1",
      me_south_1: "me-south-1",
      mx_central_1: "mx-central-1",
      sa_east_1: "sa-east-1",
      us_east_1: "us-east-1",
      us_east_2: "us-east-2",
      us_gov_east_1: "us-gov-east-1",
      us_gov_west_1: "us-gov-west-1",
      us_iso_east_1: "us-iso-east-1",
      us_iso_west_1: "us-iso-west-1",
      us_isob_east_1: "us-isob-east-1",
      us_isof_east_1: "us-isof-east-1",
      us_isof_south_1: "us-isof-south-1",
      us_west_1: "us-west-1",
      us_west_2: "us-west-2"
    };
    var VPCRegion = {
      af_south_1: "af-south-1",
      ap_east_1: "ap-east-1",
      ap_east_2: "ap-east-2",
      ap_northeast_1: "ap-northeast-1",
      ap_northeast_2: "ap-northeast-2",
      ap_northeast_3: "ap-northeast-3",
      ap_south_1: "ap-south-1",
      ap_south_2: "ap-south-2",
      ap_southeast_1: "ap-southeast-1",
      ap_southeast_2: "ap-southeast-2",
      ap_southeast_3: "ap-southeast-3",
      ap_southeast_4: "ap-southeast-4",
      ap_southeast_5: "ap-southeast-5",
      ap_southeast_7: "ap-southeast-7",
      ca_central_1: "ca-central-1",
      ca_west_1: "ca-west-1",
      cn_north_1: "cn-north-1",
      cn_northwest_1: "cn-northwest-1",
      eu_central_1: "eu-central-1",
      eu_central_2: "eu-central-2",
      eu_isoe_west_1: "eu-isoe-west-1",
      eu_north_1: "eu-north-1",
      eu_south_1: "eu-south-1",
      eu_south_2: "eu-south-2",
      eu_west_1: "eu-west-1",
      eu_west_2: "eu-west-2",
      eu_west_3: "eu-west-3",
      il_central_1: "il-central-1",
      me_central_1: "me-central-1",
      me_south_1: "me-south-1",
      mx_central_1: "mx-central-1",
      sa_east_1: "sa-east-1",
      us_east_1: "us-east-1",
      us_east_2: "us-east-2",
      us_gov_east_1: "us-gov-east-1",
      us_gov_west_1: "us-gov-west-1",
      us_iso_east_1: "us-iso-east-1",
      us_iso_west_1: "us-iso-west-1",
      us_isob_east_1: "us-isob-east-1",
      us_isof_east_1: "us-isof-east-1",
      us_isof_south_1: "us-isof-south-1",
      us_west_1: "us-west-1",
      us_west_2: "us-west-2"
    };
    var ConflictingDomainExists = class _ConflictingDomainExists extends Route53ServiceException {
      static {
        __name(this, "_ConflictingDomainExists");
      }
      static {
        __name2(this, "ConflictingDomainExists");
      }
      name = "ConflictingDomainExists";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ConflictingDomainExists",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ConflictingDomainExists.prototype);
      }
    };
    var InvalidVPCId = class _InvalidVPCId extends Route53ServiceException {
      static {
        __name(this, "_InvalidVPCId");
      }
      static {
        __name2(this, "InvalidVPCId");
      }
      name = "InvalidVPCId";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidVPCId",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidVPCId.prototype);
      }
    };
    var LimitsExceeded = class _LimitsExceeded extends Route53ServiceException {
      static {
        __name(this, "_LimitsExceeded");
      }
      static {
        __name2(this, "LimitsExceeded");
      }
      name = "LimitsExceeded";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "LimitsExceeded",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _LimitsExceeded.prototype);
      }
    };
    var NoSuchHostedZone = class _NoSuchHostedZone extends Route53ServiceException {
      static {
        __name(this, "_NoSuchHostedZone");
      }
      static {
        __name2(this, "NoSuchHostedZone");
      }
      name = "NoSuchHostedZone";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "NoSuchHostedZone",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _NoSuchHostedZone.prototype);
      }
    };
    var NotAuthorizedException = class _NotAuthorizedException extends Route53ServiceException {
      static {
        __name(this, "_NotAuthorizedException");
      }
      static {
        __name2(this, "NotAuthorizedException");
      }
      name = "NotAuthorizedException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "NotAuthorizedException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _NotAuthorizedException.prototype);
      }
    };
    var PriorRequestNotComplete = class _PriorRequestNotComplete extends Route53ServiceException {
      static {
        __name(this, "_PriorRequestNotComplete");
      }
      static {
        __name2(this, "PriorRequestNotComplete");
      }
      name = "PriorRequestNotComplete";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "PriorRequestNotComplete",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _PriorRequestNotComplete.prototype);
      }
    };
    var PublicZoneVPCAssociation = class _PublicZoneVPCAssociation extends Route53ServiceException {
      static {
        __name(this, "_PublicZoneVPCAssociation");
      }
      static {
        __name2(this, "PublicZoneVPCAssociation");
      }
      name = "PublicZoneVPCAssociation";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "PublicZoneVPCAssociation",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _PublicZoneVPCAssociation.prototype);
      }
    };
    var CidrCollectionChangeAction = {
      DELETE_IF_EXISTS: "DELETE_IF_EXISTS",
      PUT: "PUT"
    };
    var CidrBlockInUseException = class _CidrBlockInUseException extends Route53ServiceException {
      static {
        __name(this, "_CidrBlockInUseException");
      }
      static {
        __name2(this, "CidrBlockInUseException");
      }
      name = "CidrBlockInUseException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "CidrBlockInUseException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _CidrBlockInUseException.prototype);
        this.Message = opts.Message;
      }
    };
    var CidrCollectionVersionMismatchException = class _CidrCollectionVersionMismatchException extends Route53ServiceException {
      static {
        __name(this, "_CidrCollectionVersionMismatchException");
      }
      static {
        __name2(this, "CidrCollectionVersionMismatchException");
      }
      name = "CidrCollectionVersionMismatchException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "CidrCollectionVersionMismatchException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _CidrCollectionVersionMismatchException.prototype);
        this.Message = opts.Message;
      }
    };
    var NoSuchCidrCollectionException = class _NoSuchCidrCollectionException extends Route53ServiceException {
      static {
        __name(this, "_NoSuchCidrCollectionException");
      }
      static {
        __name2(this, "NoSuchCidrCollectionException");
      }
      name = "NoSuchCidrCollectionException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "NoSuchCidrCollectionException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _NoSuchCidrCollectionException.prototype);
        this.Message = opts.Message;
      }
    };
    var ChangeAction = {
      CREATE: "CREATE",
      DELETE: "DELETE",
      UPSERT: "UPSERT"
    };
    var ResourceRecordSetFailover = {
      PRIMARY: "PRIMARY",
      SECONDARY: "SECONDARY"
    };
    var ResourceRecordSetRegion = {
      af_south_1: "af-south-1",
      ap_east_1: "ap-east-1",
      ap_east_2: "ap-east-2",
      ap_northeast_1: "ap-northeast-1",
      ap_northeast_2: "ap-northeast-2",
      ap_northeast_3: "ap-northeast-3",
      ap_south_1: "ap-south-1",
      ap_south_2: "ap-south-2",
      ap_southeast_1: "ap-southeast-1",
      ap_southeast_2: "ap-southeast-2",
      ap_southeast_3: "ap-southeast-3",
      ap_southeast_4: "ap-southeast-4",
      ap_southeast_5: "ap-southeast-5",
      ap_southeast_7: "ap-southeast-7",
      ca_central_1: "ca-central-1",
      ca_west_1: "ca-west-1",
      cn_north_1: "cn-north-1",
      cn_northwest_1: "cn-northwest-1",
      eu_central_1: "eu-central-1",
      eu_central_2: "eu-central-2",
      eu_north_1: "eu-north-1",
      eu_south_1: "eu-south-1",
      eu_south_2: "eu-south-2",
      eu_west_1: "eu-west-1",
      eu_west_2: "eu-west-2",
      eu_west_3: "eu-west-3",
      il_central_1: "il-central-1",
      me_central_1: "me-central-1",
      me_south_1: "me-south-1",
      mx_central_1: "mx-central-1",
      sa_east_1: "sa-east-1",
      us_east_1: "us-east-1",
      us_east_2: "us-east-2",
      us_gov_east_1: "us-gov-east-1",
      us_gov_west_1: "us-gov-west-1",
      us_west_1: "us-west-1",
      us_west_2: "us-west-2"
    };
    var RRType = {
      A: "A",
      AAAA: "AAAA",
      CAA: "CAA",
      CNAME: "CNAME",
      DS: "DS",
      HTTPS: "HTTPS",
      MX: "MX",
      NAPTR: "NAPTR",
      NS: "NS",
      PTR: "PTR",
      SOA: "SOA",
      SPF: "SPF",
      SRV: "SRV",
      SSHFP: "SSHFP",
      SVCB: "SVCB",
      TLSA: "TLSA",
      TXT: "TXT"
    };
    var InvalidChangeBatch = class _InvalidChangeBatch extends Route53ServiceException {
      static {
        __name(this, "_InvalidChangeBatch");
      }
      static {
        __name2(this, "InvalidChangeBatch");
      }
      name = "InvalidChangeBatch";
      $fault = "client";
      /**
       * <p></p>
       * @public
       */
      messages;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidChangeBatch",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidChangeBatch.prototype);
        this.messages = opts.messages;
      }
    };
    var NoSuchHealthCheck = class _NoSuchHealthCheck extends Route53ServiceException {
      static {
        __name(this, "_NoSuchHealthCheck");
      }
      static {
        __name2(this, "NoSuchHealthCheck");
      }
      name = "NoSuchHealthCheck";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "NoSuchHealthCheck",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _NoSuchHealthCheck.prototype);
      }
    };
    var TagResourceType = {
      healthcheck: "healthcheck",
      hostedzone: "hostedzone"
    };
    var ThrottlingException = class _ThrottlingException extends Route53ServiceException {
      static {
        __name(this, "_ThrottlingException");
      }
      static {
        __name2(this, "ThrottlingException");
      }
      name = "ThrottlingException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ThrottlingException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ThrottlingException.prototype);
      }
    };
    var CidrCollectionAlreadyExistsException = class _CidrCollectionAlreadyExistsException extends Route53ServiceException {
      static {
        __name(this, "_CidrCollectionAlreadyExistsException");
      }
      static {
        __name2(this, "CidrCollectionAlreadyExistsException");
      }
      name = "CidrCollectionAlreadyExistsException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "CidrCollectionAlreadyExistsException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _CidrCollectionAlreadyExistsException.prototype);
        this.Message = opts.Message;
      }
    };
    var InsufficientDataHealthStatus = {
      Healthy: "Healthy",
      LastKnownStatus: "LastKnownStatus",
      Unhealthy: "Unhealthy"
    };
    var HealthCheckRegion = {
      ap_northeast_1: "ap-northeast-1",
      ap_southeast_1: "ap-southeast-1",
      ap_southeast_2: "ap-southeast-2",
      eu_west_1: "eu-west-1",
      sa_east_1: "sa-east-1",
      us_east_1: "us-east-1",
      us_west_1: "us-west-1",
      us_west_2: "us-west-2"
    };
    var HealthCheckType = {
      CALCULATED: "CALCULATED",
      CLOUDWATCH_METRIC: "CLOUDWATCH_METRIC",
      HTTP: "HTTP",
      HTTPS: "HTTPS",
      HTTPS_STR_MATCH: "HTTPS_STR_MATCH",
      HTTP_STR_MATCH: "HTTP_STR_MATCH",
      RECOVERY_CONTROL: "RECOVERY_CONTROL",
      TCP: "TCP"
    };
    var ComparisonOperator = {
      GreaterThanOrEqualToThreshold: "GreaterThanOrEqualToThreshold",
      GreaterThanThreshold: "GreaterThanThreshold",
      LessThanOrEqualToThreshold: "LessThanOrEqualToThreshold",
      LessThanThreshold: "LessThanThreshold"
    };
    var Statistic = {
      Average: "Average",
      Maximum: "Maximum",
      Minimum: "Minimum",
      SampleCount: "SampleCount",
      Sum: "Sum"
    };
    var HealthCheckAlreadyExists = class _HealthCheckAlreadyExists extends Route53ServiceException {
      static {
        __name(this, "_HealthCheckAlreadyExists");
      }
      static {
        __name2(this, "HealthCheckAlreadyExists");
      }
      name = "HealthCheckAlreadyExists";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "HealthCheckAlreadyExists",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _HealthCheckAlreadyExists.prototype);
      }
    };
    var TooManyHealthChecks = class _TooManyHealthChecks extends Route53ServiceException {
      static {
        __name(this, "_TooManyHealthChecks");
      }
      static {
        __name2(this, "TooManyHealthChecks");
      }
      name = "TooManyHealthChecks";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "TooManyHealthChecks",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _TooManyHealthChecks.prototype);
      }
    };
    var DelegationSetNotAvailable = class _DelegationSetNotAvailable extends Route53ServiceException {
      static {
        __name(this, "_DelegationSetNotAvailable");
      }
      static {
        __name2(this, "DelegationSetNotAvailable");
      }
      name = "DelegationSetNotAvailable";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "DelegationSetNotAvailable",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _DelegationSetNotAvailable.prototype);
      }
    };
    var DelegationSetNotReusable = class _DelegationSetNotReusable extends Route53ServiceException {
      static {
        __name(this, "_DelegationSetNotReusable");
      }
      static {
        __name2(this, "DelegationSetNotReusable");
      }
      name = "DelegationSetNotReusable";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "DelegationSetNotReusable",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _DelegationSetNotReusable.prototype);
      }
    };
    var HostedZoneAlreadyExists = class _HostedZoneAlreadyExists extends Route53ServiceException {
      static {
        __name(this, "_HostedZoneAlreadyExists");
      }
      static {
        __name2(this, "HostedZoneAlreadyExists");
      }
      name = "HostedZoneAlreadyExists";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "HostedZoneAlreadyExists",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _HostedZoneAlreadyExists.prototype);
      }
    };
    var InvalidDomainName = class _InvalidDomainName extends Route53ServiceException {
      static {
        __name(this, "_InvalidDomainName");
      }
      static {
        __name2(this, "InvalidDomainName");
      }
      name = "InvalidDomainName";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidDomainName",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidDomainName.prototype);
      }
    };
    var NoSuchDelegationSet = class _NoSuchDelegationSet extends Route53ServiceException {
      static {
        __name(this, "_NoSuchDelegationSet");
      }
      static {
        __name2(this, "NoSuchDelegationSet");
      }
      name = "NoSuchDelegationSet";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "NoSuchDelegationSet",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _NoSuchDelegationSet.prototype);
      }
    };
    var TooManyHostedZones = class _TooManyHostedZones extends Route53ServiceException {
      static {
        __name(this, "_TooManyHostedZones");
      }
      static {
        __name2(this, "TooManyHostedZones");
      }
      name = "TooManyHostedZones";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "TooManyHostedZones",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _TooManyHostedZones.prototype);
      }
    };
    var InvalidArgument = class _InvalidArgument extends Route53ServiceException {
      static {
        __name(this, "_InvalidArgument");
      }
      static {
        __name2(this, "InvalidArgument");
      }
      name = "InvalidArgument";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidArgument",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidArgument.prototype);
      }
    };
    var InvalidKeySigningKeyName = class _InvalidKeySigningKeyName extends Route53ServiceException {
      static {
        __name(this, "_InvalidKeySigningKeyName");
      }
      static {
        __name2(this, "InvalidKeySigningKeyName");
      }
      name = "InvalidKeySigningKeyName";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidKeySigningKeyName",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidKeySigningKeyName.prototype);
      }
    };
    var KeySigningKeyAlreadyExists = class _KeySigningKeyAlreadyExists extends Route53ServiceException {
      static {
        __name(this, "_KeySigningKeyAlreadyExists");
      }
      static {
        __name2(this, "KeySigningKeyAlreadyExists");
      }
      name = "KeySigningKeyAlreadyExists";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "KeySigningKeyAlreadyExists",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _KeySigningKeyAlreadyExists.prototype);
      }
    };
    var TooManyKeySigningKeys = class _TooManyKeySigningKeys extends Route53ServiceException {
      static {
        __name(this, "_TooManyKeySigningKeys");
      }
      static {
        __name2(this, "TooManyKeySigningKeys");
      }
      name = "TooManyKeySigningKeys";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "TooManyKeySigningKeys",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _TooManyKeySigningKeys.prototype);
      }
    };
    var InsufficientCloudWatchLogsResourcePolicy = class _InsufficientCloudWatchLogsResourcePolicy extends Route53ServiceException {
      static {
        __name(this, "_InsufficientCloudWatchLogsResourcePolicy");
      }
      static {
        __name2(this, "InsufficientCloudWatchLogsResourcePolicy");
      }
      name = "InsufficientCloudWatchLogsResourcePolicy";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InsufficientCloudWatchLogsResourcePolicy",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InsufficientCloudWatchLogsResourcePolicy.prototype);
      }
    };
    var NoSuchCloudWatchLogsLogGroup = class _NoSuchCloudWatchLogsLogGroup extends Route53ServiceException {
      static {
        __name(this, "_NoSuchCloudWatchLogsLogGroup");
      }
      static {
        __name2(this, "NoSuchCloudWatchLogsLogGroup");
      }
      name = "NoSuchCloudWatchLogsLogGroup";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "NoSuchCloudWatchLogsLogGroup",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _NoSuchCloudWatchLogsLogGroup.prototype);
      }
    };
    var QueryLoggingConfigAlreadyExists = class _QueryLoggingConfigAlreadyExists extends Route53ServiceException {
      static {
        __name(this, "_QueryLoggingConfigAlreadyExists");
      }
      static {
        __name2(this, "QueryLoggingConfigAlreadyExists");
      }
      name = "QueryLoggingConfigAlreadyExists";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "QueryLoggingConfigAlreadyExists",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _QueryLoggingConfigAlreadyExists.prototype);
      }
    };
    var DelegationSetAlreadyCreated = class _DelegationSetAlreadyCreated extends Route53ServiceException {
      static {
        __name(this, "_DelegationSetAlreadyCreated");
      }
      static {
        __name2(this, "DelegationSetAlreadyCreated");
      }
      name = "DelegationSetAlreadyCreated";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "DelegationSetAlreadyCreated",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _DelegationSetAlreadyCreated.prototype);
      }
    };
    var DelegationSetAlreadyReusable = class _DelegationSetAlreadyReusable extends Route53ServiceException {
      static {
        __name(this, "_DelegationSetAlreadyReusable");
      }
      static {
        __name2(this, "DelegationSetAlreadyReusable");
      }
      name = "DelegationSetAlreadyReusable";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "DelegationSetAlreadyReusable",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _DelegationSetAlreadyReusable.prototype);
      }
    };
    var HostedZoneNotFound = class _HostedZoneNotFound extends Route53ServiceException {
      static {
        __name(this, "_HostedZoneNotFound");
      }
      static {
        __name2(this, "HostedZoneNotFound");
      }
      name = "HostedZoneNotFound";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "HostedZoneNotFound",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _HostedZoneNotFound.prototype);
      }
    };
    var InvalidTrafficPolicyDocument = class _InvalidTrafficPolicyDocument extends Route53ServiceException {
      static {
        __name(this, "_InvalidTrafficPolicyDocument");
      }
      static {
        __name2(this, "InvalidTrafficPolicyDocument");
      }
      name = "InvalidTrafficPolicyDocument";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidTrafficPolicyDocument",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidTrafficPolicyDocument.prototype);
      }
    };
    var TooManyTrafficPolicies = class _TooManyTrafficPolicies extends Route53ServiceException {
      static {
        __name(this, "_TooManyTrafficPolicies");
      }
      static {
        __name2(this, "TooManyTrafficPolicies");
      }
      name = "TooManyTrafficPolicies";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "TooManyTrafficPolicies",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _TooManyTrafficPolicies.prototype);
      }
    };
    var TrafficPolicyAlreadyExists = class _TrafficPolicyAlreadyExists extends Route53ServiceException {
      static {
        __name(this, "_TrafficPolicyAlreadyExists");
      }
      static {
        __name2(this, "TrafficPolicyAlreadyExists");
      }
      name = "TrafficPolicyAlreadyExists";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "TrafficPolicyAlreadyExists",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _TrafficPolicyAlreadyExists.prototype);
      }
    };
    var NoSuchTrafficPolicy = class _NoSuchTrafficPolicy extends Route53ServiceException {
      static {
        __name(this, "_NoSuchTrafficPolicy");
      }
      static {
        __name2(this, "NoSuchTrafficPolicy");
      }
      name = "NoSuchTrafficPolicy";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "NoSuchTrafficPolicy",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _NoSuchTrafficPolicy.prototype);
      }
    };
    var TooManyTrafficPolicyInstances = class _TooManyTrafficPolicyInstances extends Route53ServiceException {
      static {
        __name(this, "_TooManyTrafficPolicyInstances");
      }
      static {
        __name2(this, "TooManyTrafficPolicyInstances");
      }
      name = "TooManyTrafficPolicyInstances";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "TooManyTrafficPolicyInstances",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _TooManyTrafficPolicyInstances.prototype);
      }
    };
    var TrafficPolicyInstanceAlreadyExists = class _TrafficPolicyInstanceAlreadyExists extends Route53ServiceException {
      static {
        __name(this, "_TrafficPolicyInstanceAlreadyExists");
      }
      static {
        __name2(this, "TrafficPolicyInstanceAlreadyExists");
      }
      name = "TrafficPolicyInstanceAlreadyExists";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "TrafficPolicyInstanceAlreadyExists",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _TrafficPolicyInstanceAlreadyExists.prototype);
      }
    };
    var TooManyTrafficPolicyVersionsForCurrentPolicy = class _TooManyTrafficPolicyVersionsForCurrentPolicy extends Route53ServiceException {
      static {
        __name(this, "_TooManyTrafficPolicyVersionsForCurrentPolicy");
      }
      static {
        __name2(this, "TooManyTrafficPolicyVersionsForCurrentPolicy");
      }
      name = "TooManyTrafficPolicyVersionsForCurrentPolicy";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "TooManyTrafficPolicyVersionsForCurrentPolicy",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _TooManyTrafficPolicyVersionsForCurrentPolicy.prototype);
      }
    };
    var TooManyVPCAssociationAuthorizations = class _TooManyVPCAssociationAuthorizations extends Route53ServiceException {
      static {
        __name(this, "_TooManyVPCAssociationAuthorizations");
      }
      static {
        __name2(this, "TooManyVPCAssociationAuthorizations");
      }
      name = "TooManyVPCAssociationAuthorizations";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "TooManyVPCAssociationAuthorizations",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _TooManyVPCAssociationAuthorizations.prototype);
      }
    };
    var KeySigningKeyInParentDSRecord = class _KeySigningKeyInParentDSRecord extends Route53ServiceException {
      static {
        __name(this, "_KeySigningKeyInParentDSRecord");
      }
      static {
        __name2(this, "KeySigningKeyInParentDSRecord");
      }
      name = "KeySigningKeyInParentDSRecord";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "KeySigningKeyInParentDSRecord",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _KeySigningKeyInParentDSRecord.prototype);
      }
    };
    var KeySigningKeyInUse = class _KeySigningKeyInUse extends Route53ServiceException {
      static {
        __name(this, "_KeySigningKeyInUse");
      }
      static {
        __name2(this, "KeySigningKeyInUse");
      }
      name = "KeySigningKeyInUse";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "KeySigningKeyInUse",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _KeySigningKeyInUse.prototype);
      }
    };
    var CidrCollectionInUseException = class _CidrCollectionInUseException extends Route53ServiceException {
      static {
        __name(this, "_CidrCollectionInUseException");
      }
      static {
        __name2(this, "CidrCollectionInUseException");
      }
      name = "CidrCollectionInUseException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "CidrCollectionInUseException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _CidrCollectionInUseException.prototype);
        this.Message = opts.Message;
      }
    };
    var HealthCheckInUse = class _HealthCheckInUse extends Route53ServiceException {
      static {
        __name(this, "_HealthCheckInUse");
      }
      static {
        __name2(this, "HealthCheckInUse");
      }
      name = "HealthCheckInUse";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "HealthCheckInUse",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _HealthCheckInUse.prototype);
      }
    };
    var HostedZoneNotEmpty = class _HostedZoneNotEmpty extends Route53ServiceException {
      static {
        __name(this, "_HostedZoneNotEmpty");
      }
      static {
        __name2(this, "HostedZoneNotEmpty");
      }
      name = "HostedZoneNotEmpty";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "HostedZoneNotEmpty",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _HostedZoneNotEmpty.prototype);
      }
    };
    var NoSuchQueryLoggingConfig = class _NoSuchQueryLoggingConfig extends Route53ServiceException {
      static {
        __name(this, "_NoSuchQueryLoggingConfig");
      }
      static {
        __name2(this, "NoSuchQueryLoggingConfig");
      }
      name = "NoSuchQueryLoggingConfig";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "NoSuchQueryLoggingConfig",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _NoSuchQueryLoggingConfig.prototype);
      }
    };
    var DelegationSetInUse = class _DelegationSetInUse extends Route53ServiceException {
      static {
        __name(this, "_DelegationSetInUse");
      }
      static {
        __name2(this, "DelegationSetInUse");
      }
      name = "DelegationSetInUse";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "DelegationSetInUse",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _DelegationSetInUse.prototype);
      }
    };
    var TrafficPolicyInUse = class _TrafficPolicyInUse extends Route53ServiceException {
      static {
        __name(this, "_TrafficPolicyInUse");
      }
      static {
        __name2(this, "TrafficPolicyInUse");
      }
      name = "TrafficPolicyInUse";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "TrafficPolicyInUse",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _TrafficPolicyInUse.prototype);
      }
    };
    var NoSuchTrafficPolicyInstance = class _NoSuchTrafficPolicyInstance extends Route53ServiceException {
      static {
        __name(this, "_NoSuchTrafficPolicyInstance");
      }
      static {
        __name2(this, "NoSuchTrafficPolicyInstance");
      }
      name = "NoSuchTrafficPolicyInstance";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "NoSuchTrafficPolicyInstance",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _NoSuchTrafficPolicyInstance.prototype);
      }
    };
    var VPCAssociationAuthorizationNotFound = class _VPCAssociationAuthorizationNotFound extends Route53ServiceException {
      static {
        __name(this, "_VPCAssociationAuthorizationNotFound");
      }
      static {
        __name2(this, "VPCAssociationAuthorizationNotFound");
      }
      name = "VPCAssociationAuthorizationNotFound";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "VPCAssociationAuthorizationNotFound",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _VPCAssociationAuthorizationNotFound.prototype);
      }
    };
    var DNSSECNotFound = class _DNSSECNotFound extends Route53ServiceException {
      static {
        __name(this, "_DNSSECNotFound");
      }
      static {
        __name2(this, "DNSSECNotFound");
      }
      name = "DNSSECNotFound";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "DNSSECNotFound",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _DNSSECNotFound.prototype);
      }
    };
    var LastVPCAssociation = class _LastVPCAssociation extends Route53ServiceException {
      static {
        __name(this, "_LastVPCAssociation");
      }
      static {
        __name2(this, "LastVPCAssociation");
      }
      name = "LastVPCAssociation";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "LastVPCAssociation",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _LastVPCAssociation.prototype);
      }
    };
    var VPCAssociationNotFound = class _VPCAssociationNotFound extends Route53ServiceException {
      static {
        __name(this, "_VPCAssociationNotFound");
      }
      static {
        __name2(this, "VPCAssociationNotFound");
      }
      name = "VPCAssociationNotFound";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "VPCAssociationNotFound",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _VPCAssociationNotFound.prototype);
      }
    };
    var HostedZonePartiallyDelegated = class _HostedZonePartiallyDelegated extends Route53ServiceException {
      static {
        __name(this, "_HostedZonePartiallyDelegated");
      }
      static {
        __name2(this, "HostedZonePartiallyDelegated");
      }
      name = "HostedZonePartiallyDelegated";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "HostedZonePartiallyDelegated",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _HostedZonePartiallyDelegated.prototype);
      }
    };
    var KeySigningKeyWithActiveStatusNotFound = class _KeySigningKeyWithActiveStatusNotFound extends Route53ServiceException {
      static {
        __name(this, "_KeySigningKeyWithActiveStatusNotFound");
      }
      static {
        __name2(this, "KeySigningKeyWithActiveStatusNotFound");
      }
      name = "KeySigningKeyWithActiveStatusNotFound";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "KeySigningKeyWithActiveStatusNotFound",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _KeySigningKeyWithActiveStatusNotFound.prototype);
      }
    };
    var NoSuchChange = class _NoSuchChange extends Route53ServiceException {
      static {
        __name(this, "_NoSuchChange");
      }
      static {
        __name2(this, "NoSuchChange");
      }
      name = "NoSuchChange";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "NoSuchChange",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _NoSuchChange.prototype);
      }
    };
    var NoSuchGeoLocation = class _NoSuchGeoLocation extends Route53ServiceException {
      static {
        __name(this, "_NoSuchGeoLocation");
      }
      static {
        __name2(this, "NoSuchGeoLocation");
      }
      name = "NoSuchGeoLocation";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "NoSuchGeoLocation",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _NoSuchGeoLocation.prototype);
      }
    };
    var IncompatibleVersion = class _IncompatibleVersion extends Route53ServiceException {
      static {
        __name(this, "_IncompatibleVersion");
      }
      static {
        __name2(this, "IncompatibleVersion");
      }
      name = "IncompatibleVersion";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "IncompatibleVersion",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _IncompatibleVersion.prototype);
      }
    };
    var HostedZoneLimitType = {
      MAX_RRSETS_BY_ZONE: "MAX_RRSETS_BY_ZONE",
      MAX_VPCS_ASSOCIATED_BY_ZONE: "MAX_VPCS_ASSOCIATED_BY_ZONE"
    };
    var HostedZoneNotPrivate = class _HostedZoneNotPrivate extends Route53ServiceException {
      static {
        __name(this, "_HostedZoneNotPrivate");
      }
      static {
        __name2(this, "HostedZoneNotPrivate");
      }
      name = "HostedZoneNotPrivate";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "HostedZoneNotPrivate",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _HostedZoneNotPrivate.prototype);
      }
    };
    var ReusableDelegationSetLimitType = {
      MAX_ZONES_BY_REUSABLE_DELEGATION_SET: "MAX_ZONES_BY_REUSABLE_DELEGATION_SET"
    };
    var NoSuchCidrLocationException = class _NoSuchCidrLocationException extends Route53ServiceException {
      static {
        __name(this, "_NoSuchCidrLocationException");
      }
      static {
        __name2(this, "NoSuchCidrLocationException");
      }
      name = "NoSuchCidrLocationException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "NoSuchCidrLocationException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _NoSuchCidrLocationException.prototype);
        this.Message = opts.Message;
      }
    };
    var HostedZoneType = {
      PRIVATE_HOSTED_ZONE: "PrivateHostedZone"
    };
    var InvalidPaginationToken = class _InvalidPaginationToken extends Route53ServiceException {
      static {
        __name(this, "_InvalidPaginationToken");
      }
      static {
        __name2(this, "InvalidPaginationToken");
      }
      name = "InvalidPaginationToken";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidPaginationToken",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidPaginationToken.prototype);
      }
    };
    var HealthCheckVersionMismatch = class _HealthCheckVersionMismatch extends Route53ServiceException {
      static {
        __name(this, "_HealthCheckVersionMismatch");
      }
      static {
        __name2(this, "HealthCheckVersionMismatch");
      }
      name = "HealthCheckVersionMismatch";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "HealthCheckVersionMismatch",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _HealthCheckVersionMismatch.prototype);
      }
    };
    var ResettableElementName = {
      ChildHealthChecks: "ChildHealthChecks",
      FullyQualifiedDomainName: "FullyQualifiedDomainName",
      Regions: "Regions",
      ResourcePath: "ResourcePath"
    };
    var ConflictingTypes = class _ConflictingTypes extends Route53ServiceException {
      static {
        __name(this, "_ConflictingTypes");
      }
      static {
        __name2(this, "ConflictingTypes");
      }
      name = "ConflictingTypes";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ConflictingTypes",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ConflictingTypes.prototype);
      }
    };
    var se_ActivateKeySigningKeyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2013-04-01/keysigningkey/{HostedZoneId}/{Name}/activate");
      b3.p("HostedZoneId", () => input.HostedZoneId, "{HostedZoneId}", false);
      b3.p("Name", () => input.Name, "{Name}", false);
      let body;
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_ActivateKeySigningKeyCommand");
    var se_AssociateVPCWithHostedZoneCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/xml"
      };
      b3.bp("/2013-04-01/hostedzone/{HostedZoneId}/associatevpc");
      b3.p("HostedZoneId", () => input.HostedZoneId, "{HostedZoneId}", false);
      let body;
      body = _ve;
      const bn = new import_xml_builder2.XmlNode(_AVPCWHZR);
      bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/");
      if (input[_C2] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_AVPCC, input[_C2]).n(_C2));
      }
      if (input[_VPC] != null) {
        bn.c(se_VPC(input[_VPC], context).n(_VPC));
      }
      body += bn.toString();
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_AssociateVPCWithHostedZoneCommand");
    var se_ChangeCidrCollectionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/xml"
      };
      b3.bp("/2013-04-01/cidrcollection/{Id}");
      b3.p("Id", () => input.Id, "{Id}", false);
      let body;
      body = _ve;
      const bn = new import_xml_builder2.XmlNode(_CCCR);
      bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/");
      bn.lc(input, "Changes", "Changes", () => se_CidrCollectionChanges(input[_Ch], context));
      if (input[_CV] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_CV, String(input[_CV])).n(_CV));
      }
      body += bn.toString();
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_ChangeCidrCollectionCommand");
    var se_ChangeResourceRecordSetsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/xml"
      };
      b3.bp("/2013-04-01/hostedzone/{HostedZoneId}/rrset");
      b3.p("HostedZoneId", () => input.HostedZoneId, "{HostedZoneId}", false);
      let body;
      body = _ve;
      const bn = new import_xml_builder2.XmlNode(_CRRSR);
      bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/");
      if (input[_CB] != null) {
        bn.c(se_ChangeBatch(input[_CB], context).n(_CB));
      }
      body += bn.toString();
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_ChangeResourceRecordSetsCommand");
    var se_ChangeTagsForResourceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/xml"
      };
      b3.bp("/2013-04-01/tags/{ResourceType}/{ResourceId}");
      b3.p("ResourceType", () => input.ResourceType, "{ResourceType}", false);
      b3.p("ResourceId", () => input.ResourceId, "{ResourceId}", false);
      let body;
      body = _ve;
      const bn = new import_xml_builder2.XmlNode(_CTFRR);
      bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/");
      bn.lc(input, "AddTags", "AddTags", () => se_TagList(input[_AT], context));
      bn.lc(input, "RemoveTagKeys", "RemoveTagKeys", () => se_TagKeyList(input[_RTK], context));
      body += bn.toString();
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_ChangeTagsForResourceCommand");
    var se_CreateCidrCollectionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/xml"
      };
      b3.bp("/2013-04-01/cidrcollection");
      let body;
      body = _ve;
      const bn = new import_xml_builder2.XmlNode(_CCCRr);
      bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/");
      if (input[_CR] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_CN, input[_CR]).n(_CR));
      }
      if (input[_N] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_CNo, input[_N]).n(_N));
      }
      body += bn.toString();
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_CreateCidrCollectionCommand");
    var se_CreateHealthCheckCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/xml"
      };
      b3.bp("/2013-04-01/healthcheck");
      let body;
      body = _ve;
      const bn = new import_xml_builder2.XmlNode(_CHCR);
      bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/");
      if (input[_CR] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_HCN, input[_CR]).n(_CR));
      }
      if (input[_HCC] != null) {
        bn.c(se_HealthCheckConfig(input[_HCC], context).n(_HCC));
      }
      body += bn.toString();
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_CreateHealthCheckCommand");
    var se_CreateHostedZoneCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/xml"
      };
      b3.bp("/2013-04-01/hostedzone");
      let body;
      body = _ve;
      const bn = new import_xml_builder2.XmlNode(_CHZR);
      bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/");
      if (input[_CR] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_No, input[_CR]).n(_CR));
      }
      if (input[_DSI] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_RI, input[_DSI]).n(_DSI));
      }
      if (input[_HZC] != null) {
        bn.c(se_HostedZoneConfig(input[_HZC], context).n(_HZC));
      }
      if (input[_N] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_DNSN, input[_N]).n(_N));
      }
      if (input[_VPC] != null) {
        bn.c(se_VPC(input[_VPC], context).n(_VPC));
      }
      body += bn.toString();
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_CreateHostedZoneCommand");
    var se_CreateKeySigningKeyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/xml"
      };
      b3.bp("/2013-04-01/keysigningkey");
      let body;
      body = _ve;
      const bn = new import_xml_builder2.XmlNode(_CKSKR);
      bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/");
      if (input[_CR] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_No, input[_CR]).n(_CR));
      }
      if (input[_HZI] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_RI, input[_HZI]).n(_HZI));
      }
      if (input[_KMSA] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_SKS, input[_KMSA]).n(_KMSA));
      }
      if (input[_N] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_SKN, input[_N]).n(_N));
      }
      if (input[_S] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_SKSi, input[_S]).n(_S));
      }
      body += bn.toString();
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_CreateKeySigningKeyCommand");
    var se_CreateQueryLoggingConfigCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/xml"
      };
      b3.bp("/2013-04-01/queryloggingconfig");
      let body;
      body = _ve;
      const bn = new import_xml_builder2.XmlNode(_CQLCR);
      bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/");
      bn.cc(input, _CWLLGA);
      if (input[_HZI] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_RI, input[_HZI]).n(_HZI));
      }
      body += bn.toString();
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_CreateQueryLoggingConfigCommand");
    var se_CreateReusableDelegationSetCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/xml"
      };
      b3.bp("/2013-04-01/delegationset");
      let body;
      body = _ve;
      const bn = new import_xml_builder2.XmlNode(_CRDSR);
      bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/");
      if (input[_CR] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_No, input[_CR]).n(_CR));
      }
      if (input[_HZI] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_RI, input[_HZI]).n(_HZI));
      }
      body += bn.toString();
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_CreateReusableDelegationSetCommand");
    var se_CreateTrafficPolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/xml"
      };
      b3.bp("/2013-04-01/trafficpolicy");
      let body;
      body = _ve;
      const bn = new import_xml_builder2.XmlNode(_CTPR);
      bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/");
      if (input[_C2] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_TPC, input[_C2]).n(_C2));
      }
      if (input[_D] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_TPD, input[_D]).n(_D));
      }
      if (input[_N] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_TPN, input[_N]).n(_N));
      }
      body += bn.toString();
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_CreateTrafficPolicyCommand");
    var se_CreateTrafficPolicyInstanceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/xml"
      };
      b3.bp("/2013-04-01/trafficpolicyinstance");
      let body;
      body = _ve;
      const bn = new import_xml_builder2.XmlNode(_CTPIR);
      bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/");
      if (input[_HZI] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_RI, input[_HZI]).n(_HZI));
      }
      if (input[_N] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_DNSN, input[_N]).n(_N));
      }
      if (input[_TTL] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_TTL, String(input[_TTL])).n(_TTL));
      }
      bn.cc(input, _TPI);
      if (input[_TPV] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_TPV, String(input[_TPV])).n(_TPV));
      }
      body += bn.toString();
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_CreateTrafficPolicyInstanceCommand");
    var se_CreateTrafficPolicyVersionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/xml"
      };
      b3.bp("/2013-04-01/trafficpolicy/{Id}");
      b3.p("Id", () => input.Id, "{Id}", false);
      let body;
      body = _ve;
      const bn = new import_xml_builder2.XmlNode(_CTPVR);
      bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/");
      if (input[_C2] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_TPC, input[_C2]).n(_C2));
      }
      if (input[_D] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_TPD, input[_D]).n(_D));
      }
      body += bn.toString();
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_CreateTrafficPolicyVersionCommand");
    var se_CreateVPCAssociationAuthorizationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/xml"
      };
      b3.bp("/2013-04-01/hostedzone/{HostedZoneId}/authorizevpcassociation");
      b3.p("HostedZoneId", () => input.HostedZoneId, "{HostedZoneId}", false);
      let body;
      body = _ve;
      const bn = new import_xml_builder2.XmlNode(_CVPCAAR);
      bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/");
      if (input[_VPC] != null) {
        bn.c(se_VPC(input[_VPC], context).n(_VPC));
      }
      body += bn.toString();
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_CreateVPCAssociationAuthorizationCommand");
    var se_DeactivateKeySigningKeyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2013-04-01/keysigningkey/{HostedZoneId}/{Name}/deactivate");
      b3.p("HostedZoneId", () => input.HostedZoneId, "{HostedZoneId}", false);
      b3.p("Name", () => input.Name, "{Name}", false);
      let body;
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_DeactivateKeySigningKeyCommand");
    var se_DeleteCidrCollectionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2013-04-01/cidrcollection/{Id}");
      b3.p("Id", () => input.Id, "{Id}", false);
      let body;
      b3.m("DELETE").h(headers).b(body);
      return b3.build();
    }, "se_DeleteCidrCollectionCommand");
    var se_DeleteHealthCheckCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2013-04-01/healthcheck/{HealthCheckId}");
      b3.p("HealthCheckId", () => input.HealthCheckId, "{HealthCheckId}", false);
      let body;
      b3.m("DELETE").h(headers).b(body);
      return b3.build();
    }, "se_DeleteHealthCheckCommand");
    var se_DeleteHostedZoneCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2013-04-01/hostedzone/{Id}");
      b3.p("Id", () => input.Id, "{Id}", false);
      let body;
      b3.m("DELETE").h(headers).b(body);
      return b3.build();
    }, "se_DeleteHostedZoneCommand");
    var se_DeleteKeySigningKeyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2013-04-01/keysigningkey/{HostedZoneId}/{Name}");
      b3.p("HostedZoneId", () => input.HostedZoneId, "{HostedZoneId}", false);
      b3.p("Name", () => input.Name, "{Name}", false);
      let body;
      b3.m("DELETE").h(headers).b(body);
      return b3.build();
    }, "se_DeleteKeySigningKeyCommand");
    var se_DeleteQueryLoggingConfigCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2013-04-01/queryloggingconfig/{Id}");
      b3.p("Id", () => input.Id, "{Id}", false);
      let body;
      b3.m("DELETE").h(headers).b(body);
      return b3.build();
    }, "se_DeleteQueryLoggingConfigCommand");
    var se_DeleteReusableDelegationSetCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2013-04-01/delegationset/{Id}");
      b3.p("Id", () => input.Id, "{Id}", false);
      let body;
      b3.m("DELETE").h(headers).b(body);
      return b3.build();
    }, "se_DeleteReusableDelegationSetCommand");
    var se_DeleteTrafficPolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2013-04-01/trafficpolicy/{Id}/{Version}");
      b3.p("Id", () => input.Id, "{Id}", false);
      b3.p("Version", () => input.Version.toString(), "{Version}", false);
      let body;
      b3.m("DELETE").h(headers).b(body);
      return b3.build();
    }, "se_DeleteTrafficPolicyCommand");
    var se_DeleteTrafficPolicyInstanceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2013-04-01/trafficpolicyinstance/{Id}");
      b3.p("Id", () => input.Id, "{Id}", false);
      let body;
      b3.m("DELETE").h(headers).b(body);
      return b3.build();
    }, "se_DeleteTrafficPolicyInstanceCommand");
    var se_DeleteVPCAssociationAuthorizationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/xml"
      };
      b3.bp("/2013-04-01/hostedzone/{HostedZoneId}/deauthorizevpcassociation");
      b3.p("HostedZoneId", () => input.HostedZoneId, "{HostedZoneId}", false);
      let body;
      body = _ve;
      const bn = new import_xml_builder2.XmlNode(_DVPCAAR);
      bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/");
      if (input[_VPC] != null) {
        bn.c(se_VPC(input[_VPC], context).n(_VPC));
      }
      body += bn.toString();
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_DeleteVPCAssociationAuthorizationCommand");
    var se_DisableHostedZoneDNSSECCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2013-04-01/hostedzone/{HostedZoneId}/disable-dnssec");
      b3.p("HostedZoneId", () => input.HostedZoneId, "{HostedZoneId}", false);
      let body;
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_DisableHostedZoneDNSSECCommand");
    var se_DisassociateVPCFromHostedZoneCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/xml"
      };
      b3.bp("/2013-04-01/hostedzone/{HostedZoneId}/disassociatevpc");
      b3.p("HostedZoneId", () => input.HostedZoneId, "{HostedZoneId}", false);
      let body;
      body = _ve;
      const bn = new import_xml_builder2.XmlNode(_DVPCFHZR);
      bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/");
      if (input[_C2] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_DVPCC, input[_C2]).n(_C2));
      }
      if (input[_VPC] != null) {
        bn.c(se_VPC(input[_VPC], context).n(_VPC));
      }
      body += bn.toString();
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_DisassociateVPCFromHostedZoneCommand");
    var se_EnableHostedZoneDNSSECCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2013-04-01/hostedzone/{HostedZoneId}/enable-dnssec");
      b3.p("HostedZoneId", () => input.HostedZoneId, "{HostedZoneId}", false);
      let body;
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_EnableHostedZoneDNSSECCommand");
    var se_GetAccountLimitCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2013-04-01/accountlimit/{Type}");
      b3.p("Type", () => input.Type, "{Type}", false);
      let body;
      b3.m("GET").h(headers).b(body);
      return b3.build();
    }, "se_GetAccountLimitCommand");
    var se_GetChangeCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2013-04-01/change/{Id}");
      b3.p("Id", () => input.Id, "{Id}", false);
      let body;
      b3.m("GET").h(headers).b(body);
      return b3.build();
    }, "se_GetChangeCommand");
    var se_GetCheckerIpRangesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2013-04-01/checkeripranges");
      let body;
      b3.m("GET").h(headers).b(body);
      return b3.build();
    }, "se_GetCheckerIpRangesCommand");
    var se_GetDNSSECCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2013-04-01/hostedzone/{HostedZoneId}/dnssec");
      b3.p("HostedZoneId", () => input.HostedZoneId, "{HostedZoneId}", false);
      let body;
      b3.m("GET").h(headers).b(body);
      return b3.build();
    }, "se_GetDNSSECCommand");
    var se_GetGeoLocationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2013-04-01/geolocation");
      const query = (0, import_smithy_client28.map)({
        [_c]: [, input[_CC]],
        [_co]: [, input[_CCo]],
        [_s]: [, input[_SC]]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_GetGeoLocationCommand");
    var se_GetHealthCheckCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2013-04-01/healthcheck/{HealthCheckId}");
      b3.p("HealthCheckId", () => input.HealthCheckId, "{HealthCheckId}", false);
      let body;
      b3.m("GET").h(headers).b(body);
      return b3.build();
    }, "se_GetHealthCheckCommand");
    var se_GetHealthCheckCountCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2013-04-01/healthcheckcount");
      let body;
      b3.m("GET").h(headers).b(body);
      return b3.build();
    }, "se_GetHealthCheckCountCommand");
    var se_GetHealthCheckLastFailureReasonCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2013-04-01/healthcheck/{HealthCheckId}/lastfailurereason");
      b3.p("HealthCheckId", () => input.HealthCheckId, "{HealthCheckId}", false);
      let body;
      b3.m("GET").h(headers).b(body);
      return b3.build();
    }, "se_GetHealthCheckLastFailureReasonCommand");
    var se_GetHealthCheckStatusCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2013-04-01/healthcheck/{HealthCheckId}/status");
      b3.p("HealthCheckId", () => input.HealthCheckId, "{HealthCheckId}", false);
      let body;
      b3.m("GET").h(headers).b(body);
      return b3.build();
    }, "se_GetHealthCheckStatusCommand");
    var se_GetHostedZoneCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2013-04-01/hostedzone/{Id}");
      b3.p("Id", () => input.Id, "{Id}", false);
      let body;
      b3.m("GET").h(headers).b(body);
      return b3.build();
    }, "se_GetHostedZoneCommand");
    var se_GetHostedZoneCountCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2013-04-01/hostedzonecount");
      let body;
      b3.m("GET").h(headers).b(body);
      return b3.build();
    }, "se_GetHostedZoneCountCommand");
    var se_GetHostedZoneLimitCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2013-04-01/hostedzonelimit/{HostedZoneId}/{Type}");
      b3.p("Type", () => input.Type, "{Type}", false);
      b3.p("HostedZoneId", () => input.HostedZoneId, "{HostedZoneId}", false);
      let body;
      b3.m("GET").h(headers).b(body);
      return b3.build();
    }, "se_GetHostedZoneLimitCommand");
    var se_GetQueryLoggingConfigCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2013-04-01/queryloggingconfig/{Id}");
      b3.p("Id", () => input.Id, "{Id}", false);
      let body;
      b3.m("GET").h(headers).b(body);
      return b3.build();
    }, "se_GetQueryLoggingConfigCommand");
    var se_GetReusableDelegationSetCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2013-04-01/delegationset/{Id}");
      b3.p("Id", () => input.Id, "{Id}", false);
      let body;
      b3.m("GET").h(headers).b(body);
      return b3.build();
    }, "se_GetReusableDelegationSetCommand");
    var se_GetReusableDelegationSetLimitCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2013-04-01/reusabledelegationsetlimit/{DelegationSetId}/{Type}");
      b3.p("Type", () => input.Type, "{Type}", false);
      b3.p("DelegationSetId", () => input.DelegationSetId, "{DelegationSetId}", false);
      let body;
      b3.m("GET").h(headers).b(body);
      return b3.build();
    }, "se_GetReusableDelegationSetLimitCommand");
    var se_GetTrafficPolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2013-04-01/trafficpolicy/{Id}/{Version}");
      b3.p("Id", () => input.Id, "{Id}", false);
      b3.p("Version", () => input.Version.toString(), "{Version}", false);
      let body;
      b3.m("GET").h(headers).b(body);
      return b3.build();
    }, "se_GetTrafficPolicyCommand");
    var se_GetTrafficPolicyInstanceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2013-04-01/trafficpolicyinstance/{Id}");
      b3.p("Id", () => input.Id, "{Id}", false);
      let body;
      b3.m("GET").h(headers).b(body);
      return b3.build();
    }, "se_GetTrafficPolicyInstanceCommand");
    var se_GetTrafficPolicyInstanceCountCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2013-04-01/trafficpolicyinstancecount");
      let body;
      b3.m("GET").h(headers).b(body);
      return b3.build();
    }, "se_GetTrafficPolicyInstanceCountCommand");
    var se_ListCidrBlocksCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2013-04-01/cidrcollection/{CollectionId}/cidrblocks");
      b3.p("CollectionId", () => input.CollectionId, "{CollectionId}", false);
      const query = (0, import_smithy_client28.map)({
        [_l]: [, input[_LN]],
        [_n]: [, input[_NT]],
        [_m2]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_ListCidrBlocksCommand");
    var se_ListCidrCollectionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2013-04-01/cidrcollection");
      const query = (0, import_smithy_client28.map)({
        [_n]: [, input[_NT]],
        [_m2]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_ListCidrCollectionsCommand");
    var se_ListCidrLocationsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2013-04-01/cidrcollection/{CollectionId}");
      b3.p("CollectionId", () => input.CollectionId, "{CollectionId}", false);
      const query = (0, import_smithy_client28.map)({
        [_n]: [, input[_NT]],
        [_m2]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_ListCidrLocationsCommand");
    var se_ListGeoLocationsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2013-04-01/geolocations");
      const query = (0, import_smithy_client28.map)({
        [_st]: [, input[_SCC]],
        [_sta]: [, input[_SCCt]],
        [_star]: [, input[_SSC]],
        [_ma]: [() => input.MaxItems !== void 0, () => input[_MI].toString()]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_ListGeoLocationsCommand");
    var se_ListHealthChecksCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2013-04-01/healthcheck");
      const query = (0, import_smithy_client28.map)({
        [_mar]: [, input[_M]],
        [_ma]: [() => input.MaxItems !== void 0, () => input[_MI].toString()]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_ListHealthChecksCommand");
    var se_ListHostedZonesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2013-04-01/hostedzone");
      const query = (0, import_smithy_client28.map)({
        [_mar]: [, input[_M]],
        [_ma]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
        [_d]: [, input[_DSI]],
        [_h]: [, input[_HZT]]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_ListHostedZonesCommand");
    var se_ListHostedZonesByNameCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2013-04-01/hostedzonesbyname");
      const query = (0, import_smithy_client28.map)({
        [_dn]: [, input[_DNSN]],
        [_ho]: [, input[_HZI]],
        [_ma]: [() => input.MaxItems !== void 0, () => input[_MI].toString()]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_ListHostedZonesByNameCommand");
    var se_ListHostedZonesByVPCCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2013-04-01/hostedzonesbyvpc");
      const query = (0, import_smithy_client28.map)({
        [_v]: [, (0, import_smithy_client28.expectNonNull)(input[_VPCI], `VPCId`)],
        [_vp]: [, (0, import_smithy_client28.expectNonNull)(input[_VPCR], `VPCRegion`)],
        [_ma]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
        [_n]: [, input[_NT]]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_ListHostedZonesByVPCCommand");
    var se_ListQueryLoggingConfigsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2013-04-01/queryloggingconfig");
      const query = (0, import_smithy_client28.map)({
        [_ho]: [, input[_HZI]],
        [_n]: [, input[_NT]],
        [_m2]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_ListQueryLoggingConfigsCommand");
    var se_ListResourceRecordSetsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2013-04-01/hostedzone/{HostedZoneId}/rrset");
      b3.p("HostedZoneId", () => input.HostedZoneId, "{HostedZoneId}", false);
      const query = (0, import_smithy_client28.map)({
        [_na]: [, input[_SRN]],
        [_t]: [, input[_SRT]],
        [_i]: [, input[_SRI]],
        [_ma]: [() => input.MaxItems !== void 0, () => input[_MI].toString()]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_ListResourceRecordSetsCommand");
    var se_ListReusableDelegationSetsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2013-04-01/delegationset");
      const query = (0, import_smithy_client28.map)({
        [_mar]: [, input[_M]],
        [_ma]: [() => input.MaxItems !== void 0, () => input[_MI].toString()]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_ListReusableDelegationSetsCommand");
    var se_ListTagsForResourceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2013-04-01/tags/{ResourceType}/{ResourceId}");
      b3.p("ResourceType", () => input.ResourceType, "{ResourceType}", false);
      b3.p("ResourceId", () => input.ResourceId, "{ResourceId}", false);
      let body;
      b3.m("GET").h(headers).b(body);
      return b3.build();
    }, "se_ListTagsForResourceCommand");
    var se_ListTagsForResourcesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/xml"
      };
      b3.bp("/2013-04-01/tags/{ResourceType}");
      b3.p("ResourceType", () => input.ResourceType, "{ResourceType}", false);
      let body;
      body = _ve;
      const bn = new import_xml_builder2.XmlNode(_LTFRR);
      bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/");
      bn.lc(input, "ResourceIds", "ResourceIds", () => se_TagResourceIdList(input[_RIe], context));
      body += bn.toString();
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_ListTagsForResourcesCommand");
    var se_ListTrafficPoliciesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2013-04-01/trafficpolicies");
      const query = (0, import_smithy_client28.map)({
        [_tr]: [, input[_TPIM]],
        [_ma]: [() => input.MaxItems !== void 0, () => input[_MI].toString()]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_ListTrafficPoliciesCommand");
    var se_ListTrafficPolicyInstancesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2013-04-01/trafficpolicyinstances");
      const query = (0, import_smithy_client28.map)({
        [_ho]: [, input[_HZIM]],
        [_tra]: [, input[_TPINM]],
        [_traf]: [, input[_TPITM]],
        [_ma]: [() => input.MaxItems !== void 0, () => input[_MI].toString()]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_ListTrafficPolicyInstancesCommand");
    var se_ListTrafficPolicyInstancesByHostedZoneCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2013-04-01/trafficpolicyinstances/hostedzone");
      const query = (0, import_smithy_client28.map)({
        [_id]: [, (0, import_smithy_client28.expectNonNull)(input[_HZI], `HostedZoneId`)],
        [_tra]: [, input[_TPINM]],
        [_traf]: [, input[_TPITM]],
        [_ma]: [() => input.MaxItems !== void 0, () => input[_MI].toString()]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_ListTrafficPolicyInstancesByHostedZoneCommand");
    var se_ListTrafficPolicyInstancesByPolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2013-04-01/trafficpolicyinstances/trafficpolicy");
      const query = (0, import_smithy_client28.map)({
        [_id]: [, (0, import_smithy_client28.expectNonNull)(input[_TPI], `TrafficPolicyId`)],
        [_ver]: [
          (0, import_smithy_client28.expectNonNull)(input.TrafficPolicyVersion, `TrafficPolicyVersion`) != null,
          () => input[_TPV].toString()
        ],
        [_ho]: [, input[_HZIM]],
        [_tra]: [, input[_TPINM]],
        [_traf]: [, input[_TPITM]],
        [_ma]: [() => input.MaxItems !== void 0, () => input[_MI].toString()]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_ListTrafficPolicyInstancesByPolicyCommand");
    var se_ListTrafficPolicyVersionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2013-04-01/trafficpolicies/{Id}/versions");
      b3.p("Id", () => input.Id, "{Id}", false);
      const query = (0, import_smithy_client28.map)({
        [_traff]: [, input[_TPVM]],
        [_ma]: [() => input.MaxItems !== void 0, () => input[_MI].toString()]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_ListTrafficPolicyVersionsCommand");
    var se_ListVPCAssociationAuthorizationsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2013-04-01/hostedzone/{HostedZoneId}/authorizevpcassociation");
      b3.p("HostedZoneId", () => input.HostedZoneId, "{HostedZoneId}", false);
      const query = (0, import_smithy_client28.map)({
        [_n]: [, input[_NT]],
        [_m2]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_ListVPCAssociationAuthorizationsCommand");
    var se_TestDNSAnswerCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {};
      b3.bp("/2013-04-01/testdnsanswer");
      const query = (0, import_smithy_client28.map)({
        [_ho]: [, (0, import_smithy_client28.expectNonNull)(input[_HZI], `HostedZoneId`)],
        [_r]: [, (0, import_smithy_client28.expectNonNull)(input[_RN], `RecordName`)],
        [_re]: [, (0, import_smithy_client28.expectNonNull)(input[_RT], `RecordType`)],
        [_res]: [, input[_RIP]],
        [_e]: [, input[_EDNSCSIP]],
        [_ed]: [, input[_EDNSCSM]]
      });
      let body;
      b3.m("GET").h(headers).q(query).b(body);
      return b3.build();
    }, "se_TestDNSAnswerCommand");
    var se_UpdateHealthCheckCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/xml"
      };
      b3.bp("/2013-04-01/healthcheck/{HealthCheckId}");
      b3.p("HealthCheckId", () => input.HealthCheckId, "{HealthCheckId}", false);
      let body;
      body = _ve;
      const bn = new import_xml_builder2.XmlNode(_UHCR);
      bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/");
      if (input[_AI] != null) {
        bn.c(se_AlarmIdentifier(input[_AI], context).n(_AI));
      }
      bn.lc(input, "ChildHealthChecks", "ChildHealthChecks", () => se_ChildHealthCheckList(input[_CHC], context));
      if (input[_Di] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_Di, String(input[_Di])).n(_Di));
      }
      if (input[_ESNI] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_ESNI, String(input[_ESNI])).n(_ESNI));
      }
      if (input[_FT] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_FT, String(input[_FT])).n(_FT));
      }
      bn.cc(input, _FQDN);
      if (input[_HCV] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_HCV, String(input[_HCV])).n(_HCV));
      }
      if (input[_HT] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_HT, String(input[_HT])).n(_HT));
      }
      bn.cc(input, _IPA);
      bn.cc(input, _IDHS);
      if (input[_I] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_I, String(input[_I])).n(_I));
      }
      if (input[_P2] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_P2, String(input[_P2])).n(_P2));
      }
      bn.lc(input, "Regions", "Regions", () => se_HealthCheckRegionList(input[_R], context));
      bn.lc(input, "ResetElements", "ResetElements", () => se_ResettableElementNameList(input[_RE], context));
      bn.cc(input, _RP);
      bn.cc(input, _SS);
      body += bn.toString();
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_UpdateHealthCheckCommand");
    var se_UpdateHostedZoneCommentCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/xml"
      };
      b3.bp("/2013-04-01/hostedzone/{Id}");
      b3.p("Id", () => input.Id, "{Id}", false);
      let body;
      body = _ve;
      const bn = new import_xml_builder2.XmlNode(_UHZCR);
      bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/");
      if (input[_C2] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_RD, input[_C2]).n(_C2));
      }
      body += bn.toString();
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_UpdateHostedZoneCommentCommand");
    var se_UpdateTrafficPolicyCommentCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/xml"
      };
      b3.bp("/2013-04-01/trafficpolicy/{Id}/{Version}");
      b3.p("Id", () => input.Id, "{Id}", false);
      b3.p("Version", () => input.Version.toString(), "{Version}", false);
      let body;
      body = _ve;
      const bn = new import_xml_builder2.XmlNode(_UTPCR);
      bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/");
      if (input[_C2] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_TPC, input[_C2]).n(_C2));
      }
      body += bn.toString();
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_UpdateTrafficPolicyCommentCommand");
    var se_UpdateTrafficPolicyInstanceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const b3 = (0, import_core17.requestBuilder)(input, context);
      const headers = {
        "content-type": "application/xml"
      };
      b3.bp("/2013-04-01/trafficpolicyinstance/{Id}");
      b3.p("Id", () => input.Id, "{Id}", false);
      let body;
      body = _ve;
      const bn = new import_xml_builder2.XmlNode(_UTPIR);
      bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/");
      if (input[_TTL] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_TTL, String(input[_TTL])).n(_TTL));
      }
      bn.cc(input, _TPI);
      if (input[_TPV] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_TPV, String(input[_TPV])).n(_TPV));
      }
      body += bn.toString();
      b3.m("POST").h(headers).b(body);
      return b3.build();
    }, "se_UpdateTrafficPolicyInstanceCommand");
    var de_ActivateKeySigningKeyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3[_CI] != null) {
        contents[_CI] = de_ChangeInfo(data3[_CI], context);
      }
      return contents;
    }, "de_ActivateKeySigningKeyCommand");
    var de_AssociateVPCWithHostedZoneCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3[_CI] != null) {
        contents[_CI] = de_ChangeInfo(data3[_CI], context);
      }
      return contents;
    }, "de_AssociateVPCWithHostedZoneCommand");
    var de_ChangeCidrCollectionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3[_Id] != null) {
        contents[_Id] = (0, import_smithy_client28.expectString)(data3[_Id]);
      }
      return contents;
    }, "de_ChangeCidrCollectionCommand");
    var de_ChangeResourceRecordSetsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3[_CI] != null) {
        contents[_CI] = de_ChangeInfo(data3[_CI], context);
      }
      return contents;
    }, "de_ChangeResourceRecordSetsCommand");
    var de_ChangeTagsForResourceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_ChangeTagsForResourceCommand");
    var de_CreateCidrCollectionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 201 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output),
        [_L]: [, output.headers[_l]]
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3[_Co] != null) {
        contents[_Co] = de_CidrCollection(data3[_Co], context);
      }
      return contents;
    }, "de_CreateCidrCollectionCommand");
    var de_CreateHealthCheckCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 201 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output),
        [_L]: [, output.headers[_l]]
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3[_HC] != null) {
        contents[_HC] = de_HealthCheck(data3[_HC], context);
      }
      return contents;
    }, "de_CreateHealthCheckCommand");
    var de_CreateHostedZoneCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 201 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output),
        [_L]: [, output.headers[_l]]
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3[_CI] != null) {
        contents[_CI] = de_ChangeInfo(data3[_CI], context);
      }
      if (data3[_DS2] != null) {
        contents[_DS2] = de_DelegationSet(data3[_DS2], context);
      }
      if (data3[_HZ] != null) {
        contents[_HZ] = de_HostedZone(data3[_HZ], context);
      }
      if (data3[_VPC] != null) {
        contents[_VPC] = de_VPC(data3[_VPC], context);
      }
      return contents;
    }, "de_CreateHostedZoneCommand");
    var de_CreateKeySigningKeyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 201 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output),
        [_L]: [, output.headers[_l]]
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3[_CI] != null) {
        contents[_CI] = de_ChangeInfo(data3[_CI], context);
      }
      if (data3[_KSK] != null) {
        contents[_KSK] = de_KeySigningKey(data3[_KSK], context);
      }
      return contents;
    }, "de_CreateKeySigningKeyCommand");
    var de_CreateQueryLoggingConfigCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 201 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output),
        [_L]: [, output.headers[_l]]
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3[_QLC] != null) {
        contents[_QLC] = de_QueryLoggingConfig(data3[_QLC], context);
      }
      return contents;
    }, "de_CreateQueryLoggingConfigCommand");
    var de_CreateReusableDelegationSetCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 201 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output),
        [_L]: [, output.headers[_l]]
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3[_DS2] != null) {
        contents[_DS2] = de_DelegationSet(data3[_DS2], context);
      }
      return contents;
    }, "de_CreateReusableDelegationSetCommand");
    var de_CreateTrafficPolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 201 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output),
        [_L]: [, output.headers[_l]]
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3[_TP] != null) {
        contents[_TP] = de_TrafficPolicy(data3[_TP], context);
      }
      return contents;
    }, "de_CreateTrafficPolicyCommand");
    var de_CreateTrafficPolicyInstanceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 201 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output),
        [_L]: [, output.headers[_l]]
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3[_TPIr] != null) {
        contents[_TPIr] = de_TrafficPolicyInstance(data3[_TPIr], context);
      }
      return contents;
    }, "de_CreateTrafficPolicyInstanceCommand");
    var de_CreateTrafficPolicyVersionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 201 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output),
        [_L]: [, output.headers[_l]]
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3[_TP] != null) {
        contents[_TP] = de_TrafficPolicy(data3[_TP], context);
      }
      return contents;
    }, "de_CreateTrafficPolicyVersionCommand");
    var de_CreateVPCAssociationAuthorizationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3[_HZI] != null) {
        contents[_HZI] = (0, import_smithy_client28.expectString)(data3[_HZI]);
      }
      if (data3[_VPC] != null) {
        contents[_VPC] = de_VPC(data3[_VPC], context);
      }
      return contents;
    }, "de_CreateVPCAssociationAuthorizationCommand");
    var de_DeactivateKeySigningKeyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3[_CI] != null) {
        contents[_CI] = de_ChangeInfo(data3[_CI], context);
      }
      return contents;
    }, "de_DeactivateKeySigningKeyCommand");
    var de_DeleteCidrCollectionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_DeleteCidrCollectionCommand");
    var de_DeleteHealthCheckCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_DeleteHealthCheckCommand");
    var de_DeleteHostedZoneCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3[_CI] != null) {
        contents[_CI] = de_ChangeInfo(data3[_CI], context);
      }
      return contents;
    }, "de_DeleteHostedZoneCommand");
    var de_DeleteKeySigningKeyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3[_CI] != null) {
        contents[_CI] = de_ChangeInfo(data3[_CI], context);
      }
      return contents;
    }, "de_DeleteKeySigningKeyCommand");
    var de_DeleteQueryLoggingConfigCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_DeleteQueryLoggingConfigCommand");
    var de_DeleteReusableDelegationSetCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_DeleteReusableDelegationSetCommand");
    var de_DeleteTrafficPolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_DeleteTrafficPolicyCommand");
    var de_DeleteTrafficPolicyInstanceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_DeleteTrafficPolicyInstanceCommand");
    var de_DeleteVPCAssociationAuthorizationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      await (0, import_smithy_client28.collectBody)(output.body, context);
      return contents;
    }, "de_DeleteVPCAssociationAuthorizationCommand");
    var de_DisableHostedZoneDNSSECCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3[_CI] != null) {
        contents[_CI] = de_ChangeInfo(data3[_CI], context);
      }
      return contents;
    }, "de_DisableHostedZoneDNSSECCommand");
    var de_DisassociateVPCFromHostedZoneCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3[_CI] != null) {
        contents[_CI] = de_ChangeInfo(data3[_CI], context);
      }
      return contents;
    }, "de_DisassociateVPCFromHostedZoneCommand");
    var de_EnableHostedZoneDNSSECCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3[_CI] != null) {
        contents[_CI] = de_ChangeInfo(data3[_CI], context);
      }
      return contents;
    }, "de_EnableHostedZoneDNSSECCommand");
    var de_GetAccountLimitCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3[_Cou] != null) {
        contents[_Cou] = (0, import_smithy_client28.strictParseLong)(data3[_Cou]);
      }
      if (data3[_Li] != null) {
        contents[_Li] = de_AccountLimit(data3[_Li], context);
      }
      return contents;
    }, "de_GetAccountLimitCommand");
    var de_GetChangeCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3[_CI] != null) {
        contents[_CI] = de_ChangeInfo(data3[_CI], context);
      }
      return contents;
    }, "de_GetChangeCommand");
    var de_GetCheckerIpRangesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3.CheckerIpRanges === "") {
        contents[_CIR] = [];
      } else if (data3[_CIR] != null && data3[_CIR][_me] != null) {
        contents[_CIR] = de_CheckerIpRanges((0, import_smithy_client28.getArrayIfSingleItem)(data3[_CIR][_me]), context);
      }
      return contents;
    }, "de_GetCheckerIpRangesCommand");
    var de_GetDNSSECCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3.KeySigningKeys === "") {
        contents[_KSKe] = [];
      } else if (data3[_KSKe] != null && data3[_KSKe][_me] != null) {
        contents[_KSKe] = de_KeySigningKeys((0, import_smithy_client28.getArrayIfSingleItem)(data3[_KSKe][_me]), context);
      }
      if (data3[_S] != null) {
        contents[_S] = de_DNSSECStatus(data3[_S], context);
      }
      return contents;
    }, "de_GetDNSSECCommand");
    var de_GetGeoLocationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3[_GLD] != null) {
        contents[_GLD] = de_GeoLocationDetails(data3[_GLD], context);
      }
      return contents;
    }, "de_GetGeoLocationCommand");
    var de_GetHealthCheckCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3[_HC] != null) {
        contents[_HC] = de_HealthCheck(data3[_HC], context);
      }
      return contents;
    }, "de_GetHealthCheckCommand");
    var de_GetHealthCheckCountCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3[_HCCe] != null) {
        contents[_HCCe] = (0, import_smithy_client28.strictParseLong)(data3[_HCCe]);
      }
      return contents;
    }, "de_GetHealthCheckCountCommand");
    var de_GetHealthCheckLastFailureReasonCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3.HealthCheckObservations === "") {
        contents[_HCO] = [];
      } else if (data3[_HCO] != null && data3[_HCO][_HCOe] != null) {
        contents[_HCO] = de_HealthCheckObservations((0, import_smithy_client28.getArrayIfSingleItem)(data3[_HCO][_HCOe]), context);
      }
      return contents;
    }, "de_GetHealthCheckLastFailureReasonCommand");
    var de_GetHealthCheckStatusCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3.HealthCheckObservations === "") {
        contents[_HCO] = [];
      } else if (data3[_HCO] != null && data3[_HCO][_HCOe] != null) {
        contents[_HCO] = de_HealthCheckObservations((0, import_smithy_client28.getArrayIfSingleItem)(data3[_HCO][_HCOe]), context);
      }
      return contents;
    }, "de_GetHealthCheckStatusCommand");
    var de_GetHostedZoneCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3[_DS2] != null) {
        contents[_DS2] = de_DelegationSet(data3[_DS2], context);
      }
      if (data3[_HZ] != null) {
        contents[_HZ] = de_HostedZone(data3[_HZ], context);
      }
      if (data3.VPCs === "") {
        contents[_VPCs] = [];
      } else if (data3[_VPCs] != null && data3[_VPCs][_VPC] != null) {
        contents[_VPCs] = de_VPCs((0, import_smithy_client28.getArrayIfSingleItem)(data3[_VPCs][_VPC]), context);
      }
      return contents;
    }, "de_GetHostedZoneCommand");
    var de_GetHostedZoneCountCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3[_HZCo] != null) {
        contents[_HZCo] = (0, import_smithy_client28.strictParseLong)(data3[_HZCo]);
      }
      return contents;
    }, "de_GetHostedZoneCountCommand");
    var de_GetHostedZoneLimitCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3[_Cou] != null) {
        contents[_Cou] = (0, import_smithy_client28.strictParseLong)(data3[_Cou]);
      }
      if (data3[_Li] != null) {
        contents[_Li] = de_HostedZoneLimit(data3[_Li], context);
      }
      return contents;
    }, "de_GetHostedZoneLimitCommand");
    var de_GetQueryLoggingConfigCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3[_QLC] != null) {
        contents[_QLC] = de_QueryLoggingConfig(data3[_QLC], context);
      }
      return contents;
    }, "de_GetQueryLoggingConfigCommand");
    var de_GetReusableDelegationSetCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3[_DS2] != null) {
        contents[_DS2] = de_DelegationSet(data3[_DS2], context);
      }
      return contents;
    }, "de_GetReusableDelegationSetCommand");
    var de_GetReusableDelegationSetLimitCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3[_Cou] != null) {
        contents[_Cou] = (0, import_smithy_client28.strictParseLong)(data3[_Cou]);
      }
      if (data3[_Li] != null) {
        contents[_Li] = de_ReusableDelegationSetLimit(data3[_Li], context);
      }
      return contents;
    }, "de_GetReusableDelegationSetLimitCommand");
    var de_GetTrafficPolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3[_TP] != null) {
        contents[_TP] = de_TrafficPolicy(data3[_TP], context);
      }
      return contents;
    }, "de_GetTrafficPolicyCommand");
    var de_GetTrafficPolicyInstanceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3[_TPIr] != null) {
        contents[_TPIr] = de_TrafficPolicyInstance(data3[_TPIr], context);
      }
      return contents;
    }, "de_GetTrafficPolicyInstanceCommand");
    var de_GetTrafficPolicyInstanceCountCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3[_TPIC] != null) {
        contents[_TPIC] = (0, import_smithy_client28.strictParseInt32)(data3[_TPIC]);
      }
      return contents;
    }, "de_GetTrafficPolicyInstanceCountCommand");
    var de_ListCidrBlocksCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3.CidrBlocks === "") {
        contents[_CBi] = [];
      } else if (data3[_CBi] != null && data3[_CBi][_me] != null) {
        contents[_CBi] = de_CidrBlockSummaries((0, import_smithy_client28.getArrayIfSingleItem)(data3[_CBi][_me]), context);
      }
      if (data3[_NT] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(data3[_NT]);
      }
      return contents;
    }, "de_ListCidrBlocksCommand");
    var de_ListCidrCollectionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3.CidrCollections === "") {
        contents[_CCi] = [];
      } else if (data3[_CCi] != null && data3[_CCi][_me] != null) {
        contents[_CCi] = de_CollectionSummaries((0, import_smithy_client28.getArrayIfSingleItem)(data3[_CCi][_me]), context);
      }
      if (data3[_NT] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(data3[_NT]);
      }
      return contents;
    }, "de_ListCidrCollectionsCommand");
    var de_ListCidrLocationsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3.CidrLocations === "") {
        contents[_CL] = [];
      } else if (data3[_CL] != null && data3[_CL][_me] != null) {
        contents[_CL] = de_LocationSummaries((0, import_smithy_client28.getArrayIfSingleItem)(data3[_CL][_me]), context);
      }
      if (data3[_NT] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(data3[_NT]);
      }
      return contents;
    }, "de_ListCidrLocationsCommand");
    var de_ListGeoLocationsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3.GeoLocationDetailsList === "") {
        contents[_GLDL] = [];
      } else if (data3[_GLDL] != null && data3[_GLDL][_GLD] != null) {
        contents[_GLDL] = de_GeoLocationDetailsList((0, import_smithy_client28.getArrayIfSingleItem)(data3[_GLDL][_GLD]), context);
      }
      if (data3[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(data3[_IT]);
      }
      if (data3[_MI] != null) {
        contents[_MI] = (0, import_smithy_client28.strictParseInt32)(data3[_MI]);
      }
      if (data3[_NCC] != null) {
        contents[_NCC] = (0, import_smithy_client28.expectString)(data3[_NCC]);
      }
      if (data3[_NCCe] != null) {
        contents[_NCCe] = (0, import_smithy_client28.expectString)(data3[_NCCe]);
      }
      if (data3[_NSC] != null) {
        contents[_NSC] = (0, import_smithy_client28.expectString)(data3[_NSC]);
      }
      return contents;
    }, "de_ListGeoLocationsCommand");
    var de_ListHealthChecksCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3.HealthChecks === "") {
        contents[_HCe] = [];
      } else if (data3[_HCe] != null && data3[_HCe][_HC] != null) {
        contents[_HCe] = de_HealthChecks((0, import_smithy_client28.getArrayIfSingleItem)(data3[_HCe][_HC]), context);
      }
      if (data3[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(data3[_IT]);
      }
      if (data3[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(data3[_M]);
      }
      if (data3[_MI] != null) {
        contents[_MI] = (0, import_smithy_client28.strictParseInt32)(data3[_MI]);
      }
      if (data3[_NM] != null) {
        contents[_NM] = (0, import_smithy_client28.expectString)(data3[_NM]);
      }
      return contents;
    }, "de_ListHealthChecksCommand");
    var de_ListHostedZonesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3.HostedZones === "") {
        contents[_HZo] = [];
      } else if (data3[_HZo] != null && data3[_HZo][_HZ] != null) {
        contents[_HZo] = de_HostedZones((0, import_smithy_client28.getArrayIfSingleItem)(data3[_HZo][_HZ]), context);
      }
      if (data3[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(data3[_IT]);
      }
      if (data3[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(data3[_M]);
      }
      if (data3[_MI] != null) {
        contents[_MI] = (0, import_smithy_client28.strictParseInt32)(data3[_MI]);
      }
      if (data3[_NM] != null) {
        contents[_NM] = (0, import_smithy_client28.expectString)(data3[_NM]);
      }
      return contents;
    }, "de_ListHostedZonesCommand");
    var de_ListHostedZonesByNameCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3[_DNSN] != null) {
        contents[_DNSN] = (0, import_smithy_client28.expectString)(data3[_DNSN]);
      }
      if (data3[_HZI] != null) {
        contents[_HZI] = (0, import_smithy_client28.expectString)(data3[_HZI]);
      }
      if (data3.HostedZones === "") {
        contents[_HZo] = [];
      } else if (data3[_HZo] != null && data3[_HZo][_HZ] != null) {
        contents[_HZo] = de_HostedZones((0, import_smithy_client28.getArrayIfSingleItem)(data3[_HZo][_HZ]), context);
      }
      if (data3[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(data3[_IT]);
      }
      if (data3[_MI] != null) {
        contents[_MI] = (0, import_smithy_client28.strictParseInt32)(data3[_MI]);
      }
      if (data3[_NDNSN] != null) {
        contents[_NDNSN] = (0, import_smithy_client28.expectString)(data3[_NDNSN]);
      }
      if (data3[_NHZI] != null) {
        contents[_NHZI] = (0, import_smithy_client28.expectString)(data3[_NHZI]);
      }
      return contents;
    }, "de_ListHostedZonesByNameCommand");
    var de_ListHostedZonesByVPCCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3.HostedZoneSummaries === "") {
        contents[_HZS] = [];
      } else if (data3[_HZS] != null && data3[_HZS][_HZSo] != null) {
        contents[_HZS] = de_HostedZoneSummaries((0, import_smithy_client28.getArrayIfSingleItem)(data3[_HZS][_HZSo]), context);
      }
      if (data3[_MI] != null) {
        contents[_MI] = (0, import_smithy_client28.strictParseInt32)(data3[_MI]);
      }
      if (data3[_NT] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(data3[_NT]);
      }
      return contents;
    }, "de_ListHostedZonesByVPCCommand");
    var de_ListQueryLoggingConfigsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3[_NT] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(data3[_NT]);
      }
      if (data3.QueryLoggingConfigs === "") {
        contents[_QLCu] = [];
      } else if (data3[_QLCu] != null && data3[_QLCu][_QLC] != null) {
        contents[_QLCu] = de_QueryLoggingConfigs((0, import_smithy_client28.getArrayIfSingleItem)(data3[_QLCu][_QLC]), context);
      }
      return contents;
    }, "de_ListQueryLoggingConfigsCommand");
    var de_ListResourceRecordSetsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(data3[_IT]);
      }
      if (data3[_MI] != null) {
        contents[_MI] = (0, import_smithy_client28.strictParseInt32)(data3[_MI]);
      }
      if (data3[_NRI] != null) {
        contents[_NRI] = (0, import_smithy_client28.expectString)(data3[_NRI]);
      }
      if (data3[_NRN] != null) {
        contents[_NRN] = (0, import_smithy_client28.expectString)(data3[_NRN]);
      }
      if (data3[_NRT] != null) {
        contents[_NRT] = (0, import_smithy_client28.expectString)(data3[_NRT]);
      }
      if (data3.ResourceRecordSets === "") {
        contents[_RRS] = [];
      } else if (data3[_RRS] != null && data3[_RRS][_RRSe] != null) {
        contents[_RRS] = de_ResourceRecordSets((0, import_smithy_client28.getArrayIfSingleItem)(data3[_RRS][_RRSe]), context);
      }
      return contents;
    }, "de_ListResourceRecordSetsCommand");
    var de_ListReusableDelegationSetsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3.DelegationSets === "") {
        contents[_DSe] = [];
      } else if (data3[_DSe] != null && data3[_DSe][_DS2] != null) {
        contents[_DSe] = de_DelegationSets((0, import_smithy_client28.getArrayIfSingleItem)(data3[_DSe][_DS2]), context);
      }
      if (data3[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(data3[_IT]);
      }
      if (data3[_M] != null) {
        contents[_M] = (0, import_smithy_client28.expectString)(data3[_M]);
      }
      if (data3[_MI] != null) {
        contents[_MI] = (0, import_smithy_client28.strictParseInt32)(data3[_MI]);
      }
      if (data3[_NM] != null) {
        contents[_NM] = (0, import_smithy_client28.expectString)(data3[_NM]);
      }
      return contents;
    }, "de_ListReusableDelegationSetsCommand");
    var de_ListTagsForResourceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3[_RTS] != null) {
        contents[_RTS] = de_ResourceTagSet(data3[_RTS], context);
      }
      return contents;
    }, "de_ListTagsForResourceCommand");
    var de_ListTagsForResourcesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3.ResourceTagSets === "") {
        contents[_RTSe] = [];
      } else if (data3[_RTSe] != null && data3[_RTSe][_RTS] != null) {
        contents[_RTSe] = de_ResourceTagSetList((0, import_smithy_client28.getArrayIfSingleItem)(data3[_RTSe][_RTS]), context);
      }
      return contents;
    }, "de_ListTagsForResourcesCommand");
    var de_ListTrafficPoliciesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(data3[_IT]);
      }
      if (data3[_MI] != null) {
        contents[_MI] = (0, import_smithy_client28.strictParseInt32)(data3[_MI]);
      }
      if (data3[_TPIM] != null) {
        contents[_TPIM] = (0, import_smithy_client28.expectString)(data3[_TPIM]);
      }
      if (data3.TrafficPolicySummaries === "") {
        contents[_TPS] = [];
      } else if (data3[_TPS] != null && data3[_TPS][_TPSr] != null) {
        contents[_TPS] = de_TrafficPolicySummaries((0, import_smithy_client28.getArrayIfSingleItem)(data3[_TPS][_TPSr]), context);
      }
      return contents;
    }, "de_ListTrafficPoliciesCommand");
    var de_ListTrafficPolicyInstancesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3[_HZIM] != null) {
        contents[_HZIM] = (0, import_smithy_client28.expectString)(data3[_HZIM]);
      }
      if (data3[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(data3[_IT]);
      }
      if (data3[_MI] != null) {
        contents[_MI] = (0, import_smithy_client28.strictParseInt32)(data3[_MI]);
      }
      if (data3[_TPINM] != null) {
        contents[_TPINM] = (0, import_smithy_client28.expectString)(data3[_TPINM]);
      }
      if (data3[_TPITM] != null) {
        contents[_TPITM] = (0, import_smithy_client28.expectString)(data3[_TPITM]);
      }
      if (data3.TrafficPolicyInstances === "") {
        contents[_TPIra] = [];
      } else if (data3[_TPIra] != null && data3[_TPIra][_TPIr] != null) {
        contents[_TPIra] = de_TrafficPolicyInstances((0, import_smithy_client28.getArrayIfSingleItem)(data3[_TPIra][_TPIr]), context);
      }
      return contents;
    }, "de_ListTrafficPolicyInstancesCommand");
    var de_ListTrafficPolicyInstancesByHostedZoneCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(data3[_IT]);
      }
      if (data3[_MI] != null) {
        contents[_MI] = (0, import_smithy_client28.strictParseInt32)(data3[_MI]);
      }
      if (data3[_TPINM] != null) {
        contents[_TPINM] = (0, import_smithy_client28.expectString)(data3[_TPINM]);
      }
      if (data3[_TPITM] != null) {
        contents[_TPITM] = (0, import_smithy_client28.expectString)(data3[_TPITM]);
      }
      if (data3.TrafficPolicyInstances === "") {
        contents[_TPIra] = [];
      } else if (data3[_TPIra] != null && data3[_TPIra][_TPIr] != null) {
        contents[_TPIra] = de_TrafficPolicyInstances((0, import_smithy_client28.getArrayIfSingleItem)(data3[_TPIra][_TPIr]), context);
      }
      return contents;
    }, "de_ListTrafficPolicyInstancesByHostedZoneCommand");
    var de_ListTrafficPolicyInstancesByPolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3[_HZIM] != null) {
        contents[_HZIM] = (0, import_smithy_client28.expectString)(data3[_HZIM]);
      }
      if (data3[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(data3[_IT]);
      }
      if (data3[_MI] != null) {
        contents[_MI] = (0, import_smithy_client28.strictParseInt32)(data3[_MI]);
      }
      if (data3[_TPINM] != null) {
        contents[_TPINM] = (0, import_smithy_client28.expectString)(data3[_TPINM]);
      }
      if (data3[_TPITM] != null) {
        contents[_TPITM] = (0, import_smithy_client28.expectString)(data3[_TPITM]);
      }
      if (data3.TrafficPolicyInstances === "") {
        contents[_TPIra] = [];
      } else if (data3[_TPIra] != null && data3[_TPIra][_TPIr] != null) {
        contents[_TPIra] = de_TrafficPolicyInstances((0, import_smithy_client28.getArrayIfSingleItem)(data3[_TPIra][_TPIr]), context);
      }
      return contents;
    }, "de_ListTrafficPolicyInstancesByPolicyCommand");
    var de_ListTrafficPolicyVersionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3[_IT] != null) {
        contents[_IT] = (0, import_smithy_client28.parseBoolean)(data3[_IT]);
      }
      if (data3[_MI] != null) {
        contents[_MI] = (0, import_smithy_client28.strictParseInt32)(data3[_MI]);
      }
      if (data3.TrafficPolicies === "") {
        contents[_TPr] = [];
      } else if (data3[_TPr] != null && data3[_TPr][_TP] != null) {
        contents[_TPr] = de_TrafficPolicies((0, import_smithy_client28.getArrayIfSingleItem)(data3[_TPr][_TP]), context);
      }
      if (data3[_TPVM] != null) {
        contents[_TPVM] = (0, import_smithy_client28.expectString)(data3[_TPVM]);
      }
      return contents;
    }, "de_ListTrafficPolicyVersionsCommand");
    var de_ListVPCAssociationAuthorizationsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3[_HZI] != null) {
        contents[_HZI] = (0, import_smithy_client28.expectString)(data3[_HZI]);
      }
      if (data3[_NT] != null) {
        contents[_NT] = (0, import_smithy_client28.expectString)(data3[_NT]);
      }
      if (data3.VPCs === "") {
        contents[_VPCs] = [];
      } else if (data3[_VPCs] != null && data3[_VPCs][_VPC] != null) {
        contents[_VPCs] = de_VPCs((0, import_smithy_client28.getArrayIfSingleItem)(data3[_VPCs][_VPC]), context);
      }
      return contents;
    }, "de_ListVPCAssociationAuthorizationsCommand");
    var de_TestDNSAnswerCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3[_Na] != null) {
        contents[_Na] = (0, import_smithy_client28.expectString)(data3[_Na]);
      }
      if (data3[_Pr2] != null) {
        contents[_Pr2] = (0, import_smithy_client28.expectString)(data3[_Pr2]);
      }
      if (data3.RecordData === "") {
        contents[_RDe] = [];
      } else if (data3[_RDe] != null && data3[_RDe][_RDE] != null) {
        contents[_RDe] = de_RecordData((0, import_smithy_client28.getArrayIfSingleItem)(data3[_RDe][_RDE]), context);
      }
      if (data3[_RN] != null) {
        contents[_RN] = (0, import_smithy_client28.expectString)(data3[_RN]);
      }
      if (data3[_RT] != null) {
        contents[_RT] = (0, import_smithy_client28.expectString)(data3[_RT]);
      }
      if (data3[_RC] != null) {
        contents[_RC] = (0, import_smithy_client28.expectString)(data3[_RC]);
      }
      return contents;
    }, "de_TestDNSAnswerCommand");
    var de_UpdateHealthCheckCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3[_HC] != null) {
        contents[_HC] = de_HealthCheck(data3[_HC], context);
      }
      return contents;
    }, "de_UpdateHealthCheckCommand");
    var de_UpdateHostedZoneCommentCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3[_HZ] != null) {
        contents[_HZ] = de_HostedZone(data3[_HZ], context);
      }
      return contents;
    }, "de_UpdateHostedZoneCommentCommand");
    var de_UpdateTrafficPolicyCommentCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3[_TP] != null) {
        contents[_TP] = de_TrafficPolicy(data3[_TP], context);
      }
      return contents;
    }, "de_UpdateTrafficPolicyCommentCommand");
    var de_UpdateTrafficPolicyInstanceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode !== 200 && output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const contents = (0, import_smithy_client28.map)({
        $metadata: deserializeMetadata3(output)
      });
      const data3 = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.expectObject)(await (0, import_core22.parseXmlBody)(output.body, context)), "body");
      if (data3[_TPIr] != null) {
        contents[_TPIr] = de_TrafficPolicyInstance(data3[_TPIr], context);
      }
      return contents;
    }, "de_UpdateTrafficPolicyInstanceCommand");
    var de_CommandError3 = /* @__PURE__ */ __name2(async (output, context) => {
      const parsedOutput = {
        ...output,
        body: await (0, import_core22.parseXmlErrorBody)(output.body, context)
      };
      const errorCode = (0, import_core22.loadRestXmlErrorCode)(output, parsedOutput.body);
      switch (errorCode) {
        case "ConcurrentModification":
        case "com.amazonaws.route53#ConcurrentModification":
          throw await de_ConcurrentModificationRes(parsedOutput, context);
        case "InvalidInput":
        case "com.amazonaws.route53#InvalidInput":
          throw await de_InvalidInputRes(parsedOutput, context);
        case "InvalidKMSArn":
        case "com.amazonaws.route53#InvalidKMSArn":
          throw await de_InvalidKMSArnRes(parsedOutput, context);
        case "InvalidKeySigningKeyStatus":
        case "com.amazonaws.route53#InvalidKeySigningKeyStatus":
          throw await de_InvalidKeySigningKeyStatusRes(parsedOutput, context);
        case "InvalidSigningStatus":
        case "com.amazonaws.route53#InvalidSigningStatus":
          throw await de_InvalidSigningStatusRes(parsedOutput, context);
        case "NoSuchKeySigningKey":
        case "com.amazonaws.route53#NoSuchKeySigningKey":
          throw await de_NoSuchKeySigningKeyRes(parsedOutput, context);
        case "ConflictingDomainExists":
        case "com.amazonaws.route53#ConflictingDomainExists":
          throw await de_ConflictingDomainExistsRes(parsedOutput, context);
        case "InvalidVPCId":
        case "com.amazonaws.route53#InvalidVPCId":
          throw await de_InvalidVPCIdRes(parsedOutput, context);
        case "LimitsExceeded":
        case "com.amazonaws.route53#LimitsExceeded":
          throw await de_LimitsExceededRes(parsedOutput, context);
        case "NoSuchHostedZone":
        case "com.amazonaws.route53#NoSuchHostedZone":
          throw await de_NoSuchHostedZoneRes(parsedOutput, context);
        case "NotAuthorizedException":
        case "com.amazonaws.route53#NotAuthorizedException":
          throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
        case "PriorRequestNotComplete":
        case "com.amazonaws.route53#PriorRequestNotComplete":
          throw await de_PriorRequestNotCompleteRes(parsedOutput, context);
        case "PublicZoneVPCAssociation":
        case "com.amazonaws.route53#PublicZoneVPCAssociation":
          throw await de_PublicZoneVPCAssociationRes(parsedOutput, context);
        case "CidrBlockInUseException":
        case "com.amazonaws.route53#CidrBlockInUseException":
          throw await de_CidrBlockInUseExceptionRes(parsedOutput, context);
        case "CidrCollectionVersionMismatchException":
        case "com.amazonaws.route53#CidrCollectionVersionMismatchException":
          throw await de_CidrCollectionVersionMismatchExceptionRes(parsedOutput, context);
        case "NoSuchCidrCollectionException":
        case "com.amazonaws.route53#NoSuchCidrCollectionException":
          throw await de_NoSuchCidrCollectionExceptionRes(parsedOutput, context);
        case "InvalidChangeBatch":
        case "com.amazonaws.route53#InvalidChangeBatch":
          throw await de_InvalidChangeBatchRes(parsedOutput, context);
        case "NoSuchHealthCheck":
        case "com.amazonaws.route53#NoSuchHealthCheck":
          throw await de_NoSuchHealthCheckRes(parsedOutput, context);
        case "ThrottlingException":
        case "com.amazonaws.route53#ThrottlingException":
          throw await de_ThrottlingExceptionRes(parsedOutput, context);
        case "CidrCollectionAlreadyExistsException":
        case "com.amazonaws.route53#CidrCollectionAlreadyExistsException":
          throw await de_CidrCollectionAlreadyExistsExceptionRes(parsedOutput, context);
        case "HealthCheckAlreadyExists":
        case "com.amazonaws.route53#HealthCheckAlreadyExists":
          throw await de_HealthCheckAlreadyExistsRes(parsedOutput, context);
        case "TooManyHealthChecks":
        case "com.amazonaws.route53#TooManyHealthChecks":
          throw await de_TooManyHealthChecksRes(parsedOutput, context);
        case "DelegationSetNotAvailable":
        case "com.amazonaws.route53#DelegationSetNotAvailable":
          throw await de_DelegationSetNotAvailableRes(parsedOutput, context);
        case "DelegationSetNotReusable":
        case "com.amazonaws.route53#DelegationSetNotReusable":
          throw await de_DelegationSetNotReusableRes(parsedOutput, context);
        case "HostedZoneAlreadyExists":
        case "com.amazonaws.route53#HostedZoneAlreadyExists":
          throw await de_HostedZoneAlreadyExistsRes(parsedOutput, context);
        case "InvalidDomainName":
        case "com.amazonaws.route53#InvalidDomainName":
          throw await de_InvalidDomainNameRes(parsedOutput, context);
        case "NoSuchDelegationSet":
        case "com.amazonaws.route53#NoSuchDelegationSet":
          throw await de_NoSuchDelegationSetRes(parsedOutput, context);
        case "TooManyHostedZones":
        case "com.amazonaws.route53#TooManyHostedZones":
          throw await de_TooManyHostedZonesRes(parsedOutput, context);
        case "InvalidArgument":
        case "com.amazonaws.route53#InvalidArgument":
          throw await de_InvalidArgumentRes(parsedOutput, context);
        case "InvalidKeySigningKeyName":
        case "com.amazonaws.route53#InvalidKeySigningKeyName":
          throw await de_InvalidKeySigningKeyNameRes(parsedOutput, context);
        case "KeySigningKeyAlreadyExists":
        case "com.amazonaws.route53#KeySigningKeyAlreadyExists":
          throw await de_KeySigningKeyAlreadyExistsRes(parsedOutput, context);
        case "TooManyKeySigningKeys":
        case "com.amazonaws.route53#TooManyKeySigningKeys":
          throw await de_TooManyKeySigningKeysRes(parsedOutput, context);
        case "InsufficientCloudWatchLogsResourcePolicy":
        case "com.amazonaws.route53#InsufficientCloudWatchLogsResourcePolicy":
          throw await de_InsufficientCloudWatchLogsResourcePolicyRes(parsedOutput, context);
        case "NoSuchCloudWatchLogsLogGroup":
        case "com.amazonaws.route53#NoSuchCloudWatchLogsLogGroup":
          throw await de_NoSuchCloudWatchLogsLogGroupRes(parsedOutput, context);
        case "QueryLoggingConfigAlreadyExists":
        case "com.amazonaws.route53#QueryLoggingConfigAlreadyExists":
          throw await de_QueryLoggingConfigAlreadyExistsRes(parsedOutput, context);
        case "DelegationSetAlreadyCreated":
        case "com.amazonaws.route53#DelegationSetAlreadyCreated":
          throw await de_DelegationSetAlreadyCreatedRes(parsedOutput, context);
        case "DelegationSetAlreadyReusable":
        case "com.amazonaws.route53#DelegationSetAlreadyReusable":
          throw await de_DelegationSetAlreadyReusableRes(parsedOutput, context);
        case "HostedZoneNotFound":
        case "com.amazonaws.route53#HostedZoneNotFound":
          throw await de_HostedZoneNotFoundRes(parsedOutput, context);
        case "InvalidTrafficPolicyDocument":
        case "com.amazonaws.route53#InvalidTrafficPolicyDocument":
          throw await de_InvalidTrafficPolicyDocumentRes(parsedOutput, context);
        case "TooManyTrafficPolicies":
        case "com.amazonaws.route53#TooManyTrafficPolicies":
          throw await de_TooManyTrafficPoliciesRes(parsedOutput, context);
        case "TrafficPolicyAlreadyExists":
        case "com.amazonaws.route53#TrafficPolicyAlreadyExists":
          throw await de_TrafficPolicyAlreadyExistsRes(parsedOutput, context);
        case "NoSuchTrafficPolicy":
        case "com.amazonaws.route53#NoSuchTrafficPolicy":
          throw await de_NoSuchTrafficPolicyRes(parsedOutput, context);
        case "TooManyTrafficPolicyInstances":
        case "com.amazonaws.route53#TooManyTrafficPolicyInstances":
          throw await de_TooManyTrafficPolicyInstancesRes(parsedOutput, context);
        case "TrafficPolicyInstanceAlreadyExists":
        case "com.amazonaws.route53#TrafficPolicyInstanceAlreadyExists":
          throw await de_TrafficPolicyInstanceAlreadyExistsRes(parsedOutput, context);
        case "TooManyTrafficPolicyVersionsForCurrentPolicy":
        case "com.amazonaws.route53#TooManyTrafficPolicyVersionsForCurrentPolicy":
          throw await de_TooManyTrafficPolicyVersionsForCurrentPolicyRes(parsedOutput, context);
        case "TooManyVPCAssociationAuthorizations":
        case "com.amazonaws.route53#TooManyVPCAssociationAuthorizations":
          throw await de_TooManyVPCAssociationAuthorizationsRes(parsedOutput, context);
        case "KeySigningKeyInParentDSRecord":
        case "com.amazonaws.route53#KeySigningKeyInParentDSRecord":
          throw await de_KeySigningKeyInParentDSRecordRes(parsedOutput, context);
        case "KeySigningKeyInUse":
        case "com.amazonaws.route53#KeySigningKeyInUse":
          throw await de_KeySigningKeyInUseRes(parsedOutput, context);
        case "CidrCollectionInUseException":
        case "com.amazonaws.route53#CidrCollectionInUseException":
          throw await de_CidrCollectionInUseExceptionRes(parsedOutput, context);
        case "HealthCheckInUse":
        case "com.amazonaws.route53#HealthCheckInUse":
          throw await de_HealthCheckInUseRes(parsedOutput, context);
        case "HostedZoneNotEmpty":
        case "com.amazonaws.route53#HostedZoneNotEmpty":
          throw await de_HostedZoneNotEmptyRes(parsedOutput, context);
        case "NoSuchQueryLoggingConfig":
        case "com.amazonaws.route53#NoSuchQueryLoggingConfig":
          throw await de_NoSuchQueryLoggingConfigRes(parsedOutput, context);
        case "DelegationSetInUse":
        case "com.amazonaws.route53#DelegationSetInUse":
          throw await de_DelegationSetInUseRes(parsedOutput, context);
        case "TrafficPolicyInUse":
        case "com.amazonaws.route53#TrafficPolicyInUse":
          throw await de_TrafficPolicyInUseRes(parsedOutput, context);
        case "NoSuchTrafficPolicyInstance":
        case "com.amazonaws.route53#NoSuchTrafficPolicyInstance":
          throw await de_NoSuchTrafficPolicyInstanceRes(parsedOutput, context);
        case "VPCAssociationAuthorizationNotFound":
        case "com.amazonaws.route53#VPCAssociationAuthorizationNotFound":
          throw await de_VPCAssociationAuthorizationNotFoundRes(parsedOutput, context);
        case "DNSSECNotFound":
        case "com.amazonaws.route53#DNSSECNotFound":
          throw await de_DNSSECNotFoundRes(parsedOutput, context);
        case "LastVPCAssociation":
        case "com.amazonaws.route53#LastVPCAssociation":
          throw await de_LastVPCAssociationRes(parsedOutput, context);
        case "VPCAssociationNotFound":
        case "com.amazonaws.route53#VPCAssociationNotFound":
          throw await de_VPCAssociationNotFoundRes(parsedOutput, context);
        case "HostedZonePartiallyDelegated":
        case "com.amazonaws.route53#HostedZonePartiallyDelegated":
          throw await de_HostedZonePartiallyDelegatedRes(parsedOutput, context);
        case "KeySigningKeyWithActiveStatusNotFound":
        case "com.amazonaws.route53#KeySigningKeyWithActiveStatusNotFound":
          throw await de_KeySigningKeyWithActiveStatusNotFoundRes(parsedOutput, context);
        case "NoSuchChange":
        case "com.amazonaws.route53#NoSuchChange":
          throw await de_NoSuchChangeRes(parsedOutput, context);
        case "NoSuchGeoLocation":
        case "com.amazonaws.route53#NoSuchGeoLocation":
          throw await de_NoSuchGeoLocationRes(parsedOutput, context);
        case "IncompatibleVersion":
        case "com.amazonaws.route53#IncompatibleVersion":
          throw await de_IncompatibleVersionRes(parsedOutput, context);
        case "HostedZoneNotPrivate":
        case "com.amazonaws.route53#HostedZoneNotPrivate":
          throw await de_HostedZoneNotPrivateRes(parsedOutput, context);
        case "NoSuchCidrLocationException":
        case "com.amazonaws.route53#NoSuchCidrLocationException":
          throw await de_NoSuchCidrLocationExceptionRes(parsedOutput, context);
        case "InvalidPaginationToken":
        case "com.amazonaws.route53#InvalidPaginationToken":
          throw await de_InvalidPaginationTokenRes(parsedOutput, context);
        case "HealthCheckVersionMismatch":
        case "com.amazonaws.route53#HealthCheckVersionMismatch":
          throw await de_HealthCheckVersionMismatchRes(parsedOutput, context);
        case "ConflictingTypes":
        case "com.amazonaws.route53#ConflictingTypes":
          throw await de_ConflictingTypesRes(parsedOutput, context);
        default:
          const parsedBody = parsedOutput.body;
          return throwDefaultError3({
            output,
            parsedBody: parsedBody.Error,
            errorCode
          });
      }
    }, "de_CommandError");
    var throwDefaultError3 = (0, import_smithy_client28.withBaseException)(Route53ServiceException);
    var de_CidrBlockInUseExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(data3[_Me]);
      }
      const exception = new CidrBlockInUseException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_CidrBlockInUseExceptionRes");
    var de_CidrCollectionAlreadyExistsExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(data3[_Me]);
      }
      const exception = new CidrCollectionAlreadyExistsException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_CidrCollectionAlreadyExistsExceptionRes");
    var de_CidrCollectionInUseExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(data3[_Me]);
      }
      const exception = new CidrCollectionInUseException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_CidrCollectionInUseExceptionRes");
    var de_CidrCollectionVersionMismatchExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(data3[_Me]);
      }
      const exception = new CidrCollectionVersionMismatchException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_CidrCollectionVersionMismatchExceptionRes");
    var de_ConcurrentModificationRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new ConcurrentModification({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_ConcurrentModificationRes");
    var de_ConflictingDomainExistsRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new ConflictingDomainExists({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_ConflictingDomainExistsRes");
    var de_ConflictingTypesRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new ConflictingTypes({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_ConflictingTypesRes");
    var de_DelegationSetAlreadyCreatedRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new DelegationSetAlreadyCreated({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_DelegationSetAlreadyCreatedRes");
    var de_DelegationSetAlreadyReusableRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new DelegationSetAlreadyReusable({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_DelegationSetAlreadyReusableRes");
    var de_DelegationSetInUseRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new DelegationSetInUse({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_DelegationSetInUseRes");
    var de_DelegationSetNotAvailableRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new DelegationSetNotAvailable({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_DelegationSetNotAvailableRes");
    var de_DelegationSetNotReusableRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new DelegationSetNotReusable({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_DelegationSetNotReusableRes");
    var de_DNSSECNotFoundRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new DNSSECNotFound({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_DNSSECNotFoundRes");
    var de_HealthCheckAlreadyExistsRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new HealthCheckAlreadyExists({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_HealthCheckAlreadyExistsRes");
    var de_HealthCheckInUseRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new HealthCheckInUse({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_HealthCheckInUseRes");
    var de_HealthCheckVersionMismatchRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new HealthCheckVersionMismatch({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_HealthCheckVersionMismatchRes");
    var de_HostedZoneAlreadyExistsRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new HostedZoneAlreadyExists({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_HostedZoneAlreadyExistsRes");
    var de_HostedZoneNotEmptyRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new HostedZoneNotEmpty({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_HostedZoneNotEmptyRes");
    var de_HostedZoneNotFoundRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new HostedZoneNotFound({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_HostedZoneNotFoundRes");
    var de_HostedZoneNotPrivateRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new HostedZoneNotPrivate({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_HostedZoneNotPrivateRes");
    var de_HostedZonePartiallyDelegatedRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new HostedZonePartiallyDelegated({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_HostedZonePartiallyDelegatedRes");
    var de_IncompatibleVersionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new IncompatibleVersion({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_IncompatibleVersionRes");
    var de_InsufficientCloudWatchLogsResourcePolicyRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new InsufficientCloudWatchLogsResourcePolicy({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_InsufficientCloudWatchLogsResourcePolicyRes");
    var de_InvalidArgumentRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new InvalidArgument({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_InvalidArgumentRes");
    var de_InvalidChangeBatchRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      if (data3.messages === "") {
        contents[_mess] = [];
      } else if (data3[_mess] != null && data3[_mess][_Me] != null) {
        contents[_mess] = de_ErrorMessages((0, import_smithy_client28.getArrayIfSingleItem)(data3[_mess][_Me]), context);
      }
      const exception = new InvalidChangeBatch({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_InvalidChangeBatchRes");
    var de_InvalidDomainNameRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new InvalidDomainName({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_InvalidDomainNameRes");
    var de_InvalidInputRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new InvalidInput({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_InvalidInputRes");
    var de_InvalidKeySigningKeyNameRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new InvalidKeySigningKeyName({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_InvalidKeySigningKeyNameRes");
    var de_InvalidKeySigningKeyStatusRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new InvalidKeySigningKeyStatus({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_InvalidKeySigningKeyStatusRes");
    var de_InvalidKMSArnRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new InvalidKMSArn({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_InvalidKMSArnRes");
    var de_InvalidPaginationTokenRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new InvalidPaginationToken({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_InvalidPaginationTokenRes");
    var de_InvalidSigningStatusRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new InvalidSigningStatus({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_InvalidSigningStatusRes");
    var de_InvalidTrafficPolicyDocumentRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new InvalidTrafficPolicyDocument({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_InvalidTrafficPolicyDocumentRes");
    var de_InvalidVPCIdRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new InvalidVPCId({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_InvalidVPCIdRes");
    var de_KeySigningKeyAlreadyExistsRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new KeySigningKeyAlreadyExists({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_KeySigningKeyAlreadyExistsRes");
    var de_KeySigningKeyInParentDSRecordRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new KeySigningKeyInParentDSRecord({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_KeySigningKeyInParentDSRecordRes");
    var de_KeySigningKeyInUseRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new KeySigningKeyInUse({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_KeySigningKeyInUseRes");
    var de_KeySigningKeyWithActiveStatusNotFoundRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new KeySigningKeyWithActiveStatusNotFound({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_KeySigningKeyWithActiveStatusNotFoundRes");
    var de_LastVPCAssociationRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new LastVPCAssociation({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_LastVPCAssociationRes");
    var de_LimitsExceededRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new LimitsExceeded({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_LimitsExceededRes");
    var de_NoSuchChangeRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new NoSuchChange({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_NoSuchChangeRes");
    var de_NoSuchCidrCollectionExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(data3[_Me]);
      }
      const exception = new NoSuchCidrCollectionException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_NoSuchCidrCollectionExceptionRes");
    var de_NoSuchCidrLocationExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(data3[_Me]);
      }
      const exception = new NoSuchCidrLocationException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_NoSuchCidrLocationExceptionRes");
    var de_NoSuchCloudWatchLogsLogGroupRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new NoSuchCloudWatchLogsLogGroup({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_NoSuchCloudWatchLogsLogGroupRes");
    var de_NoSuchDelegationSetRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new NoSuchDelegationSet({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_NoSuchDelegationSetRes");
    var de_NoSuchGeoLocationRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new NoSuchGeoLocation({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_NoSuchGeoLocationRes");
    var de_NoSuchHealthCheckRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new NoSuchHealthCheck({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_NoSuchHealthCheckRes");
    var de_NoSuchHostedZoneRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new NoSuchHostedZone({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_NoSuchHostedZoneRes");
    var de_NoSuchKeySigningKeyRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new NoSuchKeySigningKey({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_NoSuchKeySigningKeyRes");
    var de_NoSuchQueryLoggingConfigRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new NoSuchQueryLoggingConfig({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_NoSuchQueryLoggingConfigRes");
    var de_NoSuchTrafficPolicyRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new NoSuchTrafficPolicy({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_NoSuchTrafficPolicyRes");
    var de_NoSuchTrafficPolicyInstanceRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new NoSuchTrafficPolicyInstance({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_NoSuchTrafficPolicyInstanceRes");
    var de_NotAuthorizedExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new NotAuthorizedException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_NotAuthorizedExceptionRes");
    var de_PriorRequestNotCompleteRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new PriorRequestNotComplete({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_PriorRequestNotCompleteRes");
    var de_PublicZoneVPCAssociationRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new PublicZoneVPCAssociation({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_PublicZoneVPCAssociationRes");
    var de_QueryLoggingConfigAlreadyExistsRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new QueryLoggingConfigAlreadyExists({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_QueryLoggingConfigAlreadyExistsRes");
    var de_ThrottlingExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new ThrottlingException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_ThrottlingExceptionRes");
    var de_TooManyHealthChecksRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new TooManyHealthChecks({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_TooManyHealthChecksRes");
    var de_TooManyHostedZonesRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new TooManyHostedZones({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_TooManyHostedZonesRes");
    var de_TooManyKeySigningKeysRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new TooManyKeySigningKeys({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_TooManyKeySigningKeysRes");
    var de_TooManyTrafficPoliciesRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new TooManyTrafficPolicies({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_TooManyTrafficPoliciesRes");
    var de_TooManyTrafficPolicyInstancesRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new TooManyTrafficPolicyInstances({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_TooManyTrafficPolicyInstancesRes");
    var de_TooManyTrafficPolicyVersionsForCurrentPolicyRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new TooManyTrafficPolicyVersionsForCurrentPolicy({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_TooManyTrafficPolicyVersionsForCurrentPolicyRes");
    var de_TooManyVPCAssociationAuthorizationsRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new TooManyVPCAssociationAuthorizations({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_TooManyVPCAssociationAuthorizationsRes");
    var de_TrafficPolicyAlreadyExistsRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new TrafficPolicyAlreadyExists({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_TrafficPolicyAlreadyExistsRes");
    var de_TrafficPolicyInstanceAlreadyExistsRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new TrafficPolicyInstanceAlreadyExists({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_TrafficPolicyInstanceAlreadyExistsRes");
    var de_TrafficPolicyInUseRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new TrafficPolicyInUse({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_TrafficPolicyInUseRes");
    var de_VPCAssociationAuthorizationNotFoundRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new VPCAssociationAuthorizationNotFound({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_VPCAssociationAuthorizationNotFoundRes");
    var de_VPCAssociationNotFoundRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const contents = (0, import_smithy_client28.map)({});
      const data3 = parsedOutput.body.Error;
      if (data3[_mes] != null) {
        contents[_mes] = (0, import_smithy_client28.expectString)(data3[_mes]);
      }
      const exception = new VPCAssociationNotFound({
        $metadata: deserializeMetadata3(parsedOutput),
        ...contents
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, parsedOutput.body.Error);
    }, "de_VPCAssociationNotFoundRes");
    var se_AlarmIdentifier = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_AI);
      if (input[_Re] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_CWR, input[_Re]).n(_Re));
      }
      if (input[_N] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_AN, input[_N]).n(_N));
      }
      return bn;
    }, "se_AlarmIdentifier");
    var se_AliasTarget = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_ATl);
      if (input[_HZI] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_RI, input[_HZI]).n(_HZI));
      }
      bn.cc(input, _DNSN);
      if (input[_ETH] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_AHE, String(input[_ETH])).n(_ETH));
      }
      return bn;
    }, "se_AliasTarget");
    var se_Change = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_Cha);
      if (input[_A2] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_CA2, input[_A2]).n(_A2));
      }
      if (input[_RRSe] != null) {
        bn.c(se_ResourceRecordSet(input[_RRSe], context).n(_RRSe));
      }
      return bn;
    }, "se_Change");
    var se_ChangeBatch = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_CB);
      if (input[_C2] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_RD, input[_C2]).n(_C2));
      }
      bn.lc(input, "Changes", "Changes", () => se_Changes(input[_Ch], context));
      return bn;
    }, "se_ChangeBatch");
    var se_Changes = /* @__PURE__ */ __name2((input, context) => {
      return input.filter((e3) => e3 != null).map((entry) => {
        const n3 = se_Change(entry, context);
        return n3.n(_Cha);
      });
    }, "se_Changes");
    var se_ChildHealthCheckList = /* @__PURE__ */ __name2((input, context) => {
      return input.filter((e3) => e3 != null).map((entry) => {
        const n3 = import_xml_builder2.XmlNode.of(_HCI, entry);
        return n3.n(_CHCh);
      });
    }, "se_ChildHealthCheckList");
    var se_CidrCollectionChange = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_CCC);
      if (input[_LN] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_CLNDNA, input[_LN]).n(_LN));
      }
      if (input[_A2] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_CCCA, input[_A2]).n(_A2));
      }
      bn.lc(input, "CidrList", "CidrList", () => se_CidrList(input[_CLi], context));
      return bn;
    }, "se_CidrCollectionChange");
    var se_CidrCollectionChanges = /* @__PURE__ */ __name2((input, context) => {
      return input.filter((e3) => e3 != null).map((entry) => {
        const n3 = se_CidrCollectionChange(entry, context);
        return n3.n(_me);
      });
    }, "se_CidrCollectionChanges");
    var se_CidrList = /* @__PURE__ */ __name2((input, context) => {
      return input.filter((e3) => e3 != null).map((entry) => {
        const n3 = import_xml_builder2.XmlNode.of(_Ci, entry);
        return n3.n(_Ci);
      });
    }, "se_CidrList");
    var se_CidrRoutingConfig = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_CRC);
      if (input[_CIo] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_UUID, input[_CIo]).n(_CIo));
      }
      if (input[_LN] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_CLNDA, input[_LN]).n(_LN));
      }
      return bn;
    }, "se_CidrRoutingConfig");
    var se_Coordinates = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_Coo);
      bn.cc(input, _La);
      bn.cc(input, _Lo);
      return bn;
    }, "se_Coordinates");
    var se_GeoLocation = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_GL);
      if (input[_CC] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_GLCC, input[_CC]).n(_CC));
      }
      if (input[_CCo] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_GLCCe, input[_CCo]).n(_CCo));
      }
      if (input[_SC] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_GLSC, input[_SC]).n(_SC));
      }
      return bn;
    }, "se_GeoLocation");
    var se_GeoProximityLocation = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_GPL);
      bn.cc(input, _AWSR);
      bn.cc(input, _LZG);
      if (input[_Coo] != null) {
        bn.c(se_Coordinates(input[_Coo], context).n(_Coo));
      }
      if (input[_B] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_B, String(input[_B])).n(_B));
      }
      return bn;
    }, "se_GeoProximityLocation");
    var se_HealthCheckConfig = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_HCC);
      bn.cc(input, _IPA);
      if (input[_P2] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_P2, String(input[_P2])).n(_P2));
      }
      if (input[_T2] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_HCT, input[_T2]).n(_T2));
      }
      bn.cc(input, _RP);
      bn.cc(input, _FQDN);
      bn.cc(input, _SS);
      if (input[_RIeq] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_RIeq, String(input[_RIeq])).n(_RIeq));
      }
      if (input[_FT] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_FT, String(input[_FT])).n(_FT));
      }
      if (input[_ML] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_ML, String(input[_ML])).n(_ML));
      }
      if (input[_I] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_I, String(input[_I])).n(_I));
      }
      if (input[_Di] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_Di, String(input[_Di])).n(_Di));
      }
      if (input[_HT] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_HT, String(input[_HT])).n(_HT));
      }
      bn.lc(input, "ChildHealthChecks", "ChildHealthChecks", () => se_ChildHealthCheckList(input[_CHC], context));
      if (input[_ESNI] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_ESNI, String(input[_ESNI])).n(_ESNI));
      }
      bn.lc(input, "Regions", "Regions", () => se_HealthCheckRegionList(input[_R], context));
      if (input[_AI] != null) {
        bn.c(se_AlarmIdentifier(input[_AI], context).n(_AI));
      }
      bn.cc(input, _IDHS);
      bn.cc(input, _RCA);
      return bn;
    }, "se_HealthCheckConfig");
    var se_HealthCheckRegionList = /* @__PURE__ */ __name2((input, context) => {
      return input.filter((e3) => e3 != null).map((entry) => {
        const n3 = import_xml_builder2.XmlNode.of(_HCR, entry);
        return n3.n(_Re);
      });
    }, "se_HealthCheckRegionList");
    var se_HostedZoneConfig = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_HZC);
      if (input[_C2] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_RD, input[_C2]).n(_C2));
      }
      if (input[_PZ] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_IPZ, String(input[_PZ])).n(_PZ));
      }
      return bn;
    }, "se_HostedZoneConfig");
    var se_ResettableElementNameList = /* @__PURE__ */ __name2((input, context) => {
      return input.filter((e3) => e3 != null).map((entry) => {
        const n3 = import_xml_builder2.XmlNode.of(_REN, entry);
        return n3.n(_REN);
      });
    }, "se_ResettableElementNameList");
    var se_ResourceRecord = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_RR);
      if (input[_V2] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_RDa, input[_V2]).n(_V2));
      }
      return bn;
    }, "se_ResourceRecord");
    var se_ResourceRecords = /* @__PURE__ */ __name2((input, context) => {
      return input.filter((e3) => e3 != null).map((entry) => {
        const n3 = se_ResourceRecord(entry, context);
        return n3.n(_RR);
      });
    }, "se_ResourceRecords");
    var se_ResourceRecordSet = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_RRSe);
      if (input[_N] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_DNSN, input[_N]).n(_N));
      }
      if (input[_T2] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_RRT, input[_T2]).n(_T2));
      }
      if (input[_SI2] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_RRSI, input[_SI2]).n(_SI2));
      }
      if (input[_W] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_RRSW, String(input[_W])).n(_W));
      }
      if (input[_Re] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_RRSR, input[_Re]).n(_Re));
      }
      if (input[_GL] != null) {
        bn.c(se_GeoLocation(input[_GL], context).n(_GL));
      }
      if (input[_F] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_RRSF, input[_F]).n(_F));
      }
      if (input[_MVA] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_RRSMVA, String(input[_MVA])).n(_MVA));
      }
      if (input[_TTL] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_TTL, String(input[_TTL])).n(_TTL));
      }
      bn.lc(input, "ResourceRecords", "ResourceRecords", () => se_ResourceRecords(input[_RRe], context));
      if (input[_ATl] != null) {
        bn.c(se_AliasTarget(input[_ATl], context).n(_ATl));
      }
      bn.cc(input, _HCI);
      bn.cc(input, _TPII);
      if (input[_CRC] != null) {
        bn.c(se_CidrRoutingConfig(input[_CRC], context).n(_CRC));
      }
      if (input[_GPL] != null) {
        bn.c(se_GeoProximityLocation(input[_GPL], context).n(_GPL));
      }
      return bn;
    }, "se_ResourceRecordSet");
    var se_Tag2 = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_Ta);
      if (input[_K2] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_TK, input[_K2]).n(_K2));
      }
      if (input[_V2] != null) {
        bn.c(import_xml_builder2.XmlNode.of(_TV, input[_V2]).n(_V2));
      }
      return bn;
    }, "se_Tag");
    var se_TagKeyList = /* @__PURE__ */ __name2((input, context) => {
      return input.filter((e3) => e3 != null).map((entry) => {
        const n3 = import_xml_builder2.XmlNode.of(_TK, entry);
        return n3.n(_K2);
      });
    }, "se_TagKeyList");
    var se_TagList = /* @__PURE__ */ __name2((input, context) => {
      return input.filter((e3) => e3 != null).map((entry) => {
        const n3 = se_Tag2(entry, context);
        return n3.n(_Ta);
      });
    }, "se_TagList");
    var se_TagResourceIdList = /* @__PURE__ */ __name2((input, context) => {
      return input.filter((e3) => e3 != null).map((entry) => {
        const n3 = import_xml_builder2.XmlNode.of(_TRI, entry);
        return n3.n(_RI);
      });
    }, "se_TagResourceIdList");
    var se_VPC = /* @__PURE__ */ __name2((input, context) => {
      const bn = new import_xml_builder2.XmlNode(_VPC);
      bn.cc(input, _VPCR);
      bn.cc(input, _VPCI);
      return bn;
    }, "se_VPC");
    var de_AccountLimit = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_T2] != null) {
        contents[_T2] = (0, import_smithy_client28.expectString)(output[_T2]);
      }
      if (output[_V2] != null) {
        contents[_V2] = (0, import_smithy_client28.strictParseLong)(output[_V2]);
      }
      return contents;
    }, "de_AccountLimit");
    var de_AlarmIdentifier = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Re] != null) {
        contents[_Re] = (0, import_smithy_client28.expectString)(output[_Re]);
      }
      if (output[_N] != null) {
        contents[_N] = (0, import_smithy_client28.expectString)(output[_N]);
      }
      return contents;
    }, "de_AlarmIdentifier");
    var de_AliasTarget = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_HZI] != null) {
        contents[_HZI] = (0, import_smithy_client28.expectString)(output[_HZI]);
      }
      if (output[_DNSN] != null) {
        contents[_DNSN] = (0, import_smithy_client28.expectString)(output[_DNSN]);
      }
      if (output[_ETH] != null) {
        contents[_ETH] = (0, import_smithy_client28.parseBoolean)(output[_ETH]);
      }
      return contents;
    }, "de_AliasTarget");
    var de_ChangeInfo = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Id] != null) {
        contents[_Id] = (0, import_smithy_client28.expectString)(output[_Id]);
      }
      if (output[_S] != null) {
        contents[_S] = (0, import_smithy_client28.expectString)(output[_S]);
      }
      if (output[_SA] != null) {
        contents[_SA] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_SA]));
      }
      if (output[_C2] != null) {
        contents[_C2] = (0, import_smithy_client28.expectString)(output[_C2]);
      }
      return contents;
    }, "de_ChangeInfo");
    var de_CheckerIpRanges = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_CheckerIpRanges");
    var de_ChildHealthCheckList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_ChildHealthCheckList");
    var de_CidrBlockSummaries = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_CidrBlockSummary(entry, context);
      });
    }, "de_CidrBlockSummaries");
    var de_CidrBlockSummary = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_CBid] != null) {
        contents[_CBid] = (0, import_smithy_client28.expectString)(output[_CBid]);
      }
      if (output[_LN] != null) {
        contents[_LN] = (0, import_smithy_client28.expectString)(output[_LN]);
      }
      return contents;
    }, "de_CidrBlockSummary");
    var de_CidrCollection = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Ar2] != null) {
        contents[_Ar2] = (0, import_smithy_client28.expectString)(output[_Ar2]);
      }
      if (output[_Id] != null) {
        contents[_Id] = (0, import_smithy_client28.expectString)(output[_Id]);
      }
      if (output[_N] != null) {
        contents[_N] = (0, import_smithy_client28.expectString)(output[_N]);
      }
      if (output[_Ve] != null) {
        contents[_Ve] = (0, import_smithy_client28.strictParseLong)(output[_Ve]);
      }
      return contents;
    }, "de_CidrCollection");
    var de_CidrRoutingConfig = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_CIo] != null) {
        contents[_CIo] = (0, import_smithy_client28.expectString)(output[_CIo]);
      }
      if (output[_LN] != null) {
        contents[_LN] = (0, import_smithy_client28.expectString)(output[_LN]);
      }
      return contents;
    }, "de_CidrRoutingConfig");
    var de_CloudWatchAlarmConfiguration = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_EP] != null) {
        contents[_EP] = (0, import_smithy_client28.strictParseInt32)(output[_EP]);
      }
      if (output[_Th] != null) {
        contents[_Th] = (0, import_smithy_client28.strictParseFloat)(output[_Th]);
      }
      if (output[_CO] != null) {
        contents[_CO] = (0, import_smithy_client28.expectString)(output[_CO]);
      }
      if (output[_Pe] != null) {
        contents[_Pe] = (0, import_smithy_client28.strictParseInt32)(output[_Pe]);
      }
      if (output[_MN] != null) {
        contents[_MN] = (0, import_smithy_client28.expectString)(output[_MN]);
      }
      if (output[_Nam] != null) {
        contents[_Nam] = (0, import_smithy_client28.expectString)(output[_Nam]);
      }
      if (output[_St] != null) {
        contents[_St] = (0, import_smithy_client28.expectString)(output[_St]);
      }
      if (output.Dimensions === "") {
        contents[_Dim] = [];
      } else if (output[_Dim] != null && output[_Dim][_Dime] != null) {
        contents[_Dim] = de_DimensionList((0, import_smithy_client28.getArrayIfSingleItem)(output[_Dim][_Dime]), context);
      }
      return contents;
    }, "de_CloudWatchAlarmConfiguration");
    var de_CollectionSummaries = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_CollectionSummary(entry, context);
      });
    }, "de_CollectionSummaries");
    var de_CollectionSummary = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Ar2] != null) {
        contents[_Ar2] = (0, import_smithy_client28.expectString)(output[_Ar2]);
      }
      if (output[_Id] != null) {
        contents[_Id] = (0, import_smithy_client28.expectString)(output[_Id]);
      }
      if (output[_N] != null) {
        contents[_N] = (0, import_smithy_client28.expectString)(output[_N]);
      }
      if (output[_Ve] != null) {
        contents[_Ve] = (0, import_smithy_client28.strictParseLong)(output[_Ve]);
      }
      return contents;
    }, "de_CollectionSummary");
    var de_Coordinates = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_La] != null) {
        contents[_La] = (0, import_smithy_client28.expectString)(output[_La]);
      }
      if (output[_Lo] != null) {
        contents[_Lo] = (0, import_smithy_client28.expectString)(output[_Lo]);
      }
      return contents;
    }, "de_Coordinates");
    var de_DelegationSet = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Id] != null) {
        contents[_Id] = (0, import_smithy_client28.expectString)(output[_Id]);
      }
      if (output[_CR] != null) {
        contents[_CR] = (0, import_smithy_client28.expectString)(output[_CR]);
      }
      if (output.NameServers === "") {
        contents[_NS] = [];
      } else if (output[_NS] != null && output[_NS][_NSa] != null) {
        contents[_NS] = de_DelegationSetNameServers((0, import_smithy_client28.getArrayIfSingleItem)(output[_NS][_NSa]), context);
      }
      return contents;
    }, "de_DelegationSet");
    var de_DelegationSetNameServers = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_DelegationSetNameServers");
    var de_DelegationSets = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_DelegationSet(entry, context);
      });
    }, "de_DelegationSets");
    var de_Dimension = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_N] != null) {
        contents[_N] = (0, import_smithy_client28.expectString)(output[_N]);
      }
      if (output[_V2] != null) {
        contents[_V2] = (0, import_smithy_client28.expectString)(output[_V2]);
      }
      return contents;
    }, "de_Dimension");
    var de_DimensionList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Dimension(entry, context);
      });
    }, "de_DimensionList");
    var de_DNSSECStatus = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_SSe] != null) {
        contents[_SSe] = (0, import_smithy_client28.expectString)(output[_SSe]);
      }
      if (output[_SM] != null) {
        contents[_SM] = (0, import_smithy_client28.expectString)(output[_SM]);
      }
      return contents;
    }, "de_DNSSECStatus");
    var de_ErrorMessages = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_ErrorMessages");
    var de_GeoLocation = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_CC] != null) {
        contents[_CC] = (0, import_smithy_client28.expectString)(output[_CC]);
      }
      if (output[_CCo] != null) {
        contents[_CCo] = (0, import_smithy_client28.expectString)(output[_CCo]);
      }
      if (output[_SC] != null) {
        contents[_SC] = (0, import_smithy_client28.expectString)(output[_SC]);
      }
      return contents;
    }, "de_GeoLocation");
    var de_GeoLocationDetails = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_CC] != null) {
        contents[_CC] = (0, import_smithy_client28.expectString)(output[_CC]);
      }
      if (output[_CNon] != null) {
        contents[_CNon] = (0, import_smithy_client28.expectString)(output[_CNon]);
      }
      if (output[_CCo] != null) {
        contents[_CCo] = (0, import_smithy_client28.expectString)(output[_CCo]);
      }
      if (output[_CNou] != null) {
        contents[_CNou] = (0, import_smithy_client28.expectString)(output[_CNou]);
      }
      if (output[_SC] != null) {
        contents[_SC] = (0, import_smithy_client28.expectString)(output[_SC]);
      }
      if (output[_SN2] != null) {
        contents[_SN2] = (0, import_smithy_client28.expectString)(output[_SN2]);
      }
      return contents;
    }, "de_GeoLocationDetails");
    var de_GeoLocationDetailsList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_GeoLocationDetails(entry, context);
      });
    }, "de_GeoLocationDetailsList");
    var de_GeoProximityLocation = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_AWSR] != null) {
        contents[_AWSR] = (0, import_smithy_client28.expectString)(output[_AWSR]);
      }
      if (output[_LZG] != null) {
        contents[_LZG] = (0, import_smithy_client28.expectString)(output[_LZG]);
      }
      if (output[_Coo] != null) {
        contents[_Coo] = de_Coordinates(output[_Coo], context);
      }
      if (output[_B] != null) {
        contents[_B] = (0, import_smithy_client28.strictParseInt32)(output[_B]);
      }
      return contents;
    }, "de_GeoProximityLocation");
    var de_HealthCheck = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Id] != null) {
        contents[_Id] = (0, import_smithy_client28.expectString)(output[_Id]);
      }
      if (output[_CR] != null) {
        contents[_CR] = (0, import_smithy_client28.expectString)(output[_CR]);
      }
      if (output[_LS] != null) {
        contents[_LS] = de_LinkedService(output[_LS], context);
      }
      if (output[_HCC] != null) {
        contents[_HCC] = de_HealthCheckConfig(output[_HCC], context);
      }
      if (output[_HCV] != null) {
        contents[_HCV] = (0, import_smithy_client28.strictParseLong)(output[_HCV]);
      }
      if (output[_CWAC] != null) {
        contents[_CWAC] = de_CloudWatchAlarmConfiguration(output[_CWAC], context);
      }
      return contents;
    }, "de_HealthCheck");
    var de_HealthCheckConfig = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_IPA] != null) {
        contents[_IPA] = (0, import_smithy_client28.expectString)(output[_IPA]);
      }
      if (output[_P2] != null) {
        contents[_P2] = (0, import_smithy_client28.strictParseInt32)(output[_P2]);
      }
      if (output[_T2] != null) {
        contents[_T2] = (0, import_smithy_client28.expectString)(output[_T2]);
      }
      if (output[_RP] != null) {
        contents[_RP] = (0, import_smithy_client28.expectString)(output[_RP]);
      }
      if (output[_FQDN] != null) {
        contents[_FQDN] = (0, import_smithy_client28.expectString)(output[_FQDN]);
      }
      if (output[_SS] != null) {
        contents[_SS] = (0, import_smithy_client28.expectString)(output[_SS]);
      }
      if (output[_RIeq] != null) {
        contents[_RIeq] = (0, import_smithy_client28.strictParseInt32)(output[_RIeq]);
      }
      if (output[_FT] != null) {
        contents[_FT] = (0, import_smithy_client28.strictParseInt32)(output[_FT]);
      }
      if (output[_ML] != null) {
        contents[_ML] = (0, import_smithy_client28.parseBoolean)(output[_ML]);
      }
      if (output[_I] != null) {
        contents[_I] = (0, import_smithy_client28.parseBoolean)(output[_I]);
      }
      if (output[_Di] != null) {
        contents[_Di] = (0, import_smithy_client28.parseBoolean)(output[_Di]);
      }
      if (output[_HT] != null) {
        contents[_HT] = (0, import_smithy_client28.strictParseInt32)(output[_HT]);
      }
      if (output.ChildHealthChecks === "") {
        contents[_CHC] = [];
      } else if (output[_CHC] != null && output[_CHC][_CHCh] != null) {
        contents[_CHC] = de_ChildHealthCheckList((0, import_smithy_client28.getArrayIfSingleItem)(output[_CHC][_CHCh]), context);
      }
      if (output[_ESNI] != null) {
        contents[_ESNI] = (0, import_smithy_client28.parseBoolean)(output[_ESNI]);
      }
      if (output.Regions === "") {
        contents[_R] = [];
      } else if (output[_R] != null && output[_R][_Re] != null) {
        contents[_R] = de_HealthCheckRegionList((0, import_smithy_client28.getArrayIfSingleItem)(output[_R][_Re]), context);
      }
      if (output[_AI] != null) {
        contents[_AI] = de_AlarmIdentifier(output[_AI], context);
      }
      if (output[_IDHS] != null) {
        contents[_IDHS] = (0, import_smithy_client28.expectString)(output[_IDHS]);
      }
      if (output[_RCA] != null) {
        contents[_RCA] = (0, import_smithy_client28.expectString)(output[_RCA]);
      }
      return contents;
    }, "de_HealthCheckConfig");
    var de_HealthCheckObservation = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Re] != null) {
        contents[_Re] = (0, import_smithy_client28.expectString)(output[_Re]);
      }
      if (output[_IPA] != null) {
        contents[_IPA] = (0, import_smithy_client28.expectString)(output[_IPA]);
      }
      if (output[_SR] != null) {
        contents[_SR] = de_StatusReport(output[_SR], context);
      }
      return contents;
    }, "de_HealthCheckObservation");
    var de_HealthCheckObservations = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_HealthCheckObservation(entry, context);
      });
    }, "de_HealthCheckObservations");
    var de_HealthCheckRegionList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_HealthCheckRegionList");
    var de_HealthChecks = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_HealthCheck(entry, context);
      });
    }, "de_HealthChecks");
    var de_HostedZone = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Id] != null) {
        contents[_Id] = (0, import_smithy_client28.expectString)(output[_Id]);
      }
      if (output[_N] != null) {
        contents[_N] = (0, import_smithy_client28.expectString)(output[_N]);
      }
      if (output[_CR] != null) {
        contents[_CR] = (0, import_smithy_client28.expectString)(output[_CR]);
      }
      if (output[_Con] != null) {
        contents[_Con] = de_HostedZoneConfig(output[_Con], context);
      }
      if (output[_RRSC] != null) {
        contents[_RRSC] = (0, import_smithy_client28.strictParseLong)(output[_RRSC]);
      }
      if (output[_LS] != null) {
        contents[_LS] = de_LinkedService(output[_LS], context);
      }
      return contents;
    }, "de_HostedZone");
    var de_HostedZoneConfig = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_C2] != null) {
        contents[_C2] = (0, import_smithy_client28.expectString)(output[_C2]);
      }
      if (output[_PZ] != null) {
        contents[_PZ] = (0, import_smithy_client28.parseBoolean)(output[_PZ]);
      }
      return contents;
    }, "de_HostedZoneConfig");
    var de_HostedZoneLimit = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_T2] != null) {
        contents[_T2] = (0, import_smithy_client28.expectString)(output[_T2]);
      }
      if (output[_V2] != null) {
        contents[_V2] = (0, import_smithy_client28.strictParseLong)(output[_V2]);
      }
      return contents;
    }, "de_HostedZoneLimit");
    var de_HostedZoneOwner = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_OA] != null) {
        contents[_OA] = (0, import_smithy_client28.expectString)(output[_OA]);
      }
      if (output[_OS] != null) {
        contents[_OS] = (0, import_smithy_client28.expectString)(output[_OS]);
      }
      return contents;
    }, "de_HostedZoneOwner");
    var de_HostedZones = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_HostedZone(entry, context);
      });
    }, "de_HostedZones");
    var de_HostedZoneSummaries = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_HostedZoneSummary(entry, context);
      });
    }, "de_HostedZoneSummaries");
    var de_HostedZoneSummary = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_HZI] != null) {
        contents[_HZI] = (0, import_smithy_client28.expectString)(output[_HZI]);
      }
      if (output[_N] != null) {
        contents[_N] = (0, import_smithy_client28.expectString)(output[_N]);
      }
      if (output[_O] != null) {
        contents[_O] = de_HostedZoneOwner(output[_O], context);
      }
      return contents;
    }, "de_HostedZoneSummary");
    var de_KeySigningKey = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_N] != null) {
        contents[_N] = (0, import_smithy_client28.expectString)(output[_N]);
      }
      if (output[_KA] != null) {
        contents[_KA] = (0, import_smithy_client28.expectString)(output[_KA]);
      }
      if (output[_Fl] != null) {
        contents[_Fl] = (0, import_smithy_client28.strictParseInt32)(output[_Fl]);
      }
      if (output[_SAM] != null) {
        contents[_SAM] = (0, import_smithy_client28.expectString)(output[_SAM]);
      }
      if (output[_SAT] != null) {
        contents[_SAT] = (0, import_smithy_client28.strictParseInt32)(output[_SAT]);
      }
      if (output[_DAM] != null) {
        contents[_DAM] = (0, import_smithy_client28.expectString)(output[_DAM]);
      }
      if (output[_DAT] != null) {
        contents[_DAT] = (0, import_smithy_client28.strictParseInt32)(output[_DAT]);
      }
      if (output[_KT] != null) {
        contents[_KT] = (0, import_smithy_client28.strictParseInt32)(output[_KT]);
      }
      if (output[_DV] != null) {
        contents[_DV] = (0, import_smithy_client28.expectString)(output[_DV]);
      }
      if (output[_PK] != null) {
        contents[_PK] = (0, import_smithy_client28.expectString)(output[_PK]);
      }
      if (output[_DSR] != null) {
        contents[_DSR] = (0, import_smithy_client28.expectString)(output[_DSR]);
      }
      if (output[_DNSKEYR] != null) {
        contents[_DNSKEYR] = (0, import_smithy_client28.expectString)(output[_DNSKEYR]);
      }
      if (output[_S] != null) {
        contents[_S] = (0, import_smithy_client28.expectString)(output[_S]);
      }
      if (output[_SM] != null) {
        contents[_SM] = (0, import_smithy_client28.expectString)(output[_SM]);
      }
      if (output[_CD] != null) {
        contents[_CD] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_CD]));
      }
      if (output[_LMD] != null) {
        contents[_LMD] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_LMD]));
      }
      return contents;
    }, "de_KeySigningKey");
    var de_KeySigningKeys = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_KeySigningKey(entry, context);
      });
    }, "de_KeySigningKeys");
    var de_LinkedService = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_SP] != null) {
        contents[_SP] = (0, import_smithy_client28.expectString)(output[_SP]);
      }
      if (output[_De] != null) {
        contents[_De] = (0, import_smithy_client28.expectString)(output[_De]);
      }
      return contents;
    }, "de_LinkedService");
    var de_LocationSummaries = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_LocationSummary(entry, context);
      });
    }, "de_LocationSummaries");
    var de_LocationSummary = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_LN] != null) {
        contents[_LN] = (0, import_smithy_client28.expectString)(output[_LN]);
      }
      return contents;
    }, "de_LocationSummary");
    var de_QueryLoggingConfig = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Id] != null) {
        contents[_Id] = (0, import_smithy_client28.expectString)(output[_Id]);
      }
      if (output[_HZI] != null) {
        contents[_HZI] = (0, import_smithy_client28.expectString)(output[_HZI]);
      }
      if (output[_CWLLGA] != null) {
        contents[_CWLLGA] = (0, import_smithy_client28.expectString)(output[_CWLLGA]);
      }
      return contents;
    }, "de_QueryLoggingConfig");
    var de_QueryLoggingConfigs = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_QueryLoggingConfig(entry, context);
      });
    }, "de_QueryLoggingConfigs");
    var de_RecordData = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return (0, import_smithy_client28.expectString)(entry);
      });
    }, "de_RecordData");
    var de_ResourceRecord = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_V2] != null) {
        contents[_V2] = (0, import_smithy_client28.expectString)(output[_V2]);
      }
      return contents;
    }, "de_ResourceRecord");
    var de_ResourceRecords = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ResourceRecord(entry, context);
      });
    }, "de_ResourceRecords");
    var de_ResourceRecordSet = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_N] != null) {
        contents[_N] = (0, import_smithy_client28.expectString)(output[_N]);
      }
      if (output[_T2] != null) {
        contents[_T2] = (0, import_smithy_client28.expectString)(output[_T2]);
      }
      if (output[_SI2] != null) {
        contents[_SI2] = (0, import_smithy_client28.expectString)(output[_SI2]);
      }
      if (output[_W] != null) {
        contents[_W] = (0, import_smithy_client28.strictParseLong)(output[_W]);
      }
      if (output[_Re] != null) {
        contents[_Re] = (0, import_smithy_client28.expectString)(output[_Re]);
      }
      if (output[_GL] != null) {
        contents[_GL] = de_GeoLocation(output[_GL], context);
      }
      if (output[_F] != null) {
        contents[_F] = (0, import_smithy_client28.expectString)(output[_F]);
      }
      if (output[_MVA] != null) {
        contents[_MVA] = (0, import_smithy_client28.parseBoolean)(output[_MVA]);
      }
      if (output[_TTL] != null) {
        contents[_TTL] = (0, import_smithy_client28.strictParseLong)(output[_TTL]);
      }
      if (output.ResourceRecords === "") {
        contents[_RRe] = [];
      } else if (output[_RRe] != null && output[_RRe][_RR] != null) {
        contents[_RRe] = de_ResourceRecords((0, import_smithy_client28.getArrayIfSingleItem)(output[_RRe][_RR]), context);
      }
      if (output[_ATl] != null) {
        contents[_ATl] = de_AliasTarget(output[_ATl], context);
      }
      if (output[_HCI] != null) {
        contents[_HCI] = (0, import_smithy_client28.expectString)(output[_HCI]);
      }
      if (output[_TPII] != null) {
        contents[_TPII] = (0, import_smithy_client28.expectString)(output[_TPII]);
      }
      if (output[_CRC] != null) {
        contents[_CRC] = de_CidrRoutingConfig(output[_CRC], context);
      }
      if (output[_GPL] != null) {
        contents[_GPL] = de_GeoProximityLocation(output[_GPL], context);
      }
      return contents;
    }, "de_ResourceRecordSet");
    var de_ResourceRecordSets = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ResourceRecordSet(entry, context);
      });
    }, "de_ResourceRecordSets");
    var de_ResourceTagSet = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_RTe] != null) {
        contents[_RTe] = (0, import_smithy_client28.expectString)(output[_RTe]);
      }
      if (output[_RI] != null) {
        contents[_RI] = (0, import_smithy_client28.expectString)(output[_RI]);
      }
      if (output.Tags === "") {
        contents[_Tag] = [];
      } else if (output[_Tag] != null && output[_Tag][_Ta] != null) {
        contents[_Tag] = de_TagList((0, import_smithy_client28.getArrayIfSingleItem)(output[_Tag][_Ta]), context);
      }
      return contents;
    }, "de_ResourceTagSet");
    var de_ResourceTagSetList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ResourceTagSet(entry, context);
      });
    }, "de_ResourceTagSetList");
    var de_ReusableDelegationSetLimit = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_T2] != null) {
        contents[_T2] = (0, import_smithy_client28.expectString)(output[_T2]);
      }
      if (output[_V2] != null) {
        contents[_V2] = (0, import_smithy_client28.strictParseLong)(output[_V2]);
      }
      return contents;
    }, "de_ReusableDelegationSetLimit");
    var de_StatusReport = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_S] != null) {
        contents[_S] = (0, import_smithy_client28.expectString)(output[_S]);
      }
      if (output[_CT] != null) {
        contents[_CT] = (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseRfc3339DateTimeWithOffset)(output[_CT]));
      }
      return contents;
    }, "de_StatusReport");
    var de_Tag = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_K2] != null) {
        contents[_K2] = (0, import_smithy_client28.expectString)(output[_K2]);
      }
      if (output[_V2] != null) {
        contents[_V2] = (0, import_smithy_client28.expectString)(output[_V2]);
      }
      return contents;
    }, "de_Tag");
    var de_TagList = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Tag(entry, context);
      });
    }, "de_TagList");
    var de_TrafficPolicies = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TrafficPolicy(entry, context);
      });
    }, "de_TrafficPolicies");
    var de_TrafficPolicy = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Id] != null) {
        contents[_Id] = (0, import_smithy_client28.expectString)(output[_Id]);
      }
      if (output[_Ve] != null) {
        contents[_Ve] = (0, import_smithy_client28.strictParseInt32)(output[_Ve]);
      }
      if (output[_N] != null) {
        contents[_N] = (0, import_smithy_client28.expectString)(output[_N]);
      }
      if (output[_T2] != null) {
        contents[_T2] = (0, import_smithy_client28.expectString)(output[_T2]);
      }
      if (output[_D] != null) {
        contents[_D] = (0, import_smithy_client28.expectString)(output[_D]);
      }
      if (output[_C2] != null) {
        contents[_C2] = (0, import_smithy_client28.expectString)(output[_C2]);
      }
      return contents;
    }, "de_TrafficPolicy");
    var de_TrafficPolicyInstance = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Id] != null) {
        contents[_Id] = (0, import_smithy_client28.expectString)(output[_Id]);
      }
      if (output[_HZI] != null) {
        contents[_HZI] = (0, import_smithy_client28.expectString)(output[_HZI]);
      }
      if (output[_N] != null) {
        contents[_N] = (0, import_smithy_client28.expectString)(output[_N]);
      }
      if (output[_TTL] != null) {
        contents[_TTL] = (0, import_smithy_client28.strictParseLong)(output[_TTL]);
      }
      if (output[_Sta] != null) {
        contents[_Sta] = (0, import_smithy_client28.expectString)(output[_Sta]);
      }
      if (output[_Me] != null) {
        contents[_Me] = (0, import_smithy_client28.expectString)(output[_Me]);
      }
      if (output[_TPI] != null) {
        contents[_TPI] = (0, import_smithy_client28.expectString)(output[_TPI]);
      }
      if (output[_TPV] != null) {
        contents[_TPV] = (0, import_smithy_client28.strictParseInt32)(output[_TPV]);
      }
      if (output[_TPT] != null) {
        contents[_TPT] = (0, import_smithy_client28.expectString)(output[_TPT]);
      }
      return contents;
    }, "de_TrafficPolicyInstance");
    var de_TrafficPolicyInstances = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TrafficPolicyInstance(entry, context);
      });
    }, "de_TrafficPolicyInstances");
    var de_TrafficPolicySummaries = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_TrafficPolicySummary(entry, context);
      });
    }, "de_TrafficPolicySummaries");
    var de_TrafficPolicySummary = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_Id] != null) {
        contents[_Id] = (0, import_smithy_client28.expectString)(output[_Id]);
      }
      if (output[_N] != null) {
        contents[_N] = (0, import_smithy_client28.expectString)(output[_N]);
      }
      if (output[_T2] != null) {
        contents[_T2] = (0, import_smithy_client28.expectString)(output[_T2]);
      }
      if (output[_LV] != null) {
        contents[_LV] = (0, import_smithy_client28.strictParseInt32)(output[_LV]);
      }
      if (output[_TPCr] != null) {
        contents[_TPCr] = (0, import_smithy_client28.strictParseInt32)(output[_TPCr]);
      }
      return contents;
    }, "de_TrafficPolicySummary");
    var de_VPC = /* @__PURE__ */ __name2((output, context) => {
      const contents = {};
      if (output[_VPCR] != null) {
        contents[_VPCR] = (0, import_smithy_client28.expectString)(output[_VPCR]);
      }
      if (output[_VPCI] != null) {
        contents[_VPCI] = (0, import_smithy_client28.expectString)(output[_VPCI]);
      }
      return contents;
    }, "de_VPC");
    var de_VPCs = /* @__PURE__ */ __name2((output, context) => {
      return (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_VPC(entry, context);
      });
    }, "de_VPCs");
    var deserializeMetadata3 = /* @__PURE__ */ __name2((output) => ({
      httpStatusCode: output.statusCode,
      requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
      extendedRequestId: output.headers["x-amz-id-2"],
      cfId: output.headers["x-amz-cf-id"]
    }), "deserializeMetadata");
    var _A2 = "Action";
    var _AHE = "AliasHealthEnabled";
    var _AI = "AlarmIdentifier";
    var _AN = "AlarmName";
    var _AT = "AddTags";
    var _ATl = "AliasTarget";
    var _AVPCC = "AssociateVPCComment";
    var _AVPCWHZR = "AssociateVPCWithHostedZoneRequest";
    var _AWSR = "AWSRegion";
    var _Ar2 = "Arn";
    var _B = "Bias";
    var _C2 = "Comment";
    var _CA2 = "ChangeAction";
    var _CB = "ChangeBatch";
    var _CBi = "CidrBlocks";
    var _CBid = "CidrBlock";
    var _CC = "ContinentCode";
    var _CCC = "CidrCollectionChange";
    var _CCCA = "CidrCollectionChangeAction";
    var _CCCR = "ChangeCidrCollectionRequest";
    var _CCCRr = "CreateCidrCollectionRequest";
    var _CCi = "CidrCollections";
    var _CCo = "CountryCode";
    var _CD = "CreatedDate";
    var _CHC = "ChildHealthChecks";
    var _CHCR = "CreateHealthCheckRequest";
    var _CHCh = "ChildHealthCheck";
    var _CHZR = "CreateHostedZoneRequest";
    var _CI = "ChangeInfo";
    var _CIR = "CheckerIpRanges";
    var _CIo = "CollectionId";
    var _CKSKR = "CreateKeySigningKeyRequest";
    var _CL = "CidrLocations";
    var _CLNDA = "CidrLocationNameDefaultAllowed";
    var _CLNDNA = "CidrLocationNameDefaultNotAllowed";
    var _CLi = "CidrList";
    var _CN = "CidrNonce";
    var _CNo = "CollectionName";
    var _CNon = "ContinentName";
    var _CNou = "CountryName";
    var _CO = "ComparisonOperator";
    var _CQLCR = "CreateQueryLoggingConfigRequest";
    var _CR = "CallerReference";
    var _CRC = "CidrRoutingConfig";
    var _CRDSR = "CreateReusableDelegationSetRequest";
    var _CRRSR = "ChangeResourceRecordSetsRequest";
    var _CT = "CheckedTime";
    var _CTFRR = "ChangeTagsForResourceRequest";
    var _CTPIR = "CreateTrafficPolicyInstanceRequest";
    var _CTPR = "CreateTrafficPolicyRequest";
    var _CTPVR = "CreateTrafficPolicyVersionRequest";
    var _CV = "CollectionVersion";
    var _CVPCAAR = "CreateVPCAssociationAuthorizationRequest";
    var _CWAC = "CloudWatchAlarmConfiguration";
    var _CWLLGA = "CloudWatchLogsLogGroupArn";
    var _CWR = "CloudWatchRegion";
    var _Ch = "Changes";
    var _Cha = "Change";
    var _Ci = "Cidr";
    var _Co = "Collection";
    var _Con = "Config";
    var _Coo = "Coordinates";
    var _Cou = "Count";
    var _D = "Document";
    var _DAM = "DigestAlgorithmMnemonic";
    var _DAT = "DigestAlgorithmType";
    var _DNSKEYR = "DNSKEYRecord";
    var _DNSN = "DNSName";
    var _DS2 = "DelegationSet";
    var _DSI = "DelegationSetId";
    var _DSR = "DSRecord";
    var _DSe = "DelegationSets";
    var _DV = "DigestValue";
    var _DVPCAAR = "DeleteVPCAssociationAuthorizationRequest";
    var _DVPCC = "DisassociateVPCComment";
    var _DVPCFHZR = "DisassociateVPCFromHostedZoneRequest";
    var _De = "Description";
    var _Di = "Disabled";
    var _Dim = "Dimensions";
    var _Dime = "Dimension";
    var _EDNSCSIP = "EDNS0ClientSubnetIP";
    var _EDNSCSM = "EDNS0ClientSubnetMask";
    var _EP = "EvaluationPeriods";
    var _ESNI = "EnableSNI";
    var _ETH = "EvaluateTargetHealth";
    var _F = "Failover";
    var _FQDN = "FullyQualifiedDomainName";
    var _FT = "FailureThreshold";
    var _Fl = "Flag";
    var _GL = "GeoLocation";
    var _GLCC = "GeoLocationContinentCode";
    var _GLCCe = "GeoLocationCountryCode";
    var _GLD = "GeoLocationDetails";
    var _GLDL = "GeoLocationDetailsList";
    var _GLSC = "GeoLocationSubdivisionCode";
    var _GPL = "GeoProximityLocation";
    var _HC = "HealthCheck";
    var _HCC = "HealthCheckConfig";
    var _HCCe = "HealthCheckCount";
    var _HCI = "HealthCheckId";
    var _HCN = "HealthCheckNonce";
    var _HCO = "HealthCheckObservations";
    var _HCOe = "HealthCheckObservation";
    var _HCR = "HealthCheckRegion";
    var _HCT = "HealthCheckType";
    var _HCV = "HealthCheckVersion";
    var _HCe = "HealthChecks";
    var _HT = "HealthThreshold";
    var _HZ = "HostedZone";
    var _HZC = "HostedZoneConfig";
    var _HZCo = "HostedZoneCount";
    var _HZI = "HostedZoneId";
    var _HZIM = "HostedZoneIdMarker";
    var _HZS = "HostedZoneSummaries";
    var _HZSo = "HostedZoneSummary";
    var _HZT = "HostedZoneType";
    var _HZo = "HostedZones";
    var _I = "Inverted";
    var _IDHS = "InsufficientDataHealthStatus";
    var _IPA = "IPAddress";
    var _IPZ = "IsPrivateZone";
    var _IT = "IsTruncated";
    var _Id = "Id";
    var _K2 = "Key";
    var _KA = "KmsArn";
    var _KMSA = "KeyManagementServiceArn";
    var _KSK = "KeySigningKey";
    var _KSKe = "KeySigningKeys";
    var _KT = "KeyTag";
    var _L = "Location";
    var _LMD = "LastModifiedDate";
    var _LN = "LocationName";
    var _LS = "LinkedService";
    var _LTFRR = "ListTagsForResourcesRequest";
    var _LV = "LatestVersion";
    var _LZG = "LocalZoneGroup";
    var _La = "Latitude";
    var _Li = "Limit";
    var _Lo = "Longitude";
    var _M = "Marker";
    var _MI = "MaxItems";
    var _ML = "MeasureLatency";
    var _MN = "MetricName";
    var _MR = "MaxResults";
    var _MVA = "MultiValueAnswer";
    var _Me = "Message";
    var _N = "Name";
    var _NCC = "NextContinentCode";
    var _NCCe = "NextCountryCode";
    var _NDNSN = "NextDNSName";
    var _NHZI = "NextHostedZoneId";
    var _NM = "NextMarker";
    var _NRI = "NextRecordIdentifier";
    var _NRN = "NextRecordName";
    var _NRT = "NextRecordType";
    var _NS = "NameServers";
    var _NSC = "NextSubdivisionCode";
    var _NSa = "NameServer";
    var _NT = "NextToken";
    var _Na = "Nameserver";
    var _Nam = "Namespace";
    var _No = "Nonce";
    var _O = "Owner";
    var _OA = "OwningAccount";
    var _OS = "OwningService";
    var _P2 = "Port";
    var _PK = "PublicKey";
    var _PZ = "PrivateZone";
    var _Pe = "Period";
    var _Pr2 = "Protocol";
    var _QLC = "QueryLoggingConfig";
    var _QLCu = "QueryLoggingConfigs";
    var _R = "Regions";
    var _RC = "ResponseCode";
    var _RCA = "RoutingControlArn";
    var _RD = "ResourceDescription";
    var _RDE = "RecordDataEntry";
    var _RDa = "RData";
    var _RDe = "RecordData";
    var _RE = "ResetElements";
    var _REN = "ResettableElementName";
    var _RI = "ResourceId";
    var _RIP = "ResolverIP";
    var _RIe = "ResourceIds";
    var _RIeq = "RequestInterval";
    var _RN = "RecordName";
    var _RP = "ResourcePath";
    var _RR = "ResourceRecord";
    var _RRS = "ResourceRecordSets";
    var _RRSC = "ResourceRecordSetCount";
    var _RRSF = "ResourceRecordSetFailover";
    var _RRSI = "ResourceRecordSetIdentifier";
    var _RRSMVA = "ResourceRecordSetMultiValueAnswer";
    var _RRSR = "ResourceRecordSetRegion";
    var _RRSW = "ResourceRecordSetWeight";
    var _RRSe = "ResourceRecordSet";
    var _RRT = "RRType";
    var _RRe = "ResourceRecords";
    var _RT = "RecordType";
    var _RTK = "RemoveTagKeys";
    var _RTS = "ResourceTagSet";
    var _RTSe = "ResourceTagSets";
    var _RTe = "ResourceType";
    var _Re = "Region";
    var _S = "Status";
    var _SA = "SubmittedAt";
    var _SAM = "SigningAlgorithmMnemonic";
    var _SAT = "SigningAlgorithmType";
    var _SC = "SubdivisionCode";
    var _SCC = "StartContinentCode";
    var _SCCt = "StartCountryCode";
    var _SI2 = "SetIdentifier";
    var _SKN = "SigningKeyName";
    var _SKS = "SigningKeyString";
    var _SKSi = "SigningKeyStatus";
    var _SM = "StatusMessage";
    var _SN2 = "SubdivisionName";
    var _SP = "ServicePrincipal";
    var _SR = "StatusReport";
    var _SRI = "StartRecordIdentifier";
    var _SRN = "StartRecordName";
    var _SRT = "StartRecordType";
    var _SS = "SearchString";
    var _SSC = "StartSubdivisionCode";
    var _SSe = "ServeSignature";
    var _St = "Statistic";
    var _Sta = "State";
    var _T2 = "Type";
    var _TK = "TagKey";
    var _TP = "TrafficPolicy";
    var _TPC = "TrafficPolicyComment";
    var _TPCr = "TrafficPolicyCount";
    var _TPD = "TrafficPolicyDocument";
    var _TPI = "TrafficPolicyId";
    var _TPIC = "TrafficPolicyInstanceCount";
    var _TPII = "TrafficPolicyInstanceId";
    var _TPIM = "TrafficPolicyIdMarker";
    var _TPINM = "TrafficPolicyInstanceNameMarker";
    var _TPITM = "TrafficPolicyInstanceTypeMarker";
    var _TPIr = "TrafficPolicyInstance";
    var _TPIra = "TrafficPolicyInstances";
    var _TPN = "TrafficPolicyName";
    var _TPS = "TrafficPolicySummaries";
    var _TPSr = "TrafficPolicySummary";
    var _TPT = "TrafficPolicyType";
    var _TPV = "TrafficPolicyVersion";
    var _TPVM = "TrafficPolicyVersionMarker";
    var _TPr = "TrafficPolicies";
    var _TRI = "TagResourceId";
    var _TTL = "TTL";
    var _TV = "TagValue";
    var _Ta = "Tag";
    var _Tag = "Tags";
    var _Th = "Threshold";
    var _UHCR = "UpdateHealthCheckRequest";
    var _UHZCR = "UpdateHostedZoneCommentRequest";
    var _UTPCR = "UpdateTrafficPolicyCommentRequest";
    var _UTPIR = "UpdateTrafficPolicyInstanceRequest";
    var _UUID = "UUID";
    var _V2 = "Value";
    var _VPC = "VPC";
    var _VPCI = "VPCId";
    var _VPCR = "VPCRegion";
    var _VPCs = "VPCs";
    var _Ve = "Version";
    var _W = "Weight";
    var _c = "continentcode";
    var _co = "countrycode";
    var _d = "delegationsetid";
    var _dn = "dnsname";
    var _e = "edns0clientsubnetip";
    var _ed = "edns0clientsubnetmask";
    var _h = "hostedzonetype";
    var _ho = "hostedzoneid";
    var _i = "identifier";
    var _id = "id";
    var _l = "location";
    var _m2 = "maxresults";
    var _ma = "maxitems";
    var _mar = "marker";
    var _me = "member";
    var _mes = "message";
    var _mess = "messages";
    var _n = "nexttoken";
    var _na = "name";
    var _r = "recordname";
    var _re = "recordtype";
    var _res = "resolverip";
    var _s = "subdivisioncode";
    var _st = "startcontinentcode";
    var _sta = "startcountrycode";
    var _star = "startsubdivisioncode";
    var _t = "type";
    var _tr = "trafficpolicyid";
    var _tra = "trafficpolicyinstancename";
    var _traf = "trafficpolicyinstancetype";
    var _traff = "trafficpolicyversion";
    var _v = "vpcid";
    var _ve = '<?xml version="1.0" encoding="UTF-8"?>';
    var _ver = "version";
    var _vp = "vpcregion";
    var ActivateKeySigningKeyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_route53.getIdNormalizerPlugin)(config)
      ];
    }).s("AWSDnsV20130401", "ActivateKeySigningKey", {}).n("Route53Client", "ActivateKeySigningKeyCommand").f(void 0, void 0).ser(se_ActivateKeySigningKeyCommand).de(de_ActivateKeySigningKeyCommand).build() {
      static {
        __name(this, "ActivateKeySigningKeyCommand");
      }
      static {
        __name2(this, "ActivateKeySigningKeyCommand");
      }
    };
    var import_middleware_sdk_route532 = require_dist_cjs93();
    var AssociateVPCWithHostedZoneCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_route532.getIdNormalizerPlugin)(config)
      ];
    }).s("AWSDnsV20130401", "AssociateVPCWithHostedZone", {}).n("Route53Client", "AssociateVPCWithHostedZoneCommand").f(void 0, void 0).ser(se_AssociateVPCWithHostedZoneCommand).de(de_AssociateVPCWithHostedZoneCommand).build() {
      static {
        __name(this, "AssociateVPCWithHostedZoneCommand");
      }
      static {
        __name2(this, "AssociateVPCWithHostedZoneCommand");
      }
    };
    var import_middleware_sdk_route533 = require_dist_cjs93();
    var ChangeCidrCollectionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_route533.getIdNormalizerPlugin)(config)
      ];
    }).s("AWSDnsV20130401", "ChangeCidrCollection", {}).n("Route53Client", "ChangeCidrCollectionCommand").f(void 0, void 0).ser(se_ChangeCidrCollectionCommand).de(de_ChangeCidrCollectionCommand).build() {
      static {
        __name(this, "ChangeCidrCollectionCommand");
      }
      static {
        __name2(this, "ChangeCidrCollectionCommand");
      }
    };
    var import_middleware_sdk_route534 = require_dist_cjs93();
    var ChangeResourceRecordSetsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_route534.getChangeResourceRecordSetsPlugin)(config),
        (0, import_middleware_sdk_route534.getIdNormalizerPlugin)(config)
      ];
    }).s("AWSDnsV20130401", "ChangeResourceRecordSets", {}).n("Route53Client", "ChangeResourceRecordSetsCommand").f(void 0, void 0).ser(se_ChangeResourceRecordSetsCommand).de(de_ChangeResourceRecordSetsCommand).build() {
      static {
        __name(this, "ChangeResourceRecordSetsCommand");
      }
      static {
        __name2(this, "ChangeResourceRecordSetsCommand");
      }
    };
    var ChangeTagsForResourceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDnsV20130401", "ChangeTagsForResource", {}).n("Route53Client", "ChangeTagsForResourceCommand").f(void 0, void 0).ser(se_ChangeTagsForResourceCommand).de(de_ChangeTagsForResourceCommand).build() {
      static {
        __name(this, "ChangeTagsForResourceCommand");
      }
      static {
        __name2(this, "ChangeTagsForResourceCommand");
      }
    };
    var CreateCidrCollectionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDnsV20130401", "CreateCidrCollection", {}).n("Route53Client", "CreateCidrCollectionCommand").f(void 0, void 0).ser(se_CreateCidrCollectionCommand).de(de_CreateCidrCollectionCommand).build() {
      static {
        __name(this, "CreateCidrCollectionCommand");
      }
      static {
        __name2(this, "CreateCidrCollectionCommand");
      }
    };
    var CreateHealthCheckCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDnsV20130401", "CreateHealthCheck", {}).n("Route53Client", "CreateHealthCheckCommand").f(void 0, void 0).ser(se_CreateHealthCheckCommand).de(de_CreateHealthCheckCommand).build() {
      static {
        __name(this, "CreateHealthCheckCommand");
      }
      static {
        __name2(this, "CreateHealthCheckCommand");
      }
    };
    var import_middleware_sdk_route535 = require_dist_cjs93();
    var CreateHostedZoneCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_route535.getIdNormalizerPlugin)(config)
      ];
    }).s("AWSDnsV20130401", "CreateHostedZone", {}).n("Route53Client", "CreateHostedZoneCommand").f(void 0, void 0).ser(se_CreateHostedZoneCommand).de(de_CreateHostedZoneCommand).build() {
      static {
        __name(this, "CreateHostedZoneCommand");
      }
      static {
        __name2(this, "CreateHostedZoneCommand");
      }
    };
    var import_middleware_sdk_route536 = require_dist_cjs93();
    var CreateKeySigningKeyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_route536.getIdNormalizerPlugin)(config)
      ];
    }).s("AWSDnsV20130401", "CreateKeySigningKey", {}).n("Route53Client", "CreateKeySigningKeyCommand").f(void 0, void 0).ser(se_CreateKeySigningKeyCommand).de(de_CreateKeySigningKeyCommand).build() {
      static {
        __name(this, "CreateKeySigningKeyCommand");
      }
      static {
        __name2(this, "CreateKeySigningKeyCommand");
      }
    };
    var import_middleware_sdk_route537 = require_dist_cjs93();
    var CreateQueryLoggingConfigCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_route537.getIdNormalizerPlugin)(config)
      ];
    }).s("AWSDnsV20130401", "CreateQueryLoggingConfig", {}).n("Route53Client", "CreateQueryLoggingConfigCommand").f(void 0, void 0).ser(se_CreateQueryLoggingConfigCommand).de(de_CreateQueryLoggingConfigCommand).build() {
      static {
        __name(this, "CreateQueryLoggingConfigCommand");
      }
      static {
        __name2(this, "CreateQueryLoggingConfigCommand");
      }
    };
    var import_middleware_sdk_route538 = require_dist_cjs93();
    var CreateReusableDelegationSetCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_route538.getIdNormalizerPlugin)(config)
      ];
    }).s("AWSDnsV20130401", "CreateReusableDelegationSet", {}).n("Route53Client", "CreateReusableDelegationSetCommand").f(void 0, void 0).ser(se_CreateReusableDelegationSetCommand).de(de_CreateReusableDelegationSetCommand).build() {
      static {
        __name(this, "CreateReusableDelegationSetCommand");
      }
      static {
        __name2(this, "CreateReusableDelegationSetCommand");
      }
    };
    var CreateTrafficPolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDnsV20130401", "CreateTrafficPolicy", {}).n("Route53Client", "CreateTrafficPolicyCommand").f(void 0, void 0).ser(se_CreateTrafficPolicyCommand).de(de_CreateTrafficPolicyCommand).build() {
      static {
        __name(this, "CreateTrafficPolicyCommand");
      }
      static {
        __name2(this, "CreateTrafficPolicyCommand");
      }
    };
    var import_middleware_sdk_route539 = require_dist_cjs93();
    var CreateTrafficPolicyInstanceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_route539.getIdNormalizerPlugin)(config)
      ];
    }).s("AWSDnsV20130401", "CreateTrafficPolicyInstance", {}).n("Route53Client", "CreateTrafficPolicyInstanceCommand").f(void 0, void 0).ser(se_CreateTrafficPolicyInstanceCommand).de(de_CreateTrafficPolicyInstanceCommand).build() {
      static {
        __name(this, "CreateTrafficPolicyInstanceCommand");
      }
      static {
        __name2(this, "CreateTrafficPolicyInstanceCommand");
      }
    };
    var import_middleware_sdk_route5310 = require_dist_cjs93();
    var CreateTrafficPolicyVersionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_route5310.getIdNormalizerPlugin)(config)
      ];
    }).s("AWSDnsV20130401", "CreateTrafficPolicyVersion", {}).n("Route53Client", "CreateTrafficPolicyVersionCommand").f(void 0, void 0).ser(se_CreateTrafficPolicyVersionCommand).de(de_CreateTrafficPolicyVersionCommand).build() {
      static {
        __name(this, "CreateTrafficPolicyVersionCommand");
      }
      static {
        __name2(this, "CreateTrafficPolicyVersionCommand");
      }
    };
    var import_middleware_sdk_route5311 = require_dist_cjs93();
    var CreateVPCAssociationAuthorizationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_route5311.getIdNormalizerPlugin)(config)
      ];
    }).s("AWSDnsV20130401", "CreateVPCAssociationAuthorization", {}).n("Route53Client", "CreateVPCAssociationAuthorizationCommand").f(void 0, void 0).ser(se_CreateVPCAssociationAuthorizationCommand).de(de_CreateVPCAssociationAuthorizationCommand).build() {
      static {
        __name(this, "CreateVPCAssociationAuthorizationCommand");
      }
      static {
        __name2(this, "CreateVPCAssociationAuthorizationCommand");
      }
    };
    var import_middleware_sdk_route5312 = require_dist_cjs93();
    var DeactivateKeySigningKeyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_route5312.getIdNormalizerPlugin)(config)
      ];
    }).s("AWSDnsV20130401", "DeactivateKeySigningKey", {}).n("Route53Client", "DeactivateKeySigningKeyCommand").f(void 0, void 0).ser(se_DeactivateKeySigningKeyCommand).de(de_DeactivateKeySigningKeyCommand).build() {
      static {
        __name(this, "DeactivateKeySigningKeyCommand");
      }
      static {
        __name2(this, "DeactivateKeySigningKeyCommand");
      }
    };
    var import_middleware_sdk_route5313 = require_dist_cjs93();
    var DeleteCidrCollectionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_route5313.getIdNormalizerPlugin)(config)
      ];
    }).s("AWSDnsV20130401", "DeleteCidrCollection", {}).n("Route53Client", "DeleteCidrCollectionCommand").f(void 0, void 0).ser(se_DeleteCidrCollectionCommand).de(de_DeleteCidrCollectionCommand).build() {
      static {
        __name(this, "DeleteCidrCollectionCommand");
      }
      static {
        __name2(this, "DeleteCidrCollectionCommand");
      }
    };
    var DeleteHealthCheckCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDnsV20130401", "DeleteHealthCheck", {}).n("Route53Client", "DeleteHealthCheckCommand").f(void 0, void 0).ser(se_DeleteHealthCheckCommand).de(de_DeleteHealthCheckCommand).build() {
      static {
        __name(this, "DeleteHealthCheckCommand");
      }
      static {
        __name2(this, "DeleteHealthCheckCommand");
      }
    };
    var import_middleware_sdk_route5314 = require_dist_cjs93();
    var DeleteHostedZoneCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_route5314.getIdNormalizerPlugin)(config)
      ];
    }).s("AWSDnsV20130401", "DeleteHostedZone", {}).n("Route53Client", "DeleteHostedZoneCommand").f(void 0, void 0).ser(se_DeleteHostedZoneCommand).de(de_DeleteHostedZoneCommand).build() {
      static {
        __name(this, "DeleteHostedZoneCommand");
      }
      static {
        __name2(this, "DeleteHostedZoneCommand");
      }
    };
    var import_middleware_sdk_route5315 = require_dist_cjs93();
    var DeleteKeySigningKeyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_route5315.getIdNormalizerPlugin)(config)
      ];
    }).s("AWSDnsV20130401", "DeleteKeySigningKey", {}).n("Route53Client", "DeleteKeySigningKeyCommand").f(void 0, void 0).ser(se_DeleteKeySigningKeyCommand).de(de_DeleteKeySigningKeyCommand).build() {
      static {
        __name(this, "DeleteKeySigningKeyCommand");
      }
      static {
        __name2(this, "DeleteKeySigningKeyCommand");
      }
    };
    var import_middleware_sdk_route5316 = require_dist_cjs93();
    var DeleteQueryLoggingConfigCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_route5316.getIdNormalizerPlugin)(config)
      ];
    }).s("AWSDnsV20130401", "DeleteQueryLoggingConfig", {}).n("Route53Client", "DeleteQueryLoggingConfigCommand").f(void 0, void 0).ser(se_DeleteQueryLoggingConfigCommand).de(de_DeleteQueryLoggingConfigCommand).build() {
      static {
        __name(this, "DeleteQueryLoggingConfigCommand");
      }
      static {
        __name2(this, "DeleteQueryLoggingConfigCommand");
      }
    };
    var import_middleware_sdk_route5317 = require_dist_cjs93();
    var DeleteReusableDelegationSetCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_route5317.getIdNormalizerPlugin)(config)
      ];
    }).s("AWSDnsV20130401", "DeleteReusableDelegationSet", {}).n("Route53Client", "DeleteReusableDelegationSetCommand").f(void 0, void 0).ser(se_DeleteReusableDelegationSetCommand).de(de_DeleteReusableDelegationSetCommand).build() {
      static {
        __name(this, "DeleteReusableDelegationSetCommand");
      }
      static {
        __name2(this, "DeleteReusableDelegationSetCommand");
      }
    };
    var import_middleware_sdk_route5318 = require_dist_cjs93();
    var DeleteTrafficPolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_route5318.getIdNormalizerPlugin)(config)
      ];
    }).s("AWSDnsV20130401", "DeleteTrafficPolicy", {}).n("Route53Client", "DeleteTrafficPolicyCommand").f(void 0, void 0).ser(se_DeleteTrafficPolicyCommand).de(de_DeleteTrafficPolicyCommand).build() {
      static {
        __name(this, "DeleteTrafficPolicyCommand");
      }
      static {
        __name2(this, "DeleteTrafficPolicyCommand");
      }
    };
    var import_middleware_sdk_route5319 = require_dist_cjs93();
    var DeleteTrafficPolicyInstanceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_route5319.getIdNormalizerPlugin)(config)
      ];
    }).s("AWSDnsV20130401", "DeleteTrafficPolicyInstance", {}).n("Route53Client", "DeleteTrafficPolicyInstanceCommand").f(void 0, void 0).ser(se_DeleteTrafficPolicyInstanceCommand).de(de_DeleteTrafficPolicyInstanceCommand).build() {
      static {
        __name(this, "DeleteTrafficPolicyInstanceCommand");
      }
      static {
        __name2(this, "DeleteTrafficPolicyInstanceCommand");
      }
    };
    var import_middleware_sdk_route5320 = require_dist_cjs93();
    var DeleteVPCAssociationAuthorizationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_route5320.getIdNormalizerPlugin)(config)
      ];
    }).s("AWSDnsV20130401", "DeleteVPCAssociationAuthorization", {}).n("Route53Client", "DeleteVPCAssociationAuthorizationCommand").f(void 0, void 0).ser(se_DeleteVPCAssociationAuthorizationCommand).de(de_DeleteVPCAssociationAuthorizationCommand).build() {
      static {
        __name(this, "DeleteVPCAssociationAuthorizationCommand");
      }
      static {
        __name2(this, "DeleteVPCAssociationAuthorizationCommand");
      }
    };
    var import_middleware_sdk_route5321 = require_dist_cjs93();
    var DisableHostedZoneDNSSECCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_route5321.getIdNormalizerPlugin)(config)
      ];
    }).s("AWSDnsV20130401", "DisableHostedZoneDNSSEC", {}).n("Route53Client", "DisableHostedZoneDNSSECCommand").f(void 0, void 0).ser(se_DisableHostedZoneDNSSECCommand).de(de_DisableHostedZoneDNSSECCommand).build() {
      static {
        __name(this, "DisableHostedZoneDNSSECCommand");
      }
      static {
        __name2(this, "DisableHostedZoneDNSSECCommand");
      }
    };
    var import_middleware_sdk_route5322 = require_dist_cjs93();
    var DisassociateVPCFromHostedZoneCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_route5322.getIdNormalizerPlugin)(config)
      ];
    }).s("AWSDnsV20130401", "DisassociateVPCFromHostedZone", {}).n("Route53Client", "DisassociateVPCFromHostedZoneCommand").f(void 0, void 0).ser(se_DisassociateVPCFromHostedZoneCommand).de(de_DisassociateVPCFromHostedZoneCommand).build() {
      static {
        __name(this, "DisassociateVPCFromHostedZoneCommand");
      }
      static {
        __name2(this, "DisassociateVPCFromHostedZoneCommand");
      }
    };
    var import_middleware_sdk_route5323 = require_dist_cjs93();
    var EnableHostedZoneDNSSECCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_route5323.getIdNormalizerPlugin)(config)
      ];
    }).s("AWSDnsV20130401", "EnableHostedZoneDNSSEC", {}).n("Route53Client", "EnableHostedZoneDNSSECCommand").f(void 0, void 0).ser(se_EnableHostedZoneDNSSECCommand).de(de_EnableHostedZoneDNSSECCommand).build() {
      static {
        __name(this, "EnableHostedZoneDNSSECCommand");
      }
      static {
        __name2(this, "EnableHostedZoneDNSSECCommand");
      }
    };
    var GetAccountLimitCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDnsV20130401", "GetAccountLimit", {}).n("Route53Client", "GetAccountLimitCommand").f(void 0, void 0).ser(se_GetAccountLimitCommand).de(de_GetAccountLimitCommand).build() {
      static {
        __name(this, "GetAccountLimitCommand");
      }
      static {
        __name2(this, "GetAccountLimitCommand");
      }
    };
    var import_middleware_sdk_route5324 = require_dist_cjs93();
    var GetChangeCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_route5324.getIdNormalizerPlugin)(config)
      ];
    }).s("AWSDnsV20130401", "GetChange", {}).n("Route53Client", "GetChangeCommand").f(void 0, void 0).ser(se_GetChangeCommand).de(de_GetChangeCommand).build() {
      static {
        __name(this, "GetChangeCommand");
      }
      static {
        __name2(this, "GetChangeCommand");
      }
    };
    var GetCheckerIpRangesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDnsV20130401", "GetCheckerIpRanges", {}).n("Route53Client", "GetCheckerIpRangesCommand").f(void 0, void 0).ser(se_GetCheckerIpRangesCommand).de(de_GetCheckerIpRangesCommand).build() {
      static {
        __name(this, "GetCheckerIpRangesCommand");
      }
      static {
        __name2(this, "GetCheckerIpRangesCommand");
      }
    };
    var import_middleware_sdk_route5325 = require_dist_cjs93();
    var GetDNSSECCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_route5325.getIdNormalizerPlugin)(config)
      ];
    }).s("AWSDnsV20130401", "GetDNSSEC", {}).n("Route53Client", "GetDNSSECCommand").f(void 0, void 0).ser(se_GetDNSSECCommand).de(de_GetDNSSECCommand).build() {
      static {
        __name(this, "GetDNSSECCommand");
      }
      static {
        __name2(this, "GetDNSSECCommand");
      }
    };
    var GetGeoLocationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDnsV20130401", "GetGeoLocation", {}).n("Route53Client", "GetGeoLocationCommand").f(void 0, void 0).ser(se_GetGeoLocationCommand).de(de_GetGeoLocationCommand).build() {
      static {
        __name(this, "GetGeoLocationCommand");
      }
      static {
        __name2(this, "GetGeoLocationCommand");
      }
    };
    var GetHealthCheckCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDnsV20130401", "GetHealthCheck", {}).n("Route53Client", "GetHealthCheckCommand").f(void 0, void 0).ser(se_GetHealthCheckCommand).de(de_GetHealthCheckCommand).build() {
      static {
        __name(this, "GetHealthCheckCommand");
      }
      static {
        __name2(this, "GetHealthCheckCommand");
      }
    };
    var GetHealthCheckCountCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDnsV20130401", "GetHealthCheckCount", {}).n("Route53Client", "GetHealthCheckCountCommand").f(void 0, void 0).ser(se_GetHealthCheckCountCommand).de(de_GetHealthCheckCountCommand).build() {
      static {
        __name(this, "GetHealthCheckCountCommand");
      }
      static {
        __name2(this, "GetHealthCheckCountCommand");
      }
    };
    var GetHealthCheckLastFailureReasonCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDnsV20130401", "GetHealthCheckLastFailureReason", {}).n("Route53Client", "GetHealthCheckLastFailureReasonCommand").f(void 0, void 0).ser(se_GetHealthCheckLastFailureReasonCommand).de(de_GetHealthCheckLastFailureReasonCommand).build() {
      static {
        __name(this, "GetHealthCheckLastFailureReasonCommand");
      }
      static {
        __name2(this, "GetHealthCheckLastFailureReasonCommand");
      }
    };
    var GetHealthCheckStatusCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDnsV20130401", "GetHealthCheckStatus", {}).n("Route53Client", "GetHealthCheckStatusCommand").f(void 0, void 0).ser(se_GetHealthCheckStatusCommand).de(de_GetHealthCheckStatusCommand).build() {
      static {
        __name(this, "GetHealthCheckStatusCommand");
      }
      static {
        __name2(this, "GetHealthCheckStatusCommand");
      }
    };
    var import_middleware_sdk_route5326 = require_dist_cjs93();
    var GetHostedZoneCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_route5326.getIdNormalizerPlugin)(config)
      ];
    }).s("AWSDnsV20130401", "GetHostedZone", {}).n("Route53Client", "GetHostedZoneCommand").f(void 0, void 0).ser(se_GetHostedZoneCommand).de(de_GetHostedZoneCommand).build() {
      static {
        __name(this, "GetHostedZoneCommand");
      }
      static {
        __name2(this, "GetHostedZoneCommand");
      }
    };
    var GetHostedZoneCountCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDnsV20130401", "GetHostedZoneCount", {}).n("Route53Client", "GetHostedZoneCountCommand").f(void 0, void 0).ser(se_GetHostedZoneCountCommand).de(de_GetHostedZoneCountCommand).build() {
      static {
        __name(this, "GetHostedZoneCountCommand");
      }
      static {
        __name2(this, "GetHostedZoneCountCommand");
      }
    };
    var import_middleware_sdk_route5327 = require_dist_cjs93();
    var GetHostedZoneLimitCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_route5327.getIdNormalizerPlugin)(config)
      ];
    }).s("AWSDnsV20130401", "GetHostedZoneLimit", {}).n("Route53Client", "GetHostedZoneLimitCommand").f(void 0, void 0).ser(se_GetHostedZoneLimitCommand).de(de_GetHostedZoneLimitCommand).build() {
      static {
        __name(this, "GetHostedZoneLimitCommand");
      }
      static {
        __name2(this, "GetHostedZoneLimitCommand");
      }
    };
    var import_middleware_sdk_route5328 = require_dist_cjs93();
    var GetQueryLoggingConfigCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_route5328.getIdNormalizerPlugin)(config)
      ];
    }).s("AWSDnsV20130401", "GetQueryLoggingConfig", {}).n("Route53Client", "GetQueryLoggingConfigCommand").f(void 0, void 0).ser(se_GetQueryLoggingConfigCommand).de(de_GetQueryLoggingConfigCommand).build() {
      static {
        __name(this, "GetQueryLoggingConfigCommand");
      }
      static {
        __name2(this, "GetQueryLoggingConfigCommand");
      }
    };
    var import_middleware_sdk_route5329 = require_dist_cjs93();
    var GetReusableDelegationSetCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_route5329.getIdNormalizerPlugin)(config)
      ];
    }).s("AWSDnsV20130401", "GetReusableDelegationSet", {}).n("Route53Client", "GetReusableDelegationSetCommand").f(void 0, void 0).ser(se_GetReusableDelegationSetCommand).de(de_GetReusableDelegationSetCommand).build() {
      static {
        __name(this, "GetReusableDelegationSetCommand");
      }
      static {
        __name2(this, "GetReusableDelegationSetCommand");
      }
    };
    var import_middleware_sdk_route5330 = require_dist_cjs93();
    var GetReusableDelegationSetLimitCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_route5330.getIdNormalizerPlugin)(config)
      ];
    }).s("AWSDnsV20130401", "GetReusableDelegationSetLimit", {}).n("Route53Client", "GetReusableDelegationSetLimitCommand").f(void 0, void 0).ser(se_GetReusableDelegationSetLimitCommand).de(de_GetReusableDelegationSetLimitCommand).build() {
      static {
        __name(this, "GetReusableDelegationSetLimitCommand");
      }
      static {
        __name2(this, "GetReusableDelegationSetLimitCommand");
      }
    };
    var import_middleware_sdk_route5331 = require_dist_cjs93();
    var GetTrafficPolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_route5331.getIdNormalizerPlugin)(config)
      ];
    }).s("AWSDnsV20130401", "GetTrafficPolicy", {}).n("Route53Client", "GetTrafficPolicyCommand").f(void 0, void 0).ser(se_GetTrafficPolicyCommand).de(de_GetTrafficPolicyCommand).build() {
      static {
        __name(this, "GetTrafficPolicyCommand");
      }
      static {
        __name2(this, "GetTrafficPolicyCommand");
      }
    };
    var import_middleware_sdk_route5332 = require_dist_cjs93();
    var GetTrafficPolicyInstanceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_route5332.getIdNormalizerPlugin)(config)
      ];
    }).s("AWSDnsV20130401", "GetTrafficPolicyInstance", {}).n("Route53Client", "GetTrafficPolicyInstanceCommand").f(void 0, void 0).ser(se_GetTrafficPolicyInstanceCommand).de(de_GetTrafficPolicyInstanceCommand).build() {
      static {
        __name(this, "GetTrafficPolicyInstanceCommand");
      }
      static {
        __name2(this, "GetTrafficPolicyInstanceCommand");
      }
    };
    var GetTrafficPolicyInstanceCountCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDnsV20130401", "GetTrafficPolicyInstanceCount", {}).n("Route53Client", "GetTrafficPolicyInstanceCountCommand").f(void 0, void 0).ser(se_GetTrafficPolicyInstanceCountCommand).de(de_GetTrafficPolicyInstanceCountCommand).build() {
      static {
        __name(this, "GetTrafficPolicyInstanceCountCommand");
      }
      static {
        __name2(this, "GetTrafficPolicyInstanceCountCommand");
      }
    };
    var ListCidrBlocksCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDnsV20130401", "ListCidrBlocks", {}).n("Route53Client", "ListCidrBlocksCommand").f(void 0, void 0).ser(se_ListCidrBlocksCommand).de(de_ListCidrBlocksCommand).build() {
      static {
        __name(this, "ListCidrBlocksCommand");
      }
      static {
        __name2(this, "ListCidrBlocksCommand");
      }
    };
    var ListCidrCollectionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDnsV20130401", "ListCidrCollections", {}).n("Route53Client", "ListCidrCollectionsCommand").f(void 0, void 0).ser(se_ListCidrCollectionsCommand).de(de_ListCidrCollectionsCommand).build() {
      static {
        __name(this, "ListCidrCollectionsCommand");
      }
      static {
        __name2(this, "ListCidrCollectionsCommand");
      }
    };
    var ListCidrLocationsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDnsV20130401", "ListCidrLocations", {}).n("Route53Client", "ListCidrLocationsCommand").f(void 0, void 0).ser(se_ListCidrLocationsCommand).de(de_ListCidrLocationsCommand).build() {
      static {
        __name(this, "ListCidrLocationsCommand");
      }
      static {
        __name2(this, "ListCidrLocationsCommand");
      }
    };
    var ListGeoLocationsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDnsV20130401", "ListGeoLocations", {}).n("Route53Client", "ListGeoLocationsCommand").f(void 0, void 0).ser(se_ListGeoLocationsCommand).de(de_ListGeoLocationsCommand).build() {
      static {
        __name(this, "ListGeoLocationsCommand");
      }
      static {
        __name2(this, "ListGeoLocationsCommand");
      }
    };
    var ListHealthChecksCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDnsV20130401", "ListHealthChecks", {}).n("Route53Client", "ListHealthChecksCommand").f(void 0, void 0).ser(se_ListHealthChecksCommand).de(de_ListHealthChecksCommand).build() {
      static {
        __name(this, "ListHealthChecksCommand");
      }
      static {
        __name2(this, "ListHealthChecksCommand");
      }
    };
    var import_middleware_sdk_route5333 = require_dist_cjs93();
    var ListHostedZonesByNameCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_route5333.getIdNormalizerPlugin)(config)
      ];
    }).s("AWSDnsV20130401", "ListHostedZonesByName", {}).n("Route53Client", "ListHostedZonesByNameCommand").f(void 0, void 0).ser(se_ListHostedZonesByNameCommand).de(de_ListHostedZonesByNameCommand).build() {
      static {
        __name(this, "ListHostedZonesByNameCommand");
      }
      static {
        __name2(this, "ListHostedZonesByNameCommand");
      }
    };
    var ListHostedZonesByVPCCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDnsV20130401", "ListHostedZonesByVPC", {}).n("Route53Client", "ListHostedZonesByVPCCommand").f(void 0, void 0).ser(se_ListHostedZonesByVPCCommand).de(de_ListHostedZonesByVPCCommand).build() {
      static {
        __name(this, "ListHostedZonesByVPCCommand");
      }
      static {
        __name2(this, "ListHostedZonesByVPCCommand");
      }
    };
    var import_middleware_sdk_route5334 = require_dist_cjs93();
    var ListHostedZonesCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_route5334.getIdNormalizerPlugin)(config)
      ];
    }).s("AWSDnsV20130401", "ListHostedZones", {}).n("Route53Client", "ListHostedZonesCommand").f(void 0, void 0).ser(se_ListHostedZonesCommand).de(de_ListHostedZonesCommand).build() {
      static {
        __name(this, "ListHostedZonesCommand");
      }
      static {
        __name2(this, "ListHostedZonesCommand");
      }
    };
    var import_middleware_sdk_route5335 = require_dist_cjs93();
    var ListQueryLoggingConfigsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_route5335.getIdNormalizerPlugin)(config)
      ];
    }).s("AWSDnsV20130401", "ListQueryLoggingConfigs", {}).n("Route53Client", "ListQueryLoggingConfigsCommand").f(void 0, void 0).ser(se_ListQueryLoggingConfigsCommand).de(de_ListQueryLoggingConfigsCommand).build() {
      static {
        __name(this, "ListQueryLoggingConfigsCommand");
      }
      static {
        __name2(this, "ListQueryLoggingConfigsCommand");
      }
    };
    var import_middleware_sdk_route5336 = require_dist_cjs93();
    var ListResourceRecordSetsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_route5336.getIdNormalizerPlugin)(config)
      ];
    }).s("AWSDnsV20130401", "ListResourceRecordSets", {}).n("Route53Client", "ListResourceRecordSetsCommand").f(void 0, void 0).ser(se_ListResourceRecordSetsCommand).de(de_ListResourceRecordSetsCommand).build() {
      static {
        __name(this, "ListResourceRecordSetsCommand");
      }
      static {
        __name2(this, "ListResourceRecordSetsCommand");
      }
    };
    var ListReusableDelegationSetsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDnsV20130401", "ListReusableDelegationSets", {}).n("Route53Client", "ListReusableDelegationSetsCommand").f(void 0, void 0).ser(se_ListReusableDelegationSetsCommand).de(de_ListReusableDelegationSetsCommand).build() {
      static {
        __name(this, "ListReusableDelegationSetsCommand");
      }
      static {
        __name2(this, "ListReusableDelegationSetsCommand");
      }
    };
    var ListTagsForResourceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDnsV20130401", "ListTagsForResource", {}).n("Route53Client", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
      static {
        __name(this, "ListTagsForResourceCommand");
      }
      static {
        __name2(this, "ListTagsForResourceCommand");
      }
    };
    var ListTagsForResourcesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDnsV20130401", "ListTagsForResources", {}).n("Route53Client", "ListTagsForResourcesCommand").f(void 0, void 0).ser(se_ListTagsForResourcesCommand).de(de_ListTagsForResourcesCommand).build() {
      static {
        __name(this, "ListTagsForResourcesCommand");
      }
      static {
        __name2(this, "ListTagsForResourcesCommand");
      }
    };
    var ListTrafficPoliciesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDnsV20130401", "ListTrafficPolicies", {}).n("Route53Client", "ListTrafficPoliciesCommand").f(void 0, void 0).ser(se_ListTrafficPoliciesCommand).de(de_ListTrafficPoliciesCommand).build() {
      static {
        __name(this, "ListTrafficPoliciesCommand");
      }
      static {
        __name2(this, "ListTrafficPoliciesCommand");
      }
    };
    var import_middleware_sdk_route5337 = require_dist_cjs93();
    var ListTrafficPolicyInstancesByHostedZoneCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_route5337.getIdNormalizerPlugin)(config)
      ];
    }).s("AWSDnsV20130401", "ListTrafficPolicyInstancesByHostedZone", {}).n("Route53Client", "ListTrafficPolicyInstancesByHostedZoneCommand").f(void 0, void 0).ser(se_ListTrafficPolicyInstancesByHostedZoneCommand).de(de_ListTrafficPolicyInstancesByHostedZoneCommand).build() {
      static {
        __name(this, "ListTrafficPolicyInstancesByHostedZoneCommand");
      }
      static {
        __name2(this, "ListTrafficPolicyInstancesByHostedZoneCommand");
      }
    };
    var ListTrafficPolicyInstancesByPolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDnsV20130401", "ListTrafficPolicyInstancesByPolicy", {}).n("Route53Client", "ListTrafficPolicyInstancesByPolicyCommand").f(void 0, void 0).ser(se_ListTrafficPolicyInstancesByPolicyCommand).de(de_ListTrafficPolicyInstancesByPolicyCommand).build() {
      static {
        __name(this, "ListTrafficPolicyInstancesByPolicyCommand");
      }
      static {
        __name2(this, "ListTrafficPolicyInstancesByPolicyCommand");
      }
    };
    var ListTrafficPolicyInstancesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDnsV20130401", "ListTrafficPolicyInstances", {}).n("Route53Client", "ListTrafficPolicyInstancesCommand").f(void 0, void 0).ser(se_ListTrafficPolicyInstancesCommand).de(de_ListTrafficPolicyInstancesCommand).build() {
      static {
        __name(this, "ListTrafficPolicyInstancesCommand");
      }
      static {
        __name2(this, "ListTrafficPolicyInstancesCommand");
      }
    };
    var import_middleware_sdk_route5338 = require_dist_cjs93();
    var ListTrafficPolicyVersionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_route5338.getIdNormalizerPlugin)(config)
      ];
    }).s("AWSDnsV20130401", "ListTrafficPolicyVersions", {}).n("Route53Client", "ListTrafficPolicyVersionsCommand").f(void 0, void 0).ser(se_ListTrafficPolicyVersionsCommand).de(de_ListTrafficPolicyVersionsCommand).build() {
      static {
        __name(this, "ListTrafficPolicyVersionsCommand");
      }
      static {
        __name2(this, "ListTrafficPolicyVersionsCommand");
      }
    };
    var import_middleware_sdk_route5339 = require_dist_cjs93();
    var ListVPCAssociationAuthorizationsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_route5339.getIdNormalizerPlugin)(config)
      ];
    }).s("AWSDnsV20130401", "ListVPCAssociationAuthorizations", {}).n("Route53Client", "ListVPCAssociationAuthorizationsCommand").f(void 0, void 0).ser(se_ListVPCAssociationAuthorizationsCommand).de(de_ListVPCAssociationAuthorizationsCommand).build() {
      static {
        __name(this, "ListVPCAssociationAuthorizationsCommand");
      }
      static {
        __name2(this, "ListVPCAssociationAuthorizationsCommand");
      }
    };
    var import_middleware_sdk_route5340 = require_dist_cjs93();
    var TestDNSAnswerCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_route5340.getIdNormalizerPlugin)(config)
      ];
    }).s("AWSDnsV20130401", "TestDNSAnswer", {}).n("Route53Client", "TestDNSAnswerCommand").f(void 0, void 0).ser(se_TestDNSAnswerCommand).de(de_TestDNSAnswerCommand).build() {
      static {
        __name(this, "TestDNSAnswerCommand");
      }
      static {
        __name2(this, "TestDNSAnswerCommand");
      }
    };
    var UpdateHealthCheckCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSDnsV20130401", "UpdateHealthCheck", {}).n("Route53Client", "UpdateHealthCheckCommand").f(void 0, void 0).ser(se_UpdateHealthCheckCommand).de(de_UpdateHealthCheckCommand).build() {
      static {
        __name(this, "UpdateHealthCheckCommand");
      }
      static {
        __name2(this, "UpdateHealthCheckCommand");
      }
    };
    var import_middleware_sdk_route5341 = require_dist_cjs93();
    var UpdateHostedZoneCommentCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_route5341.getIdNormalizerPlugin)(config)
      ];
    }).s("AWSDnsV20130401", "UpdateHostedZoneComment", {}).n("Route53Client", "UpdateHostedZoneCommentCommand").f(void 0, void 0).ser(se_UpdateHostedZoneCommentCommand).de(de_UpdateHostedZoneCommentCommand).build() {
      static {
        __name(this, "UpdateHostedZoneCommentCommand");
      }
      static {
        __name2(this, "UpdateHostedZoneCommentCommand");
      }
    };
    var import_middleware_sdk_route5342 = require_dist_cjs93();
    var UpdateTrafficPolicyCommentCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_route5342.getIdNormalizerPlugin)(config)
      ];
    }).s("AWSDnsV20130401", "UpdateTrafficPolicyComment", {}).n("Route53Client", "UpdateTrafficPolicyCommentCommand").f(void 0, void 0).ser(se_UpdateTrafficPolicyCommentCommand).de(de_UpdateTrafficPolicyCommentCommand).build() {
      static {
        __name(this, "UpdateTrafficPolicyCommentCommand");
      }
      static {
        __name2(this, "UpdateTrafficPolicyCommentCommand");
      }
    };
    var import_middleware_sdk_route5343 = require_dist_cjs93();
    var UpdateTrafficPolicyInstanceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions()),
        (0, import_middleware_sdk_route5343.getIdNormalizerPlugin)(config)
      ];
    }).s("AWSDnsV20130401", "UpdateTrafficPolicyInstance", {}).n("Route53Client", "UpdateTrafficPolicyInstanceCommand").f(void 0, void 0).ser(se_UpdateTrafficPolicyInstanceCommand).de(de_UpdateTrafficPolicyInstanceCommand).build() {
      static {
        __name(this, "UpdateTrafficPolicyInstanceCommand");
      }
      static {
        __name2(this, "UpdateTrafficPolicyInstanceCommand");
      }
    };
    var commands3 = {
      ActivateKeySigningKeyCommand,
      AssociateVPCWithHostedZoneCommand,
      ChangeCidrCollectionCommand,
      ChangeResourceRecordSetsCommand,
      ChangeTagsForResourceCommand,
      CreateCidrCollectionCommand,
      CreateHealthCheckCommand,
      CreateHostedZoneCommand,
      CreateKeySigningKeyCommand,
      CreateQueryLoggingConfigCommand,
      CreateReusableDelegationSetCommand,
      CreateTrafficPolicyCommand,
      CreateTrafficPolicyInstanceCommand,
      CreateTrafficPolicyVersionCommand,
      CreateVPCAssociationAuthorizationCommand,
      DeactivateKeySigningKeyCommand,
      DeleteCidrCollectionCommand,
      DeleteHealthCheckCommand,
      DeleteHostedZoneCommand,
      DeleteKeySigningKeyCommand,
      DeleteQueryLoggingConfigCommand,
      DeleteReusableDelegationSetCommand,
      DeleteTrafficPolicyCommand,
      DeleteTrafficPolicyInstanceCommand,
      DeleteVPCAssociationAuthorizationCommand,
      DisableHostedZoneDNSSECCommand,
      DisassociateVPCFromHostedZoneCommand,
      EnableHostedZoneDNSSECCommand,
      GetAccountLimitCommand,
      GetChangeCommand,
      GetCheckerIpRangesCommand,
      GetDNSSECCommand,
      GetGeoLocationCommand,
      GetHealthCheckCommand,
      GetHealthCheckCountCommand,
      GetHealthCheckLastFailureReasonCommand,
      GetHealthCheckStatusCommand,
      GetHostedZoneCommand: GetHostedZoneCommand2,
      GetHostedZoneCountCommand,
      GetHostedZoneLimitCommand,
      GetQueryLoggingConfigCommand,
      GetReusableDelegationSetCommand,
      GetReusableDelegationSetLimitCommand,
      GetTrafficPolicyCommand,
      GetTrafficPolicyInstanceCommand,
      GetTrafficPolicyInstanceCountCommand,
      ListCidrBlocksCommand,
      ListCidrCollectionsCommand,
      ListCidrLocationsCommand,
      ListGeoLocationsCommand,
      ListHealthChecksCommand,
      ListHostedZonesCommand: ListHostedZonesCommand2,
      ListHostedZonesByNameCommand: ListHostedZonesByNameCommand2,
      ListHostedZonesByVPCCommand,
      ListQueryLoggingConfigsCommand,
      ListResourceRecordSetsCommand,
      ListReusableDelegationSetsCommand,
      ListTagsForResourceCommand,
      ListTagsForResourcesCommand,
      ListTrafficPoliciesCommand,
      ListTrafficPolicyInstancesCommand,
      ListTrafficPolicyInstancesByHostedZoneCommand,
      ListTrafficPolicyInstancesByPolicyCommand,
      ListTrafficPolicyVersionsCommand,
      ListVPCAssociationAuthorizationsCommand,
      TestDNSAnswerCommand,
      UpdateHealthCheckCommand,
      UpdateHostedZoneCommentCommand,
      UpdateTrafficPolicyCommentCommand,
      UpdateTrafficPolicyInstanceCommand
    };
    var Route53 = class extends Route53Client2 {
      static {
        __name(this, "Route53");
      }
      static {
        __name2(this, "Route53");
      }
    };
    (0, import_smithy_client28.createAggregatedClient)(commands3, Route53);
    var paginateListCidrBlocks = (0, import_core17.createPaginator)(Route53Client2, ListCidrBlocksCommand, "NextToken", "NextToken", "MaxResults");
    var paginateListCidrCollections = (0, import_core17.createPaginator)(Route53Client2, ListCidrCollectionsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateListCidrLocations = (0, import_core17.createPaginator)(Route53Client2, ListCidrLocationsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateListHealthChecks = (0, import_core17.createPaginator)(Route53Client2, ListHealthChecksCommand, "Marker", "NextMarker", "MaxItems");
    var paginateListHostedZones = (0, import_core17.createPaginator)(Route53Client2, ListHostedZonesCommand2, "Marker", "NextMarker", "MaxItems");
    var paginateListQueryLoggingConfigs = (0, import_core17.createPaginator)(Route53Client2, ListQueryLoggingConfigsCommand, "NextToken", "NextToken", "MaxResults");
    var import_util_waiter = require_dist_cjs53();
    var checkState = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new GetChangeCommand(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            return result2.ChangeInfo.Status;
          }, "returnComparator");
          if (returnComparator() === "INSYNC") {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForResourceRecordSetsChanged = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 30, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
    }, "waitForResourceRecordSetsChanged");
    var waitUntilResourceRecordSetsChanged = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 30, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilResourceRecordSetsChanged");
  }
});

// ../../node_modules/@aws-sdk/client-sfn/dist-cjs/auth/httpAuthSchemeProvider.js
var require_httpAuthSchemeProvider19 = __commonJS({
  "../../node_modules/@aws-sdk/client-sfn/dist-cjs/auth/httpAuthSchemeProvider.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.resolveHttpAuthSchemeConfig = exports2.defaultSFNHttpAuthSchemeProvider = exports2.defaultSFNHttpAuthSchemeParametersProvider = void 0;
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var util_middleware_1 = require_dist_cjs6();
    var defaultSFNHttpAuthSchemeParametersProvider = /* @__PURE__ */ __name(async (config, context, input) => {
      return {
        operation: (0, util_middleware_1.getSmithyContext)(context).operation,
        region: await (0, util_middleware_1.normalizeProvider)(config.region)() || (() => {
          throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
        })()
      };
    }, "defaultSFNHttpAuthSchemeParametersProvider");
    exports2.defaultSFNHttpAuthSchemeParametersProvider = defaultSFNHttpAuthSchemeParametersProvider;
    function createAwsAuthSigv4HttpAuthOption3(authParameters) {
      return {
        schemeId: "aws.auth#sigv4",
        signingProperties: {
          name: "states",
          region: authParameters.region
        },
        propertiesExtractor: /* @__PURE__ */ __name((config, context) => ({
          signingProperties: {
            config,
            context
          }
        }), "propertiesExtractor")
      };
    }
    __name(createAwsAuthSigv4HttpAuthOption3, "createAwsAuthSigv4HttpAuthOption");
    var defaultSFNHttpAuthSchemeProvider = /* @__PURE__ */ __name((authParameters) => {
      const options = [];
      switch (authParameters.operation) {
        default: {
          options.push(createAwsAuthSigv4HttpAuthOption3(authParameters));
        }
      }
      return options;
    }, "defaultSFNHttpAuthSchemeProvider");
    exports2.defaultSFNHttpAuthSchemeProvider = defaultSFNHttpAuthSchemeProvider;
    var resolveHttpAuthSchemeConfig3 = /* @__PURE__ */ __name((config) => {
      const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
      return Object.assign(config_0, {
        authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? [])
      });
    }, "resolveHttpAuthSchemeConfig");
    exports2.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig3;
  }
});

// ../../node_modules/@aws-sdk/client-sfn/package.json
var require_package19 = __commonJS({
  "../../node_modules/@aws-sdk/client-sfn/package.json"(exports2, module2) {
    module2.exports = {
      name: "@aws-sdk/client-sfn",
      description: "AWS SDK for JavaScript Sfn Client for Node.js, Browser and React Native",
      version: "3.879.0",
      scripts: {
        build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
        "build:cjs": "node ../../scripts/compilation/inline client-sfn",
        "build:es": "tsc -p tsconfig.es.json",
        "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
        "build:types": "tsc -p tsconfig.types.json",
        "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
        clean: "rimraf ./dist-* && rimraf *.tsbuildinfo",
        "extract:docs": "api-extractor run --local",
        "generate:client": "node ../../scripts/generate-clients/single-service --solo sfn"
      },
      main: "./dist-cjs/index.js",
      types: "./dist-types/index.d.ts",
      module: "./dist-es/index.js",
      sideEffects: false,
      dependencies: {
        "@aws-crypto/sha256-browser": "5.2.0",
        "@aws-crypto/sha256-js": "5.2.0",
        "@aws-sdk/core": "3.879.0",
        "@aws-sdk/credential-provider-node": "3.879.0",
        "@aws-sdk/middleware-host-header": "3.873.0",
        "@aws-sdk/middleware-logger": "3.876.0",
        "@aws-sdk/middleware-recursion-detection": "3.873.0",
        "@aws-sdk/middleware-user-agent": "3.879.0",
        "@aws-sdk/region-config-resolver": "3.873.0",
        "@aws-sdk/types": "3.862.0",
        "@aws-sdk/util-endpoints": "3.879.0",
        "@aws-sdk/util-user-agent-browser": "3.873.0",
        "@aws-sdk/util-user-agent-node": "3.879.0",
        "@smithy/config-resolver": "^4.1.5",
        "@smithy/core": "^3.9.0",
        "@smithy/fetch-http-handler": "^5.1.1",
        "@smithy/hash-node": "^4.0.5",
        "@smithy/invalid-dependency": "^4.0.5",
        "@smithy/middleware-content-length": "^4.0.5",
        "@smithy/middleware-endpoint": "^4.1.19",
        "@smithy/middleware-retry": "^4.1.20",
        "@smithy/middleware-serde": "^4.0.9",
        "@smithy/middleware-stack": "^4.0.5",
        "@smithy/node-config-provider": "^4.1.4",
        "@smithy/node-http-handler": "^4.1.1",
        "@smithy/protocol-http": "^5.1.3",
        "@smithy/smithy-client": "^4.5.0",
        "@smithy/types": "^4.3.2",
        "@smithy/url-parser": "^4.0.5",
        "@smithy/util-base64": "^4.0.0",
        "@smithy/util-body-length-browser": "^4.0.0",
        "@smithy/util-body-length-node": "^4.0.0",
        "@smithy/util-defaults-mode-browser": "^4.0.27",
        "@smithy/util-defaults-mode-node": "^4.0.27",
        "@smithy/util-endpoints": "^3.0.7",
        "@smithy/util-middleware": "^4.0.5",
        "@smithy/util-retry": "^4.0.7",
        "@smithy/util-utf8": "^4.0.0",
        "@types/uuid": "^9.0.1",
        tslib: "^2.6.2",
        uuid: "^9.0.1"
      },
      devDependencies: {
        "@tsconfig/node18": "18.2.4",
        "@types/node": "^18.19.69",
        concurrently: "7.0.0",
        "downlevel-dts": "0.10.1",
        rimraf: "3.0.2",
        typescript: "~5.8.3"
      },
      engines: {
        node: ">=18.0.0"
      },
      typesVersions: {
        "<4.0": {
          "dist-types/*": [
            "dist-types/ts3.4/*"
          ]
        }
      },
      files: [
        "dist-*/**"
      ],
      author: {
        name: "AWS SDK for JavaScript Team",
        url: "https://aws.amazon.com/javascript/"
      },
      license: "Apache-2.0",
      browser: {
        "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
      },
      "react-native": {
        "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
      },
      homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sfn",
      repository: {
        type: "git",
        url: "https://github.com/aws/aws-sdk-js-v3.git",
        directory: "clients/client-sfn"
      }
    };
  }
});

// ../../node_modules/@aws-sdk/client-sfn/dist-cjs/endpoint/ruleset.js
var require_ruleset19 = __commonJS({
  "../../node_modules/@aws-sdk/client-sfn/dist-cjs/endpoint/ruleset.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.ruleSet = void 0;
    var t3 = "required";
    var u3 = "fn";
    var v6 = "argv";
    var w3 = "ref";
    var a3 = true;
    var b3 = "isSet";
    var c3 = "booleanEquals";
    var d3 = "error";
    var e3 = "endpoint";
    var f3 = "tree";
    var g3 = "PartitionResult";
    var h3 = { [t3]: false, "type": "String" };
    var i3 = { [t3]: true, "default": false, "type": "Boolean" };
    var j3 = { [w3]: "Endpoint" };
    var k3 = { [u3]: c3, [v6]: [{ [w3]: "UseFIPS" }, true] };
    var l3 = { [u3]: c3, [v6]: [{ [w3]: "UseDualStack" }, true] };
    var m3 = {};
    var n3 = { [w3]: "Region" };
    var o3 = { [u3]: "getAttr", [v6]: [{ [w3]: g3 }, "supportsFIPS"] };
    var p3 = { [u3]: c3, [v6]: [true, { [u3]: "getAttr", [v6]: [{ [w3]: g3 }, "supportsDualStack"] }] };
    var q3 = [k3];
    var r3 = [l3];
    var s3 = [n3];
    var _data3 = { version: "1.0", parameters: { Region: h3, UseDualStack: i3, UseFIPS: i3, Endpoint: h3 }, rules: [{ conditions: [{ [u3]: b3, [v6]: [j3] }], rules: [{ conditions: q3, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d3 }, { conditions: r3, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d3 }, { endpoint: { url: j3, properties: m3, headers: m3 }, type: e3 }], type: f3 }, { conditions: [{ [u3]: b3, [v6]: s3 }], rules: [{ conditions: [{ [u3]: "aws.partition", [v6]: s3, assign: g3 }], rules: [{ conditions: [k3, l3], rules: [{ conditions: [{ [u3]: c3, [v6]: [a3, o3] }, p3], rules: [{ endpoint: { url: "https://states-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m3, headers: m3 }, type: e3 }], type: f3 }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d3 }], type: f3 }, { conditions: q3, rules: [{ conditions: [{ [u3]: c3, [v6]: [o3, a3] }], rules: [{ conditions: [{ [u3]: "stringEquals", [v6]: [n3, "us-gov-west-1"] }], endpoint: { url: "https://states.us-gov-west-1.amazonaws.com", properties: m3, headers: m3 }, type: e3 }, { endpoint: { url: "https://states-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m3, headers: m3 }, type: e3 }], type: f3 }, { error: "FIPS is enabled but this partition does not support FIPS", type: d3 }], type: f3 }, { conditions: r3, rules: [{ conditions: [p3], rules: [{ endpoint: { url: "https://states.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m3, headers: m3 }, type: e3 }], type: f3 }, { error: "DualStack is enabled but this partition does not support DualStack", type: d3 }], type: f3 }, { endpoint: { url: "https://states.{Region}.{PartitionResult#dnsSuffix}", properties: m3, headers: m3 }, type: e3 }], type: f3 }], type: f3 }, { error: "Invalid Configuration: Missing Region", type: d3 }] };
    exports2.ruleSet = _data3;
  }
});

// ../../node_modules/@aws-sdk/client-sfn/dist-cjs/endpoint/endpointResolver.js
var require_endpointResolver19 = __commonJS({
  "../../node_modules/@aws-sdk/client-sfn/dist-cjs/endpoint/endpointResolver.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.defaultEndpointResolver = void 0;
    var util_endpoints_1 = require_dist_cjs21();
    var util_endpoints_2 = require_dist_cjs18();
    var ruleset_1 = require_ruleset19();
    var cache3 = new util_endpoints_2.EndpointCache({
      size: 50,
      params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"]
    });
    var defaultEndpointResolver3 = /* @__PURE__ */ __name((endpointParams, context = {}) => {
      return cache3.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
        endpointParams,
        logger: context.logger
      }));
    }, "defaultEndpointResolver");
    exports2.defaultEndpointResolver = defaultEndpointResolver3;
    util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
  }
});

// ../../node_modules/@aws-sdk/client-sfn/dist-cjs/runtimeConfig.shared.js
var require_runtimeConfig_shared20 = __commonJS({
  "../../node_modules/@aws-sdk/client-sfn/dist-cjs/runtimeConfig.shared.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.getRuntimeConfig = void 0;
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var smithy_client_1 = require_dist_cjs26();
    var url_parser_1 = require_dist_cjs20();
    var util_base64_1 = require_dist_cjs11();
    var util_utf8_1 = require_dist_cjs10();
    var httpAuthSchemeProvider_1 = require_httpAuthSchemeProvider19();
    var endpointResolver_1 = require_endpointResolver19();
    var getRuntimeConfig5 = /* @__PURE__ */ __name((config) => {
      return {
        apiVersion: "2016-11-23",
        base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
        base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
        disableHostPrefix: config?.disableHostPrefix ?? false,
        endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
        extensions: config?.extensions ?? [],
        httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultSFNHttpAuthSchemeProvider,
        httpAuthSchemes: config?.httpAuthSchemes ?? [
          {
            schemeId: "aws.auth#sigv4",
            identityProvider: /* @__PURE__ */ __name((ipc) => ipc.getIdentityProvider("aws.auth#sigv4"), "identityProvider"),
            signer: new core_1.AwsSdkSigV4Signer()
          }
        ],
        logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
        serviceId: config?.serviceId ?? "SFN",
        urlParser: config?.urlParser ?? url_parser_1.parseUrl,
        utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
        utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8
      };
    }, "getRuntimeConfig");
    exports2.getRuntimeConfig = getRuntimeConfig5;
  }
});

// ../../node_modules/@aws-sdk/client-sfn/dist-cjs/runtimeConfig.js
var require_runtimeConfig20 = __commonJS({
  "../../node_modules/@aws-sdk/client-sfn/dist-cjs/runtimeConfig.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.getRuntimeConfig = void 0;
    var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
    var package_json_1 = tslib_1.__importDefault(require_package19());
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var credential_provider_node_1 = require_dist_cjs52();
    var util_user_agent_node_1 = require_dist_cjs41();
    var config_resolver_1 = require_dist_cjs30();
    var hash_node_1 = require_dist_cjs42();
    var middleware_retry_1 = require_dist_cjs37();
    var node_config_provider_1 = require_dist_cjs33();
    var node_http_handler_1 = require_dist_cjs14();
    var util_body_length_node_1 = require_dist_cjs43();
    var util_retry_1 = require_dist_cjs36();
    var runtimeConfig_shared_1 = require_runtimeConfig_shared20();
    var smithy_client_1 = require_dist_cjs26();
    var util_defaults_mode_node_1 = require_dist_cjs44();
    var smithy_client_2 = require_dist_cjs26();
    var getRuntimeConfig5 = /* @__PURE__ */ __name((config) => {
      (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
      const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
      const defaultConfigProvider = /* @__PURE__ */ __name(() => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode), "defaultConfigProvider");
      const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
      (0, core_1.emitWarningIfUnsupportedVersion)(process.version);
      const loaderConfig = {
        profile: config?.profile,
        logger: clientSharedValues.logger
      };
      return {
        ...clientSharedValues,
        ...config,
        runtime: "node",
        defaultsMode,
        authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
        bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
        credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
        defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
        maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
        region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
        requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
        retryMode: config?.retryMode ?? (0, node_config_provider_1.loadConfig)({
          ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
          default: /* @__PURE__ */ __name(async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE, "default")
        }, config),
        sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
        streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
        useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
        useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
        userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig)
      };
    }, "getRuntimeConfig");
    exports2.getRuntimeConfig = getRuntimeConfig5;
  }
});

// ../../node_modules/@aws-sdk/client-sfn/dist-cjs/index.js
var require_dist_cjs95 = __commonJS({
  "../../node_modules/@aws-sdk/client-sfn/dist-cjs/index.js"(exports2, module2) {
    "use strict";
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var index_exports = {};
    __export2(index_exports, {
      ActivityAlreadyExists: /* @__PURE__ */ __name(() => ActivityAlreadyExists, "ActivityAlreadyExists"),
      ActivityDoesNotExist: /* @__PURE__ */ __name(() => ActivityDoesNotExist, "ActivityDoesNotExist"),
      ActivityFailedEventDetailsFilterSensitiveLog: /* @__PURE__ */ __name(() => ActivityFailedEventDetailsFilterSensitiveLog, "ActivityFailedEventDetailsFilterSensitiveLog"),
      ActivityLimitExceeded: /* @__PURE__ */ __name(() => ActivityLimitExceeded, "ActivityLimitExceeded"),
      ActivityScheduleFailedEventDetailsFilterSensitiveLog: /* @__PURE__ */ __name(() => ActivityScheduleFailedEventDetailsFilterSensitiveLog, "ActivityScheduleFailedEventDetailsFilterSensitiveLog"),
      ActivityScheduledEventDetailsFilterSensitiveLog: /* @__PURE__ */ __name(() => ActivityScheduledEventDetailsFilterSensitiveLog, "ActivityScheduledEventDetailsFilterSensitiveLog"),
      ActivitySucceededEventDetailsFilterSensitiveLog: /* @__PURE__ */ __name(() => ActivitySucceededEventDetailsFilterSensitiveLog, "ActivitySucceededEventDetailsFilterSensitiveLog"),
      ActivityTimedOutEventDetailsFilterSensitiveLog: /* @__PURE__ */ __name(() => ActivityTimedOutEventDetailsFilterSensitiveLog, "ActivityTimedOutEventDetailsFilterSensitiveLog"),
      ActivityWorkerLimitExceeded: /* @__PURE__ */ __name(() => ActivityWorkerLimitExceeded, "ActivityWorkerLimitExceeded"),
      ConflictException: /* @__PURE__ */ __name(() => ConflictException, "ConflictException"),
      CreateActivityCommand: /* @__PURE__ */ __name(() => CreateActivityCommand, "CreateActivityCommand"),
      CreateStateMachineAliasCommand: /* @__PURE__ */ __name(() => CreateStateMachineAliasCommand, "CreateStateMachineAliasCommand"),
      CreateStateMachineAliasInputFilterSensitiveLog: /* @__PURE__ */ __name(() => CreateStateMachineAliasInputFilterSensitiveLog, "CreateStateMachineAliasInputFilterSensitiveLog"),
      CreateStateMachineCommand: /* @__PURE__ */ __name(() => CreateStateMachineCommand, "CreateStateMachineCommand"),
      CreateStateMachineInputFilterSensitiveLog: /* @__PURE__ */ __name(() => CreateStateMachineInputFilterSensitiveLog, "CreateStateMachineInputFilterSensitiveLog"),
      DeleteActivityCommand: /* @__PURE__ */ __name(() => DeleteActivityCommand, "DeleteActivityCommand"),
      DeleteStateMachineAliasCommand: /* @__PURE__ */ __name(() => DeleteStateMachineAliasCommand, "DeleteStateMachineAliasCommand"),
      DeleteStateMachineCommand: /* @__PURE__ */ __name(() => DeleteStateMachineCommand, "DeleteStateMachineCommand"),
      DeleteStateMachineVersionCommand: /* @__PURE__ */ __name(() => DeleteStateMachineVersionCommand, "DeleteStateMachineVersionCommand"),
      DescribeActivityCommand: /* @__PURE__ */ __name(() => DescribeActivityCommand, "DescribeActivityCommand"),
      DescribeExecutionCommand: /* @__PURE__ */ __name(() => DescribeExecutionCommand, "DescribeExecutionCommand"),
      DescribeExecutionOutputFilterSensitiveLog: /* @__PURE__ */ __name(() => DescribeExecutionOutputFilterSensitiveLog, "DescribeExecutionOutputFilterSensitiveLog"),
      DescribeMapRunCommand: /* @__PURE__ */ __name(() => DescribeMapRunCommand, "DescribeMapRunCommand"),
      DescribeStateMachineAliasCommand: /* @__PURE__ */ __name(() => DescribeStateMachineAliasCommand, "DescribeStateMachineAliasCommand"),
      DescribeStateMachineAliasOutputFilterSensitiveLog: /* @__PURE__ */ __name(() => DescribeStateMachineAliasOutputFilterSensitiveLog, "DescribeStateMachineAliasOutputFilterSensitiveLog"),
      DescribeStateMachineCommand: /* @__PURE__ */ __name(() => DescribeStateMachineCommand, "DescribeStateMachineCommand"),
      DescribeStateMachineForExecutionCommand: /* @__PURE__ */ __name(() => DescribeStateMachineForExecutionCommand, "DescribeStateMachineForExecutionCommand"),
      DescribeStateMachineForExecutionOutputFilterSensitiveLog: /* @__PURE__ */ __name(() => DescribeStateMachineForExecutionOutputFilterSensitiveLog, "DescribeStateMachineForExecutionOutputFilterSensitiveLog"),
      DescribeStateMachineOutputFilterSensitiveLog: /* @__PURE__ */ __name(() => DescribeStateMachineOutputFilterSensitiveLog, "DescribeStateMachineOutputFilterSensitiveLog"),
      EncryptionType: /* @__PURE__ */ __name(() => EncryptionType, "EncryptionType"),
      EvaluationFailedEventDetailsFilterSensitiveLog: /* @__PURE__ */ __name(() => EvaluationFailedEventDetailsFilterSensitiveLog, "EvaluationFailedEventDetailsFilterSensitiveLog"),
      ExecutionAbortedEventDetailsFilterSensitiveLog: /* @__PURE__ */ __name(() => ExecutionAbortedEventDetailsFilterSensitiveLog, "ExecutionAbortedEventDetailsFilterSensitiveLog"),
      ExecutionAlreadyExists: /* @__PURE__ */ __name(() => ExecutionAlreadyExists, "ExecutionAlreadyExists"),
      ExecutionDoesNotExist: /* @__PURE__ */ __name(() => ExecutionDoesNotExist, "ExecutionDoesNotExist"),
      ExecutionFailedEventDetailsFilterSensitiveLog: /* @__PURE__ */ __name(() => ExecutionFailedEventDetailsFilterSensitiveLog, "ExecutionFailedEventDetailsFilterSensitiveLog"),
      ExecutionLimitExceeded: /* @__PURE__ */ __name(() => ExecutionLimitExceeded, "ExecutionLimitExceeded"),
      ExecutionNotRedrivable: /* @__PURE__ */ __name(() => ExecutionNotRedrivable, "ExecutionNotRedrivable"),
      ExecutionRedriveFilter: /* @__PURE__ */ __name(() => ExecutionRedriveFilter, "ExecutionRedriveFilter"),
      ExecutionRedriveStatus: /* @__PURE__ */ __name(() => ExecutionRedriveStatus, "ExecutionRedriveStatus"),
      ExecutionStartedEventDetailsFilterSensitiveLog: /* @__PURE__ */ __name(() => ExecutionStartedEventDetailsFilterSensitiveLog, "ExecutionStartedEventDetailsFilterSensitiveLog"),
      ExecutionStatus: /* @__PURE__ */ __name(() => ExecutionStatus, "ExecutionStatus"),
      ExecutionSucceededEventDetailsFilterSensitiveLog: /* @__PURE__ */ __name(() => ExecutionSucceededEventDetailsFilterSensitiveLog, "ExecutionSucceededEventDetailsFilterSensitiveLog"),
      ExecutionTimedOutEventDetailsFilterSensitiveLog: /* @__PURE__ */ __name(() => ExecutionTimedOutEventDetailsFilterSensitiveLog, "ExecutionTimedOutEventDetailsFilterSensitiveLog"),
      GetActivityTaskCommand: /* @__PURE__ */ __name(() => GetActivityTaskCommand, "GetActivityTaskCommand"),
      GetActivityTaskOutputFilterSensitiveLog: /* @__PURE__ */ __name(() => GetActivityTaskOutputFilterSensitiveLog, "GetActivityTaskOutputFilterSensitiveLog"),
      GetExecutionHistoryCommand: /* @__PURE__ */ __name(() => GetExecutionHistoryCommand, "GetExecutionHistoryCommand"),
      GetExecutionHistoryOutputFilterSensitiveLog: /* @__PURE__ */ __name(() => GetExecutionHistoryOutputFilterSensitiveLog, "GetExecutionHistoryOutputFilterSensitiveLog"),
      HistoryEventFilterSensitiveLog: /* @__PURE__ */ __name(() => HistoryEventFilterSensitiveLog, "HistoryEventFilterSensitiveLog"),
      HistoryEventType: /* @__PURE__ */ __name(() => HistoryEventType, "HistoryEventType"),
      IncludedData: /* @__PURE__ */ __name(() => IncludedData, "IncludedData"),
      InspectionDataFilterSensitiveLog: /* @__PURE__ */ __name(() => InspectionDataFilterSensitiveLog, "InspectionDataFilterSensitiveLog"),
      InspectionLevel: /* @__PURE__ */ __name(() => InspectionLevel, "InspectionLevel"),
      InvalidArn: /* @__PURE__ */ __name(() => InvalidArn, "InvalidArn"),
      InvalidDefinition: /* @__PURE__ */ __name(() => InvalidDefinition, "InvalidDefinition"),
      InvalidEncryptionConfiguration: /* @__PURE__ */ __name(() => InvalidEncryptionConfiguration, "InvalidEncryptionConfiguration"),
      InvalidExecutionInput: /* @__PURE__ */ __name(() => InvalidExecutionInput, "InvalidExecutionInput"),
      InvalidLoggingConfiguration: /* @__PURE__ */ __name(() => InvalidLoggingConfiguration, "InvalidLoggingConfiguration"),
      InvalidName: /* @__PURE__ */ __name(() => InvalidName, "InvalidName"),
      InvalidOutput: /* @__PURE__ */ __name(() => InvalidOutput, "InvalidOutput"),
      InvalidToken: /* @__PURE__ */ __name(() => InvalidToken, "InvalidToken"),
      InvalidTracingConfiguration: /* @__PURE__ */ __name(() => InvalidTracingConfiguration, "InvalidTracingConfiguration"),
      KmsAccessDeniedException: /* @__PURE__ */ __name(() => KmsAccessDeniedException, "KmsAccessDeniedException"),
      KmsInvalidStateException: /* @__PURE__ */ __name(() => KmsInvalidStateException, "KmsInvalidStateException"),
      KmsKeyState: /* @__PURE__ */ __name(() => KmsKeyState, "KmsKeyState"),
      KmsThrottlingException: /* @__PURE__ */ __name(() => KmsThrottlingException, "KmsThrottlingException"),
      LambdaFunctionFailedEventDetailsFilterSensitiveLog: /* @__PURE__ */ __name(() => LambdaFunctionFailedEventDetailsFilterSensitiveLog, "LambdaFunctionFailedEventDetailsFilterSensitiveLog"),
      LambdaFunctionScheduleFailedEventDetailsFilterSensitiveLog: /* @__PURE__ */ __name(() => LambdaFunctionScheduleFailedEventDetailsFilterSensitiveLog, "LambdaFunctionScheduleFailedEventDetailsFilterSensitiveLog"),
      LambdaFunctionScheduledEventDetailsFilterSensitiveLog: /* @__PURE__ */ __name(() => LambdaFunctionScheduledEventDetailsFilterSensitiveLog, "LambdaFunctionScheduledEventDetailsFilterSensitiveLog"),
      LambdaFunctionStartFailedEventDetailsFilterSensitiveLog: /* @__PURE__ */ __name(() => LambdaFunctionStartFailedEventDetailsFilterSensitiveLog, "LambdaFunctionStartFailedEventDetailsFilterSensitiveLog"),
      LambdaFunctionSucceededEventDetailsFilterSensitiveLog: /* @__PURE__ */ __name(() => LambdaFunctionSucceededEventDetailsFilterSensitiveLog, "LambdaFunctionSucceededEventDetailsFilterSensitiveLog"),
      LambdaFunctionTimedOutEventDetailsFilterSensitiveLog: /* @__PURE__ */ __name(() => LambdaFunctionTimedOutEventDetailsFilterSensitiveLog, "LambdaFunctionTimedOutEventDetailsFilterSensitiveLog"),
      ListActivitiesCommand: /* @__PURE__ */ __name(() => ListActivitiesCommand, "ListActivitiesCommand"),
      ListExecutionsCommand: /* @__PURE__ */ __name(() => ListExecutionsCommand, "ListExecutionsCommand"),
      ListMapRunsCommand: /* @__PURE__ */ __name(() => ListMapRunsCommand, "ListMapRunsCommand"),
      ListStateMachineAliasesCommand: /* @__PURE__ */ __name(() => ListStateMachineAliasesCommand, "ListStateMachineAliasesCommand"),
      ListStateMachineVersionsCommand: /* @__PURE__ */ __name(() => ListStateMachineVersionsCommand, "ListStateMachineVersionsCommand"),
      ListStateMachinesCommand: /* @__PURE__ */ __name(() => ListStateMachinesCommand, "ListStateMachinesCommand"),
      ListTagsForResourceCommand: /* @__PURE__ */ __name(() => ListTagsForResourceCommand, "ListTagsForResourceCommand"),
      LogLevel: /* @__PURE__ */ __name(() => LogLevel2, "LogLevel"),
      MapRunFailedEventDetailsFilterSensitiveLog: /* @__PURE__ */ __name(() => MapRunFailedEventDetailsFilterSensitiveLog, "MapRunFailedEventDetailsFilterSensitiveLog"),
      MapRunStatus: /* @__PURE__ */ __name(() => MapRunStatus, "MapRunStatus"),
      MissingRequiredParameter: /* @__PURE__ */ __name(() => MissingRequiredParameter, "MissingRequiredParameter"),
      PublishStateMachineVersionCommand: /* @__PURE__ */ __name(() => PublishStateMachineVersionCommand, "PublishStateMachineVersionCommand"),
      PublishStateMachineVersionInputFilterSensitiveLog: /* @__PURE__ */ __name(() => PublishStateMachineVersionInputFilterSensitiveLog, "PublishStateMachineVersionInputFilterSensitiveLog"),
      RedriveExecutionCommand: /* @__PURE__ */ __name(() => RedriveExecutionCommand, "RedriveExecutionCommand"),
      ResourceNotFound: /* @__PURE__ */ __name(() => ResourceNotFound, "ResourceNotFound"),
      SFN: /* @__PURE__ */ __name(() => SFN, "SFN"),
      SFNClient: /* @__PURE__ */ __name(() => SFNClient2, "SFNClient"),
      SFNServiceException: /* @__PURE__ */ __name(() => SFNServiceException, "SFNServiceException"),
      SendTaskFailureCommand: /* @__PURE__ */ __name(() => SendTaskFailureCommand, "SendTaskFailureCommand"),
      SendTaskFailureInputFilterSensitiveLog: /* @__PURE__ */ __name(() => SendTaskFailureInputFilterSensitiveLog, "SendTaskFailureInputFilterSensitiveLog"),
      SendTaskHeartbeatCommand: /* @__PURE__ */ __name(() => SendTaskHeartbeatCommand, "SendTaskHeartbeatCommand"),
      SendTaskSuccessCommand: /* @__PURE__ */ __name(() => SendTaskSuccessCommand, "SendTaskSuccessCommand"),
      SendTaskSuccessInputFilterSensitiveLog: /* @__PURE__ */ __name(() => SendTaskSuccessInputFilterSensitiveLog, "SendTaskSuccessInputFilterSensitiveLog"),
      ServiceQuotaExceededException: /* @__PURE__ */ __name(() => ServiceQuotaExceededException, "ServiceQuotaExceededException"),
      StartExecutionCommand: /* @__PURE__ */ __name(() => StartExecutionCommand, "StartExecutionCommand"),
      StartExecutionInputFilterSensitiveLog: /* @__PURE__ */ __name(() => StartExecutionInputFilterSensitiveLog, "StartExecutionInputFilterSensitiveLog"),
      StartSyncExecutionCommand: /* @__PURE__ */ __name(() => StartSyncExecutionCommand, "StartSyncExecutionCommand"),
      StartSyncExecutionInputFilterSensitiveLog: /* @__PURE__ */ __name(() => StartSyncExecutionInputFilterSensitiveLog, "StartSyncExecutionInputFilterSensitiveLog"),
      StartSyncExecutionOutputFilterSensitiveLog: /* @__PURE__ */ __name(() => StartSyncExecutionOutputFilterSensitiveLog, "StartSyncExecutionOutputFilterSensitiveLog"),
      StateEnteredEventDetailsFilterSensitiveLog: /* @__PURE__ */ __name(() => StateEnteredEventDetailsFilterSensitiveLog, "StateEnteredEventDetailsFilterSensitiveLog"),
      StateExitedEventDetailsFilterSensitiveLog: /* @__PURE__ */ __name(() => StateExitedEventDetailsFilterSensitiveLog, "StateExitedEventDetailsFilterSensitiveLog"),
      StateMachineAlreadyExists: /* @__PURE__ */ __name(() => StateMachineAlreadyExists, "StateMachineAlreadyExists"),
      StateMachineDeleting: /* @__PURE__ */ __name(() => StateMachineDeleting, "StateMachineDeleting"),
      StateMachineDoesNotExist: /* @__PURE__ */ __name(() => StateMachineDoesNotExist, "StateMachineDoesNotExist"),
      StateMachineLimitExceeded: /* @__PURE__ */ __name(() => StateMachineLimitExceeded, "StateMachineLimitExceeded"),
      StateMachineStatus: /* @__PURE__ */ __name(() => StateMachineStatus, "StateMachineStatus"),
      StateMachineType: /* @__PURE__ */ __name(() => StateMachineType, "StateMachineType"),
      StateMachineTypeNotSupported: /* @__PURE__ */ __name(() => StateMachineTypeNotSupported, "StateMachineTypeNotSupported"),
      StopExecutionCommand: /* @__PURE__ */ __name(() => StopExecutionCommand, "StopExecutionCommand"),
      StopExecutionInputFilterSensitiveLog: /* @__PURE__ */ __name(() => StopExecutionInputFilterSensitiveLog, "StopExecutionInputFilterSensitiveLog"),
      SyncExecutionStatus: /* @__PURE__ */ __name(() => SyncExecutionStatus, "SyncExecutionStatus"),
      TagResourceCommand: /* @__PURE__ */ __name(() => TagResourceCommand, "TagResourceCommand"),
      TaskDoesNotExist: /* @__PURE__ */ __name(() => TaskDoesNotExist, "TaskDoesNotExist"),
      TaskFailedEventDetailsFilterSensitiveLog: /* @__PURE__ */ __name(() => TaskFailedEventDetailsFilterSensitiveLog, "TaskFailedEventDetailsFilterSensitiveLog"),
      TaskScheduledEventDetailsFilterSensitiveLog: /* @__PURE__ */ __name(() => TaskScheduledEventDetailsFilterSensitiveLog, "TaskScheduledEventDetailsFilterSensitiveLog"),
      TaskStartFailedEventDetailsFilterSensitiveLog: /* @__PURE__ */ __name(() => TaskStartFailedEventDetailsFilterSensitiveLog, "TaskStartFailedEventDetailsFilterSensitiveLog"),
      TaskSubmitFailedEventDetailsFilterSensitiveLog: /* @__PURE__ */ __name(() => TaskSubmitFailedEventDetailsFilterSensitiveLog, "TaskSubmitFailedEventDetailsFilterSensitiveLog"),
      TaskSubmittedEventDetailsFilterSensitiveLog: /* @__PURE__ */ __name(() => TaskSubmittedEventDetailsFilterSensitiveLog, "TaskSubmittedEventDetailsFilterSensitiveLog"),
      TaskSucceededEventDetailsFilterSensitiveLog: /* @__PURE__ */ __name(() => TaskSucceededEventDetailsFilterSensitiveLog, "TaskSucceededEventDetailsFilterSensitiveLog"),
      TaskTimedOut: /* @__PURE__ */ __name(() => TaskTimedOut, "TaskTimedOut"),
      TaskTimedOutEventDetailsFilterSensitiveLog: /* @__PURE__ */ __name(() => TaskTimedOutEventDetailsFilterSensitiveLog, "TaskTimedOutEventDetailsFilterSensitiveLog"),
      TestExecutionStatus: /* @__PURE__ */ __name(() => TestExecutionStatus, "TestExecutionStatus"),
      TestStateCommand: /* @__PURE__ */ __name(() => TestStateCommand, "TestStateCommand"),
      TestStateInputFilterSensitiveLog: /* @__PURE__ */ __name(() => TestStateInputFilterSensitiveLog, "TestStateInputFilterSensitiveLog"),
      TestStateOutputFilterSensitiveLog: /* @__PURE__ */ __name(() => TestStateOutputFilterSensitiveLog, "TestStateOutputFilterSensitiveLog"),
      TooManyTags: /* @__PURE__ */ __name(() => TooManyTags, "TooManyTags"),
      UntagResourceCommand: /* @__PURE__ */ __name(() => UntagResourceCommand, "UntagResourceCommand"),
      UpdateMapRunCommand: /* @__PURE__ */ __name(() => UpdateMapRunCommand, "UpdateMapRunCommand"),
      UpdateStateMachineAliasCommand: /* @__PURE__ */ __name(() => UpdateStateMachineAliasCommand, "UpdateStateMachineAliasCommand"),
      UpdateStateMachineAliasInputFilterSensitiveLog: /* @__PURE__ */ __name(() => UpdateStateMachineAliasInputFilterSensitiveLog, "UpdateStateMachineAliasInputFilterSensitiveLog"),
      UpdateStateMachineCommand: /* @__PURE__ */ __name(() => UpdateStateMachineCommand2, "UpdateStateMachineCommand"),
      UpdateStateMachineInputFilterSensitiveLog: /* @__PURE__ */ __name(() => UpdateStateMachineInputFilterSensitiveLog, "UpdateStateMachineInputFilterSensitiveLog"),
      ValidateStateMachineDefinitionCommand: /* @__PURE__ */ __name(() => ValidateStateMachineDefinitionCommand, "ValidateStateMachineDefinitionCommand"),
      ValidateStateMachineDefinitionDiagnosticFilterSensitiveLog: /* @__PURE__ */ __name(() => ValidateStateMachineDefinitionDiagnosticFilterSensitiveLog, "ValidateStateMachineDefinitionDiagnosticFilterSensitiveLog"),
      ValidateStateMachineDefinitionInputFilterSensitiveLog: /* @__PURE__ */ __name(() => ValidateStateMachineDefinitionInputFilterSensitiveLog, "ValidateStateMachineDefinitionInputFilterSensitiveLog"),
      ValidateStateMachineDefinitionOutputFilterSensitiveLog: /* @__PURE__ */ __name(() => ValidateStateMachineDefinitionOutputFilterSensitiveLog, "ValidateStateMachineDefinitionOutputFilterSensitiveLog"),
      ValidateStateMachineDefinitionResultCode: /* @__PURE__ */ __name(() => ValidateStateMachineDefinitionResultCode, "ValidateStateMachineDefinitionResultCode"),
      ValidateStateMachineDefinitionSeverity: /* @__PURE__ */ __name(() => ValidateStateMachineDefinitionSeverity, "ValidateStateMachineDefinitionSeverity"),
      ValidationException: /* @__PURE__ */ __name(() => ValidationException, "ValidationException"),
      ValidationExceptionReason: /* @__PURE__ */ __name(() => ValidationExceptionReason, "ValidationExceptionReason"),
      __Client: /* @__PURE__ */ __name(() => import_smithy_client28.Client, "__Client"),
      paginateGetExecutionHistory: /* @__PURE__ */ __name(() => paginateGetExecutionHistory, "paginateGetExecutionHistory"),
      paginateListActivities: /* @__PURE__ */ __name(() => paginateListActivities, "paginateListActivities"),
      paginateListExecutions: /* @__PURE__ */ __name(() => paginateListExecutions, "paginateListExecutions"),
      paginateListMapRuns: /* @__PURE__ */ __name(() => paginateListMapRuns, "paginateListMapRuns"),
      paginateListStateMachines: /* @__PURE__ */ __name(() => paginateListStateMachines, "paginateListStateMachines")
    });
    module2.exports = __toCommonJS2(index_exports);
    var import_middleware_host_header3 = require_dist_cjs3();
    var import_middleware_logger3 = require_dist_cjs4();
    var import_middleware_recursion_detection3 = require_dist_cjs5();
    var import_middleware_user_agent3 = require_dist_cjs28();
    var import_config_resolver6 = require_dist_cjs30();
    var import_core17 = (init_dist_es(), __toCommonJS(dist_es_exports));
    var import_middleware_content_length3 = require_dist_cjs31();
    var import_middleware_endpoint8 = require_dist_cjs34();
    var import_middleware_retry5 = require_dist_cjs37();
    var import_httpAuthSchemeProvider5 = require_httpAuthSchemeProvider19();
    var resolveClientEndpointParameters3 = /* @__PURE__ */ __name2((options) => {
      return Object.assign(options, {
        useDualstackEndpoint: options.useDualstackEndpoint ?? false,
        useFipsEndpoint: options.useFipsEndpoint ?? false,
        defaultSigningName: "states"
      });
    }, "resolveClientEndpointParameters");
    var commonParams3 = {
      UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
      Endpoint: { type: "builtInParams", name: "endpoint" },
      Region: { type: "builtInParams", name: "region" },
      UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
    };
    var import_runtimeConfig5 = require_runtimeConfig20();
    var import_region_config_resolver3 = require_dist_cjs45();
    var import_protocol_http16 = require_dist_cjs2();
    var import_smithy_client28 = require_dist_cjs26();
    var getHttpAuthExtensionConfiguration3 = /* @__PURE__ */ __name2((runtimeConfig) => {
      const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
      let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
      let _credentials = runtimeConfig.credentials;
      return {
        setHttpAuthScheme(httpAuthScheme) {
          const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
          if (index === -1) {
            _httpAuthSchemes.push(httpAuthScheme);
          } else {
            _httpAuthSchemes.splice(index, 1, httpAuthScheme);
          }
        },
        httpAuthSchemes() {
          return _httpAuthSchemes;
        },
        setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
          _httpAuthSchemeProvider = httpAuthSchemeProvider;
        },
        httpAuthSchemeProvider() {
          return _httpAuthSchemeProvider;
        },
        setCredentials(credentials) {
          _credentials = credentials;
        },
        credentials() {
          return _credentials;
        }
      };
    }, "getHttpAuthExtensionConfiguration");
    var resolveHttpAuthRuntimeConfig3 = /* @__PURE__ */ __name2((config) => {
      return {
        httpAuthSchemes: config.httpAuthSchemes(),
        httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
        credentials: config.credentials()
      };
    }, "resolveHttpAuthRuntimeConfig");
    var resolveRuntimeExtensions3 = /* @__PURE__ */ __name2((runtimeConfig, extensions) => {
      const extensionConfiguration = Object.assign(
        (0, import_region_config_resolver3.getAwsRegionExtensionConfiguration)(runtimeConfig),
        (0, import_smithy_client28.getDefaultExtensionConfiguration)(runtimeConfig),
        (0, import_protocol_http16.getHttpHandlerExtensionConfiguration)(runtimeConfig),
        getHttpAuthExtensionConfiguration3(runtimeConfig)
      );
      extensions.forEach((extension) => extension.configure(extensionConfiguration));
      return Object.assign(
        runtimeConfig,
        (0, import_region_config_resolver3.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
        (0, import_smithy_client28.resolveDefaultRuntimeConfig)(extensionConfiguration),
        (0, import_protocol_http16.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
        resolveHttpAuthRuntimeConfig3(extensionConfiguration)
      );
    }, "resolveRuntimeExtensions");
    var SFNClient2 = class extends import_smithy_client28.Client {
      static {
        __name(this, "SFNClient");
      }
      static {
        __name2(this, "SFNClient");
      }
      /**
       * The resolved configuration of SFNClient class. This is resolved and normalized from the {@link SFNClientConfig | constructor configuration interface}.
       */
      config;
      constructor(...[configuration]) {
        const _config_0 = (0, import_runtimeConfig5.getRuntimeConfig)(configuration || {});
        super(_config_0);
        this.initConfig = _config_0;
        const _config_1 = resolveClientEndpointParameters3(_config_0);
        const _config_2 = (0, import_middleware_user_agent3.resolveUserAgentConfig)(_config_1);
        const _config_3 = (0, import_middleware_retry5.resolveRetryConfig)(_config_2);
        const _config_4 = (0, import_config_resolver6.resolveRegionConfig)(_config_3);
        const _config_5 = (0, import_middleware_host_header3.resolveHostHeaderConfig)(_config_4);
        const _config_6 = (0, import_middleware_endpoint8.resolveEndpointConfig)(_config_5);
        const _config_7 = (0, import_httpAuthSchemeProvider5.resolveHttpAuthSchemeConfig)(_config_6);
        const _config_8 = resolveRuntimeExtensions3(_config_7, configuration?.extensions || []);
        this.config = _config_8;
        this.middlewareStack.use((0, import_middleware_user_agent3.getUserAgentPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_retry5.getRetryPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_content_length3.getContentLengthPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_host_header3.getHostHeaderPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_logger3.getLoggerPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_recursion_detection3.getRecursionDetectionPlugin)(this.config));
        this.middlewareStack.use(
          (0, import_core17.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
            httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider5.defaultSFNHttpAuthSchemeParametersProvider,
            identityProviderConfigProvider: /* @__PURE__ */ __name2(async (config) => new import_core17.DefaultIdentityProviderConfig({
              "aws.auth#sigv4": config.credentials
            }), "identityProviderConfigProvider")
          })
        );
        this.middlewareStack.use((0, import_core17.getHttpSigningPlugin)(this.config));
      }
      /**
       * Destroy underlying resources, like sockets. It's usually not necessary to do this.
       * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
       * Otherwise, sockets might stay open for quite a long time before the server terminates them.
       */
      destroy() {
        super.destroy();
      }
    };
    var import_middleware_serde5 = require_dist_cjs7();
    var import_core22 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var import_uuid2 = (init_esm_node(), __toCommonJS(esm_node_exports));
    var SFNServiceException = class _SFNServiceException extends import_smithy_client28.ServiceException {
      static {
        __name(this, "_SFNServiceException");
      }
      static {
        __name2(this, "SFNServiceException");
      }
      /**
       * @internal
       */
      constructor(options) {
        super(options);
        Object.setPrototypeOf(this, _SFNServiceException.prototype);
      }
    };
    var ActivityAlreadyExists = class _ActivityAlreadyExists extends SFNServiceException {
      static {
        __name(this, "_ActivityAlreadyExists");
      }
      static {
        __name2(this, "ActivityAlreadyExists");
      }
      name = "ActivityAlreadyExists";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ActivityAlreadyExists",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ActivityAlreadyExists.prototype);
      }
    };
    var ActivityDoesNotExist = class _ActivityDoesNotExist extends SFNServiceException {
      static {
        __name(this, "_ActivityDoesNotExist");
      }
      static {
        __name2(this, "ActivityDoesNotExist");
      }
      name = "ActivityDoesNotExist";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ActivityDoesNotExist",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ActivityDoesNotExist.prototype);
      }
    };
    var ActivityLimitExceeded = class _ActivityLimitExceeded extends SFNServiceException {
      static {
        __name(this, "_ActivityLimitExceeded");
      }
      static {
        __name2(this, "ActivityLimitExceeded");
      }
      name = "ActivityLimitExceeded";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ActivityLimitExceeded",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ActivityLimitExceeded.prototype);
      }
    };
    var ActivityWorkerLimitExceeded = class _ActivityWorkerLimitExceeded extends SFNServiceException {
      static {
        __name(this, "_ActivityWorkerLimitExceeded");
      }
      static {
        __name2(this, "ActivityWorkerLimitExceeded");
      }
      name = "ActivityWorkerLimitExceeded";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ActivityWorkerLimitExceeded",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ActivityWorkerLimitExceeded.prototype);
      }
    };
    var EncryptionType = {
      AWS_OWNED_KEY: "AWS_OWNED_KEY",
      CUSTOMER_MANAGED_KMS_KEY: "CUSTOMER_MANAGED_KMS_KEY"
    };
    var InvalidEncryptionConfiguration = class _InvalidEncryptionConfiguration extends SFNServiceException {
      static {
        __name(this, "_InvalidEncryptionConfiguration");
      }
      static {
        __name2(this, "InvalidEncryptionConfiguration");
      }
      name = "InvalidEncryptionConfiguration";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidEncryptionConfiguration",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidEncryptionConfiguration.prototype);
      }
    };
    var InvalidName = class _InvalidName extends SFNServiceException {
      static {
        __name(this, "_InvalidName");
      }
      static {
        __name2(this, "InvalidName");
      }
      name = "InvalidName";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidName",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidName.prototype);
      }
    };
    var KmsAccessDeniedException = class _KmsAccessDeniedException extends SFNServiceException {
      static {
        __name(this, "_KmsAccessDeniedException");
      }
      static {
        __name2(this, "KmsAccessDeniedException");
      }
      name = "KmsAccessDeniedException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "KmsAccessDeniedException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _KmsAccessDeniedException.prototype);
      }
    };
    var KmsThrottlingException = class _KmsThrottlingException extends SFNServiceException {
      static {
        __name(this, "_KmsThrottlingException");
      }
      static {
        __name2(this, "KmsThrottlingException");
      }
      name = "KmsThrottlingException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "KmsThrottlingException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _KmsThrottlingException.prototype);
      }
    };
    var TooManyTags = class _TooManyTags extends SFNServiceException {
      static {
        __name(this, "_TooManyTags");
      }
      static {
        __name2(this, "TooManyTags");
      }
      name = "TooManyTags";
      $fault = "client";
      resourceName;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "TooManyTags",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _TooManyTags.prototype);
        this.resourceName = opts.resourceName;
      }
    };
    var ConflictException = class _ConflictException extends SFNServiceException {
      static {
        __name(this, "_ConflictException");
      }
      static {
        __name2(this, "ConflictException");
      }
      name = "ConflictException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ConflictException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ConflictException.prototype);
      }
    };
    var LogLevel2 = {
      ALL: "ALL",
      ERROR: "ERROR",
      FATAL: "FATAL",
      OFF: "OFF"
    };
    var StateMachineType = {
      EXPRESS: "EXPRESS",
      STANDARD: "STANDARD"
    };
    var InvalidArn = class _InvalidArn extends SFNServiceException {
      static {
        __name(this, "_InvalidArn");
      }
      static {
        __name2(this, "InvalidArn");
      }
      name = "InvalidArn";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidArn",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidArn.prototype);
      }
    };
    var InvalidDefinition = class _InvalidDefinition extends SFNServiceException {
      static {
        __name(this, "_InvalidDefinition");
      }
      static {
        __name2(this, "InvalidDefinition");
      }
      name = "InvalidDefinition";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidDefinition",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidDefinition.prototype);
      }
    };
    var InvalidLoggingConfiguration = class _InvalidLoggingConfiguration extends SFNServiceException {
      static {
        __name(this, "_InvalidLoggingConfiguration");
      }
      static {
        __name2(this, "InvalidLoggingConfiguration");
      }
      name = "InvalidLoggingConfiguration";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidLoggingConfiguration",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidLoggingConfiguration.prototype);
      }
    };
    var InvalidTracingConfiguration = class _InvalidTracingConfiguration extends SFNServiceException {
      static {
        __name(this, "_InvalidTracingConfiguration");
      }
      static {
        __name2(this, "InvalidTracingConfiguration");
      }
      name = "InvalidTracingConfiguration";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidTracingConfiguration",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidTracingConfiguration.prototype);
      }
    };
    var StateMachineAlreadyExists = class _StateMachineAlreadyExists extends SFNServiceException {
      static {
        __name(this, "_StateMachineAlreadyExists");
      }
      static {
        __name2(this, "StateMachineAlreadyExists");
      }
      name = "StateMachineAlreadyExists";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "StateMachineAlreadyExists",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _StateMachineAlreadyExists.prototype);
      }
    };
    var StateMachineDeleting = class _StateMachineDeleting extends SFNServiceException {
      static {
        __name(this, "_StateMachineDeleting");
      }
      static {
        __name2(this, "StateMachineDeleting");
      }
      name = "StateMachineDeleting";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "StateMachineDeleting",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _StateMachineDeleting.prototype);
      }
    };
    var StateMachineLimitExceeded = class _StateMachineLimitExceeded extends SFNServiceException {
      static {
        __name(this, "_StateMachineLimitExceeded");
      }
      static {
        __name2(this, "StateMachineLimitExceeded");
      }
      name = "StateMachineLimitExceeded";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "StateMachineLimitExceeded",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _StateMachineLimitExceeded.prototype);
      }
    };
    var StateMachineTypeNotSupported = class _StateMachineTypeNotSupported extends SFNServiceException {
      static {
        __name(this, "_StateMachineTypeNotSupported");
      }
      static {
        __name2(this, "StateMachineTypeNotSupported");
      }
      name = "StateMachineTypeNotSupported";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "StateMachineTypeNotSupported",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _StateMachineTypeNotSupported.prototype);
      }
    };
    var ValidationExceptionReason = {
      API_DOES_NOT_SUPPORT_LABELED_ARNS: "API_DOES_NOT_SUPPORT_LABELED_ARNS",
      CANNOT_UPDATE_COMPLETED_MAP_RUN: "CANNOT_UPDATE_COMPLETED_MAP_RUN",
      INVALID_ROUTING_CONFIGURATION: "INVALID_ROUTING_CONFIGURATION",
      MISSING_REQUIRED_PARAMETER: "MISSING_REQUIRED_PARAMETER"
    };
    var ValidationException = class _ValidationException extends SFNServiceException {
      static {
        __name(this, "_ValidationException");
      }
      static {
        __name2(this, "ValidationException");
      }
      name = "ValidationException";
      $fault = "client";
      /**
       * <p>The input does not satisfy the constraints specified by an Amazon Web Services service.</p>
       * @public
       */
      reason;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ValidationException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ValidationException.prototype);
        this.reason = opts.reason;
      }
    };
    var ResourceNotFound = class _ResourceNotFound extends SFNServiceException {
      static {
        __name(this, "_ResourceNotFound");
      }
      static {
        __name2(this, "ResourceNotFound");
      }
      name = "ResourceNotFound";
      $fault = "client";
      resourceName;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ResourceNotFound",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ResourceNotFound.prototype);
        this.resourceName = opts.resourceName;
      }
    };
    var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends SFNServiceException {
      static {
        __name(this, "_ServiceQuotaExceededException");
      }
      static {
        __name2(this, "ServiceQuotaExceededException");
      }
      name = "ServiceQuotaExceededException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ServiceQuotaExceededException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
      }
    };
    var IncludedData = {
      ALL_DATA: "ALL_DATA",
      METADATA_ONLY: "METADATA_ONLY"
    };
    var ExecutionRedriveStatus = {
      NOT_REDRIVABLE: "NOT_REDRIVABLE",
      REDRIVABLE: "REDRIVABLE",
      REDRIVABLE_BY_MAP_RUN: "REDRIVABLE_BY_MAP_RUN"
    };
    var ExecutionStatus = {
      ABORTED: "ABORTED",
      FAILED: "FAILED",
      PENDING_REDRIVE: "PENDING_REDRIVE",
      RUNNING: "RUNNING",
      SUCCEEDED: "SUCCEEDED",
      TIMED_OUT: "TIMED_OUT"
    };
    var ExecutionDoesNotExist = class _ExecutionDoesNotExist extends SFNServiceException {
      static {
        __name(this, "_ExecutionDoesNotExist");
      }
      static {
        __name2(this, "ExecutionDoesNotExist");
      }
      name = "ExecutionDoesNotExist";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ExecutionDoesNotExist",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ExecutionDoesNotExist.prototype);
      }
    };
    var KmsKeyState = {
      CREATING: "CREATING",
      DISABLED: "DISABLED",
      PENDING_DELETION: "PENDING_DELETION",
      PENDING_IMPORT: "PENDING_IMPORT",
      UNAVAILABLE: "UNAVAILABLE"
    };
    var KmsInvalidStateException = class _KmsInvalidStateException extends SFNServiceException {
      static {
        __name(this, "_KmsInvalidStateException");
      }
      static {
        __name2(this, "KmsInvalidStateException");
      }
      name = "KmsInvalidStateException";
      $fault = "client";
      /**
       * <p>Current status of the KMS; key. For example: <code>DISABLED</code>, <code>PENDING_DELETION</code>, <code>PENDING_IMPORT</code>, <code>UNAVAILABLE</code>, <code>CREATING</code>.</p>
       * @public
       */
      kmsKeyState;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "KmsInvalidStateException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _KmsInvalidStateException.prototype);
        this.kmsKeyState = opts.kmsKeyState;
      }
    };
    var MapRunStatus = {
      ABORTED: "ABORTED",
      FAILED: "FAILED",
      RUNNING: "RUNNING",
      SUCCEEDED: "SUCCEEDED"
    };
    var StateMachineStatus = {
      ACTIVE: "ACTIVE",
      DELETING: "DELETING"
    };
    var StateMachineDoesNotExist = class _StateMachineDoesNotExist extends SFNServiceException {
      static {
        __name(this, "_StateMachineDoesNotExist");
      }
      static {
        __name2(this, "StateMachineDoesNotExist");
      }
      name = "StateMachineDoesNotExist";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "StateMachineDoesNotExist",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _StateMachineDoesNotExist.prototype);
      }
    };
    var HistoryEventType = {
      ActivityFailed: "ActivityFailed",
      ActivityScheduleFailed: "ActivityScheduleFailed",
      ActivityScheduled: "ActivityScheduled",
      ActivityStarted: "ActivityStarted",
      ActivitySucceeded: "ActivitySucceeded",
      ActivityTimedOut: "ActivityTimedOut",
      ChoiceStateEntered: "ChoiceStateEntered",
      ChoiceStateExited: "ChoiceStateExited",
      EvaluationFailed: "EvaluationFailed",
      ExecutionAborted: "ExecutionAborted",
      ExecutionFailed: "ExecutionFailed",
      ExecutionRedriven: "ExecutionRedriven",
      ExecutionStarted: "ExecutionStarted",
      ExecutionSucceeded: "ExecutionSucceeded",
      ExecutionTimedOut: "ExecutionTimedOut",
      FailStateEntered: "FailStateEntered",
      LambdaFunctionFailed: "LambdaFunctionFailed",
      LambdaFunctionScheduleFailed: "LambdaFunctionScheduleFailed",
      LambdaFunctionScheduled: "LambdaFunctionScheduled",
      LambdaFunctionStartFailed: "LambdaFunctionStartFailed",
      LambdaFunctionStarted: "LambdaFunctionStarted",
      LambdaFunctionSucceeded: "LambdaFunctionSucceeded",
      LambdaFunctionTimedOut: "LambdaFunctionTimedOut",
      MapIterationAborted: "MapIterationAborted",
      MapIterationFailed: "MapIterationFailed",
      MapIterationStarted: "MapIterationStarted",
      MapIterationSucceeded: "MapIterationSucceeded",
      MapRunAborted: "MapRunAborted",
      MapRunFailed: "MapRunFailed",
      MapRunRedriven: "MapRunRedriven",
      MapRunStarted: "MapRunStarted",
      MapRunSucceeded: "MapRunSucceeded",
      MapStateAborted: "MapStateAborted",
      MapStateEntered: "MapStateEntered",
      MapStateExited: "MapStateExited",
      MapStateFailed: "MapStateFailed",
      MapStateStarted: "MapStateStarted",
      MapStateSucceeded: "MapStateSucceeded",
      ParallelStateAborted: "ParallelStateAborted",
      ParallelStateEntered: "ParallelStateEntered",
      ParallelStateExited: "ParallelStateExited",
      ParallelStateFailed: "ParallelStateFailed",
      ParallelStateStarted: "ParallelStateStarted",
      ParallelStateSucceeded: "ParallelStateSucceeded",
      PassStateEntered: "PassStateEntered",
      PassStateExited: "PassStateExited",
      SucceedStateEntered: "SucceedStateEntered",
      SucceedStateExited: "SucceedStateExited",
      TaskFailed: "TaskFailed",
      TaskScheduled: "TaskScheduled",
      TaskStartFailed: "TaskStartFailed",
      TaskStarted: "TaskStarted",
      TaskStateAborted: "TaskStateAborted",
      TaskStateEntered: "TaskStateEntered",
      TaskStateExited: "TaskStateExited",
      TaskSubmitFailed: "TaskSubmitFailed",
      TaskSubmitted: "TaskSubmitted",
      TaskSucceeded: "TaskSucceeded",
      TaskTimedOut: "TaskTimedOut",
      WaitStateAborted: "WaitStateAborted",
      WaitStateEntered: "WaitStateEntered",
      WaitStateExited: "WaitStateExited"
    };
    var InvalidToken = class _InvalidToken extends SFNServiceException {
      static {
        __name(this, "_InvalidToken");
      }
      static {
        __name2(this, "InvalidToken");
      }
      name = "InvalidToken";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidToken",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidToken.prototype);
      }
    };
    var ExecutionRedriveFilter = {
      NOT_REDRIVEN: "NOT_REDRIVEN",
      REDRIVEN: "REDRIVEN"
    };
    var ExecutionLimitExceeded = class _ExecutionLimitExceeded extends SFNServiceException {
      static {
        __name(this, "_ExecutionLimitExceeded");
      }
      static {
        __name2(this, "ExecutionLimitExceeded");
      }
      name = "ExecutionLimitExceeded";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ExecutionLimitExceeded",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ExecutionLimitExceeded.prototype);
      }
    };
    var ExecutionNotRedrivable = class _ExecutionNotRedrivable extends SFNServiceException {
      static {
        __name(this, "_ExecutionNotRedrivable");
      }
      static {
        __name2(this, "ExecutionNotRedrivable");
      }
      name = "ExecutionNotRedrivable";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ExecutionNotRedrivable",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ExecutionNotRedrivable.prototype);
      }
    };
    var TaskDoesNotExist = class _TaskDoesNotExist extends SFNServiceException {
      static {
        __name(this, "_TaskDoesNotExist");
      }
      static {
        __name2(this, "TaskDoesNotExist");
      }
      name = "TaskDoesNotExist";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "TaskDoesNotExist",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _TaskDoesNotExist.prototype);
      }
    };
    var TaskTimedOut = class _TaskTimedOut extends SFNServiceException {
      static {
        __name(this, "_TaskTimedOut");
      }
      static {
        __name2(this, "TaskTimedOut");
      }
      name = "TaskTimedOut";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "TaskTimedOut",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _TaskTimedOut.prototype);
      }
    };
    var InvalidOutput = class _InvalidOutput extends SFNServiceException {
      static {
        __name(this, "_InvalidOutput");
      }
      static {
        __name2(this, "InvalidOutput");
      }
      name = "InvalidOutput";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidOutput",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidOutput.prototype);
      }
    };
    var ExecutionAlreadyExists = class _ExecutionAlreadyExists extends SFNServiceException {
      static {
        __name(this, "_ExecutionAlreadyExists");
      }
      static {
        __name2(this, "ExecutionAlreadyExists");
      }
      name = "ExecutionAlreadyExists";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ExecutionAlreadyExists",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ExecutionAlreadyExists.prototype);
      }
    };
    var InvalidExecutionInput = class _InvalidExecutionInput extends SFNServiceException {
      static {
        __name(this, "_InvalidExecutionInput");
      }
      static {
        __name2(this, "InvalidExecutionInput");
      }
      name = "InvalidExecutionInput";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidExecutionInput",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidExecutionInput.prototype);
      }
    };
    var SyncExecutionStatus = {
      FAILED: "FAILED",
      SUCCEEDED: "SUCCEEDED",
      TIMED_OUT: "TIMED_OUT"
    };
    var InspectionLevel = {
      DEBUG: "DEBUG",
      INFO: "INFO",
      TRACE: "TRACE"
    };
    var TestExecutionStatus = {
      CAUGHT_ERROR: "CAUGHT_ERROR",
      FAILED: "FAILED",
      RETRIABLE: "RETRIABLE",
      SUCCEEDED: "SUCCEEDED"
    };
    var MissingRequiredParameter = class _MissingRequiredParameter extends SFNServiceException {
      static {
        __name(this, "_MissingRequiredParameter");
      }
      static {
        __name2(this, "MissingRequiredParameter");
      }
      name = "MissingRequiredParameter";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "MissingRequiredParameter",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _MissingRequiredParameter.prototype);
      }
    };
    var ValidateStateMachineDefinitionSeverity = {
      ERROR: "ERROR",
      WARNING: "WARNING"
    };
    var ValidateStateMachineDefinitionResultCode = {
      FAIL: "FAIL",
      OK: "OK"
    };
    var ActivityFailedEventDetailsFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.error && { error: import_smithy_client28.SENSITIVE_STRING },
      ...obj.cause && { cause: import_smithy_client28.SENSITIVE_STRING }
    }), "ActivityFailedEventDetailsFilterSensitiveLog");
    var ActivityScheduledEventDetailsFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.input && { input: import_smithy_client28.SENSITIVE_STRING }
    }), "ActivityScheduledEventDetailsFilterSensitiveLog");
    var ActivityScheduleFailedEventDetailsFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.error && { error: import_smithy_client28.SENSITIVE_STRING },
      ...obj.cause && { cause: import_smithy_client28.SENSITIVE_STRING }
    }), "ActivityScheduleFailedEventDetailsFilterSensitiveLog");
    var ActivitySucceededEventDetailsFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.output && { output: import_smithy_client28.SENSITIVE_STRING }
    }), "ActivitySucceededEventDetailsFilterSensitiveLog");
    var ActivityTimedOutEventDetailsFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.error && { error: import_smithy_client28.SENSITIVE_STRING },
      ...obj.cause && { cause: import_smithy_client28.SENSITIVE_STRING }
    }), "ActivityTimedOutEventDetailsFilterSensitiveLog");
    var CreateStateMachineInputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.definition && { definition: import_smithy_client28.SENSITIVE_STRING },
      ...obj.versionDescription && { versionDescription: import_smithy_client28.SENSITIVE_STRING }
    }), "CreateStateMachineInputFilterSensitiveLog");
    var CreateStateMachineAliasInputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.description && { description: import_smithy_client28.SENSITIVE_STRING }
    }), "CreateStateMachineAliasInputFilterSensitiveLog");
    var DescribeExecutionOutputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.input && { input: import_smithy_client28.SENSITIVE_STRING },
      ...obj.output && { output: import_smithy_client28.SENSITIVE_STRING },
      ...obj.error && { error: import_smithy_client28.SENSITIVE_STRING },
      ...obj.cause && { cause: import_smithy_client28.SENSITIVE_STRING },
      ...obj.redriveStatusReason && { redriveStatusReason: import_smithy_client28.SENSITIVE_STRING }
    }), "DescribeExecutionOutputFilterSensitiveLog");
    var DescribeStateMachineOutputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.definition && { definition: import_smithy_client28.SENSITIVE_STRING },
      ...obj.description && { description: import_smithy_client28.SENSITIVE_STRING },
      ...obj.variableReferences && { variableReferences: import_smithy_client28.SENSITIVE_STRING }
    }), "DescribeStateMachineOutputFilterSensitiveLog");
    var DescribeStateMachineAliasOutputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.description && { description: import_smithy_client28.SENSITIVE_STRING }
    }), "DescribeStateMachineAliasOutputFilterSensitiveLog");
    var DescribeStateMachineForExecutionOutputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.definition && { definition: import_smithy_client28.SENSITIVE_STRING },
      ...obj.variableReferences && { variableReferences: import_smithy_client28.SENSITIVE_STRING }
    }), "DescribeStateMachineForExecutionOutputFilterSensitiveLog");
    var GetActivityTaskOutputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.input && { input: import_smithy_client28.SENSITIVE_STRING }
    }), "GetActivityTaskOutputFilterSensitiveLog");
    var EvaluationFailedEventDetailsFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.error && { error: import_smithy_client28.SENSITIVE_STRING },
      ...obj.cause && { cause: import_smithy_client28.SENSITIVE_STRING },
      ...obj.location && { location: import_smithy_client28.SENSITIVE_STRING }
    }), "EvaluationFailedEventDetailsFilterSensitiveLog");
    var ExecutionAbortedEventDetailsFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.error && { error: import_smithy_client28.SENSITIVE_STRING },
      ...obj.cause && { cause: import_smithy_client28.SENSITIVE_STRING }
    }), "ExecutionAbortedEventDetailsFilterSensitiveLog");
    var ExecutionFailedEventDetailsFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.error && { error: import_smithy_client28.SENSITIVE_STRING },
      ...obj.cause && { cause: import_smithy_client28.SENSITIVE_STRING }
    }), "ExecutionFailedEventDetailsFilterSensitiveLog");
    var ExecutionStartedEventDetailsFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.input && { input: import_smithy_client28.SENSITIVE_STRING }
    }), "ExecutionStartedEventDetailsFilterSensitiveLog");
    var ExecutionSucceededEventDetailsFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.output && { output: import_smithy_client28.SENSITIVE_STRING }
    }), "ExecutionSucceededEventDetailsFilterSensitiveLog");
    var ExecutionTimedOutEventDetailsFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.error && { error: import_smithy_client28.SENSITIVE_STRING },
      ...obj.cause && { cause: import_smithy_client28.SENSITIVE_STRING }
    }), "ExecutionTimedOutEventDetailsFilterSensitiveLog");
    var LambdaFunctionFailedEventDetailsFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.error && { error: import_smithy_client28.SENSITIVE_STRING },
      ...obj.cause && { cause: import_smithy_client28.SENSITIVE_STRING }
    }), "LambdaFunctionFailedEventDetailsFilterSensitiveLog");
    var LambdaFunctionScheduledEventDetailsFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.input && { input: import_smithy_client28.SENSITIVE_STRING }
    }), "LambdaFunctionScheduledEventDetailsFilterSensitiveLog");
    var LambdaFunctionScheduleFailedEventDetailsFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.error && { error: import_smithy_client28.SENSITIVE_STRING },
      ...obj.cause && { cause: import_smithy_client28.SENSITIVE_STRING }
    }), "LambdaFunctionScheduleFailedEventDetailsFilterSensitiveLog");
    var LambdaFunctionStartFailedEventDetailsFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.error && { error: import_smithy_client28.SENSITIVE_STRING },
      ...obj.cause && { cause: import_smithy_client28.SENSITIVE_STRING }
    }), "LambdaFunctionStartFailedEventDetailsFilterSensitiveLog");
    var LambdaFunctionSucceededEventDetailsFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.output && { output: import_smithy_client28.SENSITIVE_STRING }
    }), "LambdaFunctionSucceededEventDetailsFilterSensitiveLog");
    var LambdaFunctionTimedOutEventDetailsFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.error && { error: import_smithy_client28.SENSITIVE_STRING },
      ...obj.cause && { cause: import_smithy_client28.SENSITIVE_STRING }
    }), "LambdaFunctionTimedOutEventDetailsFilterSensitiveLog");
    var MapRunFailedEventDetailsFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.error && { error: import_smithy_client28.SENSITIVE_STRING },
      ...obj.cause && { cause: import_smithy_client28.SENSITIVE_STRING }
    }), "MapRunFailedEventDetailsFilterSensitiveLog");
    var StateEnteredEventDetailsFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.input && { input: import_smithy_client28.SENSITIVE_STRING }
    }), "StateEnteredEventDetailsFilterSensitiveLog");
    var StateExitedEventDetailsFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.output && { output: import_smithy_client28.SENSITIVE_STRING },
      ...obj.assignedVariables && { assignedVariables: import_smithy_client28.SENSITIVE_STRING }
    }), "StateExitedEventDetailsFilterSensitiveLog");
    var TaskFailedEventDetailsFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.error && { error: import_smithy_client28.SENSITIVE_STRING },
      ...obj.cause && { cause: import_smithy_client28.SENSITIVE_STRING }
    }), "TaskFailedEventDetailsFilterSensitiveLog");
    var TaskScheduledEventDetailsFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.parameters && { parameters: import_smithy_client28.SENSITIVE_STRING }
    }), "TaskScheduledEventDetailsFilterSensitiveLog");
    var TaskStartFailedEventDetailsFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.error && { error: import_smithy_client28.SENSITIVE_STRING },
      ...obj.cause && { cause: import_smithy_client28.SENSITIVE_STRING }
    }), "TaskStartFailedEventDetailsFilterSensitiveLog");
    var TaskSubmitFailedEventDetailsFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.error && { error: import_smithy_client28.SENSITIVE_STRING },
      ...obj.cause && { cause: import_smithy_client28.SENSITIVE_STRING }
    }), "TaskSubmitFailedEventDetailsFilterSensitiveLog");
    var TaskSubmittedEventDetailsFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.output && { output: import_smithy_client28.SENSITIVE_STRING }
    }), "TaskSubmittedEventDetailsFilterSensitiveLog");
    var TaskSucceededEventDetailsFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.output && { output: import_smithy_client28.SENSITIVE_STRING }
    }), "TaskSucceededEventDetailsFilterSensitiveLog");
    var TaskTimedOutEventDetailsFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.error && { error: import_smithy_client28.SENSITIVE_STRING },
      ...obj.cause && { cause: import_smithy_client28.SENSITIVE_STRING }
    }), "TaskTimedOutEventDetailsFilterSensitiveLog");
    var HistoryEventFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.activityFailedEventDetails && {
        activityFailedEventDetails: ActivityFailedEventDetailsFilterSensitiveLog(obj.activityFailedEventDetails)
      },
      ...obj.activityScheduleFailedEventDetails && {
        activityScheduleFailedEventDetails: ActivityScheduleFailedEventDetailsFilterSensitiveLog(
          obj.activityScheduleFailedEventDetails
        )
      },
      ...obj.activityScheduledEventDetails && {
        activityScheduledEventDetails: ActivityScheduledEventDetailsFilterSensitiveLog(obj.activityScheduledEventDetails)
      },
      ...obj.activitySucceededEventDetails && {
        activitySucceededEventDetails: ActivitySucceededEventDetailsFilterSensitiveLog(obj.activitySucceededEventDetails)
      },
      ...obj.activityTimedOutEventDetails && {
        activityTimedOutEventDetails: ActivityTimedOutEventDetailsFilterSensitiveLog(obj.activityTimedOutEventDetails)
      },
      ...obj.taskFailedEventDetails && {
        taskFailedEventDetails: TaskFailedEventDetailsFilterSensitiveLog(obj.taskFailedEventDetails)
      },
      ...obj.taskScheduledEventDetails && {
        taskScheduledEventDetails: TaskScheduledEventDetailsFilterSensitiveLog(obj.taskScheduledEventDetails)
      },
      ...obj.taskStartFailedEventDetails && {
        taskStartFailedEventDetails: TaskStartFailedEventDetailsFilterSensitiveLog(obj.taskStartFailedEventDetails)
      },
      ...obj.taskSubmitFailedEventDetails && {
        taskSubmitFailedEventDetails: TaskSubmitFailedEventDetailsFilterSensitiveLog(obj.taskSubmitFailedEventDetails)
      },
      ...obj.taskSubmittedEventDetails && {
        taskSubmittedEventDetails: TaskSubmittedEventDetailsFilterSensitiveLog(obj.taskSubmittedEventDetails)
      },
      ...obj.taskSucceededEventDetails && {
        taskSucceededEventDetails: TaskSucceededEventDetailsFilterSensitiveLog(obj.taskSucceededEventDetails)
      },
      ...obj.taskTimedOutEventDetails && {
        taskTimedOutEventDetails: TaskTimedOutEventDetailsFilterSensitiveLog(obj.taskTimedOutEventDetails)
      },
      ...obj.executionFailedEventDetails && {
        executionFailedEventDetails: ExecutionFailedEventDetailsFilterSensitiveLog(obj.executionFailedEventDetails)
      },
      ...obj.executionStartedEventDetails && {
        executionStartedEventDetails: ExecutionStartedEventDetailsFilterSensitiveLog(obj.executionStartedEventDetails)
      },
      ...obj.executionSucceededEventDetails && {
        executionSucceededEventDetails: ExecutionSucceededEventDetailsFilterSensitiveLog(
          obj.executionSucceededEventDetails
        )
      },
      ...obj.executionAbortedEventDetails && {
        executionAbortedEventDetails: ExecutionAbortedEventDetailsFilterSensitiveLog(obj.executionAbortedEventDetails)
      },
      ...obj.executionTimedOutEventDetails && {
        executionTimedOutEventDetails: ExecutionTimedOutEventDetailsFilterSensitiveLog(obj.executionTimedOutEventDetails)
      },
      ...obj.lambdaFunctionFailedEventDetails && {
        lambdaFunctionFailedEventDetails: LambdaFunctionFailedEventDetailsFilterSensitiveLog(
          obj.lambdaFunctionFailedEventDetails
        )
      },
      ...obj.lambdaFunctionScheduleFailedEventDetails && {
        lambdaFunctionScheduleFailedEventDetails: LambdaFunctionScheduleFailedEventDetailsFilterSensitiveLog(
          obj.lambdaFunctionScheduleFailedEventDetails
        )
      },
      ...obj.lambdaFunctionScheduledEventDetails && {
        lambdaFunctionScheduledEventDetails: LambdaFunctionScheduledEventDetailsFilterSensitiveLog(
          obj.lambdaFunctionScheduledEventDetails
        )
      },
      ...obj.lambdaFunctionStartFailedEventDetails && {
        lambdaFunctionStartFailedEventDetails: LambdaFunctionStartFailedEventDetailsFilterSensitiveLog(
          obj.lambdaFunctionStartFailedEventDetails
        )
      },
      ...obj.lambdaFunctionSucceededEventDetails && {
        lambdaFunctionSucceededEventDetails: LambdaFunctionSucceededEventDetailsFilterSensitiveLog(
          obj.lambdaFunctionSucceededEventDetails
        )
      },
      ...obj.lambdaFunctionTimedOutEventDetails && {
        lambdaFunctionTimedOutEventDetails: LambdaFunctionTimedOutEventDetailsFilterSensitiveLog(
          obj.lambdaFunctionTimedOutEventDetails
        )
      },
      ...obj.stateEnteredEventDetails && {
        stateEnteredEventDetails: StateEnteredEventDetailsFilterSensitiveLog(obj.stateEnteredEventDetails)
      },
      ...obj.stateExitedEventDetails && {
        stateExitedEventDetails: StateExitedEventDetailsFilterSensitiveLog(obj.stateExitedEventDetails)
      },
      ...obj.mapRunFailedEventDetails && {
        mapRunFailedEventDetails: MapRunFailedEventDetailsFilterSensitiveLog(obj.mapRunFailedEventDetails)
      },
      ...obj.evaluationFailedEventDetails && {
        evaluationFailedEventDetails: EvaluationFailedEventDetailsFilterSensitiveLog(obj.evaluationFailedEventDetails)
      }
    }), "HistoryEventFilterSensitiveLog");
    var GetExecutionHistoryOutputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.events && { events: obj.events.map((item) => HistoryEventFilterSensitiveLog(item)) }
    }), "GetExecutionHistoryOutputFilterSensitiveLog");
    var PublishStateMachineVersionInputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.description && { description: import_smithy_client28.SENSITIVE_STRING }
    }), "PublishStateMachineVersionInputFilterSensitiveLog");
    var SendTaskFailureInputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.error && { error: import_smithy_client28.SENSITIVE_STRING },
      ...obj.cause && { cause: import_smithy_client28.SENSITIVE_STRING }
    }), "SendTaskFailureInputFilterSensitiveLog");
    var SendTaskSuccessInputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.output && { output: import_smithy_client28.SENSITIVE_STRING }
    }), "SendTaskSuccessInputFilterSensitiveLog");
    var StartExecutionInputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.input && { input: import_smithy_client28.SENSITIVE_STRING }
    }), "StartExecutionInputFilterSensitiveLog");
    var StartSyncExecutionInputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.input && { input: import_smithy_client28.SENSITIVE_STRING }
    }), "StartSyncExecutionInputFilterSensitiveLog");
    var StartSyncExecutionOutputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.error && { error: import_smithy_client28.SENSITIVE_STRING },
      ...obj.cause && { cause: import_smithy_client28.SENSITIVE_STRING },
      ...obj.input && { input: import_smithy_client28.SENSITIVE_STRING },
      ...obj.output && { output: import_smithy_client28.SENSITIVE_STRING }
    }), "StartSyncExecutionOutputFilterSensitiveLog");
    var StopExecutionInputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.error && { error: import_smithy_client28.SENSITIVE_STRING },
      ...obj.cause && { cause: import_smithy_client28.SENSITIVE_STRING }
    }), "StopExecutionInputFilterSensitiveLog");
    var TestStateInputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.definition && { definition: import_smithy_client28.SENSITIVE_STRING },
      ...obj.input && { input: import_smithy_client28.SENSITIVE_STRING },
      ...obj.variables && { variables: import_smithy_client28.SENSITIVE_STRING }
    }), "TestStateInputFilterSensitiveLog");
    var InspectionDataFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.input && { input: import_smithy_client28.SENSITIVE_STRING },
      ...obj.afterArguments && { afterArguments: import_smithy_client28.SENSITIVE_STRING },
      ...obj.afterInputPath && { afterInputPath: import_smithy_client28.SENSITIVE_STRING },
      ...obj.afterParameters && { afterParameters: import_smithy_client28.SENSITIVE_STRING },
      ...obj.result && { result: import_smithy_client28.SENSITIVE_STRING },
      ...obj.afterResultSelector && { afterResultSelector: import_smithy_client28.SENSITIVE_STRING },
      ...obj.afterResultPath && { afterResultPath: import_smithy_client28.SENSITIVE_STRING },
      ...obj.variables && { variables: import_smithy_client28.SENSITIVE_STRING }
    }), "InspectionDataFilterSensitiveLog");
    var TestStateOutputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.output && { output: import_smithy_client28.SENSITIVE_STRING },
      ...obj.error && { error: import_smithy_client28.SENSITIVE_STRING },
      ...obj.cause && { cause: import_smithy_client28.SENSITIVE_STRING },
      ...obj.inspectionData && { inspectionData: import_smithy_client28.SENSITIVE_STRING }
    }), "TestStateOutputFilterSensitiveLog");
    var UpdateStateMachineInputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.definition && { definition: import_smithy_client28.SENSITIVE_STRING },
      ...obj.versionDescription && { versionDescription: import_smithy_client28.SENSITIVE_STRING }
    }), "UpdateStateMachineInputFilterSensitiveLog");
    var UpdateStateMachineAliasInputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.description && { description: import_smithy_client28.SENSITIVE_STRING }
    }), "UpdateStateMachineAliasInputFilterSensitiveLog");
    var ValidateStateMachineDefinitionInputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.definition && { definition: import_smithy_client28.SENSITIVE_STRING }
    }), "ValidateStateMachineDefinitionInputFilterSensitiveLog");
    var ValidateStateMachineDefinitionDiagnosticFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.code && { code: import_smithy_client28.SENSITIVE_STRING },
      ...obj.message && { message: import_smithy_client28.SENSITIVE_STRING },
      ...obj.location && { location: import_smithy_client28.SENSITIVE_STRING }
    }), "ValidateStateMachineDefinitionDiagnosticFilterSensitiveLog");
    var ValidateStateMachineDefinitionOutputFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.diagnostics && {
        diagnostics: obj.diagnostics.map((item) => ValidateStateMachineDefinitionDiagnosticFilterSensitiveLog(item))
      }
    }), "ValidateStateMachineDefinitionOutputFilterSensitiveLog");
    var se_CreateActivityCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("CreateActivity");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateActivityCommand");
    var se_CreateStateMachineCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("CreateStateMachine");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateStateMachineCommand");
    var se_CreateStateMachineAliasCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("CreateStateMachineAlias");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateStateMachineAliasCommand");
    var se_DeleteActivityCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteActivity");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteActivityCommand");
    var se_DeleteStateMachineCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteStateMachine");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteStateMachineCommand");
    var se_DeleteStateMachineAliasCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteStateMachineAlias");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteStateMachineAliasCommand");
    var se_DeleteStateMachineVersionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteStateMachineVersion");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteStateMachineVersionCommand");
    var se_DescribeActivityCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeActivity");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeActivityCommand");
    var se_DescribeExecutionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeExecution");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeExecutionCommand");
    var se_DescribeMapRunCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeMapRun");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeMapRunCommand");
    var se_DescribeStateMachineCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeStateMachine");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeStateMachineCommand");
    var se_DescribeStateMachineAliasCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeStateMachineAlias");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeStateMachineAliasCommand");
    var se_DescribeStateMachineForExecutionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeStateMachineForExecution");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeStateMachineForExecutionCommand");
    var se_GetActivityTaskCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetActivityTask");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetActivityTaskCommand");
    var se_GetExecutionHistoryCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetExecutionHistory");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetExecutionHistoryCommand");
    var se_ListActivitiesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListActivities");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListActivitiesCommand");
    var se_ListExecutionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListExecutions");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListExecutionsCommand");
    var se_ListMapRunsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListMapRuns");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListMapRunsCommand");
    var se_ListStateMachineAliasesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListStateMachineAliases");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListStateMachineAliasesCommand");
    var se_ListStateMachinesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListStateMachines");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListStateMachinesCommand");
    var se_ListStateMachineVersionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListStateMachineVersions");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListStateMachineVersionsCommand");
    var se_ListTagsForResourceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListTagsForResource");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListTagsForResourceCommand");
    var se_PublishStateMachineVersionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("PublishStateMachineVersion");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_PublishStateMachineVersionCommand");
    var se_RedriveExecutionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("RedriveExecution");
      let body;
      body = JSON.stringify(se_RedriveExecutionInput(input, context));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_RedriveExecutionCommand");
    var se_SendTaskFailureCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("SendTaskFailure");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_SendTaskFailureCommand");
    var se_SendTaskHeartbeatCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("SendTaskHeartbeat");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_SendTaskHeartbeatCommand");
    var se_SendTaskSuccessCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("SendTaskSuccess");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_SendTaskSuccessCommand");
    var se_StartExecutionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("StartExecution");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_StartExecutionCommand");
    var se_StartSyncExecutionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("StartSyncExecution");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      let { hostname: resolvedHostname } = await context.endpoint();
      if (context.disableHostPrefix !== true) {
        resolvedHostname = "sync-" + resolvedHostname;
        if (!(0, import_protocol_http16.isValidHostname)(resolvedHostname)) {
          throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
        }
      }
      return buildHttpRpcRequest2(context, headers, "/", resolvedHostname, body);
    }, "se_StartSyncExecutionCommand");
    var se_StopExecutionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("StopExecution");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_StopExecutionCommand");
    var se_TagResourceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("TagResource");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_TagResourceCommand");
    var se_TestStateCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("TestState");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      let { hostname: resolvedHostname } = await context.endpoint();
      if (context.disableHostPrefix !== true) {
        resolvedHostname = "sync-" + resolvedHostname;
        if (!(0, import_protocol_http16.isValidHostname)(resolvedHostname)) {
          throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
        }
      }
      return buildHttpRpcRequest2(context, headers, "/", resolvedHostname, body);
    }, "se_TestStateCommand");
    var se_UntagResourceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("UntagResource");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UntagResourceCommand");
    var se_UpdateMapRunCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("UpdateMapRun");
      let body;
      body = JSON.stringify(se_UpdateMapRunInput(input, context));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateMapRunCommand");
    var se_UpdateStateMachineCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("UpdateStateMachine");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateStateMachineCommand");
    var se_UpdateStateMachineAliasCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("UpdateStateMachineAlias");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateStateMachineAliasCommand");
    var se_ValidateStateMachineDefinitionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ValidateStateMachineDefinition");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ValidateStateMachineDefinitionCommand");
    var de_CreateActivityCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_CreateActivityOutput(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateActivityCommand");
    var de_CreateStateMachineCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_CreateStateMachineOutput(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateStateMachineCommand");
    var de_CreateStateMachineAliasCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_CreateStateMachineAliasOutput(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateStateMachineAliasCommand");
    var de_DeleteActivityCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteActivityCommand");
    var de_DeleteStateMachineCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteStateMachineCommand");
    var de_DeleteStateMachineAliasCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteStateMachineAliasCommand");
    var de_DeleteStateMachineVersionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteStateMachineVersionCommand");
    var de_DescribeActivityCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DescribeActivityOutput(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeActivityCommand");
    var de_DescribeExecutionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DescribeExecutionOutput(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeExecutionCommand");
    var de_DescribeMapRunCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DescribeMapRunOutput(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeMapRunCommand");
    var de_DescribeStateMachineCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DescribeStateMachineOutput(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeStateMachineCommand");
    var de_DescribeStateMachineAliasCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DescribeStateMachineAliasOutput(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeStateMachineAliasCommand");
    var de_DescribeStateMachineForExecutionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DescribeStateMachineForExecutionOutput(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeStateMachineForExecutionCommand");
    var de_GetActivityTaskCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetActivityTaskCommand");
    var de_GetExecutionHistoryCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_GetExecutionHistoryOutput(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetExecutionHistoryCommand");
    var de_ListActivitiesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_ListActivitiesOutput(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListActivitiesCommand");
    var de_ListExecutionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_ListExecutionsOutput(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListExecutionsCommand");
    var de_ListMapRunsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_ListMapRunsOutput(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListMapRunsCommand");
    var de_ListStateMachineAliasesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_ListStateMachineAliasesOutput(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListStateMachineAliasesCommand");
    var de_ListStateMachinesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_ListStateMachinesOutput(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListStateMachinesCommand");
    var de_ListStateMachineVersionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_ListStateMachineVersionsOutput(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListStateMachineVersionsCommand");
    var de_ListTagsForResourceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListTagsForResourceCommand");
    var de_PublishStateMachineVersionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_PublishStateMachineVersionOutput(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_PublishStateMachineVersionCommand");
    var de_RedriveExecutionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_RedriveExecutionOutput(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_RedriveExecutionCommand");
    var de_SendTaskFailureCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_SendTaskFailureCommand");
    var de_SendTaskHeartbeatCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_SendTaskHeartbeatCommand");
    var de_SendTaskSuccessCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_SendTaskSuccessCommand");
    var de_StartExecutionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_StartExecutionOutput(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_StartExecutionCommand");
    var de_StartSyncExecutionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_StartSyncExecutionOutput(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_StartSyncExecutionCommand");
    var de_StopExecutionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_StopExecutionOutput(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_StopExecutionCommand");
    var de_TagResourceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_TagResourceCommand");
    var de_TestStateCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_TestStateCommand");
    var de_UntagResourceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UntagResourceCommand");
    var de_UpdateMapRunCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UpdateMapRunCommand");
    var de_UpdateStateMachineCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_UpdateStateMachineOutput(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UpdateStateMachineCommand");
    var de_UpdateStateMachineAliasCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_UpdateStateMachineAliasOutput(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UpdateStateMachineAliasCommand");
    var de_ValidateStateMachineDefinitionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ValidateStateMachineDefinitionCommand");
    var de_CommandError3 = /* @__PURE__ */ __name2(async (output, context) => {
      const parsedOutput = {
        ...output,
        body: await (0, import_core22.parseJsonErrorBody)(output.body, context)
      };
      const errorCode = (0, import_core22.loadRestJsonErrorCode)(output, parsedOutput.body);
      switch (errorCode) {
        case "ActivityAlreadyExists":
        case "com.amazonaws.sfn#ActivityAlreadyExists":
          throw await de_ActivityAlreadyExistsRes(parsedOutput, context);
        case "ActivityLimitExceeded":
        case "com.amazonaws.sfn#ActivityLimitExceeded":
          throw await de_ActivityLimitExceededRes(parsedOutput, context);
        case "InvalidEncryptionConfiguration":
        case "com.amazonaws.sfn#InvalidEncryptionConfiguration":
          throw await de_InvalidEncryptionConfigurationRes(parsedOutput, context);
        case "InvalidName":
        case "com.amazonaws.sfn#InvalidName":
          throw await de_InvalidNameRes(parsedOutput, context);
        case "KmsAccessDeniedException":
        case "com.amazonaws.sfn#KmsAccessDeniedException":
          throw await de_KmsAccessDeniedExceptionRes(parsedOutput, context);
        case "KmsThrottlingException":
        case "com.amazonaws.sfn#KmsThrottlingException":
          throw await de_KmsThrottlingExceptionRes(parsedOutput, context);
        case "TooManyTags":
        case "com.amazonaws.sfn#TooManyTags":
          throw await de_TooManyTagsRes(parsedOutput, context);
        case "ConflictException":
        case "com.amazonaws.sfn#ConflictException":
          throw await de_ConflictExceptionRes(parsedOutput, context);
        case "InvalidArn":
        case "com.amazonaws.sfn#InvalidArn":
          throw await de_InvalidArnRes(parsedOutput, context);
        case "InvalidDefinition":
        case "com.amazonaws.sfn#InvalidDefinition":
          throw await de_InvalidDefinitionRes(parsedOutput, context);
        case "InvalidLoggingConfiguration":
        case "com.amazonaws.sfn#InvalidLoggingConfiguration":
          throw await de_InvalidLoggingConfigurationRes(parsedOutput, context);
        case "InvalidTracingConfiguration":
        case "com.amazonaws.sfn#InvalidTracingConfiguration":
          throw await de_InvalidTracingConfigurationRes(parsedOutput, context);
        case "StateMachineAlreadyExists":
        case "com.amazonaws.sfn#StateMachineAlreadyExists":
          throw await de_StateMachineAlreadyExistsRes(parsedOutput, context);
        case "StateMachineDeleting":
        case "com.amazonaws.sfn#StateMachineDeleting":
          throw await de_StateMachineDeletingRes(parsedOutput, context);
        case "StateMachineLimitExceeded":
        case "com.amazonaws.sfn#StateMachineLimitExceeded":
          throw await de_StateMachineLimitExceededRes(parsedOutput, context);
        case "StateMachineTypeNotSupported":
        case "com.amazonaws.sfn#StateMachineTypeNotSupported":
          throw await de_StateMachineTypeNotSupportedRes(parsedOutput, context);
        case "ValidationException":
        case "com.amazonaws.sfn#ValidationException":
          throw await de_ValidationExceptionRes(parsedOutput, context);
        case "ResourceNotFound":
        case "com.amazonaws.sfn#ResourceNotFound":
          throw await de_ResourceNotFoundRes(parsedOutput, context);
        case "ServiceQuotaExceededException":
        case "com.amazonaws.sfn#ServiceQuotaExceededException":
          throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
        case "ActivityDoesNotExist":
        case "com.amazonaws.sfn#ActivityDoesNotExist":
          throw await de_ActivityDoesNotExistRes(parsedOutput, context);
        case "ExecutionDoesNotExist":
        case "com.amazonaws.sfn#ExecutionDoesNotExist":
          throw await de_ExecutionDoesNotExistRes(parsedOutput, context);
        case "KmsInvalidStateException":
        case "com.amazonaws.sfn#KmsInvalidStateException":
          throw await de_KmsInvalidStateExceptionRes(parsedOutput, context);
        case "StateMachineDoesNotExist":
        case "com.amazonaws.sfn#StateMachineDoesNotExist":
          throw await de_StateMachineDoesNotExistRes(parsedOutput, context);
        case "ActivityWorkerLimitExceeded":
        case "com.amazonaws.sfn#ActivityWorkerLimitExceeded":
          throw await de_ActivityWorkerLimitExceededRes(parsedOutput, context);
        case "InvalidToken":
        case "com.amazonaws.sfn#InvalidToken":
          throw await de_InvalidTokenRes(parsedOutput, context);
        case "ExecutionLimitExceeded":
        case "com.amazonaws.sfn#ExecutionLimitExceeded":
          throw await de_ExecutionLimitExceededRes(parsedOutput, context);
        case "ExecutionNotRedrivable":
        case "com.amazonaws.sfn#ExecutionNotRedrivable":
          throw await de_ExecutionNotRedrivableRes(parsedOutput, context);
        case "TaskDoesNotExist":
        case "com.amazonaws.sfn#TaskDoesNotExist":
          throw await de_TaskDoesNotExistRes(parsedOutput, context);
        case "TaskTimedOut":
        case "com.amazonaws.sfn#TaskTimedOut":
          throw await de_TaskTimedOutRes(parsedOutput, context);
        case "InvalidOutput":
        case "com.amazonaws.sfn#InvalidOutput":
          throw await de_InvalidOutputRes(parsedOutput, context);
        case "ExecutionAlreadyExists":
        case "com.amazonaws.sfn#ExecutionAlreadyExists":
          throw await de_ExecutionAlreadyExistsRes(parsedOutput, context);
        case "InvalidExecutionInput":
        case "com.amazonaws.sfn#InvalidExecutionInput":
          throw await de_InvalidExecutionInputRes(parsedOutput, context);
        case "MissingRequiredParameter":
        case "com.amazonaws.sfn#MissingRequiredParameter":
          throw await de_MissingRequiredParameterRes(parsedOutput, context);
        default:
          const parsedBody = parsedOutput.body;
          return throwDefaultError3({
            output,
            parsedBody,
            errorCode
          });
      }
    }, "de_CommandError");
    var de_ActivityAlreadyExistsRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ActivityAlreadyExists({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ActivityAlreadyExistsRes");
    var de_ActivityDoesNotExistRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ActivityDoesNotExist({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ActivityDoesNotExistRes");
    var de_ActivityLimitExceededRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ActivityLimitExceeded({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ActivityLimitExceededRes");
    var de_ActivityWorkerLimitExceededRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ActivityWorkerLimitExceeded({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ActivityWorkerLimitExceededRes");
    var de_ConflictExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ConflictException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ConflictExceptionRes");
    var de_ExecutionAlreadyExistsRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ExecutionAlreadyExists({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ExecutionAlreadyExistsRes");
    var de_ExecutionDoesNotExistRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ExecutionDoesNotExist({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ExecutionDoesNotExistRes");
    var de_ExecutionLimitExceededRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ExecutionLimitExceeded({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ExecutionLimitExceededRes");
    var de_ExecutionNotRedrivableRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ExecutionNotRedrivable({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ExecutionNotRedrivableRes");
    var de_InvalidArnRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidArn({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidArnRes");
    var de_InvalidDefinitionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidDefinition({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidDefinitionRes");
    var de_InvalidEncryptionConfigurationRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidEncryptionConfiguration({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidEncryptionConfigurationRes");
    var de_InvalidExecutionInputRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidExecutionInput({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidExecutionInputRes");
    var de_InvalidLoggingConfigurationRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidLoggingConfiguration({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidLoggingConfigurationRes");
    var de_InvalidNameRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidName({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidNameRes");
    var de_InvalidOutputRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidOutput({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidOutputRes");
    var de_InvalidTokenRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidToken({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidTokenRes");
    var de_InvalidTracingConfigurationRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidTracingConfiguration({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidTracingConfigurationRes");
    var de_KmsAccessDeniedExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new KmsAccessDeniedException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_KmsAccessDeniedExceptionRes");
    var de_KmsInvalidStateExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new KmsInvalidStateException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_KmsInvalidStateExceptionRes");
    var de_KmsThrottlingExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new KmsThrottlingException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_KmsThrottlingExceptionRes");
    var de_MissingRequiredParameterRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new MissingRequiredParameter({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_MissingRequiredParameterRes");
    var de_ResourceNotFoundRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ResourceNotFound({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ResourceNotFoundRes");
    var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ServiceQuotaExceededException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ServiceQuotaExceededExceptionRes");
    var de_StateMachineAlreadyExistsRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new StateMachineAlreadyExists({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_StateMachineAlreadyExistsRes");
    var de_StateMachineDeletingRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new StateMachineDeleting({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_StateMachineDeletingRes");
    var de_StateMachineDoesNotExistRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new StateMachineDoesNotExist({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_StateMachineDoesNotExistRes");
    var de_StateMachineLimitExceededRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new StateMachineLimitExceeded({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_StateMachineLimitExceededRes");
    var de_StateMachineTypeNotSupportedRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new StateMachineTypeNotSupported({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_StateMachineTypeNotSupportedRes");
    var de_TaskDoesNotExistRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new TaskDoesNotExist({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_TaskDoesNotExistRes");
    var de_TaskTimedOutRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new TaskTimedOut({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_TaskTimedOutRes");
    var de_TooManyTagsRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new TooManyTags({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_TooManyTagsRes");
    var de_ValidationExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ValidationException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ValidationExceptionRes");
    var se_RedriveExecutionInput = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        clientToken: [true, (_3) => _3 ?? (0, import_uuid2.v4)()],
        executionArn: []
      });
    }, "se_RedriveExecutionInput");
    var se_UpdateMapRunInput = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        mapRunArn: [],
        maxConcurrency: [],
        toleratedFailureCount: [],
        toleratedFailurePercentage: import_smithy_client28.serializeFloat
      });
    }, "se_UpdateMapRunInput");
    var de_ActivityList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ActivityListItem(entry, context);
      });
      return retVal;
    }, "de_ActivityList");
    var de_ActivityListItem = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        activityArn: import_smithy_client28.expectString,
        creationDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "creationDate"),
        name: import_smithy_client28.expectString
      });
    }, "de_ActivityListItem");
    var de_CreateActivityOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        activityArn: import_smithy_client28.expectString,
        creationDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "creationDate")
      });
    }, "de_CreateActivityOutput");
    var de_CreateStateMachineAliasOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        creationDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "creationDate"),
        stateMachineAliasArn: import_smithy_client28.expectString
      });
    }, "de_CreateStateMachineAliasOutput");
    var de_CreateStateMachineOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        creationDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "creationDate"),
        stateMachineArn: import_smithy_client28.expectString,
        stateMachineVersionArn: import_smithy_client28.expectString
      });
    }, "de_CreateStateMachineOutput");
    var de_DescribeActivityOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        activityArn: import_smithy_client28.expectString,
        creationDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "creationDate"),
        encryptionConfiguration: import_smithy_client28._json,
        name: import_smithy_client28.expectString
      });
    }, "de_DescribeActivityOutput");
    var de_DescribeExecutionOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        cause: import_smithy_client28.expectString,
        error: import_smithy_client28.expectString,
        executionArn: import_smithy_client28.expectString,
        input: import_smithy_client28.expectString,
        inputDetails: import_smithy_client28._json,
        mapRunArn: import_smithy_client28.expectString,
        name: import_smithy_client28.expectString,
        output: import_smithy_client28.expectString,
        outputDetails: import_smithy_client28._json,
        redriveCount: import_smithy_client28.expectInt32,
        redriveDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "redriveDate"),
        redriveStatus: import_smithy_client28.expectString,
        redriveStatusReason: import_smithy_client28.expectString,
        startDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "startDate"),
        stateMachineAliasArn: import_smithy_client28.expectString,
        stateMachineArn: import_smithy_client28.expectString,
        stateMachineVersionArn: import_smithy_client28.expectString,
        status: import_smithy_client28.expectString,
        stopDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "stopDate"),
        traceHeader: import_smithy_client28.expectString
      });
    }, "de_DescribeExecutionOutput");
    var de_DescribeMapRunOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        executionArn: import_smithy_client28.expectString,
        executionCounts: import_smithy_client28._json,
        itemCounts: import_smithy_client28._json,
        mapRunArn: import_smithy_client28.expectString,
        maxConcurrency: import_smithy_client28.expectInt32,
        redriveCount: import_smithy_client28.expectInt32,
        redriveDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "redriveDate"),
        startDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "startDate"),
        status: import_smithy_client28.expectString,
        stopDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "stopDate"),
        toleratedFailureCount: import_smithy_client28.expectLong,
        toleratedFailurePercentage: import_smithy_client28.limitedParseFloat32
      });
    }, "de_DescribeMapRunOutput");
    var de_DescribeStateMachineAliasOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        creationDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "creationDate"),
        description: import_smithy_client28.expectString,
        name: import_smithy_client28.expectString,
        routingConfiguration: import_smithy_client28._json,
        stateMachineAliasArn: import_smithy_client28.expectString,
        updateDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "updateDate")
      });
    }, "de_DescribeStateMachineAliasOutput");
    var de_DescribeStateMachineForExecutionOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        definition: import_smithy_client28.expectString,
        encryptionConfiguration: import_smithy_client28._json,
        label: import_smithy_client28.expectString,
        loggingConfiguration: import_smithy_client28._json,
        mapRunArn: import_smithy_client28.expectString,
        name: import_smithy_client28.expectString,
        revisionId: import_smithy_client28.expectString,
        roleArn: import_smithy_client28.expectString,
        stateMachineArn: import_smithy_client28.expectString,
        tracingConfiguration: import_smithy_client28._json,
        updateDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "updateDate"),
        variableReferences: import_smithy_client28._json
      });
    }, "de_DescribeStateMachineForExecutionOutput");
    var de_DescribeStateMachineOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        creationDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "creationDate"),
        definition: import_smithy_client28.expectString,
        description: import_smithy_client28.expectString,
        encryptionConfiguration: import_smithy_client28._json,
        label: import_smithy_client28.expectString,
        loggingConfiguration: import_smithy_client28._json,
        name: import_smithy_client28.expectString,
        revisionId: import_smithy_client28.expectString,
        roleArn: import_smithy_client28.expectString,
        stateMachineArn: import_smithy_client28.expectString,
        status: import_smithy_client28.expectString,
        tracingConfiguration: import_smithy_client28._json,
        type: import_smithy_client28.expectString,
        variableReferences: import_smithy_client28._json
      });
    }, "de_DescribeStateMachineOutput");
    var de_ExecutionList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ExecutionListItem(entry, context);
      });
      return retVal;
    }, "de_ExecutionList");
    var de_ExecutionListItem = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        executionArn: import_smithy_client28.expectString,
        itemCount: import_smithy_client28.expectInt32,
        mapRunArn: import_smithy_client28.expectString,
        name: import_smithy_client28.expectString,
        redriveCount: import_smithy_client28.expectInt32,
        redriveDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "redriveDate"),
        startDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "startDate"),
        stateMachineAliasArn: import_smithy_client28.expectString,
        stateMachineArn: import_smithy_client28.expectString,
        stateMachineVersionArn: import_smithy_client28.expectString,
        status: import_smithy_client28.expectString,
        stopDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "stopDate")
      });
    }, "de_ExecutionListItem");
    var de_GetExecutionHistoryOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        events: /* @__PURE__ */ __name2((_3) => de_HistoryEventList(_3, context), "events"),
        nextToken: import_smithy_client28.expectString
      });
    }, "de_GetExecutionHistoryOutput");
    var de_HistoryEvent = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        activityFailedEventDetails: import_smithy_client28._json,
        activityScheduleFailedEventDetails: import_smithy_client28._json,
        activityScheduledEventDetails: import_smithy_client28._json,
        activityStartedEventDetails: import_smithy_client28._json,
        activitySucceededEventDetails: import_smithy_client28._json,
        activityTimedOutEventDetails: import_smithy_client28._json,
        evaluationFailedEventDetails: import_smithy_client28._json,
        executionAbortedEventDetails: import_smithy_client28._json,
        executionFailedEventDetails: import_smithy_client28._json,
        executionRedrivenEventDetails: import_smithy_client28._json,
        executionStartedEventDetails: import_smithy_client28._json,
        executionSucceededEventDetails: import_smithy_client28._json,
        executionTimedOutEventDetails: import_smithy_client28._json,
        id: import_smithy_client28.expectLong,
        lambdaFunctionFailedEventDetails: import_smithy_client28._json,
        lambdaFunctionScheduleFailedEventDetails: import_smithy_client28._json,
        lambdaFunctionScheduledEventDetails: import_smithy_client28._json,
        lambdaFunctionStartFailedEventDetails: import_smithy_client28._json,
        lambdaFunctionSucceededEventDetails: import_smithy_client28._json,
        lambdaFunctionTimedOutEventDetails: import_smithy_client28._json,
        mapIterationAbortedEventDetails: import_smithy_client28._json,
        mapIterationFailedEventDetails: import_smithy_client28._json,
        mapIterationStartedEventDetails: import_smithy_client28._json,
        mapIterationSucceededEventDetails: import_smithy_client28._json,
        mapRunFailedEventDetails: import_smithy_client28._json,
        mapRunRedrivenEventDetails: import_smithy_client28._json,
        mapRunStartedEventDetails: import_smithy_client28._json,
        mapStateStartedEventDetails: import_smithy_client28._json,
        previousEventId: import_smithy_client28.expectLong,
        stateEnteredEventDetails: import_smithy_client28._json,
        stateExitedEventDetails: import_smithy_client28._json,
        taskFailedEventDetails: import_smithy_client28._json,
        taskScheduledEventDetails: import_smithy_client28._json,
        taskStartFailedEventDetails: import_smithy_client28._json,
        taskStartedEventDetails: import_smithy_client28._json,
        taskSubmitFailedEventDetails: import_smithy_client28._json,
        taskSubmittedEventDetails: import_smithy_client28._json,
        taskSucceededEventDetails: import_smithy_client28._json,
        taskTimedOutEventDetails: import_smithy_client28._json,
        timestamp: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "timestamp"),
        type: import_smithy_client28.expectString
      });
    }, "de_HistoryEvent");
    var de_HistoryEventList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_HistoryEvent(entry, context);
      });
      return retVal;
    }, "de_HistoryEventList");
    var de_ListActivitiesOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        activities: /* @__PURE__ */ __name2((_3) => de_ActivityList(_3, context), "activities"),
        nextToken: import_smithy_client28.expectString
      });
    }, "de_ListActivitiesOutput");
    var de_ListExecutionsOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        executions: /* @__PURE__ */ __name2((_3) => de_ExecutionList(_3, context), "executions"),
        nextToken: import_smithy_client28.expectString
      });
    }, "de_ListExecutionsOutput");
    var de_ListMapRunsOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        mapRuns: /* @__PURE__ */ __name2((_3) => de_MapRunList(_3, context), "mapRuns"),
        nextToken: import_smithy_client28.expectString
      });
    }, "de_ListMapRunsOutput");
    var de_ListStateMachineAliasesOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        nextToken: import_smithy_client28.expectString,
        stateMachineAliases: /* @__PURE__ */ __name2((_3) => de_StateMachineAliasList(_3, context), "stateMachineAliases")
      });
    }, "de_ListStateMachineAliasesOutput");
    var de_ListStateMachinesOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        nextToken: import_smithy_client28.expectString,
        stateMachines: /* @__PURE__ */ __name2((_3) => de_StateMachineList(_3, context), "stateMachines")
      });
    }, "de_ListStateMachinesOutput");
    var de_ListStateMachineVersionsOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        nextToken: import_smithy_client28.expectString,
        stateMachineVersions: /* @__PURE__ */ __name2((_3) => de_StateMachineVersionList(_3, context), "stateMachineVersions")
      });
    }, "de_ListStateMachineVersionsOutput");
    var de_MapRunList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_MapRunListItem(entry, context);
      });
      return retVal;
    }, "de_MapRunList");
    var de_MapRunListItem = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        executionArn: import_smithy_client28.expectString,
        mapRunArn: import_smithy_client28.expectString,
        startDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "startDate"),
        stateMachineArn: import_smithy_client28.expectString,
        stopDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "stopDate")
      });
    }, "de_MapRunListItem");
    var de_PublishStateMachineVersionOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        creationDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "creationDate"),
        stateMachineVersionArn: import_smithy_client28.expectString
      });
    }, "de_PublishStateMachineVersionOutput");
    var de_RedriveExecutionOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        redriveDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "redriveDate")
      });
    }, "de_RedriveExecutionOutput");
    var de_StartExecutionOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        executionArn: import_smithy_client28.expectString,
        startDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "startDate")
      });
    }, "de_StartExecutionOutput");
    var de_StartSyncExecutionOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        billingDetails: import_smithy_client28._json,
        cause: import_smithy_client28.expectString,
        error: import_smithy_client28.expectString,
        executionArn: import_smithy_client28.expectString,
        input: import_smithy_client28.expectString,
        inputDetails: import_smithy_client28._json,
        name: import_smithy_client28.expectString,
        output: import_smithy_client28.expectString,
        outputDetails: import_smithy_client28._json,
        startDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "startDate"),
        stateMachineArn: import_smithy_client28.expectString,
        status: import_smithy_client28.expectString,
        stopDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "stopDate"),
        traceHeader: import_smithy_client28.expectString
      });
    }, "de_StartSyncExecutionOutput");
    var de_StateMachineAliasList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_StateMachineAliasListItem(entry, context);
      });
      return retVal;
    }, "de_StateMachineAliasList");
    var de_StateMachineAliasListItem = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        creationDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "creationDate"),
        stateMachineAliasArn: import_smithy_client28.expectString
      });
    }, "de_StateMachineAliasListItem");
    var de_StateMachineList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_StateMachineListItem(entry, context);
      });
      return retVal;
    }, "de_StateMachineList");
    var de_StateMachineListItem = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        creationDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "creationDate"),
        name: import_smithy_client28.expectString,
        stateMachineArn: import_smithy_client28.expectString,
        type: import_smithy_client28.expectString
      });
    }, "de_StateMachineListItem");
    var de_StateMachineVersionList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_StateMachineVersionListItem(entry, context);
      });
      return retVal;
    }, "de_StateMachineVersionList");
    var de_StateMachineVersionListItem = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        creationDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "creationDate"),
        stateMachineVersionArn: import_smithy_client28.expectString
      });
    }, "de_StateMachineVersionListItem");
    var de_StopExecutionOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        stopDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "stopDate")
      });
    }, "de_StopExecutionOutput");
    var de_UpdateStateMachineAliasOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        updateDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "updateDate")
      });
    }, "de_UpdateStateMachineAliasOutput");
    var de_UpdateStateMachineOutput = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        revisionId: import_smithy_client28.expectString,
        stateMachineVersionArn: import_smithy_client28.expectString,
        updateDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "updateDate")
      });
    }, "de_UpdateStateMachineOutput");
    var deserializeMetadata3 = /* @__PURE__ */ __name2((output) => ({
      httpStatusCode: output.statusCode,
      requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
      extendedRequestId: output.headers["x-amz-id-2"],
      cfId: output.headers["x-amz-cf-id"]
    }), "deserializeMetadata");
    var throwDefaultError3 = (0, import_smithy_client28.withBaseException)(SFNServiceException);
    var buildHttpRpcRequest2 = /* @__PURE__ */ __name2(async (context, headers, path38, resolvedHostname, body) => {
      const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
      const contents = {
        protocol,
        hostname,
        port,
        method: "POST",
        path: basePath.endsWith("/") ? basePath.slice(0, -1) + path38 : basePath + path38,
        headers
      };
      if (resolvedHostname !== void 0) {
        contents.hostname = resolvedHostname;
      }
      if (body !== void 0) {
        contents.body = body;
      }
      return new import_protocol_http16.HttpRequest(contents);
    }, "buildHttpRpcRequest");
    function sharedHeaders(operation) {
      return {
        "content-type": "application/x-amz-json-1.0",
        "x-amz-target": `AWSStepFunctions.${operation}`
      };
    }
    __name(sharedHeaders, "sharedHeaders");
    __name2(sharedHeaders, "sharedHeaders");
    var CreateActivityCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSStepFunctions", "CreateActivity", {}).n("SFNClient", "CreateActivityCommand").f(void 0, void 0).ser(se_CreateActivityCommand).de(de_CreateActivityCommand).build() {
      static {
        __name(this, "CreateActivityCommand");
      }
      static {
        __name2(this, "CreateActivityCommand");
      }
    };
    var CreateStateMachineAliasCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSStepFunctions", "CreateStateMachineAlias", {}).n("SFNClient", "CreateStateMachineAliasCommand").f(CreateStateMachineAliasInputFilterSensitiveLog, void 0).ser(se_CreateStateMachineAliasCommand).de(de_CreateStateMachineAliasCommand).build() {
      static {
        __name(this, "CreateStateMachineAliasCommand");
      }
      static {
        __name2(this, "CreateStateMachineAliasCommand");
      }
    };
    var CreateStateMachineCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSStepFunctions", "CreateStateMachine", {}).n("SFNClient", "CreateStateMachineCommand").f(CreateStateMachineInputFilterSensitiveLog, void 0).ser(se_CreateStateMachineCommand).de(de_CreateStateMachineCommand).build() {
      static {
        __name(this, "CreateStateMachineCommand");
      }
      static {
        __name2(this, "CreateStateMachineCommand");
      }
    };
    var DeleteActivityCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSStepFunctions", "DeleteActivity", {}).n("SFNClient", "DeleteActivityCommand").f(void 0, void 0).ser(se_DeleteActivityCommand).de(de_DeleteActivityCommand).build() {
      static {
        __name(this, "DeleteActivityCommand");
      }
      static {
        __name2(this, "DeleteActivityCommand");
      }
    };
    var DeleteStateMachineAliasCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSStepFunctions", "DeleteStateMachineAlias", {}).n("SFNClient", "DeleteStateMachineAliasCommand").f(void 0, void 0).ser(se_DeleteStateMachineAliasCommand).de(de_DeleteStateMachineAliasCommand).build() {
      static {
        __name(this, "DeleteStateMachineAliasCommand");
      }
      static {
        __name2(this, "DeleteStateMachineAliasCommand");
      }
    };
    var DeleteStateMachineCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSStepFunctions", "DeleteStateMachine", {}).n("SFNClient", "DeleteStateMachineCommand").f(void 0, void 0).ser(se_DeleteStateMachineCommand).de(de_DeleteStateMachineCommand).build() {
      static {
        __name(this, "DeleteStateMachineCommand");
      }
      static {
        __name2(this, "DeleteStateMachineCommand");
      }
    };
    var DeleteStateMachineVersionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSStepFunctions", "DeleteStateMachineVersion", {}).n("SFNClient", "DeleteStateMachineVersionCommand").f(void 0, void 0).ser(se_DeleteStateMachineVersionCommand).de(de_DeleteStateMachineVersionCommand).build() {
      static {
        __name(this, "DeleteStateMachineVersionCommand");
      }
      static {
        __name2(this, "DeleteStateMachineVersionCommand");
      }
    };
    var DescribeActivityCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSStepFunctions", "DescribeActivity", {}).n("SFNClient", "DescribeActivityCommand").f(void 0, void 0).ser(se_DescribeActivityCommand).de(de_DescribeActivityCommand).build() {
      static {
        __name(this, "DescribeActivityCommand");
      }
      static {
        __name2(this, "DescribeActivityCommand");
      }
    };
    var DescribeExecutionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSStepFunctions", "DescribeExecution", {}).n("SFNClient", "DescribeExecutionCommand").f(void 0, DescribeExecutionOutputFilterSensitiveLog).ser(se_DescribeExecutionCommand).de(de_DescribeExecutionCommand).build() {
      static {
        __name(this, "DescribeExecutionCommand");
      }
      static {
        __name2(this, "DescribeExecutionCommand");
      }
    };
    var DescribeMapRunCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSStepFunctions", "DescribeMapRun", {}).n("SFNClient", "DescribeMapRunCommand").f(void 0, void 0).ser(se_DescribeMapRunCommand).de(de_DescribeMapRunCommand).build() {
      static {
        __name(this, "DescribeMapRunCommand");
      }
      static {
        __name2(this, "DescribeMapRunCommand");
      }
    };
    var DescribeStateMachineAliasCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSStepFunctions", "DescribeStateMachineAlias", {}).n("SFNClient", "DescribeStateMachineAliasCommand").f(void 0, DescribeStateMachineAliasOutputFilterSensitiveLog).ser(se_DescribeStateMachineAliasCommand).de(de_DescribeStateMachineAliasCommand).build() {
      static {
        __name(this, "DescribeStateMachineAliasCommand");
      }
      static {
        __name2(this, "DescribeStateMachineAliasCommand");
      }
    };
    var DescribeStateMachineCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSStepFunctions", "DescribeStateMachine", {}).n("SFNClient", "DescribeStateMachineCommand").f(void 0, DescribeStateMachineOutputFilterSensitiveLog).ser(se_DescribeStateMachineCommand).de(de_DescribeStateMachineCommand).build() {
      static {
        __name(this, "DescribeStateMachineCommand");
      }
      static {
        __name2(this, "DescribeStateMachineCommand");
      }
    };
    var DescribeStateMachineForExecutionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSStepFunctions", "DescribeStateMachineForExecution", {}).n("SFNClient", "DescribeStateMachineForExecutionCommand").f(void 0, DescribeStateMachineForExecutionOutputFilterSensitiveLog).ser(se_DescribeStateMachineForExecutionCommand).de(de_DescribeStateMachineForExecutionCommand).build() {
      static {
        __name(this, "DescribeStateMachineForExecutionCommand");
      }
      static {
        __name2(this, "DescribeStateMachineForExecutionCommand");
      }
    };
    var GetActivityTaskCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSStepFunctions", "GetActivityTask", {}).n("SFNClient", "GetActivityTaskCommand").f(void 0, GetActivityTaskOutputFilterSensitiveLog).ser(se_GetActivityTaskCommand).de(de_GetActivityTaskCommand).build() {
      static {
        __name(this, "GetActivityTaskCommand");
      }
      static {
        __name2(this, "GetActivityTaskCommand");
      }
    };
    var GetExecutionHistoryCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSStepFunctions", "GetExecutionHistory", {}).n("SFNClient", "GetExecutionHistoryCommand").f(void 0, GetExecutionHistoryOutputFilterSensitiveLog).ser(se_GetExecutionHistoryCommand).de(de_GetExecutionHistoryCommand).build() {
      static {
        __name(this, "GetExecutionHistoryCommand");
      }
      static {
        __name2(this, "GetExecutionHistoryCommand");
      }
    };
    var ListActivitiesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSStepFunctions", "ListActivities", {}).n("SFNClient", "ListActivitiesCommand").f(void 0, void 0).ser(se_ListActivitiesCommand).de(de_ListActivitiesCommand).build() {
      static {
        __name(this, "ListActivitiesCommand");
      }
      static {
        __name2(this, "ListActivitiesCommand");
      }
    };
    var ListExecutionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSStepFunctions", "ListExecutions", {}).n("SFNClient", "ListExecutionsCommand").f(void 0, void 0).ser(se_ListExecutionsCommand).de(de_ListExecutionsCommand).build() {
      static {
        __name(this, "ListExecutionsCommand");
      }
      static {
        __name2(this, "ListExecutionsCommand");
      }
    };
    var ListMapRunsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSStepFunctions", "ListMapRuns", {}).n("SFNClient", "ListMapRunsCommand").f(void 0, void 0).ser(se_ListMapRunsCommand).de(de_ListMapRunsCommand).build() {
      static {
        __name(this, "ListMapRunsCommand");
      }
      static {
        __name2(this, "ListMapRunsCommand");
      }
    };
    var ListStateMachineAliasesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSStepFunctions", "ListStateMachineAliases", {}).n("SFNClient", "ListStateMachineAliasesCommand").f(void 0, void 0).ser(se_ListStateMachineAliasesCommand).de(de_ListStateMachineAliasesCommand).build() {
      static {
        __name(this, "ListStateMachineAliasesCommand");
      }
      static {
        __name2(this, "ListStateMachineAliasesCommand");
      }
    };
    var ListStateMachinesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSStepFunctions", "ListStateMachines", {}).n("SFNClient", "ListStateMachinesCommand").f(void 0, void 0).ser(se_ListStateMachinesCommand).de(de_ListStateMachinesCommand).build() {
      static {
        __name(this, "ListStateMachinesCommand");
      }
      static {
        __name2(this, "ListStateMachinesCommand");
      }
    };
    var ListStateMachineVersionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSStepFunctions", "ListStateMachineVersions", {}).n("SFNClient", "ListStateMachineVersionsCommand").f(void 0, void 0).ser(se_ListStateMachineVersionsCommand).de(de_ListStateMachineVersionsCommand).build() {
      static {
        __name(this, "ListStateMachineVersionsCommand");
      }
      static {
        __name2(this, "ListStateMachineVersionsCommand");
      }
    };
    var ListTagsForResourceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSStepFunctions", "ListTagsForResource", {}).n("SFNClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
      static {
        __name(this, "ListTagsForResourceCommand");
      }
      static {
        __name2(this, "ListTagsForResourceCommand");
      }
    };
    var PublishStateMachineVersionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSStepFunctions", "PublishStateMachineVersion", {}).n("SFNClient", "PublishStateMachineVersionCommand").f(PublishStateMachineVersionInputFilterSensitiveLog, void 0).ser(se_PublishStateMachineVersionCommand).de(de_PublishStateMachineVersionCommand).build() {
      static {
        __name(this, "PublishStateMachineVersionCommand");
      }
      static {
        __name2(this, "PublishStateMachineVersionCommand");
      }
    };
    var RedriveExecutionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSStepFunctions", "RedriveExecution", {}).n("SFNClient", "RedriveExecutionCommand").f(void 0, void 0).ser(se_RedriveExecutionCommand).de(de_RedriveExecutionCommand).build() {
      static {
        __name(this, "RedriveExecutionCommand");
      }
      static {
        __name2(this, "RedriveExecutionCommand");
      }
    };
    var SendTaskFailureCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSStepFunctions", "SendTaskFailure", {}).n("SFNClient", "SendTaskFailureCommand").f(SendTaskFailureInputFilterSensitiveLog, void 0).ser(se_SendTaskFailureCommand).de(de_SendTaskFailureCommand).build() {
      static {
        __name(this, "SendTaskFailureCommand");
      }
      static {
        __name2(this, "SendTaskFailureCommand");
      }
    };
    var SendTaskHeartbeatCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSStepFunctions", "SendTaskHeartbeat", {}).n("SFNClient", "SendTaskHeartbeatCommand").f(void 0, void 0).ser(se_SendTaskHeartbeatCommand).de(de_SendTaskHeartbeatCommand).build() {
      static {
        __name(this, "SendTaskHeartbeatCommand");
      }
      static {
        __name2(this, "SendTaskHeartbeatCommand");
      }
    };
    var SendTaskSuccessCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSStepFunctions", "SendTaskSuccess", {}).n("SFNClient", "SendTaskSuccessCommand").f(SendTaskSuccessInputFilterSensitiveLog, void 0).ser(se_SendTaskSuccessCommand).de(de_SendTaskSuccessCommand).build() {
      static {
        __name(this, "SendTaskSuccessCommand");
      }
      static {
        __name2(this, "SendTaskSuccessCommand");
      }
    };
    var StartExecutionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSStepFunctions", "StartExecution", {}).n("SFNClient", "StartExecutionCommand").f(StartExecutionInputFilterSensitiveLog, void 0).ser(se_StartExecutionCommand).de(de_StartExecutionCommand).build() {
      static {
        __name(this, "StartExecutionCommand");
      }
      static {
        __name2(this, "StartExecutionCommand");
      }
    };
    var StartSyncExecutionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSStepFunctions", "StartSyncExecution", {}).n("SFNClient", "StartSyncExecutionCommand").f(StartSyncExecutionInputFilterSensitiveLog, StartSyncExecutionOutputFilterSensitiveLog).ser(se_StartSyncExecutionCommand).de(de_StartSyncExecutionCommand).build() {
      static {
        __name(this, "StartSyncExecutionCommand");
      }
      static {
        __name2(this, "StartSyncExecutionCommand");
      }
    };
    var StopExecutionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSStepFunctions", "StopExecution", {}).n("SFNClient", "StopExecutionCommand").f(StopExecutionInputFilterSensitiveLog, void 0).ser(se_StopExecutionCommand).de(de_StopExecutionCommand).build() {
      static {
        __name(this, "StopExecutionCommand");
      }
      static {
        __name2(this, "StopExecutionCommand");
      }
    };
    var TagResourceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSStepFunctions", "TagResource", {}).n("SFNClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
      static {
        __name(this, "TagResourceCommand");
      }
      static {
        __name2(this, "TagResourceCommand");
      }
    };
    var TestStateCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSStepFunctions", "TestState", {}).n("SFNClient", "TestStateCommand").f(TestStateInputFilterSensitiveLog, TestStateOutputFilterSensitiveLog).ser(se_TestStateCommand).de(de_TestStateCommand).build() {
      static {
        __name(this, "TestStateCommand");
      }
      static {
        __name2(this, "TestStateCommand");
      }
    };
    var UntagResourceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSStepFunctions", "UntagResource", {}).n("SFNClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
      static {
        __name(this, "UntagResourceCommand");
      }
      static {
        __name2(this, "UntagResourceCommand");
      }
    };
    var UpdateMapRunCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSStepFunctions", "UpdateMapRun", {}).n("SFNClient", "UpdateMapRunCommand").f(void 0, void 0).ser(se_UpdateMapRunCommand).de(de_UpdateMapRunCommand).build() {
      static {
        __name(this, "UpdateMapRunCommand");
      }
      static {
        __name2(this, "UpdateMapRunCommand");
      }
    };
    var UpdateStateMachineAliasCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSStepFunctions", "UpdateStateMachineAlias", {}).n("SFNClient", "UpdateStateMachineAliasCommand").f(UpdateStateMachineAliasInputFilterSensitiveLog, void 0).ser(se_UpdateStateMachineAliasCommand).de(de_UpdateStateMachineAliasCommand).build() {
      static {
        __name(this, "UpdateStateMachineAliasCommand");
      }
      static {
        __name2(this, "UpdateStateMachineAliasCommand");
      }
    };
    var UpdateStateMachineCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSStepFunctions", "UpdateStateMachine", {}).n("SFNClient", "UpdateStateMachineCommand").f(UpdateStateMachineInputFilterSensitiveLog, void 0).ser(se_UpdateStateMachineCommand).de(de_UpdateStateMachineCommand).build() {
      static {
        __name(this, "UpdateStateMachineCommand");
      }
      static {
        __name2(this, "UpdateStateMachineCommand");
      }
    };
    var ValidateStateMachineDefinitionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command2.getEndpointParameterInstructions())
      ];
    }).s("AWSStepFunctions", "ValidateStateMachineDefinition", {}).n("SFNClient", "ValidateStateMachineDefinitionCommand").f(ValidateStateMachineDefinitionInputFilterSensitiveLog, ValidateStateMachineDefinitionOutputFilterSensitiveLog).ser(se_ValidateStateMachineDefinitionCommand).de(de_ValidateStateMachineDefinitionCommand).build() {
      static {
        __name(this, "ValidateStateMachineDefinitionCommand");
      }
      static {
        __name2(this, "ValidateStateMachineDefinitionCommand");
      }
    };
    var commands3 = {
      CreateActivityCommand,
      CreateStateMachineCommand,
      CreateStateMachineAliasCommand,
      DeleteActivityCommand,
      DeleteStateMachineCommand,
      DeleteStateMachineAliasCommand,
      DeleteStateMachineVersionCommand,
      DescribeActivityCommand,
      DescribeExecutionCommand,
      DescribeMapRunCommand,
      DescribeStateMachineCommand,
      DescribeStateMachineAliasCommand,
      DescribeStateMachineForExecutionCommand,
      GetActivityTaskCommand,
      GetExecutionHistoryCommand,
      ListActivitiesCommand,
      ListExecutionsCommand,
      ListMapRunsCommand,
      ListStateMachineAliasesCommand,
      ListStateMachinesCommand,
      ListStateMachineVersionsCommand,
      ListTagsForResourceCommand,
      PublishStateMachineVersionCommand,
      RedriveExecutionCommand,
      SendTaskFailureCommand,
      SendTaskHeartbeatCommand,
      SendTaskSuccessCommand,
      StartExecutionCommand,
      StartSyncExecutionCommand,
      StopExecutionCommand,
      TagResourceCommand,
      TestStateCommand,
      UntagResourceCommand,
      UpdateMapRunCommand,
      UpdateStateMachineCommand: UpdateStateMachineCommand2,
      UpdateStateMachineAliasCommand,
      ValidateStateMachineDefinitionCommand
    };
    var SFN = class extends SFNClient2 {
      static {
        __name(this, "SFN");
      }
      static {
        __name2(this, "SFN");
      }
    };
    (0, import_smithy_client28.createAggregatedClient)(commands3, SFN);
    var paginateGetExecutionHistory = (0, import_core17.createPaginator)(SFNClient2, GetExecutionHistoryCommand, "nextToken", "nextToken", "maxResults");
    var paginateListActivities = (0, import_core17.createPaginator)(SFNClient2, ListActivitiesCommand, "nextToken", "nextToken", "maxResults");
    var paginateListExecutions = (0, import_core17.createPaginator)(SFNClient2, ListExecutionsCommand, "nextToken", "nextToken", "maxResults");
    var paginateListMapRuns = (0, import_core17.createPaginator)(SFNClient2, ListMapRunsCommand, "nextToken", "nextToken", "maxResults");
    var paginateListStateMachines = (0, import_core17.createPaginator)(SFNClient2, ListStateMachinesCommand, "nextToken", "nextToken", "maxResults");
  }
});

// ../../node_modules/@aws-sdk/client-ssm/dist-cjs/auth/httpAuthSchemeProvider.js
var require_httpAuthSchemeProvider20 = __commonJS({
  "../../node_modules/@aws-sdk/client-ssm/dist-cjs/auth/httpAuthSchemeProvider.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.resolveHttpAuthSchemeConfig = exports2.defaultSSMHttpAuthSchemeProvider = exports2.defaultSSMHttpAuthSchemeParametersProvider = void 0;
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var util_middleware_1 = require_dist_cjs6();
    var defaultSSMHttpAuthSchemeParametersProvider = /* @__PURE__ */ __name(async (config, context, input) => {
      return {
        operation: (0, util_middleware_1.getSmithyContext)(context).operation,
        region: await (0, util_middleware_1.normalizeProvider)(config.region)() || (() => {
          throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
        })()
      };
    }, "defaultSSMHttpAuthSchemeParametersProvider");
    exports2.defaultSSMHttpAuthSchemeParametersProvider = defaultSSMHttpAuthSchemeParametersProvider;
    function createAwsAuthSigv4HttpAuthOption3(authParameters) {
      return {
        schemeId: "aws.auth#sigv4",
        signingProperties: {
          name: "ssm",
          region: authParameters.region
        },
        propertiesExtractor: /* @__PURE__ */ __name((config, context) => ({
          signingProperties: {
            config,
            context
          }
        }), "propertiesExtractor")
      };
    }
    __name(createAwsAuthSigv4HttpAuthOption3, "createAwsAuthSigv4HttpAuthOption");
    var defaultSSMHttpAuthSchemeProvider = /* @__PURE__ */ __name((authParameters) => {
      const options = [];
      switch (authParameters.operation) {
        default: {
          options.push(createAwsAuthSigv4HttpAuthOption3(authParameters));
        }
      }
      return options;
    }, "defaultSSMHttpAuthSchemeProvider");
    exports2.defaultSSMHttpAuthSchemeProvider = defaultSSMHttpAuthSchemeProvider;
    var resolveHttpAuthSchemeConfig3 = /* @__PURE__ */ __name((config) => {
      const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
      return Object.assign(config_0, {
        authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? [])
      });
    }, "resolveHttpAuthSchemeConfig");
    exports2.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig3;
  }
});

// ../../node_modules/@aws-sdk/client-ssm/package.json
var require_package20 = __commonJS({
  "../../node_modules/@aws-sdk/client-ssm/package.json"(exports2, module2) {
    module2.exports = {
      name: "@aws-sdk/client-ssm",
      description: "AWS SDK for JavaScript Ssm Client for Node.js, Browser and React Native",
      version: "3.879.0",
      scripts: {
        build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
        "build:cjs": "node ../../scripts/compilation/inline client-ssm",
        "build:es": "tsc -p tsconfig.es.json",
        "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
        "build:types": "tsc -p tsconfig.types.json",
        "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
        clean: "rimraf ./dist-* && rimraf *.tsbuildinfo",
        "extract:docs": "api-extractor run --local",
        "generate:client": "node ../../scripts/generate-clients/single-service --solo ssm"
      },
      main: "./dist-cjs/index.js",
      types: "./dist-types/index.d.ts",
      module: "./dist-es/index.js",
      sideEffects: false,
      dependencies: {
        "@aws-crypto/sha256-browser": "5.2.0",
        "@aws-crypto/sha256-js": "5.2.0",
        "@aws-sdk/core": "3.879.0",
        "@aws-sdk/credential-provider-node": "3.879.0",
        "@aws-sdk/middleware-host-header": "3.873.0",
        "@aws-sdk/middleware-logger": "3.876.0",
        "@aws-sdk/middleware-recursion-detection": "3.873.0",
        "@aws-sdk/middleware-user-agent": "3.879.0",
        "@aws-sdk/region-config-resolver": "3.873.0",
        "@aws-sdk/types": "3.862.0",
        "@aws-sdk/util-endpoints": "3.879.0",
        "@aws-sdk/util-user-agent-browser": "3.873.0",
        "@aws-sdk/util-user-agent-node": "3.879.0",
        "@smithy/config-resolver": "^4.1.5",
        "@smithy/core": "^3.9.0",
        "@smithy/fetch-http-handler": "^5.1.1",
        "@smithy/hash-node": "^4.0.5",
        "@smithy/invalid-dependency": "^4.0.5",
        "@smithy/middleware-content-length": "^4.0.5",
        "@smithy/middleware-endpoint": "^4.1.19",
        "@smithy/middleware-retry": "^4.1.20",
        "@smithy/middleware-serde": "^4.0.9",
        "@smithy/middleware-stack": "^4.0.5",
        "@smithy/node-config-provider": "^4.1.4",
        "@smithy/node-http-handler": "^4.1.1",
        "@smithy/protocol-http": "^5.1.3",
        "@smithy/smithy-client": "^4.5.0",
        "@smithy/types": "^4.3.2",
        "@smithy/url-parser": "^4.0.5",
        "@smithy/util-base64": "^4.0.0",
        "@smithy/util-body-length-browser": "^4.0.0",
        "@smithy/util-body-length-node": "^4.0.0",
        "@smithy/util-defaults-mode-browser": "^4.0.27",
        "@smithy/util-defaults-mode-node": "^4.0.27",
        "@smithy/util-endpoints": "^3.0.7",
        "@smithy/util-middleware": "^4.0.5",
        "@smithy/util-retry": "^4.0.7",
        "@smithy/util-utf8": "^4.0.0",
        "@smithy/util-waiter": "^4.0.7",
        "@types/uuid": "^9.0.1",
        tslib: "^2.6.2",
        uuid: "^9.0.1"
      },
      devDependencies: {
        "@tsconfig/node18": "18.2.4",
        "@types/node": "^18.19.69",
        concurrently: "7.0.0",
        "downlevel-dts": "0.10.1",
        rimraf: "3.0.2",
        typescript: "~5.8.3"
      },
      engines: {
        node: ">=18.0.0"
      },
      typesVersions: {
        "<4.0": {
          "dist-types/*": [
            "dist-types/ts3.4/*"
          ]
        }
      },
      files: [
        "dist-*/**"
      ],
      author: {
        name: "AWS SDK for JavaScript Team",
        url: "https://aws.amazon.com/javascript/"
      },
      license: "Apache-2.0",
      browser: {
        "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
      },
      "react-native": {
        "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
      },
      homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ssm",
      repository: {
        type: "git",
        url: "https://github.com/aws/aws-sdk-js-v3.git",
        directory: "clients/client-ssm"
      }
    };
  }
});

// ../../node_modules/@aws-sdk/client-ssm/dist-cjs/endpoint/ruleset.js
var require_ruleset20 = __commonJS({
  "../../node_modules/@aws-sdk/client-ssm/dist-cjs/endpoint/ruleset.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.ruleSet = void 0;
    var u3 = "required";
    var v6 = "fn";
    var w3 = "argv";
    var x3 = "ref";
    var a3 = true;
    var b3 = "isSet";
    var c3 = "booleanEquals";
    var d3 = "error";
    var e3 = "endpoint";
    var f3 = "tree";
    var g3 = "PartitionResult";
    var h3 = "getAttr";
    var i3 = { [u3]: false, "type": "String" };
    var j3 = { [u3]: true, "default": false, "type": "Boolean" };
    var k3 = { [x3]: "Endpoint" };
    var l3 = { [v6]: c3, [w3]: [{ [x3]: "UseFIPS" }, true] };
    var m3 = { [v6]: c3, [w3]: [{ [x3]: "UseDualStack" }, true] };
    var n3 = {};
    var o3 = { [v6]: h3, [w3]: [{ [x3]: g3 }, "supportsFIPS"] };
    var p3 = { [x3]: g3 };
    var q3 = { [v6]: c3, [w3]: [true, { [v6]: h3, [w3]: [p3, "supportsDualStack"] }] };
    var r3 = [l3];
    var s3 = [m3];
    var t3 = [{ [x3]: "Region" }];
    var _data3 = { version: "1.0", parameters: { Region: i3, UseDualStack: j3, UseFIPS: j3, Endpoint: i3 }, rules: [{ conditions: [{ [v6]: b3, [w3]: [k3] }], rules: [{ conditions: r3, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d3 }, { conditions: s3, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d3 }, { endpoint: { url: k3, properties: n3, headers: n3 }, type: e3 }], type: f3 }, { conditions: [{ [v6]: b3, [w3]: t3 }], rules: [{ conditions: [{ [v6]: "aws.partition", [w3]: t3, assign: g3 }], rules: [{ conditions: [l3, m3], rules: [{ conditions: [{ [v6]: c3, [w3]: [a3, o3] }, q3], rules: [{ endpoint: { url: "https://ssm-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n3, headers: n3 }, type: e3 }], type: f3 }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d3 }], type: f3 }, { conditions: r3, rules: [{ conditions: [{ [v6]: c3, [w3]: [o3, a3] }], rules: [{ conditions: [{ [v6]: "stringEquals", [w3]: [{ [v6]: h3, [w3]: [p3, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://ssm.{Region}.amazonaws.com", properties: n3, headers: n3 }, type: e3 }, { endpoint: { url: "https://ssm-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n3, headers: n3 }, type: e3 }], type: f3 }, { error: "FIPS is enabled but this partition does not support FIPS", type: d3 }], type: f3 }, { conditions: s3, rules: [{ conditions: [q3], rules: [{ endpoint: { url: "https://ssm.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n3, headers: n3 }, type: e3 }], type: f3 }, { error: "DualStack is enabled but this partition does not support DualStack", type: d3 }], type: f3 }, { endpoint: { url: "https://ssm.{Region}.{PartitionResult#dnsSuffix}", properties: n3, headers: n3 }, type: e3 }], type: f3 }], type: f3 }, { error: "Invalid Configuration: Missing Region", type: d3 }] };
    exports2.ruleSet = _data3;
  }
});

// ../../node_modules/@aws-sdk/client-ssm/dist-cjs/endpoint/endpointResolver.js
var require_endpointResolver20 = __commonJS({
  "../../node_modules/@aws-sdk/client-ssm/dist-cjs/endpoint/endpointResolver.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.defaultEndpointResolver = void 0;
    var util_endpoints_1 = require_dist_cjs21();
    var util_endpoints_2 = require_dist_cjs18();
    var ruleset_1 = require_ruleset20();
    var cache3 = new util_endpoints_2.EndpointCache({
      size: 50,
      params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"]
    });
    var defaultEndpointResolver3 = /* @__PURE__ */ __name((endpointParams, context = {}) => {
      return cache3.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
        endpointParams,
        logger: context.logger
      }));
    }, "defaultEndpointResolver");
    exports2.defaultEndpointResolver = defaultEndpointResolver3;
    util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
  }
});

// ../../node_modules/@aws-sdk/client-ssm/dist-cjs/runtimeConfig.shared.js
var require_runtimeConfig_shared21 = __commonJS({
  "../../node_modules/@aws-sdk/client-ssm/dist-cjs/runtimeConfig.shared.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.getRuntimeConfig = void 0;
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var smithy_client_1 = require_dist_cjs26();
    var url_parser_1 = require_dist_cjs20();
    var util_base64_1 = require_dist_cjs11();
    var util_utf8_1 = require_dist_cjs10();
    var httpAuthSchemeProvider_1 = require_httpAuthSchemeProvider20();
    var endpointResolver_1 = require_endpointResolver20();
    var getRuntimeConfig5 = /* @__PURE__ */ __name((config) => {
      return {
        apiVersion: "2014-11-06",
        base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
        base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
        disableHostPrefix: config?.disableHostPrefix ?? false,
        endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
        extensions: config?.extensions ?? [],
        httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultSSMHttpAuthSchemeProvider,
        httpAuthSchemes: config?.httpAuthSchemes ?? [
          {
            schemeId: "aws.auth#sigv4",
            identityProvider: /* @__PURE__ */ __name((ipc) => ipc.getIdentityProvider("aws.auth#sigv4"), "identityProvider"),
            signer: new core_1.AwsSdkSigV4Signer()
          }
        ],
        logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
        serviceId: config?.serviceId ?? "SSM",
        urlParser: config?.urlParser ?? url_parser_1.parseUrl,
        utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
        utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8
      };
    }, "getRuntimeConfig");
    exports2.getRuntimeConfig = getRuntimeConfig5;
  }
});

// ../../node_modules/@aws-sdk/client-ssm/dist-cjs/runtimeConfig.js
var require_runtimeConfig21 = __commonJS({
  "../../node_modules/@aws-sdk/client-ssm/dist-cjs/runtimeConfig.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.getRuntimeConfig = void 0;
    var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
    var package_json_1 = tslib_1.__importDefault(require_package20());
    var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var credential_provider_node_1 = require_dist_cjs52();
    var util_user_agent_node_1 = require_dist_cjs41();
    var config_resolver_1 = require_dist_cjs30();
    var hash_node_1 = require_dist_cjs42();
    var middleware_retry_1 = require_dist_cjs37();
    var node_config_provider_1 = require_dist_cjs33();
    var node_http_handler_1 = require_dist_cjs14();
    var util_body_length_node_1 = require_dist_cjs43();
    var util_retry_1 = require_dist_cjs36();
    var runtimeConfig_shared_1 = require_runtimeConfig_shared21();
    var smithy_client_1 = require_dist_cjs26();
    var util_defaults_mode_node_1 = require_dist_cjs44();
    var smithy_client_2 = require_dist_cjs26();
    var getRuntimeConfig5 = /* @__PURE__ */ __name((config) => {
      (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
      const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
      const defaultConfigProvider = /* @__PURE__ */ __name(() => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode), "defaultConfigProvider");
      const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
      (0, core_1.emitWarningIfUnsupportedVersion)(process.version);
      const loaderConfig = {
        profile: config?.profile,
        logger: clientSharedValues.logger
      };
      return {
        ...clientSharedValues,
        ...config,
        runtime: "node",
        defaultsMode,
        authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
        bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
        credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
        defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
        maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
        region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
        requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
        retryMode: config?.retryMode ?? (0, node_config_provider_1.loadConfig)({
          ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
          default: /* @__PURE__ */ __name(async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE, "default")
        }, config),
        sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
        streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
        useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
        useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
        userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig)
      };
    }, "getRuntimeConfig");
    exports2.getRuntimeConfig = getRuntimeConfig5;
  }
});

// ../../node_modules/@aws-sdk/client-ssm/dist-cjs/index.js
var require_dist_cjs96 = __commonJS({
  "../../node_modules/@aws-sdk/client-ssm/dist-cjs/index.js"(exports2, module2) {
    "use strict";
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var index_exports = {};
    __export2(index_exports, {
      AccessDeniedException: /* @__PURE__ */ __name(() => AccessDeniedException2, "AccessDeniedException"),
      AccessRequestStatus: /* @__PURE__ */ __name(() => AccessRequestStatus, "AccessRequestStatus"),
      AccessType: /* @__PURE__ */ __name(() => AccessType, "AccessType"),
      AddTagsToResourceCommand: /* @__PURE__ */ __name(() => AddTagsToResourceCommand, "AddTagsToResourceCommand"),
      AlreadyExistsException: /* @__PURE__ */ __name(() => AlreadyExistsException, "AlreadyExistsException"),
      AssociateOpsItemRelatedItemCommand: /* @__PURE__ */ __name(() => AssociateOpsItemRelatedItemCommand, "AssociateOpsItemRelatedItemCommand"),
      AssociatedInstances: /* @__PURE__ */ __name(() => AssociatedInstances, "AssociatedInstances"),
      AssociationAlreadyExists: /* @__PURE__ */ __name(() => AssociationAlreadyExists, "AssociationAlreadyExists"),
      AssociationComplianceSeverity: /* @__PURE__ */ __name(() => AssociationComplianceSeverity, "AssociationComplianceSeverity"),
      AssociationDescriptionFilterSensitiveLog: /* @__PURE__ */ __name(() => AssociationDescriptionFilterSensitiveLog, "AssociationDescriptionFilterSensitiveLog"),
      AssociationDoesNotExist: /* @__PURE__ */ __name(() => AssociationDoesNotExist, "AssociationDoesNotExist"),
      AssociationExecutionDoesNotExist: /* @__PURE__ */ __name(() => AssociationExecutionDoesNotExist, "AssociationExecutionDoesNotExist"),
      AssociationExecutionFilterKey: /* @__PURE__ */ __name(() => AssociationExecutionFilterKey, "AssociationExecutionFilterKey"),
      AssociationExecutionTargetsFilterKey: /* @__PURE__ */ __name(() => AssociationExecutionTargetsFilterKey, "AssociationExecutionTargetsFilterKey"),
      AssociationFilterKey: /* @__PURE__ */ __name(() => AssociationFilterKey, "AssociationFilterKey"),
      AssociationFilterOperatorType: /* @__PURE__ */ __name(() => AssociationFilterOperatorType, "AssociationFilterOperatorType"),
      AssociationLimitExceeded: /* @__PURE__ */ __name(() => AssociationLimitExceeded, "AssociationLimitExceeded"),
      AssociationStatusName: /* @__PURE__ */ __name(() => AssociationStatusName, "AssociationStatusName"),
      AssociationSyncCompliance: /* @__PURE__ */ __name(() => AssociationSyncCompliance, "AssociationSyncCompliance"),
      AssociationVersionInfoFilterSensitiveLog: /* @__PURE__ */ __name(() => AssociationVersionInfoFilterSensitiveLog, "AssociationVersionInfoFilterSensitiveLog"),
      AssociationVersionLimitExceeded: /* @__PURE__ */ __name(() => AssociationVersionLimitExceeded, "AssociationVersionLimitExceeded"),
      AttachmentHashType: /* @__PURE__ */ __name(() => AttachmentHashType, "AttachmentHashType"),
      AttachmentsSourceKey: /* @__PURE__ */ __name(() => AttachmentsSourceKey, "AttachmentsSourceKey"),
      AutomationDefinitionNotApprovedException: /* @__PURE__ */ __name(() => AutomationDefinitionNotApprovedException, "AutomationDefinitionNotApprovedException"),
      AutomationDefinitionNotFoundException: /* @__PURE__ */ __name(() => AutomationDefinitionNotFoundException, "AutomationDefinitionNotFoundException"),
      AutomationDefinitionVersionNotFoundException: /* @__PURE__ */ __name(() => AutomationDefinitionVersionNotFoundException, "AutomationDefinitionVersionNotFoundException"),
      AutomationExecutionFilterKey: /* @__PURE__ */ __name(() => AutomationExecutionFilterKey, "AutomationExecutionFilterKey"),
      AutomationExecutionLimitExceededException: /* @__PURE__ */ __name(() => AutomationExecutionLimitExceededException, "AutomationExecutionLimitExceededException"),
      AutomationExecutionNotFoundException: /* @__PURE__ */ __name(() => AutomationExecutionNotFoundException, "AutomationExecutionNotFoundException"),
      AutomationExecutionStatus: /* @__PURE__ */ __name(() => AutomationExecutionStatus, "AutomationExecutionStatus"),
      AutomationStepNotFoundException: /* @__PURE__ */ __name(() => AutomationStepNotFoundException, "AutomationStepNotFoundException"),
      AutomationSubtype: /* @__PURE__ */ __name(() => AutomationSubtype, "AutomationSubtype"),
      AutomationType: /* @__PURE__ */ __name(() => AutomationType, "AutomationType"),
      BaselineOverrideFilterSensitiveLog: /* @__PURE__ */ __name(() => BaselineOverrideFilterSensitiveLog, "BaselineOverrideFilterSensitiveLog"),
      CalendarState: /* @__PURE__ */ __name(() => CalendarState, "CalendarState"),
      CancelCommandCommand: /* @__PURE__ */ __name(() => CancelCommandCommand, "CancelCommandCommand"),
      CancelMaintenanceWindowExecutionCommand: /* @__PURE__ */ __name(() => CancelMaintenanceWindowExecutionCommand, "CancelMaintenanceWindowExecutionCommand"),
      CommandFilterKey: /* @__PURE__ */ __name(() => CommandFilterKey, "CommandFilterKey"),
      CommandFilterSensitiveLog: /* @__PURE__ */ __name(() => CommandFilterSensitiveLog, "CommandFilterSensitiveLog"),
      CommandInvocationStatus: /* @__PURE__ */ __name(() => CommandInvocationStatus, "CommandInvocationStatus"),
      CommandPluginStatus: /* @__PURE__ */ __name(() => CommandPluginStatus, "CommandPluginStatus"),
      CommandStatus: /* @__PURE__ */ __name(() => CommandStatus, "CommandStatus"),
      ComplianceQueryOperatorType: /* @__PURE__ */ __name(() => ComplianceQueryOperatorType, "ComplianceQueryOperatorType"),
      ComplianceSeverity: /* @__PURE__ */ __name(() => ComplianceSeverity, "ComplianceSeverity"),
      ComplianceStatus: /* @__PURE__ */ __name(() => ComplianceStatus, "ComplianceStatus"),
      ComplianceTypeCountLimitExceededException: /* @__PURE__ */ __name(() => ComplianceTypeCountLimitExceededException, "ComplianceTypeCountLimitExceededException"),
      ComplianceUploadType: /* @__PURE__ */ __name(() => ComplianceUploadType, "ComplianceUploadType"),
      ConnectionStatus: /* @__PURE__ */ __name(() => ConnectionStatus, "ConnectionStatus"),
      CreateActivationCommand: /* @__PURE__ */ __name(() => CreateActivationCommand, "CreateActivationCommand"),
      CreateAssociationBatchCommand: /* @__PURE__ */ __name(() => CreateAssociationBatchCommand, "CreateAssociationBatchCommand"),
      CreateAssociationBatchRequestEntryFilterSensitiveLog: /* @__PURE__ */ __name(() => CreateAssociationBatchRequestEntryFilterSensitiveLog, "CreateAssociationBatchRequestEntryFilterSensitiveLog"),
      CreateAssociationBatchRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => CreateAssociationBatchRequestFilterSensitiveLog, "CreateAssociationBatchRequestFilterSensitiveLog"),
      CreateAssociationBatchResultFilterSensitiveLog: /* @__PURE__ */ __name(() => CreateAssociationBatchResultFilterSensitiveLog, "CreateAssociationBatchResultFilterSensitiveLog"),
      CreateAssociationCommand: /* @__PURE__ */ __name(() => CreateAssociationCommand, "CreateAssociationCommand"),
      CreateAssociationRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => CreateAssociationRequestFilterSensitiveLog, "CreateAssociationRequestFilterSensitiveLog"),
      CreateAssociationResultFilterSensitiveLog: /* @__PURE__ */ __name(() => CreateAssociationResultFilterSensitiveLog, "CreateAssociationResultFilterSensitiveLog"),
      CreateDocumentCommand: /* @__PURE__ */ __name(() => CreateDocumentCommand, "CreateDocumentCommand"),
      CreateMaintenanceWindowCommand: /* @__PURE__ */ __name(() => CreateMaintenanceWindowCommand, "CreateMaintenanceWindowCommand"),
      CreateMaintenanceWindowRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => CreateMaintenanceWindowRequestFilterSensitiveLog, "CreateMaintenanceWindowRequestFilterSensitiveLog"),
      CreateOpsItemCommand: /* @__PURE__ */ __name(() => CreateOpsItemCommand, "CreateOpsItemCommand"),
      CreateOpsMetadataCommand: /* @__PURE__ */ __name(() => CreateOpsMetadataCommand, "CreateOpsMetadataCommand"),
      CreatePatchBaselineCommand: /* @__PURE__ */ __name(() => CreatePatchBaselineCommand, "CreatePatchBaselineCommand"),
      CreatePatchBaselineRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => CreatePatchBaselineRequestFilterSensitiveLog, "CreatePatchBaselineRequestFilterSensitiveLog"),
      CreateResourceDataSyncCommand: /* @__PURE__ */ __name(() => CreateResourceDataSyncCommand, "CreateResourceDataSyncCommand"),
      CredentialsFilterSensitiveLog: /* @__PURE__ */ __name(() => CredentialsFilterSensitiveLog2, "CredentialsFilterSensitiveLog"),
      CustomSchemaCountLimitExceededException: /* @__PURE__ */ __name(() => CustomSchemaCountLimitExceededException, "CustomSchemaCountLimitExceededException"),
      DeleteActivationCommand: /* @__PURE__ */ __name(() => DeleteActivationCommand, "DeleteActivationCommand"),
      DeleteAssociationCommand: /* @__PURE__ */ __name(() => DeleteAssociationCommand, "DeleteAssociationCommand"),
      DeleteDocumentCommand: /* @__PURE__ */ __name(() => DeleteDocumentCommand, "DeleteDocumentCommand"),
      DeleteInventoryCommand: /* @__PURE__ */ __name(() => DeleteInventoryCommand, "DeleteInventoryCommand"),
      DeleteMaintenanceWindowCommand: /* @__PURE__ */ __name(() => DeleteMaintenanceWindowCommand, "DeleteMaintenanceWindowCommand"),
      DeleteOpsItemCommand: /* @__PURE__ */ __name(() => DeleteOpsItemCommand, "DeleteOpsItemCommand"),
      DeleteOpsMetadataCommand: /* @__PURE__ */ __name(() => DeleteOpsMetadataCommand, "DeleteOpsMetadataCommand"),
      DeleteParameterCommand: /* @__PURE__ */ __name(() => DeleteParameterCommand, "DeleteParameterCommand"),
      DeleteParametersCommand: /* @__PURE__ */ __name(() => DeleteParametersCommand, "DeleteParametersCommand"),
      DeletePatchBaselineCommand: /* @__PURE__ */ __name(() => DeletePatchBaselineCommand, "DeletePatchBaselineCommand"),
      DeleteResourceDataSyncCommand: /* @__PURE__ */ __name(() => DeleteResourceDataSyncCommand, "DeleteResourceDataSyncCommand"),
      DeleteResourcePolicyCommand: /* @__PURE__ */ __name(() => DeleteResourcePolicyCommand, "DeleteResourcePolicyCommand"),
      DeregisterManagedInstanceCommand: /* @__PURE__ */ __name(() => DeregisterManagedInstanceCommand, "DeregisterManagedInstanceCommand"),
      DeregisterPatchBaselineForPatchGroupCommand: /* @__PURE__ */ __name(() => DeregisterPatchBaselineForPatchGroupCommand, "DeregisterPatchBaselineForPatchGroupCommand"),
      DeregisterTargetFromMaintenanceWindowCommand: /* @__PURE__ */ __name(() => DeregisterTargetFromMaintenanceWindowCommand, "DeregisterTargetFromMaintenanceWindowCommand"),
      DeregisterTaskFromMaintenanceWindowCommand: /* @__PURE__ */ __name(() => DeregisterTaskFromMaintenanceWindowCommand, "DeregisterTaskFromMaintenanceWindowCommand"),
      DescribeActivationsCommand: /* @__PURE__ */ __name(() => DescribeActivationsCommand, "DescribeActivationsCommand"),
      DescribeActivationsFilterKeys: /* @__PURE__ */ __name(() => DescribeActivationsFilterKeys, "DescribeActivationsFilterKeys"),
      DescribeAssociationCommand: /* @__PURE__ */ __name(() => DescribeAssociationCommand, "DescribeAssociationCommand"),
      DescribeAssociationExecutionTargetsCommand: /* @__PURE__ */ __name(() => DescribeAssociationExecutionTargetsCommand, "DescribeAssociationExecutionTargetsCommand"),
      DescribeAssociationExecutionsCommand: /* @__PURE__ */ __name(() => DescribeAssociationExecutionsCommand, "DescribeAssociationExecutionsCommand"),
      DescribeAssociationResultFilterSensitiveLog: /* @__PURE__ */ __name(() => DescribeAssociationResultFilterSensitiveLog, "DescribeAssociationResultFilterSensitiveLog"),
      DescribeAutomationExecutionsCommand: /* @__PURE__ */ __name(() => DescribeAutomationExecutionsCommand, "DescribeAutomationExecutionsCommand"),
      DescribeAutomationStepExecutionsCommand: /* @__PURE__ */ __name(() => DescribeAutomationStepExecutionsCommand, "DescribeAutomationStepExecutionsCommand"),
      DescribeAvailablePatchesCommand: /* @__PURE__ */ __name(() => DescribeAvailablePatchesCommand, "DescribeAvailablePatchesCommand"),
      DescribeDocumentCommand: /* @__PURE__ */ __name(() => DescribeDocumentCommand, "DescribeDocumentCommand"),
      DescribeDocumentPermissionCommand: /* @__PURE__ */ __name(() => DescribeDocumentPermissionCommand, "DescribeDocumentPermissionCommand"),
      DescribeEffectiveInstanceAssociationsCommand: /* @__PURE__ */ __name(() => DescribeEffectiveInstanceAssociationsCommand, "DescribeEffectiveInstanceAssociationsCommand"),
      DescribeEffectivePatchesForPatchBaselineCommand: /* @__PURE__ */ __name(() => DescribeEffectivePatchesForPatchBaselineCommand, "DescribeEffectivePatchesForPatchBaselineCommand"),
      DescribeInstanceAssociationsStatusCommand: /* @__PURE__ */ __name(() => DescribeInstanceAssociationsStatusCommand, "DescribeInstanceAssociationsStatusCommand"),
      DescribeInstanceInformationCommand: /* @__PURE__ */ __name(() => DescribeInstanceInformationCommand, "DescribeInstanceInformationCommand"),
      DescribeInstanceInformationResultFilterSensitiveLog: /* @__PURE__ */ __name(() => DescribeInstanceInformationResultFilterSensitiveLog, "DescribeInstanceInformationResultFilterSensitiveLog"),
      DescribeInstancePatchStatesCommand: /* @__PURE__ */ __name(() => DescribeInstancePatchStatesCommand, "DescribeInstancePatchStatesCommand"),
      DescribeInstancePatchStatesForPatchGroupCommand: /* @__PURE__ */ __name(() => DescribeInstancePatchStatesForPatchGroupCommand, "DescribeInstancePatchStatesForPatchGroupCommand"),
      DescribeInstancePatchStatesForPatchGroupResultFilterSensitiveLog: /* @__PURE__ */ __name(() => DescribeInstancePatchStatesForPatchGroupResultFilterSensitiveLog, "DescribeInstancePatchStatesForPatchGroupResultFilterSensitiveLog"),
      DescribeInstancePatchStatesResultFilterSensitiveLog: /* @__PURE__ */ __name(() => DescribeInstancePatchStatesResultFilterSensitiveLog, "DescribeInstancePatchStatesResultFilterSensitiveLog"),
      DescribeInstancePatchesCommand: /* @__PURE__ */ __name(() => DescribeInstancePatchesCommand, "DescribeInstancePatchesCommand"),
      DescribeInstancePropertiesCommand: /* @__PURE__ */ __name(() => DescribeInstancePropertiesCommand, "DescribeInstancePropertiesCommand"),
      DescribeInstancePropertiesResultFilterSensitiveLog: /* @__PURE__ */ __name(() => DescribeInstancePropertiesResultFilterSensitiveLog, "DescribeInstancePropertiesResultFilterSensitiveLog"),
      DescribeInventoryDeletionsCommand: /* @__PURE__ */ __name(() => DescribeInventoryDeletionsCommand, "DescribeInventoryDeletionsCommand"),
      DescribeMaintenanceWindowExecutionTaskInvocationsCommand: /* @__PURE__ */ __name(() => DescribeMaintenanceWindowExecutionTaskInvocationsCommand, "DescribeMaintenanceWindowExecutionTaskInvocationsCommand"),
      DescribeMaintenanceWindowExecutionTaskInvocationsResultFilterSensitiveLog: /* @__PURE__ */ __name(() => DescribeMaintenanceWindowExecutionTaskInvocationsResultFilterSensitiveLog, "DescribeMaintenanceWindowExecutionTaskInvocationsResultFilterSensitiveLog"),
      DescribeMaintenanceWindowExecutionTasksCommand: /* @__PURE__ */ __name(() => DescribeMaintenanceWindowExecutionTasksCommand, "DescribeMaintenanceWindowExecutionTasksCommand"),
      DescribeMaintenanceWindowExecutionsCommand: /* @__PURE__ */ __name(() => DescribeMaintenanceWindowExecutionsCommand, "DescribeMaintenanceWindowExecutionsCommand"),
      DescribeMaintenanceWindowScheduleCommand: /* @__PURE__ */ __name(() => DescribeMaintenanceWindowScheduleCommand, "DescribeMaintenanceWindowScheduleCommand"),
      DescribeMaintenanceWindowTargetsCommand: /* @__PURE__ */ __name(() => DescribeMaintenanceWindowTargetsCommand, "DescribeMaintenanceWindowTargetsCommand"),
      DescribeMaintenanceWindowTargetsResultFilterSensitiveLog: /* @__PURE__ */ __name(() => DescribeMaintenanceWindowTargetsResultFilterSensitiveLog, "DescribeMaintenanceWindowTargetsResultFilterSensitiveLog"),
      DescribeMaintenanceWindowTasksCommand: /* @__PURE__ */ __name(() => DescribeMaintenanceWindowTasksCommand, "DescribeMaintenanceWindowTasksCommand"),
      DescribeMaintenanceWindowTasksResultFilterSensitiveLog: /* @__PURE__ */ __name(() => DescribeMaintenanceWindowTasksResultFilterSensitiveLog, "DescribeMaintenanceWindowTasksResultFilterSensitiveLog"),
      DescribeMaintenanceWindowsCommand: /* @__PURE__ */ __name(() => DescribeMaintenanceWindowsCommand, "DescribeMaintenanceWindowsCommand"),
      DescribeMaintenanceWindowsForTargetCommand: /* @__PURE__ */ __name(() => DescribeMaintenanceWindowsForTargetCommand, "DescribeMaintenanceWindowsForTargetCommand"),
      DescribeMaintenanceWindowsResultFilterSensitiveLog: /* @__PURE__ */ __name(() => DescribeMaintenanceWindowsResultFilterSensitiveLog, "DescribeMaintenanceWindowsResultFilterSensitiveLog"),
      DescribeOpsItemsCommand: /* @__PURE__ */ __name(() => DescribeOpsItemsCommand, "DescribeOpsItemsCommand"),
      DescribeParametersCommand: /* @__PURE__ */ __name(() => DescribeParametersCommand, "DescribeParametersCommand"),
      DescribePatchBaselinesCommand: /* @__PURE__ */ __name(() => DescribePatchBaselinesCommand, "DescribePatchBaselinesCommand"),
      DescribePatchGroupStateCommand: /* @__PURE__ */ __name(() => DescribePatchGroupStateCommand, "DescribePatchGroupStateCommand"),
      DescribePatchGroupsCommand: /* @__PURE__ */ __name(() => DescribePatchGroupsCommand, "DescribePatchGroupsCommand"),
      DescribePatchPropertiesCommand: /* @__PURE__ */ __name(() => DescribePatchPropertiesCommand, "DescribePatchPropertiesCommand"),
      DescribeSessionsCommand: /* @__PURE__ */ __name(() => DescribeSessionsCommand, "DescribeSessionsCommand"),
      DisassociateOpsItemRelatedItemCommand: /* @__PURE__ */ __name(() => DisassociateOpsItemRelatedItemCommand, "DisassociateOpsItemRelatedItemCommand"),
      DocumentAlreadyExists: /* @__PURE__ */ __name(() => DocumentAlreadyExists, "DocumentAlreadyExists"),
      DocumentFilterKey: /* @__PURE__ */ __name(() => DocumentFilterKey, "DocumentFilterKey"),
      DocumentFormat: /* @__PURE__ */ __name(() => DocumentFormat, "DocumentFormat"),
      DocumentHashType: /* @__PURE__ */ __name(() => DocumentHashType, "DocumentHashType"),
      DocumentLimitExceeded: /* @__PURE__ */ __name(() => DocumentLimitExceeded, "DocumentLimitExceeded"),
      DocumentMetadataEnum: /* @__PURE__ */ __name(() => DocumentMetadataEnum, "DocumentMetadataEnum"),
      DocumentParameterType: /* @__PURE__ */ __name(() => DocumentParameterType, "DocumentParameterType"),
      DocumentPermissionLimit: /* @__PURE__ */ __name(() => DocumentPermissionLimit, "DocumentPermissionLimit"),
      DocumentPermissionType: /* @__PURE__ */ __name(() => DocumentPermissionType, "DocumentPermissionType"),
      DocumentReviewAction: /* @__PURE__ */ __name(() => DocumentReviewAction, "DocumentReviewAction"),
      DocumentReviewCommentType: /* @__PURE__ */ __name(() => DocumentReviewCommentType, "DocumentReviewCommentType"),
      DocumentStatus: /* @__PURE__ */ __name(() => DocumentStatus, "DocumentStatus"),
      DocumentType: /* @__PURE__ */ __name(() => DocumentType, "DocumentType"),
      DocumentVersionLimitExceeded: /* @__PURE__ */ __name(() => DocumentVersionLimitExceeded, "DocumentVersionLimitExceeded"),
      DoesNotExistException: /* @__PURE__ */ __name(() => DoesNotExistException, "DoesNotExistException"),
      DuplicateDocumentContent: /* @__PURE__ */ __name(() => DuplicateDocumentContent, "DuplicateDocumentContent"),
      DuplicateDocumentVersionName: /* @__PURE__ */ __name(() => DuplicateDocumentVersionName, "DuplicateDocumentVersionName"),
      DuplicateInstanceId: /* @__PURE__ */ __name(() => DuplicateInstanceId, "DuplicateInstanceId"),
      ExecutionInputs: /* @__PURE__ */ __name(() => ExecutionInputs, "ExecutionInputs"),
      ExecutionMode: /* @__PURE__ */ __name(() => ExecutionMode, "ExecutionMode"),
      ExecutionPreview: /* @__PURE__ */ __name(() => ExecutionPreview, "ExecutionPreview"),
      ExecutionPreviewStatus: /* @__PURE__ */ __name(() => ExecutionPreviewStatus, "ExecutionPreviewStatus"),
      ExternalAlarmState: /* @__PURE__ */ __name(() => ExternalAlarmState, "ExternalAlarmState"),
      FailedCreateAssociationFilterSensitiveLog: /* @__PURE__ */ __name(() => FailedCreateAssociationFilterSensitiveLog, "FailedCreateAssociationFilterSensitiveLog"),
      Fault: /* @__PURE__ */ __name(() => Fault, "Fault"),
      FeatureNotAvailableException: /* @__PURE__ */ __name(() => FeatureNotAvailableException, "FeatureNotAvailableException"),
      GetAccessTokenCommand: /* @__PURE__ */ __name(() => GetAccessTokenCommand, "GetAccessTokenCommand"),
      GetAccessTokenResponseFilterSensitiveLog: /* @__PURE__ */ __name(() => GetAccessTokenResponseFilterSensitiveLog, "GetAccessTokenResponseFilterSensitiveLog"),
      GetAutomationExecutionCommand: /* @__PURE__ */ __name(() => GetAutomationExecutionCommand, "GetAutomationExecutionCommand"),
      GetCalendarStateCommand: /* @__PURE__ */ __name(() => GetCalendarStateCommand, "GetCalendarStateCommand"),
      GetCommandInvocationCommand: /* @__PURE__ */ __name(() => GetCommandInvocationCommand, "GetCommandInvocationCommand"),
      GetConnectionStatusCommand: /* @__PURE__ */ __name(() => GetConnectionStatusCommand, "GetConnectionStatusCommand"),
      GetDefaultPatchBaselineCommand: /* @__PURE__ */ __name(() => GetDefaultPatchBaselineCommand, "GetDefaultPatchBaselineCommand"),
      GetDeployablePatchSnapshotForInstanceCommand: /* @__PURE__ */ __name(() => GetDeployablePatchSnapshotForInstanceCommand, "GetDeployablePatchSnapshotForInstanceCommand"),
      GetDeployablePatchSnapshotForInstanceRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => GetDeployablePatchSnapshotForInstanceRequestFilterSensitiveLog, "GetDeployablePatchSnapshotForInstanceRequestFilterSensitiveLog"),
      GetDocumentCommand: /* @__PURE__ */ __name(() => GetDocumentCommand, "GetDocumentCommand"),
      GetExecutionPreviewCommand: /* @__PURE__ */ __name(() => GetExecutionPreviewCommand, "GetExecutionPreviewCommand"),
      GetInventoryCommand: /* @__PURE__ */ __name(() => GetInventoryCommand, "GetInventoryCommand"),
      GetInventorySchemaCommand: /* @__PURE__ */ __name(() => GetInventorySchemaCommand, "GetInventorySchemaCommand"),
      GetMaintenanceWindowCommand: /* @__PURE__ */ __name(() => GetMaintenanceWindowCommand, "GetMaintenanceWindowCommand"),
      GetMaintenanceWindowExecutionCommand: /* @__PURE__ */ __name(() => GetMaintenanceWindowExecutionCommand, "GetMaintenanceWindowExecutionCommand"),
      GetMaintenanceWindowExecutionTaskCommand: /* @__PURE__ */ __name(() => GetMaintenanceWindowExecutionTaskCommand, "GetMaintenanceWindowExecutionTaskCommand"),
      GetMaintenanceWindowExecutionTaskInvocationCommand: /* @__PURE__ */ __name(() => GetMaintenanceWindowExecutionTaskInvocationCommand, "GetMaintenanceWindowExecutionTaskInvocationCommand"),
      GetMaintenanceWindowExecutionTaskInvocationResultFilterSensitiveLog: /* @__PURE__ */ __name(() => GetMaintenanceWindowExecutionTaskInvocationResultFilterSensitiveLog, "GetMaintenanceWindowExecutionTaskInvocationResultFilterSensitiveLog"),
      GetMaintenanceWindowExecutionTaskResultFilterSensitiveLog: /* @__PURE__ */ __name(() => GetMaintenanceWindowExecutionTaskResultFilterSensitiveLog, "GetMaintenanceWindowExecutionTaskResultFilterSensitiveLog"),
      GetMaintenanceWindowResultFilterSensitiveLog: /* @__PURE__ */ __name(() => GetMaintenanceWindowResultFilterSensitiveLog, "GetMaintenanceWindowResultFilterSensitiveLog"),
      GetMaintenanceWindowTaskCommand: /* @__PURE__ */ __name(() => GetMaintenanceWindowTaskCommand, "GetMaintenanceWindowTaskCommand"),
      GetMaintenanceWindowTaskResultFilterSensitiveLog: /* @__PURE__ */ __name(() => GetMaintenanceWindowTaskResultFilterSensitiveLog, "GetMaintenanceWindowTaskResultFilterSensitiveLog"),
      GetOpsItemCommand: /* @__PURE__ */ __name(() => GetOpsItemCommand, "GetOpsItemCommand"),
      GetOpsMetadataCommand: /* @__PURE__ */ __name(() => GetOpsMetadataCommand, "GetOpsMetadataCommand"),
      GetOpsSummaryCommand: /* @__PURE__ */ __name(() => GetOpsSummaryCommand, "GetOpsSummaryCommand"),
      GetParameterCommand: /* @__PURE__ */ __name(() => GetParameterCommand2, "GetParameterCommand"),
      GetParameterHistoryCommand: /* @__PURE__ */ __name(() => GetParameterHistoryCommand, "GetParameterHistoryCommand"),
      GetParameterHistoryResultFilterSensitiveLog: /* @__PURE__ */ __name(() => GetParameterHistoryResultFilterSensitiveLog, "GetParameterHistoryResultFilterSensitiveLog"),
      GetParameterResultFilterSensitiveLog: /* @__PURE__ */ __name(() => GetParameterResultFilterSensitiveLog, "GetParameterResultFilterSensitiveLog"),
      GetParametersByPathCommand: /* @__PURE__ */ __name(() => GetParametersByPathCommand, "GetParametersByPathCommand"),
      GetParametersByPathResultFilterSensitiveLog: /* @__PURE__ */ __name(() => GetParametersByPathResultFilterSensitiveLog, "GetParametersByPathResultFilterSensitiveLog"),
      GetParametersCommand: /* @__PURE__ */ __name(() => GetParametersCommand, "GetParametersCommand"),
      GetParametersResultFilterSensitiveLog: /* @__PURE__ */ __name(() => GetParametersResultFilterSensitiveLog, "GetParametersResultFilterSensitiveLog"),
      GetPatchBaselineCommand: /* @__PURE__ */ __name(() => GetPatchBaselineCommand, "GetPatchBaselineCommand"),
      GetPatchBaselineForPatchGroupCommand: /* @__PURE__ */ __name(() => GetPatchBaselineForPatchGroupCommand, "GetPatchBaselineForPatchGroupCommand"),
      GetPatchBaselineResultFilterSensitiveLog: /* @__PURE__ */ __name(() => GetPatchBaselineResultFilterSensitiveLog, "GetPatchBaselineResultFilterSensitiveLog"),
      GetResourcePoliciesCommand: /* @__PURE__ */ __name(() => GetResourcePoliciesCommand, "GetResourcePoliciesCommand"),
      GetServiceSettingCommand: /* @__PURE__ */ __name(() => GetServiceSettingCommand, "GetServiceSettingCommand"),
      HierarchyLevelLimitExceededException: /* @__PURE__ */ __name(() => HierarchyLevelLimitExceededException, "HierarchyLevelLimitExceededException"),
      HierarchyTypeMismatchException: /* @__PURE__ */ __name(() => HierarchyTypeMismatchException, "HierarchyTypeMismatchException"),
      IdempotentParameterMismatch: /* @__PURE__ */ __name(() => IdempotentParameterMismatch, "IdempotentParameterMismatch"),
      ImpactType: /* @__PURE__ */ __name(() => ImpactType, "ImpactType"),
      IncompatiblePolicyException: /* @__PURE__ */ __name(() => IncompatiblePolicyException, "IncompatiblePolicyException"),
      InstanceInfoFilterSensitiveLog: /* @__PURE__ */ __name(() => InstanceInfoFilterSensitiveLog, "InstanceInfoFilterSensitiveLog"),
      InstanceInformationFilterKey: /* @__PURE__ */ __name(() => InstanceInformationFilterKey, "InstanceInformationFilterKey"),
      InstanceInformationFilterSensitiveLog: /* @__PURE__ */ __name(() => InstanceInformationFilterSensitiveLog, "InstanceInformationFilterSensitiveLog"),
      InstancePatchStateFilterSensitiveLog: /* @__PURE__ */ __name(() => InstancePatchStateFilterSensitiveLog, "InstancePatchStateFilterSensitiveLog"),
      InstancePatchStateOperatorType: /* @__PURE__ */ __name(() => InstancePatchStateOperatorType, "InstancePatchStateOperatorType"),
      InstancePropertyFilterKey: /* @__PURE__ */ __name(() => InstancePropertyFilterKey, "InstancePropertyFilterKey"),
      InstancePropertyFilterOperator: /* @__PURE__ */ __name(() => InstancePropertyFilterOperator, "InstancePropertyFilterOperator"),
      InstancePropertyFilterSensitiveLog: /* @__PURE__ */ __name(() => InstancePropertyFilterSensitiveLog, "InstancePropertyFilterSensitiveLog"),
      InternalServerError: /* @__PURE__ */ __name(() => InternalServerError, "InternalServerError"),
      InvalidActivation: /* @__PURE__ */ __name(() => InvalidActivation, "InvalidActivation"),
      InvalidActivationId: /* @__PURE__ */ __name(() => InvalidActivationId, "InvalidActivationId"),
      InvalidAggregatorException: /* @__PURE__ */ __name(() => InvalidAggregatorException, "InvalidAggregatorException"),
      InvalidAllowedPatternException: /* @__PURE__ */ __name(() => InvalidAllowedPatternException, "InvalidAllowedPatternException"),
      InvalidAssociation: /* @__PURE__ */ __name(() => InvalidAssociation, "InvalidAssociation"),
      InvalidAssociationVersion: /* @__PURE__ */ __name(() => InvalidAssociationVersion, "InvalidAssociationVersion"),
      InvalidAutomationExecutionParametersException: /* @__PURE__ */ __name(() => InvalidAutomationExecutionParametersException, "InvalidAutomationExecutionParametersException"),
      InvalidAutomationSignalException: /* @__PURE__ */ __name(() => InvalidAutomationSignalException, "InvalidAutomationSignalException"),
      InvalidAutomationStatusUpdateException: /* @__PURE__ */ __name(() => InvalidAutomationStatusUpdateException, "InvalidAutomationStatusUpdateException"),
      InvalidCommandId: /* @__PURE__ */ __name(() => InvalidCommandId, "InvalidCommandId"),
      InvalidDeleteInventoryParametersException: /* @__PURE__ */ __name(() => InvalidDeleteInventoryParametersException, "InvalidDeleteInventoryParametersException"),
      InvalidDeletionIdException: /* @__PURE__ */ __name(() => InvalidDeletionIdException, "InvalidDeletionIdException"),
      InvalidDocument: /* @__PURE__ */ __name(() => InvalidDocument, "InvalidDocument"),
      InvalidDocumentContent: /* @__PURE__ */ __name(() => InvalidDocumentContent, "InvalidDocumentContent"),
      InvalidDocumentOperation: /* @__PURE__ */ __name(() => InvalidDocumentOperation, "InvalidDocumentOperation"),
      InvalidDocumentSchemaVersion: /* @__PURE__ */ __name(() => InvalidDocumentSchemaVersion, "InvalidDocumentSchemaVersion"),
      InvalidDocumentType: /* @__PURE__ */ __name(() => InvalidDocumentType, "InvalidDocumentType"),
      InvalidDocumentVersion: /* @__PURE__ */ __name(() => InvalidDocumentVersion, "InvalidDocumentVersion"),
      InvalidFilter: /* @__PURE__ */ __name(() => InvalidFilter, "InvalidFilter"),
      InvalidFilterKey: /* @__PURE__ */ __name(() => InvalidFilterKey, "InvalidFilterKey"),
      InvalidFilterOption: /* @__PURE__ */ __name(() => InvalidFilterOption, "InvalidFilterOption"),
      InvalidFilterValue: /* @__PURE__ */ __name(() => InvalidFilterValue, "InvalidFilterValue"),
      InvalidInstanceId: /* @__PURE__ */ __name(() => InvalidInstanceId, "InvalidInstanceId"),
      InvalidInstanceInformationFilterValue: /* @__PURE__ */ __name(() => InvalidInstanceInformationFilterValue, "InvalidInstanceInformationFilterValue"),
      InvalidInstancePropertyFilterValue: /* @__PURE__ */ __name(() => InvalidInstancePropertyFilterValue, "InvalidInstancePropertyFilterValue"),
      InvalidInventoryGroupException: /* @__PURE__ */ __name(() => InvalidInventoryGroupException, "InvalidInventoryGroupException"),
      InvalidInventoryItemContextException: /* @__PURE__ */ __name(() => InvalidInventoryItemContextException, "InvalidInventoryItemContextException"),
      InvalidInventoryRequestException: /* @__PURE__ */ __name(() => InvalidInventoryRequestException, "InvalidInventoryRequestException"),
      InvalidItemContentException: /* @__PURE__ */ __name(() => InvalidItemContentException, "InvalidItemContentException"),
      InvalidKeyId: /* @__PURE__ */ __name(() => InvalidKeyId, "InvalidKeyId"),
      InvalidNextToken: /* @__PURE__ */ __name(() => InvalidNextToken, "InvalidNextToken"),
      InvalidNotificationConfig: /* @__PURE__ */ __name(() => InvalidNotificationConfig, "InvalidNotificationConfig"),
      InvalidOptionException: /* @__PURE__ */ __name(() => InvalidOptionException, "InvalidOptionException"),
      InvalidOutputFolder: /* @__PURE__ */ __name(() => InvalidOutputFolder, "InvalidOutputFolder"),
      InvalidOutputLocation: /* @__PURE__ */ __name(() => InvalidOutputLocation, "InvalidOutputLocation"),
      InvalidParameters: /* @__PURE__ */ __name(() => InvalidParameters, "InvalidParameters"),
      InvalidPermissionType: /* @__PURE__ */ __name(() => InvalidPermissionType, "InvalidPermissionType"),
      InvalidPluginName: /* @__PURE__ */ __name(() => InvalidPluginName, "InvalidPluginName"),
      InvalidPolicyAttributeException: /* @__PURE__ */ __name(() => InvalidPolicyAttributeException, "InvalidPolicyAttributeException"),
      InvalidPolicyTypeException: /* @__PURE__ */ __name(() => InvalidPolicyTypeException, "InvalidPolicyTypeException"),
      InvalidResourceId: /* @__PURE__ */ __name(() => InvalidResourceId, "InvalidResourceId"),
      InvalidResourceType: /* @__PURE__ */ __name(() => InvalidResourceType, "InvalidResourceType"),
      InvalidResultAttributeException: /* @__PURE__ */ __name(() => InvalidResultAttributeException, "InvalidResultAttributeException"),
      InvalidRole: /* @__PURE__ */ __name(() => InvalidRole, "InvalidRole"),
      InvalidSchedule: /* @__PURE__ */ __name(() => InvalidSchedule, "InvalidSchedule"),
      InvalidTag: /* @__PURE__ */ __name(() => InvalidTag, "InvalidTag"),
      InvalidTarget: /* @__PURE__ */ __name(() => InvalidTarget, "InvalidTarget"),
      InvalidTargetMaps: /* @__PURE__ */ __name(() => InvalidTargetMaps, "InvalidTargetMaps"),
      InvalidTypeNameException: /* @__PURE__ */ __name(() => InvalidTypeNameException, "InvalidTypeNameException"),
      InvalidUpdate: /* @__PURE__ */ __name(() => InvalidUpdate, "InvalidUpdate"),
      InventoryAttributeDataType: /* @__PURE__ */ __name(() => InventoryAttributeDataType, "InventoryAttributeDataType"),
      InventoryDeletionStatus: /* @__PURE__ */ __name(() => InventoryDeletionStatus, "InventoryDeletionStatus"),
      InventoryQueryOperatorType: /* @__PURE__ */ __name(() => InventoryQueryOperatorType, "InventoryQueryOperatorType"),
      InventorySchemaDeleteOption: /* @__PURE__ */ __name(() => InventorySchemaDeleteOption, "InventorySchemaDeleteOption"),
      InvocationDoesNotExist: /* @__PURE__ */ __name(() => InvocationDoesNotExist, "InvocationDoesNotExist"),
      ItemContentMismatchException: /* @__PURE__ */ __name(() => ItemContentMismatchException, "ItemContentMismatchException"),
      ItemSizeLimitExceededException: /* @__PURE__ */ __name(() => ItemSizeLimitExceededException, "ItemSizeLimitExceededException"),
      LabelParameterVersionCommand: /* @__PURE__ */ __name(() => LabelParameterVersionCommand, "LabelParameterVersionCommand"),
      LastResourceDataSyncStatus: /* @__PURE__ */ __name(() => LastResourceDataSyncStatus, "LastResourceDataSyncStatus"),
      ListAssociationVersionsCommand: /* @__PURE__ */ __name(() => ListAssociationVersionsCommand, "ListAssociationVersionsCommand"),
      ListAssociationVersionsResultFilterSensitiveLog: /* @__PURE__ */ __name(() => ListAssociationVersionsResultFilterSensitiveLog, "ListAssociationVersionsResultFilterSensitiveLog"),
      ListAssociationsCommand: /* @__PURE__ */ __name(() => ListAssociationsCommand, "ListAssociationsCommand"),
      ListCommandInvocationsCommand: /* @__PURE__ */ __name(() => ListCommandInvocationsCommand, "ListCommandInvocationsCommand"),
      ListCommandsCommand: /* @__PURE__ */ __name(() => ListCommandsCommand, "ListCommandsCommand"),
      ListCommandsResultFilterSensitiveLog: /* @__PURE__ */ __name(() => ListCommandsResultFilterSensitiveLog, "ListCommandsResultFilterSensitiveLog"),
      ListComplianceItemsCommand: /* @__PURE__ */ __name(() => ListComplianceItemsCommand, "ListComplianceItemsCommand"),
      ListComplianceSummariesCommand: /* @__PURE__ */ __name(() => ListComplianceSummariesCommand, "ListComplianceSummariesCommand"),
      ListDocumentMetadataHistoryCommand: /* @__PURE__ */ __name(() => ListDocumentMetadataHistoryCommand, "ListDocumentMetadataHistoryCommand"),
      ListDocumentVersionsCommand: /* @__PURE__ */ __name(() => ListDocumentVersionsCommand, "ListDocumentVersionsCommand"),
      ListDocumentsCommand: /* @__PURE__ */ __name(() => ListDocumentsCommand, "ListDocumentsCommand"),
      ListInventoryEntriesCommand: /* @__PURE__ */ __name(() => ListInventoryEntriesCommand, "ListInventoryEntriesCommand"),
      ListNodesCommand: /* @__PURE__ */ __name(() => ListNodesCommand, "ListNodesCommand"),
      ListNodesResultFilterSensitiveLog: /* @__PURE__ */ __name(() => ListNodesResultFilterSensitiveLog, "ListNodesResultFilterSensitiveLog"),
      ListNodesSummaryCommand: /* @__PURE__ */ __name(() => ListNodesSummaryCommand, "ListNodesSummaryCommand"),
      ListOpsItemEventsCommand: /* @__PURE__ */ __name(() => ListOpsItemEventsCommand, "ListOpsItemEventsCommand"),
      ListOpsItemRelatedItemsCommand: /* @__PURE__ */ __name(() => ListOpsItemRelatedItemsCommand, "ListOpsItemRelatedItemsCommand"),
      ListOpsMetadataCommand: /* @__PURE__ */ __name(() => ListOpsMetadataCommand, "ListOpsMetadataCommand"),
      ListResourceComplianceSummariesCommand: /* @__PURE__ */ __name(() => ListResourceComplianceSummariesCommand, "ListResourceComplianceSummariesCommand"),
      ListResourceDataSyncCommand: /* @__PURE__ */ __name(() => ListResourceDataSyncCommand, "ListResourceDataSyncCommand"),
      ListTagsForResourceCommand: /* @__PURE__ */ __name(() => ListTagsForResourceCommand, "ListTagsForResourceCommand"),
      MaintenanceWindowExecutionStatus: /* @__PURE__ */ __name(() => MaintenanceWindowExecutionStatus, "MaintenanceWindowExecutionStatus"),
      MaintenanceWindowExecutionTaskInvocationIdentityFilterSensitiveLog: /* @__PURE__ */ __name(() => MaintenanceWindowExecutionTaskInvocationIdentityFilterSensitiveLog, "MaintenanceWindowExecutionTaskInvocationIdentityFilterSensitiveLog"),
      MaintenanceWindowIdentityFilterSensitiveLog: /* @__PURE__ */ __name(() => MaintenanceWindowIdentityFilterSensitiveLog, "MaintenanceWindowIdentityFilterSensitiveLog"),
      MaintenanceWindowLambdaParametersFilterSensitiveLog: /* @__PURE__ */ __name(() => MaintenanceWindowLambdaParametersFilterSensitiveLog, "MaintenanceWindowLambdaParametersFilterSensitiveLog"),
      MaintenanceWindowResourceType: /* @__PURE__ */ __name(() => MaintenanceWindowResourceType, "MaintenanceWindowResourceType"),
      MaintenanceWindowRunCommandParametersFilterSensitiveLog: /* @__PURE__ */ __name(() => MaintenanceWindowRunCommandParametersFilterSensitiveLog, "MaintenanceWindowRunCommandParametersFilterSensitiveLog"),
      MaintenanceWindowStepFunctionsParametersFilterSensitiveLog: /* @__PURE__ */ __name(() => MaintenanceWindowStepFunctionsParametersFilterSensitiveLog, "MaintenanceWindowStepFunctionsParametersFilterSensitiveLog"),
      MaintenanceWindowTargetFilterSensitiveLog: /* @__PURE__ */ __name(() => MaintenanceWindowTargetFilterSensitiveLog, "MaintenanceWindowTargetFilterSensitiveLog"),
      MaintenanceWindowTaskCutoffBehavior: /* @__PURE__ */ __name(() => MaintenanceWindowTaskCutoffBehavior, "MaintenanceWindowTaskCutoffBehavior"),
      MaintenanceWindowTaskFilterSensitiveLog: /* @__PURE__ */ __name(() => MaintenanceWindowTaskFilterSensitiveLog, "MaintenanceWindowTaskFilterSensitiveLog"),
      MaintenanceWindowTaskInvocationParametersFilterSensitiveLog: /* @__PURE__ */ __name(() => MaintenanceWindowTaskInvocationParametersFilterSensitiveLog, "MaintenanceWindowTaskInvocationParametersFilterSensitiveLog"),
      MaintenanceWindowTaskParameterValueExpressionFilterSensitiveLog: /* @__PURE__ */ __name(() => MaintenanceWindowTaskParameterValueExpressionFilterSensitiveLog, "MaintenanceWindowTaskParameterValueExpressionFilterSensitiveLog"),
      MaintenanceWindowTaskType: /* @__PURE__ */ __name(() => MaintenanceWindowTaskType, "MaintenanceWindowTaskType"),
      MalformedResourcePolicyDocumentException: /* @__PURE__ */ __name(() => MalformedResourcePolicyDocumentException, "MalformedResourcePolicyDocumentException"),
      ManagedStatus: /* @__PURE__ */ __name(() => ManagedStatus, "ManagedStatus"),
      MaxDocumentSizeExceeded: /* @__PURE__ */ __name(() => MaxDocumentSizeExceeded, "MaxDocumentSizeExceeded"),
      ModifyDocumentPermissionCommand: /* @__PURE__ */ __name(() => ModifyDocumentPermissionCommand, "ModifyDocumentPermissionCommand"),
      NodeAggregatorType: /* @__PURE__ */ __name(() => NodeAggregatorType, "NodeAggregatorType"),
      NodeAttributeName: /* @__PURE__ */ __name(() => NodeAttributeName, "NodeAttributeName"),
      NodeFilterKey: /* @__PURE__ */ __name(() => NodeFilterKey, "NodeFilterKey"),
      NodeFilterOperatorType: /* @__PURE__ */ __name(() => NodeFilterOperatorType, "NodeFilterOperatorType"),
      NodeFilterSensitiveLog: /* @__PURE__ */ __name(() => NodeFilterSensitiveLog, "NodeFilterSensitiveLog"),
      NodeType: /* @__PURE__ */ __name(() => NodeType, "NodeType"),
      NodeTypeFilterSensitiveLog: /* @__PURE__ */ __name(() => NodeTypeFilterSensitiveLog, "NodeTypeFilterSensitiveLog"),
      NodeTypeName: /* @__PURE__ */ __name(() => NodeTypeName, "NodeTypeName"),
      NotificationEvent: /* @__PURE__ */ __name(() => NotificationEvent, "NotificationEvent"),
      NotificationType: /* @__PURE__ */ __name(() => NotificationType, "NotificationType"),
      OperatingSystem: /* @__PURE__ */ __name(() => OperatingSystem, "OperatingSystem"),
      OpsFilterOperatorType: /* @__PURE__ */ __name(() => OpsFilterOperatorType, "OpsFilterOperatorType"),
      OpsItemAccessDeniedException: /* @__PURE__ */ __name(() => OpsItemAccessDeniedException, "OpsItemAccessDeniedException"),
      OpsItemAlreadyExistsException: /* @__PURE__ */ __name(() => OpsItemAlreadyExistsException, "OpsItemAlreadyExistsException"),
      OpsItemConflictException: /* @__PURE__ */ __name(() => OpsItemConflictException, "OpsItemConflictException"),
      OpsItemDataType: /* @__PURE__ */ __name(() => OpsItemDataType, "OpsItemDataType"),
      OpsItemEventFilterKey: /* @__PURE__ */ __name(() => OpsItemEventFilterKey, "OpsItemEventFilterKey"),
      OpsItemEventFilterOperator: /* @__PURE__ */ __name(() => OpsItemEventFilterOperator, "OpsItemEventFilterOperator"),
      OpsItemFilterKey: /* @__PURE__ */ __name(() => OpsItemFilterKey, "OpsItemFilterKey"),
      OpsItemFilterOperator: /* @__PURE__ */ __name(() => OpsItemFilterOperator, "OpsItemFilterOperator"),
      OpsItemInvalidParameterException: /* @__PURE__ */ __name(() => OpsItemInvalidParameterException, "OpsItemInvalidParameterException"),
      OpsItemLimitExceededException: /* @__PURE__ */ __name(() => OpsItemLimitExceededException, "OpsItemLimitExceededException"),
      OpsItemNotFoundException: /* @__PURE__ */ __name(() => OpsItemNotFoundException, "OpsItemNotFoundException"),
      OpsItemRelatedItemAlreadyExistsException: /* @__PURE__ */ __name(() => OpsItemRelatedItemAlreadyExistsException, "OpsItemRelatedItemAlreadyExistsException"),
      OpsItemRelatedItemAssociationNotFoundException: /* @__PURE__ */ __name(() => OpsItemRelatedItemAssociationNotFoundException, "OpsItemRelatedItemAssociationNotFoundException"),
      OpsItemRelatedItemsFilterKey: /* @__PURE__ */ __name(() => OpsItemRelatedItemsFilterKey, "OpsItemRelatedItemsFilterKey"),
      OpsItemRelatedItemsFilterOperator: /* @__PURE__ */ __name(() => OpsItemRelatedItemsFilterOperator, "OpsItemRelatedItemsFilterOperator"),
      OpsItemStatus: /* @__PURE__ */ __name(() => OpsItemStatus, "OpsItemStatus"),
      OpsMetadataAlreadyExistsException: /* @__PURE__ */ __name(() => OpsMetadataAlreadyExistsException, "OpsMetadataAlreadyExistsException"),
      OpsMetadataInvalidArgumentException: /* @__PURE__ */ __name(() => OpsMetadataInvalidArgumentException, "OpsMetadataInvalidArgumentException"),
      OpsMetadataKeyLimitExceededException: /* @__PURE__ */ __name(() => OpsMetadataKeyLimitExceededException, "OpsMetadataKeyLimitExceededException"),
      OpsMetadataLimitExceededException: /* @__PURE__ */ __name(() => OpsMetadataLimitExceededException, "OpsMetadataLimitExceededException"),
      OpsMetadataNotFoundException: /* @__PURE__ */ __name(() => OpsMetadataNotFoundException, "OpsMetadataNotFoundException"),
      OpsMetadataTooManyUpdatesException: /* @__PURE__ */ __name(() => OpsMetadataTooManyUpdatesException, "OpsMetadataTooManyUpdatesException"),
      ParameterAlreadyExists: /* @__PURE__ */ __name(() => ParameterAlreadyExists, "ParameterAlreadyExists"),
      ParameterFilterSensitiveLog: /* @__PURE__ */ __name(() => ParameterFilterSensitiveLog, "ParameterFilterSensitiveLog"),
      ParameterHistoryFilterSensitiveLog: /* @__PURE__ */ __name(() => ParameterHistoryFilterSensitiveLog, "ParameterHistoryFilterSensitiveLog"),
      ParameterLimitExceeded: /* @__PURE__ */ __name(() => ParameterLimitExceeded, "ParameterLimitExceeded"),
      ParameterMaxVersionLimitExceeded: /* @__PURE__ */ __name(() => ParameterMaxVersionLimitExceeded, "ParameterMaxVersionLimitExceeded"),
      ParameterNotFound: /* @__PURE__ */ __name(() => ParameterNotFound, "ParameterNotFound"),
      ParameterPatternMismatchException: /* @__PURE__ */ __name(() => ParameterPatternMismatchException, "ParameterPatternMismatchException"),
      ParameterTier: /* @__PURE__ */ __name(() => ParameterTier, "ParameterTier"),
      ParameterType: /* @__PURE__ */ __name(() => ParameterType, "ParameterType"),
      ParameterVersionLabelLimitExceeded: /* @__PURE__ */ __name(() => ParameterVersionLabelLimitExceeded, "ParameterVersionLabelLimitExceeded"),
      ParameterVersionNotFound: /* @__PURE__ */ __name(() => ParameterVersionNotFound, "ParameterVersionNotFound"),
      ParametersFilterKey: /* @__PURE__ */ __name(() => ParametersFilterKey, "ParametersFilterKey"),
      PatchAction: /* @__PURE__ */ __name(() => PatchAction, "PatchAction"),
      PatchComplianceDataState: /* @__PURE__ */ __name(() => PatchComplianceDataState, "PatchComplianceDataState"),
      PatchComplianceLevel: /* @__PURE__ */ __name(() => PatchComplianceLevel, "PatchComplianceLevel"),
      PatchComplianceStatus: /* @__PURE__ */ __name(() => PatchComplianceStatus, "PatchComplianceStatus"),
      PatchDeploymentStatus: /* @__PURE__ */ __name(() => PatchDeploymentStatus, "PatchDeploymentStatus"),
      PatchFilterKey: /* @__PURE__ */ __name(() => PatchFilterKey, "PatchFilterKey"),
      PatchOperationType: /* @__PURE__ */ __name(() => PatchOperationType, "PatchOperationType"),
      PatchProperty: /* @__PURE__ */ __name(() => PatchProperty, "PatchProperty"),
      PatchSet: /* @__PURE__ */ __name(() => PatchSet, "PatchSet"),
      PatchSourceFilterSensitiveLog: /* @__PURE__ */ __name(() => PatchSourceFilterSensitiveLog, "PatchSourceFilterSensitiveLog"),
      PingStatus: /* @__PURE__ */ __name(() => PingStatus, "PingStatus"),
      PlatformType: /* @__PURE__ */ __name(() => PlatformType, "PlatformType"),
      PoliciesLimitExceededException: /* @__PURE__ */ __name(() => PoliciesLimitExceededException, "PoliciesLimitExceededException"),
      PutComplianceItemsCommand: /* @__PURE__ */ __name(() => PutComplianceItemsCommand, "PutComplianceItemsCommand"),
      PutInventoryCommand: /* @__PURE__ */ __name(() => PutInventoryCommand, "PutInventoryCommand"),
      PutParameterCommand: /* @__PURE__ */ __name(() => PutParameterCommand, "PutParameterCommand"),
      PutParameterRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => PutParameterRequestFilterSensitiveLog, "PutParameterRequestFilterSensitiveLog"),
      PutResourcePolicyCommand: /* @__PURE__ */ __name(() => PutResourcePolicyCommand, "PutResourcePolicyCommand"),
      RebootOption: /* @__PURE__ */ __name(() => RebootOption, "RebootOption"),
      RegisterDefaultPatchBaselineCommand: /* @__PURE__ */ __name(() => RegisterDefaultPatchBaselineCommand, "RegisterDefaultPatchBaselineCommand"),
      RegisterPatchBaselineForPatchGroupCommand: /* @__PURE__ */ __name(() => RegisterPatchBaselineForPatchGroupCommand, "RegisterPatchBaselineForPatchGroupCommand"),
      RegisterTargetWithMaintenanceWindowCommand: /* @__PURE__ */ __name(() => RegisterTargetWithMaintenanceWindowCommand, "RegisterTargetWithMaintenanceWindowCommand"),
      RegisterTargetWithMaintenanceWindowRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => RegisterTargetWithMaintenanceWindowRequestFilterSensitiveLog, "RegisterTargetWithMaintenanceWindowRequestFilterSensitiveLog"),
      RegisterTaskWithMaintenanceWindowCommand: /* @__PURE__ */ __name(() => RegisterTaskWithMaintenanceWindowCommand, "RegisterTaskWithMaintenanceWindowCommand"),
      RegisterTaskWithMaintenanceWindowRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => RegisterTaskWithMaintenanceWindowRequestFilterSensitiveLog, "RegisterTaskWithMaintenanceWindowRequestFilterSensitiveLog"),
      RemoveTagsFromResourceCommand: /* @__PURE__ */ __name(() => RemoveTagsFromResourceCommand, "RemoveTagsFromResourceCommand"),
      ResetServiceSettingCommand: /* @__PURE__ */ __name(() => ResetServiceSettingCommand, "ResetServiceSettingCommand"),
      ResourceDataSyncAlreadyExistsException: /* @__PURE__ */ __name(() => ResourceDataSyncAlreadyExistsException, "ResourceDataSyncAlreadyExistsException"),
      ResourceDataSyncConflictException: /* @__PURE__ */ __name(() => ResourceDataSyncConflictException, "ResourceDataSyncConflictException"),
      ResourceDataSyncCountExceededException: /* @__PURE__ */ __name(() => ResourceDataSyncCountExceededException, "ResourceDataSyncCountExceededException"),
      ResourceDataSyncInvalidConfigurationException: /* @__PURE__ */ __name(() => ResourceDataSyncInvalidConfigurationException, "ResourceDataSyncInvalidConfigurationException"),
      ResourceDataSyncNotFoundException: /* @__PURE__ */ __name(() => ResourceDataSyncNotFoundException, "ResourceDataSyncNotFoundException"),
      ResourceDataSyncS3Format: /* @__PURE__ */ __name(() => ResourceDataSyncS3Format, "ResourceDataSyncS3Format"),
      ResourceInUseException: /* @__PURE__ */ __name(() => ResourceInUseException, "ResourceInUseException"),
      ResourceLimitExceededException: /* @__PURE__ */ __name(() => ResourceLimitExceededException, "ResourceLimitExceededException"),
      ResourceNotFoundException: /* @__PURE__ */ __name(() => ResourceNotFoundException2, "ResourceNotFoundException"),
      ResourcePolicyConflictException: /* @__PURE__ */ __name(() => ResourcePolicyConflictException, "ResourcePolicyConflictException"),
      ResourcePolicyInvalidParameterException: /* @__PURE__ */ __name(() => ResourcePolicyInvalidParameterException, "ResourcePolicyInvalidParameterException"),
      ResourcePolicyLimitExceededException: /* @__PURE__ */ __name(() => ResourcePolicyLimitExceededException, "ResourcePolicyLimitExceededException"),
      ResourcePolicyNotFoundException: /* @__PURE__ */ __name(() => ResourcePolicyNotFoundException, "ResourcePolicyNotFoundException"),
      ResourceType: /* @__PURE__ */ __name(() => ResourceType, "ResourceType"),
      ResourceTypeForTagging: /* @__PURE__ */ __name(() => ResourceTypeForTagging, "ResourceTypeForTagging"),
      ResumeSessionCommand: /* @__PURE__ */ __name(() => ResumeSessionCommand, "ResumeSessionCommand"),
      ReviewStatus: /* @__PURE__ */ __name(() => ReviewStatus, "ReviewStatus"),
      SSM: /* @__PURE__ */ __name(() => SSM, "SSM"),
      SSMClient: /* @__PURE__ */ __name(() => SSMClient2, "SSMClient"),
      SSMServiceException: /* @__PURE__ */ __name(() => SSMServiceException, "SSMServiceException"),
      SendAutomationSignalCommand: /* @__PURE__ */ __name(() => SendAutomationSignalCommand, "SendAutomationSignalCommand"),
      SendCommandCommand: /* @__PURE__ */ __name(() => SendCommandCommand, "SendCommandCommand"),
      SendCommandRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => SendCommandRequestFilterSensitiveLog, "SendCommandRequestFilterSensitiveLog"),
      SendCommandResultFilterSensitiveLog: /* @__PURE__ */ __name(() => SendCommandResultFilterSensitiveLog, "SendCommandResultFilterSensitiveLog"),
      ServiceQuotaExceededException: /* @__PURE__ */ __name(() => ServiceQuotaExceededException, "ServiceQuotaExceededException"),
      ServiceSettingNotFound: /* @__PURE__ */ __name(() => ServiceSettingNotFound, "ServiceSettingNotFound"),
      SessionFilterKey: /* @__PURE__ */ __name(() => SessionFilterKey, "SessionFilterKey"),
      SessionState: /* @__PURE__ */ __name(() => SessionState, "SessionState"),
      SessionStatus: /* @__PURE__ */ __name(() => SessionStatus, "SessionStatus"),
      SignalType: /* @__PURE__ */ __name(() => SignalType, "SignalType"),
      SourceType: /* @__PURE__ */ __name(() => SourceType, "SourceType"),
      StartAccessRequestCommand: /* @__PURE__ */ __name(() => StartAccessRequestCommand, "StartAccessRequestCommand"),
      StartAssociationsOnceCommand: /* @__PURE__ */ __name(() => StartAssociationsOnceCommand, "StartAssociationsOnceCommand"),
      StartAutomationExecutionCommand: /* @__PURE__ */ __name(() => StartAutomationExecutionCommand, "StartAutomationExecutionCommand"),
      StartChangeRequestExecutionCommand: /* @__PURE__ */ __name(() => StartChangeRequestExecutionCommand, "StartChangeRequestExecutionCommand"),
      StartExecutionPreviewCommand: /* @__PURE__ */ __name(() => StartExecutionPreviewCommand, "StartExecutionPreviewCommand"),
      StartSessionCommand: /* @__PURE__ */ __name(() => StartSessionCommand, "StartSessionCommand"),
      StatusUnchanged: /* @__PURE__ */ __name(() => StatusUnchanged, "StatusUnchanged"),
      StepExecutionFilterKey: /* @__PURE__ */ __name(() => StepExecutionFilterKey, "StepExecutionFilterKey"),
      StopAutomationExecutionCommand: /* @__PURE__ */ __name(() => StopAutomationExecutionCommand, "StopAutomationExecutionCommand"),
      StopType: /* @__PURE__ */ __name(() => StopType, "StopType"),
      SubTypeCountLimitExceededException: /* @__PURE__ */ __name(() => SubTypeCountLimitExceededException, "SubTypeCountLimitExceededException"),
      TargetInUseException: /* @__PURE__ */ __name(() => TargetInUseException, "TargetInUseException"),
      TargetNotConnected: /* @__PURE__ */ __name(() => TargetNotConnected, "TargetNotConnected"),
      TerminateSessionCommand: /* @__PURE__ */ __name(() => TerminateSessionCommand, "TerminateSessionCommand"),
      ThrottlingException: /* @__PURE__ */ __name(() => ThrottlingException, "ThrottlingException"),
      TooManyTagsError: /* @__PURE__ */ __name(() => TooManyTagsError, "TooManyTagsError"),
      TooManyUpdates: /* @__PURE__ */ __name(() => TooManyUpdates, "TooManyUpdates"),
      TotalSizeLimitExceededException: /* @__PURE__ */ __name(() => TotalSizeLimitExceededException, "TotalSizeLimitExceededException"),
      UnlabelParameterVersionCommand: /* @__PURE__ */ __name(() => UnlabelParameterVersionCommand, "UnlabelParameterVersionCommand"),
      UnsupportedCalendarException: /* @__PURE__ */ __name(() => UnsupportedCalendarException, "UnsupportedCalendarException"),
      UnsupportedFeatureRequiredException: /* @__PURE__ */ __name(() => UnsupportedFeatureRequiredException, "UnsupportedFeatureRequiredException"),
      UnsupportedInventoryItemContextException: /* @__PURE__ */ __name(() => UnsupportedInventoryItemContextException, "UnsupportedInventoryItemContextException"),
      UnsupportedInventorySchemaVersionException: /* @__PURE__ */ __name(() => UnsupportedInventorySchemaVersionException, "UnsupportedInventorySchemaVersionException"),
      UnsupportedOperatingSystem: /* @__PURE__ */ __name(() => UnsupportedOperatingSystem, "UnsupportedOperatingSystem"),
      UnsupportedOperationException: /* @__PURE__ */ __name(() => UnsupportedOperationException, "UnsupportedOperationException"),
      UnsupportedParameterType: /* @__PURE__ */ __name(() => UnsupportedParameterType, "UnsupportedParameterType"),
      UnsupportedPlatformType: /* @__PURE__ */ __name(() => UnsupportedPlatformType, "UnsupportedPlatformType"),
      UpdateAssociationCommand: /* @__PURE__ */ __name(() => UpdateAssociationCommand, "UpdateAssociationCommand"),
      UpdateAssociationRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => UpdateAssociationRequestFilterSensitiveLog, "UpdateAssociationRequestFilterSensitiveLog"),
      UpdateAssociationResultFilterSensitiveLog: /* @__PURE__ */ __name(() => UpdateAssociationResultFilterSensitiveLog, "UpdateAssociationResultFilterSensitiveLog"),
      UpdateAssociationStatusCommand: /* @__PURE__ */ __name(() => UpdateAssociationStatusCommand, "UpdateAssociationStatusCommand"),
      UpdateAssociationStatusResultFilterSensitiveLog: /* @__PURE__ */ __name(() => UpdateAssociationStatusResultFilterSensitiveLog, "UpdateAssociationStatusResultFilterSensitiveLog"),
      UpdateDocumentCommand: /* @__PURE__ */ __name(() => UpdateDocumentCommand, "UpdateDocumentCommand"),
      UpdateDocumentDefaultVersionCommand: /* @__PURE__ */ __name(() => UpdateDocumentDefaultVersionCommand, "UpdateDocumentDefaultVersionCommand"),
      UpdateDocumentMetadataCommand: /* @__PURE__ */ __name(() => UpdateDocumentMetadataCommand, "UpdateDocumentMetadataCommand"),
      UpdateMaintenanceWindowCommand: /* @__PURE__ */ __name(() => UpdateMaintenanceWindowCommand, "UpdateMaintenanceWindowCommand"),
      UpdateMaintenanceWindowRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => UpdateMaintenanceWindowRequestFilterSensitiveLog, "UpdateMaintenanceWindowRequestFilterSensitiveLog"),
      UpdateMaintenanceWindowResultFilterSensitiveLog: /* @__PURE__ */ __name(() => UpdateMaintenanceWindowResultFilterSensitiveLog, "UpdateMaintenanceWindowResultFilterSensitiveLog"),
      UpdateMaintenanceWindowTargetCommand: /* @__PURE__ */ __name(() => UpdateMaintenanceWindowTargetCommand, "UpdateMaintenanceWindowTargetCommand"),
      UpdateMaintenanceWindowTargetRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => UpdateMaintenanceWindowTargetRequestFilterSensitiveLog, "UpdateMaintenanceWindowTargetRequestFilterSensitiveLog"),
      UpdateMaintenanceWindowTargetResultFilterSensitiveLog: /* @__PURE__ */ __name(() => UpdateMaintenanceWindowTargetResultFilterSensitiveLog, "UpdateMaintenanceWindowTargetResultFilterSensitiveLog"),
      UpdateMaintenanceWindowTaskCommand: /* @__PURE__ */ __name(() => UpdateMaintenanceWindowTaskCommand, "UpdateMaintenanceWindowTaskCommand"),
      UpdateMaintenanceWindowTaskRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => UpdateMaintenanceWindowTaskRequestFilterSensitiveLog, "UpdateMaintenanceWindowTaskRequestFilterSensitiveLog"),
      UpdateMaintenanceWindowTaskResultFilterSensitiveLog: /* @__PURE__ */ __name(() => UpdateMaintenanceWindowTaskResultFilterSensitiveLog, "UpdateMaintenanceWindowTaskResultFilterSensitiveLog"),
      UpdateManagedInstanceRoleCommand: /* @__PURE__ */ __name(() => UpdateManagedInstanceRoleCommand, "UpdateManagedInstanceRoleCommand"),
      UpdateOpsItemCommand: /* @__PURE__ */ __name(() => UpdateOpsItemCommand, "UpdateOpsItemCommand"),
      UpdateOpsMetadataCommand: /* @__PURE__ */ __name(() => UpdateOpsMetadataCommand, "UpdateOpsMetadataCommand"),
      UpdatePatchBaselineCommand: /* @__PURE__ */ __name(() => UpdatePatchBaselineCommand, "UpdatePatchBaselineCommand"),
      UpdatePatchBaselineRequestFilterSensitiveLog: /* @__PURE__ */ __name(() => UpdatePatchBaselineRequestFilterSensitiveLog, "UpdatePatchBaselineRequestFilterSensitiveLog"),
      UpdatePatchBaselineResultFilterSensitiveLog: /* @__PURE__ */ __name(() => UpdatePatchBaselineResultFilterSensitiveLog, "UpdatePatchBaselineResultFilterSensitiveLog"),
      UpdateResourceDataSyncCommand: /* @__PURE__ */ __name(() => UpdateResourceDataSyncCommand, "UpdateResourceDataSyncCommand"),
      UpdateServiceSettingCommand: /* @__PURE__ */ __name(() => UpdateServiceSettingCommand, "UpdateServiceSettingCommand"),
      ValidationException: /* @__PURE__ */ __name(() => ValidationException, "ValidationException"),
      __Client: /* @__PURE__ */ __name(() => import_smithy_client28.Client, "__Client"),
      paginateDescribeActivations: /* @__PURE__ */ __name(() => paginateDescribeActivations, "paginateDescribeActivations"),
      paginateDescribeAssociationExecutionTargets: /* @__PURE__ */ __name(() => paginateDescribeAssociationExecutionTargets, "paginateDescribeAssociationExecutionTargets"),
      paginateDescribeAssociationExecutions: /* @__PURE__ */ __name(() => paginateDescribeAssociationExecutions, "paginateDescribeAssociationExecutions"),
      paginateDescribeAutomationExecutions: /* @__PURE__ */ __name(() => paginateDescribeAutomationExecutions, "paginateDescribeAutomationExecutions"),
      paginateDescribeAutomationStepExecutions: /* @__PURE__ */ __name(() => paginateDescribeAutomationStepExecutions, "paginateDescribeAutomationStepExecutions"),
      paginateDescribeAvailablePatches: /* @__PURE__ */ __name(() => paginateDescribeAvailablePatches, "paginateDescribeAvailablePatches"),
      paginateDescribeEffectiveInstanceAssociations: /* @__PURE__ */ __name(() => paginateDescribeEffectiveInstanceAssociations, "paginateDescribeEffectiveInstanceAssociations"),
      paginateDescribeEffectivePatchesForPatchBaseline: /* @__PURE__ */ __name(() => paginateDescribeEffectivePatchesForPatchBaseline, "paginateDescribeEffectivePatchesForPatchBaseline"),
      paginateDescribeInstanceAssociationsStatus: /* @__PURE__ */ __name(() => paginateDescribeInstanceAssociationsStatus, "paginateDescribeInstanceAssociationsStatus"),
      paginateDescribeInstanceInformation: /* @__PURE__ */ __name(() => paginateDescribeInstanceInformation, "paginateDescribeInstanceInformation"),
      paginateDescribeInstancePatchStates: /* @__PURE__ */ __name(() => paginateDescribeInstancePatchStates, "paginateDescribeInstancePatchStates"),
      paginateDescribeInstancePatchStatesForPatchGroup: /* @__PURE__ */ __name(() => paginateDescribeInstancePatchStatesForPatchGroup, "paginateDescribeInstancePatchStatesForPatchGroup"),
      paginateDescribeInstancePatches: /* @__PURE__ */ __name(() => paginateDescribeInstancePatches, "paginateDescribeInstancePatches"),
      paginateDescribeInstanceProperties: /* @__PURE__ */ __name(() => paginateDescribeInstanceProperties, "paginateDescribeInstanceProperties"),
      paginateDescribeInventoryDeletions: /* @__PURE__ */ __name(() => paginateDescribeInventoryDeletions, "paginateDescribeInventoryDeletions"),
      paginateDescribeMaintenanceWindowExecutionTaskInvocations: /* @__PURE__ */ __name(() => paginateDescribeMaintenanceWindowExecutionTaskInvocations, "paginateDescribeMaintenanceWindowExecutionTaskInvocations"),
      paginateDescribeMaintenanceWindowExecutionTasks: /* @__PURE__ */ __name(() => paginateDescribeMaintenanceWindowExecutionTasks, "paginateDescribeMaintenanceWindowExecutionTasks"),
      paginateDescribeMaintenanceWindowExecutions: /* @__PURE__ */ __name(() => paginateDescribeMaintenanceWindowExecutions, "paginateDescribeMaintenanceWindowExecutions"),
      paginateDescribeMaintenanceWindowSchedule: /* @__PURE__ */ __name(() => paginateDescribeMaintenanceWindowSchedule, "paginateDescribeMaintenanceWindowSchedule"),
      paginateDescribeMaintenanceWindowTargets: /* @__PURE__ */ __name(() => paginateDescribeMaintenanceWindowTargets, "paginateDescribeMaintenanceWindowTargets"),
      paginateDescribeMaintenanceWindowTasks: /* @__PURE__ */ __name(() => paginateDescribeMaintenanceWindowTasks, "paginateDescribeMaintenanceWindowTasks"),
      paginateDescribeMaintenanceWindows: /* @__PURE__ */ __name(() => paginateDescribeMaintenanceWindows, "paginateDescribeMaintenanceWindows"),
      paginateDescribeMaintenanceWindowsForTarget: /* @__PURE__ */ __name(() => paginateDescribeMaintenanceWindowsForTarget, "paginateDescribeMaintenanceWindowsForTarget"),
      paginateDescribeOpsItems: /* @__PURE__ */ __name(() => paginateDescribeOpsItems, "paginateDescribeOpsItems"),
      paginateDescribeParameters: /* @__PURE__ */ __name(() => paginateDescribeParameters, "paginateDescribeParameters"),
      paginateDescribePatchBaselines: /* @__PURE__ */ __name(() => paginateDescribePatchBaselines, "paginateDescribePatchBaselines"),
      paginateDescribePatchGroups: /* @__PURE__ */ __name(() => paginateDescribePatchGroups, "paginateDescribePatchGroups"),
      paginateDescribePatchProperties: /* @__PURE__ */ __name(() => paginateDescribePatchProperties, "paginateDescribePatchProperties"),
      paginateDescribeSessions: /* @__PURE__ */ __name(() => paginateDescribeSessions, "paginateDescribeSessions"),
      paginateGetInventory: /* @__PURE__ */ __name(() => paginateGetInventory, "paginateGetInventory"),
      paginateGetInventorySchema: /* @__PURE__ */ __name(() => paginateGetInventorySchema, "paginateGetInventorySchema"),
      paginateGetOpsSummary: /* @__PURE__ */ __name(() => paginateGetOpsSummary, "paginateGetOpsSummary"),
      paginateGetParameterHistory: /* @__PURE__ */ __name(() => paginateGetParameterHistory, "paginateGetParameterHistory"),
      paginateGetParametersByPath: /* @__PURE__ */ __name(() => paginateGetParametersByPath, "paginateGetParametersByPath"),
      paginateGetResourcePolicies: /* @__PURE__ */ __name(() => paginateGetResourcePolicies, "paginateGetResourcePolicies"),
      paginateListAssociationVersions: /* @__PURE__ */ __name(() => paginateListAssociationVersions, "paginateListAssociationVersions"),
      paginateListAssociations: /* @__PURE__ */ __name(() => paginateListAssociations, "paginateListAssociations"),
      paginateListCommandInvocations: /* @__PURE__ */ __name(() => paginateListCommandInvocations, "paginateListCommandInvocations"),
      paginateListCommands: /* @__PURE__ */ __name(() => paginateListCommands, "paginateListCommands"),
      paginateListComplianceItems: /* @__PURE__ */ __name(() => paginateListComplianceItems, "paginateListComplianceItems"),
      paginateListComplianceSummaries: /* @__PURE__ */ __name(() => paginateListComplianceSummaries, "paginateListComplianceSummaries"),
      paginateListDocumentVersions: /* @__PURE__ */ __name(() => paginateListDocumentVersions, "paginateListDocumentVersions"),
      paginateListDocuments: /* @__PURE__ */ __name(() => paginateListDocuments, "paginateListDocuments"),
      paginateListNodes: /* @__PURE__ */ __name(() => paginateListNodes, "paginateListNodes"),
      paginateListNodesSummary: /* @__PURE__ */ __name(() => paginateListNodesSummary, "paginateListNodesSummary"),
      paginateListOpsItemEvents: /* @__PURE__ */ __name(() => paginateListOpsItemEvents, "paginateListOpsItemEvents"),
      paginateListOpsItemRelatedItems: /* @__PURE__ */ __name(() => paginateListOpsItemRelatedItems, "paginateListOpsItemRelatedItems"),
      paginateListOpsMetadata: /* @__PURE__ */ __name(() => paginateListOpsMetadata, "paginateListOpsMetadata"),
      paginateListResourceComplianceSummaries: /* @__PURE__ */ __name(() => paginateListResourceComplianceSummaries, "paginateListResourceComplianceSummaries"),
      paginateListResourceDataSync: /* @__PURE__ */ __name(() => paginateListResourceDataSync, "paginateListResourceDataSync"),
      waitForCommandExecuted: /* @__PURE__ */ __name(() => waitForCommandExecuted, "waitForCommandExecuted"),
      waitUntilCommandExecuted: /* @__PURE__ */ __name(() => waitUntilCommandExecuted, "waitUntilCommandExecuted")
    });
    module2.exports = __toCommonJS2(index_exports);
    var import_middleware_host_header3 = require_dist_cjs3();
    var import_middleware_logger3 = require_dist_cjs4();
    var import_middleware_recursion_detection3 = require_dist_cjs5();
    var import_middleware_user_agent3 = require_dist_cjs28();
    var import_config_resolver6 = require_dist_cjs30();
    var import_core17 = (init_dist_es(), __toCommonJS(dist_es_exports));
    var import_middleware_content_length3 = require_dist_cjs31();
    var import_middleware_endpoint8 = require_dist_cjs34();
    var import_middleware_retry5 = require_dist_cjs37();
    var import_httpAuthSchemeProvider5 = require_httpAuthSchemeProvider20();
    var resolveClientEndpointParameters3 = /* @__PURE__ */ __name2((options) => {
      return Object.assign(options, {
        useDualstackEndpoint: options.useDualstackEndpoint ?? false,
        useFipsEndpoint: options.useFipsEndpoint ?? false,
        defaultSigningName: "ssm"
      });
    }, "resolveClientEndpointParameters");
    var commonParams3 = {
      UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
      Endpoint: { type: "builtInParams", name: "endpoint" },
      Region: { type: "builtInParams", name: "region" },
      UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
    };
    var import_runtimeConfig5 = require_runtimeConfig21();
    var import_region_config_resolver3 = require_dist_cjs45();
    var import_protocol_http16 = require_dist_cjs2();
    var import_smithy_client28 = require_dist_cjs26();
    var getHttpAuthExtensionConfiguration3 = /* @__PURE__ */ __name2((runtimeConfig) => {
      const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
      let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
      let _credentials = runtimeConfig.credentials;
      return {
        setHttpAuthScheme(httpAuthScheme) {
          const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
          if (index === -1) {
            _httpAuthSchemes.push(httpAuthScheme);
          } else {
            _httpAuthSchemes.splice(index, 1, httpAuthScheme);
          }
        },
        httpAuthSchemes() {
          return _httpAuthSchemes;
        },
        setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
          _httpAuthSchemeProvider = httpAuthSchemeProvider;
        },
        httpAuthSchemeProvider() {
          return _httpAuthSchemeProvider;
        },
        setCredentials(credentials) {
          _credentials = credentials;
        },
        credentials() {
          return _credentials;
        }
      };
    }, "getHttpAuthExtensionConfiguration");
    var resolveHttpAuthRuntimeConfig3 = /* @__PURE__ */ __name2((config) => {
      return {
        httpAuthSchemes: config.httpAuthSchemes(),
        httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
        credentials: config.credentials()
      };
    }, "resolveHttpAuthRuntimeConfig");
    var resolveRuntimeExtensions3 = /* @__PURE__ */ __name2((runtimeConfig, extensions) => {
      const extensionConfiguration = Object.assign(
        (0, import_region_config_resolver3.getAwsRegionExtensionConfiguration)(runtimeConfig),
        (0, import_smithy_client28.getDefaultExtensionConfiguration)(runtimeConfig),
        (0, import_protocol_http16.getHttpHandlerExtensionConfiguration)(runtimeConfig),
        getHttpAuthExtensionConfiguration3(runtimeConfig)
      );
      extensions.forEach((extension) => extension.configure(extensionConfiguration));
      return Object.assign(
        runtimeConfig,
        (0, import_region_config_resolver3.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
        (0, import_smithy_client28.resolveDefaultRuntimeConfig)(extensionConfiguration),
        (0, import_protocol_http16.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
        resolveHttpAuthRuntimeConfig3(extensionConfiguration)
      );
    }, "resolveRuntimeExtensions");
    var SSMClient2 = class extends import_smithy_client28.Client {
      static {
        __name(this, "SSMClient");
      }
      static {
        __name2(this, "SSMClient");
      }
      /**
       * The resolved configuration of SSMClient class. This is resolved and normalized from the {@link SSMClientConfig | constructor configuration interface}.
       */
      config;
      constructor(...[configuration]) {
        const _config_0 = (0, import_runtimeConfig5.getRuntimeConfig)(configuration || {});
        super(_config_0);
        this.initConfig = _config_0;
        const _config_1 = resolveClientEndpointParameters3(_config_0);
        const _config_2 = (0, import_middleware_user_agent3.resolveUserAgentConfig)(_config_1);
        const _config_3 = (0, import_middleware_retry5.resolveRetryConfig)(_config_2);
        const _config_4 = (0, import_config_resolver6.resolveRegionConfig)(_config_3);
        const _config_5 = (0, import_middleware_host_header3.resolveHostHeaderConfig)(_config_4);
        const _config_6 = (0, import_middleware_endpoint8.resolveEndpointConfig)(_config_5);
        const _config_7 = (0, import_httpAuthSchemeProvider5.resolveHttpAuthSchemeConfig)(_config_6);
        const _config_8 = resolveRuntimeExtensions3(_config_7, configuration?.extensions || []);
        this.config = _config_8;
        this.middlewareStack.use((0, import_middleware_user_agent3.getUserAgentPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_retry5.getRetryPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_content_length3.getContentLengthPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_host_header3.getHostHeaderPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_logger3.getLoggerPlugin)(this.config));
        this.middlewareStack.use((0, import_middleware_recursion_detection3.getRecursionDetectionPlugin)(this.config));
        this.middlewareStack.use(
          (0, import_core17.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
            httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider5.defaultSSMHttpAuthSchemeParametersProvider,
            identityProviderConfigProvider: /* @__PURE__ */ __name2(async (config) => new import_core17.DefaultIdentityProviderConfig({
              "aws.auth#sigv4": config.credentials
            }), "identityProviderConfigProvider")
          })
        );
        this.middlewareStack.use((0, import_core17.getHttpSigningPlugin)(this.config));
      }
      /**
       * Destroy underlying resources, like sockets. It's usually not necessary to do this.
       * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
       * Otherwise, sockets might stay open for quite a long time before the server terminates them.
       */
      destroy() {
        super.destroy();
      }
    };
    var import_middleware_serde5 = require_dist_cjs7();
    var import_core22 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
    var import_uuid2 = (init_esm_node(), __toCommonJS(esm_node_exports));
    var SSMServiceException = class _SSMServiceException extends import_smithy_client28.ServiceException {
      static {
        __name(this, "_SSMServiceException");
      }
      static {
        __name2(this, "SSMServiceException");
      }
      /**
       * @internal
       */
      constructor(options) {
        super(options);
        Object.setPrototypeOf(this, _SSMServiceException.prototype);
      }
    };
    var AccessDeniedException2 = class _AccessDeniedException extends SSMServiceException {
      static {
        __name(this, "_AccessDeniedException");
      }
      static {
        __name2(this, "AccessDeniedException");
      }
      name = "AccessDeniedException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "AccessDeniedException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _AccessDeniedException.prototype);
        this.Message = opts.Message;
      }
    };
    var AccessRequestStatus = {
      APPROVED: "Approved",
      EXPIRED: "Expired",
      PENDING: "Pending",
      REJECTED: "Rejected",
      REVOKED: "Revoked"
    };
    var AccessType = {
      JUSTINTIME: "JustInTime",
      STANDARD: "Standard"
    };
    var ResourceTypeForTagging = {
      ASSOCIATION: "Association",
      AUTOMATION: "Automation",
      DOCUMENT: "Document",
      MAINTENANCE_WINDOW: "MaintenanceWindow",
      MANAGED_INSTANCE: "ManagedInstance",
      OPSMETADATA: "OpsMetadata",
      OPS_ITEM: "OpsItem",
      PARAMETER: "Parameter",
      PATCH_BASELINE: "PatchBaseline"
    };
    var InternalServerError = class _InternalServerError extends SSMServiceException {
      static {
        __name(this, "_InternalServerError");
      }
      static {
        __name2(this, "InternalServerError");
      }
      name = "InternalServerError";
      $fault = "server";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InternalServerError",
          $fault: "server",
          ...opts
        });
        Object.setPrototypeOf(this, _InternalServerError.prototype);
        this.Message = opts.Message;
      }
    };
    var InvalidResourceId = class _InvalidResourceId extends SSMServiceException {
      static {
        __name(this, "_InvalidResourceId");
      }
      static {
        __name2(this, "InvalidResourceId");
      }
      name = "InvalidResourceId";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidResourceId",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidResourceId.prototype);
      }
    };
    var InvalidResourceType = class _InvalidResourceType extends SSMServiceException {
      static {
        __name(this, "_InvalidResourceType");
      }
      static {
        __name2(this, "InvalidResourceType");
      }
      name = "InvalidResourceType";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidResourceType",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidResourceType.prototype);
      }
    };
    var TooManyTagsError = class _TooManyTagsError extends SSMServiceException {
      static {
        __name(this, "_TooManyTagsError");
      }
      static {
        __name2(this, "TooManyTagsError");
      }
      name = "TooManyTagsError";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "TooManyTagsError",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _TooManyTagsError.prototype);
      }
    };
    var TooManyUpdates = class _TooManyUpdates extends SSMServiceException {
      static {
        __name(this, "_TooManyUpdates");
      }
      static {
        __name2(this, "TooManyUpdates");
      }
      name = "TooManyUpdates";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "TooManyUpdates",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _TooManyUpdates.prototype);
        this.Message = opts.Message;
      }
    };
    var ExternalAlarmState = {
      ALARM: "ALARM",
      UNKNOWN: "UNKNOWN"
    };
    var AlreadyExistsException = class _AlreadyExistsException extends SSMServiceException {
      static {
        __name(this, "_AlreadyExistsException");
      }
      static {
        __name2(this, "AlreadyExistsException");
      }
      name = "AlreadyExistsException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "AlreadyExistsException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _AlreadyExistsException.prototype);
        this.Message = opts.Message;
      }
    };
    var OpsItemConflictException = class _OpsItemConflictException extends SSMServiceException {
      static {
        __name(this, "_OpsItemConflictException");
      }
      static {
        __name2(this, "OpsItemConflictException");
      }
      name = "OpsItemConflictException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "OpsItemConflictException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _OpsItemConflictException.prototype);
        this.Message = opts.Message;
      }
    };
    var OpsItemInvalidParameterException = class _OpsItemInvalidParameterException extends SSMServiceException {
      static {
        __name(this, "_OpsItemInvalidParameterException");
      }
      static {
        __name2(this, "OpsItemInvalidParameterException");
      }
      name = "OpsItemInvalidParameterException";
      $fault = "client";
      ParameterNames;
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "OpsItemInvalidParameterException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _OpsItemInvalidParameterException.prototype);
        this.ParameterNames = opts.ParameterNames;
        this.Message = opts.Message;
      }
    };
    var OpsItemLimitExceededException = class _OpsItemLimitExceededException extends SSMServiceException {
      static {
        __name(this, "_OpsItemLimitExceededException");
      }
      static {
        __name2(this, "OpsItemLimitExceededException");
      }
      name = "OpsItemLimitExceededException";
      $fault = "client";
      ResourceTypes;
      Limit;
      LimitType;
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "OpsItemLimitExceededException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _OpsItemLimitExceededException.prototype);
        this.ResourceTypes = opts.ResourceTypes;
        this.Limit = opts.Limit;
        this.LimitType = opts.LimitType;
        this.Message = opts.Message;
      }
    };
    var OpsItemNotFoundException = class _OpsItemNotFoundException extends SSMServiceException {
      static {
        __name(this, "_OpsItemNotFoundException");
      }
      static {
        __name2(this, "OpsItemNotFoundException");
      }
      name = "OpsItemNotFoundException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "OpsItemNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _OpsItemNotFoundException.prototype);
        this.Message = opts.Message;
      }
    };
    var OpsItemRelatedItemAlreadyExistsException = class _OpsItemRelatedItemAlreadyExistsException extends SSMServiceException {
      static {
        __name(this, "_OpsItemRelatedItemAlreadyExistsException");
      }
      static {
        __name2(this, "OpsItemRelatedItemAlreadyExistsException");
      }
      name = "OpsItemRelatedItemAlreadyExistsException";
      $fault = "client";
      Message;
      ResourceUri;
      OpsItemId;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "OpsItemRelatedItemAlreadyExistsException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _OpsItemRelatedItemAlreadyExistsException.prototype);
        this.Message = opts.Message;
        this.ResourceUri = opts.ResourceUri;
        this.OpsItemId = opts.OpsItemId;
      }
    };
    var DuplicateInstanceId = class _DuplicateInstanceId extends SSMServiceException {
      static {
        __name(this, "_DuplicateInstanceId");
      }
      static {
        __name2(this, "DuplicateInstanceId");
      }
      name = "DuplicateInstanceId";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "DuplicateInstanceId",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _DuplicateInstanceId.prototype);
      }
    };
    var InvalidCommandId = class _InvalidCommandId extends SSMServiceException {
      static {
        __name(this, "_InvalidCommandId");
      }
      static {
        __name2(this, "InvalidCommandId");
      }
      name = "InvalidCommandId";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidCommandId",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidCommandId.prototype);
      }
    };
    var InvalidInstanceId = class _InvalidInstanceId extends SSMServiceException {
      static {
        __name(this, "_InvalidInstanceId");
      }
      static {
        __name2(this, "InvalidInstanceId");
      }
      name = "InvalidInstanceId";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidInstanceId",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidInstanceId.prototype);
        this.Message = opts.Message;
      }
    };
    var DoesNotExistException = class _DoesNotExistException extends SSMServiceException {
      static {
        __name(this, "_DoesNotExistException");
      }
      static {
        __name2(this, "DoesNotExistException");
      }
      name = "DoesNotExistException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "DoesNotExistException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _DoesNotExistException.prototype);
        this.Message = opts.Message;
      }
    };
    var InvalidParameters = class _InvalidParameters extends SSMServiceException {
      static {
        __name(this, "_InvalidParameters");
      }
      static {
        __name2(this, "InvalidParameters");
      }
      name = "InvalidParameters";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidParameters",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidParameters.prototype);
        this.Message = opts.Message;
      }
    };
    var AssociationAlreadyExists = class _AssociationAlreadyExists extends SSMServiceException {
      static {
        __name(this, "_AssociationAlreadyExists");
      }
      static {
        __name2(this, "AssociationAlreadyExists");
      }
      name = "AssociationAlreadyExists";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "AssociationAlreadyExists",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _AssociationAlreadyExists.prototype);
      }
    };
    var AssociationLimitExceeded = class _AssociationLimitExceeded extends SSMServiceException {
      static {
        __name(this, "_AssociationLimitExceeded");
      }
      static {
        __name2(this, "AssociationLimitExceeded");
      }
      name = "AssociationLimitExceeded";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "AssociationLimitExceeded",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _AssociationLimitExceeded.prototype);
      }
    };
    var AssociationComplianceSeverity = {
      Critical: "CRITICAL",
      High: "HIGH",
      Low: "LOW",
      Medium: "MEDIUM",
      Unspecified: "UNSPECIFIED"
    };
    var AssociationSyncCompliance = {
      Auto: "AUTO",
      Manual: "MANUAL"
    };
    var AssociationStatusName = {
      Failed: "Failed",
      Pending: "Pending",
      Success: "Success"
    };
    var InvalidDocument = class _InvalidDocument extends SSMServiceException {
      static {
        __name(this, "_InvalidDocument");
      }
      static {
        __name2(this, "InvalidDocument");
      }
      name = "InvalidDocument";
      $fault = "client";
      /**
       * <p>The SSM document doesn't exist or the document isn't available to the user. This exception
       *    can be issued by various API operations. </p>
       * @public
       */
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidDocument",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidDocument.prototype);
        this.Message = opts.Message;
      }
    };
    var InvalidDocumentVersion = class _InvalidDocumentVersion extends SSMServiceException {
      static {
        __name(this, "_InvalidDocumentVersion");
      }
      static {
        __name2(this, "InvalidDocumentVersion");
      }
      name = "InvalidDocumentVersion";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidDocumentVersion",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidDocumentVersion.prototype);
        this.Message = opts.Message;
      }
    };
    var InvalidOutputLocation = class _InvalidOutputLocation extends SSMServiceException {
      static {
        __name(this, "_InvalidOutputLocation");
      }
      static {
        __name2(this, "InvalidOutputLocation");
      }
      name = "InvalidOutputLocation";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidOutputLocation",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidOutputLocation.prototype);
      }
    };
    var InvalidSchedule = class _InvalidSchedule extends SSMServiceException {
      static {
        __name(this, "_InvalidSchedule");
      }
      static {
        __name2(this, "InvalidSchedule");
      }
      name = "InvalidSchedule";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidSchedule",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidSchedule.prototype);
        this.Message = opts.Message;
      }
    };
    var InvalidTag = class _InvalidTag extends SSMServiceException {
      static {
        __name(this, "_InvalidTag");
      }
      static {
        __name2(this, "InvalidTag");
      }
      name = "InvalidTag";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidTag",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidTag.prototype);
        this.Message = opts.Message;
      }
    };
    var InvalidTarget = class _InvalidTarget extends SSMServiceException {
      static {
        __name(this, "_InvalidTarget");
      }
      static {
        __name2(this, "InvalidTarget");
      }
      name = "InvalidTarget";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidTarget",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidTarget.prototype);
        this.Message = opts.Message;
      }
    };
    var InvalidTargetMaps = class _InvalidTargetMaps extends SSMServiceException {
      static {
        __name(this, "_InvalidTargetMaps");
      }
      static {
        __name2(this, "InvalidTargetMaps");
      }
      name = "InvalidTargetMaps";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidTargetMaps",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidTargetMaps.prototype);
        this.Message = opts.Message;
      }
    };
    var UnsupportedPlatformType = class _UnsupportedPlatformType extends SSMServiceException {
      static {
        __name(this, "_UnsupportedPlatformType");
      }
      static {
        __name2(this, "UnsupportedPlatformType");
      }
      name = "UnsupportedPlatformType";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "UnsupportedPlatformType",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _UnsupportedPlatformType.prototype);
        this.Message = opts.Message;
      }
    };
    var Fault = {
      Client: "Client",
      Server: "Server",
      Unknown: "Unknown"
    };
    var AttachmentsSourceKey = {
      AttachmentReference: "AttachmentReference",
      S3FileUrl: "S3FileUrl",
      SourceUrl: "SourceUrl"
    };
    var DocumentFormat = {
      JSON: "JSON",
      TEXT: "TEXT",
      YAML: "YAML"
    };
    var DocumentType = {
      ApplicationConfiguration: "ApplicationConfiguration",
      ApplicationConfigurationSchema: "ApplicationConfigurationSchema",
      AutoApprovalPolicy: "AutoApprovalPolicy",
      Automation: "Automation",
      ChangeCalendar: "ChangeCalendar",
      ChangeTemplate: "Automation.ChangeTemplate",
      CloudFormation: "CloudFormation",
      Command: "Command",
      ConformancePackTemplate: "ConformancePackTemplate",
      DeploymentStrategy: "DeploymentStrategy",
      ManualApprovalPolicy: "ManualApprovalPolicy",
      Package: "Package",
      Policy: "Policy",
      ProblemAnalysis: "ProblemAnalysis",
      ProblemAnalysisTemplate: "ProblemAnalysisTemplate",
      QuickSetup: "QuickSetup",
      Session: "Session"
    };
    var DocumentHashType = {
      SHA1: "Sha1",
      SHA256: "Sha256"
    };
    var DocumentParameterType = {
      String: "String",
      StringList: "StringList"
    };
    var PlatformType = {
      LINUX: "Linux",
      MACOS: "MacOS",
      WINDOWS: "Windows"
    };
    var ReviewStatus = {
      APPROVED: "APPROVED",
      NOT_REVIEWED: "NOT_REVIEWED",
      PENDING: "PENDING",
      REJECTED: "REJECTED"
    };
    var DocumentStatus = {
      Active: "Active",
      Creating: "Creating",
      Deleting: "Deleting",
      Failed: "Failed",
      Updating: "Updating"
    };
    var DocumentAlreadyExists = class _DocumentAlreadyExists extends SSMServiceException {
      static {
        __name(this, "_DocumentAlreadyExists");
      }
      static {
        __name2(this, "DocumentAlreadyExists");
      }
      name = "DocumentAlreadyExists";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "DocumentAlreadyExists",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _DocumentAlreadyExists.prototype);
        this.Message = opts.Message;
      }
    };
    var DocumentLimitExceeded = class _DocumentLimitExceeded extends SSMServiceException {
      static {
        __name(this, "_DocumentLimitExceeded");
      }
      static {
        __name2(this, "DocumentLimitExceeded");
      }
      name = "DocumentLimitExceeded";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "DocumentLimitExceeded",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _DocumentLimitExceeded.prototype);
        this.Message = opts.Message;
      }
    };
    var InvalidDocumentContent = class _InvalidDocumentContent extends SSMServiceException {
      static {
        __name(this, "_InvalidDocumentContent");
      }
      static {
        __name2(this, "InvalidDocumentContent");
      }
      name = "InvalidDocumentContent";
      $fault = "client";
      /**
       * <p>A description of the validation error.</p>
       * @public
       */
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidDocumentContent",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidDocumentContent.prototype);
        this.Message = opts.Message;
      }
    };
    var InvalidDocumentSchemaVersion = class _InvalidDocumentSchemaVersion extends SSMServiceException {
      static {
        __name(this, "_InvalidDocumentSchemaVersion");
      }
      static {
        __name2(this, "InvalidDocumentSchemaVersion");
      }
      name = "InvalidDocumentSchemaVersion";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidDocumentSchemaVersion",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidDocumentSchemaVersion.prototype);
        this.Message = opts.Message;
      }
    };
    var MaxDocumentSizeExceeded = class _MaxDocumentSizeExceeded extends SSMServiceException {
      static {
        __name(this, "_MaxDocumentSizeExceeded");
      }
      static {
        __name2(this, "MaxDocumentSizeExceeded");
      }
      name = "MaxDocumentSizeExceeded";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "MaxDocumentSizeExceeded",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _MaxDocumentSizeExceeded.prototype);
        this.Message = opts.Message;
      }
    };
    var IdempotentParameterMismatch = class _IdempotentParameterMismatch extends SSMServiceException {
      static {
        __name(this, "_IdempotentParameterMismatch");
      }
      static {
        __name2(this, "IdempotentParameterMismatch");
      }
      name = "IdempotentParameterMismatch";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "IdempotentParameterMismatch",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _IdempotentParameterMismatch.prototype);
        this.Message = opts.Message;
      }
    };
    var ResourceLimitExceededException = class _ResourceLimitExceededException extends SSMServiceException {
      static {
        __name(this, "_ResourceLimitExceededException");
      }
      static {
        __name2(this, "ResourceLimitExceededException");
      }
      name = "ResourceLimitExceededException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ResourceLimitExceededException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ResourceLimitExceededException.prototype);
        this.Message = opts.Message;
      }
    };
    var OpsItemDataType = {
      SEARCHABLE_STRING: "SearchableString",
      STRING: "String"
    };
    var OpsItemAccessDeniedException = class _OpsItemAccessDeniedException extends SSMServiceException {
      static {
        __name(this, "_OpsItemAccessDeniedException");
      }
      static {
        __name2(this, "OpsItemAccessDeniedException");
      }
      name = "OpsItemAccessDeniedException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "OpsItemAccessDeniedException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _OpsItemAccessDeniedException.prototype);
        this.Message = opts.Message;
      }
    };
    var OpsItemAlreadyExistsException = class _OpsItemAlreadyExistsException extends SSMServiceException {
      static {
        __name(this, "_OpsItemAlreadyExistsException");
      }
      static {
        __name2(this, "OpsItemAlreadyExistsException");
      }
      name = "OpsItemAlreadyExistsException";
      $fault = "client";
      Message;
      OpsItemId;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "OpsItemAlreadyExistsException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _OpsItemAlreadyExistsException.prototype);
        this.Message = opts.Message;
        this.OpsItemId = opts.OpsItemId;
      }
    };
    var OpsMetadataAlreadyExistsException = class _OpsMetadataAlreadyExistsException extends SSMServiceException {
      static {
        __name(this, "_OpsMetadataAlreadyExistsException");
      }
      static {
        __name2(this, "OpsMetadataAlreadyExistsException");
      }
      name = "OpsMetadataAlreadyExistsException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "OpsMetadataAlreadyExistsException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _OpsMetadataAlreadyExistsException.prototype);
      }
    };
    var OpsMetadataInvalidArgumentException = class _OpsMetadataInvalidArgumentException extends SSMServiceException {
      static {
        __name(this, "_OpsMetadataInvalidArgumentException");
      }
      static {
        __name2(this, "OpsMetadataInvalidArgumentException");
      }
      name = "OpsMetadataInvalidArgumentException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "OpsMetadataInvalidArgumentException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _OpsMetadataInvalidArgumentException.prototype);
      }
    };
    var OpsMetadataLimitExceededException = class _OpsMetadataLimitExceededException extends SSMServiceException {
      static {
        __name(this, "_OpsMetadataLimitExceededException");
      }
      static {
        __name2(this, "OpsMetadataLimitExceededException");
      }
      name = "OpsMetadataLimitExceededException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "OpsMetadataLimitExceededException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _OpsMetadataLimitExceededException.prototype);
      }
    };
    var OpsMetadataTooManyUpdatesException = class _OpsMetadataTooManyUpdatesException extends SSMServiceException {
      static {
        __name(this, "_OpsMetadataTooManyUpdatesException");
      }
      static {
        __name2(this, "OpsMetadataTooManyUpdatesException");
      }
      name = "OpsMetadataTooManyUpdatesException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "OpsMetadataTooManyUpdatesException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _OpsMetadataTooManyUpdatesException.prototype);
      }
    };
    var PatchComplianceLevel = {
      Critical: "CRITICAL",
      High: "HIGH",
      Informational: "INFORMATIONAL",
      Low: "LOW",
      Medium: "MEDIUM",
      Unspecified: "UNSPECIFIED"
    };
    var PatchFilterKey = {
      AdvisoryId: "ADVISORY_ID",
      Arch: "ARCH",
      BugzillaId: "BUGZILLA_ID",
      CVEId: "CVE_ID",
      Classification: "CLASSIFICATION",
      Epoch: "EPOCH",
      MsrcSeverity: "MSRC_SEVERITY",
      Name: "NAME",
      PatchId: "PATCH_ID",
      PatchSet: "PATCH_SET",
      Priority: "PRIORITY",
      Product: "PRODUCT",
      ProductFamily: "PRODUCT_FAMILY",
      Release: "RELEASE",
      Repository: "REPOSITORY",
      Section: "SECTION",
      Security: "SECURITY",
      Severity: "SEVERITY",
      Version: "VERSION"
    };
    var PatchComplianceStatus = {
      Compliant: "COMPLIANT",
      NonCompliant: "NON_COMPLIANT"
    };
    var OperatingSystem = {
      AlmaLinux: "ALMA_LINUX",
      AmazonLinux: "AMAZON_LINUX",
      AmazonLinux2: "AMAZON_LINUX_2",
      AmazonLinux2022: "AMAZON_LINUX_2022",
      AmazonLinux2023: "AMAZON_LINUX_2023",
      CentOS: "CENTOS",
      Debian: "DEBIAN",
      MacOS: "MACOS",
      OracleLinux: "ORACLE_LINUX",
      Raspbian: "RASPBIAN",
      RedhatEnterpriseLinux: "REDHAT_ENTERPRISE_LINUX",
      Rocky_Linux: "ROCKY_LINUX",
      Suse: "SUSE",
      Ubuntu: "UBUNTU",
      Windows: "WINDOWS"
    };
    var PatchAction = {
      AllowAsDependency: "ALLOW_AS_DEPENDENCY",
      Block: "BLOCK"
    };
    var ResourceDataSyncS3Format = {
      JSON_SERDE: "JsonSerDe"
    };
    var ResourceDataSyncAlreadyExistsException = class _ResourceDataSyncAlreadyExistsException extends SSMServiceException {
      static {
        __name(this, "_ResourceDataSyncAlreadyExistsException");
      }
      static {
        __name2(this, "ResourceDataSyncAlreadyExistsException");
      }
      name = "ResourceDataSyncAlreadyExistsException";
      $fault = "client";
      SyncName;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ResourceDataSyncAlreadyExistsException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ResourceDataSyncAlreadyExistsException.prototype);
        this.SyncName = opts.SyncName;
      }
    };
    var ResourceDataSyncCountExceededException = class _ResourceDataSyncCountExceededException extends SSMServiceException {
      static {
        __name(this, "_ResourceDataSyncCountExceededException");
      }
      static {
        __name2(this, "ResourceDataSyncCountExceededException");
      }
      name = "ResourceDataSyncCountExceededException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ResourceDataSyncCountExceededException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ResourceDataSyncCountExceededException.prototype);
        this.Message = opts.Message;
      }
    };
    var ResourceDataSyncInvalidConfigurationException = class _ResourceDataSyncInvalidConfigurationException extends SSMServiceException {
      static {
        __name(this, "_ResourceDataSyncInvalidConfigurationException");
      }
      static {
        __name2(this, "ResourceDataSyncInvalidConfigurationException");
      }
      name = "ResourceDataSyncInvalidConfigurationException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ResourceDataSyncInvalidConfigurationException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ResourceDataSyncInvalidConfigurationException.prototype);
        this.Message = opts.Message;
      }
    };
    var InvalidActivation = class _InvalidActivation extends SSMServiceException {
      static {
        __name(this, "_InvalidActivation");
      }
      static {
        __name2(this, "InvalidActivation");
      }
      name = "InvalidActivation";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidActivation",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidActivation.prototype);
        this.Message = opts.Message;
      }
    };
    var InvalidActivationId = class _InvalidActivationId extends SSMServiceException {
      static {
        __name(this, "_InvalidActivationId");
      }
      static {
        __name2(this, "InvalidActivationId");
      }
      name = "InvalidActivationId";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidActivationId",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidActivationId.prototype);
        this.Message = opts.Message;
      }
    };
    var AssociationDoesNotExist = class _AssociationDoesNotExist extends SSMServiceException {
      static {
        __name(this, "_AssociationDoesNotExist");
      }
      static {
        __name2(this, "AssociationDoesNotExist");
      }
      name = "AssociationDoesNotExist";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "AssociationDoesNotExist",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _AssociationDoesNotExist.prototype);
        this.Message = opts.Message;
      }
    };
    var AssociatedInstances = class _AssociatedInstances extends SSMServiceException {
      static {
        __name(this, "_AssociatedInstances");
      }
      static {
        __name2(this, "AssociatedInstances");
      }
      name = "AssociatedInstances";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "AssociatedInstances",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _AssociatedInstances.prototype);
      }
    };
    var InvalidDocumentOperation = class _InvalidDocumentOperation extends SSMServiceException {
      static {
        __name(this, "_InvalidDocumentOperation");
      }
      static {
        __name2(this, "InvalidDocumentOperation");
      }
      name = "InvalidDocumentOperation";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidDocumentOperation",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidDocumentOperation.prototype);
        this.Message = opts.Message;
      }
    };
    var InventorySchemaDeleteOption = {
      DELETE_SCHEMA: "DeleteSchema",
      DISABLE_SCHEMA: "DisableSchema"
    };
    var InvalidDeleteInventoryParametersException = class _InvalidDeleteInventoryParametersException extends SSMServiceException {
      static {
        __name(this, "_InvalidDeleteInventoryParametersException");
      }
      static {
        __name2(this, "InvalidDeleteInventoryParametersException");
      }
      name = "InvalidDeleteInventoryParametersException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidDeleteInventoryParametersException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidDeleteInventoryParametersException.prototype);
        this.Message = opts.Message;
      }
    };
    var InvalidInventoryRequestException = class _InvalidInventoryRequestException extends SSMServiceException {
      static {
        __name(this, "_InvalidInventoryRequestException");
      }
      static {
        __name2(this, "InvalidInventoryRequestException");
      }
      name = "InvalidInventoryRequestException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidInventoryRequestException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidInventoryRequestException.prototype);
        this.Message = opts.Message;
      }
    };
    var InvalidOptionException = class _InvalidOptionException extends SSMServiceException {
      static {
        __name(this, "_InvalidOptionException");
      }
      static {
        __name2(this, "InvalidOptionException");
      }
      name = "InvalidOptionException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidOptionException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidOptionException.prototype);
        this.Message = opts.Message;
      }
    };
    var InvalidTypeNameException = class _InvalidTypeNameException extends SSMServiceException {
      static {
        __name(this, "_InvalidTypeNameException");
      }
      static {
        __name2(this, "InvalidTypeNameException");
      }
      name = "InvalidTypeNameException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidTypeNameException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidTypeNameException.prototype);
        this.Message = opts.Message;
      }
    };
    var OpsMetadataNotFoundException = class _OpsMetadataNotFoundException extends SSMServiceException {
      static {
        __name(this, "_OpsMetadataNotFoundException");
      }
      static {
        __name2(this, "OpsMetadataNotFoundException");
      }
      name = "OpsMetadataNotFoundException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "OpsMetadataNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _OpsMetadataNotFoundException.prototype);
      }
    };
    var ParameterNotFound = class _ParameterNotFound extends SSMServiceException {
      static {
        __name(this, "_ParameterNotFound");
      }
      static {
        __name2(this, "ParameterNotFound");
      }
      name = "ParameterNotFound";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ParameterNotFound",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ParameterNotFound.prototype);
      }
    };
    var ResourceInUseException = class _ResourceInUseException extends SSMServiceException {
      static {
        __name(this, "_ResourceInUseException");
      }
      static {
        __name2(this, "ResourceInUseException");
      }
      name = "ResourceInUseException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ResourceInUseException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ResourceInUseException.prototype);
        this.Message = opts.Message;
      }
    };
    var ResourceDataSyncNotFoundException = class _ResourceDataSyncNotFoundException extends SSMServiceException {
      static {
        __name(this, "_ResourceDataSyncNotFoundException");
      }
      static {
        __name2(this, "ResourceDataSyncNotFoundException");
      }
      name = "ResourceDataSyncNotFoundException";
      $fault = "client";
      SyncName;
      SyncType;
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ResourceDataSyncNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ResourceDataSyncNotFoundException.prototype);
        this.SyncName = opts.SyncName;
        this.SyncType = opts.SyncType;
        this.Message = opts.Message;
      }
    };
    var MalformedResourcePolicyDocumentException = class _MalformedResourcePolicyDocumentException extends SSMServiceException {
      static {
        __name(this, "_MalformedResourcePolicyDocumentException");
      }
      static {
        __name2(this, "MalformedResourcePolicyDocumentException");
      }
      name = "MalformedResourcePolicyDocumentException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "MalformedResourcePolicyDocumentException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _MalformedResourcePolicyDocumentException.prototype);
        this.Message = opts.Message;
      }
    };
    var ResourceNotFoundException2 = class _ResourceNotFoundException extends SSMServiceException {
      static {
        __name(this, "_ResourceNotFoundException");
      }
      static {
        __name2(this, "ResourceNotFoundException");
      }
      name = "ResourceNotFoundException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ResourceNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
        this.Message = opts.Message;
      }
    };
    var ResourcePolicyConflictException = class _ResourcePolicyConflictException extends SSMServiceException {
      static {
        __name(this, "_ResourcePolicyConflictException");
      }
      static {
        __name2(this, "ResourcePolicyConflictException");
      }
      name = "ResourcePolicyConflictException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ResourcePolicyConflictException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ResourcePolicyConflictException.prototype);
        this.Message = opts.Message;
      }
    };
    var ResourcePolicyInvalidParameterException = class _ResourcePolicyInvalidParameterException extends SSMServiceException {
      static {
        __name(this, "_ResourcePolicyInvalidParameterException");
      }
      static {
        __name2(this, "ResourcePolicyInvalidParameterException");
      }
      name = "ResourcePolicyInvalidParameterException";
      $fault = "client";
      ParameterNames;
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ResourcePolicyInvalidParameterException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ResourcePolicyInvalidParameterException.prototype);
        this.ParameterNames = opts.ParameterNames;
        this.Message = opts.Message;
      }
    };
    var ResourcePolicyNotFoundException = class _ResourcePolicyNotFoundException extends SSMServiceException {
      static {
        __name(this, "_ResourcePolicyNotFoundException");
      }
      static {
        __name2(this, "ResourcePolicyNotFoundException");
      }
      name = "ResourcePolicyNotFoundException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ResourcePolicyNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ResourcePolicyNotFoundException.prototype);
        this.Message = opts.Message;
      }
    };
    var TargetInUseException = class _TargetInUseException extends SSMServiceException {
      static {
        __name(this, "_TargetInUseException");
      }
      static {
        __name2(this, "TargetInUseException");
      }
      name = "TargetInUseException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "TargetInUseException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _TargetInUseException.prototype);
        this.Message = opts.Message;
      }
    };
    var DescribeActivationsFilterKeys = {
      ACTIVATION_IDS: "ActivationIds",
      DEFAULT_INSTANCE_NAME: "DefaultInstanceName",
      IAM_ROLE: "IamRole"
    };
    var InvalidFilter = class _InvalidFilter extends SSMServiceException {
      static {
        __name(this, "_InvalidFilter");
      }
      static {
        __name2(this, "InvalidFilter");
      }
      name = "InvalidFilter";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidFilter",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidFilter.prototype);
        this.Message = opts.Message;
      }
    };
    var InvalidNextToken = class _InvalidNextToken extends SSMServiceException {
      static {
        __name(this, "_InvalidNextToken");
      }
      static {
        __name2(this, "InvalidNextToken");
      }
      name = "InvalidNextToken";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidNextToken",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidNextToken.prototype);
        this.Message = opts.Message;
      }
    };
    var InvalidAssociationVersion = class _InvalidAssociationVersion extends SSMServiceException {
      static {
        __name(this, "_InvalidAssociationVersion");
      }
      static {
        __name2(this, "InvalidAssociationVersion");
      }
      name = "InvalidAssociationVersion";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidAssociationVersion",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidAssociationVersion.prototype);
        this.Message = opts.Message;
      }
    };
    var AssociationExecutionFilterKey = {
      CreatedTime: "CreatedTime",
      ExecutionId: "ExecutionId",
      Status: "Status"
    };
    var AssociationFilterOperatorType = {
      Equal: "EQUAL",
      GreaterThan: "GREATER_THAN",
      LessThan: "LESS_THAN"
    };
    var AssociationExecutionDoesNotExist = class _AssociationExecutionDoesNotExist extends SSMServiceException {
      static {
        __name(this, "_AssociationExecutionDoesNotExist");
      }
      static {
        __name2(this, "AssociationExecutionDoesNotExist");
      }
      name = "AssociationExecutionDoesNotExist";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "AssociationExecutionDoesNotExist",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _AssociationExecutionDoesNotExist.prototype);
        this.Message = opts.Message;
      }
    };
    var AssociationExecutionTargetsFilterKey = {
      ResourceId: "ResourceId",
      ResourceType: "ResourceType",
      Status: "Status"
    };
    var AutomationExecutionFilterKey = {
      AUTOMATION_SUBTYPE: "AutomationSubtype",
      AUTOMATION_TYPE: "AutomationType",
      CURRENT_ACTION: "CurrentAction",
      DOCUMENT_NAME_PREFIX: "DocumentNamePrefix",
      EXECUTION_ID: "ExecutionId",
      EXECUTION_STATUS: "ExecutionStatus",
      OPS_ITEM_ID: "OpsItemId",
      PARENT_EXECUTION_ID: "ParentExecutionId",
      START_TIME_AFTER: "StartTimeAfter",
      START_TIME_BEFORE: "StartTimeBefore",
      TAG_KEY: "TagKey",
      TARGET_RESOURCE_GROUP: "TargetResourceGroup"
    };
    var AutomationExecutionStatus = {
      APPROVED: "Approved",
      CANCELLED: "Cancelled",
      CANCELLING: "Cancelling",
      CHANGE_CALENDAR_OVERRIDE_APPROVED: "ChangeCalendarOverrideApproved",
      CHANGE_CALENDAR_OVERRIDE_REJECTED: "ChangeCalendarOverrideRejected",
      COMPLETED_WITH_FAILURE: "CompletedWithFailure",
      COMPLETED_WITH_SUCCESS: "CompletedWithSuccess",
      EXITED: "Exited",
      FAILED: "Failed",
      INPROGRESS: "InProgress",
      PENDING: "Pending",
      PENDING_APPROVAL: "PendingApproval",
      PENDING_CHANGE_CALENDAR_OVERRIDE: "PendingChangeCalendarOverride",
      REJECTED: "Rejected",
      RUNBOOK_INPROGRESS: "RunbookInProgress",
      SCHEDULED: "Scheduled",
      SUCCESS: "Success",
      TIMEDOUT: "TimedOut",
      WAITING: "Waiting"
    };
    var AutomationSubtype = {
      AccessRequest: "AccessRequest",
      ChangeRequest: "ChangeRequest"
    };
    var AutomationType = {
      CrossAccount: "CrossAccount",
      Local: "Local"
    };
    var ExecutionMode = {
      Auto: "Auto",
      Interactive: "Interactive"
    };
    var InvalidFilterKey = class _InvalidFilterKey extends SSMServiceException {
      static {
        __name(this, "_InvalidFilterKey");
      }
      static {
        __name2(this, "InvalidFilterKey");
      }
      name = "InvalidFilterKey";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidFilterKey",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidFilterKey.prototype);
      }
    };
    var InvalidFilterValue = class _InvalidFilterValue extends SSMServiceException {
      static {
        __name(this, "_InvalidFilterValue");
      }
      static {
        __name2(this, "InvalidFilterValue");
      }
      name = "InvalidFilterValue";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidFilterValue",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidFilterValue.prototype);
        this.Message = opts.Message;
      }
    };
    var AutomationExecutionNotFoundException = class _AutomationExecutionNotFoundException extends SSMServiceException {
      static {
        __name(this, "_AutomationExecutionNotFoundException");
      }
      static {
        __name2(this, "AutomationExecutionNotFoundException");
      }
      name = "AutomationExecutionNotFoundException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "AutomationExecutionNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _AutomationExecutionNotFoundException.prototype);
        this.Message = opts.Message;
      }
    };
    var StepExecutionFilterKey = {
      ACTION: "Action",
      PARENT_STEP_EXECUTION_ID: "ParentStepExecutionId",
      PARENT_STEP_ITERATION: "ParentStepIteration",
      PARENT_STEP_ITERATOR_VALUE: "ParentStepIteratorValue",
      START_TIME_AFTER: "StartTimeAfter",
      START_TIME_BEFORE: "StartTimeBefore",
      STEP_EXECUTION_ID: "StepExecutionId",
      STEP_EXECUTION_STATUS: "StepExecutionStatus",
      STEP_NAME: "StepName"
    };
    var DocumentPermissionType = {
      SHARE: "Share"
    };
    var InvalidPermissionType = class _InvalidPermissionType extends SSMServiceException {
      static {
        __name(this, "_InvalidPermissionType");
      }
      static {
        __name2(this, "InvalidPermissionType");
      }
      name = "InvalidPermissionType";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidPermissionType",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidPermissionType.prototype);
        this.Message = opts.Message;
      }
    };
    var PatchDeploymentStatus = {
      Approved: "APPROVED",
      ExplicitApproved: "EXPLICIT_APPROVED",
      ExplicitRejected: "EXPLICIT_REJECTED",
      PendingApproval: "PENDING_APPROVAL"
    };
    var UnsupportedOperatingSystem = class _UnsupportedOperatingSystem extends SSMServiceException {
      static {
        __name(this, "_UnsupportedOperatingSystem");
      }
      static {
        __name2(this, "UnsupportedOperatingSystem");
      }
      name = "UnsupportedOperatingSystem";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "UnsupportedOperatingSystem",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _UnsupportedOperatingSystem.prototype);
        this.Message = opts.Message;
      }
    };
    var InstanceInformationFilterKey = {
      ACTIVATION_IDS: "ActivationIds",
      AGENT_VERSION: "AgentVersion",
      ASSOCIATION_STATUS: "AssociationStatus",
      IAM_ROLE: "IamRole",
      INSTANCE_IDS: "InstanceIds",
      PING_STATUS: "PingStatus",
      PLATFORM_TYPES: "PlatformTypes",
      RESOURCE_TYPE: "ResourceType"
    };
    var PingStatus = {
      CONNECTION_LOST: "ConnectionLost",
      INACTIVE: "Inactive",
      ONLINE: "Online"
    };
    var ResourceType = {
      EC2_INSTANCE: "EC2Instance",
      MANAGED_INSTANCE: "ManagedInstance"
    };
    var SourceType = {
      AWS_EC2_INSTANCE: "AWS::EC2::Instance",
      AWS_IOT_THING: "AWS::IoT::Thing",
      AWS_SSM_MANAGEDINSTANCE: "AWS::SSM::ManagedInstance"
    };
    var InvalidInstanceInformationFilterValue = class _InvalidInstanceInformationFilterValue extends SSMServiceException {
      static {
        __name(this, "_InvalidInstanceInformationFilterValue");
      }
      static {
        __name2(this, "InvalidInstanceInformationFilterValue");
      }
      name = "InvalidInstanceInformationFilterValue";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidInstanceInformationFilterValue",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidInstanceInformationFilterValue.prototype);
      }
    };
    var PatchComplianceDataState = {
      AvailableSecurityUpdate: "AVAILABLE_SECURITY_UPDATE",
      Failed: "FAILED",
      Installed: "INSTALLED",
      InstalledOther: "INSTALLED_OTHER",
      InstalledPendingReboot: "INSTALLED_PENDING_REBOOT",
      InstalledRejected: "INSTALLED_REJECTED",
      Missing: "MISSING",
      NotApplicable: "NOT_APPLICABLE"
    };
    var PatchOperationType = {
      INSTALL: "Install",
      SCAN: "Scan"
    };
    var RebootOption = {
      NO_REBOOT: "NoReboot",
      REBOOT_IF_NEEDED: "RebootIfNeeded"
    };
    var InstancePatchStateOperatorType = {
      EQUAL: "Equal",
      GREATER_THAN: "GreaterThan",
      LESS_THAN: "LessThan",
      NOT_EQUAL: "NotEqual"
    };
    var InstancePropertyFilterOperator = {
      BEGIN_WITH: "BeginWith",
      EQUAL: "Equal",
      GREATER_THAN: "GreaterThan",
      LESS_THAN: "LessThan",
      NOT_EQUAL: "NotEqual"
    };
    var InstancePropertyFilterKey = {
      ACTIVATION_IDS: "ActivationIds",
      AGENT_VERSION: "AgentVersion",
      ASSOCIATION_STATUS: "AssociationStatus",
      DOCUMENT_NAME: "DocumentName",
      IAM_ROLE: "IamRole",
      INSTANCE_IDS: "InstanceIds",
      PING_STATUS: "PingStatus",
      PLATFORM_TYPES: "PlatformTypes",
      RESOURCE_TYPE: "ResourceType"
    };
    var InvalidInstancePropertyFilterValue = class _InvalidInstancePropertyFilterValue extends SSMServiceException {
      static {
        __name(this, "_InvalidInstancePropertyFilterValue");
      }
      static {
        __name2(this, "InvalidInstancePropertyFilterValue");
      }
      name = "InvalidInstancePropertyFilterValue";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidInstancePropertyFilterValue",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidInstancePropertyFilterValue.prototype);
      }
    };
    var InventoryDeletionStatus = {
      COMPLETE: "Complete",
      IN_PROGRESS: "InProgress"
    };
    var InvalidDeletionIdException = class _InvalidDeletionIdException extends SSMServiceException {
      static {
        __name(this, "_InvalidDeletionIdException");
      }
      static {
        __name2(this, "InvalidDeletionIdException");
      }
      name = "InvalidDeletionIdException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidDeletionIdException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidDeletionIdException.prototype);
        this.Message = opts.Message;
      }
    };
    var MaintenanceWindowExecutionStatus = {
      Cancelled: "CANCELLED",
      Cancelling: "CANCELLING",
      Failed: "FAILED",
      InProgress: "IN_PROGRESS",
      Pending: "PENDING",
      SkippedOverlapping: "SKIPPED_OVERLAPPING",
      Success: "SUCCESS",
      TimedOut: "TIMED_OUT"
    };
    var MaintenanceWindowTaskType = {
      Automation: "AUTOMATION",
      Lambda: "LAMBDA",
      RunCommand: "RUN_COMMAND",
      StepFunctions: "STEP_FUNCTIONS"
    };
    var CreateAssociationRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Parameters && { Parameters: import_smithy_client28.SENSITIVE_STRING }
    }), "CreateAssociationRequestFilterSensitiveLog");
    var AssociationDescriptionFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Parameters && { Parameters: import_smithy_client28.SENSITIVE_STRING }
    }), "AssociationDescriptionFilterSensitiveLog");
    var CreateAssociationResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.AssociationDescription && {
        AssociationDescription: AssociationDescriptionFilterSensitiveLog(obj.AssociationDescription)
      }
    }), "CreateAssociationResultFilterSensitiveLog");
    var CreateAssociationBatchRequestEntryFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Parameters && { Parameters: import_smithy_client28.SENSITIVE_STRING }
    }), "CreateAssociationBatchRequestEntryFilterSensitiveLog");
    var CreateAssociationBatchRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Entries && {
        Entries: obj.Entries.map((item) => CreateAssociationBatchRequestEntryFilterSensitiveLog(item))
      }
    }), "CreateAssociationBatchRequestFilterSensitiveLog");
    var FailedCreateAssociationFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Entry && { Entry: CreateAssociationBatchRequestEntryFilterSensitiveLog(obj.Entry) }
    }), "FailedCreateAssociationFilterSensitiveLog");
    var CreateAssociationBatchResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Successful && { Successful: obj.Successful.map((item) => AssociationDescriptionFilterSensitiveLog(item)) },
      ...obj.Failed && { Failed: obj.Failed.map((item) => FailedCreateAssociationFilterSensitiveLog(item)) }
    }), "CreateAssociationBatchResultFilterSensitiveLog");
    var CreateMaintenanceWindowRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Description && { Description: import_smithy_client28.SENSITIVE_STRING }
    }), "CreateMaintenanceWindowRequestFilterSensitiveLog");
    var PatchSourceFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Configuration && { Configuration: import_smithy_client28.SENSITIVE_STRING }
    }), "PatchSourceFilterSensitiveLog");
    var CreatePatchBaselineRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Sources && { Sources: obj.Sources.map((item) => PatchSourceFilterSensitiveLog(item)) }
    }), "CreatePatchBaselineRequestFilterSensitiveLog");
    var DescribeAssociationResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.AssociationDescription && {
        AssociationDescription: AssociationDescriptionFilterSensitiveLog(obj.AssociationDescription)
      }
    }), "DescribeAssociationResultFilterSensitiveLog");
    var InstanceInformationFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.IPAddress && { IPAddress: import_smithy_client28.SENSITIVE_STRING }
    }), "InstanceInformationFilterSensitiveLog");
    var DescribeInstanceInformationResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.InstanceInformationList && {
        InstanceInformationList: obj.InstanceInformationList.map((item) => InstanceInformationFilterSensitiveLog(item))
      }
    }), "DescribeInstanceInformationResultFilterSensitiveLog");
    var InstancePatchStateFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.OwnerInformation && { OwnerInformation: import_smithy_client28.SENSITIVE_STRING }
    }), "InstancePatchStateFilterSensitiveLog");
    var DescribeInstancePatchStatesResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.InstancePatchStates && {
        InstancePatchStates: obj.InstancePatchStates.map((item) => InstancePatchStateFilterSensitiveLog(item))
      }
    }), "DescribeInstancePatchStatesResultFilterSensitiveLog");
    var DescribeInstancePatchStatesForPatchGroupResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.InstancePatchStates && {
        InstancePatchStates: obj.InstancePatchStates.map((item) => InstancePatchStateFilterSensitiveLog(item))
      }
    }), "DescribeInstancePatchStatesForPatchGroupResultFilterSensitiveLog");
    var InstancePropertyFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.IPAddress && { IPAddress: import_smithy_client28.SENSITIVE_STRING }
    }), "InstancePropertyFilterSensitiveLog");
    var DescribeInstancePropertiesResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.InstanceProperties && {
        InstanceProperties: obj.InstanceProperties.map((item) => InstancePropertyFilterSensitiveLog(item))
      }
    }), "DescribeInstancePropertiesResultFilterSensitiveLog");
    var MaintenanceWindowExecutionTaskInvocationIdentityFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Parameters && { Parameters: import_smithy_client28.SENSITIVE_STRING },
      ...obj.OwnerInformation && { OwnerInformation: import_smithy_client28.SENSITIVE_STRING }
    }), "MaintenanceWindowExecutionTaskInvocationIdentityFilterSensitiveLog");
    var DescribeMaintenanceWindowExecutionTaskInvocationsResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.WindowExecutionTaskInvocationIdentities && {
        WindowExecutionTaskInvocationIdentities: obj.WindowExecutionTaskInvocationIdentities.map(
          (item) => MaintenanceWindowExecutionTaskInvocationIdentityFilterSensitiveLog(item)
        )
      }
    }), "DescribeMaintenanceWindowExecutionTaskInvocationsResultFilterSensitiveLog");
    var MaintenanceWindowIdentityFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Description && { Description: import_smithy_client28.SENSITIVE_STRING }
    }), "MaintenanceWindowIdentityFilterSensitiveLog");
    var MaintenanceWindowResourceType = {
      Instance: "INSTANCE",
      ResourceGroup: "RESOURCE_GROUP"
    };
    var MaintenanceWindowTaskCutoffBehavior = {
      CancelTask: "CANCEL_TASK",
      ContinueTask: "CONTINUE_TASK"
    };
    var OpsItemFilterKey = {
      ACCESS_REQUEST_APPROVER_ARN: "AccessRequestByApproverArn",
      ACCESS_REQUEST_APPROVER_ID: "AccessRequestByApproverId",
      ACCESS_REQUEST_IS_REPLICA: "AccessRequestByIsReplica",
      ACCESS_REQUEST_REQUESTER_ARN: "AccessRequestByRequesterArn",
      ACCESS_REQUEST_REQUESTER_ID: "AccessRequestByRequesterId",
      ACCESS_REQUEST_SOURCE_ACCOUNT_ID: "AccessRequestBySourceAccountId",
      ACCESS_REQUEST_SOURCE_OPS_ITEM_ID: "AccessRequestBySourceOpsItemId",
      ACCESS_REQUEST_SOURCE_REGION: "AccessRequestBySourceRegion",
      ACCESS_REQUEST_TARGET_RESOURCE_ID: "AccessRequestByTargetResourceId",
      ACCOUNT_ID: "AccountId",
      ACTUAL_END_TIME: "ActualEndTime",
      ACTUAL_START_TIME: "ActualStartTime",
      AUTOMATION_ID: "AutomationId",
      CATEGORY: "Category",
      CHANGE_REQUEST_APPROVER_ARN: "ChangeRequestByApproverArn",
      CHANGE_REQUEST_APPROVER_NAME: "ChangeRequestByApproverName",
      CHANGE_REQUEST_REQUESTER_ARN: "ChangeRequestByRequesterArn",
      CHANGE_REQUEST_REQUESTER_NAME: "ChangeRequestByRequesterName",
      CHANGE_REQUEST_TARGETS_RESOURCE_GROUP: "ChangeRequestByTargetsResourceGroup",
      CHANGE_REQUEST_TEMPLATE: "ChangeRequestByTemplate",
      CREATED_BY: "CreatedBy",
      CREATED_TIME: "CreatedTime",
      INSIGHT_TYPE: "InsightByType",
      LAST_MODIFIED_TIME: "LastModifiedTime",
      OPERATIONAL_DATA: "OperationalData",
      OPERATIONAL_DATA_KEY: "OperationalDataKey",
      OPERATIONAL_DATA_VALUE: "OperationalDataValue",
      OPSITEM_ID: "OpsItemId",
      OPSITEM_TYPE: "OpsItemType",
      PLANNED_END_TIME: "PlannedEndTime",
      PLANNED_START_TIME: "PlannedStartTime",
      PRIORITY: "Priority",
      RESOURCE_ID: "ResourceId",
      SEVERITY: "Severity",
      SOURCE: "Source",
      STATUS: "Status",
      TITLE: "Title"
    };
    var OpsItemFilterOperator = {
      CONTAINS: "Contains",
      EQUAL: "Equal",
      GREATER_THAN: "GreaterThan",
      LESS_THAN: "LessThan"
    };
    var OpsItemStatus = {
      APPROVED: "Approved",
      CANCELLED: "Cancelled",
      CANCELLING: "Cancelling",
      CHANGE_CALENDAR_OVERRIDE_APPROVED: "ChangeCalendarOverrideApproved",
      CHANGE_CALENDAR_OVERRIDE_REJECTED: "ChangeCalendarOverrideRejected",
      CLOSED: "Closed",
      COMPLETED_WITH_FAILURE: "CompletedWithFailure",
      COMPLETED_WITH_SUCCESS: "CompletedWithSuccess",
      FAILED: "Failed",
      IN_PROGRESS: "InProgress",
      OPEN: "Open",
      PENDING: "Pending",
      PENDING_APPROVAL: "PendingApproval",
      PENDING_CHANGE_CALENDAR_OVERRIDE: "PendingChangeCalendarOverride",
      REJECTED: "Rejected",
      RESOLVED: "Resolved",
      REVOKED: "Revoked",
      RUNBOOK_IN_PROGRESS: "RunbookInProgress",
      SCHEDULED: "Scheduled",
      TIMED_OUT: "TimedOut"
    };
    var ParametersFilterKey = {
      KEY_ID: "KeyId",
      NAME: "Name",
      TYPE: "Type"
    };
    var ParameterTier = {
      ADVANCED: "Advanced",
      INTELLIGENT_TIERING: "Intelligent-Tiering",
      STANDARD: "Standard"
    };
    var ParameterType = {
      SECURE_STRING: "SecureString",
      STRING: "String",
      STRING_LIST: "StringList"
    };
    var InvalidFilterOption = class _InvalidFilterOption extends SSMServiceException {
      static {
        __name(this, "_InvalidFilterOption");
      }
      static {
        __name2(this, "InvalidFilterOption");
      }
      name = "InvalidFilterOption";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidFilterOption",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidFilterOption.prototype);
      }
    };
    var PatchSet = {
      Application: "APPLICATION",
      Os: "OS"
    };
    var PatchProperty = {
      PatchClassification: "CLASSIFICATION",
      PatchMsrcSeverity: "MSRC_SEVERITY",
      PatchPriority: "PRIORITY",
      PatchProductFamily: "PRODUCT_FAMILY",
      PatchSeverity: "SEVERITY",
      Product: "PRODUCT"
    };
    var SessionFilterKey = {
      ACCESS_TYPE: "AccessType",
      INVOKED_AFTER: "InvokedAfter",
      INVOKED_BEFORE: "InvokedBefore",
      OWNER: "Owner",
      SESSION_ID: "SessionId",
      STATUS: "Status",
      TARGET_ID: "Target"
    };
    var SessionState = {
      ACTIVE: "Active",
      HISTORY: "History"
    };
    var SessionStatus = {
      CONNECTED: "Connected",
      CONNECTING: "Connecting",
      DISCONNECTED: "Disconnected",
      FAILED: "Failed",
      TERMINATED: "Terminated",
      TERMINATING: "Terminating"
    };
    var OpsItemRelatedItemAssociationNotFoundException = class _OpsItemRelatedItemAssociationNotFoundException extends SSMServiceException {
      static {
        __name(this, "_OpsItemRelatedItemAssociationNotFoundException");
      }
      static {
        __name2(this, "OpsItemRelatedItemAssociationNotFoundException");
      }
      name = "OpsItemRelatedItemAssociationNotFoundException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "OpsItemRelatedItemAssociationNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _OpsItemRelatedItemAssociationNotFoundException.prototype);
        this.Message = opts.Message;
      }
    };
    var ThrottlingException = class _ThrottlingException extends SSMServiceException {
      static {
        __name(this, "_ThrottlingException");
      }
      static {
        __name2(this, "ThrottlingException");
      }
      name = "ThrottlingException";
      $fault = "client";
      Message;
      /**
       * <p>The quota code recognized by the Amazon Web Services Service Quotas service.</p>
       * @public
       */
      QuotaCode;
      /**
       * <p>The code for the Amazon Web Services service that owns the quota.</p>
       * @public
       */
      ServiceCode;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ThrottlingException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ThrottlingException.prototype);
        this.Message = opts.Message;
        this.QuotaCode = opts.QuotaCode;
        this.ServiceCode = opts.ServiceCode;
      }
    };
    var ValidationException = class _ValidationException extends SSMServiceException {
      static {
        __name(this, "_ValidationException");
      }
      static {
        __name2(this, "ValidationException");
      }
      name = "ValidationException";
      $fault = "client";
      Message;
      /**
       * <p>The reason code for the invalid request.</p>
       * @public
       */
      ReasonCode;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ValidationException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ValidationException.prototype);
        this.Message = opts.Message;
        this.ReasonCode = opts.ReasonCode;
      }
    };
    var CalendarState = {
      CLOSED: "CLOSED",
      OPEN: "OPEN"
    };
    var InvalidDocumentType = class _InvalidDocumentType extends SSMServiceException {
      static {
        __name(this, "_InvalidDocumentType");
      }
      static {
        __name2(this, "InvalidDocumentType");
      }
      name = "InvalidDocumentType";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidDocumentType",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidDocumentType.prototype);
        this.Message = opts.Message;
      }
    };
    var UnsupportedCalendarException = class _UnsupportedCalendarException extends SSMServiceException {
      static {
        __name(this, "_UnsupportedCalendarException");
      }
      static {
        __name2(this, "UnsupportedCalendarException");
      }
      name = "UnsupportedCalendarException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "UnsupportedCalendarException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _UnsupportedCalendarException.prototype);
        this.Message = opts.Message;
      }
    };
    var CommandInvocationStatus = {
      CANCELLED: "Cancelled",
      CANCELLING: "Cancelling",
      DELAYED: "Delayed",
      FAILED: "Failed",
      IN_PROGRESS: "InProgress",
      PENDING: "Pending",
      SUCCESS: "Success",
      TIMED_OUT: "TimedOut"
    };
    var InvalidPluginName = class _InvalidPluginName extends SSMServiceException {
      static {
        __name(this, "_InvalidPluginName");
      }
      static {
        __name2(this, "InvalidPluginName");
      }
      name = "InvalidPluginName";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidPluginName",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidPluginName.prototype);
      }
    };
    var InvocationDoesNotExist = class _InvocationDoesNotExist extends SSMServiceException {
      static {
        __name(this, "_InvocationDoesNotExist");
      }
      static {
        __name2(this, "InvocationDoesNotExist");
      }
      name = "InvocationDoesNotExist";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvocationDoesNotExist",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvocationDoesNotExist.prototype);
      }
    };
    var ConnectionStatus = {
      CONNECTED: "connected",
      NOT_CONNECTED: "notconnected"
    };
    var UnsupportedFeatureRequiredException = class _UnsupportedFeatureRequiredException extends SSMServiceException {
      static {
        __name(this, "_UnsupportedFeatureRequiredException");
      }
      static {
        __name2(this, "UnsupportedFeatureRequiredException");
      }
      name = "UnsupportedFeatureRequiredException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "UnsupportedFeatureRequiredException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _UnsupportedFeatureRequiredException.prototype);
        this.Message = opts.Message;
      }
    };
    var AttachmentHashType = {
      SHA256: "Sha256"
    };
    var ImpactType = {
      MUTATING: "Mutating",
      NON_MUTATING: "NonMutating",
      UNDETERMINED: "Undetermined"
    };
    var ExecutionPreview;
    ((ExecutionPreview2) => {
      ExecutionPreview2.visit = /* @__PURE__ */ __name2((value, visitor) => {
        if (value.Automation !== void 0) return visitor.Automation(value.Automation);
        return visitor._(value.$unknown[0], value.$unknown[1]);
      }, "visit");
    })(ExecutionPreview || (ExecutionPreview = {}));
    var ExecutionPreviewStatus = {
      FAILED: "Failed",
      IN_PROGRESS: "InProgress",
      PENDING: "Pending",
      SUCCESS: "Success"
    };
    var InventoryQueryOperatorType = {
      BEGIN_WITH: "BeginWith",
      EQUAL: "Equal",
      EXISTS: "Exists",
      GREATER_THAN: "GreaterThan",
      LESS_THAN: "LessThan",
      NOT_EQUAL: "NotEqual"
    };
    var InvalidAggregatorException = class _InvalidAggregatorException extends SSMServiceException {
      static {
        __name(this, "_InvalidAggregatorException");
      }
      static {
        __name2(this, "InvalidAggregatorException");
      }
      name = "InvalidAggregatorException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidAggregatorException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidAggregatorException.prototype);
        this.Message = opts.Message;
      }
    };
    var InvalidInventoryGroupException = class _InvalidInventoryGroupException extends SSMServiceException {
      static {
        __name(this, "_InvalidInventoryGroupException");
      }
      static {
        __name2(this, "InvalidInventoryGroupException");
      }
      name = "InvalidInventoryGroupException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidInventoryGroupException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidInventoryGroupException.prototype);
        this.Message = opts.Message;
      }
    };
    var InvalidResultAttributeException = class _InvalidResultAttributeException extends SSMServiceException {
      static {
        __name(this, "_InvalidResultAttributeException");
      }
      static {
        __name2(this, "InvalidResultAttributeException");
      }
      name = "InvalidResultAttributeException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidResultAttributeException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidResultAttributeException.prototype);
        this.Message = opts.Message;
      }
    };
    var InventoryAttributeDataType = {
      NUMBER: "number",
      STRING: "string"
    };
    var NotificationEvent = {
      ALL: "All",
      CANCELLED: "Cancelled",
      FAILED: "Failed",
      IN_PROGRESS: "InProgress",
      SUCCESS: "Success",
      TIMED_OUT: "TimedOut"
    };
    var NotificationType = {
      Command: "Command",
      Invocation: "Invocation"
    };
    var OpsFilterOperatorType = {
      BEGIN_WITH: "BeginWith",
      EQUAL: "Equal",
      EXISTS: "Exists",
      GREATER_THAN: "GreaterThan",
      LESS_THAN: "LessThan",
      NOT_EQUAL: "NotEqual"
    };
    var InvalidKeyId = class _InvalidKeyId extends SSMServiceException {
      static {
        __name(this, "_InvalidKeyId");
      }
      static {
        __name2(this, "InvalidKeyId");
      }
      name = "InvalidKeyId";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidKeyId",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidKeyId.prototype);
      }
    };
    var ParameterVersionNotFound = class _ParameterVersionNotFound extends SSMServiceException {
      static {
        __name(this, "_ParameterVersionNotFound");
      }
      static {
        __name2(this, "ParameterVersionNotFound");
      }
      name = "ParameterVersionNotFound";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ParameterVersionNotFound",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ParameterVersionNotFound.prototype);
      }
    };
    var ServiceSettingNotFound = class _ServiceSettingNotFound extends SSMServiceException {
      static {
        __name(this, "_ServiceSettingNotFound");
      }
      static {
        __name2(this, "ServiceSettingNotFound");
      }
      name = "ServiceSettingNotFound";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ServiceSettingNotFound",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ServiceSettingNotFound.prototype);
        this.Message = opts.Message;
      }
    };
    var ParameterVersionLabelLimitExceeded = class _ParameterVersionLabelLimitExceeded extends SSMServiceException {
      static {
        __name(this, "_ParameterVersionLabelLimitExceeded");
      }
      static {
        __name2(this, "ParameterVersionLabelLimitExceeded");
      }
      name = "ParameterVersionLabelLimitExceeded";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ParameterVersionLabelLimitExceeded",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ParameterVersionLabelLimitExceeded.prototype);
      }
    };
    var AssociationFilterKey = {
      AssociationId: "AssociationId",
      AssociationName: "AssociationName",
      InstanceId: "InstanceId",
      LastExecutedAfter: "LastExecutedAfter",
      LastExecutedBefore: "LastExecutedBefore",
      Name: "Name",
      ResourceGroupName: "ResourceGroupName",
      Status: "AssociationStatusName"
    };
    var CommandFilterKey = {
      DOCUMENT_NAME: "DocumentName",
      EXECUTION_STAGE: "ExecutionStage",
      INVOKED_AFTER: "InvokedAfter",
      INVOKED_BEFORE: "InvokedBefore",
      STATUS: "Status"
    };
    var CommandPluginStatus = {
      CANCELLED: "Cancelled",
      FAILED: "Failed",
      IN_PROGRESS: "InProgress",
      PENDING: "Pending",
      SUCCESS: "Success",
      TIMED_OUT: "TimedOut"
    };
    var CommandStatus = {
      CANCELLED: "Cancelled",
      CANCELLING: "Cancelling",
      FAILED: "Failed",
      IN_PROGRESS: "InProgress",
      PENDING: "Pending",
      SUCCESS: "Success",
      TIMED_OUT: "TimedOut"
    };
    var ComplianceQueryOperatorType = {
      BeginWith: "BEGIN_WITH",
      Equal: "EQUAL",
      GreaterThan: "GREATER_THAN",
      LessThan: "LESS_THAN",
      NotEqual: "NOT_EQUAL"
    };
    var ComplianceSeverity = {
      Critical: "CRITICAL",
      High: "HIGH",
      Informational: "INFORMATIONAL",
      Low: "LOW",
      Medium: "MEDIUM",
      Unspecified: "UNSPECIFIED"
    };
    var ComplianceStatus = {
      Compliant: "COMPLIANT",
      NonCompliant: "NON_COMPLIANT"
    };
    var DocumentMetadataEnum = {
      DocumentReviews: "DocumentReviews"
    };
    var DocumentReviewCommentType = {
      Comment: "Comment"
    };
    var DocumentFilterKey = {
      DocumentType: "DocumentType",
      Name: "Name",
      Owner: "Owner",
      PlatformTypes: "PlatformTypes"
    };
    var NodeFilterKey = {
      ACCOUNT_ID: "AccountId",
      AGENT_TYPE: "AgentType",
      AGENT_VERSION: "AgentVersion",
      COMPUTER_NAME: "ComputerName",
      INSTANCE_ID: "InstanceId",
      INSTANCE_STATUS: "InstanceStatus",
      IP_ADDRESS: "IpAddress",
      MANAGED_STATUS: "ManagedStatus",
      ORGANIZATIONAL_UNIT_ID: "OrganizationalUnitId",
      ORGANIZATIONAL_UNIT_PATH: "OrganizationalUnitPath",
      PLATFORM_NAME: "PlatformName",
      PLATFORM_TYPE: "PlatformType",
      PLATFORM_VERSION: "PlatformVersion",
      REGION: "Region",
      RESOURCE_TYPE: "ResourceType"
    };
    var NodeFilterOperatorType = {
      BEGIN_WITH: "BeginWith",
      EQUAL: "Equal",
      NOT_EQUAL: "NotEqual"
    };
    var ManagedStatus = {
      ALL: "All",
      MANAGED: "Managed",
      UNMANAGED: "Unmanaged"
    };
    var NodeType;
    ((NodeType2) => {
      NodeType2.visit = /* @__PURE__ */ __name2((value, visitor) => {
        if (value.Instance !== void 0) return visitor.Instance(value.Instance);
        return visitor._(value.$unknown[0], value.$unknown[1]);
      }, "visit");
    })(NodeType || (NodeType = {}));
    var UnsupportedOperationException = class _UnsupportedOperationException extends SSMServiceException {
      static {
        __name(this, "_UnsupportedOperationException");
      }
      static {
        __name2(this, "UnsupportedOperationException");
      }
      name = "UnsupportedOperationException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "UnsupportedOperationException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _UnsupportedOperationException.prototype);
        this.Message = opts.Message;
      }
    };
    var NodeAggregatorType = {
      COUNT: "Count"
    };
    var NodeAttributeName = {
      AGENT_VERSION: "AgentVersion",
      PLATFORM_NAME: "PlatformName",
      PLATFORM_TYPE: "PlatformType",
      PLATFORM_VERSION: "PlatformVersion",
      REGION: "Region",
      RESOURCE_TYPE: "ResourceType"
    };
    var NodeTypeName = {
      INSTANCE: "Instance"
    };
    var OpsItemEventFilterKey = {
      OPSITEM_ID: "OpsItemId"
    };
    var OpsItemEventFilterOperator = {
      EQUAL: "Equal"
    };
    var OpsItemRelatedItemsFilterKey = {
      ASSOCIATION_ID: "AssociationId",
      RESOURCE_TYPE: "ResourceType",
      RESOURCE_URI: "ResourceUri"
    };
    var OpsItemRelatedItemsFilterOperator = {
      EQUAL: "Equal"
    };
    var LastResourceDataSyncStatus = {
      FAILED: "Failed",
      INPROGRESS: "InProgress",
      SUCCESSFUL: "Successful"
    };
    var DocumentPermissionLimit = class _DocumentPermissionLimit extends SSMServiceException {
      static {
        __name(this, "_DocumentPermissionLimit");
      }
      static {
        __name2(this, "DocumentPermissionLimit");
      }
      name = "DocumentPermissionLimit";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "DocumentPermissionLimit",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _DocumentPermissionLimit.prototype);
        this.Message = opts.Message;
      }
    };
    var ComplianceTypeCountLimitExceededException = class _ComplianceTypeCountLimitExceededException extends SSMServiceException {
      static {
        __name(this, "_ComplianceTypeCountLimitExceededException");
      }
      static {
        __name2(this, "ComplianceTypeCountLimitExceededException");
      }
      name = "ComplianceTypeCountLimitExceededException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ComplianceTypeCountLimitExceededException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ComplianceTypeCountLimitExceededException.prototype);
        this.Message = opts.Message;
      }
    };
    var InvalidItemContentException = class _InvalidItemContentException extends SSMServiceException {
      static {
        __name(this, "_InvalidItemContentException");
      }
      static {
        __name2(this, "InvalidItemContentException");
      }
      name = "InvalidItemContentException";
      $fault = "client";
      TypeName;
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidItemContentException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidItemContentException.prototype);
        this.TypeName = opts.TypeName;
        this.Message = opts.Message;
      }
    };
    var ItemSizeLimitExceededException = class _ItemSizeLimitExceededException extends SSMServiceException {
      static {
        __name(this, "_ItemSizeLimitExceededException");
      }
      static {
        __name2(this, "ItemSizeLimitExceededException");
      }
      name = "ItemSizeLimitExceededException";
      $fault = "client";
      TypeName;
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ItemSizeLimitExceededException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ItemSizeLimitExceededException.prototype);
        this.TypeName = opts.TypeName;
        this.Message = opts.Message;
      }
    };
    var ComplianceUploadType = {
      Complete: "COMPLETE",
      Partial: "PARTIAL"
    };
    var TotalSizeLimitExceededException = class _TotalSizeLimitExceededException extends SSMServiceException {
      static {
        __name(this, "_TotalSizeLimitExceededException");
      }
      static {
        __name2(this, "TotalSizeLimitExceededException");
      }
      name = "TotalSizeLimitExceededException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "TotalSizeLimitExceededException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _TotalSizeLimitExceededException.prototype);
        this.Message = opts.Message;
      }
    };
    var CustomSchemaCountLimitExceededException = class _CustomSchemaCountLimitExceededException extends SSMServiceException {
      static {
        __name(this, "_CustomSchemaCountLimitExceededException");
      }
      static {
        __name2(this, "CustomSchemaCountLimitExceededException");
      }
      name = "CustomSchemaCountLimitExceededException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "CustomSchemaCountLimitExceededException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _CustomSchemaCountLimitExceededException.prototype);
        this.Message = opts.Message;
      }
    };
    var InvalidInventoryItemContextException = class _InvalidInventoryItemContextException extends SSMServiceException {
      static {
        __name(this, "_InvalidInventoryItemContextException");
      }
      static {
        __name2(this, "InvalidInventoryItemContextException");
      }
      name = "InvalidInventoryItemContextException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidInventoryItemContextException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidInventoryItemContextException.prototype);
        this.Message = opts.Message;
      }
    };
    var ItemContentMismatchException = class _ItemContentMismatchException extends SSMServiceException {
      static {
        __name(this, "_ItemContentMismatchException");
      }
      static {
        __name2(this, "ItemContentMismatchException");
      }
      name = "ItemContentMismatchException";
      $fault = "client";
      TypeName;
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ItemContentMismatchException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ItemContentMismatchException.prototype);
        this.TypeName = opts.TypeName;
        this.Message = opts.Message;
      }
    };
    var SubTypeCountLimitExceededException = class _SubTypeCountLimitExceededException extends SSMServiceException {
      static {
        __name(this, "_SubTypeCountLimitExceededException");
      }
      static {
        __name2(this, "SubTypeCountLimitExceededException");
      }
      name = "SubTypeCountLimitExceededException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "SubTypeCountLimitExceededException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _SubTypeCountLimitExceededException.prototype);
        this.Message = opts.Message;
      }
    };
    var UnsupportedInventoryItemContextException = class _UnsupportedInventoryItemContextException extends SSMServiceException {
      static {
        __name(this, "_UnsupportedInventoryItemContextException");
      }
      static {
        __name2(this, "UnsupportedInventoryItemContextException");
      }
      name = "UnsupportedInventoryItemContextException";
      $fault = "client";
      TypeName;
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "UnsupportedInventoryItemContextException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _UnsupportedInventoryItemContextException.prototype);
        this.TypeName = opts.TypeName;
        this.Message = opts.Message;
      }
    };
    var UnsupportedInventorySchemaVersionException = class _UnsupportedInventorySchemaVersionException extends SSMServiceException {
      static {
        __name(this, "_UnsupportedInventorySchemaVersionException");
      }
      static {
        __name2(this, "UnsupportedInventorySchemaVersionException");
      }
      name = "UnsupportedInventorySchemaVersionException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "UnsupportedInventorySchemaVersionException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _UnsupportedInventorySchemaVersionException.prototype);
        this.Message = opts.Message;
      }
    };
    var HierarchyLevelLimitExceededException = class _HierarchyLevelLimitExceededException extends SSMServiceException {
      static {
        __name(this, "_HierarchyLevelLimitExceededException");
      }
      static {
        __name2(this, "HierarchyLevelLimitExceededException");
      }
      name = "HierarchyLevelLimitExceededException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "HierarchyLevelLimitExceededException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _HierarchyLevelLimitExceededException.prototype);
      }
    };
    var HierarchyTypeMismatchException = class _HierarchyTypeMismatchException extends SSMServiceException {
      static {
        __name(this, "_HierarchyTypeMismatchException");
      }
      static {
        __name2(this, "HierarchyTypeMismatchException");
      }
      name = "HierarchyTypeMismatchException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "HierarchyTypeMismatchException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _HierarchyTypeMismatchException.prototype);
      }
    };
    var IncompatiblePolicyException = class _IncompatiblePolicyException extends SSMServiceException {
      static {
        __name(this, "_IncompatiblePolicyException");
      }
      static {
        __name2(this, "IncompatiblePolicyException");
      }
      name = "IncompatiblePolicyException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "IncompatiblePolicyException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _IncompatiblePolicyException.prototype);
      }
    };
    var InvalidAllowedPatternException = class _InvalidAllowedPatternException extends SSMServiceException {
      static {
        __name(this, "_InvalidAllowedPatternException");
      }
      static {
        __name2(this, "InvalidAllowedPatternException");
      }
      name = "InvalidAllowedPatternException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidAllowedPatternException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidAllowedPatternException.prototype);
      }
    };
    var InvalidPolicyAttributeException = class _InvalidPolicyAttributeException extends SSMServiceException {
      static {
        __name(this, "_InvalidPolicyAttributeException");
      }
      static {
        __name2(this, "InvalidPolicyAttributeException");
      }
      name = "InvalidPolicyAttributeException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidPolicyAttributeException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidPolicyAttributeException.prototype);
      }
    };
    var InvalidPolicyTypeException = class _InvalidPolicyTypeException extends SSMServiceException {
      static {
        __name(this, "_InvalidPolicyTypeException");
      }
      static {
        __name2(this, "InvalidPolicyTypeException");
      }
      name = "InvalidPolicyTypeException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidPolicyTypeException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidPolicyTypeException.prototype);
      }
    };
    var ParameterAlreadyExists = class _ParameterAlreadyExists extends SSMServiceException {
      static {
        __name(this, "_ParameterAlreadyExists");
      }
      static {
        __name2(this, "ParameterAlreadyExists");
      }
      name = "ParameterAlreadyExists";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ParameterAlreadyExists",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ParameterAlreadyExists.prototype);
      }
    };
    var ParameterLimitExceeded = class _ParameterLimitExceeded extends SSMServiceException {
      static {
        __name(this, "_ParameterLimitExceeded");
      }
      static {
        __name2(this, "ParameterLimitExceeded");
      }
      name = "ParameterLimitExceeded";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ParameterLimitExceeded",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ParameterLimitExceeded.prototype);
      }
    };
    var ParameterMaxVersionLimitExceeded = class _ParameterMaxVersionLimitExceeded extends SSMServiceException {
      static {
        __name(this, "_ParameterMaxVersionLimitExceeded");
      }
      static {
        __name2(this, "ParameterMaxVersionLimitExceeded");
      }
      name = "ParameterMaxVersionLimitExceeded";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ParameterMaxVersionLimitExceeded",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ParameterMaxVersionLimitExceeded.prototype);
      }
    };
    var ParameterPatternMismatchException = class _ParameterPatternMismatchException extends SSMServiceException {
      static {
        __name(this, "_ParameterPatternMismatchException");
      }
      static {
        __name2(this, "ParameterPatternMismatchException");
      }
      name = "ParameterPatternMismatchException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ParameterPatternMismatchException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ParameterPatternMismatchException.prototype);
      }
    };
    var PoliciesLimitExceededException = class _PoliciesLimitExceededException extends SSMServiceException {
      static {
        __name(this, "_PoliciesLimitExceededException");
      }
      static {
        __name2(this, "PoliciesLimitExceededException");
      }
      name = "PoliciesLimitExceededException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "PoliciesLimitExceededException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _PoliciesLimitExceededException.prototype);
      }
    };
    var UnsupportedParameterType = class _UnsupportedParameterType extends SSMServiceException {
      static {
        __name(this, "_UnsupportedParameterType");
      }
      static {
        __name2(this, "UnsupportedParameterType");
      }
      name = "UnsupportedParameterType";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "UnsupportedParameterType",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _UnsupportedParameterType.prototype);
      }
    };
    var ResourcePolicyLimitExceededException = class _ResourcePolicyLimitExceededException extends SSMServiceException {
      static {
        __name(this, "_ResourcePolicyLimitExceededException");
      }
      static {
        __name2(this, "ResourcePolicyLimitExceededException");
      }
      name = "ResourcePolicyLimitExceededException";
      $fault = "client";
      Limit;
      LimitType;
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ResourcePolicyLimitExceededException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ResourcePolicyLimitExceededException.prototype);
        this.Limit = opts.Limit;
        this.LimitType = opts.LimitType;
        this.Message = opts.Message;
      }
    };
    var DescribeMaintenanceWindowsResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.WindowIdentities && {
        WindowIdentities: obj.WindowIdentities.map((item) => MaintenanceWindowIdentityFilterSensitiveLog(item))
      }
    }), "DescribeMaintenanceWindowsResultFilterSensitiveLog");
    var MaintenanceWindowTargetFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.OwnerInformation && { OwnerInformation: import_smithy_client28.SENSITIVE_STRING },
      ...obj.Description && { Description: import_smithy_client28.SENSITIVE_STRING }
    }), "MaintenanceWindowTargetFilterSensitiveLog");
    var DescribeMaintenanceWindowTargetsResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Targets && { Targets: obj.Targets.map((item) => MaintenanceWindowTargetFilterSensitiveLog(item)) }
    }), "DescribeMaintenanceWindowTargetsResultFilterSensitiveLog");
    var MaintenanceWindowTaskParameterValueExpressionFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Values && { Values: import_smithy_client28.SENSITIVE_STRING }
    }), "MaintenanceWindowTaskParameterValueExpressionFilterSensitiveLog");
    var MaintenanceWindowTaskFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.TaskParameters && { TaskParameters: import_smithy_client28.SENSITIVE_STRING },
      ...obj.Description && { Description: import_smithy_client28.SENSITIVE_STRING }
    }), "MaintenanceWindowTaskFilterSensitiveLog");
    var DescribeMaintenanceWindowTasksResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Tasks && { Tasks: obj.Tasks.map((item) => MaintenanceWindowTaskFilterSensitiveLog(item)) }
    }), "DescribeMaintenanceWindowTasksResultFilterSensitiveLog");
    var CredentialsFilterSensitiveLog2 = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.SecretAccessKey && { SecretAccessKey: import_smithy_client28.SENSITIVE_STRING },
      ...obj.SessionToken && { SessionToken: import_smithy_client28.SENSITIVE_STRING }
    }), "CredentialsFilterSensitiveLog");
    var GetAccessTokenResponseFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Credentials && { Credentials: CredentialsFilterSensitiveLog2(obj.Credentials) }
    }), "GetAccessTokenResponseFilterSensitiveLog");
    var BaselineOverrideFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Sources && { Sources: obj.Sources.map((item) => PatchSourceFilterSensitiveLog(item)) }
    }), "BaselineOverrideFilterSensitiveLog");
    var GetDeployablePatchSnapshotForInstanceRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj
    }), "GetDeployablePatchSnapshotForInstanceRequestFilterSensitiveLog");
    var GetMaintenanceWindowResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Description && { Description: import_smithy_client28.SENSITIVE_STRING }
    }), "GetMaintenanceWindowResultFilterSensitiveLog");
    var GetMaintenanceWindowExecutionTaskResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.TaskParameters && { TaskParameters: import_smithy_client28.SENSITIVE_STRING }
    }), "GetMaintenanceWindowExecutionTaskResultFilterSensitiveLog");
    var GetMaintenanceWindowExecutionTaskInvocationResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Parameters && { Parameters: import_smithy_client28.SENSITIVE_STRING },
      ...obj.OwnerInformation && { OwnerInformation: import_smithy_client28.SENSITIVE_STRING }
    }), "GetMaintenanceWindowExecutionTaskInvocationResultFilterSensitiveLog");
    var MaintenanceWindowLambdaParametersFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Payload && { Payload: import_smithy_client28.SENSITIVE_STRING }
    }), "MaintenanceWindowLambdaParametersFilterSensitiveLog");
    var MaintenanceWindowRunCommandParametersFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Parameters && { Parameters: import_smithy_client28.SENSITIVE_STRING }
    }), "MaintenanceWindowRunCommandParametersFilterSensitiveLog");
    var MaintenanceWindowStepFunctionsParametersFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Input && { Input: import_smithy_client28.SENSITIVE_STRING }
    }), "MaintenanceWindowStepFunctionsParametersFilterSensitiveLog");
    var MaintenanceWindowTaskInvocationParametersFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.RunCommand && { RunCommand: MaintenanceWindowRunCommandParametersFilterSensitiveLog(obj.RunCommand) },
      ...obj.StepFunctions && {
        StepFunctions: MaintenanceWindowStepFunctionsParametersFilterSensitiveLog(obj.StepFunctions)
      },
      ...obj.Lambda && { Lambda: MaintenanceWindowLambdaParametersFilterSensitiveLog(obj.Lambda) }
    }), "MaintenanceWindowTaskInvocationParametersFilterSensitiveLog");
    var GetMaintenanceWindowTaskResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.TaskParameters && { TaskParameters: import_smithy_client28.SENSITIVE_STRING },
      ...obj.TaskInvocationParameters && {
        TaskInvocationParameters: MaintenanceWindowTaskInvocationParametersFilterSensitiveLog(obj.TaskInvocationParameters)
      },
      ...obj.Description && { Description: import_smithy_client28.SENSITIVE_STRING }
    }), "GetMaintenanceWindowTaskResultFilterSensitiveLog");
    var ParameterFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Value && { Value: import_smithy_client28.SENSITIVE_STRING }
    }), "ParameterFilterSensitiveLog");
    var GetParameterResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Parameter && { Parameter: ParameterFilterSensitiveLog(obj.Parameter) }
    }), "GetParameterResultFilterSensitiveLog");
    var ParameterHistoryFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Value && { Value: import_smithy_client28.SENSITIVE_STRING }
    }), "ParameterHistoryFilterSensitiveLog");
    var GetParameterHistoryResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Parameters && { Parameters: obj.Parameters.map((item) => ParameterHistoryFilterSensitiveLog(item)) }
    }), "GetParameterHistoryResultFilterSensitiveLog");
    var GetParametersResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Parameters && { Parameters: obj.Parameters.map((item) => ParameterFilterSensitiveLog(item)) }
    }), "GetParametersResultFilterSensitiveLog");
    var GetParametersByPathResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Parameters && { Parameters: obj.Parameters.map((item) => ParameterFilterSensitiveLog(item)) }
    }), "GetParametersByPathResultFilterSensitiveLog");
    var GetPatchBaselineResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Sources && { Sources: obj.Sources.map((item) => PatchSourceFilterSensitiveLog(item)) }
    }), "GetPatchBaselineResultFilterSensitiveLog");
    var AssociationVersionInfoFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Parameters && { Parameters: import_smithy_client28.SENSITIVE_STRING }
    }), "AssociationVersionInfoFilterSensitiveLog");
    var ListAssociationVersionsResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.AssociationVersions && {
        AssociationVersions: obj.AssociationVersions.map((item) => AssociationVersionInfoFilterSensitiveLog(item))
      }
    }), "ListAssociationVersionsResultFilterSensitiveLog");
    var CommandFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Parameters && { Parameters: import_smithy_client28.SENSITIVE_STRING }
    }), "CommandFilterSensitiveLog");
    var ListCommandsResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Commands && { Commands: obj.Commands.map((item) => CommandFilterSensitiveLog(item)) }
    }), "ListCommandsResultFilterSensitiveLog");
    var InstanceInfoFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.IpAddress && { IpAddress: import_smithy_client28.SENSITIVE_STRING }
    }), "InstanceInfoFilterSensitiveLog");
    var NodeTypeFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => {
      if (obj.Instance !== void 0) return { Instance: InstanceInfoFilterSensitiveLog(obj.Instance) };
      if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
    }, "NodeTypeFilterSensitiveLog");
    var NodeFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.NodeType && { NodeType: NodeTypeFilterSensitiveLog(obj.NodeType) }
    }), "NodeFilterSensitiveLog");
    var ListNodesResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Nodes && { Nodes: obj.Nodes.map((item) => NodeFilterSensitiveLog(item)) }
    }), "ListNodesResultFilterSensitiveLog");
    var PutParameterRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Value && { Value: import_smithy_client28.SENSITIVE_STRING }
    }), "PutParameterRequestFilterSensitiveLog");
    var FeatureNotAvailableException = class _FeatureNotAvailableException extends SSMServiceException {
      static {
        __name(this, "_FeatureNotAvailableException");
      }
      static {
        __name2(this, "FeatureNotAvailableException");
      }
      name = "FeatureNotAvailableException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "FeatureNotAvailableException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _FeatureNotAvailableException.prototype);
        this.Message = opts.Message;
      }
    };
    var AutomationStepNotFoundException = class _AutomationStepNotFoundException extends SSMServiceException {
      static {
        __name(this, "_AutomationStepNotFoundException");
      }
      static {
        __name2(this, "AutomationStepNotFoundException");
      }
      name = "AutomationStepNotFoundException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "AutomationStepNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _AutomationStepNotFoundException.prototype);
        this.Message = opts.Message;
      }
    };
    var InvalidAutomationSignalException = class _InvalidAutomationSignalException extends SSMServiceException {
      static {
        __name(this, "_InvalidAutomationSignalException");
      }
      static {
        __name2(this, "InvalidAutomationSignalException");
      }
      name = "InvalidAutomationSignalException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidAutomationSignalException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidAutomationSignalException.prototype);
        this.Message = opts.Message;
      }
    };
    var SignalType = {
      APPROVE: "Approve",
      REJECT: "Reject",
      RESUME: "Resume",
      REVOKE: "Revoke",
      START_STEP: "StartStep",
      STOP_STEP: "StopStep"
    };
    var InvalidNotificationConfig = class _InvalidNotificationConfig extends SSMServiceException {
      static {
        __name(this, "_InvalidNotificationConfig");
      }
      static {
        __name2(this, "InvalidNotificationConfig");
      }
      name = "InvalidNotificationConfig";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidNotificationConfig",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidNotificationConfig.prototype);
        this.Message = opts.Message;
      }
    };
    var InvalidOutputFolder = class _InvalidOutputFolder extends SSMServiceException {
      static {
        __name(this, "_InvalidOutputFolder");
      }
      static {
        __name2(this, "InvalidOutputFolder");
      }
      name = "InvalidOutputFolder";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidOutputFolder",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidOutputFolder.prototype);
      }
    };
    var InvalidRole = class _InvalidRole extends SSMServiceException {
      static {
        __name(this, "_InvalidRole");
      }
      static {
        __name2(this, "InvalidRole");
      }
      name = "InvalidRole";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidRole",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidRole.prototype);
        this.Message = opts.Message;
      }
    };
    var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends SSMServiceException {
      static {
        __name(this, "_ServiceQuotaExceededException");
      }
      static {
        __name2(this, "ServiceQuotaExceededException");
      }
      name = "ServiceQuotaExceededException";
      $fault = "client";
      Message;
      /**
       * <p>The unique ID of the resource referenced in the failed request.</p>
       * @public
       */
      ResourceId;
      /**
       * <p>The resource type of the resource referenced in the failed request.</p>
       * @public
       */
      ResourceType;
      /**
       * <p>The quota code recognized by the Amazon Web Services Service Quotas service.</p>
       * @public
       */
      QuotaCode;
      /**
       * <p>The code for the Amazon Web Services service that owns the quota.</p>
       * @public
       */
      ServiceCode;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ServiceQuotaExceededException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
        this.Message = opts.Message;
        this.ResourceId = opts.ResourceId;
        this.ResourceType = opts.ResourceType;
        this.QuotaCode = opts.QuotaCode;
        this.ServiceCode = opts.ServiceCode;
      }
    };
    var InvalidAssociation = class _InvalidAssociation extends SSMServiceException {
      static {
        __name(this, "_InvalidAssociation");
      }
      static {
        __name2(this, "InvalidAssociation");
      }
      name = "InvalidAssociation";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidAssociation",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidAssociation.prototype);
        this.Message = opts.Message;
      }
    };
    var AutomationDefinitionNotFoundException = class _AutomationDefinitionNotFoundException extends SSMServiceException {
      static {
        __name(this, "_AutomationDefinitionNotFoundException");
      }
      static {
        __name2(this, "AutomationDefinitionNotFoundException");
      }
      name = "AutomationDefinitionNotFoundException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "AutomationDefinitionNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _AutomationDefinitionNotFoundException.prototype);
        this.Message = opts.Message;
      }
    };
    var AutomationDefinitionVersionNotFoundException = class _AutomationDefinitionVersionNotFoundException extends SSMServiceException {
      static {
        __name(this, "_AutomationDefinitionVersionNotFoundException");
      }
      static {
        __name2(this, "AutomationDefinitionVersionNotFoundException");
      }
      name = "AutomationDefinitionVersionNotFoundException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "AutomationDefinitionVersionNotFoundException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _AutomationDefinitionVersionNotFoundException.prototype);
        this.Message = opts.Message;
      }
    };
    var AutomationExecutionLimitExceededException = class _AutomationExecutionLimitExceededException extends SSMServiceException {
      static {
        __name(this, "_AutomationExecutionLimitExceededException");
      }
      static {
        __name2(this, "AutomationExecutionLimitExceededException");
      }
      name = "AutomationExecutionLimitExceededException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "AutomationExecutionLimitExceededException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _AutomationExecutionLimitExceededException.prototype);
        this.Message = opts.Message;
      }
    };
    var InvalidAutomationExecutionParametersException = class _InvalidAutomationExecutionParametersException extends SSMServiceException {
      static {
        __name(this, "_InvalidAutomationExecutionParametersException");
      }
      static {
        __name2(this, "InvalidAutomationExecutionParametersException");
      }
      name = "InvalidAutomationExecutionParametersException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidAutomationExecutionParametersException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidAutomationExecutionParametersException.prototype);
        this.Message = opts.Message;
      }
    };
    var AutomationDefinitionNotApprovedException = class _AutomationDefinitionNotApprovedException extends SSMServiceException {
      static {
        __name(this, "_AutomationDefinitionNotApprovedException");
      }
      static {
        __name2(this, "AutomationDefinitionNotApprovedException");
      }
      name = "AutomationDefinitionNotApprovedException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "AutomationDefinitionNotApprovedException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _AutomationDefinitionNotApprovedException.prototype);
        this.Message = opts.Message;
      }
    };
    var ExecutionInputs;
    ((ExecutionInputs3) => {
      ExecutionInputs3.visit = /* @__PURE__ */ __name2((value, visitor) => {
        if (value.Automation !== void 0) return visitor.Automation(value.Automation);
        return visitor._(value.$unknown[0], value.$unknown[1]);
      }, "visit");
    })(ExecutionInputs || (ExecutionInputs = {}));
    var TargetNotConnected = class _TargetNotConnected extends SSMServiceException {
      static {
        __name(this, "_TargetNotConnected");
      }
      static {
        __name2(this, "TargetNotConnected");
      }
      name = "TargetNotConnected";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "TargetNotConnected",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _TargetNotConnected.prototype);
        this.Message = opts.Message;
      }
    };
    var InvalidAutomationStatusUpdateException = class _InvalidAutomationStatusUpdateException extends SSMServiceException {
      static {
        __name(this, "_InvalidAutomationStatusUpdateException");
      }
      static {
        __name2(this, "InvalidAutomationStatusUpdateException");
      }
      name = "InvalidAutomationStatusUpdateException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidAutomationStatusUpdateException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidAutomationStatusUpdateException.prototype);
        this.Message = opts.Message;
      }
    };
    var StopType = {
      CANCEL: "Cancel",
      COMPLETE: "Complete"
    };
    var AssociationVersionLimitExceeded = class _AssociationVersionLimitExceeded extends SSMServiceException {
      static {
        __name(this, "_AssociationVersionLimitExceeded");
      }
      static {
        __name2(this, "AssociationVersionLimitExceeded");
      }
      name = "AssociationVersionLimitExceeded";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "AssociationVersionLimitExceeded",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _AssociationVersionLimitExceeded.prototype);
        this.Message = opts.Message;
      }
    };
    var InvalidUpdate = class _InvalidUpdate extends SSMServiceException {
      static {
        __name(this, "_InvalidUpdate");
      }
      static {
        __name2(this, "InvalidUpdate");
      }
      name = "InvalidUpdate";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "InvalidUpdate",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _InvalidUpdate.prototype);
        this.Message = opts.Message;
      }
    };
    var StatusUnchanged = class _StatusUnchanged extends SSMServiceException {
      static {
        __name(this, "_StatusUnchanged");
      }
      static {
        __name2(this, "StatusUnchanged");
      }
      name = "StatusUnchanged";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "StatusUnchanged",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _StatusUnchanged.prototype);
      }
    };
    var DocumentVersionLimitExceeded = class _DocumentVersionLimitExceeded extends SSMServiceException {
      static {
        __name(this, "_DocumentVersionLimitExceeded");
      }
      static {
        __name2(this, "DocumentVersionLimitExceeded");
      }
      name = "DocumentVersionLimitExceeded";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "DocumentVersionLimitExceeded",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _DocumentVersionLimitExceeded.prototype);
        this.Message = opts.Message;
      }
    };
    var DuplicateDocumentContent = class _DuplicateDocumentContent extends SSMServiceException {
      static {
        __name(this, "_DuplicateDocumentContent");
      }
      static {
        __name2(this, "DuplicateDocumentContent");
      }
      name = "DuplicateDocumentContent";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "DuplicateDocumentContent",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _DuplicateDocumentContent.prototype);
        this.Message = opts.Message;
      }
    };
    var DuplicateDocumentVersionName = class _DuplicateDocumentVersionName extends SSMServiceException {
      static {
        __name(this, "_DuplicateDocumentVersionName");
      }
      static {
        __name2(this, "DuplicateDocumentVersionName");
      }
      name = "DuplicateDocumentVersionName";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "DuplicateDocumentVersionName",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _DuplicateDocumentVersionName.prototype);
        this.Message = opts.Message;
      }
    };
    var DocumentReviewAction = {
      Approve: "Approve",
      Reject: "Reject",
      SendForReview: "SendForReview",
      UpdateReview: "UpdateReview"
    };
    var OpsMetadataKeyLimitExceededException = class _OpsMetadataKeyLimitExceededException extends SSMServiceException {
      static {
        __name(this, "_OpsMetadataKeyLimitExceededException");
      }
      static {
        __name2(this, "OpsMetadataKeyLimitExceededException");
      }
      name = "OpsMetadataKeyLimitExceededException";
      $fault = "client";
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "OpsMetadataKeyLimitExceededException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _OpsMetadataKeyLimitExceededException.prototype);
      }
    };
    var ResourceDataSyncConflictException = class _ResourceDataSyncConflictException extends SSMServiceException {
      static {
        __name(this, "_ResourceDataSyncConflictException");
      }
      static {
        __name2(this, "ResourceDataSyncConflictException");
      }
      name = "ResourceDataSyncConflictException";
      $fault = "client";
      Message;
      /**
       * @internal
       */
      constructor(opts) {
        super({
          name: "ResourceDataSyncConflictException",
          $fault: "client",
          ...opts
        });
        Object.setPrototypeOf(this, _ResourceDataSyncConflictException.prototype);
        this.Message = opts.Message;
      }
    };
    var RegisterTargetWithMaintenanceWindowRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.OwnerInformation && { OwnerInformation: import_smithy_client28.SENSITIVE_STRING },
      ...obj.Description && { Description: import_smithy_client28.SENSITIVE_STRING }
    }), "RegisterTargetWithMaintenanceWindowRequestFilterSensitiveLog");
    var RegisterTaskWithMaintenanceWindowRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.TaskParameters && { TaskParameters: import_smithy_client28.SENSITIVE_STRING },
      ...obj.TaskInvocationParameters && {
        TaskInvocationParameters: MaintenanceWindowTaskInvocationParametersFilterSensitiveLog(obj.TaskInvocationParameters)
      },
      ...obj.Description && { Description: import_smithy_client28.SENSITIVE_STRING }
    }), "RegisterTaskWithMaintenanceWindowRequestFilterSensitiveLog");
    var SendCommandRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Parameters && { Parameters: import_smithy_client28.SENSITIVE_STRING }
    }), "SendCommandRequestFilterSensitiveLog");
    var SendCommandResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Command && { Command: CommandFilterSensitiveLog(obj.Command) }
    }), "SendCommandResultFilterSensitiveLog");
    var UpdateAssociationRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Parameters && { Parameters: import_smithy_client28.SENSITIVE_STRING }
    }), "UpdateAssociationRequestFilterSensitiveLog");
    var UpdateAssociationResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.AssociationDescription && {
        AssociationDescription: AssociationDescriptionFilterSensitiveLog(obj.AssociationDescription)
      }
    }), "UpdateAssociationResultFilterSensitiveLog");
    var UpdateAssociationStatusResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.AssociationDescription && {
        AssociationDescription: AssociationDescriptionFilterSensitiveLog(obj.AssociationDescription)
      }
    }), "UpdateAssociationStatusResultFilterSensitiveLog");
    var UpdateMaintenanceWindowRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Description && { Description: import_smithy_client28.SENSITIVE_STRING }
    }), "UpdateMaintenanceWindowRequestFilterSensitiveLog");
    var UpdateMaintenanceWindowResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Description && { Description: import_smithy_client28.SENSITIVE_STRING }
    }), "UpdateMaintenanceWindowResultFilterSensitiveLog");
    var UpdateMaintenanceWindowTargetRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.OwnerInformation && { OwnerInformation: import_smithy_client28.SENSITIVE_STRING },
      ...obj.Description && { Description: import_smithy_client28.SENSITIVE_STRING }
    }), "UpdateMaintenanceWindowTargetRequestFilterSensitiveLog");
    var UpdateMaintenanceWindowTargetResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.OwnerInformation && { OwnerInformation: import_smithy_client28.SENSITIVE_STRING },
      ...obj.Description && { Description: import_smithy_client28.SENSITIVE_STRING }
    }), "UpdateMaintenanceWindowTargetResultFilterSensitiveLog");
    var UpdateMaintenanceWindowTaskRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.TaskParameters && { TaskParameters: import_smithy_client28.SENSITIVE_STRING },
      ...obj.TaskInvocationParameters && {
        TaskInvocationParameters: MaintenanceWindowTaskInvocationParametersFilterSensitiveLog(obj.TaskInvocationParameters)
      },
      ...obj.Description && { Description: import_smithy_client28.SENSITIVE_STRING }
    }), "UpdateMaintenanceWindowTaskRequestFilterSensitiveLog");
    var UpdateMaintenanceWindowTaskResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.TaskParameters && { TaskParameters: import_smithy_client28.SENSITIVE_STRING },
      ...obj.TaskInvocationParameters && {
        TaskInvocationParameters: MaintenanceWindowTaskInvocationParametersFilterSensitiveLog(obj.TaskInvocationParameters)
      },
      ...obj.Description && { Description: import_smithy_client28.SENSITIVE_STRING }
    }), "UpdateMaintenanceWindowTaskResultFilterSensitiveLog");
    var UpdatePatchBaselineRequestFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Sources && { Sources: obj.Sources.map((item) => PatchSourceFilterSensitiveLog(item)) }
    }), "UpdatePatchBaselineRequestFilterSensitiveLog");
    var UpdatePatchBaselineResultFilterSensitiveLog = /* @__PURE__ */ __name2((obj) => ({
      ...obj,
      ...obj.Sources && { Sources: obj.Sources.map((item) => PatchSourceFilterSensitiveLog(item)) }
    }), "UpdatePatchBaselineResultFilterSensitiveLog");
    var se_AddTagsToResourceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("AddTagsToResource");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AddTagsToResourceCommand");
    var se_AssociateOpsItemRelatedItemCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("AssociateOpsItemRelatedItem");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_AssociateOpsItemRelatedItemCommand");
    var se_CancelCommandCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("CancelCommand");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CancelCommandCommand");
    var se_CancelMaintenanceWindowExecutionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("CancelMaintenanceWindowExecution");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CancelMaintenanceWindowExecutionCommand");
    var se_CreateActivationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("CreateActivation");
      let body;
      body = JSON.stringify(se_CreateActivationRequest(input, context));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateActivationCommand");
    var se_CreateAssociationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("CreateAssociation");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateAssociationCommand");
    var se_CreateAssociationBatchCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("CreateAssociationBatch");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateAssociationBatchCommand");
    var se_CreateDocumentCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("CreateDocument");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateDocumentCommand");
    var se_CreateMaintenanceWindowCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("CreateMaintenanceWindow");
      let body;
      body = JSON.stringify(se_CreateMaintenanceWindowRequest(input, context));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateMaintenanceWindowCommand");
    var se_CreateOpsItemCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("CreateOpsItem");
      let body;
      body = JSON.stringify(se_CreateOpsItemRequest(input, context));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateOpsItemCommand");
    var se_CreateOpsMetadataCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("CreateOpsMetadata");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateOpsMetadataCommand");
    var se_CreatePatchBaselineCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("CreatePatchBaseline");
      let body;
      body = JSON.stringify(se_CreatePatchBaselineRequest(input, context));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreatePatchBaselineCommand");
    var se_CreateResourceDataSyncCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("CreateResourceDataSync");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_CreateResourceDataSyncCommand");
    var se_DeleteActivationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteActivation");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteActivationCommand");
    var se_DeleteAssociationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteAssociation");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteAssociationCommand");
    var se_DeleteDocumentCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteDocument");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteDocumentCommand");
    var se_DeleteInventoryCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteInventory");
      let body;
      body = JSON.stringify(se_DeleteInventoryRequest(input, context));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteInventoryCommand");
    var se_DeleteMaintenanceWindowCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteMaintenanceWindow");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteMaintenanceWindowCommand");
    var se_DeleteOpsItemCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteOpsItem");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteOpsItemCommand");
    var se_DeleteOpsMetadataCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteOpsMetadata");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteOpsMetadataCommand");
    var se_DeleteParameterCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteParameter");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteParameterCommand");
    var se_DeleteParametersCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteParameters");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteParametersCommand");
    var se_DeletePatchBaselineCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeletePatchBaseline");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeletePatchBaselineCommand");
    var se_DeleteResourceDataSyncCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteResourceDataSync");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteResourceDataSyncCommand");
    var se_DeleteResourcePolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeleteResourcePolicy");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeleteResourcePolicyCommand");
    var se_DeregisterManagedInstanceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeregisterManagedInstance");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeregisterManagedInstanceCommand");
    var se_DeregisterPatchBaselineForPatchGroupCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeregisterPatchBaselineForPatchGroup");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeregisterPatchBaselineForPatchGroupCommand");
    var se_DeregisterTargetFromMaintenanceWindowCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeregisterTargetFromMaintenanceWindow");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeregisterTargetFromMaintenanceWindowCommand");
    var se_DeregisterTaskFromMaintenanceWindowCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DeregisterTaskFromMaintenanceWindow");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DeregisterTaskFromMaintenanceWindowCommand");
    var se_DescribeActivationsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeActivations");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeActivationsCommand");
    var se_DescribeAssociationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeAssociation");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeAssociationCommand");
    var se_DescribeAssociationExecutionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeAssociationExecutions");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeAssociationExecutionsCommand");
    var se_DescribeAssociationExecutionTargetsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeAssociationExecutionTargets");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeAssociationExecutionTargetsCommand");
    var se_DescribeAutomationExecutionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeAutomationExecutions");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeAutomationExecutionsCommand");
    var se_DescribeAutomationStepExecutionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeAutomationStepExecutions");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeAutomationStepExecutionsCommand");
    var se_DescribeAvailablePatchesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeAvailablePatches");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeAvailablePatchesCommand");
    var se_DescribeDocumentCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeDocument");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeDocumentCommand");
    var se_DescribeDocumentPermissionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeDocumentPermission");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeDocumentPermissionCommand");
    var se_DescribeEffectiveInstanceAssociationsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeEffectiveInstanceAssociations");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeEffectiveInstanceAssociationsCommand");
    var se_DescribeEffectivePatchesForPatchBaselineCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeEffectivePatchesForPatchBaseline");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeEffectivePatchesForPatchBaselineCommand");
    var se_DescribeInstanceAssociationsStatusCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeInstanceAssociationsStatus");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeInstanceAssociationsStatusCommand");
    var se_DescribeInstanceInformationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeInstanceInformation");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeInstanceInformationCommand");
    var se_DescribeInstancePatchesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeInstancePatches");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeInstancePatchesCommand");
    var se_DescribeInstancePatchStatesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeInstancePatchStates");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeInstancePatchStatesCommand");
    var se_DescribeInstancePatchStatesForPatchGroupCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeInstancePatchStatesForPatchGroup");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeInstancePatchStatesForPatchGroupCommand");
    var se_DescribeInstancePropertiesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeInstanceProperties");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeInstancePropertiesCommand");
    var se_DescribeInventoryDeletionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeInventoryDeletions");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeInventoryDeletionsCommand");
    var se_DescribeMaintenanceWindowExecutionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeMaintenanceWindowExecutions");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeMaintenanceWindowExecutionsCommand");
    var se_DescribeMaintenanceWindowExecutionTaskInvocationsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeMaintenanceWindowExecutionTaskInvocations");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeMaintenanceWindowExecutionTaskInvocationsCommand");
    var se_DescribeMaintenanceWindowExecutionTasksCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeMaintenanceWindowExecutionTasks");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeMaintenanceWindowExecutionTasksCommand");
    var se_DescribeMaintenanceWindowsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeMaintenanceWindows");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeMaintenanceWindowsCommand");
    var se_DescribeMaintenanceWindowScheduleCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeMaintenanceWindowSchedule");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeMaintenanceWindowScheduleCommand");
    var se_DescribeMaintenanceWindowsForTargetCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeMaintenanceWindowsForTarget");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeMaintenanceWindowsForTargetCommand");
    var se_DescribeMaintenanceWindowTargetsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeMaintenanceWindowTargets");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeMaintenanceWindowTargetsCommand");
    var se_DescribeMaintenanceWindowTasksCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeMaintenanceWindowTasks");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeMaintenanceWindowTasksCommand");
    var se_DescribeOpsItemsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeOpsItems");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeOpsItemsCommand");
    var se_DescribeParametersCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeParameters");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeParametersCommand");
    var se_DescribePatchBaselinesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribePatchBaselines");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribePatchBaselinesCommand");
    var se_DescribePatchGroupsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribePatchGroups");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribePatchGroupsCommand");
    var se_DescribePatchGroupStateCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribePatchGroupState");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribePatchGroupStateCommand");
    var se_DescribePatchPropertiesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribePatchProperties");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribePatchPropertiesCommand");
    var se_DescribeSessionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DescribeSessions");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DescribeSessionsCommand");
    var se_DisassociateOpsItemRelatedItemCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("DisassociateOpsItemRelatedItem");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_DisassociateOpsItemRelatedItemCommand");
    var se_GetAccessTokenCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetAccessToken");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetAccessTokenCommand");
    var se_GetAutomationExecutionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetAutomationExecution");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetAutomationExecutionCommand");
    var se_GetCalendarStateCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetCalendarState");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetCalendarStateCommand");
    var se_GetCommandInvocationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetCommandInvocation");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetCommandInvocationCommand");
    var se_GetConnectionStatusCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetConnectionStatus");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetConnectionStatusCommand");
    var se_GetDefaultPatchBaselineCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetDefaultPatchBaseline");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetDefaultPatchBaselineCommand");
    var se_GetDeployablePatchSnapshotForInstanceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetDeployablePatchSnapshotForInstance");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetDeployablePatchSnapshotForInstanceCommand");
    var se_GetDocumentCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetDocument");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetDocumentCommand");
    var se_GetExecutionPreviewCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetExecutionPreview");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetExecutionPreviewCommand");
    var se_GetInventoryCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetInventory");
      let body;
      body = JSON.stringify(se_GetInventoryRequest(input, context));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetInventoryCommand");
    var se_GetInventorySchemaCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetInventorySchema");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetInventorySchemaCommand");
    var se_GetMaintenanceWindowCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetMaintenanceWindow");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetMaintenanceWindowCommand");
    var se_GetMaintenanceWindowExecutionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetMaintenanceWindowExecution");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetMaintenanceWindowExecutionCommand");
    var se_GetMaintenanceWindowExecutionTaskCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetMaintenanceWindowExecutionTask");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetMaintenanceWindowExecutionTaskCommand");
    var se_GetMaintenanceWindowExecutionTaskInvocationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetMaintenanceWindowExecutionTaskInvocation");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetMaintenanceWindowExecutionTaskInvocationCommand");
    var se_GetMaintenanceWindowTaskCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetMaintenanceWindowTask");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetMaintenanceWindowTaskCommand");
    var se_GetOpsItemCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetOpsItem");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetOpsItemCommand");
    var se_GetOpsMetadataCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetOpsMetadata");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetOpsMetadataCommand");
    var se_GetOpsSummaryCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetOpsSummary");
      let body;
      body = JSON.stringify(se_GetOpsSummaryRequest(input, context));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetOpsSummaryCommand");
    var se_GetParameterCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetParameter");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetParameterCommand");
    var se_GetParameterHistoryCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetParameterHistory");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetParameterHistoryCommand");
    var se_GetParametersCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetParameters");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetParametersCommand");
    var se_GetParametersByPathCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetParametersByPath");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetParametersByPathCommand");
    var se_GetPatchBaselineCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetPatchBaseline");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetPatchBaselineCommand");
    var se_GetPatchBaselineForPatchGroupCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetPatchBaselineForPatchGroup");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetPatchBaselineForPatchGroupCommand");
    var se_GetResourcePoliciesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetResourcePolicies");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetResourcePoliciesCommand");
    var se_GetServiceSettingCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("GetServiceSetting");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_GetServiceSettingCommand");
    var se_LabelParameterVersionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("LabelParameterVersion");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_LabelParameterVersionCommand");
    var se_ListAssociationsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListAssociations");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListAssociationsCommand");
    var se_ListAssociationVersionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListAssociationVersions");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListAssociationVersionsCommand");
    var se_ListCommandInvocationsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListCommandInvocations");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListCommandInvocationsCommand");
    var se_ListCommandsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListCommands");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListCommandsCommand");
    var se_ListComplianceItemsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListComplianceItems");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListComplianceItemsCommand");
    var se_ListComplianceSummariesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListComplianceSummaries");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListComplianceSummariesCommand");
    var se_ListDocumentMetadataHistoryCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListDocumentMetadataHistory");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListDocumentMetadataHistoryCommand");
    var se_ListDocumentsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListDocuments");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListDocumentsCommand");
    var se_ListDocumentVersionsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListDocumentVersions");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListDocumentVersionsCommand");
    var se_ListInventoryEntriesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListInventoryEntries");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListInventoryEntriesCommand");
    var se_ListNodesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListNodes");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListNodesCommand");
    var se_ListNodesSummaryCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListNodesSummary");
      let body;
      body = JSON.stringify(se_ListNodesSummaryRequest(input, context));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListNodesSummaryCommand");
    var se_ListOpsItemEventsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListOpsItemEvents");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListOpsItemEventsCommand");
    var se_ListOpsItemRelatedItemsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListOpsItemRelatedItems");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListOpsItemRelatedItemsCommand");
    var se_ListOpsMetadataCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListOpsMetadata");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListOpsMetadataCommand");
    var se_ListResourceComplianceSummariesCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListResourceComplianceSummaries");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListResourceComplianceSummariesCommand");
    var se_ListResourceDataSyncCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListResourceDataSync");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListResourceDataSyncCommand");
    var se_ListTagsForResourceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ListTagsForResource");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ListTagsForResourceCommand");
    var se_ModifyDocumentPermissionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ModifyDocumentPermission");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ModifyDocumentPermissionCommand");
    var se_PutComplianceItemsCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("PutComplianceItems");
      let body;
      body = JSON.stringify(se_PutComplianceItemsRequest(input, context));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_PutComplianceItemsCommand");
    var se_PutInventoryCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("PutInventory");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_PutInventoryCommand");
    var se_PutParameterCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("PutParameter");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_PutParameterCommand");
    var se_PutResourcePolicyCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("PutResourcePolicy");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_PutResourcePolicyCommand");
    var se_RegisterDefaultPatchBaselineCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("RegisterDefaultPatchBaseline");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_RegisterDefaultPatchBaselineCommand");
    var se_RegisterPatchBaselineForPatchGroupCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("RegisterPatchBaselineForPatchGroup");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_RegisterPatchBaselineForPatchGroupCommand");
    var se_RegisterTargetWithMaintenanceWindowCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("RegisterTargetWithMaintenanceWindow");
      let body;
      body = JSON.stringify(se_RegisterTargetWithMaintenanceWindowRequest(input, context));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_RegisterTargetWithMaintenanceWindowCommand");
    var se_RegisterTaskWithMaintenanceWindowCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("RegisterTaskWithMaintenanceWindow");
      let body;
      body = JSON.stringify(se_RegisterTaskWithMaintenanceWindowRequest(input, context));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_RegisterTaskWithMaintenanceWindowCommand");
    var se_RemoveTagsFromResourceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("RemoveTagsFromResource");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_RemoveTagsFromResourceCommand");
    var se_ResetServiceSettingCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ResetServiceSetting");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ResetServiceSettingCommand");
    var se_ResumeSessionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("ResumeSession");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_ResumeSessionCommand");
    var se_SendAutomationSignalCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("SendAutomationSignal");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_SendAutomationSignalCommand");
    var se_SendCommandCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("SendCommand");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_SendCommandCommand");
    var se_StartAccessRequestCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("StartAccessRequest");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_StartAccessRequestCommand");
    var se_StartAssociationsOnceCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("StartAssociationsOnce");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_StartAssociationsOnceCommand");
    var se_StartAutomationExecutionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("StartAutomationExecution");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_StartAutomationExecutionCommand");
    var se_StartChangeRequestExecutionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("StartChangeRequestExecution");
      let body;
      body = JSON.stringify(se_StartChangeRequestExecutionRequest(input, context));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_StartChangeRequestExecutionCommand");
    var se_StartExecutionPreviewCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("StartExecutionPreview");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_StartExecutionPreviewCommand");
    var se_StartSessionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("StartSession");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_StartSessionCommand");
    var se_StopAutomationExecutionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("StopAutomationExecution");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_StopAutomationExecutionCommand");
    var se_TerminateSessionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("TerminateSession");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_TerminateSessionCommand");
    var se_UnlabelParameterVersionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("UnlabelParameterVersion");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UnlabelParameterVersionCommand");
    var se_UpdateAssociationCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("UpdateAssociation");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateAssociationCommand");
    var se_UpdateAssociationStatusCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("UpdateAssociationStatus");
      let body;
      body = JSON.stringify(se_UpdateAssociationStatusRequest(input, context));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateAssociationStatusCommand");
    var se_UpdateDocumentCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("UpdateDocument");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateDocumentCommand");
    var se_UpdateDocumentDefaultVersionCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("UpdateDocumentDefaultVersion");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateDocumentDefaultVersionCommand");
    var se_UpdateDocumentMetadataCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("UpdateDocumentMetadata");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateDocumentMetadataCommand");
    var se_UpdateMaintenanceWindowCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("UpdateMaintenanceWindow");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateMaintenanceWindowCommand");
    var se_UpdateMaintenanceWindowTargetCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("UpdateMaintenanceWindowTarget");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateMaintenanceWindowTargetCommand");
    var se_UpdateMaintenanceWindowTaskCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("UpdateMaintenanceWindowTask");
      let body;
      body = JSON.stringify(se_UpdateMaintenanceWindowTaskRequest(input, context));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateMaintenanceWindowTaskCommand");
    var se_UpdateManagedInstanceRoleCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("UpdateManagedInstanceRole");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateManagedInstanceRoleCommand");
    var se_UpdateOpsItemCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("UpdateOpsItem");
      let body;
      body = JSON.stringify(se_UpdateOpsItemRequest(input, context));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateOpsItemCommand");
    var se_UpdateOpsMetadataCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("UpdateOpsMetadata");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateOpsMetadataCommand");
    var se_UpdatePatchBaselineCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("UpdatePatchBaseline");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdatePatchBaselineCommand");
    var se_UpdateResourceDataSyncCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("UpdateResourceDataSync");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateResourceDataSyncCommand");
    var se_UpdateServiceSettingCommand = /* @__PURE__ */ __name2(async (input, context) => {
      const headers = sharedHeaders("UpdateServiceSetting");
      let body;
      body = JSON.stringify((0, import_smithy_client28._json)(input));
      return buildHttpRpcRequest2(context, headers, "/", void 0, body);
    }, "se_UpdateServiceSettingCommand");
    var de_AddTagsToResourceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_AddTagsToResourceCommand");
    var de_AssociateOpsItemRelatedItemCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_AssociateOpsItemRelatedItemCommand");
    var de_CancelCommandCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CancelCommandCommand");
    var de_CancelMaintenanceWindowExecutionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CancelMaintenanceWindowExecutionCommand");
    var de_CreateActivationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateActivationCommand");
    var de_CreateAssociationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_CreateAssociationResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateAssociationCommand");
    var de_CreateAssociationBatchCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_CreateAssociationBatchResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateAssociationBatchCommand");
    var de_CreateDocumentCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_CreateDocumentResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateDocumentCommand");
    var de_CreateMaintenanceWindowCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateMaintenanceWindowCommand");
    var de_CreateOpsItemCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateOpsItemCommand");
    var de_CreateOpsMetadataCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateOpsMetadataCommand");
    var de_CreatePatchBaselineCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreatePatchBaselineCommand");
    var de_CreateResourceDataSyncCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_CreateResourceDataSyncCommand");
    var de_DeleteActivationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteActivationCommand");
    var de_DeleteAssociationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteAssociationCommand");
    var de_DeleteDocumentCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteDocumentCommand");
    var de_DeleteInventoryCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteInventoryCommand");
    var de_DeleteMaintenanceWindowCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteMaintenanceWindowCommand");
    var de_DeleteOpsItemCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteOpsItemCommand");
    var de_DeleteOpsMetadataCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteOpsMetadataCommand");
    var de_DeleteParameterCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteParameterCommand");
    var de_DeleteParametersCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteParametersCommand");
    var de_DeletePatchBaselineCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeletePatchBaselineCommand");
    var de_DeleteResourceDataSyncCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteResourceDataSyncCommand");
    var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeleteResourcePolicyCommand");
    var de_DeregisterManagedInstanceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeregisterManagedInstanceCommand");
    var de_DeregisterPatchBaselineForPatchGroupCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeregisterPatchBaselineForPatchGroupCommand");
    var de_DeregisterTargetFromMaintenanceWindowCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeregisterTargetFromMaintenanceWindowCommand");
    var de_DeregisterTaskFromMaintenanceWindowCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DeregisterTaskFromMaintenanceWindowCommand");
    var de_DescribeActivationsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DescribeActivationsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeActivationsCommand");
    var de_DescribeAssociationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DescribeAssociationResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeAssociationCommand");
    var de_DescribeAssociationExecutionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DescribeAssociationExecutionsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeAssociationExecutionsCommand");
    var de_DescribeAssociationExecutionTargetsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DescribeAssociationExecutionTargetsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeAssociationExecutionTargetsCommand");
    var de_DescribeAutomationExecutionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DescribeAutomationExecutionsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeAutomationExecutionsCommand");
    var de_DescribeAutomationStepExecutionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DescribeAutomationStepExecutionsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeAutomationStepExecutionsCommand");
    var de_DescribeAvailablePatchesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DescribeAvailablePatchesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeAvailablePatchesCommand");
    var de_DescribeDocumentCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DescribeDocumentResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeDocumentCommand");
    var de_DescribeDocumentPermissionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeDocumentPermissionCommand");
    var de_DescribeEffectiveInstanceAssociationsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeEffectiveInstanceAssociationsCommand");
    var de_DescribeEffectivePatchesForPatchBaselineCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DescribeEffectivePatchesForPatchBaselineResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeEffectivePatchesForPatchBaselineCommand");
    var de_DescribeInstanceAssociationsStatusCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DescribeInstanceAssociationsStatusResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeInstanceAssociationsStatusCommand");
    var de_DescribeInstanceInformationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DescribeInstanceInformationResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeInstanceInformationCommand");
    var de_DescribeInstancePatchesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DescribeInstancePatchesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeInstancePatchesCommand");
    var de_DescribeInstancePatchStatesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DescribeInstancePatchStatesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeInstancePatchStatesCommand");
    var de_DescribeInstancePatchStatesForPatchGroupCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DescribeInstancePatchStatesForPatchGroupResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeInstancePatchStatesForPatchGroupCommand");
    var de_DescribeInstancePropertiesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DescribeInstancePropertiesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeInstancePropertiesCommand");
    var de_DescribeInventoryDeletionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DescribeInventoryDeletionsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeInventoryDeletionsCommand");
    var de_DescribeMaintenanceWindowExecutionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DescribeMaintenanceWindowExecutionsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeMaintenanceWindowExecutionsCommand");
    var de_DescribeMaintenanceWindowExecutionTaskInvocationsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DescribeMaintenanceWindowExecutionTaskInvocationsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeMaintenanceWindowExecutionTaskInvocationsCommand");
    var de_DescribeMaintenanceWindowExecutionTasksCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DescribeMaintenanceWindowExecutionTasksResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeMaintenanceWindowExecutionTasksCommand");
    var de_DescribeMaintenanceWindowsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeMaintenanceWindowsCommand");
    var de_DescribeMaintenanceWindowScheduleCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeMaintenanceWindowScheduleCommand");
    var de_DescribeMaintenanceWindowsForTargetCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeMaintenanceWindowsForTargetCommand");
    var de_DescribeMaintenanceWindowTargetsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeMaintenanceWindowTargetsCommand");
    var de_DescribeMaintenanceWindowTasksCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeMaintenanceWindowTasksCommand");
    var de_DescribeOpsItemsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DescribeOpsItemsResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeOpsItemsCommand");
    var de_DescribeParametersCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DescribeParametersResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeParametersCommand");
    var de_DescribePatchBaselinesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribePatchBaselinesCommand");
    var de_DescribePatchGroupsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribePatchGroupsCommand");
    var de_DescribePatchGroupStateCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribePatchGroupStateCommand");
    var de_DescribePatchPropertiesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribePatchPropertiesCommand");
    var de_DescribeSessionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_DescribeSessionsResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DescribeSessionsCommand");
    var de_DisassociateOpsItemRelatedItemCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_DisassociateOpsItemRelatedItemCommand");
    var de_GetAccessTokenCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_GetAccessTokenResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetAccessTokenCommand");
    var de_GetAutomationExecutionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_GetAutomationExecutionResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetAutomationExecutionCommand");
    var de_GetCalendarStateCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetCalendarStateCommand");
    var de_GetCommandInvocationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetCommandInvocationCommand");
    var de_GetConnectionStatusCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetConnectionStatusCommand");
    var de_GetDefaultPatchBaselineCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetDefaultPatchBaselineCommand");
    var de_GetDeployablePatchSnapshotForInstanceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetDeployablePatchSnapshotForInstanceCommand");
    var de_GetDocumentCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_GetDocumentResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetDocumentCommand");
    var de_GetExecutionPreviewCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_GetExecutionPreviewResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetExecutionPreviewCommand");
    var de_GetInventoryCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetInventoryCommand");
    var de_GetInventorySchemaCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetInventorySchemaCommand");
    var de_GetMaintenanceWindowCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_GetMaintenanceWindowResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetMaintenanceWindowCommand");
    var de_GetMaintenanceWindowExecutionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_GetMaintenanceWindowExecutionResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetMaintenanceWindowExecutionCommand");
    var de_GetMaintenanceWindowExecutionTaskCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_GetMaintenanceWindowExecutionTaskResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetMaintenanceWindowExecutionTaskCommand");
    var de_GetMaintenanceWindowExecutionTaskInvocationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_GetMaintenanceWindowExecutionTaskInvocationResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetMaintenanceWindowExecutionTaskInvocationCommand");
    var de_GetMaintenanceWindowTaskCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_GetMaintenanceWindowTaskResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetMaintenanceWindowTaskCommand");
    var de_GetOpsItemCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_GetOpsItemResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetOpsItemCommand");
    var de_GetOpsMetadataCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetOpsMetadataCommand");
    var de_GetOpsSummaryCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetOpsSummaryCommand");
    var de_GetParameterCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_GetParameterResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetParameterCommand");
    var de_GetParameterHistoryCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_GetParameterHistoryResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetParameterHistoryCommand");
    var de_GetParametersCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_GetParametersResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetParametersCommand");
    var de_GetParametersByPathCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_GetParametersByPathResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetParametersByPathCommand");
    var de_GetPatchBaselineCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_GetPatchBaselineResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetPatchBaselineCommand");
    var de_GetPatchBaselineForPatchGroupCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetPatchBaselineForPatchGroupCommand");
    var de_GetResourcePoliciesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetResourcePoliciesCommand");
    var de_GetServiceSettingCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_GetServiceSettingResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_GetServiceSettingCommand");
    var de_LabelParameterVersionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_LabelParameterVersionCommand");
    var de_ListAssociationsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_ListAssociationsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListAssociationsCommand");
    var de_ListAssociationVersionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_ListAssociationVersionsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListAssociationVersionsCommand");
    var de_ListCommandInvocationsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_ListCommandInvocationsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListCommandInvocationsCommand");
    var de_ListCommandsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_ListCommandsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListCommandsCommand");
    var de_ListComplianceItemsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_ListComplianceItemsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListComplianceItemsCommand");
    var de_ListComplianceSummariesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListComplianceSummariesCommand");
    var de_ListDocumentMetadataHistoryCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_ListDocumentMetadataHistoryResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListDocumentMetadataHistoryCommand");
    var de_ListDocumentsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_ListDocumentsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListDocumentsCommand");
    var de_ListDocumentVersionsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_ListDocumentVersionsResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListDocumentVersionsCommand");
    var de_ListInventoryEntriesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListInventoryEntriesCommand");
    var de_ListNodesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_ListNodesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListNodesCommand");
    var de_ListNodesSummaryCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListNodesSummaryCommand");
    var de_ListOpsItemEventsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_ListOpsItemEventsResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListOpsItemEventsCommand");
    var de_ListOpsItemRelatedItemsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_ListOpsItemRelatedItemsResponse(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListOpsItemRelatedItemsCommand");
    var de_ListOpsMetadataCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_ListOpsMetadataResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListOpsMetadataCommand");
    var de_ListResourceComplianceSummariesCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_ListResourceComplianceSummariesResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListResourceComplianceSummariesCommand");
    var de_ListResourceDataSyncCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_ListResourceDataSyncResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListResourceDataSyncCommand");
    var de_ListTagsForResourceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ListTagsForResourceCommand");
    var de_ModifyDocumentPermissionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ModifyDocumentPermissionCommand");
    var de_PutComplianceItemsCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_PutComplianceItemsCommand");
    var de_PutInventoryCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_PutInventoryCommand");
    var de_PutParameterCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_PutParameterCommand");
    var de_PutResourcePolicyCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_PutResourcePolicyCommand");
    var de_RegisterDefaultPatchBaselineCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_RegisterDefaultPatchBaselineCommand");
    var de_RegisterPatchBaselineForPatchGroupCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_RegisterPatchBaselineForPatchGroupCommand");
    var de_RegisterTargetWithMaintenanceWindowCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_RegisterTargetWithMaintenanceWindowCommand");
    var de_RegisterTaskWithMaintenanceWindowCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_RegisterTaskWithMaintenanceWindowCommand");
    var de_RemoveTagsFromResourceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_RemoveTagsFromResourceCommand");
    var de_ResetServiceSettingCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_ResetServiceSettingResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ResetServiceSettingCommand");
    var de_ResumeSessionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_ResumeSessionCommand");
    var de_SendAutomationSignalCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_SendAutomationSignalCommand");
    var de_SendCommandCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_SendCommandResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_SendCommandCommand");
    var de_StartAccessRequestCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_StartAccessRequestCommand");
    var de_StartAssociationsOnceCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_StartAssociationsOnceCommand");
    var de_StartAutomationExecutionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_StartAutomationExecutionCommand");
    var de_StartChangeRequestExecutionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_StartChangeRequestExecutionCommand");
    var de_StartExecutionPreviewCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_StartExecutionPreviewCommand");
    var de_StartSessionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_StartSessionCommand");
    var de_StopAutomationExecutionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_StopAutomationExecutionCommand");
    var de_TerminateSessionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_TerminateSessionCommand");
    var de_UnlabelParameterVersionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UnlabelParameterVersionCommand");
    var de_UpdateAssociationCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_UpdateAssociationResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UpdateAssociationCommand");
    var de_UpdateAssociationStatusCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_UpdateAssociationStatusResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UpdateAssociationStatusCommand");
    var de_UpdateDocumentCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_UpdateDocumentResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UpdateDocumentCommand");
    var de_UpdateDocumentDefaultVersionCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UpdateDocumentDefaultVersionCommand");
    var de_UpdateDocumentMetadataCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UpdateDocumentMetadataCommand");
    var de_UpdateMaintenanceWindowCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UpdateMaintenanceWindowCommand");
    var de_UpdateMaintenanceWindowTargetCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UpdateMaintenanceWindowTargetCommand");
    var de_UpdateMaintenanceWindowTaskCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_UpdateMaintenanceWindowTaskResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UpdateMaintenanceWindowTaskCommand");
    var de_UpdateManagedInstanceRoleCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UpdateManagedInstanceRoleCommand");
    var de_UpdateOpsItemCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UpdateOpsItemCommand");
    var de_UpdateOpsMetadataCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UpdateOpsMetadataCommand");
    var de_UpdatePatchBaselineCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = de_UpdatePatchBaselineResult(data3, context);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UpdatePatchBaselineCommand");
    var de_UpdateResourceDataSyncCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UpdateResourceDataSyncCommand");
    var de_UpdateServiceSettingCommand = /* @__PURE__ */ __name2(async (output, context) => {
      if (output.statusCode >= 300) {
        return de_CommandError3(output, context);
      }
      const data3 = await (0, import_core22.parseJsonBody)(output.body, context);
      let contents = {};
      contents = (0, import_smithy_client28._json)(data3);
      const response = {
        $metadata: deserializeMetadata3(output),
        ...contents
      };
      return response;
    }, "de_UpdateServiceSettingCommand");
    var de_CommandError3 = /* @__PURE__ */ __name2(async (output, context) => {
      const parsedOutput = {
        ...output,
        body: await (0, import_core22.parseJsonErrorBody)(output.body, context)
      };
      const errorCode = (0, import_core22.loadRestJsonErrorCode)(output, parsedOutput.body);
      switch (errorCode) {
        case "InternalServerError":
        case "com.amazonaws.ssm#InternalServerError":
          throw await de_InternalServerErrorRes(parsedOutput, context);
        case "InvalidResourceId":
        case "com.amazonaws.ssm#InvalidResourceId":
          throw await de_InvalidResourceIdRes(parsedOutput, context);
        case "InvalidResourceType":
        case "com.amazonaws.ssm#InvalidResourceType":
          throw await de_InvalidResourceTypeRes(parsedOutput, context);
        case "TooManyTagsError":
        case "com.amazonaws.ssm#TooManyTagsError":
          throw await de_TooManyTagsErrorRes(parsedOutput, context);
        case "TooManyUpdates":
        case "com.amazonaws.ssm#TooManyUpdates":
          throw await de_TooManyUpdatesRes(parsedOutput, context);
        case "OpsItemConflictException":
        case "com.amazonaws.ssm#OpsItemConflictException":
          throw await de_OpsItemConflictExceptionRes(parsedOutput, context);
        case "OpsItemInvalidParameterException":
        case "com.amazonaws.ssm#OpsItemInvalidParameterException":
          throw await de_OpsItemInvalidParameterExceptionRes(parsedOutput, context);
        case "OpsItemLimitExceededException":
        case "com.amazonaws.ssm#OpsItemLimitExceededException":
          throw await de_OpsItemLimitExceededExceptionRes(parsedOutput, context);
        case "OpsItemNotFoundException":
        case "com.amazonaws.ssm#OpsItemNotFoundException":
          throw await de_OpsItemNotFoundExceptionRes(parsedOutput, context);
        case "OpsItemRelatedItemAlreadyExistsException":
        case "com.amazonaws.ssm#OpsItemRelatedItemAlreadyExistsException":
          throw await de_OpsItemRelatedItemAlreadyExistsExceptionRes(parsedOutput, context);
        case "DuplicateInstanceId":
        case "com.amazonaws.ssm#DuplicateInstanceId":
          throw await de_DuplicateInstanceIdRes(parsedOutput, context);
        case "InvalidCommandId":
        case "com.amazonaws.ssm#InvalidCommandId":
          throw await de_InvalidCommandIdRes(parsedOutput, context);
        case "InvalidInstanceId":
        case "com.amazonaws.ssm#InvalidInstanceId":
          throw await de_InvalidInstanceIdRes(parsedOutput, context);
        case "DoesNotExistException":
        case "com.amazonaws.ssm#DoesNotExistException":
          throw await de_DoesNotExistExceptionRes(parsedOutput, context);
        case "InvalidParameters":
        case "com.amazonaws.ssm#InvalidParameters":
          throw await de_InvalidParametersRes(parsedOutput, context);
        case "AssociationAlreadyExists":
        case "com.amazonaws.ssm#AssociationAlreadyExists":
          throw await de_AssociationAlreadyExistsRes(parsedOutput, context);
        case "AssociationLimitExceeded":
        case "com.amazonaws.ssm#AssociationLimitExceeded":
          throw await de_AssociationLimitExceededRes(parsedOutput, context);
        case "InvalidDocument":
        case "com.amazonaws.ssm#InvalidDocument":
          throw await de_InvalidDocumentRes(parsedOutput, context);
        case "InvalidDocumentVersion":
        case "com.amazonaws.ssm#InvalidDocumentVersion":
          throw await de_InvalidDocumentVersionRes(parsedOutput, context);
        case "InvalidOutputLocation":
        case "com.amazonaws.ssm#InvalidOutputLocation":
          throw await de_InvalidOutputLocationRes(parsedOutput, context);
        case "InvalidSchedule":
        case "com.amazonaws.ssm#InvalidSchedule":
          throw await de_InvalidScheduleRes(parsedOutput, context);
        case "InvalidTag":
        case "com.amazonaws.ssm#InvalidTag":
          throw await de_InvalidTagRes(parsedOutput, context);
        case "InvalidTarget":
        case "com.amazonaws.ssm#InvalidTarget":
          throw await de_InvalidTargetRes(parsedOutput, context);
        case "InvalidTargetMaps":
        case "com.amazonaws.ssm#InvalidTargetMaps":
          throw await de_InvalidTargetMapsRes(parsedOutput, context);
        case "UnsupportedPlatformType":
        case "com.amazonaws.ssm#UnsupportedPlatformType":
          throw await de_UnsupportedPlatformTypeRes(parsedOutput, context);
        case "DocumentAlreadyExists":
        case "com.amazonaws.ssm#DocumentAlreadyExists":
          throw await de_DocumentAlreadyExistsRes(parsedOutput, context);
        case "DocumentLimitExceeded":
        case "com.amazonaws.ssm#DocumentLimitExceeded":
          throw await de_DocumentLimitExceededRes(parsedOutput, context);
        case "InvalidDocumentContent":
        case "com.amazonaws.ssm#InvalidDocumentContent":
          throw await de_InvalidDocumentContentRes(parsedOutput, context);
        case "InvalidDocumentSchemaVersion":
        case "com.amazonaws.ssm#InvalidDocumentSchemaVersion":
          throw await de_InvalidDocumentSchemaVersionRes(parsedOutput, context);
        case "MaxDocumentSizeExceeded":
        case "com.amazonaws.ssm#MaxDocumentSizeExceeded":
          throw await de_MaxDocumentSizeExceededRes(parsedOutput, context);
        case "IdempotentParameterMismatch":
        case "com.amazonaws.ssm#IdempotentParameterMismatch":
          throw await de_IdempotentParameterMismatchRes(parsedOutput, context);
        case "ResourceLimitExceededException":
        case "com.amazonaws.ssm#ResourceLimitExceededException":
          throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
        case "OpsItemAccessDeniedException":
        case "com.amazonaws.ssm#OpsItemAccessDeniedException":
          throw await de_OpsItemAccessDeniedExceptionRes(parsedOutput, context);
        case "OpsItemAlreadyExistsException":
        case "com.amazonaws.ssm#OpsItemAlreadyExistsException":
          throw await de_OpsItemAlreadyExistsExceptionRes(parsedOutput, context);
        case "OpsMetadataAlreadyExistsException":
        case "com.amazonaws.ssm#OpsMetadataAlreadyExistsException":
          throw await de_OpsMetadataAlreadyExistsExceptionRes(parsedOutput, context);
        case "OpsMetadataInvalidArgumentException":
        case "com.amazonaws.ssm#OpsMetadataInvalidArgumentException":
          throw await de_OpsMetadataInvalidArgumentExceptionRes(parsedOutput, context);
        case "OpsMetadataLimitExceededException":
        case "com.amazonaws.ssm#OpsMetadataLimitExceededException":
          throw await de_OpsMetadataLimitExceededExceptionRes(parsedOutput, context);
        case "OpsMetadataTooManyUpdatesException":
        case "com.amazonaws.ssm#OpsMetadataTooManyUpdatesException":
          throw await de_OpsMetadataTooManyUpdatesExceptionRes(parsedOutput, context);
        case "ResourceDataSyncAlreadyExistsException":
        case "com.amazonaws.ssm#ResourceDataSyncAlreadyExistsException":
          throw await de_ResourceDataSyncAlreadyExistsExceptionRes(parsedOutput, context);
        case "ResourceDataSyncCountExceededException":
        case "com.amazonaws.ssm#ResourceDataSyncCountExceededException":
          throw await de_ResourceDataSyncCountExceededExceptionRes(parsedOutput, context);
        case "ResourceDataSyncInvalidConfigurationException":
        case "com.amazonaws.ssm#ResourceDataSyncInvalidConfigurationException":
          throw await de_ResourceDataSyncInvalidConfigurationExceptionRes(parsedOutput, context);
        case "InvalidActivation":
        case "com.amazonaws.ssm#InvalidActivation":
          throw await de_InvalidActivationRes(parsedOutput, context);
        case "InvalidActivationId":
        case "com.amazonaws.ssm#InvalidActivationId":
          throw await de_InvalidActivationIdRes(parsedOutput, context);
        case "AssociationDoesNotExist":
        case "com.amazonaws.ssm#AssociationDoesNotExist":
          throw await de_AssociationDoesNotExistRes(parsedOutput, context);
        case "AssociatedInstances":
        case "com.amazonaws.ssm#AssociatedInstances":
          throw await de_AssociatedInstancesRes(parsedOutput, context);
        case "InvalidDocumentOperation":
        case "com.amazonaws.ssm#InvalidDocumentOperation":
          throw await de_InvalidDocumentOperationRes(parsedOutput, context);
        case "InvalidDeleteInventoryParametersException":
        case "com.amazonaws.ssm#InvalidDeleteInventoryParametersException":
          throw await de_InvalidDeleteInventoryParametersExceptionRes(parsedOutput, context);
        case "InvalidInventoryRequestException":
        case "com.amazonaws.ssm#InvalidInventoryRequestException":
          throw await de_InvalidInventoryRequestExceptionRes(parsedOutput, context);
        case "InvalidOptionException":
        case "com.amazonaws.ssm#InvalidOptionException":
          throw await de_InvalidOptionExceptionRes(parsedOutput, context);
        case "InvalidTypeNameException":
        case "com.amazonaws.ssm#InvalidTypeNameException":
          throw await de_InvalidTypeNameExceptionRes(parsedOutput, context);
        case "OpsMetadataNotFoundException":
        case "com.amazonaws.ssm#OpsMetadataNotFoundException":
          throw await de_OpsMetadataNotFoundExceptionRes(parsedOutput, context);
        case "ParameterNotFound":
        case "com.amazonaws.ssm#ParameterNotFound":
          throw await de_ParameterNotFoundRes(parsedOutput, context);
        case "ResourceInUseException":
        case "com.amazonaws.ssm#ResourceInUseException":
          throw await de_ResourceInUseExceptionRes(parsedOutput, context);
        case "ResourceDataSyncNotFoundException":
        case "com.amazonaws.ssm#ResourceDataSyncNotFoundException":
          throw await de_ResourceDataSyncNotFoundExceptionRes(parsedOutput, context);
        case "MalformedResourcePolicyDocumentException":
        case "com.amazonaws.ssm#MalformedResourcePolicyDocumentException":
          throw await de_MalformedResourcePolicyDocumentExceptionRes(parsedOutput, context);
        case "ResourceNotFoundException":
        case "com.amazonaws.ssm#ResourceNotFoundException":
          throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
        case "ResourcePolicyConflictException":
        case "com.amazonaws.ssm#ResourcePolicyConflictException":
          throw await de_ResourcePolicyConflictExceptionRes(parsedOutput, context);
        case "ResourcePolicyInvalidParameterException":
        case "com.amazonaws.ssm#ResourcePolicyInvalidParameterException":
          throw await de_ResourcePolicyInvalidParameterExceptionRes(parsedOutput, context);
        case "ResourcePolicyNotFoundException":
        case "com.amazonaws.ssm#ResourcePolicyNotFoundException":
          throw await de_ResourcePolicyNotFoundExceptionRes(parsedOutput, context);
        case "TargetInUseException":
        case "com.amazonaws.ssm#TargetInUseException":
          throw await de_TargetInUseExceptionRes(parsedOutput, context);
        case "InvalidFilter":
        case "com.amazonaws.ssm#InvalidFilter":
          throw await de_InvalidFilterRes(parsedOutput, context);
        case "InvalidNextToken":
        case "com.amazonaws.ssm#InvalidNextToken":
          throw await de_InvalidNextTokenRes(parsedOutput, context);
        case "InvalidAssociationVersion":
        case "com.amazonaws.ssm#InvalidAssociationVersion":
          throw await de_InvalidAssociationVersionRes(parsedOutput, context);
        case "AssociationExecutionDoesNotExist":
        case "com.amazonaws.ssm#AssociationExecutionDoesNotExist":
          throw await de_AssociationExecutionDoesNotExistRes(parsedOutput, context);
        case "InvalidFilterKey":
        case "com.amazonaws.ssm#InvalidFilterKey":
          throw await de_InvalidFilterKeyRes(parsedOutput, context);
        case "InvalidFilterValue":
        case "com.amazonaws.ssm#InvalidFilterValue":
          throw await de_InvalidFilterValueRes(parsedOutput, context);
        case "AutomationExecutionNotFoundException":
        case "com.amazonaws.ssm#AutomationExecutionNotFoundException":
          throw await de_AutomationExecutionNotFoundExceptionRes(parsedOutput, context);
        case "InvalidPermissionType":
        case "com.amazonaws.ssm#InvalidPermissionType":
          throw await de_InvalidPermissionTypeRes(parsedOutput, context);
        case "UnsupportedOperatingSystem":
        case "com.amazonaws.ssm#UnsupportedOperatingSystem":
          throw await de_UnsupportedOperatingSystemRes(parsedOutput, context);
        case "InvalidInstanceInformationFilterValue":
        case "com.amazonaws.ssm#InvalidInstanceInformationFilterValue":
          throw await de_InvalidInstanceInformationFilterValueRes(parsedOutput, context);
        case "InvalidInstancePropertyFilterValue":
        case "com.amazonaws.ssm#InvalidInstancePropertyFilterValue":
          throw await de_InvalidInstancePropertyFilterValueRes(parsedOutput, context);
        case "InvalidDeletionIdException":
        case "com.amazonaws.ssm#InvalidDeletionIdException":
          throw await de_InvalidDeletionIdExceptionRes(parsedOutput, context);
        case "InvalidFilterOption":
        case "com.amazonaws.ssm#InvalidFilterOption":
          throw await de_InvalidFilterOptionRes(parsedOutput, context);
        case "OpsItemRelatedItemAssociationNotFoundException":
        case "com.amazonaws.ssm#OpsItemRelatedItemAssociationNotFoundException":
          throw await de_OpsItemRelatedItemAssociationNotFoundExceptionRes(parsedOutput, context);
        case "AccessDeniedException":
        case "com.amazonaws.ssm#AccessDeniedException":
          throw await de_AccessDeniedExceptionRes2(parsedOutput, context);
        case "ThrottlingException":
        case "com.amazonaws.ssm#ThrottlingException":
          throw await de_ThrottlingExceptionRes(parsedOutput, context);
        case "ValidationException":
        case "com.amazonaws.ssm#ValidationException":
          throw await de_ValidationExceptionRes(parsedOutput, context);
        case "InvalidDocumentType":
        case "com.amazonaws.ssm#InvalidDocumentType":
          throw await de_InvalidDocumentTypeRes(parsedOutput, context);
        case "UnsupportedCalendarException":
        case "com.amazonaws.ssm#UnsupportedCalendarException":
          throw await de_UnsupportedCalendarExceptionRes(parsedOutput, context);
        case "InvalidPluginName":
        case "com.amazonaws.ssm#InvalidPluginName":
          throw await de_InvalidPluginNameRes(parsedOutput, context);
        case "InvocationDoesNotExist":
        case "com.amazonaws.ssm#InvocationDoesNotExist":
          throw await de_InvocationDoesNotExistRes(parsedOutput, context);
        case "UnsupportedFeatureRequiredException":
        case "com.amazonaws.ssm#UnsupportedFeatureRequiredException":
          throw await de_UnsupportedFeatureRequiredExceptionRes(parsedOutput, context);
        case "InvalidAggregatorException":
        case "com.amazonaws.ssm#InvalidAggregatorException":
          throw await de_InvalidAggregatorExceptionRes(parsedOutput, context);
        case "InvalidInventoryGroupException":
        case "com.amazonaws.ssm#InvalidInventoryGroupException":
          throw await de_InvalidInventoryGroupExceptionRes(parsedOutput, context);
        case "InvalidResultAttributeException":
        case "com.amazonaws.ssm#InvalidResultAttributeException":
          throw await de_InvalidResultAttributeExceptionRes(parsedOutput, context);
        case "InvalidKeyId":
        case "com.amazonaws.ssm#InvalidKeyId":
          throw await de_InvalidKeyIdRes(parsedOutput, context);
        case "ParameterVersionNotFound":
        case "com.amazonaws.ssm#ParameterVersionNotFound":
          throw await de_ParameterVersionNotFoundRes(parsedOutput, context);
        case "ServiceSettingNotFound":
        case "com.amazonaws.ssm#ServiceSettingNotFound":
          throw await de_ServiceSettingNotFoundRes(parsedOutput, context);
        case "ParameterVersionLabelLimitExceeded":
        case "com.amazonaws.ssm#ParameterVersionLabelLimitExceeded":
          throw await de_ParameterVersionLabelLimitExceededRes(parsedOutput, context);
        case "UnsupportedOperationException":
        case "com.amazonaws.ssm#UnsupportedOperationException":
          throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
        case "DocumentPermissionLimit":
        case "com.amazonaws.ssm#DocumentPermissionLimit":
          throw await de_DocumentPermissionLimitRes(parsedOutput, context);
        case "ComplianceTypeCountLimitExceededException":
        case "com.amazonaws.ssm#ComplianceTypeCountLimitExceededException":
          throw await de_ComplianceTypeCountLimitExceededExceptionRes(parsedOutput, context);
        case "InvalidItemContentException":
        case "com.amazonaws.ssm#InvalidItemContentException":
          throw await de_InvalidItemContentExceptionRes(parsedOutput, context);
        case "ItemSizeLimitExceededException":
        case "com.amazonaws.ssm#ItemSizeLimitExceededException":
          throw await de_ItemSizeLimitExceededExceptionRes(parsedOutput, context);
        case "TotalSizeLimitExceededException":
        case "com.amazonaws.ssm#TotalSizeLimitExceededException":
          throw await de_TotalSizeLimitExceededExceptionRes(parsedOutput, context);
        case "CustomSchemaCountLimitExceededException":
        case "com.amazonaws.ssm#CustomSchemaCountLimitExceededException":
          throw await de_CustomSchemaCountLimitExceededExceptionRes(parsedOutput, context);
        case "InvalidInventoryItemContextException":
        case "com.amazonaws.ssm#InvalidInventoryItemContextException":
          throw await de_InvalidInventoryItemContextExceptionRes(parsedOutput, context);
        case "ItemContentMismatchException":
        case "com.amazonaws.ssm#ItemContentMismatchException":
          throw await de_ItemContentMismatchExceptionRes(parsedOutput, context);
        case "SubTypeCountLimitExceededException":
        case "com.amazonaws.ssm#SubTypeCountLimitExceededException":
          throw await de_SubTypeCountLimitExceededExceptionRes(parsedOutput, context);
        case "UnsupportedInventoryItemContextException":
        case "com.amazonaws.ssm#UnsupportedInventoryItemContextException":
          throw await de_UnsupportedInventoryItemContextExceptionRes(parsedOutput, context);
        case "UnsupportedInventorySchemaVersionException":
        case "com.amazonaws.ssm#UnsupportedInventorySchemaVersionException":
          throw await de_UnsupportedInventorySchemaVersionExceptionRes(parsedOutput, context);
        case "HierarchyLevelLimitExceededException":
        case "com.amazonaws.ssm#HierarchyLevelLimitExceededException":
          throw await de_HierarchyLevelLimitExceededExceptionRes(parsedOutput, context);
        case "HierarchyTypeMismatchException":
        case "com.amazonaws.ssm#HierarchyTypeMismatchException":
          throw await de_HierarchyTypeMismatchExceptionRes(parsedOutput, context);
        case "IncompatiblePolicyException":
        case "com.amazonaws.ssm#IncompatiblePolicyException":
          throw await de_IncompatiblePolicyExceptionRes(parsedOutput, context);
        case "InvalidAllowedPatternException":
        case "com.amazonaws.ssm#InvalidAllowedPatternException":
          throw await de_InvalidAllowedPatternExceptionRes(parsedOutput, context);
        case "InvalidPolicyAttributeException":
        case "com.amazonaws.ssm#InvalidPolicyAttributeException":
          throw await de_InvalidPolicyAttributeExceptionRes(parsedOutput, context);
        case "InvalidPolicyTypeException":
        case "com.amazonaws.ssm#InvalidPolicyTypeException":
          throw await de_InvalidPolicyTypeExceptionRes(parsedOutput, context);
        case "ParameterAlreadyExists":
        case "com.amazonaws.ssm#ParameterAlreadyExists":
          throw await de_ParameterAlreadyExistsRes(parsedOutput, context);
        case "ParameterLimitExceeded":
        case "com.amazonaws.ssm#ParameterLimitExceeded":
          throw await de_ParameterLimitExceededRes(parsedOutput, context);
        case "ParameterMaxVersionLimitExceeded":
        case "com.amazonaws.ssm#ParameterMaxVersionLimitExceeded":
          throw await de_ParameterMaxVersionLimitExceededRes(parsedOutput, context);
        case "ParameterPatternMismatchException":
        case "com.amazonaws.ssm#ParameterPatternMismatchException":
          throw await de_ParameterPatternMismatchExceptionRes(parsedOutput, context);
        case "PoliciesLimitExceededException":
        case "com.amazonaws.ssm#PoliciesLimitExceededException":
          throw await de_PoliciesLimitExceededExceptionRes(parsedOutput, context);
        case "UnsupportedParameterType":
        case "com.amazonaws.ssm#UnsupportedParameterType":
          throw await de_UnsupportedParameterTypeRes(parsedOutput, context);
        case "ResourcePolicyLimitExceededException":
        case "com.amazonaws.ssm#ResourcePolicyLimitExceededException":
          throw await de_ResourcePolicyLimitExceededExceptionRes(parsedOutput, context);
        case "AlreadyExistsException":
        case "com.amazonaws.ssm#AlreadyExistsException":
          throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
        case "FeatureNotAvailableException":
        case "com.amazonaws.ssm#FeatureNotAvailableException":
          throw await de_FeatureNotAvailableExceptionRes(parsedOutput, context);
        case "AutomationStepNotFoundException":
        case "com.amazonaws.ssm#AutomationStepNotFoundException":
          throw await de_AutomationStepNotFoundExceptionRes(parsedOutput, context);
        case "InvalidAutomationSignalException":
        case "com.amazonaws.ssm#InvalidAutomationSignalException":
          throw await de_InvalidAutomationSignalExceptionRes(parsedOutput, context);
        case "InvalidNotificationConfig":
        case "com.amazonaws.ssm#InvalidNotificationConfig":
          throw await de_InvalidNotificationConfigRes(parsedOutput, context);
        case "InvalidOutputFolder":
        case "com.amazonaws.ssm#InvalidOutputFolder":
          throw await de_InvalidOutputFolderRes(parsedOutput, context);
        case "InvalidRole":
        case "com.amazonaws.ssm#InvalidRole":
          throw await de_InvalidRoleRes(parsedOutput, context);
        case "ServiceQuotaExceededException":
        case "com.amazonaws.ssm#ServiceQuotaExceededException":
          throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
        case "InvalidAssociation":
        case "com.amazonaws.ssm#InvalidAssociation":
          throw await de_InvalidAssociationRes(parsedOutput, context);
        case "AutomationDefinitionNotFoundException":
        case "com.amazonaws.ssm#AutomationDefinitionNotFoundException":
          throw await de_AutomationDefinitionNotFoundExceptionRes(parsedOutput, context);
        case "AutomationDefinitionVersionNotFoundException":
        case "com.amazonaws.ssm#AutomationDefinitionVersionNotFoundException":
          throw await de_AutomationDefinitionVersionNotFoundExceptionRes(parsedOutput, context);
        case "AutomationExecutionLimitExceededException":
        case "com.amazonaws.ssm#AutomationExecutionLimitExceededException":
          throw await de_AutomationExecutionLimitExceededExceptionRes(parsedOutput, context);
        case "InvalidAutomationExecutionParametersException":
        case "com.amazonaws.ssm#InvalidAutomationExecutionParametersException":
          throw await de_InvalidAutomationExecutionParametersExceptionRes(parsedOutput, context);
        case "AutomationDefinitionNotApprovedException":
        case "com.amazonaws.ssm#AutomationDefinitionNotApprovedException":
          throw await de_AutomationDefinitionNotApprovedExceptionRes(parsedOutput, context);
        case "TargetNotConnected":
        case "com.amazonaws.ssm#TargetNotConnected":
          throw await de_TargetNotConnectedRes(parsedOutput, context);
        case "InvalidAutomationStatusUpdateException":
        case "com.amazonaws.ssm#InvalidAutomationStatusUpdateException":
          throw await de_InvalidAutomationStatusUpdateExceptionRes(parsedOutput, context);
        case "AssociationVersionLimitExceeded":
        case "com.amazonaws.ssm#AssociationVersionLimitExceeded":
          throw await de_AssociationVersionLimitExceededRes(parsedOutput, context);
        case "InvalidUpdate":
        case "com.amazonaws.ssm#InvalidUpdate":
          throw await de_InvalidUpdateRes(parsedOutput, context);
        case "StatusUnchanged":
        case "com.amazonaws.ssm#StatusUnchanged":
          throw await de_StatusUnchangedRes(parsedOutput, context);
        case "DocumentVersionLimitExceeded":
        case "com.amazonaws.ssm#DocumentVersionLimitExceeded":
          throw await de_DocumentVersionLimitExceededRes(parsedOutput, context);
        case "DuplicateDocumentContent":
        case "com.amazonaws.ssm#DuplicateDocumentContent":
          throw await de_DuplicateDocumentContentRes(parsedOutput, context);
        case "DuplicateDocumentVersionName":
        case "com.amazonaws.ssm#DuplicateDocumentVersionName":
          throw await de_DuplicateDocumentVersionNameRes(parsedOutput, context);
        case "OpsMetadataKeyLimitExceededException":
        case "com.amazonaws.ssm#OpsMetadataKeyLimitExceededException":
          throw await de_OpsMetadataKeyLimitExceededExceptionRes(parsedOutput, context);
        case "ResourceDataSyncConflictException":
        case "com.amazonaws.ssm#ResourceDataSyncConflictException":
          throw await de_ResourceDataSyncConflictExceptionRes(parsedOutput, context);
        default:
          const parsedBody = parsedOutput.body;
          return throwDefaultError3({
            output,
            parsedBody,
            errorCode
          });
      }
    }, "de_CommandError");
    var de_AccessDeniedExceptionRes2 = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new AccessDeniedException2({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_AccessDeniedExceptionRes");
    var de_AlreadyExistsExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new AlreadyExistsException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_AlreadyExistsExceptionRes");
    var de_AssociatedInstancesRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new AssociatedInstances({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_AssociatedInstancesRes");
    var de_AssociationAlreadyExistsRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new AssociationAlreadyExists({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_AssociationAlreadyExistsRes");
    var de_AssociationDoesNotExistRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new AssociationDoesNotExist({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_AssociationDoesNotExistRes");
    var de_AssociationExecutionDoesNotExistRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new AssociationExecutionDoesNotExist({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_AssociationExecutionDoesNotExistRes");
    var de_AssociationLimitExceededRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new AssociationLimitExceeded({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_AssociationLimitExceededRes");
    var de_AssociationVersionLimitExceededRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new AssociationVersionLimitExceeded({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_AssociationVersionLimitExceededRes");
    var de_AutomationDefinitionNotApprovedExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new AutomationDefinitionNotApprovedException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_AutomationDefinitionNotApprovedExceptionRes");
    var de_AutomationDefinitionNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new AutomationDefinitionNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_AutomationDefinitionNotFoundExceptionRes");
    var de_AutomationDefinitionVersionNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new AutomationDefinitionVersionNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_AutomationDefinitionVersionNotFoundExceptionRes");
    var de_AutomationExecutionLimitExceededExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new AutomationExecutionLimitExceededException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_AutomationExecutionLimitExceededExceptionRes");
    var de_AutomationExecutionNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new AutomationExecutionNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_AutomationExecutionNotFoundExceptionRes");
    var de_AutomationStepNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new AutomationStepNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_AutomationStepNotFoundExceptionRes");
    var de_ComplianceTypeCountLimitExceededExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ComplianceTypeCountLimitExceededException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ComplianceTypeCountLimitExceededExceptionRes");
    var de_CustomSchemaCountLimitExceededExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new CustomSchemaCountLimitExceededException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_CustomSchemaCountLimitExceededExceptionRes");
    var de_DocumentAlreadyExistsRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new DocumentAlreadyExists({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_DocumentAlreadyExistsRes");
    var de_DocumentLimitExceededRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new DocumentLimitExceeded({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_DocumentLimitExceededRes");
    var de_DocumentPermissionLimitRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new DocumentPermissionLimit({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_DocumentPermissionLimitRes");
    var de_DocumentVersionLimitExceededRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new DocumentVersionLimitExceeded({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_DocumentVersionLimitExceededRes");
    var de_DoesNotExistExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new DoesNotExistException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_DoesNotExistExceptionRes");
    var de_DuplicateDocumentContentRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new DuplicateDocumentContent({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_DuplicateDocumentContentRes");
    var de_DuplicateDocumentVersionNameRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new DuplicateDocumentVersionName({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_DuplicateDocumentVersionNameRes");
    var de_DuplicateInstanceIdRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new DuplicateInstanceId({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_DuplicateInstanceIdRes");
    var de_FeatureNotAvailableExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new FeatureNotAvailableException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_FeatureNotAvailableExceptionRes");
    var de_HierarchyLevelLimitExceededExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new HierarchyLevelLimitExceededException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_HierarchyLevelLimitExceededExceptionRes");
    var de_HierarchyTypeMismatchExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new HierarchyTypeMismatchException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_HierarchyTypeMismatchExceptionRes");
    var de_IdempotentParameterMismatchRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new IdempotentParameterMismatch({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_IdempotentParameterMismatchRes");
    var de_IncompatiblePolicyExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new IncompatiblePolicyException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_IncompatiblePolicyExceptionRes");
    var de_InternalServerErrorRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InternalServerError({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InternalServerErrorRes");
    var de_InvalidActivationRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidActivation({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidActivationRes");
    var de_InvalidActivationIdRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidActivationId({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidActivationIdRes");
    var de_InvalidAggregatorExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidAggregatorException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidAggregatorExceptionRes");
    var de_InvalidAllowedPatternExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidAllowedPatternException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidAllowedPatternExceptionRes");
    var de_InvalidAssociationRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidAssociation({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidAssociationRes");
    var de_InvalidAssociationVersionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidAssociationVersion({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidAssociationVersionRes");
    var de_InvalidAutomationExecutionParametersExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidAutomationExecutionParametersException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidAutomationExecutionParametersExceptionRes");
    var de_InvalidAutomationSignalExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidAutomationSignalException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidAutomationSignalExceptionRes");
    var de_InvalidAutomationStatusUpdateExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidAutomationStatusUpdateException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidAutomationStatusUpdateExceptionRes");
    var de_InvalidCommandIdRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidCommandId({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidCommandIdRes");
    var de_InvalidDeleteInventoryParametersExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidDeleteInventoryParametersException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidDeleteInventoryParametersExceptionRes");
    var de_InvalidDeletionIdExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidDeletionIdException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidDeletionIdExceptionRes");
    var de_InvalidDocumentRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidDocument({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidDocumentRes");
    var de_InvalidDocumentContentRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidDocumentContent({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidDocumentContentRes");
    var de_InvalidDocumentOperationRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidDocumentOperation({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidDocumentOperationRes");
    var de_InvalidDocumentSchemaVersionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidDocumentSchemaVersion({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidDocumentSchemaVersionRes");
    var de_InvalidDocumentTypeRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidDocumentType({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidDocumentTypeRes");
    var de_InvalidDocumentVersionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidDocumentVersion({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidDocumentVersionRes");
    var de_InvalidFilterRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidFilter({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidFilterRes");
    var de_InvalidFilterKeyRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidFilterKey({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidFilterKeyRes");
    var de_InvalidFilterOptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidFilterOption({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidFilterOptionRes");
    var de_InvalidFilterValueRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidFilterValue({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidFilterValueRes");
    var de_InvalidInstanceIdRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidInstanceId({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidInstanceIdRes");
    var de_InvalidInstanceInformationFilterValueRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidInstanceInformationFilterValue({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidInstanceInformationFilterValueRes");
    var de_InvalidInstancePropertyFilterValueRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidInstancePropertyFilterValue({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidInstancePropertyFilterValueRes");
    var de_InvalidInventoryGroupExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidInventoryGroupException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidInventoryGroupExceptionRes");
    var de_InvalidInventoryItemContextExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidInventoryItemContextException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidInventoryItemContextExceptionRes");
    var de_InvalidInventoryRequestExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidInventoryRequestException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidInventoryRequestExceptionRes");
    var de_InvalidItemContentExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidItemContentException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidItemContentExceptionRes");
    var de_InvalidKeyIdRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidKeyId({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidKeyIdRes");
    var de_InvalidNextTokenRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidNextToken({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidNextTokenRes");
    var de_InvalidNotificationConfigRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidNotificationConfig({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidNotificationConfigRes");
    var de_InvalidOptionExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidOptionException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidOptionExceptionRes");
    var de_InvalidOutputFolderRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidOutputFolder({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidOutputFolderRes");
    var de_InvalidOutputLocationRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidOutputLocation({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidOutputLocationRes");
    var de_InvalidParametersRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidParameters({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidParametersRes");
    var de_InvalidPermissionTypeRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidPermissionType({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidPermissionTypeRes");
    var de_InvalidPluginNameRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidPluginName({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidPluginNameRes");
    var de_InvalidPolicyAttributeExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidPolicyAttributeException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidPolicyAttributeExceptionRes");
    var de_InvalidPolicyTypeExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidPolicyTypeException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidPolicyTypeExceptionRes");
    var de_InvalidResourceIdRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidResourceId({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidResourceIdRes");
    var de_InvalidResourceTypeRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidResourceType({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidResourceTypeRes");
    var de_InvalidResultAttributeExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidResultAttributeException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidResultAttributeExceptionRes");
    var de_InvalidRoleRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidRole({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidRoleRes");
    var de_InvalidScheduleRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidSchedule({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidScheduleRes");
    var de_InvalidTagRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidTag({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidTagRes");
    var de_InvalidTargetRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidTarget({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidTargetRes");
    var de_InvalidTargetMapsRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidTargetMaps({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidTargetMapsRes");
    var de_InvalidTypeNameExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidTypeNameException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidTypeNameExceptionRes");
    var de_InvalidUpdateRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvalidUpdate({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvalidUpdateRes");
    var de_InvocationDoesNotExistRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new InvocationDoesNotExist({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_InvocationDoesNotExistRes");
    var de_ItemContentMismatchExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ItemContentMismatchException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ItemContentMismatchExceptionRes");
    var de_ItemSizeLimitExceededExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ItemSizeLimitExceededException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ItemSizeLimitExceededExceptionRes");
    var de_MalformedResourcePolicyDocumentExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new MalformedResourcePolicyDocumentException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_MalformedResourcePolicyDocumentExceptionRes");
    var de_MaxDocumentSizeExceededRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new MaxDocumentSizeExceeded({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_MaxDocumentSizeExceededRes");
    var de_OpsItemAccessDeniedExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new OpsItemAccessDeniedException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_OpsItemAccessDeniedExceptionRes");
    var de_OpsItemAlreadyExistsExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new OpsItemAlreadyExistsException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_OpsItemAlreadyExistsExceptionRes");
    var de_OpsItemConflictExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new OpsItemConflictException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_OpsItemConflictExceptionRes");
    var de_OpsItemInvalidParameterExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new OpsItemInvalidParameterException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_OpsItemInvalidParameterExceptionRes");
    var de_OpsItemLimitExceededExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new OpsItemLimitExceededException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_OpsItemLimitExceededExceptionRes");
    var de_OpsItemNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new OpsItemNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_OpsItemNotFoundExceptionRes");
    var de_OpsItemRelatedItemAlreadyExistsExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new OpsItemRelatedItemAlreadyExistsException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_OpsItemRelatedItemAlreadyExistsExceptionRes");
    var de_OpsItemRelatedItemAssociationNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new OpsItemRelatedItemAssociationNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_OpsItemRelatedItemAssociationNotFoundExceptionRes");
    var de_OpsMetadataAlreadyExistsExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new OpsMetadataAlreadyExistsException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_OpsMetadataAlreadyExistsExceptionRes");
    var de_OpsMetadataInvalidArgumentExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new OpsMetadataInvalidArgumentException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_OpsMetadataInvalidArgumentExceptionRes");
    var de_OpsMetadataKeyLimitExceededExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new OpsMetadataKeyLimitExceededException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_OpsMetadataKeyLimitExceededExceptionRes");
    var de_OpsMetadataLimitExceededExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new OpsMetadataLimitExceededException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_OpsMetadataLimitExceededExceptionRes");
    var de_OpsMetadataNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new OpsMetadataNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_OpsMetadataNotFoundExceptionRes");
    var de_OpsMetadataTooManyUpdatesExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new OpsMetadataTooManyUpdatesException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_OpsMetadataTooManyUpdatesExceptionRes");
    var de_ParameterAlreadyExistsRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ParameterAlreadyExists({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ParameterAlreadyExistsRes");
    var de_ParameterLimitExceededRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ParameterLimitExceeded({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ParameterLimitExceededRes");
    var de_ParameterMaxVersionLimitExceededRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ParameterMaxVersionLimitExceeded({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ParameterMaxVersionLimitExceededRes");
    var de_ParameterNotFoundRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ParameterNotFound({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ParameterNotFoundRes");
    var de_ParameterPatternMismatchExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ParameterPatternMismatchException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ParameterPatternMismatchExceptionRes");
    var de_ParameterVersionLabelLimitExceededRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ParameterVersionLabelLimitExceeded({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ParameterVersionLabelLimitExceededRes");
    var de_ParameterVersionNotFoundRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ParameterVersionNotFound({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ParameterVersionNotFoundRes");
    var de_PoliciesLimitExceededExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new PoliciesLimitExceededException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_PoliciesLimitExceededExceptionRes");
    var de_ResourceDataSyncAlreadyExistsExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ResourceDataSyncAlreadyExistsException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ResourceDataSyncAlreadyExistsExceptionRes");
    var de_ResourceDataSyncConflictExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ResourceDataSyncConflictException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ResourceDataSyncConflictExceptionRes");
    var de_ResourceDataSyncCountExceededExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ResourceDataSyncCountExceededException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ResourceDataSyncCountExceededExceptionRes");
    var de_ResourceDataSyncInvalidConfigurationExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ResourceDataSyncInvalidConfigurationException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ResourceDataSyncInvalidConfigurationExceptionRes");
    var de_ResourceDataSyncNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ResourceDataSyncNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ResourceDataSyncNotFoundExceptionRes");
    var de_ResourceInUseExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ResourceInUseException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ResourceInUseExceptionRes");
    var de_ResourceLimitExceededExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ResourceLimitExceededException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ResourceLimitExceededExceptionRes");
    var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ResourceNotFoundException2({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ResourceNotFoundExceptionRes");
    var de_ResourcePolicyConflictExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ResourcePolicyConflictException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ResourcePolicyConflictExceptionRes");
    var de_ResourcePolicyInvalidParameterExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ResourcePolicyInvalidParameterException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ResourcePolicyInvalidParameterExceptionRes");
    var de_ResourcePolicyLimitExceededExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ResourcePolicyLimitExceededException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ResourcePolicyLimitExceededExceptionRes");
    var de_ResourcePolicyNotFoundExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ResourcePolicyNotFoundException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ResourcePolicyNotFoundExceptionRes");
    var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ServiceQuotaExceededException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ServiceQuotaExceededExceptionRes");
    var de_ServiceSettingNotFoundRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ServiceSettingNotFound({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ServiceSettingNotFoundRes");
    var de_StatusUnchangedRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new StatusUnchanged({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_StatusUnchangedRes");
    var de_SubTypeCountLimitExceededExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new SubTypeCountLimitExceededException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_SubTypeCountLimitExceededExceptionRes");
    var de_TargetInUseExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new TargetInUseException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_TargetInUseExceptionRes");
    var de_TargetNotConnectedRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new TargetNotConnected({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_TargetNotConnectedRes");
    var de_ThrottlingExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ThrottlingException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ThrottlingExceptionRes");
    var de_TooManyTagsErrorRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new TooManyTagsError({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_TooManyTagsErrorRes");
    var de_TooManyUpdatesRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new TooManyUpdates({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_TooManyUpdatesRes");
    var de_TotalSizeLimitExceededExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new TotalSizeLimitExceededException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_TotalSizeLimitExceededExceptionRes");
    var de_UnsupportedCalendarExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new UnsupportedCalendarException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_UnsupportedCalendarExceptionRes");
    var de_UnsupportedFeatureRequiredExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new UnsupportedFeatureRequiredException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_UnsupportedFeatureRequiredExceptionRes");
    var de_UnsupportedInventoryItemContextExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new UnsupportedInventoryItemContextException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_UnsupportedInventoryItemContextExceptionRes");
    var de_UnsupportedInventorySchemaVersionExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new UnsupportedInventorySchemaVersionException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_UnsupportedInventorySchemaVersionExceptionRes");
    var de_UnsupportedOperatingSystemRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new UnsupportedOperatingSystem({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_UnsupportedOperatingSystemRes");
    var de_UnsupportedOperationExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new UnsupportedOperationException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_UnsupportedOperationExceptionRes");
    var de_UnsupportedParameterTypeRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new UnsupportedParameterType({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_UnsupportedParameterTypeRes");
    var de_UnsupportedPlatformTypeRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new UnsupportedPlatformType({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_UnsupportedPlatformTypeRes");
    var de_ValidationExceptionRes = /* @__PURE__ */ __name2(async (parsedOutput, context) => {
      const body = parsedOutput.body;
      const deserialized = (0, import_smithy_client28._json)(body);
      const exception = new ValidationException({
        $metadata: deserializeMetadata3(parsedOutput),
        ...deserialized
      });
      return (0, import_smithy_client28.decorateServiceException)(exception, body);
    }, "de_ValidationExceptionRes");
    var se_AssociationStatus = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        AdditionalInfo: [],
        Date: /* @__PURE__ */ __name2((_3) => _3.getTime() / 1e3, "Date"),
        Message: [],
        Name: []
      });
    }, "se_AssociationStatus");
    var se_ComplianceExecutionSummary = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        ExecutionId: [],
        ExecutionTime: /* @__PURE__ */ __name2((_3) => _3.getTime() / 1e3, "ExecutionTime"),
        ExecutionType: []
      });
    }, "se_ComplianceExecutionSummary");
    var se_CreateActivationRequest = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        DefaultInstanceName: [],
        Description: [],
        ExpirationDate: /* @__PURE__ */ __name2((_3) => _3.getTime() / 1e3, "ExpirationDate"),
        IamRole: [],
        RegistrationLimit: [],
        RegistrationMetadata: import_smithy_client28._json,
        Tags: import_smithy_client28._json
      });
    }, "se_CreateActivationRequest");
    var se_CreateMaintenanceWindowRequest = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        AllowUnassociatedTargets: [],
        ClientToken: [true, (_3) => _3 ?? (0, import_uuid2.v4)()],
        Cutoff: [],
        Description: [],
        Duration: [],
        EndDate: [],
        Name: [],
        Schedule: [],
        ScheduleOffset: [],
        ScheduleTimezone: [],
        StartDate: [],
        Tags: import_smithy_client28._json
      });
    }, "se_CreateMaintenanceWindowRequest");
    var se_CreateOpsItemRequest = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        AccountId: [],
        ActualEndTime: /* @__PURE__ */ __name2((_3) => _3.getTime() / 1e3, "ActualEndTime"),
        ActualStartTime: /* @__PURE__ */ __name2((_3) => _3.getTime() / 1e3, "ActualStartTime"),
        Category: [],
        Description: [],
        Notifications: import_smithy_client28._json,
        OperationalData: import_smithy_client28._json,
        OpsItemType: [],
        PlannedEndTime: /* @__PURE__ */ __name2((_3) => _3.getTime() / 1e3, "PlannedEndTime"),
        PlannedStartTime: /* @__PURE__ */ __name2((_3) => _3.getTime() / 1e3, "PlannedStartTime"),
        Priority: [],
        RelatedOpsItems: import_smithy_client28._json,
        Severity: [],
        Source: [],
        Tags: import_smithy_client28._json,
        Title: []
      });
    }, "se_CreateOpsItemRequest");
    var se_CreatePatchBaselineRequest = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        ApprovalRules: import_smithy_client28._json,
        ApprovedPatches: import_smithy_client28._json,
        ApprovedPatchesComplianceLevel: [],
        ApprovedPatchesEnableNonSecurity: [],
        AvailableSecurityUpdatesComplianceStatus: [],
        ClientToken: [true, (_3) => _3 ?? (0, import_uuid2.v4)()],
        Description: [],
        GlobalFilters: import_smithy_client28._json,
        Name: [],
        OperatingSystem: [],
        RejectedPatches: import_smithy_client28._json,
        RejectedPatchesAction: [],
        Sources: import_smithy_client28._json,
        Tags: import_smithy_client28._json
      });
    }, "se_CreatePatchBaselineRequest");
    var se_DeleteInventoryRequest = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        ClientToken: [true, (_3) => _3 ?? (0, import_uuid2.v4)()],
        DryRun: [],
        SchemaDeleteOption: [],
        TypeName: []
      });
    }, "se_DeleteInventoryRequest");
    var se_GetInventoryRequest = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        Aggregators: /* @__PURE__ */ __name2((_3) => se_InventoryAggregatorList(_3, context), "Aggregators"),
        Filters: import_smithy_client28._json,
        MaxResults: [],
        NextToken: [],
        ResultAttributes: import_smithy_client28._json
      });
    }, "se_GetInventoryRequest");
    var se_GetOpsSummaryRequest = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        Aggregators: /* @__PURE__ */ __name2((_3) => se_OpsAggregatorList(_3, context), "Aggregators"),
        Filters: import_smithy_client28._json,
        MaxResults: [],
        NextToken: [],
        ResultAttributes: import_smithy_client28._json,
        SyncName: []
      });
    }, "se_GetOpsSummaryRequest");
    var se_InventoryAggregator = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        Aggregators: /* @__PURE__ */ __name2((_3) => se_InventoryAggregatorList(_3, context), "Aggregators"),
        Expression: [],
        Groups: import_smithy_client28._json
      });
    }, "se_InventoryAggregator");
    var se_InventoryAggregatorList = /* @__PURE__ */ __name2((input, context) => {
      return input.filter((e3) => e3 != null).map((entry) => {
        return se_InventoryAggregator(entry, context);
      });
    }, "se_InventoryAggregatorList");
    var se_ListNodesSummaryRequest = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        Aggregators: /* @__PURE__ */ __name2((_3) => se_NodeAggregatorList(_3, context), "Aggregators"),
        Filters: import_smithy_client28._json,
        MaxResults: [],
        NextToken: [],
        SyncName: []
      });
    }, "se_ListNodesSummaryRequest");
    var se_MaintenanceWindowLambdaParameters = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        ClientContext: [],
        Payload: context.base64Encoder,
        Qualifier: []
      });
    }, "se_MaintenanceWindowLambdaParameters");
    var se_MaintenanceWindowTaskInvocationParameters = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        Automation: import_smithy_client28._json,
        Lambda: /* @__PURE__ */ __name2((_3) => se_MaintenanceWindowLambdaParameters(_3, context), "Lambda"),
        RunCommand: import_smithy_client28._json,
        StepFunctions: import_smithy_client28._json
      });
    }, "se_MaintenanceWindowTaskInvocationParameters");
    var se_NodeAggregator = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        AggregatorType: [],
        Aggregators: /* @__PURE__ */ __name2((_3) => se_NodeAggregatorList(_3, context), "Aggregators"),
        AttributeName: [],
        TypeName: []
      });
    }, "se_NodeAggregator");
    var se_NodeAggregatorList = /* @__PURE__ */ __name2((input, context) => {
      return input.filter((e3) => e3 != null).map((entry) => {
        return se_NodeAggregator(entry, context);
      });
    }, "se_NodeAggregatorList");
    var se_OpsAggregator = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        AggregatorType: [],
        Aggregators: /* @__PURE__ */ __name2((_3) => se_OpsAggregatorList(_3, context), "Aggregators"),
        AttributeName: [],
        Filters: import_smithy_client28._json,
        TypeName: [],
        Values: import_smithy_client28._json
      });
    }, "se_OpsAggregator");
    var se_OpsAggregatorList = /* @__PURE__ */ __name2((input, context) => {
      return input.filter((e3) => e3 != null).map((entry) => {
        return se_OpsAggregator(entry, context);
      });
    }, "se_OpsAggregatorList");
    var se_PutComplianceItemsRequest = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        ComplianceType: [],
        ExecutionSummary: /* @__PURE__ */ __name2((_3) => se_ComplianceExecutionSummary(_3, context), "ExecutionSummary"),
        ItemContentHash: [],
        Items: import_smithy_client28._json,
        ResourceId: [],
        ResourceType: [],
        UploadType: []
      });
    }, "se_PutComplianceItemsRequest");
    var se_RegisterTargetWithMaintenanceWindowRequest = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        ClientToken: [true, (_3) => _3 ?? (0, import_uuid2.v4)()],
        Description: [],
        Name: [],
        OwnerInformation: [],
        ResourceType: [],
        Targets: import_smithy_client28._json,
        WindowId: []
      });
    }, "se_RegisterTargetWithMaintenanceWindowRequest");
    var se_RegisterTaskWithMaintenanceWindowRequest = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        AlarmConfiguration: import_smithy_client28._json,
        ClientToken: [true, (_3) => _3 ?? (0, import_uuid2.v4)()],
        CutoffBehavior: [],
        Description: [],
        LoggingInfo: import_smithy_client28._json,
        MaxConcurrency: [],
        MaxErrors: [],
        Name: [],
        Priority: [],
        ServiceRoleArn: [],
        Targets: import_smithy_client28._json,
        TaskArn: [],
        TaskInvocationParameters: /* @__PURE__ */ __name2((_3) => se_MaintenanceWindowTaskInvocationParameters(_3, context), "TaskInvocationParameters"),
        TaskParameters: import_smithy_client28._json,
        TaskType: [],
        WindowId: []
      });
    }, "se_RegisterTaskWithMaintenanceWindowRequest");
    var se_StartChangeRequestExecutionRequest = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        AutoApprove: [],
        ChangeDetails: [],
        ChangeRequestName: [],
        ClientToken: [],
        DocumentName: [],
        DocumentVersion: [],
        Parameters: import_smithy_client28._json,
        Runbooks: import_smithy_client28._json,
        ScheduledEndTime: /* @__PURE__ */ __name2((_3) => _3.getTime() / 1e3, "ScheduledEndTime"),
        ScheduledTime: /* @__PURE__ */ __name2((_3) => _3.getTime() / 1e3, "ScheduledTime"),
        Tags: import_smithy_client28._json
      });
    }, "se_StartChangeRequestExecutionRequest");
    var se_UpdateAssociationStatusRequest = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        AssociationStatus: /* @__PURE__ */ __name2((_3) => se_AssociationStatus(_3, context), "AssociationStatus"),
        InstanceId: [],
        Name: []
      });
    }, "se_UpdateAssociationStatusRequest");
    var se_UpdateMaintenanceWindowTaskRequest = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        AlarmConfiguration: import_smithy_client28._json,
        CutoffBehavior: [],
        Description: [],
        LoggingInfo: import_smithy_client28._json,
        MaxConcurrency: [],
        MaxErrors: [],
        Name: [],
        Priority: [],
        Replace: [],
        ServiceRoleArn: [],
        Targets: import_smithy_client28._json,
        TaskArn: [],
        TaskInvocationParameters: /* @__PURE__ */ __name2((_3) => se_MaintenanceWindowTaskInvocationParameters(_3, context), "TaskInvocationParameters"),
        TaskParameters: import_smithy_client28._json,
        WindowId: [],
        WindowTaskId: []
      });
    }, "se_UpdateMaintenanceWindowTaskRequest");
    var se_UpdateOpsItemRequest = /* @__PURE__ */ __name2((input, context) => {
      return (0, import_smithy_client28.take)(input, {
        ActualEndTime: /* @__PURE__ */ __name2((_3) => _3.getTime() / 1e3, "ActualEndTime"),
        ActualStartTime: /* @__PURE__ */ __name2((_3) => _3.getTime() / 1e3, "ActualStartTime"),
        Category: [],
        Description: [],
        Notifications: import_smithy_client28._json,
        OperationalData: import_smithy_client28._json,
        OperationalDataToDelete: import_smithy_client28._json,
        OpsItemArn: [],
        OpsItemId: [],
        PlannedEndTime: /* @__PURE__ */ __name2((_3) => _3.getTime() / 1e3, "PlannedEndTime"),
        PlannedStartTime: /* @__PURE__ */ __name2((_3) => _3.getTime() / 1e3, "PlannedStartTime"),
        Priority: [],
        RelatedOpsItems: import_smithy_client28._json,
        Severity: [],
        Status: [],
        Title: []
      });
    }, "se_UpdateOpsItemRequest");
    var de_Activation = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        ActivationId: import_smithy_client28.expectString,
        CreatedDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "CreatedDate"),
        DefaultInstanceName: import_smithy_client28.expectString,
        Description: import_smithy_client28.expectString,
        ExpirationDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "ExpirationDate"),
        Expired: import_smithy_client28.expectBoolean,
        IamRole: import_smithy_client28.expectString,
        RegistrationLimit: import_smithy_client28.expectInt32,
        RegistrationsCount: import_smithy_client28.expectInt32,
        Tags: import_smithy_client28._json
      });
    }, "de_Activation");
    var de_ActivationList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Activation(entry, context);
      });
      return retVal;
    }, "de_ActivationList");
    var de_Association = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        AssociationId: import_smithy_client28.expectString,
        AssociationName: import_smithy_client28.expectString,
        AssociationVersion: import_smithy_client28.expectString,
        DocumentVersion: import_smithy_client28.expectString,
        Duration: import_smithy_client28.expectInt32,
        InstanceId: import_smithy_client28.expectString,
        LastExecutionDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "LastExecutionDate"),
        Name: import_smithy_client28.expectString,
        Overview: import_smithy_client28._json,
        ScheduleExpression: import_smithy_client28.expectString,
        ScheduleOffset: import_smithy_client28.expectInt32,
        TargetMaps: import_smithy_client28._json,
        Targets: import_smithy_client28._json
      });
    }, "de_Association");
    var de_AssociationDescription = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        AlarmConfiguration: import_smithy_client28._json,
        ApplyOnlyAtCronInterval: import_smithy_client28.expectBoolean,
        AssociationId: import_smithy_client28.expectString,
        AssociationName: import_smithy_client28.expectString,
        AssociationVersion: import_smithy_client28.expectString,
        AutomationTargetParameterName: import_smithy_client28.expectString,
        CalendarNames: import_smithy_client28._json,
        ComplianceSeverity: import_smithy_client28.expectString,
        Date: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "Date"),
        DocumentVersion: import_smithy_client28.expectString,
        Duration: import_smithy_client28.expectInt32,
        InstanceId: import_smithy_client28.expectString,
        LastExecutionDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "LastExecutionDate"),
        LastSuccessfulExecutionDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "LastSuccessfulExecutionDate"),
        LastUpdateAssociationDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "LastUpdateAssociationDate"),
        MaxConcurrency: import_smithy_client28.expectString,
        MaxErrors: import_smithy_client28.expectString,
        Name: import_smithy_client28.expectString,
        OutputLocation: import_smithy_client28._json,
        Overview: import_smithy_client28._json,
        Parameters: import_smithy_client28._json,
        ScheduleExpression: import_smithy_client28.expectString,
        ScheduleOffset: import_smithy_client28.expectInt32,
        Status: /* @__PURE__ */ __name2((_3) => de_AssociationStatus(_3, context), "Status"),
        SyncCompliance: import_smithy_client28.expectString,
        TargetLocations: import_smithy_client28._json,
        TargetMaps: import_smithy_client28._json,
        Targets: import_smithy_client28._json,
        TriggeredAlarms: import_smithy_client28._json
      });
    }, "de_AssociationDescription");
    var de_AssociationDescriptionList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_AssociationDescription(entry, context);
      });
      return retVal;
    }, "de_AssociationDescriptionList");
    var de_AssociationExecution = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        AlarmConfiguration: import_smithy_client28._json,
        AssociationId: import_smithy_client28.expectString,
        AssociationVersion: import_smithy_client28.expectString,
        CreatedTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "CreatedTime"),
        DetailedStatus: import_smithy_client28.expectString,
        ExecutionId: import_smithy_client28.expectString,
        LastExecutionDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "LastExecutionDate"),
        ResourceCountByStatus: import_smithy_client28.expectString,
        Status: import_smithy_client28.expectString,
        TriggeredAlarms: import_smithy_client28._json
      });
    }, "de_AssociationExecution");
    var de_AssociationExecutionsList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_AssociationExecution(entry, context);
      });
      return retVal;
    }, "de_AssociationExecutionsList");
    var de_AssociationExecutionTarget = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        AssociationId: import_smithy_client28.expectString,
        AssociationVersion: import_smithy_client28.expectString,
        DetailedStatus: import_smithy_client28.expectString,
        ExecutionId: import_smithy_client28.expectString,
        LastExecutionDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "LastExecutionDate"),
        OutputSource: import_smithy_client28._json,
        ResourceId: import_smithy_client28.expectString,
        ResourceType: import_smithy_client28.expectString,
        Status: import_smithy_client28.expectString
      });
    }, "de_AssociationExecutionTarget");
    var de_AssociationExecutionTargetsList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_AssociationExecutionTarget(entry, context);
      });
      return retVal;
    }, "de_AssociationExecutionTargetsList");
    var de_AssociationList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Association(entry, context);
      });
      return retVal;
    }, "de_AssociationList");
    var de_AssociationStatus = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        AdditionalInfo: import_smithy_client28.expectString,
        Date: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "Date"),
        Message: import_smithy_client28.expectString,
        Name: import_smithy_client28.expectString
      });
    }, "de_AssociationStatus");
    var de_AssociationVersionInfo = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        ApplyOnlyAtCronInterval: import_smithy_client28.expectBoolean,
        AssociationId: import_smithy_client28.expectString,
        AssociationName: import_smithy_client28.expectString,
        AssociationVersion: import_smithy_client28.expectString,
        CalendarNames: import_smithy_client28._json,
        ComplianceSeverity: import_smithy_client28.expectString,
        CreatedDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "CreatedDate"),
        DocumentVersion: import_smithy_client28.expectString,
        Duration: import_smithy_client28.expectInt32,
        MaxConcurrency: import_smithy_client28.expectString,
        MaxErrors: import_smithy_client28.expectString,
        Name: import_smithy_client28.expectString,
        OutputLocation: import_smithy_client28._json,
        Parameters: import_smithy_client28._json,
        ScheduleExpression: import_smithy_client28.expectString,
        ScheduleOffset: import_smithy_client28.expectInt32,
        SyncCompliance: import_smithy_client28.expectString,
        TargetLocations: import_smithy_client28._json,
        TargetMaps: import_smithy_client28._json,
        Targets: import_smithy_client28._json
      });
    }, "de_AssociationVersionInfo");
    var de_AssociationVersionList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_AssociationVersionInfo(entry, context);
      });
      return retVal;
    }, "de_AssociationVersionList");
    var de_AutomationExecution = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        AlarmConfiguration: import_smithy_client28._json,
        AssociationId: import_smithy_client28.expectString,
        AutomationExecutionId: import_smithy_client28.expectString,
        AutomationExecutionStatus: import_smithy_client28.expectString,
        AutomationSubtype: import_smithy_client28.expectString,
        ChangeRequestName: import_smithy_client28.expectString,
        CurrentAction: import_smithy_client28.expectString,
        CurrentStepName: import_smithy_client28.expectString,
        DocumentName: import_smithy_client28.expectString,
        DocumentVersion: import_smithy_client28.expectString,
        ExecutedBy: import_smithy_client28.expectString,
        ExecutionEndTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "ExecutionEndTime"),
        ExecutionStartTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "ExecutionStartTime"),
        FailureMessage: import_smithy_client28.expectString,
        MaxConcurrency: import_smithy_client28.expectString,
        MaxErrors: import_smithy_client28.expectString,
        Mode: import_smithy_client28.expectString,
        OpsItemId: import_smithy_client28.expectString,
        Outputs: import_smithy_client28._json,
        Parameters: import_smithy_client28._json,
        ParentAutomationExecutionId: import_smithy_client28.expectString,
        ProgressCounters: import_smithy_client28._json,
        ResolvedTargets: import_smithy_client28._json,
        Runbooks: import_smithy_client28._json,
        ScheduledTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "ScheduledTime"),
        StepExecutions: /* @__PURE__ */ __name2((_3) => de_StepExecutionList(_3, context), "StepExecutions"),
        StepExecutionsTruncated: import_smithy_client28.expectBoolean,
        Target: import_smithy_client28.expectString,
        TargetLocations: import_smithy_client28._json,
        TargetLocationsURL: import_smithy_client28.expectString,
        TargetMaps: import_smithy_client28._json,
        TargetParameterName: import_smithy_client28.expectString,
        Targets: import_smithy_client28._json,
        TriggeredAlarms: import_smithy_client28._json,
        Variables: import_smithy_client28._json
      });
    }, "de_AutomationExecution");
    var de_AutomationExecutionMetadata = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        AlarmConfiguration: import_smithy_client28._json,
        AssociationId: import_smithy_client28.expectString,
        AutomationExecutionId: import_smithy_client28.expectString,
        AutomationExecutionStatus: import_smithy_client28.expectString,
        AutomationSubtype: import_smithy_client28.expectString,
        AutomationType: import_smithy_client28.expectString,
        ChangeRequestName: import_smithy_client28.expectString,
        CurrentAction: import_smithy_client28.expectString,
        CurrentStepName: import_smithy_client28.expectString,
        DocumentName: import_smithy_client28.expectString,
        DocumentVersion: import_smithy_client28.expectString,
        ExecutedBy: import_smithy_client28.expectString,
        ExecutionEndTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "ExecutionEndTime"),
        ExecutionStartTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "ExecutionStartTime"),
        FailureMessage: import_smithy_client28.expectString,
        LogFile: import_smithy_client28.expectString,
        MaxConcurrency: import_smithy_client28.expectString,
        MaxErrors: import_smithy_client28.expectString,
        Mode: import_smithy_client28.expectString,
        OpsItemId: import_smithy_client28.expectString,
        Outputs: import_smithy_client28._json,
        ParentAutomationExecutionId: import_smithy_client28.expectString,
        ResolvedTargets: import_smithy_client28._json,
        Runbooks: import_smithy_client28._json,
        ScheduledTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "ScheduledTime"),
        Target: import_smithy_client28.expectString,
        TargetLocationsURL: import_smithy_client28.expectString,
        TargetMaps: import_smithy_client28._json,
        TargetParameterName: import_smithy_client28.expectString,
        Targets: import_smithy_client28._json,
        TriggeredAlarms: import_smithy_client28._json
      });
    }, "de_AutomationExecutionMetadata");
    var de_AutomationExecutionMetadataList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_AutomationExecutionMetadata(entry, context);
      });
      return retVal;
    }, "de_AutomationExecutionMetadataList");
    var de_Command = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        AlarmConfiguration: import_smithy_client28._json,
        CloudWatchOutputConfig: import_smithy_client28._json,
        CommandId: import_smithy_client28.expectString,
        Comment: import_smithy_client28.expectString,
        CompletedCount: import_smithy_client28.expectInt32,
        DeliveryTimedOutCount: import_smithy_client28.expectInt32,
        DocumentName: import_smithy_client28.expectString,
        DocumentVersion: import_smithy_client28.expectString,
        ErrorCount: import_smithy_client28.expectInt32,
        ExpiresAfter: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "ExpiresAfter"),
        InstanceIds: import_smithy_client28._json,
        MaxConcurrency: import_smithy_client28.expectString,
        MaxErrors: import_smithy_client28.expectString,
        NotificationConfig: import_smithy_client28._json,
        OutputS3BucketName: import_smithy_client28.expectString,
        OutputS3KeyPrefix: import_smithy_client28.expectString,
        OutputS3Region: import_smithy_client28.expectString,
        Parameters: import_smithy_client28._json,
        RequestedDateTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "RequestedDateTime"),
        ServiceRole: import_smithy_client28.expectString,
        Status: import_smithy_client28.expectString,
        StatusDetails: import_smithy_client28.expectString,
        TargetCount: import_smithy_client28.expectInt32,
        Targets: import_smithy_client28._json,
        TimeoutSeconds: import_smithy_client28.expectInt32,
        TriggeredAlarms: import_smithy_client28._json
      });
    }, "de_Command");
    var de_CommandInvocation = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        CloudWatchOutputConfig: import_smithy_client28._json,
        CommandId: import_smithy_client28.expectString,
        CommandPlugins: /* @__PURE__ */ __name2((_3) => de_CommandPluginList(_3, context), "CommandPlugins"),
        Comment: import_smithy_client28.expectString,
        DocumentName: import_smithy_client28.expectString,
        DocumentVersion: import_smithy_client28.expectString,
        InstanceId: import_smithy_client28.expectString,
        InstanceName: import_smithy_client28.expectString,
        NotificationConfig: import_smithy_client28._json,
        RequestedDateTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "RequestedDateTime"),
        ServiceRole: import_smithy_client28.expectString,
        StandardErrorUrl: import_smithy_client28.expectString,
        StandardOutputUrl: import_smithy_client28.expectString,
        Status: import_smithy_client28.expectString,
        StatusDetails: import_smithy_client28.expectString,
        TraceOutput: import_smithy_client28.expectString
      });
    }, "de_CommandInvocation");
    var de_CommandInvocationList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_CommandInvocation(entry, context);
      });
      return retVal;
    }, "de_CommandInvocationList");
    var de_CommandList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Command(entry, context);
      });
      return retVal;
    }, "de_CommandList");
    var de_CommandPlugin = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        Name: import_smithy_client28.expectString,
        Output: import_smithy_client28.expectString,
        OutputS3BucketName: import_smithy_client28.expectString,
        OutputS3KeyPrefix: import_smithy_client28.expectString,
        OutputS3Region: import_smithy_client28.expectString,
        ResponseCode: import_smithy_client28.expectInt32,
        ResponseFinishDateTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "ResponseFinishDateTime"),
        ResponseStartDateTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "ResponseStartDateTime"),
        StandardErrorUrl: import_smithy_client28.expectString,
        StandardOutputUrl: import_smithy_client28.expectString,
        Status: import_smithy_client28.expectString,
        StatusDetails: import_smithy_client28.expectString
      });
    }, "de_CommandPlugin");
    var de_CommandPluginList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_CommandPlugin(entry, context);
      });
      return retVal;
    }, "de_CommandPluginList");
    var de_ComplianceExecutionSummary = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        ExecutionId: import_smithy_client28.expectString,
        ExecutionTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "ExecutionTime"),
        ExecutionType: import_smithy_client28.expectString
      });
    }, "de_ComplianceExecutionSummary");
    var de_ComplianceItem = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        ComplianceType: import_smithy_client28.expectString,
        Details: import_smithy_client28._json,
        ExecutionSummary: /* @__PURE__ */ __name2((_3) => de_ComplianceExecutionSummary(_3, context), "ExecutionSummary"),
        Id: import_smithy_client28.expectString,
        ResourceId: import_smithy_client28.expectString,
        ResourceType: import_smithy_client28.expectString,
        Severity: import_smithy_client28.expectString,
        Status: import_smithy_client28.expectString,
        Title: import_smithy_client28.expectString
      });
    }, "de_ComplianceItem");
    var de_ComplianceItemList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ComplianceItem(entry, context);
      });
      return retVal;
    }, "de_ComplianceItemList");
    var de_CreateAssociationBatchResult = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        Failed: import_smithy_client28._json,
        Successful: /* @__PURE__ */ __name2((_3) => de_AssociationDescriptionList(_3, context), "Successful")
      });
    }, "de_CreateAssociationBatchResult");
    var de_CreateAssociationResult = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        AssociationDescription: /* @__PURE__ */ __name2((_3) => de_AssociationDescription(_3, context), "AssociationDescription")
      });
    }, "de_CreateAssociationResult");
    var de_CreateDocumentResult = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        DocumentDescription: /* @__PURE__ */ __name2((_3) => de_DocumentDescription(_3, context), "DocumentDescription")
      });
    }, "de_CreateDocumentResult");
    var de_Credentials2 = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        AccessKeyId: import_smithy_client28.expectString,
        ExpirationTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "ExpirationTime"),
        SecretAccessKey: import_smithy_client28.expectString,
        SessionToken: import_smithy_client28.expectString
      });
    }, "de_Credentials");
    var de_DescribeActivationsResult = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        ActivationList: /* @__PURE__ */ __name2((_3) => de_ActivationList(_3, context), "ActivationList"),
        NextToken: import_smithy_client28.expectString
      });
    }, "de_DescribeActivationsResult");
    var de_DescribeAssociationExecutionsResult = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        AssociationExecutions: /* @__PURE__ */ __name2((_3) => de_AssociationExecutionsList(_3, context), "AssociationExecutions"),
        NextToken: import_smithy_client28.expectString
      });
    }, "de_DescribeAssociationExecutionsResult");
    var de_DescribeAssociationExecutionTargetsResult = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        AssociationExecutionTargets: /* @__PURE__ */ __name2((_3) => de_AssociationExecutionTargetsList(_3, context), "AssociationExecutionTargets"),
        NextToken: import_smithy_client28.expectString
      });
    }, "de_DescribeAssociationExecutionTargetsResult");
    var de_DescribeAssociationResult = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        AssociationDescription: /* @__PURE__ */ __name2((_3) => de_AssociationDescription(_3, context), "AssociationDescription")
      });
    }, "de_DescribeAssociationResult");
    var de_DescribeAutomationExecutionsResult = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        AutomationExecutionMetadataList: /* @__PURE__ */ __name2((_3) => de_AutomationExecutionMetadataList(_3, context), "AutomationExecutionMetadataList"),
        NextToken: import_smithy_client28.expectString
      });
    }, "de_DescribeAutomationExecutionsResult");
    var de_DescribeAutomationStepExecutionsResult = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        NextToken: import_smithy_client28.expectString,
        StepExecutions: /* @__PURE__ */ __name2((_3) => de_StepExecutionList(_3, context), "StepExecutions")
      });
    }, "de_DescribeAutomationStepExecutionsResult");
    var de_DescribeAvailablePatchesResult = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        NextToken: import_smithy_client28.expectString,
        Patches: /* @__PURE__ */ __name2((_3) => de_PatchList(_3, context), "Patches")
      });
    }, "de_DescribeAvailablePatchesResult");
    var de_DescribeDocumentResult = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        Document: /* @__PURE__ */ __name2((_3) => de_DocumentDescription(_3, context), "Document")
      });
    }, "de_DescribeDocumentResult");
    var de_DescribeEffectivePatchesForPatchBaselineResult = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        EffectivePatches: /* @__PURE__ */ __name2((_3) => de_EffectivePatchList(_3, context), "EffectivePatches"),
        NextToken: import_smithy_client28.expectString
      });
    }, "de_DescribeEffectivePatchesForPatchBaselineResult");
    var de_DescribeInstanceAssociationsStatusResult = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        InstanceAssociationStatusInfos: /* @__PURE__ */ __name2((_3) => de_InstanceAssociationStatusInfos(_3, context), "InstanceAssociationStatusInfos"),
        NextToken: import_smithy_client28.expectString
      });
    }, "de_DescribeInstanceAssociationsStatusResult");
    var de_DescribeInstanceInformationResult = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        InstanceInformationList: /* @__PURE__ */ __name2((_3) => de_InstanceInformationList(_3, context), "InstanceInformationList"),
        NextToken: import_smithy_client28.expectString
      });
    }, "de_DescribeInstanceInformationResult");
    var de_DescribeInstancePatchesResult = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        NextToken: import_smithy_client28.expectString,
        Patches: /* @__PURE__ */ __name2((_3) => de_PatchComplianceDataList(_3, context), "Patches")
      });
    }, "de_DescribeInstancePatchesResult");
    var de_DescribeInstancePatchStatesForPatchGroupResult = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        InstancePatchStates: /* @__PURE__ */ __name2((_3) => de_InstancePatchStatesList(_3, context), "InstancePatchStates"),
        NextToken: import_smithy_client28.expectString
      });
    }, "de_DescribeInstancePatchStatesForPatchGroupResult");
    var de_DescribeInstancePatchStatesResult = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        InstancePatchStates: /* @__PURE__ */ __name2((_3) => de_InstancePatchStateList(_3, context), "InstancePatchStates"),
        NextToken: import_smithy_client28.expectString
      });
    }, "de_DescribeInstancePatchStatesResult");
    var de_DescribeInstancePropertiesResult = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        InstanceProperties: /* @__PURE__ */ __name2((_3) => de_InstanceProperties(_3, context), "InstanceProperties"),
        NextToken: import_smithy_client28.expectString
      });
    }, "de_DescribeInstancePropertiesResult");
    var de_DescribeInventoryDeletionsResult = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        InventoryDeletions: /* @__PURE__ */ __name2((_3) => de_InventoryDeletionsList(_3, context), "InventoryDeletions"),
        NextToken: import_smithy_client28.expectString
      });
    }, "de_DescribeInventoryDeletionsResult");
    var de_DescribeMaintenanceWindowExecutionsResult = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        NextToken: import_smithy_client28.expectString,
        WindowExecutions: /* @__PURE__ */ __name2((_3) => de_MaintenanceWindowExecutionList(_3, context), "WindowExecutions")
      });
    }, "de_DescribeMaintenanceWindowExecutionsResult");
    var de_DescribeMaintenanceWindowExecutionTaskInvocationsResult = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        NextToken: import_smithy_client28.expectString,
        WindowExecutionTaskInvocationIdentities: /* @__PURE__ */ __name2((_3) => de_MaintenanceWindowExecutionTaskInvocationIdentityList(_3, context), "WindowExecutionTaskInvocationIdentities")
      });
    }, "de_DescribeMaintenanceWindowExecutionTaskInvocationsResult");
    var de_DescribeMaintenanceWindowExecutionTasksResult = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        NextToken: import_smithy_client28.expectString,
        WindowExecutionTaskIdentities: /* @__PURE__ */ __name2((_3) => de_MaintenanceWindowExecutionTaskIdentityList(_3, context), "WindowExecutionTaskIdentities")
      });
    }, "de_DescribeMaintenanceWindowExecutionTasksResult");
    var de_DescribeOpsItemsResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        NextToken: import_smithy_client28.expectString,
        OpsItemSummaries: /* @__PURE__ */ __name2((_3) => de_OpsItemSummaries(_3, context), "OpsItemSummaries")
      });
    }, "de_DescribeOpsItemsResponse");
    var de_DescribeParametersResult = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        NextToken: import_smithy_client28.expectString,
        Parameters: /* @__PURE__ */ __name2((_3) => de_ParameterMetadataList(_3, context), "Parameters")
      });
    }, "de_DescribeParametersResult");
    var de_DescribeSessionsResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        NextToken: import_smithy_client28.expectString,
        Sessions: /* @__PURE__ */ __name2((_3) => de_SessionList(_3, context), "Sessions")
      });
    }, "de_DescribeSessionsResponse");
    var de_DocumentDescription = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        ApprovedVersion: import_smithy_client28.expectString,
        AttachmentsInformation: import_smithy_client28._json,
        Author: import_smithy_client28.expectString,
        Category: import_smithy_client28._json,
        CategoryEnum: import_smithy_client28._json,
        CreatedDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "CreatedDate"),
        DefaultVersion: import_smithy_client28.expectString,
        Description: import_smithy_client28.expectString,
        DisplayName: import_smithy_client28.expectString,
        DocumentFormat: import_smithy_client28.expectString,
        DocumentType: import_smithy_client28.expectString,
        DocumentVersion: import_smithy_client28.expectString,
        Hash: import_smithy_client28.expectString,
        HashType: import_smithy_client28.expectString,
        LatestVersion: import_smithy_client28.expectString,
        Name: import_smithy_client28.expectString,
        Owner: import_smithy_client28.expectString,
        Parameters: import_smithy_client28._json,
        PendingReviewVersion: import_smithy_client28.expectString,
        PlatformTypes: import_smithy_client28._json,
        Requires: import_smithy_client28._json,
        ReviewInformation: /* @__PURE__ */ __name2((_3) => de_ReviewInformationList(_3, context), "ReviewInformation"),
        ReviewStatus: import_smithy_client28.expectString,
        SchemaVersion: import_smithy_client28.expectString,
        Sha1: import_smithy_client28.expectString,
        Status: import_smithy_client28.expectString,
        StatusInformation: import_smithy_client28.expectString,
        Tags: import_smithy_client28._json,
        TargetType: import_smithy_client28.expectString,
        VersionName: import_smithy_client28.expectString
      });
    }, "de_DocumentDescription");
    var de_DocumentIdentifier = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        Author: import_smithy_client28.expectString,
        CreatedDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "CreatedDate"),
        DisplayName: import_smithy_client28.expectString,
        DocumentFormat: import_smithy_client28.expectString,
        DocumentType: import_smithy_client28.expectString,
        DocumentVersion: import_smithy_client28.expectString,
        Name: import_smithy_client28.expectString,
        Owner: import_smithy_client28.expectString,
        PlatformTypes: import_smithy_client28._json,
        Requires: import_smithy_client28._json,
        ReviewStatus: import_smithy_client28.expectString,
        SchemaVersion: import_smithy_client28.expectString,
        Tags: import_smithy_client28._json,
        TargetType: import_smithy_client28.expectString,
        VersionName: import_smithy_client28.expectString
      });
    }, "de_DocumentIdentifier");
    var de_DocumentIdentifierList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_DocumentIdentifier(entry, context);
      });
      return retVal;
    }, "de_DocumentIdentifierList");
    var de_DocumentMetadataResponseInfo = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        ReviewerResponse: /* @__PURE__ */ __name2((_3) => de_DocumentReviewerResponseList(_3, context), "ReviewerResponse")
      });
    }, "de_DocumentMetadataResponseInfo");
    var de_DocumentReviewerResponseList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_DocumentReviewerResponseSource(entry, context);
      });
      return retVal;
    }, "de_DocumentReviewerResponseList");
    var de_DocumentReviewerResponseSource = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        Comment: import_smithy_client28._json,
        CreateTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "CreateTime"),
        ReviewStatus: import_smithy_client28.expectString,
        Reviewer: import_smithy_client28.expectString,
        UpdatedTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "UpdatedTime")
      });
    }, "de_DocumentReviewerResponseSource");
    var de_DocumentVersionInfo = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        CreatedDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "CreatedDate"),
        DisplayName: import_smithy_client28.expectString,
        DocumentFormat: import_smithy_client28.expectString,
        DocumentVersion: import_smithy_client28.expectString,
        IsDefaultVersion: import_smithy_client28.expectBoolean,
        Name: import_smithy_client28.expectString,
        ReviewStatus: import_smithy_client28.expectString,
        Status: import_smithy_client28.expectString,
        StatusInformation: import_smithy_client28.expectString,
        VersionName: import_smithy_client28.expectString
      });
    }, "de_DocumentVersionInfo");
    var de_DocumentVersionList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_DocumentVersionInfo(entry, context);
      });
      return retVal;
    }, "de_DocumentVersionList");
    var de_EffectivePatch = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        Patch: /* @__PURE__ */ __name2((_3) => de_Patch(_3, context), "Patch"),
        PatchStatus: /* @__PURE__ */ __name2((_3) => de_PatchStatus(_3, context), "PatchStatus")
      });
    }, "de_EffectivePatch");
    var de_EffectivePatchList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_EffectivePatch(entry, context);
      });
      return retVal;
    }, "de_EffectivePatchList");
    var de_GetAccessTokenResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        AccessRequestStatus: import_smithy_client28.expectString,
        Credentials: /* @__PURE__ */ __name2((_3) => de_Credentials2(_3, context), "Credentials")
      });
    }, "de_GetAccessTokenResponse");
    var de_GetAutomationExecutionResult = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        AutomationExecution: /* @__PURE__ */ __name2((_3) => de_AutomationExecution(_3, context), "AutomationExecution")
      });
    }, "de_GetAutomationExecutionResult");
    var de_GetDocumentResult = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        AttachmentsContent: import_smithy_client28._json,
        Content: import_smithy_client28.expectString,
        CreatedDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "CreatedDate"),
        DisplayName: import_smithy_client28.expectString,
        DocumentFormat: import_smithy_client28.expectString,
        DocumentType: import_smithy_client28.expectString,
        DocumentVersion: import_smithy_client28.expectString,
        Name: import_smithy_client28.expectString,
        Requires: import_smithy_client28._json,
        ReviewStatus: import_smithy_client28.expectString,
        Status: import_smithy_client28.expectString,
        StatusInformation: import_smithy_client28.expectString,
        VersionName: import_smithy_client28.expectString
      });
    }, "de_GetDocumentResult");
    var de_GetExecutionPreviewResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        EndedAt: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "EndedAt"),
        ExecutionPreview: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)((0, import_core22.awsExpectUnion)(_3)), "ExecutionPreview"),
        ExecutionPreviewId: import_smithy_client28.expectString,
        Status: import_smithy_client28.expectString,
        StatusMessage: import_smithy_client28.expectString
      });
    }, "de_GetExecutionPreviewResponse");
    var de_GetMaintenanceWindowExecutionResult = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        EndTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "EndTime"),
        StartTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "StartTime"),
        Status: import_smithy_client28.expectString,
        StatusDetails: import_smithy_client28.expectString,
        TaskIds: import_smithy_client28._json,
        WindowExecutionId: import_smithy_client28.expectString
      });
    }, "de_GetMaintenanceWindowExecutionResult");
    var de_GetMaintenanceWindowExecutionTaskInvocationResult = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        EndTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "EndTime"),
        ExecutionId: import_smithy_client28.expectString,
        InvocationId: import_smithy_client28.expectString,
        OwnerInformation: import_smithy_client28.expectString,
        Parameters: import_smithy_client28.expectString,
        StartTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "StartTime"),
        Status: import_smithy_client28.expectString,
        StatusDetails: import_smithy_client28.expectString,
        TaskExecutionId: import_smithy_client28.expectString,
        TaskType: import_smithy_client28.expectString,
        WindowExecutionId: import_smithy_client28.expectString,
        WindowTargetId: import_smithy_client28.expectString
      });
    }, "de_GetMaintenanceWindowExecutionTaskInvocationResult");
    var de_GetMaintenanceWindowExecutionTaskResult = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        AlarmConfiguration: import_smithy_client28._json,
        EndTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "EndTime"),
        MaxConcurrency: import_smithy_client28.expectString,
        MaxErrors: import_smithy_client28.expectString,
        Priority: import_smithy_client28.expectInt32,
        ServiceRole: import_smithy_client28.expectString,
        StartTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "StartTime"),
        Status: import_smithy_client28.expectString,
        StatusDetails: import_smithy_client28.expectString,
        TaskArn: import_smithy_client28.expectString,
        TaskExecutionId: import_smithy_client28.expectString,
        TaskParameters: import_smithy_client28._json,
        TriggeredAlarms: import_smithy_client28._json,
        Type: import_smithy_client28.expectString,
        WindowExecutionId: import_smithy_client28.expectString
      });
    }, "de_GetMaintenanceWindowExecutionTaskResult");
    var de_GetMaintenanceWindowResult = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        AllowUnassociatedTargets: import_smithy_client28.expectBoolean,
        CreatedDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "CreatedDate"),
        Cutoff: import_smithy_client28.expectInt32,
        Description: import_smithy_client28.expectString,
        Duration: import_smithy_client28.expectInt32,
        Enabled: import_smithy_client28.expectBoolean,
        EndDate: import_smithy_client28.expectString,
        ModifiedDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "ModifiedDate"),
        Name: import_smithy_client28.expectString,
        NextExecutionTime: import_smithy_client28.expectString,
        Schedule: import_smithy_client28.expectString,
        ScheduleOffset: import_smithy_client28.expectInt32,
        ScheduleTimezone: import_smithy_client28.expectString,
        StartDate: import_smithy_client28.expectString,
        WindowId: import_smithy_client28.expectString
      });
    }, "de_GetMaintenanceWindowResult");
    var de_GetMaintenanceWindowTaskResult = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        AlarmConfiguration: import_smithy_client28._json,
        CutoffBehavior: import_smithy_client28.expectString,
        Description: import_smithy_client28.expectString,
        LoggingInfo: import_smithy_client28._json,
        MaxConcurrency: import_smithy_client28.expectString,
        MaxErrors: import_smithy_client28.expectString,
        Name: import_smithy_client28.expectString,
        Priority: import_smithy_client28.expectInt32,
        ServiceRoleArn: import_smithy_client28.expectString,
        Targets: import_smithy_client28._json,
        TaskArn: import_smithy_client28.expectString,
        TaskInvocationParameters: /* @__PURE__ */ __name2((_3) => de_MaintenanceWindowTaskInvocationParameters(_3, context), "TaskInvocationParameters"),
        TaskParameters: import_smithy_client28._json,
        TaskType: import_smithy_client28.expectString,
        WindowId: import_smithy_client28.expectString,
        WindowTaskId: import_smithy_client28.expectString
      });
    }, "de_GetMaintenanceWindowTaskResult");
    var de_GetOpsItemResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        OpsItem: /* @__PURE__ */ __name2((_3) => de_OpsItem(_3, context), "OpsItem")
      });
    }, "de_GetOpsItemResponse");
    var de_GetParameterHistoryResult = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        NextToken: import_smithy_client28.expectString,
        Parameters: /* @__PURE__ */ __name2((_3) => de_ParameterHistoryList(_3, context), "Parameters")
      });
    }, "de_GetParameterHistoryResult");
    var de_GetParameterResult = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        Parameter: /* @__PURE__ */ __name2((_3) => de_Parameter(_3, context), "Parameter")
      });
    }, "de_GetParameterResult");
    var de_GetParametersByPathResult = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        NextToken: import_smithy_client28.expectString,
        Parameters: /* @__PURE__ */ __name2((_3) => de_ParameterList(_3, context), "Parameters")
      });
    }, "de_GetParametersByPathResult");
    var de_GetParametersResult = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        InvalidParameters: import_smithy_client28._json,
        Parameters: /* @__PURE__ */ __name2((_3) => de_ParameterList(_3, context), "Parameters")
      });
    }, "de_GetParametersResult");
    var de_GetPatchBaselineResult = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        ApprovalRules: import_smithy_client28._json,
        ApprovedPatches: import_smithy_client28._json,
        ApprovedPatchesComplianceLevel: import_smithy_client28.expectString,
        ApprovedPatchesEnableNonSecurity: import_smithy_client28.expectBoolean,
        AvailableSecurityUpdatesComplianceStatus: import_smithy_client28.expectString,
        BaselineId: import_smithy_client28.expectString,
        CreatedDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "CreatedDate"),
        Description: import_smithy_client28.expectString,
        GlobalFilters: import_smithy_client28._json,
        ModifiedDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "ModifiedDate"),
        Name: import_smithy_client28.expectString,
        OperatingSystem: import_smithy_client28.expectString,
        PatchGroups: import_smithy_client28._json,
        RejectedPatches: import_smithy_client28._json,
        RejectedPatchesAction: import_smithy_client28.expectString,
        Sources: import_smithy_client28._json
      });
    }, "de_GetPatchBaselineResult");
    var de_GetServiceSettingResult = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        ServiceSetting: /* @__PURE__ */ __name2((_3) => de_ServiceSetting(_3, context), "ServiceSetting")
      });
    }, "de_GetServiceSettingResult");
    var de_InstanceAssociationStatusInfo = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        AssociationId: import_smithy_client28.expectString,
        AssociationName: import_smithy_client28.expectString,
        AssociationVersion: import_smithy_client28.expectString,
        DetailedStatus: import_smithy_client28.expectString,
        DocumentVersion: import_smithy_client28.expectString,
        ErrorCode: import_smithy_client28.expectString,
        ExecutionDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "ExecutionDate"),
        ExecutionSummary: import_smithy_client28.expectString,
        InstanceId: import_smithy_client28.expectString,
        Name: import_smithy_client28.expectString,
        OutputUrl: import_smithy_client28._json,
        Status: import_smithy_client28.expectString
      });
    }, "de_InstanceAssociationStatusInfo");
    var de_InstanceAssociationStatusInfos = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_InstanceAssociationStatusInfo(entry, context);
      });
      return retVal;
    }, "de_InstanceAssociationStatusInfos");
    var de_InstanceInformation = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        ActivationId: import_smithy_client28.expectString,
        AgentVersion: import_smithy_client28.expectString,
        AssociationOverview: import_smithy_client28._json,
        AssociationStatus: import_smithy_client28.expectString,
        ComputerName: import_smithy_client28.expectString,
        IPAddress: import_smithy_client28.expectString,
        IamRole: import_smithy_client28.expectString,
        InstanceId: import_smithy_client28.expectString,
        IsLatestVersion: import_smithy_client28.expectBoolean,
        LastAssociationExecutionDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "LastAssociationExecutionDate"),
        LastPingDateTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "LastPingDateTime"),
        LastSuccessfulAssociationExecutionDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "LastSuccessfulAssociationExecutionDate"),
        Name: import_smithy_client28.expectString,
        PingStatus: import_smithy_client28.expectString,
        PlatformName: import_smithy_client28.expectString,
        PlatformType: import_smithy_client28.expectString,
        PlatformVersion: import_smithy_client28.expectString,
        RegistrationDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "RegistrationDate"),
        ResourceType: import_smithy_client28.expectString,
        SourceId: import_smithy_client28.expectString,
        SourceType: import_smithy_client28.expectString
      });
    }, "de_InstanceInformation");
    var de_InstanceInformationList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_InstanceInformation(entry, context);
      });
      return retVal;
    }, "de_InstanceInformationList");
    var de_InstancePatchState = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        AvailableSecurityUpdateCount: import_smithy_client28.expectInt32,
        BaselineId: import_smithy_client28.expectString,
        CriticalNonCompliantCount: import_smithy_client28.expectInt32,
        FailedCount: import_smithy_client28.expectInt32,
        InstallOverrideList: import_smithy_client28.expectString,
        InstalledCount: import_smithy_client28.expectInt32,
        InstalledOtherCount: import_smithy_client28.expectInt32,
        InstalledPendingRebootCount: import_smithy_client28.expectInt32,
        InstalledRejectedCount: import_smithy_client28.expectInt32,
        InstanceId: import_smithy_client28.expectString,
        LastNoRebootInstallOperationTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "LastNoRebootInstallOperationTime"),
        MissingCount: import_smithy_client28.expectInt32,
        NotApplicableCount: import_smithy_client28.expectInt32,
        Operation: import_smithy_client28.expectString,
        OperationEndTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "OperationEndTime"),
        OperationStartTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "OperationStartTime"),
        OtherNonCompliantCount: import_smithy_client28.expectInt32,
        OwnerInformation: import_smithy_client28.expectString,
        PatchGroup: import_smithy_client28.expectString,
        RebootOption: import_smithy_client28.expectString,
        SecurityNonCompliantCount: import_smithy_client28.expectInt32,
        SnapshotId: import_smithy_client28.expectString,
        UnreportedNotApplicableCount: import_smithy_client28.expectInt32
      });
    }, "de_InstancePatchState");
    var de_InstancePatchStateList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_InstancePatchState(entry, context);
      });
      return retVal;
    }, "de_InstancePatchStateList");
    var de_InstancePatchStatesList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_InstancePatchState(entry, context);
      });
      return retVal;
    }, "de_InstancePatchStatesList");
    var de_InstanceProperties = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_InstanceProperty(entry, context);
      });
      return retVal;
    }, "de_InstanceProperties");
    var de_InstanceProperty = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        ActivationId: import_smithy_client28.expectString,
        AgentVersion: import_smithy_client28.expectString,
        Architecture: import_smithy_client28.expectString,
        AssociationOverview: import_smithy_client28._json,
        AssociationStatus: import_smithy_client28.expectString,
        ComputerName: import_smithy_client28.expectString,
        IPAddress: import_smithy_client28.expectString,
        IamRole: import_smithy_client28.expectString,
        InstanceId: import_smithy_client28.expectString,
        InstanceRole: import_smithy_client28.expectString,
        InstanceState: import_smithy_client28.expectString,
        InstanceType: import_smithy_client28.expectString,
        KeyName: import_smithy_client28.expectString,
        LastAssociationExecutionDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "LastAssociationExecutionDate"),
        LastPingDateTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "LastPingDateTime"),
        LastSuccessfulAssociationExecutionDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "LastSuccessfulAssociationExecutionDate"),
        LaunchTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "LaunchTime"),
        Name: import_smithy_client28.expectString,
        PingStatus: import_smithy_client28.expectString,
        PlatformName: import_smithy_client28.expectString,
        PlatformType: import_smithy_client28.expectString,
        PlatformVersion: import_smithy_client28.expectString,
        RegistrationDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "RegistrationDate"),
        ResourceType: import_smithy_client28.expectString,
        SourceId: import_smithy_client28.expectString,
        SourceType: import_smithy_client28.expectString
      });
    }, "de_InstanceProperty");
    var de_InventoryDeletionsList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_InventoryDeletionStatusItem(entry, context);
      });
      return retVal;
    }, "de_InventoryDeletionsList");
    var de_InventoryDeletionStatusItem = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        DeletionId: import_smithy_client28.expectString,
        DeletionStartTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "DeletionStartTime"),
        DeletionSummary: import_smithy_client28._json,
        LastStatus: import_smithy_client28.expectString,
        LastStatusMessage: import_smithy_client28.expectString,
        LastStatusUpdateTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "LastStatusUpdateTime"),
        TypeName: import_smithy_client28.expectString
      });
    }, "de_InventoryDeletionStatusItem");
    var de_ListAssociationsResult = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        Associations: /* @__PURE__ */ __name2((_3) => de_AssociationList(_3, context), "Associations"),
        NextToken: import_smithy_client28.expectString
      });
    }, "de_ListAssociationsResult");
    var de_ListAssociationVersionsResult = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        AssociationVersions: /* @__PURE__ */ __name2((_3) => de_AssociationVersionList(_3, context), "AssociationVersions"),
        NextToken: import_smithy_client28.expectString
      });
    }, "de_ListAssociationVersionsResult");
    var de_ListCommandInvocationsResult = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        CommandInvocations: /* @__PURE__ */ __name2((_3) => de_CommandInvocationList(_3, context), "CommandInvocations"),
        NextToken: import_smithy_client28.expectString
      });
    }, "de_ListCommandInvocationsResult");
    var de_ListCommandsResult = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        Commands: /* @__PURE__ */ __name2((_3) => de_CommandList(_3, context), "Commands"),
        NextToken: import_smithy_client28.expectString
      });
    }, "de_ListCommandsResult");
    var de_ListComplianceItemsResult = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        ComplianceItems: /* @__PURE__ */ __name2((_3) => de_ComplianceItemList(_3, context), "ComplianceItems"),
        NextToken: import_smithy_client28.expectString
      });
    }, "de_ListComplianceItemsResult");
    var de_ListDocumentMetadataHistoryResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        Author: import_smithy_client28.expectString,
        DocumentVersion: import_smithy_client28.expectString,
        Metadata: /* @__PURE__ */ __name2((_3) => de_DocumentMetadataResponseInfo(_3, context), "Metadata"),
        Name: import_smithy_client28.expectString,
        NextToken: import_smithy_client28.expectString
      });
    }, "de_ListDocumentMetadataHistoryResponse");
    var de_ListDocumentsResult = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        DocumentIdentifiers: /* @__PURE__ */ __name2((_3) => de_DocumentIdentifierList(_3, context), "DocumentIdentifiers"),
        NextToken: import_smithy_client28.expectString
      });
    }, "de_ListDocumentsResult");
    var de_ListDocumentVersionsResult = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        DocumentVersions: /* @__PURE__ */ __name2((_3) => de_DocumentVersionList(_3, context), "DocumentVersions"),
        NextToken: import_smithy_client28.expectString
      });
    }, "de_ListDocumentVersionsResult");
    var de_ListNodesResult = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        NextToken: import_smithy_client28.expectString,
        Nodes: /* @__PURE__ */ __name2((_3) => de_NodeList(_3, context), "Nodes")
      });
    }, "de_ListNodesResult");
    var de_ListOpsItemEventsResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        NextToken: import_smithy_client28.expectString,
        Summaries: /* @__PURE__ */ __name2((_3) => de_OpsItemEventSummaries(_3, context), "Summaries")
      });
    }, "de_ListOpsItemEventsResponse");
    var de_ListOpsItemRelatedItemsResponse = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        NextToken: import_smithy_client28.expectString,
        Summaries: /* @__PURE__ */ __name2((_3) => de_OpsItemRelatedItemSummaries(_3, context), "Summaries")
      });
    }, "de_ListOpsItemRelatedItemsResponse");
    var de_ListOpsMetadataResult = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        NextToken: import_smithy_client28.expectString,
        OpsMetadataList: /* @__PURE__ */ __name2((_3) => de_OpsMetadataList(_3, context), "OpsMetadataList")
      });
    }, "de_ListOpsMetadataResult");
    var de_ListResourceComplianceSummariesResult = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        NextToken: import_smithy_client28.expectString,
        ResourceComplianceSummaryItems: /* @__PURE__ */ __name2((_3) => de_ResourceComplianceSummaryItemList(_3, context), "ResourceComplianceSummaryItems")
      });
    }, "de_ListResourceComplianceSummariesResult");
    var de_ListResourceDataSyncResult = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        NextToken: import_smithy_client28.expectString,
        ResourceDataSyncItems: /* @__PURE__ */ __name2((_3) => de_ResourceDataSyncItemList(_3, context), "ResourceDataSyncItems")
      });
    }, "de_ListResourceDataSyncResult");
    var de_MaintenanceWindowExecution = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        EndTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "EndTime"),
        StartTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "StartTime"),
        Status: import_smithy_client28.expectString,
        StatusDetails: import_smithy_client28.expectString,
        WindowExecutionId: import_smithy_client28.expectString,
        WindowId: import_smithy_client28.expectString
      });
    }, "de_MaintenanceWindowExecution");
    var de_MaintenanceWindowExecutionList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_MaintenanceWindowExecution(entry, context);
      });
      return retVal;
    }, "de_MaintenanceWindowExecutionList");
    var de_MaintenanceWindowExecutionTaskIdentity = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        AlarmConfiguration: import_smithy_client28._json,
        EndTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "EndTime"),
        StartTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "StartTime"),
        Status: import_smithy_client28.expectString,
        StatusDetails: import_smithy_client28.expectString,
        TaskArn: import_smithy_client28.expectString,
        TaskExecutionId: import_smithy_client28.expectString,
        TaskType: import_smithy_client28.expectString,
        TriggeredAlarms: import_smithy_client28._json,
        WindowExecutionId: import_smithy_client28.expectString
      });
    }, "de_MaintenanceWindowExecutionTaskIdentity");
    var de_MaintenanceWindowExecutionTaskIdentityList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_MaintenanceWindowExecutionTaskIdentity(entry, context);
      });
      return retVal;
    }, "de_MaintenanceWindowExecutionTaskIdentityList");
    var de_MaintenanceWindowExecutionTaskInvocationIdentity = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        EndTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "EndTime"),
        ExecutionId: import_smithy_client28.expectString,
        InvocationId: import_smithy_client28.expectString,
        OwnerInformation: import_smithy_client28.expectString,
        Parameters: import_smithy_client28.expectString,
        StartTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "StartTime"),
        Status: import_smithy_client28.expectString,
        StatusDetails: import_smithy_client28.expectString,
        TaskExecutionId: import_smithy_client28.expectString,
        TaskType: import_smithy_client28.expectString,
        WindowExecutionId: import_smithy_client28.expectString,
        WindowTargetId: import_smithy_client28.expectString
      });
    }, "de_MaintenanceWindowExecutionTaskInvocationIdentity");
    var de_MaintenanceWindowExecutionTaskInvocationIdentityList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_MaintenanceWindowExecutionTaskInvocationIdentity(entry, context);
      });
      return retVal;
    }, "de_MaintenanceWindowExecutionTaskInvocationIdentityList");
    var de_MaintenanceWindowLambdaParameters = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        ClientContext: import_smithy_client28.expectString,
        Payload: context.base64Decoder,
        Qualifier: import_smithy_client28.expectString
      });
    }, "de_MaintenanceWindowLambdaParameters");
    var de_MaintenanceWindowTaskInvocationParameters = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        Automation: import_smithy_client28._json,
        Lambda: /* @__PURE__ */ __name2((_3) => de_MaintenanceWindowLambdaParameters(_3, context), "Lambda"),
        RunCommand: import_smithy_client28._json,
        StepFunctions: import_smithy_client28._json
      });
    }, "de_MaintenanceWindowTaskInvocationParameters");
    var de_Node = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        CaptureTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "CaptureTime"),
        Id: import_smithy_client28.expectString,
        NodeType: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28._json)((0, import_core22.awsExpectUnion)(_3)), "NodeType"),
        Owner: import_smithy_client28._json,
        Region: import_smithy_client28.expectString
      });
    }, "de_Node");
    var de_NodeList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Node(entry, context);
      });
      return retVal;
    }, "de_NodeList");
    var de_OpsItem = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        ActualEndTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "ActualEndTime"),
        ActualStartTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "ActualStartTime"),
        Category: import_smithy_client28.expectString,
        CreatedBy: import_smithy_client28.expectString,
        CreatedTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "CreatedTime"),
        Description: import_smithy_client28.expectString,
        LastModifiedBy: import_smithy_client28.expectString,
        LastModifiedTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "LastModifiedTime"),
        Notifications: import_smithy_client28._json,
        OperationalData: import_smithy_client28._json,
        OpsItemArn: import_smithy_client28.expectString,
        OpsItemId: import_smithy_client28.expectString,
        OpsItemType: import_smithy_client28.expectString,
        PlannedEndTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "PlannedEndTime"),
        PlannedStartTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "PlannedStartTime"),
        Priority: import_smithy_client28.expectInt32,
        RelatedOpsItems: import_smithy_client28._json,
        Severity: import_smithy_client28.expectString,
        Source: import_smithy_client28.expectString,
        Status: import_smithy_client28.expectString,
        Title: import_smithy_client28.expectString,
        Version: import_smithy_client28.expectString
      });
    }, "de_OpsItem");
    var de_OpsItemEventSummaries = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_OpsItemEventSummary(entry, context);
      });
      return retVal;
    }, "de_OpsItemEventSummaries");
    var de_OpsItemEventSummary = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        CreatedBy: import_smithy_client28._json,
        CreatedTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "CreatedTime"),
        Detail: import_smithy_client28.expectString,
        DetailType: import_smithy_client28.expectString,
        EventId: import_smithy_client28.expectString,
        OpsItemId: import_smithy_client28.expectString,
        Source: import_smithy_client28.expectString
      });
    }, "de_OpsItemEventSummary");
    var de_OpsItemRelatedItemSummaries = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_OpsItemRelatedItemSummary(entry, context);
      });
      return retVal;
    }, "de_OpsItemRelatedItemSummaries");
    var de_OpsItemRelatedItemSummary = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        AssociationId: import_smithy_client28.expectString,
        AssociationType: import_smithy_client28.expectString,
        CreatedBy: import_smithy_client28._json,
        CreatedTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "CreatedTime"),
        LastModifiedBy: import_smithy_client28._json,
        LastModifiedTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "LastModifiedTime"),
        OpsItemId: import_smithy_client28.expectString,
        ResourceType: import_smithy_client28.expectString,
        ResourceUri: import_smithy_client28.expectString
      });
    }, "de_OpsItemRelatedItemSummary");
    var de_OpsItemSummaries = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_OpsItemSummary(entry, context);
      });
      return retVal;
    }, "de_OpsItemSummaries");
    var de_OpsItemSummary = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        ActualEndTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "ActualEndTime"),
        ActualStartTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "ActualStartTime"),
        Category: import_smithy_client28.expectString,
        CreatedBy: import_smithy_client28.expectString,
        CreatedTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "CreatedTime"),
        LastModifiedBy: import_smithy_client28.expectString,
        LastModifiedTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "LastModifiedTime"),
        OperationalData: import_smithy_client28._json,
        OpsItemId: import_smithy_client28.expectString,
        OpsItemType: import_smithy_client28.expectString,
        PlannedEndTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "PlannedEndTime"),
        PlannedStartTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "PlannedStartTime"),
        Priority: import_smithy_client28.expectInt32,
        Severity: import_smithy_client28.expectString,
        Source: import_smithy_client28.expectString,
        Status: import_smithy_client28.expectString,
        Title: import_smithy_client28.expectString
      });
    }, "de_OpsItemSummary");
    var de_OpsMetadata = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        CreationDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "CreationDate"),
        LastModifiedDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "LastModifiedDate"),
        LastModifiedUser: import_smithy_client28.expectString,
        OpsMetadataArn: import_smithy_client28.expectString,
        ResourceId: import_smithy_client28.expectString
      });
    }, "de_OpsMetadata");
    var de_OpsMetadataList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_OpsMetadata(entry, context);
      });
      return retVal;
    }, "de_OpsMetadataList");
    var de_Parameter = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        ARN: import_smithy_client28.expectString,
        DataType: import_smithy_client28.expectString,
        LastModifiedDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "LastModifiedDate"),
        Name: import_smithy_client28.expectString,
        Selector: import_smithy_client28.expectString,
        SourceResult: import_smithy_client28.expectString,
        Type: import_smithy_client28.expectString,
        Value: import_smithy_client28.expectString,
        Version: import_smithy_client28.expectLong
      });
    }, "de_Parameter");
    var de_ParameterHistory = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        AllowedPattern: import_smithy_client28.expectString,
        DataType: import_smithy_client28.expectString,
        Description: import_smithy_client28.expectString,
        KeyId: import_smithy_client28.expectString,
        Labels: import_smithy_client28._json,
        LastModifiedDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "LastModifiedDate"),
        LastModifiedUser: import_smithy_client28.expectString,
        Name: import_smithy_client28.expectString,
        Policies: import_smithy_client28._json,
        Tier: import_smithy_client28.expectString,
        Type: import_smithy_client28.expectString,
        Value: import_smithy_client28.expectString,
        Version: import_smithy_client28.expectLong
      });
    }, "de_ParameterHistory");
    var de_ParameterHistoryList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ParameterHistory(entry, context);
      });
      return retVal;
    }, "de_ParameterHistoryList");
    var de_ParameterList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Parameter(entry, context);
      });
      return retVal;
    }, "de_ParameterList");
    var de_ParameterMetadata = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        ARN: import_smithy_client28.expectString,
        AllowedPattern: import_smithy_client28.expectString,
        DataType: import_smithy_client28.expectString,
        Description: import_smithy_client28.expectString,
        KeyId: import_smithy_client28.expectString,
        LastModifiedDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "LastModifiedDate"),
        LastModifiedUser: import_smithy_client28.expectString,
        Name: import_smithy_client28.expectString,
        Policies: import_smithy_client28._json,
        Tier: import_smithy_client28.expectString,
        Type: import_smithy_client28.expectString,
        Version: import_smithy_client28.expectLong
      });
    }, "de_ParameterMetadata");
    var de_ParameterMetadataList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ParameterMetadata(entry, context);
      });
      return retVal;
    }, "de_ParameterMetadataList");
    var de_Patch = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        AdvisoryIds: import_smithy_client28._json,
        Arch: import_smithy_client28.expectString,
        BugzillaIds: import_smithy_client28._json,
        CVEIds: import_smithy_client28._json,
        Classification: import_smithy_client28.expectString,
        ContentUrl: import_smithy_client28.expectString,
        Description: import_smithy_client28.expectString,
        Epoch: import_smithy_client28.expectInt32,
        Id: import_smithy_client28.expectString,
        KbNumber: import_smithy_client28.expectString,
        Language: import_smithy_client28.expectString,
        MsrcNumber: import_smithy_client28.expectString,
        MsrcSeverity: import_smithy_client28.expectString,
        Name: import_smithy_client28.expectString,
        Product: import_smithy_client28.expectString,
        ProductFamily: import_smithy_client28.expectString,
        Release: import_smithy_client28.expectString,
        ReleaseDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "ReleaseDate"),
        Repository: import_smithy_client28.expectString,
        Severity: import_smithy_client28.expectString,
        Title: import_smithy_client28.expectString,
        Vendor: import_smithy_client28.expectString,
        Version: import_smithy_client28.expectString
      });
    }, "de_Patch");
    var de_PatchComplianceData = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        CVEIds: import_smithy_client28.expectString,
        Classification: import_smithy_client28.expectString,
        InstalledTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "InstalledTime"),
        KBId: import_smithy_client28.expectString,
        Severity: import_smithy_client28.expectString,
        State: import_smithy_client28.expectString,
        Title: import_smithy_client28.expectString
      });
    }, "de_PatchComplianceData");
    var de_PatchComplianceDataList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_PatchComplianceData(entry, context);
      });
      return retVal;
    }, "de_PatchComplianceDataList");
    var de_PatchList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Patch(entry, context);
      });
      return retVal;
    }, "de_PatchList");
    var de_PatchStatus = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        ApprovalDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "ApprovalDate"),
        ComplianceLevel: import_smithy_client28.expectString,
        DeploymentStatus: import_smithy_client28.expectString
      });
    }, "de_PatchStatus");
    var de_ResetServiceSettingResult = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        ServiceSetting: /* @__PURE__ */ __name2((_3) => de_ServiceSetting(_3, context), "ServiceSetting")
      });
    }, "de_ResetServiceSettingResult");
    var de_ResourceComplianceSummaryItem = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        ComplianceType: import_smithy_client28.expectString,
        CompliantSummary: import_smithy_client28._json,
        ExecutionSummary: /* @__PURE__ */ __name2((_3) => de_ComplianceExecutionSummary(_3, context), "ExecutionSummary"),
        NonCompliantSummary: import_smithy_client28._json,
        OverallSeverity: import_smithy_client28.expectString,
        ResourceId: import_smithy_client28.expectString,
        ResourceType: import_smithy_client28.expectString,
        Status: import_smithy_client28.expectString
      });
    }, "de_ResourceComplianceSummaryItem");
    var de_ResourceComplianceSummaryItemList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ResourceComplianceSummaryItem(entry, context);
      });
      return retVal;
    }, "de_ResourceComplianceSummaryItemList");
    var de_ResourceDataSyncItem = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        LastStatus: import_smithy_client28.expectString,
        LastSuccessfulSyncTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "LastSuccessfulSyncTime"),
        LastSyncStatusMessage: import_smithy_client28.expectString,
        LastSyncTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "LastSyncTime"),
        S3Destination: import_smithy_client28._json,
        SyncCreatedTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "SyncCreatedTime"),
        SyncLastModifiedTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "SyncLastModifiedTime"),
        SyncName: import_smithy_client28.expectString,
        SyncSource: import_smithy_client28._json,
        SyncType: import_smithy_client28.expectString
      });
    }, "de_ResourceDataSyncItem");
    var de_ResourceDataSyncItemList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ResourceDataSyncItem(entry, context);
      });
      return retVal;
    }, "de_ResourceDataSyncItemList");
    var de_ReviewInformation = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        ReviewedTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "ReviewedTime"),
        Reviewer: import_smithy_client28.expectString,
        Status: import_smithy_client28.expectString
      });
    }, "de_ReviewInformation");
    var de_ReviewInformationList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_ReviewInformation(entry, context);
      });
      return retVal;
    }, "de_ReviewInformationList");
    var de_SendCommandResult = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        Command: /* @__PURE__ */ __name2((_3) => de_Command(_3, context), "Command")
      });
    }, "de_SendCommandResult");
    var de_ServiceSetting = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        ARN: import_smithy_client28.expectString,
        LastModifiedDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "LastModifiedDate"),
        LastModifiedUser: import_smithy_client28.expectString,
        SettingId: import_smithy_client28.expectString,
        SettingValue: import_smithy_client28.expectString,
        Status: import_smithy_client28.expectString
      });
    }, "de_ServiceSetting");
    var de_Session = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        AccessType: import_smithy_client28.expectString,
        Details: import_smithy_client28.expectString,
        DocumentName: import_smithy_client28.expectString,
        EndDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "EndDate"),
        MaxSessionDuration: import_smithy_client28.expectString,
        OutputUrl: import_smithy_client28._json,
        Owner: import_smithy_client28.expectString,
        Reason: import_smithy_client28.expectString,
        SessionId: import_smithy_client28.expectString,
        StartDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "StartDate"),
        Status: import_smithy_client28.expectString,
        Target: import_smithy_client28.expectString
      });
    }, "de_Session");
    var de_SessionList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_Session(entry, context);
      });
      return retVal;
    }, "de_SessionList");
    var de_StepExecution = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        Action: import_smithy_client28.expectString,
        ExecutionEndTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "ExecutionEndTime"),
        ExecutionStartTime: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "ExecutionStartTime"),
        FailureDetails: import_smithy_client28._json,
        FailureMessage: import_smithy_client28.expectString,
        Inputs: import_smithy_client28._json,
        IsCritical: import_smithy_client28.expectBoolean,
        IsEnd: import_smithy_client28.expectBoolean,
        MaxAttempts: import_smithy_client28.expectInt32,
        NextStep: import_smithy_client28.expectString,
        OnFailure: import_smithy_client28.expectString,
        Outputs: import_smithy_client28._json,
        OverriddenParameters: import_smithy_client28._json,
        ParentStepDetails: import_smithy_client28._json,
        Response: import_smithy_client28.expectString,
        ResponseCode: import_smithy_client28.expectString,
        StepExecutionId: import_smithy_client28.expectString,
        StepName: import_smithy_client28.expectString,
        StepStatus: import_smithy_client28.expectString,
        TargetLocation: import_smithy_client28._json,
        Targets: import_smithy_client28._json,
        TimeoutSeconds: import_smithy_client28.expectLong,
        TriggeredAlarms: import_smithy_client28._json,
        ValidNextSteps: import_smithy_client28._json
      });
    }, "de_StepExecution");
    var de_StepExecutionList = /* @__PURE__ */ __name2((output, context) => {
      const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
        return de_StepExecution(entry, context);
      });
      return retVal;
    }, "de_StepExecutionList");
    var de_UpdateAssociationResult = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        AssociationDescription: /* @__PURE__ */ __name2((_3) => de_AssociationDescription(_3, context), "AssociationDescription")
      });
    }, "de_UpdateAssociationResult");
    var de_UpdateAssociationStatusResult = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        AssociationDescription: /* @__PURE__ */ __name2((_3) => de_AssociationDescription(_3, context), "AssociationDescription")
      });
    }, "de_UpdateAssociationStatusResult");
    var de_UpdateDocumentResult = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        DocumentDescription: /* @__PURE__ */ __name2((_3) => de_DocumentDescription(_3, context), "DocumentDescription")
      });
    }, "de_UpdateDocumentResult");
    var de_UpdateMaintenanceWindowTaskResult = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        AlarmConfiguration: import_smithy_client28._json,
        CutoffBehavior: import_smithy_client28.expectString,
        Description: import_smithy_client28.expectString,
        LoggingInfo: import_smithy_client28._json,
        MaxConcurrency: import_smithy_client28.expectString,
        MaxErrors: import_smithy_client28.expectString,
        Name: import_smithy_client28.expectString,
        Priority: import_smithy_client28.expectInt32,
        ServiceRoleArn: import_smithy_client28.expectString,
        Targets: import_smithy_client28._json,
        TaskArn: import_smithy_client28.expectString,
        TaskInvocationParameters: /* @__PURE__ */ __name2((_3) => de_MaintenanceWindowTaskInvocationParameters(_3, context), "TaskInvocationParameters"),
        TaskParameters: import_smithy_client28._json,
        WindowId: import_smithy_client28.expectString,
        WindowTaskId: import_smithy_client28.expectString
      });
    }, "de_UpdateMaintenanceWindowTaskResult");
    var de_UpdatePatchBaselineResult = /* @__PURE__ */ __name2((output, context) => {
      return (0, import_smithy_client28.take)(output, {
        ApprovalRules: import_smithy_client28._json,
        ApprovedPatches: import_smithy_client28._json,
        ApprovedPatchesComplianceLevel: import_smithy_client28.expectString,
        ApprovedPatchesEnableNonSecurity: import_smithy_client28.expectBoolean,
        AvailableSecurityUpdatesComplianceStatus: import_smithy_client28.expectString,
        BaselineId: import_smithy_client28.expectString,
        CreatedDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "CreatedDate"),
        Description: import_smithy_client28.expectString,
        GlobalFilters: import_smithy_client28._json,
        ModifiedDate: /* @__PURE__ */ __name2((_3) => (0, import_smithy_client28.expectNonNull)((0, import_smithy_client28.parseEpochTimestamp)((0, import_smithy_client28.expectNumber)(_3))), "ModifiedDate"),
        Name: import_smithy_client28.expectString,
        OperatingSystem: import_smithy_client28.expectString,
        RejectedPatches: import_smithy_client28._json,
        RejectedPatchesAction: import_smithy_client28.expectString,
        Sources: import_smithy_client28._json
      });
    }, "de_UpdatePatchBaselineResult");
    var deserializeMetadata3 = /* @__PURE__ */ __name2((output) => ({
      httpStatusCode: output.statusCode,
      requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
      extendedRequestId: output.headers["x-amz-id-2"],
      cfId: output.headers["x-amz-cf-id"]
    }), "deserializeMetadata");
    var throwDefaultError3 = (0, import_smithy_client28.withBaseException)(SSMServiceException);
    var buildHttpRpcRequest2 = /* @__PURE__ */ __name2(async (context, headers, path38, resolvedHostname, body) => {
      const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
      const contents = {
        protocol,
        hostname,
        port,
        method: "POST",
        path: basePath.endsWith("/") ? basePath.slice(0, -1) + path38 : basePath + path38,
        headers
      };
      if (resolvedHostname !== void 0) {
        contents.hostname = resolvedHostname;
      }
      if (body !== void 0) {
        contents.body = body;
      }
      return new import_protocol_http16.HttpRequest(contents);
    }, "buildHttpRpcRequest");
    function sharedHeaders(operation) {
      return {
        "content-type": "application/x-amz-json-1.1",
        "x-amz-target": `AmazonSSM.${operation}`
      };
    }
    __name(sharedHeaders, "sharedHeaders");
    __name2(sharedHeaders, "sharedHeaders");
    var AddTagsToResourceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "AddTagsToResource", {}).n("SSMClient", "AddTagsToResourceCommand").f(void 0, void 0).ser(se_AddTagsToResourceCommand).de(de_AddTagsToResourceCommand).build() {
      static {
        __name(this, "AddTagsToResourceCommand");
      }
      static {
        __name2(this, "AddTagsToResourceCommand");
      }
    };
    var AssociateOpsItemRelatedItemCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "AssociateOpsItemRelatedItem", {}).n("SSMClient", "AssociateOpsItemRelatedItemCommand").f(void 0, void 0).ser(se_AssociateOpsItemRelatedItemCommand).de(de_AssociateOpsItemRelatedItemCommand).build() {
      static {
        __name(this, "AssociateOpsItemRelatedItemCommand");
      }
      static {
        __name2(this, "AssociateOpsItemRelatedItemCommand");
      }
    };
    var CancelCommandCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "CancelCommand", {}).n("SSMClient", "CancelCommandCommand").f(void 0, void 0).ser(se_CancelCommandCommand).de(de_CancelCommandCommand).build() {
      static {
        __name(this, "CancelCommandCommand");
      }
      static {
        __name2(this, "CancelCommandCommand");
      }
    };
    var CancelMaintenanceWindowExecutionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "CancelMaintenanceWindowExecution", {}).n("SSMClient", "CancelMaintenanceWindowExecutionCommand").f(void 0, void 0).ser(se_CancelMaintenanceWindowExecutionCommand).de(de_CancelMaintenanceWindowExecutionCommand).build() {
      static {
        __name(this, "CancelMaintenanceWindowExecutionCommand");
      }
      static {
        __name2(this, "CancelMaintenanceWindowExecutionCommand");
      }
    };
    var CreateActivationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "CreateActivation", {}).n("SSMClient", "CreateActivationCommand").f(void 0, void 0).ser(se_CreateActivationCommand).de(de_CreateActivationCommand).build() {
      static {
        __name(this, "CreateActivationCommand");
      }
      static {
        __name2(this, "CreateActivationCommand");
      }
    };
    var CreateAssociationBatchCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "CreateAssociationBatch", {}).n("SSMClient", "CreateAssociationBatchCommand").f(CreateAssociationBatchRequestFilterSensitiveLog, CreateAssociationBatchResultFilterSensitiveLog).ser(se_CreateAssociationBatchCommand).de(de_CreateAssociationBatchCommand).build() {
      static {
        __name(this, "CreateAssociationBatchCommand");
      }
      static {
        __name2(this, "CreateAssociationBatchCommand");
      }
    };
    var CreateAssociationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "CreateAssociation", {}).n("SSMClient", "CreateAssociationCommand").f(CreateAssociationRequestFilterSensitiveLog, CreateAssociationResultFilterSensitiveLog).ser(se_CreateAssociationCommand).de(de_CreateAssociationCommand).build() {
      static {
        __name(this, "CreateAssociationCommand");
      }
      static {
        __name2(this, "CreateAssociationCommand");
      }
    };
    var CreateDocumentCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "CreateDocument", {}).n("SSMClient", "CreateDocumentCommand").f(void 0, void 0).ser(se_CreateDocumentCommand).de(de_CreateDocumentCommand).build() {
      static {
        __name(this, "CreateDocumentCommand");
      }
      static {
        __name2(this, "CreateDocumentCommand");
      }
    };
    var CreateMaintenanceWindowCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "CreateMaintenanceWindow", {}).n("SSMClient", "CreateMaintenanceWindowCommand").f(CreateMaintenanceWindowRequestFilterSensitiveLog, void 0).ser(se_CreateMaintenanceWindowCommand).de(de_CreateMaintenanceWindowCommand).build() {
      static {
        __name(this, "CreateMaintenanceWindowCommand");
      }
      static {
        __name2(this, "CreateMaintenanceWindowCommand");
      }
    };
    var CreateOpsItemCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "CreateOpsItem", {}).n("SSMClient", "CreateOpsItemCommand").f(void 0, void 0).ser(se_CreateOpsItemCommand).de(de_CreateOpsItemCommand).build() {
      static {
        __name(this, "CreateOpsItemCommand");
      }
      static {
        __name2(this, "CreateOpsItemCommand");
      }
    };
    var CreateOpsMetadataCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "CreateOpsMetadata", {}).n("SSMClient", "CreateOpsMetadataCommand").f(void 0, void 0).ser(se_CreateOpsMetadataCommand).de(de_CreateOpsMetadataCommand).build() {
      static {
        __name(this, "CreateOpsMetadataCommand");
      }
      static {
        __name2(this, "CreateOpsMetadataCommand");
      }
    };
    var CreatePatchBaselineCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "CreatePatchBaseline", {}).n("SSMClient", "CreatePatchBaselineCommand").f(CreatePatchBaselineRequestFilterSensitiveLog, void 0).ser(se_CreatePatchBaselineCommand).de(de_CreatePatchBaselineCommand).build() {
      static {
        __name(this, "CreatePatchBaselineCommand");
      }
      static {
        __name2(this, "CreatePatchBaselineCommand");
      }
    };
    var CreateResourceDataSyncCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "CreateResourceDataSync", {}).n("SSMClient", "CreateResourceDataSyncCommand").f(void 0, void 0).ser(se_CreateResourceDataSyncCommand).de(de_CreateResourceDataSyncCommand).build() {
      static {
        __name(this, "CreateResourceDataSyncCommand");
      }
      static {
        __name2(this, "CreateResourceDataSyncCommand");
      }
    };
    var DeleteActivationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "DeleteActivation", {}).n("SSMClient", "DeleteActivationCommand").f(void 0, void 0).ser(se_DeleteActivationCommand).de(de_DeleteActivationCommand).build() {
      static {
        __name(this, "DeleteActivationCommand");
      }
      static {
        __name2(this, "DeleteActivationCommand");
      }
    };
    var DeleteAssociationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "DeleteAssociation", {}).n("SSMClient", "DeleteAssociationCommand").f(void 0, void 0).ser(se_DeleteAssociationCommand).de(de_DeleteAssociationCommand).build() {
      static {
        __name(this, "DeleteAssociationCommand");
      }
      static {
        __name2(this, "DeleteAssociationCommand");
      }
    };
    var DeleteDocumentCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "DeleteDocument", {}).n("SSMClient", "DeleteDocumentCommand").f(void 0, void 0).ser(se_DeleteDocumentCommand).de(de_DeleteDocumentCommand).build() {
      static {
        __name(this, "DeleteDocumentCommand");
      }
      static {
        __name2(this, "DeleteDocumentCommand");
      }
    };
    var DeleteInventoryCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "DeleteInventory", {}).n("SSMClient", "DeleteInventoryCommand").f(void 0, void 0).ser(se_DeleteInventoryCommand).de(de_DeleteInventoryCommand).build() {
      static {
        __name(this, "DeleteInventoryCommand");
      }
      static {
        __name2(this, "DeleteInventoryCommand");
      }
    };
    var DeleteMaintenanceWindowCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "DeleteMaintenanceWindow", {}).n("SSMClient", "DeleteMaintenanceWindowCommand").f(void 0, void 0).ser(se_DeleteMaintenanceWindowCommand).de(de_DeleteMaintenanceWindowCommand).build() {
      static {
        __name(this, "DeleteMaintenanceWindowCommand");
      }
      static {
        __name2(this, "DeleteMaintenanceWindowCommand");
      }
    };
    var DeleteOpsItemCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "DeleteOpsItem", {}).n("SSMClient", "DeleteOpsItemCommand").f(void 0, void 0).ser(se_DeleteOpsItemCommand).de(de_DeleteOpsItemCommand).build() {
      static {
        __name(this, "DeleteOpsItemCommand");
      }
      static {
        __name2(this, "DeleteOpsItemCommand");
      }
    };
    var DeleteOpsMetadataCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "DeleteOpsMetadata", {}).n("SSMClient", "DeleteOpsMetadataCommand").f(void 0, void 0).ser(se_DeleteOpsMetadataCommand).de(de_DeleteOpsMetadataCommand).build() {
      static {
        __name(this, "DeleteOpsMetadataCommand");
      }
      static {
        __name2(this, "DeleteOpsMetadataCommand");
      }
    };
    var DeleteParameterCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "DeleteParameter", {}).n("SSMClient", "DeleteParameterCommand").f(void 0, void 0).ser(se_DeleteParameterCommand).de(de_DeleteParameterCommand).build() {
      static {
        __name(this, "DeleteParameterCommand");
      }
      static {
        __name2(this, "DeleteParameterCommand");
      }
    };
    var DeleteParametersCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "DeleteParameters", {}).n("SSMClient", "DeleteParametersCommand").f(void 0, void 0).ser(se_DeleteParametersCommand).de(de_DeleteParametersCommand).build() {
      static {
        __name(this, "DeleteParametersCommand");
      }
      static {
        __name2(this, "DeleteParametersCommand");
      }
    };
    var DeletePatchBaselineCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "DeletePatchBaseline", {}).n("SSMClient", "DeletePatchBaselineCommand").f(void 0, void 0).ser(se_DeletePatchBaselineCommand).de(de_DeletePatchBaselineCommand).build() {
      static {
        __name(this, "DeletePatchBaselineCommand");
      }
      static {
        __name2(this, "DeletePatchBaselineCommand");
      }
    };
    var DeleteResourceDataSyncCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "DeleteResourceDataSync", {}).n("SSMClient", "DeleteResourceDataSyncCommand").f(void 0, void 0).ser(se_DeleteResourceDataSyncCommand).de(de_DeleteResourceDataSyncCommand).build() {
      static {
        __name(this, "DeleteResourceDataSyncCommand");
      }
      static {
        __name2(this, "DeleteResourceDataSyncCommand");
      }
    };
    var DeleteResourcePolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "DeleteResourcePolicy", {}).n("SSMClient", "DeleteResourcePolicyCommand").f(void 0, void 0).ser(se_DeleteResourcePolicyCommand).de(de_DeleteResourcePolicyCommand).build() {
      static {
        __name(this, "DeleteResourcePolicyCommand");
      }
      static {
        __name2(this, "DeleteResourcePolicyCommand");
      }
    };
    var DeregisterManagedInstanceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "DeregisterManagedInstance", {}).n("SSMClient", "DeregisterManagedInstanceCommand").f(void 0, void 0).ser(se_DeregisterManagedInstanceCommand).de(de_DeregisterManagedInstanceCommand).build() {
      static {
        __name(this, "DeregisterManagedInstanceCommand");
      }
      static {
        __name2(this, "DeregisterManagedInstanceCommand");
      }
    };
    var DeregisterPatchBaselineForPatchGroupCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "DeregisterPatchBaselineForPatchGroup", {}).n("SSMClient", "DeregisterPatchBaselineForPatchGroupCommand").f(void 0, void 0).ser(se_DeregisterPatchBaselineForPatchGroupCommand).de(de_DeregisterPatchBaselineForPatchGroupCommand).build() {
      static {
        __name(this, "DeregisterPatchBaselineForPatchGroupCommand");
      }
      static {
        __name2(this, "DeregisterPatchBaselineForPatchGroupCommand");
      }
    };
    var DeregisterTargetFromMaintenanceWindowCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "DeregisterTargetFromMaintenanceWindow", {}).n("SSMClient", "DeregisterTargetFromMaintenanceWindowCommand").f(void 0, void 0).ser(se_DeregisterTargetFromMaintenanceWindowCommand).de(de_DeregisterTargetFromMaintenanceWindowCommand).build() {
      static {
        __name(this, "DeregisterTargetFromMaintenanceWindowCommand");
      }
      static {
        __name2(this, "DeregisterTargetFromMaintenanceWindowCommand");
      }
    };
    var DeregisterTaskFromMaintenanceWindowCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "DeregisterTaskFromMaintenanceWindow", {}).n("SSMClient", "DeregisterTaskFromMaintenanceWindowCommand").f(void 0, void 0).ser(se_DeregisterTaskFromMaintenanceWindowCommand).de(de_DeregisterTaskFromMaintenanceWindowCommand).build() {
      static {
        __name(this, "DeregisterTaskFromMaintenanceWindowCommand");
      }
      static {
        __name2(this, "DeregisterTaskFromMaintenanceWindowCommand");
      }
    };
    var DescribeActivationsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "DescribeActivations", {}).n("SSMClient", "DescribeActivationsCommand").f(void 0, void 0).ser(se_DescribeActivationsCommand).de(de_DescribeActivationsCommand).build() {
      static {
        __name(this, "DescribeActivationsCommand");
      }
      static {
        __name2(this, "DescribeActivationsCommand");
      }
    };
    var DescribeAssociationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "DescribeAssociation", {}).n("SSMClient", "DescribeAssociationCommand").f(void 0, DescribeAssociationResultFilterSensitiveLog).ser(se_DescribeAssociationCommand).de(de_DescribeAssociationCommand).build() {
      static {
        __name(this, "DescribeAssociationCommand");
      }
      static {
        __name2(this, "DescribeAssociationCommand");
      }
    };
    var DescribeAssociationExecutionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "DescribeAssociationExecutions", {}).n("SSMClient", "DescribeAssociationExecutionsCommand").f(void 0, void 0).ser(se_DescribeAssociationExecutionsCommand).de(de_DescribeAssociationExecutionsCommand).build() {
      static {
        __name(this, "DescribeAssociationExecutionsCommand");
      }
      static {
        __name2(this, "DescribeAssociationExecutionsCommand");
      }
    };
    var DescribeAssociationExecutionTargetsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "DescribeAssociationExecutionTargets", {}).n("SSMClient", "DescribeAssociationExecutionTargetsCommand").f(void 0, void 0).ser(se_DescribeAssociationExecutionTargetsCommand).de(de_DescribeAssociationExecutionTargetsCommand).build() {
      static {
        __name(this, "DescribeAssociationExecutionTargetsCommand");
      }
      static {
        __name2(this, "DescribeAssociationExecutionTargetsCommand");
      }
    };
    var DescribeAutomationExecutionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "DescribeAutomationExecutions", {}).n("SSMClient", "DescribeAutomationExecutionsCommand").f(void 0, void 0).ser(se_DescribeAutomationExecutionsCommand).de(de_DescribeAutomationExecutionsCommand).build() {
      static {
        __name(this, "DescribeAutomationExecutionsCommand");
      }
      static {
        __name2(this, "DescribeAutomationExecutionsCommand");
      }
    };
    var DescribeAutomationStepExecutionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "DescribeAutomationStepExecutions", {}).n("SSMClient", "DescribeAutomationStepExecutionsCommand").f(void 0, void 0).ser(se_DescribeAutomationStepExecutionsCommand).de(de_DescribeAutomationStepExecutionsCommand).build() {
      static {
        __name(this, "DescribeAutomationStepExecutionsCommand");
      }
      static {
        __name2(this, "DescribeAutomationStepExecutionsCommand");
      }
    };
    var DescribeAvailablePatchesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "DescribeAvailablePatches", {}).n("SSMClient", "DescribeAvailablePatchesCommand").f(void 0, void 0).ser(se_DescribeAvailablePatchesCommand).de(de_DescribeAvailablePatchesCommand).build() {
      static {
        __name(this, "DescribeAvailablePatchesCommand");
      }
      static {
        __name2(this, "DescribeAvailablePatchesCommand");
      }
    };
    var DescribeDocumentCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "DescribeDocument", {}).n("SSMClient", "DescribeDocumentCommand").f(void 0, void 0).ser(se_DescribeDocumentCommand).de(de_DescribeDocumentCommand).build() {
      static {
        __name(this, "DescribeDocumentCommand");
      }
      static {
        __name2(this, "DescribeDocumentCommand");
      }
    };
    var DescribeDocumentPermissionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "DescribeDocumentPermission", {}).n("SSMClient", "DescribeDocumentPermissionCommand").f(void 0, void 0).ser(se_DescribeDocumentPermissionCommand).de(de_DescribeDocumentPermissionCommand).build() {
      static {
        __name(this, "DescribeDocumentPermissionCommand");
      }
      static {
        __name2(this, "DescribeDocumentPermissionCommand");
      }
    };
    var DescribeEffectiveInstanceAssociationsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "DescribeEffectiveInstanceAssociations", {}).n("SSMClient", "DescribeEffectiveInstanceAssociationsCommand").f(void 0, void 0).ser(se_DescribeEffectiveInstanceAssociationsCommand).de(de_DescribeEffectiveInstanceAssociationsCommand).build() {
      static {
        __name(this, "DescribeEffectiveInstanceAssociationsCommand");
      }
      static {
        __name2(this, "DescribeEffectiveInstanceAssociationsCommand");
      }
    };
    var DescribeEffectivePatchesForPatchBaselineCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "DescribeEffectivePatchesForPatchBaseline", {}).n("SSMClient", "DescribeEffectivePatchesForPatchBaselineCommand").f(void 0, void 0).ser(se_DescribeEffectivePatchesForPatchBaselineCommand).de(de_DescribeEffectivePatchesForPatchBaselineCommand).build() {
      static {
        __name(this, "DescribeEffectivePatchesForPatchBaselineCommand");
      }
      static {
        __name2(this, "DescribeEffectivePatchesForPatchBaselineCommand");
      }
    };
    var DescribeInstanceAssociationsStatusCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "DescribeInstanceAssociationsStatus", {}).n("SSMClient", "DescribeInstanceAssociationsStatusCommand").f(void 0, void 0).ser(se_DescribeInstanceAssociationsStatusCommand).de(de_DescribeInstanceAssociationsStatusCommand).build() {
      static {
        __name(this, "DescribeInstanceAssociationsStatusCommand");
      }
      static {
        __name2(this, "DescribeInstanceAssociationsStatusCommand");
      }
    };
    var DescribeInstanceInformationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "DescribeInstanceInformation", {}).n("SSMClient", "DescribeInstanceInformationCommand").f(void 0, DescribeInstanceInformationResultFilterSensitiveLog).ser(se_DescribeInstanceInformationCommand).de(de_DescribeInstanceInformationCommand).build() {
      static {
        __name(this, "DescribeInstanceInformationCommand");
      }
      static {
        __name2(this, "DescribeInstanceInformationCommand");
      }
    };
    var DescribeInstancePatchesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "DescribeInstancePatches", {}).n("SSMClient", "DescribeInstancePatchesCommand").f(void 0, void 0).ser(se_DescribeInstancePatchesCommand).de(de_DescribeInstancePatchesCommand).build() {
      static {
        __name(this, "DescribeInstancePatchesCommand");
      }
      static {
        __name2(this, "DescribeInstancePatchesCommand");
      }
    };
    var DescribeInstancePatchStatesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "DescribeInstancePatchStates", {}).n("SSMClient", "DescribeInstancePatchStatesCommand").f(void 0, DescribeInstancePatchStatesResultFilterSensitiveLog).ser(se_DescribeInstancePatchStatesCommand).de(de_DescribeInstancePatchStatesCommand).build() {
      static {
        __name(this, "DescribeInstancePatchStatesCommand");
      }
      static {
        __name2(this, "DescribeInstancePatchStatesCommand");
      }
    };
    var DescribeInstancePatchStatesForPatchGroupCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "DescribeInstancePatchStatesForPatchGroup", {}).n("SSMClient", "DescribeInstancePatchStatesForPatchGroupCommand").f(void 0, DescribeInstancePatchStatesForPatchGroupResultFilterSensitiveLog).ser(se_DescribeInstancePatchStatesForPatchGroupCommand).de(de_DescribeInstancePatchStatesForPatchGroupCommand).build() {
      static {
        __name(this, "DescribeInstancePatchStatesForPatchGroupCommand");
      }
      static {
        __name2(this, "DescribeInstancePatchStatesForPatchGroupCommand");
      }
    };
    var DescribeInstancePropertiesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "DescribeInstanceProperties", {}).n("SSMClient", "DescribeInstancePropertiesCommand").f(void 0, DescribeInstancePropertiesResultFilterSensitiveLog).ser(se_DescribeInstancePropertiesCommand).de(de_DescribeInstancePropertiesCommand).build() {
      static {
        __name(this, "DescribeInstancePropertiesCommand");
      }
      static {
        __name2(this, "DescribeInstancePropertiesCommand");
      }
    };
    var DescribeInventoryDeletionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "DescribeInventoryDeletions", {}).n("SSMClient", "DescribeInventoryDeletionsCommand").f(void 0, void 0).ser(se_DescribeInventoryDeletionsCommand).de(de_DescribeInventoryDeletionsCommand).build() {
      static {
        __name(this, "DescribeInventoryDeletionsCommand");
      }
      static {
        __name2(this, "DescribeInventoryDeletionsCommand");
      }
    };
    var DescribeMaintenanceWindowExecutionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "DescribeMaintenanceWindowExecutions", {}).n("SSMClient", "DescribeMaintenanceWindowExecutionsCommand").f(void 0, void 0).ser(se_DescribeMaintenanceWindowExecutionsCommand).de(de_DescribeMaintenanceWindowExecutionsCommand).build() {
      static {
        __name(this, "DescribeMaintenanceWindowExecutionsCommand");
      }
      static {
        __name2(this, "DescribeMaintenanceWindowExecutionsCommand");
      }
    };
    var DescribeMaintenanceWindowExecutionTaskInvocationsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "DescribeMaintenanceWindowExecutionTaskInvocations", {}).n("SSMClient", "DescribeMaintenanceWindowExecutionTaskInvocationsCommand").f(void 0, DescribeMaintenanceWindowExecutionTaskInvocationsResultFilterSensitiveLog).ser(se_DescribeMaintenanceWindowExecutionTaskInvocationsCommand).de(de_DescribeMaintenanceWindowExecutionTaskInvocationsCommand).build() {
      static {
        __name(this, "DescribeMaintenanceWindowExecutionTaskInvocationsCommand");
      }
      static {
        __name2(this, "DescribeMaintenanceWindowExecutionTaskInvocationsCommand");
      }
    };
    var DescribeMaintenanceWindowExecutionTasksCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "DescribeMaintenanceWindowExecutionTasks", {}).n("SSMClient", "DescribeMaintenanceWindowExecutionTasksCommand").f(void 0, void 0).ser(se_DescribeMaintenanceWindowExecutionTasksCommand).de(de_DescribeMaintenanceWindowExecutionTasksCommand).build() {
      static {
        __name(this, "DescribeMaintenanceWindowExecutionTasksCommand");
      }
      static {
        __name2(this, "DescribeMaintenanceWindowExecutionTasksCommand");
      }
    };
    var DescribeMaintenanceWindowScheduleCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "DescribeMaintenanceWindowSchedule", {}).n("SSMClient", "DescribeMaintenanceWindowScheduleCommand").f(void 0, void 0).ser(se_DescribeMaintenanceWindowScheduleCommand).de(de_DescribeMaintenanceWindowScheduleCommand).build() {
      static {
        __name(this, "DescribeMaintenanceWindowScheduleCommand");
      }
      static {
        __name2(this, "DescribeMaintenanceWindowScheduleCommand");
      }
    };
    var DescribeMaintenanceWindowsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "DescribeMaintenanceWindows", {}).n("SSMClient", "DescribeMaintenanceWindowsCommand").f(void 0, DescribeMaintenanceWindowsResultFilterSensitiveLog).ser(se_DescribeMaintenanceWindowsCommand).de(de_DescribeMaintenanceWindowsCommand).build() {
      static {
        __name(this, "DescribeMaintenanceWindowsCommand");
      }
      static {
        __name2(this, "DescribeMaintenanceWindowsCommand");
      }
    };
    var DescribeMaintenanceWindowsForTargetCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "DescribeMaintenanceWindowsForTarget", {}).n("SSMClient", "DescribeMaintenanceWindowsForTargetCommand").f(void 0, void 0).ser(se_DescribeMaintenanceWindowsForTargetCommand).de(de_DescribeMaintenanceWindowsForTargetCommand).build() {
      static {
        __name(this, "DescribeMaintenanceWindowsForTargetCommand");
      }
      static {
        __name2(this, "DescribeMaintenanceWindowsForTargetCommand");
      }
    };
    var DescribeMaintenanceWindowTargetsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "DescribeMaintenanceWindowTargets", {}).n("SSMClient", "DescribeMaintenanceWindowTargetsCommand").f(void 0, DescribeMaintenanceWindowTargetsResultFilterSensitiveLog).ser(se_DescribeMaintenanceWindowTargetsCommand).de(de_DescribeMaintenanceWindowTargetsCommand).build() {
      static {
        __name(this, "DescribeMaintenanceWindowTargetsCommand");
      }
      static {
        __name2(this, "DescribeMaintenanceWindowTargetsCommand");
      }
    };
    var DescribeMaintenanceWindowTasksCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "DescribeMaintenanceWindowTasks", {}).n("SSMClient", "DescribeMaintenanceWindowTasksCommand").f(void 0, DescribeMaintenanceWindowTasksResultFilterSensitiveLog).ser(se_DescribeMaintenanceWindowTasksCommand).de(de_DescribeMaintenanceWindowTasksCommand).build() {
      static {
        __name(this, "DescribeMaintenanceWindowTasksCommand");
      }
      static {
        __name2(this, "DescribeMaintenanceWindowTasksCommand");
      }
    };
    var DescribeOpsItemsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "DescribeOpsItems", {}).n("SSMClient", "DescribeOpsItemsCommand").f(void 0, void 0).ser(se_DescribeOpsItemsCommand).de(de_DescribeOpsItemsCommand).build() {
      static {
        __name(this, "DescribeOpsItemsCommand");
      }
      static {
        __name2(this, "DescribeOpsItemsCommand");
      }
    };
    var DescribeParametersCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "DescribeParameters", {}).n("SSMClient", "DescribeParametersCommand").f(void 0, void 0).ser(se_DescribeParametersCommand).de(de_DescribeParametersCommand).build() {
      static {
        __name(this, "DescribeParametersCommand");
      }
      static {
        __name2(this, "DescribeParametersCommand");
      }
    };
    var DescribePatchBaselinesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "DescribePatchBaselines", {}).n("SSMClient", "DescribePatchBaselinesCommand").f(void 0, void 0).ser(se_DescribePatchBaselinesCommand).de(de_DescribePatchBaselinesCommand).build() {
      static {
        __name(this, "DescribePatchBaselinesCommand");
      }
      static {
        __name2(this, "DescribePatchBaselinesCommand");
      }
    };
    var DescribePatchGroupsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "DescribePatchGroups", {}).n("SSMClient", "DescribePatchGroupsCommand").f(void 0, void 0).ser(se_DescribePatchGroupsCommand).de(de_DescribePatchGroupsCommand).build() {
      static {
        __name(this, "DescribePatchGroupsCommand");
      }
      static {
        __name2(this, "DescribePatchGroupsCommand");
      }
    };
    var DescribePatchGroupStateCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "DescribePatchGroupState", {}).n("SSMClient", "DescribePatchGroupStateCommand").f(void 0, void 0).ser(se_DescribePatchGroupStateCommand).de(de_DescribePatchGroupStateCommand).build() {
      static {
        __name(this, "DescribePatchGroupStateCommand");
      }
      static {
        __name2(this, "DescribePatchGroupStateCommand");
      }
    };
    var DescribePatchPropertiesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "DescribePatchProperties", {}).n("SSMClient", "DescribePatchPropertiesCommand").f(void 0, void 0).ser(se_DescribePatchPropertiesCommand).de(de_DescribePatchPropertiesCommand).build() {
      static {
        __name(this, "DescribePatchPropertiesCommand");
      }
      static {
        __name2(this, "DescribePatchPropertiesCommand");
      }
    };
    var DescribeSessionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "DescribeSessions", {}).n("SSMClient", "DescribeSessionsCommand").f(void 0, void 0).ser(se_DescribeSessionsCommand).de(de_DescribeSessionsCommand).build() {
      static {
        __name(this, "DescribeSessionsCommand");
      }
      static {
        __name2(this, "DescribeSessionsCommand");
      }
    };
    var DisassociateOpsItemRelatedItemCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "DisassociateOpsItemRelatedItem", {}).n("SSMClient", "DisassociateOpsItemRelatedItemCommand").f(void 0, void 0).ser(se_DisassociateOpsItemRelatedItemCommand).de(de_DisassociateOpsItemRelatedItemCommand).build() {
      static {
        __name(this, "DisassociateOpsItemRelatedItemCommand");
      }
      static {
        __name2(this, "DisassociateOpsItemRelatedItemCommand");
      }
    };
    var GetAccessTokenCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "GetAccessToken", {}).n("SSMClient", "GetAccessTokenCommand").f(void 0, GetAccessTokenResponseFilterSensitiveLog).ser(se_GetAccessTokenCommand).de(de_GetAccessTokenCommand).build() {
      static {
        __name(this, "GetAccessTokenCommand");
      }
      static {
        __name2(this, "GetAccessTokenCommand");
      }
    };
    var GetAutomationExecutionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "GetAutomationExecution", {}).n("SSMClient", "GetAutomationExecutionCommand").f(void 0, void 0).ser(se_GetAutomationExecutionCommand).de(de_GetAutomationExecutionCommand).build() {
      static {
        __name(this, "GetAutomationExecutionCommand");
      }
      static {
        __name2(this, "GetAutomationExecutionCommand");
      }
    };
    var GetCalendarStateCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "GetCalendarState", {}).n("SSMClient", "GetCalendarStateCommand").f(void 0, void 0).ser(se_GetCalendarStateCommand).de(de_GetCalendarStateCommand).build() {
      static {
        __name(this, "GetCalendarStateCommand");
      }
      static {
        __name2(this, "GetCalendarStateCommand");
      }
    };
    var GetCommandInvocationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "GetCommandInvocation", {}).n("SSMClient", "GetCommandInvocationCommand").f(void 0, void 0).ser(se_GetCommandInvocationCommand).de(de_GetCommandInvocationCommand).build() {
      static {
        __name(this, "GetCommandInvocationCommand");
      }
      static {
        __name2(this, "GetCommandInvocationCommand");
      }
    };
    var GetConnectionStatusCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "GetConnectionStatus", {}).n("SSMClient", "GetConnectionStatusCommand").f(void 0, void 0).ser(se_GetConnectionStatusCommand).de(de_GetConnectionStatusCommand).build() {
      static {
        __name(this, "GetConnectionStatusCommand");
      }
      static {
        __name2(this, "GetConnectionStatusCommand");
      }
    };
    var GetDefaultPatchBaselineCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "GetDefaultPatchBaseline", {}).n("SSMClient", "GetDefaultPatchBaselineCommand").f(void 0, void 0).ser(se_GetDefaultPatchBaselineCommand).de(de_GetDefaultPatchBaselineCommand).build() {
      static {
        __name(this, "GetDefaultPatchBaselineCommand");
      }
      static {
        __name2(this, "GetDefaultPatchBaselineCommand");
      }
    };
    var GetDeployablePatchSnapshotForInstanceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "GetDeployablePatchSnapshotForInstance", {}).n("SSMClient", "GetDeployablePatchSnapshotForInstanceCommand").f(GetDeployablePatchSnapshotForInstanceRequestFilterSensitiveLog, void 0).ser(se_GetDeployablePatchSnapshotForInstanceCommand).de(de_GetDeployablePatchSnapshotForInstanceCommand).build() {
      static {
        __name(this, "GetDeployablePatchSnapshotForInstanceCommand");
      }
      static {
        __name2(this, "GetDeployablePatchSnapshotForInstanceCommand");
      }
    };
    var GetDocumentCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "GetDocument", {}).n("SSMClient", "GetDocumentCommand").f(void 0, void 0).ser(se_GetDocumentCommand).de(de_GetDocumentCommand).build() {
      static {
        __name(this, "GetDocumentCommand");
      }
      static {
        __name2(this, "GetDocumentCommand");
      }
    };
    var GetExecutionPreviewCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "GetExecutionPreview", {}).n("SSMClient", "GetExecutionPreviewCommand").f(void 0, void 0).ser(se_GetExecutionPreviewCommand).de(de_GetExecutionPreviewCommand).build() {
      static {
        __name(this, "GetExecutionPreviewCommand");
      }
      static {
        __name2(this, "GetExecutionPreviewCommand");
      }
    };
    var GetInventoryCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "GetInventory", {}).n("SSMClient", "GetInventoryCommand").f(void 0, void 0).ser(se_GetInventoryCommand).de(de_GetInventoryCommand).build() {
      static {
        __name(this, "GetInventoryCommand");
      }
      static {
        __name2(this, "GetInventoryCommand");
      }
    };
    var GetInventorySchemaCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "GetInventorySchema", {}).n("SSMClient", "GetInventorySchemaCommand").f(void 0, void 0).ser(se_GetInventorySchemaCommand).de(de_GetInventorySchemaCommand).build() {
      static {
        __name(this, "GetInventorySchemaCommand");
      }
      static {
        __name2(this, "GetInventorySchemaCommand");
      }
    };
    var GetMaintenanceWindowCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "GetMaintenanceWindow", {}).n("SSMClient", "GetMaintenanceWindowCommand").f(void 0, GetMaintenanceWindowResultFilterSensitiveLog).ser(se_GetMaintenanceWindowCommand).de(de_GetMaintenanceWindowCommand).build() {
      static {
        __name(this, "GetMaintenanceWindowCommand");
      }
      static {
        __name2(this, "GetMaintenanceWindowCommand");
      }
    };
    var GetMaintenanceWindowExecutionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "GetMaintenanceWindowExecution", {}).n("SSMClient", "GetMaintenanceWindowExecutionCommand").f(void 0, void 0).ser(se_GetMaintenanceWindowExecutionCommand).de(de_GetMaintenanceWindowExecutionCommand).build() {
      static {
        __name(this, "GetMaintenanceWindowExecutionCommand");
      }
      static {
        __name2(this, "GetMaintenanceWindowExecutionCommand");
      }
    };
    var GetMaintenanceWindowExecutionTaskCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "GetMaintenanceWindowExecutionTask", {}).n("SSMClient", "GetMaintenanceWindowExecutionTaskCommand").f(void 0, GetMaintenanceWindowExecutionTaskResultFilterSensitiveLog).ser(se_GetMaintenanceWindowExecutionTaskCommand).de(de_GetMaintenanceWindowExecutionTaskCommand).build() {
      static {
        __name(this, "GetMaintenanceWindowExecutionTaskCommand");
      }
      static {
        __name2(this, "GetMaintenanceWindowExecutionTaskCommand");
      }
    };
    var GetMaintenanceWindowExecutionTaskInvocationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "GetMaintenanceWindowExecutionTaskInvocation", {}).n("SSMClient", "GetMaintenanceWindowExecutionTaskInvocationCommand").f(void 0, GetMaintenanceWindowExecutionTaskInvocationResultFilterSensitiveLog).ser(se_GetMaintenanceWindowExecutionTaskInvocationCommand).de(de_GetMaintenanceWindowExecutionTaskInvocationCommand).build() {
      static {
        __name(this, "GetMaintenanceWindowExecutionTaskInvocationCommand");
      }
      static {
        __name2(this, "GetMaintenanceWindowExecutionTaskInvocationCommand");
      }
    };
    var GetMaintenanceWindowTaskCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "GetMaintenanceWindowTask", {}).n("SSMClient", "GetMaintenanceWindowTaskCommand").f(void 0, GetMaintenanceWindowTaskResultFilterSensitiveLog).ser(se_GetMaintenanceWindowTaskCommand).de(de_GetMaintenanceWindowTaskCommand).build() {
      static {
        __name(this, "GetMaintenanceWindowTaskCommand");
      }
      static {
        __name2(this, "GetMaintenanceWindowTaskCommand");
      }
    };
    var GetOpsItemCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "GetOpsItem", {}).n("SSMClient", "GetOpsItemCommand").f(void 0, void 0).ser(se_GetOpsItemCommand).de(de_GetOpsItemCommand).build() {
      static {
        __name(this, "GetOpsItemCommand");
      }
      static {
        __name2(this, "GetOpsItemCommand");
      }
    };
    var GetOpsMetadataCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "GetOpsMetadata", {}).n("SSMClient", "GetOpsMetadataCommand").f(void 0, void 0).ser(se_GetOpsMetadataCommand).de(de_GetOpsMetadataCommand).build() {
      static {
        __name(this, "GetOpsMetadataCommand");
      }
      static {
        __name2(this, "GetOpsMetadataCommand");
      }
    };
    var GetOpsSummaryCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "GetOpsSummary", {}).n("SSMClient", "GetOpsSummaryCommand").f(void 0, void 0).ser(se_GetOpsSummaryCommand).de(de_GetOpsSummaryCommand).build() {
      static {
        __name(this, "GetOpsSummaryCommand");
      }
      static {
        __name2(this, "GetOpsSummaryCommand");
      }
    };
    var GetParameterCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "GetParameter", {}).n("SSMClient", "GetParameterCommand").f(void 0, GetParameterResultFilterSensitiveLog).ser(se_GetParameterCommand).de(de_GetParameterCommand).build() {
      static {
        __name(this, "GetParameterCommand");
      }
      static {
        __name2(this, "GetParameterCommand");
      }
    };
    var GetParameterHistoryCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "GetParameterHistory", {}).n("SSMClient", "GetParameterHistoryCommand").f(void 0, GetParameterHistoryResultFilterSensitiveLog).ser(se_GetParameterHistoryCommand).de(de_GetParameterHistoryCommand).build() {
      static {
        __name(this, "GetParameterHistoryCommand");
      }
      static {
        __name2(this, "GetParameterHistoryCommand");
      }
    };
    var GetParametersByPathCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "GetParametersByPath", {}).n("SSMClient", "GetParametersByPathCommand").f(void 0, GetParametersByPathResultFilterSensitiveLog).ser(se_GetParametersByPathCommand).de(de_GetParametersByPathCommand).build() {
      static {
        __name(this, "GetParametersByPathCommand");
      }
      static {
        __name2(this, "GetParametersByPathCommand");
      }
    };
    var GetParametersCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "GetParameters", {}).n("SSMClient", "GetParametersCommand").f(void 0, GetParametersResultFilterSensitiveLog).ser(se_GetParametersCommand).de(de_GetParametersCommand).build() {
      static {
        __name(this, "GetParametersCommand");
      }
      static {
        __name2(this, "GetParametersCommand");
      }
    };
    var GetPatchBaselineCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "GetPatchBaseline", {}).n("SSMClient", "GetPatchBaselineCommand").f(void 0, GetPatchBaselineResultFilterSensitiveLog).ser(se_GetPatchBaselineCommand).de(de_GetPatchBaselineCommand).build() {
      static {
        __name(this, "GetPatchBaselineCommand");
      }
      static {
        __name2(this, "GetPatchBaselineCommand");
      }
    };
    var GetPatchBaselineForPatchGroupCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "GetPatchBaselineForPatchGroup", {}).n("SSMClient", "GetPatchBaselineForPatchGroupCommand").f(void 0, void 0).ser(se_GetPatchBaselineForPatchGroupCommand).de(de_GetPatchBaselineForPatchGroupCommand).build() {
      static {
        __name(this, "GetPatchBaselineForPatchGroupCommand");
      }
      static {
        __name2(this, "GetPatchBaselineForPatchGroupCommand");
      }
    };
    var GetResourcePoliciesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "GetResourcePolicies", {}).n("SSMClient", "GetResourcePoliciesCommand").f(void 0, void 0).ser(se_GetResourcePoliciesCommand).de(de_GetResourcePoliciesCommand).build() {
      static {
        __name(this, "GetResourcePoliciesCommand");
      }
      static {
        __name2(this, "GetResourcePoliciesCommand");
      }
    };
    var GetServiceSettingCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "GetServiceSetting", {}).n("SSMClient", "GetServiceSettingCommand").f(void 0, void 0).ser(se_GetServiceSettingCommand).de(de_GetServiceSettingCommand).build() {
      static {
        __name(this, "GetServiceSettingCommand");
      }
      static {
        __name2(this, "GetServiceSettingCommand");
      }
    };
    var LabelParameterVersionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "LabelParameterVersion", {}).n("SSMClient", "LabelParameterVersionCommand").f(void 0, void 0).ser(se_LabelParameterVersionCommand).de(de_LabelParameterVersionCommand).build() {
      static {
        __name(this, "LabelParameterVersionCommand");
      }
      static {
        __name2(this, "LabelParameterVersionCommand");
      }
    };
    var ListAssociationsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "ListAssociations", {}).n("SSMClient", "ListAssociationsCommand").f(void 0, void 0).ser(se_ListAssociationsCommand).de(de_ListAssociationsCommand).build() {
      static {
        __name(this, "ListAssociationsCommand");
      }
      static {
        __name2(this, "ListAssociationsCommand");
      }
    };
    var ListAssociationVersionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "ListAssociationVersions", {}).n("SSMClient", "ListAssociationVersionsCommand").f(void 0, ListAssociationVersionsResultFilterSensitiveLog).ser(se_ListAssociationVersionsCommand).de(de_ListAssociationVersionsCommand).build() {
      static {
        __name(this, "ListAssociationVersionsCommand");
      }
      static {
        __name2(this, "ListAssociationVersionsCommand");
      }
    };
    var ListCommandInvocationsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "ListCommandInvocations", {}).n("SSMClient", "ListCommandInvocationsCommand").f(void 0, void 0).ser(se_ListCommandInvocationsCommand).de(de_ListCommandInvocationsCommand).build() {
      static {
        __name(this, "ListCommandInvocationsCommand");
      }
      static {
        __name2(this, "ListCommandInvocationsCommand");
      }
    };
    var ListCommandsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "ListCommands", {}).n("SSMClient", "ListCommandsCommand").f(void 0, ListCommandsResultFilterSensitiveLog).ser(se_ListCommandsCommand).de(de_ListCommandsCommand).build() {
      static {
        __name(this, "ListCommandsCommand");
      }
      static {
        __name2(this, "ListCommandsCommand");
      }
    };
    var ListComplianceItemsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "ListComplianceItems", {}).n("SSMClient", "ListComplianceItemsCommand").f(void 0, void 0).ser(se_ListComplianceItemsCommand).de(de_ListComplianceItemsCommand).build() {
      static {
        __name(this, "ListComplianceItemsCommand");
      }
      static {
        __name2(this, "ListComplianceItemsCommand");
      }
    };
    var ListComplianceSummariesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "ListComplianceSummaries", {}).n("SSMClient", "ListComplianceSummariesCommand").f(void 0, void 0).ser(se_ListComplianceSummariesCommand).de(de_ListComplianceSummariesCommand).build() {
      static {
        __name(this, "ListComplianceSummariesCommand");
      }
      static {
        __name2(this, "ListComplianceSummariesCommand");
      }
    };
    var ListDocumentMetadataHistoryCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "ListDocumentMetadataHistory", {}).n("SSMClient", "ListDocumentMetadataHistoryCommand").f(void 0, void 0).ser(se_ListDocumentMetadataHistoryCommand).de(de_ListDocumentMetadataHistoryCommand).build() {
      static {
        __name(this, "ListDocumentMetadataHistoryCommand");
      }
      static {
        __name2(this, "ListDocumentMetadataHistoryCommand");
      }
    };
    var ListDocumentsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "ListDocuments", {}).n("SSMClient", "ListDocumentsCommand").f(void 0, void 0).ser(se_ListDocumentsCommand).de(de_ListDocumentsCommand).build() {
      static {
        __name(this, "ListDocumentsCommand");
      }
      static {
        __name2(this, "ListDocumentsCommand");
      }
    };
    var ListDocumentVersionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "ListDocumentVersions", {}).n("SSMClient", "ListDocumentVersionsCommand").f(void 0, void 0).ser(se_ListDocumentVersionsCommand).de(de_ListDocumentVersionsCommand).build() {
      static {
        __name(this, "ListDocumentVersionsCommand");
      }
      static {
        __name2(this, "ListDocumentVersionsCommand");
      }
    };
    var ListInventoryEntriesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "ListInventoryEntries", {}).n("SSMClient", "ListInventoryEntriesCommand").f(void 0, void 0).ser(se_ListInventoryEntriesCommand).de(de_ListInventoryEntriesCommand).build() {
      static {
        __name(this, "ListInventoryEntriesCommand");
      }
      static {
        __name2(this, "ListInventoryEntriesCommand");
      }
    };
    var ListNodesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "ListNodes", {}).n("SSMClient", "ListNodesCommand").f(void 0, ListNodesResultFilterSensitiveLog).ser(se_ListNodesCommand).de(de_ListNodesCommand).build() {
      static {
        __name(this, "ListNodesCommand");
      }
      static {
        __name2(this, "ListNodesCommand");
      }
    };
    var ListNodesSummaryCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "ListNodesSummary", {}).n("SSMClient", "ListNodesSummaryCommand").f(void 0, void 0).ser(se_ListNodesSummaryCommand).de(de_ListNodesSummaryCommand).build() {
      static {
        __name(this, "ListNodesSummaryCommand");
      }
      static {
        __name2(this, "ListNodesSummaryCommand");
      }
    };
    var ListOpsItemEventsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "ListOpsItemEvents", {}).n("SSMClient", "ListOpsItemEventsCommand").f(void 0, void 0).ser(se_ListOpsItemEventsCommand).de(de_ListOpsItemEventsCommand).build() {
      static {
        __name(this, "ListOpsItemEventsCommand");
      }
      static {
        __name2(this, "ListOpsItemEventsCommand");
      }
    };
    var ListOpsItemRelatedItemsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "ListOpsItemRelatedItems", {}).n("SSMClient", "ListOpsItemRelatedItemsCommand").f(void 0, void 0).ser(se_ListOpsItemRelatedItemsCommand).de(de_ListOpsItemRelatedItemsCommand).build() {
      static {
        __name(this, "ListOpsItemRelatedItemsCommand");
      }
      static {
        __name2(this, "ListOpsItemRelatedItemsCommand");
      }
    };
    var ListOpsMetadataCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "ListOpsMetadata", {}).n("SSMClient", "ListOpsMetadataCommand").f(void 0, void 0).ser(se_ListOpsMetadataCommand).de(de_ListOpsMetadataCommand).build() {
      static {
        __name(this, "ListOpsMetadataCommand");
      }
      static {
        __name2(this, "ListOpsMetadataCommand");
      }
    };
    var ListResourceComplianceSummariesCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "ListResourceComplianceSummaries", {}).n("SSMClient", "ListResourceComplianceSummariesCommand").f(void 0, void 0).ser(se_ListResourceComplianceSummariesCommand).de(de_ListResourceComplianceSummariesCommand).build() {
      static {
        __name(this, "ListResourceComplianceSummariesCommand");
      }
      static {
        __name2(this, "ListResourceComplianceSummariesCommand");
      }
    };
    var ListResourceDataSyncCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "ListResourceDataSync", {}).n("SSMClient", "ListResourceDataSyncCommand").f(void 0, void 0).ser(se_ListResourceDataSyncCommand).de(de_ListResourceDataSyncCommand).build() {
      static {
        __name(this, "ListResourceDataSyncCommand");
      }
      static {
        __name2(this, "ListResourceDataSyncCommand");
      }
    };
    var ListTagsForResourceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "ListTagsForResource", {}).n("SSMClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
      static {
        __name(this, "ListTagsForResourceCommand");
      }
      static {
        __name2(this, "ListTagsForResourceCommand");
      }
    };
    var ModifyDocumentPermissionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "ModifyDocumentPermission", {}).n("SSMClient", "ModifyDocumentPermissionCommand").f(void 0, void 0).ser(se_ModifyDocumentPermissionCommand).de(de_ModifyDocumentPermissionCommand).build() {
      static {
        __name(this, "ModifyDocumentPermissionCommand");
      }
      static {
        __name2(this, "ModifyDocumentPermissionCommand");
      }
    };
    var PutComplianceItemsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "PutComplianceItems", {}).n("SSMClient", "PutComplianceItemsCommand").f(void 0, void 0).ser(se_PutComplianceItemsCommand).de(de_PutComplianceItemsCommand).build() {
      static {
        __name(this, "PutComplianceItemsCommand");
      }
      static {
        __name2(this, "PutComplianceItemsCommand");
      }
    };
    var PutInventoryCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "PutInventory", {}).n("SSMClient", "PutInventoryCommand").f(void 0, void 0).ser(se_PutInventoryCommand).de(de_PutInventoryCommand).build() {
      static {
        __name(this, "PutInventoryCommand");
      }
      static {
        __name2(this, "PutInventoryCommand");
      }
    };
    var PutParameterCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "PutParameter", {}).n("SSMClient", "PutParameterCommand").f(PutParameterRequestFilterSensitiveLog, void 0).ser(se_PutParameterCommand).de(de_PutParameterCommand).build() {
      static {
        __name(this, "PutParameterCommand");
      }
      static {
        __name2(this, "PutParameterCommand");
      }
    };
    var PutResourcePolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "PutResourcePolicy", {}).n("SSMClient", "PutResourcePolicyCommand").f(void 0, void 0).ser(se_PutResourcePolicyCommand).de(de_PutResourcePolicyCommand).build() {
      static {
        __name(this, "PutResourcePolicyCommand");
      }
      static {
        __name2(this, "PutResourcePolicyCommand");
      }
    };
    var RegisterDefaultPatchBaselineCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "RegisterDefaultPatchBaseline", {}).n("SSMClient", "RegisterDefaultPatchBaselineCommand").f(void 0, void 0).ser(se_RegisterDefaultPatchBaselineCommand).de(de_RegisterDefaultPatchBaselineCommand).build() {
      static {
        __name(this, "RegisterDefaultPatchBaselineCommand");
      }
      static {
        __name2(this, "RegisterDefaultPatchBaselineCommand");
      }
    };
    var RegisterPatchBaselineForPatchGroupCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "RegisterPatchBaselineForPatchGroup", {}).n("SSMClient", "RegisterPatchBaselineForPatchGroupCommand").f(void 0, void 0).ser(se_RegisterPatchBaselineForPatchGroupCommand).de(de_RegisterPatchBaselineForPatchGroupCommand).build() {
      static {
        __name(this, "RegisterPatchBaselineForPatchGroupCommand");
      }
      static {
        __name2(this, "RegisterPatchBaselineForPatchGroupCommand");
      }
    };
    var RegisterTargetWithMaintenanceWindowCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "RegisterTargetWithMaintenanceWindow", {}).n("SSMClient", "RegisterTargetWithMaintenanceWindowCommand").f(RegisterTargetWithMaintenanceWindowRequestFilterSensitiveLog, void 0).ser(se_RegisterTargetWithMaintenanceWindowCommand).de(de_RegisterTargetWithMaintenanceWindowCommand).build() {
      static {
        __name(this, "RegisterTargetWithMaintenanceWindowCommand");
      }
      static {
        __name2(this, "RegisterTargetWithMaintenanceWindowCommand");
      }
    };
    var RegisterTaskWithMaintenanceWindowCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "RegisterTaskWithMaintenanceWindow", {}).n("SSMClient", "RegisterTaskWithMaintenanceWindowCommand").f(RegisterTaskWithMaintenanceWindowRequestFilterSensitiveLog, void 0).ser(se_RegisterTaskWithMaintenanceWindowCommand).de(de_RegisterTaskWithMaintenanceWindowCommand).build() {
      static {
        __name(this, "RegisterTaskWithMaintenanceWindowCommand");
      }
      static {
        __name2(this, "RegisterTaskWithMaintenanceWindowCommand");
      }
    };
    var RemoveTagsFromResourceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "RemoveTagsFromResource", {}).n("SSMClient", "RemoveTagsFromResourceCommand").f(void 0, void 0).ser(se_RemoveTagsFromResourceCommand).de(de_RemoveTagsFromResourceCommand).build() {
      static {
        __name(this, "RemoveTagsFromResourceCommand");
      }
      static {
        __name2(this, "RemoveTagsFromResourceCommand");
      }
    };
    var ResetServiceSettingCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "ResetServiceSetting", {}).n("SSMClient", "ResetServiceSettingCommand").f(void 0, void 0).ser(se_ResetServiceSettingCommand).de(de_ResetServiceSettingCommand).build() {
      static {
        __name(this, "ResetServiceSettingCommand");
      }
      static {
        __name2(this, "ResetServiceSettingCommand");
      }
    };
    var ResumeSessionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "ResumeSession", {}).n("SSMClient", "ResumeSessionCommand").f(void 0, void 0).ser(se_ResumeSessionCommand).de(de_ResumeSessionCommand).build() {
      static {
        __name(this, "ResumeSessionCommand");
      }
      static {
        __name2(this, "ResumeSessionCommand");
      }
    };
    var SendAutomationSignalCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "SendAutomationSignal", {}).n("SSMClient", "SendAutomationSignalCommand").f(void 0, void 0).ser(se_SendAutomationSignalCommand).de(de_SendAutomationSignalCommand).build() {
      static {
        __name(this, "SendAutomationSignalCommand");
      }
      static {
        __name2(this, "SendAutomationSignalCommand");
      }
    };
    var SendCommandCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "SendCommand", {}).n("SSMClient", "SendCommandCommand").f(SendCommandRequestFilterSensitiveLog, SendCommandResultFilterSensitiveLog).ser(se_SendCommandCommand).de(de_SendCommandCommand).build() {
      static {
        __name(this, "SendCommandCommand");
      }
      static {
        __name2(this, "SendCommandCommand");
      }
    };
    var StartAccessRequestCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "StartAccessRequest", {}).n("SSMClient", "StartAccessRequestCommand").f(void 0, void 0).ser(se_StartAccessRequestCommand).de(de_StartAccessRequestCommand).build() {
      static {
        __name(this, "StartAccessRequestCommand");
      }
      static {
        __name2(this, "StartAccessRequestCommand");
      }
    };
    var StartAssociationsOnceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "StartAssociationsOnce", {}).n("SSMClient", "StartAssociationsOnceCommand").f(void 0, void 0).ser(se_StartAssociationsOnceCommand).de(de_StartAssociationsOnceCommand).build() {
      static {
        __name(this, "StartAssociationsOnceCommand");
      }
      static {
        __name2(this, "StartAssociationsOnceCommand");
      }
    };
    var StartAutomationExecutionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "StartAutomationExecution", {}).n("SSMClient", "StartAutomationExecutionCommand").f(void 0, void 0).ser(se_StartAutomationExecutionCommand).de(de_StartAutomationExecutionCommand).build() {
      static {
        __name(this, "StartAutomationExecutionCommand");
      }
      static {
        __name2(this, "StartAutomationExecutionCommand");
      }
    };
    var StartChangeRequestExecutionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "StartChangeRequestExecution", {}).n("SSMClient", "StartChangeRequestExecutionCommand").f(void 0, void 0).ser(se_StartChangeRequestExecutionCommand).de(de_StartChangeRequestExecutionCommand).build() {
      static {
        __name(this, "StartChangeRequestExecutionCommand");
      }
      static {
        __name2(this, "StartChangeRequestExecutionCommand");
      }
    };
    var StartExecutionPreviewCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "StartExecutionPreview", {}).n("SSMClient", "StartExecutionPreviewCommand").f(void 0, void 0).ser(se_StartExecutionPreviewCommand).de(de_StartExecutionPreviewCommand).build() {
      static {
        __name(this, "StartExecutionPreviewCommand");
      }
      static {
        __name2(this, "StartExecutionPreviewCommand");
      }
    };
    var StartSessionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "StartSession", {}).n("SSMClient", "StartSessionCommand").f(void 0, void 0).ser(se_StartSessionCommand).de(de_StartSessionCommand).build() {
      static {
        __name(this, "StartSessionCommand");
      }
      static {
        __name2(this, "StartSessionCommand");
      }
    };
    var StopAutomationExecutionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "StopAutomationExecution", {}).n("SSMClient", "StopAutomationExecutionCommand").f(void 0, void 0).ser(se_StopAutomationExecutionCommand).de(de_StopAutomationExecutionCommand).build() {
      static {
        __name(this, "StopAutomationExecutionCommand");
      }
      static {
        __name2(this, "StopAutomationExecutionCommand");
      }
    };
    var TerminateSessionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "TerminateSession", {}).n("SSMClient", "TerminateSessionCommand").f(void 0, void 0).ser(se_TerminateSessionCommand).de(de_TerminateSessionCommand).build() {
      static {
        __name(this, "TerminateSessionCommand");
      }
      static {
        __name2(this, "TerminateSessionCommand");
      }
    };
    var UnlabelParameterVersionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "UnlabelParameterVersion", {}).n("SSMClient", "UnlabelParameterVersionCommand").f(void 0, void 0).ser(se_UnlabelParameterVersionCommand).de(de_UnlabelParameterVersionCommand).build() {
      static {
        __name(this, "UnlabelParameterVersionCommand");
      }
      static {
        __name2(this, "UnlabelParameterVersionCommand");
      }
    };
    var UpdateAssociationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "UpdateAssociation", {}).n("SSMClient", "UpdateAssociationCommand").f(UpdateAssociationRequestFilterSensitiveLog, UpdateAssociationResultFilterSensitiveLog).ser(se_UpdateAssociationCommand).de(de_UpdateAssociationCommand).build() {
      static {
        __name(this, "UpdateAssociationCommand");
      }
      static {
        __name2(this, "UpdateAssociationCommand");
      }
    };
    var UpdateAssociationStatusCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "UpdateAssociationStatus", {}).n("SSMClient", "UpdateAssociationStatusCommand").f(void 0, UpdateAssociationStatusResultFilterSensitiveLog).ser(se_UpdateAssociationStatusCommand).de(de_UpdateAssociationStatusCommand).build() {
      static {
        __name(this, "UpdateAssociationStatusCommand");
      }
      static {
        __name2(this, "UpdateAssociationStatusCommand");
      }
    };
    var UpdateDocumentCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "UpdateDocument", {}).n("SSMClient", "UpdateDocumentCommand").f(void 0, void 0).ser(se_UpdateDocumentCommand).de(de_UpdateDocumentCommand).build() {
      static {
        __name(this, "UpdateDocumentCommand");
      }
      static {
        __name2(this, "UpdateDocumentCommand");
      }
    };
    var UpdateDocumentDefaultVersionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "UpdateDocumentDefaultVersion", {}).n("SSMClient", "UpdateDocumentDefaultVersionCommand").f(void 0, void 0).ser(se_UpdateDocumentDefaultVersionCommand).de(de_UpdateDocumentDefaultVersionCommand).build() {
      static {
        __name(this, "UpdateDocumentDefaultVersionCommand");
      }
      static {
        __name2(this, "UpdateDocumentDefaultVersionCommand");
      }
    };
    var UpdateDocumentMetadataCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "UpdateDocumentMetadata", {}).n("SSMClient", "UpdateDocumentMetadataCommand").f(void 0, void 0).ser(se_UpdateDocumentMetadataCommand).de(de_UpdateDocumentMetadataCommand).build() {
      static {
        __name(this, "UpdateDocumentMetadataCommand");
      }
      static {
        __name2(this, "UpdateDocumentMetadataCommand");
      }
    };
    var UpdateMaintenanceWindowCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "UpdateMaintenanceWindow", {}).n("SSMClient", "UpdateMaintenanceWindowCommand").f(UpdateMaintenanceWindowRequestFilterSensitiveLog, UpdateMaintenanceWindowResultFilterSensitiveLog).ser(se_UpdateMaintenanceWindowCommand).de(de_UpdateMaintenanceWindowCommand).build() {
      static {
        __name(this, "UpdateMaintenanceWindowCommand");
      }
      static {
        __name2(this, "UpdateMaintenanceWindowCommand");
      }
    };
    var UpdateMaintenanceWindowTargetCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "UpdateMaintenanceWindowTarget", {}).n("SSMClient", "UpdateMaintenanceWindowTargetCommand").f(UpdateMaintenanceWindowTargetRequestFilterSensitiveLog, UpdateMaintenanceWindowTargetResultFilterSensitiveLog).ser(se_UpdateMaintenanceWindowTargetCommand).de(de_UpdateMaintenanceWindowTargetCommand).build() {
      static {
        __name(this, "UpdateMaintenanceWindowTargetCommand");
      }
      static {
        __name2(this, "UpdateMaintenanceWindowTargetCommand");
      }
    };
    var UpdateMaintenanceWindowTaskCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "UpdateMaintenanceWindowTask", {}).n("SSMClient", "UpdateMaintenanceWindowTaskCommand").f(UpdateMaintenanceWindowTaskRequestFilterSensitiveLog, UpdateMaintenanceWindowTaskResultFilterSensitiveLog).ser(se_UpdateMaintenanceWindowTaskCommand).de(de_UpdateMaintenanceWindowTaskCommand).build() {
      static {
        __name(this, "UpdateMaintenanceWindowTaskCommand");
      }
      static {
        __name2(this, "UpdateMaintenanceWindowTaskCommand");
      }
    };
    var UpdateManagedInstanceRoleCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "UpdateManagedInstanceRole", {}).n("SSMClient", "UpdateManagedInstanceRoleCommand").f(void 0, void 0).ser(se_UpdateManagedInstanceRoleCommand).de(de_UpdateManagedInstanceRoleCommand).build() {
      static {
        __name(this, "UpdateManagedInstanceRoleCommand");
      }
      static {
        __name2(this, "UpdateManagedInstanceRoleCommand");
      }
    };
    var UpdateOpsItemCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "UpdateOpsItem", {}).n("SSMClient", "UpdateOpsItemCommand").f(void 0, void 0).ser(se_UpdateOpsItemCommand).de(de_UpdateOpsItemCommand).build() {
      static {
        __name(this, "UpdateOpsItemCommand");
      }
      static {
        __name2(this, "UpdateOpsItemCommand");
      }
    };
    var UpdateOpsMetadataCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "UpdateOpsMetadata", {}).n("SSMClient", "UpdateOpsMetadataCommand").f(void 0, void 0).ser(se_UpdateOpsMetadataCommand).de(de_UpdateOpsMetadataCommand).build() {
      static {
        __name(this, "UpdateOpsMetadataCommand");
      }
      static {
        __name2(this, "UpdateOpsMetadataCommand");
      }
    };
    var UpdatePatchBaselineCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "UpdatePatchBaseline", {}).n("SSMClient", "UpdatePatchBaselineCommand").f(UpdatePatchBaselineRequestFilterSensitiveLog, UpdatePatchBaselineResultFilterSensitiveLog).ser(se_UpdatePatchBaselineCommand).de(de_UpdatePatchBaselineCommand).build() {
      static {
        __name(this, "UpdatePatchBaselineCommand");
      }
      static {
        __name2(this, "UpdatePatchBaselineCommand");
      }
    };
    var UpdateResourceDataSyncCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "UpdateResourceDataSync", {}).n("SSMClient", "UpdateResourceDataSyncCommand").f(void 0, void 0).ser(se_UpdateResourceDataSyncCommand).de(de_UpdateResourceDataSyncCommand).build() {
      static {
        __name(this, "UpdateResourceDataSyncCommand");
      }
      static {
        __name2(this, "UpdateResourceDataSyncCommand");
      }
    };
    var UpdateServiceSettingCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command3, cs, config, o3) {
      return [
        (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
        (0, import_middleware_endpoint8.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
      ];
    }).s("AmazonSSM", "UpdateServiceSetting", {}).n("SSMClient", "UpdateServiceSettingCommand").f(void 0, void 0).ser(se_UpdateServiceSettingCommand).de(de_UpdateServiceSettingCommand).build() {
      static {
        __name(this, "UpdateServiceSettingCommand");
      }
      static {
        __name2(this, "UpdateServiceSettingCommand");
      }
    };
    var commands3 = {
      AddTagsToResourceCommand,
      AssociateOpsItemRelatedItemCommand,
      CancelCommandCommand,
      CancelMaintenanceWindowExecutionCommand,
      CreateActivationCommand,
      CreateAssociationCommand,
      CreateAssociationBatchCommand,
      CreateDocumentCommand,
      CreateMaintenanceWindowCommand,
      CreateOpsItemCommand,
      CreateOpsMetadataCommand,
      CreatePatchBaselineCommand,
      CreateResourceDataSyncCommand,
      DeleteActivationCommand,
      DeleteAssociationCommand,
      DeleteDocumentCommand,
      DeleteInventoryCommand,
      DeleteMaintenanceWindowCommand,
      DeleteOpsItemCommand,
      DeleteOpsMetadataCommand,
      DeleteParameterCommand,
      DeleteParametersCommand,
      DeletePatchBaselineCommand,
      DeleteResourceDataSyncCommand,
      DeleteResourcePolicyCommand,
      DeregisterManagedInstanceCommand,
      DeregisterPatchBaselineForPatchGroupCommand,
      DeregisterTargetFromMaintenanceWindowCommand,
      DeregisterTaskFromMaintenanceWindowCommand,
      DescribeActivationsCommand,
      DescribeAssociationCommand,
      DescribeAssociationExecutionsCommand,
      DescribeAssociationExecutionTargetsCommand,
      DescribeAutomationExecutionsCommand,
      DescribeAutomationStepExecutionsCommand,
      DescribeAvailablePatchesCommand,
      DescribeDocumentCommand,
      DescribeDocumentPermissionCommand,
      DescribeEffectiveInstanceAssociationsCommand,
      DescribeEffectivePatchesForPatchBaselineCommand,
      DescribeInstanceAssociationsStatusCommand,
      DescribeInstanceInformationCommand,
      DescribeInstancePatchesCommand,
      DescribeInstancePatchStatesCommand,
      DescribeInstancePatchStatesForPatchGroupCommand,
      DescribeInstancePropertiesCommand,
      DescribeInventoryDeletionsCommand,
      DescribeMaintenanceWindowExecutionsCommand,
      DescribeMaintenanceWindowExecutionTaskInvocationsCommand,
      DescribeMaintenanceWindowExecutionTasksCommand,
      DescribeMaintenanceWindowsCommand,
      DescribeMaintenanceWindowScheduleCommand,
      DescribeMaintenanceWindowsForTargetCommand,
      DescribeMaintenanceWindowTargetsCommand,
      DescribeMaintenanceWindowTasksCommand,
      DescribeOpsItemsCommand,
      DescribeParametersCommand,
      DescribePatchBaselinesCommand,
      DescribePatchGroupsCommand,
      DescribePatchGroupStateCommand,
      DescribePatchPropertiesCommand,
      DescribeSessionsCommand,
      DisassociateOpsItemRelatedItemCommand,
      GetAccessTokenCommand,
      GetAutomationExecutionCommand,
      GetCalendarStateCommand,
      GetCommandInvocationCommand,
      GetConnectionStatusCommand,
      GetDefaultPatchBaselineCommand,
      GetDeployablePatchSnapshotForInstanceCommand,
      GetDocumentCommand,
      GetExecutionPreviewCommand,
      GetInventoryCommand,
      GetInventorySchemaCommand,
      GetMaintenanceWindowCommand,
      GetMaintenanceWindowExecutionCommand,
      GetMaintenanceWindowExecutionTaskCommand,
      GetMaintenanceWindowExecutionTaskInvocationCommand,
      GetMaintenanceWindowTaskCommand,
      GetOpsItemCommand,
      GetOpsMetadataCommand,
      GetOpsSummaryCommand,
      GetParameterCommand: GetParameterCommand2,
      GetParameterHistoryCommand,
      GetParametersCommand,
      GetParametersByPathCommand,
      GetPatchBaselineCommand,
      GetPatchBaselineForPatchGroupCommand,
      GetResourcePoliciesCommand,
      GetServiceSettingCommand,
      LabelParameterVersionCommand,
      ListAssociationsCommand,
      ListAssociationVersionsCommand,
      ListCommandInvocationsCommand,
      ListCommandsCommand,
      ListComplianceItemsCommand,
      ListComplianceSummariesCommand,
      ListDocumentMetadataHistoryCommand,
      ListDocumentsCommand,
      ListDocumentVersionsCommand,
      ListInventoryEntriesCommand,
      ListNodesCommand,
      ListNodesSummaryCommand,
      ListOpsItemEventsCommand,
      ListOpsItemRelatedItemsCommand,
      ListOpsMetadataCommand,
      ListResourceComplianceSummariesCommand,
      ListResourceDataSyncCommand,
      ListTagsForResourceCommand,
      ModifyDocumentPermissionCommand,
      PutComplianceItemsCommand,
      PutInventoryCommand,
      PutParameterCommand,
      PutResourcePolicyCommand,
      RegisterDefaultPatchBaselineCommand,
      RegisterPatchBaselineForPatchGroupCommand,
      RegisterTargetWithMaintenanceWindowCommand,
      RegisterTaskWithMaintenanceWindowCommand,
      RemoveTagsFromResourceCommand,
      ResetServiceSettingCommand,
      ResumeSessionCommand,
      SendAutomationSignalCommand,
      SendCommandCommand,
      StartAccessRequestCommand,
      StartAssociationsOnceCommand,
      StartAutomationExecutionCommand,
      StartChangeRequestExecutionCommand,
      StartExecutionPreviewCommand,
      StartSessionCommand,
      StopAutomationExecutionCommand,
      TerminateSessionCommand,
      UnlabelParameterVersionCommand,
      UpdateAssociationCommand,
      UpdateAssociationStatusCommand,
      UpdateDocumentCommand,
      UpdateDocumentDefaultVersionCommand,
      UpdateDocumentMetadataCommand,
      UpdateMaintenanceWindowCommand,
      UpdateMaintenanceWindowTargetCommand,
      UpdateMaintenanceWindowTaskCommand,
      UpdateManagedInstanceRoleCommand,
      UpdateOpsItemCommand,
      UpdateOpsMetadataCommand,
      UpdatePatchBaselineCommand,
      UpdateResourceDataSyncCommand,
      UpdateServiceSettingCommand
    };
    var SSM = class extends SSMClient2 {
      static {
        __name(this, "SSM");
      }
      static {
        __name2(this, "SSM");
      }
    };
    (0, import_smithy_client28.createAggregatedClient)(commands3, SSM);
    var paginateDescribeActivations = (0, import_core17.createPaginator)(SSMClient2, DescribeActivationsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeAssociationExecutionTargets = (0, import_core17.createPaginator)(SSMClient2, DescribeAssociationExecutionTargetsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeAssociationExecutions = (0, import_core17.createPaginator)(SSMClient2, DescribeAssociationExecutionsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeAutomationExecutions = (0, import_core17.createPaginator)(SSMClient2, DescribeAutomationExecutionsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeAutomationStepExecutions = (0, import_core17.createPaginator)(SSMClient2, DescribeAutomationStepExecutionsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeAvailablePatches = (0, import_core17.createPaginator)(SSMClient2, DescribeAvailablePatchesCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeEffectiveInstanceAssociations = (0, import_core17.createPaginator)(SSMClient2, DescribeEffectiveInstanceAssociationsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeEffectivePatchesForPatchBaseline = (0, import_core17.createPaginator)(SSMClient2, DescribeEffectivePatchesForPatchBaselineCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeInstanceAssociationsStatus = (0, import_core17.createPaginator)(SSMClient2, DescribeInstanceAssociationsStatusCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeInstanceInformation = (0, import_core17.createPaginator)(SSMClient2, DescribeInstanceInformationCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeInstancePatchStatesForPatchGroup = (0, import_core17.createPaginator)(SSMClient2, DescribeInstancePatchStatesForPatchGroupCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeInstancePatchStates = (0, import_core17.createPaginator)(SSMClient2, DescribeInstancePatchStatesCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeInstancePatches = (0, import_core17.createPaginator)(SSMClient2, DescribeInstancePatchesCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeInstanceProperties = (0, import_core17.createPaginator)(SSMClient2, DescribeInstancePropertiesCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeInventoryDeletions = (0, import_core17.createPaginator)(SSMClient2, DescribeInventoryDeletionsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeMaintenanceWindowExecutionTaskInvocations = (0, import_core17.createPaginator)(SSMClient2, DescribeMaintenanceWindowExecutionTaskInvocationsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeMaintenanceWindowExecutionTasks = (0, import_core17.createPaginator)(SSMClient2, DescribeMaintenanceWindowExecutionTasksCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeMaintenanceWindowExecutions = (0, import_core17.createPaginator)(SSMClient2, DescribeMaintenanceWindowExecutionsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeMaintenanceWindowSchedule = (0, import_core17.createPaginator)(SSMClient2, DescribeMaintenanceWindowScheduleCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeMaintenanceWindowTargets = (0, import_core17.createPaginator)(SSMClient2, DescribeMaintenanceWindowTargetsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeMaintenanceWindowTasks = (0, import_core17.createPaginator)(SSMClient2, DescribeMaintenanceWindowTasksCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeMaintenanceWindowsForTarget = (0, import_core17.createPaginator)(SSMClient2, DescribeMaintenanceWindowsForTargetCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeMaintenanceWindows = (0, import_core17.createPaginator)(SSMClient2, DescribeMaintenanceWindowsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeOpsItems = (0, import_core17.createPaginator)(SSMClient2, DescribeOpsItemsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeParameters = (0, import_core17.createPaginator)(SSMClient2, DescribeParametersCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribePatchBaselines = (0, import_core17.createPaginator)(SSMClient2, DescribePatchBaselinesCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribePatchGroups = (0, import_core17.createPaginator)(SSMClient2, DescribePatchGroupsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribePatchProperties = (0, import_core17.createPaginator)(SSMClient2, DescribePatchPropertiesCommand, "NextToken", "NextToken", "MaxResults");
    var paginateDescribeSessions = (0, import_core17.createPaginator)(SSMClient2, DescribeSessionsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateGetInventory = (0, import_core17.createPaginator)(SSMClient2, GetInventoryCommand, "NextToken", "NextToken", "MaxResults");
    var paginateGetInventorySchema = (0, import_core17.createPaginator)(SSMClient2, GetInventorySchemaCommand, "NextToken", "NextToken", "MaxResults");
    var paginateGetOpsSummary = (0, import_core17.createPaginator)(SSMClient2, GetOpsSummaryCommand, "NextToken", "NextToken", "MaxResults");
    var paginateGetParameterHistory = (0, import_core17.createPaginator)(SSMClient2, GetParameterHistoryCommand, "NextToken", "NextToken", "MaxResults");
    var paginateGetParametersByPath = (0, import_core17.createPaginator)(SSMClient2, GetParametersByPathCommand, "NextToken", "NextToken", "MaxResults");
    var paginateGetResourcePolicies = (0, import_core17.createPaginator)(SSMClient2, GetResourcePoliciesCommand, "NextToken", "NextToken", "MaxResults");
    var paginateListAssociationVersions = (0, import_core17.createPaginator)(SSMClient2, ListAssociationVersionsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateListAssociations = (0, import_core17.createPaginator)(SSMClient2, ListAssociationsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateListCommandInvocations = (0, import_core17.createPaginator)(SSMClient2, ListCommandInvocationsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateListCommands = (0, import_core17.createPaginator)(SSMClient2, ListCommandsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateListComplianceItems = (0, import_core17.createPaginator)(SSMClient2, ListComplianceItemsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateListComplianceSummaries = (0, import_core17.createPaginator)(SSMClient2, ListComplianceSummariesCommand, "NextToken", "NextToken", "MaxResults");
    var paginateListDocumentVersions = (0, import_core17.createPaginator)(SSMClient2, ListDocumentVersionsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateListDocuments = (0, import_core17.createPaginator)(SSMClient2, ListDocumentsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateListNodes = (0, import_core17.createPaginator)(SSMClient2, ListNodesCommand, "NextToken", "NextToken", "MaxResults");
    var paginateListNodesSummary = (0, import_core17.createPaginator)(SSMClient2, ListNodesSummaryCommand, "NextToken", "NextToken", "MaxResults");
    var paginateListOpsItemEvents = (0, import_core17.createPaginator)(SSMClient2, ListOpsItemEventsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateListOpsItemRelatedItems = (0, import_core17.createPaginator)(SSMClient2, ListOpsItemRelatedItemsCommand, "NextToken", "NextToken", "MaxResults");
    var paginateListOpsMetadata = (0, import_core17.createPaginator)(SSMClient2, ListOpsMetadataCommand, "NextToken", "NextToken", "MaxResults");
    var paginateListResourceComplianceSummaries = (0, import_core17.createPaginator)(SSMClient2, ListResourceComplianceSummariesCommand, "NextToken", "NextToken", "MaxResults");
    var paginateListResourceDataSync = (0, import_core17.createPaginator)(SSMClient2, ListResourceDataSyncCommand, "NextToken", "NextToken", "MaxResults");
    var import_util_waiter = require_dist_cjs53();
    var checkState = /* @__PURE__ */ __name2(async (client, input) => {
      let reason;
      try {
        const result2 = await client.send(new GetCommandInvocationCommand(input));
        reason = result2;
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            return result2.Status;
          }, "returnComparator");
          if (returnComparator() === "Pending") {
            return { state: import_util_waiter.WaiterState.RETRY, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            return result2.Status;
          }, "returnComparator");
          if (returnComparator() === "InProgress") {
            return { state: import_util_waiter.WaiterState.RETRY, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            return result2.Status;
          }, "returnComparator");
          if (returnComparator() === "Delayed") {
            return { state: import_util_waiter.WaiterState.RETRY, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            return result2.Status;
          }, "returnComparator");
          if (returnComparator() === "Success") {
            return { state: import_util_waiter.WaiterState.SUCCESS, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            return result2.Status;
          }, "returnComparator");
          if (returnComparator() === "Cancelled") {
            return { state: import_util_waiter.WaiterState.FAILURE, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            return result2.Status;
          }, "returnComparator");
          if (returnComparator() === "TimedOut") {
            return { state: import_util_waiter.WaiterState.FAILURE, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            return result2.Status;
          }, "returnComparator");
          if (returnComparator() === "Failed") {
            return { state: import_util_waiter.WaiterState.FAILURE, reason };
          }
        } catch (e3) {
        }
        try {
          const returnComparator = /* @__PURE__ */ __name2(() => {
            return result2.Status;
          }, "returnComparator");
          if (returnComparator() === "Cancelling") {
            return { state: import_util_waiter.WaiterState.FAILURE, reason };
          }
        } catch (e3) {
        }
      } catch (exception) {
        reason = exception;
        if (exception.name && exception.name == "InvocationDoesNotExist") {
          return { state: import_util_waiter.WaiterState.RETRY, reason };
        }
      }
      return { state: import_util_waiter.WaiterState.RETRY, reason };
    }, "checkState");
    var waitForCommandExecuted = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 5, maxDelay: 120 };
      return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
    }, "waitForCommandExecuted");
    var waitUntilCommandExecuted = /* @__PURE__ */ __name2(async (params, input) => {
      const serviceDefaults = { minDelay: 5, maxDelay: 120 };
      const result2 = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
      return (0, import_util_waiter.checkExceptions)(result2);
    }, "waitUntilCommandExecuted");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/aws-auth/account-cache.ts
var path20, fs19, AccountAccessKeyCache;
var init_account_cache = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/aws-auth/account-cache.ts"() {
    "use strict";
    path20 = __toESM(require("path"));
    fs19 = __toESM(require_lib4());
    init_util3();
    AccountAccessKeyCache = class _AccountAccessKeyCache {
      static {
        __name(this, "AccountAccessKeyCache");
      }
      /**
       * Max number of entries in the cache, after which the cache will be reset.
       */
      static MAX_ENTRIES = 1e3;
      /**
       * The default path used for the accounts access key cache
       */
      static get DEFAULT_PATH() {
        return path20.join(cdkCacheDir(), "accounts_partitions.json");
      }
      cacheFile;
      debug;
      /**
       * @param filePath - Path to the cache file
       */
      constructor(filePath = _AccountAccessKeyCache.DEFAULT_PATH, debugFn) {
        this.cacheFile = filePath;
        this.debug = debugFn;
      }
      /**
       * Tries to fetch the account ID from cache. If it's not in the cache, invokes
       * the resolver function which should retrieve the account ID and return it.
       * Then, it will be stored into disk cache returned.
       *
       * Example:
       *
       *    const accountId = cache.fetch(accessKey, async () => {
       *      return await fetchAccountIdFromSomewhere(accessKey);
       *    });
       */
      async fetch(accessKeyId, resolver) {
        const cached4 = await this.get(accessKeyId);
        if (cached4) {
          await this.debug(`Retrieved account ID ${cached4.accountId} from disk cache`);
          return cached4;
        }
        const account = await resolver();
        if (account) {
          await this.put(accessKeyId, account);
        }
        return account;
      }
      /** Get the account ID from an access key or undefined if not in cache */
      async get(accessKeyId) {
        const map3 = await this.loadMap();
        return map3[accessKeyId];
      }
      /** Put a mapping between access key and account ID */
      async put(accessKeyId, account) {
        let map3 = await this.loadMap();
        if (Object.keys(map3).length >= _AccountAccessKeyCache.MAX_ENTRIES) {
          map3 = {};
        }
        map3[accessKeyId] = account;
        await this.saveMap(map3);
      }
      async loadMap() {
        try {
          return await fs19.readJson(this.cacheFile);
        } catch (e3) {
          if (e3.code === "ENOENT" || e3.code === "EACCES") {
            return {};
          }
          if (e3 instanceof SyntaxError) {
            return {};
          }
          throw e3;
        }
      }
      async saveMap(map3) {
        try {
          await fs19.ensureFile(this.cacheFile);
          await fs19.writeJson(this.cacheFile, map3, { spaces: 2 });
        } catch (e3) {
          if (e3.code === "ENOENT" || e3.code === "EACCES" || e3.code === "EROFS") {
            return;
          }
          throw e3;
        }
      }
    };
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/aws-auth/cached.ts
function cached2(obj, sym, fn) {
  if (!(sym in obj)) {
    obj[sym] = fn();
  }
  return obj[sym];
}
async function cachedAsync(obj, sym, fn) {
  if (!(sym in obj)) {
    obj[sym] = await fn();
  }
  return obj[sym];
}
var init_cached = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/aws-auth/cached.ts"() {
    "use strict";
    __name(cached2, "cached");
    __name(cachedAsync, "cachedAsync");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/aws-auth/tracing.ts
function setSdkTracing(enabled) {
  ENABLED = enabled;
}
function callTrace(fn, className, logger4) {
  if (!ENABLED || !logger4) {
    return;
  }
  logger4.info(`[trace] ${" ".repeat(INDENT)}${className || "(anonymous)"}#${fn}()`);
}
function traceCall(receiver, _propertyKey, descriptor, parentClassName) {
  const fn = descriptor.value;
  const className = typeof receiver === "function" ? receiver.name : parentClassName;
  descriptor.value = function(...args) {
    const logger4 = this.logger;
    if (!ENABLED || typeof logger4?.info !== "function") {
      return fn.apply(this, args);
    }
    logger4.info.apply(logger4, [`[trace] ${" ".repeat(INDENT)}${className || this.constructor.name || "(anonymous)"}#${fn.name}()`]);
    INDENT += 2;
    const ret = fn.apply(this, args);
    if (ret instanceof Promise) {
      return ret.finally(() => {
        INDENT -= 2;
      });
    } else {
      INDENT -= 2;
      return ret;
    }
  };
  return descriptor;
}
function traceMemberMethods(constructor) {
  for (const [name, descriptor] of Object.entries(Object.getOwnPropertyDescriptors(constructor.prototype))) {
    if (typeof descriptor.value !== "function") {
      continue;
    }
    const newDescriptor = traceCall(constructor.prototype, name, descriptor, constructor.name) ?? descriptor;
    Object.defineProperty(constructor.prototype, name, newDescriptor);
  }
}
var ENABLED, INDENT;
var init_tracing = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/aws-auth/tracing.ts"() {
    "use strict";
    ENABLED = false;
    INDENT = 0;
    __name(setSdkTracing, "setSdkTracing");
    __name(callTrace, "callTrace");
    __name(traceCall, "traceCall");
    __name(traceMemberMethods, "traceMemberMethods");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/aws-auth/util.ts
function readIfPossible(filename) {
  try {
    if (!fs20.pathExistsSync(filename)) {
      return void 0;
    }
    return fs20.readFileSync(filename, { encoding: "utf-8" });
  } catch (e3) {
    return void 0;
  }
}
var fs20;
var init_util6 = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/aws-auth/util.ts"() {
    "use strict";
    fs20 = __toESM(require_lib4());
    __name(readIfPossible, "readIfPossible");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/aws-auth/user-agent.ts
function defaultCliUserAgent() {
  const root = bundledPackageRootDir(__dirname, false);
  const pkg = JSON.parse((root ? readIfPossible(path21.join(root, "package.json")) : void 0) ?? "{}");
  const name = pkg.name ?? path21.basename(process.argv[1] ?? "cdk-cli");
  const version2 = pkg.version ?? "<unknown>";
  return `${name}/${version2}`;
}
var path21;
var init_user_agent = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/aws-auth/user-agent.ts"() {
    "use strict";
    path21 = __toESM(require("path"));
    init_util6();
    init_util3();
    __name(defaultCliUserAgent, "defaultCliUserAgent");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/aws-auth/sdk.ts
function makeSdkLoggerSafeByBindingThis(logger4) {
  return {
    debug: logger4.debug.bind(logger4),
    info: logger4.info.bind(logger4),
    warn: logger4.warn.bind(logger4),
    error: logger4.error.bind(logger4)
  };
}
var import_client_appsync, import_client_cloudcontrol, import_client_cloudformation3, import_client_cloudwatch_logs, import_client_codebuild, import_client_ec2, import_client_ecr2, import_client_ecs, import_client_elastic_load_balancing_v2, import_client_iam, import_client_kms, import_client_lambda, import_client_route_53, import_client_s33, import_client_secrets_manager2, import_client_sfn, import_client_ssm, import_client_sts2, import_lib_storage2, import_middleware_endpoint7, import_util_retry3, SDK, CURRENT_ACCOUNT_KEY;
var init_sdk2 = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/aws-auth/sdk.ts"() {
    "use strict";
    import_client_appsync = __toESM(require_dist_cjs81());
    import_client_cloudcontrol = __toESM(require_dist_cjs82());
    import_client_cloudformation3 = __toESM(require_dist_cjs80());
    import_client_cloudwatch_logs = __toESM(require_dist_cjs83());
    import_client_codebuild = __toESM(require_dist_cjs84());
    import_client_ec2 = __toESM(require_dist_cjs87());
    import_client_ecr2 = __toESM(require_dist_cjs54());
    import_client_ecs = __toESM(require_dist_cjs88());
    import_client_elastic_load_balancing_v2 = __toESM(require_dist_cjs89());
    import_client_iam = __toESM(require_dist_cjs90());
    import_client_kms = __toESM(require_dist_cjs91());
    import_client_lambda = __toESM(require_dist_cjs92());
    import_client_route_53 = __toESM(require_dist_cjs94());
    import_client_s33 = __toESM(require_dist_cjs71());
    import_client_secrets_manager2 = __toESM(require_dist_cjs72());
    import_client_sfn = __toESM(require_dist_cjs95());
    import_client_ssm = __toESM(require_dist_cjs96());
    import_client_sts2 = __toESM(require_dist_cjs73());
    import_lib_storage2 = __toESM(require_dist_cjs79());
    import_middleware_endpoint7 = __toESM(require_dist_cjs34());
    import_util_retry3 = __toESM(require_dist_cjs36());
    init_account_cache();
    init_cached();
    init_tracing();
    init_user_agent();
    init_toolkit_error();
    init_util3();
    SDK = class {
      constructor(credProvider, region, requestHandler, ioHelper, logger4) {
        this.credProvider = credProvider;
        const debugFn = /* @__PURE__ */ __name(async (msg) => ioHelper.defaults.debug(msg), "debugFn");
        this.accountCache = new AccountAccessKeyCache(AccountAccessKeyCache.DEFAULT_PATH, debugFn);
        this.debug = debugFn;
        this.config = {
          region,
          credentials: credProvider,
          requestHandler,
          retryStrategy: new import_util_retry3.ConfiguredRetryStrategy(7, (attempt) => 300 * 2 ** attempt),
          customUserAgent: defaultCliUserAgent(),
          logger: logger4 ? makeSdkLoggerSafeByBindingThis(logger4) : void 0
        };
        this.currentRegion = region;
      }
      currentRegion;
      config;
      accountCache;
      /**
       * STS is used to check credential validity, don't do too many retries.
       */
      stsRetryStrategy = new import_util_retry3.ConfiguredRetryStrategy(3, (attempt) => 100 * 2 ** attempt);
      /**
       * Whether we have proof that the credentials have not expired
       *
       * We need to do some manual plumbing around this because the JS SDKv2 treats `ExpiredToken`
       * as retriable and we have hefty retries on CFN calls making the CLI hang for a good 15 minutes
       * if the credentials have expired.
       */
      _credentialsValidated = false;
      /**
       * A function to create debug messages
       */
      debug;
      appendCustomUserAgent(userAgentData) {
        if (!userAgentData) {
          return;
        }
        const currentCustomUserAgent = this.config.customUserAgent;
        this.config.customUserAgent = currentCustomUserAgent ? `${currentCustomUserAgent} ${userAgentData}` : userAgentData;
      }
      removeCustomUserAgent(userAgentData) {
        this.config.customUserAgent = this.config.customUserAgent?.replace(userAgentData, "");
      }
      appsync() {
        const client = new import_client_appsync.AppSyncClient(this.config);
        return {
          getSchemaCreationStatus: /* @__PURE__ */ __name((input) => client.send(new import_client_appsync.GetSchemaCreationStatusCommand(input)), "getSchemaCreationStatus"),
          startSchemaCreation: /* @__PURE__ */ __name((input) => client.send(new import_client_appsync.StartSchemaCreationCommand(input)), "startSchemaCreation"),
          updateApiKey: /* @__PURE__ */ __name((input) => client.send(new import_client_appsync.UpdateApiKeyCommand(input)), "updateApiKey"),
          updateFunction: /* @__PURE__ */ __name((input) => client.send(new import_client_appsync.UpdateFunctionCommand(input)), "updateFunction"),
          updateResolver: /* @__PURE__ */ __name((input) => client.send(new import_client_appsync.UpdateResolverCommand(input)), "updateResolver"),
          // Pagination Functions
          listFunctions: /* @__PURE__ */ __name(async (input) => {
            const functions = Array();
            const paginator = (0, import_client_appsync.paginateListFunctions)({ client }, input);
            for await (const page of paginator) {
              functions.push(...page.functions || []);
            }
            return functions;
          }, "listFunctions")
        };
      }
      cloudControl() {
        const client = new import_client_cloudcontrol.CloudControlClient(this.config);
        return {
          listResources: /* @__PURE__ */ __name((input) => client.send(new import_client_cloudcontrol.ListResourcesCommand(input)), "listResources"),
          getResource: /* @__PURE__ */ __name((input) => client.send(new import_client_cloudcontrol.GetResourceCommand(input)), "getResource")
        };
      }
      cloudFormation() {
        const client = new import_client_cloudformation3.CloudFormationClient({
          ...this.config,
          retryStrategy: new import_util_retry3.ConfiguredRetryStrategy(11, (attempt) => 1e3 * 2 ** attempt)
        });
        return {
          continueUpdateRollback: /* @__PURE__ */ __name(async (input) => client.send(new import_client_cloudformation3.ContinueUpdateRollbackCommand(input)), "continueUpdateRollback"),
          createChangeSet: /* @__PURE__ */ __name((input) => client.send(new import_client_cloudformation3.CreateChangeSetCommand(input)), "createChangeSet"),
          createGeneratedTemplate: /* @__PURE__ */ __name((input) => client.send(new import_client_cloudformation3.CreateGeneratedTemplateCommand(input)), "createGeneratedTemplate"),
          createStack: /* @__PURE__ */ __name((input) => client.send(new import_client_cloudformation3.CreateStackCommand(input)), "createStack"),
          deleteChangeSet: /* @__PURE__ */ __name((input) => client.send(new import_client_cloudformation3.DeleteChangeSetCommand(input)), "deleteChangeSet"),
          deleteGeneratedTemplate: /* @__PURE__ */ __name((input) => client.send(new import_client_cloudformation3.DeleteGeneratedTemplateCommand(input)), "deleteGeneratedTemplate"),
          deleteStack: /* @__PURE__ */ __name((input) => client.send(new import_client_cloudformation3.DeleteStackCommand(input)), "deleteStack"),
          detectStackDrift: /* @__PURE__ */ __name((input) => client.send(new import_client_cloudformation3.DetectStackDriftCommand(input)), "detectStackDrift"),
          detectStackResourceDrift: /* @__PURE__ */ __name((input) => client.send(new import_client_cloudformation3.DetectStackResourceDriftCommand(input)), "detectStackResourceDrift"),
          describeChangeSet: /* @__PURE__ */ __name((input) => client.send(new import_client_cloudformation3.DescribeChangeSetCommand(input)), "describeChangeSet"),
          describeGeneratedTemplate: /* @__PURE__ */ __name((input) => client.send(new import_client_cloudformation3.DescribeGeneratedTemplateCommand(input)), "describeGeneratedTemplate"),
          describeResourceScan: /* @__PURE__ */ __name((input) => client.send(new import_client_cloudformation3.DescribeResourceScanCommand(input)), "describeResourceScan"),
          describeStackDriftDetectionStatus: /* @__PURE__ */ __name((input) => client.send(new import_client_cloudformation3.DescribeStackDriftDetectionStatusCommand(input)), "describeStackDriftDetectionStatus"),
          describeStackResourceDrifts: /* @__PURE__ */ __name((input) => client.send(new import_client_cloudformation3.DescribeStackResourceDriftsCommand(input)), "describeStackResourceDrifts"),
          describeStacks: /* @__PURE__ */ __name((input) => client.send(new import_client_cloudformation3.DescribeStacksCommand(input)), "describeStacks"),
          describeStackResources: /* @__PURE__ */ __name((input) => client.send(new import_client_cloudformation3.DescribeStackResourcesCommand(input)), "describeStackResources"),
          executeChangeSet: /* @__PURE__ */ __name((input) => client.send(new import_client_cloudformation3.ExecuteChangeSetCommand(input)), "executeChangeSet"),
          getGeneratedTemplate: /* @__PURE__ */ __name((input) => client.send(new import_client_cloudformation3.GetGeneratedTemplateCommand(input)), "getGeneratedTemplate"),
          getTemplate: /* @__PURE__ */ __name((input) => client.send(new import_client_cloudformation3.GetTemplateCommand(input)), "getTemplate"),
          getTemplateSummary: /* @__PURE__ */ __name((input) => client.send(new import_client_cloudformation3.GetTemplateSummaryCommand(input)), "getTemplateSummary"),
          listExports: /* @__PURE__ */ __name((input) => client.send(new import_client_cloudformation3.ListExportsCommand(input)), "listExports"),
          listResourceScanRelatedResources: /* @__PURE__ */ __name((input) => client.send(new import_client_cloudformation3.ListResourceScanRelatedResourcesCommand(input)), "listResourceScanRelatedResources"),
          listResourceScanResources: /* @__PURE__ */ __name((input) => client.send(new import_client_cloudformation3.ListResourceScanResourcesCommand(input)), "listResourceScanResources"),
          listResourceScans: /* @__PURE__ */ __name((input) => client.send(new import_client_cloudformation3.ListResourceScansCommand(input)), "listResourceScans"),
          listStacks: /* @__PURE__ */ __name((input) => client.send(new import_client_cloudformation3.ListStacksCommand(input)), "listStacks"),
          rollbackStack: /* @__PURE__ */ __name((input) => client.send(new import_client_cloudformation3.RollbackStackCommand(input)), "rollbackStack"),
          startResourceScan: /* @__PURE__ */ __name((input) => client.send(new import_client_cloudformation3.StartResourceScanCommand(input)), "startResourceScan"),
          updateStack: /* @__PURE__ */ __name((input) => client.send(new import_client_cloudformation3.UpdateStackCommand(input)), "updateStack"),
          updateTerminationProtection: /* @__PURE__ */ __name((input) => client.send(new import_client_cloudformation3.UpdateTerminationProtectionCommand(input)), "updateTerminationProtection"),
          describeStackEvents: /* @__PURE__ */ __name((input) => {
            return client.send(new import_client_cloudformation3.DescribeStackEventsCommand(input));
          }, "describeStackEvents"),
          listStackResources: /* @__PURE__ */ __name(async (input) => {
            const stackResources = Array();
            const paginator = (0, import_client_cloudformation3.paginateListStackResources)({ client }, input);
            for await (const page of paginator) {
              stackResources.push(...page?.StackResourceSummaries || []);
            }
            return stackResources;
          }, "listStackResources"),
          paginatedListStacks: /* @__PURE__ */ __name(async (input) => {
            const stackResources = Array();
            const paginator = (0, import_client_cloudformation3.paginateListStacks)({ client }, input);
            for await (const page of paginator) {
              stackResources.push(...page?.StackSummaries || []);
            }
            return stackResources;
          }, "paginatedListStacks"),
          createStackRefactor: /* @__PURE__ */ __name((input) => {
            return client.send(new import_client_cloudformation3.CreateStackRefactorCommand(input));
          }, "createStackRefactor"),
          executeStackRefactor: /* @__PURE__ */ __name((input) => {
            return client.send(new import_client_cloudformation3.ExecuteStackRefactorCommand(input));
          }, "executeStackRefactor"),
          waitUntilStackRefactorCreateComplete: /* @__PURE__ */ __name((input) => {
            return (0, import_client_cloudformation3.waitUntilStackRefactorCreateComplete)(
              {
                client,
                maxWaitTime: 600,
                minDelay: 6,
                maxDelay: 6
              },
              input
            );
          }, "waitUntilStackRefactorCreateComplete"),
          waitUntilStackRefactorExecuteComplete: /* @__PURE__ */ __name((input) => {
            return (0, import_client_cloudformation3.waitUntilStackRefactorExecuteComplete)(
              {
                client,
                maxWaitTime: 600,
                minDelay: 6,
                maxDelay: 6
              },
              input
            );
          }, "waitUntilStackRefactorExecuteComplete")
        };
      }
      cloudWatchLogs() {
        const client = new import_client_cloudwatch_logs.CloudWatchLogsClient(this.config);
        return {
          describeLogGroups: /* @__PURE__ */ __name((input) => client.send(new import_client_cloudwatch_logs.DescribeLogGroupsCommand(input)), "describeLogGroups"),
          filterLogEvents: /* @__PURE__ */ __name((input) => client.send(new import_client_cloudwatch_logs.FilterLogEventsCommand(input)), "filterLogEvents")
        };
      }
      codeBuild() {
        const client = new import_client_codebuild.CodeBuildClient(this.config);
        return {
          updateProject: /* @__PURE__ */ __name((input) => client.send(new import_client_codebuild.UpdateProjectCommand(input)), "updateProject")
        };
      }
      ec2() {
        const client = new import_client_ec2.EC2Client(this.config);
        return {
          describeAvailabilityZones: /* @__PURE__ */ __name((input) => client.send(new import_client_ec2.DescribeAvailabilityZonesCommand(input)), "describeAvailabilityZones"),
          describeImages: /* @__PURE__ */ __name((input) => client.send(new import_client_ec2.DescribeImagesCommand(input)), "describeImages"),
          describeInstances: /* @__PURE__ */ __name((input) => client.send(new import_client_ec2.DescribeInstancesCommand(input)), "describeInstances"),
          describeRouteTables: /* @__PURE__ */ __name((input) => client.send(new import_client_ec2.DescribeRouteTablesCommand(input)), "describeRouteTables"),
          describeSecurityGroups: /* @__PURE__ */ __name((input) => client.send(new import_client_ec2.DescribeSecurityGroupsCommand(input)), "describeSecurityGroups"),
          describeSubnets: /* @__PURE__ */ __name((input) => client.send(new import_client_ec2.DescribeSubnetsCommand(input)), "describeSubnets"),
          describeVpcEndpointServices: /* @__PURE__ */ __name((input) => client.send(new import_client_ec2.DescribeVpcEndpointServicesCommand(input)), "describeVpcEndpointServices"),
          describeVpcs: /* @__PURE__ */ __name((input) => client.send(new import_client_ec2.DescribeVpcsCommand(input)), "describeVpcs"),
          describeVpnGateways: /* @__PURE__ */ __name((input) => client.send(new import_client_ec2.DescribeVpnGatewaysCommand(input)), "describeVpnGateways")
        };
      }
      ecr() {
        const client = new import_client_ecr2.ECRClient(this.config);
        return {
          batchDeleteImage: /* @__PURE__ */ __name((input) => client.send(new import_client_ecr2.BatchDeleteImageCommand(input)), "batchDeleteImage"),
          batchGetImage: /* @__PURE__ */ __name((input) => client.send(new import_client_ecr2.BatchGetImageCommand(input)), "batchGetImage"),
          createRepository: /* @__PURE__ */ __name((input) => client.send(new import_client_ecr2.CreateRepositoryCommand(input)), "createRepository"),
          describeImages: /* @__PURE__ */ __name((input) => client.send(new import_client_ecr2.DescribeImagesCommand(input)), "describeImages"),
          describeRepositories: /* @__PURE__ */ __name((input) => client.send(new import_client_ecr2.DescribeRepositoriesCommand(input)), "describeRepositories"),
          getAuthorizationToken: /* @__PURE__ */ __name((input) => client.send(new import_client_ecr2.GetAuthorizationTokenCommand(input)), "getAuthorizationToken"),
          listImages: /* @__PURE__ */ __name((input) => client.send(new import_client_ecr2.ListImagesCommand(input)), "listImages"),
          putImage: /* @__PURE__ */ __name((input) => client.send(new import_client_ecr2.PutImageCommand(input)), "putImage"),
          putImageScanningConfiguration: /* @__PURE__ */ __name((input) => client.send(new import_client_ecr2.PutImageScanningConfigurationCommand(input)), "putImageScanningConfiguration")
        };
      }
      ecs() {
        const client = new import_client_ecs.ECSClient(this.config);
        return {
          listClusters: /* @__PURE__ */ __name((input) => client.send(new import_client_ecs.ListClustersCommand(input)), "listClusters"),
          registerTaskDefinition: /* @__PURE__ */ __name((input) => client.send(new import_client_ecs.RegisterTaskDefinitionCommand(input)), "registerTaskDefinition"),
          updateService: /* @__PURE__ */ __name((input) => client.send(new import_client_ecs.UpdateServiceCommand(input)), "updateService"),
          // Waiters
          waitUntilServicesStable: /* @__PURE__ */ __name((input, timeoutSeconds) => {
            return (0, import_client_ecs.waitUntilServicesStable)(
              {
                client,
                maxWaitTime: timeoutSeconds ?? 600,
                minDelay: 6,
                maxDelay: 6
              },
              input
            );
          }, "waitUntilServicesStable")
        };
      }
      elbv2() {
        const client = new import_client_elastic_load_balancing_v2.ElasticLoadBalancingV2Client(this.config);
        return {
          describeListeners: /* @__PURE__ */ __name((input) => client.send(new import_client_elastic_load_balancing_v2.DescribeListenersCommand(input)), "describeListeners"),
          describeLoadBalancers: /* @__PURE__ */ __name((input) => client.send(new import_client_elastic_load_balancing_v2.DescribeLoadBalancersCommand(input)), "describeLoadBalancers"),
          describeTags: /* @__PURE__ */ __name((input) => client.send(new import_client_elastic_load_balancing_v2.DescribeTagsCommand(input)), "describeTags"),
          // Pagination Functions
          paginateDescribeListeners: /* @__PURE__ */ __name(async (input) => {
            const listeners = Array();
            const paginator = (0, import_client_elastic_load_balancing_v2.paginateDescribeListeners)({ client }, input);
            for await (const page of paginator) {
              listeners.push(...page?.Listeners || []);
            }
            return listeners;
          }, "paginateDescribeListeners"),
          paginateDescribeLoadBalancers: /* @__PURE__ */ __name(async (input) => {
            const loadBalancers = Array();
            const paginator = (0, import_client_elastic_load_balancing_v2.paginateDescribeLoadBalancers)({ client }, input);
            for await (const page of paginator) {
              loadBalancers.push(...page?.LoadBalancers || []);
            }
            return loadBalancers;
          }, "paginateDescribeLoadBalancers")
        };
      }
      iam() {
        const client = new import_client_iam.IAMClient(this.config);
        return {
          createPolicy: /* @__PURE__ */ __name((input) => client.send(new import_client_iam.CreatePolicyCommand(input)), "createPolicy"),
          getPolicy: /* @__PURE__ */ __name((input) => client.send(new import_client_iam.GetPolicyCommand(input)), "getPolicy"),
          getRole: /* @__PURE__ */ __name((input) => client.send(new import_client_iam.GetRoleCommand(input)), "getRole")
        };
      }
      kms() {
        const client = new import_client_kms.KMSClient(this.config);
        return {
          describeKey: /* @__PURE__ */ __name((input) => client.send(new import_client_kms.DescribeKeyCommand(input)), "describeKey"),
          listAliases: /* @__PURE__ */ __name((input) => client.send(new import_client_kms.ListAliasesCommand(input)), "listAliases")
        };
      }
      lambda() {
        const client = new import_client_lambda.LambdaClient(this.config);
        return {
          invokeCommand: /* @__PURE__ */ __name((input) => client.send(new import_client_lambda.InvokeCommand(input)), "invokeCommand"),
          publishVersion: /* @__PURE__ */ __name((input) => client.send(new import_client_lambda.PublishVersionCommand(input)), "publishVersion"),
          updateAlias: /* @__PURE__ */ __name((input) => client.send(new import_client_lambda.UpdateAliasCommand(input)), "updateAlias"),
          updateFunctionCode: /* @__PURE__ */ __name((input) => client.send(new import_client_lambda.UpdateFunctionCodeCommand(input)), "updateFunctionCode"),
          updateFunctionConfiguration: /* @__PURE__ */ __name((input) => client.send(new import_client_lambda.UpdateFunctionConfigurationCommand(input)), "updateFunctionConfiguration"),
          // Waiters
          waitUntilFunctionUpdated: /* @__PURE__ */ __name((delaySeconds, input) => {
            return (0, import_client_lambda.waitUntilFunctionUpdatedV2)(
              {
                client,
                maxDelay: delaySeconds,
                minDelay: delaySeconds,
                maxWaitTime: delaySeconds * 60
              },
              input
            );
          }, "waitUntilFunctionUpdated")
        };
      }
      route53() {
        const client = new import_client_route_53.Route53Client(this.config);
        return {
          getHostedZone: /* @__PURE__ */ __name((input) => client.send(new import_client_route_53.GetHostedZoneCommand(input)), "getHostedZone"),
          listHostedZones: /* @__PURE__ */ __name((input) => client.send(new import_client_route_53.ListHostedZonesCommand(input)), "listHostedZones"),
          listHostedZonesByName: /* @__PURE__ */ __name((input) => client.send(new import_client_route_53.ListHostedZonesByNameCommand(input)), "listHostedZonesByName")
        };
      }
      s3() {
        const client = new import_client_s33.S3Client(this.config);
        return {
          deleteObjects: /* @__PURE__ */ __name((input) => client.send(new import_client_s33.DeleteObjectsCommand({
            ...input,
            ChecksumAlgorithm: "SHA256"
          })), "deleteObjects"),
          deleteObjectTagging: /* @__PURE__ */ __name((input) => client.send(new import_client_s33.DeleteObjectTaggingCommand(input)), "deleteObjectTagging"),
          getBucketEncryption: /* @__PURE__ */ __name((input) => client.send(new import_client_s33.GetBucketEncryptionCommand(input)), "getBucketEncryption"),
          getBucketLocation: /* @__PURE__ */ __name((input) => client.send(new import_client_s33.GetBucketLocationCommand(input)), "getBucketLocation"),
          getObject: /* @__PURE__ */ __name((input) => client.send(new import_client_s33.GetObjectCommand(input)), "getObject"),
          getObjectTagging: /* @__PURE__ */ __name((input) => client.send(new import_client_s33.GetObjectTaggingCommand(input)), "getObjectTagging"),
          listObjectsV2: /* @__PURE__ */ __name((input) => client.send(new import_client_s33.ListObjectsV2Command(input)), "listObjectsV2"),
          putObjectTagging: /* @__PURE__ */ __name((input) => client.send(new import_client_s33.PutObjectTaggingCommand({
            ...input,
            ChecksumAlgorithm: "SHA256"
          })), "putObjectTagging"),
          upload: /* @__PURE__ */ __name((input) => {
            try {
              const upload = new import_lib_storage2.Upload({
                client,
                params: { ...input, ChecksumAlgorithm: "SHA256" }
              });
              return upload.done();
            } catch (e3) {
              throw new AuthenticationError(`Upload failed: ${formatErrorMessage(e3)}`);
            }
          }, "upload")
        };
      }
      secretsManager() {
        const client = new import_client_secrets_manager2.SecretsManagerClient(this.config);
        return {
          getSecretValue: /* @__PURE__ */ __name((input) => client.send(new import_client_secrets_manager2.GetSecretValueCommand(input)), "getSecretValue")
        };
      }
      ssm() {
        const client = new import_client_ssm.SSMClient(this.config);
        return {
          getParameter: /* @__PURE__ */ __name((input) => client.send(new import_client_ssm.GetParameterCommand(input)), "getParameter")
        };
      }
      stepFunctions() {
        const client = new import_client_sfn.SFNClient(this.config);
        return {
          updateStateMachine: /* @__PURE__ */ __name((input) => client.send(new import_client_sfn.UpdateStateMachineCommand(input)), "updateStateMachine")
        };
      }
      /**
       * The AWS SDK v3 requires a client config and a command in order to get an endpoint for
       * any given service.
       */
      async getUrlSuffix(region) {
        const cfn = new import_client_cloudformation3.CloudFormationClient({ region });
        const endpoint = await (0, import_middleware_endpoint7.getEndpointFromInstructions)({}, import_client_cloudformation3.DescribeStackResourcesCommand, { ...cfn.config });
        return endpoint.url.hostname.split(`${region}.`).pop();
      }
      async currentAccount() {
        return cachedAsync(this, CURRENT_ACCOUNT_KEY, async () => {
          const creds = await this.credProvider();
          return this.accountCache.fetch(creds.accessKeyId, async () => {
            await this.debug("Looking up default account ID from STS");
            const client = new import_client_sts2.STSClient({
              ...this.config,
              retryStrategy: this.stsRetryStrategy
            });
            const command2 = new import_client_sts2.GetCallerIdentityCommand({});
            const result2 = await client.send(command2);
            const accountId = result2.Account;
            const partition3 = result2.Arn.split(":")[1];
            if (!accountId) {
              throw new AuthenticationError("STS didn't return an account ID");
            }
            await this.debug(`Default account ID: ${accountId}`);
            this._credentialsValidated = true;
            return { accountId, partition: partition3 };
          });
        });
      }
      /**
       * Make sure the the current credentials are not expired
       */
      async validateCredentials() {
        if (this._credentialsValidated) {
          return;
        }
        const client = new import_client_sts2.STSClient({ ...this.config, retryStrategy: this.stsRetryStrategy });
        await client.send(new import_client_sts2.GetCallerIdentityCommand({}));
        this._credentialsValidated = true;
      }
    };
    __name(SDK, "SDK");
    SDK = __decorateClass([
      traceMemberMethods
    ], SDK);
    CURRENT_ACCOUNT_KEY = Symbol("current_account_key");
    __name(makeSdkLoggerSafeByBindingThis, "makeSdkLoggerSafeByBindingThis");
  }
});

// ../../node_modules/@aws-sdk/ec2-metadata-service/dist-cjs/index.js
var require_dist_cjs97 = __commonJS({
  "../../node_modules/@aws-sdk/ec2-metadata-service/dist-cjs/index.js"(exports2, module2) {
    "use strict";
    var __defProp2 = Object.defineProperty;
    var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
    var __getOwnPropNames2 = Object.getOwnPropertyNames;
    var __hasOwnProp2 = Object.prototype.hasOwnProperty;
    var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
    var __export2 = /* @__PURE__ */ __name((target, all) => {
      for (var name in all)
        __defProp2(target, name, { get: all[name], enumerable: true });
    }, "__export");
    var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
      if (from && typeof from === "object" || typeof from === "function") {
        for (let key of __getOwnPropNames2(from))
          if (!__hasOwnProp2.call(to, key) && key !== except)
            __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
      }
      return to;
    }, "__copyProps");
    var __toCommonJS2 = /* @__PURE__ */ __name((mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod), "__toCommonJS");
    var index_exports = {};
    __export2(index_exports, {
      MetadataService: /* @__PURE__ */ __name(() => MetadataService2, "MetadataService")
    });
    module2.exports = __toCommonJS2(index_exports);
    var import_node_config_provider4 = require_dist_cjs33();
    var import_node_http_handler3 = require_dist_cjs14();
    var import_protocol_http16 = require_dist_cjs2();
    var import_util_stream3 = require_dist_cjs17();
    var ENV_ENDPOINT_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT";
    var CONFIG_ENDPOINT_NAME = "ec2_metadata_service_endpoint";
    var ENDPOINT_SELECTORS = {
      environmentVariableSelector: /* @__PURE__ */ __name2((env2) => env2[ENV_ENDPOINT_NAME], "environmentVariableSelector"),
      configFileSelector: /* @__PURE__ */ __name2((profile) => profile[CONFIG_ENDPOINT_NAME], "configFileSelector"),
      default: "http://169.254.169.254"
      /* IPv4 */
    };
    var AWS_EC2_METADATA_V1_DISABLED = "AWS_EC2_METADATA_V1_DISABLED";
    var PROFILE_AWS_EC2_METADATA_V1_DISABLED = "ec2_metadata_v1_disabled";
    var IMDSv1_DISABLED_SELECTORS = {
      environmentVariableSelector: /* @__PURE__ */ __name2((env2) => env2[AWS_EC2_METADATA_V1_DISABLED] ? env2[AWS_EC2_METADATA_V1_DISABLED] !== "false" : void 0, "environmentVariableSelector"),
      configFileSelector: /* @__PURE__ */ __name2((profile) => profile[PROFILE_AWS_EC2_METADATA_V1_DISABLED] ? profile[PROFILE_AWS_EC2_METADATA_V1_DISABLED] !== "false" : void 0, "configFileSelector"),
      default: false
    };
    var MetadataService2 = class {
      static {
        __name(this, "MetadataService");
      }
      static {
        __name2(this, "MetadataService");
      }
      disableFetchToken;
      config;
      /**
       * Creates a new MetadataService object with a given set of options.
       */
      constructor(options = {}) {
        this.config = (async () => {
          const profile = options?.profile || process.env.AWS_PROFILE;
          return {
            endpoint: options.endpoint ?? await (0, import_node_config_provider4.loadConfig)(ENDPOINT_SELECTORS, { profile })(),
            httpOptions: {
              timeout: options?.httpOptions?.timeout || 0
            },
            ec2MetadataV1Disabled: options?.ec2MetadataV1Disabled ?? await (0, import_node_config_provider4.loadConfig)(IMDSv1_DISABLED_SELECTORS, { profile })()
          };
        })();
        this.disableFetchToken = options?.disableFetchToken || false;
      }
      async request(path38, options) {
        const { endpoint, ec2MetadataV1Disabled, httpOptions } = await this.config;
        const handler = new import_node_http_handler3.NodeHttpHandler({
          requestTimeout: httpOptions?.timeout,
          connectionTimeout: httpOptions?.timeout
        });
        const endpointUrl = new URL(endpoint);
        const headers = options.headers || {};
        if (this.disableFetchToken && ec2MetadataV1Disabled) {
          throw new Error("IMDSv1 is disabled and fetching token is disabled, cannot make the request.");
        }
        if (!this.disableFetchToken) {
          try {
            headers["x-aws-ec2-metadata-token"] = await this.fetchMetadataToken();
          } catch (err) {
            if (ec2MetadataV1Disabled) {
              throw err;
            }
          }
        }
        const request2 = new import_protocol_http16.HttpRequest({
          method: options.method || "GET",
          // Default to GET if no method is specified
          headers,
          hostname: endpointUrl.hostname,
          path: endpointUrl.pathname + path38,
          protocol: endpointUrl.protocol
        });
        try {
          const { response } = await handler.handle(request2, {});
          if (response.statusCode === 200 && response.body) {
            return (0, import_util_stream3.sdkStreamMixin)(response.body).transformToString();
          } else {
            throw new Error(`Request failed with status code ${response.statusCode}`);
          }
        } catch (error5) {
          throw new Error(`Error making request to the metadata service: ${error5}`);
        }
      }
      async fetchMetadataToken() {
        const { endpoint, httpOptions } = await this.config;
        const handler = new import_node_http_handler3.NodeHttpHandler({
          requestTimeout: httpOptions?.timeout,
          connectionTimeout: httpOptions?.timeout
        });
        const endpointUrl = new URL(endpoint);
        const tokenRequest = new import_protocol_http16.HttpRequest({
          method: "PUT",
          headers: {
            "x-aws-ec2-metadata-token-ttl-seconds": "21600"
            // 6 hours;
          },
          hostname: endpointUrl.hostname,
          path: "/latest/api/token",
          protocol: endpointUrl.protocol
        });
        try {
          const { response } = await handler.handle(tokenRequest, {});
          if (response.statusCode === 200 && response.body) {
            return (0, import_util_stream3.sdkStreamMixin)(response.body).transformToString();
          } else {
            throw new Error(`Failed to fetch metadata token with status code ${response.statusCode}`);
          }
        } catch (error5) {
          if (error5?.statusCode === 400) {
            throw new Error(`Error fetching metadata token: ${error5}`);
          } else if (error5.message === "TimeoutError" || [403, 404, 405].includes(error5.statusCode)) {
            this.disableFetchToken = true;
            throw new Error(`Error fetching metadata token: ${error5}. disableFetchToken is enabled`);
          }
          throw new Error(`Error fetching metadata token: ${error5}`);
        }
      }
    };
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/aws-auth/provider-caching.ts
function makeCachingProvider(provider) {
  return (0, import_property_provider2.memoize)(
    provider,
    credentialsAboutToExpire,
    (token) => !!token.expiration
  );
}
function credentialsAboutToExpire(token) {
  const expiryMarginSecs = 5;
  return !!token.expiration && token.expiration.getTime() - Date.now() < expiryMarginSecs * 1e3;
}
var import_property_provider2;
var init_provider_caching = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/aws-auth/provider-caching.ts"() {
    "use strict";
    import_property_provider2 = __toESM(require_dist_cjs22());
    __name(makeCachingProvider, "makeCachingProvider");
    __name(credentialsAboutToExpire, "credentialsAboutToExpire");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/aws-auth/awscli-compatible.ts
function shouldPrioritizeEnv() {
  const id = process.env.AWS_ACCESS_KEY_ID || process.env.AMAZON_ACCESS_KEY_ID;
  const key = process.env.AWS_SECRET_ACCESS_KEY || process.env.AMAZON_SECRET_ACCESS_KEY;
  if (!!id && !!key) {
    process.env.AWS_ACCESS_KEY_ID = id;
    process.env.AWS_SECRET_ACCESS_KEY = key;
    const sessionToken = process.env.AWS_SESSION_TOKEN ?? process.env.AMAZON_SESSION_TOKEN;
    if (sessionToken) {
      process.env.AWS_SESSION_TOKEN = sessionToken;
    }
    return true;
  }
  return false;
}
function sdkRequestHandler(agent) {
  return {
    connectionTimeout: DEFAULT_CONNECTION_TIMEOUT,
    requestTimeout: DEFAULT_TIMEOUT,
    httpsAgent: agent,
    httpAgent: agent
  };
}
var import_node_util, import_credential_providers2, import_ec2_metadata_service, import_shared_ini_file_loader, DEFAULT_CONNECTION_TIMEOUT, DEFAULT_TIMEOUT, AwsCliCompatible;
var init_awscli_compatible = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/aws-auth/awscli-compatible.ts"() {
    "use strict";
    import_node_util = require("node:util");
    import_credential_providers2 = __toESM(require_dist_cjs77());
    import_ec2_metadata_service = __toESM(require_dist_cjs97());
    import_shared_ini_file_loader = __toESM(require_dist_cjs32());
    init_provider_caching();
    init_toolkit_error();
    init_private();
    DEFAULT_CONNECTION_TIMEOUT = 1e4;
    DEFAULT_TIMEOUT = 3e5;
    AwsCliCompatible = class {
      static {
        __name(this, "AwsCliCompatible");
      }
      ioHelper;
      requestHandler;
      logger;
      constructor(ioHelper, requestHandler, logger4) {
        this.ioHelper = ioHelper;
        this.requestHandler = requestHandler;
        this.logger = logger4;
      }
      async baseConfig(profile) {
        const credentialProvider = await this.credentialChainBuilder({
          profile,
          logger: this.logger
        });
        const defaultRegion = await this.region(profile);
        return { credentialProvider, defaultRegion };
      }
      /**
       * Build an AWS CLI-compatible credential chain provider
       *
       * The credential chain returned by this function is always caching.
       */
      async credentialChainBuilder(options = {}) {
        const clientConfig = {
          requestHandler: this.requestHandler,
          customUserAgent: "aws-cdk",
          logger: options.logger
        };
        const parentClientConfig = {
          region: await this.region(options.profile)
        };
        if (options.profile) {
          return makeCachingProvider((0, import_credential_providers2.fromIni)({
            profile: options.profile,
            ignoreCache: true,
            mfaCodeProvider: this.tokenCodeFn.bind(this),
            clientConfig,
            parentClientConfig,
            logger: options.logger
          }));
        }
        const envProfile = process.env.AWS_PROFILE || process.env.AWS_DEFAULT_PROFILE;
        const nodeProviderChain = (0, import_credential_providers2.fromNodeProviderChain)({
          profile: envProfile,
          clientConfig,
          parentClientConfig,
          logger: options.logger,
          mfaCodeProvider: this.tokenCodeFn.bind(this),
          ignoreCache: true
        });
        return shouldPrioritizeEnv() ? (0, import_credential_providers2.createCredentialChain)((0, import_credential_providers2.fromEnv)(), nodeProviderChain).expireAfter(60 * 6e4) : nodeProviderChain;
      }
      /**
       * Attempts to get the region from a number of sources and falls back to us-east-1 if no region can be found,
       * as is done in the AWS CLI.
       *
       * The order of priority is the following:
       *
       * 1. Environment variables specifying region, with both an AWS prefix and AMAZON prefix
       *    to maintain backwards compatibility, and without `DEFAULT` in the name because
       *    Lambda and CodeBuild set the $AWS_REGION variable.
       * 2. Regions listed in the Shared Ini Files - First checking for the profile provided
       *    and then checking for the default profile.
       * 3. IMDS instance identity region from the Metadata Service.
       * 4. us-east-1
       */
      async region(maybeProfile) {
        const defaultRegion = "us-east-1";
        const profile = maybeProfile || process.env.AWS_PROFILE || process.env.AWS_DEFAULT_PROFILE || "default";
        const region = process.env.AWS_REGION || process.env.AMAZON_REGION || process.env.AWS_DEFAULT_REGION || process.env.AMAZON_DEFAULT_REGION || await this.getRegionFromIni(profile) || await this.regionFromMetadataService();
        if (!region) {
          const usedProfile = !profile ? "" : ` (profile: "${profile}")`;
          await this.ioHelper.defaults.debug(
            `Unable to determine AWS region from environment or AWS configuration${usedProfile}, defaulting to '${defaultRegion}'`
          );
          return defaultRegion;
        }
        return region;
      }
      /**
       * The MetadataService class will attempt to fetch the instance identity document from
       * IMDSv2 first, and then will attempt v1 as a fallback.
       *
       * If this fails, we will use us-east-1 as the region so no error should be thrown.
       * @returns The region for the instance identity
       */
      async regionFromMetadataService() {
        await this.ioHelper.defaults.debug("Looking up AWS region in the EC2 Instance Metadata Service (IMDS).");
        try {
          const metadataService = new import_ec2_metadata_service.MetadataService({
            httpOptions: {
              timeout: 1e3
            }
          });
          await metadataService.fetchMetadataToken();
          const document2 = await metadataService.request("/latest/dynamic/instance-identity/document", {});
          return JSON.parse(document2).region;
        } catch (e3) {
          await this.ioHelper.defaults.debug(`Unable to retrieve AWS region from IMDS: ${e3}`);
        }
      }
      /**
       * Looks up the region of the provided profile. If no region is present,
       * it will attempt to lookup the default region.
       * @param profile - The profile to use to lookup the region
       * @returns The region for the profile or default profile, if present. Otherwise returns undefined.
       */
      async getRegionFromIni(profile) {
        const sharedFiles = await (0, import_shared_ini_file_loader.loadSharedConfigFiles)({ ignoreCache: true });
        return this.getRegionFromIniFile(profile, sharedFiles.credentialsFile) ?? this.getRegionFromIniFile(profile, sharedFiles.configFile) ?? this.getRegionFromIniFile("default", sharedFiles.credentialsFile) ?? this.getRegionFromIniFile("default", sharedFiles.configFile);
      }
      getRegionFromIniFile(profile, data3) {
        return data3?.[profile]?.region;
      }
      /**
       * Ask user for MFA token for given MFA device
       *
       * Result is send to callback function for SDK to authorize the request
       */
      async tokenCodeFn(deviceArn) {
        const debugFn = /* @__PURE__ */ __name((msg, ...args) => this.ioHelper.defaults.debug((0, import_node_util.format)(msg, ...args)), "debugFn");
        await debugFn("Require MFA token from MFA device with ARN", deviceArn);
        try {
          const token = await this.ioHelper.requestResponse(IO.CDK_SDK_I1100.req(`MFA token for ${deviceArn}`, {
            deviceArn
          }, ""));
          await debugFn("Successfully got MFA token from user");
          return token;
        } catch (err) {
          await debugFn("Failed to get MFA token", err);
          const e3 = new AuthenticationError(`Error fetching MFA token: ${err.message ?? err}`);
          e3.name = "SharedIniFileCredentialsProviderFailure";
          throw e3;
        }
      }
    };
    __name(shouldPrioritizeEnv, "shouldPrioritizeEnv");
    __name(sdkRequestHandler, "sdkRequestHandler");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/aws-auth/credential-plugins.ts
async function v3ProviderFromPlugin(producer) {
  const initial = await producer();
  if (isV3Provider(initial)) {
    return makeCachingProvider(initial);
  } else if (isV3Credentials(initial) && initial.expiration === void 0) {
    return () => Promise.resolve(initial);
  } else if (isV3Credentials(initial) && initial.expiration !== void 0) {
    return refreshFromPluginProvider(initial, producer);
  } else if (isV2Credentials(initial)) {
    return v3ProviderFromV2Credentials(initial);
  } else {
    throw new AuthenticationError(`Plugin returned a value that doesn't resemble AWS credentials: ${(0, import_util41.inspect)(initial)}`);
  }
}
function v3ProviderFromV2Credentials(x3) {
  return async () => {
    await x3.getPromise();
    return {
      accessKeyId: x3.accessKeyId,
      secretAccessKey: x3.secretAccessKey,
      sessionToken: x3.sessionToken,
      expiration: x3.expireTime ?? void 0
    };
  };
}
function refreshFromPluginProvider(current, producer) {
  return async () => {
    if (credentialsAboutToExpire(current)) {
      const newCreds = await producer();
      if (!isV3Credentials(newCreds)) {
        throw new AuthenticationError(`Plugin initially returned static V3 credentials but now returned something else: ${(0, import_util41.inspect)(newCreds)}`);
      }
      current = newCreds;
    }
    return current;
  };
}
function isV3Provider(x3) {
  return typeof x3 === "function";
}
function isV2Credentials(x3) {
  return !!(x3 && typeof x3 === "object" && x3.getPromise);
}
function isV3Credentials(x3) {
  return !!(x3 && typeof x3 === "object" && x3.accessKeyId && !isV2Credentials(x3));
}
var import_util41, CredentialPlugins;
var init_credential_plugins = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/aws-auth/credential-plugins.ts"() {
    "use strict";
    import_util41 = require("util");
    init_provider_caching();
    init_toolkit_error();
    init_util3();
    init_private();
    CredentialPlugins = class {
      constructor(host, ioHelper) {
        this.host = host;
        this.ioHelper = ioHelper;
      }
      static {
        __name(this, "CredentialPlugins");
      }
      cache = {};
      async fetchCredentialsFor(awsAccountId, mode) {
        const key = `${awsAccountId}-${mode}`;
        if (!(key in this.cache)) {
          this.cache[key] = await this.lookupCredentials(awsAccountId, mode);
        }
        return this.cache[key];
      }
      get availablePluginNames() {
        return this.host.credentialProviderSources.map((s3) => s3.name);
      }
      async lookupCredentials(awsAccountId, mode) {
        const triedSources = [];
        for (const source of this.host.credentialProviderSources) {
          let available;
          try {
            available = await source.isAvailable();
          } catch (e3) {
            await this.ioHelper.notify(IO.CDK_TOOLKIT_W0100.msg(`Uncaught exception in ${source.name}: ${formatErrorMessage(e3)}`));
            available = false;
          }
          if (!available) {
            await this.ioHelper.defaults.debug(`Credentials source ${source.name} is not available, ignoring it.`);
            continue;
          }
          triedSources.push(source);
          let canProvide;
          try {
            canProvide = await source.canProvideCredentials(awsAccountId);
          } catch (e3) {
            await this.ioHelper.notify(IO.CDK_TOOLKIT_W0100.msg(`Uncaught exception in ${source.name}: ${formatErrorMessage(e3)}`));
            canProvide = false;
          }
          if (!canProvide) {
            continue;
          }
          await this.ioHelper.defaults.debug(`Using ${source.name} credentials for account ${awsAccountId}`);
          return {
            credentials: await v3ProviderFromPlugin(() => source.getProvider(awsAccountId, mode, {
              supportsV3Providers: true
            })),
            pluginName: source.name
          };
        }
        return void 0;
      }
    };
    __name(v3ProviderFromPlugin, "v3ProviderFromPlugin");
    __name(v3ProviderFromV2Credentials, "v3ProviderFromV2Credentials");
    __name(refreshFromPluginProvider, "refreshFromPluginProvider");
    __name(isV3Provider, "isV3Provider");
    __name(isV2Credentials, "isV2Credentials");
    __name(isV3Credentials, "isV3Credentials");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/aws-auth/sdk-provider.ts
function safeUsername2() {
  try {
    return os8.userInfo().username.replace(/[^\w+=,.@-]/g, "@");
  } catch {
    return "noname";
  }
}
function fmtObtainCredentialsError(targetAccountId, obtainResult) {
  const msg = [`Need to perform AWS calls for account ${targetAccountId}`];
  switch (obtainResult.source) {
    case "incorrectDefault":
      msg.push(`but the current credentials are for ${obtainResult.accountId}`);
      break;
    case "none":
      msg.push("but no credentials have been configured");
  }
  if (obtainResult.unusedPlugins.length > 0) {
    msg.push(`and none of these plugins found any: ${obtainResult.unusedPlugins.join(", ")}`);
  }
  return msg.join(", ");
}
function fmtObtainedCredentials(obtainResult) {
  switch (obtainResult.source) {
    case "correctDefault":
      return "current credentials";
    case "plugin":
      return `credentials returned by plugin '${obtainResult.pluginName}'`;
    case "incorrectDefault":
      const msg = [];
      msg.push(`current credentials (which are for account ${obtainResult.accountId}`);
      if (obtainResult.unusedPlugins.length > 0) {
        msg.push(`, and none of the following plugins provided credentials: ${obtainResult.unusedPlugins.join(", ")}`);
      }
      msg.push(")");
      return msg.join("");
  }
}
async function initContextProviderSdk(aws, options) {
  const account = options.account;
  const region = options.region;
  const creds = {
    assumeRoleArn: options.lookupRoleArn,
    assumeRoleExternalId: options.lookupRoleExternalId,
    assumeRoleAdditionalOptions: options.assumeRoleAdditionalOptions
  };
  return (await aws.forEnvironment(import_cx_api7.EnvironmentUtils.make(account, region), 0 /* ForReading */, creds)).sdk;
}
var os8, import_cx_api7, import_credential_providers3, CACHED_ACCOUNT, SdkProvider;
var init_sdk_provider = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/aws-auth/sdk-provider.ts"() {
    "use strict";
    os8 = __toESM(require("os"));
    import_cx_api7 = __toESM(require_lib3());
    import_credential_providers3 = __toESM(require_dist_cjs77());
    init_awscli_compatible();
    init_cached();
    init_credential_plugins();
    init_provider_caching();
    init_sdk2();
    init_tracing();
    init_toolkit_error();
    init_util3();
    init_plugin2();
    CACHED_ACCOUNT = Symbol("cached_account");
    SdkProvider = class {
      /**
       * Create a new SdkProvider which gets its defaults in a way that behaves like the AWS CLI does
       *
       * The AWS SDK for JS behaves slightly differently from the AWS CLI in a number of ways; see the
       * class `AwsCliCompatible` for the details.
       *
       * @param options - Options for the default SDK provider
       * @param profile - Profile to read from ~/.aws
       * @returns a configured SdkProvider
       */
      static async withAwsCliCompatibleDefaults(options, profile) {
        callTrace(SdkProvider.withAwsCliCompatibleDefaults.name, SdkProvider.constructor.name, options.logger);
        const config = await new AwsCliCompatible(options.ioHelper, options.requestHandler ?? {}, options.logger).baseConfig(profile);
        return new SdkProvider(config.credentialProvider, config.defaultRegion, options);
      }
      defaultRegion;
      defaultCredentialProvider;
      plugins;
      requestHandler;
      ioHelper;
      logger;
      constructor(defaultCredentialProvider, defaultRegion, options) {
        this.defaultCredentialProvider = defaultCredentialProvider;
        this.defaultRegion = defaultRegion ?? "us-east-1";
        this.requestHandler = options.requestHandler ?? {};
        this.ioHelper = options.ioHelper;
        this.logger = options.logger;
        this.plugins = new CredentialPlugins(options.pluginHost ?? new PluginHost(), this.ioHelper);
      }
      /**
       * Return an SDK which can do operations in the given environment
       *
       * The `environment` parameter is resolved first (see `resolveEnvironment()`).
       */
      async forEnvironment(environment, mode, options, quiet = false) {
        const env2 = await this.resolveEnvironment(environment);
        const baseCreds = await this.obtainBaseCredentials(env2.account, mode);
        if (baseCreds.source === "none") {
          throw new AuthenticationError(fmtObtainCredentialsError(env2.account, baseCreds));
        }
        if (options?.assumeRoleArn === void 0) {
          if (baseCreds.source === "incorrectDefault") {
            throw new AuthenticationError(fmtObtainCredentialsError(env2.account, baseCreds));
          }
          const sdk = this._makeSdk(baseCreds.credentials, env2.region);
          await sdk.validateCredentials();
          return { sdk, didAssumeRole: false };
        }
        try {
          const sdk = await this.withAssumedRole(
            baseCreds,
            options.assumeRoleArn,
            options.assumeRoleExternalId,
            options.assumeRoleAdditionalOptions,
            env2.region
          );
          return { sdk, didAssumeRole: true };
        } catch (err) {
          if (err.name === "ExpiredToken") {
            throw AuthenticationError.withCause("Assuming role failed: ExpiredToken", err);
          }
          if (baseCreds.source === "correctDefault" || baseCreds.source === "plugin") {
            await this.ioHelper.defaults.debug(err.message);
            const level = quiet ? "debug" : "warn";
            await this.ioHelper.defaults[level](
              `${fmtObtainedCredentials(baseCreds)} could not be used to assume '${options.assumeRoleArn}', but are for the right account. Proceeding anyway.`
            );
            return {
              sdk: this._makeSdk(baseCreds.credentials, env2.region),
              didAssumeRole: false
            };
          }
          throw err;
        }
      }
      /**
       * Return the partition that base credentials are for
       *
       * Returns `undefined` if there are no base credentials.
       */
      async baseCredentialsPartition(environment, mode) {
        const env2 = await this.resolveEnvironment(environment);
        const baseCreds = await this.obtainBaseCredentials(env2.account, mode);
        if (baseCreds.source === "none") {
          return void 0;
        }
        return (await this._makeSdk(baseCreds.credentials, env2.region).currentAccount()).partition;
      }
      /**
       * Resolve the environment for a stack
       *
       * Replaces the magic values `UNKNOWN_REGION` and `UNKNOWN_ACCOUNT`
       * with the defaults for the current SDK configuration (`~/.aws/config` or
       * otherwise).
       *
       * It is an error if `UNKNOWN_ACCOUNT` is used but the user hasn't configured
       * any SDK credentials.
       */
      async resolveEnvironment(env2) {
        const region = env2.region !== import_cx_api7.UNKNOWN_REGION ? env2.region : this.defaultRegion;
        const account = env2.account !== import_cx_api7.UNKNOWN_ACCOUNT ? env2.account : (await this.defaultAccount())?.accountId;
        if (!account) {
          throw new AuthenticationError(
            "Unable to resolve AWS account to use. It must be either configured when you define your CDK Stack, or through the environment"
          );
        }
        return {
          region,
          account,
          name: import_cx_api7.EnvironmentUtils.format(account, region)
        };
      }
      /**
       * The account we'd auth into if we used default credentials.
       *
       * Default credentials are the set of ambiently configured credentials using
       * one of the environment variables, or ~/.aws/credentials, or the *one*
       * profile that was passed into the CLI.
       *
       * Might return undefined if there are no default/ambient credentials
       * available (in which case the user should better hope they have
       * credential plugins configured).
       *
       * Uses a cache to avoid STS calls if we don't need 'em.
       */
      async defaultAccount() {
        return cached2(this, CACHED_ACCOUNT, async () => {
          try {
            return await this._makeSdk(this.defaultCredentialProvider, this.defaultRegion).currentAccount();
          } catch (e3) {
            if (e3.name === "ExpiredToken") {
              await this.ioHelper.defaults.warn(
                "There are expired AWS credentials in your environment. The CDK app will synth without current account information."
              );
              return void 0;
            }
            await this.ioHelper.defaults.debug(`Unable to determine the default AWS account (${e3.name}): ${formatErrorMessage(e3)}`);
            return void 0;
          }
        });
      }
      /**
       * Get credentials for the given account ID in the given mode
       *
       * 1. Use the default credentials if the destination account matches the
       *    current credentials' account.
       * 2. Otherwise try all credential plugins.
       * 3. Fail if neither of these yield any credentials.
       * 4. Return a failure if any of them returned credentials
       */
      async obtainBaseCredentials(accountId, mode) {
        const defaultAccountId = (await this.defaultAccount())?.accountId;
        if (defaultAccountId === accountId) {
          return {
            source: "correctDefault",
            credentials: await this.defaultCredentialProvider
          };
        }
        const pluginCreds = await this.plugins.fetchCredentialsFor(accountId, mode);
        if (pluginCreds) {
          return { source: "plugin", ...pluginCreds };
        }
        if (defaultAccountId !== void 0) {
          return {
            source: "incorrectDefault",
            accountId: defaultAccountId,
            credentials: await this.defaultCredentialProvider,
            unusedPlugins: this.plugins.availablePluginNames
          };
        }
        return {
          source: "none",
          unusedPlugins: this.plugins.availablePluginNames
        };
      }
      /**
       * Return an SDK which uses assumed role credentials
       *
       * The base credentials used to retrieve the assumed role credentials will be the
       * same credentials returned by obtainCredentials if an environment and mode is passed,
       * otherwise it will be the current credentials.
       */
      async withAssumedRole(mainCredentials, roleArn, externalId, additionalOptions, region) {
        await this.ioHelper.defaults.debug(`Assuming role '${roleArn}'.`);
        region = region ?? this.defaultRegion;
        const sourceDescription = fmtObtainedCredentials(mainCredentials);
        try {
          const credentials = await makeCachingProvider((0, import_credential_providers3.fromTemporaryCredentials)({
            masterCredentials: mainCredentials.credentials,
            params: {
              RoleArn: roleArn,
              ExternalId: externalId,
              RoleSessionName: `aws-cdk-${safeUsername2()}`,
              ...additionalOptions,
              TransitiveTagKeys: additionalOptions?.Tags ? additionalOptions.Tags.map((t3) => t3.Key) : void 0
            },
            clientConfig: {
              region,
              requestHandler: this.requestHandler,
              customUserAgent: "aws-cdk",
              logger: this.logger
            },
            logger: this.logger
          }));
          await credentials();
          return this._makeSdk(credentials, region);
        } catch (err) {
          if (err.name === "ExpiredToken") {
            throw err;
          }
          await this.ioHelper.defaults.debug(`Assuming role failed: ${err.message}`);
          throw new AuthenticationError(
            [
              "Could not assume role in target account",
              ...sourceDescription ? [`using ${sourceDescription}`] : [],
              err.message,
              ". Please make sure that this role exists in the account. If it doesn't exist, (re)-bootstrap the environment with the right '--trust', using the latest version of the CDK CLI."
            ].join(" ")
          );
        }
      }
      /**
       * Factory function that creates a new SDK instance
       *
       * This is a function here, instead of all the places where this is used creating a `new SDK`
       * instance, so that it is trivial to mock from tests.
       *
       * Use like this:
       *
       * ```ts
       * const mockSdk = jest.spyOn(SdkProvider.prototype, '_makeSdk').mockReturnValue(new MockSdk());
       * // ...
       * mockSdk.mockRestore();
       * ```
       *
       * @internal
       */
      _makeSdk(credProvider, region) {
        return new SDK(credProvider, region, this.requestHandler, this.ioHelper, this.logger);
      }
    };
    __name(SdkProvider, "SdkProvider");
    SdkProvider = __decorateClass([
      traceMemberMethods
    ], SdkProvider);
    __name(safeUsername2, "safeUsername");
    __name(fmtObtainCredentialsError, "fmtObtainCredentialsError");
    __name(fmtObtainedCredentials, "fmtObtainedCredentials");
    __name(initContextProviderSdk, "initContextProviderSdk");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/aws-auth/sdk-logger.ts
function formatSdkLoggerContent(content) {
  if (content.length === 1) {
    const apiFmt = formatApiCall(content[0]);
    if (apiFmt) {
      return apiFmt;
    }
  }
  return content.map((x3) => typeof x3 === "string" ? x3 : (0, import_util44.inspect)(x3)).join("");
}
function formatApiCall(content) {
  if (!isSdkApiCallSuccess(content) && !isSdkApiCallError(content)) {
    return void 0;
  }
  const service = content.clientName.replace(/Client$/, "");
  const api = content.commandName.replace(/Command$/, "");
  const parts = [];
  if ((content.metadata?.attempts ?? 0) > 1) {
    parts.push(`[${content.metadata?.attempts} attempts, ${content.metadata?.totalRetryDelay}ms retry]`);
  }
  parts.push(`${service}.${api}(${JSON.stringify(content.input, replacerBufferWithInfo)})`);
  if (isSdkApiCallSuccess(content)) {
    parts.push("-> OK");
  } else {
    parts.push(`-> ${content.error}`);
  }
  return parts.join(" ");
}
function isSdkApiCallSuccess(x3) {
  return x3 && typeof x3 === "object" && x3.commandName && x3.output;
}
function isSdkApiCallError(x3) {
  return x3 && typeof x3 === "object" && x3.commandName && x3.error;
}
var import_util44, IoHostSdkLogger;
var init_sdk_logger = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/aws-auth/sdk-logger.ts"() {
    "use strict";
    import_util44 = require("util");
    init_util3();
    init_private();
    IoHostSdkLogger = class {
      static {
        __name(this, "IoHostSdkLogger");
      }
      ioHelper;
      constructor(ioHelper) {
        this.ioHelper = ioHelper;
      }
      notify(level, ...content) {
        void this.ioHelper.notify(IO.CDK_SDK_I0100.msg((0, import_util44.format)("[SDK %s] %s", level, formatSdkLoggerContent(content)), {
          sdkLevel: level,
          content
        }));
      }
      trace(..._content) {
      }
      debug(..._content) {
      }
      /**
       * Info is called mostly (exclusively?) for successful API calls
       *
       * Payload:
       *
       * (Note the input contains entire CFN templates, for example)
       *
       * ```
       * {
       *   clientName: 'S3Client',
       *   commandName: 'GetBucketLocationCommand',
       *   input: {
       *     Bucket: '.....',
       *     ExpectedBucketOwner: undefined
       *   },
       *   output: { LocationConstraint: 'eu-central-1' },
       *   metadata: {
       *     httpStatusCode: 200,
       *     requestId: '....',
       *     extendedRequestId: '...',
       *     cfId: undefined,
       *     attempts: 1,
       *     totalRetryDelay: 0
       *   }
       * }
       * ```
       */
      info(...content) {
        this.notify("info", ...content);
      }
      warn(...content) {
        this.notify("warn", ...content);
      }
      /**
       * Error is called mostly (exclusively?) for failing API calls
       *
       * Payload (input would be the entire API call arguments).
       *
       * ```
       * {
       *   clientName: 'STSClient',
       *   commandName: 'GetCallerIdentityCommand',
       *   input: {},
       *   error: AggregateError [ECONNREFUSED]:
       *       at internalConnectMultiple (node:net:1121:18)
       *       at afterConnectMultiple (node:net:1688:7) {
       *     code: 'ECONNREFUSED',
       *     '$metadata': { attempts: 3, totalRetryDelay: 600 },
       *     [errors]: [ [Error], [Error] ]
       *   },
       *   metadata: { attempts: 3, totalRetryDelay: 600 }
       * }
       * ```
       */
      error(...content) {
        this.notify("error", ...content);
      }
    };
    __name(formatSdkLoggerContent, "formatSdkLoggerContent");
    __name(formatApiCall, "formatApiCall");
    __name(isSdkApiCallSuccess, "isSdkApiCallSuccess");
    __name(isSdkApiCallError, "isSdkApiCallError");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/aws-auth/private/index.ts
var init_private2 = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/aws-auth/private/index.ts"() {
    "use strict";
    init_sdk2();
    init_sdk_provider();
    init_sdk_logger();
    init_account_cache();
    init_cached();
    init_awscli_compatible();
    init_tracing();
    init_credential_plugins();
    init_provider_caching();
    init_user_agent();
  }
});

// ../@aws-cdk/toolkit-lib/lib/context-providers/ami.ts
function descending(valueOf) {
  return (a3, b3) => {
    return valueOf(b3) - valueOf(a3);
  };
}
var AmiContextProviderPlugin;
var init_ami = __esm({
  "../@aws-cdk/toolkit-lib/lib/context-providers/ami.ts"() {
    "use strict";
    init_private2();
    init_toolkit_error();
    AmiContextProviderPlugin = class {
      constructor(aws, io) {
        this.aws = aws;
        this.io = io;
      }
      static {
        __name(this, "AmiContextProviderPlugin");
      }
      async getValue(args) {
        const region = args.region;
        const account = args.account;
        await this.io.info(`Searching for AMI in ${account}:${region}`);
        await this.io.debug(`AMI search parameters: ${JSON.stringify(args)}`);
        const ec2 = (await initContextProviderSdk(this.aws, args)).ec2();
        const response = await ec2.describeImages({
          Owners: args.owners,
          Filters: Object.entries(args.filters).map(([key, values]) => ({
            Name: key,
            Values: values
          }))
        });
        const images = [...response.Images || []].filter((i3) => i3.ImageId !== void 0);
        if (images.length === 0) {
          throw new ContextProviderError("No AMI found that matched the search criteria");
        }
        images.sort(descending((i3) => Date.parse(i3.CreationDate || "1970")));
        await this.io.debug(`Selected image '${images[0].ImageId}' created at '${images[0].CreationDate}'`);
        return images[0].ImageId;
      }
    };
    __name(descending, "descending");
  }
});

// ../@aws-cdk/toolkit-lib/lib/context-providers/availability-zones.ts
var AZContextProviderPlugin;
var init_availability_zones = __esm({
  "../@aws-cdk/toolkit-lib/lib/context-providers/availability-zones.ts"() {
    "use strict";
    init_private2();
    AZContextProviderPlugin = class {
      constructor(aws, io) {
        this.aws = aws;
        this.io = io;
      }
      static {
        __name(this, "AZContextProviderPlugin");
      }
      async getValue(args) {
        const region = args.region;
        const account = args.account;
        await this.io.debug(`Reading AZs for ${account}:${region}`);
        const ec2 = (await initContextProviderSdk(this.aws, args)).ec2();
        const response = await ec2.describeAvailabilityZones({});
        if (!response.AvailabilityZones) {
          return [];
        }
        const azs = response.AvailabilityZones.filter((zone) => zone.State === "available").map(
          (zone) => zone.ZoneName
        );
        return azs;
      }
    };
  }
});

// ../@aws-cdk/toolkit-lib/lib/context-providers/cc-api-provider.ts
function foundResourceFromCcApi(desc) {
  return {
    identifier: desc.Identifier ?? "*MISSING*",
    properties: JSON.parse(desc.Properties ?? "{}")
  };
}
function propertyMatchesFilter(actual, expected) {
  return expected === actual;
}
function isObject2(x3) {
  return typeof x3 === "object" && x3 !== null && !Array.isArray(x3);
}
function expectedMatchCountText(expectation) {
  switch (expectation) {
    case "at-least-one":
      return "at least one";
    case "at-most-one":
      return "at most one";
    case "exactly-one":
      return "exactly one";
    case "any":
      return "any number";
    default:
      return expectation;
  }
}
var import_client_cloudcontrol2, CcApiContextProviderPlugin;
var init_cc_api_provider = __esm({
  "../@aws-cdk/toolkit-lib/lib/context-providers/cc-api-provider.ts"() {
    "use strict";
    import_client_cloudcontrol2 = __toESM(require_dist_cjs82());
    init_private2();
    init_toolkit_error();
    init_util3();
    CcApiContextProviderPlugin = class {
      constructor(aws) {
        this.aws = aws;
      }
      static {
        __name(this, "CcApiContextProviderPlugin");
      }
      /**
       * This returns a data object with the value from CloudControl API result.
       *
       * See the documentation in the Cloud Assembly Schema for the semantics of
       * each query parameter.
       */
      async getValue(args) {
        if (args.exactIdentifier && args.propertyMatch) {
          throw new ContextProviderError(`Provider protocol error: specify either exactIdentifier or propertyMatch, but not both (got ${JSON.stringify(args)})`);
        }
        if (args.ignoreErrorOnMissingContext && args.dummyValue === void 0) {
          throw new ContextProviderError(`Provider protocol error: if ignoreErrorOnMissingContext is set, a dummyValue must be supplied (got ${JSON.stringify(args)})`);
        }
        if (args.dummyValue !== void 0 && (!Array.isArray(args.dummyValue) || !args.dummyValue.every(isObject2))) {
          throw new ContextProviderError(`Provider protocol error: dummyValue must be an array of objects (got ${JSON.stringify(args.dummyValue)})`);
        }
        const cloudControl = (await initContextProviderSdk(this.aws, args)).cloudControl();
        try {
          let resources;
          if (args.exactIdentifier) {
            resources = await this.getResource(cloudControl, args.typeName, args.exactIdentifier);
          } else if (args.propertyMatch) {
            resources = await this.listResources(cloudControl, args.typeName, args.propertyMatch, args.expectedMatchCount);
          } else {
            throw new ContextProviderError(`Provider protocol error: neither exactIdentifier nor propertyMatch is specified in ${JSON.stringify(args)}.`);
          }
          return resources.map((r3) => getResultObj(r3.properties, r3.identifier, args.propertiesToReturn));
        } catch (err) {
          if (ContextProviderError.isNoResultsFoundError(err) && args.ignoreErrorOnMissingContext) {
            return args.dummyValue;
          }
          throw err;
        }
      }
      /**
       * Calls getResource from CC API to get the resource.
       * See https://docs.aws.amazon.com/cli/latest/reference/cloudcontrol/get-resource.html
       *
       * Will always return exactly one resource, or fail.
       */
      async getResource(cc, typeName, exactIdentifier) {
        try {
          const result2 = await cc.getResource({
            TypeName: typeName,
            Identifier: exactIdentifier
          });
          if (!result2.ResourceDescription) {
            throw new ContextProviderError("Unexpected CloudControl API behavior: returned empty response");
          }
          return [foundResourceFromCcApi(result2.ResourceDescription)];
        } catch (err) {
          if (err instanceof import_client_cloudcontrol2.ResourceNotFoundException || err.name === "ResourceNotFoundException") {
            throw new NoResultsFoundError(`No resource of type ${typeName} with identifier: ${exactIdentifier}`);
          }
          if (!ContextProviderError.isContextProviderError(err)) {
            throw ContextProviderError.withCause(`Encountered CC API error while getting ${typeName} resource ${exactIdentifier}`, err);
          }
          throw err;
        }
      }
      /**
       * Calls listResources from CC API to get the resources and apply args.propertyMatch to find the resources.
       * See https://docs.aws.amazon.com/cli/latest/reference/cloudcontrol/list-resources.html
       *
       * Will return 0 or more resources.
       *
       * Does not currently paginate through more than one result page.
       */
      async listResources(cc, typeName, propertyMatch, expectedMatchCount) {
        try {
          const found = [];
          let nextToken = void 0;
          do {
            const result2 = await cc.listResources({
              TypeName: typeName,
              MaxResults: 100,
              ...nextToken ? { NextToken: nextToken } : {}
            });
            found.push(
              ...(result2.ResourceDescriptions ?? []).map(foundResourceFromCcApi).filter((r3) => {
                return Object.entries(propertyMatch).every(([propPath, expected]) => {
                  const actual = findJsonValue(r3.properties, propPath);
                  return propertyMatchesFilter(actual, expected);
                });
              })
            );
            nextToken = result2.NextToken;
            if ((expectedMatchCount === "at-most-one" || expectedMatchCount === "exactly-one") && found.length > 1) {
              const atLeast = nextToken ? "at least " : "";
              throw new ContextProviderError(`Found ${atLeast}${found.length} resources matching ${JSON.stringify(propertyMatch)}; expected ${expectedMatchCountText(expectedMatchCount)}. Please narrow the search criteria`);
            }
          } while (nextToken);
          if ((expectedMatchCount === "at-least-one" || expectedMatchCount === "exactly-one") && found.length === 0) {
            throw new NoResultsFoundError(`Could not find any resources matching ${JSON.stringify(propertyMatch)}; expected ${expectedMatchCountText(expectedMatchCount)}.`);
          }
          return found;
        } catch (err) {
          if (!ContextProviderError.isContextProviderError(err)) {
            throw ContextProviderError.withCause(`Encountered CC API error while listing ${typeName} resources matching ${JSON.stringify(propertyMatch)}`, err);
          }
          throw err;
        }
      }
    };
    __name(foundResourceFromCcApi, "foundResourceFromCcApi");
    __name(propertyMatchesFilter, "propertyMatchesFilter");
    __name(isObject2, "isObject");
    __name(expectedMatchCountText, "expectedMatchCountText");
  }
});

// ../@aws-cdk/toolkit-lib/lib/context-providers/endpoint-service-availability-zones.ts
var EndpointServiceAZContextProviderPlugin;
var init_endpoint_service_availability_zones = __esm({
  "../@aws-cdk/toolkit-lib/lib/context-providers/endpoint-service-availability-zones.ts"() {
    "use strict";
    init_private2();
    EndpointServiceAZContextProviderPlugin = class {
      constructor(aws, io) {
        this.aws = aws;
        this.io = io;
      }
      static {
        __name(this, "EndpointServiceAZContextProviderPlugin");
      }
      async getValue(args) {
        const region = args.region;
        const account = args.account;
        const serviceName = args.serviceName;
        await this.io.debug(`Reading AZs for ${account}:${region}:${serviceName}`);
        const ec2 = (await initContextProviderSdk(this.aws, args)).ec2();
        const response = await ec2.describeVpcEndpointServices({
          ServiceNames: [serviceName]
        });
        if (!response.ServiceDetails || response.ServiceDetails.length === 0) {
          await this.io.debug(`Could not retrieve service details for ${account}:${region}:${serviceName}`);
          return [];
        }
        const azs = response.ServiceDetails[0].AvailabilityZones;
        await this.io.debug(`Endpoint service ${account}:${region}:${serviceName} is available in availability zones ${azs}`);
        return azs;
      }
    };
  }
});

// ../@aws-cdk/toolkit-lib/lib/context-providers/hosted-zones.ts
var HostedZoneContextProviderPlugin;
var init_hosted_zones = __esm({
  "../@aws-cdk/toolkit-lib/lib/context-providers/hosted-zones.ts"() {
    "use strict";
    init_private2();
    init_toolkit_error();
    HostedZoneContextProviderPlugin = class {
      constructor(aws, io) {
        this.aws = aws;
        this.io = io;
      }
      static {
        __name(this, "HostedZoneContextProviderPlugin");
      }
      async getValue(args) {
        const account = args.account;
        const region = args.region;
        if (!this.isHostedZoneQuery(args)) {
          throw new ContextProviderError(`HostedZoneProvider requires domainName property to be set in ${args}`);
        }
        const domainName = args.domainName;
        await this.io.debug(`Reading hosted zone ${account}:${region}:${domainName}`);
        const r53 = (await initContextProviderSdk(this.aws, args)).route53();
        const response = await r53.listHostedZonesByName({ DNSName: domainName });
        if (!response.HostedZones) {
          throw new ContextProviderError(`Hosted Zone not found in account ${account}, region ${region}: ${domainName}`);
        }
        const candidateZones = await this.filterZones(r53, response.HostedZones, args);
        if (candidateZones.length !== 1) {
          const filteProps = `dns:${domainName}, privateZone:${args.privateZone}, vpcId:${args.vpcId}`;
          throw new ContextProviderError(`Found zones: ${JSON.stringify(candidateZones)} for ${filteProps}, but wanted exactly 1 zone`);
        }
        return {
          Id: candidateZones[0].Id,
          Name: candidateZones[0].Name
        };
      }
      async filterZones(r53, zones, props) {
        let candidates = [];
        const domainName = props.domainName.endsWith(".") ? props.domainName : `${props.domainName}.`;
        await this.io.debug(`Found the following zones ${JSON.stringify(zones)}`);
        candidates = zones.filter((zone) => zone.Name === domainName);
        await this.io.debug(`Found the following matched name zones ${JSON.stringify(candidates)}`);
        if (props.privateZone) {
          candidates = candidates.filter((zone) => zone.Config && zone.Config.PrivateZone);
        } else {
          candidates = candidates.filter((zone) => !zone.Config || !zone.Config.PrivateZone);
        }
        if (props.vpcId) {
          const vpcZones = [];
          for (const zone of candidates) {
            const data3 = await r53.getHostedZone({ Id: zone.Id });
            if (!data3.VPCs) {
              await this.io.debug(`Expected VPC for private zone but no VPC found ${zone.Id}`);
              continue;
            }
            if (data3.VPCs.map((vpc) => vpc.VPCId).includes(props.vpcId)) {
              vpcZones.push(zone);
            }
          }
          return vpcZones;
        }
        return candidates;
      }
      isHostedZoneQuery(props) {
        return props.domainName !== void 0;
      }
    };
  }
});

// ../@aws-cdk/toolkit-lib/lib/context-providers/keys.ts
var KeyContextProviderPlugin;
var init_keys = __esm({
  "../@aws-cdk/toolkit-lib/lib/context-providers/keys.ts"() {
    "use strict";
    init_private2();
    init_toolkit_error();
    KeyContextProviderPlugin = class {
      constructor(aws, io) {
        this.aws = aws;
        this.io = io;
      }
      static {
        __name(this, "KeyContextProviderPlugin");
      }
      async getValue(args) {
        const kms = (await initContextProviderSdk(this.aws, args)).kms();
        const aliasListEntry = await this.findKey(kms, args);
        return this.readKeyProps(aliasListEntry, args);
      }
      // TODO: use paginator function
      async findKey(kms, args) {
        await this.io.debug(`Listing keys in ${args.account}:${args.region}`);
        let response;
        let nextMarker;
        do {
          response = await kms.listAliases({
            Marker: nextMarker
          });
          const aliases2 = response.Aliases || [];
          for (const alias of aliases2) {
            if (alias.AliasName == args.aliasName) {
              return alias;
            }
          }
          nextMarker = response.NextMarker;
        } while (nextMarker);
        const suppressError = "ignoreErrorOnMissingContext" in args && args.ignoreErrorOnMissingContext;
        const hasDummyKeyId = "dummyValue" in args && typeof args.dummyValue === "object" && args.dummyValue !== null && "keyId" in args.dummyValue;
        if (suppressError && hasDummyKeyId) {
          const keyId = args.dummyValue.keyId;
          return { TargetKeyId: keyId };
        }
        throw new ContextProviderError(`Could not find any key with alias named ${args.aliasName}`);
      }
      async readKeyProps(alias, args) {
        if (!alias.TargetKeyId) {
          throw new ContextProviderError(`Could not find any key with alias named ${args.aliasName}`);
        }
        await this.io.debug(`Key found ${alias.TargetKeyId}`);
        return {
          keyId: alias.TargetKeyId
        };
      }
    };
  }
});

// ../@aws-cdk/toolkit-lib/lib/context-providers/load-balancers.ts
var import_cx_api8, LoadBalancerContextProviderPlugin, LoadBalancerListenerContextProviderPlugin, LoadBalancerProvider;
var init_load_balancers = __esm({
  "../@aws-cdk/toolkit-lib/lib/context-providers/load-balancers.ts"() {
    "use strict";
    import_cx_api8 = __toESM(require_lib3());
    init_private2();
    init_toolkit_error();
    LoadBalancerContextProviderPlugin = class {
      constructor(aws) {
        this.aws = aws;
      }
      static {
        __name(this, "LoadBalancerContextProviderPlugin");
      }
      async getValue(query) {
        if (!query.loadBalancerArn && !query.loadBalancerTags) {
          throw new ContextProviderError("The load balancer lookup query must specify either `loadBalancerArn` or `loadBalancerTags`");
        }
        const loadBalancer = await (await LoadBalancerProvider.getClient(this.aws, query)).getLoadBalancer();
        const ipAddressType = loadBalancer.IpAddressType === "ipv4" ? import_cx_api8.LoadBalancerIpAddressType.IPV4 : import_cx_api8.LoadBalancerIpAddressType.DUAL_STACK;
        return {
          loadBalancerArn: loadBalancer.LoadBalancerArn,
          loadBalancerCanonicalHostedZoneId: loadBalancer.CanonicalHostedZoneId,
          loadBalancerDnsName: loadBalancer.DNSName,
          vpcId: loadBalancer.VpcId,
          securityGroupIds: loadBalancer.SecurityGroups ?? [],
          ipAddressType
        };
      }
    };
    LoadBalancerListenerContextProviderPlugin = class {
      constructor(aws) {
        this.aws = aws;
      }
      static {
        __name(this, "LoadBalancerListenerContextProviderPlugin");
      }
      async getValue(query) {
        if (!query.listenerArn && !query.loadBalancerArn && !query.loadBalancerTags) {
          throw new ContextProviderError(
            "The load balancer listener query must specify at least one of: `listenerArn`, `loadBalancerArn` or `loadBalancerTags`"
          );
        }
        return (await LoadBalancerProvider.getClient(this.aws, query)).getListener();
      }
    };
    LoadBalancerProvider = class _LoadBalancerProvider {
      constructor(client, filter4, listener) {
        this.client = client;
        this.filter = filter4;
        this.listener = listener;
      }
      static {
        __name(this, "LoadBalancerProvider");
      }
      static async getClient(aws, query) {
        const client = (await initContextProviderSdk(aws, query)).elbv2();
        try {
          const listener = query.listenerArn ? (
            // Assert we're sure there's at least one so it throws if not
            (await client.describeListeners({ ListenerArns: [query.listenerArn] })).Listeners[0]
          ) : void 0;
          return new _LoadBalancerProvider(
            client,
            { ...query, loadBalancerArn: listener?.LoadBalancerArn || query.loadBalancerArn },
            listener
          );
        } catch (err) {
          throw new ContextProviderError(`No load balancer listeners found matching arn ${query.listenerArn}`);
        }
      }
      async getLoadBalancer() {
        const loadBalancers = await this.getLoadBalancers();
        if (loadBalancers.length === 0) {
          throw new ContextProviderError(`No load balancers found matching ${JSON.stringify(this.filter)}`);
        }
        if (loadBalancers.length > 1) {
          throw new ContextProviderError(
            `Multiple load balancers found matching ${JSON.stringify(this.filter)} - please provide more specific criteria`
          );
        }
        return loadBalancers[0];
      }
      async getListener() {
        if (this.listener) {
          try {
            const loadBalancer = await this.getLoadBalancer();
            return {
              listenerArn: this.listener.ListenerArn,
              listenerPort: this.listener.Port,
              securityGroupIds: loadBalancer.SecurityGroups || []
            };
          } catch (err) {
            throw new ContextProviderError(`No associated load balancer found for listener arn ${this.filter.listenerArn}`);
          }
        }
        const loadBalancers = await this.getLoadBalancers();
        if (loadBalancers.length === 0) {
          throw new ContextProviderError(
            `No associated load balancers found for load balancer listener query ${JSON.stringify(this.filter)}`
          );
        }
        const listeners = (await this.getListenersForLoadBalancers(loadBalancers)).filter((listener) => {
          return (!this.filter.listenerPort || listener.Port === this.filter.listenerPort) && (!this.filter.listenerProtocol || listener.Protocol === this.filter.listenerProtocol);
        });
        if (listeners.length === 0) {
          throw new ContextProviderError(`No load balancer listeners found matching ${JSON.stringify(this.filter)}`);
        }
        if (listeners.length > 1) {
          throw new ContextProviderError(
            `Multiple load balancer listeners found matching ${JSON.stringify(this.filter)} - please provide more specific criteria`
          );
        }
        return {
          listenerArn: listeners[0].ListenerArn,
          listenerPort: listeners[0].Port,
          securityGroupIds: loadBalancers.find((lb) => listeners[0].LoadBalancerArn === lb.LoadBalancerArn)?.SecurityGroups || []
        };
      }
      async getLoadBalancers() {
        const loadBalancerArns = this.filter.loadBalancerArn ? [this.filter.loadBalancerArn] : void 0;
        const loadBalancers = (await this.client.paginateDescribeLoadBalancers({
          LoadBalancerArns: loadBalancerArns
        })).filter((lb) => lb.Type === this.filter.loadBalancerType);
        return this.filterByTags(loadBalancers);
      }
      async filterByTags(loadBalancers) {
        if (!this.filter.loadBalancerTags) {
          return loadBalancers;
        }
        return (await this.describeTags(loadBalancers.map((lb) => lb.LoadBalancerArn))).filter((tagDescription) => {
          return this.filter.loadBalancerTags.every((filter4) => {
            return tagDescription.Tags?.some((tag2) => filter4.key === tag2.Key && filter4.value === tag2.Value);
          });
        }).flatMap((tag2) => loadBalancers.filter((loadBalancer) => tag2.ResourceArn === loadBalancer.LoadBalancerArn));
      }
      /**
       * Returns tag descriptions associated with the resources. The API doesn't support
       * pagination, so this function breaks the resource list into chunks and issues
       * the appropriate requests.
       */
      async describeTags(resourceArns) {
        const chunkSize = 20;
        const tags = Array();
        for (let i3 = 0; i3 < resourceArns.length; i3 += chunkSize) {
          const chunk = resourceArns.slice(i3, Math.min(i3 + chunkSize, resourceArns.length));
          const chunkTags = await this.client.describeTags({
            ResourceArns: chunk
          });
          tags.push(...chunkTags.TagDescriptions || []);
        }
        return tags;
      }
      async getListenersForLoadBalancers(loadBalancers) {
        const listeners = [];
        for (const loadBalancer of loadBalancers.map((lb) => lb.LoadBalancerArn)) {
          listeners.push(...await this.client.paginateDescribeListeners({ LoadBalancerArn: loadBalancer }));
        }
        return listeners;
      }
    };
  }
});

// ../@aws-cdk/toolkit-lib/lib/context-providers/security-groups.ts
function hasAllTrafficEgress(securityGroup) {
  let hasAllTrafficCidrV4 = false;
  let hasAllTrafficCidrV6 = false;
  for (const ipPermission of securityGroup.IpPermissionsEgress ?? []) {
    const isAllProtocols = ipPermission.IpProtocol === "-1";
    if (isAllProtocols && ipPermission.IpRanges?.some((m3) => m3.CidrIp === "0.0.0.0/0")) {
      hasAllTrafficCidrV4 = true;
    }
    if (isAllProtocols && ipPermission.Ipv6Ranges?.some((m3) => m3.CidrIpv6 === "::/0")) {
      hasAllTrafficCidrV6 = true;
    }
  }
  return hasAllTrafficCidrV4 && hasAllTrafficCidrV6;
}
var SecurityGroupContextProviderPlugin;
var init_security_groups = __esm({
  "../@aws-cdk/toolkit-lib/lib/context-providers/security-groups.ts"() {
    "use strict";
    init_private2();
    init_toolkit_error();
    SecurityGroupContextProviderPlugin = class {
      constructor(aws) {
        this.aws = aws;
      }
      static {
        __name(this, "SecurityGroupContextProviderPlugin");
      }
      async getValue(args) {
        if (args.securityGroupId && args.securityGroupName) {
          throw new ContextProviderError(
            "'securityGroupId' and 'securityGroupName' can not be specified both when looking up a security group"
          );
        }
        if (!args.securityGroupId && !args.securityGroupName) {
          throw new ContextProviderError("'securityGroupId' or 'securityGroupName' must be specified to look up a security group");
        }
        const ec2 = (await initContextProviderSdk(this.aws, args)).ec2();
        const filters = [];
        if (args.vpcId) {
          filters.push({
            Name: "vpc-id",
            Values: [args.vpcId]
          });
        }
        if (args.securityGroupName) {
          filters.push({
            Name: "group-name",
            Values: [args.securityGroupName]
          });
        }
        const response = await ec2.describeSecurityGroups({
          GroupIds: args.securityGroupId ? [args.securityGroupId] : void 0,
          Filters: filters.length > 0 ? filters : void 0
        });
        const securityGroups = response.SecurityGroups ?? [];
        if (securityGroups.length === 0) {
          throw new ContextProviderError(`No security groups found matching ${JSON.stringify(args)}`);
        }
        if (securityGroups.length > 1) {
          throw new ContextProviderError(`More than one security groups found matching ${JSON.stringify(args)}`);
        }
        const [securityGroup] = securityGroups;
        return {
          securityGroupId: securityGroup.GroupId,
          allowAllOutbound: hasAllTrafficEgress(securityGroup)
        };
      }
    };
    __name(hasAllTrafficEgress, "hasAllTrafficEgress");
  }
});

// ../@aws-cdk/toolkit-lib/lib/context-providers/ssm-parameters.ts
var SSMContextProviderPlugin;
var init_ssm_parameters = __esm({
  "../@aws-cdk/toolkit-lib/lib/context-providers/ssm-parameters.ts"() {
    "use strict";
    init_private2();
    init_toolkit_error();
    SSMContextProviderPlugin = class {
      constructor(aws, io) {
        this.aws = aws;
        this.io = io;
      }
      static {
        __name(this, "SSMContextProviderPlugin");
      }
      async getValue(args) {
        const region = args.region;
        const account = args.account;
        if (!("parameterName" in args)) {
          throw new ContextProviderError("parameterName must be provided in props for SSMContextProviderPlugin");
        }
        const parameterName = args.parameterName;
        await this.io.debug(`Reading SSM parameter ${account}:${region}:${parameterName}`);
        const response = await this.getSsmParameterValue(args);
        const parameterNotFound = !response.Parameter || response.Parameter.Value === void 0;
        const suppressError = "ignoreErrorOnMissingContext" in args && args.ignoreErrorOnMissingContext;
        if (parameterNotFound && suppressError && "dummyValue" in args) {
          return args.dummyValue;
        }
        if (parameterNotFound) {
          throw new ContextProviderError(`SSM parameter not available in account ${account}, region ${region}: ${parameterName}`);
        }
        return response.Parameter.Value;
      }
      /**
       * Gets the value of an SSM Parameter, while not throwin if the parameter does not exist.
       * @param account       - the account in which the SSM Parameter is expected to be.
       * @param region        - the region in which the SSM Parameter is expected to be.
       * @param parameterName - the name of the SSM Parameter
       * @param lookupRoleArn - the ARN of the lookup role.
       *
       * @returns the result of the ``GetParameter`` operation.
       *
       * @throws Error if a service error (other than ``ParameterNotFound``) occurs.
       */
      async getSsmParameterValue(args) {
        const ssm = (await initContextProviderSdk(this.aws, args)).ssm();
        try {
          return await ssm.getParameter({ Name: args.parameterName });
        } catch (e3) {
          if (e3.name === "ParameterNotFound") {
            return { $metadata: {} };
          }
          throw e3;
        }
      }
    };
  }
});

// ../@aws-cdk/toolkit-lib/lib/context-providers/vpcs.ts
function getTag(name, tags) {
  for (const tag2 of tags || []) {
    if (tag2.Key === name) {
      return tag2.Value;
    }
  }
  return void 0;
}
function groupSubnets(subnets) {
  const grouping = {};
  for (const subnet of subnets) {
    const key = [subnet.type, subnet.name].toString();
    if (!(key in grouping)) {
      grouping[key] = [];
    }
    grouping[key].push(subnet);
  }
  const groups = Object.values(grouping).map((sns) => {
    sns.sort((a3, b3) => a3.az.localeCompare(b3.az));
    return {
      type: sns[0].type,
      name: sns[0].name,
      subnets: sns
    };
  });
  const azs = groups[0].subnets.map((s3) => s3.az);
  for (const group of groups) {
    const groupAZs = group.subnets.map((s3) => s3.az);
    if (!arraysEqual(groupAZs, azs)) {
      throw new ContextProviderError(`Not all subnets in VPC have the same AZs: ${groupAZs} vs ${azs}`);
    }
  }
  return { azs, groups };
}
function groupAsymmetricSubnets(subnets) {
  const grouping = {};
  for (const subnet of subnets) {
    const key = [subnet.type, subnet.name].toString();
    if (!(key in grouping)) {
      grouping[key] = [];
    }
    grouping[key].push(subnet);
  }
  return Object.values(grouping).map((subnetArray) => {
    subnetArray.sort((subnet1, subnet2) => subnet1.az.localeCompare(subnet2.az));
    return {
      name: subnetArray[0].name,
      type: subnetTypeToVpcSubnetType(subnetArray[0].type),
      subnets: subnetArray.map((subnet) => ({
        subnetId: subnet.subnetId,
        cidr: subnet.cidr,
        availabilityZone: subnet.az,
        routeTableId: subnet.routeTableId
      }))
    };
  });
}
function subnetTypeToVpcSubnetType(type) {
  switch (type) {
    case "Isolated" /* Isolated */:
      return import_cx_api9.VpcSubnetGroupType.ISOLATED;
    case "Private" /* Private */:
      return import_cx_api9.VpcSubnetGroupType.PRIVATE;
    case "Public" /* Public */:
      return import_cx_api9.VpcSubnetGroupType.PUBLIC;
  }
}
function isValidSubnetType(val) {
  return val === "Public" /* Public */ || val === "Private" /* Private */ || val === "Isolated" /* Isolated */;
}
function arraysEqual(as, bs) {
  if (as.length !== bs.length) {
    return false;
  }
  for (let i3 = 0; i3 < as.length; i3++) {
    if (as[i3] !== bs[i3]) {
      return false;
    }
  }
  return true;
}
function findGroups(type, groups) {
  return groups.groups.filter((g3) => g3.type === type);
}
function flatMap3(xs, fn) {
  const ret = new Array();
  for (const x3 of xs) {
    ret.push(...fn(x3));
  }
  return ret;
}
function collapse(xs) {
  if (xs.length > 0) {
    return xs;
  }
  return void 0;
}
var import_cx_api9, VpcNetworkContextProviderPlugin, RouteTables;
var init_vpcs = __esm({
  "../@aws-cdk/toolkit-lib/lib/context-providers/vpcs.ts"() {
    "use strict";
    import_cx_api9 = __toESM(require_lib3());
    init_private2();
    init_toolkit_error();
    VpcNetworkContextProviderPlugin = class {
      constructor(aws, io) {
        this.aws = aws;
        this.io = io;
      }
      static {
        __name(this, "VpcNetworkContextProviderPlugin");
      }
      async getValue(args) {
        const ec2 = (await initContextProviderSdk(this.aws, args)).ec2();
        const vpcId = await this.findVpc(ec2, args);
        return this.readVpcProps(ec2, vpcId, args);
      }
      async findVpc(ec2, args) {
        const filters = Object.entries(args.filter).map(([tag2, value]) => ({ Name: tag2, Values: [value] }));
        await this.io.debug(`Listing VPCs in ${args.account}:${args.region}`);
        const response = await ec2.describeVpcs({ Filters: filters });
        const vpcs = response.Vpcs || [];
        if (vpcs.length === 0) {
          throw new ContextProviderError(`Could not find any VPCs matching ${JSON.stringify(args)}`);
        }
        if (vpcs.length > 1) {
          throw new ContextProviderError(`Found ${vpcs.length} VPCs matching ${JSON.stringify(args)}; please narrow the search criteria`);
        }
        return vpcs[0];
      }
      async readVpcProps(ec2, vpc, args) {
        const vpcId = vpc.VpcId;
        await this.io.debug(`Describing VPC ${vpcId}`);
        const filters = { Filters: [{ Name: "vpc-id", Values: [vpcId] }] };
        const subnetsResponse = await ec2.describeSubnets(filters);
        const listedSubnets = subnetsResponse.Subnets || [];
        const routeTablesResponse = await ec2.describeRouteTables(filters);
        const routeTables = new RouteTables(routeTablesResponse.RouteTables || []);
        const azs = Array.from(new Set(listedSubnets.map((s3) => s3.AvailabilityZone)));
        azs.sort();
        const subnets = listedSubnets.map((subnet) => {
          let type = getTag("aws-cdk:subnet-type", subnet.Tags);
          if (type === void 0 && subnet.MapPublicIpOnLaunch) {
            type = "Public" /* Public */;
          }
          if (type === void 0 && routeTables.hasRouteToIgw(subnet.SubnetId)) {
            type = "Public" /* Public */;
          }
          if (type === void 0 && routeTables.hasRouteToNatGateway(subnet.SubnetId)) {
            type = "Private" /* Private */;
          }
          if (type === void 0 && routeTables.hasRouteToTransitGateway(subnet.SubnetId)) {
            type = "Private" /* Private */;
          }
          if (type === void 0) {
            type = "Isolated" /* Isolated */;
          }
          if (!isValidSubnetType(type)) {
            throw new ContextProviderError(
              `Subnet ${subnet.SubnetArn} has invalid subnet type ${type} (must be ${"Public" /* Public */}, ${"Private" /* Private */} or ${"Isolated" /* Isolated */})`
            );
          }
          if (args.subnetGroupNameTag && !getTag(args.subnetGroupNameTag, subnet.Tags)) {
            throw new ContextProviderError(
              `Invalid subnetGroupNameTag: Subnet ${subnet.SubnetArn} does not have an associated tag with Key='${args.subnetGroupNameTag}'`
            );
          }
          const name = getTag(args.subnetGroupNameTag || "aws-cdk:subnet-name", subnet.Tags) || type;
          const routeTableId = routeTables.routeTableIdForSubnetId(subnet.SubnetId);
          if (!routeTableId) {
            throw new ContextProviderError(
              `Subnet ${subnet.SubnetArn} does not have an associated route table (and there is no "main" table)`
            );
          }
          return {
            az: subnet.AvailabilityZone,
            cidr: subnet.CidrBlock,
            type,
            name,
            subnetId: subnet.SubnetId,
            routeTableId
          };
        });
        let grouped;
        let assymetricSubnetGroups;
        if (args.returnAsymmetricSubnets) {
          grouped = { azs: [], groups: [] };
          assymetricSubnetGroups = groupAsymmetricSubnets(subnets);
        } else {
          grouped = groupSubnets(subnets);
          assymetricSubnetGroups = void 0;
        }
        const vpnGatewayResponse = args.returnVpnGateways ?? true ? await ec2.describeVpnGateways({
          Filters: [
            {
              Name: "attachment.vpc-id",
              Values: [vpcId]
            },
            {
              Name: "attachment.state",
              Values: ["attached"]
            },
            {
              Name: "state",
              Values: ["available"]
            }
          ]
        }) : void 0;
        const vpnGatewayId = vpnGatewayResponse?.VpnGateways?.length === 1 ? vpnGatewayResponse.VpnGateways[0].VpnGatewayId : void 0;
        return {
          vpcId,
          vpcCidrBlock: vpc.CidrBlock,
          ownerAccountId: vpc.OwnerId,
          availabilityZones: grouped.azs,
          isolatedSubnetIds: collapse(
            flatMap3(findGroups("Isolated" /* Isolated */, grouped), (group) => group.subnets.map((s3) => s3.subnetId))
          ),
          isolatedSubnetNames: collapse(
            flatMap3(findGroups("Isolated" /* Isolated */, grouped), (group) => group.name ? [group.name] : [])
          ),
          isolatedSubnetRouteTableIds: collapse(
            flatMap3(findGroups("Isolated" /* Isolated */, grouped), (group) => group.subnets.map((s3) => s3.routeTableId))
          ),
          privateSubnetIds: collapse(
            flatMap3(findGroups("Private" /* Private */, grouped), (group) => group.subnets.map((s3) => s3.subnetId))
          ),
          privateSubnetNames: collapse(
            flatMap3(findGroups("Private" /* Private */, grouped), (group) => group.name ? [group.name] : [])
          ),
          privateSubnetRouteTableIds: collapse(
            flatMap3(findGroups("Private" /* Private */, grouped), (group) => group.subnets.map((s3) => s3.routeTableId))
          ),
          publicSubnetIds: collapse(
            flatMap3(findGroups("Public" /* Public */, grouped), (group) => group.subnets.map((s3) => s3.subnetId))
          ),
          publicSubnetNames: collapse(
            flatMap3(findGroups("Public" /* Public */, grouped), (group) => group.name ? [group.name] : [])
          ),
          publicSubnetRouteTableIds: collapse(
            flatMap3(findGroups("Public" /* Public */, grouped), (group) => group.subnets.map((s3) => s3.routeTableId))
          ),
          vpnGatewayId,
          subnetGroups: assymetricSubnetGroups
        };
      }
    };
    RouteTables = class {
      constructor(tables) {
        this.tables = tables;
        this.mainRouteTable = this.tables.find(
          (table3) => !!table3.Associations && table3.Associations.some((assoc) => !!assoc.Main)
        );
      }
      static {
        __name(this, "RouteTables");
      }
      mainRouteTable;
      routeTableIdForSubnetId(subnetId) {
        const table3 = this.tableForSubnet(subnetId);
        return table3 && table3.RouteTableId || this.mainRouteTable && this.mainRouteTable.RouteTableId;
      }
      /**
       * Whether the given subnet has a route to a NAT Gateway
       */
      hasRouteToNatGateway(subnetId) {
        const table3 = this.tableForSubnet(subnetId) || this.mainRouteTable;
        return !!table3 && !!table3.Routes && table3.Routes.some((route) => !!route.NatGatewayId && route.DestinationCidrBlock === "0.0.0.0/0");
      }
      /**
       * Whether the given subnet has a route to a Transit Gateway
       */
      hasRouteToTransitGateway(subnetId) {
        const table3 = this.tableForSubnet(subnetId) || this.mainRouteTable;
        return !!table3 && !!table3.Routes && table3.Routes.some((route) => !!route.TransitGatewayId && route.DestinationCidrBlock === "0.0.0.0/0");
      }
      /**
       * Whether the given subnet has a route to an IGW
       */
      hasRouteToIgw(subnetId) {
        const table3 = this.tableForSubnet(subnetId) || this.mainRouteTable;
        return !!table3 && !!table3.Routes && table3.Routes.some((route) => !!route.GatewayId && route.GatewayId.startsWith("igw-"));
      }
      tableForSubnet(subnetId) {
        return this.tables.find(
          (table3) => !!table3.Associations && table3.Associations.some((assoc) => assoc.SubnetId === subnetId)
        );
      }
    };
    __name(getTag, "getTag");
    __name(groupSubnets, "groupSubnets");
    __name(groupAsymmetricSubnets, "groupAsymmetricSubnets");
    __name(subnetTypeToVpcSubnetType, "subnetTypeToVpcSubnetType");
    __name(isValidSubnetType, "isValidSubnetType");
    __name(arraysEqual, "arraysEqual");
    __name(findGroups, "findGroups");
    __name(flatMap3, "flatMap");
    __name(collapse, "collapse");
  }
});

// ../@aws-cdk/toolkit-lib/lib/context-providers/index.ts
async function provideContextValues(missingValues, sdk, pluginHost, ioHelper) {
  const updates = {};
  for (const missingContext of missingValues) {
    const key = missingContext.key;
    const providerName = missingContext.provider === cxschema3.ContextProvider.PLUGIN ? `${PLUGIN_PROVIDER_PREFIX}:${missingContext.props.pluginName}` : missingContext.provider;
    let factory;
    if (providerName.startsWith(`${PLUGIN_PROVIDER_PREFIX}:`)) {
      const plugin = pluginHost.contextProviderPlugins[providerName.substring(PLUGIN_PROVIDER_PREFIX.length + 1)];
      if (!plugin) {
        throw new ContextProviderError(`Unrecognized plugin context provider name: ${missingContext.provider}.`);
      }
      factory = /* @__PURE__ */ __name(() => plugin, "factory");
    } else {
      factory = availableContextProviders[providerName];
      if (!factory) {
        throw new ContextProviderError(`Unrecognized context provider name: ${missingContext.provider}. You might need to update the toolkit to match the version of the construct library.`);
      }
    }
    const provider = factory(sdk, new ContextProviderMessages(ioHelper, providerName));
    let value;
    try {
      const environment = missingContext.props.account && missingContext.props.region ? cxapi3.EnvironmentUtils.make(missingContext.props.account, missingContext.props.region) : void 0;
      const resolvedEnvironment = environment ? await sdk.resolveEnvironment(environment) : { account: "?", region: "?", name: "?" };
      const arns = await replaceEnvPlaceholders({
        lookupRoleArn: missingContext.props.lookupRoleArn
      }, resolvedEnvironment, sdk);
      value = await provider.getValue({ ...missingContext.props, lookupRoleArn: arns.lookupRoleArn });
    } catch (e3) {
      value = { [cxapi3.PROVIDER_ERROR_KEY]: formatErrorMessage(e3), [TRANSIENT_CONTEXT_KEY]: true };
    }
    updates[key] = value;
    await ioHelper.defaults.debug(`Setting "${key}" context to ${JSON.stringify(value)}`);
  }
  return updates;
}
var cxschema3, cxapi3, PLUGIN_PROVIDER_PREFIX, ContextProviderMessages, availableContextProviders;
var init_context_providers = __esm({
  "../@aws-cdk/toolkit-lib/lib/context-providers/index.ts"() {
    "use strict";
    cxschema3 = __toESM(require_lib2());
    cxapi3 = __toESM(require_lib3());
    init_ami();
    init_availability_zones();
    init_cc_api_provider();
    init_endpoint_service_availability_zones();
    init_hosted_zones();
    init_keys();
    init_load_balancers();
    init_security_groups();
    init_ssm_parameters();
    init_vpcs();
    init_context2();
    init_environment();
    init_private();
    init_toolkit_error();
    init_util3();
    PLUGIN_PROVIDER_PREFIX = "plugin";
    ContextProviderMessages = class {
      static {
        __name(this, "ContextProviderMessages");
      }
      ioHelper;
      providerName;
      constructor(ioHelper, providerName) {
        this.ioHelper = ioHelper;
        this.providerName = providerName;
      }
      async info(message2) {
        return this.ioHelper.notify(IO.CDK_ASSEMBLY_I0300.msg(message2, {
          provider: this.providerName
        }));
      }
      async debug(message2) {
        return this.ioHelper.notify(IO.CDK_ASSEMBLY_I0301.msg(message2, {
          provider: this.providerName
        }));
      }
    };
    __name(provideContextValues, "provideContextValues");
    availableContextProviders = {
      [cxschema3.ContextProvider.AVAILABILITY_ZONE_PROVIDER]: (s3, io) => new AZContextProviderPlugin(s3, io),
      [cxschema3.ContextProvider.SSM_PARAMETER_PROVIDER]: (s3, io) => new SSMContextProviderPlugin(s3, io),
      [cxschema3.ContextProvider.HOSTED_ZONE_PROVIDER]: (s3, io) => new HostedZoneContextProviderPlugin(s3, io),
      [cxschema3.ContextProvider.VPC_PROVIDER]: (s3, io) => new VpcNetworkContextProviderPlugin(s3, io),
      [cxschema3.ContextProvider.AMI_PROVIDER]: (s3, io) => new AmiContextProviderPlugin(s3, io),
      [cxschema3.ContextProvider.ENDPOINT_SERVICE_AVAILABILITY_ZONE_PROVIDER]: (s3, io) => new EndpointServiceAZContextProviderPlugin(s3, io),
      [cxschema3.ContextProvider.SECURITY_GROUP_PROVIDER]: (s3) => new SecurityGroupContextProviderPlugin(s3),
      [cxschema3.ContextProvider.LOAD_BALANCER_PROVIDER]: (s3) => new LoadBalancerContextProviderPlugin(s3),
      [cxschema3.ContextProvider.LOAD_BALANCER_LISTENER_PROVIDER]: (s3) => new LoadBalancerListenerContextProviderPlugin(s3),
      [cxschema3.ContextProvider.KEY_PROVIDER]: (s3, io) => new KeyContextProviderPlugin(s3, io),
      [cxschema3.ContextProvider.CC_API_PROVIDER]: (s3) => new CcApiContextProviderPlugin(s3)
    };
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/cloud-assembly/private/helpers.ts
function temporarilyWriteEnv(env2) {
  const oldEnv = process.env;
  process.env = detectSynthvarConflicts({
    ...process.env,
    ...env2
  });
  return {
    [Symbol.dispose]() {
      process.env = oldEnv;
    }
  };
}
function detectSynthvarConflicts(obj) {
  return new Proxy(obj, {
    get(target, prop) {
      return target[prop];
    },
    set(target, prop, value) {
      if (["CDK_CONTEXT", "CDK_OUTDIR"].includes(String(prop))) {
        throw new ToolkitError("process.env is temporarily immutable. Set 'clobberEnv: false' if you want to run multiple 'fromAssemblyBuilder' synths concurrently");
      }
      target[prop] = value;
      return true;
    }
  });
}
function missingContextKeys(missing) {
  return new Set((missing || []).map((m3) => m3.key));
}
var init_helpers = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/cloud-assembly/private/helpers.ts"() {
    "use strict";
    init_toolkit_error();
    __name(temporarilyWriteEnv, "temporarilyWriteEnv");
    __name(detectSynthvarConflicts, "detectSynthvarConflicts");
    __name(missingContextKeys, "missingContextKeys");
  }
});

// ../@aws-cdk/toolkit-lib/lib/util/sets.ts
function equalSets(a3, b3) {
  if (a3.size !== b3.size) {
    return false;
  }
  for (const x3 of a3) {
    if (!b3.has(x3)) {
      return false;
    }
  }
  return true;
}
function setDiff(a3, b3) {
  return new Set(Array.from(a3).filter((x3) => !b3.has(x3)));
}
var init_sets = __esm({
  "../@aws-cdk/toolkit-lib/lib/util/sets.ts"() {
    "use strict";
    __name(equalSets, "equalSets");
    __name(setDiff, "setDiff");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/cloud-assembly/private/context-aware-source.ts
var ContextAwareCloudAssemblySource;
var init_context_aware_source = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/cloud-assembly/private/context-aware-source.ts"() {
    "use strict";
    init_context_providers();
    init_toolkit_error();
    init_private();
    init_helpers();
    init_sets();
    ContextAwareCloudAssemblySource = class {
      constructor(source, props) {
        this.source = source;
        this.props = props;
        this.canLookup = props.lookups ?? true;
        this.context = props.contextStore;
        this.ioHelper = props.services.ioHelper;
      }
      static {
        __name(this, "ContextAwareCloudAssemblySource");
      }
      canLookup;
      context;
      ioHelper;
      /**
       * Produce a Cloud Assembly, i.e. a set of stacks
       */
      async produce() {
        let previouslyMissingKeys;
        while (true) {
          const readableAsm = await this.source.produce();
          const assembly = readableAsm.cloudAssembly;
          if (assembly.manifest.missing && assembly.manifest.missing.length > 0) {
            const missingKeysSet = missingContextKeys(assembly.manifest.missing);
            const missingKeys = Array.from(missingKeysSet);
            if (!this.canLookup) {
              throw new ToolkitError(
                `Context lookups have been disabled. Make sure all necessary context is already in 'cdk.context.json' by running 'cdk synth' on a machine with sufficient AWS credentials and committing the result. Missing context keys: '${missingKeys.join(", ")}'`
              );
            }
            let tryLookup = true;
            if (previouslyMissingKeys && equalSets(missingKeysSet, previouslyMissingKeys)) {
              await this.ioHelper.notify(IO.CDK_ASSEMBLY_I0240.msg("Not making progress trying to resolve environmental context. Giving up.", { missingKeys }));
              tryLookup = false;
            }
            previouslyMissingKeys = missingKeysSet;
            if (tryLookup) {
              await this.ioHelper.notify(IO.CDK_ASSEMBLY_I0241.msg("Some context information is missing. Fetching...", { missingKeys }));
              const contextUpdates = await provideContextValues(
                assembly.manifest.missing,
                this.props.services.sdkProvider,
                this.props.services.pluginHost,
                this.ioHelper
              );
              await this.ioHelper.notify(IO.CDK_ASSEMBLY_I0042.msg("Writing context updates...", {
                context: contextUpdates
              }));
              await this.context.update(contextUpdates);
              await readableAsm._unlock();
              continue;
            }
          }
          return readableAsm;
        }
      }
    };
  }
});

// ../@aws-cdk/toolkit-lib/node_modules/split2/index.js
var require_split2 = __commonJS({
  "../@aws-cdk/toolkit-lib/node_modules/split2/index.js"(exports2, module2) {
    "use strict";
    var { Transform } = require("stream");
    var { StringDecoder: StringDecoder2 } = require("string_decoder");
    var kLast = Symbol("last");
    var kDecoder = Symbol("decoder");
    function transform(chunk, enc, cb) {
      let list2;
      if (this.overflow) {
        const buf = this[kDecoder].write(chunk);
        list2 = buf.split(this.matcher);
        if (list2.length === 1) return cb();
        list2.shift();
        this.overflow = false;
      } else {
        this[kLast] += this[kDecoder].write(chunk);
        list2 = this[kLast].split(this.matcher);
      }
      this[kLast] = list2.pop();
      for (let i3 = 0; i3 < list2.length; i3++) {
        try {
          push(this, this.mapper(list2[i3]));
        } catch (error5) {
          return cb(error5);
        }
      }
      this.overflow = this[kLast].length > this.maxLength;
      if (this.overflow && !this.skipOverflow) {
        cb(new Error("maximum buffer reached"));
        return;
      }
      cb();
    }
    __name(transform, "transform");
    function flush(cb) {
      this[kLast] += this[kDecoder].end();
      if (this[kLast]) {
        try {
          push(this, this.mapper(this[kLast]));
        } catch (error5) {
          return cb(error5);
        }
      }
      cb();
    }
    __name(flush, "flush");
    function push(self2, val) {
      if (val !== void 0) {
        self2.push(val);
      }
    }
    __name(push, "push");
    function noop(incoming) {
      return incoming;
    }
    __name(noop, "noop");
    function split2(matcher, mapper, options) {
      matcher = matcher || /\r?\n/;
      mapper = mapper || noop;
      options = options || {};
      switch (arguments.length) {
        case 1:
          if (typeof matcher === "function") {
            mapper = matcher;
            matcher = /\r?\n/;
          } else if (typeof matcher === "object" && !(matcher instanceof RegExp) && !matcher[Symbol.split]) {
            options = matcher;
            matcher = /\r?\n/;
          }
          break;
        case 2:
          if (typeof matcher === "function") {
            options = mapper;
            mapper = matcher;
            matcher = /\r?\n/;
          } else if (typeof mapper === "object") {
            options = mapper;
            mapper = noop;
          }
      }
      options = Object.assign({}, options);
      options.autoDestroy = true;
      options.transform = transform;
      options.flush = flush;
      options.readableObjectMode = true;
      const stream3 = new Transform(options);
      stream3[kLast] = "";
      stream3[kDecoder] = new StringDecoder2("utf8");
      stream3.matcher = matcher;
      stream3.mapper = mapper;
      stream3.maxLength = options.maxLength;
      stream3.skipOverflow = options.skipOverflow || false;
      stream3.overflow = false;
      stream3._destroy = function(err, cb) {
        this._writableState.errorEmitted = false;
        cb(err);
      };
      return stream3;
    }
    __name(split2, "split");
    module2.exports = split2;
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/cloud-assembly/private/exec.ts
async function execInChildProcess(commandAndArgs, options = {}) {
  return new Promise((ok, fail) => {
    const proc2 = child_process2.spawn(commandAndArgs, {
      stdio: ["ignore", "pipe", "pipe"],
      detached: false,
      shell: true,
      cwd: options.cwd,
      env: options.env
    });
    const eventPublisher = options.eventPublisher ?? ((type, line) => {
      switch (type) {
        case "data_stdout":
          process.stdout.write(line);
          return;
        case "data_stderr":
          process.stderr.write(line);
          return;
        case "open":
        case "close":
          return;
      }
    });
    const stderr2 = new Array();
    proc2.stdout.pipe(split()).on("data", (line) => eventPublisher("data_stdout", line));
    proc2.stderr.pipe(split()).on("data", (line) => {
      stderr2.push(line);
      return eventPublisher("data_stderr", line);
    });
    proc2.on("error", fail);
    proc2.on("exit", (code) => {
      if (code === 0) {
        return ok();
      } else {
        let cause;
        if (stderr2.length) {
          cause = new Error(stderr2.join("\n"));
          cause.name = "ExecutionError";
        }
        return fail(AssemblyError.withCause(`${commandAndArgs}: Subprocess exited with error ${code}`, cause));
      }
    });
  });
}
var child_process2, split;
var init_exec = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/cloud-assembly/private/exec.ts"() {
    "use strict";
    child_process2 = __toESM(require("node:child_process"));
    init_toolkit_error();
    split = require_split2();
    __name(execInChildProcess, "execInChildProcess");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/cloud-assembly/environment.ts
async function prepareDefaultEnvironment(aws, debugFn) {
  const env2 = {};
  env2[cxapi4.DEFAULT_REGION_ENV] = aws.defaultRegion;
  await debugFn(`Setting "${cxapi4.DEFAULT_REGION_ENV}" environment variable to ${env2[cxapi4.DEFAULT_REGION_ENV]}`);
  const accountId = (await aws.defaultAccount())?.accountId;
  if (accountId) {
    env2[cxapi4.DEFAULT_ACCOUNT_ENV] = accountId;
    await debugFn(`Setting "${cxapi4.DEFAULT_ACCOUNT_ENV}" environment variable to ${env2[cxapi4.DEFAULT_ACCOUNT_ENV]}`);
  }
  return env2;
}
function contextFromSettings(settings) {
  const context = {};
  const pathMetadata = settings.get(["pathMetadata"]) ?? true;
  if (pathMetadata) {
    context[cxapi4.PATH_METADATA_ENABLE_CONTEXT] = true;
  }
  const assetMetadata = settings.get(["assetMetadata"]) ?? true;
  if (assetMetadata) {
    context[cxapi4.ASSET_RESOURCE_METADATA_ENABLED_CONTEXT] = true;
  }
  const versionReporting = settings.get(["versionReporting"]) ?? true;
  if (versionReporting) {
    context[cxapi4.ANALYTICS_REPORTING_ENABLED_CONTEXT] = true;
  }
  if (!versionReporting) {
    context["aws:cdk:disable-version-reporting"] = true;
  }
  const stagingEnabled = settings.get(["staging"]) ?? true;
  if (!stagingEnabled) {
    context[cxapi4.DISABLE_ASSET_STAGING_CONTEXT] = true;
  }
  const bundlingStacks = settings.get(["bundlingStacks"]) ?? ["**"];
  context[cxapi4.BUNDLING_STACKS] = bundlingStacks;
  return context;
}
function synthParametersFromSettings(settings) {
  return {
    context: contextFromSettings(settings),
    env: {
      // An environment variable instead of a context variable, so it can also
      // be accessed in framework code where we don't have access to a construct tree.
      ...settings.get(["debug"]) ? { CDK_DEBUG: "true" } : {}
    }
  };
}
function spaceAvailableForContext(env2, limit) {
  const size = /* @__PURE__ */ __name((value) => value != null ? Buffer.byteLength(value) : 0, "size");
  const usedSpace = Object.entries(env2).map(([k3, v6]) => k3 === cxapi4.CONTEXT_ENV ? size(k3) : size(k3) + size(v6)).reduce((a3, b3) => a3 + b3, 0);
  return Math.max(0, limit - usedSpace);
}
async function guessExecutable(app, debugFn) {
  const commandLine = appToArray(app);
  if (commandLine.length === 1) {
    let fstat;
    try {
      fstat = await fs21.stat(commandLine[0]);
    } catch {
      await debugFn(`Not a file: '${commandLine[0]}'. Using '${commandLine}' as command-line`);
      return commandLine;
    }
    const isExecutable = (fstat.mode & fs21.constants.X_OK) !== 0;
    const isWindows = process.platform === "win32";
    const handler = EXTENSION_MAP.get(path22.extname(commandLine[0]));
    if (handler && (!isExecutable || isWindows)) {
      return handler(commandLine[0]);
    }
  }
  return commandLine;
}
function executeNode(scriptFile) {
  return [process.execPath, scriptFile];
}
function appToArray(app) {
  return typeof app === "string" ? app.split(" ") : app;
}
var path22, cxapi4, fs21, EXTENSION_MAP;
var init_environment2 = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/cloud-assembly/environment.ts"() {
    "use strict";
    path22 = __toESM(require("path"));
    cxapi4 = __toESM(require_lib3());
    fs21 = __toESM(require_lib4());
    __name(prepareDefaultEnvironment, "prepareDefaultEnvironment");
    __name(contextFromSettings, "contextFromSettings");
    __name(synthParametersFromSettings, "synthParametersFromSettings");
    __name(spaceAvailableForContext, "spaceAvailableForContext");
    __name(guessExecutable, "guessExecutable");
    EXTENSION_MAP = /* @__PURE__ */ new Map([
      [".js", executeNode]
    ]);
    __name(executeNode, "executeNode");
    __name(appToArray, "appToArray");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/cloud-assembly/private/prepare-source.ts
function writeContextToEnv(env2, context, completeness) {
  let contextOverflowLocation = null;
  const envVariableSizeLimit = os9.platform() === "win32" ? 32760 : 131072;
  const completeEnv = { ...completeness === "add-process-env-later" ? process.env : {}, ...env2 };
  const [smallContext, overflow] = splitBySize(context, spaceAvailableForContext(completeEnv, envVariableSizeLimit));
  env2[cxapi5.CONTEXT_ENV] = JSON.stringify(smallContext);
  if (Object.keys(overflow ?? {}).length > 0) {
    const contextDir = fs22.mkdtempSync(path23.join(os9.tmpdir(), "cdk-context"));
    contextOverflowLocation = path23.join(contextDir, "context-overflow.json");
    fs22.writeJSONSync(contextOverflowLocation, overflow);
    env2[cxapi5.CONTEXT_OVERFLOW_LOCATION_ENV] = contextOverflowLocation;
  }
  return async () => {
    if (contextOverflowLocation) {
      await fs22.promises.rm(path23.dirname(contextOverflowLocation), { recursive: true, force: true });
    }
  };
}
async function checkContextOverflowSupport(assembly, ioHelper) {
  const traceFn = /* @__PURE__ */ __name((msg) => ioHelper.defaults.trace(msg), "traceFn");
  const tree = await loadTree(assembly, traceFn);
  if (!frameworkSupportsContextOverflow(tree)) {
    await ioHelper.notify(IO.CDK_ASSEMBLY_W0010.msg("Part of the context could not be sent to the application. Please update the AWS CDK library to the latest version."));
  }
}
function frameworkSupportsContextOverflow(tree) {
  return !some(tree, (node) => {
    const fqn = node.constructInfo?.fqn;
    const version2 = node.constructInfo?.version;
    return fqn === "aws-cdk-lib.App" && version2 !== "0.0.0" && version2 != null && (0, import_semver.lte)(version2, "2.38.0") || fqn === "@aws-cdk/core.App";
  });
}
async function assemblyFromDirectory(assemblyDir, ioHelper, loadOptions = {}) {
  try {
    const assembly = new cxapi5.CloudAssembly(assemblyDir, {
      skipVersionCheck: !(loadOptions.checkVersion ?? true),
      skipEnumCheck: !(loadOptions.checkEnums ?? true),
      // We sort as we deploy
      topoSort: false
    });
    await checkContextOverflowSupport(assembly, ioHelper);
    return assembly;
  } catch (err) {
    if (err.message.includes(cxschema4.VERSION_MISMATCH)) {
      const message2 = "This AWS CDK Toolkit is not compatible with the AWS CDK library used by your application. Please upgrade to the latest version.";
      await ioHelper.notify(IO.CDK_ASSEMBLY_E1111.msg(message2, { error: err }));
      throw new ToolkitError(`${message2}
(${err.message}`);
    }
    throw err;
  }
}
function settingsFromSynthOptions(synthOpts = {}) {
  return new Settings({
    debug: false,
    pathMetadata: true,
    versionReporting: true,
    assetMetadata: true,
    assetStaging: true,
    ...synthOpts
  }, true);
}
function parametersFromSynthOptions(synthOptions) {
  return synthParametersFromSettings(settingsFromSynthOptions(synthOptions ?? {}));
}
var import_dispose_polyfill3, os9, path23, import_node_util2, cxschema4, cxapi5, fs22, import_semver, ExecutionEnvironment;
var init_prepare_source = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/cloud-assembly/private/prepare-source.ts"() {
    "use strict";
    import_dispose_polyfill3 = __toESM(require_dispose_polyfill());
    os9 = __toESM(require("node:os"));
    path23 = __toESM(require("node:path"));
    import_node_util2 = require("node:util");
    cxschema4 = __toESM(require_lib2());
    cxapi5 = __toESM(require_lib3());
    fs22 = __toESM(require_lib4());
    import_semver = __toESM(require_semver4());
    init_toolkit_error();
    init_util3();
    init_private();
    init_rwlock();
    init_settings();
    init_tree();
    init_environment2();
    ExecutionEnvironment = class _ExecutionEnvironment {
      static {
        __name(this, "ExecutionEnvironment");
      }
      /**
       * Create an ExecutionEnvironment
       *
       * An ExecutionEnvironment holds a writer lock on the given directory which will
       * be cleaned up when the object is disposed.
       *
       * A temporary directory will be created if none is supplied, which will be cleaned
       * up when this object is disposed.
       *
       * If `markSuccessful()` is called, the writer lock is converted to a reader lock
       * and temporary directories will not be cleaned up anymore.
       */
      static async create(services, options) {
        let outDirIsTemporary = false;
        let dir = options.outdir;
        if (!dir) {
          outDirIsTemporary = true;
          dir = fs22.mkdtempSync(path23.join(fs22.realpathSync(os9.tmpdir()), "cdk.out"));
        }
        const lock = await new RWLock(dir).acquireWrite();
        const opts = {
          outdir: dir,
          resolveDefaultAppEnv: options.resolveDefaultAppEnv
        };
        return new _ExecutionEnvironment(services, opts, {
          lock,
          outDirIsTemporary
        });
      }
      /**
       * Should the outdir be disposed of.
       */
      get shouldDisposeOutDir() {
        return this.shouldClean;
      }
      /**
       * The directory the cloud assembly will be written to.
       */
      outdir;
      options;
      ioHelper;
      sdkProvider;
      debugFn;
      lock;
      shouldClean;
      constructor(services, options, { lock, outDirIsTemporary }) {
        this.ioHelper = services.ioHelper;
        this.sdkProvider = services.sdkProvider;
        this.debugFn = (msg) => this.ioHelper.defaults.debug(msg);
        this.lock = lock;
        this.shouldClean = outDirIsTemporary;
        this.outdir = options.outdir;
        this.options = options;
      }
      async [Symbol.asyncDispose]() {
        await this.lock?.release();
        if (this.shouldDisposeOutDir) {
          await fs22.rm(this.outdir, { recursive: true, force: true });
        }
      }
      /**
       * Mark the execution as successful, which stops the writer lock from being released upon disposal
       */
      async markSuccessful() {
        if (!this.lock) {
          throw new TypeError("Cannot mark successful more than once");
        }
        const readLock = await this.lock.convertToReaderLock();
        this.lock = void 0;
        this.shouldClean = false;
        return { readLock };
      }
      /**
       * Begin an execution in this environment
       *
       * This will acquire a write lock on the given environment. The write lock
       * will be released automatically when the return object is disposed, unless it
       * is converted to a reader lock.
       */
      async beginExecution() {
        const lock = await new RWLock(this.outdir).acquireWrite();
        let converted = false;
        return {
          async writeToReadLock() {
            converted = true;
            return lock.convertToReaderLock();
          },
          [Symbol.asyncDispose]: async () => {
            if (!converted) {
              await lock.release();
            }
          }
        };
      }
      /**
       * Guess the executable from the command-line argument
       *
       * Only do this if the file is NOT marked as executable. If it is,
       * we'll defer to the shebang inside the file itself.
       *
       * If we're on Windows, we ALWAYS take the handler, since it's hard to
       * verify if registry associations have or have not been set up for this
       * file type, so we'll assume the worst and take control.
       */
      guessExecutable(app) {
        return guessExecutable(app, this.debugFn);
      }
      /**
       * If we don't have region/account defined in context, we fall back to the default SDK behavior
       * where region is retrieved from ~/.aws/config and account is based on default credentials provider
       * chain and then STS is queried.
       *
       * This is done opportunistically: for example, if we can't access STS for some reason or the region
       * is not configured, the context value will be 'null' and there could failures down the line. In
       * some cases, synthesis does not require region/account information at all, so that might be perfectly
       * fine in certain scenarios.
       */
      async defaultEnvVars() {
        const debugFn = /* @__PURE__ */ __name((msg) => this.ioHelper.notify(IO.CDK_ASSEMBLY_I0010.msg(msg)), "debugFn");
        const env2 = this.options.resolveDefaultAppEnv ? await prepareDefaultEnvironment(this.sdkProvider, debugFn) : {};
        env2[cxapi5.OUTDIR_ENV] = this.outdir;
        await debugFn((0, import_node_util2.format)("outdir:", this.outdir));
        env2[cxapi5.CLI_ASM_VERSION_ENV] = cxschema4.Manifest.version();
        env2[cxapi5.CLI_VERSION_ENV] = versionNumber();
        await debugFn((0, import_node_util2.format)("env:", env2));
        return env2;
      }
      /**
       * Run code from a different working directory
       */
      async changeDir(block, workingDir) {
        const originalWorkingDir = process.cwd();
        try {
          if (workingDir) {
            process.chdir(workingDir);
          }
          return await block();
        } finally {
          if (workingDir) {
            process.chdir(originalWorkingDir);
          }
        }
      }
    };
    __name(writeContextToEnv, "writeContextToEnv");
    __name(checkContextOverflowSupport, "checkContextOverflowSupport");
    __name(frameworkSupportsContextOverflow, "frameworkSupportsContextOverflow");
    __name(assemblyFromDirectory, "assemblyFromDirectory");
    __name(settingsFromSynthOptions, "settingsFromSynthOptions");
    __name(parametersFromSynthOptions, "parametersFromSynthOptions");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/cloud-assembly/private/readable-assembly.ts
var import_node_fs, ReadableCloudAssembly;
var init_readable_assembly = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/cloud-assembly/private/readable-assembly.ts"() {
    "use strict";
    import_node_fs = require("node:fs");
    ReadableCloudAssembly = class {
      constructor(cloudAssembly, lock, options) {
        this.cloudAssembly = cloudAssembly;
        this.lock = lock;
        this.options = options;
      }
      static {
        __name(this, "ReadableCloudAssembly");
      }
      async _unlock() {
        return this.lock.release();
      }
      async dispose() {
        await this.lock.release();
        if (this.options?.deleteOnDispose) {
          await import_node_fs.promises.rm(this.cloudAssembly.directory, { recursive: true, force: true });
        }
      }
      [Symbol.asyncDispose]() {
        return this.dispose();
      }
    };
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/cloud-assembly/source-builder.ts
var path24, import_util49, cxapi6, fs24, CloudAssemblySourceBuilder;
var init_source_builder = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/cloud-assembly/source-builder.ts"() {
    "use strict";
    path24 = __toESM(require("path"));
    import_util49 = require("util");
    cxapi6 = __toESM(require_lib3());
    fs24 = __toESM(require_lib4());
    init_context_store();
    init_rwlock();
    init_cached_source();
    init_context_aware_source();
    init_exec();
    init_prepare_source();
    init_readable_assembly();
    init_toolkit_error();
    init_util3();
    init_private();
    init_helpers();
    CloudAssemblySourceBuilder = class {
      static {
        __name(this, "CloudAssemblySourceBuilder");
      }
      /**
       * Create a Cloud Assembly from a Cloud Assembly builder function.
       *
       * ## Outdir
       *
       * If no output directory is given, it will synthesize into a temporary system
       * directory. The temporary directory will be cleaned up, unless
       * `disposeOutdir: false`.
       *
       * A write lock will be acquired on the output directory for the duration of
       * the CDK app synthesis (which means that no two apps can synthesize at the
       * same time), and after synthesis a read lock will be acquired on the
       * directory. This means that while the CloudAssembly is being used, no CDK
       * app synthesis can take place into that directory.
       *
       * ## Context
       *
       * If no `contextStore` is given, a `MemoryContext` will be used. This means
       * no provider lookups will be persisted anywhere by default. Use a different
       * type of context store if you want persistence between synth operations.
       *
       * @param builder - the builder function
       * @param props - additional configuration properties
       * @returns the CloudAssembly source
       */
      async fromAssemblyBuilder(builder, props = {}) {
        const services = await this.sourceBuilderServices();
        const contextStore = props.contextStore ?? new MemoryContext();
        const contextAssemblyProps = {
          services,
          contextStore,
          lookups: props.lookups
        };
        const outdir = props.outdir ? path24.resolve(props.outdir) : void 0;
        return new ContextAwareCloudAssemblySource(
          {
            produce: /* @__PURE__ */ __name(async () => {
              var _stack = [];
              try {
                const execution = __using(_stack, await ExecutionEnvironment.create(services, {
                  outdir,
                  resolveDefaultAppEnv: props.resolveDefaultEnvironment ?? true
                }), true);
                const synthParams = parametersFromSynthOptions(props.synthOptions);
                const fullContext = {
                  ...await contextStore.read(),
                  ...synthParams.context
                };
                await services.ioHelper.defaults.debug((0, import_util49.format)("context:", fullContext));
                const env2 = noUndefined2({
                  // Versioning, outdir, default account and region
                  ...await execution.defaultEnvVars(),
                  // Environment variables derived from settings
                  ...synthParams.env
                });
                const cleanupContextTemp = writeContextToEnv(env2, fullContext, "env-is-complete");
                const _cleanupEnv = __using(_stack, props.clobberEnv ?? true ? temporarilyWriteEnv(env2) : void 0);
                let assembly;
                try {
                  assembly = await builder({
                    outdir: execution.outdir,
                    context: fullContext,
                    env: env2
                  });
                } catch (error5) {
                  if (ToolkitError.isToolkitError(error5)) {
                    throw error5;
                  }
                  throw AssemblyError.withCause("Assembly builder failed", error5);
                } finally {
                  await cleanupContextTemp();
                }
                const asm = cxapi6.CloudAssembly.isCloudAssembly(assembly) ? assembly : await assemblyFromDirectory(assembly.directory, services.ioHelper, props.loadAssemblyOptions);
                const success2 = await execution.markSuccessful();
                const deleteOnDispose = props.disposeOutdir ?? execution.shouldDisposeOutDir;
                return new ReadableCloudAssembly(asm, success2.readLock, { deleteOnDispose });
              } catch (_3) {
                var _error = _3, _hasError = true;
              } finally {
                var _promise = __callDispose(_stack, _error, _hasError);
                _promise && await _promise;
              }
            }, "produce")
          },
          contextAssemblyProps
        );
      }
      /**
       * Creates a Cloud Assembly from an existing assembly directory.
       *
       * A read lock will be acquired for the directory. This means that while
       * the CloudAssembly is being used, no CDK app synthesis can take place into
       * that directory.
       *
       * @param directory - directory the directory of a already produced Cloud Assembly.
       * @returns the CloudAssembly source
       */
      async fromAssemblyDirectory(directory, props = {}) {
        const services = await this.sourceBuilderServices();
        return {
          async produce() {
            await services.ioHelper.notify(IO.CDK_ASSEMBLY_I0150.msg("--app points to a cloud assembly, so we bypass synth"));
            const readLock = await new RWLock(directory).acquireRead();
            try {
              const asm = await assemblyFromDirectory(directory, services.ioHelper, props.loadAssemblyOptions);
              const assembly = new ReadableCloudAssembly(asm, readLock, { deleteOnDispose: false });
              if (assembly.cloudAssembly.manifest.missing && assembly.cloudAssembly.manifest.missing.length > 0) {
                if (props.failOnMissingContext ?? true) {
                  const missingKeysSet = missingContextKeys(assembly.cloudAssembly.manifest.missing);
                  const missingKeys = Array.from(missingKeysSet);
                  throw AssemblyError.withCause(
                    `Assembly contains missing context. Make sure all necessary context is already in 'cdk.context.json' by running 'cdk synth' on a machine with sufficient AWS credentials and committing the result. Missing context keys: '${missingKeys.join(", ")}'`,
                    "Error producing assembly"
                  );
                }
              }
              return new CachedCloudAssembly(assembly);
            } catch (e3) {
              await readLock.release();
              throw e3;
            }
          }
        };
      }
      /**
       * Use a directory containing an AWS CDK app as source.
       *
       * The subprocess will execute in `workingDirectory`, which defaults to
       * the current process' working directory if not given.
       *
       * ## Outdir
       *
       * If an output directory is supplied, relative paths are evaluated with
       * respect to the current process' working directory. If an output directory
       * is not supplied, the default is a `cdk.out` directory underneath
       * `workingDirectory`. The output directory will not be cleaned up unless
       * `disposeOutdir: true`.
       *
       * A write lock will be acquired on the output directory for the duration of
       * the CDK app synthesis (which means that no two apps can synthesize at the
       * same time), and after synthesis a read lock will be acquired on the
       * directory.  This means that while the CloudAssembly is being used, no CDK
       * app synthesis can take place into that directory.
       *
       * ## Context
       *
       * If no `contextStore` is given, a `CdkAppMultiContext` will be used, initialized
       * to the app's `workingDirectory`. This means that context will be loaded from
       * all the CDK's default context sources, and updates will be written to
       * `cdk.context.json`.
       *
       * @param props - additional configuration properties
       * @returns the CloudAssembly source
       */
      async fromCdkApp(app, props = {}) {
        const services = await this.sourceBuilderServices();
        const workingDirectory = props.workingDirectory ?? process.cwd();
        const outdir = props.outdir ? path24.resolve(props.outdir) : path24.resolve(workingDirectory, "cdk.out");
        const contextStore = props.contextStore ?? new CdkAppMultiContext(workingDirectory);
        const contextAssemblyProps = {
          services,
          contextStore,
          lookups: props.lookups
        };
        return new ContextAwareCloudAssemblySource(
          {
            produce: /* @__PURE__ */ __name(async () => {
              var _stack = [];
              try {
                try {
                  fs24.mkdirpSync(outdir);
                } catch (e3) {
                  throw new ToolkitError(`Could not create output directory at '${outdir}' (${e3.message}).`);
                }
                const execution = __using(_stack, await ExecutionEnvironment.create(services, {
                  outdir,
                  resolveDefaultAppEnv: props.resolveDefaultEnvironment ?? true
                }), true);
                const commandLine = await execution.guessExecutable(app);
                const synthParams = parametersFromSynthOptions(props.synthOptions);
                const fullContext = {
                  ...await contextStore.read(),
                  ...synthParams.context
                };
                await services.ioHelper.defaults.debug((0, import_util49.format)("context:", fullContext));
                const env2 = noUndefined2({
                  // Need to start with full env of `writeContextToEnv` will not be able to do the size
                  // calculation correctly.
                  ...process.env,
                  // User gave us something
                  ...props.env,
                  // Versioning, outdir, default account and region
                  ...await execution.defaultEnvVars(),
                  // Environment variables derived from settings
                  ...synthParams.env
                });
                const cleanupTemp = writeContextToEnv(env2, fullContext, "env-is-complete");
                try {
                  await execInChildProcess(commandLine.join(" "), {
                    eventPublisher: /* @__PURE__ */ __name(async (type, line) => {
                      switch (type) {
                        case "data_stdout":
                          await services.ioHelper.notify(IO.CDK_ASSEMBLY_I1001.msg(line));
                          break;
                        case "data_stderr":
                          await services.ioHelper.notify(IO.CDK_ASSEMBLY_E1002.msg(line));
                          break;
                      }
                    }, "eventPublisher"),
                    env: env2,
                    cwd: workingDirectory
                  });
                } finally {
                  await cleanupTemp();
                }
                const asm = await assemblyFromDirectory(outdir, services.ioHelper, props.loadAssemblyOptions);
                const success2 = await execution.markSuccessful();
                const deleteOnDispose = props.disposeOutdir ?? execution.shouldDisposeOutDir;
                return new ReadableCloudAssembly(asm, success2.readLock, { deleteOnDispose });
              } catch (_3) {
                var _error = _3, _hasError = true;
              } finally {
                var _promise = __callDispose(_stack, _error, _hasError);
                _promise && await _promise;
              }
            }, "produce")
          },
          contextAssemblyProps
        );
      }
    };
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/cloud-assembly/types.ts
var init_types6 = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/cloud-assembly/types.ts"() {
    "use strict";
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/cloud-assembly/index.ts
var cloud_assembly_exports2 = {};
__export(cloud_assembly_exports2, {
  CachedCloudAssembly: () => CachedCloudAssembly,
  CdkAppMultiContext: () => CdkAppMultiContext,
  CloudAssemblySourceBuilder: () => CloudAssemblySourceBuilder,
  ExpandStackSelection: () => ExpandStackSelection,
  FileContext: () => FileContext,
  MemoryContext: () => MemoryContext,
  StackSelectionStrategy: () => StackSelectionStrategy,
  persistableContext: () => persistableContext
});
var init_cloud_assembly2 = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/cloud-assembly/index.ts"() {
    "use strict";
    init_stack_selector();
    init_cached_source();
    init_source_builder();
    init_types6();
    init_context_store();
  }
});

// ../@aws-cdk/toolkit-lib/node_modules/minimatch/dist/esm/assert-valid-pattern.js
var MAX_PATTERN_LENGTH2, assertValidPattern2;
var init_assert_valid_pattern2 = __esm({
  "../@aws-cdk/toolkit-lib/node_modules/minimatch/dist/esm/assert-valid-pattern.js"() {
    MAX_PATTERN_LENGTH2 = 1024 * 64;
    assertValidPattern2 = /* @__PURE__ */ __name((pattern) => {
      if (typeof pattern !== "string") {
        throw new TypeError("invalid pattern");
      }
      if (pattern.length > MAX_PATTERN_LENGTH2) {
        throw new TypeError("pattern is too long");
      }
    }, "assertValidPattern");
  }
});

// ../@aws-cdk/toolkit-lib/node_modules/minimatch/dist/esm/brace-expressions.js
var posixClasses2, braceEscape2, regexpEscape2, rangesToString2, parseClass2;
var init_brace_expressions2 = __esm({
  "../@aws-cdk/toolkit-lib/node_modules/minimatch/dist/esm/brace-expressions.js"() {
    posixClasses2 = {
      "[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
      "[:alpha:]": ["\\p{L}\\p{Nl}", true],
      "[:ascii:]": ["\\x00-\\x7f", false],
      "[:blank:]": ["\\p{Zs}\\t", true],
      "[:cntrl:]": ["\\p{Cc}", true],
      "[:digit:]": ["\\p{Nd}", true],
      "[:graph:]": ["\\p{Z}\\p{C}", true, true],
      "[:lower:]": ["\\p{Ll}", true],
      "[:print:]": ["\\p{C}", true],
      "[:punct:]": ["\\p{P}", true],
      "[:space:]": ["\\p{Z}\\t\\r\\n\\v\\f", true],
      "[:upper:]": ["\\p{Lu}", true],
      "[:word:]": ["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}", true],
      "[:xdigit:]": ["A-Fa-f0-9", false]
    };
    braceEscape2 = /* @__PURE__ */ __name((s3) => s3.replace(/[[\]\\-]/g, "\\$&"), "braceEscape");
    regexpEscape2 = /* @__PURE__ */ __name((s3) => s3.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), "regexpEscape");
    rangesToString2 = /* @__PURE__ */ __name((ranges) => ranges.join(""), "rangesToString");
    parseClass2 = /* @__PURE__ */ __name((glob2, position) => {
      const pos = position;
      if (glob2.charAt(pos) !== "[") {
        throw new Error("not in a brace expression");
      }
      const ranges = [];
      const negs = [];
      let i3 = pos + 1;
      let sawStart = false;
      let uflag = false;
      let escaping = false;
      let negate = false;
      let endPos = pos;
      let rangeStart = "";
      WHILE: while (i3 < glob2.length) {
        const c3 = glob2.charAt(i3);
        if ((c3 === "!" || c3 === "^") && i3 === pos + 1) {
          negate = true;
          i3++;
          continue;
        }
        if (c3 === "]" && sawStart && !escaping) {
          endPos = i3 + 1;
          break;
        }
        sawStart = true;
        if (c3 === "\\") {
          if (!escaping) {
            escaping = true;
            i3++;
            continue;
          }
        }
        if (c3 === "[" && !escaping) {
          for (const [cls, [unip, u3, neg]] of Object.entries(posixClasses2)) {
            if (glob2.startsWith(cls, i3)) {
              if (rangeStart) {
                return ["$.", false, glob2.length - pos, true];
              }
              i3 += cls.length;
              if (neg)
                negs.push(unip);
              else
                ranges.push(unip);
              uflag = uflag || u3;
              continue WHILE;
            }
          }
        }
        escaping = false;
        if (rangeStart) {
          if (c3 > rangeStart) {
            ranges.push(braceEscape2(rangeStart) + "-" + braceEscape2(c3));
          } else if (c3 === rangeStart) {
            ranges.push(braceEscape2(c3));
          }
          rangeStart = "";
          i3++;
          continue;
        }
        if (glob2.startsWith("-]", i3 + 1)) {
          ranges.push(braceEscape2(c3 + "-"));
          i3 += 2;
          continue;
        }
        if (glob2.startsWith("-", i3 + 1)) {
          rangeStart = c3;
          i3 += 2;
          continue;
        }
        ranges.push(braceEscape2(c3));
        i3++;
      }
      if (endPos < i3) {
        return ["", false, 0, false];
      }
      if (!ranges.length && !negs.length) {
        return ["$.", false, glob2.length - pos, true];
      }
      if (negs.length === 0 && ranges.length === 1 && /^\\?.$/.test(ranges[0]) && !negate) {
        const r3 = ranges[0].length === 2 ? ranges[0].slice(-1) : ranges[0];
        return [regexpEscape2(r3), false, endPos - pos, false];
      }
      const sranges = "[" + (negate ? "^" : "") + rangesToString2(ranges) + "]";
      const snegs = "[" + (negate ? "" : "^") + rangesToString2(negs) + "]";
      const comb = ranges.length && negs.length ? "(" + sranges + "|" + snegs + ")" : ranges.length ? sranges : snegs;
      return [comb, uflag, endPos - pos, true];
    }, "parseClass");
  }
});

// ../@aws-cdk/toolkit-lib/node_modules/minimatch/dist/esm/unescape.js
var unescape3;
var init_unescape2 = __esm({
  "../@aws-cdk/toolkit-lib/node_modules/minimatch/dist/esm/unescape.js"() {
    unescape3 = /* @__PURE__ */ __name((s3, { windowsPathsNoEscape = false } = {}) => {
      return windowsPathsNoEscape ? s3.replace(/\[([^\/\\])\]/g, "$1") : s3.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
    }, "unescape");
  }
});

// ../@aws-cdk/toolkit-lib/node_modules/minimatch/dist/esm/ast.js
var types3, isExtglobType2, startNoTraversal2, startNoDot2, addPatternStart2, justDots2, reSpecials2, regExpEscape3, qmark3, star3, starNoEmpty2, AST2;
var init_ast2 = __esm({
  "../@aws-cdk/toolkit-lib/node_modules/minimatch/dist/esm/ast.js"() {
    init_brace_expressions2();
    init_unescape2();
    types3 = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]);
    isExtglobType2 = /* @__PURE__ */ __name((c3) => types3.has(c3), "isExtglobType");
    startNoTraversal2 = "(?!(?:^|/)\\.\\.?(?:$|/))";
    startNoDot2 = "(?!\\.)";
    addPatternStart2 = /* @__PURE__ */ new Set(["[", "."]);
    justDots2 = /* @__PURE__ */ new Set(["..", "."]);
    reSpecials2 = new Set("().*{}+?[]^$\\!");
    regExpEscape3 = /* @__PURE__ */ __name((s3) => s3.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), "regExpEscape");
    qmark3 = "[^/]";
    star3 = qmark3 + "*?";
    starNoEmpty2 = qmark3 + "+?";
    AST2 = class _AST {
      static {
        __name(this, "AST");
      }
      type;
      #root;
      #hasMagic;
      #uflag = false;
      #parts = [];
      #parent;
      #parentIndex;
      #negs;
      #filledNegs = false;
      #options;
      #toString;
      // set to true if it's an extglob with no children
      // (which really means one child of '')
      #emptyExt = false;
      constructor(type, parent, options = {}) {
        this.type = type;
        if (type)
          this.#hasMagic = true;
        this.#parent = parent;
        this.#root = this.#parent ? this.#parent.#root : this;
        this.#options = this.#root === this ? options : this.#root.#options;
        this.#negs = this.#root === this ? [] : this.#root.#negs;
        if (type === "!" && !this.#root.#filledNegs)
          this.#negs.push(this);
        this.#parentIndex = this.#parent ? this.#parent.#parts.length : 0;
      }
      get hasMagic() {
        if (this.#hasMagic !== void 0)
          return this.#hasMagic;
        for (const p3 of this.#parts) {
          if (typeof p3 === "string")
            continue;
          if (p3.type || p3.hasMagic)
            return this.#hasMagic = true;
        }
        return this.#hasMagic;
      }
      // reconstructs the pattern
      toString() {
        if (this.#toString !== void 0)
          return this.#toString;
        if (!this.type) {
          return this.#toString = this.#parts.map((p3) => String(p3)).join("");
        } else {
          return this.#toString = this.type + "(" + this.#parts.map((p3) => String(p3)).join("|") + ")";
        }
      }
      #fillNegs() {
        if (this !== this.#root)
          throw new Error("should only call on root");
        if (this.#filledNegs)
          return this;
        this.toString();
        this.#filledNegs = true;
        let n3;
        while (n3 = this.#negs.pop()) {
          if (n3.type !== "!")
            continue;
          let p3 = n3;
          let pp = p3.#parent;
          while (pp) {
            for (let i3 = p3.#parentIndex + 1; !pp.type && i3 < pp.#parts.length; i3++) {
              for (const part of n3.#parts) {
                if (typeof part === "string") {
                  throw new Error("string part in extglob AST??");
                }
                part.copyIn(pp.#parts[i3]);
              }
            }
            p3 = pp;
            pp = p3.#parent;
          }
        }
        return this;
      }
      push(...parts) {
        for (const p3 of parts) {
          if (p3 === "")
            continue;
          if (typeof p3 !== "string" && !(p3 instanceof _AST && p3.#parent === this)) {
            throw new Error("invalid part: " + p3);
          }
          this.#parts.push(p3);
        }
      }
      toJSON() {
        const ret = this.type === null ? this.#parts.slice().map((p3) => typeof p3 === "string" ? p3 : p3.toJSON()) : [this.type, ...this.#parts.map((p3) => p3.toJSON())];
        if (this.isStart() && !this.type)
          ret.unshift([]);
        if (this.isEnd() && (this === this.#root || this.#root.#filledNegs && this.#parent?.type === "!")) {
          ret.push({});
        }
        return ret;
      }
      isStart() {
        if (this.#root === this)
          return true;
        if (!this.#parent?.isStart())
          return false;
        if (this.#parentIndex === 0)
          return true;
        const p3 = this.#parent;
        for (let i3 = 0; i3 < this.#parentIndex; i3++) {
          const pp = p3.#parts[i3];
          if (!(pp instanceof _AST && pp.type === "!")) {
            return false;
          }
        }
        return true;
      }
      isEnd() {
        if (this.#root === this)
          return true;
        if (this.#parent?.type === "!")
          return true;
        if (!this.#parent?.isEnd())
          return false;
        if (!this.type)
          return this.#parent?.isEnd();
        const pl = this.#parent ? this.#parent.#parts.length : 0;
        return this.#parentIndex === pl - 1;
      }
      copyIn(part) {
        if (typeof part === "string")
          this.push(part);
        else
          this.push(part.clone(this));
      }
      clone(parent) {
        const c3 = new _AST(this.type, parent);
        for (const p3 of this.#parts) {
          c3.copyIn(p3);
        }
        return c3;
      }
      static #parseAST(str, ast, pos, opt) {
        let escaping = false;
        let inBrace = false;
        let braceStart = -1;
        let braceNeg = false;
        if (ast.type === null) {
          let i4 = pos;
          let acc2 = "";
          while (i4 < str.length) {
            const c3 = str.charAt(i4++);
            if (escaping || c3 === "\\") {
              escaping = !escaping;
              acc2 += c3;
              continue;
            }
            if (inBrace) {
              if (i4 === braceStart + 1) {
                if (c3 === "^" || c3 === "!") {
                  braceNeg = true;
                }
              } else if (c3 === "]" && !(i4 === braceStart + 2 && braceNeg)) {
                inBrace = false;
              }
              acc2 += c3;
              continue;
            } else if (c3 === "[") {
              inBrace = true;
              braceStart = i4;
              braceNeg = false;
              acc2 += c3;
              continue;
            }
            if (!opt.noext && isExtglobType2(c3) && str.charAt(i4) === "(") {
              ast.push(acc2);
              acc2 = "";
              const ext4 = new _AST(c3, ast);
              i4 = _AST.#parseAST(str, ext4, i4, opt);
              ast.push(ext4);
              continue;
            }
            acc2 += c3;
          }
          ast.push(acc2);
          return i4;
        }
        let i3 = pos + 1;
        let part = new _AST(null, ast);
        const parts = [];
        let acc = "";
        while (i3 < str.length) {
          const c3 = str.charAt(i3++);
          if (escaping || c3 === "\\") {
            escaping = !escaping;
            acc += c3;
            continue;
          }
          if (inBrace) {
            if (i3 === braceStart + 1) {
              if (c3 === "^" || c3 === "!") {
                braceNeg = true;
              }
            } else if (c3 === "]" && !(i3 === braceStart + 2 && braceNeg)) {
              inBrace = false;
            }
            acc += c3;
            continue;
          } else if (c3 === "[") {
            inBrace = true;
            braceStart = i3;
            braceNeg = false;
            acc += c3;
            continue;
          }
          if (isExtglobType2(c3) && str.charAt(i3) === "(") {
            part.push(acc);
            acc = "";
            const ext4 = new _AST(c3, part);
            part.push(ext4);
            i3 = _AST.#parseAST(str, ext4, i3, opt);
            continue;
          }
          if (c3 === "|") {
            part.push(acc);
            acc = "";
            parts.push(part);
            part = new _AST(null, ast);
            continue;
          }
          if (c3 === ")") {
            if (acc === "" && ast.#parts.length === 0) {
              ast.#emptyExt = true;
            }
            part.push(acc);
            acc = "";
            ast.push(...parts, part);
            return i3;
          }
          acc += c3;
        }
        ast.type = null;
        ast.#hasMagic = void 0;
        ast.#parts = [str.substring(pos - 1)];
        return i3;
      }
      static fromGlob(pattern, options = {}) {
        const ast = new _AST(null, void 0, options);
        _AST.#parseAST(pattern, ast, 0, options);
        return ast;
      }
      // returns the regular expression if there's magic, or the unescaped
      // string if not.
      toMMPattern() {
        if (this !== this.#root)
          return this.#root.toMMPattern();
        const glob2 = this.toString();
        const [re, body, hasMagic2, uflag] = this.toRegExpSource();
        const anyMagic = hasMagic2 || this.#hasMagic || this.#options.nocase && !this.#options.nocaseMagicOnly && glob2.toUpperCase() !== glob2.toLowerCase();
        if (!anyMagic) {
          return body;
        }
        const flags = (this.#options.nocase ? "i" : "") + (uflag ? "u" : "");
        return Object.assign(new RegExp(`^${re}$`, flags), {
          _src: re,
          _glob: glob2
        });
      }
      get options() {
        return this.#options;
      }
      // returns the string match, the regexp source, whether there's magic
      // in the regexp (so a regular expression is required) and whether or
      // not the uflag is needed for the regular expression (for posix classes)
      // TODO: instead of injecting the start/end at this point, just return
      // the BODY of the regexp, along with the start/end portions suitable
      // for binding the start/end in either a joined full-path makeRe context
      // (where we bind to (^|/), or a standalone matchPart context (where
      // we bind to ^, and not /).  Otherwise slashes get duped!
      //
      // In part-matching mode, the start is:
      // - if not isStart: nothing
      // - if traversal possible, but not allowed: ^(?!\.\.?$)
      // - if dots allowed or not possible: ^
      // - if dots possible and not allowed: ^(?!\.)
      // end is:
      // - if not isEnd(): nothing
      // - else: $
      //
      // In full-path matching mode, we put the slash at the START of the
      // pattern, so start is:
      // - if first pattern: same as part-matching mode
      // - if not isStart(): nothing
      // - if traversal possible, but not allowed: /(?!\.\.?(?:$|/))
      // - if dots allowed or not possible: /
      // - if dots possible and not allowed: /(?!\.)
      // end is:
      // - if last pattern, same as part-matching mode
      // - else nothing
      //
      // Always put the (?:$|/) on negated tails, though, because that has to be
      // there to bind the end of the negated pattern portion, and it's easier to
      // just stick it in now rather than try to inject it later in the middle of
      // the pattern.
      //
      // We can just always return the same end, and leave it up to the caller
      // to know whether it's going to be used joined or in parts.
      // And, if the start is adjusted slightly, can do the same there:
      // - if not isStart: nothing
      // - if traversal possible, but not allowed: (?:/|^)(?!\.\.?$)
      // - if dots allowed or not possible: (?:/|^)
      // - if dots possible and not allowed: (?:/|^)(?!\.)
      //
      // But it's better to have a simpler binding without a conditional, for
      // performance, so probably better to return both start options.
      //
      // Then the caller just ignores the end if it's not the first pattern,
      // and the start always gets applied.
      //
      // But that's always going to be $ if it's the ending pattern, or nothing,
      // so the caller can just attach $ at the end of the pattern when building.
      //
      // So the todo is:
      // - better detect what kind of start is needed
      // - return both flavors of starting pattern
      // - attach $ at the end of the pattern when creating the actual RegExp
      //
      // Ah, but wait, no, that all only applies to the root when the first pattern
      // is not an extglob. If the first pattern IS an extglob, then we need all
      // that dot prevention biz to live in the extglob portions, because eg
      // +(*|.x*) can match .xy but not .yx.
      //
      // So, return the two flavors if it's #root and the first child is not an
      // AST, otherwise leave it to the child AST to handle it, and there,
      // use the (?:^|/) style of start binding.
      //
      // Even simplified further:
      // - Since the start for a join is eg /(?!\.) and the start for a part
      // is ^(?!\.), we can just prepend (?!\.) to the pattern (either root
      // or start or whatever) and prepend ^ or / at the Regexp construction.
      toRegExpSource(allowDot) {
        const dot = allowDot ?? !!this.#options.dot;
        if (this.#root === this)
          this.#fillNegs();
        if (!this.type) {
          const noEmpty = this.isStart() && this.isEnd();
          const src = this.#parts.map((p3) => {
            const [re, _3, hasMagic2, uflag] = typeof p3 === "string" ? _AST.#parseGlob(p3, this.#hasMagic, noEmpty) : p3.toRegExpSource(allowDot);
            this.#hasMagic = this.#hasMagic || hasMagic2;
            this.#uflag = this.#uflag || uflag;
            return re;
          }).join("");
          let start2 = "";
          if (this.isStart()) {
            if (typeof this.#parts[0] === "string") {
              const dotTravAllowed = this.#parts.length === 1 && justDots2.has(this.#parts[0]);
              if (!dotTravAllowed) {
                const aps = addPatternStart2;
                const needNoTrav = (
                  // dots are allowed, and the pattern starts with [ or .
                  dot && aps.has(src.charAt(0)) || // the pattern starts with \., and then [ or .
                  src.startsWith("\\.") && aps.has(src.charAt(2)) || // the pattern starts with \.\., and then [ or .
                  src.startsWith("\\.\\.") && aps.has(src.charAt(4))
                );
                const needNoDot = !dot && !allowDot && aps.has(src.charAt(0));
                start2 = needNoTrav ? startNoTraversal2 : needNoDot ? startNoDot2 : "";
              }
            }
          }
          let end = "";
          if (this.isEnd() && this.#root.#filledNegs && this.#parent?.type === "!") {
            end = "(?:$|\\/)";
          }
          const final2 = start2 + src + end;
          return [
            final2,
            unescape3(src),
            this.#hasMagic = !!this.#hasMagic,
            this.#uflag
          ];
        }
        const repeated = this.type === "*" || this.type === "+";
        const start = this.type === "!" ? "(?:(?!(?:" : "(?:";
        let body = this.#partsToRegExp(dot);
        if (this.isStart() && this.isEnd() && !body && this.type !== "!") {
          const s3 = this.toString();
          this.#parts = [s3];
          this.type = null;
          this.#hasMagic = void 0;
          return [s3, unescape3(this.toString()), false, false];
        }
        let bodyDotAllowed = !repeated || allowDot || dot || !startNoDot2 ? "" : this.#partsToRegExp(true);
        if (bodyDotAllowed === body) {
          bodyDotAllowed = "";
        }
        if (bodyDotAllowed) {
          body = `(?:${body})(?:${bodyDotAllowed})*?`;
        }
        let final = "";
        if (this.type === "!" && this.#emptyExt) {
          final = (this.isStart() && !dot ? startNoDot2 : "") + starNoEmpty2;
        } else {
          const close = this.type === "!" ? (
            // !() must match something,but !(x) can match ''
            "))" + (this.isStart() && !dot && !allowDot ? startNoDot2 : "") + star3 + ")"
          ) : this.type === "@" ? ")" : this.type === "?" ? ")?" : this.type === "+" && bodyDotAllowed ? ")" : this.type === "*" && bodyDotAllowed ? `)?` : `)${this.type}`;
          final = start + body + close;
        }
        return [
          final,
          unescape3(body),
          this.#hasMagic = !!this.#hasMagic,
          this.#uflag
        ];
      }
      #partsToRegExp(dot) {
        return this.#parts.map((p3) => {
          if (typeof p3 === "string") {
            throw new Error("string type in extglob ast??");
          }
          const [re, _3, _hasMagic, uflag] = p3.toRegExpSource(dot);
          this.#uflag = this.#uflag || uflag;
          return re;
        }).filter((p3) => !(this.isStart() && this.isEnd()) || !!p3).join("|");
      }
      static #parseGlob(glob2, hasMagic2, noEmpty = false) {
        let escaping = false;
        let re = "";
        let uflag = false;
        for (let i3 = 0; i3 < glob2.length; i3++) {
          const c3 = glob2.charAt(i3);
          if (escaping) {
            escaping = false;
            re += (reSpecials2.has(c3) ? "\\" : "") + c3;
            continue;
          }
          if (c3 === "\\") {
            if (i3 === glob2.length - 1) {
              re += "\\\\";
            } else {
              escaping = true;
            }
            continue;
          }
          if (c3 === "[") {
            const [src, needUflag, consumed, magic] = parseClass2(glob2, i3);
            if (consumed) {
              re += src;
              uflag = uflag || needUflag;
              i3 += consumed - 1;
              hasMagic2 = hasMagic2 || magic;
              continue;
            }
          }
          if (c3 === "*") {
            if (noEmpty && glob2 === "*")
              re += starNoEmpty2;
            else
              re += star3;
            hasMagic2 = true;
            continue;
          }
          if (c3 === "?") {
            re += qmark3;
            hasMagic2 = true;
            continue;
          }
          re += regExpEscape3(c3);
        }
        return [re, unescape3(glob2), !!hasMagic2, uflag];
      }
    };
  }
});

// ../@aws-cdk/toolkit-lib/node_modules/minimatch/dist/esm/escape.js
var escape2;
var init_escape2 = __esm({
  "../@aws-cdk/toolkit-lib/node_modules/minimatch/dist/esm/escape.js"() {
    escape2 = /* @__PURE__ */ __name((s3, { windowsPathsNoEscape = false } = {}) => {
      return windowsPathsNoEscape ? s3.replace(/[?*()[\]]/g, "[$&]") : s3.replace(/[?*()[\]\\]/g, "\\$&");
    }, "escape");
  }
});

// ../@aws-cdk/toolkit-lib/node_modules/minimatch/dist/esm/index.js
var minimatch2, starDotExtRE2, starDotExtTest2, starDotExtTestDot2, starDotExtTestNocase2, starDotExtTestNocaseDot2, starDotStarRE2, starDotStarTest2, starDotStarTestDot2, dotStarRE2, dotStarTest2, starRE2, starTest2, starTestDot2, qmarksRE2, qmarksTestNocase2, qmarksTestNocaseDot2, qmarksTestDot2, qmarksTest2, qmarksTestNoExt2, qmarksTestNoExtDot2, defaultPlatform4, path25, sep2, GLOBSTAR2, qmark4, star4, twoStarDot2, twoStarNoDot2, filter2, ext2, defaults2, braceExpand2, makeRe2, match2, globMagic2, regExpEscape4, Minimatch2;
var init_esm9 = __esm({
  "../@aws-cdk/toolkit-lib/node_modules/minimatch/dist/esm/index.js"() {
    init_esm2();
    init_assert_valid_pattern2();
    init_ast2();
    init_escape2();
    init_unescape2();
    init_ast2();
    init_escape2();
    init_unescape2();
    minimatch2 = /* @__PURE__ */ __name((p3, pattern, options = {}) => {
      assertValidPattern2(pattern);
      if (!options.nocomment && pattern.charAt(0) === "#") {
        return false;
      }
      return new Minimatch2(pattern, options).match(p3);
    }, "minimatch");
    starDotExtRE2 = /^\*+([^+@!?\*\[\(]*)$/;
    starDotExtTest2 = /* @__PURE__ */ __name((ext4) => (f3) => !f3.startsWith(".") && f3.endsWith(ext4), "starDotExtTest");
    starDotExtTestDot2 = /* @__PURE__ */ __name((ext4) => (f3) => f3.endsWith(ext4), "starDotExtTestDot");
    starDotExtTestNocase2 = /* @__PURE__ */ __name((ext4) => {
      ext4 = ext4.toLowerCase();
      return (f3) => !f3.startsWith(".") && f3.toLowerCase().endsWith(ext4);
    }, "starDotExtTestNocase");
    starDotExtTestNocaseDot2 = /* @__PURE__ */ __name((ext4) => {
      ext4 = ext4.toLowerCase();
      return (f3) => f3.toLowerCase().endsWith(ext4);
    }, "starDotExtTestNocaseDot");
    starDotStarRE2 = /^\*+\.\*+$/;
    starDotStarTest2 = /* @__PURE__ */ __name((f3) => !f3.startsWith(".") && f3.includes("."), "starDotStarTest");
    starDotStarTestDot2 = /* @__PURE__ */ __name((f3) => f3 !== "." && f3 !== ".." && f3.includes("."), "starDotStarTestDot");
    dotStarRE2 = /^\.\*+$/;
    dotStarTest2 = /* @__PURE__ */ __name((f3) => f3 !== "." && f3 !== ".." && f3.startsWith("."), "dotStarTest");
    starRE2 = /^\*+$/;
    starTest2 = /* @__PURE__ */ __name((f3) => f3.length !== 0 && !f3.startsWith("."), "starTest");
    starTestDot2 = /* @__PURE__ */ __name((f3) => f3.length !== 0 && f3 !== "." && f3 !== "..", "starTestDot");
    qmarksRE2 = /^\?+([^+@!?\*\[\(]*)?$/;
    qmarksTestNocase2 = /* @__PURE__ */ __name(([$0, ext4 = ""]) => {
      const noext = qmarksTestNoExt2([$0]);
      if (!ext4)
        return noext;
      ext4 = ext4.toLowerCase();
      return (f3) => noext(f3) && f3.toLowerCase().endsWith(ext4);
    }, "qmarksTestNocase");
    qmarksTestNocaseDot2 = /* @__PURE__ */ __name(([$0, ext4 = ""]) => {
      const noext = qmarksTestNoExtDot2([$0]);
      if (!ext4)
        return noext;
      ext4 = ext4.toLowerCase();
      return (f3) => noext(f3) && f3.toLowerCase().endsWith(ext4);
    }, "qmarksTestNocaseDot");
    qmarksTestDot2 = /* @__PURE__ */ __name(([$0, ext4 = ""]) => {
      const noext = qmarksTestNoExtDot2([$0]);
      return !ext4 ? noext : (f3) => noext(f3) && f3.endsWith(ext4);
    }, "qmarksTestDot");
    qmarksTest2 = /* @__PURE__ */ __name(([$0, ext4 = ""]) => {
      const noext = qmarksTestNoExt2([$0]);
      return !ext4 ? noext : (f3) => noext(f3) && f3.endsWith(ext4);
    }, "qmarksTest");
    qmarksTestNoExt2 = /* @__PURE__ */ __name(([$0]) => {
      const len = $0.length;
      return (f3) => f3.length === len && !f3.startsWith(".");
    }, "qmarksTestNoExt");
    qmarksTestNoExtDot2 = /* @__PURE__ */ __name(([$0]) => {
      const len = $0.length;
      return (f3) => f3.length === len && f3 !== "." && f3 !== "..";
    }, "qmarksTestNoExtDot");
    defaultPlatform4 = typeof process === "object" && process ? typeof process.env === "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";
    path25 = {
      win32: { sep: "\\" },
      posix: { sep: "/" }
    };
    sep2 = defaultPlatform4 === "win32" ? path25.win32.sep : path25.posix.sep;
    minimatch2.sep = sep2;
    GLOBSTAR2 = Symbol("globstar **");
    minimatch2.GLOBSTAR = GLOBSTAR2;
    qmark4 = "[^/]";
    star4 = qmark4 + "*?";
    twoStarDot2 = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";
    twoStarNoDot2 = "(?:(?!(?:\\/|^)\\.).)*?";
    filter2 = /* @__PURE__ */ __name((pattern, options = {}) => (p3) => minimatch2(p3, pattern, options), "filter");
    minimatch2.filter = filter2;
    ext2 = /* @__PURE__ */ __name((a3, b3 = {}) => Object.assign({}, a3, b3), "ext");
    defaults2 = /* @__PURE__ */ __name((def) => {
      if (!def || typeof def !== "object" || !Object.keys(def).length) {
        return minimatch2;
      }
      const orig = minimatch2;
      const m3 = /* @__PURE__ */ __name((p3, pattern, options = {}) => orig(p3, pattern, ext2(def, options)), "m");
      return Object.assign(m3, {
        Minimatch: class Minimatch extends orig.Minimatch {
          static {
            __name(this, "Minimatch");
          }
          constructor(pattern, options = {}) {
            super(pattern, ext2(def, options));
          }
          static defaults(options) {
            return orig.defaults(ext2(def, options)).Minimatch;
          }
        },
        AST: class AST extends orig.AST {
          static {
            __name(this, "AST");
          }
          /* c8 ignore start */
          constructor(type, parent, options = {}) {
            super(type, parent, ext2(def, options));
          }
          /* c8 ignore stop */
          static fromGlob(pattern, options = {}) {
            return orig.AST.fromGlob(pattern, ext2(def, options));
          }
        },
        unescape: /* @__PURE__ */ __name((s3, options = {}) => orig.unescape(s3, ext2(def, options)), "unescape"),
        escape: /* @__PURE__ */ __name((s3, options = {}) => orig.escape(s3, ext2(def, options)), "escape"),
        filter: /* @__PURE__ */ __name((pattern, options = {}) => orig.filter(pattern, ext2(def, options)), "filter"),
        defaults: /* @__PURE__ */ __name((options) => orig.defaults(ext2(def, options)), "defaults"),
        makeRe: /* @__PURE__ */ __name((pattern, options = {}) => orig.makeRe(pattern, ext2(def, options)), "makeRe"),
        braceExpand: /* @__PURE__ */ __name((pattern, options = {}) => orig.braceExpand(pattern, ext2(def, options)), "braceExpand"),
        match: /* @__PURE__ */ __name((list2, pattern, options = {}) => orig.match(list2, pattern, ext2(def, options)), "match"),
        sep: orig.sep,
        GLOBSTAR: GLOBSTAR2
      });
    }, "defaults");
    minimatch2.defaults = defaults2;
    braceExpand2 = /* @__PURE__ */ __name((pattern, options = {}) => {
      assertValidPattern2(pattern);
      if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) {
        return [pattern];
      }
      return expand(pattern);
    }, "braceExpand");
    minimatch2.braceExpand = braceExpand2;
    makeRe2 = /* @__PURE__ */ __name((pattern, options = {}) => new Minimatch2(pattern, options).makeRe(), "makeRe");
    minimatch2.makeRe = makeRe2;
    match2 = /* @__PURE__ */ __name((list2, pattern, options = {}) => {
      const mm = new Minimatch2(pattern, options);
      list2 = list2.filter((f3) => mm.match(f3));
      if (mm.options.nonull && !list2.length) {
        list2.push(pattern);
      }
      return list2;
    }, "match");
    minimatch2.match = match2;
    globMagic2 = /[?*]|[+@!]\(.*?\)|\[|\]/;
    regExpEscape4 = /* @__PURE__ */ __name((s3) => s3.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), "regExpEscape");
    Minimatch2 = class {
      static {
        __name(this, "Minimatch");
      }
      options;
      set;
      pattern;
      windowsPathsNoEscape;
      nonegate;
      negate;
      comment;
      empty;
      preserveMultipleSlashes;
      partial;
      globSet;
      globParts;
      nocase;
      isWindows;
      platform;
      windowsNoMagicRoot;
      regexp;
      constructor(pattern, options = {}) {
        assertValidPattern2(pattern);
        options = options || {};
        this.options = options;
        this.pattern = pattern;
        this.platform = options.platform || defaultPlatform4;
        this.isWindows = this.platform === "win32";
        this.windowsPathsNoEscape = !!options.windowsPathsNoEscape || options.allowWindowsEscape === false;
        if (this.windowsPathsNoEscape) {
          this.pattern = this.pattern.replace(/\\/g, "/");
        }
        this.preserveMultipleSlashes = !!options.preserveMultipleSlashes;
        this.regexp = null;
        this.negate = false;
        this.nonegate = !!options.nonegate;
        this.comment = false;
        this.empty = false;
        this.partial = !!options.partial;
        this.nocase = !!this.options.nocase;
        this.windowsNoMagicRoot = options.windowsNoMagicRoot !== void 0 ? options.windowsNoMagicRoot : !!(this.isWindows && this.nocase);
        this.globSet = [];
        this.globParts = [];
        this.set = [];
        this.make();
      }
      hasMagic() {
        if (this.options.magicalBraces && this.set.length > 1) {
          return true;
        }
        for (const pattern of this.set) {
          for (const part of pattern) {
            if (typeof part !== "string")
              return true;
          }
        }
        return false;
      }
      debug(..._3) {
      }
      make() {
        const pattern = this.pattern;
        const options = this.options;
        if (!options.nocomment && pattern.charAt(0) === "#") {
          this.comment = true;
          return;
        }
        if (!pattern) {
          this.empty = true;
          return;
        }
        this.parseNegate();
        this.globSet = [...new Set(this.braceExpand())];
        if (options.debug) {
          this.debug = (...args) => console.error(...args);
        }
        this.debug(this.pattern, this.globSet);
        const rawGlobParts = this.globSet.map((s3) => this.slashSplit(s3));
        this.globParts = this.preprocess(rawGlobParts);
        this.debug(this.pattern, this.globParts);
        let set = this.globParts.map((s3, _3, __) => {
          if (this.isWindows && this.windowsNoMagicRoot) {
            const isUNC = s3[0] === "" && s3[1] === "" && (s3[2] === "?" || !globMagic2.test(s3[2])) && !globMagic2.test(s3[3]);
            const isDrive = /^[a-z]:/i.test(s3[0]);
            if (isUNC) {
              return [...s3.slice(0, 4), ...s3.slice(4).map((ss) => this.parse(ss))];
            } else if (isDrive) {
              return [s3[0], ...s3.slice(1).map((ss) => this.parse(ss))];
            }
          }
          return s3.map((ss) => this.parse(ss));
        });
        this.debug(this.pattern, set);
        this.set = set.filter((s3) => s3.indexOf(false) === -1);
        if (this.isWindows) {
          for (let i3 = 0; i3 < this.set.length; i3++) {
            const p3 = this.set[i3];
            if (p3[0] === "" && p3[1] === "" && this.globParts[i3][2] === "?" && typeof p3[3] === "string" && /^[a-z]:$/i.test(p3[3])) {
              p3[2] = "?";
            }
          }
        }
        this.debug(this.pattern, this.set);
      }
      // various transforms to equivalent pattern sets that are
      // faster to process in a filesystem walk.  The goal is to
      // eliminate what we can, and push all ** patterns as far
      // to the right as possible, even if it increases the number
      // of patterns that we have to process.
      preprocess(globParts) {
        if (this.options.noglobstar) {
          for (let i3 = 0; i3 < globParts.length; i3++) {
            for (let j3 = 0; j3 < globParts[i3].length; j3++) {
              if (globParts[i3][j3] === "**") {
                globParts[i3][j3] = "*";
              }
            }
          }
        }
        const { optimizationLevel = 1 } = this.options;
        if (optimizationLevel >= 2) {
          globParts = this.firstPhasePreProcess(globParts);
          globParts = this.secondPhasePreProcess(globParts);
        } else if (optimizationLevel >= 1) {
          globParts = this.levelOneOptimize(globParts);
        } else {
          globParts = this.adjascentGlobstarOptimize(globParts);
        }
        return globParts;
      }
      // just get rid of adjascent ** portions
      adjascentGlobstarOptimize(globParts) {
        return globParts.map((parts) => {
          let gs = -1;
          while (-1 !== (gs = parts.indexOf("**", gs + 1))) {
            let i3 = gs;
            while (parts[i3 + 1] === "**") {
              i3++;
            }
            if (i3 !== gs) {
              parts.splice(gs, i3 - gs);
            }
          }
          return parts;
        });
      }
      // get rid of adjascent ** and resolve .. portions
      levelOneOptimize(globParts) {
        return globParts.map((parts) => {
          parts = parts.reduce((set, part) => {
            const prev = set[set.length - 1];
            if (part === "**" && prev === "**") {
              return set;
            }
            if (part === "..") {
              if (prev && prev !== ".." && prev !== "." && prev !== "**") {
                set.pop();
                return set;
              }
            }
            set.push(part);
            return set;
          }, []);
          return parts.length === 0 ? [""] : parts;
        });
      }
      levelTwoFileOptimize(parts) {
        if (!Array.isArray(parts)) {
          parts = this.slashSplit(parts);
        }
        let didSomething = false;
        do {
          didSomething = false;
          if (!this.preserveMultipleSlashes) {
            for (let i3 = 1; i3 < parts.length - 1; i3++) {
              const p3 = parts[i3];
              if (i3 === 1 && p3 === "" && parts[0] === "")
                continue;
              if (p3 === "." || p3 === "") {
                didSomething = true;
                parts.splice(i3, 1);
                i3--;
              }
            }
            if (parts[0] === "." && parts.length === 2 && (parts[1] === "." || parts[1] === "")) {
              didSomething = true;
              parts.pop();
            }
          }
          let dd = 0;
          while (-1 !== (dd = parts.indexOf("..", dd + 1))) {
            const p3 = parts[dd - 1];
            if (p3 && p3 !== "." && p3 !== ".." && p3 !== "**") {
              didSomething = true;
              parts.splice(dd - 1, 2);
              dd -= 2;
            }
          }
        } while (didSomething);
        return parts.length === 0 ? [""] : parts;
      }
      // First phase: single-pattern processing
      // <pre> is 1 or more portions
      // <rest> is 1 or more portions
      // <p> is any portion other than ., .., '', or **
      // <e> is . or ''
      //
      // **/.. is *brutal* for filesystem walking performance, because
      // it effectively resets the recursive walk each time it occurs,
      // and ** cannot be reduced out by a .. pattern part like a regexp
      // or most strings (other than .., ., and '') can be.
      //
      // <pre>/**/../<p>/<p>/<rest> -> {<pre>/../<p>/<p>/<rest>,<pre>/**/<p>/<p>/<rest>}
      // <pre>/<e>/<rest> -> <pre>/<rest>
      // <pre>/<p>/../<rest> -> <pre>/<rest>
      // **/**/<rest> -> **/<rest>
      //
      // **/*/<rest> -> */**/<rest> <== not valid because ** doesn't follow
      // this WOULD be allowed if ** did follow symlinks, or * didn't
      firstPhasePreProcess(globParts) {
        let didSomething = false;
        do {
          didSomething = false;
          for (let parts of globParts) {
            let gs = -1;
            while (-1 !== (gs = parts.indexOf("**", gs + 1))) {
              let gss = gs;
              while (parts[gss + 1] === "**") {
                gss++;
              }
              if (gss > gs) {
                parts.splice(gs + 1, gss - gs);
              }
              let next = parts[gs + 1];
              const p3 = parts[gs + 2];
              const p22 = parts[gs + 3];
              if (next !== "..")
                continue;
              if (!p3 || p3 === "." || p3 === ".." || !p22 || p22 === "." || p22 === "..") {
                continue;
              }
              didSomething = true;
              parts.splice(gs, 1);
              const other = parts.slice(0);
              other[gs] = "**";
              globParts.push(other);
              gs--;
            }
            if (!this.preserveMultipleSlashes) {
              for (let i3 = 1; i3 < parts.length - 1; i3++) {
                const p3 = parts[i3];
                if (i3 === 1 && p3 === "" && parts[0] === "")
                  continue;
                if (p3 === "." || p3 === "") {
                  didSomething = true;
                  parts.splice(i3, 1);
                  i3--;
                }
              }
              if (parts[0] === "." && parts.length === 2 && (parts[1] === "." || parts[1] === "")) {
                didSomething = true;
                parts.pop();
              }
            }
            let dd = 0;
            while (-1 !== (dd = parts.indexOf("..", dd + 1))) {
              const p3 = parts[dd - 1];
              if (p3 && p3 !== "." && p3 !== ".." && p3 !== "**") {
                didSomething = true;
                const needDot = dd === 1 && parts[dd + 1] === "**";
                const splin = needDot ? ["."] : [];
                parts.splice(dd - 1, 2, ...splin);
                if (parts.length === 0)
                  parts.push("");
                dd -= 2;
              }
            }
          }
        } while (didSomething);
        return globParts;
      }
      // second phase: multi-pattern dedupes
      // {<pre>/*/<rest>,<pre>/<p>/<rest>} -> <pre>/*/<rest>
      // {<pre>/<rest>,<pre>/<rest>} -> <pre>/<rest>
      // {<pre>/**/<rest>,<pre>/<rest>} -> <pre>/**/<rest>
      //
      // {<pre>/**/<rest>,<pre>/**/<p>/<rest>} -> <pre>/**/<rest>
      // ^-- not valid because ** doens't follow symlinks
      secondPhasePreProcess(globParts) {
        for (let i3 = 0; i3 < globParts.length - 1; i3++) {
          for (let j3 = i3 + 1; j3 < globParts.length; j3++) {
            const matched = this.partsMatch(globParts[i3], globParts[j3], !this.preserveMultipleSlashes);
            if (matched) {
              globParts[i3] = [];
              globParts[j3] = matched;
              break;
            }
          }
        }
        return globParts.filter((gs) => gs.length);
      }
      partsMatch(a3, b3, emptyGSMatch = false) {
        let ai = 0;
        let bi = 0;
        let result2 = [];
        let which = "";
        while (ai < a3.length && bi < b3.length) {
          if (a3[ai] === b3[bi]) {
            result2.push(which === "b" ? b3[bi] : a3[ai]);
            ai++;
            bi++;
          } else if (emptyGSMatch && a3[ai] === "**" && b3[bi] === a3[ai + 1]) {
            result2.push(a3[ai]);
            ai++;
          } else if (emptyGSMatch && b3[bi] === "**" && a3[ai] === b3[bi + 1]) {
            result2.push(b3[bi]);
            bi++;
          } else if (a3[ai] === "*" && b3[bi] && (this.options.dot || !b3[bi].startsWith(".")) && b3[bi] !== "**") {
            if (which === "b")
              return false;
            which = "a";
            result2.push(a3[ai]);
            ai++;
            bi++;
          } else if (b3[bi] === "*" && a3[ai] && (this.options.dot || !a3[ai].startsWith(".")) && a3[ai] !== "**") {
            if (which === "a")
              return false;
            which = "b";
            result2.push(b3[bi]);
            ai++;
            bi++;
          } else {
            return false;
          }
        }
        return a3.length === b3.length && result2;
      }
      parseNegate() {
        if (this.nonegate)
          return;
        const pattern = this.pattern;
        let negate = false;
        let negateOffset = 0;
        for (let i3 = 0; i3 < pattern.length && pattern.charAt(i3) === "!"; i3++) {
          negate = !negate;
          negateOffset++;
        }
        if (negateOffset)
          this.pattern = pattern.slice(negateOffset);
        this.negate = negate;
      }
      // set partial to true to test if, for example,
      // "/a/b" matches the start of "/*/b/*/d"
      // Partial means, if you run out of file before you run
      // out of pattern, then that's fine, as long as all
      // the parts match.
      matchOne(file, pattern, partial = false) {
        const options = this.options;
        if (this.isWindows) {
          const fileDrive = typeof file[0] === "string" && /^[a-z]:$/i.test(file[0]);
          const fileUNC = !fileDrive && file[0] === "" && file[1] === "" && file[2] === "?" && /^[a-z]:$/i.test(file[3]);
          const patternDrive = typeof pattern[0] === "string" && /^[a-z]:$/i.test(pattern[0]);
          const patternUNC = !patternDrive && pattern[0] === "" && pattern[1] === "" && pattern[2] === "?" && typeof pattern[3] === "string" && /^[a-z]:$/i.test(pattern[3]);
          const fdi = fileUNC ? 3 : fileDrive ? 0 : void 0;
          const pdi = patternUNC ? 3 : patternDrive ? 0 : void 0;
          if (typeof fdi === "number" && typeof pdi === "number") {
            const [fd, pd] = [file[fdi], pattern[pdi]];
            if (fd.toLowerCase() === pd.toLowerCase()) {
              pattern[pdi] = fd;
              if (pdi > fdi) {
                pattern = pattern.slice(pdi);
              } else if (fdi > pdi) {
                file = file.slice(fdi);
              }
            }
          }
        }
        const { optimizationLevel = 1 } = this.options;
        if (optimizationLevel >= 2) {
          file = this.levelTwoFileOptimize(file);
        }
        this.debug("matchOne", this, { file, pattern });
        this.debug("matchOne", file.length, pattern.length);
        for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
          this.debug("matchOne loop");
          var p3 = pattern[pi];
          var f3 = file[fi];
          this.debug(pattern, p3, f3);
          if (p3 === false) {
            return false;
          }
          if (p3 === GLOBSTAR2) {
            this.debug("GLOBSTAR", [pattern, p3, f3]);
            var fr = fi;
            var pr = pi + 1;
            if (pr === pl) {
              this.debug("** at the end");
              for (; fi < fl; fi++) {
                if (file[fi] === "." || file[fi] === ".." || !options.dot && file[fi].charAt(0) === ".")
                  return false;
              }
              return true;
            }
            while (fr < fl) {
              var swallowee = file[fr];
              this.debug("\nglobstar while", file, fr, pattern, pr, swallowee);
              if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {
                this.debug("globstar found match!", fr, fl, swallowee);
                return true;
              } else {
                if (swallowee === "." || swallowee === ".." || !options.dot && swallowee.charAt(0) === ".") {
                  this.debug("dot detected!", file, fr, pattern, pr);
                  break;
                }
                this.debug("globstar swallow a segment, and continue");
                fr++;
              }
            }
            if (partial) {
              this.debug("\n>>> no match, partial?", file, fr, pattern, pr);
              if (fr === fl) {
                return true;
              }
            }
            return false;
          }
          let hit;
          if (typeof p3 === "string") {
            hit = f3 === p3;
            this.debug("string match", p3, f3, hit);
          } else {
            hit = p3.test(f3);
            this.debug("pattern match", p3, f3, hit);
          }
          if (!hit)
            return false;
        }
        if (fi === fl && pi === pl) {
          return true;
        } else if (fi === fl) {
          return partial;
        } else if (pi === pl) {
          return fi === fl - 1 && file[fi] === "";
        } else {
          throw new Error("wtf?");
        }
      }
      braceExpand() {
        return braceExpand2(this.pattern, this.options);
      }
      parse(pattern) {
        assertValidPattern2(pattern);
        const options = this.options;
        if (pattern === "**")
          return GLOBSTAR2;
        if (pattern === "")
          return "";
        let m3;
        let fastTest = null;
        if (m3 = pattern.match(starRE2)) {
          fastTest = options.dot ? starTestDot2 : starTest2;
        } else if (m3 = pattern.match(starDotExtRE2)) {
          fastTest = (options.nocase ? options.dot ? starDotExtTestNocaseDot2 : starDotExtTestNocase2 : options.dot ? starDotExtTestDot2 : starDotExtTest2)(m3[1]);
        } else if (m3 = pattern.match(qmarksRE2)) {
          fastTest = (options.nocase ? options.dot ? qmarksTestNocaseDot2 : qmarksTestNocase2 : options.dot ? qmarksTestDot2 : qmarksTest2)(m3);
        } else if (m3 = pattern.match(starDotStarRE2)) {
          fastTest = options.dot ? starDotStarTestDot2 : starDotStarTest2;
        } else if (m3 = pattern.match(dotStarRE2)) {
          fastTest = dotStarTest2;
        }
        const re = AST2.fromGlob(pattern, this.options).toMMPattern();
        if (fastTest && typeof re === "object") {
          Reflect.defineProperty(re, "test", { value: fastTest });
        }
        return re;
      }
      makeRe() {
        if (this.regexp || this.regexp === false)
          return this.regexp;
        const set = this.set;
        if (!set.length) {
          this.regexp = false;
          return this.regexp;
        }
        const options = this.options;
        const twoStar = options.noglobstar ? star4 : options.dot ? twoStarDot2 : twoStarNoDot2;
        const flags = new Set(options.nocase ? ["i"] : []);
        let re = set.map((pattern) => {
          const pp = pattern.map((p3) => {
            if (p3 instanceof RegExp) {
              for (const f3 of p3.flags.split(""))
                flags.add(f3);
            }
            return typeof p3 === "string" ? regExpEscape4(p3) : p3 === GLOBSTAR2 ? GLOBSTAR2 : p3._src;
          });
          pp.forEach((p3, i3) => {
            const next = pp[i3 + 1];
            const prev = pp[i3 - 1];
            if (p3 !== GLOBSTAR2 || prev === GLOBSTAR2) {
              return;
            }
            if (prev === void 0) {
              if (next !== void 0 && next !== GLOBSTAR2) {
                pp[i3 + 1] = "(?:\\/|" + twoStar + "\\/)?" + next;
              } else {
                pp[i3] = twoStar;
              }
            } else if (next === void 0) {
              pp[i3 - 1] = prev + "(?:\\/|" + twoStar + ")?";
            } else if (next !== GLOBSTAR2) {
              pp[i3 - 1] = prev + "(?:\\/|\\/" + twoStar + "\\/)" + next;
              pp[i3 + 1] = GLOBSTAR2;
            }
          });
          return pp.filter((p3) => p3 !== GLOBSTAR2).join("/");
        }).join("|");
        const [open, close] = set.length > 1 ? ["(?:", ")"] : ["", ""];
        re = "^" + open + re + close + "$";
        if (this.negate)
          re = "^(?!" + re + ").+$";
        try {
          this.regexp = new RegExp(re, [...flags].join(""));
        } catch (ex) {
          this.regexp = false;
        }
        return this.regexp;
      }
      slashSplit(p3) {
        if (this.preserveMultipleSlashes) {
          return p3.split("/");
        } else if (this.isWindows && /^\/\/[^\/]+/.test(p3)) {
          return ["", ...p3.split(/\/+/)];
        } else {
          return p3.split(/\/+/);
        }
      }
      match(f3, partial = this.partial) {
        this.debug("match", f3, this.pattern);
        if (this.comment) {
          return false;
        }
        if (this.empty) {
          return f3 === "";
        }
        if (f3 === "/" && partial) {
          return true;
        }
        const options = this.options;
        if (this.isWindows) {
          f3 = f3.split("\\").join("/");
        }
        const ff = this.slashSplit(f3);
        this.debug(this.pattern, "split", ff);
        const set = this.set;
        this.debug(this.pattern, "set", set);
        let filename = ff[ff.length - 1];
        if (!filename) {
          for (let i3 = ff.length - 2; !filename && i3 >= 0; i3--) {
            filename = ff[i3];
          }
        }
        for (let i3 = 0; i3 < set.length; i3++) {
          const pattern = set[i3];
          let file = ff;
          if (options.matchBase && pattern.length === 1) {
            file = [filename];
          }
          const hit = this.matchOne(file, pattern, partial);
          if (hit) {
            if (options.flipNegate) {
              return true;
            }
            return !this.negate;
          }
        }
        if (options.flipNegate) {
          return false;
        }
        return this.negate;
      }
      static defaults(def) {
        return minimatch2.defaults(def).Minimatch;
      }
    };
    minimatch2.AST = AST2;
    minimatch2.Minimatch = Minimatch2;
    minimatch2.escape = escape2;
    minimatch2.unescape = unescape3;
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/cloud-assembly/stack-collection.ts
var import_cx_api10, StackCollection;
var init_stack_collection = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/cloud-assembly/stack-collection.ts"() {
    "use strict";
    import_cx_api10 = __toESM(require_lib3());
    init_toolkit_error();
    StackCollection = class _StackCollection {
      constructor(assembly, stackArtifacts) {
        this.assembly = assembly;
        this.stackArtifacts = stackArtifacts;
      }
      static {
        __name(this, "StackCollection");
      }
      get stackCount() {
        return this.stackArtifacts.length;
      }
      get firstStack() {
        if (this.stackCount < 1) {
          throw new ToolkitError("StackCollection contains no stack artifacts (trying to access the first one)");
        }
        return this.stackArtifacts[0];
      }
      get stackIds() {
        return this.stackArtifacts.map((s3) => s3.id);
      }
      get hierarchicalIds() {
        return this.stackArtifacts.map((s3) => s3.hierarchicalId);
      }
      withDependencies() {
        const allData = [];
        for (const stack of this.stackArtifacts) {
          const data3 = {
            id: stack.displayName ?? stack.id,
            name: stack.stackName,
            environment: stack.environment,
            metadata: stack.manifest.metadata,
            dependencies: []
          };
          for (const dependencyId of stack.dependencies.map((x3) => x3.id)) {
            if (dependencyId.includes(".assets")) {
              continue;
            }
            const depStack = this.assembly.stackById(dependencyId);
            if (depStack.firstStack.dependencies.filter((dep) => !dep.id.includes(".assets")).length > 0) {
              for (const stackDetail of depStack.withDependencies()) {
                data3.dependencies.push({
                  id: stackDetail.id,
                  dependencies: stackDetail.dependencies
                });
              }
            } else {
              data3.dependencies.push({
                id: depStack.firstStack.displayName ?? depStack.firstStack.id,
                dependencies: []
              });
            }
          }
          allData.push(data3);
        }
        return allData;
      }
      reversed() {
        const arts = [...this.stackArtifacts];
        arts.reverse();
        return new _StackCollection(this.assembly, arts);
      }
      filter(predicate) {
        return new _StackCollection(this.assembly, this.stackArtifacts.filter(predicate));
      }
      concat(...others) {
        return new _StackCollection(this.assembly, this.stackArtifacts.concat(...others.map((o3) => o3.stackArtifacts)));
      }
      /**
       * Extracts 'aws:cdk:warning|info|error' metadata entries from the stack synthesis
       */
      async validateMetadata(failAt = "error", logger4 = async () => {
      }) {
        let warnings = false;
        let errors = false;
        for (const stack of this.stackArtifacts) {
          for (const message2 of stack.messages) {
            switch (message2.level) {
              case import_cx_api10.SynthesisMessageLevel.WARNING:
                warnings = true;
                await logger4("warn", message2);
                break;
              case import_cx_api10.SynthesisMessageLevel.ERROR:
                errors = true;
                await logger4("error", message2);
                break;
              case import_cx_api10.SynthesisMessageLevel.INFO:
                await logger4("info", message2);
                break;
            }
          }
        }
        if (errors && failAt != "none") {
          throw AssemblyError.withStacks("Found errors", this.stackArtifacts);
        }
        if (warnings && failAt === "warn") {
          throw AssemblyError.withStacks("Found warnings (--strict mode)", this.stackArtifacts);
        }
      }
    };
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/cloud-assembly/stack-assembly.ts
function indexByHierarchicalId(stacks) {
  const result2 = /* @__PURE__ */ new Map();
  for (const stack of stacks) {
    result2.set(stack.hierarchicalId, stack);
  }
  return result2;
}
async function includeDownstreamStacks(ioHelper, selectedStacks, allStacks) {
  const added = new Array();
  let madeProgress;
  do {
    madeProgress = false;
    for (const [id, stack] of allStacks) {
      if (!selectedStacks.has(id) && (stack.dependencies || []).some((dep) => selectedStacks.has(dep.id))) {
        selectedStacks.set(id, stack);
        added.push(id);
        madeProgress = true;
      }
    }
  } while (madeProgress);
  if (added.length > 0) {
    await ioHelper.defaults.info(`Including depending stacks: ${chalk12.bold(added.join(", "))}`);
  }
}
async function includeUpstreamStacks(ioHelper, selectedStacks, allStacks) {
  const added = new Array();
  let madeProgress = true;
  while (madeProgress) {
    madeProgress = false;
    for (const stack of selectedStacks.values()) {
      for (const dependencyId of stack.dependencies.map((x3) => x3.manifest.displayName ?? x3.id)) {
        if (!selectedStacks.has(dependencyId) && allStacks.has(dependencyId)) {
          added.push(dependencyId);
          selectedStacks.set(dependencyId, allStacks.get(dependencyId));
          madeProgress = true;
        }
      }
    }
  }
  if (added.length > 0) {
    await ioHelper.defaults.info(`Including dependency stacks: ${chalk12.bold(added.join(", "))}`);
  }
}
var chalk12, ExtendedStackSelection, BaseStackAssembly;
var init_stack_assembly = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/cloud-assembly/stack-assembly.ts"() {
    "use strict";
    chalk12 = __toESM(require_source());
    init_esm9();
    init_stack_collection();
    init_util3();
    ExtendedStackSelection = /* @__PURE__ */ ((ExtendedStackSelection3) => {
      ExtendedStackSelection3[ExtendedStackSelection3["None"] = 0] = "None";
      ExtendedStackSelection3[ExtendedStackSelection3["Upstream"] = 1] = "Upstream";
      ExtendedStackSelection3[ExtendedStackSelection3["Downstream"] = 2] = "Downstream";
      return ExtendedStackSelection3;
    })(ExtendedStackSelection || {});
    BaseStackAssembly = class {
      constructor(assembly, ioHelper) {
        this.assembly = assembly;
        this.directory = assembly.directory;
        this.ioHelper = ioHelper;
      }
      static {
        __name(this, "BaseStackAssembly");
      }
      /**
       * Sanitize a list of stack match patterns
       */
      static sanitizePatterns(patterns) {
        let sanitized = patterns.filter((s3) => s3 != null);
        sanitized = [...new Set(sanitized)];
        return sanitized;
      }
      /**
       * The directory this CloudAssembly was read from
       */
      directory;
      /**
       * The IoHelper used for messaging
       */
      ioHelper;
      /**
       * Select a single stack by its ID
       */
      stackById(stackId) {
        return new StackCollection(this, [this.assembly.getStackArtifact(stackId)]);
      }
      async selectMatchingStacks(stacks, patterns, extend = 0 /* None */) {
        const matchingPattern = /* @__PURE__ */ __name((pattern) => (stack) => minimatch2(stack.hierarchicalId, pattern), "matchingPattern");
        const matchedStacks = flatten2(patterns.map((pattern) => stacks.filter(matchingPattern(pattern))));
        return this.extendStacks(matchedStacks, stacks, extend);
      }
      async extendStacks(matched, all, extend = 0 /* None */) {
        const allStacks = /* @__PURE__ */ new Map();
        for (const stack of all) {
          allStacks.set(stack.hierarchicalId, stack);
        }
        const index = indexByHierarchicalId(matched);
        switch (extend) {
          case 2 /* Downstream */:
            await includeDownstreamStacks(this.ioHelper, index, allStacks);
            break;
          case 1 /* Upstream */:
            await includeUpstreamStacks(this.ioHelper, index, allStacks);
            break;
        }
        const selectedList = all.filter((s3) => index.has(s3.hierarchicalId));
        return new StackCollection(this, selectedList);
      }
    };
    __name(indexByHierarchicalId, "indexByHierarchicalId");
    __name(includeDownstreamStacks, "includeDownstreamStacks");
    __name(includeUpstreamStacks, "includeUpstreamStacks");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/cloud-assembly/private/stack-assembly.ts
function expandToExtendEnum(extend) {
  switch (extend) {
    case "downstream" /* DOWNSTREAM */:
      return 2 /* Downstream */;
    case "upstream" /* UPSTREAM */:
      return 1 /* Upstream */;
    case "none" /* NONE */:
      return 0 /* None */;
    default:
      return void 0;
  }
}
var import_dispose_polyfill4, import_semver2, StackAssembly;
var init_stack_assembly2 = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/cloud-assembly/private/stack-assembly.ts"() {
    "use strict";
    import_dispose_polyfill4 = __toESM(require_dispose_polyfill());
    import_semver2 = __toESM(require_semver4());
    init_toolkit_error();
    init_stack_assembly();
    init_stack_collection();
    init_stack_selector();
    StackAssembly = class _StackAssembly extends BaseStackAssembly {
      constructor(_asm, ioHelper) {
        super(_asm.cloudAssembly, ioHelper);
        this._asm = _asm;
      }
      static {
        __name(this, "StackAssembly");
      }
      get cloudAssembly() {
        return this._asm.cloudAssembly;
      }
      async _unlock() {
        return this._asm._unlock();
      }
      async dispose() {
        return this._asm.dispose();
      }
      async [Symbol.asyncDispose]() {
        return this.dispose();
      }
      /**
       * Improved stack selection interface with a single selector
       * @throws when the assembly does not contain any stacks, unless `selector.failOnEmpty` is `false`
       * @throws when individual selection strategies are not satisfied
       */
      async selectStacksV2(selector) {
        const asm = this.assembly;
        const topLevelStacks = asm.stacks;
        const allStacks = (0, import_semver2.major)(asm.version) < 10 ? asm.stacks : asm.stacksRecursively;
        if (allStacks.length === 0 && (selector.failOnEmpty ?? true)) {
          throw new ToolkitError("This app contains no stacks");
        }
        const extend = expandToExtendEnum(selector.expand);
        const patterns = _StackAssembly.sanitizePatterns(selector.patterns ?? []);
        switch (selector.strategy) {
          case "all-stacks" /* ALL_STACKS */:
            return new StackCollection(this, allStacks);
          case "main-assembly" /* MAIN_ASSEMBLY */:
            if (topLevelStacks.length < 1) {
              throw new ToolkitError('No stack found in the main cloud assembly. Use "list" to print manifest');
            }
            return this.extendStacks(topLevelStacks, allStacks, extend);
          case "only-single" /* ONLY_SINGLE */:
            if (topLevelStacks.length !== 1) {
              throw new ToolkitError(`Since this app includes more than a single stack, specify which stacks to use (wildcards are supported) or specify \`--all\`
Stacks: ${allStacks.map((x3) => x3.hierarchicalId).join(" \xB7 ")}`);
            }
            return new StackCollection(this, topLevelStacks);
          default:
            const matched = await this.selectMatchingStacks(allStacks, patterns, extend);
            if (selector.strategy === "pattern-must-match-single" /* PATTERN_MUST_MATCH_SINGLE */ && matched.stackCount !== 1) {
              throw new ToolkitError(
                `Stack selection is ambiguous, please choose a specific stack for import [${allStacks.map((x3) => x3.hierarchicalId).join(",")}]`
              );
            }
            if (selector.strategy === "pattern-must-match" /* PATTERN_MUST_MATCH */ && matched.stackCount < 1) {
              throw new ToolkitError(
                `Stack selection is ambiguous, please choose a specific stack for import [${allStacks.map((x3) => x3.hierarchicalId).join(",")}]`
              );
            }
            return matched;
        }
      }
      /**
       * Select all stacks.
       *
       * This method never throws and can safely be used as a basis for other calculations.
       *
       * @returns a `StackCollection` of all stacks
       */
      selectAllStacks() {
        const allStacks = (0, import_semver2.major)(this.assembly.version) < 10 ? this.assembly.stacks : this.assembly.stacksRecursively;
        return new StackCollection(this, allStacks);
      }
      /**
       * Select all stacks that have the validateOnSynth flag et.
       *
       * @returns a `StackCollection` of all stacks that needs to be validated
       */
      selectStacksForValidation() {
        const allStacks = this.selectAllStacks();
        return allStacks.filter((art) => art.validateOnSynth ?? false);
      }
    };
    __name(expandToExtendEnum, "expandToExtendEnum");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/cloud-assembly/private/stack-selectors.ts
var ALL_STACKS;
var init_stack_selectors = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/cloud-assembly/private/stack-selectors.ts"() {
    "use strict";
    init_stack_selector();
    ALL_STACKS = {
      strategy: "all-stacks" /* ALL_STACKS */
    };
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/cloud-assembly/private/index.ts
var init_private3 = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/cloud-assembly/private/index.ts"() {
    "use strict";
    init_context_aware_source();
    init_stack_assembly2();
    init_exec();
    init_prepare_source();
    init_stack_selectors();
  }
});

// lib/api/cloud-assembly.ts
var init_cloud_assembly3 = __esm({
  "lib/api/cloud-assembly.ts"() {
    "use strict";
    init_cloud_assembly2();
    init_private3();
    init_environment2();
    init_stack_collection();
    init_stack_assembly();
  }
});

// lib/api/deployments.ts
var init_deployments3 = __esm({
  "lib/api/deployments.ts"() {
    "use strict";
    init_deployments2();
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/aws-auth/types.ts
var init_types7 = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/aws-auth/types.ts"() {
    "use strict";
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/aws-auth/base-credentials.ts
var BaseCredentials;
var init_base_credentials = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/aws-auth/base-credentials.ts"() {
    "use strict";
    init_awscli_compatible();
    init_toolkit_error();
    init_sdk_logger();
    init_private();
    BaseCredentials = class {
      static {
        __name(this, "BaseCredentials");
      }
      /**
       * Use no base credentials
       *
       * There will be no current account and no current region during synthesis. To
       * successfully deploy with this set of base credentials:
       *
       * - The CDK app must provide concrete accounts and regions during synthesis
       * - Credential plugins must be installed to provide credentials for those
       *   accounts.
       */
      static none() {
        return new class {
          async sdkBaseConfig() {
            return {
              credentialProvider: /* @__PURE__ */ __name(() => {
                throw new AuthenticationError("No credentials available due to BaseCredentials.none()");
              }, "credentialProvider")
            };
          }
          toString() {
            return "BaseCredentials.none()";
          }
        }();
      }
      /**
       * Obtain base credentials and base region the same way the AWS CLI would
       *
       * Credentials and region will be read from the environment first, falling back
       * to INI files or other sources if available.
       *
       * The profile name is configurable.
       */
      static awsCliCompatible(options = {}) {
        return new class {
          sdkBaseConfig(ioHost, clientConfig) {
            const ioHelper = IoHelper.fromActionAwareIoHost(ioHost);
            const awsCli = new AwsCliCompatible(ioHelper, clientConfig.requestHandler ?? {}, new IoHostSdkLogger(ioHelper));
            return awsCli.baseConfig(options.profile);
          }
          toString() {
            return `BaseCredentials.awsCliCompatible(${JSON.stringify(options)})`;
          }
        }();
      }
      /**
       * Use a custom SDK identity provider for the base credentials
       *
       * If your provider uses STS calls to obtain base credentials, you must make
       * sure to also configure the necessary HTTP options (like proxy and user
       * agent) and the region on the STS client directly; the toolkit code cannot
       * do this for you.
       */
      static custom(options) {
        return new class {
          sdkBaseConfig() {
            return Promise.resolve({
              credentialProvider: options.provider,
              defaultRegion: options.region
            });
          }
          toString() {
            return `BaseCredentials.custom(${JSON.stringify({
              ...options,
              provider: "..."
            })})`;
          }
        }();
      }
    };
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/aws-auth/index.ts
var aws_auth_exports = {};
__export(aws_auth_exports, {
  BaseCredentials: () => BaseCredentials
});
var init_aws_auth = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/aws-auth/index.ts"() {
    "use strict";
    init_types7();
    init_base_credentials();
  }
});

// lib/api/aws-auth.ts
var init_aws_auth2 = __esm({
  "lib/api/aws-auth.ts"() {
    "use strict";
    init_aws_auth();
    init_private2();
    init_awscli_compatible();
  }
});

// lib/api/notices.ts
var init_notices3 = __esm({
  "lib/api/notices.ts"() {
    "use strict";
    init_notices2();
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/streams.ts
var import_node_stream2, StringWriteStream;
var init_streams = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/streams.ts"() {
    "use strict";
    import_node_stream2 = require("node:stream");
    StringWriteStream = class extends import_node_stream2.Writable {
      static {
        __name(this, "StringWriteStream");
      }
      buffer = [];
      constructor() {
        super();
      }
      _write(chunk, _encoding, callback) {
        this.buffer.push(chunk.toString());
        callback();
      }
      toString() {
        return this.buffer.join("");
      }
    };
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/diff/diff-formatter.ts
function buildLogicalToPathMap(stack) {
  const map3 = {};
  for (const md of stack.findMetadataByType(cxschema5.ArtifactMetadataEntryType.LOGICAL_ID)) {
    map3[md.data] = md.path;
  }
  return map3;
}
function logicalIdMapFromTemplate(template) {
  const ret = {};
  for (const [logicalId, resource] of Object.entries(template.Resources ?? {})) {
    const path38 = resource?.Metadata?.["aws:cdk:path"];
    if (path38) {
      ret[logicalId] = path38;
    }
  }
  return ret;
}
function obscureDiff(diff) {
  if (diff.unknown) {
    diff.unknown = diff.unknown.filter((change) => {
      if (!change) {
        return true;
      }
      if (change.newValue?.CheckBootstrapVersion) {
        return false;
      }
      if (change.oldValue?.CheckBootstrapVersion) {
        return false;
      }
      return true;
    });
  }
  if (diff.resources) {
    diff.resources = diff.resources.filter((change) => {
      if (!change) {
        return true;
      }
      if (change.newResourceType === "AWS::CDK::Metadata") {
        return false;
      }
      if (change.oldResourceType === "AWS::CDK::Metadata") {
        return false;
      }
      return true;
    });
  }
}
var import_node_util3, cxschema5, import_cloudformation_diff, chalk13, DiffFormatter;
var init_diff_formatter = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/diff/diff-formatter.ts"() {
    "use strict";
    import_node_util3 = require("node:util");
    cxschema5 = __toESM(require_lib2());
    import_cloudformation_diff = __toESM(require_lib11());
    chalk13 = __toESM(require_source());
    init_payloads();
    init_streams();
    DiffFormatter = class {
      static {
        __name(this, "DiffFormatter");
      }
      oldTemplate;
      newTemplate;
      stackName;
      changeSet;
      nestedStacks;
      isImport;
      mappings;
      /**
       * Stores the TemplateDiffs that get calculated in this DiffFormatter,
       * indexed by the stack name.
       */
      _diffs = {};
      constructor(props) {
        this.oldTemplate = props.templateInfo.oldTemplate;
        this.newTemplate = props.templateInfo.newTemplate;
        this.stackName = props.templateInfo.newTemplate.displayName ?? props.templateInfo.newTemplate.stackName;
        this.changeSet = props.templateInfo.changeSet;
        this.nestedStacks = props.templateInfo.nestedStacks;
        this.isImport = props.templateInfo.isImport ?? false;
        this.mappings = props.templateInfo.mappings ?? {};
      }
      get diffs() {
        return this._diffs;
      }
      /**
       * Get or creates the diff of a stack.
       * If it creates the diff, it stores the result in a map for
       * easier retrieval later.
       */
      diff(stackName, oldTemplate, mappings = {}) {
        const realStackName = stackName ?? this.stackName;
        if (!this._diffs[realStackName]) {
          const templateDiff = (0, import_cloudformation_diff.fullDiff)(
            oldTemplate ?? this.oldTemplate,
            this.newTemplate.template,
            this.changeSet,
            this.isImport
          );
          const setMove = /* @__PURE__ */ __name((change, direction, location) => {
            if (location != null) {
              const [sourceStackName, sourceLogicalId] = location.split(".");
              change.move = {
                direction,
                stackName: sourceStackName,
                resourceLogicalId: sourceLogicalId
              };
            }
          }, "setMove");
          templateDiff.resources.forEachDifference((id, change) => {
            const location = `${realStackName}.${id}`;
            if (change.isAddition && Object.values(mappings).includes(location)) {
              setMove(change, "from", Object.keys(mappings).find((k3) => mappings[k3] === location));
            } else if (change.isRemoval && Object.keys(mappings).includes(location)) {
              setMove(change, "to", mappings[location]);
            }
          });
          this._diffs[realStackName] = templateDiff;
        }
        return this._diffs[realStackName];
      }
      /**
       * Return whether the diff has security-impacting changes that need confirmation.
       *
       * If no stackName is given, then the root stack name is used.
       */
      permissionType() {
        const diff = this.diff();
        if (diff.permissionsBroadened) {
          return "broadening" /* BROADENING */;
        } else if (diff.permissionsAnyChanges) {
          return "non-broadening" /* NON_BROADENING */;
        } else {
          return "none" /* NONE */;
        }
      }
      /**
       * Format the stack diff
       */
      formatStackDiff(options = {}) {
        return this.formatStackDiffHelper(
          this.oldTemplate,
          this.stackName,
          this.nestedStacks,
          options,
          this.mappings
        );
      }
      formatStackDiffHelper(oldTemplate, stackName, nestedStackTemplates, options, mappings = {}) {
        let diff = this.diff(stackName, oldTemplate, mappings);
        const stream3 = new StringWriteStream();
        let numStacksWithChanges = 0;
        let formattedDiff = "";
        let filteredChangesCount = 0;
        try {
          if (stackName && (!options.quiet || !diff.isEmpty)) {
            stream3.write((0, import_node_util3.format)(`Stack ${chalk13.bold(stackName)}
`));
          }
          if (!options.quiet && this.isImport) {
            stream3.write("Parameters and rules created during migration do not affect resource configuration.\n");
          }
          if (diff.differenceCount && !options.strict) {
            const mangledNewTemplate = JSON.parse((0, import_cloudformation_diff.mangleLikeCloudFormation)(JSON.stringify(this.newTemplate.template)));
            const mangledDiff = (0, import_cloudformation_diff.fullDiff)(this.oldTemplate, mangledNewTemplate, this.changeSet);
            filteredChangesCount = Math.max(0, diff.differenceCount - mangledDiff.differenceCount);
            if (filteredChangesCount > 0) {
              diff = mangledDiff;
            }
          }
          if (!options.strict) {
            obscureDiff(diff);
          }
          if (!diff.isEmpty) {
            numStacksWithChanges++;
            (0, import_cloudformation_diff.formatDifferences)(stream3, diff, {
              ...logicalIdMapFromTemplate(this.oldTemplate),
              ...buildLogicalToPathMap(this.newTemplate)
            }, options.contextLines);
          } else if (!options.quiet) {
            stream3.write(chalk13.green("There were no differences\n"));
          }
          if (filteredChangesCount > 0) {
            stream3.write(chalk13.yellow(`Omitted ${filteredChangesCount} changes because they are likely mangled non-ASCII characters. Use --strict to print them.
`));
          }
        } finally {
          formattedDiff = stream3.toString();
          stream3.end();
        }
        for (const nestedStackLogicalId of Object.keys(nestedStackTemplates ?? {})) {
          if (!nestedStackTemplates) {
            break;
          }
          const nestedStack = nestedStackTemplates[nestedStackLogicalId];
          this.newTemplate._template = nestedStack.generatedTemplate;
          const nextDiff = this.formatStackDiffHelper(
            nestedStack.deployedTemplate,
            nestedStack.physicalName ?? nestedStackLogicalId,
            nestedStack.nestedStackTemplates,
            options,
            this.mappings
          );
          numStacksWithChanges += nextDiff.numStacksWithChanges;
          formattedDiff += nextDiff.formattedDiff;
        }
        return {
          numStacksWithChanges,
          formattedDiff
        };
      }
      /**
       * Format the security diff
       */
      formatSecurityDiff() {
        const diff = this.diff();
        const stream3 = new StringWriteStream();
        stream3.write((0, import_node_util3.format)(`Stack ${chalk13.bold(this.stackName)}
`));
        try {
          (0, import_cloudformation_diff.formatSecurityChanges)(stream3, diff, buildLogicalToPathMap(this.newTemplate));
        } finally {
          stream3.end();
        }
        const formattedDiff = stream3.toString();
        return { formattedDiff, permissionChangeType: this.permissionType() };
      }
    };
    __name(buildLogicalToPathMap, "buildLogicalToPathMap");
    __name(logicalIdMapFromTemplate, "logicalIdMapFromTemplate");
    __name(obscureDiff, "obscureDiff");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/diff/index.ts
var init_diff3 = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/diff/index.ts"() {
    "use strict";
    init_diff_formatter();
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/io/io-host.ts
var init_io_host = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/io/io-host.ts"() {
    "use strict";
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/io/io-message.ts
var init_io_message = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/io/io-message.ts"() {
    "use strict";
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/io/toolkit-action.ts
var init_toolkit_action = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/io/toolkit-action.ts"() {
    "use strict";
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/io/index.ts
var io_exports = {};
var init_io = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/io/index.ts"() {
    "use strict";
    init_io_host();
    init_io_message();
    init_toolkit_action();
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/logs-monitor/logs-monitor.ts
var util6, chalk14, CloudWatchLogEventMonitor;
var init_logs_monitor2 = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/logs-monitor/logs-monitor.ts"() {
    "use strict";
    util6 = __toESM(require("util"));
    chalk14 = __toESM(require_source());
    init_esm8();
    init_util3();
    init_private();
    CloudWatchLogEventMonitor = class {
      static {
        __name(this, "CloudWatchLogEventMonitor");
      }
      /**
       * Determines which events not to display
       */
      startTime;
      /**
       * Map of environment (account:region) to LogGroupsAccessSettings
       */
      envsLogGroupsAccessSettings = /* @__PURE__ */ new Map();
      /**
       * After reading events from all CloudWatch log groups
       * how long should we wait to read more events.
       *
       * If there is some error with reading events (i.e. Throttle)
       * then this is also how long we wait until we try again
       */
      pollingInterval = 2e3;
      monitorId;
      ioHelper;
      currentTick;
      constructor(props) {
        this.startTime = props.startTime?.getTime() ?? Date.now();
        this.ioHelper = props.ioHelper;
      }
      /**
       * resume reading/printing events
       */
      async activate() {
        this.monitorId = v4_default2();
        await this.ioHelper.notify(IO.CDK_TOOLKIT_I5032.msg("Start monitoring log groups", {
          monitor: this.monitorId,
          logGroupNames: this.logGroupNames()
        }));
        await this.tick();
      }
      /**
       * deactivates the monitor so no new events are read
       * use case for this is when we are in the middle of performing a deployment
       * and don't want to interweave all the logs together with the CFN
       * deployment logs
       *
       * Also resets the start time to be when the new deployment was triggered
       * and clears the list of tracked log groups
       */
      async deactivate() {
        const oldMonitorId = this.monitorId;
        this.monitorId = void 0;
        this.startTime = Date.now();
        clearTimeout(this.currentTick);
        await this.ioHelper.notify(IO.CDK_TOOLKIT_I5034.msg("Stopped monitoring log groups", {
          monitor: oldMonitorId,
          logGroupNames: this.logGroupNames()
        }));
        this.envsLogGroupsAccessSettings.clear();
      }
      /**
       * Adds CloudWatch log groups to read log events from.
       * Since we could be watching multiple stacks that deploy to
       * multiple environments (account+region), we need to store a list of log groups
       * per env along with the SDK object that has access to read from
       * that environment.
       */
      addLogGroups(env2, sdk, logGroupNames) {
        const awsEnv = `${env2.account}:${env2.region}`;
        const logGroupsStartTimes = logGroupNames.reduce(
          (acc, groupName) => {
            acc[groupName] = this.startTime;
            return acc;
          },
          {}
        );
        this.envsLogGroupsAccessSettings.set(awsEnv, {
          sdk,
          logGroupsStartTimes: {
            ...this.envsLogGroupsAccessSettings.get(awsEnv)?.logGroupsStartTimes,
            ...logGroupsStartTimes
          }
        });
      }
      logGroupNames() {
        return Array.from(this.envsLogGroupsAccessSettings.values()).flatMap((settings) => Object.keys(settings.logGroupsStartTimes));
      }
      scheduleNextTick() {
        if (!this.monitorId) {
          return;
        }
        this.currentTick = setTimeout(() => void this.tick(), this.pollingInterval);
      }
      async tick() {
        if (!this.monitorId) {
          return;
        }
        try {
          const events = flatten2(await this.readNewEvents());
          for (const event of events) {
            await this.print(event);
          }
          if (!this.monitorId) {
            return;
          }
        } catch (e3) {
          await this.ioHelper.notify(IO.CDK_TOOLKIT_E5035.msg(`Error occurred while monitoring logs: ${String(e3)}`, { error: e3 }));
        }
        this.scheduleNextTick();
      }
      /**
       * Reads all new log events from a set of CloudWatch Log Groups
       * in parallel
       */
      async readNewEvents() {
        const promises3 = [];
        for (const settings of this.envsLogGroupsAccessSettings.values()) {
          for (const group of Object.keys(settings.logGroupsStartTimes)) {
            promises3.push(this.readEventsFromLogGroup(settings, group));
          }
        }
        return Promise.all(promises3);
      }
      /**
       * Print out a cloudwatch event
       */
      async print(event) {
        await this.ioHelper.notify(IO.CDK_TOOLKIT_I5033.msg(
          util6.format(
            "[%s] %s %s",
            chalk14.blue(event.logGroupName),
            chalk14.yellow(event.timestamp.toLocaleTimeString()),
            event.message.trim()
          ),
          event
        ));
      }
      /**
       * Reads all new log events from a CloudWatch Log Group
       * starting at either the time the hotswap was triggered or
       * when the last event was read on the previous tick
       */
      async readEventsFromLogGroup(logGroupsAccessSettings, logGroupName) {
        const events = [];
        const startTime = logGroupsAccessSettings.logGroupsStartTimes[logGroupName] ?? this.startTime;
        let endTime = startTime;
        try {
          const response = await logGroupsAccessSettings.sdk.cloudWatchLogs().filterLogEvents({
            logGroupName,
            limit: 100,
            startTime
          });
          const filteredEvents = response.events ?? [];
          for (const event of filteredEvents) {
            if (event.message) {
              events.push({
                message: event.message,
                logGroupName,
                timestamp: event.timestamp ? new Date(event.timestamp) : /* @__PURE__ */ new Date()
              });
              if (event.timestamp && endTime < event.timestamp) {
                endTime = event.timestamp;
              }
            }
          }
          if (filteredEvents.length === 100 && response.nextToken) {
            events.push({
              message: ">>> `watch` shows only the first 100 log messages - the rest have been truncated...",
              logGroupName,
              timestamp: new Date(endTime)
            });
          }
        } catch (e3) {
          if (e3.name === "ResourceNotFoundException") {
            return [];
          }
          throw e3;
        }
        logGroupsAccessSettings.logGroupsStartTimes[logGroupName] = endTime + 1;
        return events;
      }
    };
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/logs-monitor/find-cloudwatch-logs.ts
async function findCloudWatchLogGroups(sdkProvider, ioHelper, stackArtifact) {
  let sdk;
  const resolvedEnv = await sdkProvider.resolveEnvironment(stackArtifact.environment);
  try {
    sdk = (await new EnvironmentAccess(sdkProvider, DEFAULT_TOOLKIT_STACK_NAME, ioHelper).accessStackForLookup(stackArtifact)).sdk;
  } catch (e3) {
    await ioHelper.defaults.debug(`Failed to access SDK environment: ${formatErrorMessage(e3)}`);
    sdk = (await sdkProvider.forEnvironment(resolvedEnv, 0 /* ForReading */)).sdk;
  }
  const listStackResources = new LazyListStackResources(sdk, stackArtifact.stackName);
  const evaluateCfnTemplate = new EvaluateCloudFormationTemplate({
    stackArtifact,
    parameters: {},
    account: resolvedEnv.account,
    region: resolvedEnv.region,
    partition: (await sdk.currentAccount()).partition,
    sdk
  });
  const stackResources = await listStackResources.listStackResources();
  const logGroupNames = findAllLogGroupNames(stackResources, evaluateCfnTemplate);
  return {
    env: resolvedEnv,
    sdk,
    logGroupNames
  };
}
function isReferencedFromIgnoredResource(logGroupResource, evaluateCfnTemplate) {
  const resourcesReferencingLogGroup = evaluateCfnTemplate.findReferencesTo(logGroupResource.LogicalResourceId);
  return resourcesReferencingLogGroup.some((reference) => {
    return IGNORE_LOGS_RESOURCE_TYPES.includes(reference.Type);
  });
}
function findAllLogGroupNames(stackResources, evaluateCfnTemplate) {
  const logGroupNames = [];
  for (const resource of stackResources) {
    const logGroupResolver = cloudWatchLogsResolvers[resource.ResourceType];
    if (logGroupResolver) {
      const logGroupName = logGroupResolver(resource, evaluateCfnTemplate);
      if (logGroupName) {
        logGroupNames.push(logGroupName);
      }
    }
  }
  return logGroupNames;
}
var IGNORE_LOGS_RESOURCE_TYPES, cloudWatchLogsResolvers;
var init_find_cloudwatch_logs = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/logs-monitor/find-cloudwatch-logs.ts"() {
    "use strict";
    init_util3();
    init_cloudformation2();
    init_environment();
    init_plugin2();
    init_toolkit_info();
    IGNORE_LOGS_RESOURCE_TYPES = ["AWS::EC2::FlowLog", "AWS::CloudTrail::Trail", "AWS::CodeBuild::Project"];
    __name(findCloudWatchLogGroups, "findCloudWatchLogGroups");
    __name(isReferencedFromIgnoredResource, "isReferencedFromIgnoredResource");
    cloudWatchLogsResolvers = {
      "AWS::Logs::LogGroup": /* @__PURE__ */ __name((resource, evaluateCfnTemplate) => {
        if (isReferencedFromIgnoredResource(resource, evaluateCfnTemplate)) {
          return void 0;
        }
        return resource.PhysicalResourceId?.toString();
      }, "AWS::Logs::LogGroup"),
      // Resource types that will create a CloudWatch log group with a specific name if one is not provided.
      // The keys are CFN resource types, and the values are the name of the physical name property of that resource
      // and the service name that is used in the automatically created CloudWatch log group.
      "AWS::Lambda::Function": /* @__PURE__ */ __name((resource, evaluateCfnTemplate) => {
        const loggingConfig = evaluateCfnTemplate.getResourceProperty(resource.LogicalResourceId, "LoggingConfig");
        if (loggingConfig?.LogGroup) {
          if (typeof loggingConfig.LogGroup === "string") {
            return loggingConfig.LogGroup;
          }
          if (typeof loggingConfig.LogGroup === "object") {
            if (loggingConfig.LogGroup.Ref) {
              return evaluateCfnTemplate.getResourceProperty(loggingConfig.LogGroup.Ref, "LogGroupName");
            }
          }
        }
        return `/aws/lambda/${resource.PhysicalResourceId}`;
      }, "AWS::Lambda::Function")
    };
    __name(findAllLogGroupNames, "findAllLogGroupNames");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/logs-monitor/index.ts
var init_logs_monitor3 = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/logs-monitor/index.ts"() {
    "use strict";
    init_logs_monitor2();
    init_find_cloudwatch_logs();
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/resource-import/importer.ts
function fmtdict(xs) {
  return Object.entries(xs).map(([k3, v6]) => `${k3}=${v6}`).join(", ");
}
function addDefaultDeletionPolicy(resource) {
  if (resource.DeletionPolicy) {
    return resource;
  }
  return {
    ...resource,
    DeletionPolicy: "Retain"
  };
}
function removeNonImportResources(stack) {
  const template = stack.template;
  delete template.Resources.CDKMetadata;
  delete template.Outputs;
  return template;
}
var import_util54, cfnDiff, chalk15, fs25, ResourceImporter;
var init_importer = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/resource-import/importer.ts"() {
    "use strict";
    import_util54 = require("util");
    cfnDiff = __toESM(require_lib11());
    chalk15 = __toESM(require_source());
    fs25 = __toESM(require_lib4());
    init_toolkit_error();
    init_deployments2();
    init_private();
    ResourceImporter = class {
      static {
        __name(this, "ResourceImporter");
      }
      _currentTemplate;
      stack;
      cfn;
      ioHelper;
      constructor(stack, props) {
        this.stack = stack;
        this.cfn = props.deployments;
        this.ioHelper = props.ioHelper;
      }
      /**
       * Ask the user for resources to import
       */
      async askForResourceIdentifiers(available) {
        const ret = { importResources: [], resourceMap: {} };
        const resourceIdentifiers2 = await this.resourceIdentifiers();
        for (const resource of available) {
          const identifier = await this.askForResourceIdentifier(resourceIdentifiers2, resource);
          if (!identifier) {
            continue;
          }
          ret.importResources.push(resource);
          ret.resourceMap[resource.logicalId] = identifier;
        }
        return ret;
      }
      /**
       * Load the resources to import from a file
       */
      async loadResourceIdentifiers(available, filename) {
        const contents = await fs25.readJson(filename);
        const ret = { importResources: [], resourceMap: {} };
        for (const resource of available) {
          const descr = this.describeResource(resource.logicalId);
          const idProps = contents[resource.logicalId];
          if (idProps) {
            await this.ioHelper.defaults.info((0, import_util54.format)("%s: importing using %s", chalk15.blue(descr), chalk15.blue(fmtdict(idProps))));
            ret.importResources.push(resource);
            ret.resourceMap[resource.logicalId] = idProps;
            delete contents[resource.logicalId];
          } else {
            await this.ioHelper.defaults.info((0, import_util54.format)("%s: skipping", chalk15.blue(descr)));
          }
        }
        const unknown = Object.keys(contents);
        if (unknown.length > 0) {
          await this.ioHelper.defaults.warn(`Unrecognized resource identifiers in mapping file: ${unknown.join(", ")}`);
        }
        return ret;
      }
      /**
       * Based on the provided resource mapping, prepare CFN structures for import (template,
       * ResourcesToImport structure) and perform the import operation (CloudFormation deployment)
       *
       * @param importMap - Mapping from CDK construct tree path to physical resource import identifiers
       * @param options - Options to pass to CloudFormation deploy operation
       */
      async importResourcesFromMap(importMap, options = {}) {
        const resourcesToImport = await this.makeResourcesToImport(importMap);
        const updatedTemplate = await this.currentTemplateWithAdditions(importMap.importResources);
        await this.importResources(updatedTemplate, resourcesToImport, options);
      }
      /**
       * Based on the app and resources file generated by cdk migrate. Removes all items from the template that
       * cannot be included in an import change-set for new stacks and performs the import operation,
       * creating the new stack.
       *
       * @param resourcesToImport - The mapping created by cdk migrate
       * @param options - Options to pass to CloudFormation deploy operation
       */
      async importResourcesFromMigrate(resourcesToImport, options = {}) {
        const updatedTemplate = this.removeNonImportResources();
        await this.importResources(updatedTemplate, resourcesToImport, options);
      }
      async importResources(overrideTemplate, resourcesToImport, options) {
        try {
          const result2 = await this.cfn.deployStack({
            stack: this.stack,
            deployName: this.stack.stackName,
            ...options,
            overrideTemplate,
            resourcesToImport
          });
          assertIsSuccessfulDeployStackResult(result2);
          const message2 = result2.noOp ? " \u2705  %s (no changes)" : " \u2705  %s";
          await this.ioHelper.defaults.info("\n" + chalk15.green((0, import_util54.format)(message2, this.stack.displayName)));
        } catch (e3) {
          await this.ioHelper.notify(IO.CDK_TOOLKIT_E3900.msg((0, import_util54.format)("\n \u274C  %s failed: %s", chalk15.bold(this.stack.displayName), e3), { error: e3 }));
          throw e3;
        }
      }
      /**
       * Perform a diff between the currently running and the new template, ensure that it is valid
       * for importing and return a list of resources that are being added in the new version
       *
       * @return mapping logicalResourceId -> resourceDifference
       */
      async discoverImportableResources(allowNonAdditions = false) {
        const currentTemplate = await this.currentTemplate();
        const diff = cfnDiff.fullDiff(currentTemplate, this.stack.template);
        const resourceChanges = Object.entries(diff.resources.changes).filter(([logicalId, _3]) => logicalId !== "CDKMetadata");
        const nonAdditions = resourceChanges.filter(([_3, dif]) => !dif.isAddition);
        const additions = resourceChanges.filter(([_3, dif]) => dif.isAddition);
        if (nonAdditions.length) {
          const offendingResources = nonAdditions.map(([logId, _3]) => this.describeResource(logId));
          if (allowNonAdditions) {
            await this.ioHelper.defaults.warn(`Ignoring updated/deleted resources (--force): ${offendingResources.join(", ")}`);
          } else {
            throw new ToolkitError(`No resource updates or deletes are allowed on import operation. Make sure to resolve pending changes to existing resources, before attempting an import. Updated/deleted resources: ${offendingResources.join(", ")} (--force to override)`);
          }
        }
        return {
          additions: additions.map(([logicalId, resourceDiff]) => ({
            logicalId,
            resourceDiff,
            resourceDefinition: addDefaultDeletionPolicy(this.stack.template?.Resources?.[logicalId] ?? {})
          })),
          hasNonAdditions: nonAdditions.length > 0
        };
      }
      /**
       * Resolves the environment of a stack.
       */
      async resolveEnvironment() {
        return this.cfn.resolveEnvironment(this.stack);
      }
      /**
       * Get currently deployed template of the given stack (SINGLETON)
       *
       * @returns Currently deployed CloudFormation template
       */
      async currentTemplate() {
        if (!this._currentTemplate) {
          this._currentTemplate = await this.cfn.readCurrentTemplate(this.stack);
        }
        return this._currentTemplate;
      }
      /**
       * Return the current template, with the given resources added to it
       */
      async currentTemplateWithAdditions(additions) {
        const template = await this.currentTemplate();
        if (!template.Resources) {
          template.Resources = {};
        }
        for (const add of additions) {
          template.Resources[add.logicalId] = add.resourceDefinition;
        }
        return template;
      }
      /**
       * Get a list of import identifiers for all resource types used in the given
       * template that do support the import operation (SINGLETON)
       *
       * @returns a mapping from a resource type to a list of property names that together identify the resource for import
       */
      async resourceIdentifiers() {
        const ret = {};
        const resourceIdentifierSummaries = await this.cfn.resourceIdentifierSummaries(this.stack);
        for (const summary of resourceIdentifierSummaries) {
          if ("ResourceType" in summary && summary.ResourceType && "ResourceIdentifiers" in summary && summary.ResourceIdentifiers) {
            ret[summary.ResourceType] = (summary.ResourceIdentifiers ?? [])?.map((x3) => x3.split(","));
          }
        }
        return ret;
      }
      /**
       * Ask for the importable identifier for the given resource
       *
       * There may be more than one identifier under which a resource can be imported. The `import`
       * operation needs exactly one of them.
       *
       * - If we can get one from the template, we will use one.
       * - Otherwise, we will ask the user for one of them.
       */
      async askForResourceIdentifier(resourceIdentifiers2, chg) {
        const resourceName = this.describeResource(chg.logicalId);
        const resourceType = chg.resourceDiff.newResourceType;
        if (resourceType === void 0 || !(resourceType in resourceIdentifiers2)) {
          await this.ioHelper.defaults.warn(`${resourceName}: unsupported resource type ${resourceType}, skipping import.`);
          return void 0;
        }
        const idPropSets = resourceIdentifiers2[resourceType];
        const resourceProps = Object.fromEntries(Object.entries(chg.resourceDefinition.Properties ?? {}).filter(([_3, v6]) => typeof v6 === "string"));
        const satisfiedPropSets = idPropSets.filter((ps) => ps.every((p3) => resourceProps[p3]));
        for (const satisfiedPropSet of satisfiedPropSets) {
          const candidateProps = Object.fromEntries(satisfiedPropSet.map((p3) => [p3, resourceProps[p3]]));
          const displayCandidateProps = fmtdict(candidateProps);
          const importTheResource = await this.ioHelper.requestResponse(IO.CDK_TOOLKIT_I3100.req(`${chalk15.blue(resourceName)} (${resourceType}): import with ${chalk15.yellow(displayCandidateProps)}`, {
            resource: {
              type: resourceType,
              props: candidateProps,
              stringifiedProps: displayCandidateProps
            }
          }));
          if (importTheResource) {
            return candidateProps;
          }
        }
        if (satisfiedPropSets.length > 0) {
          await this.ioHelper.defaults.info(chalk15.grey(`Skipping import of ${resourceName}`));
          return void 0;
        }
        const prefix2 = `${chalk15.blue(resourceName)} (${resourceType})`;
        const promptPattern = `${prefix2}: enter %s`;
        if (idPropSets.length > 1) {
          const preamble = `${prefix2}: enter one of ${idPropSets.map((x3) => chalk15.blue(x3.join("+"))).join(", ")} to import (leave all empty to skip)`;
          await this.ioHelper.defaults.info(preamble);
        }
        for (const idProps of idPropSets) {
          const input = {};
          for (const idProp of idProps) {
            const defaultValue = resourceProps[idProp] ?? "";
            const response = await this.ioHelper.requestResponse(IO.CDK_TOOLKIT_I3110.req(
              (0, import_util54.format)(promptPattern, chalk15.blue(idProp)),
              {
                resource: {
                  name: resourceName,
                  type: resourceType,
                  idProp
                },
                responseDescription: defaultValue ? void 0 : "empty to skip"
              },
              defaultValue
            ));
            if (!response) {
              break;
            }
            input[idProp] = response;
            resourceProps[idProp] = response;
          }
          if (Object.keys(input).length === idProps.length) {
            return input;
          }
        }
        await this.ioHelper.defaults.info(chalk15.grey(`Skipping import of ${resourceName}`));
        return void 0;
      }
      /**
       * Convert the internal "resource mapping" structure to CloudFormation accepted "ResourcesToImport" structure
       */
      async makeResourcesToImport(resourceMap) {
        return resourceMap.importResources.map((res) => ({
          LogicalResourceId: res.logicalId,
          ResourceType: res.resourceDiff.newResourceType,
          ResourceIdentifier: resourceMap.resourceMap[res.logicalId]
        }));
      }
      /**
       * Convert CloudFormation logical resource ID to CDK construct tree path
       *
       * @param logicalId - CloudFormation logical ID of the resource (the key in the template's Resources section)
       * @returns Forward-slash separated path of the resource in CDK construct tree, e.g. MyStack/MyBucket/Resource
       */
      describeResource(logicalId) {
        return this.stack.template?.Resources?.[logicalId]?.Metadata?.["aws:cdk:path"] ?? logicalId;
      }
      /**
       * Removes CDKMetadata and Outputs in the template so that only resources for importing are left.
       * @returns template with import resources only
       */
      removeNonImportResources() {
        return removeNonImportResources(this.stack);
      }
    };
    __name(fmtdict, "fmtdict");
    __name(addDefaultDeletionPolicy, "addDefaultDeletionPolicy");
    __name(removeNonImportResources, "removeNonImportResources");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/resource-import/migrator.ts
var chalk16, fs26, ResourceMigrator;
var init_migrator = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/resource-import/migrator.ts"() {
    "use strict";
    chalk16 = __toESM(require_source());
    fs26 = __toESM(require_lib4());
    init_importer();
    init_util3();
    init_private();
    ResourceMigrator = class {
      static {
        __name(this, "ResourceMigrator");
      }
      props;
      ioHelper;
      constructor(props) {
        this.props = props;
        this.ioHelper = props.ioHelper;
      }
      /**
       * Checks to see if a migrate.json file exists. If it does and the source is either `filepath` or
       * is in the same environment as the stack deployment, a new stack is created and the resources are
       * migrated to the stack using an IMPORT changeset. The normal deployment will resume after this is complete
       * to add back in any outputs and the CDKMetadata.
       */
      async tryMigrateResources(stacks, options) {
        const stack = stacks.stackArtifacts[0];
        const migrateDeployment = new ResourceImporter(stack, {
          deployments: this.props.deployments,
          ioHelper: this.ioHelper
        });
        const resourcesToImport = await this.tryGetResources(await migrateDeployment.resolveEnvironment());
        if (resourcesToImport) {
          await this.ioHelper.defaults.info(`${chalk16.bold(stack.displayName)}: creating stack for resource migration...`);
          await this.ioHelper.defaults.info(`${chalk16.bold(stack.displayName)}: importing resources into stack...`);
          await this.performResourceMigration(migrateDeployment, resourcesToImport, options);
          fs26.rmSync("migrate.json");
          await this.ioHelper.defaults.info(`${chalk16.bold(stack.displayName)}: applying CDKMetadata and Outputs to stack (if applicable)...`);
        }
      }
      /**
       * Creates a new stack with just the resources to be migrated
       */
      async performResourceMigration(migrateDeployment, resourcesToImport, options) {
        const startDeployTime = (/* @__PURE__ */ new Date()).getTime();
        let elapsedDeployTime = 0;
        await migrateDeployment.importResourcesFromMigrate(resourcesToImport, {
          roleArn: options.roleArn,
          deploymentMethod: options.deploymentMethod,
          usePreviousParameters: true,
          rollback: options.rollback
        });
        elapsedDeployTime = (/* @__PURE__ */ new Date()).getTime() - startDeployTime;
        await this.ioHelper.notify(IO.CDK_TOOLKIT_I5002.msg(`'
\u2728  Resource migration time: ${formatTime(elapsedDeployTime)}s
'`, {
          duration: elapsedDeployTime
        }));
      }
      async tryGetResources(environment) {
        try {
          const migrateFile = fs26.readJsonSync("migrate.json", {
            encoding: "utf-8"
          });
          const sourceEnv = migrateFile.Source.split(":");
          if (sourceEnv[0] === "localfile" || sourceEnv[4] === environment.account && sourceEnv[3] === environment.region) {
            return migrateFile.Resources;
          }
        } catch (e3) {
        }
        return void 0;
      }
    };
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/resource-import/index.ts
var init_resource_import = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/resource-import/index.ts"() {
    "use strict";
    init_importer();
    init_migrator();
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/work-graph/work-graph-types.ts
var DeploymentState;
var init_work_graph_types = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/work-graph/work-graph-types.ts"() {
    "use strict";
    DeploymentState = /* @__PURE__ */ ((DeploymentState2) => {
      DeploymentState2["PENDING"] = "pending";
      DeploymentState2["QUEUED"] = "queued";
      DeploymentState2["DEPLOYING"] = "deploying";
      DeploymentState2["COMPLETED"] = "completed";
      DeploymentState2["FAILED"] = "failed";
      DeploymentState2["SKIPPED"] = "skipped";
      return DeploymentState2;
    })(DeploymentState || {});
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/work-graph/work-graph.ts
function sum2(xs) {
  let ret = 0;
  for (const x3 of xs) {
    ret += x3;
  }
  return ret;
}
function retainOnly(xs, pred) {
  xs.splice(0, xs.length, ...xs.filter(pred));
}
function gv(id, attrs) {
  const attrString = Object.entries(attrs ?? {}).flatMap(([k3, v6]) => v6 !== void 0 ? [`${k3}="${v6}"`] : []).join(",");
  return attrString ? `"${simplifyId(id)}" [${attrString}]` : `"${simplifyId(id)}"`;
}
function simplifyId(id) {
  return id.replace(/([0-9a-f]{6})[0-9a-f]{6,}/g, "$1");
}
var WorkGraph;
var init_work_graph = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/work-graph/work-graph.ts"() {
    "use strict";
    init_work_graph_types();
    init_toolkit_error();
    init_util3();
    WorkGraph = class {
      static {
        __name(this, "WorkGraph");
      }
      nodes;
      readyPool = [];
      lazyDependencies = /* @__PURE__ */ new Map();
      ioHelper;
      error;
      constructor(nodes, ioHelper) {
        this.nodes = { ...nodes };
        this.ioHelper = ioHelper;
      }
      addNodes(...nodes) {
        for (const node of nodes) {
          if (this.nodes[node.id]) {
            throw new ToolkitError(`Duplicate use of node id: ${node.id}`);
          }
          const ld = this.lazyDependencies.get(node.id);
          if (ld) {
            for (const x3 of ld) {
              node.dependencies.add(x3);
            }
            this.lazyDependencies.delete(node.id);
          }
          this.nodes[node.id] = node;
        }
      }
      removeNode(nodeId) {
        const id = typeof nodeId === "string" ? nodeId : nodeId.id;
        const removedNode = this.nodes[id];
        this.lazyDependencies.delete(id);
        delete this.nodes[id];
        if (removedNode) {
          for (const node of Object.values(this.nodes)) {
            node.dependencies.delete(removedNode.id);
          }
        }
      }
      /**
       * Return all nodes of a given type
       */
      nodesOfType(type) {
        return Object.values(this.nodes).filter((n3) => n3.type === type);
      }
      /**
       * Return all nodes that depend on a given node
       */
      dependees(nodeId) {
        const id = typeof nodeId === "string" ? nodeId : nodeId.id;
        return Object.values(this.nodes).filter((n3) => n3.dependencies.has(id));
      }
      /**
       * Add a dependency, that may come before or after the nodes involved
       */
      addDependency(fromId, toId) {
        const node = this.nodes[fromId];
        if (node) {
          node.dependencies.add(toId);
          return;
        }
        let lazyDeps = this.lazyDependencies.get(fromId);
        if (!lazyDeps) {
          lazyDeps = [];
          this.lazyDependencies.set(fromId, lazyDeps);
        }
        lazyDeps.push(toId);
      }
      tryGetNode(id) {
        return this.nodes[id];
      }
      node(id) {
        const ret = this.nodes[id];
        if (!ret) {
          throw new ToolkitError(`No node with id ${id} among ${Object.keys(this.nodes)}`);
        }
        return ret;
      }
      absorb(graph) {
        this.addNodes(...Object.values(graph.nodes));
      }
      hasFailed() {
        return Object.values(this.nodes).some((n3) => n3.deploymentState === "failed" /* FAILED */);
      }
      doParallel(concurrency, actions) {
        return this.forAllArtifacts(concurrency, async (x3) => {
          switch (x3.type) {
            case "stack":
              await actions.deployStack(x3);
              break;
            case "asset-build":
              await actions.buildAsset(x3);
              break;
            case "asset-publish":
              await actions.publishAsset(x3);
              break;
          }
        });
      }
      /**
       * Return the set of unblocked nodes
       */
      async ready() {
        await this.updateReadyPool();
        return this.readyPool;
      }
      forAllArtifacts(n3, fn) {
        const graph = this;
        const max = typeof n3 === "number" ? {
          "asset-build": n3,
          "asset-publish": n3,
          "stack": n3
        } : n3;
        const totalMax = typeof n3 === "number" ? n3 : sum2(Object.values(n3));
        return new Promise((ok, fail) => {
          let active = {
            "asset-build": 0,
            "asset-publish": 0,
            "stack": 0
          };
          function totalActive() {
            return sum2(Object.values(active));
          }
          __name(totalActive, "totalActive");
          start();
          function start() {
            graph.updateReadyPool().then(() => {
              for (let i3 = 0; i3 < graph.readyPool.length; ) {
                const node = graph.readyPool[i3];
                if (active[node.type] < max[node.type] && totalActive() < totalMax) {
                  graph.readyPool.splice(i3, 1);
                  startOne(node);
                } else {
                  i3 += 1;
                }
              }
              if (totalActive() === 0) {
                if (graph.done()) {
                  ok();
                }
                if (graph.hasFailed()) {
                  fail(graph.error);
                }
              }
            }).catch((e3) => {
              fail(e3);
            });
          }
          __name(start, "start");
          function startOne(x3) {
            x3.deploymentState = "deploying" /* DEPLOYING */;
            active[x3.type]++;
            void fn(x3).finally(() => {
              active[x3.type]--;
            }).then(() => {
              graph.deployed(x3);
              start();
            }).catch((err) => {
              graph.failed(x3, err);
              start();
            });
          }
          __name(startOne, "startOne");
        });
      }
      done() {
        return Object.values(this.nodes).every((n3) => "completed" /* COMPLETED */ === n3.deploymentState);
      }
      deployed(node) {
        node.deploymentState = "completed" /* COMPLETED */;
      }
      failed(node, error5) {
        this.error = error5;
        node.deploymentState = "failed" /* FAILED */;
        this.skipRest();
        this.readyPool.splice(0);
      }
      toString() {
        return [
          "digraph D {",
          ...Object.entries(this.nodes).flatMap(([id, node]) => renderNode(id, node)),
          "}"
        ].join("\n");
        function renderNode(id, node) {
          const ret = [];
          if (node.deploymentState === "completed" /* COMPLETED */) {
            ret.push(`  ${gv(id, { style: "filled", fillcolor: "yellow", comment: node.note })};`);
          } else {
            ret.push(`  ${gv(id, { comment: node.note })};`);
          }
          for (const dep of node.dependencies) {
            ret.push(`  ${gv(id)} -> ${gv(dep)};`);
          }
          return ret;
        }
        __name(renderNode, "renderNode");
      }
      /**
       * Ensure all dependencies actually exist. This protects against scenarios such as the following:
       * StackA depends on StackB, but StackB is not selected to deploy. The dependency is redundant
       * and will be dropped.
       * This assumes the manifest comes uncorrupted so we will not fail if a dependency is not found.
       */
      removeUnavailableDependencies() {
        for (const node of Object.values(this.nodes)) {
          const removeDeps = Array.from(node.dependencies).filter((dep) => this.nodes[dep] === void 0);
          removeDeps.forEach((d3) => {
            node.dependencies.delete(d3);
          });
        }
      }
      /**
       * Remove all asset publishing steps for assets that are already published, and then build
       * that aren't used anymore.
       *
       * Do this in parallel, because there may be a lot of assets in an application (seen in practice: >100 assets)
       */
      async removeUnnecessaryAssets(isUnnecessary) {
        await this.ioHelper.defaults.debug("Checking for previously published assets");
        const publishes = this.nodesOfType("asset-publish");
        const classifiedNodes = await parallelPromises(
          8,
          publishes.map((assetNode) => async () => [assetNode, await isUnnecessary(assetNode)])
        );
        const alreadyPublished = classifiedNodes.filter(([_3, unnecessary]) => unnecessary).map(([assetNode, _3]) => assetNode);
        for (const assetNode of alreadyPublished) {
          this.removeNode(assetNode);
        }
        await this.ioHelper.defaults.debug(`${publishes.length} total assets, ${publishes.length - alreadyPublished.length} still need to be published`);
        const unusedBuilds = this.nodesOfType("asset-build").filter((build) => this.dependees(build).length === 0);
        for (const unusedBuild of unusedBuilds) {
          this.removeNode(unusedBuild);
        }
      }
      async updateReadyPool() {
        const activeCount = Object.values(this.nodes).filter((x3) => x3.deploymentState === "deploying" /* DEPLOYING */).length;
        const pendingCount = Object.values(this.nodes).filter((x3) => x3.deploymentState === "pending" /* PENDING */).length;
        const newlyReady = Object.values(this.nodes).filter((x3) => x3.deploymentState === "pending" /* PENDING */ && Array.from(x3.dependencies).every((id) => this.node(id).deploymentState === "completed" /* COMPLETED */));
        for (const node of newlyReady) {
          node.deploymentState = "queued" /* QUEUED */;
          this.readyPool.push(node);
        }
        retainOnly(this.readyPool, (node) => node.deploymentState === "queued" /* QUEUED */);
        this.readyPool.sort((a3, b3) => (b3.priority ?? 0) - (a3.priority ?? 0));
        if (this.readyPool.length === 0 && activeCount === 0 && pendingCount > 0) {
          const cycle = this.findCycle() ?? ["No cycle found!"];
          await this.ioHelper.defaults.trace(`Cycle ${cycle.join(" -> ")} in graph ${this}`);
          throw new ToolkitError(`Unable to make progress anymore, dependency cycle between remaining artifacts: ${cycle.join(" -> ")} (run with -vv for full graph)`);
        }
      }
      skipRest() {
        for (const node of Object.values(this.nodes)) {
          if (["queued" /* QUEUED */, "pending" /* PENDING */].includes(node.deploymentState)) {
            node.deploymentState = "skipped" /* SKIPPED */;
          }
        }
      }
      /**
       * Find cycles in a graph
       *
       * Not the fastest, but effective and should be rare
       */
      findCycle() {
        const seen = /* @__PURE__ */ new Set();
        const self2 = this;
        for (const nodeId of Object.keys(this.nodes)) {
          const cycle = recurse(nodeId, [nodeId]);
          if (cycle) {
            return cycle;
          }
        }
        return void 0;
        function recurse(nodeId, path38) {
          if (seen.has(nodeId)) {
            return void 0;
          }
          try {
            for (const dep of self2.nodes[nodeId].dependencies ?? []) {
              const index = path38.indexOf(dep);
              if (index > -1) {
                return [...path38.slice(index), dep];
              }
              const cycle = recurse(dep, [...path38, dep]);
              if (cycle) {
                return cycle;
              }
            }
            return void 0;
          } finally {
            seen.add(nodeId);
          }
        }
        __name(recurse, "recurse");
      }
      /**
       * Whether the `end` node is reachable from the `start` node, following the dependency arrows
       */
      reachable(start, end) {
        const seen = /* @__PURE__ */ new Set();
        const self2 = this;
        return recurse(start);
        function recurse(current) {
          if (seen.has(current)) {
            return false;
          }
          seen.add(current);
          if (current === end) {
            return true;
          }
          for (const dep of self2.nodes[current].dependencies) {
            if (recurse(dep)) {
              return true;
            }
          }
          return false;
        }
        __name(recurse, "recurse");
      }
    };
    __name(sum2, "sum");
    __name(retainOnly, "retainOnly");
    __name(gv, "gv");
    __name(simplifyId, "simplifyId");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/work-graph/work-graph-builder.ts
function stacksFromAssets(artifacts) {
  const ret = /* @__PURE__ */ new Map();
  for (const stack of artifacts.filter((x3) => cxapi7.CloudFormationStackArtifact.isCloudFormationStackArtifact(x3))) {
    const assetArtifacts = stack.dependencies.filter((x3) => cxapi7.AssetManifestArtifact.isAssetManifestArtifact(x3));
    for (const art of assetArtifacts) {
      ret.set(art, stack);
    }
  }
  return ret;
}
function onlyStacks(artifacts) {
  return artifacts.filter((x3) => cxapi7.CloudFormationStackArtifact.isCloudFormationStackArtifact(x3));
}
var import_cdk_assets_lib4, cxapi7, WorkGraphBuilder;
var init_work_graph_builder = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/work-graph/work-graph-builder.ts"() {
    "use strict";
    import_cdk_assets_lib4 = __toESM(require_lib6());
    cxapi7 = __toESM(require_lib3());
    init_work_graph();
    init_work_graph_types();
    init_toolkit_error();
    init_util3();
    WorkGraphBuilder = class _WorkGraphBuilder {
      constructor(ioHelper, prebuildAssets, idPrefix = "") {
        this.prebuildAssets = prebuildAssets;
        this.idPrefix = idPrefix;
        this.graph = new WorkGraph({}, ioHelper);
        this.ioHelper = ioHelper;
      }
      static {
        __name(this, "WorkGraphBuilder");
      }
      /**
       * Default priorities for nodes
       *
       * Assets builds have higher priority than the other two operations, to make good on our promise that
       * '--prebuild-assets' will actually do assets before stacks (if it can). Unfortunately it is the
       * default :(
       *
       * But between stack dependencies and publish dependencies, stack dependencies go first
       */
      static PRIORITIES = {
        "asset-build": 10,
        "asset-publish": 0,
        "stack": 5
      };
      graph;
      ioHelper;
      addStack(artifact) {
        this.graph.addNodes({
          type: "stack",
          id: `${this.idPrefix}${artifact.id}`,
          dependencies: new Set(this.stackArtifactIds(onlyStacks(artifact.dependencies))),
          stack: artifact,
          deploymentState: "pending" /* PENDING */,
          priority: _WorkGraphBuilder.PRIORITIES.stack
        });
      }
      /**
       * Oof, see this parameter list
       */
      // eslint-disable-next-line @stylistic/max-len
      addAsset(parentStack, assetManifestArtifact, assetManifest, asset) {
        const assetId = asset.id.assetId;
        const buildId = `build-${assetId}-${contentHashAny([assetId, asset.genericSource]).substring(0, 10)}`;
        const publishId = `publish-${assetId}-${contentHashAny([assetId, asset.genericDestination]).substring(0, 10)}`;
        if (!this.graph.tryGetNode(buildId)) {
          const node = {
            type: "asset-build",
            id: buildId,
            note: asset.displayName(false),
            dependencies: /* @__PURE__ */ new Set([
              ...this.stackArtifactIds(assetManifestArtifact.dependencies),
              // If we disable prebuild, then assets inherit (stack) dependencies from their parent stack
              ...!this.prebuildAssets ? this.stackArtifactIds(onlyStacks(parentStack.dependencies)) : []
            ]),
            parentStack,
            assetManifestArtifact,
            assetManifest,
            asset,
            deploymentState: "pending" /* PENDING */,
            priority: _WorkGraphBuilder.PRIORITIES["asset-build"]
          };
          this.graph.addNodes(node);
        }
        const publishNode = this.graph.tryGetNode(publishId);
        if (!publishNode) {
          this.graph.addNodes({
            type: "asset-publish",
            id: publishId,
            note: asset.displayName(true),
            dependencies: /* @__PURE__ */ new Set([
              buildId
            ]),
            parentStack,
            assetManifestArtifact,
            assetManifest,
            asset,
            deploymentState: "pending" /* PENDING */,
            priority: _WorkGraphBuilder.PRIORITIES["asset-publish"]
          });
        }
        for (const inheritedDep of this.stackArtifactIds(onlyStacks(parentStack.dependencies))) {
          this.graph.addDependency(publishId, inheritedDep);
        }
        this.graph.addDependency(`${this.idPrefix}${parentStack.id}`, publishId);
      }
      build(artifacts) {
        const parentStacks = stacksFromAssets(artifacts);
        for (const artifact of artifacts) {
          if (cxapi7.CloudFormationStackArtifact.isCloudFormationStackArtifact(artifact)) {
            this.addStack(artifact);
          } else if (cxapi7.AssetManifestArtifact.isAssetManifestArtifact(artifact)) {
            const manifest = import_cdk_assets_lib4.AssetManifest.fromFile(artifact.file);
            for (const entry of manifest.entries) {
              const parentStack = parentStacks.get(artifact);
              if (parentStack === void 0) {
                throw new ToolkitError("Found an asset manifest that is not associated with a stack");
              }
              this.addAsset(parentStack, artifact, manifest, entry);
            }
          } else if (cxapi7.NestedCloudAssemblyArtifact.isNestedCloudAssemblyArtifact(artifact)) {
            const assembly = new cxapi7.CloudAssembly(artifact.fullPath, { topoSort: false });
            const nestedGraph = new _WorkGraphBuilder(
              this.ioHelper,
              this.prebuildAssets,
              `${this.idPrefix}${artifact.id}.`
            ).build(assembly.artifacts);
            this.graph.absorb(nestedGraph);
          } else {
          }
        }
        this.graph.removeUnavailableDependencies();
        this.removeStackPublishCycles();
        return this.graph;
      }
      stackArtifactIds(deps) {
        return deps.flatMap((d3) => cxapi7.CloudFormationStackArtifact.isCloudFormationStackArtifact(d3) ? [this.stackArtifactId(d3)] : []);
      }
      stackArtifactId(artifact) {
        if (!cxapi7.CloudFormationStackArtifact.isCloudFormationStackArtifact(artifact)) {
          throw new ToolkitError(`Can only call this on CloudFormationStackArtifact, got: ${artifact.constructor.name}`);
        }
        return `${this.idPrefix}${artifact.id}`;
      }
      /**
       * We may have accidentally introduced cycles in an attempt to make the messages printed to the
       * console not interfere with each other too much. Remove them again.
       */
      removeStackPublishCycles() {
        const publishSteps = this.graph.nodesOfType("asset-publish");
        for (const publishStep of publishSteps) {
          for (const dep of publishStep.dependencies) {
            if (this.graph.reachable(dep, publishStep.id)) {
              publishStep.dependencies.delete(dep);
            }
          }
        }
      }
    };
    __name(stacksFromAssets, "stacksFromAssets");
    __name(onlyStacks, "onlyStacks");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/work-graph/index.ts
var init_work_graph2 = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/work-graph/index.ts"() {
    "use strict";
    init_work_graph();
    init_work_graph_builder();
    init_work_graph_types();
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/garbage-collection/progress-printer.ts
var chalk17, ProgressPrinter;
var init_progress_printer = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/garbage-collection/progress-printer.ts"() {
    "use strict";
    chalk17 = __toESM(require_source());
    init_toolkit_error();
    ProgressPrinter = class {
      static {
        __name(this, "ProgressPrinter");
      }
      ioHelper;
      totalAssets;
      assetsScanned;
      taggedAsset;
      taggedAssetsSizeMb;
      deletedAssets;
      deletedAssetsSizeMb;
      interval;
      setInterval;
      isPaused;
      constructor(ioHelper, totalAssets, interval) {
        this.ioHelper = ioHelper;
        this.totalAssets = totalAssets;
        this.assetsScanned = 0;
        this.taggedAsset = 0;
        this.taggedAssetsSizeMb = 0;
        this.deletedAssets = 0;
        this.deletedAssetsSizeMb = 0;
        this.interval = interval ?? 1e4;
        this.isPaused = false;
      }
      reportScannedAsset(amt) {
        this.assetsScanned += amt;
      }
      reportTaggedAsset(assets) {
        this.taggedAsset += assets.length;
        const sizeInBytes = assets.reduce((total, asset) => total + asset.size, 0);
        this.taggedAssetsSizeMb += sizeInBytes / 1048576;
      }
      reportDeletedAsset(assets) {
        this.deletedAssets += assets.length;
        const sizeInBytes = assets.reduce((total, asset) => total + asset.size, 0);
        this.deletedAssetsSizeMb += sizeInBytes / 1048576;
      }
      start() {
        if (this.setInterval) {
          throw new ToolkitError("ProgressPrinter is already running. Stop it first using the stop() method before starting it again.");
        }
        this.setInterval = setInterval(() => {
          if (!this.isPaused) {
            this.print();
          }
        }, this.interval);
      }
      pause() {
        this.isPaused = true;
      }
      resume() {
        this.isPaused = false;
      }
      stop() {
        clearInterval(this.setInterval);
        if (!this.isPaused) {
          this.print();
        }
      }
      print() {
        const percentage = (this.assetsScanned / this.totalAssets * 100).toFixed(2);
        if (Math.max(this.taggedAssetsSizeMb, this.deletedAssetsSizeMb) >= 1e3) {
          void this.ioHelper.defaults.info(chalk17.green(`[${percentage}%] ${this.assetsScanned} files scanned: ${this.taggedAsset} assets (${(this.taggedAssetsSizeMb / 1e3).toFixed(2)} GiB) tagged, ${this.deletedAssets} assets (${(this.deletedAssetsSizeMb / 1e3).toFixed(2)} GiB) deleted.`));
        } else {
          void this.ioHelper.defaults.info(chalk17.green(`[${percentage}%] ${this.assetsScanned} files scanned: ${this.taggedAsset} assets (${this.taggedAssetsSizeMb.toFixed(2)} MiB) tagged, ${this.deletedAssets} assets (${this.deletedAssetsSizeMb.toFixed(2)} MiB) deleted.`));
        }
      }
    };
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/garbage-collection/stack-refresh.ts
async function paginateSdkCall(cb) {
  let finished = false;
  let nextToken;
  while (!finished) {
    nextToken = await cb(nextToken);
    if (nextToken === void 0) {
      finished = true;
    }
  }
}
async function fetchAllStackTemplates(cfn, ioHelper, qualifier) {
  const stackNames = [];
  await paginateSdkCall(async (nextToken) => {
    const stacks = await cfn.listStacks({ NextToken: nextToken });
    const ignoredStatues = ["CREATE_FAILED", "DELETE_COMPLETE", "DELETE_IN_PROGRESS", "DELETE_FAILED", "REVIEW_IN_PROGRESS"];
    stackNames.push(
      ...(stacks.StackSummaries ?? []).filter((s3) => !ignoredStatues.includes(s3.StackStatus)).map((s3) => s3.StackId ?? s3.StackName)
    );
    return stacks.NextToken;
  });
  await ioHelper.defaults.debug(`Parsing through ${stackNames.length} stacks`);
  const templates = [];
  for (const stack of stackNames) {
    let summary;
    summary = await cfn.getTemplateSummary({
      StackName: stack
    });
    if (bootstrapFilter(summary.Parameters, qualifier)) {
      continue;
    } else {
      const template = await cfn.getTemplate({
        StackName: stack
      });
      templates.push((template.TemplateBody ?? "") + JSON.stringify(summary?.Parameters));
    }
  }
  await ioHelper.defaults.debug("Done parsing through stacks");
  return templates;
}
function bootstrapFilter(parameters, qualifier) {
  const bootstrapVersion = parameters?.find((p3) => p3.ParameterKey === "BootstrapVersion");
  const splitBootstrapVersion = bootstrapVersion?.DefaultValue?.split("/");
  return qualifier && splitBootstrapVersion && splitBootstrapVersion.length == 4 && splitBootstrapVersion[2] != qualifier;
}
async function refreshStacks(cfn, ioHelper, activeAssets, qualifier) {
  try {
    const stacks = await fetchAllStackTemplates(cfn, ioHelper, qualifier);
    for (const stack of stacks) {
      activeAssets.rememberStack(stack);
    }
  } catch (err) {
    throw new ToolkitError(`Error refreshing stacks: ${err}`);
  }
}
var ActiveAssetCache, BackgroundStackRefresh;
var init_stack_refresh = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/garbage-collection/stack-refresh.ts"() {
    "use strict";
    init_toolkit_error();
    ActiveAssetCache = class {
      static {
        __name(this, "ActiveAssetCache");
      }
      stacks = /* @__PURE__ */ new Set();
      rememberStack(stackTemplate) {
        this.stacks.add(stackTemplate);
      }
      contains(asset) {
        for (const stack of this.stacks) {
          if (stack.includes(asset)) {
            return true;
          }
        }
        return false;
      }
    };
    __name(paginateSdkCall, "paginateSdkCall");
    __name(fetchAllStackTemplates, "fetchAllStackTemplates");
    __name(bootstrapFilter, "bootstrapFilter");
    __name(refreshStacks, "refreshStacks");
    BackgroundStackRefresh = class {
      constructor(props) {
        this.props = props;
        this.lastRefreshTime = Date.now();
      }
      static {
        __name(this, "BackgroundStackRefresh");
      }
      timeout;
      lastRefreshTime;
      queuedPromises = [];
      start() {
        this.timeout = setTimeout(() => this.refresh(), 3e5);
      }
      async refresh() {
        const startTime = Date.now();
        await refreshStacks(this.props.cfn, this.props.ioHelper, this.props.activeAssets, this.props.qualifier);
        this.justRefreshedStacks();
        this.timeout = setTimeout(() => this.refresh(), Math.max(startTime + 3e5 - Date.now(), 0));
      }
      justRefreshedStacks() {
        this.lastRefreshTime = Date.now();
        for (const p3 of this.queuedPromises.splice(0, this.queuedPromises.length)) {
          p3(void 0);
        }
      }
      /**
       * Checks if the last successful background refresh happened within the specified time frame.
       * If the last refresh is older than the specified time frame, it returns a Promise that resolves
       * when the next background refresh completes or rejects if the refresh takes too long.
       */
      noOlderThan(ms) {
        const horizon = Date.now() - ms;
        if (this.lastRefreshTime >= horizon) {
          return Promise.resolve();
        }
        return Promise.race([
          new Promise((resolve13) => this.queuedPromises.push(resolve13)),
          new Promise((_3, reject) => setTimeout(() => reject(new ToolkitError("refreshStacks took too long; the background thread likely threw an error")), ms))
        ]);
      }
      stop() {
        clearTimeout(this.timeout);
      }
    };
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/garbage-collection/garbage-collector.ts
function partition2(xs, pred) {
  const result2 = {
    included: [],
    excluded: []
  };
  for (const x3 of xs) {
    if (pred(x3)) {
      result2.included.push(x3);
    } else {
      result2.excluded.push(x3);
    }
  }
  return result2;
}
function imageMap(imageIds) {
  const images = {};
  for (const image of imageIds ?? []) {
    if (!image.imageDigest || !image.imageTag) {
      continue;
    }
    if (!images[image.imageDigest]) {
      images[image.imageDigest] = [];
    }
    images[image.imageDigest].push(image.imageTag);
  }
  return images;
}
var chalk18, pLimit3, S3_ISOLATED_TAG, ECR_ISOLATED_TAG, P_LIMIT, DAY, ImageAsset, ObjectAsset, GarbageCollector;
var init_garbage_collector = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/garbage-collection/garbage-collector.ts"() {
    "use strict";
    chalk18 = __toESM(require_source());
    init_toolkit_info();
    init_progress_printer();
    init_stack_refresh();
    init_toolkit_error();
    init_private();
    init_plugin2();
    pLimit3 = require_p_limit();
    S3_ISOLATED_TAG = "aws-cdk:isolated";
    ECR_ISOLATED_TAG = "aws-cdk.isolated";
    P_LIMIT = 50;
    DAY = 24 * 60 * 60 * 1e3;
    ImageAsset = class {
      constructor(digest, size, tags, manifest) {
        this.digest = digest;
        this.size = size;
        this.tags = tags;
        this.manifest = manifest;
      }
      static {
        __name(this, "ImageAsset");
      }
      getTag(tag2) {
        return this.tags.find((t3) => t3.includes(tag2));
      }
      hasTag(tag2) {
        return this.tags.some((t3) => t3.includes(tag2));
      }
      hasIsolatedTag() {
        return this.hasTag(ECR_ISOLATED_TAG);
      }
      getIsolatedTag() {
        return this.getTag(ECR_ISOLATED_TAG);
      }
      isolatedTagBefore(date) {
        const dateIsolated = this.dateIsolated();
        if (!dateIsolated || dateIsolated == "") {
          return false;
        }
        return new Date(Number(dateIsolated)) < date;
      }
      buildImageTag(inc) {
        return `${inc}-${ECR_ISOLATED_TAG}-${String(Date.now())}`;
      }
      dateIsolated() {
        return this.getIsolatedTag()?.split("-")[3];
      }
    };
    ObjectAsset = class {
      constructor(bucket, key, size) {
        this.bucket = bucket;
        this.key = key;
        this.size = size;
      }
      static {
        __name(this, "ObjectAsset");
      }
      cached_tags = void 0;
      fileName() {
        return this.key.split(".")[0];
      }
      async allTags(s3) {
        if (this.cached_tags) {
          return this.cached_tags;
        }
        const response = await s3.getObjectTagging({ Bucket: this.bucket, Key: this.key });
        this.cached_tags = response.TagSet;
        return this.cached_tags;
      }
      getTag(tag2) {
        if (!this.cached_tags) {
          throw new ToolkitError("Cannot call getTag before allTags");
        }
        return this.cached_tags.find((t3) => t3.Key === tag2)?.Value;
      }
      hasTag(tag2) {
        if (!this.cached_tags) {
          throw new ToolkitError("Cannot call hasTag before allTags");
        }
        return this.cached_tags.some((t3) => t3.Key === tag2);
      }
      hasIsolatedTag() {
        return this.hasTag(S3_ISOLATED_TAG);
      }
      isolatedTagBefore(date) {
        const tagValue = this.getTag(S3_ISOLATED_TAG);
        if (!tagValue || tagValue == "") {
          return false;
        }
        return new Date(Number(tagValue)) < date;
      }
    };
    GarbageCollector = class {
      constructor(props) {
        this.props = props;
        this.ioHelper = props.ioHelper;
        this.garbageCollectS3Assets = ["s3", "all"].includes(props.type);
        this.garbageCollectEcrAssets = ["ecr", "all"].includes(props.type);
        this.permissionToDelete = ["delete-tagged", "full"].includes(props.action);
        this.permissionToTag = ["tag", "full"].includes(props.action);
        this.confirm = props.confirm ?? true;
        this.bootstrapStackName = props.bootstrapStackName ?? DEFAULT_TOOLKIT_STACK_NAME;
      }
      static {
        __name(this, "GarbageCollector");
      }
      garbageCollectS3Assets;
      garbageCollectEcrAssets;
      permissionToDelete;
      permissionToTag;
      bootstrapStackName;
      confirm;
      ioHelper;
      /**
       * Perform garbage collection on the resolved environment.
       */
      async garbageCollect() {
        await this.ioHelper.defaults.debug(`${this.garbageCollectS3Assets} ${this.garbageCollectEcrAssets}`);
        const sdk = (await this.props.sdkProvider.forEnvironment(this.props.resolvedEnvironment, 1 /* ForWriting */)).sdk;
        const cfn = sdk.cloudFormation();
        const qualifier = await this.bootstrapQualifier(sdk, this.bootstrapStackName);
        const activeAssets = new ActiveAssetCache();
        await refreshStacks(cfn, this.ioHelper, activeAssets, qualifier);
        const backgroundStackRefresh = new BackgroundStackRefresh({
          cfn,
          ioHelper: this.ioHelper,
          activeAssets,
          qualifier
        });
        backgroundStackRefresh.start();
        try {
          if (this.garbageCollectS3Assets) {
            await this.garbageCollectS3(sdk, activeAssets, backgroundStackRefresh);
          }
          if (this.garbageCollectEcrAssets) {
            await this.garbageCollectEcr(sdk, activeAssets, backgroundStackRefresh);
          }
        } catch (err) {
          throw new ToolkitError(err);
        } finally {
          backgroundStackRefresh.stop();
        }
      }
      /**
       * Perform garbage collection on ECR assets
       */
      async garbageCollectEcr(sdk, activeAssets, backgroundStackRefresh) {
        const ecr = sdk.ecr();
        const repo = await this.bootstrapRepositoryName(sdk, this.bootstrapStackName);
        const numImages = await this.numImagesInRepo(ecr, repo);
        const printer = new ProgressPrinter(this.ioHelper, numImages, 1e3);
        await this.ioHelper.defaults.debug(`Found bootstrap repo ${repo} with ${numImages} images`);
        try {
          const batchSize = 1e3;
          const currentTime = Date.now();
          const graceDays = this.props.rollbackBufferDays;
          await this.ioHelper.defaults.debug(`Parsing through ${numImages} images in batches`);
          printer.start();
          for await (const batch of this.readRepoInBatches(ecr, repo, batchSize, currentTime)) {
            await backgroundStackRefresh.noOlderThan(6e5);
            const { included: isolated, excluded: notIsolated } = partition2(batch, (asset) => !asset.tags.some((t3) => activeAssets.contains(t3)));
            await this.ioHelper.defaults.debug(`${isolated.length} isolated images`);
            await this.ioHelper.defaults.debug(`${notIsolated.length} not isolated images`);
            await this.ioHelper.defaults.debug(`${batch.length} images total`);
            let deletables = isolated;
            let taggables = [];
            let untaggables = [];
            if (graceDays > 0) {
              await this.ioHelper.defaults.debug("Filtering out images that are not old enough to delete");
              deletables = isolated.filter((img) => img.isolatedTagBefore(new Date(currentTime - graceDays * DAY)));
              taggables = isolated.filter((img) => !img.hasIsolatedTag());
              untaggables = notIsolated.filter((img) => img.hasIsolatedTag());
            }
            await this.ioHelper.defaults.debug(`${deletables.length} deletable assets`);
            await this.ioHelper.defaults.debug(`${taggables.length} taggable assets`);
            await this.ioHelper.defaults.debug(`${untaggables.length} assets to untag`);
            if (this.permissionToDelete && deletables.length > 0) {
              await this.confirmationPrompt(printer, deletables, "image");
              await this.parallelDeleteEcr(ecr, repo, deletables, printer);
            }
            if (this.permissionToTag && taggables.length > 0) {
              await this.parallelTagEcr(ecr, repo, taggables, printer);
            }
            if (this.permissionToTag && untaggables.length > 0) {
              await this.parallelUntagEcr(ecr, repo, untaggables);
            }
            printer.reportScannedAsset(batch.length);
          }
        } catch (err) {
          throw new ToolkitError(err);
        } finally {
          printer.stop();
        }
      }
      /**
       * Perform garbage collection on S3 assets
       */
      async garbageCollectS3(sdk, activeAssets, backgroundStackRefresh) {
        const s3 = sdk.s3();
        const bucket = await this.bootstrapBucketName(sdk, this.bootstrapStackName);
        const numObjects = await this.numObjectsInBucket(s3, bucket);
        const printer = new ProgressPrinter(this.ioHelper, numObjects, 1e3);
        await this.ioHelper.defaults.debug(`Found bootstrap bucket ${bucket} with ${numObjects} objects`);
        try {
          const batchSize = 1e3;
          const currentTime = Date.now();
          const graceDays = this.props.rollbackBufferDays;
          await this.ioHelper.defaults.debug(`Parsing through ${numObjects} objects in batches`);
          printer.start();
          for await (const batch of this.readBucketInBatches(s3, bucket, batchSize, currentTime)) {
            await backgroundStackRefresh.noOlderThan(6e5);
            const { included: isolated, excluded: notIsolated } = partition2(batch, (asset) => !activeAssets.contains(asset.fileName()));
            await this.ioHelper.defaults.debug(`${isolated.length} isolated assets`);
            await this.ioHelper.defaults.debug(`${notIsolated.length} not isolated assets`);
            await this.ioHelper.defaults.debug(`${batch.length} objects total`);
            let deletables = isolated;
            let taggables = [];
            let untaggables = [];
            if (graceDays > 0) {
              await this.ioHelper.defaults.debug("Filtering out assets that are not old enough to delete");
              await this.parallelReadAllTags(s3, batch);
              deletables = isolated.filter((obj) => obj.isolatedTagBefore(new Date(currentTime - graceDays * DAY)));
              taggables = isolated.filter((obj) => !obj.hasIsolatedTag());
              untaggables = notIsolated.filter((obj) => obj.hasIsolatedTag());
            }
            await this.ioHelper.defaults.debug(`${deletables.length} deletable assets`);
            await this.ioHelper.defaults.debug(`${taggables.length} taggable assets`);
            await this.ioHelper.defaults.debug(`${untaggables.length} assets to untag`);
            if (this.permissionToDelete && deletables.length > 0) {
              await this.confirmationPrompt(printer, deletables, "object");
              await this.parallelDeleteS3(s3, bucket, deletables, printer);
            }
            if (this.permissionToTag && taggables.length > 0) {
              await this.parallelTagS3(s3, bucket, taggables, currentTime, printer);
            }
            if (this.permissionToTag && untaggables.length > 0) {
              await this.parallelUntagS3(s3, bucket, untaggables);
            }
            printer.reportScannedAsset(batch.length);
          }
        } catch (err) {
          throw new ToolkitError(err);
        } finally {
          printer.stop();
        }
      }
      async parallelReadAllTags(s3, objects) {
        const limit = pLimit3(P_LIMIT);
        for (const obj of objects) {
          await limit(() => obj.allTags(s3));
        }
      }
      /**
       * Untag assets that were previously tagged, but now currently referenced.
       * Since this is treated as an implementation detail, we do not print the results in the printer.
       */
      async parallelUntagEcr(ecr, repo, untaggables) {
        const limit = pLimit3(P_LIMIT);
        for (const img of untaggables) {
          const tag2 = img.getIsolatedTag();
          await limit(
            () => ecr.batchDeleteImage({
              repositoryName: repo,
              imageIds: [{
                imageTag: tag2
              }]
            })
          );
        }
        await this.ioHelper.defaults.debug(`Untagged ${untaggables.length} assets`);
      }
      /**
       * Untag assets that were previously tagged, but now currently referenced.
       * Since this is treated as an implementation detail, we do not print the results in the printer.
       */
      async parallelUntagS3(s3, bucket, untaggables) {
        const limit = pLimit3(P_LIMIT);
        for (const obj of untaggables) {
          const tags = await obj.allTags(s3) ?? [];
          const updatedTags = tags.filter((tag2) => tag2.Key !== S3_ISOLATED_TAG);
          await limit(
            () => s3.deleteObjectTagging({
              Bucket: bucket,
              Key: obj.key
            })
          );
          await limit(
            () => s3.putObjectTagging({
              Bucket: bucket,
              Key: obj.key,
              Tagging: {
                TagSet: updatedTags
              }
            })
          );
        }
        await this.ioHelper.defaults.debug(`Untagged ${untaggables.length} assets`);
      }
      /**
       * Tag images in parallel using p-limit
       */
      async parallelTagEcr(ecr, repo, taggables, printer) {
        const limit = pLimit3(P_LIMIT);
        for (let i3 = 0; i3 < taggables.length; i3++) {
          const img = taggables[i3];
          const tagEcr = /* @__PURE__ */ __name(async () => {
            try {
              await ecr.putImage({
                repositoryName: repo,
                imageDigest: img.digest,
                imageManifest: img.manifest,
                imageTag: img.buildImageTag(i3)
              });
            } catch (error5) {
              await this.ioHelper.defaults.debug(`Warning: unable to tag image ${JSON.stringify(img.tags)} with ${img.buildImageTag(i3)} due to the following error: ${error5}`);
            }
          }, "tagEcr");
          await limit(() => tagEcr());
        }
        printer.reportTaggedAsset(taggables);
        await this.ioHelper.defaults.debug(`Tagged ${taggables.length} assets`);
      }
      /**
       * Tag objects in parallel using p-limit. The putObjectTagging API does not
       * support batch tagging so we must handle the parallelism client-side.
       */
      async parallelTagS3(s3, bucket, taggables, date, printer) {
        const limit = pLimit3(P_LIMIT);
        for (const obj of taggables) {
          await limit(
            () => s3.putObjectTagging({
              Bucket: bucket,
              Key: obj.key,
              Tagging: {
                TagSet: [
                  {
                    Key: S3_ISOLATED_TAG,
                    Value: String(date)
                  }
                ]
              }
            })
          );
        }
        printer.reportTaggedAsset(taggables);
        await this.ioHelper.defaults.debug(`Tagged ${taggables.length} assets`);
      }
      /**
       * Delete images in parallel. The deleteImage API supports batches of 100.
       */
      async parallelDeleteEcr(ecr, repo, deletables, printer) {
        const batchSize = 100;
        const imagesToDelete = deletables.map((img) => ({
          imageDigest: img.digest
        }));
        try {
          const batches = [];
          for (let i3 = 0; i3 < imagesToDelete.length; i3 += batchSize) {
            batches.push(imagesToDelete.slice(i3, i3 + batchSize));
          }
          for (const batch of batches) {
            await ecr.batchDeleteImage({
              imageIds: batch,
              repositoryName: repo
            });
            const deletedCount = batch.length;
            await this.ioHelper.defaults.debug(`Deleted ${deletedCount} assets`);
            printer.reportDeletedAsset(deletables.slice(0, deletedCount));
          }
        } catch (err) {
          await this.ioHelper.defaults.error(`Error deleting images: ${err}`);
        }
      }
      /**
       * Delete objects in parallel. The deleteObjects API supports batches of 1000.
       */
      async parallelDeleteS3(s3, bucket, deletables, printer) {
        const batchSize = 1e3;
        const objectsToDelete = deletables.map((asset) => ({
          Key: asset.key
        }));
        try {
          const batches = [];
          for (let i3 = 0; i3 < objectsToDelete.length; i3 += batchSize) {
            batches.push(objectsToDelete.slice(i3, i3 + batchSize));
          }
          for (const batch of batches) {
            await s3.deleteObjects({
              Bucket: bucket,
              Delete: {
                Objects: batch,
                Quiet: true
              }
            });
            const deletedCount = batch.length;
            await this.ioHelper.defaults.debug(`Deleted ${deletedCount} assets`);
            printer.reportDeletedAsset(deletables.slice(0, deletedCount));
          }
        } catch (err) {
          await this.ioHelper.defaults.debug(chalk18.red(`Error deleting objects: ${err}`));
        }
      }
      async bootstrapBucketName(sdk, bootstrapStackName) {
        const toolkitInfo = await ToolkitInfo.lookup(this.props.resolvedEnvironment, sdk, this.ioHelper, bootstrapStackName);
        return toolkitInfo.bucketName;
      }
      async bootstrapRepositoryName(sdk, bootstrapStackName) {
        const toolkitInfo = await ToolkitInfo.lookup(this.props.resolvedEnvironment, sdk, this.ioHelper, bootstrapStackName);
        return toolkitInfo.repositoryName;
      }
      async bootstrapQualifier(sdk, bootstrapStackName) {
        const toolkitInfo = await ToolkitInfo.lookup(this.props.resolvedEnvironment, sdk, this.ioHelper, bootstrapStackName);
        return toolkitInfo.bootstrapStack.parameters.Qualifier;
      }
      async numObjectsInBucket(s3, bucket) {
        let totalCount = 0;
        let continuationToken;
        do {
          const response = await s3.listObjectsV2({
            Bucket: bucket,
            ContinuationToken: continuationToken
          });
          totalCount += response.KeyCount ?? 0;
          continuationToken = response.NextContinuationToken;
        } while (continuationToken);
        return totalCount;
      }
      async numImagesInRepo(ecr, repo) {
        let totalCount = 0;
        let nextToken;
        do {
          const response = await ecr.listImages({
            repositoryName: repo,
            nextToken
          });
          totalCount += response.imageIds?.length ?? 0;
          nextToken = response.nextToken;
        } while (nextToken);
        return totalCount;
      }
      async *readRepoInBatches(ecr, repo, batchSize = 1e3, currentTime) {
        let continuationToken;
        do {
          const batch = [];
          while (batch.length < batchSize) {
            const response = await ecr.listImages({
              repositoryName: repo,
              nextToken: continuationToken
            });
            if (!response.imageIds || response.imageIds.length === 0) {
              break;
            }
            const images = imageMap(response.imageIds ?? []);
            const imageIds = Object.keys(images).map((key) => ({
              imageDigest: key
            }));
            const describeImageInfo = await ecr.describeImages({
              repositoryName: repo,
              imageIds
            });
            const getImageInfo = await ecr.batchGetImage({
              repositoryName: repo,
              imageIds
            });
            const combinedImageInfo = describeImageInfo.imageDetails?.map((imageDetail) => {
              const matchingImage = getImageInfo.images?.find(
                (img) => img.imageId?.imageDigest === imageDetail.imageDigest
              );
              return {
                ...imageDetail,
                manifest: matchingImage?.imageManifest
              };
            });
            for (const image of combinedImageInfo ?? []) {
              const lastModified = image.imagePushedAt ?? new Date(currentTime);
              if (image.imageDigest && lastModified < new Date(currentTime - this.props.createdBufferDays * DAY)) {
                batch.push(new ImageAsset(image.imageDigest, image.imageSizeInBytes ?? 0, image.imageTags ?? [], image.manifest ?? ""));
              }
            }
            continuationToken = response.nextToken;
            if (!continuationToken) break;
          }
          if (batch.length > 0) {
            yield batch;
          }
        } while (continuationToken);
      }
      /**
       * Generator function that reads objects from the S3 Bucket in batches.
       */
      async *readBucketInBatches(s3, bucket, batchSize = 1e3, currentTime) {
        let continuationToken;
        do {
          const batch = [];
          while (batch.length < batchSize) {
            const response = await s3.listObjectsV2({
              Bucket: bucket,
              ContinuationToken: continuationToken
            });
            response.Contents?.forEach((obj) => {
              const key = obj.Key ?? "";
              const size = obj.Size ?? 0;
              const lastModified = obj.LastModified ?? new Date(currentTime);
              if (key && lastModified < new Date(currentTime - this.props.createdBufferDays * DAY)) {
                batch.push(new ObjectAsset(bucket, key, size));
              }
            });
            continuationToken = response.NextContinuationToken;
            if (!continuationToken) break;
          }
          if (batch.length > 0) {
            yield batch;
          }
        } while (continuationToken);
      }
      async confirmationPrompt(printer, deletables, type) {
        const pluralize = /* @__PURE__ */ __name((name, count) => {
          return count === 1 ? name : `${name}s`;
        }, "pluralize");
        if (this.confirm) {
          const message2 = [
            `Found ${deletables.length} ${pluralize(type, deletables.length)} to delete based off of the following criteria:`,
            `- ${type}s have been isolated for > ${this.props.rollbackBufferDays} days`,
            `- ${type}s were created > ${this.props.createdBufferDays} days ago`,
            "",
            "Delete this batch?"
          ].join("\n");
          printer.pause();
          const response = await this.ioHelper.requestResponse(IO.CDK_TOOLKIT_I9210.req(message2, {
            batch: {
              type,
              count: deletables.length,
              rollbackBufferDays: this.props.rollbackBufferDays,
              createdBufferDays: this.props.createdBufferDays
            },
            responseDescription: "[y]es/[n]o/[a]ll"
          }, "y"));
          const yes = ["y", "yes"];
          const all = ["a", "all", "delete-all"];
          if (!response || ![...yes, ...all].includes(response.toLowerCase())) {
            throw new ToolkitError("Deletion aborted by user");
          } else if (all.includes(response.toLowerCase())) {
            this.confirm = false;
          }
        }
        printer.resume();
      }
    };
    __name(partition2, "partition");
    __name(imageMap, "imageMap");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/garbage-collection/index.ts
var init_garbage_collection = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/garbage-collection/index.ts"() {
    "use strict";
    init_garbage_collector();
    init_progress_printer();
    init_stack_refresh();
  }
});

// lib/api/index.ts
var api_exports = {};
__export(api_exports, {
  ALL_STACKS: () => ALL_STACKS,
  AccountAccessKeyCache: () => AccountAccessKeyCache,
  ActiveAssetCache: () => ActiveAssetCache,
  AssetManifestBuilder: () => AssetManifestBuilder,
  AwsCliCompatible: () => AwsCliCompatible,
  BOOTSTRAP_VARIANT_PARAMETER: () => BOOTSTRAP_VARIANT_PARAMETER,
  BOOTSTRAP_VERSION_OUTPUT: () => BOOTSTRAP_VERSION_OUTPUT,
  BOOTSTRAP_VERSION_RESOURCE: () => BOOTSTRAP_VERSION_RESOURCE,
  BUCKET_DOMAIN_NAME_OUTPUT: () => BUCKET_DOMAIN_NAME_OUTPUT,
  BUCKET_NAME_OUTPUT: () => BUCKET_NAME_OUTPUT,
  BackgroundStackRefresh: () => BackgroundStackRefresh,
  BaseCredentials: () => BaseCredentials,
  BaseStackAssembly: () => BaseStackAssembly,
  Bootstrapper: () => Bootstrapper,
  CachedCloudAssembly: () => CachedCloudAssembly,
  CdkAppMultiContext: () => CdkAppMultiContext,
  CfnEvaluationException: () => CfnEvaluationException,
  CloudAssemblySourceBuilder: () => CloudAssemblySourceBuilder,
  CloudFormationStack: () => CloudFormationStack,
  CloudWatchLogEventMonitor: () => CloudWatchLogEventMonitor,
  ContextAwareCloudAssemblySource: () => ContextAwareCloudAssemblySource,
  CredentialPlugins: () => CredentialPlugins,
  DEFAULT_BOOTSTRAP_VARIANT: () => DEFAULT_BOOTSTRAP_VARIANT,
  DEFAULT_TOOLKIT_STACK_NAME: () => DEFAULT_TOOLKIT_STACK_NAME,
  DeploymentState: () => DeploymentState,
  Deployments: () => Deployments,
  DiffFormatter: () => DiffFormatter,
  ECR_ISOLATED_TAG: () => ECR_ISOLATED_TAG,
  EvaluateCloudFormationTemplate: () => EvaluateCloudFormationTemplate,
  ExecutionEnvironment: () => ExecutionEnvironment,
  ExpandStackSelection: () => ExpandStackSelection,
  ExtendedStackSelection: () => ExtendedStackSelection,
  FileContext: () => FileContext,
  GarbageCollector: () => GarbageCollector,
  ImageAsset: () => ImageAsset,
  IoHostSdkLogger: () => IoHostSdkLogger,
  LazyListStackResources: () => LazyListStackResources,
  LazyLookupExport: () => LazyLookupExport,
  LookupExportError: () => LookupExportError,
  MemoryContext: () => MemoryContext,
  Notices: () => Notices,
  ObjectAsset: () => ObjectAsset,
  ProgressPrinter: () => ProgressPrinter,
  REPOSITORY_NAME_OUTPUT: () => REPOSITORY_NAME_OUTPUT,
  RWLock: () => RWLock,
  ResourceImporter: () => ResourceImporter,
  ResourceMigrator: () => ResourceMigrator,
  S3_ISOLATED_TAG: () => S3_ISOLATED_TAG,
  SDK: () => SDK,
  SdkProvider: () => SdkProvider,
  StackAssembly: () => StackAssembly,
  StackCollection: () => StackCollection,
  StackSelectionStrategy: () => StackSelectionStrategy,
  ToolkitInfo: () => ToolkitInfo,
  WorkGraph: () => WorkGraph,
  WorkGraphBuilder: () => WorkGraphBuilder,
  addMetadataAssetsToManifest: () => addMetadataAssetsToManifest,
  assemblyFromDirectory: () => assemblyFromDirectory,
  assertIsSuccessfulDeployStackResult: () => assertIsSuccessfulDeployStackResult,
  cached: () => cached2,
  contextFromSettings: () => contextFromSettings,
  credentialsAboutToExpire: () => credentialsAboutToExpire,
  defaultCliUserAgent: () => defaultCliUserAgent,
  determineAllowCrossAccountAssetPublishing: () => determineAllowCrossAccountAssetPublishing,
  execInChildProcess: () => execInChildProcess,
  findCloudWatchLogGroups: () => findCloudWatchLogGroups,
  formatSdkLoggerContent: () => formatSdkLoggerContent,
  frameworkSupportsContextOverflow: () => frameworkSupportsContextOverflow,
  getBootstrapStackInfo: () => getBootstrapStackInfo,
  guessExecutable: () => guessExecutable,
  initContextProviderSdk: () => initContextProviderSdk,
  legacyBootstrapTemplate: () => legacyBootstrapTemplate,
  loadCurrentTemplate: () => loadCurrentTemplate,
  loadCurrentTemplateWithNestedStacks: () => loadCurrentTemplateWithNestedStacks,
  loadTree: () => loadTree,
  makeBodyParameter: () => makeBodyParameter,
  parametersFromSynthOptions: () => parametersFromSynthOptions,
  persistableContext: () => persistableContext,
  prepareDefaultEnvironment: () => prepareDefaultEnvironment,
  refreshStacks: () => refreshStacks,
  removeNonImportResources: () => removeNonImportResources,
  sdkRequestHandler: () => sdkRequestHandler,
  setSdkTracing: () => setSdkTracing,
  settingsFromSynthOptions: () => settingsFromSynthOptions,
  some: () => some,
  spaceAvailableForContext: () => spaceAvailableForContext,
  synthParametersFromSettings: () => synthParametersFromSettings,
  writeContextToEnv: () => writeContextToEnv
});
var init_api = __esm({
  "lib/api/index.ts"() {
    "use strict";
    init_bootstrap2();
    init_cloudformation3();
    init_cloud_assembly3();
    init_deployments3();
    init_aws_auth2();
    init_cloud_assembly3();
    init_notices3();
    init_diff3();
    init_io();
    init_logs_monitor3();
    init_resource_import();
    init_rwlock();
    init_toolkit_info();
    init_tree();
    init_work_graph2();
    init_garbage_collection();
  }
});

// ../../node_modules/picomatch/lib/constants.js
var require_constants5 = __commonJS({
  "../../node_modules/picomatch/lib/constants.js"(exports2, module2) {
    "use strict";
    var path38 = require("path");
    var WIN_SLASH = "\\\\/";
    var WIN_NO_SLASH = `[^${WIN_SLASH}]`;
    var DOT_LITERAL = "\\.";
    var PLUS_LITERAL = "\\+";
    var QMARK_LITERAL = "\\?";
    var SLASH_LITERAL = "\\/";
    var ONE_CHAR = "(?=.)";
    var QMARK = "[^/]";
    var END_ANCHOR = `(?:${SLASH_LITERAL}|$)`;
    var START_ANCHOR = `(?:^|${SLASH_LITERAL})`;
    var DOTS_SLASH = `${DOT_LITERAL}{1,2}${END_ANCHOR}`;
    var NO_DOT = `(?!${DOT_LITERAL})`;
    var NO_DOTS = `(?!${START_ANCHOR}${DOTS_SLASH})`;
    var NO_DOT_SLASH = `(?!${DOT_LITERAL}{0,1}${END_ANCHOR})`;
    var NO_DOTS_SLASH = `(?!${DOTS_SLASH})`;
    var QMARK_NO_DOT = `[^.${SLASH_LITERAL}]`;
    var STAR = `${QMARK}*?`;
    var POSIX_CHARS = {
      DOT_LITERAL,
      PLUS_LITERAL,
      QMARK_LITERAL,
      SLASH_LITERAL,
      ONE_CHAR,
      QMARK,
      END_ANCHOR,
      DOTS_SLASH,
      NO_DOT,
      NO_DOTS,
      NO_DOT_SLASH,
      NO_DOTS_SLASH,
      QMARK_NO_DOT,
      STAR,
      START_ANCHOR
    };
    var WINDOWS_CHARS = {
      ...POSIX_CHARS,
      SLASH_LITERAL: `[${WIN_SLASH}]`,
      QMARK: WIN_NO_SLASH,
      STAR: `${WIN_NO_SLASH}*?`,
      DOTS_SLASH: `${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$)`,
      NO_DOT: `(?!${DOT_LITERAL})`,
      NO_DOTS: `(?!(?:^|[${WIN_SLASH}])${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$))`,
      NO_DOT_SLASH: `(?!${DOT_LITERAL}{0,1}(?:[${WIN_SLASH}]|$))`,
      NO_DOTS_SLASH: `(?!${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$))`,
      QMARK_NO_DOT: `[^.${WIN_SLASH}]`,
      START_ANCHOR: `(?:^|[${WIN_SLASH}])`,
      END_ANCHOR: `(?:[${WIN_SLASH}]|$)`
    };
    var POSIX_REGEX_SOURCE = {
      alnum: "a-zA-Z0-9",
      alpha: "a-zA-Z",
      ascii: "\\x00-\\x7F",
      blank: " \\t",
      cntrl: "\\x00-\\x1F\\x7F",
      digit: "0-9",
      graph: "\\x21-\\x7E",
      lower: "a-z",
      print: "\\x20-\\x7E ",
      punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",
      space: " \\t\\r\\n\\v\\f",
      upper: "A-Z",
      word: "A-Za-z0-9_",
      xdigit: "A-Fa-f0-9"
    };
    module2.exports = {
      MAX_LENGTH: 1024 * 64,
      POSIX_REGEX_SOURCE,
      // regular expressions
      REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g,
      REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/,
      REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/,
      REGEX_SPECIAL_CHARS_BACKREF: /(\\?)((\W)(\3*))/g,
      REGEX_SPECIAL_CHARS_GLOBAL: /([-*+?.^${}(|)[\]])/g,
      REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g,
      // Replace globs with equivalent patterns to reduce parsing time.
      REPLACEMENTS: {
        "***": "*",
        "**/**": "**",
        "**/**/**": "**"
      },
      // Digits
      CHAR_0: 48,
      /* 0 */
      CHAR_9: 57,
      /* 9 */
      // Alphabet chars.
      CHAR_UPPERCASE_A: 65,
      /* A */
      CHAR_LOWERCASE_A: 97,
      /* a */
      CHAR_UPPERCASE_Z: 90,
      /* Z */
      CHAR_LOWERCASE_Z: 122,
      /* z */
      CHAR_LEFT_PARENTHESES: 40,
      /* ( */
      CHAR_RIGHT_PARENTHESES: 41,
      /* ) */
      CHAR_ASTERISK: 42,
      /* * */
      // Non-alphabetic chars.
      CHAR_AMPERSAND: 38,
      /* & */
      CHAR_AT: 64,
      /* @ */
      CHAR_BACKWARD_SLASH: 92,
      /* \ */
      CHAR_CARRIAGE_RETURN: 13,
      /* \r */
      CHAR_CIRCUMFLEX_ACCENT: 94,
      /* ^ */
      CHAR_COLON: 58,
      /* : */
      CHAR_COMMA: 44,
      /* , */
      CHAR_DOT: 46,
      /* . */
      CHAR_DOUBLE_QUOTE: 34,
      /* " */
      CHAR_EQUAL: 61,
      /* = */
      CHAR_EXCLAMATION_MARK: 33,
      /* ! */
      CHAR_FORM_FEED: 12,
      /* \f */
      CHAR_FORWARD_SLASH: 47,
      /* / */
      CHAR_GRAVE_ACCENT: 96,
      /* ` */
      CHAR_HASH: 35,
      /* # */
      CHAR_HYPHEN_MINUS: 45,
      /* - */
      CHAR_LEFT_ANGLE_BRACKET: 60,
      /* < */
      CHAR_LEFT_CURLY_BRACE: 123,
      /* { */
      CHAR_LEFT_SQUARE_BRACKET: 91,
      /* [ */
      CHAR_LINE_FEED: 10,
      /* \n */
      CHAR_NO_BREAK_SPACE: 160,
      /* \u00A0 */
      CHAR_PERCENT: 37,
      /* % */
      CHAR_PLUS: 43,
      /* + */
      CHAR_QUESTION_MARK: 63,
      /* ? */
      CHAR_RIGHT_ANGLE_BRACKET: 62,
      /* > */
      CHAR_RIGHT_CURLY_BRACE: 125,
      /* } */
      CHAR_RIGHT_SQUARE_BRACKET: 93,
      /* ] */
      CHAR_SEMICOLON: 59,
      /* ; */
      CHAR_SINGLE_QUOTE: 39,
      /* ' */
      CHAR_SPACE: 32,
      /*   */
      CHAR_TAB: 9,
      /* \t */
      CHAR_UNDERSCORE: 95,
      /* _ */
      CHAR_VERTICAL_LINE: 124,
      /* | */
      CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
      /* \uFEFF */
      SEP: path38.sep,
      /**
       * Create EXTGLOB_CHARS
       */
      extglobChars(chars) {
        return {
          "!": { type: "negate", open: "(?:(?!(?:", close: `))${chars.STAR})` },
          "?": { type: "qmark", open: "(?:", close: ")?" },
          "+": { type: "plus", open: "(?:", close: ")+" },
          "*": { type: "star", open: "(?:", close: ")*" },
          "@": { type: "at", open: "(?:", close: ")" }
        };
      },
      /**
       * Create GLOB_CHARS
       */
      globChars(win322) {
        return win322 === true ? WINDOWS_CHARS : POSIX_CHARS;
      }
    };
  }
});

// ../../node_modules/picomatch/lib/utils.js
var require_utils7 = __commonJS({
  "../../node_modules/picomatch/lib/utils.js"(exports2) {
    "use strict";
    var path38 = require("path");
    var win322 = process.platform === "win32";
    var {
      REGEX_BACKSLASH,
      REGEX_REMOVE_BACKSLASH,
      REGEX_SPECIAL_CHARS,
      REGEX_SPECIAL_CHARS_GLOBAL
    } = require_constants5();
    exports2.isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
    exports2.hasRegexChars = (str) => REGEX_SPECIAL_CHARS.test(str);
    exports2.isRegexChar = (str) => str.length === 1 && exports2.hasRegexChars(str);
    exports2.escapeRegex = (str) => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, "\\$1");
    exports2.toPosixSlashes = (str) => str.replace(REGEX_BACKSLASH, "/");
    exports2.removeBackslashes = (str) => {
      return str.replace(REGEX_REMOVE_BACKSLASH, (match4) => {
        return match4 === "\\" ? "" : match4;
      });
    };
    exports2.supportsLookbehinds = () => {
      const segs = process.version.slice(1).split(".").map(Number);
      if (segs.length === 3 && segs[0] >= 9 || segs[0] === 8 && segs[1] >= 10) {
        return true;
      }
      return false;
    };
    exports2.isWindows = (options) => {
      if (options && typeof options.windows === "boolean") {
        return options.windows;
      }
      return win322 === true || path38.sep === "\\";
    };
    exports2.escapeLast = (input, char, lastIdx) => {
      const idx = input.lastIndexOf(char, lastIdx);
      if (idx === -1) return input;
      if (input[idx - 1] === "\\") return exports2.escapeLast(input, char, idx - 1);
      return `${input.slice(0, idx)}\\${input.slice(idx)}`;
    };
    exports2.removePrefix = (input, state2 = {}) => {
      let output = input;
      if (output.startsWith("./")) {
        output = output.slice(2);
        state2.prefix = "./";
      }
      return output;
    };
    exports2.wrapOutput = (input, state2 = {}, options = {}) => {
      const prepend = options.contains ? "" : "^";
      const append = options.contains ? "" : "$";
      let output = `${prepend}(?:${input})${append}`;
      if (state2.negated === true) {
        output = `(?:^(?!${output}).*$)`;
      }
      return output;
    };
  }
});

// ../../node_modules/picomatch/lib/scan.js
var require_scan2 = __commonJS({
  "../../node_modules/picomatch/lib/scan.js"(exports2, module2) {
    "use strict";
    var utils = require_utils7();
    var {
      CHAR_ASTERISK,
      /* * */
      CHAR_AT,
      /* @ */
      CHAR_BACKWARD_SLASH,
      /* \ */
      CHAR_COMMA,
      /* , */
      CHAR_DOT,
      /* . */
      CHAR_EXCLAMATION_MARK,
      /* ! */
      CHAR_FORWARD_SLASH,
      /* / */
      CHAR_LEFT_CURLY_BRACE,
      /* { */
      CHAR_LEFT_PARENTHESES,
      /* ( */
      CHAR_LEFT_SQUARE_BRACKET,
      /* [ */
      CHAR_PLUS,
      /* + */
      CHAR_QUESTION_MARK,
      /* ? */
      CHAR_RIGHT_CURLY_BRACE,
      /* } */
      CHAR_RIGHT_PARENTHESES,
      /* ) */
      CHAR_RIGHT_SQUARE_BRACKET
      /* ] */
    } = require_constants5();
    var isPathSeparator = /* @__PURE__ */ __name((code) => {
      return code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH;
    }, "isPathSeparator");
    var depth = /* @__PURE__ */ __name((token) => {
      if (token.isPrefix !== true) {
        token.depth = token.isGlobstar ? Infinity : 1;
      }
    }, "depth");
    var scan = /* @__PURE__ */ __name((input, options) => {
      const opts = options || {};
      const length = input.length - 1;
      const scanToEnd = opts.parts === true || opts.scanToEnd === true;
      const slashes = [];
      const tokens = [];
      const parts = [];
      let str = input;
      let index = -1;
      let start = 0;
      let lastIndex = 0;
      let isBrace = false;
      let isBracket = false;
      let isGlob = false;
      let isExtglob = false;
      let isGlobstar = false;
      let braceEscaped = false;
      let backslashes = false;
      let negated = false;
      let negatedExtglob = false;
      let finished = false;
      let braces = 0;
      let prev;
      let code;
      let token = { value: "", depth: 0, isGlob: false };
      const eos = /* @__PURE__ */ __name(() => index >= length, "eos");
      const peek = /* @__PURE__ */ __name(() => str.charCodeAt(index + 1), "peek");
      const advance = /* @__PURE__ */ __name(() => {
        prev = code;
        return str.charCodeAt(++index);
      }, "advance");
      while (index < length) {
        code = advance();
        let next;
        if (code === CHAR_BACKWARD_SLASH) {
          backslashes = token.backslashes = true;
          code = advance();
          if (code === CHAR_LEFT_CURLY_BRACE) {
            braceEscaped = true;
          }
          continue;
        }
        if (braceEscaped === true || code === CHAR_LEFT_CURLY_BRACE) {
          braces++;
          while (eos() !== true && (code = advance())) {
            if (code === CHAR_BACKWARD_SLASH) {
              backslashes = token.backslashes = true;
              advance();
              continue;
            }
            if (code === CHAR_LEFT_CURLY_BRACE) {
              braces++;
              continue;
            }
            if (braceEscaped !== true && code === CHAR_DOT && (code = advance()) === CHAR_DOT) {
              isBrace = token.isBrace = true;
              isGlob = token.isGlob = true;
              finished = true;
              if (scanToEnd === true) {
                continue;
              }
              break;
            }
            if (braceEscaped !== true && code === CHAR_COMMA) {
              isBrace = token.isBrace = true;
              isGlob = token.isGlob = true;
              finished = true;
              if (scanToEnd === true) {
                continue;
              }
              break;
            }
            if (code === CHAR_RIGHT_CURLY_BRACE) {
              braces--;
              if (braces === 0) {
                braceEscaped = false;
                isBrace = token.isBrace = true;
                finished = true;
                break;
              }
            }
          }
          if (scanToEnd === true) {
            continue;
          }
          break;
        }
        if (code === CHAR_FORWARD_SLASH) {
          slashes.push(index);
          tokens.push(token);
          token = { value: "", depth: 0, isGlob: false };
          if (finished === true) continue;
          if (prev === CHAR_DOT && index === start + 1) {
            start += 2;
            continue;
          }
          lastIndex = index + 1;
          continue;
        }
        if (opts.noext !== true) {
          const isExtglobChar = code === CHAR_PLUS || code === CHAR_AT || code === CHAR_ASTERISK || code === CHAR_QUESTION_MARK || code === CHAR_EXCLAMATION_MARK;
          if (isExtglobChar === true && peek() === CHAR_LEFT_PARENTHESES) {
            isGlob = token.isGlob = true;
            isExtglob = token.isExtglob = true;
            finished = true;
            if (code === CHAR_EXCLAMATION_MARK && index === start) {
              negatedExtglob = true;
            }
            if (scanToEnd === true) {
              while (eos() !== true && (code = advance())) {
                if (code === CHAR_BACKWARD_SLASH) {
                  backslashes = token.backslashes = true;
                  code = advance();
                  continue;
                }
                if (code === CHAR_RIGHT_PARENTHESES) {
                  isGlob = token.isGlob = true;
                  finished = true;
                  break;
                }
              }
              continue;
            }
            break;
          }
        }
        if (code === CHAR_ASTERISK) {
          if (prev === CHAR_ASTERISK) isGlobstar = token.isGlobstar = true;
          isGlob = token.isGlob = true;
          finished = true;
          if (scanToEnd === true) {
            continue;
          }
          break;
        }
        if (code === CHAR_QUESTION_MARK) {
          isGlob = token.isGlob = true;
          finished = true;
          if (scanToEnd === true) {
            continue;
          }
          break;
        }
        if (code === CHAR_LEFT_SQUARE_BRACKET) {
          while (eos() !== true && (next = advance())) {
            if (next === CHAR_BACKWARD_SLASH) {
              backslashes = token.backslashes = true;
              advance();
              continue;
            }
            if (next === CHAR_RIGHT_SQUARE_BRACKET) {
              isBracket = token.isBracket = true;
              isGlob = token.isGlob = true;
              finished = true;
              break;
            }
          }
          if (scanToEnd === true) {
            continue;
          }
          break;
        }
        if (opts.nonegate !== true && code === CHAR_EXCLAMATION_MARK && index === start) {
          negated = token.negated = true;
          start++;
          continue;
        }
        if (opts.noparen !== true && code === CHAR_LEFT_PARENTHESES) {
          isGlob = token.isGlob = true;
          if (scanToEnd === true) {
            while (eos() !== true && (code = advance())) {
              if (code === CHAR_LEFT_PARENTHESES) {
                backslashes = token.backslashes = true;
                code = advance();
                continue;
              }
              if (code === CHAR_RIGHT_PARENTHESES) {
                finished = true;
                break;
              }
            }
            continue;
          }
          break;
        }
        if (isGlob === true) {
          finished = true;
          if (scanToEnd === true) {
            continue;
          }
          break;
        }
      }
      if (opts.noext === true) {
        isExtglob = false;
        isGlob = false;
      }
      let base = str;
      let prefix2 = "";
      let glob2 = "";
      if (start > 0) {
        prefix2 = str.slice(0, start);
        str = str.slice(start);
        lastIndex -= start;
      }
      if (base && isGlob === true && lastIndex > 0) {
        base = str.slice(0, lastIndex);
        glob2 = str.slice(lastIndex);
      } else if (isGlob === true) {
        base = "";
        glob2 = str;
      } else {
        base = str;
      }
      if (base && base !== "" && base !== "/" && base !== str) {
        if (isPathSeparator(base.charCodeAt(base.length - 1))) {
          base = base.slice(0, -1);
        }
      }
      if (opts.unescape === true) {
        if (glob2) glob2 = utils.removeBackslashes(glob2);
        if (base && backslashes === true) {
          base = utils.removeBackslashes(base);
        }
      }
      const state2 = {
        prefix: prefix2,
        input,
        start,
        base,
        glob: glob2,
        isBrace,
        isBracket,
        isGlob,
        isExtglob,
        isGlobstar,
        negated,
        negatedExtglob
      };
      if (opts.tokens === true) {
        state2.maxDepth = 0;
        if (!isPathSeparator(code)) {
          tokens.push(token);
        }
        state2.tokens = tokens;
      }
      if (opts.parts === true || opts.tokens === true) {
        let prevIndex;
        for (let idx = 0; idx < slashes.length; idx++) {
          const n3 = prevIndex ? prevIndex + 1 : start;
          const i3 = slashes[idx];
          const value = input.slice(n3, i3);
          if (opts.tokens) {
            if (idx === 0 && start !== 0) {
              tokens[idx].isPrefix = true;
              tokens[idx].value = prefix2;
            } else {
              tokens[idx].value = value;
            }
            depth(tokens[idx]);
            state2.maxDepth += tokens[idx].depth;
          }
          if (idx !== 0 || value !== "") {
            parts.push(value);
          }
          prevIndex = i3;
        }
        if (prevIndex && prevIndex + 1 < input.length) {
          const value = input.slice(prevIndex + 1);
          parts.push(value);
          if (opts.tokens) {
            tokens[tokens.length - 1].value = value;
            depth(tokens[tokens.length - 1]);
            state2.maxDepth += tokens[tokens.length - 1].depth;
          }
        }
        state2.slashes = slashes;
        state2.parts = parts;
      }
      return state2;
    }, "scan");
    module2.exports = scan;
  }
});

// ../../node_modules/picomatch/lib/parse.js
var require_parse4 = __commonJS({
  "../../node_modules/picomatch/lib/parse.js"(exports2, module2) {
    "use strict";
    var constants3 = require_constants5();
    var utils = require_utils7();
    var {
      MAX_LENGTH,
      POSIX_REGEX_SOURCE,
      REGEX_NON_SPECIAL_CHARS,
      REGEX_SPECIAL_CHARS_BACKREF,
      REPLACEMENTS
    } = constants3;
    var expandRange = /* @__PURE__ */ __name((args, options) => {
      if (typeof options.expandRange === "function") {
        return options.expandRange(...args, options);
      }
      args.sort();
      const value = `[${args.join("-")}]`;
      try {
        new RegExp(value);
      } catch (ex) {
        return args.map((v6) => utils.escapeRegex(v6)).join("..");
      }
      return value;
    }, "expandRange");
    var syntaxError = /* @__PURE__ */ __name((type, char) => {
      return `Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`;
    }, "syntaxError");
    var parse3 = /* @__PURE__ */ __name((input, options) => {
      if (typeof input !== "string") {
        throw new TypeError("Expected a string");
      }
      input = REPLACEMENTS[input] || input;
      const opts = { ...options };
      const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
      let len = input.length;
      if (len > max) {
        throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`);
      }
      const bos = { type: "bos", value: "", output: opts.prepend || "" };
      const tokens = [bos];
      const capture = opts.capture ? "" : "?:";
      const win322 = utils.isWindows(options);
      const PLATFORM_CHARS = constants3.globChars(win322);
      const EXTGLOB_CHARS = constants3.extglobChars(PLATFORM_CHARS);
      const {
        DOT_LITERAL,
        PLUS_LITERAL,
        SLASH_LITERAL,
        ONE_CHAR,
        DOTS_SLASH,
        NO_DOT,
        NO_DOT_SLASH,
        NO_DOTS_SLASH,
        QMARK,
        QMARK_NO_DOT,
        STAR,
        START_ANCHOR
      } = PLATFORM_CHARS;
      const globstar = /* @__PURE__ */ __name((opts2) => {
        return `(${capture}(?:(?!${START_ANCHOR}${opts2.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`;
      }, "globstar");
      const nodot = opts.dot ? "" : NO_DOT;
      const qmarkNoDot = opts.dot ? QMARK : QMARK_NO_DOT;
      let star7 = opts.bash === true ? globstar(opts) : STAR;
      if (opts.capture) {
        star7 = `(${star7})`;
      }
      if (typeof opts.noext === "boolean") {
        opts.noextglob = opts.noext;
      }
      const state2 = {
        input,
        index: -1,
        start: 0,
        dot: opts.dot === true,
        consumed: "",
        output: "",
        prefix: "",
        backtrack: false,
        negated: false,
        brackets: 0,
        braces: 0,
        parens: 0,
        quotes: 0,
        globstar: false,
        tokens
      };
      input = utils.removePrefix(input, state2);
      len = input.length;
      const extglobs = [];
      const braces = [];
      const stack = [];
      let prev = bos;
      let value;
      const eos = /* @__PURE__ */ __name(() => state2.index === len - 1, "eos");
      const peek = state2.peek = (n3 = 1) => input[state2.index + n3];
      const advance = state2.advance = () => input[++state2.index] || "";
      const remaining = /* @__PURE__ */ __name(() => input.slice(state2.index + 1), "remaining");
      const consume = /* @__PURE__ */ __name((value2 = "", num = 0) => {
        state2.consumed += value2;
        state2.index += num;
      }, "consume");
      const append = /* @__PURE__ */ __name((token) => {
        state2.output += token.output != null ? token.output : token.value;
        consume(token.value);
      }, "append");
      const negate = /* @__PURE__ */ __name(() => {
        let count = 1;
        while (peek() === "!" && (peek(2) !== "(" || peek(3) === "?")) {
          advance();
          state2.start++;
          count++;
        }
        if (count % 2 === 0) {
          return false;
        }
        state2.negated = true;
        state2.start++;
        return true;
      }, "negate");
      const increment = /* @__PURE__ */ __name((type) => {
        state2[type]++;
        stack.push(type);
      }, "increment");
      const decrement = /* @__PURE__ */ __name((type) => {
        state2[type]--;
        stack.pop();
      }, "decrement");
      const push = /* @__PURE__ */ __name((tok) => {
        if (prev.type === "globstar") {
          const isBrace = state2.braces > 0 && (tok.type === "comma" || tok.type === "brace");
          const isExtglob = tok.extglob === true || extglobs.length && (tok.type === "pipe" || tok.type === "paren");
          if (tok.type !== "slash" && tok.type !== "paren" && !isBrace && !isExtglob) {
            state2.output = state2.output.slice(0, -prev.output.length);
            prev.type = "star";
            prev.value = "*";
            prev.output = star7;
            state2.output += prev.output;
          }
        }
        if (extglobs.length && tok.type !== "paren") {
          extglobs[extglobs.length - 1].inner += tok.value;
        }
        if (tok.value || tok.output) append(tok);
        if (prev && prev.type === "text" && tok.type === "text") {
          prev.value += tok.value;
          prev.output = (prev.output || "") + tok.value;
          return;
        }
        tok.prev = prev;
        tokens.push(tok);
        prev = tok;
      }, "push");
      const extglobOpen = /* @__PURE__ */ __name((type, value2) => {
        const token = { ...EXTGLOB_CHARS[value2], conditions: 1, inner: "" };
        token.prev = prev;
        token.parens = state2.parens;
        token.output = state2.output;
        const output = (opts.capture ? "(" : "") + token.open;
        increment("parens");
        push({ type, value: value2, output: state2.output ? "" : ONE_CHAR });
        push({ type: "paren", extglob: true, value: advance(), output });
        extglobs.push(token);
      }, "extglobOpen");
      const extglobClose = /* @__PURE__ */ __name((token) => {
        let output = token.close + (opts.capture ? ")" : "");
        let rest;
        if (token.type === "negate") {
          let extglobStar = star7;
          if (token.inner && token.inner.length > 1 && token.inner.includes("/")) {
            extglobStar = globstar(opts);
          }
          if (extglobStar !== star7 || eos() || /^\)+$/.test(remaining())) {
            output = token.close = `)$))${extglobStar}`;
          }
          if (token.inner.includes("*") && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) {
            const expression = parse3(rest, { ...options, fastpaths: false }).output;
            output = token.close = `)${expression})${extglobStar})`;
          }
          if (token.prev.type === "bos") {
            state2.negatedExtglob = true;
          }
        }
        push({ type: "paren", extglob: true, value, output });
        decrement("parens");
      }, "extglobClose");
      if (opts.fastpaths !== false && !/(^[*!]|[/()[\]{}"])/.test(input)) {
        let backslashes = false;
        let output = input.replace(REGEX_SPECIAL_CHARS_BACKREF, (m3, esc, chars, first, rest, index) => {
          if (first === "\\") {
            backslashes = true;
            return m3;
          }
          if (first === "?") {
            if (esc) {
              return esc + first + (rest ? QMARK.repeat(rest.length) : "");
            }
            if (index === 0) {
              return qmarkNoDot + (rest ? QMARK.repeat(rest.length) : "");
            }
            return QMARK.repeat(chars.length);
          }
          if (first === ".") {
            return DOT_LITERAL.repeat(chars.length);
          }
          if (first === "*") {
            if (esc) {
              return esc + first + (rest ? star7 : "");
            }
            return star7;
          }
          return esc ? m3 : `\\${m3}`;
        });
        if (backslashes === true) {
          if (opts.unescape === true) {
            output = output.replace(/\\/g, "");
          } else {
            output = output.replace(/\\+/g, (m3) => {
              return m3.length % 2 === 0 ? "\\\\" : m3 ? "\\" : "";
            });
          }
        }
        if (output === input && opts.contains === true) {
          state2.output = input;
          return state2;
        }
        state2.output = utils.wrapOutput(output, state2, options);
        return state2;
      }
      while (!eos()) {
        value = advance();
        if (value === "\0") {
          continue;
        }
        if (value === "\\") {
          const next = peek();
          if (next === "/" && opts.bash !== true) {
            continue;
          }
          if (next === "." || next === ";") {
            continue;
          }
          if (!next) {
            value += "\\";
            push({ type: "text", value });
            continue;
          }
          const match4 = /^\\+/.exec(remaining());
          let slashes = 0;
          if (match4 && match4[0].length > 2) {
            slashes = match4[0].length;
            state2.index += slashes;
            if (slashes % 2 !== 0) {
              value += "\\";
            }
          }
          if (opts.unescape === true) {
            value = advance();
          } else {
            value += advance();
          }
          if (state2.brackets === 0) {
            push({ type: "text", value });
            continue;
          }
        }
        if (state2.brackets > 0 && (value !== "]" || prev.value === "[" || prev.value === "[^")) {
          if (opts.posix !== false && value === ":") {
            const inner = prev.value.slice(1);
            if (inner.includes("[")) {
              prev.posix = true;
              if (inner.includes(":")) {
                const idx = prev.value.lastIndexOf("[");
                const pre = prev.value.slice(0, idx);
                const rest2 = prev.value.slice(idx + 2);
                const posix2 = POSIX_REGEX_SOURCE[rest2];
                if (posix2) {
                  prev.value = pre + posix2;
                  state2.backtrack = true;
                  advance();
                  if (!bos.output && tokens.indexOf(prev) === 1) {
                    bos.output = ONE_CHAR;
                  }
                  continue;
                }
              }
            }
          }
          if (value === "[" && peek() !== ":" || value === "-" && peek() === "]") {
            value = `\\${value}`;
          }
          if (value === "]" && (prev.value === "[" || prev.value === "[^")) {
            value = `\\${value}`;
          }
          if (opts.posix === true && value === "!" && prev.value === "[") {
            value = "^";
          }
          prev.value += value;
          append({ value });
          continue;
        }
        if (state2.quotes === 1 && value !== '"') {
          value = utils.escapeRegex(value);
          prev.value += value;
          append({ value });
          continue;
        }
        if (value === '"') {
          state2.quotes = state2.quotes === 1 ? 0 : 1;
          if (opts.keepQuotes === true) {
            push({ type: "text", value });
          }
          continue;
        }
        if (value === "(") {
          increment("parens");
          push({ type: "paren", value });
          continue;
        }
        if (value === ")") {
          if (state2.parens === 0 && opts.strictBrackets === true) {
            throw new SyntaxError(syntaxError("opening", "("));
          }
          const extglob = extglobs[extglobs.length - 1];
          if (extglob && state2.parens === extglob.parens + 1) {
            extglobClose(extglobs.pop());
            continue;
          }
          push({ type: "paren", value, output: state2.parens ? ")" : "\\)" });
          decrement("parens");
          continue;
        }
        if (value === "[") {
          if (opts.nobracket === true || !remaining().includes("]")) {
            if (opts.nobracket !== true && opts.strictBrackets === true) {
              throw new SyntaxError(syntaxError("closing", "]"));
            }
            value = `\\${value}`;
          } else {
            increment("brackets");
          }
          push({ type: "bracket", value });
          continue;
        }
        if (value === "]") {
          if (opts.nobracket === true || prev && prev.type === "bracket" && prev.value.length === 1) {
            push({ type: "text", value, output: `\\${value}` });
            continue;
          }
          if (state2.brackets === 0) {
            if (opts.strictBrackets === true) {
              throw new SyntaxError(syntaxError("opening", "["));
            }
            push({ type: "text", value, output: `\\${value}` });
            continue;
          }
          decrement("brackets");
          const prevValue = prev.value.slice(1);
          if (prev.posix !== true && prevValue[0] === "^" && !prevValue.includes("/")) {
            value = `/${value}`;
          }
          prev.value += value;
          append({ value });
          if (opts.literalBrackets === false || utils.hasRegexChars(prevValue)) {
            continue;
          }
          const escaped = utils.escapeRegex(prev.value);
          state2.output = state2.output.slice(0, -prev.value.length);
          if (opts.literalBrackets === true) {
            state2.output += escaped;
            prev.value = escaped;
            continue;
          }
          prev.value = `(${capture}${escaped}|${prev.value})`;
          state2.output += prev.value;
          continue;
        }
        if (value === "{" && opts.nobrace !== true) {
          increment("braces");
          const open = {
            type: "brace",
            value,
            output: "(",
            outputIndex: state2.output.length,
            tokensIndex: state2.tokens.length
          };
          braces.push(open);
          push(open);
          continue;
        }
        if (value === "}") {
          const brace = braces[braces.length - 1];
          if (opts.nobrace === true || !brace) {
            push({ type: "text", value, output: value });
            continue;
          }
          let output = ")";
          if (brace.dots === true) {
            const arr = tokens.slice();
            const range2 = [];
            for (let i3 = arr.length - 1; i3 >= 0; i3--) {
              tokens.pop();
              if (arr[i3].type === "brace") {
                break;
              }
              if (arr[i3].type !== "dots") {
                range2.unshift(arr[i3].value);
              }
            }
            output = expandRange(range2, opts);
            state2.backtrack = true;
          }
          if (brace.comma !== true && brace.dots !== true) {
            const out = state2.output.slice(0, brace.outputIndex);
            const toks = state2.tokens.slice(brace.tokensIndex);
            brace.value = brace.output = "\\{";
            value = output = "\\}";
            state2.output = out;
            for (const t3 of toks) {
              state2.output += t3.output || t3.value;
            }
          }
          push({ type: "brace", value, output });
          decrement("braces");
          braces.pop();
          continue;
        }
        if (value === "|") {
          if (extglobs.length > 0) {
            extglobs[extglobs.length - 1].conditions++;
          }
          push({ type: "text", value });
          continue;
        }
        if (value === ",") {
          let output = value;
          const brace = braces[braces.length - 1];
          if (brace && stack[stack.length - 1] === "braces") {
            brace.comma = true;
            output = "|";
          }
          push({ type: "comma", value, output });
          continue;
        }
        if (value === "/") {
          if (prev.type === "dot" && state2.index === state2.start + 1) {
            state2.start = state2.index + 1;
            state2.consumed = "";
            state2.output = "";
            tokens.pop();
            prev = bos;
            continue;
          }
          push({ type: "slash", value, output: SLASH_LITERAL });
          continue;
        }
        if (value === ".") {
          if (state2.braces > 0 && prev.type === "dot") {
            if (prev.value === ".") prev.output = DOT_LITERAL;
            const brace = braces[braces.length - 1];
            prev.type = "dots";
            prev.output += value;
            prev.value += value;
            brace.dots = true;
            continue;
          }
          if (state2.braces + state2.parens === 0 && prev.type !== "bos" && prev.type !== "slash") {
            push({ type: "text", value, output: DOT_LITERAL });
            continue;
          }
          push({ type: "dot", value, output: DOT_LITERAL });
          continue;
        }
        if (value === "?") {
          const isGroup = prev && prev.value === "(";
          if (!isGroup && opts.noextglob !== true && peek() === "(" && peek(2) !== "?") {
            extglobOpen("qmark", value);
            continue;
          }
          if (prev && prev.type === "paren") {
            const next = peek();
            let output = value;
            if (next === "<" && !utils.supportsLookbehinds()) {
              throw new Error("Node.js v10 or higher is required for regex lookbehinds");
            }
            if (prev.value === "(" && !/[!=<:]/.test(next) || next === "<" && !/<([!=]|\w+>)/.test(remaining())) {
              output = `\\${value}`;
            }
            push({ type: "text", value, output });
            continue;
          }
          if (opts.dot !== true && (prev.type === "slash" || prev.type === "bos")) {
            push({ type: "qmark", value, output: QMARK_NO_DOT });
            continue;
          }
          push({ type: "qmark", value, output: QMARK });
          continue;
        }
        if (value === "!") {
          if (opts.noextglob !== true && peek() === "(") {
            if (peek(2) !== "?" || !/[!=<:]/.test(peek(3))) {
              extglobOpen("negate", value);
              continue;
            }
          }
          if (opts.nonegate !== true && state2.index === 0) {
            negate();
            continue;
          }
        }
        if (value === "+") {
          if (opts.noextglob !== true && peek() === "(" && peek(2) !== "?") {
            extglobOpen("plus", value);
            continue;
          }
          if (prev && prev.value === "(" || opts.regex === false) {
            push({ type: "plus", value, output: PLUS_LITERAL });
            continue;
          }
          if (prev && (prev.type === "bracket" || prev.type === "paren" || prev.type === "brace") || state2.parens > 0) {
            push({ type: "plus", value });
            continue;
          }
          push({ type: "plus", value: PLUS_LITERAL });
          continue;
        }
        if (value === "@") {
          if (opts.noextglob !== true && peek() === "(" && peek(2) !== "?") {
            push({ type: "at", extglob: true, value, output: "" });
            continue;
          }
          push({ type: "text", value });
          continue;
        }
        if (value !== "*") {
          if (value === "$" || value === "^") {
            value = `\\${value}`;
          }
          const match4 = REGEX_NON_SPECIAL_CHARS.exec(remaining());
          if (match4) {
            value += match4[0];
            state2.index += match4[0].length;
          }
          push({ type: "text", value });
          continue;
        }
        if (prev && (prev.type === "globstar" || prev.star === true)) {
          prev.type = "star";
          prev.star = true;
          prev.value += value;
          prev.output = star7;
          state2.backtrack = true;
          state2.globstar = true;
          consume(value);
          continue;
        }
        let rest = remaining();
        if (opts.noextglob !== true && /^\([^?]/.test(rest)) {
          extglobOpen("star", value);
          continue;
        }
        if (prev.type === "star") {
          if (opts.noglobstar === true) {
            consume(value);
            continue;
          }
          const prior = prev.prev;
          const before = prior.prev;
          const isStart = prior.type === "slash" || prior.type === "bos";
          const afterStar = before && (before.type === "star" || before.type === "globstar");
          if (opts.bash === true && (!isStart || rest[0] && rest[0] !== "/")) {
            push({ type: "star", value, output: "" });
            continue;
          }
          const isBrace = state2.braces > 0 && (prior.type === "comma" || prior.type === "brace");
          const isExtglob = extglobs.length && (prior.type === "pipe" || prior.type === "paren");
          if (!isStart && prior.type !== "paren" && !isBrace && !isExtglob) {
            push({ type: "star", value, output: "" });
            continue;
          }
          while (rest.slice(0, 3) === "/**") {
            const after = input[state2.index + 4];
            if (after && after !== "/") {
              break;
            }
            rest = rest.slice(3);
            consume("/**", 3);
          }
          if (prior.type === "bos" && eos()) {
            prev.type = "globstar";
            prev.value += value;
            prev.output = globstar(opts);
            state2.output = prev.output;
            state2.globstar = true;
            consume(value);
            continue;
          }
          if (prior.type === "slash" && prior.prev.type !== "bos" && !afterStar && eos()) {
            state2.output = state2.output.slice(0, -(prior.output + prev.output).length);
            prior.output = `(?:${prior.output}`;
            prev.type = "globstar";
            prev.output = globstar(opts) + (opts.strictSlashes ? ")" : "|$)");
            prev.value += value;
            state2.globstar = true;
            state2.output += prior.output + prev.output;
            consume(value);
            continue;
          }
          if (prior.type === "slash" && prior.prev.type !== "bos" && rest[0] === "/") {
            const end = rest[1] !== void 0 ? "|$" : "";
            state2.output = state2.output.slice(0, -(prior.output + prev.output).length);
            prior.output = `(?:${prior.output}`;
            prev.type = "globstar";
            prev.output = `${globstar(opts)}${SLASH_LITERAL}|${SLASH_LITERAL}${end})`;
            prev.value += value;
            state2.output += prior.output + prev.output;
            state2.globstar = true;
            consume(value + advance());
            push({ type: "slash", value: "/", output: "" });
            continue;
          }
          if (prior.type === "bos" && rest[0] === "/") {
            prev.type = "globstar";
            prev.value += value;
            prev.output = `(?:^|${SLASH_LITERAL}|${globstar(opts)}${SLASH_LITERAL})`;
            state2.output = prev.output;
            state2.globstar = true;
            consume(value + advance());
            push({ type: "slash", value: "/", output: "" });
            continue;
          }
          state2.output = state2.output.slice(0, -prev.output.length);
          prev.type = "globstar";
          prev.output = globstar(opts);
          prev.value += value;
          state2.output += prev.output;
          state2.globstar = true;
          consume(value);
          continue;
        }
        const token = { type: "star", value, output: star7 };
        if (opts.bash === true) {
          token.output = ".*?";
          if (prev.type === "bos" || prev.type === "slash") {
            token.output = nodot + token.output;
          }
          push(token);
          continue;
        }
        if (prev && (prev.type === "bracket" || prev.type === "paren") && opts.regex === true) {
          token.output = value;
          push(token);
          continue;
        }
        if (state2.index === state2.start || prev.type === "slash" || prev.type === "dot") {
          if (prev.type === "dot") {
            state2.output += NO_DOT_SLASH;
            prev.output += NO_DOT_SLASH;
          } else if (opts.dot === true) {
            state2.output += NO_DOTS_SLASH;
            prev.output += NO_DOTS_SLASH;
          } else {
            state2.output += nodot;
            prev.output += nodot;
          }
          if (peek() !== "*") {
            state2.output += ONE_CHAR;
            prev.output += ONE_CHAR;
          }
        }
        push(token);
      }
      while (state2.brackets > 0) {
        if (opts.strictBrackets === true) throw new SyntaxError(syntaxError("closing", "]"));
        state2.output = utils.escapeLast(state2.output, "[");
        decrement("brackets");
      }
      while (state2.parens > 0) {
        if (opts.strictBrackets === true) throw new SyntaxError(syntaxError("closing", ")"));
        state2.output = utils.escapeLast(state2.output, "(");
        decrement("parens");
      }
      while (state2.braces > 0) {
        if (opts.strictBrackets === true) throw new SyntaxError(syntaxError("closing", "}"));
        state2.output = utils.escapeLast(state2.output, "{");
        decrement("braces");
      }
      if (opts.strictSlashes !== true && (prev.type === "star" || prev.type === "bracket")) {
        push({ type: "maybe_slash", value: "", output: `${SLASH_LITERAL}?` });
      }
      if (state2.backtrack === true) {
        state2.output = "";
        for (const token of state2.tokens) {
          state2.output += token.output != null ? token.output : token.value;
          if (token.suffix) {
            state2.output += token.suffix;
          }
        }
      }
      return state2;
    }, "parse");
    parse3.fastpaths = (input, options) => {
      const opts = { ...options };
      const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
      const len = input.length;
      if (len > max) {
        throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`);
      }
      input = REPLACEMENTS[input] || input;
      const win322 = utils.isWindows(options);
      const {
        DOT_LITERAL,
        SLASH_LITERAL,
        ONE_CHAR,
        DOTS_SLASH,
        NO_DOT,
        NO_DOTS,
        NO_DOTS_SLASH,
        STAR,
        START_ANCHOR
      } = constants3.globChars(win322);
      const nodot = opts.dot ? NO_DOTS : NO_DOT;
      const slashDot = opts.dot ? NO_DOTS_SLASH : NO_DOT;
      const capture = opts.capture ? "" : "?:";
      const state2 = { negated: false, prefix: "" };
      let star7 = opts.bash === true ? ".*?" : STAR;
      if (opts.capture) {
        star7 = `(${star7})`;
      }
      const globstar = /* @__PURE__ */ __name((opts2) => {
        if (opts2.noglobstar === true) return star7;
        return `(${capture}(?:(?!${START_ANCHOR}${opts2.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`;
      }, "globstar");
      const create = /* @__PURE__ */ __name((str) => {
        switch (str) {
          case "*":
            return `${nodot}${ONE_CHAR}${star7}`;
          case ".*":
            return `${DOT_LITERAL}${ONE_CHAR}${star7}`;
          case "*.*":
            return `${nodot}${star7}${DOT_LITERAL}${ONE_CHAR}${star7}`;
          case "*/*":
            return `${nodot}${star7}${SLASH_LITERAL}${ONE_CHAR}${slashDot}${star7}`;
          case "**":
            return nodot + globstar(opts);
          case "**/*":
            return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${slashDot}${ONE_CHAR}${star7}`;
          case "**/*.*":
            return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${slashDot}${star7}${DOT_LITERAL}${ONE_CHAR}${star7}`;
          case "**/.*":
            return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${DOT_LITERAL}${ONE_CHAR}${star7}`;
          default: {
            const match4 = /^(.*?)\.(\w+)$/.exec(str);
            if (!match4) return;
            const source2 = create(match4[1]);
            if (!source2) return;
            return source2 + DOT_LITERAL + match4[2];
          }
        }
      }, "create");
      const output = utils.removePrefix(input, state2);
      let source = create(output);
      if (source && opts.strictSlashes !== true) {
        source += `${SLASH_LITERAL}?`;
      }
      return source;
    };
    module2.exports = parse3;
  }
});

// ../../node_modules/picomatch/lib/picomatch.js
var require_picomatch = __commonJS({
  "../../node_modules/picomatch/lib/picomatch.js"(exports2, module2) {
    "use strict";
    var path38 = require("path");
    var scan = require_scan2();
    var parse3 = require_parse4();
    var utils = require_utils7();
    var constants3 = require_constants5();
    var isObject3 = /* @__PURE__ */ __name((val) => val && typeof val === "object" && !Array.isArray(val), "isObject");
    var picomatch = /* @__PURE__ */ __name((glob2, options, returnState = false) => {
      if (Array.isArray(glob2)) {
        const fns = glob2.map((input) => picomatch(input, options, returnState));
        const arrayMatcher = /* @__PURE__ */ __name((str) => {
          for (const isMatch of fns) {
            const state3 = isMatch(str);
            if (state3) return state3;
          }
          return false;
        }, "arrayMatcher");
        return arrayMatcher;
      }
      const isState = isObject3(glob2) && glob2.tokens && glob2.input;
      if (glob2 === "" || typeof glob2 !== "string" && !isState) {
        throw new TypeError("Expected pattern to be a non-empty string");
      }
      const opts = options || {};
      const posix2 = utils.isWindows(options);
      const regex = isState ? picomatch.compileRe(glob2, options) : picomatch.makeRe(glob2, options, false, true);
      const state2 = regex.state;
      delete regex.state;
      let isIgnored = /* @__PURE__ */ __name(() => false, "isIgnored");
      if (opts.ignore) {
        const ignoreOpts = { ...options, ignore: null, onMatch: null, onResult: null };
        isIgnored = picomatch(opts.ignore, ignoreOpts, returnState);
      }
      const matcher = /* @__PURE__ */ __name((input, returnObject = false) => {
        const { isMatch, match: match4, output } = picomatch.test(input, regex, options, { glob: glob2, posix: posix2 });
        const result2 = { glob: glob2, state: state2, regex, posix: posix2, input, output, match: match4, isMatch };
        if (typeof opts.onResult === "function") {
          opts.onResult(result2);
        }
        if (isMatch === false) {
          result2.isMatch = false;
          return returnObject ? result2 : false;
        }
        if (isIgnored(input)) {
          if (typeof opts.onIgnore === "function") {
            opts.onIgnore(result2);
          }
          result2.isMatch = false;
          return returnObject ? result2 : false;
        }
        if (typeof opts.onMatch === "function") {
          opts.onMatch(result2);
        }
        return returnObject ? result2 : true;
      }, "matcher");
      if (returnState) {
        matcher.state = state2;
      }
      return matcher;
    }, "picomatch");
    picomatch.test = (input, regex, options, { glob: glob2, posix: posix2 } = {}) => {
      if (typeof input !== "string") {
        throw new TypeError("Expected input to be a string");
      }
      if (input === "") {
        return { isMatch: false, output: "" };
      }
      const opts = options || {};
      const format26 = opts.format || (posix2 ? utils.toPosixSlashes : null);
      let match4 = input === glob2;
      let output = match4 && format26 ? format26(input) : input;
      if (match4 === false) {
        output = format26 ? format26(input) : input;
        match4 = output === glob2;
      }
      if (match4 === false || opts.capture === true) {
        if (opts.matchBase === true || opts.basename === true) {
          match4 = picomatch.matchBase(input, regex, options, posix2);
        } else {
          match4 = regex.exec(output);
        }
      }
      return { isMatch: Boolean(match4), match: match4, output };
    };
    picomatch.matchBase = (input, glob2, options, posix2 = utils.isWindows(options)) => {
      const regex = glob2 instanceof RegExp ? glob2 : picomatch.makeRe(glob2, options);
      return regex.test(path38.basename(input));
    };
    picomatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
    picomatch.parse = (pattern, options) => {
      if (Array.isArray(pattern)) return pattern.map((p3) => picomatch.parse(p3, options));
      return parse3(pattern, { ...options, fastpaths: false });
    };
    picomatch.scan = (input, options) => scan(input, options);
    picomatch.compileRe = (state2, options, returnOutput = false, returnState = false) => {
      if (returnOutput === true) {
        return state2.output;
      }
      const opts = options || {};
      const prepend = opts.contains ? "" : "^";
      const append = opts.contains ? "" : "$";
      let source = `${prepend}(?:${state2.output})${append}`;
      if (state2 && state2.negated === true) {
        source = `^(?!${source}).*$`;
      }
      const regex = picomatch.toRegex(source, options);
      if (returnState === true) {
        regex.state = state2;
      }
      return regex;
    };
    picomatch.makeRe = (input, options = {}, returnOutput = false, returnState = false) => {
      if (!input || typeof input !== "string") {
        throw new TypeError("Expected a non-empty string");
      }
      let parsed = { negated: false, fastpaths: true };
      if (options.fastpaths !== false && (input[0] === "." || input[0] === "*")) {
        parsed.output = parse3.fastpaths(input, options);
      }
      if (!parsed.output) {
        parsed = parse3(input, options);
      }
      return picomatch.compileRe(parsed, options, returnOutput, returnState);
    };
    picomatch.toRegex = (source, options) => {
      try {
        const opts = options || {};
        return new RegExp(source, opts.flags || (opts.nocase ? "i" : ""));
      } catch (err) {
        if (options && options.debug === true) throw err;
        return /$^/;
      }
    };
    picomatch.constants = constants3;
    module2.exports = picomatch;
  }
});

// ../../node_modules/picomatch/index.js
var require_picomatch2 = __commonJS({
  "../../node_modules/picomatch/index.js"(exports2, module2) {
    "use strict";
    module2.exports = require_picomatch();
  }
});

// ../../node_modules/readdirp/index.js
var require_readdirp = __commonJS({
  "../../node_modules/readdirp/index.js"(exports2, module2) {
    "use strict";
    var fs43 = require("fs");
    var { Readable } = require("stream");
    var sysPath = require("path");
    var { promisify: promisify4 } = require("util");
    var picomatch = require_picomatch2();
    var readdir3 = promisify4(fs43.readdir);
    var stat5 = promisify4(fs43.stat);
    var lstat2 = promisify4(fs43.lstat);
    var realpath2 = promisify4(fs43.realpath);
    var BANG = "!";
    var RECURSIVE_ERROR_CODE = "READDIRP_RECURSIVE_ERROR";
    var NORMAL_FLOW_ERRORS = /* @__PURE__ */ new Set(["ENOENT", "EPERM", "EACCES", "ELOOP", RECURSIVE_ERROR_CODE]);
    var FILE_TYPE = "files";
    var DIR_TYPE = "directories";
    var FILE_DIR_TYPE = "files_directories";
    var EVERYTHING_TYPE = "all";
    var ALL_TYPES = [FILE_TYPE, DIR_TYPE, FILE_DIR_TYPE, EVERYTHING_TYPE];
    var isNormalFlowError = /* @__PURE__ */ __name((error5) => NORMAL_FLOW_ERRORS.has(error5.code), "isNormalFlowError");
    var [maj, min] = process.versions.node.split(".").slice(0, 2).map((n3) => Number.parseInt(n3, 10));
    var wantBigintFsStats = process.platform === "win32" && (maj > 10 || maj === 10 && min >= 5);
    var normalizeFilter = /* @__PURE__ */ __name((filter4) => {
      if (filter4 === void 0) return;
      if (typeof filter4 === "function") return filter4;
      if (typeof filter4 === "string") {
        const glob2 = picomatch(filter4.trim());
        return (entry) => glob2(entry.basename);
      }
      if (Array.isArray(filter4)) {
        const positive = [];
        const negative = [];
        for (const item of filter4) {
          const trimmed = item.trim();
          if (trimmed.charAt(0) === BANG) {
            negative.push(picomatch(trimmed.slice(1)));
          } else {
            positive.push(picomatch(trimmed));
          }
        }
        if (negative.length > 0) {
          if (positive.length > 0) {
            return (entry) => positive.some((f3) => f3(entry.basename)) && !negative.some((f3) => f3(entry.basename));
          }
          return (entry) => !negative.some((f3) => f3(entry.basename));
        }
        return (entry) => positive.some((f3) => f3(entry.basename));
      }
    }, "normalizeFilter");
    var ReaddirpStream = class _ReaddirpStream extends Readable {
      static {
        __name(this, "ReaddirpStream");
      }
      static get defaultOptions() {
        return {
          root: ".",
          /* eslint-disable no-unused-vars */
          fileFilter: /* @__PURE__ */ __name((path38) => true, "fileFilter"),
          directoryFilter: /* @__PURE__ */ __name((path38) => true, "directoryFilter"),
          /* eslint-enable no-unused-vars */
          type: FILE_TYPE,
          lstat: false,
          depth: 2147483648,
          alwaysStat: false
        };
      }
      constructor(options = {}) {
        super({
          objectMode: true,
          autoDestroy: true,
          highWaterMark: options.highWaterMark || 4096
        });
        const opts = { ..._ReaddirpStream.defaultOptions, ...options };
        const { root, type } = opts;
        this._fileFilter = normalizeFilter(opts.fileFilter);
        this._directoryFilter = normalizeFilter(opts.directoryFilter);
        const statMethod = opts.lstat ? lstat2 : stat5;
        if (wantBigintFsStats) {
          this._stat = (path38) => statMethod(path38, { bigint: true });
        } else {
          this._stat = statMethod;
        }
        this._maxDepth = opts.depth;
        this._wantsDir = [DIR_TYPE, FILE_DIR_TYPE, EVERYTHING_TYPE].includes(type);
        this._wantsFile = [FILE_TYPE, FILE_DIR_TYPE, EVERYTHING_TYPE].includes(type);
        this._wantsEverything = type === EVERYTHING_TYPE;
        this._root = sysPath.resolve(root);
        this._isDirent = "Dirent" in fs43 && !opts.alwaysStat;
        this._statsProp = this._isDirent ? "dirent" : "stats";
        this._rdOptions = { encoding: "utf8", withFileTypes: this._isDirent };
        this.parents = [this._exploreDir(root, 1)];
        this.reading = false;
        this.parent = void 0;
      }
      async _read(batch) {
        if (this.reading) return;
        this.reading = true;
        try {
          while (!this.destroyed && batch > 0) {
            const { path: path38, depth, files = [] } = this.parent || {};
            if (files.length > 0) {
              const slice = files.splice(0, batch).map((dirent) => this._formatEntry(dirent, path38));
              for (const entry of await Promise.all(slice)) {
                if (this.destroyed) return;
                const entryType = await this._getEntryType(entry);
                if (entryType === "directory" && this._directoryFilter(entry)) {
                  if (depth <= this._maxDepth) {
                    this.parents.push(this._exploreDir(entry.fullPath, depth + 1));
                  }
                  if (this._wantsDir) {
                    this.push(entry);
                    batch--;
                  }
                } else if ((entryType === "file" || this._includeAsFile(entry)) && this._fileFilter(entry)) {
                  if (this._wantsFile) {
                    this.push(entry);
                    batch--;
                  }
                }
              }
            } else {
              const parent = this.parents.pop();
              if (!parent) {
                this.push(null);
                break;
              }
              this.parent = await parent;
              if (this.destroyed) return;
            }
          }
        } catch (error5) {
          this.destroy(error5);
        } finally {
          this.reading = false;
        }
      }
      async _exploreDir(path38, depth) {
        let files;
        try {
          files = await readdir3(path38, this._rdOptions);
        } catch (error5) {
          this._onError(error5);
        }
        return { files, depth, path: path38 };
      }
      async _formatEntry(dirent, path38) {
        let entry;
        try {
          const basename3 = this._isDirent ? dirent.name : dirent;
          const fullPath = sysPath.resolve(sysPath.join(path38, basename3));
          entry = { path: sysPath.relative(this._root, fullPath), fullPath, basename: basename3 };
          entry[this._statsProp] = this._isDirent ? dirent : await this._stat(fullPath);
        } catch (err) {
          this._onError(err);
        }
        return entry;
      }
      _onError(err) {
        if (isNormalFlowError(err) && !this.destroyed) {
          this.emit("warn", err);
        } else {
          this.destroy(err);
        }
      }
      async _getEntryType(entry) {
        const stats = entry && entry[this._statsProp];
        if (!stats) {
          return;
        }
        if (stats.isFile()) {
          return "file";
        }
        if (stats.isDirectory()) {
          return "directory";
        }
        if (stats && stats.isSymbolicLink()) {
          const full = entry.fullPath;
          try {
            const entryRealPath = await realpath2(full);
            const entryRealPathStats = await lstat2(entryRealPath);
            if (entryRealPathStats.isFile()) {
              return "file";
            }
            if (entryRealPathStats.isDirectory()) {
              const len = entryRealPath.length;
              if (full.startsWith(entryRealPath) && full.substr(len, 1) === sysPath.sep) {
                const recursiveError = new Error(
                  `Circular symlink detected: "${full}" points to "${entryRealPath}"`
                );
                recursiveError.code = RECURSIVE_ERROR_CODE;
                return this._onError(recursiveError);
              }
              return "directory";
            }
          } catch (error5) {
            this._onError(error5);
          }
        }
      }
      _includeAsFile(entry) {
        const stats = entry && entry[this._statsProp];
        return stats && this._wantsEverything && !stats.isDirectory();
      }
    };
    var readdirp = /* @__PURE__ */ __name((root, options = {}) => {
      let type = options.entryType || options.type;
      if (type === "both") type = FILE_DIR_TYPE;
      if (type) options.type = type;
      if (!root) {
        throw new Error("readdirp: root argument is required. Usage: readdirp(root, options)");
      } else if (typeof root !== "string") {
        throw new TypeError("readdirp: root argument must be a string. Usage: readdirp(root, options)");
      } else if (type && !ALL_TYPES.includes(type)) {
        throw new Error(`readdirp: Invalid type passed. Use one of ${ALL_TYPES.join(", ")}`);
      }
      options.root = root;
      return new ReaddirpStream(options);
    }, "readdirp");
    var readdirpPromise = /* @__PURE__ */ __name((root, options = {}) => {
      return new Promise((resolve13, reject) => {
        const files = [];
        readdirp(root, options).on("data", (entry) => files.push(entry)).on("end", () => resolve13(files)).on("error", (error5) => reject(error5));
      });
    }, "readdirpPromise");
    readdirp.promise = readdirpPromise;
    readdirp.ReaddirpStream = ReaddirpStream;
    readdirp.default = readdirp;
    module2.exports = readdirp;
  }
});

// ../../node_modules/anymatch/index.js
var require_anymatch = __commonJS({
  "../../node_modules/anymatch/index.js"(exports2, module2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    var picomatch = require_picomatch2();
    var normalizePath = require_normalize_path();
    var BANG = "!";
    var DEFAULT_OPTIONS = { returnIndex: false };
    var arrify = /* @__PURE__ */ __name((item) => Array.isArray(item) ? item : [item], "arrify");
    var createPattern = /* @__PURE__ */ __name((matcher, options) => {
      if (typeof matcher === "function") {
        return matcher;
      }
      if (typeof matcher === "string") {
        const glob2 = picomatch(matcher, options);
        return (string) => matcher === string || glob2(string);
      }
      if (matcher instanceof RegExp) {
        return (string) => matcher.test(string);
      }
      return (string) => false;
    }, "createPattern");
    var matchPatterns = /* @__PURE__ */ __name((patterns, negPatterns, args, returnIndex) => {
      const isList = Array.isArray(args);
      const _path = isList ? args[0] : args;
      if (!isList && typeof _path !== "string") {
        throw new TypeError("anymatch: second argument must be a string: got " + Object.prototype.toString.call(_path));
      }
      const path38 = normalizePath(_path, false);
      for (let index = 0; index < negPatterns.length; index++) {
        const nglob = negPatterns[index];
        if (nglob(path38)) {
          return returnIndex ? -1 : false;
        }
      }
      const applied = isList && [path38].concat(args.slice(1));
      for (let index = 0; index < patterns.length; index++) {
        const pattern = patterns[index];
        if (isList ? pattern(...applied) : pattern(path38)) {
          return returnIndex ? index : true;
        }
      }
      return returnIndex ? -1 : false;
    }, "matchPatterns");
    var anymatch = /* @__PURE__ */ __name((matchers, testString, options = DEFAULT_OPTIONS) => {
      if (matchers == null) {
        throw new TypeError("anymatch: specify first argument");
      }
      const opts = typeof options === "boolean" ? { returnIndex: options } : options;
      const returnIndex = opts.returnIndex || false;
      const mtchers = arrify(matchers);
      const negatedGlobs = mtchers.filter((item) => typeof item === "string" && item.charAt(0) === BANG).map((item) => item.slice(1)).map((item) => picomatch(item, opts));
      const patterns = mtchers.filter((item) => typeof item !== "string" || typeof item === "string" && item.charAt(0) !== BANG).map((matcher) => createPattern(matcher, opts));
      if (testString == null) {
        return (testString2, ri = false) => {
          const returnIndex2 = typeof ri === "boolean" ? ri : false;
          return matchPatterns(patterns, negatedGlobs, testString2, returnIndex2);
        };
      }
      return matchPatterns(patterns, negatedGlobs, testString, returnIndex);
    }, "anymatch");
    anymatch.default = anymatch;
    module2.exports = anymatch;
  }
});

// ../../node_modules/is-extglob/index.js
var require_is_extglob = __commonJS({
  "../../node_modules/is-extglob/index.js"(exports2, module2) {
    module2.exports = /* @__PURE__ */ __name(function isExtglob(str) {
      if (typeof str !== "string" || str === "") {
        return false;
      }
      var match4;
      while (match4 = /(\\).|([@?!+*]\(.*\))/g.exec(str)) {
        if (match4[2]) return true;
        str = str.slice(match4.index + match4[0].length);
      }
      return false;
    }, "isExtglob");
  }
});

// ../../node_modules/is-glob/index.js
var require_is_glob = __commonJS({
  "../../node_modules/is-glob/index.js"(exports2, module2) {
    var isExtglob = require_is_extglob();
    var chars = { "{": "}", "(": ")", "[": "]" };
    var strictCheck = /* @__PURE__ */ __name(function(str) {
      if (str[0] === "!") {
        return true;
      }
      var index = 0;
      var pipeIndex = -2;
      var closeSquareIndex = -2;
      var closeCurlyIndex = -2;
      var closeParenIndex = -2;
      var backSlashIndex = -2;
      while (index < str.length) {
        if (str[index] === "*") {
          return true;
        }
        if (str[index + 1] === "?" && /[\].+)]/.test(str[index])) {
          return true;
        }
        if (closeSquareIndex !== -1 && str[index] === "[" && str[index + 1] !== "]") {
          if (closeSquareIndex < index) {
            closeSquareIndex = str.indexOf("]", index);
          }
          if (closeSquareIndex > index) {
            if (backSlashIndex === -1 || backSlashIndex > closeSquareIndex) {
              return true;
            }
            backSlashIndex = str.indexOf("\\", index);
            if (backSlashIndex === -1 || backSlashIndex > closeSquareIndex) {
              return true;
            }
          }
        }
        if (closeCurlyIndex !== -1 && str[index] === "{" && str[index + 1] !== "}") {
          closeCurlyIndex = str.indexOf("}", index);
          if (closeCurlyIndex > index) {
            backSlashIndex = str.indexOf("\\", index);
            if (backSlashIndex === -1 || backSlashIndex > closeCurlyIndex) {
              return true;
            }
          }
        }
        if (closeParenIndex !== -1 && str[index] === "(" && str[index + 1] === "?" && /[:!=]/.test(str[index + 2]) && str[index + 3] !== ")") {
          closeParenIndex = str.indexOf(")", index);
          if (closeParenIndex > index) {
            backSlashIndex = str.indexOf("\\", index);
            if (backSlashIndex === -1 || backSlashIndex > closeParenIndex) {
              return true;
            }
          }
        }
        if (pipeIndex !== -1 && str[index] === "(" && str[index + 1] !== "|") {
          if (pipeIndex < index) {
            pipeIndex = str.indexOf("|", index);
          }
          if (pipeIndex !== -1 && str[pipeIndex + 1] !== ")") {
            closeParenIndex = str.indexOf(")", pipeIndex);
            if (closeParenIndex > pipeIndex) {
              backSlashIndex = str.indexOf("\\", pipeIndex);
              if (backSlashIndex === -1 || backSlashIndex > closeParenIndex) {
                return true;
              }
            }
          }
        }
        if (str[index] === "\\") {
          var open = str[index + 1];
          index += 2;
          var close = chars[open];
          if (close) {
            var n3 = str.indexOf(close, index);
            if (n3 !== -1) {
              index = n3 + 1;
            }
          }
          if (str[index] === "!") {
            return true;
          }
        } else {
          index++;
        }
      }
      return false;
    }, "strictCheck");
    var relaxedCheck = /* @__PURE__ */ __name(function(str) {
      if (str[0] === "!") {
        return true;
      }
      var index = 0;
      while (index < str.length) {
        if (/[*?{}()[\]]/.test(str[index])) {
          return true;
        }
        if (str[index] === "\\") {
          var open = str[index + 1];
          index += 2;
          var close = chars[open];
          if (close) {
            var n3 = str.indexOf(close, index);
            if (n3 !== -1) {
              index = n3 + 1;
            }
          }
          if (str[index] === "!") {
            return true;
          }
        } else {
          index++;
        }
      }
      return false;
    }, "relaxedCheck");
    module2.exports = /* @__PURE__ */ __name(function isGlob(str, options) {
      if (typeof str !== "string" || str === "") {
        return false;
      }
      if (isExtglob(str)) {
        return true;
      }
      var check = strictCheck;
      if (options && options.strict === false) {
        check = relaxedCheck;
      }
      return check(str);
    }, "isGlob");
  }
});

// ../../node_modules/glob-parent/index.js
var require_glob_parent = __commonJS({
  "../../node_modules/glob-parent/index.js"(exports2, module2) {
    "use strict";
    var isGlob = require_is_glob();
    var pathPosixDirname = require("path").posix.dirname;
    var isWin32 = require("os").platform() === "win32";
    var slash = "/";
    var backslash = /\\/g;
    var enclosure = /[\{\[].*[\}\]]$/;
    var globby = /(^|[^\\])([\{\[]|\([^\)]+$)/;
    var escaped = /\\([\!\*\?\|\[\]\(\)\{\}])/g;
    module2.exports = /* @__PURE__ */ __name(function globParent(str, opts) {
      var options = Object.assign({ flipBackslashes: true }, opts);
      if (options.flipBackslashes && isWin32 && str.indexOf(slash) < 0) {
        str = str.replace(backslash, slash);
      }
      if (enclosure.test(str)) {
        str += slash;
      }
      str += "a";
      do {
        str = pathPosixDirname(str);
      } while (isGlob(str) || globby.test(str));
      return str.replace(escaped, "$1");
    }, "globParent");
  }
});

// ../../node_modules/braces/lib/utils.js
var require_utils8 = __commonJS({
  "../../node_modules/braces/lib/utils.js"(exports2) {
    "use strict";
    exports2.isInteger = (num) => {
      if (typeof num === "number") {
        return Number.isInteger(num);
      }
      if (typeof num === "string" && num.trim() !== "") {
        return Number.isInteger(Number(num));
      }
      return false;
    };
    exports2.find = (node, type) => node.nodes.find((node2) => node2.type === type);
    exports2.exceedsLimit = (min, max, step = 1, limit) => {
      if (limit === false) return false;
      if (!exports2.isInteger(min) || !exports2.isInteger(max)) return false;
      return (Number(max) - Number(min)) / Number(step) >= limit;
    };
    exports2.escapeNode = (block, n3 = 0, type) => {
      const node = block.nodes[n3];
      if (!node) return;
      if (type && node.type === type || node.type === "open" || node.type === "close") {
        if (node.escaped !== true) {
          node.value = "\\" + node.value;
          node.escaped = true;
        }
      }
    };
    exports2.encloseBrace = (node) => {
      if (node.type !== "brace") return false;
      if (node.commas >> 0 + node.ranges >> 0 === 0) {
        node.invalid = true;
        return true;
      }
      return false;
    };
    exports2.isInvalidBrace = (block) => {
      if (block.type !== "brace") return false;
      if (block.invalid === true || block.dollar) return true;
      if (block.commas >> 0 + block.ranges >> 0 === 0) {
        block.invalid = true;
        return true;
      }
      if (block.open !== true || block.close !== true) {
        block.invalid = true;
        return true;
      }
      return false;
    };
    exports2.isOpenOrClose = (node) => {
      if (node.type === "open" || node.type === "close") {
        return true;
      }
      return node.open === true || node.close === true;
    };
    exports2.reduce = (nodes) => nodes.reduce((acc, node) => {
      if (node.type === "text") acc.push(node.value);
      if (node.type === "range") node.type = "text";
      return acc;
    }, []);
    exports2.flatten = (...args) => {
      const result2 = [];
      const flat = /* @__PURE__ */ __name((arr) => {
        for (let i3 = 0; i3 < arr.length; i3++) {
          const ele = arr[i3];
          if (Array.isArray(ele)) {
            flat(ele);
            continue;
          }
          if (ele !== void 0) {
            result2.push(ele);
          }
        }
        return result2;
      }, "flat");
      flat(args);
      return result2;
    };
  }
});

// ../../node_modules/braces/lib/stringify.js
var require_stringify = __commonJS({
  "../../node_modules/braces/lib/stringify.js"(exports2, module2) {
    "use strict";
    var utils = require_utils8();
    module2.exports = (ast, options = {}) => {
      const stringify3 = /* @__PURE__ */ __name((node, parent = {}) => {
        const invalidBlock = options.escapeInvalid && utils.isInvalidBrace(parent);
        const invalidNode = node.invalid === true && options.escapeInvalid === true;
        let output = "";
        if (node.value) {
          if ((invalidBlock || invalidNode) && utils.isOpenOrClose(node)) {
            return "\\" + node.value;
          }
          return node.value;
        }
        if (node.value) {
          return node.value;
        }
        if (node.nodes) {
          for (const child of node.nodes) {
            output += stringify3(child);
          }
        }
        return output;
      }, "stringify");
      return stringify3(ast);
    };
  }
});

// ../../node_modules/is-number/index.js
var require_is_number = __commonJS({
  "../../node_modules/is-number/index.js"(exports2, module2) {
    "use strict";
    module2.exports = function(num) {
      if (typeof num === "number") {
        return num - num === 0;
      }
      if (typeof num === "string" && num.trim() !== "") {
        return Number.isFinite ? Number.isFinite(+num) : isFinite(+num);
      }
      return false;
    };
  }
});

// ../../node_modules/to-regex-range/index.js
var require_to_regex_range = __commonJS({
  "../../node_modules/to-regex-range/index.js"(exports2, module2) {
    "use strict";
    var isNumber = require_is_number();
    var toRegexRange = /* @__PURE__ */ __name((min, max, options) => {
      if (isNumber(min) === false) {
        throw new TypeError("toRegexRange: expected the first argument to be a number");
      }
      if (max === void 0 || min === max) {
        return String(min);
      }
      if (isNumber(max) === false) {
        throw new TypeError("toRegexRange: expected the second argument to be a number.");
      }
      let opts = { relaxZeros: true, ...options };
      if (typeof opts.strictZeros === "boolean") {
        opts.relaxZeros = opts.strictZeros === false;
      }
      let relax = String(opts.relaxZeros);
      let shorthand = String(opts.shorthand);
      let capture = String(opts.capture);
      let wrap = String(opts.wrap);
      let cacheKey = min + ":" + max + "=" + relax + shorthand + capture + wrap;
      if (toRegexRange.cache.hasOwnProperty(cacheKey)) {
        return toRegexRange.cache[cacheKey].result;
      }
      let a3 = Math.min(min, max);
      let b3 = Math.max(min, max);
      if (Math.abs(a3 - b3) === 1) {
        let result2 = min + "|" + max;
        if (opts.capture) {
          return `(${result2})`;
        }
        if (opts.wrap === false) {
          return result2;
        }
        return `(?:${result2})`;
      }
      let isPadded2 = hasPadding(min) || hasPadding(max);
      let state2 = { min, max, a: a3, b: b3 };
      let positives = [];
      let negatives = [];
      if (isPadded2) {
        state2.isPadded = isPadded2;
        state2.maxLen = String(state2.max).length;
      }
      if (a3 < 0) {
        let newMin = b3 < 0 ? Math.abs(b3) : 1;
        negatives = splitToPatterns(newMin, Math.abs(a3), state2, opts);
        a3 = state2.a = 0;
      }
      if (b3 >= 0) {
        positives = splitToPatterns(a3, b3, state2, opts);
      }
      state2.negatives = negatives;
      state2.positives = positives;
      state2.result = collatePatterns(negatives, positives, opts);
      if (opts.capture === true) {
        state2.result = `(${state2.result})`;
      } else if (opts.wrap !== false && positives.length + negatives.length > 1) {
        state2.result = `(?:${state2.result})`;
      }
      toRegexRange.cache[cacheKey] = state2;
      return state2.result;
    }, "toRegexRange");
    function collatePatterns(neg, pos, options) {
      let onlyNegative = filterPatterns(neg, pos, "-", false, options) || [];
      let onlyPositive = filterPatterns(pos, neg, "", false, options) || [];
      let intersected = filterPatterns(neg, pos, "-?", true, options) || [];
      let subpatterns = onlyNegative.concat(intersected).concat(onlyPositive);
      return subpatterns.join("|");
    }
    __name(collatePatterns, "collatePatterns");
    function splitToRanges(min, max) {
      let nines = 1;
      let zeros = 1;
      let stop = countNines(min, nines);
      let stops = /* @__PURE__ */ new Set([max]);
      while (min <= stop && stop <= max) {
        stops.add(stop);
        nines += 1;
        stop = countNines(min, nines);
      }
      stop = countZeros(max + 1, zeros) - 1;
      while (min < stop && stop <= max) {
        stops.add(stop);
        zeros += 1;
        stop = countZeros(max + 1, zeros) - 1;
      }
      stops = [...stops];
      stops.sort(compare2);
      return stops;
    }
    __name(splitToRanges, "splitToRanges");
    function rangeToPattern(start, stop, options) {
      if (start === stop) {
        return { pattern: start, count: [], digits: 0 };
      }
      let zipped = zip2(start, stop);
      let digits = zipped.length;
      let pattern = "";
      let count = 0;
      for (let i3 = 0; i3 < digits; i3++) {
        let [startDigit, stopDigit] = zipped[i3];
        if (startDigit === stopDigit) {
          pattern += startDigit;
        } else if (startDigit !== "0" || stopDigit !== "9") {
          pattern += toCharacterClass(startDigit, stopDigit, options);
        } else {
          count++;
        }
      }
      if (count) {
        pattern += options.shorthand === true ? "\\d" : "[0-9]";
      }
      return { pattern, count: [count], digits };
    }
    __name(rangeToPattern, "rangeToPattern");
    function splitToPatterns(min, max, tok, options) {
      let ranges = splitToRanges(min, max);
      let tokens = [];
      let start = min;
      let prev;
      for (let i3 = 0; i3 < ranges.length; i3++) {
        let max2 = ranges[i3];
        let obj = rangeToPattern(String(start), String(max2), options);
        let zeros = "";
        if (!tok.isPadded && prev && prev.pattern === obj.pattern) {
          if (prev.count.length > 1) {
            prev.count.pop();
          }
          prev.count.push(obj.count[0]);
          prev.string = prev.pattern + toQuantifier(prev.count);
          start = max2 + 1;
          continue;
        }
        if (tok.isPadded) {
          zeros = padZeros(max2, tok, options);
        }
        obj.string = zeros + obj.pattern + toQuantifier(obj.count);
        tokens.push(obj);
        start = max2 + 1;
        prev = obj;
      }
      return tokens;
    }
    __name(splitToPatterns, "splitToPatterns");
    function filterPatterns(arr, comparison, prefix2, intersection2, options) {
      let result2 = [];
      for (let ele of arr) {
        let { string } = ele;
        if (!intersection2 && !contains2(comparison, "string", string)) {
          result2.push(prefix2 + string);
        }
        if (intersection2 && contains2(comparison, "string", string)) {
          result2.push(prefix2 + string);
        }
      }
      return result2;
    }
    __name(filterPatterns, "filterPatterns");
    function zip2(a3, b3) {
      let arr = [];
      for (let i3 = 0; i3 < a3.length; i3++) arr.push([a3[i3], b3[i3]]);
      return arr;
    }
    __name(zip2, "zip");
    function compare2(a3, b3) {
      return a3 > b3 ? 1 : b3 > a3 ? -1 : 0;
    }
    __name(compare2, "compare");
    function contains2(arr, key, val) {
      return arr.some((ele) => ele[key] === val);
    }
    __name(contains2, "contains");
    function countNines(min, len) {
      return Number(String(min).slice(0, -len) + "9".repeat(len));
    }
    __name(countNines, "countNines");
    function countZeros(integer, zeros) {
      return integer - integer % Math.pow(10, zeros);
    }
    __name(countZeros, "countZeros");
    function toQuantifier(digits) {
      let [start = 0, stop = ""] = digits;
      if (stop || start > 1) {
        return `{${start + (stop ? "," + stop : "")}}`;
      }
      return "";
    }
    __name(toQuantifier, "toQuantifier");
    function toCharacterClass(a3, b3, options) {
      return `[${a3}${b3 - a3 === 1 ? "" : "-"}${b3}]`;
    }
    __name(toCharacterClass, "toCharacterClass");
    function hasPadding(str) {
      return /^-?(0+)\d/.test(str);
    }
    __name(hasPadding, "hasPadding");
    function padZeros(value, tok, options) {
      if (!tok.isPadded) {
        return value;
      }
      let diff = Math.abs(tok.maxLen - String(value).length);
      let relax = options.relaxZeros !== false;
      switch (diff) {
        case 0:
          return "";
        case 1:
          return relax ? "0?" : "0";
        case 2:
          return relax ? "0{0,2}" : "00";
        default: {
          return relax ? `0{0,${diff}}` : `0{${diff}}`;
        }
      }
    }
    __name(padZeros, "padZeros");
    toRegexRange.cache = {};
    toRegexRange.clearCache = () => toRegexRange.cache = {};
    module2.exports = toRegexRange;
  }
});

// ../../node_modules/fill-range/index.js
var require_fill_range = __commonJS({
  "../../node_modules/fill-range/index.js"(exports2, module2) {
    "use strict";
    var util11 = require("util");
    var toRegexRange = require_to_regex_range();
    var isObject3 = /* @__PURE__ */ __name((val) => val !== null && typeof val === "object" && !Array.isArray(val), "isObject");
    var transform = /* @__PURE__ */ __name((toNumber2) => {
      return (value) => toNumber2 === true ? Number(value) : String(value);
    }, "transform");
    var isValidValue = /* @__PURE__ */ __name((value) => {
      return typeof value === "number" || typeof value === "string" && value !== "";
    }, "isValidValue");
    var isNumber = /* @__PURE__ */ __name((num) => Number.isInteger(+num), "isNumber");
    var zeros = /* @__PURE__ */ __name((input) => {
      let value = `${input}`;
      let index = -1;
      if (value[0] === "-") value = value.slice(1);
      if (value === "0") return false;
      while (value[++index] === "0") ;
      return index > 0;
    }, "zeros");
    var stringify3 = /* @__PURE__ */ __name((start, end, options) => {
      if (typeof start === "string" || typeof end === "string") {
        return true;
      }
      return options.stringify === true;
    }, "stringify");
    var pad = /* @__PURE__ */ __name((input, maxLength, toNumber2) => {
      if (maxLength > 0) {
        let dash = input[0] === "-" ? "-" : "";
        if (dash) input = input.slice(1);
        input = dash + input.padStart(dash ? maxLength - 1 : maxLength, "0");
      }
      if (toNumber2 === false) {
        return String(input);
      }
      return input;
    }, "pad");
    var toMaxLen = /* @__PURE__ */ __name((input, maxLength) => {
      let negative = input[0] === "-" ? "-" : "";
      if (negative) {
        input = input.slice(1);
        maxLength--;
      }
      while (input.length < maxLength) input = "0" + input;
      return negative ? "-" + input : input;
    }, "toMaxLen");
    var toSequence = /* @__PURE__ */ __name((parts, options, maxLen) => {
      parts.negatives.sort((a3, b3) => a3 < b3 ? -1 : a3 > b3 ? 1 : 0);
      parts.positives.sort((a3, b3) => a3 < b3 ? -1 : a3 > b3 ? 1 : 0);
      let prefix2 = options.capture ? "" : "?:";
      let positives = "";
      let negatives = "";
      let result2;
      if (parts.positives.length) {
        positives = parts.positives.map((v6) => toMaxLen(String(v6), maxLen)).join("|");
      }
      if (parts.negatives.length) {
        negatives = `-(${prefix2}${parts.negatives.map((v6) => toMaxLen(String(v6), maxLen)).join("|")})`;
      }
      if (positives && negatives) {
        result2 = `${positives}|${negatives}`;
      } else {
        result2 = positives || negatives;
      }
      if (options.wrap) {
        return `(${prefix2}${result2})`;
      }
      return result2;
    }, "toSequence");
    var toRange = /* @__PURE__ */ __name((a3, b3, isNumbers, options) => {
      if (isNumbers) {
        return toRegexRange(a3, b3, { wrap: false, ...options });
      }
      let start = String.fromCharCode(a3);
      if (a3 === b3) return start;
      let stop = String.fromCharCode(b3);
      return `[${start}-${stop}]`;
    }, "toRange");
    var toRegex = /* @__PURE__ */ __name((start, end, options) => {
      if (Array.isArray(start)) {
        let wrap = options.wrap === true;
        let prefix2 = options.capture ? "" : "?:";
        return wrap ? `(${prefix2}${start.join("|")})` : start.join("|");
      }
      return toRegexRange(start, end, options);
    }, "toRegex");
    var rangeError = /* @__PURE__ */ __name((...args) => {
      return new RangeError("Invalid range arguments: " + util11.inspect(...args));
    }, "rangeError");
    var invalidRange = /* @__PURE__ */ __name((start, end, options) => {
      if (options.strictRanges === true) throw rangeError([start, end]);
      return [];
    }, "invalidRange");
    var invalidStep = /* @__PURE__ */ __name((step, options) => {
      if (options.strictRanges === true) {
        throw new TypeError(`Expected step "${step}" to be a number`);
      }
      return [];
    }, "invalidStep");
    var fillNumbers = /* @__PURE__ */ __name((start, end, step = 1, options = {}) => {
      let a3 = Number(start);
      let b3 = Number(end);
      if (!Number.isInteger(a3) || !Number.isInteger(b3)) {
        if (options.strictRanges === true) throw rangeError([start, end]);
        return [];
      }
      if (a3 === 0) a3 = 0;
      if (b3 === 0) b3 = 0;
      let descending2 = a3 > b3;
      let startString = String(start);
      let endString = String(end);
      let stepString = String(step);
      step = Math.max(Math.abs(step), 1);
      let padded = zeros(startString) || zeros(endString) || zeros(stepString);
      let maxLen = padded ? Math.max(startString.length, endString.length, stepString.length) : 0;
      let toNumber2 = padded === false && stringify3(start, end, options) === false;
      let format26 = options.transform || transform(toNumber2);
      if (options.toRegex && step === 1) {
        return toRange(toMaxLen(start, maxLen), toMaxLen(end, maxLen), true, options);
      }
      let parts = { negatives: [], positives: [] };
      let push = /* @__PURE__ */ __name((num) => parts[num < 0 ? "negatives" : "positives"].push(Math.abs(num)), "push");
      let range2 = [];
      let index = 0;
      while (descending2 ? a3 >= b3 : a3 <= b3) {
        if (options.toRegex === true && step > 1) {
          push(a3);
        } else {
          range2.push(pad(format26(a3, index), maxLen, toNumber2));
        }
        a3 = descending2 ? a3 - step : a3 + step;
        index++;
      }
      if (options.toRegex === true) {
        return step > 1 ? toSequence(parts, options, maxLen) : toRegex(range2, null, { wrap: false, ...options });
      }
      return range2;
    }, "fillNumbers");
    var fillLetters = /* @__PURE__ */ __name((start, end, step = 1, options = {}) => {
      if (!isNumber(start) && start.length > 1 || !isNumber(end) && end.length > 1) {
        return invalidRange(start, end, options);
      }
      let format26 = options.transform || ((val) => String.fromCharCode(val));
      let a3 = `${start}`.charCodeAt(0);
      let b3 = `${end}`.charCodeAt(0);
      let descending2 = a3 > b3;
      let min = Math.min(a3, b3);
      let max = Math.max(a3, b3);
      if (options.toRegex && step === 1) {
        return toRange(min, max, false, options);
      }
      let range2 = [];
      let index = 0;
      while (descending2 ? a3 >= b3 : a3 <= b3) {
        range2.push(format26(a3, index));
        a3 = descending2 ? a3 - step : a3 + step;
        index++;
      }
      if (options.toRegex === true) {
        return toRegex(range2, null, { wrap: false, options });
      }
      return range2;
    }, "fillLetters");
    var fill = /* @__PURE__ */ __name((start, end, step, options = {}) => {
      if (end == null && isValidValue(start)) {
        return [start];
      }
      if (!isValidValue(start) || !isValidValue(end)) {
        return invalidRange(start, end, options);
      }
      if (typeof step === "function") {
        return fill(start, end, 1, { transform: step });
      }
      if (isObject3(step)) {
        return fill(start, end, 0, step);
      }
      let opts = { ...options };
      if (opts.capture === true) opts.wrap = true;
      step = step || opts.step || 1;
      if (!isNumber(step)) {
        if (step != null && !isObject3(step)) return invalidStep(step, opts);
        return fill(start, end, 1, step);
      }
      if (isNumber(start) && isNumber(end)) {
        return fillNumbers(start, end, step, opts);
      }
      return fillLetters(start, end, Math.max(Math.abs(step), 1), opts);
    }, "fill");
    module2.exports = fill;
  }
});

// ../../node_modules/braces/lib/compile.js
var require_compile = __commonJS({
  "../../node_modules/braces/lib/compile.js"(exports2, module2) {
    "use strict";
    var fill = require_fill_range();
    var utils = require_utils8();
    var compile = /* @__PURE__ */ __name((ast, options = {}) => {
      const walk = /* @__PURE__ */ __name((node, parent = {}) => {
        const invalidBlock = utils.isInvalidBrace(parent);
        const invalidNode = node.invalid === true && options.escapeInvalid === true;
        const invalid = invalidBlock === true || invalidNode === true;
        const prefix2 = options.escapeInvalid === true ? "\\" : "";
        let output = "";
        if (node.isOpen === true) {
          return prefix2 + node.value;
        }
        if (node.isClose === true) {
          console.log("node.isClose", prefix2, node.value);
          return prefix2 + node.value;
        }
        if (node.type === "open") {
          return invalid ? prefix2 + node.value : "(";
        }
        if (node.type === "close") {
          return invalid ? prefix2 + node.value : ")";
        }
        if (node.type === "comma") {
          return node.prev.type === "comma" ? "" : invalid ? node.value : "|";
        }
        if (node.value) {
          return node.value;
        }
        if (node.nodes && node.ranges > 0) {
          const args = utils.reduce(node.nodes);
          const range2 = fill(...args, { ...options, wrap: false, toRegex: true, strictZeros: true });
          if (range2.length !== 0) {
            return args.length > 1 && range2.length > 1 ? `(${range2})` : range2;
          }
        }
        if (node.nodes) {
          for (const child of node.nodes) {
            output += walk(child, node);
          }
        }
        return output;
      }, "walk");
      return walk(ast);
    }, "compile");
    module2.exports = compile;
  }
});

// ../../node_modules/braces/lib/expand.js
var require_expand = __commonJS({
  "../../node_modules/braces/lib/expand.js"(exports2, module2) {
    "use strict";
    var fill = require_fill_range();
    var stringify3 = require_stringify();
    var utils = require_utils8();
    var append = /* @__PURE__ */ __name((queue = "", stash = "", enclose = false) => {
      const result2 = [];
      queue = [].concat(queue);
      stash = [].concat(stash);
      if (!stash.length) return queue;
      if (!queue.length) {
        return enclose ? utils.flatten(stash).map((ele) => `{${ele}}`) : stash;
      }
      for (const item of queue) {
        if (Array.isArray(item)) {
          for (const value of item) {
            result2.push(append(value, stash, enclose));
          }
        } else {
          for (let ele of stash) {
            if (enclose === true && typeof ele === "string") ele = `{${ele}}`;
            result2.push(Array.isArray(ele) ? append(item, ele, enclose) : item + ele);
          }
        }
      }
      return utils.flatten(result2);
    }, "append");
    var expand2 = /* @__PURE__ */ __name((ast, options = {}) => {
      const rangeLimit = options.rangeLimit === void 0 ? 1e3 : options.rangeLimit;
      const walk = /* @__PURE__ */ __name((node, parent = {}) => {
        node.queue = [];
        let p3 = parent;
        let q3 = parent.queue;
        while (p3.type !== "brace" && p3.type !== "root" && p3.parent) {
          p3 = p3.parent;
          q3 = p3.queue;
        }
        if (node.invalid || node.dollar) {
          q3.push(append(q3.pop(), stringify3(node, options)));
          return;
        }
        if (node.type === "brace" && node.invalid !== true && node.nodes.length === 2) {
          q3.push(append(q3.pop(), ["{}"]));
          return;
        }
        if (node.nodes && node.ranges > 0) {
          const args = utils.reduce(node.nodes);
          if (utils.exceedsLimit(...args, options.step, rangeLimit)) {
            throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");
          }
          let range2 = fill(...args, options);
          if (range2.length === 0) {
            range2 = stringify3(node, options);
          }
          q3.push(append(q3.pop(), range2));
          node.nodes = [];
          return;
        }
        const enclose = utils.encloseBrace(node);
        let queue = node.queue;
        let block = node;
        while (block.type !== "brace" && block.type !== "root" && block.parent) {
          block = block.parent;
          queue = block.queue;
        }
        for (let i3 = 0; i3 < node.nodes.length; i3++) {
          const child = node.nodes[i3];
          if (child.type === "comma" && node.type === "brace") {
            if (i3 === 1) queue.push("");
            queue.push("");
            continue;
          }
          if (child.type === "close") {
            q3.push(append(q3.pop(), queue, enclose));
            continue;
          }
          if (child.value && child.type !== "open") {
            queue.push(append(queue.pop(), child.value));
            continue;
          }
          if (child.nodes) {
            walk(child, node);
          }
        }
        return queue;
      }, "walk");
      return utils.flatten(walk(ast));
    }, "expand");
    module2.exports = expand2;
  }
});

// ../../node_modules/braces/lib/constants.js
var require_constants6 = __commonJS({
  "../../node_modules/braces/lib/constants.js"(exports2, module2) {
    "use strict";
    module2.exports = {
      MAX_LENGTH: 1e4,
      // Digits
      CHAR_0: "0",
      /* 0 */
      CHAR_9: "9",
      /* 9 */
      // Alphabet chars.
      CHAR_UPPERCASE_A: "A",
      /* A */
      CHAR_LOWERCASE_A: "a",
      /* a */
      CHAR_UPPERCASE_Z: "Z",
      /* Z */
      CHAR_LOWERCASE_Z: "z",
      /* z */
      CHAR_LEFT_PARENTHESES: "(",
      /* ( */
      CHAR_RIGHT_PARENTHESES: ")",
      /* ) */
      CHAR_ASTERISK: "*",
      /* * */
      // Non-alphabetic chars.
      CHAR_AMPERSAND: "&",
      /* & */
      CHAR_AT: "@",
      /* @ */
      CHAR_BACKSLASH: "\\",
      /* \ */
      CHAR_BACKTICK: "`",
      /* ` */
      CHAR_CARRIAGE_RETURN: "\r",
      /* \r */
      CHAR_CIRCUMFLEX_ACCENT: "^",
      /* ^ */
      CHAR_COLON: ":",
      /* : */
      CHAR_COMMA: ",",
      /* , */
      CHAR_DOLLAR: "$",
      /* . */
      CHAR_DOT: ".",
      /* . */
      CHAR_DOUBLE_QUOTE: '"',
      /* " */
      CHAR_EQUAL: "=",
      /* = */
      CHAR_EXCLAMATION_MARK: "!",
      /* ! */
      CHAR_FORM_FEED: "\f",
      /* \f */
      CHAR_FORWARD_SLASH: "/",
      /* / */
      CHAR_HASH: "#",
      /* # */
      CHAR_HYPHEN_MINUS: "-",
      /* - */
      CHAR_LEFT_ANGLE_BRACKET: "<",
      /* < */
      CHAR_LEFT_CURLY_BRACE: "{",
      /* { */
      CHAR_LEFT_SQUARE_BRACKET: "[",
      /* [ */
      CHAR_LINE_FEED: "\n",
      /* \n */
      CHAR_NO_BREAK_SPACE: "\xA0",
      /* \u00A0 */
      CHAR_PERCENT: "%",
      /* % */
      CHAR_PLUS: "+",
      /* + */
      CHAR_QUESTION_MARK: "?",
      /* ? */
      CHAR_RIGHT_ANGLE_BRACKET: ">",
      /* > */
      CHAR_RIGHT_CURLY_BRACE: "}",
      /* } */
      CHAR_RIGHT_SQUARE_BRACKET: "]",
      /* ] */
      CHAR_SEMICOLON: ";",
      /* ; */
      CHAR_SINGLE_QUOTE: "'",
      /* ' */
      CHAR_SPACE: " ",
      /*   */
      CHAR_TAB: "	",
      /* \t */
      CHAR_UNDERSCORE: "_",
      /* _ */
      CHAR_VERTICAL_LINE: "|",
      /* | */
      CHAR_ZERO_WIDTH_NOBREAK_SPACE: "\uFEFF"
      /* \uFEFF */
    };
  }
});

// ../../node_modules/braces/lib/parse.js
var require_parse5 = __commonJS({
  "../../node_modules/braces/lib/parse.js"(exports2, module2) {
    "use strict";
    var stringify3 = require_stringify();
    var {
      MAX_LENGTH,
      CHAR_BACKSLASH,
      /* \ */
      CHAR_BACKTICK,
      /* ` */
      CHAR_COMMA,
      /* , */
      CHAR_DOT,
      /* . */
      CHAR_LEFT_PARENTHESES,
      /* ( */
      CHAR_RIGHT_PARENTHESES,
      /* ) */
      CHAR_LEFT_CURLY_BRACE,
      /* { */
      CHAR_RIGHT_CURLY_BRACE,
      /* } */
      CHAR_LEFT_SQUARE_BRACKET,
      /* [ */
      CHAR_RIGHT_SQUARE_BRACKET,
      /* ] */
      CHAR_DOUBLE_QUOTE,
      /* " */
      CHAR_SINGLE_QUOTE,
      /* ' */
      CHAR_NO_BREAK_SPACE,
      CHAR_ZERO_WIDTH_NOBREAK_SPACE
    } = require_constants6();
    var parse3 = /* @__PURE__ */ __name((input, options = {}) => {
      if (typeof input !== "string") {
        throw new TypeError("Expected a string");
      }
      const opts = options || {};
      const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
      if (input.length > max) {
        throw new SyntaxError(`Input length (${input.length}), exceeds max characters (${max})`);
      }
      const ast = { type: "root", input, nodes: [] };
      const stack = [ast];
      let block = ast;
      let prev = ast;
      let brackets = 0;
      const length = input.length;
      let index = 0;
      let depth = 0;
      let value;
      const advance = /* @__PURE__ */ __name(() => input[index++], "advance");
      const push = /* @__PURE__ */ __name((node) => {
        if (node.type === "text" && prev.type === "dot") {
          prev.type = "text";
        }
        if (prev && prev.type === "text" && node.type === "text") {
          prev.value += node.value;
          return;
        }
        block.nodes.push(node);
        node.parent = block;
        node.prev = prev;
        prev = node;
        return node;
      }, "push");
      push({ type: "bos" });
      while (index < length) {
        block = stack[stack.length - 1];
        value = advance();
        if (value === CHAR_ZERO_WIDTH_NOBREAK_SPACE || value === CHAR_NO_BREAK_SPACE) {
          continue;
        }
        if (value === CHAR_BACKSLASH) {
          push({ type: "text", value: (options.keepEscaping ? value : "") + advance() });
          continue;
        }
        if (value === CHAR_RIGHT_SQUARE_BRACKET) {
          push({ type: "text", value: "\\" + value });
          continue;
        }
        if (value === CHAR_LEFT_SQUARE_BRACKET) {
          brackets++;
          let next;
          while (index < length && (next = advance())) {
            value += next;
            if (next === CHAR_LEFT_SQUARE_BRACKET) {
              brackets++;
              continue;
            }
            if (next === CHAR_BACKSLASH) {
              value += advance();
              continue;
            }
            if (next === CHAR_RIGHT_SQUARE_BRACKET) {
              brackets--;
              if (brackets === 0) {
                break;
              }
            }
          }
          push({ type: "text", value });
          continue;
        }
        if (value === CHAR_LEFT_PARENTHESES) {
          block = push({ type: "paren", nodes: [] });
          stack.push(block);
          push({ type: "text", value });
          continue;
        }
        if (value === CHAR_RIGHT_PARENTHESES) {
          if (block.type !== "paren") {
            push({ type: "text", value });
            continue;
          }
          block = stack.pop();
          push({ type: "text", value });
          block = stack[stack.length - 1];
          continue;
        }
        if (value === CHAR_DOUBLE_QUOTE || value === CHAR_SINGLE_QUOTE || value === CHAR_BACKTICK) {
          const open = value;
          let next;
          if (options.keepQuotes !== true) {
            value = "";
          }
          while (index < length && (next = advance())) {
            if (next === CHAR_BACKSLASH) {
              value += next + advance();
              continue;
            }
            if (next === open) {
              if (options.keepQuotes === true) value += next;
              break;
            }
            value += next;
          }
          push({ type: "text", value });
          continue;
        }
        if (value === CHAR_LEFT_CURLY_BRACE) {
          depth++;
          const dollar = prev.value && prev.value.slice(-1) === "$" || block.dollar === true;
          const brace = {
            type: "brace",
            open: true,
            close: false,
            dollar,
            depth,
            commas: 0,
            ranges: 0,
            nodes: []
          };
          block = push(brace);
          stack.push(block);
          push({ type: "open", value });
          continue;
        }
        if (value === CHAR_RIGHT_CURLY_BRACE) {
          if (block.type !== "brace") {
            push({ type: "text", value });
            continue;
          }
          const type = "close";
          block = stack.pop();
          block.close = true;
          push({ type, value });
          depth--;
          block = stack[stack.length - 1];
          continue;
        }
        if (value === CHAR_COMMA && depth > 0) {
          if (block.ranges > 0) {
            block.ranges = 0;
            const open = block.nodes.shift();
            block.nodes = [open, { type: "text", value: stringify3(block) }];
          }
          push({ type: "comma", value });
          block.commas++;
          continue;
        }
        if (value === CHAR_DOT && depth > 0 && block.commas === 0) {
          const siblings = block.nodes;
          if (depth === 0 || siblings.length === 0) {
            push({ type: "text", value });
            continue;
          }
          if (prev.type === "dot") {
            block.range = [];
            prev.value += value;
            prev.type = "range";
            if (block.nodes.length !== 3 && block.nodes.length !== 5) {
              block.invalid = true;
              block.ranges = 0;
              prev.type = "text";
              continue;
            }
            block.ranges++;
            block.args = [];
            continue;
          }
          if (prev.type === "range") {
            siblings.pop();
            const before = siblings[siblings.length - 1];
            before.value += prev.value + value;
            prev = before;
            block.ranges--;
            continue;
          }
          push({ type: "dot", value });
          continue;
        }
        push({ type: "text", value });
      }
      do {
        block = stack.pop();
        if (block.type !== "root") {
          block.nodes.forEach((node) => {
            if (!node.nodes) {
              if (node.type === "open") node.isOpen = true;
              if (node.type === "close") node.isClose = true;
              if (!node.nodes) node.type = "text";
              node.invalid = true;
            }
          });
          const parent = stack[stack.length - 1];
          const index2 = parent.nodes.indexOf(block);
          parent.nodes.splice(index2, 1, ...block.nodes);
        }
      } while (stack.length > 0);
      push({ type: "eos" });
      return ast;
    }, "parse");
    module2.exports = parse3;
  }
});

// ../../node_modules/braces/index.js
var require_braces = __commonJS({
  "../../node_modules/braces/index.js"(exports2, module2) {
    "use strict";
    var stringify3 = require_stringify();
    var compile = require_compile();
    var expand2 = require_expand();
    var parse3 = require_parse5();
    var braces = /* @__PURE__ */ __name((input, options = {}) => {
      let output = [];
      if (Array.isArray(input)) {
        for (const pattern of input) {
          const result2 = braces.create(pattern, options);
          if (Array.isArray(result2)) {
            output.push(...result2);
          } else {
            output.push(result2);
          }
        }
      } else {
        output = [].concat(braces.create(input, options));
      }
      if (options && options.expand === true && options.nodupes === true) {
        output = [...new Set(output)];
      }
      return output;
    }, "braces");
    braces.parse = (input, options = {}) => parse3(input, options);
    braces.stringify = (input, options = {}) => {
      if (typeof input === "string") {
        return stringify3(braces.parse(input, options), options);
      }
      return stringify3(input, options);
    };
    braces.compile = (input, options = {}) => {
      if (typeof input === "string") {
        input = braces.parse(input, options);
      }
      return compile(input, options);
    };
    braces.expand = (input, options = {}) => {
      if (typeof input === "string") {
        input = braces.parse(input, options);
      }
      let result2 = expand2(input, options);
      if (options.noempty === true) {
        result2 = result2.filter(Boolean);
      }
      if (options.nodupes === true) {
        result2 = [...new Set(result2)];
      }
      return result2;
    };
    braces.create = (input, options = {}) => {
      if (input === "" || input.length < 3) {
        return [input];
      }
      return options.expand !== true ? braces.compile(input, options) : braces.expand(input, options);
    };
    module2.exports = braces;
  }
});

// ../../node_modules/binary-extensions/binary-extensions.json
var require_binary_extensions = __commonJS({
  "../../node_modules/binary-extensions/binary-extensions.json"(exports2, module2) {
    module2.exports = [
      "3dm",
      "3ds",
      "3g2",
      "3gp",
      "7z",
      "a",
      "aac",
      "adp",
      "afdesign",
      "afphoto",
      "afpub",
      "ai",
      "aif",
      "aiff",
      "alz",
      "ape",
      "apk",
      "appimage",
      "ar",
      "arj",
      "asf",
      "au",
      "avi",
      "bak",
      "baml",
      "bh",
      "bin",
      "bk",
      "bmp",
      "btif",
      "bz2",
      "bzip2",
      "cab",
      "caf",
      "cgm",
      "class",
      "cmx",
      "cpio",
      "cr2",
      "cur",
      "dat",
      "dcm",
      "deb",
      "dex",
      "djvu",
      "dll",
      "dmg",
      "dng",
      "doc",
      "docm",
      "docx",
      "dot",
      "dotm",
      "dra",
      "DS_Store",
      "dsk",
      "dts",
      "dtshd",
      "dvb",
      "dwg",
      "dxf",
      "ecelp4800",
      "ecelp7470",
      "ecelp9600",
      "egg",
      "eol",
      "eot",
      "epub",
      "exe",
      "f4v",
      "fbs",
      "fh",
      "fla",
      "flac",
      "flatpak",
      "fli",
      "flv",
      "fpx",
      "fst",
      "fvt",
      "g3",
      "gh",
      "gif",
      "graffle",
      "gz",
      "gzip",
      "h261",
      "h263",
      "h264",
      "icns",
      "ico",
      "ief",
      "img",
      "ipa",
      "iso",
      "jar",
      "jpeg",
      "jpg",
      "jpgv",
      "jpm",
      "jxr",
      "key",
      "ktx",
      "lha",
      "lib",
      "lvp",
      "lz",
      "lzh",
      "lzma",
      "lzo",
      "m3u",
      "m4a",
      "m4v",
      "mar",
      "mdi",
      "mht",
      "mid",
      "midi",
      "mj2",
      "mka",
      "mkv",
      "mmr",
      "mng",
      "mobi",
      "mov",
      "movie",
      "mp3",
      "mp4",
      "mp4a",
      "mpeg",
      "mpg",
      "mpga",
      "mxu",
      "nef",
      "npx",
      "numbers",
      "nupkg",
      "o",
      "odp",
      "ods",
      "odt",
      "oga",
      "ogg",
      "ogv",
      "otf",
      "ott",
      "pages",
      "pbm",
      "pcx",
      "pdb",
      "pdf",
      "pea",
      "pgm",
      "pic",
      "png",
      "pnm",
      "pot",
      "potm",
      "potx",
      "ppa",
      "ppam",
      "ppm",
      "pps",
      "ppsm",
      "ppsx",
      "ppt",
      "pptm",
      "pptx",
      "psd",
      "pya",
      "pyc",
      "pyo",
      "pyv",
      "qt",
      "rar",
      "ras",
      "raw",
      "resources",
      "rgb",
      "rip",
      "rlc",
      "rmf",
      "rmvb",
      "rpm",
      "rtf",
      "rz",
      "s3m",
      "s7z",
      "scpt",
      "sgi",
      "shar",
      "snap",
      "sil",
      "sketch",
      "slk",
      "smv",
      "snk",
      "so",
      "stl",
      "suo",
      "sub",
      "swf",
      "tar",
      "tbz",
      "tbz2",
      "tga",
      "tgz",
      "thmx",
      "tif",
      "tiff",
      "tlz",
      "ttc",
      "ttf",
      "txz",
      "udf",
      "uvh",
      "uvi",
      "uvm",
      "uvp",
      "uvs",
      "uvu",
      "viv",
      "vob",
      "war",
      "wav",
      "wax",
      "wbmp",
      "wdp",
      "weba",
      "webm",
      "webp",
      "whl",
      "wim",
      "wm",
      "wma",
      "wmv",
      "wmx",
      "woff",
      "woff2",
      "wrm",
      "wvx",
      "xbm",
      "xif",
      "xla",
      "xlam",
      "xls",
      "xlsb",
      "xlsm",
      "xlsx",
      "xlt",
      "xltm",
      "xltx",
      "xm",
      "xmind",
      "xpi",
      "xpm",
      "xwd",
      "xz",
      "z",
      "zip",
      "zipx"
    ];
  }
});

// ../../node_modules/binary-extensions/index.js
var require_binary_extensions2 = __commonJS({
  "../../node_modules/binary-extensions/index.js"(exports2, module2) {
    module2.exports = require_binary_extensions();
  }
});

// ../../node_modules/is-binary-path/index.js
var require_is_binary_path = __commonJS({
  "../../node_modules/is-binary-path/index.js"(exports2, module2) {
    "use strict";
    var path38 = require("path");
    var binaryExtensions = require_binary_extensions2();
    var extensions = new Set(binaryExtensions);
    module2.exports = (filePath) => extensions.has(path38.extname(filePath).slice(1).toLowerCase());
  }
});

// ../../node_modules/chokidar/lib/constants.js
var require_constants7 = __commonJS({
  "../../node_modules/chokidar/lib/constants.js"(exports2) {
    "use strict";
    var { sep: sep5 } = require("path");
    var { platform: platform3 } = process;
    var os13 = require("os");
    exports2.EV_ALL = "all";
    exports2.EV_READY = "ready";
    exports2.EV_ADD = "add";
    exports2.EV_CHANGE = "change";
    exports2.EV_ADD_DIR = "addDir";
    exports2.EV_UNLINK = "unlink";
    exports2.EV_UNLINK_DIR = "unlinkDir";
    exports2.EV_RAW = "raw";
    exports2.EV_ERROR = "error";
    exports2.STR_DATA = "data";
    exports2.STR_END = "end";
    exports2.STR_CLOSE = "close";
    exports2.FSEVENT_CREATED = "created";
    exports2.FSEVENT_MODIFIED = "modified";
    exports2.FSEVENT_DELETED = "deleted";
    exports2.FSEVENT_MOVED = "moved";
    exports2.FSEVENT_CLONED = "cloned";
    exports2.FSEVENT_UNKNOWN = "unknown";
    exports2.FSEVENT_FLAG_MUST_SCAN_SUBDIRS = 1;
    exports2.FSEVENT_TYPE_FILE = "file";
    exports2.FSEVENT_TYPE_DIRECTORY = "directory";
    exports2.FSEVENT_TYPE_SYMLINK = "symlink";
    exports2.KEY_LISTENERS = "listeners";
    exports2.KEY_ERR = "errHandlers";
    exports2.KEY_RAW = "rawEmitters";
    exports2.HANDLER_KEYS = [exports2.KEY_LISTENERS, exports2.KEY_ERR, exports2.KEY_RAW];
    exports2.DOT_SLASH = `.${sep5}`;
    exports2.BACK_SLASH_RE = /\\/g;
    exports2.DOUBLE_SLASH_RE = /\/\//;
    exports2.SLASH_OR_BACK_SLASH_RE = /[/\\]/;
    exports2.DOT_RE = /\..*\.(sw[px])$|~$|\.subl.*\.tmp/;
    exports2.REPLACER_RE = /^\.[/\\]/;
    exports2.SLASH = "/";
    exports2.SLASH_SLASH = "//";
    exports2.BRACE_START = "{";
    exports2.BANG = "!";
    exports2.ONE_DOT = ".";
    exports2.TWO_DOTS = "..";
    exports2.STAR = "*";
    exports2.GLOBSTAR = "**";
    exports2.ROOT_GLOBSTAR = "/**/*";
    exports2.SLASH_GLOBSTAR = "/**";
    exports2.DIR_SUFFIX = "Dir";
    exports2.ANYMATCH_OPTS = { dot: true };
    exports2.STRING_TYPE = "string";
    exports2.FUNCTION_TYPE = "function";
    exports2.EMPTY_STR = "";
    exports2.EMPTY_FN = () => {
    };
    exports2.IDENTITY_FN = (val) => val;
    exports2.isWindows = platform3 === "win32";
    exports2.isMacos = platform3 === "darwin";
    exports2.isLinux = platform3 === "linux";
    exports2.isIBMi = os13.type() === "OS400";
  }
});

// ../../node_modules/chokidar/lib/nodefs-handler.js
var require_nodefs_handler = __commonJS({
  "../../node_modules/chokidar/lib/nodefs-handler.js"(exports2, module2) {
    "use strict";
    var fs43 = require("fs");
    var sysPath = require("path");
    var { promisify: promisify4 } = require("util");
    var isBinaryPath = require_is_binary_path();
    var {
      isWindows,
      isLinux,
      EMPTY_FN,
      EMPTY_STR,
      KEY_LISTENERS,
      KEY_ERR,
      KEY_RAW,
      HANDLER_KEYS,
      EV_CHANGE,
      EV_ADD,
      EV_ADD_DIR,
      EV_ERROR,
      STR_DATA,
      STR_END,
      BRACE_START,
      STAR
    } = require_constants7();
    var THROTTLE_MODE_WATCH = "watch";
    var open = promisify4(fs43.open);
    var stat5 = promisify4(fs43.stat);
    var lstat2 = promisify4(fs43.lstat);
    var close = promisify4(fs43.close);
    var fsrealpath = promisify4(fs43.realpath);
    var statMethods = { lstat: lstat2, stat: stat5 };
    var foreach = /* @__PURE__ */ __name((val, fn) => {
      if (val instanceof Set) {
        val.forEach(fn);
      } else {
        fn(val);
      }
    }, "foreach");
    var addAndConvert = /* @__PURE__ */ __name((main, prop, item) => {
      let container = main[prop];
      if (!(container instanceof Set)) {
        main[prop] = container = /* @__PURE__ */ new Set([container]);
      }
      container.add(item);
    }, "addAndConvert");
    var clearItem = /* @__PURE__ */ __name((cont) => (key) => {
      const set = cont[key];
      if (set instanceof Set) {
        set.clear();
      } else {
        delete cont[key];
      }
    }, "clearItem");
    var delFromSet = /* @__PURE__ */ __name((main, prop, item) => {
      const container = main[prop];
      if (container instanceof Set) {
        container.delete(item);
      } else if (container === item) {
        delete main[prop];
      }
    }, "delFromSet");
    var isEmptySet = /* @__PURE__ */ __name((val) => val instanceof Set ? val.size === 0 : !val, "isEmptySet");
    var FsWatchInstances = /* @__PURE__ */ new Map();
    function createFsWatchInstance(path38, options, listener, errHandler, emitRaw) {
      const handleEvent = /* @__PURE__ */ __name((rawEvent, evPath) => {
        listener(path38);
        emitRaw(rawEvent, evPath, { watchedPath: path38 });
        if (evPath && path38 !== evPath) {
          fsWatchBroadcast(
            sysPath.resolve(path38, evPath),
            KEY_LISTENERS,
            sysPath.join(path38, evPath)
          );
        }
      }, "handleEvent");
      try {
        return fs43.watch(path38, options, handleEvent);
      } catch (error5) {
        errHandler(error5);
      }
    }
    __name(createFsWatchInstance, "createFsWatchInstance");
    var fsWatchBroadcast = /* @__PURE__ */ __name((fullPath, type, val1, val2, val3) => {
      const cont = FsWatchInstances.get(fullPath);
      if (!cont) return;
      foreach(cont[type], (listener) => {
        listener(val1, val2, val3);
      });
    }, "fsWatchBroadcast");
    var setFsWatchListener = /* @__PURE__ */ __name((path38, fullPath, options, handlers) => {
      const { listener, errHandler, rawEmitter } = handlers;
      let cont = FsWatchInstances.get(fullPath);
      let watcher;
      if (!options.persistent) {
        watcher = createFsWatchInstance(
          path38,
          options,
          listener,
          errHandler,
          rawEmitter
        );
        return watcher.close.bind(watcher);
      }
      if (cont) {
        addAndConvert(cont, KEY_LISTENERS, listener);
        addAndConvert(cont, KEY_ERR, errHandler);
        addAndConvert(cont, KEY_RAW, rawEmitter);
      } else {
        watcher = createFsWatchInstance(
          path38,
          options,
          fsWatchBroadcast.bind(null, fullPath, KEY_LISTENERS),
          errHandler,
          // no need to use broadcast here
          fsWatchBroadcast.bind(null, fullPath, KEY_RAW)
        );
        if (!watcher) return;
        watcher.on(EV_ERROR, async (error5) => {
          const broadcastErr = fsWatchBroadcast.bind(null, fullPath, KEY_ERR);
          cont.watcherUnusable = true;
          if (isWindows && error5.code === "EPERM") {
            try {
              const fd = await open(path38, "r");
              await close(fd);
              broadcastErr(error5);
            } catch (err) {
            }
          } else {
            broadcastErr(error5);
          }
        });
        cont = {
          listeners: listener,
          errHandlers: errHandler,
          rawEmitters: rawEmitter,
          watcher
        };
        FsWatchInstances.set(fullPath, cont);
      }
      return () => {
        delFromSet(cont, KEY_LISTENERS, listener);
        delFromSet(cont, KEY_ERR, errHandler);
        delFromSet(cont, KEY_RAW, rawEmitter);
        if (isEmptySet(cont.listeners)) {
          cont.watcher.close();
          FsWatchInstances.delete(fullPath);
          HANDLER_KEYS.forEach(clearItem(cont));
          cont.watcher = void 0;
          Object.freeze(cont);
        }
      };
    }, "setFsWatchListener");
    var FsWatchFileInstances = /* @__PURE__ */ new Map();
    var setFsWatchFileListener = /* @__PURE__ */ __name((path38, fullPath, options, handlers) => {
      const { listener, rawEmitter } = handlers;
      let cont = FsWatchFileInstances.get(fullPath);
      let listeners = /* @__PURE__ */ new Set();
      let rawEmitters = /* @__PURE__ */ new Set();
      const copts = cont && cont.options;
      if (copts && (copts.persistent < options.persistent || copts.interval > options.interval)) {
        listeners = cont.listeners;
        rawEmitters = cont.rawEmitters;
        fs43.unwatchFile(fullPath);
        cont = void 0;
      }
      if (cont) {
        addAndConvert(cont, KEY_LISTENERS, listener);
        addAndConvert(cont, KEY_RAW, rawEmitter);
      } else {
        cont = {
          listeners: listener,
          rawEmitters: rawEmitter,
          options,
          watcher: fs43.watchFile(fullPath, options, (curr, prev) => {
            foreach(cont.rawEmitters, (rawEmitter2) => {
              rawEmitter2(EV_CHANGE, fullPath, { curr, prev });
            });
            const currmtime = curr.mtimeMs;
            if (curr.size !== prev.size || currmtime > prev.mtimeMs || currmtime === 0) {
              foreach(cont.listeners, (listener2) => listener2(path38, curr));
            }
          })
        };
        FsWatchFileInstances.set(fullPath, cont);
      }
      return () => {
        delFromSet(cont, KEY_LISTENERS, listener);
        delFromSet(cont, KEY_RAW, rawEmitter);
        if (isEmptySet(cont.listeners)) {
          FsWatchFileInstances.delete(fullPath);
          fs43.unwatchFile(fullPath);
          cont.options = cont.watcher = void 0;
          Object.freeze(cont);
        }
      };
    }, "setFsWatchFileListener");
    var NodeFsHandler = class {
      static {
        __name(this, "NodeFsHandler");
      }
      /**
       * @param {import("../index").FSWatcher} fsW
       */
      constructor(fsW) {
        this.fsw = fsW;
        this._boundHandleError = (error5) => fsW._handleError(error5);
      }
      /**
       * Watch file for changes with fs_watchFile or fs_watch.
       * @param {String} path to file or dir
       * @param {Function} listener on fs change
       * @returns {Function} closer for the watcher instance
       */
      _watchWithNodeFs(path38, listener) {
        const opts = this.fsw.options;
        const directory = sysPath.dirname(path38);
        const basename3 = sysPath.basename(path38);
        const parent = this.fsw._getWatchedDir(directory);
        parent.add(basename3);
        const absolutePath = sysPath.resolve(path38);
        const options = { persistent: opts.persistent };
        if (!listener) listener = EMPTY_FN;
        let closer;
        if (opts.usePolling) {
          options.interval = opts.enableBinaryInterval && isBinaryPath(basename3) ? opts.binaryInterval : opts.interval;
          closer = setFsWatchFileListener(path38, absolutePath, options, {
            listener,
            rawEmitter: this.fsw._emitRaw
          });
        } else {
          closer = setFsWatchListener(path38, absolutePath, options, {
            listener,
            errHandler: this._boundHandleError,
            rawEmitter: this.fsw._emitRaw
          });
        }
        return closer;
      }
      /**
       * Watch a file and emit add event if warranted.
       * @param {Path} file Path
       * @param {fs.Stats} stats result of fs_stat
       * @param {Boolean} initialAdd was the file added at watch instantiation?
       * @returns {Function} closer for the watcher instance
       */
      _handleFile(file, stats, initialAdd) {
        if (this.fsw.closed) {
          return;
        }
        const dirname11 = sysPath.dirname(file);
        const basename3 = sysPath.basename(file);
        const parent = this.fsw._getWatchedDir(dirname11);
        let prevStats = stats;
        if (parent.has(basename3)) return;
        const listener = /* @__PURE__ */ __name(async (path38, newStats) => {
          if (!this.fsw._throttle(THROTTLE_MODE_WATCH, file, 5)) return;
          if (!newStats || newStats.mtimeMs === 0) {
            try {
              const newStats2 = await stat5(file);
              if (this.fsw.closed) return;
              const at = newStats2.atimeMs;
              const mt = newStats2.mtimeMs;
              if (!at || at <= mt || mt !== prevStats.mtimeMs) {
                this.fsw._emit(EV_CHANGE, file, newStats2);
              }
              if (isLinux && prevStats.ino !== newStats2.ino) {
                this.fsw._closeFile(path38);
                prevStats = newStats2;
                this.fsw._addPathCloser(path38, this._watchWithNodeFs(file, listener));
              } else {
                prevStats = newStats2;
              }
            } catch (error5) {
              this.fsw._remove(dirname11, basename3);
            }
          } else if (parent.has(basename3)) {
            const at = newStats.atimeMs;
            const mt = newStats.mtimeMs;
            if (!at || at <= mt || mt !== prevStats.mtimeMs) {
              this.fsw._emit(EV_CHANGE, file, newStats);
            }
            prevStats = newStats;
          }
        }, "listener");
        const closer = this._watchWithNodeFs(file, listener);
        if (!(initialAdd && this.fsw.options.ignoreInitial) && this.fsw._isntIgnored(file)) {
          if (!this.fsw._throttle(EV_ADD, file, 0)) return;
          this.fsw._emit(EV_ADD, file, stats);
        }
        return closer;
      }
      /**
       * Handle symlinks encountered while reading a dir.
       * @param {Object} entry returned by readdirp
       * @param {String} directory path of dir being read
       * @param {String} path of this item
       * @param {String} item basename of this item
       * @returns {Promise<Boolean>} true if no more processing is needed for this entry.
       */
      async _handleSymlink(entry, directory, path38, item) {
        if (this.fsw.closed) {
          return;
        }
        const full = entry.fullPath;
        const dir = this.fsw._getWatchedDir(directory);
        if (!this.fsw.options.followSymlinks) {
          this.fsw._incrReadyCount();
          let linkPath;
          try {
            linkPath = await fsrealpath(path38);
          } catch (e3) {
            this.fsw._emitReady();
            return true;
          }
          if (this.fsw.closed) return;
          if (dir.has(item)) {
            if (this.fsw._symlinkPaths.get(full) !== linkPath) {
              this.fsw._symlinkPaths.set(full, linkPath);
              this.fsw._emit(EV_CHANGE, path38, entry.stats);
            }
          } else {
            dir.add(item);
            this.fsw._symlinkPaths.set(full, linkPath);
            this.fsw._emit(EV_ADD, path38, entry.stats);
          }
          this.fsw._emitReady();
          return true;
        }
        if (this.fsw._symlinkPaths.has(full)) {
          return true;
        }
        this.fsw._symlinkPaths.set(full, true);
      }
      _handleRead(directory, initialAdd, wh, target, dir, depth, throttler) {
        directory = sysPath.join(directory, EMPTY_STR);
        if (!wh.hasGlob) {
          throttler = this.fsw._throttle("readdir", directory, 1e3);
          if (!throttler) return;
        }
        const previous = this.fsw._getWatchedDir(wh.path);
        const current = /* @__PURE__ */ new Set();
        let stream3 = this.fsw._readdirp(directory, {
          fileFilter: /* @__PURE__ */ __name((entry) => wh.filterPath(entry), "fileFilter"),
          directoryFilter: /* @__PURE__ */ __name((entry) => wh.filterDir(entry), "directoryFilter"),
          depth: 0
        }).on(STR_DATA, async (entry) => {
          if (this.fsw.closed) {
            stream3 = void 0;
            return;
          }
          const item = entry.path;
          let path38 = sysPath.join(directory, item);
          current.add(item);
          if (entry.stats.isSymbolicLink() && await this._handleSymlink(entry, directory, path38, item)) {
            return;
          }
          if (this.fsw.closed) {
            stream3 = void 0;
            return;
          }
          if (item === target || !target && !previous.has(item)) {
            this.fsw._incrReadyCount();
            path38 = sysPath.join(dir, sysPath.relative(dir, path38));
            this._addToNodeFs(path38, initialAdd, wh, depth + 1);
          }
        }).on(EV_ERROR, this._boundHandleError);
        return new Promise(
          (resolve13) => stream3.once(STR_END, () => {
            if (this.fsw.closed) {
              stream3 = void 0;
              return;
            }
            const wasThrottled = throttler ? throttler.clear() : false;
            resolve13();
            previous.getChildren().filter((item) => {
              return item !== directory && !current.has(item) && // in case of intersecting globs;
              // a path may have been filtered out of this readdir, but
              // shouldn't be removed because it matches a different glob
              (!wh.hasGlob || wh.filterPath({
                fullPath: sysPath.resolve(directory, item)
              }));
            }).forEach((item) => {
              this.fsw._remove(directory, item);
            });
            stream3 = void 0;
            if (wasThrottled) this._handleRead(directory, false, wh, target, dir, depth, throttler);
          })
        );
      }
      /**
       * Read directory to add / remove files from `@watched` list and re-read it on change.
       * @param {String} dir fs path
       * @param {fs.Stats} stats
       * @param {Boolean} initialAdd
       * @param {Number} depth relative to user-supplied path
       * @param {String} target child path targeted for watch
       * @param {Object} wh Common watch helpers for this path
       * @param {String} realpath
       * @returns {Promise<Function>} closer for the watcher instance.
       */
      async _handleDir(dir, stats, initialAdd, depth, target, wh, realpath2) {
        const parentDir = this.fsw._getWatchedDir(sysPath.dirname(dir));
        const tracked = parentDir.has(sysPath.basename(dir));
        if (!(initialAdd && this.fsw.options.ignoreInitial) && !target && !tracked) {
          if (!wh.hasGlob || wh.globFilter(dir)) this.fsw._emit(EV_ADD_DIR, dir, stats);
        }
        parentDir.add(sysPath.basename(dir));
        this.fsw._getWatchedDir(dir);
        let throttler;
        let closer;
        const oDepth = this.fsw.options.depth;
        if ((oDepth == null || depth <= oDepth) && !this.fsw._symlinkPaths.has(realpath2)) {
          if (!target) {
            await this._handleRead(dir, initialAdd, wh, target, dir, depth, throttler);
            if (this.fsw.closed) return;
          }
          closer = this._watchWithNodeFs(dir, (dirPath, stats2) => {
            if (stats2 && stats2.mtimeMs === 0) return;
            this._handleRead(dirPath, false, wh, target, dir, depth, throttler);
          });
        }
        return closer;
      }
      /**
       * Handle added file, directory, or glob pattern.
       * Delegates call to _handleFile / _handleDir after checks.
       * @param {String} path to file or ir
       * @param {Boolean} initialAdd was the file added at watch instantiation?
       * @param {Object} priorWh depth relative to user-supplied path
       * @param {Number} depth Child path actually targeted for watch
       * @param {String=} target Child path actually targeted for watch
       * @returns {Promise}
       */
      async _addToNodeFs(path38, initialAdd, priorWh, depth, target) {
        const ready = this.fsw._emitReady;
        if (this.fsw._isIgnored(path38) || this.fsw.closed) {
          ready();
          return false;
        }
        const wh = this.fsw._getWatchHelpers(path38, depth);
        if (!wh.hasGlob && priorWh) {
          wh.hasGlob = priorWh.hasGlob;
          wh.globFilter = priorWh.globFilter;
          wh.filterPath = (entry) => priorWh.filterPath(entry);
          wh.filterDir = (entry) => priorWh.filterDir(entry);
        }
        try {
          const stats = await statMethods[wh.statMethod](wh.watchPath);
          if (this.fsw.closed) return;
          if (this.fsw._isIgnored(wh.watchPath, stats)) {
            ready();
            return false;
          }
          const follow = this.fsw.options.followSymlinks && !path38.includes(STAR) && !path38.includes(BRACE_START);
          let closer;
          if (stats.isDirectory()) {
            const absPath = sysPath.resolve(path38);
            const targetPath = follow ? await fsrealpath(path38) : path38;
            if (this.fsw.closed) return;
            closer = await this._handleDir(wh.watchPath, stats, initialAdd, depth, target, wh, targetPath);
            if (this.fsw.closed) return;
            if (absPath !== targetPath && targetPath !== void 0) {
              this.fsw._symlinkPaths.set(absPath, targetPath);
            }
          } else if (stats.isSymbolicLink()) {
            const targetPath = follow ? await fsrealpath(path38) : path38;
            if (this.fsw.closed) return;
            const parent = sysPath.dirname(wh.watchPath);
            this.fsw._getWatchedDir(parent).add(wh.watchPath);
            this.fsw._emit(EV_ADD, wh.watchPath, stats);
            closer = await this._handleDir(parent, stats, initialAdd, depth, path38, wh, targetPath);
            if (this.fsw.closed) return;
            if (targetPath !== void 0) {
              this.fsw._symlinkPaths.set(sysPath.resolve(path38), targetPath);
            }
          } else {
            closer = this._handleFile(wh.watchPath, stats, initialAdd);
          }
          ready();
          this.fsw._addPathCloser(path38, closer);
          return false;
        } catch (error5) {
          if (this.fsw._handleError(error5)) {
            ready();
            return path38;
          }
        }
      }
    };
    module2.exports = NodeFsHandler;
  }
});

// ../../node_modules/chokidar/lib/fsevents-handler.js
var require_fsevents_handler = __commonJS({
  "../../node_modules/chokidar/lib/fsevents-handler.js"(exports2, module2) {
    "use strict";
    var fs43 = require("fs");
    var sysPath = require("path");
    var { promisify: promisify4 } = require("util");
    var fsevents;
    try {
      fsevents = require("fsevents");
    } catch (error5) {
      if (process.env.CHOKIDAR_PRINT_FSEVENTS_REQUIRE_ERROR) console.error(error5);
    }
    if (fsevents) {
      const mtch = process.version.match(/v(\d+)\.(\d+)/);
      if (mtch && mtch[1] && mtch[2]) {
        const maj = Number.parseInt(mtch[1], 10);
        const min = Number.parseInt(mtch[2], 10);
        if (maj === 8 && min < 16) {
          fsevents = void 0;
        }
      }
    }
    var {
      EV_ADD,
      EV_CHANGE,
      EV_ADD_DIR,
      EV_UNLINK,
      EV_ERROR,
      STR_DATA,
      STR_END,
      FSEVENT_CREATED,
      FSEVENT_MODIFIED,
      FSEVENT_DELETED,
      FSEVENT_MOVED,
      // FSEVENT_CLONED,
      FSEVENT_UNKNOWN,
      FSEVENT_FLAG_MUST_SCAN_SUBDIRS,
      FSEVENT_TYPE_FILE,
      FSEVENT_TYPE_DIRECTORY,
      FSEVENT_TYPE_SYMLINK,
      ROOT_GLOBSTAR,
      DIR_SUFFIX,
      DOT_SLASH,
      FUNCTION_TYPE,
      EMPTY_FN,
      IDENTITY_FN
    } = require_constants7();
    var Depth = /* @__PURE__ */ __name((value) => isNaN(value) ? {} : { depth: value }, "Depth");
    var stat5 = promisify4(fs43.stat);
    var lstat2 = promisify4(fs43.lstat);
    var realpath2 = promisify4(fs43.realpath);
    var statMethods = { stat: stat5, lstat: lstat2 };
    var FSEventsWatchers = /* @__PURE__ */ new Map();
    var consolidateThreshhold = 10;
    var wrongEventFlags = /* @__PURE__ */ new Set([
      69888,
      70400,
      71424,
      72704,
      73472,
      131328,
      131840,
      262912
    ]);
    var createFSEventsInstance = /* @__PURE__ */ __name((path38, callback) => {
      const stop = fsevents.watch(path38, callback);
      return { stop };
    }, "createFSEventsInstance");
    function setFSEventsListener(path38, realPath, listener, rawEmitter) {
      let watchPath = sysPath.extname(realPath) ? sysPath.dirname(realPath) : realPath;
      const parentPath = sysPath.dirname(watchPath);
      let cont = FSEventsWatchers.get(watchPath);
      if (couldConsolidate(parentPath)) {
        watchPath = parentPath;
      }
      const resolvedPath3 = sysPath.resolve(path38);
      const hasSymlink = resolvedPath3 !== realPath;
      const filteredListener = /* @__PURE__ */ __name((fullPath, flags, info2) => {
        if (hasSymlink) fullPath = fullPath.replace(realPath, resolvedPath3);
        if (fullPath === resolvedPath3 || !fullPath.indexOf(resolvedPath3 + sysPath.sep)) listener(fullPath, flags, info2);
      }, "filteredListener");
      let watchedParent = false;
      for (const watchedPath of FSEventsWatchers.keys()) {
        if (realPath.indexOf(sysPath.resolve(watchedPath) + sysPath.sep) === 0) {
          watchPath = watchedPath;
          cont = FSEventsWatchers.get(watchPath);
          watchedParent = true;
          break;
        }
      }
      if (cont || watchedParent) {
        cont.listeners.add(filteredListener);
      } else {
        cont = {
          listeners: /* @__PURE__ */ new Set([filteredListener]),
          rawEmitter,
          watcher: createFSEventsInstance(watchPath, (fullPath, flags) => {
            if (!cont.listeners.size) return;
            if (flags & FSEVENT_FLAG_MUST_SCAN_SUBDIRS) return;
            const info2 = fsevents.getInfo(fullPath, flags);
            cont.listeners.forEach((list2) => {
              list2(fullPath, flags, info2);
            });
            cont.rawEmitter(info2.event, fullPath, info2);
          })
        };
        FSEventsWatchers.set(watchPath, cont);
      }
      return () => {
        const lst = cont.listeners;
        lst.delete(filteredListener);
        if (!lst.size) {
          FSEventsWatchers.delete(watchPath);
          if (cont.watcher) return cont.watcher.stop().then(() => {
            cont.rawEmitter = cont.watcher = void 0;
            Object.freeze(cont);
          });
        }
      };
    }
    __name(setFSEventsListener, "setFSEventsListener");
    var couldConsolidate = /* @__PURE__ */ __name((path38) => {
      let count = 0;
      for (const watchPath of FSEventsWatchers.keys()) {
        if (watchPath.indexOf(path38) === 0) {
          count++;
          if (count >= consolidateThreshhold) {
            return true;
          }
        }
      }
      return false;
    }, "couldConsolidate");
    var canUse = /* @__PURE__ */ __name(() => fsevents && FSEventsWatchers.size < 128, "canUse");
    var calcDepth = /* @__PURE__ */ __name((path38, root) => {
      let i3 = 0;
      while (!path38.indexOf(root) && (path38 = sysPath.dirname(path38)) !== root) i3++;
      return i3;
    }, "calcDepth");
    var sameTypes = /* @__PURE__ */ __name((info2, stats) => info2.type === FSEVENT_TYPE_DIRECTORY && stats.isDirectory() || info2.type === FSEVENT_TYPE_SYMLINK && stats.isSymbolicLink() || info2.type === FSEVENT_TYPE_FILE && stats.isFile(), "sameTypes");
    var FsEventsHandler = class {
      static {
        __name(this, "FsEventsHandler");
      }
      /**
       * @param {import('../index').FSWatcher} fsw
       */
      constructor(fsw) {
        this.fsw = fsw;
      }
      checkIgnored(path38, stats) {
        const ipaths = this.fsw._ignoredPaths;
        if (this.fsw._isIgnored(path38, stats)) {
          ipaths.add(path38);
          if (stats && stats.isDirectory()) {
            ipaths.add(path38 + ROOT_GLOBSTAR);
          }
          return true;
        }
        ipaths.delete(path38);
        ipaths.delete(path38 + ROOT_GLOBSTAR);
      }
      addOrChange(path38, fullPath, realPath, parent, watchedDir, item, info2, opts) {
        const event = watchedDir.has(item) ? EV_CHANGE : EV_ADD;
        this.handleEvent(event, path38, fullPath, realPath, parent, watchedDir, item, info2, opts);
      }
      async checkExists(path38, fullPath, realPath, parent, watchedDir, item, info2, opts) {
        try {
          const stats = await stat5(path38);
          if (this.fsw.closed) return;
          if (sameTypes(info2, stats)) {
            this.addOrChange(path38, fullPath, realPath, parent, watchedDir, item, info2, opts);
          } else {
            this.handleEvent(EV_UNLINK, path38, fullPath, realPath, parent, watchedDir, item, info2, opts);
          }
        } catch (error5) {
          if (error5.code === "EACCES") {
            this.addOrChange(path38, fullPath, realPath, parent, watchedDir, item, info2, opts);
          } else {
            this.handleEvent(EV_UNLINK, path38, fullPath, realPath, parent, watchedDir, item, info2, opts);
          }
        }
      }
      handleEvent(event, path38, fullPath, realPath, parent, watchedDir, item, info2, opts) {
        if (this.fsw.closed || this.checkIgnored(path38)) return;
        if (event === EV_UNLINK) {
          const isDirectory = info2.type === FSEVENT_TYPE_DIRECTORY;
          if (isDirectory || watchedDir.has(item)) {
            this.fsw._remove(parent, item, isDirectory);
          }
        } else {
          if (event === EV_ADD) {
            if (info2.type === FSEVENT_TYPE_DIRECTORY) this.fsw._getWatchedDir(path38);
            if (info2.type === FSEVENT_TYPE_SYMLINK && opts.followSymlinks) {
              const curDepth = opts.depth === void 0 ? void 0 : calcDepth(fullPath, realPath) + 1;
              return this._addToFsEvents(path38, false, true, curDepth);
            }
            this.fsw._getWatchedDir(parent).add(item);
          }
          const eventName = info2.type === FSEVENT_TYPE_DIRECTORY ? event + DIR_SUFFIX : event;
          this.fsw._emit(eventName, path38);
          if (eventName === EV_ADD_DIR) this._addToFsEvents(path38, false, true);
        }
      }
      /**
       * Handle symlinks encountered during directory scan
       * @param {String} watchPath  - file/dir path to be watched with fsevents
       * @param {String} realPath   - real path (in case of symlinks)
       * @param {Function} transform  - path transformer
       * @param {Function} globFilter - path filter in case a glob pattern was provided
       * @returns {Function} closer for the watcher instance
      */
      _watchWithFsEvents(watchPath, realPath, transform, globFilter) {
        if (this.fsw.closed || this.fsw._isIgnored(watchPath)) return;
        const opts = this.fsw.options;
        const watchCallback = /* @__PURE__ */ __name(async (fullPath, flags, info2) => {
          if (this.fsw.closed) return;
          if (opts.depth !== void 0 && calcDepth(fullPath, realPath) > opts.depth) return;
          const path38 = transform(sysPath.join(
            watchPath,
            sysPath.relative(watchPath, fullPath)
          ));
          if (globFilter && !globFilter(path38)) return;
          const parent = sysPath.dirname(path38);
          const item = sysPath.basename(path38);
          const watchedDir = this.fsw._getWatchedDir(
            info2.type === FSEVENT_TYPE_DIRECTORY ? path38 : parent
          );
          if (wrongEventFlags.has(flags) || info2.event === FSEVENT_UNKNOWN) {
            if (typeof opts.ignored === FUNCTION_TYPE) {
              let stats;
              try {
                stats = await stat5(path38);
              } catch (error5) {
              }
              if (this.fsw.closed) return;
              if (this.checkIgnored(path38, stats)) return;
              if (sameTypes(info2, stats)) {
                this.addOrChange(path38, fullPath, realPath, parent, watchedDir, item, info2, opts);
              } else {
                this.handleEvent(EV_UNLINK, path38, fullPath, realPath, parent, watchedDir, item, info2, opts);
              }
            } else {
              this.checkExists(path38, fullPath, realPath, parent, watchedDir, item, info2, opts);
            }
          } else {
            switch (info2.event) {
              case FSEVENT_CREATED:
              case FSEVENT_MODIFIED:
                return this.addOrChange(path38, fullPath, realPath, parent, watchedDir, item, info2, opts);
              case FSEVENT_DELETED:
              case FSEVENT_MOVED:
                return this.checkExists(path38, fullPath, realPath, parent, watchedDir, item, info2, opts);
            }
          }
        }, "watchCallback");
        const closer = setFSEventsListener(
          watchPath,
          realPath,
          watchCallback,
          this.fsw._emitRaw
        );
        this.fsw._emitReady();
        return closer;
      }
      /**
       * Handle symlinks encountered during directory scan
       * @param {String} linkPath path to symlink
       * @param {String} fullPath absolute path to the symlink
       * @param {Function} transform pre-existing path transformer
       * @param {Number} curDepth level of subdirectories traversed to where symlink is
       * @returns {Promise<void>}
       */
      async _handleFsEventsSymlink(linkPath, fullPath, transform, curDepth) {
        if (this.fsw.closed || this.fsw._symlinkPaths.has(fullPath)) return;
        this.fsw._symlinkPaths.set(fullPath, true);
        this.fsw._incrReadyCount();
        try {
          const linkTarget = await realpath2(linkPath);
          if (this.fsw.closed) return;
          if (this.fsw._isIgnored(linkTarget)) {
            return this.fsw._emitReady();
          }
          this.fsw._incrReadyCount();
          this._addToFsEvents(linkTarget || linkPath, (path38) => {
            let aliasedPath = linkPath;
            if (linkTarget && linkTarget !== DOT_SLASH) {
              aliasedPath = path38.replace(linkTarget, linkPath);
            } else if (path38 !== DOT_SLASH) {
              aliasedPath = sysPath.join(linkPath, path38);
            }
            return transform(aliasedPath);
          }, false, curDepth);
        } catch (error5) {
          if (this.fsw._handleError(error5)) {
            return this.fsw._emitReady();
          }
        }
      }
      /**
       *
       * @param {Path} newPath
       * @param {fs.Stats} stats
       */
      emitAdd(newPath, stats, processPath, opts, forceAdd) {
        const pp = processPath(newPath);
        const isDir = stats.isDirectory();
        const dirObj = this.fsw._getWatchedDir(sysPath.dirname(pp));
        const base = sysPath.basename(pp);
        if (isDir) this.fsw._getWatchedDir(pp);
        if (dirObj.has(base)) return;
        dirObj.add(base);
        if (!opts.ignoreInitial || forceAdd === true) {
          this.fsw._emit(isDir ? EV_ADD_DIR : EV_ADD, pp, stats);
        }
      }
      initWatch(realPath, path38, wh, processPath) {
        if (this.fsw.closed) return;
        const closer = this._watchWithFsEvents(
          wh.watchPath,
          sysPath.resolve(realPath || wh.watchPath),
          processPath,
          wh.globFilter
        );
        this.fsw._addPathCloser(path38, closer);
      }
      /**
       * Handle added path with fsevents
       * @param {String} path file/dir path or glob pattern
       * @param {Function|Boolean=} transform converts working path to what the user expects
       * @param {Boolean=} forceAdd ensure add is emitted
       * @param {Number=} priorDepth Level of subdirectories already traversed.
       * @returns {Promise<void>}
       */
      async _addToFsEvents(path38, transform, forceAdd, priorDepth) {
        if (this.fsw.closed) {
          return;
        }
        const opts = this.fsw.options;
        const processPath = typeof transform === FUNCTION_TYPE ? transform : IDENTITY_FN;
        const wh = this.fsw._getWatchHelpers(path38);
        try {
          const stats = await statMethods[wh.statMethod](wh.watchPath);
          if (this.fsw.closed) return;
          if (this.fsw._isIgnored(wh.watchPath, stats)) {
            throw null;
          }
          if (stats.isDirectory()) {
            if (!wh.globFilter) this.emitAdd(processPath(path38), stats, processPath, opts, forceAdd);
            if (priorDepth && priorDepth > opts.depth) return;
            this.fsw._readdirp(wh.watchPath, {
              fileFilter: /* @__PURE__ */ __name((entry) => wh.filterPath(entry), "fileFilter"),
              directoryFilter: /* @__PURE__ */ __name((entry) => wh.filterDir(entry), "directoryFilter"),
              ...Depth(opts.depth - (priorDepth || 0))
            }).on(STR_DATA, (entry) => {
              if (this.fsw.closed) {
                return;
              }
              if (entry.stats.isDirectory() && !wh.filterPath(entry)) return;
              const joinedPath = sysPath.join(wh.watchPath, entry.path);
              const { fullPath } = entry;
              if (wh.followSymlinks && entry.stats.isSymbolicLink()) {
                const curDepth = opts.depth === void 0 ? void 0 : calcDepth(joinedPath, sysPath.resolve(wh.watchPath)) + 1;
                this._handleFsEventsSymlink(joinedPath, fullPath, processPath, curDepth);
              } else {
                this.emitAdd(joinedPath, entry.stats, processPath, opts, forceAdd);
              }
            }).on(EV_ERROR, EMPTY_FN).on(STR_END, () => {
              this.fsw._emitReady();
            });
          } else {
            this.emitAdd(wh.watchPath, stats, processPath, opts, forceAdd);
            this.fsw._emitReady();
          }
        } catch (error5) {
          if (!error5 || this.fsw._handleError(error5)) {
            this.fsw._emitReady();
            this.fsw._emitReady();
          }
        }
        if (opts.persistent && forceAdd !== true) {
          if (typeof transform === FUNCTION_TYPE) {
            this.initWatch(void 0, path38, wh, processPath);
          } else {
            let realPath;
            try {
              realPath = await realpath2(wh.watchPath);
            } catch (e3) {
            }
            this.initWatch(realPath, path38, wh, processPath);
          }
        }
      }
    };
    module2.exports = FsEventsHandler;
    module2.exports.canUse = canUse;
  }
});

// ../../node_modules/chokidar/index.js
var require_chokidar = __commonJS({
  "../../node_modules/chokidar/index.js"(exports2) {
    "use strict";
    var { EventEmitter: EventEmitter2 } = require("events");
    var fs43 = require("fs");
    var sysPath = require("path");
    var { promisify: promisify4 } = require("util");
    var readdirp = require_readdirp();
    var anymatch = require_anymatch().default;
    var globParent = require_glob_parent();
    var isGlob = require_is_glob();
    var braces = require_braces();
    var normalizePath = require_normalize_path();
    var NodeFsHandler = require_nodefs_handler();
    var FsEventsHandler = require_fsevents_handler();
    var {
      EV_ALL,
      EV_READY,
      EV_ADD,
      EV_CHANGE,
      EV_UNLINK,
      EV_ADD_DIR,
      EV_UNLINK_DIR,
      EV_RAW,
      EV_ERROR,
      STR_CLOSE,
      STR_END,
      BACK_SLASH_RE,
      DOUBLE_SLASH_RE,
      SLASH_OR_BACK_SLASH_RE,
      DOT_RE,
      REPLACER_RE,
      SLASH,
      SLASH_SLASH,
      BRACE_START,
      BANG,
      ONE_DOT,
      TWO_DOTS,
      GLOBSTAR: GLOBSTAR4,
      SLASH_GLOBSTAR,
      ANYMATCH_OPTS,
      STRING_TYPE,
      FUNCTION_TYPE,
      EMPTY_STR,
      EMPTY_FN,
      isWindows,
      isMacos,
      isIBMi
    } = require_constants7();
    var stat5 = promisify4(fs43.stat);
    var readdir3 = promisify4(fs43.readdir);
    var arrify = /* @__PURE__ */ __name((value = []) => Array.isArray(value) ? value : [value], "arrify");
    var flatten3 = /* @__PURE__ */ __name((list2, result2 = []) => {
      list2.forEach((item) => {
        if (Array.isArray(item)) {
          flatten3(item, result2);
        } else {
          result2.push(item);
        }
      });
      return result2;
    }, "flatten");
    var unifyPaths = /* @__PURE__ */ __name((paths_) => {
      const paths = flatten3(arrify(paths_));
      if (!paths.every((p3) => typeof p3 === STRING_TYPE)) {
        throw new TypeError(`Non-string provided as watch path: ${paths}`);
      }
      return paths.map(normalizePathToUnix);
    }, "unifyPaths");
    var toUnix = /* @__PURE__ */ __name((string) => {
      let str = string.replace(BACK_SLASH_RE, SLASH);
      let prepend = false;
      if (str.startsWith(SLASH_SLASH)) {
        prepend = true;
      }
      while (str.match(DOUBLE_SLASH_RE)) {
        str = str.replace(DOUBLE_SLASH_RE, SLASH);
      }
      if (prepend) {
        str = SLASH + str;
      }
      return str;
    }, "toUnix");
    var normalizePathToUnix = /* @__PURE__ */ __name((path38) => toUnix(sysPath.normalize(toUnix(path38))), "normalizePathToUnix");
    var normalizeIgnored = /* @__PURE__ */ __name((cwd = EMPTY_STR) => (path38) => {
      if (typeof path38 !== STRING_TYPE) return path38;
      return normalizePathToUnix(sysPath.isAbsolute(path38) ? path38 : sysPath.join(cwd, path38));
    }, "normalizeIgnored");
    var getAbsolutePath = /* @__PURE__ */ __name((path38, cwd) => {
      if (sysPath.isAbsolute(path38)) {
        return path38;
      }
      if (path38.startsWith(BANG)) {
        return BANG + sysPath.join(cwd, path38.slice(1));
      }
      return sysPath.join(cwd, path38);
    }, "getAbsolutePath");
    var undef = /* @__PURE__ */ __name((opts, key) => opts[key] === void 0, "undef");
    var DirEntry = class {
      static {
        __name(this, "DirEntry");
      }
      /**
       * @param {Path} dir
       * @param {Function} removeWatcher
       */
      constructor(dir, removeWatcher) {
        this.path = dir;
        this._removeWatcher = removeWatcher;
        this.items = /* @__PURE__ */ new Set();
      }
      add(item) {
        const { items } = this;
        if (!items) return;
        if (item !== ONE_DOT && item !== TWO_DOTS) items.add(item);
      }
      async remove(item) {
        const { items } = this;
        if (!items) return;
        items.delete(item);
        if (items.size > 0) return;
        const dir = this.path;
        try {
          await readdir3(dir);
        } catch (err) {
          if (this._removeWatcher) {
            this._removeWatcher(sysPath.dirname(dir), sysPath.basename(dir));
          }
        }
      }
      has(item) {
        const { items } = this;
        if (!items) return;
        return items.has(item);
      }
      /**
       * @returns {Array<String>}
       */
      getChildren() {
        const { items } = this;
        if (!items) return;
        return [...items.values()];
      }
      dispose() {
        this.items.clear();
        delete this.path;
        delete this._removeWatcher;
        delete this.items;
        Object.freeze(this);
      }
    };
    var STAT_METHOD_F = "stat";
    var STAT_METHOD_L = "lstat";
    var WatchHelper = class {
      static {
        __name(this, "WatchHelper");
      }
      constructor(path38, watchPath, follow, fsw) {
        this.fsw = fsw;
        this.path = path38 = path38.replace(REPLACER_RE, EMPTY_STR);
        this.watchPath = watchPath;
        this.fullWatchPath = sysPath.resolve(watchPath);
        this.hasGlob = watchPath !== path38;
        if (path38 === EMPTY_STR) this.hasGlob = false;
        this.globSymlink = this.hasGlob && follow ? void 0 : false;
        this.globFilter = this.hasGlob ? anymatch(path38, void 0, ANYMATCH_OPTS) : false;
        this.dirParts = this.getDirParts(path38);
        this.dirParts.forEach((parts) => {
          if (parts.length > 1) parts.pop();
        });
        this.followSymlinks = follow;
        this.statMethod = follow ? STAT_METHOD_F : STAT_METHOD_L;
      }
      checkGlobSymlink(entry) {
        if (this.globSymlink === void 0) {
          this.globSymlink = entry.fullParentDir === this.fullWatchPath ? false : { realPath: entry.fullParentDir, linkPath: this.fullWatchPath };
        }
        if (this.globSymlink) {
          return entry.fullPath.replace(this.globSymlink.realPath, this.globSymlink.linkPath);
        }
        return entry.fullPath;
      }
      entryPath(entry) {
        return sysPath.join(
          this.watchPath,
          sysPath.relative(this.watchPath, this.checkGlobSymlink(entry))
        );
      }
      filterPath(entry) {
        const { stats } = entry;
        if (stats && stats.isSymbolicLink()) return this.filterDir(entry);
        const resolvedPath3 = this.entryPath(entry);
        const matchesGlob = this.hasGlob && typeof this.globFilter === FUNCTION_TYPE ? this.globFilter(resolvedPath3) : true;
        return matchesGlob && this.fsw._isntIgnored(resolvedPath3, stats) && this.fsw._hasReadPermissions(stats);
      }
      getDirParts(path38) {
        if (!this.hasGlob) return [];
        const parts = [];
        const expandedPath = path38.includes(BRACE_START) ? braces.expand(path38) : [path38];
        expandedPath.forEach((path39) => {
          parts.push(sysPath.relative(this.watchPath, path39).split(SLASH_OR_BACK_SLASH_RE));
        });
        return parts;
      }
      filterDir(entry) {
        if (this.hasGlob) {
          const entryParts = this.getDirParts(this.checkGlobSymlink(entry));
          let globstar = false;
          this.unmatchedGlob = !this.dirParts.some((parts) => {
            return parts.every((part, i3) => {
              if (part === GLOBSTAR4) globstar = true;
              return globstar || !entryParts[0][i3] || anymatch(part, entryParts[0][i3], ANYMATCH_OPTS);
            });
          });
        }
        return !this.unmatchedGlob && this.fsw._isntIgnored(this.entryPath(entry), entry.stats);
      }
    };
    var FSWatcher = class extends EventEmitter2 {
      static {
        __name(this, "FSWatcher");
      }
      // Not indenting methods for history sake; for now.
      constructor(_opts) {
        super();
        const opts = {};
        if (_opts) Object.assign(opts, _opts);
        this._watched = /* @__PURE__ */ new Map();
        this._closers = /* @__PURE__ */ new Map();
        this._ignoredPaths = /* @__PURE__ */ new Set();
        this._throttled = /* @__PURE__ */ new Map();
        this._symlinkPaths = /* @__PURE__ */ new Map();
        this._streams = /* @__PURE__ */ new Set();
        this.closed = false;
        if (undef(opts, "persistent")) opts.persistent = true;
        if (undef(opts, "ignoreInitial")) opts.ignoreInitial = false;
        if (undef(opts, "ignorePermissionErrors")) opts.ignorePermissionErrors = false;
        if (undef(opts, "interval")) opts.interval = 100;
        if (undef(opts, "binaryInterval")) opts.binaryInterval = 300;
        if (undef(opts, "disableGlobbing")) opts.disableGlobbing = false;
        opts.enableBinaryInterval = opts.binaryInterval !== opts.interval;
        if (undef(opts, "useFsEvents")) opts.useFsEvents = !opts.usePolling;
        const canUseFsEvents = FsEventsHandler.canUse();
        if (!canUseFsEvents) opts.useFsEvents = false;
        if (undef(opts, "usePolling") && !opts.useFsEvents) {
          opts.usePolling = isMacos;
        }
        if (isIBMi) {
          opts.usePolling = true;
        }
        const envPoll = process.env.CHOKIDAR_USEPOLLING;
        if (envPoll !== void 0) {
          const envLower = envPoll.toLowerCase();
          if (envLower === "false" || envLower === "0") {
            opts.usePolling = false;
          } else if (envLower === "true" || envLower === "1") {
            opts.usePolling = true;
          } else {
            opts.usePolling = !!envLower;
          }
        }
        const envInterval = process.env.CHOKIDAR_INTERVAL;
        if (envInterval) {
          opts.interval = Number.parseInt(envInterval, 10);
        }
        if (undef(opts, "atomic")) opts.atomic = !opts.usePolling && !opts.useFsEvents;
        if (opts.atomic) this._pendingUnlinks = /* @__PURE__ */ new Map();
        if (undef(opts, "followSymlinks")) opts.followSymlinks = true;
        if (undef(opts, "awaitWriteFinish")) opts.awaitWriteFinish = false;
        if (opts.awaitWriteFinish === true) opts.awaitWriteFinish = {};
        const awf = opts.awaitWriteFinish;
        if (awf) {
          if (!awf.stabilityThreshold) awf.stabilityThreshold = 2e3;
          if (!awf.pollInterval) awf.pollInterval = 100;
          this._pendingWrites = /* @__PURE__ */ new Map();
        }
        if (opts.ignored) opts.ignored = arrify(opts.ignored);
        let readyCalls = 0;
        this._emitReady = () => {
          readyCalls++;
          if (readyCalls >= this._readyCount) {
            this._emitReady = EMPTY_FN;
            this._readyEmitted = true;
            process.nextTick(() => this.emit(EV_READY));
          }
        };
        this._emitRaw = (...args) => this.emit(EV_RAW, ...args);
        this._readyEmitted = false;
        this.options = opts;
        if (opts.useFsEvents) {
          this._fsEventsHandler = new FsEventsHandler(this);
        } else {
          this._nodeFsHandler = new NodeFsHandler(this);
        }
        Object.freeze(opts);
      }
      // Public methods
      /**
       * Adds paths to be watched on an existing FSWatcher instance
       * @param {Path|Array<Path>} paths_
       * @param {String=} _origAdd private; for handling non-existent paths to be watched
       * @param {Boolean=} _internal private; indicates a non-user add
       * @returns {FSWatcher} for chaining
       */
      add(paths_, _origAdd, _internal) {
        const { cwd, disableGlobbing } = this.options;
        this.closed = false;
        let paths = unifyPaths(paths_);
        if (cwd) {
          paths = paths.map((path38) => {
            const absPath = getAbsolutePath(path38, cwd);
            if (disableGlobbing || !isGlob(path38)) {
              return absPath;
            }
            return normalizePath(absPath);
          });
        }
        paths = paths.filter((path38) => {
          if (path38.startsWith(BANG)) {
            this._ignoredPaths.add(path38.slice(1));
            return false;
          }
          this._ignoredPaths.delete(path38);
          this._ignoredPaths.delete(path38 + SLASH_GLOBSTAR);
          this._userIgnored = void 0;
          return true;
        });
        if (this.options.useFsEvents && this._fsEventsHandler) {
          if (!this._readyCount) this._readyCount = paths.length;
          if (this.options.persistent) this._readyCount += paths.length;
          paths.forEach((path38) => this._fsEventsHandler._addToFsEvents(path38));
        } else {
          if (!this._readyCount) this._readyCount = 0;
          this._readyCount += paths.length;
          Promise.all(
            paths.map(async (path38) => {
              const res = await this._nodeFsHandler._addToNodeFs(path38, !_internal, 0, 0, _origAdd);
              if (res) this._emitReady();
              return res;
            })
          ).then((results) => {
            if (this.closed) return;
            results.filter((item) => item).forEach((item) => {
              this.add(sysPath.dirname(item), sysPath.basename(_origAdd || item));
            });
          });
        }
        return this;
      }
      /**
       * Close watchers or start ignoring events from specified paths.
       * @param {Path|Array<Path>} paths_ - string or array of strings, file/directory paths and/or globs
       * @returns {FSWatcher} for chaining
      */
      unwatch(paths_) {
        if (this.closed) return this;
        const paths = unifyPaths(paths_);
        const { cwd } = this.options;
        paths.forEach((path38) => {
          if (!sysPath.isAbsolute(path38) && !this._closers.has(path38)) {
            if (cwd) path38 = sysPath.join(cwd, path38);
            path38 = sysPath.resolve(path38);
          }
          this._closePath(path38);
          this._ignoredPaths.add(path38);
          if (this._watched.has(path38)) {
            this._ignoredPaths.add(path38 + SLASH_GLOBSTAR);
          }
          this._userIgnored = void 0;
        });
        return this;
      }
      /**
       * Close watchers and remove all listeners from watched paths.
       * @returns {Promise<void>}.
      */
      close() {
        if (this.closed) return this._closePromise;
        this.closed = true;
        this.removeAllListeners();
        const closers = [];
        this._closers.forEach((closerList) => closerList.forEach((closer) => {
          const promise = closer();
          if (promise instanceof Promise) closers.push(promise);
        }));
        this._streams.forEach((stream3) => stream3.destroy());
        this._userIgnored = void 0;
        this._readyCount = 0;
        this._readyEmitted = false;
        this._watched.forEach((dirent) => dirent.dispose());
        ["closers", "watched", "streams", "symlinkPaths", "throttled"].forEach((key) => {
          this[`_${key}`].clear();
        });
        this._closePromise = closers.length ? Promise.all(closers).then(() => void 0) : Promise.resolve();
        return this._closePromise;
      }
      /**
       * Expose list of watched paths
       * @returns {Object} for chaining
      */
      getWatched() {
        const watchList = {};
        this._watched.forEach((entry, dir) => {
          const key = this.options.cwd ? sysPath.relative(this.options.cwd, dir) : dir;
          watchList[key || ONE_DOT] = entry.getChildren().sort();
        });
        return watchList;
      }
      emitWithAll(event, args) {
        this.emit(...args);
        if (event !== EV_ERROR) this.emit(EV_ALL, ...args);
      }
      // Common helpers
      // --------------
      /**
       * Normalize and emit events.
       * Calling _emit DOES NOT MEAN emit() would be called!
       * @param {EventName} event Type of event
       * @param {Path} path File or directory path
       * @param {*=} val1 arguments to be passed with event
       * @param {*=} val2
       * @param {*=} val3
       * @returns the error if defined, otherwise the value of the FSWatcher instance's `closed` flag
       */
      async _emit(event, path38, val1, val2, val3) {
        if (this.closed) return;
        const opts = this.options;
        if (isWindows) path38 = sysPath.normalize(path38);
        if (opts.cwd) path38 = sysPath.relative(opts.cwd, path38);
        const args = [event, path38];
        if (val3 !== void 0) args.push(val1, val2, val3);
        else if (val2 !== void 0) args.push(val1, val2);
        else if (val1 !== void 0) args.push(val1);
        const awf = opts.awaitWriteFinish;
        let pw;
        if (awf && (pw = this._pendingWrites.get(path38))) {
          pw.lastChange = /* @__PURE__ */ new Date();
          return this;
        }
        if (opts.atomic) {
          if (event === EV_UNLINK) {
            this._pendingUnlinks.set(path38, args);
            setTimeout(() => {
              this._pendingUnlinks.forEach((entry, path39) => {
                this.emit(...entry);
                this.emit(EV_ALL, ...entry);
                this._pendingUnlinks.delete(path39);
              });
            }, typeof opts.atomic === "number" ? opts.atomic : 100);
            return this;
          }
          if (event === EV_ADD && this._pendingUnlinks.has(path38)) {
            event = args[0] = EV_CHANGE;
            this._pendingUnlinks.delete(path38);
          }
        }
        if (awf && (event === EV_ADD || event === EV_CHANGE) && this._readyEmitted) {
          const awfEmit = /* @__PURE__ */ __name((err, stats) => {
            if (err) {
              event = args[0] = EV_ERROR;
              args[1] = err;
              this.emitWithAll(event, args);
            } else if (stats) {
              if (args.length > 2) {
                args[2] = stats;
              } else {
                args.push(stats);
              }
              this.emitWithAll(event, args);
            }
          }, "awfEmit");
          this._awaitWriteFinish(path38, awf.stabilityThreshold, event, awfEmit);
          return this;
        }
        if (event === EV_CHANGE) {
          const isThrottled = !this._throttle(EV_CHANGE, path38, 50);
          if (isThrottled) return this;
        }
        if (opts.alwaysStat && val1 === void 0 && (event === EV_ADD || event === EV_ADD_DIR || event === EV_CHANGE)) {
          const fullPath = opts.cwd ? sysPath.join(opts.cwd, path38) : path38;
          let stats;
          try {
            stats = await stat5(fullPath);
          } catch (err) {
          }
          if (!stats || this.closed) return;
          args.push(stats);
        }
        this.emitWithAll(event, args);
        return this;
      }
      /**
       * Common handler for errors
       * @param {Error} error
       * @returns {Error|Boolean} The error if defined, otherwise the value of the FSWatcher instance's `closed` flag
       */
      _handleError(error5) {
        const code = error5 && error5.code;
        if (error5 && code !== "ENOENT" && code !== "ENOTDIR" && (!this.options.ignorePermissionErrors || code !== "EPERM" && code !== "EACCES")) {
          this.emit(EV_ERROR, error5);
        }
        return error5 || this.closed;
      }
      /**
       * Helper utility for throttling
       * @param {ThrottleType} actionType type being throttled
       * @param {Path} path being acted upon
       * @param {Number} timeout duration of time to suppress duplicate actions
       * @returns {Object|false} tracking object or false if action should be suppressed
       */
      _throttle(actionType, path38, timeout) {
        if (!this._throttled.has(actionType)) {
          this._throttled.set(actionType, /* @__PURE__ */ new Map());
        }
        const action = this._throttled.get(actionType);
        const actionPath = action.get(path38);
        if (actionPath) {
          actionPath.count++;
          return false;
        }
        let timeoutObject;
        const clear = /* @__PURE__ */ __name(() => {
          const item = action.get(path38);
          const count = item ? item.count : 0;
          action.delete(path38);
          clearTimeout(timeoutObject);
          if (item) clearTimeout(item.timeoutObject);
          return count;
        }, "clear");
        timeoutObject = setTimeout(clear, timeout);
        const thr = { timeoutObject, clear, count: 0 };
        action.set(path38, thr);
        return thr;
      }
      _incrReadyCount() {
        return this._readyCount++;
      }
      /**
       * Awaits write operation to finish.
       * Polls a newly created file for size variations. When files size does not change for 'threshold' milliseconds calls callback.
       * @param {Path} path being acted upon
       * @param {Number} threshold Time in milliseconds a file size must be fixed before acknowledging write OP is finished
       * @param {EventName} event
       * @param {Function} awfEmit Callback to be called when ready for event to be emitted.
       */
      _awaitWriteFinish(path38, threshold, event, awfEmit) {
        let timeoutHandler;
        let fullPath = path38;
        if (this.options.cwd && !sysPath.isAbsolute(path38)) {
          fullPath = sysPath.join(this.options.cwd, path38);
        }
        const now = /* @__PURE__ */ new Date();
        const awaitWriteFinish = /* @__PURE__ */ __name((prevStat) => {
          fs43.stat(fullPath, (err, curStat) => {
            if (err || !this._pendingWrites.has(path38)) {
              if (err && err.code !== "ENOENT") awfEmit(err);
              return;
            }
            const now2 = Number(/* @__PURE__ */ new Date());
            if (prevStat && curStat.size !== prevStat.size) {
              this._pendingWrites.get(path38).lastChange = now2;
            }
            const pw = this._pendingWrites.get(path38);
            const df = now2 - pw.lastChange;
            if (df >= threshold) {
              this._pendingWrites.delete(path38);
              awfEmit(void 0, curStat);
            } else {
              timeoutHandler = setTimeout(
                awaitWriteFinish,
                this.options.awaitWriteFinish.pollInterval,
                curStat
              );
            }
          });
        }, "awaitWriteFinish");
        if (!this._pendingWrites.has(path38)) {
          this._pendingWrites.set(path38, {
            lastChange: now,
            cancelWait: /* @__PURE__ */ __name(() => {
              this._pendingWrites.delete(path38);
              clearTimeout(timeoutHandler);
              return event;
            }, "cancelWait")
          });
          timeoutHandler = setTimeout(
            awaitWriteFinish,
            this.options.awaitWriteFinish.pollInterval
          );
        }
      }
      _getGlobIgnored() {
        return [...this._ignoredPaths.values()];
      }
      /**
       * Determines whether user has asked to ignore this path.
       * @param {Path} path filepath or dir
       * @param {fs.Stats=} stats result of fs.stat
       * @returns {Boolean}
       */
      _isIgnored(path38, stats) {
        if (this.options.atomic && DOT_RE.test(path38)) return true;
        if (!this._userIgnored) {
          const { cwd } = this.options;
          const ign = this.options.ignored;
          const ignored = ign && ign.map(normalizeIgnored(cwd));
          const paths = arrify(ignored).filter((path39) => typeof path39 === STRING_TYPE && !isGlob(path39)).map((path39) => path39 + SLASH_GLOBSTAR);
          const list2 = this._getGlobIgnored().map(normalizeIgnored(cwd)).concat(ignored, paths);
          this._userIgnored = anymatch(list2, void 0, ANYMATCH_OPTS);
        }
        return this._userIgnored([path38, stats]);
      }
      _isntIgnored(path38, stat6) {
        return !this._isIgnored(path38, stat6);
      }
      /**
       * Provides a set of common helpers and properties relating to symlink and glob handling.
       * @param {Path} path file, directory, or glob pattern being watched
       * @param {Number=} depth at any depth > 0, this isn't a glob
       * @returns {WatchHelper} object containing helpers for this path
       */
      _getWatchHelpers(path38, depth) {
        const watchPath = depth || this.options.disableGlobbing || !isGlob(path38) ? path38 : globParent(path38);
        const follow = this.options.followSymlinks;
        return new WatchHelper(path38, watchPath, follow, this);
      }
      // Directory helpers
      // -----------------
      /**
       * Provides directory tracking objects
       * @param {String} directory path of the directory
       * @returns {DirEntry} the directory's tracking object
       */
      _getWatchedDir(directory) {
        if (!this._boundRemove) this._boundRemove = this._remove.bind(this);
        const dir = sysPath.resolve(directory);
        if (!this._watched.has(dir)) this._watched.set(dir, new DirEntry(dir, this._boundRemove));
        return this._watched.get(dir);
      }
      // File helpers
      // ------------
      /**
       * Check for read permissions.
       * Based on this answer on SO: https://stackoverflow.com/a/11781404/1358405
       * @param {fs.Stats} stats - object, result of fs_stat
       * @returns {Boolean} indicates whether the file can be read
      */
      _hasReadPermissions(stats) {
        if (this.options.ignorePermissionErrors) return true;
        const md = stats && Number.parseInt(stats.mode, 10);
        const st = md & 511;
        const it = Number.parseInt(st.toString(8)[0], 10);
        return Boolean(4 & it);
      }
      /**
       * Handles emitting unlink events for
       * files and directories, and via recursion, for
       * files and directories within directories that are unlinked
       * @param {String} directory within which the following item is located
       * @param {String} item      base path of item/directory
       * @returns {void}
      */
      _remove(directory, item, isDirectory) {
        const path38 = sysPath.join(directory, item);
        const fullPath = sysPath.resolve(path38);
        isDirectory = isDirectory != null ? isDirectory : this._watched.has(path38) || this._watched.has(fullPath);
        if (!this._throttle("remove", path38, 100)) return;
        if (!isDirectory && !this.options.useFsEvents && this._watched.size === 1) {
          this.add(directory, item, true);
        }
        const wp = this._getWatchedDir(path38);
        const nestedDirectoryChildren = wp.getChildren();
        nestedDirectoryChildren.forEach((nested) => this._remove(path38, nested));
        const parent = this._getWatchedDir(directory);
        const wasTracked = parent.has(item);
        parent.remove(item);
        if (this._symlinkPaths.has(fullPath)) {
          this._symlinkPaths.delete(fullPath);
        }
        let relPath = path38;
        if (this.options.cwd) relPath = sysPath.relative(this.options.cwd, path38);
        if (this.options.awaitWriteFinish && this._pendingWrites.has(relPath)) {
          const event = this._pendingWrites.get(relPath).cancelWait();
          if (event === EV_ADD) return;
        }
        this._watched.delete(path38);
        this._watched.delete(fullPath);
        const eventName = isDirectory ? EV_UNLINK_DIR : EV_UNLINK;
        if (wasTracked && !this._isIgnored(path38)) this._emit(eventName, path38);
        if (!this.options.useFsEvents) {
          this._closePath(path38);
        }
      }
      /**
       * Closes all watchers for a path
       * @param {Path} path
       */
      _closePath(path38) {
        this._closeFile(path38);
        const dir = sysPath.dirname(path38);
        this._getWatchedDir(dir).remove(sysPath.basename(path38));
      }
      /**
       * Closes only file-specific watchers
       * @param {Path} path
       */
      _closeFile(path38) {
        const closers = this._closers.get(path38);
        if (!closers) return;
        closers.forEach((closer) => closer());
        this._closers.delete(path38);
      }
      /**
       *
       * @param {Path} path
       * @param {Function} closer
       */
      _addPathCloser(path38, closer) {
        if (!closer) return;
        let list2 = this._closers.get(path38);
        if (!list2) {
          list2 = [];
          this._closers.set(path38, list2);
        }
        list2.push(closer);
      }
      _readdirp(root, opts) {
        if (this.closed) return;
        const options = { type: EV_ALL, alwaysStat: true, lstat: true, ...opts };
        let stream3 = readdirp(root, options);
        this._streams.add(stream3);
        stream3.once(STR_CLOSE, () => {
          stream3 = void 0;
        });
        stream3.once(STR_END, () => {
          if (stream3) {
            this._streams.delete(stream3);
            stream3 = void 0;
          }
        });
        return stream3;
      }
    };
    exports2.FSWatcher = FSWatcher;
    var watch3 = /* @__PURE__ */ __name((paths, options) => {
      const watcher = new FSWatcher(options);
      watcher.add(paths);
      return watcher;
    }, "watch");
    exports2.watch = watch3;
  }
});

// ../@aws-cdk/toolkit-lib/lib/private/activity-printer/base.ts
var ActivityPrinterBase;
var init_base = __esm({
  "../@aws-cdk/toolkit-lib/lib/private/activity-printer/base.ts"() {
    "use strict";
    init_private();
    init_util3();
    ActivityPrinterBase = class {
      constructor(props) {
        this.props = props;
        this.stream = props.stream;
      }
      static {
        __name(this, "ActivityPrinterBase");
      }
      static TIMESTAMP_WIDTH = 12;
      static STATUS_WIDTH = 20;
      /**
       * Stream to write to
       */
      stream;
      /**
       * The with of the "resource type" column.
       */
      resourceTypeColumnWidth = maxResourceTypeLength({});
      /**
       * A list of resource IDs which are currently being processed
       */
      resourcesInProgress = {};
      stackProgress;
      rollingBack = false;
      failures = new Array();
      hookFailureMap = /* @__PURE__ */ new Map();
      /**
       * Receive a stack activity message
       */
      notify(msg) {
        switch (true) {
          case IO.CDK_TOOLKIT_I5501.is(msg):
            this.start(msg.data);
            break;
          case IO.CDK_TOOLKIT_I5502.is(msg):
            this.activity(msg.data);
            break;
          case IO.CDK_TOOLKIT_I5503.is(msg):
            this.stop();
            break;
          default:
            break;
        }
      }
      start({ stack }) {
        this.resourceTypeColumnWidth = maxResourceTypeLength(stack.template);
      }
      activity(activity) {
        this.addActivity(activity);
        this.print();
      }
      stop() {
        this.print();
      }
      addActivity(activity) {
        const status = activity.event.ResourceStatus;
        const hookStatus = activity.event.HookStatus;
        const hookType = activity.event.HookType;
        if (!status || !activity.event.LogicalResourceId) {
          return;
        }
        this.stackProgress = activity.progress;
        if (status === "ROLLBACK_IN_PROGRESS" || status === "UPDATE_ROLLBACK_IN_PROGRESS") {
          this.rollingBack = true;
        }
        if (status.endsWith("_IN_PROGRESS")) {
          this.resourcesInProgress[activity.event.LogicalResourceId] = activity;
        }
        if (stackEventHasErrorMessage(status)) {
          const isCancelled = (activity.event.ResourceStatusReason ?? "").indexOf("cancelled") > -1;
          if (!isCancelled) {
            this.failures.push(activity);
          }
        }
        if (status.endsWith("_COMPLETE") || status.endsWith("_FAILED")) {
          delete this.resourcesInProgress[activity.event.LogicalResourceId];
        }
        if (hookStatus !== void 0 && hookStatus.endsWith("_COMPLETE_FAILED") && activity.event.LogicalResourceId !== void 0 && hookType !== void 0) {
          if (this.hookFailureMap.has(activity.event.LogicalResourceId)) {
            this.hookFailureMap.get(activity.event.LogicalResourceId)?.set(hookType, activity.event.HookStatusReason ?? "");
          } else {
            this.hookFailureMap.set(activity.event.LogicalResourceId, /* @__PURE__ */ new Map());
            this.hookFailureMap.get(activity.event.LogicalResourceId)?.set(hookType, activity.event.HookStatusReason ?? "");
          }
        }
      }
      failureReason(activity) {
        const resourceStatusReason = activity.event.ResourceStatusReason ?? "";
        const logicalResourceId = activity.event.LogicalResourceId ?? "";
        const hookFailureReasonMap = this.hookFailureMap.get(logicalResourceId);
        if (hookFailureReasonMap !== void 0) {
          for (const hookType of hookFailureReasonMap.keys()) {
            if (resourceStatusReason.includes(hookType)) {
              return resourceStatusReason + " : " + hookFailureReasonMap.get(hookType);
            }
          }
        }
        return resourceStatusReason;
      }
      /**
       * Is the activity a meta activity for the stack itself.
       */
      isActivityForTheStack(activity) {
        return activity.event.PhysicalResourceId === activity.event.StackId;
      }
    };
  }
});

// ../@aws-cdk/toolkit-lib/lib/private/activity-printer/history.ts
function colorFromStatusResult(status) {
  if (!status) {
    return chalk19.reset;
  }
  if (status.indexOf("FAILED") !== -1) {
    return chalk19.red;
  }
  if (status.indexOf("ROLLBACK") !== -1) {
    return chalk19.yellow;
  }
  if (status.indexOf("COMPLETE") !== -1) {
    return chalk19.green;
  }
  return chalk19.reset;
}
var util7, chalk19, HistoryActivityPrinter;
var init_history = __esm({
  "../@aws-cdk/toolkit-lib/lib/private/activity-printer/history.ts"() {
    "use strict";
    util7 = __toESM(require("util"));
    chalk19 = __toESM(require_source());
    init_base();
    init_util3();
    HistoryActivityPrinter = class _HistoryActivityPrinter extends ActivityPrinterBase {
      static {
        __name(this, "HistoryActivityPrinter");
      }
      /**
       * Last time we printed something to the console.
       *
       * Used to measure timeout for progress reporting.
       */
      lastPrintTime = Date.now();
      lastPrinted;
      /**
       * Number of ms of change absence before we tell the user about the resources that are currently in progress.
       */
      inProgressDelay = 3e4;
      printable = new Array();
      constructor(props) {
        super(props);
      }
      activity(activity) {
        this.printable.push(activity);
        super.activity(activity);
      }
      stop() {
        super.stop();
        if (this.failures.length > 0) {
          this.stream.write("\nFailed resources:\n");
          for (const failure of this.failures) {
            if (this.isActivityForTheStack(failure)) {
              continue;
            }
            this.printOne(failure, false);
          }
        }
      }
      print() {
        for (const activity of this.printable) {
          this.printOne(activity);
          this.lastPrinted = activity;
        }
        this.printable.splice(0, this.printable.length);
        this.printInProgress(this.lastPrinted?.progress.formatted);
      }
      printOne(activity, progress) {
        const event = activity.event;
        const color = colorFromStatusResult(event.ResourceStatus);
        let reasonColor = chalk19.cyan;
        let stackTrace = "";
        const metadata = activity.metadata;
        if (event.ResourceStatus && event.ResourceStatus.indexOf("FAILED") !== -1) {
          if (progress == void 0 || progress) {
            event.ResourceStatusReason = event.ResourceStatusReason ? this.failureReason(activity) : "";
          }
          if (metadata) {
            stackTrace = metadata.entry.trace ? `
	${metadata.entry.trace.join("\n	\\_ ")}` : "";
          }
          reasonColor = chalk19.red;
        }
        const resourceName = metadata ? metadata.constructPath : event.LogicalResourceId || "";
        const logicalId = resourceName !== event.LogicalResourceId ? `(${event.LogicalResourceId}) ` : "";
        this.stream.write(
          util7.format(
            "%s | %s%s | %s | %s | %s %s%s%s\n",
            event.StackName,
            progress !== false ? `${activity.progress.formatted} | ` : "",
            new Date(event.Timestamp).toLocaleTimeString(),
            color(padRight(_HistoryActivityPrinter.STATUS_WIDTH, (event.ResourceStatus || "").slice(0, _HistoryActivityPrinter.STATUS_WIDTH))),
            // pad left and trim
            padRight(this.resourceTypeColumnWidth, event.ResourceType || ""),
            color(chalk19.bold(resourceName)),
            logicalId,
            reasonColor(chalk19.bold(event.ResourceStatusReason ? event.ResourceStatusReason : "")),
            reasonColor(stackTrace)
          )
        );
        this.lastPrintTime = Date.now();
      }
      /**
       * If some resources are taking a while to create, notify the user about what's currently in progress
       */
      printInProgress(progress) {
        if (!progress || Date.now() < this.lastPrintTime + this.inProgressDelay) {
          return;
        }
        if (Object.keys(this.resourcesInProgress).length > 0) {
          this.stream.write(
            util7.format(
              "%s Currently in progress: %s\n",
              progress,
              chalk19.bold(Object.keys(this.resourcesInProgress).join(", "))
            )
          );
        }
        this.lastPrintTime = Infinity;
      }
    };
    __name(colorFromStatusResult, "colorFromStatusResult");
  }
});

// ../../node_modules/wrap-ansi/index.js
var require_wrap_ansi = __commonJS({
  "../../node_modules/wrap-ansi/index.js"(exports2, module2) {
    "use strict";
    var stringWidth2 = require_string_width();
    var stripAnsi2 = require_strip_ansi();
    var ansiStyles = require_ansi_styles();
    var ESCAPES = /* @__PURE__ */ new Set([
      "\x1B",
      "\x9B"
    ]);
    var END_CODE = 39;
    var ANSI_ESCAPE_BELL = "\x07";
    var ANSI_CSI = "[";
    var ANSI_OSC = "]";
    var ANSI_SGR_TERMINATOR = "m";
    var ANSI_ESCAPE_LINK = `${ANSI_OSC}8;;`;
    var wrapAnsi2 = /* @__PURE__ */ __name((code) => `${ESCAPES.values().next().value}${ANSI_CSI}${code}${ANSI_SGR_TERMINATOR}`, "wrapAnsi");
    var wrapAnsiHyperlink = /* @__PURE__ */ __name((uri) => `${ESCAPES.values().next().value}${ANSI_ESCAPE_LINK}${uri}${ANSI_ESCAPE_BELL}`, "wrapAnsiHyperlink");
    var wordLengths = /* @__PURE__ */ __name((string) => string.split(" ").map((character) => stringWidth2(character)), "wordLengths");
    var wrapWord = /* @__PURE__ */ __name((rows, word, columns) => {
      const characters = [...word];
      let isInsideEscape = false;
      let isInsideLinkEscape = false;
      let visible = stringWidth2(stripAnsi2(rows[rows.length - 1]));
      for (const [index, character] of characters.entries()) {
        const characterLength = stringWidth2(character);
        if (visible + characterLength <= columns) {
          rows[rows.length - 1] += character;
        } else {
          rows.push(character);
          visible = 0;
        }
        if (ESCAPES.has(character)) {
          isInsideEscape = true;
          isInsideLinkEscape = characters.slice(index + 1).join("").startsWith(ANSI_ESCAPE_LINK);
        }
        if (isInsideEscape) {
          if (isInsideLinkEscape) {
            if (character === ANSI_ESCAPE_BELL) {
              isInsideEscape = false;
              isInsideLinkEscape = false;
            }
          } else if (character === ANSI_SGR_TERMINATOR) {
            isInsideEscape = false;
          }
          continue;
        }
        visible += characterLength;
        if (visible === columns && index < characters.length - 1) {
          rows.push("");
          visible = 0;
        }
      }
      if (!visible && rows[rows.length - 1].length > 0 && rows.length > 1) {
        rows[rows.length - 2] += rows.pop();
      }
    }, "wrapWord");
    var stringVisibleTrimSpacesRight = /* @__PURE__ */ __name((string) => {
      const words = string.split(" ");
      let last = words.length;
      while (last > 0) {
        if (stringWidth2(words[last - 1]) > 0) {
          break;
        }
        last--;
      }
      if (last === words.length) {
        return string;
      }
      return words.slice(0, last).join(" ") + words.slice(last).join("");
    }, "stringVisibleTrimSpacesRight");
    var exec5 = /* @__PURE__ */ __name((string, columns, options = {}) => {
      if (options.trim !== false && string.trim() === "") {
        return "";
      }
      let returnValue = "";
      let escapeCode;
      let escapeUrl;
      const lengths = wordLengths(string);
      let rows = [""];
      for (const [index, word] of string.split(" ").entries()) {
        if (options.trim !== false) {
          rows[rows.length - 1] = rows[rows.length - 1].trimStart();
        }
        let rowLength = stringWidth2(rows[rows.length - 1]);
        if (index !== 0) {
          if (rowLength >= columns && (options.wordWrap === false || options.trim === false)) {
            rows.push("");
            rowLength = 0;
          }
          if (rowLength > 0 || options.trim === false) {
            rows[rows.length - 1] += " ";
            rowLength++;
          }
        }
        if (options.hard && lengths[index] > columns) {
          const remainingColumns = columns - rowLength;
          const breaksStartingThisLine = 1 + Math.floor((lengths[index] - remainingColumns - 1) / columns);
          const breaksStartingNextLine = Math.floor((lengths[index] - 1) / columns);
          if (breaksStartingNextLine < breaksStartingThisLine) {
            rows.push("");
          }
          wrapWord(rows, word, columns);
          continue;
        }
        if (rowLength + lengths[index] > columns && rowLength > 0 && lengths[index] > 0) {
          if (options.wordWrap === false && rowLength < columns) {
            wrapWord(rows, word, columns);
            continue;
          }
          rows.push("");
        }
        if (rowLength + lengths[index] > columns && options.wordWrap === false) {
          wrapWord(rows, word, columns);
          continue;
        }
        rows[rows.length - 1] += word;
      }
      if (options.trim !== false) {
        rows = rows.map(stringVisibleTrimSpacesRight);
      }
      const pre = [...rows.join("\n")];
      for (const [index, character] of pre.entries()) {
        returnValue += character;
        if (ESCAPES.has(character)) {
          const { groups } = new RegExp(`(?:\\${ANSI_CSI}(?<code>\\d+)m|\\${ANSI_ESCAPE_LINK}(?<uri>.*)${ANSI_ESCAPE_BELL})`).exec(pre.slice(index).join("")) || { groups: {} };
          if (groups.code !== void 0) {
            const code2 = Number.parseFloat(groups.code);
            escapeCode = code2 === END_CODE ? void 0 : code2;
          } else if (groups.uri !== void 0) {
            escapeUrl = groups.uri.length === 0 ? void 0 : groups.uri;
          }
        }
        const code = ansiStyles.codes.get(Number(escapeCode));
        if (pre[index + 1] === "\n") {
          if (escapeUrl) {
            returnValue += wrapAnsiHyperlink("");
          }
          if (escapeCode && code) {
            returnValue += wrapAnsi2(code);
          }
        } else if (character === "\n") {
          if (escapeCode && code) {
            returnValue += wrapAnsi2(escapeCode);
          }
          if (escapeUrl) {
            returnValue += wrapAnsiHyperlink(escapeUrl);
          }
        }
      }
      return returnValue;
    }, "exec");
    module2.exports = (string, columns, options) => {
      return String(string).normalize().replace(/\r\n/g, "\n").split("\n").map((line) => exec5(line, columns, options)).join("\n");
    };
  }
});

// ../@aws-cdk/toolkit-lib/lib/private/activity-printer/display.ts
function cursorUp(n3) {
  n3 = typeof n3 === "number" ? n3 : 1;
  return n3 > 0 ? ESC + "[" + n3 + "A" : "";
}
function cll() {
  return ESC + "[K";
}
function terminalWrap(width, lines) {
  if (width === void 0) {
    return lines;
  }
  return lines.flatMap((line) => wrapAnsi(line, width - 1, {
    hard: true,
    trim: true,
    wordWrap: false
  }).split("\n"));
}
function expandNewlines(lines) {
  return lines.flatMap((line) => line.split("\n"));
}
function getMaxBlockHeight(windowHeight, lastHeight, lines) {
  if (windowHeight === void 0) {
    return Math.max(lines.length, lastHeight);
  }
  return lines.length < windowHeight ? lines.length : windowHeight - 1;
}
var wrapAnsi, RewritableBlock, ESC;
var init_display = __esm({
  "../@aws-cdk/toolkit-lib/lib/private/activity-printer/display.ts"() {
    "use strict";
    wrapAnsi = require_wrap_ansi();
    RewritableBlock = class {
      constructor(stream3) {
        this.stream = stream3;
      }
      static {
        __name(this, "RewritableBlock");
      }
      lastHeight = 0;
      trailingEmptyLines = 0;
      get width() {
        return this.stream.columns;
      }
      get height() {
        return this.stream.rows;
      }
      displayLines(lines) {
        lines = terminalWrap(this.width, expandNewlines(lines));
        lines = lines.slice(0, getMaxBlockHeight(this.height, this.lastHeight, lines));
        this.stream.write(cursorUp(this.lastHeight));
        for (const line of lines) {
          this.stream.write(cll() + line + "\n");
        }
        this.trailingEmptyLines = Math.max(0, this.lastHeight - lines.length);
        for (let i3 = 0; i3 < this.trailingEmptyLines; i3++) {
          this.stream.write(cll() + "\n");
        }
        this.lastHeight = Math.max(this.lastHeight, lines.length);
      }
      removeEmptyLines() {
        this.stream.write(cursorUp(this.trailingEmptyLines));
      }
    };
    ESC = "\x1B";
    __name(cursorUp, "cursorUp");
    __name(cll, "cll");
    __name(terminalWrap, "terminalWrap");
    __name(expandNewlines, "expandNewlines");
    __name(getMaxBlockHeight, "getMaxBlockHeight");
  }
});

// ../@aws-cdk/toolkit-lib/lib/private/activity-printer/current.ts
function colorFromStatusActivity(status) {
  if (!status) {
    return chalk20.reset;
  }
  if (status.endsWith("_FAILED")) {
    return chalk20.red;
  }
  if (status.startsWith("CREATE_") || status.startsWith("UPDATE_") || status.startsWith("IMPORT_")) {
    return chalk20.green;
  }
  if (status.indexOf("ROLLBACK_") !== -1) {
    return chalk20.yellow;
  }
  if (status.startsWith("DELETE_")) {
    return chalk20.yellow;
  }
  return chalk20.reset;
}
function shorten(maxWidth, p3) {
  if (p3.length <= maxWidth) {
    return p3;
  }
  const half = Math.floor((maxWidth - 3) / 2);
  return p3.slice(0, half) + "..." + p3.slice(-half);
}
var util8, chalk20, CurrentActivityPrinter, FULL_BLOCK, PARTIAL_BLOCK, MAX_PROGRESSBAR_WIDTH, MIN_PROGRESSBAR_WIDTH, PROGRESSBAR_EXTRA_SPACE;
var init_current = __esm({
  "../@aws-cdk/toolkit-lib/lib/private/activity-printer/current.ts"() {
    "use strict";
    util8 = __toESM(require("util"));
    chalk20 = __toESM(require_source());
    init_base();
    init_display();
    init_util3();
    CurrentActivityPrinter = class _CurrentActivityPrinter extends ActivityPrinterBase {
      static {
        __name(this, "CurrentActivityPrinter");
      }
      /**
       * Continuously write to the same output block.
       */
      block;
      constructor(props) {
        super(props);
        this.block = new RewritableBlock(this.stream);
      }
      print() {
        const lines = [];
        const progressWidth = Math.max(
          Math.min((this.block.width ?? 80) - PROGRESSBAR_EXTRA_SPACE - 1, MAX_PROGRESSBAR_WIDTH),
          MIN_PROGRESSBAR_WIDTH
        );
        const prog = this.progressBar(progressWidth);
        if (prog) {
          lines.push("  " + prog, "");
        }
        const toPrint = [...this.failures, ...Object.values(this.resourcesInProgress)];
        toPrint.sort((a3, b3) => a3.event.Timestamp.getTime() - b3.event.Timestamp.getTime());
        lines.push(
          ...toPrint.map((res) => {
            const color = colorFromStatusActivity(res.event.ResourceStatus);
            const resourceName = res.metadata?.constructPath ?? res.event.LogicalResourceId ?? "";
            return util8.format(
              "%s | %s | %s | %s%s",
              padLeft(_CurrentActivityPrinter.TIMESTAMP_WIDTH, new Date(res.event.Timestamp).toLocaleTimeString()),
              color(padRight(_CurrentActivityPrinter.STATUS_WIDTH, (res.event.ResourceStatus || "").slice(0, _CurrentActivityPrinter.STATUS_WIDTH))),
              padRight(this.resourceTypeColumnWidth, res.event.ResourceType || ""),
              color(chalk20.bold(shorten(40, resourceName))),
              this.failureReasonOnNextLine(res)
            );
          })
        );
        this.block.displayLines(lines);
      }
      stop() {
        super.stop();
        const lines = new Array();
        for (const failure of this.failures) {
          if (this.isActivityForTheStack(failure)) {
            continue;
          }
          lines.push(
            util8.format(
              chalk20.red("%s | %s | %s | %s%s") + "\n",
              padLeft(_CurrentActivityPrinter.TIMESTAMP_WIDTH, new Date(failure.event.Timestamp).toLocaleTimeString()),
              padRight(_CurrentActivityPrinter.STATUS_WIDTH, (failure.event.ResourceStatus || "").slice(0, _CurrentActivityPrinter.STATUS_WIDTH)),
              padRight(this.resourceTypeColumnWidth, failure.event.ResourceType || ""),
              shorten(40, failure.event.LogicalResourceId ?? ""),
              this.failureReasonOnNextLine(failure)
            )
          );
          const trace3 = failure.metadata?.entry?.trace;
          if (trace3) {
            lines.push(chalk20.red(`	${trace3.join("\n	\\_ ")}
`));
          }
        }
        this.block.displayLines(lines);
        this.block.removeEmptyLines();
      }
      progressBar(width) {
        if (!this.stackProgress || !this.stackProgress.total) {
          return "";
        }
        const fraction = Math.min(this.stackProgress.completed / this.stackProgress.total, 1);
        const innerWidth = Math.max(1, width - 2);
        const chars = innerWidth * fraction;
        const remainder = chars - Math.floor(chars);
        const fullChars = FULL_BLOCK.repeat(Math.floor(chars));
        const partialChar = PARTIAL_BLOCK[Math.floor(remainder * PARTIAL_BLOCK.length)];
        const filler = "\xB7".repeat(innerWidth - Math.floor(chars) - (partialChar ? 1 : 0));
        const color = this.rollingBack ? chalk20.yellow : chalk20.green;
        return "[" + color(fullChars + partialChar) + filler + `] (${this.stackProgress.completed}/${this.stackProgress.total})`;
      }
      failureReasonOnNextLine(activity) {
        return stackEventHasErrorMessage(activity.event.ResourceStatus ?? "") ? `
${" ".repeat(_CurrentActivityPrinter.TIMESTAMP_WIDTH + _CurrentActivityPrinter.STATUS_WIDTH + 6)}${chalk20.red(this.failureReason(activity) ?? "")}` : "";
      }
    };
    FULL_BLOCK = "\u2588";
    PARTIAL_BLOCK = ["", "\u258F", "\u258E", "\u258D", "\u258C", "\u258B", "\u258A", "\u2589"];
    MAX_PROGRESSBAR_WIDTH = 60;
    MIN_PROGRESSBAR_WIDTH = 10;
    PROGRESSBAR_EXTRA_SPACE = 2 + 2 + 4 + 6;
    __name(colorFromStatusActivity, "colorFromStatusActivity");
    __name(shorten, "shorten");
  }
});

// ../@aws-cdk/toolkit-lib/lib/private/activity-printer/index.ts
var init_activity_printer = __esm({
  "../@aws-cdk/toolkit-lib/lib/private/activity-printer/index.ts"() {
    "use strict";
    init_base();
    init_history();
    init_current();
  }
});

// ../@aws-cdk/toolkit-lib/lib/util/shell-env.ts
function isCI() {
  return process.env.CI !== void 0 && process.env.CI !== "false" && process.env.CI !== "0";
}
function isTTY() {
  return process.stdout.isTTY ?? false;
}
var init_shell_env = __esm({
  "../@aws-cdk/toolkit-lib/lib/util/shell-env.ts"() {
    "use strict";
    __name(isCI, "isCI");
    __name(isTTY, "isTTY");
  }
});

// ../@aws-cdk/toolkit-lib/lib/toolkit/non-interactive-io-host.ts
function isStackActivity(msg) {
  return msg.code && [
    "CDK_TOOLKIT_I5501",
    "CDK_TOOLKIT_I5502",
    "CDK_TOOLKIT_I5503"
  ].includes(msg.code);
}
var chalk21, NonInteractiveIoHost, styleMap;
var init_non_interactive_io_host = __esm({
  "../@aws-cdk/toolkit-lib/lib/toolkit/non-interactive-io-host.ts"() {
    "use strict";
    chalk21 = __toESM(require_source());
    init_private();
    init_activity_printer();
    init_shell_env();
    NonInteractiveIoHost = class {
      static {
        __name(this, "NonInteractiveIoHost");
      }
      /**
       * Whether the IoHost is running in CI mode.
       *
       * In CI mode, all non-error output goes to stdout instead of stderr.
       */
      isCI;
      /**
       * Whether the host can use interactions and message styling.
       */
      isTTY;
      /**
       * The current threshold.
       *
       * Messages with a lower priority level will be ignored.
       */
      logLevel;
      // Stack Activity Printer
      activityPrinter;
      constructor(props = {}) {
        this.logLevel = props.logLevel ?? "info";
        this.isTTY = props.isTTY ?? isTTY();
        this.isCI = props.isCI ?? isCI();
        this.activityPrinter = new HistoryActivityPrinter({
          stream: this.selectStreamFromLevel("info")
        });
      }
      /**
       * Notifies the host of a message.
       * The caller waits until the notification completes.
       */
      async notify(msg) {
        if (isStackActivity(msg)) {
          return this.activityPrinter.notify(msg);
        }
        if (!isMessageRelevantForLevel(msg, this.logLevel)) {
          return;
        }
        const output = this.formatMessage(msg);
        const stream3 = this.selectStream(msg);
        stream3?.write(output);
      }
      /**
       * Determines the output stream, based on message and configuration.
       */
      selectStream(msg) {
        return this.selectStreamFromLevel(msg.level);
      }
      /**
       * Determines the output stream, based on message level and configuration.
       */
      selectStreamFromLevel(level) {
        switch (level) {
          case "error":
            return process.stderr;
          case "result":
            return process.stdout;
          default:
            return this.isCI ? process.stdout : process.stderr;
        }
      }
      /**
       * Notifies the host of a message that requires a response.
       *
       * If the host does not return a response the suggested
       * default response from the input message will be used.
       */
      async requestResponse(msg) {
        await this.notify(msg);
        return msg.defaultResponse;
      }
      /**
       * Formats a message for console output with optional color support
       */
      formatMessage(msg) {
        let message_text = this.isTTY ? styleMap[msg.level](msg.message) : msg.message;
        return (msg.level === "debug" || msg.level === "trace" ? `[${this.formatTime(msg.time)}] ${message_text}` : message_text) + "\n";
      }
      /**
       * Formats date to HH:MM:SS
       */
      formatTime(d3) {
        const pad = /* @__PURE__ */ __name((n3) => n3.toString().padStart(2, "0"), "pad");
        return `${pad(d3.getHours())}:${pad(d3.getMinutes())}:${pad(d3.getSeconds())}`;
      }
    };
    styleMap = {
      error: chalk21.red,
      warn: chalk21.yellow,
      result: chalk21.white,
      info: chalk21.white,
      debug: chalk21.gray,
      trace: chalk21.gray
    };
    __name(isStackActivity, "isStackActivity");
  }
});

// ../@aws-cdk/toolkit-lib/lib/toolkit/private/index.ts
async function assemblyFromSource(ioHelper, assemblySource, cache3 = true) {
  if (assemblySource instanceof StackAssembly) {
    return assemblySource;
  }
  if (cache3) {
    const ret = new StackAssembly(await assemblySource.produce(), ioHelper);
    return ret;
  }
  return new StackAssembly(await assemblySource.produce(), ioHelper);
}
var init_private4 = __esm({
  "../@aws-cdk/toolkit-lib/lib/toolkit/private/index.ts"() {
    "use strict";
    init_private3();
    __name(assemblyFromSource, "assemblyFromSource");
  }
});

// ../@aws-cdk/toolkit-lib/lib/actions/bootstrap/private/helpers.ts
function environmentsFromDescriptors(envSpecs) {
  const ret = new Array();
  for (const spec of envSpecs) {
    const parts = spec.replace(/^aws:\/\//, "").split("/");
    if (parts.length !== 2) {
      throw new ToolkitError(`Expected environment name in format 'aws://<account>/<region>', got: ${spec}`);
    }
    ret.push({
      name: spec,
      account: parts[0],
      region: parts[1]
    });
  }
  return ret;
}
var init_helpers2 = __esm({
  "../@aws-cdk/toolkit-lib/lib/actions/bootstrap/private/helpers.ts"() {
    "use strict";
    init_toolkit_error();
    __name(environmentsFromDescriptors, "environmentsFromDescriptors");
  }
});

// ../@aws-cdk/toolkit-lib/lib/actions/bootstrap/private/index.ts
var init_private5 = __esm({
  "../@aws-cdk/toolkit-lib/lib/actions/bootstrap/private/index.ts"() {
    "use strict";
    init_helpers2();
  }
});

// ../@aws-cdk/toolkit-lib/lib/actions/bootstrap/index.ts
var BootstrapEnvironments, BootstrapStackParameters, BootstrapSource;
var init_bootstrap3 = __esm({
  "../@aws-cdk/toolkit-lib/lib/actions/bootstrap/index.ts"() {
    "use strict";
    init_private5();
    init_private3();
    init_private();
    init_private4();
    BootstrapEnvironments = class _BootstrapEnvironments {
      constructor(envProvider) {
        this.envProvider = envProvider;
      }
      static {
        __name(this, "BootstrapEnvironments");
      }
      /**
       * Create from a list of environment descriptors
       * List of strings like `['aws://012345678912/us-east-1', 'aws://234567890123/eu-west-1']`
       */
      static fromList(environments) {
        return new _BootstrapEnvironments(environmentsFromDescriptors(environments));
      }
      /**
       * Create from a cloud assembly source
       */
      static fromCloudAssemblySource(cx) {
        return new _BootstrapEnvironments(async (ioHost) => {
          var _stack = [];
          try {
            const ioHelper = asIoHelper(ioHost, "bootstrap");
            const assembly = __using(_stack, await assemblyFromSource(ioHelper, cx), true);
            const stackCollection = await assembly.selectStacksV2(ALL_STACKS);
            return stackCollection.stackArtifacts.map((stack) => stack.environment);
          } catch (_3) {
            var _error = _3, _hasError = true;
          } finally {
            var _promise = __callDispose(_stack, _error, _hasError);
            _promise && await _promise;
          }
        });
      }
      /**
       * Compute the bootstrap enviornments
       *
       * @internal
       */
      async getEnvironments(ioHost) {
        if (Array.isArray(this.envProvider)) {
          return this.envProvider;
        }
        return this.envProvider(ioHost);
      }
    };
    BootstrapStackParameters = class _BootstrapStackParameters {
      static {
        __name(this, "BootstrapStackParameters");
      }
      /**
       * Use only existing parameters on the stack.
       */
      static onlyExisting() {
        return new _BootstrapStackParameters({}, true);
      }
      /**
       * Use exactly these parameters and remove any other existing parameters from the stack.
       */
      static exactly(params) {
        return new _BootstrapStackParameters(params, false);
      }
      /**
       * Define additional parameters for the stack, while keeping existing parameters for unspecified values.
       */
      static withExisting(params) {
        return new _BootstrapStackParameters(params, true);
      }
      /**
       * The parameters as a Map for easy access and manipulation
       */
      parameters;
      keepExistingParameters;
      constructor(params, usePreviousParameters = true) {
        this.keepExistingParameters = usePreviousParameters;
        this.parameters = params;
      }
    };
    BootstrapSource = class {
      static {
        __name(this, "BootstrapSource");
      }
      /**
       * Use the default bootstrap template
       */
      static default() {
        return { source: "default" };
      }
      /**
       * Use a custom bootstrap template
       */
      static customTemplate(templateFile) {
        return {
          source: "custom",
          templateFile
        };
      }
    };
  }
});

// ../@aws-cdk/toolkit-lib/lib/actions/deploy/index.ts
var AssetBuildTime, StackParameters;
var init_deploy3 = __esm({
  "../@aws-cdk/toolkit-lib/lib/actions/deploy/index.ts"() {
    "use strict";
    AssetBuildTime = /* @__PURE__ */ ((AssetBuildTime3) => {
      AssetBuildTime3["ALL_BEFORE_DEPLOY"] = "all-before-deploy";
      AssetBuildTime3["JUST_IN_TIME"] = "just-in-time";
      return AssetBuildTime3;
    })(AssetBuildTime || {});
    StackParameters = class _StackParameters {
      static {
        __name(this, "StackParameters");
      }
      /**
       * Use only existing parameters on the stack.
       */
      static onlyExisting() {
        return new _StackParameters({}, true);
      }
      /**
       * Use exactly these parameters and remove any other existing parameters from the stack.
       */
      static exactly(params) {
        return new _StackParameters(params, false);
      }
      /**
       * Define additional parameters for the stack, while keeping existing parameters for unspecified values.
       */
      static withExisting(params) {
        return new _StackParameters(params, true);
      }
      parameters;
      keepExistingParameters;
      constructor(params, usePreviousParameters = true) {
        this.keepExistingParameters = usePreviousParameters;
        this.parameters = new Map(Object.entries(params));
      }
    };
  }
});

// ../@aws-cdk/toolkit-lib/lib/actions/deploy/private/deploy-options.ts
var init_deploy_options = __esm({
  "../@aws-cdk/toolkit-lib/lib/actions/deploy/private/deploy-options.ts"() {
    "use strict";
  }
});

// ../@aws-cdk/toolkit-lib/lib/actions/deploy/private/helpers.ts
function buildParameterMap(parameters) {
  const parameterMap = {};
  parameterMap["*"] = {};
  const entries = parameters?.entries() ?? [];
  for (const [key, value] of entries) {
    const [stack, parameter] = key.split(":", 2);
    if (!parameter) {
      parameterMap["*"][stack] = value;
    } else {
      if (!parameterMap[stack]) {
        parameterMap[stack] = {};
      }
      parameterMap[stack][parameter] = value;
    }
  }
  return parameterMap;
}
async function removePublishedAssetsFromWorkGraph(graph, deployments, options) {
  await graph.removeUnnecessaryAssets((assetNode) => deployments.isSingleAssetPublished(assetNode.assetManifest, assetNode.asset, {
    stack: assetNode.parentStack,
    roleArn: options.roleArn,
    stackName: assetNode.parentStack.stackName
  }));
}
var init_helpers3 = __esm({
  "../@aws-cdk/toolkit-lib/lib/actions/deploy/private/helpers.ts"() {
    "use strict";
    __name(buildParameterMap, "buildParameterMap");
    __name(removePublishedAssetsFromWorkGraph, "removePublishedAssetsFromWorkGraph");
  }
});

// ../@aws-cdk/toolkit-lib/lib/actions/deploy/private/index.ts
var init_private6 = __esm({
  "../@aws-cdk/toolkit-lib/lib/actions/deploy/private/index.ts"() {
    "use strict";
    init_deploy_options();
    init_helpers3();
  }
});

// ../@aws-cdk/toolkit-lib/lib/actions/diff/index.ts
var DiffMethod;
var init_diff4 = __esm({
  "../@aws-cdk/toolkit-lib/lib/actions/diff/index.ts"() {
    "use strict";
    DiffMethod = class _DiffMethod {
      constructor(method, options) {
        this.method = method;
        this.options = options;
      }
      static {
        __name(this, "DiffMethod");
      }
      /**
       * Use a changeset to compute the diff.
       *
       * This will create, analyze, and subsequently delete a changeset against the CloudFormation stack.
       */
      static ChangeSet(options = {}) {
        return new class extends _DiffMethod {
          options;
          constructor(opts) {
            super("change-set", opts);
            this.options = opts;
          }
        }(options);
      }
      static TemplateOnly(options = {}) {
        return new class extends _DiffMethod {
          options;
          constructor(opts) {
            super("template-only", opts);
            this.options = opts;
          }
        }(options);
      }
      /**
       * Use a local template file to compute the diff.
       */
      static LocalFile(path38) {
        return new class extends _DiffMethod {
          options;
          constructor(opts) {
            super("local-file", opts);
            this.options = opts;
          }
        }({ path: path38 });
      }
    };
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/refactoring/cloudformation.ts
var ResourceLocation, ResourceMapping;
var init_cloudformation4 = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/refactoring/cloudformation.ts"() {
    "use strict";
    ResourceLocation = class {
      constructor(stack, logicalResourceId) {
        this.stack = stack;
        this.logicalResourceId = logicalResourceId;
      }
      static {
        __name(this, "ResourceLocation");
      }
      toPath() {
        const resource = this.stack.template.Resources?.[this.logicalResourceId];
        const result2 = resource?.Metadata?.["aws:cdk:path"];
        if (result2 != null) {
          return result2;
        }
        return this.toLocationString();
      }
      toLocationString() {
        return `${this.stack.stackName}.${this.logicalResourceId}`;
      }
      getType() {
        const resource = this.stack.template.Resources?.[this.logicalResourceId ?? ""];
        return resource?.Type ?? "Unknown";
      }
      equalTo(other) {
        return this.logicalResourceId === other.logicalResourceId && this.stack.stackName === other.stack.stackName;
      }
      get stackName() {
        return this.stack.stackName;
      }
    };
    ResourceMapping = class {
      constructor(source, destination) {
        this.source = source;
        this.destination = destination;
      }
      static {
        __name(this, "ResourceMapping");
      }
      toTypedMapping() {
        return {
          // the type is the same in both source and destination,
          // so we can use either one
          type: this.source.getType(),
          sourcePath: this.source.toPath(),
          destinationPath: this.destination.toPath()
        };
      }
      toCloudFormation() {
        return {
          Source: {
            StackName: this.source.stack.stackName,
            LogicalResourceId: this.source.logicalResourceId
          },
          Destination: {
            StackName: this.destination.stack.stackName,
            LogicalResourceId: this.destination.logicalResourceId
          }
        };
      }
    };
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/refactoring/graph.ts
var ResourceGraph;
var init_graph = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/refactoring/graph.ts"() {
    "use strict";
    init_toolkit_error();
    ResourceGraph = class _ResourceGraph {
      static {
        __name(this, "ResourceGraph");
      }
      static fromStacks(stacks) {
        const exports2 = Object.fromEntries(
          stacks.flatMap(
            (s3) => Object.values(s3.template.Outputs ?? {}).filter((o3) => o3.Export != null && typeof o3.Export.Name === "string").map(
              (o3) => [o3.Export.Name, { stackName: s3.stackName, value: o3.Value }]
            )
          )
        );
        const resources = Object.fromEntries(
          stacks.flatMap(
            (s3) => Object.entries(s3.template.Resources ?? {}).map(
              ([id, res]) => [`${s3.stackName}.${id}`, res]
            )
          )
        );
        const edges = {};
        const reverseEdges = {};
        for (const id of Object.keys(resources)) {
          edges[id] = /* @__PURE__ */ new Set();
          reverseEdges[id] = /* @__PURE__ */ new Set();
        }
        const findDependencies = /* @__PURE__ */ __name((stackName, value) => {
          if (!value || typeof value !== "object") return [];
          if (Array.isArray(value)) {
            return value.flatMap((res) => findDependencies(stackName, res));
          }
          if ("Ref" in value) {
            return [`${stackName}.${value.Ref}`];
          }
          if ("Fn::GetAtt" in value) {
            const refTarget = Array.isArray(value["Fn::GetAtt"]) ? value["Fn::GetAtt"][0] : value["Fn::GetAtt"].split(".")[0];
            return [`${stackName}.${refTarget}`];
          }
          if ("Fn::ImportValue" in value) {
            const exp = exports2[value["Fn::ImportValue"]];
            if (exp != null) {
              const v6 = exp.value;
              if ("Fn::GetAtt" in v6) {
                const id = Array.isArray(v6["Fn::GetAtt"]) ? v6["Fn::GetAtt"][0] : v6["Fn::GetAtt"].split(".")[0];
                return [`${exp.stackName}.${id}`];
              }
              if ("Ref" in v6) {
                return [`${exp.stackName}.${v6.Ref}`];
              }
              return [`${exp.stackName}.${v6}`];
            }
          }
          const result2 = [];
          if ("DependsOn" in value) {
            if (Array.isArray(value.DependsOn)) {
              result2.push(...value.DependsOn.map((r3) => `${stackName}.${r3}`));
            } else {
              result2.push(`${stackName}.${value.DependsOn}`);
            }
          }
          result2.push(...Object.values(value).flatMap((res) => findDependencies(stackName, res)));
          return result2;
        }, "findDependencies");
        for (const [id, res] of Object.entries(resources)) {
          const stackName = id.split(".")[0];
          const deps = findDependencies(stackName, res || {});
          for (const dep of deps) {
            if (dep in resources && dep !== id) {
              edges[id].add(dep);
              reverseEdges[dep].add(id);
            }
          }
        }
        return new _ResourceGraph(edges, reverseEdges);
      }
      edges = {};
      reverseEdges = {};
      constructor(edges, reverseEdges) {
        this.edges = edges;
        this.reverseEdges = reverseEdges;
      }
      /**
       * Returns the sorted nodes in topological order.
       */
      get sortedNodes() {
        const result2 = [];
        const outDegree = Object.keys(this.edges).reduce((acc, k3) => {
          acc[k3] = this.edges[k3].size;
          return acc;
        }, {});
        const queue = Object.keys(outDegree).filter((k3) => outDegree[k3] === 0);
        while (queue.length > 0) {
          const node = queue.shift();
          result2.push(node);
          for (const nxt of this.reverseEdges[node]) {
            outDegree[nxt]--;
            if (outDegree[nxt] === 0) {
              queue.push(nxt);
            }
          }
        }
        return result2;
      }
      inNeighbors(node) {
        if (!(node in this.edges)) {
          throw new ToolkitError(`Node ${node} not found in the graph`);
        }
        return Array.from(this.reverseEdges[node] || []);
      }
      outNeighbors(node) {
        if (!(node in this.edges)) {
          throw new ToolkitError(`Node ${node} not found in the graph`);
        }
        return Array.from(this.edges[node] || []);
      }
      /**
       * Returns another graph with the same nodes, but with the edges inverted
       */
      opposite() {
        return new _ResourceGraph(this.reverseEdges, this.edges);
      }
    };
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/refactoring/digest.ts
function computeResourceDigests(stacks, direction = "direct") {
  const exports2 = Object.fromEntries(
    stacks.flatMap(
      (s3) => Object.values(s3.template.Outputs ?? {}).filter((o3) => o3.Export != null && typeof o3.Export.Name === "string").map(
        (o3) => [o3.Export.Name, { stackName: s3.stackName, value: o3.Value }]
      )
    )
  );
  const resources = Object.fromEntries(
    stacks.flatMap((s3) => {
      return Object.entries(s3.template.Resources ?? {}).filter(([_3, res]) => res.Type !== "AWS::CDK::Metadata").map(([id, res]) => [`${s3.stackName}.${id}`, res]);
    })
  );
  const graph = direction == "direct" ? ResourceGraph.fromStacks(stacks) : ResourceGraph.fromStacks(stacks).opposite();
  return computeDigestsInTopologicalOrder(graph, resources, exports2);
}
function computeDigestsInTopologicalOrder(graph, resources, exports2) {
  const nodes = graph.sortedNodes.filter((n3) => resources[n3] != null);
  const result2 = {};
  for (const id of nodes) {
    const resource = resources[id];
    const depDigests = Array.from(graph.outNeighbors(id)).map((d3) => result2[d3]);
    const propertiesHash = hashObject(stripReferences(stripConstructPath(resource), exports2));
    const toHash = resource.Type + propertiesHash + depDigests.join("");
    result2[id] = crypto6.createHash("sha256").update(toHash).digest("hex");
  }
  return result2;
}
function hashObject(obj) {
  const hash = crypto6.createHash("sha256");
  function addToHash(value) {
    if (value == null) {
      addToHash("null");
    } else if (typeof value === "object") {
      if (Array.isArray(value)) {
        value.forEach(addToHash);
      } else {
        Object.keys(value).sort().forEach((key) => {
          hash.update(key);
          addToHash(value[key]);
        });
      }
    } else {
      hash.update(typeof value + value.toString());
    }
  }
  __name(addToHash, "addToHash");
  addToHash(obj);
  return hash.digest("hex");
}
function stripReferences(value, exports2) {
  if (!value || typeof value !== "object") return value;
  if (Array.isArray(value)) {
    return value.map((x3) => stripReferences(x3, exports2));
  }
  if ("Ref" in value) {
    return { __cloud_ref__: "Ref" };
  }
  if ("Fn::GetAtt" in value) {
    return { __cloud_ref__: "Fn::GetAtt" };
  }
  if ("DependsOn" in value) {
    return { __cloud_ref__: "DependsOn" };
  }
  if ("Fn::ImportValue" in value) {
    const exp = exports2[value["Fn::ImportValue"]];
    if (exp != null) {
      const v6 = exp.value;
      if ("Ref" in v6) {
        return { __cloud_ref__: "Ref" };
      } else if ("Fn::GetAtt" in v6) {
        return { __cloud_ref__: "Fn::GetAtt" };
      }
    }
  }
  const result2 = {};
  for (const [k3, v6] of Object.entries(value)) {
    result2[k3] = stripReferences(v6, exports2);
  }
  return result2;
}
function stripConstructPath(resource) {
  if (resource?.Metadata?.["aws:cdk:path"] == null) {
    return resource;
  }
  const copy2 = JSON.parse(JSON.stringify(resource));
  delete copy2.Metadata["aws:cdk:path"];
  return copy2;
}
var crypto6;
var init_digest = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/refactoring/digest.ts"() {
    "use strict";
    crypto6 = __toESM(require("node:crypto"));
    init_graph();
    __name(computeResourceDigests, "computeResourceDigests");
    __name(computeDigestsInTopologicalOrder, "computeDigestsInTopologicalOrder");
    __name(hashObject, "hashObject");
    __name(stripReferences, "stripReferences");
    __name(stripConstructPath, "stripConstructPath");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/refactoring/exclude.ts
var import_cloud_assembly_schema5;
var init_exclude = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/refactoring/exclude.ts"() {
    "use strict";
    import_cloud_assembly_schema5 = __toESM(require_lib2());
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/refactoring/context.ts
function structuralOverrides(deployedStacks, localStacks) {
  const moves = resourceMoves(deployedStacks, localStacks, "opposite", true);
  const [nonAmbiguousMoves] = partitionByAmbiguity([], moves);
  return resourceMappings(nonAmbiguousMoves);
}
function resourceMoves(before, after, direction = "direct", ignoreModifications = false) {
  const digestsBefore = resourceDigests(before, direction);
  const digestsAfter = resourceDigests(after, direction);
  if (!(ignoreModifications || isomorphic(digestsBefore, digestsAfter))) {
    const message2 = ["A refactor operation cannot add, remove or update resources. Only resource moves and renames are allowed."];
    const difference2 = /* @__PURE__ */ __name((a3, b3) => {
      return Array.from(setDiff(new Set(Object.keys(a3)), new Set(Object.keys(b3)))).flatMap((k3) => a3[k3]).map((x3) => `  - ${x3.toPath()}`).sort().join("\n");
    }, "difference");
    const stackNames = /* @__PURE__ */ __name((stacks) => stacks.length === 0 ? "NONE" : stacks.map((s3) => s3.stackName).sort().join(", "), "stackNames");
    const onlyDeployed = difference2(digestsBefore, digestsAfter);
    const onlyLocal = difference2(digestsAfter, digestsBefore);
    if (onlyDeployed.length > 0) {
      message2.push(`The following resources are present only in the AWS environment:
${onlyDeployed}`);
    }
    if (onlyLocal.length > 0) {
      message2.push(`
The following resources are present only in your CDK application:
${onlyLocal}`);
    }
    message2.push("");
    message2.push("The following stacks were used in the comparison:");
    message2.push(`  - Deployed: ${stackNames(before)}`);
    message2.push(`  - Local: ${stackNames(after)}`);
    message2.push("");
    message2.push("Hint: by default, only deployed stacks that have the same name as a local stack are included.");
    message2.push("If you want to include additional deployed stacks for comparison, re-run the command with the option '--additional-stack-name=<STACK>' for each stack.");
    throw new ToolkitError(message2.join("\n"));
  }
  return Object.values(removeUnmovedResources(zip(digestsBefore, digestsAfter)));
}
function isomorphic(a3, b3) {
  const sameKeys = equalSets(new Set(Object.keys(a3)), new Set(Object.keys(b3)));
  return sameKeys && Object.entries(a3).every(([digest, locations]) => locations.length === b3[digest].length);
}
function removeUnmovedResources(moves) {
  const result2 = {};
  for (const [hash, [before, after]] of Object.entries(moves)) {
    const common = before.filter((b3) => after.some((a3) => a3.equalTo(b3)));
    result2[hash] = [
      before.filter((b3) => !common.some((c3) => b3.equalTo(c3))),
      after.filter((a3) => !common.some((c3) => a3.equalTo(c3)))
    ];
  }
  return result2;
}
function zip(m1, m22) {
  const result2 = {};
  for (const [hash, locations] of Object.entries(m1)) {
    if (hash in m22) {
      result2[hash] = [locations, m22[hash]];
    } else {
      result2[hash] = [locations, []];
    }
  }
  for (const [hash, locations] of Object.entries(m22)) {
    if (!(hash in m1)) {
      result2[hash] = [[], locations];
    }
  }
  return result2;
}
function resourceDigests(stacks, direction) {
  const stacksByName = /* @__PURE__ */ new Map();
  for (const stack of stacks) {
    stacksByName.set(stack.stackName, stack);
  }
  const digests = computeResourceDigests(stacks, direction);
  return groupByKey(
    Object.entries(digests).map(([loc, digest]) => {
      const [stackName, logicalId] = loc.split(".");
      const location = new ResourceLocation(stacksByName.get(stackName), logicalId);
      return [digest, location];
    })
  );
  function groupByKey(entries) {
    const result2 = {};
    for (const [key, value] of entries) {
      if (key in result2) {
        result2[key].push(value);
      } else {
        result2[key] = [value];
      }
    }
    return result2;
  }
  __name(groupByKey, "groupByKey");
}
function isAmbiguousMove(move) {
  const [pre, post] = move;
  return pre.length > 0 && post.length > 0 && (pre.length > 1 || post.length > 1);
}
function resourceMappings(movements) {
  return movements.filter(([pre, post]) => pre.length === 1 && post.length === 1 && !pre[0].equalTo(post[0])).map(([pre, post]) => new ResourceMapping(pre[0], post[0]));
}
function partitionByAmbiguity(overrides, moves) {
  const ambiguous = [];
  const nonAmbiguous = [];
  for (let move of moves) {
    if (!isAmbiguousMove(move)) {
      nonAmbiguous.push(move);
    } else {
      for (const override of overrides) {
        const resolvedMove = resolve13(override, move);
        if (resolvedMove != null) {
          nonAmbiguous.push(resolvedMove);
          move = remove2(override, move);
        }
      }
      if (!isAmbiguousMove(move)) {
        nonAmbiguous.push(move);
      } else {
        ambiguous.push(move);
      }
    }
  }
  function resolve13(override, move) {
    const [pre, post] = move;
    const source = pre.find((loc) => loc.equalTo(override.source));
    const destination = post.find((loc) => loc.equalTo(override.destination));
    return source && destination ? [[source], [destination]] : void 0;
  }
  __name(resolve13, "resolve");
  function remove2(override, move) {
    const [pre, post] = move;
    return [
      pre.filter((loc) => !loc.equalTo(override.source)),
      post.filter((loc) => !loc.equalTo(override.destination))
    ];
  }
  __name(remove2, "remove");
  return [nonAmbiguous, ambiguous];
}
async function replaceAwsPlaceholders2(object, aws) {
  let partition3 = /* @__PURE__ */ __name(async () => {
    const p3 = await aws.discoverPartition();
    partition3 = /* @__PURE__ */ __name(() => Promise.resolve(p3), "partition");
    return p3;
  }, "partition");
  let account = /* @__PURE__ */ __name(async () => {
    const a3 = await aws.discoverCurrentAccount();
    account = /* @__PURE__ */ __name(() => Promise.resolve(a3), "account");
    return a3;
  }, "account");
  return import_cx_api11.EnvironmentPlaceholders.replaceAsync(object, {
    async region() {
      return object.region ?? aws.discoverDefaultRegion();
    },
    async accountId() {
      return (await account()).accountId;
    },
    async partition() {
      return partition3();
    }
  });
}
var import_cdk_assets_lib5, import_cx_api11, RefactoringContext;
var init_context3 = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/refactoring/context.ts"() {
    "use strict";
    import_cdk_assets_lib5 = __toESM(require_lib6());
    import_cx_api11 = __toESM(require_lib3());
    init_cloudformation4();
    init_digest();
    init_toolkit_error();
    init_sets();
    init_environment();
    init_plugin2();
    RefactoringContext = class {
      static {
        __name(this, "RefactoringContext");
      }
      _mappings = [];
      ambiguousMoves = [];
      localStacks;
      assumeRoleArn;
      environment;
      constructor(props) {
        this.environment = props.environment;
        const moves = resourceMoves(props.deployedStacks, props.localStacks, "direct", props.ignoreModifications);
        const additionalOverrides = structuralOverrides(props.deployedStacks, props.localStacks);
        const overrides = (props.overrides ?? []).concat(additionalOverrides);
        const [nonAmbiguousMoves, ambiguousMoves] = partitionByAmbiguity(overrides, moves);
        this.ambiguousMoves = ambiguousMoves;
        this.localStacks = props.localStacks;
        this.assumeRoleArn = props.assumeRoleArn;
        this._mappings = resourceMappings(nonAmbiguousMoves);
      }
      get ambiguousPaths() {
        return this.ambiguousMoves.map(([a3, b3]) => [convert(a3), convert(b3)]);
        function convert(locations) {
          return locations.map((l3) => l3.toPath());
        }
        __name(convert, "convert");
      }
      get mappings() {
        return this._mappings;
      }
      async execute(stackDefinitions, sdkProvider, ioHelper) {
        if (this.mappings.length === 0) {
          return;
        }
        const assumeRoleArn = this.assumeRoleArn ?? await this.findRoleToAssume(sdkProvider);
        const sdk = (await sdkProvider.forEnvironment(this.environment, 1 /* ForWriting */, {
          assumeRoleArn
        })).sdk;
        await this.checkBootstrapVersion(sdk, ioHelper);
        const cfn = sdk.cloudFormation();
        const mappings = this.mappings;
        const input = {
          ResourceMappings: mappings.map((m3) => m3.toCloudFormation()),
          StackDefinitions: stackDefinitions
        };
        const refactor = await cfn.createStackRefactor(input);
        await cfn.waitUntilStackRefactorCreateComplete({
          StackRefactorId: refactor.StackRefactorId
        });
        await cfn.executeStackRefactor({
          StackRefactorId: refactor.StackRefactorId
        });
        await cfn.waitUntilStackRefactorExecuteComplete({
          StackRefactorId: refactor.StackRefactorId
        });
      }
      async checkBootstrapVersion(sdk, ioHelper) {
        const environmentResourcesRegistry = new EnvironmentResourcesRegistry();
        const envResources = environmentResourcesRegistry.for(this.environment, sdk, ioHelper);
        let bootstrapVersion = void 0;
        try {
          bootstrapVersion = (await envResources.lookupToolkit()).version;
        } catch (e3) {
        }
        if (bootstrapVersion != null && bootstrapVersion < 28) {
          const environment = `aws://${this.environment.account}/${this.environment.region}`;
          throw new ToolkitError(
            `The CDK toolkit stack in environment ${environment} doesn't support refactoring. Please run 'cdk bootstrap ${environment}' to update it.`
          );
        }
      }
      async findRoleToAssume(sdkProvider) {
        const env2 = this.environment;
        const roleArns = new Set(
          this.localStacks.filter((s3) => s3.environment.account === env2.account && s3.environment.region === env2.region).map((s3) => s3.assumeRoleArn)
        );
        if (roleArns.size === 0) {
          return void 0;
        }
        if (roleArns.size !== 1) {
          throw new ToolkitError(
            `Multiple stacks in environment aws://${env2.account}/${env2.region} have different deployment role ARNs. Cannot proceed.`
          );
        }
        const arn = Array.from(roleArns)[0];
        if (arn != null) {
          const resolvedEnv = await sdkProvider.resolveEnvironment(env2);
          const region = resolvedEnv.region;
          return (await replaceAwsPlaceholders2({ region, assumeRoleArn: arn }, new import_cdk_assets_lib5.DefaultAwsClient())).assumeRoleArn;
        }
        return void 0;
      }
    };
    __name(structuralOverrides, "structuralOverrides");
    __name(resourceMoves, "resourceMoves");
    __name(isomorphic, "isomorphic");
    __name(removeUnmovedResources, "removeUnmovedResources");
    __name(zip, "zip");
    __name(resourceDigests, "resourceDigests");
    __name(isAmbiguousMove, "isAmbiguousMove");
    __name(resourceMappings, "resourceMappings");
    __name(partitionByAmbiguity, "partitionByAmbiguity");
    __name(replaceAwsPlaceholders2, "replaceAwsPlaceholders");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/refactoring/index.ts
async function getDeployedStacks(sdkProvider, environment) {
  const cfn = (await sdkProvider.forEnvironment(environment, 0 /* ForReading */)).sdk.cloudFormation();
  const summaries = await cfn.paginatedListStacks({
    StackStatusFilter: [
      "CREATE_COMPLETE",
      "UPDATE_COMPLETE",
      "UPDATE_ROLLBACK_COMPLETE",
      "IMPORT_COMPLETE",
      "ROLLBACK_COMPLETE"
    ]
  });
  const normalize3 = /* @__PURE__ */ __name(async (summary) => {
    const templateCommandOutput = await cfn.getTemplate({ StackName: summary.StackName });
    const template = deserializeStructure(templateCommandOutput.TemplateBody ?? "{}");
    return {
      environment,
      stackName: summary.StackName,
      template
    };
  }, "normalize");
  return Promise.all(summaries.map(normalize3));
}
function formatEnvironmentSectionHeader2(environment) {
  const env2 = `aws://${environment.account}/${environment.region}`;
  return formatToStream((stream3) => (0, import_cloudformation_diff2.formatEnvironmentSectionHeader)(stream3, env2));
}
function formatTypedMappings2(mappings) {
  return formatToStream((stream3) => (0, import_cloudformation_diff2.formatTypedMappings)(stream3, mappings));
}
function formatAmbiguousMappings2(paths) {
  return formatToStream((stream3) => (0, import_cloudformation_diff2.formatAmbiguousMappings)(stream3, paths));
}
function formatToStream(cb) {
  const stream3 = new StringWriteStream();
  cb(stream3);
  return stream3.toString();
}
async function groupStacks(sdkProvider, localStacks, additionalStackNames) {
  const environments = /* @__PURE__ */ new Map();
  for (const stack of localStacks) {
    const environment = await sdkProvider.resolveEnvironment(stack.environment);
    const key = hashObject(environment);
    environments.set(key, environment);
  }
  const localByEnvironment = await indexBy(
    localStacks,
    async (s3) => hashObject(await sdkProvider.resolveEnvironment(s3.environment))
  );
  const groups = [];
  for (let key of localByEnvironment.keys()) {
    const environment = environments.get(key);
    const allDeployedStacks = await getDeployedStacks(sdkProvider, environment);
    const local = localByEnvironment.get(key);
    const hasLocalCounterpart = /* @__PURE__ */ __name((s3) => local.some((l3) => l3.stackName === s3.stackName), "hasLocalCounterpart");
    const wasExplicitlyProvided = /* @__PURE__ */ __name((s3) => additionalStackNames.includes(s3.stackName), "wasExplicitlyProvided");
    groups.push({
      environment,
      deployedStacks: allDeployedStacks.filter((s3) => hasLocalCounterpart(s3) || wasExplicitlyProvided(s3)),
      localStacks: local
    });
  }
  return groups;
}
var import_cloudformation_diff2;
var init_refactoring = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/refactoring/index.ts"() {
    "use strict";
    import_cloudformation_diff2 = __toESM(require_lib11());
    init_util3();
    init_plugin2();
    init_streams();
    init_cloudformation4();
    init_digest();
    init_toolkit_error();
    init_exclude();
    init_context3();
    __name(getDeployedStacks, "getDeployedStacks");
    __name(formatEnvironmentSectionHeader2, "formatEnvironmentSectionHeader");
    __name(formatTypedMappings2, "formatTypedMappings");
    __name(formatAmbiguousMappings2, "formatAmbiguousMappings");
    __name(formatToStream, "formatToStream");
    __name(groupStacks, "groupStacks");
  }
});

// ../@aws-cdk/toolkit-lib/lib/actions/refactor/private/mapping-helpers.ts
function parseMappingGroups(s3) {
  const mappingGroups = doParse();
  for (let group of mappingGroups) {
    const destinations = /* @__PURE__ */ new Set();
    for (const destination of Object.values(group.resources)) {
      if (destinations.has(destination)) {
        throw new ToolkitError(
          `Duplicate destination resource '${destination}' in environment ${group.account}/${group.region}`
        );
      }
      destinations.add(destination);
    }
  }
  return mappingGroups;
  function doParse() {
    const content = JSON.parse(s3);
    if (content.environments || !Array.isArray(content.environments)) {
      return content.environments;
    } else {
      throw new ToolkitError("Expected an 'environments' array");
    }
  }
  __name(doParse, "doParse");
}
async function mappingsByEnvironment(stackArtifacts, sdkProvider, ignoreModifications) {
  const groups = await groupStacks(sdkProvider, stackArtifacts, []);
  return groups.map((group) => {
    const context = new RefactoringContext({
      ...group,
      ignoreModifications
    });
    return {
      environment: context.environment,
      mappings: Object.fromEntries(
        context.mappings.map((m3) => [m3.source.toLocationString(), m3.destination.toLocationString()])
      )
    };
  });
}
var init_mapping_helpers = __esm({
  "../@aws-cdk/toolkit-lib/lib/actions/refactor/private/mapping-helpers.ts"() {
    "use strict";
    init_refactoring();
    init_toolkit_error();
    __name(parseMappingGroups, "parseMappingGroups");
    __name(mappingsByEnvironment, "mappingsByEnvironment");
  }
});

// ../@aws-cdk/toolkit-lib/lib/actions/diff/private/helpers.ts
function prepareDiff(ioHelper, stacks, deployments, sdkProvider, options) {
  switch (options.method?.method ?? DiffMethod.ChangeSet().method) {
    case "local-file":
      return localFileDiff(stacks, options);
    case "template-only":
      return cfnDiff2(ioHelper, stacks, deployments, options, sdkProvider, false);
    case "change-set":
      return cfnDiff2(ioHelper, stacks, deployments, options, sdkProvider, true);
    default:
      throw new ToolkitError(formatErrorMessage(`Unknown diff method ${options.method}`));
  }
}
async function localFileDiff(stacks, options) {
  const methodOptions = options.method?.options ?? {};
  if (stacks.stackCount !== 1) {
    throw new ToolkitError(
      "Can only select one stack when comparing to fixed template. Use --exclusively to avoid selecting multiple stacks."
    );
  }
  if (!await fs27.pathExists(methodOptions.path)) {
    throw new ToolkitError(`There is no file at ${methodOptions.path}`);
  }
  const file = fs27.readFileSync(methodOptions.path).toString();
  const template = deserializeStructure(file);
  return [{
    oldTemplate: template,
    newTemplate: stacks.firstStack
  }];
}
async function cfnDiff2(ioHelper, stacks, deployments, options, sdkProvider, includeChangeSet) {
  const templateInfos = [];
  const methodOptions = options.method?.options ?? {};
  const allMappings = options.includeMoves ? await mappingsByEnvironment(stacks.stackArtifacts, sdkProvider, true) : [];
  for (const stack of stacks.stackArtifacts) {
    const templateWithNestedStacks = await deployments.readCurrentTemplateWithNestedStacks(
      stack,
      methodOptions.compareAgainstProcessedTemplate
    );
    const currentTemplate = templateWithNestedStacks.deployedRootTemplate;
    const nestedStacks = templateWithNestedStacks.nestedStacks;
    const migrator = new ResourceMigrator({ deployments, ioHelper });
    const resourcesToImport = await migrator.tryGetResources(await deployments.resolveEnvironment(stack));
    if (resourcesToImport) {
      removeNonImportResources(stack);
    }
    const changeSet = includeChangeSet ? await changeSetDiff(
      ioHelper,
      deployments,
      stack,
      sdkProvider,
      resourcesToImport,
      methodOptions.parameters,
      methodOptions.fallbackToTemplate,
      methodOptions.importExistingResources
    ) : void 0;
    const mappings = allMappings.find(
      (m3) => m3.environment.region === stack.environment.region && m3.environment.account === stack.environment.account
    )?.mappings ?? {};
    templateInfos.push({
      oldTemplate: currentTemplate,
      newTemplate: stack,
      isImport: !!resourcesToImport,
      nestedStacks,
      changeSet,
      mappings
    });
  }
  return templateInfos;
}
async function changeSetDiff(ioHelper, deployments, stack, sdkProvider, resourcesToImport, parameters = {}, fallBackToTemplate = true, importExistingResources = false) {
  let stackExists = false;
  try {
    stackExists = await deployments.stackExists({
      stack,
      deployName: stack.stackName,
      tryLookupRole: true
    });
  } catch (e3) {
    if (!fallBackToTemplate) {
      throw new ToolkitError(`describeStacks call failed with ${e3} for ${stack.stackName}, set fallBackToTemplate to true or use DiffMethod.templateOnly to base the diff on template differences.`);
    }
    await ioHelper.defaults.debug(`Checking if the stack ${stack.stackName} exists before creating the changeset has failed, will base the diff on template differences.
`);
    await ioHelper.defaults.debug(formatErrorMessage(e3));
    stackExists = false;
  }
  if (stackExists) {
    return createDiffChangeSet(ioHelper, {
      stack,
      uuid: v4_default2(),
      deployments,
      willExecute: false,
      sdkProvider,
      parameters,
      resourcesToImport,
      failOnError: !fallBackToTemplate,
      importExistingResources
    });
  } else {
    if (!fallBackToTemplate) {
      throw new ToolkitError(`the stack '${stack.stackName}' has not been deployed to CloudFormation, set fallBackToTemplate to true or use DiffMethod.templateOnly to base the diff on template differences.`);
    }
    await ioHelper.defaults.debug(`the stack '${stack.stackName}' has not been deployed to CloudFormation, skipping changeset creation.`);
    return;
  }
}
function appendObject(obj1, obj2) {
  for (const key in obj2) {
    obj1[key] = obj2[key];
  }
  return obj1;
}
var fs27;
var init_helpers4 = __esm({
  "../@aws-cdk/toolkit-lib/lib/actions/diff/private/helpers.ts"() {
    "use strict";
    fs27 = __toESM(require_lib4());
    init_esm8();
    init_diff4();
    init_cfn_api();
    init_resource_import();
    init_toolkit_error();
    init_util3();
    init_mapping_helpers();
    __name(prepareDiff, "prepareDiff");
    __name(localFileDiff, "localFileDiff");
    __name(cfnDiff2, "cfnDiff");
    __name(changeSetDiff, "changeSetDiff");
    __name(appendObject, "appendObject");
  }
});

// ../@aws-cdk/toolkit-lib/lib/actions/diff/private/index.ts
var init_private7 = __esm({
  "../@aws-cdk/toolkit-lib/lib/actions/diff/private/index.ts"() {
    "use strict";
    init_helpers4();
  }
});

// ../@aws-cdk/toolkit-lib/lib/actions/watch/private/helpers.ts
var WATCH_EXCLUDE_DEFAULTS;
var init_helpers5 = __esm({
  "../@aws-cdk/toolkit-lib/lib/actions/watch/private/helpers.ts"() {
    "use strict";
    WATCH_EXCLUDE_DEFAULTS = [
      // CDK
      "README.md",
      "cdk*.json",
      // JS
      "package*.json",
      "yarn.lock",
      "pnpm-lock.yaml",
      "bun.lockb",
      "bun.lock",
      "deno.lock",
      // TS
      "tsconfig*.json",
      "**/*.d.ts",
      "test",
      // Python
      "requirements*.txt",
      "source.bat",
      "**/__init__.py",
      "**/__pycache__",
      "tests",
      // C# & F#
      "**/*.sln",
      "**/*.csproj",
      "**/*.fsproj",
      // Go
      "go.mod",
      "go.sum",
      "**/*test.go"
    ];
  }
});

// ../@aws-cdk/toolkit-lib/lib/actions/watch/private/index.ts
var init_private8 = __esm({
  "../@aws-cdk/toolkit-lib/lib/actions/watch/private/index.ts"() {
    "use strict";
    init_helpers5();
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/drift/drift-formatter.ts
var import_node_util4, cxschema6, import_cloudformation_diff3, import_client_cloudformation4, chalk22, DriftFormatter, ADDITION2, CONTEXT2, UPDATE2, REMOVAL2;
var init_drift_formatter = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/drift/drift-formatter.ts"() {
    "use strict";
    import_node_util4 = require("node:util");
    cxschema6 = __toESM(require_lib2());
    import_cloudformation_diff3 = __toESM(require_lib11());
    import_client_cloudformation4 = __toESM(require_dist_cjs80());
    chalk22 = __toESM(require_source());
    DriftFormatter = class {
      static {
        __name(this, "DriftFormatter");
      }
      stackName;
      stack;
      resourceDriftResults;
      allStackResources;
      constructor(props) {
        this.stack = props.stack;
        this.stackName = props.stack.displayName ?? props.stack.stackName;
        this.resourceDriftResults = props.resourceDrifts;
        this.allStackResources = /* @__PURE__ */ new Map();
        Object.keys(this.stack.template.Resources || {}).forEach((id) => {
          const resource = this.stack.template.Resources[id];
          if (resource.Type === "AWS::CDK::Metadata") {
            return;
          }
          this.allStackResources.set(id, resource.Type);
        });
      }
      /**
       * Format the stack drift detection results
       */
      formatStackDrift() {
        const formatterOutput = this.formatStackDriftChanges(this.buildLogicalToPathMap());
        const actualDrifts = this.resourceDriftResults.filter((d3) => (d3.StackResourceDriftStatus === "MODIFIED" || d3.StackResourceDriftStatus === "DELETED") && d3.ResourceType !== "AWS::CDK::Metadata");
        const stackHeader = (0, import_node_util4.format)(`Stack ${chalk22.bold(this.stackName)}
`);
        if (actualDrifts.length === 0) {
          const finalResult2 = chalk22.green("No drift detected\n");
          return {
            numResourcesWithDrift: 0,
            numResourcesUnchecked: this.allStackResources.size - this.resourceDriftResults.length,
            stackHeader,
            unchecked: formatterOutput.unchecked,
            summary: finalResult2
          };
        }
        const finalResult = chalk22.yellow(`
${actualDrifts.length} resource${actualDrifts.length === 1 ? "" : "s"} ${actualDrifts.length === 1 ? "has" : "have"} drifted from their expected configuration
`);
        return {
          numResourcesWithDrift: actualDrifts.length,
          numResourcesUnchecked: this.allStackResources.size - this.resourceDriftResults.length,
          stackHeader,
          unchanged: formatterOutput.unchanged,
          unchecked: formatterOutput.unchecked,
          modified: formatterOutput.modified,
          deleted: formatterOutput.deleted,
          summary: finalResult
        };
      }
      buildLogicalToPathMap() {
        const map3 = {};
        for (const md of this.stack.findMetadataByType(cxschema6.ArtifactMetadataEntryType.LOGICAL_ID)) {
          map3[md.data] = md.path;
        }
        return map3;
      }
      /**
       * Renders stack drift information
       *
       * @param logicalToPathMap - A map from logical ID to construct path
       */
      formatStackDriftChanges(logicalToPathMap = {}) {
        if (this.resourceDriftResults.length === 0) {
          return {};
        }
        let unchanged;
        let unchecked;
        let modified;
        let deleted;
        const drifts = this.resourceDriftResults;
        const unchangedResources = drifts.filter((d3) => d3.StackResourceDriftStatus === import_client_cloudformation4.StackResourceDriftStatus.IN_SYNC);
        if (unchangedResources.length > 0) {
          unchanged = this.printSectionHeader("Resources In Sync");
          for (const drift of unchangedResources) {
            if (!drift.LogicalResourceId || !drift.ResourceType) continue;
            unchanged += `${CONTEXT2} ${chalk22.cyan(drift.ResourceType)} ${this.formatLogicalId(logicalToPathMap, drift.LogicalResourceId)}
`;
          }
          unchanged += this.printSectionFooter();
        }
        const uncheckedResources = Array.from(this.allStackResources.keys()).filter((logicalId) => {
          const drift = drifts.find((d3) => d3.LogicalResourceId === logicalId);
          return !drift || drift.StackResourceDriftStatus === import_client_cloudformation4.StackResourceDriftStatus.UNKNOWN;
        });
        if (uncheckedResources.length > 0) {
          unchecked = this.printSectionHeader("Unchecked Resources");
          for (const logicalId of uncheckedResources) {
            const resourceType = this.allStackResources.get(logicalId);
            unchecked += `${CONTEXT2} ${chalk22.cyan(resourceType)} ${this.formatLogicalId(logicalToPathMap, logicalId)}
`;
          }
          unchecked += this.printSectionFooter();
        }
        const modifiedResources = drifts.filter((d3) => d3.StackResourceDriftStatus === import_client_cloudformation4.StackResourceDriftStatus.MODIFIED && d3.ResourceType !== "AWS::CDK::Metadata");
        if (modifiedResources.length > 0) {
          modified = this.printSectionHeader("Modified Resources");
          for (const drift of modifiedResources) {
            if (!drift.LogicalResourceId || !drift.ResourceType) continue;
            modified += `${UPDATE2} ${chalk22.cyan(drift.ResourceType)} ${this.formatLogicalId(logicalToPathMap, drift.LogicalResourceId)}
`;
            if (drift.PropertyDifferences) {
              const propDiffs = drift.PropertyDifferences;
              for (let i3 = 0; i3 < propDiffs.length; i3++) {
                const diff = propDiffs[i3];
                if (!diff.PropertyPath) continue;
                const difference2 = new import_cloudformation_diff3.Difference(diff.ExpectedValue, diff.ActualValue);
                modified += this.formatTreeDiff(diff.PropertyPath, difference2, i3 === propDiffs.length - 1);
              }
            }
          }
          modified += this.printSectionFooter();
        }
        const deletedResources = drifts.filter((d3) => d3.StackResourceDriftStatus === import_client_cloudformation4.StackResourceDriftStatus.DELETED && d3.ResourceType !== "AWS::CDK::Metadata");
        if (deletedResources.length > 0) {
          deleted = this.printSectionHeader("Deleted Resources");
          for (const drift of deletedResources) {
            if (!drift.LogicalResourceId || !drift.ResourceType) continue;
            deleted += `${REMOVAL2} ${chalk22.cyan(drift.ResourceType)} ${this.formatLogicalId(logicalToPathMap, drift.LogicalResourceId)}
`;
          }
          deleted += this.printSectionFooter();
        }
        return { unchanged, unchecked, modified, deleted };
      }
      formatLogicalId(logicalToPathMap, logicalId) {
        const path38 = logicalToPathMap[logicalId];
        if (!path38) return logicalId;
        let normalizedPath = path38;
        if (normalizedPath.startsWith("/")) {
          normalizedPath = normalizedPath.slice(1);
        }
        let parts = normalizedPath.split("/");
        if (parts.length > 1) {
          parts = parts.slice(1);
          if (parts.length > 1) {
            const last = parts[parts.length - 1];
            if (last === "Resource" || last === "Default") {
              parts = parts.slice(0, parts.length - 1);
            }
          }
          normalizedPath = parts.join("/");
        }
        return `${normalizedPath} ${chalk22.gray(logicalId)}`;
      }
      printSectionHeader(title) {
        return `${chalk22.underline(chalk22.bold(title))}
`;
      }
      printSectionFooter() {
        return "\n";
      }
      formatTreeDiff(propertyPath, difference2, isLast) {
        let result2 = (0, import_node_util4.format)(
          " %s\u2500 %s %s\n",
          isLast ? "\u2514" : "\u251C",
          difference2.isAddition ? ADDITION2 : difference2.isRemoval ? REMOVAL2 : UPDATE2,
          propertyPath
        );
        if (difference2.isUpdate) {
          result2 += (0, import_node_util4.format)("     \u251C\u2500 %s %s\n", REMOVAL2, chalk22.red(difference2.oldValue));
          result2 += (0, import_node_util4.format)("     \u2514\u2500 %s %s\n", ADDITION2, chalk22.green(difference2.newValue));
        }
        return result2;
      }
    };
    ADDITION2 = chalk22.green("[+]");
    CONTEXT2 = chalk22.grey("[ ]");
    UPDATE2 = chalk22.yellow("[~]");
    REMOVAL2 = chalk22.red("[-]");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/drift/drift.ts
async function detectStackDrift(cfn, ioHelper, stackName) {
  const driftDetection = await cfn.detectStackDrift({
    StackName: stackName
  });
  await ioHelper.defaults.trace(
    (0, import_node_util5.format)("Detecting drift with ID %s for stack %s...", driftDetection.StackDriftDetectionId, stackName)
  );
  const driftStatus = await waitForDriftDetection(cfn, ioHelper, driftDetection.StackDriftDetectionId);
  if (driftStatus?.StackDriftStatus === "UNKNOWN") {
    await ioHelper.defaults.trace(
      `Stack drift status is UNKNOWN. This may occur when CloudFormation is unable to detect drift for at least one resource and all other resources are IN_SYNC.
Reason: ${formatReason(driftStatus.DetectionStatusReason)}`
    );
  }
  const driftResults = await cfn.describeStackResourceDrifts({
    StackName: stackName
  });
  const unknownResources = driftResults.StackResourceDrifts?.filter(
    (drift) => drift.StackResourceDriftStatus === "UNKNOWN"
  );
  if (unknownResources && unknownResources.length > 0) {
    await ioHelper.defaults.trace(
      "Some resources have UNKNOWN drift status. This may be due to insufficient permissions or throttling:\n" + unknownResources.map(
        (r3) => `  - ${r3.LogicalResourceId}: ${formatReason(r3.DriftStatusReason)}`
      ).join("\n")
    );
  }
  return driftResults;
}
async function waitForDriftDetection(cfn, ioHelper, driftDetectionId) {
  const maxWaitForDrift = 3e5;
  const timeBetweenOutputs = 1e4;
  const timeBetweenApiCalls = 2e3;
  const deadline = Date.now() + maxWaitForDrift;
  let checkIn = Date.now() + timeBetweenOutputs;
  while (true) {
    const response = await cfn.describeStackDriftDetectionStatus({
      StackDriftDetectionId: driftDetectionId
    });
    if (response.DetectionStatus === "DETECTION_COMPLETE") {
      return response;
    }
    if (response.DetectionStatus === "DETECTION_FAILED") {
      throw new ToolkitError(`Drift detection failed: ${formatReason(response.DetectionStatusReason)}`);
    }
    if (Date.now() > deadline) {
      throw new ToolkitError(`Drift detection failed: Timed out after ${maxWaitForDrift / 1e3} seconds.`);
    }
    if (Date.now() > checkIn) {
      await ioHelper.defaults.trace("Waiting for drift detection to complete...");
      checkIn = Date.now() + timeBetweenOutputs;
    }
    await new Promise((resolve13) => setTimeout(resolve13, timeBetweenApiCalls));
  }
}
var import_node_util5;
var init_drift2 = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/drift/drift.ts"() {
    "use strict";
    import_node_util5 = require("node:util");
    init_toolkit_error();
    init_string_manipulation();
    __name(detectStackDrift, "detectStackDrift");
    __name(waitForDriftDetection, "waitForDriftDetection");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/drift/index.ts
var init_drift3 = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/drift/index.ts"() {
    "use strict";
    init_drift_formatter();
    init_drift2();
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/refactoring/stack-definitions.ts
function generateStackDefinitions(mappings, deployedStacks, localStacks) {
  const deployedStackMap = new Map(deployedStacks.map((s3) => [s3.stackName, s3]));
  for (const localStack of localStacks) {
    const deployedStack = deployedStackMap.get(localStack.stackName);
    const localTemplate = localStack.template;
    const deployedTemplate = deployedStack?.template;
    if (deployedTemplate?.Resources?.CDKMetadata != null) {
      localTemplate.Resources = localTemplate.Resources ?? {};
      localTemplate.Resources.CDKMetadata = deployedTemplate.Resources.CDKMetadata;
    } else {
      delete localTemplate.Resources?.CDKMetadata;
    }
  }
  const stacksToProcess = localStacks.filter((localStack) => {
    const deployedStack = deployedStackMap.get(localStack.stackName);
    return !deployedStack || !deepEqual4(localStack.template, deployedStack.template);
  });
  for (let mapping of mappings) {
    const stackName = mapping.source.stackName;
    if (!localStacks.some((s3) => s3.stackName === stackName)) {
      const deployedStack = deployedStackMap.get(stackName);
      delete deployedStack?.template.Resources?.[mapping.source.logicalResourceId];
      delete deployedStack?.template.Outputs;
      if (deployedStack && !stacksToProcess.some((s3) => s3.stackName === stackName)) {
        stacksToProcess.push(deployedStack);
      }
    }
  }
  for (const stack of stacksToProcess) {
    if (!deployedStacks.some((deployed) => deployed.stackName === stack.stackName)) {
      if ("Rules" in stack.template) {
        delete stack.template.Rules;
      }
      if ("Parameters" in stack.template) {
        delete stack.template.Parameters;
      }
    }
  }
  return stacksToProcess.map((stack) => ({
    StackName: stack.stackName,
    TemplateBody: JSON.stringify(stack.template)
  }));
}
var deepEqual4;
var init_stack_definitions = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/refactoring/stack-definitions.ts"() {
    "use strict";
    deepEqual4 = require_fast_deep_equal();
    __name(generateStackDefinitions, "generateStackDefinitions");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/tags/private/util.ts
function tagsForStack(stack) {
  return Object.entries(stack.tags).map(([Key, Value]) => ({ Key, Value }));
}
var init_util7 = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/tags/private/util.ts"() {
    "use strict";
    __name(tagsForStack, "tagsForStack");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/tags/private/index.ts
var init_private9 = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/tags/private/index.ts"() {
    "use strict";
    init_util7();
  }
});

// ../@aws-cdk/toolkit-lib/lib/util/concurrency.ts
var pLimit4;
var init_concurrency = __esm({
  "../@aws-cdk/toolkit-lib/lib/util/concurrency.ts"() {
    "use strict";
    pLimit4 = require_p_limit();
  }
});

// ../@aws-cdk/toolkit-lib/lib/util/promises.ts
function promiseWithResolvers() {
  let resolve13, reject;
  const promise = new Promise((res, rej) => {
    resolve13 = res;
    reject = rej;
  });
  return { promise, resolve: resolve13, reject };
}
var init_promises = __esm({
  "../@aws-cdk/toolkit-lib/lib/util/promises.ts"() {
    "use strict";
    __name(promiseWithResolvers, "promiseWithResolvers");
  }
});

// ../@aws-cdk/toolkit-lib/lib/toolkit/toolkit.ts
var import_dispose_polyfill5, path26, import_cloud_assembly_schema6, cxapi8, chalk23, chokidar, fs28, Toolkit;
var init_toolkit = __esm({
  "../@aws-cdk/toolkit-lib/lib/toolkit/toolkit.ts"() {
    "use strict";
    import_dispose_polyfill5 = __toESM(require_dispose_polyfill());
    path26 = __toESM(require("node:path"));
    import_cloud_assembly_schema6 = __toESM(require_lib2());
    cxapi8 = __toESM(require_lib3());
    chalk23 = __toESM(require_source());
    chokidar = __toESM(require_chokidar());
    fs28 = __toESM(require_lib4());
    init_non_interactive_io_host();
    init_private4();
    init_toolkit_error();
    init_bootstrap3();
    init_deploy3();
    init_private6();
    init_private7();
    init_private8();
    init_aws_auth();
    init_awscli_compatible();
    init_private2();
    init_bootstrap();
    init_cloud_assembly2();
    init_private3();
    init_source_builder();
    init_deployments2();
    init_diff3();
    init_drift3();
    init_drift_formatter();
    init_private();
    init_logs_monitor3();
    init_plugin2();
    init_refactoring();
    init_cloudformation4();
    init_context3();
    init_stack_definitions();
    init_resource_import();
    init_private9();
    init_toolkit_info();
    init_work_graph2();
    init_payloads();
    init_util3();
    init_concurrency();
    init_promises();
    Toolkit = class extends CloudAssemblySourceBuilder {
      constructor(props = {}) {
        super();
        this.props = props;
        this.toolkitStackName = props.toolkitStackName ?? DEFAULT_TOOLKIT_STACK_NAME;
        this.pluginHost = props.pluginHost ?? new PluginHost();
        let ioHost = props.ioHost ?? new NonInteractiveIoHost();
        if (props.emojis === false) {
          ioHost = withoutEmojis(ioHost);
        }
        if (props.color === false) {
          ioHost = withoutColor(ioHost);
        }
        this.ioHost = withTrimmedWhitespace(ioHost);
        this.baseCredentials = props.sdkConfig?.baseCredentials ?? BaseCredentials.awsCliCompatible();
        this.unstableFeatures = props.unstableFeatures ?? [];
      }
      static {
        __name(this, "Toolkit");
      }
      /**
       * The toolkit stack name used for bootstrapping resources.
       */
      toolkitStackName;
      /**
       * The IoHost of this Toolkit
       */
      ioHost;
      /**
       * The plugin host for loading and managing plugins
       */
      pluginHost;
      /**
       * Cache of the internal SDK Provider instance
       */
      sdkProviderCache;
      baseCredentials;
      unstableFeatures;
      /**
       * Access to the AWS SDK
       * @internal
       */
      async sdkProvider(action) {
        if (!this.sdkProviderCache) {
          const ioHelper = asIoHelper(this.ioHost, action);
          const clientConfig = {
            requestHandler: sdkRequestHandler(this.props.sdkConfig?.httpOptions?.agent)
          };
          const config = await this.baseCredentials.sdkBaseConfig(ioHelper, clientConfig);
          this.sdkProviderCache = new SdkProvider(config.credentialProvider, config.defaultRegion, {
            ioHelper,
            logger: new IoHostSdkLogger(ioHelper),
            pluginHost: this.pluginHost,
            requestHandler: clientConfig.requestHandler
          });
        }
        return this.sdkProviderCache;
      }
      /**
       * Helper to provide the CloudAssemblySourceBuilder with required toolkit services
       * @internal
       */
      async sourceBuilderServices() {
        return {
          ioHelper: asIoHelper(this.ioHost, "assembly"),
          sdkProvider: await this.sdkProvider("assembly"),
          pluginHost: this.pluginHost
        };
      }
      /**
       * Bootstrap Action
       */
      async bootstrap(environments, options = {}) {
        const startTime = Date.now();
        const results = [];
        const ioHelper = asIoHelper(this.ioHost, "bootstrap");
        const bootstrapEnvironments = await environments.getEnvironments(this.ioHost);
        const source = options.source ?? BootstrapSource.default();
        const parameters = options.parameters;
        const bootstrapper = new Bootstrapper(source, ioHelper);
        const sdkProvider = await this.sdkProvider("bootstrap");
        const limit = pLimit4(20);
        await Promise.all(bootstrapEnvironments.map((environment, currentIdx) => limit(async () => {
          const bootstrapSpan = await ioHelper.span(SPAN.BOOTSTRAP_SINGLE).begin(`${chalk23.bold(environment.name)}: bootstrapping...`, {
            total: bootstrapEnvironments.length,
            current: currentIdx + 1,
            environment
          });
          try {
            const bootstrapResult = await bootstrapper.bootstrapEnvironment(
              environment,
              sdkProvider,
              {
                ...options,
                toolkitStackName: this.toolkitStackName,
                source,
                parameters: parameters?.parameters,
                usePreviousParameters: parameters?.keepExistingParameters
              }
            );
            const message2 = bootstrapResult.noOp ? ` \u2705  ${environment.name} (no changes)` : ` \u2705  ${environment.name}`;
            await ioHelper.notify(IO.CDK_TOOLKIT_I9900.msg(chalk23.green("\n" + message2), { environment }));
            const envTime = await bootstrapSpan.end();
            const result2 = {
              environment,
              status: bootstrapResult.noOp ? "no-op" : "success",
              duration: envTime.asMs
            };
            results.push(result2);
          } catch (e3) {
            await ioHelper.notify(IO.CDK_TOOLKIT_E9900.msg(`
 \u274C  ${chalk23.bold(environment.name)} failed: ${formatErrorMessage(e3)}`, { error: e3 }));
            throw e3;
          }
        })));
        return {
          environments: results,
          duration: Date.now() - startTime
        };
      }
      /**
       * Synth Action
       *
       * The caller assumes ownership of the `CachedCloudAssembly` and is responsible for calling `dispose()` on
       * it after use.
       */
      async synth(cx, options = {}) {
        const ioHelper = asIoHelper(this.ioHost, "synth");
        const selectStacks = options.stacks ?? ALL_STACKS;
        const synthSpan = await ioHelper.span(SPAN.SYNTH_ASSEMBLY).begin({ stacks: selectStacks });
        const assembly = await assemblyFromSource(synthSpan.asHelper, cx);
        const stacks = await assembly.selectStacksV2(selectStacks);
        const autoValidateStacks = options.validateStacks ? [assembly.selectStacksForValidation()] : [];
        await this.validateStacksMetadata(stacks.concat(...autoValidateStacks), synthSpan.asHelper);
        await synthSpan.end();
        const message2 = `Successfully synthesized to ${chalk23.blue(path26.resolve(stacks.assembly.directory))}`;
        const assemblyData = {
          assemblyDirectory: stacks.assembly.directory,
          stacksCount: stacks.stackCount,
          stackIds: stacks.hierarchicalIds
        };
        if (stacks.stackCount === 1) {
          const firstStack = stacks.firstStack;
          const template = firstStack.template;
          const obscuredTemplate = obscureTemplate(template);
          await ioHelper.notify(IO.CDK_TOOLKIT_I1901.msg(message2, {
            ...assemblyData,
            stack: {
              stackName: firstStack.stackName,
              hierarchicalId: firstStack.hierarchicalId,
              template,
              stringifiedJson: serializeStructure(obscuredTemplate, true),
              stringifiedYaml: serializeStructure(obscuredTemplate, false)
            }
          }));
        } else {
          await ioHelper.notify(IO.CDK_TOOLKIT_I1902.msg(chalk23.green(message2), assemblyData));
          await ioHelper.defaults.info(`Supply a stack id (${stacks.stackArtifacts.map((s3) => chalk23.green(s3.hierarchicalId)).join(", ")}) to display its template.`);
        }
        return new CachedCloudAssembly(assembly);
      }
      /**
       * Diff Action
       */
      async diff(cx, options = {}) {
        var _stack = [];
        try {
          const ioHelper = asIoHelper(this.ioHost, "diff");
          const selectStacks = options.stacks ?? ALL_STACKS;
          const synthSpan = await ioHelper.span(SPAN.SYNTH_ASSEMBLY).begin({ stacks: selectStacks });
          const assembly = __using(_stack, await assemblyFromSource(synthSpan.asHelper, cx), true);
          const stacks = await assembly.selectStacksV2(selectStacks);
          await synthSpan.end();
          const diffSpan = await ioHelper.span(SPAN.DIFF_STACK).begin({ stacks: selectStacks });
          const deployments = await this.deploymentsForAction("diff");
          const strict = !!options.strict;
          const contextLines = options.contextLines || 3;
          let diffs = 0;
          const templateInfos = await prepareDiff(diffSpan.asHelper, stacks, deployments, await this.sdkProvider("diff"), options);
          const templateDiffs = {};
          for (const templateInfo of templateInfos) {
            const formatter = new DiffFormatter({ templateInfo });
            const stackDiff = formatter.formatStackDiff({ strict, contextLines });
            const securityDiff = formatter.formatSecurityDiff();
            const formattedSecurityDiff = securityDiff.permissionChangeType !== "none" /* NONE */ ? stackDiff.formattedDiff : void 0;
            if (securityDiff.permissionChangeType == "broadening" /* BROADENING */) {
              const warningMessage = "This deployment will make potentially sensitive changes according to your current security approval level.\nPlease confirm you intend to make the following modifications:\n";
              await diffSpan.defaults.warn(warningMessage);
              await diffSpan.defaults.info(securityDiff.formattedDiff);
            }
            diffs += stackDiff.numStacksWithChanges;
            appendObject(templateDiffs, formatter.diffs);
            await diffSpan.notify(IO.CDK_TOOLKIT_I4002.msg(stackDiff.formattedDiff, {
              stack: templateInfo.newTemplate,
              diffs: formatter.diffs,
              numStacksWithChanges: stackDiff.numStacksWithChanges,
              permissionChanges: securityDiff.permissionChangeType,
              formattedDiff: {
                diff: stackDiff.formattedDiff,
                security: formattedSecurityDiff
              }
            }));
          }
          await diffSpan.end(`\u2728 Number of stacks with differences: ${diffs}`, {
            numStacksWithChanges: diffs,
            diffs: templateDiffs
          });
          return templateDiffs;
        } catch (_3) {
          var _error = _3, _hasError = true;
        } finally {
          var _promise = __callDispose(_stack, _error, _hasError);
          _promise && await _promise;
        }
      }
      /**
       * Drift Action
       */
      async drift(cx, options = {}) {
        var _stack = [];
        try {
          const ioHelper = asIoHelper(this.ioHost, "drift");
          const selectStacks = options.stacks ?? ALL_STACKS;
          const synthSpan = await ioHelper.span(SPAN.SYNTH_ASSEMBLY).begin({ stacks: selectStacks });
          const assembly = __using(_stack, await assemblyFromSource(synthSpan.asHelper, cx), true);
          const stacks = await assembly.selectStacksV2(selectStacks);
          await synthSpan.end();
          const driftSpan = await ioHelper.span(SPAN.DRIFT_APP).begin({ stacks: selectStacks });
          const allDriftResults = {};
          const unavailableDrifts = [];
          const sdkProvider = await this.sdkProvider("drift");
          for (const stack of stacks.stackArtifacts) {
            const cfn = (await sdkProvider.forEnvironment(stack.environment, 0 /* ForReading */)).sdk.cloudFormation();
            const driftResults = await detectStackDrift(cfn, driftSpan.asHelper, stack.stackName);
            if (!driftResults.StackResourceDrifts) {
              const stackName = stack.displayName ?? stack.stackName;
              unavailableDrifts.push(stackName);
              await driftSpan.notify(IO.CDK_TOOLKIT_W4591.msg(`${stackName}: No drift results available`, { stack }));
              continue;
            }
            const formatter = new DriftFormatter({ stack, resourceDrifts: driftResults.StackResourceDrifts });
            const driftOutput = formatter.formatStackDrift();
            const stackDrift = {
              numResourcesWithDrift: driftOutput.numResourcesWithDrift,
              numResourcesUnchecked: driftOutput.numResourcesUnchecked,
              formattedDrift: {
                unchanged: driftOutput.unchanged,
                unchecked: driftOutput.unchecked,
                modified: driftOutput.modified,
                deleted: driftOutput.deleted
              }
            };
            allDriftResults[formatter.stackName] = stackDrift;
            await driftSpan.defaults.info(driftOutput.stackHeader);
            if (driftOutput.unchanged) {
              await driftSpan.defaults.debug(driftOutput.unchanged);
            }
            if (driftOutput.unchecked) {
              await driftSpan.defaults.debug(driftOutput.unchecked);
            }
            if (driftOutput.modified) {
              await driftSpan.defaults.info(driftOutput.modified);
            }
            if (driftOutput.deleted) {
              await driftSpan.defaults.info(driftOutput.deleted);
            }
            await driftSpan.notify(IO.CDK_TOOLKIT_I4590.msg(driftOutput.summary, {
              stack,
              drift: stackDrift
            }));
          }
          const totalDrifts = Object.values(allDriftResults).reduce((total, current) => total + (current.numResourcesWithDrift ?? 0), 0);
          const totalUnchecked = Object.values(allDriftResults).reduce((total, current) => total + (current.numResourcesUnchecked ?? 0), 0);
          await driftSpan.end(`
\u2728  Number of resources with drift: ${totalDrifts}${totalUnchecked ? ` (${totalUnchecked} unchecked)` : ""}`);
          if (unavailableDrifts.length) {
            await driftSpan.defaults.warn(`
\u26A0\uFE0F  Failed to check drift for ${unavailableDrifts.length} stack(s). Check log for more details.`);
          }
          return allDriftResults;
        } catch (_3) {
          var _error = _3, _hasError = true;
        } finally {
          var _promise = __callDispose(_stack, _error, _hasError);
          _promise && await _promise;
        }
      }
      /**
       * List Action
       *
       * List selected stacks and their dependencies
       */
      async list(cx, options = {}) {
        var _stack = [];
        try {
          const ioHelper = asIoHelper(this.ioHost, "list");
          const selectStacks = options.stacks ?? ALL_STACKS;
          const synthSpan = await ioHelper.span(SPAN.SYNTH_ASSEMBLY).begin({ stacks: selectStacks });
          const assembly = __using(_stack, await assemblyFromSource(ioHelper, cx), true);
          const stackCollection = await assembly.selectStacksV2(selectStacks);
          await synthSpan.end();
          const stacks = stackCollection.withDependencies();
          const message2 = stacks.map((s3) => s3.id).join("\n");
          await ioHelper.notify(IO.CDK_TOOLKIT_I2901.msg(message2, { stacks }));
          return stacks;
        } catch (_3) {
          var _error = _3, _hasError = true;
        } finally {
          var _promise = __callDispose(_stack, _error, _hasError);
          _promise && await _promise;
        }
      }
      /**
       * Deploy Action
       *
       * Deploys the selected stacks into an AWS account
       */
      async deploy(cx, options = {}) {
        var _stack = [];
        try {
          const ioHelper = asIoHelper(this.ioHost, "deploy");
          const assembly = __using(_stack, await assemblyFromSource(ioHelper, cx), true);
          return await this._deploy(assembly, "deploy", options);
        } catch (_3) {
          var _error = _3, _hasError = true;
        } finally {
          var _promise = __callDispose(_stack, _error, _hasError);
          _promise && await _promise;
        }
      }
      /**
       * Helper to allow deploy being called as part of the watch action.
       */
      async _deploy(assembly, action, options = {}) {
        const ioHelper = asIoHelper(this.ioHost, action);
        const selectStacks = options.stacks ?? ALL_STACKS;
        const synthSpan = await ioHelper.span(SPAN.SYNTH_ASSEMBLY).begin({ stacks: selectStacks });
        const stackCollection = await assembly.selectStacksV2(selectStacks);
        await this.validateStacksMetadata(stackCollection, ioHelper);
        const synthDuration = await synthSpan.end();
        const ret = {
          stacks: []
        };
        if (stackCollection.stackCount === 0) {
          await ioHelper.notify(IO.CDK_TOOLKIT_E5001.msg("This app contains no stacks"));
          return ret;
        }
        const deployments = await this.deploymentsForAction("deploy");
        const migrator = new ResourceMigrator({ deployments, ioHelper });
        await migrator.tryMigrateResources(stackCollection, options);
        const parameterMap = buildParameterMap(options.parameters?.parameters);
        if (options.deploymentMethod?.method === "hotswap") {
          await ioHelper.notify(IO.CDK_TOOLKIT_W5400.msg([
            "\u26A0\uFE0F Hotswap deployments deliberately introduce CloudFormation drift to speed up deployments",
            "\u26A0\uFE0F They should only be used for development - never use them for your production Stacks!"
          ].join("\n")));
        }
        const stacks = stackCollection.stackArtifacts;
        const stackOutputs = {};
        const outputsFile = options.outputsFile;
        const buildAsset = /* @__PURE__ */ __name(async (assetNode) => {
          const buildAssetSpan = await ioHelper.span(SPAN.BUILD_ASSET).begin({
            asset: assetNode.asset
          });
          await deployments.buildSingleAsset(
            assetNode.assetManifestArtifact,
            assetNode.assetManifest,
            assetNode.asset,
            {
              stack: assetNode.parentStack,
              roleArn: options.roleArn,
              stackName: assetNode.parentStack.stackName
            }
          );
          await buildAssetSpan.end();
        }, "buildAsset");
        const publishAsset = /* @__PURE__ */ __name(async (assetNode) => {
          const publishAssetSpan = await ioHelper.span(SPAN.PUBLISH_ASSET).begin({
            asset: assetNode.asset
          });
          await deployments.publishSingleAsset(assetNode.assetManifest, assetNode.asset, {
            stack: assetNode.parentStack,
            roleArn: options.roleArn,
            stackName: assetNode.parentStack.stackName,
            forcePublish: options.forceAssetPublishing
          });
          await publishAssetSpan.end();
        }, "publishAsset");
        const deployStack2 = /* @__PURE__ */ __name(async (stackNode) => {
          const stack = stackNode.stack;
          if (stackCollection.stackCount !== 1) {
            await ioHelper.defaults.info(chalk23.bold(stack.displayName));
          }
          if (!stack.environment) {
            throw new ToolkitError(
              `Stack ${stack.displayName} does not define an environment, and AWS credentials could not be obtained from standard locations or no region was configured.`
            );
          }
          if (Object.keys(stack.template.Resources || {}).length === 0) {
            const stackExists = await deployments.stackExists({ stack });
            if (!stackExists) {
              return ioHelper.notify(IO.CDK_TOOLKIT_W5021.msg(`${chalk23.bold(stack.displayName)}: stack has no resources, skipping deployment.`));
            }
            await ioHelper.notify(IO.CDK_TOOLKIT_W5022.msg(`${chalk23.bold(stack.displayName)}: stack has no resources, deleting existing stack.`));
            await this._destroy(assembly, "deploy", {
              stacks: { patterns: [stack.hierarchicalId], strategy: "pattern-must-match-single" /* PATTERN_MUST_MATCH_SINGLE */ },
              roleArn: options.roleArn
            });
            return;
          }
          const currentTemplate = await deployments.readCurrentTemplate(stack);
          const formatter = new DiffFormatter({
            templateInfo: {
              oldTemplate: currentTemplate,
              newTemplate: stack
            }
          });
          const securityDiff = formatter.formatSecurityDiff();
          const deployMotivation = '"--require-approval" is enabled and stack includes security-sensitive updates.';
          const deployQuestion = `${securityDiff.formattedDiff}

${deployMotivation}
Do you wish to deploy these changes`;
          const deployConfirmed = await ioHelper.requestResponse(IO.CDK_TOOLKIT_I5060.req(deployQuestion, {
            motivation: deployMotivation,
            concurrency,
            permissionChangeType: securityDiff.permissionChangeType,
            templateDiffs: formatter.diffs
          }));
          if (!deployConfirmed) {
            throw new ToolkitError("Aborted by user");
          }
          const notificationArns = !!options.notificationArns || !!stack.notificationArns ? (options.notificationArns ?? []).concat(stack.notificationArns ?? []) : void 0;
          for (const notificationArn of notificationArns ?? []) {
            if (!validateSnsTopicArn(notificationArn)) {
              throw new ToolkitError(`Notification arn ${notificationArn} is not a valid arn for an SNS topic`);
            }
          }
          const stackIndex = stacks.indexOf(stack) + 1;
          const deploySpan = await ioHelper.span(SPAN.DEPLOY_STACK).begin(`${chalk23.bold(stack.displayName)}: deploying... [${stackIndex}/${stackCollection.stackCount}]`, {
            total: stackCollection.stackCount,
            current: stackIndex,
            stack
          });
          let tags = options.tags;
          if (!tags || tags.length === 0) {
            tags = tagsForStack(stack);
          }
          let deployDuration;
          try {
            let deployResult;
            let rollback = options.rollback;
            let iteration = 0;
            while (!deployResult) {
              if (++iteration > 2) {
                throw new ToolkitError("This loop should have stabilized in 2 iterations, but didn't. If you are seeing this error, please report it at https://github.com/aws/aws-cdk/issues/new/choose");
              }
              const r3 = await deployments.deployStack({
                stack,
                deployName: stack.stackName,
                roleArn: options.roleArn,
                toolkitStackName: this.toolkitStackName,
                reuseAssets: options.reuseAssets,
                notificationArns,
                tags,
                deploymentMethod: options.deploymentMethod,
                forceDeployment: options.forceDeployment,
                parameters: Object.assign({}, parameterMap["*"], parameterMap[stack.stackName]),
                usePreviousParameters: options.parameters?.keepExistingParameters,
                rollback,
                extraUserAgent: options.extraUserAgent,
                assetParallelism: options.assetParallelism
              });
              switch (r3.type) {
                case "did-deploy-stack":
                  deployResult = r3;
                  break;
                case "failpaused-need-rollback-first": {
                  const motivation = r3.reason === "replacement" ? `Stack is in a paused fail state (${r3.status}) and change includes a replacement which cannot be deployed with "--no-rollback"` : `Stack is in a paused fail state (${r3.status}) and command line arguments do not include "--no-rollback"`;
                  const question2 = `${motivation}. Perform a regular deployment`;
                  const confirmed = await ioHelper.requestResponse(IO.CDK_TOOLKIT_I5050.req(question2, {
                    motivation,
                    concurrency
                  }));
                  if (!confirmed) {
                    throw new ToolkitError("Aborted by user");
                  }
                  await this._rollback(assembly, action, {
                    stacks: {
                      patterns: [stack.hierarchicalId],
                      strategy: "pattern-must-match-single" /* PATTERN_MUST_MATCH_SINGLE */
                    },
                    orphanFailedResources: options.orphanFailedResourcesDuringRollback
                  });
                  rollback = true;
                  break;
                }
                case "replacement-requires-rollback": {
                  const motivation = 'Change includes a replacement which cannot be deployed with "--no-rollback"';
                  const question2 = `${motivation}. Perform a regular deployment`;
                  const confirmed = await ioHelper.requestResponse(IO.CDK_TOOLKIT_I5050.req(question2, {
                    motivation,
                    concurrency
                  }));
                  if (!confirmed) {
                    throw new ToolkitError("Aborted by user");
                  }
                  rollback = true;
                  break;
                }
                default:
                  throw new ToolkitError(`Unexpected result type from deployStack: ${JSON.stringify(r3)}. If you are seeing this error, please report it at https://github.com/aws/aws-cdk/issues/new/choose`);
              }
            }
            const message2 = deployResult.noOp ? ` \u2705  ${stack.displayName} (no changes)` : ` \u2705  ${stack.displayName}`;
            await ioHelper.notify(IO.CDK_TOOLKIT_I5900.msg(chalk23.green("\n" + message2), deployResult));
            deployDuration = await deploySpan.timing(IO.CDK_TOOLKIT_I5000);
            if (Object.keys(deployResult.outputs).length > 0) {
              const buffer = ["Outputs:"];
              stackOutputs[stack.stackName] = deployResult.outputs;
              for (const name of Object.keys(deployResult.outputs).sort()) {
                const value = deployResult.outputs[name];
                buffer.push(`${chalk23.cyan(stack.id)}.${chalk23.cyan(name)} = ${chalk23.underline(chalk23.cyan(value))}`);
              }
              await ioHelper.notify(IO.CDK_TOOLKIT_I5901.msg(buffer.join("\n")));
            }
            await ioHelper.notify(IO.CDK_TOOLKIT_I5901.msg(`Stack ARN:
${deployResult.stackArn}`));
            ret.stacks.push({
              stackName: stack.stackName,
              environment: {
                account: stack.environment.account,
                region: stack.environment.region
              },
              stackArn: deployResult.stackArn,
              outputs: deployResult.outputs,
              hierarchicalId: stack.hierarchicalId
            });
          } catch (e3) {
            throw new ToolkitError(
              [`\u274C  ${chalk23.bold(stack.stackName)} failed:`, ...e3.name ? [`${e3.name}:`] : [], e3.message].join(" ")
            );
          } finally {
            if (options.traceLogs) {
              const cloudWatchLogMonitor = options.cloudWatchLogMonitor ?? new CloudWatchLogEventMonitor({ ioHelper });
              const foundLogGroupsResult = await findCloudWatchLogGroups(await this.sdkProvider("deploy"), ioHelper, stack);
              cloudWatchLogMonitor.addLogGroups(
                foundLogGroupsResult.env,
                foundLogGroupsResult.sdk,
                foundLogGroupsResult.logGroupNames
              );
              await ioHelper.notify(IO.CDK_TOOLKIT_I5031.msg(`The following log groups are added: ${foundLogGroupsResult.logGroupNames}`));
            }
            if (outputsFile) {
              fs28.ensureFileSync(outputsFile);
              await fs28.writeJson(outputsFile, stackOutputs, {
                spaces: 2,
                encoding: "utf8"
              });
            }
          }
          const duration = synthDuration.asMs + (deployDuration?.asMs ?? 0);
          await deploySpan.end(`
\u2728  Total time: ${formatTime(duration)}s
`, { duration });
        }, "deployStack");
        const assetBuildTime = options.assetBuildTime ?? "all-before-deploy" /* ALL_BEFORE_DEPLOY */;
        const prebuildAssets = assetBuildTime === "all-before-deploy" /* ALL_BEFORE_DEPLOY */;
        const concurrency = options.concurrency || 1;
        const stacksAndTheirAssetManifests = stacks.flatMap((stack) => [
          stack,
          ...stack.dependencies.filter((x3) => cxapi8.AssetManifestArtifact.isAssetManifestArtifact(x3))
        ]);
        const workGraph = new WorkGraphBuilder(ioHelper, prebuildAssets).build(stacksAndTheirAssetManifests);
        if (!options.forceAssetPublishing) {
          await removePublishedAssetsFromWorkGraph(workGraph, deployments, options);
        }
        const graphConcurrency = {
          "stack": concurrency,
          "asset-build": 1,
          // This will be CPU-bound/memory bound, mostly matters for Docker builds
          "asset-publish": options.assetParallelism ?? true ? 8 : 1
          // This will be I/O-bound, 8 in parallel seems reasonable
        };
        await workGraph.doParallel(graphConcurrency, {
          deployStack: deployStack2,
          buildAsset,
          publishAsset
        });
        return ret;
      }
      /**
       * Watch Action
       *
       * Continuously observe project files and deploy the selected stacks
       * automatically when changes are detected. Defaults to hotswap deployments.
       *
       * This function returns immediately, starting a watcher in the background.
       */
      async watch(cx, options = {}) {
        var _stack = [];
        try {
          const ioHelper = asIoHelper(this.ioHost, "watch");
          const assembly = __using(_stack, await assemblyFromSource(ioHelper, cx, false), true);
          const rootDir = options.watchDir ?? process.cwd();
          const watchIncludes = options.include ?? [];
          if (watchIncludes.length <= 0) {
            watchIncludes.push("**");
          }
          const watchExcludes = options.exclude ?? [...WATCH_EXCLUDE_DEFAULTS];
          const relativeOutDir = path26.relative(rootDir, assembly.directory);
          if (Boolean(relativeOutDir && !relativeOutDir.startsWith(".." + path26.sep) && !path26.isAbsolute(relativeOutDir))) {
            watchExcludes.push(`${relativeOutDir}/**`);
          }
          watchExcludes.push(".*", "**/.*");
          watchExcludes.push("**/.*/**");
          watchExcludes.push("**/node_modules/**");
          await ioHelper.notify(IO.CDK_TOOLKIT_I5310.msg([
            `root directory used for 'watch' is: ${rootDir}`,
            `'include' patterns for 'watch': ${JSON.stringify(watchIncludes)}`,
            `'exclude' patterns for 'watch': ${JSON.stringify(watchExcludes)}`
          ].join("\n"), {
            watchDir: rootDir,
            includes: watchIncludes,
            excludes: watchExcludes
          }));
          let latch = "pre-ready";
          const cloudWatchLogMonitor = options.traceLogs ? new CloudWatchLogEventMonitor({ ioHelper }) : void 0;
          const deployAndWatch = /* @__PURE__ */ __name(async () => {
            latch = "deploying";
            await cloudWatchLogMonitor?.deactivate();
            await this.invokeDeployFromWatch(assembly, options, cloudWatchLogMonitor);
            while (latch === "queued") {
              latch = "deploying";
              await ioHelper.notify(IO.CDK_TOOLKIT_I5315.msg("Detected file changes during deployment. Invoking 'cdk deploy' again"));
              await this.invokeDeployFromWatch(assembly, options, cloudWatchLogMonitor);
            }
            latch = "open";
            await cloudWatchLogMonitor?.activate();
          }, "deployAndWatch");
          const watcher = chokidar.watch(watchIncludes, {
            ignored: watchExcludes,
            cwd: rootDir
          }).on("ready", async () => {
            latch = "open";
            await ioHelper.defaults.debug("'watch' received the 'ready' event. From now on, all file changes will trigger a deployment");
            await ioHelper.notify(IO.CDK_TOOLKIT_I5314.msg("Triggering initial 'cdk deploy'"));
            await deployAndWatch();
          }).on("all", async (event, filePath) => {
            const watchEvent = {
              event,
              path: filePath
            };
            if (latch === "pre-ready") {
              await ioHelper.notify(IO.CDK_TOOLKIT_I5311.msg(`'watch' is observing ${event === "addDir" ? "directory" : "the file"} '${filePath}' for changes`, watchEvent));
            } else if (latch === "open") {
              await ioHelper.notify(IO.CDK_TOOLKIT_I5312.msg(`Detected change to '${filePath}' (type: ${event}). Triggering 'cdk deploy'`, watchEvent));
              await deployAndWatch();
            } else {
              latch = "queued";
              await ioHelper.notify(IO.CDK_TOOLKIT_I5313.msg(
                `Detected change to '${filePath}' (type: ${event}) while 'cdk deploy' is still running. Will queue for another deployment after this one finishes'`,
                watchEvent
              ));
            }
          });
          const stoppedPromise = promiseWithResolvers();
          return {
            async dispose() {
              await cloudWatchLogMonitor?.deactivate();
              await watcher.close();
              watcher.unref();
              stoppedPromise.resolve();
              return stoppedPromise.promise;
            },
            async waitForEnd() {
              return stoppedPromise.promise;
            },
            async [Symbol.asyncDispose]() {
              return this.dispose();
            }
          };
        } catch (_3) {
          var _error = _3, _hasError = true;
        } finally {
          var _promise = __callDispose(_stack, _error, _hasError);
          _promise && await _promise;
        }
      }
      /**
       * Rollback Action
       *
       * Rolls back the selected stacks.
       */
      async rollback(cx, options = {}) {
        var _stack = [];
        try {
          const ioHelper = asIoHelper(this.ioHost, "rollback");
          const assembly = __using(_stack, await assemblyFromSource(ioHelper, cx), true);
          return await this._rollback(assembly, "rollback", options);
        } catch (_3) {
          var _error = _3, _hasError = true;
        } finally {
          var _promise = __callDispose(_stack, _error, _hasError);
          _promise && await _promise;
        }
      }
      /**
       * Helper to allow rollback being called as part of the deploy or watch action.
       */
      async _rollback(assembly, action, options) {
        const selectStacks = options.stacks ?? ALL_STACKS;
        const ioHelper = asIoHelper(this.ioHost, action);
        const synthSpan = await ioHelper.span(SPAN.SYNTH_ASSEMBLY).begin({ stacks: selectStacks });
        const stacks = await assembly.selectStacksV2(selectStacks);
        await this.validateStacksMetadata(stacks, ioHelper);
        await synthSpan.end();
        const ret = {
          stacks: []
        };
        if (stacks.stackCount === 0) {
          await ioHelper.notify(IO.CDK_TOOLKIT_E6001.msg("No stacks selected"));
          return ret;
        }
        let anyRollbackable = false;
        for (const [index, stack] of stacks.stackArtifacts.entries()) {
          const rollbackSpan = await ioHelper.span(SPAN.ROLLBACK_STACK).begin(`Rolling back ${chalk23.bold(stack.displayName)}`, {
            total: stacks.stackCount,
            current: index + 1,
            stack
          });
          const deployments = await this.deploymentsForAction("rollback");
          try {
            const stackResult = await deployments.rollbackStack({
              stack,
              roleArn: options.roleArn,
              toolkitStackName: this.toolkitStackName,
              orphanFailedResources: options.orphanFailedResources,
              validateBootstrapStackVersion: options.validateBootstrapStackVersion,
              orphanLogicalIds: options.orphanLogicalIds
            });
            if (!stackResult.notInRollbackableState) {
              anyRollbackable = true;
            }
            await rollbackSpan.end();
            ret.stacks.push({
              environment: {
                account: stack.environment.account,
                region: stack.environment.region
              },
              stackName: stack.stackName,
              stackArn: stackResult.stackArn,
              result: stackResult.notInRollbackableState ? "already-stable" : "rolled-back"
            });
          } catch (e3) {
            await ioHelper.notify(IO.CDK_TOOLKIT_E6900.msg(`
 \u274C  ${chalk23.bold(stack.displayName)} failed: ${formatErrorMessage(e3)}`, { error: e3 }));
            throw ToolkitError.withCause("Rollback failed (use --force to orphan failing resources)", e3);
          }
        }
        if (!anyRollbackable) {
          throw new ToolkitError("No stacks were in a state that could be rolled back");
        }
        return ret;
      }
      /**
       * Refactor Action. Moves resources from one location (stack + logical ID) to another.
       */
      async refactor(cx, options = {}) {
        var _stack = [];
        try {
          this.requireUnstableFeature("refactor");
          const ioHelper = asIoHelper(this.ioHost, "refactor");
          const assembly = __using(_stack, await assemblyFromSource(ioHelper, cx), true);
          return await this._refactor(assembly, ioHelper, cx, options);
        } catch (_3) {
          var _error = _3, _hasError = true;
        } finally {
          var _promise = __callDispose(_stack, _error, _hasError);
          _promise && await _promise;
        }
      }
      async _refactor(assembly, ioHelper, cx, options = {}) {
        const sdkProvider = await this.sdkProvider("refactor");
        const selectedStacks = await assembly.selectStacksV2(options.stacks ?? ALL_STACKS);
        const groups = await groupStacks(sdkProvider, selectedStacks.stackArtifacts, options.additionalStackNames ?? []);
        for (let { environment, localStacks, deployedStacks } of groups) {
          await ioHelper.defaults.info(formatEnvironmentSectionHeader2(environment));
          const newStacks = localStacks.filter((s3) => !deployedStacks.map((t3) => t3.stackName).includes(s3.stackName));
          if (newStacks.length > 0) {
            let message2 = `The following stack${newStacks.length === 1 ? " is" : "s are"} new: ${newStacks.map((s3) => s3.stackName).join(", ")}
`;
            message2 += "Creation of new stacks is not yet supported by the refactor command. ";
            message2 += "Please deploy any new stacks separately before refactoring your stacks.";
            await ioHelper.defaults.error(chalk23.red(message2));
            continue;
          }
          try {
            const context = new RefactoringContext({
              environment,
              deployedStacks,
              localStacks,
              assumeRoleArn: options.roleArn,
              overrides: getOverrides(environment, deployedStacks, localStacks)
            });
            const mappings = context.mappings;
            if (mappings.length === 0 && context.ambiguousPaths.length === 0) {
              await ioHelper.defaults.info("Nothing to refactor.");
              continue;
            }
            const typedMappings = mappings.map((m3) => m3.toTypedMapping()).filter((m3) => m3.type !== "AWS::CDK::Metadata");
            let refactorMessage = formatTypedMappings2(typedMappings);
            const refactorResult = { typedMappings };
            const stackDefinitions = generateStackDefinitions(mappings, deployedStacks, localStacks);
            if (context.ambiguousPaths.length > 0) {
              const paths = context.ambiguousPaths;
              refactorMessage += "\n" + formatAmbiguousMappings2(paths);
              refactorResult.ambiguousPaths = paths;
            }
            await ioHelper.notify(IO.CDK_TOOLKIT_I8900.msg(refactorMessage, refactorResult));
            if (options.dryRun || context.mappings.length === 0 || context.ambiguousPaths.length > 0) {
              continue;
            }
            if (process.stdout.isTTY && !await confirm4(options.force ?? false)) {
              await ioHelper.defaults.info(chalk23.red(`Refactoring canceled for environment aws://${environment.account}/${environment.region}
`));
              continue;
            }
            await ioHelper.defaults.info("Refactoring...");
            await context.execute(stackDefinitions, sdkProvider, ioHelper);
            await ioHelper.defaults.info("\u2705  Stack refactor complete");
            await ioHelper.defaults.info("Deploying updated stacks to finalize refactor...");
            await this.deploy(cx, {
              stacks: ALL_STACKS,
              forceDeployment: true
            });
          } catch (e3) {
            const message2 = `\u274C  Refactor failed: ${formatError(e3)}`;
            await ioHelper.notify(IO.CDK_TOOLKIT_E8900.msg(message2, { error: e3 }));
            await ioHelper.defaults.debug(e3.message);
          }
        }
        function getOverrides(environment, deployedStacks, localStacks) {
          const mappingGroup = options.overrides?.find((g3) => g3.region === environment.region && g3.account === environment.account);
          return mappingGroup == null ? [] : Object.entries(mappingGroup.resources ?? {}).map(([source, destination]) => new ResourceMapping(
            getResourceLocation(source, deployedStacks),
            getResourceLocation(destination, localStacks)
          ));
        }
        __name(getOverrides, "getOverrides");
        function getResourceLocation(location, stacks) {
          for (let stack of stacks) {
            const [stackName, logicalId] = location.split(".");
            if (stackName != null && logicalId != null && stack.stackName === stackName && stack.template.Resources?.[logicalId] != null) {
              return new ResourceLocation(stack, logicalId);
            } else {
              const resourceEntry = Object.entries(stack.template.Resources ?? {}).find(([_3, r3]) => r3.Metadata?.["aws:cdk:path"] === location);
              if (resourceEntry != null) {
                return new ResourceLocation(stack, resourceEntry[0]);
              }
            }
          }
          throw new ToolkitError(`Cannot find resource in location ${location}`);
        }
        __name(getResourceLocation, "getResourceLocation");
        async function confirm4(force) {
          if (force) {
            return true;
          }
          const question2 = "Do you wish to refactor these resources?";
          const response = await ioHelper.requestResponse(IO.CDK_TOOLKIT_I8910.req(question2, {
            responseDescription: "[Y]es/[n]o"
          }, "y"));
          return ["y", "yes"].includes(response.toLowerCase());
        }
        __name(confirm4, "confirm");
        function formatError(error5) {
          try {
            const payload2 = JSON.parse(error5.message);
            const messages = [];
            if (payload2.reason?.StatusReason) {
              messages.push(`Refactor creation: [${payload2.reason?.Status}] ${payload2.reason.StatusReason}`);
            }
            if (payload2.reason?.ExecutionStatusReason) {
              messages.push(`Refactor execution: [${payload2.reason?.Status}] ${payload2.reason.ExecutionStatusReason}`);
            }
            return messages.length > 0 ? messages.join("\n") : `Unknown error (Stack refactor ID: ${payload2.reason?.StackRefactorId ?? "unknown"})`;
          } catch (e3) {
            return formatErrorMessage(error5);
          }
        }
        __name(formatError, "formatError");
      }
      /**
       * Destroy Action
       *
       * Destroys the selected Stacks.
       */
      async destroy(cx, options = {}) {
        var _stack = [];
        try {
          const ioHelper = asIoHelper(this.ioHost, "destroy");
          const assembly = __using(_stack, await assemblyFromSource(ioHelper, cx), true);
          return await this._destroy(assembly, "destroy", options);
        } catch (_3) {
          var _error = _3, _hasError = true;
        } finally {
          var _promise = __callDispose(_stack, _error, _hasError);
          _promise && await _promise;
        }
      }
      /**
       * Helper to allow destroy being called as part of the deploy action.
       */
      async _destroy(assembly, action, options) {
        const selectStacks = options.stacks ?? ALL_STACKS;
        const ioHelper = asIoHelper(this.ioHost, action);
        const synthSpan = await ioHelper.span(SPAN.SYNTH_ASSEMBLY).begin({ stacks: selectStacks });
        const stacks = (await assembly.selectStacksV2(selectStacks)).reversed();
        await synthSpan.end();
        const ret = {
          stacks: []
        };
        const motivation = "Destroying stacks is an irreversible action";
        const question2 = `Are you sure you want to delete: ${chalk23.red(stacks.hierarchicalIds.join(", "))}`;
        const confirmed = await ioHelper.requestResponse(IO.CDK_TOOLKIT_I7010.req(question2, { motivation }));
        if (!confirmed) {
          await ioHelper.notify(IO.CDK_TOOLKIT_E7010.msg("Aborted by user"));
          return ret;
        }
        const destroySpan = await ioHelper.span(SPAN.DESTROY_ACTION).begin({
          stacks: stacks.stackArtifacts
        });
        try {
          for (const [index, stack] of stacks.stackArtifacts.entries()) {
            try {
              const singleDestroySpan = await ioHelper.span(SPAN.DESTROY_STACK).begin(chalk23.green(`${chalk23.blue(stack.displayName)}: destroying... [${index + 1}/${stacks.stackCount}]`), {
                total: stacks.stackCount,
                current: index + 1,
                stack
              });
              const deployments = await this.deploymentsForAction(action);
              const result2 = await deployments.destroyStack({
                stack,
                deployName: stack.stackName,
                roleArn: options.roleArn
              });
              ret.stacks.push({
                environment: {
                  account: stack.environment.account,
                  region: stack.environment.region
                },
                stackName: stack.stackName,
                stackArn: result2.stackArn,
                stackExisted: result2.stackArn !== void 0
              });
              await ioHelper.notify(IO.CDK_TOOLKIT_I7900.msg(chalk23.green(`
 \u2705  ${chalk23.blue(stack.displayName)}: ${action}ed`), stack));
              await singleDestroySpan.end();
            } catch (e3) {
              await ioHelper.notify(IO.CDK_TOOLKIT_E7900.msg(`
 \u274C  ${chalk23.blue(stack.displayName)}: ${action} failed ${e3}`, { error: e3 }));
              throw e3;
            }
          }
          return ret;
        } finally {
          await destroySpan.end();
        }
      }
      /**
       * Validate the stacks for errors and warnings according to the CLI's current settings
       */
      async validateStacksMetadata(stacks, ioHost) {
        const builder = /* @__PURE__ */ __name((level) => {
          switch (level) {
            case "error":
              return IO.CDK_ASSEMBLY_E9999;
            case "warn":
              return IO.CDK_ASSEMBLY_W9999;
            default:
              return IO.CDK_ASSEMBLY_I9999;
          }
        }, "builder");
        await stacks.validateMetadata(
          this.props.assemblyFailureAt,
          async (level, msg) => ioHost.notify(builder(level).msg(`[${level} at ${msg.id}] ${msg.entry.data}`, msg))
        );
      }
      /**
       * Create a deployments class
       */
      async deploymentsForAction(action) {
        return new Deployments({
          sdkProvider: await this.sdkProvider(action),
          toolkitStackName: this.toolkitStackName,
          ioHelper: asIoHelper(this.ioHost, action)
        });
      }
      async invokeDeployFromWatch(assembly, options, cloudWatchLogMonitor) {
        const deploymentMethod = options.deploymentMethod ?? { method: "hotswap" };
        const deployOptions = {
          ...options,
          cloudWatchLogMonitor,
          deploymentMethod,
          extraUserAgent: `cdk-watch/hotswap-${deploymentMethod.method === "hotswap" ? "on" : "off"}`
        };
        try {
          await this._deploy(assembly, "watch", deployOptions);
        } catch {
        }
      }
      /**
       * Retrieve feature flag information from the cloud assembly
       */
      async flags(cx) {
        var _stack = [];
        try {
          this.requireUnstableFeature("flags");
          const ioHelper = asIoHelper(this.ioHost, "flags");
          const assembly = __using(_stack, await assemblyFromSource(ioHelper, cx), true);
          const artifacts = Object.values(assembly.cloudAssembly.manifest.artifacts ?? {});
          const featureFlagReports = artifacts.filter((a3) => a3.type === import_cloud_assembly_schema6.ArtifactType.FEATURE_FLAG_REPORT);
          const flags = featureFlagReports.flatMap((report) => {
            const properties = report.properties;
            const moduleName = properties.module;
            const flagsWithUnconfiguredBehavesLike = Object.entries(properties.flags).filter(([_4, flagInfo]) => flagInfo.unconfiguredBehavesLike != void 0);
            const shouldIncludeUnconfiguredBehavesLike = flagsWithUnconfiguredBehavesLike.length > 0;
            return Object.entries(properties.flags).map(([flagName, flagInfo]) => {
              const baseFlag = {
                module: moduleName,
                name: flagName,
                recommendedValue: flagInfo.recommendedValue,
                userValue: flagInfo.userValue ?? void 0,
                explanation: flagInfo.explanation ?? ""
              };
              if (shouldIncludeUnconfiguredBehavesLike) {
                return {
                  ...baseFlag,
                  unconfiguredBehavesLike: {
                    v2: flagInfo.unconfiguredBehavesLike?.v2 ?? false
                  }
                };
              }
              return baseFlag;
            });
          });
          return flags;
        } catch (_3) {
          var _error = _3, _hasError = true;
        } finally {
          var _promise = __callDispose(_stack, _error, _hasError);
          _promise && await _promise;
        }
      }
      requireUnstableFeature(requestedFeature) {
        if (!this.unstableFeatures.includes(requestedFeature)) {
          throw new ToolkitError(`Unstable feature '${requestedFeature}' is not enabled. Please enable it under 'unstableFeatures'`);
        }
      }
    };
  }
});

// ../@aws-cdk/toolkit-lib/lib/toolkit/types.ts
var init_types8 = __esm({
  "../@aws-cdk/toolkit-lib/lib/toolkit/types.ts"() {
    "use strict";
  }
});

// ../@aws-cdk/toolkit-lib/lib/toolkit/index.ts
var toolkit_exports = {};
__export(toolkit_exports, {
  NonInteractiveIoHost: () => NonInteractiveIoHost,
  Toolkit: () => Toolkit
});
var init_toolkit2 = __esm({
  "../@aws-cdk/toolkit-lib/lib/toolkit/index.ts"() {
    "use strict";
    init_toolkit();
    init_non_interactive_io_host();
    init_types8();
  }
});

// ../@aws-cdk/toolkit-lib/lib/actions/destroy/index.ts
var init_destroy3 = __esm({
  "../@aws-cdk/toolkit-lib/lib/actions/destroy/index.ts"() {
    "use strict";
  }
});

// ../@aws-cdk/toolkit-lib/lib/actions/drift/index.ts
var init_drift4 = __esm({
  "../@aws-cdk/toolkit-lib/lib/actions/drift/index.ts"() {
    "use strict";
  }
});

// ../@aws-cdk/toolkit-lib/lib/actions/list/index.ts
var init_list2 = __esm({
  "../@aws-cdk/toolkit-lib/lib/actions/list/index.ts"() {
    "use strict";
  }
});

// ../@aws-cdk/toolkit-lib/lib/actions/refactor/index.ts
var init_refactor2 = __esm({
  "../@aws-cdk/toolkit-lib/lib/actions/refactor/index.ts"() {
    "use strict";
  }
});

// ../@aws-cdk/toolkit-lib/lib/actions/rollback/index.ts
var init_rollback2 = __esm({
  "../@aws-cdk/toolkit-lib/lib/actions/rollback/index.ts"() {
    "use strict";
  }
});

// ../@aws-cdk/toolkit-lib/lib/actions/synth/index.ts
var init_synth2 = __esm({
  "../@aws-cdk/toolkit-lib/lib/actions/synth/index.ts"() {
    "use strict";
  }
});

// ../@aws-cdk/toolkit-lib/lib/actions/watch/index.ts
var init_watch2 = __esm({
  "../@aws-cdk/toolkit-lib/lib/actions/watch/index.ts"() {
    "use strict";
  }
});

// ../@aws-cdk/toolkit-lib/lib/actions/index.ts
var actions_exports = {};
__export(actions_exports, {
  AssetBuildTime: () => AssetBuildTime,
  BootstrapEnvironments: () => BootstrapEnvironments,
  BootstrapSource: () => BootstrapSource,
  BootstrapStackParameters: () => BootstrapStackParameters,
  DiffMethod: () => DiffMethod,
  StackParameters: () => StackParameters
});
var init_actions = __esm({
  "../@aws-cdk/toolkit-lib/lib/actions/index.ts"() {
    "use strict";
    init_bootstrap3();
    init_deploy3();
    init_destroy3();
    init_diff4();
    init_drift4();
    init_list2();
    init_refactor2();
    init_rollback2();
    init_synth2();
    init_watch2();
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/tags/tags.ts
var init_tags = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/tags/tags.ts"() {
    "use strict";
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/tags/index.ts
var tags_exports = {};
var init_tags2 = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/tags/index.ts"() {
    "use strict";
    init_tags();
  }
});

// ../@aws-cdk/toolkit-lib/lib/index.js
var require_lib12 = __commonJS({
  "../@aws-cdk/toolkit-lib/lib/index.js"(exports2) {
    "use strict";
    var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      var desc = Object.getOwnPropertyDescriptor(m3, k3);
      if (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) {
        desc = { enumerable: true, get: /* @__PURE__ */ __name(function() {
          return m3[k3];
        }, "get") };
      }
      Object.defineProperty(o3, k22, desc);
    }) : (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      o3[k22] = m3[k3];
    }));
    var __exportStar3 = exports2 && exports2.__exportStar || function(m3, exports3) {
      for (var p3 in m3) if (p3 !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p3)) __createBinding3(exports3, m3, p3);
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    require_dispose_polyfill();
    __exportStar3((init_toolkit2(), __toCommonJS(toolkit_exports)), exports2);
    __exportStar3((init_toolkit_error(), __toCommonJS(toolkit_error_exports)), exports2);
    __exportStar3((init_actions(), __toCommonJS(actions_exports)), exports2);
    __exportStar3((init_payloads(), __toCommonJS(payloads_exports)), exports2);
    __exportStar3((init_aws_auth(), __toCommonJS(aws_auth_exports)), exports2);
    __exportStar3((init_cloud_assembly2(), __toCommonJS(cloud_assembly_exports2)), exports2);
    __exportStar3((init_io(), __toCommonJS(io_exports)), exports2);
    __exportStar3((init_tags2(), __toCommonJS(tags_exports)), exports2);
    __exportStar3((init_plugin2(), __toCommonJS(plugin_exports)), exports2);
  }
});

// node_modules/fs-extra/lib/fs/index.js
var require_fs2 = __commonJS({
  "node_modules/fs-extra/lib/fs/index.js"(exports2) {
    "use strict";
    var u3 = require_universalify().fromCallback;
    var fs43 = require_graceful_fs();
    var api = [
      "access",
      "appendFile",
      "chmod",
      "chown",
      "close",
      "copyFile",
      "fchmod",
      "fchown",
      "fdatasync",
      "fstat",
      "fsync",
      "ftruncate",
      "futimes",
      "lchmod",
      "lchown",
      "link",
      "lstat",
      "mkdir",
      "mkdtemp",
      "open",
      "opendir",
      "readdir",
      "readFile",
      "readlink",
      "realpath",
      "rename",
      "rm",
      "rmdir",
      "stat",
      "symlink",
      "truncate",
      "unlink",
      "utimes",
      "writeFile"
    ].filter((key) => {
      return typeof fs43[key] === "function";
    });
    Object.keys(fs43).forEach((key) => {
      if (key === "promises") {
        return;
      }
      exports2[key] = fs43[key];
    });
    api.forEach((method) => {
      exports2[method] = u3(fs43[method]);
    });
    exports2.exists = function(filename, callback) {
      if (typeof callback === "function") {
        return fs43.exists(filename, callback);
      }
      return new Promise((resolve13) => {
        return fs43.exists(filename, resolve13);
      });
    };
    exports2.read = function(fd, buffer, offset, length, position, callback) {
      if (typeof callback === "function") {
        return fs43.read(fd, buffer, offset, length, position, callback);
      }
      return new Promise((resolve13, reject) => {
        fs43.read(fd, buffer, offset, length, position, (err, bytesRead, buffer2) => {
          if (err) return reject(err);
          resolve13({ bytesRead, buffer: buffer2 });
        });
      });
    };
    exports2.write = function(fd, buffer, ...args) {
      if (typeof args[args.length - 1] === "function") {
        return fs43.write(fd, buffer, ...args);
      }
      return new Promise((resolve13, reject) => {
        fs43.write(fd, buffer, ...args, (err, bytesWritten, buffer2) => {
          if (err) return reject(err);
          resolve13({ bytesWritten, buffer: buffer2 });
        });
      });
    };
    if (typeof fs43.writev === "function") {
      exports2.writev = function(fd, buffers, ...args) {
        if (typeof args[args.length - 1] === "function") {
          return fs43.writev(fd, buffers, ...args);
        }
        return new Promise((resolve13, reject) => {
          fs43.writev(fd, buffers, ...args, (err, bytesWritten, buffers2) => {
            if (err) return reject(err);
            resolve13({ bytesWritten, buffers: buffers2 });
          });
        });
      };
    }
    if (typeof fs43.realpath.native === "function") {
      exports2.realpath.native = u3(fs43.realpath.native);
    }
  }
});

// node_modules/fs-extra/lib/mkdirs/make-dir.js
var require_make_dir2 = __commonJS({
  "node_modules/fs-extra/lib/mkdirs/make-dir.js"(exports2, module2) {
    "use strict";
    var fs43 = require_fs2();
    var path38 = require("path");
    var atLeastNode = require_at_least_node();
    var useNativeRecursiveOption = atLeastNode("10.12.0");
    var checkPath = /* @__PURE__ */ __name((pth) => {
      if (process.platform === "win32") {
        const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path38.parse(pth).root, ""));
        if (pathHasInvalidWinCharacters) {
          const error5 = new Error(`Path contains invalid characters: ${pth}`);
          error5.code = "EINVAL";
          throw error5;
        }
      }
    }, "checkPath");
    var processOptions = /* @__PURE__ */ __name((options) => {
      const defaults4 = { mode: 511 };
      if (typeof options === "number") options = { mode: options };
      return { ...defaults4, ...options };
    }, "processOptions");
    var permissionError = /* @__PURE__ */ __name((pth) => {
      const error5 = new Error(`operation not permitted, mkdir '${pth}'`);
      error5.code = "EPERM";
      error5.errno = -4048;
      error5.path = pth;
      error5.syscall = "mkdir";
      return error5;
    }, "permissionError");
    module2.exports.makeDir = async (input, options) => {
      checkPath(input);
      options = processOptions(options);
      if (useNativeRecursiveOption) {
        const pth = path38.resolve(input);
        return fs43.mkdir(pth, {
          mode: options.mode,
          recursive: true
        });
      }
      const make = /* @__PURE__ */ __name(async (pth) => {
        try {
          await fs43.mkdir(pth, options.mode);
        } catch (error5) {
          if (error5.code === "EPERM") {
            throw error5;
          }
          if (error5.code === "ENOENT") {
            if (path38.dirname(pth) === pth) {
              throw permissionError(pth);
            }
            if (error5.message.includes("null bytes")) {
              throw error5;
            }
            await make(path38.dirname(pth));
            return make(pth);
          }
          try {
            const stats = await fs43.stat(pth);
            if (!stats.isDirectory()) {
              throw new Error("The path is not a directory");
            }
          } catch {
            throw error5;
          }
        }
      }, "make");
      return make(path38.resolve(input));
    };
    module2.exports.makeDirSync = (input, options) => {
      checkPath(input);
      options = processOptions(options);
      if (useNativeRecursiveOption) {
        const pth = path38.resolve(input);
        return fs43.mkdirSync(pth, {
          mode: options.mode,
          recursive: true
        });
      }
      const make = /* @__PURE__ */ __name((pth) => {
        try {
          fs43.mkdirSync(pth, options.mode);
        } catch (error5) {
          if (error5.code === "EPERM") {
            throw error5;
          }
          if (error5.code === "ENOENT") {
            if (path38.dirname(pth) === pth) {
              throw permissionError(pth);
            }
            if (error5.message.includes("null bytes")) {
              throw error5;
            }
            make(path38.dirname(pth));
            return make(pth);
          }
          try {
            if (!fs43.statSync(pth).isDirectory()) {
              throw new Error("The path is not a directory");
            }
          } catch {
            throw error5;
          }
        }
      }, "make");
      return make(path38.resolve(input));
    };
  }
});

// node_modules/fs-extra/lib/mkdirs/index.js
var require_mkdirs2 = __commonJS({
  "node_modules/fs-extra/lib/mkdirs/index.js"(exports2, module2) {
    "use strict";
    var u3 = require_universalify().fromPromise;
    var { makeDir: _makeDir, makeDirSync } = require_make_dir2();
    var makeDir = u3(_makeDir);
    module2.exports = {
      mkdirs: makeDir,
      mkdirsSync: makeDirSync,
      // alias
      mkdirp: makeDir,
      mkdirpSync: makeDirSync,
      ensureDir: makeDir,
      ensureDirSync: makeDirSync
    };
  }
});

// node_modules/fs-extra/lib/util/utimes.js
var require_utimes2 = __commonJS({
  "node_modules/fs-extra/lib/util/utimes.js"(exports2, module2) {
    "use strict";
    var fs43 = require_graceful_fs();
    function utimesMillis(path38, atime, mtime, callback) {
      fs43.open(path38, "r+", (err, fd) => {
        if (err) return callback(err);
        fs43.futimes(fd, atime, mtime, (futimesErr) => {
          fs43.close(fd, (closeErr) => {
            if (callback) callback(futimesErr || closeErr);
          });
        });
      });
    }
    __name(utimesMillis, "utimesMillis");
    function utimesMillisSync(path38, atime, mtime) {
      const fd = fs43.openSync(path38, "r+");
      fs43.futimesSync(fd, atime, mtime);
      return fs43.closeSync(fd);
    }
    __name(utimesMillisSync, "utimesMillisSync");
    module2.exports = {
      utimesMillis,
      utimesMillisSync
    };
  }
});

// node_modules/fs-extra/lib/util/stat.js
var require_stat2 = __commonJS({
  "node_modules/fs-extra/lib/util/stat.js"(exports2, module2) {
    "use strict";
    var fs43 = require_fs2();
    var path38 = require("path");
    var util11 = require("util");
    var atLeastNode = require_at_least_node();
    var nodeSupportsBigInt = atLeastNode("10.5.0");
    var stat5 = /* @__PURE__ */ __name((file) => nodeSupportsBigInt ? fs43.stat(file, { bigint: true }) : fs43.stat(file), "stat");
    var statSync2 = /* @__PURE__ */ __name((file) => nodeSupportsBigInt ? fs43.statSync(file, { bigint: true }) : fs43.statSync(file), "statSync");
    function getStats(src, dest) {
      return Promise.all([
        stat5(src),
        stat5(dest).catch((err) => {
          if (err.code === "ENOENT") return null;
          throw err;
        })
      ]).then(([srcStat, destStat]) => ({ srcStat, destStat }));
    }
    __name(getStats, "getStats");
    function getStatsSync(src, dest) {
      let destStat;
      const srcStat = statSync2(src);
      try {
        destStat = statSync2(dest);
      } catch (err) {
        if (err.code === "ENOENT") return { srcStat, destStat: null };
        throw err;
      }
      return { srcStat, destStat };
    }
    __name(getStatsSync, "getStatsSync");
    function checkPaths(src, dest, funcName, cb) {
      util11.callbackify(getStats)(src, dest, (err, stats) => {
        if (err) return cb(err);
        const { srcStat, destStat } = stats;
        if (destStat && areIdentical(srcStat, destStat)) {
          return cb(new Error("Source and destination must not be the same."));
        }
        if (srcStat.isDirectory() && isSrcSubdir(src, dest)) {
          return cb(new Error(errMsg(src, dest, funcName)));
        }
        return cb(null, { srcStat, destStat });
      });
    }
    __name(checkPaths, "checkPaths");
    function checkPathsSync(src, dest, funcName) {
      const { srcStat, destStat } = getStatsSync(src, dest);
      if (destStat && areIdentical(srcStat, destStat)) {
        throw new Error("Source and destination must not be the same.");
      }
      if (srcStat.isDirectory() && isSrcSubdir(src, dest)) {
        throw new Error(errMsg(src, dest, funcName));
      }
      return { srcStat, destStat };
    }
    __name(checkPathsSync, "checkPathsSync");
    function checkParentPaths(src, srcStat, dest, funcName, cb) {
      const srcParent = path38.resolve(path38.dirname(src));
      const destParent = path38.resolve(path38.dirname(dest));
      if (destParent === srcParent || destParent === path38.parse(destParent).root) return cb();
      const callback = /* @__PURE__ */ __name((err, destStat) => {
        if (err) {
          if (err.code === "ENOENT") return cb();
          return cb(err);
        }
        if (areIdentical(srcStat, destStat)) {
          return cb(new Error(errMsg(src, dest, funcName)));
        }
        return checkParentPaths(src, srcStat, destParent, funcName, cb);
      }, "callback");
      if (nodeSupportsBigInt) fs43.stat(destParent, { bigint: true }, callback);
      else fs43.stat(destParent, callback);
    }
    __name(checkParentPaths, "checkParentPaths");
    function checkParentPathsSync(src, srcStat, dest, funcName) {
      const srcParent = path38.resolve(path38.dirname(src));
      const destParent = path38.resolve(path38.dirname(dest));
      if (destParent === srcParent || destParent === path38.parse(destParent).root) return;
      let destStat;
      try {
        destStat = statSync2(destParent);
      } catch (err) {
        if (err.code === "ENOENT") return;
        throw err;
      }
      if (areIdentical(srcStat, destStat)) {
        throw new Error(errMsg(src, dest, funcName));
      }
      return checkParentPathsSync(src, srcStat, destParent, funcName);
    }
    __name(checkParentPathsSync, "checkParentPathsSync");
    function areIdentical(srcStat, destStat) {
      if (destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev) {
        if (nodeSupportsBigInt || destStat.ino < Number.MAX_SAFE_INTEGER) {
          return true;
        }
        if (destStat.size === srcStat.size && destStat.mode === srcStat.mode && destStat.nlink === srcStat.nlink && destStat.atimeMs === srcStat.atimeMs && destStat.mtimeMs === srcStat.mtimeMs && destStat.ctimeMs === srcStat.ctimeMs && destStat.birthtimeMs === srcStat.birthtimeMs) {
          return true;
        }
      }
      return false;
    }
    __name(areIdentical, "areIdentical");
    function isSrcSubdir(src, dest) {
      const srcArr = path38.resolve(src).split(path38.sep).filter((i3) => i3);
      const destArr = path38.resolve(dest).split(path38.sep).filter((i3) => i3);
      return srcArr.reduce((acc, cur, i3) => acc && destArr[i3] === cur, true);
    }
    __name(isSrcSubdir, "isSrcSubdir");
    function errMsg(src, dest, funcName) {
      return `Cannot ${funcName} '${src}' to a subdirectory of itself, '${dest}'.`;
    }
    __name(errMsg, "errMsg");
    module2.exports = {
      checkPaths,
      checkPathsSync,
      checkParentPaths,
      checkParentPathsSync,
      isSrcSubdir
    };
  }
});

// node_modules/fs-extra/lib/copy-sync/copy-sync.js
var require_copy_sync3 = __commonJS({
  "node_modules/fs-extra/lib/copy-sync/copy-sync.js"(exports2, module2) {
    "use strict";
    var fs43 = require_graceful_fs();
    var path38 = require("path");
    var mkdirsSync2 = require_mkdirs2().mkdirsSync;
    var utimesMillisSync = require_utimes2().utimesMillisSync;
    var stat5 = require_stat2();
    function copySync(src, dest, opts) {
      if (typeof opts === "function") {
        opts = { filter: opts };
      }
      opts = opts || {};
      opts.clobber = "clobber" in opts ? !!opts.clobber : true;
      opts.overwrite = "overwrite" in opts ? !!opts.overwrite : opts.clobber;
      if (opts.preserveTimestamps && process.arch === "ia32") {
        console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;

    see https://github.com/jprichardson/node-fs-extra/issues/269`);
      }
      const { srcStat, destStat } = stat5.checkPathsSync(src, dest, "copy");
      stat5.checkParentPathsSync(src, srcStat, dest, "copy");
      return handleFilterAndCopy(destStat, src, dest, opts);
    }
    __name(copySync, "copySync");
    function handleFilterAndCopy(destStat, src, dest, opts) {
      if (opts.filter && !opts.filter(src, dest)) return;
      const destParent = path38.dirname(dest);
      if (!fs43.existsSync(destParent)) mkdirsSync2(destParent);
      return startCopy(destStat, src, dest, opts);
    }
    __name(handleFilterAndCopy, "handleFilterAndCopy");
    function startCopy(destStat, src, dest, opts) {
      if (opts.filter && !opts.filter(src, dest)) return;
      return getStats(destStat, src, dest, opts);
    }
    __name(startCopy, "startCopy");
    function getStats(destStat, src, dest, opts) {
      const statSync2 = opts.dereference ? fs43.statSync : fs43.lstatSync;
      const srcStat = statSync2(src);
      if (srcStat.isDirectory()) return onDir(srcStat, destStat, src, dest, opts);
      else if (srcStat.isFile() || srcStat.isCharacterDevice() || srcStat.isBlockDevice()) return onFile(srcStat, destStat, src, dest, opts);
      else if (srcStat.isSymbolicLink()) return onLink(destStat, src, dest, opts);
    }
    __name(getStats, "getStats");
    function onFile(srcStat, destStat, src, dest, opts) {
      if (!destStat) return copyFile(srcStat, src, dest, opts);
      return mayCopyFile(srcStat, src, dest, opts);
    }
    __name(onFile, "onFile");
    function mayCopyFile(srcStat, src, dest, opts) {
      if (opts.overwrite) {
        fs43.unlinkSync(dest);
        return copyFile(srcStat, src, dest, opts);
      } else if (opts.errorOnExist) {
        throw new Error(`'${dest}' already exists`);
      }
    }
    __name(mayCopyFile, "mayCopyFile");
    function copyFile(srcStat, src, dest, opts) {
      fs43.copyFileSync(src, dest);
      if (opts.preserveTimestamps) handleTimestamps(srcStat.mode, src, dest);
      return setDestMode(dest, srcStat.mode);
    }
    __name(copyFile, "copyFile");
    function handleTimestamps(srcMode, src, dest) {
      if (fileIsNotWritable(srcMode)) makeFileWritable(dest, srcMode);
      return setDestTimestamps(src, dest);
    }
    __name(handleTimestamps, "handleTimestamps");
    function fileIsNotWritable(srcMode) {
      return (srcMode & 128) === 0;
    }
    __name(fileIsNotWritable, "fileIsNotWritable");
    function makeFileWritable(dest, srcMode) {
      return setDestMode(dest, srcMode | 128);
    }
    __name(makeFileWritable, "makeFileWritable");
    function setDestMode(dest, srcMode) {
      return fs43.chmodSync(dest, srcMode);
    }
    __name(setDestMode, "setDestMode");
    function setDestTimestamps(src, dest) {
      const updatedSrcStat = fs43.statSync(src);
      return utimesMillisSync(dest, updatedSrcStat.atime, updatedSrcStat.mtime);
    }
    __name(setDestTimestamps, "setDestTimestamps");
    function onDir(srcStat, destStat, src, dest, opts) {
      if (!destStat) return mkDirAndCopy(srcStat.mode, src, dest, opts);
      if (destStat && !destStat.isDirectory()) {
        throw new Error(`Cannot overwrite non-directory '${dest}' with directory '${src}'.`);
      }
      return copyDir(src, dest, opts);
    }
    __name(onDir, "onDir");
    function mkDirAndCopy(srcMode, src, dest, opts) {
      fs43.mkdirSync(dest);
      copyDir(src, dest, opts);
      return setDestMode(dest, srcMode);
    }
    __name(mkDirAndCopy, "mkDirAndCopy");
    function copyDir(src, dest, opts) {
      fs43.readdirSync(src).forEach((item) => copyDirItem(item, src, dest, opts));
    }
    __name(copyDir, "copyDir");
    function copyDirItem(item, src, dest, opts) {
      const srcItem = path38.join(src, item);
      const destItem = path38.join(dest, item);
      const { destStat } = stat5.checkPathsSync(srcItem, destItem, "copy");
      return startCopy(destStat, srcItem, destItem, opts);
    }
    __name(copyDirItem, "copyDirItem");
    function onLink(destStat, src, dest, opts) {
      let resolvedSrc = fs43.readlinkSync(src);
      if (opts.dereference) {
        resolvedSrc = path38.resolve(process.cwd(), resolvedSrc);
      }
      if (!destStat) {
        return fs43.symlinkSync(resolvedSrc, dest);
      } else {
        let resolvedDest;
        try {
          resolvedDest = fs43.readlinkSync(dest);
        } catch (err) {
          if (err.code === "EINVAL" || err.code === "UNKNOWN") return fs43.symlinkSync(resolvedSrc, dest);
          throw err;
        }
        if (opts.dereference) {
          resolvedDest = path38.resolve(process.cwd(), resolvedDest);
        }
        if (stat5.isSrcSubdir(resolvedSrc, resolvedDest)) {
          throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
        }
        if (fs43.statSync(dest).isDirectory() && stat5.isSrcSubdir(resolvedDest, resolvedSrc)) {
          throw new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`);
        }
        return copyLink(resolvedSrc, dest);
      }
    }
    __name(onLink, "onLink");
    function copyLink(resolvedSrc, dest) {
      fs43.unlinkSync(dest);
      return fs43.symlinkSync(resolvedSrc, dest);
    }
    __name(copyLink, "copyLink");
    module2.exports = copySync;
  }
});

// node_modules/fs-extra/lib/copy-sync/index.js
var require_copy_sync4 = __commonJS({
  "node_modules/fs-extra/lib/copy-sync/index.js"(exports2, module2) {
    "use strict";
    module2.exports = {
      copySync: require_copy_sync3()
    };
  }
});

// node_modules/fs-extra/lib/path-exists/index.js
var require_path_exists2 = __commonJS({
  "node_modules/fs-extra/lib/path-exists/index.js"(exports2, module2) {
    "use strict";
    var u3 = require_universalify().fromPromise;
    var fs43 = require_fs2();
    function pathExists9(path38) {
      return fs43.access(path38).then(() => true).catch(() => false);
    }
    __name(pathExists9, "pathExists");
    module2.exports = {
      pathExists: u3(pathExists9),
      pathExistsSync: fs43.existsSync
    };
  }
});

// node_modules/fs-extra/lib/copy/copy.js
var require_copy3 = __commonJS({
  "node_modules/fs-extra/lib/copy/copy.js"(exports2, module2) {
    "use strict";
    var fs43 = require_graceful_fs();
    var path38 = require("path");
    var mkdirs = require_mkdirs2().mkdirs;
    var pathExists9 = require_path_exists2().pathExists;
    var utimesMillis = require_utimes2().utimesMillis;
    var stat5 = require_stat2();
    function copy2(src, dest, opts, cb) {
      if (typeof opts === "function" && !cb) {
        cb = opts;
        opts = {};
      } else if (typeof opts === "function") {
        opts = { filter: opts };
      }
      cb = cb || function() {
      };
      opts = opts || {};
      opts.clobber = "clobber" in opts ? !!opts.clobber : true;
      opts.overwrite = "overwrite" in opts ? !!opts.overwrite : opts.clobber;
      if (opts.preserveTimestamps && process.arch === "ia32") {
        console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;

    see https://github.com/jprichardson/node-fs-extra/issues/269`);
      }
      stat5.checkPaths(src, dest, "copy", (err, stats) => {
        if (err) return cb(err);
        const { srcStat, destStat } = stats;
        stat5.checkParentPaths(src, srcStat, dest, "copy", (err2) => {
          if (err2) return cb(err2);
          if (opts.filter) return handleFilter(checkParentDir, destStat, src, dest, opts, cb);
          return checkParentDir(destStat, src, dest, opts, cb);
        });
      });
    }
    __name(copy2, "copy");
    function checkParentDir(destStat, src, dest, opts, cb) {
      const destParent = path38.dirname(dest);
      pathExists9(destParent, (err, dirExists) => {
        if (err) return cb(err);
        if (dirExists) return startCopy(destStat, src, dest, opts, cb);
        mkdirs(destParent, (err2) => {
          if (err2) return cb(err2);
          return startCopy(destStat, src, dest, opts, cb);
        });
      });
    }
    __name(checkParentDir, "checkParentDir");
    function handleFilter(onInclude, destStat, src, dest, opts, cb) {
      Promise.resolve(opts.filter(src, dest)).then((include) => {
        if (include) return onInclude(destStat, src, dest, opts, cb);
        return cb();
      }, (error5) => cb(error5));
    }
    __name(handleFilter, "handleFilter");
    function startCopy(destStat, src, dest, opts, cb) {
      if (opts.filter) return handleFilter(getStats, destStat, src, dest, opts, cb);
      return getStats(destStat, src, dest, opts, cb);
    }
    __name(startCopy, "startCopy");
    function getStats(destStat, src, dest, opts, cb) {
      const stat6 = opts.dereference ? fs43.stat : fs43.lstat;
      stat6(src, (err, srcStat) => {
        if (err) return cb(err);
        if (srcStat.isDirectory()) return onDir(srcStat, destStat, src, dest, opts, cb);
        else if (srcStat.isFile() || srcStat.isCharacterDevice() || srcStat.isBlockDevice()) return onFile(srcStat, destStat, src, dest, opts, cb);
        else if (srcStat.isSymbolicLink()) return onLink(destStat, src, dest, opts, cb);
      });
    }
    __name(getStats, "getStats");
    function onFile(srcStat, destStat, src, dest, opts, cb) {
      if (!destStat) return copyFile(srcStat, src, dest, opts, cb);
      return mayCopyFile(srcStat, src, dest, opts, cb);
    }
    __name(onFile, "onFile");
    function mayCopyFile(srcStat, src, dest, opts, cb) {
      if (opts.overwrite) {
        fs43.unlink(dest, (err) => {
          if (err) return cb(err);
          return copyFile(srcStat, src, dest, opts, cb);
        });
      } else if (opts.errorOnExist) {
        return cb(new Error(`'${dest}' already exists`));
      } else return cb();
    }
    __name(mayCopyFile, "mayCopyFile");
    function copyFile(srcStat, src, dest, opts, cb) {
      fs43.copyFile(src, dest, (err) => {
        if (err) return cb(err);
        if (opts.preserveTimestamps) return handleTimestampsAndMode(srcStat.mode, src, dest, cb);
        return setDestMode(dest, srcStat.mode, cb);
      });
    }
    __name(copyFile, "copyFile");
    function handleTimestampsAndMode(srcMode, src, dest, cb) {
      if (fileIsNotWritable(srcMode)) {
        return makeFileWritable(dest, srcMode, (err) => {
          if (err) return cb(err);
          return setDestTimestampsAndMode(srcMode, src, dest, cb);
        });
      }
      return setDestTimestampsAndMode(srcMode, src, dest, cb);
    }
    __name(handleTimestampsAndMode, "handleTimestampsAndMode");
    function fileIsNotWritable(srcMode) {
      return (srcMode & 128) === 0;
    }
    __name(fileIsNotWritable, "fileIsNotWritable");
    function makeFileWritable(dest, srcMode, cb) {
      return setDestMode(dest, srcMode | 128, cb);
    }
    __name(makeFileWritable, "makeFileWritable");
    function setDestTimestampsAndMode(srcMode, src, dest, cb) {
      setDestTimestamps(src, dest, (err) => {
        if (err) return cb(err);
        return setDestMode(dest, srcMode, cb);
      });
    }
    __name(setDestTimestampsAndMode, "setDestTimestampsAndMode");
    function setDestMode(dest, srcMode, cb) {
      return fs43.chmod(dest, srcMode, cb);
    }
    __name(setDestMode, "setDestMode");
    function setDestTimestamps(src, dest, cb) {
      fs43.stat(src, (err, updatedSrcStat) => {
        if (err) return cb(err);
        return utimesMillis(dest, updatedSrcStat.atime, updatedSrcStat.mtime, cb);
      });
    }
    __name(setDestTimestamps, "setDestTimestamps");
    function onDir(srcStat, destStat, src, dest, opts, cb) {
      if (!destStat) return mkDirAndCopy(srcStat.mode, src, dest, opts, cb);
      if (destStat && !destStat.isDirectory()) {
        return cb(new Error(`Cannot overwrite non-directory '${dest}' with directory '${src}'.`));
      }
      return copyDir(src, dest, opts, cb);
    }
    __name(onDir, "onDir");
    function mkDirAndCopy(srcMode, src, dest, opts, cb) {
      fs43.mkdir(dest, (err) => {
        if (err) return cb(err);
        copyDir(src, dest, opts, (err2) => {
          if (err2) return cb(err2);
          return setDestMode(dest, srcMode, cb);
        });
      });
    }
    __name(mkDirAndCopy, "mkDirAndCopy");
    function copyDir(src, dest, opts, cb) {
      fs43.readdir(src, (err, items) => {
        if (err) return cb(err);
        return copyDirItems(items, src, dest, opts, cb);
      });
    }
    __name(copyDir, "copyDir");
    function copyDirItems(items, src, dest, opts, cb) {
      const item = items.pop();
      if (!item) return cb();
      return copyDirItem(items, item, src, dest, opts, cb);
    }
    __name(copyDirItems, "copyDirItems");
    function copyDirItem(items, item, src, dest, opts, cb) {
      const srcItem = path38.join(src, item);
      const destItem = path38.join(dest, item);
      stat5.checkPaths(srcItem, destItem, "copy", (err, stats) => {
        if (err) return cb(err);
        const { destStat } = stats;
        startCopy(destStat, srcItem, destItem, opts, (err2) => {
          if (err2) return cb(err2);
          return copyDirItems(items, src, dest, opts, cb);
        });
      });
    }
    __name(copyDirItem, "copyDirItem");
    function onLink(destStat, src, dest, opts, cb) {
      fs43.readlink(src, (err, resolvedSrc) => {
        if (err) return cb(err);
        if (opts.dereference) {
          resolvedSrc = path38.resolve(process.cwd(), resolvedSrc);
        }
        if (!destStat) {
          return fs43.symlink(resolvedSrc, dest, cb);
        } else {
          fs43.readlink(dest, (err2, resolvedDest) => {
            if (err2) {
              if (err2.code === "EINVAL" || err2.code === "UNKNOWN") return fs43.symlink(resolvedSrc, dest, cb);
              return cb(err2);
            }
            if (opts.dereference) {
              resolvedDest = path38.resolve(process.cwd(), resolvedDest);
            }
            if (stat5.isSrcSubdir(resolvedSrc, resolvedDest)) {
              return cb(new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`));
            }
            if (destStat.isDirectory() && stat5.isSrcSubdir(resolvedDest, resolvedSrc)) {
              return cb(new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`));
            }
            return copyLink(resolvedSrc, dest, cb);
          });
        }
      });
    }
    __name(onLink, "onLink");
    function copyLink(resolvedSrc, dest, cb) {
      fs43.unlink(dest, (err) => {
        if (err) return cb(err);
        return fs43.symlink(resolvedSrc, dest, cb);
      });
    }
    __name(copyLink, "copyLink");
    module2.exports = copy2;
  }
});

// node_modules/fs-extra/lib/copy/index.js
var require_copy4 = __commonJS({
  "node_modules/fs-extra/lib/copy/index.js"(exports2, module2) {
    "use strict";
    var u3 = require_universalify().fromCallback;
    module2.exports = {
      copy: u3(require_copy3())
    };
  }
});

// node_modules/fs-extra/lib/remove/rimraf.js
var require_rimraf2 = __commonJS({
  "node_modules/fs-extra/lib/remove/rimraf.js"(exports2, module2) {
    "use strict";
    var fs43 = require_graceful_fs();
    var path38 = require("path");
    var assert = require("assert");
    var isWindows = process.platform === "win32";
    function defaults4(options) {
      const methods = [
        "unlink",
        "chmod",
        "stat",
        "lstat",
        "rmdir",
        "readdir"
      ];
      methods.forEach((m3) => {
        options[m3] = options[m3] || fs43[m3];
        m3 = m3 + "Sync";
        options[m3] = options[m3] || fs43[m3];
      });
      options.maxBusyTries = options.maxBusyTries || 3;
    }
    __name(defaults4, "defaults");
    function rimraf(p3, options, cb) {
      let busyTries = 0;
      if (typeof options === "function") {
        cb = options;
        options = {};
      }
      assert(p3, "rimraf: missing path");
      assert.strictEqual(typeof p3, "string", "rimraf: path should be a string");
      assert.strictEqual(typeof cb, "function", "rimraf: callback function required");
      assert(options, "rimraf: invalid options argument provided");
      assert.strictEqual(typeof options, "object", "rimraf: options should be object");
      defaults4(options);
      rimraf_(p3, options, /* @__PURE__ */ __name(function CB(er) {
        if (er) {
          if ((er.code === "EBUSY" || er.code === "ENOTEMPTY" || er.code === "EPERM") && busyTries < options.maxBusyTries) {
            busyTries++;
            const time = busyTries * 100;
            return setTimeout(() => rimraf_(p3, options, CB), time);
          }
          if (er.code === "ENOENT") er = null;
        }
        cb(er);
      }, "CB"));
    }
    __name(rimraf, "rimraf");
    function rimraf_(p3, options, cb) {
      assert(p3);
      assert(options);
      assert(typeof cb === "function");
      options.lstat(p3, (er, st) => {
        if (er && er.code === "ENOENT") {
          return cb(null);
        }
        if (er && er.code === "EPERM" && isWindows) {
          return fixWinEPERM(p3, options, er, cb);
        }
        if (st && st.isDirectory()) {
          return rmdir(p3, options, er, cb);
        }
        options.unlink(p3, (er2) => {
          if (er2) {
            if (er2.code === "ENOENT") {
              return cb(null);
            }
            if (er2.code === "EPERM") {
              return isWindows ? fixWinEPERM(p3, options, er2, cb) : rmdir(p3, options, er2, cb);
            }
            if (er2.code === "EISDIR") {
              return rmdir(p3, options, er2, cb);
            }
          }
          return cb(er2);
        });
      });
    }
    __name(rimraf_, "rimraf_");
    function fixWinEPERM(p3, options, er, cb) {
      assert(p3);
      assert(options);
      assert(typeof cb === "function");
      options.chmod(p3, 438, (er2) => {
        if (er2) {
          cb(er2.code === "ENOENT" ? null : er);
        } else {
          options.stat(p3, (er3, stats) => {
            if (er3) {
              cb(er3.code === "ENOENT" ? null : er);
            } else if (stats.isDirectory()) {
              rmdir(p3, options, er, cb);
            } else {
              options.unlink(p3, cb);
            }
          });
        }
      });
    }
    __name(fixWinEPERM, "fixWinEPERM");
    function fixWinEPERMSync(p3, options, er) {
      let stats;
      assert(p3);
      assert(options);
      try {
        options.chmodSync(p3, 438);
      } catch (er2) {
        if (er2.code === "ENOENT") {
          return;
        } else {
          throw er;
        }
      }
      try {
        stats = options.statSync(p3);
      } catch (er3) {
        if (er3.code === "ENOENT") {
          return;
        } else {
          throw er;
        }
      }
      if (stats.isDirectory()) {
        rmdirSync2(p3, options, er);
      } else {
        options.unlinkSync(p3);
      }
    }
    __name(fixWinEPERMSync, "fixWinEPERMSync");
    function rmdir(p3, options, originalEr, cb) {
      assert(p3);
      assert(options);
      assert(typeof cb === "function");
      options.rmdir(p3, (er) => {
        if (er && (er.code === "ENOTEMPTY" || er.code === "EEXIST" || er.code === "EPERM")) {
          rmkids(p3, options, cb);
        } else if (er && er.code === "ENOTDIR") {
          cb(originalEr);
        } else {
          cb(er);
        }
      });
    }
    __name(rmdir, "rmdir");
    function rmkids(p3, options, cb) {
      assert(p3);
      assert(options);
      assert(typeof cb === "function");
      options.readdir(p3, (er, files) => {
        if (er) return cb(er);
        let n3 = files.length;
        let errState;
        if (n3 === 0) return options.rmdir(p3, cb);
        files.forEach((f3) => {
          rimraf(path38.join(p3, f3), options, (er2) => {
            if (errState) {
              return;
            }
            if (er2) return cb(errState = er2);
            if (--n3 === 0) {
              options.rmdir(p3, cb);
            }
          });
        });
      });
    }
    __name(rmkids, "rmkids");
    function rimrafSync(p3, options) {
      let st;
      options = options || {};
      defaults4(options);
      assert(p3, "rimraf: missing path");
      assert.strictEqual(typeof p3, "string", "rimraf: path should be a string");
      assert(options, "rimraf: missing options");
      assert.strictEqual(typeof options, "object", "rimraf: options should be object");
      try {
        st = options.lstatSync(p3);
      } catch (er) {
        if (er.code === "ENOENT") {
          return;
        }
        if (er.code === "EPERM" && isWindows) {
          fixWinEPERMSync(p3, options, er);
        }
      }
      try {
        if (st && st.isDirectory()) {
          rmdirSync2(p3, options, null);
        } else {
          options.unlinkSync(p3);
        }
      } catch (er) {
        if (er.code === "ENOENT") {
          return;
        } else if (er.code === "EPERM") {
          return isWindows ? fixWinEPERMSync(p3, options, er) : rmdirSync2(p3, options, er);
        } else if (er.code !== "EISDIR") {
          throw er;
        }
        rmdirSync2(p3, options, er);
      }
    }
    __name(rimrafSync, "rimrafSync");
    function rmdirSync2(p3, options, originalEr) {
      assert(p3);
      assert(options);
      try {
        options.rmdirSync(p3);
      } catch (er) {
        if (er.code === "ENOTDIR") {
          throw originalEr;
        } else if (er.code === "ENOTEMPTY" || er.code === "EEXIST" || er.code === "EPERM") {
          rmkidsSync(p3, options);
        } else if (er.code !== "ENOENT") {
          throw er;
        }
      }
    }
    __name(rmdirSync2, "rmdirSync");
    function rmkidsSync(p3, options) {
      assert(p3);
      assert(options);
      options.readdirSync(p3).forEach((f3) => rimrafSync(path38.join(p3, f3), options));
      if (isWindows) {
        const startTime = Date.now();
        do {
          try {
            const ret = options.rmdirSync(p3, options);
            return ret;
          } catch {
          }
        } while (Date.now() - startTime < 500);
      } else {
        const ret = options.rmdirSync(p3, options);
        return ret;
      }
    }
    __name(rmkidsSync, "rmkidsSync");
    module2.exports = rimraf;
    rimraf.sync = rimrafSync;
  }
});

// node_modules/fs-extra/lib/remove/index.js
var require_remove2 = __commonJS({
  "node_modules/fs-extra/lib/remove/index.js"(exports2, module2) {
    "use strict";
    var u3 = require_universalify().fromCallback;
    var rimraf = require_rimraf2();
    module2.exports = {
      remove: u3(rimraf),
      removeSync: rimraf.sync
    };
  }
});

// node_modules/fs-extra/lib/empty/index.js
var require_empty2 = __commonJS({
  "node_modules/fs-extra/lib/empty/index.js"(exports2, module2) {
    "use strict";
    var u3 = require_universalify().fromCallback;
    var fs43 = require_graceful_fs();
    var path38 = require("path");
    var mkdir2 = require_mkdirs2();
    var remove2 = require_remove2();
    var emptyDir = u3(/* @__PURE__ */ __name(function emptyDir2(dir, callback) {
      callback = callback || function() {
      };
      fs43.readdir(dir, (err, items) => {
        if (err) return mkdir2.mkdirs(dir, callback);
        items = items.map((item) => path38.join(dir, item));
        deleteItem();
        function deleteItem() {
          const item = items.pop();
          if (!item) return callback();
          remove2.remove(item, (err2) => {
            if (err2) return callback(err2);
            deleteItem();
          });
        }
        __name(deleteItem, "deleteItem");
      });
    }, "emptyDir"));
    function emptyDirSync(dir) {
      let items;
      try {
        items = fs43.readdirSync(dir);
      } catch {
        return mkdir2.mkdirsSync(dir);
      }
      items.forEach((item) => {
        item = path38.join(dir, item);
        remove2.removeSync(item);
      });
    }
    __name(emptyDirSync, "emptyDirSync");
    module2.exports = {
      emptyDirSync,
      emptydirSync: emptyDirSync,
      emptyDir,
      emptydir: emptyDir
    };
  }
});

// node_modules/fs-extra/lib/ensure/file.js
var require_file3 = __commonJS({
  "node_modules/fs-extra/lib/ensure/file.js"(exports2, module2) {
    "use strict";
    var u3 = require_universalify().fromCallback;
    var path38 = require("path");
    var fs43 = require_graceful_fs();
    var mkdir2 = require_mkdirs2();
    function createFile(file, callback) {
      function makeFile() {
        fs43.writeFile(file, "", (err) => {
          if (err) return callback(err);
          callback();
        });
      }
      __name(makeFile, "makeFile");
      fs43.stat(file, (err, stats) => {
        if (!err && stats.isFile()) return callback();
        const dir = path38.dirname(file);
        fs43.stat(dir, (err2, stats2) => {
          if (err2) {
            if (err2.code === "ENOENT") {
              return mkdir2.mkdirs(dir, (err3) => {
                if (err3) return callback(err3);
                makeFile();
              });
            }
            return callback(err2);
          }
          if (stats2.isDirectory()) makeFile();
          else {
            fs43.readdir(dir, (err3) => {
              if (err3) return callback(err3);
            });
          }
        });
      });
    }
    __name(createFile, "createFile");
    function createFileSync(file) {
      let stats;
      try {
        stats = fs43.statSync(file);
      } catch {
      }
      if (stats && stats.isFile()) return;
      const dir = path38.dirname(file);
      try {
        if (!fs43.statSync(dir).isDirectory()) {
          fs43.readdirSync(dir);
        }
      } catch (err) {
        if (err && err.code === "ENOENT") mkdir2.mkdirsSync(dir);
        else throw err;
      }
      fs43.writeFileSync(file, "");
    }
    __name(createFileSync, "createFileSync");
    module2.exports = {
      createFile: u3(createFile),
      createFileSync
    };
  }
});

// node_modules/fs-extra/lib/ensure/link.js
var require_link2 = __commonJS({
  "node_modules/fs-extra/lib/ensure/link.js"(exports2, module2) {
    "use strict";
    var u3 = require_universalify().fromCallback;
    var path38 = require("path");
    var fs43 = require_graceful_fs();
    var mkdir2 = require_mkdirs2();
    var pathExists9 = require_path_exists2().pathExists;
    function createLink(srcpath, dstpath, callback) {
      function makeLink(srcpath2, dstpath2) {
        fs43.link(srcpath2, dstpath2, (err) => {
          if (err) return callback(err);
          callback(null);
        });
      }
      __name(makeLink, "makeLink");
      pathExists9(dstpath, (err, destinationExists) => {
        if (err) return callback(err);
        if (destinationExists) return callback(null);
        fs43.lstat(srcpath, (err2) => {
          if (err2) {
            err2.message = err2.message.replace("lstat", "ensureLink");
            return callback(err2);
          }
          const dir = path38.dirname(dstpath);
          pathExists9(dir, (err3, dirExists) => {
            if (err3) return callback(err3);
            if (dirExists) return makeLink(srcpath, dstpath);
            mkdir2.mkdirs(dir, (err4) => {
              if (err4) return callback(err4);
              makeLink(srcpath, dstpath);
            });
          });
        });
      });
    }
    __name(createLink, "createLink");
    function createLinkSync(srcpath, dstpath) {
      const destinationExists = fs43.existsSync(dstpath);
      if (destinationExists) return void 0;
      try {
        fs43.lstatSync(srcpath);
      } catch (err) {
        err.message = err.message.replace("lstat", "ensureLink");
        throw err;
      }
      const dir = path38.dirname(dstpath);
      const dirExists = fs43.existsSync(dir);
      if (dirExists) return fs43.linkSync(srcpath, dstpath);
      mkdir2.mkdirsSync(dir);
      return fs43.linkSync(srcpath, dstpath);
    }
    __name(createLinkSync, "createLinkSync");
    module2.exports = {
      createLink: u3(createLink),
      createLinkSync
    };
  }
});

// node_modules/fs-extra/lib/ensure/symlink-paths.js
var require_symlink_paths2 = __commonJS({
  "node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports2, module2) {
    "use strict";
    var path38 = require("path");
    var fs43 = require_graceful_fs();
    var pathExists9 = require_path_exists2().pathExists;
    function symlinkPaths(srcpath, dstpath, callback) {
      if (path38.isAbsolute(srcpath)) {
        return fs43.lstat(srcpath, (err) => {
          if (err) {
            err.message = err.message.replace("lstat", "ensureSymlink");
            return callback(err);
          }
          return callback(null, {
            toCwd: srcpath,
            toDst: srcpath
          });
        });
      } else {
        const dstdir = path38.dirname(dstpath);
        const relativeToDst = path38.join(dstdir, srcpath);
        return pathExists9(relativeToDst, (err, exists) => {
          if (err) return callback(err);
          if (exists) {
            return callback(null, {
              toCwd: relativeToDst,
              toDst: srcpath
            });
          } else {
            return fs43.lstat(srcpath, (err2) => {
              if (err2) {
                err2.message = err2.message.replace("lstat", "ensureSymlink");
                return callback(err2);
              }
              return callback(null, {
                toCwd: srcpath,
                toDst: path38.relative(dstdir, srcpath)
              });
            });
          }
        });
      }
    }
    __name(symlinkPaths, "symlinkPaths");
    function symlinkPathsSync(srcpath, dstpath) {
      let exists;
      if (path38.isAbsolute(srcpath)) {
        exists = fs43.existsSync(srcpath);
        if (!exists) throw new Error("absolute srcpath does not exist");
        return {
          toCwd: srcpath,
          toDst: srcpath
        };
      } else {
        const dstdir = path38.dirname(dstpath);
        const relativeToDst = path38.join(dstdir, srcpath);
        exists = fs43.existsSync(relativeToDst);
        if (exists) {
          return {
            toCwd: relativeToDst,
            toDst: srcpath
          };
        } else {
          exists = fs43.existsSync(srcpath);
          if (!exists) throw new Error("relative srcpath does not exist");
          return {
            toCwd: srcpath,
            toDst: path38.relative(dstdir, srcpath)
          };
        }
      }
    }
    __name(symlinkPathsSync, "symlinkPathsSync");
    module2.exports = {
      symlinkPaths,
      symlinkPathsSync
    };
  }
});

// node_modules/fs-extra/lib/ensure/symlink-type.js
var require_symlink_type2 = __commonJS({
  "node_modules/fs-extra/lib/ensure/symlink-type.js"(exports2, module2) {
    "use strict";
    var fs43 = require_graceful_fs();
    function symlinkType(srcpath, type, callback) {
      callback = typeof type === "function" ? type : callback;
      type = typeof type === "function" ? false : type;
      if (type) return callback(null, type);
      fs43.lstat(srcpath, (err, stats) => {
        if (err) return callback(null, "file");
        type = stats && stats.isDirectory() ? "dir" : "file";
        callback(null, type);
      });
    }
    __name(symlinkType, "symlinkType");
    function symlinkTypeSync(srcpath, type) {
      let stats;
      if (type) return type;
      try {
        stats = fs43.lstatSync(srcpath);
      } catch {
        return "file";
      }
      return stats && stats.isDirectory() ? "dir" : "file";
    }
    __name(symlinkTypeSync, "symlinkTypeSync");
    module2.exports = {
      symlinkType,
      symlinkTypeSync
    };
  }
});

// node_modules/fs-extra/lib/ensure/symlink.js
var require_symlink2 = __commonJS({
  "node_modules/fs-extra/lib/ensure/symlink.js"(exports2, module2) {
    "use strict";
    var u3 = require_universalify().fromCallback;
    var path38 = require("path");
    var fs43 = require_graceful_fs();
    var _mkdirs = require_mkdirs2();
    var mkdirs = _mkdirs.mkdirs;
    var mkdirsSync2 = _mkdirs.mkdirsSync;
    var _symlinkPaths = require_symlink_paths2();
    var symlinkPaths = _symlinkPaths.symlinkPaths;
    var symlinkPathsSync = _symlinkPaths.symlinkPathsSync;
    var _symlinkType = require_symlink_type2();
    var symlinkType = _symlinkType.symlinkType;
    var symlinkTypeSync = _symlinkType.symlinkTypeSync;
    var pathExists9 = require_path_exists2().pathExists;
    function createSymlink(srcpath, dstpath, type, callback) {
      callback = typeof type === "function" ? type : callback;
      type = typeof type === "function" ? false : type;
      pathExists9(dstpath, (err, destinationExists) => {
        if (err) return callback(err);
        if (destinationExists) return callback(null);
        symlinkPaths(srcpath, dstpath, (err2, relative2) => {
          if (err2) return callback(err2);
          srcpath = relative2.toDst;
          symlinkType(relative2.toCwd, type, (err3, type2) => {
            if (err3) return callback(err3);
            const dir = path38.dirname(dstpath);
            pathExists9(dir, (err4, dirExists) => {
              if (err4) return callback(err4);
              if (dirExists) return fs43.symlink(srcpath, dstpath, type2, callback);
              mkdirs(dir, (err5) => {
                if (err5) return callback(err5);
                fs43.symlink(srcpath, dstpath, type2, callback);
              });
            });
          });
        });
      });
    }
    __name(createSymlink, "createSymlink");
    function createSymlinkSync(srcpath, dstpath, type) {
      const destinationExists = fs43.existsSync(dstpath);
      if (destinationExists) return void 0;
      const relative2 = symlinkPathsSync(srcpath, dstpath);
      srcpath = relative2.toDst;
      type = symlinkTypeSync(relative2.toCwd, type);
      const dir = path38.dirname(dstpath);
      const exists = fs43.existsSync(dir);
      if (exists) return fs43.symlinkSync(srcpath, dstpath, type);
      mkdirsSync2(dir);
      return fs43.symlinkSync(srcpath, dstpath, type);
    }
    __name(createSymlinkSync, "createSymlinkSync");
    module2.exports = {
      createSymlink: u3(createSymlink),
      createSymlinkSync
    };
  }
});

// node_modules/fs-extra/lib/ensure/index.js
var require_ensure2 = __commonJS({
  "node_modules/fs-extra/lib/ensure/index.js"(exports2, module2) {
    "use strict";
    var file = require_file3();
    var link = require_link2();
    var symlink = require_symlink2();
    module2.exports = {
      // file
      createFile: file.createFile,
      createFileSync: file.createFileSync,
      ensureFile: file.createFile,
      ensureFileSync: file.createFileSync,
      // link
      createLink: link.createLink,
      createLinkSync: link.createLinkSync,
      ensureLink: link.createLink,
      ensureLinkSync: link.createLinkSync,
      // symlink
      createSymlink: symlink.createSymlink,
      createSymlinkSync: symlink.createSymlinkSync,
      ensureSymlink: symlink.createSymlink,
      ensureSymlinkSync: symlink.createSymlinkSync
    };
  }
});

// node_modules/fs-extra/lib/json/jsonfile.js
var require_jsonfile3 = __commonJS({
  "node_modules/fs-extra/lib/json/jsonfile.js"(exports2, module2) {
    "use strict";
    var jsonFile = require_jsonfile();
    module2.exports = {
      // jsonfile exports
      readJson: jsonFile.readFile,
      readJsonSync: jsonFile.readFileSync,
      writeJson: jsonFile.writeFile,
      writeJsonSync: jsonFile.writeFileSync
    };
  }
});

// node_modules/fs-extra/lib/output/index.js
var require_output2 = __commonJS({
  "node_modules/fs-extra/lib/output/index.js"(exports2, module2) {
    "use strict";
    var u3 = require_universalify().fromCallback;
    var fs43 = require_graceful_fs();
    var path38 = require("path");
    var mkdir2 = require_mkdirs2();
    var pathExists9 = require_path_exists2().pathExists;
    function outputFile(file, data3, encoding, callback) {
      if (typeof encoding === "function") {
        callback = encoding;
        encoding = "utf8";
      }
      const dir = path38.dirname(file);
      pathExists9(dir, (err, itDoes) => {
        if (err) return callback(err);
        if (itDoes) return fs43.writeFile(file, data3, encoding, callback);
        mkdir2.mkdirs(dir, (err2) => {
          if (err2) return callback(err2);
          fs43.writeFile(file, data3, encoding, callback);
        });
      });
    }
    __name(outputFile, "outputFile");
    function outputFileSync(file, ...args) {
      const dir = path38.dirname(file);
      if (fs43.existsSync(dir)) {
        return fs43.writeFileSync(file, ...args);
      }
      mkdir2.mkdirsSync(dir);
      fs43.writeFileSync(file, ...args);
    }
    __name(outputFileSync, "outputFileSync");
    module2.exports = {
      outputFile: u3(outputFile),
      outputFileSync
    };
  }
});

// node_modules/fs-extra/lib/json/output-json.js
var require_output_json2 = __commonJS({
  "node_modules/fs-extra/lib/json/output-json.js"(exports2, module2) {
    "use strict";
    var { stringify: stringify3 } = require_utils();
    var { outputFile } = require_output2();
    async function outputJson(file, data3, options = {}) {
      const str = stringify3(data3, options);
      await outputFile(file, str, options);
    }
    __name(outputJson, "outputJson");
    module2.exports = outputJson;
  }
});

// node_modules/fs-extra/lib/json/output-json-sync.js
var require_output_json_sync2 = __commonJS({
  "node_modules/fs-extra/lib/json/output-json-sync.js"(exports2, module2) {
    "use strict";
    var { stringify: stringify3 } = require_utils();
    var { outputFileSync } = require_output2();
    function outputJsonSync(file, data3, options) {
      const str = stringify3(data3, options);
      outputFileSync(file, str, options);
    }
    __name(outputJsonSync, "outputJsonSync");
    module2.exports = outputJsonSync;
  }
});

// node_modules/fs-extra/lib/json/index.js
var require_json4 = __commonJS({
  "node_modules/fs-extra/lib/json/index.js"(exports2, module2) {
    "use strict";
    var u3 = require_universalify().fromPromise;
    var jsonFile = require_jsonfile3();
    jsonFile.outputJson = u3(require_output_json2());
    jsonFile.outputJsonSync = require_output_json_sync2();
    jsonFile.outputJSON = jsonFile.outputJson;
    jsonFile.outputJSONSync = jsonFile.outputJsonSync;
    jsonFile.writeJSON = jsonFile.writeJson;
    jsonFile.writeJSONSync = jsonFile.writeJsonSync;
    jsonFile.readJSON = jsonFile.readJson;
    jsonFile.readJSONSync = jsonFile.readJsonSync;
    module2.exports = jsonFile;
  }
});

// node_modules/fs-extra/lib/move-sync/move-sync.js
var require_move_sync3 = __commonJS({
  "node_modules/fs-extra/lib/move-sync/move-sync.js"(exports2, module2) {
    "use strict";
    var fs43 = require_graceful_fs();
    var path38 = require("path");
    var copySync = require_copy_sync4().copySync;
    var removeSync = require_remove2().removeSync;
    var mkdirpSync2 = require_mkdirs2().mkdirpSync;
    var stat5 = require_stat2();
    function moveSync(src, dest, opts) {
      opts = opts || {};
      const overwrite = opts.overwrite || opts.clobber || false;
      const { srcStat } = stat5.checkPathsSync(src, dest, "move");
      stat5.checkParentPathsSync(src, srcStat, dest, "move");
      mkdirpSync2(path38.dirname(dest));
      return doRename(src, dest, overwrite);
    }
    __name(moveSync, "moveSync");
    function doRename(src, dest, overwrite) {
      if (overwrite) {
        removeSync(dest);
        return rename(src, dest, overwrite);
      }
      if (fs43.existsSync(dest)) throw new Error("dest already exists.");
      return rename(src, dest, overwrite);
    }
    __name(doRename, "doRename");
    function rename(src, dest, overwrite) {
      try {
        fs43.renameSync(src, dest);
      } catch (err) {
        if (err.code !== "EXDEV") throw err;
        return moveAcrossDevice(src, dest, overwrite);
      }
    }
    __name(rename, "rename");
    function moveAcrossDevice(src, dest, overwrite) {
      const opts = {
        overwrite,
        errorOnExist: true
      };
      copySync(src, dest, opts);
      return removeSync(src);
    }
    __name(moveAcrossDevice, "moveAcrossDevice");
    module2.exports = moveSync;
  }
});

// node_modules/fs-extra/lib/move-sync/index.js
var require_move_sync4 = __commonJS({
  "node_modules/fs-extra/lib/move-sync/index.js"(exports2, module2) {
    "use strict";
    module2.exports = {
      moveSync: require_move_sync3()
    };
  }
});

// node_modules/fs-extra/lib/move/move.js
var require_move3 = __commonJS({
  "node_modules/fs-extra/lib/move/move.js"(exports2, module2) {
    "use strict";
    var fs43 = require_graceful_fs();
    var path38 = require("path");
    var copy2 = require_copy4().copy;
    var remove2 = require_remove2().remove;
    var mkdirp2 = require_mkdirs2().mkdirp;
    var pathExists9 = require_path_exists2().pathExists;
    var stat5 = require_stat2();
    function move(src, dest, opts, cb) {
      if (typeof opts === "function") {
        cb = opts;
        opts = {};
      }
      const overwrite = opts.overwrite || opts.clobber || false;
      stat5.checkPaths(src, dest, "move", (err, stats) => {
        if (err) return cb(err);
        const { srcStat } = stats;
        stat5.checkParentPaths(src, srcStat, dest, "move", (err2) => {
          if (err2) return cb(err2);
          mkdirp2(path38.dirname(dest), (err3) => {
            if (err3) return cb(err3);
            return doRename(src, dest, overwrite, cb);
          });
        });
      });
    }
    __name(move, "move");
    function doRename(src, dest, overwrite, cb) {
      if (overwrite) {
        return remove2(dest, (err) => {
          if (err) return cb(err);
          return rename(src, dest, overwrite, cb);
        });
      }
      pathExists9(dest, (err, destExists) => {
        if (err) return cb(err);
        if (destExists) return cb(new Error("dest already exists."));
        return rename(src, dest, overwrite, cb);
      });
    }
    __name(doRename, "doRename");
    function rename(src, dest, overwrite, cb) {
      fs43.rename(src, dest, (err) => {
        if (!err) return cb();
        if (err.code !== "EXDEV") return cb(err);
        return moveAcrossDevice(src, dest, overwrite, cb);
      });
    }
    __name(rename, "rename");
    function moveAcrossDevice(src, dest, overwrite, cb) {
      const opts = {
        overwrite,
        errorOnExist: true
      };
      copy2(src, dest, opts, (err) => {
        if (err) return cb(err);
        return remove2(src, cb);
      });
    }
    __name(moveAcrossDevice, "moveAcrossDevice");
    module2.exports = move;
  }
});

// node_modules/fs-extra/lib/move/index.js
var require_move4 = __commonJS({
  "node_modules/fs-extra/lib/move/index.js"(exports2, module2) {
    "use strict";
    var u3 = require_universalify().fromCallback;
    module2.exports = {
      move: u3(require_move3())
    };
  }
});

// node_modules/fs-extra/lib/index.js
var require_lib13 = __commonJS({
  "node_modules/fs-extra/lib/index.js"(exports2, module2) {
    "use strict";
    module2.exports = {
      // Export promiseified graceful-fs:
      ...require_fs2(),
      // Export extra methods:
      ...require_copy_sync4(),
      ...require_copy4(),
      ...require_empty2(),
      ...require_ensure2(),
      ...require_json4(),
      ...require_mkdirs2(),
      ...require_move_sync4(),
      ...require_move4(),
      ...require_output2(),
      ...require_path_exists2(),
      ...require_remove2()
    };
    var fs43 = require("fs");
    if (Object.getOwnPropertyDescriptor(fs43, "promises")) {
      Object.defineProperty(module2.exports, "promises", {
        get() {
          return fs43.promises;
        }
      });
    }
  }
});

// ../../node_modules/promptly/node_modules/mute-stream/mute.js
var require_mute = __commonJS({
  "../../node_modules/promptly/node_modules/mute-stream/mute.js"(exports2, module2) {
    var Stream2 = require("stream");
    module2.exports = MuteStream;
    function MuteStream(opts) {
      Stream2.apply(this);
      opts = opts || {};
      this.writable = this.readable = true;
      this.muted = false;
      this.on("pipe", this._onpipe);
      this.replace = opts.replace;
      this._prompt = opts.prompt || null;
      this._hadControl = false;
    }
    __name(MuteStream, "MuteStream");
    MuteStream.prototype = Object.create(Stream2.prototype);
    Object.defineProperty(MuteStream.prototype, "constructor", {
      value: MuteStream,
      enumerable: false
    });
    MuteStream.prototype.mute = function() {
      this.muted = true;
    };
    MuteStream.prototype.unmute = function() {
      this.muted = false;
    };
    Object.defineProperty(MuteStream.prototype, "_onpipe", {
      value: onPipe,
      enumerable: false,
      writable: true,
      configurable: true
    });
    function onPipe(src) {
      this._src = src;
    }
    __name(onPipe, "onPipe");
    Object.defineProperty(MuteStream.prototype, "isTTY", {
      get: getIsTTY,
      set: setIsTTY,
      enumerable: true,
      configurable: true
    });
    function getIsTTY() {
      return this._dest ? this._dest.isTTY : this._src ? this._src.isTTY : false;
    }
    __name(getIsTTY, "getIsTTY");
    function setIsTTY(isTTY2) {
      Object.defineProperty(this, "isTTY", {
        value: isTTY2,
        enumerable: true,
        writable: true,
        configurable: true
      });
    }
    __name(setIsTTY, "setIsTTY");
    Object.defineProperty(MuteStream.prototype, "rows", {
      get: /* @__PURE__ */ __name(function() {
        return this._dest ? this._dest.rows : this._src ? this._src.rows : void 0;
      }, "get"),
      enumerable: true,
      configurable: true
    });
    Object.defineProperty(MuteStream.prototype, "columns", {
      get: /* @__PURE__ */ __name(function() {
        return this._dest ? this._dest.columns : this._src ? this._src.columns : void 0;
      }, "get"),
      enumerable: true,
      configurable: true
    });
    MuteStream.prototype.pipe = function(dest, options) {
      this._dest = dest;
      return Stream2.prototype.pipe.call(this, dest, options);
    };
    MuteStream.prototype.pause = function() {
      if (this._src) return this._src.pause();
    };
    MuteStream.prototype.resume = function() {
      if (this._src) return this._src.resume();
    };
    MuteStream.prototype.write = function(c3) {
      if (this.muted) {
        if (!this.replace) return true;
        if (c3.match(/^\u001b/)) {
          if (c3.indexOf(this._prompt) === 0) {
            c3 = c3.substr(this._prompt.length);
            c3 = c3.replace(/./g, this.replace);
            c3 = this._prompt + c3;
          }
          this._hadControl = true;
          return this.emit("data", c3);
        } else {
          if (this._prompt && this._hadControl && c3.indexOf(this._prompt) === 0) {
            this._hadControl = false;
            this.emit("data", this._prompt);
            c3 = c3.substr(this._prompt.length);
          }
          c3 = c3.toString().replace(/./g, this.replace);
        }
      }
      this.emit("data", c3);
    };
    MuteStream.prototype.end = function(c3) {
      if (this.muted) {
        if (c3 && this.replace) {
          c3 = c3.toString().replace(/./g, this.replace);
        } else {
          c3 = null;
        }
      }
      if (c3) this.emit("data", c3);
      this.emit("end");
    };
    function proxy(fn) {
      return function() {
        var d3 = this._dest;
        var s3 = this._src;
        if (d3 && d3[fn]) d3[fn].apply(d3, arguments);
        if (s3 && s3[fn]) s3[fn].apply(s3, arguments);
      };
    }
    __name(proxy, "proxy");
    MuteStream.prototype.destroy = proxy("destroy");
    MuteStream.prototype.destroySoon = proxy("destroySoon");
    MuteStream.prototype.close = proxy("close");
  }
});

// ../../node_modules/promptly/node_modules/read/lib/read.js
var require_read = __commonJS({
  "../../node_modules/promptly/node_modules/read/lib/read.js"(exports2, module2) {
    module2.exports = read;
    var readline = require("readline");
    var Mute = require_mute();
    function read(opts, cb) {
      if (opts.num) {
        throw new Error("read() no longer accepts a char number limit");
      }
      if (typeof opts.default !== "undefined" && typeof opts.default !== "string" && typeof opts.default !== "number") {
        throw new Error("default value must be string or number");
      }
      var input = opts.input || process.stdin;
      var output = opts.output || process.stdout;
      var prompt2 = (opts.prompt || "").trim() + " ";
      var silent = opts.silent;
      var editDef = false;
      var timeout = opts.timeout;
      var def = opts.default || "";
      if (def) {
        if (silent) {
          prompt2 += "(<default hidden>) ";
        } else if (opts.edit) {
          editDef = true;
        } else {
          prompt2 += "(" + def + ") ";
        }
      }
      var terminal = !!(opts.terminal || output.isTTY);
      var m3 = new Mute({ replace: opts.replace, prompt: prompt2 });
      m3.pipe(output, { end: false });
      output = m3;
      var rlOpts = { input, output, terminal };
      if (process.version.match(/^v0\.6/)) {
        var rl = readline.createInterface(rlOpts.input, rlOpts.output);
      } else {
        var rl = readline.createInterface(rlOpts);
      }
      output.unmute();
      rl.setPrompt(prompt2);
      rl.prompt();
      if (silent) {
        output.mute();
      } else if (editDef) {
        rl.line = def;
        rl.cursor = def.length;
        rl._refreshLine();
      }
      var called = false;
      rl.on("line", onLine);
      rl.on("error", onError);
      rl.on("SIGINT", function() {
        rl.close();
        onError(new Error("canceled"));
      });
      var timer;
      if (timeout) {
        timer = setTimeout(function() {
          onError(new Error("timed out"));
        }, timeout);
      }
      function done() {
        called = true;
        rl.close();
        if (process.version.match(/^v0\.6/)) {
          rl.input.removeAllListeners("data");
          rl.input.removeAllListeners("keypress");
          rl.input.pause();
        }
        clearTimeout(timer);
        output.mute();
        output.end();
      }
      __name(done, "done");
      function onError(er) {
        if (called) return;
        done();
        return cb(er);
      }
      __name(onError, "onError");
      function onLine(line) {
        if (called) return;
        if (silent && terminal) {
          output.unmute();
          output.write("\r\n");
        }
        done();
        line = line.replace(/\r?\n$/, "");
        var isDefault = !!(editDef && line === def);
        if (def && !line) {
          isDefault = true;
          line = def;
        }
        cb(null, line, isDefault);
      }
      __name(onLine, "onLine");
    }
    __name(read, "read");
  }
});

// ../../node_modules/promptly/lib/prompt.js
var require_prompt = __commonJS({
  "../../node_modules/promptly/lib/prompt.js"(exports2, module2) {
    "use strict";
    var { EOL } = require("os");
    var { promisify: promisify4 } = require("util");
    var read = promisify4(require_read());
    async function prompt2(message2, options) {
      let value;
      try {
        value = await read({
          prompt: message2,
          silent: options.silent,
          replace: options.replace,
          input: options.input,
          output: options.output,
          timeout: options.timeout
        });
      } catch (err) {
        if (err.message !== "timed out" || options.default === void 0 || !options.useDefaultOnTimeout) {
          throw Object.assign(new Error(err.message), { code: "TIMEDOUT" });
        }
        value = options.default;
      }
      if (options.trim) {
        value = value.trim();
      }
      if (!value) {
        if (options.default === void 0) {
          return prompt2(message2, options);
        }
        value = options.default;
      }
      try {
        for (const i3 in options.validator) {
          value = await options.validator[i3](value);
        }
      } catch (err) {
        if (options.retry) {
          err.message && options.output.write(err.message + EOL);
          return prompt2(message2, options);
        }
        throw err;
      }
      return value;
    }
    __name(prompt2, "prompt");
    module2.exports = prompt2;
  }
});

// ../../node_modules/promptly/lib/getOptions.js
var require_getOptions = __commonJS({
  "../../node_modules/promptly/lib/getOptions.js"(exports2, module2) {
    "use strict";
    function getOptions(options) {
      options = {
        // Own options
        validator: void 0,
        retry: true,
        trim: true,
        default: void 0,
        useDefaultOnTimeout: false,
        // `read` package options
        silent: false,
        replace: "",
        input: process.stdin,
        output: process.stdout,
        timeout: 0,
        ...options
      };
      if (options.default !== void 0 && typeof options.default !== "string") {
        throw new Error("The default option value must be a string");
      }
      if (!Array.isArray(options.validator)) {
        options.validator = options.validator ? [options.validator] : [];
      }
      return options;
    }
    __name(getOptions, "getOptions");
    module2.exports = getOptions;
  }
});

// ../../node_modules/promptly/index.js
var require_promptly = __commonJS({
  "../../node_modules/promptly/index.js"(exports2, module2) {
    "use strict";
    var prompt2 = require_prompt();
    var getOptions = require_getOptions();
    var promptly3 = module2.exports;
    promptly3.prompt = (message2, options) => {
      options = getOptions(options);
      return prompt2(message2, options);
    };
    promptly3.password = (message2, options) => {
      options = getOptions({
        silent: true,
        // Hide password chars
        trim: false,
        // Do not trim so that spaces can be part of the password
        default: "",
        // Allow empty passwords
        ...options
      });
      return prompt2(message2, options);
    };
    promptly3.confirm = (message2, options) => {
      options = getOptions({
        trim: false,
        // Do not trim so that only exact matches pass the validator
        ...options
      });
      options.validator.unshift((value) => {
        value = value.toLowerCase();
        switch (value) {
          case "y":
          case "yes":
          case "1":
            return true;
          case "n":
          case "no":
          case "0":
            return false;
          default:
            throw new Error(`Invalid choice: ${value}`);
        }
      });
      return prompt2(message2, options);
    };
    promptly3.choose = (message2, choices, options) => {
      options = getOptions({
        trim: false,
        // Do not trim so that only exact matches pass the validator
        ...options
      });
      options.validator.unshift((value) => {
        const index = choices.findIndex((choice) => value == choice);
        if (index === -1) {
          throw new Error(`Invalid choice: ${value}`);
        }
        return choices[index];
      });
      return prompt2(message2, options);
    };
  }
});

// node_modules/uuid/dist/esm/stringify.js
function unsafeStringify3(arr, offset = 0) {
  return (byteToHex3[arr[offset + 0]] + byteToHex3[arr[offset + 1]] + byteToHex3[arr[offset + 2]] + byteToHex3[arr[offset + 3]] + "-" + byteToHex3[arr[offset + 4]] + byteToHex3[arr[offset + 5]] + "-" + byteToHex3[arr[offset + 6]] + byteToHex3[arr[offset + 7]] + "-" + byteToHex3[arr[offset + 8]] + byteToHex3[arr[offset + 9]] + "-" + byteToHex3[arr[offset + 10]] + byteToHex3[arr[offset + 11]] + byteToHex3[arr[offset + 12]] + byteToHex3[arr[offset + 13]] + byteToHex3[arr[offset + 14]] + byteToHex3[arr[offset + 15]]).toLowerCase();
}
var byteToHex3;
var init_stringify3 = __esm({
  "node_modules/uuid/dist/esm/stringify.js"() {
    byteToHex3 = [];
    for (let i3 = 0; i3 < 256; ++i3) {
      byteToHex3.push((i3 + 256).toString(16).slice(1));
    }
    __name(unsafeStringify3, "unsafeStringify");
  }
});

// node_modules/uuid/dist/esm/rng.js
function rng3() {
  if (poolPtr3 > rnds8Pool3.length - 16) {
    (0, import_crypto8.randomFillSync)(rnds8Pool3);
    poolPtr3 = 0;
  }
  return rnds8Pool3.slice(poolPtr3, poolPtr3 += 16);
}
var import_crypto8, rnds8Pool3, poolPtr3;
var init_rng3 = __esm({
  "node_modules/uuid/dist/esm/rng.js"() {
    import_crypto8 = require("crypto");
    rnds8Pool3 = new Uint8Array(256);
    poolPtr3 = rnds8Pool3.length;
    __name(rng3, "rng");
  }
});

// node_modules/uuid/dist/esm/native.js
var import_crypto9, native_default3;
var init_native3 = __esm({
  "node_modules/uuid/dist/esm/native.js"() {
    import_crypto9 = require("crypto");
    native_default3 = { randomUUID: import_crypto9.randomUUID };
  }
});

// node_modules/uuid/dist/esm/v4.js
function v43(options, buf, offset) {
  if (native_default3.randomUUID && !buf && !options) {
    return native_default3.randomUUID();
  }
  options = options || {};
  const rnds = options.random ?? options.rng?.() ?? rng3();
  if (rnds.length < 16) {
    throw new Error("Random bytes length must be >= 16");
  }
  rnds[6] = rnds[6] & 15 | 64;
  rnds[8] = rnds[8] & 63 | 128;
  if (buf) {
    offset = offset || 0;
    if (offset < 0 || offset + 16 > buf.length) {
      throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);
    }
    for (let i3 = 0; i3 < 16; ++i3) {
      buf[offset + i3] = rnds[i3];
    }
    return buf;
  }
  return unsafeStringify3(rnds);
}
var v4_default3;
var init_v43 = __esm({
  "node_modules/uuid/dist/esm/v4.js"() {
    init_native3();
    init_rng3();
    init_stringify3();
    __name(v43, "v4");
    v4_default3 = v43;
  }
});

// node_modules/uuid/dist/esm/index.js
var init_esm10 = __esm({
  "node_modules/uuid/dist/esm/index.js"() {
    init_v43();
  }
});

// lib/api-private.ts
var init_api_private = __esm({
  "lib/api-private.ts"() {
    "use strict";
    init_deploy_stack();
    init_cfn_api();
    init_private();
    init_private9();
    init_activity_printer();
    init_borrowed_assembly();
  }
});

// lib/commands/deploy.ts
var init_deploy4 = __esm({
  "lib/commands/deploy.ts"() {
    "use strict";
  }
});

// lib/cli/telemetry/messages.ts
var CLI_PRIVATE_IO, CLI_PRIVATE_SPAN, CLI_TELEMETRY_CODES;
var init_messages2 = __esm({
  "lib/cli/telemetry/messages.ts"() {
    "use strict";
    init_api_private();
    CLI_PRIVATE_IO = {
      CDK_CLI_I1000: trace({
        code: "CDK_CLI_I1000",
        description: "Cloud Execution is starting",
        interface: "EventStart"
      }),
      CDK_CLI_I1001: trace({
        code: "CDK_CLI_I1001",
        description: "Cloud Executable Result",
        interface: "EventResult"
      }),
      CDK_CLI_I2000: trace({
        code: "CDK_CLI_I2000",
        description: "Command has started",
        interface: "EventStart"
      }),
      CDK_CLI_I2001: trace({
        code: "CDK_CLI_I2001",
        description: "Command has finished executing",
        interface: "EventResult"
      }),
      CDK_CLI_I3000: trace({
        code: "CDK_CLI_I3000",
        description: "Deploy has started",
        interface: "EventStart"
      }),
      CDK_CLI_I3001: trace({
        code: "CDK_CLI_I3001",
        description: "Deploy has finished",
        interface: "EventResult"
      })
    };
    CLI_PRIVATE_SPAN = {
      SYNTH_ASSEMBLY: {
        name: "Synthesis",
        start: CLI_PRIVATE_IO.CDK_CLI_I1000,
        end: CLI_PRIVATE_IO.CDK_CLI_I1001
      },
      COMMAND: {
        name: "Command",
        start: CLI_PRIVATE_IO.CDK_CLI_I2000,
        end: CLI_PRIVATE_IO.CDK_CLI_I2001
      },
      DEPLOY: {
        name: "Deploy",
        start: CLI_PRIVATE_IO.CDK_CLI_I3000,
        end: CLI_PRIVATE_IO.CDK_CLI_I3001
      }
    };
    CLI_TELEMETRY_CODES = [
      CLI_PRIVATE_IO.CDK_CLI_I1001,
      CLI_PRIVATE_IO.CDK_CLI_I2001,
      CLI_PRIVATE_IO.CDK_CLI_I3001
    ];
  }
});

// lib/util.ts
var init_util8 = __esm({
  "lib/util.ts"() {
    "use strict";
    init_util3();
  }
});

// lib/cli/telemetry/installation-id.ts
async function getOrCreateInstallationId(ioHelper) {
  try {
    if (!fs29.existsSync(path27.dirname(INSTALLATION_ID_PATH))) {
      fs29.mkdirSync(path27.dirname(INSTALLATION_ID_PATH), { recursive: true });
    }
    if (fs29.existsSync(INSTALLATION_ID_PATH)) {
      const cachedId = fs29.readFileSync(INSTALLATION_ID_PATH, "utf-8").trim();
      const UUID_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
      if (UUID_REGEX.test(cachedId)) {
        return cachedId;
      }
    }
    const newId = (0, import_crypto10.randomUUID)();
    try {
      fs29.writeFileSync(INSTALLATION_ID_PATH, newId);
    } catch (e3) {
      await ioHelper.defaults.trace(`Failed to write installation ID to ${INSTALLATION_ID_PATH}: ${e3}`);
    }
    return newId;
  } catch (e3) {
    await ioHelper.defaults.trace(`Error getting installation ID: ${e3}`);
    return (0, import_crypto10.randomUUID)();
  }
}
var import_crypto10, fs29, path27, INSTALLATION_ID_PATH;
var init_installation_id = __esm({
  "lib/cli/telemetry/installation-id.ts"() {
    "use strict";
    import_crypto10 = require("crypto");
    fs29 = __toESM(require("fs"));
    path27 = __toESM(require("path"));
    init_util8();
    INSTALLATION_ID_PATH = path27.join(cdkCacheDir(), "installation-id.json");
    __name(getOrCreateInstallationId, "getOrCreateInstallationId");
  }
});

// lib/cli/telemetry/library-version.ts
async function getLibraryVersion(ioHelper) {
  try {
    const command2 = `node -e 'process.stdout.write(require.resolve("aws-cdk-lib"))'`;
    const { stdout: stdout2 } = await (0, import_util65.promisify)(import_child_process.exec)(command2);
    if (!fs30.existsSync(stdout2)) {
      await ioHelper.defaults.trace('Could not get CDK Library Version: require.resolve("aws-cdk-lib") did not return a file path');
      return;
    }
    const pathToPackageJson = path28.join(path28.dirname(stdout2), "package.json");
    const packageJson = fs30.readJSONSync(pathToPackageJson);
    if (!packageJson.version) {
      await ioHelper.defaults.trace("Could not get CDK Library Version: package.json does not have version field");
      return;
    }
    return packageJson.version;
  } catch (e3) {
    await ioHelper.defaults.trace(`Could not get CDK Library Version: ${e3}`);
    return;
  }
}
var import_child_process, path28, import_util65, fs30;
var init_library_version = __esm({
  "lib/cli/telemetry/library-version.ts"() {
    "use strict";
    import_child_process = require("child_process");
    path28 = __toESM(require("path"));
    import_util65 = require("util");
    fs30 = __toESM(require_lib13());
    __name(getLibraryVersion, "getLibraryVersion");
  }
});

// lib/cli/telemetry/feature-flags.ts
var FeatureFlag;
var init_feature_flags = __esm({
  "lib/cli/telemetry/feature-flags.ts"() {
    "use strict";
    FeatureFlag = /* @__PURE__ */ ((FeatureFlag2) => {
      FeatureFlag2["CORE_NEW_STYLE_STACK_SYNTHESIS"] = "@aws-cdk/core:newStyleStackSynthesis";
      FeatureFlag2["CORE_STACK_RELATIVE_EXPORTS"] = "@aws-cdk/core:stackRelativeExports";
      FeatureFlag2["RDS_LOWERCASE_DB_IDENTIFIER"] = "@aws-cdk/aws-rds:lowercaseDbIdentifier";
      FeatureFlag2["APIGATEWAY_USAGE_PLAN_KEY_ORDER_INSENSITIVE_ID"] = "@aws-cdk/aws-apigateway:usagePlanKeyOrderInsensitiveId";
      FeatureFlag2["LAMBDA_RECOGNIZE_VERSION_PROPS"] = "@aws-cdk/aws-lambda:recognizeVersionProps";
      FeatureFlag2["CLOUDFRONT_DEFAULT_SECURITY_POLICY_TLS_V1_2_2021"] = "@aws-cdk/aws-cloudfront:defaultSecurityPolicyTLSv1.2_2021";
      FeatureFlag2["CORE_TARGET_PARTITIONS"] = "@aws-cdk/core:target-partitions";
      FeatureFlag2["ECS_SERVICE_EXTENSIONS_ENABLE_DEFAULT_LOG_DRIVER"] = "@aws-cdk-containers/ecs-service-extensions:enableDefaultLogDriver";
      FeatureFlag2["EC2_UNIQUE_IMDSV2_TEMPLATE_NAME"] = "@aws-cdk/aws-ec2:uniqueImdsv2TemplateName";
      FeatureFlag2["IAM_MINIMIZE_POLICIES"] = "@aws-cdk/aws-iam:minimizePolicies";
      FeatureFlag2["CORE_CHECK_SECRET_USAGE"] = "@aws-cdk/core:checkSecretUsage";
      FeatureFlag2["LAMBDA_RECOGNIZE_LAYER_VERSION"] = "@aws-cdk/aws-lambda:recognizeLayerVersion";
      FeatureFlag2["CORE_VALIDATE_SNAPSHOT_REMOVAL_POLICY"] = "@aws-cdk/core:validateSnapshotRemovalPolicy";
      FeatureFlag2["CODEPIPELINE_CROSS_ACCOUNT_KEY_ALIAS_STACK_SAFE_RESOURCE_NAME"] = "@aws-cdk/aws-codepipeline:crossAccountKeyAliasStackSafeResourceName";
      FeatureFlag2["S3_CREATE_DEFAULT_LOGGING_POLICY"] = "@aws-cdk/aws-s3:createDefaultLoggingPolicy";
      FeatureFlag2["SNS_SUBSCRIPTIONS_RESTRICT_SQS_DECRYPTION"] = "@aws-cdk/aws-sns-subscriptions:restrictSqsDescryption";
      FeatureFlag2["ECS_ARN_FORMAT_INCLUDES_CLUSTER_NAME"] = "@aws-cdk/aws-ecs:arnFormatIncludesClusterName";
      FeatureFlag2["APIGATEWAY_DISABLE_CLOUD_WATCH_ROLE"] = "@aws-cdk/aws-apigateway:disableCloudWatchRole";
      FeatureFlag2["CORE_ENABLE_PARTITION_LITERALS"] = "@aws-cdk/core:enablePartitionLiterals";
      FeatureFlag2["ECS_DISABLE_EXPLICIT_DEPLOYMENT_CONTROLLER_FOR_CIRCUIT_BREAKER"] = "@aws-cdk/aws-ecs:disableExplicitDeploymentControllerForCircuitBreaker";
      FeatureFlag2["EVENTS_EVENTS_TARGET_QUEUE_SAME_ACCOUNT"] = "@aws-cdk/aws-events:eventsTargetQueueSameAccount";
      FeatureFlag2["IAM_IMPORTED_ROLE_STACK_SAFE_DEFAULT_POLICY_NAME"] = "@aws-cdk/aws-iam:importedRoleStackSafeDefaultPolicyName";
      FeatureFlag2["S3_SERVER_ACCESS_LOGS_USE_BUCKET_POLICY"] = "@aws-cdk/aws-s3:serverAccessLogsUseBucketPolicy";
      FeatureFlag2["CUSTOMRESOURCES_INSTALL_LATEST_AWS_SDK_DEFAULT"] = "@aws-cdk/customresources:installLatestAwsSdkDefault";
      FeatureFlag2["ROUTE53_PATTERNS_USE_CERTIFICATE"] = "@aws-cdk/aws-route53-patterns:useCertificate";
      FeatureFlag2["CODEDEPLOY_REMOVE_ALARMS_FROM_DEPLOYMENT_GROUP"] = "@aws-cdk/aws-codedeploy:removeAlarmsFromDeploymentGroup";
      FeatureFlag2["RDS_DATABASE_PROXY_UNIQUE_RESOURCE_NAME"] = "@aws-cdk/aws-rds:databaseProxyUniqueResourceName";
      FeatureFlag2["APIGATEWAY_AUTHORIZER_CHANGE_DEPLOYMENT_LOGICAL_ID"] = "@aws-cdk/aws-apigateway:authorizerChangeDeploymentLogicalId";
      FeatureFlag2["EC2_LAUNCH_TEMPLATE_DEFAULT_USER_DATA"] = "@aws-cdk/aws-ec2:launchTemplateDefaultUserData";
      FeatureFlag2["SECRETSMANAGER_USE_ATTACHED_SECRET_RESOURCE_POLICY_FOR_SECRET_TARGET_ATTACHMENTS"] = "@aws-cdk/aws-secretsmanager:useAttachedSecretResourcePolicyForSecretTargetAttachments";
      FeatureFlag2["REDSHIFT_COLUMN_ID"] = "@aws-cdk/aws-redshift:columnId";
      FeatureFlag2["STEPFUNCTIONS_TASKS_ENABLE_EMR_SERVICE_POLICY_V2"] = "@aws-cdk/aws-stepfunctions-tasks:enableEmrServicePolicyV2";
      FeatureFlag2["APIGATEWAY_REQUEST_VALIDATOR_UNIQUE_ID"] = "@aws-cdk/aws-apigateway:requestValidatorUniqueId";
      FeatureFlag2["EC2_RESTRICT_DEFAULT_SECURITY_GROUP"] = "@aws-cdk/aws-ec2:restrictDefaultSecurityGroup";
      FeatureFlag2["KMS_ALIAS_NAME_REF"] = "@aws-cdk/aws-kms:aliasNameRef";
      FeatureFlag2["CORE_INCLUDE_PREFIX_IN_UNIQUE_NAME_GENERATION"] = "@aws-cdk/core:includePrefixInUniqueNameGeneration";
      FeatureFlag2["AUTOSCALING_GENERATE_LAUNCH_TEMPLATE_INSTEAD_OF_LAUNCH_CONFIG"] = "@aws-cdk/aws-autoscaling:generateLaunchTemplateInsteadOfLaunchConfig";
      FeatureFlag2["OPENSEARCHSERVICE_ENABLE_OPENSEARCH_MULTI_AZ_WITH_STANDBY"] = "@aws-cdk/aws-opensearchservice:enableOpensearchMultiAzWithStandby";
      FeatureFlag2["EFS_DENY_ANONYMOUS_ACCESS"] = "@aws-cdk/aws-efs:denyAnonymousAccess";
      FeatureFlag2["EFS_MOUNT_TARGET_ORDER_INSENSITIVE_LOGICAL_ID"] = "@aws-cdk/aws-efs:mountTargetOrderInsensitiveLogicalId";
      FeatureFlag2["LAMBDA_NODEJS_USE_LATEST_RUNTIME_VERSION"] = "@aws-cdk/aws-lambda-nodejs:useLatestRuntimeVersion";
      FeatureFlag2["APPSYNC_USE_ARN_FOR_SOURCE_API_ASSOCIATION_IDENTIFIER"] = "@aws-cdk/aws-appsync:useArnForSourceApiAssociationIdentifier";
      FeatureFlag2["RDS_AURORA_CLUSTER_CHANGE_SCOPE_OF_INSTANCE_PARAMETER_GROUP_WITH_EACH_PARAMETERS"] = "@aws-cdk/aws-rds:auroraClusterChangeScopeOfInstanceParameterGroupWithEachParameters";
      FeatureFlag2["RDS_PREVENT_RENDERING_DEPRECATED_CREDENTIALS"] = "@aws-cdk/aws-rds:preventRenderingDeprecatedCredentials";
      FeatureFlag2["CODEPIPELINE_ACTIONS_USE_NEW_DEFAULT_BRANCH_FOR_CODE_COMMIT_SOURCE"] = "@aws-cdk/aws-codepipeline-actions:useNewDefaultBranchForCodeCommitSource";
      FeatureFlag2["CLOUDWATCH_ACTIONS_CHANGE_LAMBDA_PERMISSION_LOGICAL_ID_FOR_LAMBDA_ACTION"] = "@aws-cdk/aws-cloudwatch-actions:changeLambdaPermissionLogicalIdForLambdaAction";
      FeatureFlag2["CODEPIPELINE_CROSS_ACCOUNT_KEYS_DEFAULT_VALUE_TO_FALSE"] = "@aws-cdk/aws-codepipeline:crossAccountKeysDefaultValueToFalse";
      FeatureFlag2["CODEPIPELINE_DEFAULT_PIPELINE_TYPE_TO_V2"] = "@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2";
      FeatureFlag2["KMS_REDUCE_CROSS_ACCOUNT_REGION_POLICY_SCOPE"] = "@aws-cdk/aws-kms:reduceCrossAccountRegionPolicyScope";
      FeatureFlag2["EKS_NODEGROUP_NAME_ATTRIBUTE"] = "@aws-cdk/aws-eks:nodegroupNameAttribute";
      FeatureFlag2["EC2_EBS_DEFAULT_GP3_VOLUME"] = "@aws-cdk/aws-ec2:ebsDefaultGp3Volume";
      FeatureFlag2["PIPELINES_REDUCE_ASSET_ROLE_TRUST_SCOPE"] = "@aws-cdk/pipelines:reduceAssetRoleTrustScope";
      FeatureFlag2["ECS_REMOVE_DEFAULT_DEPLOYMENT_ALARM"] = "@aws-cdk/aws-ecs:removeDefaultDeploymentAlarm";
      FeatureFlag2["CUSTOM_RESOURCES_LOG_API_RESPONSE_DATA_PROPERTY_TRUE_DEFAULT"] = "@aws-cdk/custom-resources:logApiResponseDataPropertyTrueDefault";
      FeatureFlag2["S3_KEEP_NOTIFICATION_IN_IMPORTED_BUCKET"] = "@aws-cdk/aws-s3:keepNotificationInImportedBucket";
      FeatureFlag2["STEPFUNCTIONS_TASKS_USE_NEW_S3_URI_PARAMETERS_FOR_BEDROCK_INVOKE_MODEL_TASK"] = "@aws-cdk/aws-stepfunctions-tasks:useNewS3UriParametersForBedrockInvokeModelTask";
      FeatureFlag2["ECS_REDUCE_EC2_FARGATE_CLOUD_WATCH_PERMISSIONS"] = "@aws-cdk/aws-ecs:reduceEc2FargateCloudWatchPermissions";
      FeatureFlag2["EC2_EC2_SUM_TIMEOUT_ENABLED"] = "@aws-cdk/aws-ec2:ec2SumTimeoutEnabled";
      FeatureFlag2["APPSYNC_APP_SYNC_GRAPHQL_API_SCOPE_LAMBDA_PERMISSION"] = "@aws-cdk/aws-appsync:appSyncGraphQLAPIScopeLambdaPermission";
      FeatureFlag2["LAMBDA_NODEJS_SDK_V3_EXCLUDE_SMITHY_PACKAGES"] = "@aws-cdk/aws-lambda-nodejs:sdkV3ExcludeSmithyPackages";
      FeatureFlag2["RDS_SET_CORRECT_VALUE_FOR_DATABASE_INSTANCE_READ_REPLICA_INSTANCE_RESOURCE_ID"] = "@aws-cdk/aws-rds:setCorrectValueForDatabaseInstanceReadReplicaInstanceResourceId";
      FeatureFlag2["CORE_CFN_INCLUDE_REJECT_COMPLEX_RESOURCE_UPDATE_CREATE_POLICY_INTRINSICS"] = "@aws-cdk/core:cfnIncludeRejectComplexResourceUpdateCreatePolicyIntrinsics";
      FeatureFlag2["STEPFUNCTIONS_TASKS_FIX_RUN_ECS_TASK_POLICY"] = "@aws-cdk/aws-stepfunctions-tasks:fixRunEcsTaskPolicy";
      FeatureFlag2["DYNAMODB_RESOURCE_POLICY_PER_REPLICA"] = "@aws-cdk/aws-dynamodb:resourcePolicyPerReplica";
      FeatureFlag2["EC2_BASTION_HOST_USE_AMAZON_LINUX_2023_BY_DEFAULT"] = "@aws-cdk/aws-ec2:bastionHostUseAmazonLinux2023ByDefault";
      FeatureFlag2["CORE_ASPECT_STABILIZATION"] = "@aws-cdk/core:aspectStabilization";
      FeatureFlag2["ROUTE53_TARGETS_USER_POOL_DOMAIN_NAME_METHOD_WITHOUT_CUSTOM_RESOURCE"] = "@aws-cdk/aws-route53-targets:userPoolDomainNameMethodWithoutCustomResource";
      FeatureFlag2["ECS_DISABLE_ECS_IMDS_BLOCKING"] = "@aws-cdk/aws-ecs:disableEcsImdsBlocking";
      FeatureFlag2["ECS_ENABLE_IMDS_BLOCKING_DEPRECATED_FEATURE"] = "@aws-cdk/aws-ecs:enableImdsBlockingDeprecatedFeature";
      FeatureFlag2["ELASTICLOADBALANCINGV2_ALB_DUALSTACK_WITHOUT_PUBLIC_IPV4_SECURITY_GROUP_RULES_DEFAULT"] = "@aws-cdk/aws-elasticloadbalancingV2:albDualstackWithoutPublicIpv4SecurityGroupRulesDefault";
      FeatureFlag2["IAM_OIDC_REJECT_UNAUTHORIZED_CONNECTIONS"] = "@aws-cdk/aws-iam:oidcRejectUnauthorizedConnections";
      FeatureFlag2["CORE_ENABLE_ADDITIONAL_METADATA_COLLECTION"] = "@aws-cdk/core:enableAdditionalMetadataCollection";
      FeatureFlag2["LAMBDA_CREATE_NEW_POLICIES_WITH_ADD_TO_ROLE_POLICY"] = "@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy";
      FeatureFlag2["S3_SET_UNIQUE_REPLICATION_ROLE_NAME"] = "@aws-cdk/aws-s3:setUniqueReplicationRoleName";
      FeatureFlag2["PIPELINES_REDUCE_STAGE_ROLE_TRUST_SCOPE"] = "@aws-cdk/pipelines:reduceStageRoleTrustScope";
      FeatureFlag2["EVENTS_REQUIRE_EVENT_BUS_POLICY_SID"] = "@aws-cdk/aws-events:requireEventBusPolicySid";
      FeatureFlag2["DYNAMODB_RETAIN_TABLE_REPLICA"] = "@aws-cdk/aws-dynamodb:retainTableReplica";
      FeatureFlag2["COGNITO_LOG_USER_POOL_CLIENT_SECRET_VALUE"] = "@aws-cdk/cognito:logUserPoolClientSecretValue";
      FeatureFlag2["STEPFUNCTIONS_USE_DISTRIBUTED_MAP_RESULT_WRITER_V2"] = "@aws-cdk/aws-stepfunctions:useDistributedMapResultWriterV2";
      FeatureFlag2["PIPELINES_REDUCE_CROSS_ACCOUNT_ACTION_ROLE_TRUST_SCOPE"] = "@aws-cdk/pipelines:reduceCrossAccountActionRoleTrustScope";
      FeatureFlag2["CORE_ASPECT_PRIORITIES_MUTATING"] = "@aws-cdk/core:aspectPrioritiesMutating";
      FeatureFlag2["S3_NOTIFICATIONS_ADD_S3_TRUST_KEY_POLICY_FOR_SNS_SUBSCRIPTIONS"] = "@aws-cdk/s3-notifications:addS3TrustKeyPolicyForSnsSubscriptions";
      FeatureFlag2["EC2_ALPHA_USE_RESOURCE_ID_FOR_VPC_V2_MIGRATION"] = "@aws-cdk/aws-ec2-alpha:useResourceIdForVpcV2Migration";
      FeatureFlag2["EC2_REQUIRE_PRIVATE_SUBNETS_FOR_EGRESS_ONLY_INTERNET_GATEWAY"] = "@aws-cdk/aws-ec2:requirePrivateSubnetsForEgressOnlyInternetGateway";
      FeatureFlag2["S3_PUBLIC_ACCESS_BLOCKED_BY_DEFAULT"] = "@aws-cdk/aws-s3:publicAccessBlockedByDefault";
      FeatureFlag2["LAMBDA_USE_CDK_MANAGED_LOG_GROUP"] = "@aws-cdk/aws-lambda:useCdkManagedLogGroup";
      FeatureFlag2["KMS_APPLY_IMPORTED_ALIAS_PERMISSIONS_TO_PRINCIPAL"] = "@aws-cdk/aws-kms:applyImportedAliasPermissionsToPrincipal";
      FeatureFlag2["CORE_EXPLICIT_STACK_TAGS"] = "@aws-cdk/core:explicitStackTags";
      return FeatureFlag2;
    })(FeatureFlag || {});
  }
});

// lib/cli/cli-type-registry.json
var require_cli_type_registry = __commonJS({
  "lib/cli/cli-type-registry.json"(exports2, module2) {
    module2.exports = {
      globalOptions: {
        app: {
          type: "string",
          alias: "a",
          desc: 'REQUIRED WHEN RUNNING APP: command-line for executing your app or a cloud assembly directory (e.g. "node bin/my-app.js"). Can also be specified in cdk.json or ~/.cdk.json',
          requiresArg: true
        },
        build: {
          type: "string",
          desc: "Command-line for a pre-synth build"
        },
        context: {
          type: "array",
          alias: "c",
          desc: "Add contextual string parameter (KEY=VALUE)"
        },
        plugin: {
          type: "array",
          alias: "p",
          desc: "Name or path of a node package that extend the CDK features. Can be specified multiple times"
        },
        trace: {
          type: "boolean",
          desc: "Print trace for stack warnings"
        },
        strict: {
          type: "boolean",
          desc: "Do not construct stacks with warnings"
        },
        lookups: {
          type: "boolean",
          desc: "Perform context lookups (synthesis fails if this is disabled and context lookups need to be performed)",
          default: true
        },
        "ignore-errors": {
          type: "boolean",
          default: false,
          desc: "Ignores synthesis errors, which will likely produce an invalid output"
        },
        json: {
          type: "boolean",
          alias: "j",
          desc: "Use JSON output instead of YAML when templates are printed to STDOUT",
          default: false
        },
        verbose: {
          type: "boolean",
          alias: "v",
          desc: "Show debug logs (specify multiple times to increase verbosity)",
          default: false,
          count: true
        },
        debug: {
          type: "boolean",
          desc: "Debug the CDK app. Log additional information during synthesis, such as creation stack traces of tokens (sets CDK_DEBUG, will slow down synthesis)",
          default: false
        },
        profile: {
          type: "string",
          desc: "Use the indicated AWS profile as the default environment",
          requiresArg: true
        },
        proxy: {
          type: "string",
          desc: "Use the indicated proxy. Will read from HTTPS_PROXY environment variable if not specified",
          requiresArg: true
        },
        "ca-bundle-path": {
          type: "string",
          desc: "Path to CA certificate to use when validating HTTPS requests. Will read from AWS_CA_BUNDLE environment variable if not specified",
          requiresArg: true
        },
        ec2creds: {
          type: "boolean",
          alias: "i",
          desc: "Force trying to fetch EC2 instance credentials. Default: guess EC2 instance status"
        },
        "version-reporting": {
          type: "boolean",
          desc: 'Disable CLI telemetry and do not include the "AWS::CDK::Metadata" resource in synthesized templates (enabled by default)',
          alias: "telemetry"
        },
        "path-metadata": {
          type: "boolean",
          desc: 'Include "aws:cdk:path" CloudFormation metadata for each resource (enabled by default)'
        },
        "asset-metadata": {
          type: "boolean",
          desc: 'Include "aws:asset:*" CloudFormation metadata for resources that uses assets (enabled by default)'
        },
        "role-arn": {
          type: "string",
          alias: "r",
          desc: "ARN of Role to use when invoking CloudFormation",
          requiresArg: true
        },
        staging: {
          type: "boolean",
          desc: "Copy assets to the output directory (use --no-staging to disable the copy of assets which allows local debugging via the SAM CLI to reference the original source files)",
          default: true
        },
        output: {
          type: "string",
          alias: "o",
          desc: "Emits the synthesized cloud assembly into a directory (default: cdk.out)",
          requiresArg: true
        },
        notices: {
          type: "boolean",
          desc: "Show relevant notices"
        },
        "no-color": {
          type: "boolean",
          desc: "Removes colors and other style from console output",
          default: false
        },
        ci: {
          type: "boolean",
          desc: "Force CI detection. If CI=true then logs will be sent to stdout instead of stderr"
        },
        unstable: {
          type: "array",
          desc: "Opt in to unstable features. The flag indicates that the scope and API of a feature might still change. Otherwise the feature is generally production ready and fully supported. Can be specified multiple times.",
          default: []
        },
        "telemetry-file": {
          type: "string",
          desc: "Send telemetry data to a local file."
        }
      },
      commands: {
        list: {
          arg: {
            name: "STACKS",
            variadic: true
          },
          aliases: [
            "ls"
          ],
          description: "Lists all stacks in the app",
          options: {
            long: {
              type: "boolean",
              default: false,
              alias: "l",
              desc: "Display environment information for each stack"
            },
            "show-dependencies": {
              type: "boolean",
              default: false,
              alias: "d",
              desc: "Display stack dependency information for each stack"
            }
          }
        },
        synth: {
          arg: {
            name: "STACKS",
            variadic: true
          },
          aliases: [
            "synthesize"
          ],
          description: "Synthesizes and prints the CloudFormation template for this stack",
          options: {
            exclusively: {
              type: "boolean",
              alias: "e",
              desc: "Only synthesize requested stacks, don't include dependencies"
            },
            validation: {
              type: "boolean",
              desc: 'After synthesis, validate stacks with the "validateOnSynth" attribute set (can also be controlled with CDK_VALIDATION)',
              default: true
            },
            quiet: {
              type: "boolean",
              alias: "q",
              desc: "Do not output CloudFormation Template to stdout",
              default: false
            }
          }
        },
        bootstrap: {
          arg: {
            name: "ENVIRONMENTS",
            variadic: true
          },
          description: "Deploys the CDK toolkit stack into an AWS environment",
          options: {
            "bootstrap-bucket-name": {
              type: "string",
              alias: [
                "b",
                "toolkit-bucket-name"
              ],
              desc: "The name of the CDK toolkit bucket; bucket will be created and must not exist"
            },
            "bootstrap-kms-key-id": {
              type: "string",
              desc: "AWS KMS master key ID used for the SSE-KMS encryption (specify AWS_MANAGED_KEY to use an AWS-managed key)",
              conflicts: "bootstrap-customer-key"
            },
            "example-permissions-boundary": {
              type: "boolean",
              alias: "epb",
              desc: "Use the example permissions boundary.",
              conflicts: "custom-permissions-boundary"
            },
            "custom-permissions-boundary": {
              type: "string",
              alias: "cpb",
              desc: "Use the permissions boundary specified by name.",
              conflicts: "example-permissions-boundary"
            },
            "bootstrap-customer-key": {
              type: "boolean",
              desc: "Create a Customer Master Key (CMK) for the bootstrap bucket (you will be charged but can customize permissions, modern bootstrapping only)",
              conflicts: "bootstrap-kms-key-id"
            },
            qualifier: {
              type: "string",
              desc: "String which must be unique for each bootstrap stack. You must configure it on your CDK app if you change this from the default."
            },
            "public-access-block-configuration": {
              type: "boolean",
              desc: "Block public access configuration on CDK toolkit bucket (enabled by default) "
            },
            "deny-external-id": {
              type: "boolean",
              desc: "Block AssumeRole access to all boostrapped roles if an ExternalId is provided (enabled by default) "
            },
            tags: {
              type: "array",
              alias: "t",
              desc: "Tags to add for the stack (KEY=VALUE)",
              default: []
            },
            execute: {
              type: "boolean",
              desc: "Whether to execute ChangeSet (--no-execute will NOT execute the ChangeSet)",
              default: true
            },
            trust: {
              type: "array",
              desc: "The AWS account IDs that should be trusted to perform deployments into this environment (may be repeated, modern bootstrapping only)",
              default: []
            },
            "trust-for-lookup": {
              type: "array",
              desc: "The AWS account IDs that should be trusted to look up values in this environment (may be repeated, modern bootstrapping only)",
              default: []
            },
            untrust: {
              type: "array",
              desc: "The AWS account IDs that should not be trusted by this environment (may be repeated, modern bootstrapping only)",
              default: []
            },
            "cloudformation-execution-policies": {
              type: "array",
              desc: "The Managed Policy ARNs that should be attached to the role performing deployments into this environment (may be repeated, modern bootstrapping only)",
              default: []
            },
            force: {
              alias: "f",
              type: "boolean",
              desc: "Always bootstrap even if it would downgrade template version",
              default: false
            },
            "termination-protection": {
              type: "boolean",
              desc: "Toggle CloudFormation termination protection on the bootstrap stacks"
            },
            "show-template": {
              type: "boolean",
              desc: "Instead of actual bootstrapping, print the current CLI's bootstrapping template to stdout for customization",
              default: false
            },
            "toolkit-stack-name": {
              type: "string",
              desc: "The name of the CDK toolkit stack to create",
              requiresArg: true
            },
            template: {
              type: "string",
              requiresArg: true,
              desc: "Use the template from the given file instead of the built-in one (use --show-template to obtain an example)"
            },
            "previous-parameters": {
              type: "boolean",
              default: true,
              desc: "Use previous values for existing parameters (you must specify all parameters on every deployment if this is disabled)"
            }
          }
        },
        gc: {
          description: "Garbage collect assets. Options detailed here: https://github.com/aws/aws-cdk-cli/tree/main/packages/aws-cdk#cdk-gc",
          arg: {
            name: "ENVIRONMENTS",
            variadic: true
          },
          options: {
            action: {
              type: "string",
              desc: 'The action (or sub-action) you want to perform. Valid entires are "print", "tag", "delete-tagged", "full".',
              default: "full"
            },
            type: {
              type: "string",
              desc: "Specify either ecr, s3, or all",
              default: "all"
            },
            "rollback-buffer-days": {
              type: "number",
              desc: "Delete assets that have been marked as isolated for this many days",
              default: 0
            },
            "created-buffer-days": {
              type: "number",
              desc: "Never delete assets younger than this (in days)",
              default: 1
            },
            confirm: {
              type: "boolean",
              desc: "Confirm via manual prompt before deletion",
              default: true
            },
            "toolkit-stack-name": {
              type: "string",
              desc: 'The name of the CDK toolkit stack, if different from the default "CDKToolkit"',
              requiresArg: true,
              conflicts: "bootstrap-stack-name"
            },
            "bootstrap-stack-name": {
              type: "string",
              desc: 'The name of the CDK toolkit stack, if different from the default "CDKToolkit" (deprecated, use --toolkit-stack-name)',
              deprecated: "use --toolkit-stack-name",
              requiresArg: true,
              conflicts: "toolkit-stack-name"
            }
          }
        },
        flags: {
          description: "View and toggle feature flags.",
          arg: {
            name: "FLAGNAME",
            variadic: true
          },
          options: {
            value: {
              type: "string",
              desc: "The value the user would like to set the feature flag configuration to",
              requiresArg: true
            },
            set: {
              type: "boolean",
              desc: "Signifies the user would like to modify their feature flag configuration",
              requiresArg: false
            },
            all: {
              type: "boolean",
              desc: "Modify or view all feature flags",
              requiresArg: false
            },
            unconfigured: {
              type: "boolean",
              desc: "Modify unconfigured feature flags",
              requiresArg: false
            },
            recommended: {
              type: "boolean",
              desc: "Change flags to recommended states",
              requiresArg: false
            },
            default: {
              type: "boolean",
              desc: "Change flags to default state",
              requiresArg: false
            },
            interactive: {
              type: "boolean",
              alias: [
                "i"
              ],
              desc: "Interactive option for the flags command",
              requiresArg: false
            }
          }
        },
        deploy: {
          description: "Deploys the stack(s) named STACKS into your AWS account",
          options: {
            all: {
              type: "boolean",
              desc: "Deploy all available stacks",
              default: false
            },
            "build-exclude": {
              type: "array",
              alias: "E",
              desc: "Do not rebuild asset with the given ID. Can be specified multiple times",
              default: []
            },
            exclusively: {
              type: "boolean",
              alias: "e",
              desc: "Only deploy requested stacks, don't include dependencies"
            },
            "require-approval": {
              type: "string",
              choices: [
                "never",
                "any-change",
                "broadening"
              ],
              desc: "What security-sensitive changes need manual approval"
            },
            "notification-arns": {
              type: "array",
              desc: "ARNs of SNS topics that CloudFormation will notify with stack related events. These will be added to ARNs specified with the 'notificationArns' stack property."
            },
            tags: {
              type: "array",
              alias: "t",
              desc: "Tags to add to the stack (KEY=VALUE), overrides tags from Cloud Assembly (deprecated)"
            },
            execute: {
              type: "boolean",
              desc: "Whether to execute ChangeSet (--no-execute will NOT execute the ChangeSet) (deprecated)",
              deprecated: true
            },
            "change-set-name": {
              type: "string",
              desc: "Name of the CloudFormation change set to create (only if method is not direct)"
            },
            method: {
              alias: "m",
              type: "string",
              choices: [
                "direct",
                "change-set",
                "prepare-change-set"
              ],
              requiresArg: true,
              desc: "How to perform the deployment. Direct is a bit faster but lacks progress information"
            },
            "import-existing-resources": {
              type: "boolean",
              desc: "Indicates if the stack set imports resources that already exist.",
              default: false
            },
            force: {
              alias: "f",
              type: "boolean",
              desc: "Always deploy stack even if templates are identical",
              default: false
            },
            parameters: {
              type: "array",
              desc: "Additional parameters passed to CloudFormation at deploy time (STACK:KEY=VALUE)",
              default: {}
            },
            "outputs-file": {
              type: "string",
              alias: "O",
              desc: "Path to file where stack outputs will be written as JSON",
              requiresArg: true
            },
            "previous-parameters": {
              type: "boolean",
              default: true,
              desc: "Use previous values for existing parameters (you must specify all parameters on every deployment if this is disabled)"
            },
            "toolkit-stack-name": {
              type: "string",
              desc: "The name of the existing CDK toolkit stack (only used for app using legacy synthesis)",
              requiresArg: true
            },
            progress: {
              type: "string",
              choices: [
                "bar",
                "events"
              ],
              desc: "Display mode for stack activity events"
            },
            rollback: {
              type: "boolean",
              desc: "Rollback stack to stable state on failure. Defaults to 'true', iterate more rapidly with --no-rollback or -R. Note: do **not** disable this flag for deployments with resource replacements, as that will always fail",
              negativeAlias: "R"
            },
            hotswap: {
              type: "boolean",
              desc: "Attempts to perform a 'hotswap' deployment, but does not fall back to a full deployment if that is not possible. Instead, changes to any non-hotswappable properties are ignored.Do not use this in production environments"
            },
            "hotswap-fallback": {
              type: "boolean",
              desc: "Attempts to perform a 'hotswap' deployment, which skips CloudFormation and updates the resources directly, and falls back to a full deployment if that is not possible. Do not use this in production environments"
            },
            "hotswap-ecs-minimum-healthy-percent": {
              type: "string",
              desc: "Lower limit on the number of your service's tasks that must remain in the RUNNING state during a deployment, as a percentage of the desiredCount"
            },
            "hotswap-ecs-maximum-healthy-percent": {
              type: "string",
              desc: "Upper limit on the number of your service's tasks that are allowed in the RUNNING or PENDING state during a deployment, as a percentage of the desiredCount"
            },
            "hotswap-ecs-stabilization-timeout-seconds": {
              type: "string",
              desc: "Number of seconds to wait for a single service to reach stable state, where the desiredCount is equal to the runningCount"
            },
            watch: {
              type: "boolean",
              desc: "Continuously observe the project files, and deploy the given stack(s) automatically when changes are detected. Implies --hotswap by default"
            },
            logs: {
              type: "boolean",
              default: true,
              desc: "Show CloudWatch log events from all resources in the selected Stacks in the terminal. 'true' by default, use --no-logs to turn off. Only in effect if specified alongside the '--watch' option"
            },
            concurrency: {
              type: "number",
              desc: "Maximum number of simultaneous deployments (dependency permitting) to execute.",
              default: 1,
              requiresArg: true
            },
            "asset-parallelism": {
              type: "boolean",
              desc: "Whether to build/publish assets in parallel"
            },
            "asset-prebuild": {
              type: "boolean",
              desc: "Whether to build all assets before deploying the first stack (useful for failing Docker builds)",
              default: true
            },
            "ignore-no-stacks": {
              type: "boolean",
              desc: "Whether to deploy if the app contains no stacks",
              default: false
            }
          },
          arg: {
            name: "STACKS",
            variadic: true
          }
        },
        rollback: {
          description: "Rolls back the stack(s) named STACKS to their last stable state",
          arg: {
            name: "STACKS",
            variadic: true
          },
          options: {
            all: {
              type: "boolean",
              default: false,
              desc: "Roll back all available stacks"
            },
            "toolkit-stack-name": {
              type: "string",
              desc: "The name of the CDK toolkit stack the environment is bootstrapped with",
              requiresArg: true
            },
            force: {
              alias: "f",
              type: "boolean",
              desc: "Orphan all resources for which the rollback operation fails."
            },
            "validate-bootstrap-version": {
              type: "boolean",
              desc: "Whether to validate the bootstrap stack version. Defaults to 'true', disable with --no-validate-bootstrap-version."
            },
            orphan: {
              type: "array",
              desc: "Orphan the given resources, identified by their logical ID (can be specified multiple times)",
              default: []
            }
          }
        },
        import: {
          description: "Import existing resource(s) into the given STACK",
          arg: {
            name: "STACK",
            variadic: false
          },
          options: {
            execute: {
              type: "boolean",
              desc: "Whether to execute ChangeSet (--no-execute will NOT execute the ChangeSet)",
              default: true
            },
            "change-set-name": {
              type: "string",
              desc: "Name of the CloudFormation change set to create"
            },
            "toolkit-stack-name": {
              type: "string",
              desc: "The name of the CDK toolkit stack to create",
              requiresArg: true
            },
            rollback: {
              type: "boolean",
              desc: "Rollback stack to stable state on failure. Defaults to 'true', iterate more rapidly with --no-rollback or -R. Note: do **not** disable this flag for deployments with resource replacements, as that will always fail"
            },
            force: {
              alias: "f",
              type: "boolean",
              desc: "Do not abort if the template diff includes updates or deletes. This is probably safe but we're not sure, let us know how it goes."
            },
            "record-resource-mapping": {
              type: "string",
              alias: "r",
              requiresArg: true,
              desc: "If specified, CDK will generate a mapping of existing physical resources to CDK resources to be imported as. The mapping will be written in the given file path. No actual import operation will be performed"
            },
            "resource-mapping": {
              type: "string",
              alias: "m",
              requiresArg: true,
              desc: "If specified, CDK will use the given file to map physical resources to CDK resources for import, instead of interactively asking the user. Can be run from scripts"
            }
          }
        },
        watch: {
          description: "Shortcut for 'deploy --watch'",
          arg: {
            name: "STACKS",
            variadic: true
          },
          options: {
            "build-exclude": {
              type: "array",
              alias: "E",
              desc: "Do not rebuild asset with the given ID. Can be specified multiple times",
              default: []
            },
            exclusively: {
              type: "boolean",
              alias: "e",
              desc: "Only deploy requested stacks, don't include dependencies"
            },
            "change-set-name": {
              type: "string",
              desc: "Name of the CloudFormation change set to create"
            },
            force: {
              alias: "f",
              type: "boolean",
              desc: "Always deploy stack even if templates are identical",
              default: false
            },
            "toolkit-stack-name": {
              type: "string",
              desc: "The name of the existing CDK toolkit stack (only used for app using legacy synthesis)",
              requiresArg: true
            },
            progress: {
              type: "string",
              choices: [
                "bar",
                "events"
              ],
              desc: "Display mode for stack activity events"
            },
            rollback: {
              type: "boolean",
              desc: "Rollback stack to stable state on failure. Defaults to 'true', iterate more rapidly with --no-rollback or -R. Note: do **not** disable this flag for deployments with resource replacements, as that will always fail",
              negativeAlias: "R"
            },
            hotswap: {
              type: "boolean",
              desc: "Attempts to perform a 'hotswap' deployment, but does not fall back to a full deployment if that is not possible. Instead, changes to any non-hotswappable properties are ignored.'true' by default, use --no-hotswap to turn off"
            },
            "hotswap-fallback": {
              type: "boolean",
              desc: "Attempts to perform a 'hotswap' deployment, which skips CloudFormation and updates the resources directly, and falls back to a full deployment if that is not possible."
            },
            "hotswap-ecs-minimum-healthy-percent": {
              type: "string",
              desc: "Lower limit on the number of your service's tasks that must remain in the RUNNING state during a deployment, as a percentage of the desiredCount"
            },
            "hotswap-ecs-maximum-healthy-percent": {
              type: "string",
              desc: "Upper limit on the number of your service's tasks that are allowed in the RUNNING or PENDING state during a deployment, as a percentage of the desiredCount"
            },
            "hotswap-ecs-stabilization-timeout-seconds": {
              type: "string",
              desc: "Number of seconds to wait for a single service to reach stable state, where the desiredCount is equal to the runningCount"
            },
            logs: {
              type: "boolean",
              default: true,
              desc: "Show CloudWatch log events from all resources in the selected Stacks in the terminal. 'true' by default, use --no-logs to turn off"
            },
            concurrency: {
              type: "number",
              desc: "Maximum number of simultaneous deployments (dependency permitting) to execute.",
              default: 1,
              requiresArg: true
            }
          }
        },
        destroy: {
          description: "Destroy the stack(s) named STACKS",
          arg: {
            name: "STACKS",
            variadic: true
          },
          options: {
            all: {
              type: "boolean",
              default: false,
              desc: "Destroy all available stacks"
            },
            exclusively: {
              type: "boolean",
              alias: "e",
              desc: "Only destroy requested stacks, don't include dependees"
            },
            force: {
              type: "boolean",
              alias: "f",
              desc: "Do not ask for confirmation before destroying the stacks"
            }
          }
        },
        diff: {
          description: "Compares the specified stack with the deployed stack or a local template file, and returns with status 1 if any difference is found",
          arg: {
            name: "STACKS",
            variadic: true
          },
          options: {
            exclusively: {
              type: "boolean",
              alias: "e",
              desc: "Only diff requested stacks, don't include dependencies"
            },
            "context-lines": {
              type: "number",
              desc: "Number of context lines to include in arbitrary JSON diff rendering",
              default: 3,
              requiresArg: true
            },
            template: {
              type: "string",
              desc: "The path to the CloudFormation template to compare with",
              requiresArg: true
            },
            strict: {
              type: "boolean",
              desc: "Do not filter out AWS::CDK::Metadata resources, mangled non-ASCII characters, or the CheckBootstrapVersionRule",
              default: false
            },
            "security-only": {
              type: "boolean",
              desc: "Only diff for broadened security changes",
              default: false
            },
            fail: {
              type: "boolean",
              desc: "Fail with exit code 1 in case of diff"
            },
            processed: {
              type: "boolean",
              desc: "Whether to compare against the template with Transforms already processed",
              default: false
            },
            quiet: {
              type: "boolean",
              alias: "q",
              desc: "Do not print stack name and default message when there is no diff to stdout",
              default: false
            },
            "change-set": {
              type: "boolean",
              alias: "changeset",
              desc: "Whether to create a changeset to analyze resource replacements. In this mode, diff will use the deploy role instead of the lookup role.",
              default: true
            },
            "import-existing-resources": {
              type: "boolean",
              desc: "Whether or not the change set imports resources that already exist",
              default: false
            },
            "include-moves": {
              type: "boolean",
              desc: "Whether to include moves in the diff",
              default: false
            }
          }
        },
        drift: {
          description: "Detect drifts in the given CloudFormation stack(s)",
          arg: {
            name: "STACKS",
            variadic: true
          },
          options: {
            fail: {
              type: "boolean",
              desc: "Fail with exit code 1 if drift is detected"
            }
          }
        },
        metadata: {
          description: "Returns all metadata associated with this stack",
          arg: {
            name: "STACK",
            variadic: false
          }
        },
        acknowledge: {
          aliases: [
            "ack"
          ],
          description: "Acknowledge a notice so that it does not show up anymore",
          arg: {
            name: "ID",
            variadic: false
          }
        },
        notices: {
          description: "Returns a list of relevant notices",
          options: {
            unacknowledged: {
              type: "boolean",
              alias: "u",
              default: false,
              desc: "Returns a list of unacknowledged notices"
            }
          }
        },
        init: {
          description: "Create a new, empty CDK project from a template.",
          arg: {
            name: "TEMPLATE",
            variadic: false
          },
          options: {
            language: {
              type: "string",
              alias: "l",
              desc: "The language to be used for the new project (default can be configured in ~/.cdk.json)",
              choices: [
                "csharp",
                "cs",
                "fsharp",
                "fs",
                "go",
                "java",
                "javascript",
                "js",
                "python",
                "py",
                "typescript",
                "ts"
              ]
            },
            list: {
              type: "boolean",
              desc: "List the available templates"
            },
            "generate-only": {
              type: "boolean",
              default: false,
              desc: "If true, only generates project files, without executing additional operations such as setting up a git repo, installing dependencies or compiling the project"
            },
            "lib-version": {
              type: "string",
              alias: "V",
              desc: "The version of the CDK library (aws-cdk-lib) to initialize built-in templates with. Defaults to the version that was current when this CLI was built."
            },
            "from-path": {
              type: "string",
              desc: "Path to a local custom template directory or multi-template repository",
              requiresArg: true,
              conflicts: [
                "lib-version"
              ]
            },
            "template-path": {
              type: "string",
              desc: "Path to a specific template within a multi-template repository",
              requiresArg: true
            }
          },
          implies: {
            "template-path": "from-path"
          }
        },
        migrate: {
          description: "Migrate existing AWS resources into a CDK app",
          options: {
            "stack-name": {
              type: "string",
              alias: "n",
              desc: "The name assigned to the stack created in the new project. The name of the app will be based off this name as well.",
              requiresArg: true
            },
            language: {
              type: "string",
              default: "typescript",
              alias: "l",
              desc: "The language to be used for the new project",
              choices: [
                "typescript",
                "ts",
                "go",
                "java",
                "python",
                "py",
                "csharp",
                "cs"
              ]
            },
            account: {
              type: "string",
              desc: "The account to retrieve the CloudFormation stack template from"
            },
            region: {
              type: "string",
              desc: "The region to retrieve the CloudFormation stack template from"
            },
            "from-path": {
              type: "string",
              desc: "The path to the CloudFormation template to migrate. Use this for locally stored templates"
            },
            "from-stack": {
              type: "boolean",
              desc: "Use this flag to retrieve the template for an existing CloudFormation stack"
            },
            "output-path": {
              type: "string",
              desc: "The output path for the migrated CDK app"
            },
            "from-scan": {
              type: "string",
              desc: 'Determines if a new scan should be created, or the last successful existing scan should be used \n options are "new" or "most-recent"'
            },
            filter: {
              type: "array",
              desc: 'Filters the resource scan based on the provided criteria in the following format: "key1=value1,key2=value2"\n This field can be passed multiple times for OR style filtering: \n filtering options: \n resource-identifier: A key-value pair that identifies the target resource. i.e. {"ClusterName", "myCluster"}\n resource-type-prefix: A string that represents a type-name prefix. i.e. "AWS::DynamoDB::"\n tag-key: a string that matches resources with at least one tag with the provided key. i.e. "myTagKey"\n tag-value: a string that matches resources with at least one tag with the provided value. i.e. "myTagValue"'
            },
            compress: {
              type: "boolean",
              desc: "Use this flag to zip the generated CDK app"
            }
          }
        },
        context: {
          description: "Manage cached context values",
          options: {
            reset: {
              alias: "e",
              desc: "The context key (or its index) to reset",
              type: "string",
              requiresArg: true
            },
            force: {
              alias: "f",
              desc: "Ignore missing key error",
              type: "boolean",
              default: false
            },
            clear: {
              desc: "Clear all context",
              type: "boolean",
              default: false
            }
          }
        },
        docs: {
          aliases: [
            "doc"
          ],
          description: "Opens the reference documentation in a browser",
          options: {
            browser: {
              alias: "b",
              desc: "the command to use to open the browser, using %u as a placeholder for the path of the file to open",
              type: "string"
            }
          }
        },
        doctor: {
          description: "Check your set-up for potential problems"
        },
        refactor: {
          description: "Moves resources between stacks or within the same stack",
          options: {
            "additional-stack-name": {
              type: "array",
              requiresArg: true,
              desc: "Names of deployed stacks to be considered for resource comparison."
            },
            "dry-run": {
              type: "boolean",
              desc: "Do not perform any changes, just show what would be done",
              default: false
            },
            "override-file": {
              type: "string",
              requiresArg: true,
              desc: "A file that declares overrides to be applied to the list of mappings computed by the CLI."
            },
            revert: {
              type: "boolean",
              default: false,
              desc: "If specified, the command will revert the refactor operation. This is only valid if a mapping file was provided."
            },
            force: {
              type: "boolean",
              default: false,
              desc: "Whether to do the refactor without asking for confirmation"
            }
          }
        },
        "cli-telemetry": {
          description: "Enable or disable anonymous telemetry",
          options: {
            enable: {
              type: "boolean",
              desc: "Enable anonymous telemetry",
              conflicts: "disable"
            },
            disable: {
              type: "boolean",
              desc: "Disable anonymous telemetry",
              conflicts: "enable"
            },
            status: {
              type: "boolean",
              desc: "Report telemetry opt-in/out status",
              conflicts: [
                "enable",
                "disable"
              ]
            }
          }
        }
      }
    };
  }
});

// lib/cli/telemetry/sanitation.ts
function sanitizeCommandLineArguments(argv) {
  const config = require_cli_type_registry();
  const command2 = argv._[0];
  const path38 = [command2];
  const parameters = {};
  const globalOptions = Object.keys(config.globalOptions);
  const commandOptions = Object.keys(config.commands[command2]?.options ?? {});
  const commandArg = config.commands[command2]?.arg;
  for (const argName of Object.keys(argv)) {
    if (argName === commandArg?.name) {
      if (commandArg.variadic) {
        for (let i3 = 0; i3 < argv[argName].length; i3++) {
          path38.push(`$${argName}_${i3 + 1}`);
        }
      } else {
        path38.push(`$${argName}`);
      }
    }
    if (argv[argName] === void 0 || !globalOptions.includes(argName) && !commandOptions.includes(argName)) {
      continue;
    }
    if (isNumberOrBoolean(argv[argName]) || isKnownEnumValue(argName, argv[argName], command2, config)) {
      parameters[argName] = argv[argName];
    } else {
      parameters[argName] = "<redacted>";
    }
  }
  return {
    path: path38,
    parameters
  };
}
function sanitizeContext(context) {
  const sanitizedContext = {};
  for (const [flag, value] of Object.entries(context.all)) {
    if (!isFeatureFlag(flag)) {
      continue;
    }
    const sanitizedValue = isBoolean(value) ? value : value !== "false";
    sanitizedContext[flag] = sanitizedValue;
  }
  return sanitizedContext;
}
function isBoolean(value) {
  return typeof value === "boolean";
}
function isNumberOrBoolean(value) {
  return typeof value === "number" || isBoolean(value);
}
function isKnownEnumValue(name, value, command2, config) {
  const propertyDefiniton = config.globalOptions[name] ?? config.commands[command2]?.options[name];
  if (propertyDefiniton.type === "string") {
    return propertyDefiniton.choices?.includes(value);
  }
  return false;
}
function isFeatureFlag(flag) {
  return Object.values(FeatureFlag).includes(flag);
}
var init_sanitation = __esm({
  "lib/cli/telemetry/sanitation.ts"() {
    "use strict";
    init_feature_flags();
    __name(sanitizeCommandLineArguments, "sanitizeCommandLineArguments");
    __name(sanitizeContext, "sanitizeContext");
    __name(isBoolean, "isBoolean");
    __name(isNumberOrBoolean, "isNumberOrBoolean");
    __name(isKnownEnumValue, "isKnownEnumValue");
    __name(isFeatureFlag, "isFeatureFlag");
  }
});

// lib/cli/telemetry/schema.ts
var ErrorName;
var init_schema5 = __esm({
  "lib/cli/telemetry/schema.ts"() {
    "use strict";
    ErrorName = /* @__PURE__ */ ((ErrorName2) => {
      ErrorName2["TOOLKIT_ERROR"] = "ToolkitError";
      ErrorName2["AUTHENTICATION_ERROR"] = "AuthenticationError";
      ErrorName2["ASSEMBLY_ERROR"] = "AssemblyError";
      ErrorName2["CONTEXT_PROVIDER_ERROR"] = "ContextProviderError";
      ErrorName2["UNKNOWN_ERROR"] = "UnknownError";
      return ErrorName2;
    })(ErrorName || {});
  }
});

// lib/cli/ci-systems.ts
function detectCiSystem() {
  for (const ciSystem of CI_SYSTEMS) {
    if (process.env[ciSystem.detectEnvVar]) {
      return ciSystem;
    }
  }
  return void 0;
}
function ciSystemIsStdErrSafe() {
  const x3 = detectCiSystem()?.canBeConfiguredToFailOnStdErr;
  return x3 === void 0 ? void 0 : !x3;
}
var CI_SYSTEMS;
var init_ci_systems = __esm({
  "lib/cli/ci-systems.ts"() {
    "use strict";
    CI_SYSTEMS = [
      {
        name: "Azure DevOps",
        // https://learn.microsoft.com/en-us/azure/devops/pipelines/build/variables?view=azure-devops&tabs=yaml
        detectEnvVar: "TF_BUILD",
        canBeConfiguredToFailOnStdErr: true
      },
      {
        name: "TeamCity",
        // https://www.jetbrains.com/help/teamcity/predefined-build-parameters.html
        detectEnvVar: "TEAMCITY_VERSION",
        // Can be configured to fail on stderr, when using a PowerShell task
        canBeConfiguredToFailOnStdErr: true
      },
      {
        name: "GitHub Actions",
        // https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables#default-environment-variables
        detectEnvVar: "GITHUB_ACTION",
        canBeConfiguredToFailOnStdErr: false
      },
      {
        name: "CodeBuild",
        // https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-env-vars.html
        detectEnvVar: "CODEBUILD_BUILD_ID",
        canBeConfiguredToFailOnStdErr: false
      },
      {
        name: "CircleCI",
        // https://circleci.com/docs/variables/#built-in-environment-variables
        detectEnvVar: "CIRCLECI",
        canBeConfiguredToFailOnStdErr: false
      },
      {
        name: "Jenkins",
        // https://www.jenkins.io/doc/book/pipeline/jenkinsfile/#using-environment-variables
        detectEnvVar: "EXECUTOR_NUMBER",
        canBeConfiguredToFailOnStdErr: false
      }
    ];
    __name(detectCiSystem, "detectCiSystem");
    __name(ciSystemIsStdErrSafe, "ciSystemIsStdErrSafe");
  }
});

// lib/cli/util/ci.ts
function isCI2() {
  return process.env.CI !== void 0 && process.env.CI !== "false" && process.env.CI !== "0";
}
var init_ci = __esm({
  "lib/cli/util/ci.ts"() {
    "use strict";
    __name(isCI2, "isCI");
  }
});

// lib/cli/root-dir.ts
function cliRootDir(fail) {
  function _rootDir(dirname11) {
    const manifestPath = path29.join(dirname11, "package.json");
    if (fs31.existsSync(manifestPath)) {
      return dirname11;
    }
    if (path29.dirname(dirname11) === dirname11) {
      if (fail ?? true) {
        throw new import_toolkit_lib.ToolkitError("Unable to find package manifest");
      }
      return void 0;
    }
    return _rootDir(path29.dirname(dirname11));
  }
  __name(_rootDir, "_rootDir");
  return _rootDir(__dirname);
}
var fs31, path29, import_toolkit_lib;
var init_root_dir = __esm({
  "lib/cli/root-dir.ts"() {
    "use strict";
    fs31 = __toESM(require("fs"));
    path29 = __toESM(require("path"));
    import_toolkit_lib = __toESM(require_lib12());
    __name(cliRootDir, "cliRootDir");
  }
});

// lib/cli/version.ts
function versionWithBuild() {
  return `${versionNumber2()} (build ${commit()})`;
}
function isDeveloperBuildVersion() {
  return versionNumber2() === "0.0.0";
}
function versionNumber2() {
  return require(path30.join(cliRootDir(), "package.json")).version.replace(/\+[0-9a-f]+$/, "");
}
function commit() {
  return require(path30.join(cliRootDir(), "build-info.json")).commit;
}
var path30;
var init_version2 = __esm({
  "lib/cli/version.ts"() {
    "use strict";
    path30 = __toESM(require("path"));
    init_root_dir();
    __name(versionWithBuild, "versionWithBuild");
    __name(isDeveloperBuildVersion, "isDeveloperBuildVersion");
    __name(versionNumber2, "versionNumber");
    __name(commit, "commit");
  }
});

// lib/cli/telemetry/session.ts
function getState(error5) {
  if (error5) {
    return isAbortedError(error5) ? "ABORTED" : "FAILED";
  }
  return "SUCCEEDED";
}
function isAbortedError(error5) {
  if (error5?.name === "ToolkitError" && error5?.message?.includes(ABORTED_ERROR_MESSAGE)) {
    return true;
  }
  return false;
}
var import_crypto11, import_toolkit_lib2, ABORTED_ERROR_MESSAGE, TelemetrySession;
var init_session = __esm({
  "lib/cli/telemetry/session.ts"() {
    "use strict";
    import_crypto11 = require("crypto");
    import_toolkit_lib2 = __toESM(require_lib12());
    init_installation_id();
    init_library_version();
    init_sanitation();
    init_schema5();
    init_ci_systems();
    init_messages2();
    init_ci();
    init_version2();
    ABORTED_ERROR_MESSAGE = "__CDK-Toolkit__Aborted";
    TelemetrySession = class {
      constructor(props) {
        this.props = props;
        this.count = 0;
        this.ioHost = props.ioHost;
        this.client = props.client;
      }
      static {
        __name(this, "TelemetrySession");
      }
      async begin() {
        const { path: path38, parameters } = sanitizeCommandLineArguments(this.props.arguments);
        this._sessionInfo = {
          identifiers: {
            installationId: await getOrCreateInstallationId(this.ioHost.asIoHelper()),
            sessionId: (0, import_crypto11.randomUUID)(),
            telemetryVersion: "1.0",
            cdkCliVersion: versionNumber2(),
            cdkLibraryVersion: await getLibraryVersion(this.ioHost.asIoHelper())
          },
          event: {
            command: {
              path: path38,
              parameters,
              config: {
                context: sanitizeContext(this.props.context)
              }
            }
          },
          environment: {
            ci: isCI2() || Boolean(detectCiSystem()),
            os: {
              platform: process.platform,
              release: process.release.name
            },
            nodeVersion: process.version
          },
          project: {}
        };
        process.on("SIGINT", async () => {
          try {
            await this.end({
              name: "ToolkitError" /* TOOLKIT_ERROR */,
              message: ABORTED_ERROR_MESSAGE
            });
          } catch (e3) {
            await this.ioHost.defaults.trace(`Ending Telemetry failed: ${e3.message}`);
          }
          process.exit(1);
        });
        this.span = await this.ioHost.asIoHelper().span(CLI_PRIVATE_SPAN.COMMAND).begin({});
      }
      async attachRegion(region) {
        this.sessionInfo.identifiers = {
          ...this.sessionInfo.identifiers,
          region
        };
      }
      /**
       * When the command is complete, so is the CliIoHost. Ends the span of the entire CliIoHost
       * and notifies with an optional error message in the data.
       */
      async end(error5) {
        await this.span?.end({ error: error5 });
        this.span = void 0;
        await this.client.flush();
      }
      async emit(event) {
        this.count += 1;
        return this.client.emit({
          event: {
            command: this.sessionInfo.event.command,
            state: getState(event.error),
            eventType: event.eventType
          },
          identifiers: {
            ...this.sessionInfo.identifiers,
            eventId: `${this.sessionInfo.identifiers.sessionId}:${this.count}`,
            timestamp: (/* @__PURE__ */ new Date()).toISOString()
          },
          environment: this.sessionInfo.environment,
          project: this.sessionInfo.project,
          duration: {
            total: event.duration
          },
          ...event.error ? {
            error: {
              name: event.error.name
            }
          } : {}
        });
      }
      get sessionInfo() {
        if (!this._sessionInfo) {
          throw new import_toolkit_lib2.ToolkitError("Session Info not initialized. Call begin() first.");
        }
        return this._sessionInfo;
      }
    };
    __name(getState, "getState");
    __name(isAbortedError, "isAbortedError");
  }
});

// lib/cli/telemetry/sink/file-sink.ts
var import_toolkit_lib3, fs32, FileTelemetrySink;
var init_file_sink = __esm({
  "lib/cli/telemetry/sink/file-sink.ts"() {
    "use strict";
    import_toolkit_lib3 = __toESM(require_lib12());
    fs32 = __toESM(require_lib13());
    init_api_private();
    FileTelemetrySink = class {
      static {
        __name(this, "FileTelemetrySink");
      }
      /**
       * Create a new FileTelemetryClient
       */
      constructor(props) {
        this.ioHelper = IoHelper.fromActionAwareIoHost(props.ioHost);
        this.logFilePath = props.logFilePath;
        if (fs32.existsSync(this.logFilePath)) {
          throw new import_toolkit_lib3.ToolkitError(`Telemetry file already exists at ${this.logFilePath}`);
        }
        fs32.ensureFileSync(this.logFilePath);
        fs32.writeJsonSync(this.logFilePath, []);
      }
      /**
       * Emit an event.
       */
      async emit(event) {
        try {
          const json = fs32.readJsonSync(this.logFilePath);
          json.push(event);
          fs32.writeJSONSync(this.logFilePath, json, { spaces: 2 });
        } catch (e3) {
          await this.ioHelper.defaults.trace(`Failed to add telemetry event: ${e3.message}`);
        }
      }
      async flush() {
        return;
      }
    };
  }
});

// lib/cli/io-host/cli-io-host.ts
function isPromptableRequest(msg) {
  return isConfirmationPrompt(msg) || typeof msg.defaultResponse === "string" || typeof msg.defaultResponse === "number";
}
function isConfirmationPrompt(msg) {
  return typeof msg.defaultResponse === "boolean";
}
function extractPromptInfo(msg) {
  const isNumber = typeof msg.defaultResponse === "number";
  const defaultResponse = util9.format(msg.defaultResponse);
  return {
    default: defaultResponse,
    defaultDesc: "defaultDescription" in msg && msg.defaultDescription ? util9.format(msg.defaultDescription) : defaultResponse,
    convertAnswer: isNumber ? (v6) => Number(v6) : (v6) => String(v6)
  };
}
function targetStreamObject(x3) {
  switch (x3) {
    case "stderr":
      return process.stderr;
    case "stdout":
      return process.stdout;
    case "drop":
      return void 0;
  }
}
function isNoticesMessage(msg) {
  return IO.CDK_TOOLKIT_I0100.is(msg) || IO.CDK_TOOLKIT_W0101.is(msg) || IO.CDK_TOOLKIT_E0101.is(msg) || IO.CDK_TOOLKIT_I0101.is(msg);
}
function isTelemetryMessage(msg) {
  return CLI_TELEMETRY_CODES.some((c3) => c3.is(msg));
}
function getEventType(msg) {
  switch (msg.code) {
    case CLI_PRIVATE_IO.CDK_CLI_I1001.code:
      return "SYNTH";
    case CLI_PRIVATE_IO.CDK_CLI_I2001.code:
      return "INVOKE";
    case CLI_PRIVATE_IO.CDK_CLI_I3001.code:
      return "DEPLOY";
    default:
      throw new import_toolkit_lib4.ToolkitError(`Unrecognized Telemetry Message Code: ${msg.code}`);
  }
}
var util9, import_cloud_assembly_schema7, import_toolkit_lib4, chalk24, promptly, CliIoHost, styleMap2;
var init_cli_io_host = __esm({
  "lib/cli/io-host/cli-io-host.ts"() {
    "use strict";
    util9 = __toESM(require("node:util"));
    import_cloud_assembly_schema7 = __toESM(require_lib2());
    import_toolkit_lib4 = __toESM(require_lib12());
    chalk24 = __toESM(require_source());
    promptly = __toESM(require_promptly());
    init_api_private();
    init_deploy4();
    init_messages2();
    init_session();
    init_file_sink();
    init_ci();
    CliIoHost = class _CliIoHost {
      constructor(props = {}) {
        /**
         * Configure the target stream for notices
         *
         * (Not a setter because there's no need for additional logic when this value
         * is changed yet)
         */
        this.noticesDestination = "stderr";
        this._progress = "bar" /* BAR */;
        // Corked Logging
        this.corkedCounter = 0;
        this.corkedLoggingBuffer = [];
        this.currentAction = props.currentAction ?? "none";
        this.isTTY = props.isTTY ?? process.stdout.isTTY ?? false;
        this.logLevel = props.logLevel ?? "info";
        this.isCI = props.isCI ?? isCI2();
        this.requireDeployApproval = props.requireDeployApproval ?? import_cloud_assembly_schema7.RequireApproval.BROADENING;
        this.stackProgress = props.stackProgress ?? "bar" /* BAR */;
      }
      static {
        __name(this, "CliIoHost");
      }
      /**
       * Returns the singleton instance
       */
      static instance(props = {}, forceNew = false) {
        if (forceNew || !_CliIoHost._instance) {
          _CliIoHost._instance = new _CliIoHost(props);
        }
        return _CliIoHost._instance;
      }
      /**
       * Returns the singleton instance if it exists
       */
      static get() {
        return _CliIoHost._instance;
      }
      async startTelemetry(args, context, _proxyAgent) {
        let sink;
        const telemetryFilePath = args["telemetry-file"];
        if (telemetryFilePath) {
          sink = new FileTelemetrySink({
            ioHost: this,
            logFilePath: telemetryFilePath
          });
        }
        if (sink) {
          this.telemetry = new TelemetrySession({
            ioHost: this,
            client: sink,
            arguments: args,
            context
          });
        }
        await this.telemetry?.begin();
      }
      /**
       * Update the stackProgress preference.
       */
      set stackProgress(type) {
        this._progress = type;
      }
      /**
       * Gets the stackProgress value.
       *
       * This takes into account other state of the ioHost,
       * like if isTTY and isCI.
       */
      get stackProgress() {
        if (this._progress === "events" /* EVENTS */) {
          return this._progress;
        }
        const verboseLogging = isMessageRelevantForLevel({ level: "debug" }, this.logLevel);
        if (verboseLogging) {
          return "events" /* EVENTS */;
        }
        const isWindows = process.platform === "win32";
        if (isWindows) {
          return "events" /* EVENTS */;
        }
        const fancyOutputAvailable = this.isTTY && !this.isCI;
        if (!fancyOutputAvailable) {
          return "events" /* EVENTS */;
        }
        return this._progress;
      }
      get defaults() {
        return this.asIoHelper().defaults;
      }
      asIoHelper() {
        return asIoHelper(this, this.currentAction);
      }
      /**
       * Executes a block of code with corked logging. All log messages during execution
       * are buffered and only written when all nested cork blocks complete (when CORK_COUNTER reaches 0).
       * The corking is bound to the specific instance of the CliIoHost.
       *
       * @param block - Async function to execute with corked logging
       * @returns Promise that resolves with the block's return value
       */
      async withCorkedLogging(block) {
        this.corkedCounter++;
        try {
          return await block();
        } finally {
          this.corkedCounter--;
          if (this.corkedCounter === 0) {
            for (const ioMessage of this.corkedLoggingBuffer) {
              await this.notify(ioMessage);
            }
            this.corkedLoggingBuffer.splice(0);
          }
        }
      }
      /**
       * Notifies the host of a message.
       * The caller waits until the notification completes.
       */
      async notify(msg) {
        await this.maybeEmitTelemetry(msg);
        if (this.isStackActivity(msg)) {
          if (!this.activityPrinter) {
            this.activityPrinter = this.makeActivityPrinter();
          }
          this.activityPrinter.notify(msg);
          return;
        }
        if (!isMessageRelevantForLevel(msg, this.logLevel)) {
          return;
        }
        if (this.corkedCounter > 0) {
          this.corkedLoggingBuffer.push(msg);
          return;
        }
        const output = this.formatMessage(msg);
        const stream3 = this.selectStream(msg);
        stream3?.write(output);
      }
      async maybeEmitTelemetry(msg) {
        try {
          if (this.telemetry && isTelemetryMessage(msg)) {
            await this.telemetry.emit({
              eventType: getEventType(msg),
              duration: msg.data.duration,
              error: msg.data.error
            });
          }
        } catch (e3) {
          await this.defaults.trace(`Emit Telemetry Failed ${e3.message}`);
        }
      }
      /**
       * Detect stack activity messages so they can be send to the printer.
       */
      isStackActivity(msg) {
        return msg.code && [
          "CDK_TOOLKIT_I5501",
          "CDK_TOOLKIT_I5502",
          "CDK_TOOLKIT_I5503"
        ].includes(msg.code);
      }
      /**
       * Detect special messages encode information about whether or not
       * they require approval
       */
      skipApprovalStep(msg) {
        const approvalToolkitCodes = ["CDK_TOOLKIT_I5060"];
        if (!(msg.code && approvalToolkitCodes.includes(msg.code))) {
          false;
        }
        switch (this.requireDeployApproval) {
          // Never require approval
          case import_cloud_assembly_schema7.RequireApproval.NEVER:
            return true;
          // Always require approval
          case import_cloud_assembly_schema7.RequireApproval.ANYCHANGE:
            return false;
          // Require approval if changes include broadening permissions
          case import_cloud_assembly_schema7.RequireApproval.BROADENING:
            return ["none", "non-broadening"].includes(msg.data?.permissionChangeType);
        }
      }
      /**
       * Determines the output stream, based on message and configuration.
       */
      selectStream(msg) {
        if (isNoticesMessage(msg)) {
          return targetStreamObject(this.noticesDestination);
        }
        return this.selectStreamFromLevel(msg.level);
      }
      /**
       * Determines the output stream, based on message level and configuration.
       */
      selectStreamFromLevel(level) {
        switch (level) {
          case "error":
            return process.stderr;
          case "result":
            return process.stdout;
          default:
            return this.isCI ? process.stdout : process.stderr;
        }
      }
      /**
       * Notifies the host of a message that requires a response.
       *
       * If the host does not return a response the suggested
       * default response from the input message will be used.
       */
      async requestResponse(msg) {
        if (!isPromptableRequest(msg)) {
          await this.notify(msg);
          return msg.defaultResponse;
        }
        const response = await this.withCorkedLogging(async () => {
          const data3 = msg.data ?? {};
          const motivation = data3.motivation ?? "User input is needed";
          const concurrency = data3.concurrency ?? 0;
          const responseDescription = data3.responseDescription;
          if (!this.isTTY) {
            throw new import_toolkit_lib4.ToolkitError(`${motivation}, but terminal (TTY) is not attached so we are unable to get a confirmation from the user`);
          }
          if (concurrency > 1) {
            throw new import_toolkit_lib4.ToolkitError(`${motivation}, but concurrency is greater than 1 so we are unable to get a confirmation from the user`);
          }
          if (this.skipApprovalStep(msg)) {
            return true;
          }
          if (isConfirmationPrompt(msg)) {
            const confirmed = await promptly.confirm(`${chalk24.cyan(msg.message)} (y/n)`);
            if (!confirmed) {
              throw new import_toolkit_lib4.ToolkitError("Aborted by user");
            }
            return confirmed;
          }
          const prompt2 = extractPromptInfo(msg);
          const desc = responseDescription ?? prompt2.default;
          const answer = await promptly.prompt(`${chalk24.cyan(msg.message)}${desc ? ` (${desc})` : ""}`, {
            default: prompt2.default,
            trim: true
          });
          return prompt2.convertAnswer(answer);
        });
        return response;
      }
      /**
       * Formats a message for console output with optional color support
       */
      formatMessage(msg) {
        let message_text = this.isTTY ? styleMap2[msg.level](msg.message) : msg.message;
        return (msg.level === "debug" || msg.level === "trace" ? `[${this.formatTime(msg.time)}] ${message_text}` : message_text) + "\n";
      }
      /**
       * Formats date to HH:MM:SS
       */
      formatTime(d3) {
        const pad = /* @__PURE__ */ __name((n3) => n3.toString().padStart(2, "0"), "pad");
        return `${pad(d3.getHours())}:${pad(d3.getMinutes())}:${pad(d3.getSeconds())}`;
      }
      /**
       * Get an instance of the ActivityPrinter
       */
      makeActivityPrinter() {
        const props = {
          stream: this.selectStreamFromLevel("info")
        };
        switch (this.stackProgress) {
          case "events" /* EVENTS */:
            return new HistoryActivityPrinter(props);
          case "bar" /* BAR */:
            return new CurrentActivityPrinter(props);
        }
      }
    };
    __name(isPromptableRequest, "isPromptableRequest");
    __name(isConfirmationPrompt, "isConfirmationPrompt");
    __name(extractPromptInfo, "extractPromptInfo");
    styleMap2 = {
      error: chalk24.red,
      warn: chalk24.yellow,
      result: chalk24.white,
      info: chalk24.white,
      debug: chalk24.gray,
      trace: chalk24.gray
    };
    __name(targetStreamObject, "targetStreamObject");
    __name(isNoticesMessage, "isNoticesMessage");
    __name(isTelemetryMessage, "isTelemetryMessage");
    __name(getEventType, "getEventType");
  }
});

// lib/cli/io-host/index.ts
var init_io_host2 = __esm({
  "lib/cli/io-host/index.ts"() {
    "use strict";
    init_cli_io_host();
  }
});

// lib/api/context.ts
var init_context4 = __esm({
  "lib/api/context.ts"() {
    "use strict";
    init_context2();
  }
});

// lib/api/settings.ts
var init_settings2 = __esm({
  "lib/api/settings.ts"() {
    "use strict";
    init_settings();
  }
});

// lib/cli/user-configuration.ts
async function loadAndLog(ioHelper, fileName) {
  const ret = await settingsFromFile2(ioHelper, fileName);
  if (!ret.empty) {
    await ioHelper.defaults.debug(fileName + ":", JSON.stringify(ret.all, void 0, 2));
  }
  return ret;
}
async function settingsFromFile2(ioHelper, fileName) {
  let settings;
  const expanded = expandHomeDir2(fileName);
  if (await fs33.pathExists(expanded)) {
    const data3 = await fs33.readJson(expanded);
    settings = new Settings(data3);
  } else {
    settings = new Settings();
  }
  prohibitContextKeys(settings, ["default-account", "default-region"], fileName);
  await warnAboutContextKey(ioHelper, settings, "aws:", fileName);
  return settings;
}
function prohibitContextKeys(settings, keys, fileName) {
  const context = settings.get(["context"]);
  if (!context || typeof context !== "object") {
    return;
  }
  for (const key of keys) {
    if (key in context) {
      throw new import_toolkit_lib5.ToolkitError(
        `The 'context.${key}' key was found in ${fs_path2.resolve(
          fileName
        )}, but it is no longer supported. Please remove it.`
      );
    }
  }
}
async function warnAboutContextKey(ioHelper, settings, prefix2, fileName) {
  const context = settings.get(["context"]);
  if (!context || typeof context !== "object") {
    return;
  }
  for (const contextKey of Object.keys(context)) {
    if (contextKey.startsWith(prefix2)) {
      await ioHelper.defaults.warning(
        `A reserved context key ('context.${prefix2}') key was found in ${fs_path2.resolve(
          fileName
        )}, it might cause surprising behavior and should be removed.`
      );
    }
  }
}
function expandHomeDir2(x3) {
  if (x3.startsWith("~")) {
    return fs_path2.join(os10.homedir(), x3.slice(1));
  }
  return x3;
}
async function commandLineArgumentsToSettings(ioHelper, argv) {
  const context = await parseStringContextListToObject(ioHelper, argv);
  const tags = await parseStringTagsListToObject(ioHelper, expectStringList(argv.tags));
  let bundlingStacks;
  if (BUNDLING_COMMANDS.includes(argv._[0])) {
    bundlingStacks = argv.exclusively ? argv.STACKS ?? ["**"] : ["**"];
  } else {
    bundlingStacks = [];
  }
  return new Settings({
    app: argv.app,
    browser: argv.browser,
    build: argv.build,
    caBundlePath: argv.caBundlePath,
    context,
    debug: argv.debug,
    tags,
    language: argv.language,
    pathMetadata: argv.pathMetadata,
    assetMetadata: argv.assetMetadata,
    profile: argv.profile,
    plugin: argv.plugin,
    requireApproval: argv.requireApproval,
    toolkitStackName: argv.toolkitStackName,
    toolkitBucket: {
      bucketName: argv.bootstrapBucketName,
      kmsKeyId: argv.bootstrapKmsKeyId
    },
    versionReporting: argv.versionReporting,
    staging: argv.staging,
    output: argv.output,
    outputsFile: argv.outputsFile,
    progress: argv.progress,
    proxy: argv.proxy,
    bundlingStacks,
    lookups: argv.lookups,
    rollback: argv.rollback,
    notices: argv.notices,
    assetParallelism: argv["asset-parallelism"],
    assetPrebuild: argv["asset-prebuild"],
    ignoreNoStacks: argv["ignore-no-stacks"],
    hotswap: {
      ecs: {
        minimumHealthyPercent: argv.hotswapEcsMinimumHealthyPercent,
        maximumHealthyPercent: argv.hotswapEcsMaximumHealthyPercent,
        stabilizationTimeoutSeconds: argv.hotswapEcsStabilizationTimeoutSeconds
      }
    },
    unstable: argv.unstable
  });
}
function expectStringList(x3) {
  if (x3 === void 0) {
    return void 0;
  }
  if (!Array.isArray(x3)) {
    throw new import_toolkit_lib5.ToolkitError(`Expected array, got '${x3}'`);
  }
  const nonStrings = x3.filter((e3) => typeof e3 !== "string");
  if (nonStrings.length > 0) {
    throw new import_toolkit_lib5.ToolkitError(`Expected list of strings, found ${nonStrings}`);
  }
  return x3;
}
async function parseStringContextListToObject(ioHelper, argv) {
  const context = {};
  for (const assignment of argv.context || []) {
    const parts = assignment.split(/=(.*)/, 2);
    if (parts.length === 2) {
      await ioHelper.defaults.debug("CLI argument context: %s=%s", parts[0], parts[1]);
      if (parts[0].match(/^aws:.+/)) {
        throw new import_toolkit_lib5.ToolkitError(
          `User-provided context cannot use keys prefixed with 'aws:', but ${parts[0]} was provided.`
        );
      }
      context[parts[0]] = parts[1];
    } else {
      await ioHelper.defaults.warn(
        "Context argument is not an assignment (key=value): %s",
        assignment
      );
    }
  }
  return context;
}
async function parseStringTagsListToObject(ioHelper, argTags) {
  if (argTags === void 0) {
    return void 0;
  }
  if (argTags.length === 0) {
    return void 0;
  }
  const nonEmptyTags = argTags.filter((t3) => t3 !== "");
  if (nonEmptyTags.length === 0) {
    return [];
  }
  const tags = [];
  for (const assignment of nonEmptyTags) {
    const parts = assignment.split(/=(.*)/, 2);
    if (parts.length === 2) {
      await ioHelper.defaults.debug("CLI argument tags: %s=%s", parts[0], parts[1]);
      tags.push({
        Key: parts[0],
        Value: parts[1]
      });
    } else {
      await ioHelper.defaults.warn("Tags argument is not an assignment (key=value): %s", assignment);
    }
  }
  return tags.length > 0 ? tags : void 0;
}
var os10, fs_path2, import_toolkit_lib5, fs33, PROJECT_CONFIG, USER_DEFAULTS, CONTEXT_KEY, BUNDLING_COMMANDS, Configuration;
var init_user_configuration = __esm({
  "lib/cli/user-configuration.ts"() {
    "use strict";
    os10 = __toESM(require("os"));
    fs_path2 = __toESM(require("path"));
    import_toolkit_lib5 = __toESM(require_lib12());
    fs33 = __toESM(require_lib13());
    init_context4();
    init_settings2();
    init_context4();
    PROJECT_CONFIG = "cdk.json";
    USER_DEFAULTS = "~/.cdk.json";
    CONTEXT_KEY = "context";
    BUNDLING_COMMANDS = [
      "deploy" /* DEPLOY */,
      "diff" /* DIFF */,
      "synth" /* SYNTH */,
      "synthesize" /* SYNTHESIZE */,
      "watch" /* WATCH */,
      "import" /* IMPORT */
    ];
    Configuration = class _Configuration {
      constructor(ioHelper, commandLineArguments) {
        this.settings = new Settings();
        this.context = new Context();
        this.defaultConfig = new Settings({
          versionReporting: true,
          assetMetadata: true,
          pathMetadata: true,
          output: "cdk.out"
        });
        this.loaded = false;
        this.ioHelper = ioHelper;
        this.commandLineArguments = commandLineArguments;
        this.commandLineContext = this.commandLineArguments.subSettings([CONTEXT_KEY]).makeReadOnly();
      }
      static {
        __name(this, "Configuration");
      }
      /**
       * Creates user configuration from commandLineArguments
       */
      static async fromArgs(ioHelper, args) {
        const commandLineArguments = args ? await commandLineArgumentsToSettings(ioHelper, args) : new Settings();
        return new _Configuration(ioHelper, commandLineArguments);
      }
      /**
       * Creates user configuration from commandLineArguments and loads
       */
      static async fromArgsAndFiles(ioHelper, props = {}) {
        const configuration = await _Configuration.fromArgs(ioHelper, props.commandLineArguments);
        return configuration.loadConfigFiles(props.readUserContext ?? true);
      }
      get projectConfig() {
        if (!this._projectConfig) {
          throw new import_toolkit_lib5.ToolkitError("#load has not been called yet!");
        }
        return this._projectConfig;
      }
      get projectContext() {
        if (!this._projectContext) {
          throw new import_toolkit_lib5.ToolkitError("#load has not been called yet!");
        }
        return this._projectContext;
      }
      /**
       * Load all config
       */
      async loadConfigFiles(readUserContext) {
        const userConfig = await loadAndLog(this.ioHelper, USER_DEFAULTS);
        this._projectConfig = await loadAndLog(this.ioHelper, PROJECT_CONFIG);
        this._projectContext = await loadAndLog(this.ioHelper, PROJECT_CONTEXT);
        if (userConfig.get(["build"])) {
          throw new import_toolkit_lib5.ToolkitError(
            "The `build` key cannot be specified in the user config (~/.cdk.json), specify it in the project config (cdk.json) instead"
          );
        }
        const contextSources = [
          { bag: this.commandLineContext },
          {
            fileName: PROJECT_CONFIG,
            bag: this.projectConfig.subSettings([CONTEXT_KEY]).makeReadOnly()
          },
          { fileName: PROJECT_CONTEXT, bag: this.projectContext }
        ];
        if (readUserContext) {
          contextSources.push({
            fileName: USER_DEFAULTS,
            bag: userConfig.subSettings([CONTEXT_KEY]).makeReadOnly()
          });
        }
        this.context = new Context(...contextSources);
        this.settings = this.defaultConfig.merge(userConfig).merge(this.projectConfig).merge(this.commandLineArguments).makeReadOnly();
        await this.ioHelper.defaults.debug("merged settings:", this.settings.all);
        this.loaded = true;
        return this;
      }
      /**
       * Save the project context
       */
      async saveContext() {
        if (!this.loaded) {
          return this;
        }
        await this.projectContext.save(PROJECT_CONTEXT);
        return this;
      }
    };
    __name(loadAndLog, "loadAndLog");
    __name(settingsFromFile2, "settingsFromFile");
    __name(prohibitContextKeys, "prohibitContextKeys");
    __name(warnAboutContextKey, "warnAboutContextKey");
    __name(expandHomeDir2, "expandHomeDir");
    __name(commandLineArgumentsToSettings, "commandLineArgumentsToSettings");
    __name(expectStringList, "expectStringList");
    __name(parseStringContextListToObject, "parseStringContextListToObject");
    __name(parseStringTagsListToObject, "parseStringTagsListToObject");
  }
});

// lib/api/refactor.ts
var init_refactor3 = __esm({
  "lib/api/refactor.ts"() {
    "use strict";
    init_mapping_helpers();
  }
});

// node_modules/minimatch/dist/esm/assert-valid-pattern.js
var MAX_PATTERN_LENGTH3, assertValidPattern3;
var init_assert_valid_pattern3 = __esm({
  "node_modules/minimatch/dist/esm/assert-valid-pattern.js"() {
    MAX_PATTERN_LENGTH3 = 1024 * 64;
    assertValidPattern3 = /* @__PURE__ */ __name((pattern) => {
      if (typeof pattern !== "string") {
        throw new TypeError("invalid pattern");
      }
      if (pattern.length > MAX_PATTERN_LENGTH3) {
        throw new TypeError("pattern is too long");
      }
    }, "assertValidPattern");
  }
});

// node_modules/minimatch/dist/esm/brace-expressions.js
var posixClasses3, braceEscape3, regexpEscape3, rangesToString3, parseClass3;
var init_brace_expressions3 = __esm({
  "node_modules/minimatch/dist/esm/brace-expressions.js"() {
    posixClasses3 = {
      "[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
      "[:alpha:]": ["\\p{L}\\p{Nl}", true],
      "[:ascii:]": ["\\x00-\\x7f", false],
      "[:blank:]": ["\\p{Zs}\\t", true],
      "[:cntrl:]": ["\\p{Cc}", true],
      "[:digit:]": ["\\p{Nd}", true],
      "[:graph:]": ["\\p{Z}\\p{C}", true, true],
      "[:lower:]": ["\\p{Ll}", true],
      "[:print:]": ["\\p{C}", true],
      "[:punct:]": ["\\p{P}", true],
      "[:space:]": ["\\p{Z}\\t\\r\\n\\v\\f", true],
      "[:upper:]": ["\\p{Lu}", true],
      "[:word:]": ["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}", true],
      "[:xdigit:]": ["A-Fa-f0-9", false]
    };
    braceEscape3 = /* @__PURE__ */ __name((s3) => s3.replace(/[[\]\\-]/g, "\\$&"), "braceEscape");
    regexpEscape3 = /* @__PURE__ */ __name((s3) => s3.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), "regexpEscape");
    rangesToString3 = /* @__PURE__ */ __name((ranges) => ranges.join(""), "rangesToString");
    parseClass3 = /* @__PURE__ */ __name((glob2, position) => {
      const pos = position;
      if (glob2.charAt(pos) !== "[") {
        throw new Error("not in a brace expression");
      }
      const ranges = [];
      const negs = [];
      let i3 = pos + 1;
      let sawStart = false;
      let uflag = false;
      let escaping = false;
      let negate = false;
      let endPos = pos;
      let rangeStart = "";
      WHILE: while (i3 < glob2.length) {
        const c3 = glob2.charAt(i3);
        if ((c3 === "!" || c3 === "^") && i3 === pos + 1) {
          negate = true;
          i3++;
          continue;
        }
        if (c3 === "]" && sawStart && !escaping) {
          endPos = i3 + 1;
          break;
        }
        sawStart = true;
        if (c3 === "\\") {
          if (!escaping) {
            escaping = true;
            i3++;
            continue;
          }
        }
        if (c3 === "[" && !escaping) {
          for (const [cls, [unip, u3, neg]] of Object.entries(posixClasses3)) {
            if (glob2.startsWith(cls, i3)) {
              if (rangeStart) {
                return ["$.", false, glob2.length - pos, true];
              }
              i3 += cls.length;
              if (neg)
                negs.push(unip);
              else
                ranges.push(unip);
              uflag = uflag || u3;
              continue WHILE;
            }
          }
        }
        escaping = false;
        if (rangeStart) {
          if (c3 > rangeStart) {
            ranges.push(braceEscape3(rangeStart) + "-" + braceEscape3(c3));
          } else if (c3 === rangeStart) {
            ranges.push(braceEscape3(c3));
          }
          rangeStart = "";
          i3++;
          continue;
        }
        if (glob2.startsWith("-]", i3 + 1)) {
          ranges.push(braceEscape3(c3 + "-"));
          i3 += 2;
          continue;
        }
        if (glob2.startsWith("-", i3 + 1)) {
          rangeStart = c3;
          i3 += 2;
          continue;
        }
        ranges.push(braceEscape3(c3));
        i3++;
      }
      if (endPos < i3) {
        return ["", false, 0, false];
      }
      if (!ranges.length && !negs.length) {
        return ["$.", false, glob2.length - pos, true];
      }
      if (negs.length === 0 && ranges.length === 1 && /^\\?.$/.test(ranges[0]) && !negate) {
        const r3 = ranges[0].length === 2 ? ranges[0].slice(-1) : ranges[0];
        return [regexpEscape3(r3), false, endPos - pos, false];
      }
      const sranges = "[" + (negate ? "^" : "") + rangesToString3(ranges) + "]";
      const snegs = "[" + (negate ? "" : "^") + rangesToString3(negs) + "]";
      const comb = ranges.length && negs.length ? "(" + sranges + "|" + snegs + ")" : ranges.length ? sranges : snegs;
      return [comb, uflag, endPos - pos, true];
    }, "parseClass");
  }
});

// node_modules/minimatch/dist/esm/unescape.js
var unescape4;
var init_unescape3 = __esm({
  "node_modules/minimatch/dist/esm/unescape.js"() {
    unescape4 = /* @__PURE__ */ __name((s3, { windowsPathsNoEscape = false } = {}) => {
      return windowsPathsNoEscape ? s3.replace(/\[([^\/\\])\]/g, "$1") : s3.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
    }, "unescape");
  }
});

// node_modules/minimatch/dist/esm/ast.js
var types4, isExtglobType3, startNoTraversal3, startNoDot3, addPatternStart3, justDots3, reSpecials3, regExpEscape5, qmark5, star5, starNoEmpty3, AST3;
var init_ast3 = __esm({
  "node_modules/minimatch/dist/esm/ast.js"() {
    init_brace_expressions3();
    init_unescape3();
    types4 = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]);
    isExtglobType3 = /* @__PURE__ */ __name((c3) => types4.has(c3), "isExtglobType");
    startNoTraversal3 = "(?!(?:^|/)\\.\\.?(?:$|/))";
    startNoDot3 = "(?!\\.)";
    addPatternStart3 = /* @__PURE__ */ new Set(["[", "."]);
    justDots3 = /* @__PURE__ */ new Set(["..", "."]);
    reSpecials3 = new Set("().*{}+?[]^$\\!");
    regExpEscape5 = /* @__PURE__ */ __name((s3) => s3.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), "regExpEscape");
    qmark5 = "[^/]";
    star5 = qmark5 + "*?";
    starNoEmpty3 = qmark5 + "+?";
    AST3 = class _AST {
      static {
        __name(this, "AST");
      }
      type;
      #root;
      #hasMagic;
      #uflag = false;
      #parts = [];
      #parent;
      #parentIndex;
      #negs;
      #filledNegs = false;
      #options;
      #toString;
      // set to true if it's an extglob with no children
      // (which really means one child of '')
      #emptyExt = false;
      constructor(type, parent, options = {}) {
        this.type = type;
        if (type)
          this.#hasMagic = true;
        this.#parent = parent;
        this.#root = this.#parent ? this.#parent.#root : this;
        this.#options = this.#root === this ? options : this.#root.#options;
        this.#negs = this.#root === this ? [] : this.#root.#negs;
        if (type === "!" && !this.#root.#filledNegs)
          this.#negs.push(this);
        this.#parentIndex = this.#parent ? this.#parent.#parts.length : 0;
      }
      get hasMagic() {
        if (this.#hasMagic !== void 0)
          return this.#hasMagic;
        for (const p3 of this.#parts) {
          if (typeof p3 === "string")
            continue;
          if (p3.type || p3.hasMagic)
            return this.#hasMagic = true;
        }
        return this.#hasMagic;
      }
      // reconstructs the pattern
      toString() {
        if (this.#toString !== void 0)
          return this.#toString;
        if (!this.type) {
          return this.#toString = this.#parts.map((p3) => String(p3)).join("");
        } else {
          return this.#toString = this.type + "(" + this.#parts.map((p3) => String(p3)).join("|") + ")";
        }
      }
      #fillNegs() {
        if (this !== this.#root)
          throw new Error("should only call on root");
        if (this.#filledNegs)
          return this;
        this.toString();
        this.#filledNegs = true;
        let n3;
        while (n3 = this.#negs.pop()) {
          if (n3.type !== "!")
            continue;
          let p3 = n3;
          let pp = p3.#parent;
          while (pp) {
            for (let i3 = p3.#parentIndex + 1; !pp.type && i3 < pp.#parts.length; i3++) {
              for (const part of n3.#parts) {
                if (typeof part === "string") {
                  throw new Error("string part in extglob AST??");
                }
                part.copyIn(pp.#parts[i3]);
              }
            }
            p3 = pp;
            pp = p3.#parent;
          }
        }
        return this;
      }
      push(...parts) {
        for (const p3 of parts) {
          if (p3 === "")
            continue;
          if (typeof p3 !== "string" && !(p3 instanceof _AST && p3.#parent === this)) {
            throw new Error("invalid part: " + p3);
          }
          this.#parts.push(p3);
        }
      }
      toJSON() {
        const ret = this.type === null ? this.#parts.slice().map((p3) => typeof p3 === "string" ? p3 : p3.toJSON()) : [this.type, ...this.#parts.map((p3) => p3.toJSON())];
        if (this.isStart() && !this.type)
          ret.unshift([]);
        if (this.isEnd() && (this === this.#root || this.#root.#filledNegs && this.#parent?.type === "!")) {
          ret.push({});
        }
        return ret;
      }
      isStart() {
        if (this.#root === this)
          return true;
        if (!this.#parent?.isStart())
          return false;
        if (this.#parentIndex === 0)
          return true;
        const p3 = this.#parent;
        for (let i3 = 0; i3 < this.#parentIndex; i3++) {
          const pp = p3.#parts[i3];
          if (!(pp instanceof _AST && pp.type === "!")) {
            return false;
          }
        }
        return true;
      }
      isEnd() {
        if (this.#root === this)
          return true;
        if (this.#parent?.type === "!")
          return true;
        if (!this.#parent?.isEnd())
          return false;
        if (!this.type)
          return this.#parent?.isEnd();
        const pl = this.#parent ? this.#parent.#parts.length : 0;
        return this.#parentIndex === pl - 1;
      }
      copyIn(part) {
        if (typeof part === "string")
          this.push(part);
        else
          this.push(part.clone(this));
      }
      clone(parent) {
        const c3 = new _AST(this.type, parent);
        for (const p3 of this.#parts) {
          c3.copyIn(p3);
        }
        return c3;
      }
      static #parseAST(str, ast, pos, opt) {
        let escaping = false;
        let inBrace = false;
        let braceStart = -1;
        let braceNeg = false;
        if (ast.type === null) {
          let i4 = pos;
          let acc2 = "";
          while (i4 < str.length) {
            const c3 = str.charAt(i4++);
            if (escaping || c3 === "\\") {
              escaping = !escaping;
              acc2 += c3;
              continue;
            }
            if (inBrace) {
              if (i4 === braceStart + 1) {
                if (c3 === "^" || c3 === "!") {
                  braceNeg = true;
                }
              } else if (c3 === "]" && !(i4 === braceStart + 2 && braceNeg)) {
                inBrace = false;
              }
              acc2 += c3;
              continue;
            } else if (c3 === "[") {
              inBrace = true;
              braceStart = i4;
              braceNeg = false;
              acc2 += c3;
              continue;
            }
            if (!opt.noext && isExtglobType3(c3) && str.charAt(i4) === "(") {
              ast.push(acc2);
              acc2 = "";
              const ext4 = new _AST(c3, ast);
              i4 = _AST.#parseAST(str, ext4, i4, opt);
              ast.push(ext4);
              continue;
            }
            acc2 += c3;
          }
          ast.push(acc2);
          return i4;
        }
        let i3 = pos + 1;
        let part = new _AST(null, ast);
        const parts = [];
        let acc = "";
        while (i3 < str.length) {
          const c3 = str.charAt(i3++);
          if (escaping || c3 === "\\") {
            escaping = !escaping;
            acc += c3;
            continue;
          }
          if (inBrace) {
            if (i3 === braceStart + 1) {
              if (c3 === "^" || c3 === "!") {
                braceNeg = true;
              }
            } else if (c3 === "]" && !(i3 === braceStart + 2 && braceNeg)) {
              inBrace = false;
            }
            acc += c3;
            continue;
          } else if (c3 === "[") {
            inBrace = true;
            braceStart = i3;
            braceNeg = false;
            acc += c3;
            continue;
          }
          if (isExtglobType3(c3) && str.charAt(i3) === "(") {
            part.push(acc);
            acc = "";
            const ext4 = new _AST(c3, part);
            part.push(ext4);
            i3 = _AST.#parseAST(str, ext4, i3, opt);
            continue;
          }
          if (c3 === "|") {
            part.push(acc);
            acc = "";
            parts.push(part);
            part = new _AST(null, ast);
            continue;
          }
          if (c3 === ")") {
            if (acc === "" && ast.#parts.length === 0) {
              ast.#emptyExt = true;
            }
            part.push(acc);
            acc = "";
            ast.push(...parts, part);
            return i3;
          }
          acc += c3;
        }
        ast.type = null;
        ast.#hasMagic = void 0;
        ast.#parts = [str.substring(pos - 1)];
        return i3;
      }
      static fromGlob(pattern, options = {}) {
        const ast = new _AST(null, void 0, options);
        _AST.#parseAST(pattern, ast, 0, options);
        return ast;
      }
      // returns the regular expression if there's magic, or the unescaped
      // string if not.
      toMMPattern() {
        if (this !== this.#root)
          return this.#root.toMMPattern();
        const glob2 = this.toString();
        const [re, body, hasMagic2, uflag] = this.toRegExpSource();
        const anyMagic = hasMagic2 || this.#hasMagic || this.#options.nocase && !this.#options.nocaseMagicOnly && glob2.toUpperCase() !== glob2.toLowerCase();
        if (!anyMagic) {
          return body;
        }
        const flags = (this.#options.nocase ? "i" : "") + (uflag ? "u" : "");
        return Object.assign(new RegExp(`^${re}$`, flags), {
          _src: re,
          _glob: glob2
        });
      }
      get options() {
        return this.#options;
      }
      // returns the string match, the regexp source, whether there's magic
      // in the regexp (so a regular expression is required) and whether or
      // not the uflag is needed for the regular expression (for posix classes)
      // TODO: instead of injecting the start/end at this point, just return
      // the BODY of the regexp, along with the start/end portions suitable
      // for binding the start/end in either a joined full-path makeRe context
      // (where we bind to (^|/), or a standalone matchPart context (where
      // we bind to ^, and not /).  Otherwise slashes get duped!
      //
      // In part-matching mode, the start is:
      // - if not isStart: nothing
      // - if traversal possible, but not allowed: ^(?!\.\.?$)
      // - if dots allowed or not possible: ^
      // - if dots possible and not allowed: ^(?!\.)
      // end is:
      // - if not isEnd(): nothing
      // - else: $
      //
      // In full-path matching mode, we put the slash at the START of the
      // pattern, so start is:
      // - if first pattern: same as part-matching mode
      // - if not isStart(): nothing
      // - if traversal possible, but not allowed: /(?!\.\.?(?:$|/))
      // - if dots allowed or not possible: /
      // - if dots possible and not allowed: /(?!\.)
      // end is:
      // - if last pattern, same as part-matching mode
      // - else nothing
      //
      // Always put the (?:$|/) on negated tails, though, because that has to be
      // there to bind the end of the negated pattern portion, and it's easier to
      // just stick it in now rather than try to inject it later in the middle of
      // the pattern.
      //
      // We can just always return the same end, and leave it up to the caller
      // to know whether it's going to be used joined or in parts.
      // And, if the start is adjusted slightly, can do the same there:
      // - if not isStart: nothing
      // - if traversal possible, but not allowed: (?:/|^)(?!\.\.?$)
      // - if dots allowed or not possible: (?:/|^)
      // - if dots possible and not allowed: (?:/|^)(?!\.)
      //
      // But it's better to have a simpler binding without a conditional, for
      // performance, so probably better to return both start options.
      //
      // Then the caller just ignores the end if it's not the first pattern,
      // and the start always gets applied.
      //
      // But that's always going to be $ if it's the ending pattern, or nothing,
      // so the caller can just attach $ at the end of the pattern when building.
      //
      // So the todo is:
      // - better detect what kind of start is needed
      // - return both flavors of starting pattern
      // - attach $ at the end of the pattern when creating the actual RegExp
      //
      // Ah, but wait, no, that all only applies to the root when the first pattern
      // is not an extglob. If the first pattern IS an extglob, then we need all
      // that dot prevention biz to live in the extglob portions, because eg
      // +(*|.x*) can match .xy but not .yx.
      //
      // So, return the two flavors if it's #root and the first child is not an
      // AST, otherwise leave it to the child AST to handle it, and there,
      // use the (?:^|/) style of start binding.
      //
      // Even simplified further:
      // - Since the start for a join is eg /(?!\.) and the start for a part
      // is ^(?!\.), we can just prepend (?!\.) to the pattern (either root
      // or start or whatever) and prepend ^ or / at the Regexp construction.
      toRegExpSource(allowDot) {
        const dot = allowDot ?? !!this.#options.dot;
        if (this.#root === this)
          this.#fillNegs();
        if (!this.type) {
          const noEmpty = this.isStart() && this.isEnd();
          const src = this.#parts.map((p3) => {
            const [re, _3, hasMagic2, uflag] = typeof p3 === "string" ? _AST.#parseGlob(p3, this.#hasMagic, noEmpty) : p3.toRegExpSource(allowDot);
            this.#hasMagic = this.#hasMagic || hasMagic2;
            this.#uflag = this.#uflag || uflag;
            return re;
          }).join("");
          let start2 = "";
          if (this.isStart()) {
            if (typeof this.#parts[0] === "string") {
              const dotTravAllowed = this.#parts.length === 1 && justDots3.has(this.#parts[0]);
              if (!dotTravAllowed) {
                const aps = addPatternStart3;
                const needNoTrav = (
                  // dots are allowed, and the pattern starts with [ or .
                  dot && aps.has(src.charAt(0)) || // the pattern starts with \., and then [ or .
                  src.startsWith("\\.") && aps.has(src.charAt(2)) || // the pattern starts with \.\., and then [ or .
                  src.startsWith("\\.\\.") && aps.has(src.charAt(4))
                );
                const needNoDot = !dot && !allowDot && aps.has(src.charAt(0));
                start2 = needNoTrav ? startNoTraversal3 : needNoDot ? startNoDot3 : "";
              }
            }
          }
          let end = "";
          if (this.isEnd() && this.#root.#filledNegs && this.#parent?.type === "!") {
            end = "(?:$|\\/)";
          }
          const final2 = start2 + src + end;
          return [
            final2,
            unescape4(src),
            this.#hasMagic = !!this.#hasMagic,
            this.#uflag
          ];
        }
        const repeated = this.type === "*" || this.type === "+";
        const start = this.type === "!" ? "(?:(?!(?:" : "(?:";
        let body = this.#partsToRegExp(dot);
        if (this.isStart() && this.isEnd() && !body && this.type !== "!") {
          const s3 = this.toString();
          this.#parts = [s3];
          this.type = null;
          this.#hasMagic = void 0;
          return [s3, unescape4(this.toString()), false, false];
        }
        let bodyDotAllowed = !repeated || allowDot || dot || !startNoDot3 ? "" : this.#partsToRegExp(true);
        if (bodyDotAllowed === body) {
          bodyDotAllowed = "";
        }
        if (bodyDotAllowed) {
          body = `(?:${body})(?:${bodyDotAllowed})*?`;
        }
        let final = "";
        if (this.type === "!" && this.#emptyExt) {
          final = (this.isStart() && !dot ? startNoDot3 : "") + starNoEmpty3;
        } else {
          const close = this.type === "!" ? (
            // !() must match something,but !(x) can match ''
            "))" + (this.isStart() && !dot && !allowDot ? startNoDot3 : "") + star5 + ")"
          ) : this.type === "@" ? ")" : this.type === "?" ? ")?" : this.type === "+" && bodyDotAllowed ? ")" : this.type === "*" && bodyDotAllowed ? `)?` : `)${this.type}`;
          final = start + body + close;
        }
        return [
          final,
          unescape4(body),
          this.#hasMagic = !!this.#hasMagic,
          this.#uflag
        ];
      }
      #partsToRegExp(dot) {
        return this.#parts.map((p3) => {
          if (typeof p3 === "string") {
            throw new Error("string type in extglob ast??");
          }
          const [re, _3, _hasMagic, uflag] = p3.toRegExpSource(dot);
          this.#uflag = this.#uflag || uflag;
          return re;
        }).filter((p3) => !(this.isStart() && this.isEnd()) || !!p3).join("|");
      }
      static #parseGlob(glob2, hasMagic2, noEmpty = false) {
        let escaping = false;
        let re = "";
        let uflag = false;
        for (let i3 = 0; i3 < glob2.length; i3++) {
          const c3 = glob2.charAt(i3);
          if (escaping) {
            escaping = false;
            re += (reSpecials3.has(c3) ? "\\" : "") + c3;
            continue;
          }
          if (c3 === "\\") {
            if (i3 === glob2.length - 1) {
              re += "\\\\";
            } else {
              escaping = true;
            }
            continue;
          }
          if (c3 === "[") {
            const [src, needUflag, consumed, magic] = parseClass3(glob2, i3);
            if (consumed) {
              re += src;
              uflag = uflag || needUflag;
              i3 += consumed - 1;
              hasMagic2 = hasMagic2 || magic;
              continue;
            }
          }
          if (c3 === "*") {
            if (noEmpty && glob2 === "*")
              re += starNoEmpty3;
            else
              re += star5;
            hasMagic2 = true;
            continue;
          }
          if (c3 === "?") {
            re += qmark5;
            hasMagic2 = true;
            continue;
          }
          re += regExpEscape5(c3);
        }
        return [re, unescape4(glob2), !!hasMagic2, uflag];
      }
    };
  }
});

// node_modules/minimatch/dist/esm/escape.js
var escape3;
var init_escape3 = __esm({
  "node_modules/minimatch/dist/esm/escape.js"() {
    escape3 = /* @__PURE__ */ __name((s3, { windowsPathsNoEscape = false } = {}) => {
      return windowsPathsNoEscape ? s3.replace(/[?*()[\]]/g, "[$&]") : s3.replace(/[?*()[\]\\]/g, "\\$&");
    }, "escape");
  }
});

// node_modules/minimatch/dist/esm/index.js
var minimatch3, starDotExtRE3, starDotExtTest3, starDotExtTestDot3, starDotExtTestNocase3, starDotExtTestNocaseDot3, starDotStarRE3, starDotStarTest3, starDotStarTestDot3, dotStarRE3, dotStarTest3, starRE3, starTest3, starTestDot3, qmarksRE3, qmarksTestNocase3, qmarksTestNocaseDot3, qmarksTestDot3, qmarksTest3, qmarksTestNoExt3, qmarksTestNoExtDot3, defaultPlatform5, path31, sep4, GLOBSTAR3, qmark6, star6, twoStarDot3, twoStarNoDot3, filter3, ext3, defaults3, braceExpand3, makeRe3, match3, globMagic3, regExpEscape6, Minimatch3;
var init_esm11 = __esm({
  "node_modules/minimatch/dist/esm/index.js"() {
    init_esm2();
    init_assert_valid_pattern3();
    init_ast3();
    init_escape3();
    init_unescape3();
    init_ast3();
    init_escape3();
    init_unescape3();
    minimatch3 = /* @__PURE__ */ __name((p3, pattern, options = {}) => {
      assertValidPattern3(pattern);
      if (!options.nocomment && pattern.charAt(0) === "#") {
        return false;
      }
      return new Minimatch3(pattern, options).match(p3);
    }, "minimatch");
    starDotExtRE3 = /^\*+([^+@!?\*\[\(]*)$/;
    starDotExtTest3 = /* @__PURE__ */ __name((ext4) => (f3) => !f3.startsWith(".") && f3.endsWith(ext4), "starDotExtTest");
    starDotExtTestDot3 = /* @__PURE__ */ __name((ext4) => (f3) => f3.endsWith(ext4), "starDotExtTestDot");
    starDotExtTestNocase3 = /* @__PURE__ */ __name((ext4) => {
      ext4 = ext4.toLowerCase();
      return (f3) => !f3.startsWith(".") && f3.toLowerCase().endsWith(ext4);
    }, "starDotExtTestNocase");
    starDotExtTestNocaseDot3 = /* @__PURE__ */ __name((ext4) => {
      ext4 = ext4.toLowerCase();
      return (f3) => f3.toLowerCase().endsWith(ext4);
    }, "starDotExtTestNocaseDot");
    starDotStarRE3 = /^\*+\.\*+$/;
    starDotStarTest3 = /* @__PURE__ */ __name((f3) => !f3.startsWith(".") && f3.includes("."), "starDotStarTest");
    starDotStarTestDot3 = /* @__PURE__ */ __name((f3) => f3 !== "." && f3 !== ".." && f3.includes("."), "starDotStarTestDot");
    dotStarRE3 = /^\.\*+$/;
    dotStarTest3 = /* @__PURE__ */ __name((f3) => f3 !== "." && f3 !== ".." && f3.startsWith("."), "dotStarTest");
    starRE3 = /^\*+$/;
    starTest3 = /* @__PURE__ */ __name((f3) => f3.length !== 0 && !f3.startsWith("."), "starTest");
    starTestDot3 = /* @__PURE__ */ __name((f3) => f3.length !== 0 && f3 !== "." && f3 !== "..", "starTestDot");
    qmarksRE3 = /^\?+([^+@!?\*\[\(]*)?$/;
    qmarksTestNocase3 = /* @__PURE__ */ __name(([$0, ext4 = ""]) => {
      const noext = qmarksTestNoExt3([$0]);
      if (!ext4)
        return noext;
      ext4 = ext4.toLowerCase();
      return (f3) => noext(f3) && f3.toLowerCase().endsWith(ext4);
    }, "qmarksTestNocase");
    qmarksTestNocaseDot3 = /* @__PURE__ */ __name(([$0, ext4 = ""]) => {
      const noext = qmarksTestNoExtDot3([$0]);
      if (!ext4)
        return noext;
      ext4 = ext4.toLowerCase();
      return (f3) => noext(f3) && f3.toLowerCase().endsWith(ext4);
    }, "qmarksTestNocaseDot");
    qmarksTestDot3 = /* @__PURE__ */ __name(([$0, ext4 = ""]) => {
      const noext = qmarksTestNoExtDot3([$0]);
      return !ext4 ? noext : (f3) => noext(f3) && f3.endsWith(ext4);
    }, "qmarksTestDot");
    qmarksTest3 = /* @__PURE__ */ __name(([$0, ext4 = ""]) => {
      const noext = qmarksTestNoExt3([$0]);
      return !ext4 ? noext : (f3) => noext(f3) && f3.endsWith(ext4);
    }, "qmarksTest");
    qmarksTestNoExt3 = /* @__PURE__ */ __name(([$0]) => {
      const len = $0.length;
      return (f3) => f3.length === len && !f3.startsWith(".");
    }, "qmarksTestNoExt");
    qmarksTestNoExtDot3 = /* @__PURE__ */ __name(([$0]) => {
      const len = $0.length;
      return (f3) => f3.length === len && f3 !== "." && f3 !== "..";
    }, "qmarksTestNoExtDot");
    defaultPlatform5 = typeof process === "object" && process ? typeof process.env === "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";
    path31 = {
      win32: { sep: "\\" },
      posix: { sep: "/" }
    };
    sep4 = defaultPlatform5 === "win32" ? path31.win32.sep : path31.posix.sep;
    minimatch3.sep = sep4;
    GLOBSTAR3 = Symbol("globstar **");
    minimatch3.GLOBSTAR = GLOBSTAR3;
    qmark6 = "[^/]";
    star6 = qmark6 + "*?";
    twoStarDot3 = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";
    twoStarNoDot3 = "(?:(?!(?:\\/|^)\\.).)*?";
    filter3 = /* @__PURE__ */ __name((pattern, options = {}) => (p3) => minimatch3(p3, pattern, options), "filter");
    minimatch3.filter = filter3;
    ext3 = /* @__PURE__ */ __name((a3, b3 = {}) => Object.assign({}, a3, b3), "ext");
    defaults3 = /* @__PURE__ */ __name((def) => {
      if (!def || typeof def !== "object" || !Object.keys(def).length) {
        return minimatch3;
      }
      const orig = minimatch3;
      const m3 = /* @__PURE__ */ __name((p3, pattern, options = {}) => orig(p3, pattern, ext3(def, options)), "m");
      return Object.assign(m3, {
        Minimatch: class Minimatch extends orig.Minimatch {
          static {
            __name(this, "Minimatch");
          }
          constructor(pattern, options = {}) {
            super(pattern, ext3(def, options));
          }
          static defaults(options) {
            return orig.defaults(ext3(def, options)).Minimatch;
          }
        },
        AST: class AST extends orig.AST {
          static {
            __name(this, "AST");
          }
          /* c8 ignore start */
          constructor(type, parent, options = {}) {
            super(type, parent, ext3(def, options));
          }
          /* c8 ignore stop */
          static fromGlob(pattern, options = {}) {
            return orig.AST.fromGlob(pattern, ext3(def, options));
          }
        },
        unescape: /* @__PURE__ */ __name((s3, options = {}) => orig.unescape(s3, ext3(def, options)), "unescape"),
        escape: /* @__PURE__ */ __name((s3, options = {}) => orig.escape(s3, ext3(def, options)), "escape"),
        filter: /* @__PURE__ */ __name((pattern, options = {}) => orig.filter(pattern, ext3(def, options)), "filter"),
        defaults: /* @__PURE__ */ __name((options) => orig.defaults(ext3(def, options)), "defaults"),
        makeRe: /* @__PURE__ */ __name((pattern, options = {}) => orig.makeRe(pattern, ext3(def, options)), "makeRe"),
        braceExpand: /* @__PURE__ */ __name((pattern, options = {}) => orig.braceExpand(pattern, ext3(def, options)), "braceExpand"),
        match: /* @__PURE__ */ __name((list2, pattern, options = {}) => orig.match(list2, pattern, ext3(def, options)), "match"),
        sep: orig.sep,
        GLOBSTAR: GLOBSTAR3
      });
    }, "defaults");
    minimatch3.defaults = defaults3;
    braceExpand3 = /* @__PURE__ */ __name((pattern, options = {}) => {
      assertValidPattern3(pattern);
      if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) {
        return [pattern];
      }
      return expand(pattern);
    }, "braceExpand");
    minimatch3.braceExpand = braceExpand3;
    makeRe3 = /* @__PURE__ */ __name((pattern, options = {}) => new Minimatch3(pattern, options).makeRe(), "makeRe");
    minimatch3.makeRe = makeRe3;
    match3 = /* @__PURE__ */ __name((list2, pattern, options = {}) => {
      const mm = new Minimatch3(pattern, options);
      list2 = list2.filter((f3) => mm.match(f3));
      if (mm.options.nonull && !list2.length) {
        list2.push(pattern);
      }
      return list2;
    }, "match");
    minimatch3.match = match3;
    globMagic3 = /[?*]|[+@!]\(.*?\)|\[|\]/;
    regExpEscape6 = /* @__PURE__ */ __name((s3) => s3.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), "regExpEscape");
    Minimatch3 = class {
      static {
        __name(this, "Minimatch");
      }
      options;
      set;
      pattern;
      windowsPathsNoEscape;
      nonegate;
      negate;
      comment;
      empty;
      preserveMultipleSlashes;
      partial;
      globSet;
      globParts;
      nocase;
      isWindows;
      platform;
      windowsNoMagicRoot;
      regexp;
      constructor(pattern, options = {}) {
        assertValidPattern3(pattern);
        options = options || {};
        this.options = options;
        this.pattern = pattern;
        this.platform = options.platform || defaultPlatform5;
        this.isWindows = this.platform === "win32";
        this.windowsPathsNoEscape = !!options.windowsPathsNoEscape || options.allowWindowsEscape === false;
        if (this.windowsPathsNoEscape) {
          this.pattern = this.pattern.replace(/\\/g, "/");
        }
        this.preserveMultipleSlashes = !!options.preserveMultipleSlashes;
        this.regexp = null;
        this.negate = false;
        this.nonegate = !!options.nonegate;
        this.comment = false;
        this.empty = false;
        this.partial = !!options.partial;
        this.nocase = !!this.options.nocase;
        this.windowsNoMagicRoot = options.windowsNoMagicRoot !== void 0 ? options.windowsNoMagicRoot : !!(this.isWindows && this.nocase);
        this.globSet = [];
        this.globParts = [];
        this.set = [];
        this.make();
      }
      hasMagic() {
        if (this.options.magicalBraces && this.set.length > 1) {
          return true;
        }
        for (const pattern of this.set) {
          for (const part of pattern) {
            if (typeof part !== "string")
              return true;
          }
        }
        return false;
      }
      debug(..._3) {
      }
      make() {
        const pattern = this.pattern;
        const options = this.options;
        if (!options.nocomment && pattern.charAt(0) === "#") {
          this.comment = true;
          return;
        }
        if (!pattern) {
          this.empty = true;
          return;
        }
        this.parseNegate();
        this.globSet = [...new Set(this.braceExpand())];
        if (options.debug) {
          this.debug = (...args) => console.error(...args);
        }
        this.debug(this.pattern, this.globSet);
        const rawGlobParts = this.globSet.map((s3) => this.slashSplit(s3));
        this.globParts = this.preprocess(rawGlobParts);
        this.debug(this.pattern, this.globParts);
        let set = this.globParts.map((s3, _3, __) => {
          if (this.isWindows && this.windowsNoMagicRoot) {
            const isUNC = s3[0] === "" && s3[1] === "" && (s3[2] === "?" || !globMagic3.test(s3[2])) && !globMagic3.test(s3[3]);
            const isDrive = /^[a-z]:/i.test(s3[0]);
            if (isUNC) {
              return [...s3.slice(0, 4), ...s3.slice(4).map((ss) => this.parse(ss))];
            } else if (isDrive) {
              return [s3[0], ...s3.slice(1).map((ss) => this.parse(ss))];
            }
          }
          return s3.map((ss) => this.parse(ss));
        });
        this.debug(this.pattern, set);
        this.set = set.filter((s3) => s3.indexOf(false) === -1);
        if (this.isWindows) {
          for (let i3 = 0; i3 < this.set.length; i3++) {
            const p3 = this.set[i3];
            if (p3[0] === "" && p3[1] === "" && this.globParts[i3][2] === "?" && typeof p3[3] === "string" && /^[a-z]:$/i.test(p3[3])) {
              p3[2] = "?";
            }
          }
        }
        this.debug(this.pattern, this.set);
      }
      // various transforms to equivalent pattern sets that are
      // faster to process in a filesystem walk.  The goal is to
      // eliminate what we can, and push all ** patterns as far
      // to the right as possible, even if it increases the number
      // of patterns that we have to process.
      preprocess(globParts) {
        if (this.options.noglobstar) {
          for (let i3 = 0; i3 < globParts.length; i3++) {
            for (let j3 = 0; j3 < globParts[i3].length; j3++) {
              if (globParts[i3][j3] === "**") {
                globParts[i3][j3] = "*";
              }
            }
          }
        }
        const { optimizationLevel = 1 } = this.options;
        if (optimizationLevel >= 2) {
          globParts = this.firstPhasePreProcess(globParts);
          globParts = this.secondPhasePreProcess(globParts);
        } else if (optimizationLevel >= 1) {
          globParts = this.levelOneOptimize(globParts);
        } else {
          globParts = this.adjascentGlobstarOptimize(globParts);
        }
        return globParts;
      }
      // just get rid of adjascent ** portions
      adjascentGlobstarOptimize(globParts) {
        return globParts.map((parts) => {
          let gs = -1;
          while (-1 !== (gs = parts.indexOf("**", gs + 1))) {
            let i3 = gs;
            while (parts[i3 + 1] === "**") {
              i3++;
            }
            if (i3 !== gs) {
              parts.splice(gs, i3 - gs);
            }
          }
          return parts;
        });
      }
      // get rid of adjascent ** and resolve .. portions
      levelOneOptimize(globParts) {
        return globParts.map((parts) => {
          parts = parts.reduce((set, part) => {
            const prev = set[set.length - 1];
            if (part === "**" && prev === "**") {
              return set;
            }
            if (part === "..") {
              if (prev && prev !== ".." && prev !== "." && prev !== "**") {
                set.pop();
                return set;
              }
            }
            set.push(part);
            return set;
          }, []);
          return parts.length === 0 ? [""] : parts;
        });
      }
      levelTwoFileOptimize(parts) {
        if (!Array.isArray(parts)) {
          parts = this.slashSplit(parts);
        }
        let didSomething = false;
        do {
          didSomething = false;
          if (!this.preserveMultipleSlashes) {
            for (let i3 = 1; i3 < parts.length - 1; i3++) {
              const p3 = parts[i3];
              if (i3 === 1 && p3 === "" && parts[0] === "")
                continue;
              if (p3 === "." || p3 === "") {
                didSomething = true;
                parts.splice(i3, 1);
                i3--;
              }
            }
            if (parts[0] === "." && parts.length === 2 && (parts[1] === "." || parts[1] === "")) {
              didSomething = true;
              parts.pop();
            }
          }
          let dd = 0;
          while (-1 !== (dd = parts.indexOf("..", dd + 1))) {
            const p3 = parts[dd - 1];
            if (p3 && p3 !== "." && p3 !== ".." && p3 !== "**") {
              didSomething = true;
              parts.splice(dd - 1, 2);
              dd -= 2;
            }
          }
        } while (didSomething);
        return parts.length === 0 ? [""] : parts;
      }
      // First phase: single-pattern processing
      // <pre> is 1 or more portions
      // <rest> is 1 or more portions
      // <p> is any portion other than ., .., '', or **
      // <e> is . or ''
      //
      // **/.. is *brutal* for filesystem walking performance, because
      // it effectively resets the recursive walk each time it occurs,
      // and ** cannot be reduced out by a .. pattern part like a regexp
      // or most strings (other than .., ., and '') can be.
      //
      // <pre>/**/../<p>/<p>/<rest> -> {<pre>/../<p>/<p>/<rest>,<pre>/**/<p>/<p>/<rest>}
      // <pre>/<e>/<rest> -> <pre>/<rest>
      // <pre>/<p>/../<rest> -> <pre>/<rest>
      // **/**/<rest> -> **/<rest>
      //
      // **/*/<rest> -> */**/<rest> <== not valid because ** doesn't follow
      // this WOULD be allowed if ** did follow symlinks, or * didn't
      firstPhasePreProcess(globParts) {
        let didSomething = false;
        do {
          didSomething = false;
          for (let parts of globParts) {
            let gs = -1;
            while (-1 !== (gs = parts.indexOf("**", gs + 1))) {
              let gss = gs;
              while (parts[gss + 1] === "**") {
                gss++;
              }
              if (gss > gs) {
                parts.splice(gs + 1, gss - gs);
              }
              let next = parts[gs + 1];
              const p3 = parts[gs + 2];
              const p22 = parts[gs + 3];
              if (next !== "..")
                continue;
              if (!p3 || p3 === "." || p3 === ".." || !p22 || p22 === "." || p22 === "..") {
                continue;
              }
              didSomething = true;
              parts.splice(gs, 1);
              const other = parts.slice(0);
              other[gs] = "**";
              globParts.push(other);
              gs--;
            }
            if (!this.preserveMultipleSlashes) {
              for (let i3 = 1; i3 < parts.length - 1; i3++) {
                const p3 = parts[i3];
                if (i3 === 1 && p3 === "" && parts[0] === "")
                  continue;
                if (p3 === "." || p3 === "") {
                  didSomething = true;
                  parts.splice(i3, 1);
                  i3--;
                }
              }
              if (parts[0] === "." && parts.length === 2 && (parts[1] === "." || parts[1] === "")) {
                didSomething = true;
                parts.pop();
              }
            }
            let dd = 0;
            while (-1 !== (dd = parts.indexOf("..", dd + 1))) {
              const p3 = parts[dd - 1];
              if (p3 && p3 !== "." && p3 !== ".." && p3 !== "**") {
                didSomething = true;
                const needDot = dd === 1 && parts[dd + 1] === "**";
                const splin = needDot ? ["."] : [];
                parts.splice(dd - 1, 2, ...splin);
                if (parts.length === 0)
                  parts.push("");
                dd -= 2;
              }
            }
          }
        } while (didSomething);
        return globParts;
      }
      // second phase: multi-pattern dedupes
      // {<pre>/*/<rest>,<pre>/<p>/<rest>} -> <pre>/*/<rest>
      // {<pre>/<rest>,<pre>/<rest>} -> <pre>/<rest>
      // {<pre>/**/<rest>,<pre>/<rest>} -> <pre>/**/<rest>
      //
      // {<pre>/**/<rest>,<pre>/**/<p>/<rest>} -> <pre>/**/<rest>
      // ^-- not valid because ** doens't follow symlinks
      secondPhasePreProcess(globParts) {
        for (let i3 = 0; i3 < globParts.length - 1; i3++) {
          for (let j3 = i3 + 1; j3 < globParts.length; j3++) {
            const matched = this.partsMatch(globParts[i3], globParts[j3], !this.preserveMultipleSlashes);
            if (matched) {
              globParts[i3] = [];
              globParts[j3] = matched;
              break;
            }
          }
        }
        return globParts.filter((gs) => gs.length);
      }
      partsMatch(a3, b3, emptyGSMatch = false) {
        let ai = 0;
        let bi = 0;
        let result2 = [];
        let which = "";
        while (ai < a3.length && bi < b3.length) {
          if (a3[ai] === b3[bi]) {
            result2.push(which === "b" ? b3[bi] : a3[ai]);
            ai++;
            bi++;
          } else if (emptyGSMatch && a3[ai] === "**" && b3[bi] === a3[ai + 1]) {
            result2.push(a3[ai]);
            ai++;
          } else if (emptyGSMatch && b3[bi] === "**" && a3[ai] === b3[bi + 1]) {
            result2.push(b3[bi]);
            bi++;
          } else if (a3[ai] === "*" && b3[bi] && (this.options.dot || !b3[bi].startsWith(".")) && b3[bi] !== "**") {
            if (which === "b")
              return false;
            which = "a";
            result2.push(a3[ai]);
            ai++;
            bi++;
          } else if (b3[bi] === "*" && a3[ai] && (this.options.dot || !a3[ai].startsWith(".")) && a3[ai] !== "**") {
            if (which === "a")
              return false;
            which = "b";
            result2.push(b3[bi]);
            ai++;
            bi++;
          } else {
            return false;
          }
        }
        return a3.length === b3.length && result2;
      }
      parseNegate() {
        if (this.nonegate)
          return;
        const pattern = this.pattern;
        let negate = false;
        let negateOffset = 0;
        for (let i3 = 0; i3 < pattern.length && pattern.charAt(i3) === "!"; i3++) {
          negate = !negate;
          negateOffset++;
        }
        if (negateOffset)
          this.pattern = pattern.slice(negateOffset);
        this.negate = negate;
      }
      // set partial to true to test if, for example,
      // "/a/b" matches the start of "/*/b/*/d"
      // Partial means, if you run out of file before you run
      // out of pattern, then that's fine, as long as all
      // the parts match.
      matchOne(file, pattern, partial = false) {
        const options = this.options;
        if (this.isWindows) {
          const fileDrive = typeof file[0] === "string" && /^[a-z]:$/i.test(file[0]);
          const fileUNC = !fileDrive && file[0] === "" && file[1] === "" && file[2] === "?" && /^[a-z]:$/i.test(file[3]);
          const patternDrive = typeof pattern[0] === "string" && /^[a-z]:$/i.test(pattern[0]);
          const patternUNC = !patternDrive && pattern[0] === "" && pattern[1] === "" && pattern[2] === "?" && typeof pattern[3] === "string" && /^[a-z]:$/i.test(pattern[3]);
          const fdi = fileUNC ? 3 : fileDrive ? 0 : void 0;
          const pdi = patternUNC ? 3 : patternDrive ? 0 : void 0;
          if (typeof fdi === "number" && typeof pdi === "number") {
            const [fd, pd] = [file[fdi], pattern[pdi]];
            if (fd.toLowerCase() === pd.toLowerCase()) {
              pattern[pdi] = fd;
              if (pdi > fdi) {
                pattern = pattern.slice(pdi);
              } else if (fdi > pdi) {
                file = file.slice(fdi);
              }
            }
          }
        }
        const { optimizationLevel = 1 } = this.options;
        if (optimizationLevel >= 2) {
          file = this.levelTwoFileOptimize(file);
        }
        this.debug("matchOne", this, { file, pattern });
        this.debug("matchOne", file.length, pattern.length);
        for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
          this.debug("matchOne loop");
          var p3 = pattern[pi];
          var f3 = file[fi];
          this.debug(pattern, p3, f3);
          if (p3 === false) {
            return false;
          }
          if (p3 === GLOBSTAR3) {
            this.debug("GLOBSTAR", [pattern, p3, f3]);
            var fr = fi;
            var pr = pi + 1;
            if (pr === pl) {
              this.debug("** at the end");
              for (; fi < fl; fi++) {
                if (file[fi] === "." || file[fi] === ".." || !options.dot && file[fi].charAt(0) === ".")
                  return false;
              }
              return true;
            }
            while (fr < fl) {
              var swallowee = file[fr];
              this.debug("\nglobstar while", file, fr, pattern, pr, swallowee);
              if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {
                this.debug("globstar found match!", fr, fl, swallowee);
                return true;
              } else {
                if (swallowee === "." || swallowee === ".." || !options.dot && swallowee.charAt(0) === ".") {
                  this.debug("dot detected!", file, fr, pattern, pr);
                  break;
                }
                this.debug("globstar swallow a segment, and continue");
                fr++;
              }
            }
            if (partial) {
              this.debug("\n>>> no match, partial?", file, fr, pattern, pr);
              if (fr === fl) {
                return true;
              }
            }
            return false;
          }
          let hit;
          if (typeof p3 === "string") {
            hit = f3 === p3;
            this.debug("string match", p3, f3, hit);
          } else {
            hit = p3.test(f3);
            this.debug("pattern match", p3, f3, hit);
          }
          if (!hit)
            return false;
        }
        if (fi === fl && pi === pl) {
          return true;
        } else if (fi === fl) {
          return partial;
        } else if (pi === pl) {
          return fi === fl - 1 && file[fi] === "";
        } else {
          throw new Error("wtf?");
        }
      }
      braceExpand() {
        return braceExpand3(this.pattern, this.options);
      }
      parse(pattern) {
        assertValidPattern3(pattern);
        const options = this.options;
        if (pattern === "**")
          return GLOBSTAR3;
        if (pattern === "")
          return "";
        let m3;
        let fastTest = null;
        if (m3 = pattern.match(starRE3)) {
          fastTest = options.dot ? starTestDot3 : starTest3;
        } else if (m3 = pattern.match(starDotExtRE3)) {
          fastTest = (options.nocase ? options.dot ? starDotExtTestNocaseDot3 : starDotExtTestNocase3 : options.dot ? starDotExtTestDot3 : starDotExtTest3)(m3[1]);
        } else if (m3 = pattern.match(qmarksRE3)) {
          fastTest = (options.nocase ? options.dot ? qmarksTestNocaseDot3 : qmarksTestNocase3 : options.dot ? qmarksTestDot3 : qmarksTest3)(m3);
        } else if (m3 = pattern.match(starDotStarRE3)) {
          fastTest = options.dot ? starDotStarTestDot3 : starDotStarTest3;
        } else if (m3 = pattern.match(dotStarRE3)) {
          fastTest = dotStarTest3;
        }
        const re = AST3.fromGlob(pattern, this.options).toMMPattern();
        if (fastTest && typeof re === "object") {
          Reflect.defineProperty(re, "test", { value: fastTest });
        }
        return re;
      }
      makeRe() {
        if (this.regexp || this.regexp === false)
          return this.regexp;
        const set = this.set;
        if (!set.length) {
          this.regexp = false;
          return this.regexp;
        }
        const options = this.options;
        const twoStar = options.noglobstar ? star6 : options.dot ? twoStarDot3 : twoStarNoDot3;
        const flags = new Set(options.nocase ? ["i"] : []);
        let re = set.map((pattern) => {
          const pp = pattern.map((p3) => {
            if (p3 instanceof RegExp) {
              for (const f3 of p3.flags.split(""))
                flags.add(f3);
            }
            return typeof p3 === "string" ? regExpEscape6(p3) : p3 === GLOBSTAR3 ? GLOBSTAR3 : p3._src;
          });
          pp.forEach((p3, i3) => {
            const next = pp[i3 + 1];
            const prev = pp[i3 - 1];
            if (p3 !== GLOBSTAR3 || prev === GLOBSTAR3) {
              return;
            }
            if (prev === void 0) {
              if (next !== void 0 && next !== GLOBSTAR3) {
                pp[i3 + 1] = "(?:\\/|" + twoStar + "\\/)?" + next;
              } else {
                pp[i3] = twoStar;
              }
            } else if (next === void 0) {
              pp[i3 - 1] = prev + "(?:\\/|" + twoStar + ")?";
            } else if (next !== GLOBSTAR3) {
              pp[i3 - 1] = prev + "(?:\\/|\\/" + twoStar + "\\/)" + next;
              pp[i3 + 1] = GLOBSTAR3;
            }
          });
          return pp.filter((p3) => p3 !== GLOBSTAR3).join("/");
        }).join("|");
        const [open, close] = set.length > 1 ? ["(?:", ")"] : ["", ""];
        re = "^" + open + re + close + "$";
        if (this.negate)
          re = "^(?!" + re + ").+$";
        try {
          this.regexp = new RegExp(re, [...flags].join(""));
        } catch (ex) {
          this.regexp = false;
        }
        return this.regexp;
      }
      slashSplit(p3) {
        if (this.preserveMultipleSlashes) {
          return p3.split("/");
        } else if (this.isWindows && /^\/\/[^\/]+/.test(p3)) {
          return ["", ...p3.split(/\/+/)];
        } else {
          return p3.split(/\/+/);
        }
      }
      match(f3, partial = this.partial) {
        this.debug("match", f3, this.pattern);
        if (this.comment) {
          return false;
        }
        if (this.empty) {
          return f3 === "";
        }
        if (f3 === "/" && partial) {
          return true;
        }
        const options = this.options;
        if (this.isWindows) {
          f3 = f3.split("\\").join("/");
        }
        const ff = this.slashSplit(f3);
        this.debug(this.pattern, "split", ff);
        const set = this.set;
        this.debug(this.pattern, "set", set);
        let filename = ff[ff.length - 1];
        if (!filename) {
          for (let i3 = ff.length - 2; !filename && i3 >= 0; i3--) {
            filename = ff[i3];
          }
        }
        for (let i3 = 0; i3 < set.length; i3++) {
          const pattern = set[i3];
          let file = ff;
          if (options.matchBase && pattern.length === 1) {
            file = [filename];
          }
          const hit = this.matchOne(file, pattern, partial);
          if (hit) {
            if (options.flipNegate) {
              return true;
            }
            return !this.negate;
          }
        }
        if (options.flipNegate) {
          return false;
        }
        return this.negate;
      }
      static defaults(def) {
        return minimatch3.defaults(def).Minimatch;
      }
    };
    minimatch3.AST = AST3;
    minimatch3.Minimatch = Minimatch3;
    minimatch3.escape = escape3;
    minimatch3.unescape = unescape4;
  }
});

// lib/cxapp/cloud-assembly.ts
var import_toolkit_lib6, semver4, CloudAssembly4;
var init_cloud_assembly4 = __esm({
  "lib/cxapp/cloud-assembly.ts"() {
    "use strict";
    import_toolkit_lib6 = __toESM(require_lib12());
    init_esm11();
    semver4 = __toESM(require_semver4());
    init_cloud_assembly3();
    init_util8();
    CloudAssembly4 = class _CloudAssembly extends BaseStackAssembly {
      static {
        __name(this, "CloudAssembly");
      }
      async selectStacks(selector, options) {
        const asm = this.assembly;
        const topLevelStacks = asm.stacks;
        const stacks = semver4.major(asm.version) < 10 ? asm.stacks : asm.stacksRecursively;
        const allTopLevel = selector.allTopLevel ?? false;
        const patterns = _CloudAssembly.sanitizePatterns(selector.patterns);
        if (stacks.length === 0) {
          if (options.ignoreNoStacks) {
            return new StackCollection(this, []);
          }
          throw new import_toolkit_lib6.ToolkitError("This app contains no stacks");
        }
        if (allTopLevel) {
          return this.selectTopLevelStacks(stacks, topLevelStacks, options.extend);
        } else if (patterns.length > 0) {
          return this.selectMatchingStacks(stacks, patterns, options.extend);
        } else {
          return this.selectDefaultStacks(stacks, topLevelStacks, options.defaultBehavior);
        }
      }
      async selectTopLevelStacks(stacks, topLevelStacks, extend = 0 /* None */) {
        if (topLevelStacks.length > 0) {
          return this.extendStacks(topLevelStacks, stacks, extend);
        } else {
          throw new import_toolkit_lib6.ToolkitError('No stack found in the main cloud assembly. Use "list" to print manifest');
        }
      }
      async selectMatchingStacks(stacks, patterns, extend = 0 /* None */) {
        const matchingPattern = /* @__PURE__ */ __name((pattern) => (stack) => minimatch3(stack.hierarchicalId, pattern), "matchingPattern");
        const matchedStacks = flatten2(patterns.map((pattern) => stacks.filter(matchingPattern(pattern))));
        return this.extendStacks(matchedStacks, stacks, extend);
      }
      selectDefaultStacks(stacks, topLevelStacks, defaultSelection) {
        switch (defaultSelection) {
          case "main" /* MainAssembly */:
            return new StackCollection(this, topLevelStacks);
          case "all" /* AllStacks */:
            return new StackCollection(this, stacks);
          case "none" /* None */:
            return new StackCollection(this, []);
          case "single" /* OnlySingle */:
            if (topLevelStacks.length === 1) {
              return new StackCollection(this, topLevelStacks);
            } else {
              throw new import_toolkit_lib6.ToolkitError(`Since this app includes more than a single stack, specify which stacks to use (wildcards are supported) or specify \`--all\`
Stacks: ${stacks.map((x3) => x3.hierarchicalId).join(" \xB7 ")}`);
            }
          default:
            throw new import_toolkit_lib6.ToolkitError(`invalid default behavior: ${defaultSelection}`);
        }
      }
    };
  }
});

// lib/api/plugin.ts
var init_plugin3 = __esm({
  "lib/api/plugin.ts"() {
    "use strict";
    init_plugin2();
  }
});

// lib/cli/singleton-plugin-host.ts
var GLOBAL_PLUGIN_HOST;
var init_singleton_plugin_host = __esm({
  "lib/cli/singleton-plugin-host.ts"() {
    "use strict";
    init_plugin3();
    GLOBAL_PLUGIN_HOST = new PluginHost();
  }
});

// lib/cli/telemetry/error.ts
function cdkCliErrorName(name) {
  if (!isKnownErrorName(name)) {
    return "UnknownError" /* UNKNOWN_ERROR */;
  }
  return name;
}
function isKnownErrorName(name) {
  return Object.values(ErrorName).includes(name);
}
var init_error = __esm({
  "lib/cli/telemetry/error.ts"() {
    "use strict";
    init_schema5();
    __name(cdkCliErrorName, "cdkCliErrorName");
    __name(isKnownErrorName, "isKnownErrorName");
  }
});

// lib/context-providers.ts
var init_context_providers2 = __esm({
  "lib/context-providers.ts"() {
    "use strict";
    init_context_providers();
  }
});

// lib/cxapp/cloud-executable.ts
function missingContextKeys2(missing) {
  return new Set((missing || []).map((m3) => m3.key));
}
function setsEqual(a3, b3) {
  if (a3.size !== b3.size) {
    return false;
  }
  for (const x3 of a3) {
    if (!b3.has(x3)) {
      return false;
    }
  }
  return true;
}
var import_toolkit_lib7, CloudExecutable;
var init_cloud_executable = __esm({
  "lib/cxapp/cloud-executable.ts"() {
    "use strict";
    import_toolkit_lib7 = __toESM(require_lib12());
    init_cloud_assembly4();
    init_api_private();
    init_singleton_plugin_host();
    init_error();
    init_messages2();
    init_context_providers2();
    CloudExecutable = class {
      constructor(props) {
        this.props = props;
      }
      static {
        __name(this, "CloudExecutable");
      }
      async produce() {
        const synthesisResult = await this.synthesize(true);
        return new BorrowedAssembly(synthesisResult.assembly);
      }
      /**
       * Return whether there is an app command from the configuration
       */
      get hasApp() {
        return !!this.props.configuration.settings.get(["app"]);
      }
      /**
       * Synthesize a set of stacks.
       *
       * @param cacheCloudAssembly - whether to cache the Cloud Assembly after it has been first synthesized.
       *   This is 'true' by default, and only set to 'false' for 'cdk watch',
       *   which needs to re-synthesize the Assembly each time it detects a change to the project files
       */
      async synthesize(cacheCloudAssembly = true) {
        if (!this._cloudAssembly || !cacheCloudAssembly) {
          this._cloudAssembly = await this.doSynthesize();
        }
        return this._cloudAssembly;
      }
      async doSynthesize() {
        let previouslyMissingKeys;
        const synthSpan = await this.props.ioHelper.span(CLI_PRIVATE_SPAN.SYNTH_ASSEMBLY).begin({});
        let error5;
        try {
          while (true) {
            const assembly = await this.props.synthesizer(this.props.sdkProvider, this.props.configuration);
            if (assembly.manifest.missing && assembly.manifest.missing.length > 0) {
              const missingKeys = missingContextKeys2(assembly.manifest.missing);
              if (!this.canLookup) {
                throw new import_toolkit_lib7.ToolkitError(
                  `Context lookups have been disabled. Make sure all necessary context is already in 'cdk.context.json' by running 'cdk synth' on a machine with sufficient AWS credentials and committing the result. Missing context keys: '${Array.from(missingKeys).join(", ")}'`
                );
              }
              let tryLookup = true;
              if (previouslyMissingKeys && setsEqual(missingKeys, previouslyMissingKeys)) {
                await this.props.ioHelper.defaults.debug("Not making progress trying to resolve environmental context. Giving up.");
                tryLookup = false;
              }
              previouslyMissingKeys = missingKeys;
              if (tryLookup) {
                await this.props.ioHelper.defaults.debug("Some context information is missing. Fetching...");
                const updates = await provideContextValues(
                  assembly.manifest.missing,
                  this.props.sdkProvider,
                  GLOBAL_PLUGIN_HOST,
                  this.props.ioHelper
                );
                for (const [key, value] of Object.entries(updates)) {
                  this.props.configuration.context.set(key, value);
                }
                await this.props.configuration.saveContext();
                continue;
              }
            }
            return new CloudAssembly4(assembly, this.props.ioHelper);
          }
        } catch (e3) {
          error5 = {
            name: cdkCliErrorName(e3.name)
          };
          throw e3;
        } finally {
          await synthSpan.end({ error: error5 });
        }
      }
      get canLookup() {
        return !!(this.props.configuration.settings.get(["lookups"]) ?? true);
      }
    };
    __name(missingContextKeys2, "missingContextKeys");
    __name(setsEqual, "setsEqual");
  }
});

// lib/cxapp/environments.ts
function looksLikeGlob(environment) {
  return environment.indexOf("*") > -1;
}
async function globEnvironmentsFromStacks(stacks, environmentGlobs, sdk) {
  if (environmentGlobs.length === 0) {
    return [];
  }
  const availableEnvironments = new Array();
  for (const stack of stacks.stackArtifacts) {
    const actual = await sdk.resolveEnvironment(stack.environment);
    availableEnvironments.push(actual);
  }
  const environments = distinct(availableEnvironments).filter((env2) => environmentGlobs.find((glob2) => minimatch3(env2.name, glob2)));
  if (environments.length === 0) {
    const globs = JSON.stringify(environmentGlobs);
    const envList = availableEnvironments.length > 0 ? availableEnvironments.map((env2) => env2.name).join(", ") : "<none>";
    throw new import_toolkit_lib8.ToolkitError(`No environments were found when selecting across ${globs} (available: ${envList})`);
  }
  return environments;
}
function environmentsFromDescriptors2(envSpecs) {
  const ret = new Array();
  for (const spec of envSpecs) {
    const parts = spec.replace(/^aws:\/\//, "").split("/");
    if (parts.length !== 2) {
      throw new import_toolkit_lib8.ToolkitError(`Expected environment name in format 'aws://<account>/<region>', got: ${spec}`);
    }
    ret.push({
      name: spec,
      account: parts[0],
      region: parts[1]
    });
  }
  return ret;
}
function distinct(envs) {
  const unique = {};
  for (const env2 of envs) {
    const id = `${env2.account || "default"}/${env2.region || "default"}`;
    if (id in unique) {
      continue;
    }
    unique[id] = env2;
  }
  return Object.values(unique);
}
var import_toolkit_lib8;
var init_environments = __esm({
  "lib/cxapp/environments.ts"() {
    "use strict";
    import_toolkit_lib8 = __toESM(require_lib12());
    init_esm11();
    __name(looksLikeGlob, "looksLikeGlob");
    __name(globEnvironmentsFromStacks, "globEnvironmentsFromStacks");
    __name(environmentsFromDescriptors2, "environmentsFromDescriptors");
    __name(distinct, "distinct");
  }
});

// lib/cxapp/exec.ts
async function execProgram(aws, ioHelper, config) {
  const debugFn = /* @__PURE__ */ __name((msg) => ioHelper.defaults.debug(msg), "debugFn");
  const params = synthParametersFromSettings(config.settings);
  const context = {
    ...config.context.all,
    ...params.context
  };
  await debugFn((0, import_util67.format)("context:", context));
  const env2 = noUndefined3({
    // Versioning, outdir, default account and region
    ...await prepareDefaultEnvironment(aws, debugFn),
    // Environment variables derived from settings
    ...params.env
  });
  const build = config.settings.get(["build"]);
  if (build) {
    await exec5(build);
  }
  const app = config.settings.get(["app"]);
  if (!app) {
    throw new import_toolkit_lib9.ToolkitError(`--app is required either in command-line, in ${PROJECT_CONFIG} or in ${USER_DEFAULTS}`);
  }
  if (await fs34.pathExists(app) && (await fs34.stat(app)).isDirectory()) {
    await debugFn("--app points to a cloud assembly, so we bypass synth");
    const lock = await new RWLock(app).acquireRead();
    return { assembly: createAssembly(app), lock };
  }
  const commandLine = await guessExecutable(app, debugFn);
  const outdir = config.settings.get(["output"]);
  if (!outdir) {
    throw new import_toolkit_lib9.ToolkitError("unexpected: --output is required");
  }
  if (typeof outdir !== "string") {
    throw new import_toolkit_lib9.ToolkitError(`--output takes a string, got ${JSON.stringify(outdir)}`);
  }
  try {
    await fs34.mkdirp(outdir);
  } catch (error5) {
    throw new import_toolkit_lib9.ToolkitError(`Could not create output directory ${outdir} (${error5.message})`);
  }
  await debugFn(`outdir: ${outdir}`);
  env2[cxapi9.OUTDIR_ENV] = outdir;
  const writerLock = await new RWLock(outdir).acquireWrite();
  env2[cxapi9.CLI_ASM_VERSION_ENV] = cxschema7.Manifest.version();
  env2[cxapi9.CLI_VERSION_ENV] = versionNumber2();
  await debugFn((0, import_util67.format)("env:", env2));
  const cleanupTemp = writeContextToEnv(env2, context, "add-process-env-later");
  try {
    await exec5(commandLine.join(" "));
    const assembly = createAssembly(outdir);
    return { assembly, lock: await writerLock.convertToReaderLock() };
  } catch (e3) {
    await writerLock.release();
    throw e3;
  } finally {
    await cleanupTemp();
  }
  async function exec5(commandAndArgs) {
    try {
      await new Promise((ok, fail) => {
        const proc2 = childProcess.spawn(commandAndArgs, {
          stdio: ["ignore", "inherit", "inherit"],
          detached: false,
          shell: true,
          env: {
            ...process.env,
            ...env2
          }
        });
        proc2.on("error", fail);
        proc2.on("exit", (code) => {
          if (code === 0) {
            return ok();
          } else {
            return fail(new import_toolkit_lib9.ToolkitError(`${commandAndArgs}: Subprocess exited with error ${code}`));
          }
        });
      });
    } catch (e3) {
      await debugFn(`failed command: ${commandAndArgs}`);
      throw e3;
    }
  }
  __name(exec5, "exec");
}
function createAssembly(appDir) {
  try {
    return new cxapi9.CloudAssembly(appDir, {
      // We sort as we deploy
      topoSort: false
    });
  } catch (error5) {
    if (error5.message.includes(cxschema7.VERSION_MISMATCH)) {
      throw new import_toolkit_lib9.ToolkitError(`This CDK CLI is not compatible with the CDK library used by your application. Please upgrade the CLI to the latest version.
(${error5.message})`);
    }
    throw error5;
  }
}
function noUndefined3(xs) {
  return Object.fromEntries(Object.entries(xs).filter(([_3, v6]) => v6 !== void 0));
}
var childProcess, import_util67, cxschema7, cxapi9, import_toolkit_lib9, fs34;
var init_exec2 = __esm({
  "lib/cxapp/exec.ts"() {
    "use strict";
    childProcess = __toESM(require("child_process"));
    import_util67 = require("util");
    cxschema7 = __toESM(require_lib2());
    cxapi9 = __toESM(require_lib3());
    import_toolkit_lib9 = __toESM(require_lib12());
    fs34 = __toESM(require_lib13());
    init_api();
    init_user_configuration();
    init_version2();
    __name(execProgram, "execProgram");
    __name(createAssembly, "createAssembly");
    __name(noUndefined3, "noUndefined");
  }
});

// lib/cxapp/index.ts
var init_cxapp = __esm({
  "lib/cxapp/index.ts"() {
    "use strict";
    init_cloud_assembly4();
    init_cloud_executable();
    init_environments();
    init_exec2();
  }
});

// lib/commands/list-stacks.ts
async function listStacks(toolkit, options) {
  const assembly = await toolkit.assembly();
  const stacks = await assembly.selectStacks({
    patterns: options.selectors
  }, {
    extend: 1 /* Upstream */,
    defaultBehavior: "all" /* AllStacks */
  });
  return stacks.withDependencies().map((stack) => ({
    id: stack.id,
    name: stack.name,
    environment: stack.environment,
    dependencies: stack.dependencies
  }));
}
var init_list_stacks = __esm({
  "lib/commands/list-stacks.ts"() {
    "use strict";
    init_cxapp();
    __name(listStacks, "listStacks");
  }
});

// ../../node_modules/cdk-from-cfn/index.js
var require_cdk_from_cfn = __commonJS({
  "../../node_modules/cdk-from-cfn/index.js"(exports2, module2) {
    var imports = {};
    imports["__wbindgen_placeholder__"] = module2.exports;
    var wasm;
    var { TextDecoder: TextDecoder2, TextEncoder: TextEncoder2 } = require("util");
    var cachedTextDecoder = new TextDecoder2("utf-8", { ignoreBOM: true, fatal: true });
    cachedTextDecoder.decode();
    var cachedUint8ArrayMemory0 = null;
    function getUint8ArrayMemory0() {
      if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
        cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
      }
      return cachedUint8ArrayMemory0;
    }
    __name(getUint8ArrayMemory0, "getUint8ArrayMemory0");
    function getStringFromWasm0(ptr, len) {
      ptr = ptr >>> 0;
      return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
    }
    __name(getStringFromWasm0, "getStringFromWasm0");
    var WASM_VECTOR_LEN = 0;
    var cachedTextEncoder = new TextEncoder2("utf-8");
    var encodeString = typeof cachedTextEncoder.encodeInto === "function" ? function(arg, view) {
      return cachedTextEncoder.encodeInto(arg, view);
    } : function(arg, view) {
      const buf = cachedTextEncoder.encode(arg);
      view.set(buf);
      return {
        read: arg.length,
        written: buf.length
      };
    };
    function passStringToWasm0(arg, malloc, realloc) {
      if (realloc === void 0) {
        const buf = cachedTextEncoder.encode(arg);
        const ptr2 = malloc(buf.length, 1) >>> 0;
        getUint8ArrayMemory0().subarray(ptr2, ptr2 + buf.length).set(buf);
        WASM_VECTOR_LEN = buf.length;
        return ptr2;
      }
      let len = arg.length;
      let ptr = malloc(len, 1) >>> 0;
      const mem = getUint8ArrayMemory0();
      let offset = 0;
      for (; offset < len; offset++) {
        const code = arg.charCodeAt(offset);
        if (code > 127) break;
        mem[ptr + offset] = code;
      }
      if (offset !== len) {
        if (offset !== 0) {
          arg = arg.slice(offset);
        }
        ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
        const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
        const ret = encodeString(arg, view);
        offset += ret.written;
        ptr = realloc(ptr, len, offset, 1) >>> 0;
      }
      WASM_VECTOR_LEN = offset;
      return ptr;
    }
    __name(passStringToWasm0, "passStringToWasm0");
    var cachedDataViewMemory0 = null;
    function getDataViewMemory0() {
      if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || cachedDataViewMemory0.buffer.detached === void 0 && cachedDataViewMemory0.buffer !== wasm.memory.buffer) {
        cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
      }
      return cachedDataViewMemory0;
    }
    __name(getDataViewMemory0, "getDataViewMemory0");
    function getArrayJsValueFromWasm0(ptr, len) {
      ptr = ptr >>> 0;
      const mem = getDataViewMemory0();
      const result2 = [];
      for (let i3 = ptr; i3 < ptr + 4 * len; i3 += 4) {
        result2.push(wasm.__wbindgen_export_3.get(mem.getUint32(i3, true)));
      }
      wasm.__externref_drop_slice(ptr, len);
      return result2;
    }
    __name(getArrayJsValueFromWasm0, "getArrayJsValueFromWasm0");
    module2.exports.supported_languages = function() {
      const ret = wasm.supported_languages();
      var v12 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
      wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
      return v12;
    };
    function takeFromExternrefTable0(idx) {
      const value = wasm.__wbindgen_export_3.get(idx);
      wasm.__externref_table_dealloc(idx);
      return value;
    }
    __name(takeFromExternrefTable0, "takeFromExternrefTable0");
    module2.exports.transmute = function(template, language, stack_name) {
      let deferred5_0;
      let deferred5_1;
      try {
        const ptr0 = passStringToWasm0(template, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
        const len0 = WASM_VECTOR_LEN;
        const ptr1 = passStringToWasm0(language, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
        const len1 = WASM_VECTOR_LEN;
        const ptr2 = passStringToWasm0(stack_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
        const len2 = WASM_VECTOR_LEN;
        const ret = wasm.transmute(ptr0, len0, ptr1, len1, ptr2, len2);
        var ptr4 = ret[0];
        var len4 = ret[1];
        if (ret[3]) {
          ptr4 = 0;
          len4 = 0;
          throw takeFromExternrefTable0(ret[2]);
        }
        deferred5_0 = ptr4;
        deferred5_1 = len4;
        return getStringFromWasm0(ptr4, len4);
      } finally {
        wasm.__wbindgen_free(deferred5_0, deferred5_1, 1);
      }
    };
    module2.exports.wasm_init = function() {
      wasm.wasm_init();
    };
    module2.exports.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
      let deferred0_0;
      let deferred0_1;
      try {
        deferred0_0 = arg0;
        deferred0_1 = arg1;
        console.error(getStringFromWasm0(arg0, arg1));
      } finally {
        wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
      }
    };
    module2.exports.__wbg_new_8a6f238a6ece86ea = function() {
      const ret = new Error();
      return ret;
    };
    module2.exports.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
      const ret = arg1.stack;
      const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
      const len1 = WASM_VECTOR_LEN;
      getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
      getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
    };
    module2.exports.__wbindgen_error_new = function(arg0, arg1) {
      const ret = new Error(getStringFromWasm0(arg0, arg1));
      return ret;
    };
    module2.exports.__wbindgen_init_externref_table = function() {
      const table3 = wasm.__wbindgen_export_3;
      const offset = table3.grow(4);
      table3.set(0, void 0);
      table3.set(offset + 0, void 0);
      table3.set(offset + 1, null);
      table3.set(offset + 2, true);
      table3.set(offset + 3, false);
      ;
    };
    module2.exports.__wbindgen_string_new = function(arg0, arg1) {
      const ret = getStringFromWasm0(arg0, arg1);
      return ret;
    };
    var path38 = require("path").join(__dirname, "index_bg.wasm");
    var bytes = require("fs").readFileSync(path38);
    var wasmModule = new WebAssembly.Module(bytes);
    var wasmInstance = new WebAssembly.Instance(wasmModule, imports);
    wasm = wasmInstance.exports;
    module2.exports.__wasm = wasm;
    wasm.__wbindgen_start();
  }
});

// lib/commands/init/os.ts
async function shell2(ioHelper, command2) {
  const commandLine = renderCommandLine2(command2);
  await ioHelper.defaults.debug(`Executing ${chalk25.blue(commandLine)}`);
  const child = child_process3.spawn(command2[0], renderArguments(command2.slice(1)), {
    // Need this for Windows where we want .cmd and .bat to be found as well.
    shell: true,
    stdio: ["ignore", "pipe", "inherit"]
  });
  return new Promise((resolve13, reject) => {
    const stdout2 = new Array();
    child.stdout.on("data", (chunk) => {
      process.stdout.write(chunk);
      stdout2.push(chunk);
    });
    child.once("error", reject);
    child.once("exit", (code) => {
      if (code === 0) {
        resolve13(Buffer.from(stdout2).toString("utf-8"));
      } else {
        reject(new import_toolkit_lib10.ToolkitError(`${commandLine} exited with error code ${code}`));
      }
    });
  });
}
function renderCommandLine2(cmd) {
  return renderArguments(cmd).join(" ");
}
function renderArguments(cmd) {
  if (process.platform !== "win32") {
    return doRender2(cmd, hasAnyChars2(" ", "\\", "!", '"', "'", "&", "$"), posixEscape2);
  } else {
    return doRender2(cmd, hasAnyChars2(" ", '"', "&", "^", "%"), windowsEscape2);
  }
}
function doRender2(cmd, needsEscaping, doEscape) {
  return cmd.map((x3) => needsEscaping(x3) ? doEscape(x3) : x3);
}
function hasAnyChars2(...chars) {
  return (str) => {
    return chars.some((c3) => str.indexOf(c3) !== -1);
  };
}
function posixEscape2(x3) {
  x3 = x3.replace(/'/g, `'"'"'`);
  return `'${x3}'`;
}
function windowsEscape2(x3) {
  x3 = `"${x3}"`;
  const shellMeta = /* @__PURE__ */ new Set(['"', "&", "^", "%"]);
  return x3.split("").map((c3) => shellMeta.has(x3) ? "^" + c3 : c3).join("");
}
var child_process3, import_toolkit_lib10, chalk25;
var init_os = __esm({
  "lib/commands/init/os.ts"() {
    "use strict";
    child_process3 = __toESM(require("child_process"));
    import_toolkit_lib10 = __toESM(require_lib12());
    chalk25 = __toESM(require_source());
    __name(shell2, "shell");
    __name(renderCommandLine2, "renderCommandLine");
    __name(renderArguments, "renderArguments");
    __name(doRender2, "doRender");
    __name(hasAnyChars2, "hasAnyChars");
    __name(posixEscape2, "posixEscape");
    __name(windowsEscape2, "windowsEscape");
  }
});

// lib/commands/init/init-hooks.ts
async function invokeBuiltinHooks(ioHelper, target, context) {
  switch (target.language) {
    case "csharp":
      if (["app", "sample-app"].includes(target.templateName)) {
        return dotnetAddProject(ioHelper, target.targetDirectory, context);
      }
      break;
    case "fsharp":
      if (["app", "sample-app"].includes(target.templateName)) {
        return dotnetAddProject(ioHelper, target.targetDirectory, context, "fsproj");
      }
      break;
    case "python":
      await context.substitutePlaceholdersIn("requirements.txt");
      break;
    case "java":
      await context.substitutePlaceholdersIn("pom.xml");
      break;
    case "javascript":
    case "typescript":
      await context.substitutePlaceholdersIn("package.json");
  }
}
async function dotnetAddProject(ioHelper, targetDirectory, context, ext4 = "csproj") {
  const pname = context.placeholder("name.PascalCased");
  const slnPath = path32.join(targetDirectory, "src", `${pname}.sln`);
  const csprojPath = path32.join(targetDirectory, "src", pname, `${pname}.${ext4}`);
  const MAX_ATTEMPTS = 3;
  for (let attempt = 1; ; attempt++) {
    try {
      await shell2(ioHelper, ["dotnet", "sln", slnPath, "add", csprojPath]);
      return;
    } catch (e3) {
      if (attempt === MAX_ATTEMPTS) {
        throw new import_toolkit_lib11.ToolkitError(`Could not add project ${pname}.${ext4} to solution ${pname}.sln. ${formatErrorMessage(e3)}`);
      }
      await new Promise((resolve13) => setTimeout(resolve13, 1e3));
    }
  }
}
var path32, import_toolkit_lib11;
var init_init_hooks = __esm({
  "lib/commands/init/init-hooks.ts"() {
    "use strict";
    path32 = __toESM(require("path"));
    import_toolkit_lib11 = __toESM(require_lib12());
    init_os();
    init_util8();
    __name(invokeBuiltinHooks, "invokeBuiltinHooks");
    __name(dotnetAddProject, "dotnetAddProject");
  }
});

// lib/commands/language.ts
function getLanguageFromAlias(alias) {
  return SUPPORTED_LANGUAGES.find((l3) => l3.alias === alias || l3.name === alias)?.name;
}
var SUPPORTED_LANGUAGES;
var init_language = __esm({
  "lib/commands/language.ts"() {
    "use strict";
    SUPPORTED_LANGUAGES = [
      { name: "csharp", alias: "cs" },
      { name: "fsharp", alias: "fs" },
      { name: "go", alias: "go" },
      { name: "java", alias: "java" },
      { name: "javascript", alias: "js" },
      { name: "python", alias: "py" },
      { name: "typescript", alias: "ts" }
    ];
    __name(getLanguageFromAlias, "getLanguageFromAlias");
  }
});

// ../../node_modules/camelcase/index.js
var require_camelcase = __commonJS({
  "../../node_modules/camelcase/index.js"(exports2, module2) {
    "use strict";
    var UPPERCASE = /[\p{Lu}]/u;
    var LOWERCASE = /[\p{Ll}]/u;
    var LEADING_CAPITAL = /^[\p{Lu}](?![\p{Lu}])/gu;
    var IDENTIFIER = /([\p{Alpha}\p{N}_]|$)/u;
    var SEPARATORS = /[_.\- ]+/;
    var LEADING_SEPARATORS = new RegExp("^" + SEPARATORS.source);
    var SEPARATORS_AND_IDENTIFIER = new RegExp(SEPARATORS.source + IDENTIFIER.source, "gu");
    var NUMBERS_AND_IDENTIFIER = new RegExp("\\d+" + IDENTIFIER.source, "gu");
    var preserveCamelCase = /* @__PURE__ */ __name((string, toLowerCase, toUpperCase) => {
      let isLastCharLower = false;
      let isLastCharUpper = false;
      let isLastLastCharUpper = false;
      for (let i3 = 0; i3 < string.length; i3++) {
        const character = string[i3];
        if (isLastCharLower && UPPERCASE.test(character)) {
          string = string.slice(0, i3) + "-" + string.slice(i3);
          isLastCharLower = false;
          isLastLastCharUpper = isLastCharUpper;
          isLastCharUpper = true;
          i3++;
        } else if (isLastCharUpper && isLastLastCharUpper && LOWERCASE.test(character)) {
          string = string.slice(0, i3 - 1) + "-" + string.slice(i3 - 1);
          isLastLastCharUpper = isLastCharUpper;
          isLastCharUpper = false;
          isLastCharLower = true;
        } else {
          isLastCharLower = toLowerCase(character) === character && toUpperCase(character) !== character;
          isLastLastCharUpper = isLastCharUpper;
          isLastCharUpper = toUpperCase(character) === character && toLowerCase(character) !== character;
        }
      }
      return string;
    }, "preserveCamelCase");
    var preserveConsecutiveUppercase = /* @__PURE__ */ __name((input, toLowerCase) => {
      LEADING_CAPITAL.lastIndex = 0;
      return input.replace(LEADING_CAPITAL, (m1) => toLowerCase(m1));
    }, "preserveConsecutiveUppercase");
    var postProcess = /* @__PURE__ */ __name((input, toUpperCase) => {
      SEPARATORS_AND_IDENTIFIER.lastIndex = 0;
      NUMBERS_AND_IDENTIFIER.lastIndex = 0;
      return input.replace(SEPARATORS_AND_IDENTIFIER, (_3, identifier) => toUpperCase(identifier)).replace(NUMBERS_AND_IDENTIFIER, (m3) => toUpperCase(m3));
    }, "postProcess");
    var camelCase3 = /* @__PURE__ */ __name((input, options) => {
      if (!(typeof input === "string" || Array.isArray(input))) {
        throw new TypeError("Expected the input to be `string | string[]`");
      }
      options = {
        pascalCase: false,
        preserveConsecutiveUppercase: false,
        ...options
      };
      if (Array.isArray(input)) {
        input = input.map((x3) => x3.trim()).filter((x3) => x3.length).join("-");
      } else {
        input = input.trim();
      }
      if (input.length === 0) {
        return "";
      }
      const toLowerCase = options.locale === false ? (string) => string.toLowerCase() : (string) => string.toLocaleLowerCase(options.locale);
      const toUpperCase = options.locale === false ? (string) => string.toUpperCase() : (string) => string.toLocaleUpperCase(options.locale);
      if (input.length === 1) {
        return options.pascalCase ? toUpperCase(input) : toLowerCase(input);
      }
      const hasUpperCase = input !== toLowerCase(input);
      if (hasUpperCase) {
        input = preserveCamelCase(input, toLowerCase, toUpperCase);
      }
      input = input.replace(LEADING_SEPARATORS, "");
      if (options.preserveConsecutiveUppercase) {
        input = preserveConsecutiveUppercase(input, toLowerCase);
      } else {
        input = toLowerCase(input);
      }
      if (options.pascalCase) {
        input = toUpperCase(input.charAt(0)) + input.slice(1);
      }
      return postProcess(input, toUpperCase);
    }, "camelCase");
    module2.exports = camelCase3;
    module2.exports.default = camelCase3;
  }
});

// node_modules/decamelize/index.js
var require_decamelize = __commonJS({
  "node_modules/decamelize/index.js"(exports2, module2) {
    "use strict";
    var handlePreserveConsecutiveUppercase = /* @__PURE__ */ __name((decamelized, separator) => {
      decamelized = decamelized.replace(
        /((?<![\p{Uppercase_Letter}\d])[\p{Uppercase_Letter}\d](?![\p{Uppercase_Letter}\d]))/gu,
        ($0) => {
          return $0.toLowerCase();
        }
      );
      return decamelized.replace(
        new RegExp("(\\p{Uppercase_Letter}+)(\\p{Uppercase_Letter}\\p{Lowercase_Letter}+)", "gu"),
        (_3, $1, $2) => {
          return $1 + separator + $2.toLowerCase();
        }
      );
    }, "handlePreserveConsecutiveUppercase");
    module2.exports = (text, {
      separator = "_",
      preserveConsecutiveUppercase = false
    } = {}) => {
      if (!(typeof text === "string" && typeof separator === "string")) {
        throw new TypeError(
          "The `text` and `separator` arguments should be of type `string`"
        );
      }
      if (text.length < 2) {
        return preserveConsecutiveUppercase ? text : text.toLowerCase();
      }
      const replacement = `$1${separator}$2`;
      const decamelized = text.replace(
        new RegExp("([\\p{Lowercase_Letter}\\d])(\\p{Uppercase_Letter})", "gu"),
        replacement
      );
      if (preserveConsecutiveUppercase) {
        return handlePreserveConsecutiveUppercase(decamelized, separator);
      }
      return decamelized.replace(
        new RegExp("(\\p{Uppercase_Letter})(\\p{Uppercase_Letter}\\p{Lowercase_Letter}+)", "gu"),
        replacement
      ).toLowerCase();
    };
  }
});

// lib/commands/init/init.ts
async function cliInit(options) {
  const ioHelper = options.ioHelper;
  const canUseNetwork = options.canUseNetwork ?? true;
  const generateOnly = options.generateOnly ?? false;
  const workDir = options.workDir ?? process.cwd();
  if (!options.fromPath && !options.type && !options.language) {
    await printAvailableTemplates(ioHelper);
    return;
  }
  let template;
  if (options.fromPath) {
    template = await loadLocalTemplate(options.fromPath, options.templatePath);
  } else {
    template = await loadBuiltinTemplate(ioHelper, options.type, options.language);
  }
  const language = await resolveLanguage(ioHelper, template, options.language, options.type);
  await initializeProject(
    ioHelper,
    template,
    language,
    canUseNetwork,
    generateOnly,
    workDir,
    options.stackName,
    options.migrate,
    options.libVersion
  );
}
async function loadLocalTemplate(fromPath, templatePath) {
  try {
    let actualTemplatePath = fromPath;
    if (templatePath) {
      actualTemplatePath = path33.join(fromPath, templatePath);
      if (!await fs35.pathExists(actualTemplatePath)) {
        throw new import_toolkit_lib12.ToolkitError(`Template path does not exist: ${actualTemplatePath}`);
      }
    }
    const template = await InitTemplate.fromPath(actualTemplatePath);
    if (template.languages.length === 0) {
      if (!templatePath) {
        const availableTemplates = await findPotentialTemplates(fromPath);
        if (availableTemplates.length > 0) {
          throw new import_toolkit_lib12.ToolkitError(
            "Use --template-path to specify which template to use."
          );
        }
      }
      throw new import_toolkit_lib12.ToolkitError("Custom template must contain at least one language directory");
    }
    return template;
  } catch (error5) {
    const displayPath = templatePath ? `${fromPath}/${templatePath}` : fromPath;
    throw new import_toolkit_lib12.ToolkitError(`Failed to load template from path: ${displayPath}. ${error5.message}`);
  }
}
async function loadBuiltinTemplate(ioHelper, type, language) {
  const templateType = type || "default";
  const template = (await availableInitTemplates()).find((t3) => t3.hasName(templateType));
  if (!template) {
    await printAvailableTemplates(ioHelper, language);
    throw new import_toolkit_lib12.ToolkitError(`Unknown init template: ${templateType}`);
  }
  return template;
}
async function resolveLanguage(ioHelper, template, requestedLanguage, type) {
  return (async () => {
    if (requestedLanguage) {
      return requestedLanguage;
    }
    if (template.languages.length === 1) {
      const templateLanguage = template.languages[0];
      if (template.templateType !== "custom" /* CUSTOM */) {
        await ioHelper.defaults.warn(
          `No --language was provided, but '${type || template.name}' supports only '${templateLanguage}', so defaulting to --language=${templateLanguage}`
        );
      }
      return templateLanguage;
    }
    await ioHelper.defaults.info(
      `Available languages for ${chalk26.green(type || template.name)}: ${template.languages.map((l3) => chalk26.blue(l3)).join(", ")}`
    );
    throw new import_toolkit_lib12.ToolkitError("No language was selected");
  })();
}
async function findPotentialTemplates(repositoryPath) {
  try {
    const entries = await fs35.readdir(repositoryPath, { withFileTypes: true });
    const potentialTemplates = [];
    for (const entry of entries) {
      if (entry.isDirectory() && !entry.name.startsWith(".")) {
        const templatePath = path33.join(repositoryPath, entry.name);
        const languages = await getLanguageDirectories(templatePath);
        if (languages.length > 0) {
          potentialTemplates.push(entry.name);
        }
      }
    }
    return potentialTemplates;
  } catch (error5) {
    return [];
  }
}
async function getLanguageDirectories(templatePath) {
  const cdkSupportedLanguages = ["typescript", "javascript", "python", "java", "csharp", "fsharp", "go"];
  const languageExtensions = {
    typescript: [".ts", ".js"],
    javascript: [".js"],
    python: [".py"],
    java: [".java"],
    csharp: [".cs"],
    fsharp: [".fs"],
    go: [".go"]
  };
  try {
    const entries = await fs35.readdir(templatePath, { withFileTypes: true });
    const languageValidationPromises = entries.filter((directoryEntry) => directoryEntry.isDirectory() && cdkSupportedLanguages.includes(directoryEntry.name)).map(async (directoryEntry) => {
      const languageDirectoryPath = path33.join(templatePath, directoryEntry.name);
      try {
        const hasValidLanguageFiles = await hasLanguageFiles(languageDirectoryPath, languageExtensions[directoryEntry.name]);
        return hasValidLanguageFiles ? directoryEntry.name : null;
      } catch (error5) {
        throw new import_toolkit_lib12.ToolkitError(`Cannot read language directory '${directoryEntry.name}': ${error5.message}`);
      }
    });
    const validationResults = await Promise.all(languageValidationPromises);
    return validationResults.filter((languageName) => languageName !== null);
  } catch (error5) {
    throw new import_toolkit_lib12.ToolkitError(`Cannot read template directory '${templatePath}': ${error5.message}`);
  }
}
async function hasLanguageFiles(directoryPath, extensions) {
  const dirsToCheck = [directoryPath];
  while (dirsToCheck.length > 0) {
    const currentDir = dirsToCheck.pop();
    try {
      const entries = await fs35.readdir(currentDir, { withFileTypes: true });
      for (const entry of entries) {
        if (entry.isFile() && extensions.some((ext4) => entry.name.endsWith(ext4))) {
          return true;
        } else if (entry.isDirectory()) {
          dirsToCheck.push(path33.join(currentDir, entry.name));
        }
      }
    } catch (error5) {
      throw error5;
    }
  }
  return false;
}
function pythonExecutable() {
  let python = "python3";
  if (process.platform === "win32") {
    python = "python";
  }
  return python;
}
function expandPlaceholders(template, language, project) {
  const cdkVersion = project.versions["aws-cdk-lib"];
  const cdkCliVersion = project.versions["aws-cdk"];
  let constructsVersion = project.versions.constructs;
  switch (language) {
    case "java":
    case "csharp":
    case "fsharp":
      constructsVersion = rangeFromSemver(constructsVersion, "bracket");
      break;
    case "python":
      constructsVersion = rangeFromSemver(constructsVersion, "pep");
      break;
  }
  return template.replace(/%name%/g, project.name).replace(/%stackname%/, project.stackName ?? "%name.PascalCased%Stack").replace(
    /%PascalNameSpace%/,
    project.stackName ? camelCase(project.stackName + "Stack", { pascalCase: true }) : "%name.PascalCased%"
  ).replace(
    /%PascalStackProps%/,
    project.stackName ? camelCase(project.stackName, { pascalCase: true }) + "StackProps" : "StackProps"
  ).replace(/%name\.camelCased%/g, camelCase(project.name)).replace(/%name\.PascalCased%/g, camelCase(project.name, { pascalCase: true })).replace(/%cdk-version%/g, cdkVersion).replace(/%cdk-cli-version%/g, cdkCliVersion).replace(/%constructs-version%/g, constructsVersion).replace(/%cdk-home%/g, cdkHomeDir()).replace(/%name\.PythonModule%/g, project.name.replace(/-/g, "_")).replace(/%python-executable%/g, pythonExecutable()).replace(/%name\.StackName%/g, project.name.replace(/[^A-Za-z0-9-]/g, "-"));
}
async function availableInitTemplates() {
  try {
    const templatesDir = path33.join(cliRootDir(), "lib", "init-templates");
    const templateNames = await listDirectory(templatesDir);
    const templatePromises = templateNames.map(
      (templateName) => InitTemplate.fromName(templatesDir, templateName)
    );
    return await Promise.all(templatePromises);
  } catch (error5) {
    if (error5.code === "ENOENT" || error5.code === "EACCES") {
      return [];
    }
    throw error5;
  }
}
async function listDirectory(dirPath) {
  return (await fs35.readdir(dirPath)).filter((p3) => !p3.startsWith(".")).filter((p3) => !(p3 === "LICENSE")).filter((p3) => !(p3 === INFO_DOT_JSON)).sort();
}
async function printAvailableTemplates(ioHelper, language) {
  await ioHelper.defaults.info("Available templates:");
  for (const template of await availableInitTemplates()) {
    if (language && template.languages.indexOf(language) === -1) {
      continue;
    }
    await ioHelper.defaults.info(`* ${chalk26.green(template.name)}: ${template.description}`);
    const languageArg = language ? chalk26.bold(language) : template.languages.length > 1 ? `[${template.languages.map((t3) => chalk26.bold(t3)).join("|")}]` : chalk26.bold(template.languages[0]);
    await ioHelper.defaults.info(`   \u2514\u2500 ${chalk26.blue(`cdk init ${chalk26.bold(template.name)} --language=${languageArg}`)}`);
  }
}
async function initializeProject(ioHelper, template, language, canUseNetwork, generateOnly, workDir, stackName, migrate, cdkVersion) {
  await assertIsEmptyDirectory(workDir);
  await ioHelper.defaults.info(`Applying project template ${chalk26.green(template.name)} for ${chalk26.blue(language)}`);
  await template.install(ioHelper, language, workDir, stackName, cdkVersion);
  if (migrate) {
    await template.addMigrateContext(workDir);
  }
  if (await fs35.pathExists(`${workDir}/README.md`)) {
    const readme = await fs35.readFile(`${workDir}/README.md`, { encoding: "utf-8" });
    await ioHelper.defaults.info(chalk26.green(readme));
  }
  if (!generateOnly) {
    await initializeGitRepository(ioHelper, workDir);
    await postInstall(ioHelper, language, canUseNetwork, workDir);
  }
  await ioHelper.defaults.info("\u2705 All done!");
}
async function assertIsEmptyDirectory(workDir) {
  try {
    const files = await fs35.readdir(workDir);
    if (files.filter((f3) => !f3.startsWith(".")).length !== 0) {
      throw new import_toolkit_lib12.ToolkitError("`cdk init` cannot be run in a non-empty directory!");
    }
  } catch (e3) {
    if (e3.code === "ENOENT") {
      throw new import_toolkit_lib12.ToolkitError(`Directory does not exist: ${workDir}. Please create the directory first.`);
    } else {
      throw e3;
    }
  }
}
async function initializeGitRepository(ioHelper, workDir) {
  if (await isInGitRepository(workDir)) {
    return;
  }
  await ioHelper.defaults.info("Initializing a new git repository...");
  try {
    await execute(ioHelper, "git", ["init"], { cwd: workDir });
    await execute(ioHelper, "git", ["add", "."], { cwd: workDir });
    await execute(ioHelper, "git", ["commit", '--message="Initial commit"', "--no-gpg-sign"], { cwd: workDir });
  } catch {
    await ioHelper.defaults.warn("Unable to initialize git repository for your project.");
  }
}
async function postInstall(ioHelper, language, canUseNetwork, workDir) {
  switch (language) {
    case "javascript":
      return postInstallJavascript(ioHelper, canUseNetwork, workDir);
    case "typescript":
      return postInstallTypescript(ioHelper, canUseNetwork, workDir);
    case "java":
      return postInstallJava(ioHelper, canUseNetwork, workDir);
    case "python":
      return postInstallPython(ioHelper, workDir);
    case "go":
      return postInstallGo(ioHelper, canUseNetwork, workDir);
    case "csharp":
      return postInstallCSharp(ioHelper, canUseNetwork, workDir);
    case "fsharp":
      return postInstallFSharp(ioHelper, canUseNetwork, workDir);
  }
}
async function postInstallJavascript(ioHelper, canUseNetwork, cwd) {
  return postInstallTypescript(ioHelper, canUseNetwork, cwd);
}
async function postInstallTypescript(ioHelper, canUseNetwork, cwd) {
  const command2 = "npm";
  if (!canUseNetwork) {
    await ioHelper.defaults.warn(`Please run '${command2} install'!`);
    return;
  }
  await ioHelper.defaults.info(`Executing ${chalk26.green(`${command2} install`)}...`);
  try {
    await execute(ioHelper, command2, ["install"], { cwd });
  } catch (e3) {
    await ioHelper.defaults.warn(`${command2} install failed: ` + formatErrorMessage(e3));
  }
}
async function postInstallJava(ioHelper, canUseNetwork, cwd) {
  const hasGradleBuild = await fs35.pathExists(path33.join(cwd, "build.gradle"));
  const hasMavenPom = await fs35.pathExists(path33.join(cwd, "pom.xml"));
  if (hasGradleBuild) {
    const gradleWarning = "Please run './gradlew build'!";
    if (!canUseNetwork) {
      await ioHelper.defaults.warn(gradleWarning);
      return;
    }
    await ioHelper.defaults.info("Executing './gradlew build'");
    try {
      await execute(ioHelper, "./gradlew", ["build"], { cwd });
    } catch {
      await ioHelper.defaults.warn("Unable to build Gradle project");
      await ioHelper.defaults.warn(gradleWarning);
    }
  } else if (hasMavenPom) {
    const mvnPackageWarning = "Please run 'mvn package'!";
    if (!canUseNetwork) {
      await ioHelper.defaults.warn(mvnPackageWarning);
      return;
    }
    await ioHelper.defaults.info("Executing 'mvn package'");
    try {
      await execute(ioHelper, "mvn", ["package"], { cwd });
    } catch {
      await ioHelper.defaults.warn("Unable to package compiled code as JAR");
      await ioHelper.defaults.warn(mvnPackageWarning);
    }
  } else {
    await ioHelper.defaults.warn("No build.gradle or pom.xml found. Please set up your build system manually.");
  }
}
async function postInstallPython(ioHelper, cwd) {
  const python = pythonExecutable();
  const hasRequirements = await fs35.pathExists(path33.join(cwd, "requirements.txt"));
  if (hasRequirements) {
    await ioHelper.defaults.info(`Executing ${chalk26.green("Creating virtualenv...")}`);
    try {
      await execute(ioHelper, python, ["-m", "venv", ".venv"], { cwd });
      await ioHelper.defaults.info(`Executing ${chalk26.green("Installing dependencies...")}`);
      const pipPath = process.platform === "win32" ? ".venv\\Scripts\\pip" : ".venv/bin/pip";
      await execute(ioHelper, pipPath, ["install", "-r", "requirements.txt"], { cwd });
    } catch {
      await ioHelper.defaults.warn("Unable to create virtualenv or install dependencies automatically");
      await ioHelper.defaults.warn(`Please run '${python} -m venv .venv && .venv/bin/pip install -r requirements.txt'!`);
    }
  } else {
    await ioHelper.defaults.warn("No requirements.txt found. Please set up your Python environment manually.");
  }
}
async function postInstallGo(ioHelper, canUseNetwork, cwd) {
  if (!canUseNetwork) {
    await ioHelper.defaults.warn("Please run 'go mod tidy'!");
    return;
  }
  await ioHelper.defaults.info(`Executing ${chalk26.green("go mod tidy")}...`);
  try {
    await execute(ioHelper, "go", ["mod", "tidy"], { cwd });
  } catch (e3) {
    await ioHelper.defaults.warn("'go mod tidy' failed: " + formatErrorMessage(e3));
  }
}
async function postInstallCSharp(ioHelper, canUseNetwork, cwd) {
  const dotnetWarning = "Please run 'dotnet restore && dotnet build'!";
  if (!canUseNetwork) {
    await ioHelper.defaults.warn(dotnetWarning);
    return;
  }
  await ioHelper.defaults.info(`Executing ${chalk26.green("dotnet restore")}...`);
  try {
    await execute(ioHelper, "dotnet", ["restore"], { cwd });
    await ioHelper.defaults.info(`Executing ${chalk26.green("dotnet build")}...`);
    await execute(ioHelper, "dotnet", ["build"], { cwd });
  } catch (e3) {
    await ioHelper.defaults.warn("Unable to restore/build .NET project: " + formatErrorMessage(e3));
    await ioHelper.defaults.warn(dotnetWarning);
  }
}
async function postInstallFSharp(ioHelper, canUseNetwork, cwd) {
  return postInstallCSharp(ioHelper, canUseNetwork, cwd);
}
async function isInGitRepository(dir) {
  while (true) {
    if (await fs35.pathExists(path33.join(dir, ".git"))) {
      return true;
    }
    if (isRoot(dir)) {
      return false;
    }
    dir = path33.dirname(dir);
  }
}
function isRoot(dir) {
  return path33.dirname(dir) === dir;
}
async function execute(ioHelper, cmd, args, { cwd }) {
  const child = childProcess2.spawn(cmd, args, {
    cwd,
    shell: true,
    stdio: ["ignore", "pipe", "inherit"]
  });
  let stdout2 = "";
  child.stdout.on("data", (chunk) => stdout2 += chunk.toString());
  return new Promise((ok, fail) => {
    child.once("error", (err) => fail(err));
    child.once("exit", (status) => {
      if (status === 0) {
        return ok(stdout2);
      } else {
        return fail(new import_toolkit_lib12.ToolkitError(`${cmd} exited with status ${status}`));
      }
    });
  }).catch(async (err) => {
    await ioHelper.defaults.error(stdout2);
    throw err;
  });
}
async function loadInitVersions() {
  const initVersionFile = path33.join(cliRootDir(), "lib", "init-templates", ".init-version.json");
  const contents = JSON.parse(await fs35.readFile(initVersionFile, { encoding: "utf-8" }));
  const ret = {
    "aws-cdk-lib": contents["aws-cdk-lib"],
    "constructs": contents.constructs,
    "aws-cdk": versionNumber2()
  };
  for (const [key, value] of Object.entries(ret)) {
    if (!value) {
      throw new import_toolkit_lib12.ToolkitError(`Missing init version from ${initVersionFile}: ${key}`);
    }
  }
  return ret;
}
async function currentlyRecommendedAwsCdkLibFlags() {
  const recommendedFlagsFile = path33.join(cliRootDir(), "lib", "init-templates", ".recommended-feature-flags.json");
  return JSON.parse(await fs35.readFile(recommendedFlagsFile, { encoding: "utf-8" }));
}
var childProcess2, path33, import_toolkit_lib12, chalk26, fs35, camelCase, decamelize, INFO_DOT_JSON, InitTemplate;
var init_init = __esm({
  "lib/commands/init/init.ts"() {
    "use strict";
    childProcess2 = __toESM(require("child_process"));
    path33 = __toESM(require("path"));
    import_toolkit_lib12 = __toESM(require_lib12());
    chalk26 = __toESM(require_source());
    fs35 = __toESM(require_lib13());
    init_init_hooks();
    init_root_dir();
    init_version2();
    init_util8();
    init_language();
    camelCase = require_camelcase();
    decamelize = require_decamelize();
    __name(cliInit, "cliInit");
    __name(loadLocalTemplate, "loadLocalTemplate");
    __name(loadBuiltinTemplate, "loadBuiltinTemplate");
    __name(resolveLanguage, "resolveLanguage");
    __name(findPotentialTemplates, "findPotentialTemplates");
    __name(getLanguageDirectories, "getLanguageDirectories");
    __name(hasLanguageFiles, "hasLanguageFiles");
    __name(pythonExecutable, "pythonExecutable");
    INFO_DOT_JSON = "info.json";
    InitTemplate = class _InitTemplate {
      constructor(basePath, name, languages, initInfo, templateType) {
        this.basePath = basePath;
        this.name = name;
        this.languages = languages;
        this.aliases = /* @__PURE__ */ new Set();
        this.templateType = templateType;
        if (templateType === "builtin" /* BUILT_IN */ && initInfo) {
          this.description = initInfo.description;
          for (const alias of initInfo.aliases || []) {
            this.aliases.add(alias);
          }
        }
      }
      static {
        __name(this, "InitTemplate");
      }
      static async fromName(templatesDir, name) {
        const basePath = path33.join(templatesDir, name);
        const languages = await listDirectory(basePath);
        const initInfo = await fs35.readJson(path33.join(basePath, INFO_DOT_JSON));
        return new _InitTemplate(basePath, name, languages, initInfo, "builtin" /* BUILT_IN */);
      }
      static async fromPath(templatePath) {
        const basePath = path33.resolve(templatePath);
        if (!await fs35.pathExists(basePath)) {
          throw new import_toolkit_lib12.ToolkitError(`Template path does not exist: ${basePath}`);
        }
        const languages = await getLanguageDirectories(basePath);
        const name = path33.basename(basePath);
        return new _InitTemplate(basePath, name, languages, null, "custom" /* CUSTOM */);
      }
      /**
       * @param name - the name that is being checked
       * @returns ``true`` if ``name`` is the name of this template or an alias of it.
       */
      hasName(name) {
        return name === this.name || this.aliases.has(name);
      }
      /**
       * Creates a new instance of this ``InitTemplate`` for a given language to a specified folder.
       *
       * @param language - the language to instantiate this template with
       * @param targetDirectory - the directory where the template is to be instantiated into
       * @param stackName - the name of the stack to create
       * @default undefined
       * @param libVersion - the version of the CDK library to use
       * @default undefined
       */
      async install(ioHelper, language, targetDirectory, stackName, libVersion) {
        if (this.languages.indexOf(language) === -1) {
          await ioHelper.defaults.error(
            `The ${chalk26.blue(language)} language is not supported for ${chalk26.green(this.name)} (it supports: ${this.languages.map((l3) => chalk26.blue(l3)).join(", ")})`
          );
          throw new import_toolkit_lib12.ToolkitError(`Unsupported language: ${language}`);
        }
        const projectInfo = {
          name: decamelize(path33.basename(path33.resolve(targetDirectory))),
          stackName,
          versions: await loadInitVersions()
        };
        if (libVersion) {
          projectInfo.versions["aws-cdk-lib"] = libVersion;
        }
        const sourceDirectory = path33.join(this.basePath, language);
        if (this.templateType === "custom" /* CUSTOM */) {
          await this.installFilesWithoutProcessing(sourceDirectory, targetDirectory);
        } else {
          await this.installFiles(sourceDirectory, targetDirectory, language, projectInfo);
          await this.applyFutureFlags(targetDirectory);
          await invokeBuiltinHooks(
            ioHelper,
            { targetDirectory, language, templateName: this.name },
            {
              substitutePlaceholdersIn: /* @__PURE__ */ __name(async (...fileNames) => {
                const fileProcessingPromises = fileNames.map(async (fileName) => {
                  const fullPath = path33.join(targetDirectory, fileName);
                  const template = await fs35.readFile(fullPath, { encoding: "utf-8" });
                  await fs35.writeFile(fullPath, expandPlaceholders(template, language, projectInfo));
                });
                await Promise.all(fileProcessingPromises);
              }, "substitutePlaceholdersIn"),
              placeholder: /* @__PURE__ */ __name((ph) => expandPlaceholders(`%${ph}%`, language, projectInfo), "placeholder")
            }
          );
        }
      }
      async installFiles(sourceDirectory, targetDirectory, language, project) {
        for (const file of await fs35.readdir(sourceDirectory)) {
          const fromFile = path33.join(sourceDirectory, file);
          const toFile = path33.join(targetDirectory, expandPlaceholders(file, language, project));
          if ((await fs35.stat(fromFile)).isDirectory()) {
            await fs35.mkdir(toFile);
            await this.installFiles(fromFile, toFile, language, project);
            continue;
          } else if (file.match(/^.*\.template\.[^.]+$/)) {
            await this.installProcessed(fromFile, toFile.replace(/\.template(\.[^.]+)$/, "$1"), language, project);
            continue;
          } else if (file.match(/^.*\.hook\.(d.)?[^.]+$/)) {
            continue;
          } else {
            await fs35.copy(fromFile, toFile);
          }
        }
      }
      async installProcessed(templatePath, toFile, language, project) {
        const template = await fs35.readFile(templatePath, { encoding: "utf-8" });
        await fs35.writeFile(toFile, expandPlaceholders(template, language, project));
      }
      /**
       * Copy template files without processing placeholders (for custom templates)
       */
      async installFilesWithoutProcessing(sourceDirectory, targetDirectory) {
        await fs35.copy(sourceDirectory, targetDirectory, {
          filter: /* @__PURE__ */ __name((src) => {
            const filename = path33.basename(src);
            return !filename.match(/^.*\.hook\.(d.)?[^.]+$/);
          }, "filter")
        });
      }
      /**
       * Adds context variables to `cdk.json` in the generated project directory to
       * enable future behavior for new projects.
       */
      async applyFutureFlags(projectDir) {
        const cdkJson = path33.join(projectDir, "cdk.json");
        if (!await fs35.pathExists(cdkJson)) {
          return;
        }
        const config = await fs35.readJson(cdkJson);
        config.context = {
          ...config.context,
          ...await currentlyRecommendedAwsCdkLibFlags()
        };
        await fs35.writeJson(cdkJson, config, { spaces: 2 });
      }
      async addMigrateContext(projectDir) {
        const cdkJson = path33.join(projectDir, "cdk.json");
        if (!await fs35.pathExists(cdkJson)) {
          return;
        }
        const config = await fs35.readJson(cdkJson);
        config.context = {
          ...config.context,
          "cdk-migrate": true
        };
        await fs35.writeJson(cdkJson, config, { spaces: 2 });
      }
    };
    __name(expandPlaceholders, "expandPlaceholders");
    __name(availableInitTemplates, "availableInitTemplates");
    __name(listDirectory, "listDirectory");
    __name(printAvailableTemplates, "printAvailableTemplates");
    __name(initializeProject, "initializeProject");
    __name(assertIsEmptyDirectory, "assertIsEmptyDirectory");
    __name(initializeGitRepository, "initializeGitRepository");
    __name(postInstall, "postInstall");
    __name(postInstallJavascript, "postInstallJavascript");
    __name(postInstallTypescript, "postInstallTypescript");
    __name(postInstallJava, "postInstallJava");
    __name(postInstallPython, "postInstallPython");
    __name(postInstallGo, "postInstallGo");
    __name(postInstallCSharp, "postInstallCSharp");
    __name(postInstallFSharp, "postInstallFSharp");
    __name(isInGitRepository, "isInGitRepository");
    __name(isRoot, "isRoot");
    __name(execute, "execute");
    __name(loadInitVersions, "loadInitVersions");
    __name(currentlyRecommendedAwsCdkLibFlags, "currentlyRecommendedAwsCdkLibFlags");
  }
});

// lib/commands/init/index.ts
var init_init2 = __esm({
  "lib/commands/init/index.ts"() {
    "use strict";
    init_init();
  }
});

// lib/commands/migrate.ts
async function generateCdkApp(ioHelper, stackName, stack, language, outputPath, compress2) {
  const resolvedOutputPath = path34.join(outputPath ?? process.cwd(), stackName);
  const formattedStackName = decamelize2(stackName);
  try {
    fs36.rmSync(resolvedOutputPath, { recursive: true, force: true });
    fs36.mkdirSync(resolvedOutputPath, { recursive: true });
    const generateOnly = compress2;
    await cliInit({
      ioHelper,
      type: "app",
      language,
      canUseNetwork: true,
      generateOnly,
      workDir: resolvedOutputPath,
      stackName,
      migrate: true
    });
    let stackFileName;
    switch (language) {
      case "typescript":
        stackFileName = `${resolvedOutputPath}/lib/${formattedStackName}-stack.ts`;
        break;
      case "java":
        stackFileName = `${resolvedOutputPath}/src/main/java/com/myorg/${camelCase2(formattedStackName, { pascalCase: true })}Stack.java`;
        break;
      case "python":
        stackFileName = `${resolvedOutputPath}/${formattedStackName.replace(/-/g, "_")}/${formattedStackName.replace(/-/g, "_")}_stack.py`;
        break;
      case "csharp":
        stackFileName = `${resolvedOutputPath}/src/${camelCase2(formattedStackName, { pascalCase: true })}/${camelCase2(formattedStackName, { pascalCase: true })}Stack.cs`;
        break;
      case "go":
        stackFileName = `${resolvedOutputPath}/${formattedStackName}.go`;
        break;
      default:
        throw new import_toolkit_lib13.ToolkitError(
          `${language} is not supported by CDK Migrate. Please choose from: ${MIGRATE_SUPPORTED_LANGUAGES.join(", ")}`
        );
    }
    fs36.writeFileSync(stackFileName, stack);
    if (compress2) {
      await zipDirectory2(resolvedOutputPath, `${resolvedOutputPath}.zip`);
      fs36.rmSync(resolvedOutputPath, { recursive: true, force: true });
    }
  } catch (error5) {
    fs36.rmSync(resolvedOutputPath, { recursive: true, force: true });
    throw error5;
  }
}
function generateStack(template, stackName, language) {
  const formattedStackName = `${camelCase2(decamelize2(stackName), { pascalCase: true })}Stack`;
  try {
    return cdk_from_cfn.transmute(template, language, formattedStackName);
  } catch (e3) {
    throw new import_toolkit_lib13.ToolkitError(`${formattedStackName} could not be generated because ${e3.message}`);
  }
}
function readFromPath(inputPath) {
  let readFile5;
  try {
    readFile5 = fs36.readFileSync(inputPath, "utf8");
  } catch (e3) {
    throw new import_toolkit_lib13.ToolkitError(`'${inputPath}' is not a valid path.`);
  }
  if (readFile5 == "") {
    throw new import_toolkit_lib13.ToolkitError(`Cloudformation template filepath: '${inputPath}' is an empty file.`);
  }
  return readFile5;
}
async function readFromStack(stackName, sdkProvider, environment) {
  const cloudFormation = (await sdkProvider.forEnvironment(environment, 0 /* ForReading */)).sdk.cloudFormation();
  const stack = await CloudFormationStack.lookup(cloudFormation, stackName, true);
  if (stack.stackStatus.isDeploySuccess || stack.stackStatus.isRollbackSuccess) {
    return JSON.stringify(await stack.template());
  } else {
    throw new import_toolkit_lib13.ToolkitError(
      `Stack '${stackName}' in account ${environment.account} and region ${environment.region} has a status of '${stack.stackStatus.name}' due to '${stack.stackStatus.reason}'. The stack cannot be migrated until it is in a healthy state.`
    );
  }
}
async function generateTemplate(options) {
  const cfn = new CfnTemplateGeneratorProvider(await buildCfnClient(options.sdkProvider, options.environment), options.ioHelper);
  const ioHelper = options.ioHelper;
  const scanId = await findLastSuccessfulScan(cfn, options);
  const curScan = await cfn.describeResourceScan(scanId);
  if (curScan.Status == "IN_PROGRESS" /* IN_PROGRESS */) {
    await ioHelper.defaults.info("Resource scan in progress. Please wait, this can take 10 minutes or longer.");
    await scanProgressBar(ioHelper, scanId, cfn);
  }
  await displayTimeDiff(ioHelper, /* @__PURE__ */ new Date(), new Date(curScan.StartTime));
  let resources = await cfn.listResourceScanResources(scanId, options.filters);
  await ioHelper.defaults.info("finding related resources.");
  let relatedResources = await cfn.getResourceScanRelatedResources(scanId, resources);
  await ioHelper.defaults.info(`Found ${relatedResources.length} resources.`);
  await ioHelper.defaults.info("Generating CFN template from scanned resources.");
  const templateArn = (await cfn.createGeneratedTemplate(options.stackName, relatedResources)).GeneratedTemplateId;
  let generatedTemplate = await cfn.describeGeneratedTemplate(templateArn);
  await ioHelper.defaults.info("Please wait, template creation in progress. This may take a couple minutes.");
  while (generatedTemplate.Status !== "COMPLETE" /* COMPLETE */ && generatedTemplate.Status !== "FAILED" /* FAILED */) {
    await printDots(`[${generatedTemplate.Status}] Template Creation in Progress`, 400);
    generatedTemplate = await cfn.describeGeneratedTemplate(templateArn);
  }
  await ioHelper.defaults.info("\nTemplate successfully generated!");
  return buildGeneratedTemplateOutput(
    generatedTemplate,
    (await cfn.getGeneratedTemplate(templateArn)).TemplateBody,
    templateArn
  );
}
async function findLastSuccessfulScan(cfn, options) {
  const ioHelper = options.ioHelper;
  let resourceScanSummaries = [];
  const clientRequestToken = `cdk-migrate-${options.environment.account}-${options.environment.region}`;
  if (options.fromScan === 0 /* NEW */) {
    await ioHelper.defaults.info(`Starting new scan for account ${options.environment.account} in region ${options.environment.region}`);
    try {
      await cfn.startResourceScan(clientRequestToken);
      resourceScanSummaries = (await cfn.listResourceScans()).ResourceScanSummaries;
    } catch (e3) {
      await ioHelper.defaults.info(`Scan failed to start due to error '${e3.message}', defaulting to latest scan.`);
    }
  } else {
    resourceScanSummaries = (await cfn.listResourceScans()).ResourceScanSummaries;
    await cfn.checkForResourceScan(resourceScanSummaries, options, clientRequestToken);
  }
  resourceScanSummaries = (await cfn.listResourceScans()).ResourceScanSummaries;
  let scanId = resourceScanSummaries[0].ResourceScanId;
  for (const summary of resourceScanSummaries) {
    if (summary.Status !== "FAILED" /* FAILED */) {
      scanId = summary.ResourceScanId;
      break;
    }
  }
  return scanId;
}
function parseFilters(filters) {
  if (!filters) {
    return {
      "resource-identifier": void 0,
      "resource-type-prefix": void 0,
      "tag-key": void 0,
      "tag-value": void 0
    };
  }
  const filterShorthands = {
    "identifier": "resource-identifier" /* RESOURCE_IDENTIFIER */,
    "id": "resource-identifier" /* RESOURCE_IDENTIFIER */,
    "type": "resource-type-prefix" /* RESOURCE_TYPE_PREFIX */,
    "type-prefix": "resource-type-prefix" /* RESOURCE_TYPE_PREFIX */
  };
  const filterList = filters.split(",");
  let filterMap = {
    ["resource-identifier" /* RESOURCE_IDENTIFIER */]: void 0,
    ["resource-type-prefix" /* RESOURCE_TYPE_PREFIX */]: void 0,
    ["tag-key" /* TAG_KEY */]: void 0,
    ["tag-value" /* TAG_VALUE */]: void 0
  };
  for (const fil of filterList) {
    const filter4 = fil.split("=");
    let filterKey = filter4[0];
    const filterValue = filter4[1];
    if (filterKey in filterShorthands) {
      filterKey = filterShorthands[filterKey];
    }
    if (Object.values(FilterType).includes(filterKey)) {
      filterMap[filterKey] = filterValue;
    } else {
      throw new import_toolkit_lib13.ToolkitError(`Invalid filter: ${filterKey}`);
    }
  }
  return filterMap;
}
function chunks(list2, chunkSize) {
  const chunkedList = [];
  for (let i3 = 0; i3 < list2.length; i3 += chunkSize) {
    chunkedList.push(list2.slice(i3, i3 + chunkSize));
  }
  return chunkedList;
}
function setEnvironment(account, region) {
  return {
    account: account ?? import_cx_api12.UNKNOWN_ACCOUNT,
    region: region ?? import_cx_api12.UNKNOWN_REGION,
    name: "cdk-migrate-env"
  };
}
function parseSourceOptions(fromPath, fromStack, stackName) {
  if (fromPath && fromStack) {
    throw new import_toolkit_lib13.ToolkitError("Only one of `--from-path` or `--from-stack` may be provided.");
  }
  if (!stackName) {
    throw new import_toolkit_lib13.ToolkitError("`--stack-name` is a required field.");
  }
  if (!fromPath && !fromStack) {
    return { source: "scan" /* SCAN */ };
  }
  if (fromPath) {
    return { source: "path" /* PATH */, templatePath: fromPath };
  }
  return { source: "stack" /* STACK */, stackName };
}
function excludeManaged(resourceList) {
  return resourceList.filter((r3) => !r3.ManagedByStack).map((r3) => ({
    ResourceType: r3.ResourceType,
    ResourceIdentifier: r3.ResourceIdentifier
  }));
}
function resourceIdentifiers(resourceList) {
  const identifiers = [];
  resourceList.forEach((r3) => {
    const identifier = {
      ResourceType: r3.ResourceType,
      ResourceIdentifier: r3.ResourceIdentifier
    };
    identifiers.push(identifier);
  });
  return identifiers;
}
async function scanProgressBar(ioHelper, scanId, cfn) {
  let curProgress = 0.5;
  let curScan = {
    Status: "IN_PROGRESS" /* IN_PROGRESS */,
    $metadata: {}
  };
  while (curScan.Status == "IN_PROGRESS" /* IN_PROGRESS */) {
    curScan = await cfn.describeResourceScan(scanId);
    curProgress = curScan.PercentageCompleted ?? curProgress;
    printBar(30, curProgress);
    await new Promise((resolve13) => setTimeout(resolve13, 2e3));
  }
  await ioHelper.defaults.info("\n\u2705 Scan Complete!");
}
function printBar(width, progress) {
  if (!process.env.MIGRATE_INTEG_TEST) {
    const FULL_BLOCK2 = "\u2588";
    const PARTIAL_BLOCK2 = ["", "\u258F", "\u258E", "\u258D", "\u258C", "\u258B", "\u258A", "\u2589"];
    const fraction = Math.min(progress / 100, 1);
    const innerWidth = Math.max(1, width - 2);
    const chars = innerWidth * fraction;
    const remainder = chars - Math.floor(chars);
    const fullChars = FULL_BLOCK2.repeat(Math.floor(chars));
    const partialChar = PARTIAL_BLOCK2[Math.floor(remainder * PARTIAL_BLOCK2.length)];
    const filler = "\xB7".repeat(innerWidth - Math.floor(chars) - (partialChar ? 1 : 0));
    const color = chalk27.green;
    rewriteLine("[" + color(fullChars + partialChar) + filler + `] (${progress}%)`);
  }
}
async function printDots(message2, timeoutx4) {
  if (!process.env.MIGRATE_INTEG_TEST) {
    rewriteLine(message2 + " .");
    await new Promise((resolve13) => setTimeout(resolve13, timeoutx4));
    rewriteLine(message2 + " ..");
    await new Promise((resolve13) => setTimeout(resolve13, timeoutx4));
    rewriteLine(message2 + " ...");
    await new Promise((resolve13) => setTimeout(resolve13, timeoutx4));
    rewriteLine(message2);
    await new Promise((resolve13) => setTimeout(resolve13, timeoutx4));
  }
}
function rewriteLine(message2) {
  process.stdout.clearLine(0);
  process.stdout.cursorTo(0);
  process.stdout.write(message2);
}
async function displayTimeDiff(ioHelper, time1, time2) {
  const diff = Math.abs(time1.getTime() - time2.getTime());
  const days = Math.floor(diff / (1e3 * 60 * 60 * 24));
  const hours = Math.floor(diff % (1e3 * 60 * 60 * 24) / (1e3 * 60 * 60));
  const minutes = Math.floor(diff % (1e3 * 60 * 60) / (1e3 * 60));
  await ioHelper.defaults.info(`Using the latest successful scan which is ${days} days, ${hours} hours, and ${minutes} minutes old.`);
}
function writeMigrateJsonFile(outputPath, stackName, migrateJson) {
  const outputToJson = {
    "//": "This file is generated by cdk migrate. It will be automatically deleted after the first successful deployment of this app to the environment of the original resources.",
    "Source": migrateJson.source,
    "Resources": migrateJson.resources
  };
  fs36.writeFileSync(
    `${path34.join(outputPath ?? process.cwd(), stackName)}/migrate.json`,
    JSON.stringify(outputToJson, null, 2)
  );
}
function getMigrateScanType(scanType) {
  switch (scanType) {
    case "new":
      return 0 /* NEW */;
    case "most-recent":
      return 1 /* MOST_RECENT */;
    case "":
      return 2 /* DEFAULT */;
    case void 0:
      return 2 /* DEFAULT */;
    default:
      throw new import_toolkit_lib13.ToolkitError(`Unknown scan type: ${scanType}`);
  }
}
function isThereAWarning(generatedTemplateOutput) {
  if (generatedTemplateOutput.resources) {
    for (const resource of generatedTemplateOutput.resources) {
      if (resource.Warnings && resource.Warnings.length > 0) {
        return true;
      }
    }
  }
  return false;
}
function buildGeneratedTemplateOutput(generatedTemplateSummary, templateBody, source) {
  const resources = generatedTemplateSummary.Resources;
  const migrateJson = {
    templateBody,
    source,
    resources: generatedTemplateSummary.Resources.map((r3) => ({
      ResourceType: r3.ResourceType,
      LogicalResourceId: r3.LogicalResourceId,
      ResourceIdentifier: r3.ResourceIdentifier
    }))
  };
  const templateId = generatedTemplateSummary.GeneratedTemplateId;
  return {
    migrateJson,
    resources,
    templateId
  };
}
async function buildCfnClient(sdkProvider, environment) {
  const sdk = (await sdkProvider.forEnvironment(environment, 0 /* ForReading */)).sdk;
  sdk.appendCustomUserAgent("cdk-migrate");
  return sdk.cloudFormation();
}
function appendWarningsToReadme(filepath, resources) {
  const readme = fs36.readFileSync(filepath, "utf8");
  const lines = readme.split("\n");
  const index = lines.findIndex((line) => line.trim() === "Enjoy!");
  let linesToAdd = ["\n## Warnings"];
  linesToAdd.push("### Write-only properties");
  linesToAdd.push(
    "Write-only properties are resource property values that can be written to but can't be read by AWS CloudFormation or CDK Migrate. For more information, see [IaC generator and write-only properties](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/generate-IaC-write-only-properties.html)."
  );
  linesToAdd.push("\n");
  linesToAdd.push(
    "Write-only properties discovered during migration are organized here by resource ID and categorized by write-only property type. Resolve write-only properties by providing property values in your CDK app. For guidance, see [Resolve write-only properties](https://docs.aws.amazon.com/cdk/v2/guide/migrate.html#migrate-resources-writeonly)."
  );
  for (const resource of resources) {
    if (resource.Warnings && resource.Warnings.length > 0) {
      linesToAdd.push(`### ${resource.LogicalResourceId}`);
      for (const warning2 of resource.Warnings) {
        linesToAdd.push(`- **${warning2.Type}**: `);
        for (const property of warning2.Properties) {
          linesToAdd.push(`  - ${property.PropertyPath}: ${property.Description}`);
        }
      }
    }
  }
  lines.splice(index, 0, ...linesToAdd);
  fs36.writeFileSync(filepath, lines.join("\n"));
}
function deduplicateResources(resources) {
  let uniqueResources = {};
  for (const resource of resources) {
    const key = Object.keys(resource.ResourceIdentifier)[0];
    const uniqueIdentifer = `${resource.ResourceType}:${key}:${resource.ResourceIdentifier[key]}`;
    uniqueResources[uniqueIdentifer] = resource;
  }
  return Object.values(uniqueResources);
}
var fs36, path34, import_cx_api12, import_toolkit_lib13, cdk_from_cfn, chalk27, camelCase2, decamelize2, MIGRATE_SUPPORTED_LANGUAGES, FilterType, CfnTemplateGeneratorProvider;
var init_migrate = __esm({
  "lib/commands/migrate.ts"() {
    "use strict";
    fs36 = __toESM(require("fs"));
    path34 = __toESM(require("path"));
    import_cx_api12 = __toESM(require_lib3());
    import_toolkit_lib13 = __toESM(require_lib12());
    cdk_from_cfn = __toESM(require_cdk_from_cfn());
    chalk27 = __toESM(require_source());
    init_init2();
    init_cloudformation3();
    init_plugin3();
    init_util8();
    camelCase2 = require_camelcase();
    decamelize2 = require_decamelize();
    MIGRATE_SUPPORTED_LANGUAGES = cdk_from_cfn.supported_languages();
    __name(generateCdkApp, "generateCdkApp");
    __name(generateStack, "generateStack");
    __name(readFromPath, "readFromPath");
    __name(readFromStack, "readFromStack");
    __name(generateTemplate, "generateTemplate");
    __name(findLastSuccessfulScan, "findLastSuccessfulScan");
    __name(parseFilters, "parseFilters");
    __name(chunks, "chunks");
    __name(setEnvironment, "setEnvironment");
    FilterType = /* @__PURE__ */ ((FilterType2) => {
      FilterType2["RESOURCE_IDENTIFIER"] = "resource-identifier";
      FilterType2["RESOURCE_TYPE_PREFIX"] = "resource-type-prefix";
      FilterType2["TAG_KEY"] = "tag-key";
      FilterType2["TAG_VALUE"] = "tag-value";
      return FilterType2;
    })(FilterType || {});
    __name(parseSourceOptions, "parseSourceOptions");
    __name(excludeManaged, "excludeManaged");
    __name(resourceIdentifiers, "resourceIdentifiers");
    __name(scanProgressBar, "scanProgressBar");
    __name(printBar, "printBar");
    __name(printDots, "printDots");
    __name(rewriteLine, "rewriteLine");
    __name(displayTimeDiff, "displayTimeDiff");
    __name(writeMigrateJsonFile, "writeMigrateJsonFile");
    __name(getMigrateScanType, "getMigrateScanType");
    __name(isThereAWarning, "isThereAWarning");
    __name(buildGeneratedTemplateOutput, "buildGeneratedTemplateOutput");
    __name(buildCfnClient, "buildCfnClient");
    __name(appendWarningsToReadme, "appendWarningsToReadme");
    __name(deduplicateResources, "deduplicateResources");
    CfnTemplateGeneratorProvider = class {
      static {
        __name(this, "CfnTemplateGeneratorProvider");
      }
      constructor(cfn, ioHelper) {
        this.cfn = cfn;
        this.ioHelper = ioHelper;
      }
      async checkForResourceScan(resourceScanSummaries, options, clientRequestToken) {
        if (!resourceScanSummaries || resourceScanSummaries.length === 0) {
          if (options.fromScan === 1 /* MOST_RECENT */) {
            throw new import_toolkit_lib13.ToolkitError(
              "No scans found. Please either start a new scan with the `--from-scan` new or do not specify a `--from-scan` option."
            );
          } else {
            await this.ioHelper.defaults.info("No scans found. Initiating a new resource scan.");
            await this.startResourceScan(clientRequestToken);
          }
        }
      }
      /**
       * Retrieves a tokenized list of resources and their associated scan. If a token is present the function
       * will loop through all pages and combine them into a single list of ScannedRelatedResources
       *
       * @param scanId - scan id for the to list resources for
       * @param resources - A list of resources to find related resources for
       */
      async getResourceScanRelatedResources(scanId, resources) {
        let relatedResourceList = resources;
        for (const chunk of chunks(resources, 100)) {
          const res = await this.cfn.listResourceScanRelatedResources({
            ResourceScanId: scanId,
            Resources: chunk
          });
          relatedResourceList.push(...res.RelatedResources ?? []);
          let nextToken = res.NextToken;
          while (nextToken) {
            const nextRelatedResources = await this.cfn.listResourceScanRelatedResources({
              ResourceScanId: scanId,
              Resources: resourceIdentifiers(resources),
              NextToken: nextToken
            });
            nextToken = nextRelatedResources.NextToken;
            relatedResourceList.push(...nextRelatedResources.RelatedResources ?? []);
          }
        }
        relatedResourceList = deduplicateResources(relatedResourceList);
        return process.env.MIGRATE_INTEG_TEST ? resourceIdentifiers(relatedResourceList) : resourceIdentifiers(excludeManaged(relatedResourceList));
      }
      /**
       * Kicks off a scan of a customers account, returning the scan id. A scan can take
       * 10 minutes or longer to complete. However this will return a scan id as soon as
       * the scan has begun.
       *
       * @returns A string representing the scan id
       */
      async startResourceScan(requestToken) {
        return (await this.cfn.startResourceScan({
          ClientRequestToken: requestToken
        })).ResourceScanId;
      }
      /**
       * Gets the most recent scans a customer has completed
       *
       * @returns a list of resource scan summaries
       */
      async listResourceScans() {
        return this.cfn.listResourceScans();
      }
      /**
       * Retrieves a tokenized list of resources from a resource scan. If a token is present, this function
       * will loop through all pages and combine them into a single list of ScannedResource[].
       * Additionally will apply any filters provided by the customer.
       *
       * @param scanId - scan id for the to list resources for
       * @param filters - a string of filters in the format of key1=value1,key2=value2
       * @returns a combined list of all resources from the scan
       */
      async listResourceScanResources(scanId, filters = []) {
        let resourceList = [];
        let resourceScanInputs;
        if (filters.length > 0) {
          await this.ioHelper.defaults.info("Applying filters to resource scan.");
          for (const filter4 of filters) {
            const filterList = parseFilters(filter4);
            resourceScanInputs = {
              ResourceScanId: scanId,
              ResourceIdentifier: filterList["resource-identifier" /* RESOURCE_IDENTIFIER */],
              ResourceTypePrefix: filterList["resource-type-prefix" /* RESOURCE_TYPE_PREFIX */],
              TagKey: filterList["tag-key" /* TAG_KEY */],
              TagValue: filterList["tag-value" /* TAG_VALUE */]
            };
            const resources = await this.cfn.listResourceScanResources(resourceScanInputs);
            resourceList = resourceList.concat(resources.Resources ?? []);
            let nextToken = resources.NextToken;
            while (nextToken) {
              resourceScanInputs.NextToken = nextToken;
              const nextResources = await this.cfn.listResourceScanResources(resourceScanInputs);
              nextToken = nextResources.NextToken;
              resourceList = resourceList.concat(nextResources.Resources ?? []);
            }
          }
        } else {
          await this.ioHelper.defaults.info("No filters provided. Retrieving all resources from scan.");
          resourceScanInputs = {
            ResourceScanId: scanId
          };
          const resources = await this.cfn.listResourceScanResources(resourceScanInputs);
          resourceList = resourceList.concat(resources.Resources ?? []);
          let nextToken = resources.NextToken;
          while (nextToken) {
            resourceScanInputs.NextToken = nextToken;
            const nextResources = await this.cfn.listResourceScanResources(resourceScanInputs);
            nextToken = nextResources.NextToken;
            resourceList = resourceList.concat(nextResources.Resources ?? []);
          }
        }
        if (resourceList.length === 0) {
          throw new import_toolkit_lib13.ToolkitError(`No resources found with filters ${filters.join(" ")}. Please try again with different filters.`);
        }
        resourceList = deduplicateResources(resourceList);
        return process.env.MIGRATE_INTEG_TEST ? resourceIdentifiers(resourceList) : resourceIdentifiers(excludeManaged(resourceList));
      }
      /**
       * Retrieves information about a resource scan.
       *
       * @param scanId - scan id for the to list resources for
       * @returns information about the scan
       */
      async describeResourceScan(scanId) {
        return this.cfn.describeResourceScan({
          ResourceScanId: scanId
        });
      }
      /**
       * Describes the current status of the template being generated.
       *
       * @param templateId - A string representing the template id
       * @returns DescribeGeneratedTemplateOutput an object containing the template status and results
       */
      async describeGeneratedTemplate(templateId) {
        const generatedTemplate = await this.cfn.describeGeneratedTemplate({
          GeneratedTemplateName: templateId
        });
        if (generatedTemplate.Status == "FAILED" /* FAILED */) {
          throw new import_toolkit_lib13.ToolkitError(generatedTemplate.StatusReason);
        }
        return generatedTemplate;
      }
      /**
       * Retrieves a completed generated cloudformation template from the template generator.
       *
       * @param templateId - A string representing the template id
       * @param cloudFormation - The CloudFormation sdk client to use
       * @returns DescribeGeneratedTemplateOutput an object containing the template status and body
       */
      async getGeneratedTemplate(templateId) {
        return this.cfn.getGeneratedTemplate({
          GeneratedTemplateName: templateId
        });
      }
      /**
       * Kicks off a template generation for a set of resources.
       *
       * @param stackName - The name of the stack
       * @param resources - A list of resources to generate the template from
       * @returns CreateGeneratedTemplateOutput an object containing the template arn to query on later
       */
      async createGeneratedTemplate(stackName, resources) {
        const createTemplateOutput = await this.cfn.createGeneratedTemplate({
          Resources: resources,
          GeneratedTemplateName: stackName
        });
        if (createTemplateOutput.GeneratedTemplateId === void 0) {
          throw new import_toolkit_lib13.ToolkitError("CreateGeneratedTemplate failed to return an Arn.");
        }
        return createTemplateOutput;
      }
      /**
       * Deletes a generated template from the template generator.
       *
       * @param templateArn - The arn of the template to delete
       * @returns A promise that resolves when the template has been deleted
       */
      async deleteGeneratedTemplate(templateArn) {
        await this.cfn.deleteGeneratedTemplate({
          GeneratedTemplateName: templateArn
        });
      }
    };
  }
});

// lib/obsolete-flags.ts
var OBSOLETE_FLAGS;
var init_obsolete_flags = __esm({
  "lib/obsolete-flags.ts"() {
    "use strict";
    OBSOLETE_FLAGS = [
      "@aws-cdk/core:enableStackNameDuplicates",
      "@aws-cdk/aws-s3:grantWriteWithoutAcl",
      "@aws-cdk/aws-kms:defaultKeyPolicies"
    ];
  }
});

// lib/cli/telemetry/collect-telemetry.ts
function canCollectTelemetry(args, context) {
  if (["true", "1"].includes(process.env.CDK_DISABLE_CLI_TELEMETRY ?? "") || ["false", false].includes(context.get("cli-telemetry")) || args["version-reporting"] !== void 0 && !args["version-reporting"]) {
    return false;
  }
  return true;
}
var init_collect_telemetry = __esm({
  "lib/cli/telemetry/collect-telemetry.ts"() {
    "use strict";
    __name(canCollectTelemetry, "canCollectTelemetry");
  }
});

// lib/cli/cdk-toolkit.ts
async function printSerializedObject(ioHelper, obj, json) {
  await ioHelper.defaults.result(serializeStructure(obj, json));
}
function buildParameterMap2(parameters) {
  const parameterMap = { "*": {} };
  for (const key in parameters) {
    if (parameters.hasOwnProperty(key)) {
      const [stack, parameter] = key.split(":", 2);
      if (!parameter) {
        parameterMap["*"][stack] = parameters[key];
      } else {
        if (!parameterMap[stack]) {
          parameterMap[stack] = {};
        }
        parameterMap[stack][parameter] = parameters[key];
      }
    }
  }
  return parameterMap;
}
async function askUserConfirmation(ioHost, concurrency, motivation, question2) {
  await ioHost.withCorkedLogging(async () => {
    if (!TESTING && !process.stdin.isTTY) {
      throw new import_toolkit_lib14.ToolkitError(`${motivation}, but terminal (TTY) is not attached so we are unable to get a confirmation from the user`);
    }
    if (concurrency > 1) {
      throw new import_toolkit_lib14.ToolkitError(`${motivation}, but concurrency is greater than 1 so we are unable to get a confirmation from the user`);
    }
    const confirmed = await promptly2.confirm(`${chalk28.cyan(question2)} (y/n)?`);
    if (!confirmed) {
      throw new import_toolkit_lib14.ToolkitError("Aborted by user");
    }
  });
}
async function displayFlagsMessage(ioHost, toolkit, cloudExecutable) {
  const flags = await toolkit.flags(cloudExecutable);
  if (flags.every((flag) => flag.unconfiguredBehavesLike === void 0)) {
    return;
  }
  const unconfiguredFlags = flags.filter((flag) => !OBSOLETE_FLAGS.includes(flag.name)).filter((flag) => (flag.unconfiguredBehavesLike?.v2 ?? false) !== flag.recommendedValue).filter((flag) => flag.userValue === void 0);
  const numUnconfigured = unconfiguredFlags.length;
  if (numUnconfigured > 0) {
    await ioHost.defaults.warn(`${numUnconfigured} feature flags are not configured. Run 'cdk flags --unstable=flags' to learn more.`);
  }
}
function stackMetadataLogger(ioHelper, verbose) {
  const makeLogger = /* @__PURE__ */ __name((level) => {
    switch (level) {
      case "error":
        return [(m3) => ioHelper.defaults.error(m3), "Error"];
      case "warn":
        return [(m3) => ioHelper.defaults.warn(m3), "Warning"];
      default:
        return [(m3) => ioHelper.defaults.info(m3), "Info"];
    }
  }, "makeLogger");
  return async (level, msg) => {
    const [logFn, prefix2] = makeLogger(level);
    await logFn(`[${prefix2} at ${msg.id}] ${msg.entry.data}`);
    if (verbose && msg.entry.trace) {
      logFn(`  ${msg.entry.trace.join("\n  ")}`);
    }
  };
}
function requiresApproval(requireApproval, permissionChangeType) {
  return requireApproval === import_cloud_assembly_schema8.RequireApproval.ANYCHANGE || requireApproval === import_cloud_assembly_schema8.RequireApproval.BROADENING && permissionChangeType === import_toolkit_lib14.PermissionChangeType.BROADENING;
}
var path35, import_util71, import_cloud_assembly_schema8, cxapi10, import_toolkit_lib14, chalk28, chokidar2, fs37, promptly2, pLimit5, TESTING, InternalToolkit, CdkToolkit;
var init_cdk_toolkit = __esm({
  "lib/cli/cdk-toolkit.ts"() {
    "use strict";
    path35 = __toESM(require("path"));
    import_util71 = require("util");
    import_cloud_assembly_schema8 = __toESM(require_lib2());
    cxapi10 = __toESM(require_lib3());
    import_toolkit_lib14 = __toESM(require_lib12());
    chalk28 = __toESM(require_source());
    chokidar2 = __toESM(require_chokidar());
    fs37 = __toESM(require_lib13());
    promptly2 = __toESM(require_promptly());
    init_esm10();
    init_io_host2();
    init_user_configuration();
    init_api_private();
    init_api();
    init_bootstrap2();
    init_cloud_assembly3();
    init_refactor3();
    init_deploy4();
    init_list_stacks();
    init_migrate();
    init_cxapp();
    init_obsolete_flags();
    init_util8();
    init_collect_telemetry();
    init_error();
    init_messages2();
    pLimit5 = require_p_limit();
    TESTING = false;
    InternalToolkit = class extends import_toolkit_lib14.Toolkit {
      static {
        __name(this, "InternalToolkit");
      }
      constructor(sdkProvider, options) {
        super(options);
        this._sdkProvider = sdkProvider;
      }
      /**
       * Access to the AWS SDK
       * @internal
       */
      async sdkProvider(_action) {
        return this._sdkProvider;
      }
    };
    CdkToolkit = class {
      constructor(props) {
        this.props = props;
        this.ioHost = props.ioHost ?? CliIoHost.instance();
        this.toolkitStackName = props.toolkitStackName ?? DEFAULT_TOOLKIT_STACK_NAME;
        this.toolkit = new InternalToolkit(props.sdkProvider, {
          assemblyFailureAt: this.validateMetadataFailAt(),
          color: true,
          emojis: true,
          ioHost: this.ioHost,
          toolkitStackName: this.toolkitStackName,
          unstableFeatures: ["refactor", "flags"]
        });
      }
      static {
        __name(this, "CdkToolkit");
      }
      async metadata(stackName, json) {
        const stacks = await this.selectSingleStackByName(stackName);
        await printSerializedObject(this.ioHost.asIoHelper(), stacks.firstStack.manifest.metadata ?? {}, json);
      }
      async acknowledge(noticeId) {
        const acks = new Set(this.props.configuration.context.get("acknowledged-issue-numbers") ?? []);
        acks.add(Number(noticeId));
        this.props.configuration.context.set("acknowledged-issue-numbers", Array.from(acks));
        await this.props.configuration.saveContext();
      }
      async cliTelemetryStatus(versionReporting = true) {
        const args = { ["version-reporting"]: versionReporting };
        const canCollect = canCollectTelemetry(args, this.props.configuration.context);
        if (canCollect) {
          await this.ioHost.asIoHelper().defaults.info("CLI Telemetry is enabled. See https://github.com/aws/aws-cdk-cli/tree/main/packages/aws-cdk#cdk-cli-telemetry for ways to disable.");
        } else {
          await this.ioHost.asIoHelper().defaults.info("CLI Telemetry is disabled. See https://github.com/aws/aws-cdk-cli/tree/main/packages/aws-cdk#cdk-cli-telemetry for ways to enable.");
        }
      }
      async cliTelemetry(enable) {
        this.props.configuration.context.set("cli-telemetry", enable);
        await this.props.configuration.saveContext();
        await this.ioHost.asIoHelper().defaults.info(`Telemetry ${enable ? "enabled" : "disabled"}`);
      }
      async diff(options) {
        const stacks = await this.selectStacksForDiff(options.stackNames, options.exclusively);
        const strict = !!options.strict;
        const contextLines = options.contextLines || 3;
        const quiet = options.quiet || false;
        let diffs = 0;
        const parameterMap = buildParameterMap2(options.parameters);
        if (options.templatePath !== void 0) {
          if (stacks.stackCount !== 1) {
            throw new import_toolkit_lib14.ToolkitError(
              "Can only select one stack when comparing to fixed template. Use --exclusively to avoid selecting multiple stacks."
            );
          }
          if (!await fs37.pathExists(options.templatePath)) {
            throw new import_toolkit_lib14.ToolkitError(`There is no file at ${options.templatePath}`);
          }
          if (options.importExistingResources) {
            throw new import_toolkit_lib14.ToolkitError(
              "Can only use --import-existing-resources flag when comparing against deployed stacks."
            );
          }
          const template = deserializeStructure(await fs37.readFile(options.templatePath, { encoding: "UTF-8" }));
          const formatter = new DiffFormatter({
            templateInfo: {
              oldTemplate: template,
              newTemplate: stacks.firstStack
            }
          });
          if (options.securityOnly) {
            const securityDiff = formatter.formatSecurityDiff();
            if (securityDiff.permissionChangeType === import_toolkit_lib14.PermissionChangeType.BROADENING) {
              await this.ioHost.asIoHelper().defaults.warn("This deployment will make potentially sensitive changes according to your current security approval level.\nPlease confirm you intend to make the following modifications:\n");
              await this.ioHost.asIoHelper().defaults.info(securityDiff.formattedDiff);
              diffs += 1;
            }
          } else {
            const diff = formatter.formatStackDiff({
              strict,
              contextLines,
              quiet
            });
            diffs = diff.numStacksWithChanges;
            await this.ioHost.asIoHelper().defaults.info(diff.formattedDiff);
          }
        } else {
          const allMappings = options.includeMoves ? await mappingsByEnvironment(stacks.stackArtifacts, this.props.sdkProvider, true) : [];
          for (const stack of stacks.stackArtifacts) {
            const templateWithNestedStacks = await this.props.deployments.readCurrentTemplateWithNestedStacks(
              stack,
              options.compareAgainstProcessedTemplate
            );
            const currentTemplate = templateWithNestedStacks.deployedRootTemplate;
            const nestedStacks = templateWithNestedStacks.nestedStacks;
            const migrator = new ResourceMigrator({
              deployments: this.props.deployments,
              ioHelper: asIoHelper(this.ioHost, "diff")
            });
            const resourcesToImport = await migrator.tryGetResources(await this.props.deployments.resolveEnvironment(stack));
            if (resourcesToImport) {
              removeNonImportResources(stack);
            }
            let changeSet = void 0;
            if (options.changeSet) {
              let stackExists = false;
              try {
                stackExists = await this.props.deployments.stackExists({
                  stack,
                  deployName: stack.stackName,
                  tryLookupRole: true
                });
              } catch (e3) {
                await this.ioHost.asIoHelper().defaults.debug(formatErrorMessage(e3));
                if (!quiet) {
                  await this.ioHost.asIoHelper().defaults.info(
                    `Checking if the stack ${stack.stackName} exists before creating the changeset has failed, will base the diff on template differences (run again with -v to see the reason)
`
                  );
                }
                stackExists = false;
              }
              if (stackExists) {
                changeSet = await cfn_api_exports.createDiffChangeSet(asIoHelper(this.ioHost, "diff"), {
                  stack,
                  uuid: v4_default3(),
                  deployments: this.props.deployments,
                  willExecute: false,
                  sdkProvider: this.props.sdkProvider,
                  parameters: Object.assign({}, parameterMap["*"], parameterMap[stack.stackName]),
                  resourcesToImport,
                  importExistingResources: options.importExistingResources
                });
              } else {
                await this.ioHost.asIoHelper().defaults.debug(
                  `the stack '${stack.stackName}' has not been deployed to CloudFormation or describeStacks call failed, skipping changeset creation.`
                );
              }
            }
            const mappings = allMappings.find(
              (m3) => m3.environment.region === stack.environment.region && m3.environment.account === stack.environment.account
            )?.mappings ?? {};
            const formatter = new DiffFormatter({
              templateInfo: {
                oldTemplate: currentTemplate,
                newTemplate: stack,
                changeSet,
                isImport: !!resourcesToImport,
                nestedStacks,
                mappings
              }
            });
            if (options.securityOnly) {
              const securityDiff = formatter.formatSecurityDiff();
              if (securityDiff.permissionChangeType === import_toolkit_lib14.PermissionChangeType.BROADENING) {
                await this.ioHost.asIoHelper().defaults.warn("This deployment will make potentially sensitive changes according to your current security approval level.\nPlease confirm you intend to make the following modifications:\n");
                await this.ioHost.asIoHelper().defaults.info(securityDiff.formattedDiff);
                diffs += 1;
              }
            } else {
              const diff = formatter.formatStackDiff({
                strict,
                contextLines,
                quiet
              });
              await this.ioHost.asIoHelper().defaults.info(diff.formattedDiff);
              diffs += diff.numStacksWithChanges;
            }
          }
        }
        await this.ioHost.asIoHelper().defaults.info((0, import_util71.format)("\n\u2728  Number of stacks with differences: %s\n", diffs));
        return diffs && options.fail ? 1 : 0;
      }
      async deploy(options) {
        if (options.watch) {
          return this.watch(options);
        }
        if (options.progress) {
          this.ioHost.stackProgress = options.progress;
        }
        const startSynthTime = (/* @__PURE__ */ new Date()).getTime();
        const stackCollection = await this.selectStacksForDeploy(
          options.selector,
          options.exclusively,
          options.cacheCloudAssembly,
          options.ignoreNoStacks
        );
        const elapsedSynthTime = (/* @__PURE__ */ new Date()).getTime() - startSynthTime;
        await this.ioHost.asIoHelper().defaults.info(`
\u2728  Synthesis time: ${formatTime(elapsedSynthTime)}s
`);
        if (stackCollection.stackCount === 0) {
          await this.ioHost.asIoHelper().defaults.error("This app contains no stacks");
          return;
        }
        const migrator = new ResourceMigrator({
          deployments: this.props.deployments,
          ioHelper: asIoHelper(this.ioHost, "deploy")
        });
        await migrator.tryMigrateResources(stackCollection, {
          toolkitStackName: this.toolkitStackName,
          ...options
        });
        const requireApproval = options.requireApproval ?? import_cloud_assembly_schema8.RequireApproval.BROADENING;
        const parameterMap = buildParameterMap2(options.parameters);
        if (options.deploymentMethod?.method === "hotswap") {
          await this.ioHost.asIoHelper().defaults.warn(
            "\u26A0\uFE0F The --hotswap and --hotswap-fallback flags deliberately introduce CloudFormation drift to speed up deployments"
          );
          await this.ioHost.asIoHelper().defaults.warn("\u26A0\uFE0F They should only be used for development - never use them for your production Stacks!\n");
        }
        const stacks = stackCollection.stackArtifacts;
        const stackOutputs = {};
        const outputsFile = options.outputsFile;
        const buildAsset = /* @__PURE__ */ __name(async (assetNode) => {
          await this.props.deployments.buildSingleAsset(
            assetNode.assetManifestArtifact,
            assetNode.assetManifest,
            assetNode.asset,
            {
              stack: assetNode.parentStack,
              roleArn: options.roleArn,
              stackName: assetNode.parentStack.stackName
            }
          );
        }, "buildAsset");
        const publishAsset = /* @__PURE__ */ __name(async (assetNode) => {
          await this.props.deployments.publishSingleAsset(assetNode.assetManifest, assetNode.asset, {
            stack: assetNode.parentStack,
            roleArn: options.roleArn,
            stackName: assetNode.parentStack.stackName,
            forcePublish: options.force
          });
        }, "publishAsset");
        const deployStack2 = /* @__PURE__ */ __name(async (stackNode) => {
          const stack = stackNode.stack;
          if (stackCollection.stackCount !== 1) {
            await this.ioHost.asIoHelper().defaults.info(chalk28.bold(stack.displayName));
          }
          if (!stack.environment) {
            throw new import_toolkit_lib14.ToolkitError(
              `Stack ${stack.displayName} does not define an environment, and AWS credentials could not be obtained from standard locations or no region was configured.`
            );
          }
          if (Object.keys(stack.template.Resources || {}).length === 0) {
            if (!await this.props.deployments.stackExists({ stack })) {
              await this.ioHost.asIoHelper().defaults.warn("%s: stack has no resources, skipping deployment.", chalk28.bold(stack.displayName));
            } else {
              await this.ioHost.asIoHelper().defaults.warn("%s: stack has no resources, deleting existing stack.", chalk28.bold(stack.displayName));
              await this.destroy({
                selector: { patterns: [stack.hierarchicalId] },
                exclusively: true,
                force: true,
                roleArn: options.roleArn,
                fromDeploy: true
              });
            }
            return;
          }
          if (requireApproval !== import_cloud_assembly_schema8.RequireApproval.NEVER) {
            const currentTemplate = await this.props.deployments.readCurrentTemplate(stack);
            const formatter = new DiffFormatter({
              templateInfo: {
                oldTemplate: currentTemplate,
                newTemplate: stack
              }
            });
            const securityDiff = formatter.formatSecurityDiff();
            if (requiresApproval(requireApproval, securityDiff.permissionChangeType)) {
              await this.ioHost.asIoHelper().defaults.info(securityDiff.formattedDiff);
              await askUserConfirmation(
                this.ioHost,
                concurrency,
                '"--require-approval" is enabled and stack includes security-sensitive updates',
                "Do you wish to deploy these changes"
              );
            }
          }
          const notificationArns = !!options.notificationArns || !!stack.notificationArns ? (options.notificationArns ?? []).concat(stack.notificationArns ?? []) : void 0;
          for (const notificationArn of notificationArns ?? []) {
            if (!validateSnsTopicArn(notificationArn)) {
              throw new import_toolkit_lib14.ToolkitError(`Notification arn ${notificationArn} is not a valid arn for an SNS topic`);
            }
          }
          const stackIndex = stacks.indexOf(stack) + 1;
          await this.ioHost.asIoHelper().defaults.info(`${chalk28.bold(stack.displayName)}: deploying... [${stackIndex}/${stackCollection.stackCount}]`);
          const startDeployTime = (/* @__PURE__ */ new Date()).getTime();
          let tags = options.tags;
          if (!tags || tags.length === 0) {
            tags = tagsForStack(stack);
          }
          const deploySpan = await this.ioHost.asIoHelper().span(CLI_PRIVATE_SPAN.DEPLOY).begin({});
          let error5;
          let elapsedDeployTime = 0;
          try {
            let deployResult;
            let rollback = options.rollback;
            let iteration = 0;
            while (!deployResult) {
              if (++iteration > 2) {
                throw new import_toolkit_lib14.ToolkitError("This loop should have stabilized in 2 iterations, but didn't. If you are seeing this error, please report it at https://github.com/aws/aws-cdk/issues/new/choose");
              }
              const r3 = await this.props.deployments.deployStack({
                stack,
                deployName: stack.stackName,
                roleArn: options.roleArn,
                toolkitStackName: options.toolkitStackName,
                reuseAssets: options.reuseAssets,
                notificationArns,
                tags,
                execute: options.execute,
                changeSetName: options.changeSetName,
                deploymentMethod: options.deploymentMethod,
                forceDeployment: options.force,
                parameters: Object.assign({}, parameterMap["*"], parameterMap[stack.stackName]),
                usePreviousParameters: options.usePreviousParameters,
                rollback,
                extraUserAgent: options.extraUserAgent,
                assetParallelism: options.assetParallelism,
                ignoreNoStacks: options.ignoreNoStacks
              });
              switch (r3.type) {
                case "did-deploy-stack":
                  deployResult = r3;
                  break;
                case "failpaused-need-rollback-first": {
                  const motivation = r3.reason === "replacement" ? `Stack is in a paused fail state (${r3.status}) and change includes a replacement which cannot be deployed with "--no-rollback"` : `Stack is in a paused fail state (${r3.status}) and command line arguments do not include "--no-rollback"`;
                  if (options.force) {
                    await this.ioHost.asIoHelper().defaults.warn(`${motivation}. Rolling back first (--force).`);
                  } else {
                    await askUserConfirmation(
                      this.ioHost,
                      concurrency,
                      motivation,
                      `${motivation}. Roll back first and then proceed with deployment`
                    );
                  }
                  await this.rollback({
                    selector: { patterns: [stack.hierarchicalId] },
                    toolkitStackName: options.toolkitStackName,
                    force: options.force
                  });
                  rollback = true;
                  break;
                }
                case "replacement-requires-rollback": {
                  const motivation = 'Change includes a replacement which cannot be deployed with "--no-rollback"';
                  if (options.force) {
                    await this.ioHost.asIoHelper().defaults.warn(`${motivation}. Proceeding with regular deployment (--force).`);
                  } else {
                    await askUserConfirmation(
                      this.ioHost,
                      concurrency,
                      motivation,
                      `${motivation}. Perform a regular deployment`
                    );
                  }
                  rollback = true;
                  break;
                }
                default:
                  throw new import_toolkit_lib14.ToolkitError(`Unexpected result type from deployStack: ${JSON.stringify(r3)}. If you are seeing this error, please report it at https://github.com/aws/aws-cdk/issues/new/choose`);
              }
            }
            const message2 = deployResult.noOp ? " \u2705  %s (no changes)" : " \u2705  %s";
            await this.ioHost.asIoHelper().defaults.info(chalk28.green("\n" + message2), stack.displayName);
            elapsedDeployTime = (/* @__PURE__ */ new Date()).getTime() - startDeployTime;
            await this.ioHost.asIoHelper().defaults.info(`
\u2728  Deployment time: ${formatTime(elapsedDeployTime)}s
`);
            if (Object.keys(deployResult.outputs).length > 0) {
              await this.ioHost.asIoHelper().defaults.info("Outputs:");
              stackOutputs[stack.stackName] = deployResult.outputs;
            }
            for (const name of Object.keys(deployResult.outputs).sort()) {
              const value = deployResult.outputs[name];
              await this.ioHost.asIoHelper().defaults.info(`${chalk28.cyan(stack.id)}.${chalk28.cyan(name)} = ${chalk28.underline(chalk28.cyan(value))}`);
            }
            await this.ioHost.asIoHelper().defaults.info("Stack ARN:");
            await this.ioHost.asIoHelper().defaults.result(deployResult.stackArn);
          } catch (e3) {
            const wrappedError = new import_toolkit_lib14.ToolkitError(
              [`\u274C  ${chalk28.bold(stack.stackName)} failed:`, ...e3.name ? [`${e3.name}:`] : [], formatErrorMessage(e3)].join(" ")
            );
            error5 = {
              name: cdkCliErrorName(wrappedError.name)
            };
            throw wrappedError;
          } finally {
            await deploySpan.end({ error: error5 });
            if (options.cloudWatchLogMonitor) {
              const foundLogGroupsResult = await findCloudWatchLogGroups(this.props.sdkProvider, asIoHelper(this.ioHost, "deploy"), stack);
              options.cloudWatchLogMonitor.addLogGroups(
                foundLogGroupsResult.env,
                foundLogGroupsResult.sdk,
                foundLogGroupsResult.logGroupNames
              );
            }
            if (outputsFile) {
              fs37.ensureFileSync(outputsFile);
              await fs37.writeJson(outputsFile, stackOutputs, {
                spaces: 2,
                encoding: "utf8"
              });
            }
          }
          await this.ioHost.asIoHelper().defaults.info(`
\u2728  Total time: ${formatTime(elapsedSynthTime + elapsedDeployTime)}s
`);
        }, "deployStack");
        const assetBuildTime = options.assetBuildTime ?? "all-before-deploy" /* ALL_BEFORE_DEPLOY */;
        const prebuildAssets = assetBuildTime === "all-before-deploy" /* ALL_BEFORE_DEPLOY */;
        const concurrency = options.concurrency || 1;
        if (concurrency > 1) {
          this.ioHost.stackProgress = "events" /* EVENTS */;
          if (options.progress && options.progress != "events" /* EVENTS */) {
            await this.ioHost.asIoHelper().defaults.warn('\u26A0\uFE0F The --concurrency flag only supports --progress "events". Switching to "events".');
          }
        }
        const stacksAndTheirAssetManifests = stacks.flatMap((stack) => [
          stack,
          ...stack.dependencies.filter((x3) => cxapi10.AssetManifestArtifact.isAssetManifestArtifact(x3))
        ]);
        const workGraph = new WorkGraphBuilder(
          asIoHelper(this.ioHost, "deploy"),
          prebuildAssets
        ).build(stacksAndTheirAssetManifests);
        if (!options.force) {
          await this.removePublishedAssets(workGraph, options);
        }
        const graphConcurrency = {
          "stack": concurrency,
          "asset-build": 1,
          // This will be CPU-bound/memory bound, mostly matters for Docker builds
          "asset-publish": options.assetParallelism ?? true ? 8 : 1
          // This will be I/O-bound, 8 in parallel seems reasonable
        };
        await workGraph.doParallel(graphConcurrency, {
          deployStack: deployStack2,
          buildAsset,
          publishAsset
        });
      }
      /**
       * Detect infrastructure drift for the given stack(s)
       */
      async drift(options) {
        const driftResults = await this.toolkit.drift(this.props.cloudExecutable, {
          stacks: {
            patterns: options.selector.patterns,
            strategy: options.selector.patterns.length > 0 ? "pattern-match" /* PATTERN_MATCH */ : "all-stacks" /* ALL_STACKS */
          }
        });
        const totalDrifts = Object.values(driftResults).reduce((total, current) => total + (current.numResourcesWithDrift ?? 0), 0);
        return totalDrifts > 0 && options.fail ? 1 : 0;
      }
      /**
       * Roll back the given stack or stacks.
       */
      async rollback(options) {
        const startSynthTime = (/* @__PURE__ */ new Date()).getTime();
        const stackCollection = await this.selectStacksForDeploy(options.selector, true);
        const elapsedSynthTime = (/* @__PURE__ */ new Date()).getTime() - startSynthTime;
        await this.ioHost.asIoHelper().defaults.info(`
\u2728  Synthesis time: ${formatTime(elapsedSynthTime)}s
`);
        if (stackCollection.stackCount === 0) {
          await this.ioHost.asIoHelper().defaults.error("No stacks selected");
          return;
        }
        let anyRollbackable = false;
        for (const stack of stackCollection.stackArtifacts) {
          await this.ioHost.asIoHelper().defaults.info("Rolling back %s", chalk28.bold(stack.displayName));
          const startRollbackTime = (/* @__PURE__ */ new Date()).getTime();
          try {
            const result2 = await this.props.deployments.rollbackStack({
              stack,
              roleArn: options.roleArn,
              toolkitStackName: options.toolkitStackName,
              orphanFailedResources: options.force,
              validateBootstrapStackVersion: options.validateBootstrapStackVersion,
              orphanLogicalIds: options.orphanLogicalIds
            });
            if (!result2.notInRollbackableState) {
              anyRollbackable = true;
            }
            const elapsedRollbackTime = (/* @__PURE__ */ new Date()).getTime() - startRollbackTime;
            await this.ioHost.asIoHelper().defaults.info(`
\u2728  Rollback time: ${formatTime(elapsedRollbackTime).toString()}s
`);
          } catch (e3) {
            await this.ioHost.asIoHelper().defaults.error("\n \u274C  %s failed: %s", chalk28.bold(stack.displayName), formatErrorMessage(e3));
            throw new import_toolkit_lib14.ToolkitError("Rollback failed (use --force to orphan failing resources)");
          }
        }
        if (!anyRollbackable) {
          throw new import_toolkit_lib14.ToolkitError("No stacks were in a state that could be rolled back");
        }
      }
      async watch(options) {
        const rootDir = path35.dirname(path35.resolve(PROJECT_CONFIG));
        const ioHelper = asIoHelper(this.ioHost, "watch");
        await this.ioHost.asIoHelper().defaults.debug("root directory used for 'watch' is: %s", rootDir);
        const watchSettings = this.props.configuration.settings.get(["watch"]);
        if (!watchSettings) {
          throw new import_toolkit_lib14.ToolkitError(
            `Cannot use the 'watch' command without specifying at least one directory to monitor. Make sure to add a "watch" key to your cdk.json`
          );
        }
        const watchIncludes = this.patternsArrayForWatch(watchSettings.include, {
          rootDir,
          returnRootDirIfEmpty: true
        });
        await this.ioHost.asIoHelper().defaults.debug("'include' patterns for 'watch': %s", watchIncludes);
        const outputDir = this.props.configuration.settings.get(["output"]);
        const watchExcludes = this.patternsArrayForWatch(watchSettings.exclude, {
          rootDir,
          returnRootDirIfEmpty: false
        }).concat(`${outputDir}/**`, "**/.*", "**/.*/**", "**/node_modules/**");
        await this.ioHost.asIoHelper().defaults.debug("'exclude' patterns for 'watch': %s", watchExcludes);
        let latch = "pre-ready";
        const cloudWatchLogMonitor = options.traceLogs ? new CloudWatchLogEventMonitor({
          ioHelper
        }) : void 0;
        const deployAndWatch = /* @__PURE__ */ __name(async () => {
          latch = "deploying";
          await cloudWatchLogMonitor?.deactivate();
          await this.invokeDeployFromWatch(options, cloudWatchLogMonitor);
          while (latch === "queued") {
            latch = "deploying";
            await this.ioHost.asIoHelper().defaults.info("Detected file changes during deployment. Invoking 'cdk deploy' again");
            await this.invokeDeployFromWatch(options, cloudWatchLogMonitor);
          }
          latch = "open";
          await cloudWatchLogMonitor?.activate();
        }, "deployAndWatch");
        chokidar2.watch(watchIncludes, {
          ignored: watchExcludes,
          cwd: rootDir
        }).on("ready", async () => {
          latch = "open";
          await this.ioHost.asIoHelper().defaults.debug("'watch' received the 'ready' event. From now on, all file changes will trigger a deployment");
          await this.ioHost.asIoHelper().defaults.info("Triggering initial 'cdk deploy'");
          await deployAndWatch();
        }).on("all", async (event, filePath) => {
          if (latch === "pre-ready") {
            await this.ioHost.asIoHelper().defaults.info(`'watch' is observing ${event === "addDir" ? "directory" : "the file"} '%s' for changes`, filePath);
          } else if (latch === "open") {
            await this.ioHost.asIoHelper().defaults.info("Detected change to '%s' (type: %s). Triggering 'cdk deploy'", filePath, event);
            await deployAndWatch();
          } else {
            latch = "queued";
            await this.ioHost.asIoHelper().defaults.info(
              "Detected change to '%s' (type: %s) while 'cdk deploy' is still running. Will queue for another deployment after this one finishes",
              filePath,
              event
            );
          }
        });
      }
      async import(options) {
        const stacks = await this.selectStacksForDeploy(options.selector, true, true, false);
        if (options.progress) {
          this.ioHost.stackProgress = options.progress;
        }
        if (stacks.stackCount > 1) {
          throw new import_toolkit_lib14.ToolkitError(
            `Stack selection is ambiguous, please choose a specific stack for import [${stacks.stackArtifacts.map((x3) => x3.id).join(", ")}]`
          );
        }
        if (!process.stdout.isTTY && !options.resourceMappingFile) {
          throw new import_toolkit_lib14.ToolkitError("--resource-mapping is required when input is not a terminal");
        }
        const stack = stacks.stackArtifacts[0];
        await this.ioHost.asIoHelper().defaults.info(chalk28.bold(stack.displayName));
        const resourceImporter = new ResourceImporter(stack, {
          deployments: this.props.deployments,
          ioHelper: asIoHelper(this.ioHost, "import")
        });
        const { additions, hasNonAdditions } = await resourceImporter.discoverImportableResources(options.force);
        if (additions.length === 0) {
          await this.ioHost.asIoHelper().defaults.warn(
            "%s: no new resources compared to the currently deployed stack, skipping import.",
            chalk28.bold(stack.displayName)
          );
          return;
        }
        const actualImport = !options.resourceMappingFile ? await resourceImporter.askForResourceIdentifiers(additions) : await resourceImporter.loadResourceIdentifiers(additions, options.resourceMappingFile);
        if (actualImport.importResources.length === 0) {
          await this.ioHost.asIoHelper().defaults.warn("No resources selected for import.");
          return;
        }
        if (options.recordResourceMapping) {
          const outputFile = options.recordResourceMapping;
          fs37.ensureFileSync(outputFile);
          await fs37.writeJson(outputFile, actualImport.resourceMap, {
            spaces: 2,
            encoding: "utf8"
          });
          await this.ioHost.asIoHelper().defaults.info("%s: mapping file written.", outputFile);
          return;
        }
        await this.ioHost.asIoHelper().defaults.info("%s: importing resources into stack...", chalk28.bold(stack.displayName));
        const tags = tagsForStack(stack);
        await resourceImporter.importResourcesFromMap(actualImport, {
          roleArn: options.roleArn,
          tags,
          deploymentMethod: options.deploymentMethod,
          usePreviousParameters: true,
          rollback: options.rollback
        });
        await this.ioHost.asIoHelper().defaults.info(
          `Import operation complete. We recommend you run a ${chalk28.blueBright("drift detection")} operation to confirm your CDK app resource definitions are up-to-date. Read more here: ` + chalk28.underline.blueBright(
            "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/detect-drift-stack.html"
          )
        );
        if (actualImport.importResources.length < additions.length) {
          await this.ioHost.asIoHelper().defaults.info("");
          await this.ioHost.asIoHelper().defaults.warn(
            `Some resources were skipped. Run another ${chalk28.blueBright("cdk import")} or a ${chalk28.blueBright("cdk deploy")} to bring the stack up-to-date with your CDK app definition.`
          );
        } else if (hasNonAdditions) {
          await this.ioHost.asIoHelper().defaults.info("");
          await this.ioHost.asIoHelper().defaults.warn(
            `Your app has pending updates or deletes excluded from this import operation. Run a ${chalk28.blueBright("cdk deploy")} to bring the stack up-to-date with your CDK app definition.`
          );
        }
      }
      async destroy(options) {
        let stacks = await this.selectStacksForDestroy(options.selector, options.exclusively);
        stacks = stacks.reversed();
        if (!options.force) {
          const confirmed = await promptly2.confirm(
            `Are you sure you want to delete: ${chalk28.blue(stacks.stackArtifacts.map((s3) => s3.hierarchicalId).join(", "))} (y/n)?`
          );
          if (!confirmed) {
            return;
          }
        }
        const action = options.fromDeploy ? "deploy" : "destroy";
        for (const [index, stack] of stacks.stackArtifacts.entries()) {
          await this.ioHost.asIoHelper().defaults.info(chalk28.green("%s: destroying... [%s/%s]"), chalk28.blue(stack.displayName), index + 1, stacks.stackCount);
          try {
            await this.props.deployments.destroyStack({
              stack,
              deployName: stack.stackName,
              roleArn: options.roleArn
            });
            await this.ioHost.asIoHelper().defaults.info(chalk28.green(`
 \u2705  %s: ${action}ed`), chalk28.blue(stack.displayName));
          } catch (e3) {
            await this.ioHost.asIoHelper().defaults.error(`
 \u274C  %s: ${action} failed`, chalk28.blue(stack.displayName), e3);
            throw e3;
          }
        }
      }
      async list(selectors, options = {}) {
        const stacks = await listStacks(this, {
          selectors
        });
        if (options.long && options.showDeps) {
          await printSerializedObject(this.ioHost.asIoHelper(), stacks, options.json ?? false);
          return 0;
        }
        if (options.showDeps) {
          const stackDeps = stacks.map((stack) => ({
            id: stack.id,
            dependencies: stack.dependencies
          }));
          await printSerializedObject(this.ioHost.asIoHelper(), stackDeps, options.json ?? false);
          return 0;
        }
        if (options.long) {
          const long = stacks.map((stack) => ({
            id: stack.id,
            name: stack.name,
            environment: stack.environment
          }));
          await printSerializedObject(this.ioHost.asIoHelper(), long, options.json ?? false);
          return 0;
        }
        for (const stack of stacks) {
          await this.ioHost.asIoHelper().defaults.result(stack.id);
        }
        return 0;
      }
      /**
       * Synthesize the given set of stacks (called when the user runs 'cdk synth')
       *
       * INPUT: Stack names can be supplied using a glob filter. If no stacks are
       * given, all stacks from the application are implicitly selected.
       *
       * OUTPUT: If more than one stack ends up being selected, an output directory
       * should be supplied, where the templates will be written.
       */
      async synth(stackNames, exclusively, quiet, autoValidate, json) {
        const stacks = await this.selectStacksForDiff(stackNames, exclusively, autoValidate);
        if (stacks.stackCount === 1) {
          if (!quiet) {
            await printSerializedObject(this.ioHost.asIoHelper(), obscureTemplate(stacks.firstStack.template), json ?? false);
          }
          await displayFlagsMessage(this.ioHost.asIoHelper(), this.toolkit, this.props.cloudExecutable);
          return void 0;
        }
        await this.ioHost.asIoHelper().defaults.info(chalk28.green(`Successfully synthesized to ${chalk28.blue(path35.resolve(stacks.assembly.directory))}`));
        await this.ioHost.asIoHelper().defaults.info(
          `Supply a stack id (${stacks.stackArtifacts.map((s3) => chalk28.green(s3.hierarchicalId)).join(", ")}) to display its template.`
        );
        await displayFlagsMessage(this.ioHost.asIoHelper(), this.toolkit, this.props.cloudExecutable);
        return void 0;
      }
      /**
       * Bootstrap the CDK Toolkit stack in the accounts used by the specified stack(s).
       *
       * @param userEnvironmentSpecs - environment names that need to have toolkit support
       *             provisioned, as a glob filter. If none is provided, all stacks are implicitly selected.
       * @param options - The name, role ARN, bootstrapping parameters, etc. to be used for the CDK Toolkit stack.
       */
      async bootstrap(userEnvironmentSpecs, options) {
        const bootstrapper = new Bootstrapper(options.source, asIoHelper(this.ioHost, "bootstrap"));
        const environments = await this.defineEnvironments(userEnvironmentSpecs);
        const limit = pLimit5(20);
        await Promise.all(environments.map((environment) => limit(async () => {
          await this.ioHost.asIoHelper().defaults.info(chalk28.green(" \u23F3  Bootstrapping environment %s..."), chalk28.blue(environment.name));
          try {
            const result2 = await bootstrapper.bootstrapEnvironment(environment, this.props.sdkProvider, options);
            const message2 = result2.noOp ? " \u2705  Environment %s bootstrapped (no changes)." : " \u2705  Environment %s bootstrapped.";
            await this.ioHost.asIoHelper().defaults.info(chalk28.green(message2), chalk28.blue(environment.name));
          } catch (e3) {
            await this.ioHost.asIoHelper().defaults.error(" \u274C  Environment %s failed bootstrapping: %s", chalk28.blue(environment.name), e3);
            throw e3;
          }
        })));
      }
      /**
       * Garbage collects assets from a CDK app's environment
       * @param options - Options for Garbage Collection
       */
      async garbageCollect(userEnvironmentSpecs, options) {
        const environments = await this.defineEnvironments(userEnvironmentSpecs);
        for (const environment of environments) {
          await this.ioHost.asIoHelper().defaults.info(chalk28.green(" \u23F3  Garbage Collecting environment %s..."), chalk28.blue(environment.name));
          const gc = new GarbageCollector({
            sdkProvider: this.props.sdkProvider,
            ioHelper: asIoHelper(this.ioHost, "gc"),
            resolvedEnvironment: environment,
            bootstrapStackName: options.bootstrapStackName,
            rollbackBufferDays: options.rollbackBufferDays,
            createdBufferDays: options.createdBufferDays,
            action: options.action ?? "full",
            type: options.type ?? "all",
            confirm: options.confirm ?? true
          });
          await gc.garbageCollect();
        }
      }
      async defineEnvironments(userEnvironmentSpecs) {
        const environmentSpecs = userEnvironmentSpecs.length > 0 ? [...userEnvironmentSpecs] : ["**"];
        const globSpecs = partition(environmentSpecs, looksLikeGlob);
        if (globSpecs.length > 0 && !this.props.cloudExecutable.hasApp) {
          if (userEnvironmentSpecs.length > 0) {
            throw new import_toolkit_lib14.ToolkitError(
              `'${globSpecs}' is not an environment name. Specify an environment name like 'aws://123456789012/us-east-1', or run in a directory with 'cdk.json' to use wildcards.`
            );
          } else {
            throw new import_toolkit_lib14.ToolkitError(
              "Specify an environment name like 'aws://123456789012/us-east-1', or run in a directory with 'cdk.json'."
            );
          }
        }
        const environments = [...environmentsFromDescriptors2(environmentSpecs)];
        if (this.props.cloudExecutable.hasApp) {
          environments.push(
            ...await globEnvironmentsFromStacks(await this.selectStacksForList([]), globSpecs, this.props.sdkProvider)
          );
        }
        return environments;
      }
      /**
       * Migrates a CloudFormation stack/template to a CDK app
       * @param options - Options for CDK app creation
       */
      async migrate(options) {
        await this.ioHost.asIoHelper().defaults.warn("This command is an experimental feature.");
        const language = options.language?.toLowerCase() ?? "typescript";
        const environment = setEnvironment(options.account, options.region);
        let generateTemplateOutput;
        let cfn;
        let templateToDelete;
        try {
          const scanType = parseSourceOptions(options.fromPath, options.fromStack, options.stackName).source;
          if (scanType == "scan" /* SCAN */) {
            generateTemplateOutput = await generateTemplate({
              stackName: options.stackName,
              filters: options.filter,
              fromScan: options.fromScan,
              sdkProvider: this.props.sdkProvider,
              environment,
              ioHelper: this.ioHost.asIoHelper()
            });
            templateToDelete = generateTemplateOutput.templateId;
          } else if (scanType == "path" /* PATH */) {
            const templateBody = readFromPath(options.fromPath);
            const parsedTemplate = deserializeStructure(templateBody);
            const templateId = parsedTemplate.Metadata?.TemplateId?.toString();
            if (templateId) {
              cfn = new CfnTemplateGeneratorProvider(await buildCfnClient(this.props.sdkProvider, environment), this.ioHost.asIoHelper());
              const generatedTemplateSummary = await cfn.describeGeneratedTemplate(templateId);
              generateTemplateOutput = buildGeneratedTemplateOutput(
                generatedTemplateSummary,
                templateBody,
                generatedTemplateSummary.GeneratedTemplateId
              );
            } else {
              generateTemplateOutput = {
                migrateJson: {
                  templateBody,
                  source: "localfile"
                }
              };
            }
          } else if (scanType == "stack" /* STACK */) {
            const template = await readFromStack(options.stackName, this.props.sdkProvider, environment);
            if (!template) {
              throw new import_toolkit_lib14.ToolkitError(`No template found for stack-name: ${options.stackName}`);
            }
            generateTemplateOutput = {
              migrateJson: {
                templateBody: template,
                source: options.stackName
              }
            };
          } else {
            throw new import_toolkit_lib14.ToolkitError(`Invalid source option provided: ${scanType}`);
          }
          const stack = generateStack(generateTemplateOutput.migrateJson.templateBody, options.stackName, language);
          await this.ioHost.asIoHelper().defaults.info(chalk28.green(" \u23F3  Generating CDK app for %s..."), chalk28.blue(options.stackName));
          await generateCdkApp(this.ioHost.asIoHelper(), options.stackName, stack, language, options.outputPath, options.compress);
          if (generateTemplateOutput) {
            writeMigrateJsonFile(options.outputPath, options.stackName, generateTemplateOutput.migrateJson);
          }
          if (isThereAWarning(generateTemplateOutput)) {
            await this.ioHost.asIoHelper().defaults.warn(
              " \u26A0\uFE0F  Some resources could not be migrated completely. Please review the README.md file for more information."
            );
            appendWarningsToReadme(
              `${path35.join(options.outputPath ?? process.cwd(), options.stackName)}/README.md`,
              generateTemplateOutput.resources
            );
          }
        } catch (e3) {
          await this.ioHost.asIoHelper().defaults.error(" \u274C  Migrate failed for `%s`: %s", options.stackName, e3.message);
          throw e3;
        } finally {
          if (templateToDelete) {
            if (!cfn) {
              cfn = new CfnTemplateGeneratorProvider(await buildCfnClient(this.props.sdkProvider, environment), this.ioHost.asIoHelper());
            }
            if (!process.env.MIGRATE_INTEG_TEST) {
              await cfn.deleteGeneratedTemplate(templateToDelete);
            }
          }
        }
      }
      async refactor(options) {
        if (options.revert && !options.overrideFile) {
          throw new import_toolkit_lib14.ToolkitError("The --revert option can only be used with the --override-file option.");
        }
        try {
          const patterns = options.stacks?.patterns ?? [];
          await this.toolkit.refactor(this.props.cloudExecutable, {
            dryRun: options.dryRun,
            stacks: {
              patterns,
              strategy: patterns.length > 0 ? "pattern-match" /* PATTERN_MATCH */ : "all-stacks" /* ALL_STACKS */
            },
            force: options.force,
            additionalStackNames: options.additionalStackNames,
            overrides: readOverrides(options.overrideFile, options.revert),
            roleArn: options.roleArn
          });
        } catch (e3) {
          await this.ioHost.asIoHelper().defaults.error(e3.message);
          throw e3;
        }
        return 0;
        function readOverrides(filePath, revert = false) {
          if (filePath == null) {
            return [];
          }
          if (!fs37.pathExistsSync(filePath)) {
            throw new import_toolkit_lib14.ToolkitError(`The mapping file ${filePath} does not exist`);
          }
          const groups = parseMappingGroups(fs37.readFileSync(filePath).toString("utf-8"));
          return revert ? groups.map((group) => ({
            ...group,
            resources: Object.fromEntries(Object.entries(group.resources ?? {}).map(([src, dst]) => [dst, src]))
          })) : groups;
        }
        __name(readOverrides, "readOverrides");
      }
      async selectStacksForList(patterns) {
        const assembly = await this.assembly();
        const stacks = await assembly.selectStacks({ patterns }, { defaultBehavior: "all" /* AllStacks */ });
        return stacks;
      }
      async selectStacksForDeploy(selector, exclusively, cacheCloudAssembly, ignoreNoStacks) {
        const assembly = await this.assembly(cacheCloudAssembly);
        const stacks = await assembly.selectStacks(selector, {
          extend: exclusively ? 0 /* None */ : 1 /* Upstream */,
          defaultBehavior: "single" /* OnlySingle */,
          ignoreNoStacks
        });
        this.validateStacksSelected(stacks, selector.patterns);
        await this.validateStacks(stacks);
        return stacks;
      }
      async selectStacksForDiff(stackNames, exclusively, autoValidate) {
        const assembly = await this.assembly();
        const selectedForDiff = await assembly.selectStacks(
          { patterns: stackNames },
          {
            extend: exclusively ? 0 /* None */ : 1 /* Upstream */,
            defaultBehavior: "main" /* MainAssembly */
          }
        );
        const allStacks = await this.selectStacksForList([]);
        const autoValidateStacks = autoValidate ? allStacks.filter((art) => art.validateOnSynth ?? false) : new StackCollection(assembly, []);
        this.validateStacksSelected(selectedForDiff.concat(autoValidateStacks), stackNames);
        await this.validateStacks(selectedForDiff.concat(autoValidateStacks));
        return selectedForDiff;
      }
      async selectStacksForDestroy(selector, exclusively) {
        const assembly = await this.assembly();
        const stacks = await assembly.selectStacks(selector, {
          extend: exclusively ? 0 /* None */ : 2 /* Downstream */,
          defaultBehavior: "single" /* OnlySingle */
        });
        return stacks;
      }
      /**
       * Validate the stacks for errors and warnings according to the CLI's current settings
       */
      async validateStacks(stacks) {
        const failAt = this.validateMetadataFailAt();
        await stacks.validateMetadata(failAt, stackMetadataLogger(this.ioHost.asIoHelper(), this.props.verbose));
      }
      validateMetadataFailAt() {
        let failAt = "error";
        if (this.props.ignoreErrors) {
          failAt = "none";
        }
        if (this.props.strict) {
          failAt = "warn";
        }
        return failAt;
      }
      /**
       * Validate that if a user specified a stack name there exists at least 1 stack selected
       */
      validateStacksSelected(stacks, stackNames) {
        if (stackNames.length != 0 && stacks.stackCount == 0) {
          throw new import_toolkit_lib14.ToolkitError(`No stacks match the name(s) ${stackNames}`);
        }
      }
      /**
       * Select a single stack by its name
       */
      async selectSingleStackByName(stackName) {
        const assembly = await this.assembly();
        const stacks = await assembly.selectStacks(
          { patterns: [stackName] },
          {
            extend: 0 /* None */,
            defaultBehavior: "none" /* None */
          }
        );
        if (stacks.stackCount > 1) {
          throw new import_toolkit_lib14.ToolkitError(`This command requires exactly one stack and we matched more than one: ${stacks.stackIds}`);
        }
        return assembly.stackById(stacks.firstStack.id);
      }
      assembly(cacheCloudAssembly) {
        return this.props.cloudExecutable.synthesize(cacheCloudAssembly);
      }
      patternsArrayForWatch(patterns, options) {
        const patternsArray = patterns !== void 0 ? Array.isArray(patterns) ? patterns : [patterns] : [];
        return patternsArray.length > 0 ? patternsArray : options.returnRootDirIfEmpty ? [options.rootDir] : [];
      }
      async invokeDeployFromWatch(options, cloudWatchLogMonitor) {
        const deployOptions = {
          ...options,
          requireApproval: import_cloud_assembly_schema8.RequireApproval.NEVER,
          // if 'watch' is called by invoking 'cdk deploy --watch',
          // we need to make sure to not call 'deploy' with 'watch' again,
          // as that would lead to a cycle
          watch: false,
          cloudWatchLogMonitor,
          cacheCloudAssembly: false,
          extraUserAgent: `cdk-watch/hotswap-${options.deploymentMethod?.method === "hotswap" ? "on" : "off"}`,
          concurrency: options.concurrency
        };
        try {
          await this.deploy(deployOptions);
        } catch {
        }
      }
      /**
       * Remove the asset publishing and building from the work graph for assets that are already in place
       */
      async removePublishedAssets(graph, options) {
        await graph.removeUnnecessaryAssets((assetNode) => this.props.deployments.isSingleAssetPublished(assetNode.assetManifest, assetNode.asset, {
          stack: assetNode.parentStack,
          roleArn: options.roleArn,
          stackName: assetNode.parentStack.stackName
        }));
      }
    };
    __name(printSerializedObject, "printSerializedObject");
    __name(buildParameterMap2, "buildParameterMap");
    __name(askUserConfirmation, "askUserConfirmation");
    __name(displayFlagsMessage, "displayFlagsMessage");
    __name(stackMetadataLogger, "stackMetadataLogger");
    __name(requiresApproval, "requiresApproval");
  }
});

// lib/cli/util/console-formatters.ts
function formatAsBanner(msgs) {
  const printLen = /* @__PURE__ */ __name((str) => stripAnsi(str).length, "printLen");
  if (msgs.length === 0) {
    return [];
  }
  const leftPad = "*** ";
  const rightPad = " ***";
  const bannerWidth = printLen(leftPad) + printLen(rightPad) + msgs.reduce((acc, msg) => Math.max(acc, printLen(msg)), 0);
  const bannerLines = [];
  bannerLines.push("*".repeat(bannerWidth));
  msgs.forEach((msg) => {
    const padding = " ".repeat(bannerWidth - (printLen(msg) + printLen(leftPad) + printLen(rightPad)));
    bannerLines.push("".concat(leftPad, msg, padding, rightPad));
  });
  bannerLines.push("*".repeat(bannerWidth));
  return bannerLines;
}
var stripAnsi;
var init_console_formatters = __esm({
  "lib/cli/util/console-formatters.ts"() {
    "use strict";
    stripAnsi = require_strip_ansi();
    __name(formatAsBanner, "formatAsBanner");
  }
});

// lib/cli/util/npm.ts
async function execNpmView(currentVersion) {
  try {
    const [latestResult, currentResult] = await Promise.all([
      exec2("npm view aws-cdk@latest version", { timeout: 3e3 }),
      exec2(`npm view aws-cdk@${currentVersion} name version deprecated --json`, { timeout: 3e3 })
    ]);
    if (latestResult.stderr && latestResult.stderr.trim().length > 0) {
      throw new import_toolkit_lib15.ToolkitError(`npm view command for latest version failed: ${latestResult.stderr.trim()}`);
    }
    if (currentResult.stderr && currentResult.stderr.trim().length > 0) {
      throw new import_toolkit_lib15.ToolkitError(`npm view command for current version failed: ${currentResult.stderr.trim()}`);
    }
    const latestVersion = latestResult.stdout;
    const currentInfo = JSON.parse(currentResult.stdout);
    return {
      latestVersion,
      deprecated: currentInfo.deprecated
    };
  } catch (err) {
    throw err;
  }
}
var import_child_process2, import_util73, import_toolkit_lib15, exec2;
var init_npm = __esm({
  "lib/cli/util/npm.ts"() {
    "use strict";
    import_child_process2 = require("child_process");
    import_util73 = require("util");
    import_toolkit_lib15 = __toESM(require_lib12());
    exec2 = (0, import_util73.promisify)(import_child_process2.exec);
    __name(execNpmView, "execNpmView");
  }
});

// lib/cli/display-version.ts
async function getVersionMessages(currentVersion, cacheFile) {
  if (!await cacheFile.hasExpired()) {
    return [];
  }
  const packageInfo = await execNpmView(currentVersion);
  const latestVersion = packageInfo.latestVersion;
  await cacheFile.update(JSON.stringify(packageInfo));
  if (semver5.eq(latestVersion, currentVersion)) {
    return [];
  }
  const versionMessage = [
    packageInfo.deprecated ? `${chalk29.red(packageInfo.deprecated)}` : void 0,
    `Newer version of CDK is available [${chalk29.green(latestVersion)}]`,
    getMajorVersionUpgradeMessage(currentVersion),
    "Upgrade recommended (npm install -g aws-cdk)"
  ].filter(Boolean);
  return versionMessage;
}
function getMajorVersionUpgradeMessage(currentVersion) {
  const currentMajorVersion = semver5.major(currentVersion);
  if (UPGRADE_DOCUMENTATION_LINKS[currentMajorVersion]) {
    return `Information about upgrading from version ${currentMajorVersion}.x to version ${currentMajorVersion + 1}.x is available here: ${UPGRADE_DOCUMENTATION_LINKS[currentMajorVersion]}`;
  }
}
async function displayVersionMessage(ioHelper, currentVersion = versionNumber(), versionCheckCache) {
  if (!process.stdout.isTTY || process.env.CDK_DISABLE_VERSION_CHECK) {
    return;
  }
  try {
    const versionMessages = await getVersionMessages(currentVersion, versionCheckCache ?? new VersionCheckTTL());
    for (const e3 of formatAsBanner(versionMessages)) {
      await ioHelper.defaults.info(e3);
    }
  } catch (err) {
    await ioHelper.defaults.debug(`Could not run version check - ${err.message}`);
  }
}
var path36, import_toolkit_lib16, chalk29, fs38, semver5, ONE_DAY_IN_SECONDS, UPGRADE_DOCUMENTATION_LINKS, VersionCheckTTL;
var init_display_version = __esm({
  "lib/cli/display-version.ts"() {
    "use strict";
    path36 = __toESM(require("path"));
    import_toolkit_lib16 = __toESM(require_lib12());
    chalk29 = __toESM(require_source());
    fs38 = __toESM(require_lib13());
    semver5 = __toESM(require_semver4());
    init_util8();
    init_console_formatters();
    init_npm();
    ONE_DAY_IN_SECONDS = 1 * 24 * 60 * 60;
    UPGRADE_DOCUMENTATION_LINKS = {
      1: "https://docs.aws.amazon.com/cdk/v2/guide/migrating-v2.html"
    };
    VersionCheckTTL = class _VersionCheckTTL {
      static {
        __name(this, "VersionCheckTTL");
      }
      static timestampFilePath() {
        return path36.join(cdkCacheDir(), "repo-version-ttl");
      }
      constructor(file, ttlSecs) {
        this.file = file || _VersionCheckTTL.timestampFilePath();
        try {
          fs38.mkdirsSync(path36.dirname(this.file));
          fs38.accessSync(path36.dirname(this.file), fs38.constants.W_OK);
        } catch {
          throw new import_toolkit_lib16.ToolkitError(`Directory (${path36.dirname(this.file)}) is not writable.`);
        }
        this.ttlSecs = ttlSecs || ONE_DAY_IN_SECONDS;
      }
      async hasExpired() {
        try {
          const lastCheckTime = (await fs38.stat(this.file)).mtimeMs;
          const today = (/* @__PURE__ */ new Date()).getTime();
          if ((today - lastCheckTime) / 1e3 > this.ttlSecs) {
            return true;
          }
          return false;
        } catch (err) {
          if (err.code === "ENOENT") {
            return true;
          } else {
            throw err;
          }
        }
      }
      async update(latestVersion) {
        if (!latestVersion) {
          latestVersion = "";
        }
        await fs38.writeFile(this.file, latestVersion);
      }
    };
    __name(getVersionMessages, "getVersionMessages");
    __name(getMajorVersionUpgradeMessage, "getMajorVersionUpgradeMessage");
    __name(displayVersionMessage, "displayVersionMessage");
  }
});

// lib/cli/util/yargs-helpers.ts
function yargsNegativeAlias(negativeAlias, optionToNegate) {
  return (argv) => {
    if (negativeAlias in argv && argv[negativeAlias]) {
      argv[optionToNegate] = false;
    }
    return argv;
  };
}
function cliVersion() {
  return versionWithBuild();
}
function browserForPlatform() {
  switch (process.platform) {
    case "darwin":
      return "open %u";
    case "win32":
      return "start %u";
    default:
      return "xdg-open %u";
  }
}
var init_yargs_helpers = __esm({
  "lib/cli/util/yargs-helpers.ts"() {
    "use strict";
    init_version2();
    init_ci();
    __name(yargsNegativeAlias, "yargsNegativeAlias");
    __name(cliVersion, "cliVersion");
    __name(browserForPlatform, "browserForPlatform");
  }
});

// node_modules/yargs/build/lib/common-types.js
var require_common_types = __commonJS({
  "node_modules/yargs/build/lib/common-types.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.objectKeys = exports2.assertSingleKey = exports2.assertNotStrictEqual = void 0;
    var assert_1 = require("assert");
    function assertNotStrictEqual(actual, expected, message2) {
      assert_1.notStrictEqual(actual, expected, message2);
    }
    __name(assertNotStrictEqual, "assertNotStrictEqual");
    exports2.assertNotStrictEqual = assertNotStrictEqual;
    function assertSingleKey(actual) {
      assert_1.strictEqual(typeof actual, "string");
    }
    __name(assertSingleKey, "assertSingleKey");
    exports2.assertSingleKey = assertSingleKey;
    function objectKeys(object) {
      return Object.keys(object);
    }
    __name(objectKeys, "objectKeys");
    exports2.objectKeys = objectKeys;
  }
});

// node_modules/yargs/build/lib/is-promise.js
var require_is_promise = __commonJS({
  "node_modules/yargs/build/lib/is-promise.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.isPromise = void 0;
    function isPromise(maybePromise) {
      return !!maybePromise && !!maybePromise.then && typeof maybePromise.then === "function";
    }
    __name(isPromise, "isPromise");
    exports2.isPromise = isPromise;
  }
});

// node_modules/yargs/build/lib/yerror.js
var require_yerror = __commonJS({
  "node_modules/yargs/build/lib/yerror.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.YError = void 0;
    var YError = class _YError extends Error {
      static {
        __name(this, "YError");
      }
      constructor(msg) {
        super(msg || "yargs error");
        this.name = "YError";
        Error.captureStackTrace(this, _YError);
      }
    };
    exports2.YError = YError;
  }
});

// node_modules/yargs/build/lib/parse-command.js
var require_parse_command = __commonJS({
  "node_modules/yargs/build/lib/parse-command.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.parseCommand = void 0;
    function parseCommand(cmd) {
      const extraSpacesStrippedCommand = cmd.replace(/\s{2,}/g, " ");
      const splitCommand = extraSpacesStrippedCommand.split(/\s+(?![^[]*]|[^<]*>)/);
      const bregex = /\.*[\][<>]/g;
      const firstCommand = splitCommand.shift();
      if (!firstCommand)
        throw new Error(`No command found in: ${cmd}`);
      const parsedCommand = {
        cmd: firstCommand.replace(bregex, ""),
        demanded: [],
        optional: []
      };
      splitCommand.forEach((cmd2, i3) => {
        let variadic = false;
        cmd2 = cmd2.replace(/\s/g, "");
        if (/\.+[\]>]/.test(cmd2) && i3 === splitCommand.length - 1)
          variadic = true;
        if (/^\[/.test(cmd2)) {
          parsedCommand.optional.push({
            cmd: cmd2.replace(bregex, "").split("|"),
            variadic
          });
        } else {
          parsedCommand.demanded.push({
            cmd: cmd2.replace(bregex, "").split("|"),
            variadic
          });
        }
      });
      return parsedCommand;
    }
    __name(parseCommand, "parseCommand");
    exports2.parseCommand = parseCommand;
  }
});

// node_modules/yargs/build/lib/argsert.js
var require_argsert = __commonJS({
  "node_modules/yargs/build/lib/argsert.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.argsert = void 0;
    var yerror_1 = require_yerror();
    var parse_command_1 = require_parse_command();
    var positionName = ["first", "second", "third", "fourth", "fifth", "sixth"];
    function argsert(arg1, arg2, arg3) {
      function parseArgs2() {
        return typeof arg1 === "object" ? [{ demanded: [], optional: [] }, arg1, arg2] : [parse_command_1.parseCommand(`cmd ${arg1}`), arg2, arg3];
      }
      __name(parseArgs2, "parseArgs");
      try {
        let position = 0;
        let [parsed, callerArguments, length] = parseArgs2();
        const args = [].slice.call(callerArguments);
        while (args.length && args[args.length - 1] === void 0)
          args.pop();
        length = length || args.length;
        if (length < parsed.demanded.length) {
          throw new yerror_1.YError(`Not enough arguments provided. Expected ${parsed.demanded.length} but received ${args.length}.`);
        }
        const totalCommands = parsed.demanded.length + parsed.optional.length;
        if (length > totalCommands) {
          throw new yerror_1.YError(`Too many arguments provided. Expected max ${totalCommands} but received ${length}.`);
        }
        parsed.demanded.forEach((demanded) => {
          const arg = args.shift();
          const observedType = guessType(arg);
          const matchingTypes = demanded.cmd.filter((type) => type === observedType || type === "*");
          if (matchingTypes.length === 0)
            argumentTypeError(observedType, demanded.cmd, position);
          position += 1;
        });
        parsed.optional.forEach((optional) => {
          if (args.length === 0)
            return;
          const arg = args.shift();
          const observedType = guessType(arg);
          const matchingTypes = optional.cmd.filter((type) => type === observedType || type === "*");
          if (matchingTypes.length === 0)
            argumentTypeError(observedType, optional.cmd, position);
          position += 1;
        });
      } catch (err) {
        console.warn(err.stack);
      }
    }
    __name(argsert, "argsert");
    exports2.argsert = argsert;
    function guessType(arg) {
      if (Array.isArray(arg)) {
        return "array";
      } else if (arg === null) {
        return "null";
      }
      return typeof arg;
    }
    __name(guessType, "guessType");
    function argumentTypeError(observedType, allowedTypes, position) {
      throw new yerror_1.YError(`Invalid ${positionName[position] || "manyith"} argument. Expected ${allowedTypes.join(" or ")} but received ${observedType}.`);
    }
    __name(argumentTypeError, "argumentTypeError");
  }
});

// node_modules/yargs/build/lib/middleware.js
var require_middleware = __commonJS({
  "node_modules/yargs/build/lib/middleware.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.applyMiddleware = exports2.commandMiddlewareFactory = exports2.globalMiddlewareFactory = void 0;
    var argsert_1 = require_argsert();
    var is_promise_1 = require_is_promise();
    function globalMiddlewareFactory(globalMiddleware, context) {
      return function(callback, applyBeforeValidation = false) {
        argsert_1.argsert("<array|function> [boolean]", [callback, applyBeforeValidation], arguments.length);
        if (Array.isArray(callback)) {
          for (let i3 = 0; i3 < callback.length; i3++) {
            if (typeof callback[i3] !== "function") {
              throw Error("middleware must be a function");
            }
            callback[i3].applyBeforeValidation = applyBeforeValidation;
          }
          Array.prototype.push.apply(globalMiddleware, callback);
        } else if (typeof callback === "function") {
          callback.applyBeforeValidation = applyBeforeValidation;
          globalMiddleware.push(callback);
        }
        return context;
      };
    }
    __name(globalMiddlewareFactory, "globalMiddlewareFactory");
    exports2.globalMiddlewareFactory = globalMiddlewareFactory;
    function commandMiddlewareFactory(commandMiddleware) {
      if (!commandMiddleware)
        return [];
      return commandMiddleware.map((middleware) => {
        middleware.applyBeforeValidation = false;
        return middleware;
      });
    }
    __name(commandMiddlewareFactory, "commandMiddlewareFactory");
    exports2.commandMiddlewareFactory = commandMiddlewareFactory;
    function applyMiddleware(argv, yargs2, middlewares, beforeValidation) {
      const beforeValidationError = new Error("middleware cannot return a promise when applyBeforeValidation is true");
      return middlewares.reduce((acc, middleware) => {
        if (middleware.applyBeforeValidation !== beforeValidation) {
          return acc;
        }
        if (is_promise_1.isPromise(acc)) {
          return acc.then((initialObj) => Promise.all([initialObj, middleware(initialObj, yargs2)])).then(([initialObj, middlewareObj]) => Object.assign(initialObj, middlewareObj));
        } else {
          const result2 = middleware(acc, yargs2);
          if (beforeValidation && is_promise_1.isPromise(result2))
            throw beforeValidationError;
          return is_promise_1.isPromise(result2) ? result2.then((middlewareObj) => Object.assign(acc, middlewareObj)) : Object.assign(acc, result2);
        }
      }, argv);
    }
    __name(applyMiddleware, "applyMiddleware");
    exports2.applyMiddleware = applyMiddleware;
  }
});

// ../../node_modules/require-directory/index.js
var require_require_directory = __commonJS({
  "../../node_modules/require-directory/index.js"(exports2, module2) {
    "use strict";
    var fs43 = require("fs");
    var join31 = require("path").join;
    var resolve13 = require("path").resolve;
    var dirname11 = require("path").dirname;
    var defaultOptions3 = {
      extensions: ["js", "json", "coffee"],
      recurse: true,
      rename: /* @__PURE__ */ __name(function(name) {
        return name;
      }, "rename"),
      visit: /* @__PURE__ */ __name(function(obj) {
        return obj;
      }, "visit")
    };
    function checkFileInclusion(path38, filename, options) {
      return (
        // verify file has valid extension
        new RegExp("\\.(" + options.extensions.join("|") + ")$", "i").test(filename) && // if options.include is a RegExp, evaluate it and make sure the path passes
        !(options.include && options.include instanceof RegExp && !options.include.test(path38)) && // if options.include is a function, evaluate it and make sure the path passes
        !(options.include && typeof options.include === "function" && !options.include(path38, filename)) && // if options.exclude is a RegExp, evaluate it and make sure the path doesn't pass
        !(options.exclude && options.exclude instanceof RegExp && options.exclude.test(path38)) && // if options.exclude is a function, evaluate it and make sure the path doesn't pass
        !(options.exclude && typeof options.exclude === "function" && options.exclude(path38, filename))
      );
    }
    __name(checkFileInclusion, "checkFileInclusion");
    function requireDirectory(m3, path38, options) {
      var retval = {};
      if (path38 && !options && typeof path38 !== "string") {
        options = path38;
        path38 = null;
      }
      options = options || {};
      for (var prop in defaultOptions3) {
        if (typeof options[prop] === "undefined") {
          options[prop] = defaultOptions3[prop];
        }
      }
      path38 = !path38 ? dirname11(m3.filename) : resolve13(dirname11(m3.filename), path38);
      fs43.readdirSync(path38).forEach(function(filename) {
        var joined = join31(path38, filename), files, key, obj;
        if (fs43.statSync(joined).isDirectory() && options.recurse) {
          files = requireDirectory(m3, joined, options);
          if (Object.keys(files).length) {
            retval[options.rename(filename, joined, filename)] = files;
          }
        } else {
          if (joined !== m3.filename && checkFileInclusion(joined, filename, options)) {
            key = filename.substring(0, filename.lastIndexOf("."));
            obj = m3.require(joined);
            retval[options.rename(key, joined, filename)] = options.visit(obj, joined, filename) || obj;
          }
        }
      });
      return retval;
    }
    __name(requireDirectory, "requireDirectory");
    module2.exports = requireDirectory;
    module2.exports.defaults = defaultOptions3;
  }
});

// ../../node_modules/which-module/index.js
var require_which_module = __commonJS({
  "../../node_modules/which-module/index.js"(exports2, module2) {
    "use strict";
    module2.exports = /* @__PURE__ */ __name(function whichModule(exported) {
      for (var i3 = 0, files = Object.keys(require.cache), mod; i3 < files.length; i3++) {
        mod = require.cache[files[i3]];
        if (mod.exports === exported) return mod;
      }
      return null;
    }, "whichModule");
  }
});

// node_modules/yargs-parser/node_modules/camelcase/index.js
var require_camelcase2 = __commonJS({
  "node_modules/yargs-parser/node_modules/camelcase/index.js"(exports2, module2) {
    "use strict";
    var preserveCamelCase = /* @__PURE__ */ __name((string) => {
      let isLastCharLower = false;
      let isLastCharUpper = false;
      let isLastLastCharUpper = false;
      for (let i3 = 0; i3 < string.length; i3++) {
        const character = string[i3];
        if (isLastCharLower && /[a-zA-Z]/.test(character) && character.toUpperCase() === character) {
          string = string.slice(0, i3) + "-" + string.slice(i3);
          isLastCharLower = false;
          isLastLastCharUpper = isLastCharUpper;
          isLastCharUpper = true;
          i3++;
        } else if (isLastCharUpper && isLastLastCharUpper && /[a-zA-Z]/.test(character) && character.toLowerCase() === character) {
          string = string.slice(0, i3 - 1) + "-" + string.slice(i3 - 1);
          isLastLastCharUpper = isLastCharUpper;
          isLastCharUpper = false;
          isLastCharLower = true;
        } else {
          isLastCharLower = character.toLowerCase() === character && character.toUpperCase() !== character;
          isLastLastCharUpper = isLastCharUpper;
          isLastCharUpper = character.toUpperCase() === character && character.toLowerCase() !== character;
        }
      }
      return string;
    }, "preserveCamelCase");
    var camelCase3 = /* @__PURE__ */ __name((input, options) => {
      if (!(typeof input === "string" || Array.isArray(input))) {
        throw new TypeError("Expected the input to be `string | string[]`");
      }
      options = Object.assign({
        pascalCase: false
      }, options);
      const postProcess = /* @__PURE__ */ __name((x3) => options.pascalCase ? x3.charAt(0).toUpperCase() + x3.slice(1) : x3, "postProcess");
      if (Array.isArray(input)) {
        input = input.map((x3) => x3.trim()).filter((x3) => x3.length).join("-");
      } else {
        input = input.trim();
      }
      if (input.length === 0) {
        return "";
      }
      if (input.length === 1) {
        return options.pascalCase ? input.toUpperCase() : input.toLowerCase();
      }
      const hasUpperCase = input !== input.toLowerCase();
      if (hasUpperCase) {
        input = preserveCamelCase(input);
      }
      input = input.replace(/^[_.\- ]+/, "").toLowerCase().replace(/[_.\- ]+(\w|$)/g, (_3, p1) => p1.toUpperCase()).replace(/\d+(\w|$)/g, (m3) => m3.toUpperCase());
      return postProcess(input);
    }, "camelCase");
    module2.exports = camelCase3;
    module2.exports.default = camelCase3;
  }
});

// node_modules/yargs-parser/node_modules/decamelize/index.js
var require_decamelize2 = __commonJS({
  "node_modules/yargs-parser/node_modules/decamelize/index.js"(exports2, module2) {
    "use strict";
    module2.exports = function(str, sep5) {
      if (typeof str !== "string") {
        throw new TypeError("Expected a string");
      }
      sep5 = typeof sep5 === "undefined" ? "_" : sep5;
      return str.replace(/([a-z\d])([A-Z])/g, "$1" + sep5 + "$2").replace(/([A-Z]+)([A-Z][a-z\d]+)/g, "$1" + sep5 + "$2").toLowerCase();
    };
  }
});

// node_modules/yargs-parser/lib/tokenize-arg-string.js
var require_tokenize_arg_string = __commonJS({
  "node_modules/yargs-parser/lib/tokenize-arg-string.js"(exports2, module2) {
    module2.exports = function(argString) {
      if (Array.isArray(argString)) {
        return argString.map((e3) => typeof e3 !== "string" ? e3 + "" : e3);
      }
      argString = argString.trim();
      let i3 = 0;
      let prevC = null;
      let c3 = null;
      let opening = null;
      const args = [];
      for (let ii = 0; ii < argString.length; ii++) {
        prevC = c3;
        c3 = argString.charAt(ii);
        if (c3 === " " && !opening) {
          if (!(prevC === " ")) {
            i3++;
          }
          continue;
        }
        if (c3 === opening) {
          opening = null;
        } else if ((c3 === "'" || c3 === '"') && !opening) {
          opening = c3;
        }
        if (!args[i3]) args[i3] = "";
        args[i3] += c3;
      }
      return args;
    };
  }
});

// node_modules/yargs-parser/index.js
var require_yargs_parser = __commonJS({
  "node_modules/yargs-parser/index.js"(exports2, module2) {
    var camelCase3 = require_camelcase2();
    var decamelize3 = require_decamelize2();
    var path38 = require("path");
    var tokenizeArgString = require_tokenize_arg_string();
    var util11 = require("util");
    function parse3(args, opts) {
      opts = Object.assign(/* @__PURE__ */ Object.create(null), opts);
      args = tokenizeArgString(args);
      const aliases2 = combineAliases(Object.assign(/* @__PURE__ */ Object.create(null), opts.alias));
      const configuration = Object.assign({
        "boolean-negation": true,
        "camel-case-expansion": true,
        "combine-arrays": false,
        "dot-notation": true,
        "duplicate-arguments-array": true,
        "flatten-duplicate-arrays": true,
        "greedy-arrays": true,
        "halt-at-non-option": false,
        "nargs-eats-options": false,
        "negation-prefix": "no-",
        "parse-numbers": true,
        "populate--": false,
        "set-placeholder-key": false,
        "short-option-groups": true,
        "strip-aliased": false,
        "strip-dashed": false,
        "unknown-options-as-args": false
      }, opts.configuration);
      const defaults4 = Object.assign(/* @__PURE__ */ Object.create(null), opts.default);
      const configObjects = opts.configObjects || [];
      const envPrefix = opts.envPrefix;
      const notFlagsOption = configuration["populate--"];
      const notFlagsArgv = notFlagsOption ? "--" : "_";
      const newAliases = /* @__PURE__ */ Object.create(null);
      const defaulted = /* @__PURE__ */ Object.create(null);
      const __ = opts.__ || util11.format;
      const flags = {
        aliases: /* @__PURE__ */ Object.create(null),
        arrays: /* @__PURE__ */ Object.create(null),
        bools: /* @__PURE__ */ Object.create(null),
        strings: /* @__PURE__ */ Object.create(null),
        numbers: /* @__PURE__ */ Object.create(null),
        counts: /* @__PURE__ */ Object.create(null),
        normalize: /* @__PURE__ */ Object.create(null),
        configs: /* @__PURE__ */ Object.create(null),
        nargs: /* @__PURE__ */ Object.create(null),
        coercions: /* @__PURE__ */ Object.create(null),
        keys: []
      };
      const negative = /^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/;
      const negatedBoolean = new RegExp("^--" + configuration["negation-prefix"] + "(.+)");
      [].concat(opts.array).filter(Boolean).forEach(function(opt) {
        const key = opt.key || opt;
        const assignment = Object.keys(opt).map(function(key2) {
          return {
            boolean: "bools",
            string: "strings",
            number: "numbers"
          }[key2];
        }).filter(Boolean).pop();
        if (assignment) {
          flags[assignment][key] = true;
        }
        flags.arrays[key] = true;
        flags.keys.push(key);
      });
      [].concat(opts.boolean).filter(Boolean).forEach(function(key) {
        flags.bools[key] = true;
        flags.keys.push(key);
      });
      [].concat(opts.string).filter(Boolean).forEach(function(key) {
        flags.strings[key] = true;
        flags.keys.push(key);
      });
      [].concat(opts.number).filter(Boolean).forEach(function(key) {
        flags.numbers[key] = true;
        flags.keys.push(key);
      });
      [].concat(opts.count).filter(Boolean).forEach(function(key) {
        flags.counts[key] = true;
        flags.keys.push(key);
      });
      [].concat(opts.normalize).filter(Boolean).forEach(function(key) {
        flags.normalize[key] = true;
        flags.keys.push(key);
      });
      Object.keys(opts.narg || {}).forEach(function(k3) {
        flags.nargs[k3] = opts.narg[k3];
        flags.keys.push(k3);
      });
      Object.keys(opts.coerce || {}).forEach(function(k3) {
        flags.coercions[k3] = opts.coerce[k3];
        flags.keys.push(k3);
      });
      if (Array.isArray(opts.config) || typeof opts.config === "string") {
        ;
        [].concat(opts.config).filter(Boolean).forEach(function(key) {
          flags.configs[key] = true;
        });
      } else {
        Object.keys(opts.config || {}).forEach(function(k3) {
          flags.configs[k3] = opts.config[k3];
        });
      }
      extendAliases(opts.key, aliases2, opts.default, flags.arrays);
      Object.keys(defaults4).forEach(function(key) {
        (flags.aliases[key] || []).forEach(function(alias) {
          defaults4[alias] = defaults4[key];
        });
      });
      let error5 = null;
      checkConfiguration();
      let notFlags = [];
      const argv = Object.assign(/* @__PURE__ */ Object.create(null), { _: [] });
      const argvReturn = {};
      for (let i3 = 0; i3 < args.length; i3++) {
        const arg = args[i3];
        let broken;
        let key;
        let letters;
        let m3;
        let next;
        let value;
        if (arg !== "--" && isUnknownOptionAsArg(arg)) {
          argv._.push(arg);
        } else if (arg.match(/^--.+=/) || !configuration["short-option-groups"] && arg.match(/^-.+=/)) {
          m3 = arg.match(/^--?([^=]+)=([\s\S]*)$/);
          if (checkAllAliases(m3[1], flags.arrays)) {
            i3 = eatArray(i3, m3[1], args, m3[2]);
          } else if (checkAllAliases(m3[1], flags.nargs) !== false) {
            i3 = eatNargs(i3, m3[1], args, m3[2]);
          } else {
            setArg(m3[1], m3[2]);
          }
        } else if (arg.match(negatedBoolean) && configuration["boolean-negation"]) {
          key = arg.match(negatedBoolean)[1];
          setArg(key, checkAllAliases(key, flags.arrays) ? [false] : false);
        } else if (arg.match(/^--.+/) || !configuration["short-option-groups"] && arg.match(/^-[^-]+/)) {
          key = arg.match(/^--?(.+)/)[1];
          if (checkAllAliases(key, flags.arrays)) {
            i3 = eatArray(i3, key, args);
          } else if (checkAllAliases(key, flags.nargs) !== false) {
            i3 = eatNargs(i3, key, args);
          } else {
            next = args[i3 + 1];
            if (next !== void 0 && (!next.match(/^-/) || next.match(negative)) && !checkAllAliases(key, flags.bools) && !checkAllAliases(key, flags.counts)) {
              setArg(key, next);
              i3++;
            } else if (/^(true|false)$/.test(next)) {
              setArg(key, next);
              i3++;
            } else {
              setArg(key, defaultValue(key));
            }
          }
        } else if (arg.match(/^-.\..+=/)) {
          m3 = arg.match(/^-([^=]+)=([\s\S]*)$/);
          setArg(m3[1], m3[2]);
        } else if (arg.match(/^-.\..+/) && !arg.match(negative)) {
          next = args[i3 + 1];
          key = arg.match(/^-(.\..+)/)[1];
          if (next !== void 0 && !next.match(/^-/) && !checkAllAliases(key, flags.bools) && !checkAllAliases(key, flags.counts)) {
            setArg(key, next);
            i3++;
          } else {
            setArg(key, defaultValue(key));
          }
        } else if (arg.match(/^-[^-]+/) && !arg.match(negative)) {
          letters = arg.slice(1, -1).split("");
          broken = false;
          for (let j3 = 0; j3 < letters.length; j3++) {
            next = arg.slice(j3 + 2);
            if (letters[j3 + 1] && letters[j3 + 1] === "=") {
              value = arg.slice(j3 + 3);
              key = letters[j3];
              if (checkAllAliases(key, flags.arrays)) {
                i3 = eatArray(i3, key, args, value);
              } else if (checkAllAliases(key, flags.nargs) !== false) {
                i3 = eatNargs(i3, key, args, value);
              } else {
                setArg(key, value);
              }
              broken = true;
              break;
            }
            if (next === "-") {
              setArg(letters[j3], next);
              continue;
            }
            if (/[A-Za-z]/.test(letters[j3]) && /^-?\d+(\.\d*)?(e-?\d+)?$/.test(next)) {
              setArg(letters[j3], next);
              broken = true;
              break;
            }
            if (letters[j3 + 1] && letters[j3 + 1].match(/\W/)) {
              setArg(letters[j3], next);
              broken = true;
              break;
            } else {
              setArg(letters[j3], defaultValue(letters[j3]));
            }
          }
          key = arg.slice(-1)[0];
          if (!broken && key !== "-") {
            if (checkAllAliases(key, flags.arrays)) {
              i3 = eatArray(i3, key, args);
            } else if (checkAllAliases(key, flags.nargs) !== false) {
              i3 = eatNargs(i3, key, args);
            } else {
              next = args[i3 + 1];
              if (next !== void 0 && (!/^(-|--)[^-]/.test(next) || next.match(negative)) && !checkAllAliases(key, flags.bools) && !checkAllAliases(key, flags.counts)) {
                setArg(key, next);
                i3++;
              } else if (/^(true|false)$/.test(next)) {
                setArg(key, next);
                i3++;
              } else {
                setArg(key, defaultValue(key));
              }
            }
          }
        } else if (arg.match(/^-[0-9]$/) && arg.match(negative) && checkAllAliases(arg.slice(1), flags.bools)) {
          key = arg.slice(1);
          setArg(key, defaultValue(key));
        } else if (arg === "--") {
          notFlags = args.slice(i3 + 1);
          break;
        } else if (configuration["halt-at-non-option"]) {
          notFlags = args.slice(i3);
          break;
        } else {
          argv._.push(maybeCoerceNumber("_", arg));
        }
      }
      applyEnvVars(argv, true);
      applyEnvVars(argv, false);
      setConfig(argv);
      setConfigObjects();
      applyDefaultsAndAliases(argv, flags.aliases, defaults4, true);
      applyCoercions(argv);
      if (configuration["set-placeholder-key"]) setPlaceholderKeys(argv);
      Object.keys(flags.counts).forEach(function(key) {
        if (!hasKey(argv, key.split("."))) setArg(key, 0);
      });
      if (notFlagsOption && notFlags.length) argv[notFlagsArgv] = [];
      notFlags.forEach(function(key) {
        argv[notFlagsArgv].push(key);
      });
      if (configuration["camel-case-expansion"] && configuration["strip-dashed"]) {
        Object.keys(argv).filter((key) => key !== "--" && key.includes("-")).forEach((key) => {
          delete argv[key];
        });
      }
      if (configuration["strip-aliased"]) {
        ;
        [].concat(...Object.keys(aliases2).map((k3) => aliases2[k3])).forEach((alias) => {
          if (configuration["camel-case-expansion"]) {
            delete argv[alias.split(".").map((prop) => camelCase3(prop)).join(".")];
          }
          delete argv[alias];
        });
      }
      function eatNargs(i3, key, args2, argAfterEqualSign) {
        let ii;
        let toEat = checkAllAliases(key, flags.nargs);
        toEat = isNaN(toEat) ? 1 : toEat;
        if (toEat === 0) {
          if (!isUndefined(argAfterEqualSign)) {
            error5 = Error(__("Argument unexpected for: %s", key));
          }
          setArg(key, defaultValue(key));
          return i3;
        }
        let available = isUndefined(argAfterEqualSign) ? 0 : 1;
        if (configuration["nargs-eats-options"]) {
          if (args2.length - (i3 + 1) + available < toEat) {
            error5 = Error(__("Not enough arguments following: %s", key));
          }
          available = toEat;
        } else {
          for (ii = i3 + 1; ii < args2.length; ii++) {
            if (!args2[ii].match(/^-[^0-9]/) || args2[ii].match(negative) || isUnknownOptionAsArg(args2[ii])) available++;
            else break;
          }
          if (available < toEat) error5 = Error(__("Not enough arguments following: %s", key));
        }
        let consumed = Math.min(available, toEat);
        if (!isUndefined(argAfterEqualSign) && consumed > 0) {
          setArg(key, argAfterEqualSign);
          consumed--;
        }
        for (ii = i3 + 1; ii < consumed + i3 + 1; ii++) {
          setArg(key, args2[ii]);
        }
        return i3 + consumed;
      }
      __name(eatNargs, "eatNargs");
      function eatArray(i3, key, args2, argAfterEqualSign) {
        let argsToSet = [];
        let next = argAfterEqualSign || args2[i3 + 1];
        const nargsCount = checkAllAliases(key, flags.nargs);
        if (checkAllAliases(key, flags.bools) && !/^(true|false)$/.test(next)) {
          argsToSet.push(true);
        } else if (isUndefined(next) || isUndefined(argAfterEqualSign) && /^-/.test(next) && !negative.test(next) && !isUnknownOptionAsArg(next)) {
          if (defaults4[key] !== void 0) {
            const defVal = defaults4[key];
            argsToSet = Array.isArray(defVal) ? defVal : [defVal];
          }
        } else {
          if (!isUndefined(argAfterEqualSign)) {
            argsToSet.push(processValue(key, argAfterEqualSign));
          }
          for (let ii = i3 + 1; ii < args2.length; ii++) {
            if (!configuration["greedy-arrays"] && argsToSet.length > 0 || nargsCount && argsToSet.length >= nargsCount) break;
            next = args2[ii];
            if (/^-/.test(next) && !negative.test(next) && !isUnknownOptionAsArg(next)) break;
            i3 = ii;
            argsToSet.push(processValue(key, next));
          }
        }
        if (nargsCount && argsToSet.length < nargsCount || isNaN(nargsCount) && argsToSet.length === 0) {
          error5 = Error(__("Not enough arguments following: %s", key));
        }
        setArg(key, argsToSet);
        return i3;
      }
      __name(eatArray, "eatArray");
      function setArg(key, val) {
        if (/-/.test(key) && configuration["camel-case-expansion"]) {
          const alias = key.split(".").map(function(prop) {
            return camelCase3(prop);
          }).join(".");
          addNewAlias(key, alias);
        }
        const value = processValue(key, val);
        const splitKey = key.split(".");
        setKey(argv, splitKey, value);
        if (flags.aliases[key]) {
          flags.aliases[key].forEach(function(x3) {
            x3 = x3.split(".");
            setKey(argv, x3, value);
          });
        }
        if (splitKey.length > 1 && configuration["dot-notation"]) {
          ;
          (flags.aliases[splitKey[0]] || []).forEach(function(x3) {
            x3 = x3.split(".");
            const a3 = [].concat(splitKey);
            a3.shift();
            x3 = x3.concat(a3);
            if (!(flags.aliases[key] || []).includes(x3.join("."))) {
              setKey(argv, x3, value);
            }
          });
        }
        if (checkAllAliases(key, flags.normalize) && !checkAllAliases(key, flags.arrays)) {
          const keys = [key].concat(flags.aliases[key] || []);
          keys.forEach(function(key2) {
            Object.defineProperty(argvReturn, key2, {
              enumerable: true,
              get() {
                return val;
              },
              set(value2) {
                val = typeof value2 === "string" ? path38.normalize(value2) : value2;
              }
            });
          });
        }
      }
      __name(setArg, "setArg");
      function addNewAlias(key, alias) {
        if (!(flags.aliases[key] && flags.aliases[key].length)) {
          flags.aliases[key] = [alias];
          newAliases[alias] = true;
        }
        if (!(flags.aliases[alias] && flags.aliases[alias].length)) {
          addNewAlias(alias, key);
        }
      }
      __name(addNewAlias, "addNewAlias");
      function processValue(key, val) {
        if (typeof val === "string" && (val[0] === "'" || val[0] === '"') && val[val.length - 1] === val[0]) {
          val = val.substring(1, val.length - 1);
        }
        if (checkAllAliases(key, flags.bools) || checkAllAliases(key, flags.counts)) {
          if (typeof val === "string") val = val === "true";
        }
        let value = Array.isArray(val) ? val.map(function(v6) {
          return maybeCoerceNumber(key, v6);
        }) : maybeCoerceNumber(key, val);
        if (checkAllAliases(key, flags.counts) && (isUndefined(value) || typeof value === "boolean")) {
          value = increment;
        }
        if (checkAllAliases(key, flags.normalize) && checkAllAliases(key, flags.arrays)) {
          if (Array.isArray(val)) value = val.map(path38.normalize);
          else value = path38.normalize(val);
        }
        return value;
      }
      __name(processValue, "processValue");
      function maybeCoerceNumber(key, value) {
        if (!checkAllAliases(key, flags.strings) && !checkAllAliases(key, flags.bools) && !Array.isArray(value)) {
          const shouldCoerceNumber = isNumber(value) && configuration["parse-numbers"] && Number.isSafeInteger(Math.floor(value));
          if (shouldCoerceNumber || !isUndefined(value) && checkAllAliases(key, flags.numbers)) value = Number(value);
        }
        return value;
      }
      __name(maybeCoerceNumber, "maybeCoerceNumber");
      function setConfig(argv2) {
        const configLookup = /* @__PURE__ */ Object.create(null);
        applyDefaultsAndAliases(configLookup, flags.aliases, defaults4);
        Object.keys(flags.configs).forEach(function(configKey) {
          const configPath = argv2[configKey] || configLookup[configKey];
          if (configPath) {
            try {
              let config = null;
              const resolvedConfigPath = path38.resolve(process.cwd(), configPath);
              if (typeof flags.configs[configKey] === "function") {
                try {
                  config = flags.configs[configKey](resolvedConfigPath);
                } catch (e3) {
                  config = e3;
                }
                if (config instanceof Error) {
                  error5 = config;
                  return;
                }
              } else {
                config = require(resolvedConfigPath);
              }
              setConfigObject(config);
            } catch (ex) {
              if (argv2[configKey]) error5 = Error(__("Invalid JSON config file: %s", configPath));
            }
          }
        });
      }
      __name(setConfig, "setConfig");
      function setConfigObject(config, prev) {
        Object.keys(config).forEach(function(key) {
          const value = config[key];
          const fullKey = prev ? prev + "." + key : key;
          if (typeof value === "object" && value !== null && !Array.isArray(value) && configuration["dot-notation"]) {
            setConfigObject(value, fullKey);
          } else {
            if (!hasKey(argv, fullKey.split(".")) || checkAllAliases(fullKey, flags.arrays) && configuration["combine-arrays"]) {
              setArg(fullKey, value);
            }
          }
        });
      }
      __name(setConfigObject, "setConfigObject");
      function setConfigObjects() {
        if (typeof configObjects === "undefined") return;
        configObjects.forEach(function(configObject) {
          setConfigObject(configObject);
        });
      }
      __name(setConfigObjects, "setConfigObjects");
      function applyEnvVars(argv2, configOnly) {
        if (typeof envPrefix === "undefined") return;
        const prefix2 = typeof envPrefix === "string" ? envPrefix : "";
        Object.keys(process.env).forEach(function(envVar) {
          if (prefix2 === "" || envVar.lastIndexOf(prefix2, 0) === 0) {
            const keys = envVar.split("__").map(function(key, i3) {
              if (i3 === 0) {
                key = key.substring(prefix2.length);
              }
              return camelCase3(key);
            });
            if ((configOnly && flags.configs[keys.join(".")] || !configOnly) && !hasKey(argv2, keys)) {
              setArg(keys.join("."), process.env[envVar]);
            }
          }
        });
      }
      __name(applyEnvVars, "applyEnvVars");
      function applyCoercions(argv2) {
        let coerce2;
        const applied = /* @__PURE__ */ new Set();
        Object.keys(argv2).forEach(function(key) {
          if (!applied.has(key)) {
            coerce2 = checkAllAliases(key, flags.coercions);
            if (typeof coerce2 === "function") {
              try {
                const value = maybeCoerceNumber(key, coerce2(argv2[key]));
                [].concat(flags.aliases[key] || [], key).forEach((ali) => {
                  applied.add(ali);
                  argv2[ali] = value;
                });
              } catch (err) {
                error5 = err;
              }
            }
          }
        });
      }
      __name(applyCoercions, "applyCoercions");
      function setPlaceholderKeys(argv2) {
        flags.keys.forEach((key) => {
          if (~key.indexOf(".")) return;
          if (typeof argv2[key] === "undefined") argv2[key] = void 0;
        });
        return argv2;
      }
      __name(setPlaceholderKeys, "setPlaceholderKeys");
      function applyDefaultsAndAliases(obj, aliases3, defaults5, canLog = false) {
        Object.keys(defaults5).forEach(function(key) {
          if (!hasKey(obj, key.split("."))) {
            setKey(obj, key.split("."), defaults5[key]);
            if (canLog) defaulted[key] = true;
            (aliases3[key] || []).forEach(function(x3) {
              if (hasKey(obj, x3.split("."))) return;
              setKey(obj, x3.split("."), defaults5[key]);
            });
          }
        });
      }
      __name(applyDefaultsAndAliases, "applyDefaultsAndAliases");
      function hasKey(obj, keys) {
        let o3 = obj;
        if (!configuration["dot-notation"]) keys = [keys.join(".")];
        keys.slice(0, -1).forEach(function(key2) {
          o3 = o3[key2] || {};
        });
        const key = keys[keys.length - 1];
        if (typeof o3 !== "object") return false;
        else return key in o3;
      }
      __name(hasKey, "hasKey");
      function setKey(obj, keys, value) {
        let o3 = obj;
        if (!configuration["dot-notation"]) keys = [keys.join(".")];
        keys.slice(0, -1).forEach(function(key2, index) {
          key2 = sanitizeKey(key2);
          if (typeof o3 === "object" && o3[key2] === void 0) {
            o3[key2] = {};
          }
          if (typeof o3[key2] !== "object" || Array.isArray(o3[key2])) {
            if (Array.isArray(o3[key2])) {
              o3[key2].push({});
            } else {
              o3[key2] = [o3[key2], {}];
            }
            o3 = o3[key2][o3[key2].length - 1];
          } else {
            o3 = o3[key2];
          }
        });
        const key = sanitizeKey(keys[keys.length - 1]);
        const isTypeArray = checkAllAliases(keys.join("."), flags.arrays);
        const isValueArray = Array.isArray(value);
        let duplicate = configuration["duplicate-arguments-array"];
        if (!duplicate && checkAllAliases(key, flags.nargs)) {
          duplicate = true;
          if (!isUndefined(o3[key]) && flags.nargs[key] === 1 || Array.isArray(o3[key]) && o3[key].length === flags.nargs[key]) {
            o3[key] = void 0;
          }
        }
        if (value === increment) {
          o3[key] = increment(o3[key]);
        } else if (Array.isArray(o3[key])) {
          if (duplicate && isTypeArray && isValueArray) {
            o3[key] = configuration["flatten-duplicate-arrays"] ? o3[key].concat(value) : (Array.isArray(o3[key][0]) ? o3[key] : [o3[key]]).concat([value]);
          } else if (!duplicate && Boolean(isTypeArray) === Boolean(isValueArray)) {
            o3[key] = value;
          } else {
            o3[key] = o3[key].concat([value]);
          }
        } else if (o3[key] === void 0 && isTypeArray) {
          o3[key] = isValueArray ? value : [value];
        } else if (duplicate && !(o3[key] === void 0 || checkAllAliases(key, flags.counts) || checkAllAliases(key, flags.bools))) {
          o3[key] = [o3[key], value];
        } else {
          o3[key] = value;
        }
      }
      __name(setKey, "setKey");
      function extendAliases(...args2) {
        args2.forEach(function(obj) {
          Object.keys(obj || {}).forEach(function(key) {
            if (flags.aliases[key]) return;
            flags.aliases[key] = [].concat(aliases2[key] || []);
            flags.aliases[key].concat(key).forEach(function(x3) {
              if (/-/.test(x3) && configuration["camel-case-expansion"]) {
                const c3 = camelCase3(x3);
                if (c3 !== key && flags.aliases[key].indexOf(c3) === -1) {
                  flags.aliases[key].push(c3);
                  newAliases[c3] = true;
                }
              }
            });
            flags.aliases[key].concat(key).forEach(function(x3) {
              if (x3.length > 1 && /[A-Z]/.test(x3) && configuration["camel-case-expansion"]) {
                const c3 = decamelize3(x3, "-");
                if (c3 !== key && flags.aliases[key].indexOf(c3) === -1) {
                  flags.aliases[key].push(c3);
                  newAliases[c3] = true;
                }
              }
            });
            flags.aliases[key].forEach(function(x3) {
              flags.aliases[x3] = [key].concat(flags.aliases[key].filter(function(y2) {
                return x3 !== y2;
              }));
            });
          });
        });
      }
      __name(extendAliases, "extendAliases");
      function checkAllAliases(key, flag) {
        const toCheck = [].concat(flags.aliases[key] || [], key);
        const keys = Object.keys(flag);
        const setAlias = toCheck.find((key2) => keys.includes(key2));
        return setAlias ? flag[setAlias] : false;
      }
      __name(checkAllAliases, "checkAllAliases");
      function hasAnyFlag(key) {
        const toCheck = [].concat(Object.keys(flags).map((k3) => flags[k3]));
        return toCheck.some(function(flag) {
          return Array.isArray(flag) ? flag.includes(key) : flag[key];
        });
      }
      __name(hasAnyFlag, "hasAnyFlag");
      function hasFlagsMatching(arg, ...patterns) {
        const toCheck = [].concat(...patterns);
        return toCheck.some(function(pattern) {
          const match4 = arg.match(pattern);
          return match4 && hasAnyFlag(match4[1]);
        });
      }
      __name(hasFlagsMatching, "hasFlagsMatching");
      function hasAllShortFlags(arg) {
        if (arg.match(negative) || !arg.match(/^-[^-]+/)) {
          return false;
        }
        let hasAllFlags = true;
        let next;
        const letters = arg.slice(1).split("");
        for (let j3 = 0; j3 < letters.length; j3++) {
          next = arg.slice(j3 + 2);
          if (!hasAnyFlag(letters[j3])) {
            hasAllFlags = false;
            break;
          }
          if (letters[j3 + 1] && letters[j3 + 1] === "=" || next === "-" || /[A-Za-z]/.test(letters[j3]) && /^-?\d+(\.\d*)?(e-?\d+)?$/.test(next) || letters[j3 + 1] && letters[j3 + 1].match(/\W/)) {
            break;
          }
        }
        return hasAllFlags;
      }
      __name(hasAllShortFlags, "hasAllShortFlags");
      function isUnknownOptionAsArg(arg) {
        return configuration["unknown-options-as-args"] && isUnknownOption(arg);
      }
      __name(isUnknownOptionAsArg, "isUnknownOptionAsArg");
      function isUnknownOption(arg) {
        if (arg.match(negative)) {
          return false;
        }
        if (hasAllShortFlags(arg)) {
          return false;
        }
        const flagWithEquals = /^-+([^=]+?)=[\s\S]*$/;
        const normalFlag = /^-+([^=]+?)$/;
        const flagEndingInHyphen = /^-+([^=]+?)-$/;
        const flagEndingInDigits = /^-+([^=]+?\d+)$/;
        const flagEndingInNonWordCharacters = /^-+([^=]+?)\W+.*$/;
        return !hasFlagsMatching(arg, flagWithEquals, negatedBoolean, normalFlag, flagEndingInHyphen, flagEndingInDigits, flagEndingInNonWordCharacters);
      }
      __name(isUnknownOption, "isUnknownOption");
      function defaultValue(key) {
        if (!checkAllAliases(key, flags.bools) && !checkAllAliases(key, flags.counts) && `${key}` in defaults4) {
          return defaults4[key];
        } else {
          return defaultForType(guessType(key));
        }
      }
      __name(defaultValue, "defaultValue");
      function defaultForType(type) {
        const def = {
          boolean: true,
          string: "",
          number: void 0,
          array: []
        };
        return def[type];
      }
      __name(defaultForType, "defaultForType");
      function guessType(key) {
        let type = "boolean";
        if (checkAllAliases(key, flags.strings)) type = "string";
        else if (checkAllAliases(key, flags.numbers)) type = "number";
        else if (checkAllAliases(key, flags.bools)) type = "boolean";
        else if (checkAllAliases(key, flags.arrays)) type = "array";
        return type;
      }
      __name(guessType, "guessType");
      function isNumber(x3) {
        if (x3 === null || x3 === void 0) return false;
        if (typeof x3 === "number") return true;
        if (/^0x[0-9a-f]+$/i.test(x3)) return true;
        if (x3.length > 1 && x3[0] === "0") return false;
        return /^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(x3);
      }
      __name(isNumber, "isNumber");
      function isUndefined(num) {
        return num === void 0;
      }
      __name(isUndefined, "isUndefined");
      function checkConfiguration() {
        Object.keys(flags.counts).find((key) => {
          if (checkAllAliases(key, flags.arrays)) {
            error5 = Error(__("Invalid configuration: %s, opts.count excludes opts.array.", key));
            return true;
          } else if (checkAllAliases(key, flags.nargs)) {
            error5 = Error(__("Invalid configuration: %s, opts.count excludes opts.narg.", key));
            return true;
          }
        });
      }
      __name(checkConfiguration, "checkConfiguration");
      return {
        argv: Object.assign(argvReturn, argv),
        error: error5,
        aliases: Object.assign({}, flags.aliases),
        newAliases: Object.assign({}, newAliases),
        defaulted: Object.assign({}, defaulted),
        configuration
      };
    }
    __name(parse3, "parse");
    function combineAliases(aliases2) {
      const aliasArrays = [];
      const combined = /* @__PURE__ */ Object.create(null);
      let change = true;
      Object.keys(aliases2).forEach(function(key) {
        aliasArrays.push(
          [].concat(aliases2[key], key)
        );
      });
      while (change) {
        change = false;
        for (let i3 = 0; i3 < aliasArrays.length; i3++) {
          for (let ii = i3 + 1; ii < aliasArrays.length; ii++) {
            const intersect = aliasArrays[i3].filter(function(v6) {
              return aliasArrays[ii].indexOf(v6) !== -1;
            });
            if (intersect.length) {
              aliasArrays[i3] = aliasArrays[i3].concat(aliasArrays[ii]);
              aliasArrays.splice(ii, 1);
              change = true;
              break;
            }
          }
        }
      }
      aliasArrays.forEach(function(aliasArray) {
        aliasArray = aliasArray.filter(function(v6, i3, self2) {
          return self2.indexOf(v6) === i3;
        });
        combined[aliasArray.pop()] = aliasArray;
      });
      return combined;
    }
    __name(combineAliases, "combineAliases");
    function increment(orig) {
      return orig !== void 0 ? orig + 1 : 1;
    }
    __name(increment, "increment");
    function Parser(args, opts) {
      const result2 = parse3(args.slice(), opts);
      return result2.argv;
    }
    __name(Parser, "Parser");
    Parser.detailed = function(args, opts) {
      return parse3(args.slice(), opts);
    };
    function sanitizeKey(key) {
      if (key === "__proto__") return "___proto___";
      return key;
    }
    __name(sanitizeKey, "sanitizeKey");
    module2.exports = Parser;
  }
});

// node_modules/yargs/build/lib/command.js
var require_command = __commonJS({
  "node_modules/yargs/build/lib/command.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.isCommandBuilderCallback = exports2.isCommandBuilderDefinition = exports2.isCommandHandlerDefinition = exports2.command = void 0;
    var common_types_1 = require_common_types();
    var is_promise_1 = require_is_promise();
    var middleware_1 = require_middleware();
    var parse_command_1 = require_parse_command();
    var path38 = require("path");
    var util_1 = require("util");
    var yargs_1 = require_yargs();
    var requireDirectory = require_require_directory();
    var whichModule = require_which_module();
    var Parser = require_yargs_parser();
    var DEFAULT_MARKER = /(^\*)|(^\$0)/;
    function command2(yargs2, usage, validation, globalMiddleware = []) {
      const self2 = {};
      let handlers = {};
      let aliasMap = {};
      let defaultCommand;
      self2.addHandler = /* @__PURE__ */ __name(function addHandler(cmd, description, builder, handler, commandMiddleware, deprecated) {
        let aliases2 = [];
        const middlewares = middleware_1.commandMiddlewareFactory(commandMiddleware);
        handler = handler || (() => {
        });
        if (Array.isArray(cmd)) {
          aliases2 = cmd.slice(1);
          cmd = cmd[0];
        } else if (isCommandHandlerDefinition(cmd)) {
          let command3 = Array.isArray(cmd.command) || typeof cmd.command === "string" ? cmd.command : moduleName(cmd);
          if (cmd.aliases)
            command3 = [].concat(command3).concat(cmd.aliases);
          self2.addHandler(command3, extractDesc(cmd), cmd.builder, cmd.handler, cmd.middlewares, cmd.deprecated);
          return;
        }
        if (isCommandBuilderDefinition(builder)) {
          self2.addHandler([cmd].concat(aliases2), description, builder.builder, builder.handler, builder.middlewares, builder.deprecated);
          return;
        }
        const parsedCommand = parse_command_1.parseCommand(cmd);
        aliases2 = aliases2.map((alias) => parse_command_1.parseCommand(alias).cmd);
        let isDefault = false;
        const parsedAliases = [parsedCommand.cmd].concat(aliases2).filter((c3) => {
          if (DEFAULT_MARKER.test(c3)) {
            isDefault = true;
            return false;
          }
          return true;
        });
        if (parsedAliases.length === 0 && isDefault)
          parsedAliases.push("$0");
        if (isDefault) {
          parsedCommand.cmd = parsedAliases[0];
          aliases2 = parsedAliases.slice(1);
          cmd = cmd.replace(DEFAULT_MARKER, parsedCommand.cmd);
        }
        aliases2.forEach((alias) => {
          aliasMap[alias] = parsedCommand.cmd;
        });
        if (description !== false) {
          usage.command(cmd, description, isDefault, aliases2, deprecated);
        }
        handlers[parsedCommand.cmd] = {
          original: cmd,
          description,
          handler,
          builder: builder || {},
          middlewares,
          deprecated,
          demanded: parsedCommand.demanded,
          optional: parsedCommand.optional
        };
        if (isDefault)
          defaultCommand = handlers[parsedCommand.cmd];
      }, "addHandler");
      self2.addDirectory = /* @__PURE__ */ __name(function addDirectory(dir, context, req, callerFile, opts) {
        opts = opts || {};
        if (typeof opts.recurse !== "boolean")
          opts.recurse = false;
        if (!Array.isArray(opts.extensions))
          opts.extensions = ["js"];
        const parentVisit = typeof opts.visit === "function" ? opts.visit : (o3) => o3;
        opts.visit = /* @__PURE__ */ __name(function visit(obj, joined, filename) {
          const visited = parentVisit(obj, joined, filename);
          if (visited) {
            if (~context.files.indexOf(joined))
              return visited;
            context.files.push(joined);
            self2.addHandler(visited);
          }
          return visited;
        }, "visit");
        requireDirectory({ require: req, filename: callerFile }, dir, opts);
      }, "addDirectory");
      function moduleName(obj) {
        const mod = whichModule(obj);
        if (!mod)
          throw new Error(`No command name given for module: ${util_1.inspect(obj)}`);
        return commandFromFilename(mod.filename);
      }
      __name(moduleName, "moduleName");
      function commandFromFilename(filename) {
        return path38.basename(filename, path38.extname(filename));
      }
      __name(commandFromFilename, "commandFromFilename");
      function extractDesc({ describe: describe2, description, desc }) {
        for (const test of [describe2, description, desc]) {
          if (typeof test === "string" || test === false)
            return test;
          common_types_1.assertNotStrictEqual(test, true);
        }
        return false;
      }
      __name(extractDesc, "extractDesc");
      self2.getCommands = () => Object.keys(handlers).concat(Object.keys(aliasMap));
      self2.getCommandHandlers = () => handlers;
      self2.hasDefaultCommand = () => !!defaultCommand;
      self2.runCommand = /* @__PURE__ */ __name(function runCommand(command3, yargs3, parsed, commandIndex) {
        let aliases2 = parsed.aliases;
        const commandHandler = handlers[command3] || handlers[aliasMap[command3]] || defaultCommand;
        const currentContext = yargs3.getContext();
        let numFiles = currentContext.files.length;
        const parentCommands = currentContext.commands.slice();
        let innerArgv = parsed.argv;
        let positionalMap = {};
        if (command3) {
          currentContext.commands.push(command3);
          currentContext.fullCommands.push(commandHandler.original);
        }
        const builder = commandHandler.builder;
        if (isCommandBuilderCallback(builder)) {
          const builderOutput = builder(yargs3.reset(parsed.aliases));
          const innerYargs = yargs_1.isYargsInstance(builderOutput) ? builderOutput : yargs3;
          if (shouldUpdateUsage(innerYargs)) {
            innerYargs.getUsageInstance().usage(usageFromParentCommandsCommandHandler(parentCommands, commandHandler), commandHandler.description);
          }
          innerArgv = innerYargs._parseArgs(null, null, true, commandIndex);
          aliases2 = innerYargs.parsed.aliases;
        } else if (isCommandBuilderOptionDefinitions(builder)) {
          const innerYargs = yargs3.reset(parsed.aliases);
          if (shouldUpdateUsage(innerYargs)) {
            innerYargs.getUsageInstance().usage(usageFromParentCommandsCommandHandler(parentCommands, commandHandler), commandHandler.description);
          }
          Object.keys(commandHandler.builder).forEach((key) => {
            innerYargs.option(key, builder[key]);
          });
          innerArgv = innerYargs._parseArgs(null, null, true, commandIndex);
          aliases2 = innerYargs.parsed.aliases;
        }
        if (!yargs3._hasOutput()) {
          positionalMap = populatePositionals(commandHandler, innerArgv, currentContext);
        }
        const middlewares = globalMiddleware.slice(0).concat(commandHandler.middlewares);
        middleware_1.applyMiddleware(innerArgv, yargs3, middlewares, true);
        if (!yargs3._hasOutput()) {
          yargs3._runValidation(innerArgv, aliases2, positionalMap, yargs3.parsed.error, !command3);
        }
        if (commandHandler.handler && !yargs3._hasOutput()) {
          yargs3._setHasOutput();
          const populateDoubleDash = !!yargs3.getOptions().configuration["populate--"];
          if (!populateDoubleDash)
            yargs3._copyDoubleDash(innerArgv);
          innerArgv = middleware_1.applyMiddleware(innerArgv, yargs3, middlewares, false);
          let handlerResult;
          if (is_promise_1.isPromise(innerArgv)) {
            handlerResult = innerArgv.then((argv) => commandHandler.handler(argv));
          } else {
            handlerResult = commandHandler.handler(innerArgv);
          }
          const handlerFinishCommand = yargs3.getHandlerFinishCommand();
          if (is_promise_1.isPromise(handlerResult)) {
            yargs3.getUsageInstance().cacheHelpMessage();
            handlerResult.then((value) => {
              if (handlerFinishCommand) {
                handlerFinishCommand(value);
              }
            }).catch((error5) => {
              try {
                yargs3.getUsageInstance().fail(null, error5);
              } catch (err) {
              }
            }).then(() => {
              yargs3.getUsageInstance().clearCachedHelpMessage();
            });
          } else {
            if (handlerFinishCommand) {
              handlerFinishCommand(handlerResult);
            }
          }
        }
        if (command3) {
          currentContext.commands.pop();
          currentContext.fullCommands.pop();
        }
        numFiles = currentContext.files.length - numFiles;
        if (numFiles > 0)
          currentContext.files.splice(numFiles * -1, numFiles);
        return innerArgv;
      }, "runCommand");
      function shouldUpdateUsage(yargs3) {
        return !yargs3.getUsageInstance().getUsageDisabled() && yargs3.getUsageInstance().getUsage().length === 0;
      }
      __name(shouldUpdateUsage, "shouldUpdateUsage");
      function usageFromParentCommandsCommandHandler(parentCommands, commandHandler) {
        const c3 = DEFAULT_MARKER.test(commandHandler.original) ? commandHandler.original.replace(DEFAULT_MARKER, "").trim() : commandHandler.original;
        const pc = parentCommands.filter((c4) => {
          return !DEFAULT_MARKER.test(c4);
        });
        pc.push(c3);
        return `$0 ${pc.join(" ")}`;
      }
      __name(usageFromParentCommandsCommandHandler, "usageFromParentCommandsCommandHandler");
      self2.runDefaultBuilderOn = function(yargs3) {
        common_types_1.assertNotStrictEqual(defaultCommand, void 0);
        if (shouldUpdateUsage(yargs3)) {
          const commandString = DEFAULT_MARKER.test(defaultCommand.original) ? defaultCommand.original : defaultCommand.original.replace(/^[^[\]<>]*/, "$0 ");
          yargs3.getUsageInstance().usage(commandString, defaultCommand.description);
        }
        const builder = defaultCommand.builder;
        if (isCommandBuilderCallback(builder)) {
          builder(yargs3);
        } else {
          Object.keys(builder).forEach((key) => {
            yargs3.option(key, builder[key]);
          });
        }
      };
      function populatePositionals(commandHandler, argv, context) {
        argv._ = argv._.slice(context.commands.length);
        const demanded = commandHandler.demanded.slice(0);
        const optional = commandHandler.optional.slice(0);
        const positionalMap = {};
        validation.positionalCount(demanded.length, argv._.length);
        while (demanded.length) {
          const demand = demanded.shift();
          populatePositional(demand, argv, positionalMap);
        }
        while (optional.length) {
          const maybe = optional.shift();
          populatePositional(maybe, argv, positionalMap);
        }
        argv._ = context.commands.concat(argv._);
        postProcessPositionals(argv, positionalMap, self2.cmdToParseOptions(commandHandler.original));
        return positionalMap;
      }
      __name(populatePositionals, "populatePositionals");
      function populatePositional(positional, argv, positionalMap) {
        const cmd = positional.cmd[0];
        if (positional.variadic) {
          positionalMap[cmd] = argv._.splice(0).map(String);
        } else {
          if (argv._.length)
            positionalMap[cmd] = [String(argv._.shift())];
        }
      }
      __name(populatePositional, "populatePositional");
      function postProcessPositionals(argv, positionalMap, parseOptions) {
        const options = Object.assign({}, yargs2.getOptions());
        options.default = Object.assign(parseOptions.default, options.default);
        for (const key of Object.keys(parseOptions.alias)) {
          options.alias[key] = (options.alias[key] || []).concat(parseOptions.alias[key]);
        }
        options.array = options.array.concat(parseOptions.array);
        delete options.config;
        const unparsed = [];
        Object.keys(positionalMap).forEach((key) => {
          positionalMap[key].map((value) => {
            if (options.configuration["unknown-options-as-args"])
              options.key[key] = true;
            unparsed.push(`--${key}`);
            unparsed.push(value);
          });
        });
        if (!unparsed.length)
          return;
        const config = Object.assign({}, options.configuration, {
          "populate--": true
        });
        const parsed = Parser.detailed(unparsed, Object.assign({}, options, {
          configuration: config
        }));
        if (parsed.error) {
          yargs2.getUsageInstance().fail(parsed.error.message, parsed.error);
        } else {
          const positionalKeys = Object.keys(positionalMap);
          Object.keys(positionalMap).forEach((key) => {
            positionalKeys.push(...parsed.aliases[key]);
          });
          Object.keys(parsed.argv).forEach((key) => {
            if (positionalKeys.indexOf(key) !== -1) {
              if (!positionalMap[key])
                positionalMap[key] = parsed.argv[key];
              argv[key] = parsed.argv[key];
            }
          });
        }
      }
      __name(postProcessPositionals, "postProcessPositionals");
      self2.cmdToParseOptions = function(cmdString) {
        const parseOptions = {
          array: [],
          default: {},
          alias: {},
          demand: {}
        };
        const parsed = parse_command_1.parseCommand(cmdString);
        parsed.demanded.forEach((d3) => {
          const [cmd, ...aliases2] = d3.cmd;
          if (d3.variadic) {
            parseOptions.array.push(cmd);
            parseOptions.default[cmd] = [];
          }
          parseOptions.alias[cmd] = aliases2;
          parseOptions.demand[cmd] = true;
        });
        parsed.optional.forEach((o3) => {
          const [cmd, ...aliases2] = o3.cmd;
          if (o3.variadic) {
            parseOptions.array.push(cmd);
            parseOptions.default[cmd] = [];
          }
          parseOptions.alias[cmd] = aliases2;
        });
        return parseOptions;
      };
      self2.reset = () => {
        handlers = {};
        aliasMap = {};
        defaultCommand = void 0;
        return self2;
      };
      const frozens = [];
      self2.freeze = () => {
        frozens.push({
          handlers,
          aliasMap,
          defaultCommand
        });
      };
      self2.unfreeze = () => {
        const frozen = frozens.pop();
        common_types_1.assertNotStrictEqual(frozen, void 0);
        ({
          handlers,
          aliasMap,
          defaultCommand
        } = frozen);
      };
      return self2;
    }
    __name(command2, "command");
    exports2.command = command2;
    function isCommandHandlerDefinition(cmd) {
      return typeof cmd === "object";
    }
    __name(isCommandHandlerDefinition, "isCommandHandlerDefinition");
    exports2.isCommandHandlerDefinition = isCommandHandlerDefinition;
    function isCommandBuilderDefinition(builder) {
      return typeof builder === "object" && !!builder.builder && typeof builder.handler === "function";
    }
    __name(isCommandBuilderDefinition, "isCommandBuilderDefinition");
    exports2.isCommandBuilderDefinition = isCommandBuilderDefinition;
    function isCommandBuilderCallback(builder) {
      return typeof builder === "function";
    }
    __name(isCommandBuilderCallback, "isCommandBuilderCallback");
    exports2.isCommandBuilderCallback = isCommandBuilderCallback;
    function isCommandBuilderOptionDefinitions(builder) {
      return typeof builder === "object";
    }
    __name(isCommandBuilderOptionDefinitions, "isCommandBuilderOptionDefinitions");
  }
});

// node_modules/yargs/build/lib/obj-filter.js
var require_obj_filter = __commonJS({
  "node_modules/yargs/build/lib/obj-filter.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.objFilter = void 0;
    var common_types_1 = require_common_types();
    function objFilter(original = {}, filter4 = () => true) {
      const obj = {};
      common_types_1.objectKeys(original).forEach((key) => {
        if (filter4(key, original[key])) {
          obj[key] = original[key];
        }
      });
      return obj;
    }
    __name(objFilter, "objFilter");
    exports2.objFilter = objFilter;
  }
});

// node_modules/yargs/node_modules/decamelize/index.js
var require_decamelize3 = __commonJS({
  "node_modules/yargs/node_modules/decamelize/index.js"(exports2, module2) {
    "use strict";
    module2.exports = function(str, sep5) {
      if (typeof str !== "string") {
        throw new TypeError("Expected a string");
      }
      sep5 = typeof sep5 === "undefined" ? "_" : sep5;
      return str.replace(/([a-z\d])([A-Z])/g, "$1" + sep5 + "$2").replace(/([A-Z]+)([A-Z][a-z\d]+)/g, "$1" + sep5 + "$2").toLowerCase();
    };
  }
});

// ../../node_modules/set-blocking/index.js
var require_set_blocking = __commonJS({
  "../../node_modules/set-blocking/index.js"(exports2, module2) {
    module2.exports = function(blocking) {
      [process.stdout, process.stderr].forEach(function(stream3) {
        if (stream3._handle && stream3.isTTY && typeof stream3._handle.setBlocking === "function") {
          stream3._handle.setBlocking(blocking);
        }
      });
    };
  }
});

// node_modules/cliui/node_modules/wrap-ansi/index.js
var require_wrap_ansi2 = __commonJS({
  "node_modules/cliui/node_modules/wrap-ansi/index.js"(exports2, module2) {
    "use strict";
    var stringWidth2 = require_string_width();
    var stripAnsi2 = require_strip_ansi();
    var ansiStyles = require_ansi_styles();
    var ESCAPES = /* @__PURE__ */ new Set([
      "\x1B",
      "\x9B"
    ]);
    var END_CODE = 39;
    var wrapAnsi2 = /* @__PURE__ */ __name((code) => `${ESCAPES.values().next().value}[${code}m`, "wrapAnsi");
    var wordLengths = /* @__PURE__ */ __name((string) => string.split(" ").map((character) => stringWidth2(character)), "wordLengths");
    var wrapWord = /* @__PURE__ */ __name((rows, word, columns) => {
      const characters = [...word];
      let isInsideEscape = false;
      let visible = stringWidth2(stripAnsi2(rows[rows.length - 1]));
      for (const [index, character] of characters.entries()) {
        const characterLength = stringWidth2(character);
        if (visible + characterLength <= columns) {
          rows[rows.length - 1] += character;
        } else {
          rows.push(character);
          visible = 0;
        }
        if (ESCAPES.has(character)) {
          isInsideEscape = true;
        } else if (isInsideEscape && character === "m") {
          isInsideEscape = false;
          continue;
        }
        if (isInsideEscape) {
          continue;
        }
        visible += characterLength;
        if (visible === columns && index < characters.length - 1) {
          rows.push("");
          visible = 0;
        }
      }
      if (!visible && rows[rows.length - 1].length > 0 && rows.length > 1) {
        rows[rows.length - 2] += rows.pop();
      }
    }, "wrapWord");
    var stringVisibleTrimSpacesRight = /* @__PURE__ */ __name((str) => {
      const words = str.split(" ");
      let last = words.length;
      while (last > 0) {
        if (stringWidth2(words[last - 1]) > 0) {
          break;
        }
        last--;
      }
      if (last === words.length) {
        return str;
      }
      return words.slice(0, last).join(" ") + words.slice(last).join("");
    }, "stringVisibleTrimSpacesRight");
    var exec5 = /* @__PURE__ */ __name((string, columns, options = {}) => {
      if (options.trim !== false && string.trim() === "") {
        return "";
      }
      let pre = "";
      let ret = "";
      let escapeCode;
      const lengths = wordLengths(string);
      let rows = [""];
      for (const [index, word] of string.split(" ").entries()) {
        if (options.trim !== false) {
          rows[rows.length - 1] = rows[rows.length - 1].trimLeft();
        }
        let rowLength = stringWidth2(rows[rows.length - 1]);
        if (index !== 0) {
          if (rowLength >= columns && (options.wordWrap === false || options.trim === false)) {
            rows.push("");
            rowLength = 0;
          }
          if (rowLength > 0 || options.trim === false) {
            rows[rows.length - 1] += " ";
            rowLength++;
          }
        }
        if (options.hard && lengths[index] > columns) {
          const remainingColumns = columns - rowLength;
          const breaksStartingThisLine = 1 + Math.floor((lengths[index] - remainingColumns - 1) / columns);
          const breaksStartingNextLine = Math.floor((lengths[index] - 1) / columns);
          if (breaksStartingNextLine < breaksStartingThisLine) {
            rows.push("");
          }
          wrapWord(rows, word, columns);
          continue;
        }
        if (rowLength + lengths[index] > columns && rowLength > 0 && lengths[index] > 0) {
          if (options.wordWrap === false && rowLength < columns) {
            wrapWord(rows, word, columns);
            continue;
          }
          rows.push("");
        }
        if (rowLength + lengths[index] > columns && options.wordWrap === false) {
          wrapWord(rows, word, columns);
          continue;
        }
        rows[rows.length - 1] += word;
      }
      if (options.trim !== false) {
        rows = rows.map(stringVisibleTrimSpacesRight);
      }
      pre = rows.join("\n");
      for (const [index, character] of [...pre].entries()) {
        ret += character;
        if (ESCAPES.has(character)) {
          const code2 = parseFloat(/\d[^m]*/.exec(pre.slice(index, index + 4)));
          escapeCode = code2 === END_CODE ? null : code2;
        }
        const code = ansiStyles.codes.get(Number(escapeCode));
        if (escapeCode && code) {
          if (pre[index + 1] === "\n") {
            ret += wrapAnsi2(code);
          } else if (character === "\n") {
            ret += wrapAnsi2(escapeCode);
          }
        }
      }
      return ret;
    }, "exec");
    module2.exports = (string, columns, options) => {
      return String(string).normalize().replace(/\r\n/g, "\n").split("\n").map((line) => exec5(line, columns, options)).join("\n");
    };
  }
});

// node_modules/cliui/index.js
var require_cliui = __commonJS({
  "node_modules/cliui/index.js"(exports2, module2) {
    "use strict";
    var stringWidth2 = require_string_width();
    var stripAnsi2 = require_strip_ansi();
    var wrap = require_wrap_ansi2();
    var align = {
      right: alignRight,
      center: alignCenter
    };
    var top = 0;
    var right = 1;
    var bottom = 2;
    var left = 3;
    var UI = class {
      static {
        __name(this, "UI");
      }
      constructor(opts) {
        this.width = opts.width;
        this.wrap = opts.wrap;
        this.rows = [];
      }
      span(...args) {
        const cols = this.div(...args);
        cols.span = true;
      }
      resetOutput() {
        this.rows = [];
      }
      div(...args) {
        if (args.length === 0) {
          this.div("");
        }
        if (this.wrap && this._shouldApplyLayoutDSL(...args)) {
          return this._applyLayoutDSL(args[0]);
        }
        const cols = args.map((arg) => {
          if (typeof arg === "string") {
            return this._colFromString(arg);
          }
          return arg;
        });
        this.rows.push(cols);
        return cols;
      }
      _shouldApplyLayoutDSL(...args) {
        return args.length === 1 && typeof args[0] === "string" && /[\t\n]/.test(args[0]);
      }
      _applyLayoutDSL(str) {
        const rows = str.split("\n").map((row) => row.split("	"));
        let leftColumnWidth = 0;
        rows.forEach((columns) => {
          if (columns.length > 1 && stringWidth2(columns[0]) > leftColumnWidth) {
            leftColumnWidth = Math.min(
              Math.floor(this.width * 0.5),
              stringWidth2(columns[0])
            );
          }
        });
        rows.forEach((columns) => {
          this.div(...columns.map((r3, i3) => {
            return {
              text: r3.trim(),
              padding: this._measurePadding(r3),
              width: i3 === 0 && columns.length > 1 ? leftColumnWidth : void 0
            };
          }));
        });
        return this.rows[this.rows.length - 1];
      }
      _colFromString(text) {
        return {
          text,
          padding: this._measurePadding(text)
        };
      }
      _measurePadding(str) {
        const noAnsi = stripAnsi2(str);
        return [0, noAnsi.match(/\s*$/)[0].length, 0, noAnsi.match(/^\s*/)[0].length];
      }
      toString() {
        const lines = [];
        this.rows.forEach((row) => {
          this.rowToString(row, lines);
        });
        return lines.filter((line) => !line.hidden).map((line) => line.text).join("\n");
      }
      rowToString(row, lines) {
        this._rasterize(row).forEach((rrow, r3) => {
          let str = "";
          rrow.forEach((col, c3) => {
            const { width } = row[c3];
            const wrapWidth = this._negatePadding(row[c3]);
            let ts = col;
            if (wrapWidth > stringWidth2(col)) {
              ts += " ".repeat(wrapWidth - stringWidth2(col));
            }
            if (row[c3].align && row[c3].align !== "left" && this.wrap) {
              ts = align[row[c3].align](ts, wrapWidth);
              if (stringWidth2(ts) < wrapWidth) {
                ts += " ".repeat(width - stringWidth2(ts) - 1);
              }
            }
            const padding = row[c3].padding || [0, 0, 0, 0];
            if (padding[left]) {
              str += " ".repeat(padding[left]);
            }
            str += addBorder(row[c3], ts, "| ");
            str += ts;
            str += addBorder(row[c3], ts, " |");
            if (padding[right]) {
              str += " ".repeat(padding[right]);
            }
            if (r3 === 0 && lines.length > 0) {
              str = this._renderInline(str, lines[lines.length - 1]);
            }
          });
          lines.push({
            text: str.replace(/ +$/, ""),
            span: row.span
          });
        });
        return lines;
      }
      // if the full 'source' can render in
      // the target line, do so.
      _renderInline(source, previousLine) {
        const leadingWhitespace = source.match(/^ */)[0].length;
        const target = previousLine.text;
        const targetTextWidth = stringWidth2(target.trimRight());
        if (!previousLine.span) {
          return source;
        }
        if (!this.wrap) {
          previousLine.hidden = true;
          return target + source;
        }
        if (leadingWhitespace < targetTextWidth) {
          return source;
        }
        previousLine.hidden = true;
        return target.trimRight() + " ".repeat(leadingWhitespace - targetTextWidth) + source.trimLeft();
      }
      _rasterize(row) {
        const rrows = [];
        const widths = this._columnWidths(row);
        let wrapped;
        row.forEach((col, c3) => {
          col.width = widths[c3];
          if (this.wrap) {
            wrapped = wrap(col.text, this._negatePadding(col), { hard: true }).split("\n");
          } else {
            wrapped = col.text.split("\n");
          }
          if (col.border) {
            wrapped.unshift("." + "-".repeat(this._negatePadding(col) + 2) + ".");
            wrapped.push("'" + "-".repeat(this._negatePadding(col) + 2) + "'");
          }
          if (col.padding) {
            wrapped.unshift(...new Array(col.padding[top] || 0).fill(""));
            wrapped.push(...new Array(col.padding[bottom] || 0).fill(""));
          }
          wrapped.forEach((str, r3) => {
            if (!rrows[r3]) {
              rrows.push([]);
            }
            const rrow = rrows[r3];
            for (let i3 = 0; i3 < c3; i3++) {
              if (rrow[i3] === void 0) {
                rrow.push("");
              }
            }
            rrow.push(str);
          });
        });
        return rrows;
      }
      _negatePadding(col) {
        let wrapWidth = col.width;
        if (col.padding) {
          wrapWidth -= (col.padding[left] || 0) + (col.padding[right] || 0);
        }
        if (col.border) {
          wrapWidth -= 4;
        }
        return wrapWidth;
      }
      _columnWidths(row) {
        if (!this.wrap) {
          return row.map((col) => {
            return col.width || stringWidth2(col.text);
          });
        }
        let unset = row.length;
        let remainingWidth = this.width;
        const widths = row.map((col) => {
          if (col.width) {
            unset--;
            remainingWidth -= col.width;
            return col.width;
          }
          return void 0;
        });
        const unsetWidth = unset ? Math.floor(remainingWidth / unset) : 0;
        return widths.map((w3, i3) => {
          if (w3 === void 0) {
            return Math.max(unsetWidth, _minWidth(row[i3]));
          }
          return w3;
        });
      }
    };
    function addBorder(col, ts, style) {
      if (col.border) {
        if (/[.']-+[.']/.test(ts)) {
          return "";
        }
        if (ts.trim().length !== 0) {
          return style;
        }
        return "  ";
      }
      return "";
    }
    __name(addBorder, "addBorder");
    function _minWidth(col) {
      const padding = col.padding || [];
      const minWidth = 1 + (padding[left] || 0) + (padding[right] || 0);
      if (col.border) {
        return minWidth + 4;
      }
      return minWidth;
    }
    __name(_minWidth, "_minWidth");
    function getWindowWidth() {
      if (typeof process === "object" && process.stdout && process.stdout.columns) {
        return process.stdout.columns;
      }
    }
    __name(getWindowWidth, "getWindowWidth");
    function alignRight(str, width) {
      str = str.trim();
      const strWidth = stringWidth2(str);
      if (strWidth < width) {
        return " ".repeat(width - strWidth) + str;
      }
      return str;
    }
    __name(alignRight, "alignRight");
    function alignCenter(str, width) {
      str = str.trim();
      const strWidth = stringWidth2(str);
      if (strWidth >= width) {
        return str;
      }
      return " ".repeat(width - strWidth >> 1) + str;
    }
    __name(alignCenter, "alignCenter");
    module2.exports = function(opts = {}) {
      return new UI({
        width: opts.width || getWindowWidth() || /* istanbul ignore next */
        80,
        wrap: opts.wrap !== false
      });
    };
  }
});

// node_modules/yargs/build/lib/usage.js
var require_usage = __commonJS({
  "node_modules/yargs/build/lib/usage.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.usage = void 0;
    var common_types_1 = require_common_types();
    var obj_filter_1 = require_obj_filter();
    var path38 = require("path");
    var yerror_1 = require_yerror();
    var decamelize3 = require_decamelize3();
    var setBlocking = require_set_blocking();
    var stringWidth2 = require_string_width();
    function usage(yargs2, y18n) {
      const __ = y18n.__;
      const self2 = {};
      const fails = [];
      self2.failFn = /* @__PURE__ */ __name(function failFn(f3) {
        fails.push(f3);
      }, "failFn");
      let failMessage = null;
      let showHelpOnFail = true;
      self2.showHelpOnFail = /* @__PURE__ */ __name(function showHelpOnFailFn(arg1 = true, arg2) {
        function parseFunctionArgs() {
          return typeof arg1 === "string" ? [true, arg1] : [arg1, arg2];
        }
        __name(parseFunctionArgs, "parseFunctionArgs");
        const [enabled, message2] = parseFunctionArgs();
        failMessage = message2;
        showHelpOnFail = enabled;
        return self2;
      }, "showHelpOnFailFn");
      let failureOutput = false;
      self2.fail = /* @__PURE__ */ __name(function fail(msg, err) {
        const logger4 = yargs2._getLoggerInstance();
        if (fails.length) {
          for (let i3 = fails.length - 1; i3 >= 0; --i3) {
            fails[i3](msg, err, self2);
          }
        } else {
          if (yargs2.getExitProcess())
            setBlocking(true);
          if (!failureOutput) {
            failureOutput = true;
            if (showHelpOnFail) {
              yargs2.showHelp("error");
              logger4.error();
            }
            if (msg || err)
              logger4.error(msg || err);
            if (failMessage) {
              if (msg || err)
                logger4.error("");
              logger4.error(failMessage);
            }
          }
          err = err || new yerror_1.YError(msg);
          if (yargs2.getExitProcess()) {
            return yargs2.exit(1);
          } else if (yargs2._hasParseCallback()) {
            return yargs2.exit(1, err);
          } else {
            throw err;
          }
        }
      }, "fail");
      let usages = [];
      let usageDisabled = false;
      self2.usage = (msg, description) => {
        if (msg === null) {
          usageDisabled = true;
          usages = [];
          return self2;
        }
        usageDisabled = false;
        usages.push([msg, description || ""]);
        return self2;
      };
      self2.getUsage = () => {
        return usages;
      };
      self2.getUsageDisabled = () => {
        return usageDisabled;
      };
      self2.getPositionalGroupName = () => {
        return __("Positionals:");
      };
      let examples = [];
      self2.example = (cmd, description) => {
        examples.push([cmd, description || ""]);
      };
      let commands3 = [];
      self2.command = /* @__PURE__ */ __name(function command2(cmd, description, isDefault, aliases2, deprecated = false) {
        if (isDefault) {
          commands3 = commands3.map((cmdArray) => {
            cmdArray[2] = false;
            return cmdArray;
          });
        }
        commands3.push([cmd, description || "", isDefault, aliases2, deprecated]);
      }, "command");
      self2.getCommands = () => commands3;
      let descriptions = {};
      self2.describe = /* @__PURE__ */ __name(function describe2(keyOrKeys, desc) {
        if (Array.isArray(keyOrKeys)) {
          keyOrKeys.forEach((k3) => {
            self2.describe(k3, desc);
          });
        } else if (typeof keyOrKeys === "object") {
          Object.keys(keyOrKeys).forEach((k3) => {
            self2.describe(k3, keyOrKeys[k3]);
          });
        } else {
          descriptions[keyOrKeys] = desc;
        }
      }, "describe");
      self2.getDescriptions = () => descriptions;
      let epilogs = [];
      self2.epilog = (msg) => {
        epilogs.push(msg);
      };
      let wrapSet = false;
      let wrap;
      self2.wrap = (cols) => {
        wrapSet = true;
        wrap = cols;
      };
      function getWrap() {
        if (!wrapSet) {
          wrap = windowWidth();
          wrapSet = true;
        }
        return wrap;
      }
      __name(getWrap, "getWrap");
      const deferY18nLookupPrefix = "__yargsString__:";
      self2.deferY18nLookup = (str) => deferY18nLookupPrefix + str;
      self2.help = /* @__PURE__ */ __name(function help() {
        if (cachedHelpMessage)
          return cachedHelpMessage;
        normalizeAliases();
        const base$0 = yargs2.customScriptName ? yargs2.$0 : path38.basename(yargs2.$0);
        const demandedOptions = yargs2.getDemandedOptions();
        const demandedCommands = yargs2.getDemandedCommands();
        const deprecatedOptions = yargs2.getDeprecatedOptions();
        const groups = yargs2.getGroups();
        const options = yargs2.getOptions();
        let keys = [];
        keys = keys.concat(Object.keys(descriptions));
        keys = keys.concat(Object.keys(demandedOptions));
        keys = keys.concat(Object.keys(demandedCommands));
        keys = keys.concat(Object.keys(options.default));
        keys = keys.filter(filterHiddenOptions);
        keys = Object.keys(keys.reduce((acc, key) => {
          if (key !== "_")
            acc[key] = true;
          return acc;
        }, {}));
        const theWrap = getWrap();
        const ui = require_cliui()({
          width: theWrap,
          wrap: !!theWrap
        });
        if (!usageDisabled) {
          if (usages.length) {
            usages.forEach((usage2) => {
              ui.div(`${usage2[0].replace(/\$0/g, base$0)}`);
              if (usage2[1]) {
                ui.div({ text: `${usage2[1]}`, padding: [1, 0, 0, 0] });
              }
            });
            ui.div();
          } else if (commands3.length) {
            let u3 = null;
            if (demandedCommands._) {
              u3 = `${base$0} <${__("command")}>
`;
            } else {
              u3 = `${base$0} [${__("command")}]
`;
            }
            ui.div(`${u3}`);
          }
        }
        if (commands3.length) {
          ui.div(__("Commands:"));
          const context = yargs2.getContext();
          const parentCommands = context.commands.length ? `${context.commands.join(" ")} ` : "";
          if (yargs2.getParserConfiguration()["sort-commands"] === true) {
            commands3 = commands3.sort((a3, b3) => a3[0].localeCompare(b3[0]));
          }
          commands3.forEach((command2) => {
            const commandString = `${base$0} ${parentCommands}${command2[0].replace(/^\$0 ?/, "")}`;
            ui.span({
              text: commandString,
              padding: [0, 2, 0, 2],
              width: maxWidth(commands3, theWrap, `${base$0}${parentCommands}`) + 4
            }, { text: command2[1] });
            const hints = [];
            if (command2[2])
              hints.push(`[${__("default")}]`);
            if (command2[3] && command2[3].length) {
              hints.push(`[${__("aliases:")} ${command2[3].join(", ")}]`);
            }
            if (command2[4]) {
              if (typeof command2[4] === "string") {
                hints.push(`[${__("deprecated: %s", command2[4])}]`);
              } else {
                hints.push(`[${__("deprecated")}]`);
              }
            }
            if (hints.length) {
              ui.div({ text: hints.join(" "), padding: [0, 0, 0, 2], align: "right" });
            } else {
              ui.div();
            }
          });
          ui.div();
        }
        const aliasKeys = (Object.keys(options.alias) || []).concat(Object.keys(yargs2.parsed.newAliases) || []);
        keys = keys.filter((key) => !yargs2.parsed.newAliases[key] && aliasKeys.every((alias) => (options.alias[alias] || []).indexOf(key) === -1));
        const defaultGroup = __("Options:");
        if (!groups[defaultGroup])
          groups[defaultGroup] = [];
        addUngroupedKeys(keys, options.alias, groups, defaultGroup);
        Object.keys(groups).forEach((groupName) => {
          if (!groups[groupName].length)
            return;
          const normalizedKeys = groups[groupName].filter(filterHiddenOptions).map((key) => {
            if (~aliasKeys.indexOf(key))
              return key;
            for (let i3 = 0, aliasKey; (aliasKey = aliasKeys[i3]) !== void 0; i3++) {
              if (~(options.alias[aliasKey] || []).indexOf(key))
                return aliasKey;
            }
            return key;
          });
          if (normalizedKeys.length < 1)
            return;
          ui.div(groupName);
          const switches = normalizedKeys.reduce((acc, key) => {
            acc[key] = [key].concat(options.alias[key] || []).map((sw) => {
              if (groupName === self2.getPositionalGroupName())
                return sw;
              else {
                return (
                  // matches yargs-parser logic in which single-digits
                  // aliases declared with a boolean type are now valid
                  (/^[0-9]$/.test(sw) ? ~options.boolean.indexOf(key) ? "-" : "--" : sw.length > 1 ? "--" : "-") + sw
                );
              }
            }).join(", ");
            return acc;
          }, {});
          normalizedKeys.forEach((key) => {
            const kswitch = switches[key];
            let desc = descriptions[key] || "";
            let type = null;
            if (~desc.lastIndexOf(deferY18nLookupPrefix))
              desc = __(desc.substring(deferY18nLookupPrefix.length));
            if (~options.boolean.indexOf(key))
              type = `[${__("boolean")}]`;
            if (~options.count.indexOf(key))
              type = `[${__("count")}]`;
            if (~options.string.indexOf(key))
              type = `[${__("string")}]`;
            if (~options.normalize.indexOf(key))
              type = `[${__("string")}]`;
            if (~options.array.indexOf(key))
              type = `[${__("array")}]`;
            if (~options.number.indexOf(key))
              type = `[${__("number")}]`;
            const deprecatedExtra = /* @__PURE__ */ __name((deprecated) => typeof deprecated === "string" ? `[${__("deprecated: %s", deprecated)}]` : `[${__("deprecated")}]`, "deprecatedExtra");
            const extra = [
              key in deprecatedOptions ? deprecatedExtra(deprecatedOptions[key]) : null,
              type,
              key in demandedOptions ? `[${__("required")}]` : null,
              options.choices && options.choices[key] ? `[${__("choices:")} ${self2.stringifiedValues(options.choices[key])}]` : null,
              defaultString(options.default[key], options.defaultDescription[key])
            ].filter(Boolean).join(" ");
            ui.span({ text: kswitch, padding: [0, 2, 0, 2], width: maxWidth(switches, theWrap) + 4 }, desc);
            if (extra)
              ui.div({ text: extra, padding: [0, 0, 0, 2], align: "right" });
            else
              ui.div();
          });
          ui.div();
        });
        if (examples.length) {
          ui.div(__("Examples:"));
          examples.forEach((example) => {
            example[0] = example[0].replace(/\$0/g, base$0);
          });
          examples.forEach((example) => {
            if (example[1] === "") {
              ui.div({
                text: example[0],
                padding: [0, 2, 0, 2]
              });
            } else {
              ui.div({
                text: example[0],
                padding: [0, 2, 0, 2],
                width: maxWidth(examples, theWrap) + 4
              }, {
                text: example[1]
              });
            }
          });
          ui.div();
        }
        if (epilogs.length > 0) {
          const e3 = epilogs.map((epilog) => epilog.replace(/\$0/g, base$0)).join("\n");
          ui.div(`${e3}
`);
        }
        return ui.toString().replace(/\s*$/, "");
      }, "help");
      function maxWidth(table3, theWrap, modifier) {
        let width = 0;
        if (!Array.isArray(table3)) {
          table3 = Object.values(table3).map((v6) => [v6]);
        }
        table3.forEach((v6) => {
          width = Math.max(stringWidth2(modifier ? `${modifier} ${v6[0]}` : v6[0]), width);
        });
        if (theWrap)
          width = Math.min(width, parseInt((theWrap * 0.5).toString(), 10));
        return width;
      }
      __name(maxWidth, "maxWidth");
      function normalizeAliases() {
        const demandedOptions = yargs2.getDemandedOptions();
        const options = yargs2.getOptions();
        (Object.keys(options.alias) || []).forEach((key) => {
          options.alias[key].forEach((alias) => {
            if (descriptions[alias])
              self2.describe(key, descriptions[alias]);
            if (alias in demandedOptions)
              yargs2.demandOption(key, demandedOptions[alias]);
            if (~options.boolean.indexOf(alias))
              yargs2.boolean(key);
            if (~options.count.indexOf(alias))
              yargs2.count(key);
            if (~options.string.indexOf(alias))
              yargs2.string(key);
            if (~options.normalize.indexOf(alias))
              yargs2.normalize(key);
            if (~options.array.indexOf(alias))
              yargs2.array(key);
            if (~options.number.indexOf(alias))
              yargs2.number(key);
          });
        });
      }
      __name(normalizeAliases, "normalizeAliases");
      let cachedHelpMessage;
      self2.cacheHelpMessage = function() {
        cachedHelpMessage = this.help();
      };
      self2.clearCachedHelpMessage = function() {
        cachedHelpMessage = void 0;
      };
      function addUngroupedKeys(keys, aliases2, groups, defaultGroup) {
        let groupedKeys = [];
        let toCheck = null;
        Object.keys(groups).forEach((group) => {
          groupedKeys = groupedKeys.concat(groups[group]);
        });
        keys.forEach((key) => {
          toCheck = [key].concat(aliases2[key]);
          if (!toCheck.some((k3) => groupedKeys.indexOf(k3) !== -1)) {
            groups[defaultGroup].push(key);
          }
        });
        return groupedKeys;
      }
      __name(addUngroupedKeys, "addUngroupedKeys");
      function filterHiddenOptions(key) {
        return yargs2.getOptions().hiddenOptions.indexOf(key) < 0 || yargs2.parsed.argv[yargs2.getOptions().showHiddenOpt];
      }
      __name(filterHiddenOptions, "filterHiddenOptions");
      self2.showHelp = (level) => {
        const logger4 = yargs2._getLoggerInstance();
        if (!level)
          level = "error";
        const emit = typeof level === "function" ? level : logger4[level];
        emit(self2.help());
      };
      self2.functionDescription = (fn) => {
        const description = fn.name ? decamelize3(fn.name, "-") : __("generated-value");
        return ["(", description, ")"].join("");
      };
      self2.stringifiedValues = /* @__PURE__ */ __name(function stringifiedValues(values, separator) {
        let string = "";
        const sep5 = separator || ", ";
        const array = [].concat(values);
        if (!values || !array.length)
          return string;
        array.forEach((value) => {
          if (string.length)
            string += sep5;
          string += JSON.stringify(value);
        });
        return string;
      }, "stringifiedValues");
      function defaultString(value, defaultDescription) {
        let string = `[${__("default:")} `;
        if (value === void 0 && !defaultDescription)
          return null;
        if (defaultDescription) {
          string += defaultDescription;
        } else {
          switch (typeof value) {
            case "string":
              string += `"${value}"`;
              break;
            case "object":
              string += JSON.stringify(value);
              break;
            default:
              string += value;
          }
        }
        return `${string}]`;
      }
      __name(defaultString, "defaultString");
      function windowWidth() {
        const maxWidth2 = 80;
        if (typeof process === "object" && process.stdout && process.stdout.columns) {
          return Math.min(maxWidth2, process.stdout.columns);
        } else {
          return maxWidth2;
        }
      }
      __name(windowWidth, "windowWidth");
      let version2 = null;
      self2.version = (ver) => {
        version2 = ver;
      };
      self2.showVersion = () => {
        const logger4 = yargs2._getLoggerInstance();
        logger4.log(version2);
      };
      self2.reset = /* @__PURE__ */ __name(function reset3(localLookup) {
        failMessage = null;
        failureOutput = false;
        usages = [];
        usageDisabled = false;
        epilogs = [];
        examples = [];
        commands3 = [];
        descriptions = obj_filter_1.objFilter(descriptions, (k3) => !localLookup[k3]);
        return self2;
      }, "reset");
      const frozens = [];
      self2.freeze = /* @__PURE__ */ __name(function freeze() {
        frozens.push({
          failMessage,
          failureOutput,
          usages,
          usageDisabled,
          epilogs,
          examples,
          commands: commands3,
          descriptions
        });
      }, "freeze");
      self2.unfreeze = /* @__PURE__ */ __name(function unfreeze() {
        const frozen = frozens.pop();
        common_types_1.assertNotStrictEqual(frozen, void 0);
        ({
          failMessage,
          failureOutput,
          usages,
          usageDisabled,
          epilogs,
          examples,
          commands: commands3,
          descriptions
        } = frozen);
      }, "unfreeze");
      return self2;
    }
    __name(usage, "usage");
    exports2.usage = usage;
  }
});

// node_modules/yargs/build/lib/completion-templates.js
var require_completion_templates = __commonJS({
  "node_modules/yargs/build/lib/completion-templates.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.completionZshTemplate = exports2.completionShTemplate = void 0;
    exports2.completionShTemplate = `###-begin-{{app_name}}-completions-###
#
# yargs command completion script
#
# Installation: {{app_path}} {{completion_command}} >> ~/.bashrc
#    or {{app_path}} {{completion_command}} >> ~/.bash_profile on OSX.
#
_yargs_completions()
{
    local cur_word args type_list

    cur_word="\${COMP_WORDS[COMP_CWORD]}"
    args=("\${COMP_WORDS[@]}")

    # ask yargs to generate completions.
    type_list=$({{app_path}} --get-yargs-completions "\${args[@]}")

    COMPREPLY=( $(compgen -W "\${type_list}" -- \${cur_word}) )

    # if no match was found, fall back to filename completion
    if [ \${#COMPREPLY[@]} -eq 0 ]; then
      COMPREPLY=()
    fi

    return 0
}
complete -o default -F _yargs_completions {{app_name}}
###-end-{{app_name}}-completions-###
`;
    exports2.completionZshTemplate = `###-begin-{{app_name}}-completions-###
#
# yargs command completion script
#
# Installation: {{app_path}} {{completion_command}} >> ~/.zshrc
#    or {{app_path}} {{completion_command}} >> ~/.zsh_profile on OSX.
#
_{{app_name}}_yargs_completions()
{
  local reply
  local si=$IFS
  IFS=$'
' reply=($(COMP_CWORD="$((CURRENT-1))" COMP_LINE="$BUFFER" COMP_POINT="$CURSOR" {{app_path}} --get-yargs-completions "\${words[@]}"))
  IFS=$si
  _describe 'values' reply
}
compdef _{{app_name}}_yargs_completions {{app_name}}
###-end-{{app_name}}-completions-###
`;
  }
});

// node_modules/yargs/build/lib/completion.js
var require_completion = __commonJS({
  "node_modules/yargs/build/lib/completion.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.completion = void 0;
    var command_1 = require_command();
    var templates = require_completion_templates();
    var is_promise_1 = require_is_promise();
    var parse_command_1 = require_parse_command();
    var path38 = require("path");
    var common_types_1 = require_common_types();
    function completion(yargs2, usage, command2) {
      const self2 = {
        completionKey: "get-yargs-completions"
      };
      let aliases2;
      self2.setParsed = /* @__PURE__ */ __name(function setParsed(parsed) {
        aliases2 = parsed.aliases;
      }, "setParsed");
      const zshShell = process.env.SHELL && process.env.SHELL.indexOf("zsh") !== -1 || process.env.ZSH_NAME && process.env.ZSH_NAME.indexOf("zsh") !== -1;
      self2.getCompletion = /* @__PURE__ */ __name(function getCompletion(args, done) {
        const completions = [];
        const current = args.length ? args[args.length - 1] : "";
        const argv = yargs2.parse(args, true);
        const parentCommands = yargs2.getContext().commands;
        function runCompletionFunction(argv2) {
          common_types_1.assertNotStrictEqual(completionFunction, null);
          if (isSyncCompletionFunction(completionFunction)) {
            const result2 = completionFunction(current, argv2);
            if (is_promise_1.isPromise(result2)) {
              return result2.then((list2) => {
                process.nextTick(() => {
                  done(list2);
                });
              }).catch((err) => {
                process.nextTick(() => {
                  throw err;
                });
              });
            }
            return done(result2);
          } else {
            return completionFunction(current, argv2, (completions2) => {
              done(completions2);
            });
          }
        }
        __name(runCompletionFunction, "runCompletionFunction");
        if (completionFunction) {
          return is_promise_1.isPromise(argv) ? argv.then(runCompletionFunction) : runCompletionFunction(argv);
        }
        const handlers = command2.getCommandHandlers();
        for (let i3 = 0, ii = args.length; i3 < ii; ++i3) {
          if (handlers[args[i3]] && handlers[args[i3]].builder) {
            const builder = handlers[args[i3]].builder;
            if (command_1.isCommandBuilderCallback(builder)) {
              const y2 = yargs2.reset();
              builder(y2);
              return y2.argv;
            }
          }
        }
        if (!current.match(/^-/) && parentCommands[parentCommands.length - 1] !== current) {
          usage.getCommands().forEach((usageCommand) => {
            const commandName = parse_command_1.parseCommand(usageCommand[0]).cmd;
            if (args.indexOf(commandName) === -1) {
              if (!zshShell) {
                completions.push(commandName);
              } else {
                const desc = usageCommand[1] || "";
                completions.push(commandName.replace(/:/g, "\\:") + ":" + desc);
              }
            }
          });
        }
        if (current.match(/^-/) || current === "" && completions.length === 0) {
          const descs = usage.getDescriptions();
          const options = yargs2.getOptions();
          Object.keys(options.key).forEach((key) => {
            const negable = !!options.configuration["boolean-negation"] && options.boolean.includes(key);
            let keyAndAliases = [key].concat(aliases2[key] || []);
            if (negable)
              keyAndAliases = keyAndAliases.concat(keyAndAliases.map((key2) => `no-${key2}`));
            function completeOptionKey(key2) {
              const notInArgs = keyAndAliases.every((val) => args.indexOf(`--${val}`) === -1);
              if (notInArgs) {
                const startsByTwoDashes = /* @__PURE__ */ __name((s3) => /^--/.test(s3), "startsByTwoDashes");
                const isShortOption = /* @__PURE__ */ __name((s3) => /^[^0-9]$/.test(s3), "isShortOption");
                const dashes = !startsByTwoDashes(current) && isShortOption(key2) ? "-" : "--";
                if (!zshShell) {
                  completions.push(dashes + key2);
                } else {
                  const desc = descs[key2] || "";
                  completions.push(dashes + `${key2.replace(/:/g, "\\:")}:${desc.replace("__yargsString__:", "")}`);
                }
              }
            }
            __name(completeOptionKey, "completeOptionKey");
            completeOptionKey(key);
            if (negable && !!options.default[key])
              completeOptionKey(`no-${key}`);
          });
        }
        done(completions);
      }, "getCompletion");
      self2.generateCompletionScript = /* @__PURE__ */ __name(function generateCompletionScript($0, cmd) {
        let script = zshShell ? templates.completionZshTemplate : templates.completionShTemplate;
        const name = path38.basename($0);
        if ($0.match(/\.js$/))
          $0 = `./${$0}`;
        script = script.replace(/{{app_name}}/g, name);
        script = script.replace(/{{completion_command}}/g, cmd);
        return script.replace(/{{app_path}}/g, $0);
      }, "generateCompletionScript");
      let completionFunction = null;
      self2.registerFunction = (fn) => {
        completionFunction = fn;
      };
      return self2;
    }
    __name(completion, "completion");
    exports2.completion = completion;
    function isSyncCompletionFunction(completionFunction) {
      return completionFunction.length < 3;
    }
    __name(isSyncCompletionFunction, "isSyncCompletionFunction");
  }
});

// node_modules/yargs/build/lib/levenshtein.js
var require_levenshtein = __commonJS({
  "node_modules/yargs/build/lib/levenshtein.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.levenshtein = void 0;
    function levenshtein(a3, b3) {
      if (a3.length === 0)
        return b3.length;
      if (b3.length === 0)
        return a3.length;
      const matrix = [];
      let i3;
      for (i3 = 0; i3 <= b3.length; i3++) {
        matrix[i3] = [i3];
      }
      let j3;
      for (j3 = 0; j3 <= a3.length; j3++) {
        matrix[0][j3] = j3;
      }
      for (i3 = 1; i3 <= b3.length; i3++) {
        for (j3 = 1; j3 <= a3.length; j3++) {
          if (b3.charAt(i3 - 1) === a3.charAt(j3 - 1)) {
            matrix[i3][j3] = matrix[i3 - 1][j3 - 1];
          } else {
            matrix[i3][j3] = Math.min(
              matrix[i3 - 1][j3 - 1] + 1,
              // substitution
              Math.min(
                matrix[i3][j3 - 1] + 1,
                // insertion
                matrix[i3 - 1][j3] + 1
              )
            );
          }
        }
      }
      return matrix[b3.length][a3.length];
    }
    __name(levenshtein, "levenshtein");
    exports2.levenshtein = levenshtein;
  }
});

// node_modules/yargs/build/lib/validation.js
var require_validation = __commonJS({
  "node_modules/yargs/build/lib/validation.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.validation = void 0;
    var argsert_1 = require_argsert();
    var common_types_1 = require_common_types();
    var levenshtein_1 = require_levenshtein();
    var obj_filter_1 = require_obj_filter();
    var specialKeys = ["$0", "--", "_"];
    function validation(yargs2, usage, y18n) {
      const __ = y18n.__;
      const __n = y18n.__n;
      const self2 = {};
      self2.nonOptionCount = /* @__PURE__ */ __name(function nonOptionCount(argv) {
        const demandedCommands = yargs2.getDemandedCommands();
        const _s = argv._.length - yargs2.getContext().commands.length;
        if (demandedCommands._ && (_s < demandedCommands._.min || _s > demandedCommands._.max)) {
          if (_s < demandedCommands._.min) {
            if (demandedCommands._.minMsg !== void 0) {
              usage.fail(
                // replace $0 with observed, $1 with expected.
                demandedCommands._.minMsg ? demandedCommands._.minMsg.replace(/\$0/g, _s.toString()).replace(/\$1/, demandedCommands._.min.toString()) : null
              );
            } else {
              usage.fail(__n("Not enough non-option arguments: got %s, need at least %s", "Not enough non-option arguments: got %s, need at least %s", _s, _s, demandedCommands._.min));
            }
          } else if (_s > demandedCommands._.max) {
            if (demandedCommands._.maxMsg !== void 0) {
              usage.fail(
                // replace $0 with observed, $1 with expected.
                demandedCommands._.maxMsg ? demandedCommands._.maxMsg.replace(/\$0/g, _s.toString()).replace(/\$1/, demandedCommands._.max.toString()) : null
              );
            } else {
              usage.fail(__n("Too many non-option arguments: got %s, maximum of %s", "Too many non-option arguments: got %s, maximum of %s", _s, _s, demandedCommands._.max));
            }
          }
        }
      }, "nonOptionCount");
      self2.positionalCount = /* @__PURE__ */ __name(function positionalCount(required, observed) {
        if (observed < required) {
          usage.fail(__n("Not enough non-option arguments: got %s, need at least %s", "Not enough non-option arguments: got %s, need at least %s", observed, observed, required));
        }
      }, "positionalCount");
      self2.requiredArguments = /* @__PURE__ */ __name(function requiredArguments(argv) {
        const demandedOptions = yargs2.getDemandedOptions();
        let missing = null;
        for (const key of Object.keys(demandedOptions)) {
          if (!Object.prototype.hasOwnProperty.call(argv, key) || typeof argv[key] === "undefined") {
            missing = missing || {};
            missing[key] = demandedOptions[key];
          }
        }
        if (missing) {
          const customMsgs = [];
          for (const key of Object.keys(missing)) {
            const msg = missing[key];
            if (msg && customMsgs.indexOf(msg) < 0) {
              customMsgs.push(msg);
            }
          }
          const customMsg = customMsgs.length ? `
${customMsgs.join("\n")}` : "";
          usage.fail(__n("Missing required argument: %s", "Missing required arguments: %s", Object.keys(missing).length, Object.keys(missing).join(", ") + customMsg));
        }
      }, "requiredArguments");
      self2.unknownArguments = /* @__PURE__ */ __name(function unknownArguments(argv, aliases2, positionalMap, isDefaultCommand) {
        const commandKeys = yargs2.getCommandInstance().getCommands();
        const unknown = [];
        const currentContext = yargs2.getContext();
        Object.keys(argv).forEach((key) => {
          if (specialKeys.indexOf(key) === -1 && !Object.prototype.hasOwnProperty.call(positionalMap, key) && !Object.prototype.hasOwnProperty.call(yargs2._getParseContext(), key) && !self2.isValidAndSomeAliasIsNotNew(key, aliases2)) {
            unknown.push(key);
          }
        });
        if (currentContext.commands.length > 0 || commandKeys.length > 0 || isDefaultCommand) {
          argv._.slice(currentContext.commands.length).forEach((key) => {
            if (commandKeys.indexOf(key) === -1) {
              unknown.push(key);
            }
          });
        }
        if (unknown.length > 0) {
          usage.fail(__n("Unknown argument: %s", "Unknown arguments: %s", unknown.length, unknown.join(", ")));
        }
      }, "unknownArguments");
      self2.unknownCommands = /* @__PURE__ */ __name(function unknownCommands(argv) {
        const commandKeys = yargs2.getCommandInstance().getCommands();
        const unknown = [];
        const currentContext = yargs2.getContext();
        if (currentContext.commands.length > 0 || commandKeys.length > 0) {
          argv._.slice(currentContext.commands.length).forEach((key) => {
            if (commandKeys.indexOf(key) === -1) {
              unknown.push(key);
            }
          });
        }
        if (unknown.length > 0) {
          usage.fail(__n("Unknown command: %s", "Unknown commands: %s", unknown.length, unknown.join(", ")));
          return true;
        } else {
          return false;
        }
      }, "unknownCommands");
      self2.isValidAndSomeAliasIsNotNew = /* @__PURE__ */ __name(function isValidAndSomeAliasIsNotNew(key, aliases2) {
        if (!Object.prototype.hasOwnProperty.call(aliases2, key)) {
          return false;
        }
        const newAliases = yargs2.parsed.newAliases;
        for (const a3 of [key, ...aliases2[key]]) {
          if (!Object.prototype.hasOwnProperty.call(newAliases, a3) || !newAliases[key]) {
            return true;
          }
        }
        return false;
      }, "isValidAndSomeAliasIsNotNew");
      self2.limitedChoices = /* @__PURE__ */ __name(function limitedChoices(argv) {
        const options = yargs2.getOptions();
        const invalid = {};
        if (!Object.keys(options.choices).length)
          return;
        Object.keys(argv).forEach((key) => {
          if (specialKeys.indexOf(key) === -1 && Object.prototype.hasOwnProperty.call(options.choices, key)) {
            [].concat(argv[key]).forEach((value) => {
              if (options.choices[key].indexOf(value) === -1 && value !== void 0) {
                invalid[key] = (invalid[key] || []).concat(value);
              }
            });
          }
        });
        const invalidKeys = Object.keys(invalid);
        if (!invalidKeys.length)
          return;
        let msg = __("Invalid values:");
        invalidKeys.forEach((key) => {
          msg += `
  ${__("Argument: %s, Given: %s, Choices: %s", key, usage.stringifiedValues(invalid[key]), usage.stringifiedValues(options.choices[key]))}`;
        });
        usage.fail(msg);
      }, "limitedChoices");
      let checks = [];
      self2.check = /* @__PURE__ */ __name(function check(f3, global2) {
        checks.push({
          func: f3,
          global: global2
        });
      }, "check");
      self2.customChecks = /* @__PURE__ */ __name(function customChecks(argv, aliases2) {
        for (let i3 = 0, f3; (f3 = checks[i3]) !== void 0; i3++) {
          const func = f3.func;
          let result2 = null;
          try {
            result2 = func(argv, aliases2);
          } catch (err) {
            usage.fail(err.message ? err.message : err, err);
            continue;
          }
          if (!result2) {
            usage.fail(__("Argument check failed: %s", func.toString()));
          } else if (typeof result2 === "string" || result2 instanceof Error) {
            usage.fail(result2.toString(), result2);
          }
        }
      }, "customChecks");
      let implied = {};
      self2.implies = /* @__PURE__ */ __name(function implies(key, value) {
        argsert_1.argsert("<string|object> [array|number|string]", [key, value], arguments.length);
        if (typeof key === "object") {
          Object.keys(key).forEach((k3) => {
            self2.implies(k3, key[k3]);
          });
        } else {
          yargs2.global(key);
          if (!implied[key]) {
            implied[key] = [];
          }
          if (Array.isArray(value)) {
            value.forEach((i3) => self2.implies(key, i3));
          } else {
            common_types_1.assertNotStrictEqual(value, void 0);
            implied[key].push(value);
          }
        }
      }, "implies");
      self2.getImplied = /* @__PURE__ */ __name(function getImplied() {
        return implied;
      }, "getImplied");
      function keyExists(argv, val) {
        const num = Number(val);
        val = isNaN(num) ? val : num;
        if (typeof val === "number") {
          val = argv._.length >= val;
        } else if (val.match(/^--no-.+/)) {
          val = val.match(/^--no-(.+)/)[1];
          val = !argv[val];
        } else {
          val = argv[val];
        }
        return val;
      }
      __name(keyExists, "keyExists");
      self2.implications = /* @__PURE__ */ __name(function implications(argv) {
        const implyFail = [];
        Object.keys(implied).forEach((key) => {
          const origKey = key;
          (implied[key] || []).forEach((value) => {
            let key2 = origKey;
            const origValue = value;
            key2 = keyExists(argv, key2);
            value = keyExists(argv, value);
            if (key2 && !value) {
              implyFail.push(` ${origKey} -> ${origValue}`);
            }
          });
        });
        if (implyFail.length) {
          let msg = `${__("Implications failed:")}
`;
          implyFail.forEach((value) => {
            msg += value;
          });
          usage.fail(msg);
        }
      }, "implications");
      let conflicting = {};
      self2.conflicts = /* @__PURE__ */ __name(function conflicts(key, value) {
        argsert_1.argsert("<string|object> [array|string]", [key, value], arguments.length);
        if (typeof key === "object") {
          Object.keys(key).forEach((k3) => {
            self2.conflicts(k3, key[k3]);
          });
        } else {
          yargs2.global(key);
          if (!conflicting[key]) {
            conflicting[key] = [];
          }
          if (Array.isArray(value)) {
            value.forEach((i3) => self2.conflicts(key, i3));
          } else {
            conflicting[key].push(value);
          }
        }
      }, "conflicts");
      self2.getConflicting = () => conflicting;
      self2.conflicting = /* @__PURE__ */ __name(function conflictingFn(argv) {
        Object.keys(argv).forEach((key) => {
          if (conflicting[key]) {
            conflicting[key].forEach((value) => {
              if (value && argv[key] !== void 0 && argv[value] !== void 0) {
                usage.fail(__("Arguments %s and %s are mutually exclusive", key, value));
              }
            });
          }
        });
      }, "conflictingFn");
      self2.recommendCommands = /* @__PURE__ */ __name(function recommendCommands(cmd, potentialCommands) {
        const threshold = 3;
        potentialCommands = potentialCommands.sort((a3, b3) => b3.length - a3.length);
        let recommended = null;
        let bestDistance = Infinity;
        for (let i3 = 0, candidate; (candidate = potentialCommands[i3]) !== void 0; i3++) {
          const d3 = levenshtein_1.levenshtein(cmd, candidate);
          if (d3 <= threshold && d3 < bestDistance) {
            bestDistance = d3;
            recommended = candidate;
          }
        }
        if (recommended)
          usage.fail(__("Did you mean %s?", recommended));
      }, "recommendCommands");
      self2.reset = /* @__PURE__ */ __name(function reset3(localLookup) {
        implied = obj_filter_1.objFilter(implied, (k3) => !localLookup[k3]);
        conflicting = obj_filter_1.objFilter(conflicting, (k3) => !localLookup[k3]);
        checks = checks.filter((c3) => c3.global);
        return self2;
      }, "reset");
      const frozens = [];
      self2.freeze = /* @__PURE__ */ __name(function freeze() {
        frozens.push({
          implied,
          checks,
          conflicting
        });
      }, "freeze");
      self2.unfreeze = /* @__PURE__ */ __name(function unfreeze() {
        const frozen = frozens.pop();
        common_types_1.assertNotStrictEqual(frozen, void 0);
        ({
          implied,
          checks,
          conflicting
        } = frozen);
      }, "unfreeze");
      return self2;
    }
    __name(validation, "validation");
    exports2.validation = validation;
  }
});

// node_modules/yargs/build/lib/apply-extends.js
var require_apply_extends = __commonJS({
  "node_modules/yargs/build/lib/apply-extends.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.applyExtends = void 0;
    var fs43 = require("fs");
    var path38 = require("path");
    var yerror_1 = require_yerror();
    var previouslyVisitedConfigs = [];
    function checkForCircularExtends(cfgPath) {
      if (previouslyVisitedConfigs.indexOf(cfgPath) > -1) {
        throw new yerror_1.YError(`Circular extended configurations: '${cfgPath}'.`);
      }
    }
    __name(checkForCircularExtends, "checkForCircularExtends");
    function getPathToDefaultConfig(cwd, pathToExtend) {
      return path38.resolve(cwd, pathToExtend);
    }
    __name(getPathToDefaultConfig, "getPathToDefaultConfig");
    function mergeDeep(config1, config2) {
      const target = {};
      function isObject3(obj) {
        return obj && typeof obj === "object" && !Array.isArray(obj);
      }
      __name(isObject3, "isObject");
      Object.assign(target, config1);
      for (const key of Object.keys(config2)) {
        if (isObject3(config2[key]) && isObject3(target[key])) {
          target[key] = mergeDeep(config1[key], config2[key]);
        } else {
          target[key] = config2[key];
        }
      }
      return target;
    }
    __name(mergeDeep, "mergeDeep");
    function applyExtends(config, cwd, mergeExtends = false) {
      let defaultConfig = {};
      if (Object.prototype.hasOwnProperty.call(config, "extends")) {
        if (typeof config.extends !== "string")
          return defaultConfig;
        const isPath = /\.json|\..*rc$/.test(config.extends);
        let pathToDefault = null;
        if (!isPath) {
          try {
            pathToDefault = require.resolve(config.extends);
          } catch (err) {
          }
        } else {
          pathToDefault = getPathToDefaultConfig(cwd, config.extends);
        }
        if (!pathToDefault && !isPath)
          return config;
        if (!pathToDefault)
          throw new yerror_1.YError(`Unable to find extended config '${config.extends}' in '${cwd}'.`);
        checkForCircularExtends(pathToDefault);
        previouslyVisitedConfigs.push(pathToDefault);
        defaultConfig = isPath ? JSON.parse(fs43.readFileSync(pathToDefault, "utf8")) : require(config.extends);
        delete config.extends;
        defaultConfig = applyExtends(defaultConfig, path38.dirname(pathToDefault), mergeExtends);
      }
      previouslyVisitedConfigs = [];
      return mergeExtends ? mergeDeep(defaultConfig, config) : Object.assign({}, defaultConfig, config);
    }
    __name(applyExtends, "applyExtends");
    exports2.applyExtends = applyExtends;
  }
});

// node_modules/yargs/build/lib/process-argv.js
var require_process_argv = __commonJS({
  "node_modules/yargs/build/lib/process-argv.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.getProcessArgvBin = exports2.getProcessArgvWithoutBin = void 0;
    function getProcessArgvBinIndex() {
      if (isBundledElectronApp())
        return 0;
      return 1;
    }
    __name(getProcessArgvBinIndex, "getProcessArgvBinIndex");
    function isBundledElectronApp() {
      return isElectronApp() && !process.defaultApp;
    }
    __name(isBundledElectronApp, "isBundledElectronApp");
    function isElectronApp() {
      return !!process.versions.electron;
    }
    __name(isElectronApp, "isElectronApp");
    function getProcessArgvWithoutBin() {
      return process.argv.slice(getProcessArgvBinIndex() + 1);
    }
    __name(getProcessArgvWithoutBin, "getProcessArgvWithoutBin");
    exports2.getProcessArgvWithoutBin = getProcessArgvWithoutBin;
    function getProcessArgvBin() {
      return process.argv[getProcessArgvBinIndex()];
    }
    __name(getProcessArgvBin, "getProcessArgvBin");
    exports2.getProcessArgvBin = getProcessArgvBin;
  }
});

// node_modules/y18n/index.js
var require_y18n = __commonJS({
  "node_modules/y18n/index.js"(exports2, module2) {
    var fs43 = require("fs");
    var path38 = require("path");
    var util11 = require("util");
    function Y18N(opts) {
      opts = opts || {};
      this.directory = opts.directory || "./locales";
      this.updateFiles = typeof opts.updateFiles === "boolean" ? opts.updateFiles : true;
      this.locale = opts.locale || "en";
      this.fallbackToLanguage = typeof opts.fallbackToLanguage === "boolean" ? opts.fallbackToLanguage : true;
      this.cache = /* @__PURE__ */ Object.create(null);
      this.writeQueue = [];
    }
    __name(Y18N, "Y18N");
    Y18N.prototype.__ = function() {
      if (typeof arguments[0] !== "string") {
        return this._taggedLiteral.apply(this, arguments);
      }
      var args = Array.prototype.slice.call(arguments);
      var str = args.shift();
      var cb = /* @__PURE__ */ __name(function() {
      }, "cb");
      if (typeof args[args.length - 1] === "function") cb = args.pop();
      cb = cb || function() {
      };
      if (!this.cache[this.locale]) this._readLocaleFile();
      if (!this.cache[this.locale][str] && this.updateFiles) {
        this.cache[this.locale][str] = str;
        this._enqueueWrite([this.directory, this.locale, cb]);
      } else {
        cb();
      }
      return util11.format.apply(util11, [this.cache[this.locale][str] || str].concat(args));
    };
    Y18N.prototype._taggedLiteral = function(parts) {
      var args = arguments;
      var str = "";
      parts.forEach(function(part, i3) {
        var arg = args[i3 + 1];
        str += part;
        if (typeof arg !== "undefined") {
          str += "%s";
        }
      });
      return this.__.apply(null, [str].concat([].slice.call(arguments, 1)));
    };
    Y18N.prototype._enqueueWrite = function(work) {
      this.writeQueue.push(work);
      if (this.writeQueue.length === 1) this._processWriteQueue();
    };
    Y18N.prototype._processWriteQueue = function() {
      var _this = this;
      var work = this.writeQueue[0];
      var directory = work[0];
      var locale = work[1];
      var cb = work[2];
      var languageFile = this._resolveLocaleFile(directory, locale);
      var serializedLocale = JSON.stringify(this.cache[locale], null, 2);
      fs43.writeFile(languageFile, serializedLocale, "utf-8", function(err) {
        _this.writeQueue.shift();
        if (_this.writeQueue.length > 0) _this._processWriteQueue();
        cb(err);
      });
    };
    Y18N.prototype._readLocaleFile = function() {
      var localeLookup = {};
      var languageFile = this._resolveLocaleFile(this.directory, this.locale);
      try {
        localeLookup = JSON.parse(fs43.readFileSync(languageFile, "utf-8"));
      } catch (err) {
        if (err instanceof SyntaxError) {
          err.message = "syntax error in " + languageFile;
        }
        if (err.code === "ENOENT") localeLookup = {};
        else throw err;
      }
      this.cache[this.locale] = localeLookup;
    };
    Y18N.prototype._resolveLocaleFile = function(directory, locale) {
      var file = path38.resolve(directory, "./", locale + ".json");
      if (this.fallbackToLanguage && !this._fileExistsSync(file) && ~locale.lastIndexOf("_")) {
        var languageFile = path38.resolve(directory, "./", locale.split("_")[0] + ".json");
        if (this._fileExistsSync(languageFile)) file = languageFile;
      }
      return file;
    };
    Y18N.prototype._fileExistsSync = function(file) {
      try {
        return fs43.statSync(file).isFile();
      } catch (err) {
        return false;
      }
    };
    Y18N.prototype.__n = function() {
      var args = Array.prototype.slice.call(arguments);
      var singular = args.shift();
      var plural = args.shift();
      var quantity = args.shift();
      var cb = /* @__PURE__ */ __name(function() {
      }, "cb");
      if (typeof args[args.length - 1] === "function") cb = args.pop();
      if (!this.cache[this.locale]) this._readLocaleFile();
      var str = quantity === 1 ? singular : plural;
      if (this.cache[this.locale][singular]) {
        str = this.cache[this.locale][singular][quantity === 1 ? "one" : "other"];
      }
      if (!this.cache[this.locale][singular] && this.updateFiles) {
        this.cache[this.locale][singular] = {
          one: singular,
          other: plural
        };
        this._enqueueWrite([this.directory, this.locale, cb]);
      } else {
        cb();
      }
      var values = [str];
      if (~str.indexOf("%d")) values.push(quantity);
      return util11.format.apply(util11, values.concat(args));
    };
    Y18N.prototype.setLocale = function(locale) {
      this.locale = locale;
    };
    Y18N.prototype.getLocale = function() {
      return this.locale;
    };
    Y18N.prototype.updateLocale = function(obj) {
      if (!this.cache[this.locale]) this._readLocaleFile();
      for (var key in obj) {
        this.cache[this.locale][key] = obj[key];
      }
    };
    module2.exports = function(opts) {
      var y18n = new Y18N(opts);
      for (var key in y18n) {
        if (typeof y18n[key] === "function") {
          y18n[key] = y18n[key].bind(y18n);
        }
      }
      return y18n;
    };
  }
});

// ../../node_modules/p-try/index.js
var require_p_try = __commonJS({
  "../../node_modules/p-try/index.js"(exports2, module2) {
    "use strict";
    var pTry = /* @__PURE__ */ __name((fn, ...arguments_) => new Promise((resolve13) => {
      resolve13(fn(...arguments_));
    }), "pTry");
    module2.exports = pTry;
    module2.exports.default = pTry;
  }
});

// ../../node_modules/p-locate/node_modules/p-limit/index.js
var require_p_limit2 = __commonJS({
  "../../node_modules/p-locate/node_modules/p-limit/index.js"(exports2, module2) {
    "use strict";
    var pTry = require_p_try();
    var pLimit6 = /* @__PURE__ */ __name((concurrency) => {
      if (!((Number.isInteger(concurrency) || concurrency === Infinity) && concurrency > 0)) {
        return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));
      }
      const queue = [];
      let activeCount = 0;
      const next = /* @__PURE__ */ __name(() => {
        activeCount--;
        if (queue.length > 0) {
          queue.shift()();
        }
      }, "next");
      const run = /* @__PURE__ */ __name((fn, resolve13, ...args) => {
        activeCount++;
        const result2 = pTry(fn, ...args);
        resolve13(result2);
        result2.then(next, next);
      }, "run");
      const enqueue = /* @__PURE__ */ __name((fn, resolve13, ...args) => {
        if (activeCount < concurrency) {
          run(fn, resolve13, ...args);
        } else {
          queue.push(run.bind(null, fn, resolve13, ...args));
        }
      }, "enqueue");
      const generator = /* @__PURE__ */ __name((fn, ...args) => new Promise((resolve13) => enqueue(fn, resolve13, ...args)), "generator");
      Object.defineProperties(generator, {
        activeCount: {
          get: /* @__PURE__ */ __name(() => activeCount, "get")
        },
        pendingCount: {
          get: /* @__PURE__ */ __name(() => queue.length, "get")
        },
        clearQueue: {
          value: /* @__PURE__ */ __name(() => {
            queue.length = 0;
          }, "value")
        }
      });
      return generator;
    }, "pLimit");
    module2.exports = pLimit6;
    module2.exports.default = pLimit6;
  }
});

// ../../node_modules/p-locate/index.js
var require_p_locate = __commonJS({
  "../../node_modules/p-locate/index.js"(exports2, module2) {
    "use strict";
    var pLimit6 = require_p_limit2();
    var EndError = class extends Error {
      static {
        __name(this, "EndError");
      }
      constructor(value) {
        super();
        this.value = value;
      }
    };
    var testElement = /* @__PURE__ */ __name(async (element, tester) => tester(await element), "testElement");
    var finder = /* @__PURE__ */ __name(async (element) => {
      const values = await Promise.all(element);
      if (values[1] === true) {
        throw new EndError(values[0]);
      }
      return false;
    }, "finder");
    var pLocate = /* @__PURE__ */ __name(async (iterable, tester, options) => {
      options = {
        concurrency: Infinity,
        preserveOrder: true,
        ...options
      };
      const limit = pLimit6(options.concurrency);
      const items = [...iterable].map((element) => [element, limit(testElement, element, tester)]);
      const checkLimit = pLimit6(options.preserveOrder ? 1 : Infinity);
      try {
        await Promise.all(items.map((element) => checkLimit(finder, element)));
      } catch (error5) {
        if (error5 instanceof EndError) {
          return error5.value;
        }
        throw error5;
      }
    }, "pLocate");
    module2.exports = pLocate;
    module2.exports.default = pLocate;
  }
});

// ../../node_modules/locate-path/index.js
var require_locate_path = __commonJS({
  "../../node_modules/locate-path/index.js"(exports2, module2) {
    "use strict";
    var path38 = require("path");
    var fs43 = require("fs");
    var { promisify: promisify4 } = require("util");
    var pLocate = require_p_locate();
    var fsStat = promisify4(fs43.stat);
    var fsLStat = promisify4(fs43.lstat);
    var typeMappings = {
      directory: "isDirectory",
      file: "isFile"
    };
    function checkType({ type }) {
      if (type in typeMappings) {
        return;
      }
      throw new Error(`Invalid type specified: ${type}`);
    }
    __name(checkType, "checkType");
    var matchType = /* @__PURE__ */ __name((type, stat5) => type === void 0 || stat5[typeMappings[type]](), "matchType");
    module2.exports = async (paths, options) => {
      options = {
        cwd: process.cwd(),
        type: "file",
        allowSymlinks: true,
        ...options
      };
      checkType(options);
      const statFn = options.allowSymlinks ? fsStat : fsLStat;
      return pLocate(paths, async (path_) => {
        try {
          const stat5 = await statFn(path38.resolve(options.cwd, path_));
          return matchType(options.type, stat5);
        } catch (_3) {
          return false;
        }
      }, options);
    };
    module2.exports.sync = (paths, options) => {
      options = {
        cwd: process.cwd(),
        allowSymlinks: true,
        type: "file",
        ...options
      };
      checkType(options);
      const statFn = options.allowSymlinks ? fs43.statSync : fs43.lstatSync;
      for (const path_ of paths) {
        try {
          const stat5 = statFn(path38.resolve(options.cwd, path_));
          if (matchType(options.type, stat5)) {
            return path_;
          }
        } catch (_3) {
        }
      }
    };
  }
});

// ../../node_modules/find-up/node_modules/path-exists/index.js
var require_path_exists3 = __commonJS({
  "../../node_modules/find-up/node_modules/path-exists/index.js"(exports2, module2) {
    "use strict";
    var fs43 = require("fs");
    var { promisify: promisify4 } = require("util");
    var pAccess = promisify4(fs43.access);
    module2.exports = async (path38) => {
      try {
        await pAccess(path38);
        return true;
      } catch (_3) {
        return false;
      }
    };
    module2.exports.sync = (path38) => {
      try {
        fs43.accessSync(path38);
        return true;
      } catch (_3) {
        return false;
      }
    };
  }
});

// ../../node_modules/find-up/index.js
var require_find_up = __commonJS({
  "../../node_modules/find-up/index.js"(exports2, module2) {
    "use strict";
    var path38 = require("path");
    var locatePath = require_locate_path();
    var pathExists9 = require_path_exists3();
    var stop = Symbol("findUp.stop");
    module2.exports = async (name, options = {}) => {
      let directory = path38.resolve(options.cwd || "");
      const { root } = path38.parse(directory);
      const paths = [].concat(name);
      const runMatcher = /* @__PURE__ */ __name(async (locateOptions) => {
        if (typeof name !== "function") {
          return locatePath(paths, locateOptions);
        }
        const foundPath = await name(locateOptions.cwd);
        if (typeof foundPath === "string") {
          return locatePath([foundPath], locateOptions);
        }
        return foundPath;
      }, "runMatcher");
      while (true) {
        const foundPath = await runMatcher({ ...options, cwd: directory });
        if (foundPath === stop) {
          return;
        }
        if (foundPath) {
          return path38.resolve(directory, foundPath);
        }
        if (directory === root) {
          return;
        }
        directory = path38.dirname(directory);
      }
    };
    module2.exports.sync = (name, options = {}) => {
      let directory = path38.resolve(options.cwd || "");
      const { root } = path38.parse(directory);
      const paths = [].concat(name);
      const runMatcher = /* @__PURE__ */ __name((locateOptions) => {
        if (typeof name !== "function") {
          return locatePath.sync(paths, locateOptions);
        }
        const foundPath = name(locateOptions.cwd);
        if (typeof foundPath === "string") {
          return locatePath.sync([foundPath], locateOptions);
        }
        return foundPath;
      }, "runMatcher");
      while (true) {
        const foundPath = runMatcher({ ...options, cwd: directory });
        if (foundPath === stop) {
          return;
        }
        if (foundPath) {
          return path38.resolve(directory, foundPath);
        }
        if (directory === root) {
          return;
        }
        directory = path38.dirname(directory);
      }
    };
    module2.exports.exists = pathExists9;
    module2.exports.sync.exists = pathExists9.sync;
    module2.exports.stop = stop;
  }
});

// ../../node_modules/require-main-filename/index.js
var require_require_main_filename = __commonJS({
  "../../node_modules/require-main-filename/index.js"(exports2, module2) {
    module2.exports = function(_require) {
      _require = _require || require;
      var main = _require.main;
      if (main && isIISNode(main)) return handleIISNode(main);
      else return main ? main.filename : process.cwd();
    };
    function isIISNode(main) {
      return /\\iisnode\\/.test(main.filename);
    }
    __name(isIISNode, "isIISNode");
    function handleIISNode(main) {
      if (!main.children.length) {
        return main.filename;
      } else {
        return main.children[0].filename;
      }
    }
    __name(handleIISNode, "handleIISNode");
  }
});

// ../../node_modules/get-caller-file/index.js
var require_get_caller_file = __commonJS({
  "../../node_modules/get-caller-file/index.js"(exports2, module2) {
    "use strict";
    module2.exports = /* @__PURE__ */ __name(function getCallerFile(position) {
      if (position === void 0) {
        position = 2;
      }
      if (position >= Error.stackTraceLimit) {
        throw new TypeError("getCallerFile(position) requires position be less then Error.stackTraceLimit but position was: `" + position + "` and Error.stackTraceLimit was: `" + Error.stackTraceLimit + "`");
      }
      var oldPrepareStackTrace = Error.prepareStackTrace;
      Error.prepareStackTrace = function(_3, stack2) {
        return stack2;
      };
      var stack = new Error().stack;
      Error.prepareStackTrace = oldPrepareStackTrace;
      if (stack !== null && typeof stack === "object") {
        return stack[position] ? stack[position].getFileName() : void 0;
      }
    }, "getCallerFile");
  }
});

// node_modules/yargs/build/lib/yargs.js
var require_yargs = __commonJS({
  "node_modules/yargs/build/lib/yargs.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.isYargsInstance = exports2.rebase = exports2.Yargs = void 0;
    var command_1 = require_command();
    var common_types_1 = require_common_types();
    var yerror_1 = require_yerror();
    var usage_1 = require_usage();
    var argsert_1 = require_argsert();
    var fs43 = require("fs");
    var completion_1 = require_completion();
    var path38 = require("path");
    var validation_1 = require_validation();
    var obj_filter_1 = require_obj_filter();
    var apply_extends_1 = require_apply_extends();
    var middleware_1 = require_middleware();
    var processArgv = require_process_argv();
    var is_promise_1 = require_is_promise();
    var Parser = require_yargs_parser();
    var y18nFactory = require_y18n();
    var setBlocking = require_set_blocking();
    var findUp = require_find_up();
    var requireMainFilename = require_require_main_filename();
    function Yargs(processArgs = [], cwd = process.cwd(), parentRequire = require) {
      const self2 = {};
      let command2;
      let completion = null;
      let groups = {};
      const globalMiddleware = [];
      let output = "";
      const preservedGroups = {};
      let usage;
      let validation;
      let handlerFinishCommand = null;
      const y18n = y18nFactory({
        directory: path38.resolve(__dirname, "../../locales"),
        updateFiles: false
      });
      self2.middleware = middleware_1.globalMiddlewareFactory(globalMiddleware, self2);
      self2.scriptName = function(scriptName) {
        self2.customScriptName = true;
        self2.$0 = scriptName;
        return self2;
      };
      let default$0;
      if (/\b(node|iojs|electron)(\.exe)?$/.test(process.argv[0])) {
        default$0 = process.argv.slice(1, 2);
      } else {
        default$0 = process.argv.slice(0, 1);
      }
      self2.$0 = default$0.map((x3) => {
        const b3 = rebase(cwd, x3);
        return x3.match(/^(\/|([a-zA-Z]:)?\\)/) && b3.length < x3.length ? b3 : x3;
      }).join(" ").trim();
      if (process.env._ !== void 0 && processArgv.getProcessArgvBin() === process.env._) {
        self2.$0 = process.env._.replace(`${path38.dirname(process.execPath)}/`, "");
      }
      const context = { resets: -1, commands: [], fullCommands: [], files: [] };
      self2.getContext = () => context;
      let options;
      self2.resetOptions = self2.reset = /* @__PURE__ */ __name(function resetOptions(aliases2 = {}) {
        context.resets++;
        options = options || {};
        const tmpOptions = {};
        tmpOptions.local = options.local ? options.local : [];
        tmpOptions.configObjects = options.configObjects ? options.configObjects : [];
        const localLookup = {};
        tmpOptions.local.forEach((l3) => {
          localLookup[l3] = true;
          (aliases2[l3] || []).forEach((a3) => {
            localLookup[a3] = true;
          });
        });
        Object.assign(preservedGroups, Object.keys(groups).reduce((acc, groupName) => {
          const keys = groups[groupName].filter((key) => !(key in localLookup));
          if (keys.length > 0) {
            acc[groupName] = keys;
          }
          return acc;
        }, {}));
        groups = {};
        const arrayOptions = [
          "array",
          "boolean",
          "string",
          "skipValidation",
          "count",
          "normalize",
          "number",
          "hiddenOptions"
        ];
        const objectOptions = [
          "narg",
          "key",
          "alias",
          "default",
          "defaultDescription",
          "config",
          "choices",
          "demandedOptions",
          "demandedCommands",
          "coerce",
          "deprecatedOptions"
        ];
        arrayOptions.forEach((k3) => {
          tmpOptions[k3] = (options[k3] || []).filter((k4) => !localLookup[k4]);
        });
        objectOptions.forEach((k3) => {
          tmpOptions[k3] = obj_filter_1.objFilter(options[k3], (k4) => !localLookup[k4]);
        });
        tmpOptions.envPrefix = options.envPrefix;
        options = tmpOptions;
        usage = usage ? usage.reset(localLookup) : usage_1.usage(self2, y18n);
        validation = validation ? validation.reset(localLookup) : validation_1.validation(self2, usage, y18n);
        command2 = command2 ? command2.reset() : command_1.command(self2, usage, validation, globalMiddleware);
        if (!completion)
          completion = completion_1.completion(self2, usage, command2);
        completionCommand = null;
        output = "";
        exitError = null;
        hasOutput = false;
        self2.parsed = false;
        return self2;
      }, "resetOptions");
      self2.resetOptions();
      const frozens = [];
      function freeze() {
        frozens.push({
          options,
          configObjects: options.configObjects.slice(0),
          exitProcess,
          groups,
          strict,
          strictCommands,
          completionCommand,
          output,
          exitError,
          hasOutput,
          parsed: self2.parsed,
          parseFn,
          parseContext,
          handlerFinishCommand
        });
        usage.freeze();
        validation.freeze();
        command2.freeze();
      }
      __name(freeze, "freeze");
      function unfreeze() {
        const frozen = frozens.pop();
        common_types_1.assertNotStrictEqual(frozen, void 0);
        let configObjects;
        ({
          options,
          configObjects,
          exitProcess,
          groups,
          output,
          exitError,
          hasOutput,
          parsed: self2.parsed,
          strict,
          strictCommands,
          completionCommand,
          parseFn,
          parseContext,
          handlerFinishCommand
        } = frozen);
        options.configObjects = configObjects;
        usage.unfreeze();
        validation.unfreeze();
        command2.unfreeze();
      }
      __name(unfreeze, "unfreeze");
      self2.boolean = function(keys) {
        argsert_1.argsert("<array|string>", [keys], arguments.length);
        populateParserHintArray("boolean", keys);
        return self2;
      };
      self2.array = function(keys) {
        argsert_1.argsert("<array|string>", [keys], arguments.length);
        populateParserHintArray("array", keys);
        return self2;
      };
      self2.number = function(keys) {
        argsert_1.argsert("<array|string>", [keys], arguments.length);
        populateParserHintArray("number", keys);
        return self2;
      };
      self2.normalize = function(keys) {
        argsert_1.argsert("<array|string>", [keys], arguments.length);
        populateParserHintArray("normalize", keys);
        return self2;
      };
      self2.count = function(keys) {
        argsert_1.argsert("<array|string>", [keys], arguments.length);
        populateParserHintArray("count", keys);
        return self2;
      };
      self2.string = function(keys) {
        argsert_1.argsert("<array|string>", [keys], arguments.length);
        populateParserHintArray("string", keys);
        return self2;
      };
      self2.requiresArg = function(keys) {
        argsert_1.argsert("<array|string|object> [number]", [keys], arguments.length);
        if (typeof keys === "string" && options.narg[keys]) {
          return self2;
        } else {
          populateParserHintSingleValueDictionary(self2.requiresArg, "narg", keys, NaN);
        }
        return self2;
      };
      self2.skipValidation = function(keys) {
        argsert_1.argsert("<array|string>", [keys], arguments.length);
        populateParserHintArray("skipValidation", keys);
        return self2;
      };
      function populateParserHintArray(type, keys) {
        keys = [].concat(keys);
        keys.forEach((key) => {
          key = sanitizeKey(key);
          options[type].push(key);
        });
      }
      __name(populateParserHintArray, "populateParserHintArray");
      self2.nargs = function(key, value) {
        argsert_1.argsert("<string|object|array> [number]", [key, value], arguments.length);
        populateParserHintSingleValueDictionary(self2.nargs, "narg", key, value);
        return self2;
      };
      self2.choices = function(key, value) {
        argsert_1.argsert("<object|string|array> [string|array]", [key, value], arguments.length);
        populateParserHintArrayDictionary(self2.choices, "choices", key, value);
        return self2;
      };
      self2.alias = function(key, value) {
        argsert_1.argsert("<object|string|array> [string|array]", [key, value], arguments.length);
        populateParserHintArrayDictionary(self2.alias, "alias", key, value);
        return self2;
      };
      self2.default = self2.defaults = function(key, value, defaultDescription) {
        argsert_1.argsert("<object|string|array> [*] [string]", [key, value, defaultDescription], arguments.length);
        if (defaultDescription) {
          common_types_1.assertSingleKey(key);
          options.defaultDescription[key] = defaultDescription;
        }
        if (typeof value === "function") {
          common_types_1.assertSingleKey(key);
          if (!options.defaultDescription[key])
            options.defaultDescription[key] = usage.functionDescription(value);
          value = value.call();
        }
        populateParserHintSingleValueDictionary(self2.default, "default", key, value);
        return self2;
      };
      self2.describe = function(key, desc) {
        argsert_1.argsert("<object|string|array> [string]", [key, desc], arguments.length);
        setKey(key, true);
        usage.describe(key, desc);
        return self2;
      };
      function setKey(key, set) {
        populateParserHintSingleValueDictionary(setKey, "key", key, set);
        return self2;
      }
      __name(setKey, "setKey");
      function demandOption(keys, msg) {
        argsert_1.argsert("<object|string|array> [string]", [keys, msg], arguments.length);
        populateParserHintSingleValueDictionary(self2.demandOption, "demandedOptions", keys, msg);
        return self2;
      }
      __name(demandOption, "demandOption");
      self2.demandOption = demandOption;
      self2.coerce = function(keys, value) {
        argsert_1.argsert("<object|string|array> [function]", [keys, value], arguments.length);
        populateParserHintSingleValueDictionary(self2.coerce, "coerce", keys, value);
        return self2;
      };
      function populateParserHintSingleValueDictionary(builder, type, key, value) {
        populateParserHintDictionary(builder, type, key, value, (type2, key2, value2) => {
          options[type2][key2] = value2;
        });
      }
      __name(populateParserHintSingleValueDictionary, "populateParserHintSingleValueDictionary");
      function populateParserHintArrayDictionary(builder, type, key, value) {
        populateParserHintDictionary(builder, type, key, value, (type2, key2, value2) => {
          options[type2][key2] = (options[type2][key2] || []).concat(value2);
        });
      }
      __name(populateParserHintArrayDictionary, "populateParserHintArrayDictionary");
      function populateParserHintDictionary(builder, type, key, value, singleKeyHandler) {
        if (Array.isArray(key)) {
          key.forEach((k3) => {
            builder(k3, value);
          });
        } else if (/* @__PURE__ */ ((key2) => typeof key2 === "object")(key)) {
          for (const k3 of common_types_1.objectKeys(key)) {
            builder(k3, key[k3]);
          }
        } else {
          singleKeyHandler(type, sanitizeKey(key), value);
        }
      }
      __name(populateParserHintDictionary, "populateParserHintDictionary");
      function sanitizeKey(key) {
        if (key === "__proto__")
          return "___proto___";
        return key;
      }
      __name(sanitizeKey, "sanitizeKey");
      function deleteFromParserHintObject(optionKey) {
        common_types_1.objectKeys(options).forEach((hintKey) => {
          if (/* @__PURE__ */ ((key) => key === "configObjects")(hintKey))
            return;
          const hint = options[hintKey];
          if (Array.isArray(hint)) {
            if (~hint.indexOf(optionKey))
              hint.splice(hint.indexOf(optionKey), 1);
          } else if (typeof hint === "object") {
            delete hint[optionKey];
          }
        });
        delete usage.getDescriptions()[optionKey];
      }
      __name(deleteFromParserHintObject, "deleteFromParserHintObject");
      self2.config = /* @__PURE__ */ __name(function config(key = "config", msg, parseFn2) {
        argsert_1.argsert("[object|string] [string|function] [function]", [key, msg, parseFn2], arguments.length);
        if (typeof key === "object" && !Array.isArray(key)) {
          key = apply_extends_1.applyExtends(key, cwd, self2.getParserConfiguration()["deep-merge-config"]);
          options.configObjects = (options.configObjects || []).concat(key);
          return self2;
        }
        if (typeof msg === "function") {
          parseFn2 = msg;
          msg = void 0;
        }
        self2.describe(key, msg || usage.deferY18nLookup("Path to JSON config file"));
        (Array.isArray(key) ? key : [key]).forEach((k3) => {
          options.config[k3] = parseFn2 || true;
        });
        return self2;
      }, "config");
      self2.example = function(cmd, description) {
        argsert_1.argsert("<string|array> [string]", [cmd, description], arguments.length);
        if (Array.isArray(cmd)) {
          cmd.forEach((exampleParams) => self2.example(...exampleParams));
        } else {
          usage.example(cmd, description);
        }
        return self2;
      };
      self2.command = function(cmd, description, builder, handler, middlewares, deprecated) {
        argsert_1.argsert("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]", [cmd, description, builder, handler, middlewares, deprecated], arguments.length);
        command2.addHandler(cmd, description, builder, handler, middlewares, deprecated);
        return self2;
      };
      self2.commandDir = function(dir, opts) {
        argsert_1.argsert("<string> [object]", [dir, opts], arguments.length);
        const req = parentRequire || require;
        command2.addDirectory(dir, self2.getContext(), req, require_get_caller_file()(), opts);
        return self2;
      };
      self2.demand = self2.required = self2.require = /* @__PURE__ */ __name(function demand(keys, max, msg) {
        if (Array.isArray(max)) {
          max.forEach((key) => {
            common_types_1.assertNotStrictEqual(msg, true);
            demandOption(key, msg);
          });
          max = Infinity;
        } else if (typeof max !== "number") {
          msg = max;
          max = Infinity;
        }
        if (typeof keys === "number") {
          common_types_1.assertNotStrictEqual(msg, true);
          self2.demandCommand(keys, max, msg, msg);
        } else if (Array.isArray(keys)) {
          keys.forEach((key) => {
            common_types_1.assertNotStrictEqual(msg, true);
            demandOption(key, msg);
          });
        } else {
          if (typeof msg === "string") {
            demandOption(keys, msg);
          } else if (msg === true || typeof msg === "undefined") {
            demandOption(keys);
          }
        }
        return self2;
      }, "demand");
      self2.demandCommand = /* @__PURE__ */ __name(function demandCommand(min = 1, max, minMsg, maxMsg) {
        argsert_1.argsert("[number] [number|string] [string|null|undefined] [string|null|undefined]", [min, max, minMsg, maxMsg], arguments.length);
        if (typeof max !== "number") {
          minMsg = max;
          max = Infinity;
        }
        self2.global("_", false);
        options.demandedCommands._ = {
          min,
          max,
          minMsg,
          maxMsg
        };
        return self2;
      }, "demandCommand");
      self2.getDemandedOptions = () => {
        argsert_1.argsert([], 0);
        return options.demandedOptions;
      };
      self2.getDemandedCommands = () => {
        argsert_1.argsert([], 0);
        return options.demandedCommands;
      };
      self2.deprecateOption = /* @__PURE__ */ __name(function deprecateOption(option, message2) {
        argsert_1.argsert("<string> [string|boolean]", [option, message2], arguments.length);
        options.deprecatedOptions[option] = message2;
        return self2;
      }, "deprecateOption");
      self2.getDeprecatedOptions = () => {
        argsert_1.argsert([], 0);
        return options.deprecatedOptions;
      };
      self2.implies = function(key, value) {
        argsert_1.argsert("<string|object> [number|string|array]", [key, value], arguments.length);
        validation.implies(key, value);
        return self2;
      };
      self2.conflicts = function(key1, key2) {
        argsert_1.argsert("<string|object> [string|array]", [key1, key2], arguments.length);
        validation.conflicts(key1, key2);
        return self2;
      };
      self2.usage = function(msg, description, builder, handler) {
        argsert_1.argsert("<string|null|undefined> [string|boolean] [function|object] [function]", [msg, description, builder, handler], arguments.length);
        if (description !== void 0) {
          common_types_1.assertNotStrictEqual(msg, null);
          if ((msg || "").match(/^\$0( |$)/)) {
            return self2.command(msg, description, builder, handler);
          } else {
            throw new yerror_1.YError(".usage() description must start with $0 if being used as alias for .command()");
          }
        } else {
          usage.usage(msg);
          return self2;
        }
      };
      self2.epilogue = self2.epilog = function(msg) {
        argsert_1.argsert("<string>", [msg], arguments.length);
        usage.epilog(msg);
        return self2;
      };
      self2.fail = function(f3) {
        argsert_1.argsert("<function>", [f3], arguments.length);
        usage.failFn(f3);
        return self2;
      };
      self2.onFinishCommand = function(f3) {
        argsert_1.argsert("<function>", [f3], arguments.length);
        handlerFinishCommand = f3;
        return self2;
      };
      self2.getHandlerFinishCommand = () => handlerFinishCommand;
      self2.check = function(f3, _global) {
        argsert_1.argsert("<function> [boolean]", [f3, _global], arguments.length);
        validation.check(f3, _global !== false);
        return self2;
      };
      self2.global = /* @__PURE__ */ __name(function global2(globals, global2) {
        argsert_1.argsert("<string|array> [boolean]", [globals, global2], arguments.length);
        globals = [].concat(globals);
        if (global2 !== false) {
          options.local = options.local.filter((l3) => globals.indexOf(l3) === -1);
        } else {
          globals.forEach((g3) => {
            if (options.local.indexOf(g3) === -1)
              options.local.push(g3);
          });
        }
        return self2;
      }, "global");
      self2.pkgConf = /* @__PURE__ */ __name(function pkgConf(key, rootPath) {
        argsert_1.argsert("<string> [string]", [key, rootPath], arguments.length);
        let conf = null;
        const obj = pkgUp(rootPath || cwd);
        if (obj[key] && typeof obj[key] === "object") {
          conf = apply_extends_1.applyExtends(obj[key], rootPath || cwd, self2.getParserConfiguration()["deep-merge-config"]);
          options.configObjects = (options.configObjects || []).concat(conf);
        }
        return self2;
      }, "pkgConf");
      const pkgs = {};
      function pkgUp(rootPath) {
        const npath = rootPath || "*";
        if (pkgs[npath])
          return pkgs[npath];
        let obj = {};
        try {
          let startDir = rootPath || requireMainFilename(parentRequire);
          if (!rootPath && path38.extname(startDir)) {
            startDir = path38.dirname(startDir);
          }
          const pkgJsonPath = findUp.sync("package.json", {
            cwd: startDir
          });
          common_types_1.assertNotStrictEqual(pkgJsonPath, void 0);
          obj = JSON.parse(fs43.readFileSync(pkgJsonPath).toString());
        } catch (noop) {
        }
        pkgs[npath] = obj || {};
        return pkgs[npath];
      }
      __name(pkgUp, "pkgUp");
      let parseFn = null;
      let parseContext = null;
      self2.parse = /* @__PURE__ */ __name(function parse3(args, shortCircuit, _parseFn) {
        argsert_1.argsert("[string|array] [function|boolean|object] [function]", [args, shortCircuit, _parseFn], arguments.length);
        freeze();
        if (typeof args === "undefined") {
          const argv = self2._parseArgs(processArgs);
          const tmpParsed = self2.parsed;
          unfreeze();
          self2.parsed = tmpParsed;
          return argv;
        }
        if (typeof shortCircuit === "object") {
          parseContext = shortCircuit;
          shortCircuit = _parseFn;
        }
        if (typeof shortCircuit === "function") {
          parseFn = shortCircuit;
          shortCircuit = false;
        }
        if (!shortCircuit)
          processArgs = args;
        if (parseFn)
          exitProcess = false;
        const parsed = self2._parseArgs(args, !!shortCircuit);
        completion.setParsed(self2.parsed);
        if (parseFn)
          parseFn(exitError, parsed, output);
        unfreeze();
        return parsed;
      }, "parse");
      self2._getParseContext = () => parseContext || {};
      self2._hasParseCallback = () => !!parseFn;
      self2.option = self2.options = /* @__PURE__ */ __name(function option(key, opt) {
        argsert_1.argsert("<string|object> [object]", [key, opt], arguments.length);
        if (typeof key === "object") {
          Object.keys(key).forEach((k3) => {
            self2.options(k3, key[k3]);
          });
        } else {
          if (typeof opt !== "object") {
            opt = {};
          }
          options.key[key] = true;
          if (opt.alias)
            self2.alias(key, opt.alias);
          const deprecate = opt.deprecate || opt.deprecated;
          if (deprecate) {
            self2.deprecateOption(key, deprecate);
          }
          const demand = opt.demand || opt.required || opt.require;
          if (demand) {
            self2.demand(key, demand);
          }
          if (opt.demandOption) {
            self2.demandOption(key, typeof opt.demandOption === "string" ? opt.demandOption : void 0);
          }
          if (opt.conflicts) {
            self2.conflicts(key, opt.conflicts);
          }
          if ("default" in opt) {
            self2.default(key, opt.default);
          }
          if (opt.implies !== void 0) {
            self2.implies(key, opt.implies);
          }
          if (opt.nargs !== void 0) {
            self2.nargs(key, opt.nargs);
          }
          if (opt.config) {
            self2.config(key, opt.configParser);
          }
          if (opt.normalize) {
            self2.normalize(key);
          }
          if (opt.choices) {
            self2.choices(key, opt.choices);
          }
          if (opt.coerce) {
            self2.coerce(key, opt.coerce);
          }
          if (opt.group) {
            self2.group(key, opt.group);
          }
          if (opt.boolean || opt.type === "boolean") {
            self2.boolean(key);
            if (opt.alias)
              self2.boolean(opt.alias);
          }
          if (opt.array || opt.type === "array") {
            self2.array(key);
            if (opt.alias)
              self2.array(opt.alias);
          }
          if (opt.number || opt.type === "number") {
            self2.number(key);
            if (opt.alias)
              self2.number(opt.alias);
          }
          if (opt.string || opt.type === "string") {
            self2.string(key);
            if (opt.alias)
              self2.string(opt.alias);
          }
          if (opt.count || opt.type === "count") {
            self2.count(key);
          }
          if (typeof opt.global === "boolean") {
            self2.global(key, opt.global);
          }
          if (opt.defaultDescription) {
            options.defaultDescription[key] = opt.defaultDescription;
          }
          if (opt.skipValidation) {
            self2.skipValidation(key);
          }
          const desc = opt.describe || opt.description || opt.desc;
          self2.describe(key, desc);
          if (opt.hidden) {
            self2.hide(key);
          }
          if (opt.requiresArg) {
            self2.requiresArg(key);
          }
        }
        return self2;
      }, "option");
      self2.getOptions = () => options;
      self2.positional = function(key, opts) {
        argsert_1.argsert("<string> <object>", [key, opts], arguments.length);
        if (context.resets === 0) {
          throw new yerror_1.YError(".positional() can only be called in a command's builder function");
        }
        const supportedOpts = [
          "default",
          "defaultDescription",
          "implies",
          "normalize",
          "choices",
          "conflicts",
          "coerce",
          "type",
          "describe",
          "desc",
          "description",
          "alias"
        ];
        opts = obj_filter_1.objFilter(opts, (k3, v6) => {
          let accept = supportedOpts.indexOf(k3) !== -1;
          if (k3 === "type" && ["string", "number", "boolean"].indexOf(v6) === -1)
            accept = false;
          return accept;
        });
        const fullCommand = context.fullCommands[context.fullCommands.length - 1];
        const parseOptions = fullCommand ? command2.cmdToParseOptions(fullCommand) : {
          array: [],
          alias: {},
          default: {},
          demand: {}
        };
        common_types_1.objectKeys(parseOptions).forEach((pk) => {
          const parseOption = parseOptions[pk];
          if (Array.isArray(parseOption)) {
            if (parseOption.indexOf(key) !== -1)
              opts[pk] = true;
          } else {
            if (parseOption[key] && !(pk in opts))
              opts[pk] = parseOption[key];
          }
        });
        self2.group(key, usage.getPositionalGroupName());
        return self2.option(key, opts);
      };
      self2.group = /* @__PURE__ */ __name(function group(opts, groupName) {
        argsert_1.argsert("<string|array> <string>", [opts, groupName], arguments.length);
        const existing = preservedGroups[groupName] || groups[groupName];
        if (preservedGroups[groupName]) {
          delete preservedGroups[groupName];
        }
        const seen = {};
        groups[groupName] = (existing || []).concat(opts).filter((key) => {
          if (seen[key])
            return false;
          return seen[key] = true;
        });
        return self2;
      }, "group");
      self2.getGroups = () => Object.assign({}, groups, preservedGroups);
      self2.env = function(prefix2) {
        argsert_1.argsert("[string|boolean]", [prefix2], arguments.length);
        if (prefix2 === false)
          delete options.envPrefix;
        else
          options.envPrefix = prefix2 || "";
        return self2;
      };
      self2.wrap = function(cols) {
        argsert_1.argsert("<number|null|undefined>", [cols], arguments.length);
        usage.wrap(cols);
        return self2;
      };
      let strict = false;
      self2.strict = function(enabled) {
        argsert_1.argsert("[boolean]", [enabled], arguments.length);
        strict = enabled !== false;
        return self2;
      };
      self2.getStrict = () => strict;
      let strictCommands = false;
      self2.strictCommands = function(enabled) {
        argsert_1.argsert("[boolean]", [enabled], arguments.length);
        strictCommands = enabled !== false;
        return self2;
      };
      self2.getStrictCommands = () => strictCommands;
      let parserConfig = {};
      self2.parserConfiguration = /* @__PURE__ */ __name(function parserConfiguration(config) {
        argsert_1.argsert("<object>", [config], arguments.length);
        parserConfig = config;
        return self2;
      }, "parserConfiguration");
      self2.getParserConfiguration = () => parserConfig;
      self2.showHelp = function(level) {
        argsert_1.argsert("[string|function]", [level], arguments.length);
        if (!self2.parsed)
          self2._parseArgs(processArgs);
        if (command2.hasDefaultCommand()) {
          context.resets++;
          command2.runDefaultBuilderOn(self2);
        }
        usage.showHelp(level);
        return self2;
      };
      let versionOpt = null;
      self2.version = /* @__PURE__ */ __name(function version2(opt, msg, ver) {
        const defaultVersionOpt = "version";
        argsert_1.argsert("[boolean|string] [string] [string]", [opt, msg, ver], arguments.length);
        if (versionOpt) {
          deleteFromParserHintObject(versionOpt);
          usage.version(void 0);
          versionOpt = null;
        }
        if (arguments.length === 0) {
          ver = guessVersion();
          opt = defaultVersionOpt;
        } else if (arguments.length === 1) {
          if (opt === false) {
            return self2;
          }
          ver = opt;
          opt = defaultVersionOpt;
        } else if (arguments.length === 2) {
          ver = msg;
          msg = void 0;
        }
        versionOpt = typeof opt === "string" ? opt : defaultVersionOpt;
        msg = msg || usage.deferY18nLookup("Show version number");
        usage.version(ver || void 0);
        self2.boolean(versionOpt);
        self2.describe(versionOpt, msg);
        return self2;
      }, "version");
      function guessVersion() {
        const obj = pkgUp();
        return obj.version || "unknown";
      }
      __name(guessVersion, "guessVersion");
      let helpOpt = null;
      self2.addHelpOpt = self2.help = /* @__PURE__ */ __name(function addHelpOpt(opt, msg) {
        const defaultHelpOpt = "help";
        argsert_1.argsert("[string|boolean] [string]", [opt, msg], arguments.length);
        if (helpOpt) {
          deleteFromParserHintObject(helpOpt);
          helpOpt = null;
        }
        if (arguments.length === 1) {
          if (opt === false)
            return self2;
        }
        helpOpt = typeof opt === "string" ? opt : defaultHelpOpt;
        self2.boolean(helpOpt);
        self2.describe(helpOpt, msg || usage.deferY18nLookup("Show help"));
        return self2;
      }, "addHelpOpt");
      const defaultShowHiddenOpt = "show-hidden";
      options.showHiddenOpt = defaultShowHiddenOpt;
      self2.addShowHiddenOpt = self2.showHidden = /* @__PURE__ */ __name(function addShowHiddenOpt(opt, msg) {
        argsert_1.argsert("[string|boolean] [string]", [opt, msg], arguments.length);
        if (arguments.length === 1) {
          if (opt === false)
            return self2;
        }
        const showHiddenOpt = typeof opt === "string" ? opt : defaultShowHiddenOpt;
        self2.boolean(showHiddenOpt);
        self2.describe(showHiddenOpt, msg || usage.deferY18nLookup("Show hidden options"));
        options.showHiddenOpt = showHiddenOpt;
        return self2;
      }, "addShowHiddenOpt");
      self2.hide = /* @__PURE__ */ __name(function hide(key) {
        argsert_1.argsert("<string>", [key], arguments.length);
        options.hiddenOptions.push(key);
        return self2;
      }, "hide");
      self2.showHelpOnFail = /* @__PURE__ */ __name(function showHelpOnFail(enabled, message2) {
        argsert_1.argsert("[boolean|string] [string]", [enabled, message2], arguments.length);
        usage.showHelpOnFail(enabled, message2);
        return self2;
      }, "showHelpOnFail");
      var exitProcess = true;
      self2.exitProcess = function(enabled = true) {
        argsert_1.argsert("[boolean]", [enabled], arguments.length);
        exitProcess = enabled;
        return self2;
      };
      self2.getExitProcess = () => exitProcess;
      var completionCommand = null;
      self2.completion = function(cmd, desc, fn) {
        argsert_1.argsert("[string] [string|boolean|function] [function]", [cmd, desc, fn], arguments.length);
        if (typeof desc === "function") {
          fn = desc;
          desc = void 0;
        }
        completionCommand = cmd || completionCommand || "completion";
        if (!desc && desc !== false) {
          desc = "generate completion script";
        }
        self2.command(completionCommand, desc);
        if (fn)
          completion.registerFunction(fn);
        return self2;
      };
      self2.showCompletionScript = function($0, cmd) {
        argsert_1.argsert("[string] [string]", [$0, cmd], arguments.length);
        $0 = $0 || self2.$0;
        _logger.log(completion.generateCompletionScript($0, cmd || completionCommand || "completion"));
        return self2;
      };
      self2.getCompletion = function(args, done) {
        argsert_1.argsert("<array> <function>", [args, done], arguments.length);
        completion.getCompletion(args, done);
      };
      self2.locale = function(locale) {
        argsert_1.argsert("[string]", [locale], arguments.length);
        if (!locale) {
          guessLocale();
          return y18n.getLocale();
        }
        detectLocale = false;
        y18n.setLocale(locale);
        return self2;
      };
      self2.updateStrings = self2.updateLocale = function(obj) {
        argsert_1.argsert("<object>", [obj], arguments.length);
        detectLocale = false;
        y18n.updateLocale(obj);
        return self2;
      };
      let detectLocale = true;
      self2.detectLocale = function(detect) {
        argsert_1.argsert("<boolean>", [detect], arguments.length);
        detectLocale = detect;
        return self2;
      };
      self2.getDetectLocale = () => detectLocale;
      var hasOutput = false;
      var exitError = null;
      self2.exit = (code, err) => {
        hasOutput = true;
        exitError = err;
        if (exitProcess)
          process.exit(code);
      };
      const _logger = {
        log(...args) {
          if (!self2._hasParseCallback())
            console.log(...args);
          hasOutput = true;
          if (output.length)
            output += "\n";
          output += args.join(" ");
        },
        error(...args) {
          if (!self2._hasParseCallback())
            console.error(...args);
          hasOutput = true;
          if (output.length)
            output += "\n";
          output += args.join(" ");
        }
      };
      self2._getLoggerInstance = () => _logger;
      self2._hasOutput = () => hasOutput;
      self2._setHasOutput = () => {
        hasOutput = true;
      };
      let recommendCommands;
      self2.recommendCommands = function(recommend = true) {
        argsert_1.argsert("[boolean]", [recommend], arguments.length);
        recommendCommands = recommend;
        return self2;
      };
      self2.getUsageInstance = () => usage;
      self2.getValidationInstance = () => validation;
      self2.getCommandInstance = () => command2;
      self2.terminalWidth = () => {
        argsert_1.argsert([], 0);
        return typeof process.stdout.columns !== "undefined" ? process.stdout.columns : null;
      };
      Object.defineProperty(self2, "argv", {
        get: /* @__PURE__ */ __name(() => self2._parseArgs(processArgs), "get"),
        enumerable: true
      });
      self2._parseArgs = /* @__PURE__ */ __name(function parseArgs2(args, shortCircuit, _calledFromCommand, commandIndex) {
        let skipValidation = !!_calledFromCommand;
        args = args || processArgs;
        options.__ = y18n.__;
        options.configuration = self2.getParserConfiguration();
        const populateDoubleDash = !!options.configuration["populate--"];
        const config = Object.assign({}, options.configuration, {
          "populate--": true
        });
        const parsed = Parser.detailed(args, Object.assign({}, options, {
          configuration: config
        }));
        let argv = parsed.argv;
        if (parseContext)
          argv = Object.assign({}, argv, parseContext);
        const aliases2 = parsed.aliases;
        argv.$0 = self2.$0;
        self2.parsed = parsed;
        try {
          guessLocale();
          if (shortCircuit) {
            return populateDoubleDash || _calledFromCommand ? argv : self2._copyDoubleDash(argv);
          }
          if (helpOpt) {
            const helpCmds = [helpOpt].concat(aliases2[helpOpt] || []).filter((k3) => k3.length > 1);
            if (~helpCmds.indexOf(argv._[argv._.length - 1])) {
              argv._.pop();
              argv[helpOpt] = true;
            }
          }
          const handlerKeys = command2.getCommands();
          const requestCompletions = completion.completionKey in argv;
          const skipRecommendation = argv[helpOpt] || requestCompletions;
          const skipDefaultCommand = skipRecommendation && (handlerKeys.length > 1 || handlerKeys[0] !== "$0");
          if (argv._.length) {
            if (handlerKeys.length) {
              let firstUnknownCommand;
              for (let i3 = commandIndex || 0, cmd; argv._[i3] !== void 0; i3++) {
                cmd = String(argv._[i3]);
                if (~handlerKeys.indexOf(cmd) && cmd !== completionCommand) {
                  const innerArgv = command2.runCommand(cmd, self2, parsed, i3 + 1);
                  return populateDoubleDash ? innerArgv : self2._copyDoubleDash(innerArgv);
                } else if (!firstUnknownCommand && cmd !== completionCommand) {
                  firstUnknownCommand = cmd;
                  break;
                }
              }
              if (command2.hasDefaultCommand() && !skipDefaultCommand) {
                const innerArgv = command2.runCommand(null, self2, parsed);
                return populateDoubleDash ? innerArgv : self2._copyDoubleDash(innerArgv);
              }
              if (recommendCommands && firstUnknownCommand && !skipRecommendation) {
                validation.recommendCommands(firstUnknownCommand, handlerKeys);
              }
            }
            if (completionCommand && ~argv._.indexOf(completionCommand) && !requestCompletions) {
              if (exitProcess)
                setBlocking(true);
              self2.showCompletionScript();
              self2.exit(0);
            }
          } else if (command2.hasDefaultCommand() && !skipDefaultCommand) {
            const innerArgv = command2.runCommand(null, self2, parsed);
            return populateDoubleDash ? innerArgv : self2._copyDoubleDash(innerArgv);
          }
          if (requestCompletions) {
            if (exitProcess)
              setBlocking(true);
            args = [].concat(args);
            const completionArgs = args.slice(args.indexOf(`--${completion.completionKey}`) + 1);
            completion.getCompletion(completionArgs, (completions) => {
              ;
              (completions || []).forEach((completion2) => {
                _logger.log(completion2);
              });
              self2.exit(0);
            });
            return populateDoubleDash || _calledFromCommand ? argv : self2._copyDoubleDash(argv);
          }
          if (!hasOutput) {
            Object.keys(argv).forEach((key) => {
              if (key === helpOpt && argv[key]) {
                if (exitProcess)
                  setBlocking(true);
                skipValidation = true;
                self2.showHelp("log");
                self2.exit(0);
              } else if (key === versionOpt && argv[key]) {
                if (exitProcess)
                  setBlocking(true);
                skipValidation = true;
                usage.showVersion();
                self2.exit(0);
              }
            });
          }
          if (!skipValidation && options.skipValidation.length > 0) {
            skipValidation = Object.keys(argv).some((key) => options.skipValidation.indexOf(key) >= 0 && argv[key] === true);
          }
          if (!skipValidation) {
            if (parsed.error)
              throw new yerror_1.YError(parsed.error.message);
            if (!requestCompletions) {
              self2._runValidation(argv, aliases2, {}, parsed.error);
            }
          }
        } catch (err) {
          if (err instanceof yerror_1.YError)
            usage.fail(err.message, err);
          else
            throw err;
        }
        return populateDoubleDash || _calledFromCommand ? argv : self2._copyDoubleDash(argv);
      }, "parseArgs");
      self2._copyDoubleDash = function(argv) {
        if (is_promise_1.isPromise(argv) || !argv._ || !argv["--"])
          return argv;
        argv._.push.apply(argv._, argv["--"]);
        try {
          delete argv["--"];
        } catch (_err) {
        }
        return argv;
      };
      self2._runValidation = /* @__PURE__ */ __name(function runValidation(argv, aliases2, positionalMap, parseErrors, isDefaultCommand = false) {
        if (parseErrors)
          throw new yerror_1.YError(parseErrors.message);
        validation.nonOptionCount(argv);
        validation.requiredArguments(argv);
        let failedStrictCommands = false;
        if (strictCommands) {
          failedStrictCommands = validation.unknownCommands(argv);
        }
        if (strict && !failedStrictCommands) {
          validation.unknownArguments(argv, aliases2, positionalMap, isDefaultCommand);
        }
        validation.customChecks(argv, aliases2);
        validation.limitedChoices(argv);
        validation.implications(argv);
        validation.conflicting(argv);
      }, "runValidation");
      function guessLocale() {
        if (!detectLocale)
          return;
        const locale = process.env.LC_ALL || process.env.LC_MESSAGES || process.env.LANG || process.env.LANGUAGE || "en_US";
        self2.locale(locale.replace(/[.:].*/, ""));
      }
      __name(guessLocale, "guessLocale");
      self2.help();
      self2.version();
      return self2;
    }
    __name(Yargs, "Yargs");
    exports2.Yargs = Yargs;
    function rebase(base, dir) {
      return path38.relative(base, dir);
    }
    __name(rebase, "rebase");
    exports2.rebase = rebase;
    function isYargsInstance(y2) {
      return !!y2 && typeof y2._parseArgs === "function";
    }
    __name(isYargsInstance, "isYargsInstance");
    exports2.isYargsInstance = isYargsInstance;
  }
});

// node_modules/yargs/yargs.js
var require_yargs2 = __commonJS({
  "node_modules/yargs/yargs.js"(exports2, module2) {
    "use strict";
    async function requiresNode8OrGreater() {
    }
    __name(requiresNode8OrGreater, "requiresNode8OrGreater");
    requiresNode8OrGreater();
    var { Yargs, rebase } = require_yargs();
    var Parser = require_yargs_parser();
    exports2 = module2.exports = Yargs;
    exports2.rebase = rebase;
    exports2.Parser = Parser;
  }
});

// node_modules/yargs/index.js
var require_yargs3 = __commonJS({
  "node_modules/yargs/index.js"(exports2, module2) {
    "use strict";
    var yargs2 = require_yargs2();
    var processArgv = require_process_argv();
    Argv(processArgv.getProcessArgvWithoutBin());
    module2.exports = Argv;
    function Argv(processArgs, cwd) {
      const argv = yargs2(processArgs, cwd, require);
      singletonify(argv);
      return argv;
    }
    __name(Argv, "Argv");
    function singletonify(inst) {
      Object.keys(inst).forEach((key) => {
        if (key === "argv") {
          Argv.__defineGetter__(key, inst.__lookupGetter__(key));
        } else if (typeof inst[key] === "function") {
          Argv[key] = inst[key].bind(inst);
        } else {
          Argv.__defineGetter__("$0", () => {
            return inst.$0;
          });
          Argv.__defineGetter__("parsed", () => {
            return inst.parsed;
          });
        }
      });
    }
    __name(singletonify, "singletonify");
  }
});

// lib/cli/parse-command-line-arguments.ts
function parseCommandLineArguments(args) {
  return yargs.env("CDK").usage("Usage: cdk -a <cdk-app> COMMAND").option("app", {
    default: void 0,
    type: "string",
    alias: "a",
    desc: 'REQUIRED WHEN RUNNING APP: command-line for executing your app or a cloud assembly directory (e.g. "node bin/my-app.js"). Can also be specified in cdk.json or ~/.cdk.json',
    requiresArg: true
  }).option("build", {
    default: void 0,
    type: "string",
    desc: "Command-line for a pre-synth build"
  }).option("context", {
    type: "array",
    alias: "c",
    desc: "Add contextual string parameter (KEY=VALUE)",
    nargs: 1,
    requiresArg: true
  }).option("plugin", {
    type: "array",
    alias: "p",
    desc: "Name or path of a node package that extend the CDK features. Can be specified multiple times",
    nargs: 1,
    requiresArg: true
  }).option("trace", {
    default: void 0,
    type: "boolean",
    desc: "Print trace for stack warnings"
  }).option("strict", {
    default: void 0,
    type: "boolean",
    desc: "Do not construct stacks with warnings"
  }).option("lookups", {
    default: true,
    type: "boolean",
    desc: "Perform context lookups (synthesis fails if this is disabled and context lookups need to be performed)"
  }).option("ignore-errors", {
    default: false,
    type: "boolean",
    desc: "Ignores synthesis errors, which will likely produce an invalid output"
  }).option("json", {
    default: false,
    type: "boolean",
    alias: "j",
    desc: "Use JSON output instead of YAML when templates are printed to STDOUT"
  }).option("verbose", {
    default: false,
    type: "boolean",
    alias: "v",
    desc: "Show debug logs (specify multiple times to increase verbosity)",
    count: true
  }).option("debug", {
    default: false,
    type: "boolean",
    desc: "Debug the CDK app. Log additional information during synthesis, such as creation stack traces of tokens (sets CDK_DEBUG, will slow down synthesis)"
  }).option("profile", {
    default: void 0,
    type: "string",
    desc: "Use the indicated AWS profile as the default environment",
    requiresArg: true
  }).option("proxy", {
    default: void 0,
    type: "string",
    desc: "Use the indicated proxy. Will read from HTTPS_PROXY environment variable if not specified",
    requiresArg: true
  }).option("ca-bundle-path", {
    default: void 0,
    type: "string",
    desc: "Path to CA certificate to use when validating HTTPS requests. Will read from AWS_CA_BUNDLE environment variable if not specified",
    requiresArg: true
  }).option("ec2creds", {
    default: void 0,
    type: "boolean",
    alias: "i",
    desc: "Force trying to fetch EC2 instance credentials. Default: guess EC2 instance status"
  }).option("version-reporting", {
    default: void 0,
    type: "boolean",
    desc: 'Disable CLI telemetry and do not include the "AWS::CDK::Metadata" resource in synthesized templates (enabled by default)',
    alias: "telemetry"
  }).option("path-metadata", {
    default: void 0,
    type: "boolean",
    desc: 'Include "aws:cdk:path" CloudFormation metadata for each resource (enabled by default)'
  }).option("asset-metadata", {
    default: void 0,
    type: "boolean",
    desc: 'Include "aws:asset:*" CloudFormation metadata for resources that uses assets (enabled by default)'
  }).option("role-arn", {
    default: void 0,
    type: "string",
    alias: "r",
    desc: "ARN of Role to use when invoking CloudFormation",
    requiresArg: true
  }).option("staging", {
    default: true,
    type: "boolean",
    desc: "Copy assets to the output directory (use --no-staging to disable the copy of assets which allows local debugging via the SAM CLI to reference the original source files)"
  }).option("output", {
    default: void 0,
    type: "string",
    alias: "o",
    desc: "Emits the synthesized cloud assembly into a directory (default: cdk.out)",
    requiresArg: true
  }).option("notices", {
    default: void 0,
    type: "boolean",
    desc: "Show relevant notices"
  }).option("no-color", {
    default: false,
    type: "boolean",
    desc: "Removes colors and other style from console output"
  }).option("ci", {
    default: isCI2(),
    type: "boolean",
    desc: "Force CI detection. If CI=true then logs will be sent to stdout instead of stderr"
  }).option("unstable", {
    type: "array",
    desc: "Opt in to unstable features. The flag indicates that the scope and API of a feature might still change. Otherwise the feature is generally production ready and fully supported. Can be specified multiple times.",
    default: [],
    nargs: 1,
    requiresArg: true
  }).option("telemetry-file", {
    default: void 0,
    type: "string",
    desc: "Send telemetry data to a local file."
  }).command(
    ["list [STACKS..]", "ls [STACKS..]"],
    "Lists all stacks in the app",
    (yargs2) => yargs2.option("long", {
      default: false,
      type: "boolean",
      alias: "l",
      desc: "Display environment information for each stack"
    }).option("show-dependencies", {
      default: false,
      type: "boolean",
      alias: "d",
      desc: "Display stack dependency information for each stack"
    })
  ).command(
    ["synth [STACKS..]", "synthesize [STACKS..]"],
    "Synthesizes and prints the CloudFormation template for this stack",
    (yargs2) => yargs2.option("exclusively", {
      default: void 0,
      type: "boolean",
      alias: "e",
      desc: "Only synthesize requested stacks, don't include dependencies"
    }).option("validation", {
      default: true,
      type: "boolean",
      desc: 'After synthesis, validate stacks with the "validateOnSynth" attribute set (can also be controlled with CDK_VALIDATION)'
    }).option("quiet", {
      default: false,
      type: "boolean",
      alias: "q",
      desc: "Do not output CloudFormation Template to stdout"
    })
  ).command(
    "bootstrap [ENVIRONMENTS..]",
    "Deploys the CDK toolkit stack into an AWS environment",
    (yargs2) => yargs2.option("bootstrap-bucket-name", {
      default: void 0,
      type: "string",
      alias: ["b", "toolkit-bucket-name"],
      desc: "The name of the CDK toolkit bucket; bucket will be created and must not exist"
    }).option("bootstrap-kms-key-id", {
      default: void 0,
      type: "string",
      desc: "AWS KMS master key ID used for the SSE-KMS encryption (specify AWS_MANAGED_KEY to use an AWS-managed key)",
      conflicts: "bootstrap-customer-key"
    }).option("example-permissions-boundary", {
      default: void 0,
      type: "boolean",
      alias: "epb",
      desc: "Use the example permissions boundary.",
      conflicts: "custom-permissions-boundary"
    }).option("custom-permissions-boundary", {
      default: void 0,
      type: "string",
      alias: "cpb",
      desc: "Use the permissions boundary specified by name.",
      conflicts: "example-permissions-boundary"
    }).option("bootstrap-customer-key", {
      default: void 0,
      type: "boolean",
      desc: "Create a Customer Master Key (CMK) for the bootstrap bucket (you will be charged but can customize permissions, modern bootstrapping only)",
      conflicts: "bootstrap-kms-key-id"
    }).option("qualifier", {
      default: void 0,
      type: "string",
      desc: "String which must be unique for each bootstrap stack. You must configure it on your CDK app if you change this from the default."
    }).option("public-access-block-configuration", {
      default: void 0,
      type: "boolean",
      desc: "Block public access configuration on CDK toolkit bucket (enabled by default) "
    }).option("deny-external-id", {
      default: void 0,
      type: "boolean",
      desc: "Block AssumeRole access to all boostrapped roles if an ExternalId is provided (enabled by default) "
    }).option("tags", {
      type: "array",
      alias: "t",
      desc: "Tags to add for the stack (KEY=VALUE)",
      default: [],
      nargs: 1,
      requiresArg: true
    }).option("execute", {
      default: true,
      type: "boolean",
      desc: "Whether to execute ChangeSet (--no-execute will NOT execute the ChangeSet)"
    }).option("trust", {
      type: "array",
      desc: "The AWS account IDs that should be trusted to perform deployments into this environment (may be repeated, modern bootstrapping only)",
      default: [],
      nargs: 1,
      requiresArg: true
    }).option("trust-for-lookup", {
      type: "array",
      desc: "The AWS account IDs that should be trusted to look up values in this environment (may be repeated, modern bootstrapping only)",
      default: [],
      nargs: 1,
      requiresArg: true
    }).option("untrust", {
      type: "array",
      desc: "The AWS account IDs that should not be trusted by this environment (may be repeated, modern bootstrapping only)",
      default: [],
      nargs: 1,
      requiresArg: true
    }).option("cloudformation-execution-policies", {
      type: "array",
      desc: "The Managed Policy ARNs that should be attached to the role performing deployments into this environment (may be repeated, modern bootstrapping only)",
      default: [],
      nargs: 1,
      requiresArg: true
    }).option("force", {
      default: false,
      alias: "f",
      type: "boolean",
      desc: "Always bootstrap even if it would downgrade template version"
    }).option("termination-protection", {
      default: void 0,
      type: "boolean",
      desc: "Toggle CloudFormation termination protection on the bootstrap stacks"
    }).option("show-template", {
      default: false,
      type: "boolean",
      desc: "Instead of actual bootstrapping, print the current CLI's bootstrapping template to stdout for customization"
    }).option("toolkit-stack-name", {
      default: void 0,
      type: "string",
      desc: "The name of the CDK toolkit stack to create",
      requiresArg: true
    }).option("template", {
      default: void 0,
      type: "string",
      requiresArg: true,
      desc: "Use the template from the given file instead of the built-in one (use --show-template to obtain an example)"
    }).option("previous-parameters", {
      default: true,
      type: "boolean",
      desc: "Use previous values for existing parameters (you must specify all parameters on every deployment if this is disabled)"
    })
  ).command(
    "gc [ENVIRONMENTS..]",
    "Garbage collect assets. Options detailed here: https://github.com/aws/aws-cdk-cli/tree/main/packages/aws-cdk#cdk-gc",
    (yargs2) => yargs2.option("action", {
      default: "full",
      type: "string",
      desc: 'The action (or sub-action) you want to perform. Valid entires are "print", "tag", "delete-tagged", "full".'
    }).option("type", {
      default: "all",
      type: "string",
      desc: "Specify either ecr, s3, or all"
    }).option("rollback-buffer-days", {
      default: 0,
      type: "number",
      desc: "Delete assets that have been marked as isolated for this many days"
    }).option("created-buffer-days", {
      default: 1,
      type: "number",
      desc: "Never delete assets younger than this (in days)"
    }).option("confirm", {
      default: true,
      type: "boolean",
      desc: "Confirm via manual prompt before deletion"
    }).option("toolkit-stack-name", {
      default: void 0,
      type: "string",
      desc: 'The name of the CDK toolkit stack, if different from the default "CDKToolkit"',
      requiresArg: true,
      conflicts: "bootstrap-stack-name"
    }).option("bootstrap-stack-name", {
      default: void 0,
      type: "string",
      desc: 'The name of the CDK toolkit stack, if different from the default "CDKToolkit" (deprecated, use --toolkit-stack-name)',
      deprecated: "use --toolkit-stack-name",
      requiresArg: true,
      conflicts: "toolkit-stack-name"
    })
  ).command(
    "flags [FLAGNAME..]",
    "View and toggle feature flags.",
    (yargs2) => yargs2.option("value", {
      default: void 0,
      type: "string",
      desc: "The value the user would like to set the feature flag configuration to",
      requiresArg: true
    }).option("set", {
      default: void 0,
      type: "boolean",
      desc: "Signifies the user would like to modify their feature flag configuration",
      requiresArg: false
    }).option("all", {
      default: void 0,
      type: "boolean",
      desc: "Modify or view all feature flags",
      requiresArg: false
    }).option("unconfigured", {
      default: void 0,
      type: "boolean",
      desc: "Modify unconfigured feature flags",
      requiresArg: false
    }).option("recommended", {
      default: void 0,
      type: "boolean",
      desc: "Change flags to recommended states",
      requiresArg: false
    }).option("default", {
      default: void 0,
      type: "boolean",
      desc: "Change flags to default state",
      requiresArg: false
    }).option("interactive", {
      default: void 0,
      type: "boolean",
      alias: ["i"],
      desc: "Interactive option for the flags command",
      requiresArg: false
    })
  ).command(
    "deploy [STACKS..]",
    "Deploys the stack(s) named STACKS into your AWS account",
    (yargs2) => yargs2.option("all", {
      default: false,
      type: "boolean",
      desc: "Deploy all available stacks"
    }).option("build-exclude", {
      type: "array",
      alias: "E",
      desc: "Do not rebuild asset with the given ID. Can be specified multiple times",
      default: [],
      nargs: 1,
      requiresArg: true
    }).option("exclusively", {
      default: void 0,
      type: "boolean",
      alias: "e",
      desc: "Only deploy requested stacks, don't include dependencies"
    }).option("require-approval", {
      default: void 0,
      type: "string",
      choices: ["never", "any-change", "broadening"],
      desc: "What security-sensitive changes need manual approval"
    }).option("notification-arns", {
      type: "array",
      desc: "ARNs of SNS topics that CloudFormation will notify with stack related events. These will be added to ARNs specified with the 'notificationArns' stack property.",
      nargs: 1,
      requiresArg: true
    }).option("tags", {
      type: "array",
      alias: "t",
      desc: "Tags to add to the stack (KEY=VALUE), overrides tags from Cloud Assembly (deprecated)",
      nargs: 1,
      requiresArg: true
    }).option("execute", {
      default: void 0,
      type: "boolean",
      desc: "Whether to execute ChangeSet (--no-execute will NOT execute the ChangeSet) (deprecated)",
      deprecated: true
    }).option("change-set-name", {
      default: void 0,
      type: "string",
      desc: "Name of the CloudFormation change set to create (only if method is not direct)"
    }).option("method", {
      default: void 0,
      alias: "m",
      type: "string",
      choices: ["direct", "change-set", "prepare-change-set"],
      requiresArg: true,
      desc: "How to perform the deployment. Direct is a bit faster but lacks progress information"
    }).option("import-existing-resources", {
      default: false,
      type: "boolean",
      desc: "Indicates if the stack set imports resources that already exist."
    }).option("force", {
      default: false,
      alias: "f",
      type: "boolean",
      desc: "Always deploy stack even if templates are identical"
    }).option("parameters", {
      type: "array",
      desc: "Additional parameters passed to CloudFormation at deploy time (STACK:KEY=VALUE)",
      default: {},
      nargs: 1,
      requiresArg: true
    }).option("outputs-file", {
      default: void 0,
      type: "string",
      alias: "O",
      desc: "Path to file where stack outputs will be written as JSON",
      requiresArg: true
    }).option("previous-parameters", {
      default: true,
      type: "boolean",
      desc: "Use previous values for existing parameters (you must specify all parameters on every deployment if this is disabled)"
    }).option("toolkit-stack-name", {
      default: void 0,
      type: "string",
      desc: "The name of the existing CDK toolkit stack (only used for app using legacy synthesis)",
      requiresArg: true
    }).option("progress", {
      default: void 0,
      type: "string",
      choices: ["bar", "events"],
      desc: "Display mode for stack activity events"
    }).option("rollback", {
      default: void 0,
      type: "boolean",
      desc: "Rollback stack to stable state on failure. Defaults to 'true', iterate more rapidly with --no-rollback or -R. Note: do **not** disable this flag for deployments with resource replacements, as that will always fail"
    }).option("R", { type: "boolean", hidden: true }).middleware(yargsNegativeAlias("R", "rollback"), true).option("hotswap", {
      default: void 0,
      type: "boolean",
      desc: "Attempts to perform a 'hotswap' deployment, but does not fall back to a full deployment if that is not possible. Instead, changes to any non-hotswappable properties are ignored.Do not use this in production environments"
    }).option("hotswap-fallback", {
      default: void 0,
      type: "boolean",
      desc: "Attempts to perform a 'hotswap' deployment, which skips CloudFormation and updates the resources directly, and falls back to a full deployment if that is not possible. Do not use this in production environments"
    }).option("hotswap-ecs-minimum-healthy-percent", {
      default: void 0,
      type: "string",
      desc: "Lower limit on the number of your service's tasks that must remain in the RUNNING state during a deployment, as a percentage of the desiredCount"
    }).option("hotswap-ecs-maximum-healthy-percent", {
      default: void 0,
      type: "string",
      desc: "Upper limit on the number of your service's tasks that are allowed in the RUNNING or PENDING state during a deployment, as a percentage of the desiredCount"
    }).option("hotswap-ecs-stabilization-timeout-seconds", {
      default: void 0,
      type: "string",
      desc: "Number of seconds to wait for a single service to reach stable state, where the desiredCount is equal to the runningCount"
    }).option("watch", {
      default: void 0,
      type: "boolean",
      desc: "Continuously observe the project files, and deploy the given stack(s) automatically when changes are detected. Implies --hotswap by default"
    }).option("logs", {
      default: true,
      type: "boolean",
      desc: "Show CloudWatch log events from all resources in the selected Stacks in the terminal. 'true' by default, use --no-logs to turn off. Only in effect if specified alongside the '--watch' option"
    }).option("concurrency", {
      default: 1,
      type: "number",
      desc: "Maximum number of simultaneous deployments (dependency permitting) to execute.",
      requiresArg: true
    }).option("asset-parallelism", {
      default: void 0,
      type: "boolean",
      desc: "Whether to build/publish assets in parallel"
    }).option("asset-prebuild", {
      default: true,
      type: "boolean",
      desc: "Whether to build all assets before deploying the first stack (useful for failing Docker builds)"
    }).option("ignore-no-stacks", {
      default: false,
      type: "boolean",
      desc: "Whether to deploy if the app contains no stacks"
    })
  ).command(
    "rollback [STACKS..]",
    "Rolls back the stack(s) named STACKS to their last stable state",
    (yargs2) => yargs2.option("all", {
      default: false,
      type: "boolean",
      desc: "Roll back all available stacks"
    }).option("toolkit-stack-name", {
      default: void 0,
      type: "string",
      desc: "The name of the CDK toolkit stack the environment is bootstrapped with",
      requiresArg: true
    }).option("force", {
      default: void 0,
      alias: "f",
      type: "boolean",
      desc: "Orphan all resources for which the rollback operation fails."
    }).option("validate-bootstrap-version", {
      default: void 0,
      type: "boolean",
      desc: "Whether to validate the bootstrap stack version. Defaults to 'true', disable with --no-validate-bootstrap-version."
    }).option("orphan", {
      type: "array",
      desc: "Orphan the given resources, identified by their logical ID (can be specified multiple times)",
      default: [],
      nargs: 1,
      requiresArg: true
    })
  ).command(
    "import [STACK]",
    "Import existing resource(s) into the given STACK",
    (yargs2) => yargs2.option("execute", {
      default: true,
      type: "boolean",
      desc: "Whether to execute ChangeSet (--no-execute will NOT execute the ChangeSet)"
    }).option("change-set-name", {
      default: void 0,
      type: "string",
      desc: "Name of the CloudFormation change set to create"
    }).option("toolkit-stack-name", {
      default: void 0,
      type: "string",
      desc: "The name of the CDK toolkit stack to create",
      requiresArg: true
    }).option("rollback", {
      default: void 0,
      type: "boolean",
      desc: "Rollback stack to stable state on failure. Defaults to 'true', iterate more rapidly with --no-rollback or -R. Note: do **not** disable this flag for deployments with resource replacements, as that will always fail"
    }).option("force", {
      default: void 0,
      alias: "f",
      type: "boolean",
      desc: "Do not abort if the template diff includes updates or deletes. This is probably safe but we're not sure, let us know how it goes."
    }).option("record-resource-mapping", {
      default: void 0,
      type: "string",
      alias: "r",
      requiresArg: true,
      desc: "If specified, CDK will generate a mapping of existing physical resources to CDK resources to be imported as. The mapping will be written in the given file path. No actual import operation will be performed"
    }).option("resource-mapping", {
      default: void 0,
      type: "string",
      alias: "m",
      requiresArg: true,
      desc: "If specified, CDK will use the given file to map physical resources to CDK resources for import, instead of interactively asking the user. Can be run from scripts"
    })
  ).command(
    "watch [STACKS..]",
    "Shortcut for 'deploy --watch'",
    (yargs2) => yargs2.option("build-exclude", {
      type: "array",
      alias: "E",
      desc: "Do not rebuild asset with the given ID. Can be specified multiple times",
      default: [],
      nargs: 1,
      requiresArg: true
    }).option("exclusively", {
      default: void 0,
      type: "boolean",
      alias: "e",
      desc: "Only deploy requested stacks, don't include dependencies"
    }).option("change-set-name", {
      default: void 0,
      type: "string",
      desc: "Name of the CloudFormation change set to create"
    }).option("force", {
      default: false,
      alias: "f",
      type: "boolean",
      desc: "Always deploy stack even if templates are identical"
    }).option("toolkit-stack-name", {
      default: void 0,
      type: "string",
      desc: "The name of the existing CDK toolkit stack (only used for app using legacy synthesis)",
      requiresArg: true
    }).option("progress", {
      default: void 0,
      type: "string",
      choices: ["bar", "events"],
      desc: "Display mode for stack activity events"
    }).option("rollback", {
      default: void 0,
      type: "boolean",
      desc: "Rollback stack to stable state on failure. Defaults to 'true', iterate more rapidly with --no-rollback or -R. Note: do **not** disable this flag for deployments with resource replacements, as that will always fail"
    }).option("R", { type: "boolean", hidden: true }).middleware(yargsNegativeAlias("R", "rollback"), true).option("hotswap", {
      default: void 0,
      type: "boolean",
      desc: "Attempts to perform a 'hotswap' deployment, but does not fall back to a full deployment if that is not possible. Instead, changes to any non-hotswappable properties are ignored.'true' by default, use --no-hotswap to turn off"
    }).option("hotswap-fallback", {
      default: void 0,
      type: "boolean",
      desc: "Attempts to perform a 'hotswap' deployment, which skips CloudFormation and updates the resources directly, and falls back to a full deployment if that is not possible."
    }).option("hotswap-ecs-minimum-healthy-percent", {
      default: void 0,
      type: "string",
      desc: "Lower limit on the number of your service's tasks that must remain in the RUNNING state during a deployment, as a percentage of the desiredCount"
    }).option("hotswap-ecs-maximum-healthy-percent", {
      default: void 0,
      type: "string",
      desc: "Upper limit on the number of your service's tasks that are allowed in the RUNNING or PENDING state during a deployment, as a percentage of the desiredCount"
    }).option("hotswap-ecs-stabilization-timeout-seconds", {
      default: void 0,
      type: "string",
      desc: "Number of seconds to wait for a single service to reach stable state, where the desiredCount is equal to the runningCount"
    }).option("logs", {
      default: true,
      type: "boolean",
      desc: "Show CloudWatch log events from all resources in the selected Stacks in the terminal. 'true' by default, use --no-logs to turn off"
    }).option("concurrency", {
      default: 1,
      type: "number",
      desc: "Maximum number of simultaneous deployments (dependency permitting) to execute.",
      requiresArg: true
    })
  ).command(
    "destroy [STACKS..]",
    "Destroy the stack(s) named STACKS",
    (yargs2) => yargs2.option("all", {
      default: false,
      type: "boolean",
      desc: "Destroy all available stacks"
    }).option("exclusively", {
      default: void 0,
      type: "boolean",
      alias: "e",
      desc: "Only destroy requested stacks, don't include dependees"
    }).option("force", {
      default: void 0,
      type: "boolean",
      alias: "f",
      desc: "Do not ask for confirmation before destroying the stacks"
    })
  ).command(
    "diff [STACKS..]",
    "Compares the specified stack with the deployed stack or a local template file, and returns with status 1 if any difference is found",
    (yargs2) => yargs2.option("exclusively", {
      default: void 0,
      type: "boolean",
      alias: "e",
      desc: "Only diff requested stacks, don't include dependencies"
    }).option("context-lines", {
      default: 3,
      type: "number",
      desc: "Number of context lines to include in arbitrary JSON diff rendering",
      requiresArg: true
    }).option("template", {
      default: void 0,
      type: "string",
      desc: "The path to the CloudFormation template to compare with",
      requiresArg: true
    }).option("strict", {
      default: false,
      type: "boolean",
      desc: "Do not filter out AWS::CDK::Metadata resources, mangled non-ASCII characters, or the CheckBootstrapVersionRule"
    }).option("security-only", {
      default: false,
      type: "boolean",
      desc: "Only diff for broadened security changes"
    }).option("fail", {
      default: void 0,
      type: "boolean",
      desc: "Fail with exit code 1 in case of diff"
    }).option("processed", {
      default: false,
      type: "boolean",
      desc: "Whether to compare against the template with Transforms already processed"
    }).option("quiet", {
      default: false,
      type: "boolean",
      alias: "q",
      desc: "Do not print stack name and default message when there is no diff to stdout"
    }).option("change-set", {
      default: true,
      type: "boolean",
      alias: "changeset",
      desc: "Whether to create a changeset to analyze resource replacements. In this mode, diff will use the deploy role instead of the lookup role."
    }).option("import-existing-resources", {
      default: false,
      type: "boolean",
      desc: "Whether or not the change set imports resources that already exist"
    }).option("include-moves", {
      default: false,
      type: "boolean",
      desc: "Whether to include moves in the diff"
    })
  ).command(
    "drift [STACKS..]",
    "Detect drifts in the given CloudFormation stack(s)",
    (yargs2) => yargs2.option("fail", {
      default: void 0,
      type: "boolean",
      desc: "Fail with exit code 1 if drift is detected"
    })
  ).command("metadata [STACK]", "Returns all metadata associated with this stack").command(["acknowledge [ID]", "ack [ID]"], "Acknowledge a notice so that it does not show up anymore").command(
    "notices",
    "Returns a list of relevant notices",
    (yargs2) => yargs2.option("unacknowledged", {
      default: false,
      type: "boolean",
      alias: "u",
      desc: "Returns a list of unacknowledged notices"
    })
  ).command(
    "init [TEMPLATE]",
    "Create a new, empty CDK project from a template.",
    (yargs2) => yargs2.option("language", {
      default: void 0,
      type: "string",
      alias: "l",
      desc: "The language to be used for the new project (default can be configured in ~/.cdk.json)",
      choices: ["csharp", "cs", "fsharp", "fs", "go", "java", "javascript", "js", "python", "py", "typescript", "ts"]
    }).option("list", {
      default: void 0,
      type: "boolean",
      desc: "List the available templates"
    }).option("generate-only", {
      default: false,
      type: "boolean",
      desc: "If true, only generates project files, without executing additional operations such as setting up a git repo, installing dependencies or compiling the project"
    }).option("lib-version", {
      default: void 0,
      type: "string",
      alias: "V",
      desc: "The version of the CDK library (aws-cdk-lib) to initialize built-in templates with. Defaults to the version that was current when this CLI was built."
    }).option("from-path", {
      default: void 0,
      type: "string",
      desc: "Path to a local custom template directory or multi-template repository",
      requiresArg: true,
      conflicts: ["lib-version"]
    }).option("template-path", {
      default: void 0,
      type: "string",
      desc: "Path to a specific template within a multi-template repository",
      requiresArg: true
    })
  ).command(
    "migrate",
    "Migrate existing AWS resources into a CDK app",
    (yargs2) => yargs2.option("stack-name", {
      default: void 0,
      type: "string",
      alias: "n",
      desc: "The name assigned to the stack created in the new project. The name of the app will be based off this name as well.",
      requiresArg: true
    }).option("language", {
      default: "typescript",
      type: "string",
      alias: "l",
      desc: "The language to be used for the new project",
      choices: ["typescript", "ts", "go", "java", "python", "py", "csharp", "cs"]
    }).option("account", {
      default: void 0,
      type: "string",
      desc: "The account to retrieve the CloudFormation stack template from"
    }).option("region", {
      default: void 0,
      type: "string",
      desc: "The region to retrieve the CloudFormation stack template from"
    }).option("from-path", {
      default: void 0,
      type: "string",
      desc: "The path to the CloudFormation template to migrate. Use this for locally stored templates"
    }).option("from-stack", {
      default: void 0,
      type: "boolean",
      desc: "Use this flag to retrieve the template for an existing CloudFormation stack"
    }).option("output-path", {
      default: void 0,
      type: "string",
      desc: "The output path for the migrated CDK app"
    }).option("from-scan", {
      default: void 0,
      type: "string",
      desc: 'Determines if a new scan should be created, or the last successful existing scan should be used \n options are "new" or "most-recent"'
    }).option("filter", {
      type: "array",
      desc: 'Filters the resource scan based on the provided criteria in the following format: "key1=value1,key2=value2"\n This field can be passed multiple times for OR style filtering: \n filtering options: \n resource-identifier: A key-value pair that identifies the target resource. i.e. {"ClusterName", "myCluster"}\n resource-type-prefix: A string that represents a type-name prefix. i.e. "AWS::DynamoDB::"\n tag-key: a string that matches resources with at least one tag with the provided key. i.e. "myTagKey"\n tag-value: a string that matches resources with at least one tag with the provided value. i.e. "myTagValue"',
      nargs: 1,
      requiresArg: true
    }).option("compress", {
      default: void 0,
      type: "boolean",
      desc: "Use this flag to zip the generated CDK app"
    })
  ).command(
    "context",
    "Manage cached context values",
    (yargs2) => yargs2.option("reset", {
      default: void 0,
      alias: "e",
      desc: "The context key (or its index) to reset",
      type: "string",
      requiresArg: true
    }).option("force", {
      default: false,
      alias: "f",
      desc: "Ignore missing key error",
      type: "boolean"
    }).option("clear", {
      default: false,
      desc: "Clear all context",
      type: "boolean"
    })
  ).command(
    ["docs", "doc"],
    "Opens the reference documentation in a browser",
    (yargs2) => yargs2.option("browser", {
      default: browserForPlatform(),
      alias: "b",
      desc: "the command to use to open the browser, using %u as a placeholder for the path of the file to open",
      type: "string"
    })
  ).command("doctor", "Check your set-up for potential problems").command(
    "refactor",
    "Moves resources between stacks or within the same stack",
    (yargs2) => yargs2.option("additional-stack-name", {
      type: "array",
      requiresArg: true,
      desc: "Names of deployed stacks to be considered for resource comparison.",
      nargs: 1
    }).option("dry-run", {
      default: false,
      type: "boolean",
      desc: "Do not perform any changes, just show what would be done"
    }).option("override-file", {
      default: void 0,
      type: "string",
      requiresArg: true,
      desc: "A file that declares overrides to be applied to the list of mappings computed by the CLI."
    }).option("revert", {
      default: false,
      type: "boolean",
      desc: "If specified, the command will revert the refactor operation. This is only valid if a mapping file was provided."
    }).option("force", {
      default: false,
      type: "boolean",
      desc: "Whether to do the refactor without asking for confirmation"
    })
  ).command(
    "cli-telemetry",
    "Enable or disable anonymous telemetry",
    (yargs2) => yargs2.option("enable", {
      default: void 0,
      type: "boolean",
      desc: "Enable anonymous telemetry",
      conflicts: "disable"
    }).option("disable", {
      default: void 0,
      type: "boolean",
      desc: "Disable anonymous telemetry",
      conflicts: "enable"
    }).option("status", {
      default: void 0,
      type: "boolean",
      desc: "Report telemetry opt-in/out status",
      conflicts: ["enable", "disable"]
    })
  ).version(cliVersion()).demandCommand(1, "").recommendCommands().help().alias("h", "help").epilogue(
    "If your app has a single stack, there is no need to specify the stack name\n\nIf one of cdk.json or ~/.cdk.json exists, options specified there will be used as defaults. Settings in cdk.json take precedence."
  ).parse(args);
}
var yargs;
var init_parse_command_line_arguments = __esm({
  "lib/cli/parse-command-line-arguments.ts"() {
    "use strict";
    init_yargs_helpers();
    __name(parseCommandLineArguments, "parseCommandLineArguments");
    yargs = require_yargs3();
  }
});

// lib/cli/platform-warnings.ts
async function checkForPlatformWarnings(ioHelper) {
  if (await hasDockerCopyBug()) {
    await ioHelper.defaults.warn("`cdk synth` may hang in Docker on Linux 5.6-5.10. See https://github.com/aws/aws-cdk/issues/21379 for workarounds.");
  }
}
async function hasDockerCopyBug() {
  return await runningInDocker() && os11.platform() === "linux" && isVersionBetween(os11.release(), "5.6", "5.10");
}
async function runningInDocker() {
  return fs39.pathExists("/.dockerenv");
}
function isVersionBetween(version2, lower, upper) {
  const ver = splitVersion(version2);
  const lo = splitVersion(lower);
  const up = splitVersion(upper);
  while (lo.length < ver.length) {
    lo.push(0);
  }
  while (up.length < ver.length) {
    up.push(9999999);
  }
  let n3 = ver.length;
  for (let i3 = 0; i3 < n3; i3++) {
    if (lo[i3] < ver[i3] && ver[i3] < up[i3]) {
      return true;
    }
    if (lo[i3] > ver[i3] || ver[i3] > up[i3]) {
      return false;
    }
  }
  return false;
}
function splitVersion(version2) {
  return `${version2}`.split(".").map((x3) => parseInt(x3, 10)).map((x3) => isNaN(x3) ? 0 : x3);
}
var os11, fs39;
var init_platform_warnings = __esm({
  "lib/cli/platform-warnings.ts"() {
    "use strict";
    os11 = __toESM(require("os"));
    fs39 = __toESM(require_lib13());
    __name(checkForPlatformWarnings, "checkForPlatformWarnings");
    __name(hasDockerCopyBug, "hasDockerCopyBug");
    __name(runningInDocker, "runningInDocker");
    __name(isVersionBetween, "isVersionBetween");
    __name(splitVersion, "splitVersion");
  }
});

// lib/cli/pretty-print-error.ts
function prettyPrintError(error5, debug3 = false) {
  const err = ensureError(error5);
  console.error(chalk30.red(err.message));
  if (err.cause) {
    const cause = ensureError(err.cause);
    console.error(chalk30.yellow(cause.message));
    printTrace(cause, debug3);
  }
  printTrace(err, debug3);
}
function printTrace(err, debug3 = false) {
  if (err.stack && debug3) {
    console.debug(chalk30.gray(err.stack));
  }
}
function ensureError(value) {
  if (value instanceof Error) return value;
  let stringified = "[Unable to stringify the thrown value]";
  try {
    stringified = JSON.stringify(value);
  } catch {
  }
  const error5 = new Error(`An unexpected error was thrown: ${stringified}`);
  return error5;
}
var chalk30;
var init_pretty_print_error = __esm({
  "lib/cli/pretty-print-error.ts"() {
    "use strict";
    chalk30 = __toESM(require_source());
    __name(prettyPrintError, "prettyPrintError");
    __name(printTrace, "printTrace");
    __name(ensureError, "ensureError");
  }
});

// ../@aws-cdk/toolkit-lib/lib/api/hotswap/index.ts
var init_hotswap2 = __esm({
  "../@aws-cdk/toolkit-lib/lib/api/hotswap/index.ts"() {
    "use strict";
    init_common3();
    init_hotswap_deployments();
  }
});

// lib/api/hotswap.ts
var init_hotswap3 = __esm({
  "lib/api/hotswap.ts"() {
    "use strict";
    init_hotswap2();
  }
});

// lib/cli/tables.ts
function renderTable(cells, columns) {
  return cfnDiff3.formatTable(cells, columns);
}
var cfnDiff3;
var init_tables = __esm({
  "lib/cli/tables.ts"() {
    "use strict";
    cfnDiff3 = __toESM(require_lib11());
    __name(renderTable, "renderTable");
  }
});

// lib/commands/context.ts
async function contextHandler(options) {
  const ioHelper = options.ioHelper;
  if (options.clear) {
    options.context.clear();
    await options.context.save(PROJECT_CONTEXT);
    await ioHelper.defaults.info("All context values cleared.");
  } else if (options.reset) {
    await invalidateContext(ioHelper, options.context, options.reset, options.force ?? false);
    await options.context.save(PROJECT_CONTEXT);
  } else {
    if (options.json) {
      const contextValues = options.context.all;
      await ioHelper.defaults.result(JSON.stringify(contextValues, void 0, 2));
    } else {
      await listContext(ioHelper, options.context);
    }
  }
  await displayVersionMessage(ioHelper);
  return 0;
}
async function listContext(ioHelper, context) {
  const keys = contextKeys(context);
  if (keys.length === 0) {
    await ioHelper.defaults.info("This CDK application does not have any saved context values yet.");
    await ioHelper.defaults.info("");
    await ioHelper.defaults.info("Context will automatically be saved when you synthesize CDK apps");
    await ioHelper.defaults.info("that use environment context information like AZ information, VPCs,");
    await ioHelper.defaults.info("SSM parameters, and so on.");
    return;
  }
  const data_out = [[chalk31.green("#"), chalk31.green("Key"), chalk31.green("Value")]];
  for (const [i3, key] of keys) {
    const jsonWithoutNewlines = JSON.stringify(context.all[key], void 0, 2).replace(/\s+/g, " ");
    data_out.push([i3, key, jsonWithoutNewlines]);
  }
  await ioHelper.defaults.info("Context found in %s:", chalk31.blue(PROJECT_CONFIG));
  await ioHelper.defaults.info("");
  await ioHelper.defaults.info(renderTable(data_out, process.stdout.columns));
  await ioHelper.defaults.info(`Run ${chalk31.blue("cdk context --reset KEY_OR_NUMBER")} to remove a context key. It will be refreshed on the next CDK synthesis run.`);
}
async function invalidateContext(ioHelper, context, key, force) {
  const i3 = parseInt(key, 10);
  if (`${i3}` === key) {
    key = keyByNumber(context, i3);
  }
  if (context.has(key)) {
    context.unset(key);
    if (!context.has(key)) {
      await ioHelper.defaults.info("Context value %s reset. It will be refreshed on next synthesis", chalk31.blue(key));
      return;
    }
    await ioHelper.defaults.error("Only context values specified in %s can be reset through the CLI", chalk31.blue(PROJECT_CONTEXT));
    if (!force) {
      throw new import_toolkit_lib17.ToolkitError(`Cannot reset readonly context value with key: ${key}`);
    }
  }
  const matches = keysByExpression(context, key);
  if (matches.length > 0) {
    matches.forEach((match4) => {
      context.unset(match4);
    });
    const { unset, readonly } = getUnsetAndReadonly(context, matches);
    await printUnset(ioHelper, unset);
    await printReadonly(ioHelper, readonly);
    if (!force && unset.length === 0) {
      throw new import_toolkit_lib17.ToolkitError("None of the matched context values could be reset");
    }
    return;
  }
  if (!force) {
    throw new import_toolkit_lib17.ToolkitError(`No context value matching key: ${key}`);
  }
}
async function printUnset(ioHelper, unset) {
  if (unset.length === 0) return;
  await ioHelper.defaults.info("The following matched context values reset. They will be refreshed on next synthesis");
  for (const match4 of unset) {
    await ioHelper.defaults.info("  %s", match4);
  }
}
async function printReadonly(ioHelper, readonly) {
  if (readonly.length === 0) return;
  await ioHelper.defaults.warn("The following matched context values could not be reset through the CLI");
  for (const match4 of readonly) {
    await ioHelper.defaults.info("  %s", match4);
  }
  await ioHelper.defaults.info("");
  await ioHelper.defaults.info("This usually means they are configured in %s or %s", chalk31.blue(PROJECT_CONFIG), chalk31.blue(USER_DEFAULTS));
}
function keysByExpression(context, expression) {
  return context.keys.filter(minimatch3.filter(expression));
}
function getUnsetAndReadonly(context, matches) {
  return matches.reduce((acc, match4) => {
    if (context.has(match4)) {
      acc.readonly.push(match4);
    } else {
      acc.unset.push(match4);
    }
    return acc;
  }, { unset: [], readonly: [] });
}
function keyByNumber(context, n3) {
  for (const [i3, key] of contextKeys(context)) {
    if (n3 === i3) {
      return key;
    }
  }
  throw new import_toolkit_lib17.ToolkitError(`No context key with number: ${n3}`);
}
function contextKeys(context) {
  const keys = context.keys;
  keys.sort();
  return enumerate1(keys);
}
function enumerate1(xs) {
  const ret = new Array();
  let i3 = 1;
  for (const x3 of xs) {
    ret.push([i3, x3]);
    i3 += 1;
  }
  return ret;
}
var import_toolkit_lib17, chalk31;
var init_context5 = __esm({
  "lib/commands/context.ts"() {
    "use strict";
    import_toolkit_lib17 = __toESM(require_lib12());
    chalk31 = __toESM(require_source());
    init_esm11();
    init_display_version();
    init_tables();
    init_user_configuration();
    __name(contextHandler, "contextHandler");
    __name(listContext, "listContext");
    __name(invalidateContext, "invalidateContext");
    __name(printUnset, "printUnset");
    __name(printReadonly, "printReadonly");
    __name(keysByExpression, "keysByExpression");
    __name(getUnsetAndReadonly, "getUnsetAndReadonly");
    __name(keyByNumber, "keyByNumber");
    __name(contextKeys, "contextKeys");
    __name(enumerate1, "enumerate1");
  }
});

// lib/commands/docs.ts
async function docs(options) {
  const ioHelper = options.ioHelper;
  const url = "https://docs.aws.amazon.com/cdk/api/v2/";
  await ioHelper.defaults.info(chalk32.green(url));
  const browserCommand = options.browser.replace(/%u/g, url);
  await ioHelper.defaults.debug(`Opening documentation ${chalk32.green(browserCommand)}`);
  const exec5 = (0, import_node_util6.promisify)(childProcess3.exec);
  try {
    const { stdout: stdout2, stderr: stderr2 } = await exec5(browserCommand);
    if (stdout2) {
      await ioHelper.defaults.debug(stdout2);
    }
    if (stderr2) {
      await ioHelper.defaults.warn(stderr2);
    }
  } catch (err) {
    const e3 = err;
    await ioHelper.defaults.debug(`An error occurred when trying to open a browser: ${e3.stack || e3.message}`);
  }
  return 0;
}
var childProcess3, import_node_util6, chalk32, command, describe, aliases;
var init_docs = __esm({
  "lib/commands/docs.ts"() {
    "use strict";
    childProcess3 = __toESM(require("child_process"));
    import_node_util6 = require("node:util");
    chalk32 = __toESM(require_source());
    command = "docs";
    describe = "Opens the reference documentation in a browser";
    aliases = ["doc"];
    __name(docs, "docs");
  }
});

// lib/commands/doctor.ts
async function doctor({ ioHelper }) {
  let exitStatus = 0;
  for (const verification of verifications) {
    if (!await verification(ioHelper)) {
      exitStatus = -1;
    }
  }
  await displayVersionMessage(ioHelper);
  return exitStatus;
}
async function displayVersionInformation(ioHelper) {
  await ioHelper.defaults.info(`\u2139\uFE0F CDK Version: ${chalk33.green(versionWithBuild())}`);
  return true;
}
async function displayAwsEnvironmentVariables(ioHelper) {
  const keys = Object.keys(process2.env).filter((s3) => s3.startsWith("AWS_"));
  if (keys.length === 0) {
    await ioHelper.defaults.info("\u2139\uFE0F No AWS environment variables");
    return true;
  }
  await ioHelper.defaults.info("\u2139\uFE0F AWS environment variables:");
  for (const key of keys) {
    await ioHelper.defaults.info(`  - ${chalk33.blue(key)} = ${chalk33.green(anonymizeAwsVariable(key, process2.env[key]))}`);
  }
  return true;
}
async function displayCdkEnvironmentVariables(ioHelper) {
  const keys = Object.keys(process2.env).filter((s3) => s3.startsWith("CDK_"));
  if (keys.length === 0) {
    await ioHelper.defaults.info("\u2139\uFE0F No CDK environment variables");
    return true;
  }
  await ioHelper.defaults.info("\u2139\uFE0F CDK environment variables:");
  let healthy = true;
  for (const key of keys.sort()) {
    if (key === cxapi11.CONTEXT_ENV || key === cxapi11.CONTEXT_OVERFLOW_LOCATION_ENV || key === cxapi11.OUTDIR_ENV) {
      await ioHelper.defaults.info(`  - ${chalk33.red(key)} = ${chalk33.green(process2.env[key])} (\u26A0\uFE0F reserved for use by the CDK toolkit)`);
      healthy = false;
    } else {
      await ioHelper.defaults.info(`  - ${chalk33.blue(key)} = ${chalk33.green(process2.env[key])}`);
    }
  }
  return healthy;
}
function anonymizeAwsVariable(name, value) {
  if (name === "AWS_ACCESS_KEY_ID") {
    return value.slice(0, 4) + "<redacted>";
  }
  if (name === "AWS_SECRET_ACCESS_KEY" || name === "AWS_SESSION_TOKEN" || name === "AWS_SECURITY_TOKEN") {
    return "<redacted>";
  }
  return value;
}
var process2, cxapi11, chalk33, verifications;
var init_doctor = __esm({
  "lib/commands/doctor.ts"() {
    "use strict";
    process2 = __toESM(require("process"));
    cxapi11 = __toESM(require_lib3());
    chalk33 = __toESM(require_source());
    init_display_version();
    init_version2();
    __name(doctor, "doctor");
    verifications = [
      displayVersionInformation,
      displayAwsEnvironmentVariables,
      displayCdkEnvironmentVariables
    ];
    __name(displayVersionInformation, "displayVersionInformation");
    __name(displayAwsEnvironmentVariables, "displayAwsEnvironmentVariables");
    __name(displayCdkEnvironmentVariables, "displayCdkEnvironmentVariables");
    __name(anonymizeAwsVariable, "anonymizeAwsVariable");
  }
});

// ../../node_modules/ansi-colors/symbols.js
var require_symbols = __commonJS({
  "../../node_modules/ansi-colors/symbols.js"(exports2, module2) {
    "use strict";
    var isHyper = typeof process !== "undefined" && process.env.TERM_PROGRAM === "Hyper";
    var isWindows = typeof process !== "undefined" && process.platform === "win32";
    var isLinux = typeof process !== "undefined" && process.platform === "linux";
    var common = {
      ballotDisabled: "\u2612",
      ballotOff: "\u2610",
      ballotOn: "\u2611",
      bullet: "\u2022",
      bulletWhite: "\u25E6",
      fullBlock: "\u2588",
      heart: "\u2764",
      identicalTo: "\u2261",
      line: "\u2500",
      mark: "\u203B",
      middot: "\xB7",
      minus: "\uFF0D",
      multiplication: "\xD7",
      obelus: "\xF7",
      pencilDownRight: "\u270E",
      pencilRight: "\u270F",
      pencilUpRight: "\u2710",
      percent: "%",
      pilcrow2: "\u2761",
      pilcrow: "\xB6",
      plusMinus: "\xB1",
      question: "?",
      section: "\xA7",
      starsOff: "\u2606",
      starsOn: "\u2605",
      upDownArrow: "\u2195"
    };
    var windows = Object.assign({}, common, {
      check: "\u221A",
      cross: "\xD7",
      ellipsisLarge: "...",
      ellipsis: "...",
      info: "i",
      questionSmall: "?",
      pointer: ">",
      pointerSmall: "\xBB",
      radioOff: "( )",
      radioOn: "(*)",
      warning: "\u203C"
    });
    var other = Object.assign({}, common, {
      ballotCross: "\u2718",
      check: "\u2714",
      cross: "\u2716",
      ellipsisLarge: "\u22EF",
      ellipsis: "\u2026",
      info: "\u2139",
      questionFull: "\uFF1F",
      questionSmall: "\uFE56",
      pointer: isLinux ? "\u25B8" : "\u276F",
      pointerSmall: isLinux ? "\u2023" : "\u203A",
      radioOff: "\u25EF",
      radioOn: "\u25C9",
      warning: "\u26A0"
    });
    module2.exports = isWindows && !isHyper ? windows : other;
    Reflect.defineProperty(module2.exports, "common", { enumerable: false, value: common });
    Reflect.defineProperty(module2.exports, "windows", { enumerable: false, value: windows });
    Reflect.defineProperty(module2.exports, "other", { enumerable: false, value: other });
  }
});

// ../../node_modules/ansi-colors/index.js
var require_ansi_colors = __commonJS({
  "../../node_modules/ansi-colors/index.js"(exports2, module2) {
    "use strict";
    var isObject3 = /* @__PURE__ */ __name((val) => val !== null && typeof val === "object" && !Array.isArray(val), "isObject");
    var ANSI_REGEX = /[\u001b\u009b][[\]#;?()]*(?:(?:(?:[^\W_]*;?[^\W_]*)\u0007)|(?:(?:[0-9]{1,4}(;[0-9]{0,4})*)?[~0-9=<>cf-nqrtyA-PRZ]))/g;
    var hasColor = /* @__PURE__ */ __name(() => {
      if (typeof process !== "undefined") {
        return process.env.FORCE_COLOR !== "0";
      }
      return false;
    }, "hasColor");
    var create = /* @__PURE__ */ __name(() => {
      const colors = {
        enabled: hasColor(),
        visible: true,
        styles: {},
        keys: {}
      };
      const ansi = /* @__PURE__ */ __name((style2) => {
        let open = style2.open = `\x1B[${style2.codes[0]}m`;
        let close = style2.close = `\x1B[${style2.codes[1]}m`;
        let regex = style2.regex = new RegExp(`\\u001b\\[${style2.codes[1]}m`, "g");
        style2.wrap = (input, newline) => {
          if (input.includes(close)) input = input.replace(regex, close + open);
          let output = open + input + close;
          return newline ? output.replace(/\r*\n/g, `${close}$&${open}`) : output;
        };
        return style2;
      }, "ansi");
      const wrap = /* @__PURE__ */ __name((style2, input, newline) => {
        return typeof style2 === "function" ? style2(input) : style2.wrap(input, newline);
      }, "wrap");
      const style = /* @__PURE__ */ __name((input, stack) => {
        if (input === "" || input == null) return "";
        if (colors.enabled === false) return input;
        if (colors.visible === false) return "";
        let str = "" + input;
        let nl = str.includes("\n");
        let n3 = stack.length;
        if (n3 > 0 && stack.includes("unstyle")) {
          stack = [.../* @__PURE__ */ new Set(["unstyle", ...stack])].reverse();
        }
        while (n3-- > 0) str = wrap(colors.styles[stack[n3]], str, nl);
        return str;
      }, "style");
      const define2 = /* @__PURE__ */ __name((name, codes, type) => {
        colors.styles[name] = ansi({ name, codes });
        let keys = colors.keys[type] || (colors.keys[type] = []);
        keys.push(name);
        Reflect.defineProperty(colors, name, {
          configurable: true,
          enumerable: true,
          set(value) {
            colors.alias(name, value);
          },
          get() {
            let color = /* @__PURE__ */ __name((input) => style(input, color.stack), "color");
            Reflect.setPrototypeOf(color, colors);
            color.stack = this.stack ? this.stack.concat(name) : [name];
            return color;
          }
        });
      }, "define");
      define2("reset", [0, 0], "modifier");
      define2("bold", [1, 22], "modifier");
      define2("dim", [2, 22], "modifier");
      define2("italic", [3, 23], "modifier");
      define2("underline", [4, 24], "modifier");
      define2("inverse", [7, 27], "modifier");
      define2("hidden", [8, 28], "modifier");
      define2("strikethrough", [9, 29], "modifier");
      define2("black", [30, 39], "color");
      define2("red", [31, 39], "color");
      define2("green", [32, 39], "color");
      define2("yellow", [33, 39], "color");
      define2("blue", [34, 39], "color");
      define2("magenta", [35, 39], "color");
      define2("cyan", [36, 39], "color");
      define2("white", [37, 39], "color");
      define2("gray", [90, 39], "color");
      define2("grey", [90, 39], "color");
      define2("bgBlack", [40, 49], "bg");
      define2("bgRed", [41, 49], "bg");
      define2("bgGreen", [42, 49], "bg");
      define2("bgYellow", [43, 49], "bg");
      define2("bgBlue", [44, 49], "bg");
      define2("bgMagenta", [45, 49], "bg");
      define2("bgCyan", [46, 49], "bg");
      define2("bgWhite", [47, 49], "bg");
      define2("blackBright", [90, 39], "bright");
      define2("redBright", [91, 39], "bright");
      define2("greenBright", [92, 39], "bright");
      define2("yellowBright", [93, 39], "bright");
      define2("blueBright", [94, 39], "bright");
      define2("magentaBright", [95, 39], "bright");
      define2("cyanBright", [96, 39], "bright");
      define2("whiteBright", [97, 39], "bright");
      define2("bgBlackBright", [100, 49], "bgBright");
      define2("bgRedBright", [101, 49], "bgBright");
      define2("bgGreenBright", [102, 49], "bgBright");
      define2("bgYellowBright", [103, 49], "bgBright");
      define2("bgBlueBright", [104, 49], "bgBright");
      define2("bgMagentaBright", [105, 49], "bgBright");
      define2("bgCyanBright", [106, 49], "bgBright");
      define2("bgWhiteBright", [107, 49], "bgBright");
      colors.ansiRegex = ANSI_REGEX;
      colors.hasColor = colors.hasAnsi = (str) => {
        colors.ansiRegex.lastIndex = 0;
        return typeof str === "string" && str !== "" && colors.ansiRegex.test(str);
      };
      colors.alias = (name, color) => {
        let fn = typeof color === "string" ? colors[color] : color;
        if (typeof fn !== "function") {
          throw new TypeError("Expected alias to be the name of an existing color (string) or a function");
        }
        if (!fn.stack) {
          Reflect.defineProperty(fn, "name", { value: name });
          colors.styles[name] = fn;
          fn.stack = [name];
        }
        Reflect.defineProperty(colors, name, {
          configurable: true,
          enumerable: true,
          set(value) {
            colors.alias(name, value);
          },
          get() {
            let color2 = /* @__PURE__ */ __name((input) => style(input, color2.stack), "color");
            Reflect.setPrototypeOf(color2, colors);
            color2.stack = this.stack ? this.stack.concat(fn.stack) : fn.stack;
            return color2;
          }
        });
      };
      colors.theme = (custom) => {
        if (!isObject3(custom)) throw new TypeError("Expected theme to be an object");
        for (let name of Object.keys(custom)) {
          colors.alias(name, custom[name]);
        }
        return colors;
      };
      colors.alias("unstyle", (str) => {
        if (typeof str === "string" && str !== "") {
          colors.ansiRegex.lastIndex = 0;
          return str.replace(colors.ansiRegex, "");
        }
        return "";
      });
      colors.alias("noop", (str) => str);
      colors.none = colors.clear = colors.noop;
      colors.stripColor = colors.unstyle;
      colors.symbols = require_symbols();
      colors.define = define2;
      return colors;
    }, "create");
    module2.exports = create();
    module2.exports.create = create;
  }
});

// ../../node_modules/enquirer/lib/utils.js
var require_utils9 = __commonJS({
  "../../node_modules/enquirer/lib/utils.js"(exports2) {
    "use strict";
    var toString = Object.prototype.toString;
    var colors = require_ansi_colors();
    var onExitCalled = false;
    var onExitCallbacks = /* @__PURE__ */ new Set();
    var complements = {
      "yellow": "blue",
      "cyan": "red",
      "green": "magenta",
      "black": "white",
      "blue": "yellow",
      "red": "cyan",
      "magenta": "green",
      "white": "black"
    };
    exports2.longest = (arr, prop) => {
      return arr.reduce((a3, v6) => Math.max(a3, prop ? v6[prop].length : v6.length), 0);
    };
    exports2.hasColor = (str) => !!str && colors.hasColor(str);
    var isObject3 = exports2.isObject = (val) => {
      return val !== null && typeof val === "object" && !Array.isArray(val);
    };
    exports2.nativeType = (val) => {
      return toString.call(val).slice(8, -1).toLowerCase().replace(/\s/g, "");
    };
    exports2.isAsyncFn = (val) => {
      return exports2.nativeType(val) === "asyncfunction";
    };
    exports2.isPrimitive = (val) => {
      return val != null && typeof val !== "object" && typeof val !== "function";
    };
    exports2.resolve = (context, value, ...rest) => {
      if (typeof value === "function") {
        return value.call(context, ...rest);
      }
      return value;
    };
    exports2.scrollDown = (choices = []) => [...choices.slice(1), choices[0]];
    exports2.scrollUp = (choices = []) => [choices.pop(), ...choices];
    exports2.reorder = (arr = []) => {
      let res = arr.slice();
      res.sort((a3, b3) => {
        if (a3.index > b3.index) return 1;
        if (a3.index < b3.index) return -1;
        return 0;
      });
      return res;
    };
    exports2.swap = (arr, index, pos) => {
      let len = arr.length;
      let idx = pos === len ? 0 : pos < 0 ? len - 1 : pos;
      let choice = arr[index];
      arr[index] = arr[idx];
      arr[idx] = choice;
    };
    exports2.width = (stream3, fallback = 80) => {
      let columns = stream3 && stream3.columns ? stream3.columns : fallback;
      if (stream3 && typeof stream3.getWindowSize === "function") {
        columns = stream3.getWindowSize()[0];
      }
      if (process.platform === "win32") {
        return columns - 1;
      }
      return columns;
    };
    exports2.height = (stream3, fallback = 20) => {
      let rows = stream3 && stream3.rows ? stream3.rows : fallback;
      if (stream3 && typeof stream3.getWindowSize === "function") {
        rows = stream3.getWindowSize()[1];
      }
      return rows;
    };
    exports2.wordWrap = (str, options = {}) => {
      if (!str) return str;
      if (typeof options === "number") {
        options = { width: options };
      }
      let { indent = "", newline = "\n" + indent, width = 80 } = options;
      let spaces = (newline + indent).match(/[^\S\n]/g) || [];
      width -= spaces.length;
      let source = `.{1,${width}}([\\s\\u200B]+|$)|[^\\s\\u200B]+?([\\s\\u200B]+|$)`;
      let output = str.trim();
      let regex = new RegExp(source, "g");
      let lines = output.match(regex) || [];
      lines = lines.map((line) => line.replace(/\n$/, ""));
      if (options.padEnd) lines = lines.map((line) => line.padEnd(width, " "));
      if (options.padStart) lines = lines.map((line) => line.padStart(width, " "));
      return indent + lines.join(newline);
    };
    exports2.unmute = (color) => {
      let name = color.stack.find((n3) => colors.keys.color.includes(n3));
      if (name) {
        return colors[name];
      }
      let bg = color.stack.find((n3) => n3.slice(2) === "bg");
      if (bg) {
        return colors[name.slice(2)];
      }
      return (str) => str;
    };
    exports2.pascal = (str) => str ? str[0].toUpperCase() + str.slice(1) : "";
    exports2.inverse = (color) => {
      if (!color || !color.stack) return color;
      let name = color.stack.find((n3) => colors.keys.color.includes(n3));
      if (name) {
        let col = colors["bg" + exports2.pascal(name)];
        return col ? col.black : color;
      }
      let bg = color.stack.find((n3) => n3.slice(0, 2) === "bg");
      if (bg) {
        return colors[bg.slice(2).toLowerCase()] || color;
      }
      return colors.none;
    };
    exports2.complement = (color) => {
      if (!color || !color.stack) return color;
      let name = color.stack.find((n3) => colors.keys.color.includes(n3));
      let bg = color.stack.find((n3) => n3.slice(0, 2) === "bg");
      if (name && !bg) {
        return colors[complements[name] || name];
      }
      if (bg) {
        let lower = bg.slice(2).toLowerCase();
        let comp = complements[lower];
        if (!comp) return color;
        return colors["bg" + exports2.pascal(comp)] || color;
      }
      return colors.none;
    };
    exports2.meridiem = (date) => {
      let hours = date.getHours();
      let minutes = date.getMinutes();
      let ampm = hours >= 12 ? "pm" : "am";
      hours = hours % 12;
      let hrs = hours === 0 ? 12 : hours;
      let min = minutes < 10 ? "0" + minutes : minutes;
      return hrs + ":" + min + " " + ampm;
    };
    exports2.set = (obj = {}, prop = "", val) => {
      return prop.split(".").reduce((acc, k3, i3, arr) => {
        let value = arr.length - 1 > i3 ? acc[k3] || {} : val;
        if (!exports2.isObject(value) && i3 < arr.length - 1) value = {};
        return acc[k3] = value;
      }, obj);
    };
    exports2.get = (obj = {}, prop = "", fallback) => {
      let value = obj[prop] == null ? prop.split(".").reduce((acc, k3) => acc && acc[k3], obj) : obj[prop];
      return value == null ? fallback : value;
    };
    exports2.mixin = (target, b3) => {
      if (!isObject3(target)) return b3;
      if (!isObject3(b3)) return target;
      for (let key of Object.keys(b3)) {
        let desc = Object.getOwnPropertyDescriptor(b3, key);
        if (hasOwnProperty.call(desc, "value")) {
          if (hasOwnProperty.call(target, key) && isObject3(desc.value)) {
            let existing = Object.getOwnPropertyDescriptor(target, key);
            if (isObject3(existing.value) && existing.value !== desc.value) {
              target[key] = exports2.merge({}, target[key], b3[key]);
            } else {
              Reflect.defineProperty(target, key, desc);
            }
          } else {
            Reflect.defineProperty(target, key, desc);
          }
        } else {
          Reflect.defineProperty(target, key, desc);
        }
      }
      return target;
    };
    exports2.merge = (...args) => {
      let target = {};
      for (let ele of args) exports2.mixin(target, ele);
      return target;
    };
    exports2.mixinEmitter = (obj, emitter) => {
      let proto = emitter.constructor.prototype;
      for (let key of Object.keys(proto)) {
        let val = proto[key];
        if (typeof val === "function") {
          exports2.define(obj, key, val.bind(emitter));
        } else {
          exports2.define(obj, key, val);
        }
      }
    };
    var onExit = /* @__PURE__ */ __name((quit, code) => {
      if (onExitCalled) return;
      onExitCalled = true;
      onExitCallbacks.forEach((fn) => fn());
      if (quit === true) {
        process.exit(128 + code);
      }
    }, "onExit");
    var onSigTerm = onExit.bind(null, true, 15);
    var onSigInt = onExit.bind(null, true, 2);
    exports2.onExit = (callback) => {
      if (onExitCallbacks.size === 0) {
        process.once("SIGTERM", onSigTerm);
        process.once("SIGINT", onSigInt);
        process.once("exit", onExit);
      }
      onExitCallbacks.add(callback);
      return () => {
        onExitCallbacks.delete(callback);
        if (onExitCallbacks.size === 0) {
          process.off("SIGTERM", onSigTerm);
          process.off("SIGINT", onSigInt);
          process.off("exit", onExit);
        }
      };
    };
    exports2.define = (obj, key, value) => {
      Reflect.defineProperty(obj, key, { value });
    };
    exports2.defineExport = (obj, key, fn) => {
      let custom;
      Reflect.defineProperty(obj, key, {
        enumerable: true,
        configurable: true,
        set(val) {
          custom = val;
        },
        get() {
          return custom ? custom() : fn();
        }
      });
    };
  }
});

// ../../node_modules/enquirer/lib/combos.js
var require_combos = __commonJS({
  "../../node_modules/enquirer/lib/combos.js"(exports2) {
    "use strict";
    exports2.ctrl = {
      a: "first",
      b: "backward",
      c: "cancel",
      d: "deleteForward",
      e: "last",
      f: "forward",
      g: "reset",
      i: "tab",
      k: "cutForward",
      l: "reset",
      n: "newItem",
      m: "cancel",
      j: "submit",
      p: "search",
      r: "remove",
      s: "save",
      u: "undo",
      w: "cutLeft",
      x: "toggleCursor",
      v: "paste"
    };
    exports2.shift = {
      up: "shiftUp",
      down: "shiftDown",
      left: "shiftLeft",
      right: "shiftRight",
      tab: "prev"
    };
    exports2.fn = {
      up: "pageUp",
      down: "pageDown",
      left: "pageLeft",
      right: "pageRight",
      delete: "deleteForward"
    };
    exports2.option = {
      b: "backward",
      f: "forward",
      d: "cutRight",
      left: "cutLeft",
      up: "altUp",
      down: "altDown"
    };
    exports2.keys = {
      pageup: "pageUp",
      // <fn>+<up> (mac), <Page Up> (windows)
      pagedown: "pageDown",
      // <fn>+<down> (mac), <Page Down> (windows)
      home: "home",
      // <fn>+<left> (mac), <home> (windows)
      end: "end",
      // <fn>+<right> (mac), <end> (windows)
      cancel: "cancel",
      delete: "deleteForward",
      backspace: "delete",
      down: "down",
      enter: "submit",
      escape: "cancel",
      left: "left",
      space: "space",
      number: "number",
      return: "submit",
      right: "right",
      tab: "next",
      up: "up"
    };
  }
});

// ../../node_modules/enquirer/lib/queue.js
var require_queue = __commonJS({
  "../../node_modules/enquirer/lib/queue.js"(exports2, module2) {
    "use strict";
    module2.exports = class Queue {
      static {
        __name(this, "Queue");
      }
      _queue = [];
      _executing = false;
      _jobRunner = null;
      constructor(jobRunner) {
        this._jobRunner = jobRunner;
      }
      enqueue = /* @__PURE__ */ __name((...args) => {
        this._queue.push(args);
        this._dequeue();
      }, "enqueue");
      destroy() {
        this._queue.length = 0;
        this._jobRunner = null;
      }
      _dequeue() {
        if (this._executing || !this._queue.length) return;
        this._executing = true;
        this._jobRunner(...this._queue.shift());
        setTimeout(() => {
          this._executing = false;
          this._dequeue();
        });
      }
    };
  }
});

// ../../node_modules/enquirer/lib/keypress.js
var require_keypress = __commonJS({
  "../../node_modules/enquirer/lib/keypress.js"(exports2, module2) {
    "use strict";
    var readline = require("readline");
    var combos = require_combos();
    var Queue = require_queue();
    var metaKeyCodeRe = /^(?:\x1b)([a-zA-Z0-9])$/;
    var fnKeyRe = /^(?:\x1b+)(O|N|\[|\[\[)(?:(\d+)(?:;(\d+))?([~^$])|(?:1;)?(\d+)?([a-zA-Z]))/;
    var keyName = {
      /* xterm/gnome ESC O letter */
      "OP": "f1",
      "OQ": "f2",
      "OR": "f3",
      "OS": "f4",
      /* xterm/rxvt ESC [ number ~ */
      "[11~": "f1",
      "[12~": "f2",
      "[13~": "f3",
      "[14~": "f4",
      /* from Cygwin and used in libuv */
      "[[A": "f1",
      "[[B": "f2",
      "[[C": "f3",
      "[[D": "f4",
      "[[E": "f5",
      /* common */
      "[15~": "f5",
      "[17~": "f6",
      "[18~": "f7",
      "[19~": "f8",
      "[20~": "f9",
      "[21~": "f10",
      "[23~": "f11",
      "[24~": "f12",
      /* xterm ESC [ letter */
      "[A": "up",
      "[B": "down",
      "[C": "right",
      "[D": "left",
      "[E": "clear",
      "[F": "end",
      "[H": "home",
      /* xterm/gnome ESC O letter */
      "OA": "up",
      "OB": "down",
      "OC": "right",
      "OD": "left",
      "OE": "clear",
      "OF": "end",
      "OH": "home",
      /* xterm/rxvt ESC [ number ~ */
      "[1~": "home",
      "[2~": "insert",
      "[3~": "delete",
      "[4~": "end",
      "[5~": "pageup",
      "[6~": "pagedown",
      /* putty */
      "[[5~": "pageup",
      "[[6~": "pagedown",
      /* rxvt */
      "[7~": "home",
      "[8~": "end",
      /* rxvt keys with modifiers */
      "[a": "up",
      "[b": "down",
      "[c": "right",
      "[d": "left",
      "[e": "clear",
      "[2$": "insert",
      "[3$": "delete",
      "[5$": "pageup",
      "[6$": "pagedown",
      "[7$": "home",
      "[8$": "end",
      "Oa": "up",
      "Ob": "down",
      "Oc": "right",
      "Od": "left",
      "Oe": "clear",
      "[2^": "insert",
      "[3^": "delete",
      "[5^": "pageup",
      "[6^": "pagedown",
      "[7^": "home",
      "[8^": "end",
      /* misc. */
      "[Z": "tab"
    };
    function isShiftKey(code) {
      return ["[a", "[b", "[c", "[d", "[e", "[2$", "[3$", "[5$", "[6$", "[7$", "[8$", "[Z"].includes(code);
    }
    __name(isShiftKey, "isShiftKey");
    function isCtrlKey(code) {
      return ["Oa", "Ob", "Oc", "Od", "Oe", "[2^", "[3^", "[5^", "[6^", "[7^", "[8^"].includes(code);
    }
    __name(isCtrlKey, "isCtrlKey");
    var keypress = /* @__PURE__ */ __name((s3 = "", event = {}) => {
      let parts;
      let key = {
        name: event.name,
        ctrl: false,
        meta: false,
        shift: false,
        option: false,
        sequence: s3,
        raw: s3,
        ...event
      };
      if (Buffer.isBuffer(s3)) {
        if (s3[0] > 127 && s3[1] === void 0) {
          s3[0] -= 128;
          s3 = "\x1B" + String(s3);
        } else {
          s3 = String(s3);
        }
      } else if (s3 !== void 0 && typeof s3 !== "string") {
        s3 = String(s3);
      } else if (!s3) {
        s3 = key.sequence || "";
      }
      key.sequence = key.sequence || s3 || key.name;
      if (s3 === "\r") {
        key.raw = void 0;
        key.name = "return";
      } else if (s3 === "\n") {
        key.name = "enter";
      } else if (s3 === "	") {
        key.name = "tab";
      } else if (s3 === "\b" || s3 === "\x7F" || s3 === "\x1B\x7F" || s3 === "\x1B\b") {
        key.name = "backspace";
        key.meta = s3.charAt(0) === "\x1B";
      } else if (s3 === "\x1B" || s3 === "\x1B\x1B") {
        key.name = "escape";
        key.meta = s3.length === 2;
      } else if (s3 === " " || s3 === "\x1B ") {
        key.name = "space";
        key.meta = s3.length === 2;
      } else if (s3 <= "") {
        key.name = String.fromCharCode(s3.charCodeAt(0) + "a".charCodeAt(0) - 1);
        key.ctrl = true;
      } else if (s3.length === 1 && s3 >= "0" && s3 <= "9") {
        key.name = "number";
      } else if (s3.length === 1 && s3 >= "a" && s3 <= "z") {
        key.name = s3;
      } else if (s3.length === 1 && s3 >= "A" && s3 <= "Z") {
        key.name = s3.toLowerCase();
        key.shift = true;
      } else if (parts = metaKeyCodeRe.exec(s3)) {
        key.meta = true;
        key.shift = /^[A-Z]$/.test(parts[1]);
      } else if (parts = fnKeyRe.exec(s3)) {
        let segs = [...s3];
        if (segs[0] === "\x1B" && segs[1] === "\x1B") {
          key.option = true;
        }
        let code = [parts[1], parts[2], parts[4], parts[6]].filter(Boolean).join("");
        let modifier = (parts[3] || parts[5] || 1) - 1;
        key.ctrl = !!(modifier & 4);
        key.meta = !!(modifier & 10);
        key.shift = !!(modifier & 1);
        key.code = code;
        key.name = keyName[code];
        key.shift = isShiftKey(code) || key.shift;
        key.ctrl = isCtrlKey(code) || key.ctrl;
      }
      return key;
    }, "keypress");
    keypress.listen = (options = {}, onKeypress) => {
      let { stdin } = options;
      if (!stdin || stdin !== process.stdin && !stdin.isTTY) {
        throw new Error("Invalid stream passed");
      }
      let rl = readline.createInterface({ terminal: true, input: stdin });
      readline.emitKeypressEvents(stdin, rl);
      const queue = new Queue((buf, key) => onKeypress(buf, keypress(buf, key), rl));
      let isRaw = stdin.isRaw;
      if (stdin.isTTY) stdin.setRawMode(true);
      stdin.on("keypress", queue.enqueue);
      rl.resume();
      let off = /* @__PURE__ */ __name(() => {
        if (stdin.isTTY) stdin.setRawMode(isRaw);
        stdin.removeListener("keypress", queue.enqueue);
        queue.destroy();
        rl.pause();
        rl.close();
      }, "off");
      return off;
    };
    keypress.action = (buf, key, customActions) => {
      let obj = { ...combos, ...customActions };
      if (key.ctrl) {
        key.action = obj.ctrl[key.name];
        return key;
      }
      if (key.option && obj.option) {
        key.action = obj.option[key.name];
        return key;
      }
      if (key.shift) {
        key.action = obj.shift[key.name];
        return key;
      }
      key.action = obj.keys[key.name];
      return key;
    };
    module2.exports = keypress;
  }
});

// ../../node_modules/enquirer/lib/timer.js
var require_timer = __commonJS({
  "../../node_modules/enquirer/lib/timer.js"(exports2, module2) {
    "use strict";
    module2.exports = (prompt2) => {
      prompt2.timers = prompt2.timers || {};
      let timers = prompt2.options.timers;
      if (!timers) return;
      for (let key of Object.keys(timers)) {
        let opts = timers[key];
        if (typeof opts === "number") {
          opts = { interval: opts };
        }
        create(prompt2, key, opts);
      }
    };
    function create(prompt2, name, options = {}) {
      let timer = prompt2.timers[name] = { name, start: Date.now(), ms: 0, tick: 0 };
      let ms = options.interval || 120;
      timer.frames = options.frames || [];
      timer.loading = true;
      let interval = setInterval(() => {
        timer.ms = Date.now() - timer.start;
        timer.tick++;
        prompt2.render();
      }, ms);
      timer.stop = () => {
        timer.loading = false;
        clearInterval(interval);
      };
      Reflect.defineProperty(timer, "interval", { value: interval });
      prompt2.once("close", () => timer.stop());
      return timer.stop;
    }
    __name(create, "create");
  }
});

// ../../node_modules/enquirer/lib/state.js
var require_state5 = __commonJS({
  "../../node_modules/enquirer/lib/state.js"(exports2, module2) {
    "use strict";
    var { define: define2, width } = require_utils9();
    var State = class {
      static {
        __name(this, "State");
      }
      constructor(prompt2) {
        let options = prompt2.options;
        define2(this, "_prompt", prompt2);
        this.type = prompt2.type;
        this.name = prompt2.name;
        this.message = "";
        this.header = "";
        this.footer = "";
        this.error = "";
        this.hint = "";
        this.input = "";
        this.cursor = 0;
        this.index = 0;
        this.lines = 0;
        this.tick = 0;
        this.prompt = "";
        this.buffer = "";
        this.width = width(options.stdout || process.stdout);
        Object.assign(this, options);
        this.name = this.name || this.message;
        this.message = this.message || this.name;
        this.symbols = prompt2.symbols;
        this.styles = prompt2.styles;
        this.required = /* @__PURE__ */ new Set();
        this.cancelled = false;
        this.submitted = false;
      }
      clone() {
        let state2 = { ...this };
        state2.status = this.status;
        state2.buffer = Buffer.from(state2.buffer);
        delete state2.clone;
        return state2;
      }
      set color(val) {
        this._color = val;
      }
      get color() {
        let styles = this.prompt.styles;
        if (this.cancelled) return styles.cancelled;
        if (this.submitted) return styles.submitted;
        let color = this._color || styles[this.status];
        return typeof color === "function" ? color : styles.pending;
      }
      set loading(value) {
        this._loading = value;
      }
      get loading() {
        if (typeof this._loading === "boolean") return this._loading;
        if (this.loadingChoices) return "choices";
        return false;
      }
      get status() {
        if (this.cancelled) return "cancelled";
        if (this.submitted) return "submitted";
        return "pending";
      }
    };
    module2.exports = State;
  }
});

// ../../node_modules/enquirer/lib/styles.js
var require_styles = __commonJS({
  "../../node_modules/enquirer/lib/styles.js"(exports2, module2) {
    "use strict";
    var utils = require_utils9();
    var colors = require_ansi_colors();
    var styles = {
      default: colors.noop,
      noop: colors.noop,
      /**
       * Modifiers
       */
      set inverse(custom) {
        this._inverse = custom;
      },
      get inverse() {
        return this._inverse || utils.inverse(this.primary);
      },
      set complement(custom) {
        this._complement = custom;
      },
      get complement() {
        return this._complement || utils.complement(this.primary);
      },
      /**
       * Main color
       */
      primary: colors.cyan,
      /**
       * Main palette
       */
      success: colors.green,
      danger: colors.magenta,
      strong: colors.bold,
      warning: colors.yellow,
      muted: colors.dim,
      disabled: colors.gray,
      dark: colors.dim.gray,
      underline: colors.underline,
      set info(custom) {
        this._info = custom;
      },
      get info() {
        return this._info || this.primary;
      },
      set em(custom) {
        this._em = custom;
      },
      get em() {
        return this._em || this.primary.underline;
      },
      set heading(custom) {
        this._heading = custom;
      },
      get heading() {
        return this._heading || this.muted.underline;
      },
      /**
       * Statuses
       */
      set pending(custom) {
        this._pending = custom;
      },
      get pending() {
        return this._pending || this.primary;
      },
      set submitted(custom) {
        this._submitted = custom;
      },
      get submitted() {
        return this._submitted || this.success;
      },
      set cancelled(custom) {
        this._cancelled = custom;
      },
      get cancelled() {
        return this._cancelled || this.danger;
      },
      /**
       * Special styling
       */
      set typing(custom) {
        this._typing = custom;
      },
      get typing() {
        return this._typing || this.dim;
      },
      set placeholder(custom) {
        this._placeholder = custom;
      },
      get placeholder() {
        return this._placeholder || this.primary.dim;
      },
      set highlight(custom) {
        this._highlight = custom;
      },
      get highlight() {
        return this._highlight || this.inverse;
      }
    };
    styles.merge = (options = {}) => {
      if (options.styles && typeof options.styles.enabled === "boolean") {
        colors.enabled = options.styles.enabled;
      }
      if (options.styles && typeof options.styles.visible === "boolean") {
        colors.visible = options.styles.visible;
      }
      let result2 = utils.merge({}, styles, options.styles);
      delete result2.merge;
      for (let key of Object.keys(colors)) {
        if (!hasOwnProperty.call(result2, key)) {
          Reflect.defineProperty(result2, key, { get: /* @__PURE__ */ __name(() => colors[key], "get") });
        }
      }
      for (let key of Object.keys(colors.styles)) {
        if (!hasOwnProperty.call(result2, key)) {
          Reflect.defineProperty(result2, key, { get: /* @__PURE__ */ __name(() => colors[key], "get") });
        }
      }
      return result2;
    };
    module2.exports = styles;
  }
});

// ../../node_modules/enquirer/lib/symbols.js
var require_symbols2 = __commonJS({
  "../../node_modules/enquirer/lib/symbols.js"(exports2, module2) {
    "use strict";
    var isWindows = process.platform === "win32";
    var colors = require_ansi_colors();
    var utils = require_utils9();
    var symbols = {
      ...colors.symbols,
      upDownDoubleArrow: "\u21D5",
      upDownDoubleArrow2: "\u2B0D",
      upDownArrow: "\u2195",
      asterisk: "*",
      asterism: "\u2042",
      bulletWhite: "\u25E6",
      electricArrow: "\u2301",
      ellipsisLarge: "\u22EF",
      ellipsisSmall: "\u2026",
      fullBlock: "\u2588",
      identicalTo: "\u2261",
      indicator: colors.symbols.check,
      leftAngle: "\u2039",
      mark: "\u203B",
      minus: "\u2212",
      multiplication: "\xD7",
      obelus: "\xF7",
      percent: "%",
      pilcrow: "\xB6",
      pilcrow2: "\u2761",
      pencilUpRight: "\u2710",
      pencilDownRight: "\u270E",
      pencilRight: "\u270F",
      plus: "+",
      plusMinus: "\xB1",
      pointRight: "\u261E",
      rightAngle: "\u203A",
      section: "\xA7",
      hexagon: { off: "\u2B21", on: "\u2B22", disabled: "\u2B22" },
      ballot: { on: "\u2611", off: "\u2610", disabled: "\u2612" },
      stars: { on: "\u2605", off: "\u2606", disabled: "\u2606" },
      folder: { on: "\u25BC", off: "\u25B6", disabled: "\u25B6" },
      prefix: {
        pending: colors.symbols.question,
        submitted: colors.symbols.check,
        cancelled: colors.symbols.cross
      },
      separator: {
        pending: colors.symbols.pointerSmall,
        submitted: colors.symbols.middot,
        cancelled: colors.symbols.middot
      },
      radio: {
        off: isWindows ? "( )" : "\u25EF",
        on: isWindows ? "(*)" : "\u25C9",
        disabled: isWindows ? "(|)" : "\u24BE"
      },
      numbers: ["\u24EA", "\u2460", "\u2461", "\u2462", "\u2463", "\u2464", "\u2465", "\u2466", "\u2467", "\u2468", "\u2469", "\u246A", "\u246B", "\u246C", "\u246D", "\u246E", "\u246F", "\u2470", "\u2471", "\u2472", "\u2473", "\u3251", "\u3252", "\u3253", "\u3254", "\u3255", "\u3256", "\u3257", "\u3258", "\u3259", "\u325A", "\u325B", "\u325C", "\u325D", "\u325E", "\u325F", "\u32B1", "\u32B2", "\u32B3", "\u32B4", "\u32B5", "\u32B6", "\u32B7", "\u32B8", "\u32B9", "\u32BA", "\u32BB", "\u32BC", "\u32BD", "\u32BE", "\u32BF"]
    };
    symbols.merge = (options) => {
      let result2 = utils.merge({}, colors.symbols, symbols, options.symbols);
      delete result2.merge;
      return result2;
    };
    module2.exports = symbols;
  }
});

// ../../node_modules/enquirer/lib/theme.js
var require_theme = __commonJS({
  "../../node_modules/enquirer/lib/theme.js"(exports2, module2) {
    "use strict";
    var styles = require_styles();
    var symbols = require_symbols2();
    var utils = require_utils9();
    module2.exports = (prompt2) => {
      prompt2.options = utils.merge({}, prompt2.options.theme, prompt2.options);
      prompt2.symbols = symbols.merge(prompt2.options);
      prompt2.styles = styles.merge(prompt2.options);
    };
  }
});

// ../../node_modules/enquirer/lib/ansi.js
var require_ansi = __commonJS({
  "../../node_modules/enquirer/lib/ansi.js"(exports2, module2) {
    "use strict";
    var isTerm = process.env.TERM_PROGRAM === "Apple_Terminal";
    var stripAnsi2 = require_strip_ansi();
    var utils = require_utils9();
    var ansi = module2.exports = exports2;
    var ESC2 = "\x1B[";
    var BEL = "\x07";
    var hidden = false;
    var code = ansi.code = {
      bell: BEL,
      beep: BEL,
      beginning: `${ESC2}G`,
      down: `${ESC2}J`,
      esc: ESC2,
      getPosition: `${ESC2}6n`,
      hide: `${ESC2}?25l`,
      line: `${ESC2}2K`,
      lineEnd: `${ESC2}K`,
      lineStart: `${ESC2}1K`,
      restorePosition: ESC2 + (isTerm ? "8" : "u"),
      savePosition: ESC2 + (isTerm ? "7" : "s"),
      screen: `${ESC2}2J`,
      show: `${ESC2}?25h`,
      up: `${ESC2}1J`
    };
    var cursor2 = ansi.cursor = {
      get hidden() {
        return hidden;
      },
      hide() {
        hidden = true;
        return code.hide;
      },
      show() {
        hidden = false;
        return code.show;
      },
      forward: /* @__PURE__ */ __name((count = 1) => `${ESC2}${count}C`, "forward"),
      backward: /* @__PURE__ */ __name((count = 1) => `${ESC2}${count}D`, "backward"),
      nextLine: /* @__PURE__ */ __name((count = 1) => `${ESC2}E`.repeat(count), "nextLine"),
      prevLine: /* @__PURE__ */ __name((count = 1) => `${ESC2}F`.repeat(count), "prevLine"),
      up: /* @__PURE__ */ __name((count = 1) => count ? `${ESC2}${count}A` : "", "up"),
      down: /* @__PURE__ */ __name((count = 1) => count ? `${ESC2}${count}B` : "", "down"),
      right: /* @__PURE__ */ __name((count = 1) => count ? `${ESC2}${count}C` : "", "right"),
      left: /* @__PURE__ */ __name((count = 1) => count ? `${ESC2}${count}D` : "", "left"),
      to(x3, y2) {
        return y2 ? `${ESC2}${y2 + 1};${x3 + 1}H` : `${ESC2}${x3 + 1}G`;
      },
      move(x3 = 0, y2 = 0) {
        let res = "";
        res += x3 < 0 ? cursor2.left(-x3) : x3 > 0 ? cursor2.right(x3) : "";
        res += y2 < 0 ? cursor2.up(-y2) : y2 > 0 ? cursor2.down(y2) : "";
        return res;
      },
      strLen(str) {
        var realLength = 0, len = str.length, charCode = -1;
        for (var i3 = 0; i3 < len; i3++) {
          charCode = str.charCodeAt(i3);
          if (charCode >= 0 && charCode <= 128) realLength += 1;
          else realLength += 2;
        }
        return realLength;
      },
      restore(state2 = {}) {
        let { after, cursor: cursor3, initial, input, prompt: prompt2, size, value } = state2;
        initial = utils.isPrimitive(initial) ? String(initial) : "";
        input = utils.isPrimitive(input) ? String(input) : "";
        value = utils.isPrimitive(value) ? String(value) : "";
        if (size) {
          let codes = ansi.cursor.up(size) + ansi.cursor.to(this.strLen(prompt2));
          let diff = input.length - cursor3;
          if (diff > 0) {
            codes += ansi.cursor.left(diff);
          }
          return codes;
        }
        if (value || after) {
          let pos = !input && !!initial ? -this.strLen(initial) : -this.strLen(input) + cursor3;
          if (after) pos -= this.strLen(after);
          if (input === "" && initial && !prompt2.includes(initial)) {
            pos += this.strLen(initial);
          }
          return ansi.cursor.move(pos);
        }
      }
    };
    var erase = ansi.erase = {
      screen: code.screen,
      up: code.up,
      down: code.down,
      line: code.line,
      lineEnd: code.lineEnd,
      lineStart: code.lineStart,
      lines(n3) {
        let str = "";
        for (let i3 = 0; i3 < n3; i3++) {
          str += ansi.erase.line + (i3 < n3 - 1 ? ansi.cursor.up(1) : "");
        }
        if (n3) str += ansi.code.beginning;
        return str;
      }
    };
    ansi.clear = (input = "", columns = process.stdout.columns) => {
      if (!columns) return erase.line + cursor2.to(0);
      let width = /* @__PURE__ */ __name((str) => [...stripAnsi2(str)].length, "width");
      let lines = input.split(/\r?\n/);
      let rows = 0;
      for (let line of lines) {
        rows += 1 + Math.floor(Math.max(width(line) - 1, 0) / columns);
      }
      return (erase.line + cursor2.prevLine()).repeat(rows - 1) + erase.line + cursor2.to(0);
    };
  }
});

// ../../node_modules/enquirer/lib/prompt.js
var require_prompt2 = __commonJS({
  "../../node_modules/enquirer/lib/prompt.js"(exports2, module2) {
    "use strict";
    var Events = require("events");
    var stripAnsi2 = require_strip_ansi();
    var keypress = require_keypress();
    var timer = require_timer();
    var State = require_state5();
    var theme = require_theme();
    var utils = require_utils9();
    var ansi = require_ansi();
    var Prompt = class _Prompt extends Events {
      static {
        __name(this, "Prompt");
      }
      constructor(options = {}) {
        super();
        this.name = options.name;
        this.type = options.type;
        this.options = options;
        theme(this);
        timer(this);
        this.state = new State(this);
        this.initial = [options.initial, options.default].find((v6) => v6 != null);
        this.stdout = options.stdout || process.stdout;
        this.stdin = options.stdin || process.stdin;
        this.scale = options.scale || 1;
        this.term = this.options.term || process.env.TERM_PROGRAM;
        this.margin = margin(this.options.margin);
        this.setMaxListeners(0);
        setOptions(this);
      }
      async keypress(input, event = {}) {
        this.keypressed = true;
        let key = keypress.action(input, keypress(input, event), this.options.actions);
        this.state.keypress = key;
        this.emit("keypress", input, key);
        this.emit("state", this.state.clone());
        const fn = this.options[key.action] || this[key.action] || this.dispatch;
        if (typeof fn === "function") {
          return await fn.call(this, input, key);
        }
        this.alert();
      }
      alert() {
        delete this.state.alert;
        if (this.options.show === false) {
          this.emit("alert");
        } else {
          this.stdout.write(ansi.code.beep);
        }
      }
      cursorHide() {
        this.stdout.write(ansi.cursor.hide());
        const releaseOnExit = utils.onExit(() => this.cursorShow());
        this.on("close", () => {
          this.cursorShow();
          releaseOnExit();
        });
      }
      cursorShow() {
        this.stdout.write(ansi.cursor.show());
      }
      write(str) {
        if (!str) return;
        if (this.stdout && this.state.show !== false) {
          this.stdout.write(str);
        }
        this.state.buffer += str;
      }
      clear(lines = 0) {
        let buffer = this.state.buffer;
        this.state.buffer = "";
        if (!buffer && !lines || this.options.show === false) return;
        this.stdout.write(ansi.cursor.down(lines) + ansi.clear(buffer, this.width));
      }
      restore() {
        if (this.state.closed || this.options.show === false) return;
        let { prompt: prompt2, after, rest } = this.sections();
        let { cursor: cursor2, initial = "", input = "", value = "" } = this;
        let size = this.state.size = rest.length;
        let state2 = { after, cursor: cursor2, initial, input, prompt: prompt2, size, value };
        let codes = ansi.cursor.restore(state2);
        if (codes) {
          this.stdout.write(codes);
        }
      }
      sections() {
        let { buffer, input, prompt: prompt2 } = this.state;
        prompt2 = stripAnsi2(prompt2);
        let buf = stripAnsi2(buffer);
        let idx = buf.indexOf(prompt2);
        let header = buf.slice(0, idx);
        let rest = buf.slice(idx);
        let lines = rest.split("\n");
        let first = lines[0];
        let last = lines[lines.length - 1];
        let promptLine = prompt2 + (input ? " " + input : "");
        let len = promptLine.length;
        let after = len < first.length ? first.slice(len + 1) : "";
        return { header, prompt: first, after, rest: lines.slice(1), last };
      }
      async submit() {
        this.state.submitted = true;
        this.state.validating = true;
        if (this.options.onSubmit) {
          await this.options.onSubmit.call(this, this.name, this.value, this);
        }
        let result2 = this.state.error || await this.validate(this.value, this.state);
        if (result2 !== true) {
          let error5 = "\n" + this.symbols.pointer + " ";
          if (typeof result2 === "string") {
            error5 += result2.trim();
          } else {
            error5 += "Invalid input";
          }
          this.state.error = "\n" + this.styles.danger(error5);
          this.state.submitted = false;
          await this.render();
          await this.alert();
          this.state.validating = false;
          this.state.error = void 0;
          return;
        }
        this.state.validating = false;
        await this.render();
        await this.close();
        this.value = await this.result(this.value);
        this.emit("submit", this.value);
      }
      async cancel(err) {
        this.state.cancelled = this.state.submitted = true;
        await this.render();
        await this.close();
        if (typeof this.options.onCancel === "function") {
          await this.options.onCancel.call(this, this.name, this.value, this);
        }
        this.emit("cancel", await this.error(err));
      }
      async close() {
        this.state.closed = true;
        try {
          let sections = this.sections();
          let lines = Math.ceil(sections.prompt.length / this.width);
          if (sections.rest) {
            this.write(ansi.cursor.down(sections.rest.length));
          }
          this.write("\n".repeat(lines));
        } catch (err) {
        }
        this.emit("close");
      }
      start() {
        if (!this.stop && this.options.show !== false) {
          this.stop = keypress.listen(this, this.keypress.bind(this));
          this.once("close", this.stop);
          this.emit("start", this);
        }
      }
      async skip() {
        this.skipped = this.options.skip === true;
        if (typeof this.options.skip === "function") {
          this.skipped = await this.options.skip.call(this, this.name, this.value);
        }
        return this.skipped;
      }
      async initialize() {
        let { format: format26, options, result: result2 } = this;
        this.format = () => format26.call(this, this.value);
        this.result = () => result2.call(this, this.value);
        if (typeof options.initial === "function") {
          this.initial = await options.initial.call(this, this);
        }
        if (typeof options.onRun === "function") {
          await options.onRun.call(this, this);
        }
        if (typeof options.onSubmit === "function") {
          let onSubmit = options.onSubmit.bind(this);
          let submit = this.submit.bind(this);
          delete this.options.onSubmit;
          this.submit = async () => {
            await onSubmit(this.name, this.value, this);
            return submit();
          };
        }
        await this.start();
        await this.render();
      }
      render() {
        throw new Error("expected prompt to have a custom render method");
      }
      run() {
        return new Promise(async (resolve13, reject) => {
          this.once("submit", resolve13);
          this.once("cancel", reject);
          if (await this.skip()) {
            this.render = () => {
            };
            return this.submit();
          }
          await this.initialize();
          this.emit("run");
        });
      }
      async element(name, choice, i3) {
        let { options, state: state2, symbols, timers } = this;
        let timer2 = timers && timers[name];
        state2.timer = timer2;
        let value = options[name] || state2[name] || symbols[name];
        let val = choice && choice[name] != null ? choice[name] : await value;
        if (val === "") return val;
        let res = await this.resolve(val, state2, choice, i3);
        if (!res && choice && choice[name]) {
          return this.resolve(value, state2, choice, i3);
        }
        return res;
      }
      async prefix() {
        let element = await this.element("prefix") || this.symbols;
        let timer2 = this.timers && this.timers.prefix;
        let state2 = this.state;
        state2.timer = timer2;
        if (utils.isObject(element)) element = element[state2.status] || element.pending;
        if (!utils.hasColor(element)) {
          let style = this.styles[state2.status] || this.styles.pending;
          return style(element);
        }
        return element;
      }
      async message() {
        let message2 = await this.element("message");
        if (!utils.hasColor(message2)) {
          return this.styles.strong(message2);
        }
        return message2;
      }
      async separator() {
        let element = await this.element("separator") || this.symbols;
        let timer2 = this.timers && this.timers.separator;
        let state2 = this.state;
        state2.timer = timer2;
        let value = element[state2.status] || element.pending || state2.separator;
        let ele = await this.resolve(value, state2);
        if (utils.isObject(ele)) ele = ele[state2.status] || ele.pending;
        if (!utils.hasColor(ele)) {
          return this.styles.muted(ele);
        }
        return ele;
      }
      async pointer(choice, i3) {
        let val = await this.element("pointer", choice, i3);
        if (typeof val === "string" && utils.hasColor(val)) {
          return val;
        }
        if (val) {
          let styles = this.styles;
          let focused = this.index === i3;
          let style = focused ? styles.primary : (val2) => val2;
          let ele = await this.resolve(val[focused ? "on" : "off"] || val, this.state);
          let styled = !utils.hasColor(ele) ? style(ele) : ele;
          return focused ? styled : " ".repeat(ele.length);
        }
      }
      async indicator(choice, i3) {
        let val = await this.element("indicator", choice, i3);
        if (typeof val === "string" && utils.hasColor(val)) {
          return val;
        }
        if (val) {
          let styles = this.styles;
          let enabled = choice.enabled === true;
          let style = enabled ? styles.success : styles.dark;
          let ele = val[enabled ? "on" : "off"] || val;
          return !utils.hasColor(ele) ? style(ele) : ele;
        }
        return "";
      }
      body() {
        return null;
      }
      footer() {
        if (this.state.status === "pending") {
          return this.element("footer");
        }
      }
      header() {
        if (this.state.status === "pending") {
          return this.element("header");
        }
      }
      async hint() {
        if (this.state.status === "pending" && !this.isValue(this.state.input)) {
          let hint = await this.element("hint");
          if (!utils.hasColor(hint)) {
            return this.styles.muted(hint);
          }
          return hint;
        }
      }
      error(err) {
        return !this.state.submitted ? err || this.state.error : "";
      }
      format(value) {
        return value;
      }
      result(value) {
        return value;
      }
      validate(value) {
        if (this.options.required === true) {
          return this.isValue(value);
        }
        return true;
      }
      isValue(value) {
        return value != null && value !== "";
      }
      resolve(value, ...args) {
        return utils.resolve(this, value, ...args);
      }
      get base() {
        return _Prompt.prototype;
      }
      get style() {
        return this.styles[this.state.status];
      }
      get height() {
        return this.options.rows || utils.height(this.stdout, 25);
      }
      get width() {
        return this.options.columns || utils.width(this.stdout, 80);
      }
      get size() {
        return { width: this.width, height: this.height };
      }
      set cursor(value) {
        this.state.cursor = value;
      }
      get cursor() {
        return this.state.cursor;
      }
      set input(value) {
        this.state.input = value;
      }
      get input() {
        return this.state.input;
      }
      set value(value) {
        this.state.value = value;
      }
      get value() {
        let { input, value } = this.state;
        let result2 = [value, input].find(this.isValue.bind(this));
        return this.isValue(result2) ? result2 : this.initial;
      }
      static get prompt() {
        return (options) => new this(options).run();
      }
    };
    function setOptions(prompt2) {
      let isValidKey = /* @__PURE__ */ __name((key) => {
        return prompt2[key] === void 0 || typeof prompt2[key] === "function";
      }, "isValidKey");
      let ignore = [
        "actions",
        "choices",
        "initial",
        "margin",
        "roles",
        "styles",
        "symbols",
        "theme",
        "timers",
        "value"
      ];
      let ignoreFn = [
        "body",
        "footer",
        "error",
        "header",
        "hint",
        "indicator",
        "message",
        "prefix",
        "separator",
        "skip"
      ];
      for (let key of Object.keys(prompt2.options)) {
        if (ignore.includes(key)) continue;
        if (/^on[A-Z]/.test(key)) continue;
        let option = prompt2.options[key];
        if (typeof option === "function" && isValidKey(key)) {
          if (!ignoreFn.includes(key)) {
            prompt2[key] = option.bind(prompt2);
          }
        } else if (typeof prompt2[key] !== "function") {
          prompt2[key] = option;
        }
      }
    }
    __name(setOptions, "setOptions");
    function margin(value) {
      if (typeof value === "number") {
        value = [value, value, value, value];
      }
      let arr = [].concat(value || []);
      let pad = /* @__PURE__ */ __name((i3) => i3 % 2 === 0 ? "\n" : " ", "pad");
      let res = [];
      for (let i3 = 0; i3 < 4; i3++) {
        let char = pad(i3);
        if (arr[i3]) {
          res.push(char.repeat(arr[i3]));
        } else {
          res.push("");
        }
      }
      return res;
    }
    __name(margin, "margin");
    module2.exports = Prompt;
  }
});

// ../../node_modules/enquirer/lib/roles.js
var require_roles = __commonJS({
  "../../node_modules/enquirer/lib/roles.js"(exports2, module2) {
    "use strict";
    var utils = require_utils9();
    var roles = {
      default(prompt2, choice) {
        return choice;
      },
      checkbox(prompt2, choice) {
        throw new Error("checkbox role is not implemented yet");
      },
      editable(prompt2, choice) {
        throw new Error("editable role is not implemented yet");
      },
      expandable(prompt2, choice) {
        throw new Error("expandable role is not implemented yet");
      },
      heading(prompt2, choice) {
        choice.disabled = "";
        choice.indicator = [choice.indicator, " "].find((v6) => v6 != null);
        choice.message = choice.message || "";
        return choice;
      },
      input(prompt2, choice) {
        throw new Error("input role is not implemented yet");
      },
      option(prompt2, choice) {
        return roles.default(prompt2, choice);
      },
      radio(prompt2, choice) {
        throw new Error("radio role is not implemented yet");
      },
      separator(prompt2, choice) {
        choice.disabled = "";
        choice.indicator = [choice.indicator, " "].find((v6) => v6 != null);
        choice.message = choice.message || prompt2.symbols.line.repeat(5);
        return choice;
      },
      spacer(prompt2, choice) {
        return choice;
      }
    };
    module2.exports = (name, options = {}) => {
      let role = utils.merge({}, roles, options.roles);
      return role[name] || role.default;
    };
  }
});

// ../../node_modules/enquirer/lib/types/array.js
var require_array3 = __commonJS({
  "../../node_modules/enquirer/lib/types/array.js"(exports2, module2) {
    "use strict";
    var stripAnsi2 = require_strip_ansi();
    var Prompt = require_prompt2();
    var roles = require_roles();
    var utils = require_utils9();
    var { reorder, scrollUp, scrollDown, isObject: isObject3, swap } = utils;
    var ArrayPrompt = class extends Prompt {
      static {
        __name(this, "ArrayPrompt");
      }
      constructor(options) {
        super(options);
        this.cursorHide();
        this.maxSelected = options.maxSelected || Infinity;
        this.multiple = options.multiple || false;
        this.initial = options.initial || 0;
        this.delay = options.delay || 0;
        this.longest = 0;
        this.num = "";
      }
      async initialize() {
        if (typeof this.options.initial === "function") {
          this.initial = await this.options.initial.call(this);
        }
        await this.reset(true);
        await super.initialize();
      }
      async reset() {
        let { choices, initial, autofocus, suggest } = this.options;
        this.state._choices = [];
        this.state.choices = [];
        this.choices = await Promise.all(await this.toChoices(choices));
        this.choices.forEach((ch) => ch.enabled = false);
        if (typeof suggest !== "function" && this.selectable.length === 0) {
          throw new Error("At least one choice must be selectable");
        }
        if (isObject3(initial)) initial = Object.keys(initial);
        if (Array.isArray(initial)) {
          if (autofocus != null) this.index = this.findIndex(autofocus);
          initial.forEach((v6) => this.enable(this.find(v6)));
          await this.render();
        } else {
          if (autofocus != null) initial = autofocus;
          if (typeof initial === "string") initial = this.findIndex(initial);
          if (typeof initial === "number" && initial > -1) {
            this.index = Math.max(0, Math.min(initial, this.choices.length));
            this.enable(this.find(this.index));
          }
        }
        if (this.isDisabled(this.focused)) {
          await this.down();
        }
      }
      async toChoices(value, parent) {
        this.state.loadingChoices = true;
        let choices = [];
        let index = 0;
        let toChoices = /* @__PURE__ */ __name(async (items, parent2) => {
          if (typeof items === "function") items = await items.call(this);
          if (items instanceof Promise) items = await items;
          for (let i3 = 0; i3 < items.length; i3++) {
            let choice = items[i3] = await this.toChoice(items[i3], index++, parent2);
            choices.push(choice);
            if (choice.choices) {
              await toChoices(choice.choices, choice);
            }
          }
          return choices;
        }, "toChoices");
        return toChoices(value, parent).then((choices2) => {
          this.state.loadingChoices = false;
          return choices2;
        });
      }
      async toChoice(ele, i3, parent) {
        if (typeof ele === "function") ele = await ele.call(this, this);
        if (ele instanceof Promise) ele = await ele;
        if (typeof ele === "string") ele = { name: ele };
        if (ele.normalized) return ele;
        ele.normalized = true;
        let origVal = ele.value;
        let role = roles(ele.role, this.options);
        ele = role(this, ele);
        if (typeof ele.disabled === "string" && !ele.hint) {
          ele.hint = ele.disabled;
          ele.disabled = true;
        }
        if (ele.disabled === true && ele.hint == null) {
          ele.hint = "(disabled)";
        }
        if (ele.index != null) return ele;
        ele.name = ele.name || ele.key || ele.title || ele.value || ele.message;
        ele.message = ele.message || ele.name || "";
        ele.value = [ele.value, ele.name].find(this.isValue.bind(this));
        ele.input = "";
        ele.index = i3;
        ele.cursor = 0;
        utils.define(ele, "parent", parent);
        ele.level = parent ? parent.level + 1 : 1;
        if (ele.indent == null) {
          ele.indent = parent ? parent.indent + "  " : ele.indent || "";
        }
        ele.path = parent ? parent.path + "." + ele.name : ele.name;
        ele.enabled = !!(this.multiple && !this.isDisabled(ele) && (ele.enabled || this.isSelected(ele)));
        if (!this.isDisabled(ele)) {
          this.longest = Math.max(this.longest, stripAnsi2(ele.message).length);
        }
        let choice = { ...ele };
        ele.reset = (input = choice.input, value = choice.value) => {
          for (let key of Object.keys(choice)) ele[key] = choice[key];
          ele.input = input;
          ele.value = value;
        };
        if (origVal == null && typeof ele.initial === "function") {
          ele.input = await ele.initial.call(this, this.state, ele, i3);
        }
        return ele;
      }
      async onChoice(choice, i3) {
        this.emit("choice", choice, i3, this);
        if (typeof choice.onChoice === "function") {
          await choice.onChoice.call(this, this.state, choice, i3);
        }
      }
      async addChoice(ele, i3, parent) {
        let choice = await this.toChoice(ele, i3, parent);
        this.choices.push(choice);
        this.index = this.choices.length - 1;
        this.limit = this.choices.length;
        return choice;
      }
      async newItem(item, i3, parent) {
        let ele = { name: "New choice name?", editable: true, newChoice: true, ...item };
        let choice = await this.addChoice(ele, i3, parent);
        choice.updateChoice = () => {
          delete choice.newChoice;
          choice.name = choice.message = choice.input;
          choice.input = "";
          choice.cursor = 0;
        };
        return this.render();
      }
      indent(choice) {
        if (choice.indent == null) {
          return choice.level > 1 ? "  ".repeat(choice.level - 1) : "";
        }
        return choice.indent;
      }
      dispatch(s3, key) {
        if (this.multiple && this[key.name]) return this[key.name]();
        this.alert();
      }
      focus(choice, enabled) {
        if (typeof enabled !== "boolean") enabled = choice.enabled;
        if (enabled && !choice.enabled && this.selected.length >= this.maxSelected) {
          return this.alert();
        }
        this.index = choice.index;
        choice.enabled = enabled && !this.isDisabled(choice);
        return choice;
      }
      space() {
        if (!this.multiple) return this.alert();
        if (!this.focused) return;
        this.toggle(this.focused);
        return this.render();
      }
      a() {
        if (this.maxSelected < this.choices.length) return this.alert();
        let enabled = this.selectable.every((ch) => ch.enabled);
        this.choices.forEach((ch) => ch.enabled = !enabled);
        return this.render();
      }
      i() {
        if (this.choices.length - this.selected.length > this.maxSelected) {
          return this.alert();
        }
        this.choices.forEach((ch) => ch.enabled = !ch.enabled);
        return this.render();
      }
      g() {
        if (!this.choices.some((ch) => !!ch.parent)) return this.a();
        const focused = this.focused;
        this.toggle(focused.parent && !focused.choices ? focused.parent : focused);
        return this.render();
      }
      toggle(choice, enabled) {
        if (!choice.enabled && this.selected.length >= this.maxSelected) {
          return this.alert();
        }
        if (typeof enabled !== "boolean") enabled = !choice.enabled;
        choice.enabled = enabled;
        if (choice.choices) {
          choice.choices.forEach((ch) => this.toggle(ch, enabled));
        }
        let parent = choice.parent;
        while (parent) {
          let choices = parent.choices.filter((ch) => this.isDisabled(ch));
          parent.enabled = choices.every((ch) => ch.enabled === true);
          parent = parent.parent;
        }
        reset3(this, this.choices);
        this.emit("toggle", choice, this);
        return choice;
      }
      enable(choice) {
        if (this.selected.length >= this.maxSelected) return this.alert();
        choice.enabled = !this.isDisabled(choice);
        choice.choices && choice.choices.forEach(this.enable.bind(this));
        return choice;
      }
      disable(choice) {
        choice.enabled = false;
        choice.choices && choice.choices.forEach(this.disable.bind(this));
        return choice;
      }
      number(n3) {
        this.num += n3;
        let number = /* @__PURE__ */ __name((num) => {
          let i3 = Number(num);
          if (i3 > this.choices.length - 1) return this.alert();
          let focused = this.focused;
          let choice = this.choices.find((ch) => i3 === ch.index);
          if (!choice.enabled && this.selected.length >= this.maxSelected) {
            return this.alert();
          }
          if (this.visible.indexOf(choice) === -1) {
            let choices = reorder(this.choices);
            let actualIdx = choices.indexOf(choice);
            if (focused.index > actualIdx) {
              let start = choices.slice(actualIdx, actualIdx + this.limit);
              let end = choices.filter((ch) => !start.includes(ch));
              this.choices = start.concat(end);
            } else {
              let pos = actualIdx - this.limit + 1;
              this.choices = choices.slice(pos).concat(choices.slice(0, pos));
            }
          }
          this.index = this.choices.indexOf(choice);
          this.toggle(this.focused);
          return this.render();
        }, "number");
        clearTimeout(this.numberTimeout);
        return new Promise((resolve13) => {
          let len = this.choices.length;
          let num = this.num;
          let handle = /* @__PURE__ */ __name((val = false, res) => {
            clearTimeout(this.numberTimeout);
            if (val) res = number(num);
            this.num = "";
            resolve13(res);
          }, "handle");
          if (num === "0" || num.length === 1 && Number(num + "0") > len) {
            return handle(true);
          }
          if (Number(num) > len) {
            return handle(false, this.alert());
          }
          this.numberTimeout = setTimeout(() => handle(true), this.delay);
        });
      }
      home() {
        this.choices = reorder(this.choices);
        this.index = 0;
        return this.render();
      }
      end() {
        let pos = this.choices.length - this.limit;
        let choices = reorder(this.choices);
        this.choices = choices.slice(pos).concat(choices.slice(0, pos));
        this.index = this.limit - 1;
        return this.render();
      }
      first() {
        this.index = 0;
        return this.render();
      }
      last() {
        this.index = this.visible.length - 1;
        return this.render();
      }
      prev() {
        if (this.visible.length <= 1) return this.alert();
        return this.up();
      }
      next() {
        if (this.visible.length <= 1) return this.alert();
        return this.down();
      }
      right() {
        if (this.cursor >= this.input.length) return this.alert();
        this.cursor++;
        return this.render();
      }
      left() {
        if (this.cursor <= 0) return this.alert();
        this.cursor--;
        return this.render();
      }
      up() {
        let len = this.choices.length;
        let vis = this.visible.length;
        let idx = this.index;
        if (this.options.scroll === false && idx === 0) {
          return this.alert();
        }
        if (len > vis && idx === 0) {
          return this.scrollUp();
        }
        this.index = (idx - 1 % len + len) % len;
        if (this.isDisabled() && !this.allChoicesAreDisabled()) {
          return this.up();
        }
        return this.render();
      }
      down() {
        let len = this.choices.length;
        let vis = this.visible.length;
        let idx = this.index;
        if (this.options.scroll === false && idx === vis - 1) {
          return this.alert();
        }
        if (len > vis && idx === vis - 1) {
          return this.scrollDown();
        }
        this.index = (idx + 1) % len;
        if (this.isDisabled() && !this.allChoicesAreDisabled()) {
          return this.down();
        }
        return this.render();
      }
      scrollUp(i3 = 0) {
        this.choices = scrollUp(this.choices);
        this.index = i3;
        if (this.isDisabled()) {
          return this.up();
        }
        return this.render();
      }
      scrollDown(i3 = this.visible.length - 1) {
        this.choices = scrollDown(this.choices);
        this.index = i3;
        if (this.isDisabled()) {
          return this.down();
        }
        return this.render();
      }
      async shiftUp() {
        if (this.options.sort === true) {
          this.sorting = true;
          this.swap(this.index - 1);
          await this.up();
          this.sorting = false;
          return;
        }
        return this.scrollUp(this.index);
      }
      async shiftDown() {
        if (this.options.sort === true) {
          this.sorting = true;
          this.swap(this.index + 1);
          await this.down();
          this.sorting = false;
          return;
        }
        return this.scrollDown(this.index);
      }
      pageUp() {
        if (this.visible.length <= 1) return this.alert();
        this.limit = Math.max(this.limit - 1, 0);
        this.index = Math.min(this.limit - 1, this.index);
        this._limit = this.limit;
        if (this.isDisabled()) {
          return this.up();
        }
        return this.render();
      }
      pageDown() {
        if (this.visible.length >= this.choices.length) return this.alert();
        this.index = Math.max(0, this.index);
        this.limit = Math.min(this.limit + 1, this.choices.length);
        this._limit = this.limit;
        if (this.isDisabled()) {
          return this.down();
        }
        return this.render();
      }
      swap(pos) {
        swap(this.choices, this.index, pos);
      }
      allChoicesAreDisabled(choices = this.choices) {
        return choices.every((choice) => this.isDisabled(choice));
      }
      isDisabled(choice = this.focused) {
        let keys = ["disabled", "collapsed", "hidden", "completing", "readonly"];
        if (choice && keys.some((key) => choice[key] === true)) {
          return true;
        }
        return choice && choice.role === "heading";
      }
      isEnabled(choice = this.focused) {
        if (Array.isArray(choice)) return choice.every((ch) => this.isEnabled(ch));
        if (choice.choices) {
          let choices = choice.choices.filter((ch) => !this.isDisabled(ch));
          return choice.enabled && choices.every((ch) => this.isEnabled(ch));
        }
        return choice.enabled && !this.isDisabled(choice);
      }
      isChoice(choice, value) {
        return choice.name === value || choice.index === Number(value);
      }
      isSelected(choice) {
        if (Array.isArray(this.initial)) {
          return this.initial.some((value) => this.isChoice(choice, value));
        }
        return this.isChoice(choice, this.initial);
      }
      map(names = [], prop = "value") {
        return [].concat(names || []).reduce((acc, name) => {
          acc[name] = this.find(name, prop);
          return acc;
        }, {});
      }
      filter(value, prop) {
        let isChoice = /* @__PURE__ */ __name((ele, i3) => [ele.name, i3].includes(value), "isChoice");
        let fn = typeof value === "function" ? value : isChoice;
        let choices = this.options.multiple ? this.state._choices : this.choices;
        let result2 = choices.filter(fn);
        if (prop) {
          return result2.map((ch) => ch[prop]);
        }
        return result2;
      }
      find(value, prop) {
        if (isObject3(value)) return prop ? value[prop] : value;
        let isChoice = /* @__PURE__ */ __name((ele, i3) => [ele.name, i3].includes(value), "isChoice");
        let fn = typeof value === "function" ? value : isChoice;
        let choice = this.choices.find(fn);
        if (choice) {
          return prop ? choice[prop] : choice;
        }
      }
      findIndex(value) {
        return this.choices.indexOf(this.find(value));
      }
      async submit() {
        let choice = this.focused;
        if (!choice) return this.alert();
        if (choice.newChoice) {
          if (!choice.input) return this.alert();
          choice.updateChoice();
          return this.render();
        }
        if (this.choices.some((ch) => ch.newChoice)) {
          return this.alert();
        }
        let { reorder: reorder2, sort } = this.options;
        let multi = this.multiple === true;
        let value = this.selected;
        if (value === void 0) {
          return this.alert();
        }
        if (Array.isArray(value) && reorder2 !== false && sort !== true) {
          value = utils.reorder(value);
        }
        this.value = multi ? value.map((ch) => ch.name) : value.name;
        return super.submit();
      }
      set choices(choices = []) {
        this.state._choices = this.state._choices || [];
        this.state.choices = choices;
        for (let choice of choices) {
          if (!this.state._choices.some((ch) => ch.name === choice.name)) {
            this.state._choices.push(choice);
          }
        }
        if (!this._initial && this.options.initial) {
          this._initial = true;
          let init = this.initial;
          if (typeof init === "string" || typeof init === "number") {
            let choice = this.find(init);
            if (choice) {
              this.initial = choice.index;
              this.focus(choice, true);
            }
          }
        }
      }
      get choices() {
        return reset3(this, this.state.choices || []);
      }
      set visible(visible) {
        this.state.visible = visible;
      }
      get visible() {
        return (this.state.visible || this.choices).slice(0, this.limit);
      }
      set limit(num) {
        this.state.limit = num;
      }
      get limit() {
        let { state: state2, options, choices } = this;
        let limit = state2.limit || this._limit || options.limit || choices.length;
        return Math.min(limit, this.height);
      }
      set value(value) {
        super.value = value;
      }
      get value() {
        if (typeof super.value !== "string" && super.value === this.initial) {
          return this.input;
        }
        return super.value;
      }
      set index(i3) {
        this.state.index = i3;
      }
      get index() {
        return Math.max(0, this.state ? this.state.index : 0);
      }
      get enabled() {
        return this.filter(this.isEnabled.bind(this));
      }
      get focused() {
        let choice = this.choices[this.index];
        if (choice && this.state.submitted && this.multiple !== true) {
          choice.enabled = true;
        }
        return choice;
      }
      get selectable() {
        return this.choices.filter((choice) => !this.isDisabled(choice));
      }
      get selected() {
        return this.multiple ? this.enabled : this.focused;
      }
    };
    function reset3(prompt2, choices) {
      if (choices instanceof Promise) return choices;
      if (typeof choices === "function") {
        if (utils.isAsyncFn(choices)) return choices;
        choices = choices.call(prompt2, prompt2);
      }
      for (let choice of choices) {
        if (Array.isArray(choice.choices)) {
          let items = choice.choices.filter((ch) => !prompt2.isDisabled(ch));
          choice.enabled = items.every((ch) => ch.enabled === true);
        }
        if (prompt2.isDisabled(choice) === true) {
          delete choice.enabled;
        }
      }
      return choices;
    }
    __name(reset3, "reset");
    module2.exports = ArrayPrompt;
  }
});

// ../../node_modules/enquirer/lib/prompts/select.js
var require_select = __commonJS({
  "../../node_modules/enquirer/lib/prompts/select.js"(exports2, module2) {
    "use strict";
    var ArrayPrompt = require_array3();
    var utils = require_utils9();
    var SelectPrompt = class extends ArrayPrompt {
      static {
        __name(this, "SelectPrompt");
      }
      constructor(options) {
        super(options);
        this.emptyError = this.options.emptyError || "No items were selected";
      }
      async dispatch(s3, key) {
        if (this.multiple) {
          return this[key.name] ? await this[key.name](s3, key) : await super.dispatch(s3, key);
        }
        this.alert();
      }
      separator() {
        if (this.options.separator) return super.separator();
        let sep5 = this.styles.muted(this.symbols.ellipsis);
        return this.state.submitted ? super.separator() : sep5;
      }
      pointer(choice, i3) {
        return !this.multiple || this.options.pointer ? super.pointer(choice, i3) : "";
      }
      indicator(choice, i3) {
        return this.multiple ? super.indicator(choice, i3) : "";
      }
      choiceMessage(choice, i3) {
        let message2 = this.resolve(choice.message, this.state, choice, i3);
        if (choice.role === "heading" && !utils.hasColor(message2)) {
          message2 = this.styles.strong(message2);
        }
        return this.resolve(message2, this.state, choice, i3);
      }
      choiceSeparator() {
        return ":";
      }
      async renderChoice(choice, i3) {
        await this.onChoice(choice, i3);
        let focused = this.index === i3;
        let pointer = await this.pointer(choice, i3);
        let check = await this.indicator(choice, i3) + (choice.pad || "");
        let hint = await this.resolve(choice.hint, this.state, choice, i3);
        if (hint && !utils.hasColor(hint)) {
          hint = this.styles.muted(hint);
        }
        let ind = this.indent(choice);
        let msg = await this.choiceMessage(choice, i3);
        let line = /* @__PURE__ */ __name(() => [this.margin[3], ind + pointer + check, msg, this.margin[1], hint].filter(Boolean).join(" "), "line");
        if (choice.role === "heading") {
          return line();
        }
        if (choice.disabled) {
          if (!utils.hasColor(msg)) {
            msg = this.styles.disabled(msg);
          }
          return line();
        }
        if (focused) {
          msg = this.styles.em(msg);
        }
        return line();
      }
      async renderChoices() {
        if (this.state.loading === "choices") {
          return this.styles.warning("Loading choices");
        }
        if (this.state.submitted) return "";
        let choices = this.visible.map(async (ch, i3) => await this.renderChoice(ch, i3));
        let visible = await Promise.all(choices);
        if (!visible.length) visible.push(this.styles.danger("No matching choices"));
        let result2 = this.margin[0] + visible.join("\n");
        let header;
        if (this.options.choicesHeader) {
          header = await this.resolve(this.options.choicesHeader, this.state);
        }
        return [header, result2].filter(Boolean).join("\n");
      }
      format() {
        if (!this.state.submitted || this.state.cancelled) return "";
        if (Array.isArray(this.selected)) {
          return this.selected.map((choice) => this.styles.primary(choice.name)).join(", ");
        }
        return this.styles.primary(this.selected.name);
      }
      async render() {
        let { submitted, size } = this.state;
        let prompt2 = "";
        let header = await this.header();
        let prefix2 = await this.prefix();
        let separator = await this.separator();
        let message2 = await this.message();
        if (this.options.promptLine !== false) {
          prompt2 = [prefix2, message2, separator, ""].join(" ");
          this.state.prompt = prompt2;
        }
        let output = await this.format();
        let help = await this.error() || await this.hint();
        let body = await this.renderChoices();
        let footer = await this.footer();
        if (output) prompt2 += output;
        if (help && !prompt2.includes(help)) prompt2 += " " + help;
        if (submitted && !output && !body.trim() && this.multiple && this.emptyError != null) {
          prompt2 += this.styles.danger(this.emptyError);
        }
        this.clear(size);
        this.write([header, prompt2, body, footer].filter(Boolean).join("\n"));
        this.write(this.margin[2]);
        this.restore();
      }
    };
    module2.exports = SelectPrompt;
  }
});

// ../../node_modules/enquirer/lib/prompts/autocomplete.js
var require_autocomplete = __commonJS({
  "../../node_modules/enquirer/lib/prompts/autocomplete.js"(exports2, module2) {
    "use strict";
    var Select2 = require_select();
    var highlight2 = /* @__PURE__ */ __name((input, color) => {
      const regex = input ? new RegExp(input, "ig") : /$^/;
      return (str) => {
        return input ? str.replace(regex, (match4) => color(match4)) : str;
      };
    }, "highlight");
    var AutoComplete = class extends Select2 {
      static {
        __name(this, "AutoComplete");
      }
      constructor(options) {
        super(options);
        this.cursorShow();
      }
      moveCursor(n3) {
        this.state.cursor += n3;
      }
      dispatch(ch) {
        return this.append(ch);
      }
      space(ch) {
        return this.options.multiple ? super.space(ch) : this.append(ch);
      }
      append(ch) {
        let { cursor: cursor2, input } = this.state;
        this.input = input.slice(0, cursor2) + ch + input.slice(cursor2);
        this.moveCursor(1);
        return this.complete();
      }
      delete() {
        let { cursor: cursor2, input } = this.state;
        if (!input) return this.alert();
        this.input = input.slice(0, cursor2 - 1) + input.slice(cursor2);
        this.moveCursor(-1);
        return this.complete();
      }
      deleteForward() {
        let { cursor: cursor2, input } = this.state;
        if (input[cursor2] === void 0) return this.alert();
        this.input = `${input}`.slice(0, cursor2) + `${input}`.slice(cursor2 + 1);
        return this.complete();
      }
      number(ch) {
        return this.append(ch);
      }
      async complete() {
        this.completing = true;
        this.choices = await this.suggest(this.input, this.state._choices);
        this.state.limit = void 0;
        this.index = Math.min(Math.max(this.visible.length - 1, 0), this.index);
        await this.render();
        this.completing = false;
      }
      suggest(input = this.input, choices = this.state._choices) {
        if (typeof this.options.suggest === "function") {
          return this.options.suggest.call(this, input, choices);
        }
        let str = input.toLowerCase();
        return choices.filter((ch) => ch.message.toLowerCase().includes(str));
      }
      pointer() {
        return "";
      }
      format() {
        if (!this.focused) return this.input;
        if (this.options.multiple && this.state.submitted) {
          return this.selected.map((ch) => this.styles.primary(ch.message)).join(", ");
        }
        if (this.state.submitted) {
          let value = this.value = this.input = this.focused.value;
          return this.styles.primary(value);
        }
        return this.input;
      }
      async render() {
        if (this.state.status !== "pending") return super.render();
        const hl = this.options.highlight || this.styles.complement;
        const style = /* @__PURE__ */ __name((input, color2) => {
          if (!input) return input;
          if (hl.stack) return hl(input);
          return hl.call(this, input);
        }, "style");
        const color = highlight2(this.input, style);
        const choices = this.choices;
        this.choices = choices.map((ch) => ({ ...ch, message: color(ch.message) }));
        await super.render();
        this.choices = choices;
      }
      submit() {
        if (this.options.multiple) {
          this.value = this.selected.map((ch) => ch.name);
        }
        return super.submit();
      }
    };
    module2.exports = AutoComplete;
  }
});

// ../../node_modules/enquirer/lib/placeholder.js
var require_placeholder = __commonJS({
  "../../node_modules/enquirer/lib/placeholder.js"(exports2, module2) {
    "use strict";
    var utils = require_utils9();
    module2.exports = (prompt2, options = {}) => {
      prompt2.cursorHide();
      let { input = "", initial = "", pos, showCursor = true, color } = options;
      let style = color || prompt2.styles.placeholder;
      let inverse = utils.inverse(prompt2.styles.primary);
      let blinker = /* @__PURE__ */ __name((str) => inverse(prompt2.styles.black(str)), "blinker");
      let output = input;
      let char = " ";
      let reverse = blinker(char);
      if (prompt2.blink && prompt2.blink.off === true) {
        blinker = /* @__PURE__ */ __name((str) => str, "blinker");
        reverse = "";
      }
      if (showCursor && pos === 0 && initial === "" && input === "") {
        return blinker(char);
      }
      if (showCursor && pos === 0 && (input === initial || input === "")) {
        return blinker(initial[0]) + style(initial.slice(1));
      }
      initial = utils.isPrimitive(initial) ? `${initial}` : "";
      input = utils.isPrimitive(input) ? `${input}` : "";
      let placeholder = initial && initial.startsWith(input) && initial !== input;
      let cursor2 = placeholder ? blinker(initial[input.length]) : reverse;
      if (pos !== input.length && showCursor === true) {
        output = input.slice(0, pos) + blinker(input[pos]) + input.slice(pos + 1);
        cursor2 = "";
      }
      if (showCursor === false) {
        cursor2 = "";
      }
      if (placeholder) {
        let raw = prompt2.styles.unstyle(output + cursor2);
        return output + cursor2 + style(initial.slice(raw.length));
      }
      return output + cursor2;
    };
  }
});

// ../../node_modules/enquirer/lib/prompts/form.js
var require_form = __commonJS({
  "../../node_modules/enquirer/lib/prompts/form.js"(exports2, module2) {
    "use strict";
    var stripAnsi2 = require_strip_ansi();
    var SelectPrompt = require_select();
    var placeholder = require_placeholder();
    var FormPrompt = class extends SelectPrompt {
      static {
        __name(this, "FormPrompt");
      }
      constructor(options) {
        super({ ...options, multiple: true });
        this.type = "form";
        this.initial = this.options.initial;
        this.align = [this.options.align, "right"].find((v6) => v6 != null);
        this.emptyError = "";
        this.values = {};
      }
      async reset(first) {
        await super.reset();
        if (first === true) this._index = this.index;
        this.index = this._index;
        this.values = {};
        this.choices.forEach((choice) => choice.reset && choice.reset());
        return this.render();
      }
      dispatch(char) {
        return !!char && this.append(char);
      }
      append(char) {
        let choice = this.focused;
        if (!choice) return this.alert();
        let { cursor: cursor2, input } = choice;
        choice.value = choice.input = input.slice(0, cursor2) + char + input.slice(cursor2);
        choice.cursor++;
        return this.render();
      }
      delete() {
        let choice = this.focused;
        if (!choice || choice.cursor <= 0) return this.alert();
        let { cursor: cursor2, input } = choice;
        choice.value = choice.input = input.slice(0, cursor2 - 1) + input.slice(cursor2);
        choice.cursor--;
        return this.render();
      }
      deleteForward() {
        let choice = this.focused;
        if (!choice) return this.alert();
        let { cursor: cursor2, input } = choice;
        if (input[cursor2] === void 0) return this.alert();
        let str = `${input}`.slice(0, cursor2) + `${input}`.slice(cursor2 + 1);
        choice.value = choice.input = str;
        return this.render();
      }
      right() {
        let choice = this.focused;
        if (!choice) return this.alert();
        if (choice.cursor >= choice.input.length) return this.alert();
        choice.cursor++;
        return this.render();
      }
      left() {
        let choice = this.focused;
        if (!choice) return this.alert();
        if (choice.cursor <= 0) return this.alert();
        choice.cursor--;
        return this.render();
      }
      space(ch, key) {
        return this.dispatch(ch, key);
      }
      number(ch, key) {
        return this.dispatch(ch, key);
      }
      next() {
        let ch = this.focused;
        if (!ch) return this.alert();
        let { initial, input } = ch;
        if (initial && initial.startsWith(input) && input !== initial) {
          ch.value = ch.input = initial;
          ch.cursor = ch.value.length;
          return this.render();
        }
        return super.next();
      }
      prev() {
        let ch = this.focused;
        if (!ch) return this.alert();
        if (ch.cursor === 0) return super.prev();
        ch.value = ch.input = "";
        ch.cursor = 0;
        return this.render();
      }
      separator() {
        return "";
      }
      format(value) {
        return !this.state.submitted ? super.format(value) : "";
      }
      pointer() {
        return "";
      }
      indicator(choice) {
        return choice.input ? "\u29BF" : "\u2299";
      }
      async choiceSeparator(choice, i3) {
        let sep5 = await this.resolve(choice.separator, this.state, choice, i3) || ":";
        return sep5 ? " " + this.styles.disabled(sep5) : "";
      }
      async renderChoice(choice, i3) {
        await this.onChoice(choice, i3);
        let { state: state2, styles } = this;
        let { cursor: cursor2, initial = "", name, input = "" } = choice;
        let { muted, submitted, primary, danger } = styles;
        let focused = this.index === i3;
        let validate3 = choice.validate || (() => true);
        let sep5 = await this.choiceSeparator(choice, i3);
        let msg = choice.message;
        if (this.align === "right") msg = msg.padStart(this.longest + 1, " ");
        if (this.align === "left") msg = msg.padEnd(this.longest + 1, " ");
        let value = this.values[name] = input || initial;
        let color = input ? "success" : "dark";
        if (await validate3.call(choice, value, this.state) !== true) {
          color = "danger";
        }
        let style = styles[color];
        let indicator = style(await this.indicator(choice, i3)) + (choice.pad || "");
        let indent = this.indent(choice);
        let line = /* @__PURE__ */ __name(() => [indent, indicator, msg + sep5, input].filter(Boolean).join(" "), "line");
        if (state2.submitted) {
          msg = stripAnsi2(msg);
          input = submitted(input);
          return line();
        }
        if (choice.format) {
          input = await choice.format.call(this, input, choice, i3);
        } else {
          let color2 = this.styles.muted;
          let options = { input, initial, pos: cursor2, showCursor: focused, color: color2 };
          input = placeholder(this, options);
        }
        if (!this.isValue(input)) {
          input = this.styles.muted(this.symbols.ellipsis);
        }
        if (choice.result) {
          this.values[name] = await choice.result.call(this, value, choice, i3);
        }
        if (focused) {
          msg = primary(msg);
        }
        if (choice.error) {
          input += (input ? " " : "") + danger(choice.error.trim());
        } else if (choice.hint) {
          input += (input ? " " : "") + muted(choice.hint.trim());
        }
        return line();
      }
      async submit() {
        this.value = this.values;
        return super.base.submit.call(this);
      }
    };
    module2.exports = FormPrompt;
  }
});

// ../../node_modules/enquirer/lib/types/auth.js
var require_auth = __commonJS({
  "../../node_modules/enquirer/lib/types/auth.js"(exports2, module2) {
    "use strict";
    var FormPrompt = require_form();
    var defaultAuthenticate = /* @__PURE__ */ __name(() => {
      throw new Error("expected prompt to have a custom authenticate method");
    }, "defaultAuthenticate");
    var factory = /* @__PURE__ */ __name((authenticate = defaultAuthenticate) => {
      class AuthPrompt extends FormPrompt {
        static {
          __name(this, "AuthPrompt");
        }
        constructor(options) {
          super(options);
        }
        async submit() {
          this.value = await authenticate.call(this, this.values, this.state);
          super.base.submit.call(this);
        }
        static create(authenticate2) {
          return factory(authenticate2);
        }
      }
      return AuthPrompt;
    }, "factory");
    module2.exports = factory();
  }
});

// ../../node_modules/enquirer/lib/prompts/basicauth.js
var require_basicauth = __commonJS({
  "../../node_modules/enquirer/lib/prompts/basicauth.js"(exports2, module2) {
    "use strict";
    var AuthPrompt = require_auth();
    function defaultAuthenticate(value, state2) {
      if (value.username === this.options.username && value.password === this.options.password) {
        return true;
      }
      return false;
    }
    __name(defaultAuthenticate, "defaultAuthenticate");
    var factory = /* @__PURE__ */ __name((authenticate = defaultAuthenticate) => {
      const choices = [
        { name: "username", message: "username" },
        {
          name: "password",
          message: "password",
          format(input) {
            if (this.options.showPassword) {
              return input;
            }
            let color = this.state.submitted ? this.styles.primary : this.styles.muted;
            return color(this.symbols.asterisk.repeat(input.length));
          }
        }
      ];
      class BasicAuthPrompt extends AuthPrompt.create(authenticate) {
        static {
          __name(this, "BasicAuthPrompt");
        }
        constructor(options) {
          super({ ...options, choices });
        }
        static create(authenticate2) {
          return factory(authenticate2);
        }
      }
      return BasicAuthPrompt;
    }, "factory");
    module2.exports = factory();
  }
});

// ../../node_modules/enquirer/lib/types/boolean.js
var require_boolean = __commonJS({
  "../../node_modules/enquirer/lib/types/boolean.js"(exports2, module2) {
    "use strict";
    var Prompt = require_prompt2();
    var { isPrimitive, hasColor } = require_utils9();
    var BooleanPrompt = class extends Prompt {
      static {
        __name(this, "BooleanPrompt");
      }
      constructor(options) {
        super(options);
        this.cursorHide();
      }
      async initialize() {
        let initial = await this.resolve(this.initial, this.state);
        this.input = await this.cast(initial);
        await super.initialize();
      }
      dispatch(ch) {
        if (!this.isValue(ch)) return this.alert();
        this.input = ch;
        return this.submit();
      }
      format(value) {
        let { styles, state: state2 } = this;
        return !state2.submitted ? styles.primary(value) : styles.success(value);
      }
      cast(input) {
        return this.isTrue(input);
      }
      isTrue(input) {
        return /^[ty1]/i.test(input);
      }
      isFalse(input) {
        return /^[fn0]/i.test(input);
      }
      isValue(value) {
        return isPrimitive(value) && (this.isTrue(value) || this.isFalse(value));
      }
      async hint() {
        if (this.state.status === "pending") {
          let hint = await this.element("hint");
          if (!hasColor(hint)) {
            return this.styles.muted(hint);
          }
          return hint;
        }
      }
      async render() {
        let { input, size } = this.state;
        let prefix2 = await this.prefix();
        let sep5 = await this.separator();
        let msg = await this.message();
        let hint = this.styles.muted(this.default);
        let promptLine = [prefix2, msg, hint, sep5].filter(Boolean).join(" ");
        this.state.prompt = promptLine;
        let header = await this.header();
        let value = this.value = this.cast(input);
        let output = await this.format(value);
        let help = await this.error() || await this.hint();
        let footer = await this.footer();
        if (help && !promptLine.includes(help)) output += " " + help;
        promptLine += " " + output;
        this.clear(size);
        this.write([header, promptLine, footer].filter(Boolean).join("\n"));
        this.restore();
      }
      set value(value) {
        super.value = value;
      }
      get value() {
        return this.cast(super.value);
      }
    };
    module2.exports = BooleanPrompt;
  }
});

// ../../node_modules/enquirer/lib/prompts/confirm.js
var require_confirm = __commonJS({
  "../../node_modules/enquirer/lib/prompts/confirm.js"(exports2, module2) {
    "use strict";
    var BooleanPrompt = require_boolean();
    var ConfirmPrompt = class extends BooleanPrompt {
      static {
        __name(this, "ConfirmPrompt");
      }
      constructor(options) {
        super(options);
        this.default = this.options.default || (this.initial ? "(Y/n)" : "(y/N)");
      }
    };
    module2.exports = ConfirmPrompt;
  }
});

// ../../node_modules/enquirer/lib/prompts/editable.js
var require_editable = __commonJS({
  "../../node_modules/enquirer/lib/prompts/editable.js"(exports2, module2) {
    "use strict";
    var Select2 = require_select();
    var Form = require_form();
    var form = Form.prototype;
    var Editable = class extends Select2 {
      static {
        __name(this, "Editable");
      }
      constructor(options) {
        super({ ...options, multiple: true });
        this.align = [this.options.align, "left"].find((v6) => v6 != null);
        this.emptyError = "";
        this.values = {};
      }
      dispatch(char, key) {
        let choice = this.focused;
        let parent = choice.parent || {};
        if (!choice.editable && !parent.editable) {
          if (char === "a" || char === "i") return super[char]();
        }
        return form.dispatch.call(this, char, key);
      }
      append(char, key) {
        return form.append.call(this, char, key);
      }
      delete(char, key) {
        return form.delete.call(this, char, key);
      }
      space(char) {
        return this.focused.editable ? this.append(char) : super.space();
      }
      number(char) {
        return this.focused.editable ? this.append(char) : super.number(char);
      }
      next() {
        return this.focused.editable ? form.next.call(this) : super.next();
      }
      prev() {
        return this.focused.editable ? form.prev.call(this) : super.prev();
      }
      async indicator(choice, i3) {
        let symbol = choice.indicator || "";
        let value = choice.editable ? symbol : super.indicator(choice, i3);
        return await this.resolve(value, this.state, choice, i3) || "";
      }
      indent(choice) {
        return choice.role === "heading" ? "" : choice.editable ? " " : "  ";
      }
      async renderChoice(choice, i3) {
        choice.indent = "";
        if (choice.editable) return form.renderChoice.call(this, choice, i3);
        return super.renderChoice(choice, i3);
      }
      error() {
        return "";
      }
      footer() {
        return this.state.error;
      }
      async validate() {
        let result2 = true;
        for (let choice of this.choices) {
          if (typeof choice.validate !== "function") {
            continue;
          }
          if (choice.role === "heading") {
            continue;
          }
          let val = choice.parent ? this.value[choice.parent.name] : this.value;
          if (choice.editable) {
            val = choice.value === choice.name ? choice.initial || "" : choice.value;
          } else if (!this.isDisabled(choice)) {
            val = choice.enabled === true;
          }
          result2 = await choice.validate(val, this.state);
          if (result2 !== true) {
            break;
          }
        }
        if (result2 !== true) {
          this.state.error = typeof result2 === "string" ? result2 : "Invalid Input";
        }
        return result2;
      }
      submit() {
        if (this.focused.newChoice === true) return super.submit();
        if (this.choices.some((ch) => ch.newChoice)) {
          return this.alert();
        }
        this.value = {};
        for (let choice of this.choices) {
          let val = choice.parent ? this.value[choice.parent.name] : this.value;
          if (choice.role === "heading") {
            this.value[choice.name] = {};
            continue;
          }
          if (choice.editable) {
            val[choice.name] = choice.value === choice.name ? choice.initial || "" : choice.value;
          } else if (!this.isDisabled(choice)) {
            val[choice.name] = choice.enabled === true;
          }
        }
        return this.base.submit.call(this);
      }
    };
    module2.exports = Editable;
  }
});

// ../../node_modules/enquirer/lib/types/string.js
var require_string2 = __commonJS({
  "../../node_modules/enquirer/lib/types/string.js"(exports2, module2) {
    "use strict";
    var Prompt = require_prompt2();
    var keypress = require_keypress();
    var placeholder = require_placeholder();
    var { isPrimitive } = require_utils9();
    var StringPrompt = class extends Prompt {
      static {
        __name(this, "StringPrompt");
      }
      constructor(options) {
        super(options);
        this.initial = isPrimitive(this.initial) ? String(this.initial) : "";
        if (this.initial) this.cursorHide();
        this.state.prevCursor = 0;
        this.state.clipboard = [];
        this.keypressTimeout = this.options.keypressTimeout !== void 0 ? this.options.keypressTimeout : null;
      }
      async keypress(input, key = input ? keypress(input, {}) : {}) {
        const now = Date.now();
        const elapsed = now - this.lastKeypress;
        this.lastKeypress = now;
        const isEnterKey = key.name === "return" || key.name === "enter";
        let prev = this.state.prevKeypress;
        let append;
        this.state.prevKeypress = key;
        if (this.keypressTimeout != null && isEnterKey) {
          if (elapsed < this.keypressTimeout) {
            return this.submit();
          }
          this.state.multilineBuffer = this.state.multilineBuffer || "";
          this.state.multilineBuffer += input;
          append = true;
          prev = null;
        }
        if (append || this.options.multiline && isEnterKey) {
          if (!prev || prev.name !== "return") {
            return this.append("\n", key);
          }
        }
        return super.keypress(input, key);
      }
      moveCursor(n3) {
        this.cursor += n3;
      }
      reset() {
        this.input = this.value = "";
        this.cursor = 0;
        return this.render();
      }
      dispatch(ch, key) {
        if (!ch || key.ctrl || key.code) return this.alert();
        this.append(ch);
      }
      append(ch) {
        let { cursor: cursor2, input } = this.state;
        this.input = `${input}`.slice(0, cursor2) + ch + `${input}`.slice(cursor2);
        this.moveCursor(String(ch).length);
        this.render();
      }
      insert(str) {
        this.append(str);
      }
      delete() {
        let { cursor: cursor2, input } = this.state;
        if (cursor2 <= 0) return this.alert();
        this.input = `${input}`.slice(0, cursor2 - 1) + `${input}`.slice(cursor2);
        this.moveCursor(-1);
        this.render();
      }
      deleteForward() {
        let { cursor: cursor2, input } = this.state;
        if (input[cursor2] === void 0) return this.alert();
        this.input = `${input}`.slice(0, cursor2) + `${input}`.slice(cursor2 + 1);
        this.render();
      }
      cutForward() {
        let pos = this.cursor;
        if (this.input.length <= pos) return this.alert();
        this.state.clipboard.push(this.input.slice(pos));
        this.input = this.input.slice(0, pos);
        this.render();
      }
      cutLeft() {
        let pos = this.cursor;
        if (pos === 0) return this.alert();
        let before = this.input.slice(0, pos);
        let after = this.input.slice(pos);
        let words = before.split(" ");
        this.state.clipboard.push(words.pop());
        this.input = words.join(" ");
        this.cursor = this.input.length;
        this.input += after;
        this.render();
      }
      paste() {
        if (!this.state.clipboard.length) return this.alert();
        this.insert(this.state.clipboard.pop());
        this.render();
      }
      toggleCursor() {
        if (this.state.prevCursor) {
          this.cursor = this.state.prevCursor;
          this.state.prevCursor = 0;
        } else {
          this.state.prevCursor = this.cursor;
          this.cursor = 0;
        }
        this.render();
      }
      first() {
        this.cursor = 0;
        this.render();
      }
      last() {
        this.cursor = this.input.length - 1;
        this.render();
      }
      next() {
        let init = this.initial != null ? String(this.initial) : "";
        if (!init || !init.startsWith(this.input)) return this.alert();
        this.input = this.initial;
        this.cursor = this.initial.length;
        this.render();
      }
      prev() {
        if (!this.input) return this.alert();
        this.reset();
      }
      backward() {
        return this.left();
      }
      forward() {
        return this.right();
      }
      right() {
        if (this.cursor >= this.input.length) return this.alert();
        this.moveCursor(1);
        return this.render();
      }
      left() {
        if (this.cursor <= 0) return this.alert();
        this.moveCursor(-1);
        return this.render();
      }
      isValue(value) {
        return !!value;
      }
      async format(input = this.value) {
        let initial = await this.resolve(this.initial, this.state);
        if (!this.state.submitted) {
          return placeholder(this, { input, initial, pos: this.cursor });
        }
        return this.styles.submitted(input || initial);
      }
      async render() {
        let size = this.state.size;
        let prefix2 = await this.prefix();
        let separator = await this.separator();
        let message2 = await this.message();
        let prompt2 = [prefix2, message2, separator].filter(Boolean).join(" ");
        this.state.prompt = prompt2;
        let header = await this.header();
        let output = await this.format();
        let help = await this.error() || await this.hint();
        let footer = await this.footer();
        if (help && !output.includes(help)) output += " " + help;
        prompt2 += " " + output;
        this.clear(size);
        this.write([header, prompt2, footer].filter(Boolean).join("\n"));
        this.restore();
      }
    };
    module2.exports = StringPrompt;
  }
});

// ../../node_modules/enquirer/lib/completer.js
var require_completer = __commonJS({
  "../../node_modules/enquirer/lib/completer.js"(exports2, module2) {
    "use strict";
    var unique = /* @__PURE__ */ __name((arr) => arr.filter((v6, i3) => arr.lastIndexOf(v6) === i3), "unique");
    var compact = /* @__PURE__ */ __name((arr) => unique(arr).filter(Boolean), "compact");
    module2.exports = (action, data3 = {}, value = "") => {
      let { past = [], present = "" } = data3;
      let rest, prev;
      switch (action) {
        case "prev":
        case "undo":
          rest = past.slice(0, past.length - 1);
          prev = past[past.length - 1] || "";
          return {
            past: compact([value, ...rest]),
            present: prev
          };
        case "next":
        case "redo":
          rest = past.slice(1);
          prev = past[0] || "";
          return {
            past: compact([...rest, value]),
            present: prev
          };
        case "save":
          return {
            past: compact([...past, value]),
            present: ""
          };
        case "remove":
          prev = compact(past.filter((v6) => v6 !== value));
          present = "";
          if (prev.length) {
            present = prev.pop();
          }
          return {
            past: prev,
            present
          };
        default: {
          throw new Error(`Invalid action: "${action}"`);
        }
      }
    };
  }
});

// ../../node_modules/enquirer/lib/prompts/input.js
var require_input = __commonJS({
  "../../node_modules/enquirer/lib/prompts/input.js"(exports2, module2) {
    "use strict";
    var Prompt = require_string2();
    var completer = require_completer();
    var Input = class extends Prompt {
      static {
        __name(this, "Input");
      }
      constructor(options) {
        super(options);
        let history = this.options.history;
        if (history && history.store) {
          let initial = history.values || this.initial;
          this.autosave = !!history.autosave;
          this.store = history.store;
          this.data = this.store.get("values") || { past: [], present: initial };
          this.initial = this.data.present || this.data.past[this.data.past.length - 1];
        }
      }
      completion(action) {
        if (!this.store) return this.alert();
        this.data = completer(action, this.data, this.input);
        if (!this.data.present) return this.alert();
        this.input = this.data.present;
        this.cursor = this.input.length;
        return this.render();
      }
      altUp() {
        return this.completion("prev");
      }
      altDown() {
        return this.completion("next");
      }
      prev() {
        this.save();
        return super.prev();
      }
      save() {
        if (!this.store) return;
        this.data = completer("save", this.data, this.input);
        this.store.set("values", this.data);
      }
      submit() {
        if (this.store && this.autosave === true) {
          this.save();
        }
        return super.submit();
      }
    };
    module2.exports = Input;
  }
});

// ../../node_modules/enquirer/lib/prompts/invisible.js
var require_invisible = __commonJS({
  "../../node_modules/enquirer/lib/prompts/invisible.js"(exports2, module2) {
    "use strict";
    var StringPrompt = require_string2();
    var InvisiblePrompt = class extends StringPrompt {
      static {
        __name(this, "InvisiblePrompt");
      }
      format() {
        return "";
      }
    };
    module2.exports = InvisiblePrompt;
  }
});

// ../../node_modules/enquirer/lib/prompts/list.js
var require_list = __commonJS({
  "../../node_modules/enquirer/lib/prompts/list.js"(exports2, module2) {
    "use strict";
    var StringPrompt = require_string2();
    var ListPrompt = class extends StringPrompt {
      static {
        __name(this, "ListPrompt");
      }
      constructor(options = {}) {
        super(options);
        this.sep = this.options.separator || /, */;
        this.initial = options.initial || "";
      }
      split(input = this.value) {
        return input ? String(input).split(this.sep) : [];
      }
      format() {
        let style = this.state.submitted ? this.styles.primary : (val) => val;
        return this.list.map(style).join(", ");
      }
      async submit(value) {
        let result2 = this.state.error || await this.validate(this.list, this.state);
        if (result2 !== true) {
          this.state.error = result2;
          return super.submit();
        }
        this.value = this.list;
        return super.submit();
      }
      get list() {
        return this.split();
      }
    };
    module2.exports = ListPrompt;
  }
});

// ../../node_modules/enquirer/lib/prompts/multiselect.js
var require_multiselect = __commonJS({
  "../../node_modules/enquirer/lib/prompts/multiselect.js"(exports2, module2) {
    "use strict";
    var Select2 = require_select();
    var MultiSelect = class extends Select2 {
      static {
        __name(this, "MultiSelect");
      }
      constructor(options) {
        super({ ...options, multiple: true });
      }
    };
    module2.exports = MultiSelect;
  }
});

// ../../node_modules/enquirer/lib/types/number.js
var require_number = __commonJS({
  "../../node_modules/enquirer/lib/types/number.js"(exports2, module2) {
    "use strict";
    var StringPrompt = require_string2();
    var NumberPrompt = class extends StringPrompt {
      static {
        __name(this, "NumberPrompt");
      }
      constructor(options = {}) {
        super({ style: "number", ...options });
        this.min = this.isValue(options.min) ? this.toNumber(options.min) : -Infinity;
        this.max = this.isValue(options.max) ? this.toNumber(options.max) : Infinity;
        this.delay = options.delay != null ? options.delay : 1e3;
        this.float = options.float !== false;
        this.round = options.round === true || options.float === false;
        this.major = options.major || 10;
        this.minor = options.minor || 1;
        this.initial = options.initial != null ? options.initial : "";
        this.input = String(this.initial);
        this.cursor = this.input.length;
        this.cursorShow();
      }
      append(ch) {
        if (!/[-+.]/.test(ch) || ch === "." && this.input.includes(".")) {
          return this.alert("invalid number");
        }
        return super.append(ch);
      }
      number(ch) {
        return super.append(ch);
      }
      next() {
        if (this.input && this.input !== this.initial) return this.alert();
        if (!this.isValue(this.initial)) return this.alert();
        this.input = this.initial;
        this.cursor = String(this.initial).length;
        return this.render();
      }
      up(number) {
        let step = number || this.minor;
        let num = this.toNumber(this.input);
        if (num > this.max + step) return this.alert();
        this.input = `${num + step}`;
        return this.render();
      }
      down(number) {
        let step = number || this.minor;
        let num = this.toNumber(this.input);
        if (num < this.min - step) return this.alert();
        this.input = `${num - step}`;
        return this.render();
      }
      shiftDown() {
        return this.down(this.major);
      }
      shiftUp() {
        return this.up(this.major);
      }
      format(input = this.input) {
        if (typeof this.options.format === "function") {
          return this.options.format.call(this, input);
        }
        return this.styles.info(input);
      }
      toNumber(value = "") {
        return this.float ? +value : Math.round(+value);
      }
      isValue(value) {
        return /^[-+]?[0-9]+((\.)|(\.[0-9]+))?$/.test(value);
      }
      submit() {
        let value = [this.input, this.initial].find((v6) => this.isValue(v6));
        this.value = this.toNumber(value || 0);
        return super.submit();
      }
    };
    module2.exports = NumberPrompt;
  }
});

// ../../node_modules/enquirer/lib/prompts/numeral.js
var require_numeral = __commonJS({
  "../../node_modules/enquirer/lib/prompts/numeral.js"(exports2, module2) {
    module2.exports = require_number();
  }
});

// ../../node_modules/enquirer/lib/prompts/password.js
var require_password = __commonJS({
  "../../node_modules/enquirer/lib/prompts/password.js"(exports2, module2) {
    "use strict";
    var StringPrompt = require_string2();
    var PasswordPrompt = class extends StringPrompt {
      static {
        __name(this, "PasswordPrompt");
      }
      constructor(options) {
        super(options);
        this.cursorShow();
      }
      format(input = this.input) {
        if (!this.keypressed) return "";
        let color = this.state.submitted ? this.styles.primary : this.styles.muted;
        return color(this.symbols.asterisk.repeat(input.length));
      }
    };
    module2.exports = PasswordPrompt;
  }
});

// ../../node_modules/enquirer/lib/prompts/scale.js
var require_scale = __commonJS({
  "../../node_modules/enquirer/lib/prompts/scale.js"(exports2, module2) {
    "use strict";
    var stripAnsi2 = require_strip_ansi();
    var ArrayPrompt = require_array3();
    var utils = require_utils9();
    var LikertScale = class extends ArrayPrompt {
      static {
        __name(this, "LikertScale");
      }
      constructor(options = {}) {
        super(options);
        this.widths = [].concat(options.messageWidth || 50);
        this.align = [].concat(options.align || "left");
        this.linebreak = options.linebreak || false;
        this.edgeLength = options.edgeLength || 3;
        this.newline = options.newline || "\n   ";
        let start = options.startNumber || 1;
        if (typeof this.scale === "number") {
          this.scaleKey = false;
          this.scale = Array(this.scale).fill(0).map((v6, i3) => ({ name: i3 + start }));
        }
      }
      async reset() {
        this.tableized = false;
        await super.reset();
        return this.render();
      }
      tableize() {
        if (this.tableized === true) return;
        this.tableized = true;
        let longest = 0;
        for (let ch of this.choices) {
          longest = Math.max(longest, ch.message.length);
          ch.scaleIndex = ch.initial || 2;
          ch.scale = [];
          for (let i3 = 0; i3 < this.scale.length; i3++) {
            ch.scale.push({ index: i3 });
          }
        }
        this.widths[0] = Math.min(this.widths[0], longest + 3);
      }
      async dispatch(s3, key) {
        if (this.multiple) {
          return this[key.name] ? await this[key.name](s3, key) : await super.dispatch(s3, key);
        }
        this.alert();
      }
      heading(msg, item, i3) {
        return this.styles.strong(msg);
      }
      separator() {
        return this.styles.muted(this.symbols.ellipsis);
      }
      right() {
        let choice = this.focused;
        if (choice.scaleIndex >= this.scale.length - 1) return this.alert();
        choice.scaleIndex++;
        return this.render();
      }
      left() {
        let choice = this.focused;
        if (choice.scaleIndex <= 0) return this.alert();
        choice.scaleIndex--;
        return this.render();
      }
      indent() {
        return "";
      }
      format() {
        if (this.state.submitted) {
          let values = this.choices.map((ch) => this.styles.info(ch.index));
          return values.join(", ");
        }
        return "";
      }
      pointer() {
        return "";
      }
      /**
       * Render the scale "Key". Something like:
       * @return {String}
       */
      renderScaleKey() {
        if (this.scaleKey === false) return "";
        if (this.state.submitted) return "";
        let scale = this.scale.map((item) => `   ${item.name} - ${item.message}`);
        let key = ["", ...scale].map((item) => this.styles.muted(item));
        return key.join("\n");
      }
      /**
       * Render the heading row for the scale.
       * @return {String}
       */
      renderScaleHeading(max) {
        let keys = this.scale.map((ele) => ele.name);
        if (typeof this.options.renderScaleHeading === "function") {
          keys = this.options.renderScaleHeading.call(this, max);
        }
        let diff = this.scaleLength - keys.join("").length;
        let spacing = Math.round(diff / (keys.length - 1));
        let names = keys.map((key) => this.styles.strong(key));
        let headings = names.join(" ".repeat(spacing));
        let padding = " ".repeat(this.widths[0]);
        return this.margin[3] + padding + this.margin[1] + headings;
      }
      /**
       * Render a scale indicator => ◯ or ◉ by default
       */
      scaleIndicator(choice, item, i3) {
        if (typeof this.options.scaleIndicator === "function") {
          return this.options.scaleIndicator.call(this, choice, item, i3);
        }
        let enabled = choice.scaleIndex === item.index;
        if (item.disabled) return this.styles.hint(this.symbols.radio.disabled);
        if (enabled) return this.styles.success(this.symbols.radio.on);
        return this.symbols.radio.off;
      }
      /**
       * Render the actual scale => ◯────◯────◉────◯────◯
       */
      renderScale(choice, i3) {
        let scale = choice.scale.map((item) => this.scaleIndicator(choice, item, i3));
        let padding = this.term === "Hyper" ? "" : " ";
        return scale.join(padding + this.symbols.line.repeat(this.edgeLength));
      }
      /**
       * Render a choice, including scale =>
       *   "The website is easy to navigate. ◯───◯───◉───◯───◯"
       */
      async renderChoice(choice, i3) {
        await this.onChoice(choice, i3);
        let focused = this.index === i3;
        let pointer = await this.pointer(choice, i3);
        let hint = await choice.hint;
        if (hint && !utils.hasColor(hint)) {
          hint = this.styles.muted(hint);
        }
        let pad = /* @__PURE__ */ __name((str) => this.margin[3] + str.replace(/\s+$/, "").padEnd(this.widths[0], " "), "pad");
        let newline = this.newline;
        let ind = this.indent(choice);
        let message2 = await this.resolve(choice.message, this.state, choice, i3);
        let scale = await this.renderScale(choice, i3);
        let margin = this.margin[1] + this.margin[3];
        this.scaleLength = stripAnsi2(scale).length;
        this.widths[0] = Math.min(this.widths[0], this.width - this.scaleLength - margin.length);
        let msg = utils.wordWrap(message2, { width: this.widths[0], newline });
        let lines = msg.split("\n").map((line) => pad(line) + this.margin[1]);
        if (focused) {
          scale = this.styles.info(scale);
          lines = lines.map((line) => this.styles.info(line));
        }
        lines[0] += scale;
        if (this.linebreak) lines.push("");
        return [ind + pointer, lines.join("\n")].filter(Boolean);
      }
      async renderChoices() {
        if (this.state.submitted) return "";
        this.tableize();
        let choices = this.visible.map(async (ch, i3) => await this.renderChoice(ch, i3));
        let visible = await Promise.all(choices);
        let heading = await this.renderScaleHeading();
        return this.margin[0] + [heading, ...visible.map((v6) => v6.join(" "))].join("\n");
      }
      async render() {
        let { submitted, size } = this.state;
        let prefix2 = await this.prefix();
        let separator = await this.separator();
        let message2 = await this.message();
        let prompt2 = "";
        if (this.options.promptLine !== false) {
          prompt2 = [prefix2, message2, separator, ""].join(" ");
          this.state.prompt = prompt2;
        }
        let header = await this.header();
        let output = await this.format();
        let key = await this.renderScaleKey();
        let help = await this.error() || await this.hint();
        let body = await this.renderChoices();
        let footer = await this.footer();
        let err = this.emptyError;
        if (output) prompt2 += output;
        if (help && !prompt2.includes(help)) prompt2 += " " + help;
        if (submitted && !output && !body.trim() && this.multiple && err != null) {
          prompt2 += this.styles.danger(err);
        }
        this.clear(size);
        this.write([header, prompt2, key, body, footer].filter(Boolean).join("\n"));
        if (!this.state.submitted) {
          this.write(this.margin[2]);
        }
        this.restore();
      }
      submit() {
        this.value = {};
        for (let choice of this.choices) {
          this.value[choice.name] = choice.scaleIndex;
        }
        return this.base.submit.call(this);
      }
    };
    module2.exports = LikertScale;
  }
});

// ../../node_modules/enquirer/lib/interpolate.js
var require_interpolate = __commonJS({
  "../../node_modules/enquirer/lib/interpolate.js"(exports2, module2) {
    "use strict";
    var stripAnsi2 = require_strip_ansi();
    var clean = /* @__PURE__ */ __name((str = "") => {
      return typeof str === "string" ? str.replace(/^['"]|['"]$/g, "") : "";
    }, "clean");
    var Item = class {
      static {
        __name(this, "Item");
      }
      constructor(token) {
        this.name = token.key;
        this.field = token.field || {};
        this.value = clean(token.initial || this.field.initial || "");
        this.message = token.message || this.name;
        this.cursor = 0;
        this.input = "";
        this.lines = [];
      }
    };
    var tokenize = /* @__PURE__ */ __name(async (options = {}, defaults4 = {}, fn = (token) => token) => {
      let unique = /* @__PURE__ */ new Set();
      let fields = options.fields || [];
      let input = options.template;
      let tabstops = [];
      let items = [];
      let keys = [];
      let line = 1;
      if (typeof input === "function") {
        input = await input();
      }
      let i3 = -1;
      let next = /* @__PURE__ */ __name(() => input[++i3], "next");
      let peek = /* @__PURE__ */ __name(() => input[i3 + 1], "peek");
      let push = /* @__PURE__ */ __name((token) => {
        token.line = line;
        tabstops.push(token);
      }, "push");
      push({ type: "bos", value: "" });
      while (i3 < input.length - 1) {
        let value = next();
        if (/^[^\S\n ]$/.test(value)) {
          push({ type: "text", value });
          continue;
        }
        if (value === "\n") {
          push({ type: "newline", value });
          line++;
          continue;
        }
        if (value === "\\") {
          value += next();
          push({ type: "text", value });
          continue;
        }
        if ((value === "$" || value === "#" || value === "{") && peek() === "{") {
          let n3 = next();
          value += n3;
          let token = { type: "template", open: value, inner: "", close: "", value };
          let ch;
          while (ch = next()) {
            if (ch === "}") {
              if (peek() === "}") ch += next();
              token.value += ch;
              token.close = ch;
              break;
            }
            if (ch === ":") {
              token.initial = "";
              token.key = token.inner;
            } else if (token.initial !== void 0) {
              token.initial += ch;
            }
            token.value += ch;
            token.inner += ch;
          }
          token.template = token.open + (token.initial || token.inner) + token.close;
          token.key = token.key || token.inner;
          if (hasOwnProperty.call(defaults4, token.key)) {
            token.initial = defaults4[token.key];
          }
          token = fn(token);
          push(token);
          keys.push(token.key);
          unique.add(token.key);
          let item = items.find((item2) => item2.name === token.key);
          token.field = fields.find((ch2) => ch2.name === token.key);
          if (!item) {
            item = new Item(token);
            items.push(item);
          }
          item.lines.push(token.line - 1);
          continue;
        }
        let last = tabstops[tabstops.length - 1];
        if (last.type === "text" && last.line === line) {
          last.value += value;
        } else {
          push({ type: "text", value });
        }
      }
      push({ type: "eos", value: "" });
      return { input, tabstops, unique, keys, items };
    }, "tokenize");
    module2.exports = async (prompt2) => {
      let options = prompt2.options;
      let required = new Set(options.required === true ? [] : options.required || []);
      let defaults4 = { ...options.values, ...options.initial };
      let { tabstops, items, keys } = await tokenize(options, defaults4);
      let result2 = createFn("result", prompt2, options);
      let format26 = createFn("format", prompt2, options);
      let isValid = createFn("validate", prompt2, options, true);
      let isVal = prompt2.isValue.bind(prompt2);
      return async (state2 = {}, submitted = false) => {
        let index = 0;
        state2.required = required;
        state2.items = items;
        state2.keys = keys;
        state2.output = "";
        let validate3 = /* @__PURE__ */ __name(async (value, state3, item, index2) => {
          let error5 = await isValid(value, state3, item, index2);
          if (error5 === false) {
            return "Invalid field " + item.name;
          }
          return error5;
        }, "validate");
        for (let token of tabstops) {
          let value = token.value;
          let key = token.key;
          if (token.type !== "template") {
            if (value) state2.output += value;
            continue;
          }
          if (token.type === "template") {
            let item = items.find((ch) => ch.name === key);
            if (options.required === true) {
              state2.required.add(item.name);
            }
            let val = [item.input, state2.values[item.value], item.value, value].find(isVal);
            let field = item.field || {};
            let message2 = field.message || token.inner;
            if (submitted) {
              let error5 = await validate3(state2.values[key], state2, item, index);
              if (error5 && typeof error5 === "string" || error5 === false) {
                state2.invalid.set(key, error5);
                continue;
              }
              state2.invalid.delete(key);
              let res = await result2(state2.values[key], state2, item, index);
              state2.output += stripAnsi2(res);
              continue;
            }
            item.placeholder = false;
            let before = value;
            value = await format26(value, state2, item, index);
            if (val !== value) {
              state2.values[key] = val;
              value = prompt2.styles.typing(val);
              state2.missing.delete(message2);
            } else {
              state2.values[key] = void 0;
              val = `<${message2}>`;
              value = prompt2.styles.primary(val);
              item.placeholder = true;
              if (state2.required.has(key)) {
                state2.missing.add(message2);
              }
            }
            if (state2.missing.has(message2) && state2.validating) {
              value = prompt2.styles.warning(val);
            }
            if (state2.invalid.has(key) && state2.validating) {
              value = prompt2.styles.danger(val);
            }
            if (index === state2.index) {
              if (before !== value) {
                value = prompt2.styles.underline(value);
              } else {
                value = prompt2.styles.heading(stripAnsi2(value));
              }
            }
            index++;
          }
          if (value) {
            state2.output += value;
          }
        }
        let lines = state2.output.split("\n").map((l3) => " " + l3);
        let len = items.length;
        let done = 0;
        for (let item of items) {
          if (state2.invalid.has(item.name)) {
            item.lines.forEach((i3) => {
              if (lines[i3][0] !== " ") return;
              lines[i3] = state2.styles.danger(state2.symbols.bullet) + lines[i3].slice(1);
            });
          }
          if (prompt2.isValue(state2.values[item.name])) {
            done++;
          }
        }
        state2.completed = (done / len * 100).toFixed(0);
        state2.output = lines.join("\n");
        return state2.output;
      };
    };
    function createFn(prop, prompt2, options, fallback) {
      return (value, state2, item, index) => {
        if (typeof item.field[prop] === "function") {
          return item.field[prop].call(prompt2, value, state2, item, index);
        }
        return [fallback, value].find((v6) => prompt2.isValue(v6));
      };
    }
    __name(createFn, "createFn");
  }
});

// ../../node_modules/enquirer/lib/prompts/snippet.js
var require_snippet = __commonJS({
  "../../node_modules/enquirer/lib/prompts/snippet.js"(exports2, module2) {
    "use strict";
    var stripAnsi2 = require_strip_ansi();
    var interpolate = require_interpolate();
    var Prompt = require_prompt2();
    var SnippetPrompt = class extends Prompt {
      static {
        __name(this, "SnippetPrompt");
      }
      constructor(options) {
        super(options);
        this.cursorHide();
        this.reset(true);
      }
      async initialize() {
        this.interpolate = await interpolate(this);
        await super.initialize();
      }
      async reset(first) {
        this.state.keys = [];
        this.state.invalid = /* @__PURE__ */ new Map();
        this.state.missing = /* @__PURE__ */ new Set();
        this.state.completed = 0;
        this.state.values = {};
        if (first !== true) {
          await this.initialize();
          await this.render();
        }
      }
      moveCursor(n3) {
        let item = this.getItem();
        this.cursor += n3;
        item.cursor += n3;
      }
      dispatch(ch, key) {
        if (!key.code && !key.ctrl && ch != null && this.getItem()) {
          this.append(ch, key);
          return;
        }
        this.alert();
      }
      append(ch, key) {
        let item = this.getItem();
        let prefix2 = item.input.slice(0, this.cursor);
        let suffix = item.input.slice(this.cursor);
        this.input = item.input = `${prefix2}${ch}${suffix}`;
        this.moveCursor(1);
        this.render();
      }
      delete() {
        let item = this.getItem();
        if (this.cursor <= 0 || !item.input) return this.alert();
        let suffix = item.input.slice(this.cursor);
        let prefix2 = item.input.slice(0, this.cursor - 1);
        this.input = item.input = `${prefix2}${suffix}`;
        this.moveCursor(-1);
        this.render();
      }
      increment(i3) {
        return i3 >= this.state.keys.length - 1 ? 0 : i3 + 1;
      }
      decrement(i3) {
        return i3 <= 0 ? this.state.keys.length - 1 : i3 - 1;
      }
      first() {
        this.state.index = 0;
        this.render();
      }
      last() {
        this.state.index = this.state.keys.length - 1;
        this.render();
      }
      right() {
        if (this.cursor >= this.input.length) return this.alert();
        this.moveCursor(1);
        this.render();
      }
      left() {
        if (this.cursor <= 0) return this.alert();
        this.moveCursor(-1);
        this.render();
      }
      prev() {
        this.state.index = this.decrement(this.state.index);
        this.getItem();
        this.render();
      }
      next() {
        this.state.index = this.increment(this.state.index);
        this.getItem();
        this.render();
      }
      up() {
        this.prev();
      }
      down() {
        this.next();
      }
      format(value) {
        let color = this.state.completed < 100 ? this.styles.warning : this.styles.success;
        if (this.state.submitted === true && this.state.completed !== 100) {
          color = this.styles.danger;
        }
        return color(`${this.state.completed}% completed`);
      }
      async render() {
        let { index, keys = [], submitted, size } = this.state;
        let newline = [this.options.newline, "\n"].find((v6) => v6 != null);
        let prefix2 = await this.prefix();
        let separator = await this.separator();
        let message2 = await this.message();
        let prompt2 = [prefix2, message2, separator].filter(Boolean).join(" ");
        this.state.prompt = prompt2;
        let header = await this.header();
        let error5 = await this.error() || "";
        let hint = await this.hint() || "";
        let body = submitted ? "" : await this.interpolate(this.state);
        let key = this.state.key = keys[index] || "";
        let input = await this.format(key);
        let footer = await this.footer();
        if (input) prompt2 += " " + input;
        if (hint && !input && this.state.completed === 0) prompt2 += " " + hint;
        this.clear(size);
        let lines = [header, prompt2, body, footer, error5.trim()];
        this.write(lines.filter(Boolean).join(newline));
        this.restore();
      }
      getItem(name) {
        let { items, keys, index } = this.state;
        let item = items.find((ch) => ch.name === keys[index]);
        if (item && item.input != null) {
          this.input = item.input;
          this.cursor = item.cursor;
        }
        return item;
      }
      async submit() {
        if (typeof this.interpolate !== "function") await this.initialize();
        await this.interpolate(this.state, true);
        let { invalid, missing, output, values } = this.state;
        if (invalid.size) {
          let err = "";
          for (let [key, value] of invalid) err += `Invalid ${key}: ${value}
`;
          this.state.error = err;
          return super.submit();
        }
        if (missing.size) {
          this.state.error = "Required: " + [...missing.keys()].join(", ");
          return super.submit();
        }
        let lines = stripAnsi2(output).split("\n");
        let result2 = lines.map((v6) => v6.slice(1)).join("\n");
        this.value = { values, result: result2 };
        return super.submit();
      }
    };
    module2.exports = SnippetPrompt;
  }
});

// ../../node_modules/enquirer/lib/prompts/sort.js
var require_sort3 = __commonJS({
  "../../node_modules/enquirer/lib/prompts/sort.js"(exports2, module2) {
    "use strict";
    var hint = "(Use <shift>+<up/down> to sort)";
    var Prompt = require_select();
    var Sort = class extends Prompt {
      static {
        __name(this, "Sort");
      }
      constructor(options) {
        super({ ...options, reorder: false, sort: true, multiple: true });
        this.state.hint = [this.options.hint, hint].find(this.isValue.bind(this));
      }
      indicator() {
        return "";
      }
      async renderChoice(choice, i3) {
        let str = await super.renderChoice(choice, i3);
        let sym = this.symbols.identicalTo + " ";
        let pre = this.index === i3 && this.sorting ? this.styles.muted(sym) : "  ";
        if (this.options.drag === false) pre = "";
        if (this.options.numbered === true) {
          return pre + `${i3 + 1} - ` + str;
        }
        return pre + str;
      }
      get selected() {
        return this.choices;
      }
      submit() {
        this.value = this.choices.map((choice) => choice.value);
        return super.submit();
      }
    };
    module2.exports = Sort;
  }
});

// ../../node_modules/enquirer/lib/prompts/survey.js
var require_survey = __commonJS({
  "../../node_modules/enquirer/lib/prompts/survey.js"(exports2, module2) {
    "use strict";
    var ArrayPrompt = require_array3();
    var Survey = class extends ArrayPrompt {
      static {
        __name(this, "Survey");
      }
      constructor(options = {}) {
        super(options);
        this.emptyError = options.emptyError || "No items were selected";
        this.term = process.env.TERM_PROGRAM;
        if (!this.options.header) {
          let header = ["", "4 - Strongly Agree", "3 - Agree", "2 - Neutral", "1 - Disagree", "0 - Strongly Disagree", ""];
          header = header.map((ele) => this.styles.muted(ele));
          this.state.header = header.join("\n   ");
        }
      }
      async toChoices(...args) {
        if (this.createdScales) return false;
        this.createdScales = true;
        let choices = await super.toChoices(...args);
        for (let choice of choices) {
          choice.scale = createScale(5, this.options);
          choice.scaleIdx = 2;
        }
        return choices;
      }
      dispatch() {
        this.alert();
      }
      space() {
        let choice = this.focused;
        let ele = choice.scale[choice.scaleIdx];
        let selected = ele.selected;
        choice.scale.forEach((e3) => e3.selected = false);
        ele.selected = !selected;
        return this.render();
      }
      indicator() {
        return "";
      }
      pointer() {
        return "";
      }
      separator() {
        return this.styles.muted(this.symbols.ellipsis);
      }
      right() {
        let choice = this.focused;
        if (choice.scaleIdx >= choice.scale.length - 1) return this.alert();
        choice.scaleIdx++;
        return this.render();
      }
      left() {
        let choice = this.focused;
        if (choice.scaleIdx <= 0) return this.alert();
        choice.scaleIdx--;
        return this.render();
      }
      indent() {
        return "   ";
      }
      async renderChoice(item, i3) {
        await this.onChoice(item, i3);
        let focused = this.index === i3;
        let isHyper = this.term === "Hyper";
        let n3 = !isHyper ? 8 : 9;
        let s3 = !isHyper ? " " : "";
        let ln = this.symbols.line.repeat(n3);
        let sp = " ".repeat(n3 + (isHyper ? 0 : 1));
        let dot = /* @__PURE__ */ __name((enabled) => (enabled ? this.styles.success("\u25C9") : "\u25EF") + s3, "dot");
        let num = i3 + 1 + ".";
        let color = focused ? this.styles.heading : this.styles.noop;
        let msg = await this.resolve(item.message, this.state, item, i3);
        let indent = this.indent(item);
        let scale = indent + item.scale.map((e3, i4) => dot(i4 === item.scaleIdx)).join(ln);
        let val = /* @__PURE__ */ __name((i4) => i4 === item.scaleIdx ? color(i4) : i4, "val");
        let next = indent + item.scale.map((e3, i4) => val(i4)).join(sp);
        let line = /* @__PURE__ */ __name(() => [num, msg].filter(Boolean).join(" "), "line");
        let lines = /* @__PURE__ */ __name(() => [line(), scale, next, " "].filter(Boolean).join("\n"), "lines");
        if (focused) {
          scale = this.styles.cyan(scale);
          next = this.styles.cyan(next);
        }
        return lines();
      }
      async renderChoices() {
        if (this.state.submitted) return "";
        let choices = this.visible.map(async (ch, i3) => await this.renderChoice(ch, i3));
        let visible = await Promise.all(choices);
        if (!visible.length) visible.push(this.styles.danger("No matching choices"));
        return visible.join("\n");
      }
      format() {
        if (this.state.submitted) {
          let values = this.choices.map((ch) => this.styles.info(ch.scaleIdx));
          return values.join(", ");
        }
        return "";
      }
      async render() {
        let { submitted, size } = this.state;
        let prefix2 = await this.prefix();
        let separator = await this.separator();
        let message2 = await this.message();
        let prompt2 = [prefix2, message2, separator].filter(Boolean).join(" ");
        this.state.prompt = prompt2;
        let header = await this.header();
        let output = await this.format();
        let help = await this.error() || await this.hint();
        let body = await this.renderChoices();
        let footer = await this.footer();
        if (output || !help) prompt2 += " " + output;
        if (help && !prompt2.includes(help)) prompt2 += " " + help;
        if (submitted && !output && !body && this.multiple && this.type !== "form") {
          prompt2 += this.styles.danger(this.emptyError);
        }
        this.clear(size);
        this.write([prompt2, header, body, footer].filter(Boolean).join("\n"));
        this.restore();
      }
      submit() {
        this.value = {};
        for (let choice of this.choices) {
          this.value[choice.name] = choice.scaleIdx;
        }
        return this.base.submit.call(this);
      }
    };
    function createScale(n3, options = {}) {
      if (Array.isArray(options.scale)) {
        return options.scale.map((ele) => ({ ...ele }));
      }
      let scale = [];
      for (let i3 = 1; i3 < n3 + 1; i3++) scale.push({ i: i3, selected: false });
      return scale;
    }
    __name(createScale, "createScale");
    module2.exports = Survey;
  }
});

// ../../node_modules/enquirer/lib/prompts/text.js
var require_text = __commonJS({
  "../../node_modules/enquirer/lib/prompts/text.js"(exports2, module2) {
    module2.exports = require_input();
  }
});

// ../../node_modules/enquirer/lib/prompts/toggle.js
var require_toggle = __commonJS({
  "../../node_modules/enquirer/lib/prompts/toggle.js"(exports2, module2) {
    "use strict";
    var BooleanPrompt = require_boolean();
    var TogglePrompt = class extends BooleanPrompt {
      static {
        __name(this, "TogglePrompt");
      }
      async initialize() {
        await super.initialize();
        this.value = this.initial = this.resolve(this.options.initial);
        this.disabled = this.options.disabled || "no";
        this.enabled = this.options.enabled || "yes";
        await this.render();
      }
      reset() {
        this.value = this.initial;
        this.render();
      }
      delete() {
        this.alert();
      }
      toggle() {
        this.value = !this.value;
        this.render();
      }
      enable() {
        if (this.value === true) return this.alert();
        this.value = true;
        this.render();
      }
      disable() {
        if (this.value === false) return this.alert();
        this.value = false;
        this.render();
      }
      up() {
        this.toggle();
      }
      down() {
        this.toggle();
      }
      right() {
        this.toggle();
      }
      left() {
        this.toggle();
      }
      next() {
        this.toggle();
      }
      prev() {
        this.toggle();
      }
      dispatch(ch = "", key) {
        switch (ch.toLowerCase()) {
          case " ":
            return this.toggle();
          case "1":
          case "y":
          case "t":
            return this.enable();
          case "0":
          case "n":
          case "f":
            return this.disable();
          default: {
            return this.alert();
          }
        }
      }
      format() {
        let active = /* @__PURE__ */ __name((str) => this.styles.primary.underline(str), "active");
        let value = [
          this.value ? this.disabled : active(this.disabled),
          this.value ? active(this.enabled) : this.enabled
        ];
        return value.join(this.styles.muted(" / "));
      }
      async render() {
        let { size } = this.state;
        let header = await this.header();
        let prefix2 = await this.prefix();
        let separator = await this.separator();
        let message2 = await this.message();
        let output = await this.format();
        let help = await this.error() || await this.hint();
        let footer = await this.footer();
        let prompt2 = [prefix2, message2, separator, output].join(" ");
        this.state.prompt = prompt2;
        if (help && !prompt2.includes(help)) prompt2 += " " + help;
        this.clear(size);
        this.write([header, prompt2, footer].filter(Boolean).join("\n"));
        this.write(this.margin[2]);
        this.restore();
      }
    };
    module2.exports = TogglePrompt;
  }
});

// ../../node_modules/enquirer/lib/prompts/quiz.js
var require_quiz = __commonJS({
  "../../node_modules/enquirer/lib/prompts/quiz.js"(exports2, module2) {
    "use strict";
    var SelectPrompt = require_select();
    var Quiz = class extends SelectPrompt {
      static {
        __name(this, "Quiz");
      }
      constructor(options) {
        super(options);
        if (typeof this.options.correctChoice !== "number" || this.options.correctChoice < 0) {
          throw new Error("Please specify the index of the correct answer from the list of choices");
        }
      }
      async toChoices(value, parent) {
        let choices = await super.toChoices(value, parent);
        if (choices.length < 2) {
          throw new Error("Please give at least two choices to the user");
        }
        if (this.options.correctChoice > choices.length) {
          throw new Error("Please specify the index of the correct answer from the list of choices");
        }
        return choices;
      }
      check(state2) {
        return state2.index === this.options.correctChoice;
      }
      async result(selected) {
        return {
          selectedAnswer: selected,
          correctAnswer: this.options.choices[this.options.correctChoice].value,
          correct: await this.check(this.state)
        };
      }
    };
    module2.exports = Quiz;
  }
});

// ../../node_modules/enquirer/lib/prompts/index.js
var require_prompts = __commonJS({
  "../../node_modules/enquirer/lib/prompts/index.js"(exports2) {
    "use strict";
    var utils = require_utils9();
    var define2 = /* @__PURE__ */ __name((key, fn) => {
      utils.defineExport(exports2, key, fn);
      utils.defineExport(exports2, key.toLowerCase(), fn);
    }, "define");
    define2("AutoComplete", () => require_autocomplete());
    define2("BasicAuth", () => require_basicauth());
    define2("Confirm", () => require_confirm());
    define2("Editable", () => require_editable());
    define2("Form", () => require_form());
    define2("Input", () => require_input());
    define2("Invisible", () => require_invisible());
    define2("List", () => require_list());
    define2("MultiSelect", () => require_multiselect());
    define2("Numeral", () => require_numeral());
    define2("Password", () => require_password());
    define2("Scale", () => require_scale());
    define2("Select", () => require_select());
    define2("Snippet", () => require_snippet());
    define2("Sort", () => require_sort3());
    define2("Survey", () => require_survey());
    define2("Text", () => require_text());
    define2("Toggle", () => require_toggle());
    define2("Quiz", () => require_quiz());
  }
});

// ../../node_modules/enquirer/lib/types/index.js
var require_types2 = __commonJS({
  "../../node_modules/enquirer/lib/types/index.js"(exports2, module2) {
    module2.exports = {
      ArrayPrompt: require_array3(),
      AuthPrompt: require_auth(),
      BooleanPrompt: require_boolean(),
      NumberPrompt: require_number(),
      StringPrompt: require_string2()
    };
  }
});

// ../../node_modules/enquirer/index.js
var require_enquirer = __commonJS({
  "../../node_modules/enquirer/index.js"(exports2, module2) {
    "use strict";
    var assert = require("assert");
    var Events = require("events");
    var utils = require_utils9();
    var Enquirer = class extends Events {
      static {
        __name(this, "Enquirer");
      }
      constructor(options, answers) {
        super();
        this.options = utils.merge({}, options);
        this.answers = { ...answers };
      }
      /**
       * Register a custom prompt type.
       *
       * ```js
       * const Enquirer = require('enquirer');
       * const enquirer = new Enquirer();
       * enquirer.register('customType', require('./custom-prompt'));
       * ```
       * @name register()
       * @param {String} `type`
       * @param {Function|Prompt} `fn` `Prompt` class, or a function that returns a `Prompt` class.
       * @return {Object} Returns the Enquirer instance
       * @api public
       */
      register(type, fn) {
        if (utils.isObject(type)) {
          for (let key of Object.keys(type)) this.register(key, type[key]);
          return this;
        }
        assert.equal(typeof fn, "function", "expected a function");
        const name = type.toLowerCase();
        if (fn.prototype instanceof this.Prompt) {
          this.prompts[name] = fn;
        } else {
          this.prompts[name] = fn(this.Prompt, this);
        }
        return this;
      }
      /**
       * Prompt function that takes a "question" object or array of question objects,
       * and returns an object with responses from the user.
       *
       * ```js
       * const Enquirer = require('enquirer');
       * const enquirer = new Enquirer();
       *
       * const response = await enquirer.prompt({
       *   type: 'input',
       *   name: 'username',
       *   message: 'What is your username?'
       * });
       * console.log(response);
       * ```
       * @name prompt()
       * @param {Array|Object} `questions` Options objects for one or more prompts to run.
       * @return {Promise} Promise that returns an "answers" object with the user's responses.
       * @api public
       */
      async prompt(questions = []) {
        for (let question2 of [].concat(questions)) {
          try {
            if (typeof question2 === "function") question2 = await question2.call(this);
            await this.ask(utils.merge({}, this.options, question2));
          } catch (err) {
            return Promise.reject(err);
          }
        }
        return this.answers;
      }
      async ask(question2) {
        if (typeof question2 === "function") {
          question2 = await question2.call(this);
        }
        let opts = utils.merge({}, this.options, question2);
        let { type, name } = question2;
        let { set, get: get3 } = utils;
        if (typeof type === "function") {
          type = await type.call(this, question2, this.answers);
        }
        if (!type) return this.answers[name];
        if (type === "number") type = "numeral";
        assert(this.prompts[type], `Prompt "${type}" is not registered`);
        let prompt2 = new this.prompts[type](opts);
        let value = get3(this.answers, name);
        prompt2.state.answers = this.answers;
        prompt2.enquirer = this;
        if (name) {
          prompt2.on("submit", (value2) => {
            this.emit("answer", name, value2, prompt2);
            set(this.answers, name, value2);
          });
        }
        let emit = prompt2.emit.bind(prompt2);
        prompt2.emit = (...args) => {
          this.emit.call(this, ...args);
          return emit(...args);
        };
        this.emit("prompt", prompt2, this);
        if (opts.autofill && value != null) {
          prompt2.value = prompt2.input = value;
          if (opts.autofill === "show") {
            await prompt2.submit();
          }
        } else {
          value = prompt2.value = await prompt2.run();
        }
        return value;
      }
      /**
       * Use an enquirer plugin.
       *
       * ```js
       * const Enquirer = require('enquirer');
       * const enquirer = new Enquirer();
       * const plugin = enquirer => {
       *   // do stuff to enquire instance
       * };
       * enquirer.use(plugin);
       * ```
       * @name use()
       * @param {Function} `plugin` Plugin function that takes an instance of Enquirer.
       * @return {Object} Returns the Enquirer instance.
       * @api public
       */
      use(plugin) {
        plugin.call(this, this);
        return this;
      }
      set Prompt(value) {
        this._Prompt = value;
      }
      get Prompt() {
        return this._Prompt || this.constructor.Prompt;
      }
      get prompts() {
        return this.constructor.prompts;
      }
      static set Prompt(value) {
        this._Prompt = value;
      }
      static get Prompt() {
        return this._Prompt || require_prompt2();
      }
      static get prompts() {
        return require_prompts();
      }
      static get types() {
        return require_types2();
      }
      /**
       * Prompt function that takes a "question" object or array of question objects,
       * and returns an object with responses from the user.
       *
       * ```js
       * const { prompt } = require('enquirer');
       * const response = await prompt({
       *   type: 'input',
       *   name: 'username',
       *   message: 'What is your username?'
       * });
       * console.log(response);
       * ```
       * @name Enquirer#prompt
       * @param {Array|Object} `questions` Options objects for one or more prompts to run.
       * @return {Promise} Promise that returns an "answers" object with the user's responses.
       * @api public
       */
      static get prompt() {
        const fn = /* @__PURE__ */ __name((questions, ...rest) => {
          let enquirer = new this(...rest);
          let emit = enquirer.emit.bind(enquirer);
          enquirer.emit = (...args) => {
            fn.emit(...args);
            return emit(...args);
          };
          return enquirer.prompt(questions);
        }, "fn");
        utils.mixinEmitter(fn, new Events());
        return fn;
      }
    };
    utils.mixinEmitter(Enquirer, new Events());
    var prompts = Enquirer.prompts;
    for (let name of Object.keys(prompts)) {
      let key = name.toLowerCase();
      let run = /* @__PURE__ */ __name((options) => new prompts[name](options).run(), "run");
      Enquirer.prompt[key] = run;
      Enquirer[key] = run;
      if (!Enquirer[name]) {
        Reflect.defineProperty(Enquirer, name, { get: /* @__PURE__ */ __name(() => prompts[name], "get") });
      }
    }
    var define2 = /* @__PURE__ */ __name((name) => {
      utils.defineExport(Enquirer, name, () => Enquirer.types[name]);
    }, "define");
    define2("ArrayPrompt");
    define2("AuthPrompt");
    define2("BooleanPrompt");
    define2("NumberPrompt");
    define2("StringPrompt");
    module2.exports = Enquirer;
  }
});

// lib/commands/flag-operations.ts
async function handleFlags(flagData, ioHelper, options, toolkit) {
  flagData = flagData.filter((flag) => !OBSOLETE_FLAGS.includes(flag.name));
  if (flagData.length == 0) {
    await ioHelper.defaults.error("The 'cdk flags' command is not compatible with the AWS CDK library used by your application. Please upgrade to 2.212.0 or above.");
    return;
  }
  let params = {
    flagData,
    toolkit,
    ioHelper,
    recommended: options.recommended,
    all: options.all,
    value: options.value,
    flagName: options.FLAGNAME,
    default: options.default,
    unconfigured: options.unconfigured
  };
  const interactiveOptions = Object.values(FlagsMenuOptions);
  if (options.interactive) {
    const prompt2 = new import_enquirer.Select({
      name: "option",
      message: "Menu",
      choices: interactiveOptions
    });
    const answer = await prompt2.run();
    if (answer == "Set all flags to recommended values" /* ALL_TO_RECOMMENDED */) {
      params = {
        ...params,
        recommended: true,
        all: true
      };
      await setMultipleFlags(params);
    } else if (answer == "Set unconfigured flags to recommended values" /* UNCONFIGURED_TO_RECOMMENDED */) {
      params = {
        ...params,
        recommended: true,
        unconfigured: true
      };
      await setMultipleFlags(params);
    } else if (answer == "Set unconfigured flags to their implied configuration (record current behavior)" /* UNCONFIGURED_TO_DEFAULT */) {
      params = {
        ...params,
        default: true,
        unconfigured: true
      };
      await setMultipleFlagsIfSupported(params);
    } else if (answer == "Modify a specific flag" /* MODIFY_SPECIFIC_FLAG */) {
      await setFlag(params, true);
    } else if (answer == "Exit" /* EXIT */) {
      return;
    }
    return;
  }
  if (options.FLAGNAME && options.all) {
    await ioHelper.defaults.error("Error: Cannot use both --all and a specific flag name. Please use either --all to show all flags or specify a single flag name.");
    return;
  }
  if ((options.value || options.recommended || options.default || options.unconfigured) && !options.set) {
    await ioHelper.defaults.error("Error: This option can only be used with --set.");
    return;
  }
  if (options.value && !options.FLAGNAME) {
    await ioHelper.defaults.error("Error: --value requires a specific flag name. Please specify a flag name when providing a value.");
    return;
  }
  if (options.recommended && options.default) {
    await ioHelper.defaults.error("Error: Cannot use both --recommended and --default. Please choose one option.");
    return;
  }
  if (options.unconfigured && options.all) {
    await ioHelper.defaults.error("Error: Cannot use both --unconfigured and --all. Please choose one option.");
    return;
  }
  if (options.unconfigured && options.FLAGNAME) {
    await ioHelper.defaults.error("Error: Cannot use --unconfigured with a specific flag name. --unconfigured works with multiple flags.");
    return;
  }
  if (options.set && options.FLAGNAME && !options.value) {
    await ioHelper.defaults.error("Error: When setting a specific flag, you must provide a --value.");
    return;
  }
  if (options.set && options.all && !options.recommended && !options.default) {
    await ioHelper.defaults.error("Error: When using --set with --all, you must specify either --recommended or --default.");
    return;
  }
  if (options.set && options.unconfigured && !options.recommended && !options.default) {
    await ioHelper.defaults.error("Error: When using --set with --unconfigured, you must specify either --recommended or --default.");
    return;
  }
  if (options.set && !options.all && !options.unconfigured && !options.FLAGNAME) {
    await ioHelper.defaults.error("Error: When using --set, you must specify either --all, --unconfigured, or provide a specific flag name.");
    return;
  }
  if (options.FLAGNAME && !options.set && !options.value) {
    await displayFlags(params);
    return;
  }
  if (options.all && !options.set) {
    await displayFlags(params);
    return;
  }
  if (options.set && options.FLAGNAME && options.value) {
    await setFlag(params);
    return;
  }
  if (!options.FLAGNAME && !options.all && !options.set) {
    await displayFlags(params);
    return;
  }
  if (options.set && options.all && options.recommended) {
    await setMultipleFlags(params);
    return;
  }
  if (options.set && options.all && options.default) {
    await setMultipleFlagsIfSupported(params);
  }
  if (options.set && options.unconfigured && options.recommended) {
    await setMultipleFlags(params);
    return;
  }
  if (options.set && options.unconfigured && options.default) {
    await setMultipleFlagsIfSupported(params);
  }
}
async function setMultipleFlagsIfSupported(params) {
  const { flagData, ioHelper } = params;
  if (flagData[0].unconfiguredBehavesLike) {
    await setMultipleFlags(params);
    return;
  }
  await ioHelper.defaults.error("The --default options are not compatible with the AWS CDK library used by your application. Please upgrade to 2.212.0 or above.");
}
async function setFlag(params, interactive) {
  const { flagData, ioHelper, flagName } = params;
  let updatedParams = params;
  let updatedFlagName = flagName;
  if (interactive) {
    const allFlagNames = flagData.filter((flag) => isBooleanFlag(flag) == true).map((flag) => flag.name);
    const prompt2 = new import_enquirer.Select({
      name: "flag",
      message: "Select which flag you would like to modify:",
      limit: 100,
      choices: allFlagNames
    });
    const selectedFlagName = await prompt2.run();
    updatedFlagName = [selectedFlagName];
    const valuePrompt = new import_enquirer.Select({
      name: "value",
      message: "Select a value:",
      choices: ["true", "false"]
    });
    const updatedValue = await valuePrompt.run();
    updatedParams = {
      ...params,
      value: updatedValue,
      flagName: updatedFlagName
    };
  } else {
    const flag = flagData.find((f3) => f3.name === flagName[0]);
    if (!flag) {
      await ioHelper.defaults.error("Flag not found.");
      return;
    }
    if (!isBooleanFlag(flag)) {
      await ioHelper.defaults.error(`Flag '${flagName}' is not a boolean flag. Only boolean flags are currently supported.`);
      return;
    }
  }
  const prototypeSuccess = await prototypeChanges(updatedParams, updatedFlagName);
  if (prototypeSuccess) {
    await handleUserResponse(updatedParams, updatedFlagName);
  }
}
async function prototypeChanges(params, flagNames) {
  const { flagData, toolkit, ioHelper, recommended, value } = params;
  const baseContext = new import_toolkit_lib18.CdkAppMultiContext(process.cwd());
  const baseContextValues = await baseContext.read();
  const memoryContext = new import_toolkit_lib18.MemoryContext(baseContextValues);
  const cdkJson = await JSON.parse(await fs40.readFile(path37.join(process.cwd(), "cdk.json"), "utf-8"));
  const app = cdkJson.app;
  const source = await toolkit.fromCdkApp(app, {
    contextStore: baseContext,
    outdir: path37.join(process.cwd(), "original")
  });
  const updateObj = {};
  const boolValue = toBooleanValue(value);
  if (flagNames.length === 1 && value !== void 0) {
    const flagName = flagNames[0];
    if (baseContextValues[flagName] == boolValue) {
      await ioHelper.defaults.info("Flag is already set to the specified value. No changes needed.");
      return false;
    }
    updateObj[flagName] = boolValue;
  } else {
    for (const flagName of flagNames) {
      const flag = flagData.find((f3) => f3.name === flagName);
      if (!flag) {
        await ioHelper.defaults.error(`Flag ${flagName} not found.`);
        return false;
      }
      const newValue = recommended ? toBooleanValue(flag.recommendedValue) : String(flag.unconfiguredBehavesLike?.v2) === "true";
      updateObj[flagName] = newValue;
    }
  }
  await memoryContext.update(updateObj);
  const cx = await toolkit.synth(source);
  const assembly = cx.cloudAssembly;
  const modifiedSource = await toolkit.fromCdkApp(app, {
    contextStore: memoryContext,
    outdir: path37.join(process.cwd(), "temp")
  });
  const modifiedCx = await toolkit.synth(modifiedSource);
  const allStacks = assembly.stacksRecursively;
  for (const stack of allStacks) {
    const templatePath = stack.templateFullPath;
    await toolkit.diff(modifiedCx, {
      method: import_toolkit_lib18.DiffMethod.LocalFile(templatePath),
      stacks: {
        strategy: "pattern-must-match-single" /* PATTERN_MUST_MATCH_SINGLE */,
        patterns: [stack.hierarchicalId]
      }
    });
  }
  return true;
}
async function setMultipleFlags(params) {
  const { flagData, all } = params;
  let flagsToSet;
  if (all) {
    flagsToSet = flagData.filter((flag) => flag.userValue === void 0 || !isUserValueEqualToRecommended(flag)).filter((flag) => isBooleanFlag(flag)).map((flag) => flag.name);
  } else {
    flagsToSet = flagData.filter((flag) => flag.userValue === void 0).filter((flag) => isBooleanFlag(flag)).map((flag) => flag.name);
  }
  const prototypeSuccess = await prototypeChanges(params, flagsToSet);
  if (prototypeSuccess) {
    await handleUserResponse(params, flagsToSet);
  }
}
async function handleUserResponse(params, flagNames) {
  const { ioHelper } = params;
  const userAccepted = await ioHelper.requestResponse({
    time: /* @__PURE__ */ new Date(),
    level: "info",
    code: "CDK_TOOLKIT_I9300",
    message: "Do you want to accept these changes?",
    data: {
      flagNames,
      responseDescription: 'Enter "y" to apply changes or "n" to cancel'
    },
    defaultResponse: false
  });
  if (userAccepted) {
    await modifyValues(params, flagNames);
    await ioHelper.defaults.info("Flag value(s) updated successfully.");
  } else {
    await ioHelper.defaults.info("Operation cancelled");
  }
  const originalDir = path37.join(process.cwd(), "original");
  const tempDir = path37.join(process.cwd(), "temp");
  await fs40.remove(originalDir);
  await fs40.remove(tempDir);
}
async function modifyValues(params, flagNames) {
  const { flagData, ioHelper, value, recommended } = params;
  const cdkJsonPath = path37.join(process.cwd(), "cdk.json");
  const cdkJsonContent = await fs40.readFile(cdkJsonPath, "utf-8");
  const cdkJson = JSON.parse(cdkJsonContent);
  if (flagNames.length == 1) {
    const boolValue = toBooleanValue(value);
    cdkJson.context[String(flagNames[0])] = boolValue;
    await ioHelper.defaults.info(`Setting flag '${flagNames}' to: ${boolValue}`);
  } else {
    for (const flagName of flagNames) {
      const flag = flagData.find((f3) => f3.name === flagName);
      const newValue = recommended ? toBooleanValue(flag.recommendedValue) : String(flag.unconfiguredBehavesLike?.v2) === "true";
      cdkJson.context[flagName] = newValue;
    }
  }
  await fs40.writeFile(cdkJsonPath, JSON.stringify(cdkJson, null, 2), "utf-8");
}
function getFlagSortOrder(flag) {
  if (flag.userValue === void 0) {
    return 3;
  } else if (isUserValueEqualToRecommended(flag)) {
    return 1;
  } else {
    return 2;
  }
}
async function displayFlagTable(flags, ioHelper) {
  const filteredFlags = flags.filter((flag) => flag.unconfiguredBehavesLike?.v2 !== flag.recommendedValue);
  const sortedFlags = [...filteredFlags].sort((a3, b3) => {
    const orderA = getFlagSortOrder(a3);
    const orderB = getFlagSortOrder(b3);
    if (orderA !== orderB) {
      return orderA - orderB;
    }
    if (a3.module !== b3.module) {
      return a3.module.localeCompare(b3.module);
    }
    return a3.name.localeCompare(b3.name);
  });
  const rows = [];
  rows.push(["Feature Flag Name", "Recommended Value", "User Value"]);
  let currentModule = "";
  sortedFlags.forEach((flag) => {
    if (flag.module !== currentModule) {
      rows.push([chalk34.bold(`Module: ${flag.module}`), "", ""]);
      currentModule = flag.module;
    }
    rows.push([
      `  ${flag.name}`,
      String(flag.recommendedValue),
      flag.userValue === void 0 ? "<unset>" : String(flag.userValue)
    ]);
  });
  const formattedTable = (0, import_cloudformation_diff4.formatTable)(rows, void 0, true);
  await ioHelper.defaults.info(formattedTable);
}
async function displayFlags(params) {
  const { flagData, ioHelper, flagName, all } = params;
  if (flagName && flagName.length > 0) {
    const matchingFlags = flagData.filter(
      (f3) => flagName.some((searchTerm) => f3.name.toLowerCase().includes(searchTerm.toLowerCase()))
    );
    if (matchingFlags.length === 0) {
      await ioHelper.defaults.error(`Flag matching "${flagName.join(", ")}" not found.`);
      return;
    }
    if (matchingFlags.length === 1) {
      const flag = matchingFlags[0];
      await ioHelper.defaults.info(`Flag name: ${flag.name}`);
      await ioHelper.defaults.info(`Description: ${flag.explanation}`);
      await ioHelper.defaults.info(`Recommended value: ${flag.recommendedValue}`);
      await ioHelper.defaults.info(`User value: ${flag.userValue}`);
      return;
    }
    await ioHelper.defaults.info(`Found ${matchingFlags.length} flags matching "${flagName.join(", ")}":`);
    await displayFlagTable(matchingFlags, ioHelper);
    return;
  }
  let flagsToDisplay;
  if (all) {
    flagsToDisplay = flagData;
  } else {
    flagsToDisplay = flagData.filter(
      (flag) => flag.userValue === void 0 || !isUserValueEqualToRecommended(flag)
    );
  }
  await displayFlagTable(flagsToDisplay, ioHelper);
}
function isUserValueEqualToRecommended(flag) {
  return String(flag.userValue) === String(flag.recommendedValue);
}
function toBooleanValue(value) {
  if (typeof value === "boolean") {
    return value;
  }
  if (typeof value === "string") {
    return value.toLowerCase() === "true";
  }
  return false;
}
function isBooleanFlag(flag) {
  const recommended = flag.recommendedValue;
  return typeof recommended === "boolean" || recommended === "true" || recommended === "false";
}
var path37, import_cloudformation_diff4, import_toolkit_lib18, chalk34, import_enquirer, fs40, FlagsMenuOptions;
var init_flag_operations = __esm({
  "lib/commands/flag-operations.ts"() {
    "use strict";
    path37 = __toESM(require("path"));
    import_cloudformation_diff4 = __toESM(require_lib11());
    import_toolkit_lib18 = __toESM(require_lib12());
    chalk34 = __toESM(require_source());
    import_enquirer = __toESM(require_enquirer());
    fs40 = __toESM(require_lib13());
    init_api();
    init_obsolete_flags();
    FlagsMenuOptions = /* @__PURE__ */ ((FlagsMenuOptions2) => {
      FlagsMenuOptions2["ALL_TO_RECOMMENDED"] = "Set all flags to recommended values";
      FlagsMenuOptions2["UNCONFIGURED_TO_RECOMMENDED"] = "Set unconfigured flags to recommended values";
      FlagsMenuOptions2["UNCONFIGURED_TO_DEFAULT"] = "Set unconfigured flags to their implied configuration (record current behavior)";
      FlagsMenuOptions2["MODIFY_SPECIFIC_FLAG"] = "Modify a specific flag";
      FlagsMenuOptions2["EXIT"] = "Exit";
      return FlagsMenuOptions2;
    })(FlagsMenuOptions || {});
    __name(handleFlags, "handleFlags");
    __name(setMultipleFlagsIfSupported, "setMultipleFlagsIfSupported");
    __name(setFlag, "setFlag");
    __name(prototypeChanges, "prototypeChanges");
    __name(setMultipleFlags, "setMultipleFlags");
    __name(handleUserResponse, "handleUserResponse");
    __name(modifyValues, "modifyValues");
    __name(getFlagSortOrder, "getFlagSortOrder");
    __name(displayFlagTable, "displayFlagTable");
    __name(displayFlags, "displayFlags");
    __name(isUserValueEqualToRecommended, "isUserValueEqualToRecommended");
    __name(toBooleanValue, "toBooleanValue");
    __name(isBooleanFlag, "isBooleanFlag");
  }
});

// ../../node_modules/proxy-agent/node_modules/lru-cache/index.js
var require_lru_cache = __commonJS({
  "../../node_modules/proxy-agent/node_modules/lru-cache/index.js"(exports2, module2) {
    var perf2 = typeof performance === "object" && performance && typeof performance.now === "function" ? performance : Date;
    var hasAbortController = typeof AbortController === "function";
    var AC2 = hasAbortController ? AbortController : class AbortController {
      static {
        __name(this, "AbortController");
      }
      constructor() {
        this.signal = new AS2();
      }
      abort(reason = new Error("This operation was aborted")) {
        this.signal.reason = this.signal.reason || reason;
        this.signal.aborted = true;
        this.signal.dispatchEvent({
          type: "abort",
          target: this.signal
        });
      }
    };
    var hasAbortSignal = typeof AbortSignal === "function";
    var hasACAbortSignal = typeof AC2.AbortSignal === "function";
    var AS2 = hasAbortSignal ? AbortSignal : hasACAbortSignal ? AC2.AbortController : class AbortSignal {
      static {
        __name(this, "AbortSignal");
      }
      constructor() {
        this.reason = void 0;
        this.aborted = false;
        this._listeners = [];
      }
      dispatchEvent(e3) {
        if (e3.type === "abort") {
          this.aborted = true;
          this.onabort(e3);
          this._listeners.forEach((f3) => f3(e3), this);
        }
      }
      onabort() {
      }
      addEventListener(ev, fn) {
        if (ev === "abort") {
          this._listeners.push(fn);
        }
      }
      removeEventListener(ev, fn) {
        if (ev === "abort") {
          this._listeners = this._listeners.filter((f3) => f3 !== fn);
        }
      }
    };
    var warned2 = /* @__PURE__ */ new Set();
    var deprecatedOption = /* @__PURE__ */ __name((opt, instead) => {
      const code = `LRU_CACHE_OPTION_${opt}`;
      if (shouldWarn2(code)) {
        warn2(code, `${opt} option`, `options.${instead}`, LRUCache2);
      }
    }, "deprecatedOption");
    var deprecatedMethod = /* @__PURE__ */ __name((method, instead) => {
      const code = `LRU_CACHE_METHOD_${method}`;
      if (shouldWarn2(code)) {
        const { prototype } = LRUCache2;
        const { get: get3 } = Object.getOwnPropertyDescriptor(prototype, method);
        warn2(code, `${method} method`, `cache.${instead}()`, get3);
      }
    }, "deprecatedMethod");
    var deprecatedProperty = /* @__PURE__ */ __name((field, instead) => {
      const code = `LRU_CACHE_PROPERTY_${field}`;
      if (shouldWarn2(code)) {
        const { prototype } = LRUCache2;
        const { get: get3 } = Object.getOwnPropertyDescriptor(prototype, field);
        warn2(code, `${field} property`, `cache.${instead}`, get3);
      }
    }, "deprecatedProperty");
    var emitWarning2 = /* @__PURE__ */ __name((...a3) => {
      typeof process === "object" && process && typeof process.emitWarning === "function" ? process.emitWarning(...a3) : console.error(...a3);
    }, "emitWarning");
    var shouldWarn2 = /* @__PURE__ */ __name((code) => !warned2.has(code), "shouldWarn");
    var warn2 = /* @__PURE__ */ __name((code, what, instead, fn) => {
      warned2.add(code);
      const msg = `The ${what} is deprecated. Please use ${instead} instead.`;
      emitWarning2(msg, "DeprecationWarning", code, fn);
    }, "warn");
    var isPosInt2 = /* @__PURE__ */ __name((n3) => n3 && n3 === Math.floor(n3) && n3 > 0 && isFinite(n3), "isPosInt");
    var getUintArray2 = /* @__PURE__ */ __name((max) => !isPosInt2(max) ? null : max <= Math.pow(2, 8) ? Uint8Array : max <= Math.pow(2, 16) ? Uint16Array : max <= Math.pow(2, 32) ? Uint32Array : max <= Number.MAX_SAFE_INTEGER ? ZeroArray2 : null, "getUintArray");
    var ZeroArray2 = class extends Array {
      static {
        __name(this, "ZeroArray");
      }
      constructor(size) {
        super(size);
        this.fill(0);
      }
    };
    var Stack2 = class {
      static {
        __name(this, "Stack");
      }
      constructor(max) {
        if (max === 0) {
          return [];
        }
        const UintArray = getUintArray2(max);
        this.heap = new UintArray(max);
        this.length = 0;
      }
      push(n3) {
        this.heap[this.length++] = n3;
      }
      pop() {
        return this.heap[--this.length];
      }
    };
    var LRUCache2 = class _LRUCache {
      static {
        __name(this, "LRUCache");
      }
      constructor(options = {}) {
        const {
          max = 0,
          ttl,
          ttlResolution = 1,
          ttlAutopurge,
          updateAgeOnGet,
          updateAgeOnHas,
          allowStale,
          dispose,
          disposeAfter,
          noDisposeOnSet,
          noUpdateTTL,
          maxSize = 0,
          maxEntrySize = 0,
          sizeCalculation,
          fetchMethod,
          fetchContext,
          noDeleteOnFetchRejection,
          noDeleteOnStaleGet,
          allowStaleOnFetchRejection,
          allowStaleOnFetchAbort,
          ignoreFetchAbort
        } = options;
        const { length, maxAge, stale } = options instanceof _LRUCache ? {} : options;
        if (max !== 0 && !isPosInt2(max)) {
          throw new TypeError("max option must be a nonnegative integer");
        }
        const UintArray = max ? getUintArray2(max) : Array;
        if (!UintArray) {
          throw new Error("invalid max value: " + max);
        }
        this.max = max;
        this.maxSize = maxSize;
        this.maxEntrySize = maxEntrySize || this.maxSize;
        this.sizeCalculation = sizeCalculation || length;
        if (this.sizeCalculation) {
          if (!this.maxSize && !this.maxEntrySize) {
            throw new TypeError(
              "cannot set sizeCalculation without setting maxSize or maxEntrySize"
            );
          }
          if (typeof this.sizeCalculation !== "function") {
            throw new TypeError("sizeCalculation set to non-function");
          }
        }
        this.fetchMethod = fetchMethod || null;
        if (this.fetchMethod && typeof this.fetchMethod !== "function") {
          throw new TypeError(
            "fetchMethod must be a function if specified"
          );
        }
        this.fetchContext = fetchContext;
        if (!this.fetchMethod && fetchContext !== void 0) {
          throw new TypeError(
            "cannot set fetchContext without fetchMethod"
          );
        }
        this.keyMap = /* @__PURE__ */ new Map();
        this.keyList = new Array(max).fill(null);
        this.valList = new Array(max).fill(null);
        this.next = new UintArray(max);
        this.prev = new UintArray(max);
        this.head = 0;
        this.tail = 0;
        this.free = new Stack2(max);
        this.initialFill = 1;
        this.size = 0;
        if (typeof dispose === "function") {
          this.dispose = dispose;
        }
        if (typeof disposeAfter === "function") {
          this.disposeAfter = disposeAfter;
          this.disposed = [];
        } else {
          this.disposeAfter = null;
          this.disposed = null;
        }
        this.noDisposeOnSet = !!noDisposeOnSet;
        this.noUpdateTTL = !!noUpdateTTL;
        this.noDeleteOnFetchRejection = !!noDeleteOnFetchRejection;
        this.allowStaleOnFetchRejection = !!allowStaleOnFetchRejection;
        this.allowStaleOnFetchAbort = !!allowStaleOnFetchAbort;
        this.ignoreFetchAbort = !!ignoreFetchAbort;
        if (this.maxEntrySize !== 0) {
          if (this.maxSize !== 0) {
            if (!isPosInt2(this.maxSize)) {
              throw new TypeError(
                "maxSize must be a positive integer if specified"
              );
            }
          }
          if (!isPosInt2(this.maxEntrySize)) {
            throw new TypeError(
              "maxEntrySize must be a positive integer if specified"
            );
          }
          this.initializeSizeTracking();
        }
        this.allowStale = !!allowStale || !!stale;
        this.noDeleteOnStaleGet = !!noDeleteOnStaleGet;
        this.updateAgeOnGet = !!updateAgeOnGet;
        this.updateAgeOnHas = !!updateAgeOnHas;
        this.ttlResolution = isPosInt2(ttlResolution) || ttlResolution === 0 ? ttlResolution : 1;
        this.ttlAutopurge = !!ttlAutopurge;
        this.ttl = ttl || maxAge || 0;
        if (this.ttl) {
          if (!isPosInt2(this.ttl)) {
            throw new TypeError(
              "ttl must be a positive integer if specified"
            );
          }
          this.initializeTTLTracking();
        }
        if (this.max === 0 && this.ttl === 0 && this.maxSize === 0) {
          throw new TypeError(
            "At least one of max, maxSize, or ttl is required"
          );
        }
        if (!this.ttlAutopurge && !this.max && !this.maxSize) {
          const code = "LRU_CACHE_UNBOUNDED";
          if (shouldWarn2(code)) {
            warned2.add(code);
            const msg = "TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.";
            emitWarning2(msg, "UnboundedCacheWarning", code, _LRUCache);
          }
        }
        if (stale) {
          deprecatedOption("stale", "allowStale");
        }
        if (maxAge) {
          deprecatedOption("maxAge", "ttl");
        }
        if (length) {
          deprecatedOption("length", "sizeCalculation");
        }
      }
      getRemainingTTL(key) {
        return this.has(key, { updateAgeOnHas: false }) ? Infinity : 0;
      }
      initializeTTLTracking() {
        this.ttls = new ZeroArray2(this.max);
        this.starts = new ZeroArray2(this.max);
        this.setItemTTL = (index, ttl, start = perf2.now()) => {
          this.starts[index] = ttl !== 0 ? start : 0;
          this.ttls[index] = ttl;
          if (ttl !== 0 && this.ttlAutopurge) {
            const t3 = setTimeout(() => {
              if (this.isStale(index)) {
                this.delete(this.keyList[index]);
              }
            }, ttl + 1);
            if (t3.unref) {
              t3.unref();
            }
          }
        };
        this.updateItemAge = (index) => {
          this.starts[index] = this.ttls[index] !== 0 ? perf2.now() : 0;
        };
        this.statusTTL = (status, index) => {
          if (status) {
            status.ttl = this.ttls[index];
            status.start = this.starts[index];
            status.now = cachedNow || getNow();
            status.remainingTTL = status.now + status.ttl - status.start;
          }
        };
        let cachedNow = 0;
        const getNow = /* @__PURE__ */ __name(() => {
          const n3 = perf2.now();
          if (this.ttlResolution > 0) {
            cachedNow = n3;
            const t3 = setTimeout(
              () => cachedNow = 0,
              this.ttlResolution
            );
            if (t3.unref) {
              t3.unref();
            }
          }
          return n3;
        }, "getNow");
        this.getRemainingTTL = (key) => {
          const index = this.keyMap.get(key);
          if (index === void 0) {
            return 0;
          }
          return this.ttls[index] === 0 || this.starts[index] === 0 ? Infinity : this.starts[index] + this.ttls[index] - (cachedNow || getNow());
        };
        this.isStale = (index) => {
          return this.ttls[index] !== 0 && this.starts[index] !== 0 && (cachedNow || getNow()) - this.starts[index] > this.ttls[index];
        };
      }
      updateItemAge(_index) {
      }
      statusTTL(_status, _index) {
      }
      setItemTTL(_index, _ttl, _start) {
      }
      isStale(_index) {
        return false;
      }
      initializeSizeTracking() {
        this.calculatedSize = 0;
        this.sizes = new ZeroArray2(this.max);
        this.removeItemSize = (index) => {
          this.calculatedSize -= this.sizes[index];
          this.sizes[index] = 0;
        };
        this.requireSize = (k3, v6, size, sizeCalculation) => {
          if (this.isBackgroundFetch(v6)) {
            return 0;
          }
          if (!isPosInt2(size)) {
            if (sizeCalculation) {
              if (typeof sizeCalculation !== "function") {
                throw new TypeError("sizeCalculation must be a function");
              }
              size = sizeCalculation(v6, k3);
              if (!isPosInt2(size)) {
                throw new TypeError(
                  "sizeCalculation return invalid (expect positive integer)"
                );
              }
            } else {
              throw new TypeError(
                "invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set."
              );
            }
          }
          return size;
        };
        this.addItemSize = (index, size, status) => {
          this.sizes[index] = size;
          if (this.maxSize) {
            const maxSize = this.maxSize - this.sizes[index];
            while (this.calculatedSize > maxSize) {
              this.evict(true);
            }
          }
          this.calculatedSize += this.sizes[index];
          if (status) {
            status.entrySize = size;
            status.totalCalculatedSize = this.calculatedSize;
          }
        };
      }
      removeItemSize(_index) {
      }
      addItemSize(_index, _size) {
      }
      requireSize(_k, _v, size, sizeCalculation) {
        if (size || sizeCalculation) {
          throw new TypeError(
            "cannot set size without setting maxSize or maxEntrySize on cache"
          );
        }
      }
      *indexes({ allowStale = this.allowStale } = {}) {
        if (this.size) {
          for (let i3 = this.tail; true; ) {
            if (!this.isValidIndex(i3)) {
              break;
            }
            if (allowStale || !this.isStale(i3)) {
              yield i3;
            }
            if (i3 === this.head) {
              break;
            } else {
              i3 = this.prev[i3];
            }
          }
        }
      }
      *rindexes({ allowStale = this.allowStale } = {}) {
        if (this.size) {
          for (let i3 = this.head; true; ) {
            if (!this.isValidIndex(i3)) {
              break;
            }
            if (allowStale || !this.isStale(i3)) {
              yield i3;
            }
            if (i3 === this.tail) {
              break;
            } else {
              i3 = this.next[i3];
            }
          }
        }
      }
      isValidIndex(index) {
        return index !== void 0 && this.keyMap.get(this.keyList[index]) === index;
      }
      *entries() {
        for (const i3 of this.indexes()) {
          if (this.valList[i3] !== void 0 && this.keyList[i3] !== void 0 && !this.isBackgroundFetch(this.valList[i3])) {
            yield [this.keyList[i3], this.valList[i3]];
          }
        }
      }
      *rentries() {
        for (const i3 of this.rindexes()) {
          if (this.valList[i3] !== void 0 && this.keyList[i3] !== void 0 && !this.isBackgroundFetch(this.valList[i3])) {
            yield [this.keyList[i3], this.valList[i3]];
          }
        }
      }
      *keys() {
        for (const i3 of this.indexes()) {
          if (this.keyList[i3] !== void 0 && !this.isBackgroundFetch(this.valList[i3])) {
            yield this.keyList[i3];
          }
        }
      }
      *rkeys() {
        for (const i3 of this.rindexes()) {
          if (this.keyList[i3] !== void 0 && !this.isBackgroundFetch(this.valList[i3])) {
            yield this.keyList[i3];
          }
        }
      }
      *values() {
        for (const i3 of this.indexes()) {
          if (this.valList[i3] !== void 0 && !this.isBackgroundFetch(this.valList[i3])) {
            yield this.valList[i3];
          }
        }
      }
      *rvalues() {
        for (const i3 of this.rindexes()) {
          if (this.valList[i3] !== void 0 && !this.isBackgroundFetch(this.valList[i3])) {
            yield this.valList[i3];
          }
        }
      }
      [Symbol.iterator]() {
        return this.entries();
      }
      find(fn, getOptions) {
        for (const i3 of this.indexes()) {
          const v6 = this.valList[i3];
          const value = this.isBackgroundFetch(v6) ? v6.__staleWhileFetching : v6;
          if (value === void 0) continue;
          if (fn(value, this.keyList[i3], this)) {
            return this.get(this.keyList[i3], getOptions);
          }
        }
      }
      forEach(fn, thisp = this) {
        for (const i3 of this.indexes()) {
          const v6 = this.valList[i3];
          const value = this.isBackgroundFetch(v6) ? v6.__staleWhileFetching : v6;
          if (value === void 0) continue;
          fn.call(thisp, value, this.keyList[i3], this);
        }
      }
      rforEach(fn, thisp = this) {
        for (const i3 of this.rindexes()) {
          const v6 = this.valList[i3];
          const value = this.isBackgroundFetch(v6) ? v6.__staleWhileFetching : v6;
          if (value === void 0) continue;
          fn.call(thisp, value, this.keyList[i3], this);
        }
      }
      get prune() {
        deprecatedMethod("prune", "purgeStale");
        return this.purgeStale;
      }
      purgeStale() {
        let deleted = false;
        for (const i3 of this.rindexes({ allowStale: true })) {
          if (this.isStale(i3)) {
            this.delete(this.keyList[i3]);
            deleted = true;
          }
        }
        return deleted;
      }
      dump() {
        const arr = [];
        for (const i3 of this.indexes({ allowStale: true })) {
          const key = this.keyList[i3];
          const v6 = this.valList[i3];
          const value = this.isBackgroundFetch(v6) ? v6.__staleWhileFetching : v6;
          if (value === void 0) continue;
          const entry = { value };
          if (this.ttls) {
            entry.ttl = this.ttls[i3];
            const age = perf2.now() - this.starts[i3];
            entry.start = Math.floor(Date.now() - age);
          }
          if (this.sizes) {
            entry.size = this.sizes[i3];
          }
          arr.unshift([key, entry]);
        }
        return arr;
      }
      load(arr) {
        this.clear();
        for (const [key, entry] of arr) {
          if (entry.start) {
            const age = Date.now() - entry.start;
            entry.start = perf2.now() - age;
          }
          this.set(key, entry.value, entry);
        }
      }
      dispose(_v, _k, _reason) {
      }
      set(k3, v6, {
        ttl = this.ttl,
        start,
        noDisposeOnSet = this.noDisposeOnSet,
        size = 0,
        sizeCalculation = this.sizeCalculation,
        noUpdateTTL = this.noUpdateTTL,
        status
      } = {}) {
        size = this.requireSize(k3, v6, size, sizeCalculation);
        if (this.maxEntrySize && size > this.maxEntrySize) {
          if (status) {
            status.set = "miss";
            status.maxEntrySizeExceeded = true;
          }
          this.delete(k3);
          return this;
        }
        let index = this.size === 0 ? void 0 : this.keyMap.get(k3);
        if (index === void 0) {
          index = this.newIndex();
          this.keyList[index] = k3;
          this.valList[index] = v6;
          this.keyMap.set(k3, index);
          this.next[this.tail] = index;
          this.prev[index] = this.tail;
          this.tail = index;
          this.size++;
          this.addItemSize(index, size, status);
          if (status) {
            status.set = "add";
          }
          noUpdateTTL = false;
        } else {
          this.moveToTail(index);
          const oldVal = this.valList[index];
          if (v6 !== oldVal) {
            if (this.isBackgroundFetch(oldVal)) {
              oldVal.__abortController.abort(new Error("replaced"));
            } else {
              if (!noDisposeOnSet) {
                this.dispose(oldVal, k3, "set");
                if (this.disposeAfter) {
                  this.disposed.push([oldVal, k3, "set"]);
                }
              }
            }
            this.removeItemSize(index);
            this.valList[index] = v6;
            this.addItemSize(index, size, status);
            if (status) {
              status.set = "replace";
              const oldValue = oldVal && this.isBackgroundFetch(oldVal) ? oldVal.__staleWhileFetching : oldVal;
              if (oldValue !== void 0) status.oldValue = oldValue;
            }
          } else if (status) {
            status.set = "update";
          }
        }
        if (ttl !== 0 && this.ttl === 0 && !this.ttls) {
          this.initializeTTLTracking();
        }
        if (!noUpdateTTL) {
          this.setItemTTL(index, ttl, start);
        }
        this.statusTTL(status, index);
        if (this.disposeAfter) {
          while (this.disposed.length) {
            this.disposeAfter(...this.disposed.shift());
          }
        }
        return this;
      }
      newIndex() {
        if (this.size === 0) {
          return this.tail;
        }
        if (this.size === this.max && this.max !== 0) {
          return this.evict(false);
        }
        if (this.free.length !== 0) {
          return this.free.pop();
        }
        return this.initialFill++;
      }
      pop() {
        if (this.size) {
          const val = this.valList[this.head];
          this.evict(true);
          return val;
        }
      }
      evict(free) {
        const head = this.head;
        const k3 = this.keyList[head];
        const v6 = this.valList[head];
        if (this.isBackgroundFetch(v6)) {
          v6.__abortController.abort(new Error("evicted"));
        } else {
          this.dispose(v6, k3, "evict");
          if (this.disposeAfter) {
            this.disposed.push([v6, k3, "evict"]);
          }
        }
        this.removeItemSize(head);
        if (free) {
          this.keyList[head] = null;
          this.valList[head] = null;
          this.free.push(head);
        }
        this.head = this.next[head];
        this.keyMap.delete(k3);
        this.size--;
        return head;
      }
      has(k3, { updateAgeOnHas = this.updateAgeOnHas, status } = {}) {
        const index = this.keyMap.get(k3);
        if (index !== void 0) {
          if (!this.isStale(index)) {
            if (updateAgeOnHas) {
              this.updateItemAge(index);
            }
            if (status) status.has = "hit";
            this.statusTTL(status, index);
            return true;
          } else if (status) {
            status.has = "stale";
            this.statusTTL(status, index);
          }
        } else if (status) {
          status.has = "miss";
        }
        return false;
      }
      // like get(), but without any LRU updating or TTL expiration
      peek(k3, { allowStale = this.allowStale } = {}) {
        const index = this.keyMap.get(k3);
        if (index !== void 0 && (allowStale || !this.isStale(index))) {
          const v6 = this.valList[index];
          return this.isBackgroundFetch(v6) ? v6.__staleWhileFetching : v6;
        }
      }
      backgroundFetch(k3, index, options, context) {
        const v6 = index === void 0 ? void 0 : this.valList[index];
        if (this.isBackgroundFetch(v6)) {
          return v6;
        }
        const ac = new AC2();
        if (options.signal) {
          options.signal.addEventListener(
            "abort",
            () => ac.abort(options.signal.reason)
          );
        }
        const fetchOpts = {
          signal: ac.signal,
          options,
          context
        };
        const cb = /* @__PURE__ */ __name((v7, updateCache = false) => {
          const { aborted } = ac.signal;
          const ignoreAbort = options.ignoreFetchAbort && v7 !== void 0;
          if (options.status) {
            if (aborted && !updateCache) {
              options.status.fetchAborted = true;
              options.status.fetchError = ac.signal.reason;
              if (ignoreAbort) options.status.fetchAbortIgnored = true;
            } else {
              options.status.fetchResolved = true;
            }
          }
          if (aborted && !ignoreAbort && !updateCache) {
            return fetchFail(ac.signal.reason);
          }
          if (this.valList[index] === p3) {
            if (v7 === void 0) {
              if (p3.__staleWhileFetching) {
                this.valList[index] = p3.__staleWhileFetching;
              } else {
                this.delete(k3);
              }
            } else {
              if (options.status) options.status.fetchUpdated = true;
              this.set(k3, v7, fetchOpts.options);
            }
          }
          return v7;
        }, "cb");
        const eb = /* @__PURE__ */ __name((er) => {
          if (options.status) {
            options.status.fetchRejected = true;
            options.status.fetchError = er;
          }
          return fetchFail(er);
        }, "eb");
        const fetchFail = /* @__PURE__ */ __name((er) => {
          const { aborted } = ac.signal;
          const allowStaleAborted = aborted && options.allowStaleOnFetchAbort;
          const allowStale = allowStaleAborted || options.allowStaleOnFetchRejection;
          const noDelete = allowStale || options.noDeleteOnFetchRejection;
          if (this.valList[index] === p3) {
            const del = !noDelete || p3.__staleWhileFetching === void 0;
            if (del) {
              this.delete(k3);
            } else if (!allowStaleAborted) {
              this.valList[index] = p3.__staleWhileFetching;
            }
          }
          if (allowStale) {
            if (options.status && p3.__staleWhileFetching !== void 0) {
              options.status.returnedStale = true;
            }
            return p3.__staleWhileFetching;
          } else if (p3.__returned === p3) {
            throw er;
          }
        }, "fetchFail");
        const pcall = /* @__PURE__ */ __name((res, rej) => {
          this.fetchMethod(k3, v6, fetchOpts).then((v7) => res(v7), rej);
          ac.signal.addEventListener("abort", () => {
            if (!options.ignoreFetchAbort || options.allowStaleOnFetchAbort) {
              res();
              if (options.allowStaleOnFetchAbort) {
                res = /* @__PURE__ */ __name((v7) => cb(v7, true), "res");
              }
            }
          });
        }, "pcall");
        if (options.status) options.status.fetchDispatched = true;
        const p3 = new Promise(pcall).then(cb, eb);
        p3.__abortController = ac;
        p3.__staleWhileFetching = v6;
        p3.__returned = null;
        if (index === void 0) {
          this.set(k3, p3, { ...fetchOpts.options, status: void 0 });
          index = this.keyMap.get(k3);
        } else {
          this.valList[index] = p3;
        }
        return p3;
      }
      isBackgroundFetch(p3) {
        return p3 && typeof p3 === "object" && typeof p3.then === "function" && Object.prototype.hasOwnProperty.call(
          p3,
          "__staleWhileFetching"
        ) && Object.prototype.hasOwnProperty.call(p3, "__returned") && (p3.__returned === p3 || p3.__returned === null);
      }
      // this takes the union of get() and set() opts, because it does both
      async fetch(k3, {
        // get options
        allowStale = this.allowStale,
        updateAgeOnGet = this.updateAgeOnGet,
        noDeleteOnStaleGet = this.noDeleteOnStaleGet,
        // set options
        ttl = this.ttl,
        noDisposeOnSet = this.noDisposeOnSet,
        size = 0,
        sizeCalculation = this.sizeCalculation,
        noUpdateTTL = this.noUpdateTTL,
        // fetch exclusive options
        noDeleteOnFetchRejection = this.noDeleteOnFetchRejection,
        allowStaleOnFetchRejection = this.allowStaleOnFetchRejection,
        ignoreFetchAbort = this.ignoreFetchAbort,
        allowStaleOnFetchAbort = this.allowStaleOnFetchAbort,
        fetchContext = this.fetchContext,
        forceRefresh = false,
        status,
        signal
      } = {}) {
        if (!this.fetchMethod) {
          if (status) status.fetch = "get";
          return this.get(k3, {
            allowStale,
            updateAgeOnGet,
            noDeleteOnStaleGet,
            status
          });
        }
        const options = {
          allowStale,
          updateAgeOnGet,
          noDeleteOnStaleGet,
          ttl,
          noDisposeOnSet,
          size,
          sizeCalculation,
          noUpdateTTL,
          noDeleteOnFetchRejection,
          allowStaleOnFetchRejection,
          allowStaleOnFetchAbort,
          ignoreFetchAbort,
          status,
          signal
        };
        let index = this.keyMap.get(k3);
        if (index === void 0) {
          if (status) status.fetch = "miss";
          const p3 = this.backgroundFetch(k3, index, options, fetchContext);
          return p3.__returned = p3;
        } else {
          const v6 = this.valList[index];
          if (this.isBackgroundFetch(v6)) {
            const stale = allowStale && v6.__staleWhileFetching !== void 0;
            if (status) {
              status.fetch = "inflight";
              if (stale) status.returnedStale = true;
            }
            return stale ? v6.__staleWhileFetching : v6.__returned = v6;
          }
          const isStale = this.isStale(index);
          if (!forceRefresh && !isStale) {
            if (status) status.fetch = "hit";
            this.moveToTail(index);
            if (updateAgeOnGet) {
              this.updateItemAge(index);
            }
            this.statusTTL(status, index);
            return v6;
          }
          const p3 = this.backgroundFetch(k3, index, options, fetchContext);
          const hasStale = p3.__staleWhileFetching !== void 0;
          const staleVal = hasStale && allowStale;
          if (status) {
            status.fetch = hasStale && isStale ? "stale" : "refresh";
            if (staleVal && isStale) status.returnedStale = true;
          }
          return staleVal ? p3.__staleWhileFetching : p3.__returned = p3;
        }
      }
      get(k3, {
        allowStale = this.allowStale,
        updateAgeOnGet = this.updateAgeOnGet,
        noDeleteOnStaleGet = this.noDeleteOnStaleGet,
        status
      } = {}) {
        const index = this.keyMap.get(k3);
        if (index !== void 0) {
          const value = this.valList[index];
          const fetching = this.isBackgroundFetch(value);
          this.statusTTL(status, index);
          if (this.isStale(index)) {
            if (status) status.get = "stale";
            if (!fetching) {
              if (!noDeleteOnStaleGet) {
                this.delete(k3);
              }
              if (status) status.returnedStale = allowStale;
              return allowStale ? value : void 0;
            } else {
              if (status) {
                status.returnedStale = allowStale && value.__staleWhileFetching !== void 0;
              }
              return allowStale ? value.__staleWhileFetching : void 0;
            }
          } else {
            if (status) status.get = "hit";
            if (fetching) {
              return value.__staleWhileFetching;
            }
            this.moveToTail(index);
            if (updateAgeOnGet) {
              this.updateItemAge(index);
            }
            return value;
          }
        } else if (status) {
          status.get = "miss";
        }
      }
      connect(p3, n3) {
        this.prev[n3] = p3;
        this.next[p3] = n3;
      }
      moveToTail(index) {
        if (index !== this.tail) {
          if (index === this.head) {
            this.head = this.next[index];
          } else {
            this.connect(this.prev[index], this.next[index]);
          }
          this.connect(this.tail, index);
          this.tail = index;
        }
      }
      get del() {
        deprecatedMethod("del", "delete");
        return this.delete;
      }
      delete(k3) {
        let deleted = false;
        if (this.size !== 0) {
          const index = this.keyMap.get(k3);
          if (index !== void 0) {
            deleted = true;
            if (this.size === 1) {
              this.clear();
            } else {
              this.removeItemSize(index);
              const v6 = this.valList[index];
              if (this.isBackgroundFetch(v6)) {
                v6.__abortController.abort(new Error("deleted"));
              } else {
                this.dispose(v6, k3, "delete");
                if (this.disposeAfter) {
                  this.disposed.push([v6, k3, "delete"]);
                }
              }
              this.keyMap.delete(k3);
              this.keyList[index] = null;
              this.valList[index] = null;
              if (index === this.tail) {
                this.tail = this.prev[index];
              } else if (index === this.head) {
                this.head = this.next[index];
              } else {
                this.next[this.prev[index]] = this.next[index];
                this.prev[this.next[index]] = this.prev[index];
              }
              this.size--;
              this.free.push(index);
            }
          }
        }
        if (this.disposed) {
          while (this.disposed.length) {
            this.disposeAfter(...this.disposed.shift());
          }
        }
        return deleted;
      }
      clear() {
        for (const index of this.rindexes({ allowStale: true })) {
          const v6 = this.valList[index];
          if (this.isBackgroundFetch(v6)) {
            v6.__abortController.abort(new Error("deleted"));
          } else {
            const k3 = this.keyList[index];
            this.dispose(v6, k3, "delete");
            if (this.disposeAfter) {
              this.disposed.push([v6, k3, "delete"]);
            }
          }
        }
        this.keyMap.clear();
        this.valList.fill(null);
        this.keyList.fill(null);
        if (this.ttls) {
          this.ttls.fill(0);
          this.starts.fill(0);
        }
        if (this.sizes) {
          this.sizes.fill(0);
        }
        this.head = 0;
        this.tail = 0;
        this.initialFill = 1;
        this.free.length = 0;
        this.calculatedSize = 0;
        this.size = 0;
        if (this.disposed) {
          while (this.disposed.length) {
            this.disposeAfter(...this.disposed.shift());
          }
        }
      }
      get reset() {
        deprecatedMethod("reset", "clear");
        return this.clear;
      }
      get length() {
        deprecatedProperty("length", "size");
        return this.size;
      }
      static get AbortController() {
        return AC2;
      }
      static get AbortSignal() {
        return AS2;
      }
    };
    module2.exports = LRUCache2;
  }
});

// ../../node_modules/agent-base/dist/helpers.js
var require_helpers2 = __commonJS({
  "../../node_modules/agent-base/dist/helpers.js"(exports2) {
    "use strict";
    var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      var desc = Object.getOwnPropertyDescriptor(m3, k3);
      if (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) {
        desc = { enumerable: true, get: /* @__PURE__ */ __name(function() {
          return m3[k3];
        }, "get") };
      }
      Object.defineProperty(o3, k22, desc);
    }) : (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      o3[k22] = m3[k3];
    }));
    var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? (function(o3, v6) {
      Object.defineProperty(o3, "default", { enumerable: true, value: v6 });
    }) : function(o3, v6) {
      o3["default"] = v6;
    });
    var __importStar2 = exports2 && exports2.__importStar || function(mod) {
      if (mod && mod.__esModule) return mod;
      var result2 = {};
      if (mod != null) {
        for (var k3 in mod) if (k3 !== "default" && Object.prototype.hasOwnProperty.call(mod, k3)) __createBinding3(result2, mod, k3);
      }
      __setModuleDefault2(result2, mod);
      return result2;
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.req = exports2.json = exports2.toBuffer = void 0;
    var http = __importStar2(require("http"));
    var https2 = __importStar2(require("https"));
    async function toBuffer(stream3) {
      let length = 0;
      const chunks2 = [];
      for await (const chunk of stream3) {
        length += chunk.length;
        chunks2.push(chunk);
      }
      return Buffer.concat(chunks2, length);
    }
    __name(toBuffer, "toBuffer");
    exports2.toBuffer = toBuffer;
    async function json(stream3) {
      const buf = await toBuffer(stream3);
      const str = buf.toString("utf8");
      try {
        return JSON.parse(str);
      } catch (_err) {
        const err = _err;
        err.message += ` (input: ${str})`;
        throw err;
      }
    }
    __name(json, "json");
    exports2.json = json;
    function req(url, opts = {}) {
      const href = typeof url === "string" ? url : url.href;
      const req2 = (href.startsWith("https:") ? https2 : http).request(url, opts);
      const promise = new Promise((resolve13, reject) => {
        req2.once("response", resolve13).once("error", reject).end();
      });
      req2.then = promise.then.bind(promise);
      return req2;
    }
    __name(req, "req");
    exports2.req = req;
  }
});

// ../../node_modules/agent-base/dist/index.js
var require_dist3 = __commonJS({
  "../../node_modules/agent-base/dist/index.js"(exports2) {
    "use strict";
    var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      var desc = Object.getOwnPropertyDescriptor(m3, k3);
      if (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) {
        desc = { enumerable: true, get: /* @__PURE__ */ __name(function() {
          return m3[k3];
        }, "get") };
      }
      Object.defineProperty(o3, k22, desc);
    }) : (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      o3[k22] = m3[k3];
    }));
    var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? (function(o3, v6) {
      Object.defineProperty(o3, "default", { enumerable: true, value: v6 });
    }) : function(o3, v6) {
      o3["default"] = v6;
    });
    var __importStar2 = exports2 && exports2.__importStar || function(mod) {
      if (mod && mod.__esModule) return mod;
      var result2 = {};
      if (mod != null) {
        for (var k3 in mod) if (k3 !== "default" && Object.prototype.hasOwnProperty.call(mod, k3)) __createBinding3(result2, mod, k3);
      }
      __setModuleDefault2(result2, mod);
      return result2;
    };
    var __exportStar3 = exports2 && exports2.__exportStar || function(m3, exports3) {
      for (var p3 in m3) if (p3 !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p3)) __createBinding3(exports3, m3, p3);
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.Agent = void 0;
    var net = __importStar2(require("net"));
    var http = __importStar2(require("http"));
    var https_1 = require("https");
    __exportStar3(require_helpers2(), exports2);
    var INTERNAL = Symbol("AgentBaseInternalState");
    var Agent = class extends http.Agent {
      static {
        __name(this, "Agent");
      }
      constructor(opts) {
        super(opts);
        this[INTERNAL] = {};
      }
      /**
       * Determine whether this is an `http` or `https` request.
       */
      isSecureEndpoint(options) {
        if (options) {
          if (typeof options.secureEndpoint === "boolean") {
            return options.secureEndpoint;
          }
          if (typeof options.protocol === "string") {
            return options.protocol === "https:";
          }
        }
        const { stack } = new Error();
        if (typeof stack !== "string")
          return false;
        return stack.split("\n").some((l3) => l3.indexOf("(https.js:") !== -1 || l3.indexOf("node:https:") !== -1);
      }
      // In order to support async signatures in `connect()` and Node's native
      // connection pooling in `http.Agent`, the array of sockets for each origin
      // has to be updated synchronously. This is so the length of the array is
      // accurate when `addRequest()` is next called. We achieve this by creating a
      // fake socket and adding it to `sockets[origin]` and incrementing
      // `totalSocketCount`.
      incrementSockets(name) {
        if (this.maxSockets === Infinity && this.maxTotalSockets === Infinity) {
          return null;
        }
        if (!this.sockets[name]) {
          this.sockets[name] = [];
        }
        const fakeSocket = new net.Socket({ writable: false });
        this.sockets[name].push(fakeSocket);
        this.totalSocketCount++;
        return fakeSocket;
      }
      decrementSockets(name, socket) {
        if (!this.sockets[name] || socket === null) {
          return;
        }
        const sockets = this.sockets[name];
        const index = sockets.indexOf(socket);
        if (index !== -1) {
          sockets.splice(index, 1);
          this.totalSocketCount--;
          if (sockets.length === 0) {
            delete this.sockets[name];
          }
        }
      }
      // In order to properly update the socket pool, we need to call `getName()` on
      // the core `https.Agent` if it is a secureEndpoint.
      getName(options) {
        const secureEndpoint = this.isSecureEndpoint(options);
        if (secureEndpoint) {
          return https_1.Agent.prototype.getName.call(this, options);
        }
        return super.getName(options);
      }
      createSocket(req, options, cb) {
        const connectOpts = {
          ...options,
          secureEndpoint: this.isSecureEndpoint(options)
        };
        const name = this.getName(connectOpts);
        const fakeSocket = this.incrementSockets(name);
        Promise.resolve().then(() => this.connect(req, connectOpts)).then((socket) => {
          this.decrementSockets(name, fakeSocket);
          if (socket instanceof http.Agent) {
            try {
              return socket.addRequest(req, connectOpts);
            } catch (err) {
              return cb(err);
            }
          }
          this[INTERNAL].currentSocket = socket;
          super.createSocket(req, options, cb);
        }, (err) => {
          this.decrementSockets(name, fakeSocket);
          cb(err);
        });
      }
      createConnection() {
        const socket = this[INTERNAL].currentSocket;
        this[INTERNAL].currentSocket = void 0;
        if (!socket) {
          throw new Error("No socket was returned in the `connect()` function");
        }
        return socket;
      }
      get defaultPort() {
        return this[INTERNAL].defaultPort ?? (this.protocol === "https:" ? 443 : 80);
      }
      set defaultPort(v6) {
        if (this[INTERNAL]) {
          this[INTERNAL].defaultPort = v6;
        }
      }
      get protocol() {
        return this[INTERNAL].protocol ?? (this.isSecureEndpoint() ? "https:" : "http:");
      }
      set protocol(v6) {
        if (this[INTERNAL]) {
          this[INTERNAL].protocol = v6;
        }
      }
    };
    exports2.Agent = Agent;
  }
});

// ../../node_modules/ms/index.js
var require_ms = __commonJS({
  "../../node_modules/ms/index.js"(exports2, module2) {
    var s3 = 1e3;
    var m3 = s3 * 60;
    var h3 = m3 * 60;
    var d3 = h3 * 24;
    var w3 = d3 * 7;
    var y2 = d3 * 365.25;
    module2.exports = function(val, options) {
      options = options || {};
      var type = typeof val;
      if (type === "string" && val.length > 0) {
        return parse3(val);
      } else if (type === "number" && isFinite(val)) {
        return options.long ? fmtLong(val) : fmtShort(val);
      }
      throw new Error(
        "val is not a non-empty string or a valid number. val=" + JSON.stringify(val)
      );
    };
    function parse3(str) {
      str = String(str);
      if (str.length > 100) {
        return;
      }
      var match4 = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
        str
      );
      if (!match4) {
        return;
      }
      var n3 = parseFloat(match4[1]);
      var type = (match4[2] || "ms").toLowerCase();
      switch (type) {
        case "years":
        case "year":
        case "yrs":
        case "yr":
        case "y":
          return n3 * y2;
        case "weeks":
        case "week":
        case "w":
          return n3 * w3;
        case "days":
        case "day":
        case "d":
          return n3 * d3;
        case "hours":
        case "hour":
        case "hrs":
        case "hr":
        case "h":
          return n3 * h3;
        case "minutes":
        case "minute":
        case "mins":
        case "min":
        case "m":
          return n3 * m3;
        case "seconds":
        case "second":
        case "secs":
        case "sec":
        case "s":
          return n3 * s3;
        case "milliseconds":
        case "millisecond":
        case "msecs":
        case "msec":
        case "ms":
          return n3;
        default:
          return void 0;
      }
    }
    __name(parse3, "parse");
    function fmtShort(ms) {
      var msAbs = Math.abs(ms);
      if (msAbs >= d3) {
        return Math.round(ms / d3) + "d";
      }
      if (msAbs >= h3) {
        return Math.round(ms / h3) + "h";
      }
      if (msAbs >= m3) {
        return Math.round(ms / m3) + "m";
      }
      if (msAbs >= s3) {
        return Math.round(ms / s3) + "s";
      }
      return ms + "ms";
    }
    __name(fmtShort, "fmtShort");
    function fmtLong(ms) {
      var msAbs = Math.abs(ms);
      if (msAbs >= d3) {
        return plural(ms, msAbs, d3, "day");
      }
      if (msAbs >= h3) {
        return plural(ms, msAbs, h3, "hour");
      }
      if (msAbs >= m3) {
        return plural(ms, msAbs, m3, "minute");
      }
      if (msAbs >= s3) {
        return plural(ms, msAbs, s3, "second");
      }
      return ms + " ms";
    }
    __name(fmtLong, "fmtLong");
    function plural(ms, msAbs, n3, name) {
      var isPlural = msAbs >= n3 * 1.5;
      return Math.round(ms / n3) + " " + name + (isPlural ? "s" : "");
    }
    __name(plural, "plural");
  }
});

// ../../node_modules/debug/src/common.js
var require_common = __commonJS({
  "../../node_modules/debug/src/common.js"(exports2, module2) {
    function setup(env2) {
      createDebug.debug = createDebug;
      createDebug.default = createDebug;
      createDebug.coerce = coerce2;
      createDebug.disable = disable;
      createDebug.enable = enable;
      createDebug.enabled = enabled;
      createDebug.humanize = require_ms();
      createDebug.destroy = destroy;
      Object.keys(env2).forEach((key) => {
        createDebug[key] = env2[key];
      });
      createDebug.names = [];
      createDebug.skips = [];
      createDebug.formatters = {};
      function selectColor(namespace) {
        let hash = 0;
        for (let i3 = 0; i3 < namespace.length; i3++) {
          hash = (hash << 5) - hash + namespace.charCodeAt(i3);
          hash |= 0;
        }
        return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
      }
      __name(selectColor, "selectColor");
      createDebug.selectColor = selectColor;
      function createDebug(namespace) {
        let prevTime;
        let enableOverride = null;
        let namespacesCache;
        let enabledCache;
        function debug3(...args) {
          if (!debug3.enabled) {
            return;
          }
          const self2 = debug3;
          const curr = Number(/* @__PURE__ */ new Date());
          const ms = curr - (prevTime || curr);
          self2.diff = ms;
          self2.prev = prevTime;
          self2.curr = curr;
          prevTime = curr;
          args[0] = createDebug.coerce(args[0]);
          if (typeof args[0] !== "string") {
            args.unshift("%O");
          }
          let index = 0;
          args[0] = args[0].replace(/%([a-zA-Z%])/g, (match4, format26) => {
            if (match4 === "%%") {
              return "%";
            }
            index++;
            const formatter = createDebug.formatters[format26];
            if (typeof formatter === "function") {
              const val = args[index];
              match4 = formatter.call(self2, val);
              args.splice(index, 1);
              index--;
            }
            return match4;
          });
          createDebug.formatArgs.call(self2, args);
          const logFn = self2.log || createDebug.log;
          logFn.apply(self2, args);
        }
        __name(debug3, "debug");
        debug3.namespace = namespace;
        debug3.useColors = createDebug.useColors();
        debug3.color = createDebug.selectColor(namespace);
        debug3.extend = extend;
        debug3.destroy = createDebug.destroy;
        Object.defineProperty(debug3, "enabled", {
          enumerable: true,
          configurable: false,
          get: /* @__PURE__ */ __name(() => {
            if (enableOverride !== null) {
              return enableOverride;
            }
            if (namespacesCache !== createDebug.namespaces) {
              namespacesCache = createDebug.namespaces;
              enabledCache = createDebug.enabled(namespace);
            }
            return enabledCache;
          }, "get"),
          set: /* @__PURE__ */ __name((v6) => {
            enableOverride = v6;
          }, "set")
        });
        if (typeof createDebug.init === "function") {
          createDebug.init(debug3);
        }
        return debug3;
      }
      __name(createDebug, "createDebug");
      function extend(namespace, delimiter2) {
        const newDebug = createDebug(this.namespace + (typeof delimiter2 === "undefined" ? ":" : delimiter2) + namespace);
        newDebug.log = this.log;
        return newDebug;
      }
      __name(extend, "extend");
      function enable(namespaces) {
        createDebug.save(namespaces);
        createDebug.namespaces = namespaces;
        createDebug.names = [];
        createDebug.skips = [];
        const split2 = (typeof namespaces === "string" ? namespaces : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
        for (const ns of split2) {
          if (ns[0] === "-") {
            createDebug.skips.push(ns.slice(1));
          } else {
            createDebug.names.push(ns);
          }
        }
      }
      __name(enable, "enable");
      function matchesTemplate(search, template) {
        let searchIndex = 0;
        let templateIndex = 0;
        let starIndex = -1;
        let matchIndex = 0;
        while (searchIndex < search.length) {
          if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) {
            if (template[templateIndex] === "*") {
              starIndex = templateIndex;
              matchIndex = searchIndex;
              templateIndex++;
            } else {
              searchIndex++;
              templateIndex++;
            }
          } else if (starIndex !== -1) {
            templateIndex = starIndex + 1;
            matchIndex++;
            searchIndex = matchIndex;
          } else {
            return false;
          }
        }
        while (templateIndex < template.length && template[templateIndex] === "*") {
          templateIndex++;
        }
        return templateIndex === template.length;
      }
      __name(matchesTemplate, "matchesTemplate");
      function disable() {
        const namespaces = [
          ...createDebug.names,
          ...createDebug.skips.map((namespace) => "-" + namespace)
        ].join(",");
        createDebug.enable("");
        return namespaces;
      }
      __name(disable, "disable");
      function enabled(name) {
        for (const skip of createDebug.skips) {
          if (matchesTemplate(name, skip)) {
            return false;
          }
        }
        for (const ns of createDebug.names) {
          if (matchesTemplate(name, ns)) {
            return true;
          }
        }
        return false;
      }
      __name(enabled, "enabled");
      function coerce2(val) {
        if (val instanceof Error) {
          return val.stack || val.message;
        }
        return val;
      }
      __name(coerce2, "coerce");
      function destroy() {
        console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
      }
      __name(destroy, "destroy");
      createDebug.enable(createDebug.load());
      return createDebug;
    }
    __name(setup, "setup");
    module2.exports = setup;
  }
});

// ../../node_modules/debug/src/browser.js
var require_browser = __commonJS({
  "../../node_modules/debug/src/browser.js"(exports2, module2) {
    exports2.formatArgs = formatArgs;
    exports2.save = save;
    exports2.load = load;
    exports2.useColors = useColors;
    exports2.storage = localstorage();
    exports2.destroy = /* @__PURE__ */ (() => {
      let warned2 = false;
      return () => {
        if (!warned2) {
          warned2 = true;
          console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
        }
      };
    })();
    exports2.colors = [
      "#0000CC",
      "#0000FF",
      "#0033CC",
      "#0033FF",
      "#0066CC",
      "#0066FF",
      "#0099CC",
      "#0099FF",
      "#00CC00",
      "#00CC33",
      "#00CC66",
      "#00CC99",
      "#00CCCC",
      "#00CCFF",
      "#3300CC",
      "#3300FF",
      "#3333CC",
      "#3333FF",
      "#3366CC",
      "#3366FF",
      "#3399CC",
      "#3399FF",
      "#33CC00",
      "#33CC33",
      "#33CC66",
      "#33CC99",
      "#33CCCC",
      "#33CCFF",
      "#6600CC",
      "#6600FF",
      "#6633CC",
      "#6633FF",
      "#66CC00",
      "#66CC33",
      "#9900CC",
      "#9900FF",
      "#9933CC",
      "#9933FF",
      "#99CC00",
      "#99CC33",
      "#CC0000",
      "#CC0033",
      "#CC0066",
      "#CC0099",
      "#CC00CC",
      "#CC00FF",
      "#CC3300",
      "#CC3333",
      "#CC3366",
      "#CC3399",
      "#CC33CC",
      "#CC33FF",
      "#CC6600",
      "#CC6633",
      "#CC9900",
      "#CC9933",
      "#CCCC00",
      "#CCCC33",
      "#FF0000",
      "#FF0033",
      "#FF0066",
      "#FF0099",
      "#FF00CC",
      "#FF00FF",
      "#FF3300",
      "#FF3333",
      "#FF3366",
      "#FF3399",
      "#FF33CC",
      "#FF33FF",
      "#FF6600",
      "#FF6633",
      "#FF9900",
      "#FF9933",
      "#FFCC00",
      "#FFCC33"
    ];
    function useColors() {
      if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) {
        return true;
      }
      if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
        return false;
      }
      let m3;
      return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
      typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
      // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
      typeof navigator !== "undefined" && navigator.userAgent && (m3 = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m3[1], 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
      typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
    }
    __name(useColors, "useColors");
    function formatArgs(args) {
      args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module2.exports.humanize(this.diff);
      if (!this.useColors) {
        return;
      }
      const c3 = "color: " + this.color;
      args.splice(1, 0, c3, "color: inherit");
      let index = 0;
      let lastC = 0;
      args[0].replace(/%[a-zA-Z%]/g, (match4) => {
        if (match4 === "%%") {
          return;
        }
        index++;
        if (match4 === "%c") {
          lastC = index;
        }
      });
      args.splice(lastC, 0, c3);
    }
    __name(formatArgs, "formatArgs");
    exports2.log = console.debug || console.log || (() => {
    });
    function save(namespaces) {
      try {
        if (namespaces) {
          exports2.storage.setItem("debug", namespaces);
        } else {
          exports2.storage.removeItem("debug");
        }
      } catch (error5) {
      }
    }
    __name(save, "save");
    function load() {
      let r3;
      try {
        r3 = exports2.storage.getItem("debug") || exports2.storage.getItem("DEBUG");
      } catch (error5) {
      }
      if (!r3 && typeof process !== "undefined" && "env" in process) {
        r3 = process.env.DEBUG;
      }
      return r3;
    }
    __name(load, "load");
    function localstorage() {
      try {
        return localStorage;
      } catch (error5) {
      }
    }
    __name(localstorage, "localstorage");
    module2.exports = require_common()(exports2);
    var { formatters } = module2.exports;
    formatters.j = function(v6) {
      try {
        return JSON.stringify(v6);
      } catch (error5) {
        return "[UnexpectedJSONParseError]: " + error5.message;
      }
    };
  }
});

// ../../node_modules/debug/src/node.js
var require_node2 = __commonJS({
  "../../node_modules/debug/src/node.js"(exports2, module2) {
    var tty = require("tty");
    var util11 = require("util");
    exports2.init = init;
    exports2.log = log;
    exports2.formatArgs = formatArgs;
    exports2.save = save;
    exports2.load = load;
    exports2.useColors = useColors;
    exports2.destroy = util11.deprecate(
      () => {
      },
      "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."
    );
    exports2.colors = [6, 2, 3, 4, 5, 1];
    try {
      const supportsColor = require_supports_color();
      if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
        exports2.colors = [
          20,
          21,
          26,
          27,
          32,
          33,
          38,
          39,
          40,
          41,
          42,
          43,
          44,
          45,
          56,
          57,
          62,
          63,
          68,
          69,
          74,
          75,
          76,
          77,
          78,
          79,
          80,
          81,
          92,
          93,
          98,
          99,
          112,
          113,
          128,
          129,
          134,
          135,
          148,
          149,
          160,
          161,
          162,
          163,
          164,
          165,
          166,
          167,
          168,
          169,
          170,
          171,
          172,
          173,
          178,
          179,
          184,
          185,
          196,
          197,
          198,
          199,
          200,
          201,
          202,
          203,
          204,
          205,
          206,
          207,
          208,
          209,
          214,
          215,
          220,
          221
        ];
      }
    } catch (error5) {
    }
    exports2.inspectOpts = Object.keys(process.env).filter((key) => {
      return /^debug_/i.test(key);
    }).reduce((obj, key) => {
      const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_3, k3) => {
        return k3.toUpperCase();
      });
      let val = process.env[key];
      if (/^(yes|on|true|enabled)$/i.test(val)) {
        val = true;
      } else if (/^(no|off|false|disabled)$/i.test(val)) {
        val = false;
      } else if (val === "null") {
        val = null;
      } else {
        val = Number(val);
      }
      obj[prop] = val;
      return obj;
    }, {});
    function useColors() {
      return "colors" in exports2.inspectOpts ? Boolean(exports2.inspectOpts.colors) : tty.isatty(process.stderr.fd);
    }
    __name(useColors, "useColors");
    function formatArgs(args) {
      const { namespace: name, useColors: useColors2 } = this;
      if (useColors2) {
        const c3 = this.color;
        const colorCode = "\x1B[3" + (c3 < 8 ? c3 : "8;5;" + c3);
        const prefix2 = `  ${colorCode};1m${name} \x1B[0m`;
        args[0] = prefix2 + args[0].split("\n").join("\n" + prefix2);
        args.push(colorCode + "m+" + module2.exports.humanize(this.diff) + "\x1B[0m");
      } else {
        args[0] = getDate() + name + " " + args[0];
      }
    }
    __name(formatArgs, "formatArgs");
    function getDate() {
      if (exports2.inspectOpts.hideDate) {
        return "";
      }
      return (/* @__PURE__ */ new Date()).toISOString() + " ";
    }
    __name(getDate, "getDate");
    function log(...args) {
      return process.stderr.write(util11.formatWithOptions(exports2.inspectOpts, ...args) + "\n");
    }
    __name(log, "log");
    function save(namespaces) {
      if (namespaces) {
        process.env.DEBUG = namespaces;
      } else {
        delete process.env.DEBUG;
      }
    }
    __name(save, "save");
    function load() {
      return process.env.DEBUG;
    }
    __name(load, "load");
    function init(debug3) {
      debug3.inspectOpts = {};
      const keys = Object.keys(exports2.inspectOpts);
      for (let i3 = 0; i3 < keys.length; i3++) {
        debug3.inspectOpts[keys[i3]] = exports2.inspectOpts[keys[i3]];
      }
    }
    __name(init, "init");
    module2.exports = require_common()(exports2);
    var { formatters } = module2.exports;
    formatters.o = function(v6) {
      this.inspectOpts.colors = this.useColors;
      return util11.inspect(v6, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
    };
    formatters.O = function(v6) {
      this.inspectOpts.colors = this.useColors;
      return util11.inspect(v6, this.inspectOpts);
    };
  }
});

// ../../node_modules/debug/src/index.js
var require_src2 = __commonJS({
  "../../node_modules/debug/src/index.js"(exports2, module2) {
    if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
      module2.exports = require_browser();
    } else {
      module2.exports = require_node2();
    }
  }
});

// ../../node_modules/proxy-from-env/index.js
var require_proxy_from_env = __commonJS({
  "../../node_modules/proxy-from-env/index.js"(exports2) {
    "use strict";
    var parseUrl3 = require("url").parse;
    var DEFAULT_PORTS = {
      ftp: 21,
      gopher: 70,
      http: 80,
      https: 443,
      ws: 80,
      wss: 443
    };
    var stringEndsWith = String.prototype.endsWith || function(s3) {
      return s3.length <= this.length && this.indexOf(s3, this.length - s3.length) !== -1;
    };
    function getProxyForUrl(url) {
      var parsedUrl = typeof url === "string" ? parseUrl3(url) : url || {};
      var proto = parsedUrl.protocol;
      var hostname = parsedUrl.host;
      var port = parsedUrl.port;
      if (typeof hostname !== "string" || !hostname || typeof proto !== "string") {
        return "";
      }
      proto = proto.split(":", 1)[0];
      hostname = hostname.replace(/:\d*$/, "");
      port = parseInt(port) || DEFAULT_PORTS[proto] || 0;
      if (!shouldProxy(hostname, port)) {
        return "";
      }
      var proxy = getEnv("npm_config_" + proto + "_proxy") || getEnv(proto + "_proxy") || getEnv("npm_config_proxy") || getEnv("all_proxy");
      if (proxy && proxy.indexOf("://") === -1) {
        proxy = proto + "://" + proxy;
      }
      return proxy;
    }
    __name(getProxyForUrl, "getProxyForUrl");
    function shouldProxy(hostname, port) {
      var NO_PROXY = (getEnv("npm_config_no_proxy") || getEnv("no_proxy")).toLowerCase();
      if (!NO_PROXY) {
        return true;
      }
      if (NO_PROXY === "*") {
        return false;
      }
      return NO_PROXY.split(/[,\s]/).every(function(proxy) {
        if (!proxy) {
          return true;
        }
        var parsedProxy = proxy.match(/^(.+):(\d+)$/);
        var parsedProxyHostname = parsedProxy ? parsedProxy[1] : proxy;
        var parsedProxyPort = parsedProxy ? parseInt(parsedProxy[2]) : 0;
        if (parsedProxyPort && parsedProxyPort !== port) {
          return true;
        }
        if (!/^[.*]/.test(parsedProxyHostname)) {
          return hostname !== parsedProxyHostname;
        }
        if (parsedProxyHostname.charAt(0) === "*") {
          parsedProxyHostname = parsedProxyHostname.slice(1);
        }
        return !stringEndsWith.call(hostname, parsedProxyHostname);
      });
    }
    __name(shouldProxy, "shouldProxy");
    function getEnv(key) {
      return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
    }
    __name(getEnv, "getEnv");
    exports2.getProxyForUrl = getProxyForUrl;
  }
});

// ../../node_modules/http-proxy-agent/dist/index.js
var require_dist4 = __commonJS({
  "../../node_modules/http-proxy-agent/dist/index.js"(exports2) {
    "use strict";
    var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      var desc = Object.getOwnPropertyDescriptor(m3, k3);
      if (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) {
        desc = { enumerable: true, get: /* @__PURE__ */ __name(function() {
          return m3[k3];
        }, "get") };
      }
      Object.defineProperty(o3, k22, desc);
    }) : (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      o3[k22] = m3[k3];
    }));
    var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? (function(o3, v6) {
      Object.defineProperty(o3, "default", { enumerable: true, value: v6 });
    }) : function(o3, v6) {
      o3["default"] = v6;
    });
    var __importStar2 = exports2 && exports2.__importStar || function(mod) {
      if (mod && mod.__esModule) return mod;
      var result2 = {};
      if (mod != null) {
        for (var k3 in mod) if (k3 !== "default" && Object.prototype.hasOwnProperty.call(mod, k3)) __createBinding3(result2, mod, k3);
      }
      __setModuleDefault2(result2, mod);
      return result2;
    };
    var __importDefault2 = exports2 && exports2.__importDefault || function(mod) {
      return mod && mod.__esModule ? mod : { "default": mod };
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.HttpProxyAgent = void 0;
    var net = __importStar2(require("net"));
    var tls = __importStar2(require("tls"));
    var debug_1 = __importDefault2(require_src2());
    var events_1 = require("events");
    var agent_base_1 = require_dist3();
    var url_1 = require("url");
    var debug3 = (0, debug_1.default)("http-proxy-agent");
    var HttpProxyAgent = class extends agent_base_1.Agent {
      static {
        __name(this, "HttpProxyAgent");
      }
      constructor(proxy, opts) {
        super(opts);
        this.proxy = typeof proxy === "string" ? new url_1.URL(proxy) : proxy;
        this.proxyHeaders = opts?.headers ?? {};
        debug3("Creating new HttpProxyAgent instance: %o", this.proxy.href);
        const host = (this.proxy.hostname || this.proxy.host).replace(/^\[|\]$/g, "");
        const port = this.proxy.port ? parseInt(this.proxy.port, 10) : this.proxy.protocol === "https:" ? 443 : 80;
        this.connectOpts = {
          ...opts ? omit(opts, "headers") : null,
          host,
          port
        };
      }
      addRequest(req, opts) {
        req._header = null;
        this.setRequestProps(req, opts);
        super.addRequest(req, opts);
      }
      setRequestProps(req, opts) {
        const { proxy } = this;
        const protocol = opts.secureEndpoint ? "https:" : "http:";
        const hostname = req.getHeader("host") || "localhost";
        const base = `${protocol}//${hostname}`;
        const url = new url_1.URL(req.path, base);
        if (opts.port !== 80) {
          url.port = String(opts.port);
        }
        req.path = String(url);
        const headers = typeof this.proxyHeaders === "function" ? this.proxyHeaders() : { ...this.proxyHeaders };
        if (proxy.username || proxy.password) {
          const auth = `${decodeURIComponent(proxy.username)}:${decodeURIComponent(proxy.password)}`;
          headers["Proxy-Authorization"] = `Basic ${Buffer.from(auth).toString("base64")}`;
        }
        if (!headers["Proxy-Connection"]) {
          headers["Proxy-Connection"] = this.keepAlive ? "Keep-Alive" : "close";
        }
        for (const name of Object.keys(headers)) {
          const value = headers[name];
          if (value) {
            req.setHeader(name, value);
          }
        }
      }
      async connect(req, opts) {
        req._header = null;
        if (!req.path.includes("://")) {
          this.setRequestProps(req, opts);
        }
        let first;
        let endOfHeaders;
        debug3("Regenerating stored HTTP header string for request");
        req._implicitHeader();
        if (req.outputData && req.outputData.length > 0) {
          debug3("Patching connection write() output buffer with updated header");
          first = req.outputData[0].data;
          endOfHeaders = first.indexOf("\r\n\r\n") + 4;
          req.outputData[0].data = req._header + first.substring(endOfHeaders);
          debug3("Output buffer: %o", req.outputData[0].data);
        }
        let socket;
        if (this.proxy.protocol === "https:") {
          debug3("Creating `tls.Socket`: %o", this.connectOpts);
          socket = tls.connect(this.connectOpts);
        } else {
          debug3("Creating `net.Socket`: %o", this.connectOpts);
          socket = net.connect(this.connectOpts);
        }
        await (0, events_1.once)(socket, "connect");
        return socket;
      }
    };
    HttpProxyAgent.protocols = ["http", "https"];
    exports2.HttpProxyAgent = HttpProxyAgent;
    function omit(obj, ...keys) {
      const ret = {};
      let key;
      for (key in obj) {
        if (!keys.includes(key)) {
          ret[key] = obj[key];
        }
      }
      return ret;
    }
    __name(omit, "omit");
  }
});

// ../../node_modules/https-proxy-agent/dist/parse-proxy-response.js
var require_parse_proxy_response = __commonJS({
  "../../node_modules/https-proxy-agent/dist/parse-proxy-response.js"(exports2) {
    "use strict";
    var __importDefault2 = exports2 && exports2.__importDefault || function(mod) {
      return mod && mod.__esModule ? mod : { "default": mod };
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.parseProxyResponse = void 0;
    var debug_1 = __importDefault2(require_src2());
    var debug3 = (0, debug_1.default)("https-proxy-agent:parse-proxy-response");
    function parseProxyResponse(socket) {
      return new Promise((resolve13, reject) => {
        let buffersLength = 0;
        const buffers = [];
        function read() {
          const b3 = socket.read();
          if (b3)
            ondata(b3);
          else
            socket.once("readable", read);
        }
        __name(read, "read");
        function cleanup() {
          socket.removeListener("end", onend);
          socket.removeListener("error", onerror);
          socket.removeListener("readable", read);
        }
        __name(cleanup, "cleanup");
        function onend() {
          cleanup();
          debug3("onend");
          reject(new Error("Proxy connection ended before receiving CONNECT response"));
        }
        __name(onend, "onend");
        function onerror(err) {
          cleanup();
          debug3("onerror %o", err);
          reject(err);
        }
        __name(onerror, "onerror");
        function ondata(b3) {
          buffers.push(b3);
          buffersLength += b3.length;
          const buffered = Buffer.concat(buffers, buffersLength);
          const endOfHeaders = buffered.indexOf("\r\n\r\n");
          if (endOfHeaders === -1) {
            debug3("have not received end of HTTP headers yet...");
            read();
            return;
          }
          const headerParts = buffered.slice(0, endOfHeaders).toString("ascii").split("\r\n");
          const firstLine = headerParts.shift();
          if (!firstLine) {
            socket.destroy();
            return reject(new Error("No header received from proxy CONNECT response"));
          }
          const firstLineParts = firstLine.split(" ");
          const statusCode = +firstLineParts[1];
          const statusText = firstLineParts.slice(2).join(" ");
          const headers = {};
          for (const header of headerParts) {
            if (!header)
              continue;
            const firstColon = header.indexOf(":");
            if (firstColon === -1) {
              socket.destroy();
              return reject(new Error(`Invalid header from proxy CONNECT response: "${header}"`));
            }
            const key = header.slice(0, firstColon).toLowerCase();
            const value = header.slice(firstColon + 1).trimStart();
            const current = headers[key];
            if (typeof current === "string") {
              headers[key] = [current, value];
            } else if (Array.isArray(current)) {
              current.push(value);
            } else {
              headers[key] = value;
            }
          }
          debug3("got proxy server response: %o %o", firstLine, headers);
          cleanup();
          resolve13({
            connect: {
              statusCode,
              statusText,
              headers
            },
            buffered
          });
        }
        __name(ondata, "ondata");
        socket.on("error", onerror);
        socket.on("end", onend);
        read();
      });
    }
    __name(parseProxyResponse, "parseProxyResponse");
    exports2.parseProxyResponse = parseProxyResponse;
  }
});

// ../../node_modules/https-proxy-agent/dist/index.js
var require_dist5 = __commonJS({
  "../../node_modules/https-proxy-agent/dist/index.js"(exports2) {
    "use strict";
    var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      var desc = Object.getOwnPropertyDescriptor(m3, k3);
      if (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) {
        desc = { enumerable: true, get: /* @__PURE__ */ __name(function() {
          return m3[k3];
        }, "get") };
      }
      Object.defineProperty(o3, k22, desc);
    }) : (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      o3[k22] = m3[k3];
    }));
    var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? (function(o3, v6) {
      Object.defineProperty(o3, "default", { enumerable: true, value: v6 });
    }) : function(o3, v6) {
      o3["default"] = v6;
    });
    var __importStar2 = exports2 && exports2.__importStar || function(mod) {
      if (mod && mod.__esModule) return mod;
      var result2 = {};
      if (mod != null) {
        for (var k3 in mod) if (k3 !== "default" && Object.prototype.hasOwnProperty.call(mod, k3)) __createBinding3(result2, mod, k3);
      }
      __setModuleDefault2(result2, mod);
      return result2;
    };
    var __importDefault2 = exports2 && exports2.__importDefault || function(mod) {
      return mod && mod.__esModule ? mod : { "default": mod };
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.HttpsProxyAgent = void 0;
    var net = __importStar2(require("net"));
    var tls = __importStar2(require("tls"));
    var assert_1 = __importDefault2(require("assert"));
    var debug_1 = __importDefault2(require_src2());
    var agent_base_1 = require_dist3();
    var url_1 = require("url");
    var parse_proxy_response_1 = require_parse_proxy_response();
    var debug3 = (0, debug_1.default)("https-proxy-agent");
    var setServernameFromNonIpHost = /* @__PURE__ */ __name((options) => {
      if (options.servername === void 0 && options.host && !net.isIP(options.host)) {
        return {
          ...options,
          servername: options.host
        };
      }
      return options;
    }, "setServernameFromNonIpHost");
    var HttpsProxyAgent = class extends agent_base_1.Agent {
      static {
        __name(this, "HttpsProxyAgent");
      }
      constructor(proxy, opts) {
        super(opts);
        this.options = { path: void 0 };
        this.proxy = typeof proxy === "string" ? new url_1.URL(proxy) : proxy;
        this.proxyHeaders = opts?.headers ?? {};
        debug3("Creating new HttpsProxyAgent instance: %o", this.proxy.href);
        const host = (this.proxy.hostname || this.proxy.host).replace(/^\[|\]$/g, "");
        const port = this.proxy.port ? parseInt(this.proxy.port, 10) : this.proxy.protocol === "https:" ? 443 : 80;
        this.connectOpts = {
          // Attempt to negotiate http/1.1 for proxy servers that support http/2
          ALPNProtocols: ["http/1.1"],
          ...opts ? omit(opts, "headers") : null,
          host,
          port
        };
      }
      /**
       * Called when the node-core HTTP client library is creating a
       * new HTTP request.
       */
      async connect(req, opts) {
        const { proxy } = this;
        if (!opts.host) {
          throw new TypeError('No "host" provided');
        }
        let socket;
        if (proxy.protocol === "https:") {
          debug3("Creating `tls.Socket`: %o", this.connectOpts);
          socket = tls.connect(setServernameFromNonIpHost(this.connectOpts));
        } else {
          debug3("Creating `net.Socket`: %o", this.connectOpts);
          socket = net.connect(this.connectOpts);
        }
        const headers = typeof this.proxyHeaders === "function" ? this.proxyHeaders() : { ...this.proxyHeaders };
        const host = net.isIPv6(opts.host) ? `[${opts.host}]` : opts.host;
        let payload2 = `CONNECT ${host}:${opts.port} HTTP/1.1\r
`;
        if (proxy.username || proxy.password) {
          const auth = `${decodeURIComponent(proxy.username)}:${decodeURIComponent(proxy.password)}`;
          headers["Proxy-Authorization"] = `Basic ${Buffer.from(auth).toString("base64")}`;
        }
        headers.Host = `${host}:${opts.port}`;
        if (!headers["Proxy-Connection"]) {
          headers["Proxy-Connection"] = this.keepAlive ? "Keep-Alive" : "close";
        }
        for (const name of Object.keys(headers)) {
          payload2 += `${name}: ${headers[name]}\r
`;
        }
        const proxyResponsePromise = (0, parse_proxy_response_1.parseProxyResponse)(socket);
        socket.write(`${payload2}\r
`);
        const { connect, buffered } = await proxyResponsePromise;
        req.emit("proxyConnect", connect);
        this.emit("proxyConnect", connect, req);
        if (connect.statusCode === 200) {
          req.once("socket", resume);
          if (opts.secureEndpoint) {
            debug3("Upgrading socket connection to TLS");
            return tls.connect({
              ...omit(setServernameFromNonIpHost(opts), "host", "path", "port"),
              socket
            });
          }
          return socket;
        }
        socket.destroy();
        const fakeSocket = new net.Socket({ writable: false });
        fakeSocket.readable = true;
        req.once("socket", (s3) => {
          debug3("Replaying proxy buffer for failed request");
          (0, assert_1.default)(s3.listenerCount("data") > 0);
          s3.push(buffered);
          s3.push(null);
        });
        return fakeSocket;
      }
    };
    HttpsProxyAgent.protocols = ["http", "https"];
    exports2.HttpsProxyAgent = HttpsProxyAgent;
    function resume(socket) {
      socket.resume();
    }
    __name(resume, "resume");
    function omit(obj, ...keys) {
      const ret = {};
      let key;
      for (key in obj) {
        if (!keys.includes(key)) {
          ret[key] = obj[key];
        }
      }
      return ret;
    }
    __name(omit, "omit");
  }
});

// ../../node_modules/smart-buffer/build/utils.js
var require_utils10 = __commonJS({
  "../../node_modules/smart-buffer/build/utils.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    var buffer_1 = require("buffer");
    var ERRORS = {
      INVALID_ENCODING: "Invalid encoding provided. Please specify a valid encoding the internal Node.js Buffer supports.",
      INVALID_SMARTBUFFER_SIZE: "Invalid size provided. Size must be a valid integer greater than zero.",
      INVALID_SMARTBUFFER_BUFFER: "Invalid Buffer provided in SmartBufferOptions.",
      INVALID_SMARTBUFFER_OBJECT: "Invalid SmartBufferOptions object supplied to SmartBuffer constructor or factory methods.",
      INVALID_OFFSET: "An invalid offset value was provided.",
      INVALID_OFFSET_NON_NUMBER: "An invalid offset value was provided. A numeric value is required.",
      INVALID_LENGTH: "An invalid length value was provided.",
      INVALID_LENGTH_NON_NUMBER: "An invalid length value was provived. A numeric value is required.",
      INVALID_TARGET_OFFSET: "Target offset is beyond the bounds of the internal SmartBuffer data.",
      INVALID_TARGET_LENGTH: "Specified length value moves cursor beyong the bounds of the internal SmartBuffer data.",
      INVALID_READ_BEYOND_BOUNDS: "Attempted to read beyond the bounds of the managed data.",
      INVALID_WRITE_BEYOND_BOUNDS: "Attempted to write beyond the bounds of the managed data."
    };
    exports2.ERRORS = ERRORS;
    function checkEncoding(encoding) {
      if (!buffer_1.Buffer.isEncoding(encoding)) {
        throw new Error(ERRORS.INVALID_ENCODING);
      }
    }
    __name(checkEncoding, "checkEncoding");
    exports2.checkEncoding = checkEncoding;
    function isFiniteInteger(value) {
      return typeof value === "number" && isFinite(value) && isInteger(value);
    }
    __name(isFiniteInteger, "isFiniteInteger");
    exports2.isFiniteInteger = isFiniteInteger;
    function checkOffsetOrLengthValue(value, offset) {
      if (typeof value === "number") {
        if (!isFiniteInteger(value) || value < 0) {
          throw new Error(offset ? ERRORS.INVALID_OFFSET : ERRORS.INVALID_LENGTH);
        }
      } else {
        throw new Error(offset ? ERRORS.INVALID_OFFSET_NON_NUMBER : ERRORS.INVALID_LENGTH_NON_NUMBER);
      }
    }
    __name(checkOffsetOrLengthValue, "checkOffsetOrLengthValue");
    function checkLengthValue(length) {
      checkOffsetOrLengthValue(length, false);
    }
    __name(checkLengthValue, "checkLengthValue");
    exports2.checkLengthValue = checkLengthValue;
    function checkOffsetValue(offset) {
      checkOffsetOrLengthValue(offset, true);
    }
    __name(checkOffsetValue, "checkOffsetValue");
    exports2.checkOffsetValue = checkOffsetValue;
    function checkTargetOffset(offset, buff) {
      if (offset < 0 || offset > buff.length) {
        throw new Error(ERRORS.INVALID_TARGET_OFFSET);
      }
    }
    __name(checkTargetOffset, "checkTargetOffset");
    exports2.checkTargetOffset = checkTargetOffset;
    function isInteger(value) {
      return typeof value === "number" && isFinite(value) && Math.floor(value) === value;
    }
    __name(isInteger, "isInteger");
    function bigIntAndBufferInt64Check(bufferMethod) {
      if (typeof BigInt === "undefined") {
        throw new Error("Platform does not support JS BigInt type.");
      }
      if (typeof buffer_1.Buffer.prototype[bufferMethod] === "undefined") {
        throw new Error(`Platform does not support Buffer.prototype.${bufferMethod}.`);
      }
    }
    __name(bigIntAndBufferInt64Check, "bigIntAndBufferInt64Check");
    exports2.bigIntAndBufferInt64Check = bigIntAndBufferInt64Check;
  }
});

// ../../node_modules/smart-buffer/build/smartbuffer.js
var require_smartbuffer = __commonJS({
  "../../node_modules/smart-buffer/build/smartbuffer.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    var utils_1 = require_utils10();
    var DEFAULT_SMARTBUFFER_SIZE = 4096;
    var DEFAULT_SMARTBUFFER_ENCODING = "utf8";
    var SmartBuffer = class _SmartBuffer {
      static {
        __name(this, "SmartBuffer");
      }
      /**
       * Creates a new SmartBuffer instance.
       *
       * @param options { SmartBufferOptions } The SmartBufferOptions to apply to this instance.
       */
      constructor(options) {
        this.length = 0;
        this._encoding = DEFAULT_SMARTBUFFER_ENCODING;
        this._writeOffset = 0;
        this._readOffset = 0;
        if (_SmartBuffer.isSmartBufferOptions(options)) {
          if (options.encoding) {
            utils_1.checkEncoding(options.encoding);
            this._encoding = options.encoding;
          }
          if (options.size) {
            if (utils_1.isFiniteInteger(options.size) && options.size > 0) {
              this._buff = Buffer.allocUnsafe(options.size);
            } else {
              throw new Error(utils_1.ERRORS.INVALID_SMARTBUFFER_SIZE);
            }
          } else if (options.buff) {
            if (Buffer.isBuffer(options.buff)) {
              this._buff = options.buff;
              this.length = options.buff.length;
            } else {
              throw new Error(utils_1.ERRORS.INVALID_SMARTBUFFER_BUFFER);
            }
          } else {
            this._buff = Buffer.allocUnsafe(DEFAULT_SMARTBUFFER_SIZE);
          }
        } else {
          if (typeof options !== "undefined") {
            throw new Error(utils_1.ERRORS.INVALID_SMARTBUFFER_OBJECT);
          }
          this._buff = Buffer.allocUnsafe(DEFAULT_SMARTBUFFER_SIZE);
        }
      }
      /**
       * Creates a new SmartBuffer instance with the provided internal Buffer size and optional encoding.
       *
       * @param size { Number } The size of the internal Buffer.
       * @param encoding { String } The BufferEncoding to use for strings.
       *
       * @return { SmartBuffer }
       */
      static fromSize(size, encoding) {
        return new this({
          size,
          encoding
        });
      }
      /**
       * Creates a new SmartBuffer instance with the provided Buffer and optional encoding.
       *
       * @param buffer { Buffer } The Buffer to use as the internal Buffer value.
       * @param encoding { String } The BufferEncoding to use for strings.
       *
       * @return { SmartBuffer }
       */
      static fromBuffer(buff, encoding) {
        return new this({
          buff,
          encoding
        });
      }
      /**
       * Creates a new SmartBuffer instance with the provided SmartBufferOptions options.
       *
       * @param options { SmartBufferOptions } The options to use when creating the SmartBuffer instance.
       */
      static fromOptions(options) {
        return new this(options);
      }
      /**
       * Type checking function that determines if an object is a SmartBufferOptions object.
       */
      static isSmartBufferOptions(options) {
        const castOptions = options;
        return castOptions && (castOptions.encoding !== void 0 || castOptions.size !== void 0 || castOptions.buff !== void 0);
      }
      // Signed integers
      /**
       * Reads an Int8 value from the current read position or an optionally provided offset.
       *
       * @param offset { Number } The offset to read data from (optional)
       * @return { Number }
       */
      readInt8(offset) {
        return this._readNumberValue(Buffer.prototype.readInt8, 1, offset);
      }
      /**
       * Reads an Int16BE value from the current read position or an optionally provided offset.
       *
       * @param offset { Number } The offset to read data from (optional)
       * @return { Number }
       */
      readInt16BE(offset) {
        return this._readNumberValue(Buffer.prototype.readInt16BE, 2, offset);
      }
      /**
       * Reads an Int16LE value from the current read position or an optionally provided offset.
       *
       * @param offset { Number } The offset to read data from (optional)
       * @return { Number }
       */
      readInt16LE(offset) {
        return this._readNumberValue(Buffer.prototype.readInt16LE, 2, offset);
      }
      /**
       * Reads an Int32BE value from the current read position or an optionally provided offset.
       *
       * @param offset { Number } The offset to read data from (optional)
       * @return { Number }
       */
      readInt32BE(offset) {
        return this._readNumberValue(Buffer.prototype.readInt32BE, 4, offset);
      }
      /**
       * Reads an Int32LE value from the current read position or an optionally provided offset.
       *
       * @param offset { Number } The offset to read data from (optional)
       * @return { Number }
       */
      readInt32LE(offset) {
        return this._readNumberValue(Buffer.prototype.readInt32LE, 4, offset);
      }
      /**
       * Reads a BigInt64BE value from the current read position or an optionally provided offset.
       *
       * @param offset { Number } The offset to read data from (optional)
       * @return { BigInt }
       */
      readBigInt64BE(offset) {
        utils_1.bigIntAndBufferInt64Check("readBigInt64BE");
        return this._readNumberValue(Buffer.prototype.readBigInt64BE, 8, offset);
      }
      /**
       * Reads a BigInt64LE value from the current read position or an optionally provided offset.
       *
       * @param offset { Number } The offset to read data from (optional)
       * @return { BigInt }
       */
      readBigInt64LE(offset) {
        utils_1.bigIntAndBufferInt64Check("readBigInt64LE");
        return this._readNumberValue(Buffer.prototype.readBigInt64LE, 8, offset);
      }
      /**
       * Writes an Int8 value to the current write position (or at optional offset).
       *
       * @param value { Number } The value to write.
       * @param offset { Number } The offset to write the value at.
       *
       * @return this
       */
      writeInt8(value, offset) {
        this._writeNumberValue(Buffer.prototype.writeInt8, 1, value, offset);
        return this;
      }
      /**
       * Inserts an Int8 value at the given offset value.
       *
       * @param value { Number } The value to insert.
       * @param offset { Number } The offset to insert the value at.
       *
       * @return this
       */
      insertInt8(value, offset) {
        return this._insertNumberValue(Buffer.prototype.writeInt8, 1, value, offset);
      }
      /**
       * Writes an Int16BE value to the current write position (or at optional offset).
       *
       * @param value { Number } The value to write.
       * @param offset { Number } The offset to write the value at.
       *
       * @return this
       */
      writeInt16BE(value, offset) {
        return this._writeNumberValue(Buffer.prototype.writeInt16BE, 2, value, offset);
      }
      /**
       * Inserts an Int16BE value at the given offset value.
       *
       * @param value { Number } The value to insert.
       * @param offset { Number } The offset to insert the value at.
       *
       * @return this
       */
      insertInt16BE(value, offset) {
        return this._insertNumberValue(Buffer.prototype.writeInt16BE, 2, value, offset);
      }
      /**
       * Writes an Int16LE value to the current write position (or at optional offset).
       *
       * @param value { Number } The value to write.
       * @param offset { Number } The offset to write the value at.
       *
       * @return this
       */
      writeInt16LE(value, offset) {
        return this._writeNumberValue(Buffer.prototype.writeInt16LE, 2, value, offset);
      }
      /**
       * Inserts an Int16LE value at the given offset value.
       *
       * @param value { Number } The value to insert.
       * @param offset { Number } The offset to insert the value at.
       *
       * @return this
       */
      insertInt16LE(value, offset) {
        return this._insertNumberValue(Buffer.prototype.writeInt16LE, 2, value, offset);
      }
      /**
       * Writes an Int32BE value to the current write position (or at optional offset).
       *
       * @param value { Number } The value to write.
       * @param offset { Number } The offset to write the value at.
       *
       * @return this
       */
      writeInt32BE(value, offset) {
        return this._writeNumberValue(Buffer.prototype.writeInt32BE, 4, value, offset);
      }
      /**
       * Inserts an Int32BE value at the given offset value.
       *
       * @param value { Number } The value to insert.
       * @param offset { Number } The offset to insert the value at.
       *
       * @return this
       */
      insertInt32BE(value, offset) {
        return this._insertNumberValue(Buffer.prototype.writeInt32BE, 4, value, offset);
      }
      /**
       * Writes an Int32LE value to the current write position (or at optional offset).
       *
       * @param value { Number } The value to write.
       * @param offset { Number } The offset to write the value at.
       *
       * @return this
       */
      writeInt32LE(value, offset) {
        return this._writeNumberValue(Buffer.prototype.writeInt32LE, 4, value, offset);
      }
      /**
       * Inserts an Int32LE value at the given offset value.
       *
       * @param value { Number } The value to insert.
       * @param offset { Number } The offset to insert the value at.
       *
       * @return this
       */
      insertInt32LE(value, offset) {
        return this._insertNumberValue(Buffer.prototype.writeInt32LE, 4, value, offset);
      }
      /**
       * Writes a BigInt64BE value to the current write position (or at optional offset).
       *
       * @param value { BigInt } The value to write.
       * @param offset { Number } The offset to write the value at.
       *
       * @return this
       */
      writeBigInt64BE(value, offset) {
        utils_1.bigIntAndBufferInt64Check("writeBigInt64BE");
        return this._writeNumberValue(Buffer.prototype.writeBigInt64BE, 8, value, offset);
      }
      /**
       * Inserts a BigInt64BE value at the given offset value.
       *
       * @param value { BigInt } The value to insert.
       * @param offset { Number } The offset to insert the value at.
       *
       * @return this
       */
      insertBigInt64BE(value, offset) {
        utils_1.bigIntAndBufferInt64Check("writeBigInt64BE");
        return this._insertNumberValue(Buffer.prototype.writeBigInt64BE, 8, value, offset);
      }
      /**
       * Writes a BigInt64LE value to the current write position (or at optional offset).
       *
       * @param value { BigInt } The value to write.
       * @param offset { Number } The offset to write the value at.
       *
       * @return this
       */
      writeBigInt64LE(value, offset) {
        utils_1.bigIntAndBufferInt64Check("writeBigInt64LE");
        return this._writeNumberValue(Buffer.prototype.writeBigInt64LE, 8, value, offset);
      }
      /**
       * Inserts a Int64LE value at the given offset value.
       *
       * @param value { BigInt } The value to insert.
       * @param offset { Number } The offset to insert the value at.
       *
       * @return this
       */
      insertBigInt64LE(value, offset) {
        utils_1.bigIntAndBufferInt64Check("writeBigInt64LE");
        return this._insertNumberValue(Buffer.prototype.writeBigInt64LE, 8, value, offset);
      }
      // Unsigned Integers
      /**
       * Reads an UInt8 value from the current read position or an optionally provided offset.
       *
       * @param offset { Number } The offset to read data from (optional)
       * @return { Number }
       */
      readUInt8(offset) {
        return this._readNumberValue(Buffer.prototype.readUInt8, 1, offset);
      }
      /**
       * Reads an UInt16BE value from the current read position or an optionally provided offset.
       *
       * @param offset { Number } The offset to read data from (optional)
       * @return { Number }
       */
      readUInt16BE(offset) {
        return this._readNumberValue(Buffer.prototype.readUInt16BE, 2, offset);
      }
      /**
       * Reads an UInt16LE value from the current read position or an optionally provided offset.
       *
       * @param offset { Number } The offset to read data from (optional)
       * @return { Number }
       */
      readUInt16LE(offset) {
        return this._readNumberValue(Buffer.prototype.readUInt16LE, 2, offset);
      }
      /**
       * Reads an UInt32BE value from the current read position or an optionally provided offset.
       *
       * @param offset { Number } The offset to read data from (optional)
       * @return { Number }
       */
      readUInt32BE(offset) {
        return this._readNumberValue(Buffer.prototype.readUInt32BE, 4, offset);
      }
      /**
       * Reads an UInt32LE value from the current read position or an optionally provided offset.
       *
       * @param offset { Number } The offset to read data from (optional)
       * @return { Number }
       */
      readUInt32LE(offset) {
        return this._readNumberValue(Buffer.prototype.readUInt32LE, 4, offset);
      }
      /**
       * Reads a BigUInt64BE value from the current read position or an optionally provided offset.
       *
       * @param offset { Number } The offset to read data from (optional)
       * @return { BigInt }
       */
      readBigUInt64BE(offset) {
        utils_1.bigIntAndBufferInt64Check("readBigUInt64BE");
        return this._readNumberValue(Buffer.prototype.readBigUInt64BE, 8, offset);
      }
      /**
       * Reads a BigUInt64LE value from the current read position or an optionally provided offset.
       *
       * @param offset { Number } The offset to read data from (optional)
       * @return { BigInt }
       */
      readBigUInt64LE(offset) {
        utils_1.bigIntAndBufferInt64Check("readBigUInt64LE");
        return this._readNumberValue(Buffer.prototype.readBigUInt64LE, 8, offset);
      }
      /**
       * Writes an UInt8 value to the current write position (or at optional offset).
       *
       * @param value { Number } The value to write.
       * @param offset { Number } The offset to write the value at.
       *
       * @return this
       */
      writeUInt8(value, offset) {
        return this._writeNumberValue(Buffer.prototype.writeUInt8, 1, value, offset);
      }
      /**
       * Inserts an UInt8 value at the given offset value.
       *
       * @param value { Number } The value to insert.
       * @param offset { Number } The offset to insert the value at.
       *
       * @return this
       */
      insertUInt8(value, offset) {
        return this._insertNumberValue(Buffer.prototype.writeUInt8, 1, value, offset);
      }
      /**
       * Writes an UInt16BE value to the current write position (or at optional offset).
       *
       * @param value { Number } The value to write.
       * @param offset { Number } The offset to write the value at.
       *
       * @return this
       */
      writeUInt16BE(value, offset) {
        return this._writeNumberValue(Buffer.prototype.writeUInt16BE, 2, value, offset);
      }
      /**
       * Inserts an UInt16BE value at the given offset value.
       *
       * @param value { Number } The value to insert.
       * @param offset { Number } The offset to insert the value at.
       *
       * @return this
       */
      insertUInt16BE(value, offset) {
        return this._insertNumberValue(Buffer.prototype.writeUInt16BE, 2, value, offset);
      }
      /**
       * Writes an UInt16LE value to the current write position (or at optional offset).
       *
       * @param value { Number } The value to write.
       * @param offset { Number } The offset to write the value at.
       *
       * @return this
       */
      writeUInt16LE(value, offset) {
        return this._writeNumberValue(Buffer.prototype.writeUInt16LE, 2, value, offset);
      }
      /**
       * Inserts an UInt16LE value at the given offset value.
       *
       * @param value { Number } The value to insert.
       * @param offset { Number } The offset to insert the value at.
       *
       * @return this
       */
      insertUInt16LE(value, offset) {
        return this._insertNumberValue(Buffer.prototype.writeUInt16LE, 2, value, offset);
      }
      /**
       * Writes an UInt32BE value to the current write position (or at optional offset).
       *
       * @param value { Number } The value to write.
       * @param offset { Number } The offset to write the value at.
       *
       * @return this
       */
      writeUInt32BE(value, offset) {
        return this._writeNumberValue(Buffer.prototype.writeUInt32BE, 4, value, offset);
      }
      /**
       * Inserts an UInt32BE value at the given offset value.
       *
       * @param value { Number } The value to insert.
       * @param offset { Number } The offset to insert the value at.
       *
       * @return this
       */
      insertUInt32BE(value, offset) {
        return this._insertNumberValue(Buffer.prototype.writeUInt32BE, 4, value, offset);
      }
      /**
       * Writes an UInt32LE value to the current write position (or at optional offset).
       *
       * @param value { Number } The value to write.
       * @param offset { Number } The offset to write the value at.
       *
       * @return this
       */
      writeUInt32LE(value, offset) {
        return this._writeNumberValue(Buffer.prototype.writeUInt32LE, 4, value, offset);
      }
      /**
       * Inserts an UInt32LE value at the given offset value.
       *
       * @param value { Number } The value to insert.
       * @param offset { Number } The offset to insert the value at.
       *
       * @return this
       */
      insertUInt32LE(value, offset) {
        return this._insertNumberValue(Buffer.prototype.writeUInt32LE, 4, value, offset);
      }
      /**
       * Writes a BigUInt64BE value to the current write position (or at optional offset).
       *
       * @param value { Number } The value to write.
       * @param offset { Number } The offset to write the value at.
       *
       * @return this
       */
      writeBigUInt64BE(value, offset) {
        utils_1.bigIntAndBufferInt64Check("writeBigUInt64BE");
        return this._writeNumberValue(Buffer.prototype.writeBigUInt64BE, 8, value, offset);
      }
      /**
       * Inserts a BigUInt64BE value at the given offset value.
       *
       * @param value { Number } The value to insert.
       * @param offset { Number } The offset to insert the value at.
       *
       * @return this
       */
      insertBigUInt64BE(value, offset) {
        utils_1.bigIntAndBufferInt64Check("writeBigUInt64BE");
        return this._insertNumberValue(Buffer.prototype.writeBigUInt64BE, 8, value, offset);
      }
      /**
       * Writes a BigUInt64LE value to the current write position (or at optional offset).
       *
       * @param value { Number } The value to write.
       * @param offset { Number } The offset to write the value at.
       *
       * @return this
       */
      writeBigUInt64LE(value, offset) {
        utils_1.bigIntAndBufferInt64Check("writeBigUInt64LE");
        return this._writeNumberValue(Buffer.prototype.writeBigUInt64LE, 8, value, offset);
      }
      /**
       * Inserts a BigUInt64LE value at the given offset value.
       *
       * @param value { Number } The value to insert.
       * @param offset { Number } The offset to insert the value at.
       *
       * @return this
       */
      insertBigUInt64LE(value, offset) {
        utils_1.bigIntAndBufferInt64Check("writeBigUInt64LE");
        return this._insertNumberValue(Buffer.prototype.writeBigUInt64LE, 8, value, offset);
      }
      // Floating Point
      /**
       * Reads an FloatBE value from the current read position or an optionally provided offset.
       *
       * @param offset { Number } The offset to read data from (optional)
       * @return { Number }
       */
      readFloatBE(offset) {
        return this._readNumberValue(Buffer.prototype.readFloatBE, 4, offset);
      }
      /**
       * Reads an FloatLE value from the current read position or an optionally provided offset.
       *
       * @param offset { Number } The offset to read data from (optional)
       * @return { Number }
       */
      readFloatLE(offset) {
        return this._readNumberValue(Buffer.prototype.readFloatLE, 4, offset);
      }
      /**
       * Writes a FloatBE value to the current write position (or at optional offset).
       *
       * @param value { Number } The value to write.
       * @param offset { Number } The offset to write the value at.
       *
       * @return this
       */
      writeFloatBE(value, offset) {
        return this._writeNumberValue(Buffer.prototype.writeFloatBE, 4, value, offset);
      }
      /**
       * Inserts a FloatBE value at the given offset value.
       *
       * @param value { Number } The value to insert.
       * @param offset { Number } The offset to insert the value at.
       *
       * @return this
       */
      insertFloatBE(value, offset) {
        return this._insertNumberValue(Buffer.prototype.writeFloatBE, 4, value, offset);
      }
      /**
       * Writes a FloatLE value to the current write position (or at optional offset).
       *
       * @param value { Number } The value to write.
       * @param offset { Number } The offset to write the value at.
       *
       * @return this
       */
      writeFloatLE(value, offset) {
        return this._writeNumberValue(Buffer.prototype.writeFloatLE, 4, value, offset);
      }
      /**
       * Inserts a FloatLE value at the given offset value.
       *
       * @param value { Number } The value to insert.
       * @param offset { Number } The offset to insert the value at.
       *
       * @return this
       */
      insertFloatLE(value, offset) {
        return this._insertNumberValue(Buffer.prototype.writeFloatLE, 4, value, offset);
      }
      // Double Floating Point
      /**
       * Reads an DoublEBE value from the current read position or an optionally provided offset.
       *
       * @param offset { Number } The offset to read data from (optional)
       * @return { Number }
       */
      readDoubleBE(offset) {
        return this._readNumberValue(Buffer.prototype.readDoubleBE, 8, offset);
      }
      /**
       * Reads an DoubleLE value from the current read position or an optionally provided offset.
       *
       * @param offset { Number } The offset to read data from (optional)
       * @return { Number }
       */
      readDoubleLE(offset) {
        return this._readNumberValue(Buffer.prototype.readDoubleLE, 8, offset);
      }
      /**
       * Writes a DoubleBE value to the current write position (or at optional offset).
       *
       * @param value { Number } The value to write.
       * @param offset { Number } The offset to write the value at.
       *
       * @return this
       */
      writeDoubleBE(value, offset) {
        return this._writeNumberValue(Buffer.prototype.writeDoubleBE, 8, value, offset);
      }
      /**
       * Inserts a DoubleBE value at the given offset value.
       *
       * @param value { Number } The value to insert.
       * @param offset { Number } The offset to insert the value at.
       *
       * @return this
       */
      insertDoubleBE(value, offset) {
        return this._insertNumberValue(Buffer.prototype.writeDoubleBE, 8, value, offset);
      }
      /**
       * Writes a DoubleLE value to the current write position (or at optional offset).
       *
       * @param value { Number } The value to write.
       * @param offset { Number } The offset to write the value at.
       *
       * @return this
       */
      writeDoubleLE(value, offset) {
        return this._writeNumberValue(Buffer.prototype.writeDoubleLE, 8, value, offset);
      }
      /**
       * Inserts a DoubleLE value at the given offset value.
       *
       * @param value { Number } The value to insert.
       * @param offset { Number } The offset to insert the value at.
       *
       * @return this
       */
      insertDoubleLE(value, offset) {
        return this._insertNumberValue(Buffer.prototype.writeDoubleLE, 8, value, offset);
      }
      // Strings
      /**
       * Reads a String from the current read position.
       *
       * @param arg1 { Number | String } The number of bytes to read as a String, or the BufferEncoding to use for
       *             the string (Defaults to instance level encoding).
       * @param encoding { String } The BufferEncoding to use for the string (Defaults to instance level encoding).
       *
       * @return { String }
       */
      readString(arg1, encoding) {
        let lengthVal;
        if (typeof arg1 === "number") {
          utils_1.checkLengthValue(arg1);
          lengthVal = Math.min(arg1, this.length - this._readOffset);
        } else {
          encoding = arg1;
          lengthVal = this.length - this._readOffset;
        }
        if (typeof encoding !== "undefined") {
          utils_1.checkEncoding(encoding);
        }
        const value = this._buff.slice(this._readOffset, this._readOffset + lengthVal).toString(encoding || this._encoding);
        this._readOffset += lengthVal;
        return value;
      }
      /**
       * Inserts a String
       *
       * @param value { String } The String value to insert.
       * @param offset { Number } The offset to insert the string at.
       * @param encoding { String } The BufferEncoding to use for writing strings (defaults to instance encoding).
       *
       * @return this
       */
      insertString(value, offset, encoding) {
        utils_1.checkOffsetValue(offset);
        return this._handleString(value, true, offset, encoding);
      }
      /**
       * Writes a String
       *
       * @param value { String } The String value to write.
       * @param arg2 { Number | String } The offset to write the string at, or the BufferEncoding to use.
       * @param encoding { String } The BufferEncoding to use for writing strings (defaults to instance encoding).
       *
       * @return this
       */
      writeString(value, arg2, encoding) {
        return this._handleString(value, false, arg2, encoding);
      }
      /**
       * Reads a null-terminated String from the current read position.
       *
       * @param encoding { String } The BufferEncoding to use for the string (Defaults to instance level encoding).
       *
       * @return { String }
       */
      readStringNT(encoding) {
        if (typeof encoding !== "undefined") {
          utils_1.checkEncoding(encoding);
        }
        let nullPos = this.length;
        for (let i3 = this._readOffset; i3 < this.length; i3++) {
          if (this._buff[i3] === 0) {
            nullPos = i3;
            break;
          }
        }
        const value = this._buff.slice(this._readOffset, nullPos);
        this._readOffset = nullPos + 1;
        return value.toString(encoding || this._encoding);
      }
      /**
       * Inserts a null-terminated String.
       *
       * @param value { String } The String value to write.
       * @param arg2 { Number | String } The offset to write the string to, or the BufferEncoding to use.
       * @param encoding { String } The BufferEncoding to use for writing strings (defaults to instance encoding).
       *
       * @return this
       */
      insertStringNT(value, offset, encoding) {
        utils_1.checkOffsetValue(offset);
        this.insertString(value, offset, encoding);
        this.insertUInt8(0, offset + value.length);
        return this;
      }
      /**
       * Writes a null-terminated String.
       *
       * @param value { String } The String value to write.
       * @param arg2 { Number | String } The offset to write the string to, or the BufferEncoding to use.
       * @param encoding { String } The BufferEncoding to use for writing strings (defaults to instance encoding).
       *
       * @return this
       */
      writeStringNT(value, arg2, encoding) {
        this.writeString(value, arg2, encoding);
        this.writeUInt8(0, typeof arg2 === "number" ? arg2 + value.length : this.writeOffset);
        return this;
      }
      // Buffers
      /**
       * Reads a Buffer from the internal read position.
       *
       * @param length { Number } The length of data to read as a Buffer.
       *
       * @return { Buffer }
       */
      readBuffer(length) {
        if (typeof length !== "undefined") {
          utils_1.checkLengthValue(length);
        }
        const lengthVal = typeof length === "number" ? length : this.length;
        const endPoint = Math.min(this.length, this._readOffset + lengthVal);
        const value = this._buff.slice(this._readOffset, endPoint);
        this._readOffset = endPoint;
        return value;
      }
      /**
       * Writes a Buffer to the current write position.
       *
       * @param value { Buffer } The Buffer to write.
       * @param offset { Number } The offset to write the Buffer to.
       *
       * @return this
       */
      insertBuffer(value, offset) {
        utils_1.checkOffsetValue(offset);
        return this._handleBuffer(value, true, offset);
      }
      /**
       * Writes a Buffer to the current write position.
       *
       * @param value { Buffer } The Buffer to write.
       * @param offset { Number } The offset to write the Buffer to.
       *
       * @return this
       */
      writeBuffer(value, offset) {
        return this._handleBuffer(value, false, offset);
      }
      /**
       * Reads a null-terminated Buffer from the current read poisiton.
       *
       * @return { Buffer }
       */
      readBufferNT() {
        let nullPos = this.length;
        for (let i3 = this._readOffset; i3 < this.length; i3++) {
          if (this._buff[i3] === 0) {
            nullPos = i3;
            break;
          }
        }
        const value = this._buff.slice(this._readOffset, nullPos);
        this._readOffset = nullPos + 1;
        return value;
      }
      /**
       * Inserts a null-terminated Buffer.
       *
       * @param value { Buffer } The Buffer to write.
       * @param offset { Number } The offset to write the Buffer to.
       *
       * @return this
       */
      insertBufferNT(value, offset) {
        utils_1.checkOffsetValue(offset);
        this.insertBuffer(value, offset);
        this.insertUInt8(0, offset + value.length);
        return this;
      }
      /**
       * Writes a null-terminated Buffer.
       *
       * @param value { Buffer } The Buffer to write.
       * @param offset { Number } The offset to write the Buffer to.
       *
       * @return this
       */
      writeBufferNT(value, offset) {
        if (typeof offset !== "undefined") {
          utils_1.checkOffsetValue(offset);
        }
        this.writeBuffer(value, offset);
        this.writeUInt8(0, typeof offset === "number" ? offset + value.length : this._writeOffset);
        return this;
      }
      /**
       * Clears the SmartBuffer instance to its original empty state.
       */
      clear() {
        this._writeOffset = 0;
        this._readOffset = 0;
        this.length = 0;
        return this;
      }
      /**
       * Gets the remaining data left to be read from the SmartBuffer instance.
       *
       * @return { Number }
       */
      remaining() {
        return this.length - this._readOffset;
      }
      /**
       * Gets the current read offset value of the SmartBuffer instance.
       *
       * @return { Number }
       */
      get readOffset() {
        return this._readOffset;
      }
      /**
       * Sets the read offset value of the SmartBuffer instance.
       *
       * @param offset { Number } - The offset value to set.
       */
      set readOffset(offset) {
        utils_1.checkOffsetValue(offset);
        utils_1.checkTargetOffset(offset, this);
        this._readOffset = offset;
      }
      /**
       * Gets the current write offset value of the SmartBuffer instance.
       *
       * @return { Number }
       */
      get writeOffset() {
        return this._writeOffset;
      }
      /**
       * Sets the write offset value of the SmartBuffer instance.
       *
       * @param offset { Number } - The offset value to set.
       */
      set writeOffset(offset) {
        utils_1.checkOffsetValue(offset);
        utils_1.checkTargetOffset(offset, this);
        this._writeOffset = offset;
      }
      /**
       * Gets the currently set string encoding of the SmartBuffer instance.
       *
       * @return { BufferEncoding } The string Buffer encoding currently set.
       */
      get encoding() {
        return this._encoding;
      }
      /**
       * Sets the string encoding of the SmartBuffer instance.
       *
       * @param encoding { BufferEncoding } The string Buffer encoding to set.
       */
      set encoding(encoding) {
        utils_1.checkEncoding(encoding);
        this._encoding = encoding;
      }
      /**
       * Gets the underlying internal Buffer. (This includes unmanaged data in the Buffer)
       *
       * @return { Buffer } The Buffer value.
       */
      get internalBuffer() {
        return this._buff;
      }
      /**
       * Gets the value of the internal managed Buffer (Includes managed data only)
       *
       * @param { Buffer }
       */
      toBuffer() {
        return this._buff.slice(0, this.length);
      }
      /**
       * Gets the String value of the internal managed Buffer
       *
       * @param encoding { String } The BufferEncoding to display the Buffer as (defaults to instance level encoding).
       */
      toString(encoding) {
        const encodingVal = typeof encoding === "string" ? encoding : this._encoding;
        utils_1.checkEncoding(encodingVal);
        return this._buff.toString(encodingVal, 0, this.length);
      }
      /**
       * Destroys the SmartBuffer instance.
       */
      destroy() {
        this.clear();
        return this;
      }
      /**
       * Handles inserting and writing strings.
       *
       * @param value { String } The String value to insert.
       * @param isInsert { Boolean } True if inserting a string, false if writing.
       * @param arg2 { Number | String } The offset to insert the string at, or the BufferEncoding to use.
       * @param encoding { String } The BufferEncoding to use for writing strings (defaults to instance encoding).
       */
      _handleString(value, isInsert, arg3, encoding) {
        let offsetVal = this._writeOffset;
        let encodingVal = this._encoding;
        if (typeof arg3 === "number") {
          offsetVal = arg3;
        } else if (typeof arg3 === "string") {
          utils_1.checkEncoding(arg3);
          encodingVal = arg3;
        }
        if (typeof encoding === "string") {
          utils_1.checkEncoding(encoding);
          encodingVal = encoding;
        }
        const byteLength = Buffer.byteLength(value, encodingVal);
        if (isInsert) {
          this.ensureInsertable(byteLength, offsetVal);
        } else {
          this._ensureWriteable(byteLength, offsetVal);
        }
        this._buff.write(value, offsetVal, byteLength, encodingVal);
        if (isInsert) {
          this._writeOffset += byteLength;
        } else {
          if (typeof arg3 === "number") {
            this._writeOffset = Math.max(this._writeOffset, offsetVal + byteLength);
          } else {
            this._writeOffset += byteLength;
          }
        }
        return this;
      }
      /**
       * Handles writing or insert of a Buffer.
       *
       * @param value { Buffer } The Buffer to write.
       * @param offset { Number } The offset to write the Buffer to.
       */
      _handleBuffer(value, isInsert, offset) {
        const offsetVal = typeof offset === "number" ? offset : this._writeOffset;
        if (isInsert) {
          this.ensureInsertable(value.length, offsetVal);
        } else {
          this._ensureWriteable(value.length, offsetVal);
        }
        value.copy(this._buff, offsetVal);
        if (isInsert) {
          this._writeOffset += value.length;
        } else {
          if (typeof offset === "number") {
            this._writeOffset = Math.max(this._writeOffset, offsetVal + value.length);
          } else {
            this._writeOffset += value.length;
          }
        }
        return this;
      }
      /**
       * Ensures that the internal Buffer is large enough to read data.
       *
       * @param length { Number } The length of the data that needs to be read.
       * @param offset { Number } The offset of the data that needs to be read.
       */
      ensureReadable(length, offset) {
        let offsetVal = this._readOffset;
        if (typeof offset !== "undefined") {
          utils_1.checkOffsetValue(offset);
          offsetVal = offset;
        }
        if (offsetVal < 0 || offsetVal + length > this.length) {
          throw new Error(utils_1.ERRORS.INVALID_READ_BEYOND_BOUNDS);
        }
      }
      /**
       * Ensures that the internal Buffer is large enough to insert data.
       *
       * @param dataLength { Number } The length of the data that needs to be written.
       * @param offset { Number } The offset of the data to be written.
       */
      ensureInsertable(dataLength, offset) {
        utils_1.checkOffsetValue(offset);
        this._ensureCapacity(this.length + dataLength);
        if (offset < this.length) {
          this._buff.copy(this._buff, offset + dataLength, offset, this._buff.length);
        }
        if (offset + dataLength > this.length) {
          this.length = offset + dataLength;
        } else {
          this.length += dataLength;
        }
      }
      /**
       * Ensures that the internal Buffer is large enough to write data.
       *
       * @param dataLength { Number } The length of the data that needs to be written.
       * @param offset { Number } The offset of the data to be written (defaults to writeOffset).
       */
      _ensureWriteable(dataLength, offset) {
        const offsetVal = typeof offset === "number" ? offset : this._writeOffset;
        this._ensureCapacity(offsetVal + dataLength);
        if (offsetVal + dataLength > this.length) {
          this.length = offsetVal + dataLength;
        }
      }
      /**
       * Ensures that the internal Buffer is large enough to write at least the given amount of data.
       *
       * @param minLength { Number } The minimum length of the data needs to be written.
       */
      _ensureCapacity(minLength) {
        const oldLength = this._buff.length;
        if (minLength > oldLength) {
          let data3 = this._buff;
          let newLength = oldLength * 3 / 2 + 1;
          if (newLength < minLength) {
            newLength = minLength;
          }
          this._buff = Buffer.allocUnsafe(newLength);
          data3.copy(this._buff, 0, 0, oldLength);
        }
      }
      /**
       * Reads a numeric number value using the provided function.
       *
       * @typeparam T { number | bigint } The type of the value to be read
       *
       * @param func { Function(offset: number) => number } The function to read data on the internal Buffer with.
       * @param byteSize { Number } The number of bytes read.
       * @param offset { Number } The offset to read from (optional). When this is not provided, the managed readOffset is used instead.
       *
       * @returns { T } the number value
       */
      _readNumberValue(func, byteSize, offset) {
        this.ensureReadable(byteSize, offset);
        const value = func.call(this._buff, typeof offset === "number" ? offset : this._readOffset);
        if (typeof offset === "undefined") {
          this._readOffset += byteSize;
        }
        return value;
      }
      /**
       * Inserts a numeric number value based on the given offset and value.
       *
       * @typeparam T { number | bigint } The type of the value to be written
       *
       * @param func { Function(offset: T, offset?) => number} The function to write data on the internal Buffer with.
       * @param byteSize { Number } The number of bytes written.
       * @param value { T } The number value to write.
       * @param offset { Number } the offset to write the number at (REQUIRED).
       *
       * @returns SmartBuffer this buffer
       */
      _insertNumberValue(func, byteSize, value, offset) {
        utils_1.checkOffsetValue(offset);
        this.ensureInsertable(byteSize, offset);
        func.call(this._buff, value, offset);
        this._writeOffset += byteSize;
        return this;
      }
      /**
       * Writes a numeric number value based on the given offset and value.
       *
       * @typeparam T { number | bigint } The type of the value to be written
       *
       * @param func { Function(offset: T, offset?) => number} The function to write data on the internal Buffer with.
       * @param byteSize { Number } The number of bytes written.
       * @param value { T } The number value to write.
       * @param offset { Number } the offset to write the number at (REQUIRED).
       *
       * @returns SmartBuffer this buffer
       */
      _writeNumberValue(func, byteSize, value, offset) {
        if (typeof offset === "number") {
          if (offset < 0) {
            throw new Error(utils_1.ERRORS.INVALID_WRITE_BEYOND_BOUNDS);
          }
          utils_1.checkOffsetValue(offset);
        }
        const offsetVal = typeof offset === "number" ? offset : this._writeOffset;
        this._ensureWriteable(byteSize, offsetVal);
        func.call(this._buff, value, offsetVal);
        if (typeof offset === "number") {
          this._writeOffset = Math.max(this._writeOffset, offsetVal + byteSize);
        } else {
          this._writeOffset += byteSize;
        }
        return this;
      }
    };
    exports2.SmartBuffer = SmartBuffer;
  }
});

// ../../node_modules/socks/build/common/constants.js
var require_constants8 = __commonJS({
  "../../node_modules/socks/build/common/constants.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.SOCKS5_NO_ACCEPTABLE_AUTH = exports2.SOCKS5_CUSTOM_AUTH_END = exports2.SOCKS5_CUSTOM_AUTH_START = exports2.SOCKS_INCOMING_PACKET_SIZES = exports2.SocksClientState = exports2.Socks5Response = exports2.Socks5HostType = exports2.Socks5Auth = exports2.Socks4Response = exports2.SocksCommand = exports2.ERRORS = exports2.DEFAULT_TIMEOUT = void 0;
    var DEFAULT_TIMEOUT2 = 3e4;
    exports2.DEFAULT_TIMEOUT = DEFAULT_TIMEOUT2;
    var ERRORS = {
      InvalidSocksCommand: "An invalid SOCKS command was provided. Valid options are connect, bind, and associate.",
      InvalidSocksCommandForOperation: "An invalid SOCKS command was provided. Only a subset of commands are supported for this operation.",
      InvalidSocksCommandChain: "An invalid SOCKS command was provided. Chaining currently only supports the connect command.",
      InvalidSocksClientOptionsDestination: "An invalid destination host was provided.",
      InvalidSocksClientOptionsExistingSocket: "An invalid existing socket was provided. This should be an instance of stream.Duplex.",
      InvalidSocksClientOptionsProxy: "Invalid SOCKS proxy details were provided.",
      InvalidSocksClientOptionsTimeout: "An invalid timeout value was provided. Please enter a value above 0 (in ms).",
      InvalidSocksClientOptionsProxiesLength: "At least two socks proxies must be provided for chaining.",
      InvalidSocksClientOptionsCustomAuthRange: "Custom auth must be a value between 0x80 and 0xFE.",
      InvalidSocksClientOptionsCustomAuthOptions: "When a custom_auth_method is provided, custom_auth_request_handler, custom_auth_response_size, and custom_auth_response_handler must also be provided and valid.",
      NegotiationError: "Negotiation error",
      SocketClosed: "Socket closed",
      ProxyConnectionTimedOut: "Proxy connection timed out",
      InternalError: "SocksClient internal error (this should not happen)",
      InvalidSocks4HandshakeResponse: "Received invalid Socks4 handshake response",
      Socks4ProxyRejectedConnection: "Socks4 Proxy rejected connection",
      InvalidSocks4IncomingConnectionResponse: "Socks4 invalid incoming connection response",
      Socks4ProxyRejectedIncomingBoundConnection: "Socks4 Proxy rejected incoming bound connection",
      InvalidSocks5InitialHandshakeResponse: "Received invalid Socks5 initial handshake response",
      InvalidSocks5IntiailHandshakeSocksVersion: "Received invalid Socks5 initial handshake (invalid socks version)",
      InvalidSocks5InitialHandshakeNoAcceptedAuthType: "Received invalid Socks5 initial handshake (no accepted authentication type)",
      InvalidSocks5InitialHandshakeUnknownAuthType: "Received invalid Socks5 initial handshake (unknown authentication type)",
      Socks5AuthenticationFailed: "Socks5 Authentication failed",
      InvalidSocks5FinalHandshake: "Received invalid Socks5 final handshake response",
      InvalidSocks5FinalHandshakeRejected: "Socks5 proxy rejected connection",
      InvalidSocks5IncomingConnectionResponse: "Received invalid Socks5 incoming connection response",
      Socks5ProxyRejectedIncomingBoundConnection: "Socks5 Proxy rejected incoming bound connection"
    };
    exports2.ERRORS = ERRORS;
    var SOCKS_INCOMING_PACKET_SIZES = {
      Socks5InitialHandshakeResponse: 2,
      Socks5UserPassAuthenticationResponse: 2,
      // Command response + incoming connection (bind)
      Socks5ResponseHeader: 5,
      // We need at least 5 to read the hostname length, then we wait for the address+port information.
      Socks5ResponseIPv4: 10,
      // 4 header + 4 ip + 2 port
      Socks5ResponseIPv6: 22,
      // 4 header + 16 ip + 2 port
      Socks5ResponseHostname: /* @__PURE__ */ __name((hostNameLength) => hostNameLength + 7, "Socks5ResponseHostname"),
      // 4 header + 1 host length + host + 2 port
      // Command response + incoming connection (bind)
      Socks4Response: 8
      // 2 header + 2 port + 4 ip
    };
    exports2.SOCKS_INCOMING_PACKET_SIZES = SOCKS_INCOMING_PACKET_SIZES;
    var SocksCommand;
    (function(SocksCommand2) {
      SocksCommand2[SocksCommand2["connect"] = 1] = "connect";
      SocksCommand2[SocksCommand2["bind"] = 2] = "bind";
      SocksCommand2[SocksCommand2["associate"] = 3] = "associate";
    })(SocksCommand || (exports2.SocksCommand = SocksCommand = {}));
    var Socks4Response;
    (function(Socks4Response2) {
      Socks4Response2[Socks4Response2["Granted"] = 90] = "Granted";
      Socks4Response2[Socks4Response2["Failed"] = 91] = "Failed";
      Socks4Response2[Socks4Response2["Rejected"] = 92] = "Rejected";
      Socks4Response2[Socks4Response2["RejectedIdent"] = 93] = "RejectedIdent";
    })(Socks4Response || (exports2.Socks4Response = Socks4Response = {}));
    var Socks5Auth;
    (function(Socks5Auth2) {
      Socks5Auth2[Socks5Auth2["NoAuth"] = 0] = "NoAuth";
      Socks5Auth2[Socks5Auth2["GSSApi"] = 1] = "GSSApi";
      Socks5Auth2[Socks5Auth2["UserPass"] = 2] = "UserPass";
    })(Socks5Auth || (exports2.Socks5Auth = Socks5Auth = {}));
    var SOCKS5_CUSTOM_AUTH_START = 128;
    exports2.SOCKS5_CUSTOM_AUTH_START = SOCKS5_CUSTOM_AUTH_START;
    var SOCKS5_CUSTOM_AUTH_END = 254;
    exports2.SOCKS5_CUSTOM_AUTH_END = SOCKS5_CUSTOM_AUTH_END;
    var SOCKS5_NO_ACCEPTABLE_AUTH = 255;
    exports2.SOCKS5_NO_ACCEPTABLE_AUTH = SOCKS5_NO_ACCEPTABLE_AUTH;
    var Socks5Response;
    (function(Socks5Response2) {
      Socks5Response2[Socks5Response2["Granted"] = 0] = "Granted";
      Socks5Response2[Socks5Response2["Failure"] = 1] = "Failure";
      Socks5Response2[Socks5Response2["NotAllowed"] = 2] = "NotAllowed";
      Socks5Response2[Socks5Response2["NetworkUnreachable"] = 3] = "NetworkUnreachable";
      Socks5Response2[Socks5Response2["HostUnreachable"] = 4] = "HostUnreachable";
      Socks5Response2[Socks5Response2["ConnectionRefused"] = 5] = "ConnectionRefused";
      Socks5Response2[Socks5Response2["TTLExpired"] = 6] = "TTLExpired";
      Socks5Response2[Socks5Response2["CommandNotSupported"] = 7] = "CommandNotSupported";
      Socks5Response2[Socks5Response2["AddressNotSupported"] = 8] = "AddressNotSupported";
    })(Socks5Response || (exports2.Socks5Response = Socks5Response = {}));
    var Socks5HostType;
    (function(Socks5HostType2) {
      Socks5HostType2[Socks5HostType2["IPv4"] = 1] = "IPv4";
      Socks5HostType2[Socks5HostType2["Hostname"] = 3] = "Hostname";
      Socks5HostType2[Socks5HostType2["IPv6"] = 4] = "IPv6";
    })(Socks5HostType || (exports2.Socks5HostType = Socks5HostType = {}));
    var SocksClientState;
    (function(SocksClientState2) {
      SocksClientState2[SocksClientState2["Created"] = 0] = "Created";
      SocksClientState2[SocksClientState2["Connecting"] = 1] = "Connecting";
      SocksClientState2[SocksClientState2["Connected"] = 2] = "Connected";
      SocksClientState2[SocksClientState2["SentInitialHandshake"] = 3] = "SentInitialHandshake";
      SocksClientState2[SocksClientState2["ReceivedInitialHandshakeResponse"] = 4] = "ReceivedInitialHandshakeResponse";
      SocksClientState2[SocksClientState2["SentAuthentication"] = 5] = "SentAuthentication";
      SocksClientState2[SocksClientState2["ReceivedAuthenticationResponse"] = 6] = "ReceivedAuthenticationResponse";
      SocksClientState2[SocksClientState2["SentFinalHandshake"] = 7] = "SentFinalHandshake";
      SocksClientState2[SocksClientState2["ReceivedFinalResponse"] = 8] = "ReceivedFinalResponse";
      SocksClientState2[SocksClientState2["BoundWaitingForConnection"] = 9] = "BoundWaitingForConnection";
      SocksClientState2[SocksClientState2["Established"] = 10] = "Established";
      SocksClientState2[SocksClientState2["Disconnected"] = 11] = "Disconnected";
      SocksClientState2[SocksClientState2["Error"] = 99] = "Error";
    })(SocksClientState || (exports2.SocksClientState = SocksClientState = {}));
  }
});

// ../../node_modules/socks/build/common/util.js
var require_util9 = __commonJS({
  "../../node_modules/socks/build/common/util.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.shuffleArray = exports2.SocksClientError = void 0;
    var SocksClientError = class extends Error {
      static {
        __name(this, "SocksClientError");
      }
      constructor(message2, options) {
        super(message2);
        this.options = options;
      }
    };
    exports2.SocksClientError = SocksClientError;
    function shuffleArray(array) {
      for (let i3 = array.length - 1; i3 > 0; i3--) {
        const j3 = Math.floor(Math.random() * (i3 + 1));
        [array[i3], array[j3]] = [array[j3], array[i3]];
      }
    }
    __name(shuffleArray, "shuffleArray");
    exports2.shuffleArray = shuffleArray;
  }
});

// ../../node_modules/ip-address/dist/common.js
var require_common2 = __commonJS({
  "../../node_modules/ip-address/dist/common.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.isInSubnet = isInSubnet;
    exports2.isCorrect = isCorrect;
    exports2.numberToPaddedHex = numberToPaddedHex;
    exports2.stringToPaddedHex = stringToPaddedHex;
    exports2.testBit = testBit;
    function isInSubnet(address) {
      if (this.subnetMask < address.subnetMask) {
        return false;
      }
      if (this.mask(address.subnetMask) === address.mask()) {
        return true;
      }
      return false;
    }
    __name(isInSubnet, "isInSubnet");
    function isCorrect(defaultBits) {
      return function() {
        if (this.addressMinusSuffix !== this.correctForm()) {
          return false;
        }
        if (this.subnetMask === defaultBits && !this.parsedSubnet) {
          return true;
        }
        return this.parsedSubnet === String(this.subnetMask);
      };
    }
    __name(isCorrect, "isCorrect");
    function numberToPaddedHex(number) {
      return number.toString(16).padStart(2, "0");
    }
    __name(numberToPaddedHex, "numberToPaddedHex");
    function stringToPaddedHex(numberString) {
      return numberToPaddedHex(parseInt(numberString, 10));
    }
    __name(stringToPaddedHex, "stringToPaddedHex");
    function testBit(binaryValue, position) {
      const { length } = binaryValue;
      if (position > length) {
        return false;
      }
      const positionInString = length - position;
      return binaryValue.substring(positionInString, positionInString + 1) === "1";
    }
    __name(testBit, "testBit");
  }
});

// ../../node_modules/ip-address/dist/v4/constants.js
var require_constants9 = __commonJS({
  "../../node_modules/ip-address/dist/v4/constants.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.RE_SUBNET_STRING = exports2.RE_ADDRESS = exports2.GROUPS = exports2.BITS = void 0;
    exports2.BITS = 32;
    exports2.GROUPS = 4;
    exports2.RE_ADDRESS = /^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/g;
    exports2.RE_SUBNET_STRING = /\/\d{1,2}$/;
  }
});

// ../../node_modules/ip-address/dist/address-error.js
var require_address_error = __commonJS({
  "../../node_modules/ip-address/dist/address-error.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.AddressError = void 0;
    var AddressError = class extends Error {
      static {
        __name(this, "AddressError");
      }
      constructor(message2, parseMessage) {
        super(message2);
        this.name = "AddressError";
        this.parseMessage = parseMessage;
      }
    };
    exports2.AddressError = AddressError;
  }
});

// ../../node_modules/ip-address/dist/ipv4.js
var require_ipv4 = __commonJS({
  "../../node_modules/ip-address/dist/ipv4.js"(exports2) {
    "use strict";
    var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      var desc = Object.getOwnPropertyDescriptor(m3, k3);
      if (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) {
        desc = { enumerable: true, get: /* @__PURE__ */ __name(function() {
          return m3[k3];
        }, "get") };
      }
      Object.defineProperty(o3, k22, desc);
    }) : (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      o3[k22] = m3[k3];
    }));
    var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? (function(o3, v6) {
      Object.defineProperty(o3, "default", { enumerable: true, value: v6 });
    }) : function(o3, v6) {
      o3["default"] = v6;
    });
    var __importStar2 = exports2 && exports2.__importStar || function(mod) {
      if (mod && mod.__esModule) return mod;
      var result2 = {};
      if (mod != null) {
        for (var k3 in mod) if (k3 !== "default" && Object.prototype.hasOwnProperty.call(mod, k3)) __createBinding3(result2, mod, k3);
      }
      __setModuleDefault2(result2, mod);
      return result2;
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.Address4 = void 0;
    var common = __importStar2(require_common2());
    var constants3 = __importStar2(require_constants9());
    var address_error_1 = require_address_error();
    var Address4 = class _Address4 {
      static {
        __name(this, "Address4");
      }
      constructor(address) {
        this.groups = constants3.GROUPS;
        this.parsedAddress = [];
        this.parsedSubnet = "";
        this.subnet = "/32";
        this.subnetMask = 32;
        this.v4 = true;
        this.isCorrect = common.isCorrect(constants3.BITS);
        this.isInSubnet = common.isInSubnet;
        this.address = address;
        const subnet = constants3.RE_SUBNET_STRING.exec(address);
        if (subnet) {
          this.parsedSubnet = subnet[0].replace("/", "");
          this.subnetMask = parseInt(this.parsedSubnet, 10);
          this.subnet = `/${this.subnetMask}`;
          if (this.subnetMask < 0 || this.subnetMask > constants3.BITS) {
            throw new address_error_1.AddressError("Invalid subnet mask.");
          }
          address = address.replace(constants3.RE_SUBNET_STRING, "");
        }
        this.addressMinusSuffix = address;
        this.parsedAddress = this.parse(address);
      }
      static isValid(address) {
        try {
          new _Address4(address);
          return true;
        } catch (e3) {
          return false;
        }
      }
      /*
       * Parses a v4 address
       */
      parse(address) {
        const groups = address.split(".");
        if (!address.match(constants3.RE_ADDRESS)) {
          throw new address_error_1.AddressError("Invalid IPv4 address.");
        }
        return groups;
      }
      /**
       * Returns the correct form of an address
       * @memberof Address4
       * @instance
       * @returns {String}
       */
      correctForm() {
        return this.parsedAddress.map((part) => parseInt(part, 10)).join(".");
      }
      /**
       * Converts a hex string to an IPv4 address object
       * @memberof Address4
       * @static
       * @param {string} hex - a hex string to convert
       * @returns {Address4}
       */
      static fromHex(hex) {
        const padded = hex.replace(/:/g, "").padStart(8, "0");
        const groups = [];
        let i3;
        for (i3 = 0; i3 < 8; i3 += 2) {
          const h3 = padded.slice(i3, i3 + 2);
          groups.push(parseInt(h3, 16));
        }
        return new _Address4(groups.join("."));
      }
      /**
       * Converts an integer into a IPv4 address object
       * @memberof Address4
       * @static
       * @param {integer} integer - a number to convert
       * @returns {Address4}
       */
      static fromInteger(integer) {
        return _Address4.fromHex(integer.toString(16));
      }
      /**
       * Return an address from in-addr.arpa form
       * @memberof Address4
       * @static
       * @param {string} arpaFormAddress - an 'in-addr.arpa' form ipv4 address
       * @returns {Adress4}
       * @example
       * var address = Address4.fromArpa(42.2.0.192.in-addr.arpa.)
       * address.correctForm(); // '192.0.2.42'
       */
      static fromArpa(arpaFormAddress) {
        const leader = arpaFormAddress.replace(/(\.in-addr\.arpa)?\.$/, "");
        const address = leader.split(".").reverse().join(".");
        return new _Address4(address);
      }
      /**
       * Converts an IPv4 address object to a hex string
       * @memberof Address4
       * @instance
       * @returns {String}
       */
      toHex() {
        return this.parsedAddress.map((part) => common.stringToPaddedHex(part)).join(":");
      }
      /**
       * Converts an IPv4 address object to an array of bytes
       * @memberof Address4
       * @instance
       * @returns {Array}
       */
      toArray() {
        return this.parsedAddress.map((part) => parseInt(part, 10));
      }
      /**
       * Converts an IPv4 address object to an IPv6 address group
       * @memberof Address4
       * @instance
       * @returns {String}
       */
      toGroup6() {
        const output = [];
        let i3;
        for (i3 = 0; i3 < constants3.GROUPS; i3 += 2) {
          output.push(`${common.stringToPaddedHex(this.parsedAddress[i3])}${common.stringToPaddedHex(this.parsedAddress[i3 + 1])}`);
        }
        return output.join(":");
      }
      /**
       * Returns the address as a `bigint`
       * @memberof Address4
       * @instance
       * @returns {bigint}
       */
      bigInt() {
        return BigInt(`0x${this.parsedAddress.map((n3) => common.stringToPaddedHex(n3)).join("")}`);
      }
      /**
       * Helper function getting start address.
       * @memberof Address4
       * @instance
       * @returns {bigint}
       */
      _startAddress() {
        return BigInt(`0b${this.mask() + "0".repeat(constants3.BITS - this.subnetMask)}`);
      }
      /**
       * The first address in the range given by this address' subnet.
       * Often referred to as the Network Address.
       * @memberof Address4
       * @instance
       * @returns {Address4}
       */
      startAddress() {
        return _Address4.fromBigInt(this._startAddress());
      }
      /**
       * The first host address in the range given by this address's subnet ie
       * the first address after the Network Address
       * @memberof Address4
       * @instance
       * @returns {Address4}
       */
      startAddressExclusive() {
        const adjust = BigInt("1");
        return _Address4.fromBigInt(this._startAddress() + adjust);
      }
      /**
       * Helper function getting end address.
       * @memberof Address4
       * @instance
       * @returns {bigint}
       */
      _endAddress() {
        return BigInt(`0b${this.mask() + "1".repeat(constants3.BITS - this.subnetMask)}`);
      }
      /**
       * The last address in the range given by this address' subnet
       * Often referred to as the Broadcast
       * @memberof Address4
       * @instance
       * @returns {Address4}
       */
      endAddress() {
        return _Address4.fromBigInt(this._endAddress());
      }
      /**
       * The last host address in the range given by this address's subnet ie
       * the last address prior to the Broadcast Address
       * @memberof Address4
       * @instance
       * @returns {Address4}
       */
      endAddressExclusive() {
        const adjust = BigInt("1");
        return _Address4.fromBigInt(this._endAddress() - adjust);
      }
      /**
       * Converts a BigInt to a v4 address object
       * @memberof Address4
       * @static
       * @param {bigint} bigInt - a BigInt to convert
       * @returns {Address4}
       */
      static fromBigInt(bigInt) {
        return _Address4.fromHex(bigInt.toString(16));
      }
      /**
       * Returns the first n bits of the address, defaulting to the
       * subnet mask
       * @memberof Address4
       * @instance
       * @returns {String}
       */
      mask(mask) {
        if (mask === void 0) {
          mask = this.subnetMask;
        }
        return this.getBitsBase2(0, mask);
      }
      /**
       * Returns the bits in the given range as a base-2 string
       * @memberof Address4
       * @instance
       * @returns {string}
       */
      getBitsBase2(start, end) {
        return this.binaryZeroPad().slice(start, end);
      }
      /**
       * Return the reversed ip6.arpa form of the address
       * @memberof Address4
       * @param {Object} options
       * @param {boolean} options.omitSuffix - omit the "in-addr.arpa" suffix
       * @instance
       * @returns {String}
       */
      reverseForm(options) {
        if (!options) {
          options = {};
        }
        const reversed = this.correctForm().split(".").reverse().join(".");
        if (options.omitSuffix) {
          return reversed;
        }
        return `${reversed}.in-addr.arpa.`;
      }
      /**
       * Returns true if the given address is a multicast address
       * @memberof Address4
       * @instance
       * @returns {boolean}
       */
      isMulticast() {
        return this.isInSubnet(new _Address4("224.0.0.0/4"));
      }
      /**
       * Returns a zero-padded base-2 string representation of the address
       * @memberof Address4
       * @instance
       * @returns {string}
       */
      binaryZeroPad() {
        return this.bigInt().toString(2).padStart(constants3.BITS, "0");
      }
      /**
       * Groups an IPv4 address for inclusion at the end of an IPv6 address
       * @returns {String}
       */
      groupForV6() {
        const segments = this.parsedAddress;
        return this.address.replace(constants3.RE_ADDRESS, `<span class="hover-group group-v4 group-6">${segments.slice(0, 2).join(".")}</span>.<span class="hover-group group-v4 group-7">${segments.slice(2, 4).join(".")}</span>`);
      }
    };
    exports2.Address4 = Address4;
  }
});

// ../../node_modules/ip-address/dist/v6/constants.js
var require_constants10 = __commonJS({
  "../../node_modules/ip-address/dist/v6/constants.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.RE_URL_WITH_PORT = exports2.RE_URL = exports2.RE_ZONE_STRING = exports2.RE_SUBNET_STRING = exports2.RE_BAD_ADDRESS = exports2.RE_BAD_CHARACTERS = exports2.TYPES = exports2.SCOPES = exports2.GROUPS = exports2.BITS = void 0;
    exports2.BITS = 128;
    exports2.GROUPS = 8;
    exports2.SCOPES = {
      0: "Reserved",
      1: "Interface local",
      2: "Link local",
      4: "Admin local",
      5: "Site local",
      8: "Organization local",
      14: "Global",
      15: "Reserved"
    };
    exports2.TYPES = {
      "ff01::1/128": "Multicast (All nodes on this interface)",
      "ff01::2/128": "Multicast (All routers on this interface)",
      "ff02::1/128": "Multicast (All nodes on this link)",
      "ff02::2/128": "Multicast (All routers on this link)",
      "ff05::2/128": "Multicast (All routers in this site)",
      "ff02::5/128": "Multicast (OSPFv3 AllSPF routers)",
      "ff02::6/128": "Multicast (OSPFv3 AllDR routers)",
      "ff02::9/128": "Multicast (RIP routers)",
      "ff02::a/128": "Multicast (EIGRP routers)",
      "ff02::d/128": "Multicast (PIM routers)",
      "ff02::16/128": "Multicast (MLDv2 reports)",
      "ff01::fb/128": "Multicast (mDNSv6)",
      "ff02::fb/128": "Multicast (mDNSv6)",
      "ff05::fb/128": "Multicast (mDNSv6)",
      "ff02::1:2/128": "Multicast (All DHCP servers and relay agents on this link)",
      "ff05::1:2/128": "Multicast (All DHCP servers and relay agents in this site)",
      "ff02::1:3/128": "Multicast (All DHCP servers on this link)",
      "ff05::1:3/128": "Multicast (All DHCP servers in this site)",
      "::/128": "Unspecified",
      "::1/128": "Loopback",
      "ff00::/8": "Multicast",
      "fe80::/10": "Link-local unicast"
    };
    exports2.RE_BAD_CHARACTERS = /([^0-9a-f:/%])/gi;
    exports2.RE_BAD_ADDRESS = /([0-9a-f]{5,}|:{3,}|[^:]:$|^:[^:]|\/$)/gi;
    exports2.RE_SUBNET_STRING = /\/\d{1,3}(?=%|$)/;
    exports2.RE_ZONE_STRING = /%.*$/;
    exports2.RE_URL = /^\[{0,1}([0-9a-f:]+)\]{0,1}/;
    exports2.RE_URL_WITH_PORT = /\[([0-9a-f:]+)\]:([0-9]{1,5})/;
  }
});

// ../../node_modules/ip-address/dist/v6/helpers.js
var require_helpers3 = __commonJS({
  "../../node_modules/ip-address/dist/v6/helpers.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.spanAllZeroes = spanAllZeroes;
    exports2.spanAll = spanAll;
    exports2.spanLeadingZeroes = spanLeadingZeroes;
    exports2.simpleGroup = simpleGroup;
    function spanAllZeroes(s3) {
      return s3.replace(/(0+)/g, '<span class="zero">$1</span>');
    }
    __name(spanAllZeroes, "spanAllZeroes");
    function spanAll(s3, offset = 0) {
      const letters = s3.split("");
      return letters.map((n3, i3) => `<span class="digit value-${n3} position-${i3 + offset}">${spanAllZeroes(n3)}</span>`).join("");
    }
    __name(spanAll, "spanAll");
    function spanLeadingZeroesSimple(group) {
      return group.replace(/^(0+)/, '<span class="zero">$1</span>');
    }
    __name(spanLeadingZeroesSimple, "spanLeadingZeroesSimple");
    function spanLeadingZeroes(address) {
      const groups = address.split(":");
      return groups.map((g3) => spanLeadingZeroesSimple(g3)).join(":");
    }
    __name(spanLeadingZeroes, "spanLeadingZeroes");
    function simpleGroup(addressString, offset = 0) {
      const groups = addressString.split(":");
      return groups.map((g3, i3) => {
        if (/group-v4/.test(g3)) {
          return g3;
        }
        return `<span class="hover-group group-${i3 + offset}">${spanLeadingZeroesSimple(g3)}</span>`;
      });
    }
    __name(simpleGroup, "simpleGroup");
  }
});

// ../../node_modules/ip-address/dist/v6/regular-expressions.js
var require_regular_expressions = __commonJS({
  "../../node_modules/ip-address/dist/v6/regular-expressions.js"(exports2) {
    "use strict";
    var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      var desc = Object.getOwnPropertyDescriptor(m3, k3);
      if (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) {
        desc = { enumerable: true, get: /* @__PURE__ */ __name(function() {
          return m3[k3];
        }, "get") };
      }
      Object.defineProperty(o3, k22, desc);
    }) : (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      o3[k22] = m3[k3];
    }));
    var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? (function(o3, v7) {
      Object.defineProperty(o3, "default", { enumerable: true, value: v7 });
    }) : function(o3, v7) {
      o3["default"] = v7;
    });
    var __importStar2 = exports2 && exports2.__importStar || function(mod) {
      if (mod && mod.__esModule) return mod;
      var result2 = {};
      if (mod != null) {
        for (var k3 in mod) if (k3 !== "default" && Object.prototype.hasOwnProperty.call(mod, k3)) __createBinding3(result2, mod, k3);
      }
      __setModuleDefault2(result2, mod);
      return result2;
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.ADDRESS_BOUNDARY = void 0;
    exports2.groupPossibilities = groupPossibilities;
    exports2.padGroup = padGroup;
    exports2.simpleRegularExpression = simpleRegularExpression;
    exports2.possibleElisions = possibleElisions;
    var v6 = __importStar2(require_constants10());
    function groupPossibilities(possibilities) {
      return `(${possibilities.join("|")})`;
    }
    __name(groupPossibilities, "groupPossibilities");
    function padGroup(group) {
      if (group.length < 4) {
        return `0{0,${4 - group.length}}${group}`;
      }
      return group;
    }
    __name(padGroup, "padGroup");
    exports2.ADDRESS_BOUNDARY = "[^A-Fa-f0-9:]";
    function simpleRegularExpression(groups) {
      const zeroIndexes = [];
      groups.forEach((group, i3) => {
        const groupInteger = parseInt(group, 16);
        if (groupInteger === 0) {
          zeroIndexes.push(i3);
        }
      });
      const possibilities = zeroIndexes.map((zeroIndex) => groups.map((group, i3) => {
        if (i3 === zeroIndex) {
          const elision = i3 === 0 || i3 === v6.GROUPS - 1 ? ":" : "";
          return groupPossibilities([padGroup(group), elision]);
        }
        return padGroup(group);
      }).join(":"));
      possibilities.push(groups.map(padGroup).join(":"));
      return groupPossibilities(possibilities);
    }
    __name(simpleRegularExpression, "simpleRegularExpression");
    function possibleElisions(elidedGroups, moreLeft, moreRight) {
      const left = moreLeft ? "" : ":";
      const right = moreRight ? "" : ":";
      const possibilities = [];
      if (!moreLeft && !moreRight) {
        possibilities.push("::");
      }
      if (moreLeft && moreRight) {
        possibilities.push("");
      }
      if (moreRight && !moreLeft || !moreRight && moreLeft) {
        possibilities.push(":");
      }
      possibilities.push(`${left}(:0{1,4}){1,${elidedGroups - 1}}`);
      possibilities.push(`(0{1,4}:){1,${elidedGroups - 1}}${right}`);
      possibilities.push(`(0{1,4}:){${elidedGroups - 1}}0{1,4}`);
      for (let groups = 1; groups < elidedGroups - 1; groups++) {
        for (let position = 1; position < elidedGroups - groups; position++) {
          possibilities.push(`(0{1,4}:){${position}}:(0{1,4}:){${elidedGroups - position - groups - 1}}0{1,4}`);
        }
      }
      return groupPossibilities(possibilities);
    }
    __name(possibleElisions, "possibleElisions");
  }
});

// ../../node_modules/ip-address/dist/ipv6.js
var require_ipv6 = __commonJS({
  "../../node_modules/ip-address/dist/ipv6.js"(exports2) {
    "use strict";
    var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      var desc = Object.getOwnPropertyDescriptor(m3, k3);
      if (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) {
        desc = { enumerable: true, get: /* @__PURE__ */ __name(function() {
          return m3[k3];
        }, "get") };
      }
      Object.defineProperty(o3, k22, desc);
    }) : (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      o3[k22] = m3[k3];
    }));
    var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? (function(o3, v6) {
      Object.defineProperty(o3, "default", { enumerable: true, value: v6 });
    }) : function(o3, v6) {
      o3["default"] = v6;
    });
    var __importStar2 = exports2 && exports2.__importStar || function(mod) {
      if (mod && mod.__esModule) return mod;
      var result2 = {};
      if (mod != null) {
        for (var k3 in mod) if (k3 !== "default" && Object.prototype.hasOwnProperty.call(mod, k3)) __createBinding3(result2, mod, k3);
      }
      __setModuleDefault2(result2, mod);
      return result2;
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.Address6 = void 0;
    var common = __importStar2(require_common2());
    var constants4 = __importStar2(require_constants9());
    var constants6 = __importStar2(require_constants10());
    var helpers = __importStar2(require_helpers3());
    var ipv4_1 = require_ipv4();
    var regular_expressions_1 = require_regular_expressions();
    var address_error_1 = require_address_error();
    var common_1 = require_common2();
    function assert(condition) {
      if (!condition) {
        throw new Error("Assertion failed.");
      }
    }
    __name(assert, "assert");
    function addCommas(number) {
      const r3 = /(\d+)(\d{3})/;
      while (r3.test(number)) {
        number = number.replace(r3, "$1,$2");
      }
      return number;
    }
    __name(addCommas, "addCommas");
    function spanLeadingZeroes4(n3) {
      n3 = n3.replace(/^(0{1,})([1-9]+)$/, '<span class="parse-error">$1</span>$2');
      n3 = n3.replace(/^(0{1,})(0)$/, '<span class="parse-error">$1</span>$2');
      return n3;
    }
    __name(spanLeadingZeroes4, "spanLeadingZeroes4");
    function compact(address, slice) {
      const s1 = [];
      const s22 = [];
      let i3;
      for (i3 = 0; i3 < address.length; i3++) {
        if (i3 < slice[0]) {
          s1.push(address[i3]);
        } else if (i3 > slice[1]) {
          s22.push(address[i3]);
        }
      }
      return s1.concat(["compact"]).concat(s22);
    }
    __name(compact, "compact");
    function paddedHex(octet) {
      return parseInt(octet, 16).toString(16).padStart(4, "0");
    }
    __name(paddedHex, "paddedHex");
    function unsignByte(b3) {
      return b3 & 255;
    }
    __name(unsignByte, "unsignByte");
    var Address6 = class _Address6 {
      static {
        __name(this, "Address6");
      }
      constructor(address, optionalGroups) {
        this.addressMinusSuffix = "";
        this.parsedSubnet = "";
        this.subnet = "/128";
        this.subnetMask = 128;
        this.v4 = false;
        this.zone = "";
        this.isInSubnet = common.isInSubnet;
        this.isCorrect = common.isCorrect(constants6.BITS);
        if (optionalGroups === void 0) {
          this.groups = constants6.GROUPS;
        } else {
          this.groups = optionalGroups;
        }
        this.address = address;
        const subnet = constants6.RE_SUBNET_STRING.exec(address);
        if (subnet) {
          this.parsedSubnet = subnet[0].replace("/", "");
          this.subnetMask = parseInt(this.parsedSubnet, 10);
          this.subnet = `/${this.subnetMask}`;
          if (Number.isNaN(this.subnetMask) || this.subnetMask < 0 || this.subnetMask > constants6.BITS) {
            throw new address_error_1.AddressError("Invalid subnet mask.");
          }
          address = address.replace(constants6.RE_SUBNET_STRING, "");
        } else if (/\//.test(address)) {
          throw new address_error_1.AddressError("Invalid subnet mask.");
        }
        const zone = constants6.RE_ZONE_STRING.exec(address);
        if (zone) {
          this.zone = zone[0];
          address = address.replace(constants6.RE_ZONE_STRING, "");
        }
        this.addressMinusSuffix = address;
        this.parsedAddress = this.parse(this.addressMinusSuffix);
      }
      static isValid(address) {
        try {
          new _Address6(address);
          return true;
        } catch (e3) {
          return false;
        }
      }
      /**
       * Convert a BigInt to a v6 address object
       * @memberof Address6
       * @static
       * @param {bigint} bigInt - a BigInt to convert
       * @returns {Address6}
       * @example
       * var bigInt = BigInt('1000000000000');
       * var address = Address6.fromBigInt(bigInt);
       * address.correctForm(); // '::e8:d4a5:1000'
       */
      static fromBigInt(bigInt) {
        const hex = bigInt.toString(16).padStart(32, "0");
        const groups = [];
        let i3;
        for (i3 = 0; i3 < constants6.GROUPS; i3++) {
          groups.push(hex.slice(i3 * 4, (i3 + 1) * 4));
        }
        return new _Address6(groups.join(":"));
      }
      /**
       * Convert a URL (with optional port number) to an address object
       * @memberof Address6
       * @static
       * @param {string} url - a URL with optional port number
       * @example
       * var addressAndPort = Address6.fromURL('http://[ffff::]:8080/foo/');
       * addressAndPort.address.correctForm(); // 'ffff::'
       * addressAndPort.port; // 8080
       */
      static fromURL(url) {
        let host;
        let port = null;
        let result2;
        if (url.indexOf("[") !== -1 && url.indexOf("]:") !== -1) {
          result2 = constants6.RE_URL_WITH_PORT.exec(url);
          if (result2 === null) {
            return {
              error: "failed to parse address with port",
              address: null,
              port: null
            };
          }
          host = result2[1];
          port = result2[2];
        } else if (url.indexOf("/") !== -1) {
          url = url.replace(/^[a-z0-9]+:\/\//, "");
          result2 = constants6.RE_URL.exec(url);
          if (result2 === null) {
            return {
              error: "failed to parse address from URL",
              address: null,
              port: null
            };
          }
          host = result2[1];
        } else {
          host = url;
        }
        if (port) {
          port = parseInt(port, 10);
          if (port < 0 || port > 65536) {
            port = null;
          }
        } else {
          port = null;
        }
        return {
          address: new _Address6(host),
          port
        };
      }
      /**
       * Create an IPv6-mapped address given an IPv4 address
       * @memberof Address6
       * @static
       * @param {string} address - An IPv4 address string
       * @returns {Address6}
       * @example
       * var address = Address6.fromAddress4('192.168.0.1');
       * address.correctForm(); // '::ffff:c0a8:1'
       * address.to4in6(); // '::ffff:192.168.0.1'
       */
      static fromAddress4(address) {
        const address4 = new ipv4_1.Address4(address);
        const mask6 = constants6.BITS - (constants4.BITS - address4.subnetMask);
        return new _Address6(`::ffff:${address4.correctForm()}/${mask6}`);
      }
      /**
       * Return an address from ip6.arpa form
       * @memberof Address6
       * @static
       * @param {string} arpaFormAddress - an 'ip6.arpa' form address
       * @returns {Adress6}
       * @example
       * var address = Address6.fromArpa(e.f.f.f.3.c.2.6.f.f.f.e.6.6.8.e.1.0.6.7.9.4.e.c.0.0.0.0.1.0.0.2.ip6.arpa.)
       * address.correctForm(); // '2001:0:ce49:7601:e866:efff:62c3:fffe'
       */
      static fromArpa(arpaFormAddress) {
        let address = arpaFormAddress.replace(/(\.ip6\.arpa)?\.$/, "");
        const semicolonAmount = 7;
        if (address.length !== 63) {
          throw new address_error_1.AddressError("Invalid 'ip6.arpa' form.");
        }
        const parts = address.split(".").reverse();
        for (let i3 = semicolonAmount; i3 > 0; i3--) {
          const insertIndex = i3 * 4;
          parts.splice(insertIndex, 0, ":");
        }
        address = parts.join("");
        return new _Address6(address);
      }
      /**
       * Return the Microsoft UNC transcription of the address
       * @memberof Address6
       * @instance
       * @returns {String} the Microsoft UNC transcription of the address
       */
      microsoftTranscription() {
        return `${this.correctForm().replace(/:/g, "-")}.ipv6-literal.net`;
      }
      /**
       * Return the first n bits of the address, defaulting to the subnet mask
       * @memberof Address6
       * @instance
       * @param {number} [mask=subnet] - the number of bits to mask
       * @returns {String} the first n bits of the address as a string
       */
      mask(mask = this.subnetMask) {
        return this.getBitsBase2(0, mask);
      }
      /**
       * Return the number of possible subnets of a given size in the address
       * @memberof Address6
       * @instance
       * @param {number} [subnetSize=128] - the subnet size
       * @returns {String}
       */
      // TODO: probably useful to have a numeric version of this too
      possibleSubnets(subnetSize = 128) {
        const availableBits = constants6.BITS - this.subnetMask;
        const subnetBits = Math.abs(subnetSize - constants6.BITS);
        const subnetPowers = availableBits - subnetBits;
        if (subnetPowers < 0) {
          return "0";
        }
        return addCommas((BigInt("2") ** BigInt(subnetPowers)).toString(10));
      }
      /**
       * Helper function getting start address.
       * @memberof Address6
       * @instance
       * @returns {bigint}
       */
      _startAddress() {
        return BigInt(`0b${this.mask() + "0".repeat(constants6.BITS - this.subnetMask)}`);
      }
      /**
       * The first address in the range given by this address' subnet
       * Often referred to as the Network Address.
       * @memberof Address6
       * @instance
       * @returns {Address6}
       */
      startAddress() {
        return _Address6.fromBigInt(this._startAddress());
      }
      /**
       * The first host address in the range given by this address's subnet ie
       * the first address after the Network Address
       * @memberof Address6
       * @instance
       * @returns {Address6}
       */
      startAddressExclusive() {
        const adjust = BigInt("1");
        return _Address6.fromBigInt(this._startAddress() + adjust);
      }
      /**
       * Helper function getting end address.
       * @memberof Address6
       * @instance
       * @returns {bigint}
       */
      _endAddress() {
        return BigInt(`0b${this.mask() + "1".repeat(constants6.BITS - this.subnetMask)}`);
      }
      /**
       * The last address in the range given by this address' subnet
       * Often referred to as the Broadcast
       * @memberof Address6
       * @instance
       * @returns {Address6}
       */
      endAddress() {
        return _Address6.fromBigInt(this._endAddress());
      }
      /**
       * The last host address in the range given by this address's subnet ie
       * the last address prior to the Broadcast Address
       * @memberof Address6
       * @instance
       * @returns {Address6}
       */
      endAddressExclusive() {
        const adjust = BigInt("1");
        return _Address6.fromBigInt(this._endAddress() - adjust);
      }
      /**
       * Return the scope of the address
       * @memberof Address6
       * @instance
       * @returns {String}
       */
      getScope() {
        let scope = constants6.SCOPES[parseInt(this.getBits(12, 16).toString(10), 10)];
        if (this.getType() === "Global unicast" && scope !== "Link local") {
          scope = "Global";
        }
        return scope || "Unknown";
      }
      /**
       * Return the type of the address
       * @memberof Address6
       * @instance
       * @returns {String}
       */
      getType() {
        for (const subnet of Object.keys(constants6.TYPES)) {
          if (this.isInSubnet(new _Address6(subnet))) {
            return constants6.TYPES[subnet];
          }
        }
        return "Global unicast";
      }
      /**
       * Return the bits in the given range as a BigInt
       * @memberof Address6
       * @instance
       * @returns {bigint}
       */
      getBits(start, end) {
        return BigInt(`0b${this.getBitsBase2(start, end)}`);
      }
      /**
       * Return the bits in the given range as a base-2 string
       * @memberof Address6
       * @instance
       * @returns {String}
       */
      getBitsBase2(start, end) {
        return this.binaryZeroPad().slice(start, end);
      }
      /**
       * Return the bits in the given range as a base-16 string
       * @memberof Address6
       * @instance
       * @returns {String}
       */
      getBitsBase16(start, end) {
        const length = end - start;
        if (length % 4 !== 0) {
          throw new Error("Length of bits to retrieve must be divisible by four");
        }
        return this.getBits(start, end).toString(16).padStart(length / 4, "0");
      }
      /**
       * Return the bits that are set past the subnet mask length
       * @memberof Address6
       * @instance
       * @returns {String}
       */
      getBitsPastSubnet() {
        return this.getBitsBase2(this.subnetMask, constants6.BITS);
      }
      /**
       * Return the reversed ip6.arpa form of the address
       * @memberof Address6
       * @param {Object} options
       * @param {boolean} options.omitSuffix - omit the "ip6.arpa" suffix
       * @instance
       * @returns {String}
       */
      reverseForm(options) {
        if (!options) {
          options = {};
        }
        const characters = Math.floor(this.subnetMask / 4);
        const reversed = this.canonicalForm().replace(/:/g, "").split("").slice(0, characters).reverse().join(".");
        if (characters > 0) {
          if (options.omitSuffix) {
            return reversed;
          }
          return `${reversed}.ip6.arpa.`;
        }
        if (options.omitSuffix) {
          return "";
        }
        return "ip6.arpa.";
      }
      /**
       * Return the correct form of the address
       * @memberof Address6
       * @instance
       * @returns {String}
       */
      correctForm() {
        let i3;
        let groups = [];
        let zeroCounter = 0;
        const zeroes = [];
        for (i3 = 0; i3 < this.parsedAddress.length; i3++) {
          const value = parseInt(this.parsedAddress[i3], 16);
          if (value === 0) {
            zeroCounter++;
          }
          if (value !== 0 && zeroCounter > 0) {
            if (zeroCounter > 1) {
              zeroes.push([i3 - zeroCounter, i3 - 1]);
            }
            zeroCounter = 0;
          }
        }
        if (zeroCounter > 1) {
          zeroes.push([this.parsedAddress.length - zeroCounter, this.parsedAddress.length - 1]);
        }
        const zeroLengths = zeroes.map((n3) => n3[1] - n3[0] + 1);
        if (zeroes.length > 0) {
          const index = zeroLengths.indexOf(Math.max(...zeroLengths));
          groups = compact(this.parsedAddress, zeroes[index]);
        } else {
          groups = this.parsedAddress;
        }
        for (i3 = 0; i3 < groups.length; i3++) {
          if (groups[i3] !== "compact") {
            groups[i3] = parseInt(groups[i3], 16).toString(16);
          }
        }
        let correct = groups.join(":");
        correct = correct.replace(/^compact$/, "::");
        correct = correct.replace(/(^compact)|(compact$)/, ":");
        correct = correct.replace(/compact/, "");
        return correct;
      }
      /**
       * Return a zero-padded base-2 string representation of the address
       * @memberof Address6
       * @instance
       * @returns {String}
       * @example
       * var address = new Address6('2001:4860:4001:803::1011');
       * address.binaryZeroPad();
       * // '0010000000000001010010000110000001000000000000010000100000000011
       * //  0000000000000000000000000000000000000000000000000001000000010001'
       */
      binaryZeroPad() {
        return this.bigInt().toString(2).padStart(constants6.BITS, "0");
      }
      // TODO: Improve the semantics of this helper function
      parse4in6(address) {
        const groups = address.split(":");
        const lastGroup = groups.slice(-1)[0];
        const address4 = lastGroup.match(constants4.RE_ADDRESS);
        if (address4) {
          this.parsedAddress4 = address4[0];
          this.address4 = new ipv4_1.Address4(this.parsedAddress4);
          for (let i3 = 0; i3 < this.address4.groups; i3++) {
            if (/^0[0-9]+/.test(this.address4.parsedAddress[i3])) {
              throw new address_error_1.AddressError("IPv4 addresses can't have leading zeroes.", address.replace(constants4.RE_ADDRESS, this.address4.parsedAddress.map(spanLeadingZeroes4).join(".")));
            }
          }
          this.v4 = true;
          groups[groups.length - 1] = this.address4.toGroup6();
          address = groups.join(":");
        }
        return address;
      }
      // TODO: Make private?
      parse(address) {
        address = this.parse4in6(address);
        const badCharacters = address.match(constants6.RE_BAD_CHARACTERS);
        if (badCharacters) {
          throw new address_error_1.AddressError(`Bad character${badCharacters.length > 1 ? "s" : ""} detected in address: ${badCharacters.join("")}`, address.replace(constants6.RE_BAD_CHARACTERS, '<span class="parse-error">$1</span>'));
        }
        const badAddress = address.match(constants6.RE_BAD_ADDRESS);
        if (badAddress) {
          throw new address_error_1.AddressError(`Address failed regex: ${badAddress.join("")}`, address.replace(constants6.RE_BAD_ADDRESS, '<span class="parse-error">$1</span>'));
        }
        let groups = [];
        const halves = address.split("::");
        if (halves.length === 2) {
          let first = halves[0].split(":");
          let last = halves[1].split(":");
          if (first.length === 1 && first[0] === "") {
            first = [];
          }
          if (last.length === 1 && last[0] === "") {
            last = [];
          }
          const remaining = this.groups - (first.length + last.length);
          if (!remaining) {
            throw new address_error_1.AddressError("Error parsing groups");
          }
          this.elidedGroups = remaining;
          this.elisionBegin = first.length;
          this.elisionEnd = first.length + this.elidedGroups;
          groups = groups.concat(first);
          for (let i3 = 0; i3 < remaining; i3++) {
            groups.push("0");
          }
          groups = groups.concat(last);
        } else if (halves.length === 1) {
          groups = address.split(":");
          this.elidedGroups = 0;
        } else {
          throw new address_error_1.AddressError("Too many :: groups found");
        }
        groups = groups.map((group) => parseInt(group, 16).toString(16));
        if (groups.length !== this.groups) {
          throw new address_error_1.AddressError("Incorrect number of groups found");
        }
        return groups;
      }
      /**
       * Return the canonical form of the address
       * @memberof Address6
       * @instance
       * @returns {String}
       */
      canonicalForm() {
        return this.parsedAddress.map(paddedHex).join(":");
      }
      /**
       * Return the decimal form of the address
       * @memberof Address6
       * @instance
       * @returns {String}
       */
      decimal() {
        return this.parsedAddress.map((n3) => parseInt(n3, 16).toString(10).padStart(5, "0")).join(":");
      }
      /**
       * Return the address as a BigInt
       * @memberof Address6
       * @instance
       * @returns {bigint}
       */
      bigInt() {
        return BigInt(`0x${this.parsedAddress.map(paddedHex).join("")}`);
      }
      /**
       * Return the last two groups of this address as an IPv4 address string
       * @memberof Address6
       * @instance
       * @returns {Address4}
       * @example
       * var address = new Address6('2001:4860:4001::1825:bf11');
       * address.to4().correctForm(); // '24.37.191.17'
       */
      to4() {
        const binary = this.binaryZeroPad().split("");
        return ipv4_1.Address4.fromHex(BigInt(`0b${binary.slice(96, 128).join("")}`).toString(16));
      }
      /**
       * Return the v4-in-v6 form of the address
       * @memberof Address6
       * @instance
       * @returns {String}
       */
      to4in6() {
        const address4 = this.to4();
        const address6 = new _Address6(this.parsedAddress.slice(0, 6).join(":"), 6);
        const correct = address6.correctForm();
        let infix = "";
        if (!/:$/.test(correct)) {
          infix = ":";
        }
        return correct + infix + address4.address;
      }
      /**
       * Return an object containing the Teredo properties of the address
       * @memberof Address6
       * @instance
       * @returns {Object}
       */
      inspectTeredo() {
        const prefix2 = this.getBitsBase16(0, 32);
        const bitsForUdpPort = this.getBits(80, 96);
        const udpPort = (bitsForUdpPort ^ BigInt("0xffff")).toString();
        const server4 = ipv4_1.Address4.fromHex(this.getBitsBase16(32, 64));
        const bitsForClient4 = this.getBits(96, 128);
        const client4 = ipv4_1.Address4.fromHex((bitsForClient4 ^ BigInt("0xffffffff")).toString(16));
        const flagsBase2 = this.getBitsBase2(64, 80);
        const coneNat = (0, common_1.testBit)(flagsBase2, 15);
        const reserved = (0, common_1.testBit)(flagsBase2, 14);
        const groupIndividual = (0, common_1.testBit)(flagsBase2, 8);
        const universalLocal = (0, common_1.testBit)(flagsBase2, 9);
        const nonce = BigInt(`0b${flagsBase2.slice(2, 6) + flagsBase2.slice(8, 16)}`).toString(10);
        return {
          prefix: `${prefix2.slice(0, 4)}:${prefix2.slice(4, 8)}`,
          server4: server4.address,
          client4: client4.address,
          flags: flagsBase2,
          coneNat,
          microsoft: {
            reserved,
            universalLocal,
            groupIndividual,
            nonce
          },
          udpPort
        };
      }
      /**
       * Return an object containing the 6to4 properties of the address
       * @memberof Address6
       * @instance
       * @returns {Object}
       */
      inspect6to4() {
        const prefix2 = this.getBitsBase16(0, 16);
        const gateway = ipv4_1.Address4.fromHex(this.getBitsBase16(16, 48));
        return {
          prefix: prefix2.slice(0, 4),
          gateway: gateway.address
        };
      }
      /**
       * Return a v6 6to4 address from a v6 v4inv6 address
       * @memberof Address6
       * @instance
       * @returns {Address6}
       */
      to6to4() {
        if (!this.is4()) {
          return null;
        }
        const addr6to4 = [
          "2002",
          this.getBitsBase16(96, 112),
          this.getBitsBase16(112, 128),
          "",
          "/16"
        ].join(":");
        return new _Address6(addr6to4);
      }
      /**
       * Return a byte array
       * @memberof Address6
       * @instance
       * @returns {Array}
       */
      toByteArray() {
        const valueWithoutPadding = this.bigInt().toString(16);
        const leadingPad = "0".repeat(valueWithoutPadding.length % 2);
        const value = `${leadingPad}${valueWithoutPadding}`;
        const bytes = [];
        for (let i3 = 0, length = value.length; i3 < length; i3 += 2) {
          bytes.push(parseInt(value.substring(i3, i3 + 2), 16));
        }
        return bytes;
      }
      /**
       * Return an unsigned byte array
       * @memberof Address6
       * @instance
       * @returns {Array}
       */
      toUnsignedByteArray() {
        return this.toByteArray().map(unsignByte);
      }
      /**
       * Convert a byte array to an Address6 object
       * @memberof Address6
       * @static
       * @returns {Address6}
       */
      static fromByteArray(bytes) {
        return this.fromUnsignedByteArray(bytes.map(unsignByte));
      }
      /**
       * Convert an unsigned byte array to an Address6 object
       * @memberof Address6
       * @static
       * @returns {Address6}
       */
      static fromUnsignedByteArray(bytes) {
        const BYTE_MAX = BigInt("256");
        let result2 = BigInt("0");
        let multiplier = BigInt("1");
        for (let i3 = bytes.length - 1; i3 >= 0; i3--) {
          result2 += multiplier * BigInt(bytes[i3].toString(10));
          multiplier *= BYTE_MAX;
        }
        return _Address6.fromBigInt(result2);
      }
      /**
       * Returns true if the address is in the canonical form, false otherwise
       * @memberof Address6
       * @instance
       * @returns {boolean}
       */
      isCanonical() {
        return this.addressMinusSuffix === this.canonicalForm();
      }
      /**
       * Returns true if the address is a link local address, false otherwise
       * @memberof Address6
       * @instance
       * @returns {boolean}
       */
      isLinkLocal() {
        if (this.getBitsBase2(0, 64) === "1111111010000000000000000000000000000000000000000000000000000000") {
          return true;
        }
        return false;
      }
      /**
       * Returns true if the address is a multicast address, false otherwise
       * @memberof Address6
       * @instance
       * @returns {boolean}
       */
      isMulticast() {
        return this.getType() === "Multicast";
      }
      /**
       * Returns true if the address is a v4-in-v6 address, false otherwise
       * @memberof Address6
       * @instance
       * @returns {boolean}
       */
      is4() {
        return this.v4;
      }
      /**
       * Returns true if the address is a Teredo address, false otherwise
       * @memberof Address6
       * @instance
       * @returns {boolean}
       */
      isTeredo() {
        return this.isInSubnet(new _Address6("2001::/32"));
      }
      /**
       * Returns true if the address is a 6to4 address, false otherwise
       * @memberof Address6
       * @instance
       * @returns {boolean}
       */
      is6to4() {
        return this.isInSubnet(new _Address6("2002::/16"));
      }
      /**
       * Returns true if the address is a loopback address, false otherwise
       * @memberof Address6
       * @instance
       * @returns {boolean}
       */
      isLoopback() {
        return this.getType() === "Loopback";
      }
      // #endregion
      // #region HTML
      /**
       * @returns {String} the address in link form with a default port of 80
       */
      href(optionalPort) {
        if (optionalPort === void 0) {
          optionalPort = "";
        } else {
          optionalPort = `:${optionalPort}`;
        }
        return `http://[${this.correctForm()}]${optionalPort}/`;
      }
      /**
       * @returns {String} a link suitable for conveying the address via a URL hash
       */
      link(options) {
        if (!options) {
          options = {};
        }
        if (options.className === void 0) {
          options.className = "";
        }
        if (options.prefix === void 0) {
          options.prefix = "/#address=";
        }
        if (options.v4 === void 0) {
          options.v4 = false;
        }
        let formFunction = this.correctForm;
        if (options.v4) {
          formFunction = this.to4in6;
        }
        const form = formFunction.call(this);
        if (options.className) {
          return `<a href="${options.prefix}${form}" class="${options.className}">${form}</a>`;
        }
        return `<a href="${options.prefix}${form}">${form}</a>`;
      }
      /**
       * Groups an address
       * @returns {String}
       */
      group() {
        if (this.elidedGroups === 0) {
          return helpers.simpleGroup(this.address).join(":");
        }
        assert(typeof this.elidedGroups === "number");
        assert(typeof this.elisionBegin === "number");
        const output = [];
        const [left, right] = this.address.split("::");
        if (left.length) {
          output.push(...helpers.simpleGroup(left));
        } else {
          output.push("");
        }
        const classes = ["hover-group"];
        for (let i3 = this.elisionBegin; i3 < this.elisionBegin + this.elidedGroups; i3++) {
          classes.push(`group-${i3}`);
        }
        output.push(`<span class="${classes.join(" ")}"></span>`);
        if (right.length) {
          output.push(...helpers.simpleGroup(right, this.elisionEnd));
        } else {
          output.push("");
        }
        if (this.is4()) {
          assert(this.address4 instanceof ipv4_1.Address4);
          output.pop();
          output.push(this.address4.groupForV6());
        }
        return output.join(":");
      }
      // #endregion
      // #region Regular expressions
      /**
       * Generate a regular expression string that can be used to find or validate
       * all variations of this address
       * @memberof Address6
       * @instance
       * @param {boolean} substringSearch
       * @returns {string}
       */
      regularExpressionString(substringSearch = false) {
        let output = [];
        const address6 = new _Address6(this.correctForm());
        if (address6.elidedGroups === 0) {
          output.push((0, regular_expressions_1.simpleRegularExpression)(address6.parsedAddress));
        } else if (address6.elidedGroups === constants6.GROUPS) {
          output.push((0, regular_expressions_1.possibleElisions)(constants6.GROUPS));
        } else {
          const halves = address6.address.split("::");
          if (halves[0].length) {
            output.push((0, regular_expressions_1.simpleRegularExpression)(halves[0].split(":")));
          }
          assert(typeof address6.elidedGroups === "number");
          output.push((0, regular_expressions_1.possibleElisions)(address6.elidedGroups, halves[0].length !== 0, halves[1].length !== 0));
          if (halves[1].length) {
            output.push((0, regular_expressions_1.simpleRegularExpression)(halves[1].split(":")));
          }
          output = [output.join(":")];
        }
        if (!substringSearch) {
          output = [
            "(?=^|",
            regular_expressions_1.ADDRESS_BOUNDARY,
            "|[^\\w\\:])(",
            ...output,
            ")(?=[^\\w\\:]|",
            regular_expressions_1.ADDRESS_BOUNDARY,
            "|$)"
          ];
        }
        return output.join("");
      }
      /**
       * Generate a regular expression that can be used to find or validate all
       * variations of this address.
       * @memberof Address6
       * @instance
       * @param {boolean} substringSearch
       * @returns {RegExp}
       */
      regularExpression(substringSearch = false) {
        return new RegExp(this.regularExpressionString(substringSearch), "i");
      }
    };
    exports2.Address6 = Address6;
  }
});

// ../../node_modules/ip-address/dist/ip-address.js
var require_ip_address = __commonJS({
  "../../node_modules/ip-address/dist/ip-address.js"(exports2) {
    "use strict";
    var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      var desc = Object.getOwnPropertyDescriptor(m3, k3);
      if (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) {
        desc = { enumerable: true, get: /* @__PURE__ */ __name(function() {
          return m3[k3];
        }, "get") };
      }
      Object.defineProperty(o3, k22, desc);
    }) : (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      o3[k22] = m3[k3];
    }));
    var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? (function(o3, v6) {
      Object.defineProperty(o3, "default", { enumerable: true, value: v6 });
    }) : function(o3, v6) {
      o3["default"] = v6;
    });
    var __importStar2 = exports2 && exports2.__importStar || function(mod) {
      if (mod && mod.__esModule) return mod;
      var result2 = {};
      if (mod != null) {
        for (var k3 in mod) if (k3 !== "default" && Object.prototype.hasOwnProperty.call(mod, k3)) __createBinding3(result2, mod, k3);
      }
      __setModuleDefault2(result2, mod);
      return result2;
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.v6 = exports2.AddressError = exports2.Address6 = exports2.Address4 = void 0;
    var ipv4_1 = require_ipv4();
    Object.defineProperty(exports2, "Address4", { enumerable: true, get: /* @__PURE__ */ __name(function() {
      return ipv4_1.Address4;
    }, "get") });
    var ipv6_1 = require_ipv6();
    Object.defineProperty(exports2, "Address6", { enumerable: true, get: /* @__PURE__ */ __name(function() {
      return ipv6_1.Address6;
    }, "get") });
    var address_error_1 = require_address_error();
    Object.defineProperty(exports2, "AddressError", { enumerable: true, get: /* @__PURE__ */ __name(function() {
      return address_error_1.AddressError;
    }, "get") });
    var helpers = __importStar2(require_helpers3());
    exports2.v6 = { helpers };
  }
});

// ../../node_modules/socks/build/common/helpers.js
var require_helpers4 = __commonJS({
  "../../node_modules/socks/build/common/helpers.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.ipToBuffer = exports2.int32ToIpv4 = exports2.ipv4ToInt32 = exports2.validateSocksClientChainOptions = exports2.validateSocksClientOptions = void 0;
    var util_1 = require_util9();
    var constants_1 = require_constants8();
    var stream3 = require("stream");
    var ip_address_1 = require_ip_address();
    var net = require("net");
    function validateSocksClientOptions(options, acceptedCommands = ["connect", "bind", "associate"]) {
      if (!constants_1.SocksCommand[options.command]) {
        throw new util_1.SocksClientError(constants_1.ERRORS.InvalidSocksCommand, options);
      }
      if (acceptedCommands.indexOf(options.command) === -1) {
        throw new util_1.SocksClientError(constants_1.ERRORS.InvalidSocksCommandForOperation, options);
      }
      if (!isValidSocksRemoteHost(options.destination)) {
        throw new util_1.SocksClientError(constants_1.ERRORS.InvalidSocksClientOptionsDestination, options);
      }
      if (!isValidSocksProxy(options.proxy)) {
        throw new util_1.SocksClientError(constants_1.ERRORS.InvalidSocksClientOptionsProxy, options);
      }
      validateCustomProxyAuth(options.proxy, options);
      if (options.timeout && !isValidTimeoutValue(options.timeout)) {
        throw new util_1.SocksClientError(constants_1.ERRORS.InvalidSocksClientOptionsTimeout, options);
      }
      if (options.existing_socket && !(options.existing_socket instanceof stream3.Duplex)) {
        throw new util_1.SocksClientError(constants_1.ERRORS.InvalidSocksClientOptionsExistingSocket, options);
      }
    }
    __name(validateSocksClientOptions, "validateSocksClientOptions");
    exports2.validateSocksClientOptions = validateSocksClientOptions;
    function validateSocksClientChainOptions(options) {
      if (options.command !== "connect") {
        throw new util_1.SocksClientError(constants_1.ERRORS.InvalidSocksCommandChain, options);
      }
      if (!isValidSocksRemoteHost(options.destination)) {
        throw new util_1.SocksClientError(constants_1.ERRORS.InvalidSocksClientOptionsDestination, options);
      }
      if (!(options.proxies && Array.isArray(options.proxies) && options.proxies.length >= 2)) {
        throw new util_1.SocksClientError(constants_1.ERRORS.InvalidSocksClientOptionsProxiesLength, options);
      }
      options.proxies.forEach((proxy) => {
        if (!isValidSocksProxy(proxy)) {
          throw new util_1.SocksClientError(constants_1.ERRORS.InvalidSocksClientOptionsProxy, options);
        }
        validateCustomProxyAuth(proxy, options);
      });
      if (options.timeout && !isValidTimeoutValue(options.timeout)) {
        throw new util_1.SocksClientError(constants_1.ERRORS.InvalidSocksClientOptionsTimeout, options);
      }
    }
    __name(validateSocksClientChainOptions, "validateSocksClientChainOptions");
    exports2.validateSocksClientChainOptions = validateSocksClientChainOptions;
    function validateCustomProxyAuth(proxy, options) {
      if (proxy.custom_auth_method !== void 0) {
        if (proxy.custom_auth_method < constants_1.SOCKS5_CUSTOM_AUTH_START || proxy.custom_auth_method > constants_1.SOCKS5_CUSTOM_AUTH_END) {
          throw new util_1.SocksClientError(constants_1.ERRORS.InvalidSocksClientOptionsCustomAuthRange, options);
        }
        if (proxy.custom_auth_request_handler === void 0 || typeof proxy.custom_auth_request_handler !== "function") {
          throw new util_1.SocksClientError(constants_1.ERRORS.InvalidSocksClientOptionsCustomAuthOptions, options);
        }
        if (proxy.custom_auth_response_size === void 0) {
          throw new util_1.SocksClientError(constants_1.ERRORS.InvalidSocksClientOptionsCustomAuthOptions, options);
        }
        if (proxy.custom_auth_response_handler === void 0 || typeof proxy.custom_auth_response_handler !== "function") {
          throw new util_1.SocksClientError(constants_1.ERRORS.InvalidSocksClientOptionsCustomAuthOptions, options);
        }
      }
    }
    __name(validateCustomProxyAuth, "validateCustomProxyAuth");
    function isValidSocksRemoteHost(remoteHost) {
      return remoteHost && typeof remoteHost.host === "string" && Buffer.byteLength(remoteHost.host) < 256 && typeof remoteHost.port === "number" && remoteHost.port >= 0 && remoteHost.port <= 65535;
    }
    __name(isValidSocksRemoteHost, "isValidSocksRemoteHost");
    function isValidSocksProxy(proxy) {
      return proxy && (typeof proxy.host === "string" || typeof proxy.ipaddress === "string") && typeof proxy.port === "number" && proxy.port >= 0 && proxy.port <= 65535 && (proxy.type === 4 || proxy.type === 5);
    }
    __name(isValidSocksProxy, "isValidSocksProxy");
    function isValidTimeoutValue(value) {
      return typeof value === "number" && value > 0;
    }
    __name(isValidTimeoutValue, "isValidTimeoutValue");
    function ipv4ToInt32(ip) {
      const address = new ip_address_1.Address4(ip);
      return address.toArray().reduce((acc, part) => (acc << 8) + part, 0) >>> 0;
    }
    __name(ipv4ToInt32, "ipv4ToInt32");
    exports2.ipv4ToInt32 = ipv4ToInt32;
    function int32ToIpv4(int32) {
      const octet1 = int32 >>> 24 & 255;
      const octet2 = int32 >>> 16 & 255;
      const octet3 = int32 >>> 8 & 255;
      const octet4 = int32 & 255;
      return [octet1, octet2, octet3, octet4].join(".");
    }
    __name(int32ToIpv4, "int32ToIpv4");
    exports2.int32ToIpv4 = int32ToIpv4;
    function ipToBuffer(ip) {
      if (net.isIPv4(ip)) {
        const address = new ip_address_1.Address4(ip);
        return Buffer.from(address.toArray());
      } else if (net.isIPv6(ip)) {
        const address = new ip_address_1.Address6(ip);
        return Buffer.from(address.canonicalForm().split(":").map((segment) => segment.padStart(4, "0")).join(""), "hex");
      } else {
        throw new Error("Invalid IP address format");
      }
    }
    __name(ipToBuffer, "ipToBuffer");
    exports2.ipToBuffer = ipToBuffer;
  }
});

// ../../node_modules/socks/build/common/receivebuffer.js
var require_receivebuffer = __commonJS({
  "../../node_modules/socks/build/common/receivebuffer.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.ReceiveBuffer = void 0;
    var ReceiveBuffer = class {
      static {
        __name(this, "ReceiveBuffer");
      }
      constructor(size = 4096) {
        this.buffer = Buffer.allocUnsafe(size);
        this.offset = 0;
        this.originalSize = size;
      }
      get length() {
        return this.offset;
      }
      append(data3) {
        if (!Buffer.isBuffer(data3)) {
          throw new Error("Attempted to append a non-buffer instance to ReceiveBuffer.");
        }
        if (this.offset + data3.length >= this.buffer.length) {
          const tmp = this.buffer;
          this.buffer = Buffer.allocUnsafe(Math.max(this.buffer.length + this.originalSize, this.buffer.length + data3.length));
          tmp.copy(this.buffer);
        }
        data3.copy(this.buffer, this.offset);
        return this.offset += data3.length;
      }
      peek(length) {
        if (length > this.offset) {
          throw new Error("Attempted to read beyond the bounds of the managed internal data.");
        }
        return this.buffer.slice(0, length);
      }
      get(length) {
        if (length > this.offset) {
          throw new Error("Attempted to read beyond the bounds of the managed internal data.");
        }
        const value = Buffer.allocUnsafe(length);
        this.buffer.slice(0, length).copy(value);
        this.buffer.copyWithin(0, length, length + this.offset - length);
        this.offset -= length;
        return value;
      }
    };
    exports2.ReceiveBuffer = ReceiveBuffer;
  }
});

// ../../node_modules/socks/build/client/socksclient.js
var require_socksclient = __commonJS({
  "../../node_modules/socks/build/client/socksclient.js"(exports2) {
    "use strict";
    var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) {
      function adopt(value) {
        return value instanceof P ? value : new P(function(resolve13) {
          resolve13(value);
        });
      }
      __name(adopt, "adopt");
      return new (P || (P = Promise))(function(resolve13, reject) {
        function fulfilled(value) {
          try {
            step(generator.next(value));
          } catch (e3) {
            reject(e3);
          }
        }
        __name(fulfilled, "fulfilled");
        function rejected(value) {
          try {
            step(generator["throw"](value));
          } catch (e3) {
            reject(e3);
          }
        }
        __name(rejected, "rejected");
        function step(result2) {
          result2.done ? resolve13(result2.value) : adopt(result2.value).then(fulfilled, rejected);
        }
        __name(step, "step");
        step((generator = generator.apply(thisArg, _arguments || [])).next());
      });
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.SocksClientError = exports2.SocksClient = void 0;
    var events_1 = require("events");
    var net = require("net");
    var smart_buffer_1 = require_smartbuffer();
    var constants_1 = require_constants8();
    var helpers_1 = require_helpers4();
    var receivebuffer_1 = require_receivebuffer();
    var util_1 = require_util9();
    Object.defineProperty(exports2, "SocksClientError", { enumerable: true, get: /* @__PURE__ */ __name(function() {
      return util_1.SocksClientError;
    }, "get") });
    var ip_address_1 = require_ip_address();
    var SocksClient = class _SocksClient extends events_1.EventEmitter {
      static {
        __name(this, "SocksClient");
      }
      constructor(options) {
        super();
        this.options = Object.assign({}, options);
        (0, helpers_1.validateSocksClientOptions)(options);
        this.setState(constants_1.SocksClientState.Created);
      }
      /**
       * Creates a new SOCKS connection.
       *
       * Note: Supports callbacks and promises. Only supports the connect command.
       * @param options { SocksClientOptions } Options.
       * @param callback { Function } An optional callback function.
       * @returns { Promise }
       */
      static createConnection(options, callback) {
        return new Promise((resolve13, reject) => {
          try {
            (0, helpers_1.validateSocksClientOptions)(options, ["connect"]);
          } catch (err) {
            if (typeof callback === "function") {
              callback(err);
              return resolve13(err);
            } else {
              return reject(err);
            }
          }
          const client = new _SocksClient(options);
          client.connect(options.existing_socket);
          client.once("established", (info2) => {
            client.removeAllListeners();
            if (typeof callback === "function") {
              callback(null, info2);
              resolve13(info2);
            } else {
              resolve13(info2);
            }
          });
          client.once("error", (err) => {
            client.removeAllListeners();
            if (typeof callback === "function") {
              callback(err);
              resolve13(err);
            } else {
              reject(err);
            }
          });
        });
      }
      /**
       * Creates a new SOCKS connection chain to a destination host through 2 or more SOCKS proxies.
       *
       * Note: Supports callbacks and promises. Only supports the connect method.
       * Note: Implemented via createConnection() factory function.
       * @param options { SocksClientChainOptions } Options
       * @param callback { Function } An optional callback function.
       * @returns { Promise }
       */
      static createConnectionChain(options, callback) {
        return new Promise((resolve13, reject) => __awaiter2(this, void 0, void 0, function* () {
          try {
            (0, helpers_1.validateSocksClientChainOptions)(options);
          } catch (err) {
            if (typeof callback === "function") {
              callback(err);
              return resolve13(err);
            } else {
              return reject(err);
            }
          }
          if (options.randomizeChain) {
            (0, util_1.shuffleArray)(options.proxies);
          }
          try {
            let sock;
            for (let i3 = 0; i3 < options.proxies.length; i3++) {
              const nextProxy = options.proxies[i3];
              const nextDestination = i3 === options.proxies.length - 1 ? options.destination : {
                host: options.proxies[i3 + 1].host || options.proxies[i3 + 1].ipaddress,
                port: options.proxies[i3 + 1].port
              };
              const result2 = yield _SocksClient.createConnection({
                command: "connect",
                proxy: nextProxy,
                destination: nextDestination,
                existing_socket: sock
              });
              sock = sock || result2.socket;
            }
            if (typeof callback === "function") {
              callback(null, { socket: sock });
              resolve13({ socket: sock });
            } else {
              resolve13({ socket: sock });
            }
          } catch (err) {
            if (typeof callback === "function") {
              callback(err);
              resolve13(err);
            } else {
              reject(err);
            }
          }
        }));
      }
      /**
       * Creates a SOCKS UDP Frame.
       * @param options
       */
      static createUDPFrame(options) {
        const buff = new smart_buffer_1.SmartBuffer();
        buff.writeUInt16BE(0);
        buff.writeUInt8(options.frameNumber || 0);
        if (net.isIPv4(options.remoteHost.host)) {
          buff.writeUInt8(constants_1.Socks5HostType.IPv4);
          buff.writeUInt32BE((0, helpers_1.ipv4ToInt32)(options.remoteHost.host));
        } else if (net.isIPv6(options.remoteHost.host)) {
          buff.writeUInt8(constants_1.Socks5HostType.IPv6);
          buff.writeBuffer((0, helpers_1.ipToBuffer)(options.remoteHost.host));
        } else {
          buff.writeUInt8(constants_1.Socks5HostType.Hostname);
          buff.writeUInt8(Buffer.byteLength(options.remoteHost.host));
          buff.writeString(options.remoteHost.host);
        }
        buff.writeUInt16BE(options.remoteHost.port);
        buff.writeBuffer(options.data);
        return buff.toBuffer();
      }
      /**
       * Parses a SOCKS UDP frame.
       * @param data
       */
      static parseUDPFrame(data3) {
        const buff = smart_buffer_1.SmartBuffer.fromBuffer(data3);
        buff.readOffset = 2;
        const frameNumber = buff.readUInt8();
        const hostType = buff.readUInt8();
        let remoteHost;
        if (hostType === constants_1.Socks5HostType.IPv4) {
          remoteHost = (0, helpers_1.int32ToIpv4)(buff.readUInt32BE());
        } else if (hostType === constants_1.Socks5HostType.IPv6) {
          remoteHost = ip_address_1.Address6.fromByteArray(Array.from(buff.readBuffer(16))).canonicalForm();
        } else {
          remoteHost = buff.readString(buff.readUInt8());
        }
        const remotePort = buff.readUInt16BE();
        return {
          frameNumber,
          remoteHost: {
            host: remoteHost,
            port: remotePort
          },
          data: buff.readBuffer()
        };
      }
      /**
       * Internal state setter. If the SocksClient is in an error state, it cannot be changed to a non error state.
       */
      setState(newState) {
        if (this.state !== constants_1.SocksClientState.Error) {
          this.state = newState;
        }
      }
      /**
       * Starts the connection establishment to the proxy and destination.
       * @param existingSocket Connected socket to use instead of creating a new one (internal use).
       */
      connect(existingSocket) {
        this.onDataReceived = (data3) => this.onDataReceivedHandler(data3);
        this.onClose = () => this.onCloseHandler();
        this.onError = (err) => this.onErrorHandler(err);
        this.onConnect = () => this.onConnectHandler();
        const timer = setTimeout(() => this.onEstablishedTimeout(), this.options.timeout || constants_1.DEFAULT_TIMEOUT);
        if (timer.unref && typeof timer.unref === "function") {
          timer.unref();
        }
        if (existingSocket) {
          this.socket = existingSocket;
        } else {
          this.socket = new net.Socket();
        }
        this.socket.once("close", this.onClose);
        this.socket.once("error", this.onError);
        this.socket.once("connect", this.onConnect);
        this.socket.on("data", this.onDataReceived);
        this.setState(constants_1.SocksClientState.Connecting);
        this.receiveBuffer = new receivebuffer_1.ReceiveBuffer();
        if (existingSocket) {
          this.socket.emit("connect");
        } else {
          this.socket.connect(this.getSocketOptions());
          if (this.options.set_tcp_nodelay !== void 0 && this.options.set_tcp_nodelay !== null) {
            this.socket.setNoDelay(!!this.options.set_tcp_nodelay);
          }
        }
        this.prependOnceListener("established", (info2) => {
          setImmediate(() => {
            if (this.receiveBuffer.length > 0) {
              const excessData = this.receiveBuffer.get(this.receiveBuffer.length);
              info2.socket.emit("data", excessData);
            }
            info2.socket.resume();
          });
        });
      }
      // Socket options (defaults host/port to options.proxy.host/options.proxy.port)
      getSocketOptions() {
        return Object.assign(Object.assign({}, this.options.socket_options), { host: this.options.proxy.host || this.options.proxy.ipaddress, port: this.options.proxy.port });
      }
      /**
       * Handles internal Socks timeout callback.
       * Note: If the Socks client is not BoundWaitingForConnection or Established, the connection will be closed.
       */
      onEstablishedTimeout() {
        if (this.state !== constants_1.SocksClientState.Established && this.state !== constants_1.SocksClientState.BoundWaitingForConnection) {
          this.closeSocket(constants_1.ERRORS.ProxyConnectionTimedOut);
        }
      }
      /**
       * Handles Socket connect event.
       */
      onConnectHandler() {
        this.setState(constants_1.SocksClientState.Connected);
        if (this.options.proxy.type === 4) {
          this.sendSocks4InitialHandshake();
        } else {
          this.sendSocks5InitialHandshake();
        }
        this.setState(constants_1.SocksClientState.SentInitialHandshake);
      }
      /**
       * Handles Socket data event.
       * @param data
       */
      onDataReceivedHandler(data3) {
        this.receiveBuffer.append(data3);
        this.processData();
      }
      /**
       * Handles processing of the data we have received.
       */
      processData() {
        while (this.state !== constants_1.SocksClientState.Established && this.state !== constants_1.SocksClientState.Error && this.receiveBuffer.length >= this.nextRequiredPacketBufferSize) {
          if (this.state === constants_1.SocksClientState.SentInitialHandshake) {
            if (this.options.proxy.type === 4) {
              this.handleSocks4FinalHandshakeResponse();
            } else {
              this.handleInitialSocks5HandshakeResponse();
            }
          } else if (this.state === constants_1.SocksClientState.SentAuthentication) {
            this.handleInitialSocks5AuthenticationHandshakeResponse();
          } else if (this.state === constants_1.SocksClientState.SentFinalHandshake) {
            this.handleSocks5FinalHandshakeResponse();
          } else if (this.state === constants_1.SocksClientState.BoundWaitingForConnection) {
            if (this.options.proxy.type === 4) {
              this.handleSocks4IncomingConnectionResponse();
            } else {
              this.handleSocks5IncomingConnectionResponse();
            }
          } else {
            this.closeSocket(constants_1.ERRORS.InternalError);
            break;
          }
        }
      }
      /**
       * Handles Socket close event.
       * @param had_error
       */
      onCloseHandler() {
        this.closeSocket(constants_1.ERRORS.SocketClosed);
      }
      /**
       * Handles Socket error event.
       * @param err
       */
      onErrorHandler(err) {
        this.closeSocket(err.message);
      }
      /**
       * Removes internal event listeners on the underlying Socket.
       */
      removeInternalSocketHandlers() {
        this.socket.pause();
        this.socket.removeListener("data", this.onDataReceived);
        this.socket.removeListener("close", this.onClose);
        this.socket.removeListener("error", this.onError);
        this.socket.removeListener("connect", this.onConnect);
      }
      /**
       * Closes and destroys the underlying Socket. Emits an error event.
       * @param err { String } An error string to include in error event.
       */
      closeSocket(err) {
        if (this.state !== constants_1.SocksClientState.Error) {
          this.setState(constants_1.SocksClientState.Error);
          this.socket.destroy();
          this.removeInternalSocketHandlers();
          this.emit("error", new util_1.SocksClientError(err, this.options));
        }
      }
      /**
       * Sends initial Socks v4 handshake request.
       */
      sendSocks4InitialHandshake() {
        const userId = this.options.proxy.userId || "";
        const buff = new smart_buffer_1.SmartBuffer();
        buff.writeUInt8(4);
        buff.writeUInt8(constants_1.SocksCommand[this.options.command]);
        buff.writeUInt16BE(this.options.destination.port);
        if (net.isIPv4(this.options.destination.host)) {
          buff.writeBuffer((0, helpers_1.ipToBuffer)(this.options.destination.host));
          buff.writeStringNT(userId);
        } else {
          buff.writeUInt8(0);
          buff.writeUInt8(0);
          buff.writeUInt8(0);
          buff.writeUInt8(1);
          buff.writeStringNT(userId);
          buff.writeStringNT(this.options.destination.host);
        }
        this.nextRequiredPacketBufferSize = constants_1.SOCKS_INCOMING_PACKET_SIZES.Socks4Response;
        this.socket.write(buff.toBuffer());
      }
      /**
       * Handles Socks v4 handshake response.
       * @param data
       */
      handleSocks4FinalHandshakeResponse() {
        const data3 = this.receiveBuffer.get(8);
        if (data3[1] !== constants_1.Socks4Response.Granted) {
          this.closeSocket(`${constants_1.ERRORS.Socks4ProxyRejectedConnection} - (${constants_1.Socks4Response[data3[1]]})`);
        } else {
          if (constants_1.SocksCommand[this.options.command] === constants_1.SocksCommand.bind) {
            const buff = smart_buffer_1.SmartBuffer.fromBuffer(data3);
            buff.readOffset = 2;
            const remoteHost = {
              port: buff.readUInt16BE(),
              host: (0, helpers_1.int32ToIpv4)(buff.readUInt32BE())
            };
            if (remoteHost.host === "0.0.0.0") {
              remoteHost.host = this.options.proxy.ipaddress;
            }
            this.setState(constants_1.SocksClientState.BoundWaitingForConnection);
            this.emit("bound", { remoteHost, socket: this.socket });
          } else {
            this.setState(constants_1.SocksClientState.Established);
            this.removeInternalSocketHandlers();
            this.emit("established", { socket: this.socket });
          }
        }
      }
      /**
       * Handles Socks v4 incoming connection request (BIND)
       * @param data
       */
      handleSocks4IncomingConnectionResponse() {
        const data3 = this.receiveBuffer.get(8);
        if (data3[1] !== constants_1.Socks4Response.Granted) {
          this.closeSocket(`${constants_1.ERRORS.Socks4ProxyRejectedIncomingBoundConnection} - (${constants_1.Socks4Response[data3[1]]})`);
        } else {
          const buff = smart_buffer_1.SmartBuffer.fromBuffer(data3);
          buff.readOffset = 2;
          const remoteHost = {
            port: buff.readUInt16BE(),
            host: (0, helpers_1.int32ToIpv4)(buff.readUInt32BE())
          };
          this.setState(constants_1.SocksClientState.Established);
          this.removeInternalSocketHandlers();
          this.emit("established", { remoteHost, socket: this.socket });
        }
      }
      /**
       * Sends initial Socks v5 handshake request.
       */
      sendSocks5InitialHandshake() {
        const buff = new smart_buffer_1.SmartBuffer();
        const supportedAuthMethods = [constants_1.Socks5Auth.NoAuth];
        if (this.options.proxy.userId || this.options.proxy.password) {
          supportedAuthMethods.push(constants_1.Socks5Auth.UserPass);
        }
        if (this.options.proxy.custom_auth_method !== void 0) {
          supportedAuthMethods.push(this.options.proxy.custom_auth_method);
        }
        buff.writeUInt8(5);
        buff.writeUInt8(supportedAuthMethods.length);
        for (const authMethod of supportedAuthMethods) {
          buff.writeUInt8(authMethod);
        }
        this.nextRequiredPacketBufferSize = constants_1.SOCKS_INCOMING_PACKET_SIZES.Socks5InitialHandshakeResponse;
        this.socket.write(buff.toBuffer());
        this.setState(constants_1.SocksClientState.SentInitialHandshake);
      }
      /**
       * Handles initial Socks v5 handshake response.
       * @param data
       */
      handleInitialSocks5HandshakeResponse() {
        const data3 = this.receiveBuffer.get(2);
        if (data3[0] !== 5) {
          this.closeSocket(constants_1.ERRORS.InvalidSocks5IntiailHandshakeSocksVersion);
        } else if (data3[1] === constants_1.SOCKS5_NO_ACCEPTABLE_AUTH) {
          this.closeSocket(constants_1.ERRORS.InvalidSocks5InitialHandshakeNoAcceptedAuthType);
        } else {
          if (data3[1] === constants_1.Socks5Auth.NoAuth) {
            this.socks5ChosenAuthType = constants_1.Socks5Auth.NoAuth;
            this.sendSocks5CommandRequest();
          } else if (data3[1] === constants_1.Socks5Auth.UserPass) {
            this.socks5ChosenAuthType = constants_1.Socks5Auth.UserPass;
            this.sendSocks5UserPassAuthentication();
          } else if (data3[1] === this.options.proxy.custom_auth_method) {
            this.socks5ChosenAuthType = this.options.proxy.custom_auth_method;
            this.sendSocks5CustomAuthentication();
          } else {
            this.closeSocket(constants_1.ERRORS.InvalidSocks5InitialHandshakeUnknownAuthType);
          }
        }
      }
      /**
       * Sends Socks v5 user & password auth handshake.
       *
       * Note: No auth and user/pass are currently supported.
       */
      sendSocks5UserPassAuthentication() {
        const userId = this.options.proxy.userId || "";
        const password = this.options.proxy.password || "";
        const buff = new smart_buffer_1.SmartBuffer();
        buff.writeUInt8(1);
        buff.writeUInt8(Buffer.byteLength(userId));
        buff.writeString(userId);
        buff.writeUInt8(Buffer.byteLength(password));
        buff.writeString(password);
        this.nextRequiredPacketBufferSize = constants_1.SOCKS_INCOMING_PACKET_SIZES.Socks5UserPassAuthenticationResponse;
        this.socket.write(buff.toBuffer());
        this.setState(constants_1.SocksClientState.SentAuthentication);
      }
      sendSocks5CustomAuthentication() {
        return __awaiter2(this, void 0, void 0, function* () {
          this.nextRequiredPacketBufferSize = this.options.proxy.custom_auth_response_size;
          this.socket.write(yield this.options.proxy.custom_auth_request_handler());
          this.setState(constants_1.SocksClientState.SentAuthentication);
        });
      }
      handleSocks5CustomAuthHandshakeResponse(data3) {
        return __awaiter2(this, void 0, void 0, function* () {
          return yield this.options.proxy.custom_auth_response_handler(data3);
        });
      }
      handleSocks5AuthenticationNoAuthHandshakeResponse(data3) {
        return __awaiter2(this, void 0, void 0, function* () {
          return data3[1] === 0;
        });
      }
      handleSocks5AuthenticationUserPassHandshakeResponse(data3) {
        return __awaiter2(this, void 0, void 0, function* () {
          return data3[1] === 0;
        });
      }
      /**
       * Handles Socks v5 auth handshake response.
       * @param data
       */
      handleInitialSocks5AuthenticationHandshakeResponse() {
        return __awaiter2(this, void 0, void 0, function* () {
          this.setState(constants_1.SocksClientState.ReceivedAuthenticationResponse);
          let authResult = false;
          if (this.socks5ChosenAuthType === constants_1.Socks5Auth.NoAuth) {
            authResult = yield this.handleSocks5AuthenticationNoAuthHandshakeResponse(this.receiveBuffer.get(2));
          } else if (this.socks5ChosenAuthType === constants_1.Socks5Auth.UserPass) {
            authResult = yield this.handleSocks5AuthenticationUserPassHandshakeResponse(this.receiveBuffer.get(2));
          } else if (this.socks5ChosenAuthType === this.options.proxy.custom_auth_method) {
            authResult = yield this.handleSocks5CustomAuthHandshakeResponse(this.receiveBuffer.get(this.options.proxy.custom_auth_response_size));
          }
          if (!authResult) {
            this.closeSocket(constants_1.ERRORS.Socks5AuthenticationFailed);
          } else {
            this.sendSocks5CommandRequest();
          }
        });
      }
      /**
       * Sends Socks v5 final handshake request.
       */
      sendSocks5CommandRequest() {
        const buff = new smart_buffer_1.SmartBuffer();
        buff.writeUInt8(5);
        buff.writeUInt8(constants_1.SocksCommand[this.options.command]);
        buff.writeUInt8(0);
        if (net.isIPv4(this.options.destination.host)) {
          buff.writeUInt8(constants_1.Socks5HostType.IPv4);
          buff.writeBuffer((0, helpers_1.ipToBuffer)(this.options.destination.host));
        } else if (net.isIPv6(this.options.destination.host)) {
          buff.writeUInt8(constants_1.Socks5HostType.IPv6);
          buff.writeBuffer((0, helpers_1.ipToBuffer)(this.options.destination.host));
        } else {
          buff.writeUInt8(constants_1.Socks5HostType.Hostname);
          buff.writeUInt8(this.options.destination.host.length);
          buff.writeString(this.options.destination.host);
        }
        buff.writeUInt16BE(this.options.destination.port);
        this.nextRequiredPacketBufferSize = constants_1.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHeader;
        this.socket.write(buff.toBuffer());
        this.setState(constants_1.SocksClientState.SentFinalHandshake);
      }
      /**
       * Handles Socks v5 final handshake response.
       * @param data
       */
      handleSocks5FinalHandshakeResponse() {
        const header = this.receiveBuffer.peek(5);
        if (header[0] !== 5 || header[1] !== constants_1.Socks5Response.Granted) {
          this.closeSocket(`${constants_1.ERRORS.InvalidSocks5FinalHandshakeRejected} - ${constants_1.Socks5Response[header[1]]}`);
        } else {
          const addressType = header[3];
          let remoteHost;
          let buff;
          if (addressType === constants_1.Socks5HostType.IPv4) {
            const dataNeeded = constants_1.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv4;
            if (this.receiveBuffer.length < dataNeeded) {
              this.nextRequiredPacketBufferSize = dataNeeded;
              return;
            }
            buff = smart_buffer_1.SmartBuffer.fromBuffer(this.receiveBuffer.get(dataNeeded).slice(4));
            remoteHost = {
              host: (0, helpers_1.int32ToIpv4)(buff.readUInt32BE()),
              port: buff.readUInt16BE()
            };
            if (remoteHost.host === "0.0.0.0") {
              remoteHost.host = this.options.proxy.ipaddress;
            }
          } else if (addressType === constants_1.Socks5HostType.Hostname) {
            const hostLength = header[4];
            const dataNeeded = constants_1.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHostname(hostLength);
            if (this.receiveBuffer.length < dataNeeded) {
              this.nextRequiredPacketBufferSize = dataNeeded;
              return;
            }
            buff = smart_buffer_1.SmartBuffer.fromBuffer(this.receiveBuffer.get(dataNeeded).slice(5));
            remoteHost = {
              host: buff.readString(hostLength),
              port: buff.readUInt16BE()
            };
          } else if (addressType === constants_1.Socks5HostType.IPv6) {
            const dataNeeded = constants_1.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv6;
            if (this.receiveBuffer.length < dataNeeded) {
              this.nextRequiredPacketBufferSize = dataNeeded;
              return;
            }
            buff = smart_buffer_1.SmartBuffer.fromBuffer(this.receiveBuffer.get(dataNeeded).slice(4));
            remoteHost = {
              host: ip_address_1.Address6.fromByteArray(Array.from(buff.readBuffer(16))).canonicalForm(),
              port: buff.readUInt16BE()
            };
          }
          this.setState(constants_1.SocksClientState.ReceivedFinalResponse);
          if (constants_1.SocksCommand[this.options.command] === constants_1.SocksCommand.connect) {
            this.setState(constants_1.SocksClientState.Established);
            this.removeInternalSocketHandlers();
            this.emit("established", { remoteHost, socket: this.socket });
          } else if (constants_1.SocksCommand[this.options.command] === constants_1.SocksCommand.bind) {
            this.setState(constants_1.SocksClientState.BoundWaitingForConnection);
            this.nextRequiredPacketBufferSize = constants_1.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHeader;
            this.emit("bound", { remoteHost, socket: this.socket });
          } else if (constants_1.SocksCommand[this.options.command] === constants_1.SocksCommand.associate) {
            this.setState(constants_1.SocksClientState.Established);
            this.removeInternalSocketHandlers();
            this.emit("established", {
              remoteHost,
              socket: this.socket
            });
          }
        }
      }
      /**
       * Handles Socks v5 incoming connection request (BIND).
       */
      handleSocks5IncomingConnectionResponse() {
        const header = this.receiveBuffer.peek(5);
        if (header[0] !== 5 || header[1] !== constants_1.Socks5Response.Granted) {
          this.closeSocket(`${constants_1.ERRORS.Socks5ProxyRejectedIncomingBoundConnection} - ${constants_1.Socks5Response[header[1]]}`);
        } else {
          const addressType = header[3];
          let remoteHost;
          let buff;
          if (addressType === constants_1.Socks5HostType.IPv4) {
            const dataNeeded = constants_1.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv4;
            if (this.receiveBuffer.length < dataNeeded) {
              this.nextRequiredPacketBufferSize = dataNeeded;
              return;
            }
            buff = smart_buffer_1.SmartBuffer.fromBuffer(this.receiveBuffer.get(dataNeeded).slice(4));
            remoteHost = {
              host: (0, helpers_1.int32ToIpv4)(buff.readUInt32BE()),
              port: buff.readUInt16BE()
            };
            if (remoteHost.host === "0.0.0.0") {
              remoteHost.host = this.options.proxy.ipaddress;
            }
          } else if (addressType === constants_1.Socks5HostType.Hostname) {
            const hostLength = header[4];
            const dataNeeded = constants_1.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHostname(hostLength);
            if (this.receiveBuffer.length < dataNeeded) {
              this.nextRequiredPacketBufferSize = dataNeeded;
              return;
            }
            buff = smart_buffer_1.SmartBuffer.fromBuffer(this.receiveBuffer.get(dataNeeded).slice(5));
            remoteHost = {
              host: buff.readString(hostLength),
              port: buff.readUInt16BE()
            };
          } else if (addressType === constants_1.Socks5HostType.IPv6) {
            const dataNeeded = constants_1.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv6;
            if (this.receiveBuffer.length < dataNeeded) {
              this.nextRequiredPacketBufferSize = dataNeeded;
              return;
            }
            buff = smart_buffer_1.SmartBuffer.fromBuffer(this.receiveBuffer.get(dataNeeded).slice(4));
            remoteHost = {
              host: ip_address_1.Address6.fromByteArray(Array.from(buff.readBuffer(16))).canonicalForm(),
              port: buff.readUInt16BE()
            };
          }
          this.setState(constants_1.SocksClientState.Established);
          this.removeInternalSocketHandlers();
          this.emit("established", { remoteHost, socket: this.socket });
        }
      }
      get socksClientOptions() {
        return Object.assign({}, this.options);
      }
    };
    exports2.SocksClient = SocksClient;
  }
});

// ../../node_modules/socks/build/index.js
var require_build = __commonJS({
  "../../node_modules/socks/build/index.js"(exports2) {
    "use strict";
    var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      var desc = Object.getOwnPropertyDescriptor(m3, k3);
      if (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) {
        desc = { enumerable: true, get: /* @__PURE__ */ __name(function() {
          return m3[k3];
        }, "get") };
      }
      Object.defineProperty(o3, k22, desc);
    }) : (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      o3[k22] = m3[k3];
    }));
    var __exportStar3 = exports2 && exports2.__exportStar || function(m3, exports3) {
      for (var p3 in m3) if (p3 !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p3)) __createBinding3(exports3, m3, p3);
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    __exportStar3(require_socksclient(), exports2);
  }
});

// ../../node_modules/socks-proxy-agent/dist/index.js
var require_dist6 = __commonJS({
  "../../node_modules/socks-proxy-agent/dist/index.js"(exports2) {
    "use strict";
    var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      var desc = Object.getOwnPropertyDescriptor(m3, k3);
      if (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) {
        desc = { enumerable: true, get: /* @__PURE__ */ __name(function() {
          return m3[k3];
        }, "get") };
      }
      Object.defineProperty(o3, k22, desc);
    }) : (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      o3[k22] = m3[k3];
    }));
    var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? (function(o3, v6) {
      Object.defineProperty(o3, "default", { enumerable: true, value: v6 });
    }) : function(o3, v6) {
      o3["default"] = v6;
    });
    var __importStar2 = exports2 && exports2.__importStar || function(mod) {
      if (mod && mod.__esModule) return mod;
      var result2 = {};
      if (mod != null) {
        for (var k3 in mod) if (k3 !== "default" && Object.prototype.hasOwnProperty.call(mod, k3)) __createBinding3(result2, mod, k3);
      }
      __setModuleDefault2(result2, mod);
      return result2;
    };
    var __importDefault2 = exports2 && exports2.__importDefault || function(mod) {
      return mod && mod.__esModule ? mod : { "default": mod };
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.SocksProxyAgent = void 0;
    var socks_1 = require_build();
    var agent_base_1 = require_dist3();
    var debug_1 = __importDefault2(require_src2());
    var dns = __importStar2(require("dns"));
    var net = __importStar2(require("net"));
    var tls = __importStar2(require("tls"));
    var url_1 = require("url");
    var debug3 = (0, debug_1.default)("socks-proxy-agent");
    var setServernameFromNonIpHost = /* @__PURE__ */ __name((options) => {
      if (options.servername === void 0 && options.host && !net.isIP(options.host)) {
        return {
          ...options,
          servername: options.host
        };
      }
      return options;
    }, "setServernameFromNonIpHost");
    function parseSocksURL(url) {
      let lookup = false;
      let type = 5;
      const host = url.hostname;
      const port = parseInt(url.port, 10) || 1080;
      switch (url.protocol.replace(":", "")) {
        case "socks4":
          lookup = true;
          type = 4;
          break;
        // pass through
        case "socks4a":
          type = 4;
          break;
        case "socks5":
          lookup = true;
          type = 5;
          break;
        // pass through
        case "socks":
          type = 5;
          break;
        case "socks5h":
          type = 5;
          break;
        default:
          throw new TypeError(`A "socks" protocol must be specified! Got: ${String(url.protocol)}`);
      }
      const proxy = {
        host,
        port,
        type
      };
      if (url.username) {
        Object.defineProperty(proxy, "userId", {
          value: decodeURIComponent(url.username),
          enumerable: false
        });
      }
      if (url.password != null) {
        Object.defineProperty(proxy, "password", {
          value: decodeURIComponent(url.password),
          enumerable: false
        });
      }
      return { lookup, proxy };
    }
    __name(parseSocksURL, "parseSocksURL");
    var SocksProxyAgent = class extends agent_base_1.Agent {
      static {
        __name(this, "SocksProxyAgent");
      }
      constructor(uri, opts) {
        super(opts);
        const url = typeof uri === "string" ? new url_1.URL(uri) : uri;
        const { proxy, lookup } = parseSocksURL(url);
        this.shouldLookup = lookup;
        this.proxy = proxy;
        this.timeout = opts?.timeout ?? null;
        this.socketOptions = opts?.socketOptions ?? null;
      }
      /**
       * Initiates a SOCKS connection to the specified SOCKS proxy server,
       * which in turn connects to the specified remote host and port.
       */
      async connect(req, opts) {
        const { shouldLookup, proxy, timeout } = this;
        if (!opts.host) {
          throw new Error("No `host` defined!");
        }
        let { host } = opts;
        const { port, lookup: lookupFn = dns.lookup } = opts;
        if (shouldLookup) {
          host = await new Promise((resolve13, reject) => {
            lookupFn(host, {}, (err, res) => {
              if (err) {
                reject(err);
              } else {
                resolve13(res);
              }
            });
          });
        }
        const socksOpts = {
          proxy,
          destination: {
            host,
            port: typeof port === "number" ? port : parseInt(port, 10)
          },
          command: "connect",
          timeout: timeout ?? void 0,
          // @ts-expect-error the type supplied by socks for socket_options is wider
          // than necessary since socks will always override the host and port
          socket_options: this.socketOptions ?? void 0
        };
        const cleanup = /* @__PURE__ */ __name((tlsSocket) => {
          req.destroy();
          socket.destroy();
          if (tlsSocket)
            tlsSocket.destroy();
        }, "cleanup");
        debug3("Creating socks proxy connection: %o", socksOpts);
        const { socket } = await socks_1.SocksClient.createConnection(socksOpts);
        debug3("Successfully created socks proxy connection");
        if (timeout !== null) {
          socket.setTimeout(timeout);
          socket.on("timeout", () => cleanup());
        }
        if (opts.secureEndpoint) {
          debug3("Upgrading socket connection to TLS");
          const tlsSocket = tls.connect({
            ...omit(setServernameFromNonIpHost(opts), "host", "path", "port"),
            socket
          });
          tlsSocket.once("error", (error5) => {
            debug3("Socket TLS error", error5.message);
            cleanup(tlsSocket);
          });
          return tlsSocket;
        }
        return socket;
      }
    };
    SocksProxyAgent.protocols = [
      "socks",
      "socks4",
      "socks4a",
      "socks5",
      "socks5h"
    ];
    exports2.SocksProxyAgent = SocksProxyAgent;
    function omit(obj, ...keys) {
      const ret = {};
      let key;
      for (key in obj) {
        if (!keys.includes(key)) {
          ret[key] = obj[key];
        }
      }
      return ret;
    }
    __name(omit, "omit");
  }
});

// ../../node_modules/data-uri-to-buffer/dist/common.js
var require_common3 = __commonJS({
  "../../node_modules/data-uri-to-buffer/dist/common.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.makeDataUriToBuffer = void 0;
    var makeDataUriToBuffer = /* @__PURE__ */ __name((convert) => (uri) => {
      uri = String(uri);
      if (!/^data:/i.test(uri)) {
        throw new TypeError('`uri` does not appear to be a Data URI (must begin with "data:")');
      }
      uri = uri.replace(/\r?\n/g, "");
      const firstComma = uri.indexOf(",");
      if (firstComma === -1 || firstComma <= 4) {
        throw new TypeError("malformed data: URI");
      }
      const meta = uri.substring(5, firstComma).split(";");
      let charset = "";
      let base64 = false;
      const type = meta[0] || "text/plain";
      let typeFull = type;
      for (let i3 = 1; i3 < meta.length; i3++) {
        if (meta[i3] === "base64") {
          base64 = true;
        } else if (meta[i3]) {
          typeFull += `;${meta[i3]}`;
          if (meta[i3].indexOf("charset=") === 0) {
            charset = meta[i3].substring(8);
          }
        }
      }
      if (!meta[0] && !charset.length) {
        typeFull += ";charset=US-ASCII";
        charset = "US-ASCII";
      }
      const data3 = unescape(uri.substring(firstComma + 1));
      const buffer = base64 ? convert.base64ToArrayBuffer(data3) : convert.stringToBuffer(data3);
      return {
        type,
        typeFull,
        charset,
        buffer
      };
    }, "makeDataUriToBuffer");
    exports2.makeDataUriToBuffer = makeDataUriToBuffer;
  }
});

// ../../node_modules/data-uri-to-buffer/dist/node.js
var require_node3 = __commonJS({
  "../../node_modules/data-uri-to-buffer/dist/node.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.dataUriToBuffer = void 0;
    var common_1 = require_common3();
    function nodeBuffertoArrayBuffer(nodeBuf) {
      if (nodeBuf.byteLength === nodeBuf.buffer.byteLength) {
        return nodeBuf.buffer;
      }
      const buffer = new ArrayBuffer(nodeBuf.byteLength);
      const view = new Uint8Array(buffer);
      view.set(nodeBuf);
      return buffer;
    }
    __name(nodeBuffertoArrayBuffer, "nodeBuffertoArrayBuffer");
    function base64ToArrayBuffer(base64) {
      return nodeBuffertoArrayBuffer(Buffer.from(base64, "base64"));
    }
    __name(base64ToArrayBuffer, "base64ToArrayBuffer");
    function stringToBuffer(str) {
      return nodeBuffertoArrayBuffer(Buffer.from(str, "ascii"));
    }
    __name(stringToBuffer, "stringToBuffer");
    exports2.dataUriToBuffer = (0, common_1.makeDataUriToBuffer)({ stringToBuffer, base64ToArrayBuffer });
  }
});

// ../../node_modules/get-uri/dist/notmodified.js
var require_notmodified = __commonJS({
  "../../node_modules/get-uri/dist/notmodified.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    var NotModifiedError = class extends Error {
      static {
        __name(this, "NotModifiedError");
      }
      constructor(message2) {
        super(message2 || 'Source has not been modified since the provied "cache", re-use previous results');
        this.code = "ENOTMODIFIED";
      }
    };
    exports2.default = NotModifiedError;
  }
});

// ../../node_modules/get-uri/dist/data.js
var require_data = __commonJS({
  "../../node_modules/get-uri/dist/data.js"(exports2) {
    "use strict";
    var __importDefault2 = exports2 && exports2.__importDefault || function(mod) {
      return mod && mod.__esModule ? mod : { "default": mod };
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.data = void 0;
    var debug_1 = __importDefault2(require_src2());
    var stream_1 = require("stream");
    var crypto_1 = require("crypto");
    var data_uri_to_buffer_1 = require_node3();
    var notmodified_1 = __importDefault2(require_notmodified());
    var debug3 = (0, debug_1.default)("get-uri:data");
    var DataReadable = class extends stream_1.Readable {
      static {
        __name(this, "DataReadable");
      }
      constructor(hash, buf) {
        super();
        this.push(buf);
        this.push(null);
        this.hash = hash;
      }
    };
    var data3 = /* @__PURE__ */ __name(async ({ href: uri }, { cache: cache3 } = {}) => {
      const shasum = (0, crypto_1.createHash)("sha1");
      shasum.update(uri);
      const hash = shasum.digest("hex");
      debug3('generated SHA1 hash for "data:" URI: %o', hash);
      if (cache3?.hash === hash) {
        debug3("got matching cache SHA1 hash: %o", hash);
        throw new notmodified_1.default();
      } else {
        debug3('creating Readable stream from "data:" URI buffer');
        const { buffer } = (0, data_uri_to_buffer_1.dataUriToBuffer)(uri);
        return new DataReadable(hash, Buffer.from(buffer));
      }
    }, "data");
    exports2.data = data3;
  }
});

// ../../node_modules/get-uri/dist/notfound.js
var require_notfound = __commonJS({
  "../../node_modules/get-uri/dist/notfound.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    var NotFoundError = class extends Error {
      static {
        __name(this, "NotFoundError");
      }
      constructor(message2) {
        super(message2 || "File does not exist at the specified endpoint");
        this.code = "ENOTFOUND";
      }
    };
    exports2.default = NotFoundError;
  }
});

// ../../node_modules/get-uri/dist/file.js
var require_file4 = __commonJS({
  "../../node_modules/get-uri/dist/file.js"(exports2) {
    "use strict";
    var __importDefault2 = exports2 && exports2.__importDefault || function(mod) {
      return mod && mod.__esModule ? mod : { "default": mod };
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.file = void 0;
    var debug_1 = __importDefault2(require_src2());
    var fs_1 = require("fs");
    var notfound_1 = __importDefault2(require_notfound());
    var notmodified_1 = __importDefault2(require_notmodified());
    var url_1 = require("url");
    var debug3 = (0, debug_1.default)("get-uri:file");
    var file = /* @__PURE__ */ __name(async ({ href: uri }, opts = {}) => {
      const {
        cache: cache3,
        flags = "r",
        mode = 438
        // =0666
      } = opts;
      try {
        const filepath = (0, url_1.fileURLToPath)(uri);
        debug3("Normalized pathname: %o", filepath);
        const fdHandle = await fs_1.promises.open(filepath, flags, mode);
        const fd = fdHandle.fd;
        const stat5 = await fdHandle.stat();
        if (cache3 && cache3.stat && stat5 && isNotModified(cache3.stat, stat5)) {
          await fdHandle.close();
          throw new notmodified_1.default();
        }
        const rs = (0, fs_1.createReadStream)(filepath, {
          autoClose: true,
          ...opts,
          fd
        });
        rs.stat = stat5;
        return rs;
      } catch (err) {
        if (err.code === "ENOENT") {
          throw new notfound_1.default();
        }
        throw err;
      }
    }, "file");
    exports2.file = file;
    function isNotModified(prev, curr) {
      return +prev.mtime === +curr.mtime;
    }
    __name(isNotModified, "isNotModified");
  }
});

// ../../node_modules/basic-ftp/dist/parseControlResponse.js
var require_parseControlResponse = __commonJS({
  "../../node_modules/basic-ftp/dist/parseControlResponse.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.positiveIntermediate = exports2.positiveCompletion = exports2.isMultiline = exports2.isSingleLine = exports2.parseControlResponse = void 0;
    var LF = "\n";
    function parseControlResponse(text) {
      const lines = text.split(/\r?\n/).filter(isNotBlank);
      const messages = [];
      let startAt = 0;
      let tokenRegex;
      for (let i3 = 0; i3 < lines.length; i3++) {
        const line = lines[i3];
        if (!tokenRegex) {
          if (isMultiline(line)) {
            const token = line.substr(0, 3);
            tokenRegex = new RegExp(`^${token}(?:$| )`);
            startAt = i3;
          } else if (isSingleLine(line)) {
            messages.push(line);
          }
        } else if (tokenRegex.test(line)) {
          tokenRegex = void 0;
          messages.push(lines.slice(startAt, i3 + 1).join(LF));
        }
      }
      const rest = tokenRegex ? lines.slice(startAt).join(LF) + LF : "";
      return { messages, rest };
    }
    __name(parseControlResponse, "parseControlResponse");
    exports2.parseControlResponse = parseControlResponse;
    function isSingleLine(line) {
      return /^\d\d\d(?:$| )/.test(line);
    }
    __name(isSingleLine, "isSingleLine");
    exports2.isSingleLine = isSingleLine;
    function isMultiline(line) {
      return /^\d\d\d-/.test(line);
    }
    __name(isMultiline, "isMultiline");
    exports2.isMultiline = isMultiline;
    function positiveCompletion(code) {
      return code >= 200 && code < 300;
    }
    __name(positiveCompletion, "positiveCompletion");
    exports2.positiveCompletion = positiveCompletion;
    function positiveIntermediate(code) {
      return code >= 300 && code < 400;
    }
    __name(positiveIntermediate, "positiveIntermediate");
    exports2.positiveIntermediate = positiveIntermediate;
    function isNotBlank(str) {
      return str.trim() !== "";
    }
    __name(isNotBlank, "isNotBlank");
  }
});

// ../../node_modules/basic-ftp/dist/FtpContext.js
var require_FtpContext = __commonJS({
  "../../node_modules/basic-ftp/dist/FtpContext.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.FTPContext = exports2.FTPError = void 0;
    var net_1 = require("net");
    var parseControlResponse_1 = require_parseControlResponse();
    var FTPError = class extends Error {
      static {
        __name(this, "FTPError");
      }
      constructor(res) {
        super(res.message);
        this.name = this.constructor.name;
        this.code = res.code;
      }
    };
    exports2.FTPError = FTPError;
    function doNothing() {
    }
    __name(doNothing, "doNothing");
    var FTPContext = class {
      static {
        __name(this, "FTPContext");
      }
      /**
       * Instantiate an FTP context.
       *
       * @param timeout - Timeout in milliseconds to apply to control and data connections. Use 0 for no timeout.
       * @param encoding - Encoding to use for control connection. UTF-8 by default. Use "latin1" for older servers.
       */
      constructor(timeout = 0, encoding = "utf8") {
        this.timeout = timeout;
        this.verbose = false;
        this.ipFamily = void 0;
        this.tlsOptions = {};
        this._partialResponse = "";
        this._encoding = encoding;
        this._socket = this.socket = this._newSocket();
        this._dataSocket = void 0;
      }
      /**
       * Close the context.
       */
      close() {
        const message2 = this._task ? "User closed client during task" : "User closed client";
        const err = new Error(message2);
        this.closeWithError(err);
      }
      /**
       * Close the context with an error.
       */
      closeWithError(err) {
        if (this._closingError) {
          return;
        }
        this._closingError = err;
        this._closeControlSocket();
        this._closeSocket(this._dataSocket);
        this._passToHandler(err);
        this._stopTrackingTask();
      }
      /**
       * Returns true if this context has been closed or hasn't been connected yet. You can reopen it with `access`.
       */
      get closed() {
        return this.socket.remoteAddress === void 0 || this._closingError !== void 0;
      }
      /**
       * Reset this contex and all of its state.
       */
      reset() {
        this.socket = this._newSocket();
      }
      /**
       * Get the FTP control socket.
       */
      get socket() {
        return this._socket;
      }
      /**
       * Set the socket for the control connection. This will only close the current control socket
       * if the new one is not an upgrade to the current one.
       */
      set socket(socket) {
        this.dataSocket = void 0;
        this.tlsOptions = {};
        this._partialResponse = "";
        if (this._socket) {
          const newSocketUpgradesExisting = socket.localPort === this._socket.localPort;
          if (newSocketUpgradesExisting) {
            this._removeSocketListeners(this.socket);
          } else {
            this._closeControlSocket();
          }
        }
        if (socket) {
          this._closingError = void 0;
          socket.setTimeout(0);
          socket.setEncoding(this._encoding);
          socket.setKeepAlive(true);
          socket.on("data", (data3) => this._onControlSocketData(data3));
          socket.on("end", () => this.closeWithError(new Error("Server sent FIN packet unexpectedly, closing connection.")));
          socket.on("close", (hadError) => {
            if (!hadError)
              this.closeWithError(new Error("Server closed connection unexpectedly."));
          });
          this._setupDefaultErrorHandlers(socket, "control socket");
        }
        this._socket = socket;
      }
      /**
       * Get the current FTP data connection if present.
       */
      get dataSocket() {
        return this._dataSocket;
      }
      /**
       * Set the socket for the data connection. This will automatically close the former data socket.
       */
      set dataSocket(socket) {
        this._closeSocket(this._dataSocket);
        if (socket) {
          socket.setTimeout(0);
          this._setupDefaultErrorHandlers(socket, "data socket");
        }
        this._dataSocket = socket;
      }
      /**
       * Get the currently used encoding.
       */
      get encoding() {
        return this._encoding;
      }
      /**
       * Set the encoding used for the control socket.
       *
       * See https://nodejs.org/api/buffer.html#buffer_buffers_and_character_encodings for what encodings
       * are supported by Node.
       */
      set encoding(encoding) {
        this._encoding = encoding;
        if (this.socket) {
          this.socket.setEncoding(encoding);
        }
      }
      /**
       * Send an FTP command without waiting for or handling the result.
       */
      send(command2) {
        const containsPassword = command2.startsWith("PASS");
        const message2 = containsPassword ? "> PASS ###" : `> ${command2}`;
        this.log(message2);
        this._socket.write(command2 + "\r\n", this.encoding);
      }
      /**
       * Send an FTP command and handle the first response. Use this if you have a simple
       * request-response situation.
       */
      request(command2) {
        return this.handle(command2, (res, task) => {
          if (res instanceof Error) {
            task.reject(res);
          } else {
            task.resolve(res);
          }
        });
      }
      /**
       * Send an FTP command and handle any response until you resolve/reject. Use this if you expect multiple responses
       * to a request. This returns a Promise that will hold whatever the response handler passed on when resolving/rejecting its task.
       */
      handle(command2, responseHandler) {
        if (this._task) {
          const err = new Error("User launched a task while another one is still running. Forgot to use 'await' or '.then()'?");
          err.stack += `
Running task launched at: ${this._task.stack}`;
          this.closeWithError(err);
        }
        return new Promise((resolveTask, rejectTask) => {
          this._task = {
            stack: new Error().stack || "Unknown call stack",
            responseHandler,
            resolver: {
              resolve: /* @__PURE__ */ __name((arg) => {
                this._stopTrackingTask();
                resolveTask(arg);
              }, "resolve"),
              reject: /* @__PURE__ */ __name((err) => {
                this._stopTrackingTask();
                rejectTask(err);
              }, "reject")
            }
          };
          if (this._closingError) {
            const err = new Error(`Client is closed because ${this._closingError.message}`);
            err.stack += `
Closing reason: ${this._closingError.stack}`;
            err.code = this._closingError.code !== void 0 ? this._closingError.code : "0";
            this._passToHandler(err);
            return;
          }
          this.socket.setTimeout(this.timeout);
          if (command2) {
            this.send(command2);
          }
        });
      }
      /**
       * Log message if set to be verbose.
       */
      log(message2) {
        if (this.verbose) {
          console.log(message2);
        }
      }
      /**
       * Return true if the control socket is using TLS. This does not mean that a session
       * has already been negotiated.
       */
      get hasTLS() {
        return "encrypted" in this._socket;
      }
      /**
       * Removes reference to current task and handler. This won't resolve or reject the task.
       * @protected
       */
      _stopTrackingTask() {
        this.socket.setTimeout(0);
        this._task = void 0;
      }
      /**
       * Handle incoming data on the control socket. The chunk is going to be of type `string`
       * because we let `socket` handle encoding with `setEncoding`.
       * @protected
       */
      _onControlSocketData(chunk) {
        this.log(`< ${chunk}`);
        const completeResponse = this._partialResponse + chunk;
        const parsed = (0, parseControlResponse_1.parseControlResponse)(completeResponse);
        this._partialResponse = parsed.rest;
        for (const message2 of parsed.messages) {
          const code = parseInt(message2.substr(0, 3), 10);
          const response = { code, message: message2 };
          const err = code >= 400 ? new FTPError(response) : void 0;
          this._passToHandler(err ? err : response);
        }
      }
      /**
       * Send the current handler a response. This is usually a control socket response
       * or a socket event, like an error or timeout.
       * @protected
       */
      _passToHandler(response) {
        if (this._task) {
          this._task.responseHandler(response, this._task.resolver);
        }
      }
      /**
       * Setup all error handlers for a socket.
       * @protected
       */
      _setupDefaultErrorHandlers(socket, identifier) {
        socket.once("error", (error5) => {
          error5.message += ` (${identifier})`;
          this.closeWithError(error5);
        });
        socket.once("close", (hadError) => {
          if (hadError) {
            this.closeWithError(new Error(`Socket closed due to transmission error (${identifier})`));
          }
        });
        socket.once("timeout", () => {
          socket.destroy();
          this.closeWithError(new Error(`Timeout (${identifier})`));
        });
      }
      /**
       * Close the control socket. Sends QUIT, then FIN, and ignores any response or error.
       */
      _closeControlSocket() {
        this._removeSocketListeners(this._socket);
        this._socket.on("error", doNothing);
        this.send("QUIT");
        this._closeSocket(this._socket);
      }
      /**
       * Close a socket, ignores any error.
       * @protected
       */
      _closeSocket(socket) {
        if (socket) {
          this._removeSocketListeners(socket);
          socket.on("error", doNothing);
          socket.destroy();
        }
      }
      /**
       * Remove all default listeners for socket.
       * @protected
       */
      _removeSocketListeners(socket) {
        socket.removeAllListeners();
        socket.removeAllListeners("timeout");
        socket.removeAllListeners("data");
        socket.removeAllListeners("end");
        socket.removeAllListeners("error");
        socket.removeAllListeners("close");
        socket.removeAllListeners("connect");
      }
      /**
       * Provide a new socket instance.
       *
       * Internal use only, replaced for unit tests.
       */
      _newSocket() {
        return new net_1.Socket();
      }
    };
    exports2.FTPContext = FTPContext;
  }
});

// ../../node_modules/basic-ftp/dist/FileInfo.js
var require_FileInfo = __commonJS({
  "../../node_modules/basic-ftp/dist/FileInfo.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.FileInfo = exports2.FileType = void 0;
    var FileType;
    (function(FileType2) {
      FileType2[FileType2["Unknown"] = 0] = "Unknown";
      FileType2[FileType2["File"] = 1] = "File";
      FileType2[FileType2["Directory"] = 2] = "Directory";
      FileType2[FileType2["SymbolicLink"] = 3] = "SymbolicLink";
    })(FileType || (exports2.FileType = FileType = {}));
    var FileInfo = class {
      static {
        __name(this, "FileInfo");
      }
      constructor(name) {
        this.name = name;
        this.type = FileType.Unknown;
        this.size = 0;
        this.rawModifiedAt = "";
        this.modifiedAt = void 0;
        this.permissions = void 0;
        this.hardLinkCount = void 0;
        this.link = void 0;
        this.group = void 0;
        this.user = void 0;
        this.uniqueID = void 0;
        this.name = name;
      }
      get isDirectory() {
        return this.type === FileType.Directory;
      }
      get isSymbolicLink() {
        return this.type === FileType.SymbolicLink;
      }
      get isFile() {
        return this.type === FileType.File;
      }
      /**
       * Deprecated, legacy API. Use `rawModifiedAt` instead.
       * @deprecated
       */
      get date() {
        return this.rawModifiedAt;
      }
      set date(rawModifiedAt) {
        this.rawModifiedAt = rawModifiedAt;
      }
    };
    exports2.FileInfo = FileInfo;
    FileInfo.UnixPermission = {
      Read: 4,
      Write: 2,
      Execute: 1
    };
  }
});

// ../../node_modules/basic-ftp/dist/parseListDOS.js
var require_parseListDOS = __commonJS({
  "../../node_modules/basic-ftp/dist/parseListDOS.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.transformList = exports2.parseLine = exports2.testLine = void 0;
    var FileInfo_1 = require_FileInfo();
    var RE_LINE = new RegExp(
      "(\\S+)\\s+(\\S+)\\s+(?:(<DIR>)|([0-9]+))\\s+(\\S.*)"
      // First non-space followed by rest of line (name)
    );
    function testLine(line) {
      return /^\d{2}/.test(line) && RE_LINE.test(line);
    }
    __name(testLine, "testLine");
    exports2.testLine = testLine;
    function parseLine(line) {
      const groups = line.match(RE_LINE);
      if (groups === null) {
        return void 0;
      }
      const name = groups[5];
      if (name === "." || name === "..") {
        return void 0;
      }
      const file = new FileInfo_1.FileInfo(name);
      const fileType = groups[3];
      if (fileType === "<DIR>") {
        file.type = FileInfo_1.FileType.Directory;
        file.size = 0;
      } else {
        file.type = FileInfo_1.FileType.File;
        file.size = parseInt(groups[4], 10);
      }
      file.rawModifiedAt = groups[1] + " " + groups[2];
      return file;
    }
    __name(parseLine, "parseLine");
    exports2.parseLine = parseLine;
    function transformList(files) {
      return files;
    }
    __name(transformList, "transformList");
    exports2.transformList = transformList;
  }
});

// ../../node_modules/basic-ftp/dist/parseListUnix.js
var require_parseListUnix = __commonJS({
  "../../node_modules/basic-ftp/dist/parseListUnix.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.transformList = exports2.parseLine = exports2.testLine = void 0;
    var FileInfo_1 = require_FileInfo();
    var JA_MONTH = "\u6708";
    var JA_DAY = "\u65E5";
    var JA_YEAR = "\u5E74";
    var RE_LINE = new RegExp("([bcdelfmpSs-])(((r|-)(w|-)([xsStTL-]))((r|-)(w|-)([xsStTL-]))((r|-)(w|-)([xsStTL-]?)))\\+?\\s*(\\d+)\\s+(?:(\\S+(?:\\s\\S+)*?)\\s+)?(?:(\\S+(?:\\s\\S+)*)\\s+)?(\\d+(?:,\\s*\\d+)?)\\s+((?:\\d+[-/]\\d+[-/]\\d+)|(?:\\S{3}\\s+\\d{1,2})|(?:\\d{1,2}\\s+\\S{3})|(?:\\d{1,2}" + JA_MONTH + "\\s+\\d{1,2}" + JA_DAY + "))\\s+((?:\\d+(?::\\d+)?)|(?:\\d{4}" + JA_YEAR + "))\\s(.*)");
    function testLine(line) {
      return RE_LINE.test(line);
    }
    __name(testLine, "testLine");
    exports2.testLine = testLine;
    function parseLine(line) {
      const groups = line.match(RE_LINE);
      if (groups === null) {
        return void 0;
      }
      const name = groups[21];
      if (name === "." || name === "..") {
        return void 0;
      }
      const file = new FileInfo_1.FileInfo(name);
      file.size = parseInt(groups[18], 10);
      file.user = groups[16];
      file.group = groups[17];
      file.hardLinkCount = parseInt(groups[15], 10);
      file.rawModifiedAt = groups[19] + " " + groups[20];
      file.permissions = {
        user: parseMode(groups[4], groups[5], groups[6]),
        group: parseMode(groups[8], groups[9], groups[10]),
        world: parseMode(groups[12], groups[13], groups[14])
      };
      switch (groups[1].charAt(0)) {
        case "d":
          file.type = FileInfo_1.FileType.Directory;
          break;
        case "e":
          file.type = FileInfo_1.FileType.SymbolicLink;
          break;
        case "l":
          file.type = FileInfo_1.FileType.SymbolicLink;
          break;
        case "b":
        case "c":
          file.type = FileInfo_1.FileType.File;
          break;
        case "f":
        case "-":
          file.type = FileInfo_1.FileType.File;
          break;
        default:
          file.type = FileInfo_1.FileType.Unknown;
      }
      if (file.isSymbolicLink) {
        const end = name.indexOf(" -> ");
        if (end !== -1) {
          file.name = name.substring(0, end);
          file.link = name.substring(end + 4);
        }
      }
      return file;
    }
    __name(parseLine, "parseLine");
    exports2.parseLine = parseLine;
    function transformList(files) {
      return files;
    }
    __name(transformList, "transformList");
    exports2.transformList = transformList;
    function parseMode(r3, w3, x3) {
      let value = 0;
      if (r3 !== "-") {
        value += FileInfo_1.FileInfo.UnixPermission.Read;
      }
      if (w3 !== "-") {
        value += FileInfo_1.FileInfo.UnixPermission.Write;
      }
      const execToken = x3.charAt(0);
      if (execToken !== "-" && execToken.toUpperCase() !== execToken) {
        value += FileInfo_1.FileInfo.UnixPermission.Execute;
      }
      return value;
    }
    __name(parseMode, "parseMode");
  }
});

// ../../node_modules/basic-ftp/dist/parseListMLSD.js
var require_parseListMLSD = __commonJS({
  "../../node_modules/basic-ftp/dist/parseListMLSD.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.parseMLSxDate = exports2.transformList = exports2.parseLine = exports2.testLine = void 0;
    var FileInfo_1 = require_FileInfo();
    function parseSize(value, info2) {
      info2.size = parseInt(value, 10);
    }
    __name(parseSize, "parseSize");
    var factHandlersByName = {
      "size": parseSize,
      // File size
      "sizd": parseSize,
      // Directory size
      "unique": /* @__PURE__ */ __name((value, info2) => {
        info2.uniqueID = value;
      }, "unique"),
      "modify": /* @__PURE__ */ __name((value, info2) => {
        info2.modifiedAt = parseMLSxDate(value);
        info2.rawModifiedAt = info2.modifiedAt.toISOString();
      }, "modify"),
      "type": /* @__PURE__ */ __name((value, info2) => {
        if (value.startsWith("OS.unix=slink")) {
          info2.type = FileInfo_1.FileType.SymbolicLink;
          info2.link = value.substr(value.indexOf(":") + 1);
          return 1;
        }
        switch (value) {
          case "file":
            info2.type = FileInfo_1.FileType.File;
            break;
          case "dir":
            info2.type = FileInfo_1.FileType.Directory;
            break;
          case "OS.unix=symlink":
            info2.type = FileInfo_1.FileType.SymbolicLink;
            break;
          case "cdir":
          // Current directory being listed
          case "pdir":
            return 2;
          // Don't include these entries in the listing
          default:
            info2.type = FileInfo_1.FileType.Unknown;
        }
        return 1;
      }, "type"),
      "unix.mode": /* @__PURE__ */ __name((value, info2) => {
        const digits = value.substr(-3);
        info2.permissions = {
          user: parseInt(digits[0], 10),
          group: parseInt(digits[1], 10),
          world: parseInt(digits[2], 10)
        };
      }, "unix.mode"),
      "unix.ownername": /* @__PURE__ */ __name((value, info2) => {
        info2.user = value;
      }, "unix.ownername"),
      "unix.owner": /* @__PURE__ */ __name((value, info2) => {
        if (info2.user === void 0)
          info2.user = value;
      }, "unix.owner"),
      get "unix.uid"() {
        return this["unix.owner"];
      },
      "unix.groupname": /* @__PURE__ */ __name((value, info2) => {
        info2.group = value;
      }, "unix.groupname"),
      "unix.group": /* @__PURE__ */ __name((value, info2) => {
        if (info2.group === void 0)
          info2.group = value;
      }, "unix.group"),
      get "unix.gid"() {
        return this["unix.group"];
      }
      // Regarding the fact "perm":
      // We don't handle permission information stored in "perm" because its information is conceptually
      // different from what users of FTP clients usually associate with "permissions". Those that have
      // some expectations (and probably want to edit them with a SITE command) often unknowingly expect
      // the Unix permission system. The information passed by "perm" describes what FTP commands can be
      // executed with a file/directory. But even this can be either incomplete or just meant as a "guide"
      // as the spec mentions. From https://tools.ietf.org/html/rfc3659#section-7.5.5: "The permissions are
      // described here as they apply to FTP commands. They may not map easily into particular permissions
      // available on the server's operating system." The parser by Apache Commons tries to translate these
      // to Unix permissions – this is misleading users and might not even be correct.
    };
    function splitStringOnce(str, delimiter2) {
      const pos = str.indexOf(delimiter2);
      const a3 = str.substr(0, pos);
      const b3 = str.substr(pos + delimiter2.length);
      return [a3, b3];
    }
    __name(splitStringOnce, "splitStringOnce");
    function testLine(line) {
      return /^\S+=\S+;/.test(line) || line.startsWith(" ");
    }
    __name(testLine, "testLine");
    exports2.testLine = testLine;
    function parseLine(line) {
      const [packedFacts, name] = splitStringOnce(line, " ");
      if (name === "" || name === "." || name === "..") {
        return void 0;
      }
      const info2 = new FileInfo_1.FileInfo(name);
      const facts = packedFacts.split(";");
      for (const fact of facts) {
        const [factName, factValue] = splitStringOnce(fact, "=");
        if (!factValue) {
          continue;
        }
        const factHandler = factHandlersByName[factName.toLowerCase()];
        if (!factHandler) {
          continue;
        }
        const result2 = factHandler(factValue, info2);
        if (result2 === 2) {
          return void 0;
        }
      }
      return info2;
    }
    __name(parseLine, "parseLine");
    exports2.parseLine = parseLine;
    function transformList(files) {
      const nonLinksByID = /* @__PURE__ */ new Map();
      for (const file of files) {
        if (!file.isSymbolicLink && file.uniqueID !== void 0) {
          nonLinksByID.set(file.uniqueID, file);
        }
      }
      const resolvedFiles = [];
      for (const file of files) {
        if (file.isSymbolicLink && file.uniqueID !== void 0 && file.link === void 0) {
          const target = nonLinksByID.get(file.uniqueID);
          if (target !== void 0) {
            file.link = target.name;
          }
        }
        const isPartOfDirectory = !file.name.includes("/");
        if (isPartOfDirectory) {
          resolvedFiles.push(file);
        }
      }
      return resolvedFiles;
    }
    __name(transformList, "transformList");
    exports2.transformList = transformList;
    function parseMLSxDate(fact) {
      return new Date(Date.UTC(
        +fact.slice(0, 4),
        // Year
        +fact.slice(4, 6) - 1,
        // Month
        +fact.slice(6, 8),
        // Date
        +fact.slice(8, 10),
        // Hours
        +fact.slice(10, 12),
        // Minutes
        +fact.slice(12, 14),
        // Seconds
        +fact.slice(15, 18)
        // Milliseconds
      ));
    }
    __name(parseMLSxDate, "parseMLSxDate");
    exports2.parseMLSxDate = parseMLSxDate;
  }
});

// ../../node_modules/basic-ftp/dist/parseList.js
var require_parseList = __commonJS({
  "../../node_modules/basic-ftp/dist/parseList.js"(exports2) {
    "use strict";
    var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      var desc = Object.getOwnPropertyDescriptor(m3, k3);
      if (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) {
        desc = { enumerable: true, get: /* @__PURE__ */ __name(function() {
          return m3[k3];
        }, "get") };
      }
      Object.defineProperty(o3, k22, desc);
    }) : (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      o3[k22] = m3[k3];
    }));
    var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? (function(o3, v6) {
      Object.defineProperty(o3, "default", { enumerable: true, value: v6 });
    }) : function(o3, v6) {
      o3["default"] = v6;
    });
    var __importStar2 = exports2 && exports2.__importStar || function(mod) {
      if (mod && mod.__esModule) return mod;
      var result2 = {};
      if (mod != null) {
        for (var k3 in mod) if (k3 !== "default" && Object.prototype.hasOwnProperty.call(mod, k3)) __createBinding3(result2, mod, k3);
      }
      __setModuleDefault2(result2, mod);
      return result2;
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.parseList = void 0;
    var dosParser = __importStar2(require_parseListDOS());
    var unixParser = __importStar2(require_parseListUnix());
    var mlsdParser = __importStar2(require_parseListMLSD());
    var availableParsers = [
      dosParser,
      unixParser,
      mlsdParser
      // Keep MLSD last, may accept filename only
    ];
    function firstCompatibleParser(line, parsers) {
      return parsers.find((parser) => parser.testLine(line) === true);
    }
    __name(firstCompatibleParser, "firstCompatibleParser");
    function isNotBlank(str) {
      return str.trim() !== "";
    }
    __name(isNotBlank, "isNotBlank");
    function isNotMeta(str) {
      return !str.startsWith("total");
    }
    __name(isNotMeta, "isNotMeta");
    var REGEX_NEWLINE = /\r?\n/;
    function parseList(rawList) {
      const lines = rawList.split(REGEX_NEWLINE).filter(isNotBlank).filter(isNotMeta);
      if (lines.length === 0) {
        return [];
      }
      const testLine = lines[lines.length - 1];
      const parser = firstCompatibleParser(testLine, availableParsers);
      if (!parser) {
        throw new Error("This library only supports MLSD, Unix- or DOS-style directory listing. Your FTP server seems to be using another format. You can see the transmitted listing when setting `client.ftp.verbose = true`. You can then provide a custom parser to `client.parseList`, see the documentation for details.");
      }
      const files = lines.map(parser.parseLine).filter((info2) => info2 !== void 0);
      return parser.transformList(files);
    }
    __name(parseList, "parseList");
    exports2.parseList = parseList;
  }
});

// ../../node_modules/basic-ftp/dist/ProgressTracker.js
var require_ProgressTracker = __commonJS({
  "../../node_modules/basic-ftp/dist/ProgressTracker.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.ProgressTracker = void 0;
    var ProgressTracker = class {
      static {
        __name(this, "ProgressTracker");
      }
      constructor() {
        this.bytesOverall = 0;
        this.intervalMs = 500;
        this.onStop = noop;
        this.onHandle = noop;
      }
      /**
       * Register a new handler for progress info. Use `undefined` to disable reporting.
       */
      reportTo(onHandle = noop) {
        this.onHandle = onHandle;
      }
      /**
       * Start tracking transfer progress of a socket.
       *
       * @param socket  The socket to observe.
       * @param name  A name associated with this progress tracking, e.g. a filename.
       * @param type  The type of the transfer, typically "upload" or "download".
       */
      start(socket, name, type) {
        let lastBytes = 0;
        this.onStop = poll(this.intervalMs, () => {
          const bytes = socket.bytesRead + socket.bytesWritten;
          this.bytesOverall += bytes - lastBytes;
          lastBytes = bytes;
          this.onHandle({
            name,
            type,
            bytes,
            bytesOverall: this.bytesOverall
          });
        });
      }
      /**
       * Stop tracking transfer progress.
       */
      stop() {
        this.onStop(false);
      }
      /**
       * Call the progress handler one more time, then stop tracking.
       */
      updateAndStop() {
        this.onStop(true);
      }
    };
    exports2.ProgressTracker = ProgressTracker;
    function poll(intervalMs, updateFunc) {
      const id = setInterval(updateFunc, intervalMs);
      const stopFunc = /* @__PURE__ */ __name((stopWithUpdate) => {
        clearInterval(id);
        if (stopWithUpdate) {
          updateFunc();
        }
        updateFunc = noop;
      }, "stopFunc");
      updateFunc();
      return stopFunc;
    }
    __name(poll, "poll");
    function noop() {
    }
    __name(noop, "noop");
  }
});

// ../../node_modules/basic-ftp/dist/StringWriter.js
var require_StringWriter = __commonJS({
  "../../node_modules/basic-ftp/dist/StringWriter.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.StringWriter = void 0;
    var stream_1 = require("stream");
    var StringWriter = class extends stream_1.Writable {
      static {
        __name(this, "StringWriter");
      }
      constructor() {
        super(...arguments);
        this.buf = Buffer.alloc(0);
      }
      _write(chunk, _3, callback) {
        if (chunk instanceof Buffer) {
          this.buf = Buffer.concat([this.buf, chunk]);
          callback(null);
        } else {
          callback(new Error("StringWriter expects chunks of type 'Buffer'."));
        }
      }
      getText(encoding) {
        return this.buf.toString(encoding);
      }
    };
    exports2.StringWriter = StringWriter;
  }
});

// ../../node_modules/basic-ftp/dist/netUtils.js
var require_netUtils = __commonJS({
  "../../node_modules/basic-ftp/dist/netUtils.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.ipIsPrivateV4Address = exports2.upgradeSocket = exports2.describeAddress = exports2.describeTLS = void 0;
    var tls_1 = require("tls");
    function describeTLS(socket) {
      if (socket instanceof tls_1.TLSSocket) {
        const protocol = socket.getProtocol();
        return protocol ? protocol : "Server socket or disconnected client socket";
      }
      return "No encryption";
    }
    __name(describeTLS, "describeTLS");
    exports2.describeTLS = describeTLS;
    function describeAddress(socket) {
      if (socket.remoteFamily === "IPv6") {
        return `[${socket.remoteAddress}]:${socket.remotePort}`;
      }
      return `${socket.remoteAddress}:${socket.remotePort}`;
    }
    __name(describeAddress, "describeAddress");
    exports2.describeAddress = describeAddress;
    function upgradeSocket(socket, options) {
      return new Promise((resolve13, reject) => {
        const tlsOptions = Object.assign({}, options, {
          socket
        });
        const tlsSocket = (0, tls_1.connect)(tlsOptions, () => {
          const expectCertificate = tlsOptions.rejectUnauthorized !== false;
          if (expectCertificate && !tlsSocket.authorized) {
            reject(tlsSocket.authorizationError);
          } else {
            tlsSocket.removeAllListeners("error");
            resolve13(tlsSocket);
          }
        }).once("error", (error5) => {
          reject(error5);
        });
      });
    }
    __name(upgradeSocket, "upgradeSocket");
    exports2.upgradeSocket = upgradeSocket;
    function ipIsPrivateV4Address(ip = "") {
      if (ip.startsWith("::ffff:")) {
        ip = ip.substr(7);
      }
      const octets = ip.split(".").map((o3) => parseInt(o3, 10));
      return octets[0] === 10 || octets[0] === 172 && octets[1] >= 16 && octets[1] <= 31 || octets[0] === 192 && octets[1] === 168 || ip === "127.0.0.1";
    }
    __name(ipIsPrivateV4Address, "ipIsPrivateV4Address");
    exports2.ipIsPrivateV4Address = ipIsPrivateV4Address;
  }
});

// ../../node_modules/basic-ftp/dist/transfer.js
var require_transfer = __commonJS({
  "../../node_modules/basic-ftp/dist/transfer.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.downloadTo = exports2.uploadFrom = exports2.connectForPassiveTransfer = exports2.parsePasvResponse = exports2.enterPassiveModeIPv4 = exports2.parseEpsvResponse = exports2.enterPassiveModeIPv6 = void 0;
    var netUtils_1 = require_netUtils();
    var stream_1 = require("stream");
    var tls_1 = require("tls");
    var parseControlResponse_1 = require_parseControlResponse();
    async function enterPassiveModeIPv6(ftp) {
      const res = await ftp.request("EPSV");
      const port = parseEpsvResponse(res.message);
      if (!port) {
        throw new Error("Can't parse EPSV response: " + res.message);
      }
      const controlHost = ftp.socket.remoteAddress;
      if (controlHost === void 0) {
        throw new Error("Control socket is disconnected, can't get remote address.");
      }
      await connectForPassiveTransfer(controlHost, port, ftp);
      return res;
    }
    __name(enterPassiveModeIPv6, "enterPassiveModeIPv6");
    exports2.enterPassiveModeIPv6 = enterPassiveModeIPv6;
    function parseEpsvResponse(message2) {
      const groups = message2.match(/[|!]{3}(.+)[|!]/);
      if (groups === null || groups[1] === void 0) {
        throw new Error(`Can't parse response to 'EPSV': ${message2}`);
      }
      const port = parseInt(groups[1], 10);
      if (Number.isNaN(port)) {
        throw new Error(`Can't parse response to 'EPSV', port is not a number: ${message2}`);
      }
      return port;
    }
    __name(parseEpsvResponse, "parseEpsvResponse");
    exports2.parseEpsvResponse = parseEpsvResponse;
    async function enterPassiveModeIPv4(ftp) {
      const res = await ftp.request("PASV");
      const target = parsePasvResponse(res.message);
      if (!target) {
        throw new Error("Can't parse PASV response: " + res.message);
      }
      const controlHost = ftp.socket.remoteAddress;
      if ((0, netUtils_1.ipIsPrivateV4Address)(target.host) && controlHost && !(0, netUtils_1.ipIsPrivateV4Address)(controlHost)) {
        target.host = controlHost;
      }
      await connectForPassiveTransfer(target.host, target.port, ftp);
      return res;
    }
    __name(enterPassiveModeIPv4, "enterPassiveModeIPv4");
    exports2.enterPassiveModeIPv4 = enterPassiveModeIPv4;
    function parsePasvResponse(message2) {
      const groups = message2.match(/([-\d]+,[-\d]+,[-\d]+,[-\d]+),([-\d]+),([-\d]+)/);
      if (groups === null || groups.length !== 4) {
        throw new Error(`Can't parse response to 'PASV': ${message2}`);
      }
      return {
        host: groups[1].replace(/,/g, "."),
        port: (parseInt(groups[2], 10) & 255) * 256 + (parseInt(groups[3], 10) & 255)
      };
    }
    __name(parsePasvResponse, "parsePasvResponse");
    exports2.parsePasvResponse = parsePasvResponse;
    function connectForPassiveTransfer(host, port, ftp) {
      return new Promise((resolve13, reject) => {
        let socket = ftp._newSocket();
        const handleConnErr = /* @__PURE__ */ __name(function(err) {
          err.message = "Can't open data connection in passive mode: " + err.message;
          reject(err);
        }, "handleConnErr");
        const handleTimeout = /* @__PURE__ */ __name(function() {
          socket.destroy();
          reject(new Error(`Timeout when trying to open data connection to ${host}:${port}`));
        }, "handleTimeout");
        socket.setTimeout(ftp.timeout);
        socket.on("error", handleConnErr);
        socket.on("timeout", handleTimeout);
        socket.connect({ port, host, family: ftp.ipFamily }, () => {
          if (ftp.socket instanceof tls_1.TLSSocket) {
            socket = (0, tls_1.connect)(Object.assign({}, ftp.tlsOptions, {
              socket,
              // Reuse the TLS session negotiated earlier when the control connection
              // was upgraded. Servers expect this because it provides additional
              // security: If a completely new session would be negotiated, a hacker
              // could guess the port and connect to the new data connection before we do
              // by just starting his/her own TLS session.
              session: ftp.socket.getSession()
            }));
          }
          socket.removeListener("error", handleConnErr);
          socket.removeListener("timeout", handleTimeout);
          ftp.dataSocket = socket;
          resolve13();
        });
      });
    }
    __name(connectForPassiveTransfer, "connectForPassiveTransfer");
    exports2.connectForPassiveTransfer = connectForPassiveTransfer;
    var TransferResolver = class {
      static {
        __name(this, "TransferResolver");
      }
      /**
       * Instantiate a TransferResolver
       */
      constructor(ftp, progress) {
        this.ftp = ftp;
        this.progress = progress;
        this.response = void 0;
        this.dataTransferDone = false;
      }
      /**
       * Mark the beginning of a transfer.
       *
       * @param name - Name of the transfer, usually the filename.
       * @param type - Type of transfer, usually "upload" or "download".
       */
      onDataStart(name, type) {
        if (this.ftp.dataSocket === void 0) {
          throw new Error("Data transfer should start but there is no data connection.");
        }
        this.ftp.socket.setTimeout(0);
        this.ftp.dataSocket.setTimeout(this.ftp.timeout);
        this.progress.start(this.ftp.dataSocket, name, type);
      }
      /**
       * The data connection has finished the transfer.
       */
      onDataDone(task) {
        this.progress.updateAndStop();
        this.ftp.socket.setTimeout(this.ftp.timeout);
        if (this.ftp.dataSocket) {
          this.ftp.dataSocket.setTimeout(0);
        }
        this.dataTransferDone = true;
        this.tryResolve(task);
      }
      /**
       * The control connection reports the transfer as finished.
       */
      onControlDone(task, response) {
        this.response = response;
        this.tryResolve(task);
      }
      /**
       * An error has been reported and the task should be rejected.
       */
      onError(task, err) {
        this.progress.updateAndStop();
        this.ftp.socket.setTimeout(this.ftp.timeout);
        this.ftp.dataSocket = void 0;
        task.reject(err);
      }
      /**
       * Control connection sent an unexpected request requiring a response from our part. We
       * can't provide that (because unknown) and have to close the contrext with an error because
       * the FTP server is now caught up in a state we can't resolve.
       */
      onUnexpectedRequest(response) {
        const err = new Error(`Unexpected FTP response is requesting an answer: ${response.message}`);
        this.ftp.closeWithError(err);
      }
      tryResolve(task) {
        const canResolve = this.dataTransferDone && this.response !== void 0;
        if (canResolve) {
          this.ftp.dataSocket = void 0;
          task.resolve(this.response);
        }
      }
    };
    function uploadFrom(source, config) {
      const resolver = new TransferResolver(config.ftp, config.tracker);
      const fullCommand = `${config.command} ${config.remotePath}`;
      return config.ftp.handle(fullCommand, (res, task) => {
        if (res instanceof Error) {
          resolver.onError(task, res);
        } else if (res.code === 150 || res.code === 125) {
          const dataSocket = config.ftp.dataSocket;
          if (!dataSocket) {
            resolver.onError(task, new Error("Upload should begin but no data connection is available."));
            return;
          }
          const canUpload = "getCipher" in dataSocket ? dataSocket.getCipher() !== void 0 : true;
          onConditionOrEvent(canUpload, dataSocket, "secureConnect", () => {
            config.ftp.log(`Uploading to ${(0, netUtils_1.describeAddress)(dataSocket)} (${(0, netUtils_1.describeTLS)(dataSocket)})`);
            resolver.onDataStart(config.remotePath, config.type);
            (0, stream_1.pipeline)(source, dataSocket, (err) => {
              if (err) {
                resolver.onError(task, err);
              } else {
                resolver.onDataDone(task);
              }
            });
          });
        } else if ((0, parseControlResponse_1.positiveCompletion)(res.code)) {
          resolver.onControlDone(task, res);
        } else if ((0, parseControlResponse_1.positiveIntermediate)(res.code)) {
          resolver.onUnexpectedRequest(res);
        }
      });
    }
    __name(uploadFrom, "uploadFrom");
    exports2.uploadFrom = uploadFrom;
    function downloadTo(destination, config) {
      if (!config.ftp.dataSocket) {
        throw new Error("Download will be initiated but no data connection is available.");
      }
      const resolver = new TransferResolver(config.ftp, config.tracker);
      return config.ftp.handle(config.command, (res, task) => {
        if (res instanceof Error) {
          resolver.onError(task, res);
        } else if (res.code === 150 || res.code === 125) {
          const dataSocket = config.ftp.dataSocket;
          if (!dataSocket) {
            resolver.onError(task, new Error("Download should begin but no data connection is available."));
            return;
          }
          config.ftp.log(`Downloading from ${(0, netUtils_1.describeAddress)(dataSocket)} (${(0, netUtils_1.describeTLS)(dataSocket)})`);
          resolver.onDataStart(config.remotePath, config.type);
          (0, stream_1.pipeline)(dataSocket, destination, (err) => {
            if (err) {
              resolver.onError(task, err);
            } else {
              resolver.onDataDone(task);
            }
          });
        } else if (res.code === 350) {
          config.ftp.send("RETR " + config.remotePath);
        } else if ((0, parseControlResponse_1.positiveCompletion)(res.code)) {
          resolver.onControlDone(task, res);
        } else if ((0, parseControlResponse_1.positiveIntermediate)(res.code)) {
          resolver.onUnexpectedRequest(res);
        }
      });
    }
    __name(downloadTo, "downloadTo");
    exports2.downloadTo = downloadTo;
    function onConditionOrEvent(condition, emitter, eventName, action) {
      if (condition === true) {
        action();
      } else {
        emitter.once(eventName, () => action());
      }
    }
    __name(onConditionOrEvent, "onConditionOrEvent");
  }
});

// ../../node_modules/basic-ftp/dist/Client.js
var require_Client = __commonJS({
  "../../node_modules/basic-ftp/dist/Client.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.Client = void 0;
    var fs_1 = require("fs");
    var path_1 = require("path");
    var tls_1 = require("tls");
    var util_1 = require("util");
    var FtpContext_1 = require_FtpContext();
    var parseList_1 = require_parseList();
    var ProgressTracker_1 = require_ProgressTracker();
    var StringWriter_1 = require_StringWriter();
    var parseListMLSD_1 = require_parseListMLSD();
    var netUtils_1 = require_netUtils();
    var transfer_1 = require_transfer();
    var parseControlResponse_1 = require_parseControlResponse();
    var fsReadDir = (0, util_1.promisify)(fs_1.readdir);
    var fsMkDir = (0, util_1.promisify)(fs_1.mkdir);
    var fsStat = (0, util_1.promisify)(fs_1.stat);
    var fsOpen = (0, util_1.promisify)(fs_1.open);
    var fsClose = (0, util_1.promisify)(fs_1.close);
    var fsUnlink = (0, util_1.promisify)(fs_1.unlink);
    var LIST_COMMANDS_DEFAULT = /* @__PURE__ */ __name(() => ["LIST -a", "LIST"], "LIST_COMMANDS_DEFAULT");
    var LIST_COMMANDS_MLSD = /* @__PURE__ */ __name(() => ["MLSD", "LIST -a", "LIST"], "LIST_COMMANDS_MLSD");
    var Client = class {
      static {
        __name(this, "Client");
      }
      /**
       * Instantiate an FTP client.
       *
       * @param timeout  Timeout in milliseconds, use 0 for no timeout. Optional, default is 30 seconds.
       */
      constructor(timeout = 3e4) {
        this.availableListCommands = LIST_COMMANDS_DEFAULT();
        this.ftp = new FtpContext_1.FTPContext(timeout);
        this.prepareTransfer = this._enterFirstCompatibleMode([transfer_1.enterPassiveModeIPv6, transfer_1.enterPassiveModeIPv4]);
        this.parseList = parseList_1.parseList;
        this._progressTracker = new ProgressTracker_1.ProgressTracker();
      }
      /**
       * Close the client and all open socket connections.
       *
       * Close the client and all open socket connections. The client can’t be used anymore after calling this method,
       * you have to either reconnect with `access` or `connect` or instantiate a new instance to continue any work.
       * A client is also closed automatically if any timeout or connection error occurs.
       */
      close() {
        this.ftp.close();
        this._progressTracker.stop();
      }
      /**
       * Returns true if the client is closed and can't be used anymore.
       */
      get closed() {
        return this.ftp.closed;
      }
      /**
       * Connect (or reconnect) to an FTP server.
       *
       * This is an instance method and thus can be called multiple times during the lifecycle of a `Client`
       * instance. Whenever you do, the client is reset with a new control connection. This also implies that
       * you can reopen a `Client` instance that has been closed due to an error when reconnecting with this
       * method. In fact, reconnecting is the only way to continue using a closed `Client`.
       *
       * @param host  Host the client should connect to. Optional, default is "localhost".
       * @param port  Port the client should connect to. Optional, default is 21.
       */
      connect(host = "localhost", port = 21) {
        this.ftp.reset();
        this.ftp.socket.connect({
          host,
          port,
          family: this.ftp.ipFamily
        }, () => this.ftp.log(`Connected to ${(0, netUtils_1.describeAddress)(this.ftp.socket)} (${(0, netUtils_1.describeTLS)(this.ftp.socket)})`));
        return this._handleConnectResponse();
      }
      /**
       * As `connect` but using implicit TLS. Implicit TLS is not an FTP standard and has been replaced by
       * explicit TLS. There are still FTP servers that support only implicit TLS, though.
       */
      connectImplicitTLS(host = "localhost", port = 21, tlsOptions = {}) {
        this.ftp.reset();
        this.ftp.socket = (0, tls_1.connect)(port, host, tlsOptions, () => this.ftp.log(`Connected to ${(0, netUtils_1.describeAddress)(this.ftp.socket)} (${(0, netUtils_1.describeTLS)(this.ftp.socket)})`));
        this.ftp.tlsOptions = tlsOptions;
        return this._handleConnectResponse();
      }
      /**
       * Handles the first reponse by an FTP server after the socket connection has been established.
       */
      _handleConnectResponse() {
        return this.ftp.handle(void 0, (res, task) => {
          if (res instanceof Error) {
            task.reject(res);
          } else if ((0, parseControlResponse_1.positiveCompletion)(res.code)) {
            task.resolve(res);
          } else {
            task.reject(new FtpContext_1.FTPError(res));
          }
        });
      }
      /**
       * Send an FTP command and handle the first response.
       */
      send(command2, ignoreErrorCodesDEPRECATED = false) {
        if (ignoreErrorCodesDEPRECATED) {
          this.ftp.log("Deprecated call using send(command, flag) with boolean flag to ignore errors. Use sendIgnoringError(command).");
          return this.sendIgnoringError(command2);
        }
        return this.ftp.request(command2);
      }
      /**
       * Send an FTP command and ignore an FTP error response. Any other kind of error or timeout will still reject the Promise.
       *
       * @param command
       */
      sendIgnoringError(command2) {
        return this.ftp.handle(command2, (res, task) => {
          if (res instanceof FtpContext_1.FTPError) {
            task.resolve({ code: res.code, message: res.message });
          } else if (res instanceof Error) {
            task.reject(res);
          } else {
            task.resolve(res);
          }
        });
      }
      /**
       * Upgrade the current socket connection to TLS.
       *
       * @param options  TLS options as in `tls.connect(options)`, optional.
       * @param command  Set the authentication command. Optional, default is "AUTH TLS".
       */
      async useTLS(options = {}, command2 = "AUTH TLS") {
        const ret = await this.send(command2);
        this.ftp.socket = await (0, netUtils_1.upgradeSocket)(this.ftp.socket, options);
        this.ftp.tlsOptions = options;
        this.ftp.log(`Control socket is using: ${(0, netUtils_1.describeTLS)(this.ftp.socket)}`);
        return ret;
      }
      /**
       * Login a user with a password.
       *
       * @param user  Username to use for login. Optional, default is "anonymous".
       * @param password  Password to use for login. Optional, default is "guest".
       */
      login(user = "anonymous", password = "guest") {
        this.ftp.log(`Login security: ${(0, netUtils_1.describeTLS)(this.ftp.socket)}`);
        return this.ftp.handle("USER " + user, (res, task) => {
          if (res instanceof Error) {
            task.reject(res);
          } else if ((0, parseControlResponse_1.positiveCompletion)(res.code)) {
            task.resolve(res);
          } else if (res.code === 331) {
            this.ftp.send("PASS " + password);
          } else {
            task.reject(new FtpContext_1.FTPError(res));
          }
        });
      }
      /**
       * Set the usual default settings.
       *
       * Settings used:
       * * Binary mode (TYPE I)
       * * File structure (STRU F)
       * * Additional settings for FTPS (PBSZ 0, PROT P)
       */
      async useDefaultSettings() {
        const features = await this.features();
        const supportsMLSD = features.has("MLST");
        this.availableListCommands = supportsMLSD ? LIST_COMMANDS_MLSD() : LIST_COMMANDS_DEFAULT();
        await this.send("TYPE I");
        await this.sendIgnoringError("STRU F");
        await this.sendIgnoringError("OPTS UTF8 ON");
        if (supportsMLSD) {
          await this.sendIgnoringError("OPTS MLST type;size;modify;unique;unix.mode;unix.owner;unix.group;unix.ownername;unix.groupname;");
        }
        if (this.ftp.hasTLS) {
          await this.sendIgnoringError("PBSZ 0");
          await this.sendIgnoringError("PROT P");
        }
      }
      /**
       * Convenience method that calls `connect`, `useTLS`, `login` and `useDefaultSettings`.
       *
       * This is an instance method and thus can be called multiple times during the lifecycle of a `Client`
       * instance. Whenever you do, the client is reset with a new control connection. This also implies that
       * you can reopen a `Client` instance that has been closed due to an error when reconnecting with this
       * method. In fact, reconnecting is the only way to continue using a closed `Client`.
       */
      async access(options = {}) {
        var _a2, _b;
        const useExplicitTLS = options.secure === true;
        const useImplicitTLS = options.secure === "implicit";
        let welcome;
        if (useImplicitTLS) {
          welcome = await this.connectImplicitTLS(options.host, options.port, options.secureOptions);
        } else {
          welcome = await this.connect(options.host, options.port);
        }
        if (useExplicitTLS) {
          const secureOptions = (_a2 = options.secureOptions) !== null && _a2 !== void 0 ? _a2 : {};
          secureOptions.host = (_b = secureOptions.host) !== null && _b !== void 0 ? _b : options.host;
          await this.useTLS(secureOptions);
        }
        await this.sendIgnoringError("OPTS UTF8 ON");
        await this.login(options.user, options.password);
        await this.useDefaultSettings();
        return welcome;
      }
      /**
       * Get the current working directory.
       */
      async pwd() {
        const res = await this.send("PWD");
        const parsed = res.message.match(/"(.+)"/);
        if (parsed === null || parsed[1] === void 0) {
          throw new Error(`Can't parse response to command 'PWD': ${res.message}`);
        }
        return parsed[1];
      }
      /**
       * Get a description of supported features.
       *
       * This sends the FEAT command and parses the result into a Map where keys correspond to available commands
       * and values hold further information. Be aware that your FTP servers might not support this
       * command in which case this method will not throw an exception but just return an empty Map.
       */
      async features() {
        const res = await this.sendIgnoringError("FEAT");
        const features = /* @__PURE__ */ new Map();
        if (res.code < 400 && (0, parseControlResponse_1.isMultiline)(res.message)) {
          res.message.split("\n").slice(1, -1).forEach((line) => {
            const entry = line.trim().split(" ");
            features.set(entry[0], entry[1] || "");
          });
        }
        return features;
      }
      /**
       * Set the working directory.
       */
      async cd(path38) {
        const validPath = await this.protectWhitespace(path38);
        return this.send("CWD " + validPath);
      }
      /**
       * Switch to the parent directory of the working directory.
       */
      async cdup() {
        return this.send("CDUP");
      }
      /**
       * Get the last modified time of a file. This is not supported by every FTP server, in which case
       * calling this method will throw an exception.
       */
      async lastMod(path38) {
        const validPath = await this.protectWhitespace(path38);
        const res = await this.send(`MDTM ${validPath}`);
        const date = res.message.slice(4);
        return (0, parseListMLSD_1.parseMLSxDate)(date);
      }
      /**
       * Get the size of a file.
       */
      async size(path38) {
        const validPath = await this.protectWhitespace(path38);
        const command2 = `SIZE ${validPath}`;
        const res = await this.send(command2);
        const size = parseInt(res.message.slice(4), 10);
        if (Number.isNaN(size)) {
          throw new Error(`Can't parse response to command '${command2}' as a numerical value: ${res.message}`);
        }
        return size;
      }
      /**
       * Rename a file.
       *
       * Depending on the FTP server this might also be used to move a file from one
       * directory to another by providing full paths.
       */
      async rename(srcPath, destPath) {
        const validSrc = await this.protectWhitespace(srcPath);
        const validDest = await this.protectWhitespace(destPath);
        await this.send("RNFR " + validSrc);
        return this.send("RNTO " + validDest);
      }
      /**
       * Remove a file from the current working directory.
       *
       * You can ignore FTP error return codes which won't throw an exception if e.g.
       * the file doesn't exist.
       */
      async remove(path38, ignoreErrorCodes = false) {
        const validPath = await this.protectWhitespace(path38);
        if (ignoreErrorCodes) {
          return this.sendIgnoringError(`DELE ${validPath}`);
        }
        return this.send(`DELE ${validPath}`);
      }
      /**
       * Report transfer progress for any upload or download to a given handler.
       *
       * This will also reset the overall transfer counter that can be used for multiple transfers. You can
       * also call the function without a handler to stop reporting to an earlier one.
       *
       * @param handler  Handler function to call on transfer progress.
       */
      trackProgress(handler) {
        this._progressTracker.bytesOverall = 0;
        this._progressTracker.reportTo(handler);
      }
      /**
       * Upload data from a readable stream or a local file to a remote file.
       *
       * @param source  Readable stream or path to a local file.
       * @param toRemotePath  Path to a remote file to write to.
       */
      async uploadFrom(source, toRemotePath, options = {}) {
        return this._uploadWithCommand(source, toRemotePath, "STOR", options);
      }
      /**
       * Upload data from a readable stream or a local file by appending it to an existing file. If the file doesn't
       * exist the FTP server should create it.
       *
       * @param source  Readable stream or path to a local file.
       * @param toRemotePath  Path to a remote file to write to.
       */
      async appendFrom(source, toRemotePath, options = {}) {
        return this._uploadWithCommand(source, toRemotePath, "APPE", options);
      }
      /**
       * @protected
       */
      async _uploadWithCommand(source, remotePath, command2, options) {
        if (typeof source === "string") {
          return this._uploadLocalFile(source, remotePath, command2, options);
        }
        return this._uploadFromStream(source, remotePath, command2);
      }
      /**
       * @protected
       */
      async _uploadLocalFile(localPath, remotePath, command2, options) {
        const fd = await fsOpen(localPath, "r");
        const source = (0, fs_1.createReadStream)("", {
          fd,
          start: options.localStart,
          end: options.localEndInclusive,
          autoClose: false
        });
        try {
          return await this._uploadFromStream(source, remotePath, command2);
        } finally {
          await ignoreError(() => fsClose(fd));
        }
      }
      /**
       * @protected
       */
      async _uploadFromStream(source, remotePath, command2) {
        const onError = /* @__PURE__ */ __name((err) => this.ftp.closeWithError(err), "onError");
        source.once("error", onError);
        try {
          const validPath = await this.protectWhitespace(remotePath);
          await this.prepareTransfer(this.ftp);
          return await (0, transfer_1.uploadFrom)(source, {
            ftp: this.ftp,
            tracker: this._progressTracker,
            command: command2,
            remotePath: validPath,
            type: "upload"
          });
        } finally {
          source.removeListener("error", onError);
        }
      }
      /**
       * Download a remote file and pipe its data to a writable stream or to a local file.
       *
       * You can optionally define at which position of the remote file you'd like to start
       * downloading. If the destination you provide is a file, the offset will be applied
       * to it as well. For example: To resume a failed download, you'd request the size of
       * the local, partially downloaded file and use that as the offset. Assuming the size
       * is 23, you'd download the rest using `downloadTo("local.txt", "remote.txt", 23)`.
       *
       * @param destination  Stream or path for a local file to write to.
       * @param fromRemotePath  Path of the remote file to read from.
       * @param startAt  Position within the remote file to start downloading at. If the destination is a file, this offset is also applied to it.
       */
      async downloadTo(destination, fromRemotePath, startAt = 0) {
        if (typeof destination === "string") {
          return this._downloadToFile(destination, fromRemotePath, startAt);
        }
        return this._downloadToStream(destination, fromRemotePath, startAt);
      }
      /**
       * @protected
       */
      async _downloadToFile(localPath, remotePath, startAt) {
        const appendingToLocalFile = startAt > 0;
        const fileSystemFlags = appendingToLocalFile ? "r+" : "w";
        const fd = await fsOpen(localPath, fileSystemFlags);
        const destination = (0, fs_1.createWriteStream)("", {
          fd,
          start: startAt,
          autoClose: false
        });
        try {
          return await this._downloadToStream(destination, remotePath, startAt);
        } catch (err) {
          const localFileStats = await ignoreError(() => fsStat(localPath));
          const hasDownloadedData = localFileStats && localFileStats.size > 0;
          const shouldRemoveLocalFile = !appendingToLocalFile && !hasDownloadedData;
          if (shouldRemoveLocalFile) {
            await ignoreError(() => fsUnlink(localPath));
          }
          throw err;
        } finally {
          await ignoreError(() => fsClose(fd));
        }
      }
      /**
       * @protected
       */
      async _downloadToStream(destination, remotePath, startAt) {
        const onError = /* @__PURE__ */ __name((err) => this.ftp.closeWithError(err), "onError");
        destination.once("error", onError);
        try {
          const validPath = await this.protectWhitespace(remotePath);
          await this.prepareTransfer(this.ftp);
          return await (0, transfer_1.downloadTo)(destination, {
            ftp: this.ftp,
            tracker: this._progressTracker,
            command: startAt > 0 ? `REST ${startAt}` : `RETR ${validPath}`,
            remotePath: validPath,
            type: "download"
          });
        } finally {
          destination.removeListener("error", onError);
          destination.end();
        }
      }
      /**
       * List files and directories in the current working directory, or from `path` if specified.
       *
       * @param [path]  Path to remote file or directory.
       */
      async list(path38 = "") {
        const validPath = await this.protectWhitespace(path38);
        let lastError;
        for (const candidate of this.availableListCommands) {
          const command2 = validPath === "" ? candidate : `${candidate} ${validPath}`;
          await this.prepareTransfer(this.ftp);
          try {
            const parsedList = await this._requestListWithCommand(command2);
            this.availableListCommands = [candidate];
            return parsedList;
          } catch (err) {
            const shouldTryNext = err instanceof FtpContext_1.FTPError;
            if (!shouldTryNext) {
              throw err;
            }
            lastError = err;
          }
        }
        throw lastError;
      }
      /**
       * @protected
       */
      async _requestListWithCommand(command2) {
        const buffer = new StringWriter_1.StringWriter();
        await (0, transfer_1.downloadTo)(buffer, {
          ftp: this.ftp,
          tracker: this._progressTracker,
          command: command2,
          remotePath: "",
          type: "list"
        });
        const text = buffer.getText(this.ftp.encoding);
        this.ftp.log(text);
        return this.parseList(text);
      }
      /**
       * Remove a directory and all of its content.
       *
       * @param remoteDirPath  The path of the remote directory to delete.
       * @example client.removeDir("foo") // Remove directory 'foo' using a relative path.
       * @example client.removeDir("foo/bar") // Remove directory 'bar' using a relative path.
       * @example client.removeDir("/foo/bar") // Remove directory 'bar' using an absolute path.
       * @example client.removeDir("/") // Remove everything.
       */
      async removeDir(remoteDirPath) {
        return this._exitAtCurrentDirectory(async () => {
          await this.cd(remoteDirPath);
          const absoluteDirPath = await this.pwd();
          await this.clearWorkingDir();
          const dirIsRoot = absoluteDirPath === "/";
          if (!dirIsRoot) {
            await this.cdup();
            await this.removeEmptyDir(absoluteDirPath);
          }
        });
      }
      /**
       * Remove all files and directories in the working directory without removing
       * the working directory itself.
       */
      async clearWorkingDir() {
        for (const file of await this.list()) {
          if (file.isDirectory) {
            await this.cd(file.name);
            await this.clearWorkingDir();
            await this.cdup();
            await this.removeEmptyDir(file.name);
          } else {
            await this.remove(file.name);
          }
        }
      }
      /**
       * Upload the contents of a local directory to the remote working directory.
       *
       * This will overwrite existing files with the same names and reuse existing directories.
       * Unrelated files and directories will remain untouched. You can optionally provide a `remoteDirPath`
       * to put the contents inside a directory which will be created if necessary including all
       * intermediate directories. If you did provide a remoteDirPath the working directory will stay
       * the same as before calling this method.
       *
       * @param localDirPath  Local path, e.g. "foo/bar" or "../test"
       * @param [remoteDirPath]  Remote path of a directory to upload to. Working directory if undefined.
       */
      async uploadFromDir(localDirPath, remoteDirPath) {
        return this._exitAtCurrentDirectory(async () => {
          if (remoteDirPath) {
            await this.ensureDir(remoteDirPath);
          }
          return await this._uploadToWorkingDir(localDirPath);
        });
      }
      /**
       * @protected
       */
      async _uploadToWorkingDir(localDirPath) {
        const files = await fsReadDir(localDirPath);
        for (const file of files) {
          const fullPath = (0, path_1.join)(localDirPath, file);
          const stats = await fsStat(fullPath);
          if (stats.isFile()) {
            await this.uploadFrom(fullPath, file);
          } else if (stats.isDirectory()) {
            await this._openDir(file);
            await this._uploadToWorkingDir(fullPath);
            await this.cdup();
          }
        }
      }
      /**
       * Download all files and directories of the working directory to a local directory.
       *
       * @param localDirPath  The local directory to download to.
       * @param remoteDirPath  Remote directory to download. Current working directory if not specified.
       */
      async downloadToDir(localDirPath, remoteDirPath) {
        return this._exitAtCurrentDirectory(async () => {
          if (remoteDirPath) {
            await this.cd(remoteDirPath);
          }
          return await this._downloadFromWorkingDir(localDirPath);
        });
      }
      /**
       * @protected
       */
      async _downloadFromWorkingDir(localDirPath) {
        await ensureLocalDirectory(localDirPath);
        for (const file of await this.list()) {
          const localPath = (0, path_1.join)(localDirPath, file.name);
          if (file.isDirectory) {
            await this.cd(file.name);
            await this._downloadFromWorkingDir(localPath);
            await this.cdup();
          } else if (file.isFile) {
            await this.downloadTo(localPath, file.name);
          }
        }
      }
      /**
       * Make sure a given remote path exists, creating all directories as necessary.
       * This function also changes the current working directory to the given path.
       */
      async ensureDir(remoteDirPath) {
        if (remoteDirPath.startsWith("/")) {
          await this.cd("/");
        }
        const names = remoteDirPath.split("/").filter((name) => name !== "");
        for (const name of names) {
          await this._openDir(name);
        }
      }
      /**
       * Try to create a directory and enter it. This will not raise an exception if the directory
       * couldn't be created if for example it already exists.
       * @protected
       */
      async _openDir(dirName) {
        await this.sendIgnoringError("MKD " + dirName);
        await this.cd(dirName);
      }
      /**
       * Remove an empty directory, will fail if not empty.
       */
      async removeEmptyDir(path38) {
        const validPath = await this.protectWhitespace(path38);
        return this.send(`RMD ${validPath}`);
      }
      /**
       * FTP servers can't handle filenames that have leading whitespace. This method transforms
       * a given path to fix that issue for most cases.
       */
      async protectWhitespace(path38) {
        if (!path38.startsWith(" ")) {
          return path38;
        }
        const pwd = await this.pwd();
        const absolutePathPrefix = pwd.endsWith("/") ? pwd : pwd + "/";
        return absolutePathPrefix + path38;
      }
      async _exitAtCurrentDirectory(func) {
        const userDir = await this.pwd();
        try {
          return await func();
        } finally {
          if (!this.closed) {
            await ignoreError(() => this.cd(userDir));
          }
        }
      }
      /**
       * Try all available transfer strategies and pick the first one that works. Update `client` to
       * use the working strategy for all successive transfer requests.
       *
       * @returns a function that will try the provided strategies.
       */
      _enterFirstCompatibleMode(strategies) {
        return async (ftp) => {
          ftp.log("Trying to find optimal transfer strategy...");
          let lastError = void 0;
          for (const strategy of strategies) {
            try {
              const res = await strategy(ftp);
              ftp.log("Optimal transfer strategy found.");
              this.prepareTransfer = strategy;
              return res;
            } catch (err) {
              lastError = err;
            }
          }
          throw new Error(`None of the available transfer strategies work. Last error response was '${lastError}'.`);
        };
      }
      /**
       * DEPRECATED, use `uploadFrom`.
       * @deprecated
       */
      async upload(source, toRemotePath, options = {}) {
        this.ftp.log("Warning: upload() has been deprecated, use uploadFrom().");
        return this.uploadFrom(source, toRemotePath, options);
      }
      /**
       * DEPRECATED, use `appendFrom`.
       * @deprecated
       */
      async append(source, toRemotePath, options = {}) {
        this.ftp.log("Warning: append() has been deprecated, use appendFrom().");
        return this.appendFrom(source, toRemotePath, options);
      }
      /**
       * DEPRECATED, use `downloadTo`.
       * @deprecated
       */
      async download(destination, fromRemotePath, startAt = 0) {
        this.ftp.log("Warning: download() has been deprecated, use downloadTo().");
        return this.downloadTo(destination, fromRemotePath, startAt);
      }
      /**
       * DEPRECATED, use `uploadFromDir`.
       * @deprecated
       */
      async uploadDir(localDirPath, remoteDirPath) {
        this.ftp.log("Warning: uploadDir() has been deprecated, use uploadFromDir().");
        return this.uploadFromDir(localDirPath, remoteDirPath);
      }
      /**
       * DEPRECATED, use `downloadToDir`.
       * @deprecated
       */
      async downloadDir(localDirPath) {
        this.ftp.log("Warning: downloadDir() has been deprecated, use downloadToDir().");
        return this.downloadToDir(localDirPath);
      }
    };
    exports2.Client = Client;
    async function ensureLocalDirectory(path38) {
      try {
        await fsStat(path38);
      } catch (err) {
        await fsMkDir(path38, { recursive: true });
      }
    }
    __name(ensureLocalDirectory, "ensureLocalDirectory");
    async function ignoreError(func) {
      try {
        return await func();
      } catch (err) {
        return void 0;
      }
    }
    __name(ignoreError, "ignoreError");
  }
});

// ../../node_modules/basic-ftp/dist/StringEncoding.js
var require_StringEncoding = __commonJS({
  "../../node_modules/basic-ftp/dist/StringEncoding.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
  }
});

// ../../node_modules/basic-ftp/dist/index.js
var require_dist7 = __commonJS({
  "../../node_modules/basic-ftp/dist/index.js"(exports2) {
    "use strict";
    var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      var desc = Object.getOwnPropertyDescriptor(m3, k3);
      if (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) {
        desc = { enumerable: true, get: /* @__PURE__ */ __name(function() {
          return m3[k3];
        }, "get") };
      }
      Object.defineProperty(o3, k22, desc);
    }) : (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      o3[k22] = m3[k3];
    }));
    var __exportStar3 = exports2 && exports2.__exportStar || function(m3, exports3) {
      for (var p3 in m3) if (p3 !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p3)) __createBinding3(exports3, m3, p3);
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.enterPassiveModeIPv6 = exports2.enterPassiveModeIPv4 = void 0;
    __exportStar3(require_Client(), exports2);
    __exportStar3(require_FtpContext(), exports2);
    __exportStar3(require_FileInfo(), exports2);
    __exportStar3(require_parseList(), exports2);
    __exportStar3(require_StringEncoding(), exports2);
    var transfer_1 = require_transfer();
    Object.defineProperty(exports2, "enterPassiveModeIPv4", { enumerable: true, get: /* @__PURE__ */ __name(function() {
      return transfer_1.enterPassiveModeIPv4;
    }, "get") });
    Object.defineProperty(exports2, "enterPassiveModeIPv6", { enumerable: true, get: /* @__PURE__ */ __name(function() {
      return transfer_1.enterPassiveModeIPv6;
    }, "get") });
  }
});

// ../../node_modules/get-uri/dist/ftp.js
var require_ftp = __commonJS({
  "../../node_modules/get-uri/dist/ftp.js"(exports2) {
    "use strict";
    var __importDefault2 = exports2 && exports2.__importDefault || function(mod) {
      return mod && mod.__esModule ? mod : { "default": mod };
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.ftp = void 0;
    var basic_ftp_1 = require_dist7();
    var stream_1 = require("stream");
    var path_1 = require("path");
    var debug_1 = __importDefault2(require_src2());
    var notfound_1 = __importDefault2(require_notfound());
    var notmodified_1 = __importDefault2(require_notmodified());
    var debug3 = (0, debug_1.default)("get-uri:ftp");
    var ftp = /* @__PURE__ */ __name(async (url, opts = {}) => {
      const { cache: cache3 } = opts;
      const filepath = decodeURIComponent(url.pathname);
      let lastModified;
      if (!filepath) {
        throw new TypeError('No "pathname"!');
      }
      const client = new basic_ftp_1.Client();
      try {
        const host = url.hostname || url.host || "localhost";
        const port = parseInt(url.port || "0", 10) || 21;
        const user = url.username ? decodeURIComponent(url.username) : void 0;
        const password = url.password ? decodeURIComponent(url.password) : void 0;
        await client.access({
          host,
          port,
          user,
          password,
          ...opts
        });
        try {
          lastModified = await client.lastMod(filepath);
        } catch (err) {
          if (err.code === 550) {
            throw new notfound_1.default();
          }
        }
        if (!lastModified) {
          const list2 = await client.list((0, path_1.dirname)(filepath));
          const name = (0, path_1.basename)(filepath);
          const entry = list2.find((e3) => e3.name === name);
          if (entry) {
            lastModified = entry.modifiedAt;
          }
        }
        if (lastModified) {
          if (isNotModified()) {
            throw new notmodified_1.default();
          }
        } else {
          throw new notfound_1.default();
        }
        const stream3 = new stream_1.PassThrough();
        const rs = stream3;
        client.downloadTo(stream3, filepath).then((result2) => {
          debug3(result2.message);
          client.close();
        });
        rs.lastModified = lastModified;
        return rs;
      } catch (err) {
        client.close();
        throw err;
      }
      function isNotModified() {
        if (cache3?.lastModified && lastModified) {
          return +cache3.lastModified === +lastModified;
        }
        return false;
      }
      __name(isNotModified, "isNotModified");
    }, "ftp");
    exports2.ftp = ftp;
  }
});

// ../../node_modules/get-uri/dist/http-error.js
var require_http_error = __commonJS({
  "../../node_modules/get-uri/dist/http-error.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    var http_1 = require("http");
    var HTTPError = class extends Error {
      static {
        __name(this, "HTTPError");
      }
      constructor(statusCode, message2 = http_1.STATUS_CODES[statusCode]) {
        super(message2);
        this.statusCode = statusCode;
        this.code = `E${String(message2).toUpperCase().replace(/\s+/g, "")}`;
      }
    };
    exports2.default = HTTPError;
  }
});

// ../../node_modules/get-uri/dist/http.js
var require_http = __commonJS({
  "../../node_modules/get-uri/dist/http.js"(exports2) {
    "use strict";
    var __importDefault2 = exports2 && exports2.__importDefault || function(mod) {
      return mod && mod.__esModule ? mod : { "default": mod };
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.http = void 0;
    var http_1 = __importDefault2(require("http"));
    var https_1 = __importDefault2(require("https"));
    var events_1 = require("events");
    var debug_1 = __importDefault2(require_src2());
    var http_error_1 = __importDefault2(require_http_error());
    var notfound_1 = __importDefault2(require_notfound());
    var notmodified_1 = __importDefault2(require_notmodified());
    var debug3 = (0, debug_1.default)("get-uri:http");
    var http = /* @__PURE__ */ __name(async (url, opts = {}) => {
      debug3("GET %o", url.href);
      const cache3 = getCache(url, opts.cache);
      if (cache3 && isFresh(cache3) && typeof cache3.statusCode === "number") {
        const type2 = cache3.statusCode / 100 | 0;
        if (type2 === 3 && cache3.headers.location) {
          debug3("cached redirect");
          throw new Error("TODO: implement cached redirects!");
        }
        throw new notmodified_1.default();
      }
      const maxRedirects = typeof opts.maxRedirects === "number" ? opts.maxRedirects : 5;
      debug3("allowing %o max redirects", maxRedirects);
      let mod;
      if (opts.http) {
        mod = opts.http;
        debug3("using secure `https` core module");
      } else {
        mod = http_1.default;
        debug3("using `http` core module");
      }
      const options = { ...opts };
      if (cache3) {
        if (!options.headers) {
          options.headers = {};
        }
        const lastModified = cache3.headers["last-modified"];
        if (lastModified) {
          options.headers["If-Modified-Since"] = lastModified;
          debug3('added "If-Modified-Since" request header: %o', lastModified);
        }
        const etag = cache3.headers.etag;
        if (etag) {
          options.headers["If-None-Match"] = etag;
          debug3('added "If-None-Match" request header: %o', etag);
        }
      }
      const req = mod.get(url, options);
      const [res] = await (0, events_1.once)(req, "response");
      const code = res.statusCode || 0;
      res.date = Date.now();
      res.parsed = url;
      debug3("got %o response status code", code);
      const type = code / 100 | 0;
      const location = res.headers.location;
      if (type === 3 && location) {
        if (!opts.redirects)
          opts.redirects = [];
        const redirects = opts.redirects;
        if (redirects.length < maxRedirects) {
          debug3('got a "redirect" status code with Location: %o', location);
          res.resume();
          redirects.push(res);
          const newUri = new URL(location, url.href);
          debug3("resolved redirect URL: %o", newUri.href);
          const left = maxRedirects - redirects.length;
          debug3("%o more redirects allowed after this one", left);
          if (newUri.protocol !== url.protocol) {
            opts.http = newUri.protocol === "https:" ? https_1.default : void 0;
          }
          return (0, exports2.http)(newUri, opts);
        }
      }
      if (type !== 2) {
        res.resume();
        if (code === 304) {
          throw new notmodified_1.default();
        } else if (code === 404) {
          throw new notfound_1.default();
        }
        throw new http_error_1.default(code);
      }
      if (opts.redirects) {
        res.redirects = opts.redirects;
      }
      return res;
    }, "http");
    exports2.http = http;
    function isFresh(cache3) {
      let fresh = false;
      let expires = parseInt(cache3.headers.expires || "", 10);
      const cacheControl = cache3.headers["cache-control"];
      if (cacheControl) {
        debug3("Cache-Control: %o", cacheControl);
        const parts = cacheControl.split(/,\s*?\b/);
        for (let i3 = 0; i3 < parts.length; i3++) {
          const part = parts[i3];
          const subparts = part.split("=");
          const name = subparts[0];
          switch (name) {
            case "max-age":
              expires = (cache3.date || 0) + parseInt(subparts[1], 10) * 1e3;
              fresh = Date.now() < expires;
              if (fresh) {
                debug3('cache is "fresh" due to previous %o Cache-Control param', part);
              }
              return fresh;
            case "must-revalidate":
              break;
            case "no-cache":
            case "no-store":
              debug3('cache is "stale" due to explicit %o Cache-Control param', name);
              return false;
            default:
              break;
          }
        }
      } else if (expires) {
        debug3("Expires: %o", expires);
        fresh = Date.now() < expires;
        if (fresh) {
          debug3('cache is "fresh" due to previous Expires response header');
        }
        return fresh;
      }
      return false;
    }
    __name(isFresh, "isFresh");
    function getCache(url, cache3) {
      if (cache3) {
        if (cache3.parsed && cache3.parsed.href === url.href) {
          return cache3;
        }
        if (cache3.redirects) {
          for (let i3 = 0; i3 < cache3.redirects.length; i3++) {
            const c3 = getCache(url, cache3.redirects[i3]);
            if (c3) {
              return c3;
            }
          }
        }
      }
      return null;
    }
    __name(getCache, "getCache");
  }
});

// ../../node_modules/get-uri/dist/https.js
var require_https = __commonJS({
  "../../node_modules/get-uri/dist/https.js"(exports2) {
    "use strict";
    var __importDefault2 = exports2 && exports2.__importDefault || function(mod) {
      return mod && mod.__esModule ? mod : { "default": mod };
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.https = void 0;
    var https_1 = __importDefault2(require("https"));
    var http_1 = require_http();
    var https2 = /* @__PURE__ */ __name((url, opts) => {
      return (0, http_1.http)(url, { ...opts, http: https_1.default });
    }, "https");
    exports2.https = https2;
  }
});

// ../../node_modules/get-uri/dist/index.js
var require_dist8 = __commonJS({
  "../../node_modules/get-uri/dist/index.js"(exports2) {
    "use strict";
    var __importDefault2 = exports2 && exports2.__importDefault || function(mod) {
      return mod && mod.__esModule ? mod : { "default": mod };
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.getUri = exports2.isValidProtocol = exports2.protocols = void 0;
    var debug_1 = __importDefault2(require_src2());
    var data_1 = require_data();
    var file_1 = require_file4();
    var ftp_1 = require_ftp();
    var http_1 = require_http();
    var https_1 = require_https();
    var debug3 = (0, debug_1.default)("get-uri");
    exports2.protocols = {
      data: data_1.data,
      file: file_1.file,
      ftp: ftp_1.ftp,
      http: http_1.http,
      https: https_1.https
    };
    var VALID_PROTOCOLS = new Set(Object.keys(exports2.protocols));
    function isValidProtocol(p3) {
      return VALID_PROTOCOLS.has(p3);
    }
    __name(isValidProtocol, "isValidProtocol");
    exports2.isValidProtocol = isValidProtocol;
    async function getUri(uri, opts) {
      debug3("getUri(%o)", uri);
      if (!uri) {
        throw new TypeError('Must pass in a URI to "getUri()"');
      }
      const url = typeof uri === "string" ? new URL(uri) : uri;
      const protocol = url.protocol.replace(/:$/, "");
      if (!isValidProtocol(protocol)) {
        throw new TypeError(`Unsupported protocol "${protocol}" specified in URI: "${uri}"`);
      }
      const getter = exports2.protocols[protocol];
      return getter(url, opts);
    }
    __name(getUri, "getUri");
    exports2.getUri = getUri;
  }
});

// ../../node_modules/estraverse/estraverse.js
var require_estraverse = __commonJS({
  "../../node_modules/estraverse/estraverse.js"(exports2) {
    (/* @__PURE__ */ __name(function clone(exports3) {
      "use strict";
      var Syntax, VisitorOption, VisitorKeys, BREAK, SKIP, REMOVE;
      function deepCopy2(obj) {
        var ret = {}, key, val;
        for (key in obj) {
          if (obj.hasOwnProperty(key)) {
            val = obj[key];
            if (typeof val === "object" && val !== null) {
              ret[key] = deepCopy2(val);
            } else {
              ret[key] = val;
            }
          }
        }
        return ret;
      }
      __name(deepCopy2, "deepCopy");
      function upperBound(array, func) {
        var diff, len, i3, current;
        len = array.length;
        i3 = 0;
        while (len) {
          diff = len >>> 1;
          current = i3 + diff;
          if (func(array[current])) {
            len = diff;
          } else {
            i3 = current + 1;
            len -= diff + 1;
          }
        }
        return i3;
      }
      __name(upperBound, "upperBound");
      Syntax = {
        AssignmentExpression: "AssignmentExpression",
        AssignmentPattern: "AssignmentPattern",
        ArrayExpression: "ArrayExpression",
        ArrayPattern: "ArrayPattern",
        ArrowFunctionExpression: "ArrowFunctionExpression",
        AwaitExpression: "AwaitExpression",
        // CAUTION: It's deferred to ES7.
        BlockStatement: "BlockStatement",
        BinaryExpression: "BinaryExpression",
        BreakStatement: "BreakStatement",
        CallExpression: "CallExpression",
        CatchClause: "CatchClause",
        ChainExpression: "ChainExpression",
        ClassBody: "ClassBody",
        ClassDeclaration: "ClassDeclaration",
        ClassExpression: "ClassExpression",
        ComprehensionBlock: "ComprehensionBlock",
        // CAUTION: It's deferred to ES7.
        ComprehensionExpression: "ComprehensionExpression",
        // CAUTION: It's deferred to ES7.
        ConditionalExpression: "ConditionalExpression",
        ContinueStatement: "ContinueStatement",
        DebuggerStatement: "DebuggerStatement",
        DirectiveStatement: "DirectiveStatement",
        DoWhileStatement: "DoWhileStatement",
        EmptyStatement: "EmptyStatement",
        ExportAllDeclaration: "ExportAllDeclaration",
        ExportDefaultDeclaration: "ExportDefaultDeclaration",
        ExportNamedDeclaration: "ExportNamedDeclaration",
        ExportSpecifier: "ExportSpecifier",
        ExpressionStatement: "ExpressionStatement",
        ForStatement: "ForStatement",
        ForInStatement: "ForInStatement",
        ForOfStatement: "ForOfStatement",
        FunctionDeclaration: "FunctionDeclaration",
        FunctionExpression: "FunctionExpression",
        GeneratorExpression: "GeneratorExpression",
        // CAUTION: It's deferred to ES7.
        Identifier: "Identifier",
        IfStatement: "IfStatement",
        ImportExpression: "ImportExpression",
        ImportDeclaration: "ImportDeclaration",
        ImportDefaultSpecifier: "ImportDefaultSpecifier",
        ImportNamespaceSpecifier: "ImportNamespaceSpecifier",
        ImportSpecifier: "ImportSpecifier",
        Literal: "Literal",
        LabeledStatement: "LabeledStatement",
        LogicalExpression: "LogicalExpression",
        MemberExpression: "MemberExpression",
        MetaProperty: "MetaProperty",
        MethodDefinition: "MethodDefinition",
        ModuleSpecifier: "ModuleSpecifier",
        NewExpression: "NewExpression",
        ObjectExpression: "ObjectExpression",
        ObjectPattern: "ObjectPattern",
        PrivateIdentifier: "PrivateIdentifier",
        Program: "Program",
        Property: "Property",
        PropertyDefinition: "PropertyDefinition",
        RestElement: "RestElement",
        ReturnStatement: "ReturnStatement",
        SequenceExpression: "SequenceExpression",
        SpreadElement: "SpreadElement",
        Super: "Super",
        SwitchStatement: "SwitchStatement",
        SwitchCase: "SwitchCase",
        TaggedTemplateExpression: "TaggedTemplateExpression",
        TemplateElement: "TemplateElement",
        TemplateLiteral: "TemplateLiteral",
        ThisExpression: "ThisExpression",
        ThrowStatement: "ThrowStatement",
        TryStatement: "TryStatement",
        UnaryExpression: "UnaryExpression",
        UpdateExpression: "UpdateExpression",
        VariableDeclaration: "VariableDeclaration",
        VariableDeclarator: "VariableDeclarator",
        WhileStatement: "WhileStatement",
        WithStatement: "WithStatement",
        YieldExpression: "YieldExpression"
      };
      VisitorKeys = {
        AssignmentExpression: ["left", "right"],
        AssignmentPattern: ["left", "right"],
        ArrayExpression: ["elements"],
        ArrayPattern: ["elements"],
        ArrowFunctionExpression: ["params", "body"],
        AwaitExpression: ["argument"],
        // CAUTION: It's deferred to ES7.
        BlockStatement: ["body"],
        BinaryExpression: ["left", "right"],
        BreakStatement: ["label"],
        CallExpression: ["callee", "arguments"],
        CatchClause: ["param", "body"],
        ChainExpression: ["expression"],
        ClassBody: ["body"],
        ClassDeclaration: ["id", "superClass", "body"],
        ClassExpression: ["id", "superClass", "body"],
        ComprehensionBlock: ["left", "right"],
        // CAUTION: It's deferred to ES7.
        ComprehensionExpression: ["blocks", "filter", "body"],
        // CAUTION: It's deferred to ES7.
        ConditionalExpression: ["test", "consequent", "alternate"],
        ContinueStatement: ["label"],
        DebuggerStatement: [],
        DirectiveStatement: [],
        DoWhileStatement: ["body", "test"],
        EmptyStatement: [],
        ExportAllDeclaration: ["source"],
        ExportDefaultDeclaration: ["declaration"],
        ExportNamedDeclaration: ["declaration", "specifiers", "source"],
        ExportSpecifier: ["exported", "local"],
        ExpressionStatement: ["expression"],
        ForStatement: ["init", "test", "update", "body"],
        ForInStatement: ["left", "right", "body"],
        ForOfStatement: ["left", "right", "body"],
        FunctionDeclaration: ["id", "params", "body"],
        FunctionExpression: ["id", "params", "body"],
        GeneratorExpression: ["blocks", "filter", "body"],
        // CAUTION: It's deferred to ES7.
        Identifier: [],
        IfStatement: ["test", "consequent", "alternate"],
        ImportExpression: ["source"],
        ImportDeclaration: ["specifiers", "source"],
        ImportDefaultSpecifier: ["local"],
        ImportNamespaceSpecifier: ["local"],
        ImportSpecifier: ["imported", "local"],
        Literal: [],
        LabeledStatement: ["label", "body"],
        LogicalExpression: ["left", "right"],
        MemberExpression: ["object", "property"],
        MetaProperty: ["meta", "property"],
        MethodDefinition: ["key", "value"],
        ModuleSpecifier: [],
        NewExpression: ["callee", "arguments"],
        ObjectExpression: ["properties"],
        ObjectPattern: ["properties"],
        PrivateIdentifier: [],
        Program: ["body"],
        Property: ["key", "value"],
        PropertyDefinition: ["key", "value"],
        RestElement: ["argument"],
        ReturnStatement: ["argument"],
        SequenceExpression: ["expressions"],
        SpreadElement: ["argument"],
        Super: [],
        SwitchStatement: ["discriminant", "cases"],
        SwitchCase: ["test", "consequent"],
        TaggedTemplateExpression: ["tag", "quasi"],
        TemplateElement: [],
        TemplateLiteral: ["quasis", "expressions"],
        ThisExpression: [],
        ThrowStatement: ["argument"],
        TryStatement: ["block", "handler", "finalizer"],
        UnaryExpression: ["argument"],
        UpdateExpression: ["argument"],
        VariableDeclaration: ["declarations"],
        VariableDeclarator: ["id", "init"],
        WhileStatement: ["test", "body"],
        WithStatement: ["object", "body"],
        YieldExpression: ["argument"]
      };
      BREAK = {};
      SKIP = {};
      REMOVE = {};
      VisitorOption = {
        Break: BREAK,
        Skip: SKIP,
        Remove: REMOVE
      };
      function Reference(parent, key) {
        this.parent = parent;
        this.key = key;
      }
      __name(Reference, "Reference");
      Reference.prototype.replace = /* @__PURE__ */ __name(function replace2(node) {
        this.parent[this.key] = node;
      }, "replace");
      Reference.prototype.remove = /* @__PURE__ */ __name(function remove2() {
        if (Array.isArray(this.parent)) {
          this.parent.splice(this.key, 1);
          return true;
        } else {
          this.replace(null);
          return false;
        }
      }, "remove");
      function Element(node, path38, wrap, ref) {
        this.node = node;
        this.path = path38;
        this.wrap = wrap;
        this.ref = ref;
      }
      __name(Element, "Element");
      function Controller() {
      }
      __name(Controller, "Controller");
      Controller.prototype.path = /* @__PURE__ */ __name(function path38() {
        var i3, iz, j3, jz, result2, element;
        function addToPath(result3, path39) {
          if (Array.isArray(path39)) {
            for (j3 = 0, jz = path39.length; j3 < jz; ++j3) {
              result3.push(path39[j3]);
            }
          } else {
            result3.push(path39);
          }
        }
        __name(addToPath, "addToPath");
        if (!this.__current.path) {
          return null;
        }
        result2 = [];
        for (i3 = 2, iz = this.__leavelist.length; i3 < iz; ++i3) {
          element = this.__leavelist[i3];
          addToPath(result2, element.path);
        }
        addToPath(result2, this.__current.path);
        return result2;
      }, "path");
      Controller.prototype.type = function() {
        var node = this.current();
        return node.type || this.__current.wrap;
      };
      Controller.prototype.parents = /* @__PURE__ */ __name(function parents() {
        var i3, iz, result2;
        result2 = [];
        for (i3 = 1, iz = this.__leavelist.length; i3 < iz; ++i3) {
          result2.push(this.__leavelist[i3].node);
        }
        return result2;
      }, "parents");
      Controller.prototype.current = /* @__PURE__ */ __name(function current() {
        return this.__current.node;
      }, "current");
      Controller.prototype.__execute = /* @__PURE__ */ __name(function __execute(callback, element) {
        var previous, result2;
        result2 = void 0;
        previous = this.__current;
        this.__current = element;
        this.__state = null;
        if (callback) {
          result2 = callback.call(this, element.node, this.__leavelist[this.__leavelist.length - 1].node);
        }
        this.__current = previous;
        return result2;
      }, "__execute");
      Controller.prototype.notify = /* @__PURE__ */ __name(function notify(flag) {
        this.__state = flag;
      }, "notify");
      Controller.prototype.skip = function() {
        this.notify(SKIP);
      };
      Controller.prototype["break"] = function() {
        this.notify(BREAK);
      };
      Controller.prototype.remove = function() {
        this.notify(REMOVE);
      };
      Controller.prototype.__initialize = function(root, visitor) {
        this.visitor = visitor;
        this.root = root;
        this.__worklist = [];
        this.__leavelist = [];
        this.__current = null;
        this.__state = null;
        this.__fallback = null;
        if (visitor.fallback === "iteration") {
          this.__fallback = Object.keys;
        } else if (typeof visitor.fallback === "function") {
          this.__fallback = visitor.fallback;
        }
        this.__keys = VisitorKeys;
        if (visitor.keys) {
          this.__keys = Object.assign(Object.create(this.__keys), visitor.keys);
        }
      };
      function isNode(node) {
        if (node == null) {
          return false;
        }
        return typeof node === "object" && typeof node.type === "string";
      }
      __name(isNode, "isNode");
      function isProperty(nodeType, key) {
        return (nodeType === Syntax.ObjectExpression || nodeType === Syntax.ObjectPattern) && "properties" === key;
      }
      __name(isProperty, "isProperty");
      function candidateExistsInLeaveList(leavelist, candidate) {
        for (var i3 = leavelist.length - 1; i3 >= 0; --i3) {
          if (leavelist[i3].node === candidate) {
            return true;
          }
        }
        return false;
      }
      __name(candidateExistsInLeaveList, "candidateExistsInLeaveList");
      Controller.prototype.traverse = /* @__PURE__ */ __name(function traverse2(root, visitor) {
        var worklist, leavelist, element, node, nodeType, ret, key, current, current2, candidates, candidate, sentinel;
        this.__initialize(root, visitor);
        sentinel = {};
        worklist = this.__worklist;
        leavelist = this.__leavelist;
        worklist.push(new Element(root, null, null, null));
        leavelist.push(new Element(null, null, null, null));
        while (worklist.length) {
          element = worklist.pop();
          if (element === sentinel) {
            element = leavelist.pop();
            ret = this.__execute(visitor.leave, element);
            if (this.__state === BREAK || ret === BREAK) {
              return;
            }
            continue;
          }
          if (element.node) {
            ret = this.__execute(visitor.enter, element);
            if (this.__state === BREAK || ret === BREAK) {
              return;
            }
            worklist.push(sentinel);
            leavelist.push(element);
            if (this.__state === SKIP || ret === SKIP) {
              continue;
            }
            node = element.node;
            nodeType = node.type || element.wrap;
            candidates = this.__keys[nodeType];
            if (!candidates) {
              if (this.__fallback) {
                candidates = this.__fallback(node);
              } else {
                throw new Error("Unknown node type " + nodeType + ".");
              }
            }
            current = candidates.length;
            while ((current -= 1) >= 0) {
              key = candidates[current];
              candidate = node[key];
              if (!candidate) {
                continue;
              }
              if (Array.isArray(candidate)) {
                current2 = candidate.length;
                while ((current2 -= 1) >= 0) {
                  if (!candidate[current2]) {
                    continue;
                  }
                  if (candidateExistsInLeaveList(leavelist, candidate[current2])) {
                    continue;
                  }
                  if (isProperty(nodeType, candidates[current])) {
                    element = new Element(candidate[current2], [key, current2], "Property", null);
                  } else if (isNode(candidate[current2])) {
                    element = new Element(candidate[current2], [key, current2], null, null);
                  } else {
                    continue;
                  }
                  worklist.push(element);
                }
              } else if (isNode(candidate)) {
                if (candidateExistsInLeaveList(leavelist, candidate)) {
                  continue;
                }
                worklist.push(new Element(candidate, key, null, null));
              }
            }
          }
        }
      }, "traverse");
      Controller.prototype.replace = /* @__PURE__ */ __name(function replace2(root, visitor) {
        var worklist, leavelist, node, nodeType, target, element, current, current2, candidates, candidate, sentinel, outer, key;
        function removeElem(element2) {
          var i3, key2, nextElem, parent;
          if (element2.ref.remove()) {
            key2 = element2.ref.key;
            parent = element2.ref.parent;
            i3 = worklist.length;
            while (i3--) {
              nextElem = worklist[i3];
              if (nextElem.ref && nextElem.ref.parent === parent) {
                if (nextElem.ref.key < key2) {
                  break;
                }
                --nextElem.ref.key;
              }
            }
          }
        }
        __name(removeElem, "removeElem");
        this.__initialize(root, visitor);
        sentinel = {};
        worklist = this.__worklist;
        leavelist = this.__leavelist;
        outer = {
          root
        };
        element = new Element(root, null, null, new Reference(outer, "root"));
        worklist.push(element);
        leavelist.push(element);
        while (worklist.length) {
          element = worklist.pop();
          if (element === sentinel) {
            element = leavelist.pop();
            target = this.__execute(visitor.leave, element);
            if (target !== void 0 && target !== BREAK && target !== SKIP && target !== REMOVE) {
              element.ref.replace(target);
            }
            if (this.__state === REMOVE || target === REMOVE) {
              removeElem(element);
            }
            if (this.__state === BREAK || target === BREAK) {
              return outer.root;
            }
            continue;
          }
          target = this.__execute(visitor.enter, element);
          if (target !== void 0 && target !== BREAK && target !== SKIP && target !== REMOVE) {
            element.ref.replace(target);
            element.node = target;
          }
          if (this.__state === REMOVE || target === REMOVE) {
            removeElem(element);
            element.node = null;
          }
          if (this.__state === BREAK || target === BREAK) {
            return outer.root;
          }
          node = element.node;
          if (!node) {
            continue;
          }
          worklist.push(sentinel);
          leavelist.push(element);
          if (this.__state === SKIP || target === SKIP) {
            continue;
          }
          nodeType = node.type || element.wrap;
          candidates = this.__keys[nodeType];
          if (!candidates) {
            if (this.__fallback) {
              candidates = this.__fallback(node);
            } else {
              throw new Error("Unknown node type " + nodeType + ".");
            }
          }
          current = candidates.length;
          while ((current -= 1) >= 0) {
            key = candidates[current];
            candidate = node[key];
            if (!candidate) {
              continue;
            }
            if (Array.isArray(candidate)) {
              current2 = candidate.length;
              while ((current2 -= 1) >= 0) {
                if (!candidate[current2]) {
                  continue;
                }
                if (isProperty(nodeType, candidates[current])) {
                  element = new Element(candidate[current2], [key, current2], "Property", new Reference(candidate, current2));
                } else if (isNode(candidate[current2])) {
                  element = new Element(candidate[current2], [key, current2], null, new Reference(candidate, current2));
                } else {
                  continue;
                }
                worklist.push(element);
              }
            } else if (isNode(candidate)) {
              worklist.push(new Element(candidate, key, null, new Reference(node, key)));
            }
          }
        }
        return outer.root;
      }, "replace");
      function traverse(root, visitor) {
        var controller = new Controller();
        return controller.traverse(root, visitor);
      }
      __name(traverse, "traverse");
      function replace(root, visitor) {
        var controller = new Controller();
        return controller.replace(root, visitor);
      }
      __name(replace, "replace");
      function extendCommentRange(comment, tokens) {
        var target;
        target = upperBound(tokens, /* @__PURE__ */ __name(function search(token) {
          return token.range[0] > comment.range[0];
        }, "search"));
        comment.extendedRange = [comment.range[0], comment.range[1]];
        if (target !== tokens.length) {
          comment.extendedRange[1] = tokens[target].range[0];
        }
        target -= 1;
        if (target >= 0) {
          comment.extendedRange[0] = tokens[target].range[1];
        }
        return comment;
      }
      __name(extendCommentRange, "extendCommentRange");
      function attachComments(tree, providedComments, tokens) {
        var comments = [], comment, len, i3, cursor2;
        if (!tree.range) {
          throw new Error("attachComments needs range information");
        }
        if (!tokens.length) {
          if (providedComments.length) {
            for (i3 = 0, len = providedComments.length; i3 < len; i3 += 1) {
              comment = deepCopy2(providedComments[i3]);
              comment.extendedRange = [0, tree.range[0]];
              comments.push(comment);
            }
            tree.leadingComments = comments;
          }
          return tree;
        }
        for (i3 = 0, len = providedComments.length; i3 < len; i3 += 1) {
          comments.push(extendCommentRange(deepCopy2(providedComments[i3]), tokens));
        }
        cursor2 = 0;
        traverse(tree, {
          enter: /* @__PURE__ */ __name(function(node) {
            var comment2;
            while (cursor2 < comments.length) {
              comment2 = comments[cursor2];
              if (comment2.extendedRange[1] > node.range[0]) {
                break;
              }
              if (comment2.extendedRange[1] === node.range[0]) {
                if (!node.leadingComments) {
                  node.leadingComments = [];
                }
                node.leadingComments.push(comment2);
                comments.splice(cursor2, 1);
              } else {
                cursor2 += 1;
              }
            }
            if (cursor2 === comments.length) {
              return VisitorOption.Break;
            }
            if (comments[cursor2].extendedRange[0] > node.range[1]) {
              return VisitorOption.Skip;
            }
          }, "enter")
        });
        cursor2 = 0;
        traverse(tree, {
          leave: /* @__PURE__ */ __name(function(node) {
            var comment2;
            while (cursor2 < comments.length) {
              comment2 = comments[cursor2];
              if (node.range[1] < comment2.extendedRange[0]) {
                break;
              }
              if (node.range[1] === comment2.extendedRange[0]) {
                if (!node.trailingComments) {
                  node.trailingComments = [];
                }
                node.trailingComments.push(comment2);
                comments.splice(cursor2, 1);
              } else {
                cursor2 += 1;
              }
            }
            if (cursor2 === comments.length) {
              return VisitorOption.Break;
            }
            if (comments[cursor2].extendedRange[0] > node.range[1]) {
              return VisitorOption.Skip;
            }
          }, "leave")
        });
        return tree;
      }
      __name(attachComments, "attachComments");
      exports3.Syntax = Syntax;
      exports3.traverse = traverse;
      exports3.replace = replace;
      exports3.attachComments = attachComments;
      exports3.VisitorKeys = VisitorKeys;
      exports3.VisitorOption = VisitorOption;
      exports3.Controller = Controller;
      exports3.cloneEnvironment = function() {
        return clone({});
      };
      return exports3;
    }, "clone"))(exports2);
  }
});

// ../../node_modules/esutils/lib/ast.js
var require_ast2 = __commonJS({
  "../../node_modules/esutils/lib/ast.js"(exports2, module2) {
    (function() {
      "use strict";
      function isExpression(node) {
        if (node == null) {
          return false;
        }
        switch (node.type) {
          case "ArrayExpression":
          case "AssignmentExpression":
          case "BinaryExpression":
          case "CallExpression":
          case "ConditionalExpression":
          case "FunctionExpression":
          case "Identifier":
          case "Literal":
          case "LogicalExpression":
          case "MemberExpression":
          case "NewExpression":
          case "ObjectExpression":
          case "SequenceExpression":
          case "ThisExpression":
          case "UnaryExpression":
          case "UpdateExpression":
            return true;
        }
        return false;
      }
      __name(isExpression, "isExpression");
      function isIterationStatement(node) {
        if (node == null) {
          return false;
        }
        switch (node.type) {
          case "DoWhileStatement":
          case "ForInStatement":
          case "ForStatement":
          case "WhileStatement":
            return true;
        }
        return false;
      }
      __name(isIterationStatement, "isIterationStatement");
      function isStatement(node) {
        if (node == null) {
          return false;
        }
        switch (node.type) {
          case "BlockStatement":
          case "BreakStatement":
          case "ContinueStatement":
          case "DebuggerStatement":
          case "DoWhileStatement":
          case "EmptyStatement":
          case "ExpressionStatement":
          case "ForInStatement":
          case "ForStatement":
          case "IfStatement":
          case "LabeledStatement":
          case "ReturnStatement":
          case "SwitchStatement":
          case "ThrowStatement":
          case "TryStatement":
          case "VariableDeclaration":
          case "WhileStatement":
          case "WithStatement":
            return true;
        }
        return false;
      }
      __name(isStatement, "isStatement");
      function isSourceElement(node) {
        return isStatement(node) || node != null && node.type === "FunctionDeclaration";
      }
      __name(isSourceElement, "isSourceElement");
      function trailingStatement(node) {
        switch (node.type) {
          case "IfStatement":
            if (node.alternate != null) {
              return node.alternate;
            }
            return node.consequent;
          case "LabeledStatement":
          case "ForStatement":
          case "ForInStatement":
          case "WhileStatement":
          case "WithStatement":
            return node.body;
        }
        return null;
      }
      __name(trailingStatement, "trailingStatement");
      function isProblematicIfStatement(node) {
        var current;
        if (node.type !== "IfStatement") {
          return false;
        }
        if (node.alternate == null) {
          return false;
        }
        current = node.consequent;
        do {
          if (current.type === "IfStatement") {
            if (current.alternate == null) {
              return true;
            }
          }
          current = trailingStatement(current);
        } while (current);
        return false;
      }
      __name(isProblematicIfStatement, "isProblematicIfStatement");
      module2.exports = {
        isExpression,
        isStatement,
        isIterationStatement,
        isSourceElement,
        isProblematicIfStatement,
        trailingStatement
      };
    })();
  }
});

// ../../node_modules/esutils/lib/code.js
var require_code = __commonJS({
  "../../node_modules/esutils/lib/code.js"(exports2, module2) {
    (function() {
      "use strict";
      var ES6Regex, ES5Regex, NON_ASCII_WHITESPACES, IDENTIFIER_START, IDENTIFIER_PART, ch;
      ES5Regex = {
        // ECMAScript 5.1/Unicode v9.0.0 NonAsciiIdentifierStart:
        NonAsciiIdentifierStart: /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,
        // ECMAScript 5.1/Unicode v9.0.0 NonAsciiIdentifierPart:
        NonAsciiIdentifierPart: /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/
      };
      ES6Regex = {
        // ECMAScript 6/Unicode v9.0.0 NonAsciiIdentifierStart:
        NonAsciiIdentifierStart: /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,
        // ECMAScript 6/Unicode v9.0.0 NonAsciiIdentifierPart:
        NonAsciiIdentifierPart: /[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/
      };
      function isDecimalDigit(ch2) {
        return 48 <= ch2 && ch2 <= 57;
      }
      __name(isDecimalDigit, "isDecimalDigit");
      function isHexDigit(ch2) {
        return 48 <= ch2 && ch2 <= 57 || // 0..9
        97 <= ch2 && ch2 <= 102 || // a..f
        65 <= ch2 && ch2 <= 70;
      }
      __name(isHexDigit, "isHexDigit");
      function isOctalDigit(ch2) {
        return ch2 >= 48 && ch2 <= 55;
      }
      __name(isOctalDigit, "isOctalDigit");
      NON_ASCII_WHITESPACES = [
        5760,
        8192,
        8193,
        8194,
        8195,
        8196,
        8197,
        8198,
        8199,
        8200,
        8201,
        8202,
        8239,
        8287,
        12288,
        65279
      ];
      function isWhiteSpace2(ch2) {
        return ch2 === 32 || ch2 === 9 || ch2 === 11 || ch2 === 12 || ch2 === 160 || ch2 >= 5760 && NON_ASCII_WHITESPACES.indexOf(ch2) >= 0;
      }
      __name(isWhiteSpace2, "isWhiteSpace");
      function isLineTerminator(ch2) {
        return ch2 === 10 || ch2 === 13 || ch2 === 8232 || ch2 === 8233;
      }
      __name(isLineTerminator, "isLineTerminator");
      function fromCodePoint(cp) {
        if (cp <= 65535) {
          return String.fromCharCode(cp);
        }
        var cu1 = String.fromCharCode(Math.floor((cp - 65536) / 1024) + 55296);
        var cu2 = String.fromCharCode((cp - 65536) % 1024 + 56320);
        return cu1 + cu2;
      }
      __name(fromCodePoint, "fromCodePoint");
      IDENTIFIER_START = new Array(128);
      for (ch = 0; ch < 128; ++ch) {
        IDENTIFIER_START[ch] = ch >= 97 && ch <= 122 || // a..z
        ch >= 65 && ch <= 90 || // A..Z
        ch === 36 || ch === 95;
      }
      IDENTIFIER_PART = new Array(128);
      for (ch = 0; ch < 128; ++ch) {
        IDENTIFIER_PART[ch] = ch >= 97 && ch <= 122 || // a..z
        ch >= 65 && ch <= 90 || // A..Z
        ch >= 48 && ch <= 57 || // 0..9
        ch === 36 || ch === 95;
      }
      function isIdentifierStartES5(ch2) {
        return ch2 < 128 ? IDENTIFIER_START[ch2] : ES5Regex.NonAsciiIdentifierStart.test(fromCodePoint(ch2));
      }
      __name(isIdentifierStartES5, "isIdentifierStartES5");
      function isIdentifierPartES5(ch2) {
        return ch2 < 128 ? IDENTIFIER_PART[ch2] : ES5Regex.NonAsciiIdentifierPart.test(fromCodePoint(ch2));
      }
      __name(isIdentifierPartES5, "isIdentifierPartES5");
      function isIdentifierStartES6(ch2) {
        return ch2 < 128 ? IDENTIFIER_START[ch2] : ES6Regex.NonAsciiIdentifierStart.test(fromCodePoint(ch2));
      }
      __name(isIdentifierStartES6, "isIdentifierStartES6");
      function isIdentifierPartES6(ch2) {
        return ch2 < 128 ? IDENTIFIER_PART[ch2] : ES6Regex.NonAsciiIdentifierPart.test(fromCodePoint(ch2));
      }
      __name(isIdentifierPartES6, "isIdentifierPartES6");
      module2.exports = {
        isDecimalDigit,
        isHexDigit,
        isOctalDigit,
        isWhiteSpace: isWhiteSpace2,
        isLineTerminator,
        isIdentifierStartES5,
        isIdentifierPartES5,
        isIdentifierStartES6,
        isIdentifierPartES6
      };
    })();
  }
});

// ../../node_modules/esutils/lib/keyword.js
var require_keyword = __commonJS({
  "../../node_modules/esutils/lib/keyword.js"(exports2, module2) {
    (function() {
      "use strict";
      var code = require_code();
      function isStrictModeReservedWordES6(id) {
        switch (id) {
          case "implements":
          case "interface":
          case "package":
          case "private":
          case "protected":
          case "public":
          case "static":
          case "let":
            return true;
          default:
            return false;
        }
      }
      __name(isStrictModeReservedWordES6, "isStrictModeReservedWordES6");
      function isKeywordES5(id, strict) {
        if (!strict && id === "yield") {
          return false;
        }
        return isKeywordES6(id, strict);
      }
      __name(isKeywordES5, "isKeywordES5");
      function isKeywordES6(id, strict) {
        if (strict && isStrictModeReservedWordES6(id)) {
          return true;
        }
        switch (id.length) {
          case 2:
            return id === "if" || id === "in" || id === "do";
          case 3:
            return id === "var" || id === "for" || id === "new" || id === "try";
          case 4:
            return id === "this" || id === "else" || id === "case" || id === "void" || id === "with" || id === "enum";
          case 5:
            return id === "while" || id === "break" || id === "catch" || id === "throw" || id === "const" || id === "yield" || id === "class" || id === "super";
          case 6:
            return id === "return" || id === "typeof" || id === "delete" || id === "switch" || id === "export" || id === "import";
          case 7:
            return id === "default" || id === "finally" || id === "extends";
          case 8:
            return id === "function" || id === "continue" || id === "debugger";
          case 10:
            return id === "instanceof";
          default:
            return false;
        }
      }
      __name(isKeywordES6, "isKeywordES6");
      function isReservedWordES5(id, strict) {
        return id === "null" || id === "true" || id === "false" || isKeywordES5(id, strict);
      }
      __name(isReservedWordES5, "isReservedWordES5");
      function isReservedWordES6(id, strict) {
        return id === "null" || id === "true" || id === "false" || isKeywordES6(id, strict);
      }
      __name(isReservedWordES6, "isReservedWordES6");
      function isRestrictedWord(id) {
        return id === "eval" || id === "arguments";
      }
      __name(isRestrictedWord, "isRestrictedWord");
      function isIdentifierNameES5(id) {
        var i3, iz, ch;
        if (id.length === 0) {
          return false;
        }
        ch = id.charCodeAt(0);
        if (!code.isIdentifierStartES5(ch)) {
          return false;
        }
        for (i3 = 1, iz = id.length; i3 < iz; ++i3) {
          ch = id.charCodeAt(i3);
          if (!code.isIdentifierPartES5(ch)) {
            return false;
          }
        }
        return true;
      }
      __name(isIdentifierNameES5, "isIdentifierNameES5");
      function decodeUtf16(lead, trail) {
        return (lead - 55296) * 1024 + (trail - 56320) + 65536;
      }
      __name(decodeUtf16, "decodeUtf16");
      function isIdentifierNameES6(id) {
        var i3, iz, ch, lowCh, check;
        if (id.length === 0) {
          return false;
        }
        check = code.isIdentifierStartES6;
        for (i3 = 0, iz = id.length; i3 < iz; ++i3) {
          ch = id.charCodeAt(i3);
          if (55296 <= ch && ch <= 56319) {
            ++i3;
            if (i3 >= iz) {
              return false;
            }
            lowCh = id.charCodeAt(i3);
            if (!(56320 <= lowCh && lowCh <= 57343)) {
              return false;
            }
            ch = decodeUtf16(ch, lowCh);
          }
          if (!check(ch)) {
            return false;
          }
          check = code.isIdentifierPartES6;
        }
        return true;
      }
      __name(isIdentifierNameES6, "isIdentifierNameES6");
      function isIdentifierES5(id, strict) {
        return isIdentifierNameES5(id) && !isReservedWordES5(id, strict);
      }
      __name(isIdentifierES5, "isIdentifierES5");
      function isIdentifierES6(id, strict) {
        return isIdentifierNameES6(id) && !isReservedWordES6(id, strict);
      }
      __name(isIdentifierES6, "isIdentifierES6");
      module2.exports = {
        isKeywordES5,
        isKeywordES6,
        isReservedWordES5,
        isReservedWordES6,
        isRestrictedWord,
        isIdentifierNameES5,
        isIdentifierNameES6,
        isIdentifierES5,
        isIdentifierES6
      };
    })();
  }
});

// ../../node_modules/esutils/lib/utils.js
var require_utils11 = __commonJS({
  "../../node_modules/esutils/lib/utils.js"(exports2) {
    (function() {
      "use strict";
      exports2.ast = require_ast2();
      exports2.code = require_code();
      exports2.keyword = require_keyword();
    })();
  }
});

// ../../node_modules/source-map/lib/base64.js
var require_base64 = __commonJS({
  "../../node_modules/source-map/lib/base64.js"(exports2) {
    var intToCharMap = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");
    exports2.encode = function(number) {
      if (0 <= number && number < intToCharMap.length) {
        return intToCharMap[number];
      }
      throw new TypeError("Must be between 0 and 63: " + number);
    };
    exports2.decode = function(charCode) {
      var bigA = 65;
      var bigZ = 90;
      var littleA = 97;
      var littleZ = 122;
      var zero = 48;
      var nine = 57;
      var plus = 43;
      var slash = 47;
      var littleOffset = 26;
      var numberOffset = 52;
      if (bigA <= charCode && charCode <= bigZ) {
        return charCode - bigA;
      }
      if (littleA <= charCode && charCode <= littleZ) {
        return charCode - littleA + littleOffset;
      }
      if (zero <= charCode && charCode <= nine) {
        return charCode - zero + numberOffset;
      }
      if (charCode == plus) {
        return 62;
      }
      if (charCode == slash) {
        return 63;
      }
      return -1;
    };
  }
});

// ../../node_modules/source-map/lib/base64-vlq.js
var require_base64_vlq = __commonJS({
  "../../node_modules/source-map/lib/base64-vlq.js"(exports2) {
    var base64 = require_base64();
    var VLQ_BASE_SHIFT = 5;
    var VLQ_BASE = 1 << VLQ_BASE_SHIFT;
    var VLQ_BASE_MASK = VLQ_BASE - 1;
    var VLQ_CONTINUATION_BIT = VLQ_BASE;
    function toVLQSigned(aValue) {
      return aValue < 0 ? (-aValue << 1) + 1 : (aValue << 1) + 0;
    }
    __name(toVLQSigned, "toVLQSigned");
    function fromVLQSigned(aValue) {
      var isNegative = (aValue & 1) === 1;
      var shifted = aValue >> 1;
      return isNegative ? -shifted : shifted;
    }
    __name(fromVLQSigned, "fromVLQSigned");
    exports2.encode = /* @__PURE__ */ __name(function base64VLQ_encode(aValue) {
      var encoded = "";
      var digit;
      var vlq = toVLQSigned(aValue);
      do {
        digit = vlq & VLQ_BASE_MASK;
        vlq >>>= VLQ_BASE_SHIFT;
        if (vlq > 0) {
          digit |= VLQ_CONTINUATION_BIT;
        }
        encoded += base64.encode(digit);
      } while (vlq > 0);
      return encoded;
    }, "base64VLQ_encode");
    exports2.decode = /* @__PURE__ */ __name(function base64VLQ_decode(aStr, aIndex, aOutParam) {
      var strLen = aStr.length;
      var result2 = 0;
      var shift = 0;
      var continuation, digit;
      do {
        if (aIndex >= strLen) {
          throw new Error("Expected more digits in base 64 VLQ value.");
        }
        digit = base64.decode(aStr.charCodeAt(aIndex++));
        if (digit === -1) {
          throw new Error("Invalid base64 digit: " + aStr.charAt(aIndex - 1));
        }
        continuation = !!(digit & VLQ_CONTINUATION_BIT);
        digit &= VLQ_BASE_MASK;
        result2 = result2 + (digit << shift);
        shift += VLQ_BASE_SHIFT;
      } while (continuation);
      aOutParam.value = fromVLQSigned(result2);
      aOutParam.rest = aIndex;
    }, "base64VLQ_decode");
  }
});

// ../../node_modules/source-map/lib/util.js
var require_util10 = __commonJS({
  "../../node_modules/source-map/lib/util.js"(exports2) {
    function getArg(aArgs, aName, aDefaultValue) {
      if (aName in aArgs) {
        return aArgs[aName];
      } else if (arguments.length === 3) {
        return aDefaultValue;
      } else {
        throw new Error('"' + aName + '" is a required argument.');
      }
    }
    __name(getArg, "getArg");
    exports2.getArg = getArg;
    var urlRegexp = /^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/;
    var dataUrlRegexp = /^data:.+\,.+$/;
    function urlParse(aUrl) {
      var match4 = aUrl.match(urlRegexp);
      if (!match4) {
        return null;
      }
      return {
        scheme: match4[1],
        auth: match4[2],
        host: match4[3],
        port: match4[4],
        path: match4[5]
      };
    }
    __name(urlParse, "urlParse");
    exports2.urlParse = urlParse;
    function urlGenerate(aParsedUrl) {
      var url = "";
      if (aParsedUrl.scheme) {
        url += aParsedUrl.scheme + ":";
      }
      url += "//";
      if (aParsedUrl.auth) {
        url += aParsedUrl.auth + "@";
      }
      if (aParsedUrl.host) {
        url += aParsedUrl.host;
      }
      if (aParsedUrl.port) {
        url += ":" + aParsedUrl.port;
      }
      if (aParsedUrl.path) {
        url += aParsedUrl.path;
      }
      return url;
    }
    __name(urlGenerate, "urlGenerate");
    exports2.urlGenerate = urlGenerate;
    function normalize3(aPath) {
      var path38 = aPath;
      var url = urlParse(aPath);
      if (url) {
        if (!url.path) {
          return aPath;
        }
        path38 = url.path;
      }
      var isAbsolute2 = exports2.isAbsolute(path38);
      var parts = path38.split(/\/+/);
      for (var part, up = 0, i3 = parts.length - 1; i3 >= 0; i3--) {
        part = parts[i3];
        if (part === ".") {
          parts.splice(i3, 1);
        } else if (part === "..") {
          up++;
        } else if (up > 0) {
          if (part === "") {
            parts.splice(i3 + 1, up);
            up = 0;
          } else {
            parts.splice(i3, 2);
            up--;
          }
        }
      }
      path38 = parts.join("/");
      if (path38 === "") {
        path38 = isAbsolute2 ? "/" : ".";
      }
      if (url) {
        url.path = path38;
        return urlGenerate(url);
      }
      return path38;
    }
    __name(normalize3, "normalize");
    exports2.normalize = normalize3;
    function join31(aRoot, aPath) {
      if (aRoot === "") {
        aRoot = ".";
      }
      if (aPath === "") {
        aPath = ".";
      }
      var aPathUrl = urlParse(aPath);
      var aRootUrl = urlParse(aRoot);
      if (aRootUrl) {
        aRoot = aRootUrl.path || "/";
      }
      if (aPathUrl && !aPathUrl.scheme) {
        if (aRootUrl) {
          aPathUrl.scheme = aRootUrl.scheme;
        }
        return urlGenerate(aPathUrl);
      }
      if (aPathUrl || aPath.match(dataUrlRegexp)) {
        return aPath;
      }
      if (aRootUrl && !aRootUrl.host && !aRootUrl.path) {
        aRootUrl.host = aPath;
        return urlGenerate(aRootUrl);
      }
      var joined = aPath.charAt(0) === "/" ? aPath : normalize3(aRoot.replace(/\/+$/, "") + "/" + aPath);
      if (aRootUrl) {
        aRootUrl.path = joined;
        return urlGenerate(aRootUrl);
      }
      return joined;
    }
    __name(join31, "join");
    exports2.join = join31;
    exports2.isAbsolute = function(aPath) {
      return aPath.charAt(0) === "/" || urlRegexp.test(aPath);
    };
    function relative2(aRoot, aPath) {
      if (aRoot === "") {
        aRoot = ".";
      }
      aRoot = aRoot.replace(/\/$/, "");
      var level = 0;
      while (aPath.indexOf(aRoot + "/") !== 0) {
        var index = aRoot.lastIndexOf("/");
        if (index < 0) {
          return aPath;
        }
        aRoot = aRoot.slice(0, index);
        if (aRoot.match(/^([^\/]+:\/)?\/*$/)) {
          return aPath;
        }
        ++level;
      }
      return Array(level + 1).join("../") + aPath.substr(aRoot.length + 1);
    }
    __name(relative2, "relative");
    exports2.relative = relative2;
    var supportsNullProto = (function() {
      var obj = /* @__PURE__ */ Object.create(null);
      return !("__proto__" in obj);
    })();
    function identity(s3) {
      return s3;
    }
    __name(identity, "identity");
    function toSetString(aStr) {
      if (isProtoString(aStr)) {
        return "$" + aStr;
      }
      return aStr;
    }
    __name(toSetString, "toSetString");
    exports2.toSetString = supportsNullProto ? identity : toSetString;
    function fromSetString(aStr) {
      if (isProtoString(aStr)) {
        return aStr.slice(1);
      }
      return aStr;
    }
    __name(fromSetString, "fromSetString");
    exports2.fromSetString = supportsNullProto ? identity : fromSetString;
    function isProtoString(s3) {
      if (!s3) {
        return false;
      }
      var length = s3.length;
      if (length < 9) {
        return false;
      }
      if (s3.charCodeAt(length - 1) !== 95 || s3.charCodeAt(length - 2) !== 95 || s3.charCodeAt(length - 3) !== 111 || s3.charCodeAt(length - 4) !== 116 || s3.charCodeAt(length - 5) !== 111 || s3.charCodeAt(length - 6) !== 114 || s3.charCodeAt(length - 7) !== 112 || s3.charCodeAt(length - 8) !== 95 || s3.charCodeAt(length - 9) !== 95) {
        return false;
      }
      for (var i3 = length - 10; i3 >= 0; i3--) {
        if (s3.charCodeAt(i3) !== 36) {
          return false;
        }
      }
      return true;
    }
    __name(isProtoString, "isProtoString");
    function compareByOriginalPositions(mappingA, mappingB, onlyCompareOriginal) {
      var cmp = strcmp(mappingA.source, mappingB.source);
      if (cmp !== 0) {
        return cmp;
      }
      cmp = mappingA.originalLine - mappingB.originalLine;
      if (cmp !== 0) {
        return cmp;
      }
      cmp = mappingA.originalColumn - mappingB.originalColumn;
      if (cmp !== 0 || onlyCompareOriginal) {
        return cmp;
      }
      cmp = mappingA.generatedColumn - mappingB.generatedColumn;
      if (cmp !== 0) {
        return cmp;
      }
      cmp = mappingA.generatedLine - mappingB.generatedLine;
      if (cmp !== 0) {
        return cmp;
      }
      return strcmp(mappingA.name, mappingB.name);
    }
    __name(compareByOriginalPositions, "compareByOriginalPositions");
    exports2.compareByOriginalPositions = compareByOriginalPositions;
    function compareByGeneratedPositionsDeflated(mappingA, mappingB, onlyCompareGenerated) {
      var cmp = mappingA.generatedLine - mappingB.generatedLine;
      if (cmp !== 0) {
        return cmp;
      }
      cmp = mappingA.generatedColumn - mappingB.generatedColumn;
      if (cmp !== 0 || onlyCompareGenerated) {
        return cmp;
      }
      cmp = strcmp(mappingA.source, mappingB.source);
      if (cmp !== 0) {
        return cmp;
      }
      cmp = mappingA.originalLine - mappingB.originalLine;
      if (cmp !== 0) {
        return cmp;
      }
      cmp = mappingA.originalColumn - mappingB.originalColumn;
      if (cmp !== 0) {
        return cmp;
      }
      return strcmp(mappingA.name, mappingB.name);
    }
    __name(compareByGeneratedPositionsDeflated, "compareByGeneratedPositionsDeflated");
    exports2.compareByGeneratedPositionsDeflated = compareByGeneratedPositionsDeflated;
    function strcmp(aStr1, aStr2) {
      if (aStr1 === aStr2) {
        return 0;
      }
      if (aStr1 === null) {
        return 1;
      }
      if (aStr2 === null) {
        return -1;
      }
      if (aStr1 > aStr2) {
        return 1;
      }
      return -1;
    }
    __name(strcmp, "strcmp");
    function compareByGeneratedPositionsInflated(mappingA, mappingB) {
      var cmp = mappingA.generatedLine - mappingB.generatedLine;
      if (cmp !== 0) {
        return cmp;
      }
      cmp = mappingA.generatedColumn - mappingB.generatedColumn;
      if (cmp !== 0) {
        return cmp;
      }
      cmp = strcmp(mappingA.source, mappingB.source);
      if (cmp !== 0) {
        return cmp;
      }
      cmp = mappingA.originalLine - mappingB.originalLine;
      if (cmp !== 0) {
        return cmp;
      }
      cmp = mappingA.originalColumn - mappingB.originalColumn;
      if (cmp !== 0) {
        return cmp;
      }
      return strcmp(mappingA.name, mappingB.name);
    }
    __name(compareByGeneratedPositionsInflated, "compareByGeneratedPositionsInflated");
    exports2.compareByGeneratedPositionsInflated = compareByGeneratedPositionsInflated;
    function parseSourceMapInput(str) {
      return JSON.parse(str.replace(/^\)]}'[^\n]*\n/, ""));
    }
    __name(parseSourceMapInput, "parseSourceMapInput");
    exports2.parseSourceMapInput = parseSourceMapInput;
    function computeSourceURL(sourceRoot, sourceURL, sourceMapURL) {
      sourceURL = sourceURL || "";
      if (sourceRoot) {
        if (sourceRoot[sourceRoot.length - 1] !== "/" && sourceURL[0] !== "/") {
          sourceRoot += "/";
        }
        sourceURL = sourceRoot + sourceURL;
      }
      if (sourceMapURL) {
        var parsed = urlParse(sourceMapURL);
        if (!parsed) {
          throw new Error("sourceMapURL could not be parsed");
        }
        if (parsed.path) {
          var index = parsed.path.lastIndexOf("/");
          if (index >= 0) {
            parsed.path = parsed.path.substring(0, index + 1);
          }
        }
        sourceURL = join31(urlGenerate(parsed), sourceURL);
      }
      return normalize3(sourceURL);
    }
    __name(computeSourceURL, "computeSourceURL");
    exports2.computeSourceURL = computeSourceURL;
  }
});

// ../../node_modules/source-map/lib/array-set.js
var require_array_set = __commonJS({
  "../../node_modules/source-map/lib/array-set.js"(exports2) {
    var util11 = require_util10();
    var has = Object.prototype.hasOwnProperty;
    var hasNativeMap = typeof Map !== "undefined";
    function ArraySet() {
      this._array = [];
      this._set = hasNativeMap ? /* @__PURE__ */ new Map() : /* @__PURE__ */ Object.create(null);
    }
    __name(ArraySet, "ArraySet");
    ArraySet.fromArray = /* @__PURE__ */ __name(function ArraySet_fromArray(aArray, aAllowDuplicates) {
      var set = new ArraySet();
      for (var i3 = 0, len = aArray.length; i3 < len; i3++) {
        set.add(aArray[i3], aAllowDuplicates);
      }
      return set;
    }, "ArraySet_fromArray");
    ArraySet.prototype.size = /* @__PURE__ */ __name(function ArraySet_size() {
      return hasNativeMap ? this._set.size : Object.getOwnPropertyNames(this._set).length;
    }, "ArraySet_size");
    ArraySet.prototype.add = /* @__PURE__ */ __name(function ArraySet_add(aStr, aAllowDuplicates) {
      var sStr = hasNativeMap ? aStr : util11.toSetString(aStr);
      var isDuplicate = hasNativeMap ? this.has(aStr) : has.call(this._set, sStr);
      var idx = this._array.length;
      if (!isDuplicate || aAllowDuplicates) {
        this._array.push(aStr);
      }
      if (!isDuplicate) {
        if (hasNativeMap) {
          this._set.set(aStr, idx);
        } else {
          this._set[sStr] = idx;
        }
      }
    }, "ArraySet_add");
    ArraySet.prototype.has = /* @__PURE__ */ __name(function ArraySet_has(aStr) {
      if (hasNativeMap) {
        return this._set.has(aStr);
      } else {
        var sStr = util11.toSetString(aStr);
        return has.call(this._set, sStr);
      }
    }, "ArraySet_has");
    ArraySet.prototype.indexOf = /* @__PURE__ */ __name(function ArraySet_indexOf(aStr) {
      if (hasNativeMap) {
        var idx = this._set.get(aStr);
        if (idx >= 0) {
          return idx;
        }
      } else {
        var sStr = util11.toSetString(aStr);
        if (has.call(this._set, sStr)) {
          return this._set[sStr];
        }
      }
      throw new Error('"' + aStr + '" is not in the set.');
    }, "ArraySet_indexOf");
    ArraySet.prototype.at = /* @__PURE__ */ __name(function ArraySet_at(aIdx) {
      if (aIdx >= 0 && aIdx < this._array.length) {
        return this._array[aIdx];
      }
      throw new Error("No element indexed by " + aIdx);
    }, "ArraySet_at");
    ArraySet.prototype.toArray = /* @__PURE__ */ __name(function ArraySet_toArray() {
      return this._array.slice();
    }, "ArraySet_toArray");
    exports2.ArraySet = ArraySet;
  }
});

// ../../node_modules/source-map/lib/mapping-list.js
var require_mapping_list = __commonJS({
  "../../node_modules/source-map/lib/mapping-list.js"(exports2) {
    var util11 = require_util10();
    function generatedPositionAfter(mappingA, mappingB) {
      var lineA = mappingA.generatedLine;
      var lineB = mappingB.generatedLine;
      var columnA = mappingA.generatedColumn;
      var columnB = mappingB.generatedColumn;
      return lineB > lineA || lineB == lineA && columnB >= columnA || util11.compareByGeneratedPositionsInflated(mappingA, mappingB) <= 0;
    }
    __name(generatedPositionAfter, "generatedPositionAfter");
    function MappingList() {
      this._array = [];
      this._sorted = true;
      this._last = { generatedLine: -1, generatedColumn: 0 };
    }
    __name(MappingList, "MappingList");
    MappingList.prototype.unsortedForEach = /* @__PURE__ */ __name(function MappingList_forEach(aCallback, aThisArg) {
      this._array.forEach(aCallback, aThisArg);
    }, "MappingList_forEach");
    MappingList.prototype.add = /* @__PURE__ */ __name(function MappingList_add(aMapping) {
      if (generatedPositionAfter(this._last, aMapping)) {
        this._last = aMapping;
        this._array.push(aMapping);
      } else {
        this._sorted = false;
        this._array.push(aMapping);
      }
    }, "MappingList_add");
    MappingList.prototype.toArray = /* @__PURE__ */ __name(function MappingList_toArray() {
      if (!this._sorted) {
        this._array.sort(util11.compareByGeneratedPositionsInflated);
        this._sorted = true;
      }
      return this._array;
    }, "MappingList_toArray");
    exports2.MappingList = MappingList;
  }
});

// ../../node_modules/source-map/lib/source-map-generator.js
var require_source_map_generator = __commonJS({
  "../../node_modules/source-map/lib/source-map-generator.js"(exports2) {
    var base64VLQ = require_base64_vlq();
    var util11 = require_util10();
    var ArraySet = require_array_set().ArraySet;
    var MappingList = require_mapping_list().MappingList;
    function SourceMapGenerator(aArgs) {
      if (!aArgs) {
        aArgs = {};
      }
      this._file = util11.getArg(aArgs, "file", null);
      this._sourceRoot = util11.getArg(aArgs, "sourceRoot", null);
      this._skipValidation = util11.getArg(aArgs, "skipValidation", false);
      this._sources = new ArraySet();
      this._names = new ArraySet();
      this._mappings = new MappingList();
      this._sourcesContents = null;
    }
    __name(SourceMapGenerator, "SourceMapGenerator");
    SourceMapGenerator.prototype._version = 3;
    SourceMapGenerator.fromSourceMap = /* @__PURE__ */ __name(function SourceMapGenerator_fromSourceMap(aSourceMapConsumer) {
      var sourceRoot = aSourceMapConsumer.sourceRoot;
      var generator = new SourceMapGenerator({
        file: aSourceMapConsumer.file,
        sourceRoot
      });
      aSourceMapConsumer.eachMapping(function(mapping) {
        var newMapping = {
          generated: {
            line: mapping.generatedLine,
            column: mapping.generatedColumn
          }
        };
        if (mapping.source != null) {
          newMapping.source = mapping.source;
          if (sourceRoot != null) {
            newMapping.source = util11.relative(sourceRoot, newMapping.source);
          }
          newMapping.original = {
            line: mapping.originalLine,
            column: mapping.originalColumn
          };
          if (mapping.name != null) {
            newMapping.name = mapping.name;
          }
        }
        generator.addMapping(newMapping);
      });
      aSourceMapConsumer.sources.forEach(function(sourceFile) {
        var sourceRelative = sourceFile;
        if (sourceRoot !== null) {
          sourceRelative = util11.relative(sourceRoot, sourceFile);
        }
        if (!generator._sources.has(sourceRelative)) {
          generator._sources.add(sourceRelative);
        }
        var content = aSourceMapConsumer.sourceContentFor(sourceFile);
        if (content != null) {
          generator.setSourceContent(sourceFile, content);
        }
      });
      return generator;
    }, "SourceMapGenerator_fromSourceMap");
    SourceMapGenerator.prototype.addMapping = /* @__PURE__ */ __name(function SourceMapGenerator_addMapping(aArgs) {
      var generated = util11.getArg(aArgs, "generated");
      var original = util11.getArg(aArgs, "original", null);
      var source = util11.getArg(aArgs, "source", null);
      var name = util11.getArg(aArgs, "name", null);
      if (!this._skipValidation) {
        this._validateMapping(generated, original, source, name);
      }
      if (source != null) {
        source = String(source);
        if (!this._sources.has(source)) {
          this._sources.add(source);
        }
      }
      if (name != null) {
        name = String(name);
        if (!this._names.has(name)) {
          this._names.add(name);
        }
      }
      this._mappings.add({
        generatedLine: generated.line,
        generatedColumn: generated.column,
        originalLine: original != null && original.line,
        originalColumn: original != null && original.column,
        source,
        name
      });
    }, "SourceMapGenerator_addMapping");
    SourceMapGenerator.prototype.setSourceContent = /* @__PURE__ */ __name(function SourceMapGenerator_setSourceContent(aSourceFile, aSourceContent) {
      var source = aSourceFile;
      if (this._sourceRoot != null) {
        source = util11.relative(this._sourceRoot, source);
      }
      if (aSourceContent != null) {
        if (!this._sourcesContents) {
          this._sourcesContents = /* @__PURE__ */ Object.create(null);
        }
        this._sourcesContents[util11.toSetString(source)] = aSourceContent;
      } else if (this._sourcesContents) {
        delete this._sourcesContents[util11.toSetString(source)];
        if (Object.keys(this._sourcesContents).length === 0) {
          this._sourcesContents = null;
        }
      }
    }, "SourceMapGenerator_setSourceContent");
    SourceMapGenerator.prototype.applySourceMap = /* @__PURE__ */ __name(function SourceMapGenerator_applySourceMap(aSourceMapConsumer, aSourceFile, aSourceMapPath) {
      var sourceFile = aSourceFile;
      if (aSourceFile == null) {
        if (aSourceMapConsumer.file == null) {
          throw new Error(
            `SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`
          );
        }
        sourceFile = aSourceMapConsumer.file;
      }
      var sourceRoot = this._sourceRoot;
      if (sourceRoot != null) {
        sourceFile = util11.relative(sourceRoot, sourceFile);
      }
      var newSources = new ArraySet();
      var newNames = new ArraySet();
      this._mappings.unsortedForEach(function(mapping) {
        if (mapping.source === sourceFile && mapping.originalLine != null) {
          var original = aSourceMapConsumer.originalPositionFor({
            line: mapping.originalLine,
            column: mapping.originalColumn
          });
          if (original.source != null) {
            mapping.source = original.source;
            if (aSourceMapPath != null) {
              mapping.source = util11.join(aSourceMapPath, mapping.source);
            }
            if (sourceRoot != null) {
              mapping.source = util11.relative(sourceRoot, mapping.source);
            }
            mapping.originalLine = original.line;
            mapping.originalColumn = original.column;
            if (original.name != null) {
              mapping.name = original.name;
            }
          }
        }
        var source = mapping.source;
        if (source != null && !newSources.has(source)) {
          newSources.add(source);
        }
        var name = mapping.name;
        if (name != null && !newNames.has(name)) {
          newNames.add(name);
        }
      }, this);
      this._sources = newSources;
      this._names = newNames;
      aSourceMapConsumer.sources.forEach(function(sourceFile2) {
        var content = aSourceMapConsumer.sourceContentFor(sourceFile2);
        if (content != null) {
          if (aSourceMapPath != null) {
            sourceFile2 = util11.join(aSourceMapPath, sourceFile2);
          }
          if (sourceRoot != null) {
            sourceFile2 = util11.relative(sourceRoot, sourceFile2);
          }
          this.setSourceContent(sourceFile2, content);
        }
      }, this);
    }, "SourceMapGenerator_applySourceMap");
    SourceMapGenerator.prototype._validateMapping = /* @__PURE__ */ __name(function SourceMapGenerator_validateMapping(aGenerated, aOriginal, aSource, aName) {
      if (aOriginal && typeof aOriginal.line !== "number" && typeof aOriginal.column !== "number") {
        throw new Error(
          "original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values."
        );
      }
      if (aGenerated && "line" in aGenerated && "column" in aGenerated && aGenerated.line > 0 && aGenerated.column >= 0 && !aOriginal && !aSource && !aName) {
        return;
      } else if (aGenerated && "line" in aGenerated && "column" in aGenerated && aOriginal && "line" in aOriginal && "column" in aOriginal && aGenerated.line > 0 && aGenerated.column >= 0 && aOriginal.line > 0 && aOriginal.column >= 0 && aSource) {
        return;
      } else {
        throw new Error("Invalid mapping: " + JSON.stringify({
          generated: aGenerated,
          source: aSource,
          original: aOriginal,
          name: aName
        }));
      }
    }, "SourceMapGenerator_validateMapping");
    SourceMapGenerator.prototype._serializeMappings = /* @__PURE__ */ __name(function SourceMapGenerator_serializeMappings() {
      var previousGeneratedColumn = 0;
      var previousGeneratedLine = 1;
      var previousOriginalColumn = 0;
      var previousOriginalLine = 0;
      var previousName = 0;
      var previousSource = 0;
      var result2 = "";
      var next;
      var mapping;
      var nameIdx;
      var sourceIdx;
      var mappings = this._mappings.toArray();
      for (var i3 = 0, len = mappings.length; i3 < len; i3++) {
        mapping = mappings[i3];
        next = "";
        if (mapping.generatedLine !== previousGeneratedLine) {
          previousGeneratedColumn = 0;
          while (mapping.generatedLine !== previousGeneratedLine) {
            next += ";";
            previousGeneratedLine++;
          }
        } else {
          if (i3 > 0) {
            if (!util11.compareByGeneratedPositionsInflated(mapping, mappings[i3 - 1])) {
              continue;
            }
            next += ",";
          }
        }
        next += base64VLQ.encode(mapping.generatedColumn - previousGeneratedColumn);
        previousGeneratedColumn = mapping.generatedColumn;
        if (mapping.source != null) {
          sourceIdx = this._sources.indexOf(mapping.source);
          next += base64VLQ.encode(sourceIdx - previousSource);
          previousSource = sourceIdx;
          next += base64VLQ.encode(mapping.originalLine - 1 - previousOriginalLine);
          previousOriginalLine = mapping.originalLine - 1;
          next += base64VLQ.encode(mapping.originalColumn - previousOriginalColumn);
          previousOriginalColumn = mapping.originalColumn;
          if (mapping.name != null) {
            nameIdx = this._names.indexOf(mapping.name);
            next += base64VLQ.encode(nameIdx - previousName);
            previousName = nameIdx;
          }
        }
        result2 += next;
      }
      return result2;
    }, "SourceMapGenerator_serializeMappings");
    SourceMapGenerator.prototype._generateSourcesContent = /* @__PURE__ */ __name(function SourceMapGenerator_generateSourcesContent(aSources, aSourceRoot) {
      return aSources.map(function(source) {
        if (!this._sourcesContents) {
          return null;
        }
        if (aSourceRoot != null) {
          source = util11.relative(aSourceRoot, source);
        }
        var key = util11.toSetString(source);
        return Object.prototype.hasOwnProperty.call(this._sourcesContents, key) ? this._sourcesContents[key] : null;
      }, this);
    }, "SourceMapGenerator_generateSourcesContent");
    SourceMapGenerator.prototype.toJSON = /* @__PURE__ */ __name(function SourceMapGenerator_toJSON() {
      var map3 = {
        version: this._version,
        sources: this._sources.toArray(),
        names: this._names.toArray(),
        mappings: this._serializeMappings()
      };
      if (this._file != null) {
        map3.file = this._file;
      }
      if (this._sourceRoot != null) {
        map3.sourceRoot = this._sourceRoot;
      }
      if (this._sourcesContents) {
        map3.sourcesContent = this._generateSourcesContent(map3.sources, map3.sourceRoot);
      }
      return map3;
    }, "SourceMapGenerator_toJSON");
    SourceMapGenerator.prototype.toString = /* @__PURE__ */ __name(function SourceMapGenerator_toString() {
      return JSON.stringify(this.toJSON());
    }, "SourceMapGenerator_toString");
    exports2.SourceMapGenerator = SourceMapGenerator;
  }
});

// ../../node_modules/source-map/lib/binary-search.js
var require_binary_search = __commonJS({
  "../../node_modules/source-map/lib/binary-search.js"(exports2) {
    exports2.GREATEST_LOWER_BOUND = 1;
    exports2.LEAST_UPPER_BOUND = 2;
    function recursiveSearch(aLow, aHigh, aNeedle, aHaystack, aCompare, aBias) {
      var mid = Math.floor((aHigh - aLow) / 2) + aLow;
      var cmp = aCompare(aNeedle, aHaystack[mid], true);
      if (cmp === 0) {
        return mid;
      } else if (cmp > 0) {
        if (aHigh - mid > 1) {
          return recursiveSearch(mid, aHigh, aNeedle, aHaystack, aCompare, aBias);
        }
        if (aBias == exports2.LEAST_UPPER_BOUND) {
          return aHigh < aHaystack.length ? aHigh : -1;
        } else {
          return mid;
        }
      } else {
        if (mid - aLow > 1) {
          return recursiveSearch(aLow, mid, aNeedle, aHaystack, aCompare, aBias);
        }
        if (aBias == exports2.LEAST_UPPER_BOUND) {
          return mid;
        } else {
          return aLow < 0 ? -1 : aLow;
        }
      }
    }
    __name(recursiveSearch, "recursiveSearch");
    exports2.search = /* @__PURE__ */ __name(function search(aNeedle, aHaystack, aCompare, aBias) {
      if (aHaystack.length === 0) {
        return -1;
      }
      var index = recursiveSearch(
        -1,
        aHaystack.length,
        aNeedle,
        aHaystack,
        aCompare,
        aBias || exports2.GREATEST_LOWER_BOUND
      );
      if (index < 0) {
        return -1;
      }
      while (index - 1 >= 0) {
        if (aCompare(aHaystack[index], aHaystack[index - 1], true) !== 0) {
          break;
        }
        --index;
      }
      return index;
    }, "search");
  }
});

// ../../node_modules/source-map/lib/quick-sort.js
var require_quick_sort = __commonJS({
  "../../node_modules/source-map/lib/quick-sort.js"(exports2) {
    function swap(ary, x3, y2) {
      var temp = ary[x3];
      ary[x3] = ary[y2];
      ary[y2] = temp;
    }
    __name(swap, "swap");
    function randomIntInRange(low, high) {
      return Math.round(low + Math.random() * (high - low));
    }
    __name(randomIntInRange, "randomIntInRange");
    function doQuickSort(ary, comparator, p3, r3) {
      if (p3 < r3) {
        var pivotIndex = randomIntInRange(p3, r3);
        var i3 = p3 - 1;
        swap(ary, pivotIndex, r3);
        var pivot = ary[r3];
        for (var j3 = p3; j3 < r3; j3++) {
          if (comparator(ary[j3], pivot) <= 0) {
            i3 += 1;
            swap(ary, i3, j3);
          }
        }
        swap(ary, i3 + 1, j3);
        var q3 = i3 + 1;
        doQuickSort(ary, comparator, p3, q3 - 1);
        doQuickSort(ary, comparator, q3 + 1, r3);
      }
    }
    __name(doQuickSort, "doQuickSort");
    exports2.quickSort = function(ary, comparator) {
      doQuickSort(ary, comparator, 0, ary.length - 1);
    };
  }
});

// ../../node_modules/source-map/lib/source-map-consumer.js
var require_source_map_consumer = __commonJS({
  "../../node_modules/source-map/lib/source-map-consumer.js"(exports2) {
    var util11 = require_util10();
    var binarySearch = require_binary_search();
    var ArraySet = require_array_set().ArraySet;
    var base64VLQ = require_base64_vlq();
    var quickSort = require_quick_sort().quickSort;
    function SourceMapConsumer(aSourceMap, aSourceMapURL) {
      var sourceMap = aSourceMap;
      if (typeof aSourceMap === "string") {
        sourceMap = util11.parseSourceMapInput(aSourceMap);
      }
      return sourceMap.sections != null ? new IndexedSourceMapConsumer(sourceMap, aSourceMapURL) : new BasicSourceMapConsumer(sourceMap, aSourceMapURL);
    }
    __name(SourceMapConsumer, "SourceMapConsumer");
    SourceMapConsumer.fromSourceMap = function(aSourceMap, aSourceMapURL) {
      return BasicSourceMapConsumer.fromSourceMap(aSourceMap, aSourceMapURL);
    };
    SourceMapConsumer.prototype._version = 3;
    SourceMapConsumer.prototype.__generatedMappings = null;
    Object.defineProperty(SourceMapConsumer.prototype, "_generatedMappings", {
      configurable: true,
      enumerable: true,
      get: /* @__PURE__ */ __name(function() {
        if (!this.__generatedMappings) {
          this._parseMappings(this._mappings, this.sourceRoot);
        }
        return this.__generatedMappings;
      }, "get")
    });
    SourceMapConsumer.prototype.__originalMappings = null;
    Object.defineProperty(SourceMapConsumer.prototype, "_originalMappings", {
      configurable: true,
      enumerable: true,
      get: /* @__PURE__ */ __name(function() {
        if (!this.__originalMappings) {
          this._parseMappings(this._mappings, this.sourceRoot);
        }
        return this.__originalMappings;
      }, "get")
    });
    SourceMapConsumer.prototype._charIsMappingSeparator = /* @__PURE__ */ __name(function SourceMapConsumer_charIsMappingSeparator(aStr, index) {
      var c3 = aStr.charAt(index);
      return c3 === ";" || c3 === ",";
    }, "SourceMapConsumer_charIsMappingSeparator");
    SourceMapConsumer.prototype._parseMappings = /* @__PURE__ */ __name(function SourceMapConsumer_parseMappings(aStr, aSourceRoot) {
      throw new Error("Subclasses must implement _parseMappings");
    }, "SourceMapConsumer_parseMappings");
    SourceMapConsumer.GENERATED_ORDER = 1;
    SourceMapConsumer.ORIGINAL_ORDER = 2;
    SourceMapConsumer.GREATEST_LOWER_BOUND = 1;
    SourceMapConsumer.LEAST_UPPER_BOUND = 2;
    SourceMapConsumer.prototype.eachMapping = /* @__PURE__ */ __name(function SourceMapConsumer_eachMapping(aCallback, aContext, aOrder) {
      var context = aContext || null;
      var order = aOrder || SourceMapConsumer.GENERATED_ORDER;
      var mappings;
      switch (order) {
        case SourceMapConsumer.GENERATED_ORDER:
          mappings = this._generatedMappings;
          break;
        case SourceMapConsumer.ORIGINAL_ORDER:
          mappings = this._originalMappings;
          break;
        default:
          throw new Error("Unknown order of iteration.");
      }
      var sourceRoot = this.sourceRoot;
      mappings.map(function(mapping) {
        var source = mapping.source === null ? null : this._sources.at(mapping.source);
        source = util11.computeSourceURL(sourceRoot, source, this._sourceMapURL);
        return {
          source,
          generatedLine: mapping.generatedLine,
          generatedColumn: mapping.generatedColumn,
          originalLine: mapping.originalLine,
          originalColumn: mapping.originalColumn,
          name: mapping.name === null ? null : this._names.at(mapping.name)
        };
      }, this).forEach(aCallback, context);
    }, "SourceMapConsumer_eachMapping");
    SourceMapConsumer.prototype.allGeneratedPositionsFor = /* @__PURE__ */ __name(function SourceMapConsumer_allGeneratedPositionsFor(aArgs) {
      var line = util11.getArg(aArgs, "line");
      var needle = {
        source: util11.getArg(aArgs, "source"),
        originalLine: line,
        originalColumn: util11.getArg(aArgs, "column", 0)
      };
      needle.source = this._findSourceIndex(needle.source);
      if (needle.source < 0) {
        return [];
      }
      var mappings = [];
      var index = this._findMapping(
        needle,
        this._originalMappings,
        "originalLine",
        "originalColumn",
        util11.compareByOriginalPositions,
        binarySearch.LEAST_UPPER_BOUND
      );
      if (index >= 0) {
        var mapping = this._originalMappings[index];
        if (aArgs.column === void 0) {
          var originalLine = mapping.originalLine;
          while (mapping && mapping.originalLine === originalLine) {
            mappings.push({
              line: util11.getArg(mapping, "generatedLine", null),
              column: util11.getArg(mapping, "generatedColumn", null),
              lastColumn: util11.getArg(mapping, "lastGeneratedColumn", null)
            });
            mapping = this._originalMappings[++index];
          }
        } else {
          var originalColumn = mapping.originalColumn;
          while (mapping && mapping.originalLine === line && mapping.originalColumn == originalColumn) {
            mappings.push({
              line: util11.getArg(mapping, "generatedLine", null),
              column: util11.getArg(mapping, "generatedColumn", null),
              lastColumn: util11.getArg(mapping, "lastGeneratedColumn", null)
            });
            mapping = this._originalMappings[++index];
          }
        }
      }
      return mappings;
    }, "SourceMapConsumer_allGeneratedPositionsFor");
    exports2.SourceMapConsumer = SourceMapConsumer;
    function BasicSourceMapConsumer(aSourceMap, aSourceMapURL) {
      var sourceMap = aSourceMap;
      if (typeof aSourceMap === "string") {
        sourceMap = util11.parseSourceMapInput(aSourceMap);
      }
      var version2 = util11.getArg(sourceMap, "version");
      var sources = util11.getArg(sourceMap, "sources");
      var names = util11.getArg(sourceMap, "names", []);
      var sourceRoot = util11.getArg(sourceMap, "sourceRoot", null);
      var sourcesContent = util11.getArg(sourceMap, "sourcesContent", null);
      var mappings = util11.getArg(sourceMap, "mappings");
      var file = util11.getArg(sourceMap, "file", null);
      if (version2 != this._version) {
        throw new Error("Unsupported version: " + version2);
      }
      if (sourceRoot) {
        sourceRoot = util11.normalize(sourceRoot);
      }
      sources = sources.map(String).map(util11.normalize).map(function(source) {
        return sourceRoot && util11.isAbsolute(sourceRoot) && util11.isAbsolute(source) ? util11.relative(sourceRoot, source) : source;
      });
      this._names = ArraySet.fromArray(names.map(String), true);
      this._sources = ArraySet.fromArray(sources, true);
      this._absoluteSources = this._sources.toArray().map(function(s3) {
        return util11.computeSourceURL(sourceRoot, s3, aSourceMapURL);
      });
      this.sourceRoot = sourceRoot;
      this.sourcesContent = sourcesContent;
      this._mappings = mappings;
      this._sourceMapURL = aSourceMapURL;
      this.file = file;
    }
    __name(BasicSourceMapConsumer, "BasicSourceMapConsumer");
    BasicSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype);
    BasicSourceMapConsumer.prototype.consumer = SourceMapConsumer;
    BasicSourceMapConsumer.prototype._findSourceIndex = function(aSource) {
      var relativeSource = aSource;
      if (this.sourceRoot != null) {
        relativeSource = util11.relative(this.sourceRoot, relativeSource);
      }
      if (this._sources.has(relativeSource)) {
        return this._sources.indexOf(relativeSource);
      }
      var i3;
      for (i3 = 0; i3 < this._absoluteSources.length; ++i3) {
        if (this._absoluteSources[i3] == aSource) {
          return i3;
        }
      }
      return -1;
    };
    BasicSourceMapConsumer.fromSourceMap = /* @__PURE__ */ __name(function SourceMapConsumer_fromSourceMap(aSourceMap, aSourceMapURL) {
      var smc = Object.create(BasicSourceMapConsumer.prototype);
      var names = smc._names = ArraySet.fromArray(aSourceMap._names.toArray(), true);
      var sources = smc._sources = ArraySet.fromArray(aSourceMap._sources.toArray(), true);
      smc.sourceRoot = aSourceMap._sourceRoot;
      smc.sourcesContent = aSourceMap._generateSourcesContent(
        smc._sources.toArray(),
        smc.sourceRoot
      );
      smc.file = aSourceMap._file;
      smc._sourceMapURL = aSourceMapURL;
      smc._absoluteSources = smc._sources.toArray().map(function(s3) {
        return util11.computeSourceURL(smc.sourceRoot, s3, aSourceMapURL);
      });
      var generatedMappings = aSourceMap._mappings.toArray().slice();
      var destGeneratedMappings = smc.__generatedMappings = [];
      var destOriginalMappings = smc.__originalMappings = [];
      for (var i3 = 0, length = generatedMappings.length; i3 < length; i3++) {
        var srcMapping = generatedMappings[i3];
        var destMapping = new Mapping();
        destMapping.generatedLine = srcMapping.generatedLine;
        destMapping.generatedColumn = srcMapping.generatedColumn;
        if (srcMapping.source) {
          destMapping.source = sources.indexOf(srcMapping.source);
          destMapping.originalLine = srcMapping.originalLine;
          destMapping.originalColumn = srcMapping.originalColumn;
          if (srcMapping.name) {
            destMapping.name = names.indexOf(srcMapping.name);
          }
          destOriginalMappings.push(destMapping);
        }
        destGeneratedMappings.push(destMapping);
      }
      quickSort(smc.__originalMappings, util11.compareByOriginalPositions);
      return smc;
    }, "SourceMapConsumer_fromSourceMap");
    BasicSourceMapConsumer.prototype._version = 3;
    Object.defineProperty(BasicSourceMapConsumer.prototype, "sources", {
      get: /* @__PURE__ */ __name(function() {
        return this._absoluteSources.slice();
      }, "get")
    });
    function Mapping() {
      this.generatedLine = 0;
      this.generatedColumn = 0;
      this.source = null;
      this.originalLine = null;
      this.originalColumn = null;
      this.name = null;
    }
    __name(Mapping, "Mapping");
    BasicSourceMapConsumer.prototype._parseMappings = /* @__PURE__ */ __name(function SourceMapConsumer_parseMappings(aStr, aSourceRoot) {
      var generatedLine = 1;
      var previousGeneratedColumn = 0;
      var previousOriginalLine = 0;
      var previousOriginalColumn = 0;
      var previousSource = 0;
      var previousName = 0;
      var length = aStr.length;
      var index = 0;
      var cachedSegments = {};
      var temp = {};
      var originalMappings = [];
      var generatedMappings = [];
      var mapping, str, segment, end, value;
      while (index < length) {
        if (aStr.charAt(index) === ";") {
          generatedLine++;
          index++;
          previousGeneratedColumn = 0;
        } else if (aStr.charAt(index) === ",") {
          index++;
        } else {
          mapping = new Mapping();
          mapping.generatedLine = generatedLine;
          for (end = index; end < length; end++) {
            if (this._charIsMappingSeparator(aStr, end)) {
              break;
            }
          }
          str = aStr.slice(index, end);
          segment = cachedSegments[str];
          if (segment) {
            index += str.length;
          } else {
            segment = [];
            while (index < end) {
              base64VLQ.decode(aStr, index, temp);
              value = temp.value;
              index = temp.rest;
              segment.push(value);
            }
            if (segment.length === 2) {
              throw new Error("Found a source, but no line and column");
            }
            if (segment.length === 3) {
              throw new Error("Found a source and line, but no column");
            }
            cachedSegments[str] = segment;
          }
          mapping.generatedColumn = previousGeneratedColumn + segment[0];
          previousGeneratedColumn = mapping.generatedColumn;
          if (segment.length > 1) {
            mapping.source = previousSource + segment[1];
            previousSource += segment[1];
            mapping.originalLine = previousOriginalLine + segment[2];
            previousOriginalLine = mapping.originalLine;
            mapping.originalLine += 1;
            mapping.originalColumn = previousOriginalColumn + segment[3];
            previousOriginalColumn = mapping.originalColumn;
            if (segment.length > 4) {
              mapping.name = previousName + segment[4];
              previousName += segment[4];
            }
          }
          generatedMappings.push(mapping);
          if (typeof mapping.originalLine === "number") {
            originalMappings.push(mapping);
          }
        }
      }
      quickSort(generatedMappings, util11.compareByGeneratedPositionsDeflated);
      this.__generatedMappings = generatedMappings;
      quickSort(originalMappings, util11.compareByOriginalPositions);
      this.__originalMappings = originalMappings;
    }, "SourceMapConsumer_parseMappings");
    BasicSourceMapConsumer.prototype._findMapping = /* @__PURE__ */ __name(function SourceMapConsumer_findMapping(aNeedle, aMappings, aLineName, aColumnName, aComparator, aBias) {
      if (aNeedle[aLineName] <= 0) {
        throw new TypeError("Line must be greater than or equal to 1, got " + aNeedle[aLineName]);
      }
      if (aNeedle[aColumnName] < 0) {
        throw new TypeError("Column must be greater than or equal to 0, got " + aNeedle[aColumnName]);
      }
      return binarySearch.search(aNeedle, aMappings, aComparator, aBias);
    }, "SourceMapConsumer_findMapping");
    BasicSourceMapConsumer.prototype.computeColumnSpans = /* @__PURE__ */ __name(function SourceMapConsumer_computeColumnSpans() {
      for (var index = 0; index < this._generatedMappings.length; ++index) {
        var mapping = this._generatedMappings[index];
        if (index + 1 < this._generatedMappings.length) {
          var nextMapping = this._generatedMappings[index + 1];
          if (mapping.generatedLine === nextMapping.generatedLine) {
            mapping.lastGeneratedColumn = nextMapping.generatedColumn - 1;
            continue;
          }
        }
        mapping.lastGeneratedColumn = Infinity;
      }
    }, "SourceMapConsumer_computeColumnSpans");
    BasicSourceMapConsumer.prototype.originalPositionFor = /* @__PURE__ */ __name(function SourceMapConsumer_originalPositionFor(aArgs) {
      var needle = {
        generatedLine: util11.getArg(aArgs, "line"),
        generatedColumn: util11.getArg(aArgs, "column")
      };
      var index = this._findMapping(
        needle,
        this._generatedMappings,
        "generatedLine",
        "generatedColumn",
        util11.compareByGeneratedPositionsDeflated,
        util11.getArg(aArgs, "bias", SourceMapConsumer.GREATEST_LOWER_BOUND)
      );
      if (index >= 0) {
        var mapping = this._generatedMappings[index];
        if (mapping.generatedLine === needle.generatedLine) {
          var source = util11.getArg(mapping, "source", null);
          if (source !== null) {
            source = this._sources.at(source);
            source = util11.computeSourceURL(this.sourceRoot, source, this._sourceMapURL);
          }
          var name = util11.getArg(mapping, "name", null);
          if (name !== null) {
            name = this._names.at(name);
          }
          return {
            source,
            line: util11.getArg(mapping, "originalLine", null),
            column: util11.getArg(mapping, "originalColumn", null),
            name
          };
        }
      }
      return {
        source: null,
        line: null,
        column: null,
        name: null
      };
    }, "SourceMapConsumer_originalPositionFor");
    BasicSourceMapConsumer.prototype.hasContentsOfAllSources = /* @__PURE__ */ __name(function BasicSourceMapConsumer_hasContentsOfAllSources() {
      if (!this.sourcesContent) {
        return false;
      }
      return this.sourcesContent.length >= this._sources.size() && !this.sourcesContent.some(function(sc) {
        return sc == null;
      });
    }, "BasicSourceMapConsumer_hasContentsOfAllSources");
    BasicSourceMapConsumer.prototype.sourceContentFor = /* @__PURE__ */ __name(function SourceMapConsumer_sourceContentFor(aSource, nullOnMissing) {
      if (!this.sourcesContent) {
        return null;
      }
      var index = this._findSourceIndex(aSource);
      if (index >= 0) {
        return this.sourcesContent[index];
      }
      var relativeSource = aSource;
      if (this.sourceRoot != null) {
        relativeSource = util11.relative(this.sourceRoot, relativeSource);
      }
      var url;
      if (this.sourceRoot != null && (url = util11.urlParse(this.sourceRoot))) {
        var fileUriAbsPath = relativeSource.replace(/^file:\/\//, "");
        if (url.scheme == "file" && this._sources.has(fileUriAbsPath)) {
          return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)];
        }
        if ((!url.path || url.path == "/") && this._sources.has("/" + relativeSource)) {
          return this.sourcesContent[this._sources.indexOf("/" + relativeSource)];
        }
      }
      if (nullOnMissing) {
        return null;
      } else {
        throw new Error('"' + relativeSource + '" is not in the SourceMap.');
      }
    }, "SourceMapConsumer_sourceContentFor");
    BasicSourceMapConsumer.prototype.generatedPositionFor = /* @__PURE__ */ __name(function SourceMapConsumer_generatedPositionFor(aArgs) {
      var source = util11.getArg(aArgs, "source");
      source = this._findSourceIndex(source);
      if (source < 0) {
        return {
          line: null,
          column: null,
          lastColumn: null
        };
      }
      var needle = {
        source,
        originalLine: util11.getArg(aArgs, "line"),
        originalColumn: util11.getArg(aArgs, "column")
      };
      var index = this._findMapping(
        needle,
        this._originalMappings,
        "originalLine",
        "originalColumn",
        util11.compareByOriginalPositions,
        util11.getArg(aArgs, "bias", SourceMapConsumer.GREATEST_LOWER_BOUND)
      );
      if (index >= 0) {
        var mapping = this._originalMappings[index];
        if (mapping.source === needle.source) {
          return {
            line: util11.getArg(mapping, "generatedLine", null),
            column: util11.getArg(mapping, "generatedColumn", null),
            lastColumn: util11.getArg(mapping, "lastGeneratedColumn", null)
          };
        }
      }
      return {
        line: null,
        column: null,
        lastColumn: null
      };
    }, "SourceMapConsumer_generatedPositionFor");
    exports2.BasicSourceMapConsumer = BasicSourceMapConsumer;
    function IndexedSourceMapConsumer(aSourceMap, aSourceMapURL) {
      var sourceMap = aSourceMap;
      if (typeof aSourceMap === "string") {
        sourceMap = util11.parseSourceMapInput(aSourceMap);
      }
      var version2 = util11.getArg(sourceMap, "version");
      var sections = util11.getArg(sourceMap, "sections");
      if (version2 != this._version) {
        throw new Error("Unsupported version: " + version2);
      }
      this._sources = new ArraySet();
      this._names = new ArraySet();
      var lastOffset = {
        line: -1,
        column: 0
      };
      this._sections = sections.map(function(s3) {
        if (s3.url) {
          throw new Error("Support for url field in sections not implemented.");
        }
        var offset = util11.getArg(s3, "offset");
        var offsetLine = util11.getArg(offset, "line");
        var offsetColumn = util11.getArg(offset, "column");
        if (offsetLine < lastOffset.line || offsetLine === lastOffset.line && offsetColumn < lastOffset.column) {
          throw new Error("Section offsets must be ordered and non-overlapping.");
        }
        lastOffset = offset;
        return {
          generatedOffset: {
            // The offset fields are 0-based, but we use 1-based indices when
            // encoding/decoding from VLQ.
            generatedLine: offsetLine + 1,
            generatedColumn: offsetColumn + 1
          },
          consumer: new SourceMapConsumer(util11.getArg(s3, "map"), aSourceMapURL)
        };
      });
    }
    __name(IndexedSourceMapConsumer, "IndexedSourceMapConsumer");
    IndexedSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype);
    IndexedSourceMapConsumer.prototype.constructor = SourceMapConsumer;
    IndexedSourceMapConsumer.prototype._version = 3;
    Object.defineProperty(IndexedSourceMapConsumer.prototype, "sources", {
      get: /* @__PURE__ */ __name(function() {
        var sources = [];
        for (var i3 = 0; i3 < this._sections.length; i3++) {
          for (var j3 = 0; j3 < this._sections[i3].consumer.sources.length; j3++) {
            sources.push(this._sections[i3].consumer.sources[j3]);
          }
        }
        return sources;
      }, "get")
    });
    IndexedSourceMapConsumer.prototype.originalPositionFor = /* @__PURE__ */ __name(function IndexedSourceMapConsumer_originalPositionFor(aArgs) {
      var needle = {
        generatedLine: util11.getArg(aArgs, "line"),
        generatedColumn: util11.getArg(aArgs, "column")
      };
      var sectionIndex = binarySearch.search(
        needle,
        this._sections,
        function(needle2, section2) {
          var cmp = needle2.generatedLine - section2.generatedOffset.generatedLine;
          if (cmp) {
            return cmp;
          }
          return needle2.generatedColumn - section2.generatedOffset.generatedColumn;
        }
      );
      var section = this._sections[sectionIndex];
      if (!section) {
        return {
          source: null,
          line: null,
          column: null,
          name: null
        };
      }
      return section.consumer.originalPositionFor({
        line: needle.generatedLine - (section.generatedOffset.generatedLine - 1),
        column: needle.generatedColumn - (section.generatedOffset.generatedLine === needle.generatedLine ? section.generatedOffset.generatedColumn - 1 : 0),
        bias: aArgs.bias
      });
    }, "IndexedSourceMapConsumer_originalPositionFor");
    IndexedSourceMapConsumer.prototype.hasContentsOfAllSources = /* @__PURE__ */ __name(function IndexedSourceMapConsumer_hasContentsOfAllSources() {
      return this._sections.every(function(s3) {
        return s3.consumer.hasContentsOfAllSources();
      });
    }, "IndexedSourceMapConsumer_hasContentsOfAllSources");
    IndexedSourceMapConsumer.prototype.sourceContentFor = /* @__PURE__ */ __name(function IndexedSourceMapConsumer_sourceContentFor(aSource, nullOnMissing) {
      for (var i3 = 0; i3 < this._sections.length; i3++) {
        var section = this._sections[i3];
        var content = section.consumer.sourceContentFor(aSource, true);
        if (content) {
          return content;
        }
      }
      if (nullOnMissing) {
        return null;
      } else {
        throw new Error('"' + aSource + '" is not in the SourceMap.');
      }
    }, "IndexedSourceMapConsumer_sourceContentFor");
    IndexedSourceMapConsumer.prototype.generatedPositionFor = /* @__PURE__ */ __name(function IndexedSourceMapConsumer_generatedPositionFor(aArgs) {
      for (var i3 = 0; i3 < this._sections.length; i3++) {
        var section = this._sections[i3];
        if (section.consumer._findSourceIndex(util11.getArg(aArgs, "source")) === -1) {
          continue;
        }
        var generatedPosition = section.consumer.generatedPositionFor(aArgs);
        if (generatedPosition) {
          var ret = {
            line: generatedPosition.line + (section.generatedOffset.generatedLine - 1),
            column: generatedPosition.column + (section.generatedOffset.generatedLine === generatedPosition.line ? section.generatedOffset.generatedColumn - 1 : 0)
          };
          return ret;
        }
      }
      return {
        line: null,
        column: null
      };
    }, "IndexedSourceMapConsumer_generatedPositionFor");
    IndexedSourceMapConsumer.prototype._parseMappings = /* @__PURE__ */ __name(function IndexedSourceMapConsumer_parseMappings(aStr, aSourceRoot) {
      this.__generatedMappings = [];
      this.__originalMappings = [];
      for (var i3 = 0; i3 < this._sections.length; i3++) {
        var section = this._sections[i3];
        var sectionMappings = section.consumer._generatedMappings;
        for (var j3 = 0; j3 < sectionMappings.length; j3++) {
          var mapping = sectionMappings[j3];
          var source = section.consumer._sources.at(mapping.source);
          source = util11.computeSourceURL(section.consumer.sourceRoot, source, this._sourceMapURL);
          this._sources.add(source);
          source = this._sources.indexOf(source);
          var name = null;
          if (mapping.name) {
            name = section.consumer._names.at(mapping.name);
            this._names.add(name);
            name = this._names.indexOf(name);
          }
          var adjustedMapping = {
            source,
            generatedLine: mapping.generatedLine + (section.generatedOffset.generatedLine - 1),
            generatedColumn: mapping.generatedColumn + (section.generatedOffset.generatedLine === mapping.generatedLine ? section.generatedOffset.generatedColumn - 1 : 0),
            originalLine: mapping.originalLine,
            originalColumn: mapping.originalColumn,
            name
          };
          this.__generatedMappings.push(adjustedMapping);
          if (typeof adjustedMapping.originalLine === "number") {
            this.__originalMappings.push(adjustedMapping);
          }
        }
      }
      quickSort(this.__generatedMappings, util11.compareByGeneratedPositionsDeflated);
      quickSort(this.__originalMappings, util11.compareByOriginalPositions);
    }, "IndexedSourceMapConsumer_parseMappings");
    exports2.IndexedSourceMapConsumer = IndexedSourceMapConsumer;
  }
});

// ../../node_modules/source-map/lib/source-node.js
var require_source_node = __commonJS({
  "../../node_modules/source-map/lib/source-node.js"(exports2) {
    var SourceMapGenerator = require_source_map_generator().SourceMapGenerator;
    var util11 = require_util10();
    var REGEX_NEWLINE = /(\r?\n)/;
    var NEWLINE_CODE = 10;
    var isSourceNode = "$$$isSourceNode$$$";
    function SourceNode(aLine, aColumn, aSource, aChunks, aName) {
      this.children = [];
      this.sourceContents = {};
      this.line = aLine == null ? null : aLine;
      this.column = aColumn == null ? null : aColumn;
      this.source = aSource == null ? null : aSource;
      this.name = aName == null ? null : aName;
      this[isSourceNode] = true;
      if (aChunks != null) this.add(aChunks);
    }
    __name(SourceNode, "SourceNode");
    SourceNode.fromStringWithSourceMap = /* @__PURE__ */ __name(function SourceNode_fromStringWithSourceMap(aGeneratedCode, aSourceMapConsumer, aRelativePath) {
      var node = new SourceNode();
      var remainingLines = aGeneratedCode.split(REGEX_NEWLINE);
      var remainingLinesIndex = 0;
      var shiftNextLine = /* @__PURE__ */ __name(function() {
        var lineContents = getNextLine();
        var newLine = getNextLine() || "";
        return lineContents + newLine;
        function getNextLine() {
          return remainingLinesIndex < remainingLines.length ? remainingLines[remainingLinesIndex++] : void 0;
        }
        __name(getNextLine, "getNextLine");
      }, "shiftNextLine");
      var lastGeneratedLine = 1, lastGeneratedColumn = 0;
      var lastMapping = null;
      aSourceMapConsumer.eachMapping(function(mapping) {
        if (lastMapping !== null) {
          if (lastGeneratedLine < mapping.generatedLine) {
            addMappingWithCode(lastMapping, shiftNextLine());
            lastGeneratedLine++;
            lastGeneratedColumn = 0;
          } else {
            var nextLine = remainingLines[remainingLinesIndex] || "";
            var code = nextLine.substr(0, mapping.generatedColumn - lastGeneratedColumn);
            remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn - lastGeneratedColumn);
            lastGeneratedColumn = mapping.generatedColumn;
            addMappingWithCode(lastMapping, code);
            lastMapping = mapping;
            return;
          }
        }
        while (lastGeneratedLine < mapping.generatedLine) {
          node.add(shiftNextLine());
          lastGeneratedLine++;
        }
        if (lastGeneratedColumn < mapping.generatedColumn) {
          var nextLine = remainingLines[remainingLinesIndex] || "";
          node.add(nextLine.substr(0, mapping.generatedColumn));
          remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn);
          lastGeneratedColumn = mapping.generatedColumn;
        }
        lastMapping = mapping;
      }, this);
      if (remainingLinesIndex < remainingLines.length) {
        if (lastMapping) {
          addMappingWithCode(lastMapping, shiftNextLine());
        }
        node.add(remainingLines.splice(remainingLinesIndex).join(""));
      }
      aSourceMapConsumer.sources.forEach(function(sourceFile) {
        var content = aSourceMapConsumer.sourceContentFor(sourceFile);
        if (content != null) {
          if (aRelativePath != null) {
            sourceFile = util11.join(aRelativePath, sourceFile);
          }
          node.setSourceContent(sourceFile, content);
        }
      });
      return node;
      function addMappingWithCode(mapping, code) {
        if (mapping === null || mapping.source === void 0) {
          node.add(code);
        } else {
          var source = aRelativePath ? util11.join(aRelativePath, mapping.source) : mapping.source;
          node.add(new SourceNode(
            mapping.originalLine,
            mapping.originalColumn,
            source,
            code,
            mapping.name
          ));
        }
      }
      __name(addMappingWithCode, "addMappingWithCode");
    }, "SourceNode_fromStringWithSourceMap");
    SourceNode.prototype.add = /* @__PURE__ */ __name(function SourceNode_add(aChunk) {
      if (Array.isArray(aChunk)) {
        aChunk.forEach(function(chunk) {
          this.add(chunk);
        }, this);
      } else if (aChunk[isSourceNode] || typeof aChunk === "string") {
        if (aChunk) {
          this.children.push(aChunk);
        }
      } else {
        throw new TypeError(
          "Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk
        );
      }
      return this;
    }, "SourceNode_add");
    SourceNode.prototype.prepend = /* @__PURE__ */ __name(function SourceNode_prepend(aChunk) {
      if (Array.isArray(aChunk)) {
        for (var i3 = aChunk.length - 1; i3 >= 0; i3--) {
          this.prepend(aChunk[i3]);
        }
      } else if (aChunk[isSourceNode] || typeof aChunk === "string") {
        this.children.unshift(aChunk);
      } else {
        throw new TypeError(
          "Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk
        );
      }
      return this;
    }, "SourceNode_prepend");
    SourceNode.prototype.walk = /* @__PURE__ */ __name(function SourceNode_walk(aFn) {
      var chunk;
      for (var i3 = 0, len = this.children.length; i3 < len; i3++) {
        chunk = this.children[i3];
        if (chunk[isSourceNode]) {
          chunk.walk(aFn);
        } else {
          if (chunk !== "") {
            aFn(chunk, {
              source: this.source,
              line: this.line,
              column: this.column,
              name: this.name
            });
          }
        }
      }
    }, "SourceNode_walk");
    SourceNode.prototype.join = /* @__PURE__ */ __name(function SourceNode_join(aSep) {
      var newChildren;
      var i3;
      var len = this.children.length;
      if (len > 0) {
        newChildren = [];
        for (i3 = 0; i3 < len - 1; i3++) {
          newChildren.push(this.children[i3]);
          newChildren.push(aSep);
        }
        newChildren.push(this.children[i3]);
        this.children = newChildren;
      }
      return this;
    }, "SourceNode_join");
    SourceNode.prototype.replaceRight = /* @__PURE__ */ __name(function SourceNode_replaceRight(aPattern, aReplacement) {
      var lastChild = this.children[this.children.length - 1];
      if (lastChild[isSourceNode]) {
        lastChild.replaceRight(aPattern, aReplacement);
      } else if (typeof lastChild === "string") {
        this.children[this.children.length - 1] = lastChild.replace(aPattern, aReplacement);
      } else {
        this.children.push("".replace(aPattern, aReplacement));
      }
      return this;
    }, "SourceNode_replaceRight");
    SourceNode.prototype.setSourceContent = /* @__PURE__ */ __name(function SourceNode_setSourceContent(aSourceFile, aSourceContent) {
      this.sourceContents[util11.toSetString(aSourceFile)] = aSourceContent;
    }, "SourceNode_setSourceContent");
    SourceNode.prototype.walkSourceContents = /* @__PURE__ */ __name(function SourceNode_walkSourceContents(aFn) {
      for (var i3 = 0, len = this.children.length; i3 < len; i3++) {
        if (this.children[i3][isSourceNode]) {
          this.children[i3].walkSourceContents(aFn);
        }
      }
      var sources = Object.keys(this.sourceContents);
      for (var i3 = 0, len = sources.length; i3 < len; i3++) {
        aFn(util11.fromSetString(sources[i3]), this.sourceContents[sources[i3]]);
      }
    }, "SourceNode_walkSourceContents");
    SourceNode.prototype.toString = /* @__PURE__ */ __name(function SourceNode_toString() {
      var str = "";
      this.walk(function(chunk) {
        str += chunk;
      });
      return str;
    }, "SourceNode_toString");
    SourceNode.prototype.toStringWithSourceMap = /* @__PURE__ */ __name(function SourceNode_toStringWithSourceMap(aArgs) {
      var generated = {
        code: "",
        line: 1,
        column: 0
      };
      var map3 = new SourceMapGenerator(aArgs);
      var sourceMappingActive = false;
      var lastOriginalSource = null;
      var lastOriginalLine = null;
      var lastOriginalColumn = null;
      var lastOriginalName = null;
      this.walk(function(chunk, original) {
        generated.code += chunk;
        if (original.source !== null && original.line !== null && original.column !== null) {
          if (lastOriginalSource !== original.source || lastOriginalLine !== original.line || lastOriginalColumn !== original.column || lastOriginalName !== original.name) {
            map3.addMapping({
              source: original.source,
              original: {
                line: original.line,
                column: original.column
              },
              generated: {
                line: generated.line,
                column: generated.column
              },
              name: original.name
            });
          }
          lastOriginalSource = original.source;
          lastOriginalLine = original.line;
          lastOriginalColumn = original.column;
          lastOriginalName = original.name;
          sourceMappingActive = true;
        } else if (sourceMappingActive) {
          map3.addMapping({
            generated: {
              line: generated.line,
              column: generated.column
            }
          });
          lastOriginalSource = null;
          sourceMappingActive = false;
        }
        for (var idx = 0, length = chunk.length; idx < length; idx++) {
          if (chunk.charCodeAt(idx) === NEWLINE_CODE) {
            generated.line++;
            generated.column = 0;
            if (idx + 1 === length) {
              lastOriginalSource = null;
              sourceMappingActive = false;
            } else if (sourceMappingActive) {
              map3.addMapping({
                source: original.source,
                original: {
                  line: original.line,
                  column: original.column
                },
                generated: {
                  line: generated.line,
                  column: generated.column
                },
                name: original.name
              });
            }
          } else {
            generated.column++;
          }
        }
      });
      this.walkSourceContents(function(sourceFile, sourceContent) {
        map3.setSourceContent(sourceFile, sourceContent);
      });
      return { code: generated.code, map: map3 };
    }, "SourceNode_toStringWithSourceMap");
    exports2.SourceNode = SourceNode;
  }
});

// ../../node_modules/source-map/source-map.js
var require_source_map = __commonJS({
  "../../node_modules/source-map/source-map.js"(exports2) {
    exports2.SourceMapGenerator = require_source_map_generator().SourceMapGenerator;
    exports2.SourceMapConsumer = require_source_map_consumer().SourceMapConsumer;
    exports2.SourceNode = require_source_node().SourceNode;
  }
});

// ../../node_modules/escodegen/package.json
var require_package21 = __commonJS({
  "../../node_modules/escodegen/package.json"(exports2, module2) {
    module2.exports = {
      name: "escodegen",
      description: "ECMAScript code generator",
      homepage: "http://github.com/estools/escodegen",
      main: "escodegen.js",
      bin: {
        esgenerate: "./bin/esgenerate.js",
        escodegen: "./bin/escodegen.js"
      },
      files: [
        "LICENSE.BSD",
        "README.md",
        "bin",
        "escodegen.js",
        "package.json"
      ],
      version: "2.1.0",
      engines: {
        node: ">=6.0"
      },
      maintainers: [
        {
          name: "Yusuke Suzuki",
          email: "utatane.tea@gmail.com",
          web: "http://github.com/Constellation"
        }
      ],
      repository: {
        type: "git",
        url: "http://github.com/estools/escodegen.git"
      },
      dependencies: {
        estraverse: "^5.2.0",
        esutils: "^2.0.2",
        esprima: "^4.0.1"
      },
      optionalDependencies: {
        "source-map": "~0.6.1"
      },
      devDependencies: {
        acorn: "^8.0.4",
        bluebird: "^3.4.7",
        "bower-registry-client": "^1.0.0",
        chai: "^4.2.0",
        "chai-exclude": "^2.0.2",
        "commonjs-everywhere": "^0.9.7",
        gulp: "^4.0.2",
        "gulp-eslint": "^6.0.0",
        "gulp-mocha": "^7.0.2",
        minimist: "^1.2.5",
        optionator: "^0.9.1",
        semver: "^7.3.4"
      },
      license: "BSD-2-Clause",
      scripts: {
        test: "gulp travis",
        "unit-test": "gulp test",
        lint: "gulp lint",
        release: "node tools/release.js",
        "build-min": "./node_modules/.bin/cjsify -ma path: tools/entry-point.js > escodegen.browser.min.js",
        build: "./node_modules/.bin/cjsify -a path: tools/entry-point.js > escodegen.browser.js"
      }
    };
  }
});

// ../../node_modules/escodegen/escodegen.js
var require_escodegen = __commonJS({
  "../../node_modules/escodegen/escodegen.js"(exports2) {
    (function() {
      "use strict";
      var Syntax, Precedence, BinaryPrecedence, SourceNode, estraverse, esutils, base, indent, json, renumber, hexadecimal, quotes, escapeless, newline, space, parentheses, semicolons, safeConcatenation, directive, extra, parse3, sourceMap, sourceCode, preserveBlankLines, FORMAT_MINIFY, FORMAT_DEFAULTS;
      estraverse = require_estraverse();
      esutils = require_utils11();
      Syntax = estraverse.Syntax;
      function isExpression(node) {
        return CodeGenerator.Expression.hasOwnProperty(node.type);
      }
      __name(isExpression, "isExpression");
      function isStatement(node) {
        return CodeGenerator.Statement.hasOwnProperty(node.type);
      }
      __name(isStatement, "isStatement");
      Precedence = {
        Sequence: 0,
        Yield: 1,
        Assignment: 1,
        Conditional: 2,
        ArrowFunction: 2,
        Coalesce: 3,
        LogicalOR: 4,
        LogicalAND: 5,
        BitwiseOR: 6,
        BitwiseXOR: 7,
        BitwiseAND: 8,
        Equality: 9,
        Relational: 10,
        BitwiseSHIFT: 11,
        Additive: 12,
        Multiplicative: 13,
        Exponentiation: 14,
        Await: 15,
        Unary: 15,
        Postfix: 16,
        OptionalChaining: 17,
        Call: 18,
        New: 19,
        TaggedTemplate: 20,
        Member: 21,
        Primary: 22
      };
      BinaryPrecedence = {
        "??": Precedence.Coalesce,
        "||": Precedence.LogicalOR,
        "&&": Precedence.LogicalAND,
        "|": Precedence.BitwiseOR,
        "^": Precedence.BitwiseXOR,
        "&": Precedence.BitwiseAND,
        "==": Precedence.Equality,
        "!=": Precedence.Equality,
        "===": Precedence.Equality,
        "!==": Precedence.Equality,
        "is": Precedence.Equality,
        "isnt": Precedence.Equality,
        "<": Precedence.Relational,
        ">": Precedence.Relational,
        "<=": Precedence.Relational,
        ">=": Precedence.Relational,
        "in": Precedence.Relational,
        "instanceof": Precedence.Relational,
        "<<": Precedence.BitwiseSHIFT,
        ">>": Precedence.BitwiseSHIFT,
        ">>>": Precedence.BitwiseSHIFT,
        "+": Precedence.Additive,
        "-": Precedence.Additive,
        "*": Precedence.Multiplicative,
        "%": Precedence.Multiplicative,
        "/": Precedence.Multiplicative,
        "**": Precedence.Exponentiation
      };
      var F_ALLOW_IN = 1, F_ALLOW_CALL = 1 << 1, F_ALLOW_UNPARATH_NEW = 1 << 2, F_FUNC_BODY = 1 << 3, F_DIRECTIVE_CTX = 1 << 4, F_SEMICOLON_OPT = 1 << 5, F_FOUND_COALESCE = 1 << 6;
      var E_FTT = F_ALLOW_CALL | F_ALLOW_UNPARATH_NEW, E_TTF = F_ALLOW_IN | F_ALLOW_CALL, E_TTT = F_ALLOW_IN | F_ALLOW_CALL | F_ALLOW_UNPARATH_NEW, E_TFF = F_ALLOW_IN, E_FFT = F_ALLOW_UNPARATH_NEW, E_TFT = F_ALLOW_IN | F_ALLOW_UNPARATH_NEW;
      var S_TFFF = F_ALLOW_IN, S_TFFT = F_ALLOW_IN | F_SEMICOLON_OPT, S_FFFF = 0, S_TFTF = F_ALLOW_IN | F_DIRECTIVE_CTX, S_TTFF = F_ALLOW_IN | F_FUNC_BODY;
      function getDefaultOptions() {
        return {
          indent: null,
          base: null,
          parse: null,
          comment: false,
          format: {
            indent: {
              style: "    ",
              base: 0,
              adjustMultilineComment: false
            },
            newline: "\n",
            space: " ",
            json: false,
            renumber: false,
            hexadecimal: false,
            quotes: "single",
            escapeless: false,
            compact: false,
            parentheses: true,
            semicolons: true,
            safeConcatenation: false,
            preserveBlankLines: false
          },
          moz: {
            comprehensionExpressionStartsWithAssignment: false,
            starlessGenerator: false
          },
          sourceMap: null,
          sourceMapRoot: null,
          sourceMapWithCode: false,
          directive: false,
          raw: true,
          verbatim: null,
          sourceCode: null
        };
      }
      __name(getDefaultOptions, "getDefaultOptions");
      function stringRepeat(str, num) {
        var result2 = "";
        for (num |= 0; num > 0; num >>>= 1, str += str) {
          if (num & 1) {
            result2 += str;
          }
        }
        return result2;
      }
      __name(stringRepeat, "stringRepeat");
      function hasLineTerminator(str) {
        return /[\r\n]/g.test(str);
      }
      __name(hasLineTerminator, "hasLineTerminator");
      function endsWithLineTerminator(str) {
        var len = str.length;
        return len && esutils.code.isLineTerminator(str.charCodeAt(len - 1));
      }
      __name(endsWithLineTerminator, "endsWithLineTerminator");
      function merge(target, override) {
        var key;
        for (key in override) {
          if (override.hasOwnProperty(key)) {
            target[key] = override[key];
          }
        }
        return target;
      }
      __name(merge, "merge");
      function updateDeeply(target, override) {
        var key, val;
        function isHashObject(target2) {
          return typeof target2 === "object" && target2 instanceof Object && !(target2 instanceof RegExp);
        }
        __name(isHashObject, "isHashObject");
        for (key in override) {
          if (override.hasOwnProperty(key)) {
            val = override[key];
            if (isHashObject(val)) {
              if (isHashObject(target[key])) {
                updateDeeply(target[key], val);
              } else {
                target[key] = updateDeeply({}, val);
              }
            } else {
              target[key] = val;
            }
          }
        }
        return target;
      }
      __name(updateDeeply, "updateDeeply");
      function generateNumber(value) {
        var result2, point, temp, exponent, pos;
        if (value !== value) {
          throw new Error("Numeric literal whose value is NaN");
        }
        if (value < 0 || value === 0 && 1 / value < 0) {
          throw new Error("Numeric literal whose value is negative");
        }
        if (value === 1 / 0) {
          return json ? "null" : renumber ? "1e400" : "1e+400";
        }
        result2 = "" + value;
        if (!renumber || result2.length < 3) {
          return result2;
        }
        point = result2.indexOf(".");
        if (!json && result2.charCodeAt(0) === 48 && point === 1) {
          point = 0;
          result2 = result2.slice(1);
        }
        temp = result2;
        result2 = result2.replace("e+", "e");
        exponent = 0;
        if ((pos = temp.indexOf("e")) > 0) {
          exponent = +temp.slice(pos + 1);
          temp = temp.slice(0, pos);
        }
        if (point >= 0) {
          exponent -= temp.length - point - 1;
          temp = +(temp.slice(0, point) + temp.slice(point + 1)) + "";
        }
        pos = 0;
        while (temp.charCodeAt(temp.length + pos - 1) === 48) {
          --pos;
        }
        if (pos !== 0) {
          exponent -= pos;
          temp = temp.slice(0, pos);
        }
        if (exponent !== 0) {
          temp += "e" + exponent;
        }
        if ((temp.length < result2.length || hexadecimal && value > 1e12 && Math.floor(value) === value && (temp = "0x" + value.toString(16)).length < result2.length) && +temp === value) {
          result2 = temp;
        }
        return result2;
      }
      __name(generateNumber, "generateNumber");
      function escapeRegExpCharacter(ch, previousIsBackslash) {
        if ((ch & ~1) === 8232) {
          return (previousIsBackslash ? "u" : "\\u") + (ch === 8232 ? "2028" : "2029");
        } else if (ch === 10 || ch === 13) {
          return (previousIsBackslash ? "" : "\\") + (ch === 10 ? "n" : "r");
        }
        return String.fromCharCode(ch);
      }
      __name(escapeRegExpCharacter, "escapeRegExpCharacter");
      function generateRegExp(reg) {
        var match4, result2, flags, i3, iz, ch, characterInBrack, previousIsBackslash;
        result2 = reg.toString();
        if (reg.source) {
          match4 = result2.match(/\/([^/]*)$/);
          if (!match4) {
            return result2;
          }
          flags = match4[1];
          result2 = "";
          characterInBrack = false;
          previousIsBackslash = false;
          for (i3 = 0, iz = reg.source.length; i3 < iz; ++i3) {
            ch = reg.source.charCodeAt(i3);
            if (!previousIsBackslash) {
              if (characterInBrack) {
                if (ch === 93) {
                  characterInBrack = false;
                }
              } else {
                if (ch === 47) {
                  result2 += "\\";
                } else if (ch === 91) {
                  characterInBrack = true;
                }
              }
              result2 += escapeRegExpCharacter(ch, previousIsBackslash);
              previousIsBackslash = ch === 92;
            } else {
              result2 += escapeRegExpCharacter(ch, previousIsBackslash);
              previousIsBackslash = false;
            }
          }
          return "/" + result2 + "/" + flags;
        }
        return result2;
      }
      __name(generateRegExp, "generateRegExp");
      function escapeAllowedCharacter(code, next) {
        var hex;
        if (code === 8) {
          return "\\b";
        }
        if (code === 12) {
          return "\\f";
        }
        if (code === 9) {
          return "\\t";
        }
        hex = code.toString(16).toUpperCase();
        if (json || code > 255) {
          return "\\u" + "0000".slice(hex.length) + hex;
        } else if (code === 0 && !esutils.code.isDecimalDigit(next)) {
          return "\\0";
        } else if (code === 11) {
          return "\\x0B";
        } else {
          return "\\x" + "00".slice(hex.length) + hex;
        }
      }
      __name(escapeAllowedCharacter, "escapeAllowedCharacter");
      function escapeDisallowedCharacter(code) {
        if (code === 92) {
          return "\\\\";
        }
        if (code === 10) {
          return "\\n";
        }
        if (code === 13) {
          return "\\r";
        }
        if (code === 8232) {
          return "\\u2028";
        }
        if (code === 8233) {
          return "\\u2029";
        }
        throw new Error("Incorrectly classified character");
      }
      __name(escapeDisallowedCharacter, "escapeDisallowedCharacter");
      function escapeDirective(str) {
        var i3, iz, code, quote;
        quote = quotes === "double" ? '"' : "'";
        for (i3 = 0, iz = str.length; i3 < iz; ++i3) {
          code = str.charCodeAt(i3);
          if (code === 39) {
            quote = '"';
            break;
          } else if (code === 34) {
            quote = "'";
            break;
          } else if (code === 92) {
            ++i3;
          }
        }
        return quote + str + quote;
      }
      __name(escapeDirective, "escapeDirective");
      function escapeString(str) {
        var result2 = "", i3, len, code, singleQuotes = 0, doubleQuotes = 0, single, quote;
        for (i3 = 0, len = str.length; i3 < len; ++i3) {
          code = str.charCodeAt(i3);
          if (code === 39) {
            ++singleQuotes;
          } else if (code === 34) {
            ++doubleQuotes;
          } else if (code === 47 && json) {
            result2 += "\\";
          } else if (esutils.code.isLineTerminator(code) || code === 92) {
            result2 += escapeDisallowedCharacter(code);
            continue;
          } else if (!esutils.code.isIdentifierPartES5(code) && (json && code < 32 || !json && !escapeless && (code < 32 || code > 126))) {
            result2 += escapeAllowedCharacter(code, str.charCodeAt(i3 + 1));
            continue;
          }
          result2 += String.fromCharCode(code);
        }
        single = !(quotes === "double" || quotes === "auto" && doubleQuotes < singleQuotes);
        quote = single ? "'" : '"';
        if (!(single ? singleQuotes : doubleQuotes)) {
          return quote + result2 + quote;
        }
        str = result2;
        result2 = quote;
        for (i3 = 0, len = str.length; i3 < len; ++i3) {
          code = str.charCodeAt(i3);
          if (code === 39 && single || code === 34 && !single) {
            result2 += "\\";
          }
          result2 += String.fromCharCode(code);
        }
        return result2 + quote;
      }
      __name(escapeString, "escapeString");
      function flattenToString(arr) {
        var i3, iz, elem, result2 = "";
        for (i3 = 0, iz = arr.length; i3 < iz; ++i3) {
          elem = arr[i3];
          result2 += Array.isArray(elem) ? flattenToString(elem) : elem;
        }
        return result2;
      }
      __name(flattenToString, "flattenToString");
      function toSourceNodeWhenNeeded(generated, node) {
        if (!sourceMap) {
          if (Array.isArray(generated)) {
            return flattenToString(generated);
          } else {
            return generated;
          }
        }
        if (node == null) {
          if (generated instanceof SourceNode) {
            return generated;
          } else {
            node = {};
          }
        }
        if (node.loc == null) {
          return new SourceNode(null, null, sourceMap, generated, node.name || null);
        }
        return new SourceNode(node.loc.start.line, node.loc.start.column, sourceMap === true ? node.loc.source || null : sourceMap, generated, node.name || null);
      }
      __name(toSourceNodeWhenNeeded, "toSourceNodeWhenNeeded");
      function noEmptySpace() {
        return space ? space : " ";
      }
      __name(noEmptySpace, "noEmptySpace");
      function join31(left, right) {
        var leftSource, rightSource, leftCharCode, rightCharCode;
        leftSource = toSourceNodeWhenNeeded(left).toString();
        if (leftSource.length === 0) {
          return [right];
        }
        rightSource = toSourceNodeWhenNeeded(right).toString();
        if (rightSource.length === 0) {
          return [left];
        }
        leftCharCode = leftSource.charCodeAt(leftSource.length - 1);
        rightCharCode = rightSource.charCodeAt(0);
        if ((leftCharCode === 43 || leftCharCode === 45) && leftCharCode === rightCharCode || esutils.code.isIdentifierPartES5(leftCharCode) && esutils.code.isIdentifierPartES5(rightCharCode) || leftCharCode === 47 && rightCharCode === 105) {
          return [left, noEmptySpace(), right];
        } else if (esutils.code.isWhiteSpace(leftCharCode) || esutils.code.isLineTerminator(leftCharCode) || esutils.code.isWhiteSpace(rightCharCode) || esutils.code.isLineTerminator(rightCharCode)) {
          return [left, right];
        }
        return [left, space, right];
      }
      __name(join31, "join");
      function addIndent(stmt) {
        return [base, stmt];
      }
      __name(addIndent, "addIndent");
      function withIndent(fn) {
        var previousBase;
        previousBase = base;
        base += indent;
        fn(base);
        base = previousBase;
      }
      __name(withIndent, "withIndent");
      function calculateSpaces(str) {
        var i3;
        for (i3 = str.length - 1; i3 >= 0; --i3) {
          if (esutils.code.isLineTerminator(str.charCodeAt(i3))) {
            break;
          }
        }
        return str.length - 1 - i3;
      }
      __name(calculateSpaces, "calculateSpaces");
      function adjustMultilineComment(value, specialBase) {
        var array, i3, len, line, j3, spaces, previousBase, sn;
        array = value.split(/\r\n|[\r\n]/);
        spaces = Number.MAX_VALUE;
        for (i3 = 1, len = array.length; i3 < len; ++i3) {
          line = array[i3];
          j3 = 0;
          while (j3 < line.length && esutils.code.isWhiteSpace(line.charCodeAt(j3))) {
            ++j3;
          }
          if (spaces > j3) {
            spaces = j3;
          }
        }
        if (typeof specialBase !== "undefined") {
          previousBase = base;
          if (array[1][spaces] === "*") {
            specialBase += " ";
          }
          base = specialBase;
        } else {
          if (spaces & 1) {
            --spaces;
          }
          previousBase = base;
        }
        for (i3 = 1, len = array.length; i3 < len; ++i3) {
          sn = toSourceNodeWhenNeeded(addIndent(array[i3].slice(spaces)));
          array[i3] = sourceMap ? sn.join("") : sn;
        }
        base = previousBase;
        return array.join("\n");
      }
      __name(adjustMultilineComment, "adjustMultilineComment");
      function generateComment(comment, specialBase) {
        if (comment.type === "Line") {
          if (endsWithLineTerminator(comment.value)) {
            return "//" + comment.value;
          } else {
            var result2 = "//" + comment.value;
            if (!preserveBlankLines) {
              result2 += "\n";
            }
            return result2;
          }
        }
        if (extra.format.indent.adjustMultilineComment && /[\n\r]/.test(comment.value)) {
          return adjustMultilineComment("/*" + comment.value + "*/", specialBase);
        }
        return "/*" + comment.value + "*/";
      }
      __name(generateComment, "generateComment");
      function addComments(stmt, result2) {
        var i3, len, comment, save, tailingToStatement, specialBase, fragment, extRange, range2, prevRange, prefix2, infix, suffix, count;
        if (stmt.leadingComments && stmt.leadingComments.length > 0) {
          save = result2;
          if (preserveBlankLines) {
            comment = stmt.leadingComments[0];
            result2 = [];
            extRange = comment.extendedRange;
            range2 = comment.range;
            prefix2 = sourceCode.substring(extRange[0], range2[0]);
            count = (prefix2.match(/\n/g) || []).length;
            if (count > 0) {
              result2.push(stringRepeat("\n", count));
              result2.push(addIndent(generateComment(comment)));
            } else {
              result2.push(prefix2);
              result2.push(generateComment(comment));
            }
            prevRange = range2;
            for (i3 = 1, len = stmt.leadingComments.length; i3 < len; i3++) {
              comment = stmt.leadingComments[i3];
              range2 = comment.range;
              infix = sourceCode.substring(prevRange[1], range2[0]);
              count = (infix.match(/\n/g) || []).length;
              result2.push(stringRepeat("\n", count));
              result2.push(addIndent(generateComment(comment)));
              prevRange = range2;
            }
            suffix = sourceCode.substring(range2[1], extRange[1]);
            count = (suffix.match(/\n/g) || []).length;
            result2.push(stringRepeat("\n", count));
          } else {
            comment = stmt.leadingComments[0];
            result2 = [];
            if (safeConcatenation && stmt.type === Syntax.Program && stmt.body.length === 0) {
              result2.push("\n");
            }
            result2.push(generateComment(comment));
            if (!endsWithLineTerminator(toSourceNodeWhenNeeded(result2).toString())) {
              result2.push("\n");
            }
            for (i3 = 1, len = stmt.leadingComments.length; i3 < len; ++i3) {
              comment = stmt.leadingComments[i3];
              fragment = [generateComment(comment)];
              if (!endsWithLineTerminator(toSourceNodeWhenNeeded(fragment).toString())) {
                fragment.push("\n");
              }
              result2.push(addIndent(fragment));
            }
          }
          result2.push(addIndent(save));
        }
        if (stmt.trailingComments) {
          if (preserveBlankLines) {
            comment = stmt.trailingComments[0];
            extRange = comment.extendedRange;
            range2 = comment.range;
            prefix2 = sourceCode.substring(extRange[0], range2[0]);
            count = (prefix2.match(/\n/g) || []).length;
            if (count > 0) {
              result2.push(stringRepeat("\n", count));
              result2.push(addIndent(generateComment(comment)));
            } else {
              result2.push(prefix2);
              result2.push(generateComment(comment));
            }
          } else {
            tailingToStatement = !endsWithLineTerminator(toSourceNodeWhenNeeded(result2).toString());
            specialBase = stringRepeat(" ", calculateSpaces(toSourceNodeWhenNeeded([base, result2, indent]).toString()));
            for (i3 = 0, len = stmt.trailingComments.length; i3 < len; ++i3) {
              comment = stmt.trailingComments[i3];
              if (tailingToStatement) {
                if (i3 === 0) {
                  result2 = [result2, indent];
                } else {
                  result2 = [result2, specialBase];
                }
                result2.push(generateComment(comment, specialBase));
              } else {
                result2 = [result2, addIndent(generateComment(comment))];
              }
              if (i3 !== len - 1 && !endsWithLineTerminator(toSourceNodeWhenNeeded(result2).toString())) {
                result2 = [result2, "\n"];
              }
            }
          }
        }
        return result2;
      }
      __name(addComments, "addComments");
      function generateBlankLines(start, end, result2) {
        var j3, newlineCount = 0;
        for (j3 = start; j3 < end; j3++) {
          if (sourceCode[j3] === "\n") {
            newlineCount++;
          }
        }
        for (j3 = 1; j3 < newlineCount; j3++) {
          result2.push(newline);
        }
      }
      __name(generateBlankLines, "generateBlankLines");
      function parenthesize(text, current, should) {
        if (current < should) {
          return ["(", text, ")"];
        }
        return text;
      }
      __name(parenthesize, "parenthesize");
      function generateVerbatimString(string) {
        var i3, iz, result2;
        result2 = string.split(/\r\n|\n/);
        for (i3 = 1, iz = result2.length; i3 < iz; i3++) {
          result2[i3] = newline + base + result2[i3];
        }
        return result2;
      }
      __name(generateVerbatimString, "generateVerbatimString");
      function generateVerbatim(expr, precedence) {
        var verbatim, result2, prec;
        verbatim = expr[extra.verbatim];
        if (typeof verbatim === "string") {
          result2 = parenthesize(generateVerbatimString(verbatim), Precedence.Sequence, precedence);
        } else {
          result2 = generateVerbatimString(verbatim.content);
          prec = verbatim.precedence != null ? verbatim.precedence : Precedence.Sequence;
          result2 = parenthesize(result2, prec, precedence);
        }
        return toSourceNodeWhenNeeded(result2, expr);
      }
      __name(generateVerbatim, "generateVerbatim");
      function CodeGenerator() {
      }
      __name(CodeGenerator, "CodeGenerator");
      CodeGenerator.prototype.maybeBlock = function(stmt, flags) {
        var result2, noLeadingComment, that = this;
        noLeadingComment = !extra.comment || !stmt.leadingComments;
        if (stmt.type === Syntax.BlockStatement && noLeadingComment) {
          return [space, this.generateStatement(stmt, flags)];
        }
        if (stmt.type === Syntax.EmptyStatement && noLeadingComment) {
          return ";";
        }
        withIndent(function() {
          result2 = [
            newline,
            addIndent(that.generateStatement(stmt, flags))
          ];
        });
        return result2;
      };
      CodeGenerator.prototype.maybeBlockSuffix = function(stmt, result2) {
        var ends = endsWithLineTerminator(toSourceNodeWhenNeeded(result2).toString());
        if (stmt.type === Syntax.BlockStatement && (!extra.comment || !stmt.leadingComments) && !ends) {
          return [result2, space];
        }
        if (ends) {
          return [result2, base];
        }
        return [result2, newline, base];
      };
      function generateIdentifier(node) {
        return toSourceNodeWhenNeeded(node.name, node);
      }
      __name(generateIdentifier, "generateIdentifier");
      function generateAsyncPrefix(node, spaceRequired) {
        return node.async ? "async" + (spaceRequired ? noEmptySpace() : space) : "";
      }
      __name(generateAsyncPrefix, "generateAsyncPrefix");
      function generateStarSuffix(node) {
        var isGenerator = node.generator && !extra.moz.starlessGenerator;
        return isGenerator ? "*" + space : "";
      }
      __name(generateStarSuffix, "generateStarSuffix");
      function generateMethodPrefix(prop) {
        var func = prop.value, prefix2 = "";
        if (func.async) {
          prefix2 += generateAsyncPrefix(func, !prop.computed);
        }
        if (func.generator) {
          prefix2 += generateStarSuffix(func) ? "*" : "";
        }
        return prefix2;
      }
      __name(generateMethodPrefix, "generateMethodPrefix");
      CodeGenerator.prototype.generatePattern = function(node, precedence, flags) {
        if (node.type === Syntax.Identifier) {
          return generateIdentifier(node);
        }
        return this.generateExpression(node, precedence, flags);
      };
      CodeGenerator.prototype.generateFunctionParams = function(node) {
        var i3, iz, result2, hasDefault;
        hasDefault = false;
        if (node.type === Syntax.ArrowFunctionExpression && !node.rest && (!node.defaults || node.defaults.length === 0) && node.params.length === 1 && node.params[0].type === Syntax.Identifier) {
          result2 = [generateAsyncPrefix(node, true), generateIdentifier(node.params[0])];
        } else {
          result2 = node.type === Syntax.ArrowFunctionExpression ? [generateAsyncPrefix(node, false)] : [];
          result2.push("(");
          if (node.defaults) {
            hasDefault = true;
          }
          for (i3 = 0, iz = node.params.length; i3 < iz; ++i3) {
            if (hasDefault && node.defaults[i3]) {
              result2.push(this.generateAssignment(node.params[i3], node.defaults[i3], "=", Precedence.Assignment, E_TTT));
            } else {
              result2.push(this.generatePattern(node.params[i3], Precedence.Assignment, E_TTT));
            }
            if (i3 + 1 < iz) {
              result2.push("," + space);
            }
          }
          if (node.rest) {
            if (node.params.length) {
              result2.push("," + space);
            }
            result2.push("...");
            result2.push(generateIdentifier(node.rest));
          }
          result2.push(")");
        }
        return result2;
      };
      CodeGenerator.prototype.generateFunctionBody = function(node) {
        var result2, expr;
        result2 = this.generateFunctionParams(node);
        if (node.type === Syntax.ArrowFunctionExpression) {
          result2.push(space);
          result2.push("=>");
        }
        if (node.expression) {
          result2.push(space);
          expr = this.generateExpression(node.body, Precedence.Assignment, E_TTT);
          if (expr.toString().charAt(0) === "{") {
            expr = ["(", expr, ")"];
          }
          result2.push(expr);
        } else {
          result2.push(this.maybeBlock(node.body, S_TTFF));
        }
        return result2;
      };
      CodeGenerator.prototype.generateIterationForStatement = function(operator, stmt, flags) {
        var result2 = ["for" + (stmt.await ? noEmptySpace() + "await" : "") + space + "("], that = this;
        withIndent(function() {
          if (stmt.left.type === Syntax.VariableDeclaration) {
            withIndent(function() {
              result2.push(stmt.left.kind + noEmptySpace());
              result2.push(that.generateStatement(stmt.left.declarations[0], S_FFFF));
            });
          } else {
            result2.push(that.generateExpression(stmt.left, Precedence.Call, E_TTT));
          }
          result2 = join31(result2, operator);
          result2 = [join31(
            result2,
            that.generateExpression(stmt.right, Precedence.Assignment, E_TTT)
          ), ")"];
        });
        result2.push(this.maybeBlock(stmt.body, flags));
        return result2;
      };
      CodeGenerator.prototype.generatePropertyKey = function(expr, computed) {
        var result2 = [];
        if (computed) {
          result2.push("[");
        }
        result2.push(this.generateExpression(expr, Precedence.Assignment, E_TTT));
        if (computed) {
          result2.push("]");
        }
        return result2;
      };
      CodeGenerator.prototype.generateAssignment = function(left, right, operator, precedence, flags) {
        if (Precedence.Assignment < precedence) {
          flags |= F_ALLOW_IN;
        }
        return parenthesize(
          [
            this.generateExpression(left, Precedence.Call, flags),
            space + operator + space,
            this.generateExpression(right, Precedence.Assignment, flags)
          ],
          Precedence.Assignment,
          precedence
        );
      };
      CodeGenerator.prototype.semicolon = function(flags) {
        if (!semicolons && flags & F_SEMICOLON_OPT) {
          return "";
        }
        return ";";
      };
      CodeGenerator.Statement = {
        BlockStatement: /* @__PURE__ */ __name(function(stmt, flags) {
          var range2, content, result2 = ["{", newline], that = this;
          withIndent(function() {
            if (stmt.body.length === 0 && preserveBlankLines) {
              range2 = stmt.range;
              if (range2[1] - range2[0] > 2) {
                content = sourceCode.substring(range2[0] + 1, range2[1] - 1);
                if (content[0] === "\n") {
                  result2 = ["{"];
                }
                result2.push(content);
              }
            }
            var i3, iz, fragment, bodyFlags;
            bodyFlags = S_TFFF;
            if (flags & F_FUNC_BODY) {
              bodyFlags |= F_DIRECTIVE_CTX;
            }
            for (i3 = 0, iz = stmt.body.length; i3 < iz; ++i3) {
              if (preserveBlankLines) {
                if (i3 === 0) {
                  if (stmt.body[0].leadingComments) {
                    range2 = stmt.body[0].leadingComments[0].extendedRange;
                    content = sourceCode.substring(range2[0], range2[1]);
                    if (content[0] === "\n") {
                      result2 = ["{"];
                    }
                  }
                  if (!stmt.body[0].leadingComments) {
                    generateBlankLines(stmt.range[0], stmt.body[0].range[0], result2);
                  }
                }
                if (i3 > 0) {
                  if (!stmt.body[i3 - 1].trailingComments && !stmt.body[i3].leadingComments) {
                    generateBlankLines(stmt.body[i3 - 1].range[1], stmt.body[i3].range[0], result2);
                  }
                }
              }
              if (i3 === iz - 1) {
                bodyFlags |= F_SEMICOLON_OPT;
              }
              if (stmt.body[i3].leadingComments && preserveBlankLines) {
                fragment = that.generateStatement(stmt.body[i3], bodyFlags);
              } else {
                fragment = addIndent(that.generateStatement(stmt.body[i3], bodyFlags));
              }
              result2.push(fragment);
              if (!endsWithLineTerminator(toSourceNodeWhenNeeded(fragment).toString())) {
                if (preserveBlankLines && i3 < iz - 1) {
                  if (!stmt.body[i3 + 1].leadingComments) {
                    result2.push(newline);
                  }
                } else {
                  result2.push(newline);
                }
              }
              if (preserveBlankLines) {
                if (i3 === iz - 1) {
                  if (!stmt.body[i3].trailingComments) {
                    generateBlankLines(stmt.body[i3].range[1], stmt.range[1], result2);
                  }
                }
              }
            }
          });
          result2.push(addIndent("}"));
          return result2;
        }, "BlockStatement"),
        BreakStatement: /* @__PURE__ */ __name(function(stmt, flags) {
          if (stmt.label) {
            return "break " + stmt.label.name + this.semicolon(flags);
          }
          return "break" + this.semicolon(flags);
        }, "BreakStatement"),
        ContinueStatement: /* @__PURE__ */ __name(function(stmt, flags) {
          if (stmt.label) {
            return "continue " + stmt.label.name + this.semicolon(flags);
          }
          return "continue" + this.semicolon(flags);
        }, "ContinueStatement"),
        ClassBody: /* @__PURE__ */ __name(function(stmt, flags) {
          var result2 = ["{", newline], that = this;
          withIndent(function(indent2) {
            var i3, iz;
            for (i3 = 0, iz = stmt.body.length; i3 < iz; ++i3) {
              result2.push(indent2);
              result2.push(that.generateExpression(stmt.body[i3], Precedence.Sequence, E_TTT));
              if (i3 + 1 < iz) {
                result2.push(newline);
              }
            }
          });
          if (!endsWithLineTerminator(toSourceNodeWhenNeeded(result2).toString())) {
            result2.push(newline);
          }
          result2.push(base);
          result2.push("}");
          return result2;
        }, "ClassBody"),
        ClassDeclaration: /* @__PURE__ */ __name(function(stmt, flags) {
          var result2, fragment;
          result2 = ["class"];
          if (stmt.id) {
            result2 = join31(result2, this.generateExpression(stmt.id, Precedence.Sequence, E_TTT));
          }
          if (stmt.superClass) {
            fragment = join31("extends", this.generateExpression(stmt.superClass, Precedence.Unary, E_TTT));
            result2 = join31(result2, fragment);
          }
          result2.push(space);
          result2.push(this.generateStatement(stmt.body, S_TFFT));
          return result2;
        }, "ClassDeclaration"),
        DirectiveStatement: /* @__PURE__ */ __name(function(stmt, flags) {
          if (extra.raw && stmt.raw) {
            return stmt.raw + this.semicolon(flags);
          }
          return escapeDirective(stmt.directive) + this.semicolon(flags);
        }, "DirectiveStatement"),
        DoWhileStatement: /* @__PURE__ */ __name(function(stmt, flags) {
          var result2 = join31("do", this.maybeBlock(stmt.body, S_TFFF));
          result2 = this.maybeBlockSuffix(stmt.body, result2);
          return join31(result2, [
            "while" + space + "(",
            this.generateExpression(stmt.test, Precedence.Sequence, E_TTT),
            ")" + this.semicolon(flags)
          ]);
        }, "DoWhileStatement"),
        CatchClause: /* @__PURE__ */ __name(function(stmt, flags) {
          var result2, that = this;
          withIndent(function() {
            var guard;
            if (stmt.param) {
              result2 = [
                "catch" + space + "(",
                that.generateExpression(stmt.param, Precedence.Sequence, E_TTT),
                ")"
              ];
              if (stmt.guard) {
                guard = that.generateExpression(stmt.guard, Precedence.Sequence, E_TTT);
                result2.splice(2, 0, " if ", guard);
              }
            } else {
              result2 = ["catch"];
            }
          });
          result2.push(this.maybeBlock(stmt.body, S_TFFF));
          return result2;
        }, "CatchClause"),
        DebuggerStatement: /* @__PURE__ */ __name(function(stmt, flags) {
          return "debugger" + this.semicolon(flags);
        }, "DebuggerStatement"),
        EmptyStatement: /* @__PURE__ */ __name(function(stmt, flags) {
          return ";";
        }, "EmptyStatement"),
        ExportDefaultDeclaration: /* @__PURE__ */ __name(function(stmt, flags) {
          var result2 = ["export"], bodyFlags;
          bodyFlags = flags & F_SEMICOLON_OPT ? S_TFFT : S_TFFF;
          result2 = join31(result2, "default");
          if (isStatement(stmt.declaration)) {
            result2 = join31(result2, this.generateStatement(stmt.declaration, bodyFlags));
          } else {
            result2 = join31(result2, this.generateExpression(stmt.declaration, Precedence.Assignment, E_TTT) + this.semicolon(flags));
          }
          return result2;
        }, "ExportDefaultDeclaration"),
        ExportNamedDeclaration: /* @__PURE__ */ __name(function(stmt, flags) {
          var result2 = ["export"], bodyFlags, that = this;
          bodyFlags = flags & F_SEMICOLON_OPT ? S_TFFT : S_TFFF;
          if (stmt.declaration) {
            return join31(result2, this.generateStatement(stmt.declaration, bodyFlags));
          }
          if (stmt.specifiers) {
            if (stmt.specifiers.length === 0) {
              result2 = join31(result2, "{" + space + "}");
            } else if (stmt.specifiers[0].type === Syntax.ExportBatchSpecifier) {
              result2 = join31(result2, this.generateExpression(stmt.specifiers[0], Precedence.Sequence, E_TTT));
            } else {
              result2 = join31(result2, "{");
              withIndent(function(indent2) {
                var i3, iz;
                result2.push(newline);
                for (i3 = 0, iz = stmt.specifiers.length; i3 < iz; ++i3) {
                  result2.push(indent2);
                  result2.push(that.generateExpression(stmt.specifiers[i3], Precedence.Sequence, E_TTT));
                  if (i3 + 1 < iz) {
                    result2.push("," + newline);
                  }
                }
              });
              if (!endsWithLineTerminator(toSourceNodeWhenNeeded(result2).toString())) {
                result2.push(newline);
              }
              result2.push(base + "}");
            }
            if (stmt.source) {
              result2 = join31(result2, [
                "from" + space,
                // ModuleSpecifier
                this.generateExpression(stmt.source, Precedence.Sequence, E_TTT),
                this.semicolon(flags)
              ]);
            } else {
              result2.push(this.semicolon(flags));
            }
          }
          return result2;
        }, "ExportNamedDeclaration"),
        ExportAllDeclaration: /* @__PURE__ */ __name(function(stmt, flags) {
          return [
            "export" + space,
            "*" + space,
            "from" + space,
            // ModuleSpecifier
            this.generateExpression(stmt.source, Precedence.Sequence, E_TTT),
            this.semicolon(flags)
          ];
        }, "ExportAllDeclaration"),
        ExpressionStatement: /* @__PURE__ */ __name(function(stmt, flags) {
          var result2, fragment;
          function isClassPrefixed(fragment2) {
            var code;
            if (fragment2.slice(0, 5) !== "class") {
              return false;
            }
            code = fragment2.charCodeAt(5);
            return code === 123 || esutils.code.isWhiteSpace(code) || esutils.code.isLineTerminator(code);
          }
          __name(isClassPrefixed, "isClassPrefixed");
          function isFunctionPrefixed(fragment2) {
            var code;
            if (fragment2.slice(0, 8) !== "function") {
              return false;
            }
            code = fragment2.charCodeAt(8);
            return code === 40 || esutils.code.isWhiteSpace(code) || code === 42 || esutils.code.isLineTerminator(code);
          }
          __name(isFunctionPrefixed, "isFunctionPrefixed");
          function isAsyncPrefixed(fragment2) {
            var code, i3, iz;
            if (fragment2.slice(0, 5) !== "async") {
              return false;
            }
            if (!esutils.code.isWhiteSpace(fragment2.charCodeAt(5))) {
              return false;
            }
            for (i3 = 6, iz = fragment2.length; i3 < iz; ++i3) {
              if (!esutils.code.isWhiteSpace(fragment2.charCodeAt(i3))) {
                break;
              }
            }
            if (i3 === iz) {
              return false;
            }
            if (fragment2.slice(i3, i3 + 8) !== "function") {
              return false;
            }
            code = fragment2.charCodeAt(i3 + 8);
            return code === 40 || esutils.code.isWhiteSpace(code) || code === 42 || esutils.code.isLineTerminator(code);
          }
          __name(isAsyncPrefixed, "isAsyncPrefixed");
          result2 = [this.generateExpression(stmt.expression, Precedence.Sequence, E_TTT)];
          fragment = toSourceNodeWhenNeeded(result2).toString();
          if (fragment.charCodeAt(0) === 123 || // ObjectExpression
          isClassPrefixed(fragment) || isFunctionPrefixed(fragment) || isAsyncPrefixed(fragment) || directive && flags & F_DIRECTIVE_CTX && stmt.expression.type === Syntax.Literal && typeof stmt.expression.value === "string") {
            result2 = ["(", result2, ")" + this.semicolon(flags)];
          } else {
            result2.push(this.semicolon(flags));
          }
          return result2;
        }, "ExpressionStatement"),
        ImportDeclaration: /* @__PURE__ */ __name(function(stmt, flags) {
          var result2, cursor2, that = this;
          if (stmt.specifiers.length === 0) {
            return [
              "import",
              space,
              // ModuleSpecifier
              this.generateExpression(stmt.source, Precedence.Sequence, E_TTT),
              this.semicolon(flags)
            ];
          }
          result2 = [
            "import"
          ];
          cursor2 = 0;
          if (stmt.specifiers[cursor2].type === Syntax.ImportDefaultSpecifier) {
            result2 = join31(result2, [
              this.generateExpression(stmt.specifiers[cursor2], Precedence.Sequence, E_TTT)
            ]);
            ++cursor2;
          }
          if (stmt.specifiers[cursor2]) {
            if (cursor2 !== 0) {
              result2.push(",");
            }
            if (stmt.specifiers[cursor2].type === Syntax.ImportNamespaceSpecifier) {
              result2 = join31(result2, [
                space,
                this.generateExpression(stmt.specifiers[cursor2], Precedence.Sequence, E_TTT)
              ]);
            } else {
              result2.push(space + "{");
              if (stmt.specifiers.length - cursor2 === 1) {
                result2.push(space);
                result2.push(this.generateExpression(stmt.specifiers[cursor2], Precedence.Sequence, E_TTT));
                result2.push(space + "}" + space);
              } else {
                withIndent(function(indent2) {
                  var i3, iz;
                  result2.push(newline);
                  for (i3 = cursor2, iz = stmt.specifiers.length; i3 < iz; ++i3) {
                    result2.push(indent2);
                    result2.push(that.generateExpression(stmt.specifiers[i3], Precedence.Sequence, E_TTT));
                    if (i3 + 1 < iz) {
                      result2.push("," + newline);
                    }
                  }
                });
                if (!endsWithLineTerminator(toSourceNodeWhenNeeded(result2).toString())) {
                  result2.push(newline);
                }
                result2.push(base + "}" + space);
              }
            }
          }
          result2 = join31(result2, [
            "from" + space,
            // ModuleSpecifier
            this.generateExpression(stmt.source, Precedence.Sequence, E_TTT),
            this.semicolon(flags)
          ]);
          return result2;
        }, "ImportDeclaration"),
        VariableDeclarator: /* @__PURE__ */ __name(function(stmt, flags) {
          var itemFlags = flags & F_ALLOW_IN ? E_TTT : E_FTT;
          if (stmt.init) {
            return [
              this.generateExpression(stmt.id, Precedence.Assignment, itemFlags),
              space,
              "=",
              space,
              this.generateExpression(stmt.init, Precedence.Assignment, itemFlags)
            ];
          }
          return this.generatePattern(stmt.id, Precedence.Assignment, itemFlags);
        }, "VariableDeclarator"),
        VariableDeclaration: /* @__PURE__ */ __name(function(stmt, flags) {
          var result2, i3, iz, node, bodyFlags, that = this;
          result2 = [stmt.kind];
          bodyFlags = flags & F_ALLOW_IN ? S_TFFF : S_FFFF;
          function block() {
            node = stmt.declarations[0];
            if (extra.comment && node.leadingComments) {
              result2.push("\n");
              result2.push(addIndent(that.generateStatement(node, bodyFlags)));
            } else {
              result2.push(noEmptySpace());
              result2.push(that.generateStatement(node, bodyFlags));
            }
            for (i3 = 1, iz = stmt.declarations.length; i3 < iz; ++i3) {
              node = stmt.declarations[i3];
              if (extra.comment && node.leadingComments) {
                result2.push("," + newline);
                result2.push(addIndent(that.generateStatement(node, bodyFlags)));
              } else {
                result2.push("," + space);
                result2.push(that.generateStatement(node, bodyFlags));
              }
            }
          }
          __name(block, "block");
          if (stmt.declarations.length > 1) {
            withIndent(block);
          } else {
            block();
          }
          result2.push(this.semicolon(flags));
          return result2;
        }, "VariableDeclaration"),
        ThrowStatement: /* @__PURE__ */ __name(function(stmt, flags) {
          return [join31(
            "throw",
            this.generateExpression(stmt.argument, Precedence.Sequence, E_TTT)
          ), this.semicolon(flags)];
        }, "ThrowStatement"),
        TryStatement: /* @__PURE__ */ __name(function(stmt, flags) {
          var result2, i3, iz, guardedHandlers;
          result2 = ["try", this.maybeBlock(stmt.block, S_TFFF)];
          result2 = this.maybeBlockSuffix(stmt.block, result2);
          if (stmt.handlers) {
            for (i3 = 0, iz = stmt.handlers.length; i3 < iz; ++i3) {
              result2 = join31(result2, this.generateStatement(stmt.handlers[i3], S_TFFF));
              if (stmt.finalizer || i3 + 1 !== iz) {
                result2 = this.maybeBlockSuffix(stmt.handlers[i3].body, result2);
              }
            }
          } else {
            guardedHandlers = stmt.guardedHandlers || [];
            for (i3 = 0, iz = guardedHandlers.length; i3 < iz; ++i3) {
              result2 = join31(result2, this.generateStatement(guardedHandlers[i3], S_TFFF));
              if (stmt.finalizer || i3 + 1 !== iz) {
                result2 = this.maybeBlockSuffix(guardedHandlers[i3].body, result2);
              }
            }
            if (stmt.handler) {
              if (Array.isArray(stmt.handler)) {
                for (i3 = 0, iz = stmt.handler.length; i3 < iz; ++i3) {
                  result2 = join31(result2, this.generateStatement(stmt.handler[i3], S_TFFF));
                  if (stmt.finalizer || i3 + 1 !== iz) {
                    result2 = this.maybeBlockSuffix(stmt.handler[i3].body, result2);
                  }
                }
              } else {
                result2 = join31(result2, this.generateStatement(stmt.handler, S_TFFF));
                if (stmt.finalizer) {
                  result2 = this.maybeBlockSuffix(stmt.handler.body, result2);
                }
              }
            }
          }
          if (stmt.finalizer) {
            result2 = join31(result2, ["finally", this.maybeBlock(stmt.finalizer, S_TFFF)]);
          }
          return result2;
        }, "TryStatement"),
        SwitchStatement: /* @__PURE__ */ __name(function(stmt, flags) {
          var result2, fragment, i3, iz, bodyFlags, that = this;
          withIndent(function() {
            result2 = [
              "switch" + space + "(",
              that.generateExpression(stmt.discriminant, Precedence.Sequence, E_TTT),
              ")" + space + "{" + newline
            ];
          });
          if (stmt.cases) {
            bodyFlags = S_TFFF;
            for (i3 = 0, iz = stmt.cases.length; i3 < iz; ++i3) {
              if (i3 === iz - 1) {
                bodyFlags |= F_SEMICOLON_OPT;
              }
              fragment = addIndent(this.generateStatement(stmt.cases[i3], bodyFlags));
              result2.push(fragment);
              if (!endsWithLineTerminator(toSourceNodeWhenNeeded(fragment).toString())) {
                result2.push(newline);
              }
            }
          }
          result2.push(addIndent("}"));
          return result2;
        }, "SwitchStatement"),
        SwitchCase: /* @__PURE__ */ __name(function(stmt, flags) {
          var result2, fragment, i3, iz, bodyFlags, that = this;
          withIndent(function() {
            if (stmt.test) {
              result2 = [
                join31("case", that.generateExpression(stmt.test, Precedence.Sequence, E_TTT)),
                ":"
              ];
            } else {
              result2 = ["default:"];
            }
            i3 = 0;
            iz = stmt.consequent.length;
            if (iz && stmt.consequent[0].type === Syntax.BlockStatement) {
              fragment = that.maybeBlock(stmt.consequent[0], S_TFFF);
              result2.push(fragment);
              i3 = 1;
            }
            if (i3 !== iz && !endsWithLineTerminator(toSourceNodeWhenNeeded(result2).toString())) {
              result2.push(newline);
            }
            bodyFlags = S_TFFF;
            for (; i3 < iz; ++i3) {
              if (i3 === iz - 1 && flags & F_SEMICOLON_OPT) {
                bodyFlags |= F_SEMICOLON_OPT;
              }
              fragment = addIndent(that.generateStatement(stmt.consequent[i3], bodyFlags));
              result2.push(fragment);
              if (i3 + 1 !== iz && !endsWithLineTerminator(toSourceNodeWhenNeeded(fragment).toString())) {
                result2.push(newline);
              }
            }
          });
          return result2;
        }, "SwitchCase"),
        IfStatement: /* @__PURE__ */ __name(function(stmt, flags) {
          var result2, bodyFlags, semicolonOptional, that = this;
          withIndent(function() {
            result2 = [
              "if" + space + "(",
              that.generateExpression(stmt.test, Precedence.Sequence, E_TTT),
              ")"
            ];
          });
          semicolonOptional = flags & F_SEMICOLON_OPT;
          bodyFlags = S_TFFF;
          if (semicolonOptional) {
            bodyFlags |= F_SEMICOLON_OPT;
          }
          if (stmt.alternate) {
            result2.push(this.maybeBlock(stmt.consequent, S_TFFF));
            result2 = this.maybeBlockSuffix(stmt.consequent, result2);
            if (stmt.alternate.type === Syntax.IfStatement) {
              result2 = join31(result2, ["else ", this.generateStatement(stmt.alternate, bodyFlags)]);
            } else {
              result2 = join31(result2, join31("else", this.maybeBlock(stmt.alternate, bodyFlags)));
            }
          } else {
            result2.push(this.maybeBlock(stmt.consequent, bodyFlags));
          }
          return result2;
        }, "IfStatement"),
        ForStatement: /* @__PURE__ */ __name(function(stmt, flags) {
          var result2, that = this;
          withIndent(function() {
            result2 = ["for" + space + "("];
            if (stmt.init) {
              if (stmt.init.type === Syntax.VariableDeclaration) {
                result2.push(that.generateStatement(stmt.init, S_FFFF));
              } else {
                result2.push(that.generateExpression(stmt.init, Precedence.Sequence, E_FTT));
                result2.push(";");
              }
            } else {
              result2.push(";");
            }
            if (stmt.test) {
              result2.push(space);
              result2.push(that.generateExpression(stmt.test, Precedence.Sequence, E_TTT));
              result2.push(";");
            } else {
              result2.push(";");
            }
            if (stmt.update) {
              result2.push(space);
              result2.push(that.generateExpression(stmt.update, Precedence.Sequence, E_TTT));
              result2.push(")");
            } else {
              result2.push(")");
            }
          });
          result2.push(this.maybeBlock(stmt.body, flags & F_SEMICOLON_OPT ? S_TFFT : S_TFFF));
          return result2;
        }, "ForStatement"),
        ForInStatement: /* @__PURE__ */ __name(function(stmt, flags) {
          return this.generateIterationForStatement("in", stmt, flags & F_SEMICOLON_OPT ? S_TFFT : S_TFFF);
        }, "ForInStatement"),
        ForOfStatement: /* @__PURE__ */ __name(function(stmt, flags) {
          return this.generateIterationForStatement("of", stmt, flags & F_SEMICOLON_OPT ? S_TFFT : S_TFFF);
        }, "ForOfStatement"),
        LabeledStatement: /* @__PURE__ */ __name(function(stmt, flags) {
          return [stmt.label.name + ":", this.maybeBlock(stmt.body, flags & F_SEMICOLON_OPT ? S_TFFT : S_TFFF)];
        }, "LabeledStatement"),
        Program: /* @__PURE__ */ __name(function(stmt, flags) {
          var result2, fragment, i3, iz, bodyFlags;
          iz = stmt.body.length;
          result2 = [safeConcatenation && iz > 0 ? "\n" : ""];
          bodyFlags = S_TFTF;
          for (i3 = 0; i3 < iz; ++i3) {
            if (!safeConcatenation && i3 === iz - 1) {
              bodyFlags |= F_SEMICOLON_OPT;
            }
            if (preserveBlankLines) {
              if (i3 === 0) {
                if (!stmt.body[0].leadingComments) {
                  generateBlankLines(stmt.range[0], stmt.body[i3].range[0], result2);
                }
              }
              if (i3 > 0) {
                if (!stmt.body[i3 - 1].trailingComments && !stmt.body[i3].leadingComments) {
                  generateBlankLines(stmt.body[i3 - 1].range[1], stmt.body[i3].range[0], result2);
                }
              }
            }
            fragment = addIndent(this.generateStatement(stmt.body[i3], bodyFlags));
            result2.push(fragment);
            if (i3 + 1 < iz && !endsWithLineTerminator(toSourceNodeWhenNeeded(fragment).toString())) {
              if (preserveBlankLines) {
                if (!stmt.body[i3 + 1].leadingComments) {
                  result2.push(newline);
                }
              } else {
                result2.push(newline);
              }
            }
            if (preserveBlankLines) {
              if (i3 === iz - 1) {
                if (!stmt.body[i3].trailingComments) {
                  generateBlankLines(stmt.body[i3].range[1], stmt.range[1], result2);
                }
              }
            }
          }
          return result2;
        }, "Program"),
        FunctionDeclaration: /* @__PURE__ */ __name(function(stmt, flags) {
          return [
            generateAsyncPrefix(stmt, true),
            "function",
            generateStarSuffix(stmt) || noEmptySpace(),
            stmt.id ? generateIdentifier(stmt.id) : "",
            this.generateFunctionBody(stmt)
          ];
        }, "FunctionDeclaration"),
        ReturnStatement: /* @__PURE__ */ __name(function(stmt, flags) {
          if (stmt.argument) {
            return [join31(
              "return",
              this.generateExpression(stmt.argument, Precedence.Sequence, E_TTT)
            ), this.semicolon(flags)];
          }
          return ["return" + this.semicolon(flags)];
        }, "ReturnStatement"),
        WhileStatement: /* @__PURE__ */ __name(function(stmt, flags) {
          var result2, that = this;
          withIndent(function() {
            result2 = [
              "while" + space + "(",
              that.generateExpression(stmt.test, Precedence.Sequence, E_TTT),
              ")"
            ];
          });
          result2.push(this.maybeBlock(stmt.body, flags & F_SEMICOLON_OPT ? S_TFFT : S_TFFF));
          return result2;
        }, "WhileStatement"),
        WithStatement: /* @__PURE__ */ __name(function(stmt, flags) {
          var result2, that = this;
          withIndent(function() {
            result2 = [
              "with" + space + "(",
              that.generateExpression(stmt.object, Precedence.Sequence, E_TTT),
              ")"
            ];
          });
          result2.push(this.maybeBlock(stmt.body, flags & F_SEMICOLON_OPT ? S_TFFT : S_TFFF));
          return result2;
        }, "WithStatement")
      };
      merge(CodeGenerator.prototype, CodeGenerator.Statement);
      CodeGenerator.Expression = {
        SequenceExpression: /* @__PURE__ */ __name(function(expr, precedence, flags) {
          var result2, i3, iz;
          if (Precedence.Sequence < precedence) {
            flags |= F_ALLOW_IN;
          }
          result2 = [];
          for (i3 = 0, iz = expr.expressions.length; i3 < iz; ++i3) {
            result2.push(this.generateExpression(expr.expressions[i3], Precedence.Assignment, flags));
            if (i3 + 1 < iz) {
              result2.push("," + space);
            }
          }
          return parenthesize(result2, Precedence.Sequence, precedence);
        }, "SequenceExpression"),
        AssignmentExpression: /* @__PURE__ */ __name(function(expr, precedence, flags) {
          return this.generateAssignment(expr.left, expr.right, expr.operator, precedence, flags);
        }, "AssignmentExpression"),
        ArrowFunctionExpression: /* @__PURE__ */ __name(function(expr, precedence, flags) {
          return parenthesize(this.generateFunctionBody(expr), Precedence.ArrowFunction, precedence);
        }, "ArrowFunctionExpression"),
        ConditionalExpression: /* @__PURE__ */ __name(function(expr, precedence, flags) {
          if (Precedence.Conditional < precedence) {
            flags |= F_ALLOW_IN;
          }
          return parenthesize(
            [
              this.generateExpression(expr.test, Precedence.Coalesce, flags),
              space + "?" + space,
              this.generateExpression(expr.consequent, Precedence.Assignment, flags),
              space + ":" + space,
              this.generateExpression(expr.alternate, Precedence.Assignment, flags)
            ],
            Precedence.Conditional,
            precedence
          );
        }, "ConditionalExpression"),
        LogicalExpression: /* @__PURE__ */ __name(function(expr, precedence, flags) {
          if (expr.operator === "??") {
            flags |= F_FOUND_COALESCE;
          }
          return this.BinaryExpression(expr, precedence, flags);
        }, "LogicalExpression"),
        BinaryExpression: /* @__PURE__ */ __name(function(expr, precedence, flags) {
          var result2, leftPrecedence, rightPrecedence, currentPrecedence, fragment, leftSource;
          currentPrecedence = BinaryPrecedence[expr.operator];
          leftPrecedence = expr.operator === "**" ? Precedence.Postfix : currentPrecedence;
          rightPrecedence = expr.operator === "**" ? currentPrecedence : currentPrecedence + 1;
          if (currentPrecedence < precedence) {
            flags |= F_ALLOW_IN;
          }
          fragment = this.generateExpression(expr.left, leftPrecedence, flags);
          leftSource = fragment.toString();
          if (leftSource.charCodeAt(leftSource.length - 1) === 47 && esutils.code.isIdentifierPartES5(expr.operator.charCodeAt(0))) {
            result2 = [fragment, noEmptySpace(), expr.operator];
          } else {
            result2 = join31(fragment, expr.operator);
          }
          fragment = this.generateExpression(expr.right, rightPrecedence, flags);
          if (expr.operator === "/" && fragment.toString().charAt(0) === "/" || expr.operator.slice(-1) === "<" && fragment.toString().slice(0, 3) === "!--") {
            result2.push(noEmptySpace());
            result2.push(fragment);
          } else {
            result2 = join31(result2, fragment);
          }
          if (expr.operator === "in" && !(flags & F_ALLOW_IN)) {
            return ["(", result2, ")"];
          }
          if ((expr.operator === "||" || expr.operator === "&&") && flags & F_FOUND_COALESCE) {
            return ["(", result2, ")"];
          }
          return parenthesize(result2, currentPrecedence, precedence);
        }, "BinaryExpression"),
        CallExpression: /* @__PURE__ */ __name(function(expr, precedence, flags) {
          var result2, i3, iz;
          result2 = [this.generateExpression(expr.callee, Precedence.Call, E_TTF)];
          if (expr.optional) {
            result2.push("?.");
          }
          result2.push("(");
          for (i3 = 0, iz = expr["arguments"].length; i3 < iz; ++i3) {
            result2.push(this.generateExpression(expr["arguments"][i3], Precedence.Assignment, E_TTT));
            if (i3 + 1 < iz) {
              result2.push("," + space);
            }
          }
          result2.push(")");
          if (!(flags & F_ALLOW_CALL)) {
            return ["(", result2, ")"];
          }
          return parenthesize(result2, Precedence.Call, precedence);
        }, "CallExpression"),
        ChainExpression: /* @__PURE__ */ __name(function(expr, precedence, flags) {
          if (Precedence.OptionalChaining < precedence) {
            flags |= F_ALLOW_CALL;
          }
          var result2 = this.generateExpression(expr.expression, Precedence.OptionalChaining, flags);
          return parenthesize(result2, Precedence.OptionalChaining, precedence);
        }, "ChainExpression"),
        NewExpression: /* @__PURE__ */ __name(function(expr, precedence, flags) {
          var result2, length, i3, iz, itemFlags;
          length = expr["arguments"].length;
          itemFlags = flags & F_ALLOW_UNPARATH_NEW && !parentheses && length === 0 ? E_TFT : E_TFF;
          result2 = join31(
            "new",
            this.generateExpression(expr.callee, Precedence.New, itemFlags)
          );
          if (!(flags & F_ALLOW_UNPARATH_NEW) || parentheses || length > 0) {
            result2.push("(");
            for (i3 = 0, iz = length; i3 < iz; ++i3) {
              result2.push(this.generateExpression(expr["arguments"][i3], Precedence.Assignment, E_TTT));
              if (i3 + 1 < iz) {
                result2.push("," + space);
              }
            }
            result2.push(")");
          }
          return parenthesize(result2, Precedence.New, precedence);
        }, "NewExpression"),
        MemberExpression: /* @__PURE__ */ __name(function(expr, precedence, flags) {
          var result2, fragment;
          result2 = [this.generateExpression(expr.object, Precedence.Call, flags & F_ALLOW_CALL ? E_TTF : E_TFF)];
          if (expr.computed) {
            if (expr.optional) {
              result2.push("?.");
            }
            result2.push("[");
            result2.push(this.generateExpression(expr.property, Precedence.Sequence, flags & F_ALLOW_CALL ? E_TTT : E_TFT));
            result2.push("]");
          } else {
            if (!expr.optional && expr.object.type === Syntax.Literal && typeof expr.object.value === "number") {
              fragment = toSourceNodeWhenNeeded(result2).toString();
              if (fragment.indexOf(".") < 0 && !/[eExX]/.test(fragment) && esutils.code.isDecimalDigit(fragment.charCodeAt(fragment.length - 1)) && !(fragment.length >= 2 && fragment.charCodeAt(0) === 48)) {
                result2.push(" ");
              }
            }
            result2.push(expr.optional ? "?." : ".");
            result2.push(generateIdentifier(expr.property));
          }
          return parenthesize(result2, Precedence.Member, precedence);
        }, "MemberExpression"),
        MetaProperty: /* @__PURE__ */ __name(function(expr, precedence, flags) {
          var result2;
          result2 = [];
          result2.push(typeof expr.meta === "string" ? expr.meta : generateIdentifier(expr.meta));
          result2.push(".");
          result2.push(typeof expr.property === "string" ? expr.property : generateIdentifier(expr.property));
          return parenthesize(result2, Precedence.Member, precedence);
        }, "MetaProperty"),
        UnaryExpression: /* @__PURE__ */ __name(function(expr, precedence, flags) {
          var result2, fragment, rightCharCode, leftSource, leftCharCode;
          fragment = this.generateExpression(expr.argument, Precedence.Unary, E_TTT);
          if (space === "") {
            result2 = join31(expr.operator, fragment);
          } else {
            result2 = [expr.operator];
            if (expr.operator.length > 2) {
              result2 = join31(result2, fragment);
            } else {
              leftSource = toSourceNodeWhenNeeded(result2).toString();
              leftCharCode = leftSource.charCodeAt(leftSource.length - 1);
              rightCharCode = fragment.toString().charCodeAt(0);
              if ((leftCharCode === 43 || leftCharCode === 45) && leftCharCode === rightCharCode || esutils.code.isIdentifierPartES5(leftCharCode) && esutils.code.isIdentifierPartES5(rightCharCode)) {
                result2.push(noEmptySpace());
                result2.push(fragment);
              } else {
                result2.push(fragment);
              }
            }
          }
          return parenthesize(result2, Precedence.Unary, precedence);
        }, "UnaryExpression"),
        YieldExpression: /* @__PURE__ */ __name(function(expr, precedence, flags) {
          var result2;
          if (expr.delegate) {
            result2 = "yield*";
          } else {
            result2 = "yield";
          }
          if (expr.argument) {
            result2 = join31(
              result2,
              this.generateExpression(expr.argument, Precedence.Yield, E_TTT)
            );
          }
          return parenthesize(result2, Precedence.Yield, precedence);
        }, "YieldExpression"),
        AwaitExpression: /* @__PURE__ */ __name(function(expr, precedence, flags) {
          var result2 = join31(
            expr.all ? "await*" : "await",
            this.generateExpression(expr.argument, Precedence.Await, E_TTT)
          );
          return parenthesize(result2, Precedence.Await, precedence);
        }, "AwaitExpression"),
        UpdateExpression: /* @__PURE__ */ __name(function(expr, precedence, flags) {
          if (expr.prefix) {
            return parenthesize(
              [
                expr.operator,
                this.generateExpression(expr.argument, Precedence.Unary, E_TTT)
              ],
              Precedence.Unary,
              precedence
            );
          }
          return parenthesize(
            [
              this.generateExpression(expr.argument, Precedence.Postfix, E_TTT),
              expr.operator
            ],
            Precedence.Postfix,
            precedence
          );
        }, "UpdateExpression"),
        FunctionExpression: /* @__PURE__ */ __name(function(expr, precedence, flags) {
          var result2 = [
            generateAsyncPrefix(expr, true),
            "function"
          ];
          if (expr.id) {
            result2.push(generateStarSuffix(expr) || noEmptySpace());
            result2.push(generateIdentifier(expr.id));
          } else {
            result2.push(generateStarSuffix(expr) || space);
          }
          result2.push(this.generateFunctionBody(expr));
          return result2;
        }, "FunctionExpression"),
        ArrayPattern: /* @__PURE__ */ __name(function(expr, precedence, flags) {
          return this.ArrayExpression(expr, precedence, flags, true);
        }, "ArrayPattern"),
        ArrayExpression: /* @__PURE__ */ __name(function(expr, precedence, flags, isPattern) {
          var result2, multiline, that = this;
          if (!expr.elements.length) {
            return "[]";
          }
          multiline = isPattern ? false : expr.elements.length > 1;
          result2 = ["[", multiline ? newline : ""];
          withIndent(function(indent2) {
            var i3, iz;
            for (i3 = 0, iz = expr.elements.length; i3 < iz; ++i3) {
              if (!expr.elements[i3]) {
                if (multiline) {
                  result2.push(indent2);
                }
                if (i3 + 1 === iz) {
                  result2.push(",");
                }
              } else {
                result2.push(multiline ? indent2 : "");
                result2.push(that.generateExpression(expr.elements[i3], Precedence.Assignment, E_TTT));
              }
              if (i3 + 1 < iz) {
                result2.push("," + (multiline ? newline : space));
              }
            }
          });
          if (multiline && !endsWithLineTerminator(toSourceNodeWhenNeeded(result2).toString())) {
            result2.push(newline);
          }
          result2.push(multiline ? base : "");
          result2.push("]");
          return result2;
        }, "ArrayExpression"),
        RestElement: /* @__PURE__ */ __name(function(expr, precedence, flags) {
          return "..." + this.generatePattern(expr.argument);
        }, "RestElement"),
        ClassExpression: /* @__PURE__ */ __name(function(expr, precedence, flags) {
          var result2, fragment;
          result2 = ["class"];
          if (expr.id) {
            result2 = join31(result2, this.generateExpression(expr.id, Precedence.Sequence, E_TTT));
          }
          if (expr.superClass) {
            fragment = join31("extends", this.generateExpression(expr.superClass, Precedence.Unary, E_TTT));
            result2 = join31(result2, fragment);
          }
          result2.push(space);
          result2.push(this.generateStatement(expr.body, S_TFFT));
          return result2;
        }, "ClassExpression"),
        MethodDefinition: /* @__PURE__ */ __name(function(expr, precedence, flags) {
          var result2, fragment;
          if (expr["static"]) {
            result2 = ["static" + space];
          } else {
            result2 = [];
          }
          if (expr.kind === "get" || expr.kind === "set") {
            fragment = [
              join31(expr.kind, this.generatePropertyKey(expr.key, expr.computed)),
              this.generateFunctionBody(expr.value)
            ];
          } else {
            fragment = [
              generateMethodPrefix(expr),
              this.generatePropertyKey(expr.key, expr.computed),
              this.generateFunctionBody(expr.value)
            ];
          }
          return join31(result2, fragment);
        }, "MethodDefinition"),
        Property: /* @__PURE__ */ __name(function(expr, precedence, flags) {
          if (expr.kind === "get" || expr.kind === "set") {
            return [
              expr.kind,
              noEmptySpace(),
              this.generatePropertyKey(expr.key, expr.computed),
              this.generateFunctionBody(expr.value)
            ];
          }
          if (expr.shorthand) {
            if (expr.value.type === "AssignmentPattern") {
              return this.AssignmentPattern(expr.value, Precedence.Sequence, E_TTT);
            }
            return this.generatePropertyKey(expr.key, expr.computed);
          }
          if (expr.method) {
            return [
              generateMethodPrefix(expr),
              this.generatePropertyKey(expr.key, expr.computed),
              this.generateFunctionBody(expr.value)
            ];
          }
          return [
            this.generatePropertyKey(expr.key, expr.computed),
            ":" + space,
            this.generateExpression(expr.value, Precedence.Assignment, E_TTT)
          ];
        }, "Property"),
        ObjectExpression: /* @__PURE__ */ __name(function(expr, precedence, flags) {
          var multiline, result2, fragment, that = this;
          if (!expr.properties.length) {
            return "{}";
          }
          multiline = expr.properties.length > 1;
          withIndent(function() {
            fragment = that.generateExpression(expr.properties[0], Precedence.Sequence, E_TTT);
          });
          if (!multiline) {
            if (!hasLineTerminator(toSourceNodeWhenNeeded(fragment).toString())) {
              return ["{", space, fragment, space, "}"];
            }
          }
          withIndent(function(indent2) {
            var i3, iz;
            result2 = ["{", newline, indent2, fragment];
            if (multiline) {
              result2.push("," + newline);
              for (i3 = 1, iz = expr.properties.length; i3 < iz; ++i3) {
                result2.push(indent2);
                result2.push(that.generateExpression(expr.properties[i3], Precedence.Sequence, E_TTT));
                if (i3 + 1 < iz) {
                  result2.push("," + newline);
                }
              }
            }
          });
          if (!endsWithLineTerminator(toSourceNodeWhenNeeded(result2).toString())) {
            result2.push(newline);
          }
          result2.push(base);
          result2.push("}");
          return result2;
        }, "ObjectExpression"),
        AssignmentPattern: /* @__PURE__ */ __name(function(expr, precedence, flags) {
          return this.generateAssignment(expr.left, expr.right, "=", precedence, flags);
        }, "AssignmentPattern"),
        ObjectPattern: /* @__PURE__ */ __name(function(expr, precedence, flags) {
          var result2, i3, iz, multiline, property, that = this;
          if (!expr.properties.length) {
            return "{}";
          }
          multiline = false;
          if (expr.properties.length === 1) {
            property = expr.properties[0];
            if (property.type === Syntax.Property && property.value.type !== Syntax.Identifier) {
              multiline = true;
            }
          } else {
            for (i3 = 0, iz = expr.properties.length; i3 < iz; ++i3) {
              property = expr.properties[i3];
              if (property.type === Syntax.Property && !property.shorthand) {
                multiline = true;
                break;
              }
            }
          }
          result2 = ["{", multiline ? newline : ""];
          withIndent(function(indent2) {
            var i4, iz2;
            for (i4 = 0, iz2 = expr.properties.length; i4 < iz2; ++i4) {
              result2.push(multiline ? indent2 : "");
              result2.push(that.generateExpression(expr.properties[i4], Precedence.Sequence, E_TTT));
              if (i4 + 1 < iz2) {
                result2.push("," + (multiline ? newline : space));
              }
            }
          });
          if (multiline && !endsWithLineTerminator(toSourceNodeWhenNeeded(result2).toString())) {
            result2.push(newline);
          }
          result2.push(multiline ? base : "");
          result2.push("}");
          return result2;
        }, "ObjectPattern"),
        ThisExpression: /* @__PURE__ */ __name(function(expr, precedence, flags) {
          return "this";
        }, "ThisExpression"),
        Super: /* @__PURE__ */ __name(function(expr, precedence, flags) {
          return "super";
        }, "Super"),
        Identifier: /* @__PURE__ */ __name(function(expr, precedence, flags) {
          return generateIdentifier(expr);
        }, "Identifier"),
        ImportDefaultSpecifier: /* @__PURE__ */ __name(function(expr, precedence, flags) {
          return generateIdentifier(expr.id || expr.local);
        }, "ImportDefaultSpecifier"),
        ImportNamespaceSpecifier: /* @__PURE__ */ __name(function(expr, precedence, flags) {
          var result2 = ["*"];
          var id = expr.id || expr.local;
          if (id) {
            result2.push(space + "as" + noEmptySpace() + generateIdentifier(id));
          }
          return result2;
        }, "ImportNamespaceSpecifier"),
        ImportSpecifier: /* @__PURE__ */ __name(function(expr, precedence, flags) {
          var imported = expr.imported;
          var result2 = [imported.name];
          var local = expr.local;
          if (local && local.name !== imported.name) {
            result2.push(noEmptySpace() + "as" + noEmptySpace() + generateIdentifier(local));
          }
          return result2;
        }, "ImportSpecifier"),
        ExportSpecifier: /* @__PURE__ */ __name(function(expr, precedence, flags) {
          var local = expr.local;
          var result2 = [local.name];
          var exported = expr.exported;
          if (exported && exported.name !== local.name) {
            result2.push(noEmptySpace() + "as" + noEmptySpace() + generateIdentifier(exported));
          }
          return result2;
        }, "ExportSpecifier"),
        Literal: /* @__PURE__ */ __name(function(expr, precedence, flags) {
          var raw;
          if (expr.hasOwnProperty("raw") && parse3 && extra.raw) {
            try {
              raw = parse3(expr.raw).body[0].expression;
              if (raw.type === Syntax.Literal) {
                if (raw.value === expr.value) {
                  return expr.raw;
                }
              }
            } catch (e3) {
            }
          }
          if (expr.regex) {
            return "/" + expr.regex.pattern + "/" + expr.regex.flags;
          }
          if (typeof expr.value === "bigint") {
            return expr.value.toString() + "n";
          }
          if (expr.bigint) {
            return expr.bigint + "n";
          }
          if (expr.value === null) {
            return "null";
          }
          if (typeof expr.value === "string") {
            return escapeString(expr.value);
          }
          if (typeof expr.value === "number") {
            return generateNumber(expr.value);
          }
          if (typeof expr.value === "boolean") {
            return expr.value ? "true" : "false";
          }
          return generateRegExp(expr.value);
        }, "Literal"),
        GeneratorExpression: /* @__PURE__ */ __name(function(expr, precedence, flags) {
          return this.ComprehensionExpression(expr, precedence, flags);
        }, "GeneratorExpression"),
        ComprehensionExpression: /* @__PURE__ */ __name(function(expr, precedence, flags) {
          var result2, i3, iz, fragment, that = this;
          result2 = expr.type === Syntax.GeneratorExpression ? ["("] : ["["];
          if (extra.moz.comprehensionExpressionStartsWithAssignment) {
            fragment = this.generateExpression(expr.body, Precedence.Assignment, E_TTT);
            result2.push(fragment);
          }
          if (expr.blocks) {
            withIndent(function() {
              for (i3 = 0, iz = expr.blocks.length; i3 < iz; ++i3) {
                fragment = that.generateExpression(expr.blocks[i3], Precedence.Sequence, E_TTT);
                if (i3 > 0 || extra.moz.comprehensionExpressionStartsWithAssignment) {
                  result2 = join31(result2, fragment);
                } else {
                  result2.push(fragment);
                }
              }
            });
          }
          if (expr.filter) {
            result2 = join31(result2, "if" + space);
            fragment = this.generateExpression(expr.filter, Precedence.Sequence, E_TTT);
            result2 = join31(result2, ["(", fragment, ")"]);
          }
          if (!extra.moz.comprehensionExpressionStartsWithAssignment) {
            fragment = this.generateExpression(expr.body, Precedence.Assignment, E_TTT);
            result2 = join31(result2, fragment);
          }
          result2.push(expr.type === Syntax.GeneratorExpression ? ")" : "]");
          return result2;
        }, "ComprehensionExpression"),
        ComprehensionBlock: /* @__PURE__ */ __name(function(expr, precedence, flags) {
          var fragment;
          if (expr.left.type === Syntax.VariableDeclaration) {
            fragment = [
              expr.left.kind,
              noEmptySpace(),
              this.generateStatement(expr.left.declarations[0], S_FFFF)
            ];
          } else {
            fragment = this.generateExpression(expr.left, Precedence.Call, E_TTT);
          }
          fragment = join31(fragment, expr.of ? "of" : "in");
          fragment = join31(fragment, this.generateExpression(expr.right, Precedence.Sequence, E_TTT));
          return ["for" + space + "(", fragment, ")"];
        }, "ComprehensionBlock"),
        SpreadElement: /* @__PURE__ */ __name(function(expr, precedence, flags) {
          return [
            "...",
            this.generateExpression(expr.argument, Precedence.Assignment, E_TTT)
          ];
        }, "SpreadElement"),
        TaggedTemplateExpression: /* @__PURE__ */ __name(function(expr, precedence, flags) {
          var itemFlags = E_TTF;
          if (!(flags & F_ALLOW_CALL)) {
            itemFlags = E_TFF;
          }
          var result2 = [
            this.generateExpression(expr.tag, Precedence.Call, itemFlags),
            this.generateExpression(expr.quasi, Precedence.Primary, E_FFT)
          ];
          return parenthesize(result2, Precedence.TaggedTemplate, precedence);
        }, "TaggedTemplateExpression"),
        TemplateElement: /* @__PURE__ */ __name(function(expr, precedence, flags) {
          return expr.value.raw;
        }, "TemplateElement"),
        TemplateLiteral: /* @__PURE__ */ __name(function(expr, precedence, flags) {
          var result2, i3, iz;
          result2 = ["`"];
          for (i3 = 0, iz = expr.quasis.length; i3 < iz; ++i3) {
            result2.push(this.generateExpression(expr.quasis[i3], Precedence.Primary, E_TTT));
            if (i3 + 1 < iz) {
              result2.push("${" + space);
              result2.push(this.generateExpression(expr.expressions[i3], Precedence.Sequence, E_TTT));
              result2.push(space + "}");
            }
          }
          result2.push("`");
          return result2;
        }, "TemplateLiteral"),
        ModuleSpecifier: /* @__PURE__ */ __name(function(expr, precedence, flags) {
          return this.Literal(expr, precedence, flags);
        }, "ModuleSpecifier"),
        ImportExpression: /* @__PURE__ */ __name(function(expr, precedence, flag) {
          return parenthesize([
            "import(",
            this.generateExpression(expr.source, Precedence.Assignment, E_TTT),
            ")"
          ], Precedence.Call, precedence);
        }, "ImportExpression")
      };
      merge(CodeGenerator.prototype, CodeGenerator.Expression);
      CodeGenerator.prototype.generateExpression = function(expr, precedence, flags) {
        var result2, type;
        type = expr.type || Syntax.Property;
        if (extra.verbatim && expr.hasOwnProperty(extra.verbatim)) {
          return generateVerbatim(expr, precedence);
        }
        result2 = this[type](expr, precedence, flags);
        if (extra.comment) {
          result2 = addComments(expr, result2);
        }
        return toSourceNodeWhenNeeded(result2, expr);
      };
      CodeGenerator.prototype.generateStatement = function(stmt, flags) {
        var result2, fragment;
        result2 = this[stmt.type](stmt, flags);
        if (extra.comment) {
          result2 = addComments(stmt, result2);
        }
        fragment = toSourceNodeWhenNeeded(result2).toString();
        if (stmt.type === Syntax.Program && !safeConcatenation && newline === "" && fragment.charAt(fragment.length - 1) === "\n") {
          result2 = sourceMap ? toSourceNodeWhenNeeded(result2).replaceRight(/\s+$/, "") : fragment.replace(/\s+$/, "");
        }
        return toSourceNodeWhenNeeded(result2, stmt);
      };
      function generateInternal(node) {
        var codegen;
        codegen = new CodeGenerator();
        if (isStatement(node)) {
          return codegen.generateStatement(node, S_TFFF);
        }
        if (isExpression(node)) {
          return codegen.generateExpression(node, Precedence.Sequence, E_TTT);
        }
        throw new Error("Unknown node type: " + node.type);
      }
      __name(generateInternal, "generateInternal");
      function generate(node, options) {
        var defaultOptions3 = getDefaultOptions(), result2, pair;
        if (options != null) {
          if (typeof options.indent === "string") {
            defaultOptions3.format.indent.style = options.indent;
          }
          if (typeof options.base === "number") {
            defaultOptions3.format.indent.base = options.base;
          }
          options = updateDeeply(defaultOptions3, options);
          indent = options.format.indent.style;
          if (typeof options.base === "string") {
            base = options.base;
          } else {
            base = stringRepeat(indent, options.format.indent.base);
          }
        } else {
          options = defaultOptions3;
          indent = options.format.indent.style;
          base = stringRepeat(indent, options.format.indent.base);
        }
        json = options.format.json;
        renumber = options.format.renumber;
        hexadecimal = json ? false : options.format.hexadecimal;
        quotes = json ? "double" : options.format.quotes;
        escapeless = options.format.escapeless;
        newline = options.format.newline;
        space = options.format.space;
        if (options.format.compact) {
          newline = space = indent = base = "";
        }
        parentheses = options.format.parentheses;
        semicolons = options.format.semicolons;
        safeConcatenation = options.format.safeConcatenation;
        directive = options.directive;
        parse3 = json ? null : options.parse;
        sourceMap = options.sourceMap;
        sourceCode = options.sourceCode;
        preserveBlankLines = options.format.preserveBlankLines && sourceCode !== null;
        extra = options;
        if (sourceMap) {
          if (!exports2.browser) {
            SourceNode = require_source_map().SourceNode;
          } else {
            SourceNode = global.sourceMap.SourceNode;
          }
        }
        result2 = generateInternal(node);
        if (!sourceMap) {
          pair = { code: result2.toString(), map: null };
          return options.sourceMapWithCode ? pair : pair.code;
        }
        pair = result2.toStringWithSourceMap({
          file: options.file,
          sourceRoot: options.sourceMapRoot
        });
        if (options.sourceContent) {
          pair.map.setSourceContent(
            options.sourceMap,
            options.sourceContent
          );
        }
        if (options.sourceMapWithCode) {
          return pair;
        }
        return pair.map.toString();
      }
      __name(generate, "generate");
      FORMAT_MINIFY = {
        indent: {
          style: "",
          base: 0
        },
        renumber: true,
        hexadecimal: true,
        quotes: "auto",
        escapeless: true,
        compact: true,
        parentheses: false,
        semicolons: false
      };
      FORMAT_DEFAULTS = getDefaultOptions().format;
      exports2.version = require_package21().version;
      exports2.generate = generate;
      exports2.attachComments = estraverse.attachComments;
      exports2.Precedence = updateDeeply({}, Precedence);
      exports2.browser = false;
      exports2.FORMAT_MINIFY = FORMAT_MINIFY;
      exports2.FORMAT_DEFAULTS = FORMAT_DEFAULTS;
    })();
  }
});

// ../../node_modules/esprima/dist/esprima.js
var require_esprima = __commonJS({
  "../../node_modules/esprima/dist/esprima.js"(exports2, module2) {
    (/* @__PURE__ */ __name((function webpackUniversalModuleDefinition(root, factory) {
      if (typeof exports2 === "object" && typeof module2 === "object")
        module2.exports = factory();
      else if (typeof define === "function" && define.amd)
        define([], factory);
      else if (typeof exports2 === "object")
        exports2["esprima"] = factory();
      else
        root["esprima"] = factory();
    }), "webpackUniversalModuleDefinition"))(exports2, function() {
      return (
        /******/
        (function(modules) {
          var installedModules = {};
          function __webpack_require__(moduleId) {
            if (installedModules[moduleId])
              return installedModules[moduleId].exports;
            var module3 = installedModules[moduleId] = {
              /******/
              exports: {},
              /******/
              id: moduleId,
              /******/
              loaded: false
              /******/
            };
            modules[moduleId].call(module3.exports, module3, module3.exports, __webpack_require__);
            module3.loaded = true;
            return module3.exports;
          }
          __name(__webpack_require__, "__webpack_require__");
          __webpack_require__.m = modules;
          __webpack_require__.c = installedModules;
          __webpack_require__.p = "";
          return __webpack_require__(0);
        })([
          /* 0 */
          /***/
          function(module3, exports3, __webpack_require__) {
            "use strict";
            Object.defineProperty(exports3, "__esModule", { value: true });
            var comment_handler_1 = __webpack_require__(1);
            var jsx_parser_1 = __webpack_require__(3);
            var parser_1 = __webpack_require__(8);
            var tokenizer_1 = __webpack_require__(15);
            function parse3(code, options, delegate) {
              var commentHandler = null;
              var proxyDelegate = /* @__PURE__ */ __name(function(node, metadata) {
                if (delegate) {
                  delegate(node, metadata);
                }
                if (commentHandler) {
                  commentHandler.visit(node, metadata);
                }
              }, "proxyDelegate");
              var parserDelegate = typeof delegate === "function" ? proxyDelegate : null;
              var collectComment = false;
              if (options) {
                collectComment = typeof options.comment === "boolean" && options.comment;
                var attachComment = typeof options.attachComment === "boolean" && options.attachComment;
                if (collectComment || attachComment) {
                  commentHandler = new comment_handler_1.CommentHandler();
                  commentHandler.attach = attachComment;
                  options.comment = true;
                  parserDelegate = proxyDelegate;
                }
              }
              var isModule = false;
              if (options && typeof options.sourceType === "string") {
                isModule = options.sourceType === "module";
              }
              var parser;
              if (options && typeof options.jsx === "boolean" && options.jsx) {
                parser = new jsx_parser_1.JSXParser(code, options, parserDelegate);
              } else {
                parser = new parser_1.Parser(code, options, parserDelegate);
              }
              var program = isModule ? parser.parseModule() : parser.parseScript();
              var ast = program;
              if (collectComment && commentHandler) {
                ast.comments = commentHandler.comments;
              }
              if (parser.config.tokens) {
                ast.tokens = parser.tokens;
              }
              if (parser.config.tolerant) {
                ast.errors = parser.errorHandler.errors;
              }
              return ast;
            }
            __name(parse3, "parse");
            exports3.parse = parse3;
            function parseModule(code, options, delegate) {
              var parsingOptions = options || {};
              parsingOptions.sourceType = "module";
              return parse3(code, parsingOptions, delegate);
            }
            __name(parseModule, "parseModule");
            exports3.parseModule = parseModule;
            function parseScript(code, options, delegate) {
              var parsingOptions = options || {};
              parsingOptions.sourceType = "script";
              return parse3(code, parsingOptions, delegate);
            }
            __name(parseScript, "parseScript");
            exports3.parseScript = parseScript;
            function tokenize(code, options, delegate) {
              var tokenizer = new tokenizer_1.Tokenizer(code, options);
              var tokens;
              tokens = [];
              try {
                while (true) {
                  var token = tokenizer.getNextToken();
                  if (!token) {
                    break;
                  }
                  if (delegate) {
                    token = delegate(token);
                  }
                  tokens.push(token);
                }
              } catch (e3) {
                tokenizer.errorHandler.tolerate(e3);
              }
              if (tokenizer.errorHandler.tolerant) {
                tokens.errors = tokenizer.errors();
              }
              return tokens;
            }
            __name(tokenize, "tokenize");
            exports3.tokenize = tokenize;
            var syntax_1 = __webpack_require__(2);
            exports3.Syntax = syntax_1.Syntax;
            exports3.version = "4.0.1";
          },
          /* 1 */
          /***/
          function(module3, exports3, __webpack_require__) {
            "use strict";
            Object.defineProperty(exports3, "__esModule", { value: true });
            var syntax_1 = __webpack_require__(2);
            var CommentHandler = (function() {
              function CommentHandler2() {
                this.attach = false;
                this.comments = [];
                this.stack = [];
                this.leading = [];
                this.trailing = [];
              }
              __name(CommentHandler2, "CommentHandler");
              CommentHandler2.prototype.insertInnerComments = function(node, metadata) {
                if (node.type === syntax_1.Syntax.BlockStatement && node.body.length === 0) {
                  var innerComments = [];
                  for (var i3 = this.leading.length - 1; i3 >= 0; --i3) {
                    var entry = this.leading[i3];
                    if (metadata.end.offset >= entry.start) {
                      innerComments.unshift(entry.comment);
                      this.leading.splice(i3, 1);
                      this.trailing.splice(i3, 1);
                    }
                  }
                  if (innerComments.length) {
                    node.innerComments = innerComments;
                  }
                }
              };
              CommentHandler2.prototype.findTrailingComments = function(metadata) {
                var trailingComments = [];
                if (this.trailing.length > 0) {
                  for (var i3 = this.trailing.length - 1; i3 >= 0; --i3) {
                    var entry_1 = this.trailing[i3];
                    if (entry_1.start >= metadata.end.offset) {
                      trailingComments.unshift(entry_1.comment);
                    }
                  }
                  this.trailing.length = 0;
                  return trailingComments;
                }
                var entry = this.stack[this.stack.length - 1];
                if (entry && entry.node.trailingComments) {
                  var firstComment = entry.node.trailingComments[0];
                  if (firstComment && firstComment.range[0] >= metadata.end.offset) {
                    trailingComments = entry.node.trailingComments;
                    delete entry.node.trailingComments;
                  }
                }
                return trailingComments;
              };
              CommentHandler2.prototype.findLeadingComments = function(metadata) {
                var leadingComments = [];
                var target;
                while (this.stack.length > 0) {
                  var entry = this.stack[this.stack.length - 1];
                  if (entry && entry.start >= metadata.start.offset) {
                    target = entry.node;
                    this.stack.pop();
                  } else {
                    break;
                  }
                }
                if (target) {
                  var count = target.leadingComments ? target.leadingComments.length : 0;
                  for (var i3 = count - 1; i3 >= 0; --i3) {
                    var comment = target.leadingComments[i3];
                    if (comment.range[1] <= metadata.start.offset) {
                      leadingComments.unshift(comment);
                      target.leadingComments.splice(i3, 1);
                    }
                  }
                  if (target.leadingComments && target.leadingComments.length === 0) {
                    delete target.leadingComments;
                  }
                  return leadingComments;
                }
                for (var i3 = this.leading.length - 1; i3 >= 0; --i3) {
                  var entry = this.leading[i3];
                  if (entry.start <= metadata.start.offset) {
                    leadingComments.unshift(entry.comment);
                    this.leading.splice(i3, 1);
                  }
                }
                return leadingComments;
              };
              CommentHandler2.prototype.visitNode = function(node, metadata) {
                if (node.type === syntax_1.Syntax.Program && node.body.length > 0) {
                  return;
                }
                this.insertInnerComments(node, metadata);
                var trailingComments = this.findTrailingComments(metadata);
                var leadingComments = this.findLeadingComments(metadata);
                if (leadingComments.length > 0) {
                  node.leadingComments = leadingComments;
                }
                if (trailingComments.length > 0) {
                  node.trailingComments = trailingComments;
                }
                this.stack.push({
                  node,
                  start: metadata.start.offset
                });
              };
              CommentHandler2.prototype.visitComment = function(node, metadata) {
                var type = node.type[0] === "L" ? "Line" : "Block";
                var comment = {
                  type,
                  value: node.value
                };
                if (node.range) {
                  comment.range = node.range;
                }
                if (node.loc) {
                  comment.loc = node.loc;
                }
                this.comments.push(comment);
                if (this.attach) {
                  var entry = {
                    comment: {
                      type,
                      value: node.value,
                      range: [metadata.start.offset, metadata.end.offset]
                    },
                    start: metadata.start.offset
                  };
                  if (node.loc) {
                    entry.comment.loc = node.loc;
                  }
                  node.type = type;
                  this.leading.push(entry);
                  this.trailing.push(entry);
                }
              };
              CommentHandler2.prototype.visit = function(node, metadata) {
                if (node.type === "LineComment") {
                  this.visitComment(node, metadata);
                } else if (node.type === "BlockComment") {
                  this.visitComment(node, metadata);
                } else if (this.attach) {
                  this.visitNode(node, metadata);
                }
              };
              return CommentHandler2;
            })();
            exports3.CommentHandler = CommentHandler;
          },
          /* 2 */
          /***/
          function(module3, exports3) {
            "use strict";
            Object.defineProperty(exports3, "__esModule", { value: true });
            exports3.Syntax = {
              AssignmentExpression: "AssignmentExpression",
              AssignmentPattern: "AssignmentPattern",
              ArrayExpression: "ArrayExpression",
              ArrayPattern: "ArrayPattern",
              ArrowFunctionExpression: "ArrowFunctionExpression",
              AwaitExpression: "AwaitExpression",
              BlockStatement: "BlockStatement",
              BinaryExpression: "BinaryExpression",
              BreakStatement: "BreakStatement",
              CallExpression: "CallExpression",
              CatchClause: "CatchClause",
              ClassBody: "ClassBody",
              ClassDeclaration: "ClassDeclaration",
              ClassExpression: "ClassExpression",
              ConditionalExpression: "ConditionalExpression",
              ContinueStatement: "ContinueStatement",
              DoWhileStatement: "DoWhileStatement",
              DebuggerStatement: "DebuggerStatement",
              EmptyStatement: "EmptyStatement",
              ExportAllDeclaration: "ExportAllDeclaration",
              ExportDefaultDeclaration: "ExportDefaultDeclaration",
              ExportNamedDeclaration: "ExportNamedDeclaration",
              ExportSpecifier: "ExportSpecifier",
              ExpressionStatement: "ExpressionStatement",
              ForStatement: "ForStatement",
              ForOfStatement: "ForOfStatement",
              ForInStatement: "ForInStatement",
              FunctionDeclaration: "FunctionDeclaration",
              FunctionExpression: "FunctionExpression",
              Identifier: "Identifier",
              IfStatement: "IfStatement",
              ImportDeclaration: "ImportDeclaration",
              ImportDefaultSpecifier: "ImportDefaultSpecifier",
              ImportNamespaceSpecifier: "ImportNamespaceSpecifier",
              ImportSpecifier: "ImportSpecifier",
              Literal: "Literal",
              LabeledStatement: "LabeledStatement",
              LogicalExpression: "LogicalExpression",
              MemberExpression: "MemberExpression",
              MetaProperty: "MetaProperty",
              MethodDefinition: "MethodDefinition",
              NewExpression: "NewExpression",
              ObjectExpression: "ObjectExpression",
              ObjectPattern: "ObjectPattern",
              Program: "Program",
              Property: "Property",
              RestElement: "RestElement",
              ReturnStatement: "ReturnStatement",
              SequenceExpression: "SequenceExpression",
              SpreadElement: "SpreadElement",
              Super: "Super",
              SwitchCase: "SwitchCase",
              SwitchStatement: "SwitchStatement",
              TaggedTemplateExpression: "TaggedTemplateExpression",
              TemplateElement: "TemplateElement",
              TemplateLiteral: "TemplateLiteral",
              ThisExpression: "ThisExpression",
              ThrowStatement: "ThrowStatement",
              TryStatement: "TryStatement",
              UnaryExpression: "UnaryExpression",
              UpdateExpression: "UpdateExpression",
              VariableDeclaration: "VariableDeclaration",
              VariableDeclarator: "VariableDeclarator",
              WhileStatement: "WhileStatement",
              WithStatement: "WithStatement",
              YieldExpression: "YieldExpression"
            };
          },
          /* 3 */
          /***/
          function(module3, exports3, __webpack_require__) {
            "use strict";
            var __extends2 = this && this.__extends || (function() {
              var extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d3, b3) {
                d3.__proto__ = b3;
              } || function(d3, b3) {
                for (var p3 in b3) if (b3.hasOwnProperty(p3)) d3[p3] = b3[p3];
              };
              return function(d3, b3) {
                extendStatics2(d3, b3);
                function __() {
                  this.constructor = d3;
                }
                __name(__, "__");
                d3.prototype = b3 === null ? Object.create(b3) : (__.prototype = b3.prototype, new __());
              };
            })();
            Object.defineProperty(exports3, "__esModule", { value: true });
            var character_1 = __webpack_require__(4);
            var JSXNode = __webpack_require__(5);
            var jsx_syntax_1 = __webpack_require__(6);
            var Node2 = __webpack_require__(7);
            var parser_1 = __webpack_require__(8);
            var token_1 = __webpack_require__(13);
            var xhtml_entities_1 = __webpack_require__(14);
            token_1.TokenName[
              100
              /* Identifier */
            ] = "JSXIdentifier";
            token_1.TokenName[
              101
              /* Text */
            ] = "JSXText";
            function getQualifiedElementName(elementName) {
              var qualifiedName;
              switch (elementName.type) {
                case jsx_syntax_1.JSXSyntax.JSXIdentifier:
                  var id = elementName;
                  qualifiedName = id.name;
                  break;
                case jsx_syntax_1.JSXSyntax.JSXNamespacedName:
                  var ns = elementName;
                  qualifiedName = getQualifiedElementName(ns.namespace) + ":" + getQualifiedElementName(ns.name);
                  break;
                case jsx_syntax_1.JSXSyntax.JSXMemberExpression:
                  var expr = elementName;
                  qualifiedName = getQualifiedElementName(expr.object) + "." + getQualifiedElementName(expr.property);
                  break;
                /* istanbul ignore next */
                default:
                  break;
              }
              return qualifiedName;
            }
            __name(getQualifiedElementName, "getQualifiedElementName");
            var JSXParser = (function(_super) {
              __extends2(JSXParser2, _super);
              function JSXParser2(code, options, delegate) {
                return _super.call(this, code, options, delegate) || this;
              }
              __name(JSXParser2, "JSXParser");
              JSXParser2.prototype.parsePrimaryExpression = function() {
                return this.match("<") ? this.parseJSXRoot() : _super.prototype.parsePrimaryExpression.call(this);
              };
              JSXParser2.prototype.startJSX = function() {
                this.scanner.index = this.startMarker.index;
                this.scanner.lineNumber = this.startMarker.line;
                this.scanner.lineStart = this.startMarker.index - this.startMarker.column;
              };
              JSXParser2.prototype.finishJSX = function() {
                this.nextToken();
              };
              JSXParser2.prototype.reenterJSX = function() {
                this.startJSX();
                this.expectJSX("}");
                if (this.config.tokens) {
                  this.tokens.pop();
                }
              };
              JSXParser2.prototype.createJSXNode = function() {
                this.collectComments();
                return {
                  index: this.scanner.index,
                  line: this.scanner.lineNumber,
                  column: this.scanner.index - this.scanner.lineStart
                };
              };
              JSXParser2.prototype.createJSXChildNode = function() {
                return {
                  index: this.scanner.index,
                  line: this.scanner.lineNumber,
                  column: this.scanner.index - this.scanner.lineStart
                };
              };
              JSXParser2.prototype.scanXHTMLEntity = function(quote) {
                var result2 = "&";
                var valid3 = true;
                var terminated = false;
                var numeric2 = false;
                var hex = false;
                while (!this.scanner.eof() && valid3 && !terminated) {
                  var ch = this.scanner.source[this.scanner.index];
                  if (ch === quote) {
                    break;
                  }
                  terminated = ch === ";";
                  result2 += ch;
                  ++this.scanner.index;
                  if (!terminated) {
                    switch (result2.length) {
                      case 2:
                        numeric2 = ch === "#";
                        break;
                      case 3:
                        if (numeric2) {
                          hex = ch === "x";
                          valid3 = hex || character_1.Character.isDecimalDigit(ch.charCodeAt(0));
                          numeric2 = numeric2 && !hex;
                        }
                        break;
                      default:
                        valid3 = valid3 && !(numeric2 && !character_1.Character.isDecimalDigit(ch.charCodeAt(0)));
                        valid3 = valid3 && !(hex && !character_1.Character.isHexDigit(ch.charCodeAt(0)));
                        break;
                    }
                  }
                }
                if (valid3 && terminated && result2.length > 2) {
                  var str = result2.substr(1, result2.length - 2);
                  if (numeric2 && str.length > 1) {
                    result2 = String.fromCharCode(parseInt(str.substr(1), 10));
                  } else if (hex && str.length > 2) {
                    result2 = String.fromCharCode(parseInt("0" + str.substr(1), 16));
                  } else if (!numeric2 && !hex && xhtml_entities_1.XHTMLEntities[str]) {
                    result2 = xhtml_entities_1.XHTMLEntities[str];
                  }
                }
                return result2;
              };
              JSXParser2.prototype.lexJSX = function() {
                var cp = this.scanner.source.charCodeAt(this.scanner.index);
                if (cp === 60 || cp === 62 || cp === 47 || cp === 58 || cp === 61 || cp === 123 || cp === 125) {
                  var value = this.scanner.source[this.scanner.index++];
                  return {
                    type: 7,
                    value,
                    lineNumber: this.scanner.lineNumber,
                    lineStart: this.scanner.lineStart,
                    start: this.scanner.index - 1,
                    end: this.scanner.index
                  };
                }
                if (cp === 34 || cp === 39) {
                  var start = this.scanner.index;
                  var quote = this.scanner.source[this.scanner.index++];
                  var str = "";
                  while (!this.scanner.eof()) {
                    var ch = this.scanner.source[this.scanner.index++];
                    if (ch === quote) {
                      break;
                    } else if (ch === "&") {
                      str += this.scanXHTMLEntity(quote);
                    } else {
                      str += ch;
                    }
                  }
                  return {
                    type: 8,
                    value: str,
                    lineNumber: this.scanner.lineNumber,
                    lineStart: this.scanner.lineStart,
                    start,
                    end: this.scanner.index
                  };
                }
                if (cp === 46) {
                  var n1 = this.scanner.source.charCodeAt(this.scanner.index + 1);
                  var n22 = this.scanner.source.charCodeAt(this.scanner.index + 2);
                  var value = n1 === 46 && n22 === 46 ? "..." : ".";
                  var start = this.scanner.index;
                  this.scanner.index += value.length;
                  return {
                    type: 7,
                    value,
                    lineNumber: this.scanner.lineNumber,
                    lineStart: this.scanner.lineStart,
                    start,
                    end: this.scanner.index
                  };
                }
                if (cp === 96) {
                  return {
                    type: 10,
                    value: "",
                    lineNumber: this.scanner.lineNumber,
                    lineStart: this.scanner.lineStart,
                    start: this.scanner.index,
                    end: this.scanner.index
                  };
                }
                if (character_1.Character.isIdentifierStart(cp) && cp !== 92) {
                  var start = this.scanner.index;
                  ++this.scanner.index;
                  while (!this.scanner.eof()) {
                    var ch = this.scanner.source.charCodeAt(this.scanner.index);
                    if (character_1.Character.isIdentifierPart(ch) && ch !== 92) {
                      ++this.scanner.index;
                    } else if (ch === 45) {
                      ++this.scanner.index;
                    } else {
                      break;
                    }
                  }
                  var id = this.scanner.source.slice(start, this.scanner.index);
                  return {
                    type: 100,
                    value: id,
                    lineNumber: this.scanner.lineNumber,
                    lineStart: this.scanner.lineStart,
                    start,
                    end: this.scanner.index
                  };
                }
                return this.scanner.lex();
              };
              JSXParser2.prototype.nextJSXToken = function() {
                this.collectComments();
                this.startMarker.index = this.scanner.index;
                this.startMarker.line = this.scanner.lineNumber;
                this.startMarker.column = this.scanner.index - this.scanner.lineStart;
                var token = this.lexJSX();
                this.lastMarker.index = this.scanner.index;
                this.lastMarker.line = this.scanner.lineNumber;
                this.lastMarker.column = this.scanner.index - this.scanner.lineStart;
                if (this.config.tokens) {
                  this.tokens.push(this.convertToken(token));
                }
                return token;
              };
              JSXParser2.prototype.nextJSXText = function() {
                this.startMarker.index = this.scanner.index;
                this.startMarker.line = this.scanner.lineNumber;
                this.startMarker.column = this.scanner.index - this.scanner.lineStart;
                var start = this.scanner.index;
                var text = "";
                while (!this.scanner.eof()) {
                  var ch = this.scanner.source[this.scanner.index];
                  if (ch === "{" || ch === "<") {
                    break;
                  }
                  ++this.scanner.index;
                  text += ch;
                  if (character_1.Character.isLineTerminator(ch.charCodeAt(0))) {
                    ++this.scanner.lineNumber;
                    if (ch === "\r" && this.scanner.source[this.scanner.index] === "\n") {
                      ++this.scanner.index;
                    }
                    this.scanner.lineStart = this.scanner.index;
                  }
                }
                this.lastMarker.index = this.scanner.index;
                this.lastMarker.line = this.scanner.lineNumber;
                this.lastMarker.column = this.scanner.index - this.scanner.lineStart;
                var token = {
                  type: 101,
                  value: text,
                  lineNumber: this.scanner.lineNumber,
                  lineStart: this.scanner.lineStart,
                  start,
                  end: this.scanner.index
                };
                if (text.length > 0 && this.config.tokens) {
                  this.tokens.push(this.convertToken(token));
                }
                return token;
              };
              JSXParser2.prototype.peekJSXToken = function() {
                var state2 = this.scanner.saveState();
                this.scanner.scanComments();
                var next = this.lexJSX();
                this.scanner.restoreState(state2);
                return next;
              };
              JSXParser2.prototype.expectJSX = function(value) {
                var token = this.nextJSXToken();
                if (token.type !== 7 || token.value !== value) {
                  this.throwUnexpectedToken(token);
                }
              };
              JSXParser2.prototype.matchJSX = function(value) {
                var next = this.peekJSXToken();
                return next.type === 7 && next.value === value;
              };
              JSXParser2.prototype.parseJSXIdentifier = function() {
                var node = this.createJSXNode();
                var token = this.nextJSXToken();
                if (token.type !== 100) {
                  this.throwUnexpectedToken(token);
                }
                return this.finalize(node, new JSXNode.JSXIdentifier(token.value));
              };
              JSXParser2.prototype.parseJSXElementName = function() {
                var node = this.createJSXNode();
                var elementName = this.parseJSXIdentifier();
                if (this.matchJSX(":")) {
                  var namespace = elementName;
                  this.expectJSX(":");
                  var name_1 = this.parseJSXIdentifier();
                  elementName = this.finalize(node, new JSXNode.JSXNamespacedName(namespace, name_1));
                } else if (this.matchJSX(".")) {
                  while (this.matchJSX(".")) {
                    var object = elementName;
                    this.expectJSX(".");
                    var property = this.parseJSXIdentifier();
                    elementName = this.finalize(node, new JSXNode.JSXMemberExpression(object, property));
                  }
                }
                return elementName;
              };
              JSXParser2.prototype.parseJSXAttributeName = function() {
                var node = this.createJSXNode();
                var attributeName;
                var identifier = this.parseJSXIdentifier();
                if (this.matchJSX(":")) {
                  var namespace = identifier;
                  this.expectJSX(":");
                  var name_2 = this.parseJSXIdentifier();
                  attributeName = this.finalize(node, new JSXNode.JSXNamespacedName(namespace, name_2));
                } else {
                  attributeName = identifier;
                }
                return attributeName;
              };
              JSXParser2.prototype.parseJSXStringLiteralAttribute = function() {
                var node = this.createJSXNode();
                var token = this.nextJSXToken();
                if (token.type !== 8) {
                  this.throwUnexpectedToken(token);
                }
                var raw = this.getTokenRaw(token);
                return this.finalize(node, new Node2.Literal(token.value, raw));
              };
              JSXParser2.prototype.parseJSXExpressionAttribute = function() {
                var node = this.createJSXNode();
                this.expectJSX("{");
                this.finishJSX();
                if (this.match("}")) {
                  this.tolerateError("JSX attributes must only be assigned a non-empty expression");
                }
                var expression = this.parseAssignmentExpression();
                this.reenterJSX();
                return this.finalize(node, new JSXNode.JSXExpressionContainer(expression));
              };
              JSXParser2.prototype.parseJSXAttributeValue = function() {
                return this.matchJSX("{") ? this.parseJSXExpressionAttribute() : this.matchJSX("<") ? this.parseJSXElement() : this.parseJSXStringLiteralAttribute();
              };
              JSXParser2.prototype.parseJSXNameValueAttribute = function() {
                var node = this.createJSXNode();
                var name = this.parseJSXAttributeName();
                var value = null;
                if (this.matchJSX("=")) {
                  this.expectJSX("=");
                  value = this.parseJSXAttributeValue();
                }
                return this.finalize(node, new JSXNode.JSXAttribute(name, value));
              };
              JSXParser2.prototype.parseJSXSpreadAttribute = function() {
                var node = this.createJSXNode();
                this.expectJSX("{");
                this.expectJSX("...");
                this.finishJSX();
                var argument = this.parseAssignmentExpression();
                this.reenterJSX();
                return this.finalize(node, new JSXNode.JSXSpreadAttribute(argument));
              };
              JSXParser2.prototype.parseJSXAttributes = function() {
                var attributes = [];
                while (!this.matchJSX("/") && !this.matchJSX(">")) {
                  var attribute = this.matchJSX("{") ? this.parseJSXSpreadAttribute() : this.parseJSXNameValueAttribute();
                  attributes.push(attribute);
                }
                return attributes;
              };
              JSXParser2.prototype.parseJSXOpeningElement = function() {
                var node = this.createJSXNode();
                this.expectJSX("<");
                var name = this.parseJSXElementName();
                var attributes = this.parseJSXAttributes();
                var selfClosing = this.matchJSX("/");
                if (selfClosing) {
                  this.expectJSX("/");
                }
                this.expectJSX(">");
                return this.finalize(node, new JSXNode.JSXOpeningElement(name, selfClosing, attributes));
              };
              JSXParser2.prototype.parseJSXBoundaryElement = function() {
                var node = this.createJSXNode();
                this.expectJSX("<");
                if (this.matchJSX("/")) {
                  this.expectJSX("/");
                  var name_3 = this.parseJSXElementName();
                  this.expectJSX(">");
                  return this.finalize(node, new JSXNode.JSXClosingElement(name_3));
                }
                var name = this.parseJSXElementName();
                var attributes = this.parseJSXAttributes();
                var selfClosing = this.matchJSX("/");
                if (selfClosing) {
                  this.expectJSX("/");
                }
                this.expectJSX(">");
                return this.finalize(node, new JSXNode.JSXOpeningElement(name, selfClosing, attributes));
              };
              JSXParser2.prototype.parseJSXEmptyExpression = function() {
                var node = this.createJSXChildNode();
                this.collectComments();
                this.lastMarker.index = this.scanner.index;
                this.lastMarker.line = this.scanner.lineNumber;
                this.lastMarker.column = this.scanner.index - this.scanner.lineStart;
                return this.finalize(node, new JSXNode.JSXEmptyExpression());
              };
              JSXParser2.prototype.parseJSXExpressionContainer = function() {
                var node = this.createJSXNode();
                this.expectJSX("{");
                var expression;
                if (this.matchJSX("}")) {
                  expression = this.parseJSXEmptyExpression();
                  this.expectJSX("}");
                } else {
                  this.finishJSX();
                  expression = this.parseAssignmentExpression();
                  this.reenterJSX();
                }
                return this.finalize(node, new JSXNode.JSXExpressionContainer(expression));
              };
              JSXParser2.prototype.parseJSXChildren = function() {
                var children = [];
                while (!this.scanner.eof()) {
                  var node = this.createJSXChildNode();
                  var token = this.nextJSXText();
                  if (token.start < token.end) {
                    var raw = this.getTokenRaw(token);
                    var child = this.finalize(node, new JSXNode.JSXText(token.value, raw));
                    children.push(child);
                  }
                  if (this.scanner.source[this.scanner.index] === "{") {
                    var container = this.parseJSXExpressionContainer();
                    children.push(container);
                  } else {
                    break;
                  }
                }
                return children;
              };
              JSXParser2.prototype.parseComplexJSXElement = function(el) {
                var stack = [];
                while (!this.scanner.eof()) {
                  el.children = el.children.concat(this.parseJSXChildren());
                  var node = this.createJSXChildNode();
                  var element = this.parseJSXBoundaryElement();
                  if (element.type === jsx_syntax_1.JSXSyntax.JSXOpeningElement) {
                    var opening = element;
                    if (opening.selfClosing) {
                      var child = this.finalize(node, new JSXNode.JSXElement(opening, [], null));
                      el.children.push(child);
                    } else {
                      stack.push(el);
                      el = { node, opening, closing: null, children: [] };
                    }
                  }
                  if (element.type === jsx_syntax_1.JSXSyntax.JSXClosingElement) {
                    el.closing = element;
                    var open_1 = getQualifiedElementName(el.opening.name);
                    var close_1 = getQualifiedElementName(el.closing.name);
                    if (open_1 !== close_1) {
                      this.tolerateError("Expected corresponding JSX closing tag for %0", open_1);
                    }
                    if (stack.length > 0) {
                      var child = this.finalize(el.node, new JSXNode.JSXElement(el.opening, el.children, el.closing));
                      el = stack[stack.length - 1];
                      el.children.push(child);
                      stack.pop();
                    } else {
                      break;
                    }
                  }
                }
                return el;
              };
              JSXParser2.prototype.parseJSXElement = function() {
                var node = this.createJSXNode();
                var opening = this.parseJSXOpeningElement();
                var children = [];
                var closing = null;
                if (!opening.selfClosing) {
                  var el = this.parseComplexJSXElement({ node, opening, closing, children });
                  children = el.children;
                  closing = el.closing;
                }
                return this.finalize(node, new JSXNode.JSXElement(opening, children, closing));
              };
              JSXParser2.prototype.parseJSXRoot = function() {
                if (this.config.tokens) {
                  this.tokens.pop();
                }
                this.startJSX();
                var element = this.parseJSXElement();
                this.finishJSX();
                return element;
              };
              JSXParser2.prototype.isStartOfExpression = function() {
                return _super.prototype.isStartOfExpression.call(this) || this.match("<");
              };
              return JSXParser2;
            })(parser_1.Parser);
            exports3.JSXParser = JSXParser;
          },
          /* 4 */
          /***/
          function(module3, exports3) {
            "use strict";
            Object.defineProperty(exports3, "__esModule", { value: true });
            var Regex = {
              // Unicode v8.0.0 NonAsciiIdentifierStart:
              NonAsciiIdentifierStart: /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,
              // Unicode v8.0.0 NonAsciiIdentifierPart:
              NonAsciiIdentifierPart: /[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/
            };
            exports3.Character = {
              /* tslint:disable:no-bitwise */
              fromCodePoint: /* @__PURE__ */ __name(function(cp) {
                return cp < 65536 ? String.fromCharCode(cp) : String.fromCharCode(55296 + (cp - 65536 >> 10)) + String.fromCharCode(56320 + (cp - 65536 & 1023));
              }, "fromCodePoint"),
              // https://tc39.github.io/ecma262/#sec-white-space
              isWhiteSpace: /* @__PURE__ */ __name(function(cp) {
                return cp === 32 || cp === 9 || cp === 11 || cp === 12 || cp === 160 || cp >= 5760 && [5760, 8192, 8193, 8194, 8195, 8196, 8197, 8198, 8199, 8200, 8201, 8202, 8239, 8287, 12288, 65279].indexOf(cp) >= 0;
              }, "isWhiteSpace"),
              // https://tc39.github.io/ecma262/#sec-line-terminators
              isLineTerminator: /* @__PURE__ */ __name(function(cp) {
                return cp === 10 || cp === 13 || cp === 8232 || cp === 8233;
              }, "isLineTerminator"),
              // https://tc39.github.io/ecma262/#sec-names-and-keywords
              isIdentifierStart: /* @__PURE__ */ __name(function(cp) {
                return cp === 36 || cp === 95 || cp >= 65 && cp <= 90 || cp >= 97 && cp <= 122 || cp === 92 || cp >= 128 && Regex.NonAsciiIdentifierStart.test(exports3.Character.fromCodePoint(cp));
              }, "isIdentifierStart"),
              isIdentifierPart: /* @__PURE__ */ __name(function(cp) {
                return cp === 36 || cp === 95 || cp >= 65 && cp <= 90 || cp >= 97 && cp <= 122 || cp >= 48 && cp <= 57 || cp === 92 || cp >= 128 && Regex.NonAsciiIdentifierPart.test(exports3.Character.fromCodePoint(cp));
              }, "isIdentifierPart"),
              // https://tc39.github.io/ecma262/#sec-literals-numeric-literals
              isDecimalDigit: /* @__PURE__ */ __name(function(cp) {
                return cp >= 48 && cp <= 57;
              }, "isDecimalDigit"),
              isHexDigit: /* @__PURE__ */ __name(function(cp) {
                return cp >= 48 && cp <= 57 || cp >= 65 && cp <= 70 || cp >= 97 && cp <= 102;
              }, "isHexDigit"),
              isOctalDigit: /* @__PURE__ */ __name(function(cp) {
                return cp >= 48 && cp <= 55;
              }, "isOctalDigit")
            };
          },
          /* 5 */
          /***/
          function(module3, exports3, __webpack_require__) {
            "use strict";
            Object.defineProperty(exports3, "__esModule", { value: true });
            var jsx_syntax_1 = __webpack_require__(6);
            var JSXClosingElement = /* @__PURE__ */ (function() {
              function JSXClosingElement2(name) {
                this.type = jsx_syntax_1.JSXSyntax.JSXClosingElement;
                this.name = name;
              }
              __name(JSXClosingElement2, "JSXClosingElement");
              return JSXClosingElement2;
            })();
            exports3.JSXClosingElement = JSXClosingElement;
            var JSXElement = /* @__PURE__ */ (function() {
              function JSXElement2(openingElement, children, closingElement) {
                this.type = jsx_syntax_1.JSXSyntax.JSXElement;
                this.openingElement = openingElement;
                this.children = children;
                this.closingElement = closingElement;
              }
              __name(JSXElement2, "JSXElement");
              return JSXElement2;
            })();
            exports3.JSXElement = JSXElement;
            var JSXEmptyExpression = /* @__PURE__ */ (function() {
              function JSXEmptyExpression2() {
                this.type = jsx_syntax_1.JSXSyntax.JSXEmptyExpression;
              }
              __name(JSXEmptyExpression2, "JSXEmptyExpression");
              return JSXEmptyExpression2;
            })();
            exports3.JSXEmptyExpression = JSXEmptyExpression;
            var JSXExpressionContainer = /* @__PURE__ */ (function() {
              function JSXExpressionContainer2(expression) {
                this.type = jsx_syntax_1.JSXSyntax.JSXExpressionContainer;
                this.expression = expression;
              }
              __name(JSXExpressionContainer2, "JSXExpressionContainer");
              return JSXExpressionContainer2;
            })();
            exports3.JSXExpressionContainer = JSXExpressionContainer;
            var JSXIdentifier = /* @__PURE__ */ (function() {
              function JSXIdentifier2(name) {
                this.type = jsx_syntax_1.JSXSyntax.JSXIdentifier;
                this.name = name;
              }
              __name(JSXIdentifier2, "JSXIdentifier");
              return JSXIdentifier2;
            })();
            exports3.JSXIdentifier = JSXIdentifier;
            var JSXMemberExpression = /* @__PURE__ */ (function() {
              function JSXMemberExpression2(object, property) {
                this.type = jsx_syntax_1.JSXSyntax.JSXMemberExpression;
                this.object = object;
                this.property = property;
              }
              __name(JSXMemberExpression2, "JSXMemberExpression");
              return JSXMemberExpression2;
            })();
            exports3.JSXMemberExpression = JSXMemberExpression;
            var JSXAttribute = /* @__PURE__ */ (function() {
              function JSXAttribute2(name, value) {
                this.type = jsx_syntax_1.JSXSyntax.JSXAttribute;
                this.name = name;
                this.value = value;
              }
              __name(JSXAttribute2, "JSXAttribute");
              return JSXAttribute2;
            })();
            exports3.JSXAttribute = JSXAttribute;
            var JSXNamespacedName = /* @__PURE__ */ (function() {
              function JSXNamespacedName2(namespace, name) {
                this.type = jsx_syntax_1.JSXSyntax.JSXNamespacedName;
                this.namespace = namespace;
                this.name = name;
              }
              __name(JSXNamespacedName2, "JSXNamespacedName");
              return JSXNamespacedName2;
            })();
            exports3.JSXNamespacedName = JSXNamespacedName;
            var JSXOpeningElement = /* @__PURE__ */ (function() {
              function JSXOpeningElement2(name, selfClosing, attributes) {
                this.type = jsx_syntax_1.JSXSyntax.JSXOpeningElement;
                this.name = name;
                this.selfClosing = selfClosing;
                this.attributes = attributes;
              }
              __name(JSXOpeningElement2, "JSXOpeningElement");
              return JSXOpeningElement2;
            })();
            exports3.JSXOpeningElement = JSXOpeningElement;
            var JSXSpreadAttribute = /* @__PURE__ */ (function() {
              function JSXSpreadAttribute2(argument) {
                this.type = jsx_syntax_1.JSXSyntax.JSXSpreadAttribute;
                this.argument = argument;
              }
              __name(JSXSpreadAttribute2, "JSXSpreadAttribute");
              return JSXSpreadAttribute2;
            })();
            exports3.JSXSpreadAttribute = JSXSpreadAttribute;
            var JSXText = /* @__PURE__ */ (function() {
              function JSXText2(value, raw) {
                this.type = jsx_syntax_1.JSXSyntax.JSXText;
                this.value = value;
                this.raw = raw;
              }
              __name(JSXText2, "JSXText");
              return JSXText2;
            })();
            exports3.JSXText = JSXText;
          },
          /* 6 */
          /***/
          function(module3, exports3) {
            "use strict";
            Object.defineProperty(exports3, "__esModule", { value: true });
            exports3.JSXSyntax = {
              JSXAttribute: "JSXAttribute",
              JSXClosingElement: "JSXClosingElement",
              JSXElement: "JSXElement",
              JSXEmptyExpression: "JSXEmptyExpression",
              JSXExpressionContainer: "JSXExpressionContainer",
              JSXIdentifier: "JSXIdentifier",
              JSXMemberExpression: "JSXMemberExpression",
              JSXNamespacedName: "JSXNamespacedName",
              JSXOpeningElement: "JSXOpeningElement",
              JSXSpreadAttribute: "JSXSpreadAttribute",
              JSXText: "JSXText"
            };
          },
          /* 7 */
          /***/
          function(module3, exports3, __webpack_require__) {
            "use strict";
            Object.defineProperty(exports3, "__esModule", { value: true });
            var syntax_1 = __webpack_require__(2);
            var ArrayExpression = /* @__PURE__ */ (function() {
              function ArrayExpression2(elements) {
                this.type = syntax_1.Syntax.ArrayExpression;
                this.elements = elements;
              }
              __name(ArrayExpression2, "ArrayExpression");
              return ArrayExpression2;
            })();
            exports3.ArrayExpression = ArrayExpression;
            var ArrayPattern = /* @__PURE__ */ (function() {
              function ArrayPattern2(elements) {
                this.type = syntax_1.Syntax.ArrayPattern;
                this.elements = elements;
              }
              __name(ArrayPattern2, "ArrayPattern");
              return ArrayPattern2;
            })();
            exports3.ArrayPattern = ArrayPattern;
            var ArrowFunctionExpression = /* @__PURE__ */ (function() {
              function ArrowFunctionExpression2(params, body, expression) {
                this.type = syntax_1.Syntax.ArrowFunctionExpression;
                this.id = null;
                this.params = params;
                this.body = body;
                this.generator = false;
                this.expression = expression;
                this.async = false;
              }
              __name(ArrowFunctionExpression2, "ArrowFunctionExpression");
              return ArrowFunctionExpression2;
            })();
            exports3.ArrowFunctionExpression = ArrowFunctionExpression;
            var AssignmentExpression = /* @__PURE__ */ (function() {
              function AssignmentExpression2(operator, left, right) {
                this.type = syntax_1.Syntax.AssignmentExpression;
                this.operator = operator;
                this.left = left;
                this.right = right;
              }
              __name(AssignmentExpression2, "AssignmentExpression");
              return AssignmentExpression2;
            })();
            exports3.AssignmentExpression = AssignmentExpression;
            var AssignmentPattern = /* @__PURE__ */ (function() {
              function AssignmentPattern2(left, right) {
                this.type = syntax_1.Syntax.AssignmentPattern;
                this.left = left;
                this.right = right;
              }
              __name(AssignmentPattern2, "AssignmentPattern");
              return AssignmentPattern2;
            })();
            exports3.AssignmentPattern = AssignmentPattern;
            var AsyncArrowFunctionExpression = /* @__PURE__ */ (function() {
              function AsyncArrowFunctionExpression2(params, body, expression) {
                this.type = syntax_1.Syntax.ArrowFunctionExpression;
                this.id = null;
                this.params = params;
                this.body = body;
                this.generator = false;
                this.expression = expression;
                this.async = true;
              }
              __name(AsyncArrowFunctionExpression2, "AsyncArrowFunctionExpression");
              return AsyncArrowFunctionExpression2;
            })();
            exports3.AsyncArrowFunctionExpression = AsyncArrowFunctionExpression;
            var AsyncFunctionDeclaration = /* @__PURE__ */ (function() {
              function AsyncFunctionDeclaration2(id, params, body) {
                this.type = syntax_1.Syntax.FunctionDeclaration;
                this.id = id;
                this.params = params;
                this.body = body;
                this.generator = false;
                this.expression = false;
                this.async = true;
              }
              __name(AsyncFunctionDeclaration2, "AsyncFunctionDeclaration");
              return AsyncFunctionDeclaration2;
            })();
            exports3.AsyncFunctionDeclaration = AsyncFunctionDeclaration;
            var AsyncFunctionExpression = /* @__PURE__ */ (function() {
              function AsyncFunctionExpression2(id, params, body) {
                this.type = syntax_1.Syntax.FunctionExpression;
                this.id = id;
                this.params = params;
                this.body = body;
                this.generator = false;
                this.expression = false;
                this.async = true;
              }
              __name(AsyncFunctionExpression2, "AsyncFunctionExpression");
              return AsyncFunctionExpression2;
            })();
            exports3.AsyncFunctionExpression = AsyncFunctionExpression;
            var AwaitExpression = /* @__PURE__ */ (function() {
              function AwaitExpression2(argument) {
                this.type = syntax_1.Syntax.AwaitExpression;
                this.argument = argument;
              }
              __name(AwaitExpression2, "AwaitExpression");
              return AwaitExpression2;
            })();
            exports3.AwaitExpression = AwaitExpression;
            var BinaryExpression = /* @__PURE__ */ (function() {
              function BinaryExpression2(operator, left, right) {
                var logical = operator === "||" || operator === "&&";
                this.type = logical ? syntax_1.Syntax.LogicalExpression : syntax_1.Syntax.BinaryExpression;
                this.operator = operator;
                this.left = left;
                this.right = right;
              }
              __name(BinaryExpression2, "BinaryExpression");
              return BinaryExpression2;
            })();
            exports3.BinaryExpression = BinaryExpression;
            var BlockStatement = /* @__PURE__ */ (function() {
              function BlockStatement2(body) {
                this.type = syntax_1.Syntax.BlockStatement;
                this.body = body;
              }
              __name(BlockStatement2, "BlockStatement");
              return BlockStatement2;
            })();
            exports3.BlockStatement = BlockStatement;
            var BreakStatement = /* @__PURE__ */ (function() {
              function BreakStatement2(label) {
                this.type = syntax_1.Syntax.BreakStatement;
                this.label = label;
              }
              __name(BreakStatement2, "BreakStatement");
              return BreakStatement2;
            })();
            exports3.BreakStatement = BreakStatement;
            var CallExpression = /* @__PURE__ */ (function() {
              function CallExpression2(callee, args) {
                this.type = syntax_1.Syntax.CallExpression;
                this.callee = callee;
                this.arguments = args;
              }
              __name(CallExpression2, "CallExpression");
              return CallExpression2;
            })();
            exports3.CallExpression = CallExpression;
            var CatchClause = /* @__PURE__ */ (function() {
              function CatchClause2(param, body) {
                this.type = syntax_1.Syntax.CatchClause;
                this.param = param;
                this.body = body;
              }
              __name(CatchClause2, "CatchClause");
              return CatchClause2;
            })();
            exports3.CatchClause = CatchClause;
            var ClassBody = /* @__PURE__ */ (function() {
              function ClassBody2(body) {
                this.type = syntax_1.Syntax.ClassBody;
                this.body = body;
              }
              __name(ClassBody2, "ClassBody");
              return ClassBody2;
            })();
            exports3.ClassBody = ClassBody;
            var ClassDeclaration = /* @__PURE__ */ (function() {
              function ClassDeclaration2(id, superClass, body) {
                this.type = syntax_1.Syntax.ClassDeclaration;
                this.id = id;
                this.superClass = superClass;
                this.body = body;
              }
              __name(ClassDeclaration2, "ClassDeclaration");
              return ClassDeclaration2;
            })();
            exports3.ClassDeclaration = ClassDeclaration;
            var ClassExpression = /* @__PURE__ */ (function() {
              function ClassExpression2(id, superClass, body) {
                this.type = syntax_1.Syntax.ClassExpression;
                this.id = id;
                this.superClass = superClass;
                this.body = body;
              }
              __name(ClassExpression2, "ClassExpression");
              return ClassExpression2;
            })();
            exports3.ClassExpression = ClassExpression;
            var ComputedMemberExpression = /* @__PURE__ */ (function() {
              function ComputedMemberExpression2(object, property) {
                this.type = syntax_1.Syntax.MemberExpression;
                this.computed = true;
                this.object = object;
                this.property = property;
              }
              __name(ComputedMemberExpression2, "ComputedMemberExpression");
              return ComputedMemberExpression2;
            })();
            exports3.ComputedMemberExpression = ComputedMemberExpression;
            var ConditionalExpression = /* @__PURE__ */ (function() {
              function ConditionalExpression2(test, consequent, alternate) {
                this.type = syntax_1.Syntax.ConditionalExpression;
                this.test = test;
                this.consequent = consequent;
                this.alternate = alternate;
              }
              __name(ConditionalExpression2, "ConditionalExpression");
              return ConditionalExpression2;
            })();
            exports3.ConditionalExpression = ConditionalExpression;
            var ContinueStatement = /* @__PURE__ */ (function() {
              function ContinueStatement2(label) {
                this.type = syntax_1.Syntax.ContinueStatement;
                this.label = label;
              }
              __name(ContinueStatement2, "ContinueStatement");
              return ContinueStatement2;
            })();
            exports3.ContinueStatement = ContinueStatement;
            var DebuggerStatement = /* @__PURE__ */ (function() {
              function DebuggerStatement2() {
                this.type = syntax_1.Syntax.DebuggerStatement;
              }
              __name(DebuggerStatement2, "DebuggerStatement");
              return DebuggerStatement2;
            })();
            exports3.DebuggerStatement = DebuggerStatement;
            var Directive = /* @__PURE__ */ (function() {
              function Directive2(expression, directive) {
                this.type = syntax_1.Syntax.ExpressionStatement;
                this.expression = expression;
                this.directive = directive;
              }
              __name(Directive2, "Directive");
              return Directive2;
            })();
            exports3.Directive = Directive;
            var DoWhileStatement = /* @__PURE__ */ (function() {
              function DoWhileStatement2(body, test) {
                this.type = syntax_1.Syntax.DoWhileStatement;
                this.body = body;
                this.test = test;
              }
              __name(DoWhileStatement2, "DoWhileStatement");
              return DoWhileStatement2;
            })();
            exports3.DoWhileStatement = DoWhileStatement;
            var EmptyStatement = /* @__PURE__ */ (function() {
              function EmptyStatement2() {
                this.type = syntax_1.Syntax.EmptyStatement;
              }
              __name(EmptyStatement2, "EmptyStatement");
              return EmptyStatement2;
            })();
            exports3.EmptyStatement = EmptyStatement;
            var ExportAllDeclaration = /* @__PURE__ */ (function() {
              function ExportAllDeclaration2(source) {
                this.type = syntax_1.Syntax.ExportAllDeclaration;
                this.source = source;
              }
              __name(ExportAllDeclaration2, "ExportAllDeclaration");
              return ExportAllDeclaration2;
            })();
            exports3.ExportAllDeclaration = ExportAllDeclaration;
            var ExportDefaultDeclaration = /* @__PURE__ */ (function() {
              function ExportDefaultDeclaration2(declaration) {
                this.type = syntax_1.Syntax.ExportDefaultDeclaration;
                this.declaration = declaration;
              }
              __name(ExportDefaultDeclaration2, "ExportDefaultDeclaration");
              return ExportDefaultDeclaration2;
            })();
            exports3.ExportDefaultDeclaration = ExportDefaultDeclaration;
            var ExportNamedDeclaration = /* @__PURE__ */ (function() {
              function ExportNamedDeclaration2(declaration, specifiers, source) {
                this.type = syntax_1.Syntax.ExportNamedDeclaration;
                this.declaration = declaration;
                this.specifiers = specifiers;
                this.source = source;
              }
              __name(ExportNamedDeclaration2, "ExportNamedDeclaration");
              return ExportNamedDeclaration2;
            })();
            exports3.ExportNamedDeclaration = ExportNamedDeclaration;
            var ExportSpecifier = /* @__PURE__ */ (function() {
              function ExportSpecifier2(local, exported) {
                this.type = syntax_1.Syntax.ExportSpecifier;
                this.exported = exported;
                this.local = local;
              }
              __name(ExportSpecifier2, "ExportSpecifier");
              return ExportSpecifier2;
            })();
            exports3.ExportSpecifier = ExportSpecifier;
            var ExpressionStatement = /* @__PURE__ */ (function() {
              function ExpressionStatement2(expression) {
                this.type = syntax_1.Syntax.ExpressionStatement;
                this.expression = expression;
              }
              __name(ExpressionStatement2, "ExpressionStatement");
              return ExpressionStatement2;
            })();
            exports3.ExpressionStatement = ExpressionStatement;
            var ForInStatement = /* @__PURE__ */ (function() {
              function ForInStatement2(left, right, body) {
                this.type = syntax_1.Syntax.ForInStatement;
                this.left = left;
                this.right = right;
                this.body = body;
                this.each = false;
              }
              __name(ForInStatement2, "ForInStatement");
              return ForInStatement2;
            })();
            exports3.ForInStatement = ForInStatement;
            var ForOfStatement = /* @__PURE__ */ (function() {
              function ForOfStatement2(left, right, body) {
                this.type = syntax_1.Syntax.ForOfStatement;
                this.left = left;
                this.right = right;
                this.body = body;
              }
              __name(ForOfStatement2, "ForOfStatement");
              return ForOfStatement2;
            })();
            exports3.ForOfStatement = ForOfStatement;
            var ForStatement = /* @__PURE__ */ (function() {
              function ForStatement2(init, test, update, body) {
                this.type = syntax_1.Syntax.ForStatement;
                this.init = init;
                this.test = test;
                this.update = update;
                this.body = body;
              }
              __name(ForStatement2, "ForStatement");
              return ForStatement2;
            })();
            exports3.ForStatement = ForStatement;
            var FunctionDeclaration = /* @__PURE__ */ (function() {
              function FunctionDeclaration2(id, params, body, generator) {
                this.type = syntax_1.Syntax.FunctionDeclaration;
                this.id = id;
                this.params = params;
                this.body = body;
                this.generator = generator;
                this.expression = false;
                this.async = false;
              }
              __name(FunctionDeclaration2, "FunctionDeclaration");
              return FunctionDeclaration2;
            })();
            exports3.FunctionDeclaration = FunctionDeclaration;
            var FunctionExpression = /* @__PURE__ */ (function() {
              function FunctionExpression2(id, params, body, generator) {
                this.type = syntax_1.Syntax.FunctionExpression;
                this.id = id;
                this.params = params;
                this.body = body;
                this.generator = generator;
                this.expression = false;
                this.async = false;
              }
              __name(FunctionExpression2, "FunctionExpression");
              return FunctionExpression2;
            })();
            exports3.FunctionExpression = FunctionExpression;
            var Identifier = /* @__PURE__ */ (function() {
              function Identifier2(name) {
                this.type = syntax_1.Syntax.Identifier;
                this.name = name;
              }
              __name(Identifier2, "Identifier");
              return Identifier2;
            })();
            exports3.Identifier = Identifier;
            var IfStatement = /* @__PURE__ */ (function() {
              function IfStatement2(test, consequent, alternate) {
                this.type = syntax_1.Syntax.IfStatement;
                this.test = test;
                this.consequent = consequent;
                this.alternate = alternate;
              }
              __name(IfStatement2, "IfStatement");
              return IfStatement2;
            })();
            exports3.IfStatement = IfStatement;
            var ImportDeclaration = /* @__PURE__ */ (function() {
              function ImportDeclaration2(specifiers, source) {
                this.type = syntax_1.Syntax.ImportDeclaration;
                this.specifiers = specifiers;
                this.source = source;
              }
              __name(ImportDeclaration2, "ImportDeclaration");
              return ImportDeclaration2;
            })();
            exports3.ImportDeclaration = ImportDeclaration;
            var ImportDefaultSpecifier = /* @__PURE__ */ (function() {
              function ImportDefaultSpecifier2(local) {
                this.type = syntax_1.Syntax.ImportDefaultSpecifier;
                this.local = local;
              }
              __name(ImportDefaultSpecifier2, "ImportDefaultSpecifier");
              return ImportDefaultSpecifier2;
            })();
            exports3.ImportDefaultSpecifier = ImportDefaultSpecifier;
            var ImportNamespaceSpecifier = /* @__PURE__ */ (function() {
              function ImportNamespaceSpecifier2(local) {
                this.type = syntax_1.Syntax.ImportNamespaceSpecifier;
                this.local = local;
              }
              __name(ImportNamespaceSpecifier2, "ImportNamespaceSpecifier");
              return ImportNamespaceSpecifier2;
            })();
            exports3.ImportNamespaceSpecifier = ImportNamespaceSpecifier;
            var ImportSpecifier = /* @__PURE__ */ (function() {
              function ImportSpecifier2(local, imported) {
                this.type = syntax_1.Syntax.ImportSpecifier;
                this.local = local;
                this.imported = imported;
              }
              __name(ImportSpecifier2, "ImportSpecifier");
              return ImportSpecifier2;
            })();
            exports3.ImportSpecifier = ImportSpecifier;
            var LabeledStatement = /* @__PURE__ */ (function() {
              function LabeledStatement2(label, body) {
                this.type = syntax_1.Syntax.LabeledStatement;
                this.label = label;
                this.body = body;
              }
              __name(LabeledStatement2, "LabeledStatement");
              return LabeledStatement2;
            })();
            exports3.LabeledStatement = LabeledStatement;
            var Literal = /* @__PURE__ */ (function() {
              function Literal2(value, raw) {
                this.type = syntax_1.Syntax.Literal;
                this.value = value;
                this.raw = raw;
              }
              __name(Literal2, "Literal");
              return Literal2;
            })();
            exports3.Literal = Literal;
            var MetaProperty = /* @__PURE__ */ (function() {
              function MetaProperty2(meta, property) {
                this.type = syntax_1.Syntax.MetaProperty;
                this.meta = meta;
                this.property = property;
              }
              __name(MetaProperty2, "MetaProperty");
              return MetaProperty2;
            })();
            exports3.MetaProperty = MetaProperty;
            var MethodDefinition = /* @__PURE__ */ (function() {
              function MethodDefinition2(key, computed, value, kind, isStatic) {
                this.type = syntax_1.Syntax.MethodDefinition;
                this.key = key;
                this.computed = computed;
                this.value = value;
                this.kind = kind;
                this.static = isStatic;
              }
              __name(MethodDefinition2, "MethodDefinition");
              return MethodDefinition2;
            })();
            exports3.MethodDefinition = MethodDefinition;
            var Module = /* @__PURE__ */ (function() {
              function Module2(body) {
                this.type = syntax_1.Syntax.Program;
                this.body = body;
                this.sourceType = "module";
              }
              __name(Module2, "Module");
              return Module2;
            })();
            exports3.Module = Module;
            var NewExpression = /* @__PURE__ */ (function() {
              function NewExpression2(callee, args) {
                this.type = syntax_1.Syntax.NewExpression;
                this.callee = callee;
                this.arguments = args;
              }
              __name(NewExpression2, "NewExpression");
              return NewExpression2;
            })();
            exports3.NewExpression = NewExpression;
            var ObjectExpression = /* @__PURE__ */ (function() {
              function ObjectExpression2(properties) {
                this.type = syntax_1.Syntax.ObjectExpression;
                this.properties = properties;
              }
              __name(ObjectExpression2, "ObjectExpression");
              return ObjectExpression2;
            })();
            exports3.ObjectExpression = ObjectExpression;
            var ObjectPattern = /* @__PURE__ */ (function() {
              function ObjectPattern2(properties) {
                this.type = syntax_1.Syntax.ObjectPattern;
                this.properties = properties;
              }
              __name(ObjectPattern2, "ObjectPattern");
              return ObjectPattern2;
            })();
            exports3.ObjectPattern = ObjectPattern;
            var Property = /* @__PURE__ */ (function() {
              function Property2(kind, key, computed, value, method, shorthand) {
                this.type = syntax_1.Syntax.Property;
                this.key = key;
                this.computed = computed;
                this.value = value;
                this.kind = kind;
                this.method = method;
                this.shorthand = shorthand;
              }
              __name(Property2, "Property");
              return Property2;
            })();
            exports3.Property = Property;
            var RegexLiteral = /* @__PURE__ */ (function() {
              function RegexLiteral2(value, raw, pattern, flags) {
                this.type = syntax_1.Syntax.Literal;
                this.value = value;
                this.raw = raw;
                this.regex = { pattern, flags };
              }
              __name(RegexLiteral2, "RegexLiteral");
              return RegexLiteral2;
            })();
            exports3.RegexLiteral = RegexLiteral;
            var RestElement = /* @__PURE__ */ (function() {
              function RestElement2(argument) {
                this.type = syntax_1.Syntax.RestElement;
                this.argument = argument;
              }
              __name(RestElement2, "RestElement");
              return RestElement2;
            })();
            exports3.RestElement = RestElement;
            var ReturnStatement = /* @__PURE__ */ (function() {
              function ReturnStatement2(argument) {
                this.type = syntax_1.Syntax.ReturnStatement;
                this.argument = argument;
              }
              __name(ReturnStatement2, "ReturnStatement");
              return ReturnStatement2;
            })();
            exports3.ReturnStatement = ReturnStatement;
            var Script = /* @__PURE__ */ (function() {
              function Script2(body) {
                this.type = syntax_1.Syntax.Program;
                this.body = body;
                this.sourceType = "script";
              }
              __name(Script2, "Script");
              return Script2;
            })();
            exports3.Script = Script;
            var SequenceExpression = /* @__PURE__ */ (function() {
              function SequenceExpression2(expressions) {
                this.type = syntax_1.Syntax.SequenceExpression;
                this.expressions = expressions;
              }
              __name(SequenceExpression2, "SequenceExpression");
              return SequenceExpression2;
            })();
            exports3.SequenceExpression = SequenceExpression;
            var SpreadElement = /* @__PURE__ */ (function() {
              function SpreadElement2(argument) {
                this.type = syntax_1.Syntax.SpreadElement;
                this.argument = argument;
              }
              __name(SpreadElement2, "SpreadElement");
              return SpreadElement2;
            })();
            exports3.SpreadElement = SpreadElement;
            var StaticMemberExpression = /* @__PURE__ */ (function() {
              function StaticMemberExpression2(object, property) {
                this.type = syntax_1.Syntax.MemberExpression;
                this.computed = false;
                this.object = object;
                this.property = property;
              }
              __name(StaticMemberExpression2, "StaticMemberExpression");
              return StaticMemberExpression2;
            })();
            exports3.StaticMemberExpression = StaticMemberExpression;
            var Super = /* @__PURE__ */ (function() {
              function Super2() {
                this.type = syntax_1.Syntax.Super;
              }
              __name(Super2, "Super");
              return Super2;
            })();
            exports3.Super = Super;
            var SwitchCase = /* @__PURE__ */ (function() {
              function SwitchCase2(test, consequent) {
                this.type = syntax_1.Syntax.SwitchCase;
                this.test = test;
                this.consequent = consequent;
              }
              __name(SwitchCase2, "SwitchCase");
              return SwitchCase2;
            })();
            exports3.SwitchCase = SwitchCase;
            var SwitchStatement = /* @__PURE__ */ (function() {
              function SwitchStatement2(discriminant, cases) {
                this.type = syntax_1.Syntax.SwitchStatement;
                this.discriminant = discriminant;
                this.cases = cases;
              }
              __name(SwitchStatement2, "SwitchStatement");
              return SwitchStatement2;
            })();
            exports3.SwitchStatement = SwitchStatement;
            var TaggedTemplateExpression = /* @__PURE__ */ (function() {
              function TaggedTemplateExpression2(tag2, quasi) {
                this.type = syntax_1.Syntax.TaggedTemplateExpression;
                this.tag = tag2;
                this.quasi = quasi;
              }
              __name(TaggedTemplateExpression2, "TaggedTemplateExpression");
              return TaggedTemplateExpression2;
            })();
            exports3.TaggedTemplateExpression = TaggedTemplateExpression;
            var TemplateElement = /* @__PURE__ */ (function() {
              function TemplateElement2(value, tail) {
                this.type = syntax_1.Syntax.TemplateElement;
                this.value = value;
                this.tail = tail;
              }
              __name(TemplateElement2, "TemplateElement");
              return TemplateElement2;
            })();
            exports3.TemplateElement = TemplateElement;
            var TemplateLiteral = /* @__PURE__ */ (function() {
              function TemplateLiteral2(quasis, expressions) {
                this.type = syntax_1.Syntax.TemplateLiteral;
                this.quasis = quasis;
                this.expressions = expressions;
              }
              __name(TemplateLiteral2, "TemplateLiteral");
              return TemplateLiteral2;
            })();
            exports3.TemplateLiteral = TemplateLiteral;
            var ThisExpression = /* @__PURE__ */ (function() {
              function ThisExpression2() {
                this.type = syntax_1.Syntax.ThisExpression;
              }
              __name(ThisExpression2, "ThisExpression");
              return ThisExpression2;
            })();
            exports3.ThisExpression = ThisExpression;
            var ThrowStatement = /* @__PURE__ */ (function() {
              function ThrowStatement2(argument) {
                this.type = syntax_1.Syntax.ThrowStatement;
                this.argument = argument;
              }
              __name(ThrowStatement2, "ThrowStatement");
              return ThrowStatement2;
            })();
            exports3.ThrowStatement = ThrowStatement;
            var TryStatement = /* @__PURE__ */ (function() {
              function TryStatement2(block, handler, finalizer) {
                this.type = syntax_1.Syntax.TryStatement;
                this.block = block;
                this.handler = handler;
                this.finalizer = finalizer;
              }
              __name(TryStatement2, "TryStatement");
              return TryStatement2;
            })();
            exports3.TryStatement = TryStatement;
            var UnaryExpression = /* @__PURE__ */ (function() {
              function UnaryExpression2(operator, argument) {
                this.type = syntax_1.Syntax.UnaryExpression;
                this.operator = operator;
                this.argument = argument;
                this.prefix = true;
              }
              __name(UnaryExpression2, "UnaryExpression");
              return UnaryExpression2;
            })();
            exports3.UnaryExpression = UnaryExpression;
            var UpdateExpression = /* @__PURE__ */ (function() {
              function UpdateExpression2(operator, argument, prefix2) {
                this.type = syntax_1.Syntax.UpdateExpression;
                this.operator = operator;
                this.argument = argument;
                this.prefix = prefix2;
              }
              __name(UpdateExpression2, "UpdateExpression");
              return UpdateExpression2;
            })();
            exports3.UpdateExpression = UpdateExpression;
            var VariableDeclaration = /* @__PURE__ */ (function() {
              function VariableDeclaration2(declarations, kind) {
                this.type = syntax_1.Syntax.VariableDeclaration;
                this.declarations = declarations;
                this.kind = kind;
              }
              __name(VariableDeclaration2, "VariableDeclaration");
              return VariableDeclaration2;
            })();
            exports3.VariableDeclaration = VariableDeclaration;
            var VariableDeclarator = /* @__PURE__ */ (function() {
              function VariableDeclarator2(id, init) {
                this.type = syntax_1.Syntax.VariableDeclarator;
                this.id = id;
                this.init = init;
              }
              __name(VariableDeclarator2, "VariableDeclarator");
              return VariableDeclarator2;
            })();
            exports3.VariableDeclarator = VariableDeclarator;
            var WhileStatement = /* @__PURE__ */ (function() {
              function WhileStatement2(test, body) {
                this.type = syntax_1.Syntax.WhileStatement;
                this.test = test;
                this.body = body;
              }
              __name(WhileStatement2, "WhileStatement");
              return WhileStatement2;
            })();
            exports3.WhileStatement = WhileStatement;
            var WithStatement = /* @__PURE__ */ (function() {
              function WithStatement2(object, body) {
                this.type = syntax_1.Syntax.WithStatement;
                this.object = object;
                this.body = body;
              }
              __name(WithStatement2, "WithStatement");
              return WithStatement2;
            })();
            exports3.WithStatement = WithStatement;
            var YieldExpression = /* @__PURE__ */ (function() {
              function YieldExpression2(argument, delegate) {
                this.type = syntax_1.Syntax.YieldExpression;
                this.argument = argument;
                this.delegate = delegate;
              }
              __name(YieldExpression2, "YieldExpression");
              return YieldExpression2;
            })();
            exports3.YieldExpression = YieldExpression;
          },
          /* 8 */
          /***/
          function(module3, exports3, __webpack_require__) {
            "use strict";
            Object.defineProperty(exports3, "__esModule", { value: true });
            var assert_1 = __webpack_require__(9);
            var error_handler_1 = __webpack_require__(10);
            var messages_1 = __webpack_require__(11);
            var Node2 = __webpack_require__(7);
            var scanner_1 = __webpack_require__(12);
            var syntax_1 = __webpack_require__(2);
            var token_1 = __webpack_require__(13);
            var ArrowParameterPlaceHolder = "ArrowParameterPlaceHolder";
            var Parser = (function() {
              function Parser2(code, options, delegate) {
                if (options === void 0) {
                  options = {};
                }
                this.config = {
                  range: typeof options.range === "boolean" && options.range,
                  loc: typeof options.loc === "boolean" && options.loc,
                  source: null,
                  tokens: typeof options.tokens === "boolean" && options.tokens,
                  comment: typeof options.comment === "boolean" && options.comment,
                  tolerant: typeof options.tolerant === "boolean" && options.tolerant
                };
                if (this.config.loc && options.source && options.source !== null) {
                  this.config.source = String(options.source);
                }
                this.delegate = delegate;
                this.errorHandler = new error_handler_1.ErrorHandler();
                this.errorHandler.tolerant = this.config.tolerant;
                this.scanner = new scanner_1.Scanner(code, this.errorHandler);
                this.scanner.trackComment = this.config.comment;
                this.operatorPrecedence = {
                  ")": 0,
                  ";": 0,
                  ",": 0,
                  "=": 0,
                  "]": 0,
                  "||": 1,
                  "&&": 2,
                  "|": 3,
                  "^": 4,
                  "&": 5,
                  "==": 6,
                  "!=": 6,
                  "===": 6,
                  "!==": 6,
                  "<": 7,
                  ">": 7,
                  "<=": 7,
                  ">=": 7,
                  "<<": 8,
                  ">>": 8,
                  ">>>": 8,
                  "+": 9,
                  "-": 9,
                  "*": 11,
                  "/": 11,
                  "%": 11
                };
                this.lookahead = {
                  type: 2,
                  value: "",
                  lineNumber: this.scanner.lineNumber,
                  lineStart: 0,
                  start: 0,
                  end: 0
                };
                this.hasLineTerminator = false;
                this.context = {
                  isModule: false,
                  await: false,
                  allowIn: true,
                  allowStrictDirective: true,
                  allowYield: true,
                  firstCoverInitializedNameError: null,
                  isAssignmentTarget: false,
                  isBindingElement: false,
                  inFunctionBody: false,
                  inIteration: false,
                  inSwitch: false,
                  labelSet: {},
                  strict: false
                };
                this.tokens = [];
                this.startMarker = {
                  index: 0,
                  line: this.scanner.lineNumber,
                  column: 0
                };
                this.lastMarker = {
                  index: 0,
                  line: this.scanner.lineNumber,
                  column: 0
                };
                this.nextToken();
                this.lastMarker = {
                  index: this.scanner.index,
                  line: this.scanner.lineNumber,
                  column: this.scanner.index - this.scanner.lineStart
                };
              }
              __name(Parser2, "Parser");
              Parser2.prototype.throwError = function(messageFormat) {
                var values = [];
                for (var _i = 1; _i < arguments.length; _i++) {
                  values[_i - 1] = arguments[_i];
                }
                var args = Array.prototype.slice.call(arguments, 1);
                var msg = messageFormat.replace(/%(\d)/g, function(whole, idx) {
                  assert_1.assert(idx < args.length, "Message reference must be in range");
                  return args[idx];
                });
                var index = this.lastMarker.index;
                var line = this.lastMarker.line;
                var column = this.lastMarker.column + 1;
                throw this.errorHandler.createError(index, line, column, msg);
              };
              Parser2.prototype.tolerateError = function(messageFormat) {
                var values = [];
                for (var _i = 1; _i < arguments.length; _i++) {
                  values[_i - 1] = arguments[_i];
                }
                var args = Array.prototype.slice.call(arguments, 1);
                var msg = messageFormat.replace(/%(\d)/g, function(whole, idx) {
                  assert_1.assert(idx < args.length, "Message reference must be in range");
                  return args[idx];
                });
                var index = this.lastMarker.index;
                var line = this.scanner.lineNumber;
                var column = this.lastMarker.column + 1;
                this.errorHandler.tolerateError(index, line, column, msg);
              };
              Parser2.prototype.unexpectedTokenError = function(token, message2) {
                var msg = message2 || messages_1.Messages.UnexpectedToken;
                var value;
                if (token) {
                  if (!message2) {
                    msg = token.type === 2 ? messages_1.Messages.UnexpectedEOS : token.type === 3 ? messages_1.Messages.UnexpectedIdentifier : token.type === 6 ? messages_1.Messages.UnexpectedNumber : token.type === 8 ? messages_1.Messages.UnexpectedString : token.type === 10 ? messages_1.Messages.UnexpectedTemplate : messages_1.Messages.UnexpectedToken;
                    if (token.type === 4) {
                      if (this.scanner.isFutureReservedWord(token.value)) {
                        msg = messages_1.Messages.UnexpectedReserved;
                      } else if (this.context.strict && this.scanner.isStrictModeReservedWord(token.value)) {
                        msg = messages_1.Messages.StrictReservedWord;
                      }
                    }
                  }
                  value = token.value;
                } else {
                  value = "ILLEGAL";
                }
                msg = msg.replace("%0", value);
                if (token && typeof token.lineNumber === "number") {
                  var index = token.start;
                  var line = token.lineNumber;
                  var lastMarkerLineStart = this.lastMarker.index - this.lastMarker.column;
                  var column = token.start - lastMarkerLineStart + 1;
                  return this.errorHandler.createError(index, line, column, msg);
                } else {
                  var index = this.lastMarker.index;
                  var line = this.lastMarker.line;
                  var column = this.lastMarker.column + 1;
                  return this.errorHandler.createError(index, line, column, msg);
                }
              };
              Parser2.prototype.throwUnexpectedToken = function(token, message2) {
                throw this.unexpectedTokenError(token, message2);
              };
              Parser2.prototype.tolerateUnexpectedToken = function(token, message2) {
                this.errorHandler.tolerate(this.unexpectedTokenError(token, message2));
              };
              Parser2.prototype.collectComments = function() {
                if (!this.config.comment) {
                  this.scanner.scanComments();
                } else {
                  var comments = this.scanner.scanComments();
                  if (comments.length > 0 && this.delegate) {
                    for (var i3 = 0; i3 < comments.length; ++i3) {
                      var e3 = comments[i3];
                      var node = void 0;
                      node = {
                        type: e3.multiLine ? "BlockComment" : "LineComment",
                        value: this.scanner.source.slice(e3.slice[0], e3.slice[1])
                      };
                      if (this.config.range) {
                        node.range = e3.range;
                      }
                      if (this.config.loc) {
                        node.loc = e3.loc;
                      }
                      var metadata = {
                        start: {
                          line: e3.loc.start.line,
                          column: e3.loc.start.column,
                          offset: e3.range[0]
                        },
                        end: {
                          line: e3.loc.end.line,
                          column: e3.loc.end.column,
                          offset: e3.range[1]
                        }
                      };
                      this.delegate(node, metadata);
                    }
                  }
                }
              };
              Parser2.prototype.getTokenRaw = function(token) {
                return this.scanner.source.slice(token.start, token.end);
              };
              Parser2.prototype.convertToken = function(token) {
                var t3 = {
                  type: token_1.TokenName[token.type],
                  value: this.getTokenRaw(token)
                };
                if (this.config.range) {
                  t3.range = [token.start, token.end];
                }
                if (this.config.loc) {
                  t3.loc = {
                    start: {
                      line: this.startMarker.line,
                      column: this.startMarker.column
                    },
                    end: {
                      line: this.scanner.lineNumber,
                      column: this.scanner.index - this.scanner.lineStart
                    }
                  };
                }
                if (token.type === 9) {
                  var pattern = token.pattern;
                  var flags = token.flags;
                  t3.regex = { pattern, flags };
                }
                return t3;
              };
              Parser2.prototype.nextToken = function() {
                var token = this.lookahead;
                this.lastMarker.index = this.scanner.index;
                this.lastMarker.line = this.scanner.lineNumber;
                this.lastMarker.column = this.scanner.index - this.scanner.lineStart;
                this.collectComments();
                if (this.scanner.index !== this.startMarker.index) {
                  this.startMarker.index = this.scanner.index;
                  this.startMarker.line = this.scanner.lineNumber;
                  this.startMarker.column = this.scanner.index - this.scanner.lineStart;
                }
                var next = this.scanner.lex();
                this.hasLineTerminator = token.lineNumber !== next.lineNumber;
                if (next && this.context.strict && next.type === 3) {
                  if (this.scanner.isStrictModeReservedWord(next.value)) {
                    next.type = 4;
                  }
                }
                this.lookahead = next;
                if (this.config.tokens && next.type !== 2) {
                  this.tokens.push(this.convertToken(next));
                }
                return token;
              };
              Parser2.prototype.nextRegexToken = function() {
                this.collectComments();
                var token = this.scanner.scanRegExp();
                if (this.config.tokens) {
                  this.tokens.pop();
                  this.tokens.push(this.convertToken(token));
                }
                this.lookahead = token;
                this.nextToken();
                return token;
              };
              Parser2.prototype.createNode = function() {
                return {
                  index: this.startMarker.index,
                  line: this.startMarker.line,
                  column: this.startMarker.column
                };
              };
              Parser2.prototype.startNode = function(token, lastLineStart) {
                if (lastLineStart === void 0) {
                  lastLineStart = 0;
                }
                var column = token.start - token.lineStart;
                var line = token.lineNumber;
                if (column < 0) {
                  column += lastLineStart;
                  line--;
                }
                return {
                  index: token.start,
                  line,
                  column
                };
              };
              Parser2.prototype.finalize = function(marker, node) {
                if (this.config.range) {
                  node.range = [marker.index, this.lastMarker.index];
                }
                if (this.config.loc) {
                  node.loc = {
                    start: {
                      line: marker.line,
                      column: marker.column
                    },
                    end: {
                      line: this.lastMarker.line,
                      column: this.lastMarker.column
                    }
                  };
                  if (this.config.source) {
                    node.loc.source = this.config.source;
                  }
                }
                if (this.delegate) {
                  var metadata = {
                    start: {
                      line: marker.line,
                      column: marker.column,
                      offset: marker.index
                    },
                    end: {
                      line: this.lastMarker.line,
                      column: this.lastMarker.column,
                      offset: this.lastMarker.index
                    }
                  };
                  this.delegate(node, metadata);
                }
                return node;
              };
              Parser2.prototype.expect = function(value) {
                var token = this.nextToken();
                if (token.type !== 7 || token.value !== value) {
                  this.throwUnexpectedToken(token);
                }
              };
              Parser2.prototype.expectCommaSeparator = function() {
                if (this.config.tolerant) {
                  var token = this.lookahead;
                  if (token.type === 7 && token.value === ",") {
                    this.nextToken();
                  } else if (token.type === 7 && token.value === ";") {
                    this.nextToken();
                    this.tolerateUnexpectedToken(token);
                  } else {
                    this.tolerateUnexpectedToken(token, messages_1.Messages.UnexpectedToken);
                  }
                } else {
                  this.expect(",");
                }
              };
              Parser2.prototype.expectKeyword = function(keyword) {
                var token = this.nextToken();
                if (token.type !== 4 || token.value !== keyword) {
                  this.throwUnexpectedToken(token);
                }
              };
              Parser2.prototype.match = function(value) {
                return this.lookahead.type === 7 && this.lookahead.value === value;
              };
              Parser2.prototype.matchKeyword = function(keyword) {
                return this.lookahead.type === 4 && this.lookahead.value === keyword;
              };
              Parser2.prototype.matchContextualKeyword = function(keyword) {
                return this.lookahead.type === 3 && this.lookahead.value === keyword;
              };
              Parser2.prototype.matchAssign = function() {
                if (this.lookahead.type !== 7) {
                  return false;
                }
                var op2 = this.lookahead.value;
                return op2 === "=" || op2 === "*=" || op2 === "**=" || op2 === "/=" || op2 === "%=" || op2 === "+=" || op2 === "-=" || op2 === "<<=" || op2 === ">>=" || op2 === ">>>=" || op2 === "&=" || op2 === "^=" || op2 === "|=";
              };
              Parser2.prototype.isolateCoverGrammar = function(parseFunction) {
                var previousIsBindingElement = this.context.isBindingElement;
                var previousIsAssignmentTarget = this.context.isAssignmentTarget;
                var previousFirstCoverInitializedNameError = this.context.firstCoverInitializedNameError;
                this.context.isBindingElement = true;
                this.context.isAssignmentTarget = true;
                this.context.firstCoverInitializedNameError = null;
                var result2 = parseFunction.call(this);
                if (this.context.firstCoverInitializedNameError !== null) {
                  this.throwUnexpectedToken(this.context.firstCoverInitializedNameError);
                }
                this.context.isBindingElement = previousIsBindingElement;
                this.context.isAssignmentTarget = previousIsAssignmentTarget;
                this.context.firstCoverInitializedNameError = previousFirstCoverInitializedNameError;
                return result2;
              };
              Parser2.prototype.inheritCoverGrammar = function(parseFunction) {
                var previousIsBindingElement = this.context.isBindingElement;
                var previousIsAssignmentTarget = this.context.isAssignmentTarget;
                var previousFirstCoverInitializedNameError = this.context.firstCoverInitializedNameError;
                this.context.isBindingElement = true;
                this.context.isAssignmentTarget = true;
                this.context.firstCoverInitializedNameError = null;
                var result2 = parseFunction.call(this);
                this.context.isBindingElement = this.context.isBindingElement && previousIsBindingElement;
                this.context.isAssignmentTarget = this.context.isAssignmentTarget && previousIsAssignmentTarget;
                this.context.firstCoverInitializedNameError = previousFirstCoverInitializedNameError || this.context.firstCoverInitializedNameError;
                return result2;
              };
              Parser2.prototype.consumeSemicolon = function() {
                if (this.match(";")) {
                  this.nextToken();
                } else if (!this.hasLineTerminator) {
                  if (this.lookahead.type !== 2 && !this.match("}")) {
                    this.throwUnexpectedToken(this.lookahead);
                  }
                  this.lastMarker.index = this.startMarker.index;
                  this.lastMarker.line = this.startMarker.line;
                  this.lastMarker.column = this.startMarker.column;
                }
              };
              Parser2.prototype.parsePrimaryExpression = function() {
                var node = this.createNode();
                var expr;
                var token, raw;
                switch (this.lookahead.type) {
                  case 3:
                    if ((this.context.isModule || this.context.await) && this.lookahead.value === "await") {
                      this.tolerateUnexpectedToken(this.lookahead);
                    }
                    expr = this.matchAsyncFunction() ? this.parseFunctionExpression() : this.finalize(node, new Node2.Identifier(this.nextToken().value));
                    break;
                  case 6:
                  case 8:
                    if (this.context.strict && this.lookahead.octal) {
                      this.tolerateUnexpectedToken(this.lookahead, messages_1.Messages.StrictOctalLiteral);
                    }
                    this.context.isAssignmentTarget = false;
                    this.context.isBindingElement = false;
                    token = this.nextToken();
                    raw = this.getTokenRaw(token);
                    expr = this.finalize(node, new Node2.Literal(token.value, raw));
                    break;
                  case 1:
                    this.context.isAssignmentTarget = false;
                    this.context.isBindingElement = false;
                    token = this.nextToken();
                    raw = this.getTokenRaw(token);
                    expr = this.finalize(node, new Node2.Literal(token.value === "true", raw));
                    break;
                  case 5:
                    this.context.isAssignmentTarget = false;
                    this.context.isBindingElement = false;
                    token = this.nextToken();
                    raw = this.getTokenRaw(token);
                    expr = this.finalize(node, new Node2.Literal(null, raw));
                    break;
                  case 10:
                    expr = this.parseTemplateLiteral();
                    break;
                  case 7:
                    switch (this.lookahead.value) {
                      case "(":
                        this.context.isBindingElement = false;
                        expr = this.inheritCoverGrammar(this.parseGroupExpression);
                        break;
                      case "[":
                        expr = this.inheritCoverGrammar(this.parseArrayInitializer);
                        break;
                      case "{":
                        expr = this.inheritCoverGrammar(this.parseObjectInitializer);
                        break;
                      case "/":
                      case "/=":
                        this.context.isAssignmentTarget = false;
                        this.context.isBindingElement = false;
                        this.scanner.index = this.startMarker.index;
                        token = this.nextRegexToken();
                        raw = this.getTokenRaw(token);
                        expr = this.finalize(node, new Node2.RegexLiteral(token.regex, raw, token.pattern, token.flags));
                        break;
                      default:
                        expr = this.throwUnexpectedToken(this.nextToken());
                    }
                    break;
                  case 4:
                    if (!this.context.strict && this.context.allowYield && this.matchKeyword("yield")) {
                      expr = this.parseIdentifierName();
                    } else if (!this.context.strict && this.matchKeyword("let")) {
                      expr = this.finalize(node, new Node2.Identifier(this.nextToken().value));
                    } else {
                      this.context.isAssignmentTarget = false;
                      this.context.isBindingElement = false;
                      if (this.matchKeyword("function")) {
                        expr = this.parseFunctionExpression();
                      } else if (this.matchKeyword("this")) {
                        this.nextToken();
                        expr = this.finalize(node, new Node2.ThisExpression());
                      } else if (this.matchKeyword("class")) {
                        expr = this.parseClassExpression();
                      } else {
                        expr = this.throwUnexpectedToken(this.nextToken());
                      }
                    }
                    break;
                  default:
                    expr = this.throwUnexpectedToken(this.nextToken());
                }
                return expr;
              };
              Parser2.prototype.parseSpreadElement = function() {
                var node = this.createNode();
                this.expect("...");
                var arg = this.inheritCoverGrammar(this.parseAssignmentExpression);
                return this.finalize(node, new Node2.SpreadElement(arg));
              };
              Parser2.prototype.parseArrayInitializer = function() {
                var node = this.createNode();
                var elements = [];
                this.expect("[");
                while (!this.match("]")) {
                  if (this.match(",")) {
                    this.nextToken();
                    elements.push(null);
                  } else if (this.match("...")) {
                    var element = this.parseSpreadElement();
                    if (!this.match("]")) {
                      this.context.isAssignmentTarget = false;
                      this.context.isBindingElement = false;
                      this.expect(",");
                    }
                    elements.push(element);
                  } else {
                    elements.push(this.inheritCoverGrammar(this.parseAssignmentExpression));
                    if (!this.match("]")) {
                      this.expect(",");
                    }
                  }
                }
                this.expect("]");
                return this.finalize(node, new Node2.ArrayExpression(elements));
              };
              Parser2.prototype.parsePropertyMethod = function(params) {
                this.context.isAssignmentTarget = false;
                this.context.isBindingElement = false;
                var previousStrict = this.context.strict;
                var previousAllowStrictDirective = this.context.allowStrictDirective;
                this.context.allowStrictDirective = params.simple;
                var body = this.isolateCoverGrammar(this.parseFunctionSourceElements);
                if (this.context.strict && params.firstRestricted) {
                  this.tolerateUnexpectedToken(params.firstRestricted, params.message);
                }
                if (this.context.strict && params.stricted) {
                  this.tolerateUnexpectedToken(params.stricted, params.message);
                }
                this.context.strict = previousStrict;
                this.context.allowStrictDirective = previousAllowStrictDirective;
                return body;
              };
              Parser2.prototype.parsePropertyMethodFunction = function() {
                var isGenerator = false;
                var node = this.createNode();
                var previousAllowYield = this.context.allowYield;
                this.context.allowYield = true;
                var params = this.parseFormalParameters();
                var method = this.parsePropertyMethod(params);
                this.context.allowYield = previousAllowYield;
                return this.finalize(node, new Node2.FunctionExpression(null, params.params, method, isGenerator));
              };
              Parser2.prototype.parsePropertyMethodAsyncFunction = function() {
                var node = this.createNode();
                var previousAllowYield = this.context.allowYield;
                var previousAwait = this.context.await;
                this.context.allowYield = false;
                this.context.await = true;
                var params = this.parseFormalParameters();
                var method = this.parsePropertyMethod(params);
                this.context.allowYield = previousAllowYield;
                this.context.await = previousAwait;
                return this.finalize(node, new Node2.AsyncFunctionExpression(null, params.params, method));
              };
              Parser2.prototype.parseObjectPropertyKey = function() {
                var node = this.createNode();
                var token = this.nextToken();
                var key;
                switch (token.type) {
                  case 8:
                  case 6:
                    if (this.context.strict && token.octal) {
                      this.tolerateUnexpectedToken(token, messages_1.Messages.StrictOctalLiteral);
                    }
                    var raw = this.getTokenRaw(token);
                    key = this.finalize(node, new Node2.Literal(token.value, raw));
                    break;
                  case 3:
                  case 1:
                  case 5:
                  case 4:
                    key = this.finalize(node, new Node2.Identifier(token.value));
                    break;
                  case 7:
                    if (token.value === "[") {
                      key = this.isolateCoverGrammar(this.parseAssignmentExpression);
                      this.expect("]");
                    } else {
                      key = this.throwUnexpectedToken(token);
                    }
                    break;
                  default:
                    key = this.throwUnexpectedToken(token);
                }
                return key;
              };
              Parser2.prototype.isPropertyKey = function(key, value) {
                return key.type === syntax_1.Syntax.Identifier && key.name === value || key.type === syntax_1.Syntax.Literal && key.value === value;
              };
              Parser2.prototype.parseObjectProperty = function(hasProto) {
                var node = this.createNode();
                var token = this.lookahead;
                var kind;
                var key = null;
                var value = null;
                var computed = false;
                var method = false;
                var shorthand = false;
                var isAsync = false;
                if (token.type === 3) {
                  var id = token.value;
                  this.nextToken();
                  computed = this.match("[");
                  isAsync = !this.hasLineTerminator && id === "async" && !this.match(":") && !this.match("(") && !this.match("*") && !this.match(",");
                  key = isAsync ? this.parseObjectPropertyKey() : this.finalize(node, new Node2.Identifier(id));
                } else if (this.match("*")) {
                  this.nextToken();
                } else {
                  computed = this.match("[");
                  key = this.parseObjectPropertyKey();
                }
                var lookaheadPropertyKey = this.qualifiedPropertyName(this.lookahead);
                if (token.type === 3 && !isAsync && token.value === "get" && lookaheadPropertyKey) {
                  kind = "get";
                  computed = this.match("[");
                  key = this.parseObjectPropertyKey();
                  this.context.allowYield = false;
                  value = this.parseGetterMethod();
                } else if (token.type === 3 && !isAsync && token.value === "set" && lookaheadPropertyKey) {
                  kind = "set";
                  computed = this.match("[");
                  key = this.parseObjectPropertyKey();
                  value = this.parseSetterMethod();
                } else if (token.type === 7 && token.value === "*" && lookaheadPropertyKey) {
                  kind = "init";
                  computed = this.match("[");
                  key = this.parseObjectPropertyKey();
                  value = this.parseGeneratorMethod();
                  method = true;
                } else {
                  if (!key) {
                    this.throwUnexpectedToken(this.lookahead);
                  }
                  kind = "init";
                  if (this.match(":") && !isAsync) {
                    if (!computed && this.isPropertyKey(key, "__proto__")) {
                      if (hasProto.value) {
                        this.tolerateError(messages_1.Messages.DuplicateProtoProperty);
                      }
                      hasProto.value = true;
                    }
                    this.nextToken();
                    value = this.inheritCoverGrammar(this.parseAssignmentExpression);
                  } else if (this.match("(")) {
                    value = isAsync ? this.parsePropertyMethodAsyncFunction() : this.parsePropertyMethodFunction();
                    method = true;
                  } else if (token.type === 3) {
                    var id = this.finalize(node, new Node2.Identifier(token.value));
                    if (this.match("=")) {
                      this.context.firstCoverInitializedNameError = this.lookahead;
                      this.nextToken();
                      shorthand = true;
                      var init = this.isolateCoverGrammar(this.parseAssignmentExpression);
                      value = this.finalize(node, new Node2.AssignmentPattern(id, init));
                    } else {
                      shorthand = true;
                      value = id;
                    }
                  } else {
                    this.throwUnexpectedToken(this.nextToken());
                  }
                }
                return this.finalize(node, new Node2.Property(kind, key, computed, value, method, shorthand));
              };
              Parser2.prototype.parseObjectInitializer = function() {
                var node = this.createNode();
                this.expect("{");
                var properties = [];
                var hasProto = { value: false };
                while (!this.match("}")) {
                  properties.push(this.parseObjectProperty(hasProto));
                  if (!this.match("}")) {
                    this.expectCommaSeparator();
                  }
                }
                this.expect("}");
                return this.finalize(node, new Node2.ObjectExpression(properties));
              };
              Parser2.prototype.parseTemplateHead = function() {
                assert_1.assert(this.lookahead.head, "Template literal must start with a template head");
                var node = this.createNode();
                var token = this.nextToken();
                var raw = token.value;
                var cooked = token.cooked;
                return this.finalize(node, new Node2.TemplateElement({ raw, cooked }, token.tail));
              };
              Parser2.prototype.parseTemplateElement = function() {
                if (this.lookahead.type !== 10) {
                  this.throwUnexpectedToken();
                }
                var node = this.createNode();
                var token = this.nextToken();
                var raw = token.value;
                var cooked = token.cooked;
                return this.finalize(node, new Node2.TemplateElement({ raw, cooked }, token.tail));
              };
              Parser2.prototype.parseTemplateLiteral = function() {
                var node = this.createNode();
                var expressions = [];
                var quasis = [];
                var quasi = this.parseTemplateHead();
                quasis.push(quasi);
                while (!quasi.tail) {
                  expressions.push(this.parseExpression());
                  quasi = this.parseTemplateElement();
                  quasis.push(quasi);
                }
                return this.finalize(node, new Node2.TemplateLiteral(quasis, expressions));
              };
              Parser2.prototype.reinterpretExpressionAsPattern = function(expr) {
                switch (expr.type) {
                  case syntax_1.Syntax.Identifier:
                  case syntax_1.Syntax.MemberExpression:
                  case syntax_1.Syntax.RestElement:
                  case syntax_1.Syntax.AssignmentPattern:
                    break;
                  case syntax_1.Syntax.SpreadElement:
                    expr.type = syntax_1.Syntax.RestElement;
                    this.reinterpretExpressionAsPattern(expr.argument);
                    break;
                  case syntax_1.Syntax.ArrayExpression:
                    expr.type = syntax_1.Syntax.ArrayPattern;
                    for (var i3 = 0; i3 < expr.elements.length; i3++) {
                      if (expr.elements[i3] !== null) {
                        this.reinterpretExpressionAsPattern(expr.elements[i3]);
                      }
                    }
                    break;
                  case syntax_1.Syntax.ObjectExpression:
                    expr.type = syntax_1.Syntax.ObjectPattern;
                    for (var i3 = 0; i3 < expr.properties.length; i3++) {
                      this.reinterpretExpressionAsPattern(expr.properties[i3].value);
                    }
                    break;
                  case syntax_1.Syntax.AssignmentExpression:
                    expr.type = syntax_1.Syntax.AssignmentPattern;
                    delete expr.operator;
                    this.reinterpretExpressionAsPattern(expr.left);
                    break;
                  default:
                    break;
                }
              };
              Parser2.prototype.parseGroupExpression = function() {
                var expr;
                this.expect("(");
                if (this.match(")")) {
                  this.nextToken();
                  if (!this.match("=>")) {
                    this.expect("=>");
                  }
                  expr = {
                    type: ArrowParameterPlaceHolder,
                    params: [],
                    async: false
                  };
                } else {
                  var startToken = this.lookahead;
                  var params = [];
                  if (this.match("...")) {
                    expr = this.parseRestElement(params);
                    this.expect(")");
                    if (!this.match("=>")) {
                      this.expect("=>");
                    }
                    expr = {
                      type: ArrowParameterPlaceHolder,
                      params: [expr],
                      async: false
                    };
                  } else {
                    var arrow = false;
                    this.context.isBindingElement = true;
                    expr = this.inheritCoverGrammar(this.parseAssignmentExpression);
                    if (this.match(",")) {
                      var expressions = [];
                      this.context.isAssignmentTarget = false;
                      expressions.push(expr);
                      while (this.lookahead.type !== 2) {
                        if (!this.match(",")) {
                          break;
                        }
                        this.nextToken();
                        if (this.match(")")) {
                          this.nextToken();
                          for (var i3 = 0; i3 < expressions.length; i3++) {
                            this.reinterpretExpressionAsPattern(expressions[i3]);
                          }
                          arrow = true;
                          expr = {
                            type: ArrowParameterPlaceHolder,
                            params: expressions,
                            async: false
                          };
                        } else if (this.match("...")) {
                          if (!this.context.isBindingElement) {
                            this.throwUnexpectedToken(this.lookahead);
                          }
                          expressions.push(this.parseRestElement(params));
                          this.expect(")");
                          if (!this.match("=>")) {
                            this.expect("=>");
                          }
                          this.context.isBindingElement = false;
                          for (var i3 = 0; i3 < expressions.length; i3++) {
                            this.reinterpretExpressionAsPattern(expressions[i3]);
                          }
                          arrow = true;
                          expr = {
                            type: ArrowParameterPlaceHolder,
                            params: expressions,
                            async: false
                          };
                        } else {
                          expressions.push(this.inheritCoverGrammar(this.parseAssignmentExpression));
                        }
                        if (arrow) {
                          break;
                        }
                      }
                      if (!arrow) {
                        expr = this.finalize(this.startNode(startToken), new Node2.SequenceExpression(expressions));
                      }
                    }
                    if (!arrow) {
                      this.expect(")");
                      if (this.match("=>")) {
                        if (expr.type === syntax_1.Syntax.Identifier && expr.name === "yield") {
                          arrow = true;
                          expr = {
                            type: ArrowParameterPlaceHolder,
                            params: [expr],
                            async: false
                          };
                        }
                        if (!arrow) {
                          if (!this.context.isBindingElement) {
                            this.throwUnexpectedToken(this.lookahead);
                          }
                          if (expr.type === syntax_1.Syntax.SequenceExpression) {
                            for (var i3 = 0; i3 < expr.expressions.length; i3++) {
                              this.reinterpretExpressionAsPattern(expr.expressions[i3]);
                            }
                          } else {
                            this.reinterpretExpressionAsPattern(expr);
                          }
                          var parameters = expr.type === syntax_1.Syntax.SequenceExpression ? expr.expressions : [expr];
                          expr = {
                            type: ArrowParameterPlaceHolder,
                            params: parameters,
                            async: false
                          };
                        }
                      }
                      this.context.isBindingElement = false;
                    }
                  }
                }
                return expr;
              };
              Parser2.prototype.parseArguments = function() {
                this.expect("(");
                var args = [];
                if (!this.match(")")) {
                  while (true) {
                    var expr = this.match("...") ? this.parseSpreadElement() : this.isolateCoverGrammar(this.parseAssignmentExpression);
                    args.push(expr);
                    if (this.match(")")) {
                      break;
                    }
                    this.expectCommaSeparator();
                    if (this.match(")")) {
                      break;
                    }
                  }
                }
                this.expect(")");
                return args;
              };
              Parser2.prototype.isIdentifierName = function(token) {
                return token.type === 3 || token.type === 4 || token.type === 1 || token.type === 5;
              };
              Parser2.prototype.parseIdentifierName = function() {
                var node = this.createNode();
                var token = this.nextToken();
                if (!this.isIdentifierName(token)) {
                  this.throwUnexpectedToken(token);
                }
                return this.finalize(node, new Node2.Identifier(token.value));
              };
              Parser2.prototype.parseNewExpression = function() {
                var node = this.createNode();
                var id = this.parseIdentifierName();
                assert_1.assert(id.name === "new", "New expression must start with `new`");
                var expr;
                if (this.match(".")) {
                  this.nextToken();
                  if (this.lookahead.type === 3 && this.context.inFunctionBody && this.lookahead.value === "target") {
                    var property = this.parseIdentifierName();
                    expr = new Node2.MetaProperty(id, property);
                  } else {
                    this.throwUnexpectedToken(this.lookahead);
                  }
                } else {
                  var callee = this.isolateCoverGrammar(this.parseLeftHandSideExpression);
                  var args = this.match("(") ? this.parseArguments() : [];
                  expr = new Node2.NewExpression(callee, args);
                  this.context.isAssignmentTarget = false;
                  this.context.isBindingElement = false;
                }
                return this.finalize(node, expr);
              };
              Parser2.prototype.parseAsyncArgument = function() {
                var arg = this.parseAssignmentExpression();
                this.context.firstCoverInitializedNameError = null;
                return arg;
              };
              Parser2.prototype.parseAsyncArguments = function() {
                this.expect("(");
                var args = [];
                if (!this.match(")")) {
                  while (true) {
                    var expr = this.match("...") ? this.parseSpreadElement() : this.isolateCoverGrammar(this.parseAsyncArgument);
                    args.push(expr);
                    if (this.match(")")) {
                      break;
                    }
                    this.expectCommaSeparator();
                    if (this.match(")")) {
                      break;
                    }
                  }
                }
                this.expect(")");
                return args;
              };
              Parser2.prototype.parseLeftHandSideExpressionAllowCall = function() {
                var startToken = this.lookahead;
                var maybeAsync = this.matchContextualKeyword("async");
                var previousAllowIn = this.context.allowIn;
                this.context.allowIn = true;
                var expr;
                if (this.matchKeyword("super") && this.context.inFunctionBody) {
                  expr = this.createNode();
                  this.nextToken();
                  expr = this.finalize(expr, new Node2.Super());
                  if (!this.match("(") && !this.match(".") && !this.match("[")) {
                    this.throwUnexpectedToken(this.lookahead);
                  }
                } else {
                  expr = this.inheritCoverGrammar(this.matchKeyword("new") ? this.parseNewExpression : this.parsePrimaryExpression);
                }
                while (true) {
                  if (this.match(".")) {
                    this.context.isBindingElement = false;
                    this.context.isAssignmentTarget = true;
                    this.expect(".");
                    var property = this.parseIdentifierName();
                    expr = this.finalize(this.startNode(startToken), new Node2.StaticMemberExpression(expr, property));
                  } else if (this.match("(")) {
                    var asyncArrow = maybeAsync && startToken.lineNumber === this.lookahead.lineNumber;
                    this.context.isBindingElement = false;
                    this.context.isAssignmentTarget = false;
                    var args = asyncArrow ? this.parseAsyncArguments() : this.parseArguments();
                    expr = this.finalize(this.startNode(startToken), new Node2.CallExpression(expr, args));
                    if (asyncArrow && this.match("=>")) {
                      for (var i3 = 0; i3 < args.length; ++i3) {
                        this.reinterpretExpressionAsPattern(args[i3]);
                      }
                      expr = {
                        type: ArrowParameterPlaceHolder,
                        params: args,
                        async: true
                      };
                    }
                  } else if (this.match("[")) {
                    this.context.isBindingElement = false;
                    this.context.isAssignmentTarget = true;
                    this.expect("[");
                    var property = this.isolateCoverGrammar(this.parseExpression);
                    this.expect("]");
                    expr = this.finalize(this.startNode(startToken), new Node2.ComputedMemberExpression(expr, property));
                  } else if (this.lookahead.type === 10 && this.lookahead.head) {
                    var quasi = this.parseTemplateLiteral();
                    expr = this.finalize(this.startNode(startToken), new Node2.TaggedTemplateExpression(expr, quasi));
                  } else {
                    break;
                  }
                }
                this.context.allowIn = previousAllowIn;
                return expr;
              };
              Parser2.prototype.parseSuper = function() {
                var node = this.createNode();
                this.expectKeyword("super");
                if (!this.match("[") && !this.match(".")) {
                  this.throwUnexpectedToken(this.lookahead);
                }
                return this.finalize(node, new Node2.Super());
              };
              Parser2.prototype.parseLeftHandSideExpression = function() {
                assert_1.assert(this.context.allowIn, "callee of new expression always allow in keyword.");
                var node = this.startNode(this.lookahead);
                var expr = this.matchKeyword("super") && this.context.inFunctionBody ? this.parseSuper() : this.inheritCoverGrammar(this.matchKeyword("new") ? this.parseNewExpression : this.parsePrimaryExpression);
                while (true) {
                  if (this.match("[")) {
                    this.context.isBindingElement = false;
                    this.context.isAssignmentTarget = true;
                    this.expect("[");
                    var property = this.isolateCoverGrammar(this.parseExpression);
                    this.expect("]");
                    expr = this.finalize(node, new Node2.ComputedMemberExpression(expr, property));
                  } else if (this.match(".")) {
                    this.context.isBindingElement = false;
                    this.context.isAssignmentTarget = true;
                    this.expect(".");
                    var property = this.parseIdentifierName();
                    expr = this.finalize(node, new Node2.StaticMemberExpression(expr, property));
                  } else if (this.lookahead.type === 10 && this.lookahead.head) {
                    var quasi = this.parseTemplateLiteral();
                    expr = this.finalize(node, new Node2.TaggedTemplateExpression(expr, quasi));
                  } else {
                    break;
                  }
                }
                return expr;
              };
              Parser2.prototype.parseUpdateExpression = function() {
                var expr;
                var startToken = this.lookahead;
                if (this.match("++") || this.match("--")) {
                  var node = this.startNode(startToken);
                  var token = this.nextToken();
                  expr = this.inheritCoverGrammar(this.parseUnaryExpression);
                  if (this.context.strict && expr.type === syntax_1.Syntax.Identifier && this.scanner.isRestrictedWord(expr.name)) {
                    this.tolerateError(messages_1.Messages.StrictLHSPrefix);
                  }
                  if (!this.context.isAssignmentTarget) {
                    this.tolerateError(messages_1.Messages.InvalidLHSInAssignment);
                  }
                  var prefix2 = true;
                  expr = this.finalize(node, new Node2.UpdateExpression(token.value, expr, prefix2));
                  this.context.isAssignmentTarget = false;
                  this.context.isBindingElement = false;
                } else {
                  expr = this.inheritCoverGrammar(this.parseLeftHandSideExpressionAllowCall);
                  if (!this.hasLineTerminator && this.lookahead.type === 7) {
                    if (this.match("++") || this.match("--")) {
                      if (this.context.strict && expr.type === syntax_1.Syntax.Identifier && this.scanner.isRestrictedWord(expr.name)) {
                        this.tolerateError(messages_1.Messages.StrictLHSPostfix);
                      }
                      if (!this.context.isAssignmentTarget) {
                        this.tolerateError(messages_1.Messages.InvalidLHSInAssignment);
                      }
                      this.context.isAssignmentTarget = false;
                      this.context.isBindingElement = false;
                      var operator = this.nextToken().value;
                      var prefix2 = false;
                      expr = this.finalize(this.startNode(startToken), new Node2.UpdateExpression(operator, expr, prefix2));
                    }
                  }
                }
                return expr;
              };
              Parser2.prototype.parseAwaitExpression = function() {
                var node = this.createNode();
                this.nextToken();
                var argument = this.parseUnaryExpression();
                return this.finalize(node, new Node2.AwaitExpression(argument));
              };
              Parser2.prototype.parseUnaryExpression = function() {
                var expr;
                if (this.match("+") || this.match("-") || this.match("~") || this.match("!") || this.matchKeyword("delete") || this.matchKeyword("void") || this.matchKeyword("typeof")) {
                  var node = this.startNode(this.lookahead);
                  var token = this.nextToken();
                  expr = this.inheritCoverGrammar(this.parseUnaryExpression);
                  expr = this.finalize(node, new Node2.UnaryExpression(token.value, expr));
                  if (this.context.strict && expr.operator === "delete" && expr.argument.type === syntax_1.Syntax.Identifier) {
                    this.tolerateError(messages_1.Messages.StrictDelete);
                  }
                  this.context.isAssignmentTarget = false;
                  this.context.isBindingElement = false;
                } else if (this.context.await && this.matchContextualKeyword("await")) {
                  expr = this.parseAwaitExpression();
                } else {
                  expr = this.parseUpdateExpression();
                }
                return expr;
              };
              Parser2.prototype.parseExponentiationExpression = function() {
                var startToken = this.lookahead;
                var expr = this.inheritCoverGrammar(this.parseUnaryExpression);
                if (expr.type !== syntax_1.Syntax.UnaryExpression && this.match("**")) {
                  this.nextToken();
                  this.context.isAssignmentTarget = false;
                  this.context.isBindingElement = false;
                  var left = expr;
                  var right = this.isolateCoverGrammar(this.parseExponentiationExpression);
                  expr = this.finalize(this.startNode(startToken), new Node2.BinaryExpression("**", left, right));
                }
                return expr;
              };
              Parser2.prototype.binaryPrecedence = function(token) {
                var op2 = token.value;
                var precedence;
                if (token.type === 7) {
                  precedence = this.operatorPrecedence[op2] || 0;
                } else if (token.type === 4) {
                  precedence = op2 === "instanceof" || this.context.allowIn && op2 === "in" ? 7 : 0;
                } else {
                  precedence = 0;
                }
                return precedence;
              };
              Parser2.prototype.parseBinaryExpression = function() {
                var startToken = this.lookahead;
                var expr = this.inheritCoverGrammar(this.parseExponentiationExpression);
                var token = this.lookahead;
                var prec = this.binaryPrecedence(token);
                if (prec > 0) {
                  this.nextToken();
                  this.context.isAssignmentTarget = false;
                  this.context.isBindingElement = false;
                  var markers = [startToken, this.lookahead];
                  var left = expr;
                  var right = this.isolateCoverGrammar(this.parseExponentiationExpression);
                  var stack = [left, token.value, right];
                  var precedences = [prec];
                  while (true) {
                    prec = this.binaryPrecedence(this.lookahead);
                    if (prec <= 0) {
                      break;
                    }
                    while (stack.length > 2 && prec <= precedences[precedences.length - 1]) {
                      right = stack.pop();
                      var operator = stack.pop();
                      precedences.pop();
                      left = stack.pop();
                      markers.pop();
                      var node = this.startNode(markers[markers.length - 1]);
                      stack.push(this.finalize(node, new Node2.BinaryExpression(operator, left, right)));
                    }
                    stack.push(this.nextToken().value);
                    precedences.push(prec);
                    markers.push(this.lookahead);
                    stack.push(this.isolateCoverGrammar(this.parseExponentiationExpression));
                  }
                  var i3 = stack.length - 1;
                  expr = stack[i3];
                  var lastMarker = markers.pop();
                  while (i3 > 1) {
                    var marker = markers.pop();
                    var lastLineStart = lastMarker && lastMarker.lineStart;
                    var node = this.startNode(marker, lastLineStart);
                    var operator = stack[i3 - 1];
                    expr = this.finalize(node, new Node2.BinaryExpression(operator, stack[i3 - 2], expr));
                    i3 -= 2;
                    lastMarker = marker;
                  }
                }
                return expr;
              };
              Parser2.prototype.parseConditionalExpression = function() {
                var startToken = this.lookahead;
                var expr = this.inheritCoverGrammar(this.parseBinaryExpression);
                if (this.match("?")) {
                  this.nextToken();
                  var previousAllowIn = this.context.allowIn;
                  this.context.allowIn = true;
                  var consequent = this.isolateCoverGrammar(this.parseAssignmentExpression);
                  this.context.allowIn = previousAllowIn;
                  this.expect(":");
                  var alternate = this.isolateCoverGrammar(this.parseAssignmentExpression);
                  expr = this.finalize(this.startNode(startToken), new Node2.ConditionalExpression(expr, consequent, alternate));
                  this.context.isAssignmentTarget = false;
                  this.context.isBindingElement = false;
                }
                return expr;
              };
              Parser2.prototype.checkPatternParam = function(options, param) {
                switch (param.type) {
                  case syntax_1.Syntax.Identifier:
                    this.validateParam(options, param, param.name);
                    break;
                  case syntax_1.Syntax.RestElement:
                    this.checkPatternParam(options, param.argument);
                    break;
                  case syntax_1.Syntax.AssignmentPattern:
                    this.checkPatternParam(options, param.left);
                    break;
                  case syntax_1.Syntax.ArrayPattern:
                    for (var i3 = 0; i3 < param.elements.length; i3++) {
                      if (param.elements[i3] !== null) {
                        this.checkPatternParam(options, param.elements[i3]);
                      }
                    }
                    break;
                  case syntax_1.Syntax.ObjectPattern:
                    for (var i3 = 0; i3 < param.properties.length; i3++) {
                      this.checkPatternParam(options, param.properties[i3].value);
                    }
                    break;
                  default:
                    break;
                }
                options.simple = options.simple && param instanceof Node2.Identifier;
              };
              Parser2.prototype.reinterpretAsCoverFormalsList = function(expr) {
                var params = [expr];
                var options;
                var asyncArrow = false;
                switch (expr.type) {
                  case syntax_1.Syntax.Identifier:
                    break;
                  case ArrowParameterPlaceHolder:
                    params = expr.params;
                    asyncArrow = expr.async;
                    break;
                  default:
                    return null;
                }
                options = {
                  simple: true,
                  paramSet: {}
                };
                for (var i3 = 0; i3 < params.length; ++i3) {
                  var param = params[i3];
                  if (param.type === syntax_1.Syntax.AssignmentPattern) {
                    if (param.right.type === syntax_1.Syntax.YieldExpression) {
                      if (param.right.argument) {
                        this.throwUnexpectedToken(this.lookahead);
                      }
                      param.right.type = syntax_1.Syntax.Identifier;
                      param.right.name = "yield";
                      delete param.right.argument;
                      delete param.right.delegate;
                    }
                  } else if (asyncArrow && param.type === syntax_1.Syntax.Identifier && param.name === "await") {
                    this.throwUnexpectedToken(this.lookahead);
                  }
                  this.checkPatternParam(options, param);
                  params[i3] = param;
                }
                if (this.context.strict || !this.context.allowYield) {
                  for (var i3 = 0; i3 < params.length; ++i3) {
                    var param = params[i3];
                    if (param.type === syntax_1.Syntax.YieldExpression) {
                      this.throwUnexpectedToken(this.lookahead);
                    }
                  }
                }
                if (options.message === messages_1.Messages.StrictParamDupe) {
                  var token = this.context.strict ? options.stricted : options.firstRestricted;
                  this.throwUnexpectedToken(token, options.message);
                }
                return {
                  simple: options.simple,
                  params,
                  stricted: options.stricted,
                  firstRestricted: options.firstRestricted,
                  message: options.message
                };
              };
              Parser2.prototype.parseAssignmentExpression = function() {
                var expr;
                if (!this.context.allowYield && this.matchKeyword("yield")) {
                  expr = this.parseYieldExpression();
                } else {
                  var startToken = this.lookahead;
                  var token = startToken;
                  expr = this.parseConditionalExpression();
                  if (token.type === 3 && token.lineNumber === this.lookahead.lineNumber && token.value === "async") {
                    if (this.lookahead.type === 3 || this.matchKeyword("yield")) {
                      var arg = this.parsePrimaryExpression();
                      this.reinterpretExpressionAsPattern(arg);
                      expr = {
                        type: ArrowParameterPlaceHolder,
                        params: [arg],
                        async: true
                      };
                    }
                  }
                  if (expr.type === ArrowParameterPlaceHolder || this.match("=>")) {
                    this.context.isAssignmentTarget = false;
                    this.context.isBindingElement = false;
                    var isAsync = expr.async;
                    var list2 = this.reinterpretAsCoverFormalsList(expr);
                    if (list2) {
                      if (this.hasLineTerminator) {
                        this.tolerateUnexpectedToken(this.lookahead);
                      }
                      this.context.firstCoverInitializedNameError = null;
                      var previousStrict = this.context.strict;
                      var previousAllowStrictDirective = this.context.allowStrictDirective;
                      this.context.allowStrictDirective = list2.simple;
                      var previousAllowYield = this.context.allowYield;
                      var previousAwait = this.context.await;
                      this.context.allowYield = true;
                      this.context.await = isAsync;
                      var node = this.startNode(startToken);
                      this.expect("=>");
                      var body = void 0;
                      if (this.match("{")) {
                        var previousAllowIn = this.context.allowIn;
                        this.context.allowIn = true;
                        body = this.parseFunctionSourceElements();
                        this.context.allowIn = previousAllowIn;
                      } else {
                        body = this.isolateCoverGrammar(this.parseAssignmentExpression);
                      }
                      var expression = body.type !== syntax_1.Syntax.BlockStatement;
                      if (this.context.strict && list2.firstRestricted) {
                        this.throwUnexpectedToken(list2.firstRestricted, list2.message);
                      }
                      if (this.context.strict && list2.stricted) {
                        this.tolerateUnexpectedToken(list2.stricted, list2.message);
                      }
                      expr = isAsync ? this.finalize(node, new Node2.AsyncArrowFunctionExpression(list2.params, body, expression)) : this.finalize(node, new Node2.ArrowFunctionExpression(list2.params, body, expression));
                      this.context.strict = previousStrict;
                      this.context.allowStrictDirective = previousAllowStrictDirective;
                      this.context.allowYield = previousAllowYield;
                      this.context.await = previousAwait;
                    }
                  } else {
                    if (this.matchAssign()) {
                      if (!this.context.isAssignmentTarget) {
                        this.tolerateError(messages_1.Messages.InvalidLHSInAssignment);
                      }
                      if (this.context.strict && expr.type === syntax_1.Syntax.Identifier) {
                        var id = expr;
                        if (this.scanner.isRestrictedWord(id.name)) {
                          this.tolerateUnexpectedToken(token, messages_1.Messages.StrictLHSAssignment);
                        }
                        if (this.scanner.isStrictModeReservedWord(id.name)) {
                          this.tolerateUnexpectedToken(token, messages_1.Messages.StrictReservedWord);
                        }
                      }
                      if (!this.match("=")) {
                        this.context.isAssignmentTarget = false;
                        this.context.isBindingElement = false;
                      } else {
                        this.reinterpretExpressionAsPattern(expr);
                      }
                      token = this.nextToken();
                      var operator = token.value;
                      var right = this.isolateCoverGrammar(this.parseAssignmentExpression);
                      expr = this.finalize(this.startNode(startToken), new Node2.AssignmentExpression(operator, expr, right));
                      this.context.firstCoverInitializedNameError = null;
                    }
                  }
                }
                return expr;
              };
              Parser2.prototype.parseExpression = function() {
                var startToken = this.lookahead;
                var expr = this.isolateCoverGrammar(this.parseAssignmentExpression);
                if (this.match(",")) {
                  var expressions = [];
                  expressions.push(expr);
                  while (this.lookahead.type !== 2) {
                    if (!this.match(",")) {
                      break;
                    }
                    this.nextToken();
                    expressions.push(this.isolateCoverGrammar(this.parseAssignmentExpression));
                  }
                  expr = this.finalize(this.startNode(startToken), new Node2.SequenceExpression(expressions));
                }
                return expr;
              };
              Parser2.prototype.parseStatementListItem = function() {
                var statement;
                this.context.isAssignmentTarget = true;
                this.context.isBindingElement = true;
                if (this.lookahead.type === 4) {
                  switch (this.lookahead.value) {
                    case "export":
                      if (!this.context.isModule) {
                        this.tolerateUnexpectedToken(this.lookahead, messages_1.Messages.IllegalExportDeclaration);
                      }
                      statement = this.parseExportDeclaration();
                      break;
                    case "import":
                      if (!this.context.isModule) {
                        this.tolerateUnexpectedToken(this.lookahead, messages_1.Messages.IllegalImportDeclaration);
                      }
                      statement = this.parseImportDeclaration();
                      break;
                    case "const":
                      statement = this.parseLexicalDeclaration({ inFor: false });
                      break;
                    case "function":
                      statement = this.parseFunctionDeclaration();
                      break;
                    case "class":
                      statement = this.parseClassDeclaration();
                      break;
                    case "let":
                      statement = this.isLexicalDeclaration() ? this.parseLexicalDeclaration({ inFor: false }) : this.parseStatement();
                      break;
                    default:
                      statement = this.parseStatement();
                      break;
                  }
                } else {
                  statement = this.parseStatement();
                }
                return statement;
              };
              Parser2.prototype.parseBlock = function() {
                var node = this.createNode();
                this.expect("{");
                var block = [];
                while (true) {
                  if (this.match("}")) {
                    break;
                  }
                  block.push(this.parseStatementListItem());
                }
                this.expect("}");
                return this.finalize(node, new Node2.BlockStatement(block));
              };
              Parser2.prototype.parseLexicalBinding = function(kind, options) {
                var node = this.createNode();
                var params = [];
                var id = this.parsePattern(params, kind);
                if (this.context.strict && id.type === syntax_1.Syntax.Identifier) {
                  if (this.scanner.isRestrictedWord(id.name)) {
                    this.tolerateError(messages_1.Messages.StrictVarName);
                  }
                }
                var init = null;
                if (kind === "const") {
                  if (!this.matchKeyword("in") && !this.matchContextualKeyword("of")) {
                    if (this.match("=")) {
                      this.nextToken();
                      init = this.isolateCoverGrammar(this.parseAssignmentExpression);
                    } else {
                      this.throwError(messages_1.Messages.DeclarationMissingInitializer, "const");
                    }
                  }
                } else if (!options.inFor && id.type !== syntax_1.Syntax.Identifier || this.match("=")) {
                  this.expect("=");
                  init = this.isolateCoverGrammar(this.parseAssignmentExpression);
                }
                return this.finalize(node, new Node2.VariableDeclarator(id, init));
              };
              Parser2.prototype.parseBindingList = function(kind, options) {
                var list2 = [this.parseLexicalBinding(kind, options)];
                while (this.match(",")) {
                  this.nextToken();
                  list2.push(this.parseLexicalBinding(kind, options));
                }
                return list2;
              };
              Parser2.prototype.isLexicalDeclaration = function() {
                var state2 = this.scanner.saveState();
                this.scanner.scanComments();
                var next = this.scanner.lex();
                this.scanner.restoreState(state2);
                return next.type === 3 || next.type === 7 && next.value === "[" || next.type === 7 && next.value === "{" || next.type === 4 && next.value === "let" || next.type === 4 && next.value === "yield";
              };
              Parser2.prototype.parseLexicalDeclaration = function(options) {
                var node = this.createNode();
                var kind = this.nextToken().value;
                assert_1.assert(kind === "let" || kind === "const", "Lexical declaration must be either let or const");
                var declarations = this.parseBindingList(kind, options);
                this.consumeSemicolon();
                return this.finalize(node, new Node2.VariableDeclaration(declarations, kind));
              };
              Parser2.prototype.parseBindingRestElement = function(params, kind) {
                var node = this.createNode();
                this.expect("...");
                var arg = this.parsePattern(params, kind);
                return this.finalize(node, new Node2.RestElement(arg));
              };
              Parser2.prototype.parseArrayPattern = function(params, kind) {
                var node = this.createNode();
                this.expect("[");
                var elements = [];
                while (!this.match("]")) {
                  if (this.match(",")) {
                    this.nextToken();
                    elements.push(null);
                  } else {
                    if (this.match("...")) {
                      elements.push(this.parseBindingRestElement(params, kind));
                      break;
                    } else {
                      elements.push(this.parsePatternWithDefault(params, kind));
                    }
                    if (!this.match("]")) {
                      this.expect(",");
                    }
                  }
                }
                this.expect("]");
                return this.finalize(node, new Node2.ArrayPattern(elements));
              };
              Parser2.prototype.parsePropertyPattern = function(params, kind) {
                var node = this.createNode();
                var computed = false;
                var shorthand = false;
                var method = false;
                var key;
                var value;
                if (this.lookahead.type === 3) {
                  var keyToken = this.lookahead;
                  key = this.parseVariableIdentifier();
                  var init = this.finalize(node, new Node2.Identifier(keyToken.value));
                  if (this.match("=")) {
                    params.push(keyToken);
                    shorthand = true;
                    this.nextToken();
                    var expr = this.parseAssignmentExpression();
                    value = this.finalize(this.startNode(keyToken), new Node2.AssignmentPattern(init, expr));
                  } else if (!this.match(":")) {
                    params.push(keyToken);
                    shorthand = true;
                    value = init;
                  } else {
                    this.expect(":");
                    value = this.parsePatternWithDefault(params, kind);
                  }
                } else {
                  computed = this.match("[");
                  key = this.parseObjectPropertyKey();
                  this.expect(":");
                  value = this.parsePatternWithDefault(params, kind);
                }
                return this.finalize(node, new Node2.Property("init", key, computed, value, method, shorthand));
              };
              Parser2.prototype.parseObjectPattern = function(params, kind) {
                var node = this.createNode();
                var properties = [];
                this.expect("{");
                while (!this.match("}")) {
                  properties.push(this.parsePropertyPattern(params, kind));
                  if (!this.match("}")) {
                    this.expect(",");
                  }
                }
                this.expect("}");
                return this.finalize(node, new Node2.ObjectPattern(properties));
              };
              Parser2.prototype.parsePattern = function(params, kind) {
                var pattern;
                if (this.match("[")) {
                  pattern = this.parseArrayPattern(params, kind);
                } else if (this.match("{")) {
                  pattern = this.parseObjectPattern(params, kind);
                } else {
                  if (this.matchKeyword("let") && (kind === "const" || kind === "let")) {
                    this.tolerateUnexpectedToken(this.lookahead, messages_1.Messages.LetInLexicalBinding);
                  }
                  params.push(this.lookahead);
                  pattern = this.parseVariableIdentifier(kind);
                }
                return pattern;
              };
              Parser2.prototype.parsePatternWithDefault = function(params, kind) {
                var startToken = this.lookahead;
                var pattern = this.parsePattern(params, kind);
                if (this.match("=")) {
                  this.nextToken();
                  var previousAllowYield = this.context.allowYield;
                  this.context.allowYield = true;
                  var right = this.isolateCoverGrammar(this.parseAssignmentExpression);
                  this.context.allowYield = previousAllowYield;
                  pattern = this.finalize(this.startNode(startToken), new Node2.AssignmentPattern(pattern, right));
                }
                return pattern;
              };
              Parser2.prototype.parseVariableIdentifier = function(kind) {
                var node = this.createNode();
                var token = this.nextToken();
                if (token.type === 4 && token.value === "yield") {
                  if (this.context.strict) {
                    this.tolerateUnexpectedToken(token, messages_1.Messages.StrictReservedWord);
                  } else if (!this.context.allowYield) {
                    this.throwUnexpectedToken(token);
                  }
                } else if (token.type !== 3) {
                  if (this.context.strict && token.type === 4 && this.scanner.isStrictModeReservedWord(token.value)) {
                    this.tolerateUnexpectedToken(token, messages_1.Messages.StrictReservedWord);
                  } else {
                    if (this.context.strict || token.value !== "let" || kind !== "var") {
                      this.throwUnexpectedToken(token);
                    }
                  }
                } else if ((this.context.isModule || this.context.await) && token.type === 3 && token.value === "await") {
                  this.tolerateUnexpectedToken(token);
                }
                return this.finalize(node, new Node2.Identifier(token.value));
              };
              Parser2.prototype.parseVariableDeclaration = function(options) {
                var node = this.createNode();
                var params = [];
                var id = this.parsePattern(params, "var");
                if (this.context.strict && id.type === syntax_1.Syntax.Identifier) {
                  if (this.scanner.isRestrictedWord(id.name)) {
                    this.tolerateError(messages_1.Messages.StrictVarName);
                  }
                }
                var init = null;
                if (this.match("=")) {
                  this.nextToken();
                  init = this.isolateCoverGrammar(this.parseAssignmentExpression);
                } else if (id.type !== syntax_1.Syntax.Identifier && !options.inFor) {
                  this.expect("=");
                }
                return this.finalize(node, new Node2.VariableDeclarator(id, init));
              };
              Parser2.prototype.parseVariableDeclarationList = function(options) {
                var opt = { inFor: options.inFor };
                var list2 = [];
                list2.push(this.parseVariableDeclaration(opt));
                while (this.match(",")) {
                  this.nextToken();
                  list2.push(this.parseVariableDeclaration(opt));
                }
                return list2;
              };
              Parser2.prototype.parseVariableStatement = function() {
                var node = this.createNode();
                this.expectKeyword("var");
                var declarations = this.parseVariableDeclarationList({ inFor: false });
                this.consumeSemicolon();
                return this.finalize(node, new Node2.VariableDeclaration(declarations, "var"));
              };
              Parser2.prototype.parseEmptyStatement = function() {
                var node = this.createNode();
                this.expect(";");
                return this.finalize(node, new Node2.EmptyStatement());
              };
              Parser2.prototype.parseExpressionStatement = function() {
                var node = this.createNode();
                var expr = this.parseExpression();
                this.consumeSemicolon();
                return this.finalize(node, new Node2.ExpressionStatement(expr));
              };
              Parser2.prototype.parseIfClause = function() {
                if (this.context.strict && this.matchKeyword("function")) {
                  this.tolerateError(messages_1.Messages.StrictFunction);
                }
                return this.parseStatement();
              };
              Parser2.prototype.parseIfStatement = function() {
                var node = this.createNode();
                var consequent;
                var alternate = null;
                this.expectKeyword("if");
                this.expect("(");
                var test = this.parseExpression();
                if (!this.match(")") && this.config.tolerant) {
                  this.tolerateUnexpectedToken(this.nextToken());
                  consequent = this.finalize(this.createNode(), new Node2.EmptyStatement());
                } else {
                  this.expect(")");
                  consequent = this.parseIfClause();
                  if (this.matchKeyword("else")) {
                    this.nextToken();
                    alternate = this.parseIfClause();
                  }
                }
                return this.finalize(node, new Node2.IfStatement(test, consequent, alternate));
              };
              Parser2.prototype.parseDoWhileStatement = function() {
                var node = this.createNode();
                this.expectKeyword("do");
                var previousInIteration = this.context.inIteration;
                this.context.inIteration = true;
                var body = this.parseStatement();
                this.context.inIteration = previousInIteration;
                this.expectKeyword("while");
                this.expect("(");
                var test = this.parseExpression();
                if (!this.match(")") && this.config.tolerant) {
                  this.tolerateUnexpectedToken(this.nextToken());
                } else {
                  this.expect(")");
                  if (this.match(";")) {
                    this.nextToken();
                  }
                }
                return this.finalize(node, new Node2.DoWhileStatement(body, test));
              };
              Parser2.prototype.parseWhileStatement = function() {
                var node = this.createNode();
                var body;
                this.expectKeyword("while");
                this.expect("(");
                var test = this.parseExpression();
                if (!this.match(")") && this.config.tolerant) {
                  this.tolerateUnexpectedToken(this.nextToken());
                  body = this.finalize(this.createNode(), new Node2.EmptyStatement());
                } else {
                  this.expect(")");
                  var previousInIteration = this.context.inIteration;
                  this.context.inIteration = true;
                  body = this.parseStatement();
                  this.context.inIteration = previousInIteration;
                }
                return this.finalize(node, new Node2.WhileStatement(test, body));
              };
              Parser2.prototype.parseForStatement = function() {
                var init = null;
                var test = null;
                var update = null;
                var forIn = true;
                var left, right;
                var node = this.createNode();
                this.expectKeyword("for");
                this.expect("(");
                if (this.match(";")) {
                  this.nextToken();
                } else {
                  if (this.matchKeyword("var")) {
                    init = this.createNode();
                    this.nextToken();
                    var previousAllowIn = this.context.allowIn;
                    this.context.allowIn = false;
                    var declarations = this.parseVariableDeclarationList({ inFor: true });
                    this.context.allowIn = previousAllowIn;
                    if (declarations.length === 1 && this.matchKeyword("in")) {
                      var decl = declarations[0];
                      if (decl.init && (decl.id.type === syntax_1.Syntax.ArrayPattern || decl.id.type === syntax_1.Syntax.ObjectPattern || this.context.strict)) {
                        this.tolerateError(messages_1.Messages.ForInOfLoopInitializer, "for-in");
                      }
                      init = this.finalize(init, new Node2.VariableDeclaration(declarations, "var"));
                      this.nextToken();
                      left = init;
                      right = this.parseExpression();
                      init = null;
                    } else if (declarations.length === 1 && declarations[0].init === null && this.matchContextualKeyword("of")) {
                      init = this.finalize(init, new Node2.VariableDeclaration(declarations, "var"));
                      this.nextToken();
                      left = init;
                      right = this.parseAssignmentExpression();
                      init = null;
                      forIn = false;
                    } else {
                      init = this.finalize(init, new Node2.VariableDeclaration(declarations, "var"));
                      this.expect(";");
                    }
                  } else if (this.matchKeyword("const") || this.matchKeyword("let")) {
                    init = this.createNode();
                    var kind = this.nextToken().value;
                    if (!this.context.strict && this.lookahead.value === "in") {
                      init = this.finalize(init, new Node2.Identifier(kind));
                      this.nextToken();
                      left = init;
                      right = this.parseExpression();
                      init = null;
                    } else {
                      var previousAllowIn = this.context.allowIn;
                      this.context.allowIn = false;
                      var declarations = this.parseBindingList(kind, { inFor: true });
                      this.context.allowIn = previousAllowIn;
                      if (declarations.length === 1 && declarations[0].init === null && this.matchKeyword("in")) {
                        init = this.finalize(init, new Node2.VariableDeclaration(declarations, kind));
                        this.nextToken();
                        left = init;
                        right = this.parseExpression();
                        init = null;
                      } else if (declarations.length === 1 && declarations[0].init === null && this.matchContextualKeyword("of")) {
                        init = this.finalize(init, new Node2.VariableDeclaration(declarations, kind));
                        this.nextToken();
                        left = init;
                        right = this.parseAssignmentExpression();
                        init = null;
                        forIn = false;
                      } else {
                        this.consumeSemicolon();
                        init = this.finalize(init, new Node2.VariableDeclaration(declarations, kind));
                      }
                    }
                  } else {
                    var initStartToken = this.lookahead;
                    var previousAllowIn = this.context.allowIn;
                    this.context.allowIn = false;
                    init = this.inheritCoverGrammar(this.parseAssignmentExpression);
                    this.context.allowIn = previousAllowIn;
                    if (this.matchKeyword("in")) {
                      if (!this.context.isAssignmentTarget || init.type === syntax_1.Syntax.AssignmentExpression) {
                        this.tolerateError(messages_1.Messages.InvalidLHSInForIn);
                      }
                      this.nextToken();
                      this.reinterpretExpressionAsPattern(init);
                      left = init;
                      right = this.parseExpression();
                      init = null;
                    } else if (this.matchContextualKeyword("of")) {
                      if (!this.context.isAssignmentTarget || init.type === syntax_1.Syntax.AssignmentExpression) {
                        this.tolerateError(messages_1.Messages.InvalidLHSInForLoop);
                      }
                      this.nextToken();
                      this.reinterpretExpressionAsPattern(init);
                      left = init;
                      right = this.parseAssignmentExpression();
                      init = null;
                      forIn = false;
                    } else {
                      if (this.match(",")) {
                        var initSeq = [init];
                        while (this.match(",")) {
                          this.nextToken();
                          initSeq.push(this.isolateCoverGrammar(this.parseAssignmentExpression));
                        }
                        init = this.finalize(this.startNode(initStartToken), new Node2.SequenceExpression(initSeq));
                      }
                      this.expect(";");
                    }
                  }
                }
                if (typeof left === "undefined") {
                  if (!this.match(";")) {
                    test = this.parseExpression();
                  }
                  this.expect(";");
                  if (!this.match(")")) {
                    update = this.parseExpression();
                  }
                }
                var body;
                if (!this.match(")") && this.config.tolerant) {
                  this.tolerateUnexpectedToken(this.nextToken());
                  body = this.finalize(this.createNode(), new Node2.EmptyStatement());
                } else {
                  this.expect(")");
                  var previousInIteration = this.context.inIteration;
                  this.context.inIteration = true;
                  body = this.isolateCoverGrammar(this.parseStatement);
                  this.context.inIteration = previousInIteration;
                }
                return typeof left === "undefined" ? this.finalize(node, new Node2.ForStatement(init, test, update, body)) : forIn ? this.finalize(node, new Node2.ForInStatement(left, right, body)) : this.finalize(node, new Node2.ForOfStatement(left, right, body));
              };
              Parser2.prototype.parseContinueStatement = function() {
                var node = this.createNode();
                this.expectKeyword("continue");
                var label = null;
                if (this.lookahead.type === 3 && !this.hasLineTerminator) {
                  var id = this.parseVariableIdentifier();
                  label = id;
                  var key = "$" + id.name;
                  if (!Object.prototype.hasOwnProperty.call(this.context.labelSet, key)) {
                    this.throwError(messages_1.Messages.UnknownLabel, id.name);
                  }
                }
                this.consumeSemicolon();
                if (label === null && !this.context.inIteration) {
                  this.throwError(messages_1.Messages.IllegalContinue);
                }
                return this.finalize(node, new Node2.ContinueStatement(label));
              };
              Parser2.prototype.parseBreakStatement = function() {
                var node = this.createNode();
                this.expectKeyword("break");
                var label = null;
                if (this.lookahead.type === 3 && !this.hasLineTerminator) {
                  var id = this.parseVariableIdentifier();
                  var key = "$" + id.name;
                  if (!Object.prototype.hasOwnProperty.call(this.context.labelSet, key)) {
                    this.throwError(messages_1.Messages.UnknownLabel, id.name);
                  }
                  label = id;
                }
                this.consumeSemicolon();
                if (label === null && !this.context.inIteration && !this.context.inSwitch) {
                  this.throwError(messages_1.Messages.IllegalBreak);
                }
                return this.finalize(node, new Node2.BreakStatement(label));
              };
              Parser2.prototype.parseReturnStatement = function() {
                if (!this.context.inFunctionBody) {
                  this.tolerateError(messages_1.Messages.IllegalReturn);
                }
                var node = this.createNode();
                this.expectKeyword("return");
                var hasArgument = !this.match(";") && !this.match("}") && !this.hasLineTerminator && this.lookahead.type !== 2 || this.lookahead.type === 8 || this.lookahead.type === 10;
                var argument = hasArgument ? this.parseExpression() : null;
                this.consumeSemicolon();
                return this.finalize(node, new Node2.ReturnStatement(argument));
              };
              Parser2.prototype.parseWithStatement = function() {
                if (this.context.strict) {
                  this.tolerateError(messages_1.Messages.StrictModeWith);
                }
                var node = this.createNode();
                var body;
                this.expectKeyword("with");
                this.expect("(");
                var object = this.parseExpression();
                if (!this.match(")") && this.config.tolerant) {
                  this.tolerateUnexpectedToken(this.nextToken());
                  body = this.finalize(this.createNode(), new Node2.EmptyStatement());
                } else {
                  this.expect(")");
                  body = this.parseStatement();
                }
                return this.finalize(node, new Node2.WithStatement(object, body));
              };
              Parser2.prototype.parseSwitchCase = function() {
                var node = this.createNode();
                var test;
                if (this.matchKeyword("default")) {
                  this.nextToken();
                  test = null;
                } else {
                  this.expectKeyword("case");
                  test = this.parseExpression();
                }
                this.expect(":");
                var consequent = [];
                while (true) {
                  if (this.match("}") || this.matchKeyword("default") || this.matchKeyword("case")) {
                    break;
                  }
                  consequent.push(this.parseStatementListItem());
                }
                return this.finalize(node, new Node2.SwitchCase(test, consequent));
              };
              Parser2.prototype.parseSwitchStatement = function() {
                var node = this.createNode();
                this.expectKeyword("switch");
                this.expect("(");
                var discriminant = this.parseExpression();
                this.expect(")");
                var previousInSwitch = this.context.inSwitch;
                this.context.inSwitch = true;
                var cases = [];
                var defaultFound = false;
                this.expect("{");
                while (true) {
                  if (this.match("}")) {
                    break;
                  }
                  var clause = this.parseSwitchCase();
                  if (clause.test === null) {
                    if (defaultFound) {
                      this.throwError(messages_1.Messages.MultipleDefaultsInSwitch);
                    }
                    defaultFound = true;
                  }
                  cases.push(clause);
                }
                this.expect("}");
                this.context.inSwitch = previousInSwitch;
                return this.finalize(node, new Node2.SwitchStatement(discriminant, cases));
              };
              Parser2.prototype.parseLabelledStatement = function() {
                var node = this.createNode();
                var expr = this.parseExpression();
                var statement;
                if (expr.type === syntax_1.Syntax.Identifier && this.match(":")) {
                  this.nextToken();
                  var id = expr;
                  var key = "$" + id.name;
                  if (Object.prototype.hasOwnProperty.call(this.context.labelSet, key)) {
                    this.throwError(messages_1.Messages.Redeclaration, "Label", id.name);
                  }
                  this.context.labelSet[key] = true;
                  var body = void 0;
                  if (this.matchKeyword("class")) {
                    this.tolerateUnexpectedToken(this.lookahead);
                    body = this.parseClassDeclaration();
                  } else if (this.matchKeyword("function")) {
                    var token = this.lookahead;
                    var declaration = this.parseFunctionDeclaration();
                    if (this.context.strict) {
                      this.tolerateUnexpectedToken(token, messages_1.Messages.StrictFunction);
                    } else if (declaration.generator) {
                      this.tolerateUnexpectedToken(token, messages_1.Messages.GeneratorInLegacyContext);
                    }
                    body = declaration;
                  } else {
                    body = this.parseStatement();
                  }
                  delete this.context.labelSet[key];
                  statement = new Node2.LabeledStatement(id, body);
                } else {
                  this.consumeSemicolon();
                  statement = new Node2.ExpressionStatement(expr);
                }
                return this.finalize(node, statement);
              };
              Parser2.prototype.parseThrowStatement = function() {
                var node = this.createNode();
                this.expectKeyword("throw");
                if (this.hasLineTerminator) {
                  this.throwError(messages_1.Messages.NewlineAfterThrow);
                }
                var argument = this.parseExpression();
                this.consumeSemicolon();
                return this.finalize(node, new Node2.ThrowStatement(argument));
              };
              Parser2.prototype.parseCatchClause = function() {
                var node = this.createNode();
                this.expectKeyword("catch");
                this.expect("(");
                if (this.match(")")) {
                  this.throwUnexpectedToken(this.lookahead);
                }
                var params = [];
                var param = this.parsePattern(params);
                var paramMap = {};
                for (var i3 = 0; i3 < params.length; i3++) {
                  var key = "$" + params[i3].value;
                  if (Object.prototype.hasOwnProperty.call(paramMap, key)) {
                    this.tolerateError(messages_1.Messages.DuplicateBinding, params[i3].value);
                  }
                  paramMap[key] = true;
                }
                if (this.context.strict && param.type === syntax_1.Syntax.Identifier) {
                  if (this.scanner.isRestrictedWord(param.name)) {
                    this.tolerateError(messages_1.Messages.StrictCatchVariable);
                  }
                }
                this.expect(")");
                var body = this.parseBlock();
                return this.finalize(node, new Node2.CatchClause(param, body));
              };
              Parser2.prototype.parseFinallyClause = function() {
                this.expectKeyword("finally");
                return this.parseBlock();
              };
              Parser2.prototype.parseTryStatement = function() {
                var node = this.createNode();
                this.expectKeyword("try");
                var block = this.parseBlock();
                var handler = this.matchKeyword("catch") ? this.parseCatchClause() : null;
                var finalizer = this.matchKeyword("finally") ? this.parseFinallyClause() : null;
                if (!handler && !finalizer) {
                  this.throwError(messages_1.Messages.NoCatchOrFinally);
                }
                return this.finalize(node, new Node2.TryStatement(block, handler, finalizer));
              };
              Parser2.prototype.parseDebuggerStatement = function() {
                var node = this.createNode();
                this.expectKeyword("debugger");
                this.consumeSemicolon();
                return this.finalize(node, new Node2.DebuggerStatement());
              };
              Parser2.prototype.parseStatement = function() {
                var statement;
                switch (this.lookahead.type) {
                  case 1:
                  case 5:
                  case 6:
                  case 8:
                  case 10:
                  case 9:
                    statement = this.parseExpressionStatement();
                    break;
                  case 7:
                    var value = this.lookahead.value;
                    if (value === "{") {
                      statement = this.parseBlock();
                    } else if (value === "(") {
                      statement = this.parseExpressionStatement();
                    } else if (value === ";") {
                      statement = this.parseEmptyStatement();
                    } else {
                      statement = this.parseExpressionStatement();
                    }
                    break;
                  case 3:
                    statement = this.matchAsyncFunction() ? this.parseFunctionDeclaration() : this.parseLabelledStatement();
                    break;
                  case 4:
                    switch (this.lookahead.value) {
                      case "break":
                        statement = this.parseBreakStatement();
                        break;
                      case "continue":
                        statement = this.parseContinueStatement();
                        break;
                      case "debugger":
                        statement = this.parseDebuggerStatement();
                        break;
                      case "do":
                        statement = this.parseDoWhileStatement();
                        break;
                      case "for":
                        statement = this.parseForStatement();
                        break;
                      case "function":
                        statement = this.parseFunctionDeclaration();
                        break;
                      case "if":
                        statement = this.parseIfStatement();
                        break;
                      case "return":
                        statement = this.parseReturnStatement();
                        break;
                      case "switch":
                        statement = this.parseSwitchStatement();
                        break;
                      case "throw":
                        statement = this.parseThrowStatement();
                        break;
                      case "try":
                        statement = this.parseTryStatement();
                        break;
                      case "var":
                        statement = this.parseVariableStatement();
                        break;
                      case "while":
                        statement = this.parseWhileStatement();
                        break;
                      case "with":
                        statement = this.parseWithStatement();
                        break;
                      default:
                        statement = this.parseExpressionStatement();
                        break;
                    }
                    break;
                  default:
                    statement = this.throwUnexpectedToken(this.lookahead);
                }
                return statement;
              };
              Parser2.prototype.parseFunctionSourceElements = function() {
                var node = this.createNode();
                this.expect("{");
                var body = this.parseDirectivePrologues();
                var previousLabelSet = this.context.labelSet;
                var previousInIteration = this.context.inIteration;
                var previousInSwitch = this.context.inSwitch;
                var previousInFunctionBody = this.context.inFunctionBody;
                this.context.labelSet = {};
                this.context.inIteration = false;
                this.context.inSwitch = false;
                this.context.inFunctionBody = true;
                while (this.lookahead.type !== 2) {
                  if (this.match("}")) {
                    break;
                  }
                  body.push(this.parseStatementListItem());
                }
                this.expect("}");
                this.context.labelSet = previousLabelSet;
                this.context.inIteration = previousInIteration;
                this.context.inSwitch = previousInSwitch;
                this.context.inFunctionBody = previousInFunctionBody;
                return this.finalize(node, new Node2.BlockStatement(body));
              };
              Parser2.prototype.validateParam = function(options, param, name) {
                var key = "$" + name;
                if (this.context.strict) {
                  if (this.scanner.isRestrictedWord(name)) {
                    options.stricted = param;
                    options.message = messages_1.Messages.StrictParamName;
                  }
                  if (Object.prototype.hasOwnProperty.call(options.paramSet, key)) {
                    options.stricted = param;
                    options.message = messages_1.Messages.StrictParamDupe;
                  }
                } else if (!options.firstRestricted) {
                  if (this.scanner.isRestrictedWord(name)) {
                    options.firstRestricted = param;
                    options.message = messages_1.Messages.StrictParamName;
                  } else if (this.scanner.isStrictModeReservedWord(name)) {
                    options.firstRestricted = param;
                    options.message = messages_1.Messages.StrictReservedWord;
                  } else if (Object.prototype.hasOwnProperty.call(options.paramSet, key)) {
                    options.stricted = param;
                    options.message = messages_1.Messages.StrictParamDupe;
                  }
                }
                if (typeof Object.defineProperty === "function") {
                  Object.defineProperty(options.paramSet, key, { value: true, enumerable: true, writable: true, configurable: true });
                } else {
                  options.paramSet[key] = true;
                }
              };
              Parser2.prototype.parseRestElement = function(params) {
                var node = this.createNode();
                this.expect("...");
                var arg = this.parsePattern(params);
                if (this.match("=")) {
                  this.throwError(messages_1.Messages.DefaultRestParameter);
                }
                if (!this.match(")")) {
                  this.throwError(messages_1.Messages.ParameterAfterRestParameter);
                }
                return this.finalize(node, new Node2.RestElement(arg));
              };
              Parser2.prototype.parseFormalParameter = function(options) {
                var params = [];
                var param = this.match("...") ? this.parseRestElement(params) : this.parsePatternWithDefault(params);
                for (var i3 = 0; i3 < params.length; i3++) {
                  this.validateParam(options, params[i3], params[i3].value);
                }
                options.simple = options.simple && param instanceof Node2.Identifier;
                options.params.push(param);
              };
              Parser2.prototype.parseFormalParameters = function(firstRestricted) {
                var options;
                options = {
                  simple: true,
                  params: [],
                  firstRestricted
                };
                this.expect("(");
                if (!this.match(")")) {
                  options.paramSet = {};
                  while (this.lookahead.type !== 2) {
                    this.parseFormalParameter(options);
                    if (this.match(")")) {
                      break;
                    }
                    this.expect(",");
                    if (this.match(")")) {
                      break;
                    }
                  }
                }
                this.expect(")");
                return {
                  simple: options.simple,
                  params: options.params,
                  stricted: options.stricted,
                  firstRestricted: options.firstRestricted,
                  message: options.message
                };
              };
              Parser2.prototype.matchAsyncFunction = function() {
                var match4 = this.matchContextualKeyword("async");
                if (match4) {
                  var state2 = this.scanner.saveState();
                  this.scanner.scanComments();
                  var next = this.scanner.lex();
                  this.scanner.restoreState(state2);
                  match4 = state2.lineNumber === next.lineNumber && next.type === 4 && next.value === "function";
                }
                return match4;
              };
              Parser2.prototype.parseFunctionDeclaration = function(identifierIsOptional) {
                var node = this.createNode();
                var isAsync = this.matchContextualKeyword("async");
                if (isAsync) {
                  this.nextToken();
                }
                this.expectKeyword("function");
                var isGenerator = isAsync ? false : this.match("*");
                if (isGenerator) {
                  this.nextToken();
                }
                var message2;
                var id = null;
                var firstRestricted = null;
                if (!identifierIsOptional || !this.match("(")) {
                  var token = this.lookahead;
                  id = this.parseVariableIdentifier();
                  if (this.context.strict) {
                    if (this.scanner.isRestrictedWord(token.value)) {
                      this.tolerateUnexpectedToken(token, messages_1.Messages.StrictFunctionName);
                    }
                  } else {
                    if (this.scanner.isRestrictedWord(token.value)) {
                      firstRestricted = token;
                      message2 = messages_1.Messages.StrictFunctionName;
                    } else if (this.scanner.isStrictModeReservedWord(token.value)) {
                      firstRestricted = token;
                      message2 = messages_1.Messages.StrictReservedWord;
                    }
                  }
                }
                var previousAllowAwait = this.context.await;
                var previousAllowYield = this.context.allowYield;
                this.context.await = isAsync;
                this.context.allowYield = !isGenerator;
                var formalParameters = this.parseFormalParameters(firstRestricted);
                var params = formalParameters.params;
                var stricted = formalParameters.stricted;
                firstRestricted = formalParameters.firstRestricted;
                if (formalParameters.message) {
                  message2 = formalParameters.message;
                }
                var previousStrict = this.context.strict;
                var previousAllowStrictDirective = this.context.allowStrictDirective;
                this.context.allowStrictDirective = formalParameters.simple;
                var body = this.parseFunctionSourceElements();
                if (this.context.strict && firstRestricted) {
                  this.throwUnexpectedToken(firstRestricted, message2);
                }
                if (this.context.strict && stricted) {
                  this.tolerateUnexpectedToken(stricted, message2);
                }
                this.context.strict = previousStrict;
                this.context.allowStrictDirective = previousAllowStrictDirective;
                this.context.await = previousAllowAwait;
                this.context.allowYield = previousAllowYield;
                return isAsync ? this.finalize(node, new Node2.AsyncFunctionDeclaration(id, params, body)) : this.finalize(node, new Node2.FunctionDeclaration(id, params, body, isGenerator));
              };
              Parser2.prototype.parseFunctionExpression = function() {
                var node = this.createNode();
                var isAsync = this.matchContextualKeyword("async");
                if (isAsync) {
                  this.nextToken();
                }
                this.expectKeyword("function");
                var isGenerator = isAsync ? false : this.match("*");
                if (isGenerator) {
                  this.nextToken();
                }
                var message2;
                var id = null;
                var firstRestricted;
                var previousAllowAwait = this.context.await;
                var previousAllowYield = this.context.allowYield;
                this.context.await = isAsync;
                this.context.allowYield = !isGenerator;
                if (!this.match("(")) {
                  var token = this.lookahead;
                  id = !this.context.strict && !isGenerator && this.matchKeyword("yield") ? this.parseIdentifierName() : this.parseVariableIdentifier();
                  if (this.context.strict) {
                    if (this.scanner.isRestrictedWord(token.value)) {
                      this.tolerateUnexpectedToken(token, messages_1.Messages.StrictFunctionName);
                    }
                  } else {
                    if (this.scanner.isRestrictedWord(token.value)) {
                      firstRestricted = token;
                      message2 = messages_1.Messages.StrictFunctionName;
                    } else if (this.scanner.isStrictModeReservedWord(token.value)) {
                      firstRestricted = token;
                      message2 = messages_1.Messages.StrictReservedWord;
                    }
                  }
                }
                var formalParameters = this.parseFormalParameters(firstRestricted);
                var params = formalParameters.params;
                var stricted = formalParameters.stricted;
                firstRestricted = formalParameters.firstRestricted;
                if (formalParameters.message) {
                  message2 = formalParameters.message;
                }
                var previousStrict = this.context.strict;
                var previousAllowStrictDirective = this.context.allowStrictDirective;
                this.context.allowStrictDirective = formalParameters.simple;
                var body = this.parseFunctionSourceElements();
                if (this.context.strict && firstRestricted) {
                  this.throwUnexpectedToken(firstRestricted, message2);
                }
                if (this.context.strict && stricted) {
                  this.tolerateUnexpectedToken(stricted, message2);
                }
                this.context.strict = previousStrict;
                this.context.allowStrictDirective = previousAllowStrictDirective;
                this.context.await = previousAllowAwait;
                this.context.allowYield = previousAllowYield;
                return isAsync ? this.finalize(node, new Node2.AsyncFunctionExpression(id, params, body)) : this.finalize(node, new Node2.FunctionExpression(id, params, body, isGenerator));
              };
              Parser2.prototype.parseDirective = function() {
                var token = this.lookahead;
                var node = this.createNode();
                var expr = this.parseExpression();
                var directive = expr.type === syntax_1.Syntax.Literal ? this.getTokenRaw(token).slice(1, -1) : null;
                this.consumeSemicolon();
                return this.finalize(node, directive ? new Node2.Directive(expr, directive) : new Node2.ExpressionStatement(expr));
              };
              Parser2.prototype.parseDirectivePrologues = function() {
                var firstRestricted = null;
                var body = [];
                while (true) {
                  var token = this.lookahead;
                  if (token.type !== 8) {
                    break;
                  }
                  var statement = this.parseDirective();
                  body.push(statement);
                  var directive = statement.directive;
                  if (typeof directive !== "string") {
                    break;
                  }
                  if (directive === "use strict") {
                    this.context.strict = true;
                    if (firstRestricted) {
                      this.tolerateUnexpectedToken(firstRestricted, messages_1.Messages.StrictOctalLiteral);
                    }
                    if (!this.context.allowStrictDirective) {
                      this.tolerateUnexpectedToken(token, messages_1.Messages.IllegalLanguageModeDirective);
                    }
                  } else {
                    if (!firstRestricted && token.octal) {
                      firstRestricted = token;
                    }
                  }
                }
                return body;
              };
              Parser2.prototype.qualifiedPropertyName = function(token) {
                switch (token.type) {
                  case 3:
                  case 8:
                  case 1:
                  case 5:
                  case 6:
                  case 4:
                    return true;
                  case 7:
                    return token.value === "[";
                  default:
                    break;
                }
                return false;
              };
              Parser2.prototype.parseGetterMethod = function() {
                var node = this.createNode();
                var isGenerator = false;
                var previousAllowYield = this.context.allowYield;
                this.context.allowYield = !isGenerator;
                var formalParameters = this.parseFormalParameters();
                if (formalParameters.params.length > 0) {
                  this.tolerateError(messages_1.Messages.BadGetterArity);
                }
                var method = this.parsePropertyMethod(formalParameters);
                this.context.allowYield = previousAllowYield;
                return this.finalize(node, new Node2.FunctionExpression(null, formalParameters.params, method, isGenerator));
              };
              Parser2.prototype.parseSetterMethod = function() {
                var node = this.createNode();
                var isGenerator = false;
                var previousAllowYield = this.context.allowYield;
                this.context.allowYield = !isGenerator;
                var formalParameters = this.parseFormalParameters();
                if (formalParameters.params.length !== 1) {
                  this.tolerateError(messages_1.Messages.BadSetterArity);
                } else if (formalParameters.params[0] instanceof Node2.RestElement) {
                  this.tolerateError(messages_1.Messages.BadSetterRestParameter);
                }
                var method = this.parsePropertyMethod(formalParameters);
                this.context.allowYield = previousAllowYield;
                return this.finalize(node, new Node2.FunctionExpression(null, formalParameters.params, method, isGenerator));
              };
              Parser2.prototype.parseGeneratorMethod = function() {
                var node = this.createNode();
                var isGenerator = true;
                var previousAllowYield = this.context.allowYield;
                this.context.allowYield = true;
                var params = this.parseFormalParameters();
                this.context.allowYield = false;
                var method = this.parsePropertyMethod(params);
                this.context.allowYield = previousAllowYield;
                return this.finalize(node, new Node2.FunctionExpression(null, params.params, method, isGenerator));
              };
              Parser2.prototype.isStartOfExpression = function() {
                var start = true;
                var value = this.lookahead.value;
                switch (this.lookahead.type) {
                  case 7:
                    start = value === "[" || value === "(" || value === "{" || value === "+" || value === "-" || value === "!" || value === "~" || value === "++" || value === "--" || value === "/" || value === "/=";
                    break;
                  case 4:
                    start = value === "class" || value === "delete" || value === "function" || value === "let" || value === "new" || value === "super" || value === "this" || value === "typeof" || value === "void" || value === "yield";
                    break;
                  default:
                    break;
                }
                return start;
              };
              Parser2.prototype.parseYieldExpression = function() {
                var node = this.createNode();
                this.expectKeyword("yield");
                var argument = null;
                var delegate = false;
                if (!this.hasLineTerminator) {
                  var previousAllowYield = this.context.allowYield;
                  this.context.allowYield = false;
                  delegate = this.match("*");
                  if (delegate) {
                    this.nextToken();
                    argument = this.parseAssignmentExpression();
                  } else if (this.isStartOfExpression()) {
                    argument = this.parseAssignmentExpression();
                  }
                  this.context.allowYield = previousAllowYield;
                }
                return this.finalize(node, new Node2.YieldExpression(argument, delegate));
              };
              Parser2.prototype.parseClassElement = function(hasConstructor) {
                var token = this.lookahead;
                var node = this.createNode();
                var kind = "";
                var key = null;
                var value = null;
                var computed = false;
                var method = false;
                var isStatic = false;
                var isAsync = false;
                if (this.match("*")) {
                  this.nextToken();
                } else {
                  computed = this.match("[");
                  key = this.parseObjectPropertyKey();
                  var id = key;
                  if (id.name === "static" && (this.qualifiedPropertyName(this.lookahead) || this.match("*"))) {
                    token = this.lookahead;
                    isStatic = true;
                    computed = this.match("[");
                    if (this.match("*")) {
                      this.nextToken();
                    } else {
                      key = this.parseObjectPropertyKey();
                    }
                  }
                  if (token.type === 3 && !this.hasLineTerminator && token.value === "async") {
                    var punctuator = this.lookahead.value;
                    if (punctuator !== ":" && punctuator !== "(" && punctuator !== "*") {
                      isAsync = true;
                      token = this.lookahead;
                      key = this.parseObjectPropertyKey();
                      if (token.type === 3 && token.value === "constructor") {
                        this.tolerateUnexpectedToken(token, messages_1.Messages.ConstructorIsAsync);
                      }
                    }
                  }
                }
                var lookaheadPropertyKey = this.qualifiedPropertyName(this.lookahead);
                if (token.type === 3) {
                  if (token.value === "get" && lookaheadPropertyKey) {
                    kind = "get";
                    computed = this.match("[");
                    key = this.parseObjectPropertyKey();
                    this.context.allowYield = false;
                    value = this.parseGetterMethod();
                  } else if (token.value === "set" && lookaheadPropertyKey) {
                    kind = "set";
                    computed = this.match("[");
                    key = this.parseObjectPropertyKey();
                    value = this.parseSetterMethod();
                  }
                } else if (token.type === 7 && token.value === "*" && lookaheadPropertyKey) {
                  kind = "init";
                  computed = this.match("[");
                  key = this.parseObjectPropertyKey();
                  value = this.parseGeneratorMethod();
                  method = true;
                }
                if (!kind && key && this.match("(")) {
                  kind = "init";
                  value = isAsync ? this.parsePropertyMethodAsyncFunction() : this.parsePropertyMethodFunction();
                  method = true;
                }
                if (!kind) {
                  this.throwUnexpectedToken(this.lookahead);
                }
                if (kind === "init") {
                  kind = "method";
                }
                if (!computed) {
                  if (isStatic && this.isPropertyKey(key, "prototype")) {
                    this.throwUnexpectedToken(token, messages_1.Messages.StaticPrototype);
                  }
                  if (!isStatic && this.isPropertyKey(key, "constructor")) {
                    if (kind !== "method" || !method || value && value.generator) {
                      this.throwUnexpectedToken(token, messages_1.Messages.ConstructorSpecialMethod);
                    }
                    if (hasConstructor.value) {
                      this.throwUnexpectedToken(token, messages_1.Messages.DuplicateConstructor);
                    } else {
                      hasConstructor.value = true;
                    }
                    kind = "constructor";
                  }
                }
                return this.finalize(node, new Node2.MethodDefinition(key, computed, value, kind, isStatic));
              };
              Parser2.prototype.parseClassElementList = function() {
                var body = [];
                var hasConstructor = { value: false };
                this.expect("{");
                while (!this.match("}")) {
                  if (this.match(";")) {
                    this.nextToken();
                  } else {
                    body.push(this.parseClassElement(hasConstructor));
                  }
                }
                this.expect("}");
                return body;
              };
              Parser2.prototype.parseClassBody = function() {
                var node = this.createNode();
                var elementList = this.parseClassElementList();
                return this.finalize(node, new Node2.ClassBody(elementList));
              };
              Parser2.prototype.parseClassDeclaration = function(identifierIsOptional) {
                var node = this.createNode();
                var previousStrict = this.context.strict;
                this.context.strict = true;
                this.expectKeyword("class");
                var id = identifierIsOptional && this.lookahead.type !== 3 ? null : this.parseVariableIdentifier();
                var superClass = null;
                if (this.matchKeyword("extends")) {
                  this.nextToken();
                  superClass = this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall);
                }
                var classBody = this.parseClassBody();
                this.context.strict = previousStrict;
                return this.finalize(node, new Node2.ClassDeclaration(id, superClass, classBody));
              };
              Parser2.prototype.parseClassExpression = function() {
                var node = this.createNode();
                var previousStrict = this.context.strict;
                this.context.strict = true;
                this.expectKeyword("class");
                var id = this.lookahead.type === 3 ? this.parseVariableIdentifier() : null;
                var superClass = null;
                if (this.matchKeyword("extends")) {
                  this.nextToken();
                  superClass = this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall);
                }
                var classBody = this.parseClassBody();
                this.context.strict = previousStrict;
                return this.finalize(node, new Node2.ClassExpression(id, superClass, classBody));
              };
              Parser2.prototype.parseModule = function() {
                this.context.strict = true;
                this.context.isModule = true;
                this.scanner.isModule = true;
                var node = this.createNode();
                var body = this.parseDirectivePrologues();
                while (this.lookahead.type !== 2) {
                  body.push(this.parseStatementListItem());
                }
                return this.finalize(node, new Node2.Module(body));
              };
              Parser2.prototype.parseScript = function() {
                var node = this.createNode();
                var body = this.parseDirectivePrologues();
                while (this.lookahead.type !== 2) {
                  body.push(this.parseStatementListItem());
                }
                return this.finalize(node, new Node2.Script(body));
              };
              Parser2.prototype.parseModuleSpecifier = function() {
                var node = this.createNode();
                if (this.lookahead.type !== 8) {
                  this.throwError(messages_1.Messages.InvalidModuleSpecifier);
                }
                var token = this.nextToken();
                var raw = this.getTokenRaw(token);
                return this.finalize(node, new Node2.Literal(token.value, raw));
              };
              Parser2.prototype.parseImportSpecifier = function() {
                var node = this.createNode();
                var imported;
                var local;
                if (this.lookahead.type === 3) {
                  imported = this.parseVariableIdentifier();
                  local = imported;
                  if (this.matchContextualKeyword("as")) {
                    this.nextToken();
                    local = this.parseVariableIdentifier();
                  }
                } else {
                  imported = this.parseIdentifierName();
                  local = imported;
                  if (this.matchContextualKeyword("as")) {
                    this.nextToken();
                    local = this.parseVariableIdentifier();
                  } else {
                    this.throwUnexpectedToken(this.nextToken());
                  }
                }
                return this.finalize(node, new Node2.ImportSpecifier(local, imported));
              };
              Parser2.prototype.parseNamedImports = function() {
                this.expect("{");
                var specifiers = [];
                while (!this.match("}")) {
                  specifiers.push(this.parseImportSpecifier());
                  if (!this.match("}")) {
                    this.expect(",");
                  }
                }
                this.expect("}");
                return specifiers;
              };
              Parser2.prototype.parseImportDefaultSpecifier = function() {
                var node = this.createNode();
                var local = this.parseIdentifierName();
                return this.finalize(node, new Node2.ImportDefaultSpecifier(local));
              };
              Parser2.prototype.parseImportNamespaceSpecifier = function() {
                var node = this.createNode();
                this.expect("*");
                if (!this.matchContextualKeyword("as")) {
                  this.throwError(messages_1.Messages.NoAsAfterImportNamespace);
                }
                this.nextToken();
                var local = this.parseIdentifierName();
                return this.finalize(node, new Node2.ImportNamespaceSpecifier(local));
              };
              Parser2.prototype.parseImportDeclaration = function() {
                if (this.context.inFunctionBody) {
                  this.throwError(messages_1.Messages.IllegalImportDeclaration);
                }
                var node = this.createNode();
                this.expectKeyword("import");
                var src;
                var specifiers = [];
                if (this.lookahead.type === 8) {
                  src = this.parseModuleSpecifier();
                } else {
                  if (this.match("{")) {
                    specifiers = specifiers.concat(this.parseNamedImports());
                  } else if (this.match("*")) {
                    specifiers.push(this.parseImportNamespaceSpecifier());
                  } else if (this.isIdentifierName(this.lookahead) && !this.matchKeyword("default")) {
                    specifiers.push(this.parseImportDefaultSpecifier());
                    if (this.match(",")) {
                      this.nextToken();
                      if (this.match("*")) {
                        specifiers.push(this.parseImportNamespaceSpecifier());
                      } else if (this.match("{")) {
                        specifiers = specifiers.concat(this.parseNamedImports());
                      } else {
                        this.throwUnexpectedToken(this.lookahead);
                      }
                    }
                  } else {
                    this.throwUnexpectedToken(this.nextToken());
                  }
                  if (!this.matchContextualKeyword("from")) {
                    var message2 = this.lookahead.value ? messages_1.Messages.UnexpectedToken : messages_1.Messages.MissingFromClause;
                    this.throwError(message2, this.lookahead.value);
                  }
                  this.nextToken();
                  src = this.parseModuleSpecifier();
                }
                this.consumeSemicolon();
                return this.finalize(node, new Node2.ImportDeclaration(specifiers, src));
              };
              Parser2.prototype.parseExportSpecifier = function() {
                var node = this.createNode();
                var local = this.parseIdentifierName();
                var exported = local;
                if (this.matchContextualKeyword("as")) {
                  this.nextToken();
                  exported = this.parseIdentifierName();
                }
                return this.finalize(node, new Node2.ExportSpecifier(local, exported));
              };
              Parser2.prototype.parseExportDeclaration = function() {
                if (this.context.inFunctionBody) {
                  this.throwError(messages_1.Messages.IllegalExportDeclaration);
                }
                var node = this.createNode();
                this.expectKeyword("export");
                var exportDeclaration;
                if (this.matchKeyword("default")) {
                  this.nextToken();
                  if (this.matchKeyword("function")) {
                    var declaration = this.parseFunctionDeclaration(true);
                    exportDeclaration = this.finalize(node, new Node2.ExportDefaultDeclaration(declaration));
                  } else if (this.matchKeyword("class")) {
                    var declaration = this.parseClassDeclaration(true);
                    exportDeclaration = this.finalize(node, new Node2.ExportDefaultDeclaration(declaration));
                  } else if (this.matchContextualKeyword("async")) {
                    var declaration = this.matchAsyncFunction() ? this.parseFunctionDeclaration(true) : this.parseAssignmentExpression();
                    exportDeclaration = this.finalize(node, new Node2.ExportDefaultDeclaration(declaration));
                  } else {
                    if (this.matchContextualKeyword("from")) {
                      this.throwError(messages_1.Messages.UnexpectedToken, this.lookahead.value);
                    }
                    var declaration = this.match("{") ? this.parseObjectInitializer() : this.match("[") ? this.parseArrayInitializer() : this.parseAssignmentExpression();
                    this.consumeSemicolon();
                    exportDeclaration = this.finalize(node, new Node2.ExportDefaultDeclaration(declaration));
                  }
                } else if (this.match("*")) {
                  this.nextToken();
                  if (!this.matchContextualKeyword("from")) {
                    var message2 = this.lookahead.value ? messages_1.Messages.UnexpectedToken : messages_1.Messages.MissingFromClause;
                    this.throwError(message2, this.lookahead.value);
                  }
                  this.nextToken();
                  var src = this.parseModuleSpecifier();
                  this.consumeSemicolon();
                  exportDeclaration = this.finalize(node, new Node2.ExportAllDeclaration(src));
                } else if (this.lookahead.type === 4) {
                  var declaration = void 0;
                  switch (this.lookahead.value) {
                    case "let":
                    case "const":
                      declaration = this.parseLexicalDeclaration({ inFor: false });
                      break;
                    case "var":
                    case "class":
                    case "function":
                      declaration = this.parseStatementListItem();
                      break;
                    default:
                      this.throwUnexpectedToken(this.lookahead);
                  }
                  exportDeclaration = this.finalize(node, new Node2.ExportNamedDeclaration(declaration, [], null));
                } else if (this.matchAsyncFunction()) {
                  var declaration = this.parseFunctionDeclaration();
                  exportDeclaration = this.finalize(node, new Node2.ExportNamedDeclaration(declaration, [], null));
                } else {
                  var specifiers = [];
                  var source = null;
                  var isExportFromIdentifier = false;
                  this.expect("{");
                  while (!this.match("}")) {
                    isExportFromIdentifier = isExportFromIdentifier || this.matchKeyword("default");
                    specifiers.push(this.parseExportSpecifier());
                    if (!this.match("}")) {
                      this.expect(",");
                    }
                  }
                  this.expect("}");
                  if (this.matchContextualKeyword("from")) {
                    this.nextToken();
                    source = this.parseModuleSpecifier();
                    this.consumeSemicolon();
                  } else if (isExportFromIdentifier) {
                    var message2 = this.lookahead.value ? messages_1.Messages.UnexpectedToken : messages_1.Messages.MissingFromClause;
                    this.throwError(message2, this.lookahead.value);
                  } else {
                    this.consumeSemicolon();
                  }
                  exportDeclaration = this.finalize(node, new Node2.ExportNamedDeclaration(null, specifiers, source));
                }
                return exportDeclaration;
              };
              return Parser2;
            })();
            exports3.Parser = Parser;
          },
          /* 9 */
          /***/
          function(module3, exports3) {
            "use strict";
            Object.defineProperty(exports3, "__esModule", { value: true });
            function assert(condition, message2) {
              if (!condition) {
                throw new Error("ASSERT: " + message2);
              }
            }
            __name(assert, "assert");
            exports3.assert = assert;
          },
          /* 10 */
          /***/
          function(module3, exports3) {
            "use strict";
            Object.defineProperty(exports3, "__esModule", { value: true });
            var ErrorHandler = (function() {
              function ErrorHandler2() {
                this.errors = [];
                this.tolerant = false;
              }
              __name(ErrorHandler2, "ErrorHandler");
              ErrorHandler2.prototype.recordError = function(error5) {
                this.errors.push(error5);
              };
              ErrorHandler2.prototype.tolerate = function(error5) {
                if (this.tolerant) {
                  this.recordError(error5);
                } else {
                  throw error5;
                }
              };
              ErrorHandler2.prototype.constructError = function(msg, column) {
                var error5 = new Error(msg);
                try {
                  throw error5;
                } catch (base) {
                  if (Object.create && Object.defineProperty) {
                    error5 = Object.create(base);
                    Object.defineProperty(error5, "column", { value: column });
                  }
                }
                return error5;
              };
              ErrorHandler2.prototype.createError = function(index, line, col, description) {
                var msg = "Line " + line + ": " + description;
                var error5 = this.constructError(msg, col);
                error5.index = index;
                error5.lineNumber = line;
                error5.description = description;
                return error5;
              };
              ErrorHandler2.prototype.throwError = function(index, line, col, description) {
                throw this.createError(index, line, col, description);
              };
              ErrorHandler2.prototype.tolerateError = function(index, line, col, description) {
                var error5 = this.createError(index, line, col, description);
                if (this.tolerant) {
                  this.recordError(error5);
                } else {
                  throw error5;
                }
              };
              return ErrorHandler2;
            })();
            exports3.ErrorHandler = ErrorHandler;
          },
          /* 11 */
          /***/
          function(module3, exports3) {
            "use strict";
            Object.defineProperty(exports3, "__esModule", { value: true });
            exports3.Messages = {
              BadGetterArity: "Getter must not have any formal parameters",
              BadSetterArity: "Setter must have exactly one formal parameter",
              BadSetterRestParameter: "Setter function argument must not be a rest parameter",
              ConstructorIsAsync: "Class constructor may not be an async method",
              ConstructorSpecialMethod: "Class constructor may not be an accessor",
              DeclarationMissingInitializer: "Missing initializer in %0 declaration",
              DefaultRestParameter: "Unexpected token =",
              DuplicateBinding: "Duplicate binding %0",
              DuplicateConstructor: "A class may only have one constructor",
              DuplicateProtoProperty: "Duplicate __proto__ fields are not allowed in object literals",
              ForInOfLoopInitializer: "%0 loop variable declaration may not have an initializer",
              GeneratorInLegacyContext: "Generator declarations are not allowed in legacy contexts",
              IllegalBreak: "Illegal break statement",
              IllegalContinue: "Illegal continue statement",
              IllegalExportDeclaration: "Unexpected token",
              IllegalImportDeclaration: "Unexpected token",
              IllegalLanguageModeDirective: "Illegal 'use strict' directive in function with non-simple parameter list",
              IllegalReturn: "Illegal return statement",
              InvalidEscapedReservedWord: "Keyword must not contain escaped characters",
              InvalidHexEscapeSequence: "Invalid hexadecimal escape sequence",
              InvalidLHSInAssignment: "Invalid left-hand side in assignment",
              InvalidLHSInForIn: "Invalid left-hand side in for-in",
              InvalidLHSInForLoop: "Invalid left-hand side in for-loop",
              InvalidModuleSpecifier: "Unexpected token",
              InvalidRegExp: "Invalid regular expression",
              LetInLexicalBinding: "let is disallowed as a lexically bound name",
              MissingFromClause: "Unexpected token",
              MultipleDefaultsInSwitch: "More than one default clause in switch statement",
              NewlineAfterThrow: "Illegal newline after throw",
              NoAsAfterImportNamespace: "Unexpected token",
              NoCatchOrFinally: "Missing catch or finally after try",
              ParameterAfterRestParameter: "Rest parameter must be last formal parameter",
              Redeclaration: "%0 '%1' has already been declared",
              StaticPrototype: "Classes may not have static property named prototype",
              StrictCatchVariable: "Catch variable may not be eval or arguments in strict mode",
              StrictDelete: "Delete of an unqualified identifier in strict mode.",
              StrictFunction: "In strict mode code, functions can only be declared at top level or inside a block",
              StrictFunctionName: "Function name may not be eval or arguments in strict mode",
              StrictLHSAssignment: "Assignment to eval or arguments is not allowed in strict mode",
              StrictLHSPostfix: "Postfix increment/decrement may not have eval or arguments operand in strict mode",
              StrictLHSPrefix: "Prefix increment/decrement may not have eval or arguments operand in strict mode",
              StrictModeWith: "Strict mode code may not include a with statement",
              StrictOctalLiteral: "Octal literals are not allowed in strict mode.",
              StrictParamDupe: "Strict mode function may not have duplicate parameter names",
              StrictParamName: "Parameter name eval or arguments is not allowed in strict mode",
              StrictReservedWord: "Use of future reserved word in strict mode",
              StrictVarName: "Variable name may not be eval or arguments in strict mode",
              TemplateOctalLiteral: "Octal literals are not allowed in template strings.",
              UnexpectedEOS: "Unexpected end of input",
              UnexpectedIdentifier: "Unexpected identifier",
              UnexpectedNumber: "Unexpected number",
              UnexpectedReserved: "Unexpected reserved word",
              UnexpectedString: "Unexpected string",
              UnexpectedTemplate: "Unexpected quasi %0",
              UnexpectedToken: "Unexpected token %0",
              UnexpectedTokenIllegal: "Unexpected token ILLEGAL",
              UnknownLabel: "Undefined label '%0'",
              UnterminatedRegExp: "Invalid regular expression: missing /"
            };
          },
          /* 12 */
          /***/
          function(module3, exports3, __webpack_require__) {
            "use strict";
            Object.defineProperty(exports3, "__esModule", { value: true });
            var assert_1 = __webpack_require__(9);
            var character_1 = __webpack_require__(4);
            var messages_1 = __webpack_require__(11);
            function hexValue(ch) {
              return "0123456789abcdef".indexOf(ch.toLowerCase());
            }
            __name(hexValue, "hexValue");
            function octalValue(ch) {
              return "01234567".indexOf(ch);
            }
            __name(octalValue, "octalValue");
            var Scanner = (function() {
              function Scanner2(code, handler) {
                this.source = code;
                this.errorHandler = handler;
                this.trackComment = false;
                this.isModule = false;
                this.length = code.length;
                this.index = 0;
                this.lineNumber = code.length > 0 ? 1 : 0;
                this.lineStart = 0;
                this.curlyStack = [];
              }
              __name(Scanner2, "Scanner");
              Scanner2.prototype.saveState = function() {
                return {
                  index: this.index,
                  lineNumber: this.lineNumber,
                  lineStart: this.lineStart
                };
              };
              Scanner2.prototype.restoreState = function(state2) {
                this.index = state2.index;
                this.lineNumber = state2.lineNumber;
                this.lineStart = state2.lineStart;
              };
              Scanner2.prototype.eof = function() {
                return this.index >= this.length;
              };
              Scanner2.prototype.throwUnexpectedToken = function(message2) {
                if (message2 === void 0) {
                  message2 = messages_1.Messages.UnexpectedTokenIllegal;
                }
                return this.errorHandler.throwError(this.index, this.lineNumber, this.index - this.lineStart + 1, message2);
              };
              Scanner2.prototype.tolerateUnexpectedToken = function(message2) {
                if (message2 === void 0) {
                  message2 = messages_1.Messages.UnexpectedTokenIllegal;
                }
                this.errorHandler.tolerateError(this.index, this.lineNumber, this.index - this.lineStart + 1, message2);
              };
              Scanner2.prototype.skipSingleLineComment = function(offset) {
                var comments = [];
                var start, loc;
                if (this.trackComment) {
                  comments = [];
                  start = this.index - offset;
                  loc = {
                    start: {
                      line: this.lineNumber,
                      column: this.index - this.lineStart - offset
                    },
                    end: {}
                  };
                }
                while (!this.eof()) {
                  var ch = this.source.charCodeAt(this.index);
                  ++this.index;
                  if (character_1.Character.isLineTerminator(ch)) {
                    if (this.trackComment) {
                      loc.end = {
                        line: this.lineNumber,
                        column: this.index - this.lineStart - 1
                      };
                      var entry = {
                        multiLine: false,
                        slice: [start + offset, this.index - 1],
                        range: [start, this.index - 1],
                        loc
                      };
                      comments.push(entry);
                    }
                    if (ch === 13 && this.source.charCodeAt(this.index) === 10) {
                      ++this.index;
                    }
                    ++this.lineNumber;
                    this.lineStart = this.index;
                    return comments;
                  }
                }
                if (this.trackComment) {
                  loc.end = {
                    line: this.lineNumber,
                    column: this.index - this.lineStart
                  };
                  var entry = {
                    multiLine: false,
                    slice: [start + offset, this.index],
                    range: [start, this.index],
                    loc
                  };
                  comments.push(entry);
                }
                return comments;
              };
              Scanner2.prototype.skipMultiLineComment = function() {
                var comments = [];
                var start, loc;
                if (this.trackComment) {
                  comments = [];
                  start = this.index - 2;
                  loc = {
                    start: {
                      line: this.lineNumber,
                      column: this.index - this.lineStart - 2
                    },
                    end: {}
                  };
                }
                while (!this.eof()) {
                  var ch = this.source.charCodeAt(this.index);
                  if (character_1.Character.isLineTerminator(ch)) {
                    if (ch === 13 && this.source.charCodeAt(this.index + 1) === 10) {
                      ++this.index;
                    }
                    ++this.lineNumber;
                    ++this.index;
                    this.lineStart = this.index;
                  } else if (ch === 42) {
                    if (this.source.charCodeAt(this.index + 1) === 47) {
                      this.index += 2;
                      if (this.trackComment) {
                        loc.end = {
                          line: this.lineNumber,
                          column: this.index - this.lineStart
                        };
                        var entry = {
                          multiLine: true,
                          slice: [start + 2, this.index - 2],
                          range: [start, this.index],
                          loc
                        };
                        comments.push(entry);
                      }
                      return comments;
                    }
                    ++this.index;
                  } else {
                    ++this.index;
                  }
                }
                if (this.trackComment) {
                  loc.end = {
                    line: this.lineNumber,
                    column: this.index - this.lineStart
                  };
                  var entry = {
                    multiLine: true,
                    slice: [start + 2, this.index],
                    range: [start, this.index],
                    loc
                  };
                  comments.push(entry);
                }
                this.tolerateUnexpectedToken();
                return comments;
              };
              Scanner2.prototype.scanComments = function() {
                var comments;
                if (this.trackComment) {
                  comments = [];
                }
                var start = this.index === 0;
                while (!this.eof()) {
                  var ch = this.source.charCodeAt(this.index);
                  if (character_1.Character.isWhiteSpace(ch)) {
                    ++this.index;
                  } else if (character_1.Character.isLineTerminator(ch)) {
                    ++this.index;
                    if (ch === 13 && this.source.charCodeAt(this.index) === 10) {
                      ++this.index;
                    }
                    ++this.lineNumber;
                    this.lineStart = this.index;
                    start = true;
                  } else if (ch === 47) {
                    ch = this.source.charCodeAt(this.index + 1);
                    if (ch === 47) {
                      this.index += 2;
                      var comment = this.skipSingleLineComment(2);
                      if (this.trackComment) {
                        comments = comments.concat(comment);
                      }
                      start = true;
                    } else if (ch === 42) {
                      this.index += 2;
                      var comment = this.skipMultiLineComment();
                      if (this.trackComment) {
                        comments = comments.concat(comment);
                      }
                    } else {
                      break;
                    }
                  } else if (start && ch === 45) {
                    if (this.source.charCodeAt(this.index + 1) === 45 && this.source.charCodeAt(this.index + 2) === 62) {
                      this.index += 3;
                      var comment = this.skipSingleLineComment(3);
                      if (this.trackComment) {
                        comments = comments.concat(comment);
                      }
                    } else {
                      break;
                    }
                  } else if (ch === 60 && !this.isModule) {
                    if (this.source.slice(this.index + 1, this.index + 4) === "!--") {
                      this.index += 4;
                      var comment = this.skipSingleLineComment(4);
                      if (this.trackComment) {
                        comments = comments.concat(comment);
                      }
                    } else {
                      break;
                    }
                  } else {
                    break;
                  }
                }
                return comments;
              };
              Scanner2.prototype.isFutureReservedWord = function(id) {
                switch (id) {
                  case "enum":
                  case "export":
                  case "import":
                  case "super":
                    return true;
                  default:
                    return false;
                }
              };
              Scanner2.prototype.isStrictModeReservedWord = function(id) {
                switch (id) {
                  case "implements":
                  case "interface":
                  case "package":
                  case "private":
                  case "protected":
                  case "public":
                  case "static":
                  case "yield":
                  case "let":
                    return true;
                  default:
                    return false;
                }
              };
              Scanner2.prototype.isRestrictedWord = function(id) {
                return id === "eval" || id === "arguments";
              };
              Scanner2.prototype.isKeyword = function(id) {
                switch (id.length) {
                  case 2:
                    return id === "if" || id === "in" || id === "do";
                  case 3:
                    return id === "var" || id === "for" || id === "new" || id === "try" || id === "let";
                  case 4:
                    return id === "this" || id === "else" || id === "case" || id === "void" || id === "with" || id === "enum";
                  case 5:
                    return id === "while" || id === "break" || id === "catch" || id === "throw" || id === "const" || id === "yield" || id === "class" || id === "super";
                  case 6:
                    return id === "return" || id === "typeof" || id === "delete" || id === "switch" || id === "export" || id === "import";
                  case 7:
                    return id === "default" || id === "finally" || id === "extends";
                  case 8:
                    return id === "function" || id === "continue" || id === "debugger";
                  case 10:
                    return id === "instanceof";
                  default:
                    return false;
                }
              };
              Scanner2.prototype.codePointAt = function(i3) {
                var cp = this.source.charCodeAt(i3);
                if (cp >= 55296 && cp <= 56319) {
                  var second = this.source.charCodeAt(i3 + 1);
                  if (second >= 56320 && second <= 57343) {
                    var first = cp;
                    cp = (first - 55296) * 1024 + second - 56320 + 65536;
                  }
                }
                return cp;
              };
              Scanner2.prototype.scanHexEscape = function(prefix2) {
                var len = prefix2 === "u" ? 4 : 2;
                var code = 0;
                for (var i3 = 0; i3 < len; ++i3) {
                  if (!this.eof() && character_1.Character.isHexDigit(this.source.charCodeAt(this.index))) {
                    code = code * 16 + hexValue(this.source[this.index++]);
                  } else {
                    return null;
                  }
                }
                return String.fromCharCode(code);
              };
              Scanner2.prototype.scanUnicodeCodePointEscape = function() {
                var ch = this.source[this.index];
                var code = 0;
                if (ch === "}") {
                  this.throwUnexpectedToken();
                }
                while (!this.eof()) {
                  ch = this.source[this.index++];
                  if (!character_1.Character.isHexDigit(ch.charCodeAt(0))) {
                    break;
                  }
                  code = code * 16 + hexValue(ch);
                }
                if (code > 1114111 || ch !== "}") {
                  this.throwUnexpectedToken();
                }
                return character_1.Character.fromCodePoint(code);
              };
              Scanner2.prototype.getIdentifier = function() {
                var start = this.index++;
                while (!this.eof()) {
                  var ch = this.source.charCodeAt(this.index);
                  if (ch === 92) {
                    this.index = start;
                    return this.getComplexIdentifier();
                  } else if (ch >= 55296 && ch < 57343) {
                    this.index = start;
                    return this.getComplexIdentifier();
                  }
                  if (character_1.Character.isIdentifierPart(ch)) {
                    ++this.index;
                  } else {
                    break;
                  }
                }
                return this.source.slice(start, this.index);
              };
              Scanner2.prototype.getComplexIdentifier = function() {
                var cp = this.codePointAt(this.index);
                var id = character_1.Character.fromCodePoint(cp);
                this.index += id.length;
                var ch;
                if (cp === 92) {
                  if (this.source.charCodeAt(this.index) !== 117) {
                    this.throwUnexpectedToken();
                  }
                  ++this.index;
                  if (this.source[this.index] === "{") {
                    ++this.index;
                    ch = this.scanUnicodeCodePointEscape();
                  } else {
                    ch = this.scanHexEscape("u");
                    if (ch === null || ch === "\\" || !character_1.Character.isIdentifierStart(ch.charCodeAt(0))) {
                      this.throwUnexpectedToken();
                    }
                  }
                  id = ch;
                }
                while (!this.eof()) {
                  cp = this.codePointAt(this.index);
                  if (!character_1.Character.isIdentifierPart(cp)) {
                    break;
                  }
                  ch = character_1.Character.fromCodePoint(cp);
                  id += ch;
                  this.index += ch.length;
                  if (cp === 92) {
                    id = id.substr(0, id.length - 1);
                    if (this.source.charCodeAt(this.index) !== 117) {
                      this.throwUnexpectedToken();
                    }
                    ++this.index;
                    if (this.source[this.index] === "{") {
                      ++this.index;
                      ch = this.scanUnicodeCodePointEscape();
                    } else {
                      ch = this.scanHexEscape("u");
                      if (ch === null || ch === "\\" || !character_1.Character.isIdentifierPart(ch.charCodeAt(0))) {
                        this.throwUnexpectedToken();
                      }
                    }
                    id += ch;
                  }
                }
                return id;
              };
              Scanner2.prototype.octalToDecimal = function(ch) {
                var octal = ch !== "0";
                var code = octalValue(ch);
                if (!this.eof() && character_1.Character.isOctalDigit(this.source.charCodeAt(this.index))) {
                  octal = true;
                  code = code * 8 + octalValue(this.source[this.index++]);
                  if ("0123".indexOf(ch) >= 0 && !this.eof() && character_1.Character.isOctalDigit(this.source.charCodeAt(this.index))) {
                    code = code * 8 + octalValue(this.source[this.index++]);
                  }
                }
                return {
                  code,
                  octal
                };
              };
              Scanner2.prototype.scanIdentifier = function() {
                var type;
                var start = this.index;
                var id = this.source.charCodeAt(start) === 92 ? this.getComplexIdentifier() : this.getIdentifier();
                if (id.length === 1) {
                  type = 3;
                } else if (this.isKeyword(id)) {
                  type = 4;
                } else if (id === "null") {
                  type = 5;
                } else if (id === "true" || id === "false") {
                  type = 1;
                } else {
                  type = 3;
                }
                if (type !== 3 && start + id.length !== this.index) {
                  var restore = this.index;
                  this.index = start;
                  this.tolerateUnexpectedToken(messages_1.Messages.InvalidEscapedReservedWord);
                  this.index = restore;
                }
                return {
                  type,
                  value: id,
                  lineNumber: this.lineNumber,
                  lineStart: this.lineStart,
                  start,
                  end: this.index
                };
              };
              Scanner2.prototype.scanPunctuator = function() {
                var start = this.index;
                var str = this.source[this.index];
                switch (str) {
                  case "(":
                  case "{":
                    if (str === "{") {
                      this.curlyStack.push("{");
                    }
                    ++this.index;
                    break;
                  case ".":
                    ++this.index;
                    if (this.source[this.index] === "." && this.source[this.index + 1] === ".") {
                      this.index += 2;
                      str = "...";
                    }
                    break;
                  case "}":
                    ++this.index;
                    this.curlyStack.pop();
                    break;
                  case ")":
                  case ";":
                  case ",":
                  case "[":
                  case "]":
                  case ":":
                  case "?":
                  case "~":
                    ++this.index;
                    break;
                  default:
                    str = this.source.substr(this.index, 4);
                    if (str === ">>>=") {
                      this.index += 4;
                    } else {
                      str = str.substr(0, 3);
                      if (str === "===" || str === "!==" || str === ">>>" || str === "<<=" || str === ">>=" || str === "**=") {
                        this.index += 3;
                      } else {
                        str = str.substr(0, 2);
                        if (str === "&&" || str === "||" || str === "==" || str === "!=" || str === "+=" || str === "-=" || str === "*=" || str === "/=" || str === "++" || str === "--" || str === "<<" || str === ">>" || str === "&=" || str === "|=" || str === "^=" || str === "%=" || str === "<=" || str === ">=" || str === "=>" || str === "**") {
                          this.index += 2;
                        } else {
                          str = this.source[this.index];
                          if ("<>=!+-*%&|^/".indexOf(str) >= 0) {
                            ++this.index;
                          }
                        }
                      }
                    }
                }
                if (this.index === start) {
                  this.throwUnexpectedToken();
                }
                return {
                  type: 7,
                  value: str,
                  lineNumber: this.lineNumber,
                  lineStart: this.lineStart,
                  start,
                  end: this.index
                };
              };
              Scanner2.prototype.scanHexLiteral = function(start) {
                var num = "";
                while (!this.eof()) {
                  if (!character_1.Character.isHexDigit(this.source.charCodeAt(this.index))) {
                    break;
                  }
                  num += this.source[this.index++];
                }
                if (num.length === 0) {
                  this.throwUnexpectedToken();
                }
                if (character_1.Character.isIdentifierStart(this.source.charCodeAt(this.index))) {
                  this.throwUnexpectedToken();
                }
                return {
                  type: 6,
                  value: parseInt("0x" + num, 16),
                  lineNumber: this.lineNumber,
                  lineStart: this.lineStart,
                  start,
                  end: this.index
                };
              };
              Scanner2.prototype.scanBinaryLiteral = function(start) {
                var num = "";
                var ch;
                while (!this.eof()) {
                  ch = this.source[this.index];
                  if (ch !== "0" && ch !== "1") {
                    break;
                  }
                  num += this.source[this.index++];
                }
                if (num.length === 0) {
                  this.throwUnexpectedToken();
                }
                if (!this.eof()) {
                  ch = this.source.charCodeAt(this.index);
                  if (character_1.Character.isIdentifierStart(ch) || character_1.Character.isDecimalDigit(ch)) {
                    this.throwUnexpectedToken();
                  }
                }
                return {
                  type: 6,
                  value: parseInt(num, 2),
                  lineNumber: this.lineNumber,
                  lineStart: this.lineStart,
                  start,
                  end: this.index
                };
              };
              Scanner2.prototype.scanOctalLiteral = function(prefix2, start) {
                var num = "";
                var octal = false;
                if (character_1.Character.isOctalDigit(prefix2.charCodeAt(0))) {
                  octal = true;
                  num = "0" + this.source[this.index++];
                } else {
                  ++this.index;
                }
                while (!this.eof()) {
                  if (!character_1.Character.isOctalDigit(this.source.charCodeAt(this.index))) {
                    break;
                  }
                  num += this.source[this.index++];
                }
                if (!octal && num.length === 0) {
                  this.throwUnexpectedToken();
                }
                if (character_1.Character.isIdentifierStart(this.source.charCodeAt(this.index)) || character_1.Character.isDecimalDigit(this.source.charCodeAt(this.index))) {
                  this.throwUnexpectedToken();
                }
                return {
                  type: 6,
                  value: parseInt(num, 8),
                  octal,
                  lineNumber: this.lineNumber,
                  lineStart: this.lineStart,
                  start,
                  end: this.index
                };
              };
              Scanner2.prototype.isImplicitOctalLiteral = function() {
                for (var i3 = this.index + 1; i3 < this.length; ++i3) {
                  var ch = this.source[i3];
                  if (ch === "8" || ch === "9") {
                    return false;
                  }
                  if (!character_1.Character.isOctalDigit(ch.charCodeAt(0))) {
                    return true;
                  }
                }
                return true;
              };
              Scanner2.prototype.scanNumericLiteral = function() {
                var start = this.index;
                var ch = this.source[start];
                assert_1.assert(character_1.Character.isDecimalDigit(ch.charCodeAt(0)) || ch === ".", "Numeric literal must start with a decimal digit or a decimal point");
                var num = "";
                if (ch !== ".") {
                  num = this.source[this.index++];
                  ch = this.source[this.index];
                  if (num === "0") {
                    if (ch === "x" || ch === "X") {
                      ++this.index;
                      return this.scanHexLiteral(start);
                    }
                    if (ch === "b" || ch === "B") {
                      ++this.index;
                      return this.scanBinaryLiteral(start);
                    }
                    if (ch === "o" || ch === "O") {
                      return this.scanOctalLiteral(ch, start);
                    }
                    if (ch && character_1.Character.isOctalDigit(ch.charCodeAt(0))) {
                      if (this.isImplicitOctalLiteral()) {
                        return this.scanOctalLiteral(ch, start);
                      }
                    }
                  }
                  while (character_1.Character.isDecimalDigit(this.source.charCodeAt(this.index))) {
                    num += this.source[this.index++];
                  }
                  ch = this.source[this.index];
                }
                if (ch === ".") {
                  num += this.source[this.index++];
                  while (character_1.Character.isDecimalDigit(this.source.charCodeAt(this.index))) {
                    num += this.source[this.index++];
                  }
                  ch = this.source[this.index];
                }
                if (ch === "e" || ch === "E") {
                  num += this.source[this.index++];
                  ch = this.source[this.index];
                  if (ch === "+" || ch === "-") {
                    num += this.source[this.index++];
                  }
                  if (character_1.Character.isDecimalDigit(this.source.charCodeAt(this.index))) {
                    while (character_1.Character.isDecimalDigit(this.source.charCodeAt(this.index))) {
                      num += this.source[this.index++];
                    }
                  } else {
                    this.throwUnexpectedToken();
                  }
                }
                if (character_1.Character.isIdentifierStart(this.source.charCodeAt(this.index))) {
                  this.throwUnexpectedToken();
                }
                return {
                  type: 6,
                  value: parseFloat(num),
                  lineNumber: this.lineNumber,
                  lineStart: this.lineStart,
                  start,
                  end: this.index
                };
              };
              Scanner2.prototype.scanStringLiteral = function() {
                var start = this.index;
                var quote = this.source[start];
                assert_1.assert(quote === "'" || quote === '"', "String literal must starts with a quote");
                ++this.index;
                var octal = false;
                var str = "";
                while (!this.eof()) {
                  var ch = this.source[this.index++];
                  if (ch === quote) {
                    quote = "";
                    break;
                  } else if (ch === "\\") {
                    ch = this.source[this.index++];
                    if (!ch || !character_1.Character.isLineTerminator(ch.charCodeAt(0))) {
                      switch (ch) {
                        case "u":
                          if (this.source[this.index] === "{") {
                            ++this.index;
                            str += this.scanUnicodeCodePointEscape();
                          } else {
                            var unescaped_1 = this.scanHexEscape(ch);
                            if (unescaped_1 === null) {
                              this.throwUnexpectedToken();
                            }
                            str += unescaped_1;
                          }
                          break;
                        case "x":
                          var unescaped = this.scanHexEscape(ch);
                          if (unescaped === null) {
                            this.throwUnexpectedToken(messages_1.Messages.InvalidHexEscapeSequence);
                          }
                          str += unescaped;
                          break;
                        case "n":
                          str += "\n";
                          break;
                        case "r":
                          str += "\r";
                          break;
                        case "t":
                          str += "	";
                          break;
                        case "b":
                          str += "\b";
                          break;
                        case "f":
                          str += "\f";
                          break;
                        case "v":
                          str += "\v";
                          break;
                        case "8":
                        case "9":
                          str += ch;
                          this.tolerateUnexpectedToken();
                          break;
                        default:
                          if (ch && character_1.Character.isOctalDigit(ch.charCodeAt(0))) {
                            var octToDec = this.octalToDecimal(ch);
                            octal = octToDec.octal || octal;
                            str += String.fromCharCode(octToDec.code);
                          } else {
                            str += ch;
                          }
                          break;
                      }
                    } else {
                      ++this.lineNumber;
                      if (ch === "\r" && this.source[this.index] === "\n") {
                        ++this.index;
                      }
                      this.lineStart = this.index;
                    }
                  } else if (character_1.Character.isLineTerminator(ch.charCodeAt(0))) {
                    break;
                  } else {
                    str += ch;
                  }
                }
                if (quote !== "") {
                  this.index = start;
                  this.throwUnexpectedToken();
                }
                return {
                  type: 8,
                  value: str,
                  octal,
                  lineNumber: this.lineNumber,
                  lineStart: this.lineStart,
                  start,
                  end: this.index
                };
              };
              Scanner2.prototype.scanTemplate = function() {
                var cooked = "";
                var terminated = false;
                var start = this.index;
                var head = this.source[start] === "`";
                var tail = false;
                var rawOffset = 2;
                ++this.index;
                while (!this.eof()) {
                  var ch = this.source[this.index++];
                  if (ch === "`") {
                    rawOffset = 1;
                    tail = true;
                    terminated = true;
                    break;
                  } else if (ch === "$") {
                    if (this.source[this.index] === "{") {
                      this.curlyStack.push("${");
                      ++this.index;
                      terminated = true;
                      break;
                    }
                    cooked += ch;
                  } else if (ch === "\\") {
                    ch = this.source[this.index++];
                    if (!character_1.Character.isLineTerminator(ch.charCodeAt(0))) {
                      switch (ch) {
                        case "n":
                          cooked += "\n";
                          break;
                        case "r":
                          cooked += "\r";
                          break;
                        case "t":
                          cooked += "	";
                          break;
                        case "u":
                          if (this.source[this.index] === "{") {
                            ++this.index;
                            cooked += this.scanUnicodeCodePointEscape();
                          } else {
                            var restore = this.index;
                            var unescaped_2 = this.scanHexEscape(ch);
                            if (unescaped_2 !== null) {
                              cooked += unescaped_2;
                            } else {
                              this.index = restore;
                              cooked += ch;
                            }
                          }
                          break;
                        case "x":
                          var unescaped = this.scanHexEscape(ch);
                          if (unescaped === null) {
                            this.throwUnexpectedToken(messages_1.Messages.InvalidHexEscapeSequence);
                          }
                          cooked += unescaped;
                          break;
                        case "b":
                          cooked += "\b";
                          break;
                        case "f":
                          cooked += "\f";
                          break;
                        case "v":
                          cooked += "\v";
                          break;
                        default:
                          if (ch === "0") {
                            if (character_1.Character.isDecimalDigit(this.source.charCodeAt(this.index))) {
                              this.throwUnexpectedToken(messages_1.Messages.TemplateOctalLiteral);
                            }
                            cooked += "\0";
                          } else if (character_1.Character.isOctalDigit(ch.charCodeAt(0))) {
                            this.throwUnexpectedToken(messages_1.Messages.TemplateOctalLiteral);
                          } else {
                            cooked += ch;
                          }
                          break;
                      }
                    } else {
                      ++this.lineNumber;
                      if (ch === "\r" && this.source[this.index] === "\n") {
                        ++this.index;
                      }
                      this.lineStart = this.index;
                    }
                  } else if (character_1.Character.isLineTerminator(ch.charCodeAt(0))) {
                    ++this.lineNumber;
                    if (ch === "\r" && this.source[this.index] === "\n") {
                      ++this.index;
                    }
                    this.lineStart = this.index;
                    cooked += "\n";
                  } else {
                    cooked += ch;
                  }
                }
                if (!terminated) {
                  this.throwUnexpectedToken();
                }
                if (!head) {
                  this.curlyStack.pop();
                }
                return {
                  type: 10,
                  value: this.source.slice(start + 1, this.index - rawOffset),
                  cooked,
                  head,
                  tail,
                  lineNumber: this.lineNumber,
                  lineStart: this.lineStart,
                  start,
                  end: this.index
                };
              };
              Scanner2.prototype.testRegExp = function(pattern, flags) {
                var astralSubstitute = "\uFFFF";
                var tmp = pattern;
                var self2 = this;
                if (flags.indexOf("u") >= 0) {
                  tmp = tmp.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g, function($0, $1, $2) {
                    var codePoint = parseInt($1 || $2, 16);
                    if (codePoint > 1114111) {
                      self2.throwUnexpectedToken(messages_1.Messages.InvalidRegExp);
                    }
                    if (codePoint <= 65535) {
                      return String.fromCharCode(codePoint);
                    }
                    return astralSubstitute;
                  }).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g, astralSubstitute);
                }
                try {
                  RegExp(tmp);
                } catch (e3) {
                  this.throwUnexpectedToken(messages_1.Messages.InvalidRegExp);
                }
                try {
                  return new RegExp(pattern, flags);
                } catch (exception) {
                  return null;
                }
              };
              Scanner2.prototype.scanRegExpBody = function() {
                var ch = this.source[this.index];
                assert_1.assert(ch === "/", "Regular expression literal must start with a slash");
                var str = this.source[this.index++];
                var classMarker = false;
                var terminated = false;
                while (!this.eof()) {
                  ch = this.source[this.index++];
                  str += ch;
                  if (ch === "\\") {
                    ch = this.source[this.index++];
                    if (character_1.Character.isLineTerminator(ch.charCodeAt(0))) {
                      this.throwUnexpectedToken(messages_1.Messages.UnterminatedRegExp);
                    }
                    str += ch;
                  } else if (character_1.Character.isLineTerminator(ch.charCodeAt(0))) {
                    this.throwUnexpectedToken(messages_1.Messages.UnterminatedRegExp);
                  } else if (classMarker) {
                    if (ch === "]") {
                      classMarker = false;
                    }
                  } else {
                    if (ch === "/") {
                      terminated = true;
                      break;
                    } else if (ch === "[") {
                      classMarker = true;
                    }
                  }
                }
                if (!terminated) {
                  this.throwUnexpectedToken(messages_1.Messages.UnterminatedRegExp);
                }
                return str.substr(1, str.length - 2);
              };
              Scanner2.prototype.scanRegExpFlags = function() {
                var str = "";
                var flags = "";
                while (!this.eof()) {
                  var ch = this.source[this.index];
                  if (!character_1.Character.isIdentifierPart(ch.charCodeAt(0))) {
                    break;
                  }
                  ++this.index;
                  if (ch === "\\" && !this.eof()) {
                    ch = this.source[this.index];
                    if (ch === "u") {
                      ++this.index;
                      var restore = this.index;
                      var char = this.scanHexEscape("u");
                      if (char !== null) {
                        flags += char;
                        for (str += "\\u"; restore < this.index; ++restore) {
                          str += this.source[restore];
                        }
                      } else {
                        this.index = restore;
                        flags += "u";
                        str += "\\u";
                      }
                      this.tolerateUnexpectedToken();
                    } else {
                      str += "\\";
                      this.tolerateUnexpectedToken();
                    }
                  } else {
                    flags += ch;
                    str += ch;
                  }
                }
                return flags;
              };
              Scanner2.prototype.scanRegExp = function() {
                var start = this.index;
                var pattern = this.scanRegExpBody();
                var flags = this.scanRegExpFlags();
                var value = this.testRegExp(pattern, flags);
                return {
                  type: 9,
                  value: "",
                  pattern,
                  flags,
                  regex: value,
                  lineNumber: this.lineNumber,
                  lineStart: this.lineStart,
                  start,
                  end: this.index
                };
              };
              Scanner2.prototype.lex = function() {
                if (this.eof()) {
                  return {
                    type: 2,
                    value: "",
                    lineNumber: this.lineNumber,
                    lineStart: this.lineStart,
                    start: this.index,
                    end: this.index
                  };
                }
                var cp = this.source.charCodeAt(this.index);
                if (character_1.Character.isIdentifierStart(cp)) {
                  return this.scanIdentifier();
                }
                if (cp === 40 || cp === 41 || cp === 59) {
                  return this.scanPunctuator();
                }
                if (cp === 39 || cp === 34) {
                  return this.scanStringLiteral();
                }
                if (cp === 46) {
                  if (character_1.Character.isDecimalDigit(this.source.charCodeAt(this.index + 1))) {
                    return this.scanNumericLiteral();
                  }
                  return this.scanPunctuator();
                }
                if (character_1.Character.isDecimalDigit(cp)) {
                  return this.scanNumericLiteral();
                }
                if (cp === 96 || cp === 125 && this.curlyStack[this.curlyStack.length - 1] === "${") {
                  return this.scanTemplate();
                }
                if (cp >= 55296 && cp < 57343) {
                  if (character_1.Character.isIdentifierStart(this.codePointAt(this.index))) {
                    return this.scanIdentifier();
                  }
                }
                return this.scanPunctuator();
              };
              return Scanner2;
            })();
            exports3.Scanner = Scanner;
          },
          /* 13 */
          /***/
          function(module3, exports3) {
            "use strict";
            Object.defineProperty(exports3, "__esModule", { value: true });
            exports3.TokenName = {};
            exports3.TokenName[
              1
              /* BooleanLiteral */
            ] = "Boolean";
            exports3.TokenName[
              2
              /* EOF */
            ] = "<end>";
            exports3.TokenName[
              3
              /* Identifier */
            ] = "Identifier";
            exports3.TokenName[
              4
              /* Keyword */
            ] = "Keyword";
            exports3.TokenName[
              5
              /* NullLiteral */
            ] = "Null";
            exports3.TokenName[
              6
              /* NumericLiteral */
            ] = "Numeric";
            exports3.TokenName[
              7
              /* Punctuator */
            ] = "Punctuator";
            exports3.TokenName[
              8
              /* StringLiteral */
            ] = "String";
            exports3.TokenName[
              9
              /* RegularExpression */
            ] = "RegularExpression";
            exports3.TokenName[
              10
              /* Template */
            ] = "Template";
          },
          /* 14 */
          /***/
          function(module3, exports3) {
            "use strict";
            Object.defineProperty(exports3, "__esModule", { value: true });
            exports3.XHTMLEntities = {
              quot: '"',
              amp: "&",
              apos: "'",
              gt: ">",
              nbsp: "\xA0",
              iexcl: "\xA1",
              cent: "\xA2",
              pound: "\xA3",
              curren: "\xA4",
              yen: "\xA5",
              brvbar: "\xA6",
              sect: "\xA7",
              uml: "\xA8",
              copy: "\xA9",
              ordf: "\xAA",
              laquo: "\xAB",
              not: "\xAC",
              shy: "\xAD",
              reg: "\xAE",
              macr: "\xAF",
              deg: "\xB0",
              plusmn: "\xB1",
              sup2: "\xB2",
              sup3: "\xB3",
              acute: "\xB4",
              micro: "\xB5",
              para: "\xB6",
              middot: "\xB7",
              cedil: "\xB8",
              sup1: "\xB9",
              ordm: "\xBA",
              raquo: "\xBB",
              frac14: "\xBC",
              frac12: "\xBD",
              frac34: "\xBE",
              iquest: "\xBF",
              Agrave: "\xC0",
              Aacute: "\xC1",
              Acirc: "\xC2",
              Atilde: "\xC3",
              Auml: "\xC4",
              Aring: "\xC5",
              AElig: "\xC6",
              Ccedil: "\xC7",
              Egrave: "\xC8",
              Eacute: "\xC9",
              Ecirc: "\xCA",
              Euml: "\xCB",
              Igrave: "\xCC",
              Iacute: "\xCD",
              Icirc: "\xCE",
              Iuml: "\xCF",
              ETH: "\xD0",
              Ntilde: "\xD1",
              Ograve: "\xD2",
              Oacute: "\xD3",
              Ocirc: "\xD4",
              Otilde: "\xD5",
              Ouml: "\xD6",
              times: "\xD7",
              Oslash: "\xD8",
              Ugrave: "\xD9",
              Uacute: "\xDA",
              Ucirc: "\xDB",
              Uuml: "\xDC",
              Yacute: "\xDD",
              THORN: "\xDE",
              szlig: "\xDF",
              agrave: "\xE0",
              aacute: "\xE1",
              acirc: "\xE2",
              atilde: "\xE3",
              auml: "\xE4",
              aring: "\xE5",
              aelig: "\xE6",
              ccedil: "\xE7",
              egrave: "\xE8",
              eacute: "\xE9",
              ecirc: "\xEA",
              euml: "\xEB",
              igrave: "\xEC",
              iacute: "\xED",
              icirc: "\xEE",
              iuml: "\xEF",
              eth: "\xF0",
              ntilde: "\xF1",
              ograve: "\xF2",
              oacute: "\xF3",
              ocirc: "\xF4",
              otilde: "\xF5",
              ouml: "\xF6",
              divide: "\xF7",
              oslash: "\xF8",
              ugrave: "\xF9",
              uacute: "\xFA",
              ucirc: "\xFB",
              uuml: "\xFC",
              yacute: "\xFD",
              thorn: "\xFE",
              yuml: "\xFF",
              OElig: "\u0152",
              oelig: "\u0153",
              Scaron: "\u0160",
              scaron: "\u0161",
              Yuml: "\u0178",
              fnof: "\u0192",
              circ: "\u02C6",
              tilde: "\u02DC",
              Alpha: "\u0391",
              Beta: "\u0392",
              Gamma: "\u0393",
              Delta: "\u0394",
              Epsilon: "\u0395",
              Zeta: "\u0396",
              Eta: "\u0397",
              Theta: "\u0398",
              Iota: "\u0399",
              Kappa: "\u039A",
              Lambda: "\u039B",
              Mu: "\u039C",
              Nu: "\u039D",
              Xi: "\u039E",
              Omicron: "\u039F",
              Pi: "\u03A0",
              Rho: "\u03A1",
              Sigma: "\u03A3",
              Tau: "\u03A4",
              Upsilon: "\u03A5",
              Phi: "\u03A6",
              Chi: "\u03A7",
              Psi: "\u03A8",
              Omega: "\u03A9",
              alpha: "\u03B1",
              beta: "\u03B2",
              gamma: "\u03B3",
              delta: "\u03B4",
              epsilon: "\u03B5",
              zeta: "\u03B6",
              eta: "\u03B7",
              theta: "\u03B8",
              iota: "\u03B9",
              kappa: "\u03BA",
              lambda: "\u03BB",
              mu: "\u03BC",
              nu: "\u03BD",
              xi: "\u03BE",
              omicron: "\u03BF",
              pi: "\u03C0",
              rho: "\u03C1",
              sigmaf: "\u03C2",
              sigma: "\u03C3",
              tau: "\u03C4",
              upsilon: "\u03C5",
              phi: "\u03C6",
              chi: "\u03C7",
              psi: "\u03C8",
              omega: "\u03C9",
              thetasym: "\u03D1",
              upsih: "\u03D2",
              piv: "\u03D6",
              ensp: "\u2002",
              emsp: "\u2003",
              thinsp: "\u2009",
              zwnj: "\u200C",
              zwj: "\u200D",
              lrm: "\u200E",
              rlm: "\u200F",
              ndash: "\u2013",
              mdash: "\u2014",
              lsquo: "\u2018",
              rsquo: "\u2019",
              sbquo: "\u201A",
              ldquo: "\u201C",
              rdquo: "\u201D",
              bdquo: "\u201E",
              dagger: "\u2020",
              Dagger: "\u2021",
              bull: "\u2022",
              hellip: "\u2026",
              permil: "\u2030",
              prime: "\u2032",
              Prime: "\u2033",
              lsaquo: "\u2039",
              rsaquo: "\u203A",
              oline: "\u203E",
              frasl: "\u2044",
              euro: "\u20AC",
              image: "\u2111",
              weierp: "\u2118",
              real: "\u211C",
              trade: "\u2122",
              alefsym: "\u2135",
              larr: "\u2190",
              uarr: "\u2191",
              rarr: "\u2192",
              darr: "\u2193",
              harr: "\u2194",
              crarr: "\u21B5",
              lArr: "\u21D0",
              uArr: "\u21D1",
              rArr: "\u21D2",
              dArr: "\u21D3",
              hArr: "\u21D4",
              forall: "\u2200",
              part: "\u2202",
              exist: "\u2203",
              empty: "\u2205",
              nabla: "\u2207",
              isin: "\u2208",
              notin: "\u2209",
              ni: "\u220B",
              prod: "\u220F",
              sum: "\u2211",
              minus: "\u2212",
              lowast: "\u2217",
              radic: "\u221A",
              prop: "\u221D",
              infin: "\u221E",
              ang: "\u2220",
              and: "\u2227",
              or: "\u2228",
              cap: "\u2229",
              cup: "\u222A",
              int: "\u222B",
              there4: "\u2234",
              sim: "\u223C",
              cong: "\u2245",
              asymp: "\u2248",
              ne: "\u2260",
              equiv: "\u2261",
              le: "\u2264",
              ge: "\u2265",
              sub: "\u2282",
              sup: "\u2283",
              nsub: "\u2284",
              sube: "\u2286",
              supe: "\u2287",
              oplus: "\u2295",
              otimes: "\u2297",
              perp: "\u22A5",
              sdot: "\u22C5",
              lceil: "\u2308",
              rceil: "\u2309",
              lfloor: "\u230A",
              rfloor: "\u230B",
              loz: "\u25CA",
              spades: "\u2660",
              clubs: "\u2663",
              hearts: "\u2665",
              diams: "\u2666",
              lang: "\u27E8",
              rang: "\u27E9"
            };
          },
          /* 15 */
          /***/
          function(module3, exports3, __webpack_require__) {
            "use strict";
            Object.defineProperty(exports3, "__esModule", { value: true });
            var error_handler_1 = __webpack_require__(10);
            var scanner_1 = __webpack_require__(12);
            var token_1 = __webpack_require__(13);
            var Reader = (function() {
              function Reader2() {
                this.values = [];
                this.curly = this.paren = -1;
              }
              __name(Reader2, "Reader");
              Reader2.prototype.beforeFunctionExpression = function(t3) {
                return [
                  "(",
                  "{",
                  "[",
                  "in",
                  "typeof",
                  "instanceof",
                  "new",
                  "return",
                  "case",
                  "delete",
                  "throw",
                  "void",
                  // assignment operators
                  "=",
                  "+=",
                  "-=",
                  "*=",
                  "**=",
                  "/=",
                  "%=",
                  "<<=",
                  ">>=",
                  ">>>=",
                  "&=",
                  "|=",
                  "^=",
                  ",",
                  // binary/unary operators
                  "+",
                  "-",
                  "*",
                  "**",
                  "/",
                  "%",
                  "++",
                  "--",
                  "<<",
                  ">>",
                  ">>>",
                  "&",
                  "|",
                  "^",
                  "!",
                  "~",
                  "&&",
                  "||",
                  "?",
                  ":",
                  "===",
                  "==",
                  ">=",
                  "<=",
                  "<",
                  ">",
                  "!=",
                  "!=="
                ].indexOf(t3) >= 0;
              };
              Reader2.prototype.isRegexStart = function() {
                var previous = this.values[this.values.length - 1];
                var regex = previous !== null;
                switch (previous) {
                  case "this":
                  case "]":
                    regex = false;
                    break;
                  case ")":
                    var keyword = this.values[this.paren - 1];
                    regex = keyword === "if" || keyword === "while" || keyword === "for" || keyword === "with";
                    break;
                  case "}":
                    regex = false;
                    if (this.values[this.curly - 3] === "function") {
                      var check = this.values[this.curly - 4];
                      regex = check ? !this.beforeFunctionExpression(check) : false;
                    } else if (this.values[this.curly - 4] === "function") {
                      var check = this.values[this.curly - 5];
                      regex = check ? !this.beforeFunctionExpression(check) : true;
                    }
                    break;
                  default:
                    break;
                }
                return regex;
              };
              Reader2.prototype.push = function(token) {
                if (token.type === 7 || token.type === 4) {
                  if (token.value === "{") {
                    this.curly = this.values.length;
                  } else if (token.value === "(") {
                    this.paren = this.values.length;
                  }
                  this.values.push(token.value);
                } else {
                  this.values.push(null);
                }
              };
              return Reader2;
            })();
            var Tokenizer = (function() {
              function Tokenizer2(code, config) {
                this.errorHandler = new error_handler_1.ErrorHandler();
                this.errorHandler.tolerant = config ? typeof config.tolerant === "boolean" && config.tolerant : false;
                this.scanner = new scanner_1.Scanner(code, this.errorHandler);
                this.scanner.trackComment = config ? typeof config.comment === "boolean" && config.comment : false;
                this.trackRange = config ? typeof config.range === "boolean" && config.range : false;
                this.trackLoc = config ? typeof config.loc === "boolean" && config.loc : false;
                this.buffer = [];
                this.reader = new Reader();
              }
              __name(Tokenizer2, "Tokenizer");
              Tokenizer2.prototype.errors = function() {
                return this.errorHandler.errors;
              };
              Tokenizer2.prototype.getNextToken = function() {
                if (this.buffer.length === 0) {
                  var comments = this.scanner.scanComments();
                  if (this.scanner.trackComment) {
                    for (var i3 = 0; i3 < comments.length; ++i3) {
                      var e3 = comments[i3];
                      var value = this.scanner.source.slice(e3.slice[0], e3.slice[1]);
                      var comment = {
                        type: e3.multiLine ? "BlockComment" : "LineComment",
                        value
                      };
                      if (this.trackRange) {
                        comment.range = e3.range;
                      }
                      if (this.trackLoc) {
                        comment.loc = e3.loc;
                      }
                      this.buffer.push(comment);
                    }
                  }
                  if (!this.scanner.eof()) {
                    var loc = void 0;
                    if (this.trackLoc) {
                      loc = {
                        start: {
                          line: this.scanner.lineNumber,
                          column: this.scanner.index - this.scanner.lineStart
                        },
                        end: {}
                      };
                    }
                    var startRegex = this.scanner.source[this.scanner.index] === "/" && this.reader.isRegexStart();
                    var token = startRegex ? this.scanner.scanRegExp() : this.scanner.lex();
                    this.reader.push(token);
                    var entry = {
                      type: token_1.TokenName[token.type],
                      value: this.scanner.source.slice(token.start, token.end)
                    };
                    if (this.trackRange) {
                      entry.range = [token.start, token.end];
                    }
                    if (this.trackLoc) {
                      loc.end = {
                        line: this.scanner.lineNumber,
                        column: this.scanner.index - this.scanner.lineStart
                      };
                      entry.loc = loc;
                    }
                    if (token.type === 9) {
                      var pattern = token.pattern;
                      var flags = token.flags;
                      entry.regex = { pattern, flags };
                    }
                    this.buffer.push(entry);
                  }
                }
                return this.buffer.shift();
              };
              return Tokenizer2;
            })();
            exports3.Tokenizer = Tokenizer;
          }
          /******/
        ])
      );
    });
  }
});

// ../../node_modules/ast-types/lib/types.js
var require_types3 = __commonJS({
  "../../node_modules/ast-types/lib/types.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.Def = void 0;
    var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
    var Op = Object.prototype;
    var objToStr = Op.toString;
    var hasOwn = Op.hasOwnProperty;
    var BaseType = (
      /** @class */
      (function() {
        function BaseType2() {
        }
        __name(BaseType2, "BaseType");
        BaseType2.prototype.assert = function(value, deep) {
          if (!this.check(value, deep)) {
            var str = shallowStringify(value);
            throw new Error(str + " does not match type " + this);
          }
          return true;
        };
        BaseType2.prototype.arrayOf = function() {
          var elemType = this;
          return new ArrayType(elemType);
        };
        return BaseType2;
      })()
    );
    var ArrayType = (
      /** @class */
      (function(_super) {
        tslib_1.__extends(ArrayType2, _super);
        function ArrayType2(elemType) {
          var _this = _super.call(this) || this;
          _this.elemType = elemType;
          _this.kind = "ArrayType";
          return _this;
        }
        __name(ArrayType2, "ArrayType");
        ArrayType2.prototype.toString = function() {
          return "[" + this.elemType + "]";
        };
        ArrayType2.prototype.check = function(value, deep) {
          var _this = this;
          return Array.isArray(value) && value.every(function(elem) {
            return _this.elemType.check(elem, deep);
          });
        };
        return ArrayType2;
      })(BaseType)
    );
    var IdentityType = (
      /** @class */
      (function(_super) {
        tslib_1.__extends(IdentityType2, _super);
        function IdentityType2(value) {
          var _this = _super.call(this) || this;
          _this.value = value;
          _this.kind = "IdentityType";
          return _this;
        }
        __name(IdentityType2, "IdentityType");
        IdentityType2.prototype.toString = function() {
          return String(this.value);
        };
        IdentityType2.prototype.check = function(value, deep) {
          var result2 = value === this.value;
          if (!result2 && typeof deep === "function") {
            deep(this, value);
          }
          return result2;
        };
        return IdentityType2;
      })(BaseType)
    );
    var ObjectType = (
      /** @class */
      (function(_super) {
        tslib_1.__extends(ObjectType2, _super);
        function ObjectType2(fields) {
          var _this = _super.call(this) || this;
          _this.fields = fields;
          _this.kind = "ObjectType";
          return _this;
        }
        __name(ObjectType2, "ObjectType");
        ObjectType2.prototype.toString = function() {
          return "{ " + this.fields.join(", ") + " }";
        };
        ObjectType2.prototype.check = function(value, deep) {
          return objToStr.call(value) === objToStr.call({}) && this.fields.every(function(field) {
            return field.type.check(value[field.name], deep);
          });
        };
        return ObjectType2;
      })(BaseType)
    );
    var OrType = (
      /** @class */
      (function(_super) {
        tslib_1.__extends(OrType2, _super);
        function OrType2(types5) {
          var _this = _super.call(this) || this;
          _this.types = types5;
          _this.kind = "OrType";
          return _this;
        }
        __name(OrType2, "OrType");
        OrType2.prototype.toString = function() {
          return this.types.join(" | ");
        };
        OrType2.prototype.check = function(value, deep) {
          return this.types.some(function(type) {
            return type.check(value, deep);
          });
        };
        return OrType2;
      })(BaseType)
    );
    var PredicateType = (
      /** @class */
      (function(_super) {
        tslib_1.__extends(PredicateType2, _super);
        function PredicateType2(name, predicate) {
          var _this = _super.call(this) || this;
          _this.name = name;
          _this.predicate = predicate;
          _this.kind = "PredicateType";
          return _this;
        }
        __name(PredicateType2, "PredicateType");
        PredicateType2.prototype.toString = function() {
          return this.name;
        };
        PredicateType2.prototype.check = function(value, deep) {
          var result2 = this.predicate(value, deep);
          if (!result2 && typeof deep === "function") {
            deep(this, value);
          }
          return result2;
        };
        return PredicateType2;
      })(BaseType)
    );
    var Def = (
      /** @class */
      (function() {
        function Def2(type, typeName) {
          this.type = type;
          this.typeName = typeName;
          this.baseNames = [];
          this.ownFields = /* @__PURE__ */ Object.create(null);
          this.allSupertypes = /* @__PURE__ */ Object.create(null);
          this.supertypeList = [];
          this.allFields = /* @__PURE__ */ Object.create(null);
          this.fieldNames = [];
          this.finalized = false;
          this.buildable = false;
          this.buildParams = [];
        }
        __name(Def2, "Def");
        Def2.prototype.isSupertypeOf = function(that) {
          if (that instanceof Def2) {
            if (this.finalized !== true || that.finalized !== true) {
              throw new Error("");
            }
            return hasOwn.call(that.allSupertypes, this.typeName);
          } else {
            throw new Error(that + " is not a Def");
          }
        };
        Def2.prototype.checkAllFields = function(value, deep) {
          var allFields = this.allFields;
          if (this.finalized !== true) {
            throw new Error("" + this.typeName);
          }
          function checkFieldByName(name) {
            var field = allFields[name];
            var type = field.type;
            var child = field.getValue(value);
            return type.check(child, deep);
          }
          __name(checkFieldByName, "checkFieldByName");
          return value !== null && typeof value === "object" && Object.keys(allFields).every(checkFieldByName);
        };
        Def2.prototype.bases = function() {
          var supertypeNames = [];
          for (var _i = 0; _i < arguments.length; _i++) {
            supertypeNames[_i] = arguments[_i];
          }
          var bases = this.baseNames;
          if (this.finalized) {
            if (supertypeNames.length !== bases.length) {
              throw new Error("");
            }
            for (var i3 = 0; i3 < supertypeNames.length; i3++) {
              if (supertypeNames[i3] !== bases[i3]) {
                throw new Error("");
              }
            }
            return this;
          }
          supertypeNames.forEach(function(baseName) {
            if (bases.indexOf(baseName) < 0) {
              bases.push(baseName);
            }
          });
          return this;
        };
        return Def2;
      })()
    );
    exports2.Def = Def;
    var Field = (
      /** @class */
      (function() {
        function Field2(name, type, defaultFn, hidden) {
          this.name = name;
          this.type = type;
          this.defaultFn = defaultFn;
          this.hidden = !!hidden;
        }
        __name(Field2, "Field");
        Field2.prototype.toString = function() {
          return JSON.stringify(this.name) + ": " + this.type;
        };
        Field2.prototype.getValue = function(obj) {
          var value = obj[this.name];
          if (typeof value !== "undefined") {
            return value;
          }
          if (typeof this.defaultFn === "function") {
            value = this.defaultFn.call(obj);
          }
          return value;
        };
        return Field2;
      })()
    );
    function shallowStringify(value) {
      if (Array.isArray(value)) {
        return "[" + value.map(shallowStringify).join(", ") + "]";
      }
      if (value && typeof value === "object") {
        return "{ " + Object.keys(value).map(function(key) {
          return key + ": " + value[key];
        }).join(", ") + " }";
      }
      return JSON.stringify(value);
    }
    __name(shallowStringify, "shallowStringify");
    function typesPlugin(_fork) {
      var Type = {
        or: /* @__PURE__ */ __name(function() {
          var types5 = [];
          for (var _i = 0; _i < arguments.length; _i++) {
            types5[_i] = arguments[_i];
          }
          return new OrType(types5.map(function(type) {
            return Type.from(type);
          }));
        }, "or"),
        from: /* @__PURE__ */ __name(function(value, name) {
          if (value instanceof ArrayType || value instanceof IdentityType || value instanceof ObjectType || value instanceof OrType || value instanceof PredicateType) {
            return value;
          }
          if (value instanceof Def) {
            return value.type;
          }
          if (isArray2.check(value)) {
            if (value.length !== 1) {
              throw new Error("only one element type is permitted for typed arrays");
            }
            return new ArrayType(Type.from(value[0]));
          }
          if (isObject3.check(value)) {
            return new ObjectType(Object.keys(value).map(function(name2) {
              return new Field(name2, Type.from(value[name2], name2));
            }));
          }
          if (typeof value === "function") {
            var bicfIndex = builtInCtorFns.indexOf(value);
            if (bicfIndex >= 0) {
              return builtInCtorTypes[bicfIndex];
            }
            if (typeof name !== "string") {
              throw new Error("missing name");
            }
            return new PredicateType(name, value);
          }
          return new IdentityType(value);
        }, "from"),
        // Define a type whose name is registered in a namespace (the defCache) so
        // that future definitions will return the same type given the same name.
        // In particular, this system allows for circular and forward definitions.
        // The Def object d returned from Type.def may be used to configure the
        // type d.type by calling methods such as d.bases, d.build, and d.field.
        def: /* @__PURE__ */ __name(function(typeName) {
          return hasOwn.call(defCache, typeName) ? defCache[typeName] : defCache[typeName] = new DefImpl(typeName);
        }, "def"),
        hasDef: /* @__PURE__ */ __name(function(typeName) {
          return hasOwn.call(defCache, typeName);
        }, "hasDef")
      };
      var builtInCtorFns = [];
      var builtInCtorTypes = [];
      function defBuiltInType(name, example) {
        var objStr = objToStr.call(example);
        var type = new PredicateType(name, function(value) {
          return objToStr.call(value) === objStr;
        });
        if (example && typeof example.constructor === "function") {
          builtInCtorFns.push(example.constructor);
          builtInCtorTypes.push(type);
        }
        return type;
      }
      __name(defBuiltInType, "defBuiltInType");
      var isString = defBuiltInType("string", "truthy");
      var isFunction = defBuiltInType("function", function() {
      });
      var isArray2 = defBuiltInType("array", []);
      var isObject3 = defBuiltInType("object", {});
      var isRegExp = defBuiltInType("RegExp", /./);
      var isDate = defBuiltInType("Date", /* @__PURE__ */ new Date());
      var isNumber = defBuiltInType("number", 3);
      var isBoolean2 = defBuiltInType("boolean", true);
      var isNull = defBuiltInType("null", null);
      var isUndefined = defBuiltInType("undefined", void 0);
      var builtInTypes = {
        string: isString,
        function: isFunction,
        array: isArray2,
        object: isObject3,
        RegExp: isRegExp,
        Date: isDate,
        number: isNumber,
        boolean: isBoolean2,
        null: isNull,
        undefined: isUndefined
      };
      var defCache = /* @__PURE__ */ Object.create(null);
      function defFromValue(value) {
        if (value && typeof value === "object") {
          var type = value.type;
          if (typeof type === "string" && hasOwn.call(defCache, type)) {
            var d3 = defCache[type];
            if (d3.finalized) {
              return d3;
            }
          }
        }
        return null;
      }
      __name(defFromValue, "defFromValue");
      var DefImpl = (
        /** @class */
        (function(_super) {
          tslib_1.__extends(DefImpl2, _super);
          function DefImpl2(typeName) {
            var _this = _super.call(this, new PredicateType(typeName, function(value, deep) {
              return _this.check(value, deep);
            }), typeName) || this;
            return _this;
          }
          __name(DefImpl2, "DefImpl");
          DefImpl2.prototype.check = function(value, deep) {
            if (this.finalized !== true) {
              throw new Error("prematurely checking unfinalized type " + this.typeName);
            }
            if (value === null || typeof value !== "object") {
              return false;
            }
            var vDef = defFromValue(value);
            if (!vDef) {
              if (this.typeName === "SourceLocation" || this.typeName === "Position") {
                return this.checkAllFields(value, deep);
              }
              return false;
            }
            if (deep && vDef === this) {
              return this.checkAllFields(value, deep);
            }
            if (!this.isSupertypeOf(vDef)) {
              return false;
            }
            if (!deep) {
              return true;
            }
            return vDef.checkAllFields(value, deep) && this.checkAllFields(value, false);
          };
          DefImpl2.prototype.build = function() {
            var _this = this;
            var buildParams = [];
            for (var _i = 0; _i < arguments.length; _i++) {
              buildParams[_i] = arguments[_i];
            }
            this.buildParams = buildParams;
            if (this.buildable) {
              return this;
            }
            this.field("type", String, function() {
              return _this.typeName;
            });
            this.buildable = true;
            var addParam = /* @__PURE__ */ __name(function(built, param, arg, isArgAvailable) {
              if (hasOwn.call(built, param))
                return;
              var all = _this.allFields;
              if (!hasOwn.call(all, param)) {
                throw new Error("" + param);
              }
              var field = all[param];
              var type = field.type;
              var value;
              if (isArgAvailable) {
                value = arg;
              } else if (field.defaultFn) {
                value = field.defaultFn.call(built);
              } else {
                var message2 = "no value or default function given for field " + JSON.stringify(param) + " of " + _this.typeName + "(" + _this.buildParams.map(function(name) {
                  return all[name];
                }).join(", ") + ")";
                throw new Error(message2);
              }
              if (!type.check(value)) {
                throw new Error(shallowStringify(value) + " does not match field " + field + " of type " + _this.typeName);
              }
              built[param] = value;
            }, "addParam");
            var builder = /* @__PURE__ */ __name(function() {
              var args = [];
              for (var _i2 = 0; _i2 < arguments.length; _i2++) {
                args[_i2] = arguments[_i2];
              }
              var argc = args.length;
              if (!_this.finalized) {
                throw new Error("attempting to instantiate unfinalized type " + _this.typeName);
              }
              var built = Object.create(nodePrototype);
              _this.buildParams.forEach(function(param, i3) {
                if (i3 < argc) {
                  addParam(built, param, args[i3], true);
                } else {
                  addParam(built, param, null, false);
                }
              });
              Object.keys(_this.allFields).forEach(function(param) {
                addParam(built, param, null, false);
              });
              if (built.type !== _this.typeName) {
                throw new Error("");
              }
              return built;
            }, "builder");
            builder.from = function(obj) {
              if (!_this.finalized) {
                throw new Error("attempting to instantiate unfinalized type " + _this.typeName);
              }
              var built = Object.create(nodePrototype);
              Object.keys(_this.allFields).forEach(function(param) {
                if (hasOwn.call(obj, param)) {
                  addParam(built, param, obj[param], true);
                } else {
                  addParam(built, param, null, false);
                }
              });
              if (built.type !== _this.typeName) {
                throw new Error("");
              }
              return built;
            };
            Object.defineProperty(builders, getBuilderName(this.typeName), {
              enumerable: true,
              value: builder
            });
            return this;
          };
          DefImpl2.prototype.field = function(name, type, defaultFn, hidden) {
            if (this.finalized) {
              console.error("Ignoring attempt to redefine field " + JSON.stringify(name) + " of finalized type " + JSON.stringify(this.typeName));
              return this;
            }
            this.ownFields[name] = new Field(name, Type.from(type), defaultFn, hidden);
            return this;
          };
          DefImpl2.prototype.finalize = function() {
            var _this = this;
            if (!this.finalized) {
              var allFields = this.allFields;
              var allSupertypes = this.allSupertypes;
              this.baseNames.forEach(function(name) {
                var def = defCache[name];
                if (def instanceof Def) {
                  def.finalize();
                  extend(allFields, def.allFields);
                  extend(allSupertypes, def.allSupertypes);
                } else {
                  var message2 = "unknown supertype name " + JSON.stringify(name) + " for subtype " + JSON.stringify(_this.typeName);
                  throw new Error(message2);
                }
              });
              extend(allFields, this.ownFields);
              allSupertypes[this.typeName] = this;
              this.fieldNames.length = 0;
              for (var fieldName in allFields) {
                if (hasOwn.call(allFields, fieldName) && !allFields[fieldName].hidden) {
                  this.fieldNames.push(fieldName);
                }
              }
              Object.defineProperty(namedTypes, this.typeName, {
                enumerable: true,
                value: this.type
              });
              this.finalized = true;
              populateSupertypeList(this.typeName, this.supertypeList);
              if (this.buildable && this.supertypeList.lastIndexOf("Expression") >= 0) {
                wrapExpressionBuilderWithStatement(this.typeName);
              }
            }
          };
          return DefImpl2;
        })(Def)
      );
      function getSupertypeNames(typeName) {
        if (!hasOwn.call(defCache, typeName)) {
          throw new Error("");
        }
        var d3 = defCache[typeName];
        if (d3.finalized !== true) {
          throw new Error("");
        }
        return d3.supertypeList.slice(1);
      }
      __name(getSupertypeNames, "getSupertypeNames");
      function computeSupertypeLookupTable(candidates) {
        var table3 = {};
        var typeNames = Object.keys(defCache);
        var typeNameCount = typeNames.length;
        for (var i3 = 0; i3 < typeNameCount; ++i3) {
          var typeName = typeNames[i3];
          var d3 = defCache[typeName];
          if (d3.finalized !== true) {
            throw new Error("" + typeName);
          }
          for (var j3 = 0; j3 < d3.supertypeList.length; ++j3) {
            var superTypeName = d3.supertypeList[j3];
            if (hasOwn.call(candidates, superTypeName)) {
              table3[typeName] = superTypeName;
              break;
            }
          }
        }
        return table3;
      }
      __name(computeSupertypeLookupTable, "computeSupertypeLookupTable");
      var builders = /* @__PURE__ */ Object.create(null);
      var nodePrototype = {};
      function defineMethod(name, func) {
        var old = nodePrototype[name];
        if (isUndefined.check(func)) {
          delete nodePrototype[name];
        } else {
          isFunction.assert(func);
          Object.defineProperty(nodePrototype, name, {
            enumerable: true,
            configurable: true,
            value: func
          });
        }
        return old;
      }
      __name(defineMethod, "defineMethod");
      function getBuilderName(typeName) {
        return typeName.replace(/^[A-Z]+/, function(upperCasePrefix) {
          var len = upperCasePrefix.length;
          switch (len) {
            case 0:
              return "";
            // If there's only one initial capital letter, just lower-case it.
            case 1:
              return upperCasePrefix.toLowerCase();
            default:
              return upperCasePrefix.slice(0, len - 1).toLowerCase() + upperCasePrefix.charAt(len - 1);
          }
        });
      }
      __name(getBuilderName, "getBuilderName");
      function getStatementBuilderName(typeName) {
        typeName = getBuilderName(typeName);
        return typeName.replace(/(Expression)?$/, "Statement");
      }
      __name(getStatementBuilderName, "getStatementBuilderName");
      var namedTypes = {};
      function getFieldNames(object) {
        var d3 = defFromValue(object);
        if (d3) {
          return d3.fieldNames.slice(0);
        }
        if ("type" in object) {
          throw new Error("did not recognize object of type " + JSON.stringify(object.type));
        }
        return Object.keys(object);
      }
      __name(getFieldNames, "getFieldNames");
      function getFieldValue(object, fieldName) {
        var d3 = defFromValue(object);
        if (d3) {
          var field = d3.allFields[fieldName];
          if (field) {
            return field.getValue(object);
          }
        }
        return object && object[fieldName];
      }
      __name(getFieldValue, "getFieldValue");
      function eachField(object, callback, context) {
        getFieldNames(object).forEach(function(name) {
          callback.call(this, name, getFieldValue(object, name));
        }, context);
      }
      __name(eachField, "eachField");
      function someField(object, callback, context) {
        return getFieldNames(object).some(function(name) {
          return callback.call(this, name, getFieldValue(object, name));
        }, context);
      }
      __name(someField, "someField");
      function wrapExpressionBuilderWithStatement(typeName) {
        var wrapperName = getStatementBuilderName(typeName);
        if (builders[wrapperName])
          return;
        var wrapped = builders[getBuilderName(typeName)];
        if (!wrapped)
          return;
        var builder = /* @__PURE__ */ __name(function() {
          var args = [];
          for (var _i = 0; _i < arguments.length; _i++) {
            args[_i] = arguments[_i];
          }
          return builders.expressionStatement(wrapped.apply(builders, args));
        }, "builder");
        builder.from = function() {
          var args = [];
          for (var _i = 0; _i < arguments.length; _i++) {
            args[_i] = arguments[_i];
          }
          return builders.expressionStatement(wrapped.from.apply(builders, args));
        };
        builders[wrapperName] = builder;
      }
      __name(wrapExpressionBuilderWithStatement, "wrapExpressionBuilderWithStatement");
      function populateSupertypeList(typeName, list2) {
        list2.length = 0;
        list2.push(typeName);
        var lastSeen = /* @__PURE__ */ Object.create(null);
        for (var pos = 0; pos < list2.length; ++pos) {
          typeName = list2[pos];
          var d3 = defCache[typeName];
          if (d3.finalized !== true) {
            throw new Error("");
          }
          if (hasOwn.call(lastSeen, typeName)) {
            delete list2[lastSeen[typeName]];
          }
          lastSeen[typeName] = pos;
          list2.push.apply(list2, d3.baseNames);
        }
        for (var to = 0, from = to, len = list2.length; from < len; ++from) {
          if (hasOwn.call(list2, from)) {
            list2[to++] = list2[from];
          }
        }
        list2.length = to;
      }
      __name(populateSupertypeList, "populateSupertypeList");
      function extend(into, from) {
        Object.keys(from).forEach(function(name) {
          into[name] = from[name];
        });
        return into;
      }
      __name(extend, "extend");
      function finalize() {
        Object.keys(defCache).forEach(function(name) {
          defCache[name].finalize();
        });
      }
      __name(finalize, "finalize");
      return {
        Type,
        builtInTypes,
        getSupertypeNames,
        computeSupertypeLookupTable,
        builders,
        defineMethod,
        getBuilderName,
        getStatementBuilderName,
        namedTypes,
        getFieldNames,
        getFieldValue,
        eachField,
        someField,
        finalize
      };
    }
    __name(typesPlugin, "typesPlugin");
    exports2.default = typesPlugin;
  }
});

// ../../node_modules/ast-types/lib/path.js
var require_path2 = __commonJS({
  "../../node_modules/ast-types/lib/path.js"(exports2, module2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
    var types_1 = tslib_1.__importDefault(require_types3());
    var Op = Object.prototype;
    var hasOwn = Op.hasOwnProperty;
    function pathPlugin(fork) {
      var types5 = fork.use(types_1.default);
      var isArray2 = types5.builtInTypes.array;
      var isNumber = types5.builtInTypes.number;
      var Path2 = /* @__PURE__ */ __name(function Path3(value, parentPath, name) {
        if (!(this instanceof Path3)) {
          throw new Error("Path constructor cannot be invoked without 'new'");
        }
        if (parentPath) {
          if (!(parentPath instanceof Path3)) {
            throw new Error("");
          }
        } else {
          parentPath = null;
          name = null;
        }
        this.value = value;
        this.parentPath = parentPath;
        this.name = name;
        this.__childCache = null;
      }, "Path");
      var Pp = Path2.prototype;
      function getChildCache(path38) {
        return path38.__childCache || (path38.__childCache = /* @__PURE__ */ Object.create(null));
      }
      __name(getChildCache, "getChildCache");
      function getChildPath(path38, name) {
        var cache3 = getChildCache(path38);
        var actualChildValue = path38.getValueProperty(name);
        var childPath = cache3[name];
        if (!hasOwn.call(cache3, name) || // Ensure consistency between cache and reality.
        childPath.value !== actualChildValue) {
          childPath = cache3[name] = new path38.constructor(actualChildValue, path38, name);
        }
        return childPath;
      }
      __name(getChildPath, "getChildPath");
      Pp.getValueProperty = /* @__PURE__ */ __name(function getValueProperty(name) {
        return this.value[name];
      }, "getValueProperty");
      Pp.get = /* @__PURE__ */ __name(function get3() {
        var names = [];
        for (var _i = 0; _i < arguments.length; _i++) {
          names[_i] = arguments[_i];
        }
        var path38 = this;
        var count = names.length;
        for (var i3 = 0; i3 < count; ++i3) {
          path38 = getChildPath(path38, names[i3]);
        }
        return path38;
      }, "get");
      Pp.each = /* @__PURE__ */ __name(function each(callback, context) {
        var childPaths = [];
        var len = this.value.length;
        var i3 = 0;
        for (var i3 = 0; i3 < len; ++i3) {
          if (hasOwn.call(this.value, i3)) {
            childPaths[i3] = this.get(i3);
          }
        }
        context = context || this;
        for (i3 = 0; i3 < len; ++i3) {
          if (hasOwn.call(childPaths, i3)) {
            callback.call(context, childPaths[i3]);
          }
        }
      }, "each");
      Pp.map = /* @__PURE__ */ __name(function map3(callback, context) {
        var result2 = [];
        this.each(function(childPath) {
          result2.push(callback.call(this, childPath));
        }, context);
        return result2;
      }, "map");
      Pp.filter = /* @__PURE__ */ __name(function filter4(callback, context) {
        var result2 = [];
        this.each(function(childPath) {
          if (callback.call(this, childPath)) {
            result2.push(childPath);
          }
        }, context);
        return result2;
      }, "filter");
      function emptyMoves() {
      }
      __name(emptyMoves, "emptyMoves");
      function getMoves(path38, offset, start, end) {
        isArray2.assert(path38.value);
        if (offset === 0) {
          return emptyMoves;
        }
        var length = path38.value.length;
        if (length < 1) {
          return emptyMoves;
        }
        var argc = arguments.length;
        if (argc === 2) {
          start = 0;
          end = length;
        } else if (argc === 3) {
          start = Math.max(start, 0);
          end = length;
        } else {
          start = Math.max(start, 0);
          end = Math.min(end, length);
        }
        isNumber.assert(start);
        isNumber.assert(end);
        var moves = /* @__PURE__ */ Object.create(null);
        var cache3 = getChildCache(path38);
        for (var i3 = start; i3 < end; ++i3) {
          if (hasOwn.call(path38.value, i3)) {
            var childPath = path38.get(i3);
            if (childPath.name !== i3) {
              throw new Error("");
            }
            var newIndex = i3 + offset;
            childPath.name = newIndex;
            moves[newIndex] = childPath;
            delete cache3[i3];
          }
        }
        delete cache3.length;
        return function() {
          for (var newIndex2 in moves) {
            var childPath2 = moves[newIndex2];
            if (childPath2.name !== +newIndex2) {
              throw new Error("");
            }
            cache3[newIndex2] = childPath2;
            path38.value[newIndex2] = childPath2.value;
          }
        };
      }
      __name(getMoves, "getMoves");
      Pp.shift = /* @__PURE__ */ __name(function shift() {
        var move = getMoves(this, -1);
        var result2 = this.value.shift();
        move();
        return result2;
      }, "shift");
      Pp.unshift = /* @__PURE__ */ __name(function unshift() {
        var args = [];
        for (var _i = 0; _i < arguments.length; _i++) {
          args[_i] = arguments[_i];
        }
        var move = getMoves(this, args.length);
        var result2 = this.value.unshift.apply(this.value, args);
        move();
        return result2;
      }, "unshift");
      Pp.push = /* @__PURE__ */ __name(function push() {
        var args = [];
        for (var _i = 0; _i < arguments.length; _i++) {
          args[_i] = arguments[_i];
        }
        isArray2.assert(this.value);
        delete getChildCache(this).length;
        return this.value.push.apply(this.value, args);
      }, "push");
      Pp.pop = /* @__PURE__ */ __name(function pop() {
        isArray2.assert(this.value);
        var cache3 = getChildCache(this);
        delete cache3[this.value.length - 1];
        delete cache3.length;
        return this.value.pop();
      }, "pop");
      Pp.insertAt = /* @__PURE__ */ __name(function insertAt(index) {
        var argc = arguments.length;
        var move = getMoves(this, argc - 1, index);
        if (move === emptyMoves && argc <= 1) {
          return this;
        }
        index = Math.max(index, 0);
        for (var i3 = 1; i3 < argc; ++i3) {
          this.value[index + i3 - 1] = arguments[i3];
        }
        move();
        return this;
      }, "insertAt");
      Pp.insertBefore = /* @__PURE__ */ __name(function insertBefore() {
        var args = [];
        for (var _i = 0; _i < arguments.length; _i++) {
          args[_i] = arguments[_i];
        }
        var pp = this.parentPath;
        var argc = args.length;
        var insertAtArgs = [this.name];
        for (var i3 = 0; i3 < argc; ++i3) {
          insertAtArgs.push(args[i3]);
        }
        return pp.insertAt.apply(pp, insertAtArgs);
      }, "insertBefore");
      Pp.insertAfter = /* @__PURE__ */ __name(function insertAfter() {
        var args = [];
        for (var _i = 0; _i < arguments.length; _i++) {
          args[_i] = arguments[_i];
        }
        var pp = this.parentPath;
        var argc = args.length;
        var insertAtArgs = [this.name + 1];
        for (var i3 = 0; i3 < argc; ++i3) {
          insertAtArgs.push(args[i3]);
        }
        return pp.insertAt.apply(pp, insertAtArgs);
      }, "insertAfter");
      function repairRelationshipWithParent(path38) {
        if (!(path38 instanceof Path2)) {
          throw new Error("");
        }
        var pp = path38.parentPath;
        if (!pp) {
          return path38;
        }
        var parentValue = pp.value;
        var parentCache = getChildCache(pp);
        if (parentValue[path38.name] === path38.value) {
          parentCache[path38.name] = path38;
        } else if (isArray2.check(parentValue)) {
          var i3 = parentValue.indexOf(path38.value);
          if (i3 >= 0) {
            parentCache[path38.name = i3] = path38;
          }
        } else {
          parentValue[path38.name] = path38.value;
          parentCache[path38.name] = path38;
        }
        if (parentValue[path38.name] !== path38.value) {
          throw new Error("");
        }
        if (path38.parentPath.get(path38.name) !== path38) {
          throw new Error("");
        }
        return path38;
      }
      __name(repairRelationshipWithParent, "repairRelationshipWithParent");
      Pp.replace = /* @__PURE__ */ __name(function replace(replacement) {
        var results = [];
        var parentValue = this.parentPath.value;
        var parentCache = getChildCache(this.parentPath);
        var count = arguments.length;
        repairRelationshipWithParent(this);
        if (isArray2.check(parentValue)) {
          var originalLength = parentValue.length;
          var move = getMoves(this.parentPath, count - 1, this.name + 1);
          var spliceArgs = [this.name, 1];
          for (var i3 = 0; i3 < count; ++i3) {
            spliceArgs.push(arguments[i3]);
          }
          var splicedOut = parentValue.splice.apply(parentValue, spliceArgs);
          if (splicedOut[0] !== this.value) {
            throw new Error("");
          }
          if (parentValue.length !== originalLength - 1 + count) {
            throw new Error("");
          }
          move();
          if (count === 0) {
            delete this.value;
            delete parentCache[this.name];
            this.__childCache = null;
          } else {
            if (parentValue[this.name] !== replacement) {
              throw new Error("");
            }
            if (this.value !== replacement) {
              this.value = replacement;
              this.__childCache = null;
            }
            for (i3 = 0; i3 < count; ++i3) {
              results.push(this.parentPath.get(this.name + i3));
            }
            if (results[0] !== this) {
              throw new Error("");
            }
          }
        } else if (count === 1) {
          if (this.value !== replacement) {
            this.__childCache = null;
          }
          this.value = parentValue[this.name] = replacement;
          results.push(this);
        } else if (count === 0) {
          delete parentValue[this.name];
          delete this.value;
          this.__childCache = null;
        } else {
          throw new Error("Could not replace path");
        }
        return results;
      }, "replace");
      return Path2;
    }
    __name(pathPlugin, "pathPlugin");
    exports2.default = pathPlugin;
    module2.exports = exports2["default"];
  }
});

// ../../node_modules/ast-types/lib/scope.js
var require_scope = __commonJS({
  "../../node_modules/ast-types/lib/scope.js"(exports2, module2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
    var types_1 = tslib_1.__importDefault(require_types3());
    var hasOwn = Object.prototype.hasOwnProperty;
    function scopePlugin(fork) {
      var types5 = fork.use(types_1.default);
      var Type = types5.Type;
      var namedTypes = types5.namedTypes;
      var Node2 = namedTypes.Node;
      var Expression = namedTypes.Expression;
      var isArray2 = types5.builtInTypes.array;
      var b3 = types5.builders;
      var Scope = /* @__PURE__ */ __name(function Scope2(path38, parentScope) {
        if (!(this instanceof Scope2)) {
          throw new Error("Scope constructor cannot be invoked without 'new'");
        }
        ScopeType.assert(path38.value);
        var depth;
        if (parentScope) {
          if (!(parentScope instanceof Scope2)) {
            throw new Error("");
          }
          depth = parentScope.depth + 1;
        } else {
          parentScope = null;
          depth = 0;
        }
        Object.defineProperties(this, {
          path: { value: path38 },
          node: { value: path38.value },
          isGlobal: { value: !parentScope, enumerable: true },
          depth: { value: depth },
          parent: { value: parentScope },
          bindings: { value: {} },
          types: { value: {} }
        });
      }, "Scope");
      var scopeTypes = [
        // Program nodes introduce global scopes.
        namedTypes.Program,
        // Function is the supertype of FunctionExpression,
        // FunctionDeclaration, ArrowExpression, etc.
        namedTypes.Function,
        // In case you didn't know, the caught parameter shadows any variable
        // of the same name in an outer scope.
        namedTypes.CatchClause
      ];
      var ScopeType = Type.or.apply(Type, scopeTypes);
      Scope.isEstablishedBy = function(node) {
        return ScopeType.check(node);
      };
      var Sp = Scope.prototype;
      Sp.didScan = false;
      Sp.declares = function(name) {
        this.scan();
        return hasOwn.call(this.bindings, name);
      };
      Sp.declaresType = function(name) {
        this.scan();
        return hasOwn.call(this.types, name);
      };
      Sp.declareTemporary = function(prefix2) {
        if (prefix2) {
          if (!/^[a-z$_]/i.test(prefix2)) {
            throw new Error("");
          }
        } else {
          prefix2 = "t$";
        }
        prefix2 += this.depth.toString(36) + "$";
        this.scan();
        var index = 0;
        while (this.declares(prefix2 + index)) {
          ++index;
        }
        var name = prefix2 + index;
        return this.bindings[name] = types5.builders.identifier(name);
      };
      Sp.injectTemporary = function(identifier, init) {
        identifier || (identifier = this.declareTemporary());
        var bodyPath = this.path.get("body");
        if (namedTypes.BlockStatement.check(bodyPath.value)) {
          bodyPath = bodyPath.get("body");
        }
        bodyPath.unshift(b3.variableDeclaration("var", [b3.variableDeclarator(identifier, init || null)]));
        return identifier;
      };
      Sp.scan = function(force) {
        if (force || !this.didScan) {
          for (var name in this.bindings) {
            delete this.bindings[name];
          }
          scanScope(this.path, this.bindings, this.types);
          this.didScan = true;
        }
      };
      Sp.getBindings = function() {
        this.scan();
        return this.bindings;
      };
      Sp.getTypes = function() {
        this.scan();
        return this.types;
      };
      function scanScope(path38, bindings, scopeTypes2) {
        var node = path38.value;
        ScopeType.assert(node);
        if (namedTypes.CatchClause.check(node)) {
          var param = path38.get("param");
          if (param.value) {
            addPattern(param, bindings);
          }
        } else {
          recursiveScanScope(path38, bindings, scopeTypes2);
        }
      }
      __name(scanScope, "scanScope");
      function recursiveScanScope(path38, bindings, scopeTypes2) {
        var node = path38.value;
        if (path38.parent && namedTypes.FunctionExpression.check(path38.parent.node) && path38.parent.node.id) {
          addPattern(path38.parent.get("id"), bindings);
        }
        if (!node) {
        } else if (isArray2.check(node)) {
          path38.each(function(childPath) {
            recursiveScanChild(childPath, bindings, scopeTypes2);
          });
        } else if (namedTypes.Function.check(node)) {
          path38.get("params").each(function(paramPath) {
            addPattern(paramPath, bindings);
          });
          recursiveScanChild(path38.get("body"), bindings, scopeTypes2);
        } else if (namedTypes.TypeAlias && namedTypes.TypeAlias.check(node) || namedTypes.InterfaceDeclaration && namedTypes.InterfaceDeclaration.check(node) || namedTypes.TSTypeAliasDeclaration && namedTypes.TSTypeAliasDeclaration.check(node) || namedTypes.TSInterfaceDeclaration && namedTypes.TSInterfaceDeclaration.check(node)) {
          addTypePattern(path38.get("id"), scopeTypes2);
        } else if (namedTypes.VariableDeclarator.check(node)) {
          addPattern(path38.get("id"), bindings);
          recursiveScanChild(path38.get("init"), bindings, scopeTypes2);
        } else if (node.type === "ImportSpecifier" || node.type === "ImportNamespaceSpecifier" || node.type === "ImportDefaultSpecifier") {
          addPattern(
            // Esprima used to use the .name field to refer to the local
            // binding identifier for ImportSpecifier nodes, but .id for
            // ImportNamespaceSpecifier and ImportDefaultSpecifier nodes.
            // ESTree/Acorn/ESpree use .local for all three node types.
            path38.get(node.local ? "local" : node.name ? "name" : "id"),
            bindings
          );
        } else if (Node2.check(node) && !Expression.check(node)) {
          types5.eachField(node, function(name, child) {
            var childPath = path38.get(name);
            if (!pathHasValue(childPath, child)) {
              throw new Error("");
            }
            recursiveScanChild(childPath, bindings, scopeTypes2);
          });
        }
      }
      __name(recursiveScanScope, "recursiveScanScope");
      function pathHasValue(path38, value) {
        if (path38.value === value) {
          return true;
        }
        if (Array.isArray(path38.value) && path38.value.length === 0 && Array.isArray(value) && value.length === 0) {
          return true;
        }
        return false;
      }
      __name(pathHasValue, "pathHasValue");
      function recursiveScanChild(path38, bindings, scopeTypes2) {
        var node = path38.value;
        if (!node || Expression.check(node)) {
        } else if (namedTypes.FunctionDeclaration.check(node) && node.id !== null) {
          addPattern(path38.get("id"), bindings);
        } else if (namedTypes.ClassDeclaration && namedTypes.ClassDeclaration.check(node)) {
          addPattern(path38.get("id"), bindings);
        } else if (ScopeType.check(node)) {
          if (namedTypes.CatchClause.check(node) && // TODO Broaden this to accept any pattern.
          namedTypes.Identifier.check(node.param)) {
            var catchParamName = node.param.name;
            var hadBinding = hasOwn.call(bindings, catchParamName);
            recursiveScanScope(path38.get("body"), bindings, scopeTypes2);
            if (!hadBinding) {
              delete bindings[catchParamName];
            }
          }
        } else {
          recursiveScanScope(path38, bindings, scopeTypes2);
        }
      }
      __name(recursiveScanChild, "recursiveScanChild");
      function addPattern(patternPath, bindings) {
        var pattern = patternPath.value;
        namedTypes.Pattern.assert(pattern);
        if (namedTypes.Identifier.check(pattern)) {
          if (hasOwn.call(bindings, pattern.name)) {
            bindings[pattern.name].push(patternPath);
          } else {
            bindings[pattern.name] = [patternPath];
          }
        } else if (namedTypes.AssignmentPattern && namedTypes.AssignmentPattern.check(pattern)) {
          addPattern(patternPath.get("left"), bindings);
        } else if (namedTypes.ObjectPattern && namedTypes.ObjectPattern.check(pattern)) {
          patternPath.get("properties").each(function(propertyPath) {
            var property = propertyPath.value;
            if (namedTypes.Pattern.check(property)) {
              addPattern(propertyPath, bindings);
            } else if (namedTypes.Property.check(property)) {
              addPattern(propertyPath.get("value"), bindings);
            } else if (namedTypes.SpreadProperty && namedTypes.SpreadProperty.check(property)) {
              addPattern(propertyPath.get("argument"), bindings);
            }
          });
        } else if (namedTypes.ArrayPattern && namedTypes.ArrayPattern.check(pattern)) {
          patternPath.get("elements").each(function(elementPath) {
            var element = elementPath.value;
            if (namedTypes.Pattern.check(element)) {
              addPattern(elementPath, bindings);
            } else if (namedTypes.SpreadElement && namedTypes.SpreadElement.check(element)) {
              addPattern(elementPath.get("argument"), bindings);
            }
          });
        } else if (namedTypes.PropertyPattern && namedTypes.PropertyPattern.check(pattern)) {
          addPattern(patternPath.get("pattern"), bindings);
        } else if (namedTypes.SpreadElementPattern && namedTypes.SpreadElementPattern.check(pattern) || namedTypes.SpreadPropertyPattern && namedTypes.SpreadPropertyPattern.check(pattern)) {
          addPattern(patternPath.get("argument"), bindings);
        }
      }
      __name(addPattern, "addPattern");
      function addTypePattern(patternPath, types6) {
        var pattern = patternPath.value;
        namedTypes.Pattern.assert(pattern);
        if (namedTypes.Identifier.check(pattern)) {
          if (hasOwn.call(types6, pattern.name)) {
            types6[pattern.name].push(patternPath);
          } else {
            types6[pattern.name] = [patternPath];
          }
        }
      }
      __name(addTypePattern, "addTypePattern");
      Sp.lookup = function(name) {
        for (var scope = this; scope; scope = scope.parent)
          if (scope.declares(name))
            break;
        return scope;
      };
      Sp.lookupType = function(name) {
        for (var scope = this; scope; scope = scope.parent)
          if (scope.declaresType(name))
            break;
        return scope;
      };
      Sp.getGlobalScope = function() {
        var scope = this;
        while (!scope.isGlobal)
          scope = scope.parent;
        return scope;
      };
      return Scope;
    }
    __name(scopePlugin, "scopePlugin");
    exports2.default = scopePlugin;
    module2.exports = exports2["default"];
  }
});

// ../../node_modules/ast-types/lib/node-path.js
var require_node_path = __commonJS({
  "../../node_modules/ast-types/lib/node-path.js"(exports2, module2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
    var types_1 = tslib_1.__importDefault(require_types3());
    var path_1 = tslib_1.__importDefault(require_path2());
    var scope_1 = tslib_1.__importDefault(require_scope());
    function nodePathPlugin(fork) {
      var types5 = fork.use(types_1.default);
      var n3 = types5.namedTypes;
      var b3 = types5.builders;
      var isNumber = types5.builtInTypes.number;
      var isArray2 = types5.builtInTypes.array;
      var Path2 = fork.use(path_1.default);
      var Scope = fork.use(scope_1.default);
      var NodePath = /* @__PURE__ */ __name(function NodePath2(value, parentPath, name) {
        if (!(this instanceof NodePath2)) {
          throw new Error("NodePath constructor cannot be invoked without 'new'");
        }
        Path2.call(this, value, parentPath, name);
      }, "NodePath");
      var NPp = NodePath.prototype = Object.create(Path2.prototype, {
        constructor: {
          value: NodePath,
          enumerable: false,
          writable: true,
          configurable: true
        }
      });
      Object.defineProperties(NPp, {
        node: {
          get: /* @__PURE__ */ __name(function() {
            Object.defineProperty(this, "node", {
              configurable: true,
              value: this._computeNode()
            });
            return this.node;
          }, "get")
        },
        parent: {
          get: /* @__PURE__ */ __name(function() {
            Object.defineProperty(this, "parent", {
              configurable: true,
              value: this._computeParent()
            });
            return this.parent;
          }, "get")
        },
        scope: {
          get: /* @__PURE__ */ __name(function() {
            Object.defineProperty(this, "scope", {
              configurable: true,
              value: this._computeScope()
            });
            return this.scope;
          }, "get")
        }
      });
      NPp.replace = function() {
        delete this.node;
        delete this.parent;
        delete this.scope;
        return Path2.prototype.replace.apply(this, arguments);
      };
      NPp.prune = function() {
        var remainingNodePath = this.parent;
        this.replace();
        return cleanUpNodesAfterPrune(remainingNodePath);
      };
      NPp._computeNode = function() {
        var value = this.value;
        if (n3.Node.check(value)) {
          return value;
        }
        var pp = this.parentPath;
        return pp && pp.node || null;
      };
      NPp._computeParent = function() {
        var value = this.value;
        var pp = this.parentPath;
        if (!n3.Node.check(value)) {
          while (pp && !n3.Node.check(pp.value)) {
            pp = pp.parentPath;
          }
          if (pp) {
            pp = pp.parentPath;
          }
        }
        while (pp && !n3.Node.check(pp.value)) {
          pp = pp.parentPath;
        }
        return pp || null;
      };
      NPp._computeScope = function() {
        var value = this.value;
        var pp = this.parentPath;
        var scope = pp && pp.scope;
        if (n3.Node.check(value) && Scope.isEstablishedBy(value)) {
          scope = new Scope(this, scope);
        }
        return scope || null;
      };
      NPp.getValueProperty = function(name) {
        return types5.getFieldValue(this.value, name);
      };
      NPp.needsParens = function(assumeExpressionContext) {
        var pp = this.parentPath;
        if (!pp) {
          return false;
        }
        var node = this.value;
        if (!n3.Expression.check(node)) {
          return false;
        }
        if (node.type === "Identifier") {
          return false;
        }
        while (!n3.Node.check(pp.value)) {
          pp = pp.parentPath;
          if (!pp) {
            return false;
          }
        }
        var parent = pp.value;
        switch (node.type) {
          case "UnaryExpression":
          case "SpreadElement":
          case "SpreadProperty":
            return parent.type === "MemberExpression" && this.name === "object" && parent.object === node;
          case "BinaryExpression":
          case "LogicalExpression":
            switch (parent.type) {
              case "CallExpression":
                return this.name === "callee" && parent.callee === node;
              case "UnaryExpression":
              case "SpreadElement":
              case "SpreadProperty":
                return true;
              case "MemberExpression":
                return this.name === "object" && parent.object === node;
              case "BinaryExpression":
              case "LogicalExpression": {
                var n_1 = node;
                var po = parent.operator;
                var pp_1 = PRECEDENCE[po];
                var no = n_1.operator;
                var np = PRECEDENCE[no];
                if (pp_1 > np) {
                  return true;
                }
                if (pp_1 === np && this.name === "right") {
                  if (parent.right !== n_1) {
                    throw new Error("Nodes must be equal");
                  }
                  return true;
                }
              }
              default:
                return false;
            }
          case "SequenceExpression":
            switch (parent.type) {
              case "ForStatement":
                return false;
              case "ExpressionStatement":
                return this.name !== "expression";
              default:
                return true;
            }
          case "YieldExpression":
            switch (parent.type) {
              case "BinaryExpression":
              case "LogicalExpression":
              case "UnaryExpression":
              case "SpreadElement":
              case "SpreadProperty":
              case "CallExpression":
              case "MemberExpression":
              case "NewExpression":
              case "ConditionalExpression":
              case "YieldExpression":
                return true;
              default:
                return false;
            }
          case "Literal":
            return parent.type === "MemberExpression" && isNumber.check(node.value) && this.name === "object" && parent.object === node;
          case "AssignmentExpression":
          case "ConditionalExpression":
            switch (parent.type) {
              case "UnaryExpression":
              case "SpreadElement":
              case "SpreadProperty":
              case "BinaryExpression":
              case "LogicalExpression":
                return true;
              case "CallExpression":
                return this.name === "callee" && parent.callee === node;
              case "ConditionalExpression":
                return this.name === "test" && parent.test === node;
              case "MemberExpression":
                return this.name === "object" && parent.object === node;
              default:
                return false;
            }
          default:
            if (parent.type === "NewExpression" && this.name === "callee" && parent.callee === node) {
              return containsCallExpression(node);
            }
        }
        if (assumeExpressionContext !== true && !this.canBeFirstInStatement() && this.firstInStatement())
          return true;
        return false;
      };
      function isBinary(node) {
        return n3.BinaryExpression.check(node) || n3.LogicalExpression.check(node);
      }
      __name(isBinary, "isBinary");
      function isUnaryLike(node) {
        return n3.UnaryExpression.check(node) || n3.SpreadElement && n3.SpreadElement.check(node) || n3.SpreadProperty && n3.SpreadProperty.check(node);
      }
      __name(isUnaryLike, "isUnaryLike");
      var PRECEDENCE = {};
      [
        ["||"],
        ["&&"],
        ["|"],
        ["^"],
        ["&"],
        ["==", "===", "!=", "!=="],
        ["<", ">", "<=", ">=", "in", "instanceof"],
        [">>", "<<", ">>>"],
        ["+", "-"],
        ["*", "/", "%"]
      ].forEach(function(tier, i3) {
        tier.forEach(function(op2) {
          PRECEDENCE[op2] = i3;
        });
      });
      function containsCallExpression(node) {
        if (n3.CallExpression.check(node)) {
          return true;
        }
        if (isArray2.check(node)) {
          return node.some(containsCallExpression);
        }
        if (n3.Node.check(node)) {
          return types5.someField(node, function(_name, child) {
            return containsCallExpression(child);
          });
        }
        return false;
      }
      __name(containsCallExpression, "containsCallExpression");
      NPp.canBeFirstInStatement = function() {
        var node = this.node;
        return !n3.FunctionExpression.check(node) && !n3.ObjectExpression.check(node);
      };
      NPp.firstInStatement = function() {
        return firstInStatement(this);
      };
      function firstInStatement(path38) {
        for (var node, parent; path38.parent; path38 = path38.parent) {
          node = path38.node;
          parent = path38.parent.node;
          if (n3.BlockStatement.check(parent) && path38.parent.name === "body" && path38.name === 0) {
            if (parent.body[0] !== node) {
              throw new Error("Nodes must be equal");
            }
            return true;
          }
          if (n3.ExpressionStatement.check(parent) && path38.name === "expression") {
            if (parent.expression !== node) {
              throw new Error("Nodes must be equal");
            }
            return true;
          }
          if (n3.SequenceExpression.check(parent) && path38.parent.name === "expressions" && path38.name === 0) {
            if (parent.expressions[0] !== node) {
              throw new Error("Nodes must be equal");
            }
            continue;
          }
          if (n3.CallExpression.check(parent) && path38.name === "callee") {
            if (parent.callee !== node) {
              throw new Error("Nodes must be equal");
            }
            continue;
          }
          if (n3.MemberExpression.check(parent) && path38.name === "object") {
            if (parent.object !== node) {
              throw new Error("Nodes must be equal");
            }
            continue;
          }
          if (n3.ConditionalExpression.check(parent) && path38.name === "test") {
            if (parent.test !== node) {
              throw new Error("Nodes must be equal");
            }
            continue;
          }
          if (isBinary(parent) && path38.name === "left") {
            if (parent.left !== node) {
              throw new Error("Nodes must be equal");
            }
            continue;
          }
          if (n3.UnaryExpression.check(parent) && !parent.prefix && path38.name === "argument") {
            if (parent.argument !== node) {
              throw new Error("Nodes must be equal");
            }
            continue;
          }
          return false;
        }
        return true;
      }
      __name(firstInStatement, "firstInStatement");
      function cleanUpNodesAfterPrune(remainingNodePath) {
        if (n3.VariableDeclaration.check(remainingNodePath.node)) {
          var declarations = remainingNodePath.get("declarations").value;
          if (!declarations || declarations.length === 0) {
            return remainingNodePath.prune();
          }
        } else if (n3.ExpressionStatement.check(remainingNodePath.node)) {
          if (!remainingNodePath.get("expression").value) {
            return remainingNodePath.prune();
          }
        } else if (n3.IfStatement.check(remainingNodePath.node)) {
          cleanUpIfStatementAfterPrune(remainingNodePath);
        }
        return remainingNodePath;
      }
      __name(cleanUpNodesAfterPrune, "cleanUpNodesAfterPrune");
      function cleanUpIfStatementAfterPrune(ifStatement) {
        var testExpression = ifStatement.get("test").value;
        var alternate = ifStatement.get("alternate").value;
        var consequent = ifStatement.get("consequent").value;
        if (!consequent && !alternate) {
          var testExpressionStatement = b3.expressionStatement(testExpression);
          ifStatement.replace(testExpressionStatement);
        } else if (!consequent && alternate) {
          var negatedTestExpression = b3.unaryExpression("!", testExpression, true);
          if (n3.UnaryExpression.check(testExpression) && testExpression.operator === "!") {
            negatedTestExpression = testExpression.argument;
          }
          ifStatement.get("test").replace(negatedTestExpression);
          ifStatement.get("consequent").replace(alternate);
          ifStatement.get("alternate").replace();
        }
      }
      __name(cleanUpIfStatementAfterPrune, "cleanUpIfStatementAfterPrune");
      return NodePath;
    }
    __name(nodePathPlugin, "nodePathPlugin");
    exports2.default = nodePathPlugin;
    module2.exports = exports2["default"];
  }
});

// ../../node_modules/ast-types/lib/path-visitor.js
var require_path_visitor = __commonJS({
  "../../node_modules/ast-types/lib/path-visitor.js"(exports2, module2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
    var types_1 = tslib_1.__importDefault(require_types3());
    var node_path_1 = tslib_1.__importDefault(require_node_path());
    var hasOwn = Object.prototype.hasOwnProperty;
    function pathVisitorPlugin(fork) {
      var types5 = fork.use(types_1.default);
      var NodePath = fork.use(node_path_1.default);
      var isArray2 = types5.builtInTypes.array;
      var isObject3 = types5.builtInTypes.object;
      var isFunction = types5.builtInTypes.function;
      var undefined2;
      var PathVisitor = /* @__PURE__ */ __name(function PathVisitor2() {
        if (!(this instanceof PathVisitor2)) {
          throw new Error("PathVisitor constructor cannot be invoked without 'new'");
        }
        this._reusableContextStack = [];
        this._methodNameTable = computeMethodNameTable(this);
        this._shouldVisitComments = hasOwn.call(this._methodNameTable, "Block") || hasOwn.call(this._methodNameTable, "Line");
        this.Context = makeContextConstructor(this);
        this._visiting = false;
        this._changeReported = false;
      }, "PathVisitor");
      function computeMethodNameTable(visitor) {
        var typeNames = /* @__PURE__ */ Object.create(null);
        for (var methodName in visitor) {
          if (/^visit[A-Z]/.test(methodName)) {
            typeNames[methodName.slice("visit".length)] = true;
          }
        }
        var supertypeTable = types5.computeSupertypeLookupTable(typeNames);
        var methodNameTable = /* @__PURE__ */ Object.create(null);
        var typeNameKeys = Object.keys(supertypeTable);
        var typeNameCount = typeNameKeys.length;
        for (var i3 = 0; i3 < typeNameCount; ++i3) {
          var typeName = typeNameKeys[i3];
          methodName = "visit" + supertypeTable[typeName];
          if (isFunction.check(visitor[methodName])) {
            methodNameTable[typeName] = methodName;
          }
        }
        return methodNameTable;
      }
      __name(computeMethodNameTable, "computeMethodNameTable");
      PathVisitor.fromMethodsObject = /* @__PURE__ */ __name(function fromMethodsObject(methods) {
        if (methods instanceof PathVisitor) {
          return methods;
        }
        if (!isObject3.check(methods)) {
          return new PathVisitor();
        }
        var Visitor = /* @__PURE__ */ __name(function Visitor2() {
          if (!(this instanceof Visitor2)) {
            throw new Error("Visitor constructor cannot be invoked without 'new'");
          }
          PathVisitor.call(this);
        }, "Visitor");
        var Vp = Visitor.prototype = Object.create(PVp);
        Vp.constructor = Visitor;
        extend(Vp, methods);
        extend(Visitor, PathVisitor);
        isFunction.assert(Visitor.fromMethodsObject);
        isFunction.assert(Visitor.visit);
        return new Visitor();
      }, "fromMethodsObject");
      function extend(target, source) {
        for (var property in source) {
          if (hasOwn.call(source, property)) {
            target[property] = source[property];
          }
        }
        return target;
      }
      __name(extend, "extend");
      PathVisitor.visit = /* @__PURE__ */ __name(function visit(node, methods) {
        return PathVisitor.fromMethodsObject(methods).visit(node);
      }, "visit");
      var PVp = PathVisitor.prototype;
      PVp.visit = function() {
        if (this._visiting) {
          throw new Error("Recursively calling visitor.visit(path) resets visitor state. Try this.visit(path) or this.traverse(path) instead.");
        }
        this._visiting = true;
        this._changeReported = false;
        this._abortRequested = false;
        var argc = arguments.length;
        var args = new Array(argc);
        for (var i3 = 0; i3 < argc; ++i3) {
          args[i3] = arguments[i3];
        }
        if (!(args[0] instanceof NodePath)) {
          args[0] = new NodePath({ root: args[0] }).get("root");
        }
        this.reset.apply(this, args);
        var didNotThrow;
        try {
          var root = this.visitWithoutReset(args[0]);
          didNotThrow = true;
        } finally {
          this._visiting = false;
          if (!didNotThrow && this._abortRequested) {
            return args[0].value;
          }
        }
        return root;
      };
      PVp.AbortRequest = /* @__PURE__ */ __name(function AbortRequest() {
      }, "AbortRequest");
      PVp.abort = function() {
        var visitor = this;
        visitor._abortRequested = true;
        var request2 = new visitor.AbortRequest();
        request2.cancel = function() {
          visitor._abortRequested = false;
        };
        throw request2;
      };
      PVp.reset = function(_path) {
      };
      PVp.visitWithoutReset = function(path38) {
        if (this instanceof this.Context) {
          return this.visitor.visitWithoutReset(path38);
        }
        if (!(path38 instanceof NodePath)) {
          throw new Error("");
        }
        var value = path38.value;
        var methodName = value && typeof value === "object" && typeof value.type === "string" && this._methodNameTable[value.type];
        if (methodName) {
          var context = this.acquireContext(path38);
          try {
            return context.invokeVisitorMethod(methodName);
          } finally {
            this.releaseContext(context);
          }
        } else {
          return visitChildren(path38, this);
        }
      };
      function visitChildren(path38, visitor) {
        if (!(path38 instanceof NodePath)) {
          throw new Error("");
        }
        if (!(visitor instanceof PathVisitor)) {
          throw new Error("");
        }
        var value = path38.value;
        if (isArray2.check(value)) {
          path38.each(visitor.visitWithoutReset, visitor);
        } else if (!isObject3.check(value)) {
        } else {
          var childNames = types5.getFieldNames(value);
          if (visitor._shouldVisitComments && value.comments && childNames.indexOf("comments") < 0) {
            childNames.push("comments");
          }
          var childCount = childNames.length;
          var childPaths = [];
          for (var i3 = 0; i3 < childCount; ++i3) {
            var childName = childNames[i3];
            if (!hasOwn.call(value, childName)) {
              value[childName] = types5.getFieldValue(value, childName);
            }
            childPaths.push(path38.get(childName));
          }
          for (var i3 = 0; i3 < childCount; ++i3) {
            visitor.visitWithoutReset(childPaths[i3]);
          }
        }
        return path38.value;
      }
      __name(visitChildren, "visitChildren");
      PVp.acquireContext = function(path38) {
        if (this._reusableContextStack.length === 0) {
          return new this.Context(path38);
        }
        return this._reusableContextStack.pop().reset(path38);
      };
      PVp.releaseContext = function(context) {
        if (!(context instanceof this.Context)) {
          throw new Error("");
        }
        this._reusableContextStack.push(context);
        context.currentPath = null;
      };
      PVp.reportChanged = function() {
        this._changeReported = true;
      };
      PVp.wasChangeReported = function() {
        return this._changeReported;
      };
      function makeContextConstructor(visitor) {
        function Context2(path38) {
          if (!(this instanceof Context2)) {
            throw new Error("");
          }
          if (!(this instanceof PathVisitor)) {
            throw new Error("");
          }
          if (!(path38 instanceof NodePath)) {
            throw new Error("");
          }
          Object.defineProperty(this, "visitor", {
            value: visitor,
            writable: false,
            enumerable: true,
            configurable: false
          });
          this.currentPath = path38;
          this.needToCallTraverse = true;
          Object.seal(this);
        }
        __name(Context2, "Context");
        if (!(visitor instanceof PathVisitor)) {
          throw new Error("");
        }
        var Cp = Context2.prototype = Object.create(visitor);
        Cp.constructor = Context2;
        extend(Cp, sharedContextProtoMethods);
        return Context2;
      }
      __name(makeContextConstructor, "makeContextConstructor");
      var sharedContextProtoMethods = /* @__PURE__ */ Object.create(null);
      sharedContextProtoMethods.reset = /* @__PURE__ */ __name(function reset3(path38) {
        if (!(this instanceof this.Context)) {
          throw new Error("");
        }
        if (!(path38 instanceof NodePath)) {
          throw new Error("");
        }
        this.currentPath = path38;
        this.needToCallTraverse = true;
        return this;
      }, "reset");
      sharedContextProtoMethods.invokeVisitorMethod = /* @__PURE__ */ __name(function invokeVisitorMethod(methodName) {
        if (!(this instanceof this.Context)) {
          throw new Error("");
        }
        if (!(this.currentPath instanceof NodePath)) {
          throw new Error("");
        }
        var result2 = this.visitor[methodName].call(this, this.currentPath);
        if (result2 === false) {
          this.needToCallTraverse = false;
        } else if (result2 !== undefined2) {
          this.currentPath = this.currentPath.replace(result2)[0];
          if (this.needToCallTraverse) {
            this.traverse(this.currentPath);
          }
        }
        if (this.needToCallTraverse !== false) {
          throw new Error("Must either call this.traverse or return false in " + methodName);
        }
        var path38 = this.currentPath;
        return path38 && path38.value;
      }, "invokeVisitorMethod");
      sharedContextProtoMethods.traverse = /* @__PURE__ */ __name(function traverse(path38, newVisitor) {
        if (!(this instanceof this.Context)) {
          throw new Error("");
        }
        if (!(path38 instanceof NodePath)) {
          throw new Error("");
        }
        if (!(this.currentPath instanceof NodePath)) {
          throw new Error("");
        }
        this.needToCallTraverse = false;
        return visitChildren(path38, PathVisitor.fromMethodsObject(newVisitor || this.visitor));
      }, "traverse");
      sharedContextProtoMethods.visit = /* @__PURE__ */ __name(function visit(path38, newVisitor) {
        if (!(this instanceof this.Context)) {
          throw new Error("");
        }
        if (!(path38 instanceof NodePath)) {
          throw new Error("");
        }
        if (!(this.currentPath instanceof NodePath)) {
          throw new Error("");
        }
        this.needToCallTraverse = false;
        return PathVisitor.fromMethodsObject(newVisitor || this.visitor).visitWithoutReset(path38);
      }, "visit");
      sharedContextProtoMethods.reportChanged = /* @__PURE__ */ __name(function reportChanged() {
        this.visitor.reportChanged();
      }, "reportChanged");
      sharedContextProtoMethods.abort = /* @__PURE__ */ __name(function abort() {
        this.needToCallTraverse = false;
        this.visitor.abort();
      }, "abort");
      return PathVisitor;
    }
    __name(pathVisitorPlugin, "pathVisitorPlugin");
    exports2.default = pathVisitorPlugin;
    module2.exports = exports2["default"];
  }
});

// ../../node_modules/ast-types/lib/equiv.js
var require_equiv = __commonJS({
  "../../node_modules/ast-types/lib/equiv.js"(exports2, module2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
    var types_1 = tslib_1.__importDefault(require_types3());
    function default_1(fork) {
      var types5 = fork.use(types_1.default);
      var getFieldNames = types5.getFieldNames;
      var getFieldValue = types5.getFieldValue;
      var isArray2 = types5.builtInTypes.array;
      var isObject3 = types5.builtInTypes.object;
      var isDate = types5.builtInTypes.Date;
      var isRegExp = types5.builtInTypes.RegExp;
      var hasOwn = Object.prototype.hasOwnProperty;
      function astNodesAreEquivalent(a3, b3, problemPath) {
        if (isArray2.check(problemPath)) {
          problemPath.length = 0;
        } else {
          problemPath = null;
        }
        return areEquivalent(a3, b3, problemPath);
      }
      __name(astNodesAreEquivalent, "astNodesAreEquivalent");
      astNodesAreEquivalent.assert = function(a3, b3) {
        var problemPath = [];
        if (!astNodesAreEquivalent(a3, b3, problemPath)) {
          if (problemPath.length === 0) {
            if (a3 !== b3) {
              throw new Error("Nodes must be equal");
            }
          } else {
            throw new Error("Nodes differ in the following path: " + problemPath.map(subscriptForProperty).join(""));
          }
        }
      };
      function subscriptForProperty(property) {
        if (/[_$a-z][_$a-z0-9]*/i.test(property)) {
          return "." + property;
        }
        return "[" + JSON.stringify(property) + "]";
      }
      __name(subscriptForProperty, "subscriptForProperty");
      function areEquivalent(a3, b3, problemPath) {
        if (a3 === b3) {
          return true;
        }
        if (isArray2.check(a3)) {
          return arraysAreEquivalent(a3, b3, problemPath);
        }
        if (isObject3.check(a3)) {
          return objectsAreEquivalent(a3, b3, problemPath);
        }
        if (isDate.check(a3)) {
          return isDate.check(b3) && +a3 === +b3;
        }
        if (isRegExp.check(a3)) {
          return isRegExp.check(b3) && (a3.source === b3.source && a3.global === b3.global && a3.multiline === b3.multiline && a3.ignoreCase === b3.ignoreCase);
        }
        return a3 == b3;
      }
      __name(areEquivalent, "areEquivalent");
      function arraysAreEquivalent(a3, b3, problemPath) {
        isArray2.assert(a3);
        var aLength = a3.length;
        if (!isArray2.check(b3) || b3.length !== aLength) {
          if (problemPath) {
            problemPath.push("length");
          }
          return false;
        }
        for (var i3 = 0; i3 < aLength; ++i3) {
          if (problemPath) {
            problemPath.push(i3);
          }
          if (i3 in a3 !== i3 in b3) {
            return false;
          }
          if (!areEquivalent(a3[i3], b3[i3], problemPath)) {
            return false;
          }
          if (problemPath) {
            var problemPathTail = problemPath.pop();
            if (problemPathTail !== i3) {
              throw new Error("" + problemPathTail);
            }
          }
        }
        return true;
      }
      __name(arraysAreEquivalent, "arraysAreEquivalent");
      function objectsAreEquivalent(a3, b3, problemPath) {
        isObject3.assert(a3);
        if (!isObject3.check(b3)) {
          return false;
        }
        if (a3.type !== b3.type) {
          if (problemPath) {
            problemPath.push("type");
          }
          return false;
        }
        var aNames = getFieldNames(a3);
        var aNameCount = aNames.length;
        var bNames = getFieldNames(b3);
        var bNameCount = bNames.length;
        if (aNameCount === bNameCount) {
          for (var i3 = 0; i3 < aNameCount; ++i3) {
            var name = aNames[i3];
            var aChild = getFieldValue(a3, name);
            var bChild = getFieldValue(b3, name);
            if (problemPath) {
              problemPath.push(name);
            }
            if (!areEquivalent(aChild, bChild, problemPath)) {
              return false;
            }
            if (problemPath) {
              var problemPathTail = problemPath.pop();
              if (problemPathTail !== name) {
                throw new Error("" + problemPathTail);
              }
            }
          }
          return true;
        }
        if (!problemPath) {
          return false;
        }
        var seenNames = /* @__PURE__ */ Object.create(null);
        for (i3 = 0; i3 < aNameCount; ++i3) {
          seenNames[aNames[i3]] = true;
        }
        for (i3 = 0; i3 < bNameCount; ++i3) {
          name = bNames[i3];
          if (!hasOwn.call(seenNames, name)) {
            problemPath.push(name);
            return false;
          }
          delete seenNames[name];
        }
        for (name in seenNames) {
          problemPath.push(name);
          break;
        }
        return false;
      }
      __name(objectsAreEquivalent, "objectsAreEquivalent");
      return astNodesAreEquivalent;
    }
    __name(default_1, "default_1");
    exports2.default = default_1;
    module2.exports = exports2["default"];
  }
});

// ../../node_modules/ast-types/fork.js
var require_fork = __commonJS({
  "../../node_modules/ast-types/fork.js"(exports2, module2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
    var types_1 = tslib_1.__importDefault(require_types3());
    var path_visitor_1 = tslib_1.__importDefault(require_path_visitor());
    var equiv_1 = tslib_1.__importDefault(require_equiv());
    var path_1 = tslib_1.__importDefault(require_path2());
    var node_path_1 = tslib_1.__importDefault(require_node_path());
    function default_1(defs) {
      var fork = createFork();
      var types5 = fork.use(types_1.default);
      defs.forEach(fork.use);
      types5.finalize();
      var PathVisitor = fork.use(path_visitor_1.default);
      return {
        Type: types5.Type,
        builtInTypes: types5.builtInTypes,
        namedTypes: types5.namedTypes,
        builders: types5.builders,
        defineMethod: types5.defineMethod,
        getFieldNames: types5.getFieldNames,
        getFieldValue: types5.getFieldValue,
        eachField: types5.eachField,
        someField: types5.someField,
        getSupertypeNames: types5.getSupertypeNames,
        getBuilderName: types5.getBuilderName,
        astNodesAreEquivalent: fork.use(equiv_1.default),
        finalize: types5.finalize,
        Path: fork.use(path_1.default),
        NodePath: fork.use(node_path_1.default),
        PathVisitor,
        use: fork.use,
        visit: PathVisitor.visit
      };
    }
    __name(default_1, "default_1");
    exports2.default = default_1;
    function createFork() {
      var used = [];
      var usedResult = [];
      function use(plugin) {
        var idx = used.indexOf(plugin);
        if (idx === -1) {
          idx = used.length;
          used.push(plugin);
          usedResult[idx] = plugin(fork);
        }
        return usedResult[idx];
      }
      __name(use, "use");
      var fork = { use };
      return fork;
    }
    __name(createFork, "createFork");
    module2.exports = exports2["default"];
  }
});

// ../../node_modules/ast-types/lib/shared.js
var require_shared = __commonJS({
  "../../node_modules/ast-types/lib/shared.js"(exports2, module2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
    var types_1 = tslib_1.__importDefault(require_types3());
    function default_1(fork) {
      var types5 = fork.use(types_1.default);
      var Type = types5.Type;
      var builtin = types5.builtInTypes;
      var isNumber = builtin.number;
      function geq(than) {
        return Type.from(function(value) {
          return isNumber.check(value) && value >= than;
        }, isNumber + " >= " + than);
      }
      __name(geq, "geq");
      ;
      var defaults4 = {
        // Functions were used because (among other reasons) that's the most
        // elegant way to allow for the emptyArray one always to give a new
        // array instance.
        "null": /* @__PURE__ */ __name(function() {
          return null;
        }, "null"),
        "emptyArray": /* @__PURE__ */ __name(function() {
          return [];
        }, "emptyArray"),
        "false": /* @__PURE__ */ __name(function() {
          return false;
        }, "false"),
        "true": /* @__PURE__ */ __name(function() {
          return true;
        }, "true"),
        "undefined": /* @__PURE__ */ __name(function() {
        }, "undefined"),
        "use strict": /* @__PURE__ */ __name(function() {
          return "use strict";
        }, "use strict")
      };
      var naiveIsPrimitive = Type.or(builtin.string, builtin.number, builtin.boolean, builtin.null, builtin.undefined);
      var isPrimitive = Type.from(function(value) {
        if (value === null)
          return true;
        var type = typeof value;
        if (type === "object" || type === "function") {
          return false;
        }
        return true;
      }, naiveIsPrimitive.toString());
      return {
        geq,
        defaults: defaults4,
        isPrimitive
      };
    }
    __name(default_1, "default_1");
    exports2.default = default_1;
    module2.exports = exports2["default"];
  }
});

// ../../node_modules/ast-types/def/core.js
var require_core2 = __commonJS({
  "../../node_modules/ast-types/def/core.js"(exports2, module2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
    var types_1 = tslib_1.__importDefault(require_types3());
    var shared_1 = tslib_1.__importDefault(require_shared());
    function default_1(fork) {
      var types5 = fork.use(types_1.default);
      var Type = types5.Type;
      var def = Type.def;
      var or = Type.or;
      var shared = fork.use(shared_1.default);
      var defaults4 = shared.defaults;
      var geq = shared.geq;
      def("Printable").field("loc", or(def("SourceLocation"), null), defaults4["null"], true);
      def("Node").bases("Printable").field("type", String).field("comments", or([def("Comment")], null), defaults4["null"], true);
      def("SourceLocation").field("start", def("Position")).field("end", def("Position")).field("source", or(String, null), defaults4["null"]);
      def("Position").field("line", geq(1)).field("column", geq(0));
      def("File").bases("Node").build("program", "name").field("program", def("Program")).field("name", or(String, null), defaults4["null"]);
      def("Program").bases("Node").build("body").field("body", [def("Statement")]);
      def("Function").bases("Node").field("id", or(def("Identifier"), null), defaults4["null"]).field("params", [def("Pattern")]).field("body", def("BlockStatement")).field("generator", Boolean, defaults4["false"]).field("async", Boolean, defaults4["false"]);
      def("Statement").bases("Node");
      def("EmptyStatement").bases("Statement").build();
      def("BlockStatement").bases("Statement").build("body").field("body", [def("Statement")]);
      def("ExpressionStatement").bases("Statement").build("expression").field("expression", def("Expression"));
      def("IfStatement").bases("Statement").build("test", "consequent", "alternate").field("test", def("Expression")).field("consequent", def("Statement")).field("alternate", or(def("Statement"), null), defaults4["null"]);
      def("LabeledStatement").bases("Statement").build("label", "body").field("label", def("Identifier")).field("body", def("Statement"));
      def("BreakStatement").bases("Statement").build("label").field("label", or(def("Identifier"), null), defaults4["null"]);
      def("ContinueStatement").bases("Statement").build("label").field("label", or(def("Identifier"), null), defaults4["null"]);
      def("WithStatement").bases("Statement").build("object", "body").field("object", def("Expression")).field("body", def("Statement"));
      def("SwitchStatement").bases("Statement").build("discriminant", "cases", "lexical").field("discriminant", def("Expression")).field("cases", [def("SwitchCase")]).field("lexical", Boolean, defaults4["false"]);
      def("ReturnStatement").bases("Statement").build("argument").field("argument", or(def("Expression"), null));
      def("ThrowStatement").bases("Statement").build("argument").field("argument", def("Expression"));
      def("TryStatement").bases("Statement").build("block", "handler", "finalizer").field("block", def("BlockStatement")).field("handler", or(def("CatchClause"), null), function() {
        return this.handlers && this.handlers[0] || null;
      }).field("handlers", [def("CatchClause")], function() {
        return this.handler ? [this.handler] : [];
      }, true).field("guardedHandlers", [def("CatchClause")], defaults4.emptyArray).field("finalizer", or(def("BlockStatement"), null), defaults4["null"]);
      def("CatchClause").bases("Node").build("param", "guard", "body").field("param", or(def("Pattern"), null), defaults4["null"]).field("guard", or(def("Expression"), null), defaults4["null"]).field("body", def("BlockStatement"));
      def("WhileStatement").bases("Statement").build("test", "body").field("test", def("Expression")).field("body", def("Statement"));
      def("DoWhileStatement").bases("Statement").build("body", "test").field("body", def("Statement")).field("test", def("Expression"));
      def("ForStatement").bases("Statement").build("init", "test", "update", "body").field("init", or(def("VariableDeclaration"), def("Expression"), null)).field("test", or(def("Expression"), null)).field("update", or(def("Expression"), null)).field("body", def("Statement"));
      def("ForInStatement").bases("Statement").build("left", "right", "body").field("left", or(def("VariableDeclaration"), def("Expression"))).field("right", def("Expression")).field("body", def("Statement"));
      def("DebuggerStatement").bases("Statement").build();
      def("Declaration").bases("Statement");
      def("FunctionDeclaration").bases("Function", "Declaration").build("id", "params", "body").field("id", def("Identifier"));
      def("FunctionExpression").bases("Function", "Expression").build("id", "params", "body");
      def("VariableDeclaration").bases("Declaration").build("kind", "declarations").field("kind", or("var", "let", "const")).field("declarations", [def("VariableDeclarator")]);
      def("VariableDeclarator").bases("Node").build("id", "init").field("id", def("Pattern")).field("init", or(def("Expression"), null), defaults4["null"]);
      def("Expression").bases("Node");
      def("ThisExpression").bases("Expression").build();
      def("ArrayExpression").bases("Expression").build("elements").field("elements", [or(def("Expression"), null)]);
      def("ObjectExpression").bases("Expression").build("properties").field("properties", [def("Property")]);
      def("Property").bases("Node").build("kind", "key", "value").field("kind", or("init", "get", "set")).field("key", or(def("Literal"), def("Identifier"))).field("value", def("Expression"));
      def("SequenceExpression").bases("Expression").build("expressions").field("expressions", [def("Expression")]);
      var UnaryOperator = or("-", "+", "!", "~", "typeof", "void", "delete");
      def("UnaryExpression").bases("Expression").build("operator", "argument", "prefix").field("operator", UnaryOperator).field("argument", def("Expression")).field("prefix", Boolean, defaults4["true"]);
      var BinaryOperator = or(
        "==",
        "!=",
        "===",
        "!==",
        "<",
        "<=",
        ">",
        ">=",
        "<<",
        ">>",
        ">>>",
        "+",
        "-",
        "*",
        "/",
        "%",
        "**",
        "&",
        // TODO Missing from the Parser API.
        "|",
        "^",
        "in",
        "instanceof"
      );
      def("BinaryExpression").bases("Expression").build("operator", "left", "right").field("operator", BinaryOperator).field("left", def("Expression")).field("right", def("Expression"));
      var AssignmentOperator = or("=", "+=", "-=", "*=", "/=", "%=", "<<=", ">>=", ">>>=", "|=", "^=", "&=");
      def("AssignmentExpression").bases("Expression").build("operator", "left", "right").field("operator", AssignmentOperator).field("left", or(def("Pattern"), def("MemberExpression"))).field("right", def("Expression"));
      var UpdateOperator = or("++", "--");
      def("UpdateExpression").bases("Expression").build("operator", "argument", "prefix").field("operator", UpdateOperator).field("argument", def("Expression")).field("prefix", Boolean);
      var LogicalOperator = or("||", "&&");
      def("LogicalExpression").bases("Expression").build("operator", "left", "right").field("operator", LogicalOperator).field("left", def("Expression")).field("right", def("Expression"));
      def("ConditionalExpression").bases("Expression").build("test", "consequent", "alternate").field("test", def("Expression")).field("consequent", def("Expression")).field("alternate", def("Expression"));
      def("NewExpression").bases("Expression").build("callee", "arguments").field("callee", def("Expression")).field("arguments", [def("Expression")]);
      def("CallExpression").bases("Expression").build("callee", "arguments").field("callee", def("Expression")).field("arguments", [def("Expression")]);
      def("MemberExpression").bases("Expression").build("object", "property", "computed").field("object", def("Expression")).field("property", or(def("Identifier"), def("Expression"))).field("computed", Boolean, function() {
        var type = this.property.type;
        if (type === "Literal" || type === "MemberExpression" || type === "BinaryExpression") {
          return true;
        }
        return false;
      });
      def("Pattern").bases("Node");
      def("SwitchCase").bases("Node").build("test", "consequent").field("test", or(def("Expression"), null)).field("consequent", [def("Statement")]);
      def("Identifier").bases("Expression", "Pattern").build("name").field("name", String).field("optional", Boolean, defaults4["false"]);
      def("Literal").bases("Expression").build("value").field("value", or(String, Boolean, null, Number, RegExp)).field("regex", or({
        pattern: String,
        flags: String
      }, null), function() {
        if (this.value instanceof RegExp) {
          var flags = "";
          if (this.value.ignoreCase)
            flags += "i";
          if (this.value.multiline)
            flags += "m";
          if (this.value.global)
            flags += "g";
          return {
            pattern: this.value.source,
            flags
          };
        }
        return null;
      });
      def("Comment").bases("Printable").field("value", String).field("leading", Boolean, defaults4["true"]).field("trailing", Boolean, defaults4["false"]);
    }
    __name(default_1, "default_1");
    exports2.default = default_1;
    module2.exports = exports2["default"];
  }
});

// ../../node_modules/ast-types/def/es6.js
var require_es6 = __commonJS({
  "../../node_modules/ast-types/def/es6.js"(exports2, module2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
    var core_1 = tslib_1.__importDefault(require_core2());
    var types_1 = tslib_1.__importDefault(require_types3());
    var shared_1 = tslib_1.__importDefault(require_shared());
    function default_1(fork) {
      fork.use(core_1.default);
      var types5 = fork.use(types_1.default);
      var def = types5.Type.def;
      var or = types5.Type.or;
      var defaults4 = fork.use(shared_1.default).defaults;
      def("Function").field("generator", Boolean, defaults4["false"]).field("expression", Boolean, defaults4["false"]).field("defaults", [or(def("Expression"), null)], defaults4.emptyArray).field("rest", or(def("Identifier"), null), defaults4["null"]);
      def("RestElement").bases("Pattern").build("argument").field("argument", def("Pattern")).field(
        "typeAnnotation",
        // for Babylon. Flow parser puts it on the identifier
        or(def("TypeAnnotation"), def("TSTypeAnnotation"), null),
        defaults4["null"]
      );
      def("SpreadElementPattern").bases("Pattern").build("argument").field("argument", def("Pattern"));
      def("FunctionDeclaration").build("id", "params", "body", "generator", "expression");
      def("FunctionExpression").build("id", "params", "body", "generator", "expression");
      def("ArrowFunctionExpression").bases("Function", "Expression").build("params", "body", "expression").field("id", null, defaults4["null"]).field("body", or(def("BlockStatement"), def("Expression"))).field("generator", false, defaults4["false"]);
      def("ForOfStatement").bases("Statement").build("left", "right", "body").field("left", or(def("VariableDeclaration"), def("Pattern"))).field("right", def("Expression")).field("body", def("Statement"));
      def("YieldExpression").bases("Expression").build("argument", "delegate").field("argument", or(def("Expression"), null)).field("delegate", Boolean, defaults4["false"]);
      def("GeneratorExpression").bases("Expression").build("body", "blocks", "filter").field("body", def("Expression")).field("blocks", [def("ComprehensionBlock")]).field("filter", or(def("Expression"), null));
      def("ComprehensionExpression").bases("Expression").build("body", "blocks", "filter").field("body", def("Expression")).field("blocks", [def("ComprehensionBlock")]).field("filter", or(def("Expression"), null));
      def("ComprehensionBlock").bases("Node").build("left", "right", "each").field("left", def("Pattern")).field("right", def("Expression")).field("each", Boolean);
      def("Property").field("key", or(def("Literal"), def("Identifier"), def("Expression"))).field("value", or(def("Expression"), def("Pattern"))).field("method", Boolean, defaults4["false"]).field("shorthand", Boolean, defaults4["false"]).field("computed", Boolean, defaults4["false"]);
      def("ObjectProperty").field("shorthand", Boolean, defaults4["false"]);
      def("PropertyPattern").bases("Pattern").build("key", "pattern").field("key", or(def("Literal"), def("Identifier"), def("Expression"))).field("pattern", def("Pattern")).field("computed", Boolean, defaults4["false"]);
      def("ObjectPattern").bases("Pattern").build("properties").field("properties", [or(def("PropertyPattern"), def("Property"))]);
      def("ArrayPattern").bases("Pattern").build("elements").field("elements", [or(def("Pattern"), null)]);
      def("MethodDefinition").bases("Declaration").build("kind", "key", "value", "static").field("kind", or("constructor", "method", "get", "set")).field("key", def("Expression")).field("value", def("Function")).field("computed", Boolean, defaults4["false"]).field("static", Boolean, defaults4["false"]);
      def("SpreadElement").bases("Node").build("argument").field("argument", def("Expression"));
      def("ArrayExpression").field("elements", [or(def("Expression"), def("SpreadElement"), def("RestElement"), null)]);
      def("NewExpression").field("arguments", [or(def("Expression"), def("SpreadElement"))]);
      def("CallExpression").field("arguments", [or(def("Expression"), def("SpreadElement"))]);
      def("AssignmentPattern").bases("Pattern").build("left", "right").field("left", def("Pattern")).field("right", def("Expression"));
      var ClassBodyElement = or(def("MethodDefinition"), def("VariableDeclarator"), def("ClassPropertyDefinition"), def("ClassProperty"));
      def("ClassProperty").bases("Declaration").build("key").field("key", or(def("Literal"), def("Identifier"), def("Expression"))).field("computed", Boolean, defaults4["false"]);
      def("ClassPropertyDefinition").bases("Declaration").build("definition").field("definition", ClassBodyElement);
      def("ClassBody").bases("Declaration").build("body").field("body", [ClassBodyElement]);
      def("ClassDeclaration").bases("Declaration").build("id", "body", "superClass").field("id", or(def("Identifier"), null)).field("body", def("ClassBody")).field("superClass", or(def("Expression"), null), defaults4["null"]);
      def("ClassExpression").bases("Expression").build("id", "body", "superClass").field("id", or(def("Identifier"), null), defaults4["null"]).field("body", def("ClassBody")).field("superClass", or(def("Expression"), null), defaults4["null"]);
      def("Specifier").bases("Node");
      def("ModuleSpecifier").bases("Specifier").field("local", or(def("Identifier"), null), defaults4["null"]).field("id", or(def("Identifier"), null), defaults4["null"]).field("name", or(def("Identifier"), null), defaults4["null"]);
      def("ImportSpecifier").bases("ModuleSpecifier").build("id", "name");
      def("ImportNamespaceSpecifier").bases("ModuleSpecifier").build("id");
      def("ImportDefaultSpecifier").bases("ModuleSpecifier").build("id");
      def("ImportDeclaration").bases("Declaration").build("specifiers", "source", "importKind").field("specifiers", [or(def("ImportSpecifier"), def("ImportNamespaceSpecifier"), def("ImportDefaultSpecifier"))], defaults4.emptyArray).field("source", def("Literal")).field("importKind", or("value", "type"), function() {
        return "value";
      });
      def("TaggedTemplateExpression").bases("Expression").build("tag", "quasi").field("tag", def("Expression")).field("quasi", def("TemplateLiteral"));
      def("TemplateLiteral").bases("Expression").build("quasis", "expressions").field("quasis", [def("TemplateElement")]).field("expressions", [def("Expression")]);
      def("TemplateElement").bases("Node").build("value", "tail").field("value", { "cooked": String, "raw": String }).field("tail", Boolean);
    }
    __name(default_1, "default_1");
    exports2.default = default_1;
    module2.exports = exports2["default"];
  }
});

// ../../node_modules/ast-types/def/es7.js
var require_es7 = __commonJS({
  "../../node_modules/ast-types/def/es7.js"(exports2, module2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
    var es6_1 = tslib_1.__importDefault(require_es6());
    var types_1 = tslib_1.__importDefault(require_types3());
    var shared_1 = tslib_1.__importDefault(require_shared());
    function default_1(fork) {
      fork.use(es6_1.default);
      var types5 = fork.use(types_1.default);
      var def = types5.Type.def;
      var or = types5.Type.or;
      var defaults4 = fork.use(shared_1.default).defaults;
      def("Function").field("async", Boolean, defaults4["false"]);
      def("SpreadProperty").bases("Node").build("argument").field("argument", def("Expression"));
      def("ObjectExpression").field("properties", [or(def("Property"), def("SpreadProperty"), def("SpreadElement"))]);
      def("SpreadPropertyPattern").bases("Pattern").build("argument").field("argument", def("Pattern"));
      def("ObjectPattern").field("properties", [or(def("Property"), def("PropertyPattern"), def("SpreadPropertyPattern"))]);
      def("AwaitExpression").bases("Expression").build("argument", "all").field("argument", or(def("Expression"), null)).field("all", Boolean, defaults4["false"]);
    }
    __name(default_1, "default_1");
    exports2.default = default_1;
    module2.exports = exports2["default"];
  }
});

// ../../node_modules/ast-types/def/es2020.js
var require_es2020 = __commonJS({
  "../../node_modules/ast-types/def/es2020.js"(exports2, module2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
    var es7_1 = tslib_1.__importDefault(require_es7());
    var types_1 = tslib_1.__importDefault(require_types3());
    function default_1(fork) {
      fork.use(es7_1.default);
      var types5 = fork.use(types_1.default);
      var def = types5.Type.def;
      def("ImportExpression").bases("Expression").build("source").field("source", def("Expression"));
    }
    __name(default_1, "default_1");
    exports2.default = default_1;
    module2.exports = exports2["default"];
  }
});

// ../../node_modules/ast-types/def/jsx.js
var require_jsx = __commonJS({
  "../../node_modules/ast-types/def/jsx.js"(exports2, module2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
    var es7_1 = tslib_1.__importDefault(require_es7());
    var types_1 = tslib_1.__importDefault(require_types3());
    var shared_1 = tslib_1.__importDefault(require_shared());
    function default_1(fork) {
      fork.use(es7_1.default);
      var types5 = fork.use(types_1.default);
      var def = types5.Type.def;
      var or = types5.Type.or;
      var defaults4 = fork.use(shared_1.default).defaults;
      def("JSXAttribute").bases("Node").build("name", "value").field("name", or(def("JSXIdentifier"), def("JSXNamespacedName"))).field("value", or(
        def("Literal"),
        // attr="value"
        def("JSXExpressionContainer"),
        // attr={value}
        null
        // attr= or just attr
      ), defaults4["null"]);
      def("JSXIdentifier").bases("Identifier").build("name").field("name", String);
      def("JSXNamespacedName").bases("Node").build("namespace", "name").field("namespace", def("JSXIdentifier")).field("name", def("JSXIdentifier"));
      def("JSXMemberExpression").bases("MemberExpression").build("object", "property").field("object", or(def("JSXIdentifier"), def("JSXMemberExpression"))).field("property", def("JSXIdentifier")).field("computed", Boolean, defaults4.false);
      var JSXElementName = or(def("JSXIdentifier"), def("JSXNamespacedName"), def("JSXMemberExpression"));
      def("JSXSpreadAttribute").bases("Node").build("argument").field("argument", def("Expression"));
      var JSXAttributes = [or(def("JSXAttribute"), def("JSXSpreadAttribute"))];
      def("JSXExpressionContainer").bases("Expression").build("expression").field("expression", def("Expression"));
      def("JSXElement").bases("Expression").build("openingElement", "closingElement", "children").field("openingElement", def("JSXOpeningElement")).field("closingElement", or(def("JSXClosingElement"), null), defaults4["null"]).field("children", [or(
        def("JSXElement"),
        def("JSXExpressionContainer"),
        def("JSXFragment"),
        def("JSXText"),
        def("Literal")
        // TODO Esprima should return JSXText instead.
      )], defaults4.emptyArray).field("name", JSXElementName, function() {
        return this.openingElement.name;
      }, true).field("selfClosing", Boolean, function() {
        return this.openingElement.selfClosing;
      }, true).field("attributes", JSXAttributes, function() {
        return this.openingElement.attributes;
      }, true);
      def("JSXOpeningElement").bases("Node").build("name", "attributes", "selfClosing").field("name", JSXElementName).field("attributes", JSXAttributes, defaults4.emptyArray).field("selfClosing", Boolean, defaults4["false"]);
      def("JSXClosingElement").bases("Node").build("name").field("name", JSXElementName);
      def("JSXFragment").bases("Expression").build("openingElement", "closingElement", "children").field("openingElement", def("JSXOpeningFragment")).field("closingElement", def("JSXClosingFragment")).field("children", [or(
        def("JSXElement"),
        def("JSXExpressionContainer"),
        def("JSXFragment"),
        def("JSXText"),
        def("Literal")
        // TODO Esprima should return JSXText instead.
      )], defaults4.emptyArray);
      def("JSXOpeningFragment").bases("Node").build();
      def("JSXClosingFragment").bases("Node").build();
      def("JSXText").bases("Literal").build("value").field("value", String);
      def("JSXEmptyExpression").bases("Expression").build();
      def("JSXSpreadChild").bases("Expression").build("expression").field("expression", def("Expression"));
    }
    __name(default_1, "default_1");
    exports2.default = default_1;
    module2.exports = exports2["default"];
  }
});

// ../../node_modules/ast-types/def/type-annotations.js
var require_type_annotations = __commonJS({
  "../../node_modules/ast-types/def/type-annotations.js"(exports2, module2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
    var types_1 = tslib_1.__importDefault(require_types3());
    var shared_1 = tslib_1.__importDefault(require_shared());
    function default_1(fork) {
      var types5 = fork.use(types_1.default);
      var def = types5.Type.def;
      var or = types5.Type.or;
      var defaults4 = fork.use(shared_1.default).defaults;
      var TypeAnnotation = or(def("TypeAnnotation"), def("TSTypeAnnotation"), null);
      var TypeParamDecl = or(def("TypeParameterDeclaration"), def("TSTypeParameterDeclaration"), null);
      def("Identifier").field("typeAnnotation", TypeAnnotation, defaults4["null"]);
      def("ObjectPattern").field("typeAnnotation", TypeAnnotation, defaults4["null"]);
      def("Function").field("returnType", TypeAnnotation, defaults4["null"]).field("typeParameters", TypeParamDecl, defaults4["null"]);
      def("ClassProperty").build("key", "value", "typeAnnotation", "static").field("value", or(def("Expression"), null)).field("static", Boolean, defaults4["false"]).field("typeAnnotation", TypeAnnotation, defaults4["null"]);
      [
        "ClassDeclaration",
        "ClassExpression"
      ].forEach(function(typeName) {
        def(typeName).field("typeParameters", TypeParamDecl, defaults4["null"]).field("superTypeParameters", or(def("TypeParameterInstantiation"), def("TSTypeParameterInstantiation"), null), defaults4["null"]).field("implements", or([def("ClassImplements")], [def("TSExpressionWithTypeArguments")]), defaults4.emptyArray);
      });
    }
    __name(default_1, "default_1");
    exports2.default = default_1;
    module2.exports = exports2["default"];
  }
});

// ../../node_modules/ast-types/def/flow.js
var require_flow = __commonJS({
  "../../node_modules/ast-types/def/flow.js"(exports2, module2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
    var es7_1 = tslib_1.__importDefault(require_es7());
    var type_annotations_1 = tslib_1.__importDefault(require_type_annotations());
    var types_1 = tslib_1.__importDefault(require_types3());
    var shared_1 = tslib_1.__importDefault(require_shared());
    function default_1(fork) {
      fork.use(es7_1.default);
      fork.use(type_annotations_1.default);
      var types5 = fork.use(types_1.default);
      var def = types5.Type.def;
      var or = types5.Type.or;
      var defaults4 = fork.use(shared_1.default).defaults;
      def("Flow").bases("Node");
      def("FlowType").bases("Flow");
      def("AnyTypeAnnotation").bases("FlowType").build();
      def("EmptyTypeAnnotation").bases("FlowType").build();
      def("MixedTypeAnnotation").bases("FlowType").build();
      def("VoidTypeAnnotation").bases("FlowType").build();
      def("NumberTypeAnnotation").bases("FlowType").build();
      def("NumberLiteralTypeAnnotation").bases("FlowType").build("value", "raw").field("value", Number).field("raw", String);
      def("NumericLiteralTypeAnnotation").bases("FlowType").build("value", "raw").field("value", Number).field("raw", String);
      def("StringTypeAnnotation").bases("FlowType").build();
      def("StringLiteralTypeAnnotation").bases("FlowType").build("value", "raw").field("value", String).field("raw", String);
      def("BooleanTypeAnnotation").bases("FlowType").build();
      def("BooleanLiteralTypeAnnotation").bases("FlowType").build("value", "raw").field("value", Boolean).field("raw", String);
      def("TypeAnnotation").bases("Node").build("typeAnnotation").field("typeAnnotation", def("FlowType"));
      def("NullableTypeAnnotation").bases("FlowType").build("typeAnnotation").field("typeAnnotation", def("FlowType"));
      def("NullLiteralTypeAnnotation").bases("FlowType").build();
      def("NullTypeAnnotation").bases("FlowType").build();
      def("ThisTypeAnnotation").bases("FlowType").build();
      def("ExistsTypeAnnotation").bases("FlowType").build();
      def("ExistentialTypeParam").bases("FlowType").build();
      def("FunctionTypeAnnotation").bases("FlowType").build("params", "returnType", "rest", "typeParameters").field("params", [def("FunctionTypeParam")]).field("returnType", def("FlowType")).field("rest", or(def("FunctionTypeParam"), null)).field("typeParameters", or(def("TypeParameterDeclaration"), null));
      def("FunctionTypeParam").bases("Node").build("name", "typeAnnotation", "optional").field("name", def("Identifier")).field("typeAnnotation", def("FlowType")).field("optional", Boolean);
      def("ArrayTypeAnnotation").bases("FlowType").build("elementType").field("elementType", def("FlowType"));
      def("ObjectTypeAnnotation").bases("FlowType").build("properties", "indexers", "callProperties").field("properties", [
        or(def("ObjectTypeProperty"), def("ObjectTypeSpreadProperty"))
      ]).field("indexers", [def("ObjectTypeIndexer")], defaults4.emptyArray).field("callProperties", [def("ObjectTypeCallProperty")], defaults4.emptyArray).field("inexact", or(Boolean, void 0), defaults4["undefined"]).field("exact", Boolean, defaults4["false"]).field("internalSlots", [def("ObjectTypeInternalSlot")], defaults4.emptyArray);
      def("Variance").bases("Node").build("kind").field("kind", or("plus", "minus"));
      var LegacyVariance = or(def("Variance"), "plus", "minus", null);
      def("ObjectTypeProperty").bases("Node").build("key", "value", "optional").field("key", or(def("Literal"), def("Identifier"))).field("value", def("FlowType")).field("optional", Boolean).field("variance", LegacyVariance, defaults4["null"]);
      def("ObjectTypeIndexer").bases("Node").build("id", "key", "value").field("id", def("Identifier")).field("key", def("FlowType")).field("value", def("FlowType")).field("variance", LegacyVariance, defaults4["null"]);
      def("ObjectTypeCallProperty").bases("Node").build("value").field("value", def("FunctionTypeAnnotation")).field("static", Boolean, defaults4["false"]);
      def("QualifiedTypeIdentifier").bases("Node").build("qualification", "id").field("qualification", or(def("Identifier"), def("QualifiedTypeIdentifier"))).field("id", def("Identifier"));
      def("GenericTypeAnnotation").bases("FlowType").build("id", "typeParameters").field("id", or(def("Identifier"), def("QualifiedTypeIdentifier"))).field("typeParameters", or(def("TypeParameterInstantiation"), null));
      def("MemberTypeAnnotation").bases("FlowType").build("object", "property").field("object", def("Identifier")).field("property", or(def("MemberTypeAnnotation"), def("GenericTypeAnnotation")));
      def("UnionTypeAnnotation").bases("FlowType").build("types").field("types", [def("FlowType")]);
      def("IntersectionTypeAnnotation").bases("FlowType").build("types").field("types", [def("FlowType")]);
      def("TypeofTypeAnnotation").bases("FlowType").build("argument").field("argument", def("FlowType"));
      def("ObjectTypeSpreadProperty").bases("Node").build("argument").field("argument", def("FlowType"));
      def("ObjectTypeInternalSlot").bases("Node").build("id", "value", "optional", "static", "method").field("id", def("Identifier")).field("value", def("FlowType")).field("optional", Boolean).field("static", Boolean).field("method", Boolean);
      def("TypeParameterDeclaration").bases("Node").build("params").field("params", [def("TypeParameter")]);
      def("TypeParameterInstantiation").bases("Node").build("params").field("params", [def("FlowType")]);
      def("TypeParameter").bases("FlowType").build("name", "variance", "bound").field("name", String).field("variance", LegacyVariance, defaults4["null"]).field("bound", or(def("TypeAnnotation"), null), defaults4["null"]);
      def("ClassProperty").field("variance", LegacyVariance, defaults4["null"]);
      def("ClassImplements").bases("Node").build("id").field("id", def("Identifier")).field("superClass", or(def("Expression"), null), defaults4["null"]).field("typeParameters", or(def("TypeParameterInstantiation"), null), defaults4["null"]);
      def("InterfaceTypeAnnotation").bases("FlowType").build("body", "extends").field("body", def("ObjectTypeAnnotation")).field("extends", or([def("InterfaceExtends")], null), defaults4["null"]);
      def("InterfaceDeclaration").bases("Declaration").build("id", "body", "extends").field("id", def("Identifier")).field("typeParameters", or(def("TypeParameterDeclaration"), null), defaults4["null"]).field("body", def("ObjectTypeAnnotation")).field("extends", [def("InterfaceExtends")]);
      def("DeclareInterface").bases("InterfaceDeclaration").build("id", "body", "extends");
      def("InterfaceExtends").bases("Node").build("id").field("id", def("Identifier")).field("typeParameters", or(def("TypeParameterInstantiation"), null), defaults4["null"]);
      def("TypeAlias").bases("Declaration").build("id", "typeParameters", "right").field("id", def("Identifier")).field("typeParameters", or(def("TypeParameterDeclaration"), null)).field("right", def("FlowType"));
      def("OpaqueType").bases("Declaration").build("id", "typeParameters", "impltype", "supertype").field("id", def("Identifier")).field("typeParameters", or(def("TypeParameterDeclaration"), null)).field("impltype", def("FlowType")).field("supertype", def("FlowType"));
      def("DeclareTypeAlias").bases("TypeAlias").build("id", "typeParameters", "right");
      def("DeclareOpaqueType").bases("TypeAlias").build("id", "typeParameters", "supertype");
      def("TypeCastExpression").bases("Expression").build("expression", "typeAnnotation").field("expression", def("Expression")).field("typeAnnotation", def("TypeAnnotation"));
      def("TupleTypeAnnotation").bases("FlowType").build("types").field("types", [def("FlowType")]);
      def("DeclareVariable").bases("Statement").build("id").field("id", def("Identifier"));
      def("DeclareFunction").bases("Statement").build("id").field("id", def("Identifier"));
      def("DeclareClass").bases("InterfaceDeclaration").build("id");
      def("DeclareModule").bases("Statement").build("id", "body").field("id", or(def("Identifier"), def("Literal"))).field("body", def("BlockStatement"));
      def("DeclareModuleExports").bases("Statement").build("typeAnnotation").field("typeAnnotation", def("TypeAnnotation"));
      def("DeclareExportDeclaration").bases("Declaration").build("default", "declaration", "specifiers", "source").field("default", Boolean).field("declaration", or(
        def("DeclareVariable"),
        def("DeclareFunction"),
        def("DeclareClass"),
        def("FlowType"),
        // Implies default.
        null
      )).field("specifiers", [or(def("ExportSpecifier"), def("ExportBatchSpecifier"))], defaults4.emptyArray).field("source", or(def("Literal"), null), defaults4["null"]);
      def("DeclareExportAllDeclaration").bases("Declaration").build("source").field("source", or(def("Literal"), null), defaults4["null"]);
      def("FlowPredicate").bases("Flow");
      def("InferredPredicate").bases("FlowPredicate").build();
      def("DeclaredPredicate").bases("FlowPredicate").build("value").field("value", def("Expression"));
      def("CallExpression").field("typeArguments", or(null, def("TypeParameterInstantiation")), defaults4["null"]);
      def("NewExpression").field("typeArguments", or(null, def("TypeParameterInstantiation")), defaults4["null"]);
    }
    __name(default_1, "default_1");
    exports2.default = default_1;
    module2.exports = exports2["default"];
  }
});

// ../../node_modules/ast-types/def/esprima.js
var require_esprima2 = __commonJS({
  "../../node_modules/ast-types/def/esprima.js"(exports2, module2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
    var es7_1 = tslib_1.__importDefault(require_es7());
    var types_1 = tslib_1.__importDefault(require_types3());
    var shared_1 = tslib_1.__importDefault(require_shared());
    function default_1(fork) {
      fork.use(es7_1.default);
      var types5 = fork.use(types_1.default);
      var defaults4 = fork.use(shared_1.default).defaults;
      var def = types5.Type.def;
      var or = types5.Type.or;
      def("VariableDeclaration").field("declarations", [or(
        def("VariableDeclarator"),
        def("Identifier")
        // Esprima deviation.
      )]);
      def("Property").field("value", or(
        def("Expression"),
        def("Pattern")
        // Esprima deviation.
      ));
      def("ArrayPattern").field("elements", [or(def("Pattern"), def("SpreadElement"), null)]);
      def("ObjectPattern").field("properties", [or(
        def("Property"),
        def("PropertyPattern"),
        def("SpreadPropertyPattern"),
        def("SpreadProperty")
        // Used by Esprima.
      )]);
      def("ExportSpecifier").bases("ModuleSpecifier").build("id", "name");
      def("ExportBatchSpecifier").bases("Specifier").build();
      def("ExportDeclaration").bases("Declaration").build("default", "declaration", "specifiers", "source").field("default", Boolean).field("declaration", or(
        def("Declaration"),
        def("Expression"),
        // Implies default.
        null
      )).field("specifiers", [or(def("ExportSpecifier"), def("ExportBatchSpecifier"))], defaults4.emptyArray).field("source", or(def("Literal"), null), defaults4["null"]);
      def("Block").bases("Comment").build(
        "value",
        /*optional:*/
        "leading",
        "trailing"
      );
      def("Line").bases("Comment").build(
        "value",
        /*optional:*/
        "leading",
        "trailing"
      );
    }
    __name(default_1, "default_1");
    exports2.default = default_1;
    module2.exports = exports2["default"];
  }
});

// ../../node_modules/ast-types/def/babel-core.js
var require_babel_core = __commonJS({
  "../../node_modules/ast-types/def/babel-core.js"(exports2, module2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
    var types_1 = tslib_1.__importDefault(require_types3());
    var shared_1 = tslib_1.__importDefault(require_shared());
    var es7_1 = tslib_1.__importDefault(require_es7());
    function default_1(fork) {
      fork.use(es7_1.default);
      var types5 = fork.use(types_1.default);
      var defaults4 = fork.use(shared_1.default).defaults;
      var def = types5.Type.def;
      var or = types5.Type.or;
      def("Noop").bases("Statement").build();
      def("DoExpression").bases("Expression").build("body").field("body", [def("Statement")]);
      def("Super").bases("Expression").build();
      def("BindExpression").bases("Expression").build("object", "callee").field("object", or(def("Expression"), null)).field("callee", def("Expression"));
      def("Decorator").bases("Node").build("expression").field("expression", def("Expression"));
      def("Property").field("decorators", or([def("Decorator")], null), defaults4["null"]);
      def("MethodDefinition").field("decorators", or([def("Decorator")], null), defaults4["null"]);
      def("MetaProperty").bases("Expression").build("meta", "property").field("meta", def("Identifier")).field("property", def("Identifier"));
      def("ParenthesizedExpression").bases("Expression").build("expression").field("expression", def("Expression"));
      def("ImportSpecifier").bases("ModuleSpecifier").build("imported", "local").field("imported", def("Identifier"));
      def("ImportDefaultSpecifier").bases("ModuleSpecifier").build("local");
      def("ImportNamespaceSpecifier").bases("ModuleSpecifier").build("local");
      def("ExportDefaultDeclaration").bases("Declaration").build("declaration").field("declaration", or(def("Declaration"), def("Expression")));
      def("ExportNamedDeclaration").bases("Declaration").build("declaration", "specifiers", "source").field("declaration", or(def("Declaration"), null)).field("specifiers", [def("ExportSpecifier")], defaults4.emptyArray).field("source", or(def("Literal"), null), defaults4["null"]);
      def("ExportSpecifier").bases("ModuleSpecifier").build("local", "exported").field("exported", def("Identifier"));
      def("ExportNamespaceSpecifier").bases("Specifier").build("exported").field("exported", def("Identifier"));
      def("ExportDefaultSpecifier").bases("Specifier").build("exported").field("exported", def("Identifier"));
      def("ExportAllDeclaration").bases("Declaration").build("exported", "source").field("exported", or(def("Identifier"), null)).field("source", def("Literal"));
      def("CommentBlock").bases("Comment").build(
        "value",
        /*optional:*/
        "leading",
        "trailing"
      );
      def("CommentLine").bases("Comment").build(
        "value",
        /*optional:*/
        "leading",
        "trailing"
      );
      def("Directive").bases("Node").build("value").field("value", def("DirectiveLiteral"));
      def("DirectiveLiteral").bases("Node", "Expression").build("value").field("value", String, defaults4["use strict"]);
      def("InterpreterDirective").bases("Node").build("value").field("value", String);
      def("BlockStatement").bases("Statement").build("body").field("body", [def("Statement")]).field("directives", [def("Directive")], defaults4.emptyArray);
      def("Program").bases("Node").build("body").field("body", [def("Statement")]).field("directives", [def("Directive")], defaults4.emptyArray).field("interpreter", or(def("InterpreterDirective"), null), defaults4["null"]);
      def("StringLiteral").bases("Literal").build("value").field("value", String);
      def("NumericLiteral").bases("Literal").build("value").field("value", Number).field("raw", or(String, null), defaults4["null"]).field("extra", {
        rawValue: Number,
        raw: String
      }, /* @__PURE__ */ __name(function getDefault() {
        return {
          rawValue: this.value,
          raw: this.value + ""
        };
      }, "getDefault"));
      def("BigIntLiteral").bases("Literal").build("value").field("value", or(String, Number)).field("extra", {
        rawValue: String,
        raw: String
      }, /* @__PURE__ */ __name(function getDefault() {
        return {
          rawValue: String(this.value),
          raw: this.value + "n"
        };
      }, "getDefault"));
      def("NullLiteral").bases("Literal").build().field("value", null, defaults4["null"]);
      def("BooleanLiteral").bases("Literal").build("value").field("value", Boolean);
      def("RegExpLiteral").bases("Literal").build("pattern", "flags").field("pattern", String).field("flags", String).field("value", RegExp, function() {
        return new RegExp(this.pattern, this.flags);
      });
      var ObjectExpressionProperty = or(def("Property"), def("ObjectMethod"), def("ObjectProperty"), def("SpreadProperty"), def("SpreadElement"));
      def("ObjectExpression").bases("Expression").build("properties").field("properties", [ObjectExpressionProperty]);
      def("ObjectMethod").bases("Node", "Function").build("kind", "key", "params", "body", "computed").field("kind", or("method", "get", "set")).field("key", or(def("Literal"), def("Identifier"), def("Expression"))).field("params", [def("Pattern")]).field("body", def("BlockStatement")).field("computed", Boolean, defaults4["false"]).field("generator", Boolean, defaults4["false"]).field("async", Boolean, defaults4["false"]).field(
        "accessibility",
        // TypeScript
        or(def("Literal"), null),
        defaults4["null"]
      ).field("decorators", or([def("Decorator")], null), defaults4["null"]);
      def("ObjectProperty").bases("Node").build("key", "value").field("key", or(def("Literal"), def("Identifier"), def("Expression"))).field("value", or(def("Expression"), def("Pattern"))).field(
        "accessibility",
        // TypeScript
        or(def("Literal"), null),
        defaults4["null"]
      ).field("computed", Boolean, defaults4["false"]);
      var ClassBodyElement = or(def("MethodDefinition"), def("VariableDeclarator"), def("ClassPropertyDefinition"), def("ClassProperty"), def("ClassPrivateProperty"), def("ClassMethod"), def("ClassPrivateMethod"));
      def("ClassBody").bases("Declaration").build("body").field("body", [ClassBodyElement]);
      def("ClassMethod").bases("Declaration", "Function").build("kind", "key", "params", "body", "computed", "static").field("key", or(def("Literal"), def("Identifier"), def("Expression")));
      def("ClassPrivateMethod").bases("Declaration", "Function").build("key", "params", "body", "kind", "computed", "static").field("key", def("PrivateName"));
      [
        "ClassMethod",
        "ClassPrivateMethod"
      ].forEach(function(typeName) {
        def(typeName).field("kind", or("get", "set", "method", "constructor"), function() {
          return "method";
        }).field("body", def("BlockStatement")).field("computed", Boolean, defaults4["false"]).field("static", or(Boolean, null), defaults4["null"]).field("abstract", or(Boolean, null), defaults4["null"]).field("access", or("public", "private", "protected", null), defaults4["null"]).field("accessibility", or("public", "private", "protected", null), defaults4["null"]).field("decorators", or([def("Decorator")], null), defaults4["null"]).field("optional", or(Boolean, null), defaults4["null"]);
      });
      def("ClassPrivateProperty").bases("ClassProperty").build("key", "value").field("key", def("PrivateName")).field("value", or(def("Expression"), null), defaults4["null"]);
      def("PrivateName").bases("Expression", "Pattern").build("id").field("id", def("Identifier"));
      var ObjectPatternProperty = or(
        def("Property"),
        def("PropertyPattern"),
        def("SpreadPropertyPattern"),
        def("SpreadProperty"),
        // Used by Esprima
        def("ObjectProperty"),
        // Babel 6
        def("RestProperty")
        // Babel 6
      );
      def("ObjectPattern").bases("Pattern").build("properties").field("properties", [ObjectPatternProperty]).field("decorators", or([def("Decorator")], null), defaults4["null"]);
      def("SpreadProperty").bases("Node").build("argument").field("argument", def("Expression"));
      def("RestProperty").bases("Node").build("argument").field("argument", def("Expression"));
      def("ForAwaitStatement").bases("Statement").build("left", "right", "body").field("left", or(def("VariableDeclaration"), def("Expression"))).field("right", def("Expression")).field("body", def("Statement"));
      def("Import").bases("Expression").build();
    }
    __name(default_1, "default_1");
    exports2.default = default_1;
    module2.exports = exports2["default"];
  }
});

// ../../node_modules/ast-types/def/babel.js
var require_babel = __commonJS({
  "../../node_modules/ast-types/def/babel.js"(exports2, module2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
    var babel_core_1 = tslib_1.__importDefault(require_babel_core());
    var flow_1 = tslib_1.__importDefault(require_flow());
    function default_1(fork) {
      fork.use(babel_core_1.default);
      fork.use(flow_1.default);
    }
    __name(default_1, "default_1");
    exports2.default = default_1;
    module2.exports = exports2["default"];
  }
});

// ../../node_modules/ast-types/def/typescript.js
var require_typescript = __commonJS({
  "../../node_modules/ast-types/def/typescript.js"(exports2, module2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
    var babel_core_1 = tslib_1.__importDefault(require_babel_core());
    var type_annotations_1 = tslib_1.__importDefault(require_type_annotations());
    var types_1 = tslib_1.__importDefault(require_types3());
    var shared_1 = tslib_1.__importDefault(require_shared());
    function default_1(fork) {
      fork.use(babel_core_1.default);
      fork.use(type_annotations_1.default);
      var types5 = fork.use(types_1.default);
      var n3 = types5.namedTypes;
      var def = types5.Type.def;
      var or = types5.Type.or;
      var defaults4 = fork.use(shared_1.default).defaults;
      var StringLiteral = types5.Type.from(function(value, deep) {
        if (n3.StringLiteral && n3.StringLiteral.check(value, deep)) {
          return true;
        }
        if (n3.Literal && n3.Literal.check(value, deep) && typeof value.value === "string") {
          return true;
        }
        return false;
      }, "StringLiteral");
      def("TSType").bases("Node");
      var TSEntityName = or(def("Identifier"), def("TSQualifiedName"));
      def("TSTypeReference").bases("TSType", "TSHasOptionalTypeParameterInstantiation").build("typeName", "typeParameters").field("typeName", TSEntityName);
      def("TSHasOptionalTypeParameterInstantiation").field("typeParameters", or(def("TSTypeParameterInstantiation"), null), defaults4["null"]);
      def("TSHasOptionalTypeParameters").field("typeParameters", or(def("TSTypeParameterDeclaration"), null, void 0), defaults4["null"]);
      def("TSHasOptionalTypeAnnotation").field("typeAnnotation", or(def("TSTypeAnnotation"), null), defaults4["null"]);
      def("TSQualifiedName").bases("Node").build("left", "right").field("left", TSEntityName).field("right", TSEntityName);
      def("TSAsExpression").bases("Expression", "Pattern").build("expression", "typeAnnotation").field("expression", def("Expression")).field("typeAnnotation", def("TSType")).field("extra", or({ parenthesized: Boolean }, null), defaults4["null"]);
      def("TSNonNullExpression").bases("Expression", "Pattern").build("expression").field("expression", def("Expression"));
      [
        "TSAnyKeyword",
        "TSBigIntKeyword",
        "TSBooleanKeyword",
        "TSNeverKeyword",
        "TSNullKeyword",
        "TSNumberKeyword",
        "TSObjectKeyword",
        "TSStringKeyword",
        "TSSymbolKeyword",
        "TSUndefinedKeyword",
        "TSUnknownKeyword",
        "TSVoidKeyword",
        "TSThisType"
      ].forEach(function(keywordType) {
        def(keywordType).bases("TSType").build();
      });
      def("TSArrayType").bases("TSType").build("elementType").field("elementType", def("TSType"));
      def("TSLiteralType").bases("TSType").build("literal").field("literal", or(def("NumericLiteral"), def("StringLiteral"), def("BooleanLiteral"), def("TemplateLiteral"), def("UnaryExpression")));
      [
        "TSUnionType",
        "TSIntersectionType"
      ].forEach(function(typeName) {
        def(typeName).bases("TSType").build("types").field("types", [def("TSType")]);
      });
      def("TSConditionalType").bases("TSType").build("checkType", "extendsType", "trueType", "falseType").field("checkType", def("TSType")).field("extendsType", def("TSType")).field("trueType", def("TSType")).field("falseType", def("TSType"));
      def("TSInferType").bases("TSType").build("typeParameter").field("typeParameter", def("TSTypeParameter"));
      def("TSParenthesizedType").bases("TSType").build("typeAnnotation").field("typeAnnotation", def("TSType"));
      var ParametersType = [or(def("Identifier"), def("RestElement"), def("ArrayPattern"), def("ObjectPattern"))];
      [
        "TSFunctionType",
        "TSConstructorType"
      ].forEach(function(typeName) {
        def(typeName).bases("TSType", "TSHasOptionalTypeParameters", "TSHasOptionalTypeAnnotation").build("parameters").field("parameters", ParametersType);
      });
      def("TSDeclareFunction").bases("Declaration", "TSHasOptionalTypeParameters").build("id", "params", "returnType").field("declare", Boolean, defaults4["false"]).field("async", Boolean, defaults4["false"]).field("generator", Boolean, defaults4["false"]).field("id", or(def("Identifier"), null), defaults4["null"]).field("params", [def("Pattern")]).field("returnType", or(
        def("TSTypeAnnotation"),
        def("Noop"),
        // Still used?
        null
      ), defaults4["null"]);
      def("TSDeclareMethod").bases("Declaration", "TSHasOptionalTypeParameters").build("key", "params", "returnType").field("async", Boolean, defaults4["false"]).field("generator", Boolean, defaults4["false"]).field("params", [def("Pattern")]).field("abstract", Boolean, defaults4["false"]).field("accessibility", or("public", "private", "protected", void 0), defaults4["undefined"]).field("static", Boolean, defaults4["false"]).field("computed", Boolean, defaults4["false"]).field("optional", Boolean, defaults4["false"]).field("key", or(
        def("Identifier"),
        def("StringLiteral"),
        def("NumericLiteral"),
        // Only allowed if .computed is true.
        def("Expression")
      )).field("kind", or("get", "set", "method", "constructor"), /* @__PURE__ */ __name(function getDefault() {
        return "method";
      }, "getDefault")).field(
        "access",
        // Not "accessibility"?
        or("public", "private", "protected", void 0),
        defaults4["undefined"]
      ).field("decorators", or([def("Decorator")], null), defaults4["null"]).field("returnType", or(
        def("TSTypeAnnotation"),
        def("Noop"),
        // Still used?
        null
      ), defaults4["null"]);
      def("TSMappedType").bases("TSType").build("typeParameter", "typeAnnotation").field("readonly", or(Boolean, "+", "-"), defaults4["false"]).field("typeParameter", def("TSTypeParameter")).field("optional", or(Boolean, "+", "-"), defaults4["false"]).field("typeAnnotation", or(def("TSType"), null), defaults4["null"]);
      def("TSTupleType").bases("TSType").build("elementTypes").field("elementTypes", [or(def("TSType"), def("TSNamedTupleMember"))]);
      def("TSNamedTupleMember").bases("TSType").build("label", "elementType", "optional").field("label", def("Identifier")).field("optional", Boolean, defaults4["false"]).field("elementType", def("TSType"));
      def("TSRestType").bases("TSType").build("typeAnnotation").field("typeAnnotation", def("TSType"));
      def("TSOptionalType").bases("TSType").build("typeAnnotation").field("typeAnnotation", def("TSType"));
      def("TSIndexedAccessType").bases("TSType").build("objectType", "indexType").field("objectType", def("TSType")).field("indexType", def("TSType"));
      def("TSTypeOperator").bases("TSType").build("operator").field("operator", String).field("typeAnnotation", def("TSType"));
      def("TSTypeAnnotation").bases("Node").build("typeAnnotation").field("typeAnnotation", or(def("TSType"), def("TSTypeAnnotation")));
      def("TSIndexSignature").bases("Declaration", "TSHasOptionalTypeAnnotation").build("parameters", "typeAnnotation").field("parameters", [def("Identifier")]).field("readonly", Boolean, defaults4["false"]);
      def("TSPropertySignature").bases("Declaration", "TSHasOptionalTypeAnnotation").build("key", "typeAnnotation", "optional").field("key", def("Expression")).field("computed", Boolean, defaults4["false"]).field("readonly", Boolean, defaults4["false"]).field("optional", Boolean, defaults4["false"]).field("initializer", or(def("Expression"), null), defaults4["null"]);
      def("TSMethodSignature").bases("Declaration", "TSHasOptionalTypeParameters", "TSHasOptionalTypeAnnotation").build("key", "parameters", "typeAnnotation").field("key", def("Expression")).field("computed", Boolean, defaults4["false"]).field("optional", Boolean, defaults4["false"]).field("parameters", ParametersType);
      def("TSTypePredicate").bases("TSTypeAnnotation", "TSType").build("parameterName", "typeAnnotation", "asserts").field("parameterName", or(def("Identifier"), def("TSThisType"))).field("typeAnnotation", or(def("TSTypeAnnotation"), null), defaults4["null"]).field("asserts", Boolean, defaults4["false"]);
      [
        "TSCallSignatureDeclaration",
        "TSConstructSignatureDeclaration"
      ].forEach(function(typeName) {
        def(typeName).bases("Declaration", "TSHasOptionalTypeParameters", "TSHasOptionalTypeAnnotation").build("parameters", "typeAnnotation").field("parameters", ParametersType);
      });
      def("TSEnumMember").bases("Node").build("id", "initializer").field("id", or(def("Identifier"), StringLiteral)).field("initializer", or(def("Expression"), null), defaults4["null"]);
      def("TSTypeQuery").bases("TSType").build("exprName").field("exprName", or(TSEntityName, def("TSImportType")));
      var TSTypeMember = or(def("TSCallSignatureDeclaration"), def("TSConstructSignatureDeclaration"), def("TSIndexSignature"), def("TSMethodSignature"), def("TSPropertySignature"));
      def("TSTypeLiteral").bases("TSType").build("members").field("members", [TSTypeMember]);
      def("TSTypeParameter").bases("Identifier").build("name", "constraint", "default").field("name", String).field("constraint", or(def("TSType"), void 0), defaults4["undefined"]).field("default", or(def("TSType"), void 0), defaults4["undefined"]);
      def("TSTypeAssertion").bases("Expression", "Pattern").build("typeAnnotation", "expression").field("typeAnnotation", def("TSType")).field("expression", def("Expression")).field("extra", or({ parenthesized: Boolean }, null), defaults4["null"]);
      def("TSTypeParameterDeclaration").bases("Declaration").build("params").field("params", [def("TSTypeParameter")]);
      def("TSTypeParameterInstantiation").bases("Node").build("params").field("params", [def("TSType")]);
      def("TSEnumDeclaration").bases("Declaration").build("id", "members").field("id", def("Identifier")).field("const", Boolean, defaults4["false"]).field("declare", Boolean, defaults4["false"]).field("members", [def("TSEnumMember")]).field("initializer", or(def("Expression"), null), defaults4["null"]);
      def("TSTypeAliasDeclaration").bases("Declaration", "TSHasOptionalTypeParameters").build("id", "typeAnnotation").field("id", def("Identifier")).field("declare", Boolean, defaults4["false"]).field("typeAnnotation", def("TSType"));
      def("TSModuleBlock").bases("Node").build("body").field("body", [def("Statement")]);
      def("TSModuleDeclaration").bases("Declaration").build("id", "body").field("id", or(StringLiteral, TSEntityName)).field("declare", Boolean, defaults4["false"]).field("global", Boolean, defaults4["false"]).field("body", or(def("TSModuleBlock"), def("TSModuleDeclaration"), null), defaults4["null"]);
      def("TSImportType").bases("TSType", "TSHasOptionalTypeParameterInstantiation").build("argument", "qualifier", "typeParameters").field("argument", StringLiteral).field("qualifier", or(TSEntityName, void 0), defaults4["undefined"]);
      def("TSImportEqualsDeclaration").bases("Declaration").build("id", "moduleReference").field("id", def("Identifier")).field("isExport", Boolean, defaults4["false"]).field("moduleReference", or(TSEntityName, def("TSExternalModuleReference")));
      def("TSExternalModuleReference").bases("Declaration").build("expression").field("expression", StringLiteral);
      def("TSExportAssignment").bases("Statement").build("expression").field("expression", def("Expression"));
      def("TSNamespaceExportDeclaration").bases("Declaration").build("id").field("id", def("Identifier"));
      def("TSInterfaceBody").bases("Node").build("body").field("body", [TSTypeMember]);
      def("TSExpressionWithTypeArguments").bases("TSType", "TSHasOptionalTypeParameterInstantiation").build("expression", "typeParameters").field("expression", TSEntityName);
      def("TSInterfaceDeclaration").bases("Declaration", "TSHasOptionalTypeParameters").build("id", "body").field("id", TSEntityName).field("declare", Boolean, defaults4["false"]).field("extends", or([def("TSExpressionWithTypeArguments")], null), defaults4["null"]).field("body", def("TSInterfaceBody"));
      def("TSParameterProperty").bases("Pattern").build("parameter").field("accessibility", or("public", "private", "protected", void 0), defaults4["undefined"]).field("readonly", Boolean, defaults4["false"]).field("parameter", or(def("Identifier"), def("AssignmentPattern")));
      def("ClassProperty").field(
        "access",
        // Not "accessibility"?
        or("public", "private", "protected", void 0),
        defaults4["undefined"]
      );
      def("ClassBody").field("body", [or(
        def("MethodDefinition"),
        def("VariableDeclarator"),
        def("ClassPropertyDefinition"),
        def("ClassProperty"),
        def("ClassPrivateProperty"),
        def("ClassMethod"),
        def("ClassPrivateMethod"),
        // Just need to add these types:
        def("TSDeclareMethod"),
        TSTypeMember
      )]);
    }
    __name(default_1, "default_1");
    exports2.default = default_1;
    module2.exports = exports2["default"];
  }
});

// ../../node_modules/ast-types/def/es-proposals.js
var require_es_proposals = __commonJS({
  "../../node_modules/ast-types/def/es-proposals.js"(exports2, module2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
    var types_1 = tslib_1.__importDefault(require_types3());
    var shared_1 = tslib_1.__importDefault(require_shared());
    var core_1 = tslib_1.__importDefault(require_core2());
    function default_1(fork) {
      fork.use(core_1.default);
      var types5 = fork.use(types_1.default);
      var Type = types5.Type;
      var def = types5.Type.def;
      var or = Type.or;
      var shared = fork.use(shared_1.default);
      var defaults4 = shared.defaults;
      def("OptionalMemberExpression").bases("MemberExpression").build("object", "property", "computed", "optional").field("optional", Boolean, defaults4["true"]);
      def("OptionalCallExpression").bases("CallExpression").build("callee", "arguments", "optional").field("optional", Boolean, defaults4["true"]);
      var LogicalOperator = or("||", "&&", "??");
      def("LogicalExpression").field("operator", LogicalOperator);
    }
    __name(default_1, "default_1");
    exports2.default = default_1;
    module2.exports = exports2["default"];
  }
});

// ../../node_modules/ast-types/gen/namedTypes.js
var require_namedTypes = __commonJS({
  "../../node_modules/ast-types/gen/namedTypes.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.namedTypes = void 0;
    var namedTypes;
    /* @__PURE__ */ (function(namedTypes2) {
    })(namedTypes = exports2.namedTypes || (exports2.namedTypes = {}));
  }
});

// ../../node_modules/ast-types/main.js
var require_main4 = __commonJS({
  "../../node_modules/ast-types/main.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.visit = exports2.use = exports2.Type = exports2.someField = exports2.PathVisitor = exports2.Path = exports2.NodePath = exports2.namedTypes = exports2.getSupertypeNames = exports2.getFieldValue = exports2.getFieldNames = exports2.getBuilderName = exports2.finalize = exports2.eachField = exports2.defineMethod = exports2.builtInTypes = exports2.builders = exports2.astNodesAreEquivalent = void 0;
    var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
    var fork_1 = tslib_1.__importDefault(require_fork());
    var core_1 = tslib_1.__importDefault(require_core2());
    var es6_1 = tslib_1.__importDefault(require_es6());
    var es7_1 = tslib_1.__importDefault(require_es7());
    var es2020_1 = tslib_1.__importDefault(require_es2020());
    var jsx_1 = tslib_1.__importDefault(require_jsx());
    var flow_1 = tslib_1.__importDefault(require_flow());
    var esprima_1 = tslib_1.__importDefault(require_esprima2());
    var babel_1 = tslib_1.__importDefault(require_babel());
    var typescript_1 = tslib_1.__importDefault(require_typescript());
    var es_proposals_1 = tslib_1.__importDefault(require_es_proposals());
    var namedTypes_1 = require_namedTypes();
    Object.defineProperty(exports2, "namedTypes", { enumerable: true, get: /* @__PURE__ */ __name(function() {
      return namedTypes_1.namedTypes;
    }, "get") });
    var _a2 = fork_1.default([
      // This core module of AST types captures ES5 as it is parsed today by
      // git://github.com/ariya/esprima.git#master.
      core_1.default,
      // Feel free to add to or remove from this list of extension modules to
      // configure the precise type hierarchy that you need.
      es6_1.default,
      es7_1.default,
      es2020_1.default,
      jsx_1.default,
      flow_1.default,
      esprima_1.default,
      babel_1.default,
      typescript_1.default,
      es_proposals_1.default
    ]);
    var astNodesAreEquivalent = _a2.astNodesAreEquivalent;
    var builders = _a2.builders;
    var builtInTypes = _a2.builtInTypes;
    var defineMethod = _a2.defineMethod;
    var eachField = _a2.eachField;
    var finalize = _a2.finalize;
    var getBuilderName = _a2.getBuilderName;
    var getFieldNames = _a2.getFieldNames;
    var getFieldValue = _a2.getFieldValue;
    var getSupertypeNames = _a2.getSupertypeNames;
    var n3 = _a2.namedTypes;
    var NodePath = _a2.NodePath;
    var Path2 = _a2.Path;
    var PathVisitor = _a2.PathVisitor;
    var someField = _a2.someField;
    var Type = _a2.Type;
    var use = _a2.use;
    var visit = _a2.visit;
    exports2.astNodesAreEquivalent = astNodesAreEquivalent;
    exports2.builders = builders;
    exports2.builtInTypes = builtInTypes;
    exports2.defineMethod = defineMethod;
    exports2.eachField = eachField;
    exports2.finalize = finalize;
    exports2.getBuilderName = getBuilderName;
    exports2.getFieldNames = getFieldNames;
    exports2.getFieldValue = getFieldValue;
    exports2.getSupertypeNames = getSupertypeNames;
    exports2.NodePath = NodePath;
    exports2.Path = Path2;
    exports2.PathVisitor = PathVisitor;
    exports2.someField = someField;
    exports2.Type = Type;
    exports2.use = use;
    exports2.visit = visit;
    Object.assign(namedTypes_1.namedTypes, n3);
  }
});

// ../../node_modules/degenerator/dist/degenerator.js
var require_degenerator = __commonJS({
  "../../node_modules/degenerator/dist/degenerator.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.degenerator = void 0;
    var util_1 = require("util");
    var escodegen_1 = require_escodegen();
    var esprima_1 = require_esprima();
    var ast_types_1 = require_main4();
    function degenerator(code, _names) {
      if (!Array.isArray(_names)) {
        throw new TypeError('an array of async function "names" is required');
      }
      const names = _names.slice(0);
      const ast = (0, esprima_1.parseScript)(code);
      let lastNamesLength = 0;
      do {
        lastNamesLength = names.length;
        (0, ast_types_1.visit)(ast, {
          visitVariableDeclaration(path38) {
            if (path38.node.declarations) {
              for (let i3 = 0; i3 < path38.node.declarations.length; i3++) {
                const declaration = path38.node.declarations[i3];
                if (ast_types_1.namedTypes.VariableDeclarator.check(declaration) && ast_types_1.namedTypes.Identifier.check(declaration.init) && ast_types_1.namedTypes.Identifier.check(declaration.id) && checkName(declaration.init.name, names) && !checkName(declaration.id.name, names)) {
                  names.push(declaration.id.name);
                }
              }
            }
            return false;
          },
          visitAssignmentExpression(path38) {
            if (ast_types_1.namedTypes.Identifier.check(path38.node.left) && ast_types_1.namedTypes.Identifier.check(path38.node.right) && checkName(path38.node.right.name, names) && !checkName(path38.node.left.name, names)) {
              names.push(path38.node.left.name);
            }
            return false;
          },
          visitFunction(path38) {
            if (path38.node.id) {
              let shouldDegenerate = false;
              (0, ast_types_1.visit)(path38.node, {
                visitCallExpression(path39) {
                  if (checkNames(path39.node, names)) {
                    shouldDegenerate = true;
                  }
                  return false;
                }
              });
              if (!shouldDegenerate) {
                return false;
              }
              path38.node.async = true;
              if (!checkName(path38.node.id.name, names)) {
                names.push(path38.node.id.name);
              }
            }
            this.traverse(path38);
          }
        });
      } while (lastNamesLength !== names.length);
      (0, ast_types_1.visit)(ast, {
        visitCallExpression(path38) {
          if (checkNames(path38.node, names)) {
            const delegate = false;
            const { name, parent: { node: pNode } } = path38;
            const expr = ast_types_1.builders.awaitExpression(path38.node, delegate);
            if (ast_types_1.namedTypes.CallExpression.check(pNode)) {
              pNode.arguments[name] = expr;
            } else {
              pNode[name] = expr;
            }
          }
          this.traverse(path38);
        }
      });
      return (0, escodegen_1.generate)(ast);
    }
    __name(degenerator, "degenerator");
    exports2.degenerator = degenerator;
    function checkNames({ callee }, names) {
      let name;
      if (ast_types_1.namedTypes.Identifier.check(callee)) {
        name = callee.name;
      } else if (ast_types_1.namedTypes.MemberExpression.check(callee)) {
        if (ast_types_1.namedTypes.Identifier.check(callee.object) && ast_types_1.namedTypes.Identifier.check(callee.property)) {
          name = `${callee.object.name}.${callee.property.name}`;
        } else {
          return false;
        }
      } else if (ast_types_1.namedTypes.FunctionExpression.check(callee)) {
        if (callee.id) {
          name = callee.id.name;
        } else {
          return false;
        }
      } else {
        throw new Error(`Don't know how to get name for: ${callee.type}`);
      }
      return checkName(name, names);
    }
    __name(checkNames, "checkNames");
    function checkName(name, names) {
      for (let i3 = 0; i3 < names.length; i3++) {
        const n3 = names[i3];
        if (util_1.types.isRegExp(n3)) {
          if (n3.test(name)) {
            return true;
          }
        } else if (name === n3) {
          return true;
        }
      }
      return false;
    }
    __name(checkName, "checkName");
  }
});

// ../../node_modules/degenerator/dist/compile.js
var require_compile2 = __commonJS({
  "../../node_modules/degenerator/dist/compile.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.compile = void 0;
    var util_1 = require("util");
    var degenerator_1 = require_degenerator();
    function compile(qjs, code, returnName, options = {}) {
      const compiled = (0, degenerator_1.degenerator)(code, options.names ?? []);
      const vm = qjs.newContext();
      if (options.sandbox) {
        for (const [name, value] of Object.entries(options.sandbox)) {
          if (typeof value !== "function") {
            throw new Error(`Expected a "function" for sandbox property \`${name}\`, but got "${typeof value}"`);
          }
          const fnHandle = vm.newFunction(name, (...args) => {
            const result2 = value(...args.map((arg) => quickJSHandleToHost(vm, arg)));
            vm.runtime.executePendingJobs();
            return hostToQuickJSHandle(vm, result2);
          });
          fnHandle.consume((handle) => vm.setProp(vm.global, name, handle));
        }
      }
      const fnResult = vm.evalCode(`${compiled};${returnName}`, options.filename);
      const fn = vm.unwrapResult(fnResult);
      const t3 = vm.typeof(fn);
      if (t3 !== "function") {
        throw new Error(`Expected a "function" named \`${returnName}\` to be defined, but got "${t3}"`);
      }
      const r3 = /* @__PURE__ */ __name(async function(...args) {
        let promiseHandle;
        let resolvedHandle;
        try {
          const result2 = vm.callFunction(fn, vm.undefined, ...args.map((arg) => hostToQuickJSHandle(vm, arg)));
          promiseHandle = vm.unwrapResult(result2);
          const resolvedResultP = vm.resolvePromise(promiseHandle);
          vm.runtime.executePendingJobs();
          const resolvedResult = await resolvedResultP;
          resolvedHandle = vm.unwrapResult(resolvedResult);
          return quickJSHandleToHost(vm, resolvedHandle);
        } catch (err) {
          if (err && typeof err === "object" && "cause" in err && err.cause) {
            if (typeof err.cause === "object" && "stack" in err.cause && "name" in err.cause && "message" in err.cause && typeof err.cause.stack === "string" && typeof err.cause.name === "string" && typeof err.cause.message === "string") {
              err.cause.stack = `${err.cause.name}: ${err.cause.message}
${err.cause.stack}`;
            }
            throw err.cause;
          }
          throw err;
        } finally {
          promiseHandle?.dispose();
          resolvedHandle?.dispose();
        }
      }, "r");
      Object.defineProperty(r3, "toString", {
        value: /* @__PURE__ */ __name(() => compiled, "value"),
        enumerable: false
      });
      return r3;
    }
    __name(compile, "compile");
    exports2.compile = compile;
    function quickJSHandleToHost(vm, val) {
      return vm.dump(val);
    }
    __name(quickJSHandleToHost, "quickJSHandleToHost");
    function hostToQuickJSHandle(vm, val) {
      if (typeof val === "undefined") {
        return vm.undefined;
      } else if (val === null) {
        return vm.null;
      } else if (typeof val === "string") {
        return vm.newString(val);
      } else if (typeof val === "number") {
        return vm.newNumber(val);
      } else if (typeof val === "bigint") {
        return vm.newBigInt(val);
      } else if (typeof val === "boolean") {
        return val ? vm.true : vm.false;
      } else if (util_1.types.isPromise(val)) {
        const promise = vm.newPromise();
        promise.settled.then(vm.runtime.executePendingJobs);
        val.then((r3) => {
          promise.resolve(hostToQuickJSHandle(vm, r3));
        }, (err) => {
          promise.reject(hostToQuickJSHandle(vm, err));
        });
        return promise.handle;
      } else if (util_1.types.isNativeError(val)) {
        return vm.newError(val);
      }
      throw new Error(`Unsupported value: ${val}`);
    }
    __name(hostToQuickJSHandle, "hostToQuickJSHandle");
  }
});

// ../../node_modules/degenerator/dist/index.js
var require_dist9 = __commonJS({
  "../../node_modules/degenerator/dist/index.js"(exports2) {
    "use strict";
    var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      var desc = Object.getOwnPropertyDescriptor(m3, k3);
      if (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) {
        desc = { enumerable: true, get: /* @__PURE__ */ __name(function() {
          return m3[k3];
        }, "get") };
      }
      Object.defineProperty(o3, k22, desc);
    }) : (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      o3[k22] = m3[k3];
    }));
    var __exportStar3 = exports2 && exports2.__exportStar || function(m3, exports3) {
      for (var p3 in m3) if (p3 !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p3)) __createBinding3(exports3, m3, p3);
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    __exportStar3(require_degenerator(), exports2);
    __exportStar3(require_compile2(), exports2);
  }
});

// ../../node_modules/pac-resolver/dist/dateRange.js
var require_dateRange = __commonJS({
  "../../node_modules/pac-resolver/dist/dateRange.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    function dateRange() {
      return false;
    }
    __name(dateRange, "dateRange");
    exports2.default = dateRange;
  }
});

// ../../node_modules/pac-resolver/dist/dnsDomainIs.js
var require_dnsDomainIs = __commonJS({
  "../../node_modules/pac-resolver/dist/dnsDomainIs.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    function dnsDomainIs(host, domain) {
      host = String(host);
      domain = String(domain);
      return host.substr(domain.length * -1) === domain;
    }
    __name(dnsDomainIs, "dnsDomainIs");
    exports2.default = dnsDomainIs;
  }
});

// ../../node_modules/pac-resolver/dist/dnsDomainLevels.js
var require_dnsDomainLevels = __commonJS({
  "../../node_modules/pac-resolver/dist/dnsDomainLevels.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    function dnsDomainLevels(host) {
      const match4 = String(host).match(/\./g);
      let levels2 = 0;
      if (match4) {
        levels2 = match4.length;
      }
      return levels2;
    }
    __name(dnsDomainLevels, "dnsDomainLevels");
    exports2.default = dnsDomainLevels;
  }
});

// ../../node_modules/pac-resolver/dist/util.js
var require_util11 = __commonJS({
  "../../node_modules/pac-resolver/dist/util.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.isGMT = exports2.dnsLookup = void 0;
    var dns_1 = require("dns");
    function dnsLookup(host, opts) {
      return new Promise((resolve13, reject) => {
        (0, dns_1.lookup)(host, opts, (err, res) => {
          if (err) {
            reject(err);
          } else {
            resolve13(res);
          }
        });
      });
    }
    __name(dnsLookup, "dnsLookup");
    exports2.dnsLookup = dnsLookup;
    function isGMT(v6) {
      return v6 === "GMT";
    }
    __name(isGMT, "isGMT");
    exports2.isGMT = isGMT;
  }
});

// ../../node_modules/pac-resolver/dist/dnsResolve.js
var require_dnsResolve = __commonJS({
  "../../node_modules/pac-resolver/dist/dnsResolve.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    var util_1 = require_util11();
    async function dnsResolve(host) {
      const family = 4;
      try {
        const r3 = await (0, util_1.dnsLookup)(host, { family });
        if (typeof r3 === "string") {
          return r3;
        }
      } catch (err) {
      }
      return null;
    }
    __name(dnsResolve, "dnsResolve");
    exports2.default = dnsResolve;
  }
});

// ../../node_modules/netmask/lib/netmask.js
var require_netmask = __commonJS({
  "../../node_modules/netmask/lib/netmask.js"(exports2) {
    (function() {
      var Netmask, atob2, chr, chr0, chrA, chra, ip2long, long2ip;
      long2ip = /* @__PURE__ */ __name(function(long) {
        var a3, b3, c3, d3;
        a3 = (long & 255 << 24) >>> 24;
        b3 = (long & 255 << 16) >>> 16;
        c3 = (long & 255 << 8) >>> 8;
        d3 = long & 255;
        return [a3, b3, c3, d3].join(".");
      }, "long2ip");
      ip2long = /* @__PURE__ */ __name(function(ip) {
        var b3, c3, i3, j3, n3, ref;
        b3 = [];
        for (i3 = j3 = 0; j3 <= 3; i3 = ++j3) {
          if (ip.length === 0) {
            break;
          }
          if (i3 > 0) {
            if (ip[0] !== ".") {
              throw new Error("Invalid IP");
            }
            ip = ip.substring(1);
          }
          ref = atob2(ip), n3 = ref[0], c3 = ref[1];
          ip = ip.substring(c3);
          b3.push(n3);
        }
        if (ip.length !== 0) {
          throw new Error("Invalid IP");
        }
        switch (b3.length) {
          case 1:
            if (b3[0] > 4294967295) {
              throw new Error("Invalid IP");
            }
            return b3[0] >>> 0;
          case 2:
            if (b3[0] > 255 || b3[1] > 16777215) {
              throw new Error("Invalid IP");
            }
            return (b3[0] << 24 | b3[1]) >>> 0;
          case 3:
            if (b3[0] > 255 || b3[1] > 255 || b3[2] > 65535) {
              throw new Error("Invalid IP");
            }
            return (b3[0] << 24 | b3[1] << 16 | b3[2]) >>> 0;
          case 4:
            if (b3[0] > 255 || b3[1] > 255 || b3[2] > 255 || b3[3] > 255) {
              throw new Error("Invalid IP");
            }
            return (b3[0] << 24 | b3[1] << 16 | b3[2] << 8 | b3[3]) >>> 0;
          default:
            throw new Error("Invalid IP");
        }
      }, "ip2long");
      chr = /* @__PURE__ */ __name(function(b3) {
        return b3.charCodeAt(0);
      }, "chr");
      chr0 = chr("0");
      chra = chr("a");
      chrA = chr("A");
      atob2 = /* @__PURE__ */ __name(function(s3) {
        var base, dmax, i3, n3, start;
        n3 = 0;
        base = 10;
        dmax = "9";
        i3 = 0;
        if (s3.length > 1 && s3[i3] === "0") {
          if (s3[i3 + 1] === "x" || s3[i3 + 1] === "X") {
            i3 += 2;
            base = 16;
          } else if ("0" <= s3[i3 + 1] && s3[i3 + 1] <= "9") {
            i3++;
            base = 8;
            dmax = "7";
          }
        }
        start = i3;
        while (i3 < s3.length) {
          if ("0" <= s3[i3] && s3[i3] <= dmax) {
            n3 = n3 * base + (chr(s3[i3]) - chr0) >>> 0;
          } else if (base === 16) {
            if ("a" <= s3[i3] && s3[i3] <= "f") {
              n3 = n3 * base + (10 + chr(s3[i3]) - chra) >>> 0;
            } else if ("A" <= s3[i3] && s3[i3] <= "F") {
              n3 = n3 * base + (10 + chr(s3[i3]) - chrA) >>> 0;
            } else {
              break;
            }
          } else {
            break;
          }
          if (n3 > 4294967295) {
            throw new Error("too large");
          }
          i3++;
        }
        if (i3 === start) {
          throw new Error("empty octet");
        }
        return [n3, i3];
      }, "atob");
      Netmask = (function() {
        function Netmask2(net, mask) {
          var error5, i3, j3, ref;
          if (typeof net !== "string") {
            throw new Error("Missing `net' parameter");
          }
          if (!mask) {
            ref = net.split("/", 2), net = ref[0], mask = ref[1];
          }
          if (!mask) {
            mask = 32;
          }
          if (typeof mask === "string" && mask.indexOf(".") > -1) {
            try {
              this.maskLong = ip2long(mask);
            } catch (error1) {
              error5 = error1;
              throw new Error("Invalid mask: " + mask);
            }
            for (i3 = j3 = 32; j3 >= 0; i3 = --j3) {
              if (this.maskLong === 4294967295 << 32 - i3 >>> 0) {
                this.bitmask = i3;
                break;
              }
            }
          } else if (mask || mask === 0) {
            this.bitmask = parseInt(mask, 10);
            this.maskLong = 0;
            if (this.bitmask > 0) {
              this.maskLong = 4294967295 << 32 - this.bitmask >>> 0;
            }
          } else {
            throw new Error("Invalid mask: empty");
          }
          try {
            this.netLong = (ip2long(net) & this.maskLong) >>> 0;
          } catch (error1) {
            error5 = error1;
            throw new Error("Invalid net address: " + net);
          }
          if (!(this.bitmask <= 32)) {
            throw new Error("Invalid mask for ip4: " + mask);
          }
          this.size = Math.pow(2, 32 - this.bitmask);
          this.base = long2ip(this.netLong);
          this.mask = long2ip(this.maskLong);
          this.hostmask = long2ip(~this.maskLong);
          this.first = this.bitmask <= 30 ? long2ip(this.netLong + 1) : this.base;
          this.last = this.bitmask <= 30 ? long2ip(this.netLong + this.size - 2) : long2ip(this.netLong + this.size - 1);
          this.broadcast = this.bitmask <= 30 ? long2ip(this.netLong + this.size - 1) : void 0;
        }
        __name(Netmask2, "Netmask");
        Netmask2.prototype.contains = function(ip) {
          if (typeof ip === "string" && (ip.indexOf("/") > 0 || ip.split(".").length !== 4)) {
            ip = new Netmask2(ip);
          }
          if (ip instanceof Netmask2) {
            return this.contains(ip.base) && this.contains(ip.broadcast || ip.last);
          } else {
            return (ip2long(ip) & this.maskLong) >>> 0 === (this.netLong & this.maskLong) >>> 0;
          }
        };
        Netmask2.prototype.next = function(count) {
          if (count == null) {
            count = 1;
          }
          return new Netmask2(long2ip(this.netLong + this.size * count), this.mask);
        };
        Netmask2.prototype.forEach = function(fn) {
          var index, lastLong, long;
          long = ip2long(this.first);
          lastLong = ip2long(this.last);
          index = 0;
          while (long <= lastLong) {
            fn(long2ip(long), long, index);
            index++;
            long++;
          }
        };
        Netmask2.prototype.toString = function() {
          return this.base + "/" + this.bitmask;
        };
        return Netmask2;
      })();
      exports2.ip2long = ip2long;
      exports2.long2ip = long2ip;
      exports2.Netmask = Netmask;
    }).call(exports2);
  }
});

// ../../node_modules/pac-resolver/dist/isInNet.js
var require_isInNet = __commonJS({
  "../../node_modules/pac-resolver/dist/isInNet.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    var netmask_1 = require_netmask();
    var util_1 = require_util11();
    async function isInNet(host, pattern, mask) {
      const family = 4;
      try {
        const ip = await (0, util_1.dnsLookup)(host, { family });
        if (typeof ip === "string") {
          const netmask = new netmask_1.Netmask(pattern, mask);
          return netmask.contains(ip);
        }
      } catch (err) {
      }
      return false;
    }
    __name(isInNet, "isInNet");
    exports2.default = isInNet;
  }
});

// ../../node_modules/pac-resolver/dist/isPlainHostName.js
var require_isPlainHostName = __commonJS({
  "../../node_modules/pac-resolver/dist/isPlainHostName.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    function isPlainHostName(host) {
      return !/\./.test(host);
    }
    __name(isPlainHostName, "isPlainHostName");
    exports2.default = isPlainHostName;
  }
});

// ../../node_modules/pac-resolver/dist/isResolvable.js
var require_isResolvable = __commonJS({
  "../../node_modules/pac-resolver/dist/isResolvable.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    var util_1 = require_util11();
    async function isResolvable(host) {
      const family = 4;
      try {
        if (await (0, util_1.dnsLookup)(host, { family })) {
          return true;
        }
      } catch (err) {
      }
      return false;
    }
    __name(isResolvable, "isResolvable");
    exports2.default = isResolvable;
  }
});

// ../../node_modules/pac-resolver/dist/localHostOrDomainIs.js
var require_localHostOrDomainIs = __commonJS({
  "../../node_modules/pac-resolver/dist/localHostOrDomainIs.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    function localHostOrDomainIs(host, hostdom) {
      const parts = host.split(".");
      const domparts = hostdom.split(".");
      let matches = true;
      for (let i3 = 0; i3 < parts.length; i3++) {
        if (parts[i3] !== domparts[i3]) {
          matches = false;
          break;
        }
      }
      return matches;
    }
    __name(localHostOrDomainIs, "localHostOrDomainIs");
    exports2.default = localHostOrDomainIs;
  }
});

// ../../node_modules/pac-resolver/dist/ip.js
var require_ip = __commonJS({
  "../../node_modules/pac-resolver/dist/ip.js"(exports2) {
    "use strict";
    var __importDefault2 = exports2 && exports2.__importDefault || function(mod) {
      return mod && mod.__esModule ? mod : { "default": mod };
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.ip = void 0;
    var os_1 = __importDefault2(require("os"));
    exports2.ip = {
      address() {
        const interfaces = os_1.default.networkInterfaces();
        const family = normalizeFamily();
        const all = Object.values(interfaces).map((addrs = []) => {
          const addresses = addrs.filter((details) => {
            const detailsFamily = normalizeFamily(details.family);
            if (detailsFamily !== family || exports2.ip.isLoopback(details.address)) {
              return false;
            }
            return true;
          });
          return addresses.length ? addresses[0].address : void 0;
        }).filter(Boolean);
        return !all.length ? exports2.ip.loopback(family) : all[0];
      },
      isLoopback(addr) {
        return /^(::f{4}:)?127\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})/.test(addr) || /^fe80::1$/.test(addr) || /^::1$/.test(addr) || /^::$/.test(addr);
      },
      loopback(family) {
        family = normalizeFamily(family);
        if (family !== "ipv4" && family !== "ipv6") {
          throw new Error("family must be ipv4 or ipv6");
        }
        return family === "ipv4" ? "127.0.0.1" : "fe80::1";
      }
    };
    function normalizeFamily(family) {
      if (family === 4) {
        return "ipv4";
      }
      if (family === 6) {
        return "ipv6";
      }
      return family ? family.toLowerCase() : "ipv4";
    }
    __name(normalizeFamily, "normalizeFamily");
  }
});

// ../../node_modules/pac-resolver/dist/myIpAddress.js
var require_myIpAddress = __commonJS({
  "../../node_modules/pac-resolver/dist/myIpAddress.js"(exports2) {
    "use strict";
    var __importDefault2 = exports2 && exports2.__importDefault || function(mod) {
      return mod && mod.__esModule ? mod : { "default": mod };
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    var ip_1 = require_ip();
    var net_1 = __importDefault2(require("net"));
    async function myIpAddress() {
      return new Promise((resolve13, reject) => {
        const socket = net_1.default.connect({ host: "8.8.8.8", port: 53 });
        const onError = /* @__PURE__ */ __name(() => {
          resolve13(ip_1.ip.address());
        }, "onError");
        socket.once("error", onError);
        socket.once("connect", () => {
          socket.removeListener("error", onError);
          const addr = socket.address();
          socket.destroy();
          if (typeof addr === "string") {
            resolve13(addr);
          } else if (addr.address) {
            resolve13(addr.address);
          } else {
            reject(new Error("Expected a `string`"));
          }
        });
      });
    }
    __name(myIpAddress, "myIpAddress");
    exports2.default = myIpAddress;
  }
});

// ../../node_modules/pac-resolver/dist/shExpMatch.js
var require_shExpMatch = __commonJS({
  "../../node_modules/pac-resolver/dist/shExpMatch.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    function shExpMatch(str, shexp) {
      const re = toRegExp(shexp);
      return re.test(str);
    }
    __name(shExpMatch, "shExpMatch");
    exports2.default = shExpMatch;
    function toRegExp(str) {
      str = String(str).replace(/\./g, "\\.").replace(/\?/g, ".").replace(/\*/g, ".*");
      return new RegExp(`^${str}$`);
    }
    __name(toRegExp, "toRegExp");
  }
});

// ../../node_modules/pac-resolver/dist/timeRange.js
var require_timeRange = __commonJS({
  "../../node_modules/pac-resolver/dist/timeRange.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    function timeRange() {
      const args = Array.prototype.slice.call(arguments);
      const lastArg = args.pop();
      const useGMTzone = lastArg === "GMT";
      const currentDate = /* @__PURE__ */ new Date();
      if (!useGMTzone) {
        args.push(lastArg);
      }
      let result2 = false;
      const noOfArgs = args.length;
      const numericArgs = args.map((n3) => parseInt(n3, 10));
      if (noOfArgs === 1) {
        result2 = getCurrentHour(useGMTzone, currentDate) === numericArgs[0];
      } else if (noOfArgs === 2) {
        const currentHour = getCurrentHour(useGMTzone, currentDate);
        result2 = numericArgs[0] <= currentHour && currentHour < numericArgs[1];
      } else if (noOfArgs === 4) {
        result2 = valueInRange(secondsElapsedToday(numericArgs[0], numericArgs[1], 0), secondsElapsedToday(getCurrentHour(useGMTzone, currentDate), getCurrentMinute(useGMTzone, currentDate), 0), secondsElapsedToday(numericArgs[2], numericArgs[3], 59));
      } else if (noOfArgs === 6) {
        result2 = valueInRange(secondsElapsedToday(numericArgs[0], numericArgs[1], numericArgs[2]), secondsElapsedToday(getCurrentHour(useGMTzone, currentDate), getCurrentMinute(useGMTzone, currentDate), getCurrentSecond(useGMTzone, currentDate)), secondsElapsedToday(numericArgs[3], numericArgs[4], numericArgs[5]));
      }
      return result2;
    }
    __name(timeRange, "timeRange");
    exports2.default = timeRange;
    function secondsElapsedToday(hh, mm, ss) {
      return hh * 3600 + mm * 60 + ss;
    }
    __name(secondsElapsedToday, "secondsElapsedToday");
    function getCurrentHour(gmt, currentDate) {
      return gmt ? currentDate.getUTCHours() : currentDate.getHours();
    }
    __name(getCurrentHour, "getCurrentHour");
    function getCurrentMinute(gmt, currentDate) {
      return gmt ? currentDate.getUTCMinutes() : currentDate.getMinutes();
    }
    __name(getCurrentMinute, "getCurrentMinute");
    function getCurrentSecond(gmt, currentDate) {
      return gmt ? currentDate.getUTCSeconds() : currentDate.getSeconds();
    }
    __name(getCurrentSecond, "getCurrentSecond");
    function valueInRange(start, value, finish) {
      return start <= value && value <= finish;
    }
    __name(valueInRange, "valueInRange");
  }
});

// ../../node_modules/pac-resolver/dist/weekdayRange.js
var require_weekdayRange = __commonJS({
  "../../node_modules/pac-resolver/dist/weekdayRange.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    var util_1 = require_util11();
    var weekdays = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"];
    function weekdayRange(wd1, wd2, gmt) {
      let useGMTzone = false;
      let wd1Index = -1;
      let wd2Index = -1;
      let wd2IsGmt = false;
      if ((0, util_1.isGMT)(gmt)) {
        useGMTzone = true;
      } else if ((0, util_1.isGMT)(wd2)) {
        useGMTzone = true;
        wd2IsGmt = true;
      }
      wd1Index = weekdays.indexOf(wd1);
      if (!wd2IsGmt && isWeekday(wd2)) {
        wd2Index = weekdays.indexOf(wd2);
      }
      const todaysDay = getTodaysDay(useGMTzone);
      let result2;
      if (wd2Index < 0) {
        result2 = todaysDay === wd1Index;
      } else if (wd1Index <= wd2Index) {
        result2 = valueInRange(wd1Index, todaysDay, wd2Index);
      } else {
        result2 = valueInRange(wd1Index, todaysDay, 6) || valueInRange(0, todaysDay, wd2Index);
      }
      return result2;
    }
    __name(weekdayRange, "weekdayRange");
    exports2.default = weekdayRange;
    function getTodaysDay(gmt) {
      return gmt ? (/* @__PURE__ */ new Date()).getUTCDay() : (/* @__PURE__ */ new Date()).getDay();
    }
    __name(getTodaysDay, "getTodaysDay");
    function valueInRange(start, value, finish) {
      return start <= value && value <= finish;
    }
    __name(valueInRange, "valueInRange");
    function isWeekday(v6) {
      if (!v6)
        return false;
      return weekdays.includes(v6);
    }
    __name(isWeekday, "isWeekday");
  }
});

// ../../node_modules/pac-resolver/dist/index.js
var require_dist10 = __commonJS({
  "../../node_modules/pac-resolver/dist/index.js"(exports2) {
    "use strict";
    var __importDefault2 = exports2 && exports2.__importDefault || function(mod) {
      return mod && mod.__esModule ? mod : { "default": mod };
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.sandbox = exports2.createPacResolver = void 0;
    var degenerator_1 = require_dist9();
    var dateRange_1 = __importDefault2(require_dateRange());
    var dnsDomainIs_1 = __importDefault2(require_dnsDomainIs());
    var dnsDomainLevels_1 = __importDefault2(require_dnsDomainLevels());
    var dnsResolve_1 = __importDefault2(require_dnsResolve());
    var isInNet_1 = __importDefault2(require_isInNet());
    var isPlainHostName_1 = __importDefault2(require_isPlainHostName());
    var isResolvable_1 = __importDefault2(require_isResolvable());
    var localHostOrDomainIs_1 = __importDefault2(require_localHostOrDomainIs());
    var myIpAddress_1 = __importDefault2(require_myIpAddress());
    var shExpMatch_1 = __importDefault2(require_shExpMatch());
    var timeRange_1 = __importDefault2(require_timeRange());
    var weekdayRange_1 = __importDefault2(require_weekdayRange());
    function createPacResolver(qjs, _str, _opts = {}) {
      const str = Buffer.isBuffer(_str) ? _str.toString("utf8") : _str;
      const context = {
        ...exports2.sandbox,
        ..._opts.sandbox
      };
      const names = Object.keys(context).filter((k3) => isAsyncFunction(context[k3]));
      const opts = {
        filename: "proxy.pac",
        names,
        ..._opts,
        sandbox: context
      };
      const resolver = (0, degenerator_1.compile)(qjs, str, "FindProxyForURL", opts);
      function FindProxyForURL(url, _host) {
        const urlObj = typeof url === "string" ? new URL(url) : url;
        const host = _host || urlObj.hostname;
        if (!host) {
          throw new TypeError("Could not determine `host`");
        }
        return resolver(urlObj.href, host);
      }
      __name(FindProxyForURL, "FindProxyForURL");
      Object.defineProperty(FindProxyForURL, "toString", {
        value: /* @__PURE__ */ __name(() => resolver.toString(), "value"),
        enumerable: false
      });
      return FindProxyForURL;
    }
    __name(createPacResolver, "createPacResolver");
    exports2.createPacResolver = createPacResolver;
    exports2.sandbox = Object.freeze({
      alert: /* @__PURE__ */ __name((message2 = "") => console.log("%s", message2), "alert"),
      dateRange: dateRange_1.default,
      dnsDomainIs: dnsDomainIs_1.default,
      dnsDomainLevels: dnsDomainLevels_1.default,
      dnsResolve: dnsResolve_1.default,
      isInNet: isInNet_1.default,
      isPlainHostName: isPlainHostName_1.default,
      isResolvable: isResolvable_1.default,
      localHostOrDomainIs: localHostOrDomainIs_1.default,
      myIpAddress: myIpAddress_1.default,
      shExpMatch: shExpMatch_1.default,
      timeRange: timeRange_1.default,
      weekdayRange: weekdayRange_1.default
    });
    function isAsyncFunction(v6) {
      if (typeof v6 !== "function")
        return false;
      if (v6.constructor.name === "AsyncFunction")
        return true;
      if (String(v6).indexOf("__awaiter(") !== -1)
        return true;
      return Boolean(v6.async);
    }
    __name(isAsyncFunction, "isAsyncFunction");
  }
});

// ../../node_modules/@tootallnate/quickjs-emscripten/dist/esmHelpers.js
var require_esmHelpers = __commonJS({
  "../../node_modules/@tootallnate/quickjs-emscripten/dist/esmHelpers.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.unwrapJavascript = exports2.unwrapTypescript = void 0;
    function fakeUnwrapDefault(mod) {
      return mod.default;
    }
    __name(fakeUnwrapDefault, "fakeUnwrapDefault");
    function actualUnwrapDefault(mod) {
      const maybeUnwrap = mod.default;
      return maybeUnwrap ?? mod;
    }
    __name(actualUnwrapDefault, "actualUnwrapDefault");
    exports2.unwrapTypescript = actualUnwrapDefault;
    exports2.unwrapJavascript = fakeUnwrapDefault;
  }
});

// ../../node_modules/@tootallnate/quickjs-emscripten/dist/debug.js
var require_debug3 = __commonJS({
  "../../node_modules/@tootallnate/quickjs-emscripten/dist/debug.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.debugLog = exports2.QTS_DEBUG = void 0;
    exports2.QTS_DEBUG = Boolean(typeof process === "object" && process.env.QTS_DEBUG);
    exports2.debugLog = exports2.QTS_DEBUG ? console.log.bind(console) : () => {
    };
  }
});

// ../../node_modules/@tootallnate/quickjs-emscripten/dist/errors.js
var require_errors5 = __commonJS({
  "../../node_modules/@tootallnate/quickjs-emscripten/dist/errors.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.QuickJSMemoryLeakDetected = exports2.QuickJSAsyncifySuspended = exports2.QuickJSAsyncifyError = exports2.QuickJSNotImplemented = exports2.QuickJSUseAfterFree = exports2.QuickJSWrongOwner = exports2.QuickJSUnwrapError = void 0;
    var QuickJSUnwrapError = class extends Error {
      static {
        __name(this, "QuickJSUnwrapError");
      }
      constructor(cause, context) {
        super(String(cause));
        this.cause = cause;
        this.context = context;
        this.name = "QuickJSUnwrapError";
      }
    };
    exports2.QuickJSUnwrapError = QuickJSUnwrapError;
    var QuickJSWrongOwner = class extends Error {
      static {
        __name(this, "QuickJSWrongOwner");
      }
      constructor() {
        super(...arguments);
        this.name = "QuickJSWrongOwner";
      }
    };
    exports2.QuickJSWrongOwner = QuickJSWrongOwner;
    var QuickJSUseAfterFree = class extends Error {
      static {
        __name(this, "QuickJSUseAfterFree");
      }
      constructor() {
        super(...arguments);
        this.name = "QuickJSUseAfterFree";
      }
    };
    exports2.QuickJSUseAfterFree = QuickJSUseAfterFree;
    var QuickJSNotImplemented = class extends Error {
      static {
        __name(this, "QuickJSNotImplemented");
      }
      constructor() {
        super(...arguments);
        this.name = "QuickJSNotImplemented";
      }
    };
    exports2.QuickJSNotImplemented = QuickJSNotImplemented;
    var QuickJSAsyncifyError = class extends Error {
      static {
        __name(this, "QuickJSAsyncifyError");
      }
      constructor() {
        super(...arguments);
        this.name = "QuickJSAsyncifyError";
      }
    };
    exports2.QuickJSAsyncifyError = QuickJSAsyncifyError;
    var QuickJSAsyncifySuspended = class extends Error {
      static {
        __name(this, "QuickJSAsyncifySuspended");
      }
      constructor() {
        super(...arguments);
        this.name = "QuickJSAsyncifySuspended";
      }
    };
    exports2.QuickJSAsyncifySuspended = QuickJSAsyncifySuspended;
    var QuickJSMemoryLeakDetected = class extends Error {
      static {
        __name(this, "QuickJSMemoryLeakDetected");
      }
      constructor() {
        super(...arguments);
        this.name = "QuickJSMemoryLeakDetected";
      }
    };
    exports2.QuickJSMemoryLeakDetected = QuickJSMemoryLeakDetected;
  }
});

// ../../node_modules/@tootallnate/quickjs-emscripten/dist/asyncify-helpers.js
var require_asyncify_helpers = __commonJS({
  "../../node_modules/@tootallnate/quickjs-emscripten/dist/asyncify-helpers.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.awaitEachYieldedPromise = exports2.maybeAsync = exports2.maybeAsyncFn = void 0;
    function* awaitYield(value) {
      return yield value;
    }
    __name(awaitYield, "awaitYield");
    function awaitYieldOf(generator) {
      return awaitYield(awaitEachYieldedPromise(generator));
    }
    __name(awaitYieldOf, "awaitYieldOf");
    var AwaitYield = awaitYield;
    AwaitYield.of = awaitYieldOf;
    function maybeAsyncFn(that, fn) {
      return (...args) => {
        const generator = fn.call(that, AwaitYield, ...args);
        return awaitEachYieldedPromise(generator);
      };
    }
    __name(maybeAsyncFn, "maybeAsyncFn");
    exports2.maybeAsyncFn = maybeAsyncFn;
    function maybeAsync(that, startGenerator) {
      const generator = startGenerator.call(that, AwaitYield);
      return awaitEachYieldedPromise(generator);
    }
    __name(maybeAsync, "maybeAsync");
    exports2.maybeAsync = maybeAsync;
    function awaitEachYieldedPromise(gen) {
      function handleNextStep(step) {
        if (step.done) {
          return step.value;
        }
        if (step.value instanceof Promise) {
          return step.value.then((value) => handleNextStep(gen.next(value)), (error5) => handleNextStep(gen.throw(error5)));
        }
        return handleNextStep(gen.next(step.value));
      }
      __name(handleNextStep, "handleNextStep");
      return handleNextStep(gen.next());
    }
    __name(awaitEachYieldedPromise, "awaitEachYieldedPromise");
    exports2.awaitEachYieldedPromise = awaitEachYieldedPromise;
  }
});

// ../../node_modules/@tootallnate/quickjs-emscripten/dist/lifetime.js
var require_lifetime = __commonJS({
  "../../node_modules/@tootallnate/quickjs-emscripten/dist/lifetime.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.Scope = exports2.WeakLifetime = exports2.StaticLifetime = exports2.Lifetime = void 0;
    var asyncify_helpers_1 = require_asyncify_helpers();
    var debug_1 = require_debug3();
    var errors_1 = require_errors5();
    var Lifetime = class _Lifetime {
      static {
        __name(this, "Lifetime");
      }
      /**
       * When the Lifetime is disposed, it will call `disposer(_value)`. Use the
       * disposer function to implement whatever cleanup needs to happen at the end
       * of `value`'s lifetime.
       *
       * `_owner` is not used or controlled by the lifetime. It's just metadata for
       * the creator.
       */
      constructor(_value, copier, disposer, _owner) {
        this._value = _value;
        this.copier = copier;
        this.disposer = disposer;
        this._owner = _owner;
        this._alive = true;
        this._constructorStack = debug_1.QTS_DEBUG ? new Error("Lifetime constructed").stack : void 0;
      }
      get alive() {
        return this._alive;
      }
      /**
       * The value this Lifetime protects. You must never retain the value - it
       * may become invalid, leading to memory errors.
       *
       * @throws If the lifetime has been [[dispose]]d already.
       */
      get value() {
        this.assertAlive();
        return this._value;
      }
      get owner() {
        return this._owner;
      }
      get dupable() {
        return !!this.copier;
      }
      /**
       * Create a new handle pointing to the same [[value]].
       */
      dup() {
        this.assertAlive();
        if (!this.copier) {
          throw new Error("Non-dupable lifetime");
        }
        return new _Lifetime(this.copier(this._value), this.copier, this.disposer, this._owner);
      }
      consume(map3) {
        this.assertAlive();
        const result2 = map3(this);
        this.dispose();
        return result2;
      }
      /**
       * Dispose of [[value]] and perform cleanup.
       */
      dispose() {
        this.assertAlive();
        if (this.disposer) {
          this.disposer(this._value);
        }
        this._alive = false;
      }
      assertAlive() {
        if (!this.alive) {
          if (this._constructorStack) {
            throw new errors_1.QuickJSUseAfterFree(`Lifetime not alive
${this._constructorStack}
Lifetime used`);
          }
          throw new errors_1.QuickJSUseAfterFree("Lifetime not alive");
        }
      }
    };
    exports2.Lifetime = Lifetime;
    var StaticLifetime = class extends Lifetime {
      static {
        __name(this, "StaticLifetime");
      }
      constructor(value, owner) {
        super(value, void 0, void 0, owner);
      }
      // Static lifetime doesn't need a copier to be copiable
      get dupable() {
        return true;
      }
      // Copy returns the same instance.
      dup() {
        return this;
      }
      // Dispose does nothing.
      dispose() {
      }
    };
    exports2.StaticLifetime = StaticLifetime;
    var WeakLifetime = class extends Lifetime {
      static {
        __name(this, "WeakLifetime");
      }
      constructor(value, copier, disposer, owner) {
        super(value, copier, disposer, owner);
      }
      dispose() {
        this._alive = false;
      }
    };
    exports2.WeakLifetime = WeakLifetime;
    function scopeFinally(scope, blockError) {
      let disposeError;
      try {
        scope.dispose();
      } catch (error5) {
        disposeError = error5;
      }
      if (blockError && disposeError) {
        Object.assign(blockError, {
          message: `${blockError.message}
 Then, failed to dispose scope: ${disposeError.message}`,
          disposeError
        });
        throw blockError;
      }
      if (blockError || disposeError) {
        throw blockError || disposeError;
      }
    }
    __name(scopeFinally, "scopeFinally");
    var Scope = class _Scope {
      static {
        __name(this, "Scope");
      }
      constructor() {
        this._disposables = new Lifetime(/* @__PURE__ */ new Set());
      }
      /**
       * Run `block` with a new Scope instance that will be disposed after the block returns.
       * Inside `block`, call `scope.manage` on each lifetime you create to have the lifetime
       * automatically disposed after the block returns.
       *
       * @warning Do not use with async functions. Instead, use [[withScopeAsync]].
       */
      static withScope(block) {
        const scope = new _Scope();
        let blockError;
        try {
          return block(scope);
        } catch (error5) {
          blockError = error5;
          throw error5;
        } finally {
          scopeFinally(scope, blockError);
        }
      }
      static withScopeMaybeAsync(_this, block) {
        return (0, asyncify_helpers_1.maybeAsync)(void 0, function* (awaited) {
          const scope = new _Scope();
          let blockError;
          try {
            return yield* awaited.of(block.call(_this, awaited, scope));
          } catch (error5) {
            blockError = error5;
            throw error5;
          } finally {
            scopeFinally(scope, blockError);
          }
        });
      }
      /**
       * Run `block` with a new Scope instance that will be disposed after the
       * block's returned promise settles. Inside `block`, call `scope.manage` on each
       * lifetime you create to have the lifetime automatically disposed after the
       * block returns.
       */
      static async withScopeAsync(block) {
        const scope = new _Scope();
        let blockError;
        try {
          return await block(scope);
        } catch (error5) {
          blockError = error5;
          throw error5;
        } finally {
          scopeFinally(scope, blockError);
        }
      }
      /**
       * Track `lifetime` so that it is disposed when this scope is disposed.
       */
      manage(lifetime) {
        this._disposables.value.add(lifetime);
        return lifetime;
      }
      get alive() {
        return this._disposables.alive;
      }
      dispose() {
        const lifetimes = Array.from(this._disposables.value.values()).reverse();
        for (const lifetime of lifetimes) {
          if (lifetime.alive) {
            lifetime.dispose();
          }
        }
        this._disposables.dispose();
      }
    };
    exports2.Scope = Scope;
  }
});

// ../../node_modules/@tootallnate/quickjs-emscripten/dist/deferred-promise.js
var require_deferred_promise = __commonJS({
  "../../node_modules/@tootallnate/quickjs-emscripten/dist/deferred-promise.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.QuickJSDeferredPromise = void 0;
    var QuickJSDeferredPromise = class {
      static {
        __name(this, "QuickJSDeferredPromise");
      }
      /**
       * Use [[QuickJSContext.newPromise]] to create a new promise instead of calling
       * this constructor directly.
       * @unstable
       */
      constructor(args) {
        this.resolve = (value) => {
          if (!this.resolveHandle.alive) {
            return;
          }
          this.context.unwrapResult(this.context.callFunction(this.resolveHandle, this.context.undefined, value || this.context.undefined)).dispose();
          this.disposeResolvers();
          this.onSettled();
        };
        this.reject = (value) => {
          if (!this.rejectHandle.alive) {
            return;
          }
          this.context.unwrapResult(this.context.callFunction(this.rejectHandle, this.context.undefined, value || this.context.undefined)).dispose();
          this.disposeResolvers();
          this.onSettled();
        };
        this.dispose = () => {
          if (this.handle.alive) {
            this.handle.dispose();
          }
          this.disposeResolvers();
        };
        this.context = args.context;
        this.owner = args.context.runtime;
        this.handle = args.promiseHandle;
        this.settled = new Promise((resolve13) => {
          this.onSettled = resolve13;
        });
        this.resolveHandle = args.resolveHandle;
        this.rejectHandle = args.rejectHandle;
      }
      get alive() {
        return this.handle.alive || this.resolveHandle.alive || this.rejectHandle.alive;
      }
      disposeResolvers() {
        if (this.resolveHandle.alive) {
          this.resolveHandle.dispose();
        }
        if (this.rejectHandle.alive) {
          this.rejectHandle.dispose();
        }
      }
    };
    exports2.QuickJSDeferredPromise = QuickJSDeferredPromise;
  }
});

// ../../node_modules/@tootallnate/quickjs-emscripten/dist/memory.js
var require_memory = __commonJS({
  "../../node_modules/@tootallnate/quickjs-emscripten/dist/memory.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.ModuleMemory = void 0;
    var lifetime_1 = require_lifetime();
    var ModuleMemory = class {
      static {
        __name(this, "ModuleMemory");
      }
      constructor(module3) {
        this.module = module3;
      }
      toPointerArray(handleArray) {
        const typedArray = new Int32Array(handleArray.map((handle) => handle.value));
        const numBytes = typedArray.length * typedArray.BYTES_PER_ELEMENT;
        const ptr = this.module._malloc(numBytes);
        var heapBytes = new Uint8Array(this.module.HEAPU8.buffer, ptr, numBytes);
        heapBytes.set(new Uint8Array(typedArray.buffer));
        return new lifetime_1.Lifetime(ptr, void 0, (ptr2) => this.module._free(ptr2));
      }
      newMutablePointerArray(length) {
        const zeros = new Int32Array(new Array(length).fill(0));
        const numBytes = zeros.length * zeros.BYTES_PER_ELEMENT;
        const ptr = this.module._malloc(numBytes);
        const typedArray = new Int32Array(this.module.HEAPU8.buffer, ptr, length);
        typedArray.set(zeros);
        return new lifetime_1.Lifetime({ typedArray, ptr }, void 0, (value) => this.module._free(value.ptr));
      }
      newHeapCharPointer(string) {
        const numBytes = this.module.lengthBytesUTF8(string) + 1;
        const ptr = this.module._malloc(numBytes);
        this.module.stringToUTF8(string, ptr, numBytes);
        return new lifetime_1.Lifetime(ptr, void 0, (value) => this.module._free(value));
      }
      consumeHeapCharPointer(ptr) {
        const str = this.module.UTF8ToString(ptr);
        this.module._free(ptr);
        return str;
      }
    };
    exports2.ModuleMemory = ModuleMemory;
  }
});

// ../../node_modules/@tootallnate/quickjs-emscripten/dist/types-ffi.js
var require_types_ffi = __commonJS({
  "../../node_modules/@tootallnate/quickjs-emscripten/dist/types-ffi.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.EvalFlags = exports2.assertSync = void 0;
    function assertSync(fn) {
      return /* @__PURE__ */ __name(function mustBeSync(...args) {
        const result2 = fn(...args);
        if (result2 && typeof result2 === "object" && result2 instanceof Promise) {
          throw new Error("Function unexpectedly returned a Promise");
        }
        return result2;
      }, "mustBeSync");
    }
    __name(assertSync, "assertSync");
    exports2.assertSync = assertSync;
    exports2.EvalFlags = {
      /** global code (default) */
      JS_EVAL_TYPE_GLOBAL: 0 << 0,
      /** module code */
      JS_EVAL_TYPE_MODULE: 1 << 0,
      /** direct call (internal use) */
      JS_EVAL_TYPE_DIRECT: 2 << 0,
      /** indirect call (internal use) */
      JS_EVAL_TYPE_INDIRECT: 3 << 0,
      JS_EVAL_TYPE_MASK: 3 << 0,
      /** force 'strict' mode */
      JS_EVAL_FLAG_STRICT: 1 << 3,
      /** force 'strip' mode */
      JS_EVAL_FLAG_STRIP: 1 << 4,
      /**
       * compile but do not run. The result is an object with a
       * JS_TAG_FUNCTION_BYTECODE or JS_TAG_MODULE tag. It can be executed
       * with JS_EvalFunction().
       */
      JS_EVAL_FLAG_COMPILE_ONLY: 1 << 5,
      /** don't include the stack frames before this eval in the Error() backtraces */
      JS_EVAL_FLAG_BACKTRACE_BARRIER: 1 << 6
    };
  }
});

// ../../node_modules/@tootallnate/quickjs-emscripten/dist/types.js
var require_types4 = __commonJS({
  "../../node_modules/@tootallnate/quickjs-emscripten/dist/types.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.concat = exports2.evalOptionsToFlags = exports2.DefaultIntrinsics = void 0;
    var types_ffi_1 = require_types_ffi();
    var UnstableSymbol = Symbol("Unstable");
    exports2.DefaultIntrinsics = Symbol("DefaultIntrinsics");
    function evalOptionsToFlags(evalOptions) {
      if (typeof evalOptions === "number") {
        return evalOptions;
      }
      if (evalOptions === void 0) {
        return 0;
      }
      const { type, strict, strip, compileOnly, backtraceBarrier } = evalOptions;
      let flags = 0;
      if (type === "global")
        flags |= types_ffi_1.EvalFlags.JS_EVAL_TYPE_GLOBAL;
      if (type === "module")
        flags |= types_ffi_1.EvalFlags.JS_EVAL_TYPE_MODULE;
      if (strict)
        flags |= types_ffi_1.EvalFlags.JS_EVAL_FLAG_STRICT;
      if (strip)
        flags |= types_ffi_1.EvalFlags.JS_EVAL_FLAG_STRIP;
      if (compileOnly)
        flags |= types_ffi_1.EvalFlags.JS_EVAL_FLAG_COMPILE_ONLY;
      if (backtraceBarrier)
        flags |= types_ffi_1.EvalFlags.JS_EVAL_FLAG_BACKTRACE_BARRIER;
      return flags;
    }
    __name(evalOptionsToFlags, "evalOptionsToFlags");
    exports2.evalOptionsToFlags = evalOptionsToFlags;
    function concat(...values) {
      let result2 = [];
      for (const value of values) {
        if (value !== void 0) {
          result2 = result2.concat(value);
        }
      }
      return result2;
    }
    __name(concat, "concat");
    exports2.concat = concat;
  }
});

// ../../node_modules/@tootallnate/quickjs-emscripten/dist/context.js
var require_context = __commonJS({
  "../../node_modules/@tootallnate/quickjs-emscripten/dist/context.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.QuickJSContext = void 0;
    var debug_1 = require_debug3();
    var deferred_promise_1 = require_deferred_promise();
    var errors_1 = require_errors5();
    var lifetime_1 = require_lifetime();
    var memory_1 = require_memory();
    var types_1 = require_types4();
    var ContextMemory = class extends memory_1.ModuleMemory {
      static {
        __name(this, "ContextMemory");
      }
      /** @private */
      constructor(args) {
        super(args.module);
        this.scope = new lifetime_1.Scope();
        this.copyJSValue = (ptr) => {
          return this.ffi.QTS_DupValuePointer(this.ctx.value, ptr);
        };
        this.freeJSValue = (ptr) => {
          this.ffi.QTS_FreeValuePointer(this.ctx.value, ptr);
        };
        args.ownedLifetimes?.forEach((lifetime) => this.scope.manage(lifetime));
        this.owner = args.owner;
        this.module = args.module;
        this.ffi = args.ffi;
        this.rt = args.rt;
        this.ctx = this.scope.manage(args.ctx);
      }
      get alive() {
        return this.scope.alive;
      }
      dispose() {
        return this.scope.dispose();
      }
      /**
       * Track `lifetime` so that it is disposed when this scope is disposed.
       */
      manage(lifetime) {
        return this.scope.manage(lifetime);
      }
      consumeJSCharPointer(ptr) {
        const str = this.module.UTF8ToString(ptr);
        this.ffi.QTS_FreeCString(this.ctx.value, ptr);
        return str;
      }
      heapValueHandle(ptr) {
        return new lifetime_1.Lifetime(ptr, this.copyJSValue, this.freeJSValue, this.owner);
      }
    };
    var QuickJSContext = class {
      static {
        __name(this, "QuickJSContext");
      }
      /**
       * Use {@link QuickJS.createVm} to create a QuickJSContext instance.
       */
      constructor(args) {
        this._undefined = void 0;
        this._null = void 0;
        this._false = void 0;
        this._true = void 0;
        this._global = void 0;
        this._BigInt = void 0;
        this.fnNextId = -32768;
        this.fnMaps = /* @__PURE__ */ new Map();
        this.cToHostCallbacks = {
          callFunction: /* @__PURE__ */ __name((ctx, this_ptr, argc, argv, fn_id) => {
            if (ctx !== this.ctx.value) {
              throw new Error("QuickJSContext instance received C -> JS call with mismatched ctx");
            }
            const fn = this.getFunction(fn_id);
            if (!fn) {
              throw new Error(`QuickJSContext had no callback with id ${fn_id}`);
            }
            return lifetime_1.Scope.withScopeMaybeAsync(this, function* (awaited, scope) {
              const thisHandle = scope.manage(new lifetime_1.WeakLifetime(this_ptr, this.memory.copyJSValue, this.memory.freeJSValue, this.runtime));
              const argHandles = new Array(argc);
              for (let i3 = 0; i3 < argc; i3++) {
                const ptr = this.ffi.QTS_ArgvGetJSValueConstPointer(argv, i3);
                argHandles[i3] = scope.manage(new lifetime_1.WeakLifetime(ptr, this.memory.copyJSValue, this.memory.freeJSValue, this.runtime));
              }
              try {
                const result2 = yield* awaited(fn.apply(thisHandle, argHandles));
                if (result2) {
                  if ("error" in result2 && result2.error) {
                    (0, debug_1.debugLog)("throw error", result2.error);
                    throw result2.error;
                  }
                  const handle = scope.manage(result2 instanceof lifetime_1.Lifetime ? result2 : result2.value);
                  return this.ffi.QTS_DupValuePointer(this.ctx.value, handle.value);
                }
                return 0;
              } catch (error5) {
                return this.errorToHandle(error5).consume((errorHandle) => this.ffi.QTS_Throw(this.ctx.value, errorHandle.value));
              }
            });
          }, "callFunction")
        };
        this.runtime = args.runtime;
        this.module = args.module;
        this.ffi = args.ffi;
        this.rt = args.rt;
        this.ctx = args.ctx;
        this.memory = new ContextMemory({
          ...args,
          owner: this.runtime
        });
        args.callbacks.setContextCallbacks(this.ctx.value, this.cToHostCallbacks);
        this.dump = this.dump.bind(this);
        this.getString = this.getString.bind(this);
        this.getNumber = this.getNumber.bind(this);
        this.resolvePromise = this.resolvePromise.bind(this);
      }
      // @implement Disposable ----------------------------------------------------
      get alive() {
        return this.memory.alive;
      }
      /**
       * Dispose of this VM's underlying resources.
       *
       * @throws Calling this method without disposing of all created handles
       * will result in an error.
       */
      dispose() {
        this.memory.dispose();
      }
      // Globals ------------------------------------------------------------------
      /**
       * [`undefined`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined).
       */
      get undefined() {
        if (this._undefined) {
          return this._undefined;
        }
        const ptr = this.ffi.QTS_GetUndefined();
        return this._undefined = new lifetime_1.StaticLifetime(ptr);
      }
      /**
       * [`null`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null).
       */
      get null() {
        if (this._null) {
          return this._null;
        }
        const ptr = this.ffi.QTS_GetNull();
        return this._null = new lifetime_1.StaticLifetime(ptr);
      }
      /**
       * [`true`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/true).
       */
      get true() {
        if (this._true) {
          return this._true;
        }
        const ptr = this.ffi.QTS_GetTrue();
        return this._true = new lifetime_1.StaticLifetime(ptr);
      }
      /**
       * [`false`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/false).
       */
      get false() {
        if (this._false) {
          return this._false;
        }
        const ptr = this.ffi.QTS_GetFalse();
        return this._false = new lifetime_1.StaticLifetime(ptr);
      }
      /**
       * [`global`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects).
       * A handle to the global object inside the interpreter.
       * You can set properties to create global variables.
       */
      get global() {
        if (this._global) {
          return this._global;
        }
        const ptr = this.ffi.QTS_GetGlobalObject(this.ctx.value);
        this.memory.manage(this.memory.heapValueHandle(ptr));
        this._global = new lifetime_1.StaticLifetime(ptr, this.runtime);
        return this._global;
      }
      // New values ---------------------------------------------------------------
      /**
       * Converts a Javascript number into a QuickJS value.
       */
      newNumber(num) {
        return this.memory.heapValueHandle(this.ffi.QTS_NewFloat64(this.ctx.value, num));
      }
      /**
       * Create a QuickJS [string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) value.
       */
      newString(str) {
        const ptr = this.memory.newHeapCharPointer(str).consume((charHandle) => this.ffi.QTS_NewString(this.ctx.value, charHandle.value));
        return this.memory.heapValueHandle(ptr);
      }
      /**
       * Create a QuickJS [symbol](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol) value.
       * No two symbols created with this function will be the same value.
       */
      newUniqueSymbol(description) {
        const key = (typeof description === "symbol" ? description.description : description) ?? "";
        const ptr = this.memory.newHeapCharPointer(key).consume((charHandle) => this.ffi.QTS_NewSymbol(this.ctx.value, charHandle.value, 0));
        return this.memory.heapValueHandle(ptr);
      }
      /**
       * Get a symbol from the [global registry](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol#shared_symbols_in_the_global_symbol_registry) for the given key.
       * All symbols created with the same key will be the same value.
       */
      newSymbolFor(key) {
        const description = (typeof key === "symbol" ? key.description : key) ?? "";
        const ptr = this.memory.newHeapCharPointer(description).consume((charHandle) => this.ffi.QTS_NewSymbol(this.ctx.value, charHandle.value, 1));
        return this.memory.heapValueHandle(ptr);
      }
      /**
       * Create a QuickJS [bigint](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt) value.
       */
      newBigInt(num) {
        if (!this._BigInt) {
          const bigIntHandle2 = this.getProp(this.global, "BigInt");
          this.memory.manage(bigIntHandle2);
          this._BigInt = new lifetime_1.StaticLifetime(bigIntHandle2.value, this.runtime);
        }
        const bigIntHandle = this._BigInt;
        const asString = String(num);
        return this.newString(asString).consume((handle) => this.unwrapResult(this.callFunction(bigIntHandle, this.undefined, handle)));
      }
      /**
       * `{}`.
       * Create a new QuickJS [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Object_initializer).
       *
       * @param prototype - Like [`Object.create`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/create).
       */
      newObject(prototype) {
        if (prototype) {
          this.runtime.assertOwned(prototype);
        }
        const ptr = prototype ? this.ffi.QTS_NewObjectProto(this.ctx.value, prototype.value) : this.ffi.QTS_NewObject(this.ctx.value);
        return this.memory.heapValueHandle(ptr);
      }
      /**
       * `[]`.
       * Create a new QuickJS [array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array).
       */
      newArray() {
        const ptr = this.ffi.QTS_NewArray(this.ctx.value);
        return this.memory.heapValueHandle(ptr);
      }
      newPromise(value) {
        const deferredPromise = lifetime_1.Scope.withScope((scope) => {
          const mutablePointerArray = scope.manage(this.memory.newMutablePointerArray(2));
          const promisePtr = this.ffi.QTS_NewPromiseCapability(this.ctx.value, mutablePointerArray.value.ptr);
          const promiseHandle = this.memory.heapValueHandle(promisePtr);
          const [resolveHandle, rejectHandle] = Array.from(mutablePointerArray.value.typedArray).map((jsvaluePtr) => this.memory.heapValueHandle(jsvaluePtr));
          return new deferred_promise_1.QuickJSDeferredPromise({
            context: this,
            promiseHandle,
            resolveHandle,
            rejectHandle
          });
        });
        if (value && typeof value === "function") {
          value = new Promise(value);
        }
        if (value) {
          Promise.resolve(value).then(deferredPromise.resolve, (error5) => error5 instanceof lifetime_1.Lifetime ? deferredPromise.reject(error5) : this.newError(error5).consume(deferredPromise.reject));
        }
        return deferredPromise;
      }
      /**
       * Convert a Javascript function into a QuickJS function value.
       * See [[VmFunctionImplementation]] for more details.
       *
       * A [[VmFunctionImplementation]] should not free its arguments or its return
       * value. A VmFunctionImplementation should also not retain any references to
       * its return value.
       *
       * To implement an async function, create a promise with [[newPromise]], then
       * return the deferred promise handle from `deferred.handle` from your
       * function implementation:
       *
       * ```
       * const deferred = vm.newPromise()
       * someNativeAsyncFunction().then(deferred.resolve)
       * return deferred.handle
       * ```
       */
      newFunction(name, fn) {
        const fnId = ++this.fnNextId;
        this.setFunction(fnId, fn);
        return this.memory.heapValueHandle(this.ffi.QTS_NewFunction(this.ctx.value, fnId, name));
      }
      newError(error5) {
        const errorHandle = this.memory.heapValueHandle(this.ffi.QTS_NewError(this.ctx.value));
        if (error5 && typeof error5 === "object") {
          if (error5.name !== void 0) {
            this.newString(error5.name).consume((handle) => this.setProp(errorHandle, "name", handle));
          }
          if (error5.message !== void 0) {
            this.newString(error5.message).consume((handle) => this.setProp(errorHandle, "message", handle));
          }
        } else if (typeof error5 === "string") {
          this.newString(error5).consume((handle) => this.setProp(errorHandle, "message", handle));
        } else if (error5 !== void 0) {
          this.newString(String(error5)).consume((handle) => this.setProp(errorHandle, "message", handle));
        }
        return errorHandle;
      }
      // Read values --------------------------------------------------------------
      /**
       * `typeof` operator. **Not** [standards compliant](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/typeof).
       *
       * @remarks
       * Does not support BigInt values correctly.
       */
      typeof(handle) {
        this.runtime.assertOwned(handle);
        return this.memory.consumeHeapCharPointer(this.ffi.QTS_Typeof(this.ctx.value, handle.value));
      }
      /**
       * Converts `handle` into a Javascript number.
       * @returns `NaN` on error, otherwise a `number`.
       */
      getNumber(handle) {
        this.runtime.assertOwned(handle);
        return this.ffi.QTS_GetFloat64(this.ctx.value, handle.value);
      }
      /**
       * Converts `handle` to a Javascript string.
       */
      getString(handle) {
        this.runtime.assertOwned(handle);
        return this.memory.consumeJSCharPointer(this.ffi.QTS_GetString(this.ctx.value, handle.value));
      }
      /**
       * Converts `handle` into a Javascript symbol. If the symbol is in the global
       * registry in the guest, it will be created with Symbol.for on the host.
       */
      getSymbol(handle) {
        this.runtime.assertOwned(handle);
        const key = this.memory.consumeJSCharPointer(this.ffi.QTS_GetSymbolDescriptionOrKey(this.ctx.value, handle.value));
        const isGlobal = this.ffi.QTS_IsGlobalSymbol(this.ctx.value, handle.value);
        return isGlobal ? Symbol.for(key) : Symbol(key);
      }
      /**
       * Converts `handle` to a Javascript bigint.
       */
      getBigInt(handle) {
        this.runtime.assertOwned(handle);
        const asString = this.getString(handle);
        return BigInt(asString);
      }
      /**
       * `Promise.resolve(value)`.
       * Convert a handle containing a Promise-like value inside the VM into an
       * actual promise on the host.
       *
       * @remarks
       * You may need to call [[executePendingJobs]] to ensure that the promise is resolved.
       *
       * @param promiseLikeHandle - A handle to a Promise-like value with a `.then(onSuccess, onError)` method.
       */
      resolvePromise(promiseLikeHandle) {
        this.runtime.assertOwned(promiseLikeHandle);
        const vmResolveResult = lifetime_1.Scope.withScope((scope) => {
          const vmPromise = scope.manage(this.getProp(this.global, "Promise"));
          const vmPromiseResolve = scope.manage(this.getProp(vmPromise, "resolve"));
          return this.callFunction(vmPromiseResolve, vmPromise, promiseLikeHandle);
        });
        if (vmResolveResult.error) {
          return Promise.resolve(vmResolveResult);
        }
        return new Promise((resolve13) => {
          lifetime_1.Scope.withScope((scope) => {
            const resolveHandle = scope.manage(this.newFunction("resolve", (value) => {
              resolve13({ value: value && value.dup() });
            }));
            const rejectHandle = scope.manage(this.newFunction("reject", (error5) => {
              resolve13({ error: error5 && error5.dup() });
            }));
            const promiseHandle = scope.manage(vmResolveResult.value);
            const promiseThenHandle = scope.manage(this.getProp(promiseHandle, "then"));
            this.unwrapResult(this.callFunction(promiseThenHandle, promiseHandle, resolveHandle, rejectHandle)).dispose();
          });
        });
      }
      // Properties ---------------------------------------------------------------
      /**
       * `handle[key]`.
       * Get a property from a JSValue.
       *
       * @param key - The property may be specified as a JSValue handle, or as a
       * Javascript string (which will be converted automatically).
       */
      getProp(handle, key) {
        this.runtime.assertOwned(handle);
        const ptr = this.borrowPropertyKey(key).consume((quickJSKey) => this.ffi.QTS_GetProp(this.ctx.value, handle.value, quickJSKey.value));
        const result2 = this.memory.heapValueHandle(ptr);
        return result2;
      }
      /**
       * `handle[key] = value`.
       * Set a property on a JSValue.
       *
       * @remarks
       * Note that the QuickJS authors recommend using [[defineProp]] to define new
       * properties.
       *
       * @param key - The property may be specified as a JSValue handle, or as a
       * Javascript string or number (which will be converted automatically to a JSValue).
       */
      setProp(handle, key, value) {
        this.runtime.assertOwned(handle);
        this.borrowPropertyKey(key).consume((quickJSKey) => this.ffi.QTS_SetProp(this.ctx.value, handle.value, quickJSKey.value, value.value));
      }
      /**
       * [`Object.defineProperty(handle, key, descriptor)`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperty).
       *
       * @param key - The property may be specified as a JSValue handle, or as a
       * Javascript string or number (which will be converted automatically to a JSValue).
       */
      defineProp(handle, key, descriptor) {
        this.runtime.assertOwned(handle);
        lifetime_1.Scope.withScope((scope) => {
          const quickJSKey = scope.manage(this.borrowPropertyKey(key));
          const value = descriptor.value || this.undefined;
          const configurable = Boolean(descriptor.configurable);
          const enumerable = Boolean(descriptor.enumerable);
          const hasValue = Boolean(descriptor.value);
          const get3 = descriptor.get ? scope.manage(this.newFunction(descriptor.get.name, descriptor.get)) : this.undefined;
          const set = descriptor.set ? scope.manage(this.newFunction(descriptor.set.name, descriptor.set)) : this.undefined;
          this.ffi.QTS_DefineProp(this.ctx.value, handle.value, quickJSKey.value, value.value, get3.value, set.value, configurable, enumerable, hasValue);
        });
      }
      // Evaluation ---------------------------------------------------------------
      /**
       * [`func.call(thisVal, ...args)`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/call).
       * Call a JSValue as a function.
       *
       * See [[unwrapResult]], which will throw if the function returned an error, or
       * return the result handle directly. If evaluation returned a handle containing
       * a promise, use [[resolvePromise]] to convert it to a native promise and
       * [[executePendingJobs]] to finish evaluating the promise.
       *
       * @returns A result. If the function threw synchronously, `result.error` be a
       * handle to the exception. Otherwise `result.value` will be a handle to the
       * value.
       */
      callFunction(func, thisVal, ...args) {
        this.runtime.assertOwned(func);
        const resultPtr = this.memory.toPointerArray(args).consume((argsArrayPtr) => this.ffi.QTS_Call(this.ctx.value, func.value, thisVal.value, args.length, argsArrayPtr.value));
        const errorPtr = this.ffi.QTS_ResolveException(this.ctx.value, resultPtr);
        if (errorPtr) {
          this.ffi.QTS_FreeValuePointer(this.ctx.value, resultPtr);
          return { error: this.memory.heapValueHandle(errorPtr) };
        }
        return { value: this.memory.heapValueHandle(resultPtr) };
      }
      /**
       * Like [`eval(code)`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/eval#Description).
       * Evaluates the Javascript source `code` in the global scope of this VM.
       * When working with async code, you many need to call [[executePendingJobs]]
       * to execute callbacks pending after synchronous evaluation returns.
       *
       * See [[unwrapResult]], which will throw if the function returned an error, or
       * return the result handle directly. If evaluation returned a handle containing
       * a promise, use [[resolvePromise]] to convert it to a native promise and
       * [[executePendingJobs]] to finish evaluating the promise.
       *
       * *Note*: to protect against infinite loops, provide an interrupt handler to
       * [[setInterruptHandler]]. You can use [[shouldInterruptAfterDeadline]] to
       * create a time-based deadline.
       *
       * @returns The last statement's value. If the code threw synchronously,
       * `result.error` will be a handle to the exception. If execution was
       * interrupted, the error will have name `InternalError` and message
       * `interrupted`.
       */
      evalCode(code, filename = "eval.js", options) {
        const detectModule = options === void 0 ? 1 : 0;
        const flags = (0, types_1.evalOptionsToFlags)(options);
        const resultPtr = this.memory.newHeapCharPointer(code).consume((charHandle) => this.ffi.QTS_Eval(this.ctx.value, charHandle.value, filename, detectModule, flags));
        const errorPtr = this.ffi.QTS_ResolveException(this.ctx.value, resultPtr);
        if (errorPtr) {
          this.ffi.QTS_FreeValuePointer(this.ctx.value, resultPtr);
          return { error: this.memory.heapValueHandle(errorPtr) };
        }
        return { value: this.memory.heapValueHandle(resultPtr) };
      }
      /**
       * Throw an error in the VM, interrupted whatever current execution is in progress when execution resumes.
       * @experimental
       */
      throw(error5) {
        return this.errorToHandle(error5).consume((handle) => this.ffi.QTS_Throw(this.ctx.value, handle.value));
      }
      /**
       * @private
       */
      borrowPropertyKey(key) {
        if (typeof key === "number") {
          return this.newNumber(key);
        }
        if (typeof key === "string") {
          return this.newString(key);
        }
        return new lifetime_1.StaticLifetime(key.value, this.runtime);
      }
      /**
       * @private
       */
      getMemory(rt) {
        if (rt === this.rt.value) {
          return this.memory;
        } else {
          throw new Error("Private API. Cannot get memory from a different runtime");
        }
      }
      // Utilities ----------------------------------------------------------------
      /**
       * Dump a JSValue to Javascript in a best-effort fashion.
       * Returns `handle.toString()` if it cannot be serialized to JSON.
       */
      dump(handle) {
        this.runtime.assertOwned(handle);
        const type = this.typeof(handle);
        if (type === "string") {
          return this.getString(handle);
        } else if (type === "number") {
          return this.getNumber(handle);
        } else if (type === "bigint") {
          return this.getBigInt(handle);
        } else if (type === "undefined") {
          return void 0;
        } else if (type === "symbol") {
          return this.getSymbol(handle);
        }
        const str = this.memory.consumeJSCharPointer(this.ffi.QTS_Dump(this.ctx.value, handle.value));
        try {
          return JSON.parse(str);
        } catch (err) {
          return str;
        }
      }
      /**
       * Unwrap a SuccessOrFail result such as a [[VmCallResult]] or a
       * [[ExecutePendingJobsResult]], where the fail branch contains a handle to a QuickJS error value.
       * If the result is a success, returns the value.
       * If the result is an error, converts the error to a native object and throws the error.
       */
      unwrapResult(result2) {
        if (result2.error) {
          const context = "context" in result2.error ? result2.error.context : this;
          const cause = result2.error.consume((error5) => this.dump(error5));
          if (cause && typeof cause === "object" && typeof cause.message === "string") {
            const { message: message2, name, stack } = cause;
            const exception = new errors_1.QuickJSUnwrapError("");
            const hostStack = exception.stack;
            if (typeof name === "string") {
              exception.name = cause.name;
            }
            if (typeof stack === "string") {
              exception.stack = `${name}: ${message2}
${cause.stack}Host: ${hostStack}`;
            }
            Object.assign(exception, { cause, context, message: message2 });
            throw exception;
          }
          throw new errors_1.QuickJSUnwrapError(cause, context);
        }
        return result2.value;
      }
      /** @private */
      getFunction(fn_id) {
        const map_id = fn_id >> 8;
        const fnMap = this.fnMaps.get(map_id);
        if (!fnMap) {
          return void 0;
        }
        return fnMap.get(fn_id);
      }
      /** @private */
      setFunction(fn_id, handle) {
        const map_id = fn_id >> 8;
        let fnMap = this.fnMaps.get(map_id);
        if (!fnMap) {
          fnMap = /* @__PURE__ */ new Map();
          this.fnMaps.set(map_id, fnMap);
        }
        return fnMap.set(fn_id, handle);
      }
      errorToHandle(error5) {
        if (error5 instanceof lifetime_1.Lifetime) {
          return error5;
        }
        return this.newError(error5);
      }
    };
    exports2.QuickJSContext = QuickJSContext;
  }
});

// ../../node_modules/@tootallnate/quickjs-emscripten/dist/runtime.js
var require_runtime = __commonJS({
  "../../node_modules/@tootallnate/quickjs-emscripten/dist/runtime.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.QuickJSRuntime = void 0;
    var asyncify_helpers_1 = require_asyncify_helpers();
    var context_1 = require_context();
    var debug_1 = require_debug3();
    var errors_1 = require_errors5();
    var lifetime_1 = require_lifetime();
    var memory_1 = require_memory();
    var types_1 = require_types4();
    var QuickJSRuntime = class {
      static {
        __name(this, "QuickJSRuntime");
      }
      /** @private */
      constructor(args) {
        this.scope = new lifetime_1.Scope();
        this.contextMap = /* @__PURE__ */ new Map();
        this.cToHostCallbacks = {
          shouldInterrupt: /* @__PURE__ */ __name((rt) => {
            if (rt !== this.rt.value) {
              throw new Error("QuickJSContext instance received C -> JS interrupt with mismatched rt");
            }
            const fn = this.interruptHandler;
            if (!fn) {
              throw new Error("QuickJSContext had no interrupt handler");
            }
            return fn(this) ? 1 : 0;
          }, "shouldInterrupt"),
          loadModuleSource: (0, asyncify_helpers_1.maybeAsyncFn)(this, function* (awaited, rt, ctx, moduleName) {
            const moduleLoader = this.moduleLoader;
            if (!moduleLoader) {
              throw new Error("Runtime has no module loader");
            }
            if (rt !== this.rt.value) {
              throw new Error("Runtime pointer mismatch");
            }
            const context = this.contextMap.get(ctx) ?? this.newContext({
              contextPointer: ctx
            });
            try {
              const result2 = yield* awaited(moduleLoader(moduleName, context));
              if (typeof result2 === "object" && "error" in result2 && result2.error) {
                (0, debug_1.debugLog)("cToHostLoadModule: loader returned error", result2.error);
                throw result2.error;
              }
              const moduleSource = typeof result2 === "string" ? result2 : "value" in result2 ? result2.value : result2;
              return this.memory.newHeapCharPointer(moduleSource).value;
            } catch (error5) {
              (0, debug_1.debugLog)("cToHostLoadModule: caught error", error5);
              context.throw(error5);
              return 0;
            }
          }),
          normalizeModule: (0, asyncify_helpers_1.maybeAsyncFn)(this, function* (awaited, rt, ctx, baseModuleName, moduleNameRequest) {
            const moduleNormalizer = this.moduleNormalizer;
            if (!moduleNormalizer) {
              throw new Error("Runtime has no module normalizer");
            }
            if (rt !== this.rt.value) {
              throw new Error("Runtime pointer mismatch");
            }
            const context = this.contextMap.get(ctx) ?? this.newContext({
              /* TODO: Does this happen? Are we responsible for disposing? I don't think so */
              contextPointer: ctx
            });
            try {
              const result2 = yield* awaited(moduleNormalizer(baseModuleName, moduleNameRequest, context));
              if (typeof result2 === "object" && "error" in result2 && result2.error) {
                (0, debug_1.debugLog)("cToHostNormalizeModule: normalizer returned error", result2.error);
                throw result2.error;
              }
              const name = typeof result2 === "string" ? result2 : result2.value;
              return context.getMemory(this.rt.value).newHeapCharPointer(name).value;
            } catch (error5) {
              (0, debug_1.debugLog)("normalizeModule: caught error", error5);
              context.throw(error5);
              return 0;
            }
          })
        };
        args.ownedLifetimes?.forEach((lifetime) => this.scope.manage(lifetime));
        this.module = args.module;
        this.memory = new memory_1.ModuleMemory(this.module);
        this.ffi = args.ffi;
        this.rt = args.rt;
        this.callbacks = args.callbacks;
        this.scope.manage(this.rt);
        this.callbacks.setRuntimeCallbacks(this.rt.value, this.cToHostCallbacks);
        this.executePendingJobs = this.executePendingJobs.bind(this);
      }
      get alive() {
        return this.scope.alive;
      }
      dispose() {
        return this.scope.dispose();
      }
      newContext(options = {}) {
        if (options.intrinsics && options.intrinsics !== types_1.DefaultIntrinsics) {
          throw new Error("TODO: Custom intrinsics are not supported yet");
        }
        const ctx = new lifetime_1.Lifetime(options.contextPointer || this.ffi.QTS_NewContext(this.rt.value), void 0, (ctx_ptr) => {
          this.contextMap.delete(ctx_ptr);
          this.callbacks.deleteContext(ctx_ptr);
          this.ffi.QTS_FreeContext(ctx_ptr);
        });
        const context = new context_1.QuickJSContext({
          module: this.module,
          ctx,
          ffi: this.ffi,
          rt: this.rt,
          ownedLifetimes: options.ownedLifetimes,
          runtime: this,
          callbacks: this.callbacks
        });
        this.contextMap.set(ctx.value, context);
        return context;
      }
      /**
       * Set the loader for EcmaScript modules requested by any context in this
       * runtime.
       *
       * The loader can be removed with [[removeModuleLoader]].
       */
      setModuleLoader(moduleLoader, moduleNormalizer) {
        this.moduleLoader = moduleLoader;
        this.moduleNormalizer = moduleNormalizer;
        this.ffi.QTS_RuntimeEnableModuleLoader(this.rt.value, this.moduleNormalizer ? 1 : 0);
      }
      /**
       * Remove the the loader set by [[setModuleLoader]]. This disables module loading.
       */
      removeModuleLoader() {
        this.moduleLoader = void 0;
        this.ffi.QTS_RuntimeDisableModuleLoader(this.rt.value);
      }
      // Runtime management -------------------------------------------------------
      /**
       * In QuickJS, promises and async functions create pendingJobs. These do not execute
       * immediately and need to be run by calling [[executePendingJobs]].
       *
       * @return true if there is at least one pendingJob queued up.
       */
      hasPendingJob() {
        return Boolean(this.ffi.QTS_IsJobPending(this.rt.value));
      }
      /**
       * Set a callback which is regularly called by the QuickJS engine when it is
       * executing code. This callback can be used to implement an execution
       * timeout.
       *
       * The interrupt handler can be removed with [[removeInterruptHandler]].
       */
      setInterruptHandler(cb) {
        const prevInterruptHandler = this.interruptHandler;
        this.interruptHandler = cb;
        if (!prevInterruptHandler) {
          this.ffi.QTS_RuntimeEnableInterruptHandler(this.rt.value);
        }
      }
      /**
       * Remove the interrupt handler, if any.
       * See [[setInterruptHandler]].
       */
      removeInterruptHandler() {
        if (this.interruptHandler) {
          this.ffi.QTS_RuntimeDisableInterruptHandler(this.rt.value);
          this.interruptHandler = void 0;
        }
      }
      /**
       * Execute pendingJobs on the runtime until `maxJobsToExecute` jobs are
       * executed (default all pendingJobs), the queue is exhausted, or the runtime
       * encounters an exception.
       *
       * In QuickJS, promises and async functions *inside the runtime* create
       * pendingJobs. These do not execute immediately and need to triggered to run.
       *
       * @param maxJobsToExecute - When negative, run all pending jobs. Otherwise execute
       * at most `maxJobsToExecute` before returning.
       *
       * @return On success, the number of executed jobs. On error, the exception
       * that stopped execution, and the context it occurred in. Note that
       * executePendingJobs will not normally return errors thrown inside async
       * functions or rejected promises. Those errors are available by calling
       * [[resolvePromise]] on the promise handle returned by the async function.
       */
      executePendingJobs(maxJobsToExecute = -1) {
        const ctxPtrOut = this.memory.newMutablePointerArray(1);
        const valuePtr = this.ffi.QTS_ExecutePendingJob(this.rt.value, maxJobsToExecute ?? -1, ctxPtrOut.value.ptr);
        const ctxPtr = ctxPtrOut.value.typedArray[0];
        ctxPtrOut.dispose();
        if (ctxPtr === 0) {
          this.ffi.QTS_FreeValuePointerRuntime(this.rt.value, valuePtr);
          return { value: 0 };
        }
        const context = this.contextMap.get(ctxPtr) ?? this.newContext({
          contextPointer: ctxPtr
        });
        const resultValue = context.getMemory(this.rt.value).heapValueHandle(valuePtr);
        const typeOfRet = context.typeof(resultValue);
        if (typeOfRet === "number") {
          const executedJobs = context.getNumber(resultValue);
          resultValue.dispose();
          return { value: executedJobs };
        } else {
          const error5 = Object.assign(resultValue, { context });
          return {
            error: error5
          };
        }
      }
      /**
       * Set the max memory this runtime can allocate.
       * To remove the limit, set to `-1`.
       */
      setMemoryLimit(limitBytes) {
        if (limitBytes < 0 && limitBytes !== -1) {
          throw new Error("Cannot set memory limit to negative number. To unset, pass -1");
        }
        this.ffi.QTS_RuntimeSetMemoryLimit(this.rt.value, limitBytes);
      }
      /**
       * Compute memory usage for this runtime. Returns the result as a handle to a
       * JSValue object. Use [[QuickJSContext.dump]] to convert to a native object.
       * Calling this method will allocate more memory inside the runtime. The information
       * is accurate as of just before the call to `computeMemoryUsage`.
       * For a human-digestible representation, see [[dumpMemoryUsage]].
       */
      computeMemoryUsage() {
        const serviceContextMemory = this.getSystemContext().getMemory(this.rt.value);
        return serviceContextMemory.heapValueHandle(this.ffi.QTS_RuntimeComputeMemoryUsage(this.rt.value, serviceContextMemory.ctx.value));
      }
      /**
       * @returns a human-readable description of memory usage in this runtime.
       * For programmatic access to this information, see [[computeMemoryUsage]].
       */
      dumpMemoryUsage() {
        return this.memory.consumeHeapCharPointer(this.ffi.QTS_RuntimeDumpMemoryUsage(this.rt.value));
      }
      /**
       * Set the max stack size for this runtime, in bytes.
       * To remove the limit, set to `0`.
       */
      setMaxStackSize(stackSize) {
        if (stackSize < 0) {
          throw new Error("Cannot set memory limit to negative number. To unset, pass 0.");
        }
        this.ffi.QTS_RuntimeSetMaxStackSize(this.rt.value, stackSize);
      }
      /**
       * Assert that `handle` is owned by this runtime.
       * @throws QuickJSWrongOwner if owned by a different runtime.
       */
      assertOwned(handle) {
        if (handle.owner && handle.owner.rt !== this.rt) {
          throw new errors_1.QuickJSWrongOwner(`Handle is not owned by this runtime: ${handle.owner.rt.value} != ${this.rt.value}`);
        }
      }
      getSystemContext() {
        if (!this.context) {
          this.context = this.scope.manage(this.newContext());
        }
        return this.context;
      }
    };
    exports2.QuickJSRuntime = QuickJSRuntime;
  }
});

// ../../node_modules/@tootallnate/quickjs-emscripten/dist/module.js
var require_module = __commonJS({
  "../../node_modules/@tootallnate/quickjs-emscripten/dist/module.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.QuickJSWASMModule = exports2.applyModuleEvalRuntimeOptions = exports2.applyBaseRuntimeOptions = exports2.QuickJSModuleCallbacks = void 0;
    var debug_1 = require_debug3();
    var errors_1 = require_errors5();
    var lifetime_1 = require_lifetime();
    var runtime_1 = require_runtime();
    var types_1 = require_types4();
    var QuickJSEmscriptenModuleCallbacks = class {
      static {
        __name(this, "QuickJSEmscriptenModuleCallbacks");
      }
      constructor(args) {
        this.callFunction = args.callFunction;
        this.shouldInterrupt = args.shouldInterrupt;
        this.loadModuleSource = args.loadModuleSource;
        this.normalizeModule = args.normalizeModule;
      }
    };
    var QuickJSModuleCallbacks = class {
      static {
        __name(this, "QuickJSModuleCallbacks");
      }
      constructor(module3) {
        this.contextCallbacks = /* @__PURE__ */ new Map();
        this.runtimeCallbacks = /* @__PURE__ */ new Map();
        this.suspendedCount = 0;
        this.cToHostCallbacks = new QuickJSEmscriptenModuleCallbacks({
          callFunction: /* @__PURE__ */ __name((asyncify, ctx, this_ptr, argc, argv, fn_id) => this.handleAsyncify(asyncify, () => {
            try {
              const vm = this.contextCallbacks.get(ctx);
              if (!vm) {
                throw new Error(`QuickJSContext(ctx = ${ctx}) not found for C function call "${fn_id}"`);
              }
              return vm.callFunction(ctx, this_ptr, argc, argv, fn_id);
            } catch (error5) {
              console.error("[C to host error: returning null]", error5);
              return 0;
            }
          }), "callFunction"),
          shouldInterrupt: /* @__PURE__ */ __name((asyncify, rt) => this.handleAsyncify(asyncify, () => {
            try {
              const vm = this.runtimeCallbacks.get(rt);
              if (!vm) {
                throw new Error(`QuickJSRuntime(rt = ${rt}) not found for C interrupt`);
              }
              return vm.shouldInterrupt(rt);
            } catch (error5) {
              console.error("[C to host interrupt: returning error]", error5);
              return 1;
            }
          }), "shouldInterrupt"),
          loadModuleSource: /* @__PURE__ */ __name((asyncify, rt, ctx, moduleName) => this.handleAsyncify(asyncify, () => {
            try {
              const runtimeCallbacks = this.runtimeCallbacks.get(rt);
              if (!runtimeCallbacks) {
                throw new Error(`QuickJSRuntime(rt = ${rt}) not found for C module loader`);
              }
              const loadModule = runtimeCallbacks.loadModuleSource;
              if (!loadModule) {
                throw new Error(`QuickJSRuntime(rt = ${rt}) does not support module loading`);
              }
              return loadModule(rt, ctx, moduleName);
            } catch (error5) {
              console.error("[C to host module loader error: returning null]", error5);
              return 0;
            }
          }), "loadModuleSource"),
          normalizeModule: /* @__PURE__ */ __name((asyncify, rt, ctx, moduleBaseName, moduleName) => this.handleAsyncify(asyncify, () => {
            try {
              const runtimeCallbacks = this.runtimeCallbacks.get(rt);
              if (!runtimeCallbacks) {
                throw new Error(`QuickJSRuntime(rt = ${rt}) not found for C module loader`);
              }
              const normalizeModule = runtimeCallbacks.normalizeModule;
              if (!normalizeModule) {
                throw new Error(`QuickJSRuntime(rt = ${rt}) does not support module loading`);
              }
              return normalizeModule(rt, ctx, moduleBaseName, moduleName);
            } catch (error5) {
              console.error("[C to host module loader error: returning null]", error5);
              return 0;
            }
          }), "normalizeModule")
        });
        this.module = module3;
        this.module.callbacks = this.cToHostCallbacks;
      }
      setRuntimeCallbacks(rt, callbacks) {
        this.runtimeCallbacks.set(rt, callbacks);
      }
      deleteRuntime(rt) {
        this.runtimeCallbacks.delete(rt);
      }
      setContextCallbacks(ctx, callbacks) {
        this.contextCallbacks.set(ctx, callbacks);
      }
      deleteContext(ctx) {
        this.contextCallbacks.delete(ctx);
      }
      handleAsyncify(asyncify, fn) {
        if (asyncify) {
          return asyncify.handleSleep((done) => {
            try {
              const result2 = fn();
              if (!(result2 instanceof Promise)) {
                (0, debug_1.debugLog)("asyncify.handleSleep: not suspending:", result2);
                done(result2);
                return;
              }
              if (this.suspended) {
                throw new errors_1.QuickJSAsyncifyError(`Already suspended at: ${this.suspended.stack}
Attempted to suspend at:`);
              } else {
                this.suspended = new errors_1.QuickJSAsyncifySuspended(`(${this.suspendedCount++})`);
                (0, debug_1.debugLog)("asyncify.handleSleep: suspending:", this.suspended);
              }
              result2.then((resolvedResult) => {
                this.suspended = void 0;
                (0, debug_1.debugLog)("asyncify.handleSleep: resolved:", resolvedResult);
                done(resolvedResult);
              }, (error5) => {
                (0, debug_1.debugLog)("asyncify.handleSleep: rejected:", error5);
                console.error("QuickJS: cannot handle error in suspended function", error5);
                this.suspended = void 0;
              });
            } catch (error5) {
              (0, debug_1.debugLog)("asyncify.handleSleep: error:", error5);
              this.suspended = void 0;
              throw error5;
            }
          });
        }
        const value = fn();
        if (value instanceof Promise) {
          throw new Error("Promise return value not supported in non-asyncify context.");
        }
        return value;
      }
    };
    exports2.QuickJSModuleCallbacks = QuickJSModuleCallbacks;
    function applyBaseRuntimeOptions(runtime, options) {
      if (options.interruptHandler) {
        runtime.setInterruptHandler(options.interruptHandler);
      }
      if (options.maxStackSizeBytes !== void 0) {
        runtime.setMaxStackSize(options.maxStackSizeBytes);
      }
      if (options.memoryLimitBytes !== void 0) {
        runtime.setMemoryLimit(options.memoryLimitBytes);
      }
    }
    __name(applyBaseRuntimeOptions, "applyBaseRuntimeOptions");
    exports2.applyBaseRuntimeOptions = applyBaseRuntimeOptions;
    function applyModuleEvalRuntimeOptions(runtime, options) {
      if (options.moduleLoader) {
        runtime.setModuleLoader(options.moduleLoader);
      }
      if (options.shouldInterrupt) {
        runtime.setInterruptHandler(options.shouldInterrupt);
      }
      if (options.memoryLimitBytes !== void 0) {
        runtime.setMemoryLimit(options.memoryLimitBytes);
      }
      if (options.maxStackSizeBytes !== void 0) {
        runtime.setMaxStackSize(options.maxStackSizeBytes);
      }
    }
    __name(applyModuleEvalRuntimeOptions, "applyModuleEvalRuntimeOptions");
    exports2.applyModuleEvalRuntimeOptions = applyModuleEvalRuntimeOptions;
    var QuickJSWASMModule = class {
      static {
        __name(this, "QuickJSWASMModule");
      }
      /** @private */
      constructor(module3, ffi) {
        this.module = module3;
        this.ffi = ffi;
        this.callbacks = new QuickJSModuleCallbacks(module3);
      }
      /**
       * Create a runtime.
       * Use the runtime to set limits on CPU and memory usage and configure module
       * loading for one or more [[QuickJSContext]]s inside the runtime.
       */
      newRuntime(options = {}) {
        const rt = new lifetime_1.Lifetime(this.ffi.QTS_NewRuntime(), void 0, (rt_ptr) => {
          this.callbacks.deleteRuntime(rt_ptr);
          this.ffi.QTS_FreeRuntime(rt_ptr);
        });
        const runtime = new runtime_1.QuickJSRuntime({
          module: this.module,
          callbacks: this.callbacks,
          ffi: this.ffi,
          rt
        });
        applyBaseRuntimeOptions(runtime, options);
        if (options.moduleLoader) {
          runtime.setModuleLoader(options.moduleLoader);
        }
        return runtime;
      }
      /**
       * A simplified API to create a new [[QuickJSRuntime]] and a
       * [[QuickJSContext]] inside that runtime at the same time. The runtime will
       * be disposed when the context is disposed.
       */
      newContext(options = {}) {
        const runtime = this.newRuntime();
        const context = runtime.newContext({
          ...options,
          ownedLifetimes: (0, types_1.concat)(runtime, options.ownedLifetimes)
        });
        runtime.context = context;
        return context;
      }
      /**
       * One-off evaluate code without needing to create a [[QuickJSRuntime]] or
       * [[QuickJSContext]] explicitly.
       *
       * To protect against infinite loops, use the `shouldInterrupt` option. The
       * [[shouldInterruptAfterDeadline]] function will create a time-based deadline.
       *
       * If you need more control over how the code executes, create a
       * [[QuickJSRuntime]] (with [[newRuntime]]) or a [[QuickJSContext]] (with
       * [[newContext]] or [[QuickJSRuntime.newContext]]), and use its
       * [[QuickJSContext.evalCode]] method.
       *
       * Asynchronous callbacks may not run during the first call to `evalCode`. If
       * you need to work with async code inside QuickJS, create a runtime and use
       * [[QuickJSRuntime.executePendingJobs]].
       *
       * @returns The result is coerced to a native Javascript value using JSON
       * serialization, so properties and values unsupported by JSON will be dropped.
       *
       * @throws If `code` throws during evaluation, the exception will be
       * converted into a native Javascript value and thrown.
       *
       * @throws if `options.shouldInterrupt` interrupted execution, will throw a Error
       * with name `"InternalError"` and  message `"interrupted"`.
       */
      evalCode(code, options = {}) {
        return lifetime_1.Scope.withScope((scope) => {
          const vm = scope.manage(this.newContext());
          applyModuleEvalRuntimeOptions(vm.runtime, options);
          const result2 = vm.evalCode(code, "eval.js");
          if (options.memoryLimitBytes !== void 0) {
            vm.runtime.setMemoryLimit(-1);
          }
          if (result2.error) {
            const error5 = vm.dump(scope.manage(result2.error));
            throw error5;
          }
          const value = vm.dump(scope.manage(result2.value));
          return value;
        });
      }
      /**
       * Get a low-level interface to the QuickJS functions in this WebAssembly
       * module.
       * @experimental
       * @unstable No warranty is provided with this API. It could change at any time.
       * @private
       */
      getFFI() {
        return this.ffi;
      }
    };
    exports2.QuickJSWASMModule = QuickJSWASMModule;
  }
});

// ../../node_modules/@tootallnate/quickjs-emscripten/dist/context-asyncify.js
var require_context_asyncify = __commonJS({
  "../../node_modules/@tootallnate/quickjs-emscripten/dist/context-asyncify.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.QuickJSAsyncContext = void 0;
    var context_1 = require_context();
    var debug_1 = require_debug3();
    var types_1 = require_types4();
    var QuickJSAsyncContext = class extends context_1.QuickJSContext {
      static {
        __name(this, "QuickJSAsyncContext");
      }
      /**
       * Asyncified version of [[evalCode]].
       */
      async evalCodeAsync(code, filename = "eval.js", options) {
        const detectModule = options === void 0 ? 1 : 0;
        const flags = (0, types_1.evalOptionsToFlags)(options);
        let resultPtr = 0;
        try {
          resultPtr = await this.memory.newHeapCharPointer(code).consume((charHandle) => this.ffi.QTS_Eval_MaybeAsync(this.ctx.value, charHandle.value, filename, detectModule, flags));
        } catch (error5) {
          (0, debug_1.debugLog)("QTS_Eval_MaybeAsync threw", error5);
          throw error5;
        }
        const errorPtr = this.ffi.QTS_ResolveException(this.ctx.value, resultPtr);
        if (errorPtr) {
          this.ffi.QTS_FreeValuePointer(this.ctx.value, resultPtr);
          return { error: this.memory.heapValueHandle(errorPtr) };
        }
        return { value: this.memory.heapValueHandle(resultPtr) };
      }
      /**
       * Similar to [[newFunction]].
       * Convert an async host Javascript function into a synchronous QuickJS function value.
       *
       * Whenever QuickJS calls this function, the VM's stack will be unwound while
       * waiting the async function to complete, and then restored when the returned
       * promise resolves.
       *
       * Asyncified functions must never call other asyncified functions or
       * `import`, even indirectly, because the stack cannot be unwound twice.
       *
       * See [Emscripten's docs on Asyncify](https://emscripten.org/docs/porting/asyncify.html).
       */
      newAsyncifiedFunction(name, fn) {
        return this.newFunction(name, fn);
      }
    };
    exports2.QuickJSAsyncContext = QuickJSAsyncContext;
  }
});

// ../../node_modules/@tootallnate/quickjs-emscripten/dist/runtime-asyncify.js
var require_runtime_asyncify = __commonJS({
  "../../node_modules/@tootallnate/quickjs-emscripten/dist/runtime-asyncify.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.QuickJSAsyncRuntime = void 0;
    var _1 = require_dist11();
    var context_asyncify_1 = require_context_asyncify();
    var runtime_1 = require_runtime();
    var types_1 = require_types4();
    var QuickJSAsyncRuntime = class extends runtime_1.QuickJSRuntime {
      static {
        __name(this, "QuickJSAsyncRuntime");
      }
      /** @private */
      constructor(args) {
        super(args);
      }
      newContext(options = {}) {
        if (options.intrinsics && options.intrinsics !== types_1.DefaultIntrinsics) {
          throw new Error("TODO: Custom intrinsics are not supported yet");
        }
        const ctx = new _1.Lifetime(this.ffi.QTS_NewContext(this.rt.value), void 0, (ctx_ptr) => {
          this.contextMap.delete(ctx_ptr);
          this.callbacks.deleteContext(ctx_ptr);
          this.ffi.QTS_FreeContext(ctx_ptr);
        });
        const context = new context_asyncify_1.QuickJSAsyncContext({
          module: this.module,
          ctx,
          ffi: this.ffi,
          rt: this.rt,
          ownedLifetimes: [],
          runtime: this,
          callbacks: this.callbacks
        });
        this.contextMap.set(ctx.value, context);
        return context;
      }
      setModuleLoader(moduleLoader, moduleNormalizer) {
        super.setModuleLoader(moduleLoader, moduleNormalizer);
      }
      /**
       * Set the max stack size for this runtime in bytes.
       * To remove the limit, set to `0`.
       *
       * Setting this limit also adjusts the global `ASYNCIFY_STACK_SIZE` for the entire {@link QuickJSAsyncWASMModule}.
       * See the [pull request](https://github.com/justjake/quickjs-emscripten/pull/114) for more details.
       */
      setMaxStackSize(stackSize) {
        return super.setMaxStackSize(stackSize);
      }
    };
    exports2.QuickJSAsyncRuntime = QuickJSAsyncRuntime;
  }
});

// ../../node_modules/@tootallnate/quickjs-emscripten/dist/module-asyncify.js
var require_module_asyncify = __commonJS({
  "../../node_modules/@tootallnate/quickjs-emscripten/dist/module-asyncify.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.QuickJSAsyncWASMModule = void 0;
    var errors_1 = require_errors5();
    var lifetime_1 = require_lifetime();
    var module_1 = require_module();
    var runtime_asyncify_1 = require_runtime_asyncify();
    var QuickJSAsyncWASMModule = class extends module_1.QuickJSWASMModule {
      static {
        __name(this, "QuickJSAsyncWASMModule");
      }
      /** @private */
      constructor(module3, ffi) {
        super(module3, ffi);
        this.ffi = ffi;
        this.module = module3;
      }
      /**
       * Create a new async runtime inside this WebAssembly module. All runtimes inside a
       * module are limited to a single async call at a time. For multiple
       * concurrent async actions, create multiple WebAssembly modules.
       */
      newRuntime(options = {}) {
        const rt = new lifetime_1.Lifetime(this.ffi.QTS_NewRuntime(), void 0, (rt_ptr) => {
          this.callbacks.deleteRuntime(rt_ptr);
          this.ffi.QTS_FreeRuntime(rt_ptr);
        });
        const runtime = new runtime_asyncify_1.QuickJSAsyncRuntime({
          module: this.module,
          ffi: this.ffi,
          rt,
          callbacks: this.callbacks
        });
        (0, module_1.applyBaseRuntimeOptions)(runtime, options);
        if (options.moduleLoader) {
          runtime.setModuleLoader(options.moduleLoader);
        }
        return runtime;
      }
      /**
       * A simplified API to create a new [[QuickJSRuntime]] and a
       * [[QuickJSContext]] inside that runtime at the same time. The runtime will
       * be disposed when the context is disposed.
       */
      newContext(options = {}) {
        const runtime = this.newRuntime();
        const lifetimes = options.ownedLifetimes ? options.ownedLifetimes.concat([runtime]) : [runtime];
        const context = runtime.newContext({ ...options, ownedLifetimes: lifetimes });
        runtime.context = context;
        return context;
      }
      /** Synchronous evalCode is not supported. */
      evalCode() {
        throw new errors_1.QuickJSNotImplemented("QuickJSWASMModuleAsyncify.evalCode: use evalCodeAsync instead");
      }
      /**
       * One-off evaluate code without needing to create a [[QuickJSRuntimeAsync]] or
       * [[QuickJSContextSync]] explicitly.
       *
       * This version allows for asynchronous Ecmascript module loading.
       *
       * Note that only a single async action can occur at a time inside the entire WebAssembly module.
       * **Multiple concurrent async actions is an error.**
       *
       * See the documentation for [[QuickJSWASMModule.evalCode]] for more details.
       */
      evalCodeAsync(code, options) {
        return lifetime_1.Scope.withScopeAsync(async (scope) => {
          const vm = scope.manage(this.newContext());
          (0, module_1.applyModuleEvalRuntimeOptions)(vm.runtime, options);
          const result2 = await vm.evalCodeAsync(code, "eval.js");
          if (options.memoryLimitBytes !== void 0) {
            vm.runtime.setMemoryLimit(-1);
          }
          if (result2.error) {
            const error5 = vm.dump(scope.manage(result2.error));
            throw error5;
          }
          const value = vm.dump(scope.manage(result2.value));
          return value;
        });
      }
    };
    exports2.QuickJSAsyncWASMModule = QuickJSAsyncWASMModule;
  }
});

// ../../node_modules/@tootallnate/quickjs-emscripten/dist/generated/ffi.WASM_RELEASE_SYNC.js
var require_ffi_WASM_RELEASE_SYNC = __commonJS({
  "../../node_modules/@tootallnate/quickjs-emscripten/dist/generated/ffi.WASM_RELEASE_SYNC.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.QuickJSFFI = void 0;
    var QuickJSFFI = class {
      static {
        __name(this, "QuickJSFFI");
      }
      constructor(module3) {
        this.module = module3;
        this.DEBUG = false;
        this.QTS_Throw = this.module.cwrap("QTS_Throw", "number", ["number", "number"]);
        this.QTS_NewError = this.module.cwrap("QTS_NewError", "number", ["number"]);
        this.QTS_RuntimeSetMemoryLimit = this.module.cwrap("QTS_RuntimeSetMemoryLimit", null, ["number", "number"]);
        this.QTS_RuntimeComputeMemoryUsage = this.module.cwrap("QTS_RuntimeComputeMemoryUsage", "number", ["number", "number"]);
        this.QTS_RuntimeDumpMemoryUsage = this.module.cwrap("QTS_RuntimeDumpMemoryUsage", "number", ["number"]);
        this.QTS_RecoverableLeakCheck = this.module.cwrap("QTS_RecoverableLeakCheck", "number", []);
        this.QTS_BuildIsSanitizeLeak = this.module.cwrap("QTS_BuildIsSanitizeLeak", "number", []);
        this.QTS_RuntimeSetMaxStackSize = this.module.cwrap("QTS_RuntimeSetMaxStackSize", null, ["number", "number"]);
        this.QTS_GetUndefined = this.module.cwrap("QTS_GetUndefined", "number", []);
        this.QTS_GetNull = this.module.cwrap("QTS_GetNull", "number", []);
        this.QTS_GetFalse = this.module.cwrap("QTS_GetFalse", "number", []);
        this.QTS_GetTrue = this.module.cwrap("QTS_GetTrue", "number", []);
        this.QTS_NewRuntime = this.module.cwrap("QTS_NewRuntime", "number", []);
        this.QTS_FreeRuntime = this.module.cwrap("QTS_FreeRuntime", null, ["number"]);
        this.QTS_NewContext = this.module.cwrap("QTS_NewContext", "number", ["number"]);
        this.QTS_FreeContext = this.module.cwrap("QTS_FreeContext", null, ["number"]);
        this.QTS_FreeValuePointer = this.module.cwrap("QTS_FreeValuePointer", null, ["number", "number"]);
        this.QTS_FreeValuePointerRuntime = this.module.cwrap("QTS_FreeValuePointerRuntime", null, ["number", "number"]);
        this.QTS_FreeVoidPointer = this.module.cwrap("QTS_FreeVoidPointer", null, ["number", "number"]);
        this.QTS_FreeCString = this.module.cwrap("QTS_FreeCString", null, ["number", "number"]);
        this.QTS_DupValuePointer = this.module.cwrap("QTS_DupValuePointer", "number", ["number", "number"]);
        this.QTS_NewObject = this.module.cwrap("QTS_NewObject", "number", ["number"]);
        this.QTS_NewObjectProto = this.module.cwrap("QTS_NewObjectProto", "number", ["number", "number"]);
        this.QTS_NewArray = this.module.cwrap("QTS_NewArray", "number", ["number"]);
        this.QTS_NewFloat64 = this.module.cwrap("QTS_NewFloat64", "number", ["number", "number"]);
        this.QTS_GetFloat64 = this.module.cwrap("QTS_GetFloat64", "number", ["number", "number"]);
        this.QTS_NewString = this.module.cwrap("QTS_NewString", "number", ["number", "number"]);
        this.QTS_GetString = this.module.cwrap("QTS_GetString", "number", ["number", "number"]);
        this.QTS_NewSymbol = this.module.cwrap("QTS_NewSymbol", "number", ["number", "number", "number"]);
        this.QTS_GetSymbolDescriptionOrKey = this.module.cwrap("QTS_GetSymbolDescriptionOrKey", "number", ["number", "number"]);
        this.QTS_IsGlobalSymbol = this.module.cwrap("QTS_IsGlobalSymbol", "number", ["number", "number"]);
        this.QTS_IsJobPending = this.module.cwrap("QTS_IsJobPending", "number", ["number"]);
        this.QTS_ExecutePendingJob = this.module.cwrap("QTS_ExecutePendingJob", "number", ["number", "number", "number"]);
        this.QTS_GetProp = this.module.cwrap("QTS_GetProp", "number", ["number", "number", "number"]);
        this.QTS_SetProp = this.module.cwrap("QTS_SetProp", null, ["number", "number", "number", "number"]);
        this.QTS_DefineProp = this.module.cwrap("QTS_DefineProp", null, ["number", "number", "number", "number", "number", "number", "boolean", "boolean", "boolean"]);
        this.QTS_Call = this.module.cwrap("QTS_Call", "number", ["number", "number", "number", "number", "number"]);
        this.QTS_ResolveException = this.module.cwrap("QTS_ResolveException", "number", ["number", "number"]);
        this.QTS_Dump = this.module.cwrap("QTS_Dump", "number", ["number", "number"]);
        this.QTS_Eval = this.module.cwrap("QTS_Eval", "number", ["number", "number", "string", "number", "number"]);
        this.QTS_Typeof = this.module.cwrap("QTS_Typeof", "number", ["number", "number"]);
        this.QTS_GetGlobalObject = this.module.cwrap("QTS_GetGlobalObject", "number", ["number"]);
        this.QTS_NewPromiseCapability = this.module.cwrap("QTS_NewPromiseCapability", "number", ["number", "number"]);
        this.QTS_TestStringArg = this.module.cwrap("QTS_TestStringArg", null, ["string"]);
        this.QTS_BuildIsDebug = this.module.cwrap("QTS_BuildIsDebug", "number", []);
        this.QTS_BuildIsAsyncify = this.module.cwrap("QTS_BuildIsAsyncify", "number", []);
        this.QTS_NewFunction = this.module.cwrap("QTS_NewFunction", "number", ["number", "number", "string"]);
        this.QTS_ArgvGetJSValueConstPointer = this.module.cwrap("QTS_ArgvGetJSValueConstPointer", "number", ["number", "number"]);
        this.QTS_RuntimeEnableInterruptHandler = this.module.cwrap("QTS_RuntimeEnableInterruptHandler", null, ["number"]);
        this.QTS_RuntimeDisableInterruptHandler = this.module.cwrap("QTS_RuntimeDisableInterruptHandler", null, ["number"]);
        this.QTS_RuntimeEnableModuleLoader = this.module.cwrap("QTS_RuntimeEnableModuleLoader", null, ["number", "number"]);
        this.QTS_RuntimeDisableModuleLoader = this.module.cwrap("QTS_RuntimeDisableModuleLoader", null, ["number"]);
      }
    };
    exports2.QuickJSFFI = QuickJSFFI;
  }
});

// ../../node_modules/@tootallnate/quickjs-emscripten/dist/generated/emscripten-module.WASM_RELEASE_SYNC.js
var require_emscripten_module_WASM_RELEASE_SYNC = __commonJS({
  "../../node_modules/@tootallnate/quickjs-emscripten/dist/generated/emscripten-module.WASM_RELEASE_SYNC.js"(exports2, module2) {
    "use strict";
    var QuickJSRaw = (() => {
      var _scriptDir = typeof document !== "undefined" && document.currentScript ? document.currentScript.src : void 0;
      if (typeof __filename !== "undefined")
        _scriptDir = _scriptDir || __filename;
      return (function(QuickJSRaw2 = {}) {
        var a3;
        a3 || (a3 = typeof QuickJSRaw2 !== "undefined" ? QuickJSRaw2 : {});
        var m3, n3;
        a3.ready = new Promise(function(b3, c3) {
          m3 = b3;
          n3 = c3;
        });
        var p3 = Object.assign({}, a3), t3 = "./this.program", u3 = "object" == typeof window, v6 = "function" == typeof importScripts, w3 = "object" == typeof process && "object" == typeof process.versions && "string" == typeof process.versions.node, x3 = "", y2, z2, A2;
        if (w3) {
          var fs43 = require("fs"), B2 = require("path");
          x3 = v6 ? B2.dirname(x3) + "/" : __dirname + "/";
          y2 = /* @__PURE__ */ __name((b3, c3) => {
            var d3 = C2(b3);
            if (d3)
              return c3 ? d3 : d3.toString();
            b3 = b3.startsWith("file://") ? new URL(b3) : B2.normalize(b3);
            return fs43.readFileSync(b3, c3 ? void 0 : "utf8");
          }, "y");
          A2 = /* @__PURE__ */ __name((b3) => {
            b3 = y2(b3, true);
            b3.buffer || (b3 = new Uint8Array(b3));
            return b3;
          }, "A");
          z2 = /* @__PURE__ */ __name((b3, c3, d3) => {
            var e3 = C2(b3);
            e3 && c3(e3);
            b3 = b3.startsWith("file://") ? new URL(b3) : B2.normalize(b3);
            fs43.readFile(b3, function(f3, g3) {
              f3 ? d3(f3) : c3(g3.buffer);
            });
          }, "z");
          !a3.thisProgram && 1 < process.argv.length && (t3 = process.argv[1].replace(/\\/g, "/"));
          process.argv.slice(2);
          a3.inspect = function() {
            return "[Emscripten Module object]";
          };
        } else if (u3 || v6)
          v6 ? x3 = self.location.href : "undefined" != typeof document && document.currentScript && (x3 = document.currentScript.src), _scriptDir && (x3 = _scriptDir), 0 !== x3.indexOf("blob:") ? x3 = x3.substr(0, x3.replace(/[?#].*/, "").lastIndexOf("/") + 1) : x3 = "", y2 = /* @__PURE__ */ __name((b3) => {
            try {
              var c3 = new XMLHttpRequest();
              c3.open("GET", b3, false);
              c3.send(null);
              return c3.responseText;
            } catch (f3) {
              if (b3 = C2(b3)) {
                c3 = [];
                for (var d3 = 0; d3 < b3.length; d3++) {
                  var e3 = b3[d3];
                  255 < e3 && (e3 &= 255);
                  c3.push(String.fromCharCode(e3));
                }
                return c3.join("");
              }
              throw f3;
            }
          }, "y"), v6 && (A2 = /* @__PURE__ */ __name((b3) => {
            try {
              var c3 = new XMLHttpRequest();
              c3.open("GET", b3, false);
              c3.responseType = "arraybuffer";
              c3.send(null);
              return new Uint8Array(c3.response);
            } catch (d3) {
              if (b3 = C2(b3))
                return b3;
              throw d3;
            }
          }, "A")), z2 = /* @__PURE__ */ __name((b3, c3, d3) => {
            var e3 = new XMLHttpRequest();
            e3.open("GET", b3, true);
            e3.responseType = "arraybuffer";
            e3.onload = () => {
              if (200 == e3.status || 0 == e3.status && e3.response)
                c3(e3.response);
              else {
                var f3 = C2(b3);
                f3 ? c3(f3.buffer) : d3();
              }
            };
            e3.onerror = d3;
            e3.send(null);
          }, "z");
        var aa = a3.print || console.log.bind(console), D2 = a3.printErr || console.warn.bind(console);
        Object.assign(a3, p3);
        p3 = null;
        a3.thisProgram && (t3 = a3.thisProgram);
        var E2;
        a3.wasmBinary && (E2 = a3.wasmBinary);
        var noExitRuntime = a3.noExitRuntime || true;
        "object" != typeof WebAssembly && F2("no native wasm support detected");
        var G2, H2 = false, I2, J2, K, L;
        function M() {
          var b3 = G2.buffer;
          a3.HEAP8 = I2 = new Int8Array(b3);
          a3.HEAP16 = new Int16Array(b3);
          a3.HEAP32 = K = new Int32Array(b3);
          a3.HEAPU8 = J2 = new Uint8Array(b3);
          a3.HEAPU16 = new Uint16Array(b3);
          a3.HEAPU32 = L = new Uint32Array(b3);
          a3.HEAPF32 = new Float32Array(b3);
          a3.HEAPF64 = new Float64Array(b3);
        }
        __name(M, "M");
        var ba = [], ca = [], da = [];
        function ea() {
          var b3 = a3.preRun.shift();
          ba.unshift(b3);
        }
        __name(ea, "ea");
        var N = 0, O = null, P = null;
        function F2(b3) {
          if (a3.onAbort)
            a3.onAbort(b3);
          b3 = "Aborted(" + b3 + ")";
          D2(b3);
          H2 = true;
          b3 = new WebAssembly.RuntimeError(b3 + ". Build with -sASSERTIONS for more info.");
          n3(b3);
          throw b3;
        }
        __name(F2, "F");
        var Q = "data:application/octet-stream;base64,", R;
        R = "data:application/octet-stream;base64, ";
        if (!R.startsWith(Q)) {
          var fa = R;
          R = a3.locateFile ? a3.locateFile(fa, x3) : x3 + fa;
        }
        function ha(b3) {
          try {
            if (b3 == R && E2)
              return new Uint8Array(E2);
            var c3 = C2(b3);
            if (c3)
              return c3;
            if (A2)
              return A2(b3);
            throw "both async and sync fetching of the wasm failed";
          } catch (d3) {
            F2(d3);
          }
        }
        __name(ha, "ha");
        function ia(b3) {
          if (!E2 && (u3 || v6)) {
            if ("function" == typeof fetch && !b3.startsWith("file://"))
              return fetch(b3, { credentials: "same-origin" }).then(function(c3) {
                if (!c3.ok)
                  throw "failed to load wasm binary file at '" + b3 + "'";
                return c3.arrayBuffer();
              }).catch(function() {
                return ha(b3);
              });
            if (z2)
              return new Promise(function(c3, d3) {
                z2(b3, function(e3) {
                  c3(new Uint8Array(e3));
                }, d3);
              });
          }
          return Promise.resolve().then(function() {
            return ha(b3);
          });
        }
        __name(ia, "ia");
        function ja(b3, c3, d3) {
          return ia(b3).then(function(e3) {
            return WebAssembly.instantiate(e3, c3);
          }).then(function(e3) {
            return e3;
          }).then(d3, function(e3) {
            D2("failed to asynchronously prepare wasm: " + e3);
            F2(e3);
          });
        }
        __name(ja, "ja");
        function ka(b3, c3) {
          var d3 = R;
          return E2 || "function" != typeof WebAssembly.instantiateStreaming || d3.startsWith(Q) || d3.startsWith("file://") || w3 || "function" != typeof fetch ? ja(d3, b3, c3) : fetch(d3, { credentials: "same-origin" }).then(function(e3) {
            return WebAssembly.instantiateStreaming(e3, b3).then(c3, function(f3) {
              D2("wasm streaming compile failed: " + f3);
              D2("falling back to ArrayBuffer instantiation");
              return ja(d3, b3, c3);
            });
          });
        }
        __name(ka, "ka");
        function S(b3) {
          for (; 0 < b3.length; )
            b3.shift()(a3);
        }
        __name(S, "S");
        var la = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0;
        function na(b3, c3, d3) {
          var e3 = c3 + d3;
          for (d3 = c3; b3[d3] && !(d3 >= e3); )
            ++d3;
          if (16 < d3 - c3 && b3.buffer && la)
            return la.decode(b3.subarray(c3, d3));
          for (e3 = ""; c3 < d3; ) {
            var f3 = b3[c3++];
            if (f3 & 128) {
              var g3 = b3[c3++] & 63;
              if (192 == (f3 & 224))
                e3 += String.fromCharCode((f3 & 31) << 6 | g3);
              else {
                var h3 = b3[c3++] & 63;
                f3 = 224 == (f3 & 240) ? (f3 & 15) << 12 | g3 << 6 | h3 : (f3 & 7) << 18 | g3 << 12 | h3 << 6 | b3[c3++] & 63;
                65536 > f3 ? e3 += String.fromCharCode(f3) : (f3 -= 65536, e3 += String.fromCharCode(55296 | f3 >> 10, 56320 | f3 & 1023));
              }
            } else
              e3 += String.fromCharCode(f3);
          }
          return e3;
        }
        __name(na, "na");
        function T(b3, c3) {
          return b3 ? na(J2, b3, c3) : "";
        }
        __name(T, "T");
        var oa = [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335], pa = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334];
        function U(b3) {
          for (var c3 = 0, d3 = 0; d3 < b3.length; ++d3) {
            var e3 = b3.charCodeAt(d3);
            127 >= e3 ? c3++ : 2047 >= e3 ? c3 += 2 : 55296 <= e3 && 57343 >= e3 ? (c3 += 4, ++d3) : c3 += 3;
          }
          return c3;
        }
        __name(U, "U");
        function V(b3, c3, d3) {
          var e3 = J2;
          if (!(0 < d3))
            return 0;
          var f3 = c3;
          d3 = c3 + d3 - 1;
          for (var g3 = 0; g3 < b3.length; ++g3) {
            var h3 = b3.charCodeAt(g3);
            if (55296 <= h3 && 57343 >= h3) {
              var k3 = b3.charCodeAt(++g3);
              h3 = 65536 + ((h3 & 1023) << 10) | k3 & 1023;
            }
            if (127 >= h3) {
              if (c3 >= d3)
                break;
              e3[c3++] = h3;
            } else {
              if (2047 >= h3) {
                if (c3 + 1 >= d3)
                  break;
                e3[c3++] = 192 | h3 >> 6;
              } else {
                if (65535 >= h3) {
                  if (c3 + 2 >= d3)
                    break;
                  e3[c3++] = 224 | h3 >> 12;
                } else {
                  if (c3 + 3 >= d3)
                    break;
                  e3[c3++] = 240 | h3 >> 18;
                  e3[c3++] = 128 | h3 >> 12 & 63;
                }
                e3[c3++] = 128 | h3 >> 6 & 63;
              }
              e3[c3++] = 128 | h3 & 63;
            }
          }
          e3[c3] = 0;
          return c3 - f3;
        }
        __name(V, "V");
        function qa(b3) {
          var c3 = U(b3) + 1, d3 = ra(c3);
          d3 && V(b3, d3, c3);
          return d3;
        }
        __name(qa, "qa");
        var W = {};
        function sa() {
          if (!X) {
            var b3 = { USER: "web_user", LOGNAME: "web_user", PATH: "/", PWD: "/", HOME: "/home/web_user", LANG: ("object" == typeof navigator && navigator.languages && navigator.languages[0] || "C").replace("-", "_") + ".UTF-8", _: t3 || "./this.program" }, c3;
            for (c3 in W)
              void 0 === W[c3] ? delete b3[c3] : b3[c3] = W[c3];
            var d3 = [];
            for (c3 in b3)
              d3.push(c3 + "=" + b3[c3]);
            X = d3;
          }
          return X;
        }
        __name(sa, "sa");
        var X, ta = [null, [], []];
        function ua(b3, c3, d3, e3) {
          var f3 = { string: /* @__PURE__ */ __name((l3) => {
            var q3 = 0;
            if (null !== l3 && void 0 !== l3 && 0 !== l3) {
              q3 = U(l3) + 1;
              var ma = Y(q3);
              V(l3, ma, q3);
              q3 = ma;
            }
            return q3;
          }, "string"), array: /* @__PURE__ */ __name((l3) => {
            var q3 = Y(l3.length);
            I2.set(l3, q3);
            return q3;
          }, "array") };
          b3 = a3["_" + b3];
          var g3 = [], h3 = 0;
          if (e3)
            for (var k3 = 0; k3 < e3.length; k3++) {
              var r3 = f3[d3[k3]];
              r3 ? (0 === h3 && (h3 = va()), g3[k3] = r3(e3[k3])) : g3[k3] = e3[k3];
            }
          d3 = b3.apply(null, g3);
          return d3 = (function(l3) {
            0 !== h3 && wa(h3);
            return "string" === c3 ? T(l3) : "boolean" === c3 ? !!l3 : l3;
          })(d3);
        }
        __name(ua, "ua");
        var xa = "function" == typeof atob ? atob : function(b3) {
          var c3 = "", d3 = 0;
          b3 = b3.replace(/[^A-Za-z0-9\+\/=]/g, "");
          do {
            var e3 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(b3.charAt(d3++));
            var f3 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(b3.charAt(d3++));
            var g3 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(b3.charAt(d3++));
            var h3 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(b3.charAt(d3++));
            e3 = e3 << 2 | f3 >> 4;
            f3 = (f3 & 15) << 4 | g3 >> 2;
            var k3 = (g3 & 3) << 6 | h3;
            c3 += String.fromCharCode(e3);
            64 !== g3 && (c3 += String.fromCharCode(f3));
            64 !== h3 && (c3 += String.fromCharCode(k3));
          } while (d3 < b3.length);
          return c3;
        };
        function C2(b3) {
          if (b3.startsWith(Q)) {
            b3 = b3.slice(Q.length);
            if ("boolean" == typeof w3 && w3) {
              var c3 = Buffer.from(b3, "base64");
              c3 = new Uint8Array(c3.buffer, c3.byteOffset, c3.byteLength);
            } else
              try {
                var d3 = xa(b3), e3 = new Uint8Array(d3.length);
                for (b3 = 0; b3 < d3.length; ++b3)
                  e3[b3] = d3.charCodeAt(b3);
                c3 = e3;
              } catch (f3) {
                throw Error("Converting base64 string to bytes failed.");
              }
            return c3;
          }
        }
        __name(C2, "C");
        var ya = {
          a: /* @__PURE__ */ __name(function(b3, c3, d3, e3) {
            F2("Assertion failed: " + T(b3) + ", at: " + [c3 ? T(c3) : "unknown filename", d3, e3 ? T(e3) : "unknown function"]);
          }, "a"),
          l: /* @__PURE__ */ __name(function(b3, c3) {
            b3 = new Date(1e3 * (L[b3 >> 2] + 4294967296 * K[b3 + 4 >> 2]));
            K[c3 >> 2] = b3.getSeconds();
            K[c3 + 4 >> 2] = b3.getMinutes();
            K[c3 + 8 >> 2] = b3.getHours();
            K[c3 + 12 >> 2] = b3.getDate();
            K[c3 + 16 >> 2] = b3.getMonth();
            K[c3 + 20 >> 2] = b3.getFullYear() - 1900;
            K[c3 + 24 >> 2] = b3.getDay();
            var d3 = b3.getFullYear();
            K[c3 + 28 >> 2] = (0 !== d3 % 4 || 0 === d3 % 100 && 0 !== d3 % 400 ? pa : oa)[b3.getMonth()] + b3.getDate() - 1 | 0;
            K[c3 + 36 >> 2] = -(60 * b3.getTimezoneOffset());
            d3 = new Date(b3.getFullYear(), 6, 1).getTimezoneOffset();
            var e3 = new Date(b3.getFullYear(), 0, 1).getTimezoneOffset();
            K[c3 + 32 >> 2] = (d3 != e3 && b3.getTimezoneOffset() == Math.min(e3, d3)) | 0;
          }, "l"),
          k: /* @__PURE__ */ __name(function(b3, c3, d3) {
            function e3(r3) {
              return (r3 = r3.toTimeString().match(/\(([A-Za-z ]+)\)$/)) ? r3[1] : "GMT";
            }
            __name(e3, "e");
            var f3 = (/* @__PURE__ */ new Date()).getFullYear(), g3 = new Date(f3, 0, 1), h3 = new Date(f3, 6, 1);
            f3 = g3.getTimezoneOffset();
            var k3 = h3.getTimezoneOffset();
            L[b3 >> 2] = 60 * Math.max(f3, k3);
            K[c3 >> 2] = Number(f3 != k3);
            b3 = e3(g3);
            c3 = e3(h3);
            b3 = qa(b3);
            c3 = qa(c3);
            k3 < f3 ? (L[d3 >> 2] = b3, L[d3 + 4 >> 2] = c3) : (L[d3 >> 2] = c3, L[d3 + 4 >> 2] = b3);
          }, "k"),
          b: /* @__PURE__ */ __name(function() {
            F2("");
          }, "b"),
          m: /* @__PURE__ */ __name(function() {
            return Date.now();
          }, "m"),
          j: /* @__PURE__ */ __name(function(b3) {
            var c3 = J2.length;
            b3 >>>= 0;
            if (2147483648 < b3)
              return false;
            for (var d3 = 1; 4 >= d3; d3 *= 2) {
              var e3 = c3 * (1 + 0.2 / d3);
              e3 = Math.min(e3, b3 + 100663296);
              var f3 = Math, g3 = f3.min;
              e3 = Math.max(b3, e3);
              e3 += (65536 - e3 % 65536) % 65536;
              a: {
                var h3 = G2.buffer;
                try {
                  G2.grow(g3.call(f3, 2147483648, e3) - h3.byteLength + 65535 >>> 16);
                  M();
                  var k3 = 1;
                  break a;
                } catch (r3) {
                }
                k3 = void 0;
              }
              if (k3)
                return true;
            }
            return false;
          }, "j"),
          e: /* @__PURE__ */ __name(function(b3, c3) {
            var d3 = 0;
            sa().forEach(function(e3, f3) {
              var g3 = c3 + d3;
              f3 = L[b3 + 4 * f3 >> 2] = g3;
              for (g3 = 0; g3 < e3.length; ++g3)
                I2[f3++ >> 0] = e3.charCodeAt(g3);
              I2[f3 >> 0] = 0;
              d3 += e3.length + 1;
            });
            return 0;
          }, "e"),
          f: /* @__PURE__ */ __name(function(b3, c3) {
            var d3 = sa();
            L[b3 >> 2] = d3.length;
            var e3 = 0;
            d3.forEach(function(f3) {
              e3 += f3.length + 1;
            });
            L[c3 >> 2] = e3;
            return 0;
          }, "f"),
          d: /* @__PURE__ */ __name(function() {
            return 52;
          }, "d"),
          i: /* @__PURE__ */ __name(function() {
            return 70;
          }, "i"),
          c: /* @__PURE__ */ __name(function(b3, c3, d3, e3) {
            for (var f3 = 0, g3 = 0; g3 < d3; g3++) {
              var h3 = L[c3 >> 2], k3 = L[c3 + 4 >> 2];
              c3 += 8;
              for (var r3 = 0; r3 < k3; r3++) {
                var l3 = J2[h3 + r3], q3 = ta[b3];
                0 === l3 || 10 === l3 ? ((1 === b3 ? aa : D2)(na(q3, 0)), q3.length = 0) : q3.push(l3);
              }
              f3 += k3;
            }
            L[e3 >> 2] = f3;
            return 0;
          }, "c"),
          o: /* @__PURE__ */ __name(function(b3, c3, d3, e3, f3) {
            return a3.callbacks.callFunction(void 0, b3, c3, d3, e3, f3);
          }, "o"),
          n: /* @__PURE__ */ __name(function(b3) {
            return a3.callbacks.shouldInterrupt(void 0, b3);
          }, "n"),
          h: /* @__PURE__ */ __name(function(b3, c3, d3) {
            d3 = T(d3);
            return a3.callbacks.loadModuleSource(void 0, b3, c3, d3);
          }, "h"),
          g: /* @__PURE__ */ __name(function(b3, c3, d3, e3) {
            d3 = T(d3);
            e3 = T(e3);
            return a3.callbacks.normalizeModule(void 0, b3, c3, d3, e3);
          }, "g")
        };
        (function() {
          function b3(d3) {
            d3 = d3.exports;
            a3.asm = d3;
            G2 = a3.asm.p;
            M();
            ca.unshift(a3.asm.q);
            N--;
            a3.monitorRunDependencies && a3.monitorRunDependencies(N);
            if (0 == N && (null !== O && (clearInterval(O), O = null), P)) {
              var e3 = P;
              P = null;
              e3();
            }
            return d3;
          }
          __name(b3, "b");
          var c3 = { a: ya };
          N++;
          a3.monitorRunDependencies && a3.monitorRunDependencies(N);
          if (a3.instantiateWasm)
            try {
              return a3.instantiateWasm(c3, b3);
            } catch (d3) {
              D2("Module.instantiateWasm callback failed with error: " + d3), n3(d3);
            }
          ka(c3, function(d3) {
            b3(d3.instance);
          }).catch(n3);
          return {};
        })();
        var ra = a3._malloc = function() {
          return (ra = a3._malloc = a3.asm.r).apply(null, arguments);
        };
        a3._QTS_Throw = function() {
          return (a3._QTS_Throw = a3.asm.s).apply(null, arguments);
        };
        a3._QTS_NewError = function() {
          return (a3._QTS_NewError = a3.asm.t).apply(null, arguments);
        };
        a3._QTS_RuntimeSetMemoryLimit = function() {
          return (a3._QTS_RuntimeSetMemoryLimit = a3.asm.u).apply(null, arguments);
        };
        a3._QTS_RuntimeComputeMemoryUsage = function() {
          return (a3._QTS_RuntimeComputeMemoryUsage = a3.asm.v).apply(null, arguments);
        };
        a3._QTS_RuntimeDumpMemoryUsage = function() {
          return (a3._QTS_RuntimeDumpMemoryUsage = a3.asm.w).apply(null, arguments);
        };
        a3._QTS_RecoverableLeakCheck = function() {
          return (a3._QTS_RecoverableLeakCheck = a3.asm.x).apply(null, arguments);
        };
        a3._QTS_BuildIsSanitizeLeak = function() {
          return (a3._QTS_BuildIsSanitizeLeak = a3.asm.y).apply(null, arguments);
        };
        a3._QTS_RuntimeSetMaxStackSize = function() {
          return (a3._QTS_RuntimeSetMaxStackSize = a3.asm.z).apply(null, arguments);
        };
        a3._QTS_GetUndefined = function() {
          return (a3._QTS_GetUndefined = a3.asm.A).apply(null, arguments);
        };
        a3._QTS_GetNull = function() {
          return (a3._QTS_GetNull = a3.asm.B).apply(null, arguments);
        };
        a3._QTS_GetFalse = function() {
          return (a3._QTS_GetFalse = a3.asm.C).apply(null, arguments);
        };
        a3._QTS_GetTrue = function() {
          return (a3._QTS_GetTrue = a3.asm.D).apply(null, arguments);
        };
        a3._QTS_NewRuntime = function() {
          return (a3._QTS_NewRuntime = a3.asm.E).apply(null, arguments);
        };
        a3._QTS_FreeRuntime = function() {
          return (a3._QTS_FreeRuntime = a3.asm.F).apply(null, arguments);
        };
        a3._QTS_NewContext = function() {
          return (a3._QTS_NewContext = a3.asm.G).apply(null, arguments);
        };
        a3._QTS_FreeContext = function() {
          return (a3._QTS_FreeContext = a3.asm.H).apply(null, arguments);
        };
        a3._QTS_FreeValuePointer = function() {
          return (a3._QTS_FreeValuePointer = a3.asm.I).apply(null, arguments);
        };
        a3._free = function() {
          return (a3._free = a3.asm.J).apply(null, arguments);
        };
        a3._QTS_FreeValuePointerRuntime = function() {
          return (a3._QTS_FreeValuePointerRuntime = a3.asm.K).apply(null, arguments);
        };
        a3._QTS_FreeVoidPointer = function() {
          return (a3._QTS_FreeVoidPointer = a3.asm.L).apply(null, arguments);
        };
        a3._QTS_FreeCString = function() {
          return (a3._QTS_FreeCString = a3.asm.M).apply(null, arguments);
        };
        a3._QTS_DupValuePointer = function() {
          return (a3._QTS_DupValuePointer = a3.asm.N).apply(null, arguments);
        };
        a3._QTS_NewObject = function() {
          return (a3._QTS_NewObject = a3.asm.O).apply(null, arguments);
        };
        a3._QTS_NewObjectProto = function() {
          return (a3._QTS_NewObjectProto = a3.asm.P).apply(null, arguments);
        };
        a3._QTS_NewArray = function() {
          return (a3._QTS_NewArray = a3.asm.Q).apply(null, arguments);
        };
        a3._QTS_NewFloat64 = function() {
          return (a3._QTS_NewFloat64 = a3.asm.R).apply(null, arguments);
        };
        a3._QTS_GetFloat64 = function() {
          return (a3._QTS_GetFloat64 = a3.asm.S).apply(null, arguments);
        };
        a3._QTS_NewString = function() {
          return (a3._QTS_NewString = a3.asm.T).apply(null, arguments);
        };
        a3._QTS_GetString = function() {
          return (a3._QTS_GetString = a3.asm.U).apply(null, arguments);
        };
        a3._QTS_NewSymbol = function() {
          return (a3._QTS_NewSymbol = a3.asm.V).apply(null, arguments);
        };
        a3._QTS_GetSymbolDescriptionOrKey = function() {
          return (a3._QTS_GetSymbolDescriptionOrKey = a3.asm.W).apply(null, arguments);
        };
        a3._QTS_IsGlobalSymbol = function() {
          return (a3._QTS_IsGlobalSymbol = a3.asm.X).apply(null, arguments);
        };
        a3._QTS_IsJobPending = function() {
          return (a3._QTS_IsJobPending = a3.asm.Y).apply(null, arguments);
        };
        a3._QTS_ExecutePendingJob = function() {
          return (a3._QTS_ExecutePendingJob = a3.asm.Z).apply(null, arguments);
        };
        a3._QTS_GetProp = function() {
          return (a3._QTS_GetProp = a3.asm._).apply(null, arguments);
        };
        a3._QTS_SetProp = function() {
          return (a3._QTS_SetProp = a3.asm.$).apply(null, arguments);
        };
        a3._QTS_DefineProp = function() {
          return (a3._QTS_DefineProp = a3.asm.aa).apply(null, arguments);
        };
        a3._QTS_Call = function() {
          return (a3._QTS_Call = a3.asm.ba).apply(null, arguments);
        };
        a3._QTS_ResolveException = function() {
          return (a3._QTS_ResolveException = a3.asm.ca).apply(null, arguments);
        };
        a3._QTS_Dump = function() {
          return (a3._QTS_Dump = a3.asm.da).apply(null, arguments);
        };
        a3._QTS_Eval = function() {
          return (a3._QTS_Eval = a3.asm.ea).apply(null, arguments);
        };
        a3._QTS_Typeof = function() {
          return (a3._QTS_Typeof = a3.asm.fa).apply(null, arguments);
        };
        a3._QTS_GetGlobalObject = function() {
          return (a3._QTS_GetGlobalObject = a3.asm.ga).apply(null, arguments);
        };
        a3._QTS_NewPromiseCapability = function() {
          return (a3._QTS_NewPromiseCapability = a3.asm.ha).apply(null, arguments);
        };
        a3._QTS_TestStringArg = function() {
          return (a3._QTS_TestStringArg = a3.asm.ia).apply(null, arguments);
        };
        a3._QTS_BuildIsDebug = function() {
          return (a3._QTS_BuildIsDebug = a3.asm.ja).apply(null, arguments);
        };
        a3._QTS_BuildIsAsyncify = function() {
          return (a3._QTS_BuildIsAsyncify = a3.asm.ka).apply(null, arguments);
        };
        a3._QTS_NewFunction = function() {
          return (a3._QTS_NewFunction = a3.asm.la).apply(null, arguments);
        };
        a3._QTS_ArgvGetJSValueConstPointer = function() {
          return (a3._QTS_ArgvGetJSValueConstPointer = a3.asm.ma).apply(null, arguments);
        };
        a3._QTS_RuntimeEnableInterruptHandler = function() {
          return (a3._QTS_RuntimeEnableInterruptHandler = a3.asm.na).apply(null, arguments);
        };
        a3._QTS_RuntimeDisableInterruptHandler = function() {
          return (a3._QTS_RuntimeDisableInterruptHandler = a3.asm.oa).apply(null, arguments);
        };
        a3._QTS_RuntimeEnableModuleLoader = function() {
          return (a3._QTS_RuntimeEnableModuleLoader = a3.asm.pa).apply(null, arguments);
        };
        a3._QTS_RuntimeDisableModuleLoader = function() {
          return (a3._QTS_RuntimeDisableModuleLoader = a3.asm.qa).apply(null, arguments);
        };
        function va() {
          return (va = a3.asm.sa).apply(null, arguments);
        }
        __name(va, "va");
        function wa() {
          return (wa = a3.asm.ta).apply(null, arguments);
        }
        __name(wa, "wa");
        function Y() {
          return (Y = a3.asm.ua).apply(null, arguments);
        }
        __name(Y, "Y");
        a3.___start_em_js = 74916;
        a3.___stop_em_js = 75818;
        a3.cwrap = function(b3, c3, d3, e3) {
          var f3 = !d3 || d3.every((g3) => "number" === g3 || "boolean" === g3);
          return "string" !== c3 && f3 && !e3 ? a3["_" + b3] : function() {
            return ua(b3, c3, d3, arguments);
          };
        };
        a3.UTF8ToString = T;
        a3.stringToUTF8 = function(b3, c3, d3) {
          return V(b3, c3, d3);
        };
        a3.lengthBytesUTF8 = U;
        var Z;
        P = /* @__PURE__ */ __name(function za() {
          Z || Aa();
          Z || (P = za);
        }, "za");
        function Aa() {
          function b3() {
            if (!Z && (Z = true, a3.calledRun = true, !H2)) {
              S(ca);
              m3(a3);
              if (a3.onRuntimeInitialized)
                a3.onRuntimeInitialized();
              if (a3.postRun)
                for ("function" == typeof a3.postRun && (a3.postRun = [a3.postRun]); a3.postRun.length; ) {
                  var c3 = a3.postRun.shift();
                  da.unshift(c3);
                }
              S(da);
            }
          }
          __name(b3, "b");
          if (!(0 < N)) {
            if (a3.preRun)
              for ("function" == typeof a3.preRun && (a3.preRun = [a3.preRun]); a3.preRun.length; )
                ea();
            S(ba);
            0 < N || (a3.setStatus ? (a3.setStatus("Running..."), setTimeout(function() {
              setTimeout(function() {
                a3.setStatus("");
              }, 1);
              b3();
            }, 1)) : b3());
          }
        }
        __name(Aa, "Aa");
        if (a3.preInit)
          for ("function" == typeof a3.preInit && (a3.preInit = [a3.preInit]); 0 < a3.preInit.length; )
            a3.preInit.pop()();
        Aa();
        return QuickJSRaw2.ready;
      });
    })();
    if (typeof exports2 === "object" && typeof module2 === "object")
      module2.exports = QuickJSRaw;
    else if (typeof define === "function" && define["amd"])
      define([], function() {
        return QuickJSRaw;
      });
    else if (typeof exports2 === "object")
      exports2["QuickJSRaw"] = QuickJSRaw;
  }
});

// ../../node_modules/@tootallnate/quickjs-emscripten/dist/variants.js
var require_variants = __commonJS({
  "../../node_modules/@tootallnate/quickjs-emscripten/dist/variants.js"(exports2) {
    "use strict";
    var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      var desc = Object.getOwnPropertyDescriptor(m3, k3);
      if (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) {
        desc = { enumerable: true, get: /* @__PURE__ */ __name(function() {
          return m3[k3];
        }, "get") };
      }
      Object.defineProperty(o3, k22, desc);
    }) : (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      o3[k22] = m3[k3];
    }));
    var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? (function(o3, v6) {
      Object.defineProperty(o3, "default", { enumerable: true, value: v6 });
    }) : function(o3, v6) {
      o3["default"] = v6;
    });
    var __importStar2 = exports2 && exports2.__importStar || function(mod) {
      if (mod && mod.__esModule) return mod;
      var result2 = {};
      if (mod != null) {
        for (var k3 in mod) if (k3 !== "default" && Object.prototype.hasOwnProperty.call(mod, k3)) __createBinding3(result2, mod, k3);
      }
      __setModuleDefault2(result2, mod);
      return result2;
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.RELEASE_ASYNC = exports2.DEBUG_ASYNC = exports2.RELEASE_SYNC = exports2.DEBUG_SYNC = exports2.memoizePromiseFactory = exports2.newQuickJSAsyncWASMModule = exports2.newQuickJSWASMModule = void 0;
    var esmHelpers_1 = require_esmHelpers();
    async function newQuickJSWASMModule(variant = exports2.RELEASE_SYNC) {
      const [wasmModuleLoader, QuickJSFFI, { QuickJSWASMModule }] = await Promise.all([
        variant.importModuleLoader(),
        variant.importFFI(),
        Promise.resolve().then(() => __importStar2(require_module())).then(esmHelpers_1.unwrapTypescript)
      ]);
      const wasmModule = await wasmModuleLoader();
      wasmModule.type = "sync";
      const ffi = new QuickJSFFI(wasmModule);
      return new QuickJSWASMModule(wasmModule, ffi);
    }
    __name(newQuickJSWASMModule, "newQuickJSWASMModule");
    exports2.newQuickJSWASMModule = newQuickJSWASMModule;
    async function newQuickJSAsyncWASMModule(variant = exports2.RELEASE_ASYNC) {
      const [wasmModuleLoader, QuickJSAsyncFFI, { QuickJSAsyncWASMModule }] = await Promise.all([
        variant.importModuleLoader(),
        variant.importFFI(),
        Promise.resolve().then(() => __importStar2(require_module_asyncify())).then(esmHelpers_1.unwrapTypescript)
      ]);
      const wasmModule = await wasmModuleLoader();
      wasmModule.type = "async";
      const ffi = new QuickJSAsyncFFI(wasmModule);
      return new QuickJSAsyncWASMModule(wasmModule, ffi);
    }
    __name(newQuickJSAsyncWASMModule, "newQuickJSAsyncWASMModule");
    exports2.newQuickJSAsyncWASMModule = newQuickJSAsyncWASMModule;
    function memoizePromiseFactory(fn) {
      let promise;
      return () => {
        return promise ?? (promise = fn());
      };
    }
    __name(memoizePromiseFactory, "memoizePromiseFactory");
    exports2.memoizePromiseFactory = memoizePromiseFactory;
    exports2.DEBUG_SYNC = {
      type: "sync",
      async importFFI() {
        throw new Error("not implemented");
      },
      async importModuleLoader() {
        throw new Error("not implemented");
      }
    };
    exports2.RELEASE_SYNC = {
      type: "sync",
      async importFFI() {
        const mod = await Promise.resolve().then(() => __importStar2(require_ffi_WASM_RELEASE_SYNC()));
        return (0, esmHelpers_1.unwrapTypescript)(mod).QuickJSFFI;
      },
      async importModuleLoader() {
        const mod = await Promise.resolve().then(() => __importStar2(require_emscripten_module_WASM_RELEASE_SYNC()));
        return (0, esmHelpers_1.unwrapJavascript)(mod);
      }
    };
    exports2.DEBUG_ASYNC = {
      type: "async",
      async importFFI() {
        throw new Error("not implemented");
      },
      async importModuleLoader() {
        throw new Error("not implemented");
      }
    };
    exports2.RELEASE_ASYNC = {
      type: "async",
      async importFFI() {
        throw new Error("not implemented");
      },
      async importModuleLoader() {
        throw new Error("not implemented");
      }
    };
  }
});

// ../../node_modules/@tootallnate/quickjs-emscripten/dist/vm-interface.js
var require_vm_interface = __commonJS({
  "../../node_modules/@tootallnate/quickjs-emscripten/dist/vm-interface.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.isFail = exports2.isSuccess = void 0;
    function isSuccess(successOrFail) {
      return "error" in successOrFail === false;
    }
    __name(isSuccess, "isSuccess");
    exports2.isSuccess = isSuccess;
    function isFail(successOrFail) {
      return "error" in successOrFail === true;
    }
    __name(isFail, "isFail");
    exports2.isFail = isFail;
  }
});

// ../../node_modules/@tootallnate/quickjs-emscripten/dist/module-test.js
var require_module_test = __commonJS({
  "../../node_modules/@tootallnate/quickjs-emscripten/dist/module-test.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.TestQuickJSWASMModule = void 0;
    var errors_1 = require_errors5();
    var lifetime_1 = require_lifetime();
    var TestQuickJSWASMModule = class {
      static {
        __name(this, "TestQuickJSWASMModule");
      }
      constructor(parent) {
        this.parent = parent;
        this.contexts = /* @__PURE__ */ new Set();
        this.runtimes = /* @__PURE__ */ new Set();
      }
      newRuntime(options) {
        const runtime = this.parent.newRuntime({
          ...options,
          ownedLifetimes: [
            new lifetime_1.Lifetime(void 0, void 0, () => this.runtimes.delete(runtime)),
            ...options?.ownedLifetimes ?? []
          ]
        });
        this.runtimes.add(runtime);
        return runtime;
      }
      newContext(options) {
        const context = this.parent.newContext({
          ...options,
          ownedLifetimes: [
            new lifetime_1.Lifetime(void 0, void 0, () => this.contexts.delete(context)),
            ...options?.ownedLifetimes ?? []
          ]
        });
        this.contexts.add(context);
        return context;
      }
      evalCode(code, options) {
        return this.parent.evalCode(code, options);
      }
      disposeAll() {
        const allDisposables = [...this.contexts, ...this.runtimes];
        this.runtimes.clear();
        this.contexts.clear();
        allDisposables.forEach((d3) => {
          if (d3.alive) {
            d3.dispose();
          }
        });
      }
      assertNoMemoryAllocated() {
        const leaksDetected = this.getFFI().QTS_RecoverableLeakCheck();
        if (leaksDetected) {
          throw new errors_1.QuickJSMemoryLeakDetected("Leak sanitizer detected un-freed memory");
        }
        if (this.contexts.size > 0) {
          throw new errors_1.QuickJSMemoryLeakDetected(`${this.contexts.size} contexts leaked`);
        }
        if (this.runtimes.size > 0) {
          throw new errors_1.QuickJSMemoryLeakDetected(`${this.runtimes.size} runtimes leaked`);
        }
      }
      /** @private */
      getFFI() {
        return this.parent.getFFI();
      }
    };
    exports2.TestQuickJSWASMModule = TestQuickJSWASMModule;
  }
});

// ../../node_modules/@tootallnate/quickjs-emscripten/dist/index.js
var require_dist11 = __commonJS({
  "../../node_modules/@tootallnate/quickjs-emscripten/dist/index.js"(exports2) {
    "use strict";
    var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      var desc = Object.getOwnPropertyDescriptor(m3, k3);
      if (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) {
        desc = { enumerable: true, get: /* @__PURE__ */ __name(function() {
          return m3[k3];
        }, "get") };
      }
      Object.defineProperty(o3, k22, desc);
    }) : (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      o3[k22] = m3[k3];
    }));
    var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? (function(o3, v6) {
      Object.defineProperty(o3, "default", { enumerable: true, value: v6 });
    }) : function(o3, v6) {
      o3["default"] = v6;
    });
    var __exportStar3 = exports2 && exports2.__exportStar || function(m3, exports3) {
      for (var p3 in m3) if (p3 !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p3)) __createBinding3(exports3, m3, p3);
    };
    var __importStar2 = exports2 && exports2.__importStar || function(mod) {
      if (mod && mod.__esModule) return mod;
      var result2 = {};
      if (mod != null) {
        for (var k3 in mod) if (k3 !== "default" && Object.prototype.hasOwnProperty.call(mod, k3)) __createBinding3(result2, mod, k3);
      }
      __setModuleDefault2(result2, mod);
      return result2;
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.shouldInterruptAfterDeadline = exports2.newAsyncContext = exports2.newAsyncRuntime = exports2.getQuickJSSync = exports2.getQuickJS = exports2.errors = exports2.RELEASE_SYNC = exports2.RELEASE_ASYNC = exports2.DEBUG_SYNC = exports2.DEBUG_ASYNC = exports2.newQuickJSAsyncWASMModule = exports2.newQuickJSWASMModule = void 0;
    var variants_1 = require_variants();
    Object.defineProperty(exports2, "newQuickJSWASMModule", { enumerable: true, get: /* @__PURE__ */ __name(function() {
      return variants_1.newQuickJSWASMModule;
    }, "get") });
    Object.defineProperty(exports2, "newQuickJSAsyncWASMModule", { enumerable: true, get: /* @__PURE__ */ __name(function() {
      return variants_1.newQuickJSAsyncWASMModule;
    }, "get") });
    Object.defineProperty(exports2, "DEBUG_ASYNC", { enumerable: true, get: /* @__PURE__ */ __name(function() {
      return variants_1.DEBUG_ASYNC;
    }, "get") });
    Object.defineProperty(exports2, "DEBUG_SYNC", { enumerable: true, get: /* @__PURE__ */ __name(function() {
      return variants_1.DEBUG_SYNC;
    }, "get") });
    Object.defineProperty(exports2, "RELEASE_ASYNC", { enumerable: true, get: /* @__PURE__ */ __name(function() {
      return variants_1.RELEASE_ASYNC;
    }, "get") });
    Object.defineProperty(exports2, "RELEASE_SYNC", { enumerable: true, get: /* @__PURE__ */ __name(function() {
      return variants_1.RELEASE_SYNC;
    }, "get") });
    __exportStar3(require_vm_interface(), exports2);
    __exportStar3(require_lifetime(), exports2);
    exports2.errors = __importStar2(require_errors5());
    __exportStar3(require_deferred_promise(), exports2);
    __exportStar3(require_module_test(), exports2);
    var singleton = void 0;
    var singletonPromise = void 0;
    async function getQuickJS() {
      singletonPromise ?? (singletonPromise = (0, variants_1.newQuickJSWASMModule)().then((instance) => {
        singleton = instance;
        return instance;
      }));
      return await singletonPromise;
    }
    __name(getQuickJS, "getQuickJS");
    exports2.getQuickJS = getQuickJS;
    function getQuickJSSync() {
      if (!singleton) {
        throw new Error("QuickJS not initialized. Await getQuickJS() at least once.");
      }
      return singleton;
    }
    __name(getQuickJSSync, "getQuickJSSync");
    exports2.getQuickJSSync = getQuickJSSync;
    async function newAsyncRuntime(options) {
      const module3 = await (0, variants_1.newQuickJSAsyncWASMModule)();
      return module3.newRuntime(options);
    }
    __name(newAsyncRuntime, "newAsyncRuntime");
    exports2.newAsyncRuntime = newAsyncRuntime;
    async function newAsyncContext(options) {
      const module3 = await (0, variants_1.newQuickJSAsyncWASMModule)();
      return module3.newContext(options);
    }
    __name(newAsyncContext, "newAsyncContext");
    exports2.newAsyncContext = newAsyncContext;
    function shouldInterruptAfterDeadline(deadline) {
      const deadlineAsNumber = typeof deadline === "number" ? deadline : deadline.getTime();
      return function() {
        return Date.now() > deadlineAsNumber;
      };
    }
    __name(shouldInterruptAfterDeadline, "shouldInterruptAfterDeadline");
    exports2.shouldInterruptAfterDeadline = shouldInterruptAfterDeadline;
  }
});

// ../../node_modules/pac-proxy-agent/dist/index.js
var require_dist12 = __commonJS({
  "../../node_modules/pac-proxy-agent/dist/index.js"(exports2) {
    "use strict";
    var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      var desc = Object.getOwnPropertyDescriptor(m3, k3);
      if (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) {
        desc = { enumerable: true, get: /* @__PURE__ */ __name(function() {
          return m3[k3];
        }, "get") };
      }
      Object.defineProperty(o3, k22, desc);
    }) : (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      o3[k22] = m3[k3];
    }));
    var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? (function(o3, v6) {
      Object.defineProperty(o3, "default", { enumerable: true, value: v6 });
    }) : function(o3, v6) {
      o3["default"] = v6;
    });
    var __importStar2 = exports2 && exports2.__importStar || function(mod) {
      if (mod && mod.__esModule) return mod;
      var result2 = {};
      if (mod != null) {
        for (var k3 in mod) if (k3 !== "default" && Object.prototype.hasOwnProperty.call(mod, k3)) __createBinding3(result2, mod, k3);
      }
      __setModuleDefault2(result2, mod);
      return result2;
    };
    var __importDefault2 = exports2 && exports2.__importDefault || function(mod) {
      return mod && mod.__esModule ? mod : { "default": mod };
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.PacProxyAgent = void 0;
    var net = __importStar2(require("net"));
    var tls = __importStar2(require("tls"));
    var crypto7 = __importStar2(require("crypto"));
    var events_1 = require("events");
    var debug_1 = __importDefault2(require_src2());
    var url_1 = require("url");
    var agent_base_1 = require_dist3();
    var get_uri_1 = require_dist8();
    var pac_resolver_1 = require_dist10();
    var quickjs_emscripten_1 = require_dist11();
    var debug3 = (0, debug_1.default)("pac-proxy-agent");
    var setServernameFromNonIpHost = /* @__PURE__ */ __name((options) => {
      if (options.servername === void 0 && options.host && !net.isIP(options.host)) {
        return {
          ...options,
          servername: options.host
        };
      }
      return options;
    }, "setServernameFromNonIpHost");
    var PacProxyAgent = class extends agent_base_1.Agent {
      static {
        __name(this, "PacProxyAgent");
      }
      constructor(uri, opts) {
        super(opts);
        this.clearResolverPromise = () => {
          this.resolverPromise = void 0;
        };
        const uriStr = typeof uri === "string" ? uri : uri.href;
        this.uri = new url_1.URL(uriStr.replace(/^pac\+/i, ""));
        debug3("Creating PacProxyAgent with URI %o", this.uri.href);
        this.opts = { ...opts };
        this.cache = void 0;
        this.resolver = void 0;
        this.resolverHash = "";
        this.resolverPromise = void 0;
        if (!this.opts.filename) {
          this.opts.filename = this.uri.href;
        }
      }
      /**
       * Loads the PAC proxy file from the source if necessary, and returns
       * a generated `FindProxyForURL()` resolver function to use.
       */
      getResolver() {
        if (!this.resolverPromise) {
          this.resolverPromise = this.loadResolver();
          this.resolverPromise.then(this.clearResolverPromise, this.clearResolverPromise);
        }
        return this.resolverPromise;
      }
      async loadResolver() {
        try {
          const [qjs, code] = await Promise.all([
            (0, quickjs_emscripten_1.getQuickJS)(),
            this.loadPacFile()
          ]);
          const hash = crypto7.createHash("sha1").update(code).digest("hex");
          if (this.resolver && this.resolverHash === hash) {
            debug3("Same sha1 hash for code - contents have not changed, reusing previous proxy resolver");
            return this.resolver;
          }
          debug3("Creating new proxy resolver instance");
          this.resolver = (0, pac_resolver_1.createPacResolver)(qjs, code, this.opts);
          this.resolverHash = hash;
          return this.resolver;
        } catch (err) {
          if (this.resolver && err.code === "ENOTMODIFIED") {
            debug3("Got ENOTMODIFIED response, reusing previous proxy resolver");
            return this.resolver;
          }
          throw err;
        }
      }
      /**
       * Loads the contents of the PAC proxy file.
       *
       * @api private
       */
      async loadPacFile() {
        debug3("Loading PAC file: %o", this.uri);
        const rs = await (0, get_uri_1.getUri)(this.uri, { ...this.opts, cache: this.cache });
        debug3("Got `Readable` instance for URI");
        this.cache = rs;
        const buf = await (0, agent_base_1.toBuffer)(rs);
        debug3("Read %o byte PAC file from URI", buf.length);
        return buf.toString("utf8");
      }
      /**
       * Called when the node-core HTTP client library is creating a new HTTP request.
       */
      async connect(req, opts) {
        const { secureEndpoint } = opts;
        const isWebSocket = req.getHeader("upgrade") === "websocket";
        const resolver = await this.getResolver();
        const protocol = secureEndpoint ? "https:" : "http:";
        const host = opts.host && net.isIPv6(opts.host) ? `[${opts.host}]` : opts.host;
        const defaultPort = secureEndpoint ? 443 : 80;
        const url = Object.assign(new url_1.URL(req.path, `${protocol}//${host}`), defaultPort ? void 0 : { port: opts.port });
        debug3("url: %s", url);
        let result2 = await resolver(url);
        if (!result2) {
          result2 = "DIRECT";
        }
        const proxies = String(result2).trim().split(/\s*;\s*/g).filter(Boolean);
        if (this.opts.fallbackToDirect && !proxies.includes("DIRECT")) {
          proxies.push("DIRECT");
        }
        for (const proxy of proxies) {
          let agent = null;
          let socket = null;
          const [type, target] = proxy.split(/\s+/);
          debug3("Attempting to use proxy: %o", proxy);
          if (type === "DIRECT") {
            if (secureEndpoint) {
              socket = tls.connect(setServernameFromNonIpHost(opts));
            } else {
              socket = net.connect(opts);
            }
          } else if (type === "SOCKS" || type === "SOCKS5") {
            const { SocksProxyAgent } = await Promise.resolve().then(() => __importStar2(require_dist6()));
            agent = new SocksProxyAgent(`socks://${target}`, this.opts);
          } else if (type === "SOCKS4") {
            const { SocksProxyAgent } = await Promise.resolve().then(() => __importStar2(require_dist6()));
            agent = new SocksProxyAgent(`socks4a://${target}`, this.opts);
          } else if (type === "PROXY" || type === "HTTP" || type === "HTTPS") {
            const proxyURL = `${type === "HTTPS" ? "https" : "http"}://${target}`;
            if (secureEndpoint || isWebSocket) {
              const { HttpsProxyAgent } = await Promise.resolve().then(() => __importStar2(require_dist5()));
              agent = new HttpsProxyAgent(proxyURL, this.opts);
            } else {
              const { HttpProxyAgent } = await Promise.resolve().then(() => __importStar2(require_dist4()));
              agent = new HttpProxyAgent(proxyURL, this.opts);
            }
          }
          try {
            if (socket) {
              await (0, events_1.once)(socket, "connect");
              req.emit("proxy", { proxy, socket });
              return socket;
            }
            if (agent) {
              const s3 = await agent.connect(req, opts);
              if (!(s3 instanceof net.Socket)) {
                throw new Error("Expected a `net.Socket` to be returned from agent");
              }
              req.emit("proxy", { proxy, socket: s3 });
              return s3;
            }
            throw new Error(`Could not determine proxy type for: ${proxy}`);
          } catch (err) {
            debug3("Got error for proxy %o: %o", proxy, err);
            req.emit("proxy", { proxy, error: err });
          }
        }
        throw new Error(`Failed to establish a socket connection to proxies: ${JSON.stringify(proxies)}`);
      }
    };
    PacProxyAgent.protocols = [
      "pac+data",
      "pac+file",
      "pac+ftp",
      "pac+http",
      "pac+https"
    ];
    exports2.PacProxyAgent = PacProxyAgent;
  }
});

// ../../node_modules/proxy-agent/dist/index.js
var require_dist13 = __commonJS({
  "../../node_modules/proxy-agent/dist/index.js"(exports2) {
    "use strict";
    var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      var desc = Object.getOwnPropertyDescriptor(m3, k3);
      if (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) {
        desc = { enumerable: true, get: /* @__PURE__ */ __name(function() {
          return m3[k3];
        }, "get") };
      }
      Object.defineProperty(o3, k22, desc);
    }) : (function(o3, m3, k3, k22) {
      if (k22 === void 0) k22 = k3;
      o3[k22] = m3[k3];
    }));
    var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? (function(o3, v6) {
      Object.defineProperty(o3, "default", { enumerable: true, value: v6 });
    }) : function(o3, v6) {
      o3["default"] = v6;
    });
    var __importStar2 = exports2 && exports2.__importStar || function(mod) {
      if (mod && mod.__esModule) return mod;
      var result2 = {};
      if (mod != null) {
        for (var k3 in mod) if (k3 !== "default" && Object.prototype.hasOwnProperty.call(mod, k3)) __createBinding3(result2, mod, k3);
      }
      __setModuleDefault2(result2, mod);
      return result2;
    };
    var __importDefault2 = exports2 && exports2.__importDefault || function(mod) {
      return mod && mod.__esModule ? mod : { "default": mod };
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.ProxyAgent = exports2.proxies = void 0;
    var http = __importStar2(require("http"));
    var https2 = __importStar2(require("https"));
    var url_1 = require("url");
    var lru_cache_1 = __importDefault2(require_lru_cache());
    var agent_base_1 = require_dist3();
    var debug_1 = __importDefault2(require_src2());
    var proxy_from_env_1 = require_proxy_from_env();
    var debug3 = (0, debug_1.default)("proxy-agent");
    var wellKnownAgents = {
      http: /* @__PURE__ */ __name(async () => (await Promise.resolve().then(() => __importStar2(require_dist4()))).HttpProxyAgent, "http"),
      https: /* @__PURE__ */ __name(async () => (await Promise.resolve().then(() => __importStar2(require_dist5()))).HttpsProxyAgent, "https"),
      socks: /* @__PURE__ */ __name(async () => (await Promise.resolve().then(() => __importStar2(require_dist6()))).SocksProxyAgent, "socks"),
      pac: /* @__PURE__ */ __name(async () => (await Promise.resolve().then(() => __importStar2(require_dist12()))).PacProxyAgent, "pac")
    };
    exports2.proxies = {
      http: [wellKnownAgents.http, wellKnownAgents.https],
      https: [wellKnownAgents.http, wellKnownAgents.https],
      socks: [wellKnownAgents.socks, wellKnownAgents.socks],
      socks4: [wellKnownAgents.socks, wellKnownAgents.socks],
      socks4a: [wellKnownAgents.socks, wellKnownAgents.socks],
      socks5: [wellKnownAgents.socks, wellKnownAgents.socks],
      socks5h: [wellKnownAgents.socks, wellKnownAgents.socks],
      "pac+data": [wellKnownAgents.pac, wellKnownAgents.pac],
      "pac+file": [wellKnownAgents.pac, wellKnownAgents.pac],
      "pac+ftp": [wellKnownAgents.pac, wellKnownAgents.pac],
      "pac+http": [wellKnownAgents.pac, wellKnownAgents.pac],
      "pac+https": [wellKnownAgents.pac, wellKnownAgents.pac]
    };
    function isValidProtocol(v6) {
      return Object.keys(exports2.proxies).includes(v6);
    }
    __name(isValidProtocol, "isValidProtocol");
    var ProxyAgent2 = class extends agent_base_1.Agent {
      static {
        __name(this, "ProxyAgent");
      }
      constructor(opts) {
        super(opts);
        this.cache = new lru_cache_1.default({
          max: 20,
          dispose: /* @__PURE__ */ __name((agent) => agent.destroy(), "dispose")
        });
        debug3("Creating new ProxyAgent instance: %o", opts);
        this.connectOpts = opts;
        this.httpAgent = opts?.httpAgent || new http.Agent(opts);
        this.httpsAgent = opts?.httpsAgent || new https2.Agent(opts);
        this.getProxyForUrl = opts?.getProxyForUrl || proxy_from_env_1.getProxyForUrl;
      }
      async connect(req, opts) {
        const { secureEndpoint } = opts;
        const isWebSocket = req.getHeader("upgrade") === "websocket";
        const protocol = secureEndpoint ? isWebSocket ? "wss:" : "https:" : isWebSocket ? "ws:" : "http:";
        const host = req.getHeader("host");
        const url = new url_1.URL(req.path, `${protocol}//${host}`).href;
        const proxy = await this.getProxyForUrl(url, req);
        if (!proxy) {
          debug3("Proxy not enabled for URL: %o", url);
          return secureEndpoint ? this.httpsAgent : this.httpAgent;
        }
        debug3("Request URL: %o", url);
        debug3("Proxy URL: %o", proxy);
        const cacheKey = `${protocol}+${proxy}`;
        let agent = this.cache.get(cacheKey);
        if (!agent) {
          const proxyUrl = new url_1.URL(proxy);
          const proxyProto = proxyUrl.protocol.replace(":", "");
          if (!isValidProtocol(proxyProto)) {
            throw new Error(`Unsupported protocol for proxy URL: ${proxy}`);
          }
          const ctor = await exports2.proxies[proxyProto][secureEndpoint || isWebSocket ? 1 : 0]();
          agent = new ctor(proxy, this.connectOpts);
          this.cache.set(cacheKey, agent);
        } else {
          debug3("Cache hit for proxy URL: %o", proxy);
        }
        return agent;
      }
      destroy() {
        for (const agent of this.cache.values()) {
          agent.destroy();
        }
        super.destroy();
      }
    };
    exports2.ProxyAgent = ProxyAgent2;
  }
});

// lib/cli/proxy-agent.ts
var fs41, import_proxy_agent, ProxyAgentProvider;
var init_proxy_agent = __esm({
  "lib/cli/proxy-agent.ts"() {
    "use strict";
    fs41 = __toESM(require_lib13());
    import_proxy_agent = __toESM(require_dist13());
    ProxyAgentProvider = class {
      static {
        __name(this, "ProxyAgentProvider");
      }
      constructor(ioHelper) {
        this.ioHelper = ioHelper;
      }
      async create(options) {
        const getProxyForUrl = options.proxyAddress != null ? () => Promise.resolve(options.proxyAddress) : void 0;
        return new import_proxy_agent.ProxyAgent({
          ca: await this.tryGetCACert(options.caBundlePath),
          getProxyForUrl
        });
      }
      async tryGetCACert(bundlePath) {
        const path38 = bundlePath || this.caBundlePathFromEnvironment();
        if (path38) {
          await this.ioHelper.defaults.debug(`Using CA bundle path: ${path38}`);
          try {
            if (!fs41.pathExistsSync(path38)) {
              return void 0;
            }
            return fs41.readFileSync(path38, { encoding: "utf-8" });
          } catch (e3) {
            await this.ioHelper.defaults.debug(String(e3));
            return void 0;
          }
        }
        return void 0;
      }
      /**
       * Find and return a CA certificate bundle path to be passed into the SDK.
       */
      caBundlePathFromEnvironment() {
        if (process.env.aws_ca_bundle) {
          return process.env.aws_ca_bundle;
        }
        if (process.env.AWS_CA_BUNDLE) {
          return process.env.AWS_CA_BUNDLE;
        }
        return void 0;
      }
    };
  }
});

// lib/cli/cli.ts
var cli_exports = {};
__export(cli_exports, {
  cli: () => cli,
  exec: () => exec4
});
async function exec4(args, synthesizer) {
  const argv = await parseCommandLineArguments(args);
  argv.language = getLanguageFromAlias(argv.language) ?? argv.language;
  const cmd = argv._[0];
  let ioMessageLevel = "info";
  if (argv.verbose) {
    switch (argv.verbose) {
      case 1:
        ioMessageLevel = "debug";
        break;
      case 2:
      default:
        ioMessageLevel = "trace";
        break;
    }
  }
  const ioHost = CliIoHost.instance({
    logLevel: ioMessageLevel,
    isTTY: process.stdout.isTTY,
    isCI: Boolean(argv.ci),
    currentAction: cmd,
    stackProgress: argv.progress
  }, true);
  const ioHelper = asIoHelper(ioHost, ioHost.currentAction);
  if (argv.debug || argv.verbose > 2) {
    setSdkTracing(true);
  } else {
    setSdkTracing(false);
  }
  try {
    await checkForPlatformWarnings(ioHelper);
  } catch (e3) {
    await ioHost.defaults.debug(`Error while checking for platform warnings: ${e3}`);
  }
  await ioHost.defaults.debug("CDK Toolkit CLI version:", versionWithBuild());
  await ioHost.defaults.debug("Command line arguments:", argv);
  const configuration = await Configuration.fromArgsAndFiles(
    ioHelper,
    {
      commandLineArguments: {
        ...argv,
        _: argv._
        // TypeScript at its best
      }
    }
  );
  const proxyAgent = await new ProxyAgentProvider(ioHelper).create({
    proxyAddress: configuration.settings.get(["proxy"]),
    caBundlePath: configuration.settings.get(["caBundlePath"])
  });
  if (argv["telemetry-file"] && !configuration.settings.get(["unstable"]).includes("telemetry")) {
    throw new import_toolkit_lib19.ToolkitError("Unstable feature use: 'telemetry-file' is unstable. It must be opted in via '--unstable', e.g. 'cdk deploy --unstable=telemetry --telemetry-file=my/file/path'");
  }
  try {
    await ioHost.startTelemetry(argv, configuration.context);
  } catch (e3) {
    await ioHost.asIoHelper().defaults.trace(`Telemetry instantiation failed: ${e3.message}`);
  }
  const isSafeToWriteNotices = !isCI2() || Boolean(ciSystemIsStdErrSafe());
  let shouldDisplayNotices;
  if (argv.notices !== void 0) {
    shouldDisplayNotices = argv.notices;
  } else {
    const configNotices = configuration.settings.get(["notices"]);
    if (configNotices !== void 0) {
      shouldDisplayNotices = configNotices !== "false" && Boolean(configNotices);
    } else {
      shouldDisplayNotices = isSafeToWriteNotices;
    }
  }
  ioHost.noticesDestination = shouldDisplayNotices ? "stderr" : "drop";
  const notices = Notices.create({
    ioHost,
    context: configuration.context,
    output: configuration.settings.get(["outdir"]),
    httpOptions: { agent: proxyAgent },
    cliVersion: versionNumber2()
  });
  const refreshNotices = (async () => {
    if (shouldDisplayNotices && cmd !== "notices") {
      try {
        return await notices.refresh();
      } catch (e3) {
        await ioHelper.defaults.debug(`Could not refresh notices: ${e3}`);
      }
    }
  })();
  const sdkProvider = await SdkProvider.withAwsCliCompatibleDefaults({
    ioHelper,
    requestHandler: sdkRequestHandler(proxyAgent),
    logger: new IoHostSdkLogger(asIoHelper(ioHost, ioHost.currentAction)),
    pluginHost: GLOBAL_PLUGIN_HOST
  }, configuration.settings.get(["profile"]));
  try {
    await ioHost.telemetry?.attachRegion(sdkProvider.defaultRegion);
  } catch (e3) {
    await ioHost.asIoHelper().defaults.trace(`Telemetry attach region failed: ${e3.message}`);
  }
  let outDirLock;
  const cloudExecutable = new CloudExecutable({
    configuration,
    sdkProvider,
    synthesizer: synthesizer ?? (async (aws, config) => {
      await outDirLock?.release();
      const { assembly, lock } = await execProgram(aws, ioHost.asIoHelper(), config);
      outDirLock = lock;
      return assembly;
    }),
    ioHelper: ioHost.asIoHelper()
  });
  async function loadPlugins(...settings) {
    for (const source of settings) {
      const plugins = source.get(["plugin"]) || [];
      for (const plugin of plugins) {
        await GLOBAL_PLUGIN_HOST.load(plugin, ioHost);
      }
    }
  }
  __name(loadPlugins, "loadPlugins");
  await loadPlugins(configuration.settings);
  if (typeof cmd !== "string") {
    throw new import_toolkit_lib19.ToolkitError(`First argument should be a string. Got: ${cmd} (${typeof cmd})`);
  }
  try {
    return await main(cmd, argv);
  } finally {
    await outDirLock?.release();
    await displayVersionMessage(ioHelper);
    await refreshNotices;
    if (cmd === "notices") {
      await notices.refresh({ force: true });
      await notices.display({
        includeAcknowledged: !argv.unacknowledged,
        showTotal: argv.unacknowledged
      });
    } else if (shouldDisplayNotices && cmd !== "version") {
      await notices.display();
    }
  }
  async function main(command2, args2) {
    ioHost.currentAction = command2;
    const toolkitStackName = ToolkitInfo.determineName(configuration.settings.get(["toolkitStackName"]));
    await ioHost.defaults.debug(`Toolkit stack: ${chalk35.bold(toolkitStackName)}`);
    const cloudFormation = new Deployments({
      sdkProvider,
      toolkitStackName,
      ioHelper: asIoHelper(ioHost, ioHost.currentAction)
    });
    if (args2.all && args2.STACKS) {
      throw new import_toolkit_lib19.ToolkitError("You must either specify a list of Stacks or the `--all` argument");
    }
    args2.STACKS = args2.STACKS ?? (args2.STACK ? [args2.STACK] : []);
    args2.ENVIRONMENTS = args2.ENVIRONMENTS ?? [];
    const selector = {
      allTopLevel: args2.all,
      patterns: args2.STACKS
    };
    const cli2 = new CdkToolkit({
      ioHost,
      cloudExecutable,
      toolkitStackName,
      deployments: cloudFormation,
      verbose: argv.trace || argv.verbose > 0,
      ignoreErrors: argv["ignore-errors"],
      strict: argv.strict,
      configuration,
      sdkProvider
    });
    switch (command2) {
      case "context":
        ioHost.currentAction = "context";
        return contextHandler({
          ioHelper,
          context: configuration.context,
          clear: argv.clear,
          json: argv.json,
          force: argv.force,
          reset: argv.reset
        });
      case "docs":
      case "doc":
        ioHost.currentAction = "docs";
        return docs({
          ioHelper,
          browser: configuration.settings.get(["browser"])
        });
      case "doctor":
        ioHost.currentAction = "doctor";
        return doctor({
          ioHelper
        });
      case "ls":
      case "list":
        ioHost.currentAction = "list";
        return cli2.list(args2.STACKS, {
          long: args2.long,
          json: argv.json,
          showDeps: args2.showDependencies
        });
      case "diff":
        ioHost.currentAction = "diff";
        const enableDiffNoFail = isFeatureEnabled(configuration, cxapi12.ENABLE_DIFF_NO_FAIL_CONTEXT);
        return cli2.diff({
          stackNames: args2.STACKS,
          exclusively: args2.exclusively,
          templatePath: args2.template,
          strict: args2.strict,
          contextLines: args2.contextLines,
          securityOnly: args2.securityOnly,
          fail: args2.fail != null ? args2.fail : !enableDiffNoFail,
          compareAgainstProcessedTemplate: args2.processed,
          quiet: args2.quiet,
          changeSet: args2["change-set"],
          toolkitStackName,
          importExistingResources: args2.importExistingResources,
          includeMoves: args2["include-moves"]
        });
      case "drift":
        ioHost.currentAction = "drift";
        return cli2.drift({
          selector,
          fail: args2.fail
        });
      case "refactor":
        if (!configuration.settings.get(["unstable"]).includes("refactor")) {
          throw new import_toolkit_lib19.ToolkitError("Unstable feature use: 'refactor' is unstable. It must be opted in via '--unstable', e.g. 'cdk refactor --unstable=refactor'");
        }
        ioHost.currentAction = "refactor";
        return cli2.refactor({
          dryRun: args2.dryRun,
          overrideFile: args2.overrideFile,
          revert: args2.revert,
          stacks: selector,
          additionalStackNames: arrayFromYargs(args2.additionalStackName ?? []),
          force: args2.force ?? false,
          roleArn: args2.roleArn
        });
      case "bootstrap":
        ioHost.currentAction = "bootstrap";
        const source = await determineBootstrapVersion(ioHost, args2);
        if (args2.showTemplate) {
          const bootstrapper = new Bootstrapper(source, asIoHelper(ioHost, ioHost.currentAction));
          return bootstrapper.showTemplate(args2.json);
        }
        return cli2.bootstrap(args2.ENVIRONMENTS, {
          source,
          roleArn: args2.roleArn,
          forceDeployment: argv.force,
          toolkitStackName,
          execute: args2.execute,
          tags: configuration.settings.get(["tags"]),
          terminationProtection: args2.terminationProtection,
          usePreviousParameters: args2["previous-parameters"],
          parameters: {
            bucketName: configuration.settings.get(["toolkitBucket", "bucketName"]),
            kmsKeyId: configuration.settings.get(["toolkitBucket", "kmsKeyId"]),
            createCustomerMasterKey: args2.bootstrapCustomerKey,
            qualifier: args2.qualifier ?? configuration.context.get("@aws-cdk/core:bootstrapQualifier"),
            publicAccessBlockConfiguration: args2.publicAccessBlockConfiguration,
            examplePermissionsBoundary: argv.examplePermissionsBoundary,
            customPermissionsBoundary: argv.customPermissionsBoundary,
            trustedAccounts: arrayFromYargs(args2.trust),
            trustedAccountsForLookup: arrayFromYargs(args2.trustForLookup),
            untrustedAccounts: arrayFromYargs(args2.untrust),
            cloudFormationExecutionPolicies: arrayFromYargs(args2.cloudformationExecutionPolicies),
            denyExternalId: args2.denyExternalId
          }
        });
      case "deploy":
        ioHost.currentAction = "deploy";
        const parameterMap = {};
        for (const parameter of args2.parameters) {
          if (typeof parameter === "string") {
            const keyValue = parameter.split("=");
            parameterMap[keyValue[0]] = keyValue.slice(1).join("=");
          }
        }
        if (args2.execute !== void 0 && args2.method !== void 0) {
          throw new import_toolkit_lib19.ToolkitError("Can not supply both --[no-]execute and --method at the same time");
        }
        return cli2.deploy({
          selector,
          exclusively: args2.exclusively,
          toolkitStackName,
          roleArn: args2.roleArn,
          notificationArns: args2.notificationArns,
          requireApproval: configuration.settings.get(["requireApproval"]),
          reuseAssets: args2["build-exclude"],
          tags: configuration.settings.get(["tags"]),
          deploymentMethod: determineDeploymentMethod(args2, configuration),
          force: args2.force,
          parameters: parameterMap,
          usePreviousParameters: args2["previous-parameters"],
          outputsFile: configuration.settings.get(["outputsFile"]),
          progress: configuration.settings.get(["progress"]),
          ci: args2.ci,
          rollback: configuration.settings.get(["rollback"]),
          watch: args2.watch,
          traceLogs: args2.logs,
          concurrency: args2.concurrency,
          assetParallelism: configuration.settings.get(["assetParallelism"]),
          assetBuildTime: configuration.settings.get(["assetPrebuild"]) ? "all-before-deploy" /* ALL_BEFORE_DEPLOY */ : "just-in-time" /* JUST_IN_TIME */,
          ignoreNoStacks: args2.ignoreNoStacks
        });
      case "rollback":
        ioHost.currentAction = "rollback";
        return cli2.rollback({
          selector,
          toolkitStackName,
          roleArn: args2.roleArn,
          force: args2.force,
          validateBootstrapStackVersion: args2["validate-bootstrap-version"],
          orphanLogicalIds: args2.orphan
        });
      case "import":
        ioHost.currentAction = "import";
        return cli2.import({
          selector,
          toolkitStackName,
          roleArn: args2.roleArn,
          deploymentMethod: {
            method: "change-set",
            execute: args2.execute,
            changeSetName: args2.changeSetName
          },
          progress: configuration.settings.get(["progress"]),
          rollback: configuration.settings.get(["rollback"]),
          recordResourceMapping: args2["record-resource-mapping"],
          resourceMappingFile: args2["resource-mapping"],
          force: args2.force
        });
      case "watch":
        ioHost.currentAction = "watch";
        await cli2.watch({
          selector,
          exclusively: args2.exclusively,
          toolkitStackName,
          roleArn: args2.roleArn,
          reuseAssets: args2["build-exclude"],
          deploymentMethod: determineDeploymentMethod(args2, configuration, true),
          force: args2.force,
          progress: configuration.settings.get(["progress"]),
          rollback: configuration.settings.get(["rollback"]),
          traceLogs: args2.logs,
          concurrency: args2.concurrency
        });
        return;
      case "destroy":
        ioHost.currentAction = "destroy";
        return cli2.destroy({
          selector,
          exclusively: args2.exclusively,
          force: args2.force,
          roleArn: args2.roleArn
        });
      case "gc":
        ioHost.currentAction = "gc";
        if (!configuration.settings.get(["unstable"]).includes("gc")) {
          throw new import_toolkit_lib19.ToolkitError("Unstable feature use: 'gc' is unstable. It must be opted in via '--unstable', e.g. 'cdk gc --unstable=gc'");
        }
        if (args2.bootstrapStackName) {
          await ioHost.defaults.warn("--bootstrap-stack-name is deprecated and will be removed when gc is GA. Use --toolkit-stack-name.");
        }
        return cli2.garbageCollect(args2.ENVIRONMENTS, {
          action: args2.action,
          type: args2.type,
          rollbackBufferDays: args2["rollback-buffer-days"],
          createdBufferDays: args2["created-buffer-days"],
          bootstrapStackName: args2.toolkitStackName ?? args2.bootstrapStackName,
          confirm: args2.confirm
        });
      case "flags":
        ioHost.currentAction = "flags";
        if (!configuration.settings.get(["unstable"]).includes("flags")) {
          throw new import_toolkit_lib19.ToolkitError("Unstable feature use: 'flags' is unstable. It must be opted in via '--unstable', e.g. 'cdk flags --unstable=flags'");
        }
        const toolkit = new import_toolkit_lib19.Toolkit({
          ioHost,
          toolkitStackName,
          unstableFeatures: configuration.settings.get(["unstable"])
        });
        const flagsData = await toolkit.flags(cloudExecutable);
        return handleFlags(flagsData, ioHelper, args2, toolkit);
      case "synthesize":
      case "synth":
        ioHost.currentAction = "synth";
        const quiet = configuration.settings.get(["quiet"]) ?? args2.quiet;
        if (args2.exclusively) {
          return cli2.synth(args2.STACKS, args2.exclusively, quiet, args2.validation, argv.json);
        } else {
          return cli2.synth(args2.STACKS, true, quiet, args2.validation, argv.json);
        }
      case "notices":
        ioHost.currentAction = "notices";
        ioHost.noticesDestination = "stdout";
        return;
      case "metadata":
        ioHost.currentAction = "metadata";
        return cli2.metadata(args2.STACK, argv.json);
      case "acknowledge":
      case "ack":
        ioHost.currentAction = "notices";
        return cli2.acknowledge(args2.ID);
      case "cli-telemetry":
        ioHost.currentAction = "cli-telemetry";
        if (args2.enable === void 0 && args2.disable === void 0 && args2.status === void 0) {
          throw new import_toolkit_lib19.ToolkitError("Must specify '--enable', '--disable', or '--status'");
        }
        if (args2.status) {
          return cli2.cliTelemetryStatus(args2["version-reporting"]);
        } else {
          const enable = args2.enable ?? !args2.disable;
          return cli2.cliTelemetry(enable);
        }
      case "init":
        ioHost.currentAction = "init";
        const language = configuration.settings.get(["language"]);
        if (args2.list) {
          return printAvailableTemplates(ioHelper, language);
        } else {
          if (args2["from-path"] && !configuration.settings.get(["unstable"]).includes("init")) {
            throw new import_toolkit_lib19.ToolkitError("Unstable feature use: 'init' with custom templates is unstable. It must be opted in via '--unstable', e.g. 'cdk init --from-path=./my-template --unstable=init'");
          }
          return cliInit({
            ioHelper,
            type: args2.TEMPLATE,
            language,
            canUseNetwork: void 0,
            generateOnly: args2.generateOnly,
            libVersion: args2.libVersion,
            fromPath: args2["from-path"],
            templatePath: args2["template-path"]
          });
        }
      case "migrate":
        ioHost.currentAction = "migrate";
        return cli2.migrate({
          stackName: args2["stack-name"],
          fromPath: args2["from-path"],
          fromStack: args2["from-stack"],
          language: args2.language,
          outputPath: args2["output-path"],
          fromScan: getMigrateScanType(args2["from-scan"]),
          filter: args2.filter,
          account: args2.account,
          region: args2.region,
          compress: args2.compress
        });
      case "version":
        ioHost.currentAction = "version";
        return ioHost.defaults.result(versionWithBuild());
      default:
        throw new import_toolkit_lib19.ToolkitError("Unknown command: " + command2);
    }
  }
  __name(main, "main");
}
async function determineBootstrapVersion(ioHost, args) {
  let source;
  if (args.template) {
    await ioHost.defaults.info(`Using bootstrapping template from ${args.template}`);
    source = { source: "custom", templateFile: args.template };
  } else if (process.env.CDK_LEGACY_BOOTSTRAP) {
    await ioHost.defaults.info("CDK_LEGACY_BOOTSTRAP set, using legacy-style bootstrapping");
    source = { source: "legacy" };
  } else {
    source = { source: "default" };
  }
  return source;
}
function isFeatureEnabled(configuration, featureFlag) {
  return configuration.context.get(featureFlag) ?? cxapi12.futureFlagDefault(featureFlag);
}
function arrayFromYargs(xs) {
  if (xs.length === 0) {
    return void 0;
  }
  return xs.filter((x3) => x3 !== "");
}
function determineDeploymentMethod(args, configuration, watch3) {
  let deploymentMethod;
  switch (args.method) {
    case "direct":
      if (args.changeSetName) {
        throw new import_toolkit_lib19.ToolkitError("--change-set-name cannot be used with method=direct");
      }
      if (args.importExistingResources) {
        throw new import_toolkit_lib19.ToolkitError("--import-existing-resources cannot be enabled with method=direct");
      }
      deploymentMethod = { method: "direct" };
      break;
    case "change-set":
      deploymentMethod = {
        method: "change-set",
        execute: true,
        changeSetName: args.changeSetName,
        importExistingResources: args.importExistingResources
      };
      break;
    case "prepare-change-set":
      deploymentMethod = {
        method: "change-set",
        execute: false,
        changeSetName: args.changeSetName,
        importExistingResources: args.importExistingResources
      };
      break;
    case void 0:
    default:
      deploymentMethod = {
        method: "change-set",
        execute: watch3 ? true : args.execute ?? true,
        changeSetName: args.changeSetName,
        importExistingResources: args.importExistingResources
      };
      break;
  }
  const hotswapMode = determineHotswapMode(args.hotswap, args.hotswapFallback, watch3);
  const hotswapProperties = configuration.settings.get(["hotswap"]) || {};
  switch (hotswapMode) {
    case "fall-back" /* FALL_BACK */:
      return {
        method: "hotswap",
        properties: hotswapProperties,
        fallback: deploymentMethod
      };
    case "hotswap-only" /* HOTSWAP_ONLY */:
      return {
        method: "hotswap",
        properties: hotswapProperties
      };
    default:
    case "full-deployment" /* FULL_DEPLOYMENT */:
      return deploymentMethod;
  }
}
function determineHotswapMode(hotswap, hotswapFallback, watch3) {
  if (hotswap && hotswapFallback) {
    throw new import_toolkit_lib19.ToolkitError("Can not supply both --hotswap and --hotswap-fallback at the same time");
  } else if (!hotswap && !hotswapFallback) {
    if (hotswap === void 0 && hotswapFallback === void 0) {
      return watch3 ? "hotswap-only" /* HOTSWAP_ONLY */ : "full-deployment" /* FULL_DEPLOYMENT */;
    } else if (hotswap === false || hotswapFallback === false) {
      return "full-deployment" /* FULL_DEPLOYMENT */;
    }
  }
  let hotswapMode;
  if (hotswap) {
    hotswapMode = "hotswap-only" /* HOTSWAP_ONLY */;
  } else {
    hotswapMode = "fall-back" /* FALL_BACK */;
  }
  return hotswapMode;
}
function cli(args = process.argv.slice(2)) {
  let error5;
  exec4(args).then(async (value) => {
    if (typeof value === "number") {
      process.exitCode = value;
    }
  }).catch(async (err) => {
    prettyPrintError(err, isDeveloperBuildVersion());
    error5 = {
      name: cdkCliErrorName(err.name)
    };
    process.exitCode = 1;
  }).finally(async () => {
    try {
      await CliIoHost.get()?.telemetry?.end(error5);
    } catch (e3) {
      await CliIoHost.get()?.asIoHelper().defaults.trace(`Ending Telemetry failed: ${e3.message}`);
    }
  });
}
var cxapi12, import_toolkit_lib19, chalk35;
var init_cli = __esm({
  "lib/cli/cli.ts"() {
    "use strict";
    cxapi12 = __toESM(require_lib3());
    import_toolkit_lib19 = __toESM(require_lib12());
    chalk35 = __toESM(require_source());
    init_cdk_toolkit();
    init_ci_systems();
    init_display_version();
    init_io_host2();
    init_parse_command_line_arguments();
    init_platform_warnings();
    init_pretty_print_error();
    init_singleton_plugin_host();
    init_user_configuration();
    init_api_private();
    init_api();
    init_aws_auth2();
    init_bootstrap2();
    init_deployments3();
    init_hotswap3();
    init_context5();
    init_docs();
    init_doctor();
    init_flag_operations();
    init_init2();
    init_migrate();
    init_cxapp();
    init_proxy_agent();
    init_error();
    init_ci();
    init_version2();
    init_language();
    if (!process.stdout.isTTY) {
      process.env.FORCE_COLOR = "0";
    }
    __name(exec4, "exec");
    __name(determineBootstrapVersion, "determineBootstrapVersion");
    __name(isFeatureEnabled, "isFeatureEnabled");
    __name(arrayFromYargs, "arrayFromYargs");
    __name(determineDeploymentMethod, "determineDeploymentMethod");
    __name(determineHotswapMode, "determineHotswapMode");
    __name(cli, "cli");
  }
});

// lib/legacy/logging.ts
async function withCorkedLogging(block) {
  corkLogging();
  try {
    return await block();
  } finally {
    uncorkLogging();
  }
}
function corked() {
  return CORK_COUNTER !== 0;
}
function corkLogging() {
  CORK_COUNTER += 1;
}
function uncorkLogging() {
  CORK_COUNTER -= 1;
  if (!corked()) {
    logBuffer.forEach(([stream3, str]) => stream3.write(str + "\n"));
    logBuffer.splice(0);
  }
}
function formatTime2(d3) {
  return `${lpad(d3.getHours(), 2)}:${lpad(d3.getMinutes(), 2)}:${lpad(d3.getSeconds(), 2)}`;
  function lpad(x3, w3) {
    const s3 = `${x3}`;
    return "0".repeat(Math.max(w3 - s3.length, 0)) + s3;
  }
  __name(lpad, "lpad");
}
function setLogLevel(newLogLevel) {
  logLevel = newLogLevel;
}
function setCI(newCI) {
  CI = newCI;
}
function increaseVerbosity() {
  logLevel += 1;
}
function prefix(prefixString, fn) {
  return (fmt, ...args) => fn(`%s ${fmt}`, prefixString, ...args);
}
var util10, chalk36, stdout, stderr, CORK_COUNTER, logBuffer, logger3, LogLevel, logLevel, CI, stream2, _debug, trace2, debug2, error4, warning, success, highlight, print, data2;
var init_logging = __esm({
  "lib/legacy/logging.ts"() {
    "use strict";
    util10 = __toESM(require("util"));
    chalk36 = __toESM(require_source());
    ({ stdout, stderr } = process);
    __name(withCorkedLogging, "withCorkedLogging");
    CORK_COUNTER = 0;
    logBuffer = [];
    __name(corked, "corked");
    __name(corkLogging, "corkLogging");
    __name(uncorkLogging, "uncorkLogging");
    logger3 = /* @__PURE__ */ __name((stream3, styles, timestamp) => (fmt, ...args) => {
      const ts = timestamp ? `[${formatTime2(/* @__PURE__ */ new Date())}] ` : "";
      let str = ts + util10.format(fmt, ...args);
      if (styles && styles.length) {
        str = styles.reduce((a3, style) => style(a3), str);
      }
      const realStream = typeof stream3 === "function" ? stream3() : stream3;
      if (corked()) {
        logBuffer.push([realStream, str]);
        return;
      }
      realStream.write(str + "\n");
    }, "logger");
    __name(formatTime2, "formatTime");
    LogLevel = /* @__PURE__ */ ((LogLevel2) => {
      LogLevel2[LogLevel2["DEFAULT"] = 0] = "DEFAULT";
      LogLevel2[LogLevel2["DEBUG"] = 1] = "DEBUG";
      LogLevel2[LogLevel2["TRACE"] = 2] = "TRACE";
      return LogLevel2;
    })(LogLevel || {});
    logLevel = 0 /* DEFAULT */;
    CI = false;
    __name(setLogLevel, "setLogLevel");
    __name(setCI, "setCI");
    __name(increaseVerbosity, "increaseVerbosity");
    stream2 = /* @__PURE__ */ __name(() => CI ? stdout : stderr, "stream");
    _debug = logger3(stream2, [chalk36.gray], true);
    trace2 = /* @__PURE__ */ __name((fmt, ...args) => logLevel >= 2 /* TRACE */ && _debug(fmt, ...args), "trace");
    debug2 = /* @__PURE__ */ __name((fmt, ...args) => logLevel >= 1 /* DEBUG */ && _debug(fmt, ...args), "debug");
    error4 = logger3(stderr, [chalk36.red]);
    warning = logger3(stream2, [chalk36.yellow]);
    success = logger3(stream2, [chalk36.green]);
    highlight = logger3(stream2, [chalk36.bold]);
    print = logger3(stream2);
    data2 = logger3(stdout);
    __name(prefix, "prefix");
  }
});

// lib/legacy/aws-auth.ts
function cached3(obj, sym, fn) {
  if (!(sym in obj)) {
    obj[sym] = fn();
  }
  return obj[sym];
}
function enableTracing(_enabled) {
}
var SdkProvider2;
var init_aws_auth3 = __esm({
  "lib/legacy/aws-auth.ts"() {
    "use strict";
    init_aws_auth2();
    init_io_host2();
    init_singleton_plugin_host();
    __name(cached3, "cached");
    __name(enableTracing, "enableTracing");
    SdkProvider2 = class {
      static {
        __name(this, "SdkProvider");
      }
      static async withAwsCliCompatibleDefaults(options = {}) {
        return SdkProvider.withAwsCliCompatibleDefaults({
          ...options,
          ioHelper: CliIoHost.instance().asIoHelper(),
          pluginHost: GLOBAL_PLUGIN_HOST
        }, options.profile);
      }
      constructor(defaultCredentialProvider, defaultRegion, requestHandler = {}, logger4) {
        return new SdkProvider(defaultCredentialProvider, defaultRegion, {
          pluginHost: GLOBAL_PLUGIN_HOST,
          ioHelper: CliIoHost.instance().asIoHelper(),
          requestHandler,
          // this is fine it's passed through to the SDK
          logger: logger4
        });
      }
    };
  }
});

// lib/legacy/configuration.ts
async function loadAndLog2(fileName) {
  const ret = await settingsFromFile3(fileName);
  if (!ret.empty) {
    debug2(fileName + ":", JSON.stringify(ret.all, void 0, 2));
  }
  return ret;
}
async function settingsFromFile3(fileName) {
  let settings;
  const expanded = expandHomeDir3(fileName);
  if (await fs42.pathExists(expanded)) {
    const data3 = await fs42.readJson(expanded);
    settings = new Settings(data3);
  } else {
    settings = new Settings();
  }
  prohibitContextKeys2(settings, ["default-account", "default-region"], fileName);
  warnAboutContextKey2(settings, "aws:", fileName);
  return settings;
}
function prohibitContextKeys2(settings, keys, fileName) {
  const context = settings.get(["context"]);
  if (!context || typeof context !== "object") {
    return;
  }
  for (const key of keys) {
    if (key in context) {
      throw new import_toolkit_lib20.ToolkitError(
        `The 'context.${key}' key was found in ${fs_path3.resolve(
          fileName
        )}, but it is no longer supported. Please remove it.`
      );
    }
  }
}
function warnAboutContextKey2(settings, prefix2, fileName) {
  const context = settings.get(["context"]);
  if (!context || typeof context !== "object") {
    return;
  }
  for (const contextKey of Object.keys(context)) {
    if (contextKey.startsWith(prefix2)) {
      warning(
        `A reserved context key ('context.${prefix2}') key was found in ${fs_path3.resolve(
          fileName
        )}, it might cause surprising behavior and should be removed.`
      );
    }
  }
}
function expandHomeDir3(x3) {
  if (x3.startsWith("~")) {
    return fs_path3.join(os12.homedir(), x3.slice(1));
  }
  return x3;
}
function commandLineArgumentsToSettings2(argv) {
  const context = parseStringContextListToObject2(argv);
  const tags = parseStringTagsListToObject2(expectStringList2(argv.tags));
  let bundlingStacks;
  if (BUNDLING_COMMANDS2.includes(argv._[0])) {
    bundlingStacks = argv.exclusively ? argv.STACKS ?? ["**"] : ["**"];
  } else {
    bundlingStacks = [];
  }
  return new Settings({
    app: argv.app,
    browser: argv.browser,
    build: argv.build,
    caBundlePath: argv.caBundlePath,
    context,
    debug: argv.debug,
    tags,
    language: argv.language,
    pathMetadata: argv.pathMetadata,
    assetMetadata: argv.assetMetadata,
    profile: argv.profile,
    plugin: argv.plugin,
    requireApproval: argv.requireApproval,
    toolkitStackName: argv.toolkitStackName,
    toolkitBucket: {
      bucketName: argv.bootstrapBucketName,
      kmsKeyId: argv.bootstrapKmsKeyId
    },
    versionReporting: argv.versionReporting,
    staging: argv.staging,
    output: argv.output,
    outputsFile: argv.outputsFile,
    progress: argv.progress,
    proxy: argv.proxy,
    bundlingStacks,
    lookups: argv.lookups,
    rollback: argv.rollback,
    notices: argv.notices,
    assetParallelism: argv["asset-parallelism"],
    assetPrebuild: argv["asset-prebuild"],
    ignoreNoStacks: argv["ignore-no-stacks"],
    hotswap: {
      ecs: {
        minimumHealthyPercent: argv.hotswapEcsMinimumHealthyPercent,
        maximumHealthyPercent: argv.hotswapEcsMaximumHealthyPercent,
        stabilizationTimeoutSeconds: argv.hotswapEcsStabilizationTimeoutSeconds
      }
    },
    unstable: argv.unstable
  });
}
function expectStringList2(x3) {
  if (x3 === void 0) {
    return void 0;
  }
  if (!Array.isArray(x3)) {
    throw new import_toolkit_lib20.ToolkitError(`Expected array, got '${x3}'`);
  }
  const nonStrings = x3.filter((e3) => typeof e3 !== "string");
  if (nonStrings.length > 0) {
    throw new import_toolkit_lib20.ToolkitError(`Expected list of strings, found ${nonStrings}`);
  }
  return x3;
}
function parseStringContextListToObject2(argv) {
  const context = {};
  for (const assignment of argv.context || []) {
    const parts = assignment.split(/=(.*)/, 2);
    if (parts.length === 2) {
      debug2("CLI argument context: %s=%s", parts[0], parts[1]);
      if (parts[0].match(/^aws:.+/)) {
        throw new import_toolkit_lib20.ToolkitError(
          `User-provided context cannot use keys prefixed with 'aws:', but ${parts[0]} was provided.`
        );
      }
      context[parts[0]] = parts[1];
    } else {
      warning(
        "Context argument is not an assignment (key=value): %s",
        assignment
      );
    }
  }
  return context;
}
function parseStringTagsListToObject2(argTags) {
  if (argTags === void 0) {
    return void 0;
  }
  if (argTags.length === 0) {
    return void 0;
  }
  const nonEmptyTags = argTags.filter((t3) => t3 !== "");
  if (nonEmptyTags.length === 0) {
    return [];
  }
  const tags = [];
  for (const assignment of nonEmptyTags) {
    const parts = assignment.split(/=(.*)/, 2);
    if (parts.length === 2) {
      debug2("CLI argument tags: %s=%s", parts[0], parts[1]);
      tags.push({
        Key: parts[0],
        Value: parts[1]
      });
    } else {
      warning("Tags argument is not an assignment (key=value): %s", assignment);
    }
  }
  return tags.length > 0 ? tags : void 0;
}
var os12, fs_path3, import_toolkit_lib20, fs42, PROJECT_CONTEXT2, PROJECT_CONFIG2, USER_DEFAULTS2, CONTEXT_KEY2, Command, BUNDLING_COMMANDS2, Configuration2;
var init_configuration = __esm({
  "lib/legacy/configuration.ts"() {
    "use strict";
    os12 = __toESM(require("os"));
    fs_path3 = __toESM(require("path"));
    import_toolkit_lib20 = __toESM(require_lib12());
    fs42 = __toESM(require_lib13());
    init_logging();
    init_context4();
    init_settings2();
    PROJECT_CONTEXT2 = "cdk.context.json";
    PROJECT_CONFIG2 = "cdk.json";
    USER_DEFAULTS2 = "~/.cdk.json";
    CONTEXT_KEY2 = "context";
    Command = /* @__PURE__ */ ((Command2) => {
      Command2["LS"] = "ls";
      Command2["LIST"] = "list";
      Command2["DIFF"] = "diff";
      Command2["BOOTSTRAP"] = "bootstrap";
      Command2["DEPLOY"] = "deploy";
      Command2["DESTROY"] = "destroy";
      Command2["SYNTHESIZE"] = "synthesize";
      Command2["SYNTH"] = "synth";
      Command2["METADATA"] = "metadata";
      Command2["INIT"] = "init";
      Command2["VERSION"] = "version";
      Command2["WATCH"] = "watch";
      Command2["GC"] = "gc";
      Command2["ROLLBACK"] = "rollback";
      Command2["IMPORT"] = "import";
      Command2["ACKNOWLEDGE"] = "acknowledge";
      Command2["ACK"] = "ack";
      Command2["NOTICES"] = "notices";
      Command2["MIGRATE"] = "migrate";
      Command2["CONTEXT"] = "context";
      Command2["DOCS"] = "docs";
      Command2["DOC"] = "doc";
      Command2["DOCTOR"] = "doctor";
      Command2["REFACTOR"] = "refactor";
      Command2["DRIFT"] = "drift";
      Command2["CLI_TELEMETRY"] = "cli-telemetry";
      return Command2;
    })(Command || {});
    BUNDLING_COMMANDS2 = [
      "deploy" /* DEPLOY */,
      "diff" /* DIFF */,
      "synth" /* SYNTH */,
      "synthesize" /* SYNTHESIZE */,
      "watch" /* WATCH */,
      "import" /* IMPORT */
    ];
    Configuration2 = class {
      constructor(props = {}) {
        this.props = props;
        this.settings = new Settings();
        this.context = new Context();
        this.defaultConfig = new Settings({
          versionReporting: true,
          assetMetadata: true,
          pathMetadata: true,
          output: "cdk.out"
        });
        this.loaded = false;
        this.commandLineArguments = props.commandLineArguments ? commandLineArgumentsToSettings2(props.commandLineArguments) : new Settings();
        this.commandLineContext = this.commandLineArguments.subSettings([CONTEXT_KEY2]).makeReadOnly();
      }
      static {
        __name(this, "Configuration");
      }
      get projectConfig() {
        if (!this._projectConfig) {
          throw new import_toolkit_lib20.ToolkitError("#load has not been called yet!");
        }
        return this._projectConfig;
      }
      get projectContext() {
        if (!this._projectContext) {
          throw new import_toolkit_lib20.ToolkitError("#load has not been called yet!");
        }
        return this._projectContext;
      }
      /**
       * Load all config
       */
      async load() {
        const userConfig = await loadAndLog2(USER_DEFAULTS2);
        this._projectConfig = await loadAndLog2(PROJECT_CONFIG2);
        this._projectContext = await loadAndLog2(PROJECT_CONTEXT2);
        const readUserContext = this.props.readUserContext ?? true;
        if (userConfig.get(["build"])) {
          throw new import_toolkit_lib20.ToolkitError(
            "The `build` key cannot be specified in the user config (~/.cdk.json), specify it in the project config (cdk.json) instead"
          );
        }
        const contextSources = [
          { bag: this.commandLineContext },
          {
            fileName: PROJECT_CONFIG2,
            bag: this.projectConfig.subSettings([CONTEXT_KEY2]).makeReadOnly()
          },
          { fileName: PROJECT_CONTEXT2, bag: this.projectContext }
        ];
        if (readUserContext) {
          contextSources.push({
            fileName: USER_DEFAULTS2,
            bag: userConfig.subSettings([CONTEXT_KEY2]).makeReadOnly()
          });
        }
        this.context = new Context(...contextSources);
        this.settings = this.defaultConfig.merge(userConfig).merge(this.projectConfig).merge(this.commandLineArguments).makeReadOnly();
        debug2("merged settings:", this.settings.all);
        this.loaded = true;
        return this;
      }
      /**
       * Save the project context
       */
      async saveContext() {
        if (!this.loaded) {
          return this;
        }
        await this.projectContext.save(PROJECT_CONTEXT2);
        return this;
      }
    };
    __name(loadAndLog2, "loadAndLog");
    __name(settingsFromFile3, "settingsFromFile");
    __name(prohibitContextKeys2, "prohibitContextKeys");
    __name(warnAboutContextKey2, "warnAboutContextKey");
    __name(expandHomeDir3, "expandHomeDir");
    __name(commandLineArgumentsToSettings2, "commandLineArgumentsToSettings");
    __name(expectStringList2, "expectStringList");
    __name(parseStringContextListToObject2, "parseStringContextListToObject");
    __name(parseStringTagsListToObject2, "parseStringTagsListToObject");
  }
});

// lib/legacy/index.ts
var legacy_exports = {};
__export(legacy_exports, {
  Bootstrapper: () => Bootstrapper,
  CI: () => CI,
  CfnEvaluationException: () => CfnEvaluationException,
  CloudExecutable: () => CloudExecutable,
  Command: () => Command,
  Configuration: () => Configuration2,
  Deployments: () => Deployments,
  LogLevel: () => LogLevel,
  PROJECT_CONTEXT: () => PROJECT_CONTEXT2,
  PluginHost: () => PluginHost,
  RequireApproval: () => import_cloud_assembly_schema9.RequireApproval,
  SdkProvider: () => SdkProvider2,
  Settings: () => Settings,
  aliases: () => aliases,
  availableInitTemplates: () => availableInitTemplates,
  cached: () => cached3,
  cli: () => cli,
  command: () => command,
  contentHash: () => contentHash,
  data: () => data2,
  debug: () => debug2,
  deepClone: () => deepClone,
  deepMerge: () => deepMerge,
  deployStack: () => deployStack,
  describe: () => describe,
  enableTracing: () => enableTracing,
  error: () => error4,
  exec: () => exec4,
  execProgram: () => execProgram,
  flatten: () => flatten2,
  formatAsBanner: () => formatAsBanner,
  highlight: () => highlight,
  ifDefined: () => ifDefined,
  increaseVerbosity: () => increaseVerbosity,
  isArray: () => isArray,
  isEmpty: () => isEmpty,
  leftPad: () => padLeft,
  logLevel: () => logLevel,
  lowerCaseFirstCharacter: () => lowerCaseFirstCharacter,
  numberFromBool: () => numberFromBool,
  partition: () => partition,
  prefix: () => prefix,
  print: () => print,
  rootDir: () => cliRootDir,
  setCI: () => setCI,
  setLogLevel: () => setLogLevel,
  success: () => success,
  trace: () => trace2,
  versionNumber: () => versionNumber2,
  warning: () => warning,
  withCorkedLogging: () => withCorkedLogging
});
var import_cloud_assembly_schema9;
var init_legacy = __esm({
  "lib/legacy/index.ts"() {
    "use strict";
    init_logging();
    init_aws_auth3();
    init_configuration();
    init_cloudformation3();
    init_deployments3();
    init_api_private();
    init_plugin3();
    init_settings2();
    init_bootstrap2();
    init_cxapp();
    init_cli();
    init_root_dir();
    init_console_formatters();
    init_version2();
    import_cloud_assembly_schema9 = __toESM(require_lib2());
    init_init2();
    init_docs();
    init_util8();
  }
});

// lib/index.js
var __createBinding2 = exports && exports.__createBinding || (Object.create ? (function(o3, m3, k3, k22) {
  if (k22 === void 0) k22 = k3;
  var desc = Object.getOwnPropertyDescriptor(m3, k3);
  if (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) {
    desc = { enumerable: true, get: /* @__PURE__ */ __name(function() {
      return m3[k3];
    }, "get") };
  }
  Object.defineProperty(o3, k22, desc);
}) : (function(o3, m3, k3, k22) {
  if (k22 === void 0) k22 = k3;
  o3[k22] = m3[k3];
}));
var __exportStar2 = exports && exports.__exportStar || function(m3, exports2) {
  for (var p3 in m3) if (p3 !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p3)) __createBinding2(exports2, m3, p3);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.legacy = exports.exec = exports.cli = void 0;
__exportStar2((init_api(), __toCommonJS(api_exports)), exports);
var cli_1 = (init_cli(), __toCommonJS(cli_exports));
Object.defineProperty(exports, "cli", { enumerable: true, get: /* @__PURE__ */ __name(function() {
  return cli_1.cli;
}, "get") });
Object.defineProperty(exports, "exec", { enumerable: true, get: /* @__PURE__ */ __name(function() {
  return cli_1.exec;
}, "get") });
exports.legacy = (init_legacy(), __toCommonJS(legacy_exports));
/*! Bundled license information:

normalize-path/index.js:
  (*!
   * normalize-path <https://github.com/jonschlinkert/normalize-path>
   *
   * Copyright (c) 2014-2018, Jon Schlinkert.
   * Released under the MIT License.
   *)

safe-buffer/index.js:
  (*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)

archiver/lib/error.js:
archiver/lib/core.js:
  (**
   * Archiver Core
   *
   * @ignore
   * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
   * @copyright (c) 2012-2014 Chris Talkington, contributors.
   *)

crc-32/crc32.js:
  (*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com *)

zip-stream/index.js:
  (**
   * ZipStream
   *
   * @ignore
   * @license [MIT]{@link https://github.com/archiverjs/node-zip-stream/blob/master/LICENSE}
   * @copyright (c) 2014 Chris Talkington, contributors.
   *)

archiver/lib/plugins/zip.js:
  (**
   * ZIP Format Plugin
   *
   * @module plugins/zip
   * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
   * @copyright (c) 2012-2014 Chris Talkington, contributors.
   *)

archiver/lib/plugins/tar.js:
  (**
   * TAR Format Plugin
   *
   * @module plugins/tar
   * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
   * @copyright (c) 2012-2014 Chris Talkington, contributors.
   *)

archiver/lib/plugins/json.js:
  (**
   * JSON Format Plugin
   *
   * @module plugins/json
   * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
   * @copyright (c) 2012-2014 Chris Talkington, contributors.
   *)

archiver/index.js:
  (**
   * Archiver Vending
   *
   * @ignore
   * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
   * @copyright (c) 2012-2014 Chris Talkington, contributors.
   *)

is-extglob/index.js:
  (*!
   * is-extglob <https://github.com/jonschlinkert/is-extglob>
   *
   * Copyright (c) 2014-2016, Jon Schlinkert.
   * Licensed under the MIT License.
   *)

is-glob/index.js:
  (*!
   * is-glob <https://github.com/jonschlinkert/is-glob>
   *
   * Copyright (c) 2014-2017, Jon Schlinkert.
   * Released under the MIT License.
   *)

is-number/index.js:
  (*!
   * is-number <https://github.com/jonschlinkert/is-number>
   *
   * Copyright (c) 2014-present, Jon Schlinkert.
   * Released under the MIT License.
   *)

to-regex-range/index.js:
  (*!
   * to-regex-range <https://github.com/micromatch/to-regex-range>
   *
   * Copyright (c) 2015-present, Jon Schlinkert.
   * Released under the MIT License.
   *)

fill-range/index.js:
  (*!
   * fill-range <https://github.com/jonschlinkert/fill-range>
   *
   * Copyright (c) 2014-present, Jon Schlinkert.
   * Licensed under the MIT License.
   *)
*/
